mirror of
https://github.com/vcmi/vcmi.git
synced 2025-05-13 22:06:58 +02:00
vcmi: remove old war machine code
This commit is contained in:
parent
84fa19dadf
commit
a364e39b50
@ -197,28 +197,6 @@ void CArtifact::serializeJson(JsonSerializeFormat & handler)
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void CArtifact::fillWarMachine()
|
|
||||||
{
|
|
||||||
switch(id)
|
|
||||||
{
|
|
||||||
case ArtifactID::CATAPULT:
|
|
||||||
warMachine = CreatureID::CATAPULT;
|
|
||||||
break;
|
|
||||||
case ArtifactID::BALLISTA:
|
|
||||||
warMachine = CreatureID::BALLISTA;
|
|
||||||
break;
|
|
||||||
case ArtifactID::FIRST_AID_TENT:
|
|
||||||
warMachine = CreatureID::FIRST_AID_TENT;
|
|
||||||
break;
|
|
||||||
case ArtifactID::AMMO_CART:
|
|
||||||
warMachine = CreatureID::AMMO_CART;
|
|
||||||
break;
|
|
||||||
default:
|
|
||||||
warMachine = CreatureID::NONE;
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
void CGrowingArtifact::levelUpArtifact (CArtifactInstance * art)
|
void CGrowingArtifact::levelUpArtifact (CArtifactInstance * art)
|
||||||
{
|
{
|
||||||
auto b = std::make_shared<Bonus>();
|
auto b = std::make_shared<Bonus>();
|
||||||
|
@ -115,8 +115,6 @@ public:
|
|||||||
~CArtifact();
|
~CArtifact();
|
||||||
|
|
||||||
friend class CArtHandler;
|
friend class CArtHandler;
|
||||||
private:
|
|
||||||
void fillWarMachine();
|
|
||||||
};
|
};
|
||||||
|
|
||||||
class DLL_LINKAGE CGrowingArtifact : public CArtifact //for example commander artifacts getting bonuses after battle
|
class DLL_LINKAGE CGrowingArtifact : public CArtifact //for example commander artifacts getting bonuses after battle
|
||||||
|
@ -410,26 +410,6 @@ void CCreature::serializeJson(JsonSerializeFormat & handler)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void CCreature::fillWarMachine()
|
|
||||||
{
|
|
||||||
switch (idNumber)
|
|
||||||
{
|
|
||||||
case CreatureID::CATAPULT: //Catapult
|
|
||||||
warMachine = ArtifactID::CATAPULT;
|
|
||||||
break;
|
|
||||||
case CreatureID::BALLISTA: //Ballista
|
|
||||||
warMachine = ArtifactID::BALLISTA;
|
|
||||||
break;
|
|
||||||
case CreatureID::FIRST_AID_TENT: //First Aid tent
|
|
||||||
warMachine = ArtifactID::FIRST_AID_TENT;
|
|
||||||
break;
|
|
||||||
case CreatureID::AMMO_CART: //Ammo cart
|
|
||||||
warMachine = ArtifactID::AMMO_CART;
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
warMachine = ArtifactID::NONE; //this creature is not artifact
|
|
||||||
}
|
|
||||||
|
|
||||||
CCreatureHandler::CCreatureHandler()
|
CCreatureHandler::CCreatureHandler()
|
||||||
: expAfterUpgrade(0)
|
: expAfterUpgrade(0)
|
||||||
{
|
{
|
||||||
|
@ -253,7 +253,6 @@ public:
|
|||||||
CCreature();
|
CCreature();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
void fillWarMachine();
|
|
||||||
static const std::map<CreatureQuantityId, std::string> creatureQuantityRanges;
|
static const std::map<CreatureQuantityId, std::string> creatureQuantityRanges;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user