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

Obfuscate prices. #133

Open
ineveraskedforthis opened this issue Oct 30, 2023 · 3 comments
Open

Obfuscate prices. #133

ineveraskedforthis opened this issue Oct 30, 2023 · 3 comments
Labels
discussion Further discussion is requested enhancement New feature or request

Comments

@ineveraskedforthis
Copy link
Collaborator

Player should not have a perfect information on prices.
For example, replace display of prices of goods like this:
Local prices: perfect information.
Distant provinces: values are rounded to integers, show ? instead of decimals after point.
Really far away provinces: values are rounded to the order of 10. Show ? instead of lower orders.

@Calandiel
Copy link
Owner

Can we discuss this first? Theres a neat way to implement this that would make adding multiplayer feasible

@ineveraskedforthis
Copy link
Collaborator Author

Yes, sure. What is your idea?

@ineveraskedforthis ineveraskedforthis added the discussion Further discussion is requested label Nov 1, 2023
@Calandiel
Copy link
Owner

Yes, sure. What is your idea?

World and other such variables should stop being globals and instead a new class, something like "WorldView" should be made in their stead.
That would hold local data accessible to the agent displaying the world and would have methods ghosting the real world methods and objects.
The advantage of this approach is that it naturally lends itself to multiplayer as one already only sees a small subset/copy of the data and it can be synchronized over the network periodically to allow for multiplayer. It'd kill two birds with one stone, so to speak.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
discussion Further discussion is requested enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants