1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-24 22:14:36 +02:00

vcmi: remove old war machine code

This commit is contained in:
Konstantin 2023-03-05 19:12:47 +03:00
parent 84fa19dadf
commit a364e39b50
4 changed files with 0 additions and 45 deletions

View File

@ -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)
{
auto b = std::make_shared<Bonus>();

View File

@ -115,8 +115,6 @@ public:
~CArtifact();
friend class CArtHandler;
private:
void fillWarMachine();
};
class DLL_LINKAGE CGrowingArtifact : public CArtifact //for example commander artifacts getting bonuses after battle

View File

@ -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()
: expAfterUpgrade(0)
{

View File

@ -253,7 +253,6 @@ public:
CCreature();
private:
void fillWarMachine();
static const std::map<CreatureQuantityId, std::string> creatureQuantityRanges;
};