Exemplo n.º 1
0
  /**
   * Gets the experience for a creature kill.
   *
   * @param creature creature
   * @return experience
   */
  public Double getExp(Creature creature) {

    Double exp =
        creatureExp.get(creature.getClass().getSimpleName().toLowerCase().replace("craft", ""));

    if (exp == null) exp = creatureExp.get("default");

    if (exp == null) return 0.0;

    return exp;
  }