mirror of
https://github.com/ProjectSWGCore/Holocore.git
synced 2026-10-05 20:13:20 -04:00
Merged Engine into the Core! Woooo open source
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
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