configure a code style that is not completely cursed

This commit is contained in:
2026-01-07 19:08:34 +01:00
parent a945f17711
commit fff8b5e7f1
18 changed files with 188 additions and 298 deletions
+6 -11
View File
@@ -4,24 +4,19 @@ using YHTMod.Projectiles.Weapons;
namespace YHTMod.Buffs;
public class ToclafaneMinionBuff : ModBuff
{
public override void SetStaticDefaults()
{
public class ToclafaneMinionBuff : ModBuff {
public override void SetStaticDefaults() {
Main.buffNoSave[Type] = true;
Main.buffNoTimeDisplay[Type] = true;
}
public override void Update(Player player, ref int buffIndex)
{
if (player.ownedProjectileCounts[ModContent.ProjectileType<ToclafaneMinion>()] > 0)
{
public override void Update(Player player, ref int buffIndex) {
if (player.ownedProjectileCounts[ModContent.ProjectileType<ToclafaneMinion>()] > 0) {
player.buffTime[buffIndex] = 18000;
}
else
{
else {
player.DelBuff(buffIndex);
buffIndex--;
}
}
}
}