mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-22 12:41:09 +01:00
[MIRROR] Intercoms can now be interacted with via the telekinesis mutation (#297)
* Intercoms now have appropriate attack_tk_grab response (#52835) Due to issues with item interaction code, this PR means the intercom is now viewable with telekinesis but is not interactable unless adjacent. * Intercoms can now be interacted with via the telekinesis mutation Co-authored-by: Timberpoes <silent_insomnia_pp@hotmail.co.uk>
This commit is contained in:
@@ -55,6 +55,14 @@
|
||||
return
|
||||
return ..()
|
||||
|
||||
/**
|
||||
* Override attack_tk_grab instead of attack_tk because we actually want attack_tk's
|
||||
* functionality. What we DON'T want is attack_tk_grab attempting to pick up the
|
||||
* intercom as if it was an ordinary item.
|
||||
*/
|
||||
/obj/item/radio/intercom/attack_tk_grab(mob/user)
|
||||
interact(user)
|
||||
|
||||
/obj/item/radio/intercom/attack_ai(mob/user)
|
||||
interact(user)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user