Skip to content

Commit

Permalink
Minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
AquausDev authored Nov 1, 2016
1 parent 4243b28 commit fa19fbe
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -894,6 +894,7 @@ def stock_info():
if ask_view.lower() in no_list:
return

@staticmethod
def manage_customers():
global cooked_fish_cost, cooked_potato_cost, cooked_sausage_cost, cooked_fishcake_cost, DLC1, DLC2, level, hour_exp, tprofit
global fish_customers, potato_customers, sausage_customers, fishcake_customers, fish_hour_exp, potato_hour_exp, sausage_hour_exp, fishcake_hour_exp
Expand Down Expand Up @@ -1020,6 +1021,7 @@ def manage_customers():
haddock_customers = randint(0, haddock_rand_no)
haddock_hour_exp = haddock_customers * haddock_exp

@staticmethod
def check_stock():
global cooked_fish, cooked_potato, cooked_fishcake, DLC1, DLC2, level, fish_sellable, potato_sellable, sausage_sellable, fishcake_sellable
global fish_customers, potato_customers, sausage_customers, fishcake_customers, tprofit
Expand Down Expand Up @@ -1072,6 +1074,7 @@ def check_stock():
if (fish_sellable == False) and (potato_sellable == False) and (sausage_sellable == False) and (fishcake_sellable == False):
GameInit.end()

@staticmethod
def sell_stock():
global cooked_fish, cooked_potato, cooked_fishcake, cooked_fish_cost, cooked_potato_cost, cooked_sausage_cost, cooked_fishcake_cost, cooked_haddock, haddock_sellable, cooked_haddock_cost, cooked_haddock_cost
global DLC1, DLC2,level, cash, exp, req_exp, fish_sellable, potato_sellable, sausage_sellable, fishcake_sellable, cooked_pukkapie, pukkapie_sellable, cooked_pukkapie_cost, cooked_haddock, haddock_sellable
Expand Down Expand Up @@ -1160,6 +1163,7 @@ def sell_stock():
if haddock_customers > 0:
print("Fred: "+str(haddock_customers)+" customers bought "+str(haddock_customers)+" haddock and we now have "+str(haddock_plaice)+" haddock left!")

@staticmethod
def calc_exp():
global exp, cash, level, req_exp, currency
cash = cash + tprofit
Expand All @@ -1174,6 +1178,7 @@ def calc_exp():
print("Uncle Bob: Congratulations! You levelled up to "+str(level)+"!")
print("Uncle Bob: With this, your reputation has increased.")

@staticmethod
def day_time():
global daytime
print("Game: "+str((daytime + 3))+":00pm")
Expand Down

0 comments on commit fa19fbe

Please sign in to comment.