From 08ffb400114029569b4043b4f4c5a3f2af9b37b8 Mon Sep 17 00:00:00 2001 From: Star Rauchenberger Date: Wed, 3 May 2023 17:25:41 -0400 Subject: Added progressive items --- ap_state.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'ap_state.h') diff --git a/ap_state.h b/ap_state.h index ce7bafc..ce73528 100644 --- a/ap_state.h +++ b/ap_state.h @@ -26,7 +26,7 @@ class APState { bool HasColorItem(LingoColor color) const; - bool HasItem(const std::string& item) const; + bool HasItem(const std::string& item, int quantity = 1) const; DoorShuffleMode GetDoorShuffleMode() const { return door_shuffle_mode_; } @@ -53,12 +53,13 @@ class APState { bool connected_ = false; bool has_connection_result_ = false; - std::set inventory_; + std::map inventory_; std::set checked_locations_; std::map, int64_t> ap_id_by_location_id_; std::map ap_id_by_item_name_; std::map ap_id_by_color_; + std::map progressive_item_by_ap_id_; DoorShuffleMode door_shuffle_mode_ = kNO_DOORS; bool color_shuffle_ = false; -- cgit 1.4.1