gm iamyoudad 只发所有到家

This commit is contained in:
meixiongfeng 2024-02-06 10:24:10 +08:00
parent f569f249dc
commit e2657a9200
2 changed files with 18 additions and 23 deletions

View File

@ -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
}

View File

@ -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 {