mirror of
https://github.com/Melledy/Grasscutter.git
synced 2024-12-05 03:03:31 +00:00
f139818224
* feature(2.7 version): support 2.7 version & upload new protos 1. Support GC in GI 2.7.0; 2. Upload new protos; 3. Fix some bugs cuz by new protos. BREAKING CHANGE: all * fix(database helper): fix player uid issues * fix(ability embryo): uint32 to fixed32 * fix(proto): map mark rename MAP_MARK_FROM_TYPE_NOE to MAP_MARK_FROM_TYPE_NONE * fix(game version): change game version to 2.7.0 * perf(proto): remove unused protos 1. Remove unused protos; 2. Temporarily commented out some of the proto fields. * fix(proto): uint32 to fixed32
27 lines
1006 B
Java
27 lines
1006 B
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.QueryCodexMonsterBeKilledNumRspOuterClass.QueryCodexMonsterBeKilledNumRsp;
|
|
|
|
import java.util.List;
|
|
|
|
public class PacketQueryCodexMonsterBeKilledNumRsp extends BasePacket {
|
|
|
|
public PacketQueryCodexMonsterBeKilledNumRsp(Player player, List<Integer> codexList) {
|
|
super(PacketOpcodes.QueryCodexMonsterBeKilledNumRsp);
|
|
QueryCodexMonsterBeKilledNumRsp.Builder proto = QueryCodexMonsterBeKilledNumRsp.newBuilder();
|
|
|
|
codexList.forEach(animal -> {
|
|
if(player.getCodex().getUnlockedAnimal().containsKey(animal)){
|
|
proto.addCodexIdList(animal)
|
|
.addBeKilledNumList(player.getCodex().getUnlockedAnimal().get(animal))
|
|
.addCHPBKCLKPCJ(0);
|
|
}
|
|
});
|
|
|
|
this.setData(proto);
|
|
}
|
|
}
|