Shunsei
Plantera
Hey there!
I'm currently working on a mod which requires that I replace the floating damage text with custom text that has a specified color. I created a GlobalNPC class to override the StrikeNPC() method so that I can load the custom text correctly upon damaging an NPC. However, the vanilla damage text also loads in front of it.
I am not quite sure how I could disable the vanilla text. After scouring the vanilla source code, I believe I have to make use of the clearAll() function inside of the CombatText class, but my efforts have proven to be fruitless thus far.
My apologies if I've overlooked any obvious details, but reading over the wiki a few times doesn't seem to have much information pertaining to this specific issue.
I would greatly appreciate any help on the matter! Thank you!
I'm currently working on a mod which requires that I replace the floating damage text with custom text that has a specified color. I created a GlobalNPC class to override the StrikeNPC() method so that I can load the custom text correctly upon damaging an NPC. However, the vanilla damage text also loads in front of it.
I am not quite sure how I could disable the vanilla text. After scouring the vanilla source code, I believe I have to make use of the clearAll() function inside of the CombatText class, but my efforts have proven to be fruitless thus far.
My apologies if I've overlooked any obvious details, but reading over the wiki a few times doesn't seem to have much information pertaining to this specific issue.
I would greatly appreciate any help on the matter! Thank you!