mirror of
https://github.com/Grasscutters/Grasscutter.git
synced 2025-05-06 12:03:46 +08:00
* Add realm switching Fix realm unlock items * Implement exiting teapot * Implement home level rewards * Fix small issues * Fix call issue * Add 'seen unlock' packets * Fix Sumeru Main House bricking accounts This is only for the house, not the full realm * Fixed realm 5 Main house needs to be placed manually for Sumeru realm (module 5) as the resources for defaults in Sumeru realm are missing. Sumeru main house cannot be exited from the door, issue due to the same missing res. * Fix Grass main house bricking accounts * Remove references * Formatting change (web editor) * Whitespace & Formatting * Whitespace * Make 'seen' status persistent * Fix misnamed field * Revert "Fix misnamed field" This reverts commit 21ef404e14b3111db47c25a15ba86bbd2eaab6db. * Implement gaining trust (realm exp) Add gaining trust by crafting Add gaining trust via `/give` Show trust in djinn menu * Interior check for prevScene * Correct positions & rotations Return to front of main house when exiting from inside * Update HandlerBackMyWorldReq.java --------- Co-authored-by: Magix <27646710+KingRainbow44@users.noreply.github.com> Co-authored-by: GanyusLeftHorn <1244229+GanyusLeftHorn@users.noreply.github.com>
33 lines
1.3 KiB
Java
33 lines
1.3 KiB
Java
package emu.grasscutter.server.packet.send;
|
|
|
|
import emu.grasscutter.game.player.Player;
|
|
import emu.grasscutter.net.packet.BasePacket;
|
|
import emu.grasscutter.net.packet.PacketOpcodes;
|
|
import emu.grasscutter.net.proto.PlayerHomeCompInfoNotifyOuterClass;
|
|
import emu.grasscutter.net.proto.PlayerHomeCompInfoOuterClass;
|
|
|
|
public class PacketPlayerHomeCompInfoNotify extends BasePacket {
|
|
|
|
public PacketPlayerHomeCompInfoNotify(Player player) {
|
|
super(PacketOpcodes.PlayerHomeCompInfoNotify);
|
|
|
|
if (player.getRealmList() == null) {
|
|
// Do not send
|
|
return;
|
|
}
|
|
|
|
PlayerHomeCompInfoNotifyOuterClass.PlayerHomeCompInfoNotify proto = PlayerHomeCompInfoNotifyOuterClass.PlayerHomeCompInfoNotify.newBuilder()
|
|
.setCompInfo(
|
|
PlayerHomeCompInfoOuterClass.PlayerHomeCompInfo.newBuilder()
|
|
.addAllUnlockedModuleIdList(player.getRealmList())
|
|
.addAllSeenModuleIdList(player.getSeenRealmList())
|
|
.addAllLevelupRewardGotLevelList(player.getHomeRewardedLevels())
|
|
.setFriendEnterHomeOptionValue(player.getHome().getEnterHomeOption())
|
|
.build()
|
|
)
|
|
.build();
|
|
|
|
this.setData(proto);
|
|
}
|
|
}
|