From 116ea6c71f3c52f7cf9cf970b0c495cdb7de885a Mon Sep 17 00:00:00 2001 From: AnturK Date: Thu, 6 Jun 2019 21:46:05 +0200 Subject: [PATCH 1/3] Adds sdql2 trait wrappers. --- code/modules/admin/verbs/SDQL2/SDQL_2_wrappers.dm | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/code/modules/admin/verbs/SDQL2/SDQL_2_wrappers.dm b/code/modules/admin/verbs/SDQL2/SDQL_2_wrappers.dm index 4d148e2f5e2..3a2e7d1fe35 100644 --- a/code/modules/admin/verbs/SDQL2/SDQL_2_wrappers.dm +++ b/code/modules/admin/verbs/SDQL2/SDQL_2_wrappers.dm @@ -214,4 +214,12 @@ /proc/_step_away(ref, trg, max) step_away(ref, trg, max) +/proc/_has_trait(thing,trait,source) + return HAS_TRAIT(thing,trait,source) + +/proc/_add_trait(thing,trait,source) + ADD_TRAIT(thing,trait,source) + +/proc/_remove_trait(thing,trait,source) + REMOVE_TRAIT(thing,trait,source) From 652071d9c89795f914b940d39dbcf558f67ad999 Mon Sep 17 00:00:00 2001 From: AnturK Date: Thu, 6 Jun 2019 21:48:02 +0200 Subject: [PATCH 2/3] bluh --- code/modules/admin/verbs/SDQL2/SDQL_2_wrappers.dm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code/modules/admin/verbs/SDQL2/SDQL_2_wrappers.dm b/code/modules/admin/verbs/SDQL2/SDQL_2_wrappers.dm index 3a2e7d1fe35..702df260ebc 100644 --- a/code/modules/admin/verbs/SDQL2/SDQL_2_wrappers.dm +++ b/code/modules/admin/verbs/SDQL2/SDQL_2_wrappers.dm @@ -214,8 +214,8 @@ /proc/_step_away(ref, trg, max) step_away(ref, trg, max) -/proc/_has_trait(thing,trait,source) - return HAS_TRAIT(thing,trait,source) +/proc/_has_trait(thing,trait) + return HAS_TRAIT(thing,trait) /proc/_add_trait(thing,trait,source) ADD_TRAIT(thing,trait,source) From cc88cc16edc869d0596000e0742b9a9489bd51cd Mon Sep 17 00:00:00 2001 From: AnturK Date: Thu, 6 Jun 2019 21:53:30 +0200 Subject: [PATCH 3/3] I shouldn't code straight after waking up. --- code/modules/admin/verbs/SDQL2/SDQL_2_wrappers.dm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/code/modules/admin/verbs/SDQL2/SDQL_2_wrappers.dm b/code/modules/admin/verbs/SDQL2/SDQL_2_wrappers.dm index 702df260ebc..31b6fa0183d 100644 --- a/code/modules/admin/verbs/SDQL2/SDQL_2_wrappers.dm +++ b/code/modules/admin/verbs/SDQL2/SDQL_2_wrappers.dm @@ -214,12 +214,12 @@ /proc/_step_away(ref, trg, max) step_away(ref, trg, max) -/proc/_has_trait(thing,trait) +/proc/_has_trait(datum/thing,trait) return HAS_TRAIT(thing,trait) -/proc/_add_trait(thing,trait,source) +/proc/_add_trait(datum/thing,trait,source) ADD_TRAIT(thing,trait,source) -/proc/_remove_trait(thing,trait,source) +/proc/_remove_trait(datum/thing,trait,source) REMOVE_TRAIT(thing,trait,source)