From 01a47b572b4f4f91aeab058e397126432d494149 Mon Sep 17 00:00:00 2001 From: dg <dg@51575b47-30f0-44d4-a5cc-537603b46e54> Date: Tue, 21 Sep 2010 14:12:51 +0000 Subject: [PATCH] Added cloaks along with their egos Added new world artifacts git-svn-id: http://svn.net-core.org/repos/t-engine4@1273 51575b47-30f0-44d4-a5cc-537603b46e54 --- .../tome/data/general/objects/cloak.lua | 60 ++++++++++++++ .../tome/data/general/objects/egos/cloak.lua | 82 +++++++++++++++++++ .../tome/data/general/objects/gauntlets.lua | 2 +- .../tome/data/general/objects/objects.lua | 1 + .../data/general/objects/world-artifacts.lua | 36 ++++++++ 5 files changed, 180 insertions(+), 1 deletion(-) create mode 100644 game/modules/tome/data/general/objects/cloak.lua create mode 100644 game/modules/tome/data/general/objects/egos/cloak.lua diff --git a/game/modules/tome/data/general/objects/cloak.lua b/game/modules/tome/data/general/objects/cloak.lua new file mode 100644 index 0000000000..4906e28778 --- /dev/null +++ b/game/modules/tome/data/general/objects/cloak.lua @@ -0,0 +1,60 @@ +-- 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_CLOAK", + slot = "BACK", + type = "armor", subtype="cloak", + add_name = " (#ARMOR#)", + display = "(", color=colors.UMBER, image = resolvers.image_material("cloak", "cloth"), + encumber = 2, + rarity = 6, + desc = [[A cloth coat typically worn as a loose outer garment. It is spacious enough to be worn even over bulky metal armour.]], + egos = "/data/general/objects/egos/cloak.lua", egos_chance = { prefix=resolvers.mbonus(40, 5), suffix=resolvers.mbonus(40, 5) }, +} + +newEntity{ base = "BASE_CLOAK", + name = "linen cloak", + level_range = {1, 20}, + cost = 2, + material_level = 1, + wielder = { + combat_def = 1, + }, +} + +newEntity{ base = "BASE_CLOAK", + name = "cashmere cloak", + level_range = {20, 40}, + cost = 4, + material_level = 3, + wielder = { + combat_def = 2, + }, +} + +newEntity{ base = "BASE_CLOAK", + name = "elven-silk cloak", + level_range = {40, 50}, + cost = 7, + material_level = 5, + wielder = { + combat_def = 3, + }, +} diff --git a/game/modules/tome/data/general/objects/egos/cloak.lua b/game/modules/tome/data/general/objects/egos/cloak.lua new file mode 100644 index 0000000000..417dafcee7 --- /dev/null +++ b/game/modules/tome/data/general/objects/egos/cloak.lua @@ -0,0 +1,82 @@ +-- 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 +local Stats = require "engine.interface.ActorStats" +local DamageType = require "engine.DamageType" + +load("/data/general/objects/egos/charged-defensive.lua") + +newEntity{ + name = "shadow ", prefix=true, instant_resolve=true, + level_range = {20, 50}, + rarity = 5, + cost = 6, + wielder = { + inc_stealth = resolvers.mbonus_material(20, 5, function(e, v) return v * 1, v end), + }, +} + +newEntity{ + name = "thick ", prefix=true, instant_resolve=true, + level_range = {1, 40}, + rarity = 6, + cost = 7, + wielder = { + resists={[DamageType.COLD] = resolvers.mbonus_material(20, 10, function(e, v) return v * 0.15 end)}, + }, +} + +newEntity{ + name = "plush ", prefix=true, instant_resolve=true, + level_range = {1, 50}, + rarity = 6, + cost = 7, + wielder = { + combat_armor = resolvers.mbonus_material(8, 5, function(e, v) return v * 1 end), + }, +} + +newEntity{ + name = " of the Shire", suffix=true, + level_range = {1, 50}, + rarity = 6, + cost = 10, + wielder = { + inc_stats = { [Stats.STAT_DEX] = 2, [Stats.STAT_CUN] = 2, }, + }, +} + +newEntity{ + name = " of the Sindar", suffix=true, + level_range = {1, 50}, + rarity = 6, + cost = 10, + wielder = { + inc_stats = { [Stats.STAT_MAG] = 2, [Stats.STAT_WIL] = 2, }, + }, +} + +newEntity{ + name = " of Lonely Mountain", suffix=true, + level_range = {1, 50}, + rarity = 6, + cost = 10, + wielder = { + inc_stats = { [Stats.STAT_STR] = 2, [Stats.STAT_CON] = 2, }, + }, +} diff --git a/game/modules/tome/data/general/objects/gauntlets.lua b/game/modules/tome/data/general/objects/gauntlets.lua index 4834559626..74c8ef09ae 100644 --- a/game/modules/tome/data/general/objects/gauntlets.lua +++ b/game/modules/tome/data/general/objects/gauntlets.lua @@ -24,7 +24,7 @@ newEntity{ slot = "HANDS", type = "armor", subtype="hands", add_name = " (#ARMOR#)", - display = "[", color=colors.UMBER, + display = "[", color=colors.SLATE, image = resolvers.image_material("gauntlets", "metal"), require = { talent = { Talents.T_HEAVY_ARMOUR_TRAINING }, }, encumber = 1.5, diff --git a/game/modules/tome/data/general/objects/objects.lua b/game/modules/tome/data/general/objects/objects.lua index b563f6df27..0db04ab412 100644 --- a/game/modules/tome/data/general/objects/objects.lua +++ b/game/modules/tome/data/general/objects/objects.lua @@ -70,6 +70,7 @@ loadIfNot("/data/general/objects/leather-boots.lua") loadIfNot("/data/general/objects/heavy-boots.lua") loadIfNot("/data/general/objects/gloves.lua") loadIfNot("/data/general/objects/gauntlets.lua") +loadIfNot("/data/general/objects/cloak.lua") -- Mounts loadIfNot("/data/general/objects/mounts.lua") diff --git a/game/modules/tome/data/general/objects/world-artifacts.lua b/game/modules/tome/data/general/objects/world-artifacts.lua index c7847e59bc..c8f8b2cd81 100644 --- a/game/modules/tome/data/general/objects/world-artifacts.lua +++ b/game/modules/tome/data/general/objects/world-artifacts.lua @@ -580,6 +580,42 @@ newEntity{ base = "BASE_HELM", use_talent = { id = Talents.T_WARSHOUT, level = 2, power = 80 }, } +newEntity{ base = "BASE_GLOVES", + unique = true, + name = "Gloves of the Firm Hand", + unided_name = "heavy gloves", + desc = [[These gloves make you feel rock steady! These magical gloves feel really soft on the touch from the inside. On the outside magical stones create a rough surface that is constantly shifting. When you brace yourself a magical ray of earth energy seems to automatically bind them to the ground, granting you increased stability.]], + level_range = {17, 27}, + rarity = 210, + cost = 150, + material_level = 3, + wielder = { + inc_stats = { [Stats.STAT_CON] = resolvers.mbonus_material(4, 2, function(e, v) return v * 3 end) }, + disarm_immune=0.3, + knockback_immune=0.3, + stun_immune=0.3, + }, +} + +newEntity{ base = "BASE_CLOAK", + unique = true, + name = "Cloak of Grima", + unided_name = "tattered cloak", + desc = [[Worn by the Wormtongue when feigning to be a councilor to Theoden while carrying intelligence back to Saruman.]], + level_range = {20, 29}, + rarity = 240, + cost = 200, + material_level = 3, + wielder = { + combat_def = 10, + inc_stats = { [Stats.STAT_CUN] = 4, [Stats.STAT_CUN] = 3, }, + talents_types_mastery = { ["cunning/stealth"] = 0.1, }, + + }, + max_power = 60, power_regen = 1, + use_talent = { id = Talents.T_PHASE_DOOR, level = 2, power = 30 }, +} + --[=[ newEntity{ unique = true, -- GitLab