Skip to content
Snippets Groups Projects
Commit d01017a5 authored by DarkGod's avatar DarkGod
Browse files

Worldmap ambushes npcs and graveyard coffin npcs are now of rank rare instead...

Worldmap ambushes npcs and graveyard coffin npcs are now of rank rare instead of elite, which they already were in all but name
parent 89ff407c
No related branches found
No related tags found
No related merge requests found
...@@ -37,7 +37,7 @@ newEntity{ ...@@ -37,7 +37,7 @@ newEntity{
nb={3, 4}, nb={3, 4},
filters={{special_rarity="humanoid_random_boss", subtype="human", random_boss={ filters={{special_rarity="humanoid_random_boss", subtype="human", random_boss={
nb_classes=1, force_classes = {['Sun Paladin']=true}, nb_classes=1, force_classes = {['Sun Paladin']=true},
rank=3, ai = "tactical", rank=3.2, ai = "tactical",
life_rating=function(v) return v * 1.4 + 3 end, life_rating=function(v) return v * 1.4 + 3 end,
loot_quality = "store", loot_quality = "store",
loot_quantity = 1, loot_quantity = 1,
...@@ -64,7 +64,7 @@ newEntity{ ...@@ -64,7 +64,7 @@ newEntity{
nb={3, 4}, nb={3, 4},
filters={{special_rarity="humanoid_random_boss", subtype="shalore", random_boss={ filters={{special_rarity="humanoid_random_boss", subtype="shalore", random_boss={
nb_classes=1, force_classes = {['Anorithil']=true}, nb_classes=1, force_classes = {['Anorithil']=true},
rank=3, ai = "tactical", rank=3.2, ai = "tactical",
life_rating=function(v) return v * 1.4 + 3 end, life_rating=function(v) return v * 1.4 + 3 end,
loot_quality = "store", loot_quality = "store",
loot_quantity = 1, loot_quantity = 1,
......
...@@ -38,7 +38,7 @@ newEntity{ ...@@ -38,7 +38,7 @@ newEntity{
nb={3, 4}, nb={3, 4},
filters={{special_rarity="humanoid_random_boss", subtype="human", random_boss={ filters={{special_rarity="humanoid_random_boss", subtype="human", random_boss={
nb_classes=1, nb_classes=1,
rank=3, ai = "tactical", rank=3.2, ai = "tactical",
life_rating=function(v) return v * 1.4 + 3 end, life_rating=function(v) return v * 1.4 + 3 end,
loot_quality = "store", loot_quality = "store",
loot_quantity = 1, loot_quantity = 1,
...@@ -67,7 +67,7 @@ newEntity{ ...@@ -67,7 +67,7 @@ newEntity{
nb={3, 4}, nb={3, 4},
filters={{special_rarity="humanoid_random_boss", subtype="halfling", random_boss={ filters={{special_rarity="humanoid_random_boss", subtype="halfling", random_boss={
nb_classes=1, nb_classes=1,
rank=3, ai = "tactical", rank=3.2, ai = "tactical",
life_rating=function(v) return v * 1.4 + 3 end, life_rating=function(v) return v * 1.4 + 3 end,
loot_quality = "store", loot_quality = "store",
loot_quantity = 1, loot_quantity = 1,
...@@ -94,7 +94,7 @@ newEntity{ ...@@ -94,7 +94,7 @@ newEntity{
nb={2, 3}, nb={2, 3},
filters={{special_rarity="humanoid_random_boss", random_boss={ filters={{special_rarity="humanoid_random_boss", random_boss={
nb_classes=1, nb_classes=1,
rank=3, ai = "tactical", rank=3.2, ai = "tactical",
life_rating=function(v) return v * 1.3 + 2 end, life_rating=function(v) return v * 1.3 + 2 end,
loot_quality = "store", loot_quality = "store",
loot_quantity = 1, loot_quantity = 1,
...@@ -132,7 +132,7 @@ newEntity{ ...@@ -132,7 +132,7 @@ newEntity{
nb={2, 3}, nb={2, 3},
filters={{special_rarity="zigur_random_boss", random_boss={ filters={{special_rarity="zigur_random_boss", random_boss={
nb_classes=1, nb_classes=1,
rank=3, ai = "tactical", rank=3.2, ai = "tactical",
life_rating=function(v) return v * 1.3 + 2 end, life_rating=function(v) return v * 1.3 + 2 end,
loot_quality = "store", loot_quality = "store",
loot_quantity = 1, loot_quantity = 1,
......
...@@ -97,11 +97,10 @@ return { ...@@ -97,11 +97,10 @@ return {
end end
end end
else]] if r <= 60 then else]] if r <= 60 then
g.sumomn_npc = game.zone:makeEntity(game.level, "actor", {properties={"undead"}, add_levels=10, random_boss={nb_classes=1, rank=3, ai = "tactical", loot_quantity = 0, no_loot_randart = true}}, nil, true) g.sumomn_npc = game.zone:makeEntity(game.level, "actor", {properties={"undead"}, add_levels=10, random_boss={nb_classes=1, rank=3.2, ai = "tactical", loot_quantity = 0, no_loot_randart = true}}, nil, true)
fct = function(self, x, y, who) fct = function(self, x, y, who)
local x, y = util.findFreeGrid(who.x, who.y, 5, true, {[engine.Map.ACTOR]=true}) local x, y = util.findFreeGrid(who.x, who.y, 5, true, {[engine.Map.ACTOR]=true})
if self.sumomn_npc and x and y then if self.sumomn_npc and x and y then
self.sumomn_npc.instakill_immune = 1
game.zone:addEntity(game.level, self.sumomn_npc, "actor", x, y) game.zone:addEntity(game.level, self.sumomn_npc, "actor", x, y)
self.sumomn_npc = nil self.sumomn_npc = nil
game.log("You were not the first here: the corpse was turned into an undead.") game.log("You were not the first here: the corpse was turned into an undead.")
...@@ -163,7 +162,7 @@ return { ...@@ -163,7 +162,7 @@ return {
if g.define_as == "COFFIN" then if g.define_as == "COFFIN" then
game.zone:addEntity(game.level, coffin_open, "terrain", spot.x, spot.y) game.zone:addEntity(game.level, coffin_open, "terrain", spot.x, spot.y)
local m = game.zone:makeEntity(game.level, "actor", {properties={"undead"}, add_levels=10, random_boss={nb_classes=1, rank=3, ai = "tactical", loot_quantity = 0, no_loot_randart = true}}, nil, true) local m = game.zone:makeEntity(game.level, "actor", {properties={"undead"}, add_levels=10, random_boss={nb_classes=1, rank=3.2, ai = "tactical", loot_quantity = 0, no_loot_randart = true}}, nil, true)
local x, y = util.findFreeGrid(spot.x, spot.y, 5, true, {[engine.Map.ACTOR]=true}) local x, y = util.findFreeGrid(spot.x, spot.y, 5, true, {[engine.Map.ACTOR]=true})
if m and x and y then if m and x and y then
game.zone:addEntity(game.level, m, "actor", x, y) game.zone:addEntity(game.level, m, "actor", x, y)
......
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