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

Server enforced "Heads Up" system before irreversible actions #11

Open
nataliethistime opened this issue Nov 14, 2022 · 0 comments
Open

Comments

@nataliethistime
Copy link
Member

Similar to the captcha system. The server should be able to return warning messages and require user confirmation before proceeding. Messages would be returned in the same format as inbox messages whereby images, links to the wiki, links to planets, resource icons, etc can be used to enhance the message. This means that the same warning rules are enforced across clients at all times.

A player would then be able to proceed with their intended action or cancel.

Actions that should trigger warnings:

  • Upgrading uni past level 10, 15 or 20, see here Warning in UI when attempting to upgrade University past lvl 10. plainblack/Lacuna-Server-Open#393
  • Sending colony ship breaks isolationist status
  • Building a munitions lab breaks isolationist status
  • A send ship confirmation under certain circumstances (ie, sending attacks)
  • Black hole generators can create fissures warning
  • Archaeology ministry abandon excavators
  • Mining ministry abandon mining platforms
  • Abandoning a planet
  • Demolishing a building ("you are about to create x waste or lose x food production")

Implementation ideas: new error code, return message in the data section, retry the request after confirmation

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

No branches or pull requests

1 participant