大家好,今天又来更新啦~
(喜欢的话可以点个赞吗)
更新内容
-
抽卡系统显示优化
-
作弊选项物品优化
更新代码
首先是抽卡系统的显示优化:
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
谢谢大家!制作不易,喜欢的话欢迎点赞+收藏