Class: CarbonMU::Player

Inherits:
GameObject show all
Includes:
Container, Movable, Mongoid::Document
Defined in:
lib/game_objects/player.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.superadminObject


13
14
15
# File 'lib/game_objects/player.rb', line 13

def self.superadmin
  find_by(_special: :superadmin_player)
end

Instance Method Details

#default_locationObject


9
10
11
# File 'lib/game_objects/player.rb', line 9

def default_location
  self.location ||= Room.starting
end