generated from League-of-Foundry-Developers/FoundryVTT-Module-Template
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
43 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.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; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} | ||
} |