Inventions

From sc2k-reverse
Revision as of 06:03, 20 March 2025 by NotAnyoneSpecial (talk | contribs) (creating page)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

Func 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 and a random number between 0 and 19 of years from that year. If the base year is BEFORE but not the Year of the city's founding, the technology is automatically invented although this seems bugged for New games started from the main menu.

for (i=0;i<17;i++)
{
InventionDate = rand() % 20u + dataInventionBaseYears[i];
}
dataInventionBaseYears: 004E99E8
Invention Offset Base Year
Gas Power 0x00 1940
Nuclear Power 0x04 1950
Solar Power 0x08 1980
Wind power 0x0C 1970
Microwave power 0x10 2020
Fusion power 0x14 2050
Airport 0x18 1920
Highways 0x1C 1920
Bus 0x20 1910
Subway 0x24 1900
Water treatment 0x28 1925
Desalination plant 0x2C 1980
Plymouth Arco 0x30 1990
Forest Arco 0x34 2040
DARCO 0x38 2090
Launch Arco 0x3C 2140
Highways 0x40 2190