Fix some stuff
This commit is contained in:
@@ -88,7 +88,8 @@ export class M5Roll {
|
||||
});
|
||||
|
||||
this.data.res.label = this.label;
|
||||
if ((game as Game).settings.get("midgard5", "automatedPP")) {
|
||||
console.log(this.data);
|
||||
if ((game as Game).settings.get("midgard5", "automatedPP") && this.data.iType !== null) {
|
||||
if ((this.data.i.type === "language" || this.data.i.type === "general") && this.data.rolls[0].dice[0] >= 16) {
|
||||
this.actor.items.get(this.id).update({
|
||||
system: {
|
||||
@@ -239,11 +240,11 @@ export class M5Roll {
|
||||
return new M5Roll(rollData, actor, (game as Game).i18n.localize("midgard5.brawl"));
|
||||
}
|
||||
|
||||
static deprivationCold (actor: any) {
|
||||
static deprivationCold(actor: any) {
|
||||
const rollData = actor.getRollData() as M5RollData;
|
||||
|
||||
rollData.rolls["0"] = {
|
||||
formula: "@c.calc.stats.deprivationCold -1D100",
|
||||
formula: "@c.calc.stats.deprivationCold.value -1D100",
|
||||
enabled: true,
|
||||
label: (game as Game).i18n.localize("midgard5.deprivationCold"),
|
||||
result: "",
|
||||
@@ -260,7 +261,7 @@ export class M5Roll {
|
||||
const rollData = actor.getRollData() as M5RollData;
|
||||
|
||||
rollData.rolls["0"] = {
|
||||
formula: "@c.calc.stats.deprivationHeat -1D100",
|
||||
formula: "@c.calc.stats.deprivationHeat.value -1D100",
|
||||
enabled: true,
|
||||
label: (game as Game).i18n.localize("midgard5.deprivationHeat"),
|
||||
result: "",
|
||||
@@ -277,7 +278,7 @@ export class M5Roll {
|
||||
const rollData = actor.getRollData() as M5RollData;
|
||||
|
||||
rollData.rolls["0"] = {
|
||||
formula: "@c.calc.stats.deprivationFood -1D100",
|
||||
formula: "@c.calc.stats.deprivationFood.value -1D100",
|
||||
enabled: true,
|
||||
label: (game as Game).i18n.localize("midgard5.deprivationFood"),
|
||||
result: "",
|
||||
|
||||
Reference in New Issue
Block a user