TCX_LongZhu
DESKTOP-MMO982B\User 2026-05-07 17:35:34 +08:00
parent 0df74aec05
commit 711a7c8024
4 changed files with 56 additions and 12 deletions

View File

@ -390,6 +390,7 @@ function this.GetHeroPotencyLvById(did)
end
end
--LogError("礼物增加 潜能 lv====================================="..lv)
lv = lv + TianShuMiJuanManger.GetAddPotentialLV()
return lv
end
--获取主角礼物添加的潜能等级

View File

@ -396,7 +396,7 @@ function this.ResetHeroPotentialData(_did)
heroDatas[_did].potential = {}
heroDatas[_did].potential[1] = {}
heroDatas[_did].potential[1].lv = 1
heroDatas[_did].potential[1].giftLv = 1 --TianShuMiJuanManger.GetAddPotentialLV()
heroDatas[_did].potential[1].giftLv = TianShuMiJuanManger.GetAddPotentialLV()
end
end
@ -4374,7 +4374,7 @@ end
function this.GetHeroPotencyAddByType(_dyn, _type)
if heroDatas[_dyn] and heroDatas[_dyn].potential and heroDatas[_dyn].potential[_type] then
local poten = heroDatas[_dyn].potential[_type]
local allLv = poten.lv + poten.giftLv --+TianShuMiJuanManger.GetAddPotentialLV()
local allLv = poten.lv + poten.giftLv +TianShuMiJuanManger.GetAddPotentialLV()
--LogError("poten.lv====="..poten.lv.." poten.giftLv=="..poten.giftLv.." TianShuMiJuanManger.GetAddPotentialLV()=="..TianShuMiJuanManger.GetAddPotentialLV())
local config = ConfigManager.TryGetConfigDataByDoubleKey(ConfigName.PotentialNew, "Type", _type, "Level", allLv)
if config then
@ -4388,7 +4388,7 @@ end
function this.GetHeroPotencyAddByTypeAndPotencyData(_data, _type)
if _data and _type and _data[_type] then
local aaa = _data[_type]
local allLv = aaa.lv + aaa.giftLv --+TianShuMiJuanManger.GetAddPotentialLV()
local allLv = aaa.lv + aaa.giftLv +TianShuMiJuanManger.GetAddPotentialLV()
local config = ConfigManager.TryGetConfigDataByDoubleKey(ConfigName.PotentialNew, "Type", _type, "Level", allLv)
if config then
local pro = config.Attribute / 10000

View File

@ -7,14 +7,14 @@ local redPointList = {}
-- Tab管理器
local TabBox = require("Modules/Common/TabBox")
local tabs = {
-- [1] = { --神将
-- default = "r_hero_xuanze_002", lock = "r_hero_xuanze_002", select = "r_hero_xuanze_001",tabName = Language[12274],
-- rpType = RedPointType.Hero_Fetter,funcType = -1,bg = "t_tianshumijuan_shengjiangditu",zi = "t_tianshumijuan_shenjiangpian_zi_zh",
-- },
-- [2] = { --魂印
-- default = "r_hero_xuanze_002", lock = "r_hero_xuanze_002", select = "r_hero_xuanze_001",tabName = Language[12275],
-- rpType = RedPointType.SoulPrint_Fetter,funcType = FUNCTION_OPEN_TYPE.hunyin,bg = "t_tianshumijuan_hunyinditu",zi = "t_tianshumijuan_hunyingpian_zi_zh", --gamesetting.EquipSignUnlock
-- },
[1] = { --神将
default = "r_hero_xuanze_002", lock = "r_hero_xuanze_002", select = "r_hero_xuanze_001",tabName = Language[12274],
rpType = RedPointType.Hero_Fetter,funcType = -1,bg = "t_tianshumijuan_shengjiangditu",zi = "t_tianshumijuan_shenjiangpian_zi_zh",
},
[2] = { --魂印
default = "r_hero_xuanze_002", lock = "r_hero_xuanze_002", select = "r_hero_xuanze_001",tabName = Language[12275],
rpType = RedPointType.SoulPrint_Fetter,funcType = FUNCTION_OPEN_TYPE.hunyin,bg = "t_tianshumijuan_hunyinditu",zi = "t_tianshumijuan_hunyingpian_zi_zh", --gamesetting.EquipSignUnlock
},
[3] = { --灵兽
default = "r_hero_xuanze_002", lock = "r_hero_xuanze_002", select = "r_hero_xuanze_001",tabName = Language[12276],
rpType = RedPointType.TianShuPokemon_Fetter,funcType = FUNCTION_OPEN_TYPE.POKEMON,bg = "GSX116",zi = "t_tianshumijuan_lingshoupian_zi_zh",
@ -27,6 +27,39 @@ local tabs = {
default = "r_hero_xuanze_002", lock = "r_hero_xuanze_002", select = "r_hero_xuanze_001",tabName = "超级武器篇",
rpType = RedPointType.Weapon_Fetter,funcType = FUNCTION_OPEN_TYPE.POKEMON,bg = "GSX116",zi = "GodWeaponAtlas_handbook_title_zh",
},
[6] = { --法宝
default = "r_hero_xuanze_002",
lock = "r_hero_xuanze_002",
select = "r_hero_xuanze_001",
tabName = "法宝",
rpType = RedPointType.Treasure_Fetter,
funcType = -1,
bg = "t_tianshumijuan_lingshouditu"
,
zi = "GodWeaponAtlas_handbook_title_zh",
},
[7] = { --法相
default = "r_hero_xuanze_002",
lock = "r_hero_xuanze_002",
select = "r_hero_xuanze_001",
tabName = "法相",
rpType = RedPointType.FaXiang_Fetter,
funcType = FUNCTION_OPEN_TYPE.FaXiang,
bg = "t_tianshumijuan_lingshouditu"
,
zi = "GodWeaponAtlas_handbook_title_zh",
},
[8] = { --身外化身
default = "r_hero_xuanze_002",
lock = "r_hero_xuanze_002",
select = "r_hero_xuanze_001",
tabName = "身外化身",
rpType = RedPointType.HuaShen_Fetter,
funcType = FUNCTION_OPEN_TYPE.Incarnation,
bg = "t_tianshumijuan_lingshouditu"
,
zi = "GodWeaponAtlas_handbook_title_zh",
},
}
local status = {
[0] = Language[10175],

View File

@ -109,7 +109,17 @@ function this.CheckFetterStatus(fetterType)
end
end
--获取加成的羁绊等级
function this.GetAddPotentialLV()
local lv=0
for k,v in pairs(this.fetterData) do
if v.enabled==1 then
lv=lv+v.Potential
end
end
return lv
end
--刷新羁绊状态
function this.GetAllPokemonFetterDatas(fetterType,curPokemonSidList)
local SpiritAnimalBookList = {}