summaryrefslogtreecommitdiff
path: root/src/map/script.c
diff options
context:
space:
mode:
authorIbrahim Zidan <brahem@aotsw.com>2019-04-13 21:11:09 +0200
committerIbrahim Zidan <brahem@aotsw.com>2019-05-05 23:27:59 +0200
commitbd1c1bb39b3d69fba175bda94af4e9d1149fbbb5 (patch)
tree5e8e804a3f8e3ef8d0f580bc2763b23b84682edb /src/map/script.c
parent31f47be4b26e69d2880e12530d021ce6c8c802ea (diff)
downloadhercules-bd1c1bb39b3d69fba175bda94af4e9d1149fbbb5.tar.gz
hercules-bd1c1bb39b3d69fba175bda94af4e9d1149fbbb5.tar.bz2
hercules-bd1c1bb39b3d69fba175bda94af4e9d1149fbbb5.tar.xz
hercules-bd1c1bb39b3d69fba175bda94af4e9d1149fbbb5.zip
Removal of refine database code from status.c and moving it respectfully to its own files
Signed-off-by: Ibrahim Zidan <brahem@aotsw.com>
Diffstat (limited to 'src/map/script.c')
-rw-r--r--src/map/script.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/map/script.c b/src/map/script.c
index 4fb24708b..1cc1d3ad2 100644
--- a/src/map/script.c
+++ b/src/map/script.c
@@ -52,6 +52,7 @@
#include "map/pet.h"
#include "map/pet.h"
#include "map/quest.h"
+#include "map/refine.h"
#include "map/skill.h"
#include "map/status.h"
#include "map/status.h"
@@ -9505,7 +9506,7 @@ static BUILDIN(getequippercentrefinery)
if (i >= 0 && sd->status.inventory[i].nameid != 0 && sd->status.inventory[i].refine < MAX_REFINE)
script_pushint(st,
- status->get_refine_chance(itemdb_wlv(sd->status.inventory[i].nameid), (int) sd->status.inventory[i].refine, (enum refine_chance_type) type));
+ refine->get_refine_chance(itemdb_wlv(sd->status.inventory[i].nameid), (int) sd->status.inventory[i].refine, (enum refine_chance_type) type));
else
script_pushint(st, 0);