// Only triggers on new campaigns created private void OnAfterNewGameCreated(CampaignGameStarter starter) { if (custom_merc_data_holder == null) { CustomMercDataHolder customMercDataHolder = new CustomMercDataHolder(); custom_merc_data_holder = customMercDataHolder; foreach (Town town in Town.AllTowns) { UpdateCurrentMercenaryTroopAndCount(town); } } }
// Only triggers on loaded games private void OnGameLoaded(CampaignGameStarter campaignGameStarter) { if (custom_merc_data_holder == null) { CustomMercDataHolder customMercDataHolder = new CustomMercDataHolder(); custom_merc_data_holder = customMercDataHolder; foreach (Town town in Town.AllTowns) { UpdateCurrentMercenaryTroopAndCount(town); } } // Add Character if inside of town if (Settlement.CurrentSettlement != null) { AddCustomMercenaryCharacterToTavern(Settlement.CurrentSettlement); } }