mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-10 18:22:39 +00:00
Cleanup of proc/helpers.dm
Split a bunch of procs in helpers.dm into new files: -helper_list -helper_text -helper_type2type These files are sorted into groups internally. Hopefully people will make it easier for people to find useful procs. I've added comments to a good chunk of these procs as well explaining what they do. I've removed a few unused or unnecessary procs and fixed up a couple that were not working as intended. I've also moved a mob proc 'get_equipped_items()' into mob/inventory. All of the non-helper.dm files (besides mob/inventory.dm) are the result of fixing duplicate procs. It seems that there used to be text searching procs where one was case sensitive and one was not, and at some point someone removed the case-sensitivity of the case sensitive procs. I've re-added the case-sensitivity and as a result, I've had to go through extra files and ensure that they were calling the proper proc. git-svn-id: http://tgstation13.googlecode.com/svn/trunk@4341 316c924e-a436-60f5-8080-3fe189b3f50e
This commit is contained in:
@@ -10,9 +10,9 @@ var/global/BSACooldown = 0
|
||||
if (C)
|
||||
var/msg = rendered
|
||||
if (admin_ref)
|
||||
msg = dd_replaceText(msg, "%admin_ref%", "\ref[C]")
|
||||
msg = dd_replacetext(msg, "%admin_ref%", "\ref[C]")
|
||||
if (admin_holder_ref && C.holder)
|
||||
msg = dd_replaceText(msg, "%holder_ref%", "\ref[C.holder]")
|
||||
msg = dd_replacetext(msg, "%holder_ref%", "\ref[C.holder]")
|
||||
C << msg
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user