Skip to content

Commit

Permalink
fixed looping on encounter
Browse files Browse the repository at this point in the history
  • Loading branch information
Vryst committed Dec 30, 2024
1 parent 361518e commit 7b154fb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion main/game/fun.py
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,7 @@ def battle(player,enemy,tsl=tsl):
#event
def pergi():
menemukan = random.choice(range(2))
return 1 if menemukan == 1 else 2
return 1 if menemukan == 0 else 2



Expand Down Expand Up @@ -360,6 +360,7 @@ def encounter(hero,tsl=tsl):
print(f"\n{tsl['encounter']['ignore']}{enemy.name}\n\n")
enemy = None
loading(1)
on = False
break

else:
Expand Down

0 comments on commit 7b154fb

Please sign in to comment.