class Rsrb::Tasks::NPCResetTask

Attributes

npc[R]

Public Class Methods

new(npc) click to toggle source
# File lib/rsrb/tasks/npc_update.rb, line 21
def initialize(npc)
  @npc = npc
end

Public Instance Methods

execute() click to toggle source
# File lib/rsrb/tasks/npc_update.rb, line 25
def execute
  @npc.flags.reset
  @npc.teleporting = false
  @npc.region_change = false
  @npc.teleport_location = nil
  @npc.animation = nil
  @npc.graphic = nil
end