10,981
editsMore actions
Code clarity.
(Fix numbering of headers/labels.) |
(Code clarity.) |
||
Line 1: | Line 1: | ||
<noinclude>{{license|ccbysa}}</noinclude><includeonly>{{#lvardef:strmod|{{#ifexpr: (({{{str|}}} - 10) / 2) > 0 | +}}{{#expr: floor((({{{str|}}} - 10) / 2))}}}}{{#lvardef:dexmod|{{#ifexpr: (({{{dex|}}} - 10) / 2) > 0 | +}}{{#expr: floor((({{{dex|}}} - 10) / 2))}}}}{{#lvardef:conmod|{{#ifexpr: (({{{con|}}} - 10) / 2) > 0 | +}}{{#expr: floor((({{{con|}}} - 10) / 2))}}}}{{#lvardef:intmod|{{#ifexpr: (({{{int|}}} - 10) / 2) > 0 | +}}{{#expr: floor((({{{int|}}} - 10) / 2))}}}}{{#lvardef:wismod|{{#ifexpr: (({{{wis|}}} - 10) / 2) > 0 | +}}{{#expr: floor((({{{wis|}}} - 10) / 2))}}}}{{#lvardef:chamod|{{#ifexpr: (({{{cha|}}} - 10) / 2) > 0 | +}}{{#expr: floor((({{{cha|}}} - 10) / 2))}}}}{{#lvardef:strsave|{{#expr: {{#lvar:strmod}}{{#if: {{{str_save_proficiency|}}} | {{#lvar:proficiencybonus}} }}}}}}{{#lvardef:dexsave|{{#expr:{{#lvar:dexmod}} {{#if: {{{dex_save_proficiency|}}} | {{#lvar:proficiencybonus}} }}}}}}{{#lvardef:consave|{{#expr: {{#lvar:conmod}} {{#if: {{{con_save_proficiency|}}} | {{#lvar:proficiencybonus}} }}}}}}{{#lvardef:intsave|{{#expr: {{#lvar:intmod}} {{#if: {{{int_save_proficiency|}}} | {{#lvar:proficiencybonus}} }}}}}}{{#lvardef:wissave|{{#expr: {{#lvar:wismod}} {{#if: {{{wis_save_proficiency|}}} | {{#lvar:proficiencybonus}} }}}}}}{{#lvardef:chasave|{{#expr: {{#lvar:chamod}} {{#if: {{{cha_save_proficiency|}}} | {{#lvar:proficiencybonus}} }}}}}}{{#lvardef:proficiencybonus|+{{#expr: 2 {{#ifexpr: {{{level|{{{hiddenlevel|1}}}}}} >= 5 | + 1}} {{#ifexpr: {{{level|{{{hiddenlevel|1}}}}}} >= 9 | + 1}}}}}} | <noinclude>{{license|ccbysa}}</noinclude><includeonly>{{trim| | ||
{{#lvardef:strmod|{{#ifexpr: (({{{str|}}} - 10) / 2) > 0 | +}}{{#expr: floor((({{{str|}}} - 10) / 2))}}}} | |||
{{#lvardef:dexmod|{{#ifexpr: (({{{dex|}}} - 10) / 2) > 0 | +}}{{#expr: floor((({{{dex|}}} - 10) / 2))}}}} | |||
{{#lvardef:conmod|{{#ifexpr: (({{{con|}}} - 10) / 2) > 0 | +}}{{#expr: floor((({{{con|}}} - 10) / 2))}}}} | |||
{{#lvardef:intmod|{{#ifexpr: (({{{int|}}} - 10) / 2) > 0 | +}}{{#expr: floor((({{{int|}}} - 10) / 2))}}}} | |||
{{#lvardef:wismod|{{#ifexpr: (({{{wis|}}} - 10) / 2) > 0 | +}}{{#expr: floor((({{{wis|}}} - 10) / 2))}}}} | |||
{{#lvardef:chamod|{{#ifexpr: (({{{cha|}}} - 10) / 2) > 0 | +}}{{#expr: floor((({{{cha|}}} - 10) / 2))}}}} | |||
{{#lvardef:strsave|{{#expr: {{#lvar:strmod}}{{#if: {{{str_save_proficiency|}}} | {{#lvar:proficiencybonus}} }}}}}} | |||
{{#lvardef:dexsave|{{#expr:{{#lvar:dexmod}} {{#if: {{{dex_save_proficiency|}}} | {{#lvar:proficiencybonus}} }}}}}} | |||
{{#lvardef:consave|{{#expr: {{#lvar:conmod}} {{#if: {{{con_save_proficiency|}}} | {{#lvar:proficiencybonus}} }}}}}} | |||
{{#lvardef:intsave|{{#expr: {{#lvar:intmod}} {{#if: {{{int_save_proficiency|}}} | {{#lvar:proficiencybonus}} }}}}}} | |||
{{#lvardef:wissave|{{#expr: {{#lvar:wismod}} {{#if: {{{wis_save_proficiency|}}} | {{#lvar:proficiencybonus}} }}}}}} | |||
{{#lvardef:chasave|{{#expr: {{#lvar:chamod}} {{#if: {{{cha_save_proficiency|}}} | {{#lvar:proficiencybonus}} }}}}}}{{#lvardef:proficiencybonus|+{{#expr: 2 {{#ifexpr: {{{level|{{{hiddenlevel|1}}}}}} >= 5 | + 1}} {{#ifexpr: {{{level|{{{hiddenlevel|1}}}}}} >= 9 | + 1}}}}}} | |||
}} | |||
{{infobox | {{infobox | ||
| subbox = {{{subbox|}}} | | subbox = {{{subbox|}}} |