mirror of
https://github.com/Mezeporta/Erupe.git
synced 2025-12-15 08:25:09 +01:00
convert interception clear bonus to struct
This commit is contained in:
@@ -140,9 +140,23 @@ func handleMsgMhfGetUdTacticsBonusQuest(s *Session, p mhfpacket.MHFPacket) {
|
|||||||
|
|
||||||
func handleMsgMhfGetUdTacticsFirstQuestBonus(s *Session, p mhfpacket.MHFPacket) {
|
func handleMsgMhfGetUdTacticsFirstQuestBonus(s *Session, p mhfpacket.MHFPacket) {
|
||||||
pkt := p.(*mhfpacket.MsgMhfGetUdTacticsFirstQuestBonus)
|
pkt := p.(*mhfpacket.MsgMhfGetUdTacticsFirstQuestBonus)
|
||||||
// Temporary canned response
|
bonus := []struct {
|
||||||
data, _ := hex.DecodeString("0500000005DC01000007D002000009C40300000BB80400001194")
|
ID uint8
|
||||||
doAckBufSucceed(s, pkt.AckHandle, data)
|
Points uint32
|
||||||
|
}{
|
||||||
|
{0, 1500},
|
||||||
|
{1, 2000},
|
||||||
|
{2, 2500},
|
||||||
|
{3, 3000},
|
||||||
|
{4, 4500},
|
||||||
|
}
|
||||||
|
bf := byteframe.NewByteFrame()
|
||||||
|
bf.WriteUint8(uint8(len(bonus)))
|
||||||
|
for i := range bonus {
|
||||||
|
bf.WriteUint8(bonus[i].ID)
|
||||||
|
bf.WriteUint32(bonus[i].Points)
|
||||||
|
}
|
||||||
|
doAckBufSucceed(s, pkt.AckHandle, bf.Data())
|
||||||
}
|
}
|
||||||
|
|
||||||
func handleMsgMhfGetUdTacticsRemainingPoint(s *Session, p mhfpacket.MHFPacket) {
|
func handleMsgMhfGetUdTacticsRemainingPoint(s *Session, p mhfpacket.MHFPacket) {
|
||||||
|
|||||||
Reference in New Issue
Block a user