Fix #24 : Add SAN rolls

This commit is contained in:
2025-01-07 21:38:50 +01:00
parent dfe4aa0c56
commit 2c3a92994a
11 changed files with 230 additions and 58 deletions

View File

@ -207,6 +207,11 @@ export default class CthulhuEternalProtagonistSheet extends CthulhuEternalActorS
li = $(event.currentTarget).parents(".item");
item = this.actor.items.get(li.data("item-id"));
break
case "san":
item = foundry.utils.duplicate(this.actor.system.san)
item.name = game.i18n.localize("CTHULHUETERNAL.Label.SAN")
item.targetScore = item.value
break;
default:
throw new Error(`Unknown roll type ${rollType}`)
}