Flavors on DoAfter, instead of after (#11251)
This commit is contained in:
@@ -94,6 +94,8 @@ namespace Content.Server.Nutrition.EntitySystems
|
||||
if (!_solutionContainerSystem.TryGetSolution(food.Owner, food.SolutionName, out var foodSolution))
|
||||
return false;
|
||||
|
||||
var flavors = _flavorProfileSystem.GetLocalizedFlavorsMessage(food.Owner, user, foodSolution);
|
||||
|
||||
if (food.UsesRemaining <= 0)
|
||||
{
|
||||
_popupSystem.PopupEntity(Loc.GetString("food-system-try-use-food-is-empty",
|
||||
@@ -134,7 +136,7 @@ namespace Content.Server.Nutrition.EntitySystems
|
||||
BreakOnTargetMove = moveBreak,
|
||||
MovementThreshold = 0.01f,
|
||||
DistanceThreshold = 1.0f,
|
||||
TargetFinishedEvent = new FeedEvent(user, food, foodSolution, utensils),
|
||||
TargetFinishedEvent = new FeedEvent(user, food, foodSolution, flavors, utensils),
|
||||
BroadcastCancelledEvent = new ForceFeedCancelledEvent(food),
|
||||
NeedHand = true,
|
||||
});
|
||||
@@ -180,7 +182,7 @@ namespace Content.Server.Nutrition.EntitySystems
|
||||
split.DoEntityReaction(uid, ReactionMethod.Ingestion);
|
||||
_stomachSystem.TryTransferSolution(firstStomach.Value.Comp.Owner, split, firstStomach.Value.Comp);
|
||||
|
||||
var flavors = _flavorProfileSystem.GetLocalizedFlavorsMessage(args.Food.Owner, args.User, split);
|
||||
var flavors = args.FlavorMessage;
|
||||
|
||||
if (forceFeed)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user