def render(self, screen, rc, left_offset, top_offset, staff): supplies = { 'i': self.model.inventory_ivs > 0, 'c': self.model.inventory_cucumbers > 0, 't': self.model.inventory_tapes > 0, 'j': self.model.inventory_jackets > 0 } employee = self.model.session.get_current_angry_employee() ROOM_RENDERER.render(screen, rc, self.model.session.active_devices, staff, self.interesting_coords, supplies, self.animations, False, employee)
def render(self, screen, rc): interesting_coords = self.base_interesting_coords if self.current_valid_coord != None: interesting_coords = interesting_coords + [[self.item_type] + list(self.current_valid_coord)] ROOM_RENDERER.render(screen, rc, None, None, interesting_coords, None, None, True, None) text = 'Cancel' yoffset = 0 if self.item_type == None: text = 'Done' yoffset = -int(abs(math.sin(rc * 2 * 3.14159 / 30) * 5)) TEXT.render(screen, text, 'yellow' if self.is_over_done else 'white', 8, 8 + yoffset)