Difference between revisions of "Template:Trading Value Table Row"

From RimWorld Wiki
Jump to navigation Jump to search
Line 8: Line 8:
 
{{#vardefine:others | {{#ifeq: {{Q|{{{?Name}}}|Resource 2}} | {{#var:material}} || {{Q|{{{?Name}}}|Resource 2 Amount||{{icon|{{Q|{{{?Name}}}|Resource 2}}}}}} }} {{#if: {{Q|{{{?Name}}}|Resource 3}} | {{Q|{{{?Name}}}|Resource 3 Amount||{{icon|{{Q|{{{?Name}}}|Resource 3}}}}}} }} }}
 
{{#vardefine:others | {{#ifeq: {{Q|{{{?Name}}}|Resource 2}} | {{#var:material}} || {{Q|{{{?Name}}}|Resource 2 Amount||{{icon|{{Q|{{{?Name}}}|Resource 2}}}}}} }} {{#if: {{Q|{{{?Name}}}|Resource 3}} | {{Q|{{{?Name}}}|Resource 3 Amount||{{icon|{{Q|{{{?Name}}}|Resource 3}}}}}} }} }}
  
! style="text-align: left" | [[{{{?Name}}}]]
+
{{#if: {{#pos:{{Q|{{{?Name}}}|Stuff Tags}}|Woody}}
| {{#var:amount}}{{icon|{{#var:material}}}}
+
! style="text-align: left" | [[{{{?Name}}}]]
| {{#if: {{#var:others}} | {{#var:others}} | - }}
+
| {{#var:amount}}{{icon|{{#var:material}}}}
| {{ticks/minutes|{{Q|{{{?Name}}}|Work To Make}}*{{Q|{{#var:material}}|Work To Build Factor}}}}
+
| {{#if: {{#var:others}} | {{#var:others}} | - }}
| [[{{Q|{{{?Name}}}|Skill1}}]]
+
| {{ticks/minutes|{{Q|{{{?Name}}}|Work To Make}}*{{Q|{{#var:material}}|Work To Build Factor}}}}
| {{Market Value Calculator|{{{?Name}}}|{{#var:material}}}}{{icon|silver}}
+
| [[{{Q|{{{?Name}}}|Skill 1}}]]
| {{#var:multiplier}}
+
| {{Market Value Calculator|{{{?Name}}}|{{#var:material}}}}{{icon|silver}}
| {{ticks/seconds|{{#expr:{{formatnum:{{Q|{{{?Name}}}|Work To Make}}|R}}*{{Q|{{#var:material}}|Work To Build Factor}}/({{#var:multiplier}}*{{Market Value Calculator|{{{?Name}}}|{{#var:material}}}})round2}}}}
+
| {{#var:multiplier}}
| {{#expr:{{Q|{{{?Name}}}|Resource 1 Amount}}/({{#var:multiplier}}*{{Market Value Calculator|{{{?Name}}}|{{#var:material}}}})round2}}
+
| {{ticks/seconds|{{#expr:{{formatnum:{{Q|{{{?Name}}}|Work To Make}}|R}}*{{Q|{{#var:material}}|Work To Build Factor}}/({{#var:multiplier}}*{{Market Value Calculator|{{{?Name}}}|{{#var:material}}}})round2}}}}
|-
+
| {{#expr:{{Q|{{{?Name}}}|Resource 1 Amount}}/({{#var:multiplier}}*{{Market Value Calculator|{{{?Name}}}|{{#var:material}}}})round2}}
 +
|-
 +
}}
  
 
</includeonly>
 
</includeonly>

Revision as of 13:03, 4 June 2021



Tags