Make kicking activate statue trap

Change via dNetHack
This commit is contained in:
Pasi Kallinen
2016-10-08 12:47:27 +03:00
parent e8e7d969c3
commit dbe1da0bec

View File

@@ -497,15 +497,20 @@ xchar x, y;
|| kickedobj == uchain)
return 0;
if ((trap = t_at(x, y)) != 0
&& (((trap->ttyp == PIT || trap->ttyp == SPIKED_PIT) && !Passes_walls)
|| trap->ttyp == WEB)) {
if (!trap->tseen)
find_trap(trap);
You_cant("kick %s that's in a %s!", something,
Hallucination ? "tizzy" : (trap->ttyp == WEB) ? "web"
: "pit");
return 1;
if ((trap = t_at(x, y)) != 0) {
if (((trap->ttyp == PIT || trap->ttyp == SPIKED_PIT) && !Passes_walls)
|| trap->ttyp == WEB) {
if (!trap->tseen)
find_trap(trap);
You_cant("kick %s that's in a %s!", something,
Hallucination ? "tizzy" :
(trap->ttyp == WEB) ? "web" : "pit");
return 1;
}
if (trap->ttyp == STATUE_TRAP) {
activate_statue_trap(trap, x,y, FALSE);
return 1;
}
}
if (Fumbling && !rn2(3)) {