1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-29 23:07:48 +02:00

* magic well support

* improvements in the recruitment window
* improvements for pregame  
[cf http://vcmi.antypika.aplus.pl/forum/viewtopic.php?t=97 issues 12-15 and 21 - 22]
* minor changes
This commit is contained in:
Michał W. Urbańczyk
2009-02-06 11:15:39 +00:00
parent 72bc53a1b9
commit 05b3e3215c
16 changed files with 203 additions and 70 deletions

17
map.cpp
View File

@@ -1790,6 +1790,11 @@ void Mapa::readObjects( unsigned char * bufor, int &i)
nobj = new CGBonusingObject();
break;
}
case 49: //Magic Well
{
nobj = new CGMagicWell();
break;
}
case 214: //hero placeholder
{
i+=3; //TODO: handle it more properly
@@ -1830,13 +1835,11 @@ void Mapa::readEvents( unsigned char * bufor, int &i )
{
ne.message +=bufor[i]; ++i;
}
ne.wood = readNormalNr(bufor,i); i+=4;
ne.mercury = readNormalNr(bufor,i); i+=4;
ne.ore = readNormalNr(bufor,i); i+=4;
ne.sulfur = readNormalNr(bufor,i); i+=4;
ne.crystal = readNormalNr(bufor,i); i+=4;
ne.gems = readNormalNr(bufor,i); i+=4;
ne.gold = readNormalNr(bufor,i); i+=4;
ne.resources.resize(RESOURCE_QUANTITY);
for(int k=0; k < 7; k++)
{
ne.resources[k] = readNormalNr(bufor,i); i+=4;
}
ne.players = bufor[i]; ++i;
if(version>AB)
{