Advertisement
Vlue

Formation Bonus + Engine Symphony

Jul 15th, 2014
485
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 0.93 KB | None | 0 0
  1. ##FORMATION BONUS + YAMI ENGINE SYMPHONY PATCH (Script order: Formation Bonus, Engine Symphony, Patch)
  2. class Game_Actor
  3.   def set_default_position
  4.     super
  5.     return if @origin_x && @origin_y
  6.     return unless $game_party.battle_members.include?(self)
  7.     @origin_x = @screen_x = @destination_x = FORMATION_LOCATIONS[@formation_slot][0]
  8.     @origin_y = @screen_y = @destination_y = FORMATION_LOCATIONS[@formation_slot][1]
  9.     return unless emptyview?
  10.     @origin_x = @screen_x = @destination_x = self.screen_x
  11.     @origin_y = @screen_y = @destination_y = self.screen_y
  12.   end
  13.   def correct_origin_position
  14.     return if @origin_x && @origin_y
  15.     @origin_x = @screen_x = FORMATION_LOCATIONS[@formation_slot][0]
  16.     @origin_y = @screen_y = FORMATION_LOCATIONS[@formation_slot][1]
  17.     return unless emptyview?
  18.     @origin_x = @screen_x = @destination_x = self.screen_x
  19.     @origin_y = @screen_y = @destination_y = self.screen_y
  20.   end
  21. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement