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

Removed Packing talent tree

git-svn-id: http://svn.net-core.org/repos/t-engine4@2436 51575b47-30f0-44d4-a5cc-537603b46e54
parent ddd0a342
No related branches found
No related tags found
No related merge requests found
......@@ -1306,9 +1306,6 @@ end
function _M:getMaxEncumbrance()
local add = 0
if self:knowTalent(self.T_BURDEN_MANAGEMENT) then
add = add + 20 + self:getTalentLevel(self.T_BURDEN_MANAGEMENT) * 15
end
return math.floor(40 + self:getStr() * 1.8 + (self.max_encumber or 0) + add)
end
......@@ -1316,16 +1313,6 @@ function _M:getEncumbrance()
local enc = 0
local fct = function(so) enc = enc + so.encumber end
if self:knowTalent(self.T_EFFICIENT_PACKING) then
local reduction = 1 - self:getTalentLevel(self.T_EFFICIENT_PACKING) * 0.1
fct = function(so)
if so.encumber <= 1 then
enc = enc + so.encumber * reduction
else
enc = enc + so.encumber
end
end
end
-- Compute encumbrance
for inven_id, inven in pairs(self.inven) do
......@@ -1794,15 +1781,6 @@ function _M:antimagicBackslash(turns)
if done then game.logPlayer(self, "#LIGHT_RED#Your antimagic abilities are disrupted!") end
end
--- Pack Rat chance
function _M:doesPackRat()
if self:knowTalent(self.T_PACK_RAT) then
local chance = 10 + self:getTalentLevel(self.T_PACK_RAT) * 7
if rng.percent(chance) then return true end
end
return false
end
--- Return the full description of a talent
-- You may overload it to add more data (like power usage, ...)
function _M:getTalentFullDescription(t, addlevel)
......
......@@ -169,9 +169,6 @@ local function tryDestroy(who, inven, dam, destroy_prop, proof_prop, msg)
if not inven then return end
local reduction = 1
if who:knowTalent(who.T_INSULATING_PACKING) then
reduction = who:getTalentLevel(who.T_INSULATING_PACKING) * 0.14
end
for i = #inven, 1, -1 do
local o = inven[i]
......
......@@ -26,7 +26,6 @@ newTalentType{ allow_random=true, type="cunning/dirty", name = "dirty fighting",
newTalentType{ allow_random=true, type="cunning/lethality", name = "lethality", description = "How to make your foes feel the pain." }
newTalentType{ allow_random=true, type="cunning/shadow-magic", name = "shadow magic", description = "Blending magic and shadows." }
newTalentType{ allow_random=true, type="cunning/survival", name = "survival", generic = true, description = "The knowledge of the dangers of the world, and how to best avoid them." }
newTalentType{ allow_random=true, type="cunning/packing", name = "packing", generic = true, description = "Learn to optimize your carrying capacity and even how to protect fragile items." }
-- Generic requires for cunning based on talent level
cuns_req1 = {
......@@ -55,5 +54,4 @@ load("/data/talents/cunning/traps.lua")
load("/data/talents/cunning/dirty.lua")
load("/data/talents/cunning/lethality.lua")
load("/data/talents/cunning/survival.lua")
load("/data/talents/cunning/packing.lua")
load("/data/talents/cunning/shadow-magic.lua")
-- ToME - Tales of Maj'Eyal
-- Copyright (C) 2009, 2010 Nicolas Casalini
--
-- This program is free software: you can redistribute it and/or modify
-- it under the terms of the GNU General Public License as published by
-- the Free Software Foundation, either version 3 of the License, or
-- (at your option) any later version.
--
-- This program is distributed in the hope that it will be useful,
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-- GNU General Public License for more details.
--
-- You should have received a copy of the GNU General Public License
-- along with this program. If not, see <http://www.gnu.org/licenses/>.
--
-- Nicolas Casalini "DarkGod"
-- darkgod@te4.org
newTalent{
name = "Efficient Packing",
type = {"cunning/packing", 1},
require = cuns_req1,
mode = "passive",
points = 5,
on_learn = function(self, t)
self:checkEncumbrance()
end,
on_unlearn = function(self, t)
self:checkEncumbrance()
end,
info = function(self, t)
return ([[Arrange your small items (of one or less encumbrance value) to gain space, reducing their encumbrance by %d%%.]]):
format(self:getTalentLevel(t) * 10)
end,
}
newTalent{
name = "Insulating Packing",
type = {"cunning/packing", 2},
require = cuns_req2,
mode = "passive",
points = 5,
info = function(self, t)
return ([[Arrange your items in better way, protecting those that can easily be destroyed, reducing their chance to be destroyed by %d%%.]]):
format(self:getTalentLevel(t) * 14)
end,
}
newTalent{
name = "Burden Management",
type = {"cunning/packing", 3},
require = cuns_req3,
mode = "passive",
points = 5,
on_learn = function(self, t)
self:checkEncumbrance()
end,
on_unlearn = function(self, t)
self:checkEncumbrance()
end,
info = function(self, t)
return ([[Learn to manage heavy burdens using cunning balance, increasing your maximum encumbrance by %d.]]):
format(20 + self:getTalentLevel(t) * 15)
end,
}
newTalent{
name = "Pack Rat",
type = {"cunning/packing", 4},
points = 5,
require = cuns_req4,
mode = "passive",
info = function(self, t)
return ([[Your pack is bigger than you remember. When you use a scroll/potion/ammo you have a %d%% chance to find a new one in your pack.]]):
format(10 + self:getTalentLevel(t) * 7)
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