Skip to content

Commit

Permalink
Message, balance
Browse files Browse the repository at this point in the history
  • Loading branch information
Venera3 committed Dec 28, 2020
1 parent eb1a0c8 commit 7be91dc
Showing 1 changed file with 21 additions and 14 deletions.
35 changes: 21 additions & 14 deletions src/melee.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -646,26 +646,33 @@ void Character::melee_attack( Creature &t, bool allow_special, const matec_id &f
( cur_weapon && cur_weapon->is_null() && ( dealt_dam.type_damage( damage_type::CUT ) > 0 ||
dealt_dam.type_damage( damage_type::STAB ) > 0 ) ) ) {
if( has_trait( trait_POISONOUS ) ) {
add_msg_if_player( m_good, _( "You poison %s!" ), t.disp_name() );
if( x_in_y( 1, 5 ) ) {
t.add_effect( effect_stunned, 1_turns );
}
if( t.is_monster() ) {
t.add_effect( effect_venom_player1, 1_minutes );
} else {
t.add_effect( effect_venom_dmg, 10_minutes );
}
} else if( has_trait( trait_POISONOUS2 ) ) {
add_msg_if_player( m_good, _( "You inject your venom into %s!" ),
t.disp_name() );
if( x_in_y( 1, 5 ) ) {
t.add_effect( effect_downed, 1_turns );
}
if( t.is_monster() ) {
t.add_effect( effect_venom_player2, 1_minutes );
if( t.is_immune_effect( effect_venom_player1 ) ) {
add_msg_if_player( m_bad, _( "The %s is not affected by your venom" ), t.disp_name() );
} else {
t.add_effect( effect_venom_dmg, 15_minutes );
t.add_effect( effect_venom_weaken, 5_minutes );
add_msg_if_player( m_good, _( "You poison %s!" ), t.disp_name() );
if( x_in_y( 1, 10 ) ) {
t.add_effect( effect_stunned, 1_turns );
}
}
} else if( has_trait( trait_POISONOUS2 ) ) {
}
if( t.is_monster() ) {
t.add_effect( effect_venom_player2, 1_minutes );
} else {
t.add_effect( effect_venom_dmg, 15_minutes );
t.add_effect( effect_venom_weaken, 5_minutes );
}
if( t.is_immune_effect( effect_venom_player2 ) ) {
add_msg_if_player( m_bad, _( "The %s is not affected by your venom" ), t.disp_name() ) ;
} else {
add_msg_if_player( m_good, _( "You inject your venom into %s!" ), t.disp_name() );
if( x_in_y( 1, 4 ) ) {
t.add_effect( effect_stunned, 1_turns );
}
}
}
Expand Down

0 comments on commit 7be91dc

Please sign in to comment.