I have the following in "common/buildings/00_buildings.txt":
It's used as a means of preventing sector AI from upgrading a science lab to a biolab unless there's a society deposit present on the tile. However, changing "allow" to "ai_allow" causes sector AI to ignore the restriction for some reason. It's not a major issue since only sector AI is affected in either case, but the difference was unexpected.
Code:
allow = {
OR = {
planet = {
sector_controlled = no
}
tile = {
OR = {
has_deposit = d_society_deposit
has_deposit = d_rich_society_deposit
has_deposit = d_vast_society_deposit
has_deposit = d_immense_society_deposit
}
}
}
}
It's used as a means of preventing sector AI from upgrading a science lab to a biolab unless there's a society deposit present on the tile. However, changing "allow" to "ai_allow" causes sector AI to ignore the restriction for some reason. It's not a major issue since only sector AI is affected in either case, but the difference was unexpected.
Last edited:
Upvote
0