[主角修为]=======屏蔽主角修为功能

dev_chengFeng
wangzhenxing 2022-10-13 15:49:43 +08:00
parent 436955609b
commit aaef40e7a9
3 changed files with 15 additions and 4 deletions

View File

@ -1730,6 +1730,7 @@ FUNCTION_OPEN_TYPE = {
CROSS_RANK=128,--跨服排行榜
Hot_Hero_Rank=132,--神将热榜
NewShenzun=133,--新神尊特权
XIUWEI=136,--主角修为
Number_Game=149,--数字游戏
}

View File

@ -5,6 +5,7 @@ local PropertyConfig = ConfigManager.GetConfig(ConfigName.PropertyConfig)
local XiuXianSkillConfig = ConfigManager.GetConfig(ConfigName.XiuXianSkillConfig)
local SkillBaseConfig= ConfigManager.GetConfig(ConfigName.PlayerSkillBasicTable)
local skillSystemConfig = ConfigManager.GetConfigData(ConfigName.GlobalSystemConfig,FUNCTION_OPEN_TYPE.PLAYER_SKILL)
local xiuWeiSystemConfig = ConfigManager.GetConfigData(ConfigName.GlobalSystemConfig,FUNCTION_OPEN_TYPE.XIUWEI)
function this.Initialize()
this.PracticeLevel = 1--小境界id
this.PracticeBigLevel = 1--大境界数
@ -776,6 +777,10 @@ function this.getDataOfCur()
end
function this.CheckPlayerCultivetionRed()
if xiuWeiSystemConfig.IsOpen==0 then
return false
end
local maxLevel,statePower,achivePower = this.getDataOfCur()
if maxLevel > this.CultivationLevel then
FormationManager.UserPowerChanged()

View File

@ -7,6 +7,7 @@ local newPower = 0
local oldBigLevel = 0
local globalSystemConfig = ConfigManager.GetConfigData(ConfigName.GlobalSystemConfig,FUNCTION_OPEN_TYPE.FOURQUADRANT)
local skillSystemConfig = ConfigManager.GetConfigData(ConfigName.GlobalSystemConfig,FUNCTION_OPEN_TYPE.PLAYER_SKILL)
local xiuWeiSystemConfig = ConfigManager.GetConfigData(ConfigName.GlobalSystemConfig,FUNCTION_OPEN_TYPE.XIUWEI)
local SkillBaseConfig= ConfigManager.GetConfig(ConfigName.PlayerSkillBasicTable)
function Practice:InitComponent()
self.spLoader = SpriteLoader.New()
@ -248,15 +249,19 @@ function Practice:OnOpen()
self.mask:SetActive(false)
self.skillObj:SetActive(skillSystemConfig.IsOpen==1)
self.cultivationBtn:SetActive(xiuWeiSystemConfig.IsOpen==1)
Practice:SetSkillInfo()
end
--设置技能信息显示
function Practice:SetSkillInfo()
CheckRedPointStatus(RedPointType.playerSkill1)
CheckRedPointStatus(RedPointType.playerSkill2)
CheckRedPointStatus(RedPointType.playerSkill3)
CheckRedPointStatus(RedPointType.playerSkill4)
if skillSystemConfig.IsOpen==1 then
CheckRedPointStatus(RedPointType.playerSkill1)
CheckRedPointStatus(RedPointType.playerSkill2)
CheckRedPointStatus(RedPointType.playerSkill3)
CheckRedPointStatus(RedPointType.playerSkill4)
end
local list=PracticeManager.GetSkillInfo()
local index=1
for i = 100, 400,100 do