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


version 1.2 version 1.3
Line 20
 
Line 20
 cost = 1 #Price of usage  cost = 1 #Price of usage
   
 #Change the items on the slot spinner or the number of items.      #Change the items on the slot spinner or the number of items.   
 slotlist = ["Maid", "Merchant", "Coin", "Diamond", "Imp", "Devil", "JackPot"]  slotlist = ["Merchant", "Coin", "Diamond", "Imp", "Devil", "JackPot"]
   
 spinners = 4 #How many spinners on the slotmachine?  spinners = 4 #How many spinners on the slotmachine?
   
Line 36
 
Line 36
    for item in results:     for item in results:
       #match all but one - pays out by coin e.g 3 to 1 or 4 to 1        #match all but one - pays out by coin e.g 3 to 1 or 4 to 1
       if results.count(item) == spinners-1:        if results.count(item) == spinners-1:
          if item == "Maid":   if item == "Merchant":
             pay = 1              pay = 1
          elif item == "Merchant":  
             pay = 2  
          elif item == "Coin":           elif item == "Coin":
             pay = 3              pay = 2
          elif item == "Diamond":           elif item == "Diamond":
             pay = 4              pay = 4
          elif item == "Imp":           elif item == "Imp":
Line 65
 
Line 63
       elif results.count(item) == spinners:        elif results.count(item) == spinners:
          #all match - pays out as percent of pot           #all match - pays out as percent of pot
          CFPython.Write('%d %ss, a Major win!' %(spinners,item),activator)           CFPython.Write('%d %ss, a Major win!' %(spinners,item),activator)
          if item == "Maid":           if item == "Merchant":
             pay = .10              pay = .10
          elif item == "Merchant":  
             pay = .15  
          elif item == "Coin":           elif item == "Coin":
             pay = .25              pay = .15
          elif item == "Diamond":           elif item == "Diamond":
             pay = .25              pay = .20
          elif item == "Imp":           elif item == "Imp":
             pay = .35              pay = .30
          elif item == "Devil":           elif item == "Devil":
             pay = .50              pay = .50
          elif item == "JackPot":           elif item == "JackPot":


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

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