Skip to content

Commit

Permalink
Triple falling force (CleverRaven#35468)
Browse files Browse the repository at this point in the history
  • Loading branch information
Night-Pryanik authored and AMurkin committed Nov 13, 2019
1 parent 5c457cc commit fe08f7b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/trapfunc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1198,7 +1198,8 @@ bool trapfunc::ledge( const tripoint &p, Creature *c, item * )
}

if( pl->is_player() ) {
add_msg( m_warning, _( "You fall down a level!" ) );
add_msg( m_bad, ngettext( "You fall down %d story!", "You fall down %d stories!", height ),
height );
g->vertical_move( -height, true );
} else {
pl->setpos( where );
Expand All @@ -1211,7 +1212,7 @@ bool trapfunc::ledge( const tripoint &p, Creature *c, item * )
pl->add_msg_if_player( m_info,
_( "You hit the ground hard, but your shock absorbers handle the impact admirably!" ) );
} else {
pl->impact( height * 10, where );
pl->impact( height * 30, where );
}
return true;
}
Expand Down

0 comments on commit fe08f7b

Please sign in to comment.