diff options
author | Haru <haru@dotalux.com> | 2019-03-11 03:50:59 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-03-11 03:50:59 +0100 |
commit | 0d7b3609715453e100dc38d037fc47fb2337af88 (patch) | |
tree | a6f7b4f7dfdb9fa638d585cec32ccc3031154c96 | |
parent | 23b515f67f912078268767ec2d28b65711d39b2f (diff) | |
parent | 7893a47d101e6eea5c3bb5abad06190770c65a12 (diff) | |
download | hercules-0d7b3609715453e100dc38d037fc47fb2337af88.tar.gz hercules-0d7b3609715453e100dc38d037fc47fb2337af88.tar.bz2 hercules-0d7b3609715453e100dc38d037fc47fb2337af88.tar.xz hercules-0d7b3609715453e100dc38d037fc47fb2337af88.zip |
Merge pull request #2399 from AnnieRuru/70-needed_status_point
Fix *needed_status_point not support <char_id>
-rw-r--r-- | doc/script_commands.txt | 2 | ||||
-rw-r--r-- | src/map/script.c | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/doc/script_commands.txt b/doc/script_commands.txt index a03fb1768..19f189f81 100644 --- a/doc/script_commands.txt +++ b/doc/script_commands.txt @@ -6076,7 +6076,7 @@ Amount can be negative. See statusup(). --------------------------------------- -*needed_status_point(<type>, <val>, {<char_id>}); +*needed_status_point(<type>, <val>); Returns the number of stat points needed to change the specified stat <type> by <val>. If <val> is negative, returns the number of stat points that would be needed to diff --git a/src/map/script.c b/src/map/script.c index 17b93af37..bba559df8 100644 --- a/src/map/script.c +++ b/src/map/script.c @@ -9720,7 +9720,7 @@ static BUILDIN(statusup2) /*========================================== * Returns the number of stat points needed to change the specified stat by val. -* needed_status_point(<type>,<val>{,<char id>}); [secretdataz] +* needed_status_point(<type>,<val>); [secretdataz] *------------------------------------------*/ static BUILDIN(needed_status_point) { @@ -25347,7 +25347,7 @@ static void script_parse_builtin(void) BUILDIN_DEF(downrefitem,"i?"), BUILDIN_DEF(statusup,"i"), BUILDIN_DEF(statusup2,"ii"), - BUILDIN_DEF(needed_status_point,"ii?"), + BUILDIN_DEF(needed_status_point, "ii"), BUILDIN_DEF(bonus,"iv"), BUILDIN_DEF2(bonus,"bonus2","ivi"), BUILDIN_DEF2(bonus,"bonus3","ivii"), |