pub struct Upgrades {
pub speed: u8,
pub shield: bool,
pub inferno: bool,
}Expand description
Upgrade info that a client needs to know about to calculate movement. This also includes the shielded state of the player.
Note that since a player should never have more than
5 upgrades on the official server, protocol-v5 can
only represent amounts of speed upgrades in the range
0 to 7.
Used in:
Login, specificallyLoginPlayerPlayerUpdatePlayerRespawnPlayerUpgrade
Fields§
§speed: u8The number of speed upgrades that the player currently has equipped.
Note that only the first 3 bits of this are used in protocol-v5. Any values greater than 7 will be mangled.
shield: boolWhether the player has a shield.
While both this and inferno can be
set at the same time, that doesn’t make
sense within the framework of the game.
inferno: boolWhether the player has an inferno.
While both this and shield can be
set at the same time, that doesn’t make
sense within the framework of the game.