diff --git a/interface/scripted/statWindow/extraStatsWindow.lua b/interface/scripted/statWindow/extraStatsWindow.lua index 050140034a9..de2f74a23f5 100644 --- a/interface/scripted/statWindow/extraStatsWindow.lua +++ b/interface/scripted/statWindow/extraStatsWindow.lua @@ -48,7 +48,7 @@ function update() elseif type == "food" then local foodVal=status.isResource("food") and status.resourceMax("food") or 0 if foodVal~=0 then - value=math.abs(shorten(foodVal/(value*60.0))) + value=shorten(foodVal/(value*60.0))*-1 if value % 1 == 0 then widget.setText(stat, tostring(math.floor(value))) else diff --git a/stats/effects/fu_weaponeffects/bleeding/bleeding.lua b/stats/effects/fu_weaponeffects/bleeding/bleeding.lua index b5f74919e1f..8db1a8d4198 100644 --- a/stats/effects/fu_weaponeffects/bleeding/bleeding.lua +++ b/stats/effects/fu_weaponeffects/bleeding/bleeding.lua @@ -1,4 +1,5 @@ function init() + self.source=effect.sourceEntity() animator.setParticleEmitterOffsetRegion("healing", mcontroller.boundBox()) animator.setParticleEmitterEmissionRate("healing", config.getParameter("emissionRate", 3)) animator.setParticleEmitterActive("healing", true) @@ -24,7 +25,7 @@ function update(dt) damageType = "IgnoresDef", damage = damageVal, damageSourceKind = "bow", - sourceEntityId = entity.id() + sourceEntityId = self.source }) end end