diff options
author | Jesusaves <cpntb1@ymail.com> | 2020-01-13 19:50:27 +0000 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2020-01-13 19:50:27 +0000 |
commit | 8ba3b9f635ec976e20ac94165c42bde5f12f4be7 (patch) | |
tree | f9ba0bf258b65b125830cf07ecd9dd7e80935761 /src/emap/init.c | |
parent | c687d2d1b2ad48b5b15899f34b73a41ae73f674c (diff) | |
download | evol-hercules-8ba3b9f635ec976e20ac94165c42bde5f12f4be7.tar.gz evol-hercules-8ba3b9f635ec976e20ac94165c42bde5f12f4be7.tar.bz2 evol-hercules-8ba3b9f635ec976e20ac94165c42bde5f12f4be7.tar.xz evol-hercules-8ba3b9f635ec976e20ac94165c42bde5f12f4be7.zip |
New function: readbattleparam( <param> )
Complements with some info only available with getunitdata(), which
only works with non-players. Not everything covered by getunitdata() is
covered by this function.
TEMPORARY COMMIT, should be replaced with getunitdata() when the function is updated upstream to receive player data as well.
Diffstat (limited to 'src/emap/init.c')
-rw-r--r-- | src/emap/init.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/emap/init.c b/src/emap/init.c index d4e8d11..6bfdfa7 100644 --- a/src/emap/init.c +++ b/src/emap/init.c @@ -213,6 +213,7 @@ HPExport void plugin_init (void) addScriptCommand("getitemoptionparambyindex", "ii", getItemOptionParamByIndex); addScriptCommand("setitemoptionbyindex", "iii*", setItemOptionByIndex); addScriptCommand("isinstance", "i", isInstance); + addScriptCommand("readbattleparam","ii",readBattleParam); do_init_langs(); |