Bind stadium construction and historical data to scoped engine offers (by Codex)

This commit is contained in:
Codex committed 2026-10-29 06:09:10 +01:00
1 parent dfb972abbd
commit 0edf208405
22 files changed
+1037 -40

No files matched your search

+2
View File
@@ -1672,6 +1672,8 @@ bool pay_construction(ModernState& g, int manager, uint32_t price, bool sponsor,
return paid;
}
int periphery_build_weeks(int object) {if(object<0||object>=14)throw FormatError("stadium: invalid periphery object");return kPeripheryDays[object];}
bool build_periphery(ModernState& g, int manager, int object, uint32_t price, WatcomRandom& rand,
const ConstructionNoticeHook& notice) {
if (!modern::pay_construction(g, manager, price, true, rand, notice)) return false;
+1
View File
@@ -227,6 +227,7 @@ bool pay_construction(ModernState& g, int manager, uint32_t price, bool sponsor,
// "Ja" on the offer: pay_construction(price, sponsor) and the construction time of the
// object (CareerSession_DispatchStadium_RuntimeField2[object * 5]) is entered at record +0x1e + object.
int periphery_build_weeks(int object);
bool build_periphery(ModernState& g, int manager, int object, uint32_t price, WatcomRandom& rand,
const ConstructionNoticeHook& notice = {});