mirror of
https://github.com/vcmi/vcmi.git
synced 2025-01-12 02:28:11 +02:00
Added vcmiglaurung cheat that add 5000 crystal dragons into each slot
This commit is contained in:
parent
b351c0816f
commit
d25372a397
@ -4026,6 +4026,16 @@ void CGameHandler::playerMessage( PlayerColor player, const std::string &message
|
|||||||
if(!hero->hasStackAtSlot(SlotID(i)))
|
if(!hero->hasStackAtSlot(SlotID(i)))
|
||||||
insertNewStack(StackLocation(hero, SlotID(i)), blackKnight, 10);
|
insertNewStack(StackLocation(hero, SlotID(i)), blackKnight, 10);
|
||||||
}
|
}
|
||||||
|
else if(message == "vcmiglaurung") //gives 5000 crystal dragons into each slot
|
||||||
|
{
|
||||||
|
CGHeroInstance *hero = gs->getHero(currObj);
|
||||||
|
const CCreature *crystalDragon = VLC->creh->creatures.at(133);
|
||||||
|
if(!hero) return;
|
||||||
|
|
||||||
|
for(int i = 0; i < GameConstants::ARMY_SIZE; i++)
|
||||||
|
if(!hero->hasStackAtSlot(SlotID(i)))
|
||||||
|
insertNewStack(StackLocation(hero, SlotID(i)), crystalDragon, 5000);
|
||||||
|
}
|
||||||
else if(message == "vcminoldor") //all war machines
|
else if(message == "vcminoldor") //all war machines
|
||||||
{
|
{
|
||||||
CGHeroInstance *hero = gs->getHero(currObj);
|
CGHeroInstance *hero = gs->getHero(currObj);
|
||||||
|
Loading…
Reference in New Issue
Block a user