mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-08-25 13:09:11 +01:00
removes var/ inside all procs (#19450)
* removes var/ inside all procs * . * ugh
This commit is contained in:
@@ -24,7 +24,7 @@
|
||||
var/placement_explosion_light = 6
|
||||
var/placement_explosion_flash = 4
|
||||
|
||||
/datum/random_map/droppod/New(var/seed, var/tx, var/ty, var/tz, var/tlx, var/tly, var/do_not_apply, var/do_not_announce, var/supplied_drop, var/list/supplied_drops, var/automated)
|
||||
/datum/random_map/droppod/New(seed, tx, ty, tz, tlx, tly, do_not_apply, do_not_announce, supplied_drop, list/supplied_drops, automated)
|
||||
|
||||
if(supplied_drop)
|
||||
drop_type = supplied_drop
|
||||
@@ -87,7 +87,7 @@
|
||||
sleep(15) // Let the explosion finish proccing before we ChangeTurf(), otherwise it might destroy our spawned objects.
|
||||
return ..()
|
||||
|
||||
/datum/random_map/droppod/get_appropriate_path(var/value)
|
||||
/datum/random_map/droppod/get_appropriate_path(value)
|
||||
if(value == SD_FLOOR_TILE || value == SD_SUPPLY_TILE)
|
||||
return floor_type
|
||||
else if(value == SD_WALL_TILE)
|
||||
@@ -97,7 +97,7 @@
|
||||
return null
|
||||
|
||||
// Pods are circular. Get the direction this object is facing from the center of the pod.
|
||||
/datum/random_map/droppod/get_spawn_dir(var/x, var/y)
|
||||
/datum/random_map/droppod/get_spawn_dir(x, y)
|
||||
var/x_midpoint = n_ceil(limit_x / 2)
|
||||
var/y_midpoint = n_ceil(limit_y / 2)
|
||||
if(x == x_midpoint && y == y_midpoint)
|
||||
@@ -108,7 +108,7 @@
|
||||
return null
|
||||
return get_dir(middle, target)
|
||||
|
||||
/datum/random_map/droppod/get_additional_spawns(var/value, var/turf/T, var/spawn_dir)
|
||||
/datum/random_map/droppod/get_additional_spawns(value, turf/T, spawn_dir)
|
||||
|
||||
// Splatter anything under us that survived the explosion.
|
||||
if(value != SD_EMPTY_TILE && T.contents.len)
|
||||
@@ -124,7 +124,7 @@
|
||||
else if(value == SD_SUPPLY_TILE)
|
||||
get_spawned_drop(T)
|
||||
|
||||
/datum/random_map/droppod/proc/get_spawned_drop(var/turf/T)
|
||||
/datum/random_map/droppod/proc/get_spawned_drop(turf/T)
|
||||
var/obj/structure/bed/chair/C = new(T)
|
||||
C.set_light(3, l_color = "#CC0000")
|
||||
var/mob/living/drop
|
||||
|
||||
@@ -10,20 +10,20 @@
|
||||
var/deploying
|
||||
var/deployed
|
||||
|
||||
/obj/structure/droppod_door/Initialize(mapload, var/autoopen)
|
||||
/obj/structure/droppod_door/Initialize(mapload, autoopen)
|
||||
. = ..()
|
||||
if(autoopen)
|
||||
addtimer(CALLBACK(src, PROC_REF(deploy)), 10 SECONDS)
|
||||
|
||||
/obj/structure/droppod_door/attack_ai(var/mob/user)
|
||||
/obj/structure/droppod_door/attack_ai(mob/user)
|
||||
if(!user.Adjacent(src))
|
||||
return
|
||||
attack_hand(user)
|
||||
|
||||
/obj/structure/droppod_door/attack_generic(var/mob/user)
|
||||
/obj/structure/droppod_door/attack_generic(mob/user)
|
||||
attack_hand(user)
|
||||
|
||||
/obj/structure/droppod_door/attack_hand(var/mob/user)
|
||||
/obj/structure/droppod_door/attack_hand(mob/user)
|
||||
if(deploying) return
|
||||
deploying = TRUE
|
||||
to_chat(user, span_danger("You prime the explosive bolts. Better get clear!"))
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
// UNLIKE THE DROP POD, this map deals ENTIRELY with strings and types.
|
||||
// Drop type is a string representing a mode rather than an atom or path.
|
||||
// supplied_drop_types is a list of types to spawn in the pod.
|
||||
/datum/random_map/droppod/supply/get_spawned_drop(var/turf/T)
|
||||
/datum/random_map/droppod/supply/get_spawned_drop(turf/T)
|
||||
|
||||
if(!drop_type) drop_type = pick(GLOB.supply_drop)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user