Skip to content
Snippets Groups Projects
Commit 92c98953 authored by DarkGod's avatar DarkGod
Browse files

gloves & gauntlets have accuracy effects

parent 4fa09e42
No related branches found
No related tags found
No related merge requests found
...@@ -682,7 +682,7 @@ function _M:addTemporaryValue(prop, v, noupdate) ...@@ -682,7 +682,7 @@ function _M:addTemporaryValue(prop, v, noupdate)
end end
elseif type(v) == "string" then elseif type(v) == "string" then
-- Only last works on strings -- Only last works on strings
if method == "last" then if true or method == "last" then
base["__tlast_"..prop] = base["__tlast_"..prop] or {[-1] = base[prop]} base["__tlast_"..prop] = base["__tlast_"..prop] or {[-1] = base[prop]}
local b = base["__tlast_"..prop] local b = base["__tlast_"..prop]
b[id] = v b[id] = v
...@@ -780,7 +780,7 @@ function _M:removeTemporaryValue(prop, id, noupdate) ...@@ -780,7 +780,7 @@ function _M:removeTemporaryValue(prop, id, noupdate)
end end
elseif type(v) == "string" then elseif type(v) == "string" then
-- Only last works on strings -- Only last works on strings
if method == "last" then if true or method == "last" then
base["__tlast_"..prop] = base["__tlast_"..prop] or {} base["__tlast_"..prop] = base["__tlast_"..prop] or {}
local b = base["__tlast_"..prop] local b = base["__tlast_"..prop]
b[id] = nil b[id] = nil
......
...@@ -44,6 +44,7 @@ newEntity{ base = "BASE_GAUNTLETS", ...@@ -44,6 +44,7 @@ newEntity{ base = "BASE_GAUNTLETS",
wielder = { wielder = {
combat_armor = 1, combat_armor = 1,
combat = { combat = {
accuracy_effect = "mace",
dam = resolvers.rngavg(7, 12), dam = resolvers.rngavg(7, 12),
apr = 3, apr = 3,
physcrit = 2, physcrit = 2,
...@@ -62,6 +63,7 @@ newEntity{ base = "BASE_GAUNTLETS", ...@@ -62,6 +63,7 @@ newEntity{ base = "BASE_GAUNTLETS",
wielder = { wielder = {
combat_armor = 2, combat_armor = 2,
combat = { combat = {
accuracy_effect = "mace",
dam = resolvers.rngavg(16, 22), dam = resolvers.rngavg(16, 22),
apr = 9, apr = 9,
physcrit = 8, physcrit = 8,
...@@ -80,6 +82,7 @@ newEntity{ base = "BASE_GAUNTLETS", ...@@ -80,6 +82,7 @@ newEntity{ base = "BASE_GAUNTLETS",
wielder = { wielder = {
combat_armor = 3, combat_armor = 3,
combat = { combat = {
accuracy_effect = "mace",
dam = resolvers.rngavg(25, 32), dam = resolvers.rngavg(25, 32),
apr = 15, apr = 15,
physcrit = 10, physcrit = 10,
......
...@@ -42,6 +42,7 @@ newEntity{ base = "BASE_GLOVES", ...@@ -42,6 +42,7 @@ newEntity{ base = "BASE_GLOVES",
wielder = { wielder = {
combat_armor = 1, combat_armor = 1,
combat = { combat = {
accuracy_effect = "axe",
dam = resolvers.rngavg(5, 8), dam = resolvers.rngavg(5, 8),
apr = 1, apr = 1,
physcrit = 1, physcrit = 1,
...@@ -59,6 +60,7 @@ newEntity{ base = "BASE_GLOVES", ...@@ -59,6 +60,7 @@ newEntity{ base = "BASE_GLOVES",
wielder = { wielder = {
combat_armor = 2, combat_armor = 2,
combat = { combat = {
accuracy_effect = "axe",
dam = resolvers.rngavg(14, 18), dam = resolvers.rngavg(14, 18),
apr = 3, apr = 3,
physcrit = 3, physcrit = 3,
...@@ -76,6 +78,7 @@ newEntity{ base = "BASE_GLOVES", ...@@ -76,6 +78,7 @@ newEntity{ base = "BASE_GLOVES",
wielder = { wielder = {
combat_armor = 3, combat_armor = 3,
combat = { combat = {
accuracy_effect = "axe",
dam = resolvers.rngavg(23, 28), dam = resolvers.rngavg(23, 28),
apr = 5, apr = 5,
physcrit = 5, physcrit = 5,
......
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