Lines Matching refs:LEVEL
6 * raiselevel() subroutine to raise the player one level
7 * loselevel() subroutine to lower the player by one level
40 subroutine to raise the player one level
41 uses the skill[] array to find level boundarys
42 uses c[EXPERIENCE] c[LEVEL]
47 if (c[LEVEL] < MAXPLEVEL)
48 raiseexperience((long) (skill[c[LEVEL]] - c[EXPERIENCE]));
54 subroutine to lower the players character level by one
59 if (c[LEVEL] > 1)
60 loseexperience((long) (c[EXPERIENCE] - skill[c[LEVEL] - 1] + 1));
72 i = c[LEVEL];
74 while (c[EXPERIENCE] >= skill[c[LEVEL]] && (c[LEVEL] < MAXPLEVEL)) {
76 c[LEVEL]++;
79 if (c[LEVEL] < 7 - c[HARDGAME])
82 if (c[LEVEL] != i) {
85 lprintf("\nWelcome to level %ld", (long) c[LEVEL]); /* if we changed levels */
99 i = c[LEVEL];
103 while (c[EXPERIENCE] < skill[c[LEVEL] - 1]) {
104 if (--c[LEVEL] <= 1)
105 c[LEVEL] = 1; /* down one level */
108 if (c[LEVEL] < 7 - c[HARDGAME])
112 if (i != c[LEVEL]) {
115 lprintf("\nYou went down to level %ld!", (long) c[LEVEL]);
200 for the given cave level
425 if ((limit = 15 + (c[LEVEL] >> 1)) > 26)
592 if ((limit = 15 + (c[LEVEL] >> 1)) > 26)