跳到正文

个人记录

florrio craft

hsxx_zhoujingze约 3 分钟
原文
文章信息与版本

文章信息

发布
2025年3月8日
收录
2026年8月17日
更新
2026年10月24日
篇幅
约 3 分钟
获赞
1

版本

  1. v1当前
C++
#include<bits/stdc++.h>
#include<windows.h>
using namespace std;
int l=1;
int b[10]={0,64,32,16,8,4,2,1};
string a[10]={"","common","unusual","rare","epic","l","mythic","ultra","super"};
int kkk(string c){
	if(c==a[1]||c=="c")return 1;
	if(c==a[2]||c=="un")return 2;
	if(c==a[3]||c=="r")return 3;
	if(c==a[4]||c=="e")return 4;
	if(c==a[5])return 5;
	if(c==a[6]||c=="m")return 6;
	if(c==a[7]||c=="u")return 7;
}
void crafts(string name,int s,string oo){
	system("color FA");
	for(int i=1;i<=s;i++)
	cout<<"A super "<<oo<<" has been crafted by "<<name<<"!"<<endl;
	system("color 07");
	Sleep(1000);cout<<"[local]"<<name<<":wtfffffffffffffff"<<endl;
	Sleep(1000);cout<<"[local]"<<name<<":wtffffffs"<<endl;
	Sleep(1000);cout<<"[local]"<<"XJX"<<":你吃kevin11女生隐私"<<endl;
	Sleep(1000);cout<<"[local]"<<"XJX"<<":我草你妈,gyg"<<endl;
	Sleep(1000);cout<<"[local]"<<name<<":"<<endl;
	return;
} 
int main(){
	while(1){
		int m,k;
		string n,oo;
		cin>>m>>n>>oo;
		int p=kkk(n),s=0;
		while(m>=5){
			l++;
			srand(l);
			k=rand()%100+1;
			if(k<=b[p]){
				s++;
				m-=5;
			}
			else{
				l++;
				srand(l);
				k=rand()%4+1;
				m-=k;
			}
		}
		l++;
		srand(l);
		if(s==0){
			if(m==1)k=rand()%8+4;
			if(m==2)k=rand()%5+3;
			if(m==3)k=rand()%4+2;
			if(m==4)k=rand()%3+1;
		}
		else k=9;
		for(int i=1;i<=k;i++)
		{
			cout<<"craft..."<<endl;
			Sleep(1500-150*i);
		}
		if(s==0)cout<<"failed"<<"只剩"<<m<<a[p]<<endl; 
		else{
			cout<<"="<<s<<" "<<a[p+1]<<" "<<oo<<"!!!!!!!!!!"<<endl;
			if(p==7)crafts("bonesss",s,oo);
		}
	}
	return 0;
}