summaryrefslogtreecommitdiff
path: root/src/map/itemdb.c
diff options
context:
space:
mode:
authorAsheraf <acheraf1998@gmail.com>2020-01-01 16:15:01 +0100
committerAsheraf <acheraf1998@gmail.com>2020-01-01 16:33:08 +0100
commitf8d457ea0e6b0d97785eb75b1dc6e00387dc94e5 (patch)
tree8d458dea98d7e9c67a2b088a08a0f0d8219438ce /src/map/itemdb.c
parent486b1f1558d8bd87eb3260ec4eb0a573e509a28c (diff)
downloadhercules-f8d457ea0e6b0d97785eb75b1dc6e00387dc94e5.tar.gz
hercules-f8d457ea0e6b0d97785eb75b1dc6e00387dc94e5.tar.bz2
hercules-f8d457ea0e6b0d97785eb75b1dc6e00387dc94e5.tar.xz
hercules-f8d457ea0e6b0d97785eb75b1dc6e00387dc94e5.zip
Add support for auto exp insurance items
Diffstat (limited to 'src/map/itemdb.c')
-rw-r--r--src/map/itemdb.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/map/itemdb.c b/src/map/itemdb.c
index 5dc3d9317..b016af1c9 100644
--- a/src/map/itemdb.c
+++ b/src/map/itemdb.c
@@ -1552,6 +1552,11 @@ static void itemdb_read_chains(void)
else
itemdb->chain_cache[ECC_SIEGFRIED] = i;
+ if (!script->get_constant("ITMCHAIN_NEO_INSURANCE", &i))
+ ShowWarning("itemdb_read_chains: failed to find 'ITMCHAIN_NEO_INSURANCE' chain to link to cache!\n");
+ else
+ itemdb->chain_cache[ECC_NEO_INSURANCE] = i;
+
ShowStatus("Done reading '"CL_WHITE"%d"CL_RESET"' entries in '"CL_WHITE"%s"CL_RESET"'.\n", count, config_filename);
}