summaryrefslogtreecommitdiff
path: root/src/map/refine.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/map/refine.h')
-rw-r--r--src/map/refine.h18
1 files changed, 17 insertions, 1 deletions
diff --git a/src/map/refine.h b/src/map/refine.h
index 6e7506be7..05ab0f076 100644
--- a/src/map/refine.h
+++ b/src/map/refine.h
@@ -97,6 +97,22 @@ struct refine_interface {
* @return The chance to refine the item, in percent (0~100)
**/
int (*get_refine_chance) (enum refine_type wlv, int refine_level, enum refine_chance_type type);
+
+ /**
+ * Gets the attack/deffense bonus for the given equipment type and refine level
+ * @param equipment_type the equipment type
+ * @param refine_level the equipment refine level
+ * @return returns the bonus from refine db
+ **/
+ int (*get_bonus) (enum refine_type equipment_type, int refine_level);
+
+ /**
+ * Gets the maximum attack/deffense random bonus for the given equipment type and refine level
+ * @param equipment_type the equipment type
+ * @param refine_level the equipment refine level
+ * @return returns the bonus from refine db
+ **/
+ int(*get_randombonus_max) (enum refine_type equipment_type, int refine_level);
};
#ifdef HERCULES_CORE
@@ -104,4 +120,4 @@ void refine_defaults(void);
#endif
HPShared struct refine_interface *refine;
-#endif \ No newline at end of file
+#endif