Skip to content

Commit

Permalink
Fix bug: Rep showing wrong change value
Browse files Browse the repository at this point in the history
  • Loading branch information
BobWritesCode committed Oct 7, 2022
1 parent b42ac68 commit 2e1434d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions game.py
Original file line number Diff line number Diff line change
Expand Up @@ -300,15 +300,15 @@ def rep_change(stats, rep_score, sold):
stats["reputation"] += 0.5
print(
f"{green('Reputation increase:')}\
{gold('+' + str(stats['reputation']))}"
{gold('+ 0.5')}"
)
elif rep_percent > 0.5 and c_rep == 5:
print(gold("Reputation already at a 5!"))
elif rep_percent < -0.5 and c_rep > 0:
stats["reputation"] -= 0.5
print(
f"{red('Reputation decrease:')}\
{gold('-' + str(stats['reputation']))}"
{gold('- 0.5')}"
)
elif rep_percent < -0.5 and c_rep == 0:
print(red("Reputation already at 0."))
Expand Down

0 comments on commit 2e1434d

Please sign in to comment.