So i'm trying to restrict an AI country_type from building a custom ship class until 100 years have passed, and then only ever build one at a time. I thought i had the code for that right, but it's not working. Here's what i tried:
Code:
# This is in mod_country_types.txt
ship_data = {
custom_ship_type = {
min = 1
max = 1
fraction = {
base = 0
modifier = {
factor = 0
years_passed < 100
}
modifier = {
add = 100
years_passed > 100
}
}
}
}