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:
@@ -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!");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user