implement stepup gacha, fix unfulfilled rewards

This commit is contained in:
wish
2023-02-18 12:36:17 +11:00
parent c3306de2ee
commit 0fcacc24a0
3 changed files with 102 additions and 161 deletions

View File

@@ -1,18 +1,18 @@
package mhfpacket
import (
"errors"
import (
"errors"
"erupe-ce/network/clientctx"
"erupe-ce/network"
"erupe-ce/common/byteframe"
"erupe-ce/network"
"erupe-ce/network/clientctx"
)
// MsgMhfGetStepupStatus represents the MSG_MHF_GET_STEPUP_STATUS
type MsgMhfGetStepupStatus struct{
type MsgMhfGetStepupStatus struct {
AckHandle uint32
GachaHash uint32
Unk uint8
GachaID uint32
Unk uint8
}
// Opcode returns the ID associated with this packet type.
@@ -23,7 +23,7 @@ func (m *MsgMhfGetStepupStatus) Opcode() network.PacketID {
// Parse parses the packet from binary
func (m *MsgMhfGetStepupStatus) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error {
m.AckHandle = bf.ReadUint32()
m.GachaHash = bf.ReadUint32()
m.GachaID = bf.ReadUint32()
m.Unk = bf.ReadUint8()
return nil
}