From 3df5964847307f322006800a363df31f91e852d0 Mon Sep 17 00:00:00 2001 From: Konstantin Date: Sat, 1 Apr 2023 03:14:35 +0300 Subject: [PATCH] CTownHandler: remove hardcoded Cove grail We have now exactly same definition in Json --- lib/CTownHandler.cpp | 9 --------- 1 file changed, 9 deletions(-) diff --git a/lib/CTownHandler.cpp b/lib/CTownHandler.cpp index e76ee47cf..e7c6d7d0d 100644 --- a/lib/CTownHandler.cpp +++ b/lib/CTownHandler.cpp @@ -485,15 +485,6 @@ void CTownHandler::addBonusesForVanilaBuilding(CBuilding * building) const { b = createBonus(building, Bonus::MORALE, +1); } - else if(building->bid == BuildingID::GRAIL - && building->town->faction != nullptr - && boost::algorithm::ends_with(building->town->faction->getJsonKey(), ":cove")) - { - static TPropagatorPtr allCreaturesPropagator(new CPropagatorNodeType(CBonusSystemNode::ENodeTypes::ALL_CREATURES)); - static auto factionLimiter = std::make_shared(building->town->faction->getIndex()); - b = createBonus(building, Bonus::NO_TERRAIN_PENALTY, 0, allCreaturesPropagator); - b->addLimiter(factionLimiter); - } } else {