playroom每日任务
This commit is contained in:
parent
75a6048ca4
commit
35c8ca8f82
@ -6,12 +6,13 @@ import (
|
||||
proto "server/msg"
|
||||
)
|
||||
|
||||
func (p *Player) NotifyPlayroomTask() *proto.NotifyPlayroomTask {
|
||||
func (p *Player) NotifyPlayroomTask() {
|
||||
PlayroomMod := p.PlayMod.getPlayroomMod()
|
||||
return &proto.NotifyPlayroomTask{
|
||||
m := &proto.NotifyPlayroomTask{
|
||||
DailyTask: PlayroomMod.BackDataTask(),
|
||||
DailyTaskReward: GoUtil.IntToInt32(PlayroomMod.DailyTaskReward),
|
||||
}
|
||||
p.PushClientRes(m)
|
||||
}
|
||||
|
||||
func PlayroomBackData(p *Player) {
|
||||
|
||||
@ -3136,7 +3136,6 @@ func ReqPlayroomInteract(player *Player, buf []byte) error {
|
||||
player.QuestTrigger(&quest.Trigger{Label: quest.TRIGGER_LABEL_INTERACT, A: []interface{}{int(req.Id)}})
|
||||
player.PlayMod.save()
|
||||
LimitedTimePlayroomTrigger(player)
|
||||
player.PushClientRes(PlayroomMod.NotifyMood())
|
||||
player.PushClientRes(&msg.ResPlayroomInteract{
|
||||
Code: msg.RES_CODE_SUCCESS,
|
||||
})
|
||||
|
||||
Loading…
Reference in New Issue
Block a user