public static SwordBlade RandomBlade(SwordTheme theme) { return(BladeByTheme[theme].Random()); }
public static Item GenerateSword(Mod mod, Vector2 position, SwordTheme theme, float dps, int enemyDef) { ProceduralSword 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 SwordHilt RandomHilt(SwordTheme theme) { return(HiltsByTheme[theme].Random()); }