Difference for python/CFGamble.py from version 1.3 to 1.4


version 1.3 version 1.4
Line 8
 
Line 8
 import shelve  import shelve
 import random  import random
   
 import CFPython  import Crossfire
   
 class SlotMachine:  class SlotMachine:
  #sets up the file that holds all the slotmachine jackpots   #sets up the file that holds all the slotmachine jackpots
  #make sure this points to your writable var/crossfire directory   #make sure this points to your writable var/crossfire directory
  #you can delete that file to reset all the slotmachine jackpots   #you can delete that file to reset all the slotmachine jackpots
         slotfile = os.path.join(CFPython.GetLocalDirectory(),'SlotMachine_file')          slotfile = os.path.join(Crossfire.LocalDirectory(),'SlotMachine_file')
         slotdb = {}          slotdb = {}
         def __init__(self,slotname,slotlist,minpot,maxpot):          def __init__(self,slotname,slotlist,minpot,maxpot):
  slotdb = shelve.open(self.slotfile)   slotdb = shelve.open(self.slotfile)


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:26