权益卡模拟器: 仅供OIer免费使用.
#include<iostream>
#include<windows.h>
#include<string>
#include<stdio.h>
#include<ctime>
using namespace std;
int sumr,sumsr,sumssr,sumtr,sumconan,c[101],cnt=34;
string s[101]={"","R1","R2","R3","R4","R5","SR1","SR2","SR3","SR4","SR5","SSR1","SSR2","SSR3","SSR4","SSR5","金","嘉德罗斯","格瑞","安迷修","雷狮","TR1","TR2","TR3","友谊福","健康福","求知福","诚信福","喜悦福","江户川柯南","工藤新一","毛利兰","灰原哀","啊笠博士","怪盗基德"};
int y[101]={0,200,800,1400,2200,3000,3900,4900,6000,7200,8600,10100,11700,13500,15500,17700,8888,7888,6888,888,1888,1666,1666,1666,1888,1888,5888,2888,2888,6888,6888,5888,5888,5888,6888};//异能值
int a[10001];
bool flagconan;
void out()
{
cout<<"输入1继续"<<endl;
for(int i=1;i<=cnt;i++)cout<<s[i]<<" 编号:"<<i<<" 异能值:"<<y[i]<<" 拥有数量:"<<c[i]<<endl;
int in;
cin>>in;
}
void gxrz()
{
while(1)
{
//cout<<"\033c"<<endl;
cout<<"0.返回 1.本体 2.ConanDLC"<<endl;
int op;
cin>>op;
if(op==0)return;
if(op==1)
{
cout<<"12.增加欣赏功能"<<endl;
cout<<"11.增加存档功能(10个存档位置)"<<endl;
cout<<"10.合成台增加-TR"<<endl;
cout<<"9.合成台增加-SSR"<<endl;
cout<<"8.修改合成台出卡组合-R&SR"<<endl;
cout<<"7.合成台增加-SR"<<endl;
cout<<"6.增加合成台-R"<<endl;
cout<<"5.增加异能值"<<endl;
cout<<"4.字符画未知卡片"<<endl;
cout<<"3.增加更新日志"<<endl;
cout<<"2.增加抽卡台"<<endl;
cout<<"1:得到大部分卡片图片"<<endl;
}
if(op==2)
{
cout<<"1.加入抽卡"<<endl;
cout<<"2.加入合成"<<endl;
}
}
}
void ckt()
{
cout<<"\033c"<<endl;
cout<<"______ ______ ______"<<endl;
cout<<"| | | | | |"<<endl;
cout<<"| 1 | | 2 | | 3 |"<<endl;
cout<<"| | | | | |"<<endl;
cout<<"------- ------- -------"<<endl;
cout<<"______ ______ ______"<<endl;
cout<<"| | | | | |"<<endl;
cout<<"| 4 | | 5 | | 6 |"<<endl;
cout<<"| | | | | |"<<endl;
cout<<"------- ------- -------"<<endl;
int op;
cin>>op;
int cur=100;
int cardclass;
if(flagconan)a[++cur]=1;
cardclass=rand()%cur+1;
if(a[cardclass]==0)
{
int card=rand()%100+1;
if(card<=10)c[1]++,cout<<"卡片:"<<s[1]<<" 异能值:"<<y[1]<<endl;
else if(card<=20)c[2]++,cout<<"卡片:"<<s[2]<<" 异能值:"<<y[2]<<endl;
else if(card<=30)c[3]++,cout<<"卡片:"<<s[3]<<" 异能值:"<<y[3]<<endl;
else if(card<=40)c[4]++,cout<<"卡片:"<<s[4]<<" 异能值:"<<y[4]<<endl;
else if(card<=50)c[5]++,cout<<"卡片:"<<s[5]<<" 异能值:"<<y[5]<<endl;
else if(card<=60)c[6]++,cout<<"卡片:"<<s[6]<<" 异能值:"<<y[6]<<endl;
else if(card<=65)c[7]++,cout<<"卡片:"<<s[7]<<" 异能值:"<<y[7]<<endl;
else if(card<=70)c[8]++,cout<<"卡片:"<<s[8]<<" 异能值:"<<y[8]<<endl;
else if(card<=75)c[9]++,cout<<"卡片:"<<s[9]<<" 异能值:"<<y[9]<<endl;
else if(card<=80)c[10]++,cout<<"卡片:"<<s[10]<<" 异能值:"<<y[10]<<endl;
else if(card<=84)c[11]++,cout<<"卡片:"<<s[11]<<" 异能值:"<<y[11]<<endl;
else if(card<=87)c[12]++,cout<<"卡片:"<<s[12]<<" 异能值:"<<y[12]<<endl;
else if(card<=90)c[13]++,cout<<"卡片:"<<s[13]<<" 异能值:"<<y[13]<<endl;
else if(card<=93)c[14]++,cout<<"卡片:"<<s[14]<<" 异能值:"<<y[14]<<endl;
else if(card<=95)c[15]++,cout<<"卡片:"<<s[15]<<" 异能值:"<<y[15]<<endl;
else if(card<=96)c[16]++,cout<<"卡片:"<<s[16]<<" 异能值:"<<y[16]<<endl;
else if(card<=97)c[17]++,cout<<"卡片:"<<s[17]<<" 异能值:"<<y[17]<<endl;
else if(card<=98)c[18]++,cout<<"卡片:"<<s[18]<<" 异能值:"<<y[18]<<endl;
else if(card<=99)c[19]++,cout<<"卡片:"<<s[19]<<" 异能值:"<<y[19]<<endl;
else if(card<=100)c[20]++,cout<<"卡片:"<<s[20]<<" 异能值:"<<y[20]<<endl;
}
if(a[cardclass]==1)
{
int card=rand()%6+1;
if(card<=1)c[29]++,cout<<"卡片:"<<s[29]<<" 异能值:"<<y[29]<<endl;
else if(card<=2)c[30]++,cout<<"卡片:"<<s[30]<<" 异能值:"<<y[30]<<endl;
else if(card<=3)c[31]++,cout<<"卡片:"<<s[31]<<" 异能值:"<<y[31]<<endl;
else if(card<=4)c[32]++,cout<<"卡片:"<<s[32]<<" 异能值:"<<y[32]<<endl;
else if(card<=5)c[33]++,cout<<"卡片:"<<s[33]<<" 异能值:"<<y[33]<<endl;
else if(card<=6)c[34]++,cout<<"卡片:"<<s[34]<<" 异能值:"<<y[34]<<endl;
}
}
void hct()
{
cout<<"1.R 2.SR 3.SSR 4.TR";
if(flagconan)cout<<" 5.柯南";
cout<<endl;
int op;
cin>>op;
if(op==1)
{
while(1)
{
cout<<"目前异能值总和:"<<sumr<<endl;
cout<<"1.填入 2.合成 3.退出"<<endl;
int op2;
cin>>op2;
if(op2==3)return;
if(op2==1)
{
out();
cout<<"请输入编号"<<endl;
int x;
cin>>x;
if(c[x]>0)c[x]--,sumr+=y[x];
}
else
{
if(sumr>=5000)
{
sumr-=5000;
int cardclass=rand()%5+1;
if(cardclass==1)
{
cout<<"R5 R5 R5 R5 R5"<<endl;
c[5]+=5;
}
if(cardclass==2)
{
cout<<"R1 R2 R3 R4 R5"<<endl;
c[1]++;
c[2]++;
c[3]++;
c[4]++;
c[5]++;
}
if(cardclass==3)
{
cout<<"R1 R1 R1 R3 R5"<<endl;
c[1]+=3;
c[3]++;
c[5]++;
}
if(cardclass==4)
{
cout<<"R2 R2 R2 R2 R3"<<endl;
c[2]+=4;
c[3]++;
}
if(cardclass==5)
{
cout<<"R1 R1 R1 R1 R1"<<endl;
c[1]+=5;
}
}
}
}
}
if(op==2)
{
while(1)
{
cout<<"目前异能值总和:"<<sumsr<<endl;
cout<<"1.填入 2.合成 3.退出"<<endl;
int op2;
cin>>op2;
if(op2==3)return;
if(op2==1)
{
out();
cout<<"请输入编号"<<endl;
int x;
cin>>x;
if(c[x]>0)c[x]--,sumsr+=y[x];
}
else
{
if(sumsr>=20000)
{
sumsr-=20000;
int cardclass=rand()%5+1;
if(cardclass==1)
{
cout<<"SR5 SR5 SR5 SR5 SR5"<<endl;
c[10]+=5;
}
if(cardclass==2)
{
cout<<"SR1 SR2 SR3 SR4 SR5"<<endl;
c[6]++;
c[7]++;
c[8]++;
c[9]++;
c[10]++;
}
if(cardclass==3)
{
cout<<"R1 R5 SR1 格瑞 SR3"<<endl;
c[1]++;
c[5]++;
c[6]++;
c[8]++;
c[18]++;
}
if(cardclass==4)
{
cout<<"安迷修 R5 R5 R5 SR1"<<endl;
c[19]++;
c[5]+=3;
c[6]++;
}
if(cardclass==5)
{
cout<<"雷狮 R1 R1 SR2 嘉德罗斯"<<endl;
c[7]++;
c[1]+=2;
c[20]++;
c[17]++;
}
}
}
}
}
if(op==3)
{
while(1)
{
cout<<"目前异能值总和:"<<sumssr<<endl;
cout<<"1.填入 2.合成 3.退出"<<endl;
int op2;
cin>>op2;
if(op2==3)return;
if(op2==1)
{
out();
cout<<"请输入编号"<<endl;
int x;
cin>>x;
if(c[x]>0)c[x]--,sumssr+=y[x];
}
else
{
if(sumssr>=40000)
{
sumssr-=40000;
int cardclass=rand()%100+1;
if(cardclass<=5)
{
cout<<"SSR5 SSR5 SSR5 SSR5 SSR5"<<endl;
c[15]+=5;
}
else if(cardclass<=30)
{
cout<<"SSR1 SSR2 SSR3 SSR4 SSR5"<<endl;
c[11]++;
c[12]++;
c[13]++;
c[14]++;
c[15]++;
}
else if(cardclass==31)
{
cout<<"金 SR2 SR3 SR4 SSR3"<<endl;
c[16]++;
c[7]++;
c[8]++;
c[9]++;
c[13]++;
}
else if(cardclass<=71)
{
cout<<"SR2 SR2 SR2 SR2 SSR3"<<endl;
c[7]+=4;
c[13]++;
}
else
{
cout<<"SR1 SR1 SR1 SR1 SSR1"<<endl;
c[6]+=4;
c[11]++;
}
}
}
}
}
if(op==4)
{
while(1)
{
cout<<"目前异能值总和:"<<sumtr<<endl;
cout<<"1.填入 2.合成 3.退出"<<endl;
int op2;
cin>>op2;
if(op2==3)return;
if(op2==1)
{
out();
cout<<"请输入编号"<<endl;
int x;
cin>>x;
if(c[x]>0)c[x]--,sumtr+=y[x];
}
else
{
if(sumtr>=4000)
{
sumtr-=4000;
int cardclass=rand()%100+1;
if(cardclass<=10)
{
cout<<"TR1 TR2 TR3 R1 R1"<<endl;
c[1]+=2;
c[21]++;
c[22]++;
c[23]++;
}
else if(cardclass<=40)
{
cout<<"TR2 TR3 R1 R1"<<endl;
c[1]+=2;
c[22]++;
c[23]++;
}
else if(cardclass<=60)
{
cout<<"TR1 TR3"<<endl;
c[21]++;
c[23]++;
}
else if(cardclass<=80)
{
cout<<"TR1 TR1"<<endl;
c[21]+=2;
}
else
{
cout<<"TR1 R1 R1"<<endl;
c[1]+=2;
c[21]++;
}
}
}
}
}
if(op==5)
{
while(1)
{
cout<<"目前异能值总和:"<<sumconan<<endl;
cout<<"1.填入 2.合成 3.退出"<<endl;
int op2;
cin>>op2;
if(op2==3)return;
if(op2==1)
{
out();
cout<<"请输入编号"<<endl;
int x;
cin>>x;
if(c[x]>0)c[x]--,sumconan+=y[x];
}
else
{
if(sumconan>=7500)
{
sumconan-=7500;
int cardclass=rand()%6+1;
if(cardclass==1)
{
cout<<"江户川柯南 R1 R1 R1 R1"<<endl;
c[1]+=4;
c[29]++;
}
if(cardclass==2)
{
cout<<"工藤新一 R1 R1 R1 R1"<<endl;
c[1]+=4;
c[30]++;
}
if(cardclass==3)
{
cout<<"毛利兰 R1 R1 R1 R1"<<endl;
c[1]+=4;
c[31]++;
}
if(cardclass==4)
{
cout<<"灰原哀 R1 R1 R1 R1"<<endl;
c[1]+=4;
c[32]++;
}
if(cardclass==5)
{
cout<<"啊笠博士 R1 R1 R1 R1"<<endl;
c[1]+=4;
c[33]++;
}
if(cardclass==6)
{
cout<<"怪盗基德 R1 R1 R1 R1"<<endl;
c[1]+=4;
c[34]++;
}
}
}
}
}
}
int ans;
void cd()
{
/*string name;
cout<<"输入存档名称"<<endl;
cin>>name;
cout.clear();
freopen(name,"w",stdout);*/
int name;
cout<<"请输入存档编号(1-10)"<<endl;
cin>>name;
cout.clear();
if(name==1)freopen("1.txt","w",stdout);
if(name==2)freopen("2.txt","w",stdout);
if(name==3)freopen("3.txt","w",stdout);
if(name==4)freopen("4.txt","w",stdout);
if(name==5)freopen("5.txt","w",stdout);
if(name==6)freopen("6.txt","w",stdout);
if(name==7)freopen("7.txt","w",stdout);
if(name==8)freopen("8.txt","w",stdout);
if(name==9)freopen("9.txt","w",stdout);
if(name==10)freopen("10.txt","w",stdout);
cout<<ans<<endl;
for(int i=1;i<=cnt;i++)cout<<c[i]<<endl;
cout<<sumr<<" "<<sumsr<<" "<<sumssr<<" "<<sumtr<<" "<<sumconan<<endl;
cout.clear();
freopen("CON","w",stdout);
}
void xs()
{
out();
cout<<"1返回 2欣赏图片"<<endl;
int op;
cin>>op;
if(op==1)return;
if(op==2)
{
int op2;
cin>>op2;
if(op2==1)system("start R1.png");
if(op2==2)system("start R2.png");
if(op2==3)system("start R3.png");
if(op2==4)system("start R4.png");
if(op2==5)system("start R5.png");
if(op2==6)system("start SR1.png");
if(op2==7)system("start SR1.png");
if(op2==8)system("start SR1.png");
if(op2==9)system("start SR1.png");
if(op2==10)system("start SR1.png");
if(op2==11)system("start SSR1.png");
if(op2==12)system("start SSR1.png");
if(op2==13)system("start SSR1.png");
if(op2==14)system("start SSR1.png");
if(op2==15)system("start SSR1.png");
if(op2==16)system("start j.png");
if(op2==17)system("start jdls.png");
if(op2==18)system("start gr.png");
if(op2==19)system("start amx.png");
if(op2==20)system("start ls.png");
if(op2==21)system("start TR1.png");
if(op2==22)system("start TR2.png");
if(op2==23)system("start TR3.png");
if(op2==24)system("start yyf.png");
if(op2==25)system("start jkf.png");
if(op2==26)system("start qzf.png");
if(op2==27)system("start cxf.png");
if(op2==28)system("start xyf.png");
if(op2==29)system("start cn.png");
if(op2==30)system("start xy.png");
if(op2==31)system("start l.png");
if(op2==32)system("start a.png");
if(op2==33)system("start bs.png");
if(op2==34)system("start kd.png");
}
}
void dd()
{
cout<<"输入读入的存档编号(1-10)"<<endl;
int name;
cin>>name;
cin.clear();
if(name==1)freopen("1.txt","r",stdin);
if(name==2)freopen("2.txt","r",stdin);
if(name==3)freopen("3.txt","r",stdin);
if(name==4)freopen("4.txt","r",stdin);
if(name==5)freopen("5.txt","r",stdin);
if(name==6)freopen("6.txt","r",stdin);
if(name==7)freopen("7.txt","r",stdin);
if(name==8)freopen("8.txt","r",stdin);
if(name==9)freopen("9.txt","r",stdin);
if(name==10)freopen("10.txt","r",stdin);
cin>>ans;
for(int i=1;i<=cnt;i++)cin>>c[i];
cin>>sumr>>sumsr>>sumssr>>sumtr>>sumconan;
cin.clear();
freopen("CON","r",stdin);
}
int main()
{
srand(time(0));
cin.clear();
freopen("flagconan.txt","r",stdin);
cin>>flagconan;
cin.clear();
freopen("CON","r",stdin);
while(1)
{
//cout<<"\033c"<<endl;
cout<<"抽卡次数:"<<ans<<endl;
cout<<"1.抽卡 2.合成 3.更新日志 4.存档 5.读取存档 6.欣赏"<<endl;
int op;
cin>>op;
cout<<op<<endl;
if(op==1)ckt(),ans++;
if(op==2)hct();
if(op==3)gxrz();
if(op==4)cd();
if(op==5)dd();
if(op==6)xs();
}
return 0;
}