Skip to content

Commit

Permalink
fix yang hilanng lagi
Browse files Browse the repository at this point in the history
  • Loading branch information
varel183 committed May 20, 2024
1 parent 9c353a2 commit 98f3435
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,8 +153,8 @@
print(f"""============== STATS ==============
Total hadiah : {total_oc} OC
Jumlah stage : {stage-1}
Damage diberikan : {total_dealt}
Damage diterima : {total_taken}
Damage diberikan : {total_dealt:.2f}
Damage diterima : {total_taken:.2f}
""")
elif role=='admin':
print("Maaf, Anda bukan seorang agent! Anda tidak memiliki izin untuk menggunakan perintah ini.")
Expand Down
5 changes: 3 additions & 2 deletions src/F08.py
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,8 @@ def battle(username : str, role : str, coins : int,menu : str, stage : int, mons
Pdmg=0
break
if command==3:
fight=False
damage_taken+= Admg
damage_dealt+=Pdmg
break
if e_hp<=0:
win=True
Expand Down Expand Up @@ -389,7 +390,7 @@ def battle(username : str, role : str, coins : int,menu : str, stage : int, mons
return coin,win,damage_dealt,damage_taken,gained
else:
return username,role,coin
elif not fight:
elif command==3:
gained=0
print('Kamu mengakhiri pertandingan.\n')
if menu=='ARENA':
Expand Down

0 comments on commit 98f3435

Please sign in to comment.