diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-02-08 04:54:13 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-02-08 04:54:13 +0300 |
commit | 30b2f0350767d4d0e78d27b9a1fd33e2095171b9 (patch) | |
tree | 753a5b2a235ec49deb768f18135d2e6640c9e759 /src/localplayer.cpp | |
parent | 2f34575b834e2c70583af83a17da59750978f15e (diff) | |
download | manaverse-30b2f0350767d4d0e78d27b9a1fd33e2095171b9.tar.gz manaverse-30b2f0350767d4d0e78d27b9a1fd33e2095171b9.tar.bz2 manaverse-30b2f0350767d4d0e78d27b9a1fd33e2095171b9.tar.xz manaverse-30b2f0350767d4d0e78d27b9a1fd33e2095171b9.zip |
Add chat command /setdrop N to set change drop counter.
Diffstat (limited to 'src/localplayer.cpp')
-rw-r--r-- | src/localplayer.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/localplayer.cpp b/src/localplayer.cpp index 6dd55dace..01e8c1ae8 100644 --- a/src/localplayer.cpp +++ b/src/localplayer.cpp @@ -2067,6 +2067,16 @@ std::string LocalPlayer::getQuickDropCounterString() } } +void LocalPlayer::setQuickDropCounter(int n) +{ + if (n < 1 || n >= (signed)quickDropCounterSize) + return; + mQuickDropCounter = n; + config.setValue("quickDropCounter", mQuickDropCounter); + if (miniStatusWindow) + miniStatusWindow->updateStatus(); +} + const unsigned pickUpTypeSize = 7; void LocalPlayer::changePickUpType() |