mirror of
https://github.com/Mezeporta/Erupe.git
synced 2025-12-14 16:04:38 +01:00
add stepup and box gacha rewards to storage
This commit is contained in:
@@ -551,6 +551,8 @@ func handleMsgMhfPlayStepupGacha(s *Session, p mhfpacket.MHFPacket) {
|
|||||||
bf.WriteUint8(uint8(len(rewards)))
|
bf.WriteUint8(uint8(len(rewards)))
|
||||||
bf.WriteBytes(temp.Data())
|
bf.WriteBytes(temp.Data())
|
||||||
doAckBufSucceed(s, pkt.AckHandle, bf.Data())
|
doAckBufSucceed(s, pkt.AckHandle, bf.Data())
|
||||||
|
addGachaItem(s, rewards)
|
||||||
|
addGachaItem(s, guaranteedItems)
|
||||||
}
|
}
|
||||||
|
|
||||||
func handleMsgMhfReceiveGachaItem(s *Session, p mhfpacket.MHFPacket) {
|
func handleMsgMhfReceiveGachaItem(s *Session, p mhfpacket.MHFPacket) {
|
||||||
@@ -673,6 +675,7 @@ func handleMsgMhfPlayBoxGacha(s *Session, p mhfpacket.MHFPacket) {
|
|||||||
bf.WriteUint8(uint8(len(rewards)))
|
bf.WriteUint8(uint8(len(rewards)))
|
||||||
bf.WriteBytes(temp.Data())
|
bf.WriteBytes(temp.Data())
|
||||||
doAckBufSucceed(s, pkt.AckHandle, bf.Data())
|
doAckBufSucceed(s, pkt.AckHandle, bf.Data())
|
||||||
|
addGachaItem(s, rewards)
|
||||||
}
|
}
|
||||||
|
|
||||||
func handleMsgMhfResetBoxGachaInfo(s *Session, p mhfpacket.MHFPacket) {
|
func handleMsgMhfResetBoxGachaInfo(s *Session, p mhfpacket.MHFPacket) {
|
||||||
|
|||||||
Reference in New Issue
Block a user