|
|
@ -20,11 +20,21 @@ import java.util.HashMap; |
|
|
|
|
|
|
|
|
|
|
|
public class ItemTemplate { |
|
|
|
public class ItemTemplate { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// MB Dev Notes:
|
|
|
|
|
|
|
|
// This class parses JSON data generated by mbEditor Pro 2.1.
|
|
|
|
|
|
|
|
// Cache definitions are loaded for ItemType.ITEM, ItemType,DEED
|
|
|
|
|
|
|
|
// and ItemType.RUNE.
|
|
|
|
|
|
|
|
//
|
|
|
|
|
|
|
|
// Always read never write!
|
|
|
|
|
|
|
|
// Use copies of fields to avoid side effects.
|
|
|
|
|
|
|
|
|
|
|
|
// Global template lookup
|
|
|
|
// Global template lookup
|
|
|
|
|
|
|
|
|
|
|
|
public static HashMap<Integer, ItemTemplate> templates = new HashMap<>(); |
|
|
|
public static HashMap<Integer, ItemTemplate> templates = new HashMap<>(); |
|
|
|
public int template_id; |
|
|
|
public int template_id; |
|
|
|
|
|
|
|
|
|
|
|
// Template Properties
|
|
|
|
// Template Properties
|
|
|
|
|
|
|
|
|
|
|
|
public String obj_name; |
|
|
|
public String obj_name; |
|
|
|
public boolean obj_pickable; |
|
|
|
public boolean obj_pickable; |
|
|
|
public Vector3fImmutable obj_scale; |
|
|
|
public Vector3fImmutable obj_scale; |
|
|
@ -121,10 +131,8 @@ public class ItemTemplate { |
|
|
|
public boolean rune_group_is_guild = false; |
|
|
|
public boolean rune_group_is_guild = false; |
|
|
|
public String rune_dsc; |
|
|
|
public String rune_dsc; |
|
|
|
public String rune_fx_txt; |
|
|
|
public String rune_fx_txt; |
|
|
|
public EnumSet<mbEnums.MobBehaviourType> rune_group_tactics = EnumSet.noneOf(mbEnums.MobBehaviourType.class); |
|
|
|
public final EnumSet<mbEnums.MobBehaviourType> rune_group_tactics = EnumSet.noneOf(mbEnums.MobBehaviourType.class); |
|
|
|
; |
|
|
|
public final EnumSet<mbEnums.MobBehaviourType> rune_group_role_set = EnumSet.noneOf(mbEnums.MobBehaviourType.class); |
|
|
|
public EnumSet<mbEnums.MobBehaviourType> rune_group_role_set = EnumSet.noneOf(mbEnums.MobBehaviourType.class); |
|
|
|
|
|
|
|
; |
|
|
|
|
|
|
|
public boolean rune_renderable = false; |
|
|
|
public boolean rune_renderable = false; |
|
|
|
public int rune_natural_power_attack; |
|
|
|
public int rune_natural_power_attack; |
|
|
|
public final HashMap<String, String> rune_sparse_data = new HashMap<>(); |
|
|
|
public final HashMap<String, String> rune_sparse_data = new HashMap<>(); |
|
|
|