Files
CalamityModPublic/Buffs/Potions/PhotosynthesisBuff.cs
T

24 lines
670 B
C#

using Terraria;
using Terraria.ModLoader;
namespace CalamityMod.Buffs.Potions
{
public class PhotosynthesisBuff : ModBuff
{
public override void SetDefaults()
{
DisplayName.SetDefault("Photosynthesis");
Description.SetDefault("Life regen boosted, more during daytime, and hearts heal more HP");
Main.debuff[Type] = false;
Main.pvpBuff[Type] = true;
Main.buffNoSave[Type] = false;
longerExpertDebuff = false;
}
public override void Update(Player player, ref int buffIndex)
{
player.Calamity().photosynthesis = true;
}
}
}