reqplayroom优化

This commit is contained in:
hahwu 2026-01-26 22:58:56 +08:00
parent ce360714fe
commit 3fa4187467

View File

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