Skip to content

Commit

Permalink
Use actual kangaroo tile instead of uv for roo logic
Browse files Browse the repository at this point in the history
  • Loading branch information
Dregu committed Sep 3, 2024
1 parent 5f337c4 commit 0f35eb9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions ui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -862,7 +862,7 @@ void UI::DrawPlayer() {
}
}
if (warp_room.x == 0) {
auto tile = GetNthTile(830, Max::get().kangaroo()->next_encounter);
auto tile = GetNthTile(86, Max::get().kangaroo()->next_encounter);
if (tile.has_value()) {
warp_room = tile.value().room;
warp_pos = {8, 104};
Expand Down Expand Up @@ -1058,7 +1058,7 @@ void UI::DrawPlayer() {
}
}
{
auto tile = GetNthTile(830, Max::get().kangaroo()->next_encounter);
auto tile = GetNthTile(86, Max::get().kangaroo()->next_encounter);
if (tile.has_value()) {
ImGui::LabelText("Next room##NextKangarooEncounter", "%d,%d",
tile.value().room.x, tile.value().room.y);
Expand Down Expand Up @@ -1597,12 +1597,12 @@ void UI::DrawMinimap() {
}

if (options["map_kangaroo"].value) {
auto tile = GetNthTile(830, Max::get().kangaroo()->next_encounter);
auto tile = GetNthTile(86, Max::get().kangaroo()->next_encounter);
if (tile.has_value()) {
auto px = tile.value().room.x * roomsize.x +
tile.value().pos.x / 40.f * roomsize.x - 4.0f;
auto py = tile.value().room.y * roomsize.y +
tile.value().pos.y / 22.f * roomsize.y - 8.0f;
tile.value().pos.y / 22.f * roomsize.y - 4.0f;
ImGui::GetWindowDrawList()->AddText(
ImVec2(a.x + d.x + px - c.x - bordersize.x,
a.y + d.y + py - c.y - bordersize.y),
Expand Down

0 comments on commit 0f35eb9

Please sign in to comment.