1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-22 22:13:35 +02:00

Cheat 'vcminahar' now give FREE_SHIP_BOARDING bonus

https://bugs.vcmi.eu/view.php?id=2092
This commit is contained in:
AlexVinS 2017-06-14 11:41:36 +03:00
parent 86f9df5f68
commit bb0f388f23

View File

@ -6218,6 +6218,13 @@ void CGameHandler::handleCheatCode(std::string & cheat, PlayerColor player, cons
smp.hid = hero->id;
smp.val = 1000000;
sendAndApply(&smp);
GiveBonus gb(GiveBonus::HERO);
gb.bonus.type = Bonus::FREE_SHIP_BOARDING;
gb.bonus.duration = Bonus::ONE_DAY;
gb.bonus.source = Bonus::OTHER;
gb.id = hero->id.getNum();
giveHeroBonus(&gb);
}
else if (cheat == "vcmiformenos")
{