Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
struct_cym
游戏编写
提交
82a1bf09
游
游戏编写
项目概览
struct_cym
/
游戏编写
通知
5
Star
2
Fork
1
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
游
游戏编写
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
82a1bf09
编写于
11月 21, 2021
作者:
struct_cym
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Update game.cpp
上级
abd8386c
变更
1
显示空白变更内容
内联
并排
Showing
1 changed file
with
541 addition
and
488 deletion
+541
-488
game.cpp
game.cpp
+541
-488
未找到文件。
game.cpp
浏览文件 @
82a1bf09
...
...
@@ -280,7 +280,8 @@ void bag() //bug
{
for
(
int
j
=
0
;
j
<
5
;
j
++
)
{
if
(
!
flag_bag
[
i
]){
if
(
!
flag_bag
[
i
])
{
cout
<<
bags
[
i
].
cnn
<<
":"
<<
bags
[
i
].
bag
[
j
]
<<
" "
;
}
}
...
...
@@ -395,7 +396,9 @@ int main12()
skill_board
();
system
(
"cls"
);
main12
();
}
else
{
}
else
{
main12
();
}
}
...
...
@@ -444,7 +447,8 @@ void lingdong()
return
;
}
}
if
(
jineng
[
i
]
&&
i
==
2
){
if
(
jineng
[
i
]
&&
i
==
2
)
{
cout
<<
"木神术--"
<<
endl
;
cout
<<
"千手顶上化佛!"
<<
endl
;
temb
-=
5
*
10
+
attack
[
grade
];
...
...
@@ -465,7 +469,8 @@ void lingdong()
return
;
}
}
if
(
jineng
[
i
]
&&
i
==
3
){
if
(
jineng
[
i
]
&&
i
==
3
)
{
cout
<<
"水神术--"
<<
endl
;
cout
<<
"水乱波!"
<<
endl
;
temb
-=
5
*
10
+
attack
[
grade
];
...
...
@@ -486,7 +491,8 @@ void lingdong()
return
;
}
}
if
(
jineng
[
i
]
&&
i
==
4
){
if
(
jineng
[
i
]
&&
i
==
4
)
{
cout
<<
"土神术--"
<<
endl
;
cout
<<
"土淹!"
<<
endl
;
temb
-=
5
*
10
+
attack
[
grade
];
...
...
@@ -507,7 +513,8 @@ void lingdong()
return
;
}
}
if
(
jineng
[
i
]
&&
i
==
5
){
if
(
jineng
[
i
]
&&
i
==
5
)
{
cout
<<
"金神术--"
<<
endl
;
cout
<<
"金光剑!"
<<
endl
;
temb
-=
5
*
10
+
attack
[
grade
];
...
...
@@ -568,7 +575,8 @@ void lingdong()
return
;
}
}
if
(
jineng
[
i
]
&&
i
==
2
){
if
(
jineng
[
i
]
&&
i
==
2
)
{
cout
<<
"木神术--"
<<
endl
;
cout
<<
"千手顶上化佛!"
<<
endl
;
temb
-=
5
*
10
+
attack
[
grade
];
...
...
@@ -589,7 +597,8 @@ void lingdong()
return
;
}
}
if
(
jineng
[
i
]
&&
i
==
3
){
if
(
jineng
[
i
]
&&
i
==
3
)
{
cout
<<
"水神术--"
<<
endl
;
cout
<<
"水乱波!"
<<
endl
;
temb
-=
5
*
10
+
attack
[
grade
];
...
...
@@ -610,7 +619,8 @@ void lingdong()
return
;
}
}
if
(
jineng
[
i
]
&&
i
==
4
){
if
(
jineng
[
i
]
&&
i
==
4
)
{
cout
<<
"土神术--"
<<
endl
;
cout
<<
"土淹!"
<<
endl
;
temb
-=
5
*
10
+
attack
[
grade
];
...
...
@@ -631,7 +641,8 @@ void lingdong()
return
;
}
}
if
(
jineng
[
i
]
&&
i
==
5
){
if
(
jineng
[
i
]
&&
i
==
5
)
{
cout
<<
"金神术--"
<<
endl
;
cout
<<
"金光剑!"
<<
endl
;
temb
-=
5
*
10
+
attack
[
grade
];
...
...
@@ -697,99 +708,108 @@ void lingdong()
cout
<<
name
<<
"打出了"
<<
5
*
10
+
attack
[
grade
]
<<
"点伤害"
<<
endl
;
if
(
temb
<=
0
)
{
cout
<<
"你赢了"
;
int
n
=
rand
()
%
2
0
+
1
;
cout
<<
"你赢了"
<<
endl
;
int
n
=
rand
()
%
1
0
+
1
;
if
(
n
==
1
)
{
cout
<<
",你获得了碧水金睛兽一只"
;
cout
<<
",你获得了太古龙象一只"
<<
endl
;
//加坐骑的属性
}
else
{
cout
<<
",你获得了
碧水珠"
;
cout
<<
",你获得了
龙象牙"
<<
endl
;
}
jinyan
+=
(
double
)
experience
[(
int
)
x
]
/
10
;
return
;
}
}
if
(
jineng
[
i
]
&&
i
==
2
){
if
(
jineng
[
i
]
&&
i
==
2
)
{
cout
<<
"木神术--"
<<
endl
;
cout
<<
"千手顶上化佛!"
<<
endl
;
temb
-=
5
*
10
+
attack
[
grade
];
cout
<<
name
<<
"打出了"
<<
5
*
10
+
attack
[
grade
]
<<
"点伤害"
<<
endl
;
if
(
temb
<=
0
)
{
cout
<<
"你赢了"
;
int
n
=
rand
()
%
2
0
+
1
;
cout
<<
"你赢了"
<<
endl
;
int
n
=
rand
()
%
1
0
+
1
;
if
(
n
==
1
)
{
cout
<<
",你获得了碧水金睛兽一只"
;
cout
<<
",你获得了太古龙象一只"
<<
endl
;
//加坐骑的属性
}
else
{
cout
<<
",你获得了
碧水珠"
;
cout
<<
",你获得了
龙象牙"
<<
endl
;
}
jinyan
+=
(
double
)
experience
[(
int
)
x
]
/
10
;
return
;
}
}
if
(
jineng
[
i
]
&&
i
==
3
){
if
(
jineng
[
i
]
&&
i
==
3
)
{
cout
<<
"水神术--"
<<
endl
;
cout
<<
"水乱波!"
<<
endl
;
temb
-=
5
*
10
+
attack
[
grade
];
cout
<<
name
<<
"打出了"
<<
5
*
10
+
attack
[
grade
]
<<
"点伤害"
<<
endl
;
if
(
temb
<=
0
)
{
cout
<<
"你赢了"
;
int
n
=
rand
()
%
2
0
+
1
;
cout
<<
"你赢了"
<<
endl
;
int
n
=
rand
()
%
1
0
+
1
;
if
(
n
==
1
)
{
cout
<<
",你获得了碧水金睛兽一只"
;
cout
<<
",你获得了太古龙象一只"
<<
endl
;
//加坐骑的属性
}
else
{
cout
<<
",你获得了
碧水珠"
;
cout
<<
",你获得了
龙象牙"
<<
endl
;
}
jinyan
+=
(
double
)
experience
[(
int
)
x
]
/
10
;
return
;
}
}
if
(
jineng
[
i
]
&&
i
==
4
){
if
(
jineng
[
i
]
&&
i
==
4
)
{
cout
<<
"土神术--"
<<
endl
;
cout
<<
"土淹!"
<<
endl
;
temb
-=
5
*
10
+
attack
[
grade
];
cout
<<
name
<<
"打出了"
<<
5
*
10
+
attack
[
grade
]
<<
"点伤害"
<<
endl
;
if
(
temb
<=
0
)
{
cout
<<
"你赢了"
;
int
n
=
rand
()
%
2
0
+
1
;
cout
<<
"你赢了"
<<
endl
;
int
n
=
rand
()
%
1
0
+
1
;
if
(
n
==
1
)
{
cout
<<
",你获得了碧水金睛兽一只"
;
cout
<<
",你获得了太古龙象一只"
<<
endl
;
//加坐骑的属性
}
else
{
cout
<<
",你获得了
碧水珠"
;
cout
<<
",你获得了
龙象牙"
<<
endl
;
}
jinyan
+=
(
double
)
experience
[(
int
)
x
]
/
10
;
return
;
}
}
if
(
jineng
[
i
]
&&
i
==
5
){
if
(
jineng
[
i
]
&&
i
==
5
)
{
cout
<<
"金神术--"
<<
endl
;
cout
<<
"金光剑!"
<<
endl
;
temb
-=
5
*
10
+
attack
[
grade
];
cout
<<
name
<<
"打出了"
<<
5
*
10
+
attack
[
grade
]
<<
"点伤害"
<<
endl
;
if
(
temb
<=
0
)
{
cout
<<
"你赢了"
;
int
n
=
rand
()
%
2
0
+
1
;
cout
<<
"你赢了"
<<
endl
;
int
n
=
rand
()
%
1
0
+
1
;
if
(
n
==
1
)
{
cout
<<
",你获得了碧水金睛兽一只"
;
cout
<<
",你获得了太古龙象一只"
<<
endl
;
//加坐骑的属性
}
else
{
cout
<<
",你获得了
碧水珠"
;
cout
<<
",你获得了
龙象牙"
<<
endl
;
}
jinyan
+=
(
double
)
experience
[(
int
)
x
]
/
10
;
return
;
...
...
@@ -822,99 +842,108 @@ void lingdong()
cout
<<
name
<<
"打出了"
<<
5
*
10
+
attack
[
grade
]
<<
"点伤害"
<<
endl
;
if
(
temb
<=
0
)
{
cout
<<
"你赢了"
;
int
n
=
rand
()
%
2
0
+
1
;
cout
<<
"你赢了"
<<
endl
;
int
n
=
rand
()
%
1
0
+
1
;
if
(
n
==
1
)
{
cout
<<
",你获得了碧水金睛兽一只"
;
cout
<<
",你获得了太古龙象一只"
<<
endl
;
//加坐骑的属性
}
else
{
cout
<<
",你获得了
碧水珠"
;
cout
<<
",你获得了
龙象牙"
<<
endl
;
}
jinyan
+=
(
double
)
experience
[(
int
)
x
]
/
10
;
return
;
}
}
if
(
jineng
[
i
]
&&
i
==
2
){
if
(
jineng
[
i
]
&&
i
==
2
)
{
cout
<<
"木神术--"
<<
endl
;
cout
<<
"千手顶上化佛!"
<<
endl
;
temb
-=
5
*
10
+
attack
[
grade
];
cout
<<
name
<<
"打出了"
<<
5
*
10
+
attack
[
grade
]
<<
"点伤害"
<<
endl
;
if
(
temb
<=
0
)
{
cout
<<
"你赢了"
;
int
n
=
rand
()
%
2
0
+
1
;
cout
<<
"你赢了"
<<
endl
;
int
n
=
rand
()
%
1
0
+
1
;
if
(
n
==
1
)
{
cout
<<
",你获得了碧水金睛兽一只"
;
cout
<<
",你获得了太古龙象一只"
<<
endl
;
//加坐骑的属性
}
else
{
cout
<<
",你获得了
碧水珠"
;
cout
<<
",你获得了
龙象牙"
<<
endl
;
}
jinyan
+=
(
double
)
experience
[(
int
)
x
]
/
10
;
return
;
}
}
if
(
jineng
[
i
]
&&
i
==
3
){
if
(
jineng
[
i
]
&&
i
==
3
)
{
cout
<<
"水神术--"
<<
endl
;
cout
<<
"水乱波!"
<<
endl
;
temb
-=
5
*
10
+
attack
[
grade
];
cout
<<
name
<<
"打出了"
<<
5
*
10
+
attack
[
grade
]
<<
"点伤害"
<<
endl
;
if
(
temb
<=
0
)
{
cout
<<
"你赢了"
;
int
n
=
rand
()
%
2
0
+
1
;
cout
<<
"你赢了"
<<
endl
;
int
n
=
rand
()
%
1
0
+
1
;
if
(
n
==
1
)
{
cout
<<
",你获得了碧水金睛兽一只"
;
cout
<<
",你获得了太古龙象一只"
<<
endl
;
//加坐骑的属性
}
else
{
cout
<<
",你获得了
碧水珠"
;
cout
<<
",你获得了
龙象牙"
<<
endl
;
}
jinyan
+=
(
double
)
experience
[(
int
)
x
]
/
10
;
return
;
}
}
if
(
jineng
[
i
]
&&
i
==
4
){
if
(
jineng
[
i
]
&&
i
==
4
)
{
cout
<<
"土神术--"
<<
endl
;
cout
<<
"土淹!"
<<
endl
;
temb
-=
5
*
10
+
attack
[
grade
];
cout
<<
name
<<
"打出了"
<<
5
*
10
+
attack
[
grade
]
<<
"点伤害"
<<
endl
;
if
(
temb
<=
0
)
{
cout
<<
"你赢了"
;
int
n
=
rand
()
%
2
0
+
1
;
cout
<<
"你赢了"
<<
endl
;
int
n
=
rand
()
%
1
0
+
1
;
if
(
n
==
1
)
{
cout
<<
",你获得了碧水金睛兽一只"
;
cout
<<
",你获得了太古龙象一只"
<<
endl
;
//加坐骑的属性
}
else
{
cout
<<
",你获得了
碧水珠"
;
cout
<<
",你获得了
龙象牙"
<<
endl
;
}
jinyan
+=
(
double
)
experience
[(
int
)
x
]
/
10
;
return
;
}
}
if
(
jineng
[
i
]
&&
i
==
5
){
if
(
jineng
[
i
]
&&
i
==
5
)
{
cout
<<
"金神术--"
<<
endl
;
cout
<<
"金光剑!"
<<
endl
;
temb
-=
5
*
10
+
attack
[
grade
];
cout
<<
name
<<
"打出了"
<<
5
*
10
+
attack
[
grade
]
<<
"点伤害"
<<
endl
;
if
(
temb
<=
0
)
{
cout
<<
"你赢了"
;
int
n
=
rand
()
%
2
0
+
1
;
cout
<<
"你赢了"
<<
endl
;
int
n
=
rand
()
%
1
0
+
1
;
if
(
n
==
1
)
{
cout
<<
",你获得了碧水金睛兽一只"
;
cout
<<
",你获得了太古龙象一只"
<<
endl
;
//加坐骑的属性
}
else
{
cout
<<
",你获得了
碧水珠"
;
cout
<<
",你获得了
龙象牙"
<<
endl
;
}
jinyan
+=
(
double
)
experience
[(
int
)
x
]
/
10
;
return
;
...
...
@@ -1064,7 +1093,8 @@ void huo()
return
;
}
}
if
(
jineng
[
i
]
&&
i
==
2
){
if
(
jineng
[
i
]
&&
i
==
2
)
{
cout
<<
"木神术--"
<<
endl
;
cout
<<
"千手顶上化佛!"
<<
endl
;
temb
-=
5
*
10
+
attack
[
grade
];
...
...
@@ -1085,7 +1115,8 @@ void huo()
return
;
}
}
if
(
jineng
[
i
]
&&
i
==
3
){
if
(
jineng
[
i
]
&&
i
==
3
)
{
cout
<<
"水神术--"
<<
endl
;
cout
<<
"水乱波!"
<<
endl
;
temb
-=
5
*
10
+
attack
[
grade
];
...
...
@@ -1106,7 +1137,8 @@ void huo()
return
;
}
}
if
(
jineng
[
i
]
&&
i
==
4
){
if
(
jineng
[
i
]
&&
i
==
4
)
{
cout
<<
"土神术--"
<<
endl
;
cout
<<
"土淹!"
<<
endl
;
temb
-=
5
*
10
+
attack
[
grade
];
...
...
@@ -1127,7 +1159,8 @@ void huo()
return
;
}
}
if
(
jineng
[
i
]
&&
i
==
5
){
if
(
jineng
[
i
]
&&
i
==
5
)
{
cout
<<
"金神术--"
<<
endl
;
cout
<<
"金光剑!"
<<
endl
;
temb
-=
5
*
10
+
attack
[
grade
];
...
...
@@ -1189,7 +1222,8 @@ void huo()
return
;
}
}
if
(
jineng
[
i
]
&&
i
==
2
){
if
(
jineng
[
i
]
&&
i
==
2
)
{
cout
<<
"木神术--"
<<
endl
;
cout
<<
"千手顶上化佛!"
<<
endl
;
temb
-=
5
*
10
+
attack
[
grade
];
...
...
@@ -1210,7 +1244,8 @@ void huo()
return
;
}
}
if
(
jineng
[
i
]
&&
i
==
3
){
if
(
jineng
[
i
]
&&
i
==
3
)
{
cout
<<
"水神术--"
<<
endl
;
cout
<<
"水乱波!"
<<
endl
;
temb
-=
5
*
10
+
attack
[
grade
];
...
...
@@ -1231,7 +1266,8 @@ void huo()
return
;
}
}
if
(
jineng
[
i
]
&&
i
==
4
){
if
(
jineng
[
i
]
&&
i
==
4
)
{
cout
<<
"土神术--"
<<
endl
;
cout
<<
"土淹!"
<<
endl
;
temb
-=
5
*
10
+
attack
[
grade
];
...
...
@@ -1252,7 +1288,8 @@ void huo()
return
;
}
}
if
(
jineng
[
i
]
&&
i
==
5
){
if
(
jineng
[
i
]
&&
i
==
5
)
{
cout
<<
"金神术--"
<<
endl
;
cout
<<
"金光剑!"
<<
endl
;
temb
-=
5
*
10
+
attack
[
grade
];
...
...
@@ -1328,7 +1365,8 @@ void huo()
return
;
}
}
if
(
jineng
[
i
]
&&
i
==
2
){
if
(
jineng
[
i
]
&&
i
==
2
)
{
cout
<<
"木神术--"
<<
endl
;
cout
<<
"千手顶上化佛!"
<<
endl
;
temb
-=
5
*
10
+
attack
[
grade
];
...
...
@@ -1350,7 +1388,8 @@ void huo()
return
;
}
}
if
(
jineng
[
i
]
&&
i
==
3
){
if
(
jineng
[
i
]
&&
i
==
3
)
{
cout
<<
"水神术--"
<<
endl
;
cout
<<
"水乱波!"
<<
endl
;
temb
-=
5
*
10
+
attack
[
grade
];
...
...
@@ -1372,7 +1411,8 @@ void huo()
return
;
}
}
if
(
jineng
[
i
]
&&
i
==
4
){
if
(
jineng
[
i
]
&&
i
==
4
)
{
cout
<<
"土神术--"
<<
endl
;
cout
<<
"土淹!"
<<
endl
;
temb
-=
5
*
10
+
attack
[
grade
];
...
...
@@ -1394,7 +1434,8 @@ void huo()
return
;
}
}
if
(
jineng
[
i
]
&&
i
==
5
){
if
(
jineng
[
i
]
&&
i
==
5
)
{
cout
<<
"金神术--"
<<
endl
;
cout
<<
"金光剑!"
<<
endl
;
temb
-=
5
*
10
+
attack
[
grade
];
...
...
@@ -1461,7 +1502,8 @@ void huo()
return
;
}
}
if
(
jineng
[
i
]
&&
i
==
2
){
if
(
jineng
[
i
]
&&
i
==
2
)
{
cout
<<
"木神术--"
<<
endl
;
cout
<<
"千手顶上化佛!"
<<
endl
;
temb
-=
5
*
10
+
attack
[
grade
];
...
...
@@ -1483,7 +1525,8 @@ void huo()
return
;
}
}
if
(
jineng
[
i
]
&&
i
==
3
){
if
(
jineng
[
i
]
&&
i
==
3
)
{
cout
<<
"水神术--"
<<
endl
;
cout
<<
"水乱波!"
<<
endl
;
temb
-=
5
*
10
+
attack
[
grade
];
...
...
@@ -1505,7 +1548,8 @@ void huo()
return
;
}
}
if
(
jineng
[
i
]
&&
i
==
4
){
if
(
jineng
[
i
]
&&
i
==
4
)
{
cout
<<
"土神术--"
<<
endl
;
cout
<<
"土淹!"
<<
endl
;
temb
-=
5
*
10
+
attack
[
grade
];
...
...
@@ -1527,7 +1571,8 @@ void huo()
return
;
}
}
if
(
jineng
[
i
]
&&
i
==
5
){
if
(
jineng
[
i
]
&&
i
==
5
)
{
cout
<<
"金神术--"
<<
endl
;
cout
<<
"金光剑!"
<<
endl
;
temb
-=
5
*
10
+
attack
[
grade
];
...
...
@@ -1574,7 +1619,7 @@ void huo()
}
}
}
}
}
}
...
...
@@ -1746,7 +1791,8 @@ void shu()
return
;
}
}
if
(
jineng
[
i
]
&&
i
==
2
){
if
(
jineng
[
i
]
&&
i
==
2
)
{
cout
<<
"木神术--"
<<
endl
;
cout
<<
"千手顶上化佛!"
<<
endl
;
temb
-=
5
*
10
+
attack
[
grade
];
...
...
@@ -1759,7 +1805,8 @@ void shu()
return
;
}
}
if
(
jineng
[
i
]
&&
i
==
3
){
if
(
jineng
[
i
]
&&
i
==
3
)
{
cout
<<
"水神术--"
<<
endl
;
cout
<<
"水乱波!"
<<
endl
;
temb
-=
5
*
10
+
attack
[
grade
];
...
...
@@ -1772,7 +1819,8 @@ void shu()
return
;
}
}
if
(
jineng
[
i
]
&&
i
==
4
){
if
(
jineng
[
i
]
&&
i
==
4
)
{
cout
<<
"土神术--"
<<
endl
;
cout
<<
"土淹!"
<<
endl
;
temb
-=
5
*
10
+
attack
[
grade
];
...
...
@@ -1785,7 +1833,8 @@ void shu()
return
;
}
}
if
(
jineng
[
i
]
&&
i
==
5
){
if
(
jineng
[
i
]
&&
i
==
5
)
{
cout
<<
"金神术--"
<<
endl
;
cout
<<
"金光剑!"
<<
endl
;
temb
-=
5
*
10
+
attack
[
grade
];
...
...
@@ -1831,7 +1880,8 @@ void shu()
return
;
}
}
if
(
jineng
[
i
]
&&
i
==
2
){
if
(
jineng
[
i
]
&&
i
==
2
)
{
cout
<<
"木神术--"
<<
endl
;
cout
<<
"千手顶上化佛!"
<<
endl
;
temb
-=
5
*
10
+
attack
[
grade
];
...
...
@@ -1844,7 +1894,8 @@ void shu()
return
;
}
}
if
(
jineng
[
i
]
&&
i
==
3
){
if
(
jineng
[
i
]
&&
i
==
3
)
{
cout
<<
"水神术--"
<<
endl
;
cout
<<
"水乱波!"
<<
endl
;
temb
-=
5
*
10
+
attack
[
grade
];
...
...
@@ -1857,7 +1908,8 @@ void shu()
return
;
}
}
if
(
jineng
[
i
]
&&
i
==
4
){
if
(
jineng
[
i
]
&&
i
==
4
)
{
cout
<<
"土神术--"
<<
endl
;
cout
<<
"土淹!"
<<
endl
;
temb
-=
5
*
10
+
attack
[
grade
];
...
...
@@ -1870,7 +1922,8 @@ void shu()
return
;
}
}
if
(
jineng
[
i
]
&&
i
==
5
){
if
(
jineng
[
i
]
&&
i
==
5
)
{
cout
<<
"金神术--"
<<
endl
;
cout
<<
"金光剑!"
<<
endl
;
temb
-=
5
*
10
+
attack
[
grade
];
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录