mirror of
https://github.com/Melledy/Grasscutter.git
synced 2024-11-25 20:56:28 +00:00
Unlock hidden points (#2016)
This commit is contained in:
parent
668461a6f1
commit
8a5a6ab83e
@ -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 {
|
|||||||
|
|
||||||
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 {
|
|||||||
|
|
||||||
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);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user