Give the six play settings of the tactics board an effect; draw the board in chalk
- Match engine (Modern turn driver only, MatchEngine::tactic_effects): wing play, through balls, goal kicks, flat or high balls, offside trap and pressing of a human side shift how often it and its opponent come to a chance (play_shift, at most two steps of the chance roll). Each setting pays in one situation and costs in another; pressing also raises the foul roll. No random numbers are drawn; computer sides and the Classic core are unchanged. Documented in docs/DIFFERENCES.md. - The tactics read names the settings; desk and live dialog show every value in words with one sentence on its effect. The live dialog offers all eight settings again. - The tactics board is a slate with a wooden frame, drawn in wobbling chalk strokes. - modern_season_sim: SIM_TACTICS keeps a tactic set for measuring; new modern_play_shift_tests pin the direction of every setting. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
1 parent
9708b720b2
commit
919342a5ae
16 files changed
+344
-80
No files matched your search
@@ -161,6 +161,12 @@ struct LiveRealityEvent {
|
||||
RealitySceneTick tick;
|
||||
};
|
||||
|
||||
// Dreierpack (MatchEngine::tactic_effects): what the play settings of a human attacker's
|
||||
// and a human defender's board (manager record +0xd2.., nullptr for a computer side) add to
|
||||
// the attacker's chance roll, in half steps within -4..4. `own`/`other` are the side records.
|
||||
int play_shift(const uint8_t* own, const uint8_t* other, const uint8_t* attack, const uint8_t* defend, int own_att,
|
||||
int opp_att, int minute, bool wet);
|
||||
|
||||
struct MatchEngine {
|
||||
MatchEngine(GameState& s, std::vector<MatchGroup>& gr, GameRandom& gm, WatcomRandom& r, std::vector<uint8_t> refs)
|
||||
: state(s), groups(gr), game(gm), rand(r), referees(std::move(refs)), last_pick_quality(s.last_pick_quality) {}
|
||||
@@ -177,6 +183,10 @@ struct MatchEngine {
|
||||
bool live_desk_disabled = false; // LiveDeskDisabled: no live desk (both live modes off)
|
||||
int month = 0; // CareerSession_PairingsRuntimeDraw_ExecutableField5, for the climate effect when re-rating
|
||||
bool trace = false; // print events and chances to stderr (debugging)
|
||||
// Dreierpack rule (not in the original, off by default): the six play settings of a
|
||||
// human side (manager record +0xd3..+0xd8) shift how often that side and its opponent
|
||||
// come to a chance. See play_shift in match_engine.cpp and docs/DIFFERENCES.md.
|
||||
bool tactic_effects = false;
|
||||
// What the original would show (presentation.hpp); filled only when set. Appending
|
||||
// draws no random numbers and changes nothing else.
|
||||
std::vector<ShowEvent>* show = nullptr;
|
||||
|
||||
Reference in new issue
Block a user