Page 1 of 1

DRG Healing breath III

Posted: Sun Jul 28, 2013 6:53 pm
by Froofles
OK so not sure if this is the appropriate way to post this, so if this is the wrong way please let me know.

Healing Breath III fix (not completely, as i still need to figure out how to add a wyvern hp+ mod)

Currently

Code: Select all

   local base = math.floor((45/256)*(gear+(pet:getTP()/1024)+deep+1)*(pet:getHP())+42); 
Should be

Code: Select all

   local base = math.floor((45/256)*(gear+(pet:getTP()/1024)+deep+1)*(pet:getMaxHP())+42);  
Healing breath is based on MAX hp, not current hp.

Also the MOD_WYVERN_BREATH figures are way off. It seems that elemental breath and healing breath information was mixed up when this was coded. With the current formula only adding a modifier of .167 for Wyrm Armet. Which would be correct for an elemental breath, healing breath however should be .667. In order to get these figures the most acccurate, the values in item_mod.sql need to be adjusted.

This statement in the .lua for each of the elemental breaths will need to be changed as well.
From

Code: Select all

local gear = master:getMod(MOD_WYVERN_BREATH)/256; -- Master gear that enhances breath
to

Code: Select all

local gear = master:getMod(MOD_WYVERN_BREATH)/1024; -- Master gear that enhances breath
this query will adjust the values appropriately in the item_mods table

Code: Select all

UPDATE item_mods
SET value = 29
WHERE value = 5
AND modId = 402;

UPDATE item_mods
SET value = 244
WHERE itemId = 10663
AND modId = 402;

UPDATE item_mods
SET value = 171
WHERE value = 30
AND modId = 402;

UPDATE item_mods
SET value = 148
WHERE value = 25
AND modId = 402;

Re: DRG Healing breath III

Posted: Sun Jul 28, 2013 7:23 pm
by kjLotus
make a .patch file for the changes

Re: DRG Healing breath III

Posted: Sun Aug 04, 2013 11:16 pm
by Froofles
OK here's the .patch files.

Re: DRG Healing breath III

Posted: Mon Aug 05, 2013 1:16 am
by kjLotus
Froofles wrote:OK here's the .patch files.
excellent - me or someone else will take a look sometime soon