| 1078 | } |
| 1079 | |
| 1080 | void BattleMapPart::ceaseSupportProvision() |
| 1081 | { |
| 1082 | providesHardSupport = false; |
| 1083 | attemptReLinkSupports(getSupportedParts()); |
| 1084 | supportedParts.clear(); |
| 1085 | if (supportedItems) |
| 1086 | { |
| 1087 | for (auto &obj : this->tileObject->getOwningTile()->ownedObjects) |
| 1088 | { |
| 1089 | if (obj->getType() == TileObject::Type::Item) |
| 1090 | { |
| 1091 | std::static_pointer_cast<TileObjectBattleItem>(obj)->getItem()->tryCollapse(); |
| 1092 | } |
| 1093 | } |
| 1094 | supportedItems = false; |
| 1095 | } |
| 1096 | } |
| 1097 | |
| 1098 | void BattleMapPart::collapse(GameState &state) |
| 1099 | { |
nothing calls this directly
no test coverage detected