Exemple #1
0
def follow_alife(life):
    if _find_alife(life,
                   jobs.get_job_detail(life['job'], 'target'),
                   distance=7):
        lfe.stop(life)
        return True

    return False
Exemple #2
0
def guard_camp(life):
	_delay = random.randint(25, jobs.get_job_detail(life['job'], 'pause'))
	
	if not life['path'] and not lfe.find_action(life, matches=[{'action': 'move'}]):
		_chunk = WORLD_INFO['chunk_map'][references.find_least_populated_key_in_reference(life, CAMPS[life['camp']]['reference'])]
		lfe.add_action(life,{'action': 'move',
			'to': random.choice(_chunk['ground'])},
			200,
			delay=_delay)
	
	return False
Exemple #3
0
def guard_camp(life):
    _delay = random.randint(25, jobs.get_job_detail(life['job'], 'pause'))

    if not life['path'] and not lfe.find_action(life,
                                                matches=[{
                                                    'action': 'move'
                                                }]):
        _chunk = WORLD_INFO['chunk_map'][
            references.find_least_populated_key_in_reference(
                life, CAMPS[life['camp']]['reference'])]
        lfe.add_action(life, {
            'action': 'move',
            'to': random.choice(_chunk['ground'])
        },
                       200,
                       delay=_delay)

    return False
Exemple #4
0
def find_alife_and_say(life):
    return _find_alife_and_say(life,
                               jobs.get_job_detail(life['job'], 'target'),
                               jobs.get_job_detail(life['job'], 'target'))
Exemple #5
0
def find_alife_and_say(life):
    return _find_alife_and_say(
        life, jobs.get_job_detail(life["job"], "target"), jobs.get_job_detail(life["job"], "target")
    )
Exemple #6
0
def follow_alife(life):
    if _find_alife(life, jobs.get_job_detail(life["job"], "target"), distance=7):
        lfe.stop(life)
        return True

    return False
Exemple #7
0
def find_alife_and_say(life):	
	return _find_alife_and_say(life, jobs.get_job_detail(life['job'], 'target'), jobs.get_job_detail(life['job'], 'target'))
Exemple #8
0
def follow_alife(life):
	if _find_alife(life, jobs.get_job_detail(life['job'], 'target'), distance=7):
		lfe.stop(life)
		return True
	
	return False