Created
August 28, 2012 00:33
-
-
Save benphelps/3493826 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class ArmorTier < ActiveRecord::Base | |
attr_accessible :agility, :deviation, :intellect, :level, :name, :stamina, :strength | |
belongs_to :armor_material | |
def agility | |
agility + rand(deviation) | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment