Allow eating and drinking to be cancelled. (#15434)

This commit is contained in:
Leon Friedrich
2023-04-23 17:35:57 +12:00
committed by GitHub
parent ef28cfd55f
commit df1f8dd52a
2 changed files with 0 additions and 3 deletions

View File

@@ -282,7 +282,6 @@ namespace Content.Server.Nutrition.EntitySystems
// Mice and the like can eat without hands. // Mice and the like can eat without hands.
// TODO maybe set this based on some CanEatWithoutHands event or component? // TODO maybe set this based on some CanEatWithoutHands event or component?
NeedHand = forceDrink, NeedHand = forceDrink,
CancelDuplicate = false,
}; };
_doAfterSystem.TryStartDoAfter(doAfterEventArgs); _doAfterSystem.TryStartDoAfter(doAfterEventArgs);

View File

@@ -146,8 +146,6 @@ namespace Content.Server.Nutrition.EntitySystems
// Mice and the like can eat without hands. // Mice and the like can eat without hands.
// TODO maybe set this based on some CanEatWithoutHands event or component? // TODO maybe set this based on some CanEatWithoutHands event or component?
NeedHand = forceFeed, NeedHand = forceFeed,
//Works better with cancel duplicate on because you can just use again to stop
CancelDuplicate = false,
}; };
_doAfterSystem.TryStartDoAfter(doAfterArgs); _doAfterSystem.TryStartDoAfter(doAfterArgs);