mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-01-05 06:21:57 +00:00
So i left over some basic `/whatever/proc/format` uses in the original PR this fixes it. Notable exceptions to the rule: - Paths in add_verb/remove_verb, we need full path instead of a name there to access verb metadata so we can't use proc ref macros there. - regex.Replace, found out that it does not accept call by name. Instead i added new REGEX_REPLACE_HANDLER so we can at least try to mark these. There's still leftover global procs that do not use GLOBAL_PROC_REF but they functionally equivalent so that's for later. I don't see any reasonable way to grep for this. But if you got any ideas please share.
20 lines
685 B
Plaintext
20 lines
685 B
Plaintext
/client/proc/mark_datum(datum/D)
|
|
if(!holder)
|
|
return
|
|
if(holder.marked_datum)
|
|
holder.UnregisterSignal(holder.marked_datum, COMSIG_PARENT_QDELETING)
|
|
vv_update_display(holder.marked_datum, "marked", "")
|
|
holder.marked_datum = D
|
|
holder.RegisterSignal(holder.marked_datum, COMSIG_PARENT_QDELETING, TYPE_PROC_REF(/datum/admins, handle_marked_del))
|
|
vv_update_display(D, "marked", VV_MSG_MARKED)
|
|
|
|
/client/proc/mark_datum_mapview(datum/D as mob|obj|turf|area in view(view))
|
|
set category = "Debug"
|
|
set name = "Mark Object"
|
|
mark_datum(D)
|
|
|
|
/datum/admins/proc/handle_marked_del(datum/source)
|
|
SIGNAL_HANDLER
|
|
UnregisterSignal(marked_datum, COMSIG_PARENT_QDELETING)
|
|
marked_datum = null
|