]> git.localhorst.tv Git - l2e.git/blobdiff - src/common/Spell.cpp
implemented spell sorting
[l2e.git] / src / common / Spell.cpp
index 4fce22f1e42ea3e15992b969a952c8296cd9ee60..33979ca9811d97a32a84a28b30bedd71db3853fc 100644 (file)
@@ -23,6 +23,12 @@ Spell::Spell()
 }
 
 
+bool Spell::Less(const Spell *lhs, const Spell *rhs) {
+       // TODO: find out real spell sorting order
+       return lhs->Cost() < rhs->Cost();
+}
+
+
 void Spell::CreateTypeDescription() {
        Spell s;