Add sell prices to most materials, add Singularity materials
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user