changeset 1577:5abc59d9e434 0.5.3

balanced enchantment price and effect
author wuha
date Tue, 14 Dec 2010 22:40:59 +0000
parents c93344f2bf61
children 92aff8556de4
files data/npc/dwarfcastle.xml data/npc/joringsbridge_npc.xml
diffstat 2 files changed, 7 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/data/npc/dwarfcastle.xml	Tue Dec 14 21:05:00 2010 +0000
+++ b/data/npc/dwarfcastle.xml	Tue Dec 14 22:40:59 2010 +0000
@@ -225,7 +225,7 @@
 			local pgold = get(pl,"gold");
 			
 			local magic = getItemValue("magic_power");
-			enchanter_price = math.ceil(500 + magic*20 + 200*math.exp( magic / 100 - 1))
+			enchanter_price = math.ceil(800 + magic*20 + 200*math.exp( magic / 120 - 1))
 			
 			if (enchanter_price > pgold) then
 				speak("Enchanter Fazhir",_("You dont have enough gold to pay the price of $1",{enchanter_price}))
@@ -244,7 +244,7 @@
 			set(pl,"gold",pgold - enchanter_price);
 			
 			-- enchant strength is set here
-			local mods = addItemMagicMods(enchanter_mod_dwarfenwall.allowed_mods[enchanter_modtype_dwarfenwall] ,400);
+			local mods = addItemMagicMods(enchanter_mod_dwarfenwall.allowed_mods[enchanter_modtype_dwarfenwall] ,160);
 			if (mods == nil) then
 				mods = 0;
 			end;
--- a/data/npc/joringsbridge_npc.xml	Tue Dec 14 21:05:00 2010 +0000
+++ b/data/npc/joringsbridge_npc.xml	Tue Dec 14 22:40:59 2010 +0000
@@ -282,7 +282,10 @@
 			local pgold = get(pl,"gold");
 			
 			local magic = getItemValue("magic_power");
-			enchanter_price_joringsbridge = math.ceil(500 + magic*20 + 200*math.exp( magic / 100 - 1))
+			print(magic)
+			print(math.exp( magic / 100 - 1))
+			enchanter_price_joringsbridge = math.ceil(500 + magic*15 + 150*math.exp( magic / 80 - 1))
+			print(enchanter_price_joringsbridge)
 			
 			if (enchanter_price_joringsbridge > pgold) then
 				speak("Magus Convocatis Relau Fireweaver",_("I may work for the Council, but I don't run a charity. The price is $1.",{enchanter_price_joringsbridge}))
@@ -301,7 +304,7 @@
 			set(pl,"gold",pgold - enchanter_price_joringsbridge);
 			
 			-- enchant strength is set here
-			local mods = addItemMagicMods(enchanter_mod.allowed_mods[enchanter_modtype_joringsbridge] ,200);
+			local mods = addItemMagicMods(enchanter_mod.allowed_mods[enchanter_modtype_joringsbridge] ,120);
 			if (mods == nil) then
 				mods = 0;
 			end;