Difference between revisions of "Template:Hit Point Market Value Inverse/relative"

From RimWorld Wiki
Jump to navigation Jump to search
(padright)
Line 1: Line 1:
<includeonly>{{#expr: {{Market Value Calculator|{{{2|}}}||{{{3|}}}}} * {{#if: {{{4|}}}|{{{4|}}}|1}}}} {{Icon Small|silver}} ({{#ifeq: {{Hit Point Market Value Inverse|{{{1|}}}|{{#expr: {{Market Value Calculator|{{{2|}}}||{{{3|}}}}} * {{#if: {{{4|}}}|{{{4|}}}|1}}}}}}|never|never|{{#expr: ({{Hit Point Market Value Inverse|{{{1|}}}|{{#expr: {{Market Value Calculator|{{{2|}}}||{{{3|}}}}} * {{#if: {{{4|}}}|{{{4|}}}|1}}}}}} * 100) round 1}}%}})</includeonly><noinclude>
+
<includeonly>{{#expr: {{Market Value Calculator|{{{2|}}}||{{{3|}}} }} * {{#if: {{{4|}}}|{{{4|}}}|1}} }} {{Icon Small|silver}} ({{#ifeq: {{Hit Point Market Value Inverse|{{{1|}}}|{{#expr: {{Market Value Calculator|{{{2|}}}||{{{3|}}} }} * {{#if: {{{4|}}}|{{{4|}}}|1}} }} }}|never|never&nbsp;|{{padright:{{#expr: ({{Hit Point Market Value Inverse|{{{1|}}}|{{#expr: {{Market Value Calculator|{{{2|}}}||{{{3|}}} }} * {{#if: {{{4|}}}|{{{4|}}}|1}} }} }} * 100) round 1}}|4|.0}}%}})</includeonly><noinclude>
{{documentation}}
+
{{Documentation}}
 
</noinclude>
 
</noinclude>

Revision as of 16:58, 16 January 2024

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

{{Hit Point Market Value Inverse/relative|target|item_name|quality|sell_modifier (default 1)}}

sell_price_at_quality Silver (percentage_hit_points_for_target%)

Examples

{{Hit Point Market Value Inverse/relative|20.9|Machine pistol|good|0.2}}

55 Silver (57.0%)