Start Modern managers with the assistant's attitude control; name live tactic values
A new Modern manager's assistant adapts the attitude to the score, as the computer clubs do, until the manager sets it himself; an idle human club no longer plays whole matches at the most defensive attitude (12-season simulation: 1.40 instead of 1.12 goals per match, league average 1.44). The live tactics board shows values in words, and refused live commands are written to stderr. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
1 parent
6970dfa20a
commit
f2dcf94d2b
5 files changed
+28
-2
No files matched your search
@@ -894,6 +894,9 @@ bool ModernSession::begin_manager_join(const ui::DeskRequest& origin, const ui::
|
||||
if (mem.u32(::bmh::layout::CompetitionSelection) == 1)
|
||||
for (int slot = current.managers; slot < options.managers; ++slot)
|
||||
draft.state.manager_options.at(size_t(slot) * 5 + 4) = 1;
|
||||
// a manager who joins starts with the assistant's attitude control as well (see apply_options)
|
||||
for (int slot = current.managers; slot < options.managers && size_t(slot) * 5 + 2 < draft.state.manager_options.size(); ++slot)
|
||||
draft.state.manager_options.at(size_t(slot) * 5 + 2) = 1;
|
||||
modern::career_managers_begin(draft.state, true);
|
||||
manager_join_ = std::move(draft);
|
||||
return true;
|
||||
@@ -1003,6 +1006,12 @@ void ModernSession::apply_options(const ui::SetupOptions& o) {
|
||||
if (o.league && !o.world)
|
||||
for (int m = 0; m < o.managers && size_t(m) * 5 + 4 < g_.manager_options.size(); ++m)
|
||||
g_.manager_options.at(size_t(m) * 5 + 4) = 1;
|
||||
// Modern deviates from Classic: a new manager's assistant adapts the attitude to the score, as
|
||||
// the computer clubs do. Classic starts every human club at the most defensive attitude for
|
||||
// whole matches, which costs an unaware manager most of his goals. Setting the attitude by
|
||||
// hand takes the control back.
|
||||
for (int m = 0; m < o.managers && size_t(m) * 5 + 2 < g_.manager_options.size(); ++m)
|
||||
g_.manager_options.at(size_t(m) * 5 + 2) = 1;
|
||||
modern::career_managers_begin(g_);
|
||||
options_applied_ = true;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user