private void HandleDeathMessage(MobileParty mb, CSPartyData dynamicData)
 {
     if (dynamicData.spawnBaseData.deathMessage != null)
     {
         UX.ShowParseDeathMessage(dynamicData.spawnBaseData.deathMessage, dynamicData.latestClosestSettlement.ToString());
     }
 }
        //deal with our parties being removed! Also this is more efficient ;)
        private void OnPartyRemoved(PartyBase p)
        {
            MobileParty mb = p.MobileParty;

            if (mb == null)
            {
                return;
            }

            CSPartyData partyData = DynamicSpawnData.Instance.GetDynamicSpawnData(mb);

            if (partyData != null)
            {
                partyData.spawnBaseData.DecrementNumberSpawned();
                //this is a custom spawns party!!
                OnPartyDeath(mb, partyData);
                ModDebug.ShowMessage(mb.StringId + " has died at " + partyData.latestClosestSettlement + ", reducing the total number to: " + partyData.spawnBaseData.GetNumberSpawned(), DebugMessageType.DeathTrack);
                DynamicSpawnData.Instance.RemoveDynamicSpawnData(mb);
            }
        }
 private void OnPartyDeath(MobileParty mb, CSPartyData dynamicData)
 {
     HandleDeathMessage(mb, dynamicData);
 }