Exemple #1
0
 public static SwordBlade RandomBlade(SwordTheme theme)
 {
     return(BladeByTheme[theme].Random());
 }
Exemple #2
0
        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);
        }
Exemple #3
0
 public static SwordHilt RandomHilt(SwordTheme theme)
 {
     return(HiltsByTheme[theme].Random());
 }