Metabolism 3.0 (#5157)
* basic system + convert all plantmetabolism * stragglers * convert all old metabolisms over * fix YAML errors + dumb serialization issue * remove unused thingy * reimplement * add organ type condition * organtype condition but real * cleanups + test fix * metabolismtype -> metabolizertype * solution resilience * fixes * serializer + use entityuid + hashset * this is apparently an entirely different thing * turns out it just works * oops
This commit is contained in:
@@ -320,6 +320,7 @@ namespace Content.Shared.StatusEffect
|
||||
|
||||
var timer = status.ActiveEffects[key].Cooldown;
|
||||
timer.Item2 += time;
|
||||
status.ActiveEffects[key].Cooldown = timer;
|
||||
|
||||
return true;
|
||||
}
|
||||
@@ -347,6 +348,7 @@ namespace Content.Shared.StatusEffect
|
||||
return false;
|
||||
|
||||
timer.Item2 -= time;
|
||||
status.ActiveEffects[key].Cooldown = timer;
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user