Skip to content

Commit

Permalink
update max wounds to 24
Browse files Browse the repository at this point in the history
  • Loading branch information
Jacob Egner authored and Jacob Egner committed Jun 17, 2024
1 parent bbf053d commit dead8a3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/components/DefenderControls.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import {Props as IncProps, propsToRows} from 'src/components/IncDecSelect';
import Model from 'src/Model';
import Ability, {rerollAbilities as rerolls} from 'src/Ability';
import * as N from 'src/Notes';
import { SaveRange } from 'src/KtMisc';
import { MaxWounds, SaveRange } from 'src/KtMisc';
import {
Accepter,
boolToCheckX,
Expand Down Expand Up @@ -53,7 +53,7 @@ const DefenderControls: React.FC<Props> = (props: Props) => {
// id, selectedValue, values, valueChangeHandler
new IncProps('Defense', def.numDice, span(0, 4), numHandler('numDice')),
new IncProps('Save', def.diceStat + '+', withPlus(SaveRange), numHandler('diceStat')),
new IncProps('Wounds', def.wounds, span(1, 20), numHandler('wounds')),
new IncProps('Wounds', def.wounds, span(1, MaxWounds), numHandler('wounds')),
new IncProps(N.InvulnSave, def.invulnSave + '+', xrollSpan, numHandler('invulnSave')),
new IncProps(N.CoverNormSaves, def.autoNorms, xspan(1, 9), numHandler('autoNorms')),
];
Expand Down
3 changes: 2 additions & 1 deletion src/components/FighterControls.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import Ability, {
mutuallyExclusiveFightAbilities as nicheAbilities,
rerollAbilities as rerolls
} from 'src/Ability';
import { MaxWounds } from 'src/KtMisc';
import Model from 'src/Model';
import * as N from 'src/Notes';
import {
Expand Down Expand Up @@ -71,7 +72,7 @@ const FighterControls: React.FC<Props> = (props: Props) => {

const basicParams: IncProps[] = [
// id/label, selectedValue, values, valueChangeHandler
new IncProps('Wounds', atk.wounds, span(1, 19), numHandler('wounds')),
new IncProps('Wounds', atk.wounds, span(1, MaxWounds), numHandler('wounds')),
new IncProps('Attacks', atk.numDice, span(1, 8), numHandler('numDice')),
new IncProps('WS', atk.diceStat + '+', rollSpan, numHandler('diceStat')),
new IncProps('Normal Dmg', atk.normDmg, span(1, 9), numHandler('normDmg')),
Expand Down

0 comments on commit dead8a3

Please sign in to comment.