summaryrefslogtreecommitdiff
path: root/src/map/refine.p.h
diff options
context:
space:
mode:
authorIbrahim Zidan <brahem@aotsw.com>2019-04-13 22:43:02 +0200
committerIbrahim Zidan <brahem@aotsw.com>2019-05-05 23:28:10 +0200
commit5a0c9f2f74070e9d1e6f4fec503b3687b5f1ef88 (patch)
tree79868878e938aee7fc005c71fdc31c102bd67884 /src/map/refine.p.h
parentcedaae8a589e87300727e27a4af58217707e2e22 (diff)
downloadhercules-5a0c9f2f74070e9d1e6f4fec503b3687b5f1ef88.tar.gz
hercules-5a0c9f2f74070e9d1e6f4fec503b3687b5f1ef88.tar.bz2
hercules-5a0c9f2f74070e9d1e6f4fec503b3687b5f1ef88.tar.xz
hercules-5a0c9f2f74070e9d1e6f4fec503b3687b5f1ef88.zip
Move refine database from refine public interface to private interface
Signed-off-by: Ibrahim Zidan <brahem@aotsw.com>
Diffstat (limited to 'src/map/refine.p.h')
-rw-r--r--src/map/refine.p.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/map/refine.p.h b/src/map/refine.p.h
index 4d6f403bb..d47944315 100644
--- a/src/map/refine.p.h
+++ b/src/map/refine.p.h
@@ -28,10 +28,23 @@
#include "refine.h"
#include "common/conf.h"
+/* Structures */
+struct s_refine_info {
+ int chance[REFINE_CHANCE_TYPE_MAX][MAX_REFINE]; // success chance
+ int bonus[MAX_REFINE]; // cumulative fixed bonus damage
+ int randombonus_max[MAX_REFINE]; // cumulative maximum random bonus damage
+};
+
+struct refine_interface_dbs {
+ struct s_refine_info refine_info[REFINE_TYPE_MAX];
+};
+
/**
* Refine Private Interface
**/
struct refine_interface_private {
+ struct refine_interface_dbs *dbs;
+
/**
* Processes a refine_db.conf entry.
*