From 58916c35c7b1a5a9dbdbd98c2f7b8e9626b1bf74 Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Tue, 21 May 2024 14:26:57 -0500 Subject: [PATCH] shrines can be destroyed --- src/engine/net/client/handlers/DestroyBuildingHandler.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/engine/net/client/handlers/DestroyBuildingHandler.java b/src/engine/net/client/handlers/DestroyBuildingHandler.java index d25f40cf..df80727a 100644 --- a/src/engine/net/client/handlers/DestroyBuildingHandler.java +++ b/src/engine/net/client/handlers/DestroyBuildingHandler.java @@ -71,9 +71,11 @@ public class DestroyBuildingHandler extends AbstractClientMsgHandler { if (blueprint.getBuildingGroup() == BuildingGroup.TOL) return true; - // Can't destroy a shrine - if (blueprint.getBuildingGroup() == BuildingGroup.SHRINE) + // destorying a shrine will yield a rubble pile for looting + if (blueprint.getBuildingGroup() == BuildingGroup.SHRINE) { + building.modifyHealth(-building.getHealth(), origin.getPlayerCharacter()); return true; + } // Cannot destroy mines outside of normal mine mechanics