pioneerspacesim/pioneer — pull request #2213 by fluffyfreak (2013-04-14 13:44:38+00:00)
Title: WIP: FactionOmics - comments please.

Or to give it a better description:

# Description:
Each faction should logically have a separate bias for the value of the commodities and items that it trades due the effect of it economic policies and political goals. That's all really complicated though so this just takes the sector etc of a factions homeworld and then randomly adds or takes some small values from each of the commodities sale price :)

This should create some fairly random and simple trade gradients across faction borders for people to discover and exploit.

# Issues/Comments:
This is all done in C++ at the moment so there's no limits or control from Lua.
This isn't because I didn't want there to be, it's just that I quickly threw it together this morning and I'm not sure how to control it or what to expose so am here asking for comments!
The range that values are modified by is simply -20 to 20, seeded using the homeworlds sector information, and that's it. Nothing clever at all.

Andy