Pet Carrier (Zookeeper gameplay?) (#21545)

* add visual

* fix item + entityStorage problem, add generation in maints

* make pet carrier two-handed

* added to cargo

* add resistlocker component
This commit is contained in:
Ed
2023-11-14 02:55:47 +03:00
committed by GitHub
parent 126c1bbab4
commit 786bb79ebc
13 changed files with 122 additions and 2 deletions

View File

@@ -1,4 +1,4 @@
using System.Diagnostics.CodeAnalysis;
using System.Diagnostics.CodeAnalysis;
using System.Linq;
using System.Numerics;
using Content.Shared.Body.Components;
@@ -413,6 +413,9 @@ public abstract class SharedEntityStorageSystem : EntitySystem
var storeEv = new StoreMobInItemContainerAttemptEvent();
RaiseLocalEvent(container, ref storeEv);
allowedToEat = storeEv is { Handled: true, Cancelled: false };
if (component.ItemCanStoreMobs)
allowedToEat = true;
}
}