Skip to content

Commit

Permalink
Fixes a bug where borgs effectively break IDs when removing them from…
Browse files Browse the repository at this point in the history
… modular consoles (#76948)

## About The Pull Request
Fixes a bug where borgs effectively break IDs when removing them from
modular consoles. Previously when they did this it would cause the ID to
be unretrievable.
## Why It's Good For The Game
Fixes a stinky bug!!
## Changelog
:cl:Sapphoqueer
fix: fixes a bug where borgs and TK users could effectively break ID's
by removing them from modular computers.
/:cl:
  • Loading branch information
SapphoQueer authored and Absolucy committed Jan 26, 2025
1 parent 83ea29f commit ce04239
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions code/modules/modular_computers/computers/item/computer.dm
Original file line number Diff line number Diff line change
Expand Up @@ -277,16 +277,15 @@
if(crew_manifest_update)
GLOB.manifest.modify(computer_id_slot.registered_name, computer_id_slot.assignment, computer_id_slot.get_trim_assignment())

if(user)
if(!issilicon(user) && in_range(src, user))
user.put_in_hands(computer_id_slot)
balloon_alert(user, "removed ID")
to_chat(user, span_notice("You remove the card from the card slot."))
if(user && !issilicon(user) && in_range(src, user))
user.put_in_hands(computer_id_slot)
else
computer_id_slot.forceMove(drop_location())

computer_id_slot = null
playsound(src, 'sound/machines/terminal_insert_disc.ogg', 50, FALSE)
balloon_alert(user, "removed ID")
to_chat(user, span_notice("You remove the card from the card slot."))

if(ishuman(loc))
var/mob/living/carbon/human/human_wearer = loc
Expand Down

0 comments on commit ce04239

Please sign in to comment.