mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 10:43:20 +00:00
Maplinters Port & DMI Test Enable (#9105)
Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com>
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user