mirror of
https://github.com/Anuken/Mindustry.git
synced 2026-01-30 04:10:41 -08:00
Healing Status Effect Stat (#5304)
* Up * Ground * Healing Very tiny change
This commit is contained in:
parent
dd0b5f791c
commit
39d725d5ff
3 changed files with 3 additions and 0 deletions
|
|
@ -737,6 +737,7 @@ stat.speedmultiplier = Speed Multiplier
|
|||
stat.reloadmultiplier = Reload Multiplier
|
||||
stat.buildspeedmultiplier = Build Speed Multiplier
|
||||
stat.reactive = Reacts
|
||||
stat.healing = Healing
|
||||
|
||||
ability.forcefield = Force Field
|
||||
ability.repairfield = Repair Field
|
||||
|
|
|
|||
|
|
@ -76,6 +76,7 @@ public class StatusEffect extends UnlockableContent{
|
|||
if(reloadMultiplier != 1) stats.addPercent(Stat.reloadMultiplier, reloadMultiplier);
|
||||
if(buildSpeedMultiplier != 1) stats.addPercent(Stat.buildSpeedMultiplier, buildSpeedMultiplier);
|
||||
if(damage > 0) stats.add(Stat.damage, damage * 60f, StatUnit.perSecond);
|
||||
if(damage < 0) stats.add(Stat.healing, -(damage * 60f), StatUnit.perSecond);
|
||||
|
||||
boolean reacts = false;
|
||||
|
||||
|
|
|
|||
|
|
@ -40,6 +40,7 @@ public enum Stat{
|
|||
reloadMultiplier,
|
||||
buildSpeedMultiplier,
|
||||
reactive,
|
||||
healing,
|
||||
|
||||
itemCapacity(StatCat.items),
|
||||
itemsMoved(StatCat.items),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue