原创超简单代码(1.29.80)

大家好,今天又来更新啦~
(喜欢的话可以点个赞吗)

更新内容

  1. 抽卡系统显示优化
    抽取图片

  2. 作弊选项物品优化

更新代码

首先是抽卡系统的显示优化:

switch(s){
			case 1:{
				button(10,4,150,25,20,"");
				button(50,150,140,25,20,"");
				outtextxy(10,4,Power_potion.level);
				outtextxy(50,150,Power_potion.name);
				Power_potion.number++;
				_getch();
				break;
			}
			case 2:{
				button(10,4,150,25,20,"");
				button(50,150,140,25,20,"");
				outtextxy(10,4,workbench.level);
				outtextxy(50,150,workbench.name);
				workbench.number++;
				_getch();
				break;
			}
			case 3:{
				button(10,4,150,25,20,"");
				button(50,150,140,25,20,"");
				outtextxy(10,4,hand_grenade.level);
				outtextxy(50,150,hand_grenade.name);
				hand_grenade.number++;
				_getch();
				break;
			}
			case 4:{
				button(10,4,150,25,20,"");
				button(50,150,140,25,20,"");
				outtextxy(10,4,Golden_apples.level);
				outtextxy(50,150,Golden_apples.name);
				Golden_apples.number++;
				_getch();
				break;
			}
			case 5:{
				button(10,4,150,25,20,"");
				button(50,150,140,25,20,"");
				outtextxy(10,4,Enchanted_bottle.level);
				outtextxy(50,150,Enchanted_bottle.name);
				Enchanted_bottle.number++;
				_getch();
				break;
			}
			case 6:{
				button(10,4,150,25,20,"");
				button(50,150,140,25,20,"");
				outtextxy(10,4,Iron_Great_Sword.level);
				outtextxy(50,150,Iron_Great_Sword.name);
				Iron_Great_Sword.number++;
				_getch();
				break;
			}
			case 7:{
				button(10,4,150,25,20,"");
				button(50,150,140,25,20,"");
				outtextxy(10,4,Healing_potion.level);
				outtextxy(50,150,Healing_potion.name);
				Healing_potion.number++;
				_getch();
				break;
			}
			case 8:{
				button(10,4,150,25,20,"");
				button(50,150,140,25,20,"");
				outtextxy(10,4,Immortal_Totem.level);
				outtextxy(50,150,Immortal_Totem.name);
				Immortal_Totem.number++;
				_getch();
				break;
			}
			case 9:{
				button(10,4,150,25,20,"");
				button(50,150,140,25,20,"");
				outtextxy(10,4,first_aid_kit.level);
				outtextxy(50,150,first_aid_kit.name);
				first_aid_kit.number++;
				_getch();
				break;
			}
			case 10:{
				button(10,4,150,25,20,"");
				button(50,150,140,25,20,"");
				outtextxy(10,4,Stick.level);
				outtextxy(50,150,Stick.name);
				Stick.number+=8;
				_getch();
				break;
			}
			case 11:{
				button(10,4,150,25,20,"");
				button(50,150,140,25,20,"");
				outtextxy(10,4,Iron_Cuirass.level);
				outtextxy(50,150,Iron_Cuirass.name);
				Iron_Cuirass.number++;
				_getch();
				break;
			}
			case 12:{
				button(10,4,150,25,20,"");
				button(50,150,140,25,20,"");
				outtextxy(10,4,Nether_Sword.level);
				outtextxy(50,150,Nether_Sword.name);
				Nether_Sword.number++;
				_getch();
				break;
			}
			case 13:{
				button(10,4,150,25,20,"");
				button(50,150,140,25,20,"");
				outtextxy(10,4,Nether_Cuirass.level);
				outtextxy(50,150,Nether_Cuirass.name);
				Nether_Cuirass.number++;
				_getch();
				break;
			}
			case 14:{
				button(10,4,150,25,20,"");
				button(50,150,140,25,20,"");
				outtextxy(10,4,iron_sword.level);
				outtextxy(50,150,iron_sword.name);
				iron_sword.number++;
				_getch();
				break;
			}
			case 15:{
				button(10,4,150,25,20,"");
				button(50,150,140,25,20,"");
				outtextxy(10,4,golden_sword.level);
				outtextxy(50,150,golden_sword.name);
				golden_sword.number++;
				_getch();
				break;
			}
			case 16:{
				button(10,4,150,25,20,"");
				button(50,150,140,25,20,"");
				outtextxy(10,4,golden_cuirass.level);
				outtextxy(50,150,golden_cuirass.name);
				golden_cuirass.number++;
				_getch();
				break;
			}
			case 17:{
				button(10,4,150,25,20,"");
				button(50,150,140,25,20,"");
				outtextxy(10,4,iron_ingot.level);
				outtextxy(50,150,iron_ingot.name);
				iron_ingot.number++;
				_getch();
				break;
			}
			case 18:{
				button(10,4,150,25,20,"");
				button(50,150,140,25,20,"");
				outtextxy(10,4,golden_ingot.level);
				outtextxy(50,150,golden_ingot.name);
				golden_ingot.number++;
				_getch();
				break;
			}
			case 19:{
				button(10,4,150,25,20,"");
				button(50,150,140,25,20,"");
				outtextxy(10,4,nether_ingot.level);
				outtextxy(50,150,nether_ingot.name);
				nether_ingot.number++;
				_getch();
				break;
			}
			default:{
				gotoxy(22,7);
				color(5);
				cout<<"什么都没有...";
				_getch();
				break;
			}
		}

其次是作弊选项的优化:

if(player.name=="lcr"||player.name=="LCR"){
			player.harm+=10000;
			player.harm_max+=10000;
			player.Armor+=10000;
			player.Armor_max+=10000; 
			Nether_Sword.number++;
			nether_ingot.number++;
		}

代码程序

https://ruibao.lanzoum.com/iy59W0qwvvyf

谢谢大家!制作不易,喜欢的话欢迎点赞+收藏

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值