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

From RimWorld Wiki
Jump to navigation Jump to search
(first step: the template creates the whole row now)
(text align. format as market value)
Line 16: Line 16:
 
|-
 
|-
 
! data-sort-value="{{{1}}}" | {{DLC Icons| {{{1}}} }}
 
! data-sort-value="{{{1}}}" | {{DLC Icons| {{{1}}} }}
| {{Icon Small|{{Q|{{{1}}}|Resource 1}} }} {{#expr: {{Q|{{{1}}}|Resource 1 Amount}} * 0.25 round 2}}<!--
+
| style="text-align:left;" | {{Icon Small|{{Q|{{{1}}}|Resource 1}} }} {{#expr: {{Q|{{{1}}}|Resource 1 Amount}} * 0.25 round 2}}<!--
 
-->{{#switch: {{Q|{{{1}}}|Resource 2}} | Advanced component | Chemfuel | Component | = | Gold | Silver = &nbsp;+ {{Icon Small|{{Q|{{{1}}}|Resource 2}} }} {{#expr: {{Q|{{{1}}}|Resource 2 Amount}} * 0.25 / 10 round 2}} | #default = &nbsp;+ {{Icon Small|{{Q|{{{1}}}|Resource 2}} }} {{#expr: {{Q|{{{1}}}|Resource 2 Amount}} * 0.25 round 2}} }}<!--
 
-->{{#switch: {{Q|{{{1}}}|Resource 2}} | Advanced component | Chemfuel | Component | = | Gold | Silver = &nbsp;+ {{Icon Small|{{Q|{{{1}}}|Resource 2}} }} {{#expr: {{Q|{{{1}}}|Resource 2 Amount}} * 0.25 / 10 round 2}} | #default = &nbsp;+ {{Icon Small|{{Q|{{{1}}}|Resource 2}} }} {{#expr: {{Q|{{{1}}}|Resource 2 Amount}} * 0.25 round 2}} }}<!--
 
-->{{#switch: {{Q|{{{1}}}|Resource 3}} | Advanced component | Chemfuel | Component | = | Gold | Silver = &nbsp;+ {{Icon Small|{{Q|{{{1}}}|Resource 3}} }} {{#expr: {{Q|{{{1}}}|Resource 3 Amount}} * 0.25 / 10 round 2}} | #default = &nbsp;+ {{Icon Small|{{Q|{{{1}}}|Resource 3}} }} {{#expr: {{Q|{{{1}}}|Resource 3 Amount}} * 0.25 round 2}} }}<!--
 
-->{{#switch: {{Q|{{{1}}}|Resource 3}} | Advanced component | Chemfuel | Component | = | Gold | Silver = &nbsp;+ {{Icon Small|{{Q|{{{1}}}|Resource 3}} }} {{#expr: {{Q|{{{1}}}|Resource 3 Amount}} * 0.25 / 10 round 2}} | #default = &nbsp;+ {{Icon Small|{{Q|{{{1}}}|Resource 3}} }} {{#expr: {{Q|{{{1}}}|Resource 3 Amount}} * 0.25 round 2}} }}<!--
Line 22: Line 22:
 
-->{{#switch: {{Q|{{{1}}}|Resource 5}} | Advanced component | Chemfuel | Component | = | Gold | Silver = &nbsp;+ {{Icon Small|{{Q|{{{1}}}|Resource 5}} }} {{#expr: {{Q|{{{1}}}|Resource 5 Amount}} * 0.25 / 10 round 2}} | #default = &nbsp;+ {{Icon Small|{{Q|{{{1}}}|Resource 5}} }} {{#expr: {{Q|{{{1}}}|Resource 5 Amount}} * 0.25 round 2}} }}<!--
 
-->{{#switch: {{Q|{{{1}}}|Resource 5}} | Advanced component | Chemfuel | Component | = | Gold | Silver = &nbsp;+ {{Icon Small|{{Q|{{{1}}}|Resource 5}} }} {{#expr: {{Q|{{{1}}}|Resource 5 Amount}} * 0.25 / 10 round 2}} | #default = &nbsp;+ {{Icon Small|{{Q|{{{1}}}|Resource 5}} }} {{#expr: {{Q|{{{1}}}|Resource 5 Amount}} * 0.25 round 2}} }}<!--
 
-->{{#switch: {{Q|{{{1}}}|Resource 6}} | Advanced component | Chemfuel | Component | = | Gold | Silver = &nbsp;+ {{Icon Small|{{Q|{{{1}}}|Resource 6}} }} {{#expr: {{Q|{{{1}}}|Resource 6 Amount}} * 0.25 / 10 round 2}} | #default = &nbsp;+ {{Icon Small|{{Q|{{{1}}}|Resource 6}} }} {{#expr: {{Q|{{{1}}}|Resource 6 Amount}} * 0.25 round 2}} }}
 
-->{{#switch: {{Q|{{{1}}}|Resource 6}} | Advanced component | Chemfuel | Component | = | Gold | Silver = &nbsp;+ {{Icon Small|{{Q|{{{1}}}|Resource 6}} }} {{#expr: {{Q|{{{1}}}|Resource 6 Amount}} * 0.25 / 10 round 2}} | #default = &nbsp;+ {{Icon Small|{{Q|{{{1}}}|Resource 6}} }} {{#expr: {{Q|{{{1}}}|Resource 6 Amount}} * 0.25 round 2}} }}
| {{#var:materialValue}} {{Icon Small|silver}}
+
| style="text-align:right;" | {{Market Value|{{#var:materialValue}} }} {{Icon Small|silver}}
 
{{#ifeq: {{Q|{{{1}}}|Has Quality}} | false
 
{{#ifeq: {{Q|{{{1}}}|Has Quality}} | false
  | {{!}} – {{!!}} – {{!!}} {{Hit Point Market Value Inverse/relative| {{#var:materialValue}} | {{{1}}} || {{#var:sellFactor}} }} {{!!}} – {{!!}} – {{!!}} – {{!!}} –
+
  | {{!}} – {{!!}} – {{!!}} style="text-align:right;" {{!}} {{Hit Point Market Value Inverse/relative| {{#var:materialValue}} | {{{1}}} || {{#var:sellFactor}} }} {{!!}} – {{!!}} – {{!!}} – {{!!}} –
  | {{!}} {{Hit Point Market Value Inverse/relative| {{#var:materialValue}} | {{{1}}} | Awful      | {{#var:sellFactor}} }}
+
  | {{!}} style="text-align:right;" {{!}} {{Hit Point Market Value Inverse/relative| {{#var:materialValue}} | {{{1}}} | Awful      | {{#var:sellFactor}} }}
   {{!}} {{Hit Point Market Value Inverse/relative| {{#var:materialValue}} | {{{1}}} | Poor      | {{#var:sellFactor}} }}
+
   {{!}} style="text-align:right;" {{!}} {{Hit Point Market Value Inverse/relative| {{#var:materialValue}} | {{{1}}} | Poor      | {{#var:sellFactor}} }}
   {{!}} {{Hit Point Market Value Inverse/relative| {{#var:materialValue}} | {{{1}}} | Normal    | {{#var:sellFactor}} }}
+
   {{!}} style="text-align:right;" {{!}} {{Hit Point Market Value Inverse/relative| {{#var:materialValue}} | {{{1}}} | Normal    | {{#var:sellFactor}} }}
   {{!}} {{Hit Point Market Value Inverse/relative| {{#var:materialValue}} | {{{1}}} | Good      | {{#var:sellFactor}} }}
+
   {{!}} style="text-align:right;" {{!}} {{Hit Point Market Value Inverse/relative| {{#var:materialValue}} | {{{1}}} | Good      | {{#var:sellFactor}} }}
   {{!}} {{Hit Point Market Value Inverse/relative| {{#var:materialValue}} | {{{1}}} | Excellent  | {{#var:sellFactor}} }}
+
   {{!}} style="text-align:right;" {{!}} {{Hit Point Market Value Inverse/relative| {{#var:materialValue}} | {{{1}}} | Excellent  | {{#var:sellFactor}} }}
   {{!}} {{Hit Point Market Value Inverse/relative| {{#var:materialValue}} | {{{1}}} | Masterwork | {{#var:sellFactor}} }}
+
   {{!}} style="text-align:right;" {{!}} {{Hit Point Market Value Inverse/relative| {{#var:materialValue}} | {{{1}}} | Masterwork | {{#var:sellFactor}} }}
   {{!}} {{Hit Point Market Value Inverse/relative| {{#var:materialValue}} | {{{1}}} | Legendary  | {{#var:sellFactor}} }}
+
   {{!}} style="text-align:right;" {{!}} {{Hit Point Market Value Inverse/relative| {{#var:materialValue}} | {{{1}}} | Legendary  | {{#var:sellFactor}} }}
 
}}</includeonly><noinclude>
 
}}</includeonly><noinclude>
  

Revision as of 17:02, 16 January 2024


Name Material Return
(on average)
Material Value Awful Sale Value Poor Sale Value Normal Sale Value Good Sale Value Excellent Sale Value Masterwork Sale Value Legendary Sale Value
Autopistol Steel 7.5 14 Silver 14 Silver (never)  20.8 Silver (71.1%) 27.8 Silver (60.8%) 34.8 Silver (57.7%) 42 Silver (56.0%) 69 Silver (52.7%) 139 Silver (50.1%)
Prestige recon armor Content added by the Royalty DLC Plasteel 25 + Uranium 2.5 + Gold 2.25 260 Silver 985 Silver (54.2%) 1480 Silver (51.9%) 1975 Silver (50.8%) 2470 Silver (50.2%) 2960 Silver (44.3%) 3975 Silver (33.0%) 4975 Silver (26.4%)
EMP grenades Steel 5 9.5 Silver 63 Silver (51.3%)
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%)