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 = {}
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()
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 = {}
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 = {}
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
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()
def __init__(self, factory): BaseModule.__init__(self, factory)
def __init__(self, factory): BaseModule.__init__(self, factory) self.log = file('channels.log', 'a')
def __init__(self, realm): BaseModule.__init__(self, realm) self.stopped_reeling = False
def __init__(self, factory): BaseModule.__init__(self, factory) self.harvesting = False self.herbs_in_room = set() self.seen_herbs = False
def __init__(self, manager): self.venom = None BaseModule.__init__(self, manager)
def __init__(self, factory): BaseModule.__init__(self, factory) self.target = None
def __init__(self, factory): BaseModule.__init__(self, factory) self.num = 0 self.target = None self.vial = None