diff --git a/src/lang/en.json b/src/lang/en.json index a016068..ee22410 100644 --- a/src/lang/en.json +++ b/src/lang/en.json @@ -1,234 +1,236 @@ { - "OSE.Edit": "Edit", - "OSE.Delete": "Delete", - "OSE.Show": "Show", - "OSE.Add": "Add", - "OSE.Ok": "Ok", - "OSE.Reset": "Reset", - "OSE.Cancel": "Cancel", - "OSE.Roll": "Roll", - "OSE.Success": "Success", - "OSE.Failure": "Failure", + "OSE.Edit": "Edit", + "OSE.Delete": "Delete", + "OSE.Show": "Show", + "OSE.Add": "Add", + "OSE.Ok": "Ok", + "OSE.Reset": "Reset", + "OSE.Cancel": "Cancel", + "OSE.Roll": "Roll", + "OSE.Success": "Success", + "OSE.Failure": "Failure", - "OSE.Formula": "Formula", - "OSE.SitMod": "Situational Modifier", - "OSE.Modifier": "Modifier", - "OSE.Modifiers": "Modifiers", - "OSE.RollMode": "Roll Mode", - "OSE.RollExample": "e.g. +1d4", + "OSE.Formula": "Formula", + "OSE.SitMod": "Situational Modifier", + "OSE.Modifier": "Modifier", + "OSE.Modifiers": "Modifiers", + "OSE.RollMode": "Roll Mode", + "OSE.RollExample": "e.g. +1d4", - "OSE.Name": "Name", - "OSE.Class": "Class", - "OSE.Title": "Title", - "OSE.Alignment": "Alignment", - "OSE.Level": "Level", - "OSE.Experience": "Experience", - "OSE.ExperienceBonus": "Bonus Experience", - "OSE.ExperienceNextLevel": "Next level", - "OSE.ExperienceAward": "XP Award", - "OSE.Treasure": "Treasure type", - "OSE.TreasureTable": "Table", - "OSE.TreasureTableHint": "Drop a rollable table here to roll the monster treasure", - "OSE.Size": "Size", - "OSE.Morale": "Morale", - "OSE.MoraleCheck": "Morale Check", - "OSE.Reaction": "Reaction", - "OSE.ReactionCheck": "Reaction Check", - "OSE.Retainer": "Retainer", - "OSE.RetainerWage": "Wage", - "OSE.RetainerUpkeep": "Upkeep", - "OSE.Appearing": "NA", - "OSE.AppearingCheck": "Appearing Check", - "OSE.Attack": "Attack", - "OSE.Encumbrance": "Encumbrance", + "OSE.appearing.check": "Appearing Check", + "OSE.morale.check": "Morale Check", - "OSE.Loyalty": "Loyalty Rating", - "OSE.LoyaltyShort": "LR", - - "OSE.AttributeCheck": "Attribute Check", - "OSE.AttributeCheckDetails": "Roll 1d20 <= {score} for success", - "OSE.scores.str.long": "Strength", - "OSE.scores.str.short": "STR", - "OSE.scores.wis.long": "Wisdom", - "OSE.scores.wis.short": "WIS", - "OSE.scores.int.long": "Intelligence", - "OSE.scores.int.short": "INT", - "OSE.scores.dex.long": "Dexterity", - "OSE.scores.dex.short": "DEX", - "OSE.scores.con.long": "Constitution", - "OSE.scores.con.short": "CON", - "OSE.scores.cha.long": "Charisma", - "OSE.scores.cha.short": "CHA", + "OSE.details.name": "Name", + "OSE.details.class": "Class", + "OSE.details.title": "Title", + "OSE.details.alignment": "Alignment", + "OSE.details.level": "Level", + "OSE.details.experience.base": "Experience", + "OSE.details.experience.bonus": "Bonus Experience", + "OSE.details.experience.next": "Next level", + "OSE.details.experience.award": "XP Award", + "OSE.details.treasure": "Treasure type", + "OSE.details.treasureTable": "Table", + "OSE.details.TreasureTableHint": "Drop a rollable table here to roll the monster treasure", + "OSE.details.morale": "Morale", + "OSE.details.reaction": "Reaction", + "OSE.details.appearing": "NA", - "OSE.SavingThrow": "Save", - "OSE.SavingThrowDetails": "Roll 1d20 >= {save} for success", - "OSE.saves.death.short": "D", - "OSE.saves.death.long": "Death Poison", - "OSE.saves.wand.short": "W", - "OSE.saves.wand.long": "Wands", - "OSE.saves.paralysis.short": "P", - "OSE.saves.paralysis.long": "Paralysis Petrify", - "OSE.saves.breath.short": "B", - "OSE.saves.breath.long": "Breath Attacks", - "OSE.saves.spell.short": "S", - "OSE.saves.spell.long": "Spells Rods Staves", - "OSE.saves.magic.long": "Bonus vs Magic", + "OSE.Attack": "Attack", + "OSE.Encumbrance": "Encumbrance", - "OSE.Health": "Hit Points", - "OSE.HealthMax": "Maximum Hit Points", - "OSE.HealthShort": "HP", - "OSE.HitDice": "Hit Dice", - "OSE.HitDiceShort": "HD", - "OSE.Movement": "Movement Rate", - "OSE.MovementDetails": "Movement Details", - "OSE.MovementEncounter": "Encounter Movement Rate", - "OSE.MovementEncounterShort": "En", - "OSE.MovementOverland": "Overland Movement Rate", - "OSE.MovementOverlandShort": "Ov", - "OSE.MovementExplorationShort": "Ex", - "OSE.MovementShort": "MV", - "OSE.ArmorClassNaked": "Naked Armor Class", - "OSE.ArmorClass": "Armor Class", - "OSE.ArmorClassShort": "AC", - "OSE.AscArmorClassShort": "AAC", - "OSE.SpellDC": "Spell DC", - "OSE.SpellDCShort": "DC", - "OSE.Thac0": "THAC0", - "OSE.ABShort": "AB", - "OSE.AB": "Attack Bonus", - "OSE.MeleeShort": "MEL", - "OSE.Melee": "Melee", - "OSE.MeleeBonus": "Melee Bonus", - "OSE.MissileShort": "MIS", - "OSE.Missile": "Missile", - "OSE.MissileBonus": "Missile Bonus", - "OSE.Initiative": "Initiative", - "OSE.InitiativeBonus": "Initiative Bonus", - "OSE.InitiativeShort": "INIT", - "OSE.Attacks": "Attacks Usable per Round", - "OSE.AttacksShort": "ATT", - "OSE.Damage": "Damage", - "OSE.Spellcaster": "Spellcaster", + "OSE.Retainer": "Retainer", + "OSE.RetainerWage": "Wage", + "OSE.RetainerUpkeep": "Upkeep", + "OSE.Loyalty": "Loyalty Rating", + "OSE.LoyaltyShort": "LR", - "OSE.Language": "Language", - "OSE.SpokenLanguages": "Spoken Languages", - "OSE.Literacy": "Literacy", - "OSE.Literate": "Literate", - "OSE.LiteracyBasic": "Basic", - "OSE.Illiterate": "Illiterate", - "OSE.NPCReaction": "NPC Reaction", - "OSE.RetainersMax": "#Retainers", - - "OSE.category.attributes": "Attributes", - "OSE.category.inventory": "Inventory", - "OSE.category.abilities": "Abilities", - "OSE.category.spells": "Spells", - "OSE.category.notes": "Notes", - "OSE.category.languages": "Languages", - "OSE.category.description": "Description", - - "OSE.panel.abilities": "Abilities", - "OSE.panel.equipment": "Equipment", + "OSE.scores.check": "Attribute Check", + "OSE.scores.details": "Roll 1d20 <= {score} for success", + "OSE.scores.str.long": "Strength", + "OSE.scores.str.short": "STR", + "OSE.scores.wis.long": "Wisdom", + "OSE.scores.wis.short": "WIS", + "OSE.scores.int.long": "Intelligence", + "OSE.scores.int.short": "INT", + "OSE.scores.dex.long": "Dexterity", + "OSE.scores.dex.short": "DEX", + "OSE.scores.con.long": "Constitution", + "OSE.scores.con.short": "CON", + "OSE.scores.cha.long": "Charisma", + "OSE.scores.cha.short": "CHA", - "OSE.Setting.IndividualInit": "Individual Initiative", - "OSE.Setting.IndividualInitHint": "Initiative is rolled for each actor and modified by its DEX score", - "OSE.Setting.AscendingAC": "Ascending Armor Class", - "OSE.Setting.AscendingACHint": "The more the better", - "OSE.Setting.Morale": "Enable monsters Morale Rating", - "OSE.Setting.MoraleHint": "Morale Rating is shown on monster sheets", - "OSE.Setting.THAC0Attacks": "Attacks with THAC0", - "OSE.Setting.THAC0AttacksHint": "Attacks are resolved using the THAC0 value, not compatible with AAC", - "OSE.Setting.VariableWeaponDamage": "Variable Weapon Damage", - "OSE.Setting.VariableWeaponDamageHint": "Weapons have different damage dice", - "OSE.Setting.Encumbrance": "Encumbrance", - "OSE.Setting.EncumbranceHint": "Choose the way encumbrance is calculated", - "OSE.Setting.EncumbranceBasic": "Basic", - "OSE.Setting.EncumbranceDetailed": "Detailed", - "OSE.Setting.MovementAuto": "Calculate Movement", - "OSE.Setting.SignificantTreasure": "Significant Treasure Weight", - "OSE.Setting.SignificantTreasureHint": "Weight at which treasure will reduce the movement, only useful for basic encumbrance", - "OSE.Setting.Welcome": "Display Welcome message", - "OSE.Setting.WelcomeHint": "Display this annoying welcome message", + "OSE.saves.check": "Save", + "OSE.saves.details": "Roll 1d20 >= {save} for success", + "OSE.saves.death.short": "D", + "OSE.saves.death.long": "Death Poison", + "OSE.saves.wand.short": "W", + "OSE.saves.wand.long": "Wands", + "OSE.saves.paralysis.short": "P", + "OSE.saves.paralysis.long": "Paralysis Petrify", + "OSE.saves.breath.short": "B", + "OSE.saves.breath.long": "Breath Attacks", + "OSE.saves.spell.short": "S", + "OSE.saves.spell.long": "Spells Rods Staves", + "OSE.saves.magic.long": "Bonus vs Magic", - "OSE.items.Equip": "Equip", - "OSE.items.Unequip": "Unequip", - "OSE.items.Misc": "Misc", - "OSE.items.Weapons": "Weapons", - "OSE.items.Treasure": "Treasure", - "OSE.items.Armors": "Armors", - "OSE.items.Weight": "Wgt.", - "OSE.items.Qualities": "Qualities", - "OSE.items.Notes": "Notes", - "OSE.items.Cost": "Cost", - "OSE.items.Quantity": "Qt.", - "OSE.items.Roll": "Roll", - "OSE.items.BlindRoll": "Blind", - "OSE.items.Damage": "Damage", - "OSE.items.Melee": "Melee", - "OSE.items.Missile": "Missile", - "OSE.items.Slow": "Slow", - "OSE.items.ArmorAC": "AC", - "OSE.items.ArmorAAC": "AAC", - "OSE.items.Bonus": "Bonus", - "OSE.items.roundAttacks": "Attacks Spent this Round", - "OSE.items.roundAttacksMax": "Maximum Attacks per Round", - "OSE.items.resetAttacks": "Reset all Attacks per Round", - "OSE.items.hasShield": "Has a Shield bonus", - "OSE.items.typeTag": "Type a comma separated list of tag e.g 'Melee,Missile (5’–10’ / 11’–20’ / 21’–30’)'", + "OSE.Health": "Hit Points", + "OSE.HealthMax": "Maximum Hit Points", + "OSE.HealthShort": "HP", + "OSE.HitDice": "Hit Dice", + "OSE.HitDiceShort": "HD", - "OSE.armor.type": "Armor Type", - "OSE.armor.unarmored": "Unarmored", - "OSE.armor.light": "Light", - "OSE.armor.heavy": "Heavy", - "OSE.armor.shield": "Shield", - - "OSE.spells.spend": "{speaker} is casting {name}!", - "OSE.spells.Memorized": "Memorized", - "OSE.spells.Cast": "Cast", - "OSE.spells.Range": "Range", - "OSE.spells.Slots": "Slots", - "OSE.spells.Class": "Class", - "OSE.spells.Duration": "Duration", - "OSE.spells.Level": "Level", - "OSE.spells.Save": "Save", - "OSE.spells.ResetSlots": "Reset Spell slots", + "OSE.movement.base": "Movement Rate", + "OSE.movement.short": "MV", + "OSE.movement.details": "Movement Details", + "OSE.movement.encounter.long": "Encounter Movement Rate", + "OSE.movement.encounter.short": "En", + "OSE.movement.overland.long": "Overland Movement Rate", + "OSE.movement.overland.short": "Ov", + "OSE.movement.exploration.short": "Ex", + "OSE.movement.exploration.long": "Exploration Movement Rate", - "OSE.abilities.Requirements": "Requirements", + "OSE.ArmorClassNaked": "Naked Armor Class", + "OSE.ArmorClass": "Armor Class", + "OSE.ArmorClassShort": "AC", + "OSE.AscArmorClassShort": "AAC", + "OSE.SpellDC": "Spell DC", + "OSE.SpellDCShort": "DC", + "OSE.Thac0": "THAC0", + "OSE.ABShort": "AB", + "OSE.AB": "Attack Bonus", + "OSE.MeleeShort": "MEL", + "OSE.Melee": "Melee", + "OSE.MeleeBonus": "Melee Bonus", + "OSE.MissileShort": "MIS", + "OSE.Missile": "Missile", + "OSE.MissileBonus": "Missile Bonus", + "OSE.Initiative": "Initiative", + "OSE.InitiativeBonus": "Initiative Bonus", + "OSE.InitiativeShort": "INIT", + "OSE.Attacks": "Attacks Usable per Round", + "OSE.AttacksShort": "ATT", + "OSE.Damage": "Damage", + "OSE.Spellcaster": "Spellcaster", - "OSE.ExplorationCheck": "Check", - "OSE.ExplorationCheckDetails": "Roll 1d6 <= {expl} for success", - "OSE.exploration.ld.long": "Listen at Door", - "OSE.exploration.ld.short": "Listen Door", - "OSE.exploration.ld.abrev": "LD", - "OSE.exploration.od.long": "Open Stuck Door", - "OSE.exploration.od.short": "Open Door", - "OSE.exploration.od.abrev": "OD", - "OSE.exploration.sd.long": "Find Secret Door", - "OSE.exploration.sd.short": "Secret Door", - "OSE.exploration.sd.abrev": "SD", - "OSE.exploration.ft.long": "Find Room Trap", - "OSE.exploration.ft.short": "Find Trap", - "OSE.exploration.ft.abrev": "FT", + "OSE.Language": "Language", + "OSE.SpokenLanguages": "Spoken Languages", + "OSE.Literacy": "Literacy", + "OSE.Literate": "Literate", + "OSE.LiteracyBasic": "Basic", + "OSE.Illiterate": "Illiterate", + "OSE.NPCReaction": "NPC Reaction", + "OSE.RetainersMax": "#Retainers", - "OSE.messages.GetExperience": "{name} gained {value} experience points!", - "OSE.messages.AttackSuccess": "Hits AC {result}! ({bonus})", - "OSE.messages.AttackAscendingSuccess": "Hits AC {result}!", - "OSE.messages.AttackFailure": "Attack fails ({bonus})", - "OSE.messages.InflictsDamage": "Inflicts damage!", - "OSE.ChatContextDamage": "Apply Damage", - "OSE.ChatContextHealing": "Apply Healing", + "OSE.category.attributes": "Attributes", + "OSE.category.inventory": "Inventory", + "OSE.category.abilities": "Abilities", + "OSE.category.spells": "Spells", + "OSE.category.notes": "Notes", + "OSE.category.languages": "Languages", + "OSE.category.description": "Description", + "OSE.category.equipment": "Equipment", - "OSE.colors.green": "Green", - "OSE.colors.red": "Red", - "OSE.colors.yellow": "Yellow", - "OSE.colors.purple": "Purple", - "OSE.colors.blue": "Blue", - "OSE.colors.orange": "Orange", - "OSE.colors.white": "White", + "OSE.Setting.IndividualInit": "Individual Initiative", + "OSE.Setting.IndividualInitHint": "Initiative is rolled for each actor and modified by its DEX score", + "OSE.Setting.AscendingAC": "Ascending Armor Class", + "OSE.Setting.AscendingACHint": "The more the better", + "OSE.Setting.Morale": "Enable monsters Morale Rating", + "OSE.Setting.MoraleHint": "Morale Rating is shown on monster sheets", + "OSE.Setting.THAC0Attacks": "Attacks with THAC0", + "OSE.Setting.THAC0AttacksHint": "Attacks are resolved using the THAC0 value, not compatible with AAC", + "OSE.Setting.VariableWeaponDamage": "Variable Weapon Damage", + "OSE.Setting.VariableWeaponDamageHint": "Weapons have different damage dice", + "OSE.Setting.Encumbrance": "Encumbrance", + "OSE.Setting.EncumbranceHint": "Choose the way encumbrance is calculated", + "OSE.Setting.EncumbranceBasic": "Basic", + "OSE.Setting.EncumbranceDetailed": "Detailed", + "OSE.Setting.MovementAuto": "Calculate Movement", + "OSE.Setting.SignificantTreasure": "Significant Treasure Weight", + "OSE.Setting.SignificantTreasureHint": "Weight at which treasure will reduce the movement, only useful for basic encumbrance", + "OSE.Setting.Welcome": "Display Welcome message", + "OSE.Setting.WelcomeHint": "Display this annoying welcome message", - "OSE.reaction.Hostile": "{name} is Hostile", - "OSE.reaction.Unfriendly": "{name} is Unfriendly", - "OSE.reaction.Neutral": "{name} is Neutral", - "OSE.reaction.Indifferent": "{name} is Indifferent", - "OSE.reaction.Friendly": "{name} is Friendly" -} \ No newline at end of file + "OSE.items.Equip": "Equip", + "OSE.items.Unequip": "Unequip", + "OSE.items.Misc": "Misc", + "OSE.items.Weapons": "Weapons", + "OSE.items.Treasure": "Treasure", + "OSE.items.Armors": "Armors", + "OSE.items.Weight": "Wgt.", + "OSE.items.Qualities": "Qualities", + "OSE.items.Notes": "Notes", + "OSE.items.Cost": "Cost", + "OSE.items.Quantity": "Qt.", + "OSE.items.Roll": "Roll", + "OSE.items.BlindRoll": "Blind", + "OSE.items.Damage": "Damage", + "OSE.items.Melee": "Melee", + "OSE.items.Missile": "Missile", + "OSE.items.Slow": "Slow", + "OSE.items.ArmorAC": "AC", + "OSE.items.ArmorAAC": "AAC", + "OSE.items.Bonus": "Bonus", + "OSE.items.roundAttacks": "Attacks Spent this Round", + "OSE.items.roundAttacksMax": "Maximum Attacks per Round", + "OSE.items.resetAttacks": "Reset all Attacks per Round", + "OSE.items.hasShield": "Has a Shield bonus", + "OSE.items.typeTag": "Type a comma separated list of tag e.g 'Melee,Missile (5’–10’ / 11’–20’ / 21’–30’)'", + + "OSE.armor.type": "Armor Type", + "OSE.armor.unarmored": "Unarmored", + "OSE.armor.light": "Light", + "OSE.armor.heavy": "Heavy", + "OSE.armor.shield": "Shield", + + "OSE.spells.spend": "{speaker} is casting {name}!", + "OSE.spells.Memorized": "Memorized", + "OSE.spells.Cast": "Cast", + "OSE.spells.Range": "Range", + "OSE.spells.Slots": "Slots", + "OSE.spells.Class": "Class", + "OSE.spells.Duration": "Duration", + "OSE.spells.Level": "Level", + "OSE.spells.Save": "Save", + "OSE.spells.ResetSlots": "Reset Spell slots", + + "OSE.abilities.Requirements": "Requirements", + + "OSE.exploration.check": "Check", + "OSE.exploration.details": "Roll 1d6 <= {expl} for success", + "OSE.exploration.ld.long": "Listen at Door", + "OSE.exploration.ld.short": "Listen Door", + "OSE.exploration.ld.abrev": "LD", + "OSE.exploration.od.long": "Open Stuck Door", + "OSE.exploration.od.short": "Open Door", + "OSE.exploration.od.abrev": "OD", + "OSE.exploration.sd.long": "Find Secret Door", + "OSE.exploration.sd.short": "Secret Door", + "OSE.exploration.sd.abrev": "SD", + "OSE.exploration.ft.long": "Find Room Trap", + "OSE.exploration.ft.short": "Find Trap", + "OSE.exploration.ft.abrev": "FT", + + "OSE.messages.GetExperience": "{name} gained {value} experience points!", + "OSE.messages.AttackSuccess": "Hits AC {result}! ({bonus})", + "OSE.messages.AttackAscendingSuccess": "Hits AC {result}!", + "OSE.messages.AttackFailure": "Attack fails ({bonus})", + "OSE.messages.InflictsDamage": "Inflicts damage!", + "OSE.messages.applyDamage": "Apply Damage", + "OSE.messages.ApplyHealing": "Apply Healing", + + "OSE.colors.green": "Green", + "OSE.colors.red": "Red", + "OSE.colors.yellow": "Yellow", + "OSE.colors.purple": "Purple", + "OSE.colors.blue": "Blue", + "OSE.colors.orange": "Orange", + "OSE.colors.white": "White", + + "OSE.reaction.check": "Reaction Check", + "OSE.reaction.Hostile": "{name} is Hostile", + "OSE.reaction.Unfriendly": "{name} is Unfriendly", + "OSE.reaction.Neutral": "{name} is Neutral", + "OSE.reaction.Indifferent": "{name} is Indifferent", + "OSE.reaction.Friendly": "{name} is Friendly" +} diff --git a/src/lang/es.json b/src/lang/es.json index c3bce98..3692ea5 100644 --- a/src/lang/es.json +++ b/src/lang/es.json @@ -115,9 +115,7 @@ "OSE.category.abilities": "Habilidades", "OSE.category.spells": "Conjuros", "OSE.category.notes": "Notas", - - "OSE.panel.abilities": "Habilidades", - "OSE.panel.equipment": "Equipo", + "OSE.category.equipment": "Equipo", "OSE.Setting.IndividualInit": "Iniciativa Individual", "OSE.Setting.IndividualInitHint": "La iniciativa se lanza por cada actor y se modifica por su puntuación de DES", @@ -182,8 +180,8 @@ "OSE.abilities.Requirements": "Requisitos", - "OSE.ExplorationCheck": "Check", - "OSE.ExplorationCheckDetails": "Tirar 1d6 <= {expl} para éxito", + "OSE.exploration.check": "Check", + "OSE.exploration.details": "Tirar 1d6 <= {expl} para éxito", "OSE.exploration.ld.long": "Escuchar Ruidos", "OSE.exploration.ld.short": "Escuchar Ruidos", "OSE.exploration.ld.abrev": "ER", diff --git a/src/lang/fr.json b/src/lang/fr.json index 5464387..f8a5509 100644 --- a/src/lang/fr.json +++ b/src/lang/fr.json @@ -27,7 +27,6 @@ "OSE.Treasure": "Butin", "OSE.TreasureTable": "Table", "OSE.TreasureTableHint": "Drop a rollable table here to roll the monster treasure", - "OSE.Size": "Taille", "OSE.Morale": "Moral", "OSE.Retainer": "Sbire", "OSE.Appearing": "NA", @@ -115,9 +114,7 @@ "OSE.category.abilities": "Aptitudes", "OSE.category.spells": "Sorts", "OSE.category.notes": "Notes", - - "OSE.panel.abilities": "Aptitudes", - "OSE.panel.equipment": "Équipement", + "OSE.category.equipment": "Équipement", "OSE.Setting.IndividualInit": "Initiative Individuelle", "OSE.Setting.IndividualInitHint": "L'Initiative est lancée pour chaque acteur, modifié par son score de DEX", @@ -178,8 +175,8 @@ "OSE.abilities.Requirements": "Prérequis", - "OSE.ExplorationCheck": "Test", - "OSE.ExplorationCheckDetails": "Lancer 1d6 <= {expl} pour réussir", + "OSE.exploration.check": "Test", + "OSE.exploration.details": "Lancer 1d6 <= {expl} pour réussir", "OSE.exploration.ld.long": "Listen at Door", "OSE.exploration.ld.short": "Listen Door", "OSE.exploration.ld.abrev": "LD", diff --git a/src/module/actor/entity.js b/src/module/actor/entity.js index d988539..c3ab922 100644 --- a/src/module/actor/entity.js +++ b/src/module/actor/entity.js @@ -73,7 +73,7 @@ export class OseActor extends Actor { rollData: { type: "Above", target: this.data.data.saves[save].value, - details: game.i18n.format("OSE.SavingThrowDetails", { save: label }), + details: game.i18n.format("OSE.saves.details", { save: label }), }, }, }; @@ -87,13 +87,13 @@ export class OseActor extends Actor { data: data, skipDialog: skip, speaker: ChatMessage.getSpeaker({ actor: this }), - flavor: `${label} ${game.i18n.localize("OSE.SavingThrow")}`, - title: `${label} ${game.i18n.localize("OSE.SavingThrow")}`, + flavor: `${label} ${game.i18n.localize("OSE.saves.check")}`, + title: `${label} ${game.i18n.localize("OSE.saves.check")}`, }); } rollMorale(options = {}) { - const label = game.i18n.localize(`OSE.Morale`); + const label = game.i18n.localize(`OSE.details.morale`); const rollParts = ["2d6"]; const data = { @@ -113,8 +113,8 @@ export class OseActor extends Actor { data: data, skipDialog: true, speaker: ChatMessage.getSpeaker({ actor: this }), - flavor: `${label} ${game.i18n.localize("OSE.Roll")}`, - title: `${label} ${game.i18n.localize("OSE.Roll")}`, + flavor: game.i18n.localize("OSE.morale.check"), + title: game.i18n.localize("OSE.morale.check"), }); } @@ -145,7 +145,7 @@ export class OseActor extends Actor { } rollReaction(options = {}) { - const label = game.i18n.localize(`OSE.Reaction`); + const label = game.i18n.localize(`OSE.details.reaction`); const rollParts = ["2d6"]; const data = { @@ -183,8 +183,8 @@ export class OseActor extends Actor { data: data, skipDialog: skip, speaker: ChatMessage.getSpeaker({ actor: this }), - flavor: `${label} ${game.i18n.localize("OSE.Roll")}`, - title: `${label} ${game.i18n.localize("OSE.Roll")}`, + flavor: game.i18n.localize("OSE.reaction.check"), + title: game.i18n.localize("OSE.reaction.check"), }); } @@ -198,7 +198,7 @@ export class OseActor extends Actor { rollData: { type: "Check", target: this.data.data.scores[score].value, - details: game.i18n.format("OSE.AttributeCheckDetails", { + details: game.i18n.format("OSE.scores.details", { score: label, }), }, @@ -214,8 +214,8 @@ export class OseActor extends Actor { data: data, skipDialog: skip, speaker: ChatMessage.getSpeaker({ actor: this }), - flavor: `${label} ${game.i18n.localize("OSE.AttributeCheck")}`, - title: `${label} ${game.i18n.localize("OSE.AttributeCheck")}`, + flavor: `${label} ${game.i18n.localize("OSE.scores.check")}`, + title: `${label} ${game.i18n.localize("OSE.scores.check")}`, }); } @@ -270,8 +270,8 @@ export class OseActor extends Actor { data: data, skipDialog: true, speaker: ChatMessage.getSpeaker({ actor: this }), - flavor: `${game.i18n.localize('OSE.AppearingCheck')} ${label}`, - title: `${game.i18n.localize('OSE.AppearingCheck')} ${label}`, + flavor: `${game.i18n.localize('OSE.appearing.check')} ${label}`, + title: `${game.i18n.localize('OSE.appearing.check')} ${label}`, }); } @@ -285,7 +285,7 @@ export class OseActor extends Actor { rollData: { type: "Below", target: this.data.data.exploration[expl], - details: game.i18n.format("OSE.ExplorationCheckDetails", { + details: game.i18n.format("OSE.exploration.details", { expl: label, }), }, @@ -301,8 +301,8 @@ export class OseActor extends Actor { data: data, skipDialog: skip, speaker: ChatMessage.getSpeaker({ actor: this }), - flavor: `${label} ${game.i18n.localize("OSE.ExplorationCheck")}`, - title: `${label} ${game.i18n.localize("OSE.ExplorationCheck")}`, + flavor: `${label} ${game.i18n.localize("OSE.exploration.check")}`, + title: `${label} ${game.i18n.localize("OSE.exploration.check")}`, }); } diff --git a/src/module/chat.js b/src/module/chat.js index 47b7288..cf0fe88 100644 --- a/src/module/chat.js +++ b/src/module/chat.js @@ -11,13 +11,13 @@ export const addChatMessageContextOptions = function(html, options) { let canApply = li => canvas.tokens.controlled.length && li.find(".dice-roll").length; options.push( { - name: game.i18n.localize("OSE.ChatContextDamage"), + name: game.i18n.localize("OSE.messages.ApplyDamage"), icon: '', condition: canApply, callback: li => applyChatCardDamage(li, 1) }, { - name: game.i18n.localize("OSE.ChatContextHealing"), + name: game.i18n.localize("OSE.messages.ApplyHealing"), icon: '', condition: canApply, callback: li => applyChatCardDamage(li, -1) diff --git a/src/templates/actors/dialogs/tweaks-dialog.html b/src/templates/actors/dialogs/tweaks-dialog.html index 762a9c6..03f09cd 100644 --- a/src/templates/actors/dialogs/tweaks-dialog.html +++ b/src/templates/actors/dialogs/tweaks-dialog.html @@ -22,13 +22,13 @@ {{#if (eq this.type 'character')}}