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

fix

git-svn-id: http://svn.net-core.org/repos/t-engine4@3340 51575b47-30f0-44d4-a5cc-537603b46e54
parent 13b1bc6d
No related branches found
No related tags found
No related merge requests found
......@@ -42,7 +42,7 @@ newEntity{
open_door = true,
resolvers.sustains_at_birth(),
-- resolvers.inscriptions(2, "infusion"),
resolvers.inscriptions(2, "infusion"),
autolevel = "warrior",
ai = "dumb_talented_simple", ai_state = { ai_move="move_dmap", talent_in=3, },
......@@ -55,17 +55,6 @@ newEntity{
end,
}
newEntity{ base = "BASE_NPC_ORC_GORBAT",
name = "orc TEST", color=colors.YELLOW,
desc = [[A fierce orc attuned to the wilds.]],
level_range = {30, nil}, exp_worth = 1,
rarity = 1,
ai = "tactical",
ai_state = { talent_in=1, },
rank=3,
resolvers.inscriptions(1, {"speed rune"}),
}
newEntity{ base = "BASE_NPC_ORC_GORBAT",
name = "orc summoner", color=colors.YELLOW,
desc = [[A fierce orc attuned to the wilds.]],
......
......@@ -358,7 +358,7 @@ newEntity{ base = "BASE_RUNE",
dur = resolvers.mbonus_level(4, 3),
power = resolvers.mbonus_level(30, 30, function(e, v) return v * 0.3 end),
use_stat_mod = 0.3,
nb_uses = 2, --resolvers.mbonus_level(7, 4),
nb_uses = resolvers.mbonus_level(7, 4),
},
inscription_talent = "RUNE:_SPEED",
}
......
......@@ -411,6 +411,10 @@ newInscription{
points = 1,
is_spell = true,
tactical = { DEFEND = 3, ESCAPE = 2 },
on_pre_use = function(self, t)
local ok, data = pcall(self.getInscriptionData, self, t.short_name)
return ok and data.nb_uses > 0
end,
action = function(self, t)
local data = self:getInscriptionData(t.short_name)
self:setEffect(self.EFF_INVISIBILITY, data.dur, {power=data.power + data.inc_stat})
......@@ -435,6 +439,10 @@ newInscription{
is_spell = true,
no_energy = true,
tactical = { BUFF = 4 },
on_pre_use = function(self, t)
local ok, data = pcall(self.getInscriptionData, self, t.short_name)
return ok and data.nb_uses > 0
end,
action = function(self, t)
local data = self:getInscriptionData(t.short_name)
self:setEffect(self.EFF_SPEED, data.dur, {power=(data.power + data.inc_stat) / 100})
......
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