Committing some maze fixes and trying to reproduce a weird DD bug.

This commit is contained in:
Zuhayr
2015-01-14 14:13:29 +10:30
parent cd494cdef1
commit 5c37b9e58c
7 changed files with 225 additions and 36 deletions
+3 -4
View File
@@ -6,16 +6,15 @@
var/global/list/random_maps = list()
/datum/random_map
var/descriptor = "asteroid" // Display name.
var/descriptor = "asteroid" // Display name.
var/real_size = 246 // Size of each edge (must be square :().
var/size = 2 // In basic implementation this will only be used for 3x3 blocks.
var/cell_range = 2 // Random range for initial cells.
var/iterations = 5 // Number of times to apply the automata rule.
var/max_attempts = 5 // Fail if a sane map isn't generated by this point.
var/raw_map_size // Used for creating new maps each iteration. Value must be real_size^2
var/list/map = list() // Actual map.
var/origin_x = 0 // Origin point, left.
var/origin_y = 0 // Origin point, bottom.
var/origin_x = 1 // Origin point, left.
var/origin_y = 1 // Origin point, bottom.
var/origin_z = 1 // Target Z-level.
var/limit_x = 256 // Maximum x bound.
var/limit_y = 256 // Maximum y bound.