fixHighScore

This commit is contained in:
SpudGunMan
2024-09-18 16:08:43 -07:00
parent f6fd017871
commit 94479f47d9
3 changed files with 3 additions and 3 deletions

View File

@@ -205,7 +205,7 @@ def handleDopeWars(nodeID, message, rxNode):
# welcome new player
if not last_cmd:
msg = 'Welcome to Dope Wars! You have ' + str(total_days) + ' days to make as much money as possible! '
high_score = getHighScore()
high_score = getHighScoreDw()
msg += 'The High Score is $' + str(high_score.get('cash')) + ' by user ' + get_name_from_number(high_score.get('userID') , 'short', rxNode) + f'.\n'
msg += playDopeWars(nodeID, message)
else:

View File

@@ -376,7 +376,7 @@ def endGame(nodeID):
return msg
def getHighScore():
def getHighScoreDw():
global dwHighScore
# Load high score table
try:

View File

@@ -37,7 +37,7 @@ def get_sales_amount(potential, unit, price):
"""
return math.floor(potential * (unit / (price ** 1.5)))
def getHighScore():
def getHighScoreLemon():
global high_score
# Load high score table
try: