mirror of
https://github.com/collinsmith/riiablo.git
synced 2025-01-20 09:17:29 +07:00
Assigned class type to variable
This commit is contained in:
parent
66d1427a9e
commit
37a4df94d9
@ -28,10 +28,11 @@ public class Actioneer extends PassiveSystem {
|
||||
final Skills.Entry skill = Riiablo.files.skills.get(skillId);
|
||||
log.trace("casting skill: {}", skill);
|
||||
|
||||
byte mode = (byte) mClass.get(entityId).type.getMode(skill.anim);
|
||||
final Class.Type type = mClass.get(entityId).type;
|
||||
byte mode = (byte) type.getMode(skill.anim);
|
||||
log.trace("mode: {}", mode);
|
||||
if (mode == -1) { // TODO: replace -1 with some const INVALID_SKILL
|
||||
mode = (byte) mClass.get(entityId).type.getMode("SC");
|
||||
mode = (byte) type.getMode("SC");
|
||||
log.trace("mode changed to {} because it was invalid", mode);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user