Kinda stopped doing stuff for 2 weeks. I don't work very well without a specific plan, and development was slowly getting further and further away from the stuff I have figured out. So I needed some time to get ahead of the planning curve again. Got back to work again today.
{
"Placeholder_ERROR": {
"primary_weight": 0,
"create_weight": 0,
"abundance": 0
},
"Placeholder_Non_Primary": {
"primary_weight": 0,
"create_weight": 1,
"abundance": 1
},
"Placeholder_Half_Primary": {
"primary_weight": 0.5,
"create_weight": 1,
"abundance": 2
},
"Placeholder_Primary": {
"primary_weight": 1,
"create_weight": 1,
"abundance": 3
}
}
Say "Hi!" to the very nice json text files. I might change the names of stuff around, and I can add anything else I want, simply by writing UtilitiesIn[Name]["INSERT_STUFF_HERE"].
Actually, json_spirit is a bit of a pain in that I originally had to write In.get_obj()["whatever"].get_obj()["whatever_else"] whenever I wanted something two levels deep. So I added two lines into a header, and suprisingly, it worked. Was very easy to do, yes, but changing an external library like that was a new experience for me.
I decided to keep the refining idea around, with the resource requirement. But, refinement resources have a primary_weight of 0. This means that if a resource gets refining as its primary utility, it will not have a heightened chance of putting refining into its other slots, preventing chains of refinement.
The basic idea is that you will set up mining colonies to go up the refinement levels, and once they have served your purposes, leave them be. If everything goes right they should try to expand by themselves, reject your rule, and stage a revolution that crushes your empire.