I'm trying to allow adding a "blood" item into tool cupboard with CanAcceptItem hook, but nothing.
Here is my code:
ItemContainer.CanAcceptResult? CanAcceptItem(ItemContainer container, Item item, int targetPos)
{
if (container == null || item == null) return null;
if (container.entityOwner == null) return null;
if (container.entityOwner.ShortPrefabName == "cupboard.tool.deployed" && item.info.shortname == "blood")
{
return ItemContainer.CanAcceptResult.CanAccept;
}
return null;
}Is it possible to override cupboard behavior at all?
Desc: I'm using blood as "flag" in my raid capture the flag plugin.