comparison rogue3/fight.c @ 304:e52a8a7ad4c5

Fix many compiler warnings. There should only be two changes in behavior: arogue7/fight.c, arogue7/fight.c: a to-hit bonus is now correctly applied to characters who are not monks instead of monks who are not empty-handed. urogue/fight.c: fixed an interaction with the "debug" macro that could cause the wrong message to be displayed.
author John "Elwin" Edwards
date Wed, 14 Apr 2021 18:55:33 -0400
parents e7aab31362af
children
comparison
equal deleted inserted replaced
303:e06ebc407615 304:e52a8a7ad4c5
156 when 'A': 156 when 'A':
157 /* 157 /*
158 * Ants have poisonous bites 158 * Ants have poisonous bites
159 */ 159 */
160 if (!save(VS_POISON)) 160 if (!save(VS_POISON))
161 {
161 if (!ISWEARING(R_SUSTSTR)) 162 if (!ISWEARING(R_SUSTSTR))
162 { 163 {
163 chg_str(-1); 164 chg_str(-1);
164 if (!terse) 165 if (!terse)
165 msg("You feel a sting in your arm and now feel weaker"); 166 msg("You feel a sting in your arm and now feel weaker");
166 else 167 else
167 msg("A sting has weakened you"); 168 msg("A sting has weakened you");
168 } 169 }
169 else 170 else
171 {
170 if (!terse) 172 if (!terse)
171 msg("A sting momentarily weakens you"); 173 msg("A sting momentarily weakens you");
172 else 174 else
173 msg("Sting has no effect"); 175 msg("Sting has no effect");
176 }
177 }
174 when 'W': 178 when 'W':
175 /* 179 /*
176 * Wraiths might drain energy levels 180 * Wraiths might drain energy levels
177 */ 181 */
178 if (rnd(100) < 15) 182 if (rnd(100) < 15)