diff --git a/hch/CArtHandler.cpp b/hch/CArtHandler.cpp index 5457cbacf..af85d36ff 100644 --- a/hch/CArtHandler.cpp +++ b/hch/CArtHandler.cpp @@ -207,6 +207,7 @@ void CArtHandler::addBonuses() //Luck and morale ART_MORALE(45,+1); //Still Eye of the Dragon + ART_LUCK(45,+1); //Still Eye of the Dragon ART_LUCK(46,+1); //Clover of Fortune ART_LUCK(47,+1); //Cards of Prophecy ART_LUCK(48,+1); //Ladybird of Luck @@ -280,7 +281,7 @@ void CArtHandler::addBonuses() giveArtBonus(97,HeroBonus::STACKS_SPEED,+1);//Necklace of Swiftness giveArtBonus(98,HeroBonus::LAND_MOVEMENT,+600);//Boots of Speed - giveArtBonus(99,HeroBonus::STACKS_SPEED,+1);//Cape of Velocity + giveArtBonus(99,HeroBonus::STACKS_SPEED,+2);//Cape of Velocity giveArtBonus(100,HeroBonus::SPELL_IMMUNITY,59);//Pendant of Dispassion giveArtBonus(101,HeroBonus::SPELL_IMMUNITY,62);//Pendant of Second Sight diff --git a/hch/CCreatureHandler.cpp b/hch/CCreatureHandler.cpp index 5f417f69b..57395f2cf 100644 --- a/hch/CCreatureHandler.cpp +++ b/hch/CCreatureHandler.cpp @@ -545,6 +545,9 @@ void CCreatureHandler::loadCreatures() creatures[147].abilities += makeCreatureAbility(StackFeature::NOT_ACTIVE, 0); //First Aid Tent //TODO: remove when support is added creatures[148].abilities += makeCreatureAbility(StackFeature::NOT_ACTIVE, 0); //Ammo Cart + creatures[120].abilities -= StackFeature::DOUBLE_WIDE; //psychic elemental + creatures[121].abilities -= StackFeature::DOUBLE_WIDE; //magic elemental + creatures[0].abilities += makeCreatureAbility(StackFeature::CHARGE_IMMUNITY, 0); //pikeman immunity to Champion charge bonus creatures[1].abilities += makeCreatureAbility(StackFeature::CHARGE_IMMUNITY, 0); //halberdier immunity to Champion charge bonus creatures[4].abilities += makeCreatureAbility(StackFeature::ADDITIONAL_RETAILATION, 1); //griffins retailate twice diff --git a/hch/CDefHandler.cpp b/hch/CDefHandler.cpp index dd58d73f9..19b2c9716 100644 --- a/hch/CDefHandler.cpp +++ b/hch/CDefHandler.cpp @@ -316,7 +316,8 @@ SDL_Surface * CDefHandler::getSprite (int SIndex, unsigned char * FDef, BMPPalet if (TopMargin > 0) ftcp += TopMargin*(FullWidth+add); - switch(defType2) { + switch(defType2) + { case 0: { for (int i=0;i0) ftcp += RightMargin; + RowAdd=SpriteWidth-TotalRowLength; + if (add>0) ftcp += add+RowAdd; } @@ -474,6 +477,8 @@ SDL_Surface * CDefHandler::getSprite (int SIndex, unsigned char * FDef, BMPPalet if (RightMargin>0) ftcp += RightMargin; + RowAdd=SpriteWidth-TotalRowLength; + if (add>0) ftcp += add+RowAdd; }