Skip to content

Commit

Permalink
[MIRROR] New icons and bugfixes for body scanner and cryopod
Browse files Browse the repository at this point in the history
  • Loading branch information
cuddleandtea authored and SuhEugene committed Oct 3, 2023
1 parent 2f89ec7 commit 27830b4
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 15 deletions.
12 changes: 6 additions & 6 deletions code/game/machinery/body_scanner.dm
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
// Pretty much everything here is stolen from the dna scanner FYI
/obj/machinery/bodyscanner
var/mob/living/carbon/human/occupant
var/locked
name = "body scanner"
desc = "A large full-body scanning machine that provides a complete physical assessment of a patient placed inside. Operated using an adjacent console."
icon = 'icons/obj/machines/medical/bodyscanner.dmi'
icon_state = "body_scanner_0"
icon_state = "body_scanner"
density = TRUE
anchored = TRUE
idle_power_usage = 60
Expand Down Expand Up @@ -73,7 +72,7 @@
O.dropInto(loc)

/obj/machinery/bodyscanner/proc/go_out()
if ((!( occupant ) || locked))
if(!occupant)
return
drop_contents()
if (occupant.client)
Expand All @@ -89,6 +88,7 @@
. = ..()
if(istype(new_state))
updateUsrDialog()
go_out()

/obj/machinery/bodyscanner/proc/move_target_inside(mob/target, mob/user)
target.forceMove(src)
Expand All @@ -108,11 +108,11 @@
if(panel_open)
AddOverlays("[icon_state]_panel")
if(!occupant)
icon_state = "body_scanner_0"
icon_state = "body_scanner"
else if(inoperable())
icon_state = "body_scanner_1"
icon_state = "body_scanner_open"
else
icon_state = "body_scanner_2"
icon_state = "body_scanner_working"

/obj/machinery/bodyscanner/user_can_move_target_inside(mob/target, mob/user)
if (occupant)
Expand Down
18 changes: 9 additions & 9 deletions code/game/machinery/cryopod.dm
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
/obj/machinery/computer/cryopod
name = "cryogenic oversight console"
desc = "An interface between crew and the cryogenic storage oversight systems."
icon = 'icons/obj/machines/medical/bodyscanner.dmi'
icon = 'icons/obj/machines/medical/cryopod.dmi'
icon_state = "cellconsole"
density = FALSE
interact_offline = 1
Expand Down Expand Up @@ -138,14 +138,14 @@
/obj/machinery/cryopod
name = "cryogenic freezer"
desc = "A man-sized pod for entering suspended animation."
icon = 'icons/obj/machines/medical/bodyscanner.dmi'
icon_state = "body_scanner_0"
icon = 'icons/obj/machines/medical/cryopod.dmi'
icon_state = "cryopod"
density = TRUE
anchored = TRUE
dir = WEST

var/base_icon_state = "body_scanner_0"
var/occupied_icon_state = "body_scanner_1"
var/base_icon_state = "cryopod"
var/occupied_icon_state = "cryopod_closed"
var/on_store_message = "has entered long-term storage."
var/on_store_visible_message = "hums and hisses as it moves $occupant$ into storage." // $occupant$ is automatically converted to the occupant's name
var/on_store_name = "Cryogenic Oversight"
Expand Down Expand Up @@ -199,9 +199,9 @@
desc = "A man-sized pod for entering suspended animation. Dubbed 'cryocoffin' by more cynical spacers, it is pretty barebone, counting on stasis system to keep the victim alive rather than packing extended supply of food or air. Can be ordered with symbols of common religious denominations to be used in space funerals too."
on_store_name = "Life Pod Oversight"
time_till_despawn = 20 MINUTES
icon_state = "lifepod_0"
base_icon_state = "lifepod_0"
occupied_icon_state = "lifepod_1"
icon_state = "redpod0"
base_icon_state = "redpod0"
occupied_icon_state = "redpod1"
var/launched = 0
var/datum/gas_mixture/airtank

Expand Down Expand Up @@ -575,7 +575,7 @@
/obj/structure/broken_cryo
name = "broken cryo sleeper"
desc = "Whoever was inside isn't going to wake up now. It looks like you could pry it open with a crowbar."
icon = 'icons/obj/machines/medical/bodyscanner.dmi'
icon = 'icons/obj/machines/medical/cryopod.dmi'
icon_state = "broken_cryo"
anchored = TRUE
density = TRUE
Expand Down
Binary file modified icons/obj/machines/medical/bodyscanner.dmi
Binary file not shown.
Binary file added icons/obj/machines/medical/cryopod.dmi
Binary file not shown.

0 comments on commit 27830b4

Please sign in to comment.