Skip to content

Commit

Permalink
Workaround immortal portrait 2.8.2 new behavior #66
Browse files Browse the repository at this point in the history
  • Loading branch information
rquinio committed May 27, 2018
1 parent 6bf775e commit 86dd3e7
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 1 deletion.
2 changes: 2 additions & 0 deletions MOD/Witcher/common/on_actions/W_on_actions.txt
Original file line number Diff line number Diff line change
Expand Up @@ -447,6 +447,8 @@ on_adulthood = {
magic.90 # Become sorcerer
magic.93 # Learned to control talent
magic.96 # Didn't learn enough

old_age.90 # Workaround adult portrait for long lived races
}
}

Expand Down
32 changes: 31 additions & 1 deletion MOD/Witcher/events/W_old_age_events.txt
Original file line number Diff line number Diff line change
Expand Up @@ -920,9 +920,39 @@ character_event = {
}

################################################
# Immortality debugging
# Immortality
################################################

# Workaround portrait bug for immortal races [on_adulthood]
# Since 2.8.2 children with an immortal trait never get their adult portrait.
character_event = {
id = old_age.90

is_triggered_only = yes
hide_window = yes

trigger = {
OR = {
trait = elf_race
trait = dwarf_race
trait = halfling_race
trait = gnome_race
trait = dryad_race
}
}

option = {
name = OK

# Temporarily remove the immortal traits, they will be added back by event racial.1
remove_trait = elf_race
remove_trait = dwarf_race
remove_trait = halfling_race
remove_trait = gnome_race
remove_trait = dryad_race
}
}

# Move important immortal characters manually to new holder's court, so they do not die of 'natural death' during court pruning.
# Manually prune 80% of the court, to avoid court bloating.
# ROOT is the character
Expand Down

0 comments on commit 86dd3e7

Please sign in to comment.