Browse Source

More info on template bootstrap

combat-2
MagicBot 9 months ago
parent
commit
df037a51f0
  1. 5
      src/engine/db/handlers/dbItemHandler.java
  2. 2
      src/engine/objects/ItemTemplate.java

5
src/engine/db/handlers/dbItemHandler.java

@ -195,10 +195,7 @@ public class dbItemHandler extends dbHandlerBase { @@ -195,10 +195,7 @@ public class dbItemHandler extends dbHandlerBase {
itemTemplate.template_id = templateID;
ItemTemplate.templates.put(templateID, itemTemplate);
if (templateTCountMap.entrySet().contains(itemTemplate.item_type))
templateTCountMap.put(itemTemplate.item_type, templateTCountMap.get(itemTemplate.item_type) + 1);
else
templateTCountMap.put(itemTemplate.item_type, 1);
templateTCountMap.merge(itemTemplate.item_type, 1, Integer::sum);
}
Logger.info(templateTCountMap.toString());

2
src/engine/objects/ItemTemplate.java

@ -181,7 +181,7 @@ public class ItemTemplate { @@ -181,7 +181,7 @@ public class ItemTemplate {
// Banes are defined by their sparse data field
if (obj_sparse_data.entrySet().contains("ACTIONRESPONSE"))
if (obj_sparse_data.get("ACTIONRESPONSE") != null)
if (obj_sparse_data.get("ACTIONRESPONSE").equals("4250517122"))
item_bane_rank = ((Long) jsonObject.get("item_bane_rank")).intValue();

Loading…
Cancel
Save