X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fcommon%2FSpell.cpp;h=bcf7f2948aaf1b0579502d052f2c2d3dd8ab63fd;hb=f1e445b660889a18eaf05e7fcc16b360fb8605d5;hp=4fce398bdaf16e534c702736b1d12d101f0362f9;hpb=7bdb085319a41fc51658a086696ab81c6b18ae52;p=l2e.git diff --git a/src/common/Spell.cpp b/src/common/Spell.cpp index 4fce398..bcf7f29 100644 --- a/src/common/Spell.cpp +++ b/src/common/Spell.cpp @@ -29,14 +29,15 @@ void Spell::CreateTypeDescription() { int targetsId(TypeDescription::GetTypeId("TargetingMode")); TypeDescription &td(TypeDescription::CreateOrGet("Spell")); + td.SetDescription("All data about a spell (soon)."); td.SetConstructor(&Construct); td.SetSize(sizeof(Spell)); - td.AddField("name", FieldDescription(((char *)&s.name) - ((char *)&s), stringId, true)); - td.AddField("cost", FieldDescription(((char *)&s.cost) - ((char *)&s), numberId, false)); - td.AddField("targets", FieldDescription(((char *)&s.targetingMode) - ((char *)&s), targetsId, false)); - td.AddField("status", FieldDescription(((char *)&s.status) - ((char *)&s), boolId, false)); - td.AddField("battle", FieldDescription(((char *)&s.battle) - ((char *)&s), boolId, false)); + td.AddField("name", FieldDescription(((char *)&s.name) - ((char *)&s), stringId).SetReferenced().SetDescription("the spell's name")); + td.AddField("cost", FieldDescription(((char *)&s.cost) - ((char *)&s), numberId).SetDescription("Amount of magic points needed and deducted for invocation")); + td.AddField("targets", FieldDescription(((char *)&s.targetingMode) - ((char *)&s), targetsId).SetDescription("how target selection is to be performed")); + td.AddField("status", FieldDescription(((char *)&s.status) - ((char *)&s), boolId).SetDescription("if the spell can be used at the status screen")); + td.AddField("battle", FieldDescription(((char *)&s.battle) - ((char *)&s), boolId).SetDescription("if the spell can be used in battle")); } void Spell::Construct(void *data) {