Browse Source

Parse offering info.

combat-2
MagicBot 8 months ago
parent
commit
54b7fc2212
  1. 2
      src/engine/objects/ItemTemplate.java

2
src/engine/objects/ItemTemplate.java

@ -182,7 +182,7 @@ public class ItemTemplate {
for (Object entry : offering_data) { for (Object entry : offering_data) {
JSONObject offering_entry = (JSONObject) entry; JSONObject offering_entry = (JSONObject) entry;
String offering_type = ((String) offering_entry.get("offering_type")).replaceAll("-", ""); String offering_type = ((String) offering_entry.get("offering_type")).replaceAll("-", "");
int offering_value = ((Double) offering_entry.get("offering_value")).intValue(); int offering_value = ((Long) offering_entry.get("offering_value")).intValue();
item_offering_info.put(offering_type, offering_value); item_offering_info.put(offering_type, offering_value);
} }

Loading…
Cancel
Save