reqplayroom优化
This commit is contained in:
parent
1730d81990
commit
524a0cfa0f
@ -3743,6 +3743,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