水一篇(模拟星铁卡池)

#include<bits/stdc++.h>
using namespace std;
int sum=0,sum2=0;
int bdwz=0;
int xd1(int cs)
{
	sum+=cs;
	int dbd=0;
	if(sum>=80&&dbd%2==0)
	{
		int dbdwz=rand()%10+1;
		dbd++;
		cs--;
		int s=rand()%2;
		if(s==0)
		{
			int sss=rand()%7;
			if(sss==1)
			cout<<"姬子"<<endl;
			else if(sss==2)
			cout<<"彦卿"<<endl;
			else if(sss==3)
			cout<<"瓦尔特"<<endl;
			else if(sss==4)
			cout<<"杰帕德"<<endl;
			else if(sss==5)
			cout<<"白露"<<endl;
			else if(sss==6)
			cout<<"布洛妮娅"<<endl;
			else if(sss==0)
			cout<<"克拉拉"<<endl;
			
		}
		else if(s==1)
		{
			cout<<"波提欧"<<endl;
		}
		int bd=cs/10;
	for(int i=1;i<=cs;i++)
	{
		if(i%10==1)
		{
			bdwz=rand()%10+1;
		} 
		int jl=rand()%10000;
		if(jl>=1&&jl<=60)
		{
			cout<<"波提欧"<<endl; 
			bdwz++;
		} 
		if(i%10==bdwz)
		{
			int gz=rand()%2;
			int sx=rand()%3;
			if(gz==1)
			{
			if(sx==1)
			cout<<"佩拉"<<endl;
			else if(sx==2)
			cout<<"卢卡"<<endl;
			else cout<<"虎克"<<endl; 
		}
		else 
		
	    cout<<"不知名四星光锥"<<endl;
		}
		else if(jl>=70&&jl<=325)
		{
				int gz=rand()%2;
			int sx=rand()%3;
			if(gz==1)
			{
			if(sx==1)
			cout<<"佩拉"<<endl;
			else if(sx==2)
			cout<<"卢卡"<<endl;
			else cout<<"虎克"<<endl; 
		}
		else cout<<"不知名四星光锥"<<endl;
	}
		else
		{
			cout<<"不知名三星光锥"<<endl;
		}
	}
	}
	else{
	int bd=cs/10;
	for(int i=1;i<=cs;i++)
	{
		if(i%10==1)
		{
			bdwz=rand()%10+1;
		} 
		int jl=rand()%10000;
		if(jl>=1&&jl<=60)
		{
			cout<<"波提欧"<<endl; 
			bdwz++;
		} 
		if(i%10==bdwz)
		{
			int gz=rand()%2;
			int sx=rand()%3;
			if(gz==1)
			{
			if(sx==1)
			cout<<"佩拉"<<endl;
			else if(sx==2)
			cout<<"卢卡"<<endl;
			else cout<<"虎克"<<endl; 
		}
		else 
		
	    cout<<"不知名四星光锥"<<endl;
		}
		else if(jl>=70&&jl<=325)
		{
				int gz=rand()%2;
			int sx=rand()%3;
			if(gz==1)
			{
			if(sx==1)
			cout<<"佩拉"<<endl;
			else if(sx==2)
			cout<<"卢卡"<<endl;
			else cout<<"虎克"<<endl; 
		}
		else cout<<"不知名四星光锥"<<endl;
	}
		else
		{
			cout<<"不知名三星光锥"<<endl;
		}
	}
		return 0;
		
} 
}
int main(){
	int s=1;
	cout<<"欢迎使用星铁抽卡模拟器(技术不成熟,之后改进)"; 
	while(s==1)
	{
		int c;
		cout<<endl<<"输入1为波提欧卡池"<<endl;
		cin>>c;
		if(c==1)
		{
			int cs;
		cout<<"请输入您想抽的抽数"<<endl;
		cin>>cs;
		xd1(cs);
	}
	cout<<"请问您还要继续抽卡吗?(1为继续,其他为退出)"<<endl;
	int ss;
	cin>>ss;
	if(ss!=1)
	s=0; 
}
	cout<<"您一共在限定卡池1抽了"<<sum<<"抽,作者提示您:别尼玛抽了,流萤卡池要来了!";
	system("pause") ;
	return 0;
} 

  • 3
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值