1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2026-01-02 02:19:02 +00:00

fixed snake/ghost names

This commit is contained in:
Zeno Rogue
2025-12-22 14:21:37 +01:00
parent ebdf3d6795
commit 3e0405500b

View File

@@ -507,7 +507,7 @@ void ghost::act() {
apply_vel();
if(intersect(get_pixel_bbox(), m.get_pixel_bbox()) && gframeid > invinc_end) {
invinc_end = gframeid + 200;
if(m.reduce_hp(20)) addMessage("The ghost passes through you!");
if(m.reduce_hp(20)) addMessage("The " + get_name() + " passes through you!");
}
}
@@ -522,7 +522,7 @@ void snake::act() {
vel.x = zero_vel.x + dat.d * dat.modv * dir;
}
if(intersect(get_pixel_bbox(), m.get_pixel_bbox()) && gframeid > invinc_end) {
if(m.reduce_hp(bite())) addMessage("The snake bites you!");
if(m.reduce_hp(bite())) addMessage("The " + get_name() + " bites you!");
}
}