From 8172cb4da9b5fc13c436c1d1d58cee679219042d Mon Sep 17 00:00:00 2001
From: dg <dg@51575b47-30f0-44d4-a5cc-537603b46e54>
Date: Wed, 21 Nov 2012 22:33:00 +0000
Subject: [PATCH] hehe

git-svn-id: http://svn.net-core.org/repos/t-engine4@5802 51575b47-30f0-44d4-a5cc-537603b46e54
---
 .../data/general/objects/world-artifacts.lua  |  4 +-
 .../data/zones/crypt-kryl-feijan/objects.lua  | 41 ++++++++++++++++++-
 .../data/zones/halfling-ruins/objects.lua     | 34 +++++++++++++++
 3 files changed, 76 insertions(+), 3 deletions(-)

diff --git a/game/modules/tome/data/general/objects/world-artifacts.lua b/game/modules/tome/data/general/objects/world-artifacts.lua
index cb851db9d8..b05a88ecde 100644
--- a/game/modules/tome/data/general/objects/world-artifacts.lua
+++ b/game/modules/tome/data/general/objects/world-artifacts.lua
@@ -5161,8 +5161,8 @@ newEntity{ base = "BASE_CLOAK",
 		inc_damage={ [DamageType.PHYSICAL] = 5,},
 		resists={ [DamageType.PHYSICAL] = 5,},
 	},
-	max_power = 18, power_regen = 1,
-	use_talent = { id = Talents.T_STONE_WALL, level = 2, power = 18 },
+	max_power = 50, power_regen = 1,
+	use_talent = { id = Talents.T_STONE_WALL, level = 1, power = 50 },
 }
 
 newEntity{ base = "BASE_LIGHT_ARMOR", --Thanks SageAcrin!
diff --git a/game/modules/tome/data/zones/crypt-kryl-feijan/objects.lua b/game/modules/tome/data/zones/crypt-kryl-feijan/objects.lua
index 83e192bbc7..cb1c5f74e6 100644
--- a/game/modules/tome/data/zones/crypt-kryl-feijan/objects.lua
+++ b/game/modules/tome/data/zones/crypt-kryl-feijan/objects.lua
@@ -17,4 +17,43 @@
 -- Nicolas Casalini "DarkGod"
 -- darkgod@te4.org
 
-load("/data/general/objects/objects-far-east.lua")
+load("/data/general/objects/objects.lua")
+
+local Stats = require "engine.interface.ActorStats"
+local Talents = require "engine.interface.ActorTalents"
+
+newEntity{ base = "BASE_MINDSTAR",
+	power_source = {psionic = true },
+	unique = true,
+	name = "Writhing Essence of Nightmares", image = "",
+	desc = [[Whispers seem to ceaselessly emanate from this writhing mass of black tentacles, murmuring unspeakable horrors into the ears of any unfortunate enough to hear them.]],
+	unided_name = "writhing mindstar",
+	level_range = {20, 32},
+	colors = colors.PURPLE , image = "object/artifact/writhing_essence_of_nightmares.png",
+	rarity = 50,
+	cost = 120,
+	require= {stat = { wil=30 }, },
+	material_level = 3,
+	combat = {
+		dam = 15,
+		apr = 20,
+		physcrit = 2,
+		dammod = { wil=0.5, cun=0.3 },
+		damtype=DamageType.DARKNESS,
+	},
+	wielder = {
+		combat_mindpower = 15,
+		ombat_mindcrit =  3,
+		inc_damage= {
+			[DamageType.MIND] = 10,
+			[DamageType.DARKNESS] = 10,
+		},
+		talents_types_mastery = {
+			["cursed/fears"] = 0.2,
+			["psionic/nightmare"] = 0.2,
+		},
+		inc_stats = { [Stats.STAT_WIL] = 4, [Stats.STAT_CUN] = 2, },
+	},
+	max_power = 40, power_regen=1,
+	use_talent = { id = Talents.T_WAKING_NIGHTMARE , level = 2, power = 40},
+}
diff --git a/game/modules/tome/data/zones/halfling-ruins/objects.lua b/game/modules/tome/data/zones/halfling-ruins/objects.lua
index 2324c48ff1..c912cecc19 100644
--- a/game/modules/tome/data/zones/halfling-ruins/objects.lua
+++ b/game/modules/tome/data/zones/halfling-ruins/objects.lua
@@ -28,3 +28,37 @@ newEntity{ base = "BASE_LORE",
 	encumberance = 0,
 }
 end
+
+newEntity{ base = "BASE_CLOTH_ARMOR",
+	power_source = {psionic=true},
+	unique = true,
+	name = "Yeek-fur Robe", color = colors.WHITE, image = "object/artifact/yeek_fur_robe.png",
+	unided_name = "sleek fur robe",
+	desc = [[A beautifully soft robe of fine white fur. It looks designed for a halfling noble, with glorious sapphires sewn across the hems. But entrancing as it is you can't help but feel a little queasy wearing it.]],
+	level_range = {12, 22},
+	rarity = 50,
+	cost = 250,
+	material_level = 2,
+	wielder = {
+		combat_def = 9,
+		combat_armor = 3,
+		combat_mindpower = 5,
+		combat_mentalresist = 10,
+		inc_damage={[DamageType.MIND] = 5},
+		resists={[DamageType.COLD] = 20},
+	},
+	on_wear = function(self, who)
+		if who.descriptor and who.descriptor.race == "Yeek" then
+			local Talents = require "engine.interface.ActorStats"
+			self:specialWearAdd({"wielder","combat_mindpower"}, -15)
+			self:specialWearAdd({"wielder","combat_mentalresist"}, -25)
+			game.logPlayer(who, "#RED#You feel disgusted touching this thing!")
+		end
+		if who.descriptor and who.descriptor.race == "Halfling" then
+			local Talents = require "engine.interface.ActorStats"
+			self:specialWearAdd({"wielder","resists"}, {[engine.DamageType.MIND] = 15,})
+			self:specialWearAdd({"wielder","combat_mentalresist"}, 10)
+			game.logPlayer(who, "#LIGHT_BLUE#You feel this robe was made for you!")
+		end
+	end,
+}
-- 
GitLab