diff --git a/game/modules/tome/data/damage_types.lua b/game/modules/tome/data/damage_types.lua index 8165581a03a95ff28fffd5028da64cac32287359..9539ee7131bcf96b1b58047d64284beb389fcf71 100644 --- a/game/modules/tome/data/damage_types.lua +++ b/game/modules/tome/data/damage_types.lua @@ -1402,11 +1402,14 @@ newDamageType{ if feat.dig then local newfeat_name, newfeat, silence = feat.dig, nil, false if type(feat.dig) == "function" then newfeat_name, newfeat, silence = feat.dig(src, x, y, feat) end - game.level.map(x, y, Map.TERRAIN, newfeat or game.zone.grid_list[newfeat_name]) - src.dug_times = (src.dug_times or 0) + 1 - game.nicer_tiles:updateAround(game.level, x, y) - if not silence then - game.logSeen({x=x,y=y}, "%s turns into %s.", feat.name:capitalize(), (newfeat or game.zone.grid_list[newfeat_name]).name) + newfeat = newfeat or game.zone.grid_list[newfeat_name] + if newfeat then + game.level.map(x, y, Map.TERRAIN, newfeat) + src.dug_times = (src.dug_times or 0) + 1 + game.nicer_tiles:updateAround(game.level, x, y) + if not silence then + game.logSeen({x=x,y=y}, "%s turns into %s.", feat.name:capitalize(), newfeat.name) + end end end end @@ -1886,9 +1889,12 @@ newDamageType{ if feat.grow then local newfeat_name, newfeat, silence = feat.grow, nil, false if type(feat.dig) == "function" then newfeat_name, newfeat, silence = feat.grow(src, x, y, feat) end - game.level.map(x, y, Map.TERRAIN, newfeat or game.zone.grid_list[newfeat_name]) - if not silence then - game.logSeen({x=x,y=y}, "%s turns into %s.", feat.name:capitalize(), (newfeat or game.zone.grid_list[newfeat_name]).name) + newfeat = newfeat or game.zone.grid_list[newfeat_name] + if newfeat then + game.level.map(x, y, Map.TERRAIN, newfeat) + if not silence then + game.logSeen({x=x,y=y}, "%s turns into %s.", feat.name:capitalize(), (newfeat or game.zone.grid_list[newfeat_name]).name) + end end end end diff --git a/game/modules/tome/data/zones/old-forest/zone.lua b/game/modules/tome/data/zones/old-forest/zone.lua index bb8948f3fbd9a742ed34e49dd3c4013e622f95be..c758a98c0f49b9a8e30a8175f42fad172a0580f4 100644 --- a/game/modules/tome/data/zones/old-forest/zone.lua +++ b/game/modules/tome/data/zones/old-forest/zone.lua @@ -18,6 +18,7 @@ -- darkgod@te4.org local layout = game.state:alternateZone(short_name, {"CRYSTALINE", 2}) +layout="CRYSTALINE" local is_crystaline = layout == "CRYSTALINE" return {