def clean(self): if person.get_PC().current_health() < person.get_PC().health() // 2 or person.get_PC().current_mana() < person.get_PC().mana() // 2: universal.say(universal.format_text([[person.get_PC().name, '''considers taking some time to clean, but plops down on''', person.hisher(), '''bed instead.''', person.HeShe(), '''is too darn tired to clean.''']]), justification=0) else: universal.say(universal.format_text([[person.get_PC().name, '''takes some time to do some cleaning.''', person.HeShe(), '''cleans dirty clothing, scrapes the mud off''', person.hisher(), '''boots, washes''', person.hisher(), '''linens, and makes sure''', person.hisher(), '''equipment is in good condition.''']]), justification=0) self.dirtiness = 0
def style_hair_interpreter(keyEvent): try: num = int(universal.key_name(keyEvent)) - 1 except ValueError: if keyEvent.key == K_BACKSPACE: bedroom = universal.state.bedroom rest_mode(bedroom) else: global chosenPerson try: chosenPerson.hairStyle = chosenPerson.hair_styles()[num] except IndexError: return else: universal.say(format_line([chosenPerson.name, format_line(['''frees''', person.hisher(chosenPerson), '''hair.''']) if chosenPerson.hair_styles()[num] == 'down' else format_line(['''pulls''', person.hisher(chosenPerson), '''hair into''', '''some cute pigtails''' if chosenPerson.hair_styles()[num] == 'pigtails' else format_line(['''a''', chosenPerson.hair_styles()[num]]) + "."])]), justification=0)
#rest. try: import episode1 except ImportError, e: self.clean_check() else: #Horrible, horrible hack. Must figure out a better way of implementing this kind of thing. if universal.state.player.currentEpisode == "Tension": if 'taking_Carrie_home' in person.get_PC().keywords: episode1.ep1_carrie_sex() else: episode1.ep1_catalin() else: self.clean_check() universal.say(universal.format_text([[person.get_PC().name, '''plops down in''', person.hisher(), '''nice bed, and sleeps the night away.''']]), justification=0) #TODO: Need to figure out a way to implement the health penalties. for char in universal.state.party: if char.coins >= universal.state.livingExpenses: char.coins -= 3 else: char.coins = 0 char.restores() self.dayNum += 1 #self.dirtiness += 1 def clean_check(self): pass """ if self.dayNum % 7 == 0: