mirror of
https://github.com/ProjectSWGCore/Holocore.git
synced 2026-10-20 10:03:02 -04:00
Moved many things into the engine and removed the casting from getCreatureObject
This commit is contained in:
@@ -1,24 +0,0 @@
|
||||
package resources.objects.creature;
|
||||
|
||||
public enum CreatureDifficulty {
|
||||
NORMAL (0x00),
|
||||
ELITE (0x01),
|
||||
BOSS (0x01);
|
||||
|
||||
private int difficulty;
|
||||
|
||||
CreatureDifficulty(int difficulty) {
|
||||
this.difficulty = difficulty;
|
||||
}
|
||||
|
||||
public byte getDifficulty() {
|
||||
return (byte) difficulty;
|
||||
}
|
||||
|
||||
public static final CreatureDifficulty getForDifficulty(int difficulty) {
|
||||
for (CreatureDifficulty d : values())
|
||||
if (d.getDifficulty() == difficulty)
|
||||
return d;
|
||||
return NORMAL;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user