diff --git a/AUTHORS b/AUTHORS index ee6cc75f4..dd45a8d5b 100644 --- a/AUTHORS +++ b/AUTHORS @@ -63,3 +63,6 @@ Michał Kalinowski, Dydzio, * Small features, improvements and bug fixes in all VCMI parts + +Piotr Wójcik aka Chocimier, + * Various bug fixes diff --git a/lib/CCreatureHandler.h b/lib/CCreatureHandler.h index c69229a9f..e8217e83a 100644 --- a/lib/CCreatureHandler.h +++ b/lib/CCreatureHandler.h @@ -106,7 +106,7 @@ public: bool isGood () const; bool isEvil () const; si32 maxAmount(const std::vector &res) const; //how many creatures can be bought - static int getQuantityID(const int & quantity); //0 - a few, 1 - several, 2 - pack, 3 - lots, 4 - horde, 5 - throng, 6 - swarm, 7 - zounds, 8 - legion + static int getQuantityID(const int & quantity); //1 - a few, 2 - several, 3 - pack, 4 - lots, 5 - horde, 6 - throng, 7 - swarm, 8 - zounds, 9 - legion static int estimateCreatureCount(ui32 countID); //reverse version of above function, returns middle of range bool isMyUpgrade(const CCreature *anotherCre) const; diff --git a/lib/mapObjects/CGTownInstance.cpp b/lib/mapObjects/CGTownInstance.cpp index ed7fda0b5..ba19559dc 100644 --- a/lib/mapObjects/CGTownInstance.cpp +++ b/lib/mapObjects/CGTownInstance.cpp @@ -199,7 +199,7 @@ void CGDwelling::onHeroVisit( const CGHeroInstance * h ) const bd.player = h->tempOwner; bd.text.addTxt(MetaString::GENERAL_TXT, 421); //Much to your dismay, the %s is guarded by %s %s. Do you wish to fight the guards? bd.text.addReplacement(ID == Obj::CREATURE_GENERATOR1 ? MetaString::CREGENS : MetaString::CREGENS4, subID); - bd.text.addReplacement(MetaString::ARRAY_TXT, 176 + Slots().begin()->second->getQuantityID()*3); + bd.text.addReplacement(MetaString::ARRAY_TXT, 173 + Slots().begin()->second->getQuantityID()*3); bd.text.addReplacement(*Slots().begin()->second); cb->showBlockingDialog(&bd); return;