diff --git a/modules/sheets/pokemonCharacterSheet.js b/modules/sheets/pokemonCharacterSheet.js index cf5d75f..201c4ca 100644 --- a/modules/sheets/pokemonCharacterSheet.js +++ b/modules/sheets/pokemonCharacterSheet.js @@ -1,333 +1,332 @@ const api = foundry.applications.api; const sheets = foundry.applications.sheets; -effectivenessChart = { - "normal": { - "normal": 1, - "fire": 1, - "water": 1, - "electric": 1, - "grass": 1, - "ice": 1, - "fighting": 1, - "poison": 1, - "ground": 1, - "flying": 1, - "psychic": 1, - "bug": 1, - "rock": 0.5, - "ghost": 0, - "dragon": 1, - "dark": 1, - "steel": 0.5 - }, - "fire": { - "normal": 1, - "fire": 0.5, - "water": 0.5, - "electric": 1, - "grass": 2, - "ice": 2, - "fighting": 1, - "poison": 1, - "ground": 1, - "flying": 1, - "psychic": 1, - "bug": 2, - "rock": 0.5, - "ghost": 1, - "dragon": 0.5, - "dark": 1, - "steel": 2 - }, - "water": { - "normal": 1, - "fire": 2, - "water": 0.5, - "electric": 1, - "grass": 0.5, - "ice": 1, - "fighting": 1, - "poison": 1, - "ground": 2, - "flying": 1, - "psychic": 1, - "bug": 1, - "rock": 2, - "ghost": 1, - "dragon": 0.5, - "dark": 1, - "steel": 1 - }, - "electric": { - "normal": 1, - "fire": 1, - "water": 2, - "electric": 0.5, - "grass": 0.5, - "ice": 1, - "fighting": 1, - "poison": 1, - "ground": 0, - "flying": 2, - "psychic": 1, - "bug": 1, - "rock": 1, - "ghost": 1, - "dragon": 0.5, - "dark": 1, - "steel": 1 - }, - "grass": { - "normal": 1, - "fire": 0.5, - "water": 2, - "electric": 1, - "grass": 0.5, - "ice": 1, - "fighting": 1, - "poison": 0.5, - "ground": 2, - "flying": 0.5, - "psychic": 1, - "bug": 0.5, - "rock": 2, - "ghost": 1, - "dragon": 0.5, - "dark": 1, - "steel": 0.5 - }, - "ice": { - "normal": 1, - "fire": 0.5, - "water": 0.5, - "electric": 1, - "grass": 2, - "ice": 0.5, - "fighting": 1, - "poison": 1, - "ground": 2, - "flying": 2, - "psychic": 1, - "bug": 1, - "rock": 1, - "ghost": 1, - "dragon": 2, - "dark": 1, - "steel": 0.5 - }, - "fighting": { - "normal": 2, - "fire": 1, - "water": 1, - "electric": 1, - "grass": 1, - "ice": 2, - "fighting": 1, - "poison": 0.5, - "ground": 1, - "flying": 0.5, - "psychic": 0.5, - "bug": 0.5, - "rock": 2, - "ghost": 0, - "dragon": 1, - "dark": 2, - "steel": 2 - }, - "poison": { - "normal": 1, - "fire": 1, - "water": 1, - "electric": 1, - "grass": 2, - "ice": 1, - "fighting": 1, - "poison": 0.5, - "ground": 0.5, - "flying": 1, - "psychic": 1, - "bug": 1, - "rock": 0.5, - "ghost": 0.5, - "dragon": 1, - "dark": 1, - "steel": 0 - }, - "ground": { - "normal": 1, - "fire": 2, - "water": 1, - "electric": 2, - "grass": 0.5, - "ice": 1, - "fighting": 1, - "poison": 2, - "ground": 1, - "flying": 0, - "psychic": 1, - "bug": 0.5, - "rock": 2, - "ghost": 1, - "dragon": 1, - "dark": 1, - "steel": 2 - }, - "flying": { - "normal": 1, - "fire": 1, - "water": 1, - "electric": 0.5, - "grass": 2, - "ice": 1, - "fighting": 2, - "poison": 1, - "ground": 1, - "flying": 1, - "psychic": 1, - "bug": 2, - "rock": 0.5, - "ghost": 1, - "dragon": 1, - "dark": 1, - "steel": 0.5 - }, - "psychic": { - "normal": 1, - "fire": 1, - "water": 1, - "electric": 1, - "grass": 1, - "ice": 1, - "fighting": 2, - "poison": 2, - "ground": 1, - "flying": 1, - "psychic": 0.5, - "bug": 1, - "rock": 1, - "ghost": 1, - "dragon": 1, - "dark": 0, - "steel": 0.5 - }, - "bug": { - "normal": 1, - "fire": 0.5, - "water": 1, - "electric": 1, - "grass": 2, - "ice": 1, - "fighting": 0.5, - "poison": 0.5, - "ground": 1, - "flying": 0.5, - "psychic": 2, - "bug": 1, - "rock": 1, - "ghost": 0.5, - "dragon": 1, - "dark": 2, - "steel": 0.5 - }, - "rock": { - "normal": 1, - "fire": 2, - "water": 1, - "electric": 1, - "grass": 1, - "ice": 2, - "fighting": 0.5, - "poison": 1, - "ground": 0.5, - "flying": 2, - "psychic": 1, - "bug": 2, - "rock": 1, - "ghost": 1, - "dragon": 1, - "dark": 1, - "steel": 0.5 - }, - "ghost": { - "normal": 0, - "fire": 1, - "water": 1, - "electric": 1, - "grass": 1, - "ice": 1, - "fighting": 1, - "poison": 1, - "ground": 1, - "flying": 1, - "psychic": 2, - "bug": 1, - "rock": 1, - "ghost": 2, - "dragon": 1, - "dark": 0.5, - "steel": 0.5 - }, - "dragon": { - "normal": 1, - "fire": 1, - "water": 1, - "electric": 1, - "grass": 1, - "ice": 1, - "fighting": 1, - "poison": 1, - "ground": 1, - "flying": 1, - "psychic": 1, - "bug": 1, - "rock": 1, - "ghost": 1, - "dragon": 2, - "dark": 1, - "steel": 0.5 - }, - "dark": { - "normal": 1, - "fire": 1, - "water": 1, - "electric": 1, - "grass": 1, - "ice": 1, - "fighting": 0.5, - "poison": 1, - "ground": 1, - "flying": 1, - "psychic": 2, - "bug": 1, - "rock": 1, - "ghost": 2, - "dragon": 1, - "dark": 0.5, - "steel": 0.5 - }, - "steel": { - "normal": 1, - "fire": 0.5, - "water": 0.5, - "electric": 0.5, - "grass": 1, - "ice": 2, - "fighting": 1, - "poison": 1, - "ground": 1, - "flying": 1, - "psychic": 1, - "bug": 1, - "rock": 2, - "ghost": 1, - "dragon": 1, - "dark": 1, - "steel": 0.5 - } -} - export default class pokemonCharacterSheet extends api.HandlebarsApplicationMixin(sheets.ActorSheetV2) { + static effectivenessChart = { + "normal": { + "normal": 1, + "fire": 1, + "water": 1, + "electric": 1, + "grass": 1, + "ice": 1, + "fighting": 1, + "poison": 1, + "ground": 1, + "flying": 1, + "psychic": 1, + "bug": 1, + "rock": 0.5, + "ghost": 0, + "dragon": 1, + "dark": 1, + "steel": 0.5 + }, + "fire": { + "normal": 1, + "fire": 0.5, + "water": 0.5, + "electric": 1, + "grass": 2, + "ice": 2, + "fighting": 1, + "poison": 1, + "ground": 1, + "flying": 1, + "psychic": 1, + "bug": 2, + "rock": 0.5, + "ghost": 1, + "dragon": 0.5, + "dark": 1, + "steel": 2 + }, + "water": { + "normal": 1, + "fire": 2, + "water": 0.5, + "electric": 1, + "grass": 0.5, + "ice": 1, + "fighting": 1, + "poison": 1, + "ground": 2, + "flying": 1, + "psychic": 1, + "bug": 1, + "rock": 2, + "ghost": 1, + "dragon": 0.5, + "dark": 1, + "steel": 1 + }, + "electric": { + "normal": 1, + "fire": 1, + "water": 2, + "electric": 0.5, + "grass": 0.5, + "ice": 1, + "fighting": 1, + "poison": 1, + "ground": 0, + "flying": 2, + "psychic": 1, + "bug": 1, + "rock": 1, + "ghost": 1, + "dragon": 0.5, + "dark": 1, + "steel": 1 + }, + "grass": { + "normal": 1, + "fire": 0.5, + "water": 2, + "electric": 1, + "grass": 0.5, + "ice": 1, + "fighting": 1, + "poison": 0.5, + "ground": 2, + "flying": 0.5, + "psychic": 1, + "bug": 0.5, + "rock": 2, + "ghost": 1, + "dragon": 0.5, + "dark": 1, + "steel": 0.5 + }, + "ice": { + "normal": 1, + "fire": 0.5, + "water": 0.5, + "electric": 1, + "grass": 2, + "ice": 0.5, + "fighting": 1, + "poison": 1, + "ground": 2, + "flying": 2, + "psychic": 1, + "bug": 1, + "rock": 1, + "ghost": 1, + "dragon": 2, + "dark": 1, + "steel": 0.5 + }, + "fighting": { + "normal": 2, + "fire": 1, + "water": 1, + "electric": 1, + "grass": 1, + "ice": 2, + "fighting": 1, + "poison": 0.5, + "ground": 1, + "flying": 0.5, + "psychic": 0.5, + "bug": 0.5, + "rock": 2, + "ghost": 0, + "dragon": 1, + "dark": 2, + "steel": 2 + }, + "poison": { + "normal": 1, + "fire": 1, + "water": 1, + "electric": 1, + "grass": 2, + "ice": 1, + "fighting": 1, + "poison": 0.5, + "ground": 0.5, + "flying": 1, + "psychic": 1, + "bug": 1, + "rock": 0.5, + "ghost": 0.5, + "dragon": 1, + "dark": 1, + "steel": 0 + }, + "ground": { + "normal": 1, + "fire": 2, + "water": 1, + "electric": 2, + "grass": 0.5, + "ice": 1, + "fighting": 1, + "poison": 2, + "ground": 1, + "flying": 0, + "psychic": 1, + "bug": 0.5, + "rock": 2, + "ghost": 1, + "dragon": 1, + "dark": 1, + "steel": 2 + }, + "flying": { + "normal": 1, + "fire": 1, + "water": 1, + "electric": 0.5, + "grass": 2, + "ice": 1, + "fighting": 2, + "poison": 1, + "ground": 1, + "flying": 1, + "psychic": 1, + "bug": 2, + "rock": 0.5, + "ghost": 1, + "dragon": 1, + "dark": 1, + "steel": 0.5 + }, + "psychic": { + "normal": 1, + "fire": 1, + "water": 1, + "electric": 1, + "grass": 1, + "ice": 1, + "fighting": 2, + "poison": 2, + "ground": 1, + "flying": 1, + "psychic": 0.5, + "bug": 1, + "rock": 1, + "ghost": 1, + "dragon": 1, + "dark": 0, + "steel": 0.5 + }, + "bug": { + "normal": 1, + "fire": 0.5, + "water": 1, + "electric": 1, + "grass": 2, + "ice": 1, + "fighting": 0.5, + "poison": 0.5, + "ground": 1, + "flying": 0.5, + "psychic": 2, + "bug": 1, + "rock": 1, + "ghost": 0.5, + "dragon": 1, + "dark": 2, + "steel": 0.5 + }, + "rock": { + "normal": 1, + "fire": 2, + "water": 1, + "electric": 1, + "grass": 1, + "ice": 2, + "fighting": 0.5, + "poison": 1, + "ground": 0.5, + "flying": 2, + "psychic": 1, + "bug": 2, + "rock": 1, + "ghost": 1, + "dragon": 1, + "dark": 1, + "steel": 0.5 + }, + "ghost": { + "normal": 0, + "fire": 1, + "water": 1, + "electric": 1, + "grass": 1, + "ice": 1, + "fighting": 1, + "poison": 1, + "ground": 1, + "flying": 1, + "psychic": 2, + "bug": 1, + "rock": 1, + "ghost": 2, + "dragon": 1, + "dark": 0.5, + "steel": 0.5 + }, + "dragon": { + "normal": 1, + "fire": 1, + "water": 1, + "electric": 1, + "grass": 1, + "ice": 1, + "fighting": 1, + "poison": 1, + "ground": 1, + "flying": 1, + "psychic": 1, + "bug": 1, + "rock": 1, + "ghost": 1, + "dragon": 2, + "dark": 1, + "steel": 0.5 + }, + "dark": { + "normal": 1, + "fire": 1, + "water": 1, + "electric": 1, + "grass": 1, + "ice": 1, + "fighting": 0.5, + "poison": 1, + "ground": 1, + "flying": 1, + "psychic": 2, + "bug": 1, + "rock": 1, + "ghost": 2, + "dragon": 1, + "dark": 0.5, + "steel": 0.5 + }, + "steel": { + "normal": 1, + "fire": 0.5, + "water": 0.5, + "electric": 0.5, + "grass": 1, + "ice": 2, + "fighting": 1, + "poison": 1, + "ground": 1, + "flying": 1, + "psychic": 1, + "bug": 1, + "rock": 2, + "ghost": 1, + "dragon": 1, + "dark": 1, + "steel": 0.5 + } + } sheetContext = {}; diff --git a/system.json b/system.json index 2239d75..099ffb6 100644 --- a/system.json +++ b/system.json @@ -1,5 +1,5 @@ { - "version": "0.1.10", + "version": "0.1.11", "id": "pokemon", "title": "Pokémon TTRPG", "description": "A Pokémon TTRPG", diff --git a/system.zip b/system.zip index 44046e4..289f56b 100644 Binary files a/system.zip and b/system.zip differ