diff --git a/_releases/0.4.33/foundry-mothership.zip b/_releases/0.4.33/foundry-mothership.zip new file mode 100644 index 0000000..872e1c9 Binary files /dev/null and b/_releases/0.4.33/foundry-mothership.zip differ diff --git a/_releases/0.4.33/system.json b/_releases/0.4.33/system.json new file mode 100644 index 0000000..6aeccea --- /dev/null +++ b/_releases/0.4.33/system.json @@ -0,0 +1,140 @@ +{ + "id": "mosh", + "title": "MoSh - Unofficial Mothership", + "description": "The unofficial Mothership system for FoundryVTT.", + "version": "0.4.32", + "esmodules": [ + "module/mosh.js" + ], + "styles": [ + "css/mosh.css" + ], + "packs": [ + { + "name": "conditions_1e", + "label": "Conditions (1e)", + "system": "mosh", + "path": "packs/conditions_1e.db", + "type": "Item", + "flags": {}, + "ownership": { + "PLAYER": "OBSERVER", + "ASSISTANT": "OWNER" + } + }, + { + "name": "macros_hotbar_1e", + "label": "Hotbar Macros (1e)", + "system": "mosh", + "path": "packs/macros_hotbar_1e.db", + "type": "Macro", + "flags": {}, + "ownership": { + "PLAYER": "OBSERVER", + "ASSISTANT": "OWNER" + } + }, + { + "name": "macros_triggered_1e", + "label": "Triggered Macros (1e)", + "system": "mosh", + "path": "packs/macros_triggered_1e.db", + "type": "Macro", + "flags": {}, + "ownership": { + "PLAYER": "OBSERVER", + "ASSISTANT": "OWNER" + } + }, + { + "name": "rolltables_1e", + "label": "Rolltables (1e)", + "system": "mosh", + "path": "packs/rolltables_1e.db", + "type": "RollTable", + "flags": {}, + "ownership": { + "PLAYER": "OBSERVER", + "ASSISTANT": "OWNER" + } + }, + { + "name": "conditions_0e", + "label": "Conditions (0e)", + "system": "mosh", + "path": "packs/conditions_0e.db", + "type": "Item", + "flags": {}, + "ownership": { + "PLAYER": "OBSERVER", + "ASSISTANT": "OWNER" + } + }, + { + "name": "macros_hotbar_0e", + "label": "Hotbar Macros (0e)", + "system": "mosh", + "path": "packs/macros_hotbar_0e.db", + "type": "Macro", + "flags": {}, + "ownership": { + "PLAYER": "OBSERVER", + "ASSISTANT": "OWNER" + } + }, + { + "name": "macros_triggered_0e", + "label": "Triggered Macros (0e)", + "system": "mosh", + "path": "packs/macros_triggered_0e.db", + "type": "Macro", + "flags": {}, + "ownership": { + "PLAYER": "OBSERVER", + "ASSISTANT": "OWNER" + } + }, + { + "name": "rolltables_0e", + "label": "Rolltables (0e)", + "system": "mosh", + "path": "packs/rolltables_0e.db", + "type": "RollTable", + "flags": {}, + "ownership": { + "PLAYER": "OBSERVER", + "ASSISTANT": "OWNER" + } + } + ], + "languages": [ + { + "lang": "en", + "name": "English", + "path": "lang/en.json", + "flags": {} + } + ], + "gridDistance": 1, + "gridUnits": "meter", + "primaryTokenAttribute": "health", + "secondaryTokenAttribute": "other.stress", + "url": "https://github.com/Futil/foundry-mothership", + "manifest": "https://github.com/Futil/foundry-mothership/releases/latest/download/system.json", + "download": "https://github.com/Futil/foundry-mothership/releases/download/0.4.32/foundry-mothership.zip", + "license": "LICENSE.txt", + "authors": [ + { + "name": "Futilrevenge", + "flags": {} + }, + { + "name": "hollowphoton", + "flags": {} + } + ], + "compatibility": { + "minimum": "0.8.6", + "verified": "11" + } +} \ No newline at end of file diff --git a/css/mosh.css b/css/mosh.css index 61130de..647827f 100644 --- a/css/mosh.css +++ b/css/mosh.css @@ -593,6 +593,10 @@ p { color: white; } +.mosh .highlightText{ + color: orangered; +} + .mosh .sizelarge{ font-size: 1.1rem; } diff --git a/module/actor/actor.js b/module/actor/actor.js index 0c389b4..a5d2361 100644 --- a/module/actor/actor.js +++ b/module/actor/actor.js @@ -33,16 +33,6 @@ export class MothershipActor extends Actor { damageReduction += armor.system.damageReduction; } } - if (data.stats.armor.cover === "insignificant") { - armorPoints += 5; - } - if (data.stats.armor.cover === "light") { - armorPoints += 10; - } - if (data.stats.armor.cover === "heavy") { - armorPoints += 20; - damageReduction += 5; - } data.stats.armor.mod = armorPoints; data.stats.armor.total = armorPoints+data.stats.armor.value; @@ -2916,24 +2906,13 @@ export class MothershipActor extends Actor { } if (curCover === 'insignificant') { insignificant_checked = `checked`; - curAP = curAP - 5; } if (curCover === 'light') { light_checked = `checked`; - curAP = curAP - 10; - } + } if (curCover === 'heavy') { heavy_checked = `checked`; - curAP = curAP - 20; - curDR = curDR - 5; - } - //calculate cover AP/DR - let insignificantAP = curAP + 5; - let insignificantDR = curDR; - let lightAP = curAP + 10; - let lightDR = curDR; - let heavyAP = curAP + 20; - let heavyDR = curDR + 5; + } //create pop-up HTML let msgContent = `