Commit c3c3da8aa37c6af0729629aed32277e5ed185012

Authored by dg
1 parent 4c34d7f6

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

…hey 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
... ... @@ -43,6 +43,7 @@ newEntity{
43 43 silence_immune = 0.5,
44 44
45 45 resolvers.talents{ [Talents.T_HEAVY_ARMOUR_TRAINING]=1, },
  46 + resolvers.inscriptions(1, "rune"),
46 47
47 48 autolevel = "caster",
48 49 ai = "dumb_talented_simple", ai_state = { ai_move="move_dmap", talent_in=1, },
... ...
... ... @@ -42,6 +42,7 @@ newEntity{
42 42 open_door = true,
43 43
44 44 resolvers.talents{ [Talents.T_HEAVY_ARMOUR_TRAINING]=1, },
  45 + resolvers.inscriptions(1, "rune"),
45 46
46 47 autolevel = "warrior",
47 48 ai = "dumb_talented_simple", ai_state = { ai_move="move_dmap", talent_in=3, },
... ...
... ... @@ -40,6 +40,8 @@ newEntity{
40 40 size_category = 3,
41 41 no_breath = 1,
42 42 demon = 1,
  43 +
  44 + resolvers.inscriptions(1, "rune"),
43 45 }
44 46
45 47 newEntity{ base = "BASE_NPC_MAJOR_DEMON",
... ...
... ... @@ -40,6 +40,9 @@ newEntity{
40 40
41 41 open_door = true,
42 42
  43 + resolvers.inscriptions(1, "rune"),
  44 + resolvers.inscriptions(1, "infusion"),
  45 +
43 46 autolevel = "warrior",
44 47 ai = "dumb_talented_simple", ai_state = { ai_move="move_dmap", talent_in=5, },
45 48 energy = { mod=1.2 },
... ...
... ... @@ -37,6 +37,7 @@ newEntity{
37 37
38 38 open_door = true,
39 39
  40 + resolvers.inscriptions(1, "rune"),
40 41 resolvers.tmasteries{ ["technique/2hweapon-offense"]=1, ["technique/2hweapon-cripple"]=1, },
41 42
42 43 blind_immune = 1,
... ...
... ... @@ -37,6 +37,8 @@ newEntity{
37 37 size_category = 3,
38 38
39 39 open_door = true,
  40 + resolvers.inscriptions(1, "infusion"),
  41 + resolvers.inscriptions(1, "rune"),
40 42
41 43 autolevel = "warrior",
42 44 ai = "dumb_talented_simple", ai_state = { ai_move="move_dmap", talent_in=1, },
... ...
... ... @@ -40,6 +40,8 @@ newEntity{
40 40 open_door = true,
41 41 resolvers.sustains_at_birth(),
42 42
  43 + resolvers.inscriptions(2, "infusion"),
  44 +
43 45 autolevel = "warrior",
44 46 ai = "dumb_talented_simple", ai_state = { ai_move="move_dmap", talent_in=3, },
45 47 energy = { mod=1 },
... ...
... ... @@ -39,6 +39,7 @@ newEntity{
39 39
40 40 open_door = true,
41 41 resolvers.sustains_at_birth(),
  42 + resolvers.inscriptions(3, "infusion"),
42 43
43 44 autolevel = "warrior",
44 45 ai = "dumb_talented_simple", ai_state = { ai_move="move_dmap", talent_in=3, },
... ...
... ... @@ -38,6 +38,7 @@ newEntity{
38 38 size_category = 3,
39 39
40 40 open_door = true,
  41 + resolvers.inscriptions(3, "rune"),
41 42
42 43 autolevel = "caster",
43 44 ai = "dumb_talented_simple", ai_state = { ai_move="move_dmap", talent_in=1, },
... ...
... ... @@ -40,6 +40,8 @@ newEntity{
40 40
41 41 open_door = true,
42 42
  43 + resolvers.inscriptions(2, "rune"),
  44 +
43 45 autolevel = "caster",
44 46 ai = "dumb_talented_simple", ai_state = { ai_move="move_dmap", talent_in=1, },
45 47 energy = { mod=1 },
... ...
... ... @@ -56,6 +56,7 @@ newEntity{ base = "BASE_NPC_ORC",
56 56 {type="weapon", subtype="waraxe", autoreq=true},
57 57 {type="armor", subtype="shield", autoreq=true},
58 58 },
  59 + resolvers.inscriptions(1, "infusion"),
59 60 combat_armor = 2, combat_def = 0,
60 61 resolvers.talents{ [Talents.T_SHIELD_PUMMEL]=1, },
61 62 }
... ... @@ -72,6 +73,7 @@ newEntity{ base = "BASE_NPC_ORC",
72 73 ai_state = { talent_in=1, },
73 74
74 75 autolevel = "archer",
  76 + resolvers.inscriptions(1, "infusion"),
75 77 resolvers.equip{
76 78 {type="weapon", subtype="longbow", autoreq=true},
77 79 {type="ammo", subtype="arrow", autoreq=true},
... ... @@ -89,6 +91,7 @@ newEntity{ base = "BASE_NPC_ORC", define_as = "ORC",
89 91 {type="weapon", subtype="battleaxe", autoreq=true},
90 92 },
91 93 combat_armor = 2, combat_def = 0,
  94 + resolvers.inscriptions(1, "infusion"),
92 95 resolvers.talents{ [Talents.T_SUNDER_ARMOUR]=2, [Talents.T_CRUSH]=2, },
93 96 }
94 97
... ... @@ -105,6 +108,7 @@ newEntity{ base = "BASE_NPC_ORC", define_as = "ORC_FIRE_WYRMIC",
105 108 },
106 109 combat_armor = 2, combat_def = 0,
107 110
  111 + resolvers.inscriptions(1, "infusion"),
108 112 make_escort = {
109 113 {type="humanoid", subtype="orc", name="orc soldier", number=resolvers.mbonus(3, 2)},
110 114 },
... ... @@ -129,6 +133,7 @@ newEntity{ base = "BASE_NPC_ORC",
129 133 },
130 134 combat_armor = 2, combat_def = 0,
131 135
  136 + resolvers.inscriptions(1, "infusion"),
132 137 make_escort = {
133 138 {type="humanoid", subtype="orc", name="orc soldier", number=resolvers.mbonus(3, 2)},
134 139 },
... ... @@ -158,6 +163,7 @@ newEntity{ base = "BASE_NPC_ORC",
158 163 [Talents.T_SHADOWSTRIKE]=3,
159 164 },
160 165 max_life = resolvers.rngavg(80,100),
  166 + resolvers.inscriptions(1, "infusion"),
161 167
162 168 resolvers.sustains_at_birth(),
163 169 autolevel = "rogue",
... ... @@ -176,6 +182,7 @@ newEntity{ base = "BASE_NPC_ORC",
176 182 {type="weapon", subtype="dagger", ego_chance=20, autoreq=true},
177 183 {type="armor", subtype="light", autoreq=true}
178 184 },
  185 + resolvers.inscriptions(1, "infusion"),
179 186 resolvers.talents{
180 187 [Talents.T_STEALTH]=5,
181 188 [Talents.T_LETHALITY]=4,
... ... @@ -201,6 +208,7 @@ newEntity{ base = "BASE_NPC_ORC",
201 208 {type="weapon", subtype="dagger", ego_chance=20, autoreq=true},
202 209 {type="armor", subtype="light", autoreq=true}
203 210 },
  211 + resolvers.inscriptions(3, "infusion"),
204 212 resolvers.talents{
205 213 [Talents.T_STEALTH]=5,
206 214 [Talents.T_LETHALITY]=4,
... ...
... ... @@ -119,6 +119,7 @@ newEntity{ base = "BASE_NPC_SKELETON",
119 119 max_life = resolvers.rngavg(90,100),
120 120 combat_armor = 5, combat_def = 1,
121 121 rank = 3,
  122 + resolvers.inscriptions(1, "rune"),
122 123 resolvers.talents{
123 124 [Talents.T_HEAVY_ARMOUR_TRAINING]=1,
124 125 [Talents.T_SHIELD_PUMMEL]=1,
... ...
... ... @@ -40,6 +40,8 @@ newEntity{
40 40 energy = { mod=1 },
41 41 stats = { str=20, dex=8, mag=6, con=16 },
42 42
  43 + resolvers.inscriptions(1, "infusion"),
  44 +
43 45 resists = { [DamageType.PHYSICAL] = 20, [DamageType.COLD] = 50, },
44 46
45 47 no_breath = 1,
... ...
... ... @@ -38,6 +38,8 @@ newEntity{
38 38 energy = { mod=1.2 },
39 39 stats = { str=15, dex=15, mag=8, con=10 },
40 40
  41 + resolvers.inscriptions(2, "infusion"),
  42 +
41 43 resolvers.tmasteries{ ["technique/other"]=0.3 },
42 44 resolvers.sustains_at_birth(),
43 45
... ...
... ... @@ -44,6 +44,8 @@ newEntity{
44 44
45 45 open_door = true,
46 46
  47 + resolvers.inscriptions(1, "infusion"),
  48 +
47 49 autolevel = "rogue",
48 50 ai = "dumb_talented_simple", ai_state = { ai_move="move_dmap", talent_in=5, },
49 51 energy = { mod=1 },
... ...
... ... @@ -100,6 +100,7 @@ newEntity{ base = "BASE_NPC_TROLL",
100 100 mana_regen = 20,
101 101 combat_armor = 8, combat_def = 4,
102 102 autolevel = "warriormage",
  103 + resolvers.inscriptions(1, "rune"),
103 104 resolvers.talents{
104 105 [Talents.T_STUN]=4, [Talents.T_KNOCKBACK]=3,
105 106 [Talents.T_LIGHTNING]=4,
... ...
... ... @@ -58,6 +58,8 @@ newEntity{
58 58
59 59 open_door = true,
60 60
  61 + resolvers.inscriptions(1, "rune"),
  62 +
61 63 resolvers.tmasteries{ ["technique/other"]=0.5, ["spell/phantasm"]=0.8, },
62 64 resolvers.sustains_at_birth(),
63 65
... ... @@ -113,6 +115,7 @@ It can summon the very shades of its victims from beyond the grave to come ensla
113 115 combat_armor = 12, combat_def = 10,
114 116 rank = 3,
115 117 ai = "dumb_talented_simple", ai_state = { talent_in=6, },
  118 + resolvers.inscriptions(1, "rune"),
116 119 summon = {{type="undead", number=1, hasxp=false}, },
117 120 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, },
118 121 }
... ... @@ -126,6 +129,7 @@ newEntity{ base = "BASE_NPC_VAMPIRE",
126 129 combat_armor = 15, combat_def = 15,
127 130 rank = 3,
128 131 ai = "dumb_talented_simple", ai_state = { talent_in=4, },
  132 + resolvers.inscriptions(1, "rune"),
129 133 summon = {{type="undead", number=1, hasxp=false}, },
130 134 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, },
131 135 make_escort = {
... ...
... ... @@ -41,6 +41,7 @@ newEntity{
41 41 open_door = true,
42 42
43 43 resolvers.talents{ [Talents.T_HEAVY_ARMOUR_TRAINING]=1, },
  44 + resolvers.inscriptions(1, "infusion"),
44 45
45 46 autolevel = "warrior",
46 47 ai = "dumb_talented_simple", ai_state = { ai_move="move_dmap", talent_in=3, },
... ...
... ... @@ -57,7 +57,7 @@ newEntity{ define_as = "SHADE",
57 57 [Talents.T_MANATHRUST]=4, [Talents.T_FREEZE]=4, [Talents.T_TIDAL_WAVE]=2,
58 58 [Talents.T_WEAPONS_MASTERY]=3,
59 59 },
60   - resolvers.inscriptions(1, {"shielding rune", "phase door rune", "regeneration infusion", "heroism infusion"}),
  60 + resolvers.inscriptions(1, {"shielding rune", "phase door rune"}),
61 61 inc_damage = {all=-20},
62 62
63 63 autolevel = "warriormage",
... ...
... ... @@ -369,9 +369,18 @@ function resolvers.inscriptions(nb, list)
369 369 end
370 370 function resolvers.calc.inscriptions(t, e)
371 371 for i = 1, t[1] do
372   - local name = rng.tableRemove(t[2])
373   - if not name then return nil end
374   - local o = game.zone:makeEntity(game.level, "object", {name=name}, nil, true)
  372 + local o
  373 + if type(t[2]) == "table" then
  374 + if #t[2] then
  375 + local name = rng.tableRemove(t[2])
  376 + if not name then return nil end
  377 + o = game.zone:makeEntity(game.level, "object", {name=name}, nil, true)
  378 + else
  379 + o = game.zone:makeEntity(game.level, "object", {type="scroll"}, nil, true)
  380 + end
  381 + else
  382 + o = game.zone:makeEntity(game.level, "object", {type="scroll", subtype=t[2]}, nil, true)
  383 + end
375 384 if o and o.inscription_talent and o.inscription_data then
376 385 e:setInscription(nil, o.inscription_talent, o.inscription_data, false, false, nil, true)
377 386 end
... ...