Template:CharacterSheet: Difference between revisions
From The Wild Beyond the Witchlight
No edit summary |
No edit summary |
||
Line 183: | Line 183: | ||
|- class="weapon" | | |- class="weapon" | | ||
| {{{Weapon2| }}} | | {{{Weapon2| }}} | ||
| {{#if:{{{Weapon2AttackOrDC|}}}| {{#ifeq: {{{Weapon2AttackOrDC}}} | DC | {{#expr: 8 + floor(({{{{{{Weapon2Ability}}}}}}-10)/2) + 2+floor(({{{Level|0}}}-1)/4)+{{{Weapon2MagicItemBonus}}}}} | +{{#expr:floor(floor(({{{{{{Weapon2Ability}}}}}}-10)/2) + (2+floor(({{{Level|0}}}-1)/4)))+{{{Weapon2MagicItemBonus|0}}}}} }} }} | | {{#if:{{{Weapon2AttackOrDC|}}}| {{#ifeq: {{{Weapon2AttackOrDC}}} | DC | DC: {{#expr: 8 + floor(({{{{{{Weapon2Ability}}}}}}-10)/2) + 2+floor(({{{Level|0}}}-1)/4)+{{{Weapon2MagicItemBonus}}}}} | +{{#expr:floor(floor(({{{{{{Weapon2Ability}}}}}}-10)/2) + (2+floor(({{{Level|0}}}-1)/4)))+{{{Weapon2MagicItemBonus|0}}}}} }} }} | ||
| {{{Weapon2Dmg|}}}{{#ifexpr: {{{Weapon2DmgAddAbility|0}}}=0 and {{{Weapon2MagicItemBonus|0}}}=0| | +{{#expr: {{#ifexpr: {{{Weapon2DmgAddAbility|0}}}=1 | floor(({{{{{{Weapon2Ability}}}}}}-10)/2) | 0 }}+{{{Weapon2MagicItemBonus|0}}}}} }} {{{Weapon2DmgType|}}}{{{Weapon2MagicDmg|}}} | | {{{Weapon2Dmg|}}}{{#ifexpr: {{{Weapon2DmgAddAbility|0}}}=0 and {{{Weapon2MagicItemBonus|0}}}=0| | +{{#expr: {{#ifexpr: {{{Weapon2DmgAddAbility|0}}}=1 | floor(({{{{{{Weapon2Ability}}}}}}-10)/2) | 0 }}+{{{Weapon2MagicItemBonus|0}}}}} }} {{{Weapon2DmgType|}}}{{{Weapon2MagicDmg|}}} | ||
{{#ifeq: {{{Weapon2Notes}}} | | | <tr class="notes"><td class="special" colspan="3">{{{Weapon2Notes| }}}</td></tr>}} | {{#ifeq: {{{Weapon2Notes}}} | | | <tr class="notes"><td class="special" colspan="3">{{{Weapon2Notes| }}}</td></tr>}} |
Revision as of 11:48, 26 October 2024