Bind the six-column Toto coupon to reviewed engine costs and settlement (by Codex)
This commit is contained in:
1 parent
eb140cdb1c
commit
dfb972abbd
27 files changed
+368
-53
No files matched your search
@@ -16,6 +16,7 @@
|
||||
#include "modern/content/statistics.hpp"
|
||||
#include "modern/content/world_package.hpp"
|
||||
#include "modern/content/world_save.hpp"
|
||||
#include "modern/content/toto_quote.hpp"
|
||||
#include "modern/game/almanac.hpp"
|
||||
#include "modern/game/desk_actions.hpp"
|
||||
#include "modern/game/environment.hpp"
|
||||
@@ -729,6 +730,7 @@ cli::Json ui_read(const ModernState& g, const UiContext& c, const cli::Json& req
|
||||
o->erase("ok");
|
||||
const auto money = [](J& v) { if (v.integer()) v = ui_money(*v.integer()); };
|
||||
if (kind == "toto") {
|
||||
if(const auto* draft=field(request,"draft"))(*o)["draftQuote"]=quote_toto_draft(g,c.manager,*draft);
|
||||
money((*o)["stake"]), money((*o)["cost"]);
|
||||
auto& last = std::get<O>((*o)["last"].value);
|
||||
money(last["paid"]), money(last["won"]);
|
||||
|
||||
Reference in new issue
Block a user