DRG Healing breath III
Posted: 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
Should be
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
to
this query will adjust the values appropriately in the item_mods table
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);
Code: Select all
local base = math.floor((45/256)*(gear+(pet:getTP()/1024)+deep+1)*(pet:getMaxHP())+42);
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
Code: Select all
local gear = master:getMod(MOD_WYVERN_BREATH)/1024; -- Master gear that enhances breath
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;