From 3da7fa61442364be6713359690a35f89aa8e613a Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 24 Feb 2013 01:30:46 +0300 Subject: Add support for show quest variables in skills window (evol only) This allow use pseudo skills controlled by quest variables. --- src/localplayer.cpp | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'src/localplayer.cpp') diff --git a/src/localplayer.cpp b/src/localplayer.cpp index b4c31b33a..f7a95625f 100644 --- a/src/localplayer.cpp +++ b/src/localplayer.cpp @@ -1697,8 +1697,8 @@ void LocalPlayer::processEvent(Channels channel, const int id = event.getInt("id"); if (id == Net::getPlayerHandler()->getJobLocation()) { - const std::pair exp = PlayerInfo::getStatExperience( - static_cast(id)); + const std::pair exp + = PlayerInfo::getStatExperience(id); if (event.getInt("oldValue1") > exp.first || !event.getInt("oldValue2")) { @@ -3272,10 +3272,8 @@ void LocalPlayer::tryMagic(const std::string &spell, const int baseMagic, if (!chatWindow) return; - if (PlayerInfo::getStatEffective(static_cast( - 340)) >= baseMagic - && PlayerInfo::getStatEffective(static_cast( - 342)) >= schoolMagic) + if (PlayerInfo::getStatEffective(340) >= baseMagic + && PlayerInfo::getStatEffective(342) >= schoolMagic) { if (PlayerInfo::getAttribute(PlayerInfo::MP) >= mana) { -- cgit v1.2.3-60-g2f50