diff --git a/scripts/systemShims/SwadeShim.mjs b/scripts/systemShims/SwadeShim.mjs new file mode 100644 index 0000000..4a2af09 --- /dev/null +++ b/scripts/systemShims/SwadeShim.mjs @@ -0,0 +1,41 @@ +export class SwadeShim { + constructor(character) { + this.character = character; + } + + // Catch faster + get str() { + const die = this.character.system.abilities.strength.die.sides; + return (die / 2) - 2; + } + + // Bait moves faster + get con() { + const die = this.character.system.abilities.vigor.die.sides; + return (die / 2) - 2; + } + + // Increased chance of treasure + get int() { + if (this.character.type === 'vehicle') return 0; + this.character.system.bennies.max; + } + + // Speed of fish is reduced + get wis() { + const die = this.character.system.abilities.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; + return (die / 2) - 2; + } + + // The fish moves less often + get dex() { + const die = this.character.system.abilities.agility.die.sides; + return (die / 2) - 2; + } +} diff --git a/scripts/systemShims/theRealShimShady.mjs b/scripts/systemShims/theRealShimShady.mjs index 3459ca7..c42c9ab 100644 --- a/scripts/systemShims/theRealShimShady.mjs +++ b/scripts/systemShims/theRealShimShady.mjs @@ -1,6 +1,7 @@ import {Dnd5eShim} from "./Dnd5eShim.mjs"; import {Pf2eShim} from "./Pf2eShim.mjs"; import {ThirteenthAgeShim} from "./13a.mjs"; +import { SwadeShim } from "./SwadeShim.mjs"; export function systemShim(character) { const system = game.system.id; @@ -8,6 +9,7 @@ export function systemShim(character) { case "dnd5e": return new Dnd5eShim(character); case "pf2e": return new Pf2eShim(character); case "archmage": return new ThirteenthAgeShim(character); + case "swade": return new SwadeShim(character); default: return null; } }