Calandiel / SongsOfFOSS

A FOSS release of source code of the unreleased version 0.3 of Songs of the Eons
Other
47 stars 12 forks source link

Obfuscate prices. #133

Open ineveraskedforthis opened 10 months ago

ineveraskedforthis commented 10 months ago

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 commented 10 months ago

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

ineveraskedforthis commented 10 months ago

Yes, sure. What is your idea?

Calandiel commented 10 months ago

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.