From 3ff3884795eb0c19ff188451578b4924cd5ed5ff Mon Sep 17 00:00:00 2001 From: Chris Schmalz Date: Tue, 26 Sep 2023 23:39:20 -0700 Subject: [PATCH] character sheet stress click new code --- module/actor/actor-sheet.js | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/module/actor/actor-sheet.js b/module/actor/actor-sheet.js index a6567bb..f9dfcd4 100644 --- a/module/actor/actor-sheet.js +++ b/module/actor/actor-sheet.js @@ -358,28 +358,28 @@ export class MothershipActorSheet extends ActorSheet { }); // Calm - Panic Check - html.find('.calm-roll').click(ev => { + html.find('.stress-roll').click(ev => { //check if 1e if (game.settings.get("mosh", "firstEdition")) { //check if android + android panic enabled if (game.settings.get("mosh", "androidPanic") && this.actor.system.class.value.toLowerCase() === 'android') { //call rollTable for: 1e Android Panic Check Using Calm - this.actor.rollTable(`GCtYeCCQVQJ5M6SE`,null,`high`,false,false,'system.other.calm.value','>'); + this.actor.rollTable(`GCtYeCCQVQJ5M6SE`,null,`high`,false,false,'system.other.stress.value','>'); //this is not android + android panic enabled } else { //call rollTable for: 1e Regular Panic Check Using Calm - this.actor.rollTable(`MOYI6Ntj5OVFYk06`,null,`high`,false,false,'system.other.calm.value','>'); + this.actor.rollTable(`MOYI6Ntj5OVFYk06`,null,`high`,false,false,'system.other.stress.value','>'); } //this is 0e } else { //check if android + android panic enabled if (game.settings.get("mosh", "androidPanic") && this.actor.system.class.value.toLowerCase() === 'android') { //call rollTable for: 0e Android Panic Check Using Calm - this.actor.rollTable(`VW6HQ29T7zClNIZ6`,null,`high`,false,false,'system.other.calm.value','>'); + this.actor.rollTable(`VW6HQ29T7zClNIZ6`,null,`high`,false,false,'system.other.stress.value','>'); //this is not android + android panic enabled } else { //call rollTable for: 0e Regular Panic Check Using Calm - this.actor.rollTable(`kqKpQAXyLTEEyz6Z`,null,`high`,false,false,'system.other.calm.value','>'); + this.actor.rollTable(`kqKpQAXyLTEEyz6Z`,null,`high`,false,false,'system.other.stress.value','>'); } } }); @@ -402,11 +402,11 @@ export class MothershipActorSheet extends ActorSheet { //check if android + android panic enabled if (game.settings.get("mosh", "androidPanic") && this.actor.system.class.value.toLowerCase() === 'android') { //call rollTable for: 0e Android Panic Check Using Stress-0e - this.actor.rollTable(`egJ11m2mJM3HBd6d`,null,`high`,false,false,'system.other.stress_0e.value','>'); + this.actor.rollTable(`egJ11m2mJM3HBd6d`,null,`high`,false,false,'system.other.stress.value','>'); //this is not android + android panic enabled } else { //call rollTable for: 0e Regular Panic Check Using Stress-0e - this.actor.rollTable(`1vCm4ElRPotQXgNB`,null,`high`,false,false,'system.other.stress_0e.value','>'); + this.actor.rollTable(`1vCm4ElRPotQXgNB`,null,`high`,false,false,'system.other.stress.value','>'); } } });