mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2026-08-25 22:28:44 +01:00
removes all var/ in procs (#12738)
This commit is contained in:
@@ -31,7 +31,7 @@
|
||||
// Test to see if rand_seed() can be used reliably.
|
||||
var/priority_process
|
||||
|
||||
/datum/random_map/New(var/seed, var/tx, var/ty, var/tz, var/tlx, var/tly, var/do_not_apply, var/do_not_announce, var/admin_map)
|
||||
/datum/random_map/New(seed, tx, ty, tz, tlx, tly, do_not_apply, do_not_announce, admin_map)
|
||||
if(!isnum(tz))
|
||||
var/old_tz = tz
|
||||
tz = GLOB.map_templates_loaded[tz]
|
||||
@@ -78,14 +78,14 @@
|
||||
else
|
||||
admin_notice(span_danger("[capitalize(name)] failed to generate ([round(0.1*(world.timeofday-start_time),0.1)] seconds): could not produce sane map."), R_DEBUG)
|
||||
|
||||
/datum/random_map/proc/get_map_cell(var/x,var/y)
|
||||
/datum/random_map/proc/get_map_cell(x,y)
|
||||
if(!map)
|
||||
set_map_size()
|
||||
. = ((y-1)*limit_x)+x
|
||||
if((. < 1) || (. > map.len))
|
||||
return null
|
||||
|
||||
/datum/random_map/proc/get_map_char(var/value)
|
||||
/datum/random_map/proc/get_map_char(value)
|
||||
switch(value)
|
||||
if(WALL_CHAR)
|
||||
return "#"
|
||||
@@ -153,7 +153,7 @@
|
||||
/datum/random_map/proc/check_map_sanity()
|
||||
return 1
|
||||
|
||||
/datum/random_map/proc/set_origins(var/tx, var/ty, var/tz)
|
||||
/datum/random_map/proc/set_origins(tx, ty, tz)
|
||||
origin_x = tx ? tx : 1
|
||||
origin_y = ty ? ty : 1
|
||||
origin_z = tz ? tz : 1
|
||||
@@ -168,7 +168,7 @@
|
||||
if(!priority_process) sleep(-1)
|
||||
apply_to_turf(x,y)
|
||||
|
||||
/datum/random_map/proc/apply_to_turf(var/x,var/y)
|
||||
/datum/random_map/proc/apply_to_turf(x,y)
|
||||
var/current_cell = get_map_cell(x,y)
|
||||
if(!current_cell)
|
||||
return 0
|
||||
@@ -184,21 +184,21 @@
|
||||
/datum/random_map/proc/get_spawn_dir()
|
||||
return 0
|
||||
|
||||
/datum/random_map/proc/get_appropriate_path(var/value)
|
||||
/datum/random_map/proc/get_appropriate_path(value)
|
||||
switch(value)
|
||||
if(FLOOR_CHAR)
|
||||
return floor_type
|
||||
if(WALL_CHAR)
|
||||
return wall_type
|
||||
|
||||
/datum/random_map/proc/get_additional_spawns(var/value, var/turf/T)
|
||||
/datum/random_map/proc/get_additional_spawns(value, turf/T)
|
||||
if(value == DOOR_CHAR)
|
||||
new /obj/machinery/door/airlock(T)
|
||||
|
||||
/datum/random_map/proc/cleanup()
|
||||
return
|
||||
|
||||
/datum/random_map/proc/overlay_with(var/datum/random_map/target_map, var/tx, var/ty)
|
||||
/datum/random_map/proc/overlay_with(datum/random_map/target_map, tx, ty)
|
||||
if(!map.len || !istype(target_map))
|
||||
return
|
||||
tx-- // Update origin so that x/y index
|
||||
@@ -216,5 +216,5 @@
|
||||
handle_post_overlay_on(target_map,tx,ty)
|
||||
|
||||
|
||||
/datum/random_map/proc/handle_post_overlay_on(var/datum/random_map/target_map, var/tx, var/ty)
|
||||
/datum/random_map/proc/handle_post_overlay_on(datum/random_map/target_map, tx, ty)
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user