axel3rd / mpg-coach-bot

MPG (Mon Petit Gazon) coach bot, to automate and optimize weekly actions
https://axel3rd.github.io/mpg-coach-bot/
MIT License
21 stars 8 forks source link

Decat' bonus support #234

Open axel3rd opened 1 year ago

axel3rd commented 1 year ago

https://github.com/axel3rd/mpg-coach-bot/blob/fb6414898f4f08194f71c217915e93f549052b2d/src/main/java/org/blondin/mpg/root/model/SelectedBonus.java#L12-L18

Bonus have changed, new bonus are:

{
    "bonuses": {
        "blockTacticalSubs": 1,
        "boostAllPlayers": 1,
        "boostOnePlayer": 3,
        "fourStrikers": 1,
        "mirror": 1,
        "nerfGoalkeeper": 2,
        "removeGoal": 1,
        "removeRandomPlayer": 1
    }
}

The fourStrikers bonus is new.

It should be managed, but in this case the squad scheme is updated => not simple (in addition for next turn).

Perhaps using it as last priority and only if 4 strikers have a minimal note could be relevant.