Repairs sheet to accomodate DataModel changes
Pull Request Check / testing (pull_request) Successful in 18s
Details
Pull Request Check / testing (pull_request) Successful in 18s
Details
parent
403557b0f8
commit
2f45f6d4d6
|
|
@ -168,14 +168,46 @@ export class PlayerCharacterDataModel extends foundry.abstract.TypeDataModel {
|
||||||
await game.actors.getName(data.name).update({system: {talente}})
|
await game.actors.getName(data.name).update({system: {talente}})
|
||||||
|
|
||||||
const startEigenschaften = {
|
const startEigenschaften = {
|
||||||
"mu": 10,
|
"mu": {
|
||||||
"kl": 10,
|
start: 10,
|
||||||
"in": 10,
|
aktuell: 10,
|
||||||
"ch": 10,
|
mod: 0
|
||||||
"ff": 10,
|
},
|
||||||
"ge": 10,
|
"kl": {
|
||||||
"ko": 10,
|
start: 10,
|
||||||
"kk": 10,
|
aktuell: 10,
|
||||||
|
mod: 0
|
||||||
|
},
|
||||||
|
"in": {
|
||||||
|
start: 10,
|
||||||
|
aktuell: 10,
|
||||||
|
mod: 0
|
||||||
|
},
|
||||||
|
"ch": {
|
||||||
|
start: 10,
|
||||||
|
aktuell: 10,
|
||||||
|
mod: 0
|
||||||
|
},
|
||||||
|
"ff": {
|
||||||
|
start: 10,
|
||||||
|
aktuell: 10,
|
||||||
|
mod: 0
|
||||||
|
},
|
||||||
|
"ge": {
|
||||||
|
start: 10,
|
||||||
|
aktuell: 10,
|
||||||
|
mod: 0
|
||||||
|
},
|
||||||
|
"ko": {
|
||||||
|
start: 10,
|
||||||
|
aktuell: 10,
|
||||||
|
mod: 0
|
||||||
|
},
|
||||||
|
"kk": {
|
||||||
|
start: 10,
|
||||||
|
aktuell: 10,
|
||||||
|
mod: 0
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
await game.actors.getName(data.name).update({system: {attribute: startEigenschaften}})
|
await game.actors.getName(data.name).update({system: {attribute: startEigenschaften}})
|
||||||
|
|
|
||||||
|
|
@ -130,7 +130,7 @@ export class CharacterSheet extends ActorSheet {
|
||||||
}
|
}
|
||||||
|
|
||||||
prepareEigenschaftRoll(actorData, name) {
|
prepareEigenschaftRoll(actorData, name) {
|
||||||
return actorData.system.attribute[name.toLowerCase()]
|
return actorData.system.attribute[name.toLowerCase()].aktuell
|
||||||
}
|
}
|
||||||
|
|
||||||
async _onTalentRoll(event) {
|
async _onTalentRoll(event) {
|
||||||
|
|
@ -225,7 +225,7 @@ export class CharacterSheet extends ActorSheet {
|
||||||
activateListeners(html) {
|
activateListeners(html) {
|
||||||
super.activateListeners(html);
|
super.activateListeners(html);
|
||||||
|
|
||||||
html.on('click', '.attribut.rollable', (evt) => {
|
html.on('click', '.attribute.rollable', (evt) => {
|
||||||
this._onAttributeRoll(evt);
|
this._onAttributeRoll(evt);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
<div class="attribute rollable" data-label="{{this.name}}" data-roll="1d20cs<=@{{this.eigenschaft}}">
|
<div class="attribute rollable" data-label="{{this.name}}" data-roll="1d20cs<=@{{this.eigenschaft}}.aktuell">
|
||||||
<div class="die">
|
<div class="die">
|
||||||
{{> 'systems/DSA_4-1/templates/ui/partial-die.hbs' }}
|
{{> 'systems/DSA_4-1/templates/ui/partial-die.hbs' }}
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue