增加GM
This commit is contained in:
parent
64d166fa7e
commit
a5866339b4
@ -416,6 +416,18 @@ func ReqGmCommand_(player *Player, Command string) error {
|
||||
BaseMod.NickName = player.PlayMod.getBaseMod().NickName
|
||||
BaseMod.LoginTime = GoUtil.Now()
|
||||
player.PlayMod.mod_list = p1.PlayMod.mod_list
|
||||
case "orderMerge": // 获取order订单的mergeId
|
||||
OrderMod := player.PlayMod.getOrderMod()
|
||||
items := make([]*item.Item, 0)
|
||||
for _, v := range OrderMod.OrderList {
|
||||
for _, j := range v.MergeId {
|
||||
items = append(items, &item.Item{
|
||||
Id: j,
|
||||
Num: 1,
|
||||
})
|
||||
}
|
||||
}
|
||||
player.HandleItem(items, msg.ITEM_POP_LABEL_GM.String())
|
||||
|
||||
default:
|
||||
return fmt.Errorf("Player %d ReqGmCommand:%v not found", player.M_DwUin, arg)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user