示例#1
0
 def __init__(self, factory):
     BaseModule.__init__(self, factory)
     
     self.target_trigger.module = self
     self.fight_trigger.module = self
     self.realm = factory
     self.m = factory.mmap
     
     # цели
     self.target_flag = False
     self.targets = []
     
     self.current_target = -1
     self.opozn_targer_counter = 0
     self.opozn_flag = False
     self.double_key = False
     self.last_alias = None
     
     self.curr_attack = 0
     
     self.do_agr = False
     
     self.do_udavka = False
     
     try:
         self.load_aliases('targets.json')
     except:
         self.taliases = {}
示例#2
0
 def __init__(self, factory):
     BaseModule.__init__(self, factory)
     self.herbs_seen = None
     self.looking_for_herbs = None
     self.max_vials = None
     self.bottlenecks = None
     self._reset()
示例#3
0
 def __init__(self, factory):
     BaseModule.__init__(self, factory)
     
     self.opozn_flag = False
     self.parse_flag = False
     
     self.obj_name = ''
     self.obj_desc = ''
     
     self.baz_log = file('baz.log', 'a')
     
     try:
         self.load('objs.json')
     except:
         self.objs = {}
示例#4
0
    def __init__(self,
                 factory,
                 re_ingr_file='re_ingr.csv',
                 db_ingr_file='db_ingr.csv'):
        BaseModule.__init__(self, factory)

        self.realm = factory

        self.re_ingr_file = re_ingr_file
        self.update_res()

        self.db_ingr_file = db_ingr_file
        self.update_ingr_db()

        self.recipes = {}
        self.parse_recipes_flag = False
        self.parse_recipe_flag = False
        self.cur_recipe = []

        self.load_ingr_flag = False
        self.ingrs = {}
示例#5
0
    def __init__(self, factory):
        BaseModule.__init__(self, factory)
        self.show_trigs_flag = True
        self.map_trigs = {}
        self.m = factory.mmap
        self.realm = factory

        self.m.add_listener(self)

        try:
            self.load('trigs.json')
        except:
            self.map_trigs = {}

        self.tcnt = 0

        # телепорты
        try:
            self.load_teleports('teleports.json')
        except:
            self.teleports = {}

        self.teleport_curr = None
        self.teleport_flag = False
示例#6
0
 def __init__(self, factory):
     BaseModule.__init__(self, factory)
     #could use an OrderedDict here instead of these two.
     self.assigned_colours = {}
     self.assigned_order = []
     self.sending_to = deque()
示例#7
0
 def __init__(self, factory):
     BaseModule.__init__(self, factory)
示例#8
0
 def __init__(self, factory):
     BaseModule.__init__(self, factory)
     
     self.log = file('channels.log', 'a')
示例#9
0
 def __init__(self, realm):
     BaseModule.__init__(self, realm)
     self.stopped_reeling = False
示例#10
0
 def __init__(self, factory):
     BaseModule.__init__(self, factory)
     self.harvesting = False
     self.herbs_in_room = set()
     self.seen_herbs = False
示例#11
0
 def __init__(self, manager):
     self.venom = None
     BaseModule.__init__(self, manager)
示例#12
0
 def __init__(self, factory):
     BaseModule.__init__(self, factory)
     self.target = None
示例#13
0
 def __init__(self, factory):
     BaseModule.__init__(self, factory)
     self.num = 0
     self.target = None
     self.vial = None