예제 #1
0
func isDungeonPos(x, y int) bool {
	// Always force 1 0 to be a dungeon.
	return x == 1 && y == 0 || terrain.GetCoordOption(x, y, ODDS_DUNGEON)
}
예제 #2
0
func isTownPos(x, y int) bool {
	// Always force spawn to be a town.
	return x == 0 && y == 0 || terrain.GetCoordOption(x, y, ODDS_TOWN)
}