Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Administrator
/
lesson14_4
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
5d8a23cc
authored
Feb 02, 2021
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
save project
parent
22354288
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
36 additions
and
0 deletions
diy2.py
diy2.py
0 → 100644
View file @
5d8a23cc
亚
b
=
'圣光守护(每2秒恢复相当于自身1
%
的最大生命值)'
亚
1
=
'誓约之盾(3秒内提升30
%
移速并强化下次普攻,造成伤害和沉默,同时对标记目标,持续5秒,标记会造成伤害,并增加友军移速)'
亚
2
=
'回旋打击(召唤持续5秒圣盾对自身周围目标造成持续伤害)'
亚
3
=
'圣剑裁决(技能开启时使亚瑟向敌方英雄跳跃,造成目标最大生命值12
%
法术伤害和0.5秒击飞,在目标区域留下圣印持续5秒对敌人伤害)'
class
Hero
:
def
__init__
(
self
,
difficultdegree
,
hp
,
attack
,
passive
,
sillk1
,
sillk2
,
sillk3
):
self
.
difficultdegree
=
difficultdegree
self
.
hp
=
hp
self
.
attack
=
attack
self
.
passive
=
passive
self
.
sillk1
=
sillk1
self
.
sillk2
=
sillk2
self
.
sillk3
=
sillk3
def
upgrade
(
self
):
self
.
hp
=
self
.
hp
+
500
self
.
attack
=
self
.
attack
+
100
z
=
input
(
'你想知道的属性是:'
)
yase
=
Hero
(
1
,
3622
,
145
,
亚
b
,
亚
1
,
亚
2
,
亚
3
)
yase
.
upgrade
()
if
z
==
'易难度'
:
print
(
'亚瑟的'
+
z
+
'为:'
,
yase
.
difficultdegree
)
if
z
==
'血量'
:
print
(
'亚瑟的'
+
z
+
'为:'
,
yase
.
hp
)
if
z
==
'攻击'
:
print
(
'亚瑟的'
+
z
+
'为:'
,
yase
.
attack
)
if
z
==
'被动'
:
print
(
'亚瑟的'
+
z
+
'为:'
,
yase
.
passive
)
if
z
==
'一技能'
:
print
(
'亚瑟的'
+
z
+
'为:'
,
yase
.
sillk1
)
if
z
==
'二技能'
:
print
(
'亚瑟的'
+
z
+
'为:'
,
yase
.
sillk2
)
if
z
==
'三技能'
:
print
(
'亚瑟的'
+
z
+
'为:'
,
yase
.
sillk3
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment