pub struct Portal {
pub finished: u16,
pub can_fight: bool,
pub enemy_level: u32,
pub enemy_hp_percentage: u8,
pub player_hp_bonus: u16,
}
Expand description
The personal demon portal
Fields§
§finished: u16
The amount of enemies you have fought in the portal already
can_fight: bool
If this is true, you can fight the portal via the FightPortal
command. You will have to wait until the next day (on the server) and
send an Update
to make sure this is set correctly
enemy_level: u32
The level of the enemy in the portal. For some reason this is always wrong by a few levels?
enemy_hp_percentage: u8
The amount of health the enemy has left
player_hp_bonus: u16
Percentage boost to the players hp
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Portal
impl<'de> Deserialize<'de> for Portal
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Portal
impl RefUnwindSafe for Portal
impl Send for Portal
impl Sync for Portal
impl Unpin for Portal
impl UnwindSafe for Portal
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more