Code:
event = {
id = 27552
random = no
country = CHI
persistent = yes
trigger = {
ai = yes
technology = 5080
money = 970 # 250 left
control = { province = 1280 data = CHI } # Chongqing
NOT = { province_building = { province = 1280 building = 5 size = 0.6 } }
}
name = "AI_EVENT"
style = 0
date = { day = 1 month = january year = 1936 }
offset = 1
deathdate = { day = 29 month = december year = 1996 }
action_a = {
command = { type = construct which = infrastructure where = 1280 value = 10 }
command = { type = money value = -720 } # 240x2x0.95x0.68 ICD
command = { type = manpowerpool value = -1 }
}
}
According to event_commands.txt this event should only fire if the infrastructure in Chongqing is below 60%. Instead it fires if it is below 100%. It appear that only integer value are handled properly.
Upvote
0