diff options
author | STRWarrior <niels.breuker@hotmail.nl> | 2014-10-15 14:44:07 +0200 |
---|---|---|
committer | STRWarrior <niels.breuker@hotmail.nl> | 2014-10-15 14:44:07 +0200 |
commit | ff5f57514e172e3344d6d50fce6bd8ea84e7f32b (patch) | |
tree | c3988d3d4b12ee37770ed026425bfa7b07f84dba /src/Enchantments.h | |
parent | Enchanted books generate in MineShafts chests (diff) | |
download | cuberite-ff5f57514e172e3344d6d50fce6bd8ea84e7f32b.tar cuberite-ff5f57514e172e3344d6d50fce6bd8ea84e7f32b.tar.gz cuberite-ff5f57514e172e3344d6d50fce6bd8ea84e7f32b.tar.bz2 cuberite-ff5f57514e172e3344d6d50fce6bd8ea84e7f32b.tar.lz cuberite-ff5f57514e172e3344d6d50fce6bd8ea84e7f32b.tar.xz cuberite-ff5f57514e172e3344d6d50fce6bd8ea84e7f32b.tar.zst cuberite-ff5f57514e172e3344d6d50fce6bd8ea84e7f32b.zip |
Diffstat (limited to '')
-rw-r--r-- | src/Enchantments.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/Enchantments.h b/src/Enchantments.h index 798d3bf61..e4390a5f2 100644 --- a/src/Enchantments.h +++ b/src/Enchantments.h @@ -126,7 +126,10 @@ public: static void CheckEnchantmentConflictsFromVector(cWeightedEnchantments & a_Enchantments, cEnchantments a_FirstEnchantment); /** Gets random enchantment from Vector and returns it */ - static cEnchantments GetRandomEnchantmentFromVector(cWeightedEnchantments & a_Enchantments, int a_Seed = -1); + static cEnchantments GetRandomEnchantmentFromVector(cWeightedEnchantments & a_Enchantments); + + /** Returns an enchantment from a Vector using cNoise. Mostly used for generators.*/ + static cEnchantments GenerateEnchantmentFromVector(cWeightedEnchantments & a_Enchantments, int a_Seed); /** Returns true if a_Other doesn't contain exactly the same enchantments and levels */ bool operator !=(const cEnchantments & a_Other) const; |