This commit is contained in:
liwei1dao 2024-02-06 10:57:27 +08:00
commit e10acb588e
2 changed files with 18 additions and 23 deletions

View File

@ -72,11 +72,6 @@ func (this *Entertainment) Start() (err error) {
return return
} }
this.mail = module.(comm.Imail) this.mail = module.(comm.Imail)
// m := new(MapData)
// m.InitMap(this, 1)
// m.SetMap()
// m.Debugf()
// m.CheckElem(1)
return return
} }

View File

@ -135,25 +135,25 @@ func (this *GM) CreateCmd(session comm.IUserSession, cmd string) (errdata *pb.Er
res []*cfg.Gameatn res []*cfg.Gameatn
) )
equip := this.configure.GetAllEquipmentConfigure() // equip := this.configure.GetAllEquipmentConfigure()
for _, v1 := range equip { // for _, v1 := range equip {
res = append(res, &cfg.Gameatn{ // res = append(res, &cfg.Gameatn{
A: "equi", // A: "equi",
T: v1.Id, // T: v1.Id,
N: 5, // N: 5,
}) // })
} // }
data := this.configure.GetHeroConfigData() // data := this.configure.GetHeroConfigData()
for _, v := range data { // for _, v := range data {
if v.Handbook { // if v.Handbook {
res = append(res, &cfg.Gameatn{ // res = append(res, &cfg.Gameatn{
A: "hero", // A: "hero",
T: v.Hid, // T: v.Hid,
N: 1, // N: 1,
}) // })
} // }
} // }
// 发所有道具 // 发所有道具
item := this.configure.GetAllItemConfigure() item := this.configure.GetAllItemConfigure()
for _, v := range item { for _, v := range item {