From f493b31b59c79f8923d23634b7e2450c4df7019b Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 30 Sep 2014 22:55:31 +0300 Subject: eathena: add karma stat to player. --- src/net/ea/playerhandler.cpp | 6 +++++- src/net/eathena/generalhandler.cpp | 1 + 2 files changed, 6 insertions(+), 1 deletion(-) (limited to 'src/net') diff --git a/src/net/ea/playerhandler.cpp b/src/net/ea/playerhandler.cpp index e365ccdfe..941f96499 100644 --- a/src/net/ea/playerhandler.cpp +++ b/src/net/ea/playerhandler.cpp @@ -191,7 +191,11 @@ void PlayerHandler::processPlayerStatUpdate1(Net::MessageIn &msg) value), static_cast(value), 0)); PlayerInfo::setStatBase(Attributes::WALK_SPEED, value); PlayerInfo::setStatMod(Attributes::WALK_SPEED, 0); - break; + break; + case 0x0003: + PlayerInfo::setStatBase(Attributes::KARMA, value); + PlayerInfo::setStatMod(Attributes::KARMA, 0); + break; case 0x0004: break; // manner case 0x0005: diff --git a/src/net/eathena/generalhandler.cpp b/src/net/eathena/generalhandler.cpp index 0d7a551ea..d1056bb71 100644 --- a/src/net/eathena/generalhandler.cpp +++ b/src/net/eathena/generalhandler.cpp @@ -367,6 +367,7 @@ void GeneralHandler::gameStarted() const statusWindow->addAttribute(Attributes::WALK_SPEED, _("Walk Delay")); statusWindow->addAttribute(Attributes::ATTACK_RANGE, _("Attack Range")); statusWindow->addAttribute(Attributes::ATTACK_SPEED, _("Damage per sec.")); + statusWindow->addAttribute(Attributes::KARMA, _("Karma")); } void GeneralHandler::gameEnded() const -- cgit v1.2.3-70-g09d2