Correction imports du compendium
- les personnages conservent la valeur de token lié/non-lié - les voyageirs sont liés - les PNJs sont non-liés - les invocations sont non liées
This commit is contained in:
parent
60921cfef1
commit
b160ce78bc
@ -13,6 +13,11 @@
|
||||
- ajout de lien entre le sort et la créature
|
||||
- correction des liens vers les journaux
|
||||
- limitation aux compétences listées
|
||||
- acteur non lié par défaut
|
||||
- Correction des compendiums
|
||||
- l'import de personnages depuis un compendium respecte les acteurs liés/non-liés
|
||||
- les modèles de voyageurs sont liés par défaut
|
||||
- les modèles de personnages non joueurs sont non-liés par défaut
|
||||
|
||||
## 12.0.26 - Astrobazzarh le Haut-rêvant
|
||||
- bouton pour le don de haut-rêve en un clic
|
||||
|
@ -176,12 +176,20 @@ export class RdDBaseActor extends Actor {
|
||||
await super._preCreate(data, options, user);
|
||||
|
||||
// Configure prototype token settings
|
||||
const prototypeToken = {};
|
||||
if (this.type === "personnage") Object.assign(prototypeToken, {
|
||||
sight: { enabled: true }, actorLink: true, disposition: CONST.TOKEN_DISPOSITIONS.FRIENDLY
|
||||
});
|
||||
if (this.type === "personnage") {
|
||||
this.updateSource({
|
||||
sight: { enabled: true },
|
||||
actorLink: options.fromCompendium ? data.prototypeToken.actorLink : true,
|
||||
disposition: CONST.TOKEN_DISPOSITIONS.FRIENDLY
|
||||
})
|
||||
} else {
|
||||
const prototypeToken = {
|
||||
sight: { enabled: true },
|
||||
disposition: CONST.TOKEN_DISPOSITIONS.NEUTRAL
|
||||
}
|
||||
this.updateSource({ prototypeToken });
|
||||
}
|
||||
}
|
||||
|
||||
/* -------------------------------------------- */
|
||||
prepareData() {
|
||||
|
@ -3315,7 +3315,7 @@ prototypeToken:
|
||||
height: 1
|
||||
lockRotation: false
|
||||
rotation: 0
|
||||
actorLink: false
|
||||
actorLink: true
|
||||
disposition: 0
|
||||
displayBars: 0
|
||||
bar1:
|
||||
|
@ -3021,7 +3021,7 @@ prototypeToken:
|
||||
height: 1
|
||||
lockRotation: false
|
||||
rotation: 0
|
||||
actorLink: false
|
||||
actorLink: true
|
||||
disposition: 0
|
||||
displayBars: 0
|
||||
bar1:
|
||||
|
@ -2954,7 +2954,7 @@ prototypeToken:
|
||||
height: 1
|
||||
lockRotation: false
|
||||
rotation: 0
|
||||
actorLink: false
|
||||
actorLink: true
|
||||
disposition: 0
|
||||
displayBars: 0
|
||||
bar1:
|
||||
|
@ -3039,7 +3039,7 @@ prototypeToken:
|
||||
height: 1
|
||||
lockRotation: false
|
||||
rotation: 0
|
||||
actorLink: false
|
||||
actorLink: true
|
||||
disposition: 0
|
||||
displayBars: 0
|
||||
bar1:
|
||||
|
@ -3113,7 +3113,7 @@ prototypeToken:
|
||||
height: 1
|
||||
lockRotation: false
|
||||
rotation: 0
|
||||
actorLink: false
|
||||
actorLink: true
|
||||
disposition: 0
|
||||
displayBars: 0
|
||||
bar1:
|
||||
|
@ -2975,7 +2975,7 @@ ownership:
|
||||
prototypeToken:
|
||||
name: le Coureur des Rues
|
||||
displayName: 0
|
||||
actorLink: false
|
||||
actorLink: true
|
||||
width: 1
|
||||
height: 1
|
||||
lockRotation: false
|
||||
|
@ -3502,7 +3502,7 @@ ownership:
|
||||
prototypeToken:
|
||||
name: le Cuisinier Haut-Rêvant
|
||||
displayName: 0
|
||||
actorLink: false
|
||||
actorLink: true
|
||||
width: 1
|
||||
height: 1
|
||||
lockRotation: false
|
||||
|
@ -3262,7 +3262,7 @@ prototypeToken:
|
||||
height: 1
|
||||
lockRotation: false
|
||||
rotation: 0
|
||||
actorLink: false
|
||||
actorLink: true
|
||||
disposition: 0
|
||||
displayBars: 0
|
||||
bar1:
|
||||
|
@ -3585,7 +3585,7 @@ prototypeToken:
|
||||
height: 1
|
||||
lockRotation: false
|
||||
rotation: 0
|
||||
actorLink: false
|
||||
actorLink: true
|
||||
disposition: 0
|
||||
displayBars: 0
|
||||
bar1:
|
||||
|
@ -3752,7 +3752,7 @@ prototypeToken:
|
||||
height: 1
|
||||
lockRotation: false
|
||||
rotation: 0
|
||||
actorLink: false
|
||||
actorLink: true
|
||||
disposition: 0
|
||||
displayBars: 0
|
||||
bar1:
|
||||
|
@ -3661,7 +3661,7 @@ prototypeToken:
|
||||
height: 1
|
||||
lockRotation: false
|
||||
rotation: 0
|
||||
actorLink: false
|
||||
actorLink: true
|
||||
disposition: 0
|
||||
displayBars: 0
|
||||
bar1:
|
||||
|
@ -3025,7 +3025,7 @@ prototypeToken:
|
||||
height: 1
|
||||
lockRotation: false
|
||||
rotation: 0
|
||||
actorLink: false
|
||||
actorLink: true
|
||||
disposition: 0
|
||||
displayBars: 0
|
||||
bar1:
|
||||
|
Loading…
Reference in New Issue
Block a user