mirror of
https://github.com/SpudGunMan/meshing-around.git
synced 2026-05-05 13:02:16 +02:00
fixHighScore
This commit is contained in:
@@ -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:
|
||||
|
||||
@@ -376,7 +376,7 @@ def endGame(nodeID):
|
||||
|
||||
return msg
|
||||
|
||||
def getHighScore():
|
||||
def getHighScoreDw():
|
||||
global dwHighScore
|
||||
# Load high score table
|
||||
try:
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user