Skip to content

Commit

Permalink
fixed data path to attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
FloRad committed Sep 14, 2022
1 parent fc55a42 commit b993a6f
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions scripts/systemShims/SwadeShim.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@ export class SwadeShim {

// Catch faster
get str() {
const die = this.character.system.abilities.strength.die.sides;
const die = this.character.system.attributes.strength.die.sides;
return (die / 2) - 2;
}

// Bait moves faster
get con() {
const die = this.character.system.abilities.vigor.die.sides;
const die = this.character.system.attributes.vigor.die.sides;
return (die / 2) - 2;
}

Expand All @@ -23,19 +23,19 @@ export class SwadeShim {

// Speed of fish is reduced
get wis() {
const die = this.character.system.abilities.spirit.die.sides;
const die = this.character.system.attributes.spirit.die.sides;
return (die / 2) - 2;
}

// How far the fish jumps is reduced
get cha() {
const die = this.character.system.abilities.spirit.die.sides;
const die = this.character.system.attributes.spirit.die.sides;
return (die / 2) - 2;
}

// The fish moves less often
get dex() {
const die = this.character.system.abilities.agility.die.sides;
const die = this.character.system.attributes.agility.die.sides;
return (die / 2) - 2;
}
}

0 comments on commit b993a6f

Please sign in to comment.