]> git.localhorst.tv Git - l2e.git/blobdiff - src/common/Spell.h
added partial type description of Spell
[l2e.git] / src / common / Spell.h
index 38d2395125d1df4aa403d9aa130c752b4979003b..9bf0a4b8c5b6b689d3f600db671be15ea162dd6d 100644 (file)
@@ -32,14 +32,14 @@ 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();
+
 private:
        enum Usability {
                // USABILITY_UNUSED = 1,
@@ -55,9 +55,9 @@ private:
 private:
        const char *name;
 
-       Uint16 value;
+       int value;
 
-       Uint8 cost;
+       int cost;
        Uint8 usability;
        TargetingMode targetingMode;
        HeroGroup usableBy;