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
@@ -12,6 +12,7 @@
|
||||
#include <limits>
|
||||
|
||||
#include "app/window_actions.hpp"
|
||||
#include "game/world_layout.hpp"
|
||||
#include "cli/console/console.hpp"
|
||||
#include "cli/console/detail.hpp"
|
||||
#include "game/bank_credit.hpp"
|
||||
@@ -324,7 +325,10 @@ void Console::register_money_commands() {
|
||||
// condition byte to the next multiple of 85 (85, 170, 255; ageing lowers it), and an
|
||||
// offer exists below 171. The other objects are built once.
|
||||
std::string state = s.level[o] != 0 ? "built" : "-";
|
||||
if (o == 0 && s.level[0] != 0) state = "stage " + std::to_string((s.level[0] - 1) / 85 + 1) + " of 3";
|
||||
if (o == 0 && s.level[0] != 0) { // three stages in steps of 85; a Modern world: four in steps of 64
|
||||
const int stages = bmh::world_layout().traffic_stages, step = stages == 4 ? 64 : 85;
|
||||
state = "stage " + std::to_string((s.level[0] - 1) / step + 1) + " of " + std::to_string(stages);
|
||||
}
|
||||
rows.push_back({std::to_string(o), text(kPeripheryNames + int(o)), building ? "building" : state,
|
||||
std::to_string(s.days[o])});
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user