lib/strategy_game_backend/behaviours/destructable.rb
def repairable?
        if @primary_health.nil?
          raise StrategyGameBackend::Behaviours::Destructable::Error,
                "#{self.class.name} has not had its health set. Missing set_initial_health call?"
        end

        @primary_health < @initial_primary_health
      end
# To keep things pretty dumb and simple; I assume that all destructable
# things are repairable if their current primary health is less than
# their initial primary health.
To keep things pretty dumb and simple; I assume that all destructable
things are repairable if their current primary health is less than
their initial primary health.
To keep things pretty dumb and simple ; I assume that all destructable things are repairable if their current primary health is less than their initial primary health .
def repairable?
        if @primary_health.nil?
          raise StrategyGameBackend::Behaviours::Destructable::Error,
                "#{self.class.name} has not had its health set. Missing set_initial_health call?"
        end
        @primary_health < @initial_primary_health
      end
def repairable? if @primary_health . nil? raise StrategyGameBackend :: Behaviours :: Destructable :: Error , "#{self.class.name} has not had its health set. Missing set_initial_health call?" end @primary_health < @initial_primary_health end
To keep things pretty dumb and simple; I assume that all destructable
things are repairable if their current primary health is less than
their initial primary health.
To keep things pretty dumb and simple ; I assume that all destructable things are repairable if their current primary health is less than their initial primary health .