pub struct Fight {Show 13 fields
pub group_attacker_name: Option<String>,
pub group_attacker_id: Option<u32>,
pub group_defender_name: Option<String>,
pub group_defender_id: Option<u32>,
pub fights: Vec<SingleFight>,
pub has_player_won: bool,
pub silver_change: i64,
pub xp_change: u64,
pub mushroom_change: u8,
pub honor_change: i64,
pub rank_pre_fight: u32,
pub rank_post_fight: u32,
pub item_won: Option<Item>,
}Expand description
A complete fight, which can be between multiple fighters for guild/tower fights
Fields§
§group_attacker_name: Option<String>The name of the attacking player for pet battles, or the name of the attacking guild in guild battles
group_attacker_id: Option<u32>Either the player or guild id depending on pet/guild fight
group_defender_name: Option<String>The name of the attacking player for pet battles, or the name of the attacking guild in guild battles
group_defender_id: Option<u32>Either the player or guild id depending on pet/guild fight
fights: Vec<SingleFight>The 1on1 fights within a larger fight, that end with one of the contestants defeated
has_player_won: boolWhether the fight was won by the player.
silver_change: i64The amount of money, that changed from a players perspective
xp_change: u64The amount of experience, that changed from a players perspective
mushroom_change: u8The amount of mushrooms the player got after this fight
honor_change: i64How much this fight changed the players honor by
rank_pre_fight: u32The rank before this fight
rank_post_fight: u32The rank after this fight
item_won: Option<Item>The item this fight gave the player (if any)