Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
ziqian zhang
Grasscutter
Commits
8a5a6ab8
Unverified
Commit
8a5a6ab8
authored
Jan 11, 2023
by
ghjbvvgh
Committed by
GitHub
Jan 11, 2023
Browse files
Unlock hidden points (#2016)
parent
668461a6
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/main/java/emu/grasscutter/server/packet/send/PacketGetScenePointRsp.java
View file @
8a5a6ab8
...
...
@@ -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
++)
{
...
...
src/main/java/emu/grasscutter/server/packet/send/PacketScenePointUnlockNotify.java
View file @
8a5a6ab8
...
...
@@ -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
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment