Display popup when butchering with the wrong tool (#18023)
This commit is contained in:
@@ -54,7 +54,10 @@ public sealed class SharpSystem : EntitySystem
|
||||
return;
|
||||
|
||||
if (butcher.Type != ButcheringType.Knife)
|
||||
{
|
||||
_popupSystem.PopupEntity(Loc.GetString("butcherable-different-tool", ("target", target)), knife, user);
|
||||
return;
|
||||
}
|
||||
|
||||
if (TryComp<MobStateComponent>(target, out var mobState) && !_mobStateSystem.IsDead(target, mobState))
|
||||
return;
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
butcherable-knife-butchered-success = You butcher { THE($target) } with { THE($knife) }.
|
||||
butcherable-different-tool = You are going to need a different tool to butcher { THE($target) }.
|
||||
butcherable-knife-butchered-success = You butcher { THE($target) } with { THE($knife) }.
|
||||
butcherable-need-knife = Use a sharp object to butcher { THE($target) }.
|
||||
butcherable-not-in-container = { CAPITALIZE(THE($target)) } can't be in a container.
|
||||
butcherable-mob-isnt-dead = Needs to be dead.
|
||||
|
||||
Reference in New Issue
Block a user