Nightinggale
Deity
- Joined
- Feb 2, 2009
- Messages
- 5,378
Don't hardcode the index into python. If you need to hardcode, then do it in the DLL and give python access to those numbers. However the best would be to generate the numbers when loading XML and the problem would be gone.
"Techs, Trade Perks, and Censures". Then why not have a variable with one of these values?
Imagine this: we have CivicCategory with one of those names (which are handled as ints).
We then have civic option type to split each of those categories into subtypes, like we do now, except it would be tech categories if CivicCategory is tech.
It will need closer inspection and thinking if I were to declare what I think would be best in this case. I'm just brainstorming based on previous post alone.
"Techs, Trade Perks, and Censures". Then why not have a variable with one of these values?
Imagine this: we have CivicCategory with one of those names (which are handled as ints).
We then have civic option type to split each of those categories into subtypes, like we do now, except it would be tech categories if CivicCategory is tech.
It will need closer inspection and thinking if I were to declare what I think would be best in this case. I'm just brainstorming based on previous post alone.