Skip to content

Commit

Permalink
Add log for character religion changes
Browse files Browse the repository at this point in the history
  • Loading branch information
rquinio committed Jan 4, 2020
1 parent 6ebb7d1 commit cfe7f96
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Debug/common/on_actions/debug_on_actions.txt
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,13 @@ on_vassal_accepts_religious_conversion = {
}
}

# ROOT is the character, FROM is the old religion
on_character_convert_religion = {
events = {
debug.14 # logging
}
}

##### CBs

# FROM = Attacker, ROOT = Defender
Expand Down
12 changes: 12 additions & 0 deletions Debug/events/debug_logging_events.txt
Original file line number Diff line number Diff line change
Expand Up @@ -155,3 +155,15 @@ character_event = {
log="(DEBUG) [From.GetBestName] has lost the war to [Root.GetBestName]."
}
}

# on_character_convert_religion
character_event = {
id = debug.14

is_triggered_only = yes
hide_window = yes

immediate = {
log="(DEBUG) [Root.GetBestName] has converted from [From.GetName] to [Root.Religion.GetName]."
}
}

0 comments on commit cfe7f96

Please sign in to comment.