Save_1401
Steampunker
I am trying to make a mod that adds more prefixes, but I cannot figure out how to assign the SetStats() parameters values, so nothing happens when a weapon has the modifier. Can someone tell me how to assign the parameters values?
This is my code:
This is my code:
[/
]
C#:
using System;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text.RegularExpressions;
using Terraria.ID;
using Terraria;
using Terraria.ModLoader;
using Terraria.Utilities;
namespace TheModifierMod.Items
{
//SetStats(ref float damageMult, ref float knockbackMult, ref float useTimeMult, ref float scaleMult, ref float shootSpeedMult, ref float manaMult, ref int critBonus);
public class Ungodly : ModPrefix
{
static float damageMult = 1.5f;
static float knockbackMult = 1.5f;
static float useTimeMult = 0.5f;
static float scaleMult = 1f;
static float shootSpeedMult = 1f;
static float manaMult = 1f;
static int critBonus = 10;
static float valueMult = 1.5f;
public override PrefixCategory Category => PrefixCategory.AnyWeapon;
public override void Apply(Item item)
{
}
public override void ModifyValue(ref float valueMult)
{
}
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)
{
}
public override void SetDefaults()
{
}
}
}
Last edited: