Inventions

From sc2k-reverse
Jump to navigationJump to search

Location:0042E460

In Simcity 2000 during game set up the invention date of each technological development is randomly generated and set in NewGameSetup. These dates are a combination of a Base Year for the invention of that technology sourced from an array (Location:004E99E8) and a random number between 0 and 19 of years from that base year. These values are stored in the array wCityInventionYears[17] (Location:0x4CB430) in the same order as the base array. If the randomly determined year is before the founding year of the current game then it's automatically unlocked, otherwise the game will check monthly if it has reached the specified year.

"Highways" appears twice because, I suspect, the list text-strings will "loop" back to the first "Innovation" type invention that appears. Possibly some sort of bug because something was removed.

for (i=0;i<17;i++)
{
wCityInventionYears[i] = rand() % 20 + dataInventionBaseYears[i];
}
wInventionBaseYears[20]:004E99E8
Invention Offset Base Year type
Gas Power 0x00 1940 Invention
Nuclear Power 0x02 1950 Invention
Solar Power 0x04 1980 Invention
Wind power 0x06 1970 Invention
Microwave power 0x08 2020 Invention
Fusion power 0x0A 2050 Invention
Airport 0x0C 1920 Invention
Highways 0x0E 1920 Innovation
Bus 0x10 1910 Innovation
Subway 0x12 1900 Innovation
Water treatment 0x14 1925 Innovation
Desalination plant 0x16 1980 Innovation
Plymouth Arco 0x18 1990 Innovation
Forest Arco 0x1A 2040 Innovation
DARCO 0x1C 2090 Innovation
Launch Arco 0x1E 2140 Innovation
Highways 0x20 2190 Innovation