1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-05-13 22:06:58 +02:00

Merge pull request #1636 from rilian-la-te/remove-unused

vcmi: remove old war machine code
This commit is contained in:
Ivan Savenko 2023-03-06 00:10:55 +02:00 committed by GitHub
commit c8afef3408
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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;
};