Merge pull request #58 from TyronneISaurus/master

Added Mule Ability Support
This commit is contained in:
megastruktur 2020-07-27 15:57:05 +03:00 committed by GitHub
commit 7fc5f4cce4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 25 additions and 3 deletions

View file

@ -28,6 +28,27 @@ export class BladesActorSheet extends BladesSheet {
let loadout = 0;
data.items.forEach(i => {loadout += (i.type === "item") ? parseInt(i.data.load) : 0});
data.data.loadout = loadout;
// Encumbrance Levels
let load_level=["light","light","light","light","normal","normal","heavy","Encumbered",
"Encumbered","Encumbered","over max"];
let mule_level=["light","light","light","light","light","light","normal","normal",
"heavy","Encumbered","over max"];
let mule_present=0;
//Sanity Check
if (loadout<0){loadout=0};
if (loadout>10){loadout=10};
//look for Mule ability
data.items.forEach(i => {if (i.type=="ability" && i.name=="(C) Mule") { mule_present=1;} });
//set encumbrance level
if (mule_present) { data.data.load_level=mule_level[loadout]; } else
{
data.data.load_level=load_level[loadout];
}
return data;
}

View file

@ -25,7 +25,7 @@ export class BladesCrewSheet extends BladesSheet {
// Calculate Turfs amount.
// We already have Lair, so set to -1.
let turfs_amount = -1;
let turfs_amount = 0
data.items.forEach(item => {

View file

@ -1,4 +1,4 @@
{"_id":"678LJHqxkBAaSJci","name":"Cult","permission":{"default":0},"type":"crew_type","data":{"description":"Acolytes of a Deity","experience_clues":"- Advance the agenda of your deity or embody its precepts in action.\n- Contend with challenges above your current station.\n- Bolster your crew's reputation or develop a new one.\n- Express the goals, drives, inner conflict, or essential nature of the crew.","turfs":{"1":{"name":"Cloister","value":false,"description":"+1 scale for your Adept cohorts","connects":["right"],"connected":[false,false,false,false]},"2":{"name":"Vice Den","value":false,"description":"(Tier roll) - Heat = coin in Downtime","connects":["left","right","bottom"],"connected":[false,false,false,false]},"3":{"name":"Offertory","value":false,"description":"+2 coin for occult operations","connects":["left"],"connected":[false,false,false,false]},"4":{"name":"Ancient Obelisk","value":false,"description":"-1 stress cost for all arcane powers and rituals","connects":["right"],"connected":[false,false,false,false]},"5":{"name":"Ancient Tower","value":false,"description":"+1d to Consort w/ arcane entities on site","connects":["left","bottom"],"connected":[false,false,false,false]},"6":{"name":"Turf","value":false,"description":"","connects":["top","right"],"connected":[false,false,false,false]},"7":{"name":"Turf","value":false,"description":"","connects":["left","top","right","bottom"],"connected":[false,false,false,false]},"8":{"name":"Lair","value":true,"description":"","connects":["left","top","right","bottom"],"connected":[false,false,false,true]},"9":{"name":"Turf","value":false,"description":"","connects":["left","right","bottom"],"connected":[false,false,false,false]},"10":{"name":"Turf","value":false,"description":"","connects":["left","top","bottom"],"connected":[false,false,false,false]},"11":{"name":"Spirit Well","value":false,"description":"+1d to Attune on site","connects":["right"],"connected":[false,false,false,false]},"12":{"name":"Ancient Gate","value":false,"description":"Safe passage in the Deathlands","connects":["left","top"],"connected":[false,false,false,false]},"13":{"name":"Sanctuary","value":false,"description":"+1d to Command and Sway on site","connects":["top"],"connected":[false,false,false,false]},"14":{"name":"Sacred Nexus","value":false,"description":"+1d to healing rolls","connects":["top","right"],"connected":[false,false,false,false]},"15":{"name":"Ancient Altar","value":false,"description":"+1d engagement for occult plans","connects":["left","top"],"connected":[false,false,false,false]}}},"folder":null,"sort":100001,"flags":{},"img":"systems/blades-in-the-dark/styles/assets/icons/Icon.7_29.png"}
{"_id":"678LJHqxkBAaSJci","name":"Cult","permission":{"default":0},"type":"crew_type","data":{"description":"Acolytes of a Deity","experience_clues":"- Advance the agenda of your deity or embody its precepts in action.\n- Contend with challenges above your current station.\n- Bolster your crew's reputation or develop a new one.\n- Express the goals, drives, inner conflict, or essential nature of the crew.","turfs":{"1":{"name":"Cloister","value":false,"description":"+1 scale for your Adept cohorts","connects":["right"],"connected":[false,false,false,false]},"2":{"name":"Vice Den","value":false,"description":"(Tier roll) - Heat = coin in Downtime","connects":["left","right","bottom"],"connected":[false,false,false,false]},"3":{"name":"Offertory","value":false,"description":"+2 coin for occult operations","connects":["left"],"connected":[false,false,false,false]},"4":{"name":"Ancient Obelisk","value":false,"description":"-1 stress cost for all arcane powers and rituals","connects":["right"],"connected":[false,false,false,false]},"5":{"name":"Ancient Tower","value":false,"description":"+1d to Consort w/ arcane entities on site","connects":["left","bottom"],"connected":[false,false,false,false]},"6":{"name":"Turf","value":false,"description":"","connects":["top","right"],"connected":[false,false,false,false]},"7":{"name":"Turf","value":false,"description":"","connects":["left","top","right","bottom"],"connected":[false,false,false,false]},"8":{"name":"Lair","value":1,"description":"","connects":["left","top","right","bottom"],"connected":[false,false,false,true]},"9":{"name":"Turf","value":false,"description":"","connects":["left","right","bottom"],"connected":[false,false,false,false]},"10":{"name":"Turf","value":false,"description":"","connects":["left","top","bottom"],"connected":[false,false,false,false]},"11":{"name":"Spirit Well","value":false,"description":"+1d to Attune on site","connects":["right"],"connected":[false,false,false,false]},"12":{"name":"Ancient Gate","value":false,"description":"Safe passage in the Deathlands","connects":["left","top"],"connected":[false,false,false,false]},"13":{"name":"Sanctuary","value":false,"description":"+1d to Command and Sway on site","connects":["top"],"connected":[false,false,false,false]},"14":{"name":"Sacred Nexus","value":false,"description":"+1d to healing rolls","connects":["top","right"],"connected":[false,false,false,false]},"15":{"name":"Ancient Altar","value":false,"description":"+1d engagement for occult plans","connects":["left","top"],"connected":[false,false,false,false]}}},"folder":null,"sort":100001,"flags":{},"img":"systems/blades-in-the-dark/styles/assets/icons/Icon.7_29.png"}
{"_id":"KDB0e8FotyrNliTH","name":"Shadows","permission":{"default":0,"BwbqQh8sHfeKmUax":3},"type":"crew_type","data":{"description":"Thieves, Spies and Saboteurs","experience_clues":"- Execute a successful espionage, sabotage, or theft operation.\n- Contend with challenges above your current station.\n- Bolster your crew's reputation or develop a new one.\n- Express the goals, drives, inner conflict, or essential nature of the crew.","turfs":{"1":{"name":"Interrogation Chamber","value":false,"description":"+1d to Command and Sway on site","connects":["right","bottom"]},"2":{"name":"Turf","value":false,"description":"","connects":["left","right"]},"3":{"name":"Loyal Fence","value":false,"description":"+2 coin for burglary or robbery","connects":["left","bottom"]},"4":{"name":"Gambling Den","value":false,"description":"(Tier roll) - Heat = coin in downtime","connects":["right","bottom"]},"5":{"name":"Tavern","value":false,"description":"+1d to Consort and Sway on site","connects":["left","bottom"]},"6":{"name":"Drug Den","value":false,"description":"(Tier roll) - Heat = coin in downtime","connects":["top","right","bottom"]},"7":{"name":"Informants","value":false,"description":"+1d gather info for scores","connects":["left","right","bottom"]},"8":{"name":"Lair","value":1,"description":"","connects":["left","top","right","bottom"]},"9":{"name":"Turf","value":false,"description":"","connects":["left","top","right"]},"10":{"name":"Lookouts","value":false,"description":"+1d to Survey or Hunt on your turf","connects":["left","top","bottom"]},"11":{"name":"Hagfish Farm","value":false,"description":"Body disposal, +1d to reduce Heat after killing","connects":["top","right"]},"12":{"name":"Infirmary","value":false,"description":"+1d to healing rolls","connects":["left","top"]},"13":{"name":"Covert Drops","value":false,"description":"+2 coin for espionage or sabotage","connects":["top","right"]},"14":{"name":"Turf","value":false,"description":"","connects":["left","right"]},"15":{"name":"Secret Pathways","value":false,"description":"+1d engagement for stealth plans","connects":["left","top"]}}},"folder":null,"sort":400001,"flags":{},"img":"systems/blades-in-the-dark/styles/assets/icons/Icon.6_10.png"}
{"_id":"ORP0DFYT11tZG2bn","name":"Assassins","permission":{"default":0,"BwbqQh8sHfeKmUax":3},"type":"crew_type","data":{"description":"Murderers for Hire","experience_clues":"- Execute a successful accident, disappearance, murder, or ransom operation.\n- Contend with challenges above your current station.\n- Bolster your crew's reputation or develop a new one.\n- Express the goals, drives, inner conflict, or essential nature of the crew.","turfs":{"1":{"name":"Training Rooms","value":false,"description":"+1 scale for your Skulks cohorts","connects":["right","bottom"]},"2":{"name":"Vice Den","value":false,"description":"(Tier roll) - Heat = coin in downtime","connects":["left","bottom"]},"3":{"name":"Fixer","value":false,"description":"+2 coins for lower class targets","connects":["bottom"]},"4":{"name":"Informants","value":false,"description":"+1d gather info for scores","connects":["right","bottom"]},"5":{"name":"Hagfish Farm","value":false,"description":"Body disposal, +1d to reduce heat after killing","connects":["left","bottom"]},"6":{"name":"Victim Trophies","value":false,"description":"+1rep per score","connects":["top","bottom"]},"7":{"name":"Turf","value":false,"description":"","connects":["top","right","bottom"]},"8":{"name":"Lair","value":1,"description":"","connects":["left","top","right","bottom"]},"9":{"name":"Turf","value":false,"description":"","connects":["left","top","right"]},"10":{"name":"Cover Operation","value":false,"description":"-2 heat per score","connects":["left","top","bottom"]},"11":{"name":"Protection Racket","value":false,"description":"(Tier roll) - Heat = coin in downtime","connects":["top","right"]},"12":{"name":"Infirmary","value":false,"description":"+1d to healing rolls","connects":["left","top"]},"13":{"name":"Envoy","value":false,"description":"+2 coin for high-class targets","connects":["top"]},"14":{"name":"Cover Identities","value":false,"description":"+1d engagement for deception and social plans","connects":["right"]},"15":{"name":"City Records","value":false,"description":"+1d engagement for stealth plans","connects":["left","top"]}}},"folder":null,"sort":100001,"flags":{},"img":"systems/blades-in-the-dark/styles/assets/icons/Icon.2_32.png"}
{"_id":"WV5R1gcd0eRWY7dk","name":"Smugglers","permission":{"default":0,"BwbqQh8sHfeKmUax":3},"type":"crew_type","data":{"description":"Supplies of illicit goods","experience_clues":"- Execute a successful smuggling or acquire new clients or contraband sources.\n- Contend with challenges above your current station.\n- Bolster your crew's reputation or develop a new one.\n- Express the goals, drives, inner conflict, or essential nature of the crew.","turfs":{"1":{"name":"Turf","value":false,"description":"","connects":["right","bottom"]},"2":{"name":"Side Business","value":false,"description":"(Tier roll) - Heat = coin in downtime","connects":["left","bottom"]},"3":{"name":"Luxury Fence","value":false,"description":"+2 coin for high-class targets","connects":["bottom"]},"4":{"name":"Vice Den","value":false,"description":"(Tier roll) - Heat = coin in downtime","connects":["right","bottom"]},"5":{"name":"Tavern","value":false,"description":"+1d to Consort and Sway on site","connects":["left","bottom"]},"6":{"name":"Ancient Gate","value":false,"description":"Safe passage in Deathlands","connects":["top","bottom"]},"7":{"name":"Turf","value":false,"description":"","connects":["top","right","bottom"]},"8":{"name":"Lair","value":1,"description":"","connects":["left","top","right","bottom"]},"9":{"name":"Turf","value":false,"description":"","connects":["left","top","right","bottom"]},"10":{"name":"Turf","value":false,"description":"","connects":["left","top","bottom"]},"11":{"name":"Secret Routes","value":false,"description":"+1d engagement for transport plans","connects":["top","right"]},"12":{"name":"Informants","value":false,"description":"+1d gather info for scores","connects":["left","top"]},"13":{"name":"Fleet","value":false,"description":"Your cohorts have their own vehicles","connects":["top"]},"14":{"name":"Cover Operation","value":false,"description":"-2 Heat per score","connects":["top","right"]},"15":{"name":"Warehouse","value":false,"description":"Stockpiles give you +1d to acquire assets","connects":["left","top"]}}},"folder":null,"sort":500001,"flags":{},"img":"systems/blades-in-the-dark/styles/assets/icons/Icon.6_46.png"}

View file

@ -11,6 +11,7 @@
"coins_stashed": [0],
"special_abilities": [],
"loadout": 0,
"load_level": "",
"harm": {
"light": {
"one": "",

View file

@ -309,7 +309,7 @@
{{!-- Owned Items Tab --}}
<div id="loadout" class="tab flex-vertical" data-tab="loadout">
<div class="label-stripe flex-horizontal">
<p>Loadout: {{data.loadout}}</p>
<p>Loadout: {{data.loadout}}/{{data.load_level}} </p>
<p><a class="item-add-popup" data-item-type="item"><i class="fas fa-plus-square"></i></a></p>
</div>
<div>