From 5aada2c7df2108714b3fefd29aefff0df3ce48c4 Mon Sep 17 00:00:00 2001 From: Nat Quayle Nelson Date: Mon, 4 Aug 2025 15:42:44 -0500 Subject: [PATCH] frame friendlies/monsters during combat --- src/game/boe.graphutil.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/game/boe.graphutil.cpp b/src/game/boe.graphutil.cpp index 1b432dc9..dc5b2b74 100644 --- a/src/game/boe.graphutil.cpp +++ b/src/game/boe.graphutil.cpp @@ -199,6 +199,16 @@ void draw_monsters() { sf::Texture& monst_gworld = *ResMgr::graphics.get("monst" + std::to_string(1 + which_sheet)); Draw_Some_Item(monst_gworld, source_rect, terrain_screen_gworld(), store_loc, 1, 0); } + + if(is_combat()){ + // Frame the monster + rectangle target_rect; + target_rect.left = 13 + 28 * where_draw.x; + target_rect.right = target_rect.left + 28; + target_rect.top = 13 + 36 * where_draw.y; + target_rect.bottom = target_rect.top + 36; + frame_rect(terrain_screen_gworld(), target_rect, monst.is_friendly() ? sf::Color(0, 0, 255, 127) : sf::Color(255, 0, 0, 127)); + } } } }