Restore full environment controls and original match pacing for 0.1.2 (by Codex)
Build without game data / build (windows-x64, windows-2022) (push) Canceled after 0s
Build without game data / build (macos-arm64, macos-14) (push) Canceled after 0s
Build without game data / build (linux-x64, ubuntu-24.04) (push) Canceled after 0s
Prepare release packages / build (push) Canceled after 0s
Prepare release packages / draft (push) Canceled after 0s
Build without game data / build (windows-x64, windows-2022) (push) Canceled after 0s
Build without game data / build (macos-arm64, macos-14) (push) Canceled after 0s
Build without game data / build (linux-x64, ubuntu-24.04) (push) Canceled after 0s
Prepare release packages / build (push) Canceled after 0s
Prepare release packages / draft (push) Canceled after 0s
This commit is contained in:
1 parent
4fb8b2f551
commit
310e3e2464
30 files changed
+422
-383
No files matched your search
@@ -39,7 +39,20 @@ void youth_test(GameState g) {
|
||||
GameRandom game(4711);
|
||||
WatcomRandom rand(815);
|
||||
MinuteReport report;
|
||||
auto monthly = g;
|
||||
monthly.memory.set32(::bmh::layout::Spending + 4, 8000);
|
||||
monthly.memory.set8(::bmh::layout::CareerDuration, 0);
|
||||
monthly.memory.set8(::bmh::layout::EnvironmentYouthTeams + 2, 10);
|
||||
check(team_average(monthly, team, 0xf3).value > 35, "fixture has a stronger senior squad");
|
||||
check(!youth_academy_player(monthly, 0, game, rand, report) && game.calls() == 0 && rand.calls() == 0,
|
||||
"monthly recruitment requires the oldest youth team's strength without consuming RNG on refusal");
|
||||
monthly.memory.set8(::bmh::layout::EnvironmentYouthTeams + 2, 85);
|
||||
GameRandom monthly_game(4711);
|
||||
WatcomRandom monthly_rand(815);
|
||||
check(youth_academy_player(monthly, 0, monthly_game, monthly_rand, report) && !report.unsupported,
|
||||
"an active monthly budget and sufficiently strong youth team recruit without a season lump sum");
|
||||
// unpaid: nothing happens, nothing is drawn
|
||||
g.memory.set32(::bmh::layout::Spending + 4, price);
|
||||
set_rec32(g, 0x880, price - 1);
|
||||
check(!youth_academy_player(g, 0, game, rand, report) && game.calls() == 0 && rand.calls() == 0, "unpaid academy");
|
||||
// paid
|
||||
|
||||
Reference in new issue
Block a user