Foundry v13 migrtion

This commit is contained in:
LeRatierBretonnien 2025-05-02 18:58:29 +02:00
parent 15e249e41e
commit fef3e44941
80 changed files with 465 additions and 387 deletions

View File

@ -6,7 +6,7 @@
import { SoSUtility } from "./sos-utility.js"; import { SoSUtility } from "./sos-utility.js";
/* -------------------------------------------- */ /* -------------------------------------------- */
export class SoSActorSheet extends ActorSheet { export class SoSActorSheet extends foundry.appv1.sheets.ActorSheet {
/** @override */ /** @override */
static get defaultOptions() { static get defaultOptions() {
@ -47,14 +47,14 @@ export class SoSActorSheet extends ActorSheet {
formData.edgecard = this.actor.getEdgesCard(); formData.edgecard = this.actor.getEdgesCard();
formData.deckSize = this.actor.getDeckSize(); formData.deckSize = this.actor.getDeckSize();
formData.skills = this.actor.items.filter( item => item.type == 'skill').sort( (a, b) => { formData.skills = this.actor.items.filter( item => item.type == 'skill').sort( (a, b) => {
if ( a.name > b.name ) return 1; if ( a.name > b.name ) return 1;
return -1; return -1;
}); });
formData.skill1 = formData.skills.slice(0, Math.ceil(formData.skills.length/2) ) formData.skill1 = formData.skills.slice(0, Math.ceil(formData.skills.length/2) )
formData.skill2 = formData.skills.slice(Math.ceil(formData.skills.length/2), formData.skills.length ) formData.skill2 = formData.skills.slice(Math.ceil(formData.skills.length/2), formData.skills.length )
formData.consequences = this.actor.items.filter( item => item.type == 'consequence').sort( (a, b) => { formData.consequences = this.actor.items.filter( item => item.type == 'consequence').sort( (a, b) => {
if ( a.name > b.name ) return 1; if ( a.name > b.name ) return 1;
return -1; return -1;
}); });
@ -62,7 +62,7 @@ export class SoSActorSheet extends ActorSheet {
// Build the gear tree // Build the gear tree
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.system.contains = []
container.system.containerEnc = 0; container.system.containerEnc = 0;
@ -125,7 +125,7 @@ export class SoSActorSheet extends ActorSheet {
const item = this.actor.wornObject( li.data("item-id") ); const item = this.actor.wornObject( li.data("item-id") );
this.render(true); this.render(true);
}); });
// Delete Inventory Item // Delete Inventory Item
html.find('.item-delete').click(ev => { html.find('.item-delete').click(ev => {
const li = $(ev.currentTarget).parents(".item"); const li = $(ev.currentTarget).parents(".item");
@ -160,7 +160,7 @@ export class SoSActorSheet extends ActorSheet {
let woundName = event.currentTarget.attributes.woundname.value; let woundName = event.currentTarget.attributes.woundname.value;
//console.log("Competence changed :", skillName); //console.log("Competence changed :", skillName);
this.actor.updateWound(woundName, parseInt(event.target.value)); this.actor.updateWound(woundName, parseInt(event.target.value));
}); });
html.find('.reset-deck-full').click((event) => { html.find('.reset-deck-full').click((event) => {
this.actor.resetDeckFull(); this.actor.resetDeckFull();
this.render(true); this.render(true);
@ -187,13 +187,13 @@ export class SoSActorSheet extends ActorSheet {
html.find('.lock-unlock-sheet').click((event) => { html.find('.lock-unlock-sheet').click((event) => {
this.options.editStatSkill = !this.options.editStatSkill; this.options.editStatSkill = !this.options.editStatSkill;
this.render(true); this.render(true);
}); });
html.find('.item-link a').click((event) => { html.find('.item-link a').click((event) => {
const itemId = $(event.currentTarget).data("item-id"); const itemId = $(event.currentTarget).data("item-id");
const item = this.actor.getOwnedItem(itemId); const item = this.actor.getOwnedItem(itemId);
item.sheet.render(true); item.sheet.render(true);
}); });
} }
/* -------------------------------------------- */ /* -------------------------------------------- */
@ -203,7 +203,7 @@ export class SoSActorSheet extends ActorSheet {
super._onDrop(event); super._onDrop(event);
} }
} }
/* -------------------------------------------- */ /* -------------------------------------------- */
/** @override */ /** @override */
setPosition(options = {}) { setPosition(options = {}) {

View File

@ -14,8 +14,8 @@ export class SoSActor extends Actor {
/** /**
* Override the create() function to provide additional SoS functionality. * Override the create() function to provide additional SoS functionality.
* *
* This overrided create() function adds initial items * This overrided create() function adds initial items
* Namely: Basic skills, money, * Namely: Basic skills, money,
* *
* @param {Object} data Barebones actor data which this function adds onto. * @param {Object} data Barebones actor data which this function adds onto.
* @param {Object} options (Unused) Additional options which customize the creation workflow. * @param {Object} options (Unused) Additional options which customize the creation workflow.
@ -64,7 +64,7 @@ export class SoSActor extends Actor {
if ( !this.system.cardDeck && this.hasPlayerOwner ) { if ( !this.system.cardDeck && this.hasPlayerOwner ) {
this.system.cardDeck = new SoSCardDeck(); this.system.cardDeck = new SoSCardDeck();
this.system.cardDeck.initCardDeck( this, this.system.internals.deck ); this.system.cardDeck.initCardDeck( this, this.system.internals.deck );
} }
if ( !this.hasPlayerOwner ) { if ( !this.hasPlayerOwner ) {
this.system.cardDeck = game.system.sos.gmDeck.GMdeck; this.system.cardDeck = game.system.sos.gmDeck.GMdeck;
console.log("DECK : ", this.system.cardDeck); console.log("DECK : ", this.system.cardDeck);
@ -91,28 +91,28 @@ export class SoSActor extends Actor {
this.saveDeck(); this.saveDeck();
} }
/* -------------------------------------------- */ /* -------------------------------------------- */
drawNewEdge( ) { drawNewEdge( ) {
this.system.cardDeck.drawEdge( 1 ); this.system.cardDeck.drawEdge( 1 );
this.saveDeck(); this.saveDeck();
} }
/* -------------------------------------------- */ /* -------------------------------------------- */
discardEdge( cardName ) { discardEdge( cardName ) {
this.system.cardDeck.discardEdge( cardName ); this.system.cardDeck.discardEdge( cardName );
this.saveDeck(); this.saveDeck();
} }
/* -------------------------------------------- */ /* -------------------------------------------- */
resetDeck( ) { resetDeck( ) {
this.system.cardDeck.resetDeck(); this.system.cardDeck.resetDeck();
this.saveDeck(); this.saveDeck();
} }
/* -------------------------------------------- */ /* -------------------------------------------- */
saveDeck( ) { saveDeck( ) {
let deck = { deck: foundry.utils.duplicate(this.system.cardDeck.data.deck), let deck = { deck: foundry.utils.duplicate(this.system.cardDeck.data.deck),
discard: foundry.utils.duplicate(this.system.cardDeck.data.discard), discard: foundry.utils.duplicate(this.system.cardDeck.data.discard),
cardEdge: foundry.utils.duplicate(this.system.cardDeck.data.cardEdge) cardEdge: foundry.utils.duplicate(this.system.cardDeck.data.cardEdge)
} }
if ( this.hasPlayerOwner ) { if ( this.hasPlayerOwner ) {
this.update( { 'system.internals.deck': deck }); this.update( { 'system.internals.deck': deck });
@ -123,22 +123,22 @@ export class SoSActor extends Actor {
/* -------------------------------------------- */ /* -------------------------------------------- */
getDefense( ) { getDefense( ) {
return this.system.scores.defense; return this.system.scores.defense;
} }
/* -------------------------------------------- */ /* -------------------------------------------- */
computeDefense() { computeDefense() {
return { value: Math.ceil((this.system.stats.speed.value + this.system.stats.perception.value + this.system.stats.dexterity.value) / 2) + this.system.scores.defense.bonusmalus, return { value: Math.ceil((this.system.stats.speed.value + this.system.stats.perception.value + this.system.stats.dexterity.value) / 2) + this.system.scores.defense.bonusmalus,
critical: this.system.stats.speed.value + this.system.stats.perception.value + this.system.stats.dexterity.value + this.system.scores.defense.bonusmalus critical: this.system.stats.speed.value + this.system.stats.perception.value + this.system.stats.dexterity.value + this.system.scores.defense.bonusmalus
} }
} }
/* -------------------------------------------- */ /* -------------------------------------------- */
getEdge( ) { getEdge( ) {
return this.system.scores.edge.value; return this.system.scores.edge.value;
} }
/* -------------------------------------------- */ /* -------------------------------------------- */
getEncumbrance( ) { getEncumbrance( ) {
return this.system.scores.encumbrance.value; return this.system.scores.encumbrance.value;
} }
computeEncumbrance( ) { computeEncumbrance( ) {
return this.system.stats.strength.value + this.system.scores.encumbrance.bonusmalus; return this.system.stats.strength.value + this.system.scores.encumbrance.bonusmalus;
} }
@ -161,7 +161,7 @@ export class SoSActor extends Actor {
computeWound() { computeWound() {
return Math.ceil( (this.system.stats.strength.value + this.system.stats.endurance.value) / 2) + this.system.scores.wound.bonusmalus; return Math.ceil( (this.system.stats.strength.value + this.system.stats.endurance.value) / 2) + this.system.scores.wound.bonusmalus;
} }
/* -------------------------------------------- */ /* -------------------------------------------- */
getSkillExperience( skillName ) { getSkillExperience( skillName ) {
return this.items.filter( item => item.type == 'skillexperience' && item.system.skill == skillName); return this.items.filter( item => item.type == 'skillexperience' && item.system.skill == skillName);
@ -170,21 +170,21 @@ export class SoSActor extends Actor {
/* -------------------------------------------- */ /* -------------------------------------------- */
async wornObject( itemID) { async wornObject( itemID) {
let item = this.items.get(itemID); let item = this.items.get(itemID);
if (item && item.system) { if (item?.system) {
let update = { _id: item.id, "system.worn": !item.system.worn }; let update = { _id: item.id, "system.worn": !item.system.worn };
await this.updateEmbeddedDocuments("Item", [update]); await this.updateEmbeddedDocuments("Item", [update]);
} }
} }
/* -------------------------------------------- */ /* -------------------------------------------- */
async equipObject(itemID) { async equipObject(itemID) {
let item = this.items.get(itemID) let item = this.items.get(itemID)
if (item && item.system) { if (item?.system) {
let update = { _id: item.id, "system.equiped": !item.system.equiped }; let update = { _id: item.id, "system.equiped": !item.system.equiped };
await this.updateEmbeddedDocuments("Item", [update]); await this.updateEmbeddedDocuments("Item", [update]);
} }
} }
/* -------------------------------------------- */ /* -------------------------------------------- */
async controlScores() { async controlScores() {
// Defense check // Defense check
@ -257,10 +257,10 @@ export class SoSActor extends Actor {
bonusConsequence: 0, bonusConsequence: 0,
woundMalus: 0 woundMalus: 0
} }
let html = await renderTemplate('systems/foundryvtt-shadows-over-sol/templates/dialog-flip.html', flipData); let html = await foundry.applications.handlebars.renderTemplate('systems/foundryvtt-shadows-over-sol/templates/dialog-flip.html', flipData);
new SoSFlipDialog(flipData, html).render(true); new SoSFlipDialog(flipData, html).render(true);
} }
/* -------------------------------------------- */ /* -------------------------------------------- */
async rollSkill( skill ) { async rollSkill( skill ) {
let flipData = { let flipData = {
@ -280,10 +280,10 @@ export class SoSActor extends Actor {
bonusSkillXP: 0 bonusSkillXP: 0
} }
flipData.statList['nostat'] = { label: "No stat (ie defaulting skills)", value: 0, cardsuit: "none" } flipData.statList['nostat'] = { label: "No stat (ie defaulting skills)", value: 0, cardsuit: "none" }
let html = await renderTemplate('systems/foundryvtt-shadows-over-sol/templates/dialog-flip.html', flipData); let html = await foundry.applications.handlebars.renderTemplate('systems/foundryvtt-shadows-over-sol/templates/dialog-flip.html', flipData);
new SoSFlipDialog(flipData, html).render(true); new SoSFlipDialog(flipData, html).render(true);
} }
/* -------------------------------------------- */ /* -------------------------------------------- */
async rollWeapon( weapon ) { async rollWeapon( weapon ) {
let target = SoSUtility.getTarget(); let target = SoSUtility.getTarget();
@ -321,7 +321,7 @@ export class SoSActor extends Actor {
console.log(flipData); console.log(flipData);
flipData.statList['nostat'] = { label: "No stat (ie defaulting skills)", value: 0, cardsuit: "none" } flipData.statList['nostat'] = { label: "No stat (ie defaulting skills)", value: 0, cardsuit: "none" }
let html = await renderTemplate('systems/foundryvtt-shadows-over-sol/templates/dialog-flip.html', flipData); let html = await foundry.applications.handlebars.renderTemplate('systems/foundryvtt-shadows-over-sol/templates/dialog-flip.html', flipData);
new SoSFlipDialog(flipData, html).render(true); new SoSFlipDialog(flipData, html).render(true);
} }
@ -329,12 +329,12 @@ export class SoSActor extends Actor {
async checkDeath( ) { async checkDeath( ) {
if ( this.system.scores.currentwounds.value >= this.system.scores.wound.value*2) { if ( this.system.scores.currentwounds.value >= this.system.scores.wound.value*2) {
let woundData = { let woundData = {
name: this.name, name: this.name,
wounds: this.system.wounds, wounds: this.system.wounds,
currentWounds: this.system.scores.currentwounds.value, currentWounds: this.system.scores.currentwounds.value,
totalWounds: this.system.scores.wound.value totalWounds: this.system.scores.wound.value
} }
let html = await renderTemplate('systems/foundryvtt-shadows-over-sol/templates/chat-character-death.html', woundData ); let html = await foundry.applications.handlebars.renderTemplate('systems/foundryvtt-shadows-over-sol/templates/chat-character-death.html', woundData );
ChatMessage.create( { content: html, whisper: ChatMessage.getWhisperRecipients(this.name).concat(ChatMessage.getWhisperRecipients("GM") ) } ) ChatMessage.create( { content: html, whisper: ChatMessage.getWhisperRecipients(this.name).concat(ChatMessage.getWhisperRecipients("GM") ) } )
} }
} }
@ -360,15 +360,15 @@ export class SoSActor extends Actor {
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 } );
let woundData = { let woundData = {
name: this.name, name: this.name,
consequenceName: consequenceName, consequenceName: consequenceName,
severity: severity, severity: severity,
wounds: wounds, wounds: wounds,
currentWounds: sumWound, currentWounds: sumWound,
totalWounds: this.system.scores.wound.value totalWounds: this.system.scores.wound.value
} }
let html = await renderTemplate('systems/foundryvtt-shadows-over-sol/templates/chat-damage-consequence.html', woundData ); let html = await foundry.applications.handlebars.renderTemplate('systems/foundryvtt-shadows-over-sol/templates/chat-damage-consequence.html', woundData );
ChatMessage.create( { content: html, whisper: ChatMessage.getWhisperRecipients(this.name).concat(ChatMessage.getWhisperRecipients("GM")) } ) ChatMessage.create( { content: html, whisper: ChatMessage.getWhisperRecipients(this.name).concat(ChatMessage.getWhisperRecipients("GM")) } )
this.checkDeath(); this.checkDeath();
@ -387,10 +387,10 @@ export class SoSActor extends Actor {
let alreadyInside = this.items.filter( item => item.system.containerid && item.system.containerid == containerId); let alreadyInside = this.items.filter( item => item.system.containerid && item.system.containerid == containerId);
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 ) setTimeout(function() { this.updateEmbeddedDocuments( "Item", [{ _id: object.id, 'system.containerid':containerId }])}, 800 )
} }
} else if ( object && object.system.containerid) { // remove from container } else if ( object?.system?.containerid) { // remove from container
setTimeout(function() { this.updateEmbeddedDocuments( "Item", [{ _id: object.id, 'system.containerid':"" }])}, 800 ) setTimeout(function() { this.updateEmbeddedDocuments( "Item", [{ _id: object.id, 'system.containerid':"" }])}, 800 )
} }
} }
@ -398,8 +398,8 @@ export class SoSActor extends Actor {
/* -------------------------------------------- */ /* -------------------------------------------- */
async applyWounds( flipData ) { async applyWounds( flipData ) {
if ( flipData.damageStatus == 'no_damage') { if ( flipData.damageStatus == 'no_damage') {
let html = await renderTemplate('systems/foundryvtt-shadows-over-sol/templates/chat-nodamage-taken.html', flipData ); let html = await foundry.applications.handlebars.renderTemplate('systems/foundryvtt-shadows-over-sol/templates/chat-nodamage-taken.html', flipData );
ChatMessage.create( { content: html, whisper: ChatMessage.getWhisperRecipients(this.name).concat(ChatMessage.getWhisperRecipients("GM")) } ); ChatMessage.create( { content: html, whisper: ChatMessage.getWhisperRecipients(this.name).concat(ChatMessage.getWhisperRecipients("GM")) } );
return; return;
} }
@ -436,7 +436,7 @@ export class SoSActor extends Actor {
flipData.wounds = wounds; flipData.wounds = wounds;
flipData.currentWounds = sumWound; flipData.currentWounds = sumWound;
flipData.totalWounds = this.system.scores.wound.value; flipData.totalWounds = this.system.scores.wound.value;
let html = await renderTemplate('systems/foundryvtt-shadows-over-sol/templates/chat-damage-taken.html', flipData ); let html = await foundry.applications.handlebars.renderTemplate('systems/foundryvtt-shadows-over-sol/templates/chat-damage-taken.html', flipData );
ChatMessage.create( { content: html, whisper: ChatMessage.getWhisperRecipients(this.name).concat(ChatMessage.getWhisperRecipients("GM")) } ); ChatMessage.create( { content: html, whisper: ChatMessage.getWhisperRecipients(this.name).concat(ChatMessage.getWhisperRecipients("GM")) } );
this.checkDeath(); this.checkDeath();

View File

@ -4,7 +4,7 @@ import { SoSUtility } from "./sos-utility.js";
* Extend the basic ItemSheet with some very simple modifications * Extend the basic ItemSheet with some very simple modifications
* @extends {ItemSheet} * @extends {ItemSheet}
*/ */
export class SoSItemSheet extends ItemSheet { export class SoSItemSheet extends foundry.appv1.sheets.ItemSheet {
/** @override */ /** @override */
static get defaultOptions() { static get defaultOptions() {
@ -40,7 +40,7 @@ export class SoSItemSheet extends ItemSheet {
sheetBody.css("height", bodyHeight); sheetBody.css("height", bodyHeight);
return position; return position;
} }
/* -------------------------------------------- */ /* -------------------------------------------- */
async getData() { async getData() {
const objectData = this.object const objectData = this.object
@ -60,7 +60,7 @@ export class SoSItemSheet extends ItemSheet {
description: await TextEditor.enrichHTML(this.object.system.description, {async: true}), description: await TextEditor.enrichHTML(this.object.system.description, {async: true}),
}; };
formData.isGM = game.user.isGM; formData.isGM = game.user.isGM;
if ( objectData.type == 'skillexperience') { if ( objectData.type == 'skillexperience') {
formData.skillList = await SoSUtility.loadCompendiumNames("foundryvtt-shadows-over-sol.skills") formData.skillList = await SoSUtility.loadCompendiumNames("foundryvtt-shadows-over-sol.skills")
} }
@ -68,14 +68,14 @@ export class SoSItemSheet extends ItemSheet {
formData.skillExperienceList = this.object.options.actor.getSkillExperience( objectData.name ) formData.skillExperienceList = this.object.options.actor.getSkillExperience( objectData.name )
} }
if ( objectData.type == 'geneline') { if ( objectData.type == 'geneline') {
formData.weakness = await TextEditor.enrichHTML(this.object.system.weakness, {async: true}) formData.weakness = await TextEditor.enrichHTML(this.object.system.weakness, {async: true})
} }
if ( objectData.type == 'malady') { if ( objectData.type == 'malady') {
formData.notes = await TextEditor.enrichHTML(this.object.system.notes, {async: true}) formData.notes = await TextEditor.enrichHTML(this.object.system.notes, {async: true})
} }
return formData; return formData;
} }
/* -------------------------------------------- */ /* -------------------------------------------- */
/** @override */ /** @override */
activateListeners(html) { activateListeners(html) {
@ -83,7 +83,7 @@ export class SoSItemSheet extends ItemSheet {
// Everything below here is only needed if the sheet is editable // Everything below here is only needed if the sheet is editable
if (!this.options.editable) return; if (!this.options.editable) return;
// Update Inventory Item // Update Inventory Item
html.find('.item-edit').click(ev => { html.find('.item-edit').click(ev => {
const li = $(ev.currentTarget).parents(".item"); const li = $(ev.currentTarget).parents(".item");
@ -95,9 +95,9 @@ export class SoSItemSheet extends ItemSheet {
const li = $(ev.currentTarget).parents(".item"); const li = $(ev.currentTarget).parents(".item");
this.object.options.actor.deleteOwnedItem( li.data("item-id") ).then( this.render(true)); this.object.options.actor.deleteOwnedItem( li.data("item-id") ).then( this.render(true));
}); });
} }
/* -------------------------------------------- */ /* -------------------------------------------- */
get template() get template()
{ {

View File

@ -5,30 +5,30 @@ const NB_POKER_CARD = 54;
const IDX2CARDFAMILY = ['c', 'd', 'h', 's']; const IDX2CARDFAMILY = ['c', 'd', 'h', 's'];
/* -------------------------------------------- */ /* -------------------------------------------- */
export class SoSCardDeck { export class SoSCardDeck {
/* -------------------------------------------- */ /* -------------------------------------------- */
async initCardDeck(actor, savedDeck = undefined ) { async initCardDeck(actor, savedDeck = undefined) {
this.data = {}; this.data = {};
this.data.deck = []; this.data.deck = [];
this.data.discard = []; this.data.discard = [];
this.data.cardState = []; this.data.cardState = [];
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 = foundry.utils.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 = foundry.utils.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 = foundry.utils.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(); await this.shuffleDeck();
} }
} }
@ -38,58 +38,56 @@ export class SoSCardDeck {
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 = Math.floor(Math.random() * 55);
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' });
} else if (idx == 54) { // Black Joker } else if (idx == 54) { // Black Joker
this.data.deck.push({ cardName: 'jb' }); this.data.deck.push({ cardName: 'jb' });
} else { } else {
let familyIdx = idx % 4; let familyIdx = idx % 4;
let cardIdx = String( (idx % 13) + 1); let cardIdx = String((idx % 13) + 1);
cardIdx = (cardIdx.length < 2) ? "0"+cardIdx: cardIdx; cardIdx = (cardIdx.length < 2) ? "0" + cardIdx : cardIdx;
let cardName = IDX2CARDFAMILY[familyIdx] + cardIdx; let cardName = IDX2CARDFAMILY[familyIdx] + cardIdx;
this.data.deck.push( { cardName: cardName } ); this.data.deck.push({ cardName: cardName });
} }
this.data.cardState[idx - 1] = true; this.data.cardState[idx - 1] = true;
} }
} }
} }
/* -------------------------------------------- */ /* -------------------------------------------- */
async resetDeck() { async resetDeck() {
let newdeck = foundry.utils.duplicate(this.data.deck).concat( foundry.utils.duplicate (this.data.discard) ) let newdeck = foundry.utils.duplicate(this.data.deck).concat(foundry.utils.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
let cardState = [] let cardState = []
for (let i = 0; i <decklen; i++) { for (let i = 0; i < decklen; i++) {
cardState[i] = false cardState[i] = false
} }
// 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 = Math.floor(Math.random() * (decklen + 1));
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])
} }
cardState[idx-1] = true cardState[idx - 1] = true
} }
} }
/* -------------------------------------------- */
discardEdge( cardName ) {
let newEdge = this.data.cardEdge.filter( card => card.cardName != cardName);
this.data.cardEdge = newEdge; // New edge list
this.data.discard.push( { cardName: cardName }); // And push in the discard pile
}
/* -------------------------------------------- */ /* -------------------------------------------- */
drawEdge( edgeNumber = 1 ) { discardEdge(cardName) {
for (let i=0; i<edgeNumber; i++) { let newEdge = this.data.cardEdge.filter(card => card.cardName != cardName);
this.data.cardEdge.push( this.data.deck.pop() ); this.data.cardEdge = newEdge; // New edge list
this.data.discard.push({ cardName: cardName }); // And push in the discard pile
}
/* -------------------------------------------- */
drawEdge(edgeNumber = 1) {
for (let i = 0; i < edgeNumber; i++) {
this.data.cardEdge.push(this.data.deck.pop());
console.log("DRAW EDGE", this.data.cardEdge); console.log("DRAW EDGE", this.data.cardEdge);
} }
} }
@ -110,133 +108,133 @@ export class SoSCardDeck {
} }
/* -------------------------------------------- */ /* -------------------------------------------- */
getCardSuit( cardName ) { getCardSuit(cardName) {
if ( cardName[0] == 'c') return 'club'; if (cardName[0] == 'c') return 'club';
if ( cardName[0] == 'd') return 'diamond'; if (cardName[0] == 'd') return 'diamond';
if ( cardName[0] == 'h') return 'hearts'; if (cardName[0] == 'h') return 'hearts';
if ( cardName[0] == 's') return 'spade'; if (cardName[0] == 's') return 'spade';
if ( cardName[0] == 'j') return 'joker'; if (cardName[0] == 'j') return 'joker';
} }
/* -------------------------------------------- */ /* -------------------------------------------- */
drawFromDeck() { drawFromDeck() {
let card = this.data.deck.pop(); let card = this.data.deck.pop();
this.data.discard.push( card ); this.data.discard.push(card);
return card; return card;
} }
/* -------------------------------------------- */ /* -------------------------------------------- */
getFromEdge( cardName) { getFromEdge(cardName) {
let card = this.data.cardEdge.find( card => card.cardName == cardName); // Get the card let card = this.data.cardEdge.find(card => card.cardName == cardName); // Get the card
let newEdge = this.data.cardEdge.filter(card => card.cardName != cardName); // Remove used card let newEdge = this.data.cardEdge.filter(card => card.cardName != cardName); // Remove used card
this.data.cardEdge = newEdge; this.data.cardEdge = newEdge;
return card; return card;
} }
/* -------------------------------------------- */ /* -------------------------------------------- */
getCardValue( cardName ) { getCardValue(cardName) {
console.log(cardName); console.log(cardName);
if (cardName[0] == 'j' ) return 0; // Joker case if (cardName[0] == 'j') return 0; // Joker case
let parsed = cardName.match( /\w(\d\d)/i ); let parsed = cardName.match(/\w(\d\d)/i);
let value = Number( parsed[1] ); let value = Number(parsed[1]);
if ( value > 10 ) value -= 10; if (value > 10) value -= 10;
return value; return value;
} }
/* -------------------------------------------- */ /* -------------------------------------------- */
isCardFace(cardName) { isCardFace(cardName) {
if (cardName[0] == 'j' ) return false; // Joker case if (cardName[0] == 'j') return false; // Joker case
let parsed = cardName.match( /\w(\d\d)/i ); let parsed = cardName.match(/\w(\d\d)/i);
let value = Number( parsed[1] ); let value = Number(parsed[1]);
return (value > 10) ? true : false; return (value > 10);
} }
/* -------------------------------------------- */ /* -------------------------------------------- */
setJoker( flipData ) { setJoker(flipData) {
console.log("THIS IS A JOKER !!!!"); console.log("THIS IS A JOKER !!!!");
flipData.cardSlot[0].total = 0; flipData.cardSlot[0].total = 0;
flipData.cardSlot[0].card1Path = `systems/foundryvtt-shadows-over-sol/img/cards/${flipData.cardSlot[0].card1.cardName}.webp`; flipData.cardSlot[0].card1Path = `systems/foundryvtt-shadows-over-sol/img/cards/${flipData.cardSlot[0].card1.cardName}.webp`;
flipData.isJoker = true; flipData.isJoker = true;
} }
/* -------------------------------------------- */ /* -------------------------------------------- */
isJoker( cardName) { isJoker(cardName) {
return cardName[0] == 'j'; return cardName[0] == 'j';
} }
/* -------------------------------------------- */ /* -------------------------------------------- */
async doFlipFromDeckOrEdge( flipData ) { async doFlipFromDeckOrEdge(flipData) {
flipData.cardSlot = [ { total: 0}]; flipData.cardSlot = [{ total: 0 }];
flipData.isTrump = false; flipData.isTrump = false;
flipData.isJoker = false; flipData.isJoker = false;
flipData.fullTrump = false; flipData.fullTrump = false;
if ( flipData.edgeLuck ) { if (flipData.edgeLuck) {
flipData.cardOrigin == "Deck"; // Force Deck flipData.cardOrigin = "Deck"; // Force Deck
} }
// Select card origin // Select card origin
if ( flipData.cardOrigin == "Deck") { if (flipData.cardOrigin == "Deck") {
flipData.cardSlot[0].card1 = this.drawFromDeck(); flipData.cardSlot[0].card1 = this.drawFromDeck();
} else { } else {
flipData.cardSlot[0].card1 = this.getFromEdge( flipData.edgeName ); flipData.cardSlot[0].card1 = this.getFromEdge(flipData.edgeName);
} }
let cardsuit = this.getCardSuit(flipData.cardSlot[0].card1.cardName); let cardsuit = this.getCardSuit(flipData.cardSlot[0].card1.cardName);
if ( cardsuit == 'joker' ) { if (cardsuit == 'joker') {
this.setJoker( flipData ); this.setJoker(flipData);
} else { } else {
//console.log("First card : ", flipData.cardSlot[0].card1); //console.log("First card : ", flipData.cardSlot[0].card1);
// Face check for first card // Face check for first card
flipData.cardSlot[0].value1 = this.getCardValue(flipData.cardSlot[0].card1.cardName); flipData.cardSlot[0].value1 = this.getCardValue(flipData.cardSlot[0].card1.cardName);
flipData.cardSlot[0].isFace1 = this.isCardFace(flipData.cardSlot[0].card1.cardName); flipData.cardSlot[0].isFace1 = this.isCardFace(flipData.cardSlot[0].card1.cardName);
flipData.cardSlot[0].card1Path = `systems/foundryvtt-shadows-over-sol/img/cards/${flipData.cardSlot[0].card1.cardName}.webp`; flipData.cardSlot[0].card1Path = `systems/foundryvtt-shadows-over-sol/img/cards/${flipData.cardSlot[0].card1.cardName}.webp`;
flipData.cardSlot[0].card2 = false; flipData.cardSlot[0].card2 = false;
if ( flipData.cardSlot[0].isFace1 ) { if (flipData.cardSlot[0].isFace1) {
flipData.cardSlot[0].card2 = this.drawFromDeck(); flipData.cardSlot[0].card2 = this.drawFromDeck();
flipData.isJoker = this.isJoker(flipData.cardSlot[0].card2.cardName); flipData.isJoker = this.isJoker(flipData.cardSlot[0].card2.cardName);
flipData.cardSlot[0].value2 = this.getCardValue(flipData.cardSlot[0].card2.cardName); flipData.cardSlot[0].value2 = this.getCardValue(flipData.cardSlot[0].card2.cardName);
flipData.cardSlot[0].isFace2 = this.isCardFace(flipData.cardSlot[0].card2.cardName); flipData.cardSlot[0].isFace2 = this.isCardFace(flipData.cardSlot[0].card2.cardName);
flipData.cardSlot[0].card2Path = `systems/foundryvtt-shadows-over-sol/img/cards/${flipData.cardSlot[0].card2.cardName}.webp`; flipData.cardSlot[0].card2Path = `systems/foundryvtt-shadows-over-sol/img/cards/${flipData.cardSlot[0].card2.cardName}.webp`;
} else { } else {
flipData.cardSlot[0].value2 = 0; // Safe init flipData.cardSlot[0].value2 = 0; // Safe init
} }
flipData.cardSlot[0].total = flipData.cardSlot[0].value1 + flipData.cardSlot[0].value2; flipData.cardSlot[0].total = flipData.cardSlot[0].value1 + flipData.cardSlot[0].value2;
// Trump check // Trump check
flipData.cardSlot[0].cardsuit = cardsuit; flipData.cardSlot[0].cardsuit = cardsuit;
if ( !flipData.isJoker && ( cardsuit == flipData.stat.cardsuit || flipData.edgeLuck) ) { if (!flipData.isJoker && (cardsuit == flipData.stat.cardsuit || flipData.edgeLuck)) {
// This is a trump ! // This is a trump !
flipData.cardSlot[1] = { total: 0 }; flipData.cardSlot[1] = { total: 0 };
flipData.isTrump = true; flipData.isTrump = true;
flipData.cardSlot[1].card1 = this.drawFromDeck(); flipData.cardSlot[1].card1 = this.drawFromDeck();
flipData.isJoker = this.isJoker(flipData.cardSlot[1].card1.cardName); flipData.isJoker = this.isJoker(flipData.cardSlot[1].card1.cardName);
flipData.cardSlot[1].card1Path = `systems/foundryvtt-shadows-over-sol/img/cards/${flipData.cardSlot[1].card1.cardName}.webp`; flipData.cardSlot[1].card1Path = `systems/foundryvtt-shadows-over-sol/img/cards/${flipData.cardSlot[1].card1.cardName}.webp`;
flipData.cardSlot[1].cardsuit = this.getCardSuit(flipData.cardSlot[1].card1.cardName); flipData.cardSlot[1].cardsuit = this.getCardSuit(flipData.cardSlot[1].card1.cardName);
flipData.cardSlot[1].value1 = this.getCardValue(flipData.cardSlot[1].card1.cardName); flipData.cardSlot[1].value1 = this.getCardValue(flipData.cardSlot[1].card1.cardName);
flipData.cardSlot[1].isFace1 = this.isCardFace(flipData.cardSlot[1].card1.cardName); flipData.cardSlot[1].isFace1 = this.isCardFace(flipData.cardSlot[1].card1.cardName);
if ( !flipData.isJoker && flipData.cardSlot[1].isFace1 ) { if (!flipData.isJoker && flipData.cardSlot[1].isFace1) {
flipData.cardSlot[1].card2 = this.drawFromDeck(); flipData.cardSlot[1].card2 = this.drawFromDeck();
flipData.isJoker = this.isJoker(flipData.cardSlot[1].card2.cardName); flipData.isJoker = this.isJoker(flipData.cardSlot[1].card2.cardName);
flipData.cardSlot[1].value2 = this.getCardValue(flipData.cardSlot[1].card2.cardName); flipData.cardSlot[1].value2 = this.getCardValue(flipData.cardSlot[1].card2.cardName);
flipData.cardSlot[1].isFace2 = this.isCardFace(flipData.cardSlot[1].card2.cardName); flipData.cardSlot[1].isFace2 = this.isCardFace(flipData.cardSlot[1].card2.cardName);
flipData.cardSlot[1].card2Path = `systems/foundryvtt-shadows-over-sol/img/cards/${flipData.cardSlot[1].card2.cardName}.webp`; flipData.cardSlot[1].card2Path = `systems/foundryvtt-shadows-over-sol/img/cards/${flipData.cardSlot[1].card2.cardName}.webp`;
} else { } else {
flipData.cardSlot[1].value2 = 0; // Safe init flipData.cardSlot[1].value2 = 0; // Safe init
} }
if ( flipData.cardSlot[1].cardsuit == cardsuit ) { if (flipData.cardSlot[1].cardsuit == cardsuit) {
flipData.fullTrump = true; flipData.fullTrump = true;
} }
flipData.cardSlot[1].total = flipData.cardSlot[1].value1 + flipData.cardSlot[1].value2; flipData.cardSlot[1].total = flipData.cardSlot[1].value1 + flipData.cardSlot[1].value2;
} }
} }
// Card Total // Card Total
flipData.cardTotal = flipData.cardSlot[0].total; flipData.cardTotal = flipData.cardSlot[0].total;
flipData.cardSlotIndex = 0; flipData.cardSlotIndex = 0;
if ( flipData.fullTrump ) { if (flipData.fullTrump) {
flipData.cardTotal = flipData.cardSlot[0].total + flipData.cardSlot[1].total; flipData.cardTotal = flipData.cardSlot[0].total + flipData.cardSlot[1].total;
} else if (flipData.isTrump) { } else if (flipData.isTrump) {
if (flipData.cardSlot[0].total > flipData.cardSlot[1].total ) { if (flipData.cardSlot[0].total > flipData.cardSlot[1].total) {
flipData.cardSlotIndex = 0; flipData.cardSlotIndex = 0;
flipData.cardTotal = flipData.cardSlot[0].total; flipData.cardTotal = flipData.cardSlot[0].total;
} else { } else {
@ -246,66 +244,66 @@ export class SoSCardDeck {
} }
// Compute final result and compare // Compute final result and compare
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.system.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;
flipData.result = (flipData.magnitude >= 0) ? "Success": "Failure"; flipData.result = (flipData.magnitude >= 0) ? "Success" : "Failure";
//console.log(flipData);
this.data.actor.saveDeck(); this.data.actor.saveDeck();
flipData.alias = this.data.actor.name; flipData.alias = this.data.actor.name;
let html = await renderTemplate('systems/foundryvtt-shadows-over-sol/templates/chat-flip.html', flipData); let html = await foundry.applications.handlebars.renderTemplate('systems/foundryvtt-shadows-over-sol/templates/chat-flip.html', flipData);
ChatMessage.create( { content: html }); ChatMessage.create({ content: html });
if ( flipData.mode == 'weapon' && flipData.magnitude >= 0 && !flipData.isJoker) { // Success if (flipData.mode == 'weapon' && flipData.magnitude >= 0 && !flipData.isJoker) { // Success
this.processWeapon( flipData ); this.processWeapon(flipData);
} }
if (flipData.isJoker) { // Critical mismatch ! if (flipData.isJoker) { // Critical mismatch !
// TODO // TODO
} }
} }
/* -------------------------------------------- */ /* -------------------------------------------- */
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.system[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.system.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);
flipData.damageValue = damageRegexp[1]; flipData.damageValue = damageRegexp[1];
flipData.damageSeverity = damageRegexp[2]; flipData.damageSeverity = damageRegexp[2];
} }
// Now process damage // Now process damage
if ( flipData.target) { if (flipData.target) {
if ( game.user.isGM ) { // Direct access if (game.user.isGM) { // Direct access
SoSUtility.applyDamage( flipData ); SoSUtility.applyDamage(flipData);
} else { } else {
game.socket.emit("system.foundryvtt-shadows-over-sol", { game.socket.emit("system.foundryvtt-shadows-over-sol", {
msg: "msg_request_defense", data: flipData } ); msg: "msg_request_defense", data: flipData
});
} }
} else { } else {
let html = await renderTemplate('systems/foundryvtt-shadows-over-sol/templates/chat-damage-only.html', flipData ); let html = await renderTemplate('systems/foundryvtt-shadows-over-sol/templates/chat-damage-only.html', flipData);
ChatMessage.create( { content: html }); ChatMessage.create({ content: html });
} }
} }
/* -------------------------------------------- */ /* -------------------------------------------- */
getDeckHTML( ) { getDeckHTML() {
return "<a class='view-deck'><img class='flip-card deck-card' src='systems/foundryvtt-shadows-over-sol/img/cards/card_back.webp' /></a>"; return "<a class='view-deck'><img class='flip-card deck-card' src='systems/foundryvtt-shadows-over-sol/img/cards/card_back.webp' /></a>";
} }
/* -------------------------------------------- */ /* -------------------------------------------- */
getEdgeHTML( ) { getEdgeHTML() {
let html = ""; let html = "";
for (let edge of this.data.cardEdge) { for (let edge of this.data.cardEdge) {
html += `<a class='view-edge'><img class='flip-card edge-card' data-edge-card='${edge.cardName}' src='systems/foundryvtt-shadows-over-sol/img/cards/${edge.cardName}.webp' /></a>` html += `<a class='view-edge'><img class='flip-card edge-card' data-edge-card='${edge.cardName}' src='systems/foundryvtt-shadows-over-sol/img/cards/${edge.cardName}.webp' /></a>`
@ -313,21 +311,21 @@ export class SoSCardDeck {
return html; return html;
} }
/* -------------------------------------------- */
getEdgeHTMLForFlip( ) {
let html = "";
for (let edge of this.data.cardEdge) {
html += `<a class='view-edge'><img class='flip-card edge-card' data-edge-card='${edge.cardName}' src='systems/foundryvtt-shadows-over-sol/img/cards/${edge.cardName}.webp' /></a>`
}
return html;
}
/* -------------------------------------------- */ /* -------------------------------------------- */
getDiscardTopHTML( ) { getEdgeHTMLForFlip() {
let html = ""; let html = "";
console.log( "DISCARD: ", this.data.discard ); for (let edge of this.data.cardEdge) {
if ( this.data.discard.length > 0) { html += `<a class='view-edge'><img class='flip-card edge-card' data-edge-card='${edge.cardName}' src='systems/foundryvtt-shadows-over-sol/img/cards/${edge.cardName}.webp' /></a>`
let card = this.data.discard[this.data.discard.length-1]; }
return html;
}
/* -------------------------------------------- */
getDiscardTopHTML() {
let html = "";
console.log("DISCARD: ", this.data.discard);
if (this.data.discard.length > 0) {
let card = this.data.discard[this.data.discard.length - 1];
html = `<img class='view-discard flip-card' src='systems/foundryvtt-shadows-over-sol/img/cards/${card.cardName}.webp' />`; html = `<img class='view-discard flip-card' src='systems/foundryvtt-shadows-over-sol/img/cards/${card.cardName}.webp' />`;
} }
return html; return html;

View File

@ -37,14 +37,14 @@ Hooks.once("init", async function () {
// preload handlebars templates // preload handlebars templates
SoSUtility.preloadHandlebarsTemplates(); SoSUtility.preloadHandlebarsTemplates();
// Create useful storage space // Create useful storage space
let html = await renderTemplate('systems/foundryvtt-shadows-over-sol/templates/gm-deck.html', {} ); let html = await foundry.applications.handlebars.renderTemplate('systems/foundryvtt-shadows-over-sol/templates/gm-deck.html', {} );
let gmDeck = new SoSGMDeck(html); let gmDeck = new SoSGMDeck(html);
game.system.sos = { game.system.sos = {
gmDeck: gmDeck, gmDeck: gmDeck,
} }
/* -------------------------------------------- */ /* -------------------------------------------- */
// Set an initiative formula for the system // Set an initiative formula for the system
CONFIG.Combat.initiative = { CONFIG.Combat.initiative = {
formula: "1d3", formula: "1d3",
decimals: 2 decimals: 2
@ -64,10 +64,10 @@ Hooks.once("init", async function () {
/* -------------------------------------------- */ /* -------------------------------------------- */
// Register sheet application classes // Register sheet application classes
Actors.unregisterSheet("core", ActorSheet); foundry.documents.collections.Actors.unregisterSheet("core", foundry.appv1.sheets.ActorSheet);
Actors.registerSheet("foundryvtt-shadows-over-sol", SoSActorSheet, { types: ["character"], makeDefault: true }); foundry.documents.collections.Actors.registerSheet("foundryvtt-shadows-over-sol", SoSActorSheet, { types: ["character"], makeDefault: true });
Items.unregisterSheet("core", ItemSheet); foundry.documents.collections.Items.unregisterSheet("core", foundry.appv1.sheets.ItemSheet);
Items.registerSheet("foundryvtt-shadows-over-sol", SoSItemSheet, { makeDefault: true }); foundry.documents.collections.Items.registerSheet("foundryvtt-shadows-over-sol", SoSItemSheet, { makeDefault: true });
// Init/registers // Init/registers
Hooks.on('renderChatLog', (log, html, data) => { Hooks.on('renderChatLog', (log, html, data) => {
@ -77,7 +77,7 @@ Hooks.once("init", async function () {
Hooks.on('updateCombat', (combat, round, diff, id) => { Hooks.on('updateCombat', (combat, round, diff, id) => {
SoSUtility.updateCombat(combat, round, diff, id); SoSUtility.updateCombat(combat, round, diff, id);
}); });
}); });
/* -------------------------------------------- */ /* -------------------------------------------- */
@ -105,7 +105,7 @@ Hooks.once("ready", function () {
} }
ClassCounter.registerUsageCount() ClassCounter.registerUsageCount()
SoSUtility.ready() SoSUtility.ready()
welcomeMessage(); welcomeMessage();
}); });

View File

@ -27,7 +27,7 @@ export class SoSUtility {
'systems/foundryvtt-shadows-over-sol/templates/dialog-flip.html' 'systems/foundryvtt-shadows-over-sol/templates/dialog-flip.html'
] ]
return loadTemplates(templatePaths); return foundry.applications.handlebars.loadTemplates(templatePaths);
} }
/* -------------------------------------------- */ /* -------------------------------------------- */
@ -137,14 +137,14 @@ export class SoSUtility {
/* -------------------------------------------- */ /* -------------------------------------------- */
static async registerChatCallbacks(html) { static async registerChatCallbacks(html) {
html.on("click", '#button-declare-actions', event => { $(html).on("click", '#button-declare-actions', event => {
SoSUtility.openDeclareActions(event); SoSUtility.openDeclareActions(event);
}); });
html.on("click", '#button-end-action', event => { $(html).on("click", '#button-end-action', event => {
SoSUtility.closeAction(event); SoSUtility.closeAction(event);
}); });
html.on("click", '#button-reaction-cover', event => { $(html).on("click", '#button-reaction-cover', event => {
let uniqId = event.currentTarget.attributes['data-uniq-id'].value; let uniqId = event.currentTarget.attributes['data-uniq-id'].value;
if (game.user.isGM) { if (game.user.isGM) {
SoSUtility.reactionCover(uniqId); SoSUtility.reactionCover(uniqId);
@ -153,7 +153,7 @@ export class SoSUtility {
} }
}); });
html.on("click", '#button-reaction-melee', event => { $(html).on("click", '#button-reaction-melee', event => {
let uniqId = event.currentTarget.attributes['data-uniq-id'].value; let uniqId = event.currentTarget.attributes['data-uniq-id'].value;
if (game.user.isGM) { if (game.user.isGM) {
SoSUtility.reactionMelee(uniqId); SoSUtility.reactionMelee(uniqId);
@ -161,7 +161,7 @@ export class SoSUtility {
game.socket.emit("system.foundryvtt-shadows-over-sol", { name: "msg_reaction_melee", data: { uniqId: uniqId } }); game.socket.emit("system.foundryvtt-shadows-over-sol", { name: "msg_reaction_melee", data: { uniqId: uniqId } });
} }
}); });
html.on("click", '#button-reaction-hit', event => { $(html).on("click", '#button-reaction-hit', event => {
let uniqId = event.currentTarget.attributes['data-uniq-id'].value; let uniqId = event.currentTarget.attributes['data-uniq-id'].value;
if (game.user.isGM) { if (game.user.isGM) {
SoSUtility.reactionHit(uniqId); SoSUtility.reactionHit(uniqId);

Binary file not shown.

Binary file not shown.

View File

@ -1 +1 @@
MANIFEST-000007 MANIFEST-000012

View File

@ -1,13 +1,14 @@
2024/05/31-12:37:50.244518 7f20a6a006c0 Recovering log #6 2025/05/02-18:33:12.452183 7f8a977fe6c0 Recovering log #9
2024/05/31-12:37:50.292179 7f20a6a006c0 Delete type=0 #6 2025/05/02-18:33:12.463328 7f8a977fe6c0 Delete type=0 #9
2024/05/31-12:37:50.292229 7f20a6a006c0 Delete type=3 #4 2025/05/02-18:33:12.463421 7f8a977fe6c0 Delete type=3 #7
2024/05/31-12:57:42.325821 7f20a5a006c0 Level-0 table #10: started 2025/05/02-18:57:05.868691 7f8a967fc6c0 Level-0 table #15: started
2024/05/31-12:57:42.325873 7f20a5a006c0 Level-0 table #10: 0 bytes OK 2025/05/02-18:57:05.872912 7f8a967fc6c0 Level-0 table #15: 15248 bytes OK
2024/05/31-12:57:42.332227 7f20a5a006c0 Delete type=0 #8 2025/05/02-18:57:05.879476 7f8a967fc6c0 Delete type=0 #13
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 2025/05/02-18:57:05.921712 7f8a967fc6c0 Manual compaction at level-0 from '!items!06L0cwm4CIuCFetU' @ 72057594037927935 : 1 .. '!items!uSQw858IiBrWkeSj' @ 0 : 0; will stop at '!items!uSQw858IiBrWkeSj' @ 60 : 1
2024/05/31-12:57:42.355939 7f20a5a006c0 Compacting 1@0 + 0@1 files 2025/05/02-18:57:05.921740 7f8a967fc6c0 Compacting 1@0 + 1@1 files
2024/05/31-12:57:42.359540 7f20a5a006c0 Generated table #11@0: 20 keys, 15155 bytes 2025/05/02-18:57:05.927062 7f8a967fc6c0 Generated table #16@0: 20 keys, 15248 bytes
2024/05/31-12:57:42.359578 7f20a5a006c0 Compacted 1@0 + 0@1 files => 15155 bytes 2025/05/02-18:57:05.927105 7f8a967fc6c0 Compacted 1@0 + 1@1 files => 15248 bytes
2024/05/31-12:57:42.365779 7f20a5a006c0 compacted to: files[ 0 1 0 0 0 0 0 ] 2025/05/02-18:57:05.933657 7f8a967fc6c0 compacted to: files[ 0 1 0 0 0 0 0 ]
2024/05/31-12:57:42.365873 7f20a5a006c0 Delete type=2 #5 2025/05/02-18:57:05.933830 7f8a967fc6c0 Delete type=2 #11
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) 2025/05/02-18:57:05.934033 7f8a967fc6c0 Delete type=2 #15
2025/05/02-18:57:05.945373 7f8a967fc6c0 Manual compaction at level-0 from '!items!uSQw858IiBrWkeSj' @ 60 : 1 .. '!items!uSQw858IiBrWkeSj' @ 0 : 0; will stop at (end)

View File

@ -1,5 +1,13 @@
2024/05/31-12:37:00.345049 7f04c4c006c0 Recovering log #3 2024/05/31-12:37:50.244518 7f20a6a006c0 Recovering log #6
2024/05/31-12:37:00.345498 7f04c4c006c0 Level-0 table #5: started 2024/05/31-12:37:50.292179 7f20a6a006c0 Delete type=0 #6
2024/05/31-12:37:00.358604 7f04c4c006c0 Level-0 table #5: 22912 bytes OK 2024/05/31-12:37:50.292229 7f20a6a006c0 Delete type=3 #4
2024/05/31-12:37:00.406080 7f04c4c006c0 Delete type=0 #3 2024/05/31-12:57:42.325821 7f20a5a006c0 Level-0 table #10: started
2024/05/31-12:37:00.406202 7f04c4c006c0 Delete type=3 #2 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)

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -1 +1 @@
MANIFEST-000007 MANIFEST-000012

View File

@ -1,13 +1,14 @@
2024/05/31-12:37:49.951711 7f20a74006c0 Recovering log #6 2025/05/02-18:33:12.375278 7f8a96ffd6c0 Recovering log #9
2024/05/31-12:37:50.022164 7f20a74006c0 Delete type=0 #6 2025/05/02-18:33:12.386944 7f8a96ffd6c0 Delete type=0 #9
2024/05/31-12:37:50.022219 7f20a74006c0 Delete type=3 #4 2025/05/02-18:33:12.387036 7f8a96ffd6c0 Delete type=3 #7
2024/05/31-12:57:42.253682 7f20a5a006c0 Level-0 table #10: started 2025/05/02-18:57:05.771010 7f8a967fc6c0 Level-0 table #15: started
2024/05/31-12:57:42.253739 7f20a5a006c0 Level-0 table #10: 0 bytes OK 2025/05/02-18:57:05.774670 7f8a967fc6c0 Level-0 table #15: 7713 bytes OK
2024/05/31-12:57:42.260074 7f20a5a006c0 Delete type=0 #8 2025/05/02-18:57:05.780959 7f8a967fc6c0 Delete type=0 #13
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 2025/05/02-18:57:05.813724 7f8a967fc6c0 Manual compaction at level-0 from '!items!3GB0NAetYAVHIzmu' @ 72057594037927935 : 1 .. '!items!vHcRT3kQVWPHSz38' @ 0 : 0; will stop at '!items!vHcRT3kQVWPHSz38' @ 39 : 1
2024/05/31-12:57:42.279371 7f20a5a006c0 Compacting 1@0 + 0@1 files 2025/05/02-18:57:05.813735 7f8a967fc6c0 Compacting 1@0 + 1@1 files
2024/05/31-12:57:42.282723 7f20a5a006c0 Generated table #11@0: 13 keys, 7666 bytes 2025/05/02-18:57:05.817581 7f8a967fc6c0 Generated table #16@0: 13 keys, 7713 bytes
2024/05/31-12:57:42.282737 7f20a5a006c0 Compacted 1@0 + 0@1 files => 7666 bytes 2025/05/02-18:57:05.817635 7f8a967fc6c0 Compacted 1@0 + 1@1 files => 7713 bytes
2024/05/31-12:57:42.288596 7f20a5a006c0 compacted to: files[ 0 1 0 0 0 0 0 ] 2025/05/02-18:57:05.824551 7f8a967fc6c0 compacted to: files[ 0 1 0 0 0 0 0 ]
2024/05/31-12:57:42.288688 7f20a5a006c0 Delete type=2 #5 2025/05/02-18:57:05.824661 7f8a967fc6c0 Delete type=2 #11
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) 2025/05/02-18:57:05.824810 7f8a967fc6c0 Delete type=2 #15
2025/05/02-18:57:05.848004 7f8a967fc6c0 Manual compaction at level-0 from '!items!vHcRT3kQVWPHSz38' @ 39 : 1 .. '!items!vHcRT3kQVWPHSz38' @ 0 : 0; will stop at (end)

View File

@ -1,5 +1,13 @@
2024/05/31-12:36:59.630199 7f04bf4006c0 Recovering log #3 2024/05/31-12:37:49.951711 7f20a74006c0 Recovering log #6
2024/05/31-12:36:59.631365 7f04bf4006c0 Level-0 table #5: started 2024/05/31-12:37:50.022164 7f20a74006c0 Delete type=0 #6
2024/05/31-12:36:59.641960 7f04bf4006c0 Level-0 table #5: 10948 bytes OK 2024/05/31-12:37:50.022219 7f20a74006c0 Delete type=3 #4
2024/05/31-12:36:59.690838 7f04bf4006c0 Delete type=0 #3 2024/05/31-12:57:42.253682 7f20a5a006c0 Level-0 table #10: started
2024/05/31-12:36:59.690928 7f04bf4006c0 Delete type=3 #2 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)

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
packs/gears/000016.ldb Normal file

Binary file not shown.

View File

@ -1 +1 @@
MANIFEST-000007 MANIFEST-000012

View File

@ -1,13 +1,14 @@
2024/05/31-12:37:50.024957 7f20a6a006c0 Recovering log #6 2025/05/02-18:33:12.392224 7f8a9cffa6c0 Recovering log #9
2024/05/31-12:37:50.068244 7f20a6a006c0 Delete type=0 #6 2025/05/02-18:33:12.403118 7f8a9cffa6c0 Delete type=0 #9
2024/05/31-12:37:50.068393 7f20a6a006c0 Delete type=3 #4 2025/05/02-18:33:12.403200 7f8a9cffa6c0 Delete type=3 #7
2024/05/31-12:57:42.272250 7f20a5a006c0 Level-0 table #10: started 2025/05/02-18:57:05.781173 7f8a967fc6c0 Level-0 table #15: started
2024/05/31-12:57:42.272277 7f20a5a006c0 Level-0 table #10: 0 bytes OK 2025/05/02-18:57:05.785800 7f8a967fc6c0 Level-0 table #15: 59307 bytes OK
2024/05/31-12:57:42.279124 7f20a5a006c0 Delete type=0 #8 2025/05/02-18:57:05.792099 7f8a967fc6c0 Delete type=0 #13
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 2025/05/02-18:57:05.824917 7f8a967fc6c0 Manual compaction at level-0 from '!items!1Gj3ATIVykyAQ5fD' @ 72057594037927935 : 1 .. '!items!zMiaz2HLsddO22H3' @ 0 : 0; will stop at '!items!zMiaz2HLsddO22H3' @ 297 : 1
2024/05/31-12:57:42.308494 7f20a5a006c0 Compacting 1@0 + 0@1 files 2025/05/02-18:57:05.824929 7f8a967fc6c0 Compacting 1@0 + 1@1 files
2024/05/31-12:57:42.312365 7f20a5a006c0 Generated table #11@0: 99 keys, 58930 bytes 2025/05/02-18:57:05.829957 7f8a967fc6c0 Generated table #16@0: 99 keys, 59307 bytes
2024/05/31-12:57:42.312382 7f20a5a006c0 Compacted 1@0 + 0@1 files => 58930 bytes 2025/05/02-18:57:05.829994 7f8a967fc6c0 Compacted 1@0 + 1@1 files => 59307 bytes
2024/05/31-12:57:42.318551 7f20a5a006c0 compacted to: files[ 0 1 0 0 0 0 0 ] 2025/05/02-18:57:05.836156 7f8a967fc6c0 compacted to: files[ 0 1 0 0 0 0 0 ]
2024/05/31-12:57:42.318708 7f20a5a006c0 Delete type=2 #5 2025/05/02-18:57:05.836257 7f8a967fc6c0 Delete type=2 #11
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) 2025/05/02-18:57:05.836406 7f8a967fc6c0 Delete type=2 #15
2025/05/02-18:57:05.848030 7f8a967fc6c0 Manual compaction at level-0 from '!items!zMiaz2HLsddO22H3' @ 297 : 1 .. '!items!zMiaz2HLsddO22H3' @ 0 : 0; will stop at (end)

View File

@ -1,5 +1,13 @@
2024/05/31-12:36:59.694104 7f04c4c006c0 Recovering log #3 2024/05/31-12:37:50.024957 7f20a6a006c0 Recovering log #6
2024/05/31-12:36:59.695341 7f04c4c006c0 Level-0 table #5: started 2024/05/31-12:37:50.068244 7f20a6a006c0 Delete type=0 #6
2024/05/31-12:37:00.103755 7f04c4c006c0 Level-0 table #5: 87512 bytes OK 2024/05/31-12:37:50.068393 7f20a6a006c0 Delete type=3 #4
2024/05/31-12:37:00.158532 7f04c4c006c0 Delete type=0 #3 2024/05/31-12:57:42.272250 7f20a5a006c0 Level-0 table #10: started
2024/05/31-12:37:00.158786 7f04c4c006c0 Delete type=3 #2 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)

Binary file not shown.

BIN
packs/gears/MANIFEST-000012 Normal file

Binary file not shown.

Binary file not shown.

BIN
packs/genelines/000016.ldb Normal file

Binary file not shown.

View File

@ -1 +1 @@
MANIFEST-000007 MANIFEST-000012

View File

@ -1,13 +1,14 @@
2024/05/31-12:37:50.295525 7f20a7e006c0 Recovering log #6 2025/05/02-18:33:12.467305 7f8a97fff6c0 Recovering log #9
2024/05/31-12:37:50.344755 7f20a7e006c0 Delete type=0 #6 2025/05/02-18:33:12.477711 7f8a97fff6c0 Delete type=0 #9
2024/05/31-12:37:50.344847 7f20a7e006c0 Delete type=3 #4 2025/05/02-18:33:12.477882 7f8a97fff6c0 Delete type=3 #7
2024/05/31-12:57:42.332388 7f20a5a006c0 Level-0 table #10: started 2025/05/02-18:57:05.879741 7f8a967fc6c0 Level-0 table #15: started
2024/05/31-12:57:42.332415 7f20a5a006c0 Level-0 table #10: 0 bytes OK 2025/05/02-18:57:05.884118 7f8a967fc6c0 Level-0 table #15: 7901 bytes OK
2024/05/31-12:57:42.338850 7f20a5a006c0 Delete type=0 #8 2025/05/02-18:57:05.891258 7f8a967fc6c0 Delete type=0 #13
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 2025/05/02-18:57:05.934202 7f8a967fc6c0 Manual compaction at level-0 from '!items!3o49zG4Xtc1I29j2' @ 72057594037927935 : 1 .. '!items!vDOAmovqE53dQzlh' @ 0 : 0; will stop at '!items!vDOAmovqE53dQzlh' @ 24 : 1
2024/05/31-12:57:42.366005 7f20a5a006c0 Compacting 1@0 + 0@1 files 2025/05/02-18:57:05.934218 7f8a967fc6c0 Compacting 1@0 + 1@1 files
2024/05/31-12:57:42.369253 7f20a5a006c0 Generated table #11@0: 8 keys, 7865 bytes 2025/05/02-18:57:05.938408 7f8a967fc6c0 Generated table #16@0: 8 keys, 7901 bytes
2024/05/31-12:57:42.369293 7f20a5a006c0 Compacted 1@0 + 0@1 files => 7865 bytes 2025/05/02-18:57:05.938450 7f8a967fc6c0 Compacted 1@0 + 1@1 files => 7901 bytes
2024/05/31-12:57:42.376725 7f20a5a006c0 compacted to: files[ 0 1 0 0 0 0 0 ] 2025/05/02-18:57:05.944795 7f8a967fc6c0 compacted to: files[ 0 1 0 0 0 0 0 ]
2024/05/31-12:57:42.376841 7f20a5a006c0 Delete type=2 #5 2025/05/02-18:57:05.944948 7f8a967fc6c0 Delete type=2 #11
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) 2025/05/02-18:57:05.945159 7f8a967fc6c0 Delete type=2 #15
2025/05/02-18:57:05.945392 7f8a967fc6c0 Manual compaction at level-0 from '!items!vDOAmovqE53dQzlh' @ 24 : 1 .. '!items!vDOAmovqE53dQzlh' @ 0 : 0; will stop at (end)

View File

@ -1,5 +1,13 @@
2024/05/31-12:37:00.409789 7f04bfe006c0 Recovering log #3 2024/05/31-12:37:50.295525 7f20a7e006c0 Recovering log #6
2024/05/31-12:37:00.410672 7f04bfe006c0 Level-0 table #5: started 2024/05/31-12:37:50.344755 7f20a7e006c0 Delete type=0 #6
2024/05/31-12:37:00.432255 7f04bfe006c0 Level-0 table #5: 11820 bytes OK 2024/05/31-12:37:50.344847 7f20a7e006c0 Delete type=3 #4
2024/05/31-12:37:00.469946 7f04bfe006c0 Delete type=0 #3 2024/05/31-12:57:42.332388 7f20a5a006c0 Level-0 table #10: started
2024/05/31-12:37:00.470035 7f04bfe006c0 Delete type=3 #2 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)

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
packs/injuries/000016.ldb Normal file

Binary file not shown.

View File

@ -1 +1 @@
MANIFEST-000007 MANIFEST-000012

View File

@ -1,13 +1,14 @@
2024/05/31-12:37:50.071905 7f20a7e006c0 Recovering log #6 2025/05/02-18:33:12.407811 7f8a977fe6c0 Recovering log #9
2024/05/31-12:37:50.130041 7f20a7e006c0 Delete type=0 #6 2025/05/02-18:33:12.418251 7f8a977fe6c0 Delete type=0 #9
2024/05/31-12:37:50.130137 7f20a7e006c0 Delete type=3 #4 2025/05/02-18:33:12.418341 7f8a977fe6c0 Delete type=3 #7
2024/05/31-12:57:42.260202 7f20a5a006c0 Level-0 table #10: started 2025/05/02-18:57:05.792307 7f8a967fc6c0 Level-0 table #15: started
2024/05/31-12:57:42.260227 7f20a5a006c0 Level-0 table #10: 0 bytes OK 2025/05/02-18:57:05.796541 7f8a967fc6c0 Level-0 table #15: 14986 bytes OK
2024/05/31-12:57:42.266171 7f20a5a006c0 Delete type=0 #8 2025/05/02-18:57:05.803084 7f8a967fc6c0 Delete type=0 #13
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 2025/05/02-18:57:05.836521 7f8a967fc6c0 Manual compaction at level-0 from '!items!2ZUnK7mjIeizobUM' @ 72057594037927935 : 1 .. '!items!xZL7aO0xOOZvB2cs' @ 0 : 0; will stop at '!items!xZL7aO0xOOZvB2cs' @ 159 : 1
2024/05/31-12:57:42.288786 7f20a5a006c0 Compacting 1@0 + 0@1 files 2025/05/02-18:57:05.836533 7f8a967fc6c0 Compacting 1@0 + 1@1 files
2024/05/31-12:57:42.292530 7f20a5a006c0 Generated table #11@0: 53 keys, 14817 bytes 2025/05/02-18:57:05.840280 7f8a967fc6c0 Generated table #16@0: 53 keys, 14986 bytes
2024/05/31-12:57:42.292553 7f20a5a006c0 Compacted 1@0 + 0@1 files => 14817 bytes 2025/05/02-18:57:05.840317 7f8a967fc6c0 Compacted 1@0 + 1@1 files => 14986 bytes
2024/05/31-12:57:42.298878 7f20a5a006c0 compacted to: files[ 0 1 0 0 0 0 0 ] 2025/05/02-18:57:05.847355 7f8a967fc6c0 compacted to: files[ 0 1 0 0 0 0 0 ]
2024/05/31-12:57:42.298975 7f20a5a006c0 Delete type=2 #5 2025/05/02-18:57:05.847537 7f8a967fc6c0 Delete type=2 #11
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) 2025/05/02-18:57:05.847800 7f8a967fc6c0 Delete type=2 #15
2025/05/02-18:57:05.848050 7f8a967fc6c0 Manual compaction at level-0 from '!items!xZL7aO0xOOZvB2cs' @ 159 : 1 .. '!items!xZL7aO0xOOZvB2cs' @ 0 : 0; will stop at (end)

View File

@ -1,5 +1,13 @@
2024/05/31-12:37:00.162792 7f04c56006c0 Recovering log #3 2024/05/31-12:37:50.071905 7f20a7e006c0 Recovering log #6
2024/05/31-12:37:00.163468 7f04c56006c0 Level-0 table #5: started 2024/05/31-12:37:50.130041 7f20a7e006c0 Delete type=0 #6
2024/05/31-12:37:00.172845 7f04c56006c0 Level-0 table #5: 21537 bytes OK 2024/05/31-12:37:50.130137 7f20a7e006c0 Delete type=3 #4
2024/05/31-12:37:00.220464 7f04c56006c0 Delete type=0 #3 2024/05/31-12:57:42.260202 7f20a5a006c0 Level-0 table #10: started
2024/05/31-12:37:00.220541 7f04c56006c0 Delete type=3 #2 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)

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
packs/languages/000016.ldb Normal file

Binary file not shown.

View File

@ -1 +1 @@
MANIFEST-000007 MANIFEST-000012

View File

@ -1,13 +1,14 @@
2024/05/31-12:37:50.189585 7f20a74006c0 Recovering log #6 2025/05/02-18:33:12.437502 7f8a96ffd6c0 Recovering log #9
2024/05/31-12:37:50.241798 7f20a74006c0 Delete type=0 #6 2025/05/02-18:33:12.448138 7f8a96ffd6c0 Delete type=0 #9
2024/05/31-12:37:50.241887 7f20a74006c0 Delete type=3 #4 2025/05/02-18:33:12.448254 7f8a96ffd6c0 Delete type=3 #7
2024/05/31-12:57:42.339058 7f20a5a006c0 Level-0 table #10: started 2025/05/02-18:57:05.848203 7f8a967fc6c0 Level-0 table #15: started
2024/05/31-12:57:42.339101 7f20a5a006c0 Level-0 table #10: 0 bytes OK 2025/05/02-18:57:05.851561 7f8a967fc6c0 Level-0 table #15: 1753 bytes OK
2024/05/31-12:57:42.345459 7f20a5a006c0 Delete type=0 #8 2025/05/02-18:57:05.857944 7f8a967fc6c0 Delete type=0 #13
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 2025/05/02-18:57:05.891623 7f8a967fc6c0 Manual compaction at level-0 from '!items!0OaXJm1iih3gYI6P' @ 72057594037927935 : 1 .. '!items!xbpEhhdqx4o5KUJA' @ 0 : 0; will stop at '!items!xbpEhhdqx4o5KUJA' @ 45 : 1
2024/05/31-12:57:42.376991 7f20a5a006c0 Compacting 1@0 + 0@1 files 2025/05/02-18:57:05.891652 7f8a967fc6c0 Compacting 1@0 + 1@1 files
2024/05/31-12:57:42.380150 7f20a5a006c0 Generated table #11@0: 15 keys, 1725 bytes 2025/05/02-18:57:05.895427 7f8a967fc6c0 Generated table #16@0: 15 keys, 1753 bytes
2024/05/31-12:57:42.380181 7f20a5a006c0 Compacted 1@0 + 0@1 files => 1725 bytes 2025/05/02-18:57:05.895465 7f8a967fc6c0 Compacted 1@0 + 1@1 files => 1753 bytes
2024/05/31-12:57:42.386148 7f20a5a006c0 compacted to: files[ 0 1 0 0 0 0 0 ] 2025/05/02-18:57:05.901779 7f8a967fc6c0 compacted to: files[ 0 1 0 0 0 0 0 ]
2024/05/31-12:57:42.386245 7f20a5a006c0 Delete type=2 #5 2025/05/02-18:57:05.901906 7f8a967fc6c0 Delete type=2 #11
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) 2025/05/02-18:57:05.902085 7f8a967fc6c0 Delete type=2 #15
2025/05/02-18:57:05.945325 7f8a967fc6c0 Manual compaction at level-0 from '!items!xbpEhhdqx4o5KUJA' @ 45 : 1 .. '!items!xbpEhhdqx4o5KUJA' @ 0 : 0; will stop at (end)

View File

@ -1,5 +1,13 @@
2024/05/31-12:37:00.283664 7f04bf4006c0 Recovering log #3 2024/05/31-12:37:50.189585 7f20a74006c0 Recovering log #6
2024/05/31-12:37:00.285227 7f04bf4006c0 Level-0 table #5: started 2024/05/31-12:37:50.241798 7f20a74006c0 Delete type=0 #6
2024/05/31-12:37:00.295941 7f04bf4006c0 Level-0 table #5: 2524 bytes OK 2024/05/31-12:37:50.241887 7f20a74006c0 Delete type=3 #4
2024/05/31-12:37:00.342228 7f04bf4006c0 Delete type=0 #3 2024/05/31-12:57:42.339058 7f20a5a006c0 Level-0 table #10: started
2024/05/31-12:37:00.342291 7f04bf4006c0 Delete type=3 #2 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)

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
packs/skills/000016.ldb Normal file

Binary file not shown.

View File

@ -1 +1 @@
MANIFEST-000007 MANIFEST-000012

View File

@ -1,13 +1,14 @@
2024/05/31-12:37:49.885012 7f20acc006c0 Recovering log #6 2025/05/02-18:33:12.359919 7f8a977fe6c0 Recovering log #9
2024/05/31-12:37:49.948288 7f20acc006c0 Delete type=0 #6 2025/05/02-18:33:12.370657 7f8a977fe6c0 Delete type=0 #9
2024/05/31-12:37:49.948350 7f20acc006c0 Delete type=3 #4 2025/05/02-18:33:12.370768 7f8a977fe6c0 Delete type=3 #7
2024/05/31-12:57:42.266276 7f20a5a006c0 Level-0 table #10: started 2025/05/02-18:57:05.760331 7f8a967fc6c0 Level-0 table #15: started
2024/05/31-12:57:42.266304 7f20a5a006c0 Level-0 table #10: 0 bytes OK 2025/05/02-18:57:05.764162 7f8a967fc6c0 Level-0 table #15: 11468 bytes OK
2024/05/31-12:57:42.272138 7f20a5a006c0 Delete type=0 #8 2025/05/02-18:57:05.770815 7f8a967fc6c0 Delete type=0 #13
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 2025/05/02-18:57:05.803292 7f8a967fc6c0 Manual compaction at level-0 from '!items!0xlCQMyGIQJWPBM1' @ 72057594037927935 : 1 .. '!items!ukWyqxOnKGRp7Owm' @ 0 : 0; will stop at '!items!ukWyqxOnKGRp7Owm' @ 75 : 1
2024/05/31-12:57:42.299113 7f20a5a006c0 Compacting 1@0 + 0@1 files 2025/05/02-18:57:05.803308 7f8a967fc6c0 Compacting 1@0 + 1@1 files
2024/05/31-12:57:42.302367 7f20a5a006c0 Generated table #11@0: 25 keys, 11402 bytes 2025/05/02-18:57:05.806927 7f8a967fc6c0 Generated table #16@0: 25 keys, 11468 bytes
2024/05/31-12:57:42.302389 7f20a5a006c0 Compacted 1@0 + 0@1 files => 11402 bytes 2025/05/02-18:57:05.806982 7f8a967fc6c0 Compacted 1@0 + 1@1 files => 11468 bytes
2024/05/31-12:57:42.308292 7f20a5a006c0 compacted to: files[ 0 1 0 0 0 0 0 ] 2025/05/02-18:57:05.813204 7f8a967fc6c0 compacted to: files[ 0 1 0 0 0 0 0 ]
2024/05/31-12:57:42.308373 7f20a5a006c0 Delete type=2 #5 2025/05/02-18:57:05.813374 7f8a967fc6c0 Delete type=2 #11
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) 2025/05/02-18:57:05.813581 7f8a967fc6c0 Delete type=2 #15
2025/05/02-18:57:05.847979 7f8a967fc6c0 Manual compaction at level-0 from '!items!ukWyqxOnKGRp7Owm' @ 75 : 1 .. '!items!ukWyqxOnKGRp7Owm' @ 0 : 0; will stop at (end)

View File

@ -1,5 +1,13 @@
2024/05/31-12:36:59.552707 7f04bfe006c0 Recovering log #3 2024/05/31-12:37:49.885012 7f20acc006c0 Recovering log #6
2024/05/31-12:36:59.558358 7f04bfe006c0 Level-0 table #5: started 2024/05/31-12:37:49.948288 7f20acc006c0 Delete type=0 #6
2024/05/31-12:36:59.579826 7f04bfe006c0 Level-0 table #5: 15330 bytes OK 2024/05/31-12:37:49.948350 7f20acc006c0 Delete type=3 #4
2024/05/31-12:36:59.626405 7f04bfe006c0 Delete type=0 #3 2024/05/31-12:57:42.266276 7f20a5a006c0 Level-0 table #10: started
2024/05/31-12:36:59.626466 7f04bfe006c0 Delete type=3 #2 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)

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -1 +1 @@
MANIFEST-000007 MANIFEST-000012

View File

@ -1,13 +1,14 @@
2024/05/31-12:37:50.347603 7f20acc006c0 Recovering log #6 2025/05/02-18:33:12.481820 7f8a9cffa6c0 Recovering log #9
2024/05/31-12:37:50.403306 7f20acc006c0 Delete type=0 #6 2025/05/02-18:33:12.493791 7f8a9cffa6c0 Delete type=0 #9
2024/05/31-12:37:50.403397 7f20acc006c0 Delete type=3 #4 2025/05/02-18:33:12.493880 7f8a9cffa6c0 Delete type=3 #7
2024/05/31-12:57:42.397507 7f20a5a006c0 Level-0 table #10: started 2025/05/02-18:57:05.975023 7f8a967fc6c0 Level-0 table #15: started
2024/05/31-12:57:42.397541 7f20a5a006c0 Level-0 table #10: 0 bytes OK 2025/05/02-18:57:05.978984 7f8a967fc6c0 Level-0 table #15: 4196 bytes OK
2024/05/31-12:57:42.403638 7f20a5a006c0 Delete type=0 #8 2025/05/02-18:57:05.985478 7f8a967fc6c0 Delete type=0 #13
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 2025/05/02-18:57:05.985708 7f8a967fc6c0 Manual compaction at level-0 from '!items!0xmW2R5sieo5k4d9' @ 72057594037927935 : 1 .. '!items!xaHXF4xCPb598RYA' @ 0 : 0; will stop at '!items!xaHXF4xCPb598RYA' @ 24 : 1
2024/05/31-12:57:42.419910 7f20a5a006c0 Compacting 1@0 + 0@1 files 2025/05/02-18:57:05.985717 7f8a967fc6c0 Compacting 1@0 + 1@1 files
2024/05/31-12:57:42.423850 7f20a5a006c0 Generated table #11@0: 8 keys, 4158 bytes 2025/05/02-18:57:05.989558 7f8a967fc6c0 Generated table #16@0: 8 keys, 4196 bytes
2024/05/31-12:57:42.423886 7f20a5a006c0 Compacted 1@0 + 0@1 files => 4158 bytes 2025/05/02-18:57:05.989614 7f8a967fc6c0 Compacted 1@0 + 1@1 files => 4196 bytes
2024/05/31-12:57:42.430495 7f20a5a006c0 compacted to: files[ 0 1 0 0 0 0 0 ] 2025/05/02-18:57:05.996681 7f8a967fc6c0 compacted to: files[ 0 1 0 0 0 0 0 ]
2024/05/31-12:57:42.430590 7f20a5a006c0 Delete type=2 #5 2025/05/02-18:57:05.996848 7f8a967fc6c0 Delete type=2 #11
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) 2025/05/02-18:57:05.997033 7f8a967fc6c0 Delete type=2 #15
2025/05/02-18:57:06.017682 7f8a967fc6c0 Manual compaction at level-0 from '!items!xaHXF4xCPb598RYA' @ 24 : 1 .. '!items!xaHXF4xCPb598RYA' @ 0 : 0; will stop at (end)

View File

@ -1,5 +1,13 @@
2024/05/31-12:37:00.473437 7f04bf4006c0 Recovering log #3 2024/05/31-12:37:50.347603 7f20acc006c0 Recovering log #6
2024/05/31-12:37:00.473817 7f04bf4006c0 Level-0 table #5: started 2024/05/31-12:37:50.403306 7f20acc006c0 Delete type=0 #6
2024/05/31-12:37:00.494156 7f04bf4006c0 Level-0 table #5: 6179 bytes OK 2024/05/31-12:37:50.403397 7f20acc006c0 Delete type=3 #4
2024/05/31-12:37:00.530987 7f04bf4006c0 Delete type=0 #3 2024/05/31-12:57:42.397507 7f20a5a006c0 Level-0 table #10: started
2024/05/31-12:37:00.531064 7f04bf4006c0 Delete type=3 #2 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)

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
packs/weaknesses/000016.ldb Normal file

Binary file not shown.

View File

@ -1 +1 @@
MANIFEST-000007 MANIFEST-000012

View File

@ -1,13 +1,14 @@
2024/05/31-12:37:50.133633 7f20acc006c0 Recovering log #6 2025/05/02-18:33:12.422912 7f8a97fff6c0 Recovering log #9
2024/05/31-12:37:50.185827 7f20acc006c0 Delete type=0 #6 2025/05/02-18:33:12.433805 7f8a97fff6c0 Delete type=0 #9
2024/05/31-12:37:50.185917 7f20acc006c0 Delete type=3 #4 2025/05/02-18:33:12.433884 7f8a97fff6c0 Delete type=3 #7
2024/05/31-12:57:42.319061 7f20a5a006c0 Level-0 table #10: started 2025/05/02-18:57:05.858128 7f8a967fc6c0 Level-0 table #15: started
2024/05/31-12:57:42.319098 7f20a5a006c0 Level-0 table #10: 0 bytes OK 2025/05/02-18:57:05.861347 7f8a967fc6c0 Level-0 table #15: 850 bytes OK
2024/05/31-12:57:42.325607 7f20a5a006c0 Delete type=0 #8 2025/05/02-18:57:05.868519 7f8a967fc6c0 Delete type=0 #13
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 2025/05/02-18:57:05.902236 7f8a967fc6c0 Manual compaction at level-0 from '!items!FxCIbJm3T44kC0sG' @ 72057594037927935 : 1 .. '!items!VDYXsT8AZ6krv93p' @ 0 : 0; will stop at '!items!VDYXsT8AZ6krv93p' @ 12 : 1
2024/05/31-12:57:42.345699 7f20a5a006c0 Compacting 1@0 + 0@1 files 2025/05/02-18:57:05.902256 7f8a967fc6c0 Compacting 1@0 + 1@1 files
2024/05/31-12:57:42.349053 7f20a5a006c0 Generated table #11@0: 4 keys, 837 bytes 2025/05/02-18:57:05.908428 7f8a967fc6c0 Generated table #16@0: 4 keys, 850 bytes
2024/05/31-12:57:42.349088 7f20a5a006c0 Compacted 1@0 + 0@1 files => 837 bytes 2025/05/02-18:57:05.908475 7f8a967fc6c0 Compacted 1@0 + 1@1 files => 850 bytes
2024/05/31-12:57:42.355720 7f20a5a006c0 compacted to: files[ 0 1 0 0 0 0 0 ] 2025/05/02-18:57:05.920970 7f8a967fc6c0 compacted to: files[ 0 1 0 0 0 0 0 ]
2024/05/31-12:57:42.355816 7f20a5a006c0 Delete type=2 #5 2025/05/02-18:57:05.921175 7f8a967fc6c0 Delete type=2 #11
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) 2025/05/02-18:57:05.921455 7f8a967fc6c0 Delete type=2 #15
2025/05/02-18:57:05.945349 7f8a967fc6c0 Manual compaction at level-0 from '!items!VDYXsT8AZ6krv93p' @ 12 : 1 .. '!items!VDYXsT8AZ6krv93p' @ 0 : 0; will stop at (end)

View File

@ -1,5 +1,13 @@
2024/05/31-12:37:00.223304 7f04bfe006c0 Recovering log #3 2024/05/31-12:37:50.133633 7f20acc006c0 Recovering log #6
2024/05/31-12:37:00.223338 7f04bfe006c0 Level-0 table #5: started 2024/05/31-12:37:50.185827 7f20acc006c0 Delete type=0 #6
2024/05/31-12:37:00.234424 7f04bfe006c0 Level-0 table #5: 965 bytes OK 2024/05/31-12:37:50.185917 7f20acc006c0 Delete type=3 #4
2024/05/31-12:37:00.281050 7f04bfe006c0 Delete type=0 #3 2024/05/31-12:57:42.319061 7f20a5a006c0 Level-0 table #10: started
2024/05/31-12:37:00.281171 7f04bfe006c0 Delete type=3 #2 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)

Binary file not shown.

Binary file not shown.

View File

@ -7,7 +7,7 @@
font-family: "Neuropol"; font-family: "Neuropol";
src: url('../fonts/neuropol.ttf') format("truetype"); src: url('../fonts/neuropol.ttf') format("truetype");
} }
:root { :root {
/* =================== 1. ACTOR SHEET FONT STYLES =========== */ /* =================== 1. ACTOR SHEET FONT STYLES =========== */
--window-header-title-font-family: Neuropol; --window-header-title-font-family: Neuropol;
@ -36,7 +36,7 @@
--actor-label-font-weight: 700; --actor-label-font-weight: 700;
--actor-label-color: #464331c4; --actor-label-color: #464331c4;
/* =================== 2. DEBUGGING HIGHLIGHTERS ============ */ /* =================== 2. DEBUGGING HIGHLIGHTERS ============ */
--debug-background-color-red: #ff000054; --debug-background-color-red: #ff000054;
--debug-background-color-blue: #1d00ff54; --debug-background-color-blue: #1d00ff54;
--debug-background-color-green: #54ff0054; --debug-background-color-green: #54ff0054;
@ -46,7 +46,6 @@
--debug-box-shadow-green: inset 0 0 2px green; --debug-box-shadow-green: inset 0 0 2px green;
} }
/*@import url("https://fonts.googleapis.com/css2?family=Martel:wght@400;800&family=Roboto:wght@300;400;500&display=swap");*/
/* Global styles & Font */ /* Global styles & Font */
.window-app { .window-app {
font-family: Garamond; font-family: Garamond;
@ -62,7 +61,7 @@
} /* For title, sidebar character and scene */ } /* For title, sidebar character and scene */
.sheet nav.sheet-tabs {font-family: "Garamond";} /* For nav and title */ .sheet nav.sheet-tabs {font-family: "Garamond";} /* For nav and title */
.window-app input, .foundryvtt-shadows-over-sol .item-form, .sheet header.sheet-header .flex-group-center.flex-compteurs, .sheet header.sheet-header .flex-group-center.flex-fatigue, select, button, .item-checkbox, #sidebar, #players, #navigation #nav-toggle { .window-app input, .foundryvtt-shadows-over-sol .item-form, .sheet header.sheet-header .flex-group-center.flex-compteurs, .sheet header.sheet-header .flex-group-center.flex-fatigue {
font-family: "Garamond"; /* For sheet parts */ font-family: "Garamond"; /* For sheet parts */
} }
@ -241,7 +240,7 @@ table {border: 1px solid #7a7971;}
.card-icon { .card-icon {
height: 128px; height: 128px;
width: 90px !important; width: 90px !important;
flex-grow: 1; flex-grow: 1;
} }
.card-img { .card-img {
height: 128px; height: 128px;
@ -558,7 +557,7 @@ ul, li {
box-shadow: inset 0px 0px 1px #00000096; box-shadow: inset 0px 0px 1px #00000096;
border-radius: 0.25rem; border-radius: 0.25rem;
padding: 0.125rem; padding: 0.125rem;
flex: 1 1 5rem; flex: 1 1 5rem;
background: rgba(195, 152, 22, 0.5); background: rgba(195, 152, 22, 0.5);
} }
@ -674,10 +673,10 @@ ul, li {
margin-right: 0.25rem; margin-right: 0.25rem;
margin-left: 0.25rem; margin-left: 0.25rem;
} }
.blessures-title { .blessures-title {
font-weight: bold; font-weight: bold;
} }
.alchimie-title { .alchimie-title {
font-weight: bold; font-weight: bold;
} }
.blessure-data { .blessure-data {
@ -724,7 +723,7 @@ ul, li {
/* ======================================== */ /* ======================================== */
.tokenhudext { .tokenhudext {
display: flex; display: flex;
flex: 0 !important; flex: 0 !important;
font-family: Neuropol; font-family: Neuropol;
font-weight: 600; font-weight: 600;
@ -826,7 +825,7 @@ ul, li {
.sidebar-tab .directory-list .entity { .sidebar-tab .directory-list .entity {
border-top: 1px dashed rgba(0,0,0,0.25); border-top: 1px dashed rgba(0,0,0,0.25);
border-bottom: 0 none; border-bottom: 0 none;
padding: 0.25rem 0; padding: 0.25rem 0;
} }
.sidebar-tab .directory-list .entity:hover { .sidebar-tab .directory-list .entity:hover {
@ -924,7 +923,7 @@ ul, li {
border-radius: 0px; border-radius: 0px;
} }
#hotbar .bar-controls { #hotbar .bar-controls {
background: rgba(30, 25, 20, 1); background: rgba(30, 25, 20, 1);
border: 1px solid rgba(72, 46, 28, 1); border: 1px solid rgba(72, 46, 28, 1);
} }
@ -976,12 +975,12 @@ ul, li {
/* Tooltip text */ /* Tooltip text */
.tooltip .tooltiptext { .tooltip .tooltiptext {
text-align: center; text-align: center;
/* Position the tooltip text */ /* Position the tooltip text */
top: 20px; top: 20px;
position: absolute; position: absolute;
z-index: 1; z-index: 1;
/* Fade in tooltip */ /* Fade in tooltip */
visibility: hidden; visibility: hidden;
opacity: 0; opacity: 0;
@ -990,7 +989,7 @@ ul, li {
.tooltip .ttt-fatigue{ .tooltip .ttt-fatigue{
width: 360px; width: 360px;
background: rgba(30, 25, 20, 0.9); background: rgba(30, 25, 20, 0.9);
/*border-image: url(img/ui/bg_control.jpg) 21 repeat;*/ /*border-image: url(img/ui/bg_control.jpg) 21 repeat;*/
border-image-slice: 6 6 6 6 fill; border-image-slice: 6 6 6 6 fill;

View File

@ -4,10 +4,10 @@
"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": "13.0.0",
"compatibility": { "compatibility": {
"minimum": "11", "minimum": "13",
"verified": "12" "verified": "13"
}, },
"esmodules": [ "esmodules": [
"module/sos-main.js" "module/sos-main.js"
@ -107,8 +107,8 @@
} }
], ],
"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/main/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-13.0.0.zip",
"grid": { "grid": {
"distance": 5, "distance": 5,
"units": "ft" "units": "ft"