From 6064381151b7748e899a0988d24726e45c0cab59 Mon Sep 17 00:00:00 2001 From: dg <dg@51575b47-30f0-44d4-a5cc-537603b46e54> Date: Tue, 5 Jul 2011 22:06:34 +0000 Subject: [PATCH] pop git-svn-id: http://svn.net-core.org/repos/t-engine4@3808 51575b47-30f0-44d4-a5cc-537603b46e54 --- .../default/engine/generator/actor/Random.lua | 1 + game/modules/tome/class/Actor.lua | 2 +- game/modules/tome/class/Game.lua | 35 +++---------------- .../tome/data/zones/ritch-tunnels/npcs.lua | 2 +- 4 files changed, 8 insertions(+), 32 deletions(-) diff --git a/game/engines/default/engine/generator/actor/Random.lua b/game/engines/default/engine/generator/actor/Random.lua index 12524197a4..2848b6d6ec 100644 --- a/game/engines/default/engine/generator/actor/Random.lua +++ b/game/engines/default/engine/generator/actor/Random.lua @@ -78,6 +78,7 @@ end function _M:generateOne() local f = nil 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) if m then local x, y = rng.range(self.area.x1, self.area.x2), rng.range(self.area.y1, self.area.y2) diff --git a/game/modules/tome/class/Actor.lua b/game/modules/tome/class/Actor.lua index 1d047ff618..328116ba78 100644 --- a/game/modules/tome/class/Actor.lua +++ b/game/modules/tome/class/Actor.lua @@ -843,7 +843,7 @@ function _M:tooltip(x, y, seen_by) local ts = tstring{} 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("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) diff --git a/game/modules/tome/class/Game.lua b/game/modules/tome/class/Game.lua index 88358fd17b..000dd43302 100644 --- a/game/modules/tome/class/Game.lua +++ b/game/modules/tome/class/Game.lua @@ -1008,37 +1008,12 @@ function _M:setupCommands() for i, a in ipairs(e.add_mos or {}) do print(" => ", a.image) 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 --- game.player:setEffect(game.player.EFF_BONE_SHIELD, 30, {nb=3}) --- self.state:debugRandomZone() --- local m = game.zone:makeEntity(game.level, "actor", {random_boss=true}, nil, true) --- if m then game.zone:addEntity(game.level, m, "actor", game.player.x, game.player.y + 1) end --- self:changeLevel(1, "test") - 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 + for uid, e in pairs(self.level.entities) do + if e.level and e.level >= 10 then + print("========WARNING", e.x, e.y, e.name, e.level) + end + end end end, } diff --git a/game/modules/tome/data/zones/ritch-tunnels/npcs.lua b/game/modules/tome/data/zones/ritch-tunnels/npcs.lua index 922e0d629e..ffb3d25c3d 100644 --- a/game/modules/tome/data/zones/ritch-tunnels/npcs.lua +++ b/game/modules/tome/data/zones/ritch-tunnels/npcs.lua @@ -94,7 +94,7 @@ newEntity{ base = "BASE_NPC_RITCH_REL", newEntity{ base = "BASE_NPC_RITCH_REL", define_as = "HIVE_MOTHER", unique = true, - name = "Ritch Hive Mother", + name = "Ritch Great Hive Mother", image = "npc/insect_ritch_ritch_hive_mother.png", 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!]], level_range = {7, nil}, exp_worth = 2, -- GitLab