on_actions = {
	on_weekly = {
		effect = {
			if = {
				limit = {
					owns_state = 1
				}
				more_mapmodes_update_custom_map_modes_effects = yes
			}
		}
	}

	# ROOT is winner, FROM gets annexed
	on_annex = {
		effect = {
			more_mapmodes_update_custom_map_modes_effects = yes
		}
	}

	# ROOT is subject, FROM is overlord
	on_subject_annexed = {
		effect = {
			more_mapmodes_update_custom_map_modes_effects = yes
		}
	}

	# ROOT is new controller, FROM is old controller, FROM.FROM is state ID
	on_state_control_changed = {
		effect = {
			more_mapmodes_update_custom_map_modes_effects = yes
		}
	}

	# ROOT is winner, FROM is loser
	on_peaceconference_ended = {
		effect = {
			more_mapmodes_update_custom_map_modes_effects = yes
		}
	}

	# ROOT is the nation being liberated, FROM the leader of the liberators
	on_liberate = {
		effect = {
			more_mapmodes_update_custom_map_modes_effects = yes
		}
	}

	# ROOT is the released nation, FROM the releaser
	on_release_as_free = {
		effect = {
			more_mapmodes_update_custom_map_modes_effects = yes
		}
	}

	# ROOT is the released subject, FROM the former overlord
	on_subject_free = {
		effect = {
			more_mapmodes_update_custom_map_modes_effects = yes
		}
	}

	# ROOT is the released nation, FROM the releaser
	on_release_as_puppet = {
		effect = {
			more_mapmodes_update_custom_map_modes_effects = yes
		}
	}

	on_war = {
		effect = {
			more_mapmodes_update_custom_map_modes_effects = yes
		}
	}

	on_peace = {
		effect = {
			more_mapmodes_update_custom_map_modes_effects = yes
		}
	}

	# ROOT is the loser, FROM is the winner
	on_capitulation = {
		effect = {
			more_mapmodes_update_custom_map_modes_effects = yes
		}
	}

	on_uncapitulation = {
		effect = {
			more_mapmodes_update_custom_map_modes_effects = yes
		}
	}

	# ROOT is the country that guarantees, FROM is the country that gets guaranteed
	on_guarantee = {
		effect = {
			force_update_map_mode = {
				mapmode = more_mapmodes_guarantees_map_mode
			}
		}
	}

	# ROOT is the country that's puppeted, FROM is the overlord
	on_puppet = {
		effect = {
			force_update_map_mode = {
				mapmode = more_mapmodes_subjects_map_mode
			}
		}
	}

	# ROOT is the country that's released, FROM is the overlord
	on_release_as_puppet = {
		effect = {
			force_update_map_mode = {
				mapmode = more_mapmodes_subjects_map_mode
			}
		}
	}

	# ROOT is the subject, FROM is the overlord
	on_subject_annexed = {
		effect = {
			force_update_map_mode = {
				mapmode = more_mapmodes_subjects_map_mode
			}
		}
	}

	# ROOT is the subject, FROM is the overlord
	on_subject_free = {
		effect = {
			force_update_map_mode = {
				mapmode = more_mapmodes_subjects_map_mode
			}
		}
	}

	# ROOT is the subject, FROM is the overlord
	on_subject_autonomy_level_change = {
		effect = {
			force_update_map_mode = {
				mapmode = more_mapmodes_subjects_map_mode
			}
		}
	}
}