View Single Post
Old October 20, 2014, 13:35   #5
Nick
Vanilla maintainer
 
Nick's Avatar
 
Join Date: Apr 2007
Location: Canberra, Australia
Age: 53
Posts: 7,141
Donated: $60
Nick is on a distinguished road
Quote:
Originally Posted by Ingwe Ingweron View Post
When a vault is created, isn't the same item generation happening, with good and great flags set to the depth, but with the depth modified at certain locations within the vault? How is make_object() choosing the depth?
What happens is that when the vault code encounters an '8', it calls make_object with the depth set to the current dungeon depth + 20; but this is only for that call, it's not generally set. Moreover, the fact that that was an '8' square is not remembered anywhere after the '8'-ness of it has been used to determine the level of monster and object generated there. The only remaining difference between that square and any other on the level after generation is that vault squares can't be teleported onto.

After the restructure who knows, anything might happen
__________________
One for the Dark Lord on his dark throne
In the Land of Mordor where the Shadows lie.
Nick is offline   Reply With Quote