Class: RuneRb::Game::Entity::Commands::Morph

Inherits:
RuneRb::Game::Entity::Command show all
Defined in:
app/game/entity/commands/morph.rb

Overview

Since:

  • 0.9.3

Instance Method Summary collapse

Methods inherited from RuneRb::Game::Entity::Command

#initialize

Methods included from System::Log

#class_name, #err, #err!, #log, #log!, #symbolize_file

Constructor Details

This class inherits a constructor from RuneRb::Game::Entity::Command

Instance Method Details

#executeObject

Since:

  • 0.9.3


3
4
5
# File 'app/game/entity/commands/morph.rb', line 3

def execute
  @assets[:context].update(:morph, mob_id: @assets[:command][0].to_i)
end