public static Item GenerateSword(Mod mod, Vector2 position, SWORDTHEME theme, float dps, int enemyDef) { ProceduralSword sword; sword = NewSword(mod, position, SwordHilt.RandomHilt(theme), SwordBlade.RandomBlade(theme), Main.rand.Next(5) < 3 ? SwordAccent.RandomAccent() : SwordAccent.none, dps, enemyDef); return(sword.item); }
public static SwordBlade RandomBlade(SWORDTHEME theme) { return(bladeByTheme[theme].Random()); }
public static SwordHilt RandomHilt(SWORDTHEME theme) { return(hiltsByTheme[theme].Random()); }