From ddd595f71b2dc90cb7d13a88ba06a41a6097c648 Mon Sep 17 00:00:00 2001 From: Jeroen Schweitzer Date: Sat, 7 Feb 2026 22:52:05 +0100 Subject: [PATCH] fix(traits): fix groups, genetic inheritance, and icon paths - Remove group from Misting/Mistborn/potential/Feruchemy traits that lacked a level field (CK3 unsets the group and logs errors) - Add level = 1/2/3 to allomantic strength traits (proper progression) - Remove inherit_chance and both_parent_has_trait_inherit_chance from all genetic traits (CK3 1.18 considers this an error) - Set birth values (0.0-1.0 range) to control inheritance frequency - Fix doubled icon paths: remove gfx/interface/icons/traits/ prefix that CK3 auto-prepends, causing double-pathed lookups Co-Authored-By: Claude Opus 4.6 --- .../common/traits/00_allomancy_traits.txt | 86 ++++++------------- .../common/traits/01_mistborn_trait.txt | 9 +- .../common/traits/02_allomantic_strength.txt | 19 ++-- .../common/traits/03_allomantic_potential.txt | 16 ++-- .../common/traits/04_feruchemy_traits.txt | 16 ++-- .../common/traits/05_hemalurgy_traits.txt | 14 +-- 6 files changed, 54 insertions(+), 106 deletions(-) diff --git a/lords_of_ash/common/traits/00_allomancy_traits.txt b/lords_of_ash/common/traits/00_allomancy_traits.txt index 0752b50..cdee450 100644 --- a/lords_of_ash/common/traits/00_allomancy_traits.txt +++ b/lords_of_ash/common/traits/00_allomancy_traits.txt @@ -1,4 +1,4 @@ -############################################ +############################################ # Allomantic Misting Traits - Mistborn Mod # Physical and Mental Metal Mistings # Higher Metal Mistings @@ -12,10 +12,7 @@ trait_misting_coinshot = { category = fame genetic = yes - group = "allomancy_group" - inherit_chance = 15 - both_parent_has_trait_inherit_chance = 30 - birth = 0 + birth = 0.05 prowess = 3 martial = 1 @@ -23,7 +20,7 @@ trait_misting_coinshot = { ruler_designer_cost = 50 shown_in_ruler_designer = yes - icon = "gfx/interface/icons/traits/trait_misting_coinshot.dds" + icon = trait_misting_coinshot.dds } # Iron Misting - Pulls on nearby metals @@ -32,10 +29,7 @@ trait_misting_lurcher = { category = fame genetic = yes - group = "allomancy_group" - inherit_chance = 15 - both_parent_has_trait_inherit_chance = 30 - birth = 0 + birth = 0.05 prowess = 2 martial = 2 @@ -43,7 +37,7 @@ trait_misting_lurcher = { ruler_designer_cost = 50 shown_in_ruler_designer = yes - icon = "gfx/interface/icons/traits/trait_misting_lurcher.dds" + icon = trait_misting_lurcher.dds } # Pewter Misting - Enhanced physical abilities @@ -52,10 +46,7 @@ trait_misting_thug = { category = fame genetic = yes - group = "allomancy_group" - inherit_chance = 12 - both_parent_has_trait_inherit_chance = 25 - birth = 0 + birth = 0.04 prowess = 6 martial = 2 @@ -64,7 +55,7 @@ trait_misting_thug = { ruler_designer_cost = 75 shown_in_ruler_designer = yes - icon = "gfx/interface/icons/traits/trait_misting_thug.dds" + icon = trait_misting_thug.dds } # Tin Misting - Enhanced senses @@ -73,10 +64,7 @@ trait_misting_tineye = { category = fame genetic = yes - group = "allomancy_group" - inherit_chance = 15 - both_parent_has_trait_inherit_chance = 30 - birth = 0 + birth = 0.05 intrigue = 3 learning = 1 @@ -84,7 +72,7 @@ trait_misting_tineye = { ruler_designer_cost = 40 shown_in_ruler_designer = yes - icon = "gfx/interface/icons/traits/trait_misting_tineye.dds" + icon = trait_misting_tineye.dds } # === MENTAL METALS === @@ -95,10 +83,7 @@ trait_misting_soother = { category = fame genetic = yes - group = "allomancy_group" - inherit_chance = 12 - both_parent_has_trait_inherit_chance = 25 - birth = 0 + birth = 0.04 diplomacy = 4 intrigue = 2 @@ -106,7 +91,7 @@ trait_misting_soother = { ruler_designer_cost = 60 shown_in_ruler_designer = yes - icon = "gfx/interface/icons/traits/trait_misting_soother.dds" + icon = trait_misting_soother.dds } # Zinc Misting - Inflames emotions @@ -115,10 +100,7 @@ trait_misting_rioter = { category = fame genetic = yes - group = "allomancy_group" - inherit_chance = 12 - both_parent_has_trait_inherit_chance = 25 - birth = 0 + birth = 0.04 diplomacy = 3 martial = 1 @@ -127,7 +109,7 @@ trait_misting_rioter = { ruler_designer_cost = 50 shown_in_ruler_designer = yes - icon = "gfx/interface/icons/traits/trait_misting_rioter.dds" + icon = trait_misting_rioter.dds } # Copper Misting - Hides Allomancy from detection @@ -136,10 +118,7 @@ trait_misting_smoker = { category = fame genetic = yes - group = "allomancy_group" - inherit_chance = 15 - both_parent_has_trait_inherit_chance = 30 - birth = 0 + birth = 0.05 intrigue = 4 stewardship = 1 @@ -147,7 +126,7 @@ trait_misting_smoker = { ruler_designer_cost = 50 shown_in_ruler_designer = yes - icon = "gfx/interface/icons/traits/trait_misting_smoker.dds" + icon = trait_misting_smoker.dds } # Bronze Misting - Detects Allomantic pulses @@ -156,10 +135,7 @@ trait_misting_seeker = { category = fame genetic = yes - group = "allomancy_group" - inherit_chance = 15 - both_parent_has_trait_inherit_chance = 30 - birth = 0 + birth = 0.05 learning = 3 intrigue = 2 @@ -167,7 +143,7 @@ trait_misting_seeker = { ruler_designer_cost = 50 shown_in_ruler_designer = yes - icon = "gfx/interface/icons/traits/trait_misting_seeker.dds" + icon = trait_misting_seeker.dds } # === HIGHER METALS === @@ -178,17 +154,14 @@ trait_misting_augur = { category = fame genetic = yes - group = "allomancy_group" - inherit_chance = 5 - both_parent_has_trait_inherit_chance = 12 - birth = 0 + birth = 0.02 learning = 4 ruler_designer_cost = 40 shown_in_ruler_designer = yes - icon = "gfx/interface/icons/traits/trait_misting_augur.dds" + icon = trait_misting_augur.dds } # Atium Misting - Sees the future in combat @@ -197,10 +170,7 @@ trait_misting_oracle = { category = fame genetic = yes - group = "allomancy_group" - inherit_chance = 1 - both_parent_has_trait_inherit_chance = 3 - birth = 0 + birth = 0.01 prowess = 8 intrigue = 4 @@ -208,7 +178,7 @@ trait_misting_oracle = { ruler_designer_cost = 150 shown_in_ruler_designer = yes - icon = "gfx/interface/icons/traits/trait_misting_oracle.dds" + icon = trait_misting_oracle.dds } # Duralumin Misting - Enhances current Allomantic burn @@ -217,17 +187,14 @@ trait_misting_duralumin = { category = fame genetic = yes - group = "allomancy_group" - inherit_chance = 3 - both_parent_has_trait_inherit_chance = 8 - birth = 0 + birth = 0.01 learning = 2 ruler_designer_cost = 20 shown_in_ruler_designer = yes - icon = "gfx/interface/icons/traits/trait_misting_duralumin.dds" + icon = trait_misting_duralumin.dds } # Nicrosil Misting - Enhances another's Allomancy @@ -236,15 +203,12 @@ trait_misting_nicroburst = { category = fame genetic = yes - group = "allomancy_group" - inherit_chance = 3 - both_parent_has_trait_inherit_chance = 8 - birth = 0 + birth = 0.01 diplomacy = 2 ruler_designer_cost = 20 shown_in_ruler_designer = yes - icon = "gfx/interface/icons/traits/trait_misting_nicroburst.dds" + icon = trait_misting_nicroburst.dds } diff --git a/lords_of_ash/common/traits/01_mistborn_trait.txt b/lords_of_ash/common/traits/01_mistborn_trait.txt index f67e9d8..734f59e 100644 --- a/lords_of_ash/common/traits/01_mistborn_trait.txt +++ b/lords_of_ash/common/traits/01_mistborn_trait.txt @@ -1,4 +1,4 @@ -############################################ +############################################ # Mistborn Trait - The Premier Allomantic Trait # A full Mistborn can burn ALL Allomantic metals ############################################ @@ -8,10 +8,7 @@ trait_mistborn = { category = fame genetic = yes - group = "allomancy_group" - inherit_chance = 2 - both_parent_has_trait_inherit_chance = 5 - birth = 0 + birth = 0.01 prowess = 15 martial = 4 @@ -24,5 +21,5 @@ trait_mistborn = { ruler_designer_cost = 200 shown_in_ruler_designer = yes - icon = "gfx/interface/icons/traits/trait_mistborn.dds" + icon = trait_mistborn.dds } diff --git a/lords_of_ash/common/traits/02_allomantic_strength.txt b/lords_of_ash/common/traits/02_allomantic_strength.txt index 65bf04e..fdf8bd9 100644 --- a/lords_of_ash/common/traits/02_allomantic_strength.txt +++ b/lords_of_ash/common/traits/02_allomantic_strength.txt @@ -1,4 +1,4 @@ -############################################ +############################################ # Allomantic Strength Traits # These modify the potency of a character's Allomancy # Separate group from allomancy_group - can coexist with Misting/Mistborn traits @@ -11,9 +11,8 @@ trait_allomantic_weak = { genetic = yes group = "allomantic_strength_group" - inherit_chance = 20 - both_parent_has_trait_inherit_chance = 35 - birth = 0 + level = 1 + birth = 0.07 diplomacy = -1 prowess = -2 @@ -26,7 +25,7 @@ trait_allomantic_weak = { ruler_designer_cost = -10 shown_in_ruler_designer = yes - icon = "gfx/interface/icons/traits/trait_allomantic_weak.dds" + icon = trait_allomantic_weak.dds } # Naturally strong Allomantic ability @@ -36,9 +35,8 @@ trait_allomantic_strong = { genetic = yes group = "allomantic_strength_group" - inherit_chance = 10 - both_parent_has_trait_inherit_chance = 20 - birth = 0 + level = 2 + birth = 0.03 diplomacy = 1 prowess = 2 @@ -52,7 +50,7 @@ trait_allomantic_strong = { ruler_designer_cost = 30 shown_in_ruler_designer = yes - icon = "gfx/interface/icons/traits/trait_allomantic_strong.dds" + icon = trait_allomantic_strong.dds } # Allomantic Savant - dangerously powerful through overuse @@ -63,6 +61,7 @@ trait_allomantic_savant = { genetic = no group = "allomantic_strength_group" + level = 3 prowess = 4 martial = 2 @@ -78,5 +77,5 @@ trait_allomantic_savant = { ruler_designer_cost = 50 shown_in_ruler_designer = yes - icon = "gfx/interface/icons/traits/trait_allomantic_savant.dds" + icon = trait_allomantic_savant.dds } diff --git a/lords_of_ash/common/traits/03_allomantic_potential.txt b/lords_of_ash/common/traits/03_allomantic_potential.txt index 6e0f3a8..497bcae 100644 --- a/lords_of_ash/common/traits/03_allomantic_potential.txt +++ b/lords_of_ash/common/traits/03_allomantic_potential.txt @@ -1,4 +1,4 @@ -############################################ +############################################ # Allomantic Potential Traits (Hidden/Dormant) # Assigned at birth to characters with Allomantic bloodlines # Converted to active traits through the Snapping event @@ -10,17 +10,14 @@ trait_allomantic_potential = { category = health genetic = yes - group = "allomantic_potential_group" - inherit_chance = 30 - both_parent_has_trait_inherit_chance = 50 - birth = 0 + birth = 0.10 # No stat bonuses - power is dormant until Snapping # Category set to health to minimize visibility in trait list shown_in_ruler_designer = no - icon = "gfx/interface/icons/traits/trait_allomantic_potential.dds" + icon = trait_allomantic_potential.dds } # Mistborn Potential - will become a full Mistborn on Snapping @@ -29,14 +26,11 @@ trait_mistborn_potential = { category = health genetic = yes - group = "allomantic_potential_group" - inherit_chance = 3 - both_parent_has_trait_inherit_chance = 8 - birth = 0 + birth = 0.01 # No stat bonuses - power is dormant until Snapping shown_in_ruler_designer = no - icon = "gfx/interface/icons/traits/trait_mistborn_potential.dds" + icon = trait_mistborn_potential.dds } diff --git a/lords_of_ash/common/traits/04_feruchemy_traits.txt b/lords_of_ash/common/traits/04_feruchemy_traits.txt index f86e8ff..4017a66 100644 --- a/lords_of_ash/common/traits/04_feruchemy_traits.txt +++ b/lords_of_ash/common/traits/04_feruchemy_traits.txt @@ -1,4 +1,4 @@ -############################################ +############################################ # Feruchemy Traits # The metallic art of the Terris people # Stores attributes in metalminds for later use @@ -10,10 +10,7 @@ trait_feruchemist = { category = fame genetic = yes - group = "feruchemy_group" - inherit_chance = 15 - both_parent_has_trait_inherit_chance = 30 - birth = 0 + birth = 0.05 learning = 6 health = 1 @@ -24,7 +21,7 @@ trait_feruchemist = { ruler_designer_cost = 100 shown_in_ruler_designer = yes - icon = "gfx/interface/icons/traits/trait_feruchemist.dds" + icon = trait_feruchemist.dds } # Feruchemical Potential - dormant, activated through events @@ -33,14 +30,11 @@ trait_feruchemy_potential = { category = health genetic = yes - group = "feruchemy_potential_group" - inherit_chance = 25 - both_parent_has_trait_inherit_chance = 45 - birth = 0 + birth = 0.08 # No stat bonuses - power is dormant shown_in_ruler_designer = no - icon = "gfx/interface/icons/traits/trait_feruchemy_potential.dds" + icon = trait_feruchemy_potential.dds } diff --git a/lords_of_ash/common/traits/05_hemalurgy_traits.txt b/lords_of_ash/common/traits/05_hemalurgy_traits.txt index 2fd9cf4..516d1bf 100644 --- a/lords_of_ash/common/traits/05_hemalurgy_traits.txt +++ b/lords_of_ash/common/traits/05_hemalurgy_traits.txt @@ -1,4 +1,4 @@ -############################################ +############################################ # Hemalurgy Traits # The dark metallic art - steals powers through metal spikes # Non-genetic: powers are stolen, not inherited @@ -19,7 +19,7 @@ trait_hemalurgist = { ruler_designer_cost = 0 shown_in_ruler_designer = no - icon = "gfx/interface/icons/traits/trait_hemalurgist.dds" + icon = trait_hemalurgist.dds } # Stolen Coinshot power via steel spike @@ -35,7 +35,7 @@ trait_hemalurgic_steel = { ruler_designer_cost = 0 shown_in_ruler_designer = no - icon = "gfx/interface/icons/traits/trait_hemalurgic_steel.dds" + icon = trait_hemalurgic_steel.dds } # Stolen Thug power via pewter spike @@ -51,7 +51,7 @@ trait_hemalurgic_pewter = { ruler_designer_cost = 0 shown_in_ruler_designer = no - icon = "gfx/interface/icons/traits/trait_hemalurgic_pewter.dds" + icon = trait_hemalurgic_pewter.dds } # Stolen Seeker power via bronze spike @@ -67,7 +67,7 @@ trait_hemalurgic_bronze = { ruler_designer_cost = 0 shown_in_ruler_designer = no - icon = "gfx/interface/icons/traits/trait_hemalurgic_bronze.dds" + icon = trait_hemalurgic_bronze.dds } # Stolen Oracle power via atium spike - extremely rare @@ -83,7 +83,7 @@ trait_hemalurgic_atium = { ruler_designer_cost = 0 shown_in_ruler_designer = no - icon = "gfx/interface/icons/traits/trait_hemalurgic_atium.dds" + icon = trait_hemalurgic_atium.dds } # Secret knowledge of Hemalurgy - hidden prerequisite for Hemalurgy decisions @@ -98,5 +98,5 @@ trait_knows_hemalurgy = { shown_in_ruler_designer = no - icon = "gfx/interface/icons/traits/trait_knows_hemalurgy.dds" + icon = trait_knows_hemalurgy.dds }