OSDN Git Service

Added graf field since Hengband does not ANGBAND_GRAF to store the preference file...
authorEric Branlund <ebranlund@fastmail.com>
Sun, 25 Aug 2019 16:13:18 +0000 (09:13 -0700)
committerEric Branlund <ebranlund@fastmail.com>
Sun, 5 Apr 2020 13:51:34 +0000 (06:51 -0700)
lib/xtra/graf/list.txt

index 0496a49..a7dfbb2 100644 (file)
@@ -9,6 +9,8 @@
 # size: tile width : tile height : tileset file name
 # pref: preference file name
 # extra: alphblending : start row : end row of double high tiles
+# For Hengband added
+# graf : name
 
 # 'name' indicates the beginning of an entry. The serial number must
 # increase for each new item. The pref file name is the name used
 # must be greater than 0, if double high tiles are used, and refer to the
 # bottom half of the double row.
 
+# 'graf' is what ANGBAND_GRAF should be set for the tileset since in Hengband
+# that is different than the name of the preference file name:  there is
+# hardcoded handling of spell colors in term.c based on the value of
+# ANGBAND_GRAF and it is accessed in process_pref_file_expr() in files.c and
+# process_dungeon_file_expr() in init1.c.
+
 # For Hengband, only the files with the tiles are stored in the directories
 # configured here and those directories are relative to ANGBAND_DIR_XTRA +
 # PATH_SEP + "graf".  The preference files are in ANGBAND_DIR_PREF since the
@@ -41,12 +49,14 @@ directory:old
 size:8:8:8x8.png
 pref:graf-xxx.prf
 extra:0:0:0
+graf:old
 
 name:2:Adam Bolt's tiles
 directory:adam-bolt
 size:16:16:16x16.png
 pref:graf-new.prf
 extra:0:0:0
+graf:new
 
 # These have no graf-*.prf files for Hengband.  There is a lib/graf-ne2.prf
 # for a 32 x 32 tile set.  It expects ANGBAND_GRAF to be set to ne2.