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

@@ -24,7 +24,7 @@ namespace Content.Server.Body.Components
/// Initial internal solution storage volume /// Initial internal solution storage volume
/// </summary> /// </summary>
[DataField("maxVolume")] [DataField("maxVolume")]
public FixedPoint2 InitialMaxVolume { get; private set; } = FixedPoint2.New(20); public FixedPoint2 InitialMaxVolume { get; private set; } = FixedPoint2.New(50);
/// <summary> /// <summary>
/// Time in seconds between reagents being ingested and them being /// Time in seconds between reagents being ingested and them being

View File

@@ -290,7 +290,7 @@ namespace Content.Server.Chemistry.Components
return; return;
} }
var actualVolume = FixedPoint2.Min(individualVolume, FixedPoint2.New(20)); var actualVolume = FixedPoint2.Min(individualVolume, FixedPoint2.New(25));
for (int i = 0; i < pillAmount; i++) for (int i = 0; i < pillAmount; i++)
{ {
var pill = _entities.SpawnEntity("Pill", _entities.GetComponent<TransformComponent>(Owner).Coordinates); var pill = _entities.SpawnEntity("Pill", _entities.GetComponent<TransformComponent>(Owner).Coordinates);

View File

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

View File

@@ -22,7 +22,7 @@ chem-master-window-packaging-text = Packaging
chem-master-current-text-label = Label: chem-master-current-text-label = Label:
chem-master-window-pills-label = Pills: chem-master-window-pills-label = Pills:
chem-master-window-pill-type-label = Pill type: chem-master-window-pill-type-label = Pill type:
chem-master-window-max-pills-volume-text = max 20u/each chem-master-window-max-pills-volume-text = max 25u/each
chem-master-window-max-bottles-volume-text = max 30u/each chem-master-window-max-bottles-volume-text = max 30u/each
chem-master-window-create-pill-button = Create chem-master-window-create-pill-button = Create
chem-master-window-create-bottle-button = Create chem-master-window-create-bottle-button = Create

View File

@@ -0,0 +1,7 @@
- type: entity
id: OrganReptilianStomach
parent: OrganAnimalStomach
noSpawn: true
components:
- type: Stomach
maxVolume: 50

View File

@@ -28,7 +28,7 @@
mechanisms: mechanisms:
- OrganAnimalHeart - OrganAnimalHeart
- OrganHumanLungs - OrganHumanLungs
- OrganAnimalStomach - OrganReptilianStomach
- OrganAnimalLiver - OrganAnimalLiver
- OrganHumanKidneys - OrganHumanKidneys
# criticalThreshold: 100 # criticalThreshold: 100

View File

@@ -123,7 +123,7 @@
- type: SolutionContainerManager - type: SolutionContainerManager
solutions: solutions:
food: food:
maxVol: 20 maxVol: 25
reagents: reagents:
- ReagentId: Dexalin - ReagentId: Dexalin
Quantity: 15 Quantity: 15
@@ -136,7 +136,7 @@
- type: SolutionContainerManager - type: SolutionContainerManager
solutions: solutions:
food: food:
maxVol: 20 maxVol: 25
reagents: reagents:
- ReagentId: Dylovene - ReagentId: Dylovene
Quantity: 15 Quantity: 15
@@ -149,7 +149,7 @@
- type: SolutionContainerManager - type: SolutionContainerManager
solutions: solutions:
food: food:
maxVol: 20 maxVol: 25
reagents: reagents:
- ReagentId: Hyronalin - ReagentId: Hyronalin
Quantity: 15 Quantity: 15
@@ -162,7 +162,7 @@
- type: SolutionContainerManager - type: SolutionContainerManager
solutions: solutions:
food: food:
maxVol: 20 maxVol: 25
reagents: reagents:
- ReagentId: Iron - ReagentId: Iron
Quantity: 15 Quantity: 15
@@ -175,7 +175,7 @@
- type: SolutionContainerManager - type: SolutionContainerManager
solutions: solutions:
food: food:
maxVol: 20 maxVol: 25
reagents: reagents:
- ReagentId: Kelotane - ReagentId: Kelotane
Quantity: 15 Quantity: 15
@@ -188,7 +188,7 @@
- type: SolutionContainerManager - type: SolutionContainerManager
solutions: solutions:
food: food:
maxVol: 20 maxVol: 25
reagents: reagents:
- ReagentId: SpaceDrugs - ReagentId: SpaceDrugs
Quantity: 15 Quantity: 15
@@ -201,7 +201,7 @@
- type: SolutionContainerManager - type: SolutionContainerManager
solutions: solutions:
food: food:
maxVol: 20 maxVol: 25
reagents: reagents:
- ReagentId: Tricordrazine - ReagentId: Tricordrazine
Quantity: 15 Quantity: 15
@@ -214,7 +214,7 @@
- type: SolutionContainerManager - type: SolutionContainerManager
solutions: solutions:
food: food:
maxVol: 20 maxVol: 25
reagents: reagents:
- ReagentId: Romerol - ReagentId: Romerol
Quantity: 10 Quantity: 10

View File

@@ -272,7 +272,7 @@
- type: SolutionContainerManager - type: SolutionContainerManager
solutions: solutions:
food: food:
maxVol: 20 maxVol: 25
- type: SolutionSpiker - type: SolutionSpiker
sourceSolution: food sourceSolution: food
- type: DeleteOnTrigger - type: DeleteOnTrigger