增加任务类型
This commit is contained in:
parent
ccc02de315
commit
3703b2396a
@ -38,6 +38,8 @@ const (
|
||||
TRIGGER_LABEL_DECORATE = "Decorate" // 装饰
|
||||
TRIGGER_LABEL_PURCHASE = "Purchase" // 购买任意物品
|
||||
TRIGGER_LABEL_BUBBLE = "Bubble" // 使用钻石打开气泡
|
||||
TRIGGER_LABEL_PLAYROOM_UPVOTE = "PlayRoomUpvote" // 给房间点赞
|
||||
TRIGGER_LABEL_PLAYROOM_GAME = "PlayRoomGame" // 玩房间小游戏
|
||||
)
|
||||
|
||||
type QuestProgress struct {
|
||||
|
||||
@ -3967,6 +3967,7 @@ func ReqPlayroomSelectReward(player *Player, buf []byte) error {
|
||||
"is_chip": true,
|
||||
"item_list": Items,
|
||||
})
|
||||
player.QuestTrigger(&quest.Trigger{Label: quest.TRIGGER_LABEL_PLAYROOM_GAME})
|
||||
FriendMod := player.PlayMod.getFriendMod()
|
||||
FriendMod.AddActLog(friend.ACT_LOG_TYPE_GET_VISIT_GAME_PRIZE_1, "")
|
||||
player.UpdateUserInfo()
|
||||
@ -4280,6 +4281,7 @@ func ReqPlayroomUpvote(player *Player, buf []byte) error {
|
||||
Type: MsqMod.HANDLE_TYPE_PLAYROOM_KISS,
|
||||
SendT: GoUtil.Now(),
|
||||
})
|
||||
player.QuestTrigger(&quest.Trigger{Label: quest.TRIGGER_LABEL_PLAYROOM_UPVOTE})
|
||||
player.AddPlayroomUpvote(int(req.Id))
|
||||
player.SetPlayroomKiss(1, int(req.Id))
|
||||
player.TeLog("visit_like", map[string]interface{}{
|
||||
|
||||
Loading…
Reference in New Issue
Block a user