Template:Blast resistance values: Difference between revisions

From Modded Wiki
Jump to navigation Jump to search
No edit summary
fixed glass et al. being replaced with nothing, added missing lily pad
Line 2: Line 2:
   #switch: {{ #replace: {{ #replace: {{ ucfirst: {{ lc: {{
   #switch: {{ #replace: {{ #replace: {{ ucfirst: {{ lc: {{
     #switch: {{ lc: {{ #explode: {{{1}}} || -1 }} }}
     #switch: {{ lc: {{ #explode: {{{1}}} || -1 }} }}
     | glass | stairs | bars | cactus | leaves | grass = <!-- don't strip the trailing "s" from these; that just looks weird =) -->
     | glass | stairs | bars | cactus | leaves | grass = {{{1}}} <!-- don't strip the trailing "s" from these; that just looks weird =) -->
     | #default = {{
     | #default = {{
       #ifeq: {{ #sub: {{{1}}} | {{ #expr: {{ #len: {{{1}}} }} - 1 }} | 1 }} | s
       #ifeq: {{ #sub: {{{1}}} | {{ #expr: {{ #len: {{{1}}} }} - 1 }} | 1 }} | s
       | {{ #sub: {{{1}}} || {{ #expr: {{ #len: {{{1}}} }} - 1 }} }}
       | {{ #sub: {{{1}}} | 0 | -1 }}
       | {{{1}}}
       | {{{1}}}
     }}
     }}
Line 134: Line 134:
| Mushroom          | Red mushroom    | Brown mushroom
| Mushroom          | Red mushroom    | Brown mushroom
| Pumpkin stem      | Melon stem
| Pumpkin stem      | Melon stem
| Lily pad
| Tnt
| Tnt
| Torch
| Torch

Revision as of 11:00, 4 June 2012