Difference for python/casino/silverslots.py from version 1.3 to 1.4


version 1.3 version 1.4
Line 5
 
Line 5
 import sys  import sys
 sys.path.append('%s/%s/python' %(CFPython.GetDataDirectory(),CFPython.GetMapDirectory()))  sys.path.append('%s/%s/python' %(CFPython.GetDataDirectory(),CFPython.GetMapDirectory()))
 import CFGamble  import CFGamble
   import CFItemBroker
   
 activator=CFPython.WhoIsActivator()  activator=CFPython.WhoIsActivator()
 activatorname=CFPython.GetName(activator)  activatorname=CFPython.GetName(activator)
Line 54
 
Line 55
          payoff = cost*pay           payoff = cost*pay
          Slots.payoff(payoff)           Slots.payoff(payoff)
          id = CFPython.CreateObject(cointype, (x, y))           id = CFPython.CreateObject(cointype, (x, y))
          CFPython.SetQuantity(id, payoff)           CFItemBroker.Item(id).add(payoff)
          if payoff == 1:           if payoff == 1:
             message = "you win %d %s!" %(payoff,cointype)              message = "you win %d %s!" %(payoff,cointype)
  else:   else:
Line 78
 
Line 79
          payoff = pot*pay           payoff = pot*pay
          Slots.payoff(payoff)           Slots.payoff(payoff)
          id = CFPython.CreateObject(cointype, (x, y))           id = CFPython.CreateObject(cointype, (x, y))
          CFPython.SetQuantity(id, payoff)           CFItemBroker.Item(id).add(payoff)
          if payoff == 1:           if payoff == 1:
             message = "you win %d %s!" %(payoff,cointype)              message = "you win %d %s!" %(payoff,cointype)
  else:   else:


Legend:
line(s) removed in v.1.3 
line(s) changed
 line(s) added in v.1.4

File made using version 1.96 of cvs2html by leaf at 2006-02-15 17:31