fix bug
This commit is contained in:
parent
9a2a667282
commit
11bb4e4017
@ -108,10 +108,27 @@ local func_open = {
|
|||||||
["pop_ups"]=1
|
["pop_ups"]=1
|
||||||
},
|
},
|
||||||
["hero_equip"]={
|
["hero_equip"]={
|
||||||
["stage"]=4
|
["stage"]=4,
|
||||||
|
["icon"]="module_unlock_arena"
|
||||||
|
},
|
||||||
|
["company_open"]={
|
||||||
|
["stage"]=2,
|
||||||
|
["pop_ups"]=1
|
||||||
|
},
|
||||||
|
["talent_open"]={
|
||||||
|
["stage"]=2,
|
||||||
|
["icon"]="module_unlock_arena"
|
||||||
|
},
|
||||||
|
["dungeon_open"]={
|
||||||
|
["stage"]=6,
|
||||||
|
["pop_ups"]=1
|
||||||
|
},
|
||||||
|
["summon_open"]={
|
||||||
|
["stage"]=1,
|
||||||
|
["icon"]="module_unlock_arena"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
local config = {
|
local config = {
|
||||||
data=func_open,count=28
|
data=func_open,count=32
|
||||||
}
|
}
|
||||||
return config
|
return config
|
||||||
@ -659,6 +659,10 @@ local LocalizationGlobalConst =
|
|||||||
LV_UNLOCK = "LV_UNLOCK",
|
LV_UNLOCK = "LV_UNLOCK",
|
||||||
HERO_DESC_13 = "HERO_DESC_13",
|
HERO_DESC_13 = "HERO_DESC_13",
|
||||||
HERO_DESC_14 = "HERO_DESC_14",
|
HERO_DESC_14 = "HERO_DESC_14",
|
||||||
|
TALENT_DESC_1 = "TALENT_DESC_1",
|
||||||
|
TALENT_DESC_2 = "TALENT_DESC_2",
|
||||||
|
TALENT_DESC_3 = "TALENT_DESC_3",
|
||||||
|
TASK_DESC_2 = "TASK_DESC_2",
|
||||||
}
|
}
|
||||||
|
|
||||||
return LocalizationGlobalConst
|
return LocalizationGlobalConst
|
||||||
@ -1160,7 +1160,7 @@ local monster_daily_challenge = {
|
|||||||
["monster_exp"]=22000
|
["monster_exp"]=22000
|
||||||
},
|
},
|
||||||
[61502]={
|
[61502]={
|
||||||
["monster_base"]=30003,
|
["monster_base"]=30007,
|
||||||
["is_boss"]=1,
|
["is_boss"]=1,
|
||||||
["hp"]=1800000,
|
["hp"]=1800000,
|
||||||
["atk"]=72000000,
|
["atk"]=72000000,
|
||||||
|
|||||||
@ -659,6 +659,10 @@ local localization_global =
|
|||||||
["LV_UNLOCK"] = "{0}级解锁",
|
["LV_UNLOCK"] = "{0}级解锁",
|
||||||
["HERO_DESC_13"] = "相关英雄:",
|
["HERO_DESC_13"] = "相关英雄:",
|
||||||
["HERO_DESC_14"] = "英雄等级达到{0}",
|
["HERO_DESC_14"] = "英雄等级达到{0}",
|
||||||
|
["TALENT_DESC_1"] = "研发中心",
|
||||||
|
["TALENT_DESC_2"] = "研发",
|
||||||
|
["TALENT_DESC_3"] = "等级达到{0}可研发",
|
||||||
|
["TASK_DESC_2"] = "成就",
|
||||||
}
|
}
|
||||||
|
|
||||||
return localization_global
|
return localization_global
|
||||||
70
lua/app/config/strings/cn/talent.lua
Normal file
70
lua/app/config/strings/cn/talent.lua
Normal file
@ -0,0 +1,70 @@
|
|||||||
|
local talent = {
|
||||||
|
[1]={
|
||||||
|
["name"]="基因锐化",
|
||||||
|
["desc"]="全队攻击+"
|
||||||
|
},
|
||||||
|
[2]={
|
||||||
|
["name"]="基因扩容",
|
||||||
|
["desc"]="全队生命+"
|
||||||
|
},
|
||||||
|
[3]={
|
||||||
|
["name"]="缓冲力场",
|
||||||
|
["desc"]="减伤+"
|
||||||
|
},
|
||||||
|
[4]={
|
||||||
|
["name"]="深度锐化",
|
||||||
|
["desc"]="全队攻击+"
|
||||||
|
},
|
||||||
|
[5]={
|
||||||
|
["name"]="深度扩容",
|
||||||
|
["desc"]="全队生命+"
|
||||||
|
},
|
||||||
|
[6]={
|
||||||
|
["name"]="强力缓冲",
|
||||||
|
["desc"]="减伤+"
|
||||||
|
},
|
||||||
|
[7]={
|
||||||
|
["name"]="能量爆发",
|
||||||
|
["desc"]="暴击率+"
|
||||||
|
},
|
||||||
|
[8]={
|
||||||
|
["name"]="爆发增幅",
|
||||||
|
["desc"]="暴击伤害+"
|
||||||
|
},
|
||||||
|
[9]={
|
||||||
|
["name"]="充能装置",
|
||||||
|
["desc"]="技能刷新次数+"
|
||||||
|
},
|
||||||
|
[10]={
|
||||||
|
["name"]="补给胶囊",
|
||||||
|
["desc"]="波次结束回复生命+"
|
||||||
|
},
|
||||||
|
[11]={
|
||||||
|
["name"]="基因解码",
|
||||||
|
["desc"]="战斗开始时可选1次技能"
|
||||||
|
},
|
||||||
|
[12]={
|
||||||
|
["name"]="交易技巧",
|
||||||
|
["desc"]="主线结算金币+"
|
||||||
|
},
|
||||||
|
[13]={
|
||||||
|
["name"]="力量插件",
|
||||||
|
["desc"]="普通攻击伤害+"
|
||||||
|
},
|
||||||
|
[14]={
|
||||||
|
["name"]="超能编码",
|
||||||
|
["desc"]="技能伤害+"
|
||||||
|
},
|
||||||
|
[15]={
|
||||||
|
["name"]="生机复苏",
|
||||||
|
["desc"]="生命值+"
|
||||||
|
},
|
||||||
|
[16]={
|
||||||
|
["name"]="经验虹吸",
|
||||||
|
["desc"]="战斗中经验获取+"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
local config = {
|
||||||
|
data=talent,count=16
|
||||||
|
}
|
||||||
|
return config
|
||||||
10
lua/app/config/strings/cn/talent.lua.meta
Normal file
10
lua/app/config/strings/cn/talent.lua.meta
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 720c7844b4c57410da136f535ea47ac1
|
||||||
|
ScriptedImporter:
|
||||||
|
internalIDToNameTable: []
|
||||||
|
externalObjects: {}
|
||||||
|
serializedVersion: 2
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
|
script: {fileID: 11500000, guid: 3b8b241bab4a4ac9a22fcce9c64f1242, type: 3}
|
||||||
54
lua/app/config/strings/de/talent.lua
Normal file
54
lua/app/config/strings/de/talent.lua
Normal file
@ -0,0 +1,54 @@
|
|||||||
|
local talent = {
|
||||||
|
[1]={
|
||||||
|
|
||||||
|
},
|
||||||
|
[2]={
|
||||||
|
|
||||||
|
},
|
||||||
|
[3]={
|
||||||
|
|
||||||
|
},
|
||||||
|
[4]={
|
||||||
|
|
||||||
|
},
|
||||||
|
[5]={
|
||||||
|
|
||||||
|
},
|
||||||
|
[6]={
|
||||||
|
|
||||||
|
},
|
||||||
|
[7]={
|
||||||
|
|
||||||
|
},
|
||||||
|
[8]={
|
||||||
|
|
||||||
|
},
|
||||||
|
[9]={
|
||||||
|
|
||||||
|
},
|
||||||
|
[10]={
|
||||||
|
|
||||||
|
},
|
||||||
|
[11]={
|
||||||
|
|
||||||
|
},
|
||||||
|
[12]={
|
||||||
|
|
||||||
|
},
|
||||||
|
[13]={
|
||||||
|
|
||||||
|
},
|
||||||
|
[14]={
|
||||||
|
|
||||||
|
},
|
||||||
|
[15]={
|
||||||
|
|
||||||
|
},
|
||||||
|
[16]={
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
local config = {
|
||||||
|
data=talent,count=16
|
||||||
|
}
|
||||||
|
return config
|
||||||
10
lua/app/config/strings/de/talent.lua.meta
Normal file
10
lua/app/config/strings/de/talent.lua.meta
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 5b1dbd64fc5ff47409223bdd3aa1fe5a
|
||||||
|
ScriptedImporter:
|
||||||
|
internalIDToNameTable: []
|
||||||
|
externalObjects: {}
|
||||||
|
serializedVersion: 2
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
|
script: {fileID: 11500000, guid: 3b8b241bab4a4ac9a22fcce9c64f1242, type: 3}
|
||||||
54
lua/app/config/strings/en/talent.lua
Normal file
54
lua/app/config/strings/en/talent.lua
Normal file
@ -0,0 +1,54 @@
|
|||||||
|
local talent = {
|
||||||
|
[1]={
|
||||||
|
|
||||||
|
},
|
||||||
|
[2]={
|
||||||
|
|
||||||
|
},
|
||||||
|
[3]={
|
||||||
|
|
||||||
|
},
|
||||||
|
[4]={
|
||||||
|
|
||||||
|
},
|
||||||
|
[5]={
|
||||||
|
|
||||||
|
},
|
||||||
|
[6]={
|
||||||
|
|
||||||
|
},
|
||||||
|
[7]={
|
||||||
|
|
||||||
|
},
|
||||||
|
[8]={
|
||||||
|
|
||||||
|
},
|
||||||
|
[9]={
|
||||||
|
|
||||||
|
},
|
||||||
|
[10]={
|
||||||
|
|
||||||
|
},
|
||||||
|
[11]={
|
||||||
|
|
||||||
|
},
|
||||||
|
[12]={
|
||||||
|
|
||||||
|
},
|
||||||
|
[13]={
|
||||||
|
|
||||||
|
},
|
||||||
|
[14]={
|
||||||
|
|
||||||
|
},
|
||||||
|
[15]={
|
||||||
|
|
||||||
|
},
|
||||||
|
[16]={
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
local config = {
|
||||||
|
data=talent,count=16
|
||||||
|
}
|
||||||
|
return config
|
||||||
10
lua/app/config/strings/en/talent.lua.meta
Normal file
10
lua/app/config/strings/en/talent.lua.meta
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: a3e79e7c4b8de45fe96879115320b700
|
||||||
|
ScriptedImporter:
|
||||||
|
internalIDToNameTable: []
|
||||||
|
externalObjects: {}
|
||||||
|
serializedVersion: 2
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
|
script: {fileID: 11500000, guid: 3b8b241bab4a4ac9a22fcce9c64f1242, type: 3}
|
||||||
54
lua/app/config/strings/es/talent.lua
Normal file
54
lua/app/config/strings/es/talent.lua
Normal file
@ -0,0 +1,54 @@
|
|||||||
|
local talent = {
|
||||||
|
[1]={
|
||||||
|
|
||||||
|
},
|
||||||
|
[2]={
|
||||||
|
|
||||||
|
},
|
||||||
|
[3]={
|
||||||
|
|
||||||
|
},
|
||||||
|
[4]={
|
||||||
|
|
||||||
|
},
|
||||||
|
[5]={
|
||||||
|
|
||||||
|
},
|
||||||
|
[6]={
|
||||||
|
|
||||||
|
},
|
||||||
|
[7]={
|
||||||
|
|
||||||
|
},
|
||||||
|
[8]={
|
||||||
|
|
||||||
|
},
|
||||||
|
[9]={
|
||||||
|
|
||||||
|
},
|
||||||
|
[10]={
|
||||||
|
|
||||||
|
},
|
||||||
|
[11]={
|
||||||
|
|
||||||
|
},
|
||||||
|
[12]={
|
||||||
|
|
||||||
|
},
|
||||||
|
[13]={
|
||||||
|
|
||||||
|
},
|
||||||
|
[14]={
|
||||||
|
|
||||||
|
},
|
||||||
|
[15]={
|
||||||
|
|
||||||
|
},
|
||||||
|
[16]={
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
local config = {
|
||||||
|
data=talent,count=16
|
||||||
|
}
|
||||||
|
return config
|
||||||
10
lua/app/config/strings/es/talent.lua.meta
Normal file
10
lua/app/config/strings/es/talent.lua.meta
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: d346ae9517f844a1d8fd6ec490c0b2b9
|
||||||
|
ScriptedImporter:
|
||||||
|
internalIDToNameTable: []
|
||||||
|
externalObjects: {}
|
||||||
|
serializedVersion: 2
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
|
script: {fileID: 11500000, guid: 3b8b241bab4a4ac9a22fcce9c64f1242, type: 3}
|
||||||
54
lua/app/config/strings/fr/talent.lua
Normal file
54
lua/app/config/strings/fr/talent.lua
Normal file
@ -0,0 +1,54 @@
|
|||||||
|
local talent = {
|
||||||
|
[1]={
|
||||||
|
|
||||||
|
},
|
||||||
|
[2]={
|
||||||
|
|
||||||
|
},
|
||||||
|
[3]={
|
||||||
|
|
||||||
|
},
|
||||||
|
[4]={
|
||||||
|
|
||||||
|
},
|
||||||
|
[5]={
|
||||||
|
|
||||||
|
},
|
||||||
|
[6]={
|
||||||
|
|
||||||
|
},
|
||||||
|
[7]={
|
||||||
|
|
||||||
|
},
|
||||||
|
[8]={
|
||||||
|
|
||||||
|
},
|
||||||
|
[9]={
|
||||||
|
|
||||||
|
},
|
||||||
|
[10]={
|
||||||
|
|
||||||
|
},
|
||||||
|
[11]={
|
||||||
|
|
||||||
|
},
|
||||||
|
[12]={
|
||||||
|
|
||||||
|
},
|
||||||
|
[13]={
|
||||||
|
|
||||||
|
},
|
||||||
|
[14]={
|
||||||
|
|
||||||
|
},
|
||||||
|
[15]={
|
||||||
|
|
||||||
|
},
|
||||||
|
[16]={
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
local config = {
|
||||||
|
data=talent,count=16
|
||||||
|
}
|
||||||
|
return config
|
||||||
10
lua/app/config/strings/fr/talent.lua.meta
Normal file
10
lua/app/config/strings/fr/talent.lua.meta
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 2272e7defd7d74b789ac9ad5e4f76804
|
||||||
|
ScriptedImporter:
|
||||||
|
internalIDToNameTable: []
|
||||||
|
externalObjects: {}
|
||||||
|
serializedVersion: 2
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
|
script: {fileID: 11500000, guid: 3b8b241bab4a4ac9a22fcce9c64f1242, type: 3}
|
||||||
54
lua/app/config/strings/id/talent.lua
Normal file
54
lua/app/config/strings/id/talent.lua
Normal file
@ -0,0 +1,54 @@
|
|||||||
|
local talent = {
|
||||||
|
[1]={
|
||||||
|
|
||||||
|
},
|
||||||
|
[2]={
|
||||||
|
|
||||||
|
},
|
||||||
|
[3]={
|
||||||
|
|
||||||
|
},
|
||||||
|
[4]={
|
||||||
|
|
||||||
|
},
|
||||||
|
[5]={
|
||||||
|
|
||||||
|
},
|
||||||
|
[6]={
|
||||||
|
|
||||||
|
},
|
||||||
|
[7]={
|
||||||
|
|
||||||
|
},
|
||||||
|
[8]={
|
||||||
|
|
||||||
|
},
|
||||||
|
[9]={
|
||||||
|
|
||||||
|
},
|
||||||
|
[10]={
|
||||||
|
|
||||||
|
},
|
||||||
|
[11]={
|
||||||
|
|
||||||
|
},
|
||||||
|
[12]={
|
||||||
|
|
||||||
|
},
|
||||||
|
[13]={
|
||||||
|
|
||||||
|
},
|
||||||
|
[14]={
|
||||||
|
|
||||||
|
},
|
||||||
|
[15]={
|
||||||
|
|
||||||
|
},
|
||||||
|
[16]={
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
local config = {
|
||||||
|
data=talent,count=16
|
||||||
|
}
|
||||||
|
return config
|
||||||
10
lua/app/config/strings/id/talent.lua.meta
Normal file
10
lua/app/config/strings/id/talent.lua.meta
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: d871da39d1aef45edb3ed23d0fc34b6f
|
||||||
|
ScriptedImporter:
|
||||||
|
internalIDToNameTable: []
|
||||||
|
externalObjects: {}
|
||||||
|
serializedVersion: 2
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
|
script: {fileID: 11500000, guid: 3b8b241bab4a4ac9a22fcce9c64f1242, type: 3}
|
||||||
54
lua/app/config/strings/ja/talent.lua
Normal file
54
lua/app/config/strings/ja/talent.lua
Normal file
@ -0,0 +1,54 @@
|
|||||||
|
local talent = {
|
||||||
|
[1]={
|
||||||
|
|
||||||
|
},
|
||||||
|
[2]={
|
||||||
|
|
||||||
|
},
|
||||||
|
[3]={
|
||||||
|
|
||||||
|
},
|
||||||
|
[4]={
|
||||||
|
|
||||||
|
},
|
||||||
|
[5]={
|
||||||
|
|
||||||
|
},
|
||||||
|
[6]={
|
||||||
|
|
||||||
|
},
|
||||||
|
[7]={
|
||||||
|
|
||||||
|
},
|
||||||
|
[8]={
|
||||||
|
|
||||||
|
},
|
||||||
|
[9]={
|
||||||
|
|
||||||
|
},
|
||||||
|
[10]={
|
||||||
|
|
||||||
|
},
|
||||||
|
[11]={
|
||||||
|
|
||||||
|
},
|
||||||
|
[12]={
|
||||||
|
|
||||||
|
},
|
||||||
|
[13]={
|
||||||
|
|
||||||
|
},
|
||||||
|
[14]={
|
||||||
|
|
||||||
|
},
|
||||||
|
[15]={
|
||||||
|
|
||||||
|
},
|
||||||
|
[16]={
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
local config = {
|
||||||
|
data=talent,count=16
|
||||||
|
}
|
||||||
|
return config
|
||||||
10
lua/app/config/strings/ja/talent.lua.meta
Normal file
10
lua/app/config/strings/ja/talent.lua.meta
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 43d1e79a6ff23452fac19a3c7d7f8771
|
||||||
|
ScriptedImporter:
|
||||||
|
internalIDToNameTable: []
|
||||||
|
externalObjects: {}
|
||||||
|
serializedVersion: 2
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
|
script: {fileID: 11500000, guid: 3b8b241bab4a4ac9a22fcce9c64f1242, type: 3}
|
||||||
54
lua/app/config/strings/ko/talent.lua
Normal file
54
lua/app/config/strings/ko/talent.lua
Normal file
@ -0,0 +1,54 @@
|
|||||||
|
local talent = {
|
||||||
|
[1]={
|
||||||
|
|
||||||
|
},
|
||||||
|
[2]={
|
||||||
|
|
||||||
|
},
|
||||||
|
[3]={
|
||||||
|
|
||||||
|
},
|
||||||
|
[4]={
|
||||||
|
|
||||||
|
},
|
||||||
|
[5]={
|
||||||
|
|
||||||
|
},
|
||||||
|
[6]={
|
||||||
|
|
||||||
|
},
|
||||||
|
[7]={
|
||||||
|
|
||||||
|
},
|
||||||
|
[8]={
|
||||||
|
|
||||||
|
},
|
||||||
|
[9]={
|
||||||
|
|
||||||
|
},
|
||||||
|
[10]={
|
||||||
|
|
||||||
|
},
|
||||||
|
[11]={
|
||||||
|
|
||||||
|
},
|
||||||
|
[12]={
|
||||||
|
|
||||||
|
},
|
||||||
|
[13]={
|
||||||
|
|
||||||
|
},
|
||||||
|
[14]={
|
||||||
|
|
||||||
|
},
|
||||||
|
[15]={
|
||||||
|
|
||||||
|
},
|
||||||
|
[16]={
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
local config = {
|
||||||
|
data=talent,count=16
|
||||||
|
}
|
||||||
|
return config
|
||||||
10
lua/app/config/strings/ko/talent.lua.meta
Normal file
10
lua/app/config/strings/ko/talent.lua.meta
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 0b67968e899114d6aa41f5846f69b6c1
|
||||||
|
ScriptedImporter:
|
||||||
|
internalIDToNameTable: []
|
||||||
|
externalObjects: {}
|
||||||
|
serializedVersion: 2
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
|
script: {fileID: 11500000, guid: 3b8b241bab4a4ac9a22fcce9c64f1242, type: 3}
|
||||||
54
lua/app/config/strings/pt/talent.lua
Normal file
54
lua/app/config/strings/pt/talent.lua
Normal file
@ -0,0 +1,54 @@
|
|||||||
|
local talent = {
|
||||||
|
[1]={
|
||||||
|
|
||||||
|
},
|
||||||
|
[2]={
|
||||||
|
|
||||||
|
},
|
||||||
|
[3]={
|
||||||
|
|
||||||
|
},
|
||||||
|
[4]={
|
||||||
|
|
||||||
|
},
|
||||||
|
[5]={
|
||||||
|
|
||||||
|
},
|
||||||
|
[6]={
|
||||||
|
|
||||||
|
},
|
||||||
|
[7]={
|
||||||
|
|
||||||
|
},
|
||||||
|
[8]={
|
||||||
|
|
||||||
|
},
|
||||||
|
[9]={
|
||||||
|
|
||||||
|
},
|
||||||
|
[10]={
|
||||||
|
|
||||||
|
},
|
||||||
|
[11]={
|
||||||
|
|
||||||
|
},
|
||||||
|
[12]={
|
||||||
|
|
||||||
|
},
|
||||||
|
[13]={
|
||||||
|
|
||||||
|
},
|
||||||
|
[14]={
|
||||||
|
|
||||||
|
},
|
||||||
|
[15]={
|
||||||
|
|
||||||
|
},
|
||||||
|
[16]={
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
local config = {
|
||||||
|
data=talent,count=16
|
||||||
|
}
|
||||||
|
return config
|
||||||
10
lua/app/config/strings/pt/talent.lua.meta
Normal file
10
lua/app/config/strings/pt/talent.lua.meta
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 421e59937c92d465481dbee53ecf98b0
|
||||||
|
ScriptedImporter:
|
||||||
|
internalIDToNameTable: []
|
||||||
|
externalObjects: {}
|
||||||
|
serializedVersion: 2
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
|
script: {fileID: 11500000, guid: 3b8b241bab4a4ac9a22fcce9c64f1242, type: 3}
|
||||||
54
lua/app/config/strings/th/talent.lua
Normal file
54
lua/app/config/strings/th/talent.lua
Normal file
@ -0,0 +1,54 @@
|
|||||||
|
local talent = {
|
||||||
|
[1]={
|
||||||
|
|
||||||
|
},
|
||||||
|
[2]={
|
||||||
|
|
||||||
|
},
|
||||||
|
[3]={
|
||||||
|
|
||||||
|
},
|
||||||
|
[4]={
|
||||||
|
|
||||||
|
},
|
||||||
|
[5]={
|
||||||
|
|
||||||
|
},
|
||||||
|
[6]={
|
||||||
|
|
||||||
|
},
|
||||||
|
[7]={
|
||||||
|
|
||||||
|
},
|
||||||
|
[8]={
|
||||||
|
|
||||||
|
},
|
||||||
|
[9]={
|
||||||
|
|
||||||
|
},
|
||||||
|
[10]={
|
||||||
|
|
||||||
|
},
|
||||||
|
[11]={
|
||||||
|
|
||||||
|
},
|
||||||
|
[12]={
|
||||||
|
|
||||||
|
},
|
||||||
|
[13]={
|
||||||
|
|
||||||
|
},
|
||||||
|
[14]={
|
||||||
|
|
||||||
|
},
|
||||||
|
[15]={
|
||||||
|
|
||||||
|
},
|
||||||
|
[16]={
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
local config = {
|
||||||
|
data=talent,count=16
|
||||||
|
}
|
||||||
|
return config
|
||||||
10
lua/app/config/strings/th/talent.lua.meta
Normal file
10
lua/app/config/strings/th/talent.lua.meta
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: ee22d1cc2eab24178bed37b6b69f8304
|
||||||
|
ScriptedImporter:
|
||||||
|
internalIDToNameTable: []
|
||||||
|
externalObjects: {}
|
||||||
|
serializedVersion: 2
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
|
script: {fileID: 11500000, guid: 3b8b241bab4a4ac9a22fcce9c64f1242, type: 3}
|
||||||
54
lua/app/config/strings/vi/talent.lua
Normal file
54
lua/app/config/strings/vi/talent.lua
Normal file
@ -0,0 +1,54 @@
|
|||||||
|
local talent = {
|
||||||
|
[1]={
|
||||||
|
|
||||||
|
},
|
||||||
|
[2]={
|
||||||
|
|
||||||
|
},
|
||||||
|
[3]={
|
||||||
|
|
||||||
|
},
|
||||||
|
[4]={
|
||||||
|
|
||||||
|
},
|
||||||
|
[5]={
|
||||||
|
|
||||||
|
},
|
||||||
|
[6]={
|
||||||
|
|
||||||
|
},
|
||||||
|
[7]={
|
||||||
|
|
||||||
|
},
|
||||||
|
[8]={
|
||||||
|
|
||||||
|
},
|
||||||
|
[9]={
|
||||||
|
|
||||||
|
},
|
||||||
|
[10]={
|
||||||
|
|
||||||
|
},
|
||||||
|
[11]={
|
||||||
|
|
||||||
|
},
|
||||||
|
[12]={
|
||||||
|
|
||||||
|
},
|
||||||
|
[13]={
|
||||||
|
|
||||||
|
},
|
||||||
|
[14]={
|
||||||
|
|
||||||
|
},
|
||||||
|
[15]={
|
||||||
|
|
||||||
|
},
|
||||||
|
[16]={
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
local config = {
|
||||||
|
data=talent,count=16
|
||||||
|
}
|
||||||
|
return config
|
||||||
10
lua/app/config/strings/vi/talent.lua.meta
Normal file
10
lua/app/config/strings/vi/talent.lua.meta
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 5a954934350ec48e3b15b80d2f904a53
|
||||||
|
ScriptedImporter:
|
||||||
|
internalIDToNameTable: []
|
||||||
|
externalObjects: {}
|
||||||
|
serializedVersion: 2
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
|
script: {fileID: 11500000, guid: 3b8b241bab4a4ac9a22fcce9c64f1242, type: 3}
|
||||||
54
lua/app/config/strings/zh/talent.lua
Normal file
54
lua/app/config/strings/zh/talent.lua
Normal file
@ -0,0 +1,54 @@
|
|||||||
|
local talent = {
|
||||||
|
[1]={
|
||||||
|
|
||||||
|
},
|
||||||
|
[2]={
|
||||||
|
|
||||||
|
},
|
||||||
|
[3]={
|
||||||
|
|
||||||
|
},
|
||||||
|
[4]={
|
||||||
|
|
||||||
|
},
|
||||||
|
[5]={
|
||||||
|
|
||||||
|
},
|
||||||
|
[6]={
|
||||||
|
|
||||||
|
},
|
||||||
|
[7]={
|
||||||
|
|
||||||
|
},
|
||||||
|
[8]={
|
||||||
|
|
||||||
|
},
|
||||||
|
[9]={
|
||||||
|
|
||||||
|
},
|
||||||
|
[10]={
|
||||||
|
|
||||||
|
},
|
||||||
|
[11]={
|
||||||
|
|
||||||
|
},
|
||||||
|
[12]={
|
||||||
|
|
||||||
|
},
|
||||||
|
[13]={
|
||||||
|
|
||||||
|
},
|
||||||
|
[14]={
|
||||||
|
|
||||||
|
},
|
||||||
|
[15]={
|
||||||
|
|
||||||
|
},
|
||||||
|
[16]={
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
local config = {
|
||||||
|
data=talent,count=16
|
||||||
|
}
|
||||||
|
return config
|
||||||
10
lua/app/config/strings/zh/talent.lua.meta
Normal file
10
lua/app/config/strings/zh/talent.lua.meta
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 1383b83ac674f4d72b192a73f1ecab4e
|
||||||
|
ScriptedImporter:
|
||||||
|
internalIDToNameTable: []
|
||||||
|
externalObjects: {}
|
||||||
|
serializedVersion: 2
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
|
script: {fileID: 11500000, guid: 3b8b241bab4a4ac9a22fcce9c64f1242, type: 3}
|
||||||
@ -223,6 +223,7 @@ GConst.ATLAS_PATH = {
|
|||||||
ICON_SKILL_ROGUE = "assets/arts/atlas/icon/skill_rogue.asset",
|
ICON_SKILL_ROGUE = "assets/arts/atlas/icon/skill_rogue.asset",
|
||||||
ICON_BUFF = "assets/arts/atlas/icon/buff.asset",
|
ICON_BUFF = "assets/arts/atlas/icon/buff.asset",
|
||||||
ICON_EQUIP = "assets/arts/atlas/icon/equip.asset",
|
ICON_EQUIP = "assets/arts/atlas/icon/equip.asset",
|
||||||
|
ICON_TALENT = "assets/arts/atlas/icon/talent.asset",
|
||||||
BOUNTY = "assets/arts/atlas/ui/bounty.asset",
|
BOUNTY = "assets/arts/atlas/ui/bounty.asset",
|
||||||
UI_SETTING = "assets/arts/atlas/ui/setting.asset",
|
UI_SETTING = "assets/arts/atlas/ui/setting.asset",
|
||||||
ICON_TASK = "assets/arts/atlas/icon/task.asset",
|
ICON_TASK = "assets/arts/atlas/icon/task.asset",
|
||||||
|
|||||||
@ -16,19 +16,17 @@ function TaskManager:showTaskMainUI()
|
|||||||
UIManager:showUI("app/ui/task/task_main_ui")
|
UIManager:showUI("app/ui/task/task_main_ui")
|
||||||
end
|
end
|
||||||
|
|
||||||
function TaskManager:refreshDailyTask(dailyTaskId)
|
function TaskManager:onTaskDailyStageRewardReq(dailyTaskId)
|
||||||
SDKManager:showFullScreenAds(BIReport.ADS_CLICK_TYPE.TASK_DAILY_REFRESH, function()
|
local parmas = {}
|
||||||
local parmas = {
|
parmas.id = 0
|
||||||
id = dailyTaskId,
|
parmas.type = 1
|
||||||
}
|
self:sendMessage(ProtoMsgType.FromMsgEnum.TaskDailyStageRewardReq, parmas, {}, self.onTaskDailyStageRewardRsp, BIReport.ITEM_GET_TYPE.TASK_DAILY_REFRESH)
|
||||||
self:sendMessage(ProtoMsgType.FromMsgEnum.TaskDailyRefreshReq, parmas, {}, self.onDailyTaskRefresh, BIReport.ITEM_GET_TYPE.TASK_DAILY_REFRESH)
|
|
||||||
end)
|
|
||||||
end
|
end
|
||||||
|
|
||||||
function TaskManager:onDailyTaskRefresh(result)
|
function TaskManager:onTaskDailyStageRewardRsp(result)
|
||||||
if result.err_code == GConst.ERROR_STR.SUCCESS then
|
if result.err_code == GConst.ERROR_STR.SUCCESS then
|
||||||
if result.task then
|
if result.task_daily then
|
||||||
DataManager.DailyTaskData:refreshDailyTask(result.task)
|
DataManager.DailyTaskData:initDaily(result.task_daily)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
@ -42,8 +40,8 @@ end
|
|||||||
|
|
||||||
function TaskManager:onDailyTaskClaim(result)
|
function TaskManager:onDailyTaskClaim(result)
|
||||||
if result.err_code == GConst.ERROR_STR.SUCCESS then
|
if result.err_code == GConst.ERROR_STR.SUCCESS then
|
||||||
if result.task then
|
if result.task_daily then
|
||||||
DataManager.DailyTaskData:refreshDailyTask(result.task)
|
DataManager.DailyTaskData:initDaily(result.task_daily)
|
||||||
end
|
end
|
||||||
if result.rewards then
|
if result.rewards then
|
||||||
GFunc.showRewardBox(result.rewards)
|
GFunc.showRewardBox(result.rewards)
|
||||||
|
|||||||
@ -130,7 +130,7 @@ function HeroInfoComp:refresh(checkLevel)
|
|||||||
if skillUnlcokLv > lv then
|
if skillUnlcokLv > lv then
|
||||||
-- skillLv:setText(I18N:getGlobalText(I18N.GlobalConst.HERO_DESC_1, skillLvs[i] or 0))
|
-- skillLv:setText(I18N:getGlobalText(I18N.GlobalConst.HERO_DESC_1, skillLvs[i] or 0))
|
||||||
skillLv:setText(I18N:getGlobalText(I18N.GlobalConst.LV_UNLOCK, skillUnlcokLv))
|
skillLv:setText(I18N:getGlobalText(I18N.GlobalConst.LV_UNLOCK, skillUnlcokLv))
|
||||||
skillBg:setSprite(GConst.ATLAS_PATH.ICON_SKILL_ROGUE, "frame_0")
|
skillBg:setSprite(GConst.ATLAS_PATH.ICON_SKILL_ROGUE, "frame_1")
|
||||||
else
|
else
|
||||||
if nextLvUp then
|
if nextLvUp then
|
||||||
skillLv:setText(nextLvUp .. "提升")
|
skillLv:setText(nextLvUp .. "提升")
|
||||||
|
|||||||
@ -77,8 +77,7 @@ function HeroSkillInfoUI:refreshSkillIcon()
|
|||||||
|
|
||||||
self.icon:setSprite(GConst.ATLAS_PATH.ICON_SKILL_ROGUE, ModuleManager.HeroManager:getSkillRogueIcon(skillId))
|
self.icon:setSprite(GConst.ATLAS_PATH.ICON_SKILL_ROGUE, ModuleManager.HeroManager:getSkillRogueIcon(skillId))
|
||||||
if skillUnlcokLv > lv then
|
if skillUnlcokLv > lv then
|
||||||
-- self.skillIcon:setSprite(GConst.ATLAS_PATH.ICON_SKILL_ROGUE, "frame_0")
|
self.skillIcon:setSprite(GConst.ATLAS_PATH.ICON_SKILL_ROGUE, "frame_1")
|
||||||
self.skillIcon:setSprite(GConst.ATLAS_PATH.ICON_SKILL_ROGUE, "frame_0")
|
|
||||||
|
|
||||||
self.unlockTx:setText(I18N:getGlobalText(I18N.GlobalConst.LV_UNLOCK, skillUnlcokLv))
|
self.unlockTx:setText(I18N:getGlobalText(I18N.GlobalConst.LV_UNLOCK, skillUnlcokLv))
|
||||||
local meshProComp = self.unlockTx:getComponent(GConst.TYPEOF_UNITY_CLASS.UI_TEXT_MESH_PRO)
|
local meshProComp = self.unlockTx:getComponent(GConst.TYPEOF_UNITY_CLASS.UI_TEXT_MESH_PRO)
|
||||||
|
|||||||
@ -6,15 +6,14 @@ function TalentCell:init()
|
|||||||
self.bg = uiMap["talent_cell.bg"]
|
self.bg = uiMap["talent_cell.bg"]
|
||||||
self.descTx1 = uiMap["talent_cell.desc_tx_1"]
|
self.descTx1 = uiMap["talent_cell.desc_tx_1"]
|
||||||
self.descTx2 = uiMap["talent_cell.desc_tx_2"]
|
self.descTx2 = uiMap["talent_cell.desc_tx_2"]
|
||||||
uiMap["talent_cell.desc_tx_1"]:setText("11111")
|
|
||||||
uiMap["talent_cell.desc_tx_2"]:setText("2222")
|
|
||||||
end
|
end
|
||||||
|
|
||||||
function TalentCell:refresh(idx, cfg)
|
function TalentCell:refresh(idx, cfg)
|
||||||
self.bg:setSprite(GConst.ATLAS_PATH.UI_TALENT, "talent_" .. idx)
|
self.bg:setSprite(GConst.ATLAS_PATH.UI_TALENT, "talent_" .. idx)
|
||||||
self.descTx1:setText("攻击提升" .. idx)
|
self.descTx1:setText(I18N:getText("talent", idx, "name"))
|
||||||
local lv = DataManager.TalentData:getLevels(idx)
|
local lv = DataManager.TalentData:getLevels(idx)
|
||||||
self.descTx2:setText("Lv." .. lv)
|
self.descTx2:setText("Lv." .. lv)
|
||||||
|
self.bg:setSprite(GConst.ATLAS_PATH.ICON_TALENT, "talent_" .. idx)
|
||||||
end
|
end
|
||||||
|
|
||||||
function TalentCell:setActive(active)
|
function TalentCell:setActive(active)
|
||||||
|
|||||||
@ -36,11 +36,11 @@ function TalentMainUI:onLoadRootComplete()
|
|||||||
self.descTx = uiMap["talent_ui.desc_tx"]
|
self.descTx = uiMap["talent_ui.desc_tx"]
|
||||||
self.upNode = uiMap["talent_ui.up_node"]
|
self.upNode = uiMap["talent_ui.up_node"]
|
||||||
self.upTalentCell = uiMap["talent_ui.up_node.talent_cell"]:addLuaComponent(TALENT_CELL)
|
self.upTalentCell = uiMap["talent_ui.up_node.talent_cell"]:addLuaComponent(TALENT_CELL)
|
||||||
|
self.upDescTx = uiMap["talent_ui.up_node.desc_tx"]
|
||||||
self.upNode:setActive(false)
|
self.upNode:setActive(false)
|
||||||
|
|
||||||
-- uiMap["talent_ui.title_tx"]:setText(I18N:getGlobalText(I18N.GlobalConst.TALENT))
|
uiMap["talent_ui.title_tx"]:setText(I18N:getGlobalText(I18N.GlobalConst.TALENT_DESC_1))
|
||||||
uiMap["talent_ui.title_tx"]:setText("研发中心")
|
uiMap["talent_ui.get_btn.text"]:setText(I18N:getGlobalText(I18N.GlobalConst.TALENT_DESC_2))
|
||||||
uiMap["talent_ui.get_btn.text"]:setText("研发")
|
|
||||||
self.scrollRect = uiMap["talent_ui.bottom_bg.scrollrect"]:addLuaComponent(GConst.TYPEOF_LUA_CLASS.SCROLL_RECT_BASE)
|
self.scrollRect = uiMap["talent_ui.bottom_bg.scrollrect"]:addLuaComponent(GConst.TYPEOF_LUA_CLASS.SCROLL_RECT_BASE)
|
||||||
self.scrollRect:addInitCallback(function()
|
self.scrollRect:addInitCallback(function()
|
||||||
return TALENT_CELL
|
return TALENT_CELL
|
||||||
@ -56,7 +56,7 @@ function TalentMainUI:onLoadRootComplete()
|
|||||||
end
|
end
|
||||||
local can, stage = DataManager.TalentData:checkStage()
|
local can, stage = DataManager.TalentData:checkStage()
|
||||||
if not can then
|
if not can then
|
||||||
GFunc.showToast("等级达到" .. stage .. "可研发")
|
GFunc.showToast(I18N:getGlobalText(I18N.GlobalConst.TALENT_DESC_3, stage))
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
ModuleManager.TalentManager:talentUpgrade()
|
ModuleManager.TalentManager:talentUpgrade()
|
||||||
@ -87,7 +87,7 @@ function TalentMainUI:onRefresh()
|
|||||||
|
|
||||||
if not DataManager.TalentData:checkStage() then
|
if not DataManager.TalentData:checkStage() then
|
||||||
self.descTx:setActive(true)
|
self.descTx:setActive(true)
|
||||||
self.descTx:setText("等级达到" .. stage .. "可研发")
|
self.descTx:setText(I18N:getGlobalText(I18N.GlobalConst.TALENT_DESC_3, stage))
|
||||||
else
|
else
|
||||||
self.descTx:setActive(false)
|
self.descTx:setActive(false)
|
||||||
end
|
end
|
||||||
@ -100,6 +100,7 @@ function TalentMainUI:onUpgrade()
|
|||||||
end
|
end
|
||||||
self.upNode:setActive(true)
|
self.upNode:setActive(true)
|
||||||
self.upTalentCell:refresh(upData.id, self.list[upData.id])
|
self.upTalentCell:refresh(upData.id, self.list[upData.id])
|
||||||
|
self.upDescTx:setText(I18N:getText("talent", upData.id, "desc"))
|
||||||
end
|
end
|
||||||
|
|
||||||
return TalentMainUI
|
return TalentMainUI
|
||||||
@ -14,7 +14,7 @@ function DailyTaskCell:init()
|
|||||||
if DataManager.DailyTaskData:canClaimTask(self.taskId) then
|
if DataManager.DailyTaskData:canClaimTask(self.taskId) then
|
||||||
ModuleManager.TaskManager:claimDailyTask(self.taskId)
|
ModuleManager.TaskManager:claimDailyTask(self.taskId)
|
||||||
else
|
else
|
||||||
-- ModuleManager.TaskManager:goToTask(self.taskType)
|
ModuleManager.TaskManager:taskGoto(self.taskType)
|
||||||
end
|
end
|
||||||
end)
|
end)
|
||||||
end
|
end
|
||||||
|
|||||||
@ -166,21 +166,6 @@ function TaskMainUI:refreshDaily()
|
|||||||
local stageId = stageIds[i]
|
local stageId = stageIds[i]
|
||||||
if stageId then
|
if stageId then
|
||||||
item:setActive(true)
|
item:setActive(true)
|
||||||
-- item:initPrefabHelper()
|
|
||||||
-- local map = item:genAllChildren()
|
|
||||||
-- local spineBox = map["box.spine_box"]
|
|
||||||
-- local txNum = map["box.tx_num"]
|
|
||||||
|
|
||||||
-- txNum:setText(DataManager.DailyTaskData:getStageCondition(stageId))
|
|
||||||
|
|
||||||
-- if DataManager.DailyTaskData:canClaimStage(stageId) then
|
|
||||||
-- spineBox:playAnim("ready", true, false, false)
|
|
||||||
-- elseif DataManager.DailyTaskData:isStageReceived(stageId) then
|
|
||||||
-- spineBox:playAnim("idle02", true, false, false)
|
|
||||||
-- else
|
|
||||||
-- spineBox:playAnim("idle01", true, false, false)
|
|
||||||
-- end
|
|
||||||
|
|
||||||
if DataManager.DailyTaskData:canClaimStage(stageId) then
|
if DataManager.DailyTaskData:canClaimStage(stageId) then
|
||||||
item:addClickListener(function()
|
item:addClickListener(function()
|
||||||
self:onClickBox()
|
self:onClickBox()
|
||||||
@ -217,6 +202,7 @@ function TaskMainUI:refreshDaily()
|
|||||||
end
|
end
|
||||||
|
|
||||||
function TaskMainUI:onClickBox()
|
function TaskMainUI:onClickBox()
|
||||||
|
ModuleManager.TaskManager:onTaskDailyStageRewardReq()
|
||||||
-- local isFirst = true
|
-- local isFirst = true
|
||||||
-- local stageIds = DataManager.DailyTaskData:getStageIds()
|
-- local stageIds = DataManager.DailyTaskData:getStageIds()
|
||||||
-- for i, item in ipairs(self.boxItems) do
|
-- for i, item in ipairs(self.boxItems) do
|
||||||
@ -239,8 +225,7 @@ function TaskMainUI:onClickBox()
|
|||||||
end
|
end
|
||||||
|
|
||||||
function TaskMainUI:refreshChallenge()
|
function TaskMainUI:refreshChallenge()
|
||||||
-- self.titleTx:setText(I18N:getGlobalText(I18N.GlobalConst.TASK_NAME))
|
self.titleTx:setText(I18N:getGlobalText(I18N.GlobalConst.TASK_DESC_2))
|
||||||
self.titleTx:setText("成就")
|
|
||||||
self.achievementTaskList = DataManager.DailyTaskData:getAchievementIdsSort()
|
self.achievementTaskList = DataManager.DailyTaskData:getAchievementIdsSort()
|
||||||
self.challengeTaskScrollRect:refillCells(#self.achievementTaskList)
|
self.challengeTaskScrollRect:refillCells(#self.achievementTaskList)
|
||||||
if DataManager.DailyTaskData:showAchievementRedPoint() then
|
if DataManager.DailyTaskData:showAchievementRedPoint() then
|
||||||
|
|||||||
@ -21,6 +21,31 @@ function DailyTaskData:init(daily, achievement)
|
|||||||
daily = daily or {}
|
daily = daily or {}
|
||||||
achievement = achievement or {}
|
achievement = achievement or {}
|
||||||
|
|
||||||
|
self:initDaily(daily)
|
||||||
|
self:initAchievement(achievement)
|
||||||
|
-- 跨天
|
||||||
|
DataManager:registerCrossDayFunc("DailyTaskData", function()
|
||||||
|
-- 重置任务数据
|
||||||
|
for id, data in pairs(self.dailyTaskData) do
|
||||||
|
data.claimed = 0
|
||||||
|
data.progress = 0
|
||||||
|
end
|
||||||
|
-- 重置进度奖励数据
|
||||||
|
for id, claimed in pairs(self.progRewardData) do
|
||||||
|
self.progRewardData[id] = false
|
||||||
|
end
|
||||||
|
|
||||||
|
self.dayPoint = 0
|
||||||
|
self:setDirty()
|
||||||
|
end)
|
||||||
|
self.dailyRedState = nil
|
||||||
|
self.achievementRedState = nil
|
||||||
|
self:showRedPoint()
|
||||||
|
end
|
||||||
|
|
||||||
|
function DailyTaskData:initDaily(daily)
|
||||||
|
daily = daily or {}
|
||||||
|
|
||||||
--任务领取状态&进度
|
--任务领取状态&进度
|
||||||
self.dailyTaskData = daily.tasks or {}
|
self.dailyTaskData = daily.tasks or {}
|
||||||
-- 活跃度
|
-- 活跃度
|
||||||
@ -28,10 +53,6 @@ function DailyTaskData:init(daily, achievement)
|
|||||||
-- 活跃度领奖
|
-- 活跃度领奖
|
||||||
self.progRewardData = daily.stage_reward_claimed or {}
|
self.progRewardData = daily.stage_reward_claimed or {}
|
||||||
|
|
||||||
-- 成就任务
|
|
||||||
self.achievementData = achievement.tasks or {}
|
|
||||||
self.achievementRewardData = achievement.task_claimed_stages or {}
|
|
||||||
|
|
||||||
-- 任务配置
|
-- 任务配置
|
||||||
self.dailyTaskIds = {}
|
self.dailyTaskIds = {}
|
||||||
for id, info in pairs(TaskDailyCfg) do
|
for id, info in pairs(TaskDailyCfg) do
|
||||||
@ -52,30 +73,21 @@ function DailyTaskData:init(daily, achievement)
|
|||||||
self:addTaskProgress(info.task_type, count)
|
self:addTaskProgress(info.task_type, count)
|
||||||
end)
|
end)
|
||||||
end
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
function DailyTaskData:initAchievement(achievement)
|
||||||
|
achievement = achievement or {}
|
||||||
|
|
||||||
|
-- 成就任务
|
||||||
|
self.achievementData = achievement.tasks or {}
|
||||||
|
self.achievementRewardData = achievement.task_claimed_stages or {}
|
||||||
|
|
||||||
for id, info in pairs(TaskAchievementCfg) do
|
for id, info in pairs(TaskAchievementCfg) do
|
||||||
ModuleManager.TaskManager:registerTask("DailyTaskData", info.type, function(count)
|
ModuleManager.TaskManager:registerTask("DailyTaskData", info.type, function(count)
|
||||||
self.achievementRedState = nil
|
self.achievementRedState = nil
|
||||||
self:addTaskProgress(info.type, count)
|
self:addTaskProgress(info.type, count)
|
||||||
end)
|
end)
|
||||||
end
|
end
|
||||||
-- 跨天
|
|
||||||
DataManager:registerCrossDayFunc("DailyTaskData", function()
|
|
||||||
-- 重置任务数据
|
|
||||||
for id, data in pairs(self.dailyTaskData) do
|
|
||||||
data.claimed = 0
|
|
||||||
data.progress = 0
|
|
||||||
end
|
|
||||||
-- 重置进度奖励数据
|
|
||||||
for id, claimed in pairs(self.progRewardData) do
|
|
||||||
self.progRewardData[id] = false
|
|
||||||
end
|
|
||||||
|
|
||||||
self.dayPoint = 0
|
|
||||||
self:setDirty()
|
|
||||||
end)
|
|
||||||
self.dailyRedState = nil
|
|
||||||
self.achievementRedState = nil
|
|
||||||
self:showRedPoint()
|
|
||||||
end
|
end
|
||||||
|
|
||||||
function DailyTaskData:getIsOpen(showToast)
|
function DailyTaskData:getIsOpen(showToast)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user