Make kitchen spikes slightly more logical (#10343)
This commit is contained in:
@@ -135,13 +135,13 @@ namespace Content.Server.Kitchen.EntitySystems
|
|||||||
}
|
}
|
||||||
|
|
||||||
private bool TryGetPiece(EntityUid uid, EntityUid user, EntityUid used,
|
private bool TryGetPiece(EntityUid uid, EntityUid user, EntityUid used,
|
||||||
KitchenSpikeComponent? component = null, UtensilComponent? utensil = null)
|
KitchenSpikeComponent? component = null, SharpComponent? sharp = null)
|
||||||
{
|
{
|
||||||
if (!Resolve(uid, ref component) || component.PrototypesToSpawn == null || component.PrototypesToSpawn.Count == 0)
|
if (!Resolve(uid, ref component) || component.PrototypesToSpawn == null || component.PrototypesToSpawn.Count == 0)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
// Is using knife
|
// Is using knife
|
||||||
if (!Resolve(used, ref utensil, false) || (utensil.Types & UtensilType.Knife) == 0)
|
if (!Resolve(used, ref sharp, false) )
|
||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user