# File lib/core/room.rb, line 46 def describe_exits(e) msg = "[COLOR Red]Exits:\n" s = exits.size if s == 0 msg << "None.[/COLOR]" else i = 0 exits.keys.each do |ex| msg << ex i += 1 case s - i when 1 then s > 2 ? msg << ", and " : msg << " and " when 0 then msg << "." else msg << ", " end end msg << "[/COLOR]" end add_event(id,e.from,:show,msg) end