淬炼锁定提示

This commit is contained in:
Fang 2023-09-13 15:44:54 +08:00
parent b74a41ed00
commit 3f17beb2f2
14 changed files with 463 additions and 65 deletions

View File

@ -18,9 +18,19 @@ local activity = {
["act_type"]=4,
["start_time"]="2023-09-28 00:00:00",
["end_time"]="2023-10-08 00:00:00"
},
[506]={
["act_type"]=2,
["start_time"]="2023-09-27 00:00:00",
["end_time"]="2023-10-05 00:00:00"
},
[606]={
["act_type"]=3,
["start_time"]="2023-10-04 00:00:00",
["end_time"]="2023-10-12 00:00:00"
}
}
local config = {
data=activity,count=4
data=activity,count=6
}
return config

View File

@ -178,9 +178,189 @@ local activity_exchange = {
["num_for_nothing"]="Uw=="
},
["limit"]=999
},
[201]={
["activity"]=506,
["reward"]={
["type"]=1,
["type_for_nothing"]="Vw==",
["id"]=14002,
["id_for_nothing"]="VwxcA2c=",
["num"]=3,
["num_for_nothing"]="VQ=="
},
["cost"]={
["type"]=1,
["type_for_nothing"]="Vw==",
["id"]=52,
["id_for_nothing"]="Uwo=",
["num"]=300,
["num_for_nothing"]="VQhc"
},
["limit"]=10
},
[202]={
["activity"]=506,
["reward"]={
["type"]=1,
["type_for_nothing"]="Vw==",
["id"]=34003,
["id_for_nothing"]="VQxcA2Y=",
["num"]=3,
["num_for_nothing"]="VQ=="
},
["cost"]={
["type"]=1,
["type_for_nothing"]="Vw==",
["id"]=52,
["id_for_nothing"]="Uwo=",
["num"]=200,
["num_for_nothing"]="VAhc"
},
["limit"]=10
},
[203]={
["activity"]=506,
["reward"]={
["type"]=1,
["type_for_nothing"]="Vw==",
["id"]=44001,
["id_for_nothing"]="UgxcA2Q=",
["num"]=3,
["num_for_nothing"]="VQ=="
},
["cost"]={
["type"]=1,
["type_for_nothing"]="Vw==",
["id"]=52,
["id_for_nothing"]="Uwo=",
["num"]=200,
["num_for_nothing"]="VAhc"
},
["limit"]=10
},
[204]={
["activity"]=506,
["reward"]={
["type"]=1,
["type_for_nothing"]="Vw==",
["id"]=54002,
["id_for_nothing"]="UwxcA2c=",
["num"]=3,
["num_for_nothing"]="VQ=="
},
["cost"]={
["type"]=1,
["type_for_nothing"]="Vw==",
["id"]=52,
["id_for_nothing"]="Uwo=",
["num"]=200,
["num_for_nothing"]="VAhc"
},
["limit"]=10
},
[205]={
["activity"]=506,
["reward"]={
["type"]=1,
["type_for_nothing"]="Vw==",
["id"]=15,
["id_for_nothing"]="Vw0=",
["num"]=1,
["num_for_nothing"]="Vw=="
},
["cost"]={
["type"]=1,
["type_for_nothing"]="Vw==",
["id"]=52,
["id_for_nothing"]="Uwo=",
["num"]=240,
["num_for_nothing"]="VAxc"
},
["limit"]=3
},
[206]={
["activity"]=506,
["reward"]={
["type"]=1,
["type_for_nothing"]="Vw==",
["id"]=14,
["id_for_nothing"]="Vww=",
["num"]=1,
["num_for_nothing"]="Vw=="
},
["cost"]={
["type"]=1,
["type_for_nothing"]="Vw==",
["id"]=52,
["id_for_nothing"]="Uwo=",
["num"]=100,
["num_for_nothing"]="Vwhc"
},
["limit"]=3
},
[207]={
["activity"]=506,
["reward"]={
["type"]=1,
["type_for_nothing"]="Vw==",
["id"]=3,
["id_for_nothing"]="VQ==",
["num"]=15,
["num_for_nothing"]="Vw0="
},
["cost"]={
["type"]=1,
["type_for_nothing"]="Vw==",
["id"]=52,
["id_for_nothing"]="Uwo=",
["num"]=5,
["num_for_nothing"]="Uw=="
},
["limit"]=10
},
[208]={
["activity"]=506,
["reward"]={
["type"]=1,
["type_for_nothing"]="Vw==",
["id"]=1,
["id_for_nothing"]="Vw==",
["num"]=800,
["num_for_nothing"]="Xghc"
},
["cost"]={
["type"]=1,
["type_for_nothing"]="Vw==",
["id"]=52,
["id_for_nothing"]="Uwo=",
["num"]=5,
["num_for_nothing"]="Uw=="
},
["limit"]=999
},
[209]={
["activity"]=506,
["reward"]={
["type"]=1,
["type_for_nothing"]="Vw==",
["id"]=13,
["id_for_nothing"]="Vws=",
["num"]=1,
["num_for_nothing"]="Vw=="
},
["cost"]={
["type"]=1,
["type_for_nothing"]="Vw==",
["id"]=52,
["id_for_nothing"]="Uwo=",
["num"]=5,
["num_for_nothing"]="Uw=="
},
["limit"]=999
}
}
local config = {
data=activity_exchange,count=9
data=activity_exchange,count=18
}
return config

View File

@ -1,5 +1,5 @@
local activity_rank = {
[1]={
[101]={
["act_id"]=306,
["ranking"]={
1,
@ -24,7 +24,7 @@ local activity_rank = {
}
}
},
[2]={
[102]={
["act_id"]=306,
["ranking"]={
2,
@ -49,7 +49,7 @@ local activity_rank = {
}
}
},
[3]={
[103]={
["act_id"]=306,
["ranking"]={
3,
@ -74,7 +74,7 @@ local activity_rank = {
}
}
},
[4]={
[104]={
["act_id"]=306,
["ranking"]={
4,
@ -99,7 +99,7 @@ local activity_rank = {
}
}
},
[5]={
[105]={
["act_id"]=306,
["ranking"]={
11,
@ -124,7 +124,7 @@ local activity_rank = {
}
}
},
[6]={
[106]={
["act_id"]=306,
["ranking"]={
51,
@ -149,7 +149,7 @@ local activity_rank = {
}
}
},
[7]={
[107]={
["act_id"]=306,
["ranking"]={
501,
@ -173,9 +173,184 @@ local activity_rank = {
["num_for_nothing"]="VAg="
}
}
},
[201]={
["act_id"]=606,
["ranking"]={
1,
1
},
["reward"]={
{
["type"]=1,
["type_for_nothing"]="Vw==",
["id"]=52,
["id_for_nothing"]="Uwo=",
["num"]=100,
["num_for_nothing"]="Vwhc"
},
{
["type"]=1,
["type_for_nothing"]="Vw==",
["id"]=47,
["id_for_nothing"]="Ug8=",
["num"]=6,
["num_for_nothing"]="UA=="
}
}
},
[202]={
["act_id"]=606,
["ranking"]={
2,
2
},
["reward"]={
{
["type"]=1,
["type_for_nothing"]="Vw==",
["id"]=52,
["id_for_nothing"]="Uwo=",
["num"]=80,
["num_for_nothing"]="Xgg="
},
{
["type"]=1,
["type_for_nothing"]="Vw==",
["id"]=47,
["id_for_nothing"]="Ug8=",
["num"]=5,
["num_for_nothing"]="Uw=="
}
}
},
[203]={
["act_id"]=606,
["ranking"]={
3,
3
},
["reward"]={
{
["type"]=1,
["type_for_nothing"]="Vw==",
["id"]=52,
["id_for_nothing"]="Uwo=",
["num"]=70,
["num_for_nothing"]="UQg="
},
{
["type"]=1,
["type_for_nothing"]="Vw==",
["id"]=47,
["id_for_nothing"]="Ug8=",
["num"]=4,
["num_for_nothing"]="Ug=="
}
}
},
[204]={
["act_id"]=606,
["ranking"]={
4,
10
},
["reward"]={
{
["type"]=1,
["type_for_nothing"]="Vw==",
["id"]=52,
["id_for_nothing"]="Uwo=",
["num"]=60,
["num_for_nothing"]="UAg="
},
{
["type"]=1,
["type_for_nothing"]="Vw==",
["id"]=6,
["id_for_nothing"]="UA==",
["num"]=3,
["num_for_nothing"]="VQ=="
}
}
},
[205]={
["act_id"]=606,
["ranking"]={
11,
50
},
["reward"]={
{
["type"]=1,
["type_for_nothing"]="Vw==",
["id"]=52,
["id_for_nothing"]="Uwo=",
["num"]=40,
["num_for_nothing"]="Ugg="
},
{
["type"]=1,
["type_for_nothing"]="Vw==",
["id"]=6,
["id_for_nothing"]="UA==",
["num"]=2,
["num_for_nothing"]="VA=="
}
}
},
[206]={
["act_id"]=606,
["ranking"]={
51,
500
},
["reward"]={
{
["type"]=1,
["type_for_nothing"]="Vw==",
["id"]=52,
["id_for_nothing"]="Uwo=",
["num"]=30,
["num_for_nothing"]="VQg="
},
{
["type"]=1,
["type_for_nothing"]="Vw==",
["id"]=6,
["id_for_nothing"]="UA==",
["num"]=1,
["num_for_nothing"]="Vw=="
}
}
},
[207]={
["act_id"]=606,
["ranking"]={
501,
99999999
},
["reward"]={
{
["type"]=1,
["type_for_nothing"]="Vw==",
["id"]=52,
["id_for_nothing"]="Uwo=",
["num"]=20,
["num_for_nothing"]="VAg="
},
{
["type"]=1,
["type_for_nothing"]="Vw==",
["id"]=2,
["id_for_nothing"]="VA==",
["num"]=20,
["num_for_nothing"]="VAg="
}
}
}
}
local config = {
data=activity_rank,count=7
data=activity_rank,count=14
}
return config

View File

@ -6540,7 +6540,7 @@ local chapter_board_rune = {
[24]={
["board"]={
{
32,
31,
0
},
{
@ -6564,7 +6564,7 @@ local chapter_board_rune = {
5
},
{
32,
31,
0
},
{
@ -6664,7 +6664,7 @@ local chapter_board_rune = {
0
},
{
32,
31,
0
},
{
@ -6712,7 +6712,7 @@ local chapter_board_rune = {
0
},
{
32,
31,
0
},
{
@ -6720,7 +6720,7 @@ local chapter_board_rune = {
0
},
{
32,
31,
0
},
{
@ -6728,7 +6728,7 @@ local chapter_board_rune = {
0
},
{
32,
31,
0
},
{

View File

@ -2527,7 +2527,7 @@ local chapter_dungeon_rune = {
["requirement"]={
{
2,
32,
31,
6
},
{

View File

@ -555,6 +555,7 @@ local LocalizationGlobalConst =
RUNES_DESC_25 = "RUNES_DESC_25",
RUNES_DESC_26 = "RUNES_DESC_26",
RUNES_DESC_27 = "RUNES_DESC_27",
RUNES_DESC_28 = "RUNES_DESC_28",
DUNGEON_RUNE_DESC_1 = "DUNGEON_RUNE_DESC_1",
DUNGEON_RUNE_DESC_2 = "DUNGEON_RUNE_DESC_2",
DUNGEON_RUNE_DESC_3 = "DUNGEON_RUNE_DESC_3",

View File

@ -1760,8 +1760,8 @@ local skill = {
},
["obj"]=2,
["skill_position"]={
1,
70
2,
0
},
["shake_time"]=100,
["shake_type"]=2,
@ -1786,8 +1786,8 @@ local skill = {
},
["obj"]=2,
["skill_position"]={
1,
70
2,
0
},
["shake_time"]=100,
["shake_type"]=2,
@ -1812,8 +1812,8 @@ local skill = {
},
["obj"]=2,
["skill_position"]={
1,
70
2,
0
},
["shake_time"]=100,
["shake_type"]=4,
@ -1838,8 +1838,8 @@ local skill = {
},
["obj"]=2,
["skill_position"]={
1,
70
2,
0
},
["shake_time"]=100,
["shake_type"]=1,
@ -1887,8 +1887,8 @@ local skill = {
},
["obj"]=2,
["skill_position"]={
1,
70
2,
0
},
["shake_time"]=200,
["shake_type"]=6,
@ -2033,8 +2033,8 @@ local skill = {
5
},
["skill_position"]={
1,
70
2,
0
},
["shake_time"]=200,
["shake_type"]=6,
@ -3675,8 +3675,8 @@ local skill = {
},
["obj"]=2,
["skill_position"]={
2,
0
1,
50
},
["shake_time"]=100,
["shake_type"]=1,
@ -3701,8 +3701,8 @@ local skill = {
},
["obj"]=2,
["skill_position"]={
2,
0
1,
50
},
["shake_time"]=100,
["shake_type"]=1,
@ -3727,8 +3727,8 @@ local skill = {
},
["obj"]=2,
["skill_position"]={
2,
0
1,
50
},
["shake_time"]=100,
["shake_type"]=1,
@ -3753,8 +3753,8 @@ local skill = {
},
["obj"]=2,
["skill_position"]={
2,
0
1,
50
},
["shake_time"]=100,
["shake_type"]=1,
@ -3827,8 +3827,8 @@ local skill = {
5
},
["skill_position"]={
2,
0
1,
50
},
["shake_time"]=200,
["shake_type"]=6,
@ -5622,8 +5622,8 @@ local skill = {
},
["obj"]=2,
["skill_position"]={
1,
100
2,
0
},
["shake_time"]=100,
["shake_type"]=1,
@ -5648,8 +5648,8 @@ local skill = {
},
["obj"]=2,
["skill_position"]={
1,
100
2,
0
},
["shake_time"]=100,
["shake_type"]=1,
@ -5674,8 +5674,8 @@ local skill = {
},
["obj"]=2,
["skill_position"]={
1,
100
2,
0
},
["shake_time"]=100,
["shake_type"]=1,
@ -5700,8 +5700,8 @@ local skill = {
},
["obj"]=2,
["skill_position"]={
1,
100
2,
0
},
["shake_time"]=100,
["shake_type"]=1,
@ -5744,8 +5744,8 @@ local skill = {
2
},
["skill_position"]={
1,
100
2,
0
},
["shake_time"]=200,
["shake_type"]=5,
@ -9119,7 +9119,7 @@ local skill = {
["obj"]=2,
["skill_position"]={
1,
100
25
},
["shake_time"]=100,
["shake_type"]=2,
@ -9145,7 +9145,7 @@ local skill = {
["obj"]=2,
["skill_position"]={
1,
100
25
},
["shake_time"]=100,
["shake_type"]=2,
@ -9171,7 +9171,7 @@ local skill = {
["obj"]=2,
["skill_position"]={
1,
100
25
},
["shake_time"]=100,
["shake_type"]=1,
@ -9197,7 +9197,7 @@ local skill = {
["obj"]=2,
["skill_position"]={
1,
100
25
},
["shake_time"]=100,
["shake_type"]=2,
@ -9234,7 +9234,7 @@ local skill = {
["obj"]=2,
["skill_position"]={
1,
100
25
},
["shake_time"]=200,
["shake_type"]=6,

View File

@ -5323,14 +5323,14 @@ local skill_rogue = {
["limit_times"]=1,
["weight"]=3000,
["qlt"]=4,
["type"]=9,
["type"]=12,
["skill_position"]=5,
["effect"]={
{
["type"]="add_skill",
["num"]=5400421,
["ratio"]=10000,
["round"]=999
["round"]=1
}
},
["obj"]=7,
@ -5400,7 +5400,7 @@ local skill_rogue = {
["type"]="add_skill",
["num"]=5400425,
["ratio"]=10000,
["round"]=999
["round"]=1
}
},
["obj"]=7,

View File

@ -555,6 +555,7 @@ local localization_global =
["RUNES_DESC_25"] = "符文淬炼至少保留1个未锁符文",
["RUNES_DESC_26"] = "Lv{0}",
["RUNES_DESC_27"] = "符文铸台{0}级后开启",
["RUNES_DESC_28"] = "您有S级以上的属性未锁定是否要继续淬炼",
["DUNGEON_RUNE_DESC_1"] = "目标",
["DUNGEON_RUNE_DESC_2"] = "再次挑战",
["DUNGEON_RUNE_DESC_3"] = "通关获得",

View File

@ -90,7 +90,7 @@ local skill = {
["desc"]="堕落之剑:额外造成一次大量技能伤害,附加<color=#3cff28><u>腐败</u></color>效果,<color=#3cff28>1</color>回合。"
},
[1400420]={
["desc"]="九尾祥瑞:将周围<color=#3cff28>4</color>个元素变色,并造成次大量技能伤害。"
["desc"]="九尾祥瑞:将周围<color=#3cff28>4</color>个元素变色,并造成次大量技能伤害。"
},
[2400420]={
["desc"]="啊,打!:使用后本次伤害提升,并额外造成多次大量技能伤害。"
@ -99,7 +99,7 @@ local skill = {
["desc"]="刺杀艺术:使用后本次伤害提升,并额外造成多次大量技能伤害。"
},
[4400420]={
["desc"]="飞棺降物:额外造成次技能伤害,附加<color=#fcb501><u>冰霜</u></color>效果,<color=#3cff28>1</color>回合。"
["desc"]="飞棺降物:额外造成次技能伤害,附加<color=#fcb501><u>冰霜</u></color>效果,<color=#3cff28>1</color>回合。"
},
[5400420]={
["desc"]="武神意志:随机消除<color=#3cff28>3</color>个元素,并造成一次技能伤害。"

View File

@ -852,7 +852,7 @@ local skill_rogue = {
["desc"]="堕落之剑附加的<color=#3cff28>昏睡</color>效果,回合数<color=#3cff28>+1</color>。"
},
[1400400]={
["desc"]="解锁九尾祥瑞:将周围<color=#3cff28>4</color>个元素变色,并造成次大量技能伤害。"
["desc"]="解锁九尾祥瑞:将周围<color=#3cff28>4</color>个元素变色,并造成次大量技能伤害。"
},
[1400401]={
["desc"]="九尾祥瑞可附加<color=#3cff28>魅惑</color>效果,<color=#3cff28>1</color>回合。"
@ -924,7 +924,7 @@ local skill_rogue = {
["desc"]="绿意之刺链接<color=#3cff28>6</color>个元素及以上时,技能攻击额外释放一次。"
},
[4400400]={
["desc"]="解锁飞棺降物:额外造成次技能伤害,附加<color=#fcb501>冰霜</color>效果,<color=#3cff28>1</color>回合。"
["desc"]="解锁飞棺降物:额外造成次技能伤害,附加<color=#fcb501>冰霜</color>效果,<color=#3cff28>1</color>回合。"
},
[4400401]={
["desc"]="已逝行者普攻有<color=#3cff28>10%</color>概率附加<color=#3cff28>腐败</color>效果,<color=#3cff28>2</color>回合。"

View File

@ -17,6 +17,9 @@ RunesConst.QUALITY_ICON = {
[8] = "hero_rune_ss",
}
-- 检查锁定状态
RunesConst.CHECK_QLT_LOCK = 7
-- 最大属性栏位数
RunesConst.MAX_ATTR_GRID_COUNT = 6
-- 品质个数

View File

@ -57,7 +57,7 @@ function RunesInfoComp:init()
boxType = GConst.MESSAGE_BOX_TYPE.MB_OK_CANCEL,
showToday = GConst.MESSAGE_BOX_SHOW_TODAY.RUNES_AUTO,
okFunc = function()
self:reqQuenching(true)
self:checkQuenching(true)
end,
}
GFunc.showMessageBox(params)
@ -66,7 +66,7 @@ function RunesInfoComp:init()
end
end)
self.btnUse:addClickListener(function()
self:reqQuenching(false)
self:checkQuenching(false)
end)
self:bind(DataManager.BagData.ItemData, "dirty", function()
self:refresh()
@ -172,8 +172,8 @@ function RunesInfoComp:refreshSuit()
self.txEmpty:setActive(isEmpty)
end
-- 请求淬炼
function RunesInfoComp:reqQuenching(isAuto)
-- 检查淬炼
function RunesInfoComp:checkQuenching(isAuto)
-- 是否全部锁定
if DataManager.RunesData:getRunes(self.heroEntity:getCfgId()):getAttrLockCount() >= DataManager.RunesData:getUnlockCount() then
GFunc.showToast(I18N:getGlobalText(I18N.GlobalConst.RUNES_DESC_25))
@ -186,6 +186,23 @@ function RunesInfoComp:reqQuenching(isAuto)
return
end
if self.runesEntity:isUnlockHighQlt() then
local params ={
content = I18N:getGlobalText(I18N.GlobalConst.RUNES_DESC_28),
boxType = GConst.MESSAGE_BOX_TYPE.MB_OK_CANCEL,
okText = I18N:getGlobalText(I18N.GlobalConst.CONTINUE_DESC),
okFunc = function()
self:reqQuenching(isAuto)
end,
}
GFunc.showMessageBox(params)
else
self:reqQuenching(isAuto)
end
end
-- 请求淬炼
function RunesInfoComp:reqQuenching(isAuto)
if isAuto then
-- 自动淬炼
self.mask:setActive(true)

View File

@ -45,6 +45,17 @@ function RunesEntity:getAttrLockCount()
return lock
end
-- 是否存在品质大于s的未锁定
function RunesEntity:isUnlockHighQlt()
for idx, data in ipairs(self.grids) do
if self:getGridQuality(idx) >= GConst.RunesConst.CHECK_QLT_LOCK and not self:isAttrLock(idx) then
return true
end
end
return false
end
-- 获取锻造的材料消耗
function RunesEntity:getMaterialCost()
local base = GFunc.getConstReward("runes_cost_base")