Skip to content

Commit

Permalink
Fix door key interaction
Browse files Browse the repository at this point in the history
  • Loading branch information
m-dzianishchyts committed Jan 23, 2025
1 parent b4a1541 commit db4aba7
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions modular_ss220/objects/code/key.dm
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,7 @@
return

/obj/item/door_remote/key/interact_with_atom(atom/target, mob/living/user, list/modifiers)
if(!proximity)
return

var/obj/machinery/door/airlock/attacked_airlock = target
if(!istype(attacked_airlock))
return

Expand Down Expand Up @@ -48,6 +46,9 @@
return
attacked_airlock.open()

/obj/item/door_remote/key/ranged_interact_with_atom(atom/target, mob/living/user, list/modifiers)
return ITEM_INTERACT_COMPLETE

/obj/item/door_remote/key/engineer
name = "\proper ключ от инженерного отдела"
icon_state = "eng"
Expand Down

0 comments on commit db4aba7

Please sign in to comment.