]> git.localhorst.tv Git - l2e.git/blobdiff - src/common/Spell.h
tackled some problems (not all :) )
[l2e.git] / src / common / Spell.h
index 38d2395125d1df4aa403d9aa130c752b4979003b..eb8fa02928605b2e84b2aa37084fbdc994a43405 100644 (file)
@@ -32,14 +32,15 @@ public:
        HeroGroup &UsableBy() { return usableBy; }
        const HeroGroup &UsableBy() const { return usableBy; }
 
-       // TODO: add missing spell properties
-
 // temporary setters
 public:
        void SetName(const char *n) { name = n; }
        void SetCost(Uint8 c) { cost = c; }
        void SetUsableInBattle() { usability |= USABILITY_BATTLE; }
 
+       static void CreateTypeDescription();
+       static void Construct(void *);
+
 private:
        enum Usability {
                // USABILITY_UNUSED = 1,
@@ -55,9 +56,9 @@ private:
 private:
        const char *name;
 
-       Uint16 value;
+       int value;
 
-       Uint8 cost;
+       int cost;
        Uint8 usability;
        TargetingMode targetingMode;
        HeroGroup usableBy;