Hivelord mob (#31322)

* Hivelord

* make it longah
This commit is contained in:
Nemanja
2024-09-11 09:52:27 -04:00
committed by GitHub
parent 7f76af4da8
commit e510504596
29 changed files with 354 additions and 5 deletions

View File

@@ -115,6 +115,10 @@ public abstract class SharedRottingSystem : EntitySystem
if (!Resolve(uid, ref perishable, false))
return false;
// Overrides all the other checks.
if (perishable.ForceRotProgression)
return true;
// only dead things or inanimate objects can rot
if (TryComp<MobStateComponent>(uid, out var mobState) && !_mobState.IsDead(uid, mobState))
return false;