The open source repository for the action RPG game in development by Sig Productions titled 'Adventures in Lestoria'!
https://forums.lestoria.net
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
#include "Monster.h"
|
|
|
|
#include "MonsterStrategyHelpers.h"
|
|
|
|
#include "DEFINES.h"
|
|
|
|
#include "Crawler.h"
|
|
|
|
#include "utils.h"
|
|
|
|
|
|
|
|
INCLUDE_game
|
|
|
|
INCLUDE_BULLET_LIST
|
|
|
|
|
|
|
|
void Monster::STRATEGY::SLIMEKING(Monster&m,float fElapsedTime,int strategyNumber){
|
|
|
|
switch(m.phase){
|
|
|
|
case 0:{
|
|
|
|
m.size=ConfigInt("Phase1.Size")/100;
|
|
|
|
m.diesNormally=false;
|
|
|
|
m.iframeTimeUponHit=ConfigFloat("Phase5.IframeTimePerHit");
|
|
|
|
m.phase=1;
|
|
|
|
}break;
|
|
|
|
case 1:{
|
|
|
|
if(m.hp<=m.maxhp*ConfigFloat("Phase2.Change")/100){
|
|
|
|
m.phase=2;
|
|
|
|
}
|
|
|
|
}break;
|
|
|
|
case 2:{
|
|
|
|
if(m.hp<=m.maxhp*ConfigFloat("Phase3.Change")/100){
|
|
|
|
m.phase=3;
|
|
|
|
}
|
|
|
|
}break;
|
|
|
|
case 3:{
|
|
|
|
if(m.hp<=m.maxhp*ConfigFloat("Phase4.Change")/100){
|
|
|
|
m.phase=4;
|
|
|
|
}
|
|
|
|
}break;
|
|
|
|
case 4:{
|
|
|
|
if(m.hp<=0){
|
|
|
|
m.phase=5;
|
|
|
|
}
|
|
|
|
}break;
|
|
|
|
}
|
|
|
|
}
|