Browse Source

shrines can be destroyed

lakebane-master
FatBoy-DOTC 6 months ago
parent
commit
58916c35c7
  1. 6
      src/engine/net/client/handlers/DestroyBuildingHandler.java

6
src/engine/net/client/handlers/DestroyBuildingHandler.java

@ -71,9 +71,11 @@ public class DestroyBuildingHandler extends AbstractClientMsgHandler { @@ -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

Loading…
Cancel
Save