예제 #1
0
        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);
        }
예제 #2
0
파일: SwordBlade.cs 프로젝트: ShoxTech/kRPG
 public static SwordBlade RandomBlade(SWORDTHEME theme)
 {
     return(bladeByTheme[theme].Random());
 }
예제 #3
0
 public static SwordHilt RandomHilt(SWORDTHEME theme)
 {
     return(hiltsByTheme[theme].Random());
 }