From 7893a47d101e6eea5c3bb5abad06190770c65a12 Mon Sep 17 00:00:00 2001 From: AnnieRuru Date: Sun, 3 Mar 2019 19:39:03 +0800 Subject: Fix *needed_status_point not support --- doc/script_commands.txt | 2 +- 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 c3cc8a799..63aa94315 100644 --- a/doc/script_commands.txt +++ b/doc/script_commands.txt @@ -6074,7 +6074,7 @@ Amount can be negative. See statusup(). --------------------------------------- -*needed_status_point(, , {}); +*needed_status_point(, ); Returns the number of stat points needed to change the specified stat by . If 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 7e6e06376..51d7ebe3b 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(,{,}); [secretdataz] +* needed_status_point(,); [secretdataz] *------------------------------------------*/ static BUILDIN(needed_status_point) { @@ -25296,7 +25296,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"), -- cgit v1.2.3-60-g2f50