mirror of
https://github.com/vcmi/vcmi.git
synced 2025-07-13 01:20:34 +02:00
* updated project files for MSVC
* fixed a few includes paths * it's possible to enter Tavern via Brotherhood of Sword * fixes for statusbar * fixes for townlist * fixed crashes on building / clicking some buildings * bumped version number to 0.71c * bonuses from wearing more than one same artifact won't cumulate
This commit is contained in:
@ -882,6 +882,14 @@ bool CGHeroInstance::hasBonusOfType(HeroBonus::BonusType type, int subtype /*= -
|
||||
return false;
|
||||
}
|
||||
|
||||
si32 CGHeroInstance::getArtPos(int aid) const
|
||||
{
|
||||
for(std::map<ui16,ui32>::const_iterator i = artifWorn.begin(); i != artifWorn.end(); i++)
|
||||
if(i->second == aid)
|
||||
return i->first;
|
||||
return -1;
|
||||
}
|
||||
|
||||
int CGTownInstance::getSightRadious() const //returns sight distance
|
||||
{
|
||||
return 5;
|
||||
|
Reference in New Issue
Block a user