From 4e0479262f477b58db2954e1fdce2a54563fc52b Mon Sep 17 00:00:00 2001 From: hide_d Date: Thu, 11 Jun 2020 03:21:26 +0900 Subject: [PATCH] =?UTF-8?q?=EB=B2=84=EA=B7=B8=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hwe/js/battle_simulator.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/hwe/js/battle_simulator.js b/hwe/js/battle_simulator.js index 5162739a..d1c2e0c9 100644 --- a/hwe/js/battle_simulator.js +++ b/hwe/js/battle_simulator.js @@ -13,8 +13,8 @@ jQuery(function($) { if (window.nation) { $('.form_city_level').val(window.city.level); - $('.form_def').val(window.city.def); - $('.form_wall').val(window.city.wall); + $('.form_def').val(parseInt(window.city.def)); + $('.form_wall').val(parseInt(window.city.wall)); $('.form_nation_type').val(window.nation.type); $('.form_nation_level').val(window.nation.level); $('.form_tech').val(parseInt(window.nation.tech / 1000)); @@ -647,8 +647,8 @@ jQuery(function($) { var defenderCity = $.extend({}, defaultCity, allData.defenderCity); defenderCity.nation = 2; defenderCity.city = 3; - defenderCity.wall_max = defenderCity.wall / 5 * 6; - defenderCity.def_max = defenderCity.def / 5 * 6; + defenderCity.wall_max = parseInt(defenderCity.wall / 5 * 6); + defenderCity.def_max = parseInt(defenderCity.def / 5 * 6); var defenderGenerals = []; $.each(allData.defenderGenerals, function() {