Satiety tweaks (#9519)

* Satiety tweaks

* actually lets do this
This commit is contained in:
Kara
2022-07-07 11:21:26 -07:00
committed by GitHub
parent 0d4f7d06a7
commit f092f478f7
8 changed files with 34 additions and 16 deletions

View File

@@ -315,10 +315,21 @@ namespace Content.Server.Nutrition.EntitySystems
// All stomach are full or can't handle whatever solution we have.
if (firstStomach == null)
{
_popupSystem.PopupEntity(Loc.GetString("drink-component-try-use-drink-had-enough-other"),
uid, Filter.Entities(args.User));
_solutionContainerSystem.TryAddSolution(args.Drink.Owner, args.DrinkSolution, drained);
_popupSystem.PopupEntity(Loc.GetString("drink-component-try-use-drink-had-enough"),
uid, Filter.Entities(uid));
if (forceDrink)
{
_popupSystem.PopupEntity(Loc.GetString("drink-component-try-use-drink-had-enough-other"),
uid, Filter.Entities(args.User));
_spillableSystem.SpillAt(uid, drained, "PuddleSmear");
}
else
{
_solutionContainerSystem.TryAddSolution(args.Drink.Owner, args.DrinkSolution, drained);
}
_spillableSystem.SpillAt(uid, drained, "PuddleSmear");
return;
}