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:
ronancpl
2017-05-20 19:58:24 -03:00
parent cb49edc3cd
commit 7fcdc07b5b
14 changed files with 494 additions and 261 deletions

View File

@@ -829,4 +829,8 @@ public class AbstractPlayerInteraction {
}
return null;
}
public long getJailTimeLeft() {
return getPlayer().getJailExpirationTimeLeft();
}
}

View File

@@ -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) {