Fix part of bug 2457751 "Unpaid items work for some things...": Make diamondslots.py and imperialslots.py check that the object is paid for.

git-svn-id: svn://svn.code.sf.net/p/crossfire/code/maps/trunk@11348 282e977c-c81d-0410-88c4-b93c2d0d6712
master
anmaster 2009-02-06 16:32:36 +00:00
parent aaa7b7f0b9
commit ed4a0d2b14
2 changed files with 2 additions and 2 deletions

View File

@ -32,7 +32,7 @@ spinners = 4 #How many spinners on the slotmachine?
Slots=CFGamble.SlotMachine(slotname,slotlist,minpot,maxpot)
object = activator.CheckInventory(cointype)
if (object):
if (object) and not object.Unpaid:
pay = CFItemBroker.Item(object).subtract(cost)
if (pay):
Slots.placebet(cost)

View File

@ -33,7 +33,7 @@ spinners = 4 #How many spinners on the slotmachine?
Slots=CFGamble.SlotMachine(slotname,slotlist,minpot,maxpot)
object = activator.CheckInventory(cointype)
if (object):
if (object) and not object.Unpaid:
pay = CFItemBroker.Item(object).subtract(cost)
if (pay):
Slots.placebet(cost)