Code:
case '8': {
/* Put something nice in this square
* Object (80%) or Stairs (20%) */
if (randint0(100) < 80)
place_object(c, y, x, c->depth, false, false, ORIGIN_SPECIAL, 0);
else
place_random_stairs(c, y, x);
/* Some monsters to guard it */
vault_monsters(c, y, x, c->depth + 2, randint0(2) + 3);
[bc=blue] /* And some traps too */
vault_traps(c, y, x, 4, 4, randint0(3) + 2);[/bc]
break;
Code:
[bc=blue] /* Trap */ case '^': place_trap(c, y, x, -1, c->depth); break;[/bc]
But sadly my GitHub login is long since lost to the mists of time.)

Leave a comment: