Merge remote-tracking branch 'azhar/i18n' into character-generator

This commit is contained in:
Melon-PieldeSapo
2024-12-29 06:02:41 +01:00
7 changed files with 306 additions and 111 deletions
+195 -3
View File
@@ -1,5 +1,6 @@
{
"Mosh.Add": "Add",
"Mosh.Advantage": "Advantage",
"Mosh.Ammo": "Ammo",
"Mosh.Ammunition": "Ammunition",
"Mosh.AmmoType": "Ammo Type",
@@ -54,6 +55,7 @@
"Mosh.DeleteWeapon": "Delete Weapon",
"Mosh.Description": "Description",
"Mosh.Disabled": "Disabled",
"Mosh.Disadvantage": "Disadvantage",
"Mosh.DistressSignal": "Distress Signal",
"Mosh.DMGReduction": "DMG Reduction",
"Mosh.DR": "DR",
@@ -77,7 +79,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",
@@ -95,11 +97,14 @@
"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",
@@ -107,6 +112,8 @@
"Mosh.Repairs": "Repairs",
"Mosh.Resolve": "Resolve",
"Mosh.Robotic": "Robotic",
"Mosh.RollingForPanicEffect": "Rolling for panic effect...",
"Mosh.RollingForMaintenanceIssue": "Rolling for maintenance issue...",
"Mosh.Sanity": "Sanity",
"Mosh.SaveBonus": "SaveBonus",
"Mosh.Severity": "Severity",
@@ -143,5 +150,190 @@
"Mosh.Weight": "Weight",
"Mosh.Wounds": "Wounds",
"Mosh.WoundEffect": "Wound Effect",
"Mosh.XP": "XP"
}
"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 . . .<br><br>@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.<br><br>@UUID[Compendium.mosh.macros_triggered_1e.qbq694JMbXeZrHjj]{-1 Stress}",
"Mosh.Gain1d10Calmk2TtLFOG9mGaWVx31d10Calm":" Gain 1d10 Calm.<br><br>@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"
}
+16 -96
View File
@@ -1728,97 +1728,16 @@ export class MothershipActor extends Actor {
let buttonDesc = ``;
//create HTML for this window
//header
let dialogDesc = `
<style>
.macro_window{
background: rgb(230,230,230);
border-radius: 9px;
}
.macro_img{
display: flex;
justify-content: center; //do I need this
}
.macro_desc{
font-family: "Roboto", sans-serif;
font-size: 10.5pt;
font-weight: 400;
padding-top: 8px;
padding-right: 8px;
padding-bottom: 8px;
}
.grid-2col {
display: grid;
grid-column: span 2 / span 2;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 2px;
padding: 0;
}
</style>
<div class ="macro_window" style="margin-bottom : 7px; padding-left: 8px;">
<div class="macro_desc"><h3>Select a Stat</h3>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 <em>(giving you a higher number to roll under)</em>.</div>
</div>
<label for="str">
<div class ="macro_window" style="margin-bottom : 7px; vertical-align: middle; padding-left: 3px;">
<div class="grid grid-3col" style="grid-template-columns: 20px 60px auto">
<input type="radio" id="str" name="stat" value="strength" checked="checked">
<div class="macro_img" style="padding-top: 5px; padding-left: 0px; padding-right: 0px; padding-bottom: 5px;"><img src="systems/mosh/images/icons/ui/attributes/strength.png" style="border:none"/></div>
<div class="macro_desc" style="display: table;">
<span style="display: table-cell; vertical-align: middle;">
<strong>Strength:</strong> Holding airlocks closed, carrying fallen comrades, climbing, pushing, jumping.
</span>
</div>
</div>
</div>
</label>
<label for="spd">
<div class ="macro_window" style="margin-bottom : 7px; vertical-align: middle; padding-left: 3px;">
<div class="grid grid-3col" style="grid-template-columns: 20px 60px auto">
<input type="radio" id="spd" name="stat" value="speed">
<div class="macro_img" style="padding-top: 5px; padding-left: 0px; padding-right: 0px; padding-bottom: 5px;"><img src="systems/mosh/images/icons/ui/attributes/speed.png" style="border:none"/></div>
<div class="macro_desc" style="display: table;">
<span style="display: table-cell; vertical-align: middle;">
<strong>Speed:</strong> Getting out of the cargo bay before the blast doors close, acting before someone <em>(or something)</em> else, running away.
</span>
</div>
</div>
</div>
</label>
<label for="int">
<div class ="macro_window" style="margin-bottom : 7px; vertical-align: middle; padding-left: 3px;">
<div class="grid grid-3col" style="grid-template-columns: 20px 60px auto">
<input type="radio" id="int" name="stat" value="intellect">
<div class="macro_img" style="padding-top: 5px; padding-left: 0px; padding-right: 0px; padding-bottom: 5px;"><img src="systems/mosh/images/icons/ui/attributes/intellect.png" style="border:none"/></div>
<div class="macro_desc" style="display: table;">
<span style="display: table-cell; vertical-align: middle;">
<strong>Intellect:</strong> Recalling your training and experience under duress, thinking through difficult problems, inventing or fixing things.
</span>
</div>
</div>
</div>
</label>
<label for="com">
<div class ="macro_window" style="margin-bottom : 7px; vertical-align: middle; padding-left: 3px;">
<div class="grid grid-3col" style="grid-template-columns: 20px 60px auto">
<input type="radio" id="com" name="stat" value="combat">
<div class="macro_img" style="padding-top: 5px; padding-left: 0px; padding-right: 0px; padding-bottom: 5px;"><img src="systems/mosh/images/icons/ui/attributes/combat.png" style="border:none"/></div>
<div class="macro_desc" style="display: table;">
<span style="display: table-cell; vertical-align: middle;">
<strong>Combat:</strong> Fighting for your life.
</span>
</div>
</div>
</div>
</label>
`;
let dialogDesc = await renderTemplate('systems/mosh/templates/dialogs/skill-check-stat-selection-dialog.html');
//create button header if needed
if (!rollString) {
buttonDesc = `<h4>Select your roll type:</h4>`;
buttonDesc = `<h4>` + game.i18n.localize("Mosh.SelectYourRollType") + `:</h4>`;
} else {
buttonDesc = ``;
}
//create final dialog data
const dialogData = {
title: `Choose a Stat`,
title: game.i18n.localize("Mosh.ChooseAStat"),
content: dialogDesc + buttonDesc,
buttons: {}
};
@@ -1827,7 +1746,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`;
@@ -1839,7 +1758,7 @@ export class MothershipActor extends Actor {
};
//Normal
dialogData.buttons.button2 = {
label: `Normal`,
label: game.i18n.localize("Mosh.Normal"),
callback: (html) => {
rollString = `1d100`;
aimFor = `low`;
@@ -1851,7 +1770,7 @@ export class MothershipActor extends Actor {
};
//Disadvantage
dialogData.buttons.button3 = {
label: `Disadvantage`,
label: game.i18n.localize("Mosh.Disadvantage"),
callback: (html) => {
rollString = `1d100 [-]`;
aimFor = `low`;
@@ -1864,7 +1783,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");
@@ -1995,7 +1914,7 @@ export class MothershipActor extends Actor {
}
//create button header if needed
if (!rollString) {
buttonDesc = `<h4>Select your roll type:</h4>`;
buttonDesc = `<h4>` + game.i18n.localize("Mosh.SelectYourRollType") + `:</h4>`;
} else {
buttonDesc = ``;
}
@@ -2010,7 +1929,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");
@@ -2022,7 +1941,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");
@@ -2034,7 +1953,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");
@@ -2047,7 +1966,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");
@@ -2074,13 +1993,13 @@ export class MothershipActor extends Actor {
//create final dialog data
const dialogData = {
title: dlgTitle,
content: `<h4>Select your roll type:</h4>`,
buttonDesc: `<h4>` + game.i18n.localize("Mosh.SelectYourRollType") + `:</h4>`,
buttons: {}
};
//add buttons
//Advantage
dialogData.buttons.button1 = {
label: `Advantage`,
label: game.i18n.localize("Mosh.Advantage"),
callback: (html) => {
rollString = dieAdv;
resolve([rollString]);
@@ -2090,7 +2009,7 @@ export class MothershipActor extends Actor {
};
//Normal
dialogData.buttons.button2 = {
label: `Normal`,
label: game.i18n.localize("Mosh.Normal"),
callback: (html) => {
rollString = die;
resolve([rollString]);
@@ -2100,6 +2019,7 @@ export class MothershipActor extends Actor {
};
//Disadvantage
dialogData.buttons.button3 = {
label: game.i18n.localize("Mosh.Normal"),
label: `Disadvantage`,
callback: (html) => {
rollString = dieDis;
+1 -1
View File
@@ -266,7 +266,7 @@
<div class="resource mainstat">
<div class="mainstatlabel">
<span class="ability-mod stat-roll rollable mainstattext" data-key="intellect" data-roll="d100"
data-label="{{ localize 'Mosh.Intellect' }}">{{ localize 'Mosh.Intelect' }}</span>
data-label="{{ localize 'Mosh.Intellect' }}">{{ localize 'Mosh.Intellect' }}</span>
</div>
<input class="circle-input" type="text" name="system.stats.intellect.value"
value="{{system.stats.intellect.value}}" data-dtype="Number" />
+5 -5
View File
@@ -33,7 +33,7 @@
{{/if}}
{{#if item.system.severity}}
<div class="description">
<div class="body"><strong>Severity: </strong>{{item.system.severity}}</div>
<div class="body"><strong>{{ localize 'Mosh.Severity' }}: </strong>{{item.system.severity}}</div>
</div>
<div style="margin-bottom : 5px;"></div>
<div style="border-bottom: 1px solid #999; height: 0; width: 100%;"></div>
@@ -41,7 +41,7 @@
{{/if}}
{{#if item.system.armorPoints}}
<div class="description">
<div class="body"><strong>Armor Points: </strong>{{item.system.armorPoints}}</div>
<div class="body"><strong>{{ localize 'Mosh.ArmorPoints' }}: </strong>{{item.system.armorPoints}}</div>
</div>
<div style="margin-bottom : 5px;"></div>
<div style="border-bottom: 1px solid #999; height: 0; width: 100%;"></div>
@@ -49,7 +49,7 @@
{{/if}}
{{#if item.system.damageReduction}}
<div class="description">
<div class="body"><strong>Damage Reduction: </strong>{{item.system.damageReduction}}</div>
<div class="body"><strong>{{ localize 'Mosh.DamageReduction' }}: </strong>{{item.system.damageReduction}}</div>
</div>
<div style="margin-bottom : 5px;"></div>
<div style="border-bottom: 1px solid #999; height: 0; width: 100%;"></div>
@@ -63,9 +63,9 @@
{{else if (compare 'str' item.system.type '===' 'repair')}}
<div class="description">
{{#if item.system.major}}
<div class="body"><strong>Major Repair</strong></div>
<div class="body"><strong>{{ localize 'Mosh.MajorRepair' }}</strong></div>
{{else}}
<div class="body"><strong>Minor Repair</strong></div>
<div class="body"><strong>{{ localize 'Mosh.MinorRepair' }}</strong></div>
{{/if}}
</div>
<div style="margin-bottom : 5px;"></div>
+4 -4
View File
@@ -14,7 +14,7 @@
<div class="description" style="margin-bottom: 10px;">
<div class="body">
{{#if (compare 'int' parsedRollResult.total '>=' 90)}}
You rolled 90 or higher, which is always considered a failure.
<span class="high-failure">{{ localize 'Mosh.YouRolled90OrHigher' }}</span>
{{else}}
{{#if (compare 'int' skillValue '>' 0)}}
You {{{outcomeVerb}}} {{{comparisonText}}} your <strong>{{{attribute}}}</strong> plus <strong>{{{skill}}}</strong> skill bonus.
@@ -41,7 +41,7 @@
<div class="body">{{{weapon.system.description}}}</div>
{{#if woundEffect}}
<div class="body">
<br><strong>Wound Effect</strong>
<br><strong>{{ localize 'Mosh.WoundEffect' }}</strong>
<div style="margin-bottom : 3px;"></div>
{{{woundEffect}}}
</div>
@@ -57,7 +57,7 @@
<div style="margin-bottom : 10px;"></div>
<div class="grid grid-2col" style="grid-template-columns: 10px 75px auto">
<div style="border-bottom:1px solid #999; height: 50%;"></div>
<div style= "font-size:0.65rem; text-align:center;">DESCRIPTION</div>
<div style= "font-size:0.65rem; text-align:center;">{{ localize 'Mosh.Description' }}</div>
<div style="border-bottom:1px solid #999; height: 50%;"></div>
</div>
<div style="margin-bottom : 10px;"></div>
@@ -65,7 +65,7 @@
<div class="body">{{{weapon.system.description}}}</div>
{{#if woundEffect}}
<div class="body">
<br><strong>Wound Effect</strong>
<br><strong>{{ localize 'Mosh.WoundEffect' }}</strong>
<div style="margin-bottom : 3px;"></div>
{{{woundEffect}}}
</div>
+2 -2
View File
@@ -13,10 +13,10 @@
{{#if secondRoll}}
<div class="description" style="margin-bottom: 10px;">
{{#if (compare 'str' specialRoll '===' 'panicCheck')}}
<div class="body">Rolling for panic effect...</div>
<div class="body">{{ localize 'Mosh.RollingForPanicEffect' }}</div>
{{/if}}
{{#if (compare 'str' specialRoll '===' 'maintenanceCheck')}}
<div class="body">Rolling for maintenance issue...</div>
<div class="body">{{ localize 'Mosh.RollingForMaintenanceIssue' }}</div>
{{/if}}
</div>
{{{parsedRollResult2.rollHtml}}}
@@ -0,0 +1,83 @@
<style>
.macro_window{
background: rgb(230,230,230);
border-radius: 9px;
}
.macro_img{
display: flex;
justify-content: center;
}
.macro_desc{
font-family: "Roboto", sans-serif;
font-size: 10.5pt;
font-weight: 400;
padding-top: 8px;
padding-right: 8px;
padding-bottom: 8px;
}
.grid-2col {
display: grid;
grid-column: span 2 / span 2;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 2px;
padding: 0;
}
</style>
<div class ="macro_window" style="margin-bottom : 7px; padding-left: 8px;">
<div class="macro_desc"><h3>{{ localize "Mosh.SelectAStat" }}</h3>
{{ localize "Mosh.ChooseTheStatForSkillCheck" }}<em>{{ localize "Mosh.GivingYouAHigherNumber"}}.</em>
</div>
</div>
<label for="str">
<div class ="macro_window" style="margin-bottom : 7px; vertical-align: middle; padding-left: 3px;">
<div class="grid grid-3col" style="grid-template-columns: 20px 60px auto">
<input type="radio" id="str" name="stat" value="strength" checked="checked">
<div class="macro_img" style="padding-top: 5px; padding-left: 0px; padding-right: 0px; padding-bottom: 5px;"><img src="systems/mosh/images/icons/ui/attributes/strength.png" style="border:none"/></div>
<div class="macro_desc" style="display: table;">
<span style="display: table-cell; vertical-align: middle;">
<strong>{{ localize "Mosh.Strength" }}:</strong> {{ localize "Mosh.StrengthSkillExample"}}
</span>
</div>
</div>
</div>
</label>
<label for="spd">
<div class ="macro_window" style="margin-bottom : 7px; vertical-align: middle; padding-left: 3px;">
<div class="grid grid-3col" style="grid-template-columns: 20px 60px auto">
<input type="radio" id="spd" name="stat" value="speed">
<div class="macro_img" style="padding-top: 5px; padding-left: 0px; padding-right: 0px; padding-bottom: 5px;"><img src="systems/mosh/images/icons/ui/attributes/speed.png" style="border:none"/></div>
<div class="macro_desc" style="display: table;">
<span style="display: table-cell; vertical-align: middle;">
<strong>{{ localize "Mosh.Speed"}}:</strong> {{ localize "Mosh.SpeedSkillExample"}}
</span>
</div>
</div>
</div>
</label>
<label for="int">
<div class ="macro_window" style="margin-bottom : 7px; vertical-align: middle; padding-left: 3px;">
<div class="grid grid-3col" style="grid-template-columns: 20px 60px auto">
<input type="radio" id="int" name="stat" value="intellect">
<div class="macro_img" style="padding-top: 5px; padding-left: 0px; padding-right: 0px; padding-bottom: 5px;"><img src="systems/mosh/images/icons/ui/attributes/intellect.png" style="border:none"/></div>
<div class="macro_desc" style="display: table;">
<span style="display: table-cell; vertical-align: middle;">
<strong>{{ localize "Mosh.Intellect"}}:</strong> {{ localize "Mosh.IntellectSkillExample"}}
</span>
</div>
</div>
</div>
</label>
<label for="com">
<div class ="macro_window" style="margin-bottom : 7px; vertical-align: middle; padding-left: 3px;">
<div class="grid grid-3col" style="grid-template-columns: 20px 60px auto">
<input type="radio" id="com" name="stat" value="combat">
<div class="macro_img" style="padding-top: 5px; padding-left: 0px; padding-right: 0px; padding-bottom: 5px;"><img src="systems/mosh/images/icons/ui/attributes/combat.png" style="border:none"/></div>
<div class="macro_desc" style="display: table;">
<span style="display: table-cell; vertical-align: middle;">
<strong>{{ localize "Mosh.Combat"}}:</strong> {{ localize "Mosh.CombatSkillExample"}}
</span>
</div>
</div>
</div>
</label>