New mechanic: Jail + fixed mob book cover issues
Added new mechanic: jail. Fixed missing card info reference about dropper mobs on the sql, reflecting into erros on the monster book.
This commit is contained in:
@@ -829,4 +829,8 @@ public class AbstractPlayerInteraction {
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
public long getJailTimeLeft() {
|
||||
return getPlayer().getJailExpirationTimeLeft();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -95,11 +95,13 @@ public class EventManager {
|
||||
private List<Integer> getLobbyRange() {
|
||||
try {
|
||||
return convertToIntegerArray((List<Double>)iv.invokeFunction("setLobbyRange", (Object) null));
|
||||
} catch (ScriptException | NoSuchMethodException ex) {
|
||||
ex.printStackTrace();
|
||||
} catch (ScriptException | NoSuchMethodException ex) { // they didn't define a lobby range
|
||||
List<Integer> defaultList = new ArrayList<>();
|
||||
defaultList.add(0);
|
||||
defaultList.add(maxLobbys);
|
||||
|
||||
return defaultList;
|
||||
}
|
||||
|
||||
return new ArrayList<>();
|
||||
}
|
||||
|
||||
public void schedule(String methodName, long delay) {
|
||||
|
||||
Reference in New Issue
Block a user