diff --git a/modules/comp_configure.go b/modules/comp_configure.go index 9219b00c0..32b8bfd7b 100644 --- a/modules/comp_configure.go +++ b/modules/comp_configure.go @@ -14,9 +14,9 @@ import ( const ( //game_gamecolor = "game_gamecolor.json" //颜色表 game_playerlv = "game_playerlv.json" //玩家等级 - game_facemod = "game_facemod.json" //形象配置表 - game_drop = "game_drop.json" //掉落 - new_hero = "game_hero.json" + //game_facemod = "game_facemod.json" //形象配置表 + game_drop = "game_drop.json" //掉落 + new_hero = "game_hero.json" // 签到 game_signreset = "game_signreset.json" game_sign = "game_sign.json" @@ -42,7 +42,7 @@ func (this *MCompConfigure) Init(service core.IService, module core.IModule, com //err = this.LoadConfigure(game_gamecolor, cfg.NewGameGameColor) err = this.LoadConfigure(new_hero, cfg.NewGameHero) err = this.LoadConfigure(game_playerlv, cfg.NewGamePlayerlv) - err = this.LoadConfigure(game_facemod, cfg.NewGameFacemod) + //err = this.LoadConfigure(game_facemod, cfg.NewGameFacemod) err = this.LoadConfigure(game_signreset, cfg.NewGameSignReset) err = this.LoadConfigure(game_equip, cfg.NewGameEquip) //err = this.LoadConfigure(game_sign, cfg.NewGameSign) @@ -138,23 +138,6 @@ func (this *MCompConfigure) GetPlayerlvConf(lv int32) (data *cfg.GamePlayerlvDat return } -// 玩家形象预设配置 -func (this *MCompConfigure) GetPlayerFigureConf() (list []*cfg.GameFacemodData) { - if v, err := this.GetConfigure(game_facemod); err != nil { - return - } else { - if configure, ok := v.(*cfg.GameFacemod); !ok { - err = fmt.Errorf("%T no is *cfg.Game_playerlv", v) - return - } else { - if configure != nil { - list = configure.GetDataList() - } - } - } - return -} - func (this *MCompConfigure) GetDropData(dropId int32) (data []*cfg.GameDropData) { data = this._dropMap[dropId] return diff --git a/modules/tools/comp_configure.go b/modules/tools/comp_configure.go index cbefa9afe..669952d9b 100644 --- a/modules/tools/comp_configure.go +++ b/modules/tools/comp_configure.go @@ -16,7 +16,6 @@ const ( game_initial = "game_initial.json" //初始化表 //game_gamecolor = "game_gamecolor.json" //颜色表 game_playerlv = "game_playerlv.json" //玩家等级 - game_facemod = "game_facemod.json" //形象配置表 game_drop = "game_drop.json" //掉落 new_hero = "game_hero.json" // 签到 @@ -64,7 +63,7 @@ func (this *MCompConfigure) Init(service core.IService, module core.IModule, com //err = this.LoadConfigure(game_gamecolor, cfg.NewGameGameColor) err = this.LoadConfigure(new_hero, cfg.NewGameHero) err = this.LoadConfigure(game_playerlv, cfg.NewGamePlayerlv) - err = this.LoadConfigure(game_facemod, cfg.NewGameFacemod) + err = this.LoadConfigure(game_signreset, cfg.NewGameSignReset) err = this.LoadConfigure(game_equip, cfg.NewGameEquip) //err = this.LoadConfigure(game_sign, cfg.NewGameSign) @@ -392,23 +391,6 @@ func (this *MCompConfigure) GetPlayerlvConf(lv int32) (data *cfg.GamePlayerlvDat return } -// 玩家形象预设配置 -func (this *MCompConfigure) GetPlayerFigureConf() (list []*cfg.GameFacemodData) { - if v, err := this.GetConfigure(game_facemod); err != nil { - return - } else { - if configure, ok := v.(*cfg.GameFacemod); !ok { - err = fmt.Errorf("%T no is *cfg.Game_playerlv", v) - return - } else { - if configure != nil { - list = configure.GetDataList() - } - } - } - return -} - func (this *MCompConfigure) GetDropData(dropId int32) (data []*cfg.GameDropData) { data = this._dropMap[dropId] return