Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Royale: Attaché Unit #21

Open
jwrober opened this issue Mar 27, 2024 · 3 comments
Open

Royale: Attaché Unit #21

jwrober opened this issue Mar 27, 2024 · 3 comments

Comments

@jwrober
Copy link
Contributor

jwrober commented Mar 27, 2024

Consider adding a cheap Diplomat that comes with Alphabet called Attaché. This unit would only be able to do the establish embassy action and no others. This unit comes in handy during local AI games when the AI typically does not like to share embassies, but can also be used for the same purpose during LT games as well.

@wieder-fi
Copy link
Contributor

the cost is the actual issue or the problem? with a lots of ai players it's diffrent and it's very hard to find a solution that would work for all the game types. maybe the ruleset might need some way to adjust to ai games, two team games or ffa games

@jwrober
Copy link
Contributor Author

jwrober commented Mar 30, 2024

30 shields to establish an embassy is way too much. That is my issue. :)

@lmoureaux
Copy link
Contributor

For reference, this is how the AI estimates the value of embassies (in units of gold):

    if (give) {
      if (ds_after == DS_ALLIANCE) {
        worth = 0;
      } else if (ds_after == DS_PEACE) {
        worth = -5 * game.info.turn;
      } else {
        worth = MIN(-50 * game.info.turn
                        + pplayer->ai_common.love[player_index(aplayer)],
                    -5 * game.info.turn);
      }
    } else if (game.info.tech_leakage == TECH_LEAKAGE_EMBASSIES) {
      worth = game.info.tech_leak_pct / 10;
    } else {
      worth = 0; // We don't need no stinkin' embassy, do we?
    }

This reads as follows:

  • If you are allied, the AI give away their embassies for free
  • When at peace, they'd give it away if they get more than (5*turn) gold
  • And otherwise it's complicated but really really expensive. Like 1000 gold on turn 20

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants