X-Git-Url: https://plomlompom.com/repos/foo.html?a=blobdiff_plain;ds=sidebyside;f=new2%2Fplomrogue%2Ftasks.py;h=0fe68791d9ee779df2f6160a8f85bc0f2ade9dcf;hb=a213ed788c8f305ea9c2192eabfb0d3562c8b2fa;hp=e60012250baed701d8c99f61e6508d90a5980dcd;hpb=0d6e4ded54a3cff9ec068dc329796b781b9d7e16;p=plomrogue2-experiments
diff --git a/new2/plomrogue/tasks.py b/new2/plomrogue/tasks.py
index e600122..0fe6879 100644
--- a/new2/plomrogue/tasks.py
+++ b/new2/plomrogue/tasks.py
@@ -53,3 +53,17 @@ class Task_WRITE(Task):
def do(self):
self.thing.game.map[self.thing.position] = self.args[0]
+
+
+
+class Task_FLATTEN_SURROUNDINGS(Task):
+ todo = 10
+
+ def check(self):
+ pass
+
+ def do(self):
+ self.thing.game.map[self.thing.position] = '.'
+ for yx in self.thing.game.map_geometry.get_neighbors(self.thing.position).values():
+ if yx is not None:
+ self.thing.game.map[yx] = '.'