home
·
contact
·
privacy
projects
/
plomrogue2
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add dancing task/action.
[plomrogue2]
/
plomrogue
/
tasks.py
diff --git
a/plomrogue/tasks.py
b/plomrogue/tasks.py
index eb9d31ac3bdd72852eeb664f70d7fd3b49fd1c27..cc375272c1edd941aeafbbb4117a3d30db142d8c 100644
(file)
--- 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. '
if 'sittable' in terrain_type.tags:
self.thing.standing = False
self.thing.send_msg('CHAT "You sink into the %s. '
- 'Staying here will re
duce your weariness
."'
+ 'Staying here will re
plenish your energy
."'
% terrain_type.description)
self.thing.invalidate('fov')
if self.thing.blocks_light:
% terrain_type.description)
self.thing.invalidate('fov')
if self.thing.blocks_light:
@@
-374,3
+374,12
@@
class Task_SPIN(Task):
def do(self):
self.thing.carrying.spin()
self.thing.send_msg('CHAT "You spin this object."')
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