Remove keyword keys to standardize strings as keys convention
This commit is contained in:
10
spawns.lisp
10
spawns.lisp
@@ -62,14 +62,14 @@ separate csvs."
|
||||
(loop for row in csv
|
||||
with mapname = ""
|
||||
for hm = (pairhash keys row (dict))
|
||||
when (let ((name (gethash :monster hm)))
|
||||
when (let ((name (gethash "Monster" hm)))
|
||||
(and (string-not-equal "" name)
|
||||
(string-not-equal "-" name)
|
||||
(string-not-equal "Monster" name)))
|
||||
do (progn
|
||||
(if (and (string-not-equal mapname "") (string-equal (gethash :mapname hm) ""))
|
||||
(setf (gethash :mapname hm) mapname)
|
||||
(setf mapname (gethash :mapname hm)))
|
||||
(if (and (string-not-equal mapname "") (string-equal (gethash "MapName" hm) ""))
|
||||
(setf (gethash "MapName" hm) mapname)
|
||||
(setf mapname (gethash "MapName" hm)))
|
||||
(vector-push-extend hm result)))
|
||||
result))
|
||||
|
||||
@@ -113,5 +113,3 @@ separate csvs."
|
||||
(if-not *chronostory-spawns*
|
||||
(reload-spawn-data)
|
||||
*chronostory-spawns*))
|
||||
|
||||
(refresh-spawn-data)
|
||||
|
||||
Reference in New Issue
Block a user