Modern: the traffic access has four stages
The Modern interface shows four stages for the traffic access, the original has three. A Modern world (WorldLayout::traffic_stages = 4) keeps the condition byte in steps of 64 (64, 128, 192, 255) and offers a build up to stage 3; every stage weighs as one original stage. New careers convert the original start table, older Modern saves are converted on load (traffic_scale). Classic data keeps three stages; the Classic equivalence is unchanged. Also: the live ticker takes the matches from the desk day on. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
fda4b72967
commit
0046ab90d0
18 files changed
+154
-16
No files matched your search
@@ -1,5 +1,6 @@
|
||||
// SPDX-License-Identifier: GPL-3.0-only
|
||||
#include "formats/executable_layout.hpp"
|
||||
#include "modern/game/traffic.hpp"
|
||||
#include "modern/game/modern_state.hpp"
|
||||
#include "modern/game/environment.hpp"
|
||||
#include "modern/game/month.hpp"
|
||||
@@ -531,7 +532,7 @@ int32_t monthly_income(ModernState& g, int m) {
|
||||
for (int k = 0; k < 6; k++) {
|
||||
const uint8_t v = r.at(rec + size_t(k));
|
||||
if (v == 0) continue;
|
||||
const int level = k == 0 ? ((v - 1) / 0x55 + 1) & 0xFF : 1; // Add32
|
||||
const int level = k == 0 ? traffic_stage(v) & 0xFF : 1; // Add32 (traffic.hpp)
|
||||
sum += level * kFacilityIncome[k];
|
||||
}
|
||||
add32(r, rec + 0x86c, sum);
|
||||
|
||||
Reference in new issue
Block a user