mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-23 13:10:02 +01:00
Greps for pronoun helper spelling mistakes (#83086)
Fixes #83083 These are case sensitive
This commit is contained in:
@@ -17,6 +17,8 @@
|
||||
/// s, null (she looks, they look) "%PRONOUN_s" = "p_s"
|
||||
/// es, null (she goes, they go) "%PRONOUN_es" = "p_es"
|
||||
|
||||
/// Don't forget to update the grep if you add more! tools/ci/check_grep.sh -> pronoun helper spellcheck
|
||||
|
||||
/// A list for all the pronoun procs, if you need to iterate or search through it or something.
|
||||
#define ALL_PRONOUNS list( \
|
||||
"%PRONOUN_they" = TYPE_PROC_REF(/datum, p_they), \
|
||||
|
||||
@@ -113,7 +113,7 @@
|
||||
/obj/item/organ/internal/brain/carp/Initialize(mapload)
|
||||
. = ..()
|
||||
AddElement(/datum/element/organ_set_bonus, /datum/status_effect/organ_set_bonus/carp)
|
||||
AddElement(/datum/element/noticable_organ, "%PRONOUN_They seem%PRONOUN_S unable to stay still.")
|
||||
AddElement(/datum/element/noticable_organ, "%PRONOUN_They seem%PRONOUN_s unable to stay still.")
|
||||
|
||||
/obj/item/organ/internal/brain/carp/on_mob_insert(mob/living/carbon/brain_owner)
|
||||
. = ..()
|
||||
|
||||
@@ -31,7 +31,7 @@ Fluoride Stare: After someone says 5 words, blah blah blah...
|
||||
/obj/item/organ/internal/heart/gondola/Initialize(mapload)
|
||||
. = ..()
|
||||
AddElement(/datum/element/organ_set_bonus, /datum/status_effect/organ_set_bonus/gondola)
|
||||
AddElement(/datum/element/noticable_organ, "%PRONOUN_They radiate%PRONOUN_S an aura of serenity.")
|
||||
AddElement(/datum/element/noticable_organ, "%PRONOUN_They radiate%PRONOUN_s an aura of serenity.")
|
||||
|
||||
/obj/item/organ/internal/heart/gondola/Insert(mob/living/carbon/receiver, special, movement_flags)
|
||||
. = ..()
|
||||
|
||||
@@ -61,7 +61,7 @@
|
||||
/obj/item/organ/internal/heart/rat/Initialize(mapload)
|
||||
. = ..()
|
||||
AddElement(/datum/element/organ_set_bonus, /datum/status_effect/organ_set_bonus/rat)
|
||||
AddElement(/datum/element/noticable_organ, "%PRONOUN_They hunch%PRONOUN_ES over unnaturally!")
|
||||
AddElement(/datum/element/noticable_organ, "%PRONOUN_They hunch%PRONOUN_es over unnaturally!")
|
||||
|
||||
/obj/item/organ/internal/heart/rat/on_mob_insert(mob/living/carbon/receiver)
|
||||
. = ..()
|
||||
|
||||
@@ -288,6 +288,12 @@ if [ "$pcre2_support" -eq 1 ]; then
|
||||
echo -e "${RED}ERROR: Initialize override without 'mapload' argument.${NC}"
|
||||
st=1
|
||||
fi;
|
||||
part "pronoun helper spellcheck"
|
||||
if $grep -P '%PRONOUN_(?!they|They|their|Their|theirs|Theirs|them|Them|have|are|were|do|theyve|Theyve|theyre|Theyre|s|es)' $code_files; then
|
||||
echo
|
||||
echo -e "${RED}ERROR: Invalid pronoun helper found.${NC}"
|
||||
st=1
|
||||
fi;
|
||||
else
|
||||
echo -e "${RED}pcre2 not supported, skipping checks requiring pcre2"
|
||||
echo -e "if you want to run these checks install ripgrep with pcre2 support.${NC}"
|
||||
|
||||
Reference in New Issue
Block a user