Compare commits
No commits in common. "v10" and "foundryvtt-shadows-over-sol-10.0.6" have entirely different histories.
v10
...
foundryvtt
@ -10,7 +10,7 @@ export class SoSActorSheet extends ActorSheet {
|
|||||||
|
|
||||||
/** @override */
|
/** @override */
|
||||||
static get defaultOptions() {
|
static get defaultOptions() {
|
||||||
return foundry.utils.mergeObject(super.defaultOptions, {
|
return mergeObject(super.defaultOptions, {
|
||||||
classes: ["sos", "sheet", "actor"],
|
classes: ["sos", "sheet", "actor"],
|
||||||
template: "systems/foundryvtt-shadows-over-sol/templates/actor-sheet.html",
|
template: "systems/foundryvtt-shadows-over-sol/templates/actor-sheet.html",
|
||||||
width: 640,
|
width: 640,
|
||||||
@ -22,7 +22,7 @@ export class SoSActorSheet extends ActorSheet {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* -------------------------------------------- */
|
/* -------------------------------------------- */
|
||||||
async getData() {
|
getData() {
|
||||||
const objectData = this.object
|
const objectData = this.object
|
||||||
let formData = {
|
let formData = {
|
||||||
title: this.title,
|
title: this.title,
|
||||||
@ -34,9 +34,6 @@ export class SoSActorSheet extends ActorSheet {
|
|||||||
cssClass: this.isEditable ? "editable" : "locked",
|
cssClass: this.isEditable ? "editable" : "locked",
|
||||||
data: foundry.utils.deepClone(this.object.system),
|
data: foundry.utils.deepClone(this.object.system),
|
||||||
effects: this.object.effects.map(e => foundry.utils.deepClone(e.data)),
|
effects: this.object.effects.map(e => foundry.utils.deepClone(e.data)),
|
||||||
history: await TextEditor.enrichHTML(this.object.system.history, {async: true}),
|
|
||||||
notes: await TextEditor.enrichHTML(this.object.system.notes, {async: true}),
|
|
||||||
gmnotes: await TextEditor.enrichHTML(this.object.system.gmnotes, {async: true}),
|
|
||||||
limited: this.object.limited,
|
limited: this.object.limited,
|
||||||
options: this.options,
|
options: this.options,
|
||||||
owner: this.document.isOwner
|
owner: this.document.isOwner
|
||||||
@ -64,12 +61,12 @@ export class SoSActorSheet extends ActorSheet {
|
|||||||
formData.gearsRoot = formData.gears.filter(item => item.system.containerid == "");
|
formData.gearsRoot = formData.gears.filter(item => item.system.containerid == "");
|
||||||
for ( let container of formData.gearsRoot) {
|
for ( let container of formData.gearsRoot) {
|
||||||
if ( container.type == 'container') {
|
if ( container.type == 'container') {
|
||||||
container.system.contains = []
|
container.data.contains = []
|
||||||
container.system.containerEnc = 0;
|
container.data.containerEnc = 0;
|
||||||
for (let gear of formData.gears) {
|
for (let gear of formData.gears) {
|
||||||
console.log("GEAR", gear, container)
|
console.log("GEAR", gear, container)
|
||||||
if ( gear.system.containerid == container.id) {
|
if ( gear.system.containerid == container.id) {
|
||||||
container.system.contains.push( gear )
|
container.data.contains.push( gear )
|
||||||
if ( !gear.system.neg && !gear.system.software ) {
|
if ( !gear.system.neg && !gear.system.software ) {
|
||||||
container.system.containerEnc += (gear.system.big > 0) ? gear.system.big : 1;
|
container.system.containerEnc += (gear.system.big > 0) ? gear.system.big : 1;
|
||||||
}
|
}
|
||||||
@ -81,7 +78,7 @@ export class SoSActorSheet extends ActorSheet {
|
|||||||
formData.weapons = this.actor.items.filter( item => item.type == 'weapon');
|
formData.weapons = this.actor.items.filter( item => item.type == 'weapon');
|
||||||
formData.armors = this.actor.items.filter( item => item.type == 'armor');
|
formData.armors = this.actor.items.filter( item => item.type == 'armor');
|
||||||
formData.totalEncumbrance = SoSUtility.computeEncumbrance(this.actor.items);
|
formData.totalEncumbrance = SoSUtility.computeEncumbrance(this.actor.items);
|
||||||
formData.wounds = foundry.utils.duplicate(this.actor.system.wounds);
|
formData.wounds = duplicate(this.actor.system.wounds);
|
||||||
formData.isGM = game.user.isGM;
|
formData.isGM = game.user.isGM;
|
||||||
formData.currentWounds = this.actor.computeCurrentWounds();
|
formData.currentWounds = this.actor.computeCurrentWounds();
|
||||||
formData.totalWounds = this.actor.system.scores.wound.value;
|
formData.totalWounds = this.actor.system.scores.wound.value;
|
||||||
|
@ -61,24 +61,24 @@ export class SoSActor extends Actor {
|
|||||||
|
|
||||||
/* -------------------------------------------- */
|
/* -------------------------------------------- */
|
||||||
checkDeck() {
|
checkDeck() {
|
||||||
if ( !this.system.cardDeck && this.hasPlayerOwner ) {
|
if ( !this.cardDeck && this.hasPlayerOwner ) {
|
||||||
this.system.cardDeck = new SoSCardDeck();
|
this.cardDeck = new SoSCardDeck();
|
||||||
this.system.cardDeck.initCardDeck( this, this.system.internals.deck );
|
this.cardDeck.initCardDeck( this, this.system.internals.deck );
|
||||||
}
|
}
|
||||||
if ( !this.hasPlayerOwner ) {
|
if ( !this.hasPlayerOwner ) {
|
||||||
this.system.cardDeck = game.system.sos.gmDeck.GMdeck;
|
this.cardDeck = game.system.sos.gmDeck.GMdeck;
|
||||||
console.log("DECK : ", this.system.cardDeck);
|
console.log("DECK : ", this.cardDeck);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* -------------------------------------------- */
|
/* -------------------------------------------- */
|
||||||
getDeckSize() {
|
getDeckSize() {
|
||||||
return this.system.cardDeck.getDeckSize();
|
return this.cardDeck.getDeckSize();
|
||||||
}
|
}
|
||||||
|
|
||||||
/* -------------------------------------------- */
|
/* -------------------------------------------- */
|
||||||
getEdgesCard( ) {
|
getEdgesCard( ) {
|
||||||
let edgesCard = foundry.utils.duplicate(this.system.cardDeck.data.cardEdge);
|
let edgesCard = duplicate(this.cardDeck.data.cardEdge);
|
||||||
for (let edge of edgesCard) {
|
for (let edge of edgesCard) {
|
||||||
edge.path = `systems/foundryvtt-shadows-over-sol/img/cards/${edge.cardName}.webp`
|
edge.path = `systems/foundryvtt-shadows-over-sol/img/cards/${edge.cardName}.webp`
|
||||||
}
|
}
|
||||||
@ -86,36 +86,36 @@ export class SoSActor extends Actor {
|
|||||||
}
|
}
|
||||||
/* -------------------------------------------- */
|
/* -------------------------------------------- */
|
||||||
resetDeckFull( ) {
|
resetDeckFull( ) {
|
||||||
this.system.cardDeck.shuffleDeck();
|
this.cardDeck.shuffleDeck();
|
||||||
this.system.cardDeck.drawEdge( this.system.scores.edge.value );
|
this.cardDeck.drawEdge( this.system.scores.edge.value );
|
||||||
this.saveDeck();
|
this.saveDeck();
|
||||||
}
|
}
|
||||||
/* -------------------------------------------- */
|
/* -------------------------------------------- */
|
||||||
drawNewEdge( ) {
|
drawNewEdge( ) {
|
||||||
this.system.cardDeck.drawEdge( 1 );
|
this.cardDeck.drawEdge( 1 );
|
||||||
this.saveDeck();
|
this.saveDeck();
|
||||||
}
|
}
|
||||||
|
|
||||||
/* -------------------------------------------- */
|
/* -------------------------------------------- */
|
||||||
discardEdge( cardName ) {
|
discardEdge( cardName ) {
|
||||||
this.system.cardDeck.discardEdge( cardName );
|
this.cardDeck.discardEdge( cardName );
|
||||||
this.saveDeck();
|
this.saveDeck();
|
||||||
}
|
}
|
||||||
|
|
||||||
/* -------------------------------------------- */
|
/* -------------------------------------------- */
|
||||||
resetDeck( ) {
|
resetDeck( ) {
|
||||||
this.system.cardDeck.resetDeck();
|
this.cardDeck.resetDeck();
|
||||||
this.saveDeck();
|
this.saveDeck();
|
||||||
}
|
}
|
||||||
|
|
||||||
/* -------------------------------------------- */
|
/* -------------------------------------------- */
|
||||||
saveDeck( ) {
|
saveDeck( ) {
|
||||||
let deck = { deck: foundry.utils.duplicate(this.system.cardDeck.data.deck),
|
let deck = { deck: duplicate(this.cardDeck.data.deck),
|
||||||
discard: foundry.utils.duplicate(this.system.cardDeck.data.discard),
|
discard: duplicate(this.cardDeck.data.discard),
|
||||||
cardEdge: foundry.utils.duplicate(this.system.cardDeck.data.cardEdge)
|
cardEdge: duplicate(this.cardDeck.data.cardEdge)
|
||||||
}
|
}
|
||||||
if ( this.hasPlayerOwner ) {
|
if ( this.hasPlayerOwner ) {
|
||||||
this.update( { 'system.internals.deck': deck });
|
this.update( { 'data.internals.deck': deck });
|
||||||
} else {
|
} else {
|
||||||
game.settings.set("foundryvtt-shadows-over-sol", "gmDeck", deck );
|
game.settings.set("foundryvtt-shadows-over-sol", "gmDeck", deck );
|
||||||
}
|
}
|
||||||
@ -213,7 +213,7 @@ export class SoSActor extends Actor {
|
|||||||
|
|
||||||
/* -------------------------------------------- */
|
/* -------------------------------------------- */
|
||||||
async updateWound(woundName, value) {
|
async updateWound(woundName, value) {
|
||||||
let wounds = foundry.utils.duplicate(this.system.wounds)
|
let wounds = duplicate(this.system.wounds)
|
||||||
wounds[woundName] = value;
|
wounds[woundName] = value;
|
||||||
await this.update( { 'system.wounds': wounds } );
|
await this.update( { 'system.wounds': wounds } );
|
||||||
}
|
}
|
||||||
@ -246,13 +246,13 @@ export class SoSActor extends Actor {
|
|||||||
|
|
||||||
let flipData = {
|
let flipData = {
|
||||||
mode: 'stat',
|
mode: 'stat',
|
||||||
stat: foundry.utils.duplicate(this.system.stats[statKey]),
|
stat: duplicate(this.system.stats[statKey]),
|
||||||
actor: this,
|
actor: this,
|
||||||
modifierList: SoSUtility.fillRange(-10, +10),
|
modifierList: SoSUtility.fillRange(-10, +10),
|
||||||
tnList: SoSUtility.fillRange(6, 20),
|
tnList: SoSUtility.fillRange(6, 20),
|
||||||
consequencesList: foundry.utils.duplicate( this.getApplicableConsequences() ),
|
consequencesList: duplicate( this.getApplicableConsequences() ),
|
||||||
weaknessList: this.items.filter( item => item.type == 'weakness' ),
|
weaknessList: this.items.filter( item => item.type == 'weakness' ),
|
||||||
wounds: foundry.utils.duplicate( this.system.wounds),
|
wounds: duplicate( this.system.wounds),
|
||||||
malusConsequence: 0,
|
malusConsequence: 0,
|
||||||
bonusConsequence: 0,
|
bonusConsequence: 0,
|
||||||
woundMalus: 0
|
woundMalus: 0
|
||||||
@ -265,12 +265,12 @@ export class SoSActor extends Actor {
|
|||||||
async rollSkill( skill ) {
|
async rollSkill( skill ) {
|
||||||
let flipData = {
|
let flipData = {
|
||||||
mode: 'skill',
|
mode: 'skill',
|
||||||
statList: foundry.utils.duplicate(this.system.stats),
|
statList: duplicate(this.system.stats),
|
||||||
selectedStat: 'strength',
|
selectedStat: 'strength',
|
||||||
consequencesList: foundry.utils.duplicate( this.getApplicableConsequences() ),
|
consequencesList: duplicate( this.getApplicableConsequences() ),
|
||||||
wounds: foundry.utils.duplicate( this.system.wounds),
|
wounds: duplicate( this.system.wounds),
|
||||||
skillExperienceList: this.getSkillExperience( skill.name),
|
skillExperienceList: this.getSkillExperience( skill.name),
|
||||||
skill: foundry.utils.duplicate(skill),
|
skill: duplicate(skill),
|
||||||
actor: this,
|
actor: this,
|
||||||
modifierList: SoSUtility.fillRange(-10, +10),
|
modifierList: SoSUtility.fillRange(-10, +10),
|
||||||
tnList: SoSUtility.fillRange(6, 20),
|
tnList: SoSUtility.fillRange(6, 20),
|
||||||
@ -301,14 +301,14 @@ export class SoSActor extends Actor {
|
|||||||
|
|
||||||
let flipData = {
|
let flipData = {
|
||||||
mode: 'weapon',
|
mode: 'weapon',
|
||||||
weapon: foundry.utils.duplicate(weapon),
|
weapon: duplicate(weapon),
|
||||||
statList: foundry.utils.duplicate(this.system.stats),
|
statList: duplicate(this.system.stats),
|
||||||
target: target,
|
target: target,
|
||||||
selectedStat: selectedStatName,
|
selectedStat: selectedStatName,
|
||||||
consequencesList: foundry.utils.duplicate( this.getApplicableConsequences() ),
|
consequencesList: duplicate( this.getApplicableConsequences() ),
|
||||||
skillExperienceList: this.getSkillExperience( skill.name),
|
skillExperienceList: this.getSkillExperience( skill.name),
|
||||||
wounds: foundry.utils.duplicate( this.system.wounds),
|
wounds: duplicate( this.system.wounds),
|
||||||
skill: foundry.utils.duplicate(skill),
|
skill: duplicate(skill),
|
||||||
actor: this,
|
actor: this,
|
||||||
modifierList: SoSUtility.fillRange(-10, +10),
|
modifierList: SoSUtility.fillRange(-10, +10),
|
||||||
tnList: SoSUtility.fillRange(6, 20),
|
tnList: SoSUtility.fillRange(6, 20),
|
||||||
@ -349,14 +349,14 @@ export class SoSActor extends Actor {
|
|||||||
async applyConsequenceWound( severity, consequenceName) {
|
async applyConsequenceWound( severity, consequenceName) {
|
||||||
if ( severity == 'none') return; // Nothing !
|
if ( severity == 'none') return; // Nothing !
|
||||||
|
|
||||||
let wounds = foundry.utils.duplicate(this.system.wounds);
|
let wounds = duplicate(this.system.wounds);
|
||||||
if (severity == 'light' ) wounds.light += 1;
|
if (severity == 'light' ) wounds.light += 1;
|
||||||
if (severity == 'moderate' ) wounds.moderate += 1;
|
if (severity == 'moderate' ) wounds.moderate += 1;
|
||||||
if (severity == 'severe' ) wounds.severe += 1;
|
if (severity == 'severe' ) wounds.severe += 1;
|
||||||
if (severity == 'critical' ) wounds.critical += 1;
|
if (severity == 'critical' ) wounds.critical += 1;
|
||||||
|
|
||||||
let sumWound = wounds.light + (wounds.moderate*2) + (wounds.severe*3) + (wounds.critical*4);
|
let sumWound = wounds.light + (wounds.moderate*2) + (wounds.severe*3) + (wounds.critical*4);
|
||||||
let currentWounds = foundry.utils.duplicate(this.system.scores.currentwounds);
|
let currentWounds = duplicate(this.system.scores.currentwounds);
|
||||||
currentWounds.value = sumWound;
|
currentWounds.value = sumWound;
|
||||||
await this.update( { 'data.scores.currentwounds': currentWounds, 'data.wounds': wounds } );
|
await this.update( { 'data.scores.currentwounds': currentWounds, 'data.wounds': wounds } );
|
||||||
|
|
||||||
@ -388,10 +388,10 @@ export class SoSActor extends Actor {
|
|||||||
if ( alreadyInside.length >= container.system.container ) {
|
if ( alreadyInside.length >= container.system.container ) {
|
||||||
ui.notifications.warn("Container is already full !");
|
ui.notifications.warn("Container is already full !");
|
||||||
} else {
|
} else {
|
||||||
setTimeout(function() { this.updateEmbeddedDocuments( "Item", [{ _id: object.id, 'system.containerid':containerId }])}, 800 )
|
await this.updateEmbeddedDocuments( "Item", [{ _id: object.id, 'system.containerid':containerId }]);
|
||||||
}
|
}
|
||||||
} else if ( object && object.system.containerid) { // remove from container
|
} else if ( object && object.system.containerid) { // remove from container
|
||||||
setTimeout(function() { this.updateEmbeddedDocuments( "Item", [{ _id: object.id, 'system.containerid':"" }])}, 800 )
|
await this.updateEmbeddedDocuments( "Item", [{ _id: object.id, 'system.containerid':"" }]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -403,7 +403,7 @@ export class SoSActor extends Actor {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
let wounds = foundry.utils.duplicate(this.system.wounds);
|
let wounds = duplicate(this.system.wounds);
|
||||||
for (let wound of flipData.woundsList ) {
|
for (let wound of flipData.woundsList ) {
|
||||||
if (wound == 'L' ) wounds.light += 1;
|
if (wound == 'L' ) wounds.light += 1;
|
||||||
if (wound == 'M' ) wounds.moderate += 1;
|
if (wound == 'M' ) wounds.moderate += 1;
|
||||||
@ -412,7 +412,7 @@ export class SoSActor extends Actor {
|
|||||||
}
|
}
|
||||||
// Compute total
|
// Compute total
|
||||||
let sumWound = wounds.light + (wounds.moderate*2) + (wounds.severe*3) + (wounds.critical*4);
|
let sumWound = wounds.light + (wounds.moderate*2) + (wounds.severe*3) + (wounds.critical*4);
|
||||||
let currentWounds = foundry.utils.duplicate(this.system.scores.currentwounds);
|
let currentWounds = duplicate(this.system.scores.currentwounds);
|
||||||
currentWounds.value = sumWound;
|
currentWounds.value = sumWound;
|
||||||
if ( sumWound >= this.system.scores.wound.value) {
|
if ( sumWound >= this.system.scores.wound.value) {
|
||||||
let bleeding = this.items.find( item => item.type == 'consequence' && item.name == 'Bleeding');
|
let bleeding = this.items.find( item => item.type == 'consequence' && item.name == 'Bleeding');
|
||||||
|
@ -8,7 +8,7 @@ export class SoSItemSheet extends ItemSheet {
|
|||||||
|
|
||||||
/** @override */
|
/** @override */
|
||||||
static get defaultOptions() {
|
static get defaultOptions() {
|
||||||
return foundry.utils.mergeObject(super.defaultOptions, {
|
return mergeObject(super.defaultOptions, {
|
||||||
classes: ["foundryvtt-shadows-over-sol", "sheet", "item"],
|
classes: ["foundryvtt-shadows-over-sol", "sheet", "item"],
|
||||||
template: "systems/foundryvtt-shadows-over-sol/templates/item-sheet.html",
|
template: "systems/foundryvtt-shadows-over-sol/templates/item-sheet.html",
|
||||||
width: 550,
|
width: 550,
|
||||||
@ -56,8 +56,7 @@ export class SoSItemSheet extends ItemSheet {
|
|||||||
effects: this.object.effects.map(e => foundry.utils.deepClone(e.system)),
|
effects: this.object.effects.map(e => foundry.utils.deepClone(e.system)),
|
||||||
limited: this.object.limited,
|
limited: this.object.limited,
|
||||||
options: this.options,
|
options: this.options,
|
||||||
owner: this.document.isOwner,
|
owner: this.document.isOwner
|
||||||
description: await TextEditor.enrichHTML(this.object.system.description, {async: true}),
|
|
||||||
};
|
};
|
||||||
|
|
||||||
formData.isGM = game.user.isGM;
|
formData.isGM = game.user.isGM;
|
||||||
@ -67,12 +66,6 @@ export class SoSItemSheet extends ItemSheet {
|
|||||||
if ( objectData.type == 'skill' && this.object.options?.actor) {
|
if ( objectData.type == 'skill' && this.object.options?.actor) {
|
||||||
formData.skillExperienceList = this.object.options.actor.getSkillExperience( objectData.name )
|
formData.skillExperienceList = this.object.options.actor.getSkillExperience( objectData.name )
|
||||||
}
|
}
|
||||||
if ( objectData.type == 'geneline') {
|
|
||||||
formData.weakness = await TextEditor.enrichHTML(this.object.system.weakness, {async: true})
|
|
||||||
}
|
|
||||||
if ( objectData.type == 'malady') {
|
|
||||||
formData.notes = await TextEditor.enrichHTML(this.object.system.notes, {async: true})
|
|
||||||
}
|
|
||||||
return formData;
|
return formData;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
24
module/sample-code.js
Normal file
24
module/sample-code.js
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
html.find('.item .item-name h4').click(event => this._onItemSummary(event));
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Handle toggling of an item from the Actor sheet
|
||||||
|
* @private
|
||||||
|
*/
|
||||||
|
_onItemSummary(event) {
|
||||||
|
event.preventDefault();
|
||||||
|
let li = $(event.currentTarget).parents(".item"),
|
||||||
|
item = this.actor.getOwnedItem(li.data("item-id"));
|
||||||
|
|
||||||
|
// Toggle summary
|
||||||
|
if (item.data.data.description !== undefined && item.data.data.description !== null){
|
||||||
|
if ( li.hasClass("expanded") ) {
|
||||||
|
let summary = li.children(".item-summary");
|
||||||
|
summary.slideUp(200, () => summary.remove());
|
||||||
|
} else {
|
||||||
|
let div = $(`<div class="item-summary">${item.data.data.description}</div>`);
|
||||||
|
li.append(div.hide());
|
||||||
|
div.slideDown(200);
|
||||||
|
}
|
||||||
|
li.toggleClass("expanded");
|
||||||
|
}
|
||||||
|
}
|
@ -8,7 +8,7 @@ const IDX2CARDFAMILY = ['c', 'd', 'h', 's'];
|
|||||||
export class SoSCardDeck {
|
export class SoSCardDeck {
|
||||||
|
|
||||||
/* -------------------------------------------- */
|
/* -------------------------------------------- */
|
||||||
async initCardDeck(actor, savedDeck = undefined ) {
|
initCardDeck(actor, savedDeck = undefined ) {
|
||||||
|
|
||||||
this.data = {};
|
this.data = {};
|
||||||
|
|
||||||
@ -18,28 +18,27 @@ export class SoSCardDeck {
|
|||||||
this.data.cardEdge = [];
|
this.data.cardEdge = [];
|
||||||
|
|
||||||
if ( savedDeck.deck && savedDeck.deck.length > 0 ) {
|
if ( savedDeck.deck && savedDeck.deck.length > 0 ) {
|
||||||
this.data.deck = foundry.utils.duplicate(savedDeck.deck);
|
this.data.deck = duplicate(savedDeck.deck);
|
||||||
}
|
}
|
||||||
if ( savedDeck.discard && savedDeck.discard.length > 0 ) {
|
if ( savedDeck.discard && savedDeck.discard.length > 0 ) {
|
||||||
this.data.discard = foundry.utils.duplicate(savedDeck.discard);
|
this.data.discard = duplicate(savedDeck.discard);
|
||||||
}
|
}
|
||||||
if ( savedDeck.cardEdge && savedDeck.cardEdge.length > 0 ) {
|
if ( savedDeck.cardEdge && savedDeck.cardEdge.length > 0 ) {
|
||||||
this.data.cardEdge = foundry.utils.duplicate(savedDeck.cardEdge);
|
this.data.cardEdge = duplicate(savedDeck.cardEdge);
|
||||||
}
|
}
|
||||||
|
|
||||||
this.data.actor = actor;
|
this.data.actor = actor;
|
||||||
if ( this.data.deck.length == 0 && this.data.discard.length == 0) {
|
if ( this.data.deck.length == 0 && this.data.discard.length == 0) {
|
||||||
await this.shuffleDeck();
|
this.shuffleDeck();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* -------------------------------------------- */
|
/* -------------------------------------------- */
|
||||||
async shuffleDeck() {
|
shuffleDeck() {
|
||||||
this.cleanCardList();
|
this.cleanCardList();
|
||||||
// Randomize deck
|
// Randomize deck
|
||||||
while (this.data.deck.length != NB_POKER_CARD) {
|
while (this.data.deck.length != NB_POKER_CARD) {
|
||||||
let roll = await new Roll("1d54").roll();
|
let idx = new Roll("1d54").roll( {async:false} ).total;
|
||||||
let idx = roll.total;
|
|
||||||
if (!this.data.cardState[idx - 1]) {
|
if (!this.data.cardState[idx - 1]) {
|
||||||
if (idx == 53) { // Red Joker
|
if (idx == 53) { // Red Joker
|
||||||
this.data.deck.push( { cardName: 'jr' } );
|
this.data.deck.push( { cardName: 'jr' } );
|
||||||
@ -58,8 +57,8 @@ export class SoSCardDeck {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* -------------------------------------------- */
|
/* -------------------------------------------- */
|
||||||
async resetDeck() {
|
resetDeck() {
|
||||||
let newdeck = foundry.utils.duplicate(this.data.deck).concat( foundry.utils.duplicate (this.data.discard) )
|
let newdeck = duplicate(this.data.deck).concat( duplicate (this.data.discard) )
|
||||||
this.data.discard = [] // Reinit discard pile
|
this.data.discard = [] // Reinit discard pile
|
||||||
this.data.deck = []
|
this.data.deck = []
|
||||||
let decklen = newdeck.length
|
let decklen = newdeck.length
|
||||||
@ -69,8 +68,7 @@ export class SoSCardDeck {
|
|||||||
}
|
}
|
||||||
// Randomize deck
|
// Randomize deck
|
||||||
while (this.data.deck.length != decklen) {
|
while (this.data.deck.length != decklen) {
|
||||||
let roll = await new Roll("1d"+decklen).roll()
|
let idx = new Roll("1d"+decklen).roll({async : false}).total
|
||||||
let idx = roll.total
|
|
||||||
//console.log("Deck stuff", this.data.deck.length, decklen, idx)
|
//console.log("Deck stuff", this.data.deck.length, decklen, idx)
|
||||||
if (!cardState[idx-1]) {
|
if (!cardState[idx-1]) {
|
||||||
this.data.deck.push( newdeck[idx-1] )
|
this.data.deck.push( newdeck[idx-1] )
|
||||||
@ -249,7 +247,7 @@ export class SoSCardDeck {
|
|||||||
if ( flipData.mode == 'stat' || flipData.mode == 'weapon' ) {
|
if ( flipData.mode == 'stat' || flipData.mode == 'weapon' ) {
|
||||||
flipData.baseScore = flipData.stat.value + flipData.malusConsequence + flipData.bonusConsequence + flipData.woundMalus;
|
flipData.baseScore = flipData.stat.value + flipData.malusConsequence + flipData.bonusConsequence + flipData.woundMalus;
|
||||||
} else if (flipData.mode == 'skill') {
|
} else if (flipData.mode == 'skill') {
|
||||||
flipData.baseScore = Math.floor(flipData.stat.value/2) + flipData.skill.system.value + flipData.malusConsequence + flipData.bonusConsequence + flipData.woundMalus;
|
flipData.baseScore = Math.floor(flipData.stat.value/2) + flipData.skill.data.value + flipData.malusConsequence + flipData.bonusConsequence + flipData.woundMalus;
|
||||||
}
|
}
|
||||||
flipData.finalScore = flipData.baseScore + flipData.cardTotal + Number(flipData.modifier);
|
flipData.finalScore = flipData.baseScore + flipData.cardTotal + Number(flipData.modifier);
|
||||||
flipData.magnitude = flipData.finalScore - flipData.tn;
|
flipData.magnitude = flipData.finalScore - flipData.tn;
|
||||||
@ -274,10 +272,10 @@ export class SoSCardDeck {
|
|||||||
async processWeapon( flipData ) {
|
async processWeapon( flipData ) {
|
||||||
flipData.damageCardsuit = flipData.cardSlot[flipData.cardSlotIndex].cardsuit;
|
flipData.damageCardsuit = flipData.cardSlot[flipData.cardSlotIndex].cardsuit;
|
||||||
let damageKey = 'damage_'+ flipData.damageCardsuit;
|
let damageKey = 'damage_'+ flipData.damageCardsuit;
|
||||||
flipData.damageString = flipData.weapon.system[damageKey];
|
flipData.damageString = flipData.weapon.data[damageKey];
|
||||||
if (flipData.damageString.includes('Str') ) {
|
if (flipData.damageString.includes('Str') ) {
|
||||||
let damageRegexp = flipData.damageString.match( /Str([\d])?\+?([\d])?([LMSC])/i );
|
let damageRegexp = flipData.damageString.match( /Str([\d])?\+?([\d])?([LMSC])/i );
|
||||||
flipData.damageValue = (flipData.actor.system.stats.strength.value * Number(damageRegexp[1]?damageRegexp[1]:1)) + Number(damageRegexp[2]?damageRegexp[2]:0);
|
flipData.damageValue = (flipData.actor.data.data.stats.strength.value * Number(damageRegexp[1]?damageRegexp[1]:1)) + Number(damageRegexp[2]?damageRegexp[2]:0);
|
||||||
flipData.damageSeverity = damageRegexp[3];
|
flipData.damageSeverity = damageRegexp[3];
|
||||||
} else {
|
} else {
|
||||||
let damageRegexp = flipData.damageString.match( /(\d*)([LMSC])/i );
|
let damageRegexp = flipData.damageString.match( /(\d*)([LMSC])/i );
|
||||||
|
@ -14,7 +14,7 @@ export class SoSCombat extends Combat {
|
|||||||
this.phaseSetup = {}; // Reset each new round/update
|
this.phaseSetup = {}; // Reset each new round/update
|
||||||
for (let combatant of this.combatants) {
|
for (let combatant of this.combatants) {
|
||||||
this.setInitiative(combatant.id, -1); // Reset init
|
this.setInitiative(combatant.id, -1); // Reset init
|
||||||
let uniq = foundry.utils.randomID(16)
|
let uniq = randomID(16)
|
||||||
const name = combatant.actor ? combatant.actor.name : combatant.name;
|
const name = combatant.actor ? combatant.actor.name : combatant.name;
|
||||||
if (combatant.players && combatant.players[0]) {
|
if (combatant.players && combatant.players[0]) {
|
||||||
// A player controls this combatant -> message !
|
// A player controls this combatant -> message !
|
||||||
@ -80,7 +80,7 @@ export class SoSCombat extends Combat {
|
|||||||
|
|
||||||
// Now push specific messages
|
// Now push specific messages
|
||||||
for (let action of actionList) {
|
for (let action of actionList) {
|
||||||
let uniq = foundry.utils.randomID(16);
|
let uniq = randomID(16);
|
||||||
action.uniqId = uniq; // Easy tracking with chat messages
|
action.uniqId = uniq; // Easy tracking with chat messages
|
||||||
const name = action.combatant.actor ? action.combatant.actor.name : action.combatant.name;
|
const name = action.combatant.actor ? action.combatant.actor.name : action.combatant.name;
|
||||||
if (action.combatant.players[0]) {
|
if (action.combatant.players[0]) {
|
||||||
|
@ -53,11 +53,11 @@ export class SoSDialogCombatActions extends Dialog {
|
|||||||
super.close();
|
super.close();
|
||||||
|
|
||||||
let action3Index = $('#action3').val();
|
let action3Index = $('#action3').val();
|
||||||
let action3 = foundry.utils.duplicate(this.combatActions.actionsList[action3Index]);
|
let action3 = duplicate(this.combatActions.actionsList[action3Index]);
|
||||||
let action2Index = $('#action2').val();
|
let action2Index = $('#action2').val();
|
||||||
let action2 = foundry.utils.duplicate(this.combatActions.actionsList[action2Index]);
|
let action2 = duplicate(this.combatActions.actionsList[action2Index]);
|
||||||
let action1Index = $('#action1').val();
|
let action1Index = $('#action1').val();
|
||||||
let action1 = foundry.utils.duplicate(this.combatActions.actionsList[action1Index]);
|
let action1 = duplicate(this.combatActions.actionsList[action1Index]);
|
||||||
|
|
||||||
let combatant3Id = $('#combatant3').val();
|
let combatant3Id = $('#combatant3').val();
|
||||||
let combatant2Id = $('#combatant2').val();
|
let combatant2Id = $('#combatant2').val();
|
||||||
|
@ -29,7 +29,7 @@ export class SoSFlipDialog extends Dialog {
|
|||||||
let scoreBase = 0;
|
let scoreBase = 0;
|
||||||
if ( this.flipData.mode == 'skill' || this.flipData.mode == 'weapon' ) {
|
if ( this.flipData.mode == 'skill' || this.flipData.mode == 'weapon' ) {
|
||||||
let statKey = $('#statSelect').val();
|
let statKey = $('#statSelect').val();
|
||||||
this.flipData.stat = foundry.utils.duplicate( this.flipData.statList[ statKey ] );
|
this.flipData.stat = duplicate( this.flipData.statList[ statKey ] );
|
||||||
scoreBase = Math.floor(this.flipData.statList[ statKey ].value / 2) + this.flipData.skill.system.value
|
scoreBase = Math.floor(this.flipData.statList[ statKey ].value / 2) + this.flipData.skill.system.value
|
||||||
} else { //Stat mode
|
} else { //Stat mode
|
||||||
let statKey = $('#statSelect').val();
|
let statKey = $('#statSelect').val();
|
||||||
@ -52,10 +52,10 @@ export class SoSFlipDialog extends Dialog {
|
|||||||
async updateFlip( flipData ) {
|
async updateFlip( flipData ) {
|
||||||
//console.log("UPDATE !!!", flipData);
|
//console.log("UPDATE !!!", flipData);
|
||||||
$('.view-deck').remove();
|
$('.view-deck').remove();
|
||||||
$("#view-deck").append(await flipData.actor.system.cardDeck.getDeckHTML());
|
$("#view-deck").append(await flipData.actor.cardDeck.getDeckHTML());
|
||||||
|
|
||||||
$('.view-edge').remove();
|
$('.view-edge').remove();
|
||||||
$("#view-edge").append(await flipData.actor.system.cardDeck.getEdgeHTMLForFlip());
|
$("#view-edge").append(await flipData.actor.cardDeck.getEdgeHTMLForFlip());
|
||||||
|
|
||||||
this.updateScoreBase();
|
this.updateScoreBase();
|
||||||
|
|
||||||
@ -67,10 +67,10 @@ export class SoSFlipDialog extends Dialog {
|
|||||||
flipData.edgeLuck = $('#edge-luck').is(":checked");
|
flipData.edgeLuck = $('#edge-luck').is(":checked");
|
||||||
flipData.cardOrigin = "Edge";
|
flipData.cardOrigin = "Edge";
|
||||||
if ( flipData.mode == 'skill' || flipData.mode == 'weapon') {
|
if ( flipData.mode == 'skill' || flipData.mode == 'weapon') {
|
||||||
flipData.stat = foundry.utils.duplicate( flipData.statList[ $('#statSelect').val() ] );
|
flipData.stat = duplicate( flipData.statList[ $('#statSelect').val() ] );
|
||||||
}
|
}
|
||||||
console.log("CLICK:", flipData);
|
console.log("CLICK:", flipData);
|
||||||
this.flipData.actor.system.cardDeck.doFlipFromDeckOrEdge(flipData);
|
this.flipData.actor.cardDeck.doFlipFromDeckOrEdge(flipData);
|
||||||
this.onFlipClose();
|
this.onFlipClose();
|
||||||
});
|
});
|
||||||
|
|
||||||
@ -161,11 +161,11 @@ export class SoSFlipDialog extends Dialog {
|
|||||||
flipData.modifier = html.find('#modifier').val();
|
flipData.modifier = html.find('#modifier').val();
|
||||||
if ( flipData.mode == 'skill' || flipData.mode == 'weapon') {
|
if ( flipData.mode == 'skill' || flipData.mode == 'weapon') {
|
||||||
let statKey = $('#statSelect').val();
|
let statKey = $('#statSelect').val();
|
||||||
flipData.stat = foundry.utils.duplicate( flipData.statList[ statKey ] );
|
flipData.stat = duplicate( flipData.statList[ statKey ] );
|
||||||
}
|
}
|
||||||
flipData.cardOrigin = "Deck";
|
flipData.cardOrigin = "Deck";
|
||||||
flipData.tn = (flipData.target) ? flipData.target.actor.system.scores.defense.value : $('#tn').val();
|
flipData.tn = (flipData.target) ? flipData.target.actor.system.scores.defense.value : $('#tn').val();
|
||||||
dialog.flipData.actor.system.cardDeck.doFlipFromDeckOrEdge(flipData);
|
dialog.flipData.actor.cardDeck.doFlipFromDeckOrEdge(flipData);
|
||||||
dialog.onFlipClose();
|
dialog.onFlipClose();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -35,9 +35,9 @@ export class SoSGMDeck extends Dialog {
|
|||||||
/* -------------------------------------------- */
|
/* -------------------------------------------- */
|
||||||
saveDeck( ) {
|
saveDeck( ) {
|
||||||
let deck = {
|
let deck = {
|
||||||
deck: foundry.utils.duplicate(this.GMdeck.data.deck),
|
deck: duplicate(this.GMdeck.data.deck),
|
||||||
discard: foundry.utils.duplicate(this.GMdeck.data.discard),
|
discard: duplicate(this.GMdeck.data.discard),
|
||||||
cardEdge: foundry.utils.duplicate(this.GMdeck.data.cardEdge)
|
cardEdge: duplicate(this.GMdeck.data.cardEdge)
|
||||||
}
|
}
|
||||||
game.settings.set("foundryvtt-shadows-over-sol", "gmDeck", deck );
|
game.settings.set("foundryvtt-shadows-over-sol", "gmDeck", deck );
|
||||||
}
|
}
|
||||||
|
@ -15,7 +15,6 @@ import { SoSUtility } from "./sos-utility.js";
|
|||||||
import { SoSCombat } from "./sos-combat.js";
|
import { SoSCombat } from "./sos-combat.js";
|
||||||
import { gearConverter } from "./gears_convert.js";
|
import { gearConverter } from "./gears_convert.js";
|
||||||
import { SoSGMDeck } from "./sos-gm-deck.js";
|
import { SoSGMDeck } from "./sos-gm-deck.js";
|
||||||
import { ClassCounter} from "https://www.uberwald.me/fvtt_appcount/count-class-ready.js"
|
|
||||||
|
|
||||||
/* -------------------------------------------- */
|
/* -------------------------------------------- */
|
||||||
/* Foundry VTT Initialization */
|
/* Foundry VTT Initialization */
|
||||||
@ -90,6 +89,30 @@ function welcomeMessage() {
|
|||||||
` });
|
` });
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* -------------------------------------------- */
|
||||||
|
// Register world usage statistics
|
||||||
|
function registerUsageCount( registerKey ) {
|
||||||
|
if ( game.user.isGM ) {
|
||||||
|
game.settings.register(registerKey, "world-key", {
|
||||||
|
name: "Unique world key",
|
||||||
|
scope: "world",
|
||||||
|
config: false,
|
||||||
|
default: "XXX",
|
||||||
|
type: String
|
||||||
|
});
|
||||||
|
|
||||||
|
let worldKey = game.settings.get(registerKey, "world-key")
|
||||||
|
if ( worldKey == undefined || worldKey == "" ) {
|
||||||
|
worldKey = randomID(32)
|
||||||
|
game.settings.set(registerKey, "world-key", worldKey )
|
||||||
|
}
|
||||||
|
// Simple API counter
|
||||||
|
let regURL = `https://www.uberwald.me/fvtt_appcount/count.php?name="${registerKey}"&worldKey="${worldKey}"&version="${game.release.generation}.${game.release.build}"&system="${game.system.id}"&systemversion="${game.system.version}"`
|
||||||
|
$.ajax(regURL)
|
||||||
|
/* -------------------------------------------- */
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/* -------------------------------------------- */
|
/* -------------------------------------------- */
|
||||||
/* Foundry VTT Initialization */
|
/* Foundry VTT Initialization */
|
||||||
/* -------------------------------------------- */
|
/* -------------------------------------------- */
|
||||||
@ -103,8 +126,7 @@ Hooks.once("ready", function () {
|
|||||||
user: game.user._id
|
user: game.user._id
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
ClassCounter.registerUsageCount()
|
registerUsageCount("foundryvtt-shadows-over-sol")
|
||||||
SoSUtility.ready()
|
|
||||||
|
|
||||||
welcomeMessage();
|
welcomeMessage();
|
||||||
|
|
||||||
|
@ -30,16 +30,6 @@ export class SoSUtility {
|
|||||||
return loadTemplates(templatePaths);
|
return loadTemplates(templatePaths);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* -------------------------------------------- */
|
|
||||||
static ready() {
|
|
||||||
Handlebars.registerHelper('select', function (selected, options) {
|
|
||||||
const escapedValue = RegExp.escape(Handlebars.escapeExpression(selected));
|
|
||||||
const rgx = new RegExp(' value=[\"\']' + escapedValue + '[\"\']');
|
|
||||||
const html = options.fn(this);
|
|
||||||
return html.replace(rgx, "$& selected");
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
/* -------------------------------------------- */
|
/* -------------------------------------------- */
|
||||||
static fillRange (start, end) {
|
static fillRange (start, end) {
|
||||||
return Array(end - start + 1).fill().map((item, index) => start + index);
|
return Array(end - start + 1).fill().map((item, index) => start + index);
|
||||||
@ -85,6 +75,23 @@ export class SoSUtility {
|
|||||||
return competences;
|
return competences;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* -------------------------------------------- */
|
||||||
|
/*static async loadCompendium(compendium, filter = item => true) {
|
||||||
|
let compendiumItems = await SoSUtility.loadCompendiumNames(compendium);
|
||||||
|
|
||||||
|
const pack = game.packs.get(compendium);
|
||||||
|
let list = [];
|
||||||
|
for (let compendiumItem of compendiumItems) {
|
||||||
|
await pack.getEntity(compendiumItem.id).then(it => {
|
||||||
|
const item = it.data;
|
||||||
|
if (filter(item)) {
|
||||||
|
list.push(item);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
};
|
||||||
|
return list;
|
||||||
|
}*/
|
||||||
|
|
||||||
/* -------------------------------------------- */
|
/* -------------------------------------------- */
|
||||||
static updateCombat(combat, round, diff, id) {
|
static updateCombat(combat, round, diff, id) {
|
||||||
combat.requestActions();
|
combat.requestActions();
|
||||||
@ -115,7 +122,7 @@ export class SoSUtility {
|
|||||||
let trappings = items.filter( item => item.type == 'gear' || item.type == 'armor' || item.type == 'weapon' );
|
let trappings = items.filter( item => item.type == 'gear' || item.type == 'armor' || item.type == 'weapon' );
|
||||||
let sumEnc = 0;
|
let sumEnc = 0;
|
||||||
for (let object of trappings) {
|
for (let object of trappings) {
|
||||||
if ((!object.system.worn) && (!object.system.neg) && (!object.system.software) && (!object.system.implant) && (!object.system.containerid || object.system.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;
|
sumEnc += (object.big > 0) ? object.big : 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -130,8 +137,7 @@ export class SoSUtility {
|
|||||||
game.combat.closeAction( uniqId );
|
game.combat.closeAction( uniqId );
|
||||||
} else {
|
} else {
|
||||||
game.socket.emit("system.foundryvtt-shadows-over-sol", {
|
game.socket.emit("system.foundryvtt-shadows-over-sol", {
|
||||||
name: "msg_close_action", data: { uniqId: uniqId }
|
name: "msg_close_action", data: { uniqId: uniqId} } );
|
||||||
});
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -269,20 +275,20 @@ export class SoSUtility {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// DR management
|
// DR management
|
||||||
let armor = flipData.target.actor.system.items.find(item => item.type == 'armor' && item.system.worn);
|
let armor = flipData.target.actor.data.items.find( item => item.type == 'armor' && item.data.worn);
|
||||||
flipData.armorDR = armor ? armor.system.dr : 0;
|
flipData.armorDR = armor ? armor.data.dr : 0;
|
||||||
flipData.armorGel = armor ? armor.system.gel : 0;
|
flipData.armorGel = armor ?armor.data.gel : 0;
|
||||||
flipData.armorReflect = armor ? armor.system.reflect : 0;
|
flipData.armorReflect = armor ? armor.data.reflect : 0;
|
||||||
let dr = flipData.target.actor.system.scores.dr.value + flipData.armorDR;
|
let dr = flipData.target.actor.data.data.scores.dr.value + flipData.armorDR;
|
||||||
if (flipData.weapon.system.category == 'ballistic') {
|
if (flipData.weapon.data.category == 'ballistic') {
|
||||||
dr += flipData.armorGel;
|
dr += flipData.armorGel;
|
||||||
}
|
}
|
||||||
if (flipData.weapon.system.category == 'laser') {
|
if (flipData.weapon.data.category == 'laser') {
|
||||||
dr += flipData.armorReflect;
|
dr += flipData.armorReflect;
|
||||||
}
|
}
|
||||||
|
|
||||||
let shock = flipData.target.actor.system.scores.shock.value || 1;
|
let shock = flipData.target.actor.data.data.scores.shock.value || 1;
|
||||||
let defenseCritical = flipData.target.actor.system.scores.defense.critical;
|
let defenseCritical = flipData.target.actor.data.data.scores.defense.critical;
|
||||||
flipData.damageStatus = 'apply_damage';
|
flipData.damageStatus = 'apply_damage';
|
||||||
|
|
||||||
flipData.targetShock = shock;
|
flipData.targetShock = shock;
|
||||||
@ -335,18 +341,18 @@ export class SoSUtility {
|
|||||||
|
|
||||||
// Is target able to dodge ??
|
// Is target able to dodge ??
|
||||||
let defender = game.actors.get( flipData.target.actor._id);
|
let defender = game.actors.get( flipData.target.actor._id);
|
||||||
flipData.coverConsequence = defender.items.find(item => item.type == 'consequence' && item.name == 'Cover');
|
flipData.coverConsequence = defender.data.items.find( item => item.type == 'consequence' && item.name == 'Cover');
|
||||||
flipData.APavailable = game.combat.getAPFromActor(defender._id);
|
flipData.APavailable = game.combat.getAPFromActor( defender.data._id );
|
||||||
console.log("FLIPDATE : ", flipData);
|
console.log("FLIPDATE : ", flipData);
|
||||||
if ( !flipData.isReaction && flipData.APavailable > 0) {
|
if ( !flipData.isReaction && flipData.APavailable > 0) {
|
||||||
if ((flipData.weapon.system.category == 'melee') || ((flipData.weapon.system.category == 'laser' || flipData.weapon.system.category == 'ballistic') &&
|
if ( (flipData.weapon.data.category == 'melee' ) || ( (flipData.weapon.data.category == 'laser' || flipData.weapon.data.category == 'ballistic') &&
|
||||||
flipData.coverConsequence.system.severity != 'none')) {
|
flipData.coverConsequence.data.severity != 'none') ) {
|
||||||
flipData.coverSeverityLevel = this.getConsequenceSeverityLevel(flipData.coverConsequence.system.severity) * 2;
|
flipData.coverSeverityLevel = this.getConsequenceSeverityLevel( flipData.coverConsequence.data.severity ) * 2;
|
||||||
flipData.coverSeverityFlag = (flipData.coverSeverityLevel > 0);
|
flipData.coverSeverityFlag = (flipData.coverSeverityLevel > 0);
|
||||||
flipData.isMelee = (flipData.weapon.system.category == 'melee');
|
flipData.isMelee = (flipData.weapon.data.category == 'melee' );
|
||||||
let melee = defender.items.find(item => item.type == 'skill' && item.name == 'Melee');
|
let melee = defender.data.items.find( item => item.type == 'skill' && item.name == 'Melee');
|
||||||
flipData.defenderMelee = melee.system.value;
|
flipData.defenderMelee = melee.data.value;
|
||||||
flipData.uniqId = foundry.utils.randomID(16);
|
flipData.uniqId = randomID(16);
|
||||||
this.registry[flipData.uniqId] = flipData;
|
this.registry[flipData.uniqId] = flipData;
|
||||||
let html = await renderTemplate('systems/foundryvtt-shadows-over-sol/templates/chat-damage-request-dodge.html', flipData );
|
let html = await renderTemplate('systems/foundryvtt-shadows-over-sol/templates/chat-damage-request-dodge.html', flipData );
|
||||||
ChatMessage.create( { content: html, whisper: ChatMessage.getWhisperRecipients(flipData.target.actor.name).concat(ChatMessage.getWhisperRecipients("GM")) } );
|
ChatMessage.create( { content: html, whisper: ChatMessage.getWhisperRecipients(flipData.target.actor.name).concat(ChatMessage.getWhisperRecipients("GM")) } );
|
||||||
|
Binary file not shown.
@ -1 +0,0 @@
|
|||||||
MANIFEST-000007
|
|
@ -1,13 +0,0 @@
|
|||||||
2024/05/31-12:37:50.244518 7f20a6a006c0 Recovering log #6
|
|
||||||
2024/05/31-12:37:50.292179 7f20a6a006c0 Delete type=0 #6
|
|
||||||
2024/05/31-12:37:50.292229 7f20a6a006c0 Delete type=3 #4
|
|
||||||
2024/05/31-12:57:42.325821 7f20a5a006c0 Level-0 table #10: started
|
|
||||||
2024/05/31-12:57:42.325873 7f20a5a006c0 Level-0 table #10: 0 bytes OK
|
|
||||||
2024/05/31-12:57:42.332227 7f20a5a006c0 Delete type=0 #8
|
|
||||||
2024/05/31-12:57:42.355930 7f20a5a006c0 Manual compaction at level-0 from '!items!06L0cwm4CIuCFetU' @ 72057594037927935 : 1 .. '!items!uSQw858IiBrWkeSj' @ 0 : 0; will stop at '!items!uSQw858IiBrWkeSj' @ 20 : 1
|
|
||||||
2024/05/31-12:57:42.355939 7f20a5a006c0 Compacting 1@0 + 0@1 files
|
|
||||||
2024/05/31-12:57:42.359540 7f20a5a006c0 Generated table #11@0: 20 keys, 15155 bytes
|
|
||||||
2024/05/31-12:57:42.359578 7f20a5a006c0 Compacted 1@0 + 0@1 files => 15155 bytes
|
|
||||||
2024/05/31-12:57:42.365779 7f20a5a006c0 compacted to: files[ 0 1 0 0 0 0 0 ]
|
|
||||||
2024/05/31-12:57:42.365873 7f20a5a006c0 Delete type=2 #5
|
|
||||||
2024/05/31-12:57:42.386374 7f20a5a006c0 Manual compaction at level-0 from '!items!uSQw858IiBrWkeSj' @ 20 : 1 .. '!items!uSQw858IiBrWkeSj' @ 0 : 0; will stop at (end)
|
|
@ -1,5 +0,0 @@
|
|||||||
2024/05/31-12:37:00.345049 7f04c4c006c0 Recovering log #3
|
|
||||||
2024/05/31-12:37:00.345498 7f04c4c006c0 Level-0 table #5: started
|
|
||||||
2024/05/31-12:37:00.358604 7f04c4c006c0 Level-0 table #5: 22912 bytes OK
|
|
||||||
2024/05/31-12:37:00.406080 7f04c4c006c0 Delete type=0 #3
|
|
||||||
2024/05/31-12:37:00.406202 7f04c4c006c0 Delete type=3 #2
|
|
Binary file not shown.
Binary file not shown.
@ -1 +0,0 @@
|
|||||||
MANIFEST-000007
|
|
@ -1,13 +0,0 @@
|
|||||||
2024/05/31-12:37:49.951711 7f20a74006c0 Recovering log #6
|
|
||||||
2024/05/31-12:37:50.022164 7f20a74006c0 Delete type=0 #6
|
|
||||||
2024/05/31-12:37:50.022219 7f20a74006c0 Delete type=3 #4
|
|
||||||
2024/05/31-12:57:42.253682 7f20a5a006c0 Level-0 table #10: started
|
|
||||||
2024/05/31-12:57:42.253739 7f20a5a006c0 Level-0 table #10: 0 bytes OK
|
|
||||||
2024/05/31-12:57:42.260074 7f20a5a006c0 Delete type=0 #8
|
|
||||||
2024/05/31-12:57:42.279344 7f20a5a006c0 Manual compaction at level-0 from '!items!3GB0NAetYAVHIzmu' @ 72057594037927935 : 1 .. '!items!vHcRT3kQVWPHSz38' @ 0 : 0; will stop at '!items!vHcRT3kQVWPHSz38' @ 13 : 1
|
|
||||||
2024/05/31-12:57:42.279371 7f20a5a006c0 Compacting 1@0 + 0@1 files
|
|
||||||
2024/05/31-12:57:42.282723 7f20a5a006c0 Generated table #11@0: 13 keys, 7666 bytes
|
|
||||||
2024/05/31-12:57:42.282737 7f20a5a006c0 Compacted 1@0 + 0@1 files => 7666 bytes
|
|
||||||
2024/05/31-12:57:42.288596 7f20a5a006c0 compacted to: files[ 0 1 0 0 0 0 0 ]
|
|
||||||
2024/05/31-12:57:42.288688 7f20a5a006c0 Delete type=2 #5
|
|
||||||
2024/05/31-12:57:42.318921 7f20a5a006c0 Manual compaction at level-0 from '!items!vHcRT3kQVWPHSz38' @ 13 : 1 .. '!items!vHcRT3kQVWPHSz38' @ 0 : 0; will stop at (end)
|
|
@ -1,5 +0,0 @@
|
|||||||
2024/05/31-12:36:59.630199 7f04bf4006c0 Recovering log #3
|
|
||||||
2024/05/31-12:36:59.631365 7f04bf4006c0 Level-0 table #5: started
|
|
||||||
2024/05/31-12:36:59.641960 7f04bf4006c0 Level-0 table #5: 10948 bytes OK
|
|
||||||
2024/05/31-12:36:59.690838 7f04bf4006c0 Delete type=0 #3
|
|
||||||
2024/05/31-12:36:59.690928 7f04bf4006c0 Delete type=3 #2
|
|
Binary file not shown.
Binary file not shown.
@ -1 +0,0 @@
|
|||||||
MANIFEST-000007
|
|
@ -1,13 +0,0 @@
|
|||||||
2024/05/31-12:37:50.024957 7f20a6a006c0 Recovering log #6
|
|
||||||
2024/05/31-12:37:50.068244 7f20a6a006c0 Delete type=0 #6
|
|
||||||
2024/05/31-12:37:50.068393 7f20a6a006c0 Delete type=3 #4
|
|
||||||
2024/05/31-12:57:42.272250 7f20a5a006c0 Level-0 table #10: started
|
|
||||||
2024/05/31-12:57:42.272277 7f20a5a006c0 Level-0 table #10: 0 bytes OK
|
|
||||||
2024/05/31-12:57:42.279124 7f20a5a006c0 Delete type=0 #8
|
|
||||||
2024/05/31-12:57:42.308486 7f20a5a006c0 Manual compaction at level-0 from '!items!1Gj3ATIVykyAQ5fD' @ 72057594037927935 : 1 .. '!items!zMiaz2HLsddO22H3' @ 0 : 0; will stop at '!items!zMiaz2HLsddO22H3' @ 99 : 1
|
|
||||||
2024/05/31-12:57:42.308494 7f20a5a006c0 Compacting 1@0 + 0@1 files
|
|
||||||
2024/05/31-12:57:42.312365 7f20a5a006c0 Generated table #11@0: 99 keys, 58930 bytes
|
|
||||||
2024/05/31-12:57:42.312382 7f20a5a006c0 Compacted 1@0 + 0@1 files => 58930 bytes
|
|
||||||
2024/05/31-12:57:42.318551 7f20a5a006c0 compacted to: files[ 0 1 0 0 0 0 0 ]
|
|
||||||
2024/05/31-12:57:42.318708 7f20a5a006c0 Delete type=2 #5
|
|
||||||
2024/05/31-12:57:42.318989 7f20a5a006c0 Manual compaction at level-0 from '!items!zMiaz2HLsddO22H3' @ 99 : 1 .. '!items!zMiaz2HLsddO22H3' @ 0 : 0; will stop at (end)
|
|
@ -1,5 +0,0 @@
|
|||||||
2024/05/31-12:36:59.694104 7f04c4c006c0 Recovering log #3
|
|
||||||
2024/05/31-12:36:59.695341 7f04c4c006c0 Level-0 table #5: started
|
|
||||||
2024/05/31-12:37:00.103755 7f04c4c006c0 Level-0 table #5: 87512 bytes OK
|
|
||||||
2024/05/31-12:37:00.158532 7f04c4c006c0 Delete type=0 #3
|
|
||||||
2024/05/31-12:37:00.158786 7f04c4c006c0 Delete type=3 #2
|
|
Binary file not shown.
Binary file not shown.
@ -1 +0,0 @@
|
|||||||
MANIFEST-000007
|
|
@ -1,13 +0,0 @@
|
|||||||
2024/05/31-12:37:50.295525 7f20a7e006c0 Recovering log #6
|
|
||||||
2024/05/31-12:37:50.344755 7f20a7e006c0 Delete type=0 #6
|
|
||||||
2024/05/31-12:37:50.344847 7f20a7e006c0 Delete type=3 #4
|
|
||||||
2024/05/31-12:57:42.332388 7f20a5a006c0 Level-0 table #10: started
|
|
||||||
2024/05/31-12:57:42.332415 7f20a5a006c0 Level-0 table #10: 0 bytes OK
|
|
||||||
2024/05/31-12:57:42.338850 7f20a5a006c0 Delete type=0 #8
|
|
||||||
2024/05/31-12:57:42.365997 7f20a5a006c0 Manual compaction at level-0 from '!items!3o49zG4Xtc1I29j2' @ 72057594037927935 : 1 .. '!items!vDOAmovqE53dQzlh' @ 0 : 0; will stop at '!items!vDOAmovqE53dQzlh' @ 8 : 1
|
|
||||||
2024/05/31-12:57:42.366005 7f20a5a006c0 Compacting 1@0 + 0@1 files
|
|
||||||
2024/05/31-12:57:42.369253 7f20a5a006c0 Generated table #11@0: 8 keys, 7865 bytes
|
|
||||||
2024/05/31-12:57:42.369293 7f20a5a006c0 Compacted 1@0 + 0@1 files => 7865 bytes
|
|
||||||
2024/05/31-12:57:42.376725 7f20a5a006c0 compacted to: files[ 0 1 0 0 0 0 0 ]
|
|
||||||
2024/05/31-12:57:42.376841 7f20a5a006c0 Delete type=2 #5
|
|
||||||
2024/05/31-12:57:42.386385 7f20a5a006c0 Manual compaction at level-0 from '!items!vDOAmovqE53dQzlh' @ 8 : 1 .. '!items!vDOAmovqE53dQzlh' @ 0 : 0; will stop at (end)
|
|
@ -1,5 +0,0 @@
|
|||||||
2024/05/31-12:37:00.409789 7f04bfe006c0 Recovering log #3
|
|
||||||
2024/05/31-12:37:00.410672 7f04bfe006c0 Level-0 table #5: started
|
|
||||||
2024/05/31-12:37:00.432255 7f04bfe006c0 Level-0 table #5: 11820 bytes OK
|
|
||||||
2024/05/31-12:37:00.469946 7f04bfe006c0 Delete type=0 #3
|
|
||||||
2024/05/31-12:37:00.470035 7f04bfe006c0 Delete type=3 #2
|
|
Binary file not shown.
Binary file not shown.
@ -1 +0,0 @@
|
|||||||
MANIFEST-000007
|
|
@ -1,13 +0,0 @@
|
|||||||
2024/05/31-12:37:50.071905 7f20a7e006c0 Recovering log #6
|
|
||||||
2024/05/31-12:37:50.130041 7f20a7e006c0 Delete type=0 #6
|
|
||||||
2024/05/31-12:37:50.130137 7f20a7e006c0 Delete type=3 #4
|
|
||||||
2024/05/31-12:57:42.260202 7f20a5a006c0 Level-0 table #10: started
|
|
||||||
2024/05/31-12:57:42.260227 7f20a5a006c0 Level-0 table #10: 0 bytes OK
|
|
||||||
2024/05/31-12:57:42.266171 7f20a5a006c0 Delete type=0 #8
|
|
||||||
2024/05/31-12:57:42.288778 7f20a5a006c0 Manual compaction at level-0 from '!items!2ZUnK7mjIeizobUM' @ 72057594037927935 : 1 .. '!items!xZL7aO0xOOZvB2cs' @ 0 : 0; will stop at '!items!xZL7aO0xOOZvB2cs' @ 53 : 1
|
|
||||||
2024/05/31-12:57:42.288786 7f20a5a006c0 Compacting 1@0 + 0@1 files
|
|
||||||
2024/05/31-12:57:42.292530 7f20a5a006c0 Generated table #11@0: 53 keys, 14817 bytes
|
|
||||||
2024/05/31-12:57:42.292553 7f20a5a006c0 Compacted 1@0 + 0@1 files => 14817 bytes
|
|
||||||
2024/05/31-12:57:42.298878 7f20a5a006c0 compacted to: files[ 0 1 0 0 0 0 0 ]
|
|
||||||
2024/05/31-12:57:42.298975 7f20a5a006c0 Delete type=2 #5
|
|
||||||
2024/05/31-12:57:42.318947 7f20a5a006c0 Manual compaction at level-0 from '!items!xZL7aO0xOOZvB2cs' @ 53 : 1 .. '!items!xZL7aO0xOOZvB2cs' @ 0 : 0; will stop at (end)
|
|
@ -1,5 +0,0 @@
|
|||||||
2024/05/31-12:37:00.162792 7f04c56006c0 Recovering log #3
|
|
||||||
2024/05/31-12:37:00.163468 7f04c56006c0 Level-0 table #5: started
|
|
||||||
2024/05/31-12:37:00.172845 7f04c56006c0 Level-0 table #5: 21537 bytes OK
|
|
||||||
2024/05/31-12:37:00.220464 7f04c56006c0 Delete type=0 #3
|
|
||||||
2024/05/31-12:37:00.220541 7f04c56006c0 Delete type=3 #2
|
|
Binary file not shown.
Binary file not shown.
@ -1 +0,0 @@
|
|||||||
MANIFEST-000007
|
|
@ -1,13 +0,0 @@
|
|||||||
2024/05/31-12:37:50.189585 7f20a74006c0 Recovering log #6
|
|
||||||
2024/05/31-12:37:50.241798 7f20a74006c0 Delete type=0 #6
|
|
||||||
2024/05/31-12:37:50.241887 7f20a74006c0 Delete type=3 #4
|
|
||||||
2024/05/31-12:57:42.339058 7f20a5a006c0 Level-0 table #10: started
|
|
||||||
2024/05/31-12:57:42.339101 7f20a5a006c0 Level-0 table #10: 0 bytes OK
|
|
||||||
2024/05/31-12:57:42.345459 7f20a5a006c0 Delete type=0 #8
|
|
||||||
2024/05/31-12:57:42.376981 7f20a5a006c0 Manual compaction at level-0 from '!items!0OaXJm1iih3gYI6P' @ 72057594037927935 : 1 .. '!items!xbpEhhdqx4o5KUJA' @ 0 : 0; will stop at '!items!xbpEhhdqx4o5KUJA' @ 15 : 1
|
|
||||||
2024/05/31-12:57:42.376991 7f20a5a006c0 Compacting 1@0 + 0@1 files
|
|
||||||
2024/05/31-12:57:42.380150 7f20a5a006c0 Generated table #11@0: 15 keys, 1725 bytes
|
|
||||||
2024/05/31-12:57:42.380181 7f20a5a006c0 Compacted 1@0 + 0@1 files => 1725 bytes
|
|
||||||
2024/05/31-12:57:42.386148 7f20a5a006c0 compacted to: files[ 0 1 0 0 0 0 0 ]
|
|
||||||
2024/05/31-12:57:42.386245 7f20a5a006c0 Delete type=2 #5
|
|
||||||
2024/05/31-12:57:42.386396 7f20a5a006c0 Manual compaction at level-0 from '!items!xbpEhhdqx4o5KUJA' @ 15 : 1 .. '!items!xbpEhhdqx4o5KUJA' @ 0 : 0; will stop at (end)
|
|
@ -1,5 +0,0 @@
|
|||||||
2024/05/31-12:37:00.283664 7f04bf4006c0 Recovering log #3
|
|
||||||
2024/05/31-12:37:00.285227 7f04bf4006c0 Level-0 table #5: started
|
|
||||||
2024/05/31-12:37:00.295941 7f04bf4006c0 Level-0 table #5: 2524 bytes OK
|
|
||||||
2024/05/31-12:37:00.342228 7f04bf4006c0 Delete type=0 #3
|
|
||||||
2024/05/31-12:37:00.342291 7f04bf4006c0 Delete type=3 #2
|
|
Binary file not shown.
Binary file not shown.
@ -1 +0,0 @@
|
|||||||
MANIFEST-000007
|
|
@ -1,13 +0,0 @@
|
|||||||
2024/05/31-12:37:49.885012 7f20acc006c0 Recovering log #6
|
|
||||||
2024/05/31-12:37:49.948288 7f20acc006c0 Delete type=0 #6
|
|
||||||
2024/05/31-12:37:49.948350 7f20acc006c0 Delete type=3 #4
|
|
||||||
2024/05/31-12:57:42.266276 7f20a5a006c0 Level-0 table #10: started
|
|
||||||
2024/05/31-12:57:42.266304 7f20a5a006c0 Level-0 table #10: 0 bytes OK
|
|
||||||
2024/05/31-12:57:42.272138 7f20a5a006c0 Delete type=0 #8
|
|
||||||
2024/05/31-12:57:42.299102 7f20a5a006c0 Manual compaction at level-0 from '!items!0xlCQMyGIQJWPBM1' @ 72057594037927935 : 1 .. '!items!ukWyqxOnKGRp7Owm' @ 0 : 0; will stop at '!items!ukWyqxOnKGRp7Owm' @ 25 : 1
|
|
||||||
2024/05/31-12:57:42.299113 7f20a5a006c0 Compacting 1@0 + 0@1 files
|
|
||||||
2024/05/31-12:57:42.302367 7f20a5a006c0 Generated table #11@0: 25 keys, 11402 bytes
|
|
||||||
2024/05/31-12:57:42.302389 7f20a5a006c0 Compacted 1@0 + 0@1 files => 11402 bytes
|
|
||||||
2024/05/31-12:57:42.308292 7f20a5a006c0 compacted to: files[ 0 1 0 0 0 0 0 ]
|
|
||||||
2024/05/31-12:57:42.308373 7f20a5a006c0 Delete type=2 #5
|
|
||||||
2024/05/31-12:57:42.318969 7f20a5a006c0 Manual compaction at level-0 from '!items!ukWyqxOnKGRp7Owm' @ 25 : 1 .. '!items!ukWyqxOnKGRp7Owm' @ 0 : 0; will stop at (end)
|
|
@ -1,5 +0,0 @@
|
|||||||
2024/05/31-12:36:59.552707 7f04bfe006c0 Recovering log #3
|
|
||||||
2024/05/31-12:36:59.558358 7f04bfe006c0 Level-0 table #5: started
|
|
||||||
2024/05/31-12:36:59.579826 7f04bfe006c0 Level-0 table #5: 15330 bytes OK
|
|
||||||
2024/05/31-12:36:59.626405 7f04bfe006c0 Delete type=0 #3
|
|
||||||
2024/05/31-12:36:59.626466 7f04bfe006c0 Delete type=3 #2
|
|
Binary file not shown.
Binary file not shown.
@ -1 +0,0 @@
|
|||||||
MANIFEST-000007
|
|
@ -1,13 +0,0 @@
|
|||||||
2024/05/31-12:37:50.347603 7f20acc006c0 Recovering log #6
|
|
||||||
2024/05/31-12:37:50.403306 7f20acc006c0 Delete type=0 #6
|
|
||||||
2024/05/31-12:37:50.403397 7f20acc006c0 Delete type=3 #4
|
|
||||||
2024/05/31-12:57:42.397507 7f20a5a006c0 Level-0 table #10: started
|
|
||||||
2024/05/31-12:57:42.397541 7f20a5a006c0 Level-0 table #10: 0 bytes OK
|
|
||||||
2024/05/31-12:57:42.403638 7f20a5a006c0 Delete type=0 #8
|
|
||||||
2024/05/31-12:57:42.419891 7f20a5a006c0 Manual compaction at level-0 from '!items!0xmW2R5sieo5k4d9' @ 72057594037927935 : 1 .. '!items!xaHXF4xCPb598RYA' @ 0 : 0; will stop at '!items!xaHXF4xCPb598RYA' @ 8 : 1
|
|
||||||
2024/05/31-12:57:42.419910 7f20a5a006c0 Compacting 1@0 + 0@1 files
|
|
||||||
2024/05/31-12:57:42.423850 7f20a5a006c0 Generated table #11@0: 8 keys, 4158 bytes
|
|
||||||
2024/05/31-12:57:42.423886 7f20a5a006c0 Compacted 1@0 + 0@1 files => 4158 bytes
|
|
||||||
2024/05/31-12:57:42.430495 7f20a5a006c0 compacted to: files[ 0 1 0 0 0 0 0 ]
|
|
||||||
2024/05/31-12:57:42.430590 7f20a5a006c0 Delete type=2 #5
|
|
||||||
2024/05/31-12:57:42.436970 7f20a5a006c0 Manual compaction at level-0 from '!items!xaHXF4xCPb598RYA' @ 8 : 1 .. '!items!xaHXF4xCPb598RYA' @ 0 : 0; will stop at (end)
|
|
@ -1,5 +0,0 @@
|
|||||||
2024/05/31-12:37:00.473437 7f04bf4006c0 Recovering log #3
|
|
||||||
2024/05/31-12:37:00.473817 7f04bf4006c0 Level-0 table #5: started
|
|
||||||
2024/05/31-12:37:00.494156 7f04bf4006c0 Level-0 table #5: 6179 bytes OK
|
|
||||||
2024/05/31-12:37:00.530987 7f04bf4006c0 Delete type=0 #3
|
|
||||||
2024/05/31-12:37:00.531064 7f04bf4006c0 Delete type=3 #2
|
|
Binary file not shown.
Binary file not shown.
@ -1 +0,0 @@
|
|||||||
MANIFEST-000007
|
|
@ -1,13 +0,0 @@
|
|||||||
2024/05/31-12:37:50.133633 7f20acc006c0 Recovering log #6
|
|
||||||
2024/05/31-12:37:50.185827 7f20acc006c0 Delete type=0 #6
|
|
||||||
2024/05/31-12:37:50.185917 7f20acc006c0 Delete type=3 #4
|
|
||||||
2024/05/31-12:57:42.319061 7f20a5a006c0 Level-0 table #10: started
|
|
||||||
2024/05/31-12:57:42.319098 7f20a5a006c0 Level-0 table #10: 0 bytes OK
|
|
||||||
2024/05/31-12:57:42.325607 7f20a5a006c0 Delete type=0 #8
|
|
||||||
2024/05/31-12:57:42.345684 7f20a5a006c0 Manual compaction at level-0 from '!items!FxCIbJm3T44kC0sG' @ 72057594037927935 : 1 .. '!items!VDYXsT8AZ6krv93p' @ 0 : 0; will stop at '!items!VDYXsT8AZ6krv93p' @ 4 : 1
|
|
||||||
2024/05/31-12:57:42.345699 7f20a5a006c0 Compacting 1@0 + 0@1 files
|
|
||||||
2024/05/31-12:57:42.349053 7f20a5a006c0 Generated table #11@0: 4 keys, 837 bytes
|
|
||||||
2024/05/31-12:57:42.349088 7f20a5a006c0 Compacted 1@0 + 0@1 files => 837 bytes
|
|
||||||
2024/05/31-12:57:42.355720 7f20a5a006c0 compacted to: files[ 0 1 0 0 0 0 0 ]
|
|
||||||
2024/05/31-12:57:42.355816 7f20a5a006c0 Delete type=2 #5
|
|
||||||
2024/05/31-12:57:42.386362 7f20a5a006c0 Manual compaction at level-0 from '!items!VDYXsT8AZ6krv93p' @ 4 : 1 .. '!items!VDYXsT8AZ6krv93p' @ 0 : 0; will stop at (end)
|
|
@ -1,5 +0,0 @@
|
|||||||
2024/05/31-12:37:00.223304 7f04bfe006c0 Recovering log #3
|
|
||||||
2024/05/31-12:37:00.223338 7f04bfe006c0 Level-0 table #5: started
|
|
||||||
2024/05/31-12:37:00.234424 7f04bfe006c0 Level-0 table #5: 965 bytes OK
|
|
||||||
2024/05/31-12:37:00.281050 7f04bfe006c0 Delete type=0 #3
|
|
||||||
2024/05/31-12:37:00.281171 7f04bfe006c0 Delete type=3 #2
|
|
Binary file not shown.
15
system.json
15
system.json
@ -4,10 +4,11 @@
|
|||||||
"description": "Shadows over Sol for FoundryVTT",
|
"description": "Shadows over Sol for FoundryVTT",
|
||||||
"url": "https://www.uberwald.me/gitea/public/foundryvtt-shadows-over-sol/",
|
"url": "https://www.uberwald.me/gitea/public/foundryvtt-shadows-over-sol/",
|
||||||
"license": "LICENSE.txt",
|
"license": "LICENSE.txt",
|
||||||
"version": "12.0.0",
|
"version": "10.0.6",
|
||||||
"compatibility": {
|
"compatibility": {
|
||||||
"minimum": "11",
|
"minimum": "10",
|
||||||
"verified": "12"
|
"verified": "10.285",
|
||||||
|
"maximum": "10"
|
||||||
},
|
},
|
||||||
"esmodules": [
|
"esmodules": [
|
||||||
"module/sos-main.js"
|
"module/sos-main.js"
|
||||||
@ -108,9 +109,7 @@
|
|||||||
],
|
],
|
||||||
"socket": true,
|
"socket": true,
|
||||||
"manifest": "https://www.uberwald.me/gitea/public/foundryvtt-shadows-over-sol/raw/branch/v10/system.json",
|
"manifest": "https://www.uberwald.me/gitea/public/foundryvtt-shadows-over-sol/raw/branch/v10/system.json",
|
||||||
"download": "https://www.uberwald.me/gitea/public/foundryvtt-shadows-over-sol/archive/foundryvtt-shadows-over-sol-12.0.0.zip",
|
"download": "https://www.uberwald.me/gitea/public/foundryvtt-shadows-over-sol/archive/foundryvtt-shadows-over-sol-10.0.6.zip",
|
||||||
"grid": {
|
"gridDistance": 5,
|
||||||
"distance": 5,
|
"gridUnits": "ft"
|
||||||
"units": "ft"
|
|
||||||
}
|
|
||||||
}
|
}
|
@ -390,12 +390,12 @@
|
|||||||
<hr>
|
<hr>
|
||||||
<h3>Biography : </h3>
|
<h3>Biography : </h3>
|
||||||
<div class="form-group editor">
|
<div class="form-group editor">
|
||||||
{{editor history target="system.history" button=true owner=owner editable=editable}}
|
{{editor data.history target="system.history" button=true owner=owner editable=editable}}
|
||||||
</div>
|
</div>
|
||||||
<hr>
|
<hr>
|
||||||
<h3>Notes : </h3>
|
<h3>Notes : </h3>
|
||||||
<div class="form-group editor">
|
<div class="form-group editor">
|
||||||
{{editor notes target="system.notes" button=true owner=owner editable=editable}}
|
{{editor data.notes target="system.notes" button=true owner=owner editable=editable}}
|
||||||
</div>
|
</div>
|
||||||
<hr>
|
<hr>
|
||||||
{{>"systems/foundryvtt-shadows-over-sol/templates/editor-notes-gm.html"}}
|
{{>"systems/foundryvtt-shadows-over-sol/templates/editor-notes-gm.html"}}
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{{#if data.isGM}}
|
{{#if data.isGM}}
|
||||||
<h3>GM Notes : </h3>
|
<h3>GM Notes : </h3>
|
||||||
<div class="form-group editor">
|
<div class="form-group editor">
|
||||||
{{editor gmnotes target="system.gmnotes" button=true owner=owner editable=editable}}
|
{{editor data.gmnotes target="system.gmnotes" button=true owner=owner editable=editable}}
|
||||||
</div>
|
</div>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
@ -36,7 +36,7 @@
|
|||||||
<div class="flexcol">
|
<div class="flexcol">
|
||||||
<label class="generic-label">Description</label>
|
<label class="generic-label">Description</label>
|
||||||
<div class="form-group medium-editor">
|
<div class="form-group medium-editor">
|
||||||
{{editor description target="system.description" button=true owner=owner editable=editable}}
|
{{editor data.description target="system.description" button=true owner=owner editable=editable}}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -46,6 +46,6 @@
|
|||||||
<div class="flexcol">
|
<div class="flexcol">
|
||||||
<label class="generic-label">Description</label>
|
<label class="generic-label">Description</label>
|
||||||
<div class="form-group medium-editor">
|
<div class="form-group medium-editor">
|
||||||
{{editor description target="system.description" button=true owner=owner editable=editable}}
|
{{editor data.description target="system.description" button=true owner=owner editable=editable}}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -27,7 +27,7 @@
|
|||||||
<div class="flexcol">
|
<div class="flexcol">
|
||||||
<label class="generic-label">Description</label>
|
<label class="generic-label">Description</label>
|
||||||
<div class="form-group medium-editor">
|
<div class="form-group medium-editor">
|
||||||
{{editor description target="system.description" button=true owner=owner editable=editable}}
|
{{editor data.description target="system.description" button=true owner=owner editable=editable}}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -13,7 +13,7 @@
|
|||||||
<div class="flexcol">
|
<div class="flexcol">
|
||||||
<label class="generic-label">Description</label>
|
<label class="generic-label">Description</label>
|
||||||
<div class="form-group medium-editor">
|
<div class="form-group medium-editor">
|
||||||
{{editor description target="system.description" button=true owner=owner editable=editable}}
|
{{editor data.description target="system.description" button=true owner=owner editable=editable}}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="flexcol">
|
<div class="flexcol">
|
||||||
@ -31,7 +31,7 @@
|
|||||||
<div class="flexcol">
|
<div class="flexcol">
|
||||||
<label class="generic-label">Weakness</label>
|
<label class="generic-label">Weakness</label>
|
||||||
<div class="form-group small-editor">
|
<div class="form-group small-editor">
|
||||||
{{editor weakness target="system.weakness" button=true owner=owner editable=editable}}
|
{{editor data.weakness target="system.weakness" button=true owner=owner editable=editable}}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -17,7 +17,7 @@
|
|||||||
<div class="flexcol">
|
<div class="flexcol">
|
||||||
<label class="generic-label">Description</label>
|
<label class="generic-label">Description</label>
|
||||||
<div class="form-group medium-editor">
|
<div class="form-group medium-editor">
|
||||||
{{editor description target="system.description" button=true owner=owner editable=editable}}
|
{{editor data.description target="system.description" button=true owner=owner editable=editable}}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -13,7 +13,7 @@
|
|||||||
<div class="flexcol">
|
<div class="flexcol">
|
||||||
<label class="generic-label">Description</label>
|
<label class="generic-label">Description</label>
|
||||||
<div class="form-group medium-editor">
|
<div class="form-group medium-editor">
|
||||||
{{editor description target="system.description" button=true owner=owner editable=editable}}
|
{{editor data.description target="system.description" button=true owner=owner editable=editable}}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -24,7 +24,7 @@
|
|||||||
<div class="flexcol">
|
<div class="flexcol">
|
||||||
<label class="generic-label">Notes</label>
|
<label class="generic-label">Notes</label>
|
||||||
<div class="form-group medium-editor">
|
<div class="form-group medium-editor">
|
||||||
{{editor notes target="system.notes" button=true owner=owner editable=editable}}
|
{{editor data.notes target="system.notes" button=true owner=owner editable=editable}}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -27,7 +27,7 @@
|
|||||||
{{/each}}
|
{{/each}}
|
||||||
</ul>
|
</ul>
|
||||||
<label class="generic-label">Description</label>
|
<label class="generic-label">Description</label>
|
||||||
{{editor description target="system.description" button=true owner=owner editable=editable}}
|
{{editor data.description target="system.description" button=true owner=owner editable=editable}}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</section>
|
</section>
|
||||||
|
@ -25,7 +25,7 @@
|
|||||||
<div class="flexcol">
|
<div class="flexcol">
|
||||||
<label class="generic-label">Description</label>
|
<label class="generic-label">Description</label>
|
||||||
<div class="form-group medium-editor">
|
<div class="form-group medium-editor">
|
||||||
{{editor description target="system.description" button=true owner=owner editable=editable}}
|
{{editor data.description target="system.description" button=true owner=owner editable=editable}}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -13,7 +13,7 @@
|
|||||||
<div class="flexcol">
|
<div class="flexcol">
|
||||||
<label class="generic-label">Description</label>
|
<label class="generic-label">Description</label>
|
||||||
<div class="form-group medium-editor">
|
<div class="form-group medium-editor">
|
||||||
{{editor description target="system.description" button=true owner=owner editable=editable}}
|
{{editor data.description target="system.description" button=true owner=owner editable=editable}}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="flexcol">
|
<div class="flexcol">
|
||||||
|
@ -26,7 +26,7 @@
|
|||||||
<div class="flexcol">
|
<div class="flexcol">
|
||||||
<label class="generic-label">Description</label>
|
<label class="generic-label">Description</label>
|
||||||
<div class="form-group medium-editor">
|
<div class="form-group medium-editor">
|
||||||
{{editor description target="system.description" button=true owner=owner editable=editable}}
|
{{editor data.description target="system.description" button=true owner=owner editable=editable}}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
Reference in New Issue
Block a user