I have a QQ. I'm not all that experienced with Java as I've attempted to avoid it as much as possible but am a developer.
I'm currently attempting to hook into post battle loot generation to add a couple of new commodities after battle using an override of reportEncounterLootGenerated in a class which is extending BaseCampaignEventListener. All my other functions in that class are working fine but this one just seems to do nothing, not even outputting logging.
Is this the right place to do it?
If not, what would be a good method?
My mod is designed to run alongside Nexerelin so could this be causing the problem by generating loot a different way?
While I'm here an additional question before I get to the point of testing to discover.
I've added a hullmod which I intend to have dynamic effects based on a campaign level variable, is applyBeforeShipCreation the right place to have these adjustments where they'll be changed dynamically or should I also unapply and reapply the effects to all ships with that hullmod when the campaign variable changes?
My assumption is that these adjustments are applied before a battle and will use the current variable at that point to create the ship.
Thanks in advance for any advice.