More globals moved to instance_globals.

This commit is contained in:
Bart House
2018-12-19 21:26:35 -08:00
parent b7a0e69998
commit 576eece500
65 changed files with 498 additions and 505 deletions

View File

@@ -458,7 +458,7 @@ ghost_from_bottle()
if (flags.verbose)
You("are frightened to death, and unable to move.");
nomul(-3);
multi_reason = "being frightened to death";
g.multi_reason = "being frightened to death";
nomovemsg = "You regain your composure.";
}
@@ -685,7 +685,7 @@ register struct obj *otmp;
exercise(A_WIS, FALSE);
if (otmp->cursed) {
You("pass out.");
multi = -rnd(15);
g.multi = -rnd(15);
nomovemsg = "You awake with a headache.";
}
break;
@@ -779,7 +779,7 @@ register struct obj *otmp;
Your("%s are frozen to the %s!", makeplural(body_part(FOOT)),
surface(u.ux, u.uy));
nomul(-(rn1(10, 25 - 12 * bcsign(otmp))));
multi_reason = "frozen by a potion";
g.multi_reason = "frozen by a potion";
nomovemsg = You_can_move_again;
exercise(A_DEX, FALSE);
}
@@ -1682,7 +1682,7 @@ register struct obj *obj;
if (!Free_action) {
pline("%s seems to be holding you.", Something);
nomul(-rnd(5));
multi_reason = "frozen by a potion";
g.multi_reason = "frozen by a potion";
nomovemsg = You_can_move_again;
exercise(A_DEX, FALSE);
} else
@@ -1693,7 +1693,7 @@ register struct obj *obj;
if (!Free_action && !Sleep_resistance) {
You_feel("rather tired.");
nomul(-rnd(5));
multi_reason = "sleeping off a magical draught";
g.multi_reason = "sleeping off a magical draught";
nomovemsg = You_can_move_again;
exercise(A_DEX, FALSE);
} else