Skip to content

Commit

Permalink
Update 源.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
NianGuu committed Apr 16, 2022
1 parent 3b17572 commit f340fcc
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions 源.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ typedef struct {
int difficulty = 1; /*难度系数*/

int main() {
system("mode con cols=140 lines=40 ");
system("mode con cols=140 lines=42 ");
Entity player;
char name[nameLength];
printf("**************************************\n");
Expand Down Expand Up @@ -174,7 +174,7 @@ int main() {
printf("* *\n");
printf("* 名称:%-10s 等级:%-2d 金币:%-10d *\n", player.name, difficulty, player.Gold);
printf("* *\n");
printf("* 生命值:%-8d攻击力:%-8d防御力:%-8d*\n", player.HP, player.ATK+player.Equi.Weapon.ATK, player.DEF+player.Equi.Armour.DEF);
printf("* 生命值:%-8d攻击力:%-8d防御力:%-8d*\n", player.HP, player.ATK + player.Equi.Weapon.ATK, player.DEF + player.Equi.Armour.DEF);
printf("* *\n");
printf("* 操作列表: *\n");
printf("* *\n");
Expand Down Expand Up @@ -284,7 +284,7 @@ int UI_fight(Entity* player) {
printf("* *\n");
printf("* *恭喜,你赢了* *\n");
printf("***************************************\n");
printf("\n o(^▽^)o\n");
printf("\n o(^▽^)o\n");
difficulty++;
UI_gain(player, mob);
};break;
Expand Down Expand Up @@ -488,8 +488,8 @@ void UI_skill(Entity* player) {
for (int i = 0;i < skillNum;i++)
printf("*%d.%-20s *\n", i + 1, player->SkillList.data[i].name);
printf("*-------------------------------------------------------*\n");
printf("\n已拥有的技能:\n\n");
Traversal(player->OwnSkill);
/*printf("\n已拥有的技能:\n\n");
Traversal(player->OwnSkill);*/
printf("\n请输入操作:\n");
printf("\n1.查看未拥有技能\n");
printf("\n2.卸下技能\n");
Expand Down Expand Up @@ -1221,7 +1221,7 @@ int LengthNode(SkillLink head) {
void Traversal(SkillLink head) {
int i = 1;
while (head = head->next) {
printf("%d.%-20s\t伤害:%d\n", i, head->data.name, head->data.atk);
printf("\n%d.%-20s\t伤害:%d\n", i, head->data.name, head->data.atk);
i++;
}
putchar(10);
Expand Down

0 comments on commit f340fcc

Please sign in to comment.