X-Git-Url: https://plomlompom.com/repos/%7B%7Bprefix%7D%7D/ledger2?a=blobdiff_plain;f=plomrogue%2Ftasks.py;h=cc375272c1edd941aeafbbb4117a3d30db142d8c;hb=1ece82099bbf02faed3d1348d7014b8ed38528a9;hp=95945055e0f7e15923bc34780a985c2b3a5ea556;hpb=509d9ca8e54529b5d728b1635df4ba4bbb0bcc23;p=plomrogue2 diff --git a/plomrogue/tasks.py b/plomrogue/tasks.py index 9594505..cc37527 100644 --- a/plomrogue/tasks.py +++ b/plomrogue/tasks.py @@ -68,7 +68,7 @@ class Task_MOVE(Task): if 'sittable' in terrain_type.tags: self.thing.standing = False self.thing.send_msg('CHAT "You sink into the %s. ' - 'Staying here will reduce your weariness."' + 'Staying here will replenish your energy."' % terrain_type.description) self.thing.invalidate('fov') if self.thing.blocks_light: @@ -179,6 +179,9 @@ class Task_DROP(Task): target_position = self._get_move_target() dropped = self.thing.uncarry() dropped.position = target_position + if dropped.type_ == 'Crate': + for item in dropped.content: + item.position = target_position targets = [t for t in self.thing.game.things if t.position == dropped.position and not t == dropped] for target in targets: @@ -371,3 +374,12 @@ class Task_SPIN(Task): def do(self): self.thing.carrying.spin() self.thing.send_msg('CHAT "You spin this object."') + + + +class Task_DANCE(Task): + + def do(self): + self.thing.send_msg('CHAT "You dance."') + self.thing.dancing += 10 + self.thing.game.changed = True