pub struct Fortress {Show 21 fields
pub buildings: [FortressBuilding; 12],
pub units: [FortressUnit; 3],
pub resources: [FortessRessource; 3],
pub building_max_lvl: u8,
pub wall_combat_lvl: u16,
pub time_stamp: Option<DateTime<Local>>,
pub building_upgrade: Option<FortressBuildingType>,
pub building_upgrade_finish: Option<DateTime<Local>>,
pub building_upgrade_began: Option<DateTime<Local>>,
pub level: u16,
pub honor: u32,
pub rank: u32,
pub gem_stone_target: Option<GemType>,
pub gem_search_finish: Option<DateTime<Local>>,
pub gem_search_began: Option<DateTime<Local>>,
pub gem_search_cost: FortressCost,
pub attack_target: Option<PlayerId>,
pub attack_free_reroll: Option<DateTime<Local>>,
pub opponent_reroll_price: u64,
pub quarry_next_level_production: u64,
pub woodcutter_next_level_production: u64,
/* private fields */
}
Fields§
§buildings: [FortressBuilding; 12]
§units: [FortressUnit; 3]
§resources: [FortessRessource; 3]
§building_max_lvl: u8
The highest level buildings can be upgraded to
wall_combat_lvl: u16
§time_stamp: Option<DateTime<Local>>
This seems to be the last time resources were collected, but this also seems to get set by something else
building_upgrade: Option<FortressBuildingType>
The building, that is currently being upgraded
building_upgrade_finish: Option<DateTime<Local>>
The time at which the upgrade is finished
building_upgrade_began: Option<DateTime<Local>>
§level: u16
The level visible on the HOF screen for fortress. Should be all building levels summed up
honor: u32
§rank: u32
§gem_stone_target: Option<GemType>
§gem_search_finish: Option<DateTime<Local>>
§gem_search_began: Option<DateTime<Local>>
§gem_search_cost: FortressCost
§attack_target: Option<PlayerId>
The next enemy you can choose to battle. This should always be Some(), but there is the edgecase of being the first player on a server to get a fortress, which I can not even test for, so I just assume this could be none then.
attack_free_reroll: Option<DateTime<Local>>
The time at which switching is free again
opponent_reroll_price: u64
The price in silver rerolling costs
quarry_next_level_production: u64
The amount of stone the quarry produces on the next level per hour
woodcutter_next_level_production: u64
The amount of wood the woodcutter produces on the next level per hour