mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-26 22:50:26 +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:
@@ -516,7 +516,7 @@
|
||||
if(!payments_acc)
|
||||
to_chat(usr, span_notice("[src] hasn't been registered yet."))
|
||||
return TRUE
|
||||
if(!usr.canUseTopic(src, be_close = TRUE, no_dexterity = FALSE, no_tk = TRUE))
|
||||
if(!usr.can_perform_action(src, FORBID_TELEKINESIS_REACH))
|
||||
return TRUE
|
||||
if(!potential_acc)
|
||||
to_chat(usr, span_notice("No ID card detected."))
|
||||
@@ -571,7 +571,7 @@
|
||||
if(payments_acc != potential_acc.registered_account)
|
||||
to_chat(usr, span_warning("[src] rejects your new price."))
|
||||
return
|
||||
if(!usr.canUseTopic(src, be_close = TRUE, no_dexterity = FALSE, no_tk = TRUE))
|
||||
if(!usr.can_perform_action(src, FORBID_TELEKINESIS_REACH))
|
||||
to_chat(usr, span_warning("You need to get closer!"))
|
||||
return
|
||||
sale_price = new_price_input
|
||||
|
||||
Reference in New Issue
Block a user