reqplayroom优化

This commit is contained in:
hahwu 2026-01-26 22:58:56 +08:00
parent 1730d81990
commit 524a0cfa0f

View File

@ -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()) {