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

Reshape Weapon/Armour can not be used on quest items

git-svn-id: http://svn.net-core.org/repos/t-engine4@3016 51575b47-30f0-44d4-a5cc-537603b46e54
parent be2a9004
No related branches found
No related tags found
No related merge requests found
......@@ -983,7 +983,7 @@ function _M:debugRandomZone()
------------------------------------------------------------
data.depth = rng.range(2, 4)
data.min_lev, data.max_lev = game.player.level, game.player.level + 15
data.w, data.h = rng.range(20, 60), rng.range(20, 60)
data.w, data.h = rng.range(40, 60), rng.range(40, 60)
data.less_dir = rng.table{2, 4, 6, 8}
data.more_dir = ({[2]=8, [8]=2, [4]=6, [6]=4})[data.less_dir]
......
......@@ -51,7 +51,7 @@ newTalent{
end,
action = function(self, t)
self:showInventory("Reshape which weapon?", self:getInven("INVEN"), function(o) return o.type == "weapon" and not o.fully_reshaped end, function(o, item)
self:showInventory("Reshape which weapon?", self:getInven("INVEN"), function(o) return not o.quest and o.type == "weapon" and not o.fully_reshaped end, function(o, item)
--o.wielder = o.wielder or {}
if (o.old_atk or 0) < t.boost(self, t) then
o.combat.atk = (o.combat.atk or 0) - (o.old_atk or 0)
......@@ -95,7 +95,7 @@ newTalent{
return math.floor(0.1*self:combatTalentIntervalDamage(t, "wil", 50, 100))
end,
action = function(self, t)
self:showInventory("Reshape which piece of armor?", self:getInven("INVEN"), function(o) return o.type == "armor" and not o.fully_reshaped end, function(o, item)
self:showInventory("Reshape which piece of armor?", self:getInven("INVEN"), function(o) return not o.quest and o.type == "armor" and not o.fully_reshaped end, function(o, item)
if (o.old_fat or 0) < t.fat_red(self, t) then
o.wielder = o.wielder or {}
if not o.been_reshaped then
......
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