Unlock hidden points (#2016)

This commit is contained in:
ghjbvvgh 2023-01-11 07:28:00 +08:00 committed by GitHub
parent 668461a6f1
commit 8a5a6ab83e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 2 deletions

View File

@ -17,9 +17,11 @@ public class PacketGetScenePointRsp extends BasePacket {
if (GameData.getScenePointIdList().size() == 0) {
for (int i = 1; i < 1000; i++) {
p.addUnlockedPointList(i);
p.addUnhidePointList(i);
}
} else {
p.addAllUnlockedPointList(player.getUnlockedScenePoints(sceneId));
p.addAllUnhidePointList(player.getUnlockedScenePoints(sceneId));
}
for (int i = 1; i < 9; i++) {

View File

@ -10,7 +10,8 @@ public class PacketScenePointUnlockNotify extends BasePacket {
ScenePointUnlockNotify.Builder p = ScenePointUnlockNotify.newBuilder()
.setSceneId(sceneId)
.addPointList(pointId);
.addPointList(pointId)
.addUnhidePointList(pointId);
this.setData(p);
}
@ -20,7 +21,8 @@ public class PacketScenePointUnlockNotify extends BasePacket {
ScenePointUnlockNotify.Builder p = ScenePointUnlockNotify.newBuilder()
.setSceneId(sceneId)
.addAllPointList(pointIds);
.addAllPointList(pointIds)
.addAllUnhidePointList(pointIds);
this.setData(p);
}