#1 Fix item deletion
This commit is contained in:
@ -1070,7 +1070,7 @@ const gearsData = [
|
||||
const fulltemplate = { "area": 0,
|
||||
"autofire": 0,
|
||||
"damage_club": "",
|
||||
"damage_hearth": "",
|
||||
"damage_hearts": "",
|
||||
"damage_spade": "",
|
||||
"damage_diamond": "",
|
||||
"hands": 1,
|
||||
@ -1140,7 +1140,7 @@ export class gearConverter {
|
||||
item.img = imgWeapon;
|
||||
let damages = gear.damage.match( /.(.+)([LMSC])\/.(.+)([LMSC])\/.(.+)([LMSC])\/.(.+)([LMSC])/i )
|
||||
item.data.damage_spade = damages[1] + damages[2];
|
||||
item.data.damage_hearth = damages[3] + damages[4];
|
||||
item.data.damage_hearts = damages[3] + damages[4];
|
||||
item.data.damage_diamond = damages[5] + damages[6];
|
||||
item.data.damage_club = damages[7] + damages[8];
|
||||
}
|
||||
|
@ -110,7 +110,7 @@ export class SoSCardDeck {
|
||||
getCardSuit( cardName ) {
|
||||
if ( cardName[0] == 'c') return 'club';
|
||||
if ( cardName[0] == 'd') return 'diamond';
|
||||
if ( cardName[0] == 'h') return 'hearth';
|
||||
if ( cardName[0] == 'h') return 'hearts';
|
||||
if ( cardName[0] == 's') return 'spade';
|
||||
if ( cardName[0] == 'j') return 'joker';
|
||||
}
|
||||
|
@ -21,7 +21,7 @@ import { gearConverter } from "./gears_convert.js";
|
||||
|
||||
/************************************************************************************/
|
||||
Hooks.once("init", async function () {
|
||||
console.log(`Initializing Shadows over Sol System`);
|
||||
console.log(`Initializing Shadows Over Sol System`);
|
||||
|
||||
// preload handlebars templates
|
||||
SoSUtility.preloadHandlebarsTemplates();
|
||||
|
@ -110,7 +110,7 @@ export class SoSUtility extends Entity {
|
||||
let trappings = items.filter( item => item.type == 'gear' || item.type == 'armor' || item.type == 'weapon' );
|
||||
let sumEnc = 0;
|
||||
for (let object of trappings) {
|
||||
if ( (!object.data.worn) && (!object.data.neg) && (!object.data.containerid || object.data.containerid == "") ) {
|
||||
if ( (!object.data.worn) && (!object.data.neg) && (!object.data.software) && (!object.data.implant) && (!object.data.containerid || object.data.containerid == "") ) {
|
||||
sumEnc += (object.big > 0) ? object.big : 1;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user