Ame/Ame max
This commit is contained in:
@@ -44,7 +44,6 @@ export class MournbladeCYD2ActorSheet extends foundry.appv1.sheets.ActorSheet {
|
||||
protections: foundry.utils.duplicate(this.actor.getArmors()),
|
||||
historiques: foundry.utils.duplicate(this.actor.getHistoriques() || []),
|
||||
talents: foundry.utils.duplicate(this.actor.getTalents() || []),
|
||||
mutations: foundry.utils.duplicate(this.actor.getMutations() || []),
|
||||
dons: foundry.utils.duplicate(this.actor.getDons() || []),
|
||||
pactes: foundry.utils.duplicate(this.actor.getPactes() || []),
|
||||
tendances: foundry.utils.duplicate(this.actor.getTendances() || []),
|
||||
@@ -56,7 +55,6 @@ export class MournbladeCYD2ActorSheet extends foundry.appv1.sheets.ActorSheet {
|
||||
profils: foundry.utils.duplicate(this.actor.getProfils() || []),
|
||||
combat: this.actor.getCombatValues(),
|
||||
equipements: foundry.utils.duplicate(this.actor.getEquipments()),
|
||||
artefacts: foundry.utils.duplicate(this.actor.getArtefacts()),
|
||||
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(),
|
||||
|
||||
@@ -118,9 +118,6 @@ export class MournbladeCYD2Actor extends Actor {
|
||||
getEquipments() {
|
||||
return this.getItemSorted(["equipement"])
|
||||
}
|
||||
getArtefacts() {
|
||||
return this.getItemSorted(["artefact"])
|
||||
}
|
||||
getArmors() {
|
||||
return this.getItemSorted(["protection"])
|
||||
}
|
||||
@@ -136,12 +133,6 @@ export class MournbladeCYD2Actor extends Actor {
|
||||
getRessources() {
|
||||
return this.getItemSorted(["ressource"])
|
||||
}
|
||||
getContacts() {
|
||||
return this.getItemSorted(["contact"])
|
||||
}
|
||||
getMutations() {
|
||||
return this.getItemSorted(["mutation"])
|
||||
}
|
||||
getDons() {
|
||||
return this.getItemSorted(["don"])
|
||||
}
|
||||
|
||||
@@ -90,35 +90,6 @@ export const MOURNBLADECYD2_CONFIG = {
|
||||
{ key: "jet", label: "Arme de Jet" },
|
||||
{ key: "tir", label: "Arme de Tir" }
|
||||
],
|
||||
optionsArtefactBranche: [
|
||||
{ key: "alchimie", label: "Alchimie" },
|
||||
{ key: "biologie", label: "Biologie" },
|
||||
{ key: "electricite", label: "Electricité" },
|
||||
{ key: "mecanique", label: "Mécanique" },
|
||||
{ key: "scienceesprit", label: "Science de l'Esprit" }
|
||||
],
|
||||
optionsArtefactBranche2: [
|
||||
{ key: "none", label: "Aucune" },
|
||||
{ key: "alchimie", label: "Alchimie" },
|
||||
{ key: "biologie", label: "Biologie" },
|
||||
{ key: "electricite", label: "Electricité" },
|
||||
{ key: "mecanique", label: "Mécanique" },
|
||||
{ key: "scienceesprit", label: "Science de l'Esprit" }
|
||||
],
|
||||
optionsTypeContact: [
|
||||
{ key: "contact", label: "Contact" },
|
||||
{ key: "allie", label: "Allié" }
|
||||
],
|
||||
optionsTypeMutation: [
|
||||
{ key: "tares_communes", label: "Tares et Malformations communes" },
|
||||
{ key: "evolutions_communes", label: "Evolutions communes" },
|
||||
{ key: "tares_rares", label: "Tares et Malformations rares" },
|
||||
{ key: "evolutions_rares", label: "Evolutions rares" },
|
||||
{ key: "tares_majeures", label: "Tares et Maformations majeures" },
|
||||
{ key: "evolutions_majeures", label: "Evolutions majeures" },
|
||||
{ key: "tares_except", label: "Tares et Malformations exceptionnelles" },
|
||||
{ key: "evolutions_except", label: "Evolutions exceptionnelles" }
|
||||
],
|
||||
optionsTypeTalent: [
|
||||
{ key: "personnage", label: "Personnage" },
|
||||
{ key: "traitespece", label: "Trait d'espèce" }
|
||||
|
||||
@@ -62,14 +62,14 @@ export class MournbladeCYD2ItemSheet extends foundry.appv1.sheets.ItemSheet {
|
||||
limited: this.object.limited,
|
||||
options: this.options,
|
||||
owner: this.document.isOwner,
|
||||
description: await TextEditor.enrichHTML(this.object.system.description, {async: true}),
|
||||
description: await foundry.applications.ux.TextEditor.implementation.enrichHTML(this.object.system.description, {async: true}),
|
||||
mr: (this.object.type == 'specialisation'),
|
||||
isGM: game.user.isGM,
|
||||
config: game.system.mournbladecyd2.config
|
||||
}
|
||||
|
||||
if ( objectData.type == "don") {
|
||||
formData.sacrifice = await TextEditor.enrichHTML(this.object.system.sacrifice, {async: true})
|
||||
formData.sacrifice = await foundry.applications.ux.TextEditor.implementation.enrichHTML(this.object.system.sacrifice, {async: true})
|
||||
}
|
||||
//this.options.editable = !(this.object.origin == "embeddedItem");
|
||||
console.log("ITEM DATA", formData, this);
|
||||
|
||||
@@ -1,19 +1,22 @@
|
||||
import { MournbladeCYD2Utility } from "./mournblade-cyd2-utility.js";
|
||||
|
||||
export const defaultItemImg = {
|
||||
competence: "systems/fvtt-mournblade-cyd2/assets/icons/competence.webp",
|
||||
arme: "systems/fvtt-mournblade-cyd2/assets/icons/melee.webp",
|
||||
equipement: "systems/fvtt-mournblade-cyd2/assets/icons/equipement.webp",
|
||||
monnaie: "systems/fvtt-mournblade-cyd2/assets/icons/monnaie.webp",
|
||||
predilection: "systems/fvtt-mournblade-cyd2/assets/icons/predilection.webp",
|
||||
protection: "systems/fvtt-mournblade-cyd2/assets/icons/protection.webp",
|
||||
talent: "systems/fvtt-mournblade-cyd2/assets/icons/talent.webp",
|
||||
historique: "systems/fvtt-mournblade-cyd2/assets/icons/historique.webp",
|
||||
profil: "systems/fvtt-mournblade-cyd2/assets/icons/profil.webp",
|
||||
artefact: "systems/fvtt-mournblade-cyd2/assets/icons/artefact.webp",
|
||||
contact: "systems/fvtt-mournblade-cyd2/assets/icons/contacts.webp",
|
||||
ressource: "systems/fvtt-mournblade-cyd2/assets/icons/ressources.webp",
|
||||
mutation: "systems/fvtt-mournblade-cyd2/assets/icons/mutation.webp",
|
||||
competence: "systems/fvtt-mournblade-cyd2/assets/icons/competence.webp",
|
||||
arme: "systems/fvtt-mournblade-cyd2/assets/icons/melee.webp",
|
||||
equipement: "systems/fvtt-mournblade-cyd2/assets/icons/equipement.webp",
|
||||
monnaie: "systems/fvtt-mournblade-cyd2/assets/icons/monnaie.webp",
|
||||
predilection: "systems/fvtt-mournblade-cyd2/assets/icons/predilection.webp",
|
||||
protection: "systems/fvtt-mournblade-cyd2/assets/icons/protection.webp",
|
||||
talent: "systems/fvtt-mournblade-cyd2/assets/icons/talent.webp",
|
||||
historique: "systems/fvtt-mournblade-cyd2/assets/icons/historique.webp",
|
||||
profil: "systems/fvtt-mournblade-cyd2/assets/icons/profil.webp",
|
||||
ressource: "systems/fvtt-mournblade-cyd2/assets/icons/ressources.webp",
|
||||
traitchaotique: "systems/fvtt-mournblade-cyd2/assets/icons/traitchaotique.webp",
|
||||
traitespece: "systems/fvtt-mournblade-cyd2/assets/icons/traitespece.webp",
|
||||
don: "systems/fvtt-mournblade-cyd2/assets/icons/don.webp",
|
||||
pacte: "systems/fvtt-mournblade-cyd2/assets/icons/pacte.webp",
|
||||
rune: "systems/fvtt-mournblade-cyd2/assets/icons/rune.webp",
|
||||
tendance: "systems/fvtt-mournblade-cyd2/assets/icons/tendance.webp",
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -75,8 +75,8 @@ function welcomeMessage() {
|
||||
user: game.user.id,
|
||||
whisper: [game.user.id],
|
||||
content: `<div id="welcome-message-MournbladeCYD2"><span class="rdd-roll-part">
|
||||
<strong>Bienvenue dans MournbladeCYD2 et le troisième Millénaire !</strong>
|
||||
<p>Les livres de Mournblade sont nécessaires pour jouer : https://www.titam-france.fr</p>
|
||||
<strong>Bienvenue dans Mournblade CYD 2.0 !</strong>
|
||||
<p>Les livres de Mournblade sont nécessaires pour jouer : https://www.titam-france.fr ainsi que le supplément de conversion de règle pour le CYD 2.0</p>
|
||||
<p>Mournblade est un jeu de rôle publié par Titam France/Sombres projets, tous les droits leur appartiennent.</p>
|
||||
<p>Système développé par LeRatierBretonnien, support sur le <a href="https://discord.gg/pPSDNJk">Discord FR de Foundry</a>.</p>
|
||||
` });
|
||||
|
||||
@@ -56,13 +56,7 @@ export class MournbladeCYD2Utility {
|
||||
type: String,
|
||||
choices: { // If choices are defined, the resulting setting will be a select menu
|
||||
"mournblade_logo_chaos": "Mournblade (Chaos)",
|
||||
"mournblade_logo_texte": "Mournblade (Texte)",
|
||||
"mournblade-cyd2_logo": "MournbladeCYD2 (Texte)",
|
||||
"logo_pause_resistance": "Résistance",
|
||||
"logo_pause_mournblade-cyd2_stone": "MournbladeCYD2 (Pierre)",
|
||||
"logo_pause_mournblade-cyd2_violet": "MournbladeCYD2 (Violet)",
|
||||
"logo_pause_mournblade-cyd2_beige": "MournbladeCYD2 (Beige)",
|
||||
"logo_pause_mournblade-cyd2_rouge": "MournbladeCYD2 (Rouge)"
|
||||
"mournblade_logo_texte": "Mournblade (Texte)"
|
||||
},
|
||||
})
|
||||
|
||||
@@ -118,7 +112,6 @@ export class MournbladeCYD2Utility {
|
||||
|
||||
game.system.mournbladecyd2.config.listeNiveauSkill = this.createDirectOptionList(0, 10)
|
||||
game.system.mournbladecyd2.config.listeNiveauCreature = this.createDirectOptionList(0, 35)
|
||||
game.system.mournbladecyd2.config.listeNiveauContact = this.createDirectOptionList(1, 3)
|
||||
}
|
||||
|
||||
/* -------------------------------------------- */
|
||||
|
||||
Reference in New Issue
Block a user