Setup King Slime encounter, Boss room map setup with spawn and player, made non-infinite. Implemented enemy iframes and added phase framework for the boss.

This commit is contained in:
2023-09-07 01:35:23 -05:00
parent c9fa25a823
commit c75e56d642
15 changed files with 363 additions and 1041 deletions
+4
View File
@@ -85,6 +85,9 @@ private:
int pathIndex=0;
float lastHitTimer=0;
std::shared_ptr<DamageNumber>damageNumberPtr;
int phase=0;
bool diesNormally=true; //If set to false, the monster death is handled in a special way. Set it to true when it's time to die.
float iframeTimeUponHit=0;
protected:
public:
Monster()=delete;
@@ -128,6 +131,7 @@ public:
static void InitializeStrategies();
bool HasIframes();
float GetZ();
std::string GetStrategy();
private:
struct STRATEGY{
static int _GetInt(Monster&m,std::string param,int strategyNumber,int index=0);