diff options
| author | maximius <none@none> | 2009-08-07 12:12:42 -0700 |
|---|---|---|
| committer | maximius <none@none> | 2009-08-07 12:12:42 -0700 |
| commit | fe3ba612d94b715bbbbac944418be1188ad66339 (patch) | |
| tree | dcfba651a684cd3f896988e361240f91c4b1d80f /src/game/Player.cpp | |
| parent | be74be36f6d170fd11b2df2ebfc20a9c2e40584a (diff) | |
*Emalon the Stormwatcher fully scripted, by Necroo (boss needs to be spawned and ScriptName needs to be updated)
*Added config options: DurabilityLoss.OnDeath and DurabilityLoss.InPvP, optimized Rate.RepairCost
--HG--
branch : trunk
Diffstat (limited to 'src/game/Player.cpp')
| -rw-r--r-- | src/game/Player.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/game/Player.cpp b/src/game/Player.cpp index f648a5a3d3d..ed2f79f4b38 100644 --- a/src/game/Player.cpp +++ b/src/game/Player.cpp @@ -20,7 +20,6 @@ #include "Common.h" #include "Language.h" -#include "Config/ConfigEnv.h" #include "Database/DatabaseEnv.h" #include "Log.h" #include "Opcodes.h" @@ -4557,7 +4556,7 @@ uint32 Player::DurabilityRepair(uint16 pos, bool cost, float discountMod, bool g uint32 dmultiplier = dcost->multiplier[ItemSubClassToDurabilityMultiplierId(ditemProto->Class,ditemProto->SubClass)]; uint32 costs = uint32(LostDurability*dmultiplier*double(dQualitymodEntry->quality_mod)); - costs = uint32(costs * discountMod) * sConfig.GetFloatDefault("Rate.RepairCost", 1); + costs = uint32(costs * discountMod) * sWorld.getRate(RATE_REPAIRCOST); if (costs==0) //fix for ITEM_QUALITY_ARTIFACT costs = 1; |
