character sheet stress click new code

This commit is contained in:
Chris Schmalz
2023-09-26 23:39:20 -07:00
parent 3591139f39
commit 3ff3884795
+7 -7
View File
@@ -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','>');
}
}
});