Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Barry
/
discordbot
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
b1760e6e
authored
2016-03-14 05:59:18 +0000
by
Barry
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Finished the first round of feral skills.
1 parent
93d98e04
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
db.sqlite3
hellsbot.py
pankration.py
db.sqlite3
View file @
b1760e6
No preview for this file type
hellsbot.py
View file @
b1760e6
...
...
@@ -1282,7 +1282,7 @@ def check_arena():
winner
=
1
while
fighting
:
actions
=
battle_arena
.
step
()
time
.
sleep
(
4
)
time
.
sleep
(
3
)
out_str
=
""
for
action
in
actions
:
# TODO: Decide if I should merge magicresistaction with miss action
...
...
@@ -1306,7 +1306,7 @@ def check_arena():
# give a small amount to the loser
if
result
:
out_str
+=
xp_msg
result
,
xp_msg
=
monster2
.
add_xp
(
5
)
result
,
xp_msg
=
monster2
.
add_xp
(
action
.
losing_xp
)
if
result
:
out_str
+=
xp_msg
winner
=
1
...
...
@@ -1318,7 +1318,7 @@ def check_arena():
# give a small amount to the loser
if
result
:
out_str
+=
xp_msg
result
,
xp_msg
=
monster
.
add_xp
(
5
)
result
,
xp_msg
=
monster
.
add_xp
(
action
.
losing_xp
)
if
result
:
out_str
+=
xp_msg
winner
=
2
...
...
pankration.py
View file @
b1760e6
This diff is collapsed.
Click to expand it.
Please
register
or
sign in
to post a comment