Шаблон:GameDataStockParts: различия между версиями

imported>Gesugao-san
м (Fix example and add new one.)
imported>Gesugao-san
м (Add links and some misc text.)
 
Строка 81: Строка 81:


=Description=
=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 <br>It's mostly meant for the [[Guide to robotics]] wiki page.
This template is meant to contain the current tier rating, energy rating and [[power]] capacity of [[Stock Parts]] and [[Power cell|Power cells]], found here: http://github.com/tgstation/tgstation/blob/master/code/modules/research/stock_parts.dm#L258 <br>
It's mostly meant for the [[Guide to robotics]] wiki page.


More about <code>#explode</code>: https://www.mediawiki.org/wiki/Extension:StringFunctions##replace
Read more about <code>#explode</code> function: http://mediawiki.org/wiki/Extension:StringFunctions##explode
=Example=
=Example=
Example using formula for getting a:
Example using formula for getting:
* [[Scanning Module]] Tier 2 energy rating: '''{{#explode:{{#explode:{{GameDataStockParts}}|;|0}}|, |2}}'''
* [[Scanning Module]] Tier 2 energy rating: '''{{#explode:{{#explode:{{GameDataStockParts}}|;|0}}|, |2}}'''
* [[Power cell]] Tier 2 energy capacity: '''{{#explode:{{#explode:{{GameDataStockParts}}|;|1}}|, |3}}'''</noinclude>
* [[Power cell]] Tier 2 energy capacity: '''{{#explode:{{#explode:{{GameDataStockParts}}|;|1}}|, |3}}'''</noinclude>

Текущая версия от 12:01, 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 Standard Power Cell (1 kW) High-Capacity Power Cell (10 kW) Super-Capacity Power Cell (20 kW) Hyper-Capacity Power Cell (30 kW) Bluespace Power Cell (40 kW)
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 tier rating, energy rating and power capacity of Stock Parts and Power cells, found here: http://github.com/tgstation/tgstation/blob/master/code/modules/research/stock_parts.dm#L258
It's mostly meant for the Guide to robotics wiki page.

Read more about #explode function: http://mediawiki.org/wiki/Extension:StringFunctions##explode

Example

Example using formula for getting:

  • 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}}