I am making health and attack power increase for certain mobs.
But it doesn't work, what's the problem?
object OnEntityTakeDamage(BaseCombatEntity entity, HitInfo info)
{
if(entity.ShortPrefabName.Contains("zombie") && entity.ShortPrefabName.Contains("wolf"))
{
info.damageTypes.Scale(Rust.DamageType.Generic, 1f);
entity.InitializeHealth(1000f, 1000f);
}
return null;
}