0.2.0 commit

This commit is contained in:
mikx
2025-02-11 16:04:10 -05:00
commit b861945511
28 changed files with 843 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
using Terraria;
using Terraria.ModLoader;
namespace tMx.Tweaks.Potion
{
public class NoPotionDelay : GlobalItem
{
public override void OnConsumeItem(Item item, Player player)
{
tMxConfigs config = ModContent.GetInstance<tMxConfigs>();
if (item.potion && config.NoPotionDelay)
{
player.ClearBuff(21);
player.potionDelay = 0;
player.potionDelayTime = 0;
}
}
}
}

View File

@@ -0,0 +1,22 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Terraria.ModLoader;
using Terraria;
namespace tMx.Tweaks.Potion
{
internal class PotionLength : GlobalItem
{
public override void OnConsumeItem(Item item, Player player)
{
tMxConfigs config = ModContent.GetInstance<tMxConfigs>();
if (item.potion)
{
}
}
}
}