Editing Template:Building Stats Table Row
Jump to navigation
Jump to search
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 1: | Line 1: | ||
− | <includeonly><tr {{#ifeq: {{#var:quality}} | Normal || {{#if: {{#var:stufftags}}|{{#if:{{#var:hasQuality}}|class="mw-collapsible mw-collapsed" id="mw-customcollapsible-collapseQuality | + | <includeonly><tr {{#ifeq: {{#var:quality}} | Normal || {{#if: {{#var:stufftags}}|{{#if:{{#var:hasQuality}}|class="mw-collapsible mw-collapsed" id="mw-customcollapsible-collapseQuality{{#replace:{{#var:name}}|<nowiki> </nowiki>}}"}} }} }}><!-- |
Headers | Headers | ||
Line 9: | Line 9: | ||
}} | }} | ||
{{#if: {{#var:stufftags}} | | {{#if: {{#var:stufftags}} | | ||
− | <th style="text-align:left;" data-sort-value="{{{1}}}"> {{Icon Small|{{{1}}} }} | + | <th style="text-align:left;" data-sort-value="{{{1}}}"> {{Icon Small|{{{1}}} }} [[{{{1}}}]] </th> |
}}<!-- | }}<!-- | ||
Line 16: | Line 16: | ||
* {{#ifexpr: {{#var:beauty}} < 0 | 1 | {{#if:{{#var:stufftags}}|{{Q|{{{1}}}|Beauty Factor}}|1}} }} <!-- beauty factor provided by the material. Set to 1 if base beauty of the building is negative --> | * {{#ifexpr: {{#var:beauty}} < 0 | 1 | {{#if:{{#var:stufftags}}|{{Q|{{{1}}}|Beauty Factor}}|1}} }} <!-- beauty factor provided by the material. Set to 1 if base beauty of the building is negative --> | ||
+ {{Q|{{{1}}}|Beauty Offset|0}} <!-- beauty offset provided by the material --> | + {{Q|{{{1}}}|Beauty Offset|0}} <!-- beauty offset provided by the material --> | ||
− | }} }}< | + | }} }} |
− | + | <td> {{#vardefineecho:tempBeauty| | |
{{#expr: {{#ifexpr: {{#var:preBeauty}} > 0 | {{#expr: {{#ifexpr: {{#var:preBeauty}} > 0 | ||
− | | {{#var:preBeauty}} * {{#var:beautyFactor}} | + | | {{#var:preBeauty}} * {{#var:beautyFactor}} - 0.000000001 <!-- beauty factor provided by quality. apply small offset so 0.5 is rounded down --> |
| {{#var:preBeauty}} }} | | {{#var:preBeauty}} }} | ||
round 0}} | round 0}} | ||
− | |||
− | |||
− | |||
}} </td><!-- | }} </td><!-- | ||
Line 35: | Line 32: | ||
-->{{#if: {{#var:restEffectiveness}} | {{#vardefine:restRate|{{#expr:(((1/((150/60000)*(24/10.5)))*150)/2500)}} }}<!-- See [[Rest#Positive]] for an explanation of the formula --> | -->{{#if: {{#var:restEffectiveness}} | {{#vardefine:restRate|{{#expr:(((1/((150/60000)*(24/10.5)))*150)/2500)}} }}<!-- See [[Rest#Positive]] for an explanation of the formula --> | ||
<td> {{%|{{#vardefineecho:finalRestEffectiveness | {{#var:restEffectiveness}}*{{#var:restFactor}}*{{#if:{{#var:stufftags}}|{{Q|{{{1}}}|Rest Effectiveness Factor|1}}|1}} }}|0}} ({{#expr:{{#var:restRate}}/({{#var:finalRestEffectiveness}}) round 2}} h) </td> | <td> {{%|{{#vardefineecho:finalRestEffectiveness | {{#var:restEffectiveness}}*{{#var:restFactor}}*{{#if:{{#var:stufftags}}|{{Q|{{{1}}}|Rest Effectiveness Factor|1}}|1}} }}|0}} ({{#expr:{{#var:restRate}}/({{#var:finalRestEffectiveness}}) round 2}} h) </td> | ||
− | |||
− | |||
− | |||
− | |||
− | |||
}}<!-- | }}<!-- | ||
Line 48: | Line 40: | ||
Work | Work | ||
− | --><td style="text-align:left;"> {{Align Ticks| {{#vardefineecho:tempWorkTicks|{{#if:{{#var:useWorkToMake}} | {{#expr: {{#if:{{#var:stufftags}}|{{Q|{{{1}}}|Work To Make Factor}}|1}} * {{#var:work|}} + {{#if:{{#var:stufftags}}|{{Q|{{{1}}}|Work To Make Offset|0}}|0}} round 0}}| {{#expr: {{#if:{{#var:stufftags}}|{{Q|{{{1}}}|Work To Build Factor}}|1}} * {{#var:work|}} + {{#if:{{#var:stufftags}}|{{Q|{{{1}}}|Work To Build Offset|0}}|0}} round 0}} }} }} }} </td><!-- | + | --><td style="text-align:left;"> {{Align Ticks| {{#vardefineecho:tempWorkTicks|{{#if:{{#var:useWorkToMake}} | {{#expr: {{#if:{{#var:stufftags}}|{{Q|{{{1}}}|Work To Make Factor}}|1}} * {{#var:work|}} + {{#if:{{#var:stufftags}}|{{Q|{{{1}}}|Work To Make Offset|0}}|0}} round 0}}| {{#expr: {{#if:{{#var:stufftags}}|{{Q|{{{1}}}|Work To Build Factor}}|1}} * {{#var:work|}} + {{#if:{{#var:stufftags}}|{{Q|{{{1}}}|Work To Build Offset|0}}|0}} round 0}} }}}} }} </td><!-- |
HP | HP | ||
Line 58: | Line 50: | ||
Door and Spike trap stats | Door and Spike trap stats | ||
-->{{#switch: {{#var:name}} | -->{{#switch: {{#var:name}} | ||
− | + | | Door | Autodoor | Fence gate | Animal flap = | |
− | |||
− | |||
<td> {{%|{{Q|{{{1}}}|Door Opening Speed Factor|1}} }} </td> | <td> {{%|{{Q|{{{1}}}|Door Opening Speed Factor|1}} }} </td> | ||
| Spike trap = | | Spike trap = | ||
Line 77: | Line 67: | ||
Ratios | Ratios | ||
-->{{#if: {{#var:workValueRatios}} | | -->{{#if: {{#var:workValueRatios}} | | ||
− | <td> {{#expr: {{#var: | + | <td> {{#expr: {{#var:tempBeauty}}/{{#var:tempWorkTicks}} round 3}} </td> |
− | <td> {{#expr: {{#var: | + | <td> {{#expr: {{#var:tempBeauty}}/{{#var:tempMarketValue}} round 3}} </td> |
<td> {{#expr: {{#var:tempMarketValue}}/{{#var:tempWorkTicks}} round 3}} </td> | <td> {{#expr: {{#var:tempMarketValue}}/{{#var:tempWorkTicks}} round 3}} </td> | ||
<td> {{#expr: {{#var:tempMarketValue}}/({{#var:stuffAmount}}{{#if: {{Q|{{{1}}}|Small Volume}}|*10}}) round 3}} }} </td> | <td> {{#expr: {{#var:tempMarketValue}}/({{#var:stuffAmount}}{{#if: {{Q|{{{1}}}|Small Volume}}|*10}}) round 3}} }} </td> |