From 907335838acfb281c8ef2274e100a428156d69da Mon Sep 17 00:00:00 2001 From: SkyratBot <59378654+SkyratBot@users.noreply.github.com> Date: Sat, 11 Feb 2023 04:15:38 +0100 Subject: [PATCH] [MIRROR] more sdql2 wrapper procs [MDB IGNORE] (#19269) * more sdql2 wrapper procs (#73336) ## About The Pull Request adds findtext (+ex), view, viewers, rectangle turfs and flick as sdql2 wrappers ## Why It's Good For The Game more fun admin stuff ## Changelog :cl: admin: adds findtext (+ex), view, viewers, rect_turfs and flick as sdql2 wrappers /:cl: * more sdql2 wrapper procs --------- Co-authored-by: Fikou <23585223+Fikou@users.noreply.github.com> --- .../admin/verbs/SDQL2/SDQL_2_wrappers.dm | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/code/modules/admin/verbs/SDQL2/SDQL_2_wrappers.dm b/code/modules/admin/verbs/SDQL2/SDQL_2_wrappers.dm index e046990b0ab..06c19ce5c91 100644 --- a/code/modules/admin/verbs/SDQL2/SDQL_2_wrappers.dm +++ b/code/modules/admin/verbs/SDQL2/SDQL_2_wrappers.dm @@ -33,6 +33,15 @@ /proc/_cos(X) return cos(X) +/proc/_findtext(Haystack, Needle, Start = 1, End = 0) + return findtext(Haystack, Needle, Start, End) + +/proc/_findtextEx(Haystack, Needle, Start = 1, End = 0) + return findtextEx(Haystack, Needle, Start, End) + +/proc/_flick(Icon, Object) + flick(Icon, Object) + /proc/_get_dir(Loc1, Loc2) return get_dir(Loc1, Loc2) @@ -145,6 +154,9 @@ /proc/_range(Dist, Center = usr) return range(Dist, Center) +/proc/_rect_turfs(H_Radius = 0, V_Radius = 0, atom/Center) + return RECT_TURFS(H_Radius, V_Radius, Center) + /proc/_regex(pattern, flags) return regex(pattern, flags) @@ -263,6 +275,12 @@ /proc/_turn(dir, angle) return turn(dir, angle) +/proc/_view(Dist, Center = usr) + return view(Dist, Center) + +/proc/_viewers(Dist, Center = usr) + return viewers(Dist, Center) + /// Auxtools REALLY doesn't know how to handle filters as values; /// when passed as arguments to auxtools-called procs, they aren't simply treated as nulls - /// they don't even count towards the length of args.