Home › Dev CE (experimental) › PlayerEras

Experimental: needs Dev CE (fork of the Community Extension, release zip and source). A GameCore that adds these Lua methods by calling engine functions directly. Not part of the upstream Community Extension, single-player testing only. Descriptions on these pages were written by an AI assistant from decompiled code and are marked inferred unless a test result confirms them.

PlayerEras

4 methods (Dev CE test build). this is found with the game's own IPlayerEras instance resolver (plain).

Method Signature Purpose (AI-written, inferred) Tested Engine function Current
CalculateEra PlayerEras:CalculateEra() → number Computes the player's era as the max of the highest era among researched technologies and the highest among adopted civics, defaulting to the first era when the owner is null. plumbing ✓ — 0x2c9580
DoTurnActivate PlayerEras:DoTurnActivate() Recalculates the player's era, applies it via SetEra, then copies a value from the game-wide eras object (offset 0xb8) into a control-priority variable at this+0xb0. plumbing ✓ — 0x2c9880
HasDarkAge PlayerEras:HasDarkAge() → boolean Returns whether the owning player currently has a dark age, queried from the game-wide eras object. plumbing ✓ — 0x2c98d0
HasGoldenAge PlayerEras:HasGoldenAge() → boolean Returns whether the owning player currently has a golden age, queried from the game-wide eras object. plumbing ✓ — 0x2c9920

Details

CalculateEra

Input checks: Returns first era if owner pointer is null.

Multiplayer: read-only, pure calculation. Risk: low (getter). Confidence of the reading: high.

DoTurnActivate

Writes - player era via SetEra - control-priority variable at this+0xb0

Side effects - SetEra may trigger era-change effects

Input checks: None.

Multiplayer: may-desync, updates era state. Risk: medium (changes era). Confidence of the reading: medium.

HasDarkAge

Input checks: Returns false if game or owner is null.

Multiplayer: read-only, getter. Risk: low (getter). Confidence of the reading: high.

HasGoldenAge

Input checks: Returns false if game or owner is null.

Multiplayer: read-only, getter. Risk: low (getter). Confidence of the reading: high.