Add sell prices to most materials, add Singularity materials

This commit is contained in:
2025-11-10 11:46:42 +00:00
parent c6ca94d1be
commit 1ccea8b5fa
11 changed files with 98 additions and 1 deletions
@@ -0,0 +1,39 @@
using Terraria;
using Terraria.ModLoader;
namespace ForgottenWawiTech.Content.Items.Prefixes
{
public class SingularityPowered : ModPrefix
{
public override PrefixCategory Category => PrefixCategory.AnyWeapon;
// Prevent from being obtained through Goblin Tinkerer reforging
public override bool CanRoll(Item item) => false;
// Also prevent random roll chances on spawn
public override float RollChance(Item item) => 0f;
// +100% damage, +50% use time
public override void SetStats(
ref float damageMult,
ref float knockbackMult,
ref float useTimeMult,
ref float scaleMult,
ref float shootSpeedMult,
ref float manaMult,
ref int critBonus)
{
damageMult = 2f;
knockbackMult = 1.5f;
shootSpeedMult = 1.5f;
useTimeMult = 1.5f;
}
// Increase item value due to powerful stats
public override void ModifyValue(ref float valueMult)
{
valueMult *= 2f;
}
}
}