Clear Mind

Lithorn
Posts: 9
Joined: Sun Aug 05, 2012 12:09 pm

Clear Mind

Post by Lithorn » Sun Sep 02, 2012 12:44 pm

So basically Clear mind needs to be enabled but its rank needs editing, as Rank 3 and 4 have 2HMP per tic instead of 1, and Rank 5 has 3
So R1 15 HMP (1HMP) R2 18HMP (1HMP) R3 21HMP (2HMP) R4 24 HMP (2HMP) R5 27 HMP (3HMP) In that order

As it was, Clear mind worked, but the tic was wrong, when it did work all HMP gear didnt, now CM dosent work, all HMP gear is working

http://ffxi.allakhazam.com/wiki/Black_Mage_%28FFXI%29 FOR REFERENCE

Now, Clear Mind Trait does not stack with sub, so if I have CMIII from BLM and CM1 from WHM, I have CM3
If I have an item that "Enhances" Clear mind, that stacks but only up to the MAX rank of 5 if I have the gear to do so.

Zedingo
Developer
Posts: 85
Joined: Tue Aug 14, 2012 12:24 pm

Re: Clear Mind

Post by Zedingo » Tue Sep 11, 2012 2:58 am

I don't know if it was ever committed but I and others asked whasf to enable Clear Mind on his server in the easiest way possible. In the traits table, each tier of CM adds MOD_MPHEAL, 3.

Base: 12 hMP
CM1: 15 hMP (difference of 3)
CM2: 18 hMP (difference of 3)
etc...

That SHOULD work fine since the server shouldn't be applying the same tier trait twice. Though come to think of it, it is a bit much. It was meant mostly as a simple fix to get Clear Mind working so people would play mage jobs more.

User avatar
diatanato
Developer
Posts: 112
Joined: Thu Aug 30, 2012 9:59 pm

Re: Clear Mind

Post by diatanato » Tue Sep 11, 2012 3:18 am


Zedingo
Developer
Posts: 85
Joined: Tue Aug 14, 2012 12:24 pm

Re: Clear Mind

Post by Zedingo » Tue Sep 11, 2012 6:44 am

dia, that's not what I meant.

So I made a patch which gets Clear Mind working in a somewhat broken state. By broken I mean that it's too powerful. BLM74 has Clear Mind 4, RDM37 has Clear Mind 1. Because I don't know how to make these traits stop stacking, a BLM74/RDM37 has Clear Mind 5 with this patch.

I've already tested it, and if not for the stacking problem, it's retail standard now. Including the +3mp per tick gain with CM5.
Attachments
healing.lua.patch
I left healing.lua at rev 1713 in the other patch :(
(1.1 KiB) Downloaded 346 times
clear_mind_fix.patch
(7.22 KiB) Downloaded 356 times
Last edited by Zedingo on Tue Sep 11, 2012 7:13 am, edited 1 time in total.

User avatar
whasf
Site Admin
Posts: 1312
Joined: Thu Jul 19, 2012 9:11 pm

Re: Clear Mind

Post by whasf » Tue Sep 11, 2012 7:07 am

Patched in r1718
-- Whasf

User avatar
diatanato
Developer
Posts: 112
Joined: Thu Aug 30, 2012 9:59 pm

Re: Clear Mind

Post by diatanato » Tue Sep 11, 2012 7:08 am

not good idea with healing.lua

Zedingo
Developer
Posts: 85
Joined: Tue Aug 14, 2012 12:24 pm

Re: Clear Mind

Post by Zedingo » Tue Sep 11, 2012 4:48 pm

Okay, I finally got some sleep and realized how to do tier detection with the current table design. With this healing.lua you will only receive the effects of the highest tier of Clear Mind that you have.
Attachments
clear_mind_final.patch
(6.24 KiB) Downloaded 342 times

Anged_Obscurite
Posts: 14
Joined: Wed Sep 05, 2012 10:12 pm

Clear Mind + hHP fix

Post by Anged_Obscurite » Fri Sep 14, 2012 12:48 am

I looked into the hHP issue (especially with Signet) that wasn't healing correctly.
Attachments
hHP fix.patch
This incorporates ZeDingo's patch to Clear Mind, as well, towards the healing.lua
(1.76 KiB) Downloaded 376 times

User avatar
diatanato
Developer
Posts: 112
Joined: Thu Aug 30, 2012 9:59 pm

Re: Clear Mind + hHP fix

Post by diatanato » Fri Sep 14, 2012 12:57 am

Anged_Obscurite wrote:I looked into the hHP issue (especially with Signet) that wasn't healing correctly.
must be

Code: Select all

target:addHP(10+(3*math.floor(target:getMainLvl()/10))+(healtime-2+(1+math.floor(target:getMaxHP()/300)))+(target:getMod(MOD_HPHEAL)));

Anged_Obscurite
Posts: 14
Joined: Wed Sep 05, 2012 10:12 pm

Re: Clear Mind + hHP fix

Post by Anged_Obscurite » Fri Sep 14, 2012 2:37 am

diatanato wrote:
Anged_Obscurite wrote:I looked into the hHP issue (especially with Signet) that wasn't healing correctly.
must be

Code: Select all

target:addHP(10+(3*math.floor(target:getMainLvl()/10))+(healtime-2+(1+math.floor(target:getMaxHP()/300)))+(target:getMod(MOD_HPHEAL)));
Yes, except the fact that the (1+math.floor(target:getMaxHP()/300)) part needs to be multiplied by (healtime-2). At 300~599 MaxHP, hHP increments are 2 (1+floor[(300~599)/300]), and right now this formula does not consider it. It needs to be

Code: Select all

target:addHP(10+(3*math.floor(target:getMainLvl()/10))+(healtime-2)*(1+math.floor(target:getMaxHP()/300)))+(target:getMod(MOD_HPHEAL)));

Post Reply