dworschak / Witcher

A complete overhaul of Crusader Kings 2 turning it into the world of The Witcher
http://www.moddb.com/mods/the-witcher-kings
32 stars 13 forks source link

Sorcerers appear as children even though they're over 100 years old #139

Open ajjr1996 opened 4 years ago

ajjr1996 commented 4 years ago

Title basically explains it all.

rquinio commented 4 years ago

There's some background on the issue in #53 Will need to re-asses if a solution is possible in CK2 3.3

rquinio commented 4 years ago

The solution is to use immortal_age history command for any character that can be > 255 years old when loading the game at any given start date. Otherwise the game uses the current age (since character has an immortal trait but no immortal_age) and it overflows, so if the character had between 256 and 270 (255+15), it'll result in a child portrait.

rquinio commented 3 years ago

Re-opening as I'm seeing characters that gain sorcerer via event appear as children. This is probably because they gain the trait before the portrait change (mismatch of is_adult = 15 vs portrait threshold ?)