Poaching in two steps: the club is asked and names its price, then the offer is made
transfer.submit takes three more actions. poach runs the original's checks and start_poach on a player of another club; where an offer can be made the offer editor stays open and the answer carries what the club asks and the bounds the editor accepts. poachOffer is decided at once, poachCancel closes the editor. The attempt counts from the first step, as in the original. The transfer market's Abwerben opens the clubs of a league, reads the chosen club's squad, asks before the attempt is spent and then shows the club's demand with the offer to be written. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
1 parent
a2790751a6
commit
7424b09738
8 files changed
+282
-3
No files matched your search
@@ -213,6 +213,13 @@ void App::engine_poll() {
|
||||
}
|
||||
refresh(); return;
|
||||
}
|
||||
if (result.response.value("messageType", "") == "poach_squad") {
|
||||
// the squad of the club a manager wants to poach from
|
||||
const auto &read = result.response.at("read");
|
||||
if (read.value("messageType", "") == "error" || !read.contains("data")) { engine_notice_ = "Der Kader ist nicht verfügbar."; engine_poach_squad_ = Json(); }
|
||||
else { engine_poach_squad_ = read.at("data"); if (menu_ == "transfer" && transfer_dialog_ == "poach-clubs") { transfer_dialog_ = "poach-roster"; transfer_view_["poach_top"] = 0; focus_after_render_ = "transfer-poach-back"; } }
|
||||
refresh(); return;
|
||||
}
|
||||
if (result.response.value("messageType", "") == "credit_preview") {
|
||||
const auto &read = result.response.at("read");
|
||||
const auto lender = result.response.value("lender", std::string("bank"));
|
||||
|
||||
Reference in new issue
Block a user