make player tokens linked by default

This commit is contained in:
Sven Balzer 2025-02-12 00:03:59 +01:00
parent 66e7e93bae
commit abb0405035

View File

@ -233,6 +233,8 @@ class DSA41_CharacterDocument extends Actor {
const actor = await super.create(data, operation); const actor = await super.create(data, operation);
if (data.type === "Player") { if (data.type === "Player") {
actor.prototypeToken.update({ actorLink: true });
const talente_compendium = game.packs.get("dsa-4th-edition.talente"); const talente_compendium = game.packs.get("dsa-4th-edition.talente");
const talente = await talente_compendium.getDocuments({ name__in: [ const talente = await talente_compendium.getDocuments({ name__in: [
// Basis Körperliche Talente // Basis Körperliche Talente