From b489574d9c2b0c90ac3566c4d02d982822b630eb Mon Sep 17 00:00:00 2001
From: DarkGod <darkgod@net-core.org>
Date: Fri, 26 Jul 2013 23:44:22 +0200
Subject: [PATCH] assign missing races

---
 game/modules/tome/class/Actor.lua                  | 1 -
 game/modules/tome/data/birth/races/construct.lua   | 1 +
 game/modules/tome/data/birth/races/halfling.lua    | 1 +
 game/modules/tome/data/birth/races/undead.lua      | 2 ++
 game/modules/tome/data/birth/races/yeek.lua        | 1 +
 game/modules/tome/data/talents/spells/necrosis.lua | 1 +
 6 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/game/modules/tome/class/Actor.lua b/game/modules/tome/class/Actor.lua
index 7b0ed16211..8fa6c1a617 100644
--- a/game/modules/tome/class/Actor.lua
+++ b/game/modules/tome/class/Actor.lua
@@ -2785,7 +2785,6 @@ function _M:attachementSpot(kind, particle)
 	if not game.tiles_attachements or not game.tiles_attachements[as] or not game.tiles_attachements[as][kind] then return end
 	local x, y = 0, 0
 	if particle then x, y = -0.5, -0.5 end
-	print(kind,"=========", game.tiles_attachements[as][kind].x, game.tiles_attachements[as][kind].y)
 	return game.tiles_attachements[as][kind].x + x, game.tiles_attachements[as][kind].y + y
 end
 
diff --git a/game/modules/tome/data/birth/races/construct.lua b/game/modules/tome/data/birth/races/construct.lua
index f700b95db3..cc5e36aa92 100644
--- a/game/modules/tome/data/birth/races/construct.lua
+++ b/game/modules/tome/data/birth/races/construct.lua
@@ -55,6 +55,7 @@ newBirthDescriptor
 		"#GOLD#Life per level:#LIGHT_BLUE# 13",
 		"#GOLD#Experience penalty:#LIGHT_BLUE# 50%",
 	},
+	moddable_attachement_spots = "race_runic_golem",
 	descriptor_choices =
 	{
 		sex =
diff --git a/game/modules/tome/data/birth/races/halfling.lua b/game/modules/tome/data/birth/races/halfling.lua
index 63b4fac713..ab15de7aed 100644
--- a/game/modules/tome/data/birth/races/halfling.lua
+++ b/game/modules/tome/data/birth/races/halfling.lua
@@ -55,6 +55,7 @@ newBirthDescriptor{
 	},
 	random_escort_possibilities = { {"tier1.1", 1, 2}, {"tier1.2", 1, 2}, {"daikara", 1, 2}, {"old-forest", 1, 4}, {"dreadfell", 1, 8}, {"reknor", 1, 2}, },
 
+	moddable_attachement_spots = "race_halfling",
 	cosmetic_unlock = {
 		cosmetic_race_human_redhead = {
 			{name="Redhead [donator only]", donator=true, on_actor=function(actor) if actor.moddable_tile then actor.moddable_tile_base = "base_redhead_01.png" end end},
diff --git a/game/modules/tome/data/birth/races/undead.lua b/game/modules/tome/data/birth/races/undead.lua
index d99307c369..01cdc4d036 100644
--- a/game/modules/tome/data/birth/races/undead.lua
+++ b/game/modules/tome/data/birth/races/undead.lua
@@ -90,6 +90,7 @@ newBirthDescriptor
 		"#GOLD#Experience penalty:#LIGHT_BLUE# 25%",
 		"#GOLD#Speed penalty:#LIGHT_BLUE# -20%",
 	},
+	moddable_attachement_spots = "race_ghoul",
 	descriptor_choices =
 	{
 		sex =
@@ -141,6 +142,7 @@ newBirthDescriptor
 		"#GOLD#Life per level:#LIGHT_BLUE# 12",
 		"#GOLD#Experience penalty:#LIGHT_BLUE# 40%",
 	},
+	moddable_attachement_spots = "race_skeleton",
 	descriptor_choices =
 	{
 		sex =
diff --git a/game/modules/tome/data/birth/races/yeek.lua b/game/modules/tome/data/birth/races/yeek.lua
index e89668f8e3..420144baa8 100644
--- a/game/modules/tome/data/birth/races/yeek.lua
+++ b/game/modules/tome/data/birth/races/yeek.lua
@@ -55,6 +55,7 @@ newBirthDescriptor{
 		start_tier1_skip = 4,
 	},
 	random_escort_possibilities = { {"tier1.1", 1, 2}, {"tier1.2", 1, 2}, {"daikara", 1, 2}, {"old-forest", 1, 4}, {"dreadfell", 1, 8}, {"reknor", 1, 2}, },
+	moddable_attachement_spots = "race_yeek",
 }
 
 ---------------------------------------------------------
diff --git a/game/modules/tome/data/talents/spells/necrosis.lua b/game/modules/tome/data/talents/spells/necrosis.lua
index c71fd90311..127b92b3c5 100644
--- a/game/modules/tome/data/talents/spells/necrosis.lua
+++ b/game/modules/tome/data/talents/spells/necrosis.lua
@@ -169,6 +169,7 @@ newTalent{
 			self.moddable_tile_nude = true
 			self.moddable_tile_base = "base_lich_01.png"
 			self.moddable_tile_ornament = nil
+			self.attachement_spots = "race_skeleton",
 		end
 		self.blood_color = colors.GREY
 		self:attr("poison_immune", 1)
-- 
GitLab