mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-09-06 12:27:57 +00:00
ru:: fixed kill boar message
This commit is contained in:
@@ -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;
|
||||||
|
Reference in New Issue
Block a user