NetHack Community Patches (or Variation) Included
-------------------------------------------------
+hallucinatory trap names from github pull request #174
Code Cleanup and Reorganization
You("aren't very skilled at reaching from %s.", mon_nam(u.usteed));
Sprintf(buf, "Continue your attempt to set %s?",
the(trapname(ttyp, FALSE)));
- .explanation));
if (yn(buf) == 'y') {
if (chance) {
switch (ttyp) {
behaviour might need a rework in the hallucination case
(e.g. to not prompt if any trap glyph appears on the square). */
if (Hallucination ||
- levl[trap->tx][trap->ty].glyph !=
- trap_to_glyph(trap, rn2_on_display_rng)) {
+ levl[trap->tx][trap->ty].glyph != trap_to_glyph(trap)) {
/* There's too much clutter to see your find otherwise */
cls();
map_trap(trap, 1);
|| glyph_is_invisible(glyph))
&& keep_traps && !covers_traps(x, y)) {
if ((t = t_at(x, y)) != 0 && t->tseen)
- glyph = trap_to_glyph(t, rn2_on_display_rng);
+ glyph = trap_to_glyph(t);
}
if ((glyph_is_object(glyph) && !keep_objs)
|| (glyph_is_trap(glyph) && !keep_traps)
register int show;
{
register int x = trap->tx, y = trap->ty;
- register int glyph = trap_to_glyph(trap, newsym_rn2);
+ register int glyph = trap_to_glyph(trap);
if (g.level.flags.hero_memory)
levl[x][y].glyph = glyph;