Difference between revisions of "Template:Psychic Sensitivity Quality Table"

From RimWorld Wiki
Jump to navigation Jump to search
m (use the real deal directly instead of a redirect)
 
(2 intermediate revisions by one other user not shown)
Line 20: Line 20:
 
<td> {{#ifexpr:{{#var:basesensitivitybonus}} > 0|+}}{{#expr:{{#var:basesensitivitybonus}}*100 round 0}}%
 
<td> {{#ifexpr:{{#var:basesensitivitybonus}} > 0|+}}{{#expr:{{#var:basesensitivitybonus}}*100 round 0}}%
 
|
 
|
<td> +{{#expr:{{#var:basesensitivitybonus}}*0.5*100 round 0}}%
+
<td> {{#ifexpr:{{#var:basesensitivitybonus}} > 0|+}}{{#expr:{{#var:basesensitivitybonus}}*0.5*100 round 0}}%
<td> +{{#expr:{{#var:basesensitivitybonus}}*0.66*100 round 0}}%
+
<td> {{#ifexpr:{{#var:basesensitivitybonus}} > 0|+}}{{#expr:{{#var:basesensitivitybonus}}*0.66*100 round 0}}%
<td> +{{#expr:{{#var:basesensitivitybonus}}*0.83*100 round 0}}%
+
<td> {{#ifexpr:{{#var:basesensitivitybonus}} > 0|+}}{{#expr:{{#var:basesensitivitybonus}}*0.83*100 round 0}}%
<td> +{{#expr:{{#var:basesensitivitybonus}}*1.00*100 round 0}}%
+
<td> {{#ifexpr:{{#var:basesensitivitybonus}} > 0|+}}{{#expr:{{#var:basesensitivitybonus}}*1.00*100 round 0}}%
<td> +{{#expr:{{#var:basesensitivitybonus}}*1.16*100 round 0}}%
+
<td> {{#ifexpr:{{#var:basesensitivitybonus}} > 0|+}}{{#expr:{{#var:basesensitivitybonus}}*1.16*100 round 0}}%
<td> +{{#expr:{{#var:basesensitivitybonus}}*1.32*100 round 0}}%
+
<td> {{#ifexpr:{{#var:basesensitivitybonus}} > 0|+}}{{#expr:{{#var:basesensitivitybonus}}*1.32*100 round 0}}%
<td> +{{#expr:{{#var:basesensitivitybonus}}*1.5*100 round 0}}%
+
<td> {{#ifexpr:{{#var:basesensitivitybonus}} > 0|+}}{{#expr:{{#var:basesensitivitybonus}}*1.5*100 round 0}}%
 
}}
 
}}
 
<tr>
 
<tr>
!{{H:title|link=no|Neural Heat Limit increase from the increase Psychic Sensitivity assuming Level 6 Psylink |Neural Heat Limit}}
+
!{{Hover title|link=no|Neural Heat Limit increase from the increase Psychic Sensitivity assuming Level 6 Psylink |Neural Heat Limit}}
 
{{#if:{{{noQuality|}}}|
 
{{#if:{{{noQuality|}}}|
<td> +{{#expr:{{#var:basesensitivitybonus}}*80 round 0}}%
+
<td> {{#ifexpr:{{#var:basesensitivitybonus}} > 0|+}}{{#expr:{{#var:basesensitivitybonus}}*80 round 0}}
 
|
 
|
<td> +{{#expr:{{#var:basesensitivitybonus}}*0.5*80 round 0}}
+
<td> {{#ifexpr:{{#var:basesensitivitybonus}} > 0|+}}{{#expr:{{#var:basesensitivitybonus}}*0.5*80 round 0}}
<td> +{{#expr:{{#var:basesensitivitybonus}}*0.66*80 round 0}}
+
<td> {{#ifexpr:{{#var:basesensitivitybonus}} > 0|+}}{{#expr:{{#var:basesensitivitybonus}}*0.66*80 round 0}}
<td> +{{#expr:{{#var:basesensitivitybonus}}*0.83*80 round 0}}
+
<td> {{#ifexpr:{{#var:basesensitivitybonus}} > 0|+}}{{#expr:{{#var:basesensitivitybonus}}*0.83*80 round 0}}
<td> +{{#expr:{{#var:basesensitivitybonus}}*1.00*80 round 0}}
+
<td> {{#ifexpr:{{#var:basesensitivitybonus}} > 0|+}}{{#expr:{{#var:basesensitivitybonus}}*1.00*80 round 0}}
<td> +{{#expr:{{#var:basesensitivitybonus}}*1.16*80 round 0}}
+
<td> {{#ifexpr:{{#var:basesensitivitybonus}} > 0|+}}{{#expr:{{#var:basesensitivitybonus}}*1.16*80 round 0}}
<td> +{{#expr:{{#var:basesensitivitybonus}}*1.32*80 round 0}}
+
<td> {{#ifexpr:{{#var:basesensitivitybonus}} > 0|+}}{{#expr:{{#var:basesensitivitybonus}}*1.32*80 round 0}}
<td> +{{#expr:{{#var:basesensitivitybonus}}*1.5*80 round 0}}
+
<td> {{#ifexpr:{{#var:basesensitivitybonus}} > 0|+}}{{#expr:{{#var:basesensitivitybonus}}*1.5*80 round 0}}
 
}}
 
}}
 
}}
 
}}
 
|-  
 
|-  
 
{{#if: {{{2|}}}|
 
{{#if: {{{2|}}}|
!{{H:title|link=no|Neural Heat Recover Rate increase before Psylink level modifers|Base Neural Heat Recovery Rate}}
+
!{{Hover title|link=no|Neural Heat Recover Rate increase before Psylink level modifers|Base Neural Heat Recovery Rate}}
 
{{#if:{{{noQuality|}}}|
 
{{#if:{{{noQuality|}}}|
<td> +{{#var:baseheatratebonus}}/s
+
<td> {{#ifexpr:{{#var:baseheatratebonus}} > 0|+}}{{#var:baseheatratebonus}}/s
 
|
 
|
<td> +{{#var:baseheatratebonus}}/s
+
<td> {{#ifexpr:{{#var:baseheatratebonus}} > 0|+}}{{#var:baseheatratebonus}}/s
<td> +{{#var:baseheatratebonus}}/s
+
<td> {{#ifexpr:{{#var:baseheatratebonus}} > 0|+}}{{#var:baseheatratebonus}}/s
<td> +{{#var:baseheatratebonus}}/s
+
<td> {{#ifexpr:{{#var:baseheatratebonus}} > 0|+}}{{#var:baseheatratebonus}}/s
<td> +{{#var:baseheatratebonus}}/s
+
<td> {{#ifexpr:{{#var:baseheatratebonus}} > 0|+}}{{#var:baseheatratebonus}}/s
<td> +{{#var:baseheatratebonus}}/s
+
<td> {{#ifexpr:{{#var:baseheatratebonus}} > 0|+}}{{#var:baseheatratebonus}}/s
<td> +{{#var:baseheatratebonus}}/s
+
<td> {{#ifexpr:{{#var:baseheatratebonus}} > 0|+}}{{#var:baseheatratebonus}}/s
<td> +{{#var:baseheatratebonus}}/s
+
<td> {{#ifexpr:{{#var:baseheatratebonus}} > 0|+}}{{#var:baseheatratebonus}}/s
 
}}
 
}}
 
<tr>
 
<tr>
!{{H:title|link=no|Neural Heat Recover Rate increase assuming Level 6 Psylink |Effective Neural Heat Recovery Rate}}  
+
!{{Hover title|link=no|Neural Heat Recover Rate increase assuming Level 6 Psylink |Effective Neural Heat Recovery Rate}}  
 
{{#if:{{{noQuality|}}}|
 
{{#if:{{{noQuality|}}}|
<td> +{{#expr:{{#var:baseheatratebonus}}*1.625 round 3}}/s
+
<td> {{#ifexpr:{{#var:baseheatratebonus}} > 0|+}}{{#expr:{{#var:baseheatratebonus}}*1.625 round 3}}/s
 
|
 
|
<td> +{{#expr:{{#var:baseheatratebonus}}*1.625 round 3}}/s
+
<td> {{#ifexpr:{{#var:baseheatratebonus}} > 0|+}}{{#expr:{{#var:baseheatratebonus}}*1.625 round 3}}/s
<td> +{{#expr:{{#var:baseheatratebonus}}*1.625 round 3}}/s
+
<td> {{#ifexpr:{{#var:baseheatratebonus}} > 0|+}}{{#expr:{{#var:baseheatratebonus}}*1.625 round 3}}/s
<td> +{{#expr:{{#var:baseheatratebonus}}*1.625 round 3}}/s
+
<td> {{#ifexpr:{{#var:baseheatratebonus}} > 0|+}}{{#expr:{{#var:baseheatratebonus}}*1.625 round 3}}/s
<td> +{{#expr:{{#var:baseheatratebonus}}*1.625 round 3}}/s
+
<td> {{#ifexpr:{{#var:baseheatratebonus}} > 0|+}}{{#expr:{{#var:baseheatratebonus}}*1.625 round 3}}/s
<td> +{{#expr:{{#var:baseheatratebonus}}*1.625 round 3}}/s
+
<td> {{#ifexpr:{{#var:baseheatratebonus}} > 0|+}}{{#expr:{{#var:baseheatratebonus}}*1.625 round 3}}/s
<td> +{{#expr:{{#var:baseheatratebonus}}*1.625 round 3}}/s
+
<td> {{#ifexpr:{{#var:baseheatratebonus}} > 0|+}}{{#expr:{{#var:baseheatratebonus}}*1.625 round 3}}/s
<td> +{{#expr:{{#var:baseheatratebonus}}*1.625 round 3}}/s
+
<td> {{#ifexpr:{{#var:baseheatratebonus}} > 0|+}}{{#expr:{{#var:baseheatratebonus}}*1.625 round 3}}/s
 
}}
 
}}
 
}}
 
}}
 
|}
 
|}
 
</li><div></includeonly><noinclude>{{Documentation}}</noinclude>
 
</li><div></includeonly><noinclude>{{Documentation}}</noinclude>

Latest revision as of 12:17, 9 December 2022

Documentation icon Template documentation[view] [edit] [history] [purge]

This template generates a table summarizing the Psychic Sensitivity bonus for each quality tier of an item. If the object in question has no quality, quality display can be disabled.

Parameters[edit]

The first parameter is the Psychic Sensitivity boost. If it not defined, it will not display. The second is Neural Heat Recovery Rate boost. If it not defined, it will not display.

noQuality
allows override and allows direct, non-quality scaled bonuses, like those on Prestige marine armor, to be displayed.

Example usage[edit]

{{Psychic Sensitivity Quality Table|0.40|0.091}}

Produces:

  • Quality Awful Poor Normal Good Excellent Masterwork Legendary
    Psychic Sensitivity +20% +26% +33% +40% +46% +53% +60%
    Neural Heat Limit +16 +21 +27 +32 +37 +42 +48
    Base Neural Heat Recovery Rate +0.091/s +0.091/s +0.091/s +0.091/s +0.091/s +0.091/s +0.091/s
    Effective Neural Heat Recovery Rate +0.148/s +0.148/s +0.148/s +0.148/s +0.148/s +0.148/s +0.148/s
  • {{Psychic Sensitivity Quality Table||0.091}}

    Produces:

  • Quality Awful Poor Normal Good Excellent Masterwork Legendary
    Base Neural Heat Recovery Rate +0.091/s +0.091/s +0.091/s +0.091/s +0.091/s +0.091/s +0.091/s
    Effective Neural Heat Recovery Rate +0.148/s +0.148/s +0.148/s +0.148/s +0.148/s +0.148/s +0.148/s
  • {{Psychic Sensitivity Quality Table|0.40|}}

    Produces:

  • Quality Awful Poor Normal Good Excellent Masterwork Legendary
    Psychic Sensitivity +20% +26% +33% +40% +46% +53% +60%
    Neural Heat Limit +16 +21 +27 +32 +37 +42 +48
  • {{Psychic Sensitivity Quality Table|0.05|0.033|noQuality=1}}

    Produces:

  • Stat Increase
    Psychic Sensitivity +5%
    Neural Heat Limit +4
    Base Neural Heat Recovery Rate +0.033/s
    Effective Neural Heat Recovery Rate +0.054/s
  • {{Psychic Sensitivity Quality Table|0.05||noQuality=1}}

    Produces:

  • Stat Increase
    Psychic Sensitivity +5%
    Neural Heat Limit +4
  • {{Psychic Sensitivity Quality Table||0.033|noQuality=1}}

    Produces:

  • Stat Increase
    Base Neural Heat Recovery Rate +0.033/s
    Effective Neural Heat Recovery Rate +0.054/s