User:Vergir/AbilityInteraction: Difference between revisions

Jump to navigation Jump to search
Vergir (talk | contribs)
Rename bullet_armor to bullet_effect; fix default texts for movement_restriction and charges only; remove defaults for all others (with help from vergir-bot LLM)
Vergir (talk | contribs)
Update interaction header colors (with help from vergir-bot LLM)
Line 7: Line 7:


   Color is determined automatically by type:
   Color is determined automatically by type:
     vitality (#4a7a35) : unstoppable, counterspell, debuff_resist, dispel_magic, bullet_effect
     vitality (#3d5632) : unstoppable, counterspell, debuff_resist, dispel_magic, bullet_effect
     spirit  (#7a3fa8) : movement_restriction, ability_range, ability_duration, charges
     spirit  (#624877) : movement_restriction, ability_range, ability_duration, charges
     default  (#4a4e57) : unknown types
     default  (#6a6a6a) : unknown types
-->
-->
{{#if: {{{type|}}} |
{{#if: {{{type|}}} |
<div class="ability-interaction" style="margin-bottom:4px; border-radius:4px; overflow:hidden; font-family:'Open Sans','PT Serif',serif;">
<div class="ability-interaction" style="margin-bottom:4px; border-radius:4px; overflow:hidden; font-family:'Open Sans','PT Serif',serif;">
   <div style="background:{{#switch:{{{type|}}}
   <div style="background:{{#switch:{{{type|}}}
     | unstoppable          = #4a7a35
     | unstoppable          = #3d5632
     | counterspell        = #4a7a35
     | counterspell        = #3d5632
     | debuff_resist        = #4a7a35
     | debuff_resist        = #3d5632
     | dispel_magic        = #4a7a35
     | dispel_magic        = #3d5632
     | bullet_effect        = #4a7a35
     | bullet_effect        = #3d5632
     | movement_restriction = #7a3fa8
     | movement_restriction = #624877
     | ability_range        = #7a3fa8
     | ability_range        = #624877
     | ability_duration    = #7a3fa8
     | ability_duration    = #624877
     | charges              = #7a3fa8
     | charges              = #624877
     | #default            = #4a4e57
     | #default            = #6a6a6a
   }}; padding:4px 8px; font-weight:bold; font-size:0.85rem; display:flex; align-items:center; gap:6px; color:#FFEFD7;">[[File:{{#switch:{{{type|}}}
   }}; padding:4px 8px; font-weight:bold; font-size:0.85rem; display:flex; align-items:center; gap:6px; color:#FFEFD7;">[[File:{{#switch:{{{type|}}}
     | unstoppable          = Unstoppable.png
     | unstoppable          = Unstoppable.png
Line 71: Line 71:
Adding a new type requires updating the four <code>#switch</code> blocks in this template (color, icon, label, default text).
Adding a new type requires updating the four <code>#switch</code> blocks in this template (color, icon, label, default text).


; Vitality (dark green, #4a7a35)
; Vitality (dark green, #3d5632)
* <code>unstoppable</code> — [[Unstoppable]]
* <code>unstoppable</code> — [[Unstoppable]]
* <code>counterspell</code> — [[Counterspell]]
* <code>counterspell</code> — [[Counterspell]]
Line 78: Line 78:
* <code>bullet_effect</code> — [[Plated Armor|Bullet Effect]]
* <code>bullet_effect</code> — [[Plated Armor|Bullet Effect]]


; Spirit (dark purple, #7a3fa8)
; Spirit (dark purple, #624877)
* <code>movement_restriction</code> — [[Slowing Hex|Movement Restriction]] (has default text)
* <code>movement_restriction</code> — [[Slowing Hex|Movement Restriction]] (has default text)
* <code>ability_range</code> — [[Ability Range]]
* <code>ability_range</code> — [[Ability Range]]