Skip to content

Instantly share code, notes, and snippets.

@adraffy
Created September 21, 2014 10:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save adraffy/b0922e9ca5d9e7b2fcd9 to your computer and use it in GitHub Desktop.
Save adraffy/b0922e9ca5d9e7b2fcd9 to your computer and use it in GitHub Desktop.
package warbase;
import warbase.data.ArmorCurve;
import warbase.types.ArmorT;
import warbase.types.ClassT;
import warbase.types.EquipT;
import warbase.types.GemT;
import warbase.types.QualityT;
import warbase.types.RaceT;
import warbase.types.SocketT;
public class Main {
public static void main(String[] args) {
System.out.println("Red gem matches sockets: " + GemT.RED.sockets(true));
// Red gem matches sockets: [Red, Prismatic]
System.out.println("Red gem fits in sockets: " + GemT.RED.sockets(false));
// Red gem fits in sockets: [Red, Yellow, Blue, Prismatic]
System.out.println("Red socket matches gems: " + SocketT.RED.gems(true));
// Red socket matches gems: [Red, Purple, Orange, Prismatic]
System.out.println("Red socket accepts gems: " + SocketT.RED.gems(false));
// Red socket accepts gems: [Red, Blue, Yellow, Purple, Green, Orange, Prismatic]
System.out.println("Alliance: " + RaceT.A);
// Alliance: [Human, Dwarf, Night Elf, Gnome, Draenei, Worgen, Pandaren (A)]
System.out.println(" Horde: " + RaceT.H);
// Horde: [Orc, Undead, Tauren, Troll, Goblin, Blood Elf, Pandaren (H)]
System.out.println(ClassT.DK.races.complement().extend(RaceT.BE));
// [Blood Elf, Pandaren, Pandaren (A), Pandaren (H)]
System.out.println(ClassT.db.set(ClassT.db.types));
// [Warrior, Paladin, Hunter, Rogue, Priest, Death Knight, Shaman, Mage, Warlock, Monk, Druid]
System.out.println(ArmorCurve.get(586, QualityT.GREEN, ArmorT.LEATHER, EquipT.SHOULDER));
// 73
System.out.println(ArmorCurve.get(615, QualityT.BLUE, ArmorT.LEATHER, EquipT.LEGS));
// 109
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment