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

From RimWorld Wiki
Jump to navigation Jump to search
(doc)
(first step: the template creates the whole row now)
Line 1: Line 1:
<includeonly>{{{1|}}} {{Icon Small|silver}}
+
<includeonly><!--
| {{Hit Point Market Value Inverse/relative|{{{1|}}}|{{{2|}}}|Awful|{{{3|}}} }}
+
 
| {{Hit Point Market Value Inverse/relative|{{{1|}}}|{{{2|}}}|Poor|{{{3|}}} }}
+
VARIABLES
| {{Hit Point Market Value Inverse/relative|{{{1|}}}|{{{2|}}}|Normal|{{{3|}}} }}
+
-->{{#vardefine:sellFactor    | {{#ifeq: {{Q|{{{1}}}|Type2}} | Weapons | 0.2 |1}} }}<!--
| {{Hit Point Market Value Inverse/relative|{{{1|}}}|{{{2|}}}|Good|{{{3|}}} }}
+
-->{{#vardefine:materialValue | {{#expr: 0
| {{Hit Point Market Value Inverse/relative|{{{1|}}}|{{{2|}}}|Excellent|{{{3|}}} }}
+
{{#switch: {{Q|{{{1}}}|Resource 1}} | Advanced component | Chemfuel | Component | = | Gold | Silver = + {{Q|{{{1}}}|Resource 1 Amount}} * 0.25 * {{Q|{{Q|{{{1}}}|Resource 1}}|Market Value Base}} / 10 | #default = + {{Q|{{{1}}}|Resource 1 Amount}} * 0.25 * {{Q|{{Q|{{{1}}}|Resource 1}}|Market Value Base}} }}
| {{Hit Point Market Value Inverse/relative|{{{1|}}}|{{{2|}}}|Masterwork|{{{3|}}} }}
+
{{#switch: {{Q|{{{1}}}|Resource 2}} | Advanced component | Chemfuel | Component | = | Gold | Silver = + {{Q|{{{1}}}|Resource 2 Amount}} * 0.25 * {{Q|{{Q|{{{1}}}|Resource 2}}|Market Value Base}} / 10 | #default = + {{Q|{{{1}}}|Resource 2 Amount}} * 0.25 * {{Q|{{Q|{{{1}}}|Resource 2}}|Market Value Base}} }}
| {{Hit Point Market Value Inverse/relative|{{{1|}}}|{{{2|}}}|Legendary|{{{3|}}} }}</includeonly><noinclude>{{Documentation|Template:Hit Point Market Value Inverse/relative/doc}}</noinclude>
+
{{#switch: {{Q|{{{1}}}|Resource 3}} | Advanced component | Chemfuel | Component | = | Gold | Silver = + {{Q|{{{1}}}|Resource 3 Amount}} * 0.25 * {{Q|{{Q|{{{1}}}|Resource 3}}|Market Value Base}} / 10 | #default = + {{Q|{{{1}}}|Resource 3 Amount}} * 0.25 * {{Q|{{Q|{{{1}}}|Resource 3}}|Market Value Base}} }}
 +
{{#switch: {{Q|{{{1}}}|Resource 4}} | Advanced component | Chemfuel | Component | = | Gold | Silver = + {{Q|{{{1}}}|Resource 4 Amount}} * 0.25 * {{Q|{{Q|{{{1}}}|Resource 4}}|Market Value Base}} / 10 | #default = + {{Q|{{{1}}}|Resource 4 Amount}} * 0.25 * {{Q|{{Q|{{{1}}}|Resource 4}}|Market Value Base}} }}
 +
{{#switch: {{Q|{{{1}}}|Resource 5}} | Advanced component | Chemfuel | Component | = | Gold | Silver = + {{Q|{{{1}}}|Resource 5 Amount}} * 0.25 * {{Q|{{Q|{{{1}}}|Resource 5}}|Market Value Base}} / 10 | #default = + {{Q|{{{1}}}|Resource 5 Amount}} * 0.25 * {{Q|{{Q|{{{1}}}|Resource 5}}|Market Value Base}} }}
 +
{{#switch: {{Q|{{{1}}}|Resource 6}} | Advanced component | Chemfuel | Component | = | Gold | Silver = + {{Q|{{{1}}}|Resource 6 Amount}} * 0.25 * {{Q|{{Q|{{{1}}}|Resource 6}}|Market Value Base}} / 10 | #default = + {{Q|{{{1}}}|Resource 6 Amount}} * 0.25 * {{Q|{{Q|{{{1}}}|Resource 6}}|Market Value Base}} }}
 +
}} }}<!--
 +
 
 +
TABLE ROW
 +
-->
 +
|-
 +
! data-sort-value="{{{1}}}" | {{DLC Icons| {{{1}}} }}
 +
| {{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 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 4}} | Advanced component | Chemfuel | Component | = | Gold | Silver = &nbsp;+ {{Icon Small|{{Q|{{{1}}}|Resource 4}} }} {{#expr: {{Q|{{{1}}}|Resource 4 Amount}} * 0.25 / 10 round 2}} | #default = &nbsp;+ {{Icon Small|{{Q|{{{1}}}|Resource 4}} }} {{#expr: {{Q|{{{1}}}|Resource 4 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}} }}
 +
| {{#var:materialValue}} {{Icon Small|silver}}
 +
{{#ifeq: {{Q|{{{1}}}|Has Quality}} | false
 +
| {{!}} – {{!!}} – {{!!}} {{Hit Point Market Value Inverse/relative| {{#var:materialValue}} | {{{1}}} || {{#var:sellFactor}} }} {{!!}} – {{!!}} – {{!!}} – {{!!}}
 +
| {{!}} {{Hit Point Market Value Inverse/relative| {{#var:materialValue}} | {{{1}}} | Awful      | {{#var:sellFactor}} }}
 +
  {{!}} {{Hit Point Market Value Inverse/relative| {{#var:materialValue}} | {{{1}}} | Poor      | {{#var:sellFactor}} }}
 +
  {{!}} {{Hit Point Market Value Inverse/relative| {{#var:materialValue}} | {{{1}}} | Normal    | {{#var:sellFactor}} }}
 +
  {{!}} {{Hit Point Market Value Inverse/relative| {{#var:materialValue}} | {{{1}}} | Good      | {{#var:sellFactor}} }}
 +
  {{!}} {{Hit Point Market Value Inverse/relative| {{#var:materialValue}} | {{{1}}} | Excellent  | {{#var:sellFactor}} }}
 +
  {{!}} {{Hit Point Market Value Inverse/relative| {{#var:materialValue}} | {{{1}}} | Masterwork | {{#var:sellFactor}} }}
 +
  {{!}} {{Hit Point Market Value Inverse/relative| {{#var:materialValue}} | {{{1}}} | Legendary | {{#var:sellFactor}} }}
 +
}}</includeonly><noinclude>
 +
 
 +
{| {{STDT|sortable c_06 text-center}}
 +
! Name !! Material Return<br/>(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
 +
{{Hit Point Market Value Inverse/relative/quality table|Autopistol}}
 +
{{Hit Point Market Value Inverse/relative/quality table|Prestige recon armor}}
 +
{{Hit Point Market Value Inverse/relative/quality table|EMP grenades}}
 +
|}
 +
 
 +
{{Documentation|Template:Hit Point Market Value Inverse/relative/doc}}
 +
[[Category:Customized table templates]]
 +
</noinclude>

Revision as of 16:45, 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.25 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 262.5 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%)