Ajout de la commande /voyage et grosse MAJK de la commande /auberge
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
let choice1 = [
|
||||
{
|
||||
type : "skill",
|
||||
name : "Melee (Basic)",
|
||||
name : "Mêlée (Base)",
|
||||
diff : {
|
||||
system : {
|
||||
advances : {
|
||||
@@ -14,7 +14,7 @@ let choice1 = [
|
||||
let choice2 = [
|
||||
{
|
||||
type : "skill",
|
||||
name : "Melee (Polearm)",
|
||||
name : "Mêlée (arme d'hast)",
|
||||
diff : {
|
||||
system : {
|
||||
advances : {
|
||||
@@ -25,38 +25,40 @@ let choice2 = [
|
||||
}
|
||||
]
|
||||
|
||||
let choice = await Dialog.wait({
|
||||
title : "Choice",
|
||||
content :
|
||||
let choice = await foundry.applications.api.DialogV2.wait({
|
||||
window : {
|
||||
title : "Choix"
|
||||
},
|
||||
content :
|
||||
`<p>
|
||||
Select your choice
|
||||
Sélectionnez votre choix
|
||||
</p>
|
||||
<ol>
|
||||
<li>Melee (Basic)</li>
|
||||
<li>Melee (Polearm)</li>
|
||||
</ol>
|
||||
<li>Mêlée (Base)</li>
|
||||
<li>Mêlée (arme d'hast)</li>
|
||||
</ol>
|
||||
`,
|
||||
buttons : {
|
||||
1 : {
|
||||
label : "Basic",
|
||||
buttons : [
|
||||
{
|
||||
label : "Base",
|
||||
callback : () => {
|
||||
return choice1;
|
||||
}
|
||||
},
|
||||
2 : {
|
||||
label : "Polearm",
|
||||
{
|
||||
label : "Arme d'hast",
|
||||
callback : () => {
|
||||
return choice2;
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
})
|
||||
|
||||
let updateObj = this.actor.toObject();
|
||||
let items = []
|
||||
for (let c of choice)
|
||||
{
|
||||
let existing
|
||||
let existing
|
||||
if (c.type == "skill")
|
||||
{
|
||||
existing = updateObj.items.find(i => i.name == c.name && i.type == c.type)
|
||||
|
||||
Reference in New Issue
Block a user