mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-10 18:22:39 +00:00
Merge remote-tracking branch 'upstream/master'
This commit is contained in:
@@ -217,7 +217,7 @@ datum
|
|||||||
base.processing = 0 //singletons at startup are technically unconnected anyway
|
base.processing = 0 //singletons at startup are technically unconnected anyway
|
||||||
base.parent = null
|
base.parent = null
|
||||||
|
|
||||||
if(base.air.check_tile_graphic())
|
if(base.air && base.air.check_tile_graphic())
|
||||||
base.update_visuals(base.air)
|
base.update_visuals(base.air)
|
||||||
|
|
||||||
return null
|
return null
|
||||||
|
|||||||
@@ -214,11 +214,11 @@
|
|||||||
camera_sort(L)
|
camera_sort(L)
|
||||||
|
|
||||||
var/list/D = list()
|
var/list/D = list()
|
||||||
D["Cancel"] = "Cancel"
|
|
||||||
for (var/obj/machinery/camera/C in L)
|
for (var/obj/machinery/camera/C in L)
|
||||||
if ( C.network in src.networks )
|
if ( C.network in src.networks )
|
||||||
D[text("[]: [][]", C.network, C.c_tag, (C.status ? null : " (Deactivated)"))] = C
|
D[text("[]: [][]", C.network, C.c_tag, (C.status ? null : " (Deactivated)"))] = C
|
||||||
D = camera_network_sort(D)
|
D = camera_network_sort(D)
|
||||||
|
D["Cancel"] = "Cancel"
|
||||||
|
|
||||||
var/t = input(user, "Which camera should you change to?") as null|anything in D
|
var/t = input(user, "Which camera should you change to?") as null|anything in D
|
||||||
|
|
||||||
|
|||||||
@@ -444,7 +444,7 @@
|
|||||||
break
|
break
|
||||||
if(!selected) //Search for a ghost if dead body with client isn't found.
|
if(!selected) //Search for a ghost if dead body with client isn't found.
|
||||||
for(var/mob/dead/observer/ghost in world)
|
for(var/mob/dead/observer/ghost in world)
|
||||||
if (ghost.corpse.mind.key == find_key)
|
if (ghost.corpse && ghost.corpse.mind.key == find_key)
|
||||||
selected = ghost
|
selected = ghost
|
||||||
break
|
break
|
||||||
return selected
|
return selected
|
||||||
|
|||||||
@@ -537,7 +537,7 @@ Airlock index -> wire color are { 9, 4, 6, 7, 5, 8, 1, 2, 3 }.
|
|||||||
if (!src.canSynControl() && src.canSynHack(C))
|
if (!src.canSynControl() && src.canSynHack(C))
|
||||||
src.synhack(user, C)
|
src.synhack(user, C)
|
||||||
return
|
return
|
||||||
if(!src.canSynHack(C))
|
if(!src.canSynHack(C) && !synDoorHacked)
|
||||||
user << "The power is cut or something, I can't hack it!"
|
user << "The power is cut or something, I can't hack it!"
|
||||||
return
|
return
|
||||||
if(istype(C, /obj/item/device/hacktool/engineer))
|
if(istype(C, /obj/item/device/hacktool/engineer))
|
||||||
|
|||||||
@@ -116,7 +116,7 @@ MASS SPECTROMETER
|
|||||||
src.amount--
|
src.amount--
|
||||||
var/obj/item/weapon/f_card/F = new /obj/item/weapon/f_card( user.loc )
|
var/obj/item/weapon/f_card/F = new /obj/item/weapon/f_card( user.loc )
|
||||||
F.amount = 1
|
F.amount = 1
|
||||||
F.fingerprints = md5(M.dna.uni_identity)
|
F.fingerprints += md5(M.dna.uni_identity)
|
||||||
F.icon_state = "fingerprint1"
|
F.icon_state = "fingerprint1"
|
||||||
F.name = text("FPrintC- '[M.name]'")
|
F.name = text("FPrintC- '[M.name]'")
|
||||||
|
|
||||||
|
|||||||
@@ -132,7 +132,6 @@
|
|||||||
for(var/obj/structure/lattice/L in locate(src.x, src.y, src.z))
|
for(var/obj/structure/lattice/L in locate(src.x, src.y, src.z))
|
||||||
del(L)
|
del(L)
|
||||||
var/turf/simulated/floor/W = new /turf/simulated/floor( locate(src.x, src.y, src.z) )
|
var/turf/simulated/floor/W = new /turf/simulated/floor( locate(src.x, src.y, src.z) )
|
||||||
W.New()
|
|
||||||
|
|
||||||
W.dir = old_dir
|
W.dir = old_dir
|
||||||
if(prior_icon) W.icon_state = prior_icon
|
if(prior_icon) W.icon_state = prior_icon
|
||||||
@@ -152,7 +151,6 @@
|
|||||||
for(var/obj/structure/lattice/L in locate(src.x, src.y, src.z))
|
for(var/obj/structure/lattice/L in locate(src.x, src.y, src.z))
|
||||||
del(L)
|
del(L)
|
||||||
var/turf/simulated/floor/plating/W = new /turf/simulated/floor/plating( locate(src.x, src.y, src.z) )
|
var/turf/simulated/floor/plating/W = new /turf/simulated/floor/plating( locate(src.x, src.y, src.z) )
|
||||||
W.New()
|
|
||||||
|
|
||||||
W.dir = old_dir
|
W.dir = old_dir
|
||||||
if(prior_icon) W.icon_state = prior_icon
|
if(prior_icon) W.icon_state = prior_icon
|
||||||
@@ -168,7 +166,6 @@
|
|||||||
for(var/obj/structure/lattice/L in locate(src.x, src.y, src.z))
|
for(var/obj/structure/lattice/L in locate(src.x, src.y, src.z))
|
||||||
del(L)
|
del(L)
|
||||||
var/turf/simulated/floor/engine/E = new /turf/simulated/floor/engine( locate(src.x, src.y, src.z) )
|
var/turf/simulated/floor/engine/E = new /turf/simulated/floor/engine( locate(src.x, src.y, src.z) )
|
||||||
E.New()
|
|
||||||
|
|
||||||
E.dir = old_dir
|
E.dir = old_dir
|
||||||
E.icon_state = "engine"
|
E.icon_state = "engine"
|
||||||
@@ -231,14 +228,12 @@
|
|||||||
/turf/proc/ReplaceWithSpace()
|
/turf/proc/ReplaceWithSpace()
|
||||||
var/old_dir = dir
|
var/old_dir = dir
|
||||||
var/turf/space/S = new /turf/space( locate(src.x, src.y, src.z) )
|
var/turf/space/S = new /turf/space( locate(src.x, src.y, src.z) )
|
||||||
S.New()
|
|
||||||
S.dir = old_dir
|
S.dir = old_dir
|
||||||
return S
|
return S
|
||||||
|
|
||||||
/turf/proc/ReplaceWithLattice()
|
/turf/proc/ReplaceWithLattice()
|
||||||
var/old_dir = dir
|
var/old_dir = dir
|
||||||
var/turf/space/S = new /turf/space( locate(src.x, src.y, src.z) )
|
var/turf/space/S = new /turf/space( locate(src.x, src.y, src.z) )
|
||||||
S.New()
|
|
||||||
S.dir = old_dir
|
S.dir = old_dir
|
||||||
new /obj/structure/lattice( locate(src.x, src.y, src.z) )
|
new /obj/structure/lattice( locate(src.x, src.y, src.z) )
|
||||||
return S
|
return S
|
||||||
@@ -246,7 +241,6 @@
|
|||||||
/turf/proc/ReplaceWithWall()
|
/turf/proc/ReplaceWithWall()
|
||||||
var/old_icon = icon_state
|
var/old_icon = icon_state
|
||||||
var/turf/simulated/wall/S = new /turf/simulated/wall( locate(src.x, src.y, src.z) )
|
var/turf/simulated/wall/S = new /turf/simulated/wall( locate(src.x, src.y, src.z) )
|
||||||
S.New()
|
|
||||||
S.icon_old = old_icon
|
S.icon_old = old_icon
|
||||||
S.opacity = 0
|
S.opacity = 0
|
||||||
S.sd_NewOpacity(1)
|
S.sd_NewOpacity(1)
|
||||||
@@ -256,7 +250,6 @@
|
|||||||
/turf/proc/ReplaceWithRWall()
|
/turf/proc/ReplaceWithRWall()
|
||||||
var/old_icon = icon_state
|
var/old_icon = icon_state
|
||||||
var/turf/simulated/wall/r_wall/S = new /turf/simulated/wall/r_wall( locate(src.x, src.y, src.z) )
|
var/turf/simulated/wall/r_wall/S = new /turf/simulated/wall/r_wall( locate(src.x, src.y, src.z) )
|
||||||
S.New()
|
|
||||||
S.icon_old = old_icon
|
S.icon_old = old_icon
|
||||||
S.opacity = 0
|
S.opacity = 0
|
||||||
S.sd_NewOpacity(1)
|
S.sd_NewOpacity(1)
|
||||||
|
|||||||
@@ -530,7 +530,7 @@ Traitors and the like can also be revived with the previous role mostly intact.
|
|||||||
src << "Only administrators may use this command."
|
src << "Only administrators may use this command."
|
||||||
return
|
return
|
||||||
var/input = input(usr, "Please enter anything you want. Anything. Serious.", "What?", "") as message|null
|
var/input = input(usr, "Please enter anything you want. Anything. Serious.", "What?", "") as message|null
|
||||||
var/customname = input(usr, "Pick a title for the report.", "Title") as message|null
|
var/customname = input(usr, "Pick a title for the report.", "Title") as text|null
|
||||||
if(!input)
|
if(!input)
|
||||||
return
|
return
|
||||||
if(!customname)
|
if(!customname)
|
||||||
|
|||||||
@@ -194,7 +194,6 @@
|
|||||||
shroom.pixel_y = 0
|
shroom.pixel_y = 0
|
||||||
|
|
||||||
W = new /turf/simulated/floor/plating/airless/asteroid( locate(src.x, src.y, src.z) )
|
W = new /turf/simulated/floor/plating/airless/asteroid( locate(src.x, src.y, src.z) )
|
||||||
W.New()
|
|
||||||
W.dir = old_dir
|
W.dir = old_dir
|
||||||
W.fullUpdateMineralOverlays()
|
W.fullUpdateMineralOverlays()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user