StrippableSystem doafter overhaul (#25994)

* Initial commit

* Fixed short circuiting

* Use DebugTools

* Use Entity<TComp> more, and make them nullable

* Bring these two together
This commit is contained in:
Krunklehorn
2024-03-14 22:57:52 -04:00
committed by GitHub
parent 0fdb551c3d
commit 41ca8f3dfc
7 changed files with 517 additions and 357 deletions

View File

@@ -95,7 +95,7 @@ public sealed class ToggleableClothingSystem : EntitySystem
if (component.StripDelay == null)
return;
var (time, stealth) = _strippable.GetStripTimeModifiers(user, wearer, (float) component.StripDelay.Value.TotalSeconds);
var (time, stealth) = _strippable.GetStripTimeModifiers(user, wearer, component.StripDelay.Value);
var args = new DoAfterArgs(EntityManager, user, time, new ToggleClothingDoAfterEvent(), item, wearer, item)
{