Make STEED unconditional.

This commit is contained in:
Sean Hunt
2015-02-13 21:23:56 -05:00
committed by Pasi Kallinen
parent aba6ecb7b3
commit 9759f5bf6d
62 changed files with 98 additions and 641 deletions

View File

@@ -90,11 +90,9 @@ boolean talk;
}
if (xtime && !old) {
if (talk) {
#ifdef STEED
if (u.usteed)
You("wobble in the saddle.");
else
#endif
You("%s...", stagger(youmonst.data, "stagger"));
}
}
@@ -676,10 +674,8 @@ peffects(otmp)
else {
if (Levitation || Is_airlevel(&u.uz)||Is_waterlevel(&u.uz))
You("are motionlessly suspended.");
#ifdef STEED
else if (u.usteed)
You("are frozen in place!");
#endif
else
Your("%s are frozen to the %s!",
makeplural(body_part(FOOT)), surface(u.ux, u.uy));
@@ -814,11 +810,8 @@ peffects(otmp)
}
break;
case POT_SPEED:
if(Wounded_legs && !otmp->cursed
#ifdef STEED
&& !u.usteed /* heal_legs() would heal steeds legs */
#endif
) {
if(Wounded_legs && !otmp->cursed && !u.usteed) {
/* heal_legs() would heal steeds legs */
heal_legs();
unkn++;
break;
@@ -1143,10 +1136,8 @@ boolean your_fault;
register const char *botlnam = bottlename();
boolean isyou = (mon == &youmonst);
int distance;
#ifdef STEED
struct obj *saddle = (struct obj *)0;
boolean hit_saddle = FALSE;
#endif
if(isyou) {
distance = 0;
@@ -1154,7 +1145,6 @@ boolean your_fault;
botlnam, body_part(HEAD));
losehp(Maybe_Half_Phys(rnd(2)), "thrown potion", KILLED_BY_AN);
} else {
#ifdef STEED
/* sometimes it hits the saddle */
if(((mon->misc_worn_check & W_SADDLE) &&
(saddle = which_armor(mon, W_SADDLE))) &&
@@ -1163,21 +1153,17 @@ boolean your_fault;
((rnl(10) > 7 && obj->cursed) ||
(rnl(10) < 4 && obj->blessed) || !rn2(3)))))
hit_saddle = TRUE;
#endif
distance = distu(mon->mx,mon->my);
if (!cansee(mon->mx,mon->my)) pline("Crash!");
else {
char *mnam = mon_nam(mon);
char buf[BUFSZ];
#ifdef STEED
if(hit_saddle && saddle) {
Sprintf(buf, "%s saddle", s_suffix(x_monnam(mon,
ARTICLE_THE, (char *)0,
(SUPPRESS_IT|SUPPRESS_SADDLE), FALSE)));
} else
#endif
if(has_head(mon->data)) {
} else if(has_head(mon->data)) {
Sprintf(buf, "%s %s",
s_suffix(mnam),
(notonhead ? "body" : "head"));
@@ -1187,20 +1173,12 @@ boolean your_fault;
pline_The("%s crashes on %s and breaks into shards.",
botlnam, buf);
}
if(rn2(5) && mon->mhp > 1
#ifdef STEED
&& !hit_saddle
#endif
)
if(rn2(5) && mon->mhp > 1 && !hit_saddle)
mon->mhp--;
}
/* oil doesn't instantly evaporate; Neither does a saddle hit */
if (obj->otyp != POT_OIL &&
#ifdef STEED
!hit_saddle &&
#endif
cansee(mon->mx,mon->my))
if (obj->otyp != POT_OIL && !hit_saddle && cansee(mon->mx,mon->my))
pline("%s.", Tobjnam(obj, "evaporate"));
if (isyou) {
@@ -1224,7 +1202,6 @@ boolean your_fault;
}
break;
}
#ifdef STEED
} else if (hit_saddle && saddle) {
char *mnam, buf[BUFSZ], saddle_glows[BUFSZ];
boolean affected = FALSE;
@@ -1245,7 +1222,6 @@ boolean your_fault;
}
if (useeit && !affected)
pline("%s %s wet.", buf, aobjnam(saddle, "get"));
#endif
} else {
boolean angermon = TRUE;
@@ -1777,11 +1753,9 @@ dodip()
if (yn(upstart(qtoo)) == 'y') {
if (Levitation) {
floating_above(pooltype);
#ifdef STEED
} else if (u.usteed && !is_swimmer(u.usteed->data) &&
P_SKILL(P_RIDING) < P_BASIC) {
rider_cant_reach(); /* not skilled enough to reach */
#endif
} else {
if (obj->otyp == POT_ACID) obj->in_use = 1;
(void) get_wet(obj);