From d9474afa34bfacc47d4dab51b930452133c10d0f Mon Sep 17 00:00:00 2001 From: MagicBot Date: Sat, 24 Feb 2024 15:30:12 -0500 Subject: [PATCH] Weapon field parsing --- src/engine/objects/ItemTemplate.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/engine/objects/ItemTemplate.java b/src/engine/objects/ItemTemplate.java index b5b18916..6d808818 100644 --- a/src/engine/objects/ItemTemplate.java +++ b/src/engine/objects/ItemTemplate.java @@ -161,8 +161,8 @@ public class ItemTemplate { JSONObject item_weapon = (JSONObject) jsonObject.get("item_weapon"); item_weapon_wepspeed = ((Double) item_weapon.get("weapon_wepspeed")).floatValue(); item_weapon_max_range = ((Double) item_weapon.get("weapon_max_range")).floatValue(); - item_weapon_projectile_id = ((Long) item_weapon.get("projectile_id")).intValue(); - item_weapon_projectile_speed = ((Double) item_weapon.get("weapon_max_range")).floatValue(); + item_weapon_projectile_id = ((Long) item_weapon.get("weapon_projectile_id")).intValue(); + item_weapon_projectile_speed = ((Double) item_weapon.get("weapon_projectile_speed")).floatValue(); item_weapon_combat_idle_anim = ((Long) item_weapon.get("weapon_combat_idle_anime")).intValue(); JSONObject weapon_damage = (JSONObject) jsonObject.get("weapon_damage");