Skip to content

Commit

Permalink
neural link init
Browse files Browse the repository at this point in the history
  • Loading branch information
MrCastmer committed Aug 30, 2024
1 parent 53b9025 commit eb9a000
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 3 deletions.
2 changes: 2 additions & 0 deletions code/__DEFINES/DNA.dm
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,8 @@

//implants
#define ORGAN_SLOT_BRAIN_IMPLANT "brain_implant"
#define ORGAN_SLOT_NEURALWARE "neuralware" //dripstation edit
#define ORGAN_SLOT_BATTERY "battery" //dripstation edit
#define ORGAN_SLOT_HUD "eye_hud"
#define ORGAN_SLOT_BREATHING_TUBE "breathing_tube"
#define ORGAN_SLOT_TORSO_IMPLANT "torso_implant"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,10 @@

/obj/item/organ/cyberimp/arm/flash
icon = "modular_dripstation/icons/obj/augments.dmi"
icon_state = "flash"
icon_state = "arm_flash"

/obj/item/assembly/flash/armimplant
icon = "modular_dripstation/icons/obj/augments.dmi"
/obj/item/organ/cyberimp/arm/flash/rev
icon_state = "arm_revflash"

/obj/item/organ/cyberimp/arm/baton
icon = "modular_dripstation/icons/obj/augments.dmi"
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@

/obj/item/organ/cyberimp
var/status = FALSE
var/complexyty = 1


//[[[[NEURAL]]]]

/obj/item/organ/cyberimp/neural_link
name = "basic neural link"
desc = "Neural link is critical for linking cybernetics to the central nervous system. Uses nanotech to establish an interface between the module and the nervous system in the body."
icon_state = "brain_implant"
implant_overlay = "brain_implant_overlay"
slot = ORGAN_SLOT_NEURALWARE
zone = BODY_ZONE_HEAD
w_class = WEIGHT_CLASS_TINY
complexyty = 0
var/complexyty_holding = 5

/obj/item/organ/cyberimp/neural_link/emp_act(severity)
. = ..()
if(!owner || . & EMP_PROTECT_SELF)
return
switch severity
if(1)
owner.apply_damage(10, STAMINA)
owner.adjust_confusion(rand(2 SECONDS, 3 SECONDS))
if(2)
owner.flash_act()
owner.apply_damage(20, STAMINA)
owner.adjust_confusion(rand(4 SECONDS, 6 SECONDS))

0 comments on commit eb9a000

Please sign in to comment.