summaryrefslogtreecommitdiffstats
path: root/src/Enchantments.h
diff options
context:
space:
mode:
authordaniel0916 <theschokolps@gmail.com>2014-04-19 15:10:50 +0200
committerdaniel0916 <theschokolps@gmail.com>2014-04-19 15:10:50 +0200
commita6de7bf1cd80847abed22e3b962a5b8650b2911c (patch)
tree9d117e42fb0b7aef9271688c6735ae65b7578c20 /src/Enchantments.h
parentMerge branch 'master' into Enchanting (diff)
downloadcuberite-a6de7bf1cd80847abed22e3b962a5b8650b2911c.tar
cuberite-a6de7bf1cd80847abed22e3b962a5b8650b2911c.tar.gz
cuberite-a6de7bf1cd80847abed22e3b962a5b8650b2911c.tar.bz2
cuberite-a6de7bf1cd80847abed22e3b962a5b8650b2911c.tar.lz
cuberite-a6de7bf1cd80847abed22e3b962a5b8650b2911c.tar.xz
cuberite-a6de7bf1cd80847abed22e3b962a5b8650b2911c.tar.zst
cuberite-a6de7bf1cd80847abed22e3b962a5b8650b2911c.zip
Diffstat (limited to '')
-rw-r--r--src/Enchantments.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/Enchantments.h b/src/Enchantments.h
index 3cb979042..fc848ebec 100644
--- a/src/Enchantments.h
+++ b/src/Enchantments.h
@@ -103,13 +103,13 @@ public:
// tolua_end
/** Add enchantment weights from item to the vector */
- static void AddItemEnchantmentWeights(cWeightedEnchantments & a_Enchantments, short & a_ItemType, int a_EnchantmentLevel);
+ static void AddItemEnchantmentWeights(cWeightedEnchantments & a_Enchantments, short a_ItemType, int a_EnchantmentLevel);
/** Add a enchantment weight to the vector */
- static void AddEnchantmentWeightToVector(cWeightedEnchantments * a_Enchantments, int a_Weight, cEnchantments a_Enchantment);
+ static void AddEnchantmentWeightToVector(cWeightedEnchantments * a_Enchantments, int a_Weight, int a_EnchantmentID, int a_EnchantmentLevel);
/** Remove a enchantment weight from the vector */
- static void RemoveEnchantmentWeightFromVector(cWeightedEnchantments * a_Enchantments, int a_EnchantmentID);
- static void RemoveEnchantmentWeightFromVector(cWeightedEnchantments * a_Enchantments, cEnchantments a_Enchantment);
+ static void RemoveEnchantmentWeightFromVector(cWeightedEnchantments & a_Enchantments, int a_EnchantmentID);
+ static void RemoveEnchantmentWeightFromVector(cWeightedEnchantments & a_Enchantments, const cEnchantments & a_Enchantment);
/** Check enchantment conflicts from enchantments from the vector */
static void CheckEnchantmentConflictsFromVector(cWeightedEnchantments & a_Enchantments, cEnchantments a_FirstEnchantment);