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

ru:: fixed some creatures to use hallucinated names

This commit is contained in:
Zeno Rogue
2025-12-23 18:10:16 +01:00
parent da166fdd3e
commit 8663523415

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 " + get_name() + " passes through you!");
if(m.reduce_hp(20)) addMessage("The " + hal()->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 " + get_name() + " bites you!");
if(m.reduce_hp(bite())) addMessage("The " + hal()->get_name() + " bites you!");
}
}
@@ -546,11 +546,11 @@ void naga_warrior::act() {
if(gmod(gframeid, 100) == 0) {
bbox b = get_pixel_bbox_at(xy{where.x + dir * dsiz().x, where.y});
if(intersect(b, m.get_pixel_bbox()) && gframeid > invinc_end) {
if(m.reduce_hp(chop())) addMessage("The " + get_name() + " chops you!");
if(m.reduce_hp(chop())) addMessage("The " + hal()->get_name() + " chops you!");
}
}
if(intersect(get_pixel_bbox(), m.get_pixel_bbox()) && gframeid > invinc_end) {
if(m.reduce_hp(bite())) addMessage("The " + get_name() + " bites you!");
if(m.reduce_hp(bite())) addMessage("The " + hal()->get_name() + " bites you!");
}
}