-
Notifications
You must be signed in to change notification settings - Fork 4
Open
Description
I'm a big fan of the civ_prog_objects.csv file and have used it as a reference in the past. I'm opening this bug as a place to drop some notes on functions I've identified that aren't in the spreadsheet yet.
I think 0x4BB2A0(GOG version) is City_num_resisting_citizens or something similar. I don't fully understand the function body yet, since it doesn't seem to be accessing the relevant field of Citizen_Body, but based on the usages of the function it seems plausible. For example:
... City_add_or_remove_improvement(...)
...
popSize = this->Body.Population.Size;
FoodConsumedPerCitizen = g_FoodConsumedPerCitizen;
this->Body.FoodRequired = FoodConsumedPerCitizen * (popSize - ((_DWORD (__stdcall *)(int))sub_4BB2A0)(-1));
Since resistors don't consume food this seems like a pretty reasonable guess, and a debugger step through confirmed the function returns 2 on a city with 2 resistors.
Metadata
Metadata
Assignees
Labels
No labels