private void SetAnimalDeathTags(TakeDamage takedamage, DamageEvent damage, ref DeathTags tags) { tags.deathType = tags.killer.Equals(UNKNOWN) ? DeathTypes.unknown : DeathTypes.human; var mutant = takedamage.ToString().Contains("Mutant"); if (takedamage.GetComponent <BearAI>()) { tags.killed = (mutant) ? "Mutant Bear" : "Bear"; return; } if (takedamage.GetComponent <WolfAI>()) { tags.killed = (mutant) ? "Mutant Wolf" : "Wolf"; return; } if (takedamage.GetComponent <StagAI>()) { tags.killed = "Stag"; return; } if (takedamage.GetComponent <ChickenAI>()) { tags.killed = "Chicken"; return; } if (takedamage.GetComponent <RabbitAI>()) { tags.killed = "Rabbit"; return; } if (takedamage.GetComponent <BoarAI>()) { tags.killed = "Boar"; return; } }