Beispiel #1
0
 @Override
 protected String info() {
   final String dataStr = data < 0 ? "" : ":" + data;
   final String locStr =
       location == null ? "" : "; LOC: " + SerUtils.displayLocation(location) + "; RNG: " + range;
   final String flags = questItem ? " (-q)" : "";
   return material.name()
       + "["
       + material.getId()
       + dataStr
       + "]; AMT: "
       + amount
       + locStr
       + flags;
 }
Beispiel #2
0
 @Override
 protected String show(final int progress) {
   final String datStr = data < 0 ? "" : " (data" + data + ")";
   final String spec = questItem ? " special" : "";
   final String locStr = location == null ? "" : " at " + SerUtils.displayLocation(location);
   return "Drop "
       + spec
       + material.name().toLowerCase().replace('_', ' ')
       + datStr
       + locStr
       + " - "
       + progress
       + "/"
       + amount
       + ".";
 }