Description
Deficit situation doesn't resolve despite 0 consumption [3.4.2] [7836]
Game Version
3.4.2
What version do you use?
Steam
What expansions do you have installed?
Do you have mods enabled?
No
Please explain your issue is in as much detail as possible.
If you get into a rare resource deficit (for expample by conquering a planet with advanced buildings) when you have 0 production of that resource, you remain stuck in the deficit even after consuming no more of that resource.
If the checks for "not in deficit" were changed to "value >= 0, that problem wouldn't occur.
Steps to reproduce the issue.
Start a game
open console
select your capital
type "effect add_building = building_research_lab_2"
let the game run until the deficit situation starts
downgrade the reseach building
deficit situation remains stuck
Upload Attachment
File(s) attached
Deficit situation doesn't resolve despite 0 consumption [3.4.2] [7836]
Game Version
3.4.2
What version do you use?
Steam
What expansions do you have installed?
Do you have mods enabled?
No
Please explain your issue is in as much detail as possible.
If you get into a rare resource deficit (for expample by conquering a planet with advanced buildings) when you have 0 production of that resource, you remain stuck in the deficit even after consuming no more of that resource.
If the checks for "not in deficit" were changed to "value >= 0, that problem wouldn't occur.
Code:
modifier = {
subtract = 5
desc = string_not_in_deficit_exotic_gases
owner = {
resource_income_compare = {
resource = exotic_gases
value > 0
}
}
}
Steps to reproduce the issue.
Start a game
open console
select your capital
type "effect add_building = building_research_lab_2"
let the game run until the deficit situation starts
downgrade the reseach building
deficit situation remains stuck
Upload Attachment
File(s) attached
Attachments
- 1