﻿# On actions for betterbattles mod content DO NOT TOUCH

# REMOVED WITH ROYAL COURT DLC/PATCH FOR GAME V1.5, SEE COMMON/COMBAT_PHASE_EVENTS/00_BETTERBATTLES_PHASE_EVENTS.TXT
#
## Called for commanders when combat ends
## root is the commander
## scope:combat_side is the side of combat the commander is on
## scope:victory is whether the commander's side won
#
#on_commander_combat_pulse = {
#	events = {
#		betterbattles.0101 # Core battle event (Will determine a sequential event itself)
#	}
#}
#

## USED AS OF 1.5 FOR ACTIVATION OF TRIGGER EVENT

on_siege_completion = {
	events = {
		betterbattles.0001 # Core siege event (Will determine a sequential event itself)
	}
}

random_yearly_everyone_pulse = {
	events = {
		betterbattles.test
	}
	effect = {
		if = {
			limit = {
				has_trait = wounded_1
			}
			remove_trait = wounded_1
		}
		if = {
			limit = {
				has_trait = wounded_2
			}
			remove_trait = wounded_2
			add_trait = wounded_1
		}
		if = {
			limit = {
				has_trait = wounded_3
			}
			remove_trait = wounded_3
			add_trait = wounded_2
		}
	}
}