mirror of
https://github.com/vcmi/vcmi.git
synced 2025-01-12 02:28:11 +02:00
small and unfortunately partial bugfix
This commit is contained in:
parent
f01fc2af45
commit
313f940e7e
@ -2325,6 +2325,11 @@ void CAmbarCendamo::deh3m()
|
||||
nobj->info = spec;
|
||||
break;
|
||||
}
|
||||
case EDefType::HEROPLACEHOLDER_DEF:
|
||||
{
|
||||
i+=3; //TODO: handle it more properly
|
||||
break;
|
||||
}
|
||||
} //end of main switch
|
||||
CGameInfo::mainObj->objh->objInstances.push_back(nobj);
|
||||
//TODO - dokoñczyæ, du¿o do zrobienia - trzeba patrzeæ, co def niesie
|
||||
@ -2490,6 +2495,8 @@ EDefType CAmbarCendamo::getDefType(CGDefInfo * a)
|
||||
return EDefType::TOWN_DEF; //handled
|
||||
case 113:
|
||||
return EDefType::WITCHHUT_DEF; //handled
|
||||
case 214:
|
||||
return EDefType::HEROPLACEHOLDER_DEF; //partially handled
|
||||
case 215:
|
||||
return EDefType::BORDERGUARD_DEF; //handled by analogy to seer huts ;]
|
||||
case 216:
|
||||
|
@ -11,7 +11,7 @@
|
||||
#include "CDefHandler.h"
|
||||
#include "CCreatureHandler.h"
|
||||
|
||||
enum EDefType {TOWN_DEF, HERO_DEF, CREATURES_DEF, SEERHUT_DEF, RESOURCE_DEF, TERRAINOBJ_DEF, EVENTOBJ_DEF, SIGN_DEF, GARRISON_DEF, ARTIFACT_DEF, WITCHHUT_DEF, SCHOLAR_DEF, PLAYERONLY_DEF, SHRINE_DEF, SPELLSCROLL_DEF, PANDORA_DEF, GRAIL_DEF, CREGEN_DEF, CREGEN2_DEF, CREGEN3_DEF, BORDERGUARD_DEF};
|
||||
enum EDefType {TOWN_DEF, HERO_DEF, CREATURES_DEF, SEERHUT_DEF, RESOURCE_DEF, TERRAINOBJ_DEF, EVENTOBJ_DEF, SIGN_DEF, GARRISON_DEF, ARTIFACT_DEF, WITCHHUT_DEF, SCHOLAR_DEF, PLAYERONLY_DEF, SHRINE_DEF, SPELLSCROLL_DEF, PANDORA_DEF, GRAIL_DEF, CREGEN_DEF, CREGEN2_DEF, CREGEN3_DEF, BORDERGUARD_DEF, HEROPLACEHOLDER_DEF};
|
||||
|
||||
class CAmbarCendamo
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user