我给你水个damn,完全版星铁抽卡模拟器来了

略有BUG,十抽十抽来或者单抽就没事,不要学闰土故意找猹

如果有影响使用的,或者哪位大佬有改进意见,请私信我,感谢

代码奉上

#include<bits/stdc++.h>
using namespace std;
int sum=0,sum2=0;
int bdwz=0;
int bdcs1=0,bdcs2=0;
int xd1(int cs)
{
	sum+=cs;
	bdcs1+=cs;
	int dbd=0;
	if(sum%80>=80&&dbd%2==0&&bdcs1>=80)
	{
		bdcs1-=80;
		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; 
			bdcs1=0;
			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++;
			bdcs1=0;
		} 
		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 xd2(int cs)
{
	sum+=cs;
	bdcs1+=cs;
	int dbd=0;
	if(sum%80>=80&&dbd%2==0&&bdcs1>=80)
	{
		int dbdwz=rand()%10+1;
		dbd++;
		cs--;
		bdcs1-=80;
		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<<"TYPE C"<<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<<"TYPE C"<<endl; 
			bdwz++;
			bdcs1=0;
		} 
		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<<"TYPE C"<<endl; 
			bdwz++;
			bdcs1=0;
		} 
		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 gz1(int cs)
{
	sum2+=cs;
	bdcs2+=cs;
	int dbd=0;
	if(sum2>=80&&dbd%2==0&&bdcs2>=80)
	{
		int dbdwz=rand()%10+1;
		dbd++;
		bdcs2-=80;
		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;
			bdcs2=0; 
			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++;bdcs2=0; 
		} 
		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 gz2(int cs)
{
	sum2+=cs;
	bdcs2+=cs; 
	int dbd=0;
	if(sum2%80>=80&&dbd%2==0&&bdcs2>=80)
	{
		int dbdwz=rand()%10+1;
		dbd++;
		bdcs2-=80;
		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++;bdcs2=0; 
		} 
		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; bdcs2=0; 
			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为波提欧卡池,2为TYPE C卡池,3为符玄光锥卡池,4为波提欧光锥卡池"<<endl;
		cin>>c;
		if(c==1)
		{
			int cs;
		cout<<"请输入您想抽的抽数"<<endl;
		cin>>cs;
		xd1(cs);
	}if(c==2)
		{
			int cs;
		cout<<"请输入您想抽的抽数"<<endl;
		cin>>cs;
		xd2(cs);
	}
	if(c==3)
		{
			int cs;
		cout<<"请输入您想抽的抽数"<<endl;
		cin>>cs;
		gz1(cs);
	}
	if(c==4)
		{
			int cs;
		cout<<"请输入您想抽的抽数"<<endl;
		cin>>cs;
		gz2(cs);
	}
	cout<<"请问您还要继续抽卡吗?(1为继续,其他为退出)"<<endl;
	int ss;
	cin>>ss;
	if(ss!=1)
	s=0; 
}
	cout<<"您一共在限定卡池抽了"<<sum<<"抽,在光锥卡池抽了"<<sum2<<"抽"<<endl;
	system("pause") ;
	return 0;
} 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值