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

Arcane Blades can access Stone spells when unlocked. Earthen Missiles can be cast by Arcane Combat

git-svn-id: http://svn.net-core.org/repos/t-engine4@4143 51575b47-30f0-44d4-a5cc-537603b46e54
parent b3d7063d
No related branches found
No related tags found
No related merge requests found
......@@ -128,7 +128,7 @@ function _M:useTalent(id, who, force_level, ignore_cd, force_target)
local old_level
local old_target
if force_level then old_level = who.talents[id]; who.talents[id] = force_level end
if force_target then old_target = rawget(who, "getTarget"); who.getTarget = function(a) a.getTarget = nil; return force_target.x, force_target.y, not force_target.__no_self and force_target end end
if force_target then old_target = rawget(who, "getTarget"); who.getTarget = function(a) return force_target.x, force_target.y, not force_target.__no_self and force_target end end
local ret = ab.action(who, ab)
if force_target then who.getTarget = old_target end
if force_level then who.talents[id] = old_level end
......
......@@ -156,6 +156,9 @@ newBirthDescriptor{
["cunning/survival"]={true, -0.1},
["cunning/dirty"]={false, -0.1},
},
unlockable_talents_types = {
["spell/stone"]={false, 0.1, "mage_geomancer"},
},
talents = {
[ActorTalents.T_FLAME] = 1,
[ActorTalents.T_ARCANE_COMBAT] = 1,
......@@ -164,7 +167,7 @@ newBirthDescriptor{
},
copy = {
max_life = 100,
talent_cd_reduction={[ActorTalents.T_FLAME]=-3, [ActorTalents.T_LIGHTNING]=-3, },
talent_cd_reduction={[ActorTalents.T_FLAME]=-3, [ActorTalents.T_LIGHTNING]=-3, [ActorTalents.T_EARTHEN_MISSILES]=-3, },
resolvers.equip{ id=true,
{type="weapon", subtype="greatsword", name="iron greatsword", autoreq=true, ego_chance=-1000, ego_chance=-1000},
{type="armor", subtype="light", name="rough leather armour", autoreq=true, ego_chance=-1000, ego_chance=-1000},
......
......@@ -200,10 +200,10 @@ newEntity{ base = "BASE_NPC_XORN", define_as = "FULL_HARKOR_ZUN",
game:setAllowedBuild("mage_geomancer", true)
world:gainAchievement("GEOMANCER", game.player)
local p = game.party:findMember{main=true}
if p.descriptor.subclass == "Archmage" then
if p.descriptor.subclass == "Archmage" or p.descriptor.subclass == "Arcane Blade" then
if p:knowTalentType("spell/stone") == nil then
p:learnTalentType("spell/stone", false)
p:setTalentTypeMastery("spell/stone", 1.3)
p:setTalentTypeMastery("spell/stone", p.descriptor.subclass == "Archmage" and 1.3 or 1.1)
end
end
end
......
......@@ -34,6 +34,7 @@ newTalent{
local mana = self:getMana() - 1
if self:knowTalent(self.T_FLAME) and mana > self:getTalentFromId(self.T_FLAME).mana * fatigue then spells[#spells+1] = self.T_FLAME end
if self:knowTalent(self.T_LIGHTNING) and mana > self:getTalentFromId(self.T_LIGHTNING).mana * fatigue then spells[#spells+1] = self.T_LIGHTNING end
if self:knowTalent(self.T_EARTHEN_MISSILES) and mana > self:getTalentFromId(self.T_EARTHEN_MISSILES).mana * fatigue then spells[#spells+1] = self.T_EARTHEN_MISSILES end
local tid = rng.table(spells)
if tid then
-- Extending beam target, assumes a maximum range of 10
......@@ -73,7 +74,7 @@ newTalent{
return true
end,
info = function(self, t)
return ([[Allows one to use a melee weapon to focus spells, granting %d%% chance per melee attack to deliver a Flame, or Lightning spell as a free action on the target.
return ([[Allows one to use a melee weapon to focus spells, granting %d%% chance per melee attack to deliver a Flame, Lightning or Earthen Missiles spell as a free action on the target.
Delivering the spell this way will not trigger a spell cooldown, but only works if the spell is not cooling-down.
The chance increases with dexterity.]]):
format(20 + self:getTalentLevel(t) * (1 + self:getDex(9, true)))
......
......@@ -22,7 +22,7 @@ return "New Talent Category: #LIGHT_GREEN#Stone",
While most mages are content using the Earth school, a few of them took their research deeper and created Stone magic.
At its core lies the Crystalline Focus, which can create attacks so sharp they can cut through physical immunity.
You have mastered stone magic and can now create new Archmage characters that can learn the #LIGHT_GREEN#Stone talents#WHITE#.
You have mastered stone magic and can now create new Archmage and Arcane Blade characters that can learn the #LIGHT_GREEN#Stone talents#WHITE#.
Talents:
- #YELLOW#Earthen Missiles: #WHITE#Fires multiple missiles of stone indepentenly to targets
......
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