Add roll windows from actor sheet

This commit is contained in:
2026-03-15 23:20:32 +01:00
parent 82fddb0cb3
commit 49347370c7
57 changed files with 6372 additions and 184 deletions

View File

@@ -108,6 +108,20 @@ export const WEAPON_TRAITS = {
versatile: "OATHHAMMER.WeaponTrait.Versatile"
}
// Special Properties that can be added to weapons via crafting (p.98)
export const WEAPON_SPECIAL_PROPERTIES = {
accurate: "OATHHAMMER.WeaponProperty.Accurate",
"adv-mechanism":"OATHHAMMER.WeaponProperty.AdvMechanism",
"armor-bane": "OATHHAMMER.WeaponProperty.ArmorBane",
balanced: "OATHHAMMER.WeaponProperty.Balanced",
"heavy-draw": "OATHHAMMER.WeaponProperty.HeavyDraw",
"master-crafted":"OATHHAMMER.WeaponProperty.MasterCrafted",
ornate: "OATHHAMMER.WeaponProperty.Ornate",
refined: "OATHHAMMER.WeaponProperty.Refined",
"rune-etched": "OATHHAMMER.WeaponProperty.RuneEtched",
tempered: "OATHHAMMER.WeaponProperty.Tempered",
}
export const CURRENCY_CHOICES = {
gp: "OATHHAMMER.Currency.GP",
sp: "OATHHAMMER.Currency.SP",
@@ -172,6 +186,16 @@ export const RARITY_CHOICES = {
legendary: "OATHHAMMER.Rarity.Legendary"
}
// Rarity key → Difficulty Value for Fortune rolls
export const RARITY_DV = {
always: 0,
common: 1,
uncommon: 2,
rare: 3,
"very-rare": 4,
legendary: 5
}
// Two types of trait per the rulebook terminology
export const TRAIT_TYPE_CHOICES = {
"special-trait": "OATHHAMMER.TraitType.SpecialTrait",
@@ -350,6 +374,7 @@ export const SYSTEM = {
RUNE_TYPE_CHOICES,
WEAPON_PROFICIENCY_GROUPS,
WEAPON_TRAITS,
WEAPON_SPECIAL_PROPERTIES,
ARMOR_TYPE_CHOICES,
ARMOR_TRAITS,
CURRENCY_CHOICES,
@@ -358,6 +383,7 @@ export const SYSTEM = {
MAGIC_ITEM_TYPE_CHOICES,
MAGIC_QUALITY_CHOICES,
RARITY_CHOICES,
RARITY_DV,
TRAIT_TYPE_CHOICES,
TRAIT_USAGE_PERIOD,
BUILDING_SKILL_CHOICES,