From 3a64c44a53926142844481c14cd2fda5e96c8b13 Mon Sep 17 00:00:00 2001
From: DarkGod <darkgod@net-core.org>
Date: Sat, 21 Dec 2019 20:04:08 +0100
Subject: [PATCH] Halved the experience penalty on all races

---
 game/modules/tome/data/birth/races/construct.lua | 4 ++--
 game/modules/tome/data/birth/races/elf.lua       | 4 ++--
 game/modules/tome/data/birth/races/giant.lua     | 5 ++---
 game/modules/tome/data/birth/races/halfling.lua  | 4 ++--
 game/modules/tome/data/birth/races/undead.lua    | 8 ++++----
 5 files changed, 12 insertions(+), 13 deletions(-)

diff --git a/game/modules/tome/data/birth/races/construct.lua b/game/modules/tome/data/birth/races/construct.lua
index 4a4bc3de7b..5e2c69ce96 100644
--- a/game/modules/tome/data/birth/races/construct.lua
+++ b/game/modules/tome/data/birth/races/construct.lua
@@ -53,7 +53,7 @@ newBirthDescriptor
 		"#LIGHT_BLUE# * +3 Strength, -2 Dexterity, +3 Constitution",
 		"#LIGHT_BLUE# * +2 Magic, +2 Willpower, -5 Cunning",
 		"#GOLD#Life per level:#LIGHT_BLUE# 13",
-		"#GOLD#Experience penalty:#LIGHT_BLUE# 50%",
+		"#GOLD#Experience penalty:#LIGHT_BLUE# 25%",
 	},
 	moddable_attachement_spots = "race_runic_golem", moddable_attachement_spots_sexless=true,
 	descriptor_choices =
@@ -110,7 +110,7 @@ newBirthDescriptor
 		moddable_tile = "runic_golem",
 		moddable_tile_nude = 1,
 	},
-	experience = 1.5,
+	experience = 1.25,
 
 	cosmetic_options = {
 		skin = {
diff --git a/game/modules/tome/data/birth/races/elf.lua b/game/modules/tome/data/birth/races/elf.lua
index 90bbe4aa27..ea84df8406 100644
--- a/game/modules/tome/data/birth/races/elf.lua
+++ b/game/modules/tome/data/birth/races/elf.lua
@@ -107,7 +107,7 @@ newBirthDescriptor
 		"#LIGHT_BLUE# * -2 Strength, +1 Dexterity, +0 Constitution",
 		"#LIGHT_BLUE# * +2 Magic, +3 Willpower, +1 Cunning",
 		"#GOLD#Life per level:#LIGHT_BLUE# 9",
-		"#GOLD#Experience penalty:#LIGHT_BLUE# 25%",
+		"#GOLD#Experience penalty:#LIGHT_BLUE# 12%",
 	},
 	inc_stats = { str=-2, mag=2, wil=3, cun=1, dex=1, con=0 },
 	experience = 1.3,
@@ -129,7 +129,7 @@ newBirthDescriptor
 		resolvers.inscription("RUNE:_SHATTER_AFFLICTIONS", {cooldown=18, shield=50}, 2),
 		resolvers.inscription("RUNE:_BLINK", {cooldown=16, range=3, dur=3, power=15}, 3),
 	},
-	experience = 1.25,
+	experience = 1.12,
 	random_escort_possibilities = { {"tier1.1", 1, 2}, {"tier1.2", 1, 2}, {"daikara", 1, 2}, {"old-forest", 1, 4}, {"dreadfell", 1, 8}, {"reknor", 1, 2}, },
 }
 
diff --git a/game/modules/tome/data/birth/races/giant.lua b/game/modules/tome/data/birth/races/giant.lua
index 4e2b79a70e..dd4a0319d6 100644
--- a/game/modules/tome/data/birth/races/giant.lua
+++ b/game/modules/tome/data/birth/races/giant.lua
@@ -64,11 +64,11 @@ to start, look where halflings once tinkered with portals...]],
 		"#LIGHT_BLUE# * +3 Strength, -1 Dexterity, +0 Constitution",
 		"#LIGHT_BLUE# * +2 Magic, -2 Willpower, +2 Cunning",
 		"#GOLD#Life per level:#LIGHT_BLUE# 13",
-		"#GOLD#Experience penalty:#LIGHT_BLUE# 30%",
+		"#GOLD#Experience penalty:#LIGHT_BLUE# 15%",
 	},
 	moddable_attachement_spots = "race_ogre",
 	inc_stats = { str=3, mag=2, wil=-2, cun=2, dex=-1, con=0 },
-	experience = 1.3,
+	experience = 1.15,
 	talents_types = { ["race/ogre"]={true, 0} },
 	talents = { [ActorTalents.T_OGRE_WRATH]=1 },
 	copy = {
@@ -87,7 +87,6 @@ to start, look where halflings once tinkered with portals...]],
 		resolvers.inscription("RUNE:_BLINK", {cooldown=16, range=3, dur=3, power=15}, 3),
 		resolvers.inventory{ id=true, {defined="ORB_SCRYING"} },
 	},
-	experience = 1.3,
 	random_escort_possibilities = { {"tier1.1", 1, 2}, {"tier1.2", 1, 2}, {"daikara", 1, 2}, {"old-forest", 1, 4}, {"dreadfell", 1, 8}, {"reknor", 1, 2}, },
 
 	default_cosmetics = { {"hairs", "Dark Hair 1"} },
diff --git a/game/modules/tome/data/birth/races/halfling.lua b/game/modules/tome/data/birth/races/halfling.lua
index 6ef83178bd..0a05e1636e 100644
--- a/game/modules/tome/data/birth/races/halfling.lua
+++ b/game/modules/tome/data/birth/races/halfling.lua
@@ -106,10 +106,10 @@ newBirthDescriptor
 		"#LIGHT_BLUE# * +0 Magic, +0 Willpower, +3 Cunning",
 		"#LIGHT_BLUE# * +5 Luck",
 		"#GOLD#Life per level:#LIGHT_BLUE# 12",
-		"#GOLD#Experience penalty:#LIGHT_BLUE# 20%",
+		"#GOLD#Experience penalty:#LIGHT_BLUE# 10%",
 	},
 	inc_stats = { str=-3, dex=3, con=1, cun=3, lck=5, },
-	experience = 1.20,
+	experience = 1.10,
 	talents_types = { ["race/halfling"]={true, 0} },
 	talents = {
 		[ActorTalents.T_HALFLING_LUCK]=1,
diff --git a/game/modules/tome/data/birth/races/undead.lua b/game/modules/tome/data/birth/races/undead.lua
index f3590d953b..d04d4d5d68 100644
--- a/game/modules/tome/data/birth/races/undead.lua
+++ b/game/modules/tome/data/birth/races/undead.lua
@@ -99,7 +99,7 @@ newBirthDescriptor
 		"#LIGHT_BLUE# * +3 Strength, +1 Dexterity, +5 Constitution",
 		"#LIGHT_BLUE# * +0 Magic, -2 Willpower, -2 Cunning",
 		"#GOLD#Life per level:#LIGHT_BLUE# 14",
-		"#GOLD#Experience penalty:#LIGHT_BLUE# 25%",
+		"#GOLD#Experience penalty:#LIGHT_BLUE# 12%",
 		"#GOLD#Speed penalty:#LIGHT_BLUE# -20%",
 	},
 	moddable_attachement_spots = "race_ghoul", moddable_attachement_spots_sexless=true,
@@ -131,7 +131,7 @@ newBirthDescriptor
 		moddable_tile = "ghoul",
 		moddable_tile_nude = 1,
 	},
-	experience = 1.25,
+	experience = 1.12,
 
 	cosmetic_options = {
 		skin = {
@@ -195,7 +195,7 @@ newBirthDescriptor
 		"#LIGHT_BLUE# * +3 Strength, +4 Dexterity, +0 Constitution",
 		"#LIGHT_BLUE# * +0 Magic, +0 Willpower, +0 Cunning",
 		"#GOLD#Life per level:#LIGHT_BLUE# 12",
-		"#GOLD#Experience penalty:#LIGHT_BLUE# 40%",
+		"#GOLD#Experience penalty:#LIGHT_BLUE# 20%",
 	},
 	moddable_attachement_spots = "race_skeleton", moddable_attachement_spots_sexless=true,
 	descriptor_choices =
@@ -226,7 +226,7 @@ newBirthDescriptor
 		moddable_tile = "skeleton",
 		moddable_tile_nude = 1,
 	},
-	experience = 1.4,
+	experience = 1.2,
 
 	cosmetic_options = {
 		skin = {
-- 
GitLab