public WeaponData GetRandomWeapon(int tier) { WeaponType wt = RandomEnumPicker.GetRandomWeaponType(); Roll roll = RandomEnumPicker.GetRandomRollType(); Debug.Log("Weapon: " + wt + " " + roll + " tier " + tier); WeaponData wd = new WeaponData(wt, tier, roll); return(wd); }
private void addWeaknessesAndResistences(EnemyData enemy) { WeaponType wt1 = RandomEnumPicker.GetRandomWeaponType(); WeaponType wt2; do { wt2 = RandomEnumPicker.GetRandomWeaponType(); } while (wt1 == wt2); enemy.Weaknesses.Add(wt1); enemy.Resistences.Add(wt2); }