Maplinters Port & DMI Test Enable (#9105)

Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com>
This commit is contained in:
Drathek
2025-02-21 01:48:45 -06:00
committed by GitHub
parent d1d49c94d1
commit e2b24f9029
159 changed files with 123885 additions and 108549 deletions

View File

@@ -23,6 +23,7 @@ if command -v rg >/dev/null 2>&1; then
fi
code_files="code/**/**.dm"
map_files="maps/**/**.dmm"
modular_map_files="modular_chomp/maps/**/**.dmm"
# shuttle_map_files="_maps/shuttles/**.dmm"
# code_x_515="code/**/!(__byond_version_compat).dm"
else
@@ -30,6 +31,7 @@ else
grep=grep
code_files="-r --include=code/**/**.dm"
map_files="-r --include=maps/**/**.dmm"
modular_map_files="-r --include=modular_chomp/maps/**/**.dmm"
# shuttle_map_files="-r --include=_maps/shuttles/**.dmm"
# code_x_515="-r --include=code/**/!(__byond_version_compat).dm"
fi
@@ -59,6 +61,13 @@ if [ $retVal -ne 0 ]; then
FAILED=1
fi
(! $grep 'step_[xy]' $modular_map_files)
retVal=$?
if [ $retVal -ne 0 ]; then
echo -e "${RED}The variables 'step_x' and 'step_y' are present on a map, and they 'break' movement ingame.${NC}"
FAILED=1
fi
part "test map included"
#Checking for any 'checked' maps that include 'test'
(! $grep 'maps\\.*test.*' *.dme)
@@ -126,6 +135,13 @@ if [ "$pcre2_support" -eq 1 ]; then
FAILED=1
fi
(! $grep -Pn '( |\t|;|{)tag( ?)=' $modular_map_files)
retVal=$?
if [ $retVal -ne 0 ]; then
echo -e "${RED}A map has 'tag' set on an atom. It may cause problems and should be removed.${NC}"
FAILED=1
fi
part "broken html"
# echo -e "${RED}DISABLED"
#Checking for broken HTML tags (didn't close the quote for class)