SteamWar/SpigotCore
Archiviert
13
0

Adding/removing Schemtypes #26

Zusammengeführt
Lixfel hat 2 Commits von new_schemtypes nach master 2020-01-07 06:30:14 +01:00 zusammengeführt

Datei anzeigen

@ -22,16 +22,19 @@ public enum SchematicType {
CWarShip1_9("CWS1.9", Type.CHECK_TYPE),
CWarShip1_8("CWS1.8", Type.CHECK_TYPE),
CWarGear1_7("CWG1.7", Type.CHECK_TYPE),
WarGear1_14("WG1.14", Type.FIGHT_TYPE, null),
MPPWarGear1_12("MPPWG", Type.FIGHT_TYPE, CMPPWarGear1_12),
SGWarShip("SGWS", Type.FIGHT_TYPE, CSGWarShip),
WarGear1_12("WG1.12", Type.FIGHT_TYPE, null),
WarShip1_12("WS1.12", Type.FIGHT_TYPE, null),
MiniWarGear1_12("MWG1.12", Type.FIGHT_TYPE, null),
WarGear1_10("WG1.10", Type.FIGHT_TYPE, CWarGear1_10),
WarShip1_10("WS1.10", Type.FIGHT_TYPE, CWarShip1_10),
WarShip1_9("WS1.9", Type.FIGHT_TYPE, CWarShip1_9),
WarShip1_8("WS1.8", Type.FIGHT_TYPE, CWarShip1_8),
WarGear1_7("WG1.7", Type.FIGHT_TYPE, CWarGear1_7),
WarGear1_7("WG1.7", Type.FIGHT_TYPE, CWarGear1_7)
COldschoolWG("COWG", Type.CHECK_TYPE),
OldschoolWG("OWG", Type.FIGHT_TYPE, COldschoolWG);
;
private static Map<String, SchematicType> fromDB = new HashMap<>();
@ -56,7 +59,7 @@ public enum SchematicType {
}
public boolean isAssignable(){
return type == Type.NORMAL || type == Type.FIGHT_TYPE;
return type == Type.NORMAL || (type == Type.FIGHT_TYPE && checkType != null);
}
public SchematicType checkType(){