You can now drag-drop people into open DNA scanners (#31646)
This commit is contained in:
committed by
CitadelStationBot
parent
b9c07e7f66
commit
fdffebb3b8
@@ -90,11 +90,11 @@
|
|||||||
return C
|
return C
|
||||||
return null
|
return null
|
||||||
|
|
||||||
/obj/machinery/dna_scannernew/close_machine()
|
/obj/machinery/dna_scannernew/close_machine(mob/living/carbon/user)
|
||||||
if(!state_open)
|
if(!state_open)
|
||||||
return 0
|
return FALSE
|
||||||
|
|
||||||
..()
|
..(user)
|
||||||
|
|
||||||
// search for ghosts, if the corpse is empty and the scanner is connected to a cloner
|
// search for ghosts, if the corpse is empty and the scanner is connected to a cloner
|
||||||
var/mob/living/mob_occupant = get_mob_or_brainmob(occupant)
|
var/mob/living/mob_occupant = get_mob_or_brainmob(occupant)
|
||||||
@@ -113,11 +113,11 @@
|
|||||||
|
|
||||||
/obj/machinery/dna_scannernew/open_machine()
|
/obj/machinery/dna_scannernew/open_machine()
|
||||||
if(state_open)
|
if(state_open)
|
||||||
return 0
|
return FALSE
|
||||||
|
|
||||||
..()
|
..()
|
||||||
|
|
||||||
return 1
|
return TRUE
|
||||||
|
|
||||||
/obj/machinery/dna_scannernew/relaymove(mob/user as mob)
|
/obj/machinery/dna_scannernew/relaymove(mob/user as mob)
|
||||||
if(user.stat || locked)
|
if(user.stat || locked)
|
||||||
@@ -149,3 +149,8 @@
|
|||||||
return
|
return
|
||||||
|
|
||||||
toggle_open(user)
|
toggle_open(user)
|
||||||
|
|
||||||
|
/obj/machinery/dna_scannernew/MouseDrop_T(mob/target, mob/user)
|
||||||
|
if(user.stat || user.lying || !Adjacent(user) || !user.Adjacent(target) || !iscarbon(target) || !user.IsAdvancedToolUser())
|
||||||
|
return
|
||||||
|
close_machine(target)
|
||||||
|
|||||||
Reference in New Issue
Block a user