Merge pull request 'remove unknown trade state' (#14) from trade_unknown into master
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
Reviewed-on: #14
This commit is contained in:
commit
fdd4aa916d
@ -700,7 +700,6 @@ pub enum TradeRequestCommand {
|
|||||||
RemoveItem(u32, u32),
|
RemoveItem(u32, u32),
|
||||||
Confirm,
|
Confirm,
|
||||||
FinalConfirm,
|
FinalConfirm,
|
||||||
Unknown,
|
|
||||||
}
|
}
|
||||||
|
|
||||||
impl PSOPacketData for TradeRequestCommand {
|
impl PSOPacketData for TradeRequestCommand {
|
||||||
@ -738,9 +737,6 @@ impl PSOPacketData for TradeRequestCommand {
|
|||||||
4 => {
|
4 => {
|
||||||
Ok(TradeRequestCommand::FinalConfirm)
|
Ok(TradeRequestCommand::FinalConfirm)
|
||||||
},
|
},
|
||||||
6 => {
|
|
||||||
Ok(TradeRequestCommand::Unknown)
|
|
||||||
},
|
|
||||||
_ => {
|
_ => {
|
||||||
Err(PacketParseError::InvalidValue)
|
Err(PacketParseError::InvalidValue)
|
||||||
},
|
},
|
||||||
@ -788,12 +784,6 @@ impl PSOPacketData for TradeRequestCommand {
|
|||||||
.chain(std::iter::repeat(0).take(11))
|
.chain(std::iter::repeat(0).take(11))
|
||||||
.collect()
|
.collect()
|
||||||
},
|
},
|
||||||
TradeRequestCommand::Unknown => {
|
|
||||||
vec![6u8]
|
|
||||||
.into_iter()
|
|
||||||
.chain(std::iter::repeat(0).take(11))
|
|
||||||
.collect()
|
|
||||||
},
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user