Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/MAFH2/Merchant.py
blob: 01500b1b8c394ca2608bb70688aba013e4b89e06 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
from Items import get_item
from random import *
import pygame
from pygame.locals import *
from constants import MENU_PATH, CHAR_PATH

############################################################################
#Merchant class
############################################################################
class Merchant:
    def __init__(self,player):
	    self.player = player
        self.itemList=[get_item('l'),get_item('m')]
        self.selItem=0
        self.numItem=[0,0]
        self.totalPrice=0
        self.selDigit=3
        self.enteredDigits=[0,0,0,0]
        self.buyScreen=False
        self.buyMode=True
        self.sellMode=False
        self.yes=True
        self.shopKeeperVariable=0
        self.message=[]
        
        if self.player.shopTutorial = False:
            self.message.append("WELCOME TO SHOP - TUTORIAL MESSAGE")
        else:
            self.message.append("NORMAL SHOP MESSAGE")
			
			#tickets - win screen missing, hold+flash amulet search missing, scan does damage, when you die you restart dungeon w current inventory, fast clicking through battle crashes game