Skip to content
Permalink
Browse files

Merge pull request #2399 from AnnieRuru/70-needed_status_point

Fix *needed_status_point not support <char_id>
  • Loading branch information...
MishimaHaruna committed Mar 11, 2019
2 parents 23b515f + 7893a47 commit 0d7b3609715453e100dc38d037fc47fb2337af88
Showing with 3 additions and 3 deletions.
  1. +1 −1 doc/script_commands.txt
  2. +2 −2 src/map/script.c
@@ -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
@@ -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)
{
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"),

0 comments on commit 0d7b360

Please sign in to comment.
You can’t perform that action at this time.