1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-05-10 19:24:06 +00:00

extended NPC talking area

This commit is contained in:
Zeno Rogue 2025-04-27 12:42:51 +02:00
parent 77759538ae
commit 5db430bdcf

View File

@ -195,7 +195,7 @@ void missile::act() {
void npc::act() {
kino();
if(gframeid > m.last_action + 300 && intersect(get_pixel_bbox(), m.get_pixel_bbox()) && talk_on != m.last_action) {
if(gframeid > m.last_action + 300 && intersect(extend_all(get_pixel_bbox(), get_scale()*12), m.get_pixel_bbox()) && talk_on != m.last_action) {
talk_on = m.last_action = gframeid;
cmode = mode::talking;
pushScreen([&] { cmode = mode::playing; popScreen(); });