Difference between revisions of "Template:Meat Leather Curve"

From RimWorld Wiki
Jump to navigation Jump to search
(created template)
 
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<noinclude>
+
<noinclude>[[Category: Math templates]] {{Documentation wanted}}
 
Implements the [[Meat Amount]] and [[Leather Amount]] post-processing curve.
 
Implements the [[Meat Amount]] and [[Leather Amount]] post-processing curve.
  
 
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

Latest revision as of 13:04, 26 March 2023

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