about summary refs log tree commit diff stats
path: root/src/ap_state.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/ap_state.cpp')
-rw-r--r--src/ap_state.cpp8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/ap_state.cpp b/src/ap_state.cpp index 8ba6633..c1147f6 100644 --- a/src/ap_state.cpp +++ b/src/ap_state.cpp
@@ -261,8 +261,6 @@ struct APState {
261 checked_paintings.count(painting_mapping.at(painting_id))); 261 checked_paintings.count(painting_mapping.at(painting_id)));
262 } 262 }
263 263
264 std::string GetItemName(int id) { return apclient->get_item_name(id, "Lingo"); }
265
266 void RevealPaintings() { 264 void RevealPaintings() {
267 std::lock_guard state_guard(state_mutex); 265 std::lock_guard state_guard(state_mutex);
268 266
@@ -432,7 +430,7 @@ struct APState {
432 } 430 }
433 431
434 for (const auto& [item_id, item_index] : index_by_item) { 432 for (const auto& [item_id, item_index] : index_by_item) {
435 item_states.push_back(ItemState{.name = GetItemName(item_id), 433 item_states.push_back(ItemState{.name = GD_GetItemName(item_id),
436 .amount = inventory[item_id], 434 .amount = inventory[item_id],
437 .index = item_index}); 435 .index = item_index});
438 } 436 }
@@ -743,10 +741,6 @@ bool AP_HasItemSafe(int item_id, int quantity) {
743 return GetState().HasItemSafe(item_id, quantity); 741 return GetState().HasItemSafe(item_id, quantity);
744} 742}
745 743
746std::string AP_GetItemName(int item_id) {
747 return GetState().GetItemName(item_id);
748}
749
750DoorShuffleMode AP_GetDoorShuffleMode() { 744DoorShuffleMode AP_GetDoorShuffleMode() {
751 std::lock_guard state_guard(GetState().state_mutex); 745 std::lock_guard state_guard(GetState().state_mutex);
752 746