Method: H3m::Map#difficulty
- Defined in:
- lib/h3m/map.rb
#difficulty ⇒ Object
56 57 58 59 60 61 62 63 64 65 66 |
# File 'lib/h3m/map.rb', line 56 def difficulty @difficulty ||= case record.map_difficulty when 0 then :easy when 1 then :normal when 2 then :hard when 3 then :expert when 4 then :impossible else raise MapError, "unknown map difficulty" end end |