Unverified Commit 8a5a6ab8 authored by ghjbvvgh's avatar ghjbvvgh Committed by GitHub
Browse files

Unlock hidden points (#2016)

parent 668461a6
...@@ -17,9 +17,11 @@ public class PacketGetScenePointRsp extends BasePacket { ...@@ -17,9 +17,11 @@ public class PacketGetScenePointRsp extends BasePacket {
if (GameData.getScenePointIdList().size() == 0) { if (GameData.getScenePointIdList().size() == 0) {
for (int i = 1; i < 1000; i++) { for (int i = 1; i < 1000; i++) {
p.addUnlockedPointList(i); p.addUnlockedPointList(i);
p.addUnhidePointList(i);
} }
} else { } else {
p.addAllUnlockedPointList(player.getUnlockedScenePoints(sceneId)); p.addAllUnlockedPointList(player.getUnlockedScenePoints(sceneId));
p.addAllUnhidePointList(player.getUnlockedScenePoints(sceneId));
} }
for (int i = 1; i < 9; i++) { for (int i = 1; i < 9; i++) {
......
...@@ -10,7 +10,8 @@ public class PacketScenePointUnlockNotify extends BasePacket { ...@@ -10,7 +10,8 @@ public class PacketScenePointUnlockNotify extends BasePacket {
ScenePointUnlockNotify.Builder p = ScenePointUnlockNotify.newBuilder() ScenePointUnlockNotify.Builder p = ScenePointUnlockNotify.newBuilder()
.setSceneId(sceneId) .setSceneId(sceneId)
.addPointList(pointId); .addPointList(pointId)
.addUnhidePointList(pointId);
this.setData(p); this.setData(p);
} }
...@@ -20,7 +21,8 @@ public class PacketScenePointUnlockNotify extends BasePacket { ...@@ -20,7 +21,8 @@ public class PacketScenePointUnlockNotify extends BasePacket {
ScenePointUnlockNotify.Builder p = ScenePointUnlockNotify.newBuilder() ScenePointUnlockNotify.Builder p = ScenePointUnlockNotify.newBuilder()
.setSceneId(sceneId) .setSceneId(sceneId)
.addAllPointList(pointIds); .addAllPointList(pointIds)
.addAllUnhidePointList(pointIds);
this.setData(p); this.setData(p);
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment