reqplayroom优化
This commit is contained in:
parent
04354f4cdd
commit
06647c2b8f
@ -3744,6 +3744,9 @@ func ReqPlayroomInfo(player *Player, buf []byte) error {
|
||||
return nil
|
||||
}
|
||||
PlayerData := G_GameLogicPtr.GetSimplePlayerByUid(Targer)
|
||||
if PlayerData == nil {
|
||||
return fmt.Errorf("ReqPlayroomInfo player %d not found", Targer)
|
||||
}
|
||||
PlayroomMod.SetTarget(Targer)
|
||||
player.QuestTrigger(&quest.Trigger{Label: quest.TRIGGER_LABEL_VISITROOM})
|
||||
if PlayerData.Loginout > 0 && PlayerData.Loginout < GoUtil.Now()-int64(playroomCfg.GetGameOutline()) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user