summaryrefslogtreecommitdiff
path: root/Creatures.cpp
diff options
context:
space:
mode:
authorJapa Illo2012-02-26 03:18:31 +0530
committerJapa Illo2012-02-26 03:18:31 +0530
commit730a216f761f643823f2cac7cfa3a23c28fe76dd (patch)
tree30e13cd2cb2eb9d878c1345802fe984f64337a92 /Creatures.cpp
parent1691bdfbc40c348942e9e31b038ccfd4a9842a73 (diff)
downloadstonesense-730a216f761f643823f2cac7cfa3a23c28fe76dd.tar.gz
stonesense-730a216f761f643823f2cac7cfa3a23c28fe76dd.tar.bz2
stonesense-730a216f761f643823f2cac7cfa3a23c28fe76dd.tar.xz
Added caste support and made blood colors be taken directly from the game.
Signed-off-by: Japa Illo <japa.mala.illo@gmail.com>
Diffstat (limited to 'Creatures.cpp')
-rw-r--r--Creatures.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/Creatures.cpp b/Creatures.cpp
index 8fb7670..f5f1b3d 100644
--- a/Creatures.cpp
+++ b/Creatures.cpp
@@ -429,6 +429,13 @@ CreatureConfiguration *GetCreatureConfig( t_unit* c ){
}
if(!creatureMatchesSex) continue;
+ bool creatureMatchesCaste = true;
+ if( testConfig->caste != INVALID_INDEX )
+ {
+ creatureMatchesCaste = testConfig->caste == c->caste;
+ }
+ if(!creatureMatchesCaste) continue;
+
bool creatureMatchesSpecial = true;
if (testConfig->special != eCSC_Any)
{