summaryrefslogtreecommitdiff
path: root/src/being/playerinfo.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-04-27 14:50:47 +0300
committerAndrei Karas <akaras@inbox.ru>2014-04-27 14:50:47 +0300
commit744b6e62e1252ca50445b21f671ad8d81dd28ea1 (patch)
tree79adc9663a740ed471e33c97932ce6b28de11377 /src/being/playerinfo.cpp
parent2ee2f8b060e4fe88feeeba5508189c916e55a70d (diff)
downloadManaVerse-744b6e62e1252ca50445b21f671ad8d81dd28ea1.tar.gz
ManaVerse-744b6e62e1252ca50445b21f671ad8d81dd28ea1.tar.bz2
ManaVerse-744b6e62e1252ca50445b21f671ad8d81dd28ea1.tar.xz
ManaVerse-744b6e62e1252ca50445b21f671ad8d81dd28ea1.zip
Add AttributeListener.
Diffstat (limited to 'src/being/playerinfo.cpp')
-rw-r--r--src/being/playerinfo.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/being/playerinfo.cpp b/src/being/playerinfo.cpp
index 12ce1e6d3..d7652abe0 100644
--- a/src/being/playerinfo.cpp
+++ b/src/being/playerinfo.cpp
@@ -58,11 +58,8 @@ std::set<int> mProtectedItems;
void triggerAttr(const int id, const int old)
{
- DepricatedEvent event(EVENT_UPDATEATTRIBUTE);
- event.setInt("id", id);
- event.setInt("oldValue", old);
- event.setInt("newValue", mData.mAttributes.find(id)->second);
- DepricatedEvent::trigger(CHANNEL_ATTRIBUTES, event);
+ AttributeListener::distributeEvent(id, old,
+ mData.mAttributes.find(id)->second);
}
void triggerStat(const int id, const std::string &changed,