mirror of
https://github.com/WWhiteDreamProject/wwdpublic.git
synced 2026-04-23 16:48:10 +03:00
Gladiabot Tweaks (#1717)
Signed-off-by: stellar-novas <stellar_novas@riseup.net> (cherry picked from commit b3c27808a6cb00dec49d42e24f6a23b1da37d7c9)
This commit is contained in:
@@ -23,6 +23,10 @@ public sealed partial class NpcFactionSpriteStateSetterSystem : EntitySystem
|
||||
return;
|
||||
|
||||
SpriteComponent spriteComponent = _entityManager.GetComponent<SpriteComponent>(entity);
|
||||
spriteComponent.LayerSetState(0, new Robust.Client.Graphics.RSI.StateId(args.FactionID));
|
||||
|
||||
var rsi = spriteComponent.LayerGetActualRSI(0);
|
||||
|
||||
if(rsi != null && rsi.TryGetState(args.FactionID, out _))
|
||||
spriteComponent.LayerSetState(0, new Robust.Client.Graphics.RSI.StateId(args.FactionID));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user