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/balance_plan.hpp"
|
||||
@@ -50,7 +51,7 @@ int32_t wrap(int64_t v) { return int32_t(uint32_t(uint64_t(v))); }
|
||||
// Add32: the level of a facility (facility 0: its size step)
|
||||
uint32_t facility_level(const ModernState& g, int m, int k) {
|
||||
const uint8_t v = rec8(g, m, size_t(k));
|
||||
return k == 0 ? uint32_t((v - 1) / 0x55 + 1) & 0xff : 1;
|
||||
return k == 0 ? uint32_t(traffic_stage(v)) & 0xff : 1; // the traffic access by its stage (traffic.hpp)
|
||||
}
|
||||
|
||||
// DailyInterest2(0): the interest of one day without booking it - negative is income
|
||||
|
||||
Reference in new issue
Block a user