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

pop

git-svn-id: http://svn.net-core.org/repos/t-engine4@3808 51575b47-30f0-44d4-a5cc-537603b46e54
parent a0f9fed9
No related branches found
No related tags found
No related merge requests found
...@@ -78,6 +78,7 @@ end ...@@ -78,6 +78,7 @@ end
function _M:generateOne() function _M:generateOne()
local f = nil local f = nil
if self.filters then f = self.filters[rng.range(1, #self.filters)] end if self.filters then f = self.filters[rng.range(1, #self.filters)] end
print("===========================================", f and f.max_ood)
local m = self.zone:makeEntity(self.level, "actor", f, nil, true) local m = self.zone:makeEntity(self.level, "actor", f, nil, true)
if m then if m then
local x, y = rng.range(self.area.x1, self.area.x2), rng.range(self.area.y1, self.area.y2) local x, y = rng.range(self.area.x1, self.area.x2), rng.range(self.area.y1, self.area.y2)
......
...@@ -843,7 +843,7 @@ function _M:tooltip(x, y, seen_by) ...@@ -843,7 +843,7 @@ function _M:tooltip(x, y, seen_by)
local ts = tstring{} local ts = tstring{}
ts:add({"uid",self.uid}) ts:merge(rank_color:toTString()) ts:add(self.name, {"color", "WHITE"}) ts:add({"uid",self.uid}) ts:merge(rank_color:toTString()) ts:add(self.name, {"color", "WHITE"})
if self.type == "humanoid" or self.type == "giant" then ts:add({"font","italic"}, "(", self.female and "female" or "male", ")", {"font","normal"}, true) end if self.type == "humanoid" or self.type == "giant" then ts:add({"font","italic"}, "(", self.female and "female" or "male", ")", {"font","normal"}, true) else ts:add(true) end
ts:add(self.type:capitalize(), " / ", self.subtype:capitalize(), true) ts:add(self.type:capitalize(), " / ", self.subtype:capitalize(), true)
ts:add("Rank: ") ts:merge(rank_color:toTString()) ts:add(rank, {"color", "WHITE"}, true) ts:add("Rank: ") ts:merge(rank_color:toTString()) ts:add(rank, {"color", "WHITE"}, true)
ts:add({"color", 0, 255, 255}, ("Level: %d"):format(self.level), {"color", "WHITE"}, true) ts:add({"color", 0, 255, 255}, ("Level: %d"):format(self.level), {"color", "WHITE"}, true)
......
...@@ -1008,37 +1008,12 @@ function _M:setupCommands() ...@@ -1008,37 +1008,12 @@ function _M:setupCommands()
for i, a in ipairs(e.add_mos or {}) do print(" => ", a.image) end for i, a in ipairs(e.add_mos or {}) do print(" => ", a.image) end
end end end end
end end, end end,
[{"_f","ctrl"}] = function() if config.settings.cheat then
self.nicer_tiles:updateAround(self.level, game.player.x, game.player.y)
-- self.nicer_tiles:replaceAll(self.level)
--[[
local i,j = game.player.x, game.player.y
local level=self.level
local s = level.map:checkEntity(i, j, Map.TERRAIN, "type") or "wall"
local g1 = level.map:checkEntity(i-1, j+1, Map.TERRAIN, "type") == s and 1 or 0
local g2 = level.map:checkEntity(i, j+1, Map.TERRAIN, "type") == s and 1 or 0
local g3 = level.map:checkEntity(i+1, j+1, Map.TERRAIN, "type") == s and 1 or 0
local g4 = level.map:checkEntity(i-1, j, Map.TERRAIN, "type") == s and 1 or 0
local g6 = level.map:checkEntity(i+1, j, Map.TERRAIN, "type") == s and 1 or 0
local g7 = level.map:checkEntity(i-1, j-1, Map.TERRAIN, "type") == s and 1 or 0
local g8 = level.map:checkEntity(i, j-1, Map.TERRAIN, "type") == s and 1 or 0
local g9 = level.map:checkEntity(i+1, j-1, Map.TERRAIN, "type") == s and 1 or 0
print((" [ [=[\n%d%d%d\n%d %d\n%d%d%d]=] ] = '',"):format(g7,g8,g9,g4,g6,g1,g2,g3))
--]]
end end,
[{"_g","ctrl"}] = function() if config.settings.cheat then [{"_g","ctrl"}] = function() if config.settings.cheat then
-- game.player:setEffect(game.player.EFF_BONE_SHIELD, 30, {nb=3}) for uid, e in pairs(self.level.entities) do
-- self.state:debugRandomZone() if e.level and e.level >= 10 then
-- local m = game.zone:makeEntity(game.level, "actor", {random_boss=true}, nil, true) print("========WARNING", e.x, e.y, e.name, e.level)
-- if m then game.zone:addEntity(game.level, m, "actor", game.player.x, game.player.y + 1) end end
-- self:changeLevel(1, "test") end
local list = mod.class.Object:loadList("/data/general/objects/brotherhood-artifacts.lua")
for _, e in ipairs(list) do if e.image and e.unique then
local o = e:clone()
o:resolve() o:resolve(nil,true)
local x, y = util.findFreeGrid(self.player.x, self.player.y, 15, true, {[engine.Map.OBJECT]=true})
game.zone:addEntity(game.level, o, "object", x, y)
end end
end end, end end,
} }
......
...@@ -94,7 +94,7 @@ newEntity{ base = "BASE_NPC_RITCH_REL", ...@@ -94,7 +94,7 @@ newEntity{ base = "BASE_NPC_RITCH_REL",
newEntity{ base = "BASE_NPC_RITCH_REL", define_as = "HIVE_MOTHER", newEntity{ base = "BASE_NPC_RITCH_REL", define_as = "HIVE_MOTHER",
unique = true, unique = true,
name = "Ritch Hive Mother", name = "Ritch Great Hive Mother", image = "npc/insect_ritch_ritch_hive_mother.png",
display = "I", color=colors.VIOLET, display = "I", color=colors.VIOLET,
desc = [[This huge ritch seems to be the mother of all those here. Her sharp, fiery, claws dart toward you!]], desc = [[This huge ritch seems to be the mother of all those here. Her sharp, fiery, claws dart toward you!]],
level_range = {7, nil}, exp_worth = 2, level_range = {7, nil}, exp_worth = 2,
......
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