From 84813f777d8aa869d8c1f039e835c46150e7ca26 Mon Sep 17 00:00:00 2001 From: anmaster Date: Sat, 14 Feb 2009 18:00:40 +0000 Subject: [PATCH] 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-b93c2d0d6712 --- python/casino/diamondslots.py | 2 +- python/casino/goldslots.py | 2 +- python/casino/imperialslots.py | 2 +- python/casino/platinumslots.py | 2 +- python/casino/silverslots.py | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/python/casino/diamondslots.py b/python/casino/diamondslots.py index 30272ea40..4243c7226 100644 --- a/python/casino/diamondslots.py +++ b/python/casino/diamondslots.py @@ -65,7 +65,7 @@ if (object) and not object.Unpaid: pay = slotmajor[slotlist.index(item)] else: break - payoff = pot*pay + payoff = int(pot*pay) Slots.payoff(payoff) id = Crossfire.CreateObjectByName(cointype) id.Quantity = payoff diff --git a/python/casino/goldslots.py b/python/casino/goldslots.py index a4fa54f3b..24a92b2ce 100644 --- a/python/casino/goldslots.py +++ b/python/casino/goldslots.py @@ -63,7 +63,7 @@ if (activator.PayAmount(cost*10)):#goldcoin pay = slotmajor[slotlist.index(item)] else: break - payoff = pot*pay + payoff = int(pot*pay) Slots.payoff(payoff) id = Crossfire.CreateObjectByName(cointype) id.Quantity = payoff diff --git a/python/casino/imperialslots.py b/python/casino/imperialslots.py index 4db0beada..38a476009 100644 --- a/python/casino/imperialslots.py +++ b/python/casino/imperialslots.py @@ -66,7 +66,7 @@ if (object) and not object.Unpaid: pay = slotmajor[slotlist.index(item)] else: break - payoff = pot*pay + payoff = int(pot*pay) Slots.payoff(payoff) id = Crossfire.CreateObjectByName(cointype) id.Quantity = payoff diff --git a/python/casino/platinumslots.py b/python/casino/platinumslots.py index 6aedad800..959de8547 100644 --- a/python/casino/platinumslots.py +++ b/python/casino/platinumslots.py @@ -63,7 +63,7 @@ if (activator.PayAmount(cost*50)):#platinumcoin pay = slotmajor[slotlist.index(item)] else: break - payoff = pot*pay + payoff = int(pot*pay) Slots.payoff(payoff) id = Crossfire.CreateObjectByName(cointype) id.Quantity = payoff diff --git a/python/casino/silverslots.py b/python/casino/silverslots.py index b5b49f500..2aecd9a08 100644 --- a/python/casino/silverslots.py +++ b/python/casino/silverslots.py @@ -62,7 +62,7 @@ if (activator.PayAmount(cost)):#silvercoin pay = slotmajor[slotlist.index(item)] else: break - payoff = pot*pay + payoff = int(pot*pay) Slots.payoff(payoff) id = Crossfire.CreateObjectByName(cointype) id.Quantity = payoff