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

fix

git-svn-id: http://svn.net-core.org/repos/t-engine4@1004 51575b47-30f0-44d4-a5cc-537603b46e54
parent 41bfc6d6
No related branches found
No related tags found
No related merge requests found
......@@ -225,7 +225,7 @@ function _M:makeEntity(level, type, filter, force_level, prob_filter)
elseif type == "object" then base_list = self.object_list
elseif type == "trap" then base_list = self.trap_list
else return nil end
local list = self:computeRarities(type, base_list, level, function(e) return self:checkFilter(e, filter) end, filter.add_levels)
local list = self:computeRarities(type, base_list, level, function(e) return self:checkFilter(e, filter) end, filter.add_levels, filter.special_rarity)
e = self:pickEntity(list)
print("[MAKE ENTITY] prob list generation", e and e.name, "from list size", #list)
if not e then return nil end
......
......@@ -16,8 +16,7 @@
--
-- Nicolas Casalini "DarkGod"
-- darkgod@te4.org
load("/data/general/npcs/naga.lua", rarity(6))
--[[
-- Orcs & trolls
load("/data/general/npcs/orc-grushnak.lua", rarity(0))
load("/data/general/npcs/orc-vor.lua", rarity(0))
......@@ -41,7 +40,7 @@ load("/data/general/npcs/ghoul.lua", rarity(2))
load("/data/general/npcs/skeleton.lua", rarity(3))
load("/data/general/npcs/all.lua", rarity(4, 35))
]]
local Talents = require("engine.interface.ActorTalents")
-- Alatar & Palando, the final bosses
......
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