This commit is contained in:
1
2025-10-23 06:00:18 +00:00
parent ab5907de15
commit be9649664c
2 changed files with 7 additions and 6 deletions

View File

@@ -86,16 +86,12 @@ func (h *Controller) Login(data *user.MAIN_LOGIN_IN, c gnet.Conn) (result *user.
t.CompleteLogin() //通知客户端登录成功
glog.Debug(context.Background(), "登录成功,初始地图 人数:", space.GetSpace(t.Info.MapID).User.Count())
result = user.NewOutInfo() //设置登录消息
result.PlayerInfo = *t.Info
for i := 0; i < 80; i++ {
result.PlayerInfo.NonoChipList[i] = 255
}
result.NONO.SuperNono = 1
defer func() {
tt := maps.NewOutInfo()
copier.CopyWithOption(tt, t.Info, copier.Option{DeepCopy: true})

View File

@@ -68,6 +68,11 @@ func (h Controller) Complete_Task(data *task.CompleteTaskInboundInfo, c *player.
// 新手任务1
case 85:
c.Info.TaskList[3] = 3 //新手任务
for i := 0; i < 80; i++ {//超NO芯片填充
c.Info.NonoChipList[i] = 255
}
c.Info.NONO.SuperNono = 1 //送超NO
// out_id=1默认分支的奖励物品
result.ItemList = append(result.ItemList,
task.ItemInfo{ItemId: 100027, ItemCount: 1}, // 新手帽默认数量1