Compare commits

...

23 Commits

Author SHA1 Message Date
3327109f7e Compendiusm again 2024-02-24 17:03:57 +01:00
b38bfc97c2 Compendiusm again 2024-02-24 17:03:31 +01:00
89a7730d43 Ajout des mutations 2024-02-24 15:55:29 +01:00
2ebd1bd1fd Ajout des mutations 2024-02-24 15:54:47 +01:00
9e023d3f01 Fix calcul defense 2024-02-15 11:47:15 +01:00
2c12ec38fb Enhance stats 2024-02-08 12:51:41 +01:00
38059232cb Automatisations de combats, WIP 2023-12-28 18:40:46 +01:00
c331604393 Predilections et warning 2023-12-21 21:02:11 +01:00
71c1e1cd29 Affichage des specialisations 2023-12-19 21:52:59 +01:00
4a2ca5fab5 CSS fixes 2023-11-26 14:07:55 +01:00
ea8c82256c v11 ready 2023-08-21 22:46:12 +02:00
7df8aad4dc v11 ready 2023-08-16 13:02:06 +02:00
bb38705d52 Fix arme à distance + modificateur de vigueur 2023-08-16 10:51:19 +02:00
4344a5fbd3 v11 ready 2023-08-16 10:32:02 +02:00
df461fecf9 Fix css for compendiums 2023-05-29 17:08:21 +02:00
3aeb51c8ac Fix css for compendiums 2023-05-29 16:35:16 +02:00
154e9d3da5 Fix css for compendiums 2023-05-29 16:07:59 +02:00
9b58acc058 v10/v11 compatibility 2023-05-25 07:24:34 +02:00
189411eef8 v10/v11 compatibility 2023-05-25 07:23:25 +02:00
b1966412a0 Correction sur init + assistance au combat dans la fenetre de dialogue 2023-04-24 22:20:47 +02:00
c34d223d8f Ajout statut resistant 2023-03-26 20:33:57 +02:00
0e5be07fb9 Alpha sort 2023-03-19 18:58:28 +01:00
22ae4fb588 Fix protections 2023-03-14 07:18:14 +01:00
117 changed files with 2424 additions and 1550 deletions

10
.gitignore vendored Normal file
View File

@ -0,0 +1,10 @@
.vscode/settings.json
.idea
.history
todo.md
/.vscode
/ignored/
/node_modules/
/jsconfig.json
/package.json
/package-lock.json

BIN
assets/icons/mutation.webp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.1 KiB

View File

@ -1,25 +1,25 @@
{
"ACTOR": {
"TypePersonnage": "Personnage",
"TypeCellule": "Cellule",
"TypeCreature": "Créature"
"TYPES": {
"Actor": {
"personnage": "Personnage",
"cellule": "Cellule",
"creature": "Créature"
},
"Item": {
"artefact": "Artefact",
"arme": "Arme",
"talent": "Talent",
"historique": "Historique",
"profil": "Profil",
"competence": "Compétence",
"protection": "Protection",
"monnaie": "Monnaie",
"equipement": "Equipement",
"ressource": "Ressource",
"contact": "Contact",
"mutation": "Mutation"
}
},
"ITEM": {
"TypeArtefact": "Artefact",
"TypeArme": "Arme",
"TypeTalent": "Talent",
"TypeHistorique": "Historique",
"TypeProfil": "Profil",
"TypeCompetence": "Compétence",
"TypeProtection": "Protection",
"TypeMonnaie": "Monnaie",
"TypeEquipement": "Equipement",
"TypeRessource": "Ressource",
"TypeContact": "Contact"
},
"HAWKMOON": {
"ui": {
"editContact": "Modifier le contact",

View File

@ -44,14 +44,17 @@ export class HawkmoonActorSheet extends ActorSheet {
protections: duplicate(this.actor.getArmors()),
historiques: duplicate(this.actor.getHistoriques() || []),
talents: duplicate(this.actor.getTalents() || []),
mutations: duplicate(this.actor.getMutations() || []),
talentsCell: this.getCelluleTalents(),
profils: duplicate(this.actor.getProfils() || []),
combat: this.actor.getCombatValues(),
equipements: duplicate(this.actor.getEquipments()),
artefacts: duplicate(this.actor.getArtefacts()),
monnaies: duplicate(this.actor.getMonnaies()),
richesse: this.actor.computeRichesse(),
coupDevastateur: this.actor.items.find(it => it.type =="talent" && it.name.toLowerCase() == "coup devastateur" && !it.system.used),
valeurEquipement: this.actor.computeValeurEquipement(),
nbCombativite: this.actor.system.sante.nbcombativite,
combativiteList: HawkmoonUtility.getCombativiteList(this.actor.system.sante.nbcombativite),
initiative: this.actor.getFlag("world", "last-initiative") || -1,
description: await TextEditor.enrichHTML(this.object.system.biodata.description, {async: true}),
habitat: await TextEditor.enrichHTML(this.object.system.biodata.habitat, {async: true}),
@ -124,7 +127,7 @@ export class HawkmoonActorSheet extends ActorSheet {
})
html.find('.roll-initiative').click((event) => {
this.actor.rollAttribut("pre", true)
this.actor.rollAttribut("adr", true)
})
html.find('.roll-attribut').click((event) => {

View File

@ -44,8 +44,8 @@ export class HawkmoonActor extends Actor {
if (data.type == 'creature') {
const skills = await HawkmoonUtility.loadCompendium("fvtt-hawkmoon-cyd.skills-creatures")
data.items = skills.map(i => i.toObject())
data.items.push( { name: "Arme naturelle 1", type: 'arme', img: "systems/fvtt-hawkmoon-cyd/assets/icons/melee.webp", system: { typearme: "contact", bonusmaniementoff: 0, seuildefense: 0, degats: "0"} } )
data.items.push( { name: "Arme naturelle 2", type: 'arme', img: "systems/fvtt-hawkmoon-cyd/assets/icons/melee.webp", system: { typearme: "contact", bonusmaniementoff: 0, seuildefense: 0, degats: "0"} } )
data.items.push({ name: "Arme naturelle 1", type: 'arme', img: "systems/fvtt-hawkmoon-cyd/assets/icons/melee.webp", system: { typearme: "contact", bonusmaniementoff: 0, seuildefense: 0, degats: "0" } })
data.items.push({ name: "Arme naturelle 2", type: 'arme', img: "systems/fvtt-hawkmoon-cyd/assets/icons/melee.webp", system: { typearme: "contact", bonusmaniementoff: 0, seuildefense: 0, degats: "0" } })
}
return super.create(data, options);
@ -71,18 +71,23 @@ export class HawkmoonActor extends Actor {
let combat = this.getCombatValues()
if (arme.system.typearme == "contact" || arme.system.typearme == "contactjet") {
let bonusDefense = this.getBonusDefenseFromTalents()
arme.system.competence = duplicate(this.items.find(item => item.type == "competence" && item.name.toLowerCase() == "mêlée") )
arme.system.competence = duplicate(this.items.find(item => item.type == "competence" && item.name.toLowerCase() == "mêlée"))
arme.system.attrKey = "pui"
arme.system.totalDegats = arme.system.degats + "+" + combat.bonusDegatsTotal
arme.system.totalOffensif = this.system.attributs.pui.value + arme.system.competence.system.niveau + arme.system.bonusmaniementoff
arme.system.totalDefensif = combat.defenseTotal + arme.system.competence.system.niveau + arme.system.seuildefense + bonusDefense
console.log("Arme", arme.system.totalDefensif, combat, arme.system.competence.system.niveau, arme.system.seuildefense, bonusDefense)
arme.system.isdefense = true
arme.system.isMelee = true
arme.system.isDistance = false
}
if (arme.system.typearme == "jet" || arme.system.typearme == "tir") {
arme.system.competence = duplicate(this.items.find(item => item.type == "competence" && item.name.toLowerCase() == "armes à distance"))
arme.system.attrKey = "adr"
arme.system.totalOffensif = this.system.attributs.adr.value + arme.system.competence.system.niveau + arme.system.bonusmaniementoff
arme.system.totalDegats = arme.system.degats
arme.system.isMelee = false
arme.system.isDistance = true
if (arme.system.isdefense) {
arme.system.totalDefensif = combat.defenseTotal + arme.system.competence.system.niveau + arme.system.seuildefense
}
@ -91,6 +96,11 @@ export class HawkmoonActor extends Actor {
}
/* -------------------------------------------- */
getItemSorted(types) {
let items = this.items.filter(item => types.includes(item.type)) || []
HawkmoonUtility.sortArrayObjectsByName(items)
return items
}
getWeapons() {
let armes = []
for (let arme of this.items) {
@ -98,55 +108,40 @@ export class HawkmoonActor extends Actor {
armes.push(this.prepareArme(arme))
}
}
HawkmoonUtility.sortArrayObjectsByName(armes)
return armes
}
/* -------------------------------------------- */
getMonnaies() {
return this.items.filter( it => it.type == "monnaie")
return this.getItemSorted(["monnaie"])
}
/* ----------------------- --------------------- */
addMember( actorId) {
let members = duplicate(this.system.members)
members.push( {id: actorId} )
this.update ({'system.members': members})
}
async removeMember(actorId) {
let members = this.system.members.filter(it => it.id != actorId )
this.update ({'system.members': members})
}
/* ----------------------- --------------------- */
getEquipments() {
return this.items.filter(item => item.type == "equipement")
return this.getItemSorted(["equipement"])
}
/* ----------------------- --------------------- */
getArtefacts() {
return this.items.filter(item => item.type == "artefact")
return this.getItemSorted(["artefact"])
}
/* ----------------------- --------------------- */
getMonnaies() {
return this.items.filter(item => item.type == "monnaie")
}
/* -------------------------------------------- */
getArmors() {
return this.items.filter(item => item.type == "protection")
return this.getItemSorted(["protection"])
}
getHistoriques() {
return this.items.filter(item => item.type == "historique")
return this.getItemSorted(["historique"])
}
getProfils() {
return this.items.filter(item => item.type == "profil")
return this.getItemSorted(["profil"])
}
getTalents() {
return this.items.filter(item => item.type == "talent")
return this.getItemSorted(["talent"])
}
getRessources() {
return this.items.filter(item => item.type == "ressource")
return this.getItemSorted(["ressource"])
}
getContacts() {
return this.items.filter(item => item.type == "contact")
return this.getItemSorted(["contact"])
}
getMutations() {
return this.getItemSorted(["mutation"])
}
/* -------------------------------------------- */
getSkills() {
let comp = []
@ -167,22 +162,24 @@ export class HawkmoonActor extends Actor {
comp.push(item)
}
}
return comp.sort(function (a, b) {
let fa = a.name.toLowerCase(),
fb = b.name.toLowerCase();
if (fa < fb) {
return -1;
}
if (fa > fb) {
return 1;
}
return 0;
})
HawkmoonUtility.sortArrayObjectsByName(comp)
return comp
}
/* ----------------------- --------------------- */
addMember(actorId) {
let members = duplicate(this.system.members)
members.push({ id: actorId })
this.update({ 'system.members': members })
}
async removeMember(actorId) {
let members = this.system.members.filter(it => it.id != actorId)
this.update({ 'system.members': members })
}
/* -------------------------------------------- */
getDefenseBase() {
return Math.max(this.system.attributs.tre.value, this.system.attributs.pui.value)
return Math.max(this.system.attributs.tre.value, this.system.attributs.adr.value)
}
/* -------------------------------------------- */
@ -192,7 +189,7 @@ export class HawkmoonActor extends Actor {
/* -------------------------------------------- */
getProtection() {
let equipProtection = 0
for(let armor in this.items) {
for (let armor of this.items) {
if (armor.type == "protection" && armor.system.equipped) {
equipProtection += Number(armor.system.protection)
}
@ -213,7 +210,7 @@ export class HawkmoonActor extends Actor {
vitesseBase: this.getVitesseBase(),
vitesseTotal: this.getVitesseBase() + this.system.combat.vitessebonus,
defenseBase: this.getDefenseBase(),
protection : this.getProtection(),
protection: this.getProtection(),
defenseTotal: this.getDefenseBase() + this.system.combat.defensebonus + this.getProtection() - this.getTotalAdversite()
}
return combat
@ -233,7 +230,7 @@ export class HawkmoonActor extends Actor {
if (this.type == 'personnage') {
let talentBonus = this.getVigueurBonus()
let vigueur = Math.floor((this.system.attributs.pui.value + this.system.attributs.tre.value) / 2) + talentBonus
let vigueur = Math.floor((this.system.attributs.pui.value + this.system.attributs.tre.value) / 2) + talentBonus + this.system.sante.vigueurmodifier
if (vigueur != this.system.sante.vigueur) {
this.update({ 'system.sante.vigueur': vigueur })
}
@ -386,13 +383,36 @@ export class HawkmoonActor extends Actor {
/* -------------------------------------------- */
getBonusDegats() {
return 0;
return 0;
}
/* -------------------------------------------- */
changeEtatCombativite(value) {
let sante = duplicate(this.system.sante)
sante.etat += Number(value)
sante.etat = Math.max(sante.etat, 0)
sante.etat = Math.min(sante.etat, 5)
this.update({ 'system.sante': sante })
if (sante.etat == this.system.sante.nbcombativite) {
ChatMessage.create({ content: `<strong>${this.name} est vaincu !</strong>` })
}
// Gestion des états affaibli et très affaibli
if (sante.etat == this.system.sante.nbcombativite-2 || sante.etat == this.system.sante.nbcombativite-1) {
if (sante.etat == this.system.sante.nbcombativite-2 && this.items.find(item => item.type == "talent" && item.name.toLowerCase() == "encaissement")) {
ChatMessage.create({ content: `<strong>${this.name} ne subit pas les 2 adversités rouge grâce à Encaissement. Pensez à les ajouter à la fin de la scène !</strong>` })
} else if (sante.etat == this.system.sante.nbcombativite-1 && this.items.find(item => item.type == "talent" && item.name.toLowerCase().includes("vaillant"))) {
ChatMessage.create({ content: `<strong>${this.name} ne subit pas les 2 adversités rouge grâce à Vaillant. Pensez à les ajouter à la fin de la scène !</strong>` })
} else {
ChatMessage.create({ content: `<strong>${this.name} subit 2 adversités rouge !</strong>` })
this.incDecAdversite("rouge", 2)
}
}
}
/* -------------------------------------------- */
async equipGear(equipmentId) {
let item = this.items.find(item => item.id == equipmentId);
if (item && item.system.data) {
if (item?.system?.data) {
let update = { _id: item.id, "system.equipped": !item.system.equipped };
await this.updateEmbeddedDocuments('Item', [update]); // Updates one EmbeddedEntity
}
@ -441,34 +461,34 @@ export class HawkmoonActor extends Actor {
if (objetQ) {
let newQ = objetQ.system.quantite + incDec
newQ = Math.max(newQ, 0)
const updated = await this.updateEmbeddedDocuments('Item', [{ _id: objetQ.id, 'system.quantite': newQ }]); // pdates one EmbeddedEntity
await this.updateEmbeddedDocuments('Item', [{ _id: objetQ.id, 'system.quantite': newQ }]); // pdates one EmbeddedEntity
}
}
/* -------------------------------------------- */
computeRichesse() {
let valueSC = 0
for(let monnaie of this.items) {
for (let monnaie of this.items) {
if (monnaie.type == "monnaie") {
valueSC += Number(monnaie.system.prixsc) * Number(monnaie.system.quantite)
valueSC += Number(monnaie.system.prixsc) * Number(monnaie.system.quantite)
}
}
return HawkmoonUtility.computeMonnaieDetails( valueSC)
return HawkmoonUtility.computeMonnaieDetails(valueSC)
}
/* -------------------------------------------- */
computeValeurEquipement() {
let valueSC = 0
for(let equip of this.items) {
for (let equip of this.items) {
if (equip.type == "equipement" || equip.type == "arme" || equip.type == "protection") {
valueSC += Number(equip.system.prixsc) * Number(equip.system.quantite ?? 1)
valueSC += (Number(equip.system.prixca) * Number(equip.system.quantite ?? 1)) * 20
valueSC += (Number(equip.system.prixpo) * Number(equip.system.quantite ?? 1)) * 400
valueSC += Number(equip.system.prixsc) * Number(equip.system.quantite ?? 1)
valueSC += (Number(equip.system.prixca) * Number(equip.system.quantite ?? 1)) * 20
valueSC += (Number(equip.system.prixpo) * Number(equip.system.quantite ?? 1)) * 400
}
}
return HawkmoonUtility.computeMonnaieDetails( valueSC)
return HawkmoonUtility.computeMonnaieDetails(valueSC)
}
/* -------------------------------------------- */
getCompetence(compId) {
return this.items.get(compId)
@ -494,7 +514,7 @@ export class HawkmoonActor extends Actor {
let maxDef = 0
let bestArme
for (let arme of defenseList) {
if (arme.type == "arme" ) {
if (arme.type == "arme") {
arme = this.prepareArme(arme)
}
if (arme.system.totalDefensif > maxDef) {
@ -545,6 +565,8 @@ export class HawkmoonActor extends Actor {
rollData.nbBA = this.system.bonneaventure.actuelle
rollData.nbAdversites = this.getTotalAdversite()
rollData.talents = []
rollData.attrKey2 = "none"
rollData.coupDevastateur = this.items.find(it => it.type =="talent" && it.name.toLowerCase() == "coup dévastateur" && !it.system.used)
if (attrKey) {
rollData.attrKey = attrKey
@ -568,8 +590,8 @@ export class HawkmoonActor extends Actor {
/* -------------------------------------------- */
async rollAttribut(attrKey, isInit = false) {
let rollData = this.getCommonRollData(attrKey)
rollData.multiplier = (isInit)? 1 : 2
let rollData = this.getCommonRollData(attrKey)
rollData.multiplier = (isInit) ? 1 : 2
rollData.isInit = isInit
let rollDialog = await HawkmoonRollDialog.create(this, rollData)
rollDialog.render(true)
@ -599,24 +621,47 @@ export class HawkmoonActor extends Actor {
}
/* -------------------------------------------- */
async rollArmeDegats(armeId, targetVigueur = undefined) {
async rollArmeDegats(armeId, targetVigueur = undefined, rollDataInput = undefined) {
let arme = this.items.get(armeId)
if (arme.type == "arme") {
arme = this.prepareArme(arme)
}
console.log("DEGATS", arme)
let roll = new Roll( "1d10+"+arme.system.totalDegats).roll({ async: false })
console.log("DEGATS", arme, targetVigueur, rollDataInput)
let roll
let bonus = 0
let bonus2 = 0
if (rollDataInput?.applyCoupDevastateur) {
bonus2 = Math.floor(this.system.attributs.pui.value / 2)
let talent = this.items.find(item => item.type == "talent" && item.name.toLowerCase() == "coup dévastateur")
this.updateEmbeddedDocuments('Item', [{ _id: talent.id, 'system.used': true }])
}
if (rollDataInput?.isHeroique) {
if (rollDataInput?.attaqueCharge) {
bonus = 5
}
roll = new Roll("2d10rr10+" + arme.system.totalDegats + "+" + bonus + "+" + bonus2).roll({ async: false })
} else {
if (rollDataInput?.attaqueCharge) {
bonus = 3
}
roll = new Roll("1d10+" + arme.system.totalDegats + "+" + bonus + "+" + bonus2).roll({ async: false })
}
await HawkmoonUtility.showDiceSoNice(roll, game.settings.get("core", "rollMode"));
let nbEtatPerdus = 0
let nbEtatPerdus = 0
if (targetVigueur) {
nbEtatPerdus = Math.floor(roll.total / targetVigueur)
}
console.log(roll)
let rollData = {
arme: arme,
finalResult: roll.total,
formula: roll.formula,
alias: this.name,
actorImg: this.img,
actorId: this.id,
defenderTokenId: rollDataInput?.defenderTokenId,
actionImg: arme.img,
targetVigueur: targetVigueur,
nbEtatPerdus: nbEtatPerdus
@ -625,5 +670,9 @@ export class HawkmoonActor extends Actor {
content: await renderTemplate(`systems/fvtt-hawkmoon-cyd/templates/chat-degats-result.html`, rollData)
})
if (rollDataInput?.defenderTokenId && nbEtatPerdus) {
HawkmoonUtility.applyCombativite(rollDataInput, nbEtatPerdus)
}
}
}

View File

@ -6,7 +6,7 @@ export class HawkmoonCombat extends Combat {
/* -------------------------------------------- */
async rollInitiative(ids, formula = undefined, messageOptions = {} ) {
ids = typeof ids === "string" ? [ids] : ids;
for (let cId = 0; cId < ids.length; cId++) {
for (let cId of ids) {
const c = this.combatants.get(ids[cId]);
//console.log("Init for combattant", c )
let id = c._id || c.id
@ -21,5 +21,4 @@ export class HawkmoonCombat extends Combat {
_onUpdate(changed, options, userId) {
}
}

View File

@ -185,7 +185,7 @@ export class HawkmoonItemSheet extends ItemSheet {
html.find('#add-automation').click(ev => {
let autom = duplicate(this.object.system.automations)
autom.push( { eventtype: "on-drop", name: "Automatisation 1", competence: "", minLevel: 0, id: randomID(16) })
autom.push( { eventtype: "on-drop", name: "Automatisation 1", bonusname: "vigueur", bonus: 0, competence: "", minLevel: 0, baCost: 0, id: randomID(16) })
this.object.update( { 'system.automations': autom })
})
html.find('.delete-automation').click(ev => {

View File

@ -13,6 +13,7 @@ export const defaultItemImg = {
artefact: "systems/fvtt-hawkmoon-cyd/assets/icons/artefact.webp",
contact: "systems/fvtt-hawkmoon-cyd/assets/icons/contacts.webp",
ressource: "systems/fvtt-hawkmoon-cyd/assets/icons/ressources.webp",
mutation: "systems/fvtt-hawkmoon-cyd/assets/icons/mutation.webp",
}
/**

View File

@ -82,32 +82,6 @@ function welcomeMessage() {
` });
}
/* -------------------------------------------- */
// Register world usage statistics
function registerUsageCount(registerKey) {
if (game.user.isGM) {
game.settings.register(registerKey, "world-key", {
name: "Unique world key",
scope: "world",
config: false,
default: "",
type: String
});
let worldKey = game.settings.get(registerKey, "world-key")
if (worldKey == undefined || worldKey == "") {
worldKey = randomID(32)
game.settings.set(registerKey, "world-key", worldKey)
}
// Simple API counter
let regURL = `https://www.uberwald.me/fvtt_appcount/count.php?name="${registerKey}"&worldKey="${worldKey}"&version="${game.release.generation}.${game.release.build}"&system="${game.system.id}"&systemversion="${game.system.version}"`
//$.ajaxSetup({
//headers: { 'Access-Control-Allow-Origin': '*' }
//})
$.ajax(regURL)
}
}
/* -------------------------------------------- */
/* Foundry VTT Initialization */
/* -------------------------------------------- */
@ -124,14 +98,15 @@ Hooks.once("ready", function () {
});
}
registerUsageCount('fvtt-hawkmoon-cyd')
import("https://www.uberwald.me/fvtt_appcount/count-class-ready.js").then(moduleCounter=>{
console.log("ClassCounter loaded", moduleCounter)
moduleCounter.ClassCounter.registerUsageCount()
}).catch(err=>
console.log("No stats available, giving up.")
)
welcomeMessage()
// CSS patch for v9
if (game.version) {
let sidebar = document.getElementById("sidebar");
sidebar.style.width = "min-content";
}
});
/* -------------------------------------------- */

View File

@ -66,15 +66,52 @@ export class HawkmoonRollDialog extends Dialog {
html.find('#attrKey').change(async (event) => {
this.rollData.attrKey = String(event.currentTarget.value)
})
html.find('#attrKey2').change(async (event) => {
this.rollData.attrKey2 = String(event.currentTarget.value)
})
html.find('#select-maitrise').change(async (event) => {
this.rollData.maitriseId = String(event.currentTarget.value)
})
html.find('#competence-talents').change((event) => {
this.rollData.selectedTalents = $('#competence-talents').val()
})
html.find('#taille-cible').change((event) => {
this.rollData.tailleCible = String(event.currentTarget.value)
})
html.find('#tireur-deplacement').change((event) => {
this.rollData.tireurDeplacement = String(event.currentTarget.value)
})
html.find('#cible-couvert').change((event) => {
this.rollData.cibleCouvert = String(event.currentTarget.value)
})
html.find('#distance-tir').change((event) => {
this.rollData.distanceTir = String(event.currentTarget.value)
})
html.find('#bonus-malus-context').change((event) => {
this.rollData.bonusMalusContext = Number(event.currentTarget.value)
})
html.find('#defenseur-au-sol').change((event) => {
this.rollData.defenseurAuSol = event.currentTarget.checked
})
html.find('#defenseur-aveugle').change((event) => {
this.rollData.defenseurAveugle = event.currentTarget.checked
})
html.find('#defenseur-de-dos').change((event) => {
this.rollData.defenseurDeDos = event.currentTarget.checked
})
html.find('#defenseur-restreint').change((event) => {
this.rollData.defenseurRestreint = event.currentTarget.checked
})
html.find('#defenseur-immobilise').change((event) => {
this.rollData.defenseurImmobilise = event.currentTarget.checked
})
html.find('#attaque-charge').change((event) => {
this.rollData.attaqueCharge = event.currentTarget.checked
})
html.find('#attaque-desarme').change((event) => {
this.rollData.attaqueDesarme = event.currentTarget.checked
})
}
}

View File

@ -2,6 +2,12 @@
import { HawkmoonCombat } from "./hawkmoon-combat.js";
import { HawkmoonCommands } from "./hawkmoon-commands.js";
/* -------------------------------------------- */
const __distanceDifficulte = { "porteecourte": 5, "porteemoyenne": 9, "porteelongue": 14}
const __tireurDeplacement = { immobile: 0, lent: 3, rapide: 5}
const __cibleCouvert = { aucun: 0, leger: 5, complet: 10}
const __tailleCible = { normal: 0, main: 10, enfant: 3, maison: -10}
/* -------------------------------------------- */
export class HawkmoonUtility {
@ -61,6 +67,13 @@ export class HawkmoonUtility {
}
/* -------------------------------------------- */
static sortArrayObjectsByName(myArray) {
myArray.sort((a, b) => {
return a.name.localeCompare(b.name);
})
}
/* -------------------------------------------- */
static getModificateurOptions() {
let opt = []
@ -138,8 +151,17 @@ export class HawkmoonUtility {
let message = game.messages.get(messageId)
let rollData = message.getFlag("world", "hawkmoon-roll")
let actor = this.getActorFromRollData(rollData)
actor.rollArmeDegats(rollData.arme._id, rollData.targetVigueur)
actor.rollArmeDegats(rollData.arme._id, rollData.targetVigueur, rollData)
})
html.on("click", '.roll-chat-degat-devastateur', async event => {
let messageId = HawkmoonUtility.findChatMessageId(event.currentTarget)
let message = game.messages.get(messageId)
let rollData = message.getFlag("world", "hawkmoon-roll")
let actor = this.getActorFromRollData(rollData)
rollData.applyCoupDevastateur = true
actor.rollArmeDegats(rollData.arme._id, rollData.targetVigueur, rollData)
})
}
/* -------------------------------------------- */
@ -237,27 +259,12 @@ export class HawkmoonUtility {
let newRollData = mergeObject(oldRollData, rollData);
this.rollDataStore[id] = newRollData;
}
/* -------------------------------------------- */
static saveRollData(rollData) {
game.socket.emit("system.fvtt-hawkmoon-cyd", {
name: "msg_update_roll", data: rollData
}); // Notify all other clients of the roll
this.updateRollData(rollData);
}
/* -------------------------------------------- */
static getRollData(id) {
return this.rollDataStore[id];
}
/* -------------------------------------------- */
static onSocketMesssage(msg) {
//console.log("SOCKET MESSAGE", msg.name, game.user.character.id, msg.data.defenderId);
if (msg.name == "msg_update_defense_state") {
this.updateDefenseState(msg.data.defenderId, msg.data.rollId);
}
if (msg.name == "msg_update_roll") {
this.updateRollData(msg.data);
if (msg.name == "msg_apply_combativite") {
let defender = game.canvas.tokens.get(rollData.defenderTokenId).actor
defender.changeEtatCombativite(msg.data.value)
}
}
@ -309,13 +316,13 @@ export class HawkmoonUtility {
/* -------------------------------------------- */
static computeMonnaieDetails(valueSC) {
let po = Math.floor(valueSC / 400)
let pa = Math.floor((valueSC - (po*400)) / 20)
let sc = valueSC - (po*400) - (pa*20)
let pa = Math.floor((valueSC - (po * 400)) / 20)
let sc = valueSC - (po * 400) - (pa * 20)
return {
po: po, pa: pa, sc: sc, valueSC: valueSC
po, pa, sc, valueSC
}
}
/* -------------------------------------------- */
static computeResult(rollData) {
rollData.diceResult = rollData.roll.terms[0].results[0].result
@ -339,7 +346,15 @@ export class HawkmoonUtility {
}
}
/* -------------------------------------------- */
static applyCombativite(rollData, value) {
if (game.user.isGM) {
let defender = game.canvas.tokens.get(rollData.defenderTokenId).actor
defender.changeEtatCombativite(value)
} else {
game.socket.emit("system.fvtt-hawkmoon-cyd", { msg: "msg_apply_combativite", data: { defenderTokenId: rollData.defenderTokenId, value } });
}
}
/* -------------------------------------------- */
static async rollHawkmoon(rollData) {
@ -351,6 +366,9 @@ export class HawkmoonUtility {
rollData.actionImg = "systems/fvtt-hawkmoon-cyd/assets/icons/" + actor.system.attributs[rollData.attrKey].labelnorm + ".webp"
rollData.attr = duplicate(actor.system.attributs[rollData.attrKey])
}
if (rollData.attrKey2 != "none") {
rollData.attr2 = duplicate(actor.system.attributs[rollData.attrKey2])
}
if (rollData.maitriseId != "none") {
rollData.selectedMaitrise = rollData.maitrises.find(p => p.id == rollData.maitriseId)
@ -361,10 +379,10 @@ export class HawkmoonUtility {
//console.log("BEFORE COMP", rollData)
if (rollData.competence) {
rollData.predilections = duplicate(rollData.competence.system.predilections.filter(pred => pred.acquise && !pred.maitrise && !pred.used) || [])
rollData.predilections = duplicate(rollData.competence.system.predilections || [])
let compmod = (rollData.competence.system.niveau == 0) ? -3 : 0
rollData.diceFormula += `+${rollData.attr.value}+${rollData.competence.system.niveau}+${rollData.modificateur}+${compmod}`
if (rollData.selectedTalents && rollData.selectedTalents.length > 0) {
for (let id of rollData.selectedTalents) {
let talent = rollData.talents.find(t => t._id == id)
@ -383,10 +401,44 @@ export class HawkmoonUtility {
}
}
rollData.diceFormula += `+${rollData.bonusMalusContext}`
} else if (rollData.attr2) {
rollData.diceFormula += `+${rollData.attr.value}+${rollData.attr2.value}+${rollData.modificateur}+${rollData.bonusMalusContext}`
} else {
rollData.diceFormula += `+${rollData.attr.value}*${rollData.multiplier}+${rollData.modificateur}+${rollData.bonusMalusContext}`
}
// Bonus arme naturelle en défense
if (rollData.bonusArmeNaturelle) {
rollData.diceFormula += `+${rollData.bonusArmeNaturelle}`
}
if (rollData.defenseurAuSol) {
rollData.diceFormula += `+3`
}
if (rollData.defenseurAveugle) {
rollData.diceFormula += `+10`
}
if (rollData.defenseurDeDos) {
rollData.diceFormula += `+5`
}
if (rollData.defenseurRestreint) {
rollData.diceFormula += `+3`
}
if (rollData.defenseurImmobilise) {
rollData.diceFormula += `+5`
}
if (rollData.arme?.system.isDistance) {
rollData.difficulte = __distanceDifficulte[rollData.distanceTir]
rollData.difficulte += __tireurDeplacement[rollData.tireurDeplacement]
rollData.difficulte += __cibleCouvert[rollData.cibleCouvert]
rollData.difficulte += __tailleCible[rollData.tailleCible]
rollData.difficulte += rollData.cibleDeplace ? 3 : 0
rollData.difficulte += rollData.cibleCaC ? 3 : 0
}
if (rollData.attaqueDesarme) {
rollData.difficulte += 10
}
// Ajout adversités
rollData.diceFormula += `-${rollData.nbAdversites}`
@ -396,7 +448,7 @@ export class HawkmoonUtility {
let myRoll = new Roll(rollData.diceFormula).roll({ async: false })
await this.showDiceSoNice(myRoll, game.settings.get("core", "rollMode"))
rollData.roll = myRoll
rollData.roll = duplicate(myRoll)
console.log(">>>> ", myRoll)
rollData.finalResult = myRoll.total
@ -409,15 +461,31 @@ export class HawkmoonUtility {
content: await renderTemplate(`systems/fvtt-hawkmoon-cyd/templates/chat-generic-result.html`, rollData)
}, rollData)
if (rollData.arme && rollData.isSuccess && rollData.defenderTokenId) {
this.applyCombativite(rollData, 1)
}
}
/* -------------------------------------------- */
static getCombativiteList(nbActivite) {
let list = [ { value: 0, label: "Combatif"}]
for (let i = 1; i < nbActivite-2; i++) {
list.push({ value: i, label:"Eprouvé " + i} )
}
list[nbActivite-2] = { value: nbActivite-2, label:"Affaibli"}
list[nbActivite-1] = { value: nbActivite-1, label:"Très Affaibli"}
list[nbActivite] = { value: nbActivite, label:"Vaincu"}
return list
}
/* -------------------------------------------- */
static async bonusRollHawkmoon(rollData) {
rollData.bonusFormula = rollData.addedBonus
let bonusRoll = new Roll(rollData.bonusFormula).roll({ async: false })
await this.showDiceSoNice(bonusRoll, game.settings.get("core", "rollMode"));
rollData.bonusRoll = bonusRoll
rollData.bonusRoll = duplicate(bonusRoll)
rollData.finalResult += rollData.bonusRoll.total
@ -521,7 +589,19 @@ export class HawkmoonUtility {
pointAmeOptions: this.getPointAmeOptions(),
difficulte: 0,
modificateur: 0,
bonusMalusContext: 0
bonusMalusContext: 0,
bonusArmeNaturelle: 0,
defenseurAveugle: false,
defenseurDeDos: false,
defenseurAuSol: false,
defenseurRestreint: false,
defenseurImmobilise: false,
tailleCible: "normal",
tireurDeplacement: "immobile",
cibleCouvert: "aucun",
distanceTir: "porteemoyenne",
attaqueCharge: false,
attaqueDesarme: false
}
return rollData
}
@ -534,8 +614,14 @@ export class HawkmoonUtility {
let defender = game.canvas.tokens.get(rollData.defenderTokenId).actor
rollData.armeDefense = defender.getBestDefenseValue()
rollData.targetVigueur = defender.getVigueur()
rollData.protectionDefenseur = defender.getProtection()
if (rollData.armeDefense) {
rollData.difficulte = rollData.armeDefense.system.totalDefensif
if ( !rollData.arme.system.armenaturelle && !rollData.arme.system.armefortune ){
if (rollData.armeDefense.system.armenaturelle || rollData.armeDefense.system.armefortune) {
rollData.bonusArmeNaturelle = 3
}
}
} else {
ui.notifications.warn("Aucune arme de défense équipée, difficulté manuelle à positionner.")
}
@ -630,11 +716,11 @@ export class HawkmoonUtility {
/* -------------------------------------------- */
static async confirmDelete(actorSheet, li) {
let itemId = li.data("item-id");
let msgTxt = "<p>Are you sure to remove this Item ?";
let msgTxt = "<p>Etes vous certain de vouloir supprimer cet item ?";
let buttons = {
delete: {
icon: '<i class="fas fa-check"></i>',
label: "Yes, remove it",
label: "Oui !",
callback: () => {
actorSheet.actor.deleteEmbeddedDocuments("Item", [itemId]);
li.slideUp(200, () => actorSheet.render(false));
@ -642,12 +728,12 @@ export class HawkmoonUtility {
},
cancel: {
icon: '<i class="fas fa-times"></i>',
label: "Cancel"
label: "Non"
}
}
msgTxt += "</p>";
let d = new Dialog({
title: "Confirm removal",
title: "Confirmer la suppression",
content: msgTxt,
buttons: buttons,
default: "cancel"
@ -666,7 +752,6 @@ export class HawkmoonUtility {
console.log(entryData)
htmlTab += `<tr><td>@UUID[Compendium.${compName}.${entryData._id}]{${entryData.name}}</td>`
htmlTab += `<td>${entryData.system.description}</td>`;
//htmlTab += `<td>${entryData.system.resumebonus}</td>`;
htmlTab += "</tr>\n";
}
htmlTab += "</table>";

Binary file not shown.

View File

View File

@ -0,0 +1 @@
MANIFEST-000112

0
packs/aides-de-jeu/LOCK Normal file
View File

8
packs/aides-de-jeu/LOG Normal file
View File

@ -0,0 +1,8 @@
2024/02/24-17:02:14.754352 7f04234006c0 Recovering log #110
2024/02/24-17:02:14.807801 7f04234006c0 Delete type=3 #108
2024/02/24-17:02:14.807944 7f04234006c0 Delete type=0 #110
2024/02/24-17:02:44.940487 7f0421a006c0 Level-0 table #115: started
2024/02/24-17:02:44.940520 7f0421a006c0 Level-0 table #115: 0 bytes OK
2024/02/24-17:02:44.990896 7f0421a006c0 Delete type=0 #113
2024/02/24-17:02:44.991050 7f0421a006c0 Manual compaction at level-0 from '!journal!MUbViCE2PkVxlzqe' @ 72057594037927935 : 1 .. '!journal.pages!gVybbv17TFY8o3Y4.fQidyqfF1TbsZKHM' @ 0 : 0; will stop at (end)
2024/02/24-17:02:44.991066 7f0421a006c0 Manual compaction at level-1 from '!journal!MUbViCE2PkVxlzqe' @ 72057594037927935 : 1 .. '!journal.pages!gVybbv17TFY8o3Y4.fQidyqfF1TbsZKHM' @ 0 : 0; will stop at (end)

View File

@ -0,0 +1,8 @@
2024/02/24-15:27:21.161901 7f0422a006c0 Recovering log #106
2024/02/24-15:27:21.172307 7f0422a006c0 Delete type=3 #104
2024/02/24-15:27:21.172420 7f0422a006c0 Delete type=0 #106
2024/02/24-15:54:11.160992 7f0421a006c0 Level-0 table #111: started
2024/02/24-15:54:11.161043 7f0421a006c0 Level-0 table #111: 0 bytes OK
2024/02/24-15:54:11.168984 7f0421a006c0 Delete type=0 #109
2024/02/24-15:54:11.169375 7f0421a006c0 Manual compaction at level-0 from '!journal!MUbViCE2PkVxlzqe' @ 72057594037927935 : 1 .. '!journal.pages!gVybbv17TFY8o3Y4.fQidyqfF1TbsZKHM' @ 0 : 0; will stop at (end)
2024/02/24-15:54:11.169407 7f0421a006c0 Manual compaction at level-1 from '!journal!MUbViCE2PkVxlzqe' @ 72057594037927935 : 1 .. '!journal.pages!gVybbv17TFY8o3Y4.fQidyqfF1TbsZKHM' @ 0 : 0; will stop at (end)

Binary file not shown.

BIN
packs/armes/000005.ldb Normal file

Binary file not shown.

0
packs/armes/000114.log Normal file
View File

1
packs/armes/CURRENT Normal file
View File

@ -0,0 +1 @@
MANIFEST-000112

0
packs/armes/LOCK Normal file
View File

8
packs/armes/LOG Normal file
View File

@ -0,0 +1,8 @@
2024/02/24-17:02:14.261072 7f0422a006c0 Recovering log #110
2024/02/24-17:02:14.336608 7f0422a006c0 Delete type=3 #108
2024/02/24-17:02:14.336726 7f0422a006c0 Delete type=0 #110
2024/02/24-17:02:44.653079 7f0421a006c0 Level-0 table #115: started
2024/02/24-17:02:44.653100 7f0421a006c0 Level-0 table #115: 0 bytes OK
2024/02/24-17:02:44.684887 7f0421a006c0 Delete type=0 #113
2024/02/24-17:02:44.722405 7f0421a006c0 Manual compaction at level-0 from '!items!0fit7HelSjaFtXcW' @ 72057594037927935 : 1 .. '!items!wxrzP3NyiHiYnAMJ' @ 0 : 0; will stop at (end)
2024/02/24-17:02:44.722456 7f0421a006c0 Manual compaction at level-1 from '!items!0fit7HelSjaFtXcW' @ 72057594037927935 : 1 .. '!items!wxrzP3NyiHiYnAMJ' @ 0 : 0; will stop at (end)

8
packs/armes/LOG.old Normal file
View File

@ -0,0 +1,8 @@
2024/02/24-15:27:21.061930 7f0428e006c0 Recovering log #106
2024/02/24-15:27:21.072272 7f0428e006c0 Delete type=3 #104
2024/02/24-15:27:21.072358 7f0428e006c0 Delete type=0 #106
2024/02/24-15:54:11.103417 7f0421a006c0 Level-0 table #111: started
2024/02/24-15:54:11.103455 7f0421a006c0 Level-0 table #111: 0 bytes OK
2024/02/24-15:54:11.109891 7f0421a006c0 Delete type=0 #109
2024/02/24-15:54:11.118172 7f0421a006c0 Manual compaction at level-0 from '!items!0fit7HelSjaFtXcW' @ 72057594037927935 : 1 .. '!items!wxrzP3NyiHiYnAMJ' @ 0 : 0; will stop at (end)
2024/02/24-15:54:11.118244 7f0421a006c0 Manual compaction at level-1 from '!items!0fit7HelSjaFtXcW' @ 72057594037927935 : 1 .. '!items!wxrzP3NyiHiYnAMJ' @ 0 : 0; will stop at (end)

BIN
packs/armes/MANIFEST-000112 Normal file

Binary file not shown.

Binary file not shown.

View File

View File

@ -0,0 +1 @@
MANIFEST-000112

View File

View File

@ -0,0 +1,8 @@
2024/02/24-17:02:14.147016 7f0422a006c0 Recovering log #110
2024/02/24-17:02:14.207871 7f0422a006c0 Delete type=3 #108
2024/02/24-17:02:14.207942 7f0422a006c0 Delete type=0 #110
2024/02/24-17:02:44.579150 7f0421a006c0 Level-0 table #115: started
2024/02/24-17:02:44.579252 7f0421a006c0 Level-0 table #115: 0 bytes OK
2024/02/24-17:02:44.616456 7f0421a006c0 Delete type=0 #113
2024/02/24-17:02:44.722366 7f0421a006c0 Manual compaction at level-0 from '!items!0nhTxujlIUB63Aqt' @ 72057594037927935 : 1 .. '!items!tFU5yISK6spdNWco' @ 0 : 0; will stop at (end)
2024/02/24-17:02:44.722432 7f0421a006c0 Manual compaction at level-1 from '!items!0nhTxujlIUB63Aqt' @ 72057594037927935 : 1 .. '!items!tFU5yISK6spdNWco' @ 0 : 0; will stop at (end)

View File

@ -0,0 +1,8 @@
2024/02/24-15:27:21.032928 7f0428e006c0 Recovering log #106
2024/02/24-15:27:21.043854 7f0428e006c0 Delete type=3 #104
2024/02/24-15:27:21.043981 7f0428e006c0 Delete type=0 #106
2024/02/24-15:54:11.088997 7f0421a006c0 Level-0 table #111: started
2024/02/24-15:54:11.089081 7f0421a006c0 Level-0 table #111: 0 bytes OK
2024/02/24-15:54:11.096233 7f0421a006c0 Delete type=0 #109
2024/02/24-15:54:11.118114 7f0421a006c0 Manual compaction at level-0 from '!items!0nhTxujlIUB63Aqt' @ 72057594037927935 : 1 .. '!items!tFU5yISK6spdNWco' @ 0 : 0; will stop at (end)
2024/02/24-15:54:11.118212 7f0421a006c0 Manual compaction at level-1 from '!items!0nhTxujlIUB63Aqt' @ 72057594037927935 : 1 .. '!items!tFU5yISK6spdNWco' @ 0 : 0; will stop at (end)

Binary file not shown.

Binary file not shown.

View File

View File

@ -0,0 +1 @@
MANIFEST-000112

0
packs/competences/LOCK Normal file
View File

8
packs/competences/LOG Normal file
View File

@ -0,0 +1,8 @@
2024/02/24-17:02:14.032746 7f0422a006c0 Recovering log #110
2024/02/24-17:02:14.083633 7f0422a006c0 Delete type=3 #108
2024/02/24-17:02:14.083731 7f0422a006c0 Delete type=0 #110
2024/02/24-17:02:44.458715 7f0421a006c0 Level-0 table #115: started
2024/02/24-17:02:44.458743 7f0421a006c0 Level-0 table #115: 0 bytes OK
2024/02/24-17:02:44.496165 7f0421a006c0 Delete type=0 #113
2024/02/24-17:02:44.578914 7f0421a006c0 Manual compaction at level-0 from '!items!15IDGG6JoZnRCQtY' @ 72057594037927935 : 1 .. '!items!yI1zY5k8mAdx9wHK' @ 0 : 0; will stop at (end)
2024/02/24-17:02:44.579004 7f0421a006c0 Manual compaction at level-1 from '!items!15IDGG6JoZnRCQtY' @ 72057594037927935 : 1 .. '!items!yI1zY5k8mAdx9wHK' @ 0 : 0; will stop at (end)

View File

@ -0,0 +1,8 @@
2024/02/24-15:27:21.005371 7f0428e006c0 Recovering log #106
2024/02/24-15:27:21.017229 7f0428e006c0 Delete type=3 #104
2024/02/24-15:27:21.017431 7f0428e006c0 Delete type=0 #106
2024/02/24-15:54:11.070055 7f0421a006c0 Level-0 table #111: started
2024/02/24-15:54:11.070105 7f0421a006c0 Level-0 table #111: 0 bytes OK
2024/02/24-15:54:11.076878 7f0421a006c0 Delete type=0 #109
2024/02/24-15:54:11.088751 7f0421a006c0 Manual compaction at level-0 from '!items!15IDGG6JoZnRCQtY' @ 72057594037927935 : 1 .. '!items!yI1zY5k8mAdx9wHK' @ 0 : 0; will stop at (end)
2024/02/24-15:54:11.088816 7f0421a006c0 Manual compaction at level-1 from '!items!15IDGG6JoZnRCQtY' @ 72057594037927935 : 1 .. '!items!yI1zY5k8mAdx9wHK' @ 0 : 0; will stop at (end)

Binary file not shown.

BIN
packs/equipement/000005.ldb Normal file

Binary file not shown.

View File

1
packs/equipement/CURRENT Normal file
View File

@ -0,0 +1 @@
MANIFEST-000112

0
packs/equipement/LOCK Normal file
View File

8
packs/equipement/LOG Normal file
View File

@ -0,0 +1,8 @@
2024/02/24-17:02:14.437580 7f0422a006c0 Recovering log #110
2024/02/24-17:02:14.523339 7f0422a006c0 Delete type=3 #108
2024/02/24-17:02:14.523459 7f0422a006c0 Delete type=0 #110
2024/02/24-17:02:44.791691 7f0421a006c0 Level-0 table #115: started
2024/02/24-17:02:44.791718 7f0421a006c0 Level-0 table #115: 0 bytes OK
2024/02/24-17:02:44.828354 7f0421a006c0 Delete type=0 #113
2024/02/24-17:02:44.865482 7f0421a006c0 Manual compaction at level-0 from '!items!0BopmCu8vGK2923j' @ 72057594037927935 : 1 .. '!items!zYx0Ak2y1LNTcKlO' @ 0 : 0; will stop at (end)
2024/02/24-17:02:44.865534 7f0421a006c0 Manual compaction at level-1 from '!items!0BopmCu8vGK2923j' @ 72057594037927935 : 1 .. '!items!zYx0Ak2y1LNTcKlO' @ 0 : 0; will stop at (end)

8
packs/equipement/LOG.old Normal file
View File

@ -0,0 +1,8 @@
2024/02/24-15:27:21.088831 7f0428e006c0 Recovering log #106
2024/02/24-15:27:21.099682 7f0428e006c0 Delete type=3 #104
2024/02/24-15:27:21.099779 7f0428e006c0 Delete type=0 #106
2024/02/24-15:54:11.125392 7f0421a006c0 Level-0 table #111: started
2024/02/24-15:54:11.125461 7f0421a006c0 Level-0 table #111: 0 bytes OK
2024/02/24-15:54:11.132402 7f0421a006c0 Delete type=0 #109
2024/02/24-15:54:11.146985 7f0421a006c0 Manual compaction at level-0 from '!items!0BopmCu8vGK2923j' @ 72057594037927935 : 1 .. '!items!zYx0Ak2y1LNTcKlO' @ 0 : 0; will stop at (end)
2024/02/24-15:54:11.147070 7f0421a006c0 Manual compaction at level-1 from '!items!0BopmCu8vGK2923j' @ 72057594037927935 : 1 .. '!items!zYx0Ak2y1LNTcKlO' @ 0 : 0; will stop at (end)

Binary file not shown.

Binary file not shown.

View File

View File

@ -0,0 +1 @@
MANIFEST-000112

0
packs/historiques/LOCK Normal file
View File

8
packs/historiques/LOG Normal file
View File

@ -0,0 +1,8 @@
2024/02/24-17:02:14.210347 7f04234006c0 Recovering log #110
2024/02/24-17:02:14.257923 7f04234006c0 Delete type=3 #108
2024/02/24-17:02:14.257978 7f04234006c0 Delete type=0 #110
2024/02/24-17:02:44.616568 7f0421a006c0 Level-0 table #115: started
2024/02/24-17:02:44.616772 7f0421a006c0 Level-0 table #115: 0 bytes OK
2024/02/24-17:02:44.652984 7f0421a006c0 Delete type=0 #113
2024/02/24-17:02:44.722386 7f0421a006c0 Manual compaction at level-0 from '!items!15foLG7y3LUXNzkK' @ 72057594037927935 : 1 .. '!items!z1HtkvazCGHut7cz' @ 0 : 0; will stop at (end)
2024/02/24-17:02:44.722444 7f0421a006c0 Manual compaction at level-1 from '!items!15foLG7y3LUXNzkK' @ 72057594037927935 : 1 .. '!items!z1HtkvazCGHut7cz' @ 0 : 0; will stop at (end)

View File

@ -0,0 +1,8 @@
2024/02/24-15:27:21.047067 7f0422a006c0 Recovering log #106
2024/02/24-15:27:21.058242 7f0422a006c0 Delete type=3 #104
2024/02/24-15:27:21.058369 7f0422a006c0 Delete type=0 #106
2024/02/24-15:54:11.096381 7f0421a006c0 Level-0 table #111: started
2024/02/24-15:54:11.096419 7f0421a006c0 Level-0 table #111: 0 bytes OK
2024/02/24-15:54:11.103263 7f0421a006c0 Delete type=0 #109
2024/02/24-15:54:11.118151 7f0421a006c0 Manual compaction at level-0 from '!items!15foLG7y3LUXNzkK' @ 72057594037927935 : 1 .. '!items!z1HtkvazCGHut7cz' @ 0 : 0; will stop at (end)
2024/02/24-15:54:11.118228 7f0421a006c0 Manual compaction at level-1 from '!items!15foLG7y3LUXNzkK' @ 72057594037927935 : 1 .. '!items!z1HtkvazCGHut7cz' @ 0 : 0; will stop at (end)

Binary file not shown.

BIN
packs/mutations/000021.ldb Normal file

Binary file not shown.

View File

1
packs/mutations/CURRENT Normal file
View File

@ -0,0 +1 @@
MANIFEST-000022

0
packs/mutations/LOCK Normal file
View File

8
packs/mutations/LOG Normal file
View File

@ -0,0 +1,8 @@
2024/02/24-17:02:14.085660 7f04234006c0 Recovering log #20
2024/02/24-17:02:14.143480 7f04234006c0 Delete type=3 #18
2024/02/24-17:02:14.143544 7f04234006c0 Delete type=0 #20
2024/02/24-17:02:44.549664 7f0421a006c0 Level-0 table #25: started
2024/02/24-17:02:44.549704 7f0421a006c0 Level-0 table #25: 0 bytes OK
2024/02/24-17:02:44.578703 7f0421a006c0 Delete type=0 #23
2024/02/24-17:02:44.578982 7f0421a006c0 Manual compaction at level-0 from '!folders!5d4Zn28TUcPxRyXd' @ 72057594037927935 : 1 .. '!items!zttESycGKltfwCzJ' @ 0 : 0; will stop at (end)
2024/02/24-17:02:44.579068 7f0421a006c0 Manual compaction at level-1 from '!folders!5d4Zn28TUcPxRyXd' @ 72057594037927935 : 1 .. '!items!zttESycGKltfwCzJ' @ 0 : 0; will stop at (end)

7
packs/mutations/LOG.old Normal file
View File

@ -0,0 +1,7 @@
2024/02/24-15:27:21.020239 7f0422a006c0 Recovering log #16
2024/02/24-15:27:21.030468 7f0422a006c0 Delete type=3 #14
2024/02/24-15:27:21.030604 7f0422a006c0 Delete type=0 #16
2024/02/24-15:54:11.077049 7f0421a006c0 Level-0 table #21: started
2024/02/24-15:54:11.082085 7f0421a006c0 Level-0 table #21: 56385 bytes OK
2024/02/24-15:54:11.088423 7f0421a006c0 Delete type=0 #19
2024/02/24-15:54:11.088774 7f0421a006c0 Manual compaction at level-0 from '!folders!5d4Zn28TUcPxRyXd' @ 72057594037927935 : 1 .. '!items!zttESycGKltfwCzJ' @ 0 : 0; will stop at (end)

Binary file not shown.

BIN
packs/profils/000005.ldb Normal file

Binary file not shown.

0
packs/profils/000114.log Normal file
View File

1
packs/profils/CURRENT Normal file
View File

@ -0,0 +1 @@
MANIFEST-000112

0
packs/profils/LOCK Normal file
View File

8
packs/profils/LOG Normal file
View File

@ -0,0 +1,8 @@
2024/02/24-17:02:14.526210 7f04234006c0 Recovering log #110
2024/02/24-17:02:14.575335 7f04234006c0 Delete type=3 #108
2024/02/24-17:02:14.575449 7f04234006c0 Delete type=0 #110
2024/02/24-17:02:44.828537 7f0421a006c0 Level-0 table #115: started
2024/02/24-17:02:44.828579 7f0421a006c0 Level-0 table #115: 0 bytes OK
2024/02/24-17:02:44.865276 7f0421a006c0 Delete type=0 #113
2024/02/24-17:02:44.865499 7f0421a006c0 Manual compaction at level-0 from '!items!26mRstKhCJoXkhu1' @ 72057594037927935 : 1 .. '!items!tFQqcxmkS3MT6ASE' @ 0 : 0; will stop at (end)
2024/02/24-17:02:44.865526 7f0421a006c0 Manual compaction at level-1 from '!items!26mRstKhCJoXkhu1' @ 72057594037927935 : 1 .. '!items!tFQqcxmkS3MT6ASE' @ 0 : 0; will stop at (end)

8
packs/profils/LOG.old Normal file
View File

@ -0,0 +1,8 @@
2024/02/24-15:27:21.104005 7f0422a006c0 Recovering log #106
2024/02/24-15:27:21.114826 7f0422a006c0 Delete type=3 #104
2024/02/24-15:27:21.114958 7f0422a006c0 Delete type=0 #106
2024/02/24-15:54:11.118395 7f0421a006c0 Level-0 table #111: started
2024/02/24-15:54:11.118462 7f0421a006c0 Level-0 table #111: 0 bytes OK
2024/02/24-15:54:11.125114 7f0421a006c0 Delete type=0 #109
2024/02/24-15:54:11.146962 7f0421a006c0 Manual compaction at level-0 from '!items!26mRstKhCJoXkhu1' @ 72057594037927935 : 1 .. '!items!tFQqcxmkS3MT6ASE' @ 0 : 0; will stop at (end)
2024/02/24-15:54:11.147039 7f0421a006c0 Manual compaction at level-1 from '!items!26mRstKhCJoXkhu1' @ 72057594037927935 : 1 .. '!items!tFQqcxmkS3MT6ASE' @ 0 : 0; will stop at (end)

Binary file not shown.

Binary file not shown.

View File

View File

@ -0,0 +1 @@
MANIFEST-000112

0
packs/protections/LOCK Normal file
View File

8
packs/protections/LOG Normal file
View File

@ -0,0 +1,8 @@
2024/02/24-17:02:14.339214 7f04234006c0 Recovering log #110
2024/02/24-17:02:14.435163 7f04234006c0 Delete type=3 #108
2024/02/24-17:02:14.435306 7f04234006c0 Delete type=0 #110
2024/02/24-17:02:44.685074 7f0421a006c0 Level-0 table #115: started
2024/02/24-17:02:44.685104 7f0421a006c0 Level-0 table #115: 0 bytes OK
2024/02/24-17:02:44.722233 7f0421a006c0 Delete type=0 #113
2024/02/24-17:02:44.722419 7f0421a006c0 Manual compaction at level-0 from '!items!16iPa2yIzB0V3pxb' @ 72057594037927935 : 1 .. '!items!yszkersMTE4p9VzP' @ 0 : 0; will stop at (end)
2024/02/24-17:02:44.722468 7f0421a006c0 Manual compaction at level-1 from '!items!16iPa2yIzB0V3pxb' @ 72057594037927935 : 1 .. '!items!yszkersMTE4p9VzP' @ 0 : 0; will stop at (end)

View File

@ -0,0 +1,8 @@
2024/02/24-15:27:21.075001 7f0422a006c0 Recovering log #106
2024/02/24-15:27:21.085800 7f0422a006c0 Delete type=3 #104
2024/02/24-15:27:21.085899 7f0422a006c0 Delete type=0 #106
2024/02/24-15:54:11.110073 7f0421a006c0 Level-0 table #111: started
2024/02/24-15:54:11.110113 7f0421a006c0 Level-0 table #111: 0 bytes OK
2024/02/24-15:54:11.117605 7f0421a006c0 Delete type=0 #109
2024/02/24-15:54:11.118195 7f0421a006c0 Manual compaction at level-0 from '!items!16iPa2yIzB0V3pxb' @ 72057594037927935 : 1 .. '!items!yszkersMTE4p9VzP' @ 0 : 0; will stop at (end)
2024/02/24-15:54:11.118259 7f0421a006c0 Manual compaction at level-1 from '!items!16iPa2yIzB0V3pxb' @ 72057594037927935 : 1 .. '!items!yszkersMTE4p9VzP' @ 0 : 0; will stop at (end)

Binary file not shown.

0
packs/tables/000114.log Normal file
View File

1
packs/tables/CURRENT Normal file
View File

@ -0,0 +1 @@
MANIFEST-000112

0
packs/tables/LOCK Normal file
View File

7
packs/tables/LOG Normal file
View File

@ -0,0 +1,7 @@
2024/02/24-17:02:14.698353 7f0422a006c0 Recovering log #110
2024/02/24-17:02:14.751354 7f0422a006c0 Delete type=3 #108
2024/02/24-17:02:14.751472 7f0422a006c0 Delete type=0 #110
2024/02/24-17:02:44.865788 7f0421a006c0 Level-0 table #115: started
2024/02/24-17:02:44.865841 7f0421a006c0 Level-0 table #115: 0 bytes OK
2024/02/24-17:02:44.903145 7f0421a006c0 Delete type=0 #113
2024/02/24-17:02:44.991021 7f0421a006c0 Manual compaction at level-0 from 'undefined' @ 72057594037927935 : 1 .. 'undefined' @ 0 : 0; will stop at (end)

7
packs/tables/LOG.old Normal file
View File

@ -0,0 +1,7 @@
2024/02/24-15:27:21.147525 7f0428e006c0 Recovering log #106
2024/02/24-15:27:21.158940 7f0428e006c0 Delete type=3 #104
2024/02/24-15:27:21.159095 7f0428e006c0 Delete type=0 #106
2024/02/24-15:54:11.147250 7f0421a006c0 Level-0 table #111: started
2024/02/24-15:54:11.147304 7f0421a006c0 Level-0 table #111: 0 bytes OK
2024/02/24-15:54:11.154258 7f0421a006c0 Delete type=0 #109
2024/02/24-15:54:11.169343 7f0421a006c0 Manual compaction at level-0 from 'undefined' @ 72057594037927935 : 1 .. 'undefined' @ 0 : 0; will stop at (end)

Binary file not shown.

Binary file not shown.

View File

View File

@ -0,0 +1 @@
MANIFEST-000112

View File

View File

@ -0,0 +1,8 @@
2024/02/24-17:02:14.645196 7f04234006c0 Recovering log #110
2024/02/24-17:02:14.695718 7f04234006c0 Delete type=3 #108
2024/02/24-17:02:14.695825 7f04234006c0 Delete type=0 #110
2024/02/24-17:02:44.722585 7f0421a006c0 Level-0 table #115: started
2024/02/24-17:02:44.722636 7f0421a006c0 Level-0 table #115: 0 bytes OK
2024/02/24-17:02:44.757179 7f0421a006c0 Delete type=0 #113
2024/02/24-17:02:44.865438 7f0421a006c0 Manual compaction at level-0 from '!items!0jRgc9a9L8i7j1Uk' @ 72057594037927935 : 1 .. '!items!yRTYaNKyXBX9wHhb' @ 0 : 0; will stop at (end)
2024/02/24-17:02:44.865505 7f0421a006c0 Manual compaction at level-1 from '!items!0jRgc9a9L8i7j1Uk' @ 72057594037927935 : 1 .. '!items!yRTYaNKyXBX9wHhb' @ 0 : 0; will stop at (end)

View File

@ -0,0 +1,8 @@
2024/02/24-15:27:21.133687 7f0422a006c0 Recovering log #106
2024/02/24-15:27:21.144258 7f0422a006c0 Delete type=3 #104
2024/02/24-15:27:21.144398 7f0422a006c0 Delete type=0 #106
2024/02/24-15:54:11.139284 7f0421a006c0 Level-0 table #111: started
2024/02/24-15:54:11.139329 7f0421a006c0 Level-0 table #111: 0 bytes OK
2024/02/24-15:54:11.146766 7f0421a006c0 Delete type=0 #109
2024/02/24-15:54:11.147022 7f0421a006c0 Manual compaction at level-0 from '!items!0jRgc9a9L8i7j1Uk' @ 72057594037927935 : 1 .. '!items!yRTYaNKyXBX9wHhb' @ 0 : 0; will stop at (end)
2024/02/24-15:54:11.147086 7f0421a006c0 Manual compaction at level-1 from '!items!0jRgc9a9L8i7j1Uk' @ 72057594037927935 : 1 .. '!items!yRTYaNKyXBX9wHhb' @ 0 : 0; will stop at (end)

Binary file not shown.

BIN
packs/talents/000005.ldb Normal file

Binary file not shown.

Some files were not shown because too many files have changed in this diff Show More