Refactors stunnable to be ECS. (#4819)
Also cleans up StandingStatesystem.
This commit is contained in:
committed by
GitHub
parent
19a588a70a
commit
6eee256b11
@@ -20,8 +20,15 @@ namespace Content.Shared.Hands
|
||||
|
||||
public void DropHandItems(IEntity entity, bool doMobChecks = true)
|
||||
{
|
||||
if (!entity.TryGetComponent(out SharedHandsComponent? handsComponent)) return;
|
||||
DropHandItems(handsComponent, doMobChecks);
|
||||
DropHandItems(entity.Uid, doMobChecks);
|
||||
}
|
||||
|
||||
public void DropHandItems(EntityUid uid, bool doMobChecks = true, SharedHandsComponent? hands = null)
|
||||
{
|
||||
if (!Resolve(uid, ref hands))
|
||||
return;
|
||||
|
||||
DropHandItems(hands, doMobChecks);
|
||||
}
|
||||
|
||||
private void DropHandItems(SharedHandsComponent handsComponent, bool doMobChecks = true)
|
||||
|
||||
Reference in New Issue
Block a user