#110 - Update chance actuelle et mise à jour archetypes
BIN
icons/compcreature-beak.webp
Normal file
After Width: | Height: | Size: 2.6 KiB |
BIN
icons/compcreature-brasbouche.webp
Normal file
After Width: | Height: | Size: 2.5 KiB |
BIN
icons/compcreature-contre.webp
Normal file
After Width: | Height: | Size: 2.8 KiB |
BIN
icons/compcreature-corne.webp
Normal file
After Width: | Height: | Size: 2.4 KiB |
BIN
icons/compcreature-coup_de_pied.webp
Normal file
After Width: | Height: | Size: 14 KiB |
BIN
icons/compcreature-crete.webp
Normal file
After Width: | Height: | Size: 3.0 KiB |
BIN
icons/compcreature-griffes.webp
Normal file
After Width: | Height: | Size: 2.4 KiB |
BIN
icons/compcreature-mandibules.webp
Normal file
After Width: | Height: | Size: 2.1 KiB |
BIN
icons/compcreature-morsure.webp
Normal file
After Width: | Height: | Size: 2.4 KiB |
BIN
icons/compcreature-pierrelancee.webp
Normal file
After Width: | Height: | Size: 3.0 KiB |
BIN
icons/compcreature-pierretenue.webp
Normal file
After Width: | Height: | Size: 2.7 KiB |
BIN
icons/compcreature-pietinement.webp
Normal file
After Width: | Height: | Size: 16 KiB |
BIN
icons/compcreature-pinces.webp
Normal file
After Width: | Height: | Size: 2.9 KiB |
BIN
icons/compcreature-serres.webp
Normal file
After Width: | Height: | Size: 2.8 KiB |
BIN
icons/compcreature-tronconneuse.webp
Normal file
After Width: | Height: | Size: 2.9 KiB |
BIN
icons/compcreature-vol.webp
Normal file
After Width: | Height: | Size: 2.4 KiB |
BIN
icons/compcreature_empoignade.webp
Normal file
After Width: | Height: | Size: 5.0 KiB |
BIN
icons/competence_acrobatie.webp
Normal file
After Width: | Height: | Size: 2.6 KiB |
BIN
icons/competence_alchimie.webp
Normal file
After Width: | Height: | Size: 2.5 KiB |
BIN
icons/competence_arbalete.webp
Normal file
After Width: | Height: | Size: 2.7 KiB |
BIN
icons/competence_arc.webp
Normal file
After Width: | Height: | Size: 2.4 KiB |
BIN
icons/competence_armes_hast.webp
Normal file
After Width: | Height: | Size: 2.5 KiB |
BIN
icons/competence_astrologie.webp
Normal file
After Width: | Height: | Size: 2.7 KiB |
BIN
icons/competence_botanique.webp
Normal file
After Width: | Height: | Size: 3.0 KiB |
BIN
icons/competence_bouclier.webp
Normal file
After Width: | Height: | Size: 2.2 KiB |
BIN
icons/competence_bricolage.webp
Normal file
After Width: | Height: | Size: 2.6 KiB |
BIN
icons/competence_chant.webp
Normal file
After Width: | Height: | Size: 2.4 KiB |
BIN
icons/competence_charpenterie.webp
Normal file
After Width: | Height: | Size: 2.2 KiB |
BIN
icons/competence_chirurgie.webp
Normal file
After Width: | Height: | Size: 2.2 KiB |
BIN
icons/competence_comedie.webp
Normal file
After Width: | Height: | Size: 2.1 KiB |
BIN
icons/competence_corps_a_corps.webp
Normal file
After Width: | Height: | Size: 2.4 KiB |
BIN
icons/competence_course.webp
Normal file
After Width: | Height: | Size: 2.4 KiB |
BIN
icons/competence_cuisine.webp
Normal file
After Width: | Height: | Size: 2.6 KiB |
BIN
icons/competence_dague.webp
Normal file
After Width: | Height: | Size: 5.1 KiB |
BIN
icons/competence_dague_jet.webp
Normal file
After Width: | Height: | Size: 2.3 KiB |
BIN
icons/competence_danse.webp
Normal file
After Width: | Height: | Size: 2.5 KiB |
BIN
icons/competence_defaut.webp
Normal file
After Width: | Height: | Size: 2.4 KiB |
BIN
icons/competence_dessin.webp
Normal file
After Width: | Height: | Size: 2.7 KiB |
BIN
icons/competence_discretion.webp
Normal file
After Width: | Height: | Size: 2.3 KiB |
BIN
icons/competence_ecriture.webp
Normal file
After Width: | Height: | Size: 2.3 KiB |
BIN
icons/competence_epee_1_main.webp
Normal file
After Width: | Height: | Size: 2.1 KiB |
BIN
icons/competence_epee_2_mains.webp
Normal file
After Width: | Height: | Size: 2.1 KiB |
BIN
icons/competence_equitation.webp
Normal file
After Width: | Height: | Size: 2.5 KiB |
BIN
icons/competence_escalade.webp
Normal file
After Width: | Height: | Size: 2.5 KiB |
BIN
icons/competence_esquive.webp
Normal file
After Width: | Height: | Size: 2.1 KiB |
BIN
icons/competence_fleau.webp
Normal file
After Width: | Height: | Size: 2.5 KiB |
BIN
icons/competence_fouet.webp
Normal file
After Width: | Height: | Size: 2.5 KiB |
BIN
icons/competence_fronde.webp
Normal file
After Width: | Height: | Size: 2.4 KiB |
BIN
icons/competence_grouine.webp
Normal file
After Width: | Height: | Size: 4.6 KiB |
BIN
icons/competence_hache_a_1_main.webp
Normal file
After Width: | Height: | Size: 2.4 KiB |
BIN
icons/competence_hache_a_2_mains.webp
Normal file
After Width: | Height: | Size: 2.5 KiB |
BIN
icons/competence_hypnos.webp
Normal file
After Width: | Height: | Size: 2.3 KiB |
BIN
icons/competence_javelot.webp
Normal file
After Width: | Height: | Size: 2.2 KiB |
BIN
icons/competence_jeu.webp
Normal file
After Width: | Height: | Size: 2.7 KiB |
BIN
icons/competence_jonglerie.webp
Normal file
After Width: | Height: | Size: 2.4 KiB |
BIN
icons/competence_lance.webp
Normal file
After Width: | Height: | Size: 2.2 KiB |
BIN
icons/competence_legendes.webp
Normal file
After Width: | Height: | Size: 2.7 KiB |
BIN
icons/competence_maconnerie.webp
Normal file
After Width: | Height: | Size: 2.7 KiB |
BIN
icons/competence_maroquinerie.webp
Normal file
After Width: | Height: | Size: 2.4 KiB |
BIN
icons/competence_masse_1_main.webp
Normal file
After Width: | Height: | Size: 2.3 KiB |
BIN
icons/competence_masse_2_mains.webp
Normal file
After Width: | Height: | Size: 2.4 KiB |
BIN
icons/competence_medecine.webp
Normal file
After Width: | Height: | Size: 2.4 KiB |
BIN
icons/competence_metallurgie.webp
Normal file
After Width: | Height: | Size: 2.1 KiB |
BIN
icons/competence_musique.webp
Normal file
After Width: | Height: | Size: 2.6 KiB |
BIN
icons/competence_narcos.webp
Normal file
After Width: | Height: | Size: 3.3 KiB |
BIN
icons/competence_natation.webp
Normal file
After Width: | Height: | Size: 2.6 KiB |
BIN
icons/competence_navigation.webp
Normal file
After Width: | Height: | Size: 2.6 KiB |
BIN
icons/competence_oniros.webp
Normal file
After Width: | Height: | Size: 2.5 KiB |
BIN
icons/competence_orfevrerie.webp
Normal file
After Width: | Height: | Size: 2.8 KiB |
BIN
icons/competence_pickpocket.webp
Normal file
After Width: | Height: | Size: 2.7 KiB |
BIN
icons/competence_saut.webp
Normal file
After Width: | Height: | Size: 2.3 KiB |
BIN
icons/competence_seduction.webp
Normal file
After Width: | Height: | Size: 2.3 KiB |
BIN
icons/competence_serrurerie.webp
Normal file
After Width: | Height: | Size: 2.7 KiB |
BIN
icons/competence_survie_cite.webp
Normal file
After Width: | Height: | Size: 2.7 KiB |
BIN
icons/competence_survie_desert.webp
Normal file
After Width: | Height: | Size: 2.7 KiB |
BIN
icons/competence_survie_exterieur.webp
Normal file
After Width: | Height: | Size: 2.9 KiB |
BIN
icons/competence_survie_foret.webp
Normal file
After Width: | Height: | Size: 3.0 KiB |
BIN
icons/competence_survie_glace.webp
Normal file
After Width: | Height: | Size: 2.9 KiB |
BIN
icons/competence_survie_marais.webp
Normal file
After Width: | Height: | Size: 2.5 KiB |
BIN
icons/competence_survie_montagne.webp
Normal file
After Width: | Height: | Size: 2.9 KiB |
BIN
icons/competence_survie_sous_sol.webp
Normal file
After Width: | Height: | Size: 2.4 KiB |
BIN
icons/competence_thanatos.webp
Normal file
After Width: | Height: | Size: 2.2 KiB |
BIN
icons/competence_travestissement.webp
Normal file
After Width: | Height: | Size: 2.8 KiB |
BIN
icons/competence_vigilance.webp
Normal file
After Width: | Height: | Size: 3.2 KiB |
BIN
icons/competence_zoologie.webp
Normal file
After Width: | Height: | Size: 2.5 KiB |
BIN
icons/comptence-commerce.webp
Normal file
After Width: | Height: | Size: 5.0 KiB |
@ -557,6 +557,11 @@ export class RdDActor extends Actor {
|
||||
this.setPointsDeSeuil(caracValue);
|
||||
}
|
||||
}
|
||||
if (caracName == "chance") {
|
||||
if (caracValue > Misc.toInt(this.data.data.compteurs.chance.value)) {
|
||||
this.setPointsDeChance(caracValue);
|
||||
}
|
||||
}
|
||||
await this.update({ [caracpath]: caracValue });
|
||||
}
|
||||
|
||||
@ -1040,6 +1045,13 @@ export class RdDActor extends Actor {
|
||||
await this.update({ "data.reve.seuil": seuil });
|
||||
}
|
||||
|
||||
/* -------------------------------------------- */
|
||||
async setPointsDeChance(value) {
|
||||
let chance = duplicate(this.data.data.compteurs.chance);
|
||||
chance.value = value;
|
||||
await this.update({ "data.compteurs.chance": chance });
|
||||
}
|
||||
|
||||
/* -------------------------------------------- */
|
||||
getSonne() {
|
||||
return !this.isEntiteCauchemar() && (this.data.data.sante.sonne?.value ?? false);
|
||||
@ -2509,6 +2521,7 @@ export class RdDActor extends Actor {
|
||||
|
||||
/* -------------------------------------------- */
|
||||
buildVehiculesList() {
|
||||
if ( !this.data.data.subacteurs) return [];
|
||||
let myArray = [];
|
||||
for (let vehiculeLink of this.data.data.subacteurs.vehicules) {
|
||||
let vehicule = game.actors.get( vehiculeLink.id );
|
||||
@ -2521,6 +2534,7 @@ export class RdDActor extends Actor {
|
||||
|
||||
/* -------------------------------------------- */
|
||||
buildSuivantsList() {
|
||||
if ( !this.data.data.subacteurs) return [];
|
||||
let myArray = [];
|
||||
for (let suivantLink of this.data.data.subacteurs.suivants) {
|
||||
let suivant = game.actors.get( suivantLink.id );
|
||||
@ -2531,6 +2545,7 @@ export class RdDActor extends Actor {
|
||||
|
||||
/* -------------------------------------------- */
|
||||
buildMonturesList() {
|
||||
if ( !this.data.data.subacteurs) return [];
|
||||
let myArray = [];
|
||||
for (let montureLink of this.data.data.subacteurs.montures) {
|
||||
let monture = game.actors.get( montureLink.id );
|
||||
|