The casino code for major wins (in all the different slot types) was missing a cast to integer, this resulted in a traceback on Python 3.x.
git-svn-id: svn://svn.code.sf.net/p/crossfire/code/maps/trunk@11481 282e977c-c81d-0410-88c4-b93c2d0d6712master
parent
fc2ac59b2c
commit
84813f777d
|
@ -65,7 +65,7 @@ if (object) and not object.Unpaid:
|
||||||
pay = slotmajor[slotlist.index(item)]
|
pay = slotmajor[slotlist.index(item)]
|
||||||
else:
|
else:
|
||||||
break
|
break
|
||||||
payoff = pot*pay
|
payoff = int(pot*pay)
|
||||||
Slots.payoff(payoff)
|
Slots.payoff(payoff)
|
||||||
id = Crossfire.CreateObjectByName(cointype)
|
id = Crossfire.CreateObjectByName(cointype)
|
||||||
id.Quantity = payoff
|
id.Quantity = payoff
|
||||||
|
|
|
@ -63,7 +63,7 @@ if (activator.PayAmount(cost*10)):#goldcoin
|
||||||
pay = slotmajor[slotlist.index(item)]
|
pay = slotmajor[slotlist.index(item)]
|
||||||
else:
|
else:
|
||||||
break
|
break
|
||||||
payoff = pot*pay
|
payoff = int(pot*pay)
|
||||||
Slots.payoff(payoff)
|
Slots.payoff(payoff)
|
||||||
id = Crossfire.CreateObjectByName(cointype)
|
id = Crossfire.CreateObjectByName(cointype)
|
||||||
id.Quantity = payoff
|
id.Quantity = payoff
|
||||||
|
|
|
@ -66,7 +66,7 @@ if (object) and not object.Unpaid:
|
||||||
pay = slotmajor[slotlist.index(item)]
|
pay = slotmajor[slotlist.index(item)]
|
||||||
else:
|
else:
|
||||||
break
|
break
|
||||||
payoff = pot*pay
|
payoff = int(pot*pay)
|
||||||
Slots.payoff(payoff)
|
Slots.payoff(payoff)
|
||||||
id = Crossfire.CreateObjectByName(cointype)
|
id = Crossfire.CreateObjectByName(cointype)
|
||||||
id.Quantity = payoff
|
id.Quantity = payoff
|
||||||
|
|
|
@ -63,7 +63,7 @@ if (activator.PayAmount(cost*50)):#platinumcoin
|
||||||
pay = slotmajor[slotlist.index(item)]
|
pay = slotmajor[slotlist.index(item)]
|
||||||
else:
|
else:
|
||||||
break
|
break
|
||||||
payoff = pot*pay
|
payoff = int(pot*pay)
|
||||||
Slots.payoff(payoff)
|
Slots.payoff(payoff)
|
||||||
id = Crossfire.CreateObjectByName(cointype)
|
id = Crossfire.CreateObjectByName(cointype)
|
||||||
id.Quantity = payoff
|
id.Quantity = payoff
|
||||||
|
|
|
@ -62,7 +62,7 @@ if (activator.PayAmount(cost)):#silvercoin
|
||||||
pay = slotmajor[slotlist.index(item)]
|
pay = slotmajor[slotlist.index(item)]
|
||||||
else:
|
else:
|
||||||
break
|
break
|
||||||
payoff = pot*pay
|
payoff = int(pot*pay)
|
||||||
Slots.payoff(payoff)
|
Slots.payoff(payoff)
|
||||||
id = Crossfire.CreateObjectByName(cointype)
|
id = Crossfire.CreateObjectByName(cointype)
|
||||||
id.Quantity = payoff
|
id.Quantity = payoff
|
||||||
|
|
Loading…
Reference in New Issue