summaryrefslogtreecommitdiff
path: root/src/being/being.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/being/being.cpp')
-rw-r--r--src/being/being.cpp8
1 files changed, 8 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);