Item merkmale
This commit is contained in:
1 parent
e4eecb7b8e
commit
9964948e31
17 files changed
+148
-41
No files matched your search
@@ -113,7 +113,6 @@ export class M6ActorSheet extends api.HandlebarsApplicationMixin(sheets.ActorShe
|
||||
/** @inheritdoc */
|
||||
async _prepareContext(options) {
|
||||
const context = await super._prepareContext(options);
|
||||
await prepArmor(this.actor);
|
||||
|
||||
Object.assign(context, {
|
||||
owner: this.document.isOwner,
|
||||
@@ -138,6 +137,7 @@ export class M6ActorSheet extends api.HandlebarsApplicationMixin(sheets.ActorShe
|
||||
context.tab = context.tabs[partId];
|
||||
break;
|
||||
case "eigenschaften":
|
||||
context.armor = await prepArmor(this.actor);
|
||||
context.skills = await this._getSkills();
|
||||
context.resistenzen = await this._getResistenzen();
|
||||
context.equippedWeapons = await prepWeapons(this.actor);
|
||||
@@ -267,9 +267,7 @@ export class M6ActorSheet extends api.HandlebarsApplicationMixin(sheets.ActorShe
|
||||
}
|
||||
|
||||
static async #cycleEquip(event, target) {
|
||||
console.warn(target.dataset);
|
||||
const item = this.actor.items.get(target.dataset.itemId);
|
||||
console.warn(item);
|
||||
item.update({
|
||||
system: {
|
||||
equipped: !item.system.equipped
|
||||
@@ -641,7 +639,6 @@ export class M6ActorSheet extends api.HandlebarsApplicationMixin(sheets.ActorShe
|
||||
document.querySelectorAll('input[name="vorteil-segment"]').forEach((radio) => {
|
||||
radio.addEventListener("change", (e) => {
|
||||
vorteil = parseInt(e.target.value);
|
||||
console.log(vorteil);
|
||||
switch (vorteil) {
|
||||
case 1:
|
||||
display.placeholder = `2d20kh + ${skillValue} (Vorteil)`;
|
||||
@@ -658,7 +655,6 @@ export class M6ActorSheet extends api.HandlebarsApplicationMixin(sheets.ActorShe
|
||||
|
||||
document.querySelectorAll('input[name="spezialisierung-segment"]').forEach((radio) => {
|
||||
radio.addEventListener("change", (e) => {
|
||||
console.log(e.target.dataset.name);
|
||||
spezLevel = parseInt(e.target.value);
|
||||
spezName = e.target.dataset.name;
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user