mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-22 12:41:09 +01:00
[MIRROR] Refactor, improve, and rename canUseTopic to be can_perform_action [MDB IGNORE] (#19391)
* Refactor, improve, and rename canUseTopic to be can_perform_action * updoot * https://github.com/tgstation/tgstation/pull/72876 https://github.com/tgstation/tgstation/pull/72876 --------- Co-authored-by: Tim <timothymtorres@gmail.com> Co-authored-by: Gandalf <9026500+Gandalf2k15@users.noreply.github.com>
This commit is contained in:
@@ -68,10 +68,10 @@
|
||||
return
|
||||
if(!message)
|
||||
message = "circuit input"
|
||||
if(!(user.canUseTopic(src, be_close = TRUE, no_dexterity = FALSE, no_tk = TRUE)))
|
||||
if(!(user.can_perform_action(src, FORBID_TELEKINESIS_REACH)))
|
||||
return
|
||||
var/picked = tgui_input_list(user, message = message, items = showed_list)
|
||||
if(!(user.canUseTopic(src, be_close = TRUE, no_dexterity = FALSE, no_tk = TRUE)))
|
||||
if(!(user.can_perform_action(src, FORBID_TELEKINESIS_REACH)))
|
||||
return
|
||||
choose_item(picked, showed_list)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user