Difference between revisions of "Template:Building Stats Table Row"
Jump to navigation
Jump to search
(moved quality factors to Building Material Table in order to reduce template include size) |
(simplified beauty calculations) |
||
Line 22: | Line 22: | ||
* {{#ifexpr: {{#var:beauty}} < 0 | 1 | {{Q|{{{1}}}|Beauty Factor}} }} <!-- beauty factor provided by the material. Set to 1 if base beauty of the building is negative --> | * {{#ifexpr: {{#var:beauty}} < 0 | 1 | {{Q|{{{1}}}|Beauty Factor}} }} <!-- 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 {{#var:collapseMaterial}}> {{#vardefineecho:tempBeauty| | <td {{#var:collapseMaterial}}> {{#vardefineecho:tempBeauty| | ||
− | {{#expr: {{#ifexpr: {{#var:preBeauty}} > 0 | {{#var:preBeauty}} * {{#var:beautyFactor}} | {{#var:preBeauty}} }} round 0}} | + | {{#expr: {{#ifexpr: {{#var:preBeauty}} > 0 |
+ | | {{#var:preBeauty}} * {{#var:beautyFactor}} - 0.000000001 <!-- beauty factor provided by quality. apply small offset so 0.5 is rounded down --> | ||
+ | | {{#var:preBeauty}} }} | ||
+ | round 0}} | ||
}} </td><!-- | }} </td><!-- | ||
Revision as of 17:14, 8 November 2023
This page is suggested to be moved. Destination: Template:Building Stats Table Row. Reason: Standardization with Template: Weapon Stats Table. |