Difference between revisions of "Template:Meat Leather Curve"

From RimWorld Wiki
Jump to navigation Jump to search
(created template)
 
m
Line 4: Line 4:
 
Examples:  
 
Examples:  
  
<nowiki>{{Meat Leather Curve|100}}</nowiki> -> {{Meat Leather Curve|100}}
+
<code><nowiki>{{Meat Leather Curve|100}}</nowiki></code> -> {{Meat Leather Curve|100}}
  
<nowiki>{{Meat Leather Curve|23}}</nowiki> -> {{Meat Leather Curve|23}}
+
<code><nowiki>{{Meat Leather Curve|23}}</nowiki></code> -> {{Meat Leather Curve|23}}
  
<nowiki>{{Meat Leather Curve|2}}</nowiki> -> {{Meat Leather Curve|2}}
+
<code><nowiki>{{Meat Leather Curve|2}}</nowiki></code> -> {{Meat Leather Curve|2}}
 
+
</noinclude>
<noinclude/><includeonly>
+
<includeonly>{{#ifexpr: {{{1}}} > 40
{{#ifexpr: {{{1}}} > 40
 
 
   | {{#expr: {{{1}}} round 0}}
 
   | {{#expr: {{{1}}} round 0}}
 
   | {{#ifexpr: {{{1}}} > 5
 
   | {{#ifexpr: {{{1}}} > 5

Revision as of 14:37, 26 September 2021

Implements the Meat Amount and Leather Amount post-processing curve.

Examples:

{{Meat Leather Curve|100}} -> 100

{{Meat Leather Curve|23}} -> 27

{{Meat Leather Curve|2}} -> 6