Quick sync (#2587)

* sync since the mirror was down

* fucking byond

* can't forget these
This commit is contained in:
LetterJay
2017-09-04 04:38:49 -05:00
committed by Poojawa
parent 241a10d88d
commit 92e055be97
20 changed files with 336 additions and 70 deletions
+25 -3
View File
@@ -16,6 +16,20 @@
var/power_efficiency = 1
var/obj/machinery/quantumpad/linked_pad
//mapping
var/static/list/mapped_quantum_pads = list()
var/map_pad_id = "" as text //what's my name
var/map_pad_link_id = "" as text //who's my friend
/obj/machinery/quantumpad/Initialize()
. = ..()
if(map_pad_id)
mapped_quantum_pads[map_pad_id] = src
/obj/machinery/quantumpad/Destroy()
mapped_quantum_pads -= map_pad_id
return ..()
/obj/machinery/quantumpad/RefreshParts()
var/E = 0
for(var/obj/item/stock_parts/capacitor/C in component_parts)
@@ -60,8 +74,9 @@
return
if(!linked_pad || QDELETED(linked_pad))
to_chat(user, "<span class='warning'>There is no linked pad!</span>")
return
if(!map_pad_link_id || !initMappedLink())
to_chat(user, "<span class='warning'>There is no linked pad!</span>")
return
if(world.time < last_teleport + teleport_cooldown)
to_chat(user, "<span class='warning'>[src] is recharging power. Please wait [round((last_teleport + teleport_cooldown - world.time) / 10)] seconds.</span>")
@@ -80,7 +95,6 @@
return
src.add_fingerprint(user)
doteleport(user)
return
/obj/machinery/quantumpad/proc/sparks()
var/datum/effect_system/spark_spread/s = new /datum/effect_system/spark_spread
@@ -88,6 +102,8 @@
s.start()
/obj/machinery/quantumpad/attack_ghost(mob/dead/observer/ghost)
if(!linked_pad && map_pad_link_id)
initMappedLink()
if(linked_pad)
ghost.forceMove(get_turf(linked_pad))
@@ -136,6 +152,12 @@
continue
do_teleport(ROI, get_turf(linked_pad))
/obj/machinery/quantumpad/proc/initMappedLink()
. = FALSE
var/obj/machinery/quantumpad/link = mapped_quantum_pads[map_pad_link_id]
if(link)
linked_pad = link
. = TRUE
/obj/item/paper/guides/quantumpad
name = "Quantum Pad For Dummies"
+2 -2
View File
@@ -117,10 +117,10 @@
/turf/open/floor/proc/make_plating()
return ChangeTurf(/turf/open/floor/plating)
/turf/open/floor/ChangeTurf(new_path)
/turf/open/floor/ChangeTurf(path, new_baseturf, defer_change = FALSE, ignore_air = FALSE, forceop = FALSE)
if(!isfloorturf(src))
return ..() //fucking turfs switch the fucking src of the fucking running procs
if(!ispath(new_path, /turf/open/floor))
if(!ispath(path, /turf/open/floor))
return ..()
var/old_icon = icon_regular_floor
var/old_dir = dir
@@ -43,7 +43,7 @@
icon_state = "light_off"
/turf/open/floor/light/ChangeTurf(turf/T)
/turf/open/floor/light/ChangeTurf(path, new_baseturf, defer_change = FALSE, ignore_air = FALSE, forceop = FALSE)
set_light(0)
return ..()
@@ -273,7 +273,7 @@
if(prob(50))
ChangeTurf(src.baseturf)
/turf/open/floor/vines/ChangeTurf(turf/open/floor/T)
/turf/open/floor/vines/ChangeTurf(path, new_baseturf, defer_change = FALSE, ignore_air = FALSE, forceop = FALSE)
. = ..()
//Do this *after* the turf has changed as qdel in spacevines will call changeturf again if it hasn't
for(var/obj/structure/spacevine/SV in src)
@@ -116,7 +116,7 @@
be_removed()
return ..()
/turf/open/floor/engine/cult/ChangeTurf(path, defer_change = FALSE)
/turf/open/floor/engine/cult/ChangeTurf(path, new_baseturf, defer_change = FALSE, ignore_air = FALSE, forceop = FALSE)
if(path != type)
be_removed()
return ..()