Skip to content

Function ideas #1

@TomWerner

Description

@TomWerner

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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions