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-b93c2d0d6712master
parent
aaa7b7f0b9
commit
ed4a0d2b14
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue