def set_epithet(self):
if self.divinity == human:<EOL><INDENT>obsession = random.choice(self.genome)<EOL>if self.gender == female:<EOL><INDENT>self.epithet = '<STR_LIT>'<EOL><DEDENT>elif self.gender == male:<EOL><INDENT>self.epithet = '<STR_LIT>'<EOL><DEDENT>else:<EOL><INDENT>self.epithet = '<STR_LIT>'<EOL><DEDENT>self.epithet += '<STR_LIT>' + obsession<EOL>return <EOL><DEDENT>if self.gender == female:<EOL><INDENT>title = '<STR_LIT>'<EOL><DEDENT>elif self.gender == male:<EOL><INDENT>title = '<STR_LIT>'<EOL><DEDENT>else:<EOL><INDENT>title = '<STR_LIT>'<EOL><DEDENT>if self.divinity == demi_god:<EOL><INDENT>title = '<STR_LIT>' + title if self.gender == non_binary else '<STR_LIT>' + title<EOL><DEDENT>num_domains = npchoice([<NUM_LIT:1>,<NUM_LIT:2>,<NUM_LIT:3>,<NUM_LIT:4>], <NUM_LIT:1>, p=[<NUM_LIT>, <NUM_LIT>, <NUM_LIT>, <NUM_LIT>])[<NUM_LIT:0>]<EOL>if num_domains == <NUM_LIT:1>:<EOL><INDENT>template = '<STR_LIT>'<EOL><DEDENT>if num_domains == <NUM_LIT:2>:<EOL><INDENT>template = '<STR_LIT>'<EOL><DEDENT>elif num_domains == <NUM_LIT:3>:<EOL><INDENT>template = '<STR_LIT>' <EOL><DEDENT>elif num_domains == <NUM_LIT:4>:<EOL><INDENT>template = '<STR_LIT>'<EOL><DEDENT>self.domains = [d.title() for d in random.sample(self.genome, num_domains)]<EOL>self.epithet = template % (title, *self.domains)<EOL>
Divine an appropriate epithet for this God. (See what I did there?)