diff options
author | daniel0916 <theschokolps@gmail.com> | 2014-04-19 22:37:29 +0200 |
---|---|---|
committer | daniel0916 <theschokolps@gmail.com> | 2014-04-19 22:37:29 +0200 |
commit | 098be1c7fc0d2e0309bc2a649d21090265535a3e (patch) | |
tree | c5f0b53b4208b96089788719dfe2a1115ca5804d /src/Enchantments.h | |
parent | Merge branch 'master' into Enchanting (diff) | |
download | cuberite-098be1c7fc0d2e0309bc2a649d21090265535a3e.tar cuberite-098be1c7fc0d2e0309bc2a649d21090265535a3e.tar.gz cuberite-098be1c7fc0d2e0309bc2a649d21090265535a3e.tar.bz2 cuberite-098be1c7fc0d2e0309bc2a649d21090265535a3e.tar.lz cuberite-098be1c7fc0d2e0309bc2a649d21090265535a3e.tar.xz cuberite-098be1c7fc0d2e0309bc2a649d21090265535a3e.tar.zst cuberite-098be1c7fc0d2e0309bc2a649d21090265535a3e.zip |
Diffstat (limited to 'src/Enchantments.h')
-rw-r--r-- | src/Enchantments.h | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/Enchantments.h b/src/Enchantments.h index fc848ebec..a376d27cf 100644 --- a/src/Enchantments.h +++ b/src/Enchantments.h @@ -105,10 +105,13 @@ public: /** Add enchantment weights from item to the vector */ 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, int a_EnchantmentID, int a_EnchantmentLevel); - /** Remove a enchantment weight from the vector */ + /** Add a enchantment with weight to the vector */ + static void AddEnchantmentWeightToVector(cWeightedEnchantments & a_Enchantments, int a_Weight, int a_EnchantmentID, int a_EnchantmentLevel); + + /** Remove the entire enchantment (with weight) from the vector */ static void RemoveEnchantmentWeightFromVector(cWeightedEnchantments & a_Enchantments, int a_EnchantmentID); + + /** Remove the entire enchantment (with weight) from the vector */ static void RemoveEnchantmentWeightFromVector(cWeightedEnchantments & a_Enchantments, const cEnchantments & a_Enchantment); /** Check enchantment conflicts from enchantments from the vector */ @@ -137,7 +140,7 @@ protected: -// Define the cWeightedEnchantment struct: +// Define the cWeightedEnchantment struct for the Enchanting System to store the EnchantmentWeights: struct cWeightedEnchantment { int m_Weight; |