Exultant/Citadel — pull request #72 by erocs (2012-10-18 07:47:16+00:00)
Title: Issue#71 Naturally reinforced blocks

Added the ability to configure reinforcement per material types for blocks
generated across the map. This reinforcement is different than player
reinforced blocks as it is done automatically in the DAO cache when a
block of a configured material type is first broken. This type of
reinforcement does NOT get saved to the database.

The configuration is simple:

hardenedMaterials:
IRON_ORE: 3
DIAMOND_ORE: 10

This configuration would cause Iron Ore blocks to require breaking 3 times
before they actually broke. As you can guess, the second material defined
here would cause diamond ore to require 10 breaks.

I will add that the Reinforcement class should be refactored into
IReinforcement, PlayerReinforcement, and EnvironmentalReinforcement so
that this type of reinforcement, with how it is added here, isn't as
kludgey in the code.

http://www.erocs.org/~erocs/Citadel_i71.jar