mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-10 18:22:39 +00:00
[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:
committed by
GitHub
parent
02c4123a60
commit
196770e16f
@@ -27,10 +27,9 @@
|
||||
|
||||
#define SIGN(x) ( (x)!=0 ? (x) / abs(x) : 0 )
|
||||
|
||||
#define ROUND_UP(x) ( -round(-(x)))
|
||||
#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
|
||||
#define FLOOR(x, y) ( round((x) / (y)) * (y) )
|
||||
|
||||
|
||||
@@ -65,7 +65,7 @@
|
||||
// consider sleeping the AI instead.
|
||||
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/static/fastprocess_stances = list(
|
||||
var/static/list/fastprocess_stances = list(
|
||||
STANCE_ALERT,
|
||||
STANCE_APPROACH,
|
||||
STANCE_FIGHT,
|
||||
@@ -76,7 +76,7 @@
|
||||
STANCE_FLEE,
|
||||
STANCE_DISABLED
|
||||
)
|
||||
var/list/static/noprocess_stances = list(
|
||||
var/static/list/noprocess_stances = list(
|
||||
STANCE_SLEEP
|
||||
)
|
||||
|
||||
|
||||
@@ -80,6 +80,13 @@ echo -e "${RED}DISABLED"
|
||||
# FAILED=1
|
||||
# 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"
|
||||
#Checking for a change to html/changelogs/example.yml
|
||||
md5sum -c - <<< "0c56937110d88f750a32d9075ddaab8b *html/changelogs_ch/example.yml" # CHOMPedit - Better changelogs
|
||||
|
||||
Reference in New Issue
Block a user