I have been trying to eliminate trap doors from my Angband version without success. Is there any proper method for doing so? I really like to completely finish all levels that I enter and in moments of stupidity I tend to allow mobs like Harowen to TD me to the next level.
Is there any effective method to get rid of annoying trap types in V?
Collapse
X
-
I have been trying to eliminate trap doors from my Angband version without success. Is there any proper method for doing so? I really like to completely finish all levels that I enter and in moments of stupidity I tend to allow mobs like Harowen to TD me to the next level.
Change to be like follows.
Code:void pick_trap(int y, int x) { int feat; static const int min_level[] = { 2, /* Trap door */ 2, /* Open pit */ 2, /* Spiked pit */ 2, /* Poison pit */ 3, /* Summoning rune */ 1, /* Teleport rune */ 2, /* Fire rune */ 2, /* Acid rune */ 2, /* Slow rune */ 6, /* Strength dart */ 6, /* Dexterity dart */ 6, /* Constitution dart */ 2, /* Gas blind */ 1, /* Gas confuse */ 2, /* Gas poison */ 2, /* Gas sleep */ }; /* Paranoia */ if (cave_feat[y][x] != FEAT_INVIS) return; /* Pick a trap */ while (1) { /* Hack -- pick a trap */ feat = FEAT_TRAP_HEAD + randint0(16); /* Check against minimum depth */ if (min_level[feat - FEAT_TRAP_HEAD] > p_ptr->depth) continue; [COLOR="Red"]/* Hack -- no trap doors */ if (feat == FEAT_TRAP_HEAD + 0x00) continue;[/COLOR] /* Done */ break; } /* Activate the trap */ cave_set_feat(y, x, feat); }
Currently turning (Angband) Japanese. -
Or you could just change the min_level for trap doors to something big, from eg. 2 to 200.Comment
-
Currently turning (Angband) Japanese.Comment
Comment