Skip to content

Commit

Permalink
v0.2
Browse files Browse the repository at this point in the history
added small bit of code to do with the "start enabled" option
  • Loading branch information
NotSoEpic authored Dec 27, 2020
1 parent 8d6fc8d commit cd061d1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Items/EndlessEnabler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using System.Collections.Generic;
using static Terraria.ModLoader.ModContent;

namespace TrueEndless.Items
{
Expand Down Expand Up @@ -59,15 +60,15 @@ public override bool UseItem(Player player)
{
Main.NewText("Endless Items Disabled", new Color(242, 24, 24));
}
p.infinity = false;
} else
{
if (Main.myPlayer == player.whoAmI)
{
Main.NewText("Endless Items Enabled", new Color(24, 242, 24));
}
p.infinity = true;
}
p.infinity = !p.infinity;
p.usedInfinity = true;
return true;
}

Expand Down

0 comments on commit cd061d1

Please sign in to comment.