diff --git a/lua/app/common/data_manager.lua b/lua/app/common/data_manager.lua index 4b637d9c..2929bf9e 100644 --- a/lua/app/common/data_manager.lua +++ b/lua/app/common/data_manager.lua @@ -188,7 +188,7 @@ function DataManager:initWithServerData(data) -- 商店礼包都初始化完了后检查一下每日红点 -- self.ShopData:checkShopDiscountRedPoint() -- self.ShopData:checkLoginPopInfo() -- 需要写在shopdata所有初始化之后 - self.SummonData:init(data.summon_data) + self.SummonData:init(data.summon_data, data.summon_shop) self.AIHelperData:init(nil, true) -- 任务数据最后初始化,依赖其他模块的数据 diff --git a/lua/app/config/attr.lua b/lua/app/config/attr.lua index 5948a6a2..9564491d 100644 --- a/lua/app/config/attr.lua +++ b/lua/app/config/attr.lua @@ -449,6 +449,18 @@ local attr = { ["name"]="attr_hpp_all", ["power"]=50, ["is_percent"]=1 + }, + [81]={ + ["id"]=81, + ["name"]="attr_monster_dmg", + ["power"]=50, + ["is_percent"]=1 + }, + [82]={ + ["id"]=82, + ["name"]="attr_boss_dmg", + ["power"]=50, + ["is_percent"]=1 } } local keys = { @@ -532,12 +544,14 @@ local keys = { ["attr_normal_hurt"]=attr[77], ["attr_skill_hurt"]=attr[78], ["dmgdec"]=attr[79], - ["attr_hpp_all"]=attr[80] + ["attr_hpp_all"]=attr[80], + ["attr_monster_dmg"]=attr[81], + ["attr_boss_dmg"]=attr[82] } } local config = { data=attr, keys=keys, -count=80 +count=82 } return config \ No newline at end of file diff --git a/lua/app/config/battle_exp.lua b/lua/app/config/battle_exp.lua index 24ba2153..aa700348 100644 --- a/lua/app/config/battle_exp.lua +++ b/lua/app/config/battle_exp.lua @@ -1,12 +1,12 @@ local battle_exp = { [1]={ - ["exp"]=1 + ["exp"]=10000 }, [2]={ - ["exp"]=1 + ["exp"]=10000 }, [3]={ - ["exp"]=1 + ["exp"]=10000 }, [4]={ ["exp"]=10000 diff --git a/lua/app/config/buff.lua b/lua/app/config/buff.lua index cb4560b9..68c5619d 100644 --- a/lua/app/config/buff.lua +++ b/lua/app/config/buff.lua @@ -1000,6 +1000,41 @@ local buff = { ["icon"]="attr_normal_hurtp_all_add", ["show_name"]=true, ["ispercent"]=1 + }, + [106]={ + ["id"]=106, + ["name"]="red_refresh_weight", + ["buff_type"]=7, + ["stack"]=0, + ["decr"]=3 + }, + [107]={ + ["id"]=107, + ["name"]="yellow_refresh_weight", + ["buff_type"]=7, + ["stack"]=0, + ["decr"]=3 + }, + [108]={ + ["id"]=108, + ["name"]="green_refresh_weight", + ["buff_type"]=7, + ["stack"]=0, + ["decr"]=3 + }, + [109]={ + ["id"]=109, + ["name"]="blue_refresh_weight", + ["buff_type"]=7, + ["stack"]=0, + ["decr"]=3 + }, + [110]={ + ["id"]=110, + ["name"]="purple_refresh_weight", + ["buff_type"]=7, + ["stack"]=0, + ["decr"]=3 } } local keys = { @@ -1108,12 +1143,17 @@ local keys = { ["hpp_purple_add"]=buff[102], ["forever_normal_attack_add"]=buff[103], ["forever_uncontrolled"]=buff[104], - ["attr_normal_hurtp_all_add"]=buff[105] + ["attr_normal_hurtp_all_add"]=buff[105], + ["red_refresh_weight"]=buff[106], + ["yellow_refresh_weight"]=buff[107], + ["green_refresh_weight"]=buff[108], + ["blue_refresh_weight"]=buff[109], + ["purple_refresh_weight"]=buff[110] } } local config = { data=buff, keys=keys, -count=105 +count=110 } return config \ No newline at end of file diff --git a/lua/app/config/item.lua b/lua/app/config/item.lua index 93ad1c94..dabbe7af 100644 --- a/lua/app/config/item.lua +++ b/lua/app/config/item.lua @@ -141,32 +141,38 @@ local item = { ["icon"]="21", ["box_drop"]={ { - ["type"]=1, - ["id"]=9, + ["type"]=2, + ["id"]=111, ["num"]=1, ["weight"]=100 }, { - ["type"]=1, - ["id"]=10, + ["type"]=2, + ["id"]=211, ["num"]=1, ["weight"]=100 }, { - ["type"]=1, - ["id"]=11, + ["type"]=2, + ["id"]=311, ["num"]=1, ["weight"]=100 }, { - ["type"]=1, - ["id"]=12, + ["type"]=2, + ["id"]=411, ["num"]=1, ["weight"]=100 }, { - ["type"]=1, - ["id"]=13, + ["type"]=2, + ["id"]=511, + ["num"]=1, + ["weight"]=100 + }, + { + ["type"]=2, + ["id"]=611, ["num"]=1, ["weight"]=100 } @@ -178,32 +184,38 @@ local item = { ["icon"]="22", ["box_drop"]={ { - ["type"]=1, - ["id"]=9, + ["type"]=2, + ["id"]=112, ["num"]=1, ["weight"]=100 }, { - ["type"]=1, - ["id"]=10, + ["type"]=2, + ["id"]=212, ["num"]=1, ["weight"]=100 }, { - ["type"]=1, - ["id"]=11, + ["type"]=2, + ["id"]=312, ["num"]=1, ["weight"]=100 }, { - ["type"]=1, - ["id"]=12, + ["type"]=2, + ["id"]=412, ["num"]=1, ["weight"]=100 }, { - ["type"]=1, - ["id"]=13, + ["type"]=2, + ["id"]=512, + ["num"]=1, + ["weight"]=100 + }, + { + ["type"]=2, + ["id"]=612, ["num"]=1, ["weight"]=100 } @@ -215,32 +227,38 @@ local item = { ["icon"]="23", ["box_drop"]={ { - ["type"]=1, - ["id"]=9, + ["type"]=2, + ["id"]=121, ["num"]=1, ["weight"]=100 }, { - ["type"]=1, - ["id"]=10, + ["type"]=2, + ["id"]=221, ["num"]=1, ["weight"]=100 }, { - ["type"]=1, - ["id"]=11, + ["type"]=2, + ["id"]=321, ["num"]=1, ["weight"]=100 }, { - ["type"]=1, - ["id"]=12, + ["type"]=2, + ["id"]=421, ["num"]=1, ["weight"]=100 }, { - ["type"]=1, - ["id"]=13, + ["type"]=2, + ["id"]=521, + ["num"]=1, + ["weight"]=100 + }, + { + ["type"]=2, + ["id"]=621, ["num"]=1, ["weight"]=100 } @@ -252,32 +270,38 @@ local item = { ["icon"]="24", ["box_drop"]={ { - ["type"]=1, - ["id"]=9, + ["type"]=2, + ["id"]=122, ["num"]=1, ["weight"]=100 }, { - ["type"]=1, - ["id"]=10, + ["type"]=2, + ["id"]=222, ["num"]=1, ["weight"]=100 }, { - ["type"]=1, - ["id"]=11, + ["type"]=2, + ["id"]=322, ["num"]=1, ["weight"]=100 }, { - ["type"]=1, - ["id"]=12, + ["type"]=2, + ["id"]=422, ["num"]=1, ["weight"]=100 }, { - ["type"]=1, - ["id"]=13, + ["type"]=2, + ["id"]=522, + ["num"]=1, + ["weight"]=100 + }, + { + ["type"]=2, + ["id"]=622, ["num"]=1, ["weight"]=100 } @@ -289,32 +313,38 @@ local item = { ["icon"]="25", ["box_drop"]={ { - ["type"]=1, - ["id"]=9, + ["type"]=2, + ["id"]=123, ["num"]=1, ["weight"]=100 }, { - ["type"]=1, - ["id"]=10, + ["type"]=2, + ["id"]=223, ["num"]=1, ["weight"]=100 }, { - ["type"]=1, - ["id"]=11, + ["type"]=2, + ["id"]=323, ["num"]=1, ["weight"]=100 }, { - ["type"]=1, - ["id"]=12, + ["type"]=2, + ["id"]=423, ["num"]=1, ["weight"]=100 }, { - ["type"]=1, - ["id"]=13, + ["type"]=2, + ["id"]=523, + ["num"]=1, + ["weight"]=100 + }, + { + ["type"]=2, + ["id"]=623, ["num"]=1, ["weight"]=100 } @@ -326,32 +356,38 @@ local item = { ["icon"]="26", ["box_drop"]={ { - ["type"]=1, - ["id"]=9, + ["type"]=2, + ["id"]=131, ["num"]=1, ["weight"]=100 }, { - ["type"]=1, - ["id"]=10, + ["type"]=2, + ["id"]=231, ["num"]=1, ["weight"]=100 }, { - ["type"]=1, - ["id"]=11, + ["type"]=2, + ["id"]=331, ["num"]=1, ["weight"]=100 }, { - ["type"]=1, - ["id"]=12, + ["type"]=2, + ["id"]=431, ["num"]=1, ["weight"]=100 }, { - ["type"]=1, - ["id"]=13, + ["type"]=2, + ["id"]=531, + ["num"]=1, + ["weight"]=100 + }, + { + ["type"]=2, + ["id"]=631, ["num"]=1, ["weight"]=100 } @@ -363,32 +399,38 @@ local item = { ["icon"]="27", ["box_drop"]={ { - ["type"]=1, - ["id"]=9, + ["type"]=2, + ["id"]=132, ["num"]=1, ["weight"]=100 }, { - ["type"]=1, - ["id"]=10, + ["type"]=2, + ["id"]=232, ["num"]=1, ["weight"]=100 }, { - ["type"]=1, - ["id"]=11, + ["type"]=2, + ["id"]=332, ["num"]=1, ["weight"]=100 }, { - ["type"]=1, - ["id"]=12, + ["type"]=2, + ["id"]=432, ["num"]=1, ["weight"]=100 }, { - ["type"]=1, - ["id"]=13, + ["type"]=2, + ["id"]=532, + ["num"]=1, + ["weight"]=100 + }, + { + ["type"]=2, + ["id"]=632, ["num"]=1, ["weight"]=100 } @@ -400,32 +442,38 @@ local item = { ["icon"]="28", ["box_drop"]={ { - ["type"]=1, - ["id"]=9, + ["type"]=2, + ["id"]=133, ["num"]=1, ["weight"]=100 }, { - ["type"]=1, - ["id"]=10, + ["type"]=2, + ["id"]=233, ["num"]=1, ["weight"]=100 }, { - ["type"]=1, - ["id"]=11, + ["type"]=2, + ["id"]=333, ["num"]=1, ["weight"]=100 }, { - ["type"]=1, - ["id"]=12, + ["type"]=2, + ["id"]=433, ["num"]=1, ["weight"]=100 }, { - ["type"]=1, - ["id"]=13, + ["type"]=2, + ["id"]=533, + ["num"]=1, + ["weight"]=100 + }, + { + ["type"]=2, + ["id"]=633, ["num"]=1, ["weight"]=100 } @@ -437,32 +485,38 @@ local item = { ["icon"]="29", ["box_drop"]={ { - ["type"]=1, - ["id"]=9, + ["type"]=2, + ["id"]=134, ["num"]=1, ["weight"]=100 }, { - ["type"]=1, - ["id"]=10, + ["type"]=2, + ["id"]=234, ["num"]=1, ["weight"]=100 }, { - ["type"]=1, - ["id"]=11, + ["type"]=2, + ["id"]=334, ["num"]=1, ["weight"]=100 }, { - ["type"]=1, - ["id"]=12, + ["type"]=2, + ["id"]=434, ["num"]=1, ["weight"]=100 }, { - ["type"]=1, - ["id"]=13, + ["type"]=2, + ["id"]=534, + ["num"]=1, + ["weight"]=100 + }, + { + ["type"]=2, + ["id"]=634, ["num"]=1, ["weight"]=100 } @@ -474,32 +528,38 @@ local item = { ["icon"]="30", ["box_drop"]={ { - ["type"]=1, - ["id"]=9, + ["type"]=2, + ["id"]=141, ["num"]=1, ["weight"]=100 }, { - ["type"]=1, - ["id"]=10, + ["type"]=2, + ["id"]=241, ["num"]=1, ["weight"]=100 }, { - ["type"]=1, - ["id"]=11, + ["type"]=2, + ["id"]=341, ["num"]=1, ["weight"]=100 }, { - ["type"]=1, - ["id"]=12, + ["type"]=2, + ["id"]=441, ["num"]=1, ["weight"]=100 }, { - ["type"]=1, - ["id"]=13, + ["type"]=2, + ["id"]=541, + ["num"]=1, + ["weight"]=100 + }, + { + ["type"]=2, + ["id"]=641, ["num"]=1, ["weight"]=100 } @@ -511,32 +571,38 @@ local item = { ["icon"]="31", ["box_drop"]={ { - ["type"]=1, - ["id"]=9, + ["type"]=2, + ["id"]=142, ["num"]=1, ["weight"]=100 }, { - ["type"]=1, - ["id"]=10, + ["type"]=2, + ["id"]=242, ["num"]=1, ["weight"]=100 }, { - ["type"]=1, - ["id"]=11, + ["type"]=2, + ["id"]=342, ["num"]=1, ["weight"]=100 }, { - ["type"]=1, - ["id"]=12, + ["type"]=2, + ["id"]=442, ["num"]=1, ["weight"]=100 }, { - ["type"]=1, - ["id"]=13, + ["type"]=2, + ["id"]=542, + ["num"]=1, + ["weight"]=100 + }, + { + ["type"]=2, + ["id"]=642, ["num"]=1, ["weight"]=100 } @@ -548,32 +614,38 @@ local item = { ["icon"]="32", ["box_drop"]={ { - ["type"]=1, - ["id"]=9, + ["type"]=2, + ["id"]=143, ["num"]=1, ["weight"]=100 }, { - ["type"]=1, - ["id"]=10, + ["type"]=2, + ["id"]=243, ["num"]=1, ["weight"]=100 }, { - ["type"]=1, - ["id"]=11, + ["type"]=2, + ["id"]=343, ["num"]=1, ["weight"]=100 }, { - ["type"]=1, - ["id"]=12, + ["type"]=2, + ["id"]=443, ["num"]=1, ["weight"]=100 }, { - ["type"]=1, - ["id"]=13, + ["type"]=2, + ["id"]=543, + ["num"]=1, + ["weight"]=100 + }, + { + ["type"]=2, + ["id"]=643, ["num"]=1, ["weight"]=100 } @@ -585,32 +657,38 @@ local item = { ["icon"]="33", ["box_drop"]={ { - ["type"]=1, - ["id"]=9, + ["type"]=2, + ["id"]=144, ["num"]=1, ["weight"]=100 }, { - ["type"]=1, - ["id"]=10, + ["type"]=2, + ["id"]=244, ["num"]=1, ["weight"]=100 }, { - ["type"]=1, - ["id"]=11, + ["type"]=2, + ["id"]=344, ["num"]=1, ["weight"]=100 }, { - ["type"]=1, - ["id"]=12, + ["type"]=2, + ["id"]=444, ["num"]=1, ["weight"]=100 }, { - ["type"]=1, - ["id"]=13, + ["type"]=2, + ["id"]=544, + ["num"]=1, + ["weight"]=100 + }, + { + ["type"]=2, + ["id"]=644, ["num"]=1, ["weight"]=100 } @@ -622,32 +700,38 @@ local item = { ["icon"]="34", ["box_drop"]={ { - ["type"]=1, - ["id"]=9, + ["type"]=2, + ["id"]=145, ["num"]=1, ["weight"]=100 }, { - ["type"]=1, - ["id"]=10, + ["type"]=2, + ["id"]=245, ["num"]=1, ["weight"]=100 }, { - ["type"]=1, - ["id"]=11, + ["type"]=2, + ["id"]=345, ["num"]=1, ["weight"]=100 }, { - ["type"]=1, - ["id"]=12, + ["type"]=2, + ["id"]=445, ["num"]=1, ["weight"]=100 }, { - ["type"]=1, - ["id"]=13, + ["type"]=2, + ["id"]=545, + ["num"]=1, + ["weight"]=100 + }, + { + ["type"]=2, + ["id"]=645, ["num"]=1, ["weight"]=100 } @@ -659,32 +743,38 @@ local item = { ["icon"]="35", ["box_drop"]={ { - ["type"]=1, - ["id"]=9, + ["type"]=2, + ["id"]=151, ["num"]=1, ["weight"]=100 }, { - ["type"]=1, - ["id"]=10, + ["type"]=2, + ["id"]=251, ["num"]=1, ["weight"]=100 }, { - ["type"]=1, - ["id"]=11, + ["type"]=2, + ["id"]=351, ["num"]=1, ["weight"]=100 }, { - ["type"]=1, - ["id"]=12, + ["type"]=2, + ["id"]=451, ["num"]=1, ["weight"]=100 }, { - ["type"]=1, - ["id"]=13, + ["type"]=2, + ["id"]=551, + ["num"]=1, + ["weight"]=100 + }, + { + ["type"]=2, + ["id"]=651, ["num"]=1, ["weight"]=100 } @@ -696,32 +786,38 @@ local item = { ["icon"]="36", ["box_drop"]={ { - ["type"]=1, - ["id"]=9, + ["type"]=2, + ["id"]=152, ["num"]=1, ["weight"]=100 }, { - ["type"]=1, - ["id"]=10, + ["type"]=2, + ["id"]=252, ["num"]=1, ["weight"]=100 }, { - ["type"]=1, - ["id"]=11, + ["type"]=2, + ["id"]=352, ["num"]=1, ["weight"]=100 }, { - ["type"]=1, - ["id"]=12, + ["type"]=2, + ["id"]=452, ["num"]=1, ["weight"]=100 }, { - ["type"]=1, - ["id"]=13, + ["type"]=2, + ["id"]=552, + ["num"]=1, + ["weight"]=100 + }, + { + ["type"]=2, + ["id"]=652, ["num"]=1, ["weight"]=100 } @@ -733,32 +829,38 @@ local item = { ["icon"]="37", ["box_drop"]={ { - ["type"]=1, - ["id"]=9, + ["type"]=2, + ["id"]=153, ["num"]=1, ["weight"]=100 }, { - ["type"]=1, - ["id"]=10, + ["type"]=2, + ["id"]=253, ["num"]=1, ["weight"]=100 }, { - ["type"]=1, - ["id"]=11, + ["type"]=2, + ["id"]=353, ["num"]=1, ["weight"]=100 }, { - ["type"]=1, - ["id"]=12, + ["type"]=2, + ["id"]=453, ["num"]=1, ["weight"]=100 }, { - ["type"]=1, - ["id"]=13, + ["type"]=2, + ["id"]=553, + ["num"]=1, + ["weight"]=100 + }, + { + ["type"]=2, + ["id"]=653, ["num"]=1, ["weight"]=100 } @@ -770,32 +872,38 @@ local item = { ["icon"]="38", ["box_drop"]={ { - ["type"]=1, - ["id"]=9, + ["type"]=2, + ["id"]=154, ["num"]=1, ["weight"]=100 }, { - ["type"]=1, - ["id"]=10, + ["type"]=2, + ["id"]=254, ["num"]=1, ["weight"]=100 }, { - ["type"]=1, - ["id"]=11, + ["type"]=2, + ["id"]=354, ["num"]=1, ["weight"]=100 }, { - ["type"]=1, - ["id"]=12, + ["type"]=2, + ["id"]=454, ["num"]=1, ["weight"]=100 }, { - ["type"]=1, - ["id"]=13, + ["type"]=2, + ["id"]=554, + ["num"]=1, + ["weight"]=100 + }, + { + ["type"]=2, + ["id"]=654, ["num"]=1, ["weight"]=100 } @@ -807,32 +915,38 @@ local item = { ["icon"]="39", ["box_drop"]={ { - ["type"]=1, - ["id"]=9, + ["type"]=2, + ["id"]=155, ["num"]=1, ["weight"]=100 }, { - ["type"]=1, - ["id"]=10, + ["type"]=2, + ["id"]=255, ["num"]=1, ["weight"]=100 }, { - ["type"]=1, - ["id"]=11, + ["type"]=2, + ["id"]=355, ["num"]=1, ["weight"]=100 }, { - ["type"]=1, - ["id"]=12, + ["type"]=2, + ["id"]=455, ["num"]=1, ["weight"]=100 }, { - ["type"]=1, - ["id"]=13, + ["type"]=2, + ["id"]=555, + ["num"]=1, + ["weight"]=100 + }, + { + ["type"]=2, + ["id"]=655, ["num"]=1, ["weight"]=100 } @@ -842,6 +956,43 @@ local item = { ["type"]=6, ["qlt"]=4, ["icon"]="40", + ["box_drop"]={ + { + ["type"]=1, + ["id"]=13001, + ["num"]=1, + ["weight"]=100 + }, + { + ["type"]=1, + ["id"]=23001, + ["num"]=1, + ["weight"]=100 + }, + { + ["type"]=1, + ["id"]=33001, + ["num"]=1, + ["weight"]=100 + }, + { + ["type"]=1, + ["id"]=43001, + ["num"]=1, + ["weight"]=100 + }, + { + ["type"]=1, + ["id"]=53001, + ["num"]=1, + ["weight"]=100 + } + } + }, + [41]={ + ["type"]=6, + ["qlt"]=5, + ["icon"]="41", ["box_drop"]={ { ["type"]=1, @@ -875,137 +1026,50 @@ local item = { } } }, - [41]={ - ["type"]=6, - ["qlt"]=5, - ["icon"]="41", - ["box_drop"]={ - { - ["type"]=1, - ["id"]=15001, - ["num"]=1, - ["weight"]=100 - }, - { - ["type"]=1, - ["id"]=15002, - ["num"]=1, - ["weight"]=100 - }, - { - ["type"]=1, - ["id"]=25001, - ["num"]=1, - ["weight"]=100 - }, - { - ["type"]=1, - ["id"]=25002, - ["num"]=1, - ["weight"]=100 - }, - { - ["type"]=1, - ["id"]=35001, - ["num"]=1, - ["weight"]=100 - }, - { - ["type"]=1, - ["id"]=35002, - ["num"]=1, - ["weight"]=100 - }, - { - ["type"]=1, - ["id"]=45001, - ["num"]=1, - ["weight"]=100 - }, - { - ["type"]=1, - ["id"]=45002, - ["num"]=1, - ["weight"]=100 - }, - { - ["type"]=1, - ["id"]=55001, - ["num"]=1, - ["weight"]=100 - }, - { - ["type"]=1, - ["id"]=55002, - ["num"]=1, - ["weight"]=100 - } - } - }, [42]={ - ["type"]=6, + ["type"]=12, ["qlt"]=5, ["icon"]="42", - ["box_drop"]={ + ["box_select"]={ { ["type"]=1, - ["id"]=15001, - ["num"]=5, - ["weight"]=100 + ["type_for_nothing"]="Vw==", + ["id"]=14001, + ["id_for_nothing"]="VwxcA2Q=", + ["num"]=1, + ["num_for_nothing"]="Vw==" }, { ["type"]=1, - ["id"]=15002, - ["num"]=5, - ["weight"]=100 + ["type_for_nothing"]="Vw==", + ["id"]=24001, + ["id_for_nothing"]="VAxcA2Q=", + ["num"]=1, + ["num_for_nothing"]="Vw==" }, { ["type"]=1, - ["id"]=25001, - ["num"]=5, - ["weight"]=100 + ["type_for_nothing"]="Vw==", + ["id"]=34001, + ["id_for_nothing"]="VQxcA2Q=", + ["num"]=1, + ["num_for_nothing"]="Vw==" }, { ["type"]=1, - ["id"]=25002, - ["num"]=5, - ["weight"]=100 + ["type_for_nothing"]="Vw==", + ["id"]=44001, + ["id_for_nothing"]="UgxcA2Q=", + ["num"]=1, + ["num_for_nothing"]="Vw==" }, { ["type"]=1, - ["id"]=35001, - ["num"]=5, - ["weight"]=100 - }, - { - ["type"]=1, - ["id"]=35002, - ["num"]=5, - ["weight"]=100 - }, - { - ["type"]=1, - ["id"]=45001, - ["num"]=5, - ["weight"]=100 - }, - { - ["type"]=1, - ["id"]=45002, - ["num"]=5, - ["weight"]=100 - }, - { - ["type"]=1, - ["id"]=55001, - ["num"]=5, - ["weight"]=100 - }, - { - ["type"]=1, - ["id"]=55002, - ["num"]=5, - ["weight"]=100 + ["type_for_nothing"]="Vw==", + ["id"]=54001, + ["id_for_nothing"]="UwxcA2Q=", + ["num"]=1, + ["num_for_nothing"]="Vw==" } } }, @@ -1017,129 +1081,149 @@ local item = { { ["type"]=1, ["id"]=15001, - ["num"]=20, + ["num"]=1, ["weight"]=100 }, { ["type"]=1, ["id"]=15002, - ["num"]=20, + ["num"]=1, ["weight"]=100 }, { ["type"]=1, ["id"]=25001, - ["num"]=20, + ["num"]=1, ["weight"]=100 }, { ["type"]=1, ["id"]=25002, - ["num"]=20, + ["num"]=1, ["weight"]=100 }, { ["type"]=1, ["id"]=35001, - ["num"]=20, + ["num"]=1, ["weight"]=100 }, { ["type"]=1, ["id"]=35002, - ["num"]=20, + ["num"]=1, ["weight"]=100 }, { ["type"]=1, ["id"]=45001, - ["num"]=20, + ["num"]=1, ["weight"]=100 }, { ["type"]=1, ["id"]=45002, - ["num"]=20, + ["num"]=1, ["weight"]=100 }, { ["type"]=1, ["id"]=55001, - ["num"]=20, + ["num"]=1, ["weight"]=100 }, { ["type"]=1, ["id"]=55002, - ["num"]=20, + ["num"]=1, ["weight"]=100 } } }, [44]={ - ["type"]=6, + ["type"]=12, ["qlt"]=5, ["icon"]="44", - ["box_drop"]={ + ["box_select"]={ { ["type"]=1, + ["type_for_nothing"]="Vw==", ["id"]=15001, + ["id_for_nothing"]="Vw1cA2Q=", ["num"]=1, - ["weight"]=100 + ["num_for_nothing"]="Vw==" }, { ["type"]=1, + ["type_for_nothing"]="Vw==", ["id"]=15002, + ["id_for_nothing"]="Vw1cA2c=", ["num"]=1, - ["weight"]=100 + ["num_for_nothing"]="Vw==" }, { ["type"]=1, + ["type_for_nothing"]="Vw==", ["id"]=25001, + ["id_for_nothing"]="VA1cA2Q=", ["num"]=1, - ["weight"]=100 + ["num_for_nothing"]="Vw==" }, { ["type"]=1, + ["type_for_nothing"]="Vw==", ["id"]=25002, + ["id_for_nothing"]="VA1cA2c=", ["num"]=1, - ["weight"]=100 + ["num_for_nothing"]="Vw==" }, { ["type"]=1, + ["type_for_nothing"]="Vw==", ["id"]=35001, + ["id_for_nothing"]="VQ1cA2Q=", ["num"]=1, - ["weight"]=100 + ["num_for_nothing"]="Vw==" }, { ["type"]=1, + ["type_for_nothing"]="Vw==", ["id"]=35002, + ["id_for_nothing"]="VQ1cA2c=", ["num"]=1, - ["weight"]=100 + ["num_for_nothing"]="Vw==" }, { ["type"]=1, + ["type_for_nothing"]="Vw==", ["id"]=45001, + ["id_for_nothing"]="Ug1cA2Q=", ["num"]=1, - ["weight"]=100 + ["num_for_nothing"]="Vw==" }, { ["type"]=1, + ["type_for_nothing"]="Vw==", ["id"]=45002, + ["id_for_nothing"]="Ug1cA2c=", ["num"]=1, - ["weight"]=100 + ["num_for_nothing"]="Vw==" }, { ["type"]=1, + ["type_for_nothing"]="Vw==", ["id"]=55001, + ["id_for_nothing"]="Uw1cA2Q=", ["num"]=1, - ["weight"]=100 + ["num_for_nothing"]="Vw==" }, { ["type"]=1, + ["type_for_nothing"]="Vw==", ["id"]=55002, + ["id_for_nothing"]="Uw1cA2c=", ["num"]=1, - ["weight"]=100 + ["num_for_nothing"]="Vw==" } } }, @@ -1316,9 +1400,90 @@ local item = { ["parameter"]=55002, ["qlt"]=5, ["icon"]="55002" + }, + [10001]={ + ["type"]=13, + ["qlt"]=5, + ["icon"]="43", + ["box_drop"]={ + { + ["type"]=1, + ["id"]=15001, + ["num"]=1, + ["weight"]=100 + }, + { + ["type"]=1, + ["id"]=15002, + ["num"]=1, + ["weight"]=100 + }, + { + ["type"]=1, + ["id"]=25001, + ["num"]=1, + ["weight"]=100 + }, + { + ["type"]=1, + ["id"]=25002, + ["num"]=1, + ["weight"]=100 + }, + { + ["type"]=1, + ["id"]=35001, + ["num"]=1, + ["weight"]=100 + }, + { + ["type"]=1, + ["id"]=35002, + ["num"]=1, + ["weight"]=100 + }, + { + ["type"]=1, + ["id"]=45001, + ["num"]=1, + ["weight"]=100 + }, + { + ["type"]=1, + ["id"]=45002, + ["num"]=1, + ["weight"]=100 + }, + { + ["type"]=1, + ["id"]=55001, + ["num"]=1, + ["weight"]=100 + }, + { + ["type"]=1, + ["id"]=55002, + ["num"]=1, + ["weight"]=100 + } + } + }, + [10002]={ + ["type"]=14, + ["parameter"]=30, + ["qlt"]=5, + ["icon"]="2", + ["box_drop"]={ + { + ["type"]=1, + ["id"]=2, + ["num"]=1000, + ["weight"]=100 + } + } } } local config = { -data=item,count=70 +data=item,count=72 } return config \ No newline at end of file diff --git a/lua/app/config/localization/localization_global_const.lua b/lua/app/config/localization/localization_global_const.lua index dc2efca0..7bce9697 100644 --- a/lua/app/config/localization/localization_global_const.lua +++ b/lua/app/config/localization/localization_global_const.lua @@ -898,6 +898,8 @@ local LocalizationGlobalConst = CHEAT_1 = "CHEAT_1", BATTLE_DESC_18 = "BATTLE_DESC_18", CHALLENGE_TEAM_10 = "CHALLENGE_TEAM_10", + HELP_DESC = "HELP_DESC", + SUMMON_HELP_1 = "SUMMON_HELP_1", SUMMON_DESCR_1 = "SUMMON_DESCR_1", SUMMON_DESCR_2 = "SUMMON_DESCR_2", SUMMON_DESCR_3 = "SUMMON_DESCR_3", diff --git a/lua/app/config/player_exp.lua b/lua/app/config/player_exp.lua index 4e902e71..dfc37473 100644 --- a/lua/app/config/player_exp.lua +++ b/lua/app/config/player_exp.lua @@ -739,7 +739,8 @@ local player_exp = { ["talent_id"]={ 4, 5, - 6 + 6, + 8 }, ["cost"]={ ["type"]=1, @@ -2354,7 +2355,8 @@ local player_exp = { ["talent_id"]={ 1, 2, - 3 + 3, + 8 }, ["cost"]={ ["type"]=1, @@ -2388,8 +2390,7 @@ local player_exp = { ["talent_id"]={ 4, 5, - 6, - 8 + 6 }, ["cost"]={ ["type"]=1, @@ -2593,7 +2594,8 @@ local player_exp = { ["talent_id"]={ 4, 6, - 7 + 7, + 8 }, ["cost"]={ ["type"]=1, @@ -2659,7 +2661,6 @@ local player_exp = { } }, ["talent_id"]={ - 8, 13, 14, 15 @@ -2765,7 +2766,8 @@ local player_exp = { ["talent_id"]={ 1, 2, - 3 + 3, + 8 }, ["cost"]={ ["type"]=1, @@ -4716,7 +4718,7 @@ local player_exp = { ["talent_id"]={ 13, 14, - 15 + 5 }, ["cost"]={ ["type"]=1, @@ -4816,9 +4818,9 @@ local player_exp = { } }, ["talent_id"]={ - 1, 2, - 3 + 3, + 15 }, ["cost"]={ ["type"]=1, @@ -4852,7 +4854,8 @@ local player_exp = { ["talent_id"]={ 4, 5, - 6 + 6, + 8 }, ["cost"]={ ["type"]=1, diff --git a/lua/app/config/skill.lua b/lua/app/config/skill.lua index 3d268d26..d15f2d68 100644 --- a/lua/app/config/skill.lua +++ b/lua/app/config/skill.lua @@ -103,6 +103,25 @@ local skill = { }, ["obj"]=1 }, + [15]={ + ["effect_type"]=2, + ["trigger"]=11, + ["trigger_value"]=10, + ["trigger_limit"]=15, + ["effect"]={ + { + ["type"]="dmg_addition_all_add", + ["num"]=200, + ["ratio"]=10000, + ["round"]=0 + } + }, + ["obj"]=1, + ["skill_position"]={ + 2, + 0 + } + }, [1300110]={ ["position"]=1, ["effect_type"]=1, @@ -13662,6 +13681,6 @@ local skill = { } } local config = { -data=skill,count=443 +data=skill,count=444 } return config \ No newline at end of file diff --git a/lua/app/config/skill_rogue.lua b/lua/app/config/skill_rogue.lua index 5546f9c5..4c233c73 100644 --- a/lua/app/config/skill_rogue.lua +++ b/lua/app/config/skill_rogue.lua @@ -1,279 +1,48 @@ local skill_rogue = { [1]={ ["universal"]=1, - ["toast_mark"]=1, - ["limit_times"]=3, - ["weight"]=3000, - ["qlt"]=2, - ["type"]=5, - ["attr"]={ - ["type"]="atkp_color_add", - ["minnum"]=300, - ["maxnum"]=500 + ["limit_times"]=1, + ["weight"]=1000, + ["qlt"]=5, + ["type"]=9, + ["effect"]={ + { + ["type"]="add_skill", + ["num"]=15, + ["ratio"]=10000, + ["round"]=0 + } }, - ["obj"]=1, - ["icon"]="1" + ["obj"]=8, + ["icon"]="7" }, [2]={ ["universal"]=1, - ["toast_mark"]=1, - ["limit_times"]=2, - ["weight"]=2000, - ["qlt"]=3, - ["type"]=5, - ["attr"]={ - ["type"]="atkp_color_add", - ["minnum"]=800, - ["maxnum"]=1200 + ["limit_times"]=1, + ["weight"]=1000, + ["qlt"]=5, + ["type"]=20, + ["parameter"]={ + 1000 }, - ["obj"]=1, - ["icon"]="1" + ["icon"]="17" }, [3]={ ["universal"]=1, - ["toast_mark"]=1, ["limit_times"]=1, ["weight"]=1000, - ["qlt"]=4, - ["type"]=5, - ["attr"]={ - ["type"]="atkp_color_add", - ["minnum"]=1300, - ["maxnum"]=2000 + ["qlt"]=5, + ["type"]=21, + ["parameter"]={ + 1 }, - ["obj"]=1, - ["icon"]="1" + ["icon"]="29" }, [4]={ - ["universal"]=1, - ["toast_mark"]=2, - ["limit_times"]=4, - ["weight"]=3000, - ["qlt"]=2, - ["type"]=5, - ["attr"]={ - ["type"]="atkp_red_add", - ["minnum"]=300, - ["maxnum"]=500 - }, - ["obj"]=1, - ["icon"]="2" - }, - [5]={ - ["universal"]=1, - ["toast_mark"]=2, - ["limit_times"]=3, - ["weight"]=3000, - ["qlt"]=3, - ["type"]=5, - ["attr"]={ - ["type"]="atkp_red_add", - ["minnum"]=800, - ["maxnum"]=1200 - }, - ["obj"]=1, - ["icon"]="2" - }, - [6]={ - ["universal"]=1, - ["toast_mark"]=2, - ["limit_times"]=2, - ["weight"]=2000, - ["qlt"]=3, - ["type"]=5, - ["attr"]={ - ["type"]="atkp_red_add", - ["minnum"]=1300, - ["maxnum"]=2000 - }, - ["obj"]=1, - ["icon"]="2" - }, - [7]={ - ["universal"]=1, - ["toast_mark"]=3, - ["limit_times"]=4, - ["weight"]=3000, - ["qlt"]=2, - ["type"]=5, - ["attr"]={ - ["type"]="atkp_yellow_add", - ["minnum"]=300, - ["maxnum"]=500 - }, - ["obj"]=1, - ["icon"]="3" - }, - [8]={ - ["universal"]=1, - ["toast_mark"]=3, - ["limit_times"]=3, - ["weight"]=3000, - ["qlt"]=3, - ["type"]=5, - ["attr"]={ - ["type"]="atkp_yellow_add", - ["minnum"]=800, - ["maxnum"]=1200 - }, - ["obj"]=1, - ["icon"]="3" - }, - [9]={ - ["universal"]=1, - ["toast_mark"]=3, - ["limit_times"]=2, - ["weight"]=2000, - ["qlt"]=3, - ["type"]=5, - ["attr"]={ - ["type"]="atkp_yellow_add", - ["minnum"]=1300, - ["maxnum"]=2000 - }, - ["obj"]=1, - ["icon"]="3" - }, - [10]={ - ["universal"]=1, - ["toast_mark"]=4, - ["limit_times"]=4, - ["weight"]=3000, - ["qlt"]=2, - ["type"]=5, - ["attr"]={ - ["type"]="atkp_green_add", - ["minnum"]=300, - ["maxnum"]=500 - }, - ["obj"]=1, - ["icon"]="4" - }, - [11]={ - ["universal"]=1, - ["toast_mark"]=4, - ["limit_times"]=3, - ["weight"]=3000, - ["qlt"]=3, - ["type"]=5, - ["attr"]={ - ["type"]="atkp_green_add", - ["minnum"]=800, - ["maxnum"]=1200 - }, - ["obj"]=1, - ["icon"]="4" - }, - [12]={ - ["universal"]=1, - ["toast_mark"]=4, - ["limit_times"]=2, - ["weight"]=2000, - ["qlt"]=3, - ["type"]=5, - ["attr"]={ - ["type"]="atkp_green_add", - ["minnum"]=1300, - ["maxnum"]=2000 - }, - ["obj"]=1, - ["icon"]="4" - }, - [13]={ - ["universal"]=1, - ["toast_mark"]=5, - ["limit_times"]=4, - ["weight"]=3000, - ["qlt"]=2, - ["type"]=5, - ["attr"]={ - ["type"]="atkp_blue_add", - ["minnum"]=300, - ["maxnum"]=500 - }, - ["obj"]=1, - ["icon"]="5" - }, - [14]={ - ["universal"]=1, - ["toast_mark"]=5, - ["limit_times"]=3, - ["weight"]=3000, - ["qlt"]=3, - ["type"]=5, - ["attr"]={ - ["type"]="atkp_blue_add", - ["minnum"]=800, - ["maxnum"]=1200 - }, - ["obj"]=1, - ["icon"]="5" - }, - [15]={ - ["universal"]=1, - ["toast_mark"]=5, - ["limit_times"]=2, - ["weight"]=2000, - ["qlt"]=3, - ["type"]=5, - ["attr"]={ - ["type"]="atkp_blue_add", - ["minnum"]=1300, - ["maxnum"]=2000 - }, - ["obj"]=1, - ["icon"]="5" - }, - [16]={ - ["universal"]=1, - ["toast_mark"]=6, - ["limit_times"]=4, - ["weight"]=3000, - ["qlt"]=2, - ["type"]=5, - ["attr"]={ - ["type"]="atkp_purple_add", - ["minnum"]=300, - ["maxnum"]=500 - }, - ["obj"]=1, - ["icon"]="6" - }, - [17]={ - ["universal"]=1, - ["toast_mark"]=6, - ["limit_times"]=3, - ["weight"]=3000, - ["qlt"]=3, - ["type"]=5, - ["attr"]={ - ["type"]="atkp_purple_add", - ["minnum"]=800, - ["maxnum"]=1200 - }, - ["obj"]=1, - ["icon"]="6" - }, - [18]={ - ["universal"]=1, - ["toast_mark"]=6, - ["limit_times"]=2, - ["weight"]=2000, - ["qlt"]=3, - ["type"]=5, - ["attr"]={ - ["type"]="atkp_purple_add", - ["minnum"]=1300, - ["maxnum"]=2000 - }, - ["obj"]=1, - ["icon"]="6" - }, - [19]={ ["universal"]=1, ["limit_times"]=1, ["weight"]=1500, - ["qlt"]=4, + ["qlt"]=5, ["type"]=9, ["effect"]={ { @@ -286,132 +55,147 @@ local skill_rogue = { ["obj"]=8, ["icon"]="7" }, - [20]={ + [5]={ ["universal"]=1, - ["toast_mark"]=7, - ["limit_times"]=4, - ["weight"]=3000, - ["qlt"]=2, - ["type"]=5, - ["attr"]={ - ["type"]="exp_time_add", - ["minnum"]=500, - ["maxnum"]=500 - }, - ["obj"]=1, - ["icon"]="8" - }, - [21]={ - ["universal"]=1, - ["toast_mark"]=8, - ["limit_times"]=3, - ["weight"]=3000, - ["qlt"]=2, - ["type"]=5, - ["attr"]={ - ["type"]="hpp_add", - ["minnum"]=300, - ["maxnum"]=500 - }, - ["obj"]=1, - ["icon"]="9" - }, - [22]={ - ["universal"]=1, - ["toast_mark"]=8, - ["limit_times"]=2, - ["weight"]=2000, - ["qlt"]=3, - ["type"]=5, - ["attr"]={ - ["type"]="hpp_add", - ["minnum"]=800, - ["maxnum"]=1200 - }, - ["obj"]=1, - ["icon"]="9" - }, - [23]={ - ["universal"]=1, - ["toast_mark"]=8, + ["toast_mark"]=1, ["limit_times"]=1, ["weight"]=1000, + ["qlt"]=5, + ["type"]=5, + ["attr"]={ + ["type"]="atkp_color_add", + ["minnum"]=1500, + ["maxnum"]=1500 + }, + ["obj"]=1, + ["icon"]="1" + }, + [6]={ + ["universal"]=1, + ["toast_mark"]=1, + ["limit_times"]=2, + ["weight"]=2000, ["qlt"]=4, ["type"]=5, ["attr"]={ - ["type"]="hpp_add", - ["minnum"]=1300, - ["maxnum"]=2000 + ["type"]="atkp_color_add", + ["minnum"]=1000, + ["maxnum"]=1000 }, ["obj"]=1, - ["icon"]="9" + ["icon"]="1" }, - [24]={ + [7]={ ["universal"]=1, - ["limit_times"]=2, - ["qlt"]=3, - ["type"]=9, - ["effect"]={ - { - ["type"]="add_skill", - ["num"]=12, - ["ratio"]=10000, - ["round"]=0 - } - }, - ["obj"]=8, - ["icon"]="10" - }, - [25]={ - ["universal"]=1, - ["toast_mark"]=10, - ["limit_times"]=3, - ["weight"]=3000, - ["qlt"]=3, - ["type"]=5, - ["attr"]={ - ["type"]="cured_add", - ["minnum"]=500, - ["maxnum"]=500 - }, - ["obj"]=1, - ["icon"]="11" - }, - [26]={ - ["universal"]=1, - ["toast_mark"]=11, - ["limit_times"]=3, - ["qlt"]=3, - ["type"]=5, - ["attr"]={ - ["type"]="block", - ["minnum"]=500, - ["maxnum"]=500 - }, - ["obj"]=1, - ["icon"]="12" - }, - [27]={ - ["universal"]=1, - ["toast_mark"]=12, + ["toast_mark"]=1, ["limit_times"]=3, ["weight"]=2000, ["qlt"]=3, ["type"]=5, ["attr"]={ - ["type"]="crit_add", - ["minnum"]=400, - ["maxnum"]=400 + ["type"]="atkp_color_add", + ["minnum"]=500, + ["maxnum"]=500 }, ["obj"]=1, - ["icon"]="13" + ["icon"]="1" }, - [28]={ + [8]={ + ["universal"]=1, + ["toast_mark"]=2, + ["limit_times"]=1, + ["weight"]=1000, + ["qlt"]=5, + ["type"]=5, + ["attr"]={ + ["type"]="attr_monster_dmg", + ["minnum"]=1500, + ["maxnum"]=1500 + }, + ["obj"]=1, + ["icon"]="1" + }, + [9]={ + ["universal"]=1, + ["toast_mark"]=2, + ["limit_times"]=2, + ["weight"]=2000, + ["qlt"]=4, + ["type"]=5, + ["attr"]={ + ["type"]="attr_monster_dmg", + ["minnum"]=1000, + ["maxnum"]=1000 + }, + ["obj"]=1, + ["icon"]="1" + }, + [10]={ + ["universal"]=1, + ["toast_mark"]=2, + ["limit_times"]=3, + ["weight"]=2000, + ["qlt"]=3, + ["type"]=5, + ["attr"]={ + ["type"]="attr_monster_dmg", + ["minnum"]=500, + ["maxnum"]=500 + }, + ["obj"]=1, + ["icon"]="1" + }, + [11]={ + ["universal"]=1, + ["toast_mark"]=3, + ["limit_times"]=1, + ["weight"]=1000, + ["qlt"]=5, + ["type"]=5, + ["attr"]={ + ["type"]="attr_boss_dmg", + ["minnum"]=1500, + ["maxnum"]=1500 + }, + ["obj"]=1, + ["icon"]="1" + }, + [12]={ + ["universal"]=1, + ["toast_mark"]=3, + ["limit_times"]=2, + ["weight"]=2000, + ["qlt"]=4, + ["type"]=5, + ["attr"]={ + ["type"]="attr_boss_dmg", + ["minnum"]=1000, + ["maxnum"]=1000 + }, + ["obj"]=1, + ["icon"]="1" + }, + [13]={ + ["universal"]=1, + ["toast_mark"]=3, + ["limit_times"]=3, + ["weight"]=2000, + ["qlt"]=3, + ["type"]=5, + ["attr"]={ + ["type"]="attr_boss_dmg", + ["minnum"]=500, + ["maxnum"]=500 + }, + ["obj"]=1, + ["icon"]="1" + }, + [14]={ ["universal"]=1, ["toast_mark"]=13, ["limit_times"]=3, ["weight"]=2000, - ["qlt"]=3, + ["qlt"]=4, ["type"]=5, ["attr"]={ ["type"]="dec_dmg_all_add", @@ -421,38 +205,194 @@ local skill_rogue = { ["obj"]=1, ["icon"]="14" }, - [29]={ + [15]={ ["universal"]=1, + ["toast_mark"]=8, + ["limit_times"]=1, + ["weight"]=1000, + ["qlt"]=5, + ["type"]=5, + ["attr"]={ + ["type"]="hpp_add", + ["minnum"]=1500, + ["maxnum"]=1500 + }, + ["obj"]=1, + ["icon"]="9" + }, + [16]={ + ["universal"]=1, + ["toast_mark"]=8, + ["limit_times"]=2, + ["weight"]=2000, + ["qlt"]=4, + ["type"]=5, + ["attr"]={ + ["type"]="hpp_add", + ["minnum"]=1000, + ["maxnum"]=1000 + }, + ["obj"]=1, + ["icon"]="9" + }, + [17]={ + ["universal"]=1, + ["toast_mark"]=8, + ["limit_times"]=3, + ["weight"]=3000, + ["qlt"]=3, + ["type"]=5, + ["attr"]={ + ["type"]="hpp_add", + ["minnum"]=500, + ["maxnum"]=500 + }, + ["obj"]=1, + ["icon"]="9" + }, + [18]={ + ["universal"]=1, + ["toast_mark"]=7, + ["limit_times"]=1, + ["weight"]=3000, + ["qlt"]=3, + ["type"]=4, + ["attr"]={ + ["type"]="exp_time_add", + ["minnum"]=1000, + ["maxnum"]=1000 + }, + ["obj"]=1, + ["icon"]="8" + }, + [19]={ + ["universal"]=1, + ["toast_mark"]=7, + ["limit_times"]=2, + ["weight"]=3000, + ["qlt"]=3, + ["type"]=3, + ["attr"]={ + ["type"]="exp_time_add", + ["minnum"]=500, + ["maxnum"]=500 + }, + ["obj"]=1, + ["icon"]="8" + }, + [20]={ + ["universal"]=1, + ["weight"]=1000, + ["qlt"]=4, + ["type"]=22, + ["parameter"]={ + 5 + }, + ["icon"]="29" + }, + [21]={ + ["universal"]=1, + ["weight"]=1000, + ["qlt"]=4, + ["type"]=23, + ["parameter"]={ + 2 + }, + ["icon"]="26" + }, + [22]={ + ["universal"]=1, + ["weight"]=1000, + ["qlt"]=4, + ["type"]=24, + ["icon"]="27" + }, + [23]={ + ["universal"]=1, + ["limit_times"]=2, + ["weight"]=1000, ["qlt"]=3, ["type"]=9, ["effect"]={ { - ["type"]="heal", - ["num"]=10000, + ["type"]="red_refresh_weight", + ["num"]=500, ["ratio"]=10000, - ["round"]=1 + ["round"]=0 } }, ["obj"]=1, ["icon"]="30" }, - [30]={ + [24]={ ["universal"]=1, - ["weight"]=3000, - ["qlt"]=2, - ["type"]=10, - ["parameter"]={ - 1 - }, - ["boardrange"]={ + ["limit_times"]=2, + ["weight"]=1000, + ["qlt"]=3, + ["type"]=9, + ["effect"]={ { - ["type"]=0, - ["range"]=2 + ["type"]="yellow_refresh_weight", + ["num"]=500, + ["ratio"]=10000, + ["round"]=0 } }, - ["icon"]="15" + ["obj"]=1, + ["icon"]="30" }, - [31]={ + [25]={ + ["universal"]=1, + ["limit_times"]=2, + ["weight"]=1000, + ["qlt"]=3, + ["type"]=9, + ["effect"]={ + { + ["type"]="green_refresh_weight", + ["num"]=500, + ["ratio"]=10000, + ["round"]=0 + } + }, + ["obj"]=1, + ["icon"]="30" + }, + [26]={ + ["universal"]=1, + ["limit_times"]=2, + ["weight"]=1000, + ["qlt"]=3, + ["type"]=9, + ["effect"]={ + { + ["type"]="blue_refresh_weight", + ["num"]=500, + ["ratio"]=10000, + ["round"]=0 + } + }, + ["obj"]=1, + ["icon"]="30" + }, + [27]={ + ["universal"]=1, + ["limit_times"]=2, + ["weight"]=1000, + ["qlt"]=3, + ["type"]=9, + ["effect"]={ + { + ["type"]="purple_refresh_weight", + ["num"]=500, + ["ratio"]=10000, + ["round"]=0 + } + }, + ["obj"]=1, + ["icon"]="30" + }, + [28]={ ["universal"]=1, ["weight"]=2000, ["qlt"]=2, @@ -468,39 +408,7 @@ local skill_rogue = { }, ["icon"]="16" }, - [32]={ - ["universal"]=1, - ["weight"]=1000, - ["qlt"]=3, - ["type"]=10, - ["parameter"]={ - 1 - }, - ["boardrange"]={ - { - ["type"]=0, - ["range"]=5 - } - }, - ["icon"]="17" - }, - [33]={ - ["universal"]=1, - ["weight"]=3000, - ["qlt"]=2, - ["type"]=10, - ["parameter"]={ - 2 - }, - ["boardrange"]={ - { - ["type"]=0, - ["range"]=2 - } - }, - ["icon"]="18" - }, - [34]={ + [29]={ ["universal"]=1, ["weight"]=2000, ["qlt"]=2, @@ -516,39 +424,7 @@ local skill_rogue = { }, ["icon"]="19" }, - [35]={ - ["universal"]=1, - ["weight"]=1000, - ["qlt"]=3, - ["type"]=10, - ["parameter"]={ - 2 - }, - ["boardrange"]={ - { - ["type"]=0, - ["range"]=5 - } - }, - ["icon"]="20" - }, - [36]={ - ["universal"]=1, - ["weight"]=3000, - ["qlt"]=2, - ["type"]=10, - ["parameter"]={ - 3 - }, - ["boardrange"]={ - { - ["type"]=0, - ["range"]=2 - } - }, - ["icon"]="21" - }, - [37]={ + [30]={ ["universal"]=1, ["weight"]=2000, ["qlt"]=2, @@ -564,39 +440,7 @@ local skill_rogue = { }, ["icon"]="22" }, - [38]={ - ["universal"]=1, - ["weight"]=1000, - ["qlt"]=3, - ["type"]=10, - ["parameter"]={ - 3 - }, - ["boardrange"]={ - { - ["type"]=0, - ["range"]=5 - } - }, - ["icon"]="23" - }, - [39]={ - ["universal"]=1, - ["weight"]=3000, - ["qlt"]=2, - ["type"]=10, - ["parameter"]={ - 4 - }, - ["boardrange"]={ - { - ["type"]=0, - ["range"]=2 - } - }, - ["icon"]="24" - }, - [40]={ + [31]={ ["universal"]=1, ["weight"]=2000, ["qlt"]=2, @@ -612,39 +456,7 @@ local skill_rogue = { }, ["icon"]="25" }, - [41]={ - ["universal"]=1, - ["weight"]=1000, - ["qlt"]=3, - ["type"]=10, - ["parameter"]={ - 4 - }, - ["boardrange"]={ - { - ["type"]=0, - ["range"]=5 - } - }, - ["icon"]="26" - }, - [42]={ - ["universal"]=1, - ["weight"]=3000, - ["qlt"]=2, - ["type"]=10, - ["parameter"]={ - 5 - }, - ["boardrange"]={ - { - ["type"]=0, - ["range"]=2 - } - }, - ["icon"]="27" - }, - [43]={ + [32]={ ["universal"]=1, ["weight"]=2000, ["qlt"]=2, @@ -660,22 +472,6 @@ local skill_rogue = { }, ["icon"]="28" }, - [44]={ - ["universal"]=1, - ["weight"]=1000, - ["qlt"]=3, - ["type"]=10, - ["parameter"]={ - 5 - }, - ["boardrange"]={ - { - ["type"]=0, - ["range"]=5 - } - }, - ["icon"]="29" - }, [1300111]={ ["method"]=2, ["universal"]=2, @@ -9054,6 +8850,6 @@ local skill_rogue = { } } local config = { -data=skill_rogue,count=450 +data=skill_rogue,count=438 } return config \ No newline at end of file diff --git a/lua/app/config/strings/cn/buff_daily_challenge.lua b/lua/app/config/strings/cn/buff_daily_challenge.lua index c06ef2ff..71e0a96f 100644 --- a/lua/app/config/strings/cn/buff_daily_challenge.lua +++ b/lua/app/config/strings/cn/buff_daily_challenge.lua @@ -9,7 +9,7 @@ local buff_daily_challenge = { ["desc"]="受到所有伤害-10%" }, [4]={ - ["desc"]="暴击率+20%,暴击伤害+30%" + ["desc"]="暴击率+10%,暴击伤害+15%" }, [5]={ ["desc"]="技能伤害+15%" diff --git a/lua/app/config/strings/cn/global.lua b/lua/app/config/strings/cn/global.lua index 449f57f8..c5dac409 100644 --- a/lua/app/config/strings/cn/global.lua +++ b/lua/app/config/strings/cn/global.lua @@ -898,6 +898,8 @@ local localization_global = ["CHEAT_1"] = "战斗数据异常", ["BATTLE_DESC_18"] = "挑战", ["CHALLENGE_TEAM_10"] = "通过上一个难度解锁", + ["HELP_DESC"] = "帮助", + ["SUMMON_HELP_1"] = "1、消耗【心愿币】可兑换已获得英雄。\n2、每次参与召唤都可以获得【心愿币】。\n3、 每周每个英雄前1次兑换都享一定折扣,兑换1次后恢复原价,每周一0点({UTC})重置折扣次数。", ["SUMMON_DESCR_1"] = "普通心愿商店", ["SUMMON_DESCR_2"] = "活动心愿商店", ["SUMMON_DESCR_3"] = "可兑换已获得的英雄(每周一刷新)", diff --git a/lua/app/config/strings/cn/skill_rogue.lua b/lua/app/config/strings/cn/skill_rogue.lua index 2ea36f9f..4d6c4b33 100644 --- a/lua/app/config/strings/cn/skill_rogue.lua +++ b/lua/app/config/strings/cn/skill_rogue.lua @@ -1,135 +1,131 @@ local skill_rogue = { [1]={ - ["desc"]="全局攻击力+{0}" + ["desc"]="每累计消除10个元素,伤害+2%,上限30%", + ["rougedesc"]="每累计消除10个元素,伤害+2%,上限30%" }, [2]={ - ["desc"]="全局攻击力+{0}" + ["desc"]="元素刷新时有概率刷出万能块,可以跟任意元素相连", + ["rougedesc"]="元素刷新时有概率刷出万能块,可以跟任意元素相连" }, [3]={ - ["desc"]="全局攻击力+{0}" + ["desc"]="每次消除后主要英雄的技能能量额外+1", + ["rougedesc"]="每次消除后主要英雄的技能能量额外+1" }, [4]={ - ["desc"]="红色攻击+{0}" + ["desc"]="角色血量低于50%时所有伤害增加30%", + ["rougedesc"]="角色血量低于50%时所有伤害增加30%" }, [5]={ - ["desc"]="红色攻击+{0}" + ["desc"]="全局攻击力+{0}", + ["rougedesc"]="全局攻击力+{0}" }, [6]={ - ["desc"]="红色攻击+{0}" + ["desc"]="全局攻击力+{0}", + ["rougedesc"]="全局攻击力+{0}" }, [7]={ - ["desc"]="金色攻击+{0}" + ["desc"]="全局攻击力+{0}", + ["rougedesc"]="全局攻击力+{0}" }, [8]={ - ["desc"]="金色攻击+{0}" + ["desc"]="全体对小怪伤害+{0}", + ["rougedesc"]="全体对小怪伤害+{0}" }, [9]={ - ["desc"]="金色攻击+{0}" + ["desc"]="全体对小怪伤害+{0}", + ["rougedesc"]="全体对小怪伤害+{0}" }, [10]={ - ["desc"]="绿色攻击+{0}" + ["desc"]="全体对小怪伤害+{0}", + ["rougedesc"]="全体对小怪伤害+{0}" }, [11]={ - ["desc"]="绿色攻击+{0}" + ["desc"]="全体对BOSS伤害+{0}", + ["rougedesc"]="全体对BOSS伤害+{0}" }, [12]={ - ["desc"]="绿色攻击+{0}" + ["desc"]="全体对BOSS伤害+{0}", + ["rougedesc"]="全体对BOSS伤害+{0}" }, [13]={ - ["desc"]="蓝色攻击+{0}" + ["desc"]="全体对BOSS伤害+{0}", + ["rougedesc"]="全体对BOSS伤害+{0}" }, [14]={ - ["desc"]="蓝色攻击+{0}" + ["desc"]="受到伤害降低{0}", + ["rougedesc"]="受到伤害降低{0}" }, [15]={ - ["desc"]="蓝色攻击+{0}" + ["desc"]="最大生命值+{0}", + ["rougedesc"]="最大生命值+{0}" }, [16]={ - ["desc"]="紫色攻击+{0}" + ["desc"]="最大生命值+{0}", + ["rougedesc"]="最大生命值+{0}" }, [17]={ - ["desc"]="紫色攻击+{0}" + ["desc"]="最大生命值+{0}", + ["rougedesc"]="最大生命值+{0}" }, [18]={ - ["desc"]="紫色攻击+{0}" + ["desc"]="获得经验+{0}", + ["rougedesc"]="获得经验+{0}" }, [19]={ - ["desc"]="角色血量低于50%时所有伤害增加30%" + ["desc"]="获得经验+{0}", + ["rougedesc"]="获得经验+{0}" }, [20]={ - ["desc"]="获得经验+{0}" + ["desc"]="随机1名英雄能量+5", + ["rougedesc"]="随机1名英雄能量+5" }, [21]={ - ["desc"]="最大生命值+{0}" + ["desc"]="全体英雄能量+2", + ["rougedesc"]="全体英雄能量+2" }, [22]={ - ["desc"]="最大生命值+{0}" + ["desc"]="随机一个技能能量全满", + ["rougedesc"]="随机一个技能能量全满" }, [23]={ - ["desc"]="最大生命值+{0}" + ["desc"]="红色元素刷新概率+{0}", + ["rougedesc"]="红色元素刷新概率+{0}" }, [24]={ - ["desc"]="回合开始前生命值恢复{0}%" + ["desc"]="黄色元素刷新概率+{0}", + ["rougedesc"]="黄色元素刷新概率+{0}" }, [25]={ - ["desc"]="生命值恢复效果提升{0}" + ["desc"]="绿色元素刷新概率+{0}", + ["rougedesc"]="绿色元素刷新概率+{0}" }, [26]={ - ["desc"]="格挡概率增加{0}" + ["desc"]="蓝色元素刷新概率+{0}", + ["rougedesc"]="蓝色元素刷新概率+{0}" }, [27]={ - ["desc"]="暴击率+{0}" + ["desc"]="紫色元素刷新概率+{0}", + ["rougedesc"]="紫色元素刷新概率+{0}" }, [28]={ - ["desc"]="受到伤害降低{0}" + ["desc"]="将场上随机3个非红色元素变为红色", + ["rougedesc"]="将场上随机3个非红色元素变为红色" }, [29]={ - ["desc"]="恢复部分生命值" + ["desc"]="将场上随机3个非金色元素变为金色", + ["rougedesc"]="将场上随机3个非金色元素变为金色" }, [30]={ - ["desc"]="将场上随机2个非红色元素变为红色" + ["desc"]="将场上随机3个非绿色元素变为绿色", + ["rougedesc"]="将场上随机3个非绿色元素变为绿色" }, [31]={ - ["desc"]="将场上随机3个非红色元素变为红色" + ["desc"]="将场上随机3个非蓝色元素变为蓝色", + ["rougedesc"]="将场上随机3个非蓝色元素变为蓝色" }, [32]={ - ["desc"]="将场上随机5个非红色元素变为红色" - }, - [33]={ - ["desc"]="将场上随机2个非金色元素变为金色" - }, - [34]={ - ["desc"]="将场上随机3个非金色元素变为金色" - }, - [35]={ - ["desc"]="将场上随机5个非金色元素变为金色" - }, - [36]={ - ["desc"]="将场上随机2个非绿色元素变为绿色" - }, - [37]={ - ["desc"]="将场上随机3个非绿色元素变为绿色" - }, - [38]={ - ["desc"]="将场上随机5个非绿色元素变为绿色" - }, - [39]={ - ["desc"]="将场上随机2个非蓝色元素变为蓝色" - }, - [40]={ - ["desc"]="将场上随机3个非蓝色元素变为蓝色" - }, - [41]={ - ["desc"]="将场上随机5个非蓝色元素变为蓝色" - }, - [42]={ - ["desc"]="将场上随机2个非紫色元素变为紫色" - }, - [43]={ - ["desc"]="将场上随机3个非紫色元素变为紫色" - }, - [44]={ - ["desc"]="将场上随机5个非紫色元素变为紫色" + ["desc"]="将场上随机3个非紫色元素变为紫色", + ["rougedesc"]="将场上随机3个非紫色元素变为紫色" }, [1300111]={ ["desc"]="熔芯技能可上下消除2格", @@ -1224,28 +1220,28 @@ local skill_rogue = { ["rougedesc"]="闪送雷神技能伤害提升25%" }, [2600141]={ - ["desc"]="闪送雷神普攻10%几率附加虚弱1回合", + ["desc"]="闪送雷神普攻10%几率附加虚弱,1回合", ["entry_1"]="概率提高10%", ["entry_2"]="虚弱回合数+1", ["entry_3"]="战斗中直接生效!", ["rougedesc"]="闪送雷神普攻10%几率附加虚弱1回合" }, [2600142]={ - ["desc"]="闪送雷神普攻10%几率附加虚弱1回合", + ["desc"]="闪送雷神普攻10%几率附加虚弱,1回合", ["entry_1"]="概率提高10%", ["entry_2"]="虚弱回合数+1", ["entry_3"]="战斗中直接生效!", ["rougedesc"]="闪送雷神普攻20%几率附加虚弱1回合" }, [2600143]={ - ["desc"]="闪送雷神普攻10%几率附加虚弱1回合", + ["desc"]="闪送雷神普攻10%几率附加虚弱,1回合", ["entry_1"]="概率提高10%", ["entry_2"]="虚弱回合数+1", ["entry_3"]="战斗中直接生效!", ["rougedesc"]="闪送雷神普攻20%几率附加虚弱2回合" }, [2600144]={ - ["desc"]="闪送雷神普攻10%几率附加虚弱1回合", + ["desc"]="闪送雷神普攻10%几率附加虚弱,1回合", ["entry_1"]="概率提高10%", ["entry_2"]="虚弱回合数+1", ["entry_3"]="战斗中直接生效!", @@ -1261,7 +1257,7 @@ local skill_rogue = { [3300112]={ ["desc"]="荒野镖客技能可上下消除2格", ["entry_1"]="战斗中直接生效!", - ["entry_2"]="战斗中直接生效!", + ["entry_2"]="上下消除增加2格", ["entry_3"]="技能链接时伤害增加15%", ["rougedesc"]="荒野镖客技能可上下消除2格" }, @@ -1280,32 +1276,32 @@ local skill_rogue = { ["rougedesc"]="荒野镖客技能可上下消除2格,链接增伤15%" }, [3300121]={ - ["desc"]="荒野镖客技能攻击后可恢复团队一定量生命", - ["entry_1"]="30%概率附加眩晕1回合", + ["desc"]="荒野镖客技能有30%几率附加眩晕,1回合", + ["entry_1"]="眩晕概率提升20%", ["entry_2"]="战斗中直接生效!", - ["entry_3"]="50%概率附眩晕1回合", - ["rougedesc"]="荒野镖客技能攻击后可恢复团队一定量生命" + ["entry_3"]="眩晕回合数+1", + ["rougedesc"]="荒野镖客技能有30%几率附加眩晕,1回合" }, [3300122]={ - ["desc"]="荒野镖客技能攻击后可恢复团队一定量生命", - ["entry_1"]="30%概率附加眩晕1回合", + ["desc"]="荒野镖客技能有30%几率附加眩晕,1回合", + ["entry_1"]="眩晕概率提升20%", ["entry_2"]="战斗中直接生效!", - ["entry_3"]="50%概率附眩晕1回合", - ["rougedesc"]="荒野镖客技能攻击后可恢复团队一定量生命,30%几率附加眩晕1回合" + ["entry_3"]="眩晕回合数+1", + ["rougedesc"]="荒野镖客技能有50%几率附加眩晕,1回合" }, [3300123]={ - ["desc"]="荒野镖客技能攻击后可恢复团队一定量生命", - ["entry_1"]="战斗中直接生效!", + ["desc"]="荒野镖客技能有30%几率附加眩晕,1回合", + ["entry_1"]="眩晕概率提升20%", ["entry_2"]="战斗中直接生效!", - ["entry_3"]="50%概率附眩晕1回合", - ["rougedesc"]="荒野镖客技能攻击后可恢复团队一定量生命,30%几率附加眩晕1回合" + ["entry_3"]="眩晕回合数+1", + ["rougedesc"]="荒野镖客技能有50%几率附加眩晕,1回合" }, [3300124]={ - ["desc"]="荒野镖客技能攻击后可恢复团队一定量生命", - ["entry_1"]="30%概率附加眩晕1回合", + ["desc"]="荒野镖客技能有30%几率附加眩晕,1回合", + ["entry_1"]="眩晕概率提升20%", ["entry_2"]="战斗中直接生效!", - ["entry_3"]="50%概率附眩晕1回合", - ["rougedesc"]="荒野镖客技能攻击后可恢复团队一定量生命。50%几率附加眩晕1回合" + ["entry_3"]="眩晕回合数+1", + ["rougedesc"]="荒野镖客技能有50%几率附加眩晕,2回合" }, [3300131]={ ["desc"]="Combo:荒野镖客技能对中毒敌人伤害增加30%", @@ -1323,7 +1319,7 @@ local skill_rogue = { }, [3300133]={ ["desc"]="Combo:荒野镖客技能对中毒敌人伤害增加30%", - ["entry_1"]="战斗中直接生效!", + ["entry_1"]="伤害提升至50%", ["entry_2"]="战斗中直接生效!", ["entry_3"]="伤害提升至80%", ["rougedesc"]="Combo:荒野镖客技能对中毒敌人伤害增加50%" @@ -1358,7 +1354,7 @@ local skill_rogue = { }, [3300144]={ ["desc"]="荒野镖客技能倍率提升150%", - ["entry_1"]="战斗中直接生效!", + ["entry_1"]="技能倍率提升300%", ["entry_2"]="附加概率格挡2回合", ["entry_3"]="战斗中直接生效!", ["rougedesc"]="荒野镖客技能倍率提升300%+附加20%格挡2回合" @@ -1373,7 +1369,7 @@ local skill_rogue = { [3400112]={ ["desc"]="光合特工技能可上下消除2格", ["entry_1"]="战斗中直接生效!", - ["entry_2"]="战斗中直接生效!", + ["entry_2"]="上下消除增加2格", ["entry_3"]="技能链接时伤害增加10%", ["rougedesc"]="光合特工技能可上下消除2格" }, @@ -1392,60 +1388,60 @@ local skill_rogue = { ["rougedesc"]="光合特工技能可上下消除4格;链接增伤10%" }, [3400121]={ - ["desc"]="光合特工技能回血量提升50%", - ["entry_1"]="释放后附加技能伤害提升1回合", + ["desc"]="光合特工技能释放为团队附加技能增伤,1回合", + ["entry_1"]="技能增伤回合数+1", ["entry_2"]="战斗中直接生效!", - ["entry_3"]="释放后附加技能伤害提升2回合", - ["rougedesc"]="光合特工技能回血量提升50%" + ["entry_3"]="额外附加亢奋,2回合", + ["rougedesc"]="光合特工技能释放为团队附加技能增伤,1回合" }, [3400122]={ - ["desc"]="光合特工技能回血量提升50%", - ["entry_1"]="释放后附加技能伤害提升1回合", + ["desc"]="光合特工技能释放为团队附加技能增伤,1回合", + ["entry_1"]="技能增伤回合数+1", ["entry_2"]="战斗中直接生效!", - ["entry_3"]="释放后附加技能伤害提升2回合", - ["rougedesc"]="光合特工技能回血量提升50%,技能附加技能伤害提升15%1回合" + ["entry_3"]="额外附加亢奋,2回合", + ["rougedesc"]="光合特工技能释放为团队附加技能增伤,2回合" }, [3400123]={ - ["desc"]="光合特工技能回血量提升50%", - ["entry_1"]="战斗中直接生效!", + ["desc"]="光合特工技能释放为团队附加技能增伤,1回合", + ["entry_1"]="技能增伤回合数+1", ["entry_2"]="战斗中直接生效!", - ["entry_3"]="释放后附加技能伤害提升2回合", - ["rougedesc"]="光合特工技能回血量提升50%,技能附加技能伤害提升15%1回合" + ["entry_3"]="额外附加亢奋,2回合", + ["rougedesc"]="光合特工技能释放为团队附加技能增伤,2回合" }, [3400124]={ - ["desc"]="光合特工技能回血量提升50%", - ["entry_1"]="释放后附加技能伤害提升1回合", + ["desc"]="光合特工技能释放为团队附加技能增伤,1回合", + ["entry_1"]="技能增伤回合数+1", ["entry_2"]="战斗中直接生效!", - ["entry_3"]="释放后附加技能伤害提升2回合", - ["rougedesc"]="光合特工技能回血量提升50%,技能附加技能伤害提升15%2回合" + ["entry_3"]="额外附加亢奋,2回合", + ["rougedesc"]="光合特工技能释放为团队附加技能增伤,2回合;亢奋,2回合" }, [3400131]={ - ["desc"]="光合特工技能链接超过5个元素,回血量提升10%", + ["desc"]="光合特工技能链接超过5个元素,为团队附加普攻增伤,2回合", ["entry_1"]="链接需要元素降低为3个", ["entry_2"]="战斗中直接生效!", - ["entry_3"]="链接后每次普攻将回复生命", - ["rougedesc"]="光合特工技能链接超过5个元素,回血量提升10%" + ["entry_3"]="额外附加暴伤提升,2回合", + ["rougedesc"]="光合特工技能链接超过5个元素,为团队附加普攻增伤,2回合" }, [3400132]={ - ["desc"]="光合特工技能链接超过5个元素,回血量提升10%", + ["desc"]="光合特工技能链接超过5个元素,为团队附加普攻增伤,2回合", ["entry_1"]="链接需要元素降低为3个", ["entry_2"]="战斗中直接生效!", - ["entry_3"]="链接后每次普攻将回复生命", - ["rougedesc"]="光合特工技能链接超过3个元素,回血量提升10%" + ["entry_3"]="额外附加暴伤提升,2回合", + ["rougedesc"]="光合特工技能链接超过3个元素,为团队附加普攻增伤,2回合" }, [3400133]={ - ["desc"]="光合特工技能链接超过5个元素,回血量提升10%", - ["entry_1"]="战斗中直接生效!", - ["entry_2"]="战斗中直接生效!", - ["entry_3"]="链接后每次普攻将回复生命", - ["rougedesc"]="光合特工技能链接超过3个元素,回血量提升10%" - }, - [3400134]={ - ["desc"]="光合特工技能链接超过5个元素,回血量提升10%", + ["desc"]="光合特工技能链接超过5个元素,为团队附加普攻增伤,2回合", ["entry_1"]="链接需要元素降低为3个", ["entry_2"]="战斗中直接生效!", - ["entry_3"]="链接后每次普攻将回复生命", - ["rougedesc"]="光合特工技能链接超过3个元素,回血量提升10%;链接普攻每次攻击回复光和特工5%攻击的血量" + ["entry_3"]="额外附加暴伤提升,2回合", + ["rougedesc"]="光合特工技能链接超过3个元素,为团队附加普攻增伤,2回合" + }, + [3400134]={ + ["desc"]="光合特工技能链接超过5个元素,为团队附加普攻增伤,2回合", + ["entry_1"]="链接需要元素降低为3个", + ["entry_2"]="战斗中直接生效!", + ["entry_3"]="额外附加暴伤提升,2回合", + ["rougedesc"]="光合特工技能链接超过3个元素,为团队附加普攻增伤,2回合;暴伤提升,2回合" }, [3400141]={ ["desc"]="光合特工攻击提升5%", @@ -1470,7 +1466,7 @@ local skill_rogue = { }, [3400144]={ ["desc"]="光合特工攻击提升5%", - ["entry_1"]="战斗中直接生效!", + ["entry_1"]="攻击提升至10%", ["entry_2"]="攻击提升至15%", ["entry_3"]="战斗中直接生效!", ["rougedesc"]="光合特工攻击提升15%" @@ -2597,6 +2593,6 @@ local skill_rogue = { } } local config = { -data=skill_rogue,count=396 +data=skill_rogue,count=384 } return config \ No newline at end of file diff --git a/lua/app/config/strings/de/skill_rogue.lua b/lua/app/config/strings/de/skill_rogue.lua index 8dc109f2..641ebccd 100644 --- a/lua/app/config/strings/de/skill_rogue.lua +++ b/lua/app/config/strings/de/skill_rogue.lua @@ -94,42 +94,6 @@ local skill_rogue = { }, [32]={ - }, - [33]={ - - }, - [34]={ - - }, - [35]={ - - }, - [36]={ - - }, - [37]={ - - }, - [38]={ - - }, - [39]={ - - }, - [40]={ - - }, - [41]={ - - }, - [42]={ - - }, - [43]={ - - }, - [44]={ - }, [1300111]={ @@ -1189,6 +1153,6 @@ local skill_rogue = { } } local config = { -data=skill_rogue,count=396 +data=skill_rogue,count=384 } return config \ No newline at end of file diff --git a/lua/app/config/strings/en/buff_daily_challenge.lua b/lua/app/config/strings/en/buff_daily_challenge.lua index 574742d4..7ff50df5 100644 --- a/lua/app/config/strings/en/buff_daily_challenge.lua +++ b/lua/app/config/strings/en/buff_daily_challenge.lua @@ -9,7 +9,7 @@ local buff_daily_challenge = { ["desc"]="all damage taken -10%" }, [4]={ - ["desc"]="Crti Rate +20%, Crit Damage +30%" + ["desc"]="Crti Rate +10%, Crit Damage +15%" }, [5]={ ["desc"]="Skill damage +15%" diff --git a/lua/app/config/strings/en/skill_rogue.lua b/lua/app/config/strings/en/skill_rogue.lua index db55b2c2..66d48e8c 100644 --- a/lua/app/config/strings/en/skill_rogue.lua +++ b/lua/app/config/strings/en/skill_rogue.lua @@ -95,42 +95,6 @@ local skill_rogue = { [32]={ ["desc"]="Turns 5 random Non-Red elements into Red" }, - [33]={ - ["desc"]="Turns 2 random Non-Golden elements into Golden" - }, - [34]={ - ["desc"]="Turns 3 random Non-Golden elements into Golden" - }, - [35]={ - ["desc"]="Turns 5 random Non-Golden elements into Golden" - }, - [36]={ - ["desc"]="Turns 2 random Non-Green elements into Green" - }, - [37]={ - ["desc"]="Turns 3 random Non-Green elements into Green" - }, - [38]={ - ["desc"]="Turns 5 random Non-Green elements into Green" - }, - [39]={ - ["desc"]="Turns 2 random Non-Blue elements into Blue" - }, - [40]={ - ["desc"]="Turns 3 random Non-Blue elements into Blue" - }, - [41]={ - ["desc"]="Turns 5 random Non-Blue elements into Blue" - }, - [42]={ - ["desc"]="Turns 2 random Non-Purple elements into Purple" - }, - [43]={ - ["desc"]="Turns 3 random Non-Purple elements into Purple" - }, - [44]={ - ["desc"]="Turns 5 random Non-Purple elements into Purple" - }, [1300111]={ }, @@ -1189,6 +1153,6 @@ local skill_rogue = { } } local config = { -data=skill_rogue,count=396 +data=skill_rogue,count=384 } return config \ No newline at end of file diff --git a/lua/app/config/strings/es/buff_daily_challenge.lua b/lua/app/config/strings/es/buff_daily_challenge.lua index 00b8f2af..3ddd7123 100644 --- a/lua/app/config/strings/es/buff_daily_challenge.lua +++ b/lua/app/config/strings/es/buff_daily_challenge.lua @@ -9,7 +9,7 @@ local buff_daily_challenge = { ["desc"]="El daño recibido se reduce un 10%" }, [4]={ - ["desc"]="Tasa de golpe crítico +20%" + ["desc"]="Tasa de golpe crítico +10%" }, [5]={ ["desc"]="Daño de habilidad +15%" diff --git a/lua/app/config/strings/es/skill_rogue.lua b/lua/app/config/strings/es/skill_rogue.lua index 5a6ac01a..9ca897fb 100644 --- a/lua/app/config/strings/es/skill_rogue.lua +++ b/lua/app/config/strings/es/skill_rogue.lua @@ -95,42 +95,6 @@ local skill_rogue = { [32]={ ["desc"]="Convierte 5 elementos aleatorios en el campo que no sean rojos en rojo." }, - [33]={ - ["desc"]="Convierte 2 elementos aleatorios en el campo que no sean dorados en dorado." - }, - [34]={ - ["desc"]="Convierte 3 elementos aleatorios en el campo que no sean dorados en dorado." - }, - [35]={ - ["desc"]="Convierte 5 elementos aleatorios en el campo que no sean dorados en dorado." - }, - [36]={ - ["desc"]="Convierte 2 elementos aleatorios en el campo que no sean verdes en verde." - }, - [37]={ - ["desc"]="Convierte 3 elementos aleatorios en el campo que no sean verdes en verde." - }, - [38]={ - ["desc"]="Convierte 5 elementos aleatorios en el campo que no sean verdes en verde." - }, - [39]={ - ["desc"]="Convierte 2 elementos aleatorios en el campo que no sean azules en azul." - }, - [40]={ - ["desc"]="Convierte 3 elementos aleatorios en el campo que no sean azules en azul." - }, - [41]={ - ["desc"]="Convierte 5 elementos aleatorios en el campo que no sean azules en azul." - }, - [42]={ - ["desc"]="Convierte 2 elementos aleatorios en el campo que no sean morados en morado." - }, - [43]={ - ["desc"]="Convierte 3 elementos aleatorios en el campo que no sean morados en morado." - }, - [44]={ - ["desc"]="Convierte 5 elementos aleatorios en el campo que no sean morados en morado." - }, [1300111]={ }, @@ -1189,6 +1153,6 @@ local skill_rogue = { } } local config = { -data=skill_rogue,count=396 +data=skill_rogue,count=384 } return config \ No newline at end of file diff --git a/lua/app/config/strings/fr/skill_rogue.lua b/lua/app/config/strings/fr/skill_rogue.lua index 8dc109f2..641ebccd 100644 --- a/lua/app/config/strings/fr/skill_rogue.lua +++ b/lua/app/config/strings/fr/skill_rogue.lua @@ -94,42 +94,6 @@ local skill_rogue = { }, [32]={ - }, - [33]={ - - }, - [34]={ - - }, - [35]={ - - }, - [36]={ - - }, - [37]={ - - }, - [38]={ - - }, - [39]={ - - }, - [40]={ - - }, - [41]={ - - }, - [42]={ - - }, - [43]={ - - }, - [44]={ - }, [1300111]={ @@ -1189,6 +1153,6 @@ local skill_rogue = { } } local config = { -data=skill_rogue,count=396 +data=skill_rogue,count=384 } return config \ No newline at end of file diff --git a/lua/app/config/strings/id/buff_daily_challenge.lua b/lua/app/config/strings/id/buff_daily_challenge.lua index 1faa5b43..dfc428be 100644 --- a/lua/app/config/strings/id/buff_daily_challenge.lua +++ b/lua/app/config/strings/id/buff_daily_challenge.lua @@ -9,7 +9,7 @@ local buff_daily_challenge = { ["desc"]="DMG yang diterima berkurang 10%" }, [4]={ - ["desc"]="Crit Rate +20%" + ["desc"]="Crit Rate +10%" }, [5]={ ["desc"]="DMG skill +15%" diff --git a/lua/app/config/strings/id/skill_rogue.lua b/lua/app/config/strings/id/skill_rogue.lua index 91d1a98b..03046077 100644 --- a/lua/app/config/strings/id/skill_rogue.lua +++ b/lua/app/config/strings/id/skill_rogue.lua @@ -95,42 +95,6 @@ local skill_rogue = { [32]={ ["desc"]="Ubah 5 elemen non-merah secara acak di bidang menjadi merah." }, - [33]={ - ["desc"]="Ubah 2 elemen non-emas secara acak di bidang menjadi emas." - }, - [34]={ - ["desc"]="Ubah 3 elemen non-emas secara acak di bidang menjadi emas." - }, - [35]={ - ["desc"]="Ubah 5 elemen non-emas secara acak di bidang menjadi emas." - }, - [36]={ - ["desc"]="Ubah 2 elemen non-hijau secara acak di bidang menjadi hijau." - }, - [37]={ - ["desc"]="Ubah 3 elemen non-hijau secara acak di bidang menjadi hijau." - }, - [38]={ - ["desc"]="Ubah 5 elemen non-hijau secara acak di bidang menjadi hijau." - }, - [39]={ - ["desc"]="Ubah 2 elemen non-biru secara acak di bidang menjadi biru." - }, - [40]={ - ["desc"]="Ubah 3 elemen non-biru secara acak di bidang menjadi biru." - }, - [41]={ - ["desc"]="Ubah 5 elemen non-biru secara acak di bidang menjadi biru." - }, - [42]={ - ["desc"]="Ubah 2 elemen non-ungu secara acak di bidang menjadi ungu." - }, - [43]={ - ["desc"]="Ubah 3 elemen non-ungu secara acak di bidang menjadi ungu." - }, - [44]={ - ["desc"]="Ubah 5 elemen non-ungu secara acak di bidang menjadi ungu." - }, [1300111]={ }, @@ -1189,6 +1153,6 @@ local skill_rogue = { } } local config = { -data=skill_rogue,count=396 +data=skill_rogue,count=384 } return config \ No newline at end of file diff --git a/lua/app/config/strings/ja/buff_daily_challenge.lua b/lua/app/config/strings/ja/buff_daily_challenge.lua index aca6b7a4..703167b3 100644 --- a/lua/app/config/strings/ja/buff_daily_challenge.lua +++ b/lua/app/config/strings/ja/buff_daily_challenge.lua @@ -9,7 +9,7 @@ local buff_daily_challenge = { ["desc"]="受けるダメージが10%減少する" }, [4]={ - ["desc"]="クリティカル率が+20%" + ["desc"]="クリティカル率が+10%" }, [5]={ ["desc"]="技能ダメージ+15%" diff --git a/lua/app/config/strings/ja/skill_rogue.lua b/lua/app/config/strings/ja/skill_rogue.lua index d870ccb7..dd42e6ed 100644 --- a/lua/app/config/strings/ja/skill_rogue.lua +++ b/lua/app/config/strings/ja/skill_rogue.lua @@ -95,42 +95,6 @@ local skill_rogue = { [32]={ ["desc"]="ランダムで5つ赤以外の元素を赤に変える" }, - [33]={ - ["desc"]="ランダムで2つ黄以外の元素を黄に変える。" - }, - [34]={ - ["desc"]="ランダムで3つ黄以外の元素を黄に変える。" - }, - [35]={ - ["desc"]="ランダムで5つ黄以外の元素を黄に変える。" - }, - [36]={ - ["desc"]="ランダムで2つ緑以外の元素を緑に変える" - }, - [37]={ - ["desc"]="ランダムで3つ緑以外の元素を緑に変える" - }, - [38]={ - ["desc"]="ランダムで5つ緑以外の元素を緑に変える" - }, - [39]={ - ["desc"]="ランダムで2つ青以外の元素を青に変える" - }, - [40]={ - ["desc"]="ランダムで3つ青以外の元素を青に変える" - }, - [41]={ - ["desc"]="ランダムで5つ青以外の元素を青に変える" - }, - [42]={ - ["desc"]="ランダムで2つ紫以外の元素を紫に変える" - }, - [43]={ - ["desc"]="ランダムで3つ紫以外の元素を紫に変える" - }, - [44]={ - ["desc"]="ランダムで5つ紫以外の元素を紫に変える" - }, [1300111]={ }, @@ -1189,6 +1153,6 @@ local skill_rogue = { } } local config = { -data=skill_rogue,count=396 +data=skill_rogue,count=384 } return config \ No newline at end of file diff --git a/lua/app/config/strings/ko/buff_daily_challenge.lua b/lua/app/config/strings/ko/buff_daily_challenge.lua index a3f944fc..478a1ea3 100644 --- a/lua/app/config/strings/ko/buff_daily_challenge.lua +++ b/lua/app/config/strings/ko/buff_daily_challenge.lua @@ -9,7 +9,7 @@ local buff_daily_challenge = { ["desc"]="받는 대미지가 10% 감소합니다." }, [4]={ - ["desc"]="치명타율 +20%" + ["desc"]="치명타율 +10%" }, [5]={ ["desc"]="골드 공격력 +{0}" diff --git a/lua/app/config/strings/ko/skill_rogue.lua b/lua/app/config/strings/ko/skill_rogue.lua index 31a16788..84893951 100644 --- a/lua/app/config/strings/ko/skill_rogue.lua +++ b/lua/app/config/strings/ko/skill_rogue.lua @@ -95,42 +95,6 @@ local skill_rogue = { [32]={ ["desc"]="필드에서 빨간색이 아닌 임의의 5개 원소를 빨간색으로 바꿉니다." }, - [33]={ - ["desc"]="보드에서 황금색이 아닌 무작위의 2개 원소를 황금색으로 바꿉니다." - }, - [34]={ - ["desc"]="보드에서 황금색이 아닌 무작위의 3개 원소를 황금색으로 바꿉니다." - }, - [35]={ - ["desc"]="보드에서 황금색이 아닌 무작위의 5개 원소를 황금색으로 바꿉니다." - }, - [36]={ - ["desc"]="보드에서 녹색이 아닌 무작위의 2개 원소를 녹색으로 바꿉니다." - }, - [37]={ - ["desc"]="보드에서 녹색이 아닌 무작위의 3개 원소를 녹색으로 바꿉니다." - }, - [38]={ - ["desc"]="보드에서 녹색이 아닌 무작위의 5개 원소를 녹색으로 바꿉니다." - }, - [39]={ - ["desc"]="보드에서 파란색이 아닌 무작위의 2개 원소를 파란색으로 바꿉니다." - }, - [40]={ - ["desc"]="보드에서 파란색이 아닌 무작위의 3개 원소를 파란색으로 바꿉니다." - }, - [41]={ - ["desc"]="보드에서 파란색이 아닌 무작위의 5개 원소를 파란색으로 바꿉니다." - }, - [42]={ - ["desc"]="필드에서 보라색이 아닌 임의의 2개 원소를 보라색으로 바꿉니다." - }, - [43]={ - ["desc"]="필드에서 보라색이 아닌 임의의 3개 원소를 보라색으로 바꿉니다." - }, - [44]={ - ["desc"]="필드에서 보라색이 아닌 임의의 5개 원소를 보라색으로 바꿉니다." - }, [1300111]={ }, @@ -1189,6 +1153,6 @@ local skill_rogue = { } } local config = { -data=skill_rogue,count=396 +data=skill_rogue,count=384 } return config \ No newline at end of file diff --git a/lua/app/config/strings/pt/buff_daily_challenge.lua b/lua/app/config/strings/pt/buff_daily_challenge.lua index 86fbadd3..ac526a0c 100644 --- a/lua/app/config/strings/pt/buff_daily_challenge.lua +++ b/lua/app/config/strings/pt/buff_daily_challenge.lua @@ -9,7 +9,7 @@ local buff_daily_challenge = { ["desc"]="Reduz o dano recebido em 10%." }, [4]={ - ["desc"]="Chance de acerto crítico + 20%." + ["desc"]="Chance de acerto crítico + 10%." }, [5]={ ["desc"]="Dano de habilidade +15%" diff --git a/lua/app/config/strings/pt/skill_rogue.lua b/lua/app/config/strings/pt/skill_rogue.lua index 7d087a84..8c9f6e1b 100644 --- a/lua/app/config/strings/pt/skill_rogue.lua +++ b/lua/app/config/strings/pt/skill_rogue.lua @@ -95,42 +95,6 @@ local skill_rogue = { [32]={ ["desc"]="Transforma 5 elementos não Vermelhos aleatórios em Vermelhos." }, - [33]={ - ["desc"]="Transforma 2 elementos não Dourados aleatórios em Dourados." - }, - [34]={ - ["desc"]="Transforma 3 elementos não Dourados aleatórios em Dourados." - }, - [35]={ - ["desc"]="Transforma 5 elementos não Dourados aleatórios em Dourados." - }, - [36]={ - ["desc"]="Transforma 2 elementos não Verdes aleatórios em Verdes." - }, - [37]={ - ["desc"]="Transforma 3 elementos não Verdes aleatórios em Verdes." - }, - [38]={ - ["desc"]="Transforma 5 elementos não Verdes aleatórios em Verdes." - }, - [39]={ - ["desc"]="Transforma 2 elementos não Azuis aleatórios em Azuis." - }, - [40]={ - ["desc"]="Transforma 3 elementos não Azuis aleatórios em Azuis." - }, - [41]={ - ["desc"]="Transforma 5 elementos não Azuis aleatórios em Azuis." - }, - [42]={ - ["desc"]="Transforma 2 elementos não Roxos aleatórios em Roxos." - }, - [43]={ - ["desc"]="Transforma 3 elementos não Roxos aleatórios em Roxos." - }, - [44]={ - ["desc"]="Transforma 5 elementos não Roxos aleatórios em Roxos." - }, [1300111]={ }, @@ -1189,6 +1153,6 @@ local skill_rogue = { } } local config = { -data=skill_rogue,count=396 +data=skill_rogue,count=384 } return config \ No newline at end of file diff --git a/lua/app/config/strings/ru/skill_rogue.lua b/lua/app/config/strings/ru/skill_rogue.lua index 8dc109f2..641ebccd 100644 --- a/lua/app/config/strings/ru/skill_rogue.lua +++ b/lua/app/config/strings/ru/skill_rogue.lua @@ -94,42 +94,6 @@ local skill_rogue = { }, [32]={ - }, - [33]={ - - }, - [34]={ - - }, - [35]={ - - }, - [36]={ - - }, - [37]={ - - }, - [38]={ - - }, - [39]={ - - }, - [40]={ - - }, - [41]={ - - }, - [42]={ - - }, - [43]={ - - }, - [44]={ - }, [1300111]={ @@ -1189,6 +1153,6 @@ local skill_rogue = { } } local config = { -data=skill_rogue,count=396 +data=skill_rogue,count=384 } return config \ No newline at end of file diff --git a/lua/app/config/strings/th/buff_daily_challenge.lua b/lua/app/config/strings/th/buff_daily_challenge.lua index a2c8799d..d1277548 100644 --- a/lua/app/config/strings/th/buff_daily_challenge.lua +++ b/lua/app/config/strings/th/buff_daily_challenge.lua @@ -9,7 +9,7 @@ local buff_daily_challenge = { ["desc"]="ดาเมจที่ได้รับลดลง10%" }, [4]={ - ["desc"]="อัตรา Crit+20%" + ["desc"]="อัตรา Crit+10%" }, [5]={ ["desc"]="ความเสียหายทางทักษะ+15%" diff --git a/lua/app/config/strings/th/skill_rogue.lua b/lua/app/config/strings/th/skill_rogue.lua index fc52400a..239c7547 100644 --- a/lua/app/config/strings/th/skill_rogue.lua +++ b/lua/app/config/strings/th/skill_rogue.lua @@ -95,42 +95,6 @@ local skill_rogue = { [32]={ ["desc"]="เปลี่ยนธาตุ5อันแบบสุ่มที่ไม่ใช่สีแดงบนสนามเป็นสีแดง" }, - [33]={ - ["desc"]="เปลี่ยนธาตุ2อันแบบสุ่มที่ไม่ใช่สีทองบนสนามเป็นสีทอง" - }, - [34]={ - ["desc"]="เปลี่ยนธาตุ3อันแบบสุ่มที่ไม่ใช่สีทองบนสนามเป็นสีทอง" - }, - [35]={ - ["desc"]="เปลี่ยนธาตุ5อันแบบสุ่มที่ไม่ใช่สีทองบนสนามเป็นสีทอง" - }, - [36]={ - ["desc"]="เปลี่ยนธาตุ2อันแบบสุ่มที่ไม่ใช่สีเขียวบนสนามเป็นสีเขียว" - }, - [37]={ - ["desc"]="เปลี่ยนธาตุ3อันแบบสุ่มที่ไม่ใช่สีเขียวบนสนามเป็นสีเขียว" - }, - [38]={ - ["desc"]="เปลี่ยนธาตุ5อันแบบสุ่มที่ไม่ใช่สีเขียวบนสนามเป็นสีเขียว" - }, - [39]={ - ["desc"]="เปลี่ยนธาตุ2อันแบบสุ่มที่ไม่ใช่สีฟ้าบนสนามเป็นสีฟ้า" - }, - [40]={ - ["desc"]="เปลี่ยนธาตุ3อันแบบสุ่มที่ไม่ใช่สีฟ้าบนสนามเป็นสีฟ้า" - }, - [41]={ - ["desc"]="เปลี่ยนธาตุ5อันแบบสุ่มที่ไม่ใช่สีฟ้าบนสนามเป็นสีฟ้า" - }, - [42]={ - ["desc"]="เปลี่ยนธาตุ2อันแบบสุ่มที่ไม่ใช่สีม่วงบนสนามเป็นสีม่วง" - }, - [43]={ - ["desc"]="เปลี่ยนธาตุ3อันแบบสุ่มที่ไม่ใช่สีม่วงบนสนามเป็นสีม่วง" - }, - [44]={ - ["desc"]="เปลี่ยนธาตุ5อันแบบสุ่มที่ไม่ใช่สีม่วงบนสนามเป็นสีม่วง" - }, [1300111]={ }, @@ -1189,6 +1153,6 @@ local skill_rogue = { } } local config = { -data=skill_rogue,count=396 +data=skill_rogue,count=384 } return config \ No newline at end of file diff --git a/lua/app/config/strings/vi/buff_daily_challenge.lua b/lua/app/config/strings/vi/buff_daily_challenge.lua index 1db1be3f..bf6bd002 100644 --- a/lua/app/config/strings/vi/buff_daily_challenge.lua +++ b/lua/app/config/strings/vi/buff_daily_challenge.lua @@ -9,7 +9,7 @@ local buff_daily_challenge = { ["desc"]="Sát thương phải nhận giảm -10%" }, [4]={ - ["desc"]="Tỷ lệ chí mạng +20%" + ["desc"]="Tỷ lệ chí mạng +10%" }, [5]={ ["desc"]="Gây tổn hại đến kỹ năng +15%" diff --git a/lua/app/config/strings/vi/skill_rogue.lua b/lua/app/config/strings/vi/skill_rogue.lua index e92cd386..d75e2a39 100644 --- a/lua/app/config/strings/vi/skill_rogue.lua +++ b/lua/app/config/strings/vi/skill_rogue.lua @@ -95,42 +95,6 @@ local skill_rogue = { [32]={ ["desc"]="Trong trận ngẫu nhiên 5 Nguyên Tố không phải Đỏ chuyển thành Đỏ" }, - [33]={ - ["desc"]="Trong trận ngẫu nhiên 2 Nguyên Tố không phải Vàng chuyển thành Vàng" - }, - [34]={ - ["desc"]="Trong trận ngẫu nhiên 3 Nguyên Tố không phải Vàng chuyển thành Vàng" - }, - [35]={ - ["desc"]="Trong trận ngẫu nhiên 5 Nguyên Tố không phải Vàng chuyển thành Vàng" - }, - [36]={ - ["desc"]="Trong trận ngẫu nhiên 2 Nguyên Tố không phải Lục chuyển thành Lục" - }, - [37]={ - ["desc"]="Trong trận ngẫu nhiên 3 Nguyên Tố không phải Lục chuyển thành Lục" - }, - [38]={ - ["desc"]="Trong trận ngẫu nhiên 5 Nguyên Tố không phải Lục chuyển thành Lục" - }, - [39]={ - ["desc"]="Trong trận ngẫu nhiên 2 Nguyên Tố không phải Lam chuyển thành Lam" - }, - [40]={ - ["desc"]="Trong trận ngẫu nhiên 3 Nguyên Tố không phải Lam chuyển thành Lam" - }, - [41]={ - ["desc"]="Trong trận ngẫu nhiên 5 Nguyên Tố không phải Lam chuyển thành Lam" - }, - [42]={ - ["desc"]="Trong trận ngẫu nhiên 2 Nguyên Tố không phải Tím chuyển thành Tím" - }, - [43]={ - ["desc"]="Trong trận ngẫu nhiên 3 Nguyên Tố không phải Tím chuyển thành Tím" - }, - [44]={ - ["desc"]="Trong trận ngẫu nhiên 5 Nguyên Tố không phải Tím chuyển thành Tím" - }, [1300111]={ }, @@ -1189,6 +1153,6 @@ local skill_rogue = { } } local config = { -data=skill_rogue,count=396 +data=skill_rogue,count=384 } return config \ No newline at end of file diff --git a/lua/app/config/strings/zh/buff_daily_challenge.lua b/lua/app/config/strings/zh/buff_daily_challenge.lua index 8960c096..5597e013 100644 --- a/lua/app/config/strings/zh/buff_daily_challenge.lua +++ b/lua/app/config/strings/zh/buff_daily_challenge.lua @@ -9,7 +9,7 @@ local buff_daily_challenge = { ["desc"]="受到所有傷害-10%" }, [4]={ - ["desc"]="暴擊率+20%" + ["desc"]="暴擊率+10%" }, [5]={ ["desc"]="技能傷害+15%" diff --git a/lua/app/config/strings/zh/skill_rogue.lua b/lua/app/config/strings/zh/skill_rogue.lua index a31c3689..cbcff0a2 100644 --- a/lua/app/config/strings/zh/skill_rogue.lua +++ b/lua/app/config/strings/zh/skill_rogue.lua @@ -95,42 +95,6 @@ local skill_rogue = { [32]={ ["desc"]="將場上隨機5個非紅色元素變成紅色" }, - [33]={ - ["desc"]="將場上隨機2個非金色元素變成金色" - }, - [34]={ - ["desc"]="將場上隨機3個非金色元素變成金色" - }, - [35]={ - ["desc"]="將場上隨機5個非金色元素變成金色" - }, - [36]={ - ["desc"]="將場上隨機2個非綠色元素變成綠色" - }, - [37]={ - ["desc"]="將場上隨機3個非綠色元素變成綠色" - }, - [38]={ - ["desc"]="將場上隨機5個非綠色元素變成綠色" - }, - [39]={ - ["desc"]="將場上隨機2個非藍色元素變成藍色" - }, - [40]={ - ["desc"]="將場上隨機3個非藍色元素變成藍色" - }, - [41]={ - ["desc"]="將場上隨機5個非藍色元素變成藍色" - }, - [42]={ - ["desc"]="將場上隨機2個非紫色元素變成紫色" - }, - [43]={ - ["desc"]="將場上隨機3個非紫色元素變成紫色" - }, - [44]={ - ["desc"]="將場上隨機5個非紫色元素變成紫色" - }, [1300111]={ }, @@ -1189,6 +1153,6 @@ local skill_rogue = { } } local config = { -data=skill_rogue,count=396 +data=skill_rogue,count=384 } return config \ No newline at end of file diff --git a/lua/app/config/summon_shop.lua b/lua/app/config/summon_shop.lua index 798a97e5..18ffca03 100644 --- a/lua/app/config/summon_shop.lua +++ b/lua/app/config/summon_shop.lua @@ -58,8 +58,8 @@ local summon_shop = { ["discount"]={ ["type"]=1, ["type_for_nothing"]="Vw==", - ["id"]=88, - ["id_for_nothing"]="XgA=", + ["id"]=46, + ["id_for_nothing"]="Ug4=", ["num"]=500, ["num_for_nothing"]="Uwhc" }, @@ -89,8 +89,8 @@ local summon_shop = { ["discount"]={ ["type"]=1, ["type_for_nothing"]="Vw==", - ["id"]=88, - ["id_for_nothing"]="XgA=", + ["id"]=46, + ["id_for_nothing"]="Ug4=", ["num"]=500, ["num_for_nothing"]="Uwhc" }, @@ -120,8 +120,8 @@ local summon_shop = { ["discount"]={ ["type"]=1, ["type_for_nothing"]="Vw==", - ["id"]=88, - ["id_for_nothing"]="XgA=", + ["id"]=46, + ["id_for_nothing"]="Ug4=", ["num"]=500, ["num_for_nothing"]="Uwhc" }, @@ -151,8 +151,8 @@ local summon_shop = { ["discount"]={ ["type"]=1, ["type_for_nothing"]="Vw==", - ["id"]=88, - ["id_for_nothing"]="XgA=", + ["id"]=46, + ["id_for_nothing"]="Ug4=", ["num"]=500, ["num_for_nothing"]="Uwhc" }, @@ -182,8 +182,8 @@ local summon_shop = { ["discount"]={ ["type"]=1, ["type_for_nothing"]="Vw==", - ["id"]=88, - ["id_for_nothing"]="XgA=", + ["id"]=46, + ["id_for_nothing"]="Ug4=", ["num"]=500, ["num_for_nothing"]="Uwhc" }, @@ -213,8 +213,8 @@ local summon_shop = { ["discount"]={ ["type"]=1, ["type_for_nothing"]="Vw==", - ["id"]=88, - ["id_for_nothing"]="XgA=", + ["id"]=46, + ["id_for_nothing"]="Ug4=", ["num"]=500, ["num_for_nothing"]="Uwhc" }, @@ -244,8 +244,8 @@ local summon_shop = { ["discount"]={ ["type"]=1, ["type_for_nothing"]="Vw==", - ["id"]=88, - ["id_for_nothing"]="XgA=", + ["id"]=46, + ["id_for_nothing"]="Ug4=", ["num"]=500, ["num_for_nothing"]="Uwhc" }, @@ -275,8 +275,8 @@ local summon_shop = { ["discount"]={ ["type"]=1, ["type_for_nothing"]="Vw==", - ["id"]=88, - ["id_for_nothing"]="XgA=", + ["id"]=46, + ["id_for_nothing"]="Ug4=", ["num"]=500, ["num_for_nothing"]="Uwhc" }, @@ -306,8 +306,8 @@ local summon_shop = { ["discount"]={ ["type"]=1, ["type_for_nothing"]="Vw==", - ["id"]=88, - ["id_for_nothing"]="XgA=", + ["id"]=46, + ["id_for_nothing"]="Ug4=", ["num"]=500, ["num_for_nothing"]="Uwhc" }, @@ -337,8 +337,8 @@ local summon_shop = { ["discount"]={ ["type"]=1, ["type_for_nothing"]="Vw==", - ["id"]=88, - ["id_for_nothing"]="XgA=", + ["id"]=46, + ["id_for_nothing"]="Ug4=", ["num"]=500, ["num_for_nothing"]="Uwhc" }, diff --git a/lua/app/config/talent.lua b/lua/app/config/talent.lua index 151a7fb1..c128d325 100644 --- a/lua/app/config/talent.lua +++ b/lua/app/config/talent.lua @@ -7,7 +7,8 @@ local talent = { ["num"]=200000 } }, - ["icon"]="talent_1" + ["icon"]="talent_1", + ["max_level"]=76 }, [2]={ ["qlt"]=1, @@ -17,7 +18,8 @@ local talent = { ["num"]=600000 } }, - ["icon"]="talent_2" + ["icon"]="talent_2", + ["max_level"]=76 }, [3]={ ["qlt"]=1, @@ -27,7 +29,8 @@ local talent = { ["num"]=20000 } }, - ["icon"]="talent_3" + ["icon"]="talent_3", + ["max_level"]=76 }, [4]={ ["qlt"]=2, @@ -37,7 +40,8 @@ local talent = { ["num"]=300000 } }, - ["icon"]="talent_4" + ["icon"]="talent_4", + ["max_level"]=48 }, [5]={ ["qlt"]=2, @@ -47,7 +51,8 @@ local talent = { ["num"]=900000 } }, - ["icon"]="talent_5" + ["icon"]="talent_5", + ["max_level"]=48 }, [6]={ ["qlt"]=2, @@ -57,7 +62,8 @@ local talent = { ["num"]=30000 } }, - ["icon"]="talent_6" + ["icon"]="talent_6", + ["max_level"]=48 }, [7]={ ["qlt"]=2, @@ -67,7 +73,8 @@ local talent = { ["num"]=100 } }, - ["icon"]="talent_7" + ["icon"]="talent_7", + ["max_level"]=15 }, [8]={ ["qlt"]=2, @@ -77,31 +84,36 @@ local talent = { ["num"]=500 } }, - ["icon"]="talent_8" + ["icon"]="talent_8", + ["max_level"]=20 }, [9]={ ["qlt"]=3, ["value"]=1, ["fight"]=1000, - ["icon"]="talent_9" + ["icon"]="talent_9", + ["max_level"]=3 }, [10]={ ["qlt"]=3, ["value"]=500000, ["fight"]=500, - ["icon"]="talent_10" + ["icon"]="talent_10", + ["max_level"]=15 }, [11]={ ["qlt"]=3, ["value"]=1, ["fight"]=1000, - ["icon"]="talent_11" + ["icon"]="talent_11", + ["max_level"]=1 }, [12]={ ["qlt"]=3, ["value"]=500, ["fight"]=1000, - ["icon"]="talent_12" + ["icon"]="talent_12", + ["max_level"]=15 }, [13]={ ["qlt"]=3, @@ -111,7 +123,8 @@ local talent = { ["num"]=500 } }, - ["icon"]="talent_13" + ["icon"]="talent_13", + ["max_level"]=15 }, [14]={ ["qlt"]=3, @@ -121,7 +134,8 @@ local talent = { ["num"]=500 } }, - ["icon"]="talent_14" + ["icon"]="talent_14", + ["max_level"]=15 }, [15]={ ["qlt"]=3, @@ -131,13 +145,15 @@ local talent = { ["num"]=500 } }, - ["icon"]="talent_15" + ["icon"]="talent_15", + ["max_level"]=15 }, [16]={ ["qlt"]=3, ["value"]=1000, ["fight"]=1000, - ["icon"]="talent_16" + ["icon"]="talent_16", + ["max_level"]=4 } } local config = { diff --git a/lua/app/module/hero/hero_const.lua b/lua/app/module/hero/hero_const.lua index b10b14d5..cc822252 100644 --- a/lua/app/module/hero/hero_const.lua +++ b/lua/app/module/hero/hero_const.lua @@ -34,6 +34,10 @@ HeroConst.PANEL_TYPE = { EQUIP = 3, } +HeroConst.PAGE_TYPE = { + SHOP = 1, +} + -- 总计 HeroConst.ATTR_SHOW_TOTAL = { GConst.MATCH_HP_NAME, -- 生命 diff --git a/lua/app/module/item/item_const.lua b/lua/app/module/item/item_const.lua index f0536974..fc16d773 100644 --- a/lua/app/module/item/item_const.lua +++ b/lua/app/module/item/item_const.lua @@ -28,6 +28,7 @@ ItemConst.ITEM_ID_RUNES = 55 ItemConst.ITEM_ID_FULL_MOON = 56 ItemConst.ITEM_ID_DUNGEON_TICKET_1 = 47 ItemConst.ITEM_ID_DUNGEON_TICKET_2 = 48 +ItemConst.ITEM_ID_SUMMON_SHOP_GOLD_COMMON = 46 ItemConst.ITEM_TYPE = { RES = 1, diff --git a/lua/app/module/item/item_manager.lua b/lua/app/module/item/item_manager.lua index c1bfb3bf..4c4c1b72 100644 --- a/lua/app/module/item/item_manager.lua +++ b/lua/app/module/item/item_manager.lua @@ -13,7 +13,7 @@ function ItemManager:getItemDesc(id) end function ItemManager:getItemType(id) - return I18N:getConfig("item")[id].desc + return ConfigManager:getConfig("item")[id].type end function ItemManager:rspRecoveryNtf(result) diff --git a/lua/app/module/summon/summon_manager.lua b/lua/app/module/summon/summon_manager.lua index adf0a1bf..9523a096 100644 --- a/lua/app/module/summon/summon_manager.lua +++ b/lua/app/module/summon/summon_manager.lua @@ -16,21 +16,29 @@ function SummonManager:showSummonMainUI(summonId) end function SummonManager:showSummonWishUI(summonId) - UIManager:showUI("app/ui/summon/summon_wish_ui", {summonId = summonId}) + UIManager:showUI("app/ui/summon/summon_wish_ui", {summonId = summonId}) end function SummonManager:showSummonRewardUI(params) - UIManager:showUI("app/ui/summon/summon_reward_ui", params) + UIManager:showUI("app/ui/summon/summon_reward_ui", params) end function SummonManager:showSummonOddsUI(summonId) - UIManager:showUI("app/ui/summon/summon_odds_ui", {summonId = summonId}) + UIManager:showUI("app/ui/summon/summon_odds_ui", {summonId = summonId}) end function SummonManager:showSummonUnlockUI(params) UIManager:showUI("app/ui/summon/summon_unlock_ui", params) end +function SummonManager:showSummonShopUI(shopType) + UIManager:showUI("app/ui/summon/summon_shop_ui", { shopType = shopType }) +end + +function SummonManager:showSummonShopBoxUI(shopType, cfg) + UIManager:showUI("app/ui/summon/summon_shop_box_ui", { shopType = shopType, cfg = cfg }) +end + --@region 协议 function SummonManager:onForceSummonReq(count, free, summonType) local args = {} @@ -74,6 +82,29 @@ function SummonManager:onForceSummonRsp(result) -- DataManager.GameSettingData:showRateUIByForceSummon() -- end end + +-- 商店 +function SummonManager:reqForceSummonShopExchange(id, count) + self:sendMessage(ProtoMsgType.FromMsgEnum.SummonShopExchangeReq, {id = id, count = count}, self.rspForceSummonShopExchange, BIReport.ITEM_GET_TYPE.FORCE_SUMMON_SHOP_EXCHANGE) +end + +function SummonManager:rspForceSummonShopExchange(result) + if result.err_code ~= GConst.ERROR_STR.SUCCESS then + return + end + GFunc.showRewardBox(result.rewards) + DataManager.SummonData:shopSuccess(result.reqData.id, result.reqData.count) + BIReport:postSummonShopExchange(BIReport.SUMMON_OP_TYPE.SUMMON_SHOP, result.reqData.id, result.reqData.count, result.rewards) +end + +function SummonManager:reqSummonShopMarkUnlockTip(shopType) + -- local ids = DataManager.SummonData:getUnlockShopId(shopType) + -- self:sendMessage(ProtoMsgType.FromMsgEnum.SummonShopMarkUnlockTipReq, {ids = ids}, self.rspSummonShopMarkUnlockTip, BIReport.ITEM_GET_TYPE.SUMMON_OPEN_EXCHANGED_UI) +end + +function SummonManager:rspSummonShopMarkUnlockTip(result) + -- DataManager.SummonData:onSummonShopSoulOpen(result.reqData.ids) +end --@endregion function SummonManager:onSummonWishSetReq(summonType, heroId) @@ -150,6 +181,7 @@ function SummonManager:activityHeroBountyClaimedRsp(result) BIReport:postActSummonUpgrade("HeroPage_2", activityId,minIndex, maxIndex, heroId, heroLv,result.rewards) end end + function BIReport:postActSummonLogin(activityId, minId, maxId, cur, rewards) local args = { opt_type = "Reward", diff --git a/lua/app/ui/summon/cell/summon_shop_cell.lua b/lua/app/ui/summon/cell/summon_shop_cell.lua new file mode 100644 index 00000000..3070e76e --- /dev/null +++ b/lua/app/ui/summon/cell/summon_shop_cell.lua @@ -0,0 +1,116 @@ +local SummonShopCell = class("SummonShopCell", BaseCell) + +function SummonShopCell:init() + local uiMap = self.baseObject:genAllChildren() + + self.heroBg = uiMap["summon_shop_cell.bg.hero_bg"] + self.icon = uiMap["summon_shop_cell.bg.hero_bg.icon"] + self.heroDec = uiMap["summon_shop_cell.bg.hero_bg.dec"] + self.matchImg = uiMap["summon_shop_cell.bg.hero_bg.match_img"] + self.nameTx = uiMap["summon_shop_cell.bg.hero_bg.name_tx"] + self.costTx = uiMap["summon_shop_cell.bg.cost_bg.cost_tx"] + self.costIcon = uiMap["summon_shop_cell.bg.cost_bg.icon"] + self.maskImg = uiMap["summon_shop_cell.bg.mask_img"] + self.unlockTx = uiMap["summon_shop_cell.bg.mask_img.unlock_tx"] + self.lockImg = uiMap["summon_shop_cell.bg.mask_img.lock_img"] + self.infoBtn = uiMap["summon_shop_cell.bg.hero_bg.info_btn"] + self.itemBg = uiMap["summon_shop_cell.bg.item_bg"] + self.itemIcon = uiMap["summon_shop_cell.bg.item_bg.icon"] + self.itemNumTx = uiMap["summon_shop_cell.bg.item_bg.num_tx"] + self.disBg = uiMap["summon_shop_cell.bg.dis_bg"] + self.disTx = uiMap["summon_shop_cell.bg.dis_bg.dis_tx"] + + self.unlockTx:setText(I18N:getGlobalText(I18N.GlobalConst.HERO_DESC_7)) + -- local meshPro = self.unlockTx:getComponent(GConst.TYPEOF_UNITY_CLASS.UI_TEXT_MESH_PRO) + -- local width = meshPro.preferredWidth + GFunc.centerImgAndTx(self.lockImg, self.unlockTx, 6) + + self:addClickListener(function() + if self.clickCallback ~= nil then + self.clickCallback(self.heroId) + end + end) + self.infoBtn:addClickListener(function() + if self.heroId ~= nil then + ModuleManager.HeroManager:showHeroDetailUI(self.heroId, true) + else + ModuleManager.TipsManager:showRewardTips(self.id, self.type) + end + end) +end + +function SummonShopCell:refresh(cfg) + self.heroId = nil + self.cfg = cfg + if self.cfg.force_id ~= nil then + self:refreshHero() + else + self:refreshItem() + end + self:setCost() +end + +function SummonShopCell:refreshHero() + -- 英雄 + self.heroId = self.cfg.hero.id + self.num = self.cfg.hero.num + self.isOwn = DataManager.HeroData:getHeroIsUnlock(self.cfg.force_id) + self.itemBg:setActive(false) + self.heroBg:setActive(true) + local heroInfo = ConfigManager:getConfig("hero")[self.heroId] + self.heroBg:setSprite(GConst.ATLAS_PATH.ICON_HERO, GConst.FRAME_QLT[heroInfo.qlt]) + self.heroDec:setSprite(GConst.ATLAS_PATH.ICON_HERO, GConst.HERO_DEC_QLT[heroInfo.qlt]) + self.icon:setSprite(GConst.ATLAS_PATH.ICON_HERO_2, tostring(heroInfo.icon)) + self.nameTx:setText(ModuleManager.HeroManager:getHeroName(self.heroId)) + self.maskImg:setActive(not self.isOwn) +end + +function SummonShopCell:refreshItem() + -- 道具 + self.id = self.cfg.hero.id + self.itemBg:setActive(true) + self.heroBg:setActive(false) + local itemInfo = ConfigManager:getConfig("item")[self.id] + self.itemBg:setSprite(GConst.ATLAS_PATH.ICON_HERO, GConst.FRAME_QLT[itemInfo.qlt]) + self.icon:setSprite(GConst.ATLAS_PATH.ICON_ITEM, tostring(itemInfo.icon)) + self.nameTx:setText(ModuleManager.HeroManager:getHeroName(self.id)) + self.itemNumTx:setText(self.cfg.hero.num) + self.maskImg:setActive(false) +end + +function SummonShopCell:setCost() + local cost + local exchangesCount = DataManager.SummonData:getExchangesCount(self.cfg.id) --购买次数 + if self.cfg.discount_limit == nil or exchangesCount >= self.cfg.discount_limit then + cost = self.cfg.cost + self.disBg:setActive(false) + else + cost = self.cfg.discount + if self.cfg.discount_display ~= nil then + self.disBg:setActive(self.isOwn) + self.disTx:setText(I18N:getGlobalText(I18N.GlobalConst.SUMMON_DESCR_8, self.cfg.discount_display // 1000)) + else + self.disBg:setActive(false) + end + end + if cost ~= nil then + local costId = GFunc.getRewardId(cost) + local costCount = GFunc.getRewardNum(cost) + + local haveItemNum = DataManager.BagData.ItemData:getItemNumById(costId) --拥有货币 + if haveItemNum >= costCount then + self.costTx:setText(costCount) + else + self.costTx:setText(""..costCount.."") + end + self.costIcon:setSprite(GFunc.getIconRes(costId)) + GFunc.centerImgAndTx(self.costIcon, self.costTx, -5) + end +end + +function SummonShopCell:setShowType(showType, func, teamType) + self.showType = showType + self.clickCallback = func +end + +return SummonShopCell diff --git a/lua/app/ui/summon/cell/summon_shop_cell.lua.meta b/lua/app/ui/summon/cell/summon_shop_cell.lua.meta new file mode 100644 index 00000000..071c7c89 --- /dev/null +++ b/lua/app/ui/summon/cell/summon_shop_cell.lua.meta @@ -0,0 +1,10 @@ +fileFormatVersion: 2 +guid: 6686dc17e6ee34bcf8586b8b45960afe +ScriptedImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 2 + userData: + assetBundleName: + assetBundleVariant: + script: {fileID: 11500000, guid: 3b8b241bab4a4ac9a22fcce9c64f1242, type: 3} diff --git a/lua/app/ui/summon/summon_main_ui.lua b/lua/app/ui/summon/summon_main_ui.lua index 3dd5854e..793d1908 100755 --- a/lua/app/ui/summon/summon_main_ui.lua +++ b/lua/app/ui/summon/summon_main_ui.lua @@ -64,15 +64,23 @@ function SummonMainUI:onLoadRootComplete() self.txFreeTime = uiMap["summon_main_ui.node.tx_free_time"] - self.btnWish = uiMap["summon_main_ui.node.btn_wish"] --心愿 - self.btnWishTx = uiMap["summon_main_ui.node.btn_wish.tx_guarantee"] --心愿 - self.btnWishIcon = uiMap["summon_main_ui.node.btn_wish.img_wish_icon"] --心愿 - self.btnWishAddImg = uiMap["summon_main_ui.node.btn_wish.add_img"] + self.btnShop = uiMap["summon_main_ui.node.btn_shop"] + self.btnShopTx = uiMap["summon_main_ui.node.btn_shop.bg.tx_shop_num"] + -- self.btnWish = uiMap["summon_main_ui.node.btn_wish"] --心愿 + -- self.btnWishTx = uiMap["summon_main_ui.node.btn_wish.tx_guarantee"] --心愿 + -- self.btnWishIcon = uiMap["summon_main_ui.node.btn_wish.img_wish_icon"] --心愿 + -- self.btnWishAddImg = uiMap["summon_main_ui.node.btn_wish.add_img"] self.heroNode = uiMap["summon_main_ui.summon_node.hero_node"] self.uiNode = uiMap["summon_main_ui.node"] self.uiSpineObj = uiMap["summon_main_ui.summon_node.ui_spine_obj"] self.uiSpineObj:playAnim("idle", true, true) + self.flyEndPos = GFunc.getTargetAnchoredPosition(self.btnShop, self.root) + self.flyImgs = {} + for i = 1, 4 do + self.flyImgs[i] = uiMap["summon_main_ui.fly_img_" .. i] + end + self.touchNode = uiMap["summon_main_ui.touch_node"] self.touchNode:setActive(false) self.btnSummonFree:addClickListener(function() @@ -116,33 +124,34 @@ function SummonMainUI:onLoadRootComplete() uiMap["summon_main_ui.node.btn_info.desc_tx"]:setText(I18N:getGlobalText(I18N.GlobalConst.SUMMON_FORCE_3)) self.descBg = uiMap["summon_main_ui.node.desc_bg"] self.descTx = uiMap["summon_main_ui.node.desc_bg.desc_tx"] + self.descBg:setActive(false) self.btnTxs = { I18N:getGlobalText(I18N.GlobalConst.SUMMON_DESC_6), I18N:getGlobalText(I18N.GlobalConst.SUMMON_DESC_7), } - self.pageBtns = {} - self.pageBtnTxs = {} - for i = 1, 2 do - self.pageBtns[i] = uiMap['summon_main_ui.bottom.btn_'.. i] - self.pageBtnTxs[i] = uiMap['summon_main_ui.bottom.btn_'.. i ..'.tx_desc'] - self.pageBtnTxs[i]:setText(self.btnTxs[i]) - self.pageBtns[i]:addClickListener(function() - if self.page == i then - return - end - self.page = i - self:onRefresh() - UIManager:updateBarsState(self) - end) - end + -- self.pageBtns = {} + -- self.pageBtnTxs = {} + -- for i = 1, 2 do + -- self.pageBtns[i] = uiMap['summon_main_ui.bottom.btn_'.. i] + -- self.pageBtnTxs[i] = uiMap['summon_main_ui.bottom.btn_'.. i ..'.tx_desc'] + -- self.pageBtnTxs[i]:setText(self.btnTxs[i]) + -- self.pageBtns[i]:addClickListener(function() + -- if self.page == i then + -- return + -- end + -- self.page = i + -- self:onRefresh() + -- UIManager:updateBarsState(self) + -- end) + -- end -------------抽奖相关--------- self:addEventListener(EventManager.CUSTOM_EVENT.FORCE_SUMMON, function(result, newHero) - self:refreshWishBtn() + -- self:refreshWishBtn() self:playSummonAni(result, newHero) end) self:addEventListener(EventManager.CUSTOM_EVENT.FORCE_SUMMON_WISH_CLAIM, function(result, newHero) - self:refreshWishBtn() + -- self:refreshWishBtn() ModuleManager.SummonManager:showSummonRewardUI({ rewards = result.rewards, isWish = true, @@ -151,28 +160,31 @@ function SummonMainUI:onLoadRootComplete() }) end) - self:addEventListener(EventManager.CUSTOM_EVENT.FORCE_SUMMON_WISH_HERO_ID, function() - if self:isClosed() then - return - end - self:refreshWishBtn() - end) + -- self:addEventListener(EventManager.CUSTOM_EVENT.FORCE_SUMMON_WISH_HERO_ID, function() + -- if self:isClosed() then + -- return + -- end + -- self:refreshWishBtn() + -- end) - self.btnWish:addClickListener(function() - if self.isUnlock then - local wishHeroId = DataManager.SummonData:getSummonWishHeroId(self.page) - local wishGuarantee = DataManager.SummonData:getSummonWishGuarantee2(self.page) - local wishCount = DataManager.SummonData:getSummonWishCount(self.page) - if wishCount >= wishGuarantee and wishHeroId ~= 0 then - --发送领取奖励的协议 - ModuleManager.SummonManager:onSummonWishClaimReq(self.page) - else - --打开设置心愿界面 - ModuleManager.SummonManager:showSummonWishUI(self.page) - end - else - GFunc.showToast(I18N:getGlobalText(I18N.GlobalConst.SUMMON_WISH_LOCK)) - end + -- self.btnWish:addClickListener(function() + -- if self.isUnlock then + -- local wishHeroId = DataManager.SummonData:getSummonWishHeroId(self.page) + -- local wishGuarantee = DataManager.SummonData:getSummonWishGuarantee2(self.page) + -- local wishCount = DataManager.SummonData:getSummonWishCount(self.page) + -- if wishCount >= wishGuarantee and wishHeroId ~= 0 then + -- --发送领取奖励的协议 + -- ModuleManager.SummonManager:onSummonWishClaimReq(self.page) + -- else + -- --打开设置心愿界面 + -- ModuleManager.SummonManager:showSummonWishUI(self.page) + -- end + -- else + -- GFunc.showToast(I18N:getGlobalText(I18N.GlobalConst.SUMMON_WISH_LOCK)) + -- end + -- end) + self.btnShop:addClickListener(function() + ModuleManager.SummonManager:showSummonShopUI(1) end) self:bind(DataManager.SummonData, "isDirty", function() self:onRefresh() @@ -185,6 +197,8 @@ function SummonMainUI:onLoadRootComplete() self:updateTime() end, 1) self:updateTime() + + self:refreshShopItem() end --每秒刷新单抽红点 @@ -205,21 +219,21 @@ end --刷新 function SummonMainUI:onRefresh() self:refreshSummonBtn() - self:refreshWishBtn() + -- self:refreshWishBtn() -- self:refreshBtnRedPoint() - self:refreshPageBtn() + -- self:refreshPageBtn() self:updateTime() end -function SummonMainUI:refreshPageBtn() - for i = 1, 2 do - if self.page == i then - self.pageBtns[i]:setSprite(GConst.ATLAS_PATH.UI_ACT_COMMON, "act_common_btn_" .. i .."_1") - else - self.pageBtns[i]:setSprite(GConst.ATLAS_PATH.UI_ACT_COMMON, "act_common_btn_" .. i .."_2") - end - end -end +-- function SummonMainUI:refreshPageBtn() +-- for i = 1, 2 do +-- if self.page == i then +-- self.pageBtns[i]:setSprite(GConst.ATLAS_PATH.UI_ACT_COMMON, "act_common_btn_" .. i .."_1") +-- else +-- self.pageBtns[i]:setSprite(GConst.ATLAS_PATH.UI_ACT_COMMON, "act_common_btn_" .. i .."_2") +-- end +-- end +-- end --刷新抽奖按钮 function SummonMainUI:refreshSummonBtn() @@ -270,38 +284,42 @@ function SummonMainUI:refreshSummonBtn() end --刷新心愿按钮 -function SummonMainUI:refreshWishBtn() - local guarantee1 = DataManager.SummonData:getSummonConfig(self.page).guarantee1 - if not guarantee1 then - self.descBg:setActive(false) - else - self.descBg:setActive(true) - local count = guarantee1 - DataManager.SummonData:getSummonTriggerCount(self.page) - self.descTx:setText(I18N:getGlobalText(I18N.GlobalConst.SUMMON_FORCE_4, count)) - end - local love = DataManager.SummonData:getSummonWishConfig(self.page) - if not love then - self.btnWish:setActive(false) - return - end - self.btnWish:setActive(true) - local summonCount = DataManager.SummonData:getSummonCount(self.page) - local unlockCount = DataManager.SummonData:getSummonWishUnlock(self.page) - self.isUnlock = summonCount >= unlockCount - local wishCount = DataManager.SummonData:getSummonWishCount(self.page) - local needCount = DataManager.SummonData:getSummonWishGuarantee2(self.page) - self.btnWishTx:setText(wishCount .. "/" .. needCount) +-- function SummonMainUI:refreshWishBtn() +-- local guarantee1 = DataManager.SummonData:getSummonConfig(self.page).guarantee1 +-- if not guarantee1 then +-- self.descBg:setActive(false) +-- else +-- self.descBg:setActive(true) +-- local count = guarantee1 - DataManager.SummonData:getSummonTriggerCount(self.page) +-- self.descTx:setText(I18N:getGlobalText(I18N.GlobalConst.SUMMON_FORCE_4, count)) +-- end +-- local love = DataManager.SummonData:getSummonWishConfig(self.page) +-- if not love then +-- self.btnWish:setActive(false) +-- return +-- end +-- self.btnWish:setActive(true) +-- local summonCount = DataManager.SummonData:getSummonCount(self.page) +-- local unlockCount = DataManager.SummonData:getSummonWishUnlock(self.page) +-- self.isUnlock = summonCount >= unlockCount +-- local wishCount = DataManager.SummonData:getSummonWishCount(self.page) +-- local needCount = DataManager.SummonData:getSummonWishGuarantee2(self.page) +-- self.btnWishTx:setText(wishCount .. "/" .. needCount) - local wishHeroId = DataManager.SummonData:getSummonWishHeroId(self.page) - local cfg = DataManager.HeroData:getHeroConfig(wishHeroId) - if cfg then - self.btnWishIcon:setSprite(GFunc.getHeroIcon(cfg.icon)) - self.btnWish:setSprite(GConst.ATLAS_PATH.ICON_ITEM, GConst.FRAME_QLT[cfg.qlt]) - self.btnWishAddImg:setActive(false) - else - self.btnWishIcon:setSprite(GConst.ATLAS_PATH.COMMON, "common_alpha") - self.btnWishAddImg:setActive(true) - end +-- local wishHeroId = DataManager.SummonData:getSummonWishHeroId(self.page) +-- local cfg = DataManager.HeroData:getHeroConfig(wishHeroId) +-- if cfg then +-- self.btnWishIcon:setSprite(GFunc.getHeroIcon(cfg.icon)) +-- self.btnWish:setSprite(GConst.ATLAS_PATH.ICON_ITEM, GConst.FRAME_QLT[cfg.qlt]) +-- self.btnWishAddImg:setActive(false) +-- else +-- self.btnWishIcon:setSprite(GConst.ATLAS_PATH.COMMON, "common_alpha") +-- self.btnWishAddImg:setActive(true) +-- end +-- end + +function SummonMainUI:refreshShopItem() + self.btnShopTx:setText(DataManager.BagData.ItemData:getItemNumById(GConst.ItemConst.ITEM_ID_SUMMON_SHOP_GOLD_COMMON)) end --检查单抽红点 @@ -417,7 +435,7 @@ end function SummonMainUI:showHero(idx, newHero) if not self.summonResult[idx] then - self:enableTouch() + -- self:enableTouch() self.uiNode:setActive(true) for i = 1, 4 do self.vfxs[i]:setActive(false) @@ -432,6 +450,9 @@ function SummonMainUI:showHero(idx, newHero) callback = function(count, isAd) self:onSummon(count, isAd) end, + closeCallBack =function () + self:fly() + end, newHero = newHero, page = self.page }) @@ -473,4 +494,18 @@ function SummonMainUI:enableTouch() self.touchNode:setActive(false) end +function SummonMainUI:fly() + for i = 1, 4 do + self.flyImgs[i]:setSprite(GFunc.getIconRes(GConst.ItemConst.ITEM_ID_SUMMON_SHOP_GOLD_COMMON)) + local posX, posY = GFunc.randomPos(i, {x = 0, y= 0}) + GFunc.imgFly(self.flyImgs[i], {x = posX, y = posY}, self.flyEndPos, function () + if i == 4 then + GFunc.doScaleFlyImg(self.btnShop) + self:refreshShopItem() + self:enableTouch() + end + end) + end +end + return SummonMainUI diff --git a/lua/app/ui/summon/summon_reward_ui.lua b/lua/app/ui/summon/summon_reward_ui.lua index 94a40764..e6b9cd6a 100755 --- a/lua/app/ui/summon/summon_reward_ui.lua +++ b/lua/app/ui/summon/summon_reward_ui.lua @@ -13,6 +13,7 @@ function SummonRewardUI:ctor(params) self.rewards = params.rewards or {} self.isWish = params.isWish or false self.callback = params.callback + self.closeCallBack = params.closeCallBack self.unlockList = params.newHero or {} self.page = params.page end @@ -26,6 +27,9 @@ function SummonRewardUI:onLoadRootComplete() self.btnGet = uiMap["summon_reward_ui.bg.btn_get"] self.btnGet:addClickListener(function() + if self.closeCallBack then + self:closeCallBack() + end self:closeUI() end) self.goOne = uiMap["summon_reward_ui.bg.one"] diff --git a/lua/app/ui/summon/summon_shop_box_ui.lua b/lua/app/ui/summon/summon_shop_box_ui.lua new file mode 100644 index 00000000..c89af19c --- /dev/null +++ b/lua/app/ui/summon/summon_shop_box_ui.lua @@ -0,0 +1,267 @@ +local SummonShopBoxUI = class("SummonShopBoxUI", BaseUI) +local REWARD_BOX_CELL = "app/ui/tips/cell/reward_box_cell" + +function SummonShopBoxUI:isFullScreen() + return false +end +function SummonShopBoxUI:currencyParams() + local params = {} + params.showType = GConst.CURRENCY_TYPE.HORIZONTAL + params.itemIds = { + self.shopItemId, + } + return params, true +end +function SummonShopBoxUI:showCommonBG() + return false +end + +function SummonShopBoxUI:getPrefabPath() + return "assets/prefabs/ui/summon/summon_shop_box_ui.prefab" +end + +function SummonShopBoxUI:onPressBackspace() + self:closeUI() +end + +function SummonShopBoxUI:onClose() +end + +function SummonShopBoxUI:ctor(params) + self.shopType = params.shopType + if self.shopType == 1 then + self.shopItemId = GConst.ItemConst.ITEM_ID_SUMMON_SHOP_GOLD_COMMON + elseif self.shopType == 2 then + self.shopItemId = GConst.ItemConst.SUMMON_SHOP_GOLD_ACT + elseif self.shopType == 3 then + self.shopItemId = GConst.ItemConst.SOUL_SHOP_GOLD + end + + self.cfg = params.cfg + + self.curCount = 1 + local cost = GFunc.getRewardNum(self.cfg.cost) --原价 + if self.cfg.discount ~= nil then + self.discount = GFunc.getRewardNum(self.cfg.discount) --折扣价 + end + self.costId = GFunc.getRewardId(self.cfg.cost) + + self.discountLimit = self.cfg.discount_limit --折扣次数 + + local haveItemNum = DataManager.BagData.ItemData:getItemNumById(self.costId) --拥有货币 + local exchangesCount = DataManager.SummonData:getExchangesCount(self.cfg.id) --购买次数 + + -- 计算剩余折扣次数 + self.remainingDiscount = 0 + if self.discountLimit ~= nil then + self.remainingDiscount = math.max(0, self.discountLimit - exchangesCount) + end + -- 计算最大可购买数量 + self.maxCount = 0 + if haveItemNum > 0 then + local remainingMoney = haveItemNum -- 剩余货币 + -- 1. 优先用折扣价购买(如果还有折扣次数) + if self.remainingDiscount > 0 and self.discount then + local canBuyWithDiscount = math.min(math.floor(remainingMoney / self.discount), self.remainingDiscount) + self.maxCount = self.maxCount + canBuyWithDiscount + remainingMoney = remainingMoney - canBuyWithDiscount * self.discount + end + + -- 2. 如果还有钱,继续用原价购买 + if remainingMoney >= cost then + self.maxCount = self.maxCount + math.floor(remainingMoney / cost) + end + end + self.maxCount = math.max(1, self.maxCount) +end + +function SummonShopBoxUI:onLoadRootComplete() + local uiMap = self.root:genAllChildren() + self.btnMaskClose = uiMap["summon_shop_box_ui.btn_mask_close"] + self.content = uiMap["summon_shop_box_ui.content"] + self.btnClose = uiMap["summon_shop_box_ui.content.btn_close"] + self.txTitle = uiMap["summon_shop_box_ui.content.tx_title"] + self.infoNode = uiMap["summon_shop_box_ui.content.info_node"] + self.rewardCell = uiMap["summon_shop_box_ui.content.info_node.summon_shop_cell"]:addLuaComponent("app/ui/summon/cell/summon_shop_cell") + self.txName = uiMap["summon_shop_box_ui.content.info_node.data_node.tx_name"] + self.txCount = uiMap["summon_shop_box_ui.content.info_node.data_node.tx_count"] + self.dataLayout = uiMap["summon_shop_box_ui.content.info_node.data_node"]:getComponent(GConst.TYPEOF_UNITY_CLASS.BF_HORIZONTAL_OR_VERTICAL_LAYOUT) + + self.scrollRectObj = uiMap["summon_shop_box_ui.content.info_node.data_node.scrollrect"] + self.scrollRect = uiMap["summon_shop_box_ui.content.info_node.data_node.scrollrect"]:addLuaComponent(GConst.TYPEOF_LUA_CLASS.SCROLL_RECT_BASE) + self.select = uiMap["summon_shop_box_ui.content.select"] + self.txSelect = uiMap["summon_shop_box_ui.content.select.tx_select"] + self.btnSub = uiMap["summon_shop_box_ui.content.select.btn_sub"] + self.btnAdd = uiMap["summon_shop_box_ui.content.select.btn_add"] + self.btnMax = uiMap["summon_shop_box_ui.content.select.btn_max"] + self.btnMin = uiMap["summon_shop_box_ui.content.select.btn_min"] + self.btnBuy = uiMap["summon_shop_box_ui.content.btn_buy"] + self.txBuy = uiMap["summon_shop_box_ui.content.btn_buy.tx_buy"] + self.iconCost = uiMap["summon_shop_box_ui.content.btn_buy.icon_cost"] + + self.discount = uiMap["summon_shop_box_ui.content.btn_buy.discount"] + self.txDiscount = uiMap["summon_shop_box_ui.content.btn_buy.discount.tx_discount"] + + self.txTitle:setText(I18N:getGlobalText(I18N.GlobalConst.SUMMON_DESCR_4)) + + + self.btnSub:addClickListener(function() + if self.curCount <= 1 then + return + end + self.curCount = self.curCount - 1 + self:refreshCount() + end) + self.btnAdd:addClickListener(function() + if self.curCount >= self.maxCount then + return + end + self.curCount = self.curCount + 1 + self:refreshCount() + end) + self.btnMax:addClickListener(function() + if self.curCount >= self.maxCount then + return + end + self.curCount = self.maxCount + self:refreshCount() + end) + self.btnMin:addClickListener(function() + if self.curCount <= 1 then + return + end + self.curCount = 1 + if self.curCount > self.maxCount then + self.curCount = self.maxCount + end + self:refreshCount() + end) + self.btnBuy:addClickListener(function() + local haveItemNum = DataManager.BagData.ItemData:getItemNumById(self.costId) + if haveItemNum < self.totalCost then + GFunc.showItemNotEnough(self.costId) + return + end + ModuleManager.SummonManager:reqForceSummonShopExchange(self.cfg.id, self.curCount) + self:closeUI() + end) + self.btnMaskClose:addClickListener(function() + self:closeUI() + end) + self.btnClose:addClickListener(function() + self:closeUI() + end) +end + +function SummonShopBoxUI:onRefresh() + self.rewardCell:refresh(self.cfg, true) + self.txCount:setText(I18N:getGlobalText(I18N.GlobalConst.ITEM_DESC_1, self.ownCount)) + if self.remainingDiscount > 0 and self.discountLimit ~= nil then + self.txCount:setText(I18N:getGlobalText(I18N.GlobalConst.SUMMON_DESCR_7, self.remainingDiscount, self.discountLimit)) + self.txName:setAnchoredPositionY(33) + else + self.txCount:setText(GConst.EMPTY_STRING) + self.txName:setAnchoredPositionY(0) + end + self.rewardId = GFunc.getRewardId(self.cfg.hero) + self.itemType = ModuleManager.ItemManager:getItemType(self.rewardId) + + local cfg = ConfigManager:getConfig("item")[self.rewardId] + self.rewards = nil + -- if self.itemType == GConst.ItemConst.ITEM_TYPE.BOX_RANDOM then + -- -- 随机宝箱 + -- self.rewards = cfg and cfg.box_drop + -- self.txCount:setText(I18N:getGlobalText(I18N.GlobalConst.ITEM_DESC_5)) + -- elseif self.itemType == GConst.ItemConst.ITEM_TYPE.FORCE_RANDOM then + -- -- 随机宝箱 + -- self.rewards = cfg and cfg.box_drop + -- self.txCount:setText(I18N:getGlobalText(I18N.GlobalConst.ITEM_DESC_5)) + -- elseif self.itemType == GConst.ItemConst.ITEM_TYPE.BOX_EQUIP then + -- self.rewards = cfg and cfg.box_select + -- self.txCount:setText(I18N:getGlobalText(I18N.GlobalConst.ITEM_DESC_4)) + -- elseif self.itemType == GConst.ItemConst.ITEM_TYPE.BOX_SELECT then + -- -- 自选宝箱 + -- self.rewards = cfg and cfg.box_select + -- self.txCount:setText(I18N:getGlobalText(I18N.GlobalConst.ITEM_DESC_4)) + -- elseif self.itemType == GConst.ItemConst.ITEM_TYPE.BOX_RANDOM_MERGE then + -- -- 随机合成宝箱 + -- self.rewards = cfg and cfg.box_drop + -- self.txCount:setText(I18N:getGlobalText(I18N.GlobalConst.ITEM_DESC_5)) + -- end + if self.itemType == GConst.ItemConst.ITEM_TYPE.HERO_FRAGMENT then + local heroCfg = ConfigManager:getConfig("hero")[self.rewardId] + local str = string.format("%s", GConst.QUALITY_TYPE[heroCfg.qlt], ModuleManager.ItemManager:getItemName(self.rewardId)) + self.txName:setText(str) + end + if self.rewards ~= nil then + self.scrollRectObj:setActive(true) + self:_refreshScrollrect() + else + self.scrollRectObj:setActive(false) + end + self.dataLayout:RefreshLayout() + self:refreshCount() +end + +--刷新滑动列表 +function SummonShopBoxUI:_refreshScrollrect() + if not self.initScrollrect then + self.initScrollrect = true + + self.scrollRect:addInitCallback(function() + return GConst.TYPEOF_LUA_CLASS.REWARD_CELL + end) + self.scrollRect:addRefreshCallback(function(index, cell) + cell:refreshByConfig(self.rewards[index]) + end) + self.scrollRect:clearCells() + self.scrollRect:refillCells(#self.rewards) + else + if self.scrollRect:getTotalCount() == #self.rewards then + self.scrollRect:updateAllCell() + else + self.scrollRect:refillCells(#self.rewards) + end + end +end + +function SummonShopBoxUI:refreshCount() + self.txSelect:setText(self.curCount) + -- 计算总价格(考虑折扣次数) + self.totalCost = 0 + local remainingDiscount = self.remainingDiscount -- 剩余折扣次数(已在ctor中初始化) + local remainingCount = self.curCount -- 需要购买的数量 + + -- 1. 优先使用折扣价购买 + if remainingDiscount > 0 then + local useDiscountTimes = math.min(remainingCount, remainingDiscount) + self.totalCost = self.totalCost + useDiscountTimes * GFunc.getRewardNum(self.cfg.discount) + remainingCount = remainingCount - useDiscountTimes + + if self.cfg.discount_display ~= nil then + self.discount:setActive(true) + self.txDiscount:setText(I18N:getGlobalText(I18N.GlobalConst.SUMMON_DESCR_8, self.cfg.discount_display // 1000)) + end + else + self.discount:setActive(false) + end + -- 2. 剩余次数用原价购买 + if remainingCount > 0 then + self.totalCost = self.totalCost + remainingCount * GFunc.getRewardNum(self.cfg.cost) + self.discount:setActive(false) + end + -- 更新购买按钮的文本(显示总价) + local haveItemNum = DataManager.BagData.ItemData:getItemNumById(self.costId) + self.iconCost:setSprite(ModuleManager.ItemManager:getItemIcon(self.costId)) + if haveItemNum >= self.totalCost then + -- self.btnBuy:setSprite(GConst.ATLAS_PATH.COMMON, "common_btn_yellow_3") + -- self.txBuy:setText(""..self.totalCost.."") + else + -- self.btnBuy:setSprite(GConst.ATLAS_PATH.COMMON, "common_btn_yellow_3") + -- self.txBuy:setText(""..self.totalCost.."") + end + self.txBuy:setText(self.totalCost) + GFunc.centerImgAndTx(self.iconCost, self.txBuy) -- 保持图标和文本居中 +end + +return SummonShopBoxUI \ No newline at end of file diff --git a/lua/app/ui/summon/summon_shop_box_ui.lua.meta b/lua/app/ui/summon/summon_shop_box_ui.lua.meta new file mode 100644 index 00000000..a1e6d4bc --- /dev/null +++ b/lua/app/ui/summon/summon_shop_box_ui.lua.meta @@ -0,0 +1,10 @@ +fileFormatVersion: 2 +guid: 0a8d19d9a814e4e8aaf266337af97a8d +ScriptedImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 2 + userData: + assetBundleName: + assetBundleVariant: + script: {fileID: 11500000, guid: 3b8b241bab4a4ac9a22fcce9c64f1242, type: 3} diff --git a/lua/app/ui/summon/summon_shop_ui.lua b/lua/app/ui/summon/summon_shop_ui.lua new file mode 100644 index 00000000..1ced0cf7 --- /dev/null +++ b/lua/app/ui/summon/summon_shop_ui.lua @@ -0,0 +1,195 @@ +local SummonShopUI = class("SummonShopUI", BaseUI) + +function SummonShopUI:getPrefabPath() + return "assets/prefabs/ui/summon/summon_shop_ui.prefab" +end + +function SummonShopUI:getCurrencyParams() + local params = {} + params.showType = GConst.CURRENCY_TYPE.HORIZONTAL + params.itemIds = { + GConst.ItemConst.ITEM_ID_GOLD, + } + return params +end + +function SummonShopUI:ctor(param) + self.shopType = param.shopType + self.titleTx = GConst.EMPTY_STRING + self.descTx = GConst.EMPTY_STRING + self.descTitleHero = GConst.EMPTY_STRING + self.descDown = GConst.EMPTY_STRING + self.descTx = GConst.EMPTY_STRING + self.shopItemId = nil + if self.shopType == 1 then + self.titleTx = I18N:getGlobalText(I18N.GlobalConst.SUMMON_DESCR_1) + self.descTx = I18N:getGlobalText(I18N.GlobalConst.SUMMON_HELP_1) + self.descTitleHero = I18N:getGlobalText(I18N.GlobalConst.SUMMON_DESCR_3) + self.descDown = I18N:getGlobalText(I18N.GlobalConst.SUMMON_DESCR_6) + self.shopItemId = GConst.ItemConst.ITEM_ID_SUMMON_SHOP_GOLD_COMMON + elseif self.shopType == 2 then + self.titleTx = I18N:getGlobalText(I18N.GlobalConst.SUMMON_DESCR_2) + self.descTx = I18N:getGlobalText(I18N.GlobalConst.SUMMON_HELP_2) + self.descTitleHero = I18N:getGlobalText(I18N.GlobalConst.SUMMON_DESCR_3) + self.descDown = I18N:getGlobalText(I18N.GlobalConst.SUMMON_DESCR_6) + self.shopItemId = GConst.ItemConst.SUMMON_SHOP_GOLD_ACT + elseif self.shopType == 3 then + self.titleTx = I18N:getGlobalText(I18N.GlobalConst.CORE_SUMMON_DESC_21) + self.descTx = I18N:getGlobalText(I18N.GlobalConst.CORE_SUMMON_DESC_24) + self.descTitleHero = I18N:getGlobalText(I18N.GlobalConst.CORE_SUMMON_DESC_22) + self.descDown = I18N:getGlobalText(I18N.GlobalConst.CORE_SUMMON_DESC_25) + self.shopItemId = GConst.ItemConst.SOUL_SHOP_GOLD + elseif self.shopType == 4 then + self.titleTx = I18N:getGlobalText(I18N.GlobalConst.MERCENARY_DESC_18) + self.descTx = I18N:getGlobalText(I18N.GlobalConst.MERCENARY_DESC_19) + self.descTitleHero = I18N:getGlobalText(I18N.GlobalConst.MERCENARY_DESC_21) + self.descDown = I18N:getGlobalText(I18N.GlobalConst.MERCENARY_DESC_20) + self.shopItemId = GConst.ItemConst.ITEM_ID_MERCENARY_EXCHANGE + end + ModuleManager.SummonManager:reqSummonShopMarkUnlockTip(self.shopType) +end + +function SummonShopUI:currencyParams() + local params = {} + params.showType = GConst.CURRENCY_TYPE.HORIZONTAL + params.itemIds = { + self.shopItemId, + } + return params, true +end + +function SummonShopUI:onLoadRootComplete() + local uiMap = self.root:genAllChildren() + self.btnMaskClose = uiMap["summon_shop_ui.btn_mask_close"] + self.content = uiMap["summon_shop_ui.content"] + self.txTitle = uiMap["summon_shop_ui.content.tx_title"] + self.btnClose = uiMap["summon_shop_ui.content.btn_close"] + self.scrollrect = uiMap["summon_shop_ui.content.scrollrect"]:addLuaComponent(GConst.TYPEOF_LUA_CLASS.SCROLL_RECT_BASE) + self.txDescTips = uiMap["summon_shop_ui.content.tx_desc_tips"] + self.titleHero = uiMap["summon_shop_ui.content.scrollrect.title_hero"] + self.txDescTitleHero = uiMap["summon_shop_ui.content.scrollrect.title_hero.tx_desc_title_hero"] + self.btnTips = uiMap["summon_shop_ui.content.tx_title.btn_tips"] + self.itemIcon = uiMap["summon_shop_ui.content.tx_desc_tips.item_icon"] + self:_addListeners() +end + +function SummonShopUI:_addListeners() + self.btnTips:addClickListener(function() + local params = {} + params.desc = self.descTx + ModuleManager.TipsManager:showHelpTips(params) + end) + self.btnClose:addClickListener(function() + self:closeUI() + end) + self.btnMaskClose:addClickListener(function() + self:closeUI() + end) + self:bind(DataManager.SummonData, "isDirty", function() + self:onRefresh() + end) + self:bind(DataManager.BagData.ItemData, "dirty", function() + self:onRefresh() + end) +end + +function SummonShopUI:isFullScreen() + return false +end + +function SummonShopUI:setParentUI(parentUI) + self.parentUI = parentUI +end + +function SummonShopUI:onRefresh() + self.txTitle:setText(self.titleTx) + local width = self.txTitle:getComponent(GConst.TYPEOF_UNITY_CLASS.UI_TEXT_MESH_PRO).preferredWidth + width = math.min(400, width) + self.txTitle:setSizeDeltaX(width) + self.txDescTitleHero:setText(self.descTitleHero) + self.txDescTips:setText(self.descDown) + + local width = self.txDescTips:getComponent(GConst.TYPEOF_UNITY_CLASS.UI_TEXT_MESH_PRO).preferredWidth + local sizeW = self.txDescTips:getSizeDeltaX() + if width < sizeW then + self.itemIcon:setAnchoredPositionX((width - sizeW)/2) + else + self.itemIcon:setAnchoredPositionX(0) + end + self.itemIcon:setSprite(ModuleManager.ItemManager:getItemIcon(self.shopItemId)) + self:_refreshScrollrect() +end + +--刷新滑动列表 +function SummonShopUI:_refreshScrollrect() + if self.shopType == 3 then + self.scrollrect:setCellWidth(146) + self.scrollrect:setCellHeight(210) + else + self.scrollrect:setCellWidth(144) + self.scrollrect:setCellHeight(200) + end + local list = DataManager.SummonData:getSummonShopList(self.shopType) + self.shopList = {} + for i = #list, 1, -1 do -- 从后往前遍历 + local v = list[i] + local itemId = GFunc.getRewardId(v.hero) + local isRemove = false + if v.force_id ~= nil then + if not DataManager.HeroData:getHeroIsUnlock(v.force_id) and v.display == 1 then + isRemove = true + end + end + if not isRemove then + table.insert(self.shopList, v) + end + end + + table.sort(self.shopList, function(a, b) + local itemId1 = GFunc.getRewardId(a.hero) + local itemId2 = GFunc.getRewardId(b.hero) + -- local type1 = ModuleManager.ItemManager:getItemType(itemId1) + -- local type2 = ModuleManager.ItemManager:getItemType(itemId2) + -- 判断是否为未解锁英雄 + local isLockedHero1 = DataManager.HeroData:getHeroIsUnlock(itemId1) + local isLockedHero2 = DataManager.HeroData:getHeroIsUnlock(itemId2) + if isLockedHero1 == isLockedHero2 then + return a.id < b.id + elseif isLockedHero1 and not isLockedHero2 then + return true + elseif not isLockedHero1 and isLockedHero2 then + return false + end + return a.id < b.id + end) + + if not self.initScrollrect then + self.initScrollrect = true + self.scrollrect:addInitCallback(function() + return "app/ui/summon/cell/summon_shop_cell" + end) + self.scrollrect:addRefreshCallback(function(index, cell) + cell:setShowType(GConst.HeroConst.PAGE_TYPE.SHOP, function() + local cfg = self.shopList[index] + local id = GFunc.getRewardId(cfg.hero) + if not DataManager.HeroData:getHeroIsUnlock(cfg.force_id) then + GFunc.showToast(I18N:getGlobalText(I18N.GlobalConst.SUMMON_DESCR_5)) + return + end + ModuleManager.SummonManager:showSummonShopBoxUI(self.shopType, self.shopList[index]) + end) + cell:refresh(self.shopList[index], false, self.shopType) + end) + self.scrollrect:clearCells() + self.scrollrect:refillCells(#self.shopList) + else + -- 刷新或重新填充列表 + if self.scrollrect:getTotalCount() == #self.shopList then + self.scrollrect:updateAllCell() + else + self.scrollrect:refillCells(#self.shopList) + end + end +end + +return SummonShopUI diff --git a/lua/app/ui/summon/summon_shop_ui.lua.meta b/lua/app/ui/summon/summon_shop_ui.lua.meta new file mode 100644 index 00000000..2b058a7d --- /dev/null +++ b/lua/app/ui/summon/summon_shop_ui.lua.meta @@ -0,0 +1,10 @@ +fileFormatVersion: 2 +guid: 827e26c42d4a94cfb9bab6a43986f0e2 +ScriptedImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 2 + userData: + assetBundleName: + assetBundleVariant: + script: {fileID: 11500000, guid: 3b8b241bab4a4ac9a22fcce9c64f1242, type: 3} diff --git a/lua/app/userdata/summon/summon_data.lua b/lua/app/userdata/summon/summon_data.lua index 5163764e..b604c82d 100644 --- a/lua/app/userdata/summon/summon_data.lua +++ b/lua/app/userdata/summon/summon_data.lua @@ -17,20 +17,25 @@ function SummonData:setDirty() self.data.isDirty = not self.data.isDirty end -function SummonData:init(data) +function SummonData:init(data, summonShop) data = data or {} if EDITOR_MODE then Logger.logHighlight("抽奖数据") Logger.printTable(data) end self:initData(data.summons) + self.summonShop = summonShop or {} self:setDirty() if not self.isInit then self.isInit = true -- 跨天 - -- DataManager:registerCrossDayFunc("SummonData", function() - -- self:setDirty() - -- end) + DataManager:registerCrossDayFunc("SummonData", function() + if Time:getDayofWeek() == 1 then + self.summonShop = self.summonShop or {} + self.summonShop.exchanged = {} + end + self:setDirty() + end) end end @@ -54,12 +59,12 @@ function SummonData:initData(data) self.summonDataMap[i].wishCount = 0 end end - -- int64 free_count = 1; // 今日免费次数 - -- int64 ad_count = 2; // 今日广告免费次数 - -- int64 stat_count = 3; // 总抽取次数 - -- int64 trigger_count = 4; // 保底累计次数 - -- int32 wish_id = 5; // 心愿英雄 ID - -- int64 wish_count = 6; // 心愿累计次数 + -- int64 free_count = 1; // 今日免费次数 + -- int64 ad_count = 2; // 今日广告免费次数 + -- int64 stat_count = 3; // 总抽取次数 + -- int64 trigger_count = 4; // 保底累计次数 + -- int32 wish_id = 5; // 心愿英雄 ID + -- int64 wish_count = 6; // 心愿累计次数 end function SummonData:getIsOpen(showToast) @@ -201,6 +206,7 @@ end function SummonData:hasSummonCost2() return DataManager.BagData.ItemData:getItemNumById(GConst.ItemConst.ITEM_ID_SUMMON_2) > 0 end + --@endregion --@region 获取消耗 @@ -302,4 +308,99 @@ function SummonData:getSummonFreeNum(summonType) end --@endregion +--@region 商店 +function SummonData:getSummonShopList(type) + if self.summonShopList == nil then + self.summonShopList = {} + local list = ConfigManager:getConfig("summon_shop") + for id, v in pairs(list) do + if self.summonShopList[v.summon] == nil then + self.summonShopList[v.summon] = {} + end + v.id = id + table.insert(self.summonShopList[v.summon], v) + end + for _, v in pairs(self.summonShopList) do + table.sort(v, function(a, b) + return a.id < b.id + end) + end + end + if type then + return self.summonShopList[type] + end + return self.summonShopList +end + +-- function SummonData:setSummonShopSoulUnlock(shopIds) +-- if shopIds == nil then +-- return +-- end +-- for _, shopId in pairs(shopIds) do +-- self.summonShop.unlock_tips[shopId] = true +-- end +-- end + +-- function SummonData:onSummonShopSoulOpen(shopIds) +-- for _, id in pairs(shopIds) do +-- self.summonShop.unlock_tips[id] = true +-- end +-- self:setSummonShopDirty() +-- end + +--获取所有刚解锁的兑换 +function SummonData:getUnlockShopId(type) + local unlockShopIds = {} + local list = self:getSummonShopList(type) + for id, cfg in ipairs(list) do + if DataManager.HeroData:getHeroIsUnlock(cfg.force_id) and cfg.display == 1 then + if self.summonShop.unlock_tips[cfg.id] == nil then + table.insert(unlockShopIds, cfg.id) + end + end + end + return unlockShopIds +end + +function SummonData:getExchangesCount(id) + if self.summonShop and self.summonShop.exchanged then + if self.summonShop.exchanged[id] then + return self.summonShop.exchanged[id] + else + return 0 + end + end + return 0 +end + +function SummonData:shopSuccess(id, count) + self.summonShop.exchanged[id] = (self.summonShop.exchanged[id] or 0) + count + self:setDirty() +end + +--@region 商店红点 +function SummonData:isShowShopRedPoint(id) + local list = DataManager.SummonData:getSummonShopList(id) + for _, cfg in ipairs(list) do + local exchangesCount = DataManager.SummonData:getExchangesCount(cfg.id) --购买次数 + local cost + if cfg.discount_limit == nil or exchangesCount >= cfg.discount_limit then + cost = cfg.cost + else + cost = cfg.discount + end + if cost then + local costId = GFunc.getRewardId(cost) + local costCount = GFunc.getRewardNum(cost) + local haveItemNum = DataManager.BagData.ItemData:getItemNumById(costId) --拥有货币 + if haveItemNum >= costCount then + return true + end + end + end + return false +end +--@endregion +--endregion + return SummonData \ No newline at end of file