From c55297099706995ccec2c0a94b9b615665aab9ad Mon Sep 17 00:00:00 2001
From: dg <dg@51575b47-30f0-44d4-a5cc-537603b46e54>
Date: Tue, 5 Apr 2011 21:28:12 +0000
Subject: [PATCH] Fixes gloves damage

git-svn-id: http://svn.net-core.org/repos/t-engine4@3152 51575b47-30f0-44d4-a5cc-537603b46e54
---
 game/modules/tome/class/Actor.lua                        | 2 +-
 .../modules/tome/data/general/objects/boss-artifacts.lua | 9 ++++-----
 game/modules/tome/data/general/objects/gauntlets.lua     | 7 +++----
 game/modules/tome/data/general/objects/gloves.lua        | 4 ----
 .../tome/data/general/objects/world-artifacts.lua        | 8 +++-----
 5 files changed, 11 insertions(+), 19 deletions(-)

diff --git a/game/modules/tome/class/Actor.lua b/game/modules/tome/class/Actor.lua
index a0fc6fc5e5..c7cce14efa 100644
--- a/game/modules/tome/class/Actor.lua
+++ b/game/modules/tome/class/Actor.lua
@@ -186,7 +186,7 @@ function _M:init(t, no_default)
 	mod.class.interface.ActorInscriptions.init(self, t)
 
 	-- Default melee barehanded damage
-	self.combat = self.combat or { dam=1, atk=1, apr=0, physcrit=0, physspeed =1, dammod={str=1} }
+	self.combat = self.combat or { dam=1, atk=1, apr=0, physcrit=0, physspeed =1, dammod={str=1}, damrange=1.1 }
 	self.talents[self.T_ATTACK] = self.talents[self.T_ATTACK] or 1
 
 	self:resetCanSeeCache()
diff --git a/game/modules/tome/data/general/objects/boss-artifacts.lua b/game/modules/tome/data/general/objects/boss-artifacts.lua
index 3273026f7c..a04be0bee9 100644
--- a/game/modules/tome/data/general/objects/boss-artifacts.lua
+++ b/game/modules/tome/data/general/objects/boss-artifacts.lua
@@ -754,13 +754,12 @@ newEntity{ base = "BASE_GLOVES", define_as = "FLAMEWROUGHT",
 		resists = { [DamageType.FIRE]= 10, },
 		inc_damage = { [DamageType.FIRE]= 5, },
 		combat = {
-			dam = 10,
-			apr = 1,
-			physcrit = 7,
+			dam = 5,
+			apr = 7,
+			physcrit = 1,
 			physspeed = -0.4,
 			dammod = {dex=0.4, str=-0.6, cun=0.4 },
-			damtype = DamageType.FIRE,
-			damrange = 1.2,
+			melee_project={[DamageType.FIRE] = 10},			
 		},
 	},
 	max_power = 24, power_regen = 1,
diff --git a/game/modules/tome/data/general/objects/gauntlets.lua b/game/modules/tome/data/general/objects/gauntlets.lua
index 6239468cde..e754c1cde8 100644
--- a/game/modules/tome/data/general/objects/gauntlets.lua
+++ b/game/modules/tome/data/general/objects/gauntlets.lua
@@ -30,7 +30,6 @@ newEntity{
 	encumber = 1.5,
 	rarity = 9,
 	metallic = true,
-	combat = { 	talented = "unarmed" ,},
 	desc = [[Metal gloves protecting the hands up to the middle of the lower arm.]],
 	randart_able = { attack=10, physical=10, spell=10, def=40, misc=30 },
 	egos = "/data/general/objects/egos/gloves.lua", egos_chance = { prefix=resolvers.mbonus(40, 5), suffix=resolvers.mbonus(40, 5) },
@@ -49,7 +48,7 @@ newEntity{ base = "BASE_GAUNTLETS",
 			physcrit = 1,
 			physspeed = -0.2,
 			dammod = {dex=0.4, str=-0.6, cun=0.4 },
-			damrange = 1.4,
+			damrange = 0.3,
 		},
 	},
 }
@@ -67,7 +66,7 @@ newEntity{ base = "BASE_GAUNTLETS",
 			physcrit = 1,
 			physspeed = -0.2,
 			dammod = {dex=0.4, str=-0.6, cun=0.4 },
-			damrange = 1.4,
+			damrange = 0.3,
 		},
 	},
 }
@@ -85,7 +84,7 @@ newEntity{ base = "BASE_GAUNTLETS",
 			physcrit = 3,
 			physspeed = -0.2,
 			dammod = {dex=0.4, str=-0.6, cun=0.4 },
-			damrange = 1.4,
+			damrange = 0.3,
 		},
 	},
 }
diff --git a/game/modules/tome/data/general/objects/gloves.lua b/game/modules/tome/data/general/objects/gloves.lua
index 1bd4469bf4..3db0f062df 100644
--- a/game/modules/tome/data/general/objects/gloves.lua
+++ b/game/modules/tome/data/general/objects/gloves.lua
@@ -28,7 +28,6 @@ newEntity{
 	image = resolvers.image_material("gloves", "leather"),
 	encumber = 1,
 	rarity = 9,
-	unarmed_combat = { talented = "unarmed", damrange = 1.4, sound = "actions/melee", sound_miss = "actions/melee_miss", },
 	desc = [[Light gloves which do not seriously hinder finger movements, while still protecting the hands somewhat.]],
 	randart_able = { attack=10, physical=10, spell=10, def=30, misc=10 },
 	egos = "/data/general/objects/egos/gloves.lua", egos_chance = { prefix=resolvers.mbonus(40, 5), suffix=resolvers.mbonus(40, 5) },
@@ -47,7 +46,6 @@ newEntity{ base = "BASE_GLOVES",
 			physcrit = 4,
 			physspeed = -0.4,
 			dammod = {dex=0.4, str=-0.6, cun=0.4 },
-			damrange = 1.2,
 		},
 	},
 }
@@ -65,7 +63,6 @@ newEntity{ base = "BASE_GLOVES",
 			physcrit = 7,
 			physspeed = -0.4,
 			dammod = {dex=0.4, str=-0.6, cun=0.4 },
-			damrange = 1.2,
 		},
 	},
 }
@@ -83,7 +80,6 @@ newEntity{ base = "BASE_GLOVES",
 			physcrit = 10,
 			physspeed = -0.4,
 			dammod = {dex=0.4, str=-0.6, cun=0.4 },
-			damrange = 1.2,
 		},
 	},
 }
diff --git a/game/modules/tome/data/general/objects/world-artifacts.lua b/game/modules/tome/data/general/objects/world-artifacts.lua
index 1d7371d3b9..c8a76ee2af 100644
--- a/game/modules/tome/data/general/objects/world-artifacts.lua
+++ b/game/modules/tome/data/general/objects/world-artifacts.lua
@@ -1109,7 +1109,6 @@ newEntity{ base = "BASE_GLOVES",
 			physcrit = 7,
 			physspeed = -0.4,
 			dammod = {dex=0.4, str=-0.6, cun=0.4 },
-			damrange = 1.2
 		},
 	},
 }
@@ -1137,7 +1136,7 @@ newEntity{ base = "BASE_GAUNTLETS",
 			physspeed = -0.2,
 			dammod = {dex=0.4, str=-0.6, cun=0.4 },
 			melee_project={[DamageType.ARCANE] = 20},
-			damrange = 1.4
+			damrange = 0.3,
 		},
 	},
 }
@@ -1164,7 +1163,6 @@ newEntity{ base = "BASE_GLOVES",
 			physspeed = -0.4,
 			dammod = {dex=0.4, str=-0.6, cun=0.4 },
 			melee_project={ [DamageType.COLD] = 10, [DamageType.LIGHTNING] = 10, },
-			damrange = 1.2
 		},
 	},
 	max_power = 6, power_regen = 1,
@@ -1197,7 +1195,7 @@ newEntity{ base = "BASE_GAUNTLETS",
 			dammod = {dex=0.4, str=-0.6, cun=0.4 },
 			melee_project={ [DamageType.LIGHTNING] = 20, },
 			talent_on_hit = { [Talents.T_LIGHTNING] = {level=3, chance=10} },
-			damrange = 1.4
+			damrange = 0.3,
 		},
 	},
 	max_power = 16, power_regen = 1,
@@ -1926,7 +1924,7 @@ newEntity{ base = "BASE_GAUNTLETS",
 			physspeed = 1,
 			dammod = {dex=0.3, str=-0.4, cun=0.3 },
 			melee_project={[DamageType.ACID] = 10},
-			damrange = 1.4,
+			damrange = 0.3,
 		},
 	},
 }
-- 
GitLab