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

Swift Hands prodigy also makes wearing/taking off items not take a turn

git-svn-id: http://svn.net-core.org/repos/t-engine4@6499 51575b47-30f0-44d4-a5cc-537603b46e54
parent 2cadcec4
No related branches found
No related tags found
No related merge requests found
......@@ -1020,7 +1020,7 @@ function _M:doWear(inven, item, o)
self:removeObject(inven, item, true)
local ro = self:wearObject(o, true, true)
if ro then
self:useEnergy()
if not self:attr("quick_wear_takeoff") then self:useEnergy() end
if type(ro) == "table" then self:addObject(inven, ro) end
elseif not ro then
self:addObject(inven, o)
......@@ -1037,7 +1037,7 @@ function _M:doTakeoff(inven, item, o, simple)
end
if not simple then
self:sortInven()
self:useEnergy()
if not self:attr("quick_wear_takeoff") then self:useEnergy() end
end
self:playerCheckSustains()
self.changed = true
......
......@@ -41,13 +41,15 @@ uberTalent{
on_learn = function(self, t)
self:attr("quick_weapon_swap", 1)
self:attr("quick_equip_cooldown", 1)
self:attr("quick_wear_takeoff", 1)
end,
on_unlearn = function(self, t)
self:attr("quick_weapon_swap", -1)
self:attr("quick_equip_cooldown", -1)
self:attr("quick_wear_takeoff", -1)
end,
info = function(self, t)
return ([[You have very agile hands; swapping equipment sets (default q key) takes no time.
return ([[You have very agile hands; swapping equipment sets (default q key) takes no time, nor does wearing/taking off items.
Also the cooldown for equipping activatable equipment is removed.]])
:format()
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