ransack-python
ransack-python copied to clipboard
Ransack not can sell when have not bought
Hello i try to port to FreeBSD Ransack.
When try to sell and have not buy because not have enough money get:
Traceback (most recent call last):
File "./ransack.py", line 159, in <module>
main()
File "./ransack.py", line 128, in main
if newGame.mainLoop():
File "/usr/local/share/ransack-python/game.py", line 421, in mainLoop
heroMove = self.event_handler(event)
File "/usr/local/share/ransack-python/game.py", line 202, in event_handler
return self.move(pygame.key.name(event.key))
File "/usr/local/share/ransack-python/game.py", line 274, in move
self.Itemshops[self.myMap.shops[( (X + moveX)/const.blocksize, (Y + moveY)/const.blocksize)][1]].enterStore(self.myHero)
File "/usr/local/share/ransack-python/classes/shop.py", line 212, in enterStore
hero.addGold( self.prices[ sale.getType() ]/2 )
AttributeError: 'list' object has no attribute 'getType'
Have tried more times and get always same. When this is not solved I can't add to FreeBSD Ports Tree Ransack.