diff --git a/game/modules/tome/data/zones/sandworm-lair/npcs.lua b/game/modules/tome/data/zones/sandworm-lair/npcs.lua index 9cb4b251f750d059cd84fbd7431ce6e289e34cb7..09c3049b25c45820cb598c2d45efe6973bbf2ab6 100644 --- a/game/modules/tome/data/zones/sandworm-lair/npcs.lua +++ b/game/modules/tome/data/zones/sandworm-lair/npcs.lua @@ -14,6 +14,8 @@ newEntity{ define_as = "SANDWORM_TUNNELER", max_life = 500, energy = {mod=0.5}, + move_body = 1, + autolevel = "warrior", ai = "sandworm_tunneler", ai_state = {}, } @@ -33,8 +35,9 @@ newEntity{ define_as = "SANDWORM_QUEEN", resists = { [DamageType.FIRE] = -50 }, body = { INVEN = 10, MAINHAND=1, OFFHAND=1, BODY=1 }, - equipment = resolvers.equip{ {type="armor", subtype="shield", defined="OLD_MAN_WILLOW_SHIELD"}, }, - drops = resolvers.drops{chance=100, nb=5, {ego_chance=100} }, + + resolvers.drops{chance=100, nb=1, {defined="TOME_OF_IMPROVEMENT"}, }, + resolvers.drops{chance=100, nb=5, {ego_chance=100} }, talents = resolvers.talents{ [Talents.T_STAMINA_POOL]=1, [Talents.T_STUN]=2, diff --git a/game/modules/tome/data/zones/sandworm-lair/objects.lua b/game/modules/tome/data/zones/sandworm-lair/objects.lua index 8ee32809634d507e7496f8eeb462d7f21bb6a8d4..516ea7b5813bbb554bf1d5d0432e0236237221ab 100644 --- a/game/modules/tome/data/zones/sandworm-lair/objects.lua +++ b/game/modules/tome/data/zones/sandworm-lair/objects.lua @@ -1,27 +1,20 @@ load("/data/general/objects/objects.lua") --- Artifact, droped (and used!) by Bill the Stone Troll +-- Artifact, droped by the sandworm queen +newEntity{ + define_as = "TOME_OF_IMPROVEMENT", + type = "scroll", subtype = "tome", + name = "Tome of Improvemend", unique=true, + display = "?", color=colors.VIOLET, + desc = [[This very rare tome of power contains magic words that can make the user stronger, wiser, more able, ...]], + cost = 4000, -newEntity{ base = "BASE_SHIELD", - define_as = "OLD_MAN_WILLOW_SHIELD", - name = "Old Man's Willow Barkwood", unique=true, - desc = [[The barkwood of the Old Man's Willow, made into roughtly the shape of a shield.]], - require = { stat = { str=25 }, }, - cost = 20, - - special_combat = { - dam = resolvers.rngavg(20,30), - physcrit = 2, - dammod = {str=1.5}, - }, - wielder = { - combat_armor = 5, - combat_def = 9, - fatigue = 14, - resists = { - [DamageType.FIRE] = -20, - [DamageType.COLD] = 20, - [DamageType.NATURE] = 20, - }, - }, + use_simple = { name="increase talent and stat points", use = function(self, who) + game.logPlayer(who, "#00FFFF#You read the tome alound and feel its magic change you!") + who.unused_stats = who.unused_stats + 3 + who.unused_talents = who.unused_talents + 2 + game.logPlayer(who, "You have %d stat point(s) to spend. Press G to use them.", who.unused_stats) + game.logPlayer(who, "You have %d talent point(s) to spend. Press G to use them.", who.unused_talents) + return "destroy", true + end} } diff --git a/game/modules/tome/data/zones/sandworm-lair/zone.lua b/game/modules/tome/data/zones/sandworm-lair/zone.lua index 1c22cec2df8b193d0c7646b0c0c743591367f0e6..27aa39c1227895a13703f2f5f58e65ef63894737 100644 --- a/game/modules/tome/data/zones/sandworm-lair/zone.lua +++ b/game/modules/tome/data/zones/sandworm-lair/zone.lua @@ -4,14 +4,15 @@ return { level_scheme = "player", max_level = 7, width = 50, height = 50, - all_remembered = true, - all_lited = true, +-- all_remembered = true, +-- all_lited = true, -- persistant = true, generator = { map = { class = "engine.generator.map.Roomer", no_tunnels = true, nb_rooms = 10, + lite_room_chance = 0, rooms = {"forest_clearing"}, ['.'] = "SAND", ['#'] = "SANDWALL", @@ -25,7 +26,7 @@ return { adjust_level = {-1, 2}, guardian = "SANDWORM_QUEEN", -- Number of tunnelers + 2 (one per stair) - nb_tunnelers = 2, + nb_tunnelers = 3, }, object = { class = "engine.generator.object.Random", diff --git a/ideas/zones.ods b/ideas/zones.ods index 933e16047a0e018dc590cb8113e4c59892e87356..b91b8e63adab30daa0a37fc2d72a58e91ee7c046 100644 Binary files a/ideas/zones.ods and b/ideas/zones.ods differ