Updates CreatureLib, adds Fling Power.
continuous-integration/drone/push Build is failing
Details
continuous-integration/drone/push Build is failing
Details
This commit is contained in:
parent
c91b1b0906
commit
2ebe63a14e
|
@ -44,7 +44,7 @@ class PkmnLibConan(ConanFile):
|
|||
self.options["AngelScript"].link_std_statically = True
|
||||
|
||||
def requirements(self):
|
||||
self.requires("CreatureLib/1969f59a9ca1408b6c107d679a83f6b73aeb2af9@creaturelib/master")
|
||||
self.requires("CreatureLib/42050de18a9315921397d1da75b99671013203be@creaturelib/master")
|
||||
if self.options.script_handler == "angelscript":
|
||||
self.requires("AngelScript/2.34@AngelScript/Deukhoofd")
|
||||
else:
|
||||
|
|
|
@ -4,11 +4,15 @@
|
|||
#include <CreatureLib/Library/Items/Item.hpp>
|
||||
namespace PkmnLib::Library {
|
||||
class Item : public CreatureLib::Library::Item {
|
||||
uint8_t _flingPower;
|
||||
|
||||
public:
|
||||
Item(std::string name, CreatureLib::Library::ItemCategory category,
|
||||
CreatureLib::Library::BattleItemCategory battleCategory, int32_t price,
|
||||
std::unordered_set<std::string> flags)
|
||||
: CreatureLib::Library::Item(name, category, battleCategory, price, flags) {}
|
||||
std::unordered_set<std::string> flags, uint8_t flingPower)
|
||||
: CreatureLib::Library::Item(name, category, battleCategory, price, flags), _flingPower(flingPower) {}
|
||||
|
||||
inline uint8_t GetFlingPower() const { return _flingPower; }
|
||||
};
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue