forked from public/fvtt-yggdrasill
Compare commits
13 Commits
Author | SHA1 | Date | |
---|---|---|---|
ee7f37878f | |||
85e0249822 | |||
8f0bf91464 | |||
2c79743009 | |||
ecd164c3e5 | |||
ecdb85455d | |||
8d56fed614 | |||
63d1c5847b | |||
866a079c69 | |||
fa0b989c86 | |||
895a722f4c | |||
4442050b11 | |||
aee6b2feae |
@ -11,11 +11,11 @@ export class YggdrasillActorSheet extends 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: 640,
|
width: 680,
|
||||||
height: 720,
|
height: 740,
|
||||||
tabs: [{ navSelector: ".sheet-tabs", contentSelector: ".sheet-body", initial: "stats" }],
|
tabs: [{ navSelector: ".sheet-tabs", contentSelector: ".sheet-body", initial: "stats" }],
|
||||||
dragDrop: [{ dragSelector: ".item-list .item", dropSelector: null }],
|
dragDrop: [{ dragSelector: ".item-list .item", dropSelector: null }],
|
||||||
editScore: false
|
editScore: false
|
||||||
@ -23,8 +23,8 @@ export class YggdrasillActorSheet extends ActorSheet {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* -------------------------------------------- */
|
/* -------------------------------------------- */
|
||||||
getData() {
|
async getData() {
|
||||||
const objectData = YggdrasillUtility.data(this.object);
|
const objectData = foundry.utils.duplicate(this.object)
|
||||||
|
|
||||||
let formData = {
|
let formData = {
|
||||||
title: this.title,
|
title: this.title,
|
||||||
@ -34,7 +34,7 @@ export class YggdrasillActorSheet extends ActorSheet {
|
|||||||
name: objectData.name,
|
name: objectData.name,
|
||||||
editable: this.isEditable,
|
editable: this.isEditable,
|
||||||
cssClass: this.isEditable ? "editable" : "locked",
|
cssClass: this.isEditable ? "editable" : "locked",
|
||||||
data: foundry.utils.deepClone(YggdrasillUtility.templateData(this.object)),
|
data: foundry.utils.deepClone(objectData.system),
|
||||||
effects: this.object.effects.map(e => foundry.utils.deepClone(e.data)),
|
effects: this.object.effects.map(e => foundry.utils.deepClone(e.data)),
|
||||||
limited: this.object.limited,
|
limited: this.object.limited,
|
||||||
isEpuise: this.actor.isEpuise(),
|
isEpuise: this.actor.isEpuise(),
|
||||||
@ -64,10 +64,15 @@ export class YggdrasillActorSheet extends ActorSheet {
|
|||||||
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}),
|
||||||
|
description: await TextEditor.enrichHTML(this.object.system.description, {async: true}),
|
||||||
|
notes: await TextEditor.enrichHTML(this.object.system.notes, {async: true}),
|
||||||
|
gmnotes: await TextEditor.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);
|
||||||
|
@ -175,15 +175,15 @@ export class YggdrasillActor extends Actor {
|
|||||||
async prepareData() {
|
async prepareData() {
|
||||||
if ( this.type == "personnage") {
|
if ( this.type == "personnage") {
|
||||||
this.computeCaracSecondaire();
|
this.computeCaracSecondaire();
|
||||||
if (this.data.data.furor.value == 0)
|
if (this.system.furor.value == 0)
|
||||||
await this.setEpuise();
|
await this.setEpuise();
|
||||||
else
|
else
|
||||||
await this.cleanEpuise();
|
await this.cleanEpuise();
|
||||||
if ( this.data.data.caracsecondaire.pv.value < (this.data.data.caracsecondaire.pv.max/4) )
|
if ( this.system.caracsecondaire.pv.value < (this.system.caracsecondaire.pv.max/4) )
|
||||||
await this.setMeurtri();
|
await this.setMeurtri();
|
||||||
else
|
else
|
||||||
await this.cleanMeurtri();
|
await this.cleanMeurtri();
|
||||||
if ( this.data.data.caracsecondaire.pv.value < (this.data.data.caracsecondaire.pv.max/2) )
|
if ( this.system.caracsecondaire.pv.value < (this.system.caracsecondaire.pv.max/2) )
|
||||||
await this.setBlesse();
|
await this.setBlesse();
|
||||||
else
|
else
|
||||||
await this.cleanBlesse();
|
await this.cleanBlesse();
|
||||||
@ -193,24 +193,24 @@ export class YggdrasillActor extends Actor {
|
|||||||
|
|
||||||
/* -------------------------------------------- */
|
/* -------------------------------------------- */
|
||||||
_preUpdate(changed, options, user) {
|
_preUpdate(changed, options, user) {
|
||||||
if ( changed.data?.caracsecondaire?.pv?.value ) {
|
if ( changed.system?.caracsecondaire?.pv?.value ) {
|
||||||
if ( changed.data.caracsecondaire.pv.value < 0 )
|
if ( changed.system.caracsecondaire.pv.value < 0 )
|
||||||
changed.data.caracsecondaire.pv.value = 0;
|
changed.system.caracsecondaire.pv.value = 0;
|
||||||
if ( changed.data.caracsecondaire.pv.value > this.data.data.caracsecondaire.pv.max )
|
if ( changed.system.caracsecondaire.pv.value > this.system.caracsecondaire.pv.max )
|
||||||
changed.data.caracsecondaire.pv.value = this.data.data.caracsecondaire.pv.max;
|
changed.system.caracsecondaire.pv.value = this.system.caracsecondaire.pv.max;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( changed.data?.furor?.value ) {
|
if ( changed.system?.furor?.value ) {
|
||||||
if ( changed.data.furor.value < 0 )
|
if ( changed.system.furor.value < 0 )
|
||||||
changed.data.furor.value = 0;
|
changed.system.furor.value = 0;
|
||||||
if ( changed.data.furor.value > this.data.data.furor.max )
|
if ( changed.system.furor.value > this.system.furor.max )
|
||||||
changed.data.furor.value = this.data.data.furor.max;
|
changed.system.furor.value = this.system.furor.max;
|
||||||
}
|
}
|
||||||
super._preUpdate(changed, options, user);
|
super._preUpdate(changed, options, user);
|
||||||
}
|
}
|
||||||
/* -------------------------------------------- */
|
/* -------------------------------------------- */
|
||||||
getCompetences() {
|
getCompetences() {
|
||||||
let comp = this.data.items.filter( item => item.type == 'competence');
|
let comp = this.items.filter( item => item.type == 'competence');
|
||||||
return comp;
|
return comp;
|
||||||
}
|
}
|
||||||
/* -------------------------------------------- */
|
/* -------------------------------------------- */
|
||||||
@ -226,95 +226,95 @@ export class YggdrasillActor extends Actor {
|
|||||||
/* -------------------------------------------- */
|
/* -------------------------------------------- */
|
||||||
getInitiativeScore() {
|
getInitiativeScore() {
|
||||||
if ( this.type == 'personnage') {
|
if ( this.type == 'personnage') {
|
||||||
return this.data.data.caracsecondaire.reaction.max;
|
return this.system.caracsecondaire.reaction.max;
|
||||||
} else {
|
} else {
|
||||||
return this.data.data.attributs.physique.values.defaut.value;
|
return this.system.attributs.physique.values.defaut.value;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* -------------------------------------------- */
|
/* -------------------------------------------- */
|
||||||
getCompetencesGenerales() {
|
getCompetencesGenerales() {
|
||||||
let comp = this.data.items.filter( item => item.type == 'competence' && item.data.data.categorie == 'generale');
|
let comp = this.items.filter( item => item.type == 'competence' && item.system.categorie == 'generale');
|
||||||
return comp.sort( this.compareName );
|
return comp.sort( this.compareName );
|
||||||
}
|
}
|
||||||
/* -------------------------------------------- */
|
/* -------------------------------------------- */
|
||||||
getCompetencesMartiales() {
|
getCompetencesMartiales() {
|
||||||
let comp = this.data.items.filter( item => item.type == 'competence' && item.data.data.categorie == 'martiale');
|
let comp = this.items.filter( item => item.type == 'competence' && item.system.categorie == 'martiale');
|
||||||
return comp.sort( this.compareName );
|
return comp.sort( this.compareName );
|
||||||
}
|
}
|
||||||
/* -------------------------------------------- */
|
/* -------------------------------------------- */
|
||||||
getCompetencesMagiques() {
|
getCompetencesMagiques() {
|
||||||
let comp = this.data.items.filter( item => item.type == 'competence' && item.data.data.categorie == 'magique');
|
let comp = this.items.filter( item => item.type == 'competence' && item.system.categorie == 'magique');
|
||||||
return comp.sort( this.compareName );
|
return comp.sort( this.compareName );
|
||||||
}
|
}
|
||||||
|
|
||||||
/* -------------------------------------------- */
|
/* -------------------------------------------- */
|
||||||
getDons( ) {
|
getDons( ) {
|
||||||
let dons = this.data.items.filter( item => item.type == 'don');
|
let dons = this.items.filter( item => item.type == 'don');
|
||||||
return dons.sort( this.compareName );
|
return dons.sort( this.compareName );
|
||||||
}
|
}
|
||||||
/* -------------------------------------------- */
|
/* -------------------------------------------- */
|
||||||
getEffetsMagiques( ) {
|
getEffetsMagiques( ) {
|
||||||
let effets = this.data.items.filter( item => item.type == 'effetmagique');
|
let effets = this.items.filter( item => item.type == 'effetmagique');
|
||||||
return effets.sort( this.compareName );
|
return effets.sort( this.compareName );
|
||||||
}
|
}
|
||||||
/* -------------------------------------------- */
|
/* -------------------------------------------- */
|
||||||
getEffetsDeRunes( ) {
|
getEffetsDeRunes( ) {
|
||||||
let effets = this.data.items.filter( item => item.type == 'effetderune');
|
let effets = this.items.filter( item => item.type == 'effetderune');
|
||||||
return effets.sort( this.compareName );
|
return effets.sort( this.compareName );
|
||||||
}
|
}
|
||||||
|
|
||||||
/* -------------------------------------------- */
|
/* -------------------------------------------- */
|
||||||
getMonnaies( ) {
|
getMonnaies( ) {
|
||||||
let monnaies = this.data.items.filter( item => item.type == 'monnaie');
|
let monnaies = this.items.filter( item => item.type == 'monnaie');
|
||||||
return monnaies.sort( this.compareName );
|
return monnaies.sort( this.compareName );
|
||||||
}
|
}
|
||||||
/* -------------------------------------------- */
|
/* -------------------------------------------- */
|
||||||
getFaiblesses( ) {
|
getFaiblesses( ) {
|
||||||
let faib = this.data.items.filter( item => item.type == 'faiblesse');
|
let faib = this.items.filter( item => item.type == 'faiblesse');
|
||||||
return faib.sort( this.compareName );
|
return faib.sort( this.compareName );
|
||||||
}
|
}
|
||||||
/* -------------------------------------------- */
|
/* -------------------------------------------- */
|
||||||
getBlessures( ) {
|
getBlessures( ) {
|
||||||
return this.data.items.filter( item => item.type == 'blessure');
|
return this.items.filter( item => item.type == 'blessure');
|
||||||
}
|
}
|
||||||
/* -------------------------------------------- */
|
/* -------------------------------------------- */
|
||||||
getToutEquipements() {
|
getToutEquipements() {
|
||||||
return this.data.items.filter( item => item.type == 'equipement' || item.type == 'armure' || item.type == 'armecc' || item.type == 'armedist' || item.type == 'bouclier');
|
return this.items.filter( item => item.type == 'equipement' || item.type == 'armure' || item.type == 'armecc' || item.type == 'armedist' || item.type == 'bouclier');
|
||||||
}
|
}
|
||||||
/* -------------------------------------------- */
|
/* -------------------------------------------- */
|
||||||
getArmes() {
|
getArmes() {
|
||||||
return this.data.items.filter( item => (item.type == 'armecc' || item.type == 'armedist') && item.data.data.equipe );
|
return this.items.filter( item => (item.type == 'armecc' || item.type == 'armedist') && item.system.equipe );
|
||||||
}
|
}
|
||||||
/* -------------------------------------------- */
|
/* -------------------------------------------- */
|
||||||
getArmures() {
|
getArmures() {
|
||||||
return this.data.items.filter( item => item.type == 'armure' && item.data.data.equipe );
|
return this.items.filter( item => item.type == 'armure' && item.system.equipe );
|
||||||
}
|
}
|
||||||
getBoucliers() {
|
getBoucliers() {
|
||||||
return this.data.items.filter( item => item.type == 'bouclier' && item.data.data.equipe );
|
return this.items.filter( item => item.type == 'bouclier' && item.system.equipe );
|
||||||
}
|
}
|
||||||
getProuessesMartiales() {
|
getProuessesMartiales() {
|
||||||
let prouesse = this.data.items.filter( item => item.type == 'prouesse' );
|
let prouesse = this.items.filter( item => item.type == 'prouesse' );
|
||||||
return prouesse.sort( this.compareName );
|
return prouesse.sort( this.compareName );
|
||||||
}
|
}
|
||||||
getSortsSejdr() {
|
getSortsSejdr() {
|
||||||
let sort = this.data.items.filter( item => item.type == 'sortsejdr' );
|
let sort = this.items.filter( item => item.type == 'sortsejdr' );
|
||||||
return sort.sort( this.compareName );
|
return sort.sort( this.compareName );
|
||||||
}
|
}
|
||||||
getSortsGaldr() {
|
getSortsGaldr() {
|
||||||
let sort = this.data.items.filter( item => item.type == 'sortgaldr' );
|
let sort = this.items.filter( item => item.type == 'sortgaldr' );
|
||||||
return sort.sort( this.compareName );
|
return sort.sort( this.compareName );
|
||||||
}
|
}
|
||||||
getRunes() {
|
getRunes() {
|
||||||
let sort = this.data.items.filter( item => item.type == 'rune' );
|
let sort = this.items.filter( item => item.type == 'rune' );
|
||||||
return sort.sort( this.compareName );
|
return sort.sort( this.compareName );
|
||||||
}
|
}
|
||||||
|
|
||||||
/* -------------------------------------------- */
|
/* -------------------------------------------- */
|
||||||
async setEpuise( ) {
|
async setEpuise( ) {
|
||||||
if (!this.data.data.status.epuise) {
|
if (!this.system.status.epuise) {
|
||||||
await this.update({ 'data.status.epuise': true});
|
await this.update({ 'system.status.epuise': true});
|
||||||
this.data.data.status.epuise = true;
|
this.system.status.epuise = true;
|
||||||
}
|
}
|
||||||
/*let effect = this.getEffectByLabel('Epuisé');
|
/*let effect = this.getEffectByLabel('Epuisé');
|
||||||
if ( !effect ) {
|
if ( !effect ) {
|
||||||
@ -324,9 +324,9 @@ export class YggdrasillActor extends Actor {
|
|||||||
}
|
}
|
||||||
/* -------------------------------------------- */
|
/* -------------------------------------------- */
|
||||||
async cleanEpuise() {
|
async cleanEpuise() {
|
||||||
if (this.data.data.status.epuise) {
|
if (this.system.status.epuise) {
|
||||||
await this.update({ 'data.status.epuise': false});
|
await this.update({ 'system.status.epuise': false});
|
||||||
this.data.data.status.epuise = false;
|
this.system.status.epuise = false;
|
||||||
}
|
}
|
||||||
/*let effect = this.getEffectByLabel('Epuisé');
|
/*let effect = this.getEffectByLabel('Epuisé');
|
||||||
if ( effect ) {
|
if ( effect ) {
|
||||||
@ -335,7 +335,7 @@ export class YggdrasillActor extends Actor {
|
|||||||
}
|
}
|
||||||
/* -------------------------------------------- */
|
/* -------------------------------------------- */
|
||||||
async toggleEpuise( ) {
|
async toggleEpuise( ) {
|
||||||
if ( this.data.data.status.epuise ) {
|
if ( this.system.status.epuise ) {
|
||||||
await this.cleanEpuise();
|
await this.cleanEpuise();
|
||||||
} else {
|
} else {
|
||||||
await this.setEpuise();
|
await this.setEpuise();
|
||||||
@ -343,14 +343,14 @@ export class YggdrasillActor extends Actor {
|
|||||||
}
|
}
|
||||||
/* -------------------------------------------- */
|
/* -------------------------------------------- */
|
||||||
isEpuise() {
|
isEpuise() {
|
||||||
return this.data.data.status.epuise;
|
return this.system.status.epuise;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* -------------------------------------------- */
|
/* -------------------------------------------- */
|
||||||
async setBlesse( ) {
|
async setBlesse( ) {
|
||||||
if (!this.data.data.status.blesse) {
|
if (!this.system.status.blesse) {
|
||||||
await this.update({ 'data.status.blesse': true} );
|
await this.update({ 'system.status.blesse': true} );
|
||||||
this.data.data.status.blesse = true;
|
this.system.status.blesse = true;
|
||||||
}
|
}
|
||||||
/*let effect = this.getEffectByLabel('Blessé');
|
/*let effect = this.getEffectByLabel('Blessé');
|
||||||
if ( !effect ) {
|
if ( !effect ) {
|
||||||
@ -360,9 +360,9 @@ export class YggdrasillActor extends Actor {
|
|||||||
}
|
}
|
||||||
/* -------------------------------------------- */
|
/* -------------------------------------------- */
|
||||||
async cleanBlesse() {
|
async cleanBlesse() {
|
||||||
if (this.data.data.status.blesse) {
|
if (this.system.status.blesse) {
|
||||||
await this.update({ 'data.status.blesse': false} );
|
await this.update({ 'system.status.blesse': false} );
|
||||||
this.data.data.status.blesse = false;
|
this.system.status.blesse = false;
|
||||||
}
|
}
|
||||||
/*let effect = this.getEffectByLabel('Blessé');
|
/*let effect = this.getEffectByLabel('Blessé');
|
||||||
if ( effect ) {
|
if ( effect ) {
|
||||||
@ -372,47 +372,46 @@ export class YggdrasillActor extends Actor {
|
|||||||
|
|
||||||
/* -------------------------------------------- */
|
/* -------------------------------------------- */
|
||||||
isBlesse() {
|
isBlesse() {
|
||||||
return this.data.data.status.blesse;
|
return this.system.status.blesse;
|
||||||
//return this.getEffectByLabel('Blessé');
|
//return this.getEffectByLabel('Blessé');
|
||||||
}
|
}
|
||||||
/* -------------------------------------------- */
|
/* -------------------------------------------- */
|
||||||
async setMeurtri( ) {
|
async setMeurtri( ) {
|
||||||
await this.setBlesse();
|
await this.setBlesse();
|
||||||
if (!this.data.data.status.meurtri) {
|
if (!this.system.status.meurtri) {
|
||||||
await this.update({ 'data.status.meurtri': true});
|
await this.update({ 'system.status.meurtri': true});
|
||||||
this.data.data.status.meurtri = true;
|
this.system.status.meurtri = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
/* -------------------------------------------- */
|
/* -------------------------------------------- */
|
||||||
async cleanMeurtri() {
|
async cleanMeurtri() {
|
||||||
if (this.data.data.status.meurtri) {
|
if (this.system.status.meurtri) {
|
||||||
await this.update({ 'data.status.meurtri': false});
|
await this.update({ 'system.status.meurtri': false});
|
||||||
this.data.data.status.meurtri = false;
|
this.system.status.meurtri = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
/* -------------------------------------------- */
|
/* -------------------------------------------- */
|
||||||
isMeurtri() {
|
isMeurtri() {
|
||||||
return this.data.data.status.meurtri;
|
return this.system.status.meurtri;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* -------------------------------------------- */
|
/* -------------------------------------------- */
|
||||||
async decrementFuror( nbFuror) {
|
async decrementFuror( nbFuror) {
|
||||||
await this.update( { 'data.furor.value': this.data.data.furor.value - nbFuror } );
|
await this.update( { 'system.furor.value': this.system.furor.value - nbFuror } );
|
||||||
}
|
}
|
||||||
|
|
||||||
/* -------------------------------------------- */
|
/* -------------------------------------------- */
|
||||||
getCurrentFuror() {
|
getCurrentFuror() {
|
||||||
return this.data.data.furor.value;
|
return this.system.furor.value;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* -------------------------------------------- */
|
/* -------------------------------------------- */
|
||||||
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) {
|
||||||
@ -421,11 +420,11 @@ export class YggdrasillActor extends Actor {
|
|||||||
|
|
||||||
/* -------------------------------------------- */
|
/* -------------------------------------------- */
|
||||||
getCarac( caracName ) {
|
getCarac( caracName ) {
|
||||||
for( let key in this.data.data.carac) {
|
for( let key in this.system.carac) {
|
||||||
let categ = this.data.data.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]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -434,50 +433,72 @@ export class YggdrasillActor extends Actor {
|
|||||||
/* -------------------------------------------- */
|
/* -------------------------------------------- */
|
||||||
computeCaracSecondaire( ) {
|
computeCaracSecondaire( ) {
|
||||||
if ( this.type == "personnage") {
|
if ( this.type == "personnage") {
|
||||||
let basecorps = this.data.data.carac.corps.carac;
|
let basecorps = this.system.carac.corps.carac;
|
||||||
let sumcorps = basecorps.puissance.value + basecorps.agilite.value + basecorps.vigueur.value
|
let sumcorps = basecorps.puissance.value + basecorps.agilite.value + basecorps.vigueur.value
|
||||||
let baseesprit = this.data.data.carac.esprit.carac;
|
let baseesprit = this.system.carac.esprit.carac;
|
||||||
let sumesprit = baseesprit.intellect.value + baseesprit.perception.value + baseesprit.tenacite.value
|
let sumesprit = baseesprit.intellect.value + baseesprit.perception.value + baseesprit.tenacite.value
|
||||||
let baseame = this.data.data.carac.ame.carac;
|
let baseame = this.system.carac.ame.carac;
|
||||||
let sumame = baseame.charisme.value + baseame.communication.value + baseame.instinct.value
|
let sumame = baseame.charisme.value + baseame.communication.value + baseame.instinct.value
|
||||||
|
|
||||||
let newPV = (sumcorps*3) + (sumesprit *2) + sumame;
|
let newPV = (sumcorps*3) + (sumesprit *2) + sumame;
|
||||||
if ( newPV != this.data.data.caracsecondaire.pv.max) {
|
if ( newPV != this.system.caracsecondaire.pv.max) {
|
||||||
this.data.data.caracsecondaire.pv.max = newPV;
|
this.system.caracsecondaire.pv.max = newPV;
|
||||||
this.update( { 'data.caracsecondaire.pv.max': newPV });
|
this.update( { 'system.caracsecondaire.pv.max': newPV });
|
||||||
}
|
}
|
||||||
|
|
||||||
this.data.data.caracsecondaire.reaction.value = baseesprit.intellect.value + baseesprit.perception.value + baseame.instinct.value;
|
this.system.caracsecondaire.reaction.value = baseesprit.intellect.value + baseesprit.perception.value + baseame.instinct.value;
|
||||||
this.data.data.caracsecondaire.reaction.max = baseesprit.intellect.value + baseesprit.perception.value + baseame.instinct.value;
|
let newReac = baseesprit.intellect.value + baseesprit.perception.value + baseame.instinct.value;
|
||||||
|
if ( newReac != this.system.caracsecondaire.reaction.max) {
|
||||||
|
this.system.caracsecondaire.reaction.max = newReac
|
||||||
|
this.update( { 'system.caracsecondaire.reaction.max': newReac });
|
||||||
|
}
|
||||||
|
|
||||||
this.data.data.caracsecondaire.defensephy.value = basecorps.agilite.value + basecorps.vigueur.value + baseame.instinct.value;
|
this.system.caracsecondaire.defensephy.value = basecorps.agilite.value + basecorps.vigueur.value + baseame.instinct.value;
|
||||||
this.data.data.caracsecondaire.defensephy.max = basecorps.agilite.value + basecorps.vigueur.value + baseame.instinct.value;
|
let newDef = basecorps.agilite.value + basecorps.vigueur.value + baseame.instinct.value;
|
||||||
|
if ( newDef != this.system.caracsecondaire.defensephy.max) {
|
||||||
|
this.system.caracsecondaire.defensephy.max = newDef
|
||||||
|
this.update( { 'system.caracsecondaire.defensephy.max': newDef });
|
||||||
|
}
|
||||||
|
|
||||||
this.data.data.caracsecondaire.defensemen.value = baseesprit.tenacite.value + baseame.instinct.value + baseesprit.intellect.value;
|
this.system.caracsecondaire.defensemen.value = baseesprit.tenacite.value + baseame.instinct.value + baseesprit.intellect.value;
|
||||||
this.data.data.caracsecondaire.defensemen.max = baseesprit.tenacite.value + baseame.instinct.value + baseesprit.intellect.value;
|
newDef = baseesprit.tenacite.value + baseame.instinct.value + baseesprit.intellect.value;
|
||||||
|
if ( newDef != this.system.caracsecondaire.defensemen.max) {
|
||||||
|
this.system.caracsecondaire.defensemen.max = newDef
|
||||||
|
this.update( { 'system.caracsecondaire.defensemen.max': newDef });
|
||||||
|
}
|
||||||
|
|
||||||
this.data.data.caracsecondaire.deplacement.value = basecorps.agilite.value + basecorps.vigueur.value;
|
this.system.caracsecondaire.deplacement.value = basecorps.agilite.value + basecorps.vigueur.value;
|
||||||
this.data.data.caracsecondaire.deplacement.max = basecorps.agilite.value + basecorps.vigueur.value;
|
let depl = basecorps.agilite.value + basecorps.vigueur.value;
|
||||||
|
if ( depl != this.system.caracsecondaire.deplacement.max) {
|
||||||
|
this.system.caracsecondaire.deplacement.max = depl
|
||||||
|
this.update( { 'system.caracsecondaire.deplacement.max': depl });
|
||||||
|
}
|
||||||
|
|
||||||
this.data.data.caracsecondaire.capaenc.value = (basecorps.puissance.value * 2) + basecorps.vigueur.value;
|
this.system.caracsecondaire.capaenc.value = (basecorps.puissance.value * 2) + basecorps.vigueur.value;
|
||||||
this.data.data.caracsecondaire.capaenc.max = (basecorps.puissance.value * 2) + basecorps.vigueur.value;
|
let enc = (basecorps.puissance.value * 2) + basecorps.vigueur.value;
|
||||||
|
if ( enc != this.system.caracsecondaire.capaenc.max ) {
|
||||||
|
this.system.caracsecondaire.capaenc.max = enc
|
||||||
|
this.update( { 'system.caracsecondaire.capaenc.max': enc });
|
||||||
|
}
|
||||||
|
|
||||||
|
//console.log("CARAC SEC", this.system.caracsecondaire)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* -------------------------------------------- */
|
/* -------------------------------------------- */
|
||||||
async equiperObject( equipementId ) {
|
async equiperObject( equipementId ) {
|
||||||
let item = this.data.items.find( item => item.id == equipementId );
|
let item = this.items.find( item => item.id == equipementId );
|
||||||
if (item && item.data.data) {
|
if (item && item.system) {
|
||||||
let update = { _id: item.id, "data.equipe": !item.data.data.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
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
/* -------------------------------------------- */
|
/* -------------------------------------------- */
|
||||||
async updateCompetence( compId, niveau) {
|
async updateCompetence( compId, niveau) {
|
||||||
let comp = this.data.items.find( item => item.type == 'competence' && item.id == compId);
|
let comp = this.items.find( item => item.type == 'competence' && item.id == compId);
|
||||||
console.log("Comp updated!!!!", compId, niveau);
|
console.log("Comp updated!!!!", compId, niveau);
|
||||||
if (comp) {
|
if (comp) {
|
||||||
const update = { _id: comp.id, 'data.niveau': niveau };
|
const update = { _id: comp.id, 'system.niveau': niveau };
|
||||||
await this.updateEmbeddedDocuments('Item', [update]); // Updates one EmbeddedEntity
|
await this.updateEmbeddedDocuments('Item', [update]); // Updates one EmbeddedEntity
|
||||||
} else {
|
} else {
|
||||||
ui.notifications.warn("Compétence inconnue", compId)
|
ui.notifications.warn("Compétence inconnue", compId)
|
||||||
@ -491,9 +512,9 @@ export class YggdrasillActor extends Actor {
|
|||||||
|
|
||||||
/* -------------------------------------------- */
|
/* -------------------------------------------- */
|
||||||
async rollAttribute( attrkey, subAttrKey = 'defaut') {
|
async rollAttribute( attrkey, subAttrKey = 'defaut') {
|
||||||
let attr = duplicate(this.data.data.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.data.data.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}`;
|
||||||
@ -503,18 +524,13 @@ export class YggdrasillActor extends Actor {
|
|||||||
actorImg: this.img,
|
actorImg: this.img,
|
||||||
actorId: this.id,
|
actorId: this.id,
|
||||||
attr: attr,
|
attr: attr,
|
||||||
valuePhysique: this.data.data.attributs["physique"].values["defaut"].value,
|
valuePhysique: this.system.attributs["physique"].values["defaut"].value,
|
||||||
subAttr: subAttr,
|
subAttr: subAttr,
|
||||||
rollMode: game.settings.get("core", "rollMode"),
|
rollMode: game.settings.get("core", "rollMode"),
|
||||||
title: title,
|
title: title,
|
||||||
isBlesse: this.data.data.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 );
|
||||||
@ -522,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.data.data.carac[categName].carac[caracName]);
|
let carac = foundry.utils.duplicate(this.system.carac[categName].carac[caracName]);
|
||||||
console.log("CARAC : ", carac, this.data.data.carac);
|
|
||||||
if ( carac) {
|
if ( carac) {
|
||||||
let rollData = {
|
let rollData = {
|
||||||
mode: "carac",
|
mode: "carac",
|
||||||
@ -540,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 );
|
||||||
@ -559,7 +582,7 @@ export class YggdrasillActor extends Actor {
|
|||||||
|
|
||||||
/* -------------------------------------------- */
|
/* -------------------------------------------- */
|
||||||
async rollCompetence( competenceId ) {
|
async rollCompetence( competenceId ) {
|
||||||
let competence = this.data.items.find( item => item.type == 'competence' && item.id == competenceId);
|
let competence = this.items.find( item => item.type == 'competence' && item.id == competenceId);
|
||||||
if ( competence) {
|
if ( competence) {
|
||||||
let rollData = {
|
let rollData = {
|
||||||
mode: "competence",
|
mode: "competence",
|
||||||
@ -568,18 +591,13 @@ export class YggdrasillActor extends Actor {
|
|||||||
actorId: this.id,
|
actorId: this.id,
|
||||||
img: competence.img,
|
img: competence.img,
|
||||||
rollMode: game.settings.get("core", "rollMode"),
|
rollMode: game.settings.get("core", "rollMode"),
|
||||||
title: `Compétence ${competence.name} : ${competence.data.data.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 );
|
||||||
@ -590,21 +608,21 @@ 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.data.data.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.data.data.carac[attackData.categName].carac[malusTab[0]].value * Number(malusTab[1])
|
attackData.malus = this.system.carac[attackData.categName].carac[malusTab[0]].value * Number(malusTab[1])
|
||||||
}
|
}
|
||||||
if ( attackData.protection != 0) {
|
if ( attackData.protection != 0) {
|
||||||
let malusTab = attackData.protection.split(';');
|
let malusTab = attackData.protection.split(';');
|
||||||
attackData.protection = this.data.data.carac[attackData.categName].carac[malusTab[0]].value * Number(malusTab[1])
|
attackData.protection = this.system.carac[attackData.categName].carac[malusTab[0]].value * Number(malusTab[1])
|
||||||
}
|
}
|
||||||
if ( attackData.bonusdegats != 0) {
|
if ( attackData.bonusdegats != 0) {
|
||||||
let malusTab = attackData.bonusdegats.split(';');
|
let malusTab = attackData.bonusdegats.split(';');
|
||||||
attackData.bonusdegats = this.data.data.carac[attackData.categName].carac[malusTab[0]].value * Number(malusTab[1])
|
attackData.bonusdegats = this.system.carac[attackData.categName].carac[malusTab[0]].value * Number(malusTab[1])
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return attackData;
|
return attackData;
|
||||||
@ -612,21 +630,21 @@ 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.data.data.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.data.data.carac[attackData.categName].carac[malusTab[0]].value * Number(malusTab[1])
|
attackData.malus = this.system.carac[attackData.categName].carac[malusTab[0]].value * Number(malusTab[1])
|
||||||
}
|
}
|
||||||
if ( attackData.protection != 0) {
|
if ( attackData.protection != 0) {
|
||||||
let malusTab = attackData.protection.split(';');
|
let malusTab = attackData.protection.split(';');
|
||||||
attackData.protection = this.data.data.carac[attackData.categName].carac[malusTab[0]].value * Number(malusTab[1])
|
attackData.protection = this.system.carac[attackData.categName].carac[malusTab[0]].value * Number(malusTab[1])
|
||||||
}
|
}
|
||||||
if ( attackData.bonusdegats != 0) {
|
if ( attackData.bonusdegats != 0) {
|
||||||
let malusTab = attackData.bonusdegats.split(';');
|
let malusTab = attackData.bonusdegats.split(';');
|
||||||
attackData.bonusdegats = this.data.data.carac[attackData.categName].carac[malusTab[0]].value * Number(malusTab[1])
|
attackData.bonusdegats = this.system.carac[attackData.categName].carac[malusTab[0]].value * Number(malusTab[1])
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return attackData;
|
return attackData;
|
||||||
@ -634,17 +652,17 @@ export class YggdrasillActor extends Actor {
|
|||||||
|
|
||||||
/* -------------------------------------------- */
|
/* -------------------------------------------- */
|
||||||
async rollSort( sortId, magie) {
|
async rollSort( sortId, magie) {
|
||||||
let sort = this.data.items.find( item => item.id == sortId);
|
let sort = this.items.find( item => item.id == sortId);
|
||||||
let competence = this.data.items.find( item => item.type == 'competence' && item.name.toLowerCase().includes(magie));
|
let competence = this.items.find( item => item.type == 'competence' && item.name.toLowerCase().includes(magie));
|
||||||
console.log("SORT :", sortId, sort, competence );
|
console.log("SORT :", sortId, sort, competence );
|
||||||
|
|
||||||
let carac;
|
let carac;
|
||||||
if ( magie == "sejdr") {
|
if ( magie == "sejdr") {
|
||||||
carac = duplicate(this.data.data.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.data.data.carac.ame.carac.communication);
|
carac = foundry.utils.duplicate(this.system.carac.ame.carac.communication);
|
||||||
} else {
|
} else {
|
||||||
carac = duplicate(this.data.data.carac.ame.carac.charisme);
|
carac = foundry.utils.duplicate(this.system.carac.ame.carac.charisme);
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( sort && competence) {
|
if ( sort && competence) {
|
||||||
@ -659,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.data.data.carac.corps.carac.agilite),
|
agiliteCarac: foundry.utils.duplicate(this.system.carac.corps.carac.agilite),
|
||||||
instinctCarac: duplicate(this.data.data.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",
|
||||||
@ -670,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 );
|
||||||
@ -691,9 +701,9 @@ export class YggdrasillActor extends Actor {
|
|||||||
|
|
||||||
/* -------------------------------------------- */
|
/* -------------------------------------------- */
|
||||||
async rollArme( armeId ) {
|
async rollArme( armeId ) {
|
||||||
let arme = this.data.items.find( item => item.id == armeId);
|
let arme = this.items.find( item => item.id == armeId);
|
||||||
let compName = armeCategorieToCompetence[arme.data.data.categorie];
|
let compName = armeCategorieToCompetence[arme.system.categorie];
|
||||||
let competence = this.data.items.find( item => item.type == 'competence' && item.name == compName);
|
let competence = this.items.find( item => item.type == 'competence' && item.name == compName);
|
||||||
console.log("ARME :", armeId, arme, competence );
|
console.log("ARME :", armeId, arme, competence );
|
||||||
|
|
||||||
if ( arme && competence) {
|
if ( arme && competence) {
|
||||||
@ -714,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.data.data.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 );
|
||||||
@ -740,16 +745,16 @@ export class YggdrasillActor extends Actor {
|
|||||||
/* -------------------------------------------- */
|
/* -------------------------------------------- */
|
||||||
getEncTotal( ) {
|
getEncTotal( ) {
|
||||||
let encTotal = 0;
|
let encTotal = 0;
|
||||||
for( let item of this.data.items) {
|
for( let item of this.items) {
|
||||||
if (item.type == "equipement" || item.type == "armecc"
|
if (item.type == "equipement" || item.type == "armecc"
|
||||||
|| item.type == "armedist" || item.type == "armure" || item.type == "monnaie" || item.type == "bouclier") {
|
|| item.type == "armedist" || item.type == "armure" || item.type == "monnaie" || item.type == "bouclier") {
|
||||||
encTotal += (item.data.data.enc * item.data.data.quantite);
|
encTotal += (item.system.enc * item.system.quantite);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
for( let item of this.data.items) {
|
for( let item of this.items) {
|
||||||
if (item.type == "bouclier" && item.data.data.equipe) {
|
if (item.type == "bouclier" && item.system.equipe) {
|
||||||
encTotal -= (item.data.data.enc * item.data.data.quantite);
|
encTotal -= (item.system.enc * item.system.quantite);
|
||||||
encTotal += (item.data.data.enccomb * item.data.data.quantite);
|
encTotal += (item.system.enccomb * item.system.quantite);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return encTotal;
|
return encTotal;
|
||||||
@ -758,9 +763,9 @@ export class YggdrasillActor extends Actor {
|
|||||||
/* -------------------------------------------- */
|
/* -------------------------------------------- */
|
||||||
getProtectionTotal( ) {
|
getProtectionTotal( ) {
|
||||||
let protectionTotal = 0;
|
let protectionTotal = 0;
|
||||||
for( let item of this.data.items) {
|
for( let item of this.items) {
|
||||||
if (item.type == "armure" && item.data.data.equipe) {
|
if (item.type == "armure" && item.system.equipe) {
|
||||||
protectionTotal += Number(item.data.data.protection);
|
protectionTotal += Number(item.system.protection);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return protectionTotal;
|
return protectionTotal;
|
||||||
@ -768,9 +773,9 @@ export class YggdrasillActor extends Actor {
|
|||||||
/* -------------------------------------------- */
|
/* -------------------------------------------- */
|
||||||
getDpBouclier( ) {
|
getDpBouclier( ) {
|
||||||
let dpBouclier = 0;
|
let dpBouclier = 0;
|
||||||
for( let item of this.data.items) {
|
for( let item of this.items) {
|
||||||
if (item.type == "bouclier" && item.data.data.equipe) {
|
if (item.type == "bouclier" && item.system.equipe) {
|
||||||
dpBouclier += Number(item.data.data.defensebonus);
|
dpBouclier += Number(item.system.defensebonus);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return dpBouclier;
|
return dpBouclier;
|
||||||
@ -778,20 +783,20 @@ export class YggdrasillActor extends Actor {
|
|||||||
|
|
||||||
/* -------------------------------------------- */
|
/* -------------------------------------------- */
|
||||||
async incrementeQuantite( objetId ) {
|
async incrementeQuantite( objetId ) {
|
||||||
let objetQ = this.data.items.find( item => item.id == objetId );
|
let objetQ = this.items.find( item => item.id == objetId );
|
||||||
if (objetQ) {
|
if (objetQ) {
|
||||||
let newQ = objetQ.data.data.quantite + 1;
|
let newQ = objetQ.system.quantite + 1;
|
||||||
const updated = await this.updateEmbeddedDocuments('Item', [{ _id: objetQ.id, 'data.quantite': newQ }]); // pdates one EmbeddedEntity
|
const updated = await this.updateEmbeddedDocuments('Item', [{ _id: objetQ.id, 'system.quantite': newQ }]); // pdates one EmbeddedEntity
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* -------------------------------------------- */
|
/* -------------------------------------------- */
|
||||||
async decrementeQuantite( objetId ) {
|
async decrementeQuantite( objetId ) {
|
||||||
let objetQ = this.data.items.find( item => item.id == objetId );
|
let objetQ = this.items.find( item => item.id == objetId );
|
||||||
if (objetQ) {
|
if (objetQ) {
|
||||||
let newQ = objetQ.data.data.quantite - 1;
|
let newQ = objetQ.system.quantite - 1;
|
||||||
newQ = (newQ <= 0) ? 0 : newQ;
|
newQ = (newQ <= 0) ? 0 : newQ;
|
||||||
const updated = await this.updateEmbeddedDocuments('Item', [{ _id: objetQ.id, 'data.quantite': newQ }]); // pdates one EmbeddedEntity
|
const updated = await this.updateEmbeddedDocuments('Item', [{ _id: objetQ.id, 'system.quantite': newQ }]); // pdates one EmbeddedEntity
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -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" }
|
||||||
|
]
|
||||||
|
|
||||||
|
|
||||||
|
}
|
@ -11,7 +11,7 @@ export class YggdrasillFigurantSheet extends 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,
|
||||||
@ -23,8 +23,8 @@ export class YggdrasillFigurantSheet extends ActorSheet {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* -------------------------------------------- */
|
/* -------------------------------------------- */
|
||||||
getData() {
|
async getData() {
|
||||||
const objectData = YggdrasillUtility.data(this.object);
|
const objectData = foundry.utils.duplicate(this.object)
|
||||||
|
|
||||||
let formData = {
|
let formData = {
|
||||||
title: this.title,
|
title: this.title,
|
||||||
@ -34,18 +34,21 @@ export class YggdrasillFigurantSheet extends ActorSheet {
|
|||||||
name: objectData.name,
|
name: objectData.name,
|
||||||
editable: this.isEditable,
|
editable: this.isEditable,
|
||||||
cssClass: this.isEditable ? "editable" : "locked",
|
cssClass: this.isEditable ? "editable" : "locked",
|
||||||
data: foundry.utils.deepClone(YggdrasillUtility.templateData(this.object)),
|
data: foundry.utils.deepClone(this.object.system),
|
||||||
limited: this.object.limited,
|
limited: this.object.limited,
|
||||||
equipements: this.actor.getToutEquipements(),
|
equipements: this.actor.getToutEquipements(),
|
||||||
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}),
|
||||||
|
notes: await TextEditor.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);
|
||||||
|
@ -8,7 +8,7 @@ export class YggdrasillItemSheet extends 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,
|
||||||
@ -43,7 +43,7 @@ export class YggdrasillItemSheet extends ItemSheet {
|
|||||||
|
|
||||||
/* -------------------------------------------- */
|
/* -------------------------------------------- */
|
||||||
async getData() {
|
async getData() {
|
||||||
const objectData = YggdrasillUtility.data(this.object);
|
const objectData = foundry.utils.duplicate(this.object);
|
||||||
|
|
||||||
let formData = {
|
let formData = {
|
||||||
title: this.title,
|
title: this.title,
|
||||||
@ -53,13 +53,15 @@ export class YggdrasillItemSheet extends ItemSheet {
|
|||||||
name: objectData.name,
|
name: objectData.name,
|
||||||
editable: this.isEditable,
|
editable: this.isEditable,
|
||||||
cssClass: this.isEditable ? "editable" : "locked",
|
cssClass: this.isEditable ? "editable" : "locked",
|
||||||
data: foundry.utils.deepClone(YggdrasillUtility.templateData(this.object)),
|
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}),
|
||||||
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;
|
||||||
}
|
}
|
||||||
|
@ -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 */
|
||||||
@ -34,6 +36,8 @@ Hooks.once("init", async function () {
|
|||||||
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);
|
||||||
@ -74,28 +78,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,
|
|
||||||
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.data.version}"`
|
|
||||||
$.ajax(regURL)
|
|
||||||
/* -------------------------------------------- */
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/* -------------------------------------------- */
|
/* -------------------------------------------- */
|
||||||
/* Foundry VTT Initialization */
|
/* Foundry VTT Initialization */
|
||||||
/* -------------------------------------------- */
|
/* -------------------------------------------- */
|
||||||
@ -109,7 +91,8 @@ Hooks.once("ready", function () {
|
|||||||
user: game.user._id
|
user: game.user._id
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
registerUsageCount("fvtt-yggdrasill")
|
|
||||||
|
ClassCounter.registerUsageCount()
|
||||||
welcomeMessage()
|
welcomeMessage()
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -73,12 +73,12 @@ export class YggdrasillRoll extends Dialog {
|
|||||||
updateGaldrSR( ) {
|
updateGaldrSR( ) {
|
||||||
let sdDuree = Number(dureeGaldrSD[this.rollData.dureeGaldr]);
|
let sdDuree = Number(dureeGaldrSD[this.rollData.dureeGaldr]);
|
||||||
let sdVar = 0;
|
let sdVar = 0;
|
||||||
if ( this.rollData.sort.data.voie == "illusion") {
|
if ( this.rollData.sort.system.voie == "illusion") {
|
||||||
sdVar = Number(zonesciblesGaldrSD[this.rollData.zoneGaldr]);
|
sdVar = Number(zonesciblesGaldrSD[this.rollData.zoneGaldr]);
|
||||||
} else {
|
} else {
|
||||||
sdVar = Number(ciblesGaldrSD[this.rollData.nbCibles]);
|
sdVar = Number(ciblesGaldrSD[this.rollData.nbCibles]);
|
||||||
}
|
}
|
||||||
let SR = Number(this.rollData.sort.data.sd) + sdDuree + sdVar;
|
let SR = Number(this.rollData.sort.system.sd) + sdDuree + sdVar;
|
||||||
$("#srTotal").text(SR);
|
$("#srTotal").text(SR);
|
||||||
this.rollData.sr = SR;
|
this.rollData.sr = SR;
|
||||||
}
|
}
|
||||||
@ -113,10 +113,10 @@ export class YggdrasillRoll extends Dialog {
|
|||||||
this.rollData.echelleDuree = "Jours";
|
this.rollData.echelleDuree = "Jours";
|
||||||
this.rollData.echelleDureeVie = "Années"
|
this.rollData.echelleDureeVie = "Années"
|
||||||
}
|
}
|
||||||
let SR = this.rollData.puissanceRune + (Number(this.rollData.sort.data.niveau)*3) + support;
|
let SR = this.rollData.puissanceRune + (Number(this.rollData.sort.system.niveau)*3) + support;
|
||||||
$("#srTotal").text(SR);
|
$("#srTotal").text(SR);
|
||||||
$("#runeDuree").text( this.rollData.dureeRune + " " + this.rollData.echelleDuree);
|
$("#runeDuree").text( this.rollData.dureeRune + " " + this.rollData.echelleDuree);
|
||||||
$("#runeDureeVie").text( this.rollData.competence.data.niveau + " " + this.rollData.echelleDureeVie);
|
$("#runeDureeVie").text( this.rollData.competence.system.niveau + " " + this.rollData.echelleDureeVie);
|
||||||
this.rollData.sr = SR;
|
this.rollData.sr = SR;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -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" );
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
/* -------------------------------------------- */
|
/* -------------------------------------------- */
|
||||||
//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"};
|
||||||
@ -13,26 +12,11 @@ export class YggdrasillUtility {
|
|||||||
|
|
||||||
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 loadTemplates(templatePaths);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* -------------------------------------------- */
|
|
||||||
static templateData(it) {
|
|
||||||
return YggdrasillUtility.data(it)?.data ?? {}
|
|
||||||
}
|
|
||||||
|
|
||||||
/* -------------------------------------------- */
|
|
||||||
static data(it) {
|
|
||||||
if (it instanceof Actor || it instanceof Item || it instanceof Combatant) {
|
|
||||||
return it.data;
|
|
||||||
}
|
|
||||||
return it;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* -------------------------------------------- */
|
/* -------------------------------------------- */
|
||||||
static createDirectSortedOptionList( min, max) {
|
static createDirectSortedOptionList( min, max) {
|
||||||
let options = [];
|
let options = [];
|
||||||
@ -41,7 +25,14 @@ export class YggdrasillUtility {
|
|||||||
}
|
}
|
||||||
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 = {};
|
||||||
@ -59,22 +50,13 @@ export class YggdrasillUtility {
|
|||||||
}
|
}
|
||||||
return options;
|
return options;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* -------------------------------------------- */
|
/* -------------------------------------------- */
|
||||||
static buildSROptions( ) {
|
static buildListOptions(min, max) {
|
||||||
let options = ""
|
let options = ""
|
||||||
options += `<option value="0">Aucun</option>`
|
for (let i = min; i <= max; i++) {
|
||||||
options += `<option value="5">Très Simple (5)</option>`
|
options += `<option value="${i}">${i}</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;
|
return options;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* -------------------------------------------- */
|
/* -------------------------------------------- */
|
||||||
@ -99,34 +81,30 @@ export class YggdrasillUtility {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* -------------------------------------------- */
|
/* -------------------------------------------- */
|
||||||
static async specificYggRoll( nbDice ) {
|
static async specificYggRoll( nbDice, isFurorUsage = false) {
|
||||||
let rawDices = []
|
let rawDices = []
|
||||||
let rolls = []
|
let rolls = []
|
||||||
let maxTab = []
|
let maxTab = []
|
||||||
|
let maxTabMaxIndex = isFurorUsage ? nbDice : 2;
|
||||||
maxTab[0] = {idx: 0, value: 0}
|
|
||||||
maxTab[1] = {idx: 0, value: 0}
|
|
||||||
|
|
||||||
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 {
|
||||||
this.showDiceSoNice(rolls[i], game.settings.get("core", "rollMode") );
|
this.showDiceSoNice(rolls[i], game.settings.get("core", "rollMode") );
|
||||||
}
|
}
|
||||||
rawDices.push({ 'result': rolls[i].total});
|
rawDices.push({ 'result': rolls[i].total});
|
||||||
|
}
|
||||||
|
|
||||||
if ( rolls[i].total > maxTab[0].value) {
|
rolls.sort((a,b) => a.total-b.total);
|
||||||
if ( nbDice > 1 && maxTab[0].value > maxTab[1].value) {
|
rolls.reverse();
|
||||||
maxTab[1].value = maxTab[0].value
|
|
||||||
}
|
for (let i=0; i<maxTabMaxIndex; i++) {
|
||||||
maxTab[0].value = rolls[i].total
|
maxTab[i] = {idx: 0, value: 0};
|
||||||
} else {
|
if (rolls[i].total != undefined) maxTab[i].value = rolls[i].total;
|
||||||
if ( nbDice > 1 && rolls[i].total > maxTab[1].value) {
|
|
||||||
maxTab[1].value = rolls[i].total
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return { rawDices: rawDices, maxTab: maxTab, rolls: rolls }
|
return { rawDices: rawDices, maxTab: maxTab, rolls: rolls }
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -140,7 +118,7 @@ export class YggdrasillUtility {
|
|||||||
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;
|
||||||
@ -150,15 +128,15 @@ export class YggdrasillUtility {
|
|||||||
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 = rollData.maxTab[0].value + rollData.maxTab[1].value;
|
rollData.finalTotal = Number(rollData.maxTab[0].value) + Number(rollData.maxTab[1].value);
|
||||||
rollData.finalTotal += rollData.bonus
|
rollData.finalTotal += Number(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;
|
||||||
@ -172,7 +150,7 @@ 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;
|
||||||
}
|
}
|
||||||
@ -188,7 +166,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();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* -------------------------------------------- */
|
/* -------------------------------------------- */
|
||||||
@ -205,18 +182,18 @@ export class YggdrasillUtility {
|
|||||||
|
|
||||||
// Select niveau de competence/arme/carac
|
// Select niveau de competence/arme/carac
|
||||||
if ( rollData.mode != "carac" ) {
|
if ( rollData.mode != "carac" ) {
|
||||||
niveauCompetence = rollData.competence.data.niveau;
|
niveauCompetence = rollData.competence.system.niveau;
|
||||||
} else {
|
} else {
|
||||||
niveauCompetence = rollData.selectedCarac.value;
|
niveauCompetence = rollData.selectedCarac.value;
|
||||||
}
|
}
|
||||||
|
|
||||||
// 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.data.malus ) {
|
if ( rollData.sort && rollData.sort.system.malus ) {
|
||||||
rollData.finalBM += rollData.sort.data.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
|
||||||
@ -231,7 +208,7 @@ export class YggdrasillUtility {
|
|||||||
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 )
|
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
|
||||||
@ -245,7 +222,7 @@ 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
|
||||||
@ -276,8 +253,8 @@ 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.data.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.data.degat + rollData.attackDef.bonusdegats;
|
rollData.degats = marge + rollData.arme.system.degat + rollData.attackDef.bonusdegats;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Stockage resultats
|
// Stockage resultats
|
||||||
@ -289,10 +266,10 @@ 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.data.voie == "illusion") {
|
if ( rollData.sort.system.voie == "illusion") {
|
||||||
let volume = rollData.zoneGaldr.substring(3, rollData.zoneGaldr.length);
|
let volume = rollData.zoneGaldr.substring(3, rollData.zoneGaldr.length);
|
||||||
rollData.zoneGaldrText = rollData.instinctCarac.value + " x " + volume;
|
rollData.zoneGaldrText = rollData.instinctCarac.value + " x " + volume;
|
||||||
} else {
|
} else {
|
||||||
@ -305,12 +282,11 @@ 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();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* -------------------------------------------- */
|
/* -------------------------------------------- */
|
||||||
static getUsers(filter) {
|
static getUsers(filter) {
|
||||||
return game.users.filter(filter).map(user => user.data._id);
|
return game.users.filter(filter).map(user => user.system._id);
|
||||||
}
|
}
|
||||||
/* -------------------------------------------- */
|
/* -------------------------------------------- */
|
||||||
static getWhisperRecipients(rollMode, name) {
|
static getWhisperRecipients(rollMode, name) {
|
||||||
@ -330,7 +306,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);
|
||||||
|
BIN
packs/armes/000005.ldb
Normal file
BIN
packs/armes/000005.ldb
Normal file
Binary file not shown.
0
packs/armes/000034.log
Normal file
0
packs/armes/000034.log
Normal file
1
packs/armes/CURRENT
Normal file
1
packs/armes/CURRENT
Normal file
@ -0,0 +1 @@
|
|||||||
|
MANIFEST-000032
|
0
packs/armes/LOCK
Normal file
0
packs/armes/LOCK
Normal file
8
packs/armes/LOG
Normal file
8
packs/armes/LOG
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)
|
8
packs/armes/LOG.old
Normal file
8
packs/armes/LOG.old
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
2024/04/30-23:29:38.701535 7fdae60006c0 Recovering log #26
|
||||||
|
2024/04/30-23:29:38.712717 7fdae60006c0 Delete type=3 #24
|
||||||
|
2024/04/30-23:29:38.712835 7fdae60006c0 Delete type=0 #26
|
||||||
|
2024/05/01-09:07:55.263638 7fdadfe006c0 Level-0 table #31: started
|
||||||
|
2024/05/01-09:07:55.263695 7fdadfe006c0 Level-0 table #31: 0 bytes OK
|
||||||
|
2024/05/01-09:07:55.270095 7fdadfe006c0 Delete type=0 #29
|
||||||
|
2024/05/01-09:07:55.278160 7fdadfe006c0 Manual compaction at level-0 from '!items!3VBHojfjdD504ibv' @ 72057594037927935 : 1 .. '!items!x3aMYeKa73GxJ1Ge' @ 0 : 0; will stop at (end)
|
||||||
|
2024/05/01-09:07:55.278217 7fdadfe006c0 Manual compaction at level-1 from '!items!3VBHojfjdD504ibv' @ 72057594037927935 : 1 .. '!items!x3aMYeKa73GxJ1Ge' @ 0 : 0; will stop at (end)
|
BIN
packs/armes/MANIFEST-000032
Normal file
BIN
packs/armes/MANIFEST-000032
Normal file
Binary file not shown.
BIN
packs/armures/000005.ldb
Normal file
BIN
packs/armures/000005.ldb
Normal file
Binary file not shown.
0
packs/armures/000034.log
Normal file
0
packs/armures/000034.log
Normal file
1
packs/armures/CURRENT
Normal file
1
packs/armures/CURRENT
Normal file
@ -0,0 +1 @@
|
|||||||
|
MANIFEST-000032
|
0
packs/armures/LOCK
Normal file
0
packs/armures/LOCK
Normal file
8
packs/armures/LOG
Normal file
8
packs/armures/LOG
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)
|
8
packs/armures/LOG.old
Normal file
8
packs/armures/LOG.old
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
2024/04/30-23:29:38.716559 7fdae56006c0 Recovering log #26
|
||||||
|
2024/04/30-23:29:38.727495 7fdae56006c0 Delete type=3 #24
|
||||||
|
2024/04/30-23:29:38.727612 7fdae56006c0 Delete type=0 #26
|
||||||
|
2024/05/01-09:07:55.278461 7fdadfe006c0 Level-0 table #31: started
|
||||||
|
2024/05/01-09:07:55.278543 7fdadfe006c0 Level-0 table #31: 0 bytes OK
|
||||||
|
2024/05/01-09:07:55.285552 7fdadfe006c0 Delete type=0 #29
|
||||||
|
2024/05/01-09:07:55.307237 7fdadfe006c0 Manual compaction at level-0 from '!items!4YGPuZ813BWQaNbq' @ 72057594037927935 : 1 .. '!items!qUXBrstsh5Oo8FEx' @ 0 : 0; will stop at (end)
|
||||||
|
2024/05/01-09:07:55.307315 7fdadfe006c0 Manual compaction at level-1 from '!items!4YGPuZ813BWQaNbq' @ 72057594037927935 : 1 .. '!items!qUXBrstsh5Oo8FEx' @ 0 : 0; will stop at (end)
|
BIN
packs/armures/MANIFEST-000032
Normal file
BIN
packs/armures/MANIFEST-000032
Normal file
Binary file not shown.
BIN
packs/blessures/000005.ldb
Normal file
BIN
packs/blessures/000005.ldb
Normal file
Binary file not shown.
0
packs/blessures/000034.log
Normal file
0
packs/blessures/000034.log
Normal file
1
packs/blessures/CURRENT
Normal file
1
packs/blessures/CURRENT
Normal file
@ -0,0 +1 @@
|
|||||||
|
MANIFEST-000032
|
0
packs/blessures/LOCK
Normal file
0
packs/blessures/LOCK
Normal file
8
packs/blessures/LOG
Normal file
8
packs/blessures/LOG
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)
|
8
packs/blessures/LOG.old
Normal file
8
packs/blessures/LOG.old
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
2024/04/30-23:29:38.686138 7fdae74006c0 Recovering log #26
|
||||||
|
2024/04/30-23:29:38.697631 7fdae74006c0 Delete type=3 #24
|
||||||
|
2024/04/30-23:29:38.697720 7fdae74006c0 Delete type=0 #26
|
||||||
|
2024/05/01-09:07:55.248868 7fdadfe006c0 Level-0 table #31: started
|
||||||
|
2024/05/01-09:07:55.248948 7fdadfe006c0 Level-0 table #31: 0 bytes OK
|
||||||
|
2024/05/01-09:07:55.256720 7fdadfe006c0 Delete type=0 #29
|
||||||
|
2024/05/01-09:07:55.278118 7fdadfe006c0 Manual compaction at level-0 from '!items!4rM9IvDuijsjbAhI' @ 72057594037927935 : 1 .. '!items!swTZ43FJRWkqjR75' @ 0 : 0; will stop at (end)
|
||||||
|
2024/05/01-09:07:55.278189 7fdadfe006c0 Manual compaction at level-1 from '!items!4rM9IvDuijsjbAhI' @ 72057594037927935 : 1 .. '!items!swTZ43FJRWkqjR75' @ 0 : 0; will stop at (end)
|
BIN
packs/blessures/MANIFEST-000032
Normal file
BIN
packs/blessures/MANIFEST-000032
Normal file
Binary file not shown.
BIN
packs/competences-generales/000005.ldb
Normal file
BIN
packs/competences-generales/000005.ldb
Normal file
Binary file not shown.
0
packs/competences-generales/000034.log
Normal file
0
packs/competences-generales/000034.log
Normal file
1
packs/competences-generales/CURRENT
Normal file
1
packs/competences-generales/CURRENT
Normal file
@ -0,0 +1 @@
|
|||||||
|
MANIFEST-000032
|
0
packs/competences-generales/LOCK
Normal file
0
packs/competences-generales/LOCK
Normal file
8
packs/competences-generales/LOG
Normal file
8
packs/competences-generales/LOG
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)
|
8
packs/competences-generales/LOG.old
Normal file
8
packs/competences-generales/LOG.old
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
2024/04/30-23:29:38.598445 7fdae56006c0 Recovering log #26
|
||||||
|
2024/04/30-23:29:38.609001 7fdae56006c0 Delete type=3 #24
|
||||||
|
2024/04/30-23:29:38.609105 7fdae56006c0 Delete type=0 #26
|
||||||
|
2024/05/01-09:07:55.221157 7fdadfe006c0 Level-0 table #31: started
|
||||||
|
2024/05/01-09:07:55.221263 7fdadfe006c0 Level-0 table #31: 0 bytes OK
|
||||||
|
2024/05/01-09:07:55.228186 7fdadfe006c0 Delete type=0 #29
|
||||||
|
2024/05/01-09:07:55.248533 7fdadfe006c0 Manual compaction at level-0 from '!items!26CQEICWZs8Gw4Xi' @ 72057594037927935 : 1 .. '!items!ylqZMDyXujUlSorr' @ 0 : 0; will stop at (end)
|
||||||
|
2024/05/01-09:07:55.248650 7fdadfe006c0 Manual compaction at level-1 from '!items!26CQEICWZs8Gw4Xi' @ 72057594037927935 : 1 .. '!items!ylqZMDyXujUlSorr' @ 0 : 0; will stop at (end)
|
BIN
packs/competences-generales/MANIFEST-000032
Normal file
BIN
packs/competences-generales/MANIFEST-000032
Normal file
Binary file not shown.
BIN
packs/competences-magiques/000005.ldb
Normal file
BIN
packs/competences-magiques/000005.ldb
Normal file
Binary file not shown.
0
packs/competences-magiques/000034.log
Normal file
0
packs/competences-magiques/000034.log
Normal file
1
packs/competences-magiques/CURRENT
Normal file
1
packs/competences-magiques/CURRENT
Normal file
@ -0,0 +1 @@
|
|||||||
|
MANIFEST-000032
|
0
packs/competences-magiques/LOCK
Normal file
0
packs/competences-magiques/LOCK
Normal file
8
packs/competences-magiques/LOG
Normal file
8
packs/competences-magiques/LOG
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)
|
8
packs/competences-magiques/LOG.old
Normal file
8
packs/competences-magiques/LOG.old
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
2024/04/30-23:29:38.628864 7fdae74006c0 Recovering log #26
|
||||||
|
2024/04/30-23:29:38.639377 7fdae74006c0 Delete type=3 #24
|
||||||
|
2024/04/30-23:29:38.639485 7fdae74006c0 Delete type=0 #26
|
||||||
|
2024/05/01-09:07:55.235111 7fdadfe006c0 Level-0 table #31: started
|
||||||
|
2024/05/01-09:07:55.235152 7fdadfe006c0 Level-0 table #31: 0 bytes OK
|
||||||
|
2024/05/01-09:07:55.241587 7fdadfe006c0 Delete type=0 #29
|
||||||
|
2024/05/01-09:07:55.248582 7fdadfe006c0 Manual compaction at level-0 from '!items!RAhkadJOfEnVBLpy' @ 72057594037927935 : 1 .. '!items!mIBiTKqfqiiepeyz' @ 0 : 0; will stop at (end)
|
||||||
|
2024/05/01-09:07:55.248633 7fdadfe006c0 Manual compaction at level-1 from '!items!RAhkadJOfEnVBLpy' @ 72057594037927935 : 1 .. '!items!mIBiTKqfqiiepeyz' @ 0 : 0; will stop at (end)
|
BIN
packs/competences-magiques/MANIFEST-000032
Normal file
BIN
packs/competences-magiques/MANIFEST-000032
Normal file
Binary file not shown.
BIN
packs/competences-martiales/000005.ldb
Normal file
BIN
packs/competences-martiales/000005.ldb
Normal file
Binary file not shown.
0
packs/competences-martiales/000034.log
Normal file
0
packs/competences-martiales/000034.log
Normal file
1
packs/competences-martiales/CURRENT
Normal file
1
packs/competences-martiales/CURRENT
Normal file
@ -0,0 +1 @@
|
|||||||
|
MANIFEST-000032
|
0
packs/competences-martiales/LOCK
Normal file
0
packs/competences-martiales/LOCK
Normal file
8
packs/competences-martiales/LOG
Normal file
8
packs/competences-martiales/LOG
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)
|
8
packs/competences-martiales/LOG.old
Normal file
8
packs/competences-martiales/LOG.old
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
2024/04/30-23:29:38.613651 7fdae6a006c0 Recovering log #26
|
||||||
|
2024/04/30-23:29:38.625184 7fdae6a006c0 Delete type=3 #24
|
||||||
|
2024/04/30-23:29:38.625373 7fdae6a006c0 Delete type=0 #26
|
||||||
|
2024/05/01-09:07:55.228367 7fdadfe006c0 Level-0 table #31: started
|
||||||
|
2024/05/01-09:07:55.228409 7fdadfe006c0 Level-0 table #31: 0 bytes OK
|
||||||
|
2024/05/01-09:07:55.234932 7fdadfe006c0 Delete type=0 #29
|
||||||
|
2024/05/01-09:07:55.248560 7fdadfe006c0 Manual compaction at level-0 from '!items!6IqVsJsYPrbxUJZX' @ 72057594037927935 : 1 .. '!items!mJSWXawEGARKlNja' @ 0 : 0; will stop at (end)
|
||||||
|
2024/05/01-09:07:55.248618 7fdadfe006c0 Manual compaction at level-1 from '!items!6IqVsJsYPrbxUJZX' @ 72057594037927935 : 1 .. '!items!mJSWXawEGARKlNja' @ 0 : 0; will stop at (end)
|
BIN
packs/competences-martiales/MANIFEST-000032
Normal file
BIN
packs/competences-martiales/MANIFEST-000032
Normal file
Binary file not shown.
BIN
packs/dons/000005.ldb
Normal file
BIN
packs/dons/000005.ldb
Normal file
Binary file not shown.
0
packs/dons/000034.log
Normal file
0
packs/dons/000034.log
Normal file
1
packs/dons/CURRENT
Normal file
1
packs/dons/CURRENT
Normal file
@ -0,0 +1 @@
|
|||||||
|
MANIFEST-000032
|
0
packs/dons/LOCK
Normal file
0
packs/dons/LOCK
Normal file
8
packs/dons/LOG
Normal file
8
packs/dons/LOG
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)
|
8
packs/dons/LOG.old
Normal file
8
packs/dons/LOG.old
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
2024/04/30-23:29:38.658423 7fdae56006c0 Recovering log #26
|
||||||
|
2024/04/30-23:29:38.669272 7fdae56006c0 Delete type=3 #24
|
||||||
|
2024/04/30-23:29:38.669388 7fdae56006c0 Delete type=0 #26
|
||||||
|
2024/05/01-09:07:55.270287 7fdadfe006c0 Level-0 table #31: started
|
||||||
|
2024/05/01-09:07:55.270340 7fdadfe006c0 Level-0 table #31: 0 bytes OK
|
||||||
|
2024/05/01-09:07:55.277858 7fdadfe006c0 Delete type=0 #29
|
||||||
|
2024/05/01-09:07:55.278175 7fdadfe006c0 Manual compaction at level-0 from '!items!1EVz9C1fDUBafPHj' @ 72057594037927935 : 1 .. '!items!wnIXKyfqCWT0r4iT' @ 0 : 0; will stop at (end)
|
||||||
|
2024/05/01-09:07:55.278230 7fdadfe006c0 Manual compaction at level-1 from '!items!1EVz9C1fDUBafPHj' @ 72057594037927935 : 1 .. '!items!wnIXKyfqCWT0r4iT' @ 0 : 0; will stop at (end)
|
BIN
packs/dons/MANIFEST-000032
Normal file
BIN
packs/dons/MANIFEST-000032
Normal file
Binary file not shown.
BIN
packs/equipement/000005.ldb
Normal file
BIN
packs/equipement/000005.ldb
Normal file
Binary file not shown.
0
packs/equipement/000034.log
Normal file
0
packs/equipement/000034.log
Normal file
1
packs/equipement/CURRENT
Normal file
1
packs/equipement/CURRENT
Normal file
@ -0,0 +1 @@
|
|||||||
|
MANIFEST-000032
|
0
packs/equipement/LOCK
Normal file
0
packs/equipement/LOCK
Normal file
8
packs/equipement/LOG
Normal file
8
packs/equipement/LOG
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)
|
8
packs/equipement/LOG.old
Normal file
8
packs/equipement/LOG.old
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
2024/04/30-23:29:38.878752 7fdae60006c0 Recovering log #26
|
||||||
|
2024/04/30-23:29:38.890171 7fdae60006c0 Delete type=3 #24
|
||||||
|
2024/04/30-23:29:38.890274 7fdae60006c0 Delete type=0 #26
|
||||||
|
2024/05/01-09:07:55.343882 7fdadfe006c0 Level-0 table #31: started
|
||||||
|
2024/05/01-09:07:55.343919 7fdadfe006c0 Level-0 table #31: 0 bytes OK
|
||||||
|
2024/05/01-09:07:55.350824 7fdadfe006c0 Delete type=0 #29
|
||||||
|
2024/05/01-09:07:55.365593 7fdadfe006c0 Manual compaction at level-0 from '!items!0tELaPFZgkeTUeVn' @ 72057594037927935 : 1 .. '!items!zC0kHoqZ9lkQFgI6' @ 0 : 0; will stop at (end)
|
||||||
|
2024/05/01-09:07:55.365651 7fdadfe006c0 Manual compaction at level-1 from '!items!0tELaPFZgkeTUeVn' @ 72057594037927935 : 1 .. '!items!zC0kHoqZ9lkQFgI6' @ 0 : 0; will stop at (end)
|
BIN
packs/equipement/MANIFEST-000032
Normal file
BIN
packs/equipement/MANIFEST-000032
Normal file
Binary file not shown.
BIN
packs/faiblesses/000005.ldb
Normal file
BIN
packs/faiblesses/000005.ldb
Normal file
Binary file not shown.
0
packs/faiblesses/000034.log
Normal file
0
packs/faiblesses/000034.log
Normal file
1
packs/faiblesses/CURRENT
Normal file
1
packs/faiblesses/CURRENT
Normal file
@ -0,0 +1 @@
|
|||||||
|
MANIFEST-000032
|
0
packs/faiblesses/LOCK
Normal file
0
packs/faiblesses/LOCK
Normal file
8
packs/faiblesses/LOG
Normal file
8
packs/faiblesses/LOG
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)
|
8
packs/faiblesses/LOG.old
Normal file
8
packs/faiblesses/LOG.old
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
2024/04/30-23:29:38.672610 7fdae6a006c0 Recovering log #26
|
||||||
|
2024/04/30-23:29:38.683005 7fdae6a006c0 Delete type=3 #24
|
||||||
|
2024/04/30-23:29:38.683098 7fdae6a006c0 Delete type=0 #26
|
||||||
|
2024/05/01-09:07:55.256906 7fdadfe006c0 Level-0 table #31: started
|
||||||
|
2024/05/01-09:07:55.256961 7fdadfe006c0 Level-0 table #31: 0 bytes OK
|
||||||
|
2024/05/01-09:07:55.263446 7fdadfe006c0 Delete type=0 #29
|
||||||
|
2024/05/01-09:07:55.278143 7fdadfe006c0 Manual compaction at level-0 from '!items!0EoL2kcGdYiYS8lY' @ 72057594037927935 : 1 .. '!items!xf1RAsIzBXQgbLq2' @ 0 : 0; will stop at (end)
|
||||||
|
2024/05/01-09:07:55.278203 7fdadfe006c0 Manual compaction at level-1 from '!items!0EoL2kcGdYiYS8lY' @ 72057594037927935 : 1 .. '!items!xf1RAsIzBXQgbLq2' @ 0 : 0; will stop at (end)
|
BIN
packs/faiblesses/MANIFEST-000032
Normal file
BIN
packs/faiblesses/MANIFEST-000032
Normal file
Binary file not shown.
BIN
packs/galdr-charme/000005.ldb
Normal file
BIN
packs/galdr-charme/000005.ldb
Normal file
Binary file not shown.
0
packs/galdr-charme/000034.log
Normal file
0
packs/galdr-charme/000034.log
Normal file
1
packs/galdr-charme/CURRENT
Normal file
1
packs/galdr-charme/CURRENT
Normal file
@ -0,0 +1 @@
|
|||||||
|
MANIFEST-000032
|
0
packs/galdr-charme/LOCK
Normal file
0
packs/galdr-charme/LOCK
Normal file
8
packs/galdr-charme/LOG
Normal file
8
packs/galdr-charme/LOG
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)
|
8
packs/galdr-charme/LOG.old
Normal file
8
packs/galdr-charme/LOG.old
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
2024/04/30-23:29:38.864329 7fdae74006c0 Recovering log #26
|
||||||
|
2024/04/30-23:29:38.875039 7fdae74006c0 Delete type=3 #24
|
||||||
|
2024/04/30-23:29:38.875162 7fdae74006c0 Delete type=0 #26
|
||||||
|
2024/05/01-09:07:55.358841 7fdadfe006c0 Level-0 table #31: started
|
||||||
|
2024/05/01-09:07:55.358889 7fdadfe006c0 Level-0 table #31: 0 bytes OK
|
||||||
|
2024/05/01-09:07:55.365401 7fdadfe006c0 Delete type=0 #29
|
||||||
|
2024/05/01-09:07:55.365623 7fdadfe006c0 Manual compaction at level-0 from '!items!7VeQIQHxvw233Jzt' @ 72057594037927935 : 1 .. '!items!xw2gPhCxDVpkJnxL' @ 0 : 0; will stop at (end)
|
||||||
|
2024/05/01-09:07:55.365664 7fdadfe006c0 Manual compaction at level-1 from '!items!7VeQIQHxvw233Jzt' @ 72057594037927935 : 1 .. '!items!xw2gPhCxDVpkJnxL' @ 0 : 0; will stop at (end)
|
BIN
packs/galdr-charme/MANIFEST-000032
Normal file
BIN
packs/galdr-charme/MANIFEST-000032
Normal file
Binary file not shown.
BIN
packs/galdr-illusions/000005.ldb
Normal file
BIN
packs/galdr-illusions/000005.ldb
Normal file
Binary file not shown.
0
packs/galdr-illusions/000034.log
Normal file
0
packs/galdr-illusions/000034.log
Normal file
1
packs/galdr-illusions/CURRENT
Normal file
1
packs/galdr-illusions/CURRENT
Normal file
@ -0,0 +1 @@
|
|||||||
|
MANIFEST-000032
|
0
packs/galdr-illusions/LOCK
Normal file
0
packs/galdr-illusions/LOCK
Normal file
8
packs/galdr-illusions/LOG
Normal file
8
packs/galdr-illusions/LOG
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)
|
8
packs/galdr-illusions/LOG.old
Normal file
8
packs/galdr-illusions/LOG.old
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
2024/04/30-23:29:38.848909 7fdae6a006c0 Recovering log #26
|
||||||
|
2024/04/30-23:29:38.860284 7fdae6a006c0 Delete type=3 #24
|
||||||
|
2024/04/30-23:29:38.860378 7fdae6a006c0 Delete type=0 #26
|
||||||
|
2024/05/01-09:07:55.337174 7fdadfe006c0 Level-0 table #31: started
|
||||||
|
2024/05/01-09:07:55.337262 7fdadfe006c0 Level-0 table #31: 0 bytes OK
|
||||||
|
2024/05/01-09:07:55.343707 7fdadfe006c0 Delete type=0 #29
|
||||||
|
2024/05/01-09:07:55.365572 7fdadfe006c0 Manual compaction at level-0 from '!items!89NwqZV3Qn9xWeO0' @ 72057594037927935 : 1 .. '!items!sH7HaKggOEaBVzn3' @ 0 : 0; will stop at (end)
|
||||||
|
2024/05/01-09:07:55.365637 7fdadfe006c0 Manual compaction at level-1 from '!items!89NwqZV3Qn9xWeO0' @ 72057594037927935 : 1 .. '!items!sH7HaKggOEaBVzn3' @ 0 : 0; will stop at (end)
|
BIN
packs/galdr-illusions/MANIFEST-000032
Normal file
BIN
packs/galdr-illusions/MANIFEST-000032
Normal file
Binary file not shown.
BIN
packs/galdr-maledictions/000005.ldb
Normal file
BIN
packs/galdr-maledictions/000005.ldb
Normal file
Binary file not shown.
0
packs/galdr-maledictions/000034.log
Normal file
0
packs/galdr-maledictions/000034.log
Normal file
1
packs/galdr-maledictions/CURRENT
Normal file
1
packs/galdr-maledictions/CURRENT
Normal file
@ -0,0 +1 @@
|
|||||||
|
MANIFEST-000032
|
0
packs/galdr-maledictions/LOCK
Normal file
0
packs/galdr-maledictions/LOCK
Normal file
8
packs/galdr-maledictions/LOG
Normal file
8
packs/galdr-maledictions/LOG
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)
|
8
packs/galdr-maledictions/LOG.old
Normal file
8
packs/galdr-maledictions/LOG.old
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
2024/04/30-23:29:38.834359 7fdae56006c0 Recovering log #26
|
||||||
|
2024/04/30-23:29:38.845525 7fdae56006c0 Delete type=3 #24
|
||||||
|
2024/04/30-23:29:38.845680 7fdae56006c0 Delete type=0 #26
|
||||||
|
2024/05/01-09:07:55.351078 7fdadfe006c0 Level-0 table #31: started
|
||||||
|
2024/05/01-09:07:55.351137 7fdadfe006c0 Level-0 table #31: 0 bytes OK
|
||||||
|
2024/05/01-09:07:55.358613 7fdadfe006c0 Delete type=0 #29
|
||||||
|
2024/05/01-09:07:55.365609 7fdadfe006c0 Manual compaction at level-0 from '!items!1smXvw2EcuTkytDv' @ 72057594037927935 : 1 .. '!items!yKLS6KQafucspg3R' @ 0 : 0; will stop at (end)
|
||||||
|
2024/05/01-09:07:55.365681 7fdadfe006c0 Manual compaction at level-1 from '!items!1smXvw2EcuTkytDv' @ 72057594037927935 : 1 .. '!items!yKLS6KQafucspg3R' @ 0 : 0; will stop at (end)
|
BIN
packs/galdr-maledictions/MANIFEST-000032
Normal file
BIN
packs/galdr-maledictions/MANIFEST-000032
Normal file
Binary file not shown.
BIN
packs/poisons/000005.ldb
Normal file
BIN
packs/poisons/000005.ldb
Normal file
Binary file not shown.
0
packs/poisons/000034.log
Normal file
0
packs/poisons/000034.log
Normal file
1
packs/poisons/CURRENT
Normal file
1
packs/poisons/CURRENT
Normal file
@ -0,0 +1 @@
|
|||||||
|
MANIFEST-000032
|
0
packs/poisons/LOCK
Normal file
0
packs/poisons/LOCK
Normal file
8
packs/poisons/LOG
Normal file
8
packs/poisons/LOG
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)
|
8
packs/poisons/LOG.old
Normal file
8
packs/poisons/LOG.old
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
2024/04/30-23:29:38.820360 7fdae60006c0 Recovering log #26
|
||||||
|
2024/04/30-23:29:38.830962 7fdae60006c0 Delete type=3 #24
|
||||||
|
2024/04/30-23:29:38.831074 7fdae60006c0 Delete type=0 #26
|
||||||
|
2024/05/01-09:07:55.328535 7fdadfe006c0 Level-0 table #31: started
|
||||||
|
2024/05/01-09:07:55.328572 7fdadfe006c0 Level-0 table #31: 0 bytes OK
|
||||||
|
2024/05/01-09:07:55.336539 7fdadfe006c0 Delete type=0 #29
|
||||||
|
2024/05/01-09:07:55.336884 7fdadfe006c0 Manual compaction at level-0 from '!items!8lGlSw9Hkqbx1MDE' @ 72057594037927935 : 1 .. '!items!rMGHu9grQeuvSl6n' @ 0 : 0; will stop at (end)
|
||||||
|
2024/05/01-09:07:55.336980 7fdadfe006c0 Manual compaction at level-1 from '!items!8lGlSw9Hkqbx1MDE' @ 72057594037927935 : 1 .. '!items!rMGHu9grQeuvSl6n' @ 0 : 0; will stop at (end)
|
BIN
packs/poisons/MANIFEST-000032
Normal file
BIN
packs/poisons/MANIFEST-000032
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