mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-05-17 14:44:08 +00:00
ru:: fixed kill boar message
This commit is contained in:
parent
d6ff88b9a4
commit
60293264a6
@ -282,7 +282,7 @@ void boar::act() {
|
|||||||
void boar::attacked(int dmg) {
|
void boar::attacked(int dmg) {
|
||||||
current_target = this;
|
current_target = this;
|
||||||
reduce_hp(dmg);
|
reduce_hp(dmg);
|
||||||
if(destroyed) addMessage("You kill the wild boar."); else addMessage("You hit the wild boar.");
|
if(!existing) addMessage("You kill the wild boar."); else addMessage("You hit the wild boar.");
|
||||||
auto dat = get_dat();
|
auto dat = get_dat();
|
||||||
int s = where.x < m.where.x ? -1 : 1;
|
int s = where.x < m.where.x ? -1 : 1;
|
||||||
if(on_floor) vel.x = dat.d * dat.modv * s * 2, vel.y = -dat.d * dat.modv * 2.5;
|
if(on_floor) vel.x = dat.d * dat.modv * s * 2, vel.y = -dat.d * dat.modv * 2.5;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user