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

toying

git-svn-id: http://svn.net-core.org/repos/t-engine4@5088 51575b47-30f0-44d4-a5cc-537603b46e54
parent bde8f23a
No related branches found
No related tags found
No related merge requests found
......@@ -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,
}
......
......@@ -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
......@@ -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
......
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