wizard #poly and #levelgain

This adds the wizard #poly and #levelgain commands.
This commit is contained in:
arromdee
2002-01-17 02:47:23 +00:00
parent 2c26f0ceea
commit f93521e95d
10 changed files with 49 additions and 11 deletions

View File

@@ -210,7 +210,8 @@ dead: /* we come directly here if their experience level went to 0 or less */
}
void
polyself()
polyself(forcecontrol)
boolean forcecontrol;
{
char buf[BUFSZ];
int old_light, new_light;
@@ -222,7 +223,7 @@ polyself()
boolean iswere = (u.ulycn >= LOW_PM || is_were(youmonst.data));
boolean isvamp = (youmonst.data->mlet == S_VAMPIRE || u.umonnum == PM_VAMPIRE_BAT);
if(!Polymorph_control && !draconian && !iswere && !isvamp) {
if(!Polymorph_control && !forcecontrol && !draconian && !iswere && !isvamp) {
if (rn2(20) > ACURR(A_CON)) {
You(shudder_for_moment);
losehp(rnd(30), "system shock", KILLED_BY_AN);
@@ -232,7 +233,7 @@ polyself()
}
old_light = Upolyd ? emits_light(youmonst.data) : 0;
if (Polymorph_control) {
if (Polymorph_control || forcecontrol) {
do {
getlin("Become what kind of monster? [type the name]",
buf);