mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-31 00:58:26 +01:00
[MIRROR] CanUseTopic() refactor. (#1829)
* CanUseTopic() refactor. (#54747) * CanUseTopic() refactor. * Forgot about default_can_use_topic. Tested and working. * Update bin.dm * no-nonsense. * CanUseTopic() refactor. Co-authored-by: Ghom <42542238+Ghommie@users.noreply.github.com>
This commit is contained in:
@@ -45,7 +45,7 @@
|
||||
inserted_key = I
|
||||
|
||||
/obj/vehicle/ridden/AltClick(mob/user)
|
||||
if(!inserted_key || !user.canUseTopic(src, BE_CLOSE, ismonkey(user)))
|
||||
if(!inserted_key || !user.canUseTopic(src, BE_CLOSE, NO_DEXTERITY, FALSE, !issilicon(user)))
|
||||
return ..()
|
||||
if(!is_occupant(user))
|
||||
to_chat(user, "<span class='warning'>You must be riding the [src] to remove [src]'s key!</span>")
|
||||
|
||||
@@ -105,7 +105,7 @@
|
||||
/obj/vehicle/ridden/wheelchair/proc/can_user_rotate(mob/living/user)
|
||||
var/mob/living/L = user
|
||||
if(istype(L))
|
||||
if(!user.canUseTopic(src, BE_CLOSE, ismonkey(user)))
|
||||
if(!user.canUseTopic(src, BE_CLOSE, NO_DEXTERITY, FALSE, !iscyborg(user)))
|
||||
return FALSE
|
||||
if(isobserver(user) && CONFIG_GET(flag/ghost_interaction))
|
||||
return TRUE
|
||||
|
||||
Reference in New Issue
Block a user