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

sorry not working

git-svn-id: http://svn.net-core.org/repos/t-engine4@5084 51575b47-30f0-44d4-a5cc-537603b46e54
parent 0c908045
No related branches found
No related tags found
No related merge requests found
...@@ -1115,13 +1115,19 @@ function _M:setupCommands() ...@@ -1115,13 +1115,19 @@ function _M:setupCommands()
end end end end
end end, end end,
[{"_g","ctrl"}] = function() if config.settings.cheat then [{"_g","ctrl"}] = function() if config.settings.cheat then
local base = game.zone:makeEntity(game.level, "object", {ingore_material_restriction=true, no_tome_drops=true, ego_filter={keep_egos=true, ego_chance=-1000}, type='charm',subtype='wand'}, nil, true) local m = game.zone:makeEntity(game.level, "actor", {random_boss={
local a = self.state:generateRandart(false, base, 50, 3) nb_classes=1,
local o = a:clone() rank=3, ai = "tactical",
o:resolve() life_rating=function(v) return v * 1.3 + 2 end,
o:resolve(nil, true) loot_quality = "store",
o:identify(true) loot_quantity = 1,
game.zone:addEntity(game.level, o, "object", self.player.x, self.player.y) drop_equipment = false,
no_loot_randart = true,
}}, nil, true)
FINISH ME
if m then game.zone:addEntity(game.level, m, "actor", self.player.x, self.player.y-1) end
end end, end end,
[{"_f","ctrl"}] = function() if config.settings.cheat then [{"_f","ctrl"}] = function() if config.settings.cheat then
self.player.quests["love-melinda"] = nil self.player.quests["love-melinda"] = nil
......
...@@ -1526,7 +1526,7 @@ function _M:createRandomBoss(base, data) ...@@ -1526,7 +1526,7 @@ function _M:createRandomBoss(base, data)
d.name = nil d.name = nil
d.ego_chance = nil d.ego_chance = nil
d.tome_drops = data.loot_quality or "boss" d.tome_drops = data.loot_quality or "boss"
d.force_drop = true d.force_drop = (data.drop_equipment == nil) and true or data.drop_equipment
end end
b[#b+1] = resolver b[#b+1] = resolver
elseif k == "birth_create_alchemist_golem" then elseif k == "birth_create_alchemist_golem" then
......
...@@ -141,16 +141,19 @@ newTalent{ ...@@ -141,16 +141,19 @@ newTalent{
end end
return hit return hit
end, end,
activate = function (self, t) on_pre_use = function (self, t)
if not self:getInven("PSIONIC_FOCUS") then return end if not self:getInven("PSIONIC_FOCUS") then return false end
local tkweapon = self:getInven("PSIONIC_FOCUS")[1] local tkweapon = self:getInven("PSIONIC_FOCUS")[1]
if type(tkweapon) == "boolean" then tkweapon = nil end if type(tkweapon) == "boolean" then tkweapon = nil end
if not tkweapon or tkweapon.type == "gem" or tkweapon.archery then if not tkweapon or tkweapon.type == "gem" or tkweapon.archery then
game.logPlayer(self, "You cannot do that without a telekinetically-wielded melee weapon.") -- game.logPlayer(self, "You cannot do that without a telekinetically-wielded melee weapon.")
return nil return false
end end
return true return true
end, end,
activate = function (self, t)
return true
end,
deactivate = function (self, t) deactivate = function (self, t)
return true return true
end, end,
......
* autoexport character entity on death/win(/save?)
* RSS feed of events in a character's life, exportable to FB * RSS feed of events in a character's life, exportable to FB
* PIC TALENTS AT LVL 45 FOR HIGH STAT, CLASS DEPENDANT * PIC TALENTS AT LVL 45 FOR HIGH STAT, CLASS DEPENDANT
* redo shops * redo shops
......
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