小天才-权益卡
2024-11-10 16:47:03
发布于:广东
不玩小天才的别点!!!!!!!!!!!!!!!!!!!!
不玩小天才的别点!!!!!!!!!!!!!!!!!!!!
不玩小天才的别点!!!!!!!!!!!!!!!!!!!!
不玩小天才的别点!!!!!!!!!!!!!!!!!!!!
不玩小天才的别点!!!!!!!!!!!!!!!!!!!!
不玩小天才的别点!!!!!!!!!!!!!!!!!!!!
不玩小天才的别点!!!!!!!!!!!!!!!!!!!!
不玩小天才的别点!!!!!!!!!!!!!!!!!!!!
权益卡
游玩说明
1、花几千块买一台Windows(必须是Windows!!!)
2、下载DEV C++,将程序复制到上面即可游玩
新手作品,过于粗糙
有BUG欢迎发到评论区
PS:转载需标明出处
#include<bits/stdc++.h>
#include<windows.h>
using namespace std;
struct Card{
int val; //异能值
string level;
/*
level:
R,SR,SSR
*/
int cnt; //拥有的数量
void output()
{
cout<<level<<" "<<cnt<<" "<<val<<endl;
}
};
Card normal[20]; //正常卡
Card aotu[10]; //凹凸卡
Card kenan[10]; //柯南卡
Card dragon[10]; //龙卡
Card fu[10]; //福卡
string quanyi[101]; //拥有的权益
int quanyi_len; //拥有的权益的数量
int cs;
void c(string s)
{
for(int i=0;i<s.size();i++)
{
cout<<s[i];
Sleep(50);
}
}
void qc(string s)
{
for(int i=0;i<s.size();i++)
{
cout<<s[i];
Sleep(15);
}
}
void qsh()
{
normal[0] = {0,"NONE",0};
normal[1] = {200,"R1",0};
normal[2] = {800,"R2",0};
normal[3] = {1400,"R3",0};
normal[4] = {2200,"R4",0};
normal[5] = {3000,"R5",0};
normal[6] = {3900,"SR1",0};
normal[7] = {4900,"SR2",0};
normal[8] = {6000,"SR3",0};
normal[9] = {7200,"SR4",0};
normal[10] = {8600,"SR5",0};
normal[11] = {10100,"SSR1",0};
normal[12] = {11700,"SSR2",0};
normal[13] = {13500,"SSR3",0};
normal[14] = {15500,"SSR4",0};
normal[15] = {17700,"SSR5",0};
normal[16] = {1666,"TR1",0};
normal[17] = {1666,"TR2",0};
normal[18] = {1666,"TR3",0};
aotu[0] = {0,"NONE",0};
aotu[1] = {888,"安迷修",0};
aotu[2] = {1888,"雷狮",0};
aotu[3] = {6888,"格瑞",0};
aotu[4] = {7888,"嘉德罗斯",0};
aotu[5] = {8888,"金",0};
kenan[1] = {5888,"阿笠博士",0};
kenan[2] = {5888,"毛利兰",0};
kenan[3] = {5888,"灰原哀",0};
kenan[4] = {6888,"工藤新一",0};
kenan[5] = {6888,"江户川柯南",0};
kenan[6] = {6888,"怪盗基德",0};
dragon[0] = {0,"NONE",0};
dragon[1] = {888,"欢乐龙",0};
dragon[2] = {1288,"智慧龙",0};
dragon[3] = {1688,"勇气龙",0};
dragon[4] = {2688,"守护龙",0};
dragon[5] = {2888,"健康龙",0};
fu[0] = {0,"NONE",0};
fu[1] = {1888,"健康福",0};
fu[2] = {1888,"友谊福",0};
fu[3] = {2888,"喜悦福",0};
fu[4] = {2888,"诚信福",0};
fu[5] = {5888,"求知福",0};
cs = 4;
}
void back_hall(); //返回大厅
void bag()
{
system("cls");
system("color 0F");
cout<<"第一空:卡片类型 第二空:拥有数量 第三空:异能值"<<endl;
for(int i=1;i<=18;i++)
{
normal[i].output();
}
for(int i=1;i<=5;i++)
{
aotu[i].output();
}
system("Pause");
back_hall();
}
void ckt()
{
system("cls");
system("color 0F");
cout<<"欢迎来到抽卡台"<<endl;
cout<<"输入1表示要抽卡"<<endl;
cout<<"输入2表示查看任务"<<endl;
cout<<"输入其他表示返回大厅"<<endl;
int ck;
cin>>ck;
if(ck == 1)
{
system("cls");
while(1)
{
if(!cs)
{
system("cls");
cout<<"抽卡次数不够了哦!快去做任务获得抽卡机会吧!"<<endl;
system("Pause");
break;
}
cout<<"要开始抽卡吗,输入1表示继续,输入其他返回大厅,你目前还有"<<cs<<"次抽卡机会"<<endl;
int a;
cin>>a;
if(a != 1) back_hall();
int num = rand()%200+1;
if(num <= 70) cout<<"卡牌被外星猫拿走啦!"<<endl;
else
{
cout<<"抽中一张";
num -= 70;
int i = num;
if(num <= 100)
{
num %= 20;
num++;
cout<<normal[i%18+1].level;
normal[i%18+1].cnt++;
}
else
{
cout<<aotu[i%5+1].level;
aotu[i%5+1].cnt++;
}
cout<<"!"<<endl;
}
Sleep(1500);
cs--;
}
}
else if(ck == 2)
{
system("color 0F");
system("cls");
cout<<"--------任务清单----------"<<endl;
cout<<"任务1:合成TR/R卡包 报酬:1次抽卡机会"<<endl;
cout<<"任务2:合成SR卡包 报酬:2次抽卡机会"<<endl;
cout<<"任务3:合成SSR卡包 报酬:3次抽卡机会"<<endl;
cout<<"任务4:兑换凹凸权益 报酬:5次抽卡机会"<<endl;
system("Pause");
}
back_hall();
}
int Rval = 0;
int SRval = 0;
int SSRval = 0;
int TRval = 0;
string hccard;
void hec(int gaol,string level)
{
system("color 0F");
system("cls");
int dcgoal;
if(level == "R") dcgoal = Rval;
else if(level == "SR") dcgoal = SRval;
else if(level == "SSR") dcgoal = SSRval;
else if(level == "TR") dcgoal = TRval;
while(dcgoal < gaol)
{
system("cls");
cout<<"合成"<<level<<"卡包"<<endl;
cout<<"目前异能值:"<<dcgoal<<endl;
cout<<"目标异能值:"<<gaol<<endl;
cout<<"你要用哪张卡来合成?输入卡片(如要用SR3就输入SR3,或者用嘉德罗斯就输入嘉德罗斯),如想退出就输入-1,请输入合法卡片!"<<endl;
cin>>hccard;
if(hccard == "-1")
{
if(level == "R") Rval = dcgoal;
else if(level == "SR") SRval = dcgoal;
else if(level == "SSR") SSRval = dcgoal;
else if(level == "TR") TRval = dcgoal;
cout<<"即将退出合成卡包返回大厅"<<endl;
Sleep(2000);
back_hall();
}
Card tmp;
if(hccard[0] != 'R' && hccard[0] != 'S' && hccard[0] != 'T')
{
if(hccard == "金") tmp = aotu[5];
else if(hccard == "嘉德罗斯") tmp = aotu[4];
else if(hccard == "格瑞") tmp = aotu[3];
else if(hccard == "雷狮") tmp = aotu[2];
else if(hccard == "安迷修") tmp = aotu[1];
else
{
cout<<"你这输的都是些啥!重输!"<<endl;
Sleep(2000);
continue;
}
}
else
{
if(hccard[0] == 'R') tmp = normal[hccard[1]-'0']; //此卡为R卡
else if(hccard[0] == 'S')
{
if(hccard[1] == 'R') tmp = normal[hccard[2]-'0'+5]; //此卡为SR卡
else tmp = normal[hccard[3]-'0'+10]; //此卡为SR卡
}
else tmp = normal[hccard[1]-'0'+15]; //此卡为TR卡
}
if(!tmp.cnt)
{
cout<<"你没有"<<hccard<<"了,本次输入无效!"<<endl;
Sleep(2000);
continue;
}
cout<<hccard<<"还剩"<<tmp.cnt<<"张,确定吗(输入1为确定,否则为不确定)(不可撤回)"<<endl;
int really;
cin>>really;
if(really != 1)
{
cout<<"好的,撤回卡片"<<endl;
}
else
{
cout<<"好的,放入卡片"<<endl;
if(hccard[0] != 'R' && hccard[0] != 'S' && hccard[0] != 'T')
{
if(hccard == "金") aotu[5].cnt--;
else if(hccard == "嘉德罗斯") aotu[4].cnt--;
else if(hccard == "格瑞") aotu[3].cnt--;
else if(hccard == "雷狮") aotu[2].cnt--;
else if(hccard == "安迷修") aotu[1].cnt--;
dcgoal += tmp.val;
}
else
{
if(hccard[0] == 'R') normal[hccard[1]-'0'].cnt--; //此卡为R卡
else if(hccard[0] == 'S')
{
if(hccard[1] == 'R') normal[hccard[2]-'0'+5].cnt--; ////此卡为SR卡
else normal[hccard[3]-'0'+10].cnt--; ////此卡为SR卡
}
else normal[hccard[1]-'0'+15].cnt--; //此卡为TR卡
dcgoal += tmp.val;
}
}
Sleep(2000);
}
//开出卡包
cout<<"合成成功!"<<endl;
Sleep(2000);
int sjs = rand()%100+1;
if(level == "R")
{
cs++;
Rval = dcgoal-gaol;
if(sjs <= 20)
{
cout<<"R1 R1 R1 R1 R1"<<endl;
normal[1].cnt += 5;
}
else if(sjs <= 40)
{
cout<<"R3 R2 R2 R2 R2"<<endl;
normal[3].cnt++;
normal[2].cnt += 4;
}
else if(sjs <= 70)
{
cout<<"R5 R3 R1 R1 R1"<<endl;
normal[5].cnt++;
normal[3].cnt++;
normal[1].cnt+=3;
}
else if(sjs <= 90)
{
cout<<"R5 R4 R3 R2 R1"<<endl;
normal[5].cnt++;
normal[4].cnt++;
normal[3].cnt++;
normal[2].cnt++;
normal[1].cnt++;
}
else if(sjs >= 90 && sjs <= 100)
{
cout<<"R5 R5 R5 R5 R5"<<endl;
normal[5].cnt += 5;
}
}
else if(level == "SR")
{
cs += 2;
SRval = dcgoal-gaol;
if(sjs <= 20)
{
cout<<"R1 R5 SR1 格瑞 SR3"<<endl;
normal[1].cnt++;
normal[5].cnt++;
aotu[3].cnt++;
normal[6].cnt++;
normal[8].cnt++;
}
else if(sjs <= 40)
{
cout<<"R1 R1 雷狮 嘉德罗斯 SR2"<<endl;
normal[1].cnt+=2;
normal[2].cnt += 4;
aotu[2].cnt++;
aotu[4].cnt++;
normal[7].cnt++;
}
else if(sjs <= 70)
{
cout<<"安迷修 R5 R5 R5 SR1"<<endl;
aotu[1].cnt++;
normal[5].cnt+=3;
normal[6].cnt++;
}
else if(sjs <= 90)
{
cout<<"SR5 SR4 SR3 SR2 SR1"<<endl;
normal[10].cnt++;
normal[9].cnt++;
normal[8].cnt++;
normal[7].cnt++;
normal[6].cnt++;
}
else if(sjs >= 90 && sjs <= 100)
{
cout<<"SR5 SR5 SR5 SR5 SR5"<<endl;
normal[10].cnt += 5;
}
}
else if(level == "SSR")
{
cs += 3;
SSRval = dcgoal-gaol;
if(sjs <= 20)
{
cout<<"SSR1 SR1 SR1 SR1 SR1"<<endl;
normal[11].cnt++;
normal[6].cnt+=4;
}
else if(sjs <= 50)
{
cout<<"SSR2 SR2 SR2 SR2 SR2"<<endl;
normal[12].cnt++;
normal[7].cnt+=4;
}
else if(sjs <= 70)
{
cout<<"SSR1 SSR2 SSR3 SSR4 SSR5"<<endl;
normal[11].cnt++;
normal[12].cnt++;
normal[13].cnt++;
normal[14].cnt++;
normal[15].cnt++;
}
else if(sjs <= 95)
{
cout<<"SSR5 SSR5 SSR5 SSR5 SSR5"<<endl;
normal[15].cnt+=5;
}
else if(sjs >= 95 && sjs <= 100)
{
cout<<"金 SR2 SR3 SR4 SSR3"<<endl;
aotu[5].cnt++;
normal[7].cnt++;
normal[8].cnt++;
normal[9].cnt++;
normal[13].cnt++;
}
}
else if(level == "TR")
{
cs++;
TRval = dcgoal-gaol;
if(sjs <= 20)
{
cout<<"TR1 R1 R1"<<endl;
normal[16].cnt++;
normal[1].cnt+=2;
}
else if(sjs <= 50)
{
cout<<"TR1 TR3"<<endl;
normal[16].cnt++;
normal[18].cnt++;
}
else if(sjs <= 70)
{
cout<<"TR2 TR3"<<endl;
normal[17].cnt++;
normal[18].cnt++;
}
else if(sjs <= 90)
{
cout<<"TR2 TR3 R1 R1"<<endl;
normal[17].cnt++;
normal[18].cnt++;
normal[1].cnt+=2;
}
else if(sjs >= 90 && sjs <= 100)
{
cout<<"TR1 TR2 TR3 R1 R1"<<endl;
normal[16].cnt++;
normal[17].cnt++;
normal[18].cnt++;
normal[1].cnt+=2;
}
}
system("Pause");
back_hall();
}
void qysc()
{
system("color 0F");
system("cls");
cout<<"权益1:凹凸权益"<<endl;
cout<<"消耗:1张金、1张嘉德罗斯、1张格瑞、1张雷狮、1张安迷修"<<endl;
cout<<"是否购买(输入1表示购买,输入其他文本表示不够买)"<<endl;
int goumai;
cin>>goumai;
if(goumai == 1)
{
if(quanyi_len && quanyi[0] == "凹凸权益")
{
cout<<"已购买,无法重复购买!"<<endl;
}
else
{
if(aotu[1].cnt && aotu[2].cnt && aotu[3].cnt && aotu[4].cnt && aotu[5].cnt)
{
cout<<"好的!购买成功!"<<endl;
cs += 5;
quanyi[quanyi_len] = "凹凸权益";
quanyi_len++;
for(int i=1;i<=5;i++) aotu[i].cnt--;
}
else cout<<"你的卡不够买哦!"<<endl;
}
}
else cout<<"好的!"<<endl;
Sleep(2000);
back_hall();
}
string int_string(int n)
{
string s;
int a = n;
if(!a) s = "0";
while(a)
{
s += (a%10)+'0';
a /= 10;
}
reverse(s.begin(), s.end());
return s;
}
void out_c()
{
system("color 0F");
system("cls");
string cundang = "@";
for(int i=1;i<=18;i++)
{
cundang.replace(cundang.size(),0,int_string(normal[i].cnt));
cundang += '*';
}
for(int i=1;i<=5;i++)
{
cundang.replace(cundang.size(),0,int_string(aotu[i].cnt));
cundang += '*';
}
cundang += "--";
cundang.replace(cundang.size(),0,int_string(Rval));
cundang += '@';
cundang.replace(cundang.size(),0,int_string(SRval));
cundang += '@';
cundang.replace(cundang.size(),0,int_string(SSRval));
cundang += '@';
cundang.replace(cundang.size(),0,int_string(TRval));
cundang += '-';
cundang.replace(cundang.size(),0,int_string(cs));
cundang += '-';
if(quanyi[0] == "凹凸权益") cundang += '1';
else cundang += '0';
cout<<cundang<<endl;
system("Pause");
back_hall();
}
int string_int(string s)
{
int sum = 0;
for(int i=0;i<s.size();i++)
{
sum = sum*10+(s[i]-'0');
}
return sum;
}
void read_c(string cundang)
{
system("cls");
system("color 0F");
int id = 1;
int I;
for(int i=1;i<cundang.size() && id <= 18;i++) //第一个是@,跳过不读
{
int j = i;
while(cundang[i] != '*') i++;
I = j;
normal[id].cnt = string_int(cundang.substr(j,i-j));
id++;
}
id = 1;
for(int i=I;i<cundang.size() && id <= 5;i++)
{
int j = i;
while(cundang[i] != '*') i++;
I = j;
aotu[id].cnt = string_int(cundang.substr(j,i-j));
id++;
}
while(cundang[I] != '-')
{
I++;
}
I++;
int j = I;
I++;
while(cundang[I] != '@') I++;
Rval = string_int(cundang.substr(j+1,I-j-1));
//
j = I;
I++;
while(cundang[I] != '@') I++;
SRval = string_int(cundang.substr(j+1,I-j-1));
//
j = I;
I++;
while(cundang[I] != '@') I++;
SSRval = string_int(cundang.substr(j+1,I-j-1));
//
j = I;
I++;
while(cundang[I] != '-') I++;
TRval = string_int(cundang.substr(j+1,I-j-1));
//
j = I;
I++;
while(cundang[I] != '-') I++;
cs = string_int(cundang.substr(j+1,I-j-1));
//
if(cundang[cundang.size()-1] == '1')
{
quanyi[quanyi_len] = "凹凸权益";
quanyi_len++;
}
cout<<"读档完成……"<<endl;
system("Pause");
back_hall();
}
void cin_c()
{
system("cls");
system("color 0F");
cout<<"请输入存档(请勿乱输)"<<endl;
string cundang;
cin>>cundang;
if(cundang[0] != '@')
{
cout<<"无效存档!!!"<<endl;
system("Pause");
back_hall();
}
cout<<"开始读档----"<<endl;
Sleep(1000);
read_c(cundang);
}
void cd()
{
system("color 0F");
system("cls");
cout<<"存档中心"<<endl;
cout<<"输入1来读档"<<endl;
cout<<"输入2来获取你当前的存档码"<<endl;
int czs;
cin>>czs;
if(czs == 1)
{
cout<<"读档要慎重!一旦输错就会导致程序崩溃并退出!你确定要读档吗?如果真的要读档就输入1,否则输入0"<<endl;
int dd;
cin>>dd;
if(dd == 1) cin_c();
}
else
{
out_c();
}
back_hall();
}
void cyzx()
{
system("color 0F");
system("cls");
cout<<"欢迎来到权益中心"<<endl;
cout<<"输入1查看你拥有的权益"<<endl;
cout<<"输入2来购买权益"<<endl;
int op;
cin>>op;
if(op == 1)
{
if(quanyi_len)
{
for(int i=0;i<quanyi_len;i++)
{
cout<<quanyi[i]<<endl;
}
}
else cout<<"暂无权益,请到商城购买!";
Sleep(2000);
}
else if(op == 2)
{
cout<<"跳转中……"<<endl;
Sleep(1500);
qysc();
}
back_hall();
}
void kbhc()
{
system("color 0F");
system("cls");
cout<<"请输入你要合成的卡包"<<endl;
cout<<"输入1合成R卡包"<<endl;
cout<<"输入2合成SR卡包"<<endl;
cout<<"输入3合成SSR卡包"<<endl;
cout<<"输入4合成TR卡包"<<endl;
cout<<"输入其他数字返回大厅"<<endl;
int czs;
cin>>czs;
if(czs == 1) hec(5000,"R");
else if(czs == 2) hec(20000,"SR");
else if(czs == 3) hec(40000,"SSR");
else if(czs == 4) hec(4000,"TR");
else back_hall();
}
int main()
{
system("color 0F");
cout<<"使用者知情同意书\n";
int know;
qc("请确认你是小天才电话手表用户并且在上面下载了 权益卡 并且了解规则。如不是请输入0,如是请输入1");
cout<<endl;
cin>>know;
if(!know) exit(0);
qsh();
back_hall();
return 0;
}
void back_hall()
{
system("cls");
system("color 0F");
cout<<"------------------权益卡大厅------------------"<<endl;
cout<<"注:如有存档请在一开始导入!"<<endl;
cout<<"输入数字来进行操作:"<<endl;
cout<<"输入1进入抽卡台"<<endl;
cout<<"输入2进入卡包合成中心"<<endl;
cout<<"输入3查看背包"<<endl;
cout<<"输入4进入权益中心"<<endl;
cout<<"输入5导出或导入存档"<<endl;
srand(unsigned(time(0)));
int czs;
cin>>czs;
if(czs == 1) ckt(); //进入抽卡台
else if(czs == 2) kbhc(); //合成卡包
else if(czs == 3) bag(); //查看背包
else if(czs == 4) cyzx(); //权益中心
else if(czs == 5) cd(); //存档
else
{
cout<<"输入无效!"<<endl;
back_hall();
}
}
全部评论 3
顶
1周前 来自 广东
0冷知识:怪盗基德不能抽出来,只能在加好友中爆
2024-10-02 来自 广东
0这个我知道
2024-10-03 来自 广东
0柯南卡包没了,还能出吗
2024-10-06 来自 上海
0不到
2024-10-06 来自 广东
0
持续更新中
2024-10-02 来自 广东
0
有帮助,赞一个