From 52991897556e81062b7a8d2492dc076ee46c0853 Mon Sep 17 00:00:00 2001 From: dg <dg@51575b47-30f0-44d4-a5cc-537603b46e54> Date: Sun, 6 May 2012 20:23:35 +0000 Subject: [PATCH] toying git-svn-id: http://svn.net-core.org/repos/t-engine4@5088 51575b47-30f0-44d4-a5cc-537603b46e54 --- game/modules/tome/class/Game.lua | 11 +++++++---- game/modules/tome/data/quests/love-melinda.lua | 8 ++++---- game/modules/tome/dialogs/Birther.lua | 2 +- 3 files changed, 12 insertions(+), 9 deletions(-) diff --git a/game/modules/tome/class/Game.lua b/game/modules/tome/class/Game.lua index c594f2d033..ffdf7a7b54 100644 --- a/game/modules/tome/class/Game.lua +++ b/game/modules/tome/class/Game.lua @@ -1115,14 +1115,17 @@ function _M:setupCommands() end end end end, [{"_g","ctrl"}] = function() if config.settings.cheat then - local m = game.zone:makeEntity(game.level, "actor", {random_elite={}}, nil, true) - - if m then game.zone:addEntity(game.level, m, "actor", self.player.x, self.player.y-1) end + local l = {} + for tt, d in pairs(mod.class.Actor.talents_types_def) do + if d.generic and type(tt) == "string" and not tt:find("other") and not tt:find("race/") and not tt:find("undead/") then l[#l+1] = tt end + end + table.sort(l) + for i, tt in ipairs(l) do print(tt) end end end, [{"_f","ctrl"}] = function() if config.settings.cheat then self.player.quests["love-melinda"] = nil self.player:grantQuest("love-melinda") - self.player:hasQuest("love-melinda"):melindaWarrior(self.player) + self.player:hasQuest("love-melinda"):melindaCompanion(self.player, "Defiler", "Corruptor") end end, } diff --git a/game/modules/tome/data/quests/love-melinda.lua b/game/modules/tome/data/quests/love-melinda.lua index d34e770ad2..234fd07e9e 100644 --- a/game/modules/tome/data/quests/love-melinda.lua +++ b/game/modules/tome/data/quests/love-melinda.lua @@ -79,7 +79,7 @@ function spawnFortress(self, who) game:onTickEnd(function() who:setQuestStatus(self.id, self.COMPLETED, "moved-in") end) end -function melindaWarrior(self, who) +function melindaCompanion(self, who, c, sc) for uid, e in pairs(game.level.entities) do if e.define_as == "MELINDA_NPC" then e:disappear() end end local melinda = require("mod.class.Player").new{name="Melinda"} @@ -90,8 +90,8 @@ function melindaWarrior(self, who) birth:setDescriptor("permadeath", "Roguelike") birth:setDescriptor("race", "Human") birth:setDescriptor("subrace", "Cornac") - birth:setDescriptor("class", "Warrior") - birth:setDescriptor("subclass", "Fighter") + birth:setDescriptor("class", c) + birth:setDescriptor("subclass", sc) birth.actor = melinda birth:apply() melinda.image = "player/cornac_female_redhair.png" @@ -104,7 +104,7 @@ function melindaWarrior(self, who) melinda:forceLevelup(who.level) game.party:addMember(melinda, { - control="full", type="companion", title="Melina", + control="full", type="companion", title="Melinda", orders = {target=true, leash=true, anchor=true, talents=true, behavior=true}, }) end diff --git a/game/modules/tome/dialogs/Birther.lua b/game/modules/tome/dialogs/Birther.lua index dd176aa14b..e0fb134466 100644 --- a/game/modules/tome/dialogs/Birther.lua +++ b/game/modules/tome/dialogs/Birther.lua @@ -281,7 +281,7 @@ function _M:makeDefault() self:setDescriptor("race", "Human") self:setDescriptor("subrace", "Higher") self:setDescriptor("class", "Warrior") - self:setDescriptor("subclass", "Archer") + self:setDescriptor("subclass", "Berserker") __module_extra_info.no_birth_popup = true self:atEnd("created") end -- GitLab