Skip to content
Snippets Groups Projects
Commit bee1d278 authored by Hachem_Muche's avatar Hachem_Muche
Browse files

Disable hotkeys.

parent 23c5e8aa
No related branches found
No related tags found
1 merge request!261NPC Object Use
......@@ -122,7 +122,8 @@ _M.useObjectBaseTalent ={
type = {"misc/objects", 1},
points = 1,
image = "talents/charm_mastery.png", --temporary? Note:displayentity is not a function
-- hide = "always",
hide = "always",
no_auto_hotkey = true,
never_fail = true, -- most actor status effects will not prevent use
innate = true, -- make sure this talent can't be put on cooldown by other talents or effects
display_name = function(self, t)
......@@ -341,6 +342,7 @@ function _M:useObjectEnable(o, inven_id, slot, base_name)
self:learnTalent(tid, true, talent_level)
--****** temporary hotkeys for testing
--[[
t=self:getTalentFromId(tid)
-- Hotkey
if oldpos then
......@@ -350,7 +352,7 @@ function _M:useObjectEnable(o, inven_id, slot, base_name)
end
self.hotkey[oldpos] = {"talent", "T_"..name}
end
--]]
return o, tid, t, talent_level
end
......
......@@ -196,7 +196,7 @@ newEntity{
charm_power = resolvers.mbonus_material(80, 20),
charm_power_def = {add=5, max=10, floor=true},
resolvers.charm("blink to a nearby random location (rad %d)", 25, function(self, who)
game.logSeen(who, "%s uses %s!", who.name:capitalize(), self:getName{no_add_name=true, do_color=true})
game.logSeen(who, "%s uses %s %s!", who.name:capitalize(), who:his_her(), self:getName{no_add_name=true, do_color=true})
game.level.map:particleEmitter(who.x, who.y, 1, "teleport")
who:teleportRandom(who.x, who.y, self:getCharmPower(who))
game.level.map:particleEmitter(who.x, who.y, 1, "teleport")
......
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