Skip to content

Commit

Permalink
got around to this
Browse files Browse the repository at this point in the history
  • Loading branch information
rye-rice committed Dec 22, 2023
1 parent 6870919 commit 9ce5dbc
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion code/modules/mob/dead/new_player/sprite_accessories/ipc.dm
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@
var/use_eyes = FALSE //do we use normal robotic eyes? used when we dont want a screen but still want visible eyes
var/has_screen = TRUE //do we have a screen to toggle
var/has_overlay = FALSE //does this chasis have a overlay icon?
var/is_digi = FALSE //does this chasis use digigrade
var/is_digi = FALSE //does this chasis use digitigrade

/datum/sprite_accessory/ipc_chassis/mcgreyscale
name = "Morpheus Cyberkinetics (Custom)"
Expand Down
11 changes: 6 additions & 5 deletions code/modules/mob/living/carbon/human/species_types/IPC.dm
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
return ipc_name

/datum/species/ipc/New()
. = ..()

// This is in new because "[HEAD_LAYER]" etc. is NOT a constant compile-time value. For some reason.
// Why not just use HEAD_LAYER? Well, because HEAD_LAYER is a number, and if you try to use numbers as indexes,
// BYOND will try to make it an ordered list. So, we have to use a string. This is annoying, but it's the only way to do it smoothly.
Expand All @@ -65,17 +65,19 @@
)

/datum/species/ipc/on_species_gain(mob/living/carbon/C, datum/species/old_species, pref_load) // Let's make that IPC actually robotic.
. = ..()
if(ishuman(C))
var/mob/living/carbon/human/H = C
if(!change_screen)
change_screen = new
change_screen.Grant(H)
var/datum/species/ipc/species_datum = H.dna.species
if(species_datum?.has_screen)
change_screen = new
change_screen.Grant(H)
if(H.dna.features["ipc_brain"] == "Man-Machine Interface")
mutantbrain = /obj/item/organ/brain/mmi_holder
else
mutantbrain = /obj/item/organ/brain/mmi_holder/posibrain
C.RegisterSignal(C, COMSIG_PROCESS_BORGCHARGER_OCCUPANT, TYPE_PROC_REF(/mob/living/carbon, charge))
return ..()

/datum/species/ipc/on_species_loss(mob/living/carbon/C)
. = ..()
Expand Down Expand Up @@ -251,7 +253,6 @@

if(!chassis_of_choice.has_screen)
has_screen = FALSE
change_screen.Remove()
C.dna.features["ipc_screen"] = null
C.update_body()

Expand Down

0 comments on commit 9ce5dbc

Please sign in to comment.