Template:AdjustReagent: Difference between revisions

From Space Station 14 Wiki
(docs)
(cat)
 
(2 intermediate revisions by the same user not shown)
Line 5: Line 5:
{{documentation}}
{{documentation}}


[[Category:Templates without specific category]]
[[Category:Recipe templates]]
[[Category:Templates without documentation pages]]
<templatedata>
<templatedata>
{
{
Line 26: Line 25:
},
},
"reagent": {
"reagent": {
"label": "Reagent name",
"label": "Reagent ID",
"description": "Will be looked up from https://wiki.spacestation14.io/wiki/User:Moony/chem_prototypes.json",
"description": "A reagent ID. See the list here: https://wiki.spacestation14.io/wiki/User:Moony/chem_prototypes.json",
"type": "string",
"type": "string",
"required": true
"required": true

Latest revision as of 17:04, 24 June 2024

Template documentation
view or edit this documentation about template documentation

  • {{AdjustReagent|amount=4|prob=0.1|reagent=Histamine|when=more than 1u lexorin present}}

10% chance to add 4 histamine when more than 1u lexorin present.

  • {{AdjustReagent|amount=-1|prob=0.5|reagent=GrapeSoda|when=slipping on a floor}}

50% chance to remove 1 grape soda when slipping on a floor.

Describes a chance of adding or removing certain reagent when a condition satisfies.

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
Amount of changeamount

Usually a whole number

Default
0
Example
4
Numbersuggested
Probability of a change occurringprob

A number from 0 to 1.

Example
0.4
Numberrequired
Reagent IDreagent

A reagent ID. See the list here: https://wiki.spacestation14.io/wiki/User:Moony/chem_prototypes.json

Stringrequired
Conditionwhen

no description

Example
more than 1u lexorin present
Stringrequired