trunk only: preserving context (src files)

Pat Rankin wrote:
> collect them all into some new struct and
> save that separately rather than jamming more non-option stuff
> into struct flags.

This patch:
- collects all context/tracking related fields from flags
  into a new structure called "context."
It also adds the following to the new structure:
- stethoscope turn support
- victual support
- tin support
This commit is contained in:
nethack.allison
2003-09-21 11:52:54 +00:00
parent 74b834c774
commit 22ce5ed6f2
58 changed files with 571 additions and 567 deletions

View File

@@ -14,7 +14,7 @@ take_gold()
} else {
You("notice you have no gold!");
u.ugold = 0;
flags.botl = 1;
context.botl = 1;
}
#else
struct obj *otmp, *nobj;
@@ -30,7 +30,7 @@ take_gold()
You_feel("a strange sensation.");
} else {
You("notice you have no money!");
flags.botl = 1;
context.botl = 1;
}
#endif
}
@@ -187,7 +187,7 @@ dosit()
make_blinded(0L,TRUE);
make_sick(0L, (char *) 0, FALSE, SICK_ALL);
heal_legs();
flags.botl = 1;
context.botl = 1;
break;
case 5:
take_gold();