module AR
  module Game

    class ChitinChest < BodyArmor
      def initialize id=nil
        super 
        #add_behavior AR::Game::SomeBehavior
        add_story_implement StoryImplement.new
        self.noun = "chitin chestpiece"
        self.slot = :body 
        self.armor_rating  = 2
        self.avoidance_penalty = 1

      end


      #sort of just a way to 'include' these classes, so you don't
      #need to fully qualify them.  There must be a better way...
      class Story < AR::Game::StoryBehavior::Story
      end
      class StoryImplement < AR::Game::StoryBehavior::StoryImplement
        def initialize stories=[]
          super
          #add stories like this:
          #s = Story.new when: AR::Events::Event, as: "participant" do |e|
          #end
          #add_story s
        end
      end

    end



  end
end
