thegigibeast
Terrarian
Hello everyone! I successfully answered my previous question, but I am back with another one. I want to customize the Combat Text that is showing up when we hit a NPC, and I have found how to spawn a new Combat Text (this is in a class extending GlobalItem):
However, I can't seem to find how to prevent the default Combat Text from spawning. Does anyone else have a clue? I searched through the source code and can't find any clue... Google has not been better at finding a solution neither... Anyone?
Code:
public override void ModifyHitNPC(Item item, Player player, NPC target, ref int damage, ref float knockBack, ref bool crit)
{
CombatText.NewText(target.Hitbox, Color.Turquoise, damage, crit, false);
}
However, I can't seem to find how to prevent the default Combat Text from spawning. Does anyone else have a clue? I searched through the source code and can't find any clue... Google has not been better at finding a solution neither... Anyone?