buried punishment ball

Prevent burying a ball from ending your punishment.

When you bury the ball, internally NetHack Punishment
ceases, but a new trap type of TT_BURIEDBALL  immediately
kicks in (acting similar to TT_INFLOOR in some ways).
You can eventually work the ball free (or teleport, etc.),
but that will just return you back to normal Punishment.
This commit is contained in:
nethack.allison
2003-03-11 03:40:17 +00:00
parent 9fe995d2a3
commit 176d31c980
14 changed files with 198 additions and 29 deletions
+6 -2
View File
@@ -1243,13 +1243,17 @@ boolean noisy;
"rear hooves" which sounds odd */
err++;
} else if (u.utrap && (u.utraptype == TT_BEARTRAP ||
u.utraptype == TT_INFLOOR)) {
u.utraptype == TT_INFLOOR ||
u.utraptype == TT_BURIEDBALL)) {
if (u.utraptype == TT_BEARTRAP) {
if (noisy) Your("%s is trapped!", body_part(FOOT));
} else {
} else if (u.utraptype == TT_INFLOOR) {
if (noisy) Your("%s are stuck in the %s!",
makeplural(body_part(FOOT)),
surface(u.ux, u.uy));
} else { /*TT_BURIEDBALL*/
if (noisy) Your("%s is attached to the buried ball!",
body_part(LEG));
}
err++;
} else