Skip to content

Commit

Permalink
limit amount of cut damage glass applies on you
Browse files Browse the repository at this point in the history
  • Loading branch information
GuardianDll authored Apr 7, 2024
1 parent 9fc88ad commit 8d11a09
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/melee.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2413,7 +2413,7 @@ std::string Character::melee_special_effects( Creature &t, damage_instance &d, i
weap.spill_contents( pos() );
// Take damage
damage_instance di = damage_instance();
di.add_damage( damage_cut, rng( 0, vol * 2 ) );
di.add_damage( damage_cut, std::clamp( rng( 0, vol * 2 ), 0, 7 ) );
deal_damage( nullptr, bodypart_id( "arm_r" ), di );
if( weap.is_two_handed( *this ) ) { // Hurt left arm too, if it was big
//redeclare shatter_dam because deal_damage mutates it
Expand Down

0 comments on commit 8d11a09

Please sign in to comment.