Advertisement
roninator2

Tsukihime Map Regions Patch

Dec 5th, 2024
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 1.41 KB | None | 0 0
  1. =begin
  2. #===============================================================================
  3.  Title: Map Regions
  4.  Author: Hime
  5.  Date: Apr 24, 2015
  6.  URL: http://himeworks.com/2014/02/17/map-regions/
  7.  Patch: Roninator2
  8. --------------------------------------------------------------------------------
  9.  ** Change log
  10.  Oct 2, 2019
  11.    - Initial Creation
  12. --------------------------------------------------------------------------------  
  13.  ** Terms of Use
  14.  * Follow Hime's Terms of Use
  15. --------------------------------------------------------------------------------
  16.  ** Description
  17.  
  18.  This script fixes a bug in "map regions".
  19.  
  20. --------------------------------------------------------------------------------
  21.  ** Installation
  22.  
  23.  In the script editor, install this script below Hime Map Regions
  24.  
  25. --------------------------------------------------------------------------------
  26. =end
  27.  
  28. module RPG
  29.   class Map
  30.     alias r2_map_region_92b7f9  map_regions
  31.     def map_regions
  32.       @oldmap_name = $game_map.display_name if @oldmap_name.nil?
  33.       r2_map_region_92b7f9
  34.     end
  35.   end
  36. end
  37.  
  38. class Game_Map
  39.   def blank_region_location
  40.     @map.display_name = @oldmap_name
  41.         @map_regions = nil
  42.     @region_name = nil
  43.     @oldmap_name = nil
  44.   end
  45. end
  46.  
  47. class Scene_Map < Scene_Base
  48.   alias r2_perform_transit    pre_transfer
  49.   def pre_transfer
  50.     $game_map.blank_region_location
  51.     r2_perform_transit
  52.   end
  53. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement