From 3821e875857ee7ade36f417cf29d200a6c4d4374 Mon Sep 17 00:00:00 2001 From: sigonasr2 Date: Thu, 15 Sep 2022 21:30:08 -0500 Subject: [PATCH] Party member stats initiated Co-authored-by: sigonasr2 --- main.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/main.cpp b/main.cpp index de86eab..a9e4841 100644 --- a/main.cpp +++ b/main.cpp @@ -334,6 +334,7 @@ public: int OBJ_DISPLAY_OFFSET = 0; bool GAME_FLAGS[128]={}; std::array PARTY_MEMBER_OBJ; + std::array PARTY_MEMBER_STATS; bool messageBoxVisible=false; std::string messageBoxText=""; std::string targetText=""; @@ -379,6 +380,7 @@ public: EnableLayer(layer::COLLISION,false); + SetupPartyMemberStats(); SetupMoveList(); SetupAnimations(); SetupObjectInfo(); @@ -1199,6 +1201,12 @@ goes on a very long time, I hope you can understand this is only for testing pur return newObj; } + void SetupPartyMemberStats() { + for (int i=0;i<7;i++) { + PARTY_MEMBER_STATS[i]=new Entity(120,120,8,{0,0,0,0},4,{MOVELIST[BattleMoveName::TESTMOVE1]}); + } + } + void SetupMoveList() { MOVELIST[BattleMoveName::TESTMOVE1]=new Battle::Move("Test Move 1",30,5,{0,0,0,0}); MOVELIST[BattleMoveName::TESTMOVE2]=new Battle::Move("Test Move 2",40,10,{0,0,0,0});