Skip to content

Commit 877caac

Browse files
committed
Cleaned up some messaging and an inversion of penetrating strike
1 parent 0f2dda1 commit 877caac

1 file changed

Lines changed: 8 additions & 6 deletions

File tree

src/newfight.cpp

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -927,7 +927,8 @@ bool hit_with_multiweapon_toggle(struct char_data *attacker, struct char_data *v
927927
// If your enemy got more successes than you, guess what? You're the one who gets their face caved in.
928928
if (net_successes < 0) {
929929
if (att->melee->is_distance_strike) {
930-
// MitS 149: You cannot be counterstriked while using distance strike.
930+
// MitS 149: You cannot be counterstriked while using distance strike. Send a message and bail.
931+
combat_message(att->ch, def->ch, att->weapon, 0, 0, att->melee->modifiers[COMBAT_MOD_VISIBILITY]);
931932
return FALSE;
932933
}
933934
// This messaging gets a little annoying.
@@ -988,15 +989,15 @@ bool hit_with_multiweapon_toggle(struct char_data *attacker, struct char_data *v
988989
// Most of our melee combat fields were set during setup, so we're only here for the effects of armor.
989990
if (att->melee->penetrating_strike) {
990991
int penetrating_strike_delta = MIN(att->melee->penetrating_strike, def->standard_impact_rating);
991-
snprintf(ENDOF(rbuf), sizeof(rbuf) - strlen(rbuf), "-%d armor (penetrating strike), ", penetrating_strike_delta);
992-
att->melee->power = att->melee->power_before_armor - def->standard_impact_rating - penetrating_strike_delta;
992+
snprintf(ENDOF(rbuf), sizeof(rbuf) - strlen(rbuf), "Using penetrating strike (-%d armor).", penetrating_strike_delta);
993+
att->melee->power = att->melee->power_before_armor - (def->standard_impact_rating - penetrating_strike_delta);
993994
} else {
994995
strlcpy(rbuf, "Using unarmed / cyberweapon.", sizeof(rbuf));
995996
att->melee->power = att->melee->power_before_armor - def->standard_impact_rating;
996997
}
997998
}
998999

999-
snprintf(ENDOF(rbuf), sizeof(rbuf) - strlen(rbuf), " After armor: ^c%d%s^n.",
1000+
snprintf(ENDOF(rbuf), sizeof(rbuf) - strlen(rbuf), " After armor: ^c%d %s^n.",
10001001
att->melee->power,
10011002
GET_SHORT_WOUND_NAME(att->melee->damage_level));
10021003

@@ -1008,6 +1009,7 @@ bool hit_with_multiweapon_toggle(struct char_data *attacker, struct char_data *v
10081009
if (att->weapon) {
10091010
has_magic_weapon = GET_WEAPON_FOCUS_RATING(att->weapon) > 0 && (IS_NPNPC(att->ch) || is_weapon_focus_usable_by(att->weapon, att->ch));
10101011
} else {
1012+
// SR3 p170: Killing Hands explicitly beats Immunity to Normal Weapons.
10111013
has_magic_weapon = GET_POWER(att->ch, ADEPT_KILLING_HANDS);
10121014
}
10131015

@@ -1075,7 +1077,7 @@ bool hit_with_multiweapon_toggle(struct char_data *attacker, struct char_data *v
10751077
int bod_success = 0;
10761078
int bod_dice = def->body_pool;
10771079

1078-
// Unconscious? No pool dice for you. (houserule)
1080+
// Unconscious? No pool dice for you. (houserule to reduce the time people spend beating on unconscious/morted mobs)
10791081
if (def->is_paralyzed || def->is_insensate)
10801082
bod_dice = 0;
10811083

@@ -1211,7 +1213,7 @@ bool hit_with_multiweapon_toggle(struct char_data *attacker, struct char_data *v
12111213
}
12121214
//Handle suprise attack/alertness here -- defender didn't die.
12131215
if (IS_NPC(def->ch)) {
1214-
set_mob_alert(def->ch, 20);
1216+
set_mob_alert(def->ch, 30);
12151217
}
12161218
}
12171219
}

0 commit comments

Comments
 (0)