43public class EquipmentDefinitionParser
extends GsonParser {
45 public EquipmentDefinitionParser() {
46 super(
"def/equipment/equipment_definitions");
49 public static void main(String[] args) {
50 new EquipmentDefinitionParser().run();
56 public void initialize(
int size) {
61 protected void parse(JsonObject data) {
62 int id = data.get(
"id").getAsInt();
65 if (definition.getEquipmentType() ==
EquipmentType.NOT_WIELDABLE) {
66 String name = definition.
getName().toLowerCase();
67 if (name.startsWith(
"hood") || name.endsWith(
"hood")) {
69 }
else if (name.contains(
"full helm")) {
71 }
else if (name.contains(
"med helm")) {
73 }
else if (name.contains(
"helm")) {
74 if (name.startsWith(
"dharok")) {
89 private static int getReq(String first, String second,
EquipmentType type) {
98 if (type == EquipmentType.WEAPON || type == EquipmentType.ARROWS) {
104 if (type == EquipmentType.WEAPON || type == EquipmentType.ARROWS) {
110 if (type == EquipmentType.WEAPON || type == EquipmentType.ARROWS) {
116 if (type == EquipmentType.WEAPON || type == EquipmentType.ARROWS) {
122 if (type == EquipmentType.WEAPON || type == EquipmentType.ARROWS) {
128 case "toktz-ket-xil":
129 if (type == EquipmentType.WEAPON || type == EquipmentType.ARROWS) {
135 if (second.equals(
"mitre") || second.equals(
"robe")) {
139 if (second.startsWith(
"plate") || second.startsWith(
"full") || second.startsWith(
"kite")) {
142 if (type == EquipmentType.WEAPON) {
148 if (second.equals(
"mitre") || second.equals(
"robe")) {
152 if (second.startsWith(
"plate") || second.startsWith(
"full") || second.startsWith(
"kite")) {
155 if (type == EquipmentType.WEAPON) {
167 if (type == EquipmentType.WEAPON) {
181 if (second.equals(
"mitre") || second.equals(
"robe")) {
184 if (type == EquipmentType.WEAPON) {
193 if (type == EquipmentType.RING) {
202 if (type != EquipmentType.BODY) {
209 if (type != EquipmentType.BODY) {
227 if (type == EquipmentType.GLOVES) {