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

Fix Vestments of the Conclave

git-svn-id: http://svn.net-core.org/repos/t-engine4@2066 51575b47-30f0-44d4-a5cc-537603b46e54
parent 97666cc7
No related branches found
No related tags found
No related merge requests found
......@@ -726,7 +726,7 @@ function _M:setupCommands()
-- game.zone:addEntity(game.level, m, "actor", game.player.x, game.player.y+1)
-- game.player:magicMap(50)
-- self.player:grantQuest("anti-antimagic")
game:changeLevel(1,"reknor")
game:changeLevel(1,"test")
end
end,
}
......
......@@ -890,6 +890,9 @@ It was made by humans for Humans; only they can harness the true power of the ro
},
on_wear = function(self, who)
if who.descriptor and who.descriptor.race == "Human" then
local Stats = require "engine.interface.ActorStats"
local DamageType = require "engine.DamageType"
self.wielded._special1 = {"inc_stats", who:addTemporaryValue("inc_stats", { [Stats.STAT_MAG] = 2, [Stats.STAT_CUN] = 5, }) }
self.wielded._special2 = {"inc_damage", who:addTemporaryValue("inc_damage", {[DamageType.ARCANE]=5}) }
self.wielded._special3 = {"combat_spellcrit", who:addTemporaryValue("combat_spellcrit", 2) }
......@@ -1038,6 +1041,8 @@ newEntity{ base = "BASE_BATTLEAXE",
},
on_wear = function(self, who)
if who.descriptor and who.descriptor.race == "Dwarf" then
local Stats = require "engine.interface.ActorStats"
self.wielded._special1 = {"inc_stats", who:addTemporaryValue("inc_stats", { [Stats.STAT_CON] = 4, [Stats.STAT_DEX] = 4, }) }
self.wielded._special2 = {"stun_immune", who:addTemporaryValue("stun_immune", 0.5) }
self.wielded._special3 = {"knockback_immune", who:addTemporaryValue("knockback_immune", 0.5) }
......
......@@ -17,4 +17,4 @@
-- Nicolas Casalini "DarkGod"
-- darkgod@te4.org
load("/data/general/npcs/spider.lua", rarity(0))
load("/data/general/npcs/ant.lua", rarity(0))
......@@ -38,7 +38,7 @@ return {
},
actor = {
class = "engine.generator.actor.Random",
nb_npc = {0, 0},
nb_npc = {100, 100},
},
--[[
object = {
......@@ -59,7 +59,7 @@ return {
}, },
},
},
--[[
post_process = function(level)
local Map = require "engine.Map"
level.background_particle = require("engine.Particles").new("starfield", 1, {width=Map.viewport.width, height=Map.viewport.height})
......@@ -70,4 +70,5 @@ return {
for i = 1, nb_keyframes do level.background_particle:update() end
level.background_particle.ps:toScreen(x, y, true, 1, nb_keyframes)
end,
]]
}
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