def get_tier(life):
	if not lfe.execute_raw(life, 'discover', 'desires_shelter') and lfe.execute_raw(life, 'state', 'shelter'):
		return TIER_IDLE-.1
	
	return TIER
dataset/ETHPy150Open flags/Reactor-3/alife/alife_shelter.py/get_tier/original