#include<iostream>
#include<time.h>
#include<math.h>
#include<string.h>
#include<conio.h>
#include<stdio.h>
#include<windows.h>
#include<fstream>
int saveflag=0,deadflag=0,galleryflag=0;
using namespace std;
const int totalpetalnumber=34;
char bigletter[10][200]={{""},
{" ??? ** *** ****** ******** **** ***** **** ** * ** * ** *** ** *** ******** ** ** ** ** ***** ** ** ** *** ** **** ******* ** ** "},
{" ?* ** ** * ** * * * * ** * * * * ****** ** ** ** ** ** ** * ** ** ** ** * ** * ** * * * ** * * * ** ** *"},
{" ?? ******* * * ********** ****** ** * ** * ********* **** * **** ** ** * ** ***** ** ** ** * * * * * ******* *** * ** ***"},
{" * ** ** * ** * * ** * ** * * * * * * ** *** ** * * * * * ** * * ** ***** * ** ** * * * * * * * ** * * * * *"},
{" ? * **** ****** ***** **** ***** ** * ****** ** * ** * * ** **** ** ** ** * ** * ** **** ** ******** ** * *** ** * ** ** "}
};
const int fireworkframe=16,interval=100;
char firework[10][200]={{""},
{" _ | _ _ | _ # * * * * * * "},
{" | \\|/ \\|/ / \\ # # # # * * * ** * "},
{" | * -X- -- -- _- -_ _ _ * * * * "},
{" | | | /|\\ /|\\ / \\# # "},
{" | | / | \\ / | \\ / \\ * * * * "},
{" | | | | | | # | # # # * * * ** * "},
{" | | | # * * * * * * "},
{" | | "},
{" | | "}
};
char RGB[20][30]={"\033[0m","\033[38;2;126;239;109m","\033[38;2;255;230;93m","\033[38;2;77;82;227m","\033[38;2;134;31;222m","\033[38;2;222;31;31m","\033[38;2;31;219;222m","\033[38;2;255;43;117m","","","",
"\033[38;2;30;167;97m","\033[38;2;224;209;175m","\033[38;2;87;133;186m","\033[38;2;58;160;73m","\033[38;2;102;102;51m","\033[38;2;167;114;30m"};
char rarityname[10][10]={"None","Common","Unusual","Rare","Epic","Legendary","Mythic","Ultra"};
char mapname[10][10]={"Centralia","Garden","Desert","Ocean","Jungle","Sewer","AntHell"};
char mobname[100][20]={"ANT EGG","SPIDER","HORNET","BEETLE","SANDSTORM","CRAB","LEECH","LEAFBUG","MANTIS","ROACH","QUEEN ANT","Rock","Ladybug","Ant Hole","Spider","Dandelion","Bee","Hornet","Centipede","","",
"Cactus","Beetle","Scorpion","Ladybug","Ant Burrow","Sandstorm","Centipede","","","","Bubble","Sponge","Shell","Jellyfish","Starfish","Crab","Leech","","","",
"Bush","Wasp","Leafbug","Mantis","Termite Mound","Ladybug","Centipede","Firefly","","","Moth","Fly","Roach","","","","","","","",
"Baby Ant","Worker Ant","Soldier Ant","Queen Ant","Baby Ant","Worker Ant","Soldier Ant","Baby Ant","Worker Ant","Soldier Ant"};
char shortmobname[100][20]={"ANTEGG","SPIDER","HORNET","BEETLE","STORM","CRAB","LEECH","LEAF","MANTIS","ROACH","QUEEN","Rock","Lady","Hole","Spider","Dandy","Bee","Hornet","Centi","","",
"Cactus","Beetle","Scorp","Lady","Burrow","Storm","Centi","","","","Bubble","Sponge","Shell","Jelly","Star","Crab","Leech","","","",
"Bush","Wasp","Leaf","Mantis","Mound","Lady","Centi","Fire","","","Moth","Fly","Roach","","","","","","","",
"Baby","Worker","Soldr","Queen","Baby","Worker","Soldr","Baby","Worker","Soldr"};
char petalname[100][20]={"WEB","Basic","Light","Rock","Rose","Stinger","Iris","Wing","Missile","Cactus","Faster","Pollen","Dandelion","Egg","Heavy","Yinyang","Leaf",
"Salt","Rice","Sand","Starfish","Pearl","Lightning","Jelly","Claw","Shell","Sponge","Soil","Fangs","Peas","Relic","Root","Bur","Cotton","Air"};
char shortpetalname[100][20]={"WEB","Basic","Light","Rock","Rose","Sting","Iris","Wing","Miss","Cactus","Faster","Pollen","Dandy","Egg","Heavy","Yiny","Leaf",
"Salt","Rice","Sand","Star","Pearl","Lightn","Jelly","Claw","Shell","Sponge","Soil","Fangs","Peas","Relic","Root","Bur","Cotton","Air"};
char skillname[30][20]={"","Recover","Medic","Armor","Reload","Cutter","Health","Action","Antitoxicity","Evasion","Strength","Clear","Knockback","Accuracy","Size","Crafting","Reflect"};
char environmentname[30][20]={"None","Speedy","Dry","Vibrant","Rotten","Narrow","Polluted","Foggy","Ambushed","Social","Stifle","SHINY",
"SPEEDY","DRY","VIBRANT","ROTTEN","NARROW","POLLUTED","FOGGY","AMBUSHED","SOCIAL","STIFLE"};
char orderkindname[10][10]={"","ID","Rarity","Level","Name"};
int PetalExp[10]={0,8,12,20,40,100,300};
int LevelExp[25]={0},LevelHealth[25]={0,200,200,210,210,220,230,240,250,260,280,300,320,340,360,390,420,460,500,550,600};
int SkillMaxLevel[30]={16,5,5,5,5,5,5,5,4,4,4,4,4,3,3,3,2},SkillTP[30]={0,2,2,2,2,2,2,2,3,3,3,4,4,6,6,6,8},SkillStatP[30][10]={{0},{0,1,3,5,7,10},{0,10,20,30,40,50},{0,3,6,9,12,18},
{0,5,10,15,20,25},{0,20,40,60,90,120},{0,10,20,30,40,50},{0,10,20,30,40,50},{0,20,50,80,110},{0,8,15,20,30},{0,5,8,12,18},{0,25,40,60,90},{0,8,15,22,30},{0,15,30,45},{0,1,2,3},{0,20,40,60},{0,50,90}};
int MobBaseHealth[10]={0,15,20,30,50,100,200,300},MobBaseDamage[10]={0,10,12,15,20,30,45,60};
int PetalBaseDamage[10][20]={0},DamageIncrease[10]={0,5,8,11,15,21,30},PetalBaseHealth[10][20]={0},HealthIncrease[10]={0,2,2,3,4,5,6};
int BossRarity[10][5]={{0},{0,4,4,5},{0,4,5,5},{0,5,5,6},{0,5,6,6},{0,6,6,7},{0,6,7,7},{0,7,7,7}},BossHealth10[10]={0,10,12,12,15,15,20,25},BossDamage10[10]={0,8,10,12,14,16,18,20};
int AttackChanceP[15][15]={{0,0,0,0,0,0,0,0,0,0,0}},DefendChanceP[15][15]={{100,100,100,100,100,100,100,100,100,100,100}};
int RarityUpChanceP[10][20]={{0},{0,20,80,100},{0,15,60,100},{0,12,50,80},{0,10,40,60},{0,8,30,50}};
int LevelUpChanceP[10][20]={{0},{33,31,29,27},{25,23,22,21},{20,19,18,17},{16,15,14,13},{12,11,10,10},{9,8,7,6,5,5,5,5,5,5}};
int BetterRarityChanceP[10][5]={{46,46,8},{70,28,2},{74,25,1},{79,20,1},{83,16,1},{86,14,0},{100,0,0}};
int BetterLevelChanceP[10][5]={{100,0,0},{50,33,17},{59,30,11},{66,26,8},{71,23,6},{77,19,4},{83,15,2}};
int KindChanceP[10]={4,10,30,30,30},HealthFactor10[10]={0,2,2,3,3},DamageFactor10[10]={0,5,30,10,20};
int MobRarityPoint[10]={0,2,6,12,22,36,54};
int FloorWave[10][10]={{0}},FloorNumFactor10[10]={0,10,11,12,13,15,17,20},FloorMaxAmount[10]={0,6,7,8,8,9,9,10},WaveRarityP00[60][10]={{0}};
int MobDropRateP00[10][10][10]={{{0}}};
int WorldMap[10][10][10]={{{0}},{{0,0,23},{0,17,17,38},{0,16,15},{0,14,13,10},{61,14,12,11,30},{0,0,51,20}},{{0,0,0,11},{0,25,21,20},{0,24,21},{63,22,23,40},{0,0,17}},
{{0,0,17,43},{0,0,38,38},{11,30,31,35},{0,30,32,33},{0,0,34,37},{0,0,36,36},{0,0,40}},{{0,36},{23,40,0,66},{0,41,42,43},{0,44,44,45},{0,0,0,46}},
{{12},{51,52,54},{0,53,53},{0,0,38}},{{0,0,62,61,14},{0,0,62,61},{66,65,63,63,22},{66,65,64,64},{43}}};
int MapSpawnNum[100]={0},MapSpawnRarity[100]={0},MapSpawnKind[100]={0},MapSpawnID[100][20]={0},MapSpawnChanceP[100][20]={0};
int MobHealth[100]={0,15,15,20,15,20,10,10,15,15,25,5,15,10,15,8,10,12,6,0,0,5,20,12,10,10,15,6,0,0,0,1,10,15,12,20,15,10,0,0,0,8,10,10,15,10,15,6,10,0,0,12,10,15,0,0,0,0,0,0,0,8,12,15,30,8,10,12,10,15,25};
int MobDamage[100]={0,3,3,2,5,3,2,3,3,3,3,1,2,1,2,1,5,3,2,0,0,3,3,2,1,1,3,2,0,0,0,1,0,1,2,3,5,2,0,0,0,1,3,3,2,1,2,2,3,0,0,2,3,3,0,0,0,0,0,0,0,2,2,3,2,3,3,5,2,2,2};
int MobDodgeP[100]={0,70,50,60,50,70,30,60,50,70,30,0,50,0,50,0,50,30,0,0,0,0,30,0,80,0,50,0,0,0,0,0,0,0,0,30,80,0,0,0,0,0,30,30,30,0,50,0,50,0,0,50,50,30,0,0,0,0,0,0,0,30,30,50,0,30,30,50,30,30,50};
int MobSpeed[100]={0,6,5,5,4,6,6,5,4,6,3,8,20,10,30,10,30,20,15,0,0,10,20,20,30,10,20,25,0,0,0,20,15,20,15,20,30,25,0,0,0,10,30,20,15,10,20,15,25,0,0,25,25,30,0,0,0,0,0,0,0,20,20,20,15,20,20,20,20,20,20};
int MobLootNum[100]={0},MobLootID[100][5]={0},MobDropRate[100][5]={0};
int MobType[100]={4,4,4,4,4,4,4,4,4,4,4,1,2,1,4,4,2,4,2,0,0,4,4,4,2,1,2,2,0,0,0,1,1,4,4,4,4,4,0,0,0,1,4,2,4,1,2,4,4,0,0,2,4,4,0,0,0,0,0,0,0,2,2,4,4,2,2,4,2,2,4};
int PetalHealth[50]={1000,5,6,10,5,1,1,2,2,3,3,5,2,12,15,2,3,5,1,8,3,6,1,6,1,5,15,5,2,4,5,6,1,8,1};
int PetalDamage[50]={0,5,3,8,2,20,3,6,8,5,6,8,3,1,6,2,3,3,1,3,3,8,8,3,3,2,1,3,6,4,3,2,6,1,1};
int PetalSize[50]={20,10,6,12,10,6,6,5,12,12,6,10,12,15,15,10,12,10,8,6,10,15,10,10,10,10,10,15,10,12,8,10,8,15,1};
int PetalATK1P[50]={0,40,40,50,20,50,40,70,20,40,50,20,20,0,10,0,60,40,50,40,40,80,0,50,50,20,0,40,50,0,60,20,60,0,100};
int PetalATK2P[50]={0,80,70,90,50,70,80,100,20,80,90,20,20,0,50,0,80,80,60,80,60,100,0,80,90,50,0,60,80,0,80,30,70,0,100};
int PetalDEF1P[50]={0,60,20,50,50,20,30,60,30,40,50,60,30,70,50,60,30,40,20,40,50,30,0,60,50,50,60,30,30,50,20,50,0,10,0};
int PetalDEF2P[50]={0,80,60,90,20,30,40,100,80,80,60,80,80,50,70,60,60,70,30,80,80,80,0,90,80,20,70,50,50,80,50,60,0,50,0};
int PetalSpeed[50]={0,50,60,30,40,30,30,60,40,30,20,30,40,10,30,50,20,40,500,50,20,30,30,30,40,40,30,50,30,50,30,30,40,40,200};
int PetalReload[50]={1,300,500,500,500,600,400,300,500,300,300,300,300,200,600,300,300,300,200,500,300,500,300,400,500,500,300,300,300,500,300,300,500,600,200};
int MapEnvironment[20][10]={{0},{0,1,1,1,0,0,0},{0,1,1,0,0,0,1},{0,1,0,1,1,0,0},{0,1,0,0,1,1,0},{0,1,0,0,0,1,1},{0,0,1,1,0,1,0},{0,0,1,0,1,1,0},{0,0,1,0,1,0,1},{0,0,0,1,1,0,1},{0,0,0,1,0,1,1}};
ifstream fin;
ofstream fout;
char comment[50]="";
int currentcomment=38,selectX=0,selectY=0;
int modnum=0,modusing[500]={0};
int rock101=0,stinger101=0,iris101=0,wing101=0,faster101=0,yinyang101=0,leaf101=0,yggdrasil101=0,pearl101=0,lightning101=0;
void CodeChecker(int t)
{
system("cls");
cout<<"OK\n"<<t;
Sleep(1000);
system("cls");
return;
}
void CodeChecker(char t)
{
system("cls");
cout<<"OK\n"<<t;
Sleep(1000);
system("cls");
return;
}
int readnumf()
{
int numreading=0,sign=0;
char readf;
fin.get(readf);
while(sign==0||(readf>='0'&&readf<='9'))
{
if(sign==0&&(readf=='+'||(readf>='0'&&readf<='9')))
sign=1;
if(readf=='-')
sign=-1;
if(readf>='0'&&readf<='9')
numreading=numreading*10+readf-'0';
fin.get(readf);
}
return numreading;
}
void commentprint()
{
cout<<"\033["<<currentcomment<<";"<<45-strlen(comment)/2<<"H";
for(int i=0;i<strlen(comment);i++)
cout<<comment[i];
cout<<"\033[0m";
comment[0]='\0',currentcomment++;
return;
}
void clearcomment()
{
for(int i=38;i<=55;i++)
cout<<"\033["<<i<<";1H ";
currentcomment=38;
return;
}
void unselectxy()
{
if(selectX==0&&selectY==0)
return;
cout<<"\033["<<7+4*selectY<<";"<<9*selectX-1<<"H ";
cout<<"\033["<<8+4*selectY<<";"<<9*selectX-2<<"H \033["<<8+4*selectY<<";"<<9*selectX+7<<"H ";
cout<<"\033["<<9+4*selectY<<";"<<9*selectX-2<<"H \033["<<9+4*selectY<<";"<<9*selectX+7<<"H ";
cout<<"\033["<<10+4*selectY<<";"<<9*selectX-2<<"H \033["<<10+4*selectY<<";"<<9*selectX+7<<"H ";
cout<<"\033["<<11+4*selectY<<";"<<9*selectX-1<<"H ";
selectX=selectY=0;
return;
}
void selectxy(int x,int y)
{
if(selectX>0||selectY>0)
unselectxy();
cout<<"\033["<<7+4*y<<";"<<9*x-1<<"H||||||||";
cout<<"\033["<<8+4*y<<";"<<9*x-2<<"H-\033["<<8+4*y<<";"<<9*x+7<<"H-";
cout<<"\033["<<9+4*y<<";"<<9*x-2<<"H-\033["<<9+4*y<<";"<<9*x+7<<"H-";
cout<<"\033["<<10+4*y<<";"<<9*x-2<<"H-\033["<<10+4*y<<";"<<9*x+7<<"H-";
cout<<"\033["<<11+4*y<<";"<<9*x-1<<"H||||||||";
selectX=x,selectY=y;
return;
}
void letterprint(int x,int y,char letter)
{
if(letter>='a'&&letter<='z')
letter+=('A'-'a');
if(letter=='?')
for(int i=1;i<=5;i++)
{
cout<<"\033["<<x+i-1<<";"<<y<<"H";
for(int j=1;j<=4;j++)
cout<<bigletter[i][j];
}
if(letter>='A'&&letter<='Z')
for(int i=1;i<=5;i++)
{
cout<<"\033["<<x+i-1<<";"<<y<<"H";
for(int j=1;j<=4;j++)
cout<<bigletter[i][4*(letter-'A'+1)+j];
}
if(letter>='0'&&letter<='9')
for(int i=1;i<=5;i++)
{
cout<<"\033["<<x+i-1<<";"<<y<<"H";
for(int j=1;j<=4;j++)
cout<<bigletter[i][4*(letter-'0'+30)+j];
}
return;
}
void slowprint(int x,int y,char* word,int time)
{
cout<<"\033["<<x<<";"<<y<<"H";
for(int i=0;i<strlen(word);i++)
cout<<word[i],Sleep(time);
return;
}
void letterslowprint(int x,int y,char* word,int time)
{
for(int i=0;i<strlen(word);i++)
letterprint(x,y+5*i,word[i]),Sleep(time);
return;
}
void middleletterprint(int x,char* word,int rarity,bool shiny,bool collected)
{
int startpos=45-3*strlen(word),randomcolor=0;
if(shiny)
randomcolor=rand()%6+1;
for(int i=0;i<strlen(word);i++)
{
cout<<RGB[(rarity+i*randomcolor-1)%7+1];
if(collected)
letterprint(x,startpos+6*i,word[i]);
else
letterprint(x,startpos+6*i,'?');
cout<<RGB[0];
}
return;
}
void outc(int number,int digit)
{
int flag1=0,flag2=0;
if(digit%10!=0)
flag1=digit%10,digit-=digit%10;
if(digit==0)
digit=1;
if(flag1<0)
flag1=-flag1;
if(digit<0)
flag2=1,digit=-digit/100;
if(flag1)
{
int test=number/digit;
if(test==0)
test++;
if(test<0)
flag1--;
while(test)
test/=10,flag1--;
while(flag1>0)
flag1--,cout<<" ";
}
cout<<number/digit;
if(digit>1)
cout<<".";
while(digit>1)
{
number%=digit;
digit/=10;
cout<<number/digit;
}
if(flag2)
cout<<"%";
return;
}
void congrats()
{
letterslowprint(18,25,(char*)"CONGRATS",200);
Sleep(300);
system("cls");
int fireworkcountstart=100,fireworkcountfinish=100,fireworkflag[60][100]={0};
while(fireworkcountfinish)
{
for(int i=1;i<=40;i++)
for(int j=1;j<=79;j++)
if(fireworkflag[i][j]<0)
fireworkflag[i][j]=0;
for(int i=1;i<=40;i++)
for(int j=1;j<=79;j++)
if(fireworkflag[i][j]>0)
{
for(int fi=1;fi<=9;fi++)
{
cout<<"\033["<<i+fi<<";"<<j<<"H";
for(int fj=1;fj<=9;fj++)
cout<<firework[fi][9*fireworkflag[i][j]+fj];
}
fireworkflag[i][j]++;
if(fireworkflag[i][j]>fireworkframe+1)
fireworkflag[i][j]=0,fireworkcountfinish--;
}
for(int i=1;i<=40;i++)
for(int j=1;j<=79;j++)
if(fireworkflag[i][j]>0)
{
for(int fi=-8;fi<=8;fi++)
for(int fj=-8;fj<=8;fj++)
if(fi*fi+fj*fj>0&&i+fi>0&&j+fj>0)
fireworkflag[i+fi][j+fj]=-1;
}
for(int i=1;i<=40;i++)
for(int j=1;j<=79;j++)
if(fireworkflag[i][j]==0&&rand()%1000==0&&fireworkcountstart)
{
fireworkflag[i][j]=1,fireworkcountstart--;
for(int fi=-8;fi<=8;fi++)
for(int fj=-8;fj<=8;fj++)
if(fi*fi+fj*fj>0&&i+fi>0&&j+fj>0)
fireworkflag[i+fi][j+fj]=-1;
}
Sleep(interval);
}
Sleep(500);
return;
}
void settings()
{
for(int i=1;i<=20;i++)
LevelExp[i]=round(1000*pow(1.2,i)-1000);
for(int i=1;i<=6;i++)
{
for(int j=0;j<=4;j++)
PetalBaseDamage[i][j]=round((6+3*i+4*j)*pow(1+0.06*i,1+j));
for(int j=5;j<=10;j++)
PetalBaseDamage[i][j]=PetalBaseDamage[i][j-1]+DamageIncrease[i];
}
for(int i=1;i<=6;i++)
{
for(int j=0;j<=4;j++)
PetalBaseHealth[i][j]=6+round((1.5+2.5*i+1.5*j)*pow(2.3+0.3*j,0.1*i));
for(int j=5;j<=10;j++)
PetalBaseHealth[i][j]=PetalBaseHealth[i][j-1]+HealthIncrease[i];
}
for(int i=1;i<=9;i++)
{
AttackChanceP[i][0]=100;
for(int j=1;j<=9;j++)
AttackChanceP[i][j]=round(100*pow(0.1*i,0.1*j/(1-pow(0.1*j,0.1*i))));
AttackChanceP[i][10]=0;
}
for(int j=0;j<=9;j++)
AttackChanceP[10][j]=100;
AttackChanceP[10][10]=39;
for(int i=1;i<=9;i++)
{
DefendChanceP[i][0]=0;
for(int j=1;j<=9;j++)
DefendChanceP[i][j]=round(100*pow(0.1*j,0.1*i/(1-0.1*i)));
DefendChanceP[i][10]=100;
}
for(int j=0;j<=9;j++)
DefendChanceP[10][j]=0;
DefendChanceP[10][10]=39;
for(int i=1;i<=5;i++)
for(int j=4;j<=10;j++)
RarityUpChanceP[i][j]=100;
for(int i=1;i<=5;i++)
for(int j=4;j<=9;j++)
LevelUpChanceP[i][j]=LevelUpChanceP[i][3];
for(int i=1;i<=7;i++)
for(int j=0;j<=5;j++)
FloorWave[i][j]=round((0.5*i*j+i+2*j+2)*pow(1.05,i-1));
for(int i=1;i<=50;i++)
{
double a[100]={1},b[10]={0};
for(int j=1;j<=6*i*i*i;j++)
{
a[55]=0;
for(int k=55;k>=1;k--)
a[k]+=(a[k-1]-a[k])*(1.0/(6*i*i));
a[54]+=a[55];
a[0]-=a[0]*(1.0/(6*i*i));
}
for(int j=0;j<=54;j++)
{
int k=1;
while(k<7&&MobRarityPoint[k]<=j)
k++;
b[k]+=a[j];
}
for(int j=1;j<=7;j++)
WaveRarityP00[i][j]=round(b[j]*10000),WaveRarityP00[i][8]+=WaveRarityP00[i][j];
}
for(int r=1;r<=5;r++)
for(int i=1;i<=6;i++)
{
double a[40]={1,0},b[10]={0};
int c[10]={0};
int jmax[10]={0,5,8,11,14,17,20},rchance[10]={0,40,45,50,55,60},nnum[10]={0,2,5,8,12,16,20};
for(int j=1;j<=jmax[i];j++)
{
a[nnum[6]+1]=0;
for(int k=nnum[6]+1;k>=1;k--)
a[k]+=(a[k-1]-a[k])*0.01*rchance[r];
a[nnum[6]]+=a[nnum[6]+1];
a[0]-=a[0]*0.01*rchance[r];
}
for(int j=0;j<=nnum[6];j++)
{
int k=6;
while(nnum[k]>j)
k--;
b[k]+=a[j]*(nnum[k+1]-j)/(nnum[k+1]-nnum[k]);
b[k+1]+=a[j]*(j-nnum[k])/(nnum[k+1]-nnum[k]);
}
for(int j=0;j<=6;j++)
c[j]=round(b[j]*10000),c[7]+=c[j];
for(int j=0;j<=7;j++)
MobDropRateP00[r][i][j]=c[j];
}
MapSpawnNum[10]=3,MapSpawnRarity[10]=0,MapSpawnKind[10]=2,MapSpawnID[10][1]=12,MapSpawnChanceP[10][1]=20,MapSpawnID[10][2]=61,MapSpawnChanceP[10][2]=80;
MapSpawnNum[11]=9,MapSpawnRarity[11]=0,MapSpawnKind[11]=9,MapSpawnID[11][1]=11,MapSpawnChanceP[11][1]=15,MapSpawnID[11][2]=12,MapSpawnChanceP[11][2]=20,MapSpawnID[11][3]=13,MapSpawnChanceP[11][3]=2;
MapSpawnID[11][4]=61,MapSpawnChanceP[11][4]=20,MapSpawnID[11][5]=62,MapSpawnChanceP[11][5]=12,MapSpawnID[11][6]=63,MapSpawnChanceP[11][6]=5;
MapSpawnID[11][7]=16,MapSpawnChanceP[11][7]=15,MapSpawnID[11][8]=17,MapSpawnChanceP[11][8]=8,MapSpawnID[11][9]=18,MapSpawnChanceP[11][9]=3;
MapSpawnNum[12]=8,MapSpawnRarity[12]=1,MapSpawnKind[12]=9,MapSpawnID[12][1]=11,MapSpawnChanceP[12][1]=15,MapSpawnID[12][2]=12,MapSpawnChanceP[12][2]=20,MapSpawnID[12][3]=13,MapSpawnChanceP[12][3]=2;
MapSpawnID[12][4]=61,MapSpawnChanceP[12][4]=15,MapSpawnID[12][5]=62,MapSpawnChanceP[12][5]=12,MapSpawnID[12][6]=63,MapSpawnChanceP[12][6]=8;
MapSpawnID[12][7]=16,MapSpawnChanceP[12][7]=15,MapSpawnID[12][8]=17,MapSpawnChanceP[12][8]=10,MapSpawnID[12][9]=18,MapSpawnChanceP[12][9]=3;
MapSpawnNum[13]=12,MapSpawnRarity[13]=1,MapSpawnKind[13]=9,MapSpawnID[13][1]=11,MapSpawnChanceP[13][1]=15,MapSpawnID[13][2]=12,MapSpawnChanceP[13][2]=20,MapSpawnID[13][3]=13,MapSpawnChanceP[13][3]=2;
MapSpawnID[13][4]=61,MapSpawnChanceP[13][4]=10,MapSpawnID[13][5]=62,MapSpawnChanceP[13][5]=10,MapSpawnID[13][6]=63,MapSpawnChanceP[13][6]=10;
MapSpawnID[13][7]=16,MapSpawnChanceP[13][7]=15,MapSpawnID[13][8]=17,MapSpawnChanceP[13][8]=12,MapSpawnID[13][9]=18,MapSpawnChanceP[13][9]=6;
MapSpawnNum[14]=15,MapSpawnRarity[14]=2,MapSpawnKind[14]=9,MapSpawnID[14][1]=11,MapSpawnChanceP[14][1]=15,MapSpawnID[14][2]=12,MapSpawnChanceP[14][2]=20,MapSpawnID[14][3]=13,MapSpawnChanceP[14][3]=1;
MapSpawnID[14][4]=61,MapSpawnChanceP[14][4]=5,MapSpawnID[14][5]=62,MapSpawnChanceP[14][5]=8,MapSpawnID[14][6]=63,MapSpawnChanceP[14][6]=10;
MapSpawnID[14][7]=16,MapSpawnChanceP[14][7]=15,MapSpawnID[14][8]=17,MapSpawnChanceP[14][8]=20,MapSpawnID[14][9]=18,MapSpawnChanceP[14][9]=6;
MapSpawnNum[15]=8,MapSpawnRarity[15]=3,MapSpawnKind[15]=2,MapSpawnID[15][1]=15,MapSpawnChanceP[15][1]=80,MapSpawnID[15][2]=17,MapSpawnChanceP[15][2]=20;
MapSpawnNum[16]=12,MapSpawnRarity[16]=4,MapSpawnKind[16]=8,MapSpawnID[16][1]=11,MapSpawnChanceP[16][1]=12,MapSpawnID[16][2]=12,MapSpawnChanceP[16][2]=15,MapSpawnID[16][3]=13,MapSpawnChanceP[16][3]=2;
MapSpawnID[16][4]=14,MapSpawnChanceP[16][4]=15,MapSpawnID[16][5]=15,MapSpawnChanceP[16][5]=10,MapSpawnID[16][6]=16,MapSpawnChanceP[16][6]=15;
MapSpawnID[16][7]=17,MapSpawnChanceP[16][7]=25,MapSpawnID[16][8]=18,MapSpawnChanceP[16][8]=6;
MapSpawnNum[17]=18,MapSpawnRarity[17]=5,MapSpawnKind[17]=8,MapSpawnID[17][1]=11,MapSpawnChanceP[17][1]=15,MapSpawnID[17][2]=12,MapSpawnChanceP[17][2]=12,MapSpawnID[17][3]=13,MapSpawnChanceP[17][3]=1;
MapSpawnID[17][4]=14,MapSpawnChanceP[17][4]=12,MapSpawnID[17][5]=15,MapSpawnChanceP[17][5]=5,MapSpawnID[17][6]=16,MapSpawnChanceP[17][6]=12;
MapSpawnID[17][7]=17,MapSpawnChanceP[17][7]=40,MapSpawnID[17][8]=18,MapSpawnChanceP[17][8]=3;
MapSpawnNum[20]=5,MapSpawnRarity[20]=0,MapSpawnKind[20]=2,MapSpawnID[20][1]=22,MapSpawnChanceP[20][1]=90,MapSpawnID[20][2]=24,MapSpawnChanceP[20][2]=10;
MapSpawnNum[21]=15,MapSpawnRarity[21]=1,MapSpawnKind[21]=7,MapSpawnID[21][1]=21,MapSpawnChanceP[21][1]=25,MapSpawnID[21][2]=22,MapSpawnChanceP[21][2]=20,MapSpawnID[21][3]=23,MapSpawnChanceP[21][3]=15;
MapSpawnID[21][4]=24,MapSpawnChanceP[21][4]=5,MapSpawnID[21][5]=25,MapSpawnChanceP[21][5]=5,MapSpawnID[21][6]=26,MapSpawnChanceP[21][6]=20;
MapSpawnID[21][7]=27,MapSpawnChanceP[21][7]=10;
MapSpawnNum[22]=9,MapSpawnRarity[22]=2,MapSpawnKind[22]=7,MapSpawnID[22][1]=21,MapSpawnChanceP[22][1]=20,MapSpawnID[22][2]=22,MapSpawnChanceP[22][2]=20,MapSpawnID[22][3]=23,MapSpawnChanceP[22][3]=20;
MapSpawnID[22][4]=24,MapSpawnChanceP[22][4]=4,MapSpawnID[22][5]=25,MapSpawnChanceP[22][5]=8,MapSpawnID[22][6]=26,MapSpawnChanceP[22][6]=20;
MapSpawnID[22][7]=27,MapSpawnChanceP[22][7]=8;
MapSpawnNum[23]=12,MapSpawnRarity[23]=2,MapSpawnKind[23]=6,MapSpawnID[23][1]=21,MapSpawnChanceP[23][1]=25,MapSpawnID[23][2]=22,MapSpawnChanceP[23][2]=20,MapSpawnID[23][3]=23,MapSpawnChanceP[23][3]=25;
MapSpawnID[23][4]=24,MapSpawnChanceP[23][4]=2,MapSpawnID[23][5]=25,MapSpawnChanceP[23][5]=3,MapSpawnID[23][6]=26,MapSpawnChanceP[23][6]=25;
MapSpawnNum[24]=12,MapSpawnRarity[24]=3,MapSpawnKind[24]=7,MapSpawnID[24][1]=21,MapSpawnChanceP[24][1]=30,MapSpawnID[24][2]=22,MapSpawnChanceP[24][2]=20,MapSpawnID[24][3]=23,MapSpawnChanceP[24][3]=20;
MapSpawnID[24][4]=24,MapSpawnChanceP[24][4]=6,MapSpawnID[24][5]=25,MapSpawnChanceP[24][5]=12,MapSpawnID[24][6]=26,MapSpawnChanceP[24][6]=10;
MapSpawnID[24][7]=27,MapSpawnChanceP[24][7]=2;
MapSpawnNum[25]=15,MapSpawnRarity[25]=5,MapSpawnKind[25]=6,MapSpawnID[25][1]=21,MapSpawnChanceP[25][1]=20,MapSpawnID[25][2]=22,MapSpawnChanceP[25][2]=40,MapSpawnID[25][3]=23,MapSpawnChanceP[25][3]=20;
MapSpawnID[25][4]=24,MapSpawnChanceP[25][4]=2,MapSpawnID[25][5]=25,MapSpawnChanceP[25][5]=3,MapSpawnID[25][6]=26,MapSpawnChanceP[25][6]=15;
MapSpawnNum[30]=8,MapSpawnRarity[30]=1,MapSpawnKind[30]=5,MapSpawnID[30][1]=31,MapSpawnChanceP[30][1]=20,MapSpawnID[30][2]=32,MapSpawnChanceP[30][2]=15,MapSpawnID[30][3]=33,MapSpawnChanceP[30][3]=20;
MapSpawnID[30][4]=35,MapSpawnChanceP[30][4]=15,MapSpawnID[30][5]=36,MapSpawnChanceP[30][5]=30;
MapSpawnNum[31]=9,MapSpawnRarity[31]=1,MapSpawnKind[31]=5,MapSpawnID[31][1]=31,MapSpawnChanceP[31][1]=20,MapSpawnID[31][2]=32,MapSpawnChanceP[31][2]=20,MapSpawnID[31][3]=33,MapSpawnChanceP[31][3]=20;
MapSpawnID[31][4]=35,MapSpawnChanceP[31][4]=20,MapSpawnID[31][5]=36,MapSpawnChanceP[31][5]=20;
MapSpawnNum[32]=12,MapSpawnRarity[32]=1,MapSpawnKind[32]=6,MapSpawnID[32][1]=31,MapSpawnChanceP[32][1]=15,MapSpawnID[32][2]=32,MapSpawnChanceP[32][2]=30,MapSpawnID[32][3]=33,MapSpawnChanceP[32][3]=10;
MapSpawnID[32][4]=34,MapSpawnChanceP[32][4]=15,MapSpawnID[32][5]=35,MapSpawnChanceP[32][5]=15,MapSpawnID[32][6]=36,MapSpawnChanceP[32][6]=15;
MapSpawnNum[33]=18,MapSpawnRarity[33]=2,MapSpawnKind[33]=3,MapSpawnID[33][1]=32,MapSpawnChanceP[33][1]=10,MapSpawnID[33][2]=34,MapSpawnChanceP[33][2]=60,MapSpawnID[33][3]=36,MapSpawnChanceP[33][3]=30;
MapSpawnNum[34]=12,MapSpawnRarity[34]=3,MapSpawnKind[34]=5,MapSpawnID[34][1]=31,MapSpawnChanceP[34][1]=10,MapSpawnID[34][2]=33,MapSpawnChanceP[34][2]=50,MapSpawnID[34][3]=34,MapSpawnChanceP[34][3]=10;
MapSpawnID[34][4]=35,MapSpawnChanceP[34][4]=15,MapSpawnID[34][5]=36,MapSpawnChanceP[34][5]=15;
MapSpawnNum[35]=15,MapSpawnRarity[35]=4,MapSpawnKind[35]=4,MapSpawnID[35][1]=31,MapSpawnChanceP[35][1]=25,MapSpawnID[35][2]=33,MapSpawnChanceP[35][2]=20,MapSpawnID[35][3]=34,MapSpawnChanceP[35][3]=40;
MapSpawnID[35][4]=36,MapSpawnChanceP[35][4]=15;
MapSpawnNum[36]=15,MapSpawnRarity[36]=4,MapSpawnKind[36]=5,MapSpawnID[36][1]=31,MapSpawnChanceP[36][1]=10,MapSpawnID[36][2]=33,MapSpawnChanceP[36][2]=10,MapSpawnID[36][3]=35,MapSpawnChanceP[36][3]=10;
MapSpawnID[36][4]=36,MapSpawnChanceP[36][4]=10,MapSpawnID[36][5]=37,MapSpawnChanceP[36][5]=60;
MapSpawnNum[37]=9,MapSpawnRarity[37]=5,MapSpawnKind[37]=3,MapSpawnID[37][1]=31,MapSpawnChanceP[37][1]=30,MapSpawnID[37][2]=34,MapSpawnChanceP[37][2]=20,MapSpawnID[37][3]=35,MapSpawnChanceP[37][3]=50;
MapSpawnNum[38]=15,MapSpawnRarity[38]=5,MapSpawnKind[38]=3,MapSpawnID[38][1]=31,MapSpawnChanceP[38][1]=30,MapSpawnID[38][2]=33,MapSpawnChanceP[38][2]=10,MapSpawnID[38][3]=36,MapSpawnChanceP[38][3]=60;
MapSpawnNum[40]=3,MapSpawnRarity[40]=0,MapSpawnKind[40]=2,MapSpawnID[40][1]=41,MapSpawnChanceP[40][1]=90,MapSpawnID[40][2]=45,MapSpawnChanceP[40][2]=10;
MapSpawnNum[41]=5,MapSpawnRarity[41]=1,MapSpawnKind[41]=8,MapSpawnID[41][1]=41,MapSpawnChanceP[41][1]=40,MapSpawnID[41][2]=42,MapSpawnChanceP[41][2]=10,MapSpawnID[41][3]=43,MapSpawnChanceP[41][3]=15;
MapSpawnID[41][4]=44,MapSpawnChanceP[41][4]=10,MapSpawnID[41][5]=45,MapSpawnChanceP[41][5]=5,MapSpawnID[41][6]=46,MapSpawnChanceP[41][6]=10;
MapSpawnID[41][7]=47,MapSpawnChanceP[41][7]=5,MapSpawnID[41][8]=48,MapSpawnChanceP[41][8]=5;
MapSpawnNum[42]=8,MapSpawnRarity[42]=2,MapSpawnKind[42]=8,MapSpawnID[42][1]=41,MapSpawnChanceP[42][1]=40,MapSpawnID[42][2]=42,MapSpawnChanceP[42][2]=10,MapSpawnID[42][3]=43,MapSpawnChanceP[42][3]=15;
MapSpawnID[42][4]=44,MapSpawnChanceP[42][4]=10,MapSpawnID[42][5]=45,MapSpawnChanceP[42][5]=4,MapSpawnID[42][6]=46,MapSpawnChanceP[42][6]=8;
MapSpawnID[42][7]=47,MapSpawnChanceP[42][7]=5,MapSpawnID[42][8]=48,MapSpawnChanceP[42][8]=8;
MapSpawnNum[43]=12,MapSpawnRarity[43]=3,MapSpawnKind[43]=8,MapSpawnID[43][1]=41,MapSpawnChanceP[43][1]=35,MapSpawnID[43][2]=42,MapSpawnChanceP[43][2]=12,MapSpawnID[43][3]=43,MapSpawnChanceP[43][3]=15;
MapSpawnID[43][4]=44,MapSpawnChanceP[43][4]=12,MapSpawnID[43][5]=45,MapSpawnChanceP[43][5]=3,MapSpawnID[43][6]=46,MapSpawnChanceP[43][6]=8;
MapSpawnID[43][7]=47,MapSpawnChanceP[43][7]=5,MapSpawnID[43][8]=48,MapSpawnChanceP[43][8]=10;
MapSpawnNum[44]=15,MapSpawnRarity[44]=4,MapSpawnKind[44]=8,MapSpawnID[44][1]=41,MapSpawnChanceP[44][1]=30,MapSpawnID[44][2]=42,MapSpawnChanceP[44][2]=15,MapSpawnID[44][3]=43,MapSpawnChanceP[44][3]=15;
MapSpawnID[44][4]=44,MapSpawnChanceP[44][4]=15,MapSpawnID[44][5]=45,MapSpawnChanceP[44][5]=2,MapSpawnID[44][6]=46,MapSpawnChanceP[44][6]=10;
MapSpawnID[44][7]=47,MapSpawnChanceP[44][7]=3,MapSpawnID[44][8]=48,MapSpawnChanceP[44][8]=10;
MapSpawnNum[45]=18,MapSpawnRarity[45]=4,MapSpawnKind[45]=8,MapSpawnID[45][1]=41,MapSpawnChanceP[45][1]=20,MapSpawnID[45][2]=42,MapSpawnChanceP[45][2]=20,MapSpawnID[45][3]=43,MapSpawnChanceP[45][3]=20;
MapSpawnID[45][4]=44,MapSpawnChanceP[45][4]=20,MapSpawnID[45][5]=45,MapSpawnChanceP[45][5]=1,MapSpawnID[45][6]=46,MapSpawnChanceP[45][6]=8;
MapSpawnID[45][7]=47,MapSpawnChanceP[45][7]=3,MapSpawnID[45][8]=48,MapSpawnChanceP[45][8]=8;
MapSpawnNum[51]=8,MapSpawnRarity[51]=1,MapSpawnKind[51]=4,MapSpawnID[51][1]=51,MapSpawnChanceP[51][1]=40,MapSpawnID[51][2]=52,MapSpawnChanceP[51][2]=20,MapSpawnID[51][3]=14,MapSpawnChanceP[51][3]=20;
MapSpawnID[51][4]=53,MapSpawnChanceP[51][4]=20;
MapSpawnNum[52]=9,MapSpawnRarity[52]=2,MapSpawnKind[52]=4,MapSpawnID[52][1]=51,MapSpawnChanceP[52][1]=25,MapSpawnID[52][2]=52,MapSpawnChanceP[52][2]=25,MapSpawnID[52][3]=14,MapSpawnChanceP[52][3]=20;
MapSpawnID[52][4]=53,MapSpawnChanceP[52][4]=30;
MapSpawnNum[53]=9,MapSpawnRarity[53]=3,MapSpawnKind[53]=4,MapSpawnID[53][1]=51,MapSpawnChanceP[53][1]=25,MapSpawnID[53][2]=52,MapSpawnChanceP[53][2]=30,MapSpawnID[53][3]=14,MapSpawnChanceP[53][3]=20;
MapSpawnID[53][4]=53,MapSpawnChanceP[53][4]=25;
MapSpawnNum[54]=12,MapSpawnRarity[54]=5,MapSpawnKind[54]=4,MapSpawnID[54][1]=51,MapSpawnChanceP[54][1]=15,MapSpawnID[54][2]=52,MapSpawnChanceP[54][2]=20,MapSpawnID[54][3]=14,MapSpawnChanceP[54][3]=40;
MapSpawnID[54][4]=53,MapSpawnChanceP[54][4]=25;
MapSpawnNum[61]=8,MapSpawnRarity[61]=2,MapSpawnKind[61]=3,MapSpawnID[61][1]=61,MapSpawnChanceP[61][1]=30,MapSpawnID[61][2]=62,MapSpawnChanceP[61][2]=30,MapSpawnID[61][3]=63,MapSpawnChanceP[61][3]=40;
MapSpawnNum[62]=9,MapSpawnRarity[62]=4,MapSpawnKind[62]=4,MapSpawnID[62][1]=61,MapSpawnChanceP[62][1]=15,MapSpawnID[62][2]=62,MapSpawnChanceP[62][2]=24,MapSpawnID[62][3]=63,MapSpawnChanceP[62][3]=60;
MapSpawnID[62][4]=64,MapSpawnChanceP[62][4]=1;
MapSpawnNum[63]=8,MapSpawnRarity[63]=3,MapSpawnKind[63]=3,MapSpawnID[63][1]=65,MapSpawnChanceP[63][1]=25,MapSpawnID[63][2]=66,MapSpawnChanceP[63][2]=30,MapSpawnID[63][3]=67,MapSpawnChanceP[63][3]=45;
MapSpawnNum[64]=9,MapSpawnRarity[64]=4,MapSpawnKind[64]=3,MapSpawnID[64][1]=65,MapSpawnChanceP[64][1]=12,MapSpawnID[64][2]=66,MapSpawnChanceP[64][2]=25,MapSpawnID[64][3]=67,MapSpawnChanceP[64][3]=63;
MapSpawnNum[65]=8,MapSpawnRarity[65]=3,MapSpawnKind[65]=3,MapSpawnID[65][1]=68,MapSpawnChanceP[65][1]=25,MapSpawnID[65][2]=69,MapSpawnChanceP[65][2]=30,MapSpawnID[65][3]=70,MapSpawnChanceP[65][3]=45;
MapSpawnNum[66]=9,MapSpawnRarity[66]=4,MapSpawnKind[66]=3,MapSpawnID[66][1]=68,MapSpawnChanceP[66][1]=12,MapSpawnID[66][2]=69,MapSpawnChanceP[66][2]=25,MapSpawnID[66][3]=70,MapSpawnChanceP[66][3]=63;
MobLootNum[11]=2,MobLootID[11][1]=3,MobDropRate[11][1]=3,MobLootID[11][2]=14,MobDropRate[11][2]=1;
MobLootNum[12]=2,MobLootID[12][1]=2,MobDropRate[12][1]=3,MobLootID[12][2]=4,MobDropRate[12][2]=3;
MobLootNum[13]=3,MobLootID[13][1]=7,MobDropRate[13][1]=4,MobLootID[13][2]=13,MobDropRate[13][2]=5,MobLootID[13][3]=27,MobDropRate[13][3]=4;
MobLootNum[14]=2,MobLootID[14][1]=6,MobDropRate[14][1]=3,MobLootID[14][2]=10,MobDropRate[14][2]=3;
MobLootNum[15]=2,MobLootID[15][1]=11,MobDropRate[15][1]=2,MobLootID[15][2]=12,MobDropRate[15][2]=3;
MobLootNum[16]=2,MobLootID[16][1]=5,MobDropRate[16][1]=3,MobLootID[16][2]=11,MobDropRate[16][2]=2;
MobLootNum[17]=2,MobLootID[17][1]=5,MobDropRate[17][1]=1,MobLootID[17][2]=8,MobDropRate[17][2]=3;
MobLootNum[18]=2,MobLootID[18][1]=16,MobDropRate[18][1]=2,MobLootID[18][2]=29,MobDropRate[18][2]=1;
MobLootNum[21]=2,MobLootID[21][1]=5,MobDropRate[21][1]=2,MobLootID[21][2]=9,MobDropRate[21][2]=4;
MobLootNum[22]=2,MobLootID[22][1]=13,MobDropRate[22][1]=3,MobLootID[22][2]=17,MobDropRate[22][2]=1;
MobLootNum[23]=2,MobLootID[23][1]=6,MobDropRate[23][1]=3,MobLootID[23][2]=8,MobDropRate[23][2]=2;
MobLootNum[24]=3,MobLootID[24][1]=2,MobDropRate[24][1]=5,MobLootID[24][2]=4,MobDropRate[24][2]=5,MobLootID[24][3]=15,MobDropRate[24][3]=5;
MobLootNum[25]=3,MobLootID[25][1]=7,MobDropRate[25][1]=4,MobLootID[25][2]=13,MobDropRate[25][2]=5,MobLootID[25][3]=27,MobDropRate[25][3]=4;
MobLootNum[26]=1,MobLootID[26][1]=19,MobDropRate[26][1]=4;
MobLootNum[27]=2,MobLootID[27][1]=17,MobDropRate[27][1]=2,MobLootID[27][2]=19,MobDropRate[27][2]=1;
MobLootNum[31]=1,MobLootID[31][1]=34,MobDropRate[31][1]=3;
MobLootNum[32]=1,MobLootID[32][1]=26,MobDropRate[32][1]=3;
MobLootNum[33]=2,MobLootID[33][1]=21,MobDropRate[33][1]=3,MobLootID[33][2]=25,MobDropRate[33][2]=3;
MobLootNum[34]=2,MobLootID[34][1]=22,MobDropRate[34][1]=4,MobLootID[34][2]=23,MobDropRate[34][2]=3;
MobLootNum[35]=3,MobLootID[35][1]=17,MobDropRate[35][1]=3,MobLootID[35][2]=19,MobDropRate[35][2]=2,MobLootID[35][3]=20,MobDropRate[35][3]=3;
MobLootNum[36]=2,MobLootID[36][1]=19,MobDropRate[36][1]=2,MobLootID[36][2]=24,MobDropRate[36][2]=3;
MobLootNum[37]=2,MobLootID[37][1]=10,MobDropRate[37][1]=3,MobLootID[37][2]=28,MobDropRate[37][2]=4;
MobLootNum[41]=1,MobLootID[41][1]=33,MobDropRate[41][1]=4;
MobLootNum[42]=2,MobLootID[42][1]=5,MobDropRate[42][1]=1,MobLootID[42][2]=8,MobDropRate[42][2]=4;
MobLootNum[43]=2,MobLootID[43][1]=16,MobDropRate[43][1]=3,MobLootID[43][2]=31,MobDropRate[43][2]=3;
MobLootNum[44]=2,MobLootID[44][1]=29,MobDropRate[44][1]=3,MobLootID[44][2]=32,MobDropRate[44][2]=3;
MobLootNum[45]=2,MobLootID[45][1]=7,MobDropRate[45][1]=4,MobLootID[45][2]=13,MobDropRate[45][2]=5;
MobLootNum[46]=2,MobLootID[46][1]=4,MobDropRate[46][1]=2,MobLootID[46][2]=15,MobDropRate[46][2]=3;
MobLootNum[47]=2,MobLootID[47][1]=6,MobDropRate[47][1]=2,MobLootID[47][2]=29,MobDropRate[47][2]=1;
MobLootNum[48]=2,MobLootID[48][1]=7,MobDropRate[48][1]=3,MobLootID[48][2]=22,MobDropRate[48][2]=2;
MobLootNum[51]=2,MobLootID[51][1]=7,MobDropRate[51][1]=3,MobLootID[51][2]=10,MobDropRate[51][2]=1;
MobLootNum[52]=2,MobLootID[52][1]=6,MobDropRate[52][1]=1,MobLootID[52][2]=7,MobDropRate[52][2]=3;
MobLootNum[53]=1,MobLootID[53][1]=6,MobDropRate[53][1]=3;
MobLootNum[61]=3,MobLootID[61][1]=2,MobDropRate[61][1]=3,MobLootID[61][2]=16,MobDropRate[61][2]=2,MobLootID[61][3]=18,MobDropRate[61][3]=3;
MobLootNum[62]=2,MobLootID[62][1]=14,MobDropRate[62][1]=2,MobLootID[62][2]=16,MobDropRate[62][2]=2;
MobLootNum[63]=1,MobLootID[63][1]=7,MobDropRate[63][1]=3;
MobLootNum[64]=2,MobLootID[64][1]=7,MobDropRate[64][1]=4,MobLootID[64][2]=13,MobDropRate[64][2]=4;
MobLootNum[65]=2,MobLootID[65][1]=2,MobDropRate[65][1]=3,MobLootID[65][2]=18,MobDropRate[65][2]=3;
MobLootNum[66]=2,MobLootID[66][1]=2,MobDropRate[66][1]=2,MobLootID[66][2]=14,MobDropRate[66][2]=2;
MobLootNum[67]=1,MobLootID[67][1]=7,MobDropRate[67][1]=3;
MobLootNum[68]=2,MobLootID[68][1]=18,MobDropRate[68][1]=3,MobLootID[68][2]=30,MobDropRate[68][2]=3;
MobLootNum[69]=2,MobLootID[69][1]=14,MobDropRate[69][1]=3,MobLootID[69][2]=30,MobDropRate[69][2]=3;
MobLootNum[70]=1,MobLootID[70][1]=30,MobDropRate[70][1]=3;
return;
}
void loading()
{
system("cls");
letterslowprint(20,20,(char*)("LOADING"),20);
slowprint(24,56,(char*)("* * * * * * "),50);
return;
}
int leveluprecordS[5][10][20][10]={{{{0}}}},leveluprecordT[5][10][20][10]={{{{0}}}},rarityuprecordS[5][10][20]={{{0}}},rarityuprecordT[5][10][20]={{{0}}};
int mobgalleryrecord[10][100]={{0}},shinymobgalleryrecord[10][100]={{0}},bossgalleryrecord[10][5][20]={{{0}}},lootgalleryrecord[10][5][50]={{{0}}};
int cfloor=1,flowermaxhealth=200,flowerhealth=200,flowershield=0,flowerdamagereturnP=0,flowerarmor=0,flowerlevel=1,flowerexp=0,slot=6,resettime=0;
int flowerpoison[10]={0},flowerarmordebuff[10]={0},autohealdisable=0,spongeusing=0,cottonsuspend=0,actionedtime=0;
int energy=10000,bossid1=0,bossid2=0,bossid3=0,talentpoint=2,skilllevel[30]={0},fullactionbar=200,accurate=1,banneddirection[10]={0};
int inventorynum=0,summonnum=0;
int currentmap=10,mapx=3,mapy=3,mapexplored[100]={0},mapenvironment[100]={0};
int fasterspecial();
struct PETAL{
int ID,rarity,level,health,damage,size,atk1,atk2,def1,def2,speed,reload,atkbuff,defbuff,currenthealth,actionbar,special,x,y,select;
char name[30],shortname[10];
PETAL()
{
ID=1,rarity=1,level=0,health=50,damage=50,size=10,atk1=40,atk2=80,def1=60,def2=80,speed=50,reload=300;
atkbuff=defbuff=0,currenthealth=0,actionbar=0,special=0,x=y=0,select=0,strcpy(name,"Basic"),strcpy(shortname,"Basic");
}
PETAL(int ID2,int rarity2,int level2)
{
ID=ID2,rarity=rarity2,level=level2;
health=PetalHealth[ID]*PetalBaseHealth[rarity][level],health+=(rand()%(health/5*2+1)-health/5);
damage=PetalDamage[ID]*PetalBaseDamage[rarity][level],damage+=(rand()%(damage/5*2+1)-damage/5);
size=PetalSize[ID],atk1=PetalATK1P[ID],atk2=PetalATK2P[ID],def1=PetalDEF1P[ID],def2=PetalDEF2P[ID];
speed=PetalSpeed[ID],speed+=(rand()%(speed/10*2+1)-speed/10);
reload=PetalReload[ID],reload+=(rand()%(reload/10*2+1)-reload/10);
atkbuff=rand()%21-10,defbuff=rand()%21-10;
if(atkbuff*atkbuff>10) atkbuff=rand()%21-10;
if(atkbuff*atkbuff>30) atkbuff=rand()%21-10;
if(atkbuff*atkbuff>60) atkbuff=rand()%21-10;
if(defbuff*defbuff>10) defbuff=rand()%21-10;
if(defbuff*defbuff>30) defbuff=rand()%21-10;
if(defbuff*defbuff>60) defbuff=rand()%21-10;
currenthealth=0,actionbar=0,special=0,x=y=0,select=0;
strcpy(name,petalname[ID]),strcpy(shortname,shortpetalname[ID]);
if(ID==16&&rarity>=5&&level>=1)
strcpy(name,"Yggdrasil"),strcpy(shortname,"Vitae");
}
void print()
{
cout<<RGB[rarity]<<"\033["<<8+4*y<<";"<<9*x+(6-strlen(shortname))/2<<"H"<<shortname<<RGB[0];
if(currenthealth<=0)
cout<<"\033[31m\033["<<9+4*y<<";"<<9*x-3<<"H";
else
if(actionbar<fullactionbar)
cout<<"\033[33m";
else
cout<<"\033[32m";
char acttest[20]="";
if(currenthealth<=0)
sprintf(acttest,"%d/%d",actionbar,reload);
else
sprintf(acttest,"%d/%d",actionbar,fullactionbar);
cout<<"\033["<<9+4*y<<";"<<(18*x+6-strlen(acttest))/2<<"H"<<acttest<<"\033[0m";
return;
}
void cover()
{
cout<<"\033["<<8+4*y<<";"<<9*x-1<<"H \033["<<9+4*y<<";"<<9*x-1<<"H ";
return;
}
void petalprint(int thisnum)
{
cout<<"\033[23;38H<- ",outc(thisnum,3),cout<<"/"<<inventorynum<<"\033[23;49H->";
cout<<"\033[26;"<<44-strlen(name)/2<<"H"<<RGB[rarity]<<name;
cout<<"\033[27;"<<43-strlen(rarityname[rarity])/2<<"H"<<rarityname[rarity]<<"+"<<level<<RGB[0];
cout<<"\033[29;38H\033[32mHealth:\033[0m"<<health;
if(health>PetalBaseHealth[rarity][level]*PetalHealth[ID]) cout<<"\033[31m+\033[0m";
if(health>1.1*PetalBaseHealth[rarity][level]*PetalHealth[ID]) cout<<"\033[31m+\033[0m";
if(health<PetalBaseHealth[rarity][level]*PetalHealth[ID]) cout<<"\033[32m-\033[0m";
if(health<0.9*PetalBaseHealth[rarity][level]*PetalHealth[ID]) cout<<"\033[32m-\033[0m";
cout<<"\033[30;38H\033[31mDamage:\033[0m"<<damage;
if(damage>PetalBaseDamage[rarity][level]*PetalDamage[ID]) cout<<"\033[31m+\033[0m";
if(damage>1.1*PetalBaseDamage[rarity][level]*PetalDamage[ID]) cout<<"\033[31m+\033[0m";
if(damage<PetalBaseDamage[rarity][level]*PetalDamage[ID]) cout<<"\033[32m-\033[0m";
if(damage<0.9*PetalBaseDamage[rarity][level]*PetalDamage[ID]) cout<<"\033[32m-\033[0m";
cout<<"\033[31;40H\033[33mSize:\033[0m"<<size;
cout<<"\033[32;39H\033[34mSpeed:\033[0m"<<speed;
if(speed>PetalSpeed[ID]) cout<<"\033[31m+\033[0m";
if(speed>1.05*PetalSpeed[ID]) cout<<"\033[31m+\033[0m";
if(speed<PetalSpeed[ID]) cout<<"\033[32m-\033[0m";
if(speed<0.95*PetalSpeed[ID]) cout<<"\033[32m-\033[0m";
cout<<"\033[33;38H\033[35mReload:\033[0m"<<reload;
if(reload>PetalReload[ID]) cout<<"\033[32m-\033[0m";
if(reload>1.05*PetalReload[ID]) cout<<"\033[32m-\033[0m";
if(reload<PetalReload[ID]) cout<<"\033[31m+\033[0m";
if(reload<0.95*PetalReload[ID]) cout<<"\033[31m+\033[0m";
cout<<"\033[34;36H\033[31mATK:\033[0m",outc(atk1,-103),cout<<"->"<<atk2<<"%\033[34;50H";
if(atkbuff>0) cout<<"\033[31m(+"<<atkbuff<<")\033[0m";
if(atkbuff<0) cout<<"\033[32m("<<atkbuff<<")\033[0m";
if(atkbuff==0) cout<<"\033[33m(0)\033[0m";
cout<<"\033[35;36H\033[32mDEF:\033[0m",outc(def1,-103),cout<<"->"<<def2<<"%\033[35;50H";
if(defbuff>0) cout<<"\033[31m(+"<<defbuff<<")\033[0m";
if(defbuff<0) cout<<"\033[32m("<<defbuff<<")\033[0m";
if(defbuff==0) cout<<"\033[33m(0)\033[0m";
return;
}
void petalprint2(int thisnum)
{
clearcomment();
sprintf(comment,"%s+%d %s",rarityname[rarity],level,name);
cout<<RGB[rarity],commentprint();
if(currenthealth>0)
sprintf(comment,"Health:%d/%d",currenthealth,health);
else
sprintf(comment,"Reloading");
cout<<"\033[32m",commentprint();
if(health>PetalBaseHealth[rarity][level]*PetalHealth[ID]) cout<<"\033[31m+\033[0m";
if(health>1.1*PetalBaseHealth[rarity][level]*PetalHealth[ID]) cout<<"\033[31m+\033[0m";
if(health<PetalBaseHealth[rarity][level]*PetalHealth[ID]) cout<<"\033[32m-\033[0m";
if(health<0.9*PetalBaseHealth[rarity][level]*PetalHealth[ID]) cout<<"\033[32m-\033[0m";
cout<<"\033[30;38H\033[31mDamage:\033[0m"<<damage;
if(damage>PetalBaseDamage[rarity][level]*PetalDamage[ID]) cout<<"\033[31m+\033[0m";
if(damage>1.1*PetalBaseDamage[rarity][level]*PetalDamage[ID]) cout<<"\033[31m+\033[0m";
if(damage<PetalBaseDamage[rarity][level]*PetalDamage[ID]) cout<<"\033[32m-\033[0m";
if(damage<0.9*PetalBaseDamage[rarity][level]*PetalDamage[ID]) cout<<"\033[32m-\033[0m";
cout<<"\033[31;40H\033[33mSize:\033[0m"<<size;
cout<<"\033[32;39H\033[34mSpeed:\033[0m"<<speed;
if(speed>PetalSpeed[ID]) cout<<"\033[31m+\033[0m";
if(speed>1.05*PetalSpeed[ID]) cout<<"\033[31m+\033[0m";
if(speed<PetalSpeed[ID]) cout<<"\033[32m-\033[0m";
if(speed<0.95*PetalSpeed[ID]) cout<<"\033[32m-\033[0m";
cout<<"\033[33;38H\033[35mReload:\033[0m"<<reload;
if(reload>PetalReload[ID]) cout<<"\033[32m-\033[0m";
if(reload>1.05*PetalReload[ID]) cout<<"\033[32m-\033[0m";
if(reload<PetalReload[ID]) cout<<"\033[31m+\033[0m";
if(reload<0.95*PetalReload[ID]) cout<<"\033[31m+\033[0m";
cout<<"\033[34;36H\033[31mATK:\033[0m",outc(atk1,-103),cout<<"->"<<atk2<<"%\033[34;50H";
if(atkbuff>0) cout<<"\033[31m(+"<<atkbuff<<")\033[0m";
if(atkbuff<0) cout<<"\033[32m("<<atkbuff<<")\033[0m";
if(atkbuff==0) cout<<"\033[33m(0)\033[0m";
cout<<"\033[35;36H\033[32mDEF:\033[0m",outc(def1,-103),cout<<"->"<<def2<<"%\033[35;50H";
if(defbuff>0) cout<<"\033[31m(+"<<defbuff<<")\033[0m";
if(defbuff<0) cout<<"\033[32m("<<defbuff<<")\033[0m";
if(defbuff==0) cout<<"\033[33m(0)\033[0m";
return;
}
void spawn()
{
if(actionbar>=reload)
actionbar-=reload;
if(actionbar>250)
actionbar=250;
currenthealth=health;
if(ID==2)
special=3;
if(ID==4)
special=health*(100+SkillStatP[2][skilllevel[2]])/50;
if(ID==6)
special=damage*5/3;
if(ID==9&&special==0)
special=health*10/3,flowermaxhealth+=special;
if(ID==10)
special=fasterspecial();
if(ID==13)
def1=70,def2=50;
if(ID==16)
special=health*(100+SkillStatP[2][skilllevel[2]])/1000;
if(ID==17)
flowerdamagereturnP=60+10*rarity;
if(ID==19)
special=4,atk1=def1=40,atk2=def2=80;
if(ID==20)
special=health*(100+SkillStatP[2][skilllevel[2]])/600;
if(ID==25)
special=health*2;
if(ID==26&&mapenvironment[currentmap]%11!=4)
spongeusing=1;
if(ID==29)
special=4;
if(ID==32)
special=damage/3;
if(ID==0)
currenthealth=100000000,rarity=0;
return;
}
};
PETAL inventory[1000],equiped[20],summon[20];
bool petalplaceallowed(int equipn)
{
if(equiped[equipn].x<1||equiped[equipn].x>8||equiped[equipn].y<4||equiped[equipn].y>6)
return false;
for(int i=1;i<equipn;i++)
if(equiped[i].x==equiped[equipn].x&&equiped[i].y==equiped[equipn].y)
return false;
return true;
}
bool petalplaceallowed(int x,int y)
{
if(x<1||x>8||y>6)
return false;
for(int i=1;i<=slot;i++)
if(equiped[i].x==x&&equiped[i].y==y)
return false;
for(int i=1;i<=summonnum;i++)
if(summon[i].x==x&&summon[i].y==y)
return false;
return true;
}
int fasterspecial()
{
int fasterbuff=60;
for(int i=1;i<=slot;i++)
if(equiped[i].ID==10)
fasterbuff-=10;
if(fasterbuff<0)
return 0;
if(fasterbuff==50)
return 60;
return fasterbuff;
}
bool mobplaceallowed(int x,int y);
bool PA(int x,int y);
struct MOB{
int ID,rarity,health,damage,dodge,speed,currenthealth,actionbar,special,type,x,y,shiny,normal,poison[10],armordebuff[10];
char name[30],shortname[10];
MOB()
{
ID=1,rarity=1,health=75,damage=10,dodge=0,speed=5,currenthealth=health,actionbar=0,special=0,type=1,x=y=0,shiny=0,normal=1,strcpy(name,"Rock"),strcpy(shortname,"Rock");
for(int i=0;i<=9;i++)
poison[i]=armordebuff[i]=0;
}
MOB(int floor,int map)
{
normal=1;
int randomr=rand()%100+1;
ID=0;
while(randomr>0)
ID++,randomr-=MapSpawnChanceP[map][ID];
ID=MapSpawnID[map][ID];
randomr=rand()%WaveRarityP00[FloorWave[floor][MapSpawnRarity[map]]][8]+1;
rarity=0;
while(randomr>0)
rarity++,randomr-=WaveRarityP00[FloorWave[floor][MapSpawnRarity[map]]][rarity];
health=MobHealth[ID]*MobBaseHealth[rarity],health+=(rand()%(health/5*2+1)-health/5);
damage=MobDamage[ID]*MobBaseDamage[rarity],dodge=MobDodgeP[ID],speed=MobSpeed[ID]+rand()%5-2;
currenthealth=health,actionbar=0,special=0,type=MobType[ID],shiny=0;
x=rand()%8+1,y=rand()%3+1;
while(!PA(x,y))
x=rand()%8+1,y=rand()%3+1;
for(int i=0;i<=9;i++)
poison[i]=armordebuff[i]=0;
strcpy(name,mobname[ID]),strcpy(shortname,shortmobname[ID]);
if((rand()%100==0&&rarity<7)||ID==24)
{
shiny=1,randomr=rand()%100+1;
int shinykind=0;
while(randomr>0)
shinykind++,randomr-=KindChanceP[shinykind];
health=health*HealthFactor10[shinykind]/10,damage=damage*DamageFactor10[shinykind]/10;
currenthealth=health;
}
if(ID==13)
special=6;
if(ID==14)
special=damage/2;
if(ID==18)
special=5;
if(ID==23)
special=damage;
if(ID==25)
special=6;
if(ID==27)
special=5;
if(ID==32)
special=health/10;
if(ID==35)
special=health/5;
if(ID==37)
special=damage;
if(ID==43)
special=damage*2/3;
if(ID==44)
special=damage/2;
if(ID==45)
special=6;
if(ID==47)
special=5;
if(rarity>=6&&ID==16&&health>MobHealth[ID]*MobBaseHealth[rarity]*1.19)
strcpy(name,"stupid Bee"),strcpy(shortname,"SBee");
if(mapenvironment[currentmap]==1)
speed+=speed/5;
if(mapenvironment[currentmap]==12)
speed+=speed*2/5;
if(dodge==50&&mapenvironment[currentmap]==7)
dodge+=rand()%2*10;
if(dodge==50&&mapenvironment[currentmap]==18)
dodge+=rand()%3*10;
if(dodge<=30&&mapenvironment[currentmap]==7)
dodge+=rand()%3*10;
if(dodge<=30&&mapenvironment[currentmap]==18)
dodge+=rand()%4*10;
}
MOB(int ID2,int rarity2,int shiny2,int x2,int y2)
{
normal=0;
ID=ID2;
rarity=rarity2;
health=MobHealth[ID]*MobBaseHealth[rarity],health+=(rand()%(health/5*2+1)-health/5);
damage=MobDamage[ID]*MobBaseDamage[rarity],dodge=MobDodgeP[ID],speed=MobSpeed[ID]+rand()%5-2;
if(speed<3)
speed=0;
if(health<1)
health=1;
currenthealth=health,actionbar=0,special=0,type=MobType[ID];
if(ID2==0)
while(!PA(x2,y2))
x2=rand()%8+1,y2=rand()%3+4;
x=x2,y=y2,shiny=0;
for(int i=0;i<=9;i++)
poison[i]=armordebuff[i]=0;
strcpy(name,mobname[ID]),strcpy(shortname,shortmobname[ID]);
if(shiny2)
{
shiny=1;
int randomr=rand()%100+1,shinykind=0;
while(randomr>0)
shinykind++,randomr-=KindChanceP[shinykind];
health=health*HealthFactor10[shinykind]/10,damage=damage*DamageFactor10[shinykind]/10;
currenthealth=health;
}
if(ID==13)
special=6;
if(ID==14)
special=damage/2;
if(ID==18)
special=5;
if(ID==23)
special=damage;
if(ID==25)
special=6;
if(ID==27)
special=5;
if(ID==32)
special=health/10;
if(ID==35)
special=health/5;
if(ID==37)
special=damage;
if(ID==43)
special=damage*2/3;
if(ID==44)
special=damage/2;
if(ID==45)
special=6;
if(ID==47)
special=5;
if(ID==0)
rarity=0;
if(mapenvironment[currentmap]==1)
speed+=speed/5;
if(mapenvironment[currentmap]==12)
speed+=speed*2/5;
}
void print()
{
cout<<RGB[rarity]<<"\033["<<8+4*y<<";"<<9*x+(6-strlen(shortname))/2<<"H";
if(shiny)
for(int i=0;i<strlen(shortname);i++)
cout<<RGB[(rarity+i*(actionbar%6+1)-1)%7+1]<<shortname[i];
else
cout<<shortname;
cout<<RGB[0];
cout<<"\033["<<31+(type+2)%5/2<<"m\033["<<9+4*y<<";"<<9*x-2<<"H";
char acttest[20]="";
if(actionbar>=200)
sprintf(acttest,"%d/200!",actionbar);
else
sprintf(acttest,"%d/200",actionbar);
cout<<"\033["<<9+4*y<<";"<<(18*x+6-strlen(acttest))/2<<"H"<<acttest<<"\033[0m";
return;
}
void cover()
{
cout<<"\033["<<8+4*y<<";"<<9*x-1<<"H \033["<<9+4*y<<";"<<9*x-1<<"H \033["<<10+4*y<<";"<<9*x-1<<"H ";
return;
}
void move()
{
int movement=rand()%4;
cover();
if(movement==0&&y>1&&PA(x,y-1))
y--;
if(movement==1&&y<3&&PA(x,y+1))
y++;
if(movement==2&&(PA(x-1,y)||PA(x+7,y)))
x=(x+6)%8+1;
if(movement==3&&(PA(x+1,y)||PA(x-7,y)))
x=x%8+1;
print();
}
void droploot()
{
sprintf(comment,"Loot:");
int multi=1;
if(rarity==7)
multi=pow(rand()%5,2)/5+2;
int totallootnumber=MobLootNum[ID];
int lightningtest=rand()%100;
if(lightning101&&lightningtest<30)
totallootnumber=1;
if(lightning101&&lightningtest>=80)
multi*=2;
for(int i=1;i<=totallootnumber;i++)
{
int lootrarity=-1,lootlevel=0,randomdrop=rand()%MobDropRateP00[MobDropRate[ID][i]][(rarity+1)*6/7][7]+1,lootID=MobLootID[ID][i];
while(randomdrop>0)
lootrarity++,randomdrop-=MobDropRateP00[MobDropRate[ID][i]][(rarity+1)*6/7][lootrarity];
if(shiny)
{
randomdrop=rand()%100+1;
int addrarity=-1;
while(randomdrop>0)
{
addrarity++;
randomdrop-=BetterRarityChanceP[lootrarity][addrarity];
}
lootrarity+=addrarity;
randomdrop=rand()%100+1;
int addlevel=-1;
while(randomdrop>0)
{
addlevel++;
randomdrop-=BetterLevelChanceP[lootrarity][addlevel];
}
lootlevel+=addlevel;
}
if(yinyang101)
lootID=rand()%totalpetalnumber+1;
if(lightning101&&lightningtest<30)
lootID=34;
if(lootrarity>0)
{
if(!lootgalleryrecord[lootrarity][lootlevel][MobLootID[ID][i]])
lootgalleryrecord[lootrarity][lootlevel][MobLootID[ID][i]]=1;
if(lootrarity>6)
lootrarity=6;
for(int mult=1;mult<=multi;mult++)
if(inventorynum<499)
inventory[++inventorynum]=PETAL(MobLootID[ID][i],lootrarity,lootlevel);
if(lootlevel)
sprintf(comment+strlen(comment),"%s+%d %s,",rarityname[lootrarity],lootlevel,petalname[MobLootID[ID][i]]);
else
sprintf(comment+strlen(comment),"%s %s,",rarityname[lootrarity],petalname[MobLootID[ID][i]]);
}
}
cout<<RGB[7];
if(strlen(comment)>6)
{
comment[strlen(comment)-1]='\0';
if(rarity==7)
strcat(comment," ( x)"),comment[strlen(comment)-3]=multi+'0';
commentprint();
}
else
sprintf(comment,"Loot:Nothing"),commentprint();
return;
}
};
MOB spawned[100],readyspawn[100];
int spawnednum=0,unspawnednum=0,readyspawnnum=0;
bool mobplaceallowed(int x,int y)
{
if(x<1||x>8||y<1)
return false;
for(int i=1;i<=spawnednum;i++)
if(spawned[i].x==x&&spawned[i].y==y)
return false;
return true;
}
bool PA(int x,int y)
{
return petalplaceallowed(x,y)&&mobplaceallowed(x,y);
}
char order[30]="ID->Rarity->Level";
int orderkind[10]={0,1,2,3};
void start();
void fight(int map);
void moregame();
void PFLF();
int readcharcount=0,writecharcount=0,lastread1=0,lastread2=0,sumwrite1=0,sumwrite2=0;
int read_char()
{
readcharcount++;
char testread;
if(readcharcount==1)
fin.get(testread),lastread1=testread,fin.get(testread),lastread2=testread,readcharcount+=2;
char readchar;
fin.get(readchar);
if(readchar<'A'||readchar>'Z')
{
saveflag=0;
return 0;
}
int josephus[40]={0},remaintot=37,remainchar=0,nextup=0,countdown=(readcharcount-1)%37+1;
remainchar=(readchar-lastread2+25)%26+1,lastread2=readchar;
for(int i=1;i<=37;i++)
josephus[i]=1;
while(remainchar)
{
nextup++;
if(nextup>37)
nextup=1;
countdown-=josephus[nextup];
if(countdown==0)
{
josephus[nextup]=0,remaintot--;
if(remaintot>0)
countdown=(readcharcount-1)%remaintot+1;
if(nextup<=26)
remainchar--;
}
}
readchar=(nextup+'A'-1-lastread1+25)%26+1,lastread1=nextup+'A'-1;
return readchar;
}
int read_int(int minread,int maxread)
{
int readmax=1,currentread=0;
while(readmax<=maxread-minread)
readmax*=26,currentread=currentread*26+read_char()-1;
if(minread+currentread<=maxread)
return minread+currentread;
saveflag=0;
return 0;
}
void write_char(int writechar)
{
writecharcount++;
if(writecharcount==1)
sumwrite1=rand()%26+'A',sumwrite2=rand()%26+'A',fout<<(char)(sumwrite1)<<(char)(sumwrite2),writecharcount+=2;
int josephus[40]={0},remaintot=37,selectedchar=0,goalchar=0,lastselect=0,nextup=0,countdown=(writecharcount-1)%37+1;
goalchar=sumwrite1+writechar;
if(goalchar>'Z')
goalchar-=26;
sumwrite1=goalchar;
for(int i=1;i<=37;i++)
josephus[i]=1;
while(lastselect!=goalchar)
{
nextup++;
if(nextup>37)
nextup=1;
countdown-=josephus[nextup];
if(countdown==0)
{
josephus[nextup]=0,remaintot--;
if(remaintot>0)
countdown=(writecharcount-1)%remaintot+1;
if(nextup<=26)
selectedchar++,lastselect=nextup+'A'-1;
}
}
writechar=sumwrite2+selectedchar;
if(writechar>'Z')
writechar-=26;
sumwrite2=writechar;
fout<<(char)(sumwrite2);
return;
}
void write_int(int minwrite,int maxwrite,int intwrite)
{
int writemax=1,currentwrite=intwrite-minwrite;
while(writemax<=maxwrite-minwrite)
writemax*=26;
while(writemax>1)
writemax/=26,write_char(currentwrite/writemax+1),currentwrite%=writemax;
return;
}
void loadtext()
{
char getair;
readcharcount=0;
fin.open("Florroom_Save.txt");
if(!fin)
return;
saveflag=1;
inventorynum=read_int(1,1000);
for(int i=1;i<=3;i++)
orderkind[i]=read_int(1,4);
if(read_int(1,10)!=6)
saveflag=0;
if(!saveflag)
{
fin.close();
return;
}
for(int i=1;i<=inventorynum;i++)
{
inventory[i].ID=read_int(1,totalpetalnumber);
inventory[i].rarity=read_int(1,6);
inventory[i].level=read_int(0,10);
inventory[i]=PETAL(inventory[i].ID,inventory[i].rarity,inventory[i].level);
inventory[i].health=read_int(1,10000);
inventory[i].damage=read_int(1,10000);
inventory[i].speed=read_int(1,1000);
inventory[i].reload=read_int(1,1000);
inventory[i].atkbuff=read_int(-10,10);
inventory[i].defbuff=read_int(-10,10);
}
for(int i=18*inventorynum;i<9000;i++)
read_int(1,26);
if(read_int(1,100)!=3)
saveflag=0;
if(!saveflag)
{
fin.close();
return;
}
flowerlevel=read_int(1,20);
slot=6+flowerlevel/5;
flowerexp=read_int(0,50000);
cfloor=read_int(0,10);
bossid1=read_int(1,10);
bossid2=read_int(1,10);
bossid3=read_int(1,10);
for(int i=1;i<=66;i++)
mapexplored[i]=read_int(0,1);
energy=read_int(1,10000);
for(int i=11;i<=70;i++)
if(MapSpawnNum[i])
mapenvironment[i]=read_int(0,21);
if(read_int(1,1000)!=6)
saveflag=0;
if(!saveflag)
{
fin.close();
return;
}
for(int i=0;i<=3;i++)
for(int j=1;j<=5;j++)
for(int k=1;k<=2;k++)
rarityuprecordS[i][j][k]=read_int(0,500),rarityuprecordT[i][j][k]=read_int(0,500);
for(int i=0;i<=3;i++)
for(int j=1;j<=6;j++)
for(int k=0;k<=4;k++)
for(int l=1;l<=5;l++)
leveluprecordS[i][j][k][l]=read_int(0,500),leveluprecordT[i][j][k][l]=read_int(0,500);
if(read_int(1,10000)!=1)
saveflag=0;
if(!saveflag)
{
fin.close();
return;
}
talentpoint=read_int(0,100);
for(int i=1;i<=SkillMaxLevel[0];i++)
skilllevel[i]=read_int(0,10);
modnum=read_int(0,1000);
for(int i=1;i<=modnum;i++)
modusing[read_int(0,400)]=1;
resettime=read_int(0,2);
if(read_int(1,100000)!=20302)
saveflag=0;
fin.close();
order[0]='\0';
strcat(order,orderkindname[orderkind[1]]);
strcat(order,"->");
strcat(order,orderkindname[orderkind[2]]);
strcat(order,"->");
strcat(order,orderkindname[orderkind[3]]);
return;
}
void savetext()
{
writecharcount=0;
fout.open("Florroom_Save.txt");
if(!fout)
return;
write_int(1,1000,inventorynum);
write_int(1,4,orderkind[1]);
write_int(1,4,orderkind[2]);
write_int(1,4,orderkind[3]);
write_int(1,10,6);
for(int i=1;i<=inventorynum;i++)
{
write_int(1,totalpetalnumber,inventory[i].ID);
write_int(1,6,inventory[i].rarity);
write_int(0,10,inventory[i].level);
write_int(1,10000,inventory[i].health);
write_int(1,10000,inventory[i].damage);
write_int(1,1000,inventory[i].speed);
write_int(1,1000,inventory[i].reload);
write_int(-10,10,inventory[i].atkbuff);
write_int(-10,10,inventory[i].defbuff);
}
for(int i=18*inventorynum;i<9000;i++)
write_char(rand()%26+1);
write_int(1,100,3);
write_int(1,20,flowerlevel);
write_int(0,50000,flowerexp);
write_int(0,10,cfloor);
write_int(1,10,bossid1);
write_int(1,10,bossid2);
write_int(1,10,bossid3);
for(int i=1;i<=66;i++)
write_int(0,1,mapexplored[i]);
write_int(1,10000,energy);
for(int i=11;i<=70;i++)
if(MapSpawnNum[i])
write_int(0,21,mapenvironment[i]);
write_int(1,1000,6);
for(int i=0;i<=3;i++)
for(int j=1;j<=5;j++)
for(int k=1;k<=2;k++)
write_int(0,500,rarityuprecordS[i][j][k]),write_int(0,500,rarityuprecordT[i][j][k]);
for(int i=0;i<=3;i++)
for(int j=1;j<=6;j++)
for(int k=0;k<=4;k++)
for(int l=1;l<=5;l++)
write_int(0,500,leveluprecordS[i][j][k][l]),write_int(0,500,leveluprecordT[i][j][k][l]);
write_int(1,10000,1);
write_int(0,100,talentpoint);
for(int i=1;i<=SkillMaxLevel[0];i++)
write_int(0,10,skilllevel[i]);
write_int(0,1000,modnum);
for(int i=1;i<=400;i++)
if(modusing[i])
write_int(0,400,i);
write_int(0,2,resettime);
write_int(1,100000,20302);
fout.close();
return;
}
char glastread='A',gsumwrite='A';
int gread_char()
{
char readchar,tempread;
fin.get(readchar);
tempread=readchar,readchar=(readchar-glastread+26)%26+'A',glastread=tempread;
if(readchar!='P'&&readchar!='F'&&readchar!='Y'&&readchar!='N')
galleryflag=0;
return readchar;
}
void gwrite_char(char writechar)
{
writechar+=(gsumwrite-'A');
if(writechar>'Z')
writechar-=26;
gsumwrite=writechar;
fout<<writechar;
return;
}
void loadgallery()
{
fin.open("Florroom_Gallery.txt");
if(!fin)
return;
galleryflag=1;
fin.get(glastread);
for(int i=1;i<=6;i++)
for(int j=11;j<=70;j++)
if(gread_char()%9==8)
mobgalleryrecord[i][j]=1;
for(int i=1;i<=6;i++)
for(int j=11;j<=70;j++)
if(gread_char()%9==8)
shinymobgalleryrecord[i][j]=1;
for(int i=1;i<=7;i++)
for(int j=1;j<=3;j++)
for(int k=1;k<=10;k++)
if(gread_char()%9==8)
bossgalleryrecord[i][j][k]=1;
for(int i=1;i<=6;i++)
for(int j=0;j<=2;j++)
for(int k=2;k<=totalpetalnumber;k++)
if(gread_char()%9==8)
lootgalleryrecord[i][j][k]=1;
if(gread_char()!='P')
galleryflag=0;
if(gread_char()!='F')
galleryflag=0;
if(gread_char()!='P')
galleryflag=0;
if(gread_char()!='F')
galleryflag=0;
fin.close();
return;
}
void savegallery()
{
if(galleryflag==6361)
return;
fout.open("Florroom_Gallery.txt");
if(!fout)
return;
gsumwrite=rand()%26+'A',fout<<gsumwrite;
for(int i=1;i<=6;i++)
for(int j=11;j<=70;j++)
gwrite_char(70+10*mobgalleryrecord[i][j]+rand()%2*(8+mobgalleryrecord[i][j]));
for(int i=1;i<=6;i++)
for(int j=11;j<=70;j++)
gwrite_char(70+10*shinymobgalleryrecord[i][j]+rand()%2*(8+shinymobgalleryrecord[i][j]));
for(int i=1;i<=7;i++)
for(int j=1;j<=3;j++)
for(int k=1;k<=10;k++)
gwrite_char(70+10*bossgalleryrecord[i][j][k]+rand()%2*(8+bossgalleryrecord[i][j][k]));
for(int i=1;i<=6;i++)
for(int j=0;j<=2;j++)
for(int k=2;k<=totalpetalnumber;k++)
gwrite_char(70+10*lootgalleryrecord[i][j][k]+rand()%2*(8+lootgalleryrecord[i][j][k]));
gwrite_char('P');
gwrite_char('F');
gwrite_char('P');
gwrite_char('F');
fout.close();
return;
}
void deleteifdead()
{
for(int i=summonnum;i>=1;i--)
if(summon[i].special<0&&(summon[i].currenthealth<=0||equiped[-summon[i].special].currenthealth<=0))
{
summon[i].cover();
if(summon[i].name[0]=='B')
equiped[-summon[i].special].currenthealth=0,equiped[-summon[i].special].actionbar=0;
for(int j=i;j<summonnum;j++)
summon[j]=summon[j+1];
summonnum--;
}
for(int i=summonnum;i>=1;i--)
if(summon[i].special>0&&summon[i].currenthealth<=0)
{
summon[i].cover();
for(int j=i;j<summonnum;j++)
summon[j]=summon[j+1];
summonnum--;
}
for(int i=slot;i>=1;i--)
if(equiped[i].currenthealth<=0)
{
equiped[i].cover();
equiped[i].print();
}
for(int i=spawnednum;i>=1;i--)
if(spawned[i].currenthealth<=0)
{
if(spawned[i].normal&&spawned[i].ID>10&&!mobgalleryrecord[spawned[i].rarity][spawned[i].ID]&&spawned[i].rarity<7)
mobgalleryrecord[spawned[i].rarity][spawned[i].ID]=1;
if(spawned[i].normal&&spawned[i].ID>10&&spawned[i].shiny&&!shinymobgalleryrecord[spawned[i].rarity][spawned[i].ID]&&spawned[i].rarity<7)
shinymobgalleryrecord[spawned[i].rarity][spawned[i].ID]=1;
if(spawned[i].ID==bossid1&&!bossgalleryrecord[cfloor][1][spawned[i].ID])
bossgalleryrecord[cfloor][1][spawned[i].ID]=1;
if(spawned[i].ID==bossid2&&!bossgalleryrecord[cfloor][2][spawned[i].ID])
bossgalleryrecord[cfloor][2][spawned[i].ID]=1;
if(spawned[i].ID==bossid3&&!bossgalleryrecord[cfloor][3][spawned[i].ID])
bossgalleryrecord[cfloor][3][spawned[i].ID]=1;
spawned[i].cover();
if(spawned[i].normal&&mapenvironment[currentmap]%11==9&&rand()%100<20+30*mapenvironment[currentmap]/11&&
(spawned[i].ID!=13&&spawned[i].ID!=18&&spawned[i].ID!=25&&spawned[i].ID!=27&&spawned[i].ID!=45&&spawned[i].ID!=47))
{
getch();
sprintf(comment,"%s:Another %s spawning!",environmentname[mapenvironment[currentmap]],spawned[i].name);
cout<<"\033[38;2;127;127;255m",commentprint();
readyspawn[++readyspawnnum]=MOB(spawned[i].ID,spawned[i].rarity,spawned[i].shiny,spawned[i].x,spawned[i].y);
}
for(int j=i;j<spawnednum;j++)
spawned[j]=spawned[j+1];
spawnednum--;
}
for(int i=slot;i>=1;i--)
if(equiped[i].currenthealth<=0&&equiped[i].y<4)
{
equiped[i].cover();
int testx=equiped[i].x;
while(!PA(testx,4))
testx=testx%8+1;
equiped[i].x=testx,equiped[i].y=4;
equiped[i].print();
}
return;
}
void placecommentprint(int sX,int sY)
{
clearcomment();
for(int i=1;i<=spawnednum;i++)
if(spawned[i].x==sX&&spawned[i].y==sY)
{
if(spawned[i].normal)
sprintf(comment,"%s",spawned[i].name);
else
sprintf(comment,"%s*",spawned[i].name);
cout<<RGB[spawned[i].rarity];
commentprint();
sprintf(comment,"Action Bar:%d/200(+%d)",spawned[i].actionbar,spawned[i].speed);
commentprint();
if(spawned[i].ID==13||spawned[i].ID==18||spawned[i].ID==25||spawned[i].ID==27||spawned[i].ID==45||spawned[i].ID==47)
sprintf(comment,"Health:%d/%d(%d+)",spawned[i].currenthealth,spawned[i].health,spawned[i].special);
else
sprintf(comment,"Health:%d/%d",spawned[i].currenthealth,spawned[i].health);
cout<<"\033[38;2;"<<255-255*spawned[i].currenthealth/spawned[i].health<<";"<<255*spawned[i].currenthealth/spawned[i].health<<";0m";
commentprint();
sprintf(comment,"Damage:%d",spawned[i].damage);
if(2*spawned[i].damage>=flowerhealth)
cout<<"\033[33m";
if(spawned[i].damage>=flowerhealth)
cout<<"\033[31m";
commentprint();
sprintf(comment,"Dodge:%d%%",spawned[i].dodge);
commentprint();
}
for(int i=1;i<=slot;i++)
if(equiped[i].x==sX&&equiped[i].y==sY)
{
sprintf(comment,"%s",equiped[i].name);
cout<<RGB[equiped[i].rarity];
commentprint();
if(equiped[i].currenthealth>0)
sprintf(comment,"Action Bar:%d/%d(+%d)",equiped[i].actionbar,fullactionbar,equiped[i].speed);
else
sprintf(comment,"Action Bar:%d/%d(+%d)",equiped[i].actionbar,equiped[i].reload,equiped[i].speed);
commentprint();
if(equiped[i].currenthealth>0)
{
sprintf(comment,"Health:%d/%d",equiped[i].currenthealth,equiped[i].health);
cout<<"\033[38;2;"<<255-255*equiped[i].currenthealth/equiped[i].health<<";"<<255*equiped[i].currenthealth/equiped[i].health<<";0m";
}
else
sprintf(comment,"(Reloading)");
commentprint();
sprintf(comment,"Damage:%d",equiped[i].damage);
commentprint();
sprintf(comment,"ATK:%d%%->%d%%,%+d",equiped[i].atk1,equiped[i].atk2,equiped[i].atkbuff);
commentprint();
sprintf(comment,"DEF:%d%%->%d%%,%+d",equiped[i].def1,equiped[i].def2,equiped[i].defbuff);
commentprint();
sprintf(comment,"Size:%d",equiped[i].size);
commentprint();
if(equiped[i].actionbar>=fullactionbar)
{
sprintf(comment,"[Enter] select");
commentprint();
}
}
for(int i=1;i<=summonnum;i++)
if(summon[i].x==sX&&summon[i].y==sY&&summon[i].special<0)
{
sprintf(comment,"%s",summon[i].name);
cout<<RGB[summon[i].rarity];
commentprint();
sprintf(comment,"Action Bar:%d/%d(+%d)",summon[i].actionbar,fullactionbar,summon[i].speed);
commentprint();
sprintf(comment,"Health:%d/%d",summon[i].currenthealth,summon[i].health);
commentprint();
sprintf(comment,"Damage:%d",summon[i].damage);
commentprint();
sprintf(comment,"ATK:%d%%->%d%%,%+d",summon[i].atk1,summon[i].atk2,summon[i].atkbuff);
commentprint();
sprintf(comment,"DEF:%d%%->%d%%,%+d",summon[i].def1,summon[i].def2,summon[i].defbuff);
commentprint();
sprintf(comment,"Size:%d",summon[i].size);
commentprint();
sprintf(comment,"[Enter] destroy");
commentprint();
}
return;
}
void printbiome()
{
clearcomment();
system("cls");
cout<<"\033[2;29HPress [T] to end when your turn\033[3;38HEnergy:",outc(energy,-10000);
int title=5;
if(unspawnednum)
title++,cout<<"\033["<<title<<";39H"<<unspawnednum<<" Mob Left!";
if(accurate>1)
title++,cout<<"\033["<<title<<";36HAccurate strike!";
if(autohealdisable)
title++,cout<<"\033["<<title<<";33HAuto heal disabled! ("<<autohealdisable<<")";
if(banneddirection[1]+banneddirection[2]+banneddirection[3]+banneddirection[4])
{
int dban=banneddirection[1]+banneddirection[2]+banneddirection[3]+banneddirection[4];
title++,cout<<"\033["<<title<<";"<<36-dban<<"HBanned direction:";
if(banneddirection[1])
cout<<"\033["<<title<<";"<<53-dban<<"H\xA1\xFA",dban-=2;
if(banneddirection[2])
cout<<"\033["<<title<<";"<<53-dban<<"H\xA1\xFB",dban-=2;
if(banneddirection[3])
cout<<"\033["<<title<<";"<<53-dban<<"H\xA1\xFC",dban-=2;
if(banneddirection[4])
cout<<"\033["<<title<<";"<<53-dban<<"H\xA1\xFD",dban-=2;
}
if(flowerpoison[1])
title++,cout<<"\033["<<title<<";38HPoisoned! ("<<flowerpoison[1]<<")";
if(flowerarmordebuff[1])
title++,cout<<"\033["<<title<<";35HArmor debuffed! ("<<flowerarmordebuff[1]<<")";
for(int x=7;x<=79;x+=9)
for(int y=11;y<=35;y+=4)
cout<<"\033["<<y<<";"<<x<<"H+";
for(int i=1;i<=spawnednum;i++)
spawned[i].print();
for(int i=1;i<=slot;i++)
if(equiped[i].x>0)
equiped[i].print();
for(int i=1;i<=summonnum;i++)
summon[i].print();
cout<<"\033[38;2;"<<255-255*flowerhealth/flowermaxhealth<<";"<<255*flowerhealth/flowermaxhealth<<";0m\033[36;38HHealth:"<<flowerhealth<<"/"<<flowermaxhealth<<RGB[0];
if(flowershield)
cout<<" (+"<<flowershield<<")";
cout<<" ";
return;
}
int ATKcalc(int petalATK,int mobdodge,int deltax,int size,int atkbuff)
{
if(petalATK<=0)
return 0;
if(deltax==0)
{
if(petalATK==100||mobdodge==0)
return 100;
if(atkbuff>=0)
return AttackChanceP[petalATK/10][mobdodge/10]+(AttackChanceP[petalATK/10+1][mobdodge/10]-AttackChanceP[petalATK/10][mobdodge/10])*atkbuff/10;
return AttackChanceP[petalATK/10][mobdodge/10]-(AttackChanceP[petalATK/10-1][mobdodge/10]-AttackChanceP[petalATK/10][mobdodge/10])*atkbuff/10;
}
if(deltax*deltax%48!=1)
return 0;
petalATK-=(20-size)*(15-size)/2;
if(petalATK<10)
return 0;
int calc1=ATKcalc(petalATK/10*10,mobdodge,0,size,petalATK%10);
if(atkbuff>=5)
calc1-=(10-atkbuff);
else
if(atkbuff>=-5)
calc1-=(15-atkbuff)/2;
else
calc1-=(5-atkbuff);
if(calc1<=0)
return 0;
return calc1;
}
int DEFcalc(int petalDEF,int mobdodge,int deltax,int size,int defbuff)
{
if(petalDEF<=0)
return 0;
if(deltax==0)
{
if(petalDEF==100||mobdodge==0)
return 100;
if(defbuff>=0)
return DefendChanceP[mobdodge/10][petalDEF/10]+(DefendChanceP[mobdodge/10][petalDEF/10+1]-DefendChanceP[mobdodge/10][petalDEF/10])*defbuff/10;
return DefendChanceP[mobdodge/10][petalDEF/10]-(DefendChanceP[mobdodge/10][petalDEF/10-1]-DefendChanceP[mobdodge/10][petalDEF/10])*defbuff/10;
}
if(deltax*deltax%48!=1)
return 0;
petalDEF-=(20-size)*(15-size)/2;
if(petalDEF<10)
return 0;
int calc1=DEFcalc(petalDEF/10*10,mobdodge,0,size,petalDEF%10);
if(defbuff>=5)
calc1-=(10-defbuff);
else
if(defbuff>=-5)
calc1-=(15-defbuff)/2;
else
calc1-=(5-defbuff);
if(calc1<=0)
return 0;
return calc1;
}
bool petalcompare(PETAL p1,PETAL p2)
{
int readorder=0;
while(readorder<strlen(order))
{
if(order[readorder]=='I')
{
if(p1.ID>p2.ID)
return true;
if(p1.ID<p2.ID)
return false;
}
if(order[readorder]=='N')
{
if(strcmp(p1.name,p2.name)==1)
return true;
if(strcmp(p1.name,p2.name)==-1)
return false;
}
if(order[readorder]=='R')
{
if(p1.rarity>p2.rarity)
return true;
if(p1.rarity<p2.rarity)
return false;
}
if(order[readorder]=='L')
{
if(p1.level>p2.level)
return true;
if(p1.level<p2.level)
return false;
}
readorder++;
}
return false;
}
void sortinventory()
{
for(int i=inventorynum;i>1;i--)
for(int j=1;j<i;j++)
if(petalcompare(inventory[j],inventory[j+1]))
{
PETAL t=inventory[j];
inventory[j]=inventory[j+1];
inventory[j+1]=t;
}
return;
}
void gallery()
{
loading();
system("cls");
char get=' ';
cout<<"\033[16;41H[Q]uit\033[22;37H[M] Mob gallery\033[24;36H[B] Boss gallery";
while(get!='q'&&get!='Q'&&get!='m'&&get!='M'&&get!='b'&&get!='B')
get=getch();
if(get=='m'||get=='M')
{
loading();
int searchID=11,searchrarity=1,searchshiny=0,needgetflag=1;
while(get!='q'&&get!='Q')
{
system("cls");
if((mobgalleryrecord[searchrarity][searchID]&&!searchshiny)||shinymobgalleryrecord[searchrarity][searchID])
middleletterprint(10,mobname[searchID],searchrarity,searchshiny,1);
else
middleletterprint(10,mobname[searchID],searchrarity,searchshiny,0);
if(mobgalleryrecord[searchrarity][searchID]&&!searchshiny)
{
cout<<"\033[32m\033[23;37HHealth:"<<MobHealth[searchID]*MobBaseHealth[searchrarity]<<"\xA1\xC0"<<MobHealth[searchID]*MobBaseHealth[searchrarity]/5<<RGB[0];
cout<<"\033[31m\033[25;40HDamage:"<<MobDamage[searchID]*MobBaseDamage[searchrarity]<<RGB[0];
cout<<"\033[28;36H**Loot Droprate**";
for(int i=1;i<=MobLootNum[searchID];i++)
for(int j=1;j<=6;j++)
{
cout<<RGB[j];
if(lootgalleryrecord[j][0][MobLootID[searchID][i]])
{
cout<<"\033["<<28+4*i<<";"<<(5+24*j-strlen(petalname[MobLootID[searchID][i]]))/2<<"H"<<petalname[MobLootID[searchID][i]];
cout<<"\033["<<29+4*i<<";"<<12*j-1<<"H";
outc(MobDropRateP00[MobDropRate[searchID][i]][searchrarity][j],-10002);
}
else
cout<<"\033["<<28+4*i<<";"<<12*j<<"H"<<"????\033["<<29+4*i<<";"<<12*j-1<<"H??.??%";
cout<<RGB[0];
}
}
if(shinymobgalleryrecord[searchrarity][searchID]&&searchshiny)
{
cout<<"\033[32m\033[23;20HHealth";
for(int i=1;i<=4;i++)
{
cout<<"\033[23;"<<23+10*i<<"H"<<MobHealth[searchID]*MobBaseHealth[searchrarity]*HealthFactor10[i]/10;
cout<<"\xA1\xC0"<<MobHealth[searchID]*MobBaseHealth[searchrarity]*HealthFactor10[i]/50;
}
cout<<"\033[31m\033[25;20HDamage";
for(int i=1;i<=4;i++)
cout<<"\033[25;"<<23+10*i<<"H"<<MobDamage[searchID]*MobBaseDamage[searchrarity]*DamageFactor10[i]/10;
cout<<RGB[0];
cout<<"\033[28;36H**Loot Droprate**";
for(int i=1;i<=MobLootNum[searchID];i++)
cout<<"\033["<<28+4*i<<";"<<(84-strlen(petalname[MobLootID[searchID][i]]))/2<<"H["<<i<<"]. "<<petalname[MobLootID[searchID][i]];
get=getch()-'0';
if(get>=1&&get<=MobLootNum[searchID])
{
int gchance=MobDropRate[searchID][get],gid=MobLootID[searchID][get];
int gchanceP0000[10]={0};
for(int i=0;i<=6;i++)
for(int j=0;j<=2;j++)
if(i+j<=6)
gchanceP0000[i+j]+=MobDropRateP00[gchance][searchrarity][i]*BetterRarityChanceP[i][j];
else
gchanceP0000[6]+=MobDropRateP00[gchance][searchrarity][i]*BetterRarityChanceP[i][j];
system("cls");
middleletterprint(10,mobname[searchID],searchrarity,searchshiny,1);
cout<<"\033[32m\033[23;20HHealth";
for(int i=1;i<=4;i++)
{
cout<<"\033[23;"<<23+10*i<<"H"<<MobHealth[searchID]*MobBaseHealth[searchrarity]*HealthFactor10[i]/10;
cout<<"\xA1\xC0"<<MobHealth[searchID]*MobBaseHealth[searchrarity]*HealthFactor10[i]/50;
}
cout<<"\033[31m\033[25;20HDamage";
for(int i=1;i<=4;i++)
cout<<"\033[25;"<<23+10*i<<"H"<<MobDamage[searchID]*MobBaseDamage[searchrarity]*DamageFactor10[i]/10;
cout<<RGB[0];
cout<<"\033[28;36H**Loot Droprate**";
for(int i=1;i<=6;i++)
for(int j=0;j<=2;j++)
{
cout<<RGB[i];
if(lootgalleryrecord[i][j][gid])
{
cout<<"\033["<<32+4*j<<";"<<(3+24*i-strlen(petalname[gid]))/2<<"H"<<petalname[gid]<<"+"<<j;
cout<<"\033["<<33+4*j<<";"<<12*i-1<<"H";
outc((gchanceP0000[i]*BetterLevelChanceP[i][j]+5000)/10000,-10002);
}
else
cout<<"\033["<<32+4*j<<";"<<12*i<<"H"<<"????\033["<<33+4*j<<";"<<12*i-1<<"H??.??%";
cout<<RGB[0];
}
}
else
needgetflag=0,get+='0';
}
if(needgetflag)
get=getch();
else
needgetflag=1;
if(get==-32)
{
get=getch();
if(get==75)
{
if(searchID>11)
searchID--;
while(!MobType[searchID])
searchID--;
}
if(get==77)
{
if(searchID<70)
searchID++;
while(!MobType[searchID])
searchID++;
}
if(get==72&&searchrarity<6)
searchrarity++;
if(get==80&&searchrarity>1)
searchrarity--;
}
if(get=='/')
{
get=getch();
if(get=='s'||get=='S')
{
get=getch();
if(get=='e'||get=='E')
{
get=getch();
if(get=='e'||get=='E')
{
for(int i=1;i<=6;i++)
for(int j=11;j<=70;j++)
mobgalleryrecord[i][j]=1;
for(int i=1;i<=6;i++)
for(int j=11;j<=70;j++)
shinymobgalleryrecord[i][j]=1;
for(int i=1;i<=7;i++)
for(int j=1;j<=3;j++)
for(int k=1;k<=10;k++)
bossgalleryrecord[i][j][k]=1;
for(int i=1;i<=6;i++)
for(int j=0;j<=2;j++)
for(int k=2;k<=totalpetalnumber;k++)
lootgalleryrecord[i][j][k]=1;
galleryflag=6361;
}
}
}
}
if(get=='s'||get=='S')
searchshiny=1-searchshiny;
}
}
if(get=='b'||get=='B')
{
loading();
int searchID=1,searchfloor=1,searchorder=1;
while(get!='q'&&get!='Q')
{
system("cls");
middleletterprint(8,mobname[searchID],0,0,1);
for(int i=1;i<=7;i++)
for(int j=1;j<=3;j++)
{
cout<<RGB[BossRarity[i][j]];
if(bossgalleryrecord[i][j][searchID])
cout<<"\033["<<18+2*i<<";"<<(9+40*j-strlen(mobname[searchID]))/2<<"H"<<mobname[searchID];
else
cout<<"\033["<<18+2*i<<";"<<20*j+2<<"H????";
cout<<RGB[0];
}
cout<<RGB[BossRarity[searchfloor][searchorder]];
cout<<"\033["<<18+2*searchfloor<<";"<<20*searchorder-3<<"H**\033["<<18+2*searchfloor<<";"<<20*searchorder+10<<"H**";
if(bossgalleryrecord[searchfloor][searchorder][searchID])
{
cout<<"\033[36;"<<(89-strlen(mobname[searchID]))/2<<"H"<<mobname[searchID];
cout<<"\033[32m\033[39;40HHealth:"<<MobHealth[searchID]*MobBaseHealth[BossRarity[searchfloor][searchorder]]*BossHealth10[searchfloor]/10;
cout<<"\033[31m\033[40;40HDamage:"<<MobDamage[searchID]*MobBaseDamage[BossRarity[searchfloor][searchorder]]*BossDamage10[searchfloor]/10;
}
cout<<RGB[0];
get=getch();
if(get==-32)
{
get=getch();
if(get==75&&searchorder>1)
searchorder--;
if(get==77&&searchorder<3)
searchorder++;
if(get==72&&searchfloor>1)
searchfloor--;
if(get==80&&searchfloor<7)
searchfloor++;
}
if((get=='='||get=='+')&&searchID<10)
searchID++;
if(get=='-'&&searchID>1)
searchID--;
if(get=='/')
{
get=getch();
if(get=='s'||get=='S')
{
get=getch();
if(get=='e'||get=='E')
{
get=getch();
if(get=='e'||get=='E')
{
for(int i=1;i<=6;i++)
for(int j=11;j<=70;j++)
mobgalleryrecord[i][j]=1;
for(int i=1;i<=6;i++)
for(int j=11;j<=70;j++)
shinymobgalleryrecord[i][j]=1;
for(int i=1;i<=7;i++)
for(int j=1;j<=3;j++)
for(int k=1;k<=10;k++)
bossgalleryrecord[i][j][k]=1;
for(int i=1;i<=6;i++)
for(int j=0;j<=2;j++)
for(int k=2;k<=totalpetalnumber;k++)
lootgalleryrecord[i][j][k]=1;
galleryflag=6361;
}
}
}
}
}
}
loading();
return;
}
void helplist()
{
system("cls");
fout.open("helplist.txt");
if(!fout)
{
cout<<"Error:Can't generate text!";
getch();
return;
}
fout<<"\x56\x32\x2E\x33\x2E\x32\xB9\xE6\xD4\xF2\xA3\xBA"<<endl;
fout<<endl;
fout<<"1. \xD3\xCE\xCF\xB7\xC4\xBF\xB1\xEA"<<endl;
fout<<"\x2A\xB5\xD8\xCD\xBC\xD2\xBB\xB9\xB2\x37\xB2\xE3\xA3\xAC";
fout<<"\xB7\xC2\xD5\xD5\x66\x6C\x6F\x72\x72\xCA\xC0\xBD\xE7\xC4\xA3\xCA\xBD\xD6\xC6\xD7\xF7\xA3\xAC";
fout<<"\xBD\xF8\xC8\xEB\xD0\xC2\xD2\xBB\xB2\xE3\xCA\xB1\xD6\xB1\xBD\xD3\xBD\xF8\xC8\xEB\xD6\xF7\xB3\xC7\x28\x47\x30\x29"<<endl;
fout<<"\x2A\xC3\xBF\xB4\xCE\xD5\xBD\xB6\xB7\xCA\xA4\xC0\xFB\xBA\xF3\xA3\xAC";
fout<<"\xBF\xC9\xD2\xD4\xD1\xA1\xD4\xF1\xC8\xCE\xBA\xCE\xD3\xEB\xD2\xD1\xCC\xBD\xCB\xF7\xB5\xD8\xCD\xBC\xCF\xE0\xC1\xDA\xB5\xC4\xB5\xD8\xCD\xBC\xD5\xBD\xB6\xB7\xA3\xAC";
fout<<"\xD5\xBD\xB6\xB7\xCA\xA7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B\xA4\xBC\xD7"<<endl;
fout<<"\x3C\xBF\xEC\xCB\xD9\xD7\xB0\xCC\xEE(Reload)\x3E\x20";
fout<<"\xBC\xF5\xB6\xCC\x35\x25\x2F\x31\x30\x25\x2F\x31\x35\x25\x2F\x32\x30\x25\x2F\x32\x35\x25\xC0\xE4\xC8\xB4\xCB\xD9\xB6\xC8"<<endl;
fout<<"\x3C\xB7\xE6\xC0\xFB\xBE\xE2\xB3\xDD(Cutter)\x3E\x20";
fout<<"\xB1\xBE\xCC\xE5\xC5\xF6\xD7\xB2\xD4\xEC\xB3\xC9\x32\x30\x2F\x34\x30\x2F\x36\x30\x2F\x39\x30\x2F\x31\x32\x30\xC9\xCB\xBA\xA6"<<endl;
fout<<"\x3C\xC9\xFA\xC3\xFC\xBC\xD3\xB3\xC9(Health)\x3E\x20";
fout<<"\xD4\xF6\xBC\xD3\x31\x30\x25\x2F\x32\x30\x25\x2F\x33\x30\x25\x2F\x34\x30\x25\x2F\x35\x30\x25\xD1\xAA\xC1\xBF\xC9\xCF\xCF\xDE"<<endl;
fout<<"\x3C\xBF\xEC\xCB\xD9\xD0\xD0\xB6\xAF(Action)\x3E\x20";
fout<<"\xBB\xA8\xB0\xEA\xD0\xD0\xB6\xAF\xCB\xF9\xD0\xE8\xBD\xF8\xB6\xC8\xBC\xF5\xC9\xD9\x38\x2F\x31\x36\x2F\x32\x34\x2F\x33\x32\x2F\x34\x30"<<endl;
fout<<"\x3C\xB6\xBE\xC9\xCB\xBF\xB9\xD0\xD4(Antitoxicity)\x3E\x20";
fout<<"\xCA\xDC\xB5\xBD\xB6\xBE\xC9\xCB\xCA\xB1\xA3\xAC\xBC\xF5\xC3\xE2\x32\x30\x25\x2F\x35\x30\x25\x2F\x38\x30\x25\x2F\x31\x31\x30\x25"<<endl;
fout<<"\x3C\xC9\xC1\xB1\xDC\xBB\xA4\xB7\xFB(Evasion)\x3E\x20";
fout<<"\x38\x25\x2F\x31\x35\x25\x2F\x32\x30\x25\x2F\x33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CA\xDC\xBB\xF7\xC4\xDC\xC1\xBF\xCB\xF0\xCA\xA7"<<endl;
fout<<"<Air> \x53\x69\x7A\x65\xBA\xE3\xB6\xA8\x31\xA3\xAC\xB9\xA5\xBB\xF7\xC3\xFC\xD6\xD0\xBA\xF3\xC4\xBF\xB1\xEA\xC5\xD0\xB6\xA8\xD2\xBB\xB4\xCE\xD2\xC6\xB6\xAF\xA3\xAC";
fout<<"\xD4\xEC\xB3\xC9\xB5\xC4\xBB\xF7\xCD\xCB\x2F\x33"<<endl;
fout<<endl;
fout<<"5. \xC9\xFA\xCE\xEF\xBC\xBC\xC4\xDC\x2F\xCC\xD8\xD0\xD4"<<endl;
fout<<endl;
fout<<"<Rock>"<<endl;
fout<<"\x2A\xD7\xD4\xBB\xD9\xA3\xAC\xD5\xD9\xBB\xBD\xCB\xE6\xBB\xFA\x57\xA3\xAC\x53"<<endl;
fout<<"<Ladybug(g)> \xD6\xD0\xC1\xA2"<<endl;
fout<<"<Ant Hole> \x36\x6C\x69\x66\x65\xA3\xAC";
fout<<"\xB4\xDD\xBB\xD9\xCA\xB1\xD6\xD8\xD6\xC3\xB2\xA2\xD5\xD9\xBB\xBD\x42\xA3\xAC\x42\xA3\xAC\x57\xA3\xAC\x53\xA3\xAC\x51"<<endl;
fout<<"\x2A\xD7\xD4\xBB\xD9"<<endl;
fout<<"<Spider> \xB9\xA5\xBB\xF7\xB8\xBD\xB4\xF8\x33\xBB\xD8\xBA\xCF\x44\x61\x6D\x61\x67\x65\x2F\x32\xB6\xBE\xC9\xCB"<<endl;
fout<<"<Dandelion> \xB7\xA2\xC9\xE4\xC9\xCB\xBA\xA6\xCD\xAC\xB1\xBE\xCC\xE5\xB5\xBC\xB5\xAF\xA3\xAC";
fout<<"\xB8\xBD\xB4\xF8\x35\xBB\xD8\xBA\xCF\xBD\xFB\xD6\xB9\xD7\xD4\xB6\xAF\xBB\xD8\xD1\xAA"<<endl;
fout<<"<Bee> \xD6\xD0\xC1\xA2"<<endl;
fout<<"<Hornet> \x35\x30\x25\xB7\xA2\xC9\xE4\xC9\xCB\xBA\xA6\xCD\xAC\xB1\xBE\xCC\xE5\xB5\xBC\xB5\xAF"<<endl;
fout<<"<Centipede(g)> \x35\x6C\x69\x66\x65\xA3\xAC\xD6\xD0\xC1\xA2\xA3\xAC";
fout<<"\xB4\xDD\xBB\xD9\xCA\xB1\xD6\xD8\xD6\xC3\xBD\xF8\xB6\xC8"<<endl;
fout<<"<Cactus> \xB7\xA2\xC9\xE4\xC9\xCB\xBA\xA6\xCD\xAC\xB1\xBE\xCC\xE5\xB5\xBC\xB5\xAF"<<endl;
fout<<"<Scorpion> \xB7\xA2\xC9\xE4\xC9\xCB\xBA\xA6\xCE\xAA\xB1\xBE\xCC\xE5\xD2\xBB\xB0\xEB\xB5\xBC\xB5\xAF\xA3\xAC";
fout<<"\xB8\xBD\xB4\xF8\x35\xBB\xD8\xBA\xCF\xCD\xAC\xB5\xBC\xB5\xAF\xC9\xCB\xBA\xA6\xB6\xBE\xC9\xCB"<<endl;
fout<<"<Ladybug(d)> \xB1\xD8\xB6\xA8\xC9\xFA\xB3\xC9\xCE\xAA\x53\x68\x69\x6E\x79\xA3\xAC\xD6\xD0\xC1\xA2"<<endl;
fout<<"<Ant Burrow> \x36\x6C\x69\x66\x65\xA3\xAC";
fout<<"\xB4\xDD\xBB\xD9\xCA\xB1\xD6\xD8\xD6\xC3\xB2\xA2\xD5\xD9\xBB\xBD\x42\xA3\xAC\x57\xA3\xAC\x57\xA3\xAC\x53\xA3\xAC\x53"<<endl;
fout<<"\x2A\xD7\xD4\xBB\xD9"<<endl;
fout<<"<Sandstorm> \xD6\xD0\xC1\xA2"<<endl;
fout<<"<Centipede(d)> \x35\x6C\x69\x66\x65\xA3\xAC\xD6\xD0\xC1\xA2\xA3\xAC";
fout<<"\xB4\xDD\xBB\xD9\xCA\xB1\xD6\xD8\xD6\xC3\xBD\xF8\xB6\xC8"<<endl;
fout<<"<Bubble>"<<endl;
fout<<"\x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
fout<<"<Mantis> \x33\xC1\xAC\xB7\xA2\xC9\xCB\xBA\xA6\xCD\xAC\xB1\xBE\xCC\xE5\xD2\xBB\xB0\xEB\xB5\xBC\xB5\xAF\xA3\xAC";
fout<<"\xB8\xBD\xB4\xF8\x35\xBB\xD8\xBA\xCF\xCD\xAC\xB5\xBC\xB5\xAF\xC9\xCB\xBA\xA6\xBB\xA4\xBC\xD7\xBC\xF5\xD2\xE6"<<endl;
fout<<"<Termite Mound> \x36\x6C\x69\x66\x65\xA3\xAC";
fout<<"\xB4\xDD\xBB\xD9\xCA\xB1\xD6\xD8\xD6\xC3\xB2\xA2\xD5\xD9\xBB\xBD\x42\xA3\xAC\x57\xA3\xAC\x57\xA3\xAC\x53\xA3\xAC\x53"<<endl;
fout<<"<Ladybug(j)> \xD6\xD0\xC1\xA2"<<endl;
fout<<"<Centipede(j)> \x35\x6C\x69\x66\x65\xA3\xAC\xB4\xDD\xBB\xD9\xCA\xB1\xD6\xD8\xD6\xC3\xBD\xF8\xB6\xC8"<<endl;
fout<<"<Firefly> \xB6\xD4\xBB\xA8\xB0\xEA\xD4\xEC\xB3\xC9\x33\xB1\xB6\xC9\xCB\xBA\xA6"<<endl;
fout<<"<Moth> \xD6\xD0\xC1\xA2"<<endl;
fout<<"<Baby Ant(g)> \xD6\xD0\xC1\xA2"<<endl;
fout<<"<Worker Ant(g)> \xD6\xD0\xC1\xA2"<<endl;
fout<<"<Baby Ant(d)> \xD6\xD0\xC1\xA2"<<endl;
fout<<"<Worker Ant(d)> \xD6\xD0\xC1\xA2"<<endl;
fout<<"<Baby Ant(j)> \xC9\xCB\xBA\xA6\xB9\xB2\xCF\xED\xA3\xAC\xD6\xD0\xC1\xA2"<<endl;
fout<<"<Worker Ant(j)> \xC9\xCB\xBA\xA6\xB9\xB2\xCF\xED\xA3\xAC\xD6\xD0\xC1\xA2"<<endl;
fout<<"<Soldier Ant(j)> \xC9\xCB\xBA\xA6\xB9\xB2\xCF\xED"<<endl;
fout<<"<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xC9\xCB\xBA\xA6\xD4\xF6\xBC\xD3\x36\x30\x25\x28\x2D\x3E\x31\x35\x30\x25\x29"<<endl;
fout<<"\x3C\xC8\xBA\xBE\xD3(Social)\x3E\x20\xBB\xF7\xB0\xDC\xD7\xD4\xC8\xBB\xC9\xFA\xB3\xC9\xB5\xC4\xC9\xFA\xCE\xEF\xBA\xF3\xA3\xAC";
fout<<"\x32\x30\x25\x28\x2D\x3E\x35\x30\x25\x29\xB8\xC5\xC2\xCA\xB6\xEE\xCD\xE2\xC9\xFA\xB3\xC9\xD2\xBB\xB8\xF6\xB8\xC3\xC9\xFA\xCE\xEF"<<endl;
fout<<"\x3C\xD6\xCF\xCF\xA2(Stifle)\x3E\x20\xC3\xBF\x31\x30\xB4\xCE\xD0\xD0\xB6\xAF\xC1\xF7\xCA\xA7\x35\x25\x28\x2D\x3E\x31\x30\x25\x29\xD1\xAA\xC1\xBF\xA3\xAC\xCB\xF8\xD1\xAA"<<endl;
fout.close();
cout<<"Successful generated helplist.txt!";
getch();
return;
}
void menu()
{
system("cls");
char get=' ';
if(!saveflag)
{
inventorynum=8,inventory[1]=inventory[2]=inventory[3]=inventory[4]=inventory[5]=PETAL(),inventory[6]=PETAL(4,1,1),inventory[7]=PETAL(7,2,0),inventory[8]=PETAL(16,1,0);
flowerlevel=1,flowerexp=0,talentpoint=3,slot=6,resettime=2,modnum=0,orderkind[1]=1,orderkind[2]=2,orderkind[3]=3;
for(int i=1;i<=20;i++)
skilllevel[i]=0;
}
while(get!='q'&&get!='Q')
{
system("cls");
slowprint(9,41,(char*)("WELCOME"),100);
slowprint(10,41,(char*)(" T O "),150);
letterslowprint(12,25,(char*)("FLORROOM"),250);
Sleep(500);
slowprint(25,40,(char*)("[R] READY"),50);
slowprint(27,39,(char*)("[G] GALLERY"),50);
slowprint(29,38,(char*)("[M] MORE GAME"),50);
slowprint(31,38,(char*)("[H] LOOK HELP"),50);
slowprint(33,38,(char*)("[Q] QUIT GAME"),50);
slowprint(39,29,(char*)("Recommended:width 87,height 50"),10);
slowprint(41,38,(char*)("Made by 6361"),10);
slowprint(42,41,(char*)("V2.3.2"),10);
slowprint(44,35,(char*)("QQ group:683867338"),10);
slowprint(45,36,(char*)("Luogu team:78788"),10);
get=getch();
while(get!='r'&&get!='R'&&get!='g'&&get!='G'&&get!='m'&&get!='M'&&get!='q'&&get!='Q'&&get!='h'&&get!='H')
{
if(get==-32)
get=getch();
get=getch();
}
if(get=='r'||get=='R')
{
loading();
if(!saveflag)
cfloor=1;
deadflag=0;
start();
system("cls");
if(deadflag)
letterslowprint(20,22,(char*)("GAME OVER "),100);
return;
}
if(get=='g'||get=='G')
gallery();
if(get=='m'||get=='M')
moregame();
if(get=='h'||get=='H')
helplist();
}
return;
}
void start()
{
system("cls");
char get=' ';
sortinventory();
if(!saveflag)
{
energy+=400+100*cfloor;
if(energy>10000||cfloor==1)
energy=10000;
for(int i=0;i<=90;i++)
mapexplored[i]=0;
bossid1=bossid2=bossid3=0;
while(bossid1==bossid2||bossid2==bossid3||bossid3==bossid1)
bossid1=rand()%10+1,bossid2=rand()%10+1,bossid3=rand()%10+1;
for(int i=11;i<=70;i++)
if(MapSpawnNum[i])
{
int tempenvironment=rand()%5+1;
for(int j=1;j<=10;j++)
if(MapEnvironment[j][i/10])
{
tempenvironment--;
if(tempenvironment==0)
mapenvironment[i]=j;
}
if(rand()%100<5*cfloor)
mapenvironment[i]+=11;
if(rand()%100>10*cfloor+30||cfloor==1)
mapenvironment[i]=0;
}
}
currentmap=10,mapx=3,mapy=3;
while(!mapexplored[46])
{
system("cls");
get=' ';
cout<<RGB[cfloor];
letterslowprint(8,27,(char*)("FLOOR "),200);
letterprint(8,57,(char)('0'+cfloor));
cout<<RGB[0];
Sleep(500);
cout<<RGB[currentmap/10+10];
letterslowprint(16,45-5*strlen(mapname[currentmap/10])/2,mapname[currentmap/10],150);
cout<<RGB[0];
for(int i=0;i<=6;i++)
for(int j=0;j<=6;j++)
if(WorldMap[currentmap/10][i][j])
{
int tempmap=WorldMap[currentmap/10][i][j];
if(mapexplored[tempmap])
cout<<"\033["<<25+2*i<<";"<<35+3*j<<"H****"<<"\033["<<26+2*i<<";"<<35+3*j<<"H* *\033["<<27+2*i<<";"<<35+3*j<<"H****";
cout<<RGB[tempmap/10+10];
cout<<"\033["<<26+2*i<<";"<<36+3*j<<"H"<<mapname[tempmap/10][0]<<tempmap%10;
cout<<RGB[0];
if(tempmap==46)
cout<<"\033["<<26+2*i<<";"<<36+3*j<<"H\xA1\xEF ";
}
cout<<"\033["<<26+2*mapx<<";"<<35+3*mapy<<"H-"<<"\033["<<26+2*mapx<<";"<<38+3*mapy<<"H-";
cout<<"\033[43;31HPress [Q] to quit and save";
while(mapexplored[currentmap])
{
get=getch();
if(get=='q'||get=='Q')
{
savetext();
return;
}
if(get==-32)
{
get=getch();
int deltax=0,deltay=0;
if(get==72)
deltax=-1;
if(get==80)
deltax=1;
if(get==75)
deltay=-1;
if(get==77)
deltay=1;
int tempmap=WorldMap[currentmap/10][mapx+deltax][mapy+deltay];
if(deltax+deltay!=0&&tempmap&&!mapexplored[tempmap]&&tempmap!=46)
{
if(cfloor>1)
cout<<"\033[23;65HEnvironment:\033[24;"<<(142-strlen(environmentname[mapenvironment[tempmap]]))/2<<"H"<<environmentname[mapenvironment[tempmap]];
cout<<"\033[26;66HR="<<MapSpawnRarity[tempmap]<<" "<<mapname[tempmap/10][0]<<tempmap%10<<" N="<<MapSpawnNum[tempmap];
for(int i=1;i<=MapSpawnKind[tempmap];i++)
cout<<"\033["<<26+2*i<<";66H",outc(MapSpawnChanceP[tempmap][i],-103),cout<<" "<<mobname[MapSpawnID[tempmap][i]];
cout<<"\033["<<28+2*MapSpawnKind[tempmap]<<";67H[E] Enter\033["<<30+2*MapSpawnKind[tempmap]<<";67H[B] Back";
char get2=' ';
while(get2!='b'&&get2!='B'&&get2!='e'&&get2!='E'&&get2!='\r')
get2=getch();
if(get2=='b'||get2=='B')
{
deltax=deltay=0;
for(int i=23;i<=30+2*MapSpawnKind[tempmap];i++)
cout<<"\033["<<i<<";65H ",Sleep(10);
}
}
if(deltax+deltay!=0&&tempmap==46)
cout<<"\033[26;66HBoss Room"<<"\033[28;66H100% "<<mobname[bossid1]<<"\033[30;66H100% "<<mobname[bossid2]<<"\033[32;66H100% "<<mobname[bossid3];
if(deltax+deltay!=0&&tempmap)
{
cout<<"\033["<<26+2*mapx<<";"<<35+3*mapy<<"H*"<<"\033["<<26+2*mapx<<";"<<38+3*mapy<<"H*";
mapx+=deltax,mapy+=deltay;
cout<<"\033["<<26+2*mapx<<";"<<35+3*mapy<<"H-"<<"\033["<<26+2*mapx<<";"<<38+3*mapy<<"H-";
if(!mapexplored[tempmap])
{
for(int i=1;i<=3;i++)
{
cout<<"\033["<<25+2*mapx<<";"<<35+3*mapy<<"H~~~~\033["<<26+2*mapx<<";"<<35+3*mapy<<"H~\033["<<26+2*mapx<<";"<<38+3*mapy<<"H~\033["<<27+2*mapx<<";"<<35+3*mapy<<"H~~~~";
Sleep(200);
cout<<"\033["<<25+2*mapx<<";"<<35+3*mapy<<"H \033["<<26+2*mapx<<";"<<35+3*mapy<<"H \033["<<26+2*mapx<<";"<<38+3*mapy<<"H \033["<<27+2*mapx<<";"<<35+3*mapy<<"H ";
Sleep(200);
}
}
if(tempmap/10!=currentmap/10)
{
for(int i=0;i<=6;i++)
for(int j=0;j<=6;j++)
if(WorldMap[tempmap/10][i][j]==tempmap)
mapx=i,mapy=j;
currentmap=tempmap;
if(mapexplored[tempmap])
{
system("cls");
get=' ';
cout<<RGB[cfloor];
letterslowprint(8,27,(char*)("FLOOR "),200);
letterprint(8,57,(char)('0'+cfloor));
cout<<RGB[0];
Sleep(500);
cout<<RGB[currentmap/10+10];
letterslowprint(16,45-5*strlen(mapname[currentmap/10])/2,mapname[currentmap/10],150);
cout<<RGB[0];
for(int i=0;i<=6;i++)
for(int j=0;j<=6;j++)
if(WorldMap[currentmap/10][i][j])
{
int tempmap=WorldMap[currentmap/10][i][j];
if(mapexplored[tempmap])
cout<<"\033["<<25+2*i<<";"<<35+3*j<<"H****"<<"\033["<<26+2*i<<";"<<35+3*j<<"H* *\033["<<27+2*i<<";"<<35+3*j<<"H****";
cout<<RGB[tempmap/10+10];
cout<<"\033["<<26+2*i<<";"<<36+3*j<<"H"<<mapname[tempmap/10][0]<<tempmap%10;
cout<<RGB[0];
if(tempmap==46)
cout<<"\033["<<26+2*i<<";"<<36+3*j<<"H\xA1\xEF ";
}
cout<<"\033["<<26+2*mapx<<";"<<35+3*mapy<<"H-"<<"\033["<<26+2*mapx<<";"<<38+3*mapy<<"H-";
cout<<"\033[43;31HPress [Q] to quit and save";
}
}
currentmap=tempmap;
}
}
}
loading(),fight(currentmap);
if(flowerhealth<=0)
{
deadflag=1;
return;
}
mapexplored[currentmap]=1;
savetext();
}
saveflag=0;
if(cfloor<7)
{
cfloor++;
talentpoint=6*flowerlevel-flowerlevel/5*3-3,resettime=2;
for(int i=1;i<=15;i++)
skilllevel[i]=0;
start();
}
else
congrats();
return;
}
void skills()
{
system("cls");
char get=' ';
int skillnum=SkillMaxLevel[0],searchx=1,searchy=1;
cout<<"\033[6;41H[B]ack";
if(resettime)
cout<<"\033[8;39H[R]eset("<<resettime<<")";
cout<<"\033[12;42HTP:"<<talentpoint/10<<talentpoint%10;
for(int i=1;i<=skillnum;i++)
{
cout<<RGB[skilllevel[i]];
cout<<"\033["<<15+(i-1)/4*5<<";"<<(31-strlen(skillname[i]))/2+(i-1)%4*20<<"H"<<skillname[i];
char testskill[20]="";
if(skilllevel[i]<SkillMaxLevel[i])
sprintf(testskill,"Lv%d:%d->%d",skilllevel[i],SkillStatP[i][skilllevel[i]],SkillStatP[i][skilllevel[i]+1]);
else
sprintf(testskill,"Lv%d:%d",skilllevel[i],SkillStatP[i][skilllevel[i]]);
cout<<"\033["<<16+(i-1)/4*5<<";"<<(31-strlen(testskill))/2+(i-1)%4*20<<"H"<<testskill;
if(skilllevel[i]==SkillMaxLevel[i])
cout<<"\033["<<17+(i-1)/4*5<<";"<<13+(i-1)%4*20<<"H(MAX)";
else
cout<<"\033["<<17+(i-1)/4*5<<";"<<13+(i-1)%4*20<<"H("<<SkillTP[i]<<"TP)";
cout<<RGB[0];
}
cout<<"\033["<<13+searchy*5<<";"<<searchx*20-8<<"H| |+| |";
while(get!='b'&&get!='B')
{
get=getch();
if(get==-32)
{
get=getch();
cout<<"\033["<<13+searchy*5<<";"<<searchx*20-8<<"H ";
if(get==75)
{
searchx=(searchx+2)%4+1;
if((searchy-1)*4+searchx>skillnum)
searchx=(skillnum-1)%4+1;
}
if(get==77)
{
searchx=searchx%4+1;
if((searchy-1)*4+searchx>skillnum)
searchx=1;
}
if(get==72)
{
searchy--;
if(searchy<1)
searchy=(skillnum-searchx)/4+1;
}
if(get==80)
{
searchy++;
if((searchy-1)*4+searchx>skillnum)
searchy=1;
}
cout<<"\033["<<13+searchy*5<<";"<<searchx*20-8<<"H| |+| |";
}
int searchnum=(searchy-1)*4+searchx;
if((get=='='||get=='+'||get=='\r')&&skilllevel[searchnum]<SkillMaxLevel[searchnum]&&talentpoint>=SkillTP[searchnum])
{
char testskill[20]="";
slowprint(14+searchy*5,searchx*20-9,(char*)"Level up!",20);
skilllevel[searchnum]++;
cout<<RGB[skilllevel[searchnum]];
slowprint(10+searchy*5,20*searchx-5-strlen(skillname[searchnum])/2,skillname[searchnum],10);
slowprint(11+searchy*5,searchx*20-15,(char*)" ",10);
if(skilllevel[searchnum]<SkillMaxLevel[searchnum])
sprintf(testskill,"Lv%d:%d->%d",skilllevel[searchnum],SkillStatP[searchnum][skilllevel[searchnum]],SkillStatP[searchnum][skilllevel[searchnum]+1]);
else
sprintf(testskill,"Lv%d:%d",skilllevel[searchnum],SkillStatP[searchnum][skilllevel[searchnum]]);
slowprint(11+searchy*5,20*searchx-5-strlen(testskill)/2,testskill,30);
if(skilllevel[searchnum]==SkillMaxLevel[searchnum])
{
slowprint(12+searchy*5,20*searchx-9,(char*)" ",10);
slowprint(12+searchy*5,20*searchx-7,(char*)"(MAX)",30);
}
else
cout<<"\033["<<12+searchy*5<<";"<<20*searchx-7<<"H("<<SkillTP[searchnum]<<"TP)";
slowprint(14+searchy*5,searchx*20-10,(char*)" ",10);
cout<<"\033[12;45H\033[32m"<<talentpoint/10,Sleep(30);
cout<<"\033[12;45H\033[33m"<<talentpoint/10,Sleep(30);
cout<<"\033[12;45H\033[31m"<<talentpoint/10,Sleep(30);
cout<<"\033[12;45H ",Sleep(30);
cout<<"\033[12;46H\033[32m"<<talentpoint%10,Sleep(30);
cout<<"\033[12;46H\033[33m"<<talentpoint%10,Sleep(30);
cout<<"\033[12;46H\033[31m"<<talentpoint%10,Sleep(30);
cout<<"\033[12;46H ",Sleep(30);
talentpoint-=SkillTP[searchnum];
cout<<"\033[12;45H\033[31m"<<talentpoint/10,Sleep(50);
cout<<"\033[12;45H\033[33m"<<talentpoint/10,Sleep(50);
cout<<"\033[12;45H\033[32m"<<talentpoint/10,Sleep(50);
cout<<"\033[12;45H\033[0m"<<talentpoint/10;
cout<<"\033[12;46H\033[31m"<<talentpoint%10,Sleep(50);
cout<<"\033[12;46H\033[33m"<<talentpoint%10,Sleep(50);
cout<<"\033[12;46H\033[32m"<<talentpoint%10,Sleep(50);
cout<<"\033[12;46H\033[0m"<<talentpoint%10;
}
if((get=='r'||get=='R')&&resettime)
{
resettime--;
talentpoint=6*flowerlevel-flowerlevel/5*3-3;
for(int i=1;i<=skillnum;i++)
skilllevel[i]=0;
system("cls");
cout<<"\033[6;41H[B]ack";
if(resettime)
cout<<"\033[8;39H[R]eset("<<resettime<<")";
cout<<"\033[12;42HTP:"<<talentpoint/10<<talentpoint%10;
for(int i=1;i<=skillnum;i++)
{
cout<<RGB[skilllevel[i]];
cout<<"\033["<<15+(i-1)/4*5<<";"<<(31-strlen(skillname[i]))/2+(i-1)%4*20<<"H"<<skillname[i];
char testskill[20]="";
if(skilllevel[i]<SkillMaxLevel[i])
sprintf(testskill,"Lv%d:%d->%d",skilllevel[i],SkillStatP[i][skilllevel[i]],SkillStatP[i][skilllevel[i]+1]);
else
sprintf(testskill,"Lv%d:%d",skilllevel[i],SkillStatP[i][skilllevel[i]]);
cout<<"\033["<<16+(i-1)/4*5<<";"<<(31-strlen(testskill))/2+(i-1)%4*20<<"H"<<testskill;
if(skilllevel[i]==SkillMaxLevel[i])
cout<<"\033["<<17+(i-1)/4*5<<";"<<13+(i-1)%4*20<<"H(MAX)";
else
cout<<"\033["<<17+(i-1)/4*5<<";"<<13+(i-1)%4*20<<"H("<<SkillTP[i]<<"TP)";
cout<<RGB[0];
}
cout<<"\033["<<13+searchy*5<<";"<<searchx*20-8<<"H| |+| |";
}
}
loading();
savetext();
return;
}
void absorb()
{
system("cls");
char get=' ';
int search=1;
while(get!='b'&&get!='B')
{
system("cls");
cout<<"\033[14;41H[B]ack";
cout<<"\033[17;40HLevel:"<<flowerlevel;
cout<<"\033[18;40HExp:"<<flowerexp<<"/"<<LevelExp[flowerlevel];
if(inventorynum<=slot)
cout<<"\033[22;41HABSORB";
else
cout<<"\033[22;41H\033[31mABSORB\033[0m";
inventory[search].petalprint(search);
if(inventorynum>slot)
cout<<"\033[37;40H[A]bsorb";
get=getch();
if(inventorynum>slot&&(get=='a'||get=='A'))
{
int baseexp=PetalExp[inventory[search].rarity]*(inventory[search].level+1),addexp=baseexp+(rand()%(2*baseexp+1)-baseexp)/5;
if(inventory[search].ID==1)
addexp=0;
flowerexp+=addexp;
slowprint(40,40,(char*)("Absorbed! "),30);
slowprint(42,41,(char*)("Exp+"),30),cout<<addexp,Sleep(200);
for(int i=12;i<=40;i++)
cout<<"\033["<<i<<";30H ",Sleep(10);
while(flowerexp>=LevelExp[flowerlevel])
{
flowerexp-=LevelExp[flowerlevel],flowerlevel++;
if(flowerlevel%5)
talentpoint+=6;
else
talentpoint+=3,slot++;
}
for(int i=search;i<inventorynum;i++)
inventory[i]=inventory[i+1];
inventorynum--;
if(search>inventorynum)
search=inventorynum;
}
if(get==-32)
{
get=getch();
if(get==75)
{
search--;
if(search==0)
search=inventorynum;
}
if(get==77)
{
search++;
if(search>inventorynum)
search=1;
}
}
}
loading();
savetext();
return;
}
void rarityup()
{
system("cls");
char get=' ';
int search=1;
while(get!='b'&&get!='B')
{
system("cls");
cout<<"\033[14;41H[B]ack";
if(RarityUpChanceP[inventory[search].rarity][inventory[search].level]==0)
cout<<"\033[22;40HRARITY UP";
else
cout<<"\033[22;40H\033[32mRARITY UP\033[0m";
inventory[search].petalprint(search);
if(RarityUpChanceP[inventory[search].rarity][inventory[search].level]>0)
{
cout<<"\033[37;39H[R]arity up"<<"\033[39;35H";
if(RarityUpChanceP[inventory[search].rarity][inventory[search].level]*(100+SkillStatP[15][skilllevel[15]])/100<100)
outc(RarityUpChanceP[inventory[search].rarity][inventory[search].level]*(100+SkillStatP[15][skilllevel[15]])/100,-103);
else
cout<<"100%";
cout<<" Success Chance";
}
get=getch();
if(RarityUpChanceP[inventory[search].rarity][inventory[search].level]>0&&(get=='r'||get=='R'))
{
rarityuprecordT[skilllevel[14]][inventory[search].rarity][inventory[search].level]++;
if(rand()%100<RarityUpChanceP[inventory[search].rarity][inventory[search].level]*(100+SkillStatP[15][skilllevel[15]])/100)
{
rarityuprecordS[skilllevel[14]][inventory[search].rarity][inventory[search].level]++;
slowprint(42,40,(char*)("Success! "),30),inventory[search].rarity++,inventory[search].level=0;
}
else
slowprint(42,41,(char*)("Failed! "),30),inventory[search].level=rand()%inventory[search].level;
inventory[search].health=PetalHealth[inventory[search].ID]*PetalBaseHealth[inventory[search].rarity][inventory[search].level];
inventory[search].health+=(rand()%(inventory[search].health/5*2+1)-inventory[search].health/5);
inventory[search].damage=PetalDamage[inventory[search].ID]*PetalBaseDamage[inventory[search].rarity][inventory[search].level];
inventory[search].damage+=(rand()%(inventory[search].damage/5*2+1)-inventory[search].damage/5);
for(int i=12;i<=40;i++)
cout<<"\033["<<i<<";30H ",Sleep(10);
sortinventory();
}
if(get==-32)
{
get=getch();
if(get==75)
{
search--;
if(search==0)
search=inventorynum;
}
if(get==77)
{
search++;
if(search>inventorynum)
search=1;
}
}
}
loading();
savetext();
return;
}
bool levelupcheck(int search)
{
if(inventory[search].ID==1||inventory[search].level>=10)
return false;
for(int i=1;i<=inventorynum;i++)
if(i!=search&&inventory[i].ID==inventory[search].ID&&inventory[i].rarity==inventory[search].rarity&&inventory[i].level==inventory[search].level)
return true;
return false;
}
void levelup()
{
system("cls");
char get=' ';
int selected[1000]={0},search=1,selectednum=0,sID=0,srarity=0,slevel=0,savesearch=0;
while(get!='b'&&get!='B')
{
system("cls");
cout<<"\033[14;41H[B]ack";
if(selectednum)
{
if(selected[search])
cout<<"\033[22;40H\033[32mSELECTED\033[0m";
else
cout<<"\033[22;39H\033[31mUNSELECTED\033[0m";
}
else
{
if(!levelupcheck(search))
cout<<"\033[22;40HLEVEL UP";
else
cout<<"\033[22;40H\033[32mLEVEL UP\033[0m";
}
inventory[search].petalprint(search);
if(levelupcheck(search))
{
if(selectednum==0)
cout<<"\033[37;40H[S]elect\033[39;35H",outc(LevelUpChanceP[inventory[search].rarity][inventory[search].level],-102),cout<<"+ Success Chance";
else
if(selectednum==1)
cout<<"\033[37;40H[S]elect\033[39;36H0% Success Chance";
else
if(LevelUpChanceP[srarity][slevel]*selectednum*(100+SkillStatP[15][skilllevel[15]])/100<100)
cout<<"\033[37;40H[S]elect\033[39;36H",outc(LevelUpChanceP[srarity][slevel]*selectednum*(100+SkillStatP[15][skilllevel[15]])/100,-102),cout<<" Success Chance\033[41;39H[L]evel up";
else
cout<<"\033[37;40H[S]elect\033[39;35H100% Success Chance!\033[41;39H[L]evel up";
}
get=getch();
if(selectednum>1&&(get=='l'||get=='L'))
{
if(selectednum<10)
leveluprecordT[skilllevel[14]][inventory[search].rarity][inventory[search].level][selectednum]++;
if(rand()%100<LevelUpChanceP[srarity][slevel]*selectednum*(100+SkillStatP[15][skilllevel[15]])/100)
{
if(selectednum<10)
leveluprecordS[skilllevel[14]][inventory[search].rarity][inventory[search].level][selectednum]++;
slowprint(42,41,(char*)("Success! "),30),inventory[++inventorynum]=PETAL(sID,srarity,slevel+1);
int inherit=rand()%selectednum+1,icheck=0;
while(inherit)
icheck++,inherit-=selected[icheck];
inventory[inventorynum].speed=inventory[icheck].speed;
inherit=rand()%selectednum+1,icheck=0;
while(inherit)
icheck++,inherit-=selected[icheck];
inventory[inventorynum].reload=inventory[icheck].reload;
inherit=rand()%selectednum+1,icheck=0;
while(inherit)
icheck++,inherit-=selected[icheck];
inventory[inventorynum].atkbuff=inventory[icheck].atkbuff;
inherit=rand()%selectednum+1,icheck=0;
while(inherit)
icheck++,inherit-=selected[icheck];
inventory[inventorynum].defbuff=inventory[icheck].defbuff;
for(int i=inventorynum;i>=1;i--)
if(selected[i])
{
for(int j=i;j<inventorynum;j++)
inventory[j]=inventory[j+1];
inventorynum--;
}
}
else
{
slowprint(42,41,(char*)("Failed! "),30);
int destroy=rand()%(selectednum-1)+1;
for(int i=inventorynum;i>=1;i--)
if(selected[i]&&rand()%selectednum<destroy)
{
destroy--,selectednum--;
for(int j=i;j<inventorynum;j++)
inventory[j]=inventory[j+1];
inventorynum--;
}
else
selectednum-=selected[i];
}
for(int i=12;i<=40;i++)
cout<<"\033["<<i<<";30H ",Sleep(10);
search=savesearch;
if(search>inventorynum)
search=inventorynum;
selectednum=0;
for(int i=1;i<=990;i++)
selected[i]=0;
sortinventory();
}
if(levelupcheck(search)&&(get=='s'||get=='S'))
{
if(selectednum==0)
sID=inventory[search].ID,srarity=inventory[search].rarity,slevel=inventory[search].level;
savesearch=search;
selectednum-=selected[search],selected[search]=1-selected[search],selectednum+=selected[search];
}
if(get==-32)
{
get=getch();
if(get==75)
{
search--;
if(search==0)
search=inventorynum;
if(selectednum)
while(inventory[search].ID!=sID||inventory[search].rarity!=srarity||inventory[search].level!=slevel)
{
search--;
if(search==0)
search=inventorynum;
}
}
if(get==77)
{
search++;
if(search>inventorynum)
search=1;
if(selectednum)
while(inventory[search].ID!=sID||inventory[search].rarity!=srarity||inventory[search].level!=slevel)
{
search++;
if(search>inventorynum)
search=1;
}
}
}
}
loading();
savetext();
return;
}
void reorder()
{
system("cls");
char get=' ';
int decide[10]={0,1,1,1,1},decided=0;
order[0]='\0';
cout<<"\033[16;41HOrder:\033[20;42H[I]D\033[22;40H[R]arity\033[24;41H[L]evel\033[26;41H[N]ame";
while(decided<3)
{
get=getch();
if(decide[1]&&(get=='i'||get=='I'))
{
decide[1]=decide[4]=0;
strcat(order,"ID");
decided++;
orderkind[decided]=1;
cout<<"\033[20;38H"<<decided;
if(decided<3)
strcat(order,"->");
}
if(decide[2]&&(get=='r'||get=='R'))
{
decide[2]=0;
strcat(order,"Rarity");
decided++;
orderkind[decided]=2;
cout<<"\033[22;38H"<<decided;
if(decided<3)
strcat(order,"->");
}
if(decide[3]&&(get=='l'||get=='L'))
{
decide[3]=0;
strcat(order,"Level");
decided++;
orderkind[decided]=3;
cout<<"\033[24;38H"<<decided;
if(decided<3)
strcat(order,"->");
}
if(decide[4]&&(get=='n'||get=='N'))
{
decide[1]=decide[4]=0;
strcat(order,"Name");
decided++;
orderkind[decided]=4;
cout<<"\033[26;38H"<<decided;
if(decided<3)
strcat(order,"->");
}
}
sortinventory();
Sleep(500);
loading();
savetext();
return;
}
void equippetal()
{
system("cls");
char get=' ';
sortinventory();
int equipednum=0,selected[20]={0},search=1,valid=0,valid2=0;
for(int i=1;i<=inventorynum;i++)
equipednum+=inventory[i].select;
if(equipednum==slot)
valid2=1;
while(!valid)
{
system("cls");
cout<<"\033[8;38HEnergy:",outc(energy,-10000);
cout<<"\033[10;39H[T]alent("<<talentpoint<<")\033[12;39H[A]bsorb("<<flowerlevel<<")\033[14;39H[R]arity Up\033[16;39H[L]evel Up";
cout<<"\033[18;"<<37-strlen(order)/2<<"H[O]rdering by "<<order;
if(inventory[search].select)
cout<<"\033[22;40H\033[32mSELECTED\033[0m";
else
cout<<"\033[22;39H\033[31mUNSELECTED\033[0m";
inventory[search].petalprint(search);
cout<<"\033[37;40H[S]elect";
if(equipednum==slot||(equipednum==inventorynum&&inventorynum<slot))
cout<<"\033[40;41H[F]ight";
if(equipednum==slot&&valid2)
cout<<"\033[42;38H[Q]uick join";
get=getch();
if(get=='t'||get=='T')
loading(),skills();
if(get=='a'||get=='A')
{
loading(),absorb();
search=1,equipednum=0;
for(int i=1;i<=inventorynum;i++)
equipednum+=inventory[i].select;
valid2=0;
}
if(get=='r'||get=='R')
{
loading(),rarityup();
search=1;
valid2=0;
}
if(get=='l'||get=='L')
{
loading(),levelup();
search=1,equipednum=0;
for(int i=1;i<=inventorynum;i++)
equipednum+=inventory[i].select;
valid2=0;
}
if(get=='o'||get=='O')
{
loading(),reorder();
search=1;
valid2=0;
}
if((get=='s'||get=='S'||get=='\r')&&(inventory[search].select||equipednum<slot))
{
equipednum-=inventory[search].select;
inventory[search].select=1-inventory[search].select;
equipednum+=inventory[search].select;
valid2=0;
}
if((get=='q'||get=='Q')&&valid2)
valid=1;
if((get=='f'||get=='F')&&(equipednum==slot||(equipednum==inventorynum&&inventorynum<slot)))
valid=1,valid2=0;
if(get==-32)
{
get=getch();
if(get==75)
{
search--;
if(search==0)
search=inventorynum;
}
if(get==77)
{
search++;
if(search>inventorynum)
search=1;
}
}
}
equipednum=0;
for(int i=1;i<=inventorynum;i++)
if(inventory[i].select)
equiped[++equipednum]=inventory[i],equiped[equipednum].select=i;
for(int i=equipednum+1;i<=slot;i++)
equiped[i]=PETAL();
loading();
summonnum=0;
if(valid2)
for(int i=1;i<=slot;i++)
equiped[i].x=inventory[equiped[i].select].x,equiped[i].y=inventory[equiped[i].select].y;
else
for(int i=1;i<=slot;i++)
{
printbiome();
slowprint(5,35,(char*)("PLACE THE PETALS..."),0);
strcat(comment,equiped[i].name),cout<<RGB[equiped[i].rarity];
commentprint();
while(!petalplaceallowed(i))
equiped[i].x=rand()%8+1,equiped[i].y=rand()%3+4;
equiped[i].print();
selectxy(equiped[i].x,equiped[i].y);
get=' ';
while(get!='\r')
{
get=getch();
if(get==-32)
{
get=getch();
equiped[i].cover();
if(get==72)
{
equiped[i].y--;
if(equiped[i].y<4)
equiped[i].y=6;
while(!petalplaceallowed(i))
{
equiped[i].y--;
if(equiped[i].y<4)
equiped[i].y=6;
}
}
if(get==80)
{
equiped[i].y++;
if(equiped[i].y>6)
equiped[i].y=4;
while(!petalplaceallowed(i))
{
equiped[i].y++;
if(equiped[i].y>6)
equiped[i].y=4;
}
}
if(get==75)
{
equiped[i].x--;
if(equiped[i].x<1)
equiped[i].x=8;
while(!petalplaceallowed(i))
{
equiped[i].x--;
if(equiped[i].x<1)
equiped[i].x=8;
}
}
if(get==77)
{
equiped[i].x++;
if(equiped[i].x>8)
equiped[i].x=1;
while(!petalplaceallowed(i))
{
equiped[i].x++;
if(equiped[i].x>8)
equiped[i].x=1;
}
}
equiped[i].print();
selectxy(equiped[i].x,equiped[i].y);
}
}
inventory[equiped[i].select].x=equiped[i].x,inventory[equiped[i].select].y=equiped[i].y;
}
if(energy<10000)
for(int i=1;i<=slot;i++)
equiped[i].currenthealth=equiped[i].health=equiped[i].health*energy/10000,equiped[i].damage=equiped[i].damage*energy/10000;
return;
}
void HIT(PETAL* pt,MOB* mb,int shoot)
{
int realATK=pt->atk2;
if(pt->y>4)
realATK=pt->atk1;
if(shoot&&pt->ID!=21)
{
realATK=60+10*abs(4-abs(pt->x-mb->x))-10*abs(pt->y-mb->y);
if(pt->ID==29)
realATK=realATK*2-80;
pt->currenthealth=0;
}
if(pt->ID==21&&shoot==1&&pt->x+pt->y-mb->x-mb->y%2==0)
{
sprintf(comment,"Missed!(%d%%)",100-ATKcalc(realATK,mb->dodge,(pt->x-mb->x)*(1-shoot),pt->size,pt->atkbuff));
commentprint();
}
else
if(rand()%100>=ATKcalc(realATK,mb->dodge,(pt->x-mb->x)*(1-shoot),pt->size,pt->atkbuff)*accurate&&(pt->ID!=21||shoot!=1))
{
sprintf(comment,"Missed!(%d%%)",100-ATKcalc(realATK,mb->dodge,(pt->x-mb->x)*(1-shoot),pt->size,pt->atkbuff));
commentprint();
}
else
{
sprintf(comment,"Successful attack!(%d%%)",ATKcalc(realATK,mb->dodge,(pt->x-mb->x)*(1-shoot),pt->size,pt->atkbuff));
cout<<"\033[32m",commentprint();
int damageforpetal=mb->damage,damageformob=pt->damage*2,knockback=50+SkillStatP[12][skilllevel[12]];
if(modusing[101]&&pt->ID==18&&pt->name[1]=='I')
damageformob*=3;
if(pt->ID==34)
mb->move(),knockback/=3;
if(pt->ID==18)
knockback/=5;
if(pt->ID==23)
knockback*=3;
if(pt->ID==24&&mb->currenthealth==mb->health)
{
sprintf(comment,"Claw:5*damage to mob!");
cout<<"\033[36m",commentprint();
damageformob*=5;
knockback=1000;
}
if(pt->ID==29&&shoot)
damageformob/=2;
damageformob+=mb->armordebuff[1];
if(mb->ID==43)
damageformob-=mb->special;
if(mb->ID==7)
{
if(mb->speed<30)
damageformob-=mb->damage/3;
else
if(mb->speed<40)
damageformob-=mb->damage;
else
damageformob-=mb->damage*5/3;
if(mb->speed>=50)
damageformob/=2;
if(mb->speed>=60)
damageformob=0;
}
if(mb->ID<=10)
mb->speed+=MobSpeed[mb->ID];
if(damageformob<=0)
damageformob=1;
if(mb->ID==48)
{
sprintf(comment,"Firefly:3*damage to petal!");
cout<<"\033[36m",commentprint();
damageforpetal*=3;
}
damageforpetal-=SkillStatP[10][skilllevel[10]];
if(damageforpetal<=0)
damageforpetal=1;
pt->currenthealth-=damageforpetal;
if(pt->special>1&&((pt->ID==2&&pt->currenthealth<=(pt->special-1)*pt->health/3)||(pt->ID==19&&pt->currenthealth<=(pt->special-1)*pt->health/4)
||(pt->ID==29&&pt->currenthealth<=(pt->special-1)*pt->health/4)))
{
sprintf(comment,"Petal:One %s is destroyed!",pt->name);
cout<<"\033[31m",commentprint();
pt->special--,pt->currenthealth=pt->special*pt->health/(pt->ID%2+3);
if(pt->ID==19)
pt->atk1-=10,pt->atk2-=10,pt->def1-=10,pt->def2-=10;
}
else
if(pt->currenthealth<=0)
{
sprintf(comment,"Petal:%s is destroyed!",pt->name);
cout<<"\033[31m",commentprint();
if(pt->ID==6&&(mb->ID!=13&&mb->ID!=25&&mb->ID!=45))
{
mb->poison[1]=mb->poison[2]=mb->poison[3]=mb->poison[4]=mb->poison[5]=pt->special;
sprintf(comment,"Iris:%s is poisoned!",mb->name);
cout<<"\033[35m",commentprint();
}
}
else
{
sprintf(comment,"Petal:%s's health-%d,%d left",pt->name,damageforpetal,pt->currenthealth);
commentprint();
}
sprintf(comment,"Mob:Knockback,action bar-%d",knockback);
commentprint();
mb->actionbar-=knockback;
if(mb->actionbar<-50)
mb->actionbar=-50;
if(pt->ID==12&&(mb->ID==32||mb->ID==35||mb->ID==37||mb->ID==6))
{
sprintf(comment,"Dandelion:%s -50% heal!",mb->name);
cout<<"\033[32m",commentprint();
mb->special/=2;
}
if(pt->ID==28)
{
sprintf(comment,"Fangs:+%d health!",damageformob/2);
cout<<"\033[32m",commentprint();
flowerhealth+=damageformob/2;
if(flowerhealth>flowermaxhealth)
flowerhealth=flowermaxhealth;
}
if(pt->ID==32)
{
int burarmordebuff=pt->special;
if(modusing[101]&&rand()%100<5)
burarmordebuff*=30;
sprintf(comment,"Bur:%s -%d armor!",mb->name,burarmordebuff);
cout<<"\033[32m",commentprint();
mb->armordebuff[1]=mb->armordebuff[2]=mb->armordebuff[3]=mb->armordebuff[4]=mb->armordebuff[5]=burarmordebuff;
}
if(mb->type==2)
mb->type=3;
if(pt->ID==30&&mb->type==3&&rand()%2)
{
sprintf(comment,"Relic:%s become neutral!",mb->name);
cout<<"\033[32m",commentprint();
mb->type=2;
}
if(mb->ID>=68)
{
int totalreliccount=0;
for(int j=1;j<=spawnednum;j++)
if(spawned[j].ID>=58)
totalreliccount++;
damageformob/=totalreliccount;
for(int j=1;j<=spawnednum;j++)
if(spawned[j].ID>=58)
{
spawned[j].currenthealth-=damageformob;
if(spawned[j].currenthealth<=0)
{
if(spawned[j].shiny)
sprintf(comment,"Mob:%s is destroyed!(SHINY %s)",spawned[j].name,rarityname[spawned[j].rarity]);
else
sprintf(comment,"Mob:%s is destroyed!(%s)",spawned[j].name,rarityname[spawned[j].rarity]);
cout<<"\033[31m",commentprint();
spawned[j].droploot();
}
else
{
sprintf(comment,"Mob:%s's health-%d,%d left",spawned[j].name,damageformob,spawned[j].currenthealth);
commentprint();
}
}
}
else
{
if(mb->ID!=32)
for(int i=1;i<=spawnednum;i++)
if(spawned[i].ID==32&&(abs(spawned[i].x-mb->x)+abs(spawned[i].y-mb->y)==1))
{
mb=&spawned[i];
break;
}
mb->currenthealth-=damageformob;
if(mb->currenthealth<=0&&(mb->ID==13||mb->ID==18||mb->ID==25||mb->ID==27||mb->ID==45||mb->ID==47)&&mb->special>1)
{
sprintf(comment,"Mob:%s is destroyed!(%d life left)",mb->name,mb->special-1);
cout<<"\033[31m",commentprint();
mb->special--,mb->currenthealth=mb->health,mb->actionbar=0;
if(mb->ID==25||mb->ID==45)
readyspawn[++readyspawnnum]=MOB(61+mb->ID/6+(6-mb->special)/2,mb->rarity,mb->shiny,mb->x,mb->y);
else
if(mb->ID==13)
readyspawn[++readyspawnnum]=MOB(64-mb->special*3/4,mb->rarity,mb->shiny,mb->x,mb->y);
else
mb->droploot();
}
else
if(mb->currenthealth<=0)
{
if(mb->shiny)
sprintf(comment,"Mob:%s is destroyed!(SHINY %s)",mb->name,rarityname[mb->rarity]);
else
sprintf(comment,"Mob:%s is destroyed!(%s)",mb->name,rarityname[mb->rarity]);
cout<<"\033[31m",commentprint();
mb->droploot();
}
else
{
sprintf(comment,"Mob:%s's health-%d,%d left",mb->name,damageformob,mb->currenthealth);
commentprint();
}
}
}
deleteifdead();
getch();
return;
}
void HIT(MOB* mb,PETAL* pt,int shoot)
{
int realDEF=0,realdodge=mb->dodge;
if((pt->ID==21&&pt->y>mb->y)||(abs(pt->ID-12)==1&&pt->special<0&&pt->y>mb->y)||pt->y==5)
realDEF=pt->def1;
if(pt->y==6)
realDEF=pt->def2;
if(pt->currenthealth<=0)
realDEF=0;
if(shoot<0||rand()%100>=DEFcalc(realDEF,mb->dodge,pt->x-mb->x,pt->size,pt->defbuff))
{
if(rand()%100<SkillStatP[9][skilllevel[9]])
{
sprintf(comment,"Evasion:Evaded!");
cout<<"\033[38;2;144;72;0m";
commentprint();
getch();
return;
}
if(shoot>=0)
sprintf(comment,"Failed!(%d%%)",100-DEFcalc(realDEF,mb->dodge,pt->x-mb->x,pt->size,pt->defbuff));
else
sprintf(comment,"Failed!(100%%)");
commentprint();
energy-=3;
if(mapenvironment[currentmap]==2)
energy-=3;
if(mapenvironment[currentmap]==13)
energy-=6;
int damageforflower=mb->damage;
if(mb->ID==9)
damageforflower=mb->special;
if(mapenvironment[currentmap]==8&&mb->currenthealth==mb->health)
damageforflower+=damageforflower*3/5;
if(mapenvironment[currentmap]==19&&mb->currenthealth==mb->health)
damageforflower+=damageforflower*3/2;
damageforflower+=flowerarmordebuff[1]-flowerarmor;
if(damageforflower<1)
damageforflower=1;
if(!spongeusing)
{
int reduceddamage=damageforflower;
if(cottonsuspend)
{
energy+=2;
if(mapenvironment[currentmap]==2)
energy+=2;
if(mapenvironment[currentmap]==13)
energy+=4;
for(int i=1;i<=slot;i++)
if(equiped[i].ID==33&&equiped[i].special>0)
{
equiped[i].currenthealth-=damageforflower;
if(equiped[i].currenthealth>0)
reduceddamage=0;
else
{
reduceddamage=-equiped[i].currenthealth;
equiped[i].actionbar=0,equiped[i].special=0;
equiped[i].def1=10,equiped[i].def2=50;
strcpy(equiped[i].name,"Cotton");
}
}
}
damageforflower=reduceddamage;
if(mapenvironment[currentmap]==6)
damageforflower+=damageforflower/5;
if(mapenvironment[currentmap]==17)
damageforflower+=damageforflower/2;
if(wing101)
damageforflower-=damageforflower/5;
if(flowershield<damageforflower)
flowerhealth=flowerhealth+flowershield-damageforflower,flowershield=0;
else
flowershield-=damageforflower;
}
else
for(int i=1;i<=5;i++)
flowerpoison[i]+=damageforflower/5;
sprintf(comment,"Flower health -%d",damageforflower);
commentprint();
if(mb->ID==15)
{
sprintf(comment,"Dandelion:Auto heal disabled!");
cout<<"\033[36m",commentprint();
autohealdisable=5;
}
if(flowerdamagereturnP)
{
mb->currenthealth-=flowerdamagereturnP*damageforflower/100;
if(mb->currenthealth>0)
{
sprintf(comment,"Return:%s's health-%d,%d left",mb->name,flowerdamagereturnP*damageforflower/100,mb->currenthealth);
commentprint();
}
}
if(skilllevel[5])
{
mb->currenthealth-=SkillStatP[5][skilllevel[5]];
if(mb->currenthealth>0)
{
sprintf(comment,"Cutter:%s's health-%d,%d left",mb->name,SkillStatP[5][skilllevel[5]],mb->currenthealth);
cout<<"\033[38;2;144;72;0m";
commentprint();
}
}
if(mb->ID<=10)
flowermaxhealth--,flowerhealth--;
if(mb->ID==1)
for(int i=1;i<=5;i++)
flowerpoison[i]+=mb->damage/3;
if(mb->ID==14)
for(int i=1;i<=3;i++)
{
if(spongeusing>0||mapenvironment[currentmap]%11==4)
flowerpoison[i]+=mb->special;
else
if(flowerpoison[i]<mb->special)
flowerpoison[i]=mb->special;
}
if(mb->ID==23)
for(int i=1;i<=5;i++)
{
if(spongeusing>0||mapenvironment[currentmap]%11==4)
flowerpoison[i]+=mb->damage;
else
if(flowerpoison[i]<mb->damage)
flowerpoison[i]=mb->damage;
}
if(mb->ID==46&&mapenvironment[currentmap]%11==4)
for(int i=1;i<=3;i++)
flowerpoison[i]+=mb->damage/4;
if(mb->ID==44)
for(int i=1;i<=5;i++)
if(flowerarmordebuff[i]<mb->damage)
flowerarmordebuff[i]=mb->damage;
if(mb->ID==8)
for(int i=1;i<=5;i++)
flowerarmordebuff[i]+=mb->damage;
if(mb->currenthealth<=0&&mb->special!=-6361)
{
if((mb->ID==18||mb->ID==27||mb->ID==47)&&mb->special>1)
{
mb->currenthealth=mb->health,mb->special--;
sprintf(comment,"%s is destroyed!(%d life left)",mb->name,mb->special);
}
else
if(mb->shiny)
sprintf(comment,"Mob:%s is destroyed!(SHINY %s)",mb->name,rarityname[mb->rarity]);
else
sprintf(comment,"Mob:%s is destroyed!(%s)",mb->name,rarityname[mb->rarity]);
cout<<"\033[31m",commentprint();
mb->droploot();
}
}
else
{
sprintf(comment,"Successful defend!(%d%%)",DEFcalc(realDEF,mb->dodge,pt->x-mb->x,pt->size,pt->defbuff));
cout<<"\033[32m",commentprint();
int damageforpetal=mb->damage,damageformob=pt->damage;
damageformob+=mb->armordebuff[1];
if(mb->ID==33)
{
sprintf(comment,"Shell:Knockback,%s's action bar-250",pt->name);
cout<<"\033[36m",commentprint();
pt->actionbar-=250;
if(pt->actionbar<-99)
pt->currenthealth+=(99+pt->actionbar)*pt->health/100,pt->actionbar=-99;
}
if(mb->ID==43)
damageformob-=mb->special;
if(mb->ID==7)
{
if(mb->speed<30)
damageformob-=mb->damage/3;
else
if(mb->speed<40)
damageformob-=mb->damage;
else
damageformob-=mb->damage*5/3;
if(mb->speed>=50)
damageformob/=2;
if(mb->speed>=60)
damageformob=0;
}
if(damageformob<=0)
damageformob=1;
if(mb->ID==48)
{
sprintf(comment,"Firefly:3*damage to petal!");
cout<<"\033[36m",commentprint();
damageforpetal*=3;
}
if(mapenvironment[currentmap]==8&&mb->currenthealth==mb->health)
damageforpetal+=damageforpetal*3/5;
if(mapenvironment[currentmap]==19&&mb->currenthealth==mb->health)
damageforpetal+=damageforpetal*3/2;
damageforpetal-=SkillStatP[10][skilllevel[10]];
if(damageforpetal<=0)
damageforpetal=1;
pt->currenthealth-=damageforpetal;
if(pt->special>1&&((pt->ID==2&&pt->currenthealth<=(pt->special-1)*pt->health/3)||(pt->ID==19&&pt->currenthealth<=(pt->special-1)*pt->health/4)
||(pt->ID==29&&pt->currenthealth<=(pt->special-1)*pt->health/4)))
{
sprintf(comment,"Petal:One %s is destroyed!",pt->name);
cout<<"\033[31m",commentprint();
pt->special--,pt->currenthealth=pt->special*pt->health/(pt->ID%2+3);
if(pt->ID==19)
pt->atk1-=10,pt->atk2-=10,pt->def1-=10,pt->def2-=10;
}
else
if(pt->currenthealth<=0)
{
sprintf(comment,"Petal:%s is destroyed!",pt->name);
cout<<"\033[31m",commentprint();
pt->actionbar=0;
if(pt->ID==6)
{
mb->poison[1]=mb->poison[2]=mb->poison[3]=mb->poison[4]=mb->poison[5]=pt->special;
sprintf(comment,"Iris:%s is poisoned!",mb->name);
cout<<"\033[35m",commentprint();
}
if(pt->ID==26&&mapenvironment[currentmap]%11!=4)
spongeusing=2;
}
else
{
sprintf(comment,"Petal:%s's health-%d,%d left",pt->name,damageforpetal,pt->currenthealth);
commentprint();
}
if(pt->ID==12&&(mb->ID==32||mb->ID==35||mb->ID==37||mb->ID==6))
{
sprintf(comment,"Dandelion:%s -50% heal!",mb->name);
cout<<"\033[32m",commentprint();
mb->special/=2;
}
if(pt->ID==28)
{
sprintf(comment,"Fangs:+%d health!",damageformob/2);
cout<<"\033[32m",commentprint();
flowerhealth+=damageformob/2;
if(flowerhealth>flowermaxhealth)
flowerhealth=flowermaxhealth;
}
if(pt->ID==23)
{
int knockback=100+SkillStatP[12][skilllevel[12]];
mb->actionbar-=knockback;
sprintf(comment,"Jelly:Knockback,action bar-%d",knockback);
commentprint();
if(mb->actionbar<-50)
mb->actionbar=-50;
}
if(mb->type==2)
mb->type=3;
if(pt->ID==30&&mb->type==3&&rand()%2)
{
sprintf(comment,"Relic:%s become neutral!",mb->name);
cout<<"\033[32m",commentprint();
mb->type=2;
}
mb->currenthealth-=damageformob;
if(mb->currenthealth<=0&&(mb->ID==18||mb->ID==27||mb->ID==47)&&mb->special>1)
{
sprintf(comment,"Mob:%s is destroyed!(%d life left)",mb->name,mb->special-1);
cout<<"\033[31m",commentprint();
mb->special--,mb->currenthealth=mb->health,mb->actionbar=0;
mb->droploot();
}
else
if(mb->currenthealth<=0)
{
if(mb->shiny)
sprintf(comment,"Mob:%s is destroyed!(SHINY %s)",mb->name,rarityname[mb->rarity]);
else
sprintf(comment,"Mob:%s is destroyed!(%s)",mb->name,rarityname[mb->rarity]);
cout<<"\033[31m",commentprint();
if(!shoot)
mb->droploot();
}
else
{
sprintf(comment,"Mob:%s's health-%d,%d left",mb->name,damageformob,mb->currenthealth);
commentprint();
}
}
deleteifdead();
getch();
return;
}
void oneaction()
{
if(mapenvironment[currentmap]%11==10)
actionedtime++;
if(actionedtime==10)
{
flowerhealth-=mapenvironment[currentmap]/10*flowermaxhealth/10;
if(flowerhealth<1)
flowerhealth=1;
sprintf(comment,"%s:Flower health-%d",environmentname[mapenvironment[currentmap]],mapenvironment[currentmap]/10*flowermaxhealth/10);
cout<<"\033[38;2;127;127;255m",commentprint();
getch();
actionedtime=0;
}
return;
}
void fight(int map)
{
system("cls");
char get=' ';
equippetal();
if(energy<1000)
{
deadflag=1,flowerhealth=0;
return;
}
if(modusing[101])
{
rock101=0,stinger101=0,iris101=0,wing101=0,faster101=0,yinyang101=0,leaf101=0,yggdrasil101=0,pearl101=0,lightning101=0;
for(int i=1;i<=slot;i++)
if(equiped[i].ID==3)
rock101=1;
for(int i=1;i<=slot;i++)
if(equiped[i].ID==5)
stinger101=equiped[i].rarity;
for(int i=1;i<=slot;i++)
if(equiped[i].ID==6)
iris101=1;
for(int i=1;i<=slot;i++)
if(equiped[i].ID==7)
wing101=1;
for(int i=1;i<=slot;i++)
if(equiped[i].ID==10)
faster101+=PetalExp[equiped[i].rarity]*(equiped[i].level+1);
for(int i=1;i<=slot;i++)
if(equiped[i].ID==15)
yinyang101=1;
for(int i=1;i<=slot;i++)
if(equiped[i].ID==16)
leaf101+=10*equiped[i].rarity;
for(int i=1;i<=slot;i++)
if(equiped[i].ID==16&&equiped[i].rarity>=5&&equiped[i].level)
yggdrasil101=1;
for(int i=1;i<=slot;i++)
if(equiped[i].ID==21)
pearl101=1;
for(int i=1;i<=slot;i++)
if(equiped[i].ID==22)
lightning101=1;
for(int i=1;i<=slot;i++)
if(equiped[i].ID==34)
equiped[i].def1=equiped[i].def2=10*equiped[i].level;
if(rock101)
for(int i=1;i<=slot;i++)
equiped[i].damage+=equiped[i].damage/5;
if(yggdrasil101)
for(int i=1;i<=slot;i++)
equiped[i].health+=equiped[i].health/5;
if(stinger101)
SkillStatP[13][skilllevel[13]]+=stinger101;
if(rand()%2)
iris101=0;
}
spongeusing=0,flowershield=0,summonnum=0,cottonsuspend=0,actionedtime=0;
flowerhealth=flowermaxhealth=LevelHealth[flowerlevel]*(100+SkillStatP[6][skilllevel[6]])/100;
flowerdamagereturnP=0,flowerarmor=0,autohealdisable=0,spongeusing=0,fullactionbar=200-SkillStatP[7][skilllevel[7]];
for(int i=0;i<=9;i++)
flowerpoison[i]=flowerarmordebuff[i]=0;
for(int i=1;i<=slot;i++)
equiped[i].spawn(),equiped[i].reload-=equiped[i].reload*SkillStatP[4][skilllevel[4]]/100;
for(int i=1;i<=slot;i++)
if(equiped[i].ID==27)
{
for(int j=1;j<=slot;j++)
equiped[j].size+=2;
}
for(int i=1;i<=slot;i++)
{
equiped[i].size+=SkillStatP[14][skilllevel[14]];
if(equiped[i].size>20)
equiped[i].size=20;
if(equiped[i].ID==34)
equiped[i].size=1;
}
for(int i=1;i<=slot;i++)
if(equiped[i].ID==31)
flowerarmor=equiped[i].health;
flowerarmor/=10,flowerarmor+=SkillStatP[3][skilllevel[3]];
int unspawnedmax=MapSpawnNum[map]*FloorNumFactor10[cfloor],unspawnedmin=MapSpawnNum[map]*2/3*FloorNumFactor10[cfloor];
unspawnednum=rand()%(unspawnedmax-unspawnedmin+1)+unspawnedmin;
if(rand()%10<unspawnednum%10)
unspawnednum+=10;
unspawnednum/=10;
spawnednum=0;
if(map==46)
{
unspawnednum=0,spawnednum=3;
for(int i=1;i<=3;i++)
spawned[i].x=0,spawned[i].y=0;
spawned[1].ID=bossid1,spawned[2].ID=bossid2,spawned[3].ID=bossid3;
for(int i=1;i<=3;i++)
{
spawned[i].normal=1;
spawned[i].rarity=BossRarity[cfloor][i];
spawned[i].health=MobHealth[spawned[i].ID]*MobBaseHealth[spawned[i].rarity]*BossHealth10[cfloor]/10;
spawned[i].damage=MobDamage[spawned[i].ID]*MobBaseDamage[spawned[i].rarity]*BossDamage10[cfloor]/10;
spawned[i].dodge=MobDodgeP[spawned[i].ID],spawned[i].speed=MobSpeed[spawned[i].ID]*5;
spawned[i].currenthealth=spawned[i].health,spawned[i].actionbar=0,spawned[i].special=0,spawned[i].type=4,spawned[i].shiny=0;
int spawnx=0,spawny=0;
while(!mobplaceallowed(spawnx,spawny))
spawnx=rand()%8+1,spawny=rand()%3+1;
spawned[i].x=spawnx,spawned[i].y=spawny;
for(int j=0;j<=9;j++)
spawned[i].poison[j]=spawned[i].armordebuff[j]=0;
strcpy(spawned[i].name,mobname[spawned[i].ID]),strcpy(spawned[i].shortname,shortmobname[spawned[i].ID]);
if(spawned[i].ID==6)
spawned[i].special=spawned[i].damage;
}
for(int i=1;i<=slot;i++)
if(equiped[i].def2==100)
equiped[i].def2=90;
}
while(spawnednum+unspawnednum+readyspawnnum>0&&flowerhealth>0)
{
for(int i=1;i<=readyspawnnum;i++)
{
int t=PA(readyspawn[i].x-1,readyspawn[i].y)+PA(readyspawn[i].x+7,readyspawn[i].y)+PA(readyspawn[i].x+1,readyspawn[i].y)+PA(readyspawn[i].x-7,readyspawn[i].y)
+PA(readyspawn[i].x,readyspawn[i].y-1)+PA(readyspawn[i].x,readyspawn[i].y+1),tx[10]={0,-1,7,1,-7,0,0},ty[10]={0,0,0,0,0,-1,1},tflag=0;
if(PA(readyspawn[i].x,readyspawn[i].y+1)&&readyspawn[i].y==3)
t--;
if(t)
t=rand()%t+1;
else
t=100;
if(PA(readyspawn[i].x,readyspawn[i].y))
{
t=100;
spawned[++spawnednum]=readyspawn[i];
for(int j=i;j<readyspawnnum;j++)
readyspawn[j]=readyspawn[j+1];
readyspawnnum--,i--;
}
for(int j=1;j<=6;j++)
{
tflag+=PA(readyspawn[i].x+tx[j],readyspawn[i].y+ty[j]);
if(tflag==t)
{
tflag=10;
spawnednum++;
spawned[spawnednum]=readyspawn[i],spawned[spawnednum].x+=tx[j],spawned[spawnednum].y+=ty[j];
for(int j=i;j<readyspawnnum;j++)
readyspawn[j]=readyspawn[j+1];
readyspawnnum--,i--;
}
}
}
int realspawnnum=0;
for(int i=1;i<=spawnednum;i++)
realspawnnum+=spawned[i].normal;
while(unspawnednum&&spawnednum<20&&realspawnnum<FloorMaxAmount[cfloor])
{
unspawnednum--;
spawned[spawnednum+1]=MOB(cfloor,map);
spawnednum++,realspawnnum++;
}
get=' ';
for(int i=1;i<=slot;i++)
{
if(modusing[101]&&equiped[i].ID==18)
{
if(equiped[i].actionbar==250)
strcpy(equiped[i].name,"RICE"),strcpy(equiped[i].shortname,"RICE");
else
strcpy(equiped[i].name,"Rice"),strcpy(equiped[i].shortname,"Rice");
}
equiped[i].actionbar+=equiped[i].speed;
if(equiped[i].currenthealth<=0&&equiped[i].actionbar>=equiped[i].reload)
equiped[i].spawn();
if(equiped[i].currenthealth>0&&equiped[i].actionbar>250)
equiped[i].actionbar=250;
if(equiped[i].actionbar>=fullactionbar)
{
for(int j=1;j<=summonnum;j++)
if(summon[j].special==-i)
equiped[i].actionbar=fullactionbar-1;
}
if(equiped[i].ID==33&&equiped[i].special>0)
{
equiped[i].special--;
equiped[i].actionbar=-equiped[i].special;
if(equiped[i].special==0)
{
equiped[i].currenthealth=0;
equiped[i].def1=10,equiped[i].def2=50;
cottonsuspend=0;
strcpy(equiped[i].name,"Cotton");
}
}
}
for(int i=1;i<=summonnum;i++)
summon[i].actionbar=0;
int sX=rand()%8+1,sY=rand()%3+4;
accurate=1;
for(int i=1;i<=4;i++)
{
if((mapenvironment[currentmap]==5&&rand()%100<50)||(mapenvironment[currentmap]==16&&rand()%100<80))
banneddirection[i]=1;
else
banneddirection[i]=0;
}
flowershield=flowershield*19/20;
printbiome();
if(rand()%100<SkillStatP[11][skilllevel[11]]&&!spongeusing)
{
for(int i=1;i<=5;i++)
flowerpoison[i]=flowerarmordebuff[i]=0;
for(int i=1;i<=4;i++)
banneddirection[i]=0;
sprintf(comment,"Clear!");
cout<<"\033[38;2;144;72;0m";
commentprint();
getch();
printbiome();
}
if(rand()%100<SkillStatP[13][skilllevel[13]])
{
sprintf(comment,"Accurate strike!");
cout<<"\033[38;2;144;72;0m";
commentprint();
accurate=100;
getch();
printbiome();
}
int flowerautoheal=SkillStatP[1][skilllevel[1]];
if(flowerhealth<=flowermaxhealth/2)
for(int i=1;i<=slot;i++)
if(equiped[i].ID==20)
flowerautoheal+=equiped[i].special;
for(int i=1;i<=slot;i++)
if(equiped[i].ID==16)
flowerautoheal+=equiped[i].special;
if(flowerautoheal&&!autohealdisable)
{
sprintf(comment,"Flower health+%d",flowerautoheal);
commentprint();
flowerhealth+=flowerautoheal;
if(flowerhealth>flowermaxhealth)
flowerhealth=flowermaxhealth;
getch();
printbiome();
}
if(autohealdisable)
{
autohealdisable--;
printbiome();
}
if(mapenvironment[currentmap]==15)
for(int i=1;i<=5;i++)
flowerhealth-=flowerpoison[i]*6/5,flowerpoison[i]=0;
if(flowerpoison[1])
{
if(spongeusing==2)
flowerpoison[1]*=2;
if(!spongeusing&&mapenvironment[currentmap]%11!=4)
flowerpoison[1]-=flowerpoison[1]*SkillStatP[8][skilllevel[8]]/100;
flowerhealth-=flowerpoison[1];
if(flowerpoison[1]>=0)
sprintf(comment,"Poison!Flower health-%d",flowerpoison[1]);
else
sprintf(comment,"Poison?Flower health+%d???",-flowerpoison[1]);
cout<<"\033[35m";
commentprint();
for(int i=1;i<=4;i++)
flowerpoison[i]=flowerpoison[i+1];
flowerpoison[5]=0;
getch();
printbiome();
}
if(flowerhealth<=0)
{
system("cls");
deadflag=1;
return;
}
for(int i=1;i<=4;i++)
flowerarmordebuff[i]=flowerarmordebuff[i+1];
flowerarmordebuff[5]=0;
selectxy(sX,sY);
placecommentprint(sX,sY);
while(get!='t'&&get!='T')
{
get=getch();
if(get==-32)
{
get=getch();
if(get==75)
{
sX--;
if(sX<1)
sX=8;
}
if(get==77)
{
sX++;
if(sX>8)
sX=1;
}
if(get==72)
{
sY--;
if(sY<1)
sY=6;
}
if(get==80)
{
sY++;
if(sY>6)
sY=1;
}
}
if(get=='\r')
{
get=' ';
for(int i=summonnum;i>=1;i--)
if(summon[i].x==sX&&summon[i].y==sY&&summon[i].special<0)
summon[i].cover(),summon[i].currenthealth=0,deleteifdead();
for(int i=1;i<=slot;i++)
if(equiped[i].x==sX&&equiped[i].y==sY&&equiped[i].currenthealth>0&&equiped[i].actionbar>=fullactionbar)
{
clearcomment();
sprintf(comment,"[M] Move");
commentprint();
if(sY>3&&sY<6&&equiped[i].atk1>0)
{
sprintf(comment,"[R] Attack");
commentprint();
}
if(((equiped[i].ID==4||equiped[i].ID==10||equiped[i].ID==13||equiped[i].ID==15||equiped[i].ID==25||equiped[i].ID==33)&&sY>4)||
((equiped[i].ID==8||equiped[i].ID==10||equiped[i].ID==11||equiped[i].ID==12||equiped[i].ID==15||equiped[i].ID==22||equiped[i].ID==29)&&sY<6))
{
sprintf(comment,"[X] Special skill");
commentprint();
}
get=getch();
if(get=='m'||get=='M')
{
clearcomment();
sprintf(comment,"Moving this petal...");
commentprint();
if(equiped[i].ID==21)
{
for(int j=1;j<=spawnednum;j++)
if(abs(spawned[j].x-equiped[i].x)+abs(spawned[j].y-equiped[i].y)==1)
cout<<"\033[36m\033["<<10+4*spawned[j].y<<";"<<9*spawned[j].x+1<<"H100%"<<RGB[0];
}
char get2=getch();
if(get2==-32)
{
get2=getch();
if(get2==72&&(equiped[i].y>4||equiped[i].ID==21)&&petalplaceallowed(equiped[i].x,equiped[i].y-1)&&!banneddirection[3]
&&(mobplaceallowed(equiped[i].x,equiped[i].y-1)||equiped[i].ID==21))
{
equiped[i].actionbar-=100;
if(mobplaceallowed(equiped[i].x,equiped[i].y-1))
equiped[i].cover(),equiped[i].y--,equiped[i].print(),sY--;
else
{
equiped[i].actionbar-=(fullactionbar-100);
for(int j=1;j<=spawnednum;j++)
if(spawned[j].x==equiped[i].x&&spawned[j].y==equiped[i].y-1)
{
if(spawned[j].ID==5)
spawned[j].move();
HIT(&equiped[i],&spawned[j],1);
}
}
oneaction();
}
if(get2==80&&petalplaceallowed(equiped[i].x,equiped[i].y+1)&&!banneddirection[4]
&&(mobplaceallowed(equiped[i].x,equiped[i].y+1)||equiped[i].ID==21))
{
equiped[i].actionbar-=100;
if(mobplaceallowed(equiped[i].x,equiped[i].y+1))
equiped[i].cover(),equiped[i].y++,equiped[i].print(),sY++;
else
{
equiped[i].actionbar-=(fullactionbar-100);
for(int j=1;j<=spawnednum;j++)
if(spawned[j].x==equiped[i].x&&spawned[j].y==equiped[i].y+1)
{
if(spawned[j].ID==5)
spawned[j].move();
HIT(&equiped[i],&spawned[j],1);
}
}
oneaction();
}
if(get2==75&&(petalplaceallowed(equiped[i].x-1,equiped[i].y)||petalplaceallowed(equiped[i].x+7,equiped[i].y))&&!banneddirection[2]
&&(mobplaceallowed(equiped[i].x-1,equiped[i].y)||mobplaceallowed(equiped[i].x+7,equiped[i].y)||equiped[i].ID==21))
{
equiped[i].actionbar-=100;
if(mobplaceallowed(equiped[i].x-1,equiped[i].y)||mobplaceallowed(equiped[i].x+7,equiped[i].y))
equiped[i].cover(),equiped[i].x=(equiped[i].x+6)%8+1,equiped[i].print(),sX=(sX+6)%8+1;
else
{
equiped[i].actionbar-=(fullactionbar-100);
for(int j=1;j<=spawnednum;j++)
if(spawned[j].x%8+1==equiped[i].x&&spawned[j].y==equiped[i].y)
{
if(spawned[j].ID==5)
spawned[j].move();
HIT(&equiped[i],&spawned[j],1);
}
}
oneaction();
}
if(get2==77&&(petalplaceallowed(equiped[i].x+1,equiped[i].y)||petalplaceallowed(equiped[i].x-7,equiped[i].y))&&!banneddirection[1]
&&(mobplaceallowed(equiped[i].x+1,equiped[i].y)||mobplaceallowed(equiped[i].x-7,equiped[i].y)||equiped[i].ID==21))
{
equiped[i].actionbar-=100;
if(mobplaceallowed(equiped[i].x+1,equiped[i].y)||mobplaceallowed(equiped[i].x-7,equiped[i].y))
equiped[i].cover(),equiped[i].x=equiped[i].x%8+1,equiped[i].print(),sX=sX%8+1;
else
{
equiped[i].actionbar-=(fullactionbar-100);
for(int j=1;j<=spawnednum;j++)
if(spawned[j].x==equiped[i].x%8+1&&spawned[j].y==equiped[i].y)
{
if(spawned[j].ID==5)
spawned[j].move();
HIT(&equiped[i],&spawned[j],1);
}
}
oneaction();
}
}
}
else
if((get=='r'||get=='R')&&(sY>3&&sY<6&&equiped[i].atk1>0))
{
clearcomment();
sprintf(comment,"Press [Enter] to attack...");
commentprint();
for(int j=1;j<=spawnednum;j++)
{
char testatk[10]="";
sprintf(testatk,"%d%%",ATKcalc(equiped[i].atk1*(equiped[i].y-4)+equiped[i].atk2*(5-equiped[i].y),spawned[j].dodge,equiped[i].x-spawned[j].x,equiped[i].size,equiped[i].atkbuff));
cout<<"\033[36m\033["<<10+4*spawned[j].y<<";"<<9*spawned[j].x+(6-strlen(testatk))/2<<"H"<<testatk<<RGB[0];
}
while(get!='\r')
{
get=getch();
if(get==-32)
{
get=getch();
if(get==75)
{
sX--;
if(sX<1)
sX=8;
}
if(get==77)
{
sX++;
if(sX>8)
sX=1;
}
if(get==72)
{
sY--;
if(sY<1)
sY=6;
}
if(get==80)
{
sY++;
if(sY>6)
sY=1;
}
}
selectxy(sX,sY);
}
for(int j=1;j<=spawnednum;j++)
if(spawned[j].x==sX&&spawned[j].y==sY)
{
if(spawned[j].ID==5)
spawned[j].move();
equiped[i].actionbar-=fullactionbar;
HIT(&equiped[i],&spawned[j],0);
oneaction();
break;
}
sX=equiped[i].x,sY=equiped[i].y;
}
else
if((get=='x'||get=='X')&&(((equiped[i].ID==4||equiped[i].ID==10||equiped[i].ID==13||equiped[i].ID==15||equiped[i].ID==25||equiped[i].ID==33)&&sY>4)||
((equiped[i].ID==8||equiped[i].ID==10||equiped[i].ID==11||equiped[i].ID==12||equiped[i].ID==15||equiped[i].ID==22||equiped[i].ID==29)&&sY<6)))
{
if(equiped[i].ID==4)
{
equiped[i].actionbar-=fullactionbar,equiped[i].currenthealth=0;
sprintf(comment,"Rose:Flower health +%d",equiped[i].special);
cout<<"\033[32m",commentprint();
flowerhealth+=equiped[i].special;
if(flowerhealth>flowermaxhealth)
flowerhealth=flowermaxhealth;
getch();
oneaction();
}
else
if(equiped[i].ID==8)
{
sprintf(comment,"Shoot missile...");
commentprint();
for(int j=1;j<=spawnednum;j++)
{
char testatk[10]="";
sprintf(testatk,"%d%%",ATKcalc(60+10*abs(4-abs(equiped[i].x-spawned[j].x))-10*abs(equiped[i].y-spawned[j].y),spawned[j].dodge,0,equiped[i].size,equiped[i].atkbuff));
cout<<"\033[36m\033["<<10+4*spawned[j].y<<";"<<9*spawned[j].x+(6-strlen(testatk))/2<<"H"<<testatk<<RGB[0];
}
while(get!='\r')
{
get=getch();
if(get==-32)
{
get=getch();
if(get==75)
{
sX--;
if(sX<1)
sX=8;
}
if(get==77)
{
sX++;
if(sX>8)
sX=1;
}
if(get==72)
{
sY--;
if(sY<1)
sY=6;
}
if(get==80)
{
sY++;
if(sY>6)
sY=1;
}
}
selectxy(sX,sY);
}
for(int j=1;j<=spawnednum;j++)
if(spawned[j].x==sX&&spawned[j].y==sY)
{
if(spawned[j].ID==5)
spawned[j].move();
equiped[i].actionbar-=fullactionbar;
HIT(&equiped[i],&spawned[j],1);
equiped[i].actionbar=0,equiped[i].currenthealth=0;
oneaction();
break;
}
sX=equiped[i].x,sY=equiped[i].y;
}
else
if(equiped[i].ID==10)
{
equiped[i].actionbar-=fullactionbar;
sprintf(comment,"Faster:All petal reloaded +%d action bar!",equiped[i].special);
cout<<"\033[36m",commentprint();
for(int j=1;j<=slot;j++)
if(equiped[j].currenthealth>0)
{
equiped[j].actionbar+=equiped[i].special;
if(equiped[j].actionbar>250)
equiped[j].actionbar=250;
}
getch();
oneaction();
}
else
if(equiped[i].ID==11)
{
int validflag=1;
for(int j=1;j<=summonnum;j++)
if(-summon[j].special==i)
validflag=0;
if(validflag)
{
clearcomment();
sprintf(comment,"Split into 2 pollens...");
commentprint();
while(get!='\r')
{
get=getch();
if(get==-32)
{
get=getch();
if(get==75)
{
sX--;
if(sX<1)
sX=8;
}
if(get==77)
{
sX++;
if(sX>8)
sX=1;
}
if(get==72)
{
sY--;
if(sY<1)
sY=6;
}
if(get==80)
{
sY++;
if(sY>6)
sY=1;
}
}
selectxy(sX,sY);
}
if(PA(sX,sY)&&abs(sX-equiped[i].x)+4-abs(abs(sY-equiped[i].y)-4)<=3&&sY<=3&&equiped[i].health>1)
{
equiped[i].actionbar-=fullactionbar;
summon[++summonnum]=equiped[i];
summon[summonnum].currenthealth/=2,equiped[i].currenthealth/=2,summon[summonnum].special=-i;
summon[summonnum].x=sX,summon[summonnum].y=sY;
strcpy(summon[summonnum].name,"Po!!en"),strcpy(summon[summonnum].shortname,"Po!!en");
oneaction();
}
sX=equiped[i].x,sY=equiped[i].y;
}
}
else
if(equiped[i].ID==12)
{
sprintf(comment,"Shoot dandelion...");
commentprint();
for(int j=1;j<=spawnednum;j++)
{
char testatk[10]="";
sprintf(testatk,"%d%%",ATKcalc(60+10*abs(4-abs(equiped[i].x-spawned[j].x))-10*abs(equiped[i].y-spawned[j].y),spawned[j].dodge,0,equiped[i].size,equiped[i].atkbuff));
cout<<"\033[36m\033["<<10+4*spawned[j].y<<";"<<9*spawned[j].x+(6-strlen(testatk))/2<<"H"<<testatk<<RGB[0];
}
while(get!='\r')
{
get=getch();
if(get==-32)
{
get=getch();
if(get==75)
{
sX--;
if(sX<1)
sX=8;
}
if(get==77)
{
sX++;
if(sX>8)
sX=1;
}
if(get==72)
{
sY--;
if(sY<1)
sY=6;
}
if(get==80)
{
sY++;
if(sY>6)
sY=1;
}
}
selectxy(sX,sY);
}
for(int j=1;j<=spawnednum;j++)
if(spawned[j].x==sX&&spawned[j].y==sY)
{
if(spawned[j].ID==5)
spawned[j].move();
equiped[i].actionbar-=fullactionbar;
HIT(&equiped[i],&spawned[j],1);
equiped[i].actionbar=0,equiped[i].currenthealth=0;
oneaction();
break;
}
sX=equiped[i].x,sY=equiped[i].y;
}
else
if(equiped[i].ID==13)
{
int validflag=1;
for(int j=1;j<=summonnum;j++)
if(-summon[j].special==i)
validflag=0;
if(validflag)
{
clearcomment();
sprintf(comment,"Summon a beetle...");
commentprint();
while(get!='\r')
{
get=getch();
if(get==-32)
{
get=getch();
if(get==75)
{
sX--;
if(sX<1)
sX=8;
}
if(get==77)
{
sX++;
if(sX>8)
sX=1;
}
if(get==72)
{
sY--;
if(sY<1)
sY=6;
}
if(get==80)
{
sY++;
if(sY>6)
sY=1;
}
}
selectxy(sX,sY);
}
if(PA(sX,sY)&&sY>3)
{
equiped[i].actionbar-=fullactionbar;
summon[++summonnum]=equiped[i],summon[summonnum].damage*=8,summon[summonnum].size=20;
if(modusing[101])
{
int beetlemulti=rand()%10;
if(beetlemulti<3)
summon[summonnum].health/=2;
if(beetlemulti>6&&beetlemulti<9)
summon[summonnum].health*=2;
if(beetlemulti==9)
summon[summonnum].health*=5;
beetlemulti=rand()%10;
if(beetlemulti<3)
summon[summonnum].damage/=2;
if(beetlemulti>6&&beetlemulti<9)
summon[summonnum].damage*=2;
if(beetlemulti==9)
summon[summonnum].damage*=5;
}
summon[summonnum].currenthealth=summon[summonnum].health;
summon[summonnum].def1=90,summon[summonnum].def2=70,summon[summonnum].special=-i;
summon[summonnum].x=sX,summon[summonnum].y=sY;
equiped[i].currenthealth=1;
strcpy(summon[summonnum].name,"Beet!e"),strcpy(summon[summonnum].shortname,"Beet!e");
oneaction();
}
sX=equiped[i].x,sY=equiped[i].y;
}
}
else
if(equiped[i].ID==15)
{
equiped[i].actionbar-=fullactionbar;
clearcomment();
sprintf(comment,"<-Yin+Yang=Yinyang!->");
commentprint();
unselectxy();
while(get!='\r')
{
get=getch();
if(get==-32)
{
get=getch();
for(int j=1;j<=slot;j++)
if(equiped[j].y==equiped[i].y)
equiped[j].cover();
for(int j=1;j<=slot;j++)
if(summon[j].y==equiped[i].y)
summon[j].cover();
for(int j=1;j<=spawnednum;j++)
if(spawned[j].y==equiped[i].y)
spawned[j].cover();
if(get==75)
for(int j=1;j<=slot;j++)
if(equiped[j].y==equiped[i].y)
equiped[j].x=(equiped[j].x+6)%8+1;
if(get==75)
for(int j=1;j<=slot;j++)
if(summon[j].y==equiped[i].y)
summon[j].x=(summon[j].x+6)%8+1;
if(get==75)
for(int j=1;j<=spawnednum;j++)
if(spawned[j].y==equiped[i].y)
spawned[j].x=(spawned[j].x+6)%8+1;
if(get==77)
for(int j=1;j<=slot;j++)
if(equiped[j].y==equiped[i].y)
equiped[j].x=equiped[j].x%8+1;
if(get==77)
for(int j=1;j<=slot;j++)
if(summon[j].y==equiped[i].y)
summon[j].x=summon[j].x%8+1;
if(get==77)
for(int j=1;j<=spawnednum;j++)
if(spawned[j].y==equiped[i].y)
spawned[j].x=spawned[j].x%8+1;
for(int j=1;j<=slot;j++)
if(equiped[j].y==equiped[i].y)
equiped[j].print();
for(int j=1;j<=slot;j++)
if(summon[j].y==equiped[i].y)
summon[j].print();
for(int j=1;j<=spawnednum;j++)
if(spawned[j].y==equiped[i].y)
spawned[j].print();
}
}
sX=equiped[i].x,sY=equiped[i].y;
selectxy(sX,sY);
oneaction();
}
else
if(equiped[i].ID==22)
{
equiped[i].actionbar-=fullactionbar,equiped[i].currenthealth=0;
clearcomment();
sprintf(comment,"Lightning strike...");
cout<<"\033[36m",commentprint();
for(int j=spawnednum;j>=1;j--)
if(spawned[j].ID!=13&&spawned[j].ID!=25&&spawned[j].ID!=45)
{
if(spawned[j].x==equiped[i].x||((spawned[j].x-equiped[i].x)*(spawned[j].x-equiped[i].x))%48==1)
{
if(spawned[j].ID==5)
spawned[j].move();
int damageformob=equiped[i].damage;
if(spawned[j].x==equiped[i].x)
{
if(spawned[j].actionbar>0)
spawned[j].actionbar/=2;
damageformob*=2;
}
spawned[j].currenthealth-=damageformob;
if(spawned[j].currenthealth<=0&&(spawned[j].ID==18||spawned[j].ID==27||spawned[j].ID==47)&&spawned[j].special>1)
{
sprintf(comment,"Mob:%s is destroyed!(%d life left)",spawned[j].name,spawned[j].special-1);
cout<<"\033[31m",commentprint();
spawned[j].special--,spawned[j].currenthealth=spawned[j].health,spawned[j].actionbar=0;
spawned[j].droploot();
}
else
if(spawned[j].currenthealth<=0)
{
if(spawned[j].shiny)
sprintf(comment,"Mob:%s is destroyed!(SHINY %s)",spawned[j].name,rarityname[spawned[j].rarity]);
else
sprintf(comment,"Mob:%s is destroyed!(%s)",spawned[j].name,rarityname[spawned[j].rarity]);
cout<<"\033[31m",commentprint();
spawned[j].droploot();
}
else
{
sprintf(comment,"Mob:%s's health-%d,%d left",spawned[j].name,damageformob,spawned[j].currenthealth);
commentprint();
}
deleteifdead();
}
}
getch();
oneaction();
}
else
if(equiped[i].ID==25)
{
equiped[i].actionbar-=fullactionbar,equiped[i].currenthealth=0;
sprintf(comment,"Shell:Flower shield +%d",equiped[i].special);
commentprint();
flowershield+=equiped[i].special;
getch();
oneaction();
}
else
if(equiped[i].ID==29)
{
for(int j=1;j<=spawnednum;j++)
spawned[j].special+=100000;
for(int shoottime=equiped[i].special;shoottime>=1;shoottime--)
{
sprintf(comment,"Shoot peas...");
commentprint();
for(int j=1;j<=spawnednum;j++)
{
char testatk[10]="";
sprintf(testatk,"%d%%",ATKcalc(40+20*abs(4-abs(equiped[i].x-spawned[j].x))-20*abs(equiped[i].y-spawned[j].y),spawned[j].dodge,0,equiped[i].size,equiped[i].atkbuff));
cout<<"\033[36m\033["<<10+4*spawned[j].y<<";"<<9*spawned[j].x+(6-strlen(testatk))/2<<"H"<<testatk<<RGB[0];
}
get=' ';
while(get!='\r')
{
get=getch();
if(get==-32)
{
get=getch();
if(get==75)
{
sX--;
if(sX<1)
sX=8;
}
if(get==77)
{
sX++;
if(sX>8)
sX=1;
}
if(get==72)
{
sY--;
if(sY<1)
sY=6;
}
if(get==80)
{
sY++;
if(sY>6)
sY=1;
}
}
selectxy(sX,sY);
}
for(int j=1;j<=spawnednum;j++)
if(spawned[j].x==sX&&spawned[j].y==sY&&spawned[j].special>=63616)
{
if(spawned[j].ID==5)
spawned[j].move();
spawned[j].special-=100000;
HIT(&equiped[i],&spawned[j],1);
break;
}
sX=equiped[i].x,sY=equiped[i].y;
printbiome();
selectxy(sX,sY);
}
equiped[i].actionbar=0,equiped[i].currenthealth=0;
for(int j=1;j<=spawnednum;j++)
if(spawned[j].special>=63616)
spawned[j].special-=100000;
oneaction();
}
else
if(equiped[i].ID==33)
{
equiped[i].actionbar=-5,equiped[i].special=5;
strcpy(equiped[i].name,"Suspended Cotton");
equiped[i].def1=equiped[i].def2=0;
cottonsuspend=1;
sprintf(comment,"Cotton:Suspended!");
commentprint();
getch();
oneaction();
}
}
get=' ';
printbiome();
}
}
selectxy(sX,sY);
placecommentprint(sX,sY);
}
for(int i=1;i<=spawnednum;i++)
{
spawned[i].actionbar+=spawned[i].speed;
if(spawned[i].actionbar>250)
spawned[i].actionbar=250;
}
printbiome();
int mobactionflag=0,poisonflag=0;
for(int i=spawnednum;i>=1;i--)
{
if(spawned[i].poison[1])
{
poisonflag=1;
spawned[i].currenthealth-=spawned[i].poison[1];
if(spawned[i].currenthealth>0)
{
sprintf(comment,"Poison:%s's health-%d,%d left",spawned[i].name,spawned[i].poison[1],spawned[i].currenthealth);
cout<<"\033[35m",commentprint();
}
}
for(int j=1;j<=4;j++)
spawned[i].poison[j]=spawned[i].poison[j+1],spawned[i].armordebuff[j]=spawned[i].armordebuff[j+1];
spawned[i].poison[5]=0,spawned[i].armordebuff[5]=0;
if(spawned[i].currenthealth<=0)
{
if((spawned[i].ID==18||spawned[i].ID==27||spawned[i].ID==47)&&spawned[i].special>1)
{
spawned[i].currenthealth=spawned[i].health,spawned[i].special--;
sprintf(comment,"Poison:%s is destroyed!(%d life left)",spawned[i].name,spawned[i].special);
}
else
if(spawned[i].shiny)
sprintf(comment,"Poison:%s is destroyed!(SHINY %s)",spawned[i].name,rarityname[spawned[i].rarity]);
else
sprintf(comment,"Poison:%s is destroyed!(%s)",spawned[i].name,rarityname[spawned[i].rarity]);
cout<<"\033[31m",commentprint();
spawned[i].droploot();
deleteifdead();
}
}
if(poisonflag)
{
getch();
printbiome();
}
for(int i=1;i<=spawnednum;i++)
if(spawned[i].actionbar>=200)
mobactionflag=1;
while(mobactionflag)
{
int actionmob=rand()%spawnednum+1;
if(spawned[actionmob].actionbar>=200)
{
if(spawned[actionmob].ID<=10)
{
if(spawned[actionmob].ID==9)
{
if(spawned[actionmob].speed>=90)
spawned[actionmob].special=2*spawned[actionmob].damage;
else
if(spawned[actionmob].speed>=60)
spawned[actionmob].special=spawned[actionmob].damage*(spawned[actionmob].speed-24)/30;
else
spawned[actionmob].special=spawned[actionmob].damage;
}
spawned[actionmob].speed=5*MobSpeed[spawned[actionmob].ID];
}
sX=spawned[actionmob].x,sY=spawned[actionmob].y,spawned[actionmob].actionbar-=200;
sprintf(comment,"%s's action...",spawned[actionmob].name);
commentprint();
selectxy(sX,sY);
if(mapenvironment[currentmap]%11==3)
{
int actionmobheal=MobBaseHealth[spawned[actionmob].rarity]*3/2;
if(mapenvironment[currentmap]<11)
actionmobheal/=3;
spawned[actionmob].currenthealth+=actionmobheal;
if(spawned[actionmob].currenthealth>spawned[actionmob].health)
spawned[actionmob].currenthealth=spawned[actionmob].health;
sprintf(comment,"%s:%s's health+%d",environmentname[mapenvironment[currentmap]],spawned[actionmob].name,actionmobheal);
cout<<"\033[38;2;127;127;255m",commentprint();
}
if(mapenvironment[currentmap]%11==8&&spawned[actionmob].currenthealth==spawned[actionmob].health)
{
sprintf(comment,"%s!",environmentname[mapenvironment[currentmap]]);
cout<<"\033[38;2;127;127;255m",commentprint();
}
if(spawned[actionmob].type==2&&rand()%10<3)
{
spawned[actionmob].type=3;
sprintf(comment,"%s become hostile!",spawned[actionmob].name);
cout<<"\033[33m",commentprint();
getch();
}
if(spawned[actionmob].ID==11)
{
spawned[actionmob].currenthealth=0,spawned[actionmob].normal=0;
readyspawn[++readyspawnnum]=MOB(62+rand()%2,spawned[actionmob].rarity,spawned[actionmob].shiny,spawned[actionmob].x,spawned[actionmob].y);
sprintf(comment,"%s is destroyed!",spawned[actionmob].name);
cout<<"\033[34m",commentprint();
deleteifdead();
getch();
}
else
if(spawned[actionmob].ID==13)
{
if(spawned[actionmob].special==1)
spawned[actionmob].currenthealth=0,spawned[actionmob].normal=0;
else
{
spawned[actionmob].special--,spawned[actionmob].currenthealth=spawned[actionmob].health;
readyspawn[++readyspawnnum]=MOB(64-spawned[actionmob].special*3/4,spawned[actionmob].rarity,spawned[actionmob].shiny,spawned[actionmob].x,spawned[actionmob].y);
}
sprintf(comment,"%s is destroyed!",spawned[actionmob].name);
cout<<"\033[34m",commentprint();
deleteifdead();
getch();
}
else
if(spawned[actionmob].ID==25||spawned[actionmob].ID==45)
{
if(spawned[actionmob].special==1)
spawned[actionmob].currenthealth=0,spawned[actionmob].normal=0;
else
{
spawned[actionmob].special--,spawned[actionmob].currenthealth=spawned[actionmob].health;
readyspawn[++readyspawnnum]=MOB(61+spawned[actionmob].ID/6+(6-spawned[actionmob].special)/2,spawned[actionmob].rarity,
spawned[actionmob].shiny,spawned[actionmob].x,spawned[actionmob].y);
}
sprintf(comment,"%s is destroyed!",spawned[actionmob].name);
cout<<"\033[34m",commentprint();
deleteifdead();
getch();
}
else
if(spawned[actionmob].ID==31)
{
spawned[actionmob].currenthealth=0,spawned[actionmob].normal=0;
for(int j=1;j<=slot;j++)
if(equiped[j].currenthealth>0&&(equiped[j].ID!=33||equiped[j].special==0))
{
equiped[j].actionbar-=150;
if(equiped[j].actionbar<-99)
equiped[j].currenthealth+=(99+equiped[j].actionbar)*equiped[j].health/100,equiped[j].actionbar=-99;
if(equiped[j].currenthealth<0)
{
sprintf(comment,"Petal:%s is destroyed!",equiped[j].name);
cout<<"\033[31m",commentprint();
}
}
sprintf(comment,"%s is destroyed!",spawned[actionmob].name);
cout<<"\033[34m",commentprint();
deleteifdead();
getch();
}
else
if(spawned[actionmob].ID==32)
{
spawned[actionmob].currenthealth+=spawned[actionmob].special;
if(spawned[actionmob].currenthealth>spawned[actionmob].health)
spawned[actionmob].currenthealth=spawned[actionmob].health;
sprintf(comment,"%s's health+%d",spawned[actionmob].name,spawned[actionmob].special);
cout<<"\033[32m",commentprint();
getch();
}
else
if(spawned[actionmob].ID==34)
{
sprintf(comment,"%s is attacking!",spawned[actionmob].name);
cout<<"\033[34m",commentprint();
if(rand()%100<SkillStatP[16][skilllevel[16]])
{
spawned[actionmob].currenthealth-=spawned[actionmob].damage;
if(spawned[actionmob].currenthealth<=0)
spawned[actionmob].currenthealth=1;
sprintf(comment,"Reflect:Reflect lightning,%s's health-%d,%d left",spawned[actionmob].name,spawned[actionmob].damage,spawned[actionmob].currenthealth);
cout<<"\033[38;2;144;72;0m",commentprint();
}
else
{
int damageforflower=spawned[actionmob].damage;
if(mapenvironment[currentmap]==6)
damageforflower+=damageforflower/5;
if(mapenvironment[currentmap]==17)
damageforflower+=damageforflower/2;
if(mapenvironment[currentmap]==8&&spawned[actionmob].currenthealth==spawned[actionmob].health)
damageforflower+=damageforflower*3/5;
if(mapenvironment[currentmap]==19&&spawned[actionmob].currenthealth==spawned[actionmob].health)
damageforflower+=damageforflower*3/2;
int reduceddamage=damageforflower;
if(cottonsuspend)
for(int i=1;i<=slot;i++)
if(equiped[i].ID==33&&equiped[i].special>0)
{
equiped[i].currenthealth-=damageforflower;
if(equiped[i].currenthealth>0)
reduceddamage=0;
else
{
reduceddamage=-equiped[i].currenthealth;
equiped[i].actionbar=0,equiped[i].special=0;
equiped[i].def1=10,equiped[i].def2=50;
strcpy(equiped[i].name,"Cotton");
}
}
damageforflower=reduceddamage;
if(spongeusing)
damageforflower=spawned[actionmob].damage;
if(!spongeusing)
flowerhealth-=damageforflower;
else
for(int i=1;i<=5;i++)
flowerpoison[i]+=damageforflower/5;
sprintf(comment,"Flower health -%d",damageforflower);
cout<<"\033[33m",commentprint();
if(flowerdamagereturnP)
{
spawned[actionmob].currenthealth-=flowerdamagereturnP*damageforflower/100;
if(spawned[actionmob].currenthealth<=0)
spawned[actionmob].currenthealth=1;
sprintf(comment,"Return:%s's health-%d,%d left",spawned[actionmob].name,flowerdamagereturnP*damageforflower/100,spawned[actionmob].currenthealth);
commentprint();
}
}
getch();
}
else
if(spawned[actionmob].ID==37||spawned[actionmob].ID==6)
{
sprintf(comment,"%s is attacking!",spawned[actionmob].name);
cout<<"\033[34m",commentprint();
spawned[actionmob].currenthealth+=spawned[actionmob].special;
if(spawned[actionmob].currenthealth>spawned[actionmob].health)
spawned[actionmob].currenthealth=spawned[actionmob].health;
sprintf(comment,"%s's health+%d",spawned[actionmob].name,spawned[actionmob].special);
cout<<"\033[32m",commentprint();
if(!spongeusing)
flowerhealth-=spawned[actionmob].damage;
else
for(int i=1;i<=5;i++)
flowerpoison[i]+=spawned[actionmob].damage/5;
sprintf(comment,"Flower health -%d",spawned[actionmob].damage);
cout<<"\033[33m",commentprint();
if(flowerdamagereturnP)
{
spawned[actionmob].currenthealth-=flowerdamagereturnP*spawned[actionmob].damage/100;
if(spawned[actionmob].currenthealth<=0)
spawned[actionmob].currenthealth=1;
sprintf(comment,"Return:%s's health-%d,%d left",spawned[actionmob].name,flowerdamagereturnP*spawned[actionmob].damage/100,spawned[actionmob].currenthealth);
commentprint();
}
if(spawned[actionmob].ID==6)
spawned[actionmob].special+=spawned[actionmob].damage/5,spawned[actionmob].move();
getch();
}
else
if(spawned[actionmob].ID==41)
{
if(spawned[actionmob].rarity>1)
{
readyspawn[++readyspawnnum]=MOB(42+pow(rand()%5+1,2)/4,spawned[actionmob].rarity-1,0,spawned[actionmob].x,spawned[actionmob].y);
sprintf(comment,"%s summoned a mob...",spawned[actionmob].name);
commentprint();
spawned[actionmob].currenthealth-=readyspawn[readyspawnnum].health/2;
}
else
spawned[actionmob].currenthealth=0;
if(spawned[actionmob].currenthealth<=0)
{
spawned[actionmob].normal=0;
sprintf(comment,"%s is destroyed!",spawned[actionmob].name);
cout<<"\033[34m",commentprint();
deleteifdead();
}
getch();
}
else
{
if(spawned[actionmob].ID==35&&spawned[actionmob].currenthealth<=spawned[actionmob].health/2)
{
spawned[actionmob].currenthealth+=spawned[actionmob].special;
if(spawned[actionmob].currenthealth>spawned[actionmob].health)
spawned[actionmob].currenthealth=spawned[actionmob].health;
sprintf(comment,"%s's health+%d",spawned[actionmob].name,spawned[actionmob].special);
cout<<"\033[32m",commentprint();
}
if(spawned[actionmob].ID==1)
{
int webcounter=0,webcreate=0,webx=0,weby=0;
for(int i=summonnum;i>=1;i--)
if(summon[i].special==6361)
webcounter++,webcreate=i;
if(webcounter==3)
summon[webcreate].cover(),summon[webcreate].currenthealth=0,deleteifdead();
summonnum++,webcreate=summonnum;
summon[webcreate]=PETAL(0,1,0);
while(!PA(webx,weby))
webx=rand()%8+1,weby=rand()%3+4;
summon[webcreate].x=webx,summon[webcreate].y=weby,summon[webcreate].special=6361;
summon[webcreate].spawn(),summon[webcreate].print();
}
if(spawned[actionmob].ID==3)
{
for(int i=1;i<=slot;i++)
if(rand()%100<100-equiped[i].def2&&equiped[i].currenthealth>0)
{
int damageforpetal=spawned[actionmob].damage;
equiped[i].currenthealth-=damageforpetal;
if(equiped[i].special>1&&((equiped[i].ID==2&&equiped[i].currenthealth<=(equiped[i].special-1)*equiped[i].health/3)
||(equiped[i].ID==19&&equiped[i].currenthealth<=(equiped[i].special-1)*equiped[i].health/4)
||(equiped[i].ID==29&&equiped[i].currenthealth<=(equiped[i].special-1)*equiped[i].health/4)))
{
sprintf(comment,"Petal:One %s is destroyed!",equiped[i].name);
cout<<"\033[31m",commentprint();
equiped[i].special--,equiped[i].currenthealth=equiped[i].special*equiped[i].health/(equiped[i].ID%2+3);
if(equiped[i].ID==19)
equiped[i].atk1-=10,equiped[i].atk2-=10,equiped[i].def1-=10,equiped[i].def2-=10;
}
else
if(equiped[i].currenthealth<=0)
{
sprintf(comment,"Petal:%s is destroyed!",equiped[i].name);
cout<<"\033[31m",commentprint();
}
else
{
sprintf(comment,"Petal:%s's health-%d,%d left",equiped[i].name,damageforpetal,equiped[i].currenthealth);
commentprint();
}
}
deleteifdead();
for(int i=1;i<=summonnum;i++)
if(rand()%100<100-summon[i].def2&&summon[i].special<0)
{
int damageforpetal=spawned[actionmob].damage;
summon[i].currenthealth-=damageforpetal;
if(summon[i].currenthealth<=0)
{
sprintf(comment,"Petal:%s is destroyed!",summon[i].name);
cout<<"\033[31m",commentprint();
}
else
{
sprintf(comment,"Petal:%s's health-%d,%d left",summon[i].name,damageforpetal,summon[i].currenthealth);
commentprint();
}
}
deleteifdead();
}
if(spawned[actionmob].ID==4)
{
for(int i=1;i<=slot;i++)
if(rand()%100<150-10*equiped[i].size&&equiped[i].currenthealth>0&&equiped[i].y<=4)
{
int damageforpetal=spawned[actionmob].damage;
if(equiped[i].y<=3)
damageforpetal=3136361;
equiped[i].currenthealth-=damageforpetal;
if(equiped[i].special>1&&((equiped[i].ID==2&&equiped[i].currenthealth<=(equiped[i].special-1)*equiped[i].health/3)
||(equiped[i].ID==19&&equiped[i].currenthealth<=(equiped[i].special-1)*equiped[i].health/4)
||(equiped[i].ID==29&&equiped[i].currenthealth<=(equiped[i].special-1)*equiped[i].health/4)))
{
sprintf(comment,"Petal:One %s is destroyed!",equiped[i].name);
cout<<"\033[31m",commentprint();
equiped[i].special--,equiped[i].currenthealth=equiped[i].special*equiped[i].health/(equiped[i].ID%2+3);
if(equiped[i].ID==19)
equiped[i].atk1-=10,equiped[i].atk2-=10,equiped[i].def1-=10,equiped[i].def2-=10;
}
else
if(equiped[i].currenthealth<=0)
{
sprintf(comment,"Petal:%s is destroyed!",equiped[i].name);
cout<<"\033[31m",commentprint();
}
else
{
sprintf(comment,"Petal:%s's health-%d,%d left",equiped[i].name,damageforpetal,equiped[i].currenthealth);
commentprint();
}
}
deleteifdead();
for(int i=1;i<=summonnum;i++)
if(rand()%100<150-10*summon[i].size&&summon[i].special<0&&summon[i].y<=4)
{
int damageforpetal=spawned[actionmob].damage;
summon[i].currenthealth-=damageforpetal;
if(summon[i].currenthealth<=0)
{
sprintf(comment,"Petal:%s is destroyed!",summon[i].name);
cout<<"\033[31m",commentprint();
}
else
{
sprintf(comment,"Petal:%s's health-%d,%d left",summon[i].name,damageforpetal,summon[i].currenthealth);
commentprint();
}
}
deleteifdead();
for(int i=1;i<=slot;i++)
if(rand()%100<150-10*equiped[i].size&&equiped[i].currenthealth>0&&equiped[i].y>=5&&PA(equiped[i].x,equiped[i].y-1))
equiped[i].cover(),equiped[i].y--,equiped[i].print();
for(int i=1;i<=summonnum;i++)
if(rand()%100<150-10*summon[i].size&&summon[i].special<0&&summon[i].y>=5&&PA(summon[i].x,summon[i].y-1))
summon[i].cover(),summon[i].y--,summon[i].print();
}
if(spawned[actionmob].ID==10)
{
for(int i=spawnednum-2;i>=1;i--)
if(spawned[i].ID==0)
spawned[i].currenthealth=0,deleteifdead();
for(int i=1;i<=3;i++)
spawned[++spawnednum]=MOB(0,1,0,0,0),spawned[spawnednum].print();
}
int savex=spawned[actionmob].x,savey=spawned[actionmob].y,saveactionmob=actionmob,deltax=0,deltay=0,testx=0,testy=0,movetime=1;
if(spawned[actionmob].ID==15||spawned[actionmob].ID==21||spawned[actionmob].ID==33)
movetime=0;
if(spawned[actionmob].ID==2||spawned[actionmob].ID==3||spawned[actionmob].ID==8)
movetime=2;
if(spawned[actionmob].ID==1||spawned[actionmob].ID==7||spawned[actionmob].ID==9)
movetime=3;
if(spawned[actionmob].ID==4||spawned[actionmob].ID==5)
movetime=5;
int wtfgem=0;
if(spawned[actionmob].type>2)
{
sprintf(comment,"%s is attacking!",spawned[actionmob].name);
cout<<"\033[34m",commentprint();
if(spawned[actionmob].ID==2||spawned[actionmob].ID==8||spawned[actionmob].ID==15||(spawned[actionmob].ID==17&&rand()%10<5)||spawned[actionmob].ID==21||
spawned[actionmob].ID==23||(spawned[actionmob].ID==42&&rand()%10<8)||spawned[actionmob].ID==44)
{
sprintf(comment,"%s shoots a missile!",spawned[actionmob].name);
cout<<"\033[34m",commentprint();
if(rand()%100<SkillStatP[16][skilllevel[16]])
{
wtfgem=1;
int reflectdamage=spawned[actionmob].damage;
if(spawned[actionmob].ID==23||spawned[actionmob].ID==44)
reflectdamage/=2;
if(spawned[actionmob].ID==8)
reflectdamage=reflectdamage*2/3;
spawned[actionmob].currenthealth-=reflectdamage;
if(spawned[actionmob].currenthealth<=0)
spawned[actionmob].currenthealth=1;
sprintf(comment,"Reflect:Reflect missile,%s's health-%d,%d left",spawned[actionmob].name,reflectdamage,spawned[actionmob].currenthealth);
cout<<"\033[38;2;144;72;0m",commentprint();
getch();
}
spawned[spawnednum+1]=spawned[actionmob],actionmob=spawnednum+1;
spawned[actionmob].currenthealth=1,
strcat(spawned[actionmob].name,"'s missile");
if(spawned[actionmob].ID==23||spawned[actionmob].ID==44)
spawned[actionmob].damage/=2;
if(spawned[actionmob].ID==8)
spawned[actionmob].damage=spawned[actionmob].damage*2/3;
spawned[actionmob].dodge=30;
if(spawned[actionmob].ID==44)
spawned[actionmob].dodge=10;
if(spawned[actionmob].ID==15)
spawned[actionmob].dodge=20;
if(spawned[actionmob].ID==2)
spawned[actionmob].dodge=40;
if(spawned[actionmob].ID==21||spawned[actionmob].ID==23)
spawned[actionmob].dodge=50;
spawned[actionmob].special=-6361;
}
if(!wtfgem)
{
sprintf(comment,"Select petal,[Enter] Defend...");
commentprint();
for(int i=1;i<=slot;i++)
{
char testdef[10]="";
int realDEF=0;
if(equiped[i].y>=5)
realDEF=equiped[i].def1*(6-equiped[i].y)+equiped[i].def2*(equiped[i].y-5);
if(equiped[i].ID==21&&equiped[i].y<5&&equiped[i].y>spawned[actionmob].y)
realDEF=30;
sprintf(testdef,"%d%%",DEFcalc(realDEF,spawned[actionmob].dodge,equiped[i].x-spawned[actionmob].x,equiped[i].size,equiped[i].defbuff));
if(equiped[i].currenthealth<=0)
sprintf(testdef,"?%%");
cout<<"\033[36m\033["<<10+4*equiped[i].y<<";"<<9*equiped[i].x+(6-strlen(testdef))/2<<"H"<<testdef<<RGB[0];
}
for(int i=1;i<=summonnum;i++)
{
char testdef[10]="";
int realDEF=0;
if(summon[i].y>=5)
realDEF=summon[i].def1*(6-summon[i].y)+summon[i].def2*(summon[i].y-5);
if(summon[i].y<5&&summon[i].y>spawned[actionmob].y)
realDEF=summon[i].def1;
sprintf(testdef,"%d%%",DEFcalc(realDEF,spawned[actionmob].dodge,summon[i].x-spawned[actionmob].x,summon[i].size,summon[i].defbuff));
cout<<"\033[36m\033["<<10+4*summon[i].y<<";"<<9*summon[i].x+(6-strlen(testdef))/2<<"H"<<testdef<<RGB[0];
}
get=' ';
while(get!='\r')
{
get=getch();
if(get==-32)
{
get=getch();
if(get==75)
{
sX--;
if(sX<1)
sX=8;
}
if(get==77)
{
sX++;
if(sX>8)
sX=1;
}
if(get==72)
{
sY--;
if(sY<1)
sY=6;
}
if(get==80)
{
sY++;
if(sY>6)
sY=1;
}
}
selectxy(sX,sY);
}
int repeattime=1;
if((spawned[actionmob].ID==44||spawned[actionmob].ID<10)&&spawned[actionmob].special==-6361)
repeattime=3;
while(repeattime)
{
int defendcheck=0;
if(get=='\r')
for(int i=1;i<=slot;i++)
if(equiped[i].x==sX&&equiped[i].y==sY&&equiped[i].health>0)
{
defendcheck=1;
HIT(&spawned[actionmob],&equiped[i],-spawned[actionmob].special/5156);
break;
}
for(int i=1;i<=summonnum;i++)
if(summon[i].x==sX&&summon[i].y==sY&&summon[i].special<0)
{
defendcheck=1;
HIT(&spawned[actionmob],&summon[i],-spawned[actionmob].special/5156);
break;
}
if(!defendcheck)
HIT(&spawned[actionmob],&equiped[1],-1);
repeattime--;
}
}
}
else
getch();
if((actionmob<=spawnednum||spawned[actionmob].special==-6361)&&spawned[actionmob].x==savex&&spawned[actionmob].y==savey)
while(movetime)
spawned[saveactionmob].move(),movetime--;
}
printbiome();
}
mobactionflag=0;
for(int j=1;j<=spawnednum;j++)
if(spawned[j].actionbar>=200)
mobactionflag=1;
}
energy--;
if(mapenvironment[currentmap]==13)
energy-=2;
}
if(flowerhealth>0)
savegallery();
if(modusing[101])
{
flowerexp+=LevelExp[flowerlevel]/50;
if(stinger101)
SkillStatP[13][skilllevel[13]]=15*skilllevel[13];
if(iris101)
talentpoint++;
if(faster101)
flowerexp+=faster101*(100+leaf101)/100;
while(flowerexp>=LevelExp[flowerlevel])
{
flowerexp-=LevelExp[flowerlevel],flowerlevel++;
if(flowerlevel%5)
talentpoint+=6;
else
talentpoint+=3,slot++;
}
if(pearl101)
energy+=10;
if(energy>10000)
energy=10000;
}
return;
}
void moregame()
{
system("cls");
char get=' ';
letterslowprint(13,22,(char*)("MORE GAME"),150);
Sleep(300);
slowprint(28,40,(char*)("[P] PFLF"),30);
slowprint(32,40,(char*)("[B] BACK"),30);
get=getch();
while(get!='p'&&get!='P'&&get!='b'&&get!='B')
{
if(get==-32)
get=getch();
get=getch();
}
if(get=='p'||get=='P')
loading(),PFLF();
return;
}
void PFLF()
{
system("cls");
char get=' ';
int rlevel=1,rexp=0,rmaxscore=0,rturn=0,rclear=0,rcombo=0,rdice[1000]={0},rclaim[1000]={0},rremain[1000]={0};
int cdice[1000]={0},cclaim[1000]={0},cremain[1000]={0};
fin.open("PFLF.txt");
if(fin)
{
rlevel=readnumf(),rexp=readnumf(),readnumf(),rmaxscore=readnumf(),rturn=readnumf(),rclear=readnumf(),rcombo=readnumf();
for(int i=1;i<=rturn;i++)
readnumf(),rdice[i]=readnumf(),rclaim[i]=readnumf(),rremain[i]=readnumf();
fin.close();
}
int used=0,turn=0,hint=0,mainnum1=rand()%6+1,mainnum2=rand()%6+1,dice[10]={0},score=0,clear=0,combo=0,combocheck=0,maxcombo=0,flag=0,x=0,used2=0,dice2[10]={0};
while(used<=5)
{
flag=0;
turn++;
if(turn>combocheck+10)
combo=0;
for(int i=1;i<=3;i++)
{
dice[++used]=rand()%6+1;
if((rand()%100)*(rand()%100)<turn)
dice[used]=mainnum2;
if((rand()%100)*(rand()%100)<turn)
dice[used]=mainnum1;
cdice[turn]=cdice[turn]*10+dice[used];
}
if((rand()%turn)*(rand()%turn)<turn)
mainnum1=rand()%6+1,mainnum2=rand()%6+1;
cout<<"\033[15;40HTurn:"<<turn<<"\033[16;40H("<<mainnum1<<","<<mainnum2<<")\033[18;40HScore:"<<score<<"\033[19;40HClear:"<<clear;
if(combo)
cout<<" ("<<combo<<")";
else
cout<<" ";
cout<<"\033[21;40HHint[H]:"<<hint<<"\033[24;40HDice: \033[24;45H";
for(int i=1;i<=used;i++)
{
int dicecolor=32;
if(dice[i]==mainnum1)
dicecolor--;
if(dice[i]==mainnum2)
dicecolor+=2;
if(mainnum1==mainnum2)
dicecolor=dicecolor*3-64;
cout<<"\033["<<dicecolor<<"m"<<dice[i]<<RGB[0];
}
cout<<"\033[26;40HSelect:",slowprint(26,47,(char*)(" "),20),cout<<"\033[26;47H";
while(!flag)
{
flag=1;
x=0;
get=getch();
int zeroflag=0;
while(get!='\r'||x+zeroflag==0)
{
if(get=='0')
zeroflag=1;
if(get=='h'||get=='H')
{
for(int i=0;i<=6666666;i++)
if((int)(sqrt(i))*(int)(sqrt(i))==i||(int)(cbrt(i))*(int)(cbrt(i))*(int)(cbrt(i))==i)
{
int legal=1,cut=i;
used2=used;
for(int j=1;j<=used;j++)
dice2[j]=dice[j];
while(legal&&cut>0)
{
int store=cut;
for(int j=1;j<=used2;j++)
if(cut%10==dice2[j])
{
for(int k=j;k<=used2;k++)
dice2[k]=dice2[k+1];
used2--;
cut/=10;
}
if(cut==store)
legal=0;
}
if(legal)
x=i;
}
cout<<"\033[26;47H"<<x<<" ";
hint++;
}
if(get=='\b')
{
x/=10;
if(zeroflag+x==0)
cout<<"\033[26;47H ";
else
cout<<"\033[26;47H"<<x<<" ";
}
if(get>='0'&&get<='9')
{
x=x*10+get-'0';
if(zeroflag+x==0)
cout<<"\033[26;47H ";
else
cout<<"\033[26;47H"<<x<<" ";
}
get=getch();
}
if(x<0||x>66666667)
flag=0;
cclaim[turn]=x;
if(flag&&(int)(sqrt(x))*(int)(sqrt(x))!=x&&(int)(cbrt(x))*(int)(cbrt(x))*(int)(cbrt(x))!=x)
flag=0;
used2=used;
for(int i=1;i<=used;i++)
dice2[i]=dice[i];
while(flag&&x>0)
{
int y=x;
for(int i=1;i<=used2;i++)
if(x%10==dice2[i])
{
for(int j=i;j<=used2;j++)
dice2[j]=dice2[j+1];
used2--;
x/=10;
}
if(y==x)
flag=0;
}
if(!flag)
slowprint(26,47,(char*)(" "),0),slowprint(27,40,(char*)("Error! "),30),slowprint(27,40,(char*)(" "),30),cout<<"\033[26;47H";
}
if(used+used2>9)
combo=0;
slowprint(27,40,(char*)("Score+"),30),cout<<(used-used2+1)*(used-used2+1)*(used-used2+1),slowprint(27,35,(char*)(" "),20);
score+=(used-used2+1)*(used-used2+1)*(used-used2+1),used=used2;
for(int i=1;i<=used;i++)
dice[i]=dice2[i],cremain[turn]=cremain[turn]*10+dice[i];
if(used==0)
{
slowprint(27,40,(char*)("Clear! +1000"),30);
slowprint(27,35,(char*)(" "),30);
score+=1000,clear++;
combo++,combocheck=turn;
if(maxcombo<combo)
maxcombo=combo;
if(combo>1)
{
char combotest[30];
sprintf(combotest,"%d Combo! +%d",combo,100*combo);
score+=100*combo;
slowprint(27,40,combotest,30);
slowprint(27,35,(char*)(" "),30);
}
}
}
Sleep(500);
loading();
system("cls");
if(score>=rlevel*rlevel)
rexp+=score-rlevel*rlevel;
if(rexp>=rlevel*rlevel*rlevel)
rlevel++,rexp=0;
if(score>=rmaxscore)
{
rmaxscore=score,rturn=turn,rclear=clear,rcombo=maxcombo;
for(int i=1;i<=rturn;i++)
rdice[i]=cdice[i],rclaim[i]=cclaim[i],rremain[i]=cremain[i];
}
fout.open("PFLF.txt");
if(fout)
{
fout<<"Level:"<<rlevel<<endl<<"Exp:"<<rexp<<"/"<<rlevel*rlevel*rlevel<<endl<<"Max Score:"<<endl
<<rmaxscore<<" Point, "<<rturn<<" Turn, "<<rclear<<" Clear, "<<rcombo<<" Combo"<<endl<<endl;
for(int i=1;i<=rturn;i++)
{
fout<<"Turn "<<i<<"\tDice:\t"<<rdice[i]<<"\tClaim:"<<rclaim[i];
if(rclaim[i]<1000)
fout<<"\t";
if(rclaim[i]<10000000)
fout<<"\t";
fout<<"Remain:"<<rremain[i]<<endl;
}
fout<<endl<<endl<<"Last Game:"<<endl;
fout<<"Score:"<<endl<<score<<" Point, "<<turn<<" Turn, "<<clear<<" Clear, "<<maxcombo<<" Combo"<<endl<<endl;
for(int i=1;i<=turn;i++)
{
fout<<"Turn "<<i<<"\tDice:\t"<<cdice[i]<<"\tClaim:"<<cclaim[i];
if(cclaim[i]<1000)
fout<<"\t";
if(cclaim[i]<10000000)
fout<<"\t";
fout<<"Remain:"<<cremain[i]<<endl;
}
fout.close();
}
slowprint(22,36,(char*)("Final Turn: "),20),cout<<turn;
slowprint(25,31,(char*)(" Final Score: "),20),cout<<score;
slowprint(28,31,(char*)(" Clear Turn: "),20),cout<<clear;
slowprint(31,31,(char*)(" Max Combo: "),20),cout<<maxcombo;
slowprint(34,31,(char*)(" Hint Used: "),20),cout<<hint;
slowprint(40,22,(char*)(" Press any key to continue"),10);
get=getch();
loading();
return;
}
int main()
{
system("cls");
Sleep(2000);
HANDLE hConsole=GetStdHandle(STD_OUTPUT_HANDLE);
CONSOLE_CURSOR_INFO cursorInfo;
GetConsoleCursorInfo(hConsole,&cursorInfo);
cursorInfo.bVisible=FALSE;
SetConsoleCursorInfo(hConsole,&cursorInfo);
srand(time(NULL));
settings();
loadtext();
if(saveflag)
{
system("cls");
cout<<"Archive loaded successfully!";
Sleep(1000);
}
loadgallery();
if(!galleryflag)
{
for(int i=1;i<=6;i++)
for(int j=11;j<=70;j++)
mobgalleryrecord[i][j]=0;
for(int i=1;i<=6;i++)
for(int j=11;j<=70;j++)
shinymobgalleryrecord[i][j]=0;
for(int i=1;i<=7;i++)
for(int j=1;j<=3;j++)
for(int k=1;k<=10;k++)
bossgalleryrecord[i][j][k]=0;
for(int i=1;i<=6;i++)
for(int j=0;j<=2;j++)
for(int k=2;k<=totalpetalnumber;k++)
lootgalleryrecord[i][j][k]=0;
}
else
{
system("cls");
cout<<"Gallery loaded successfully!";
Sleep(1000);
}
menu();
return 0;
// settings();
// loadtext();
// if(saveflag)
// {
// talentpoint=6*flowerlevel-flowerlevel/5*3-3,resettime=2;
// for(int i=1;i<=16;i++)
// skilllevel[i]=0;
// savetext();
// cout<<"Archive updated successful!"<<endl;
// }
// loadgallery();
// if(galleryflag)
// {
// savegallery();
// cout<<"Gallery updated successful!"<<endl;
// }
// Sleep(2000);
// return 0;
}剪贴板
剪贴板 8y0a93av
剪贴板信息
剪贴板信息
- 收录
- 更新