makela пре 2 недеља
родитељ
комит
d30b49f233
1 измењених фајлова са 4 додато и 2 уклоњено
  1. 4 2
      project/model/embattle.lua

+ 4 - 2
project/model/embattle.lua

@@ -106,6 +106,10 @@ function MODULE.max_power_hero(character)
     for k, v in pairs(d.adventure.list) do
         local hero_data = hero.hero_get(character, v.sid)
         local power = powerfunc.build_role(character, hero_data)
+        if character.uid == "01-100001" then
+            logger.trace("max_power_hero:"..stringify(hero_data or {}))
+            logger.trace("max_power_hero: power:"..(power or 0)))
+        end
         if power and power > max_power then
             max_power = power
             hero_info = hero_data
@@ -240,8 +244,6 @@ function THIS.embattle_battle(character, args)
 end
 
 
-
-
 function THIS.embattle_get_data(character, args)
     local data_conf_list = assert(asset.DataConfig_proto, "DataConfig_proto")
     local d = _M.assert_get(character)