mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-01-01 20:42:08 +00:00
* Batch 1 /obj/item/storage/firstaid/fire /obj/structure/bookcase /obj/item/book/random QDEL, not actually in the logs but returned wrong hint /obj/effect/landmark/start/wizard QDEL /obj/effect/landmark/start/wizard /obj/effect/landmark/start/new_player /obj/effect/landmark/latejoin /obj/effect/landmark/xeno_spawn /obj/effect/landmark/blobstart /obj/effect/landmark/secequipment /obj/effect/landmark/prisonwarp /obj/effect/landmark/ert_spawn /obj/effect/landmark/holding_facility /obj/effect/landmark/thunderdome/observe /obj/effect/landmark/thunderdome/one /obj/effect/landmark/thunderdome/two /obj/effect/landmark/thunderdome/admin * Batch 2 /obj/machinery/computer/operating /obj/machinery/computer/telecrystals/uplinker /obj/item/card/id/centcom /obj/item/card/id/syndicate /obj/item/card/id/captains_spare /obj/item/card/id/ert /obj/item/card/id/ert/Security /obj/item/card/id/ert/Engineer /obj/item/card/id/ert/Medical /obj/structure/trap /obj/machinery/magnetic_controller /obj/item/storage/toolbox /obj/structure/table * Batch 3 /obj/machinery/vending/snack/random /obj/machinery/vending/cola/random /obj/machinery/computer/pod /obj/machinery/computer/message_monitor /obj/machinery/computer/atmos_control /obj/item/implanter /obj/item/implantcase /obj/item/construction /turf/open/floor/grass /turf/open/floor/grass/snow/basalt /turf/open/floor/grass/fakebasalt /turf/open/floor/carpet /turf/open/floor/fakespace /turf/open/floor/light /turf/open/floor/mineral /turf/open/floor/mineral/abductor /turf/open/floor/circuit /turf/open/floor/clockwork /turf/open/floor/plating /turf/open/floor/engine/cult * Batch 4 /obj/item/storage/backpack/satchel/flat /obj/item/storage/backpack/satchel/flat/secret /turf/closed/indestructible/fakeglass /turf/closed/mineral/random /turf/closed/mineral/gibtonite /turf/closed/mineral /turf/open/floor /obj/effect/spawner/lootdrop * Batch 5 /obj/effect/spawner/lootdrop/maintenance /obj/effect/spawner/lootdrop/costume /obj/item/toy/eightball/broken /obj/item/toy/eightball /obj/item/toy/eightball/haunted /obj/item/device/electropack /obj/item/restraints/legcuffs/beartrap /obj/machinery/airlock_sensor /obj/item/storage/box/ingredients * Batch 6 /mob/living/simple_animal/hostile/carp/ranged /obj/structure/lattice/clockwork /obj/structure/lattice/clockwork/large /obj/structure/lattice/catwalk/clockwork /mob/living/simple_animal/hostile/mushroom /mob/living/carbon/alien /mob/living/carbon/alien/larva /mob/living/carbon/alien/humanoid /mob/living/carbon/alien/humanoid/drone /mob/living/carbon/alien/humanoid/royal/praetorian /mob/living/carbon/alien/humanoid/sentinel
67 lines
3.0 KiB
Plaintext
67 lines
3.0 KiB
Plaintext
/obj/machinery/computer/operating
|
|
name = "operating computer"
|
|
desc = "Used to monitor the vitals of a patient during surgery."
|
|
icon_screen = "crew"
|
|
icon_keyboard = "med_key"
|
|
circuit = /obj/item/circuitboard/computer/operating
|
|
var/mob/living/carbon/human/patient
|
|
var/obj/structure/table/optable/table
|
|
|
|
light_color = LIGHT_COLOR_BLUE
|
|
|
|
/obj/machinery/computer/operating/Initialize()
|
|
. = ..()
|
|
find_table()
|
|
|
|
/obj/machinery/computer/operating/proc/find_table()
|
|
for(var/dir in GLOB.cardinals)
|
|
table = locate(/obj/structure/table/optable, get_step(src, dir))
|
|
if(table)
|
|
table.computer = src
|
|
break
|
|
|
|
|
|
/obj/machinery/computer/operating/attack_hand(mob/user)
|
|
if(..())
|
|
return
|
|
interact(user)
|
|
|
|
/obj/machinery/computer/operating/interact(mob/user)
|
|
var/dat = ""
|
|
if(table)
|
|
dat += "<B>Patient information:</B><BR>"
|
|
if(table.check_patient())
|
|
patient = table.patient
|
|
dat += get_patient_info()
|
|
else
|
|
patient = null
|
|
dat += "<B>No patient detected</B>"
|
|
else
|
|
dat += "<B>Operating table not found.</B>"
|
|
|
|
var/datum/browser/popup = new(user, "op", "Operating Computer", 400, 500)
|
|
popup.set_content(dat)
|
|
popup.open()
|
|
|
|
/obj/machinery/computer/operating/proc/get_patient_info()
|
|
var/dat = {"
|
|
<div class='statusLabel'>Patient:</div> [patient.stat ? "<span class='bad'>Non-Responsive</span>" : "<span class='good'>Stable</span>"]<BR>
|
|
<div class='statusLabel'>Blood Type:</div> [patient.dna.blood_type]
|
|
|
|
<BR>
|
|
<div class='line'><div class='statusLabel'>Health:</div><div class='progressBar'><div style='width: [max(patient.health, 0)]%;' class='progressFill good'></div></div><div class='statusValue'>[patient.health]%</div></div>
|
|
<div class='line'><div class='statusLabel'>\> Brute Damage:</div><div class='progressBar'><div style='width: [max(patient.getBruteLoss(), 0)]%;' class='progressFill bad'></div></div><div class='statusValue'>[patient.getBruteLoss()]%</div></div>
|
|
<div class='line'><div class='statusLabel'>\> Resp. Damage:</div><div class='progressBar'><div style='width: [max(patient.getOxyLoss(), 0)]%;' class='progressFill bad'></div></div><div class='statusValue'>[patient.getOxyLoss()]%</div></div>
|
|
<div class='line'><div class='statusLabel'>\> Toxin Content:</div><div class='progressBar'><div style='width: [max(patient.getToxLoss(), 0)]%;' class='progressFill bad'></div></div><div class='statusValue'>[patient.getToxLoss()]%</div></div>
|
|
<div class='line'><div class='statusLabel'>\> Burn Severity:</div><div class='progressBar'><div style='width: [max(patient.getFireLoss(), 0)]%;' class='progressFill bad'></div></div><div class='statusValue'>[patient.getFireLoss()]%</div></div>
|
|
|
|
"}
|
|
if(patient.surgeries.len)
|
|
dat += "<BR><BR><B>Initiated Procedures</B><div class='statusDisplay'>"
|
|
for(var/datum/surgery/procedure in patient.surgeries)
|
|
dat += "[capitalize(procedure.name)]<BR>"
|
|
var/datum/surgery_step/surgery_step = procedure.get_surgery_step()
|
|
dat += "Next step: [capitalize(surgery_step.name)]<BR>"
|
|
dat += "</div>"
|
|
return dat
|