home · contact · privacy
Plugin: Add new terrain type names.
[plomrogue] / plugins / server / PleaseTheIslandGod.py
index 59fbefcfa06b242d802120147c838694a5e84ae8..e34d840889523b81d6ebbbea915362804f790349 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):
@@ -654,6 +655,9 @@ if not "TOOL_0" in world_db:
     world_db["TOOL_0"] = 0
 if not "LUMBER" in world_db:
     world_db["LUMBER"] = 0
+world_db["terrain_names"][":"] = "SOIL"
+world_db["terrain_names"]["|"] = "WALL"
+world_db["terrain_names"]["_"] = "ALTAR"
 world_db["specials"] = ["SLIPPERS", "PLANT_0", "PLANT_1", "TOOL_0", "LUMBER"]
 io_db["worldstate_write_order"] += [["GOD_FAVOR", "world_int"]]