mirror of
https://github.com/Melledy/Grasscutter.git
synced 2024-12-04 09:50:08 +00:00
6e955c9fdb
* Basic resin usage/refresh. * Honor resin config, move some logic to logon. * Add resin usage to DungeonChallenge * Make fragile and transient resin usable. * Get resin cost from dungeon excel. * Add ability to unlock combine diagrams. * Refactor CombineManager to use Inventory.payItems, enabling crafting of condensed resin. * Refactor ForgingManager to use Inventory.payItems, to prepare for eventually forging Mystic Enhancement Ores using resin. * Remove comment * Check resin usage in addResin
19 lines
543 B
Java
19 lines
543 B
Java
package emu.grasscutter.server.packet.send;
|
|
|
|
import emu.grasscutter.net.packet.BasePacket;
|
|
import emu.grasscutter.net.packet.PacketOpcodes;
|
|
import emu.grasscutter.net.proto.CombineDataNotifyOuterClass.CombineDataNotify;
|
|
|
|
public class PacketCombineDataNotify extends BasePacket {
|
|
|
|
public PacketCombineDataNotify(Iterable<Integer> unlockedCombines) {
|
|
super(PacketOpcodes.CombineDataNotify);
|
|
|
|
CombineDataNotify proto = CombineDataNotify.newBuilder()
|
|
.addAllCombineIdList(unlockedCombines)
|
|
.build();
|
|
|
|
this.setData(proto);
|
|
}
|
|
}
|