mirror of
https://github.com/vcmi/vcmi.git
synced 2025-06-15 00:05:02 +02:00
netpacks
This commit is contained in:
@ -162,6 +162,10 @@ void ChangeSpells::visitTyped(ICPackVisitor & visitor)
|
||||
visitor.visitChangeSpells(*this);
|
||||
}
|
||||
|
||||
void SetTownSpells::visitTyped(ICPackVisitor & visitor)
|
||||
{
|
||||
visitor.visitSetTownSpells(*this);
|
||||
}
|
||||
void SetMana::visitTyped(ICPackVisitor & visitor)
|
||||
{
|
||||
visitor.visitSetMana(*this);
|
||||
@ -592,6 +596,11 @@ void RazeStructure::visitTyped(ICPackVisitor & visitor)
|
||||
visitor.visitRazeStructure(*this);
|
||||
}
|
||||
|
||||
void SpellResearch::visitTyped(ICPackVisitor & visitor)
|
||||
{
|
||||
visitor.visitSpellResearch(*this);
|
||||
}
|
||||
|
||||
void RecruitCreatures::visitTyped(ICPackVisitor & visitor)
|
||||
{
|
||||
visitor.visitRecruitCreatures(*this);
|
||||
@ -930,6 +939,13 @@ void ChangeSpells::applyGs(CGameState *gs)
|
||||
hero->removeSpellFromSpellbook(sid);
|
||||
}
|
||||
|
||||
void SetTownSpells::applyGs(CGameState *gs)
|
||||
{
|
||||
CGTownInstance *town = gs->getTown(tid);
|
||||
|
||||
town->spells[level] = spells;
|
||||
}
|
||||
|
||||
void SetMana::applyGs(CGameState *gs)
|
||||
{
|
||||
CGHeroInstance * hero = gs->getHero(hid);
|
||||
|
Reference in New Issue
Block a user