Skip to content
Snippets Groups Projects

HealModScaling

Merged Hachem_Muche requested to merge Hachem_Muche/t-engine4:HealModScaling into master
2 files
+ 3
2
Compare changes
  • Side-by-side
  • Inline
Files
2
@@ -3430,7 +3430,8 @@ function _M:onStatChange(stat, v)
self.max_life = math.max(1, self.max_life + multi_life * v) -- no negative max life
-- heal mod
self.healing_factor = self.healing_factor + v * 0.005
if self.stats.hf_id then self:removeTemporaryValue("healing_factor", self.stats.hf_id) end
self.stats.hf_id = self:addTemporaryValue("healing_factor", ((self:getCon()/10)^.5-1)*.25) -- 0 @ 10, 1.54 @ 100
elseif stat == self.STAT_DEX then
self.ignore_direct_crits = (self.ignore_direct_crits or 0) + 0.3 * v
elseif stat == self.STAT_WIL then
Loading