Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorroot <root@xo-a7-50-46.localdomain>2010-11-05 20:28:48 (GMT)
committer root <root@xo-a7-50-46.localdomain>2010-11-05 20:28:48 (GMT)
commit7d71621e122b8485740a904319a50cf3a6f3b04f (patch)
tree9b02045cccecf25070010a48de0842e10a308cae
parent94bcf545f8e0f4567c571029a0fb8b5bf66c960c (diff)
Fortune Hunter update:
-reintegrated lose condition into game. You will now be transported back to the start of the current dungeon if you are defeated. -added Merchant.py (not functional)
-rwxr-xr-xMAFH2/Merchant.py31
1 files changed, 31 insertions, 0 deletions
diff --git a/MAFH2/Merchant.py b/MAFH2/Merchant.py
new file mode 100755
index 0000000..01500b1
--- /dev/null
+++ b/MAFH2/Merchant.py
@@ -0,0 +1,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 \ No newline at end of file