on_actions = { on_monthly = { effect = { if = { limit = { is_ai = no } ws_apply_national_doctrine = yes } if = { limit = { is_ai = yes OR = { tag = GER tag = SOV tag = JAP tag = USA tag = ENG } } ws_initialize = yes ws_apply_national_doctrine = yes } } } # ROOT = army leader, FROM = owner country. on_army_leader_won_combat = { effect = { FROM = { if = { limit = { has_war = yes } ws_v15_record_battlefield_wreckage = yes } } } } # ROOT = new controller, FROM = old controller, FROM.FROM = state. # A recent-battle modifier gives each state a 180-day anti-farm cooldown, but permits later wars to yield wreckage again. on_state_control_changed = { effect = { if = { limit = { ROOT = { has_war_with = FROM } FROM.FROM = { NOT = { has_dynamic_modifier = ws_battlefield_wreckage_state } } } FROM.FROM = { add_dynamic_modifier = { modifier = ws_battlefield_wreckage_state days = 180 } } ROOT = { ws_v15_record_captured_state = yes } } } } # ROOT = capitulating country, FROM = victor/recipient in the vanilla hook. on_capitulation_immediate = { effect = { # ROOT = capitulated country, FROM = winner. Land wreckage is always recorded. FROM = { ws_v15_record_capitulation = yes } # Naval wreckage is tested at the immediate hook, before capitulation cleanup removes/transfers units. if = { limit = { ROOT = { OR = { has_navy_size = { size > 0 } has_navy_size = { size > 0 type = convoy } } } } FROM = { ws_v152_record_naval_wreckage = yes } } } } }