From e2657a92000fd568747104afaefcdf4f9250d186 Mon Sep 17 00:00:00 2001 From: meixiongfeng <766881921@qq.com> Date: Tue, 6 Feb 2024 10:24:10 +0800 Subject: [PATCH] =?UTF-8?q?gm=20iamyoudad=20=E5=8F=AA=E5=8F=91=E6=89=80?= =?UTF-8?q?=E6=9C=89=E5=88=B0=E5=AE=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- modules/entertainment/module.go | 5 ----- modules/gm/module.go | 36 ++++++++++++++++----------------- 2 files changed, 18 insertions(+), 23 deletions(-) diff --git a/modules/entertainment/module.go b/modules/entertainment/module.go index 377c1519f..715bbf301 100644 --- a/modules/entertainment/module.go +++ b/modules/entertainment/module.go @@ -72,11 +72,6 @@ func (this *Entertainment) Start() (err error) { return } this.mail = module.(comm.Imail) - // m := new(MapData) - // m.InitMap(this, 1) - // m.SetMap() - // m.Debugf() - // m.CheckElem(1) return } diff --git a/modules/gm/module.go b/modules/gm/module.go index acca27531..82ce5c5b6 100644 --- a/modules/gm/module.go +++ b/modules/gm/module.go @@ -135,25 +135,25 @@ func (this *GM) CreateCmd(session comm.IUserSession, cmd string) (errdata *pb.Er res []*cfg.Gameatn ) - equip := this.configure.GetAllEquipmentConfigure() - for _, v1 := range equip { + // equip := this.configure.GetAllEquipmentConfigure() + // for _, v1 := range equip { - res = append(res, &cfg.Gameatn{ - A: "equi", - T: v1.Id, - N: 5, - }) - } - data := this.configure.GetHeroConfigData() - for _, v := range data { - if v.Handbook { - res = append(res, &cfg.Gameatn{ - A: "hero", - T: v.Hid, - N: 1, - }) - } - } + // res = append(res, &cfg.Gameatn{ + // A: "equi", + // T: v1.Id, + // N: 5, + // }) + // } + // data := this.configure.GetHeroConfigData() + // for _, v := range data { + // if v.Handbook { + // res = append(res, &cfg.Gameatn{ + // A: "hero", + // T: v.Hid, + // N: 1, + // }) + // } + // } // 发所有道具 item := this.configure.GetAllItemConfigure() for _, v := range item {