Merge pull request #957 from FL-OZ/fix_recipes_and_SLURP

Fix recipes and global slurrrpp
This commit is contained in:
Víctor Aguilera Puerto
2020-05-22 23:28:46 +02:00
committed by GitHub
3 changed files with 7 additions and 6 deletions

View File

@@ -9,6 +9,7 @@ using Content.Shared.Interfaces;
using Content.Shared.Maths; using Content.Shared.Maths;
using Robust.Server.GameObjects; using Robust.Server.GameObjects;
using Robust.Server.GameObjects.EntitySystems; using Robust.Server.GameObjects.EntitySystems;
using Robust.Shared.Audio;
using Robust.Shared.GameObjects; using Robust.Shared.GameObjects;
using Robust.Shared.Interfaces.GameObjects; using Robust.Shared.Interfaces.GameObjects;
using Robust.Shared.IoC; using Robust.Shared.IoC;
@@ -126,7 +127,7 @@ namespace Content.Server.GameObjects.Components.Nutrition
{ {
var entitySystemManager = IoCManager.Resolve<IEntitySystemManager>(); var entitySystemManager = IoCManager.Resolve<IEntitySystemManager>();
var audioSystem = entitySystemManager.GetEntitySystem<AudioSystem>(); var audioSystem = entitySystemManager.GetEntitySystem<AudioSystem>();
audioSystem.Play(_useSound); audioSystem.Play(_useSound, Owner, AudioParams.Default.WithVolume(-2f));
user.PopupMessage(user, _localizationManager.GetString("Slurp")); user.PopupMessage(user, _localizationManager.GetString("Slurp"));
} }
} }

View File

@@ -295,7 +295,7 @@
- type: entity - type: entity
parent: FoodBase parent: FoodBase
id: FoodSpagettiBoiled id: FoodSpaghettiBoiled
name: Boiled spaghetti name: Boiled spaghetti
description: A plain dish of noodles, this sucks. description: A plain dish of noodles, this sucks.
components: components:

View File

@@ -174,12 +174,12 @@
- type: microwaveMealRecipe - type: microwaveMealRecipe
id: RecipeBoiledSpaghetti id: RecipeBoiledSpaghetti
name: Boiled Spaghetti Recipe name: Boiled Spaghetti Recipe
result: FoodSpagettiBoiled result: FoodSpaghettiBoiled
time: 5 time: 5
reagents: reagents:
chem.H2O: 5 chem.H2O: 5
solids: solids:
FoodSpagetti: 1 FoodSpaghetti: 1
- type: microwaveMealRecipe - type: microwaveMealRecipe
id: RecipePastaTomato id: RecipePastaTomato
@@ -189,7 +189,7 @@
reagents: reagents:
chem.H2O: 5 chem.H2O: 5
solids: solids:
FoodSpagetti: 1 FoodSpaghetti: 1
FoodTomato: 2 FoodTomato: 2
- type: microwaveMealRecipe - type: microwaveMealRecipe
@@ -200,7 +200,7 @@
reagents: reagents:
chem.H2O: 5 chem.H2O: 5
solids: solids:
FoodSpagetti: 1 FoodSpaghetti: 1
FoodMeatball: 2 FoodMeatball: 2
- type: microwaveMealRecipe - type: microwaveMealRecipe