summaryrefslogtreecommitdiff
path: root/src/being
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-07-30 23:12:06 +0300
committerAndrei Karas <akaras@inbox.ru>2014-07-30 23:12:06 +0300
commit6bedbd1724e575a152250eeda7988423d01680ba (patch)
tree69770d42c82e5b13b2e4fb08ea3b5cce46763346 /src/being
parent1680d159ecbf75591d2dab1416ff8144c27d4de5 (diff)
downloadplus-6bedbd1724e575a152250eeda7988423d01680ba.tar.gz
plus-6bedbd1724e575a152250eeda7988423d01680ba.tar.bz2
plus-6bedbd1724e575a152250eeda7988423d01680ba.tar.xz
plus-6bedbd1724e575a152250eeda7988423d01680ba.zip
Add chat command for spawn debug local player copy.
New chat command: /debugSpawn
Diffstat (limited to 'src/being')
-rw-r--r--src/being/being.cpp8
-rw-r--r--src/being/being.h2
2 files changed, 10 insertions, 0 deletions
diff --git a/src/being/being.cpp b/src/being/being.cpp
index f69a084c0..471adedf9 100644
--- a/src/being/being.cpp
+++ b/src/being/being.cpp
@@ -3062,6 +3062,14 @@ int Being::getSpriteID(const int slot) const
return mSpriteIDs[slot];
}
+unsigned char Being::getSpriteColor(const int slot) const
+{
+ if (slot < 0 || static_cast<unsigned>(slot) >= mSpriteColorsIds.size())
+ return 1;
+
+ return mSpriteColorsIds[slot];
+}
+
void Being::addAfkEffect()
{
addSpecialEffect(mAwayEffect);
diff --git a/src/being/being.h b/src/being/being.h
index c9d343659..fc7f27bb7 100644
--- a/src/being/being.h
+++ b/src/being/being.h
@@ -796,6 +796,8 @@ class Being notfinal : public ActorSprite,
int getSpriteID(const int slot) const A_WARN_UNUSED;
+ unsigned char getSpriteColor(const int slot) const A_WARN_UNUSED;
+
void setHairStyle(const unsigned int slot, const int id);
void setHairColor(const unsigned int slot,