pub struct Tavern {Show 13 fields
pub quests: [Quest; 3],
pub thirst_for_adventure_sec: u32,
pub mushroom_skip_allowed: bool,
pub beer_drunk: u8,
pub quicksand_glasses: u32,
pub current_action: CurrentAction,
pub guard_wage: u64,
pub toilet: Option<Toilet>,
pub dice_game: DiceGame,
pub expeditions: ExpeditionsEvent,
pub questing_preference: ExpeditionSetting,
pub gamble_result: Option<GambleResult>,
pub beer_max: u8,
}Expand description
Anything related to things you can do in the tavern
Fields§
§quests: [Quest; 3]All the available quests
thirst_for_adventure_sec: u32How many seconds the character still has left to do adventures
mushroom_skip_allowed: boolWhether or not skipping with mushrooms is allowed
beer_drunk: u8The amount of beers we already drank today
quicksand_glasses: u32The amount of quicksand glasses we have and can use to skip quests
current_action: CurrentActionThe thing the player is currently doing (either questing or working)
guard_wage: u64The amount of silver earned per hour working the guard jobs
toilet: Option<Toilet>The toilet, if it has been unlocked
dice_game: DiceGameThe dice game you can play with the weird guy in the tavern
expeditions: ExpeditionsEventInformation about everything related to expeditions
questing_preference: ExpeditionSettingDecides if you can on on expeditions, or quests, when this event is currently ongoing
gamble_result: Option<GambleResult>The result of playing the shell game
beer_max: u8Total amount of beers you can drink today
Implementations§
Source§impl Tavern
impl Tavern
Sourcepub fn is_idle(&self) -> bool
pub fn is_idle(&self) -> bool
Checks if the player is currently doing anything. Note that this may
change between calls, as expeditions finish without sending any collect
commands. In most cases you should match on the current_action
yourself and collect/wait, if necessary, but if you want a quick sanity
check somewhere, to make sure you are idle, this is the function for you
Sourcepub fn available_tasks(&self) -> AvailableTasks<'_>
pub fn available_tasks(&self) -> AvailableTasks<'_>
Gives you the same tasks, that the person in the tavern would present
you with. When expeditions are available and they are not disabled by
the questing_preference, they will be shown. Otherwise you will get
quests
Sourcepub fn can_change_questing_preference(&self) -> bool
pub fn can_change_questing_preference(&self) -> bool
The expedition/questing setting can only be changed, before any alu/thirst for adventure is used that day