forked from public/fvtt-yggdrasill
Compare commits
7 Commits
fix/v10-fu
...
main
Author | SHA1 | Date | |
---|---|---|---|
bb3a4fc5f7 | |||
ee7f37878f | |||
85e0249822 | |||
8f0bf91464 | |||
2c79743009 | |||
ecd164c3e5 | |||
ecdb85455d |
@ -6,12 +6,12 @@
|
|||||||
import { YggdrasillUtility } from "./yggdrasill-utility.js";
|
import { YggdrasillUtility } from "./yggdrasill-utility.js";
|
||||||
|
|
||||||
/* -------------------------------------------- */
|
/* -------------------------------------------- */
|
||||||
export class YggdrasillActorSheet extends ActorSheet {
|
export class YggdrasillActorSheet extends foundry.appv1.sheets.ActorSheet {
|
||||||
|
|
||||||
/** @override */
|
/** @override */
|
||||||
static get defaultOptions() {
|
static get defaultOptions() {
|
||||||
|
|
||||||
return mergeObject(super.defaultOptions, {
|
return foundry.utils.mergeObject(super.defaultOptions, {
|
||||||
classes: ["yggdrasill", "sheet", "actor"],
|
classes: ["yggdrasill", "sheet", "actor"],
|
||||||
template: "systems/fvtt-yggdrasill/templates/actor-sheet.html",
|
template: "systems/fvtt-yggdrasill/templates/actor-sheet.html",
|
||||||
width: 680,
|
width: 680,
|
||||||
@ -24,8 +24,8 @@ export class YggdrasillActorSheet extends ActorSheet {
|
|||||||
|
|
||||||
/* -------------------------------------------- */
|
/* -------------------------------------------- */
|
||||||
async getData() {
|
async getData() {
|
||||||
const objectData = duplicate(this.object)
|
const objectData = foundry.utils.duplicate(this.object)
|
||||||
|
|
||||||
let formData = {
|
let formData = {
|
||||||
title: this.title,
|
title: this.title,
|
||||||
id: objectData.id,
|
id: objectData.id,
|
||||||
@ -60,18 +60,19 @@ export class YggdrasillActorSheet extends ActorSheet {
|
|||||||
sortsSejdr:this.actor.getSortsSejdr(),
|
sortsSejdr:this.actor.getSortsSejdr(),
|
||||||
sortsGaldr:this.actor.getSortsGaldr(),
|
sortsGaldr:this.actor.getSortsGaldr(),
|
||||||
runes: this.actor.getRunes(),
|
runes: this.actor.getRunes(),
|
||||||
optionsCarac: YggdrasillUtility.createDirectOptionList(0, 20),
|
optionsCarac: YggdrasillUtility.createDirectOptionList(0, 20),
|
||||||
optionsDMDP: YggdrasillUtility.createDirectSortedOptionList(-10, +10),
|
optionsDMDP: YggdrasillUtility.createDirectSortedOptionList(-10, +10),
|
||||||
optionsBase: YggdrasillUtility.createDirectOptionList(0, 20),
|
optionsBase: YggdrasillUtility.createDirectOptionList(0, 20),
|
||||||
optionsFuror: YggdrasillUtility.createDirectOptionList(0, 15),
|
optionsFuror: YggdrasillUtility.createDirectOptionList(0, 15),
|
||||||
tiragerunes: await TextEditor.enrichHTML(this.object.system.tiragesrunes, {async: true}),
|
tiragerunes: await foundry.applications.ux.TextEditor.implementation.enrichHTML(this.object.system.tiragesrunes, {async: true}),
|
||||||
description: await TextEditor.enrichHTML(this.object.system.description, {async: true}),
|
description: await foundry.applications.ux.TextEditor.implementation.enrichHTML(this.object.system.description, {async: true}),
|
||||||
notes: await TextEditor.enrichHTML(this.object.system.notes, {async: true}),
|
notes: await foundry.applications.ux.TextEditor.implementation.enrichHTML(this.object.system.notes, {async: true}),
|
||||||
gmnotes: await TextEditor.enrichHTML(this.object.system.biodata.gmnotes, {async: true}),
|
gmnotes: await foundry.applications.ux.TextEditor.implementation.enrichHTML(this.object.system.biodata.gmnotes, {async: true}),
|
||||||
options: this.options,
|
options: this.options,
|
||||||
owner: this.document.isOwner,
|
owner: this.document.isOwner,
|
||||||
editScore: this.options.editScore,
|
editScore: this.options.editScore,
|
||||||
isGM: game.user.isGM
|
isGM: game.user.isGM,
|
||||||
|
config: game.system.config
|
||||||
}
|
}
|
||||||
// Dynamic update some fields
|
// Dynamic update some fields
|
||||||
this.updateDM(formData.data);
|
this.updateDM(formData.data);
|
||||||
@ -112,11 +113,11 @@ updateDP( data ) {
|
|||||||
const li = $(ev.currentTarget).parents(".item");
|
const li = $(ev.currentTarget).parents(".item");
|
||||||
YggdrasillUtility.confirmDelete(this, li);
|
YggdrasillUtility.confirmDelete(this, li);
|
||||||
});
|
});
|
||||||
|
|
||||||
html.find('#isEpuise').click(event => {
|
html.find('#isEpuise').click(event => {
|
||||||
this.actor.toggleEpuise( );
|
this.actor.toggleEpuise( );
|
||||||
} );
|
} );
|
||||||
|
|
||||||
html.find('.munition-moins').click(event => {
|
html.find('.munition-moins').click(event => {
|
||||||
const li = $(event.currentTarget).parents(".item");
|
const li = $(event.currentTarget).parents(".item");
|
||||||
const item = this.actor.items.get(li.data("item-id"));
|
const item = this.actor.items.get(li.data("item-id"));
|
||||||
@ -158,29 +159,29 @@ updateDP( data ) {
|
|||||||
const li = $(event.currentTarget).parents(".item");
|
const li = $(event.currentTarget).parents(".item");
|
||||||
const sortId = li.data("item-id");
|
const sortId = li.data("item-id");
|
||||||
this.actor.rollSort(sortId, "sejdr");
|
this.actor.rollSort(sortId, "sejdr");
|
||||||
});
|
});
|
||||||
html.find('.sort-galdr').click((event) => {
|
html.find('.sort-galdr').click((event) => {
|
||||||
const li = $(event.currentTarget).parents(".item");
|
const li = $(event.currentTarget).parents(".item");
|
||||||
const sortId = li.data("item-id");
|
const sortId = li.data("item-id");
|
||||||
this.actor.rollSort(sortId, "galdr");
|
this.actor.rollSort(sortId, "galdr");
|
||||||
});
|
});
|
||||||
html.find('.sort-rune').click((event) => {
|
html.find('.sort-rune').click((event) => {
|
||||||
const li = $(event.currentTarget).parents(".item");
|
const li = $(event.currentTarget).parents(".item");
|
||||||
const sortId = li.data("item-id");
|
const sortId = li.data("item-id");
|
||||||
this.actor.rollSort(sortId, "rune");
|
this.actor.rollSort(sortId, "rune");
|
||||||
});
|
});
|
||||||
|
|
||||||
html.find('.arme-label a').click((event) => {
|
html.find('.arme-label a').click((event) => {
|
||||||
const li = $(event.currentTarget).parents(".item");
|
const li = $(event.currentTarget).parents(".item");
|
||||||
const armeId = li.data("arme-id");
|
const armeId = li.data("arme-id");
|
||||||
this.actor.rollArme(armeId);
|
this.actor.rollArme(armeId);
|
||||||
});
|
});
|
||||||
html.find('.carac-roll').click((event) => {
|
html.find('.carac-roll').click((event) => {
|
||||||
const li = $(event.currentTarget).parents(".item");
|
const li = $(event.currentTarget).parents(".item");
|
||||||
let categ = li.data("carac-categ");
|
let categ = li.data("carac-categ");
|
||||||
let carac = li.data("carac-key");
|
let carac = li.data("carac-key");
|
||||||
this.actor.rollCarac(categ, carac);
|
this.actor.rollCarac(categ, carac);
|
||||||
});
|
});
|
||||||
html.find('.weapon-damage').click((event) => {
|
html.find('.weapon-damage').click((event) => {
|
||||||
const li = $(event.currentTarget).parents(".item");
|
const li = $(event.currentTarget).parents(".item");
|
||||||
const weapon = this.actor.items.get(li.data("item-id"));
|
const weapon = this.actor.items.get(li.data("item-id"));
|
||||||
@ -194,12 +195,12 @@ updateDP( data ) {
|
|||||||
html.find('.lock-unlock-sheet').click((event) => {
|
html.find('.lock-unlock-sheet').click((event) => {
|
||||||
this.options.editScore = !this.options.editScore;
|
this.options.editScore = !this.options.editScore;
|
||||||
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.items.get(itemId);
|
const item = this.actor.items.get(itemId);
|
||||||
item.sheet.render(true);
|
item.sheet.render(true);
|
||||||
});
|
});
|
||||||
html.find('.item-equip').click(ev => {
|
html.find('.item-equip').click(ev => {
|
||||||
const li = $(ev.currentTarget).parents(".item");
|
const li = $(ev.currentTarget).parents(".item");
|
||||||
this.actor.equiperObject( li.data("item-id") );
|
this.actor.equiperObject( li.data("item-id") );
|
||||||
|
@ -407,12 +407,11 @@ export class YggdrasillActor extends Actor {
|
|||||||
|
|
||||||
/* -------------------------------------------- */
|
/* -------------------------------------------- */
|
||||||
getActiveEffects(matching = it => true) {
|
getActiveEffects(matching = it => true) {
|
||||||
let array = Array.from(this.getEmbeddedCollection("ActiveEffect").values());
|
|
||||||
return Array.from(this.getEmbeddedCollection("ActiveEffect").values()).filter(it => matching(it));
|
return Array.from(this.getEmbeddedCollection("ActiveEffect").values()).filter(it => matching(it));
|
||||||
}
|
}
|
||||||
/* -------------------------------------------- */
|
/* -------------------------------------------- */
|
||||||
getEffectByLabel(label) {
|
getEffectByLabel(label) {
|
||||||
return this.getActiveEffects().find(it => it.data.label == label);
|
return this.getActiveEffects().find(it => it.label == label);
|
||||||
}
|
}
|
||||||
/* -------------------------------------------- */
|
/* -------------------------------------------- */
|
||||||
getEffectById(id) {
|
getEffectById(id) {
|
||||||
@ -425,7 +424,7 @@ export class YggdrasillActor extends Actor {
|
|||||||
let categ = this.system.carac[key];
|
let categ = this.system.carac[key];
|
||||||
for( let carac in categ.carac) {
|
for( let carac in categ.carac) {
|
||||||
if (carac.toLowerCase() == caracName.toLowerCase() ) {
|
if (carac.toLowerCase() == caracName.toLowerCase() ) {
|
||||||
return deepClone(categ.carac[carac]);
|
return foundry.utils.deepClone(categ.carac[carac]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -490,7 +489,7 @@ export class YggdrasillActor extends Actor {
|
|||||||
async equiperObject( equipementId ) {
|
async equiperObject( equipementId ) {
|
||||||
let item = this.items.find( item => item.id == equipementId );
|
let item = this.items.find( item => item.id == equipementId );
|
||||||
if (item && item.system) {
|
if (item && item.system) {
|
||||||
let update = { _id: item.id, "data.equipe": !item.system.equipe };
|
let update = { _id: item.id, "system.equipe": !item.system.equipe };
|
||||||
await this.updateEmbeddedDocuments('Item', [update]); // Updates one EmbeddedEntity
|
await this.updateEmbeddedDocuments('Item', [update]); // Updates one EmbeddedEntity
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -513,9 +512,9 @@ export class YggdrasillActor extends Actor {
|
|||||||
|
|
||||||
/* -------------------------------------------- */
|
/* -------------------------------------------- */
|
||||||
async rollAttribute( attrkey, subAttrKey = 'defaut') {
|
async rollAttribute( attrkey, subAttrKey = 'defaut') {
|
||||||
let attr = duplicate(this.system.attributs[attrkey]);
|
let attr = foundry.utils.duplicate(this.system.attributs[attrkey]);
|
||||||
console.log("ATTR : ", attr, attrkey, subAttrKey);
|
console.log("ATTR : ", attr, attrkey, subAttrKey);
|
||||||
let subAttr = duplicate(this.system.attributs[attrkey].values[subAttrKey] );
|
let subAttr = foundry.utils.duplicate(this.system.attributs[attrkey].values[subAttrKey] );
|
||||||
if ( attr ) {
|
if ( attr ) {
|
||||||
subAttr.label = subAttr.label || "";
|
subAttr.label = subAttr.label || "";
|
||||||
let title = `Attribut : ${attr.label} ${subAttr.label} : ${subAttr.value}`;
|
let title = `Attribut : ${attr.label} ${subAttr.label} : ${subAttr.value}`;
|
||||||
@ -530,13 +529,8 @@ export class YggdrasillActor extends Actor {
|
|||||||
rollMode: game.settings.get("core", "rollMode"),
|
rollMode: game.settings.get("core", "rollMode"),
|
||||||
title: title,
|
title: title,
|
||||||
isBlesse: this.system.etat.etat == "blesse",
|
isBlesse: this.system.etat.etat == "blesse",
|
||||||
optionsBonusMalus: YggdrasillUtility.buildListOptions(-15, +15),
|
|
||||||
bonusMalus: 0,
|
|
||||||
bonusdefense: 0,
|
|
||||||
optionsBD: YggdrasillUtility.buildListOptions(0, +15),
|
|
||||||
optionsSR: YggdrasillUtility.buildSROptions( ),
|
|
||||||
sr: 0
|
|
||||||
}
|
}
|
||||||
|
this.addDefaultRoll(rollData)
|
||||||
let rollDialog = await YggdrasillRoll.create( this, rollData);
|
let rollDialog = await YggdrasillRoll.create( this, rollData);
|
||||||
console.log(rollDialog);
|
console.log(rollDialog);
|
||||||
rollDialog.render( true );
|
rollDialog.render( true );
|
||||||
@ -544,11 +538,23 @@ export class YggdrasillActor extends Actor {
|
|||||||
ui.notifications.warn("Attribut non trouvée");
|
ui.notifications.warn("Attribut non trouvée");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
/* -------------------------------------------- */
|
||||||
|
addDefaultRoll(rollData) {
|
||||||
|
rollData.optionsBonusMalus= YggdrasillUtility.createOptions(-15, 15)
|
||||||
|
rollData.bonusMalus= "0"
|
||||||
|
rollData.optionsFuror= YggdrasillUtility.createOptions(0, this.getCurrentFuror())
|
||||||
|
rollData.furorUsage= "0"
|
||||||
|
rollData.optionsBD= YggdrasillUtility.createOptions(0, +15)
|
||||||
|
rollData.sr= "0"
|
||||||
|
rollData.puissanceRune = 1
|
||||||
|
rollData.optionsPuissanceRune= YggdrasillUtility.createOptions(1, +15)
|
||||||
|
rollData.supportRune= "peau"
|
||||||
|
|
||||||
|
rollData.config= game.system.config
|
||||||
|
}
|
||||||
/* -------------------------------------------- */
|
/* -------------------------------------------- */
|
||||||
async rollCarac( categName, caracName) {
|
async rollCarac( categName, caracName) {
|
||||||
let carac = duplicate(this.system.carac[categName].carac[caracName]);
|
let carac = foundry.utils.duplicate(this.system.carac[categName].carac[caracName]);
|
||||||
console.log("CARAC : ", carac, this.system.carac);
|
|
||||||
if ( carac) {
|
if ( carac) {
|
||||||
let rollData = {
|
let rollData = {
|
||||||
mode: "carac",
|
mode: "carac",
|
||||||
@ -562,14 +568,9 @@ export class YggdrasillActor extends Actor {
|
|||||||
isEpuise: this.isEpuise(),
|
isEpuise: this.isEpuise(),
|
||||||
isBlesse: this.isBlesse(),
|
isBlesse: this.isBlesse(),
|
||||||
isMeurtri: this.isMeurtri(),
|
isMeurtri: this.isMeurtri(),
|
||||||
optionsBonusMalus: YggdrasillUtility.buildListOptions(-15, +15),
|
|
||||||
bonusMalus: 0,
|
|
||||||
optionsFuror: YggdrasillUtility.buildListOptions(0, this.getCurrentFuror() ),
|
|
||||||
furorUsage: 0,
|
|
||||||
optionsSR: YggdrasillUtility.buildSROptions( ),
|
|
||||||
optionsBD: YggdrasillUtility.buildListOptions(0, +15),
|
|
||||||
sr: 0
|
|
||||||
}
|
}
|
||||||
|
this.addDefaultRoll(rollData)
|
||||||
|
console.log("CARAC : ", rollData, this.system.carac);
|
||||||
let rollDialog = await YggdrasillRoll.create( this, rollData);
|
let rollDialog = await YggdrasillRoll.create( this, rollData);
|
||||||
console.log(rollDialog);
|
console.log(rollDialog);
|
||||||
rollDialog.render( true );
|
rollDialog.render( true );
|
||||||
@ -591,17 +592,12 @@ export class YggdrasillActor extends Actor {
|
|||||||
img: competence.img,
|
img: competence.img,
|
||||||
rollMode: game.settings.get("core", "rollMode"),
|
rollMode: game.settings.get("core", "rollMode"),
|
||||||
title: `Compétence ${competence.name} : ${competence.system.niveau}`,
|
title: `Compétence ${competence.name} : ${competence.system.niveau}`,
|
||||||
competence: duplicate(competence),
|
competence: foundry.utils.duplicate(competence),
|
||||||
isEpuise: this.isEpuise(),
|
isEpuise: this.isEpuise(),
|
||||||
isBlesse: this.isBlesse(),
|
isBlesse: this.isBlesse(),
|
||||||
isMeurtri: this.isMeurtri(),
|
isMeurtri: this.isMeurtri(),
|
||||||
optionsBonusMalus: YggdrasillUtility.buildListOptions(-15, +15),
|
|
||||||
bonusMalus: 0,
|
|
||||||
optionsFuror: YggdrasillUtility.buildListOptions(0, this.getCurrentFuror() ),
|
|
||||||
furorUsage: 0,
|
|
||||||
optionsSR: YggdrasillUtility.buildSROptions( ),
|
|
||||||
sr: 0
|
|
||||||
}
|
}
|
||||||
|
this.addDefaultRoll(rollData)
|
||||||
let rollDialog = await YggdrasillRoll.create( this, rollData);
|
let rollDialog = await YggdrasillRoll.create( this, rollData);
|
||||||
console.log(rollDialog);
|
console.log(rollDialog);
|
||||||
rollDialog.render( true );
|
rollDialog.render( true );
|
||||||
@ -612,10 +608,10 @@ export class YggdrasillActor extends Actor {
|
|||||||
|
|
||||||
/* -------------------------------------------- */
|
/* -------------------------------------------- */
|
||||||
getAttaqueData( mode ) {
|
getAttaqueData( mode ) {
|
||||||
let attackData = duplicate(attackMode[mode]);
|
let attackData = foundry.utils.duplicate(attackMode[mode]);
|
||||||
if ( attackData){
|
if ( attackData){
|
||||||
attackData.mode = mode;
|
attackData.mode = mode;
|
||||||
attackData.carac = duplicate(this.system.carac[attackData.categName].carac[attackData.caracName]);
|
attackData.carac = foundry.utils.duplicate(this.system.carac[attackData.categName].carac[attackData.caracName]);
|
||||||
if ( attackData.malus != 0) {
|
if ( attackData.malus != 0) {
|
||||||
let malusTab = attackData.malus.split(';');
|
let malusTab = attackData.malus.split(';');
|
||||||
attackData.malus = this.system.carac[attackData.categName].carac[malusTab[0]].value * Number(malusTab[1])
|
attackData.malus = this.system.carac[attackData.categName].carac[malusTab[0]].value * Number(malusTab[1])
|
||||||
@ -634,10 +630,10 @@ export class YggdrasillActor extends Actor {
|
|||||||
|
|
||||||
/* -------------------------------------------- */
|
/* -------------------------------------------- */
|
||||||
getTirData( mode) {
|
getTirData( mode) {
|
||||||
let attackData = duplicate( tirMode[mode] );
|
let attackData = foundry.utils.duplicate( tirMode[mode] );
|
||||||
if ( attackData){
|
if ( attackData){
|
||||||
attackData.mode = mode;
|
attackData.mode = mode;
|
||||||
attackData.carac = duplicate(this.system.carac[attackData.categName].carac[attackData.caracName]);
|
attackData.carac = foundry.utils.duplicate(this.system.carac[attackData.categName].carac[attackData.caracName]);
|
||||||
if ( attackData.malus != 0) {
|
if ( attackData.malus != 0) {
|
||||||
let malusTab = attackData.malus.split(';');
|
let malusTab = attackData.malus.split(';');
|
||||||
attackData.malus = this.system.carac[attackData.categName].carac[malusTab[0]].value * Number(malusTab[1])
|
attackData.malus = this.system.carac[attackData.categName].carac[malusTab[0]].value * Number(malusTab[1])
|
||||||
@ -662,11 +658,11 @@ export class YggdrasillActor extends Actor {
|
|||||||
|
|
||||||
let carac;
|
let carac;
|
||||||
if ( magie == "sejdr") {
|
if ( magie == "sejdr") {
|
||||||
carac = duplicate(this.system.carac.ame.carac.instinct);
|
carac = foundry.utils.duplicate(this.system.carac.ame.carac.instinct);
|
||||||
} else if ( magie == "rune") {
|
} else if ( magie == "rune") {
|
||||||
carac = duplicate(this.system.carac.ame.carac.communication);
|
carac = foundry.utils.duplicate(this.system.carac.ame.carac.communication);
|
||||||
} else {
|
} else {
|
||||||
carac = duplicate(this.system.carac.ame.carac.charisme);
|
carac = foundry.utils.duplicate(this.system.carac.ame.carac.charisme);
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( sort && competence) {
|
if ( sort && competence) {
|
||||||
@ -681,10 +677,10 @@ export class YggdrasillActor extends Actor {
|
|||||||
rollMode: game.settings.get("core", "rollMode"),
|
rollMode: game.settings.get("core", "rollMode"),
|
||||||
title: magie + " - " + sort.name,
|
title: magie + " - " + sort.name,
|
||||||
selectedCarac: carac,
|
selectedCarac: carac,
|
||||||
agiliteCarac: duplicate(this.system.carac.corps.carac.agilite),
|
agiliteCarac: foundry.utils.duplicate(this.system.carac.corps.carac.agilite),
|
||||||
instinctCarac: duplicate(this.system.carac.ame.carac.instinct),
|
instinctCarac: foundry.utils.duplicate(this.system.carac.ame.carac.instinct),
|
||||||
sort: duplicate(sort),
|
sort: foundry.utils.duplicate(sort),
|
||||||
competence: duplicate(competence),
|
competence: foundry.utils.duplicate(competence),
|
||||||
dureeGaldr: "1d5a",
|
dureeGaldr: "1d5a",
|
||||||
nbCibles: "1",
|
nbCibles: "1",
|
||||||
zoneGaldr: "INS10cm3",
|
zoneGaldr: "INS10cm3",
|
||||||
@ -692,17 +688,9 @@ export class YggdrasillActor extends Actor {
|
|||||||
isEpuise: this.isEpuise(),
|
isEpuise: this.isEpuise(),
|
||||||
isBlesse: this.isBlesse(),
|
isBlesse: this.isBlesse(),
|
||||||
isMeurtri: this.isMeurtri(),
|
isMeurtri: this.isMeurtri(),
|
||||||
optionsBonusMalus: YggdrasillUtility.buildListOptions(-15, +15),
|
|
||||||
optionsBD: YggdrasillUtility.buildListOptions(0, +15),
|
|
||||||
bonusMalus: 0,
|
|
||||||
optionsFuror: YggdrasillUtility.buildListOptions(0, this.getCurrentFuror() ),
|
|
||||||
furorUsage: 0,
|
|
||||||
optionsSR: YggdrasillUtility.buildSROptions( ),
|
|
||||||
sr: 14,
|
|
||||||
puissanceRune: 1,
|
|
||||||
optionsPuissanceRune: YggdrasillUtility.buildListOptions(1, 15),
|
|
||||||
supportRune: "peau",
|
|
||||||
}
|
}
|
||||||
|
this.addDefaultRoll(rollData)
|
||||||
|
rollData.sr = 14
|
||||||
let rollDialog = await YggdrasillRoll.create( this, rollData);
|
let rollDialog = await YggdrasillRoll.create( this, rollData);
|
||||||
console.log(rollDialog);
|
console.log(rollDialog);
|
||||||
rollDialog.render( true );
|
rollDialog.render( true );
|
||||||
@ -736,21 +724,16 @@ export class YggdrasillActor extends Actor {
|
|||||||
img: competence.img,
|
img: competence.img,
|
||||||
rollMode: game.settings.get("core", "rollMode"),
|
rollMode: game.settings.get("core", "rollMode"),
|
||||||
title: "Attaque !",
|
title: "Attaque !",
|
||||||
selectedCarac: duplicate(this.system.carac.corps.carac.agilite),
|
selectedCarac: foundry.utils.duplicate(this.system.carac.corps.carac.agilite),
|
||||||
arme: duplicate(arme),
|
arme: foundry.utils.duplicate(arme),
|
||||||
competence: duplicate(competence),
|
competence: foundry.utils.duplicate(competence),
|
||||||
bonusdefense: 0,
|
bonusdefense: 0,
|
||||||
isEpuise: this.isEpuise(),
|
isEpuise: this.isEpuise(),
|
||||||
isBlesse: this.isBlesse(),
|
isBlesse: this.isBlesse(),
|
||||||
isMeurtri: this.isMeurtri(),
|
isMeurtri: this.isMeurtri()
|
||||||
optionsBonusMalus: YggdrasillUtility.buildListOptions(-15, +15),
|
|
||||||
optionsBD: YggdrasillUtility.buildListOptions(0, +15),
|
|
||||||
bonusMalus: 0,
|
|
||||||
optionsFuror: YggdrasillUtility.buildListOptions(0, this.getCurrentFuror() ),
|
|
||||||
furorUsage: 0,
|
|
||||||
optionsSR: YggdrasillUtility.buildSROptions( ),
|
|
||||||
sr: 14
|
|
||||||
}
|
}
|
||||||
|
this.addDefaultRoll(rollData)
|
||||||
|
rollData.sr = 14
|
||||||
let rollDialog = await YggdrasillRoll.create( this, rollData);
|
let rollDialog = await YggdrasillRoll.create( this, rollData);
|
||||||
console.log(rollDialog);
|
console.log(rollDialog);
|
||||||
rollDialog.render( true );
|
rollDialog.render( true );
|
||||||
|
@ -22,7 +22,7 @@ export class YggdrasillCombat extends Combat {
|
|||||||
|
|
||||||
// Send a chat message
|
// Send a chat message
|
||||||
let rollMode = messageOptions.rollMode || game.settings.get("core", "rollMode");
|
let rollMode = messageOptions.rollMode || game.settings.get("core", "rollMode");
|
||||||
let messageData = mergeObject(
|
let messageData = foundry.utils.mergeObject(
|
||||||
{
|
{
|
||||||
speaker: {
|
speaker: {
|
||||||
scene: canvas.scene._id,
|
scene: canvas.scene._id,
|
||||||
|
111
modules/yggdrasill-config.js
Normal file
111
modules/yggdrasill-config.js
Normal file
@ -0,0 +1,111 @@
|
|||||||
|
|
||||||
|
export const YGGDRASILL_CONFIG = {
|
||||||
|
|
||||||
|
optionsEtat: [
|
||||||
|
{ key: "fringant", label: "Fringant" },
|
||||||
|
{ key: "blesse", label: "Blessé" },
|
||||||
|
{ key: "mort", label: "Mort" }
|
||||||
|
],
|
||||||
|
|
||||||
|
optionsArme: [
|
||||||
|
{ key: "lutte", label: "Lutte" },
|
||||||
|
{ key: "improvisee", label: "Improvisée" },
|
||||||
|
{ key: "courte", label: "Courte" },
|
||||||
|
{ key: "longue", label: "Longue" },
|
||||||
|
{ key: "deuxmains", label: "A Deux Mains" },
|
||||||
|
{ key: "hast", label: "Hast" }
|
||||||
|
],
|
||||||
|
optionsArmeTir: [
|
||||||
|
{ key: "jet", label: "Jet" },
|
||||||
|
{ key: "tir", label: "Tir" }
|
||||||
|
],
|
||||||
|
optionsArmure: [
|
||||||
|
{ key: "armure", label: "Armure" },
|
||||||
|
{ key: "piecearmure", label: "Pièce d'Armure" }
|
||||||
|
],
|
||||||
|
optionsBouclier: [
|
||||||
|
{ key: "bouclier", label: "Bouclier" }
|
||||||
|
],
|
||||||
|
optionsCompetence: [
|
||||||
|
{ key: "generale", label: "Générale" },
|
||||||
|
{ key: "magique", label: "Magique" },
|
||||||
|
{ key: "martiale", label: "Martiale" }
|
||||||
|
],
|
||||||
|
optionsMaladie: [
|
||||||
|
{ key: "mineure", label: "Mineure" },
|
||||||
|
{ key: "moderee", label: "Modérée" },
|
||||||
|
{ key: "majeure", label: "Majeure" }
|
||||||
|
],
|
||||||
|
optionsProuesse: [
|
||||||
|
{ key: "attaque", label: "Attaque" },
|
||||||
|
{ key: "defensive", label: "Défensive" },
|
||||||
|
{ key: "utilitaire", label: "Utilitaire" }
|
||||||
|
]
|
||||||
|
,
|
||||||
|
optionsGaldr: [
|
||||||
|
{ key:"malediction", label:"Malédictions" },
|
||||||
|
{ key:"illusion", label:"Illusions" },
|
||||||
|
{ key:"charme", label:"Charme" }
|
||||||
|
],
|
||||||
|
optionsAttaque: [
|
||||||
|
{ key:"classique", label:"Attaque classique" },
|
||||||
|
{ key:"force", label:"Attaque en force" },
|
||||||
|
{ key:"devastatrice", label:"Attaque dévastatrice" },
|
||||||
|
{ key:"precise", label:"Attaque Précise" },
|
||||||
|
{ key:"visee", label:"Attaque Visée" }
|
||||||
|
],
|
||||||
|
optionsSR : [
|
||||||
|
{key: "0", label: "Aucun"},
|
||||||
|
{key: "5", label: "Très Simple (5)"},
|
||||||
|
{key: "7", label: "Simple (7)"},
|
||||||
|
{key: "10", label: "Aisé (10)"},
|
||||||
|
{key: "14", label: "Moyen (14)"},
|
||||||
|
{key: "19", label: "Difficile (19)"},
|
||||||
|
{key: "25", label: "Très Difficile (25)"},
|
||||||
|
{key: "32", label: "Exceptionnel (32)"},
|
||||||
|
{key: "40", label: "Légendaire (40)"},
|
||||||
|
{key: "49", label: "Divin (49)"}
|
||||||
|
|
||||||
|
],
|
||||||
|
optionsCarac: [
|
||||||
|
{ key: "puissance", label: "Puissance" },
|
||||||
|
{ key: "vigueur", label: "Vigueur" },
|
||||||
|
{ key: "agilite", label: "Agilité" },
|
||||||
|
{ key: "intellect", label: "Intellect" },
|
||||||
|
{ key: "perception", label: "Perception" },
|
||||||
|
{ key: "tenacite", label: "Tenacité" },
|
||||||
|
{ key: "charisme", label: "Charisme" },
|
||||||
|
{ key: "communication", label: "Communication" },
|
||||||
|
{ key: "instinct", label: "Instinct" }
|
||||||
|
],
|
||||||
|
optionsDureeGaldr: [
|
||||||
|
{ key:"1d5a", label:"1d5 Actions" },
|
||||||
|
{ key:"1d10t", label:"1d10 Tours" },
|
||||||
|
{ key:"1d10m", label:"1d10 Minutes" },
|
||||||
|
{ key:"1d10h", label:"1d10 Heures" },
|
||||||
|
{ key:"1d5j", label:"1d5 journées" }
|
||||||
|
],
|
||||||
|
optionsZoneGaldr: [
|
||||||
|
{ key:"INS10cm3", label:"INS x 10 cm3 (chat, balle, épée, ...)" },
|
||||||
|
{ key:"INS50cm3", label:"INS x 50 cm3 (tabouret, enfant, ...)" },
|
||||||
|
{ key:"INS1m3", label:"INS x 1 m3 (homme, 2 enfants, ...)" },
|
||||||
|
{ key:"INS5m3", label:"INS x 5 m3 (charrette, 2 cavaliers, ...)" },
|
||||||
|
{ key:"INS10m3", label:"INS x 10 m3 (maison, kraken, bateau, ...)" }
|
||||||
|
],
|
||||||
|
optionsNbCibles: [
|
||||||
|
{ key: "1", label: "1" },
|
||||||
|
{ key: "2_4", label: "2 à 4" },
|
||||||
|
{ key: "5_9", label: "5 à 9" },
|
||||||
|
{ key: "10_49", label: "10 à 49" },
|
||||||
|
{ key: "50plus", label: "50 et +" }
|
||||||
|
],
|
||||||
|
optionsSupportRunes: [
|
||||||
|
{ key: "peau", label: "Peau" },
|
||||||
|
{ key: "tissu", label: "Tissu" },
|
||||||
|
{ key: "cuir", label: "Cuir" },
|
||||||
|
{ key: "bois", label: "Bois" },
|
||||||
|
{ key: "pierremetal", label: "Pierre, Métal" }
|
||||||
|
]
|
||||||
|
|
||||||
|
|
||||||
|
}
|
@ -6,12 +6,12 @@
|
|||||||
import { YggdrasillUtility } from "./yggdrasill-utility.js";
|
import { YggdrasillUtility } from "./yggdrasill-utility.js";
|
||||||
|
|
||||||
/* -------------------------------------------- */
|
/* -------------------------------------------- */
|
||||||
export class YggdrasillFigurantSheet extends ActorSheet {
|
export class YggdrasillFigurantSheet extends foundry.appv1.sheets.ActorSheet {
|
||||||
|
|
||||||
/** @override */
|
/** @override */
|
||||||
static get defaultOptions() {
|
static get defaultOptions() {
|
||||||
|
|
||||||
return mergeObject(super.defaultOptions, {
|
return foundry.utils.mergeObject(super.defaultOptions, {
|
||||||
classes: ["yggdrasill", "sheet", "actor"],
|
classes: ["yggdrasill", "sheet", "actor"],
|
||||||
template: "systems/fvtt-yggdrasill/templates/figurant-sheet.html",
|
template: "systems/fvtt-yggdrasill/templates/figurant-sheet.html",
|
||||||
width: 640,
|
width: 640,
|
||||||
@ -24,8 +24,8 @@ export class YggdrasillFigurantSheet extends ActorSheet {
|
|||||||
|
|
||||||
/* -------------------------------------------- */
|
/* -------------------------------------------- */
|
||||||
async getData() {
|
async getData() {
|
||||||
const objectData = duplicate(this.object)
|
const objectData = foundry.utils.duplicate(this.object)
|
||||||
|
|
||||||
let formData = {
|
let formData = {
|
||||||
title: this.title,
|
title: this.title,
|
||||||
id: objectData.id,
|
id: objectData.id,
|
||||||
@ -40,14 +40,15 @@ export class YggdrasillFigurantSheet extends ActorSheet {
|
|||||||
effetsmagiques: this.actor.getEffetsMagiques(),
|
effetsmagiques: this.actor.getEffetsMagiques(),
|
||||||
encTotal: this.actor.getEncTotal(),
|
encTotal: this.actor.getEncTotal(),
|
||||||
monnaies: this.actor.getMonnaies(),
|
monnaies: this.actor.getMonnaies(),
|
||||||
optionsAttr: new Array(41).fill('option'),
|
optionsAttr: Array.fromRange(41, 1),
|
||||||
optionsBase: YggdrasillUtility.createDirectOptionList(0, 20),
|
optionsBase: YggdrasillUtility.createDirectOptionList(0, 20),
|
||||||
description: await TextEditor.enrichHTML(this.object.system.description, {async: true}),
|
description: await foundry.applications.ux.TextEditor.implementation.enrichHTML(this.object.system.description, {async: true}),
|
||||||
notes: await TextEditor.enrichHTML(this.object.system.notes, {async: true}),
|
notes: await foundry.applications.ux.TextEditor.implementation.enrichHTML(this.object.system.notes, {async: true}),
|
||||||
options: this.options,
|
options: this.options,
|
||||||
owner: this.document.isOwner,
|
owner: this.document.isOwner,
|
||||||
editScore: this.options.editScore,
|
editScore: this.options.editScore,
|
||||||
isGM: game.user.isGM
|
isGM: game.user.isGM,
|
||||||
|
config: game.system.config
|
||||||
}
|
}
|
||||||
|
|
||||||
console.log("FIGURANT : ", formData);
|
console.log("FIGURANT : ", formData);
|
||||||
@ -73,7 +74,7 @@ export class YggdrasillFigurantSheet extends ActorSheet {
|
|||||||
const li = $(ev.currentTarget).parents(".item");
|
const li = $(ev.currentTarget).parents(".item");
|
||||||
YggdrasillUtility.confirmDelete(this, li);
|
YggdrasillUtility.confirmDelete(this, li);
|
||||||
});
|
});
|
||||||
|
|
||||||
html.find('.equipement-moins').click(event => {
|
html.find('.equipement-moins').click(event => {
|
||||||
const li = $(event.currentTarget).parents(".item");
|
const li = $(event.currentTarget).parents(".item");
|
||||||
this.actor.decrementeQuantite( li.data("item-id") );
|
this.actor.decrementeQuantite( li.data("item-id") );
|
||||||
@ -88,16 +89,16 @@ export class YggdrasillFigurantSheet extends ActorSheet {
|
|||||||
let attrKey = li.data("attr-key");
|
let attrKey = li.data("attr-key");
|
||||||
let attrSubKey = $(event.currentTarget).data("attr-sub-key");
|
let attrSubKey = $(event.currentTarget).data("attr-sub-key");
|
||||||
this.actor.rollAttribute(attrKey, attrSubKey);
|
this.actor.rollAttribute(attrKey, attrSubKey);
|
||||||
});
|
});
|
||||||
html.find('.lock-unlock-sheet').click((event) => {
|
html.find('.lock-unlock-sheet').click((event) => {
|
||||||
this.options.editScore = !this.options.editScore;
|
this.options.editScore = !this.options.editScore;
|
||||||
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.items.get(itemId);
|
const item = this.actor.items.get(itemId);
|
||||||
item.sheet.render(true);
|
item.sheet.render(true);
|
||||||
});
|
});
|
||||||
html.find('.item-equip').click(ev => {
|
html.find('.item-equip').click(ev => {
|
||||||
const li = $(ev.currentTarget).parents(".item");
|
const li = $(ev.currentTarget).parents(".item");
|
||||||
this.actor.equiperObject( li.data("item-id") );
|
this.actor.equiperObject( li.data("item-id") );
|
||||||
|
@ -4,11 +4,11 @@ import { YggdrasillUtility } from "./yggdrasill-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 YggdrasillItemSheet extends ItemSheet {
|
export class YggdrasillItemSheet extends foundry.appv1.sheets.ItemSheet {
|
||||||
|
|
||||||
/** @override */
|
/** @override */
|
||||||
static get defaultOptions() {
|
static get defaultOptions() {
|
||||||
return mergeObject(super.defaultOptions, {
|
return foundry.utils.mergeObject(super.defaultOptions, {
|
||||||
classes: ["fvtt-yggdrasill", "sheet", "item"],
|
classes: ["fvtt-yggdrasill", "sheet", "item"],
|
||||||
template: "systems/fvtt-yggdrasill/templates/item-sheet.html",
|
template: "systems/fvtt-yggdrasill/templates/item-sheet.html",
|
||||||
width: 550,
|
width: 550,
|
||||||
@ -26,7 +26,7 @@ export class YggdrasillItemSheet extends ItemSheet {
|
|||||||
{
|
{
|
||||||
class: "post",
|
class: "post",
|
||||||
icon: "fas fa-comment",
|
icon: "fas fa-comment",
|
||||||
onclick: ev => {}
|
onclick: ev => {}
|
||||||
})
|
})
|
||||||
return buttons
|
return buttons
|
||||||
}
|
}
|
||||||
@ -40,11 +40,11 @@ export class YggdrasillItemSheet extends ItemSheet {
|
|||||||
sheetBody.css("height", bodyHeight);
|
sheetBody.css("height", bodyHeight);
|
||||||
return position;
|
return position;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* -------------------------------------------- */
|
/* -------------------------------------------- */
|
||||||
async getData() {
|
async getData() {
|
||||||
const objectData = duplicate(this.object);
|
const objectData = foundry.utils.duplicate(this.object);
|
||||||
|
|
||||||
let formData = {
|
let formData = {
|
||||||
title: this.title,
|
title: this.title,
|
||||||
id: objectData.id,
|
id: objectData.id,
|
||||||
@ -55,16 +55,17 @@ export class YggdrasillItemSheet extends ItemSheet {
|
|||||||
cssClass: this.isEditable ? "editable" : "locked",
|
cssClass: this.isEditable ? "editable" : "locked",
|
||||||
data: foundry.utils.deepClone(this.object.system),
|
data: foundry.utils.deepClone(this.object.system),
|
||||||
optionsBase: YggdrasillUtility.createDirectOptionList(0, 20),
|
optionsBase: YggdrasillUtility.createDirectOptionList(0, 20),
|
||||||
optionsNiveaux4: YggdrasillUtility.buildListOptions(1, 5),
|
optionsNiveaux4: Array.fromRange(5, 1),
|
||||||
description: await TextEditor.enrichHTML(this.object.system.description, {async: true}),
|
description: await foundry.applications.ux.TextEditor.implementation.enrichHTML(this.object.system.description, {async: true}),
|
||||||
limited: this.object.limited,
|
limited: this.object.limited,
|
||||||
options: this.options,
|
options: this.options,
|
||||||
owner: this.document.isOwner,
|
owner: this.document.isOwner,
|
||||||
isGM: game.user.isGM
|
isGM: game.user.isGM,
|
||||||
|
config: game.system.config
|
||||||
}
|
}
|
||||||
return formData;
|
return formData;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* -------------------------------------------- */
|
/* -------------------------------------------- */
|
||||||
/** @override */
|
/** @override */
|
||||||
activateListeners(html) {
|
activateListeners(html) {
|
||||||
@ -72,7 +73,7 @@ export class YggdrasillItemSheet 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");
|
||||||
@ -84,9 +85,9 @@ export class YggdrasillItemSheet extends ItemSheet {
|
|||||||
const li = $(ev.currentTarget).parents(".item");
|
const li = $(ev.currentTarget).parents(".item");
|
||||||
this.object.options.actor.deleteEmbeddedDocuments( "Item", [li.data("item-id") ] ).then( this.render(true));
|
this.object.options.actor.deleteEmbeddedDocuments( "Item", [li.data("item-id") ] ).then( this.render(true));
|
||||||
});
|
});
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* -------------------------------------------- */
|
/* -------------------------------------------- */
|
||||||
get template()
|
get template()
|
||||||
{
|
{
|
||||||
|
@ -14,6 +14,8 @@ import { YggdrasillActorSheet } from "./yggdrasill-actor-sheet.js";
|
|||||||
import { YggdrasillFigurantSheet } from "./yggdrasill-figurant-sheet.js";
|
import { YggdrasillFigurantSheet } from "./yggdrasill-figurant-sheet.js";
|
||||||
import { YggdrasillUtility } from "./yggdrasill-utility.js";
|
import { YggdrasillUtility } from "./yggdrasill-utility.js";
|
||||||
import { YggdrasillCombat } from "./yggdrasill-combat.js";
|
import { YggdrasillCombat } from "./yggdrasill-combat.js";
|
||||||
|
import { YGGDRASILL_CONFIG } from "./yggdrasill-config.js";
|
||||||
|
import { ClassCounter} from "https://www.uberwald.me/fvtt_appcount/count-class-ready.js"
|
||||||
|
|
||||||
/* -------------------------------------------- */
|
/* -------------------------------------------- */
|
||||||
/* Foundry VTT Initialization */
|
/* Foundry VTT Initialization */
|
||||||
@ -28,12 +30,14 @@ Hooks.once("init", async function () {
|
|||||||
YggdrasillUtility.preloadHandlebarsTemplates();
|
YggdrasillUtility.preloadHandlebarsTemplates();
|
||||||
|
|
||||||
/* -------------------------------------------- */
|
/* -------------------------------------------- */
|
||||||
// Set an initiative formula for the system
|
// Set an initiative formula for the system
|
||||||
CONFIG.Combat.initiative = {
|
CONFIG.Combat.initiative = {
|
||||||
formula: "1d20",
|
formula: "1d20",
|
||||||
decimals: 0
|
decimals: 0
|
||||||
};
|
};
|
||||||
|
|
||||||
|
game.system.config = YGGDRASILL_CONFIG
|
||||||
|
|
||||||
/* -------------------------------------------- */
|
/* -------------------------------------------- */
|
||||||
game.socket.on("system.fvtt-yggdrasill", data => {
|
game.socket.on("system.fvtt-yggdrasill", data => {
|
||||||
YggdrasillUtility.onSocketMesssage(data);
|
YggdrasillUtility.onSocketMesssage(data);
|
||||||
@ -48,22 +52,16 @@ 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("fvtt-yggdrasill", YggdrasillActorSheet, { types: ["personnage"], makeDefault: true });
|
foundry.documents.collections.Actors.registerSheet("fvtt-yggdrasill", YggdrasillActorSheet, { types: ["personnage"], makeDefault: true });
|
||||||
Actors.registerSheet("fvtt-yggdrasill", YggdrasillFigurantSheet, { types: ["figurant"], makeDefault: false });
|
foundry.documents.collections.Actors.registerSheet("fvtt-yggdrasill", YggdrasillFigurantSheet, { types: ["figurant"], makeDefault: false });
|
||||||
Items.unregisterSheet("core", ItemSheet);
|
foundry.documents.collections.Items.unregisterSheet("core", foundry.appv1.sheets.ItemSheet);
|
||||||
Items.registerSheet("fvtt-yggdrasill", YggdrasillItemSheet, { makeDefault: true });
|
foundry.documents.collections.Items.registerSheet("fvtt-yggdrasill", YggdrasillItemSheet, { makeDefault: true });
|
||||||
|
|
||||||
// Init/registers
|
|
||||||
Hooks.on('renderChatLog', (log, html, data) => {
|
|
||||||
//YggdrasillUtility.registerChatCallbacks(html);
|
|
||||||
});
|
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
/* -------------------------------------------- */
|
/* -------------------------------------------- */
|
||||||
function welcomeMessage() {
|
function welcomeMessage() {
|
||||||
//ChatUtility.removeMyChatMessageContaining('<div id="welcome-message-sos">');
|
|
||||||
ChatMessage.create({
|
ChatMessage.create({
|
||||||
user: game.user.id,
|
user: game.user.id,
|
||||||
whisper: [game.user.id],
|
whisper: [game.user.id],
|
||||||
@ -74,29 +72,6 @@ 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: "",
|
|
||||||
type: String
|
|
||||||
});
|
|
||||||
|
|
||||||
let worldKey = game.settings.get(registerKey, "world-key")
|
|
||||||
if ( worldKey == undefined || worldKey == "" ) {
|
|
||||||
worldKey = randomID(32)
|
|
||||||
game.settings.set(registerKey, "world-key", worldKey )
|
|
||||||
}
|
|
||||||
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 */
|
||||||
/* -------------------------------------------- */
|
/* -------------------------------------------- */
|
||||||
@ -110,7 +85,8 @@ Hooks.once("ready", function () {
|
|||||||
user: game.user._id
|
user: game.user._id
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
registerUsageCount("fvtt-yggdrasill")
|
|
||||||
|
ClassCounter.registerUsageCount()
|
||||||
welcomeMessage()
|
welcomeMessage()
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -11,24 +11,24 @@ export class YggdrasillRoll extends Dialog {
|
|||||||
let html
|
let html
|
||||||
let h = 440;
|
let h = 440;
|
||||||
if ( rollData.mode == "competence") {
|
if ( rollData.mode == "competence") {
|
||||||
html = await renderTemplate('systems/fvtt-yggdrasill/templates/roll-dialog-competence.html', rollData);
|
html = await foundry.applications.handlebars.renderTemplate('systems/fvtt-yggdrasill/templates/roll-dialog-competence.html', rollData);
|
||||||
h = 340;
|
h = 340;
|
||||||
} else if (rollData.mode == "carac") {
|
} else if (rollData.mode == "carac") {
|
||||||
html = await renderTemplate('systems/fvtt-yggdrasill/templates/roll-dialog-carac.html', rollData);
|
html = await foundry.applications.handlebars.renderTemplate('systems/fvtt-yggdrasill/templates/roll-dialog-carac.html', rollData);
|
||||||
h = 320;
|
h = 320;
|
||||||
} else if (rollData.mode == "attribut") {
|
} else if (rollData.mode == "attribut") {
|
||||||
html = await renderTemplate('systems/fvtt-yggdrasill/templates/roll-dialog-attribut.html', rollData);
|
html = await foundry.applications.handlebars.renderTemplate('systems/fvtt-yggdrasill/templates/roll-dialog-attribut.html', rollData);
|
||||||
h = 320;
|
h = 320;
|
||||||
} else if (rollData.mode == "armecc") {
|
} else if (rollData.mode == "armecc") {
|
||||||
html = await renderTemplate('systems/fvtt-yggdrasill/templates/roll-dialog-armecc.html', rollData);
|
html = await foundry.applications.handlebars.renderTemplate('systems/fvtt-yggdrasill/templates/roll-dialog-armecc.html', rollData);
|
||||||
} else if (rollData.mode == "sejdr") {
|
} else if (rollData.mode == "sejdr") {
|
||||||
html = await renderTemplate('systems/fvtt-yggdrasill/templates/roll-dialog-sejdr.html', rollData);
|
html = await foundry.applications.handlebars.renderTemplate('systems/fvtt-yggdrasill/templates/roll-dialog-sejdr.html', rollData);
|
||||||
} else if (rollData.mode == "rune") {
|
} else if (rollData.mode == "rune") {
|
||||||
html = await renderTemplate('systems/fvtt-yggdrasill/templates/roll-dialog-rune.html', rollData);
|
html = await foundry.applications.handlebars.renderTemplate('systems/fvtt-yggdrasill/templates/roll-dialog-rune.html', rollData);
|
||||||
} else if (rollData.mode == "galdr") {
|
} else if (rollData.mode == "galdr") {
|
||||||
html = await renderTemplate('systems/fvtt-yggdrasill/templates/roll-dialog-galdr.html', rollData);
|
html = await foundry.applications.handlebars.renderTemplate('systems/fvtt-yggdrasill/templates/roll-dialog-galdr.html', rollData);
|
||||||
} else {
|
} else {
|
||||||
html = await renderTemplate('systems/fvtt-yggdrasill/templates/roll-dialog-armetir.html', rollData);
|
html = await foundry.applications.handlebars.renderTemplate('systems/fvtt-yggdrasill/templates/roll-dialog-armetir.html', rollData);
|
||||||
}
|
}
|
||||||
let options = { classes: ["yggdrasilldialog"], width: 600, height: h, 'z-index': 99999 };
|
let options = { classes: ["yggdrasilldialog"], width: 600, height: h, 'z-index': 99999 };
|
||||||
return new YggdrasillRoll(actor, rollData, html, options );
|
return new YggdrasillRoll(actor, rollData, html, options );
|
||||||
@ -39,11 +39,11 @@ export class YggdrasillRoll extends Dialog {
|
|||||||
let conf = {
|
let conf = {
|
||||||
title: (rollData.mode == "competence") ? "Compétence" : "Caractéristique",
|
title: (rollData.mode == "competence") ? "Compétence" : "Caractéristique",
|
||||||
content: html,
|
content: html,
|
||||||
buttons: {
|
buttons: {
|
||||||
roll: {
|
roll: {
|
||||||
icon: '<i class="fas fa-check"></i>',
|
icon: '<i class="fas fa-check"></i>',
|
||||||
label: "Lancer le Test",
|
label: "Lancer le Test",
|
||||||
callback: () => { this.roll() }
|
callback: () => { this.roll() }
|
||||||
},
|
},
|
||||||
cancel: {
|
cancel: {
|
||||||
icon: '<i class="fas fa-times"></i>',
|
icon: '<i class="fas fa-times"></i>',
|
||||||
@ -68,7 +68,7 @@ export class YggdrasillRoll extends Dialog {
|
|||||||
YggdrasillUtility.rollYggdrasill( this.rollData )
|
YggdrasillUtility.rollYggdrasill( this.rollData )
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* -------------------------------------------- */
|
/* -------------------------------------------- */
|
||||||
updateGaldrSR( ) {
|
updateGaldrSR( ) {
|
||||||
let sdDuree = Number(dureeGaldrSD[this.rollData.dureeGaldr]);
|
let sdDuree = Number(dureeGaldrSD[this.rollData.dureeGaldr]);
|
||||||
@ -88,12 +88,12 @@ export class YggdrasillRoll extends Dialog {
|
|||||||
let support = 0;
|
let support = 0;
|
||||||
|
|
||||||
this.rollData.dureeRune = 6 - this.rollData.agiliteCarac.value;
|
this.rollData.dureeRune = 6 - this.rollData.agiliteCarac.value;
|
||||||
if ( this.rollData.supportRune == "peau") {
|
if ( this.rollData.supportRune == "peau") {
|
||||||
support = 3;
|
support = 3;
|
||||||
this.rollData.echelleDuree = "Actions";
|
this.rollData.echelleDuree = "Actions";
|
||||||
this.rollData.echelleDureeVie = "Heures"
|
this.rollData.echelleDureeVie = "Heures"
|
||||||
}
|
}
|
||||||
if ( this.rollData.supportRune == "tissu") {
|
if ( this.rollData.supportRune == "tissu") {
|
||||||
support = 6;
|
support = 6;
|
||||||
this.rollData.echelleDuree = "Tours";
|
this.rollData.echelleDuree = "Tours";
|
||||||
this.rollData.echelleDureeVie = "Jours"
|
this.rollData.echelleDureeVie = "Jours"
|
||||||
@ -124,7 +124,7 @@ export class YggdrasillRoll extends Dialog {
|
|||||||
activateListeners(html) {
|
activateListeners(html) {
|
||||||
super.activateListeners(html);
|
super.activateListeners(html);
|
||||||
|
|
||||||
var dialog = this;
|
let dialog = this;
|
||||||
function onLoad() {
|
function onLoad() {
|
||||||
if (dialog.rollData.mode == "competence") {
|
if (dialog.rollData.mode == "competence") {
|
||||||
let carac = dialog.actor.getCarac( "Puissance" );
|
let carac = dialog.actor.getCarac( "Puissance" );
|
||||||
@ -156,12 +156,12 @@ export class YggdrasillRoll extends Dialog {
|
|||||||
$("#caracValue").text(carac.value+"d10");
|
$("#caracValue").text(carac.value+"d10");
|
||||||
});
|
});
|
||||||
|
|
||||||
html.find('#typeAttack').change((event) => {
|
html.find('#typeAttack').change((event) => {
|
||||||
let attackType = event.currentTarget.value;
|
let attackType = event.currentTarget.value;
|
||||||
let attackDef
|
let attackDef
|
||||||
if ( this.rollData.mode == 'armecc')
|
if ( this.rollData.mode == 'armecc')
|
||||||
attackDef = this.actor.getAttaqueData( attackType);
|
attackDef = this.actor.getAttaqueData( attackType);
|
||||||
else
|
else
|
||||||
attackDef = this.actor.getTirData( attackType);
|
attackDef = this.actor.getTirData( attackType);
|
||||||
this.rollData.attackDef = attackDef;
|
this.rollData.attackDef = attackDef;
|
||||||
this.rollData.selectedCarac = attackDef.carac;
|
this.rollData.selectedCarac = attackDef.carac;
|
||||||
@ -192,8 +192,8 @@ export class YggdrasillRoll extends Dialog {
|
|||||||
this.rollData.zoneGaldr = event.currentTarget.value;
|
this.rollData.zoneGaldr = event.currentTarget.value;
|
||||||
this.updateGaldrSR();
|
this.updateGaldrSR();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
html.find('#bonusMalus').change((event) => {
|
html.find('#bonusMalus').change((event) => {
|
||||||
this.rollData.bonusMalus = Number(event.currentTarget.value);
|
this.rollData.bonusMalus = Number(event.currentTarget.value);
|
||||||
});
|
});
|
||||||
@ -208,5 +208,5 @@ export class YggdrasillRoll extends Dialog {
|
|||||||
});
|
});
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
@ -1,34 +1,38 @@
|
|||||||
/* -------------------------------------------- */
|
/* -------------------------------------------- */
|
||||||
//import { YggdrasillCombat } from "./yggdrasill-combat.js";
|
|
||||||
|
|
||||||
/* -------------------------------------------- */
|
/* -------------------------------------------- */
|
||||||
const dureeGaldrText = { "1d5a": "Actions", "1d10t": "Tours", "1d10m": "Minutes", "1d10h": "Heures", "1d5j": "Jours"};
|
const dureeGaldrText = { "1d5a": "Actions", "1d10t": "Tours", "1d10m": "Minutes", "1d10h": "Heures", "1d5j": "Jours"};
|
||||||
const ciblesGaldrText = { "1": "1", "2_4": "2 à 4", "5_9": "5 à 9", "10_49": "10 à 49", "50plus": "50 et plus"};
|
const ciblesGaldrText = { "1": "1", "2_4": "2 à 4", "5_9": "5 à 9", "10_49": "10 à 49", "50plus": "50 et plus"};
|
||||||
|
|
||||||
/* -------------------------------------------- */
|
/* -------------------------------------------- */
|
||||||
export class YggdrasillUtility {
|
export class YggdrasillUtility {
|
||||||
|
|
||||||
/* -------------------------------------------- */
|
/* -------------------------------------------- */
|
||||||
static async preloadHandlebarsTemplates() {
|
static async preloadHandlebarsTemplates() {
|
||||||
|
|
||||||
const templatePaths = [
|
const templatePaths = [
|
||||||
'systems/fvtt-yggdrasill/templates/actor-sheet.html',
|
'systems/fvtt-yggdrasill/templates/actor-sheet.html',
|
||||||
'systems/fvtt-yggdrasill/templates/editor-notes-gm.html',
|
'systems/fvtt-yggdrasill/templates/editor-notes-gm.html'
|
||||||
'systems/fvtt-yggdrasill/templates/hud-actor-attaque.html',
|
|
||||||
'systems/fvtt-yggdrasill/templates/hud-actor-sort.html'
|
|
||||||
]
|
]
|
||||||
return loadTemplates(templatePaths);
|
return foundry.applications.handlebars.loadTemplates(templatePaths);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* -------------------------------------------- */
|
/* -------------------------------------------- */
|
||||||
static createDirectSortedOptionList( min, max) {
|
static createDirectSortedOptionList( min, max) {
|
||||||
let options = [];
|
let options = [];
|
||||||
for(let i=min; i<=max; i++) {
|
for(let i=min; i<=max; i++) {
|
||||||
options.push( {value:i, text: `${i}` } );
|
options.push( {value:i, text: `${i}` } );
|
||||||
}
|
}
|
||||||
return options;
|
return options;
|
||||||
}
|
}
|
||||||
|
/* -------------------------------------------- */
|
||||||
|
static createOptions( min, max) {
|
||||||
|
let options = [];
|
||||||
|
for(let i=min; i<=max; i++) {
|
||||||
|
options.push( {key:i, label: `${i}` } );
|
||||||
|
}
|
||||||
|
return options;
|
||||||
|
}
|
||||||
/* -------------------------------------------- */
|
/* -------------------------------------------- */
|
||||||
static createDirectOptionList( min, max) {
|
static createDirectOptionList( min, max) {
|
||||||
let options = {};
|
let options = {};
|
||||||
@ -46,23 +50,6 @@ export class YggdrasillUtility {
|
|||||||
}
|
}
|
||||||
return options;
|
return options;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* -------------------------------------------- */
|
|
||||||
static buildSROptions( ) {
|
|
||||||
let options = ""
|
|
||||||
options += `<option value="0">Aucun</option>`
|
|
||||||
options += `<option value="5">Très Simple (5)</option>`
|
|
||||||
options += `<option value="7">Simple (7)</option>`
|
|
||||||
options += `<option value="10">Aisé (10)</option>`
|
|
||||||
options += `<option value="14">Moyen (14)</option>`
|
|
||||||
options += `<option value="19">Difficile (19)</option>`
|
|
||||||
options += `<option value="25">Trés Difficile (25)</option>`
|
|
||||||
options += `<option value="32">Exceptionnel (32)</option>`
|
|
||||||
options += `<option value="40">Légendaire (40)</option>`
|
|
||||||
options += `<option value="49">Divin (49)</option>`
|
|
||||||
return options;
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
/* -------------------------------------------- */
|
/* -------------------------------------------- */
|
||||||
static onSocketMesssage( msg ) {
|
static onSocketMesssage( msg ) {
|
||||||
@ -86,18 +73,14 @@ export class YggdrasillUtility {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* -------------------------------------------- */
|
/* -------------------------------------------- */
|
||||||
static async specificYggRoll( nbDice ) {
|
static async specificYggRoll( nbDice, isFurorUsage = false) {
|
||||||
return specificYggRoll(nbDice, false);
|
|
||||||
}
|
|
||||||
|
|
||||||
static async specificYggRoll( nbDice, isFurorUsage ) {
|
|
||||||
let rawDices = []
|
let rawDices = []
|
||||||
let rolls = []
|
let rolls = []
|
||||||
let maxTab = []
|
let maxTab = []
|
||||||
let maxTabMaxIndex = isFurorUsage ? nbDice : 2;
|
let maxTabMaxIndex = isFurorUsage ? nbDice : 2;
|
||||||
|
|
||||||
for (let i=0; i<nbDice; i++) {
|
for (let i=0; i<nbDice; i++) {
|
||||||
rolls[i] = new Roll("1d10x10").roll( {async: false}) //+sumDice+"+"+rollData.furorUsage+"d10+"+niveauCompetence+"+"+rollData.finalBM).roll( { async: false} );
|
rolls[i] = await new Roll("1d10x10").roll( ) //+sumDice+"+"+rollData.furorUsage+"d10+"+niveauCompetence+"+"+rollData.finalBM).roll( { async: false} );
|
||||||
if ( i == nbDice-1 ) {
|
if ( i == nbDice-1 ) {
|
||||||
await this.showDiceSoNice(rolls[i], game.settings.get("core", "rollMode") );
|
await this.showDiceSoNice(rolls[i], game.settings.get("core", "rollMode") );
|
||||||
} else {
|
} else {
|
||||||
@ -108,10 +91,10 @@ export class YggdrasillUtility {
|
|||||||
|
|
||||||
rolls.sort((a,b) => a.total-b.total);
|
rolls.sort((a,b) => a.total-b.total);
|
||||||
rolls.reverse();
|
rolls.reverse();
|
||||||
|
|
||||||
for (let i=0; i<maxTabMaxIndex; i++) {
|
for (let i=0; i<maxTabMaxIndex; i++) {
|
||||||
maxTab[i] = {idx: 0, value: 0};
|
maxTab[i] = {idx: 0, value: 0};
|
||||||
if (rolls[i].total != undefined) maxTab[i].value = rolls[i].total;
|
if (rolls[i]?.total != undefined) maxTab[i].value = rolls[i].total;
|
||||||
}
|
}
|
||||||
|
|
||||||
return { rawDices: rawDices, maxTab: maxTab, rolls: rolls }
|
return { rawDices: rawDices, maxTab: maxTab, rolls: rolls }
|
||||||
@ -123,31 +106,31 @@ export class YggdrasillUtility {
|
|||||||
let isCritical = false;
|
let isCritical = false;
|
||||||
let isFailure = false;
|
let isFailure = false;
|
||||||
let isSuccess = false;
|
let isSuccess = false;
|
||||||
let marge = 0;
|
let marge = 0;
|
||||||
let niveau = rollData.subAttr.value;
|
let niveau = rollData.subAttr.value;
|
||||||
|
|
||||||
// Bonus/Malus total
|
// Bonus/Malus total
|
||||||
rollData.finalBM = rollData.bonusMalus;
|
rollData.finalBM = Number(rollData.bonusMalus);
|
||||||
// Gestion cas blessé (malus de -3)
|
// Gestion cas blessé (malus de -3)
|
||||||
if ( rollData.isBlesse) { // Cas blesse : malus de -3
|
if ( rollData.isBlesse) { // Cas blesse : malus de -3
|
||||||
rollData.finalBM -= 3;
|
rollData.finalBM -= 3;
|
||||||
}
|
}
|
||||||
|
|
||||||
let results = await this.specificYggRoll( 2 )
|
let results = await this.specificYggRoll( 2 )
|
||||||
rollData.rawDices = results.rawDices
|
rollData.rawDices = results.rawDices
|
||||||
rollData.maxTab = results.maxTab
|
rollData.maxTab = results.maxTab
|
||||||
rollData.rolls = results.rolls
|
rollData.rolls = results.rolls
|
||||||
rollData.bonus = niveau + rollData.finalBM
|
rollData.bonus = niveau + Number(rollData.finalBM)
|
||||||
|
|
||||||
|
rollData.finalTotal = Number(rollData.maxTab[0].value) + Number(rollData.maxTab[1].value);
|
||||||
|
rollData.finalTotal += Number(rollData.bonus)
|
||||||
|
|
||||||
rollData.finalTotal = rollData.maxTab[0].value + rollData.maxTab[1].value;
|
|
||||||
rollData.finalTotal += rollData.bonus
|
|
||||||
|
|
||||||
// Compute total SR
|
// Compute total SR
|
||||||
rollData.srFinal = rollData.sr;
|
rollData.srFinal = Number(rollData.sr);
|
||||||
if ( rollData.bonusdefense ) {
|
if ( rollData.bonusdefense ) {
|
||||||
rollData.srFinal += rollData.bonusdefense;
|
rollData.srFinal += Number(rollData.bonusdefense);
|
||||||
}
|
}
|
||||||
if ( rollData.srFinal > 0 ) {
|
if ( rollData.srFinal > 0 ) {
|
||||||
isCritical = rollData.finalTotal >= rollData.srFinal*2;
|
isCritical = rollData.finalTotal >= rollData.srFinal*2;
|
||||||
isSuccess = rollData.finalTotal >= rollData.srFinal;
|
isSuccess = rollData.finalTotal >= rollData.srFinal;
|
||||||
marge = rollData.finalTotal - rollData.srFinal;
|
marge = rollData.finalTotal - rollData.srFinal;
|
||||||
@ -159,8 +142,8 @@ export class YggdrasillUtility {
|
|||||||
// Dégats
|
// Dégats
|
||||||
if ( isSuccess && rollData.subAttr.degats ) {
|
if ( isSuccess && rollData.subAttr.degats ) {
|
||||||
rollData.degatsExplain = `Marge(${marge}) + Physique(${rollData.valuePhysique}) + 1d10`;
|
rollData.degatsExplain = `Marge(${marge}) + Physique(${rollData.valuePhysique}) + 1d10`;
|
||||||
rollData.rollDegats = new Roll("1d10+"+marge+"+"+rollData.valuePhysique).roll( { async: false} );
|
rollData.rollDegats = await new Roll("1d10+"+marge+"+"+rollData.valuePhysique).roll( );
|
||||||
await this.showDiceSoNice(rollData.rollDegats, game.settings.get("core", "rollMode") );
|
await this.showDiceSoNice(rollData.rollDegats, game.settings.get("core", "rollMode") );
|
||||||
rollData.degats = rollData.rollDegats.total;
|
rollData.degats = rollData.rollDegats.total;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -173,23 +156,22 @@ export class YggdrasillUtility {
|
|||||||
console.log("ROLLLL ATTR!!!!", rollData);
|
console.log("ROLLLL ATTR!!!!", rollData);
|
||||||
|
|
||||||
this.createChatWithRollMode( rollData.alias, {
|
this.createChatWithRollMode( rollData.alias, {
|
||||||
content: await renderTemplate(`systems/fvtt-yggdrasill/templates/chat-generic-result.html`, rollData)
|
content: await foundry.applications.handlebars.renderTemplate(`systems/fvtt-yggdrasill/templates/chat-generic-result.html`, rollData)
|
||||||
});
|
});
|
||||||
//myRoll.toMessage();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* -------------------------------------------- */
|
/* -------------------------------------------- */
|
||||||
static async rollYggdrasill( rollData ) {
|
static async rollYggdrasill( rollData ) {
|
||||||
let sumDice = ( rollData.isEpuise | rollData.isMeurtri) ? 1 : 2;
|
let sumDice = ( rollData.isEpuise | rollData.isMeurtri) ? 1 : 2;
|
||||||
|
|
||||||
// Init stuff
|
// Init stuff
|
||||||
let isCritical = false;
|
let isCritical = false;
|
||||||
let isFailure = false;
|
let isFailure = false;
|
||||||
let isSuccess = false;
|
let isSuccess = false;
|
||||||
let marge = 0;
|
let marge = 0;
|
||||||
let nbDice = rollData.selectedCarac.value;
|
let nbDice = rollData.selectedCarac.value;
|
||||||
let niveauCompetence = 0;
|
let niveauCompetence = 0;
|
||||||
|
|
||||||
// Select niveau de competence/arme/carac
|
// Select niveau de competence/arme/carac
|
||||||
if ( rollData.mode != "carac" ) {
|
if ( rollData.mode != "carac" ) {
|
||||||
niveauCompetence = rollData.competence.system.niveau;
|
niveauCompetence = rollData.competence.system.niveau;
|
||||||
@ -198,27 +180,27 @@ export class YggdrasillUtility {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Bonus/Malus total
|
// Bonus/Malus total
|
||||||
rollData.finalBM = rollData.bonusMalus;
|
rollData.finalBM = Number(rollData.bonusMalus);
|
||||||
if ( rollData.attackDef) {
|
if ( rollData.attackDef) {
|
||||||
rollData.finalBM -= rollData.attackDef.malus;
|
rollData.finalBM -= rollData.attackDef.malus;
|
||||||
}
|
}
|
||||||
if ( rollData.sort && rollData.sort.system.malus ) {
|
if ( rollData?.sort?.system?.malus ) {
|
||||||
rollData.finalBM += rollData.sort.system.malus;
|
rollData.finalBM += rollData.sort.system.malus;
|
||||||
}
|
}
|
||||||
// Gestion cas blessé (malus de -3)
|
// Gestion cas blessé (malus de -3)
|
||||||
if ( rollData.isBlesse) { // Cas blesse : malus de -3
|
if ( rollData.isBlesse) { // Cas blesse : malus de -3
|
||||||
rollData.finalBM -= 3;
|
rollData.finalBM -= 3;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (sumDice > nbDice) sumDice = nbDice;
|
if (sumDice > nbDice) sumDice = nbDice;
|
||||||
let results = await this.specificYggRoll( nbDice )
|
let results = await this.specificYggRoll( nbDice )
|
||||||
rollData.rawDices = results.rawDices
|
rollData.rawDices = results.rawDices
|
||||||
rollData.maxTab = results.maxTab
|
rollData.maxTab = results.maxTab
|
||||||
rollData.rolls = results.rolls
|
rollData.rolls = results.rolls
|
||||||
console.log("RES", results, nbDice, sumDice)
|
console.log("RES", results, nbDice, sumDice)
|
||||||
|
|
||||||
if ( rollData.furorUsage > 0 ) {
|
if ( rollData.furorUsage > 0 ) {
|
||||||
results = await this.specificYggRoll( rollData.furorUsage, true )
|
results = await this.specificYggRoll( rollData.furorUsage, true )
|
||||||
rollData.furorRawDices = results.rawDices
|
rollData.furorRawDices = results.rawDices
|
||||||
rollData.furorMaxTab = results.maxTab
|
rollData.furorMaxTab = results.maxTab
|
||||||
rollData.furorRolls = results.rolls
|
rollData.furorRolls = results.rolls
|
||||||
@ -232,16 +214,16 @@ export class YggdrasillUtility {
|
|||||||
for (let i=0; i<rollData.furorUsage; i++) {
|
for (let i=0; i<rollData.furorUsage; i++) {
|
||||||
rollData.furorResult += rollData.furorMaxTab[i].value
|
rollData.furorResult += rollData.furorMaxTab[i].value
|
||||||
}
|
}
|
||||||
rollData.finalTotal += rollData.furorResult + rollData.bonusTotal;
|
rollData.finalTotal += Number(rollData.furorResult) + Number(rollData.bonusTotal);
|
||||||
rollData.niveauCompetence = niveauCompetence
|
rollData.niveauCompetence = niveauCompetence
|
||||||
|
|
||||||
// Compute total SR
|
// Compute total SR
|
||||||
rollData.srFinal = rollData.sr;
|
rollData.srFinal = rollData.sr;
|
||||||
if ( rollData.bonusdefense ) {
|
if ( rollData.bonusdefense ) {
|
||||||
rollData.srFinal += rollData.bonusdefense;
|
rollData.srFinal += rollData.bonusdefense;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( rollData.srFinal > 0 ) {
|
if ( rollData.srFinal > 0 ) {
|
||||||
isCritical = rollData.finalTotal >= rollData.srFinal*2;
|
isCritical = rollData.finalTotal >= rollData.srFinal*2;
|
||||||
isSuccess = rollData.finalTotal >= rollData.srFinal;
|
isSuccess = rollData.finalTotal >= rollData.srFinal;
|
||||||
marge = rollData.finalTotal - rollData.srFinal;
|
marge = rollData.finalTotal - rollData.srFinal;
|
||||||
@ -255,7 +237,7 @@ export class YggdrasillUtility {
|
|||||||
}
|
}
|
||||||
if (nbDice >= 3 ) {
|
if (nbDice >= 3 ) {
|
||||||
let nbOnes = 0
|
let nbOnes = 0
|
||||||
for (let roll of rollData.rolls) {
|
for (let roll of rollData.rolls) {
|
||||||
if (roll.dice[0].results[0].result == 1 ) nbOnes++;
|
if (roll.dice[0].results[0].result == 1 ) nbOnes++;
|
||||||
}
|
}
|
||||||
isFailure = nbOnes >= 3;
|
isFailure = nbOnes >= 3;
|
||||||
@ -263,7 +245,7 @@ export class YggdrasillUtility {
|
|||||||
|
|
||||||
// Dégats
|
// Dégats
|
||||||
if ( isSuccess && (rollData.mode == "armecc" || rollData.mode == "armedist") ) {
|
if ( isSuccess && (rollData.mode == "armecc" || rollData.mode == "armedist") ) {
|
||||||
rollData.degatsExplain = `Marge(${marge}) + Degats Arme(${rollData.arme.system.degat}) + Bonus Attaque(${rollData.attackDef.bonusdegats})`;
|
rollData.degatsExplain = `Marge(${marge}) + Degats Arme(${rollData.arme.system.degat}) + Bonus Attaque(${rollData.attackDef.bonusdegats})`;
|
||||||
rollData.degats = marge + rollData.arme.system.degat + rollData.attackDef.bonusdegats;
|
rollData.degats = marge + rollData.arme.system.degat + rollData.attackDef.bonusdegats;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -276,7 +258,7 @@ export class YggdrasillUtility {
|
|||||||
|
|
||||||
// Specific GALDR
|
// Specific GALDR
|
||||||
if ( rollData.sort?.type == "sortgaldr" && rollData.isSuccess) {
|
if ( rollData.sort?.type == "sortgaldr" && rollData.isSuccess) {
|
||||||
let galdrRoll = new Roll( rollData.dureeGaldr.substring(0, rollData.dureeGaldr.length - 1) ).roll( { async: false} );
|
let galdrRoll = await new Roll( rollData.dureeGaldr.substring(0, rollData.dureeGaldr.length - 1) ).roll( );
|
||||||
await this.showDiceSoNice(galdrRoll, game.settings.get("core", "rollMode") );
|
await this.showDiceSoNice(galdrRoll, game.settings.get("core", "rollMode") );
|
||||||
rollData.dureeGaldrText = galdrRoll.total + " " + dureeGaldrText[rollData.dureeGaldr];
|
rollData.dureeGaldrText = galdrRoll.total + " " + dureeGaldrText[rollData.dureeGaldr];
|
||||||
if ( rollData.sort.system.voie == "illusion") {
|
if ( rollData.sort.system.voie == "illusion") {
|
||||||
@ -292,7 +274,6 @@ export class YggdrasillUtility {
|
|||||||
this.createChatWithRollMode( rollData.alias, {
|
this.createChatWithRollMode( rollData.alias, {
|
||||||
content: await renderTemplate(`systems/fvtt-yggdrasill/templates/chat-generic-result.html`, rollData)
|
content: await renderTemplate(`systems/fvtt-yggdrasill/templates/chat-generic-result.html`, rollData)
|
||||||
});
|
});
|
||||||
//myRoll.toMessage();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* -------------------------------------------- */
|
/* -------------------------------------------- */
|
||||||
@ -317,7 +298,7 @@ export class YggdrasillUtility {
|
|||||||
|
|
||||||
/* -------------------------------------------- */
|
/* -------------------------------------------- */
|
||||||
static blindMessageToGM(chatOptions) {
|
static blindMessageToGM(chatOptions) {
|
||||||
let chatGM = duplicate(chatOptions);
|
let chatGM = foundry.utils.duplicate(chatOptions);
|
||||||
chatGM.whisper = this.getUsers(user => user.isGM);
|
chatGM.whisper = this.getUsers(user => user.isGM);
|
||||||
chatGM.content = "Message aveugle de " + game.user.name + "<br>" + chatOptions.content;
|
chatGM.content = "Message aveugle de " + game.user.name + "<br>" + chatOptions.content;
|
||||||
console.log("blindMessageToGM", chatGM);
|
console.log("blindMessageToGM", chatGM);
|
||||||
@ -350,7 +331,7 @@ export class YggdrasillUtility {
|
|||||||
static createChatWithRollMode(name, chatOptions) {
|
static createChatWithRollMode(name, chatOptions) {
|
||||||
this.createChatMessage(name, game.settings.get("core", "rollMode"), chatOptions);
|
this.createChatMessage(name, game.settings.get("core", "rollMode"), chatOptions);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* -------------------------------------------- */
|
/* -------------------------------------------- */
|
||||||
static async confirmDelete(actorSheet, li) {
|
static async confirmDelete(actorSheet, li) {
|
||||||
let itemId = li.data("item-id");
|
let itemId = li.data("item-id");
|
||||||
@ -379,7 +360,7 @@ export class YggdrasillUtility {
|
|||||||
d.render(true);
|
d.render(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/* -------------------------------------------- */
|
/* -------------------------------------------- */
|
||||||
static async showDiceSoNice(roll, rollMode) {
|
static async showDiceSoNice(roll, rollMode) {
|
||||||
if (game.modules.get("dice-so-nice")?.active) {
|
if (game.modules.get("dice-so-nice")?.active) {
|
||||||
|
0
packs/armes/000038.log
Normal file
0
packs/armes/000038.log
Normal file
BIN
packs/armes/000040.ldb
Normal file
BIN
packs/armes/000040.ldb
Normal file
Binary file not shown.
1
packs/armes/CURRENT
Normal file
1
packs/armes/CURRENT
Normal file
@ -0,0 +1 @@
|
|||||||
|
MANIFEST-000036
|
0
packs/armes/LOCK
Normal file
0
packs/armes/LOCK
Normal file
15
packs/armes/LOG
Normal file
15
packs/armes/LOG
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
2025/05/01-23:39:32.648964 7fe00affd6c0 Recovering log #34
|
||||||
|
2025/05/01-23:39:32.659213 7fe00affd6c0 Delete type=0 #34
|
||||||
|
2025/05/01-23:39:32.659296 7fe00affd6c0 Delete type=3 #32
|
||||||
|
2025/05/02-00:00:01.649791 7fe0093ff6c0 Level-0 table #39: started
|
||||||
|
2025/05/02-00:00:01.653017 7fe0093ff6c0 Level-0 table #39: 2327 bytes OK
|
||||||
|
2025/05/02-00:00:01.659302 7fe0093ff6c0 Delete type=0 #37
|
||||||
|
2025/05/02-00:00:01.659500 7fe0093ff6c0 Manual compaction at level-0 from '!items!3VBHojfjdD504ibv' @ 72057594037927935 : 1 .. '!items!x3aMYeKa73GxJ1Ge' @ 0 : 0; will stop at (end)
|
||||||
|
2025/05/02-00:00:01.690344 7fe0093ff6c0 Manual compaction at level-1 from '!items!3VBHojfjdD504ibv' @ 72057594037927935 : 1 .. '!items!x3aMYeKa73GxJ1Ge' @ 0 : 0; will stop at '!items!x3aMYeKa73GxJ1Ge' @ 45 : 1
|
||||||
|
2025/05/02-00:00:01.690353 7fe0093ff6c0 Compacting 1@1 + 1@2 files
|
||||||
|
2025/05/02-00:00:01.693550 7fe0093ff6c0 Generated table #40@1: 15 keys, 2327 bytes
|
||||||
|
2025/05/02-00:00:01.693570 7fe0093ff6c0 Compacted 1@1 + 1@2 files => 2327 bytes
|
||||||
|
2025/05/02-00:00:01.700976 7fe0093ff6c0 compacted to: files[ 0 0 1 0 0 0 0 ]
|
||||||
|
2025/05/02-00:00:01.701159 7fe0093ff6c0 Delete type=2 #5
|
||||||
|
2025/05/02-00:00:01.701309 7fe0093ff6c0 Delete type=2 #39
|
||||||
|
2025/05/02-00:00:01.701436 7fe0093ff6c0 Manual compaction at level-1 from '!items!x3aMYeKa73GxJ1Ge' @ 45 : 1 .. '!items!x3aMYeKa73GxJ1Ge' @ 0 : 0; will stop at (end)
|
8
packs/armes/LOG.old
Normal file
8
packs/armes/LOG.old
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
2024/05/02-09:20:30.852464 7f844c2006c0 Recovering log #30
|
||||||
|
2024/05/02-09:20:30.862615 7f844c2006c0 Delete type=3 #28
|
||||||
|
2024/05/02-09:20:30.862709 7f844c2006c0 Delete type=0 #30
|
||||||
|
2024/05/02-09:24:00.910769 7f844ae006c0 Level-0 table #35: started
|
||||||
|
2024/05/02-09:24:00.910814 7f844ae006c0 Level-0 table #35: 0 bytes OK
|
||||||
|
2024/05/02-09:24:00.917379 7f844ae006c0 Delete type=0 #33
|
||||||
|
2024/05/02-09:24:00.931103 7f844ae006c0 Manual compaction at level-0 from '!items!3VBHojfjdD504ibv' @ 72057594037927935 : 1 .. '!items!x3aMYeKa73GxJ1Ge' @ 0 : 0; will stop at (end)
|
||||||
|
2024/05/02-09:24:00.931173 7f844ae006c0 Manual compaction at level-1 from '!items!3VBHojfjdD504ibv' @ 72057594037927935 : 1 .. '!items!x3aMYeKa73GxJ1Ge' @ 0 : 0; will stop at (end)
|
BIN
packs/armes/MANIFEST-000036
Normal file
BIN
packs/armes/MANIFEST-000036
Normal file
Binary file not shown.
0
packs/armures/000038.log
Normal file
0
packs/armures/000038.log
Normal file
BIN
packs/armures/000040.ldb
Normal file
BIN
packs/armures/000040.ldb
Normal file
Binary file not shown.
1
packs/armures/CURRENT
Normal file
1
packs/armures/CURRENT
Normal file
@ -0,0 +1 @@
|
|||||||
|
MANIFEST-000036
|
0
packs/armures/LOCK
Normal file
0
packs/armures/LOCK
Normal file
15
packs/armures/LOG
Normal file
15
packs/armures/LOG
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
2025/05/01-23:39:32.662878 7fe00a7fc6c0 Recovering log #34
|
||||||
|
2025/05/01-23:39:32.674030 7fe00a7fc6c0 Delete type=0 #34
|
||||||
|
2025/05/01-23:39:32.674181 7fe00a7fc6c0 Delete type=3 #32
|
||||||
|
2025/05/02-00:00:01.701554 7fe0093ff6c0 Level-0 table #39: started
|
||||||
|
2025/05/02-00:00:01.704718 7fe0093ff6c0 Level-0 table #39: 3197 bytes OK
|
||||||
|
2025/05/02-00:00:01.710800 7fe0093ff6c0 Delete type=0 #37
|
||||||
|
2025/05/02-00:00:01.741412 7fe0093ff6c0 Manual compaction at level-0 from '!items!4YGPuZ813BWQaNbq' @ 72057594037927935 : 1 .. '!items!qUXBrstsh5Oo8FEx' @ 0 : 0; will stop at (end)
|
||||||
|
2025/05/02-00:00:01.741481 7fe0093ff6c0 Manual compaction at level-1 from '!items!4YGPuZ813BWQaNbq' @ 72057594037927935 : 1 .. '!items!qUXBrstsh5Oo8FEx' @ 0 : 0; will stop at '!items!qUXBrstsh5Oo8FEx' @ 24 : 1
|
||||||
|
2025/05/02-00:00:01.741491 7fe0093ff6c0 Compacting 1@1 + 1@2 files
|
||||||
|
2025/05/02-00:00:01.744814 7fe0093ff6c0 Generated table #40@1: 8 keys, 3197 bytes
|
||||||
|
2025/05/02-00:00:01.744839 7fe0093ff6c0 Compacted 1@1 + 1@2 files => 3197 bytes
|
||||||
|
2025/05/02-00:00:01.751538 7fe0093ff6c0 compacted to: files[ 0 0 1 0 0 0 0 ]
|
||||||
|
2025/05/02-00:00:01.751680 7fe0093ff6c0 Delete type=2 #5
|
||||||
|
2025/05/02-00:00:01.751873 7fe0093ff6c0 Delete type=2 #39
|
||||||
|
2025/05/02-00:00:01.782461 7fe0093ff6c0 Manual compaction at level-1 from '!items!qUXBrstsh5Oo8FEx' @ 24 : 1 .. '!items!qUXBrstsh5Oo8FEx' @ 0 : 0; will stop at (end)
|
8
packs/armures/LOG.old
Normal file
8
packs/armures/LOG.old
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
2024/05/02-09:20:30.867038 7f844cc006c0 Recovering log #30
|
||||||
|
2024/05/02-09:20:30.878552 7f844cc006c0 Delete type=3 #28
|
||||||
|
2024/05/02-09:20:30.878665 7f844cc006c0 Delete type=0 #30
|
||||||
|
2024/05/02-09:24:00.917585 7f844ae006c0 Level-0 table #35: started
|
||||||
|
2024/05/02-09:24:00.917644 7f844ae006c0 Level-0 table #35: 0 bytes OK
|
||||||
|
2024/05/02-09:24:00.924086 7f844ae006c0 Delete type=0 #33
|
||||||
|
2024/05/02-09:24:00.931117 7f844ae006c0 Manual compaction at level-0 from '!items!4YGPuZ813BWQaNbq' @ 72057594037927935 : 1 .. '!items!qUXBrstsh5Oo8FEx' @ 0 : 0; will stop at (end)
|
||||||
|
2024/05/02-09:24:00.931187 7f844ae006c0 Manual compaction at level-1 from '!items!4YGPuZ813BWQaNbq' @ 72057594037927935 : 1 .. '!items!qUXBrstsh5Oo8FEx' @ 0 : 0; will stop at (end)
|
BIN
packs/armures/MANIFEST-000036
Normal file
BIN
packs/armures/MANIFEST-000036
Normal file
Binary file not shown.
0
packs/blessures/000038.log
Normal file
0
packs/blessures/000038.log
Normal file
BIN
packs/blessures/000040.ldb
Normal file
BIN
packs/blessures/000040.ldb
Normal file
Binary file not shown.
1
packs/blessures/CURRENT
Normal file
1
packs/blessures/CURRENT
Normal file
@ -0,0 +1 @@
|
|||||||
|
MANIFEST-000036
|
0
packs/blessures/LOCK
Normal file
0
packs/blessures/LOCK
Normal file
15
packs/blessures/LOG
Normal file
15
packs/blessures/LOG
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
2025/05/01-23:39:32.635609 7fe00b7fe6c0 Recovering log #34
|
||||||
|
2025/05/01-23:39:32.645474 7fe00b7fe6c0 Delete type=0 #34
|
||||||
|
2025/05/01-23:39:32.645571 7fe00b7fe6c0 Delete type=3 #32
|
||||||
|
2025/05/02-00:00:01.629647 7fe0093ff6c0 Level-0 table #39: started
|
||||||
|
2025/05/02-00:00:01.633062 7fe0093ff6c0 Level-0 table #39: 4373 bytes OK
|
||||||
|
2025/05/02-00:00:01.639223 7fe0093ff6c0 Delete type=0 #37
|
||||||
|
2025/05/02-00:00:01.659477 7fe0093ff6c0 Manual compaction at level-0 from '!items!4rM9IvDuijsjbAhI' @ 72057594037927935 : 1 .. '!items!swTZ43FJRWkqjR75' @ 0 : 0; will stop at (end)
|
||||||
|
2025/05/02-00:00:01.670214 7fe0093ff6c0 Manual compaction at level-1 from '!items!4rM9IvDuijsjbAhI' @ 72057594037927935 : 1 .. '!items!swTZ43FJRWkqjR75' @ 0 : 0; will stop at '!items!swTZ43FJRWkqjR75' @ 45 : 1
|
||||||
|
2025/05/02-00:00:01.670224 7fe0093ff6c0 Compacting 1@1 + 1@2 files
|
||||||
|
2025/05/02-00:00:01.673584 7fe0093ff6c0 Generated table #40@1: 15 keys, 4373 bytes
|
||||||
|
2025/05/02-00:00:01.673615 7fe0093ff6c0 Compacted 1@1 + 1@2 files => 4373 bytes
|
||||||
|
2025/05/02-00:00:01.679975 7fe0093ff6c0 compacted to: files[ 0 0 1 0 0 0 0 ]
|
||||||
|
2025/05/02-00:00:01.680089 7fe0093ff6c0 Delete type=2 #5
|
||||||
|
2025/05/02-00:00:01.680247 7fe0093ff6c0 Delete type=2 #39
|
||||||
|
2025/05/02-00:00:01.701412 7fe0093ff6c0 Manual compaction at level-1 from '!items!swTZ43FJRWkqjR75' @ 45 : 1 .. '!items!swTZ43FJRWkqjR75' @ 0 : 0; will stop at (end)
|
8
packs/blessures/LOG.old
Normal file
8
packs/blessures/LOG.old
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
2024/05/02-09:20:30.837163 7f844cc006c0 Recovering log #30
|
||||||
|
2024/05/02-09:20:30.848664 7f844cc006c0 Delete type=3 #28
|
||||||
|
2024/05/02-09:20:30.848767 7f844cc006c0 Delete type=0 #30
|
||||||
|
2024/05/02-09:24:00.903725 7f844ae006c0 Level-0 table #35: started
|
||||||
|
2024/05/02-09:24:00.903795 7f844ae006c0 Level-0 table #35: 0 bytes OK
|
||||||
|
2024/05/02-09:24:00.910581 7f844ae006c0 Delete type=0 #33
|
||||||
|
2024/05/02-09:24:00.931083 7f844ae006c0 Manual compaction at level-0 from '!items!4rM9IvDuijsjbAhI' @ 72057594037927935 : 1 .. '!items!swTZ43FJRWkqjR75' @ 0 : 0; will stop at (end)
|
||||||
|
2024/05/02-09:24:00.931143 7f844ae006c0 Manual compaction at level-1 from '!items!4rM9IvDuijsjbAhI' @ 72057594037927935 : 1 .. '!items!swTZ43FJRWkqjR75' @ 0 : 0; will stop at (end)
|
BIN
packs/blessures/MANIFEST-000036
Normal file
BIN
packs/blessures/MANIFEST-000036
Normal file
Binary file not shown.
0
packs/competences-generales/000038.log
Normal file
0
packs/competences-generales/000038.log
Normal file
BIN
packs/competences-generales/000040.ldb
Normal file
BIN
packs/competences-generales/000040.ldb
Normal file
Binary file not shown.
1
packs/competences-generales/CURRENT
Normal file
1
packs/competences-generales/CURRENT
Normal file
@ -0,0 +1 @@
|
|||||||
|
MANIFEST-000036
|
0
packs/competences-generales/LOCK
Normal file
0
packs/competences-generales/LOCK
Normal file
15
packs/competences-generales/LOG
Normal file
15
packs/competences-generales/LOG
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
2025/05/01-23:39:32.556908 7fe009ffb6c0 Recovering log #34
|
||||||
|
2025/05/01-23:39:32.567507 7fe009ffb6c0 Delete type=0 #34
|
||||||
|
2025/05/01-23:39:32.567628 7fe009ffb6c0 Delete type=3 #32
|
||||||
|
2025/05/02-00:00:01.567300 7fe0093ff6c0 Level-0 table #39: started
|
||||||
|
2025/05/02-00:00:01.570622 7fe0093ff6c0 Level-0 table #39: 18501 bytes OK
|
||||||
|
2025/05/02-00:00:01.576851 7fe0093ff6c0 Delete type=0 #37
|
||||||
|
2025/05/02-00:00:01.577006 7fe0093ff6c0 Manual compaction at level-0 from '!items!26CQEICWZs8Gw4Xi' @ 72057594037927935 : 1 .. '!items!ylqZMDyXujUlSorr' @ 0 : 0; will stop at (end)
|
||||||
|
2025/05/02-00:00:01.609221 7fe0093ff6c0 Manual compaction at level-1 from '!items!26CQEICWZs8Gw4Xi' @ 72057594037927935 : 1 .. '!items!ylqZMDyXujUlSorr' @ 0 : 0; will stop at '!items!ylqZMDyXujUlSorr' @ 90 : 1
|
||||||
|
2025/05/02-00:00:01.609228 7fe0093ff6c0 Compacting 1@1 + 1@2 files
|
||||||
|
2025/05/02-00:00:01.612484 7fe0093ff6c0 Generated table #40@1: 30 keys, 18501 bytes
|
||||||
|
2025/05/02-00:00:01.612511 7fe0093ff6c0 Compacted 1@1 + 1@2 files => 18501 bytes
|
||||||
|
2025/05/02-00:00:01.618471 7fe0093ff6c0 compacted to: files[ 0 0 1 0 0 0 0 ]
|
||||||
|
2025/05/02-00:00:01.618573 7fe0093ff6c0 Delete type=2 #5
|
||||||
|
2025/05/02-00:00:01.618669 7fe0093ff6c0 Delete type=2 #39
|
||||||
|
2025/05/02-00:00:01.618752 7fe0093ff6c0 Manual compaction at level-1 from '!items!ylqZMDyXujUlSorr' @ 90 : 1 .. '!items!ylqZMDyXujUlSorr' @ 0 : 0; will stop at (end)
|
8
packs/competences-generales/LOG.old
Normal file
8
packs/competences-generales/LOG.old
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
2024/05/02-09:20:30.743214 7f844cc006c0 Recovering log #30
|
||||||
|
2024/05/02-09:20:30.753988 7f844cc006c0 Delete type=3 #28
|
||||||
|
2024/05/02-09:20:30.754165 7f844cc006c0 Delete type=0 #30
|
||||||
|
2024/05/02-09:24:00.851545 7f844ae006c0 Level-0 table #35: started
|
||||||
|
2024/05/02-09:24:00.851582 7f844ae006c0 Level-0 table #35: 0 bytes OK
|
||||||
|
2024/05/02-09:24:00.858223 7f844ae006c0 Delete type=0 #33
|
||||||
|
2024/05/02-09:24:00.864778 7f844ae006c0 Manual compaction at level-0 from '!items!26CQEICWZs8Gw4Xi' @ 72057594037927935 : 1 .. '!items!ylqZMDyXujUlSorr' @ 0 : 0; will stop at (end)
|
||||||
|
2024/05/02-09:24:00.874940 7f844ae006c0 Manual compaction at level-1 from '!items!26CQEICWZs8Gw4Xi' @ 72057594037927935 : 1 .. '!items!ylqZMDyXujUlSorr' @ 0 : 0; will stop at (end)
|
BIN
packs/competences-generales/MANIFEST-000036
Normal file
BIN
packs/competences-generales/MANIFEST-000036
Normal file
Binary file not shown.
0
packs/competences-magiques/000038.log
Normal file
0
packs/competences-magiques/000038.log
Normal file
BIN
packs/competences-magiques/000040.ldb
Normal file
BIN
packs/competences-magiques/000040.ldb
Normal file
Binary file not shown.
1
packs/competences-magiques/CURRENT
Normal file
1
packs/competences-magiques/CURRENT
Normal file
@ -0,0 +1 @@
|
|||||||
|
MANIFEST-000036
|
0
packs/competences-magiques/LOCK
Normal file
0
packs/competences-magiques/LOCK
Normal file
15
packs/competences-magiques/LOG
Normal file
15
packs/competences-magiques/LOG
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
2025/05/01-23:39:32.583707 7fe00b7fe6c0 Recovering log #34
|
||||||
|
2025/05/01-23:39:32.593612 7fe00b7fe6c0 Delete type=0 #34
|
||||||
|
2025/05/01-23:39:32.593661 7fe00b7fe6c0 Delete type=3 #32
|
||||||
|
2025/05/02-00:00:01.557564 7fe0093ff6c0 Level-0 table #39: started
|
||||||
|
2025/05/02-00:00:01.560815 7fe0093ff6c0 Level-0 table #39: 1604 bytes OK
|
||||||
|
2025/05/02-00:00:01.567160 7fe0093ff6c0 Delete type=0 #37
|
||||||
|
2025/05/02-00:00:01.576997 7fe0093ff6c0 Manual compaction at level-0 from '!items!RAhkadJOfEnVBLpy' @ 72057594037927935 : 1 .. '!items!mIBiTKqfqiiepeyz' @ 0 : 0; will stop at (end)
|
||||||
|
2025/05/02-00:00:01.598577 7fe0093ff6c0 Manual compaction at level-1 from '!items!RAhkadJOfEnVBLpy' @ 72057594037927935 : 1 .. '!items!mIBiTKqfqiiepeyz' @ 0 : 0; will stop at '!items!mIBiTKqfqiiepeyz' @ 9 : 1
|
||||||
|
2025/05/02-00:00:01.598591 7fe0093ff6c0 Compacting 1@1 + 1@2 files
|
||||||
|
2025/05/02-00:00:01.601754 7fe0093ff6c0 Generated table #40@1: 3 keys, 1604 bytes
|
||||||
|
2025/05/02-00:00:01.601786 7fe0093ff6c0 Compacted 1@1 + 1@2 files => 1604 bytes
|
||||||
|
2025/05/02-00:00:01.608938 7fe0093ff6c0 compacted to: files[ 0 0 1 0 0 0 0 ]
|
||||||
|
2025/05/02-00:00:01.609061 7fe0093ff6c0 Delete type=2 #5
|
||||||
|
2025/05/02-00:00:01.609167 7fe0093ff6c0 Delete type=2 #39
|
||||||
|
2025/05/02-00:00:01.618745 7fe0093ff6c0 Manual compaction at level-1 from '!items!mIBiTKqfqiiepeyz' @ 9 : 1 .. '!items!mIBiTKqfqiiepeyz' @ 0 : 0; will stop at (end)
|
8
packs/competences-magiques/LOG.old
Normal file
8
packs/competences-magiques/LOG.old
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
2024/05/02-09:20:30.774893 7f844cc006c0 Recovering log #30
|
||||||
|
2024/05/02-09:20:30.785238 7f844cc006c0 Delete type=3 #28
|
||||||
|
2024/05/02-09:20:30.785346 7f844cc006c0 Delete type=0 #30
|
||||||
|
2024/05/02-09:24:00.874955 7f844ae006c0 Level-0 table #35: started
|
||||||
|
2024/05/02-09:24:00.875023 7f844ae006c0 Level-0 table #35: 0 bytes OK
|
||||||
|
2024/05/02-09:24:00.882281 7f844ae006c0 Delete type=0 #33
|
||||||
|
2024/05/02-09:24:00.896915 7f844ae006c0 Manual compaction at level-0 from '!items!RAhkadJOfEnVBLpy' @ 72057594037927935 : 1 .. '!items!mIBiTKqfqiiepeyz' @ 0 : 0; will stop at (end)
|
||||||
|
2024/05/02-09:24:00.903558 7f844ae006c0 Manual compaction at level-1 from '!items!RAhkadJOfEnVBLpy' @ 72057594037927935 : 1 .. '!items!mIBiTKqfqiiepeyz' @ 0 : 0; will stop at (end)
|
BIN
packs/competences-magiques/MANIFEST-000036
Normal file
BIN
packs/competences-magiques/MANIFEST-000036
Normal file
Binary file not shown.
0
packs/competences-martiales/000038.log
Normal file
0
packs/competences-martiales/000038.log
Normal file
BIN
packs/competences-martiales/000040.ldb
Normal file
BIN
packs/competences-martiales/000040.ldb
Normal file
Binary file not shown.
1
packs/competences-martiales/CURRENT
Normal file
1
packs/competences-martiales/CURRENT
Normal file
@ -0,0 +1 @@
|
|||||||
|
MANIFEST-000036
|
0
packs/competences-martiales/LOCK
Normal file
0
packs/competences-martiales/LOCK
Normal file
15
packs/competences-martiales/LOG
Normal file
15
packs/competences-martiales/LOG
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
2025/05/01-23:39:32.570549 7fe00a7fc6c0 Recovering log #34
|
||||||
|
2025/05/01-23:39:32.580330 7fe00a7fc6c0 Delete type=0 #34
|
||||||
|
2025/05/01-23:39:32.580396 7fe00a7fc6c0 Delete type=3 #32
|
||||||
|
2025/05/02-00:00:01.547194 7fe0093ff6c0 Level-0 table #39: started
|
||||||
|
2025/05/02-00:00:01.550461 7fe0093ff6c0 Level-0 table #39: 3895 bytes OK
|
||||||
|
2025/05/02-00:00:01.557446 7fe0093ff6c0 Delete type=0 #37
|
||||||
|
2025/05/02-00:00:01.576988 7fe0093ff6c0 Manual compaction at level-0 from '!items!6IqVsJsYPrbxUJZX' @ 72057594037927935 : 1 .. '!items!mJSWXawEGARKlNja' @ 0 : 0; will stop at (end)
|
||||||
|
2025/05/02-00:00:01.577021 7fe0093ff6c0 Manual compaction at level-1 from '!items!6IqVsJsYPrbxUJZX' @ 72057594037927935 : 1 .. '!items!mJSWXawEGARKlNja' @ 0 : 0; will stop at '!items!mJSWXawEGARKlNja' @ 24 : 1
|
||||||
|
2025/05/02-00:00:01.577027 7fe0093ff6c0 Compacting 1@1 + 1@2 files
|
||||||
|
2025/05/02-00:00:01.580395 7fe0093ff6c0 Generated table #40@1: 8 keys, 3895 bytes
|
||||||
|
2025/05/02-00:00:01.580431 7fe0093ff6c0 Compacted 1@1 + 1@2 files => 3895 bytes
|
||||||
|
2025/05/02-00:00:01.586914 7fe0093ff6c0 compacted to: files[ 0 0 1 0 0 0 0 ]
|
||||||
|
2025/05/02-00:00:01.587137 7fe0093ff6c0 Delete type=2 #5
|
||||||
|
2025/05/02-00:00:01.587348 7fe0093ff6c0 Delete type=2 #39
|
||||||
|
2025/05/02-00:00:01.618727 7fe0093ff6c0 Manual compaction at level-1 from '!items!mJSWXawEGARKlNja' @ 24 : 1 .. '!items!mJSWXawEGARKlNja' @ 0 : 0; will stop at (end)
|
8
packs/competences-martiales/LOG.old
Normal file
8
packs/competences-martiales/LOG.old
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
2024/05/02-09:20:30.758816 7f844c2006c0 Recovering log #30
|
||||||
|
2024/05/02-09:20:30.770889 7f844c2006c0 Delete type=3 #28
|
||||||
|
2024/05/02-09:20:30.770994 7f844c2006c0 Delete type=0 #30
|
||||||
|
2024/05/02-09:24:00.858366 7f844ae006c0 Level-0 table #35: started
|
||||||
|
2024/05/02-09:24:00.858395 7f844ae006c0 Level-0 table #35: 0 bytes OK
|
||||||
|
2024/05/02-09:24:00.864599 7f844ae006c0 Delete type=0 #33
|
||||||
|
2024/05/02-09:24:00.864804 7f844ae006c0 Manual compaction at level-0 from '!items!6IqVsJsYPrbxUJZX' @ 72057594037927935 : 1 .. '!items!mJSWXawEGARKlNja' @ 0 : 0; will stop at (end)
|
||||||
|
2024/05/02-09:24:00.874924 7f844ae006c0 Manual compaction at level-1 from '!items!6IqVsJsYPrbxUJZX' @ 72057594037927935 : 1 .. '!items!mJSWXawEGARKlNja' @ 0 : 0; will stop at (end)
|
BIN
packs/competences-martiales/MANIFEST-000036
Normal file
BIN
packs/competences-martiales/MANIFEST-000036
Normal file
Binary file not shown.
0
packs/dons/000038.log
Normal file
0
packs/dons/000038.log
Normal file
BIN
packs/dons/000040.ldb
Normal file
BIN
packs/dons/000040.ldb
Normal file
Binary file not shown.
1
packs/dons/CURRENT
Normal file
1
packs/dons/CURRENT
Normal file
@ -0,0 +1 @@
|
|||||||
|
MANIFEST-000036
|
0
packs/dons/LOCK
Normal file
0
packs/dons/LOCK
Normal file
15
packs/dons/LOG
Normal file
15
packs/dons/LOG
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
2025/05/01-23:39:32.608867 7fe009ffb6c0 Recovering log #34
|
||||||
|
2025/05/01-23:39:32.619070 7fe009ffb6c0 Delete type=0 #34
|
||||||
|
2025/05/01-23:39:32.619205 7fe009ffb6c0 Delete type=3 #32
|
||||||
|
2025/05/02-00:00:01.618869 7fe0093ff6c0 Level-0 table #39: started
|
||||||
|
2025/05/02-00:00:01.622268 7fe0093ff6c0 Level-0 table #39: 8204 bytes OK
|
||||||
|
2025/05/02-00:00:01.629416 7fe0093ff6c0 Delete type=0 #37
|
||||||
|
2025/05/02-00:00:01.659464 7fe0093ff6c0 Manual compaction at level-0 from '!items!1EVz9C1fDUBafPHj' @ 72057594037927935 : 1 .. '!items!wnIXKyfqCWT0r4iT' @ 0 : 0; will stop at (end)
|
||||||
|
2025/05/02-00:00:01.659511 7fe0093ff6c0 Manual compaction at level-1 from '!items!1EVz9C1fDUBafPHj' @ 72057594037927935 : 1 .. '!items!wnIXKyfqCWT0r4iT' @ 0 : 0; will stop at '!items!wnIXKyfqCWT0r4iT' @ 90 : 1
|
||||||
|
2025/05/02-00:00:01.659517 7fe0093ff6c0 Compacting 1@1 + 1@2 files
|
||||||
|
2025/05/02-00:00:01.663128 7fe0093ff6c0 Generated table #40@1: 30 keys, 8204 bytes
|
||||||
|
2025/05/02-00:00:01.663159 7fe0093ff6c0 Compacted 1@1 + 1@2 files => 8204 bytes
|
||||||
|
2025/05/02-00:00:01.669772 7fe0093ff6c0 compacted to: files[ 0 0 1 0 0 0 0 ]
|
||||||
|
2025/05/02-00:00:01.669933 7fe0093ff6c0 Delete type=2 #5
|
||||||
|
2025/05/02-00:00:01.670115 7fe0093ff6c0 Delete type=2 #39
|
||||||
|
2025/05/02-00:00:01.701398 7fe0093ff6c0 Manual compaction at level-1 from '!items!wnIXKyfqCWT0r4iT' @ 90 : 1 .. '!items!wnIXKyfqCWT0r4iT' @ 0 : 0; will stop at (end)
|
8
packs/dons/LOG.old
Normal file
8
packs/dons/LOG.old
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
2024/05/02-09:20:30.806675 7f844cc006c0 Recovering log #30
|
||||||
|
2024/05/02-09:20:30.817229 7f844cc006c0 Delete type=3 #28
|
||||||
|
2024/05/02-09:20:30.817342 7f844cc006c0 Delete type=0 #30
|
||||||
|
2024/05/02-09:24:00.889174 7f844ae006c0 Level-0 table #35: started
|
||||||
|
2024/05/02-09:24:00.889211 7f844ae006c0 Level-0 table #35: 0 bytes OK
|
||||||
|
2024/05/02-09:24:00.896752 7f844ae006c0 Delete type=0 #33
|
||||||
|
2024/05/02-09:24:00.903544 7f844ae006c0 Manual compaction at level-0 from '!items!1EVz9C1fDUBafPHj' @ 72057594037927935 : 1 .. '!items!wnIXKyfqCWT0r4iT' @ 0 : 0; will stop at (end)
|
||||||
|
2024/05/02-09:24:00.903586 7f844ae006c0 Manual compaction at level-1 from '!items!1EVz9C1fDUBafPHj' @ 72057594037927935 : 1 .. '!items!wnIXKyfqCWT0r4iT' @ 0 : 0; will stop at (end)
|
BIN
packs/dons/MANIFEST-000036
Normal file
BIN
packs/dons/MANIFEST-000036
Normal file
Binary file not shown.
0
packs/equipement/000038.log
Normal file
0
packs/equipement/000038.log
Normal file
BIN
packs/equipement/000040.ldb
Normal file
BIN
packs/equipement/000040.ldb
Normal file
Binary file not shown.
1
packs/equipement/CURRENT
Normal file
1
packs/equipement/CURRENT
Normal file
@ -0,0 +1 @@
|
|||||||
|
MANIFEST-000036
|
0
packs/equipement/LOCK
Normal file
0
packs/equipement/LOCK
Normal file
15
packs/equipement/LOG
Normal file
15
packs/equipement/LOG
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
2025/05/01-23:39:32.814767 7fe00a7fc6c0 Recovering log #34
|
||||||
|
2025/05/01-23:39:32.824419 7fe00a7fc6c0 Delete type=0 #34
|
||||||
|
2025/05/01-23:39:32.824475 7fe00a7fc6c0 Delete type=3 #32
|
||||||
|
2025/05/02-00:00:01.899378 7fe0093ff6c0 Level-0 table #39: started
|
||||||
|
2025/05/02-00:00:01.903709 7fe0093ff6c0 Level-0 table #39: 22361 bytes OK
|
||||||
|
2025/05/02-00:00:01.910320 7fe0093ff6c0 Delete type=0 #37
|
||||||
|
2025/05/02-00:00:01.910744 7fe0093ff6c0 Manual compaction at level-0 from '!items!0tELaPFZgkeTUeVn' @ 72057594037927935 : 1 .. '!items!zC0kHoqZ9lkQFgI6' @ 0 : 0; will stop at (end)
|
||||||
|
2025/05/02-00:00:01.931428 7fe0093ff6c0 Manual compaction at level-1 from '!items!0tELaPFZgkeTUeVn' @ 72057594037927935 : 1 .. '!items!zC0kHoqZ9lkQFgI6' @ 0 : 0; will stop at '!items!zC0kHoqZ9lkQFgI6' @ 423 : 1
|
||||||
|
2025/05/02-00:00:01.931435 7fe0093ff6c0 Compacting 1@1 + 1@2 files
|
||||||
|
2025/05/02-00:00:01.934954 7fe0093ff6c0 Generated table #40@1: 141 keys, 22361 bytes
|
||||||
|
2025/05/02-00:00:01.934995 7fe0093ff6c0 Compacted 1@1 + 1@2 files => 22361 bytes
|
||||||
|
2025/05/02-00:00:01.942404 7fe0093ff6c0 compacted to: files[ 0 0 1 0 0 0 0 ]
|
||||||
|
2025/05/02-00:00:01.942634 7fe0093ff6c0 Delete type=2 #5
|
||||||
|
2025/05/02-00:00:01.942749 7fe0093ff6c0 Delete type=2 #39
|
||||||
|
2025/05/02-00:00:01.952311 7fe0093ff6c0 Manual compaction at level-1 from '!items!zC0kHoqZ9lkQFgI6' @ 423 : 1 .. '!items!zC0kHoqZ9lkQFgI6' @ 0 : 0; will stop at (end)
|
8
packs/equipement/LOG.old
Normal file
8
packs/equipement/LOG.old
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
2024/05/02-09:20:31.057575 7f844c2006c0 Recovering log #30
|
||||||
|
2024/05/02-09:20:31.068276 7f844c2006c0 Delete type=3 #28
|
||||||
|
2024/05/02-09:20:31.068367 7f844c2006c0 Delete type=0 #30
|
||||||
|
2024/05/02-09:24:00.993561 7f844ae006c0 Level-0 table #35: started
|
||||||
|
2024/05/02-09:24:00.993597 7f844ae006c0 Level-0 table #35: 0 bytes OK
|
||||||
|
2024/05/02-09:24:01.000558 7f844ae006c0 Delete type=0 #33
|
||||||
|
2024/05/02-09:24:01.000809 7f844ae006c0 Manual compaction at level-0 from '!items!0tELaPFZgkeTUeVn' @ 72057594037927935 : 1 .. '!items!zC0kHoqZ9lkQFgI6' @ 0 : 0; will stop at (end)
|
||||||
|
2024/05/02-09:24:01.000836 7f844ae006c0 Manual compaction at level-1 from '!items!0tELaPFZgkeTUeVn' @ 72057594037927935 : 1 .. '!items!zC0kHoqZ9lkQFgI6' @ 0 : 0; will stop at (end)
|
BIN
packs/equipement/MANIFEST-000036
Normal file
BIN
packs/equipement/MANIFEST-000036
Normal file
Binary file not shown.
0
packs/faiblesses/000038.log
Normal file
0
packs/faiblesses/000038.log
Normal file
BIN
packs/faiblesses/000040.ldb
Normal file
BIN
packs/faiblesses/000040.ldb
Normal file
Binary file not shown.
1
packs/faiblesses/CURRENT
Normal file
1
packs/faiblesses/CURRENT
Normal file
@ -0,0 +1 @@
|
|||||||
|
MANIFEST-000036
|
0
packs/faiblesses/LOCK
Normal file
0
packs/faiblesses/LOCK
Normal file
15
packs/faiblesses/LOG
Normal file
15
packs/faiblesses/LOG
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
2025/05/01-23:39:32.621680 7fe00a7fc6c0 Recovering log #34
|
||||||
|
2025/05/01-23:39:32.632357 7fe00a7fc6c0 Delete type=0 #34
|
||||||
|
2025/05/01-23:39:32.632424 7fe00a7fc6c0 Delete type=3 #32
|
||||||
|
2025/05/02-00:00:01.639368 7fe0093ff6c0 Level-0 table #39: started
|
||||||
|
2025/05/02-00:00:01.642654 7fe0093ff6c0 Level-0 table #39: 7080 bytes OK
|
||||||
|
2025/05/02-00:00:01.649609 7fe0093ff6c0 Delete type=0 #37
|
||||||
|
2025/05/02-00:00:01.659488 7fe0093ff6c0 Manual compaction at level-0 from '!items!0EoL2kcGdYiYS8lY' @ 72057594037927935 : 1 .. '!items!xf1RAsIzBXQgbLq2' @ 0 : 0; will stop at (end)
|
||||||
|
2025/05/02-00:00:01.680340 7fe0093ff6c0 Manual compaction at level-1 from '!items!0EoL2kcGdYiYS8lY' @ 72057594037927935 : 1 .. '!items!xf1RAsIzBXQgbLq2' @ 0 : 0; will stop at '!items!xf1RAsIzBXQgbLq2' @ 78 : 1
|
||||||
|
2025/05/02-00:00:01.680352 7fe0093ff6c0 Compacting 1@1 + 1@2 files
|
||||||
|
2025/05/02-00:00:01.683895 7fe0093ff6c0 Generated table #40@1: 26 keys, 7080 bytes
|
||||||
|
2025/05/02-00:00:01.683925 7fe0093ff6c0 Compacted 1@1 + 1@2 files => 7080 bytes
|
||||||
|
2025/05/02-00:00:01.690005 7fe0093ff6c0 compacted to: files[ 0 0 1 0 0 0 0 ]
|
||||||
|
2025/05/02-00:00:01.690119 7fe0093ff6c0 Delete type=2 #5
|
||||||
|
2025/05/02-00:00:01.690251 7fe0093ff6c0 Delete type=2 #39
|
||||||
|
2025/05/02-00:00:01.701424 7fe0093ff6c0 Manual compaction at level-1 from '!items!xf1RAsIzBXQgbLq2' @ 78 : 1 .. '!items!xf1RAsIzBXQgbLq2' @ 0 : 0; will stop at (end)
|
8
packs/faiblesses/LOG.old
Normal file
8
packs/faiblesses/LOG.old
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
2024/05/02-09:20:30.821401 7f844c2006c0 Recovering log #30
|
||||||
|
2024/05/02-09:20:30.832886 7f844c2006c0 Delete type=3 #28
|
||||||
|
2024/05/02-09:20:30.832985 7f844c2006c0 Delete type=0 #30
|
||||||
|
2024/05/02-09:24:00.896933 7f844ae006c0 Level-0 table #35: started
|
||||||
|
2024/05/02-09:24:00.896967 7f844ae006c0 Level-0 table #35: 0 bytes OK
|
||||||
|
2024/05/02-09:24:00.903398 7f844ae006c0 Delete type=0 #33
|
||||||
|
2024/05/02-09:24:00.903573 7f844ae006c0 Manual compaction at level-0 from '!items!0EoL2kcGdYiYS8lY' @ 72057594037927935 : 1 .. '!items!xf1RAsIzBXQgbLq2' @ 0 : 0; will stop at (end)
|
||||||
|
2024/05/02-09:24:00.903612 7f844ae006c0 Manual compaction at level-1 from '!items!0EoL2kcGdYiYS8lY' @ 72057594037927935 : 1 .. '!items!xf1RAsIzBXQgbLq2' @ 0 : 0; will stop at (end)
|
BIN
packs/faiblesses/MANIFEST-000036
Normal file
BIN
packs/faiblesses/MANIFEST-000036
Normal file
Binary file not shown.
0
packs/galdr-charme/000038.log
Normal file
0
packs/galdr-charme/000038.log
Normal file
BIN
packs/galdr-charme/000040.ldb
Normal file
BIN
packs/galdr-charme/000040.ldb
Normal file
Binary file not shown.
1
packs/galdr-charme/CURRENT
Normal file
1
packs/galdr-charme/CURRENT
Normal file
@ -0,0 +1 @@
|
|||||||
|
MANIFEST-000036
|
0
packs/galdr-charme/LOCK
Normal file
0
packs/galdr-charme/LOCK
Normal file
15
packs/galdr-charme/LOG
Normal file
15
packs/galdr-charme/LOG
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
2025/05/01-23:39:32.801529 7fe009ffb6c0 Recovering log #34
|
||||||
|
2025/05/01-23:39:32.811167 7fe009ffb6c0 Delete type=0 #34
|
||||||
|
2025/05/01-23:39:32.811253 7fe009ffb6c0 Delete type=3 #32
|
||||||
|
2025/05/02-00:00:01.867646 7fe0093ff6c0 Level-0 table #39: started
|
||||||
|
2025/05/02-00:00:01.872073 7fe0093ff6c0 Level-0 table #39: 1937 bytes OK
|
||||||
|
2025/05/02-00:00:01.879149 7fe0093ff6c0 Delete type=0 #37
|
||||||
|
2025/05/02-00:00:01.910677 7fe0093ff6c0 Manual compaction at level-0 from '!items!7VeQIQHxvw233Jzt' @ 72057594037927935 : 1 .. '!items!xw2gPhCxDVpkJnxL' @ 0 : 0; will stop at (end)
|
||||||
|
2025/05/02-00:00:01.910767 7fe0093ff6c0 Manual compaction at level-1 from '!items!7VeQIQHxvw233Jzt' @ 72057594037927935 : 1 .. '!items!xw2gPhCxDVpkJnxL' @ 0 : 0; will stop at '!items!xw2gPhCxDVpkJnxL' @ 15 : 1
|
||||||
|
2025/05/02-00:00:01.910774 7fe0093ff6c0 Compacting 1@1 + 1@2 files
|
||||||
|
2025/05/02-00:00:01.914057 7fe0093ff6c0 Generated table #40@1: 5 keys, 1937 bytes
|
||||||
|
2025/05/02-00:00:01.914102 7fe0093ff6c0 Compacted 1@1 + 1@2 files => 1937 bytes
|
||||||
|
2025/05/02-00:00:01.920813 7fe0093ff6c0 compacted to: files[ 0 0 1 0 0 0 0 ]
|
||||||
|
2025/05/02-00:00:01.920988 7fe0093ff6c0 Delete type=2 #5
|
||||||
|
2025/05/02-00:00:01.921112 7fe0093ff6c0 Delete type=2 #39
|
||||||
|
2025/05/02-00:00:01.952290 7fe0093ff6c0 Manual compaction at level-1 from '!items!xw2gPhCxDVpkJnxL' @ 15 : 1 .. '!items!xw2gPhCxDVpkJnxL' @ 0 : 0; will stop at (end)
|
8
packs/galdr-charme/LOG.old
Normal file
8
packs/galdr-charme/LOG.old
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
2024/05/02-09:20:31.042811 7f844cc006c0 Recovering log #30
|
||||||
|
2024/05/02-09:20:31.054523 7f844cc006c0 Delete type=3 #28
|
||||||
|
2024/05/02-09:20:31.054615 7f844cc006c0 Delete type=0 #30
|
||||||
|
2024/05/02-09:24:00.986638 7f844ae006c0 Level-0 table #35: started
|
||||||
|
2024/05/02-09:24:00.986739 7f844ae006c0 Level-0 table #35: 0 bytes OK
|
||||||
|
2024/05/02-09:24:00.993409 7f844ae006c0 Delete type=0 #33
|
||||||
|
2024/05/02-09:24:01.000786 7f844ae006c0 Manual compaction at level-0 from '!items!7VeQIQHxvw233Jzt' @ 72057594037927935 : 1 .. '!items!xw2gPhCxDVpkJnxL' @ 0 : 0; will stop at (end)
|
||||||
|
2024/05/02-09:24:01.000868 7f844ae006c0 Manual compaction at level-1 from '!items!7VeQIQHxvw233Jzt' @ 72057594037927935 : 1 .. '!items!xw2gPhCxDVpkJnxL' @ 0 : 0; will stop at (end)
|
BIN
packs/galdr-charme/MANIFEST-000036
Normal file
BIN
packs/galdr-charme/MANIFEST-000036
Normal file
Binary file not shown.
0
packs/galdr-illusions/000038.log
Normal file
0
packs/galdr-illusions/000038.log
Normal file
BIN
packs/galdr-illusions/000040.ldb
Normal file
BIN
packs/galdr-illusions/000040.ldb
Normal file
Binary file not shown.
1
packs/galdr-illusions/CURRENT
Normal file
1
packs/galdr-illusions/CURRENT
Normal file
@ -0,0 +1 @@
|
|||||||
|
MANIFEST-000036
|
0
packs/galdr-illusions/LOCK
Normal file
0
packs/galdr-illusions/LOCK
Normal file
15
packs/galdr-illusions/LOG
Normal file
15
packs/galdr-illusions/LOG
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
2025/05/01-23:39:32.788688 7fe00b7fe6c0 Recovering log #34
|
||||||
|
2025/05/01-23:39:32.798630 7fe00b7fe6c0 Delete type=0 #34
|
||||||
|
2025/05/01-23:39:32.798720 7fe00b7fe6c0 Delete type=3 #32
|
||||||
|
2025/05/02-00:00:01.879296 7fe0093ff6c0 Level-0 table #39: started
|
||||||
|
2025/05/02-00:00:01.882491 7fe0093ff6c0 Level-0 table #39: 3029 bytes OK
|
||||||
|
2025/05/02-00:00:01.889505 7fe0093ff6c0 Delete type=0 #37
|
||||||
|
2025/05/02-00:00:01.910707 7fe0093ff6c0 Manual compaction at level-0 from '!items!89NwqZV3Qn9xWeO0' @ 72057594037927935 : 1 .. '!items!sH7HaKggOEaBVzn3' @ 0 : 0; will stop at (end)
|
||||||
|
2025/05/02-00:00:01.942824 7fe0093ff6c0 Manual compaction at level-1 from '!items!89NwqZV3Qn9xWeO0' @ 72057594037927935 : 1 .. '!items!sH7HaKggOEaBVzn3' @ 0 : 0; will stop at '!items!sH7HaKggOEaBVzn3' @ 15 : 1
|
||||||
|
2025/05/02-00:00:01.942831 7fe0093ff6c0 Compacting 1@1 + 1@2 files
|
||||||
|
2025/05/02-00:00:01.945898 7fe0093ff6c0 Generated table #40@1: 5 keys, 3029 bytes
|
||||||
|
2025/05/02-00:00:01.945923 7fe0093ff6c0 Compacted 1@1 + 1@2 files => 3029 bytes
|
||||||
|
2025/05/02-00:00:01.951946 7fe0093ff6c0 compacted to: files[ 0 0 1 0 0 0 0 ]
|
||||||
|
2025/05/02-00:00:01.952072 7fe0093ff6c0 Delete type=2 #5
|
||||||
|
2025/05/02-00:00:01.952217 7fe0093ff6c0 Delete type=2 #39
|
||||||
|
2025/05/02-00:00:01.952318 7fe0093ff6c0 Manual compaction at level-1 from '!items!sH7HaKggOEaBVzn3' @ 15 : 1 .. '!items!sH7HaKggOEaBVzn3' @ 0 : 0; will stop at (end)
|
8
packs/galdr-illusions/LOG.old
Normal file
8
packs/galdr-illusions/LOG.old
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
2024/05/02-09:20:31.028964 7f844c2006c0 Recovering log #30
|
||||||
|
2024/05/02-09:20:31.039429 7f844c2006c0 Delete type=3 #28
|
||||||
|
2024/05/02-09:20:31.039533 7f844c2006c0 Delete type=0 #30
|
||||||
|
2024/05/02-09:24:00.979204 7f844ae006c0 Level-0 table #35: started
|
||||||
|
2024/05/02-09:24:00.979236 7f844ae006c0 Level-0 table #35: 0 bytes OK
|
||||||
|
2024/05/02-09:24:00.986242 7f844ae006c0 Delete type=0 #33
|
||||||
|
2024/05/02-09:24:00.986432 7f844ae006c0 Manual compaction at level-0 from '!items!89NwqZV3Qn9xWeO0' @ 72057594037927935 : 1 .. '!items!sH7HaKggOEaBVzn3' @ 0 : 0; will stop at (end)
|
||||||
|
2024/05/02-09:24:00.986497 7f844ae006c0 Manual compaction at level-1 from '!items!89NwqZV3Qn9xWeO0' @ 72057594037927935 : 1 .. '!items!sH7HaKggOEaBVzn3' @ 0 : 0; will stop at (end)
|
BIN
packs/galdr-illusions/MANIFEST-000036
Normal file
BIN
packs/galdr-illusions/MANIFEST-000036
Normal file
Binary file not shown.
0
packs/galdr-maledictions/000038.log
Normal file
0
packs/galdr-maledictions/000038.log
Normal file
BIN
packs/galdr-maledictions/000040.ldb
Normal file
BIN
packs/galdr-maledictions/000040.ldb
Normal file
Binary file not shown.
1
packs/galdr-maledictions/CURRENT
Normal file
1
packs/galdr-maledictions/CURRENT
Normal file
@ -0,0 +1 @@
|
|||||||
|
MANIFEST-000036
|
0
packs/galdr-maledictions/LOCK
Normal file
0
packs/galdr-maledictions/LOCK
Normal file
15
packs/galdr-maledictions/LOG
Normal file
15
packs/galdr-maledictions/LOG
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
2025/05/01-23:39:32.775407 7fe00affd6c0 Recovering log #34
|
||||||
|
2025/05/01-23:39:32.785711 7fe00affd6c0 Delete type=0 #34
|
||||||
|
2025/05/01-23:39:32.785835 7fe00affd6c0 Delete type=3 #32
|
||||||
|
2025/05/02-00:00:01.889636 7fe0093ff6c0 Level-0 table #39: started
|
||||||
|
2025/05/02-00:00:01.893029 7fe0093ff6c0 Level-0 table #39: 1953 bytes OK
|
||||||
|
2025/05/02-00:00:01.899195 7fe0093ff6c0 Delete type=0 #37
|
||||||
|
2025/05/02-00:00:01.910727 7fe0093ff6c0 Manual compaction at level-0 from '!items!1smXvw2EcuTkytDv' @ 72057594037927935 : 1 .. '!items!yKLS6KQafucspg3R' @ 0 : 0; will stop at (end)
|
||||||
|
2025/05/02-00:00:01.921184 7fe0093ff6c0 Manual compaction at level-1 from '!items!1smXvw2EcuTkytDv' @ 72057594037927935 : 1 .. '!items!yKLS6KQafucspg3R' @ 0 : 0; will stop at '!items!yKLS6KQafucspg3R' @ 15 : 1
|
||||||
|
2025/05/02-00:00:01.921192 7fe0093ff6c0 Compacting 1@1 + 1@2 files
|
||||||
|
2025/05/02-00:00:01.925008 7fe0093ff6c0 Generated table #40@1: 5 keys, 1953 bytes
|
||||||
|
2025/05/02-00:00:01.925036 7fe0093ff6c0 Compacted 1@1 + 1@2 files => 1953 bytes
|
||||||
|
2025/05/02-00:00:01.931142 7fe0093ff6c0 compacted to: files[ 0 0 1 0 0 0 0 ]
|
||||||
|
2025/05/02-00:00:01.931249 7fe0093ff6c0 Delete type=2 #5
|
||||||
|
2025/05/02-00:00:01.931354 7fe0093ff6c0 Delete type=2 #39
|
||||||
|
2025/05/02-00:00:01.952302 7fe0093ff6c0 Manual compaction at level-1 from '!items!yKLS6KQafucspg3R' @ 15 : 1 .. '!items!yKLS6KQafucspg3R' @ 0 : 0; will stop at (end)
|
8
packs/galdr-maledictions/LOG.old
Normal file
8
packs/galdr-maledictions/LOG.old
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
2024/05/02-09:20:31.014753 7f844cc006c0 Recovering log #30
|
||||||
|
2024/05/02-09:20:31.025539 7f844cc006c0 Delete type=3 #28
|
||||||
|
2024/05/02-09:20:31.025663 7f844cc006c0 Delete type=0 #30
|
||||||
|
2024/05/02-09:24:00.972587 7f844ae006c0 Level-0 table #35: started
|
||||||
|
2024/05/02-09:24:00.972622 7f844ae006c0 Level-0 table #35: 0 bytes OK
|
||||||
|
2024/05/02-09:24:00.979047 7f844ae006c0 Delete type=0 #33
|
||||||
|
2024/05/02-09:24:00.986419 7f844ae006c0 Manual compaction at level-0 from '!items!1smXvw2EcuTkytDv' @ 72057594037927935 : 1 .. '!items!yKLS6KQafucspg3R' @ 0 : 0; will stop at (end)
|
||||||
|
2024/05/02-09:24:00.986455 7f844ae006c0 Manual compaction at level-1 from '!items!1smXvw2EcuTkytDv' @ 72057594037927935 : 1 .. '!items!yKLS6KQafucspg3R' @ 0 : 0; will stop at (end)
|
BIN
packs/galdr-maledictions/MANIFEST-000036
Normal file
BIN
packs/galdr-maledictions/MANIFEST-000036
Normal file
Binary file not shown.
0
packs/poisons/000038.log
Normal file
0
packs/poisons/000038.log
Normal file
BIN
packs/poisons/000040.ldb
Normal file
BIN
packs/poisons/000040.ldb
Normal file
Binary file not shown.
1
packs/poisons/CURRENT
Normal file
1
packs/poisons/CURRENT
Normal file
@ -0,0 +1 @@
|
|||||||
|
MANIFEST-000036
|
0
packs/poisons/LOCK
Normal file
0
packs/poisons/LOCK
Normal file
15
packs/poisons/LOG
Normal file
15
packs/poisons/LOG
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
2025/05/01-23:39:32.762133 7fe00a7fc6c0 Recovering log #34
|
||||||
|
2025/05/01-23:39:32.773026 7fe00a7fc6c0 Delete type=0 #34
|
||||||
|
2025/05/01-23:39:32.773077 7fe00a7fc6c0 Delete type=3 #32
|
||||||
|
2025/05/02-00:00:01.814204 7fe0093ff6c0 Level-0 table #39: started
|
||||||
|
2025/05/02-00:00:01.817735 7fe0093ff6c0 Level-0 table #39: 4784 bytes OK
|
||||||
|
2025/05/02-00:00:01.825233 7fe0093ff6c0 Delete type=0 #37
|
||||||
|
2025/05/02-00:00:01.825500 7fe0093ff6c0 Manual compaction at level-0 from '!items!8lGlSw9Hkqbx1MDE' @ 72057594037927935 : 1 .. '!items!rMGHu9grQeuvSl6n' @ 0 : 0; will stop at (end)
|
||||||
|
2025/05/02-00:00:01.857578 7fe0093ff6c0 Manual compaction at level-1 from '!items!8lGlSw9Hkqbx1MDE' @ 72057594037927935 : 1 .. '!items!rMGHu9grQeuvSl6n' @ 0 : 0; will stop at '!items!rMGHu9grQeuvSl6n' @ 24 : 1
|
||||||
|
2025/05/02-00:00:01.857585 7fe0093ff6c0 Compacting 1@1 + 1@2 files
|
||||||
|
2025/05/02-00:00:01.860854 7fe0093ff6c0 Generated table #40@1: 8 keys, 4784 bytes
|
||||||
|
2025/05/02-00:00:01.860888 7fe0093ff6c0 Compacted 1@1 + 1@2 files => 4784 bytes
|
||||||
|
2025/05/02-00:00:01.867243 7fe0093ff6c0 compacted to: files[ 0 0 1 0 0 0 0 ]
|
||||||
|
2025/05/02-00:00:01.867339 7fe0093ff6c0 Delete type=2 #5
|
||||||
|
2025/05/02-00:00:01.867456 7fe0093ff6c0 Delete type=2 #39
|
||||||
|
2025/05/02-00:00:01.867553 7fe0093ff6c0 Manual compaction at level-1 from '!items!rMGHu9grQeuvSl6n' @ 24 : 1 .. '!items!rMGHu9grQeuvSl6n' @ 0 : 0; will stop at (end)
|
8
packs/poisons/LOG.old
Normal file
8
packs/poisons/LOG.old
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
2024/05/02-09:20:30.999762 7f844c2006c0 Recovering log #30
|
||||||
|
2024/05/02-09:20:31.011319 7f844c2006c0 Delete type=3 #28
|
||||||
|
2024/05/02-09:20:31.011472 7f844c2006c0 Delete type=0 #30
|
||||||
|
2024/05/02-09:24:00.966161 7f844ae006c0 Level-0 table #35: started
|
||||||
|
2024/05/02-09:24:00.966208 7f844ae006c0 Level-0 table #35: 0 bytes OK
|
||||||
|
2024/05/02-09:24:00.972433 7f844ae006c0 Delete type=0 #33
|
||||||
|
2024/05/02-09:24:00.986400 7f844ae006c0 Manual compaction at level-0 from '!items!8lGlSw9Hkqbx1MDE' @ 72057594037927935 : 1 .. '!items!rMGHu9grQeuvSl6n' @ 0 : 0; will stop at (end)
|
||||||
|
2024/05/02-09:24:00.986511 7f844ae006c0 Manual compaction at level-1 from '!items!8lGlSw9Hkqbx1MDE' @ 72057594037927935 : 1 .. '!items!rMGHu9grQeuvSl6n' @ 0 : 0; will stop at (end)
|
BIN
packs/poisons/MANIFEST-000036
Normal file
BIN
packs/poisons/MANIFEST-000036
Normal file
Binary file not shown.
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user