Browse Source

shrines can be destroyed

lakebane-master
FatBoy-DOTC 7 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 {
if (blueprint.getBuildingGroup() == BuildingGroup.TOL) if (blueprint.getBuildingGroup() == BuildingGroup.TOL)
return true; return true;
// Can't destroy a shrine // destorying a shrine will yield a rubble pile for looting
if (blueprint.getBuildingGroup() == BuildingGroup.SHRINE) if (blueprint.getBuildingGroup() == BuildingGroup.SHRINE) {
building.modifyHealth(-building.getHealth(), origin.getPlayerCharacter());
return true; return true;
}
// Cannot destroy mines outside of normal mine mechanics // Cannot destroy mines outside of normal mine mechanics

Loading…
Cancel
Save