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

bows & slings improve firing range

git-svn-id: http://svn.net-core.org/repos/t-engine4@644 51575b47-30f0-44d4-a5cc-537603b46e54
parent bad790f3
No related branches found
No related tags found
No related merge requests found
......@@ -172,6 +172,7 @@ function _M:getDesc()
dm[#dm+1] = ("+%d%% %s"):format(i * 100, Stats.stats_def[stat].name)
end
desc[#desc+1] = ("%d Damage [Range %0.2f] (%s), %d Attack, %d Armor Penetration, Crit %d%%"):format(self.combat.dam or 0, self.combat.damrange or 1.1, table.concat(dm, ','), self.combat.atk or 0, self.combat.apr or 0, self.combat.physcrit or 0)
if self.combat.range then desc[#desc+1] = "Firing range: "..self.combat.range end
desc[#desc+1] = ""
end
......
-- ToME - Tales of Middle-Earth
-- 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
require "engine.class"
require "engine.generator.map.Static"
--- Make the wilderness map, loaded from the player's current wilderness
module(..., package.seeall, class.inherit(engine.generator.map.Static))
function _M:init(zone, map, level, data)
print("Loading wilderness map: ", game.player.current_wilderness)
data.map = game.player.current_wilderness
engine.generator.map.Static.init(self, zone, map, level, data)
end
......@@ -36,6 +36,7 @@ newEntity{ base = "BASE_LONGBOW",
require = { stat = { dex=11 }, },
cost = 5,
combat = {
range = 8,
physspeed = 0.8,
},
}
......@@ -46,6 +47,7 @@ newEntity{ base = "BASE_LONGBOW",
require = { stat = { dex=16 }, },
cost = 10,
combat = {
range = 10,
physspeed = 0.8,
},
}
......@@ -56,6 +58,7 @@ newEntity{ base = "BASE_LONGBOW",
require = { stat = { dex=24 }, },
cost = 15,
combat = {
range = 12,
physspeed = 0.8,
},
}
......@@ -66,6 +69,7 @@ newEntity{ base = "BASE_LONGBOW",
require = { stat = { dex=35 }, },
cost = 25,
combat = {
range = 15,
physspeed = 0.8,
},
}
......@@ -76,6 +80,7 @@ newEntity{ base = "BASE_LONGBOW",
require = { stat = { dex=48 }, },
cost = 35,
combat = {
range = 18,
physspeed = 0.8,
},
}
......
......@@ -35,6 +35,7 @@ newEntity{ base = "BASE_SLING",
require = { stat = { dex=11 }, },
cost = 5,
combat = {
range = 8,
physspeed = 0.8,
},
}
......@@ -45,6 +46,7 @@ newEntity{ base = "BASE_SLING",
require = { stat = { dex=16 }, },
cost = 10,
combat = {
range = 10,
physspeed = 0.8,
},
}
......@@ -55,6 +57,7 @@ newEntity{ base = "BASE_SLING",
require = { stat = { dex=24 }, },
cost = 15,
combat = {
range = 12,
physspeed = 0.8,
},
}
......@@ -65,6 +68,7 @@ newEntity{ base = "BASE_SLING",
require = { stat = { dex=35 }, },
cost = 25,
combat = {
range = 15,
physspeed = 0.8,
},
}
......@@ -75,6 +79,7 @@ newEntity{ base = "BASE_SLING",
require = { stat = { dex=48 }, },
cost = 35,
combat = {
range = 18,
physspeed = 0.8,
},
}
......
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