It's a provincial decision for you, but it fires an event for the emperor where they can accept or deny membership to that territory. Whatever happens you still lose that magistrate.
OK, I did some research, but become more confused. I saw two decisions in the HRE.txt:
#1
join_hre = {
potential = {
hre = no
owner = { is_emperor = no }
religion_group = christian
owner = {
religion_group = christian
}
any_neighbor_province = {
hre = yes
}
}
allow = {
OR = {
is_emperor = yes
emperor = { relation = { who = THIS value = 100 } }
}
owner = {
officials = 1
}
is_core = THIS
}
effect = {
owner = {
prestige = 0.02
officials = -1
}
emperor = {
country_event = 9493
# set_province_flag = asked_join_hre
}
}
#2
join_hre_emp = {
potential = {
hre = no
owner = { is_emperor = yes }
religion_group = christian
owner = {
religion_group = christian
}
any_neighbor_province = {
hre = yes
}
}
allow = {
owner = {
officials = 1
}
is_core = THIS
}
effect = {
owner = {
prestige = 0.02
officials = -1
add_imperial_influence = 1
}
hre = yes
}
ai_will_do = {
factor = 1
}
}
Which one is to join HRE?