| 157 | } |
| 158 | |
| 159 | void RoomCrypt::notifyActiveSpotRemoved(ActiveSpotPlace place, Tile* tile) |
| 160 | { |
| 161 | Room::notifyActiveSpotRemoved(place, tile); |
| 162 | if(place != ActiveSpotPlace::activeSpotCenter) |
| 163 | return; |
| 164 | |
| 165 | std::pair<Creature*,int32_t> rottingCreature = mRottingCreatures[tile]; |
| 166 | mRottingCreatures.erase(tile); |
| 167 | if(rottingCreature.first == nullptr) |
| 168 | return; |
| 169 | |
| 170 | // If the dead creature is already rotting, we add it back to its tile so that it can continue |
| 171 | // its normal dead creature life ^^ |
| 172 | if(rottingCreature.second == -1) |
| 173 | return; |
| 174 | |
| 175 | rottingCreature.first->addEntityToPositionTile(); |
| 176 | } |
| 177 | |
| 178 | void RoomCrypt::absorbRoom(Room *r) |
| 179 | { |
nothing calls this directly
no test coverage detected