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

The sentient creatures of Maj'Eyal have created a loby to counter the players....

The sentient creatures of Maj'Eyal have created a loby to counter the players. They demand to have access to random runes and infusions. Their demand has been fulfilled!


git-svn-id: http://svn.net-core.org/repos/t-engine4@2426 51575b47-30f0-44d4-a5cc-537603b46e54
parent 4c34d7f6
No related branches found
No related tags found
No related merge requests found
Showing
with 50 additions and 4 deletions
......@@ -43,6 +43,7 @@ newEntity{
silence_immune = 0.5,
resolvers.talents{ [Talents.T_HEAVY_ARMOUR_TRAINING]=1, },
resolvers.inscriptions(1, "rune"),
autolevel = "caster",
ai = "dumb_talented_simple", ai_state = { ai_move="move_dmap", talent_in=1, },
......
......@@ -42,6 +42,7 @@ newEntity{
open_door = true,
resolvers.talents{ [Talents.T_HEAVY_ARMOUR_TRAINING]=1, },
resolvers.inscriptions(1, "rune"),
autolevel = "warrior",
ai = "dumb_talented_simple", ai_state = { ai_move="move_dmap", talent_in=3, },
......
......@@ -40,6 +40,8 @@ newEntity{
size_category = 3,
no_breath = 1,
demon = 1,
resolvers.inscriptions(1, "rune"),
}
newEntity{ base = "BASE_NPC_MAJOR_DEMON",
......
......@@ -40,6 +40,9 @@ newEntity{
open_door = true,
resolvers.inscriptions(1, "rune"),
resolvers.inscriptions(1, "infusion"),
autolevel = "warrior",
ai = "dumb_talented_simple", ai_state = { ai_move="move_dmap", talent_in=5, },
energy = { mod=1.2 },
......
......@@ -37,6 +37,7 @@ newEntity{
open_door = true,
resolvers.inscriptions(1, "rune"),
resolvers.tmasteries{ ["technique/2hweapon-offense"]=1, ["technique/2hweapon-cripple"]=1, },
blind_immune = 1,
......
......@@ -37,6 +37,8 @@ newEntity{
size_category = 3,
open_door = true,
resolvers.inscriptions(1, "infusion"),
resolvers.inscriptions(1, "rune"),
autolevel = "warrior",
ai = "dumb_talented_simple", ai_state = { ai_move="move_dmap", talent_in=1, },
......
......@@ -40,6 +40,8 @@ newEntity{
open_door = true,
resolvers.sustains_at_birth(),
resolvers.inscriptions(2, "infusion"),
autolevel = "warrior",
ai = "dumb_talented_simple", ai_state = { ai_move="move_dmap", talent_in=3, },
energy = { mod=1 },
......
......@@ -39,6 +39,7 @@ newEntity{
open_door = true,
resolvers.sustains_at_birth(),
resolvers.inscriptions(3, "infusion"),
autolevel = "warrior",
ai = "dumb_talented_simple", ai_state = { ai_move="move_dmap", talent_in=3, },
......
......@@ -38,6 +38,7 @@ newEntity{
size_category = 3,
open_door = true,
resolvers.inscriptions(3, "rune"),
autolevel = "caster",
ai = "dumb_talented_simple", ai_state = { ai_move="move_dmap", talent_in=1, },
......
......@@ -40,6 +40,8 @@ newEntity{
open_door = true,
resolvers.inscriptions(2, "rune"),
autolevel = "caster",
ai = "dumb_talented_simple", ai_state = { ai_move="move_dmap", talent_in=1, },
energy = { mod=1 },
......
......@@ -56,6 +56,7 @@ newEntity{ base = "BASE_NPC_ORC",
{type="weapon", subtype="waraxe", autoreq=true},
{type="armor", subtype="shield", autoreq=true},
},
resolvers.inscriptions(1, "infusion"),
combat_armor = 2, combat_def = 0,
resolvers.talents{ [Talents.T_SHIELD_PUMMEL]=1, },
}
......@@ -72,6 +73,7 @@ newEntity{ base = "BASE_NPC_ORC",
ai_state = { talent_in=1, },
autolevel = "archer",
resolvers.inscriptions(1, "infusion"),
resolvers.equip{
{type="weapon", subtype="longbow", autoreq=true},
{type="ammo", subtype="arrow", autoreq=true},
......@@ -89,6 +91,7 @@ newEntity{ base = "BASE_NPC_ORC", define_as = "ORC",
{type="weapon", subtype="battleaxe", autoreq=true},
},
combat_armor = 2, combat_def = 0,
resolvers.inscriptions(1, "infusion"),
resolvers.talents{ [Talents.T_SUNDER_ARMOUR]=2, [Talents.T_CRUSH]=2, },
}
......@@ -105,6 +108,7 @@ newEntity{ base = "BASE_NPC_ORC", define_as = "ORC_FIRE_WYRMIC",
},
combat_armor = 2, combat_def = 0,
resolvers.inscriptions(1, "infusion"),
make_escort = {
{type="humanoid", subtype="orc", name="orc soldier", number=resolvers.mbonus(3, 2)},
},
......@@ -129,6 +133,7 @@ newEntity{ base = "BASE_NPC_ORC",
},
combat_armor = 2, combat_def = 0,
resolvers.inscriptions(1, "infusion"),
make_escort = {
{type="humanoid", subtype="orc", name="orc soldier", number=resolvers.mbonus(3, 2)},
},
......@@ -158,6 +163,7 @@ newEntity{ base = "BASE_NPC_ORC",
[Talents.T_SHADOWSTRIKE]=3,
},
max_life = resolvers.rngavg(80,100),
resolvers.inscriptions(1, "infusion"),
resolvers.sustains_at_birth(),
autolevel = "rogue",
......@@ -176,6 +182,7 @@ newEntity{ base = "BASE_NPC_ORC",
{type="weapon", subtype="dagger", ego_chance=20, autoreq=true},
{type="armor", subtype="light", autoreq=true}
},
resolvers.inscriptions(1, "infusion"),
resolvers.talents{
[Talents.T_STEALTH]=5,
[Talents.T_LETHALITY]=4,
......@@ -201,6 +208,7 @@ newEntity{ base = "BASE_NPC_ORC",
{type="weapon", subtype="dagger", ego_chance=20, autoreq=true},
{type="armor", subtype="light", autoreq=true}
},
resolvers.inscriptions(3, "infusion"),
resolvers.talents{
[Talents.T_STEALTH]=5,
[Talents.T_LETHALITY]=4,
......
......@@ -119,6 +119,7 @@ newEntity{ base = "BASE_NPC_SKELETON",
max_life = resolvers.rngavg(90,100),
combat_armor = 5, combat_def = 1,
rank = 3,
resolvers.inscriptions(1, "rune"),
resolvers.talents{
[Talents.T_HEAVY_ARMOUR_TRAINING]=1,
[Talents.T_SHIELD_PUMMEL]=1,
......
......@@ -40,6 +40,8 @@ newEntity{
energy = { mod=1 },
stats = { str=20, dex=8, mag=6, con=16 },
resolvers.inscriptions(1, "infusion"),
resists = { [DamageType.PHYSICAL] = 20, [DamageType.COLD] = 50, },
no_breath = 1,
......
......@@ -38,6 +38,8 @@ newEntity{
energy = { mod=1.2 },
stats = { str=15, dex=15, mag=8, con=10 },
resolvers.inscriptions(2, "infusion"),
resolvers.tmasteries{ ["technique/other"]=0.3 },
resolvers.sustains_at_birth(),
......
......@@ -44,6 +44,8 @@ newEntity{
open_door = true,
resolvers.inscriptions(1, "infusion"),
autolevel = "rogue",
ai = "dumb_talented_simple", ai_state = { ai_move="move_dmap", talent_in=5, },
energy = { mod=1 },
......
......@@ -100,6 +100,7 @@ newEntity{ base = "BASE_NPC_TROLL",
mana_regen = 20,
combat_armor = 8, combat_def = 4,
autolevel = "warriormage",
resolvers.inscriptions(1, "rune"),
resolvers.talents{
[Talents.T_STUN]=4, [Talents.T_KNOCKBACK]=3,
[Talents.T_LIGHTNING]=4,
......
......@@ -58,6 +58,8 @@ newEntity{
open_door = true,
resolvers.inscriptions(1, "rune"),
resolvers.tmasteries{ ["technique/other"]=0.5, ["spell/phantasm"]=0.8, },
resolvers.sustains_at_birth(),
......@@ -113,6 +115,7 @@ It can summon the very shades of its victims from beyond the grave to come ensla
combat_armor = 12, combat_def = 10,
rank = 3,
ai = "dumb_talented_simple", ai_state = { talent_in=6, },
resolvers.inscriptions(1, "rune"),
summon = {{type="undead", number=1, hasxp=false}, },
resolvers.talents{ [Talents.T_STUN]=2, [Talents.T_SUMMON]=1, [Talents.T_BLUR_SIGHT]=3, [Talents.T_PHANTASMAL_SHIELD]=2, [Talents.T_ROTTING_DISEASE]=3, },
}
......@@ -126,6 +129,7 @@ newEntity{ base = "BASE_NPC_VAMPIRE",
combat_armor = 15, combat_def = 15,
rank = 3,
ai = "dumb_talented_simple", ai_state = { talent_in=4, },
resolvers.inscriptions(1, "rune"),
summon = {{type="undead", number=1, hasxp=false}, },
resolvers.talents{ [Talents.T_STUN]=4, [Talents.T_SUMMON]=1, [Talents.T_BLUR_SIGHT]=4, [Talents.T_PHANTASMAL_SHIELD]=5, [Talents.T_ROTTING_DISEASE]=5, },
make_escort = {
......
......@@ -41,6 +41,7 @@ newEntity{
open_door = true,
resolvers.talents{ [Talents.T_HEAVY_ARMOUR_TRAINING]=1, },
resolvers.inscriptions(1, "infusion"),
autolevel = "warrior",
ai = "dumb_talented_simple", ai_state = { ai_move="move_dmap", talent_in=3, },
......
......@@ -57,7 +57,7 @@ newEntity{ define_as = "SHADE",
[Talents.T_MANATHRUST]=4, [Talents.T_FREEZE]=4, [Talents.T_TIDAL_WAVE]=2,
[Talents.T_WEAPONS_MASTERY]=3,
},
resolvers.inscriptions(1, {"shielding rune", "phase door rune", "regeneration infusion", "heroism infusion"}),
resolvers.inscriptions(1, {"shielding rune", "phase door rune"}),
inc_damage = {all=-20},
autolevel = "warriormage",
......
......@@ -369,9 +369,18 @@ function resolvers.inscriptions(nb, list)
end
function resolvers.calc.inscriptions(t, e)
for i = 1, t[1] do
local name = rng.tableRemove(t[2])
if not name then return nil end
local o = game.zone:makeEntity(game.level, "object", {name=name}, nil, true)
local o
if type(t[2]) == "table" then
if #t[2] then
local name = rng.tableRemove(t[2])
if not name then return nil end
o = game.zone:makeEntity(game.level, "object", {name=name}, nil, true)
else
o = game.zone:makeEntity(game.level, "object", {type="scroll"}, nil, true)
end
else
o = game.zone:makeEntity(game.level, "object", {type="scroll", subtype=t[2]}, nil, true)
end
if o and o.inscription_talent and o.inscription_data then
e:setInscription(nil, o.inscription_talent, o.inscription_data, false, false, nil, true)
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