diff options
author | Emistry Haoyan <equinox1991@gmail.com> | 2019-07-30 14:15:21 +0800 |
---|---|---|
committer | Emistry Haoyan <equinox1991@gmail.com> | 2019-08-26 22:28:23 +0800 |
commit | d3205c2fac99c0ef42249664c98505c7adf324b4 (patch) | |
tree | 5e27d2d5c49277c88f2d19f36daaf68f63d42a83 /src/map/itemdb.c | |
parent | 307248a5eefca196660c75e06cb6d4d0b84e2c43 (diff) | |
download | hercules-d3205c2fac99c0ef42249664c98505c7adf324b4.tar.gz hercules-d3205c2fac99c0ef42249664c98505c7adf324b4.tar.bz2 hercules-d3205c2fac99c0ef42249664c98505c7adf324b4.tar.xz hercules-d3205c2fac99c0ef42249664c98505c7adf324b4.zip |
Update Siegfried Tokens support.
- allow player to revive if inventory consists of any type of siegfried tokens listed in the `ITMCHAIN_SIEGFRIED`.
Diffstat (limited to 'src/map/itemdb.c')
-rw-r--r-- | src/map/itemdb.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/map/itemdb.c b/src/map/itemdb.c index 5c56794d8..bb2732b17 100644 --- a/src/map/itemdb.c +++ b/src/map/itemdb.c @@ -1523,6 +1523,11 @@ static void itemdb_read_chains(void) else itemdb->chain_cache[ECC_ORE] = i; + if (!script->get_constant("ITMCHAIN_SIEGFRIED", &i)) + ShowWarning("itemdb_read_chains: failed to find 'ITMCHAIN_SIEGFRIED' chain to link to cache!\n"); + else + itemdb->chain_cache[ECC_SIEGFRIED] = i; + ShowStatus("Done reading '"CL_WHITE"%d"CL_RESET"' entries in '"CL_WHITE"%s"CL_RESET"'.\n", count, config_filename); } |