X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fbattle%2FMonster.cpp;h=0e87e3960683bf1f3f45771c2590c5fdb9b1b856;hb=8f4e771181491f1d83ce0c907b8dda0fbbe0ce93;hp=0088c7935856f817ebdd05015f287635c46c6be7;hpb=cc3d698b8c1ad09d7a3f9e3f28bc84e0ac1735ea;p=l2e.git diff --git a/src/battle/Monster.cpp b/src/battle/Monster.cpp index 0088c79..0e87e39 100644 --- a/src/battle/Monster.cpp +++ b/src/battle/Monster.cpp @@ -5,6 +5,7 @@ #include "../graphics/Sprite.h" #include "../loader/Interpreter.h" #include "../loader/TypeDescription.h" +#include "../math/Vector.h" using common::Stats; using graphics::Animation; @@ -71,6 +72,9 @@ void Monster::CreateTypeDescription() { td.AddField("mana", FieldDescription(((char *)&m.mana) - ((char *)&m), Interpreter::NUMBER_ID)); td.AddField("stats", FieldDescription(((char *)&m.stats) - ((char *)&m), Stats::TYPE_ID)); + td.AddField("expReward", FieldDescription(((char *)&m.expReward) - ((char *)&m), Interpreter::NUMBER_ID)); + td.AddField("goldReward", FieldDescription(((char *)&m.goldReward) - ((char *)&m), Interpreter::NUMBER_ID)); + td.AddField("attackAnimation", FieldDescription(((char *)&m.attackAnimation) - ((char *)&m), Animation::TYPE_ID).SetReferenced()); td.AddField("spellAnimation", FieldDescription(((char *)&m.spellAnimation) - ((char *)&m), Animation::TYPE_ID).SetReferenced()); td.AddField("meleeAnimation", FieldDescription(((char *)&m.meleeAnimation) - ((char *)&m), Animation::TYPE_ID).SetReferenced());