Skip to content
Snippets Groups Projects
Commit 4a8beb5f authored by dg's avatar dg
Browse files

The endgame loot is more powerful

git-svn-id: http://svn.net-core.org/repos/t-engine4@1945 51575b47-30f0-44d4-a5cc-537603b46e54
parent 009eb556
No related branches found
No related tags found
No related merge requests found
......@@ -706,7 +706,8 @@ function _M:setupCommands()
if config.settings.tome.cheat then
-- local m = game.zone:makeEntityByName(game.level, "actor", "TEST")
-- game.zone:addEntity(game.level, m, "actor", game.player.x, game.player.y+1)
self:changeLevel(1, "tol-falas-ambush")
self:changeLevel(15, "high-peak")
game.player:magicMap(50)
-- self.player:grantQuest("anti-antimagic")
end
end,
......
......@@ -535,6 +535,10 @@ function _M:on_prepickup(who, idx)
who:learnLore(self.lore)
return true
end
if who.player and self.force_lore_artifact then
game.player:additionalLore(self.unique, self:getName(), "artifacts", self.desc)
game.player:learnLore(self.unique)
end
end
--- Can it stacks with others of its kind ?
......
......@@ -25,7 +25,7 @@ local Stats = require "engine.interface.ActorStats"
-- The staff of absorption, the reason the game exists!
newEntity{ define_as = "STAFF_ABSORPTION_AWAKENED", base="BASE_STAFF",
unique = true, godslayer=true,
name = "Awakened Staff of Absorption", identified=true,
name = "Awakened Staff of Absorption", identified=true, force_lore_artifact=true,
display = "\\", color=colors.VIOLET, image = "object/artifact/staff_absorption.png",
encumber = 7,
desc = [[Carved with runes of power, this staff seems to have been made long ago. Yet it bears no signs of tarnishment.
......@@ -50,8 +50,8 @@ The Sorcerers seem to have awakened its power.
inc_stats = { [Stats.STAT_MAG] = 10, [Stats.STAT_WIL] = 10 },
},
max_power = 500, power_regen = 1,
use_power = { name = "absorb energies", power = 500,
max_power = 200, power_regen = 1,
use_power = { name = "absorb energies", power = 200,
use = function(self, who)
local tg = {type="hit", range=8}
local x, y = who:getTarget(tg)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment