czuger/square-dungeon-gen

View on GitHub
lib/rooms/room_traps.rb

Summary

Maintainability
A
0 mins
Test Coverage
# This is very basic, need to improve

module RoomTraps

  private

  def generate_trap
    dd = 10+Hazard.d4
    degats = Hazard.m2d10
    @content = 'T'
    @content_description = "The room contains a pit. Make a perception check against #{dd}. In case of failure the first character takes #{degats} hp."
  end

end