Advertisement
marlosgama

Untitled

Jul 23rd, 2020
1,056
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 0.31 KB | None | 0 0
  1.   def die
  2.     $server.change_global_switch(103, true) if @map_id == 5 && !$server.switches[103]
  3.     lose_gold(@gold * LOSE_GOLD_RATE / 100)
  4.     lose_exp(@exp * lose_exp_rate / 100)
  5.     recover_all
  6.     clear_states
  7.     clear_buffs
  8.     transfer(@revive_map_id, @revive_x, @revive_y, Constants::DIR_DOWN)
  9.   end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement