Skip to content

Commit

Permalink
Reduce the scaling damage dealt by the evolve kill strike special att…
Browse files Browse the repository at this point in the history
…ack (#37277)

* Teak the scaling damage dealt by evolve kill strike attack
  • Loading branch information
John-Candlebury authored and ZhilkinSerg committed Jan 24, 2020
1 parent 50ab9da commit b0e77ba
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/monattack.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4837,8 +4837,9 @@ bool mattack::evolve_kill_strike( monster *z )
const std::string target_name = target->disp_name();
damage_instance damage( z->type->melee_damage );
damage.mult_damage( 1.33f );
int damage_dealt = target->deal_damage( z, bp_torso, damage_instance( DT_STAB, rng( 10, 20 ),
rng( 5, 15 ) ) ).total_damage();
damage.add( damage_instance( DT_STAB, dice( z->type->melee_dice, z->type->melee_sides ), rng( 5,
15 ), 1.0, 0.5 ) );
int damage_dealt = target->deal_damage( z, bp_torso, damage ).total_damage();
if( damage_dealt > 0 ) {
auto msg_type = target == &g->u ? m_bad : m_warning;
target->add_msg_player_or_npc( msg_type,
Expand Down

0 comments on commit b0e77ba

Please sign in to comment.