mirror of
https://github.com/Melledy/Grasscutter.git
synced 2024-12-05 03:03:31 +00:00
27 lines
864 B
Java
27 lines
864 B
Java
package emu.grasscutter.server.packet.send;
|
|
|
|
import java.util.List;
|
|
|
|
import emu.grasscutter.game.inventory.GameItem;
|
|
import emu.grasscutter.net.packet.BasePacket;
|
|
import emu.grasscutter.net.packet.PacketOpcodes;
|
|
import emu.grasscutter.net.proto.ReliquaryUpgradeRspOuterClass.ReliquaryUpgradeRsp;
|
|
|
|
public class PacketReliquaryUpgradeRsp extends BasePacket {
|
|
|
|
public PacketReliquaryUpgradeRsp(GameItem relic, int rate, int oldLevel, List<Integer> oldAppendPropIdList) {
|
|
super(PacketOpcodes.ReliquaryUpgradeRsp);
|
|
|
|
ReliquaryUpgradeRsp proto = ReliquaryUpgradeRsp.newBuilder()
|
|
.setTargetReliquaryGuid(relic.getGuid())
|
|
.setOldLevel(oldLevel)
|
|
.setCurLevel(relic.getLevel())
|
|
.setPowerUpRate(rate)
|
|
.addAllOldAppendPropList(oldAppendPropIdList)
|
|
.addAllCurAppendPropList(relic.getAppendPropIdList())
|
|
.build();
|
|
|
|
this.setData(proto);
|
|
}
|
|
}
|