Skip to content

Commit

Permalink
Merge pull request #1 from FloRad/master
Browse files Browse the repository at this point in the history
  • Loading branch information
cswendrowski authored Sep 14, 2022
2 parents 9f230cf + b993a6f commit 6d5af3e
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 0 deletions.
41 changes: 41 additions & 0 deletions scripts/systemShims/SwadeShim.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
export class SwadeShim {
constructor(character) {
this.character = character;
}

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

// Bait moves faster
get con() {
const die = this.character.system.attributes.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.attributes.spirit.die.sides;
return (die / 2) - 2;
}

// How far the fish jumps is reduced
get cha() {
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.attributes.agility.die.sides;
return (die / 2) - 2;
}
}
2 changes: 2 additions & 0 deletions scripts/systemShims/theRealShimShady.mjs
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
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;
switch ( system ) {
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;
}
}

0 comments on commit 6d5af3e

Please sign in to comment.