Turns 90% of vomit into actual vomit (#17697)
* Changes vomit reagent composition * Formatting
This commit is contained in:
@@ -70,11 +70,21 @@ namespace Content.Server.Medical
|
|||||||
_solutionContainer.UpdateChemicals(stomach.Comp.Owner, sol);
|
_solutionContainer.UpdateChemicals(stomach.Comp.Owner, sol);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// And the small bit of the chem stream from earlier
|
// Adds a tiny amount of the chem stream from earlier along with vomit
|
||||||
if (TryComp<BloodstreamComponent>(uid, out var bloodStream))
|
if (TryComp<BloodstreamComponent>(uid, out var bloodStream))
|
||||||
{
|
{
|
||||||
var temp = _solutionContainer.SplitSolution(uid, bloodStream.ChemicalSolution, solutionSize);
|
var chemMultiplier = 0.1;
|
||||||
solution.AddSolution(temp, _proto);
|
var vomitMultiplier = 0.9;
|
||||||
|
|
||||||
|
// Makes a vomit solution the size of 90% of the chemicals removed from the chemstream
|
||||||
|
var vomitAmount = new Solution("Vomit", solutionSize * vomitMultiplier);
|
||||||
|
|
||||||
|
// Takes 10% of the chemicals removed from the chem stream
|
||||||
|
var vomitChemstreamAmount = _solutionContainer.SplitSolution(uid, bloodStream.ChemicalSolution, solutionSize * chemMultiplier);
|
||||||
|
|
||||||
|
_solutionContainer.SplitSolution(uid, bloodStream.ChemicalSolution, solutionSize * vomitMultiplier);
|
||||||
|
solution.AddSolution(vomitAmount, _proto);
|
||||||
|
solution.AddSolution(vomitChemstreamAmount, _proto);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (_puddle.TrySpillAt(uid, solution, out var puddle, false))
|
if (_puddle.TrySpillAt(uid, solution, out var puddle, false))
|
||||||
|
|||||||
@@ -12,3 +12,6 @@ reagent-desc-ichor = An extremely potent regenerative chemical, perfected by spa
|
|||||||
|
|
||||||
reagent-name-fat = fat
|
reagent-name-fat = fat
|
||||||
reagent-desc-fat = No matter how it was obtained, its application is important.
|
reagent-desc-fat = No matter how it was obtained, its application is important.
|
||||||
|
|
||||||
|
reagent-name-vomit = vomit
|
||||||
|
reagent-desc-vomit = You can see a few chunks of someones last meal in it.
|
||||||
|
|||||||
@@ -97,3 +97,21 @@
|
|||||||
color: "#d8d8b0"
|
color: "#d8d8b0"
|
||||||
physicalDesc: reagent-physical-desc-exotic-smelling
|
physicalDesc: reagent-physical-desc-exotic-smelling
|
||||||
slippery: false
|
slippery: false
|
||||||
|
|
||||||
|
- type: reagent
|
||||||
|
id: Vomit
|
||||||
|
name: reagent-name-vomit
|
||||||
|
group: Biological
|
||||||
|
desc: reagent-desc-vomit
|
||||||
|
flavor: terrible
|
||||||
|
color: "#87ab08"
|
||||||
|
physicalDesc: reagent-physical-desc-pungent
|
||||||
|
slippery: true
|
||||||
|
metabolisms:
|
||||||
|
Drink:
|
||||||
|
effects:
|
||||||
|
- !type:SatiateThirst
|
||||||
|
factor: 0.5
|
||||||
|
- !type:AdjustReagent
|
||||||
|
reagent: Nutriment
|
||||||
|
amount: 0.1
|
||||||
|
|||||||
Reference in New Issue
Block a user