mirror of
https://github.com/YouHaveTrouble/YHTMod.git
synced 2026-05-11 21:56:54 +00:00
19 lines
475 B
C#
19 lines
475 B
C#
|
|
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);
|
|
}
|
|
}
|
|
}
|