Oh, and @Levis: You can skip doing a lot of work on the skill calling performance.
After thinking about it some more, I think I should be able to do further work on this later today.
But please do look at my rewritten code and let me know if you think anything doesn't look right.
Also, I could use some pointers on the correct spots to add in automatic recalculate points.
Are there any specific places where the following are handled?
- Game automatically adds a new skill point of a certain type
- A character's officer type is changed (probably through the Passengers instead or perhaps dialog)
I'd like to limit the recalculation to only those skills that actually changed wherever possible.
For example, when an officer gains Sailing, reset and recalculate only that skill for that officer's Captain.
In other words: I want to reduce this down to specifically only that what needs updating.
Of course changing officer type does need to go through all skills, but so be it.
After thinking about it some more, I think I should be able to do further work on this later today.
But please do look at my rewritten code and let me know if you think anything doesn't look right.
Also, I could use some pointers on the correct spots to add in automatic recalculate points.
Are there any specific places where the following are handled?
- Game automatically adds a new skill point of a certain type
- A character's officer type is changed (probably through the Passengers instead or perhaps dialog)
I'd like to limit the recalculation to only those skills that actually changed wherever possible.
For example, when an officer gains Sailing, reset and recalculate only that skill for that officer's Captain.
In other words: I want to reduce this down to specifically only that what needs updating.
Of course changing officer type does need to go through all skills, but so be it.