Class: NPCS

Inherits:
Object
  • Object
show all
Defined in:
lib/Olib/npcs.rb

Class Method Summary collapse

Class Method Details

.[](query) ⇒ Object


2
3
4
# File 'lib/Olib/npcs.rb', line 2

def self.[](query)
  GameObj.npcs.select { |npc| npc.name =~ /#{query}/ }
end