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)
 
(7 intermediate revisions by one other user not shown)
Line 1: Line 1:
 
<includeonly><div><li style="display: inline-table;">{{#vardefine:basesensitivitybonus|{{{1|}}}}} {{#vardefine:baseheatratebonus|{{{2|}}}}}
 
<includeonly><div><li style="display: inline-table;">{{#vardefine:basesensitivitybonus|{{{1|}}}}} {{#vardefine:baseheatratebonus|{{{2|}}}}}
 
{| {{STDT| c_07 text-center}}
 
{| {{STDT| c_07 text-center}}
 +
{{#if:{{{noQuality|}}}|
 +
!Stat
 +
!Increase
 +
|
 
!Quality
 
!Quality
 
!Awful
 
!Awful
Line 9: Line 13:
 
!Masterwork
 
!Masterwork
 
!Legendary
 
!Legendary
 +
}}
 
|-  
 
|-  
 +
{{#if: {{{1|}}}|
 
!Psychic Sensitivity
 
!Psychic Sensitivity
| +{{#expr:{{#var:basesensitivitybonus}}*0.5*100 round 0}}%
+
{{#if:{{{noQuality|}}}|
| +{{#expr:{{#var:basesensitivitybonus}}*0.66*100 round 0}}%
+
<td> {{#ifexpr:{{#var:basesensitivitybonus}} > 0|+}}{{#expr:{{#var:basesensitivitybonus}}*100 round 0}}%
| +{{#expr:{{#var:basesensitivitybonus}}*0.83*100 round 0}}%
+
|
| +{{#expr:{{#var:basesensitivitybonus}}*1.00*100 round 0}}%
+
<td> {{#ifexpr:{{#var:basesensitivitybonus}} > 0|+}}{{#expr:{{#var:basesensitivitybonus}}*0.5*100 round 0}}%
| +{{#expr:{{#var:basesensitivitybonus}}*1.16*100 round 0}}%
+
<td> {{#ifexpr:{{#var:basesensitivitybonus}} > 0|+}}{{#expr:{{#var:basesensitivitybonus}}*0.66*100 round 0}}%
| +{{#expr:{{#var:basesensitivitybonus}}*1.32*100 round 0}}%
+
<td> {{#ifexpr:{{#var:basesensitivitybonus}} > 0|+}}{{#expr:{{#var:basesensitivitybonus}}*0.83*100 round 0}}%
| +{{#expr:{{#var:basesensitivitybonus}}*1.5*100 round 0}}%
+
<td> {{#ifexpr:{{#var:basesensitivitybonus}} > 0|+}}{{#expr:{{#var:basesensitivitybonus}}*1.00*100 round 0}}%
 +
<td> {{#ifexpr:{{#var:basesensitivitybonus}} > 0|+}}{{#expr:{{#var:basesensitivitybonus}}*1.16*100 round 0}}%
 +
<td> {{#ifexpr:{{#var:basesensitivitybonus}} > 0|+}}{{#expr:{{#var:basesensitivitybonus}}*1.32*100 round 0}}%
 +
<td> {{#ifexpr:{{#var:basesensitivitybonus}} > 0|+}}{{#expr:{{#var:basesensitivitybonus}}*1.5*100 round 0}}%
 +
}}
 +
<tr>
 +
!{{Hover title|link=no|Neural Heat Limit increase from the increase Psychic Sensitivity assuming Level 6 Psylink |Neural Heat Limit}}
 +
{{#if:{{{noQuality|}}}|
 +
<td> {{#ifexpr:{{#var:basesensitivitybonus}} > 0|+}}{{#expr:{{#var:basesensitivitybonus}}*80 round 0}}
 +
|
 +
<td> {{#ifexpr:{{#var:basesensitivitybonus}} > 0|+}}{{#expr:{{#var:basesensitivitybonus}}*0.5*80 round 0}}
 +
<td> {{#ifexpr:{{#var:basesensitivitybonus}} > 0|+}}{{#expr:{{#var:basesensitivitybonus}}*0.66*80 round 0}}
 +
<td> {{#ifexpr:{{#var:basesensitivitybonus}} > 0|+}}{{#expr:{{#var:basesensitivitybonus}}*0.83*80 round 0}}
 +
<td> {{#ifexpr:{{#var:basesensitivitybonus}} > 0|+}}{{#expr:{{#var:basesensitivitybonus}}*1.00*80 round 0}}
 +
<td> {{#ifexpr:{{#var:basesensitivitybonus}} > 0|+}}{{#expr:{{#var:basesensitivitybonus}}*1.16*80 round 0}}
 +
<td> {{#ifexpr:{{#var:basesensitivitybonus}} > 0|+}}{{#expr:{{#var:basesensitivitybonus}}*1.32*80 round 0}}
 +
<td> {{#ifexpr:{{#var:basesensitivitybonus}} > 0|+}}{{#expr:{{#var:basesensitivitybonus}}*1.5*80 round 0}}
 +
}}
 +
}}
 
|-  
 
|-  
!{{H:title|link=no|Neural Heat Limit increase from the increase Psychic Sensitivity assuming Level 6 Psylink |Neural Heat Limit}}
+
{{#if: {{{2|}}}|
| +{{#expr:{{#var:basesensitivitybonus}}*0.5*80 round 0}}
+
!{{Hover title|link=no|Neural Heat Recover Rate increase before Psylink level modifers|Base Neural Heat Recovery Rate}}
| +{{#expr:{{#var:basesensitivitybonus}}*0.66*80 round 0}}
+
{{#if:{{{noQuality|}}}|
| +{{#expr:{{#var:basesensitivitybonus}}*0.83*80 round 0}}
+
<td> {{#ifexpr:{{#var:baseheatratebonus}} > 0|+}}{{#var:baseheatratebonus}}/s
| +{{#expr:{{#var:basesensitivitybonus}}*1.00*80 round 0}}
+
|
| +{{#expr:{{#var:basesensitivitybonus}}*1.16*80 round 0}}
+
<td> {{#ifexpr:{{#var:baseheatratebonus}} > 0|+}}{{#var:baseheatratebonus}}/s
| +{{#expr:{{#var:basesensitivitybonus}}*1.32*80 round 0}}
+
<td> {{#ifexpr:{{#var:baseheatratebonus}} > 0|+}}{{#var:baseheatratebonus}}/s
| +{{#expr:{{#var:basesensitivitybonus}}*1.5*80 round 0}}
+
<td> {{#ifexpr:{{#var:baseheatratebonus}} > 0|+}}{{#var:baseheatratebonus}}/s
|-
+
<td> {{#ifexpr:{{#var:baseheatratebonus}} > 0|+}}{{#var:baseheatratebonus}}/s
!{{H:title|link=no|Neural Heat Recover Rate increase before Psylink level modifers|Base Neural Heat Recovery Rate}}
+
<td> {{#ifexpr:{{#var:baseheatratebonus}} > 0|+}}{{#var:baseheatratebonus}}/s
| +{{#var:baseheatratebonus}}/s
+
<td> {{#ifexpr:{{#var:baseheatratebonus}} > 0|+}}{{#var:baseheatratebonus}}/s
| +{{#var:baseheatratebonus}}/s
+
<td> {{#ifexpr:{{#var:baseheatratebonus}} > 0|+}}{{#var:baseheatratebonus}}/s
| +{{#var:baseheatratebonus}}/s
+
}}
| +{{#var:baseheatratebonus}}/s
+
<tr>
| +{{#var:baseheatratebonus}}/s
+
!{{Hover title|link=no|Neural Heat Recover Rate increase assuming Level 6 Psylink |Effective Neural Heat Recovery Rate}}  
| +{{#var:baseheatratebonus}}/s
+
{{#if:{{{noQuality|}}}|
| +{{#var:baseheatratebonus}}/s
+
<td> {{#ifexpr:{{#var:baseheatratebonus}} > 0|+}}{{#expr:{{#var:baseheatratebonus}}*1.625 round 3}}/s
|-
+
|
!{{H:title|link=no|Neural Heat Recover Rate increase assuming Level 6 Psylink |Effective Neural Heat Recovery Rate}}  
+
<td> {{#ifexpr:{{#var:baseheatratebonus}} > 0|+}}{{#expr:{{#var:baseheatratebonus}}*1.625 round 3}}/s
| +{{#expr:{{#var:baseheatratebonus}}*1.625 round 3}}/s
+
<td> {{#ifexpr:{{#var:baseheatratebonus}} > 0|+}}{{#expr:{{#var:baseheatratebonus}}*1.625 round 3}}/s
| +{{#expr:{{#var:baseheatratebonus}}*1.625 round 3}}/s
+
<td> {{#ifexpr:{{#var:baseheatratebonus}} > 0|+}}{{#expr:{{#var:baseheatratebonus}}*1.625 round 3}}/s
| +{{#expr:{{#var:baseheatratebonus}}*1.625 round 3}}/s
+
<td> {{#ifexpr:{{#var:baseheatratebonus}} > 0|+}}{{#expr:{{#var:baseheatratebonus}}*1.625 round 3}}/s
| +{{#expr:{{#var:baseheatratebonus}}*1.625 round 3}}/s
+
<td> {{#ifexpr:{{#var:baseheatratebonus}} > 0|+}}{{#expr:{{#var:baseheatratebonus}}*1.625 round 3}}/s
| +{{#expr:{{#var:baseheatratebonus}}*1.625 round 3}}/s
+
<td> {{#ifexpr:{{#var:baseheatratebonus}} > 0|+}}{{#expr:{{#var:baseheatratebonus}}*1.625 round 3}}/s
| +{{#expr:{{#var:baseheatratebonus}}*1.625 round 3}}/s
+
<td> {{#ifexpr:{{#var:baseheatratebonus}} > 0|+}}{{#expr:{{#var:baseheatratebonus}}*1.625 round 3}}/s
| +{{#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