mirror of
https://github.com/YouHaveTrouble/YHTMod.git
synced 2026-05-11 21:56:54 +00:00
first successful calamity boss perk integration
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user