I'm working on an event chain that on a crit success (from random list) the player is rewarded with a current researching tech being completed.
I'm having no luck so far in finding an elegant way to do this. I could just go through ALL the techs and if it is being researched then complete it, but that would mean a fairly massive if/else branch.
I'm having no luck so far in finding an elegant way to do this. I could just go through ALL the techs and if it is being researched then complete it, but that would mean a fairly massive if/else branch.