Cover update + new version files
This commit is contained in:
Binary file not shown.
@@ -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"
|
||||
}
|
||||
}
|
||||
@@ -593,6 +593,10 @@ p {
|
||||
color: white;
|
||||
}
|
||||
|
||||
.mosh .highlightText{
|
||||
color: orangered;
|
||||
}
|
||||
|
||||
.mosh .sizelarge{
|
||||
font-size: 1.1rem;
|
||||
}
|
||||
|
||||
+21
-30
@@ -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 = `
|
||||
<style>
|
||||
@@ -2965,7 +2944,7 @@ export class MothershipActor extends Actor {
|
||||
<div class ="macro_window" style="margin-bottom : 7px;">
|
||||
<div class="grid grid-2col" style="grid-template-columns: 150px auto">
|
||||
<div class="macro_img"><img src="systems/mosh/images/icons/ui/attributes/armor.png" style="border:none"/></div>
|
||||
<div class="macro_desc"><h3>Cover</h3>The environment can provide protection called <strong>Cover</strong>. It can be destroyed, just like armor, whenever it is dealt Damage greater than or equal to its AP. Cover typically only protects against ranged attacks, but in some situations may help block a hand-to-hand attack. <strong>If you shoot while in Cover, you are considered out of Cover until your next turn.</strong></div>
|
||||
<div class="macro_desc"><h3>Cover</h3>The environment can provide protection called <strong>Cover</strong>. It can be destroyed, just like armor, whenever it is dealt Damage greater than or equal to its AP. Cover typically only protects against ranged attacks, but in some situations may help block a hand-to-hand attack. <strong>If you shoot while in Cover, you are considered out of Cover until your next turn.</strong> Your Cover values are displayed in <strong><span style="color: orangered">orange</span></strong>.</div>
|
||||
</div>
|
||||
</div>
|
||||
<h4>Select your current cover situation:</h4>
|
||||
@@ -3005,9 +2984,12 @@ export class MothershipActor extends Actor {
|
||||
</div>
|
||||
<div class="macro_desc mosh health resource healthspread minmaxtopstat">
|
||||
<div class="minmaxwrapper" style="width: 100%; background: black; border-radius: 0.3em;">
|
||||
<div class="maxhealth-input whiteText" type="text" data-dtype="Number">${insignificantAP}</div>
|
||||
<div class="maxhealth-input" style="display: flex;">
|
||||
<div class="maxhealth-input whiteText" type="text" data-dtype="Number">${curAP}</div>
|
||||
<div class="highlightText" type="text" data-dtype="Number" style="font-size: 0.8rem;"> 5</div>
|
||||
</div>
|
||||
<div class="slant" style="border-right: 2px solid #ffffff; transform: skewX(0deg);"></div>
|
||||
<div class="maxhealth-input whiteText" type="text" data-dtype="Number">${insignificantDR}</div>
|
||||
<div class="maxhealth-input whiteText" type="text" data-dtype="Number">${curDR}</div>
|
||||
</div>
|
||||
<div class="grid">
|
||||
<div class="healthmaxtext mosh health resource">Armor Points</div>
|
||||
@@ -3029,9 +3011,12 @@ export class MothershipActor extends Actor {
|
||||
</div>
|
||||
<div class="macro_desc mosh health resource healthspread minmaxtopstat">
|
||||
<div class="minmaxwrapper" style="width: 100%; background: black; border-radius: 0.3em;">
|
||||
<div class="maxhealth-input whiteText" type="text" data-dtype="Number">${lightAP}</div>
|
||||
<div class="maxhealth-input" style="display: flex;">
|
||||
<div class="maxhealth-input whiteText" type="text" data-dtype="Number">${curAP}</div>
|
||||
<div class="highlightText" type="text" data-dtype="Number" style="font-size: 0.8rem;"> 10</div>
|
||||
</div>
|
||||
<div class="slant" style="border-right: 2px solid #ffffff; transform: skewX(0deg);"></div>
|
||||
<div class="maxhealth-input whiteText" type="text" data-dtype="Number">${lightDR}</div>
|
||||
<div class="maxhealth-input whiteText" type="text" data-dtype="Number">${curDR}</div>
|
||||
</div>
|
||||
<div class="grid">
|
||||
<div class="healthmaxtext mosh health resource">Armor Points</div>
|
||||
@@ -3053,9 +3038,15 @@ export class MothershipActor extends Actor {
|
||||
</div>
|
||||
<div class="macro_desc mosh health resource healthspread minmaxtopstat">
|
||||
<div class="minmaxwrapper" style="width: 100%; background: black; border-radius: 0.3em;">
|
||||
<div class="maxhealth-input whiteText" type="text" data-dtype="Number">${heavyAP}</div>
|
||||
<div class="maxhealth-input" style="display: flex;">
|
||||
<div class="maxhealth-input whiteText" type="text" data-dtype="Number">${curAP}</div>
|
||||
<div class="highlightText" type="text" data-dtype="Number" style="font-size: 0.8rem;"> 20</div>
|
||||
</div>
|
||||
<div class="slant" style="border-right: 2px solid #ffffff; transform: skewX(0deg);"></div>
|
||||
<div class="maxhealth-input whiteText" type="text" data-dtype="Number">${heavyDR}</div>
|
||||
<div class="maxhealth-input" style="display: flex;">
|
||||
<div class="maxhealth-input whiteText" type="text" data-dtype="Number">${curDR}</div>
|
||||
<div class="highlightText" type="text" data-dtype="Number" style="font-size: 0.8rem;"> 5</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="grid">
|
||||
<div class="healthmaxtext mosh health resource">Armor Points</div>
|
||||
|
||||
+2
-2
@@ -2,7 +2,7 @@
|
||||
"id": "mosh",
|
||||
"title": "MoSh - Unofficial Mothership",
|
||||
"description": "The unofficial Mothership system for FoundryVTT.",
|
||||
"version": "0.4.32",
|
||||
"version": "0.4.33",
|
||||
"esmodules": [
|
||||
"module/mosh.js"
|
||||
],
|
||||
@@ -121,7 +121,7 @@
|
||||
"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",
|
||||
"download": "https://github.com/Futil/foundry-mothership/releases/download/0.4.33/foundry-mothership.zip",
|
||||
"license": "LICENSE.txt",
|
||||
"authors": [
|
||||
{
|
||||
|
||||
@@ -157,9 +157,25 @@
|
||||
<div class="resource healthspread minmaxtopstat" style="grid-column-start: 2; grid-column-end: 3;">
|
||||
<label for="system.stats.armor.value" class="resource-label minmaxtext rollable armor-roll">Armor</label>
|
||||
<div class="minmaxwrapper" style="width: 100%; background: black; border-radius: 0.3em;">
|
||||
<div class="maxhealth-input whiteText" type="text" data-dtype="Number">{{system.stats.armor.mod}}</div>
|
||||
<div class="maxhealth-input" style="display: flex;">
|
||||
<div class="whiteText" type="text" data-dtype="Number">{{system.stats.armor.mod}}</div>
|
||||
{{#if (compare 'str' system.stats.armor.cover '===' 'insignificant')}}
|
||||
<div class="highlightText" type="text" data-dtype="Number" style="font-size: 0.8rem;"> 5</div>
|
||||
{{/if}}
|
||||
{{#if (compare 'str' system.stats.armor.cover '===' 'light')}}
|
||||
<div class="highlightText" type="text" data-dtype="Number" style="font-size: 0.8rem;"> 10</div>
|
||||
{{/if}}
|
||||
{{#if (compare 'str' system.stats.armor.cover '===' 'heavy')}}
|
||||
<div class="highlightText" type="text" data-dtype="Number" style="font-size: 0.8rem;"> 20</div>
|
||||
{{/if}}
|
||||
</div>
|
||||
<div class="slant" style="border-right: 2px solid #ffffff; transform: skewX(0deg);"></div>
|
||||
<div class="maxhealth-input whiteText" type="text" data-dtype="Number">{{system.stats.armor.damageReduction}}</div>
|
||||
<div class="maxhealth-input" style="display: flex;">
|
||||
<div class="whiteText" type="text" data-dtype="Number">{{system.stats.armor.damageReduction}}</div>
|
||||
{{#if (compare 'str' system.stats.armor.cover '===' 'heavy')}}
|
||||
<div class="highlightText" type="text" data-dtype="Number" style="font-size: 0.8rem;"> 5</div>
|
||||
{{/if}}
|
||||
</div>
|
||||
</div>
|
||||
<div class="healthmaxtext">Armor Points</div>
|
||||
<div class="healthmaxtext">DMG Reduction</div>
|
||||
|
||||
Reference in New Issue
Block a user