DRG Healing breath III

Post Reply
Froofles
Posts: 3
Joined: Thu Jul 11, 2013 5:46 pm

DRG Healing breath III

Post by Froofles » Sun Jul 28, 2013 6:53 pm

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;
Last edited by Froofles on Sun Aug 04, 2013 11:16 pm, edited 1 time in total.

User avatar
kjLotus
Special Guest
Posts: 1813
Joined: Sun Jul 22, 2012 2:16 pm

Re: DRG Healing breath III

Post by kjLotus » Sun Jul 28, 2013 7:23 pm

make a .patch file for the changes

Froofles
Posts: 3
Joined: Thu Jul 11, 2013 5:46 pm

Re: DRG Healing breath III

Post by Froofles » Sun Aug 04, 2013 11:16 pm

OK here's the .patch files.
Attachments
item_mods.sql.patch
(2.03 KiB) Downloaded 179 times
Wyvern Breath.patch
(6.2 KiB) Downloaded 193 times

User avatar
kjLotus
Special Guest
Posts: 1813
Joined: Sun Jul 22, 2012 2:16 pm

Re: DRG Healing breath III

Post by kjLotus » Mon Aug 05, 2013 1:16 am

Froofles wrote:OK here's the .patch files.
excellent - me or someone else will take a look sometime soon

Post Reply