[MIRROR] Fixed 2 static lists (#9321)

Co-authored-by: Selis <12716288+ItsSelis@users.noreply.github.com>
Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com>
This commit is contained in:
CHOMPStation2StaffMirrorBot
2024-10-26 09:01:02 -07:00
committed by GitHub
parent 02c4123a60
commit 196770e16f
3 changed files with 10 additions and 4 deletions

View File

@@ -27,10 +27,9 @@
#define SIGN(x) ( (x)!=0 ? (x) / abs(x) : 0 ) #define SIGN(x) ( (x)!=0 ? (x) / abs(x) : 0 )
#define ROUND_UP(x) ( -round(-(x)))
#define CEILING(x, y) ( -round(-(x) / (y)) * (y) ) #define CEILING(x, y) ( -round(-(x) / (y)) * (y) )
#define ROUND_UP(x) ( -round(-(x))) // CHOMPEdit
// round() acts like floor(x, 1) by default but can't handle other values // round() acts like floor(x, 1) by default but can't handle other values
#define FLOOR(x, y) ( round((x) / (y)) * (y) ) #define FLOOR(x, y) ( round((x) / (y)) * (y) )

View File

@@ -65,7 +65,7 @@
// consider sleeping the AI instead. // consider sleeping the AI instead.
var/process_flags = 0 // Where we're processing, see flag defines. var/process_flags = 0 // Where we're processing, see flag defines.
var/list/snapshot = null // A list used in mass-editing of AI datums, holding a snapshot of the 'before' state var/list/snapshot = null // A list used in mass-editing of AI datums, holding a snapshot of the 'before' state
var/list/static/fastprocess_stances = list( var/static/list/fastprocess_stances = list(
STANCE_ALERT, STANCE_ALERT,
STANCE_APPROACH, STANCE_APPROACH,
STANCE_FIGHT, STANCE_FIGHT,
@@ -76,7 +76,7 @@
STANCE_FLEE, STANCE_FLEE,
STANCE_DISABLED STANCE_DISABLED
) )
var/list/static/noprocess_stances = list( var/static/list/noprocess_stances = list(
STANCE_SLEEP STANCE_SLEEP
) )

View File

@@ -80,6 +80,13 @@ echo -e "${RED}DISABLED"
# FAILED=1 # FAILED=1
# fi # fi
part "improperly pathed static lists"
if $grep -i 'var/list/static/.*' $code_files; then
echo
echo -e "${RED}ERROR: Found incorrect static list definition 'var/list/static/', it should be 'var/static/list/' instead.${NC}"
st=1
fi;
part "changelog" part "changelog"
#Checking for a change to html/changelogs/example.yml #Checking for a change to html/changelogs/example.yml
md5sum -c - <<< "0c56937110d88f750a32d9075ddaab8b *html/changelogs_ch/example.yml" # CHOMPedit - Better changelogs md5sum -c - <<< "0c56937110d88f750a32d9075ddaab8b *html/changelogs_ch/example.yml" # CHOMPedit - Better changelogs