Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Administrator
/
lesson16_1
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
044e3ee4
authored
Apr 29, 2023
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
auto save
parent
dc02b1cf
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
34 additions
and
5 deletions
diy1.py
diy1.py
View file @
044e3ee4
...
@@ -68,7 +68,36 @@ while True:
...
@@ -68,7 +68,36 @@ while True:
yase
.
combat
(
houyi
)
yase
.
combat
(
houyi
)
def
cure
(
self
):
# def cure(self):
self
.
hp
=
self
.
hp
+
60
# self.hp = self.hp + 60
if
self
.
hp
>
self
.
max_hp
:
# if self.hp > self.max_hp:
self
.
hp
=
self
.
max_hp
# self.hp = self.max_hp
\ No newline at end of file
# print('-' + 30)
# print(' 战斗开始')
# while True:
# print('-'*30)
# choice = input('幅度和天上人间发达国家')
# if choice == 'q':
# print('里面防盗门')
# break
# elif choice == 'l':
# houyi.combat(yase)
# elif choice == '2':
# houyi.cure()
# elif:
# print('西方国家结果')
# continue
# status = random.randint(1, 3)
# if status == 1:
# yase.cure()
# elif:
# yase.combat(houyi)
# def cure(self):
# biood + random.randint(10,50)
# self.hp = self.hp + blood
\ No newline at end of file
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