Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
struct_cym
游戏编写
提交
21e6b574
游
游戏编写
项目概览
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 搜索 >>
提交
21e6b574
编写于
11月 21, 2021
作者:
struct_cym
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Update game.cpp
上级
b8ef7a83
变更
1
显示空白变更内容
内联
并排
Showing
1 changed file
with
874 addition
and
148 deletion
+874
-148
game.cpp
game.cpp
+874
-148
未找到文件。
game.cpp
浏览文件 @
21e6b574
...
...
@@ -124,7 +124,7 @@ int main()
{
cout
<<
"未成年人, 禁止进入"
<<
endl
;
return
0
;
}
}
start
();
pretreatment
();
cout
<<
endl
<<
"请输入你所要的属性"
<<
endl
;
...
...
@@ -185,10 +185,6 @@ void pretreatment()
defense
[
num
]
+=
i
/
100
;
num
++
;
}
for
(
int
i
=
1
;
i
<=
100
;
i
++
)
{
bags
[
i
-
1
].
cnn
=
i
;
}
}
void
board
()
...
...
@@ -284,9 +280,10 @@ 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
]
<<
" "
;
}
}
cout
<<
endl
;
}
cout
<<
endl
;
...
...
@@ -354,7 +351,7 @@ int main12()
{
grade
++
;
}
if
(
jinyan
>=
experience
[
grade
]
)
while
(
jinyan
>=
experience
[
grade
]
&&
grade
<
100
)
{
grade
++
;
jinyan
-=
experience
[
grade
-
1
];
...
...
@@ -447,57 +444,53 @@ void lingdong()
return
;
}
}
}
int
sum
=
0
;
while
(
true
)
if
(
jineng
[
i
]
&&
i
==
2
){
cout
<<
"木神术--"
<<
endl
;
cout
<<
"千手顶上化佛!"
<<
endl
;
temb
-=
5
*
10
+
attack
[
grade
];
cout
<<
name
<<
"打出了"
<<
5
*
10
+
attack
[
grade
]
<<
"点伤害"
<<
endl
;
if
(
temb
<=
0
)
{
int
y1
=
boss_shanghai
(
x
);
tema
-=
y1
+
jianshang
(
defense
[
grade
]);
cout
<<
"碧水金睛兽打出了"
<<
y1
<<
"点伤害"
<<
endl
;
Sleep
(
1
);
cout
<<
name
<<
"还剩"
<<
tema
<<
"滴血"
<<
endl
;
Sleep
(
1
);
if
(
tema
<=
0
)
cout
<<
"你赢了"
;
int
n
=
rand
()
%
20
+
1
;
if
(
n
==
1
)
{
cout
<<
"你落败了,等级-1"
<<
endl
;
grade
--
;
return
;
cout
<<
",你获得了碧水金睛兽一只"
;
}
for
(
int
i
=
1
;
i
<=
5
;
i
++
)
{
if
(
jineng
[
i
]
&&
i
==
1
&&
sum
==
5
)
else
{
cout
<<
"火神术--"
<<
endl
;
cout
<<
"焚毁!"
<<
endl
;
cout
<<
",你获得了碧水珠"
;
}
jinyan
+=
(
double
)
experience
[(
int
)
x
]
/
10
;
return
;
}
}
if
(
jineng
[
i
]
&&
i
==
3
){
cout
<<
"水神术--"
<<
endl
;
cout
<<
"水乱波!"
<<
endl
;
temb
-=
5
*
10
+
attack
[
grade
];
cout
<<
name
<<
"打出了"
<<
5
*
10
+
attack
[
grade
]
<<
"点伤害"
<<
endl
;
cout
<<
"碧水金睛兽还剩"
<<
temb
<<
"滴血"
<<
endl
;
if
(
temb
<=
0
)
{
cout
<<
"你赢了"
<<
endl
;
int
n
=
rand
()
%
1
0
+
1
;
cout
<<
"你赢了"
;
int
n
=
rand
()
%
2
0
+
1
;
if
(
n
==
1
)
{
cout
<<
",你获得了碧水金睛兽一只"
<<
endl
;
//加坐骑的属性
cout
<<
",你获得了碧水金睛兽一只"
;
}
else
{
cout
<<
",你获得了 碧水珠"
<<
endl
;
cout
<<
",你获得了碧水珠"
;
}
jinyan
+=
(
double
)
experience
[(
int
)
x
]
/
10
;
return
;
}
}
}
int
y2
=
shanghai
(
attack
[
grade
]);
temb
-=
y2
;
temb
+=
jianshang
(
temf
);
cout
<<
name
<<
"打出了"
<<
y2
<<
"点伤害"
<<
endl
;
Sleep
(
1
);
cout
<<
"碧水金睛兽还剩"
<<
temb
<<
"滴血"
;
Sleep
(
1
);
sum
++
;
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
<<
"你赢了"
;
...
...
@@ -514,37 +507,22 @@ void lingdong()
return
;
}
}
}
else
if
(
savage
==
1
)
{
double
x
=
rand
()
%
(
100
-
80
+
1
)
+
80
;
cout
<<
"太古龙象"
<<
" "
<<
"等级:"
<<
x
<<
endl
;
int
tema
=
blood
[
grade
];
int
temb
=
blood
[(
int
)
x
];
double
temg
=
attack
[
grade
]
*
1.5
;
double
temf
=
defense
[
grade
]
*
1.5
;
cout
<<
name
<<
"开始释放技能"
;
for
(
int
i
=
1
;
i
<=
5
;
i
++
)
{
if
(
jineng
[
i
]
&&
i
==
1
)
{
cout
<<
"火神术--"
<<
endl
;
cout
<<
"焚毁!"
<<
endl
;
if
(
jineng
[
i
]
&&
i
==
5
){
cout
<<
"金神术--"
<<
endl
;
cout
<<
"金光剑!"
<<
endl
;
temb
-=
5
*
10
+
attack
[
grade
];
cout
<<
name
<<
"打出了"
<<
5
*
10
+
attack
[
grade
]
<<
"点伤害"
<<
endl
;
cout
<<
"太古龙象还剩"
<<
temb
<<
"滴血"
<<
endl
;
if
(
temb
<=
0
)
{
cout
<<
"你赢了"
<<
endl
;
int
n
=
rand
()
%
1
0
+
1
;
cout
<<
"你赢了"
;
int
n
=
rand
()
%
2
0
+
1
;
if
(
n
==
1
)
{
cout
<<
",你获得了太古龙象一只"
<<
endl
;
//加坐骑的属性
cout
<<
",你获得了碧水金睛兽一只"
;
}
else
{
cout
<<
",你获得了
龙象牙"
<<
endl
;
cout
<<
",你获得了
碧水珠"
;
}
jinyan
+=
(
double
)
experience
[(
int
)
x
]
/
10
;
return
;
...
...
@@ -555,8 +533,8 @@ void lingdong()
while
(
true
)
{
int
y1
=
boss_shanghai
(
x
);
tema
-=
y1
+
jianshang
(
(
int
)
defense
[
grade
]);
cout
<<
"
太古龙象
打出了"
<<
y1
<<
"点伤害"
<<
endl
;
tema
-=
y1
+
jianshang
(
defense
[
grade
]);
cout
<<
"
碧水金睛兽
打出了"
<<
y1
<<
"点伤害"
<<
endl
;
Sleep
(
1
);
cout
<<
name
<<
"还剩"
<<
tema
<<
"滴血"
<<
endl
;
Sleep
(
1
);
...
...
@@ -566,181 +544,880 @@ void lingdong()
grade
--
;
return
;
}
cout
<<
endl
;
for
(
int
i
=
1
;
i
<=
5
;
i
++
)
{
if
(
jineng
[
i
]
&&
i
==
1
&&
sum
==
5
)
if
(
jineng
[
i
]
&&
i
==
1
)
{
cout
<<
"火神术--"
<<
endl
;
cout
<<
"焚毁!"
<<
endl
;
temb
-=
5
*
10
+
attack
[
grade
];
cout
<<
name
<<
"打出了"
<<
5
*
10
+
attack
[
grade
]
<<
"点伤害"
<<
endl
;
cout
<<
"太古龙象还剩"
<<
temb
<<
"滴血"
<<
endl
;
if
(
temb
<=
0
)
{
cout
<<
"你赢了"
<<
endl
;
int
n
=
rand
()
%
1
0
+
1
;
cout
<<
"你赢了"
;
int
n
=
rand
()
%
2
0
+
1
;
if
(
n
==
1
)
{
cout
<<
",你获得了太古龙象一只"
<<
endl
;
//加坐骑的属性
cout
<<
",你获得了碧水金睛兽一只"
;
}
else
{
cout
<<
",你获得了
龙象牙"
<<
endl
;
cout
<<
",你获得了
碧水珠"
;
}
jinyan
+=
(
double
)
experience
[(
int
)
x
]
/
10
;
return
;
}
}
}
int
y2
=
shanghai
((
int
)
attack
[
grade
]);
temb
-=
y2
+
jianshang
(
temf
);
cout
<<
name
<<
"打出了"
<<
y2
<<
"点伤害"
<<
endl
;
Sleep
(
1
);
cout
<<
"太古龙象还剩"
<<
temb
<<
"滴血"
<<
endl
;
Sleep
(
1
);
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
<<
"你赢了"
<<
endl
;
int
n
=
rand
()
%
1
0
+
1
;
cout
<<
"你赢了"
;
int
n
=
rand
()
%
2
0
+
1
;
if
(
n
==
1
)
{
cout
<<
",你获得了太古龙象一只"
<<
endl
;
//加坐骑的属性
cout
<<
",你获得了碧水金睛兽一只"
;
}
else
{
cout
<<
",你获得了 龙象牙"
<<
endl
;
cout
<<
",你获得了碧水珠"
;
}
jinyan
+=
(
double
)
experience
[(
int
)
x
]
/
10
;
return
;
}
cout
<<
endl
;
sum
++
;
}
}
}
else
if
(
option
==
2
)
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
<<
"请输入要泡的时间
"
;
cin
>>
times
;
for
(
int
i
=
1
;
i
<=
times
;
i
++
)
cout
<<
"你赢了
"
;
int
n
=
rand
()
%
20
+
1
;
if
(
n
==
1
)
{
cout
<<
i
<<
" "
;
Sleep
(
1
);
jinyan
++
;
}
cout
<<
"你加了"
<<
times
<<
"点经验"
;
Sleep
(
1
);
cout
<<
",你获得了碧水金睛兽一只"
;
}
else
{
cout
<<
",你获得了碧水珠"
;
}
jinyan
+=
(
double
)
experience
[(
int
)
x
]
/
10
;
return
;
}
}
void
equips
()
{
cout
<<
" 请问你要合成以下哪些装备呢? "
<<
endl
;
}
void
equip_bag
()
{
cout
<<
" 暂时为空 "
;
}
void
skill_board
()
{
cout
<<
" 暂时为空 "
;
}
void
zhanchang
()
{
cout
<<
" 删除 "
;
}
void
huo
()
{
cout
<<
"流火之地"
<<
endl
;
cout
<<
"这里是火神祝融坐化的地方"
<<
endl
;
cout
<<
"1.下矿 2.探险"
;
cin
>>
option
;
int
exits1
=
0
;
if
(
option
==
1
)
}
if
(
jineng
[
i
]
&&
i
==
4
){
cout
<<
"土神术--"
<<
endl
;
cout
<<
"土淹!"
<<
endl
;
temb
-=
5
*
10
+
attack
[
grade
];
cout
<<
name
<<
"打出了"
<<
5
*
10
+
attack
[
grade
]
<<
"点伤害"
<<
endl
;
if
(
temb
<=
0
)
{
while
(
!
exits1
)
cout
<<
"你赢了"
;
int
n
=
rand
()
%
20
+
1
;
if
(
n
==
1
)
{
cout
<<
"挖矿中..."
<<
endl
;
Sleep
(
3000
);
int
y
=
rand
()
%
3
+
1
;
if
(
y
==
1
)
cout
<<
",你获得了碧水金睛兽一只"
;
}
else
{
cout
<<
"恭喜你获得了 炎溶石 "
<<
endl
;
cout
<<
",你获得了碧水珠"
;
}
y
=
rand
()
%
50
+
1
;
if
(
y
==
5
)
jinyan
+=
(
double
)
experience
[(
int
)
x
]
/
10
;
return
;
}
}
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
<<
"恭喜你找到了 火神传承 "
<<
endl
;
grade
++
;
if
(
attribute
[
4
]
==
4
)
cout
<<
"你赢了"
;
int
n
=
rand
()
%
20
+
1
;
if
(
n
==
1
)
{
cout
<<
"火神真迹 技能:焚毁"
<<
endl
;
jineng
[
1
]
=
1
;
}
cout
<<
",你获得了碧水金睛兽一只"
;
}
cout
<<
"恭喜你获得了 岩溶石 "
<<
endl
;
cout
<<
"1.继续 2.离开"
<<
endl
;
cin
>>
option
;
if
(
option
==
2
)
else
{
exits1
=
1
;
cout
<<
",你获得了碧水珠"
;
}
jinyan
+=
(
double
)
experience
[(
int
)
x
]
/
10
;
return
;
}
}
}
int
y2
=
shanghai
(
attack
[
grade
]);
temb
-=
y2
;
temb
+=
jianshang
(
temf
);
cout
<<
name
<<
"打出了"
<<
y2
<<
"点伤害"
<<
endl
;
Sleep
(
1
);
cout
<<
"碧水金睛兽还剩"
<<
temb
<<
"滴血"
;
Sleep
(
1
);
sum
++
;
if
(
temb
<=
0
)
{
cout
<<
"你赢了"
;
int
n
=
rand
()
%
20
+
1
;
if
(
n
==
1
)
{
cout
<<
",你获得了碧水金睛兽一只"
;
}
else
{
cout
<<
"你遇到了---"
<<
endl
;
int
n
=
rand
()
%
1
;
if
(
n
==
0
)
cout
<<
",你获得了碧水珠"
;
}
jinyan
+=
(
double
)
experience
[(
int
)
x
]
/
10
;
return
;
}
}
}
else
if
(
savage
==
1
)
{
double
x
=
rand
()
%
1
0
;
cout
<<
"
熔岩虫
"
<<
" "
<<
"等级:"
<<
x
<<
endl
;
double
x
=
rand
()
%
(
100
-
80
+
1
)
+
8
0
;
cout
<<
"
太古龙象
"
<<
" "
<<
"等级:"
<<
x
<<
endl
;
int
tema
=
blood
[
grade
];
int
temb
=
blood
[(
int
)
x
];
double
temg
=
5
;
double
temf
=
0
;
double
temg
=
attack
[
grade
]
*
1.
5
;
double
temf
=
defense
[
grade
]
*
1.5
;
cout
<<
name
<<
"开始释放技能"
;
Sleep
(
1
);
for
(
int
i
=
1
;
i
<=
5
;
i
++
)
{
if
(
jineng
[
i
]
&&
i
==
1
)
{
cout
<<
"火神术--"
<<
endl
;
Sleep
(
1
);
cout
<<
"焚毁!"
<<
endl
;
Sleep
(
1
);
temb
-=
5
*
10
+
attack
[
grade
];
cout
<<
name
<<
"打出了"
<<
5
*
10
+
attack
[
grade
]
<<
"点伤害"
<<
endl
;
Sleep
(
1
);
cout
<<
"熔岩虫还剩"
<<
temb
<<
"滴血"
<<
endl
;
Sleep
(
1
);
if
(
temb
<=
0
)
{
cout
<<
"你赢了"
;
int
n
=
rand
()
%
20
+
1
;
if
(
n
==
1
)
{
cout
<<
",你获得了碧水金睛兽一只"
;
}
else
{
cout
<<
",你获得了碧水珠"
;
}
jinyan
+=
(
double
)
experience
[(
int
)
x
]
/
10
;
return
;
}
}
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
()
%
20
+
1
;
if
(
n
==
1
)
{
cout
<<
",你获得了碧水金睛兽一只"
;
}
else
{
cout
<<
",你获得了碧水珠"
;
}
jinyan
+=
(
double
)
experience
[(
int
)
x
]
/
10
;
return
;
}
}
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
()
%
20
+
1
;
if
(
n
==
1
)
{
cout
<<
",你获得了碧水金睛兽一只"
;
}
else
{
cout
<<
",你获得了碧水珠"
;
}
jinyan
+=
(
double
)
experience
[(
int
)
x
]
/
10
;
return
;
}
}
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
()
%
20
+
1
;
if
(
n
==
1
)
{
cout
<<
",你获得了碧水金睛兽一只"
;
}
else
{
cout
<<
",你获得了碧水珠"
;
}
jinyan
+=
(
double
)
experience
[(
int
)
x
]
/
10
;
return
;
}
}
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
()
%
20
+
1
;
if
(
n
==
1
)
{
cout
<<
",你获得了碧水金睛兽一只"
;
}
else
{
cout
<<
",你获得了碧水珠"
;
}
jinyan
+=
(
double
)
experience
[(
int
)
x
]
/
10
;
return
;
}
}
}
int
sum
=
0
;
while
(
true
)
{
int
y1
=
boss_shanghai
(
x
);
tema
-=
y1
+
jianshang
((
int
)
defense
[
grade
]);
cout
<<
"太古龙象打出了"
<<
y1
<<
"点伤害"
<<
endl
;
Sleep
(
1
);
cout
<<
name
<<
"还剩"
<<
tema
<<
"滴血"
<<
endl
;
Sleep
(
1
);
if
(
tema
<=
0
)
{
cout
<<
"你落败了,等级-1"
<<
endl
;
grade
--
;
return
;
}
cout
<<
endl
;
for
(
int
i
=
1
;
i
<=
5
;
i
++
)
{
if
(
jineng
[
i
]
&&
i
==
1
)
{
cout
<<
"火神术--"
<<
endl
;
cout
<<
"焚毁!"
<<
endl
;
temb
-=
5
*
10
+
attack
[
grade
];
cout
<<
name
<<
"打出了"
<<
5
*
10
+
attack
[
grade
]
<<
"点伤害"
<<
endl
;
if
(
temb
<=
0
)
{
cout
<<
"你赢了"
;
int
n
=
rand
()
%
20
+
1
;
if
(
n
==
1
)
{
cout
<<
",你获得了碧水金睛兽一只"
;
}
else
{
cout
<<
",你获得了碧水珠"
;
}
jinyan
+=
(
double
)
experience
[(
int
)
x
]
/
10
;
return
;
}
}
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
()
%
20
+
1
;
if
(
n
==
1
)
{
cout
<<
",你获得了碧水金睛兽一只"
;
}
else
{
cout
<<
",你获得了碧水珠"
;
}
jinyan
+=
(
double
)
experience
[(
int
)
x
]
/
10
;
return
;
}
}
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
()
%
20
+
1
;
if
(
n
==
1
)
{
cout
<<
",你获得了碧水金睛兽一只"
;
}
else
{
cout
<<
",你获得了碧水珠"
;
}
jinyan
+=
(
double
)
experience
[(
int
)
x
]
/
10
;
return
;
}
}
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
()
%
20
+
1
;
if
(
n
==
1
)
{
cout
<<
",你获得了碧水金睛兽一只"
;
}
else
{
cout
<<
",你获得了碧水珠"
;
}
jinyan
+=
(
double
)
experience
[(
int
)
x
]
/
10
;
return
;
}
}
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
()
%
20
+
1
;
if
(
n
==
1
)
{
cout
<<
",你获得了碧水金睛兽一只"
;
}
else
{
cout
<<
",你获得了碧水珠"
;
}
jinyan
+=
(
double
)
experience
[(
int
)
x
]
/
10
;
return
;
}
}
}
int
y2
=
shanghai
((
int
)
attack
[
grade
]);
temb
-=
y2
+
jianshang
(
temf
);
cout
<<
name
<<
"打出了"
<<
y2
<<
"点伤害"
<<
endl
;
Sleep
(
1
);
cout
<<
"太古龙象还剩"
<<
temb
<<
"滴血"
<<
endl
;
Sleep
(
1
);
if
(
temb
<=
0
)
{
cout
<<
"你赢了"
<<
endl
;
int
n
=
rand
()
%
10
+
1
;
if
(
n
==
1
)
{
cout
<<
",你获得了太古龙象一只"
<<
endl
;
//加坐骑的属性
}
else
{
cout
<<
",你获得了 龙象牙"
<<
endl
;
}
jinyan
+=
(
double
)
experience
[(
int
)
x
]
/
10
;
return
;
}
cout
<<
endl
;
sum
++
;
}
}
}
else
if
(
option
==
2
)
{
cout
<<
"请输入要泡的时间"
;
cin
>>
times
;
for
(
int
i
=
1
;
i
<=
times
;
i
++
)
{
cout
<<
i
<<
" "
;
// Sleep(1);
jinyan
++
;
}
cout
<<
"你加了"
<<
times
<<
"点经验"
;
// Sleep(1);
}
else
{
return
;
}
}
void
equips
()
{
cout
<<
" 请问你要合成以下哪些装备呢? "
<<
endl
;
}
void
equip_bag
()
{
cout
<<
" 暂时为空 "
;
}
void
skill_board
()
{
cout
<<
" 暂时为空 "
;
}
void
zhanchang
()
{
cout
<<
" 删除 "
;
}
void
huo
()
{
cout
<<
"流火之地"
<<
endl
;
cout
<<
"这里是火神祝融坐化的地方"
<<
endl
;
cout
<<
"1.下矿 2.探险"
;
cin
>>
option
;
int
exits1
=
0
;
if
(
option
==
1
)
{
while
(
!
exits1
)
{
cout
<<
"挖矿中..."
<<
endl
;
Sleep
(
3000
);
int
y
=
rand
()
%
3
+
1
;
if
(
y
==
1
)
{
cout
<<
"恭喜你获得了 炎溶石 "
<<
endl
;
}
y
=
rand
()
%
50
+
1
;
if
(
y
==
5
)
{
cout
<<
"恭喜你找到了 火神传承 "
<<
endl
;
grade
++
;
if
(
attribute
[
4
]
==
4
)
{
cout
<<
"火神真迹 技能:焚毁"
<<
endl
;
jineng
[
1
]
=
1
;
}
}
cout
<<
"恭喜你获得了 岩溶石 "
<<
endl
;
cout
<<
"1.继续 2.离开"
<<
endl
;
cin
>>
option
;
if
(
option
==
2
)
{
exits1
=
1
;
}
}
}
else
{
cout
<<
"你遇到了---"
<<
endl
;
int
n
=
rand
()
%
1
;
if
(
n
==
0
)
{
double
x
=
rand
()
%
10
;
cout
<<
"熔岩虫"
<<
" "
<<
"等级:"
<<
x
<<
endl
;
int
tema
=
blood
[
grade
];
int
temb
=
blood
[(
int
)
x
];
double
temg
=
5
;
double
temf
=
0
;
cout
<<
name
<<
"开始释放技能"
;
Sleep
(
1
);
for
(
int
i
=
1
;
i
<=
5
;
i
++
)
{
if
(
jineng
[
i
]
&&
i
==
1
)
{
cout
<<
"火神术--"
<<
endl
;
cout
<<
"焚毁!"
<<
endl
;
temb
-=
5
*
10
+
attack
[
grade
];
cout
<<
name
<<
"打出了"
<<
5
*
10
+
attack
[
grade
]
<<
"点伤害"
<<
endl
;
if
(
temb
<=
0
)
{
cout
<<
"你赢了"
;
int
n
=
rand
()
%
20
+
1
;
if
(
n
==
1
)
{
cout
<<
",你获得了熔岩虫一只"
;
}
else
{
cout
<<
",你获得了熔岩宝石"
;
}
jinyan
+=
(
double
)
experience
[(
int
)
x
]
/
10
;
return
;
}
}
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
()
%
20
+
1
;
if
(
n
==
1
)
{
cout
<<
",你获得了熔岩虫一只"
;
}
else
{
cout
<<
",你获得了熔岩宝石"
;
}
jinyan
+=
(
double
)
experience
[(
int
)
x
]
/
10
;
return
;
}
}
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
()
%
20
+
1
;
if
(
n
==
1
)
{
cout
<<
",你获得了熔岩虫一只"
;
}
else
{
cout
<<
",你获得了熔岩宝石"
;
}
jinyan
+=
(
double
)
experience
[(
int
)
x
]
/
10
;
return
;
}
}
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
()
%
20
+
1
;
if
(
n
==
1
)
{
cout
<<
",你获得了熔岩虫一只"
;
}
else
{
cout
<<
",你获得了熔岩宝石"
;
}
jinyan
+=
(
double
)
experience
[(
int
)
x
]
/
10
;
return
;
}
}
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
()
%
20
+
1
;
if
(
n
==
1
)
{
cout
<<
",你获得了熔岩虫一只"
;
}
else
{
cout
<<
",你获得了熔岩宝石"
;
}
jinyan
+=
(
double
)
experience
[(
int
)
x
]
/
10
;
return
;
}
}
}
int
sum
=
0
;
while
(
true
)
{
int
y1
=
shanghai
(
x
);
tema
-=
y1
+
jianshang
((
int
)
defense
[
grade
]);
cout
<<
"熔岩虫打出了"
<<
y1
<<
"点伤害"
<<
endl
;
Sleep
(
1
);
cout
<<
name
<<
"还剩"
<<
tema
<<
"滴血"
<<
endl
;
Sleep
(
1
);
if
(
tema
<=
0
)
{
cout
<<
"你落败了,等级-1"
<<
endl
;
grade
--
;
return
;
}
cout
<<
endl
;
for
(
int
i
=
1
;
i
<=
5
;
i
++
)
{
if
(
jineng
[
i
]
&&
i
==
1
)
{
cout
<<
"火神术--"
<<
endl
;
cout
<<
"焚毁!"
<<
endl
;
temb
-=
5
*
10
+
attack
[
grade
];
cout
<<
name
<<
"打出了"
<<
5
*
10
+
attack
[
grade
]
<<
"点伤害"
<<
endl
;
if
(
temb
<=
0
)
{
cout
<<
"你赢了"
;
int
n
=
rand
()
%
20
+
1
;
if
(
n
==
1
)
{
cout
<<
",你获得了熔岩虫一只"
;
}
else
{
cout
<<
",你获得了熔岩宝石"
;
}
jinyan
+=
(
double
)
experience
[(
int
)
x
]
/
10
;
return
;
}
}
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
()
%
20
+
1
;
if
(
n
==
1
)
{
cout
<<
",你获得了熔岩虫一只"
;
}
else
{
cout
<<
",你获得了熔岩宝石"
;
}
jinyan
+=
(
double
)
experience
[(
int
)
x
]
/
10
;
return
;
}
}
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
()
%
20
+
1
;
if
(
n
==
1
)
{
cout
<<
",你获得了熔岩虫一只"
;
}
else
{
cout
<<
",你获得了熔岩宝石"
;
}
jinyan
+=
(
double
)
experience
[(
int
)
x
]
/
10
;
return
;
}
}
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
()
%
20
+
1
;
if
(
n
==
1
)
{
cout
<<
",你获得了熔岩虫一只"
;
}
else
{
cout
<<
",你获得了熔岩宝石"
;
}
jinyan
+=
(
double
)
experience
[(
int
)
x
]
/
10
;
return
;
}
}
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
()
%
20
+
1
;
if
(
n
==
1
)
{
cout
<<
",你获得了熔岩虫一只"
;
}
else
{
cout
<<
",你获得了熔岩宝石"
;
}
jinyan
+=
(
double
)
experience
[(
int
)
x
]
/
10
;
return
;
}
}
}
int
y2
=
shanghai
((
int
)
attack
[
grade
]);
temb
-=
y2
+
jianshang
(
temf
);
cout
<<
name
<<
"打出了"
<<
y2
<<
"点伤害"
<<
endl
;
Sleep
(
1
);
cout
<<
"熔岩虫还剩"
<<
temb
<<
"滴血"
<<
endl
;
Sleep
(
1
);
sum
++
;
if
(
temb
<=
0
)
{
cout
<<
"你赢了"
<<
endl
;
cout
<<
"你获得了 熔岩宝石 "
<<
endl
;
cout
<<
"你获得了 熔岩宝石"
;
jinyan
+=
(
double
)
experience
[(
int
)
x
]
/
10
;
return
;
}
cout
<<
endl
;
}
}
else
if
(
n
==
1
)
{
int
op2
=
rand
()
%
3
;
if
(
op2
==
0
||
op2
==
1
)
{
double
x
=
rand
()
%
60
+
30
;
cout
<<
"熔岩地龙"
<<
" "
<<
"等级:"
<<
x
<<
endl
;
int
tema
=
blood
[
grade
];
int
temb
=
blood
[(
int
)
x
];
double
temg
=
5
;
double
temf
=
1
;
cout
<<
name
<<
"开始释放技能"
;
for
(
int
i
=
1
;
i
<=
5
;
i
++
)
{
if
(
jineng
[
i
]
&&
i
==
1
)
{
cout
<<
"火神术--"
<<
endl
;
cout
<<
"焚毁!"
<<
endl
;
temb
-=
5
*
10
+
attack
[
grade
];
cout
<<
name
<<
"打出了"
<<
5
*
10
+
attack
[
grade
]
<<
"点伤害"
<<
endl
;
if
(
temb
<=
0
)
{
cout
<<
"你赢了"
;
int
n
=
rand
()
%
20
+
1
;
if
(
n
==
1
)
{
cout
<<
",你获得了熔岩地龙一只"
;
}
else
{
cout
<<
",你获得了熔岩宝石"
;
}
jinyan
+=
(
double
)
experience
[(
int
)
x
]
/
10
;
return
;
}
}
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
()
%
20
+
1
;
if
(
n
==
1
)
{
cout
<<
",你获得了熔岩地龙一只"
;
}
else
{
cout
<<
",你获得了熔岩宝石"
;
}
jinyan
+=
(
double
)
experience
[(
int
)
x
]
/
10
;
return
;
}
}
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
()
%
20
+
1
;
if
(
n
==
1
)
{
cout
<<
",你获得了熔岩地龙一只"
;
}
else
{
cout
<<
",你获得了熔岩宝石"
;
}
jinyan
+=
(
double
)
experience
[(
int
)
x
]
/
10
;
return
;
}
}
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
()
%
20
+
1
;
if
(
n
==
1
)
{
cout
<<
",你获得了一只"
;
}
else
{
cout
<<
",你获得了碧水珠"
;
}
jinyan
+=
(
double
)
experience
[(
int
)
x
]
/
10
;
return
;
}
}
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
()
%
20
+
1
;
if
(
n
==
1
)
{
cout
<<
",你获得了碧水金睛兽一只"
;
}
else
{
cout
<<
",你获得了碧水珠"
;
}
jinyan
+=
(
double
)
experience
[(
int
)
x
]
/
10
;
return
;
}
}
}
int
sum
=
0
;
while
(
true
)
{
int
sum
=
0
;
int
y1
=
shanghai
(
x
);
tema
-=
y1
+
jianshang
((
int
)
defense
[
grade
]);
cout
<<
"熔岩虫
打出了"
<<
y1
<<
"点伤害"
<<
endl
;
cout
<<
"熔岩地龙
打出了"
<<
y1
<<
"点伤害"
<<
endl
;
Sleep
(
1
);
cout
<<
name
<<
"还剩"
<<
tema
<<
"滴血"
<<
endl
;
Sleep
(
1
);
...
...
@@ -751,122 +1428,111 @@ void huo()
return
;
}
cout
<<
endl
;
int
y2
=
shanghai
((
int
)
attack
[
grade
]);
temb
-=
y2
+
jianshang
(
temf
);
for
(
int
i
=
1
;
i
<=
5
;
i
++
)
{
if
(
jineng
[
i
]
&&
i
==
1
&&
sum
==
5
)
if
(
jineng
[
i
]
&&
i
==
1
)
{
cout
<<
"火神术--"
<<
endl
;
cout
<<
"焚毁!"
<<
endl
;
temb
-=
5
*
10
+
attack
[
grade
];
cout
<<
name
<<
"打出了"
<<
5
*
10
+
attack
[
grade
]
<<
"点伤害"
<<
endl
;
cout
<<
"熔岩虫还剩"
<<
temb
<<
"滴血"
<<
endl
;
if
(
temb
<=
0
)
{
cout
<<
"你赢了"
<<
endl
;
cout
<<
"恭喜获鍀熔岩宝石"
;
cout
<<
"你赢了"
;
int
n
=
rand
()
%
20
+
1
;
if
(
n
==
1
)
{
cout
<<
",你获得了碧水金睛兽一只"
;
}
else
{
cout
<<
",你获得了碧水珠"
;
}
jinyan
+=
(
double
)
experience
[(
int
)
x
]
/
10
;
return
;
}
}
}
int
y2
=
shanghai
((
int
)
attack
[
grade
]);
temb
-=
y2
+
jianshang
(
temf
);
cout
<<
name
<<
"打出了"
<<
y2
<<
"点伤害"
<<
endl
;
Sleep
(
1
);
cout
<<
"熔岩虫还剩"
<<
temb
<<
"滴血"
<<
endl
;
Sleep
(
1
);
sum
++
;
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
<<
"你赢了"
<<
endl
;
cout
<<
"你获得了 熔岩宝石"
;
cout
<<
"你赢了"
;
int
n
=
rand
()
%
20
+
1
;
if
(
n
==
1
)
{
cout
<<
",你获得了碧水金睛兽一只"
;
}
else
{
cout
<<
",你获得了碧水珠"
;
}
jinyan
+=
(
double
)
experience
[(
int
)
x
]
/
10
;
return
;
}
cout
<<
endl
;
}
}
else
if
(
n
==
1
)
{
int
op2
=
rand
()
%
3
;
if
(
op2
==
0
||
op2
==
1
)
{
double
x
=
rand
()
%
60
+
30
;
cout
<<
"熔岩地龙"
<<
" "
<<
"等级:"
<<
x
<<
endl
;
int
tema
=
blood
[
grade
];
int
temb
=
blood
[(
int
)
x
];
double
temg
=
5
;
double
temf
=
1
;
cout
<<
name
<<
"开始释放技能"
;
for
(
int
i
=
1
;
i
<=
5
;
i
++
)
{
if
(
jineng
[
i
]
&&
i
==
1
)
{
cout
<<
"火神术--"
<<
endl
;
Sleep
(
1
);
cout
<<
"焚毁!"
<<
endl
;
Sleep
(
1
);
if
(
jineng
[
i
]
&&
i
==
3
){
cout
<<
"水神术--"
<<
endl
;
cout
<<
"水乱波!"
<<
endl
;
temb
-=
5
*
10
+
attack
[
grade
];
cout
<<
name
<<
"打出了"
<<
5
*
10
+
attack
[
grade
]
<<
"点伤害"
<<
endl
;
Sleep
(
1
);
cout
<<
"熔岩地龙还剩"
<<
temb
<<
"滴血"
<<
endl
;
Sleep
(
1
);
if
(
temb
<=
0
)
{
cout
<<
"你赢了"
<<
endl
;
int
n
=
rand
()
%
1
0
+
1
;
cout
<<
"你赢了"
;
int
n
=
rand
()
%
2
0
+
1
;
if
(
n
==
1
)
{
cout
<<
",你获得了 地龙之心 "
<<
endl
;
cout
<<
",你获得了碧水金睛兽一只"
;
}
else
{
cout
<<
",你获得了 熔炎宝石"
<<
endl
;
cout
<<
",你获得了碧水珠"
;
}
jinyan
+=
(
double
)
experience
[(
int
)
x
]
/
10
;
return
;
}
}
}
while
(
true
)
if
(
jineng
[
i
]
&&
i
==
4
){
cout
<<
"土神术--"
<<
endl
;
cout
<<
"土淹!"
<<
endl
;
temb
-=
5
*
10
+
attack
[
grade
];
cout
<<
name
<<
"打出了"
<<
5
*
10
+
attack
[
grade
]
<<
"点伤害"
<<
endl
;
if
(
temb
<=
0
)
{
int
sum
=
0
;
int
y1
=
shanghai
(
x
);
tema
-=
y1
+
jianshang
((
int
)
defense
[
grade
]);
cout
<<
"熔岩地龙打出了"
<<
y1
<<
"点伤害"
<<
endl
;
Sleep
(
1
);
cout
<<
name
<<
"还剩"
<<
tema
<<
"滴血"
<<
endl
;
Sleep
(
1
);
if
(
tema
<=
0
)
cout
<<
"你赢了"
;
int
n
=
rand
()
%
20
+
1
;
if
(
n
==
1
)
{
cout
<<
"你落败了,等级-1"
<<
endl
;
grade
--
;
return
;
cout
<<
",你获得了碧水金睛兽一只"
;
}
cout
<<
endl
;
int
y2
=
shanghai
((
int
)
attack
[
grade
]);
temb
-=
y2
+
jianshang
(
temf
);
for
(
int
i
=
1
;
i
<=
5
;
i
++
)
{
if
(
jineng
[
i
]
&&
i
==
1
&&
sum
==
5
)
else
{
cout
<<
"火神术--"
<<
endl
;
cout
<<
"焚毁!"
<<
endl
;
cout
<<
",你获得了碧水珠"
;
}
jinyan
+=
(
double
)
experience
[(
int
)
x
]
/
10
;
return
;
}
}
if
(
jineng
[
i
]
&&
i
==
5
){
cout
<<
"金神术--"
<<
endl
;
cout
<<
"金光剑!"
<<
endl
;
temb
-=
5
*
10
+
attack
[
grade
];
cout
<<
name
<<
"打出了"
<<
5
*
10
+
attack
[
grade
]
<<
"点伤害"
<<
endl
;
cout
<<
"熔岩地龙还剩"
<<
temb
<<
"滴血"
<<
endl
;
if
(
temb
<=
0
)
{
cout
<<
"你赢了"
<<
endl
;
int
n
=
rand
()
%
1
0
+
1
;
cout
<<
"你赢了"
;
int
n
=
rand
()
%
2
0
+
1
;
if
(
n
==
1
)
{
cout
<<
",你获得了地龙之心一只"
<<
endl
;
//加坐骑的属性
cout
<<
",你获得了碧水金睛兽一只"
;
}
else
{
cout
<<
",你获得了
熔岩宝石"
<<
endl
;
cout
<<
",你获得了
碧水珠"
;
}
jinyan
+=
(
double
)
experience
[(
int
)
x
]
/
10
;
return
;
...
...
@@ -1057,76 +1723,106 @@ void shu()
{
if
(
jineng
[
i
]
&&
i
==
1
)
{
cout
<<
"豪火球--"
<<
endl
;
Sleep
(
1
);
cout
<<
"火神术--"
<<
endl
;
cout
<<
"焚毁!"
<<
endl
;
Sleep
(
1
);
temb
-=
5
*
10
+
attack
[
grade
];
cout
<<
name
<<
"打出了"
<<
5
*
10
+
attack
[
grade
]
<<
"点伤害"
<<
endl
;
Sleep
(
1
);
cout
<<
"树魔还剩"
<<
temb
<<
"滴血"
<<
endl
;
Sleep
(
1
);
if
(
temb
<=
0
)
{
cout
<<
"你赢了"
<<
endl
;
cout
<<
"你获得了 树魔心 "
<<
endl
;
cout
<<
"你赢了"
;
int
n
=
rand
()
%
20
+
1
;
if
(
n
==
1
)
{
cout
<<
",你获得了碧水金睛兽一只"
;
}
else
{
cout
<<
",你获得了碧水珠"
;
}
jinyan
+=
(
double
)
experience
[(
int
)
x
]
/
10
;
return
;
}
}
if
(
jineng
[
i
]
&&
i
==
2
)
{
cout
<<
"千手顶上化佛--"
<<
endl
;
cout
<<
"气死谁啊!"
<<
endl
;
if
(
jineng
[
i
]
&&
i
==
2
){
cout
<<
"木神术--"
<<
endl
;
cout
<<
"千手顶上化佛!"
<<
endl
;
temb
-=
5
*
10
+
attack
[
grade
];
cout
<<
name
<<
"打出了"
<<
5
*
10
+
attack
[
grade
]
<<
"点伤害"
<<
endl
;
cout
<<
"树魔还剩"
<<
temb
<<
"滴血"
<<
endl
;
if
(
temb
<=
0
)
{
cout
<<
"你赢了"
<<
endl
;
cout
<<
"恭喜获鍀树魔心"
;
cout
<<
"你赢了"
;
int
n
=
rand
()
%
20
+
1
;
if
(
n
==
1
)
{
cout
<<
",你获得了碧水金睛兽一只"
;
}
else
{
cout
<<
",你获得了碧水珠"
;
}
jinyan
+=
(
double
)
experience
[(
int
)
x
]
/
10
;
return
;
}
}
if
(
jineng
[
i
]
&&
i
==
3
)
{
cout
<<
"
点石成金--
"
<<
endl
;
if
(
jineng
[
i
]
&&
i
==
3
)
{
cout
<<
"水神术--"
<<
endl
;
cout
<<
"
水乱波!
"
<<
endl
;
temb
-=
5
*
10
+
attack
[
grade
];
cout
<<
name
<<
"打出了"
<<
5
*
10
+
attack
[
grade
]
<<
"点伤害"
<<
endl
;
cout
<<
"树魔还剩"
<<
temb
<<
"滴血"
<<
endl
;
if
(
temb
<=
0
)
{
cout
<<
"你赢了"
<<
endl
;
cout
<<
"恭喜获鍀树魔心"
;
cout
<<
"你赢了"
;
int
n
=
rand
()
%
20
+
1
;
if
(
n
==
1
)
{
cout
<<
",你获得了碧水金睛兽一只"
;
}
else
{
cout
<<
",你获得了碧水珠"
;
}
jinyan
+=
(
double
)
experience
[(
int
)
x
]
/
10
;
return
;
}
}
if
(
jineng
[
i
]
&&
i
==
4
)
{
cout
<<
"
流水行舟--
"
<<
endl
;
if
(
jineng
[
i
]
&&
i
==
4
)
{
cout
<<
"土神术--"
<<
endl
;
cout
<<
"
土淹!
"
<<
endl
;
temb
-=
5
*
10
+
attack
[
grade
];
cout
<<
name
<<
"打出了"
<<
5
*
10
+
attack
[
grade
]
<<
"点伤害"
<<
endl
;
cout
<<
"树魔还剩"
<<
temb
<<
"滴血"
<<
endl
;
if
(
temb
<=
0
)
{
cout
<<
"你赢了"
<<
endl
;
cout
<<
"恭喜获鍀树魔心"
;
cout
<<
"你赢了"
;
int
n
=
rand
()
%
20
+
1
;
if
(
n
==
1
)
{
cout
<<
",你获得了碧水金睛兽一只"
;
}
else
{
cout
<<
",你获得了碧水珠"
;
}
jinyan
+=
(
double
)
experience
[(
int
)
x
]
/
10
;
return
;
}
}
if
(
jineng
[
i
]
&&
i
==
5
)
{
cout
<<
"
--
"
<<
endl
;
if
(
jineng
[
i
]
&&
i
==
5
)
{
cout
<<
"金神术--"
<<
endl
;
cout
<<
"
金光剑!
"
<<
endl
;
temb
-=
5
*
10
+
attack
[
grade
];
cout
<<
name
<<
"打出了"
<<
5
*
10
+
attack
[
grade
]
<<
"点伤害"
<<
endl
;
cout
<<
"树魔还剩"
<<
temb
<<
"滴血"
<<
endl
;
if
(
temb
<=
0
)
{
cout
<<
"你赢了"
<<
endl
;
cout
<<
"恭喜获鍀树魔心"
;
cout
<<
"你赢了"
;
int
n
=
rand
()
%
20
+
1
;
if
(
n
==
1
)
{
cout
<<
",你获得了碧水金睛兽一只"
;
}
else
{
cout
<<
",你获得了碧水珠"
;
}
jinyan
+=
(
double
)
experience
[(
int
)
x
]
/
10
;
return
;
}
...
...
@@ -1148,80 +1844,110 @@ void shu()
return
;
}
cout
<<
endl
;
for
(
int
i
=
0
;
i
<
5
;
i
++
)
for
(
int
i
=
1
;
i
<=
5
;
i
++
)
{
if
(
jineng
[
i
]
&&
i
==
1
&&
sum
%
5
==
0
)
if
(
jineng
[
i
]
&&
i
==
1
)
{
cout
<<
"豪火球--"
<<
endl
;
Sleep
(
1
);
cout
<<
"火神术--"
<<
endl
;
cout
<<
"焚毁!"
<<
endl
;
Sleep
(
1
);
temb
-=
5
*
10
+
attack
[
grade
];
cout
<<
name
<<
"打出了"
<<
5
*
10
+
attack
[
grade
]
<<
"点伤害"
<<
endl
;
Sleep
(
1
);
cout
<<
"树魔还剩"
<<
temb
<<
"滴血"
<<
endl
;
Sleep
(
1
);
if
(
temb
<=
0
)
{
cout
<<
"你赢了"
<<
endl
;
cout
<<
"你获得了 树魔心 "
<<
endl
;
cout
<<
"你赢了"
;
int
n
=
rand
()
%
20
+
1
;
if
(
n
==
1
)
{
cout
<<
",你获得了碧水金睛兽一只"
;
}
else
{
cout
<<
",你获得了碧水珠"
;
}
jinyan
+=
(
double
)
experience
[(
int
)
x
]
/
10
;
return
;
}
}
if
(
jineng
[
i
]
&&
i
==
2
&&
sum
%
5
==
0
)
{
cout
<<
"千手顶上化佛--"
<<
endl
;
cout
<<
"气死谁啊!"
<<
endl
;
if
(
jineng
[
i
]
&&
i
==
2
){
cout
<<
"木神术--"
<<
endl
;
cout
<<
"千手顶上化佛!"
<<
endl
;
temb
-=
5
*
10
+
attack
[
grade
];
cout
<<
name
<<
"打出了"
<<
5
*
10
+
attack
[
grade
]
<<
"点伤害"
<<
endl
;
cout
<<
"树魔还剩"
<<
temb
<<
"滴血"
<<
endl
;
if
(
temb
<=
0
)
{
cout
<<
"你赢了"
<<
endl
;
cout
<<
"恭喜获鍀树魔心"
;
cout
<<
"你赢了"
;
int
n
=
rand
()
%
20
+
1
;
if
(
n
==
1
)
{
cout
<<
",你获得了碧水金睛兽一只"
;
}
else
{
cout
<<
",你获得了碧水珠"
;
}
jinyan
+=
(
double
)
experience
[(
int
)
x
]
/
10
;
return
;
}
}
if
(
jineng
[
i
]
&&
i
==
3
&&
sum
%
5
==
0
)
{
cout
<<
"
点石成金--
"
<<
endl
;
if
(
jineng
[
i
]
&&
i
==
3
){
cout
<<
"水神术--"
<<
endl
;
cout
<<
"
水乱波!
"
<<
endl
;
temb
-=
5
*
10
+
attack
[
grade
];
cout
<<
name
<<
"打出了"
<<
5
*
10
+
attack
[
grade
]
<<
"点伤害"
<<
endl
;
cout
<<
"树魔还剩"
<<
temb
<<
"滴血"
<<
endl
;
if
(
temb
<=
0
)
{
cout
<<
"你赢了"
<<
endl
;
cout
<<
"恭喜获鍀树魔心"
;
cout
<<
"你赢了"
;
int
n
=
rand
()
%
20
+
1
;
if
(
n
==
1
)
{
cout
<<
",你获得了碧水金睛兽一只"
;
}
else
{
cout
<<
",你获得了碧水珠"
;
}
jinyan
+=
(
double
)
experience
[(
int
)
x
]
/
10
;
return
;
}
}
if
(
jineng
[
i
]
&&
i
==
4
&&
sum
%
5
==
0
)
{
cout
<<
"
流水行舟--
"
<<
endl
;
if
(
jineng
[
i
]
&&
i
==
4
){
cout
<<
"土神术--"
<<
endl
;
cout
<<
"
土淹!
"
<<
endl
;
temb
-=
5
*
10
+
attack
[
grade
];
cout
<<
name
<<
"打出了"
<<
5
*
10
+
attack
[
grade
]
<<
"点伤害"
<<
endl
;
cout
<<
"树魔还剩"
<<
temb
<<
"滴血"
<<
endl
;
if
(
temb
<=
0
)
{
cout
<<
"你赢了"
<<
endl
;
cout
<<
"恭喜获鍀树魔心"
;
cout
<<
"你赢了"
;
int
n
=
rand
()
%
20
+
1
;
if
(
n
==
1
)
{
cout
<<
",你获得了碧水金睛兽一只"
;
}
else
{
cout
<<
",你获得了碧水珠"
;
}
jinyan
+=
(
double
)
experience
[(
int
)
x
]
/
10
;
return
;
}
}
if
(
jineng
[
i
]
&&
i
==
5
&&
sum
%
5
==
0
)
{
cout
<<
"
--
"
<<
endl
;
if
(
jineng
[
i
]
&&
i
==
5
){
cout
<<
"金神术--"
<<
endl
;
cout
<<
"
金光剑!
"
<<
endl
;
temb
-=
5
*
10
+
attack
[
grade
];
cout
<<
name
<<
"打出了"
<<
5
*
10
+
attack
[
grade
]
<<
"点伤害"
<<
endl
;
cout
<<
"树魔还剩"
<<
temb
<<
"滴血"
<<
endl
;
if
(
temb
<=
0
)
{
cout
<<
"你赢了"
<<
endl
;
cout
<<
"恭喜获鍀树魔心"
;
cout
<<
"你赢了"
;
int
n
=
rand
()
%
20
+
1
;
if
(
n
==
1
)
{
cout
<<
",你获得了碧水金睛兽一只"
;
}
else
{
cout
<<
",你获得了碧水珠"
;
}
jinyan
+=
(
double
)
experience
[(
int
)
x
]
/
10
;
return
;
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录