From 68a85841d85b84d4fdc65b4212b8a7c5db54f9ee Mon Sep 17 00:00:00 2001 From: Pablo de la Concepcion Date: Sat, 14 Dec 2024 23:43:32 +0000 Subject: [PATCH 1/2] Fix typo Intelect -> Intellect --- lang/en.json | 2 +- templates/actor/actor-sheet.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lang/en.json b/lang/en.json index 38515df..9a26fb2 100644 --- a/lang/en.json +++ b/lang/en.json @@ -66,7 +66,7 @@ "Mosh.HullPoints": "Hull Points", "Mosh.Installed": "Installed", "Mosh.Instinct": "Instinct", -"Mosh.Intelect": "Intelect", +"Mosh.Intellect": "Intellect", "Mosh.ItemName": "Item Name", "Mosh.Item": "Item", "Mosh.Items": "Items", diff --git a/templates/actor/actor-sheet.html b/templates/actor/actor-sheet.html index f4736b8..800e4a4 100644 --- a/templates/actor/actor-sheet.html +++ b/templates/actor/actor-sheet.html @@ -266,7 +266,7 @@
{{ localize 'Mosh.Intelect' }} + data-label="{{ localize 'Mosh.Intellect' }}">{{ localize 'Mosh.Intellect' }}
From 9ae7252a1b2796a3071b48ae3cc83fcb061fd423 Mon Sep 17 00:00:00 2001 From: Pablo de la Concepcion Date: Sun, 22 Dec 2024 14:34:31 +0000 Subject: [PATCH 2/2] Partial i18n of actor.js, i18n of the remaining templates --- lang/en.json | 452 +++++++++++++----- module/actor/actor.js | 112 +---- templates/chat/itemRoll.html | 10 +- templates/chat/rollCheck.html | 8 +- templates/chat/rollTable.html | 4 +- .../skill-check-stat-selection-dialog.html | 83 ++++ 6 files changed, 432 insertions(+), 237 deletions(-) create mode 100644 templates/dialogs/skill-check-stat-selection-dialog.html diff --git a/lang/en.json b/lang/en.json index 9a26fb2..35b4706 100644 --- a/lang/en.json +++ b/lang/en.json @@ -1,132 +1,324 @@ { -"Mosh.Add": "Add", -"Mosh.Ammo": "Ammo", -"Mosh.Ammunition": "Ammunition", -"Mosh.AmmoType": "Ammo Type", -"Mosh.AntiArmorAcronym": "AA", -"Mosh.AntiArmor": "Anti Armor", -"Mosh.AP": "AP", -"Mosh.Armor": "Armor", -"Mosh.ArmorName": "Armor Name", -"Mosh.ArmorPoints": "Armor Points", -"Mosh.Bacground" : "Background", -"Mosh.Bankruptcy" : "Bankruptcy", -"Mosh.BankruptcyCheck" : "Bankruptcy Check", -"Mosh.Base" : "Base", -"Mosh.Battle" : "Battle", -"Mosh.Bio": "Bio", -"Mosh.Body": "Body", -"Mosh.Bonus": "Bonus", -"Mosh.Calm": "Calm", -"Mosh.Cargo": "Cargo", -"Mosh.CarryingCapacity": "Carrying Capacity", -"Mosh.CLASS": "CLASS", -"Mosh.Combat": "Combat", -"Mosh.Condition": "Condition", -"Mosh.Cost": "Cost", -"Mosh.CreateCondition": "Create Condition", -"Mosh.CreateItem": "Create Item", -"Mosh.CreateSkill": "Create Skill", -"Mosh.CreateWeapon": "Create Weapon", -"Mosh.Credits": "Credits", -"Mosh.Crew": "Crew", -"Mosh.CriticalDamage": "Critical Damage", -"Mosh.Cryopods": "Cryopods", -"Mosh.Current": "Current", -"Mosh.CurrentShots": "Current Shots", -"Mosh.CurrentWeight": "Current Weight", -"Mosh.Damage": "Damage", -"Mosh.DeleteArmor": "Delete Armor", -"Mosh.DeleteCondition": "Delete Condition", -"Mosh.DeleteItem": "Delete Item", -"Mosh.DeleteSkill": "Delete Skill", -"Mosh.DeleteWeapon": "Delete Weapon", -"Mosh.Description": "Description", -"Mosh.Disabled": "Disabled", -"Mosh.DistressSignal": "Distress Signal", -"Mosh.DMGReduction": "DMG Reduction", -"Mosh.DR": "DR", -"Mosh.Fuel": "Fuel", -"Mosh.Feature": "Feature", -"Mosh.Features": "Features", -"Mosh.EditArmor": "Edit Armor", -"Mosh.EditCondition": "Edit Condition", -"Mosh.EditItem": "Edit Item", -"Mosh.EditSkill": "Edit Skill", -"Mosh.EditWeapon": "Edit Weapon", -"Mosh.Equipped": "Equipped", -"Mosh.Emergency": "Emergency", -"Mosh.EnemyShips": "Enemy Ships", -"Mosh.EscapePods": "Escape Pods", -"Mosh.Fear": "Fear", -"Mosh.Finances": "Finances", -"Mosh.Health": "Health", -"Mosh.HighScore": "High Score", -"Mosh.Hits": "Hits", -"Mosh.HullPoints": "Hull Points", -"Mosh.Installed": "Installed", -"Mosh.Instinct": "Instinct", -"Mosh.Intellect": "Intellect", -"Mosh.ItemName": "Item Name", -"Mosh.Item": "Item", -"Mosh.Items": "Items", -"Mosh.Level": "Level", -"Mosh.Loyalty": "Loyality", -"Mosh.Macros": "Macros", -"Mosh.MaintenanceAndRepairs": "Maintenance & Repairs", -"Mosh.MaintenanceCheck": "Maintenance Check", -"Mosh.Maximum": "Maximum", -"Mosh.MaximumShots": "MaximumShots", -"Mosh.MaxO2": "Max. O2", -"Mosh.Megadamage": "Megadamage", -"Mosh.Minimum": "Minimum", -"Mosh.ModuleName": "Module Name", -"Mosh.MoraleCheck": "Morale Check", -"Mosh.NA": "N/A", -"Mosh.Name": "Name", -"Mosh.Notes": "Notes", -"Mosh.O2Remaining": "O2 Remaining", -"Mosh.OpenDeckplan": "Open Deckplan", -"Mosh.Other": "Other", -"Mosh.Oxygen": "Oxygen", -"Mosh.Pronouns": "Pronouns", -"Mosh.Quantity": "Quantity", -"Mosh.Range": "Range", -"Mosh.RANK": "Rank", -"Mosh.Repairs": "Repairs", -"Mosh.Resolve": "Resolve", -"Mosh.Sanity": "Sanity", -"Mosh.SaveBonus": "SaveBonus", -"Mosh.Severity": "Severity", -"Mosh.ShipIdentifier": "Ship Identifier", -"Mosh.ShipWeaponBonus": "Ship Weapon Bonus", -"Mosh.Shots": "Shots", -"Mosh.ShotsPerFiring": "Shots per Firing", -"Mosh.SkillBonus": "Skill Bonus", -"Mosh.SkillName": "Skill Name", -"Mosh.SkillRank": "Skill Rank", -"Mosh.Skills": "Skills", -"Mosh.SkillTraining": "Skill Training", -"Mosh.SpecialAbilities": "Special Abilities", -"Mosh.Speed": "Speed", -"Mosh.StatsAndSaves": "Stats & Saves", -"Mosh.Strength": "Strength", -"Mosh.Stress": "Stress", -"Mosh.StressResponse": "Stress Response", -"Mosh.Systems": "Systems", -"Mosh.Thrusters": "Thrusters", -"Mosh.Total": "Total", -"Mosh.TraumaResponse": "Trauma Response", -"Mosh.Transponder": "Transponder", -"Mosh.Treatment": "Treatment", -"Mosh.Upgrades": "Upgrades", -"Mosh.UsesAmmo": "Uses Ammo", -"Mosh.Value": "Value", -"Mosh.WarpCores": "Warp Cores", -"Mosh.WeaponName": "Weapon Name", -"Mosh.Weapons": "Weapons", -"Mosh.Weight": "Weight", -"Mosh.Wounds": "Wounds", -"Mosh.WoundEffect": "Wound Effect", -"Mosh.XP": "XP" + "Mosh.Add": "Add", + "Mosh.Advantage": "Advantage", + "Mosh.Ammo": "Ammo", + "Mosh.Ammunition": "Ammunition", + "Mosh.AmmoType": "Ammo Type", + "Mosh.AntiArmorAcronym": "AA", + "Mosh.AntiArmor": "Anti Armor", + "Mosh.AP": "AP", + "Mosh.Armor": "Armor", + "Mosh.ArmorName": "Armor Name", + "Mosh.ArmorPoints": "Armor Points", + "Mosh.Bacground": "Background", + "Mosh.Bankruptcy": "Bankruptcy", + "Mosh.BankruptcyCheck": "Bankruptcy Check", + "Mosh.Base": "Base", + "Mosh.Battle": "Battle", + "Mosh.Bio": "Bio", + "Mosh.Body": "Body", + "Mosh.Bonus": "Bonus", + "Mosh.Calm": "Calm", + "Mosh.Cargo": "Cargo", + "Mosh.CarryingCapacity": "Carrying Capacity", + "Mosh.CLASS": "CLASS", + "Mosh.Combat": "Combat", + "Mosh.Condition": "Condition", + "Mosh.Cost": "Cost", + "Mosh.CreateCondition": "Create Condition", + "Mosh.CreateItem": "Create Item", + "Mosh.CreateSkill": "Create Skill", + "Mosh.CreateWeapon": "Create Weapon", + "Mosh.Credits": "Credits", + "Mosh.Crew": "Crew", + "Mosh.CriticalDamage": "Critical Damage", + "Mosh.Cryopods": "Cryopods", + "Mosh.Current": "Current", + "Mosh.CurrentShots": "Current Shots", + "Mosh.CurrentWeight": "Current Weight", + "Mosh.Damage": "Damage", + "Mosh.DeleteArmor": "Delete Armor", + "Mosh.DeleteCondition": "Delete Condition", + "Mosh.DeleteItem": "Delete Item", + "Mosh.DeleteSkill": "Delete Skill", + "Mosh.DeleteWeapon": "Delete Weapon", + "Mosh.Description": "Description", + "Mosh.Disabled": "Disabled", + "Mosh.Disadvantage": "Disadvantage", + "Mosh.DistressSignal": "Distress Signal", + "Mosh.DMGReduction": "DMG Reduction", + "Mosh.DR": "DR", + "Mosh.Fuel": "Fuel", + "Mosh.Feature": "Feature", + "Mosh.Features": "Features", + "Mosh.EditArmor": "Edit Armor", + "Mosh.EditCondition": "Edit Condition", + "Mosh.EditItem": "Edit Item", + "Mosh.EditSkill": "Edit Skill", + "Mosh.EditWeapon": "Edit Weapon", + "Mosh.Equipped": "Equipped", + "Mosh.Emergency": "Emergency", + "Mosh.EnemyShips": "Enemy Ships", + "Mosh.EscapePods": "Escape Pods", + "Mosh.Fear": "Fear", + "Mosh.Finances": "Finances", + "Mosh.Health": "Health", + "Mosh.HighScore": "High Score", + "Mosh.Hits": "Hits", + "Mosh.HullPoints": "Hull Points", + "Mosh.Installed": "Installed", + "Mosh.Instinct": "Instinct", + "Mosh.Intellect": "Intellect", + "Mosh.ItemName": "Item Name", + "Mosh.Item": "Item", + "Mosh.Items": "Items", + "Mosh.Level": "Level", + "Mosh.Loyalty": "Loyality", + "Mosh.Macros": "Macros", + "Mosh.MaintenanceAndRepairs": "Maintenance & Repairs", + "Mosh.MaintenanceCheck": "Maintenance Check", + "Mosh.Maximum": "Maximum", + "Mosh.MaximumShots": "MaximumShots", + "Mosh.MaxO2": "Max. O2", + "Mosh.Megadamage": "Megadamage", + "Mosh.Minimum": "Minimum", + "Mosh.ModuleName": "Module Name", + "Mosh.MoraleCheck": "Morale Check", + "Mosh.NA": "N/A", + "Mosh.Name": "Name", + "Mosh.Next": "Next", + "Mosh.Normal": "Normal", + "Mosh.Notes": "Notes", + "Mosh.O2Remaining": "O2 Remaining", + "Mosh.OpenDeckplan": "Open Deckplan", + "Mosh.Other": "Other", + "Mosh.Oxygen": "Oxygen", + "Mosh.PanicCheck": "Panic Check", + "Mosh.Pronouns": "Pronouns", + "Mosh.Quantity": "Quantity", + "Mosh.Range": "Range", + "Mosh.RANK": "Rank", + "Mosh.Repairs": "Repairs", + "Mosh.Resolve": "Resolve", + "Mosh.RollingForPanicEffect": "Rolling for panic effect...", + "Mosh.RollingForMaintenanceIssue": "Rolling for maintenance issue...", + "Mosh.Sanity": "Sanity", + "Mosh.SaveBonus": "SaveBonus", + "Mosh.Severity": "Severity", + "Mosh.ShipIdentifier": "Ship Identifier", + "Mosh.ShipWeaponBonus": "Ship Weapon Bonus", + "Mosh.Shots": "Shots", + "Mosh.ShotsPerFiring": "Shots per Firing", + "Mosh.SkillBonus": "Skill Bonus", + "Mosh.SkillName": "Skill Name", + "Mosh.SkillRank": "Skill Rank", + "Mosh.Skills": "Skills", + "Mosh.SkillTraining": "Skill Training", + "Mosh.SpecialAbilities": "Special Abilities", + "Mosh.Speed": "Speed", + "Mosh.StatsAndSaves": "Stats & Saves", + "Mosh.Strength": "Strength", + "Mosh.Stress": "Stress", + "Mosh.StressResponse": "Stress Response", + "Mosh.Systems": "Systems", + "Mosh.Thrusters": "Thrusters", + "Mosh.Total": "Total", + "Mosh.TraumaResponse": "Trauma Response", + "Mosh.Transponder": "Transponder", + "Mosh.Treatment": "Treatment", + "Mosh.Upgrades": "Upgrades", + "Mosh.UsesAmmo": "Uses Ammo", + "Mosh.Value": "Value", + "Mosh.WarpCores": "Warp Cores", + "Mosh.WeaponName": "Weapon Name", + "Mosh.Weapons": "Weapons", + "Mosh.Weight": "Weight", + "Mosh.Wounds": "Wounds", + "Mosh.WoundEffect": "Wound Effect", + "Mosh.XP": "XP", + "Mosh.YouRolled90OrHigher": "You rolled 90 or higher, which is always considered a failure.", + "Mosh.ArmorEnhanced": "Armor Enhanced", + "Mosh.ArmorGained": "Armor Gained", + "Mosh.ArmorImpaired": "Armor Impaired", + "Mosh.BattleEnhanced": "Battle Enhanced", + "Mosh.BattleImpaired": "Battle Impaired", + "Mosh.BodyEnhanced": "Body Enhanced", + "Mosh.BodyImpaired": "Body Impaired", + "Mosh.BodyStrengthened": "Body Strengthened", + "Mosh.BodyWeakened": "Body Weakened", + "Mosh.BraveryEnhanced": "Bravery Enhanced", + "Mosh.BraveryImpaired": "Bravery Impaired", + "Mosh.BraveryImproved": "Bravery Improved", + "Mosh.BraveryLost": "Bravery Lost", + "Mosh.CalmGained": "Calm Gained", + "Mosh.CalmLost": "Calm Lost", + "Mosh.Centralpartitiondamagedetected.Unrecoverablesectorsfound": "Central partition damage detected. Unrecoverable sectors found", + "Mosh.CombatEnhanced": "Combat Enhanced", + "Mosh.CombatGained": "Combat Gained", + "Mosh.CombatImpaired": "Combat Impaired", + "Mosh.CombatLost": "Combat Lost", + "Mosh.Damaged": "Damaged", + "Mosh.DatarecoveredCentralpartitiondatarestored": "Data recovered. Central partition data restored", + "Mosh.HealthGained": "Health Gained", + "Mosh.HealthLost": "Health Lost", + "Mosh.InstinctEnhanced": "Instinct Enhanced", + "Mosh.InstinctGained": "Instinct Gained", + "Mosh.InstinctImpaired": "Instinct Impaired", + "Mosh.InstinctLost": "Instinct Lost", + "Mosh.IntellectEnhanced": "Intellect Enhanced", + "Mosh.IntellectGained": "IntellectGained", + "Mosh.LoyaltyEnhanced": "Loyalty Enhanced", + "Mosh.LoyaltyGained": "Loyalty Gained", + "Mosh.LoyaltyImpaired": "Loyalty Impaired", + "Mosh.LoyaltyLost": "Loyalty Lost", + "Mosh.MacroMakeaWoundCheck": "@UUID[Compendium.mosh.macros_hotbar_1e.ZzKgfEmRdvDfyBMS]{Make a Wound Check}", + "Mosh.Mended": "Mended", + "Mosh.Nothingprotectsyounow": "Nothing protects you now", + "Mosh.Powersurgesthroughyourchestandyoustarttooverheat": "Power surges through your chest and you start to overheat", + "Mosh.Repaired": "Repaired", + "Mosh.SanityEnhanced": "Sanity Enhanced", + "Mosh.SanityImpaired": "Sanity Impaired", + "Mosh.SanityIncreased": "Sanity Increased", + "Mosh.SanityLost": "Sanity Lost", + "Mosh.SpeedEnhanced": "Speed Enhanced", + "Mosh.SpeedGained": "Speed Gained", + "Mosh.SpeedImpaired": "Speed Impaired", + "Mosh.SpeedLost": "Speed Lost", + "Mosh.StrengthEnhanced": "Strength Enhanced", + "Mosh.StrengthGained": "Strength Gained", + "Mosh.StrengthImpaired": "Strength Impaired", + "Mosh.StrengthLost": "Strength Lost", + "Mosh.StressGained": "Stress Gained", + "Mosh.StressRelieved": "Stress Relieved", + "Mosh.Systemperformancegrindstoahalt": "Systemperformancegrindstoahalt", + "Mosh.Systemresourcesfreeupandyoufeelenergized": "System resources free up and you feel energized", + "Mosh.Systemresourcesfreeupandyouregaincontrol": "System resources free up and you regain control", + "Mosh.SystemsdamagedSensorscomputersandothersystemshavebeenimpaired": "Systems damaged. Sensors, computers, and other systems have been impaired", + "Mosh.SystemsEnhanced": "Systems Enhanced", + "Mosh.SystemsImpaired": "Systems Impaired", + "Mosh.icon_file_attribute_armor": "systems/mosh/images/icons/ui/attributes/armor.png", + "Mosh.icon_file_attribute_battle": "systems/mosh/images/icons/ui/attributes/battle.png", + "Mosh.icon_file_attribute_body": "systems/mosh/images/icons/ui/attributes/body.png", + "Mosh.icon_file_attribute_combat": "systems/mosh/images/icons/ui/attributes/combat.png", + "Mosh.icon_file_attribute_fear": "systems/mosh/images/icons/ui/attributes/fear.png", + "Mosh.icon_file_attribute_health": "systems/mosh/images/icons/ui/attributes/health.png", + "Mosh.icon_file_attribute_instinct": "systems/mosh/images/icons/ui/attributes/instinct.png", + "Mosh.icon_file_attribute_intellect": "systems/mosh/images/icons/ui/attributes/intellect.png", + "Mosh.icon_file_attribute_loyalty": "systems/mosh/images/icons/ui/attributes/loyalty.png", + "Mosh.icon_file_attribute_sanity": "systems/mosh/images/icons/ui/attributes/sanity.png", + "Mosh.icon_file_attribute_speed": "systems/mosh/images/icons/ui/attributes/speed.png", + "Mosh.icon_file_attribute_strength": "systems/mosh/images/icons/ui/attributes/strength.png", + "Mosh.icon_file_attribute_thrusters": "systems/mosh/images/icons/ui/attributes/thrusters.png", + "Mosh.icon_file_macro_gain_stress": "systems/mosh/images/icons/ui/macros/gain_stress.png", + "Mosh.icon_file_macro_relieve_stress": "systems/mosh/images/icons/ui/macros/relieve_stress.png", + "Mosh.SystemsupgradedSensorscomputersandothersystemshaveimproved": "Systems upgraded. Sensors, computers, and other systems have improved", + "Mosh.TargetingsystemsdamagedCombatreadinesshavebeenimpaired": "Targeting systems damaged. Combat readiness have been impaired", + "Mosh.TargetingsystemsupgradedCombatreadinesshasimproved": "Targeting systems upgraded. Combat readiness has improved", + "Mosh.TheenddrawsnearMakeaDeathSave": "The end draws near . . .

@UUID[Compendium.mosh.macros_hotbar_1e.NsRHfRuuNGPfkYVf]{Make a Death Save}", + "Mosh.ThrustersdamagedAgilityaccelerationandtopspeedareimpaired": "Thrusters damaged. Agility, acceleration, and top speed are impaired", + "Mosh.ThrustersEnhanced": "Thrusters Enhanced", + "Mosh.ThrustersImpaired": "Thrusters Impaired", + "Mosh.ThrustersupgradedAgilityaccelerationandtopspeedhaveimproved": "Thrusters upgraded. Agility, acceleration, and top speed have improved", + "Mosh.Wounded": "Wounded", + "Mosh.Youareafraidofeverything": "You are afraid of everything", + "Mosh.Youarealreadyascalmaspossible": "You are already as calm as possible", + "Mosh.Youarealreadyasfocusedaspossible": "You are already as focused as possible", + "Mosh.Youarealreadyatfullhealth": "You are already at full health", + "Mosh.Youarealreadyatmaximumarmor": "You are already at maximum armor", + "Mosh.Youarealreadyatmaximumbody": "You are already at maximum body", + "Mosh.Youarealreadyatmaximumcombat": "You are already at maximum combat", + "Mosh.Youarealreadyatmaximumfear": "You are already at maximum fear", + "Mosh.Youarealreadyatmaximuminstinct": "You are already at maximum instinct", + "Mosh.Youarealreadyatmaximumintellect": "You are already at maximum intellect", + "Mosh.Youarealreadyatmaximumloyalty": "You are already at maximum loyalty", + "Mosh.Youarealreadyatmaximumsanity": "You are already at maximum sanity", + "Mosh.Youarealreadyatmaximumspeed": "You are already at maximum speed", + "Mosh.Youarealreadyatmaximumstrength": "You are already at maximum strength", + "Mosh.Youarenowatfullhealth": "You are now at full health", + "Mosh.Youarenowatmaximumarmor": "You are now at maximum armor", + "Mosh.Youarenowatmaximumbody": "You are now at maximum body", + "Mosh.Youarenowatmaximumcombat": "You are now at maximum combat", + "Mosh.Youarenowatmaximumfear": "You are now at maximum fear", + "Mosh.Youarenowatmaximuminstinct": "You are now at maximum instinct", + "Mosh.Youarenowatmaximumintellect": "You are now at maximum intellect", + "Mosh.Youarenowatmaximumloyalty": "You are now at maximum loyalty", + "Mosh.Youarenowatmaximumsanity": "You are now at maximum sanity", + "Mosh.Youarenowatmaximumspeed": "You are now at maximum speed", + "Mosh.Youarenowatmaximumstrength": "You are now at maximum strength", + "Mosh.Youattaincompletepeaceofmind": "You attain complete peace of mind", + "Mosh.Youattainperfectfocusandclarity": "You attain perfect focus and clarity", + "Mosh.Youawakencoldandfrigidbarelyabletomove": "You awaken cold and frigid, barely able to move", + "Mosh.Youbracefortheworst": "You brace for the worst", + "Mosh.Youcantimaginefightinganymore": "You can't imagine fighting anymore", + "Mosh.Youfeelaburstofenergy": "You feel a burst of energy", + "Mosh.Youfeelapartofyourselfdriftaway": "You feel a part of yourself drift away", + "Mosh.Youfeelasenseofcalmwashoveryou": "You feel a sense of calm wash over you", + "Mosh.Youfeelcompletelylethargic": "You feel completely lethargic", + "Mosh.Youfeeldizzyasyoubleedout": "You feel dizzy as you bleed out", + "Mosh.Youfeeltightnessinyourchestandstarttosweat": "You feel tightness in your chest and start to sweat", + "Mosh.Youfeelutterlyconfused": "You feel utterly confused", + "Mosh.Youfindnothingwrongwiththeship": "You find nothing wrong with the ship", + "Mosh.Yougainsomeconfidenceinyourabilities": "You gain some confidence in your abilities", + "Mosh.Yougainsomeconfidenceinyourskills": "You gain some confidence in your skills", + "Mosh.Youhavenostrengthleft": "You have no strength left", + "Mosh.Youhitrockbottom": "You hit rock bottom", + "Mosh.Youknockondeathsdoor": "You knock on death's door", + "Mosh.Youlandasuccessfulhitonthetarget": "You land a successful hit on the target", + "Mosh.Youlosemotorcontrolforamomentasyoursensoryinputsflicker": "You lose motor control for a moment as your sensory inputs flicker", + "Mosh.Younowsufferfromthiscondition": "You now suffer from this condition", + "Mosh.Youonlycareaboutyourself": "You only care about yourself", + "Mosh.Youperformafullinspectionoftheshipforwearandtear": "You perform a full inspection of the ship for wear and tear", + "Mosh.YouputyourshiponemergencypowerAndWaitForHelp": "You put your ship on emergency power, seal yourselves in cryopods, send out a Distress Signal, and wait for help. It’s a long shot, but sometimes it’s the only shot you’ve got. Will you be found?", + "Mosh.Yourarmorcannotgetanylower": "Your armor cannot get any lower", + "Mosh.Yourbodycannotgetanylower": "Your body cannot get any lower", + "Mosh.Yourbodyfeelsweakandfragile": "Your body feels weak and fragile", + "Mosh.Yourbodyfeelsweakandfrail": "Your body feels weak and frail", + "Mosh.Yourcombatcannotgetanylower": "Your combat cannot get any lower", + "Mosh.Yourconditionworsens": "Your condition worsens", + "Mosh.Yourfearcannotgetanylower": "Your fear cannot get any lower", + "Mosh.Yourheartbeatracesoutofcontrolandyoustarttofeeldizzy": "Your heartbeat races out of control and you start to feel dizzy", + "Mosh.Yourinstinctcannotgetanylower": "Your instinct cannot get any lower", + "Mosh.Yourintellectcannotgetanylower": "Your intellect cannot get any lower", + "Mosh.Yourloyaltycannotgetanylower": "Your loyalty cannot get any lower", + "Mosh.Yourpainreceptorsindicatecoredamage": "Your pain receptors indicate core damage", + "Mosh.Yoursanitycannotgetanylower": "Your sanity cannot get any lower", + "Mosh.Yoursensorsdetectsignificantnanofluidloss": "Your sensors detect significant nanofluid loss", + "Mosh.Yourshipssystemsarealreadyatmaximumandcannotbeimprovedfurther": "Your ship's systems are already at maximum and cannot be improved further", + "Mosh.Yourshipssystemsareatmaximum": "Your ship's systems are at maximum", + "Mosh.Yourshipssystemsarebrokenandcannotbedamagedfurther": "Your ship's systems are broken and cannot be damaged further", + "Mosh.Yourshipssystemsarerunningsmoothly": "Your ship's systems are running smoothly", + "Mosh.Yourspeedcannotgetanylower": "Your speed cannot get any lower", + "Mosh.Yourstrengthcannotgetanylower": "Your strength cannot get any lower", + "Mosh.Yoursystemsmalfunctionfromthecondensationdamage": "Your systems malfunction from the condensation damage", + "Mosh.Yourtargetingsystemsarealreadyatmaximumandcannotbeimprovedfurther": "Your targeting systems are already at maximum and cannot be improved further", + "Mosh.Yourtargetingsystemsareatmaximum": "Your targeting systems are at maximum", + "Mosh.Yourtargetingsystemsarebrokenandcannotbedamagedfurther": "Your targeting systems are broken and cannot be damaged further", + "Mosh.Yourthrustersarealreadyatmaximumandcannotbeimprovedfurther": "Your thrusters are already at maximum and cannot be improved further", + "Mosh.Yourthrustersareatmaximum": "Your thrusters are at maximum", + "Mosh.Yourthrustersarebrokenandcannotbedamagedfurther": "Your thrusters are broken and cannot be damaged further", + "Mosh.Yousenseunrecoverabledataloss": "You sense unrecoverable data loss", + "Mosh.Yousoftresetpurgingunnecessarybackgroundprocesses": "You soft-reset, purging unnecessary background processes", + "Mosh.Youstareintoblacknessandfeelcompletelyunabletopullyourselfoutofit": "You stare into blackness and feel completely unable to pull yourself out of it", + "Mosh.Youstarttofeellikeyourselfagain": "You start to feel like yourself again", + "Mosh.Yousuccessfullymanueverthecraftthroughdanger": "You successfully manuever the craft through danger", + "Mosh.Youtakeadeepbreathandregainyourcomposure": "You take a deep breath and regain your composure", + "Mosh.Youvelostyourinstincts": "You've lost your instincts", + "Mosh.Youvelostyourmind": "You've lost your mind", + "Mosh.Youvelostyourshipssystems": "You've lost your ship's systems", + "Mosh.Youvelostyourtargetingsystems": "You've lost your targeting systems", + "Mosh.Youvelostyourthrusters": "You've lost your thrusters", + "Mosh.HEARTATTACKSHORTCIRCUITANDROIDS": "HEART ATTACK / SHORT CIRCUIT (ANDROIDS).", + "Mosh.SHORTCIRCUIT": "SHORT CIRCUIT.", + "Mosh.HEARTATTACK": "HEART ATTACK.", + "Mosh.Relieve1Stressqbq694JMbXeZrHj": " Relieve 1 Stress.

@UUID[Compendium.mosh.macros_triggered_1e.qbq694JMbXeZrHjj]{-1 Stress}", + "Mosh.Gain1d10Calmk2TtLFOG9mGaWVx31d10Calm":" Gain 1d10 Calm.

@UUID[Compendium.mosh.macros_triggered_1e.k2TtLFOG9mGaWVx3]{+1d10 Calm}", + "Mosh.SelectAStat": "Select a Stat", + "Mosh.ChooseTheStatForSkillCheck": "Choose the Stat that best suits the nature of this Skill Check. You will add your skill bonus to the Stat value for this roll", + "Mosh.GivingYouAHigherNumber": "(giving you a higher number to roll under).", + "Mosh.StrengthSkillExample": "Holding airlocks closed, carrying fallen comrades, climbing, pushing, jumping.", + "Mosh.SpeedSkillExample": "Getting out of the cargo bay before the blast doors close, acting before someone (or something) else, running away.", + "Mosh.IntellectSkillExample": "Recalling your training and experience under duress, thinking through difficult problems, inventing or fixing things.", + "Mosh.CombatSkillExample": "Fighting for your life.", + "Mosh.SelectYourRollType": "Select your roll type", + "Mosh.ChooseAStat": "Choose a Stat" } diff --git a/module/actor/actor.js b/module/actor/actor.js index 969f368..8880b41 100644 --- a/module/actor/actor.js +++ b/module/actor/actor.js @@ -1765,97 +1765,16 @@ export class MothershipActor extends Actor { let buttonDesc = ``; //create HTML for this window //header - let dialogDesc = ` - -
-

Select a Stat

Choose the Stat that best suits the nature of this Skill Check. You will add your skill bonus to the Stat value for this roll (giving you a higher number to roll under).
-
- - - - - `; + let dialogDesc = await renderTemplate('systems/mosh/templates/dialogs/skill-check-stat-selection-dialog.html'); //create button header if needed if (!rollString) { - buttonDesc = `

Select your roll type:

`; + buttonDesc = `

` + game.i18n.localize("Mosh.SelectYourRollType") + `:

`; } else { buttonDesc = ``; } //create final dialog data const dialogData = { - title: `Choose a Stat`, + title: game.i18n.localize("Mosh.ChooseAStat"), content: dialogDesc + buttonDesc, buttons: {} }; @@ -1864,7 +1783,7 @@ export class MothershipActor extends Actor { //we need to generate a roll string //Advantage dialogData.buttons.button1 = { - label: `Advantage`, + label: game.i18n.localize("Mosh.Advantage"), callback: (html) => { rollString = `1d100 [+]`; aimFor = `low`; @@ -1876,7 +1795,7 @@ export class MothershipActor extends Actor { }; //Normal dialogData.buttons.button2 = { - label: `Normal`, + label: game.i18n.localize("Mosh.Normal"), callback: (html) => { rollString = `1d100`; aimFor = `low`; @@ -1888,7 +1807,7 @@ export class MothershipActor extends Actor { }; //Disadvantage dialogData.buttons.button3 = { - label: `Disadvantage`, + label: game.i18n.localize("Mosh.Disadvantage"), callback: (html) => { rollString = `1d100 [-]`; aimFor = `low`; @@ -1901,7 +1820,7 @@ export class MothershipActor extends Actor { //add a next button if we dont need a rollString } else { dialogData.buttons.button1 = { - label: `Next`, + label: game.i18n.localize("Mosh.Next"), callback: (html) => { aimFor = `low`; attribute = html.find("input[name='stat']:checked").attr("value"); @@ -2032,7 +1951,7 @@ export class MothershipActor extends Actor { } //create button header if needed if (!rollString) { - buttonDesc = `

Select your roll type:

`; + buttonDesc = `

` + game.i18n.localize("Mosh.SelectYourRollType") + `:

`; } else { buttonDesc = ``; } @@ -2047,7 +1966,7 @@ export class MothershipActor extends Actor { //we need to generate a roll string //Advantage dialogData.buttons.button1 = { - label: `Advantage`, + label: game.i18n.localize("Mosh.Advantage"), callback: (html) => { rollString = `1d100 [+]`; skill = html.find("input[name='skill']:checked").attr("id"); @@ -2059,7 +1978,7 @@ export class MothershipActor extends Actor { }; //Normal dialogData.buttons.button2 = { - label: `Normal`, + label: game.i18n.localize("Mosh.Normal"), callback: (html) => { rollString = `1d100`; skill = html.find("input[name='skill']:checked").attr("id"); @@ -2071,7 +1990,7 @@ export class MothershipActor extends Actor { }; //Disadvantage dialogData.buttons.button3 = { - label: `Disadvantage`, + label: game.i18n.localize("Mosh.Disadvantage"), callback: (html) => { rollString = `1d100 [-]`; skill = html.find("input[name='skill']:checked").attr("id"); @@ -2084,7 +2003,7 @@ export class MothershipActor extends Actor { //add a next button if we dont need a rollString } else { dialogData.buttons.button1 = { - label: `Next`, + label: game.i18n.localize("Mosh.Next"), callback: (html) => { skill = html.find("input[name='skill']:checked").attr("id"); skillValue = html.find("input[name='skill']:checked").attr("value"); @@ -2111,13 +2030,13 @@ export class MothershipActor extends Actor { //create final dialog data const dialogData = { title: dlgTitle, - content: `

Select your roll type:

`, + buttonDesc: `

` + game.i18n.localize("Mosh.SelectYourRollType") + `:

`, buttons: {} }; //add buttons //Advantage dialogData.buttons.button1 = { - label: `Advantage`, + label: game.i18n.localize("Mosh.Advantage"), callback: (html) => { rollString = dieAdv; resolve([rollString]); @@ -2127,7 +2046,7 @@ export class MothershipActor extends Actor { }; //Normal dialogData.buttons.button2 = { - label: `Normal`, + label: game.i18n.localize("Mosh.Normal"), callback: (html) => { rollString = die; resolve([rollString]); @@ -2137,6 +2056,7 @@ export class MothershipActor extends Actor { }; //Disadvantage dialogData.buttons.button3 = { + label: game.i18n.localize("Mosh.Normal"), label: `Disadvantage`, callback: (html) => { rollString = dieDis; diff --git a/templates/chat/itemRoll.html b/templates/chat/itemRoll.html index e08d7fe..f1cddf0 100644 --- a/templates/chat/itemRoll.html +++ b/templates/chat/itemRoll.html @@ -33,7 +33,7 @@ {{/if}} {{#if item.system.severity}}
-
Severity: {{item.system.severity}}
+
{{ localize 'Mosh.Severity' }}: {{item.system.severity}}
@@ -41,7 +41,7 @@ {{/if}} {{#if item.system.armorPoints}}
-
Armor Points: {{item.system.armorPoints}}
+
{{ localize 'Mosh.ArmorPoints' }}: {{item.system.armorPoints}}
@@ -49,7 +49,7 @@ {{/if}} {{#if item.system.damageReduction}}
-
Damage Reduction: {{item.system.damageReduction}}
+
{{ localize 'Mosh.DamageReduction' }}: {{item.system.damageReduction}}
@@ -63,9 +63,9 @@ {{else if (compare 'str' item.system.type '===' 'repair')}}
{{#if item.system.major}} -
Major Repair
+
{{ localize 'Mosh.MajorRepair' }}
{{else}} -
Minor Repair
+
{{ localize 'Mosh.MinorRepair' }}
{{/if}}
diff --git a/templates/chat/rollCheck.html b/templates/chat/rollCheck.html index df7303f..bb4de00 100644 --- a/templates/chat/rollCheck.html +++ b/templates/chat/rollCheck.html @@ -14,7 +14,7 @@
{{#if (compare 'int' parsedRollResult.total '>=' 90)}} - You rolled 90 or higher, which is always considered a failure. + {{ localize 'Mosh.YouRolled90OrHigher' }} {{else}} {{#if (compare 'int' skillValue '>' 0)}} You {{{outcomeVerb}}} {{{comparisonText}}} your {{{attribute}}} plus {{{skill}}} skill bonus. @@ -41,7 +41,7 @@
{{{weapon.system.description}}}
{{#if woundEffect}}
-
Wound Effect +
{{ localize 'Mosh.WoundEffect' }}
{{{woundEffect}}}
@@ -57,7 +57,7 @@
-
DESCRIPTION
+
{{ localize 'Mosh.Description' }}
@@ -65,7 +65,7 @@
{{{weapon.system.description}}}
{{#if woundEffect}}
-
Wound Effect +
{{ localize 'Mosh.WoundEffect' }}
{{{woundEffect}}}
diff --git a/templates/chat/rollTable.html b/templates/chat/rollTable.html index e674087..c4328fa 100644 --- a/templates/chat/rollTable.html +++ b/templates/chat/rollTable.html @@ -13,10 +13,10 @@ {{#if secondRoll}}
{{#if (compare 'str' specialRoll '===' 'panicCheck')}} -
Rolling for panic effect...
+
{{ localize 'Mosh.RollingForPanicEffect' }}
{{/if}} {{#if (compare 'str' specialRoll '===' 'maintenanceCheck')}} -
Rolling for maintenance issue...
+
{{ localize 'Mosh.RollingForMaintenanceIssue' }}
{{/if}}
{{{parsedRollResult2.rollHtml}}} diff --git a/templates/dialogs/skill-check-stat-selection-dialog.html b/templates/dialogs/skill-check-stat-selection-dialog.html new file mode 100644 index 0000000..414f82f --- /dev/null +++ b/templates/dialogs/skill-check-stat-selection-dialog.html @@ -0,0 +1,83 @@ + +
+

{{ localize "Mosh.SelectAStat" }}

+ {{ localize "Mosh.ChooseTheStatForSkillCheck" }}{{ localize "Mosh.GivingYouAHigherNumber"}}. + +
+
+ + + + \ No newline at end of file