From ab0016538ed72dc87a473ef3b17215800a3a93de Mon Sep 17 00:00:00 2001 From: Kherae Date: Sun, 24 Nov 2024 15:43:39 -0800 Subject: [PATCH 1/2] it should not use math.abs. as the food delta can go...positive. --- interface/scripted/statWindow/extraStatsWindow.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 From 99f188b9445d3aaa1e778a649cf3fa32a4903584 Mon Sep 17 00:00:00 2001 From: Kherae Date: Mon, 25 Nov 2024 04:49:37 -0800 Subject: [PATCH 2/2] meh --- stats/effects/fu_weaponeffects/bleeding/bleeding.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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