Template:Meat Leather Curve

From RimWorld Wiki
Jump to navigation Jump to search
Documentation icon Template documentation[view] [edit] [history] [purge]

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

For a number Q it returns:

  • If Q > 40: The closest integer.
  • Else, If Q>5: 26/35*Q + 40*9/35 = (26*Q+360)/35, Rounded to the closest integer
  • In any other case, (14/5)*Q = 2.8*Q , rounded to the closest integer.


Examples:

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

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

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