Verb predict (#5638)

This commit is contained in:
Leon Friedrich
2021-12-16 23:42:02 +13:00
committed by GitHub
parent 2e141347ed
commit 7e49b22a74
40 changed files with 551 additions and 395 deletions

View File

@@ -62,6 +62,9 @@ namespace Content.Server.Nuke
{
component.RemainingTime = component.Timer;
_itemSlots.AddItemSlot(uid, component.Name, component.DiskSlot);
UpdateStatus(uid, component);
UpdateUserInterface(uid, component);
}
public override void Update(float frameTime)
@@ -101,6 +104,8 @@ namespace Content.Server.Nuke
private void OnItemSlotChanged(EntityUid uid, NukeComponent component, ContainerModifiedMessage args)
{
if (!component.Initialized) return;
if (args.Container.ID != component.DiskSlot.ID)
return;