Шаблон:GameDataStockParts: различия между версиями
Перейти к навигации
Перейти к поиску
imported>Gesugao-san (Create template as shortcut to game data about Stock Parts and Power cells.) |
imported>Gesugao-san м (Fix example and add new one.) |
||
Строка 85: | Строка 85: | ||
More about <code>#explode</code>: https://www.mediawiki.org/wiki/Extension:StringFunctions##replace | More about <code>#explode</code>: https://www.mediawiki.org/wiki/Extension:StringFunctions##replace | ||
=Example= | =Example= | ||
Example using formula for getting a [[Scanning Module]] Tier 2 energy rating: '''{{#explode:{{#explode:{{GameDataStockParts}}|;|0}}|, |2}}}'''</noinclude> | Example using formula for getting a: | ||
* [[Scanning Module]] Tier 2 energy rating: '''{{#explode:{{#explode:{{GameDataStockParts}}|;|0}}|, |2}}''' | |||
* [[Power cell]] Tier 2 energy capacity: '''{{#explode:{{#explode:{{GameDataStockParts}}|;|1}}|, |3}}'''</noinclude> |
Версия от 14:42, 6 апреля 2023
0, 1, 3, 5, 10; 0, 1, 10, 20, 30, 40
Data table
Capacitor | None | Capacitor | Advanced Capacitor | Super Capacitor | Quadratic Capacitor |
---|---|---|---|---|---|
Scanning Module | None | Scanning Module | Advanced Scanning Module | Phasic Scanning Module | Triphasic Scanning Module |
Manipulator | None | ||||
Micro-laser | None | ||||
Matter bin | None | ||||
Tier: | 0 | 1 | 2 | 3 | 4 |
Energy rating: | 0 | 1 | 3 | 5 | 10 |
Power cell | None | |||||
---|---|---|---|---|---|---|
Tier: | 0 | 0 | 1 | 2 | 3 | 4 |
Power capacity(in kW): | 0 | 1 | 10 | 20 | 30 | 40 |
Description
This template is meant to contain the current general rating and energy rating of Stock Parts, found here: https://github.com/tgstation/tgstation/blob/master/code/modules/research/stock_parts.dm
It's mostly meant for the Guide to robotics wiki page.
More about #explode
: https://www.mediawiki.org/wiki/Extension:StringFunctions##replace
Example
Example using formula for getting a:
- Scanning Module Tier 2 energy rating: {{#explode:{{#explode:0, 1, 3, 5, 10; 0, 1, 10, 20, 30, 40|;|0}}|, |2}}
- Power cell Tier 2 energy capacity: {{#explode:{{#explode:0, 1, 3, 5, 10; 0, 1, 10, 20, 30, 40|;|1}}|, |3}}