Template:AdjustReagent: Difference between revisions
From Space Station 14 Wiki
(docs) |
(cat) |
||
(4 intermediate revisions by the same user not shown) | |||
Line 5: | Line 5: | ||
{{documentation}} | {{documentation}} | ||
[[Category: | [[Category:Recipe templates]] | ||
<templatedata> | |||
</noinclude> | { | ||
"params": { | |||
"amount": { | |||
"label": "Amount of change", | |||
"description": "Usually a whole number", | |||
"example": "4", | |||
"type": "number", | |||
"default": "0", | |||
"suggested": true | |||
}, | |||
"prob": { | |||
"label": "Probability of a change occurring", | |||
"description": "A number from 0 to 1.", | |||
"example": "0.4", | |||
"type": "number", | |||
"required": true | |||
}, | |||
"reagent": { | |||
"label": "Reagent ID", | |||
"description": "A reagent ID. See the list here: https://wiki.spacestation14.io/wiki/User:Moony/chem_prototypes.json", | |||
"type": "string", | |||
"required": true | |||
}, | |||
"when": { | |||
"label": "Condition", | |||
"example": "more than 1u lexorin present", | |||
"type": "string", | |||
"required": true | |||
} | |||
}, | |||
"description": "Describes a chance of adding or removing certain reagent when a condition satisfies.\n\n" | |||
} | |||
</templatedata></noinclude> |
Latest revision as of 17:04, 24 June 2024
{{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.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Amount of change | amount | Usually a whole number
| Number | suggested |
Probability of a change occurring | prob | A number from 0 to 1.
| Number | required |
Reagent ID | reagent | A reagent ID. See the list here: https://wiki.spacestation14.io/wiki/User:Moony/chem_prototypes.json | String | required |
Condition | when | no description
| String | required |