Forked from
tome / Tales of MajEyal
14169 commits behind the upstream repository.
-
dg authored
git-svn-id: http://svn.net-core.org/repos/t-engine4@935 51575b47-30f0-44d4-a5cc-537603b46e54
dg authoredgit-svn-id: http://svn.net-core.org/repos/t-engine4@935 51575b47-30f0-44d4-a5cc-537603b46e54
jewelry.lua 3.17 KiB
-- 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
newEntity{
define_as = "BASE_RING",
slot = "FINGER",
type = "jewelry", subtype="ring", image = resolvers.image_material("ring", {"copper", "steel", "gold", "galvorn", "mithril"}),
display = "=",
encumber = 0.1,
rarity = 6,
desc = [[Rings can have magical properties.]],
-- Most rings are ego items
egos = "/data/general/objects/egos/rings.lua", egos_chance = resolvers.mbonus(30, 80),
}
newEntity{
define_as = "BASE_AMULET",
slot = "NECK",
type = "jewelry", subtype="amulet", image = resolvers.image_material("amulet", {"copper", "steel", "gold", "galvorn", "mithril"}),
display = '"',
encumber = 0.1,
rarity = 8,
desc = [[Amulets can have magical properties.]],
egos = "/data/general/objects/egos/amulets.lua", egos_chance = resolvers.mbonus(30, 80),
}
newEntity{ base = "BASE_RING",
name = "copper ring", color = colors.UMBER,
unided_name = "copper ring",
level_range = {1, 10},
cost = 1,
material_level = 1,
}
newEntity{ base = "BASE_RING",
name = "steel ring", color = colors.SLATE,
unided_name = "steel ring",
level_range = {10, 20},
cost = 2,
material_level = 2,
}
newEntity{ base = "BASE_RING",
name = "gold ring", color = colors.YELLOW,
unided_name = "gold ring",
level_range = {20, 30},
cost = 5,
material_level = 3,
}
newEntity{ base = "BASE_RING",
name = "galvorn ring", color = {r=50, g=50, b=50},
unided_name = "galvorn ring",
level_range = {30, 40},
cost = 10,
material_level = 4,
}
newEntity{ base = "BASE_RING",
name = "mithril ring", color = colors.WHITE,
unided_name = "mithril ring",
level_range = {40, 50},
cost = 15,
material_level = 5,
}
newEntity{ base = "BASE_AMULET",
name = "copper amulet", color = colors.UMBER,
unided_name = "copper amulet",
level_range = {1, 10},
cost = 1,
material_level = 1,
}
newEntity{ base = "BASE_AMULET",
name = "steel amulet", color = colors.SLATE,
unided_name = "steel amulet",
level_range = {10, 20},
cost = 2,
material_level = 2,
}
newEntity{ base = "BASE_AMULET",
name = "gold amulet", color = colors.YELLOW,
unided_name = "gold amulet",
level_range = {20, 30},
cost = 5,
material_level = 3,
}
newEntity{ base = "BASE_AMULET",
name = "galvorn amulet", color = {r=50, g=50, b=50},
unided_name = "galvorn amulet",
level_range = {30, 40},
cost = 10,
material_level = 4,
}
newEntity{ base = "BASE_AMULET",
name = "mithril amulet", color = colors.WHITE,
unided_name = "mithril amulet",
level_range = {40, 50},
cost = 15,
material_level = 5,
}