Difference between revisions of "Template:Entity Research Points"

From RimWorld Wiki
Jump to navigation Jump to search
(Created page with "{{#expr:{{{min_containment}}}-50}},{{#expr:{{{min_containment}}}-0.001}},{{{min_containment}}},{{#expr:{{{min_containment}}}+100}},{{#expr:{{{min_containment}}}+200}},{{#expr:...")
 
 
(8 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{#expr:{{{min_containment}}}-50}},{{#expr:{{{min_containment}}}-0.001}},{{{min_containment}}},{{#expr:{{{min_containment}}}+100}},{{#expr:{{{min_containment}}}+200}},{{#expr:{{{min_containment}}}+300}}{{#vardefine:y_values|{{#expr:{{{points}}}/2}},{{#expr:{{{points}}}/2}},{{{points}}},{{#expr:{{{points}}}*1.3}},{{#expr:{{{points}}}*1.5}},{{#expr:{{{points}}}*1.5}}}}
+
<includeonly>{{#vardefine:containment|{{#expr:{{{containment|0}}}-{{{min_containment|0}}}}}}}{{#expr:{{#ifexpr:{{#var:containment}}<0|0.5|{{#ifexpr:{{#var:containment}}<100|{{#expr:1+{{#var:containment}}*0.003}}|{{#ifexpr:{{#var:containment}}<200|{{#expr:1.1+{{#var:containment}}*0.002}}|1.5}}}}}}*{{{points|0}}}}}</includeonly><noinclude>
 +
{{Documentation}}
 +
</noinclude>

Latest revision as of 11:16, 26 December 2024

Documentation icon Template documentation[view] [edit] [history] [purge]

Calculates entity research points from the base point, minimum containment, and actual containment.

CodeResult
{{Entity Research Points|points=2|containment=100|min_containment=60}}2.24
{{Entity Research Points|points=2|containment=60|min_containment=60}}2