first successful calamity boss perk integration

This commit is contained in:
2026-01-11 16:48:13 +01:00
parent 2511d7bfd0
commit 27898f341a
9 changed files with 97 additions and 30 deletions
+18
View File
@@ -0,0 +1,18 @@
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
namespace YHTMod.Buffs;
public class ShroomGlowDebuff : ModBuff {
public override void SetStaticDefaults() {
Main.debuff[Type] = true;
}
public override void Update(NPC npc, ref int buffIndex) {
if (Main.netMode == NetmodeID.MultiplayerClient || Main.netMode == NetmodeID.SinglePlayer) { // client-only
Lighting.AddLight(npc.Center, 0.1f, 0.3f, 0.6f);
}
}
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB