home · contact · privacy
Plugin: Don't count felling non-trees as blasphemic.
authorChristian Heller <c.heller@plomlompom.de>
Wed, 24 Feb 2016 01:15:09 +0000 (02:15 +0100)
committerChristian Heller <c.heller@plomlompom.de>
Wed, 24 Feb 2016 01:15:09 +0000 (02:15 +0100)
plugins/server/PleaseTheIslandGod.py

index 59fbefcfa06b242d802120147c838694a5e84ae8..fba1341d180fd8e648478f19260bba7cad48022f 100644 (file)
@@ -462,7 +462,8 @@ def actor_move(t):
                              0 == int(rand.next() / (3 * chop_power))))):
                     if t == world_db["Things"][0]:
                         log("You chop it DOWN.")
-                        world_db["GOD_FAVOR"] -= 10
+                        if ord("X") == world_db["MAP"][pos]:
+                            world_db["GOD_FAVOR"] -= 10
                     world_db["MAP"][pos] = ord(".")
                     i = 3 if case_X else 1
                     for i in range(i):