X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fcommon%2FSpell.cpp;h=d776f8b7139b6c8847ec5999f38a6b52903f1f02;hb=5cbe0ba11d6fe180f49101547f05e7fe586d55c0;hp=33979ca9811d97a32a84a28b30bedd71db3853fc;hpb=6a954cc1f6324d61282e21ec0d7dee6e6265f44f;p=l2e.git diff --git a/src/common/Spell.cpp b/src/common/Spell.cpp index 33979ca..d776f8b 100644 --- a/src/common/Spell.cpp +++ b/src/common/Spell.cpp @@ -1,10 +1,3 @@ -/* - * Spell.cpp - * - * Created on: Aug 10, 2012 - * Author: holy - */ - #include "Spell.h" #include "TargetingMode.h" @@ -18,7 +11,12 @@ using loader::TypeDescription; namespace common { Spell::Spell() -: name(""), value(0), cost(0), status(false), battle(false) { +: name("") +, value(0) +, cost(0) +, heroMask(0) +, status(false) +, battle(false) { } @@ -38,8 +36,9 @@ void Spell::CreateTypeDescription() { td.SetSize(sizeof(Spell)); td.AddField("name", FieldDescription(((char *)&s.name) - ((char *)&s), Interpreter::STRING_ID).SetReferenced().SetDescription("the spell's name")); - td.AddField("cost", FieldDescription(((char *)&s.cost) - ((char *)&s), Interpreter::NUMBER_ID).SetDescription("Amount of magic points needed and deducted for invocation")); + td.AddField("cost", FieldDescription(((char *)&s.cost) - ((char *)&s), Interpreter::NUMBER_ID).SetDescription("amount of magic points needed and deducted for invocation")); td.AddField("targets", FieldDescription(((char *)&s.targetingMode) - ((char *)&s), TargetingMode::TYPE_ID).SetDescription("how target selection is to be performed")); + td.AddField("heroMask", FieldDescription(((char *)&s.heroMask) - ((char *)&s), Interpreter::NUMBER_ID).SetDescription("which heroes can invoke this spell")); td.AddField("status", FieldDescription(((char *)&s.status) - ((char *)&s), Interpreter::BOOLEAN_ID).SetDescription("if the spell can be used at the status screen")); td.AddField("battle", FieldDescription(((char *)&s.battle) - ((char *)&s), Interpreter::BOOLEAN_ID).SetDescription("if the spell can be used in battle")); }