rmxp_extractor 1.8 → 1.9

Sign up to get free protection for your applications and to get access to all the features.
Files changed (411) hide show
  1. checksums.yaml +4 -4
  2. data/CODE_OF_CONDUCT.md +74 -74
  3. data/Gemfile +13 -13
  4. data/Gemfile.lock +1 -1
  5. data/LICENSE.txt +21 -21
  6. data/README.md +35 -35
  7. data/Rakefile +6 -6
  8. data/bin/rmxp_extractor +13 -13
  9. data/bin/setup +8 -8
  10. data/diff_check.rb +13 -13
  11. data/lib/rmxp_extractor/classnames.rb +227 -245
  12. data/lib/rmxp_extractor/data_export.rb +80 -82
  13. data/lib/rmxp_extractor/data_import.rb +74 -69
  14. data/lib/rmxp_extractor/ron.rb +144 -144
  15. data/lib/rmxp_extractor/script_handler.rb +85 -85
  16. data/lib/rmxp_extractor/version.rb +3 -3
  17. data/lib/rmxp_extractor.rb +46 -46
  18. data/rmxp_extractor.gemspec +30 -30
  19. data/spec/spec_helper.rb +100 -100
  20. metadata +2 -393
  21. data/Data/Actors.rxdata +0 -0
  22. data/Data/Animations.rxdata +0 -0
  23. data/Data/Armors.rxdata +0 -0
  24. data/Data/Classes.rxdata +0 -0
  25. data/Data/CommonEvents.rxdata +0 -0
  26. data/Data/Enemies.rxdata +0 -0
  27. data/Data/Items.rxdata +0 -0
  28. data/Data/Map001.rxdata +0 -0
  29. data/Data/Map002.rxdata +0 -0
  30. data/Data/Map003.rxdata +0 -0
  31. data/Data/Map004.rxdata +0 -0
  32. data/Data/Map005.rxdata +0 -0
  33. data/Data/Map006.rxdata +0 -0
  34. data/Data/Map007.rxdata +0 -0
  35. data/Data/Map008.rxdata +0 -0
  36. data/Data/Map009.rxdata +0 -0
  37. data/Data/Map010.rxdata +0 -0
  38. data/Data/Map011.rxdata +0 -0
  39. data/Data/Map012.rxdata +0 -0
  40. data/Data/Map013.rxdata +0 -0
  41. data/Data/Map014.rxdata +0 -0
  42. data/Data/Map015.rxdata +0 -0
  43. data/Data/Map016.rxdata +0 -0
  44. data/Data/Map017.rxdata +0 -0
  45. data/Data/Map018.rxdata +0 -0
  46. data/Data/Map019.rxdata +0 -0
  47. data/Data/Map020.rxdata +0 -0
  48. data/Data/Map021.rxdata +0 -0
  49. data/Data/Map022.rxdata +0 -0
  50. data/Data/Map023.rxdata +0 -0
  51. data/Data/Map024.rxdata +0 -0
  52. data/Data/Map025.rxdata +0 -0
  53. data/Data/Map026.rxdata +0 -0
  54. data/Data/Map027.rxdata +0 -0
  55. data/Data/Map028.rxdata +0 -0
  56. data/Data/Map029.rxdata +0 -0
  57. data/Data/Map030.rxdata +0 -0
  58. data/Data/Map031.rxdata +0 -0
  59. data/Data/Map032.rxdata +0 -0
  60. data/Data/Map033.rxdata +0 -0
  61. data/Data/Map034.rxdata +0 -0
  62. data/Data/Map035.rxdata +0 -0
  63. data/Data/Map036.rxdata +0 -0
  64. data/Data/Map037.rxdata +0 -0
  65. data/Data/Map038.rxdata +0 -0
  66. data/Data/Map039.rxdata +0 -0
  67. data/Data/Map040.rxdata +0 -0
  68. data/Data/Map041.rxdata +0 -0
  69. data/Data/Map042.rxdata +0 -0
  70. data/Data/Map043.rxdata +0 -0
  71. data/Data/Map044.rxdata +0 -0
  72. data/Data/Map045.rxdata +0 -0
  73. data/Data/Map046.rxdata +0 -0
  74. data/Data/Map047.rxdata +0 -0
  75. data/Data/Map048.rxdata +0 -0
  76. data/Data/Map049.rxdata +0 -0
  77. data/Data/Map050.rxdata +0 -0
  78. data/Data/Map051.rxdata +0 -0
  79. data/Data/Map052.rxdata +0 -0
  80. data/Data/Map053.rxdata +0 -0
  81. data/Data/Map054.rxdata +0 -0
  82. data/Data/Map055.rxdata +0 -0
  83. data/Data/Map056.rxdata +0 -0
  84. data/Data/Map057.rxdata +0 -0
  85. data/Data/Map058.rxdata +0 -0
  86. data/Data/Map059.rxdata +0 -0
  87. data/Data/Map060.rxdata +0 -0
  88. data/Data/Map061.rxdata +0 -0
  89. data/Data/Map062.rxdata +0 -0
  90. data/Data/Map063.rxdata +0 -0
  91. data/Data/Map064.rxdata +0 -0
  92. data/Data/Map065.rxdata +0 -0
  93. data/Data/Map066.rxdata +0 -0
  94. data/Data/Map067.rxdata +0 -0
  95. data/Data/Map068.rxdata +0 -0
  96. data/Data/Map069.rxdata +0 -0
  97. data/Data/Map070.rxdata +0 -0
  98. data/Data/Map071.rxdata +0 -0
  99. data/Data/Map072.rxdata +0 -0
  100. data/Data/Map073.rxdata +0 -0
  101. data/Data/Map074.rxdata +0 -0
  102. data/Data/Map075.rxdata +0 -0
  103. data/Data/Map076.rxdata +0 -0
  104. data/Data/Map077.rxdata +0 -0
  105. data/Data/Map078.rxdata +0 -0
  106. data/Data/Map079.rxdata +0 -0
  107. data/Data/Map080.rxdata +0 -0
  108. data/Data/Map081.rxdata +0 -0
  109. data/Data/Map082.rxdata +0 -0
  110. data/Data/Map083.rxdata +0 -0
  111. data/Data/Map084.rxdata +0 -0
  112. data/Data/Map085.rxdata +0 -0
  113. data/Data/Map086.rxdata +0 -0
  114. data/Data/Map087.rxdata +0 -0
  115. data/Data/Map088.rxdata +0 -0
  116. data/Data/Map089.rxdata +0 -0
  117. data/Data/Map090.rxdata +0 -0
  118. data/Data/Map091.rxdata +0 -0
  119. data/Data/Map092.rxdata +0 -0
  120. data/Data/Map093.rxdata +0 -0
  121. data/Data/Map094.rxdata +0 -0
  122. data/Data/Map095.rxdata +0 -0
  123. data/Data/Map096.rxdata +0 -0
  124. data/Data/Map097.rxdata +0 -0
  125. data/Data/Map098.rxdata +0 -0
  126. data/Data/Map099.rxdata +0 -0
  127. data/Data/Map100.rxdata +0 -0
  128. data/Data/Map101.rxdata +0 -0
  129. data/Data/Map102.rxdata +0 -0
  130. data/Data/Map103.rxdata +0 -0
  131. data/Data/Map104.rxdata +0 -0
  132. data/Data/Map105.rxdata +0 -0
  133. data/Data/Map106.rxdata +0 -0
  134. data/Data/Map107.rxdata +0 -0
  135. data/Data/Map108.rxdata +0 -0
  136. data/Data/Map109.rxdata +0 -0
  137. data/Data/Map110.rxdata +0 -0
  138. data/Data/Map111.rxdata +0 -0
  139. data/Data/Map112.rxdata +0 -0
  140. data/Data/Map113.rxdata +0 -0
  141. data/Data/Map114.rxdata +0 -0
  142. data/Data/Map115.rxdata +0 -0
  143. data/Data/Map116.rxdata +0 -0
  144. data/Data/Map117.rxdata +0 -0
  145. data/Data/Map118.rxdata +0 -0
  146. data/Data/Map119.rxdata +0 -0
  147. data/Data/Map120.rxdata +0 -0
  148. data/Data/Map121.rxdata +0 -0
  149. data/Data/Map122.rxdata +0 -0
  150. data/Data/Map123.rxdata +0 -0
  151. data/Data/Map124.rxdata +0 -0
  152. data/Data/Map125.rxdata +0 -0
  153. data/Data/Map126.rxdata +0 -0
  154. data/Data/Map127.rxdata +0 -0
  155. data/Data/Map128.rxdata +0 -0
  156. data/Data/Map129.rxdata +0 -0
  157. data/Data/Map130.rxdata +0 -0
  158. data/Data/Map131.rxdata +0 -0
  159. data/Data/Map132.rxdata +0 -0
  160. data/Data/Map133.rxdata +0 -0
  161. data/Data/Map134.rxdata +0 -0
  162. data/Data/Map135.rxdata +0 -0
  163. data/Data/Map136.rxdata +0 -0
  164. data/Data/Map137.rxdata +0 -0
  165. data/Data/Map138.rxdata +0 -0
  166. data/Data/Map139.rxdata +0 -0
  167. data/Data/Map140.rxdata +0 -0
  168. data/Data/Map141.rxdata +0 -0
  169. data/Data/Map142.rxdata +0 -0
  170. data/Data/Map143.rxdata +0 -0
  171. data/Data/Map144.rxdata +0 -0
  172. data/Data/Map145.rxdata +0 -0
  173. data/Data/Map146.rxdata +0 -0
  174. data/Data/Map147.rxdata +0 -0
  175. data/Data/Map148.rxdata +0 -0
  176. data/Data/Map149.rxdata +0 -0
  177. data/Data/Map150.rxdata +0 -0
  178. data/Data/Map151.rxdata +0 -0
  179. data/Data/Map152.rxdata +0 -0
  180. data/Data/Map153.rxdata +0 -0
  181. data/Data/Map154.rxdata +0 -0
  182. data/Data/Map155.rxdata +0 -0
  183. data/Data/Map156.rxdata +0 -0
  184. data/Data/Map157.rxdata +0 -0
  185. data/Data/Map158.rxdata +0 -0
  186. data/Data/Map159.rxdata +0 -0
  187. data/Data/Map160.rxdata +0 -0
  188. data/Data/Map161.rxdata +0 -0
  189. data/Data/Map162.rxdata +0 -0
  190. data/Data/Map163.rxdata +0 -0
  191. data/Data/Map164.rxdata +0 -0
  192. data/Data/Map165.rxdata +0 -0
  193. data/Data/Map166.rxdata +0 -0
  194. data/Data/Map167.rxdata +0 -0
  195. data/Data/Map168.rxdata +0 -0
  196. data/Data/Map169.rxdata +0 -0
  197. data/Data/Map170.rxdata +0 -0
  198. data/Data/Map171.rxdata +0 -0
  199. data/Data/Map172.rxdata +0 -0
  200. data/Data/Map173.rxdata +0 -0
  201. data/Data/Map174.rxdata +0 -0
  202. data/Data/Map175.rxdata +0 -0
  203. data/Data/Map176.rxdata +0 -0
  204. data/Data/Map177.rxdata +0 -0
  205. data/Data/Map178.rxdata +0 -0
  206. data/Data/Map179.rxdata +0 -0
  207. data/Data/Map180.rxdata +0 -0
  208. data/Data/Map181.rxdata +0 -0
  209. data/Data/Map182.rxdata +0 -0
  210. data/Data/Map183.rxdata +0 -0
  211. data/Data/Map184.rxdata +0 -0
  212. data/Data/Map185.rxdata +0 -0
  213. data/Data/Map186.rxdata +0 -0
  214. data/Data/Map187.rxdata +0 -0
  215. data/Data/Map188.rxdata +0 -0
  216. data/Data/Map189.rxdata +0 -0
  217. data/Data/Map190.rxdata +0 -0
  218. data/Data/Map191.rxdata +0 -0
  219. data/Data/Map192.rxdata +0 -0
  220. data/Data/Map193.rxdata +0 -0
  221. data/Data/Map194.rxdata +0 -0
  222. data/Data/Map195.rxdata +0 -0
  223. data/Data/Map196.rxdata +0 -0
  224. data/Data/Map197.rxdata +0 -0
  225. data/Data/Map198.rxdata +0 -0
  226. data/Data/Map199.rxdata +0 -0
  227. data/Data/Map200.rxdata +0 -0
  228. data/Data/Map201.rxdata +0 -0
  229. data/Data/Map202.rxdata +0 -0
  230. data/Data/Map203.rxdata +0 -0
  231. data/Data/Map204.rxdata +0 -0
  232. data/Data/Map205.rxdata +0 -0
  233. data/Data/Map206.rxdata +0 -0
  234. data/Data/Map207.rxdata +0 -0
  235. data/Data/Map208.rxdata +0 -0
  236. data/Data/Map209.rxdata +0 -0
  237. data/Data/Map210.rxdata +0 -0
  238. data/Data/Map211.rxdata +0 -0
  239. data/Data/Map212.rxdata +0 -0
  240. data/Data/Map213.rxdata +0 -0
  241. data/Data/Map214.rxdata +0 -0
  242. data/Data/Map215.rxdata +0 -0
  243. data/Data/Map216.rxdata +0 -0
  244. data/Data/Map217.rxdata +0 -0
  245. data/Data/Map218.rxdata +0 -0
  246. data/Data/Map219.rxdata +0 -0
  247. data/Data/Map220.rxdata +0 -0
  248. data/Data/Map221.rxdata +0 -0
  249. data/Data/Map222.rxdata +0 -0
  250. data/Data/Map223.rxdata +0 -0
  251. data/Data/Map224.rxdata +0 -0
  252. data/Data/Map225.rxdata +0 -0
  253. data/Data/Map226.rxdata +0 -0
  254. data/Data/Map227.rxdata +0 -0
  255. data/Data/Map228.rxdata +0 -0
  256. data/Data/Map229.rxdata +0 -0
  257. data/Data/Map230.rxdata +0 -0
  258. data/Data/Map231.rxdata +0 -0
  259. data/Data/Map232.rxdata +0 -0
  260. data/Data/Map233.rxdata +0 -0
  261. data/Data/Map234.rxdata +0 -0
  262. data/Data/Map235.rxdata +0 -0
  263. data/Data/Map236.rxdata +0 -0
  264. data/Data/Map237.rxdata +0 -0
  265. data/Data/Map238.rxdata +0 -0
  266. data/Data/Map239.rxdata +0 -0
  267. data/Data/Map240.rxdata +0 -0
  268. data/Data/Map241.rxdata +0 -0
  269. data/Data/Map242.rxdata +0 -0
  270. data/Data/Map243.rxdata +0 -0
  271. data/Data/Map244.rxdata +0 -0
  272. data/Data/Map245.rxdata +0 -0
  273. data/Data/Map246.rxdata +0 -0
  274. data/Data/Map247.rxdata +0 -0
  275. data/Data/Map248.rxdata +0 -0
  276. data/Data/Map249.rxdata +0 -0
  277. data/Data/Map250.rxdata +0 -0
  278. data/Data/Map251.rxdata +0 -0
  279. data/Data/Map252.rxdata +0 -0
  280. data/Data/Map253.rxdata +0 -0
  281. data/Data/Map254.rxdata +0 -0
  282. data/Data/Map255.rxdata +0 -0
  283. data/Data/Map256.rxdata +0 -0
  284. data/Data/Map257.rxdata +0 -0
  285. data/Data/Map258.rxdata +0 -0
  286. data/Data/Map259.rxdata +0 -0
  287. data/Data/Map260.rxdata +0 -0
  288. data/Data/Map261.rxdata +0 -0
  289. data/Data/Map262.rxdata +0 -0
  290. data/Data/Map263.rxdata +0 -0
  291. data/Data/MapInfos.rxdata +0 -0
  292. data/Data/Scripts.rxdata +0 -0
  293. data/Data/Skills.rxdata +0 -0
  294. data/Data/States.rxdata +0 -0
  295. data/Data/System.rxdata +0 -0
  296. data/Data/Tilesets.rxdata +0 -0
  297. data/Data/Troops.rxdata +0 -0
  298. data/Data/Weapons.rxdata +0 -0
  299. data/Data/xScripts.rxdata +0 -0
  300. data/Scripts/Credits_Message.rb +0 -259
  301. data/Scripts/Data_FastTravel.rb +0 -50
  302. data/Scripts/Data_Footsteps.rb +0 -77
  303. data/Scripts/Data_Item.rb +0 -50
  304. data/Scripts/Data_SpecialEventData.rb +0 -60
  305. data/Scripts/Demo.rb +0 -7
  306. data/Scripts/Desktop_Message.rb +0 -210
  307. data/Scripts/Doc_Message.rb +0 -273
  308. data/Scripts/EdText.rb +0 -50
  309. data/Scripts/Ed_Message.rb +0 -234
  310. data/Scripts/FastTravel.rb +0 -175
  311. data/Scripts/Game_Actor.rb +0 -156
  312. data/Scripts/Game_Actors.rb +0 -28
  313. data/Scripts/Game_BattleAction.rb +0 -145
  314. data/Scripts/Game_Battler 1.rb +0 -307
  315. data/Scripts/Game_Battler 2.rb +0 -294
  316. data/Scripts/Game_Battler 3.rb +0 -354
  317. data/Scripts/Game_Character 1.rb +0 -291
  318. data/Scripts/Game_Character 2.rb +0 -355
  319. data/Scripts/Game_Character 3.rb +0 -505
  320. data/Scripts/Game_CommonEvent.rb +0 -70
  321. data/Scripts/Game_Enemy.rb +0 -317
  322. data/Scripts/Game_Event.rb +0 -264
  323. data/Scripts/Game_FastTravel.rb +0 -40
  324. data/Scripts/Game_Follower.rb +0 -76
  325. data/Scripts/Game_Light.rb +0 -13
  326. data/Scripts/Game_Map.rb +0 -551
  327. data/Scripts/Game_Oneshot.rb +0 -83
  328. data/Scripts/Game_Party.rb +0 -380
  329. data/Scripts/Game_Picture.rb +0 -164
  330. data/Scripts/Game_Player.rb +0 -298
  331. data/Scripts/Game_Screen.rb +0 -148
  332. data/Scripts/Game_SelfSwitches.rb +0 -30
  333. data/Scripts/Game_Switches.rb +0 -45
  334. data/Scripts/Game_System.rb +0 -210
  335. data/Scripts/Game_Temp.rb +0 -145
  336. data/Scripts/Game_Variables.rb +0 -36
  337. data/Scripts/Interpreter 1.rb +0 -320
  338. data/Scripts/Interpreter 2.rb +0 -286
  339. data/Scripts/Interpreter 3.rb +0 -474
  340. data/Scripts/Interpreter 4.rb +0 -327
  341. data/Scripts/Interpreter 5.rb +0 -448
  342. data/Scripts/Interpreter 6.rb +0 -307
  343. data/Scripts/Interpreter 7.rb +0 -282
  344. data/Scripts/Main.rb +0 -50
  345. data/Scripts/Particles.rb +0 -141
  346. data/Scripts/Persistent.rb +0 -71
  347. data/Scripts/Puzzle_Film.rb +0 -14
  348. data/Scripts/Puzzle_Pixel.rb +0 -210
  349. data/Scripts/Puzzle_Safe.rb +0 -152
  350. data/Scripts/Puzzle_Sokoban.rb +0 -14
  351. data/Scripts/RPG.rb +0 -55
  352. data/Scripts/SaveLoad.rb +0 -275
  353. data/Scripts/Scene_Debug.rb +0 -190
  354. data/Scripts/Scene_End.rb +0 -108
  355. data/Scripts/Scene_Equip.rb +0 -222
  356. data/Scripts/Scene_File.rb +0 -111
  357. data/Scripts/Scene_Item.rb +0 -205
  358. data/Scripts/Scene_Load.rb +0 -106
  359. data/Scripts/Scene_Map.rb +0 -540
  360. data/Scripts/Scene_Menu.rb +0 -213
  361. data/Scripts/Scene_Name.rb +0 -113
  362. data/Scripts/Scene_Save.rb +0 -88
  363. data/Scripts/Scene_Skill.rb +0 -232
  364. data/Scripts/Scene_Status.rb +0 -78
  365. data/Scripts/Scene_Title.rb +0 -237
  366. data/Scripts/Script.rb +0 -780
  367. data/Scripts/Sprite_Battler.rb +0 -131
  368. data/Scripts/Sprite_Character.rb +0 -192
  369. data/Scripts/Sprite_Footprint.rb +0 -35
  370. data/Scripts/Sprite_Footsplash.rb +0 -54
  371. data/Scripts/Sprite_Light.rb +0 -18
  372. data/Scripts/Sprite_MapText.rb +0 -63
  373. data/Scripts/Sprite_Picture.rb +0 -72
  374. data/Scripts/Sprite_Timer.rb +0 -52
  375. data/Scripts/Spriteset_Map.rb +0 -370
  376. data/Scripts/Window_Base.rb +0 -327
  377. data/Scripts/Window_BattleResult.rb +0 -51
  378. data/Scripts/Window_BattleStatus.rb +0 -62
  379. data/Scripts/Window_Command.rb +0 -49
  380. data/Scripts/Window_DebugLeft.rb +0 -57
  381. data/Scripts/Window_DebugRight.rb +0 -69
  382. data/Scripts/Window_EquipItem.rb +0 -94
  383. data/Scripts/Window_EquipLeft.rb +0 -61
  384. data/Scripts/Window_EquipRight.rb +0 -56
  385. data/Scripts/Window_Gold.rb +0 -27
  386. data/Scripts/Window_Help.rb +0 -33
  387. data/Scripts/Window_InputNumber.rb +0 -111
  388. data/Scripts/Window_Item.rb +0 -229
  389. data/Scripts/Window_MainMenu.rb +0 -150
  390. data/Scripts/Window_MenuStatus.rb +0 -48
  391. data/Scripts/Window_Message.rb +0 -459
  392. data/Scripts/Window_NameEdit.rb +0 -108
  393. data/Scripts/Window_NameInput.rb +0 -262
  394. data/Scripts/Window_PartyCommand.rb +0 -42
  395. data/Scripts/Window_PlayTime.rb +0 -40
  396. data/Scripts/Window_SaveFile.rb +0 -91
  397. data/Scripts/Window_Selectable.rb +0 -203
  398. data/Scripts/Window_Settings.rb +0 -469
  399. data/Scripts/Window_ShopBuy.rb +0 -93
  400. data/Scripts/Window_ShopCommand.rb +0 -37
  401. data/Scripts/Window_ShopNumber.rb +0 -87
  402. data/Scripts/Window_ShopSell.rb +0 -94
  403. data/Scripts/Window_ShopStatus.rb +0 -107
  404. data/Scripts/Window_Skill.rb +0 -83
  405. data/Scripts/Window_SkillStatus.rb +0 -28
  406. data/Scripts/Window_Status.rb +0 -64
  407. data/Scripts/Window_Steps.rb +0 -26
  408. data/Scripts/Window_Target.rb +0 -49
  409. data/Scripts/_scripts.txt +0 -111
  410. data/Scripts/i18n_English.rb +0 -59
  411. data/Scripts/i18n_Language.rb +0 -130
data/Scripts/Game_Map.rb DELETED
@@ -1,551 +0,0 @@
1
- #==============================================================================
2
- # ** Game_Map
3
- #------------------------------------------------------------------------------
4
- # This class handles the map. It includes scrolling and passable determining
5
- # functions. Refer to "$game_map" for the instance of this class.
6
- #==============================================================================
7
-
8
- class Game_Map
9
- #--------------------------------------------------------------------------
10
- # * Public Instance Variables
11
- #--------------------------------------------------------------------------
12
- attr_accessor :tileset_name # tileset file name
13
- attr_accessor :autotile_names # autotile file name
14
- attr_accessor :panorama_name # panorama file name
15
- attr_accessor :panorama_hue # panorama hue
16
- attr_accessor :fog_name # fog file name
17
- attr_accessor :fog_hue # fog hue
18
- attr_accessor :fog_opacity # fog opacity level
19
- attr_accessor :fog_blend_type # fog blending method
20
- attr_accessor :fog_zoom # fog zoom rate
21
- attr_accessor :fog_sx # fog sx
22
- attr_accessor :fog_sy # fog sy
23
- attr_accessor :battleback_name # battleback file name
24
- attr_accessor :display_x # display x-coordinate * 128
25
- attr_accessor :display_y # display y-coordinate * 128
26
- attr_accessor :wrap_x # display x-coordinate * 128 for wrap
27
- attr_accessor :wrap_y # display y-coordinate * 128 for wrap
28
- attr_accessor :need_refresh # refresh request flag
29
- attr_accessor :bg_name # bg file name
30
- attr_accessor :particles_type # particles name
31
- attr_accessor :clamped_x # panorama is horizontally clamped?
32
- attr_accessor :clamped_y # panorama is vertically clamped?
33
- attr_accessor :always_moving # panorama is always moving
34
- attr_accessor :pan_move_offset # panorama moving offset
35
- attr_accessor :pan_onetoone # panorama is 1:1
36
- attr_accessor :pan_animate # panorama is animated
37
- attr_accessor :pan_fade_animate # panorama is fade animated
38
- attr_accessor :pan_zoom # panorama zoom
39
- attr_accessor :wrapping # map is wrapping?
40
- attr_accessor :pan_offset_y # offset of y-coord of panorama
41
- attr_accessor :ambient # ambient light
42
- attr_reader :passages # passage table
43
- attr_reader :priorities # prioroty table
44
- attr_reader :terrain_tags # terrain tag table
45
- attr_reader :events # events
46
- attr_reader :fog_ox # fog x-coordinate starting point
47
- attr_reader :fog_oy # fog y-coordinate starting point
48
- attr_reader :fog_tone # fog color tone
49
- #--------------------------------------------------------------------------
50
- # * List of clamped panorama images
51
- #--------------------------------------------------------------------------
52
- CLAMPED = [
53
- 'red',
54
- 'red_distort',
55
- 'codebg'
56
- ]
57
- CLAMPED_X = [
58
- ]
59
- CLAMPED_Y = [
60
- 'red_obsdesk',
61
- ]
62
- ANIMATED = [
63
- 'blue_water',
64
- ]
65
- FADE_ANIMATION_PANORAMA = [
66
- 'dark_water',
67
- 'green_water',
68
- ]
69
- ONETOONE = [
70
- 'blue_water',
71
- 'green_water',
72
- 'dark_water',
73
- ]
74
- NOZOOM = [
75
- 'dark_water',
76
- #'green_water',
77
- ]
78
-
79
- ALWAYS_MOVING = [
80
- 'codebg'
81
- ]
82
- #--------------------------------------------------------------------------
83
- # * Object Initialization
84
- #--------------------------------------------------------------------------
85
- def initialize
86
- @map_id = 0
87
- @display_x = 0
88
- @display_y = 0
89
- end
90
- #--------------------------------------------------------------------------
91
- # * Setup
92
- # map_id : map ID
93
- #--------------------------------------------------------------------------
94
- def setup(map_id)
95
- # Put map ID in @map_id memory
96
- @map_id = map_id
97
- # Load map from file and set @map
98
- @map = load_data(sprintf("Data/Map%03d.rxdata", @map_id))
99
- # set tile set information in opening instance variables
100
- tileset = $data_tilesets[@map.tileset_id]
101
- if @map.tileset_id > 0
102
- $game_temp.footstep_sfx = FOOTSTEP_SFX[@map.tileset_id - 1]
103
- else
104
- $game_temp.footstep_sfx = nil
105
- end
106
- @tileset_name = tileset.tileset_name
107
- @autotile_names = tileset.autotile_names
108
- @panorama_name = tileset.panorama_name
109
- @panorama_hue = tileset.panorama_hue
110
- @fog_name = tileset.fog_name
111
- @fog_hue = tileset.fog_hue
112
- @fog_opacity = tileset.fog_opacity
113
- @fog_blend_type = tileset.fog_blend_type
114
- @fog_zoom = tileset.fog_zoom
115
- @fog_sx = tileset.fog_sx
116
- @fog_sy = tileset.fog_sy
117
- @battleback_name = tileset.battleback_name
118
- @passages = tileset.passages
119
- @priorities = tileset.priorities
120
- @terrain_tags = tileset.terrain_tags
121
- # Initialize displayed coordinates
122
- @display_x = 0
123
- @display_y = 0
124
- @wrap_x = 0
125
- @wrap_y = 0
126
- # Clear refresh request flag
127
- @need_refresh = false
128
- # Set map event data
129
- @events = {}
130
- for i in @map.events.keys
131
- @events[i] = Game_Event.new(@map_id, @map.events[i])
132
- end
133
- # Set common event data
134
- @common_events = {}
135
- for i in 1...$data_common_events.size
136
- @common_events[i] = Game_CommonEvent.new(i)
137
- end
138
- # Initialize all fog information
139
- @fog_ox = 0
140
- @fog_oy = 0
141
- @fog_tone = Tone.new(0, 0, 0, 0)
142
- @fog_tone_target = Tone.new(0, 0, 0, 0)
143
- @fog_tone_duration = 0
144
- @fog_opacity_duration = 0
145
- @fog_opacity_target = 0
146
- # Initialize scroll information
147
- @scroll_direction = 2
148
- @scroll_rest = 0
149
- @scroll_speed = 4
150
- # Clear BG
151
- @bg_name = ""
152
- # Clear particles
153
- @particles_type = nil
154
- # Unclamp panorama
155
- if CLAMPED.include? @panorama_name
156
- @clamped_x = true
157
- @clamped_y = true
158
- elsif CLAMPED_X.include? @panorama_name
159
- @clamped_x = true
160
- @clamped_y = false
161
- elsif CLAMPED_Y.include? @panorama_name
162
- @clamped_x = false
163
- @clamped_y = true
164
- else
165
- @clamped_x = false
166
- @clamped_y = false
167
- end
168
-
169
- @always_moving = ALWAYS_MOVING.include? @panorama_name
170
- @pan_move_offset = 0
171
-
172
- # Animated/One-to-one/zoom
173
- @pan_animate = ANIMATED.include? @panorama_name
174
- @pan_fade_animate = FADE_ANIMATION_PANORAMA.include? @panorama_name
175
- @pan_onetoone = ONETOONE.include? @panorama_name
176
- @pan_zoom = NOZOOM.include?(@panorama_name) ? 1 : 2
177
- # Unwrap map
178
- @wrapping = false
179
- @pan_offset_y = 0
180
- # Full bright ambient light
181
- @ambient = Tone.new(0, 0, 0, 0)
182
-
183
- # Construct map name path
184
- mapinfo = load_data("Data/MapInfos.rxdata")
185
- @map_name = ""
186
- i = @map_id
187
- begin
188
- @map_name.insert(0, "/" + mapinfo[i].name)
189
- i = mapinfo[i].parent_id
190
- end while i > 0
191
- end
192
- #--------------------------------------------------------------------------
193
- # * Get Map ID
194
- #--------------------------------------------------------------------------
195
- def map_id
196
- return @map_id
197
- end
198
- #--------------------------------------------------------------------------
199
- # * Get Map Name
200
- #--------------------------------------------------------------------------
201
- def map_name
202
- return @map_name
203
- end
204
- #--------------------------------------------------------------------------
205
- # * Get Width
206
- #--------------------------------------------------------------------------
207
- def width
208
- return @map.width
209
- end
210
- #--------------------------------------------------------------------------
211
- # * Get Height
212
- #--------------------------------------------------------------------------
213
- def height
214
- return @map.height
215
- end
216
- #--------------------------------------------------------------------------
217
- # * Get Encounter List
218
- #--------------------------------------------------------------------------
219
- def encounter_list
220
- return @map.encounter_list
221
- end
222
- #--------------------------------------------------------------------------
223
- # * Get Encounter Steps
224
- #--------------------------------------------------------------------------
225
- def encounter_step
226
- return @map.encounter_step
227
- end
228
- #--------------------------------------------------------------------------
229
- # * Get Map Data
230
- #--------------------------------------------------------------------------
231
- def data
232
- return @map.data
233
- end
234
- #--------------------------------------------------------------------------
235
- # * Automatically Change Background Music and Backround Sound
236
- #--------------------------------------------------------------------------
237
- def autoplay
238
- if @map.autoplay_bgm
239
- $game_system.bgm_play(@map.bgm)
240
- end
241
- if @map.autoplay_bgs
242
- $game_system.bgs_play(@map.bgs)
243
- end
244
- end
245
- #--------------------------------------------------------------------------
246
- # * Refresh
247
- #--------------------------------------------------------------------------
248
- def refresh
249
- # If map ID is effective
250
- if @map_id > 0
251
- # Refresh all map events
252
- for event in @events.values
253
- event.refresh
254
- end
255
- # Refresh all common events
256
- for common_event in @common_events.values
257
- common_event.refresh
258
- end
259
- end
260
- # Clear refresh request flag
261
- @need_refresh = false
262
- end
263
-
264
-
265
- #--------------------------------------------------------------------------
266
- # * Scroll Down
267
- # distance : scroll distance
268
- #--------------------------------------------------------------------------
269
- def scroll_down(distance)
270
- if $game_switches[98] == true
271
- @display_y = [@display_y + distance, (self.height - 15) * 128].min
272
- else
273
- @display_y += distance
274
- end
275
- end
276
- #--------------------------------------------------------------------------
277
- # * Scroll Left
278
- # distance : scroll distance
279
- #--------------------------------------------------------------------------
280
- def scroll_left(distance)
281
- if $game_switches[98] == true
282
- @display_x = [@display_x - distance, 0].max
283
- else
284
- @display_x -= distance
285
- end
286
- end
287
- #--------------------------------------------------------------------------
288
- # * Scroll Right
289
- # distance : scroll distance
290
- #--------------------------------------------------------------------------
291
- def scroll_right(distance)
292
- if $game_switches[98] == true
293
- @display_x = [@display_x + distance, (self.width - 20) * 128].min
294
- else
295
- @display_x += distance
296
- end
297
- end
298
- #--------------------------------------------------------------------------
299
- # * Scroll Up
300
- # distance : scroll distance
301
- #--------------------------------------------------------------------------
302
- def scroll_up(distance)
303
- if $game_switches[98] == true
304
- @display_y = [@display_y - distance, 0].max
305
- else
306
- @display_y -= distance
307
- end
308
- end
309
- #--------------------------------------------------------------------------
310
- # * Determine Valid Coordinates
311
- # x : x-coordinate
312
- # y : y-coordinate
313
- #--------------------------------------------------------------------------
314
- def valid?(x, y)
315
- return true if @wrapping
316
- return (x >= 0 and x < width and y >= 0 and y < height)
317
- end
318
- #--------------------------------------------------------------------------
319
- # * Determine if Passable
320
- # x : x-coordinate
321
- # y : y-coordinate
322
- # d : direction (0,2,4,6,8,10)
323
- # * 0,10 = determine if all directions are impassable
324
- # self_event : Self (If event is determined passable)
325
- #--------------------------------------------------------------------------
326
- def passable?(x, y, d, self_event = nil)
327
- # If coordinates given are outside of the map
328
- unless valid?(x, y)
329
- # impassable
330
- return false
331
- end
332
- x %= self.width
333
- y %= self.height
334
- # Change direction (0,2,4,6,8,10) to obstacle bit (0,1,2,4,8,0)
335
- bit = (1 << (d / 2 - 1)) & 0x0f
336
- # Loop in all events
337
- for event in events.values
338
- # If tiles other than self are consistent with coordinates
339
- if event.tile_id >= 0 and event != self_event and
340
- event.x == x and event.y == y and not event.through
341
- # If blank tile
342
- if event.tile_id == 0 && event.character_name.empty?
343
- return false
344
- # If obstacle bit is set
345
- elsif @passages[event.tile_id] & bit != 0
346
- # impassable
347
- return false
348
- # If obstacle bit is set in all directions
349
- elsif @passages[event.tile_id] & 0x0f == 0x0f
350
- # impassable
351
- return false
352
- # If priorities other than that are 0
353
- elsif @priorities[event.tile_id] == 0
354
- # passable
355
- return true
356
- end
357
- end
358
- end
359
- # Loop searches in order from top of layer
360
- blank = 0
361
- [2, 1, 0].each do |i|
362
- # Get tile ID
363
- tile_id = data[x, y, i]
364
- # Tile ID acquistion failure
365
- next if tile_id == nil
366
-
367
- # Only handle blank if all three layers are blank
368
- if tile_id < 48 && i > 0
369
- blank += 1
370
- next if blank < 3
371
- end
372
-
373
- # If obstacle bit is set
374
- if @passages[tile_id] & bit != 0
375
- # impassable
376
- return false
377
- # If obstacle bit is set in all directions
378
- elsif @passages[tile_id] & 0x0f == 0x0f
379
- # impassable
380
- return false
381
- # If priorities other than that are 0
382
- elsif @priorities[tile_id] == 0
383
- # passable
384
- return true
385
- end
386
- end
387
- # passable
388
- return true
389
- end
390
- #--------------------------------------------------------------------------
391
- # * Determine Thicket
392
- # x : x-coordinate
393
- # y : y-coordinate
394
- #--------------------------------------------------------------------------
395
- def bush?(x, y)
396
- if @map_id != 0
397
- for i in [2, 1, 0]
398
- tile_id = data[x, y, i]
399
- if tile_id == nil
400
- return false
401
- elsif @passages[tile_id] & 0x40 == 0x40
402
- return true
403
- end
404
- end
405
- end
406
- return false
407
- end
408
- #--------------------------------------------------------------------------
409
- # * Determine Counter
410
- # x : x-coordinate
411
- # y : y-coordinate
412
- #--------------------------------------------------------------------------
413
- def counter?(x, y)
414
- if @map_id != 0
415
- for i in [2, 1, 0]
416
- tile_id = data[x, y, i]
417
- if tile_id == nil
418
- return false
419
- elsif @passages[tile_id] & 0x80 == 0x80
420
- return true
421
- end
422
- end
423
- end
424
- return false
425
- end
426
- #--------------------------------------------------------------------------
427
- # * Get Terrain Tag
428
- # x : x-coordinate
429
- # y : y-coordinate
430
- #--------------------------------------------------------------------------
431
- def terrain_tag(x, y)
432
- if @map_id != 0
433
- for i in [2, 1, 0]
434
- tile_id = data[x, y, i]
435
- if tile_id == nil
436
- next #return 0
437
- elsif @terrain_tags[tile_id] > 0
438
- return @terrain_tags[tile_id]
439
- end
440
- end
441
- end
442
- return 0
443
- end
444
- #--------------------------------------------------------------------------
445
- # * Get Designated Position Event ID
446
- # x : x-coordinate
447
- # y : y-coordinate
448
- #--------------------------------------------------------------------------
449
- def check_event(x, y)
450
- for event in $game_map.events.values
451
- if event.x == x and event.y == y
452
- return event.id
453
- end
454
- end
455
- end
456
- #--------------------------------------------------------------------------
457
- # * Start Scroll
458
- # direction : scroll direction
459
- # distance : scroll distance
460
- # speed : scroll speed
461
- #--------------------------------------------------------------------------
462
- def start_scroll(direction, distance, speed)
463
- @scroll_direction = direction
464
- @scroll_rest = distance * 128
465
- @scroll_speed = speed
466
- end
467
- #--------------------------------------------------------------------------
468
- # * Determine if Scrolling
469
- #--------------------------------------------------------------------------
470
- def scrolling?
471
- return @scroll_rest > 0
472
- end
473
- #--------------------------------------------------------------------------
474
- # * Start Changing Fog Color Tone
475
- # tone : color tone
476
- # duration : time
477
- #--------------------------------------------------------------------------
478
- def start_fog_tone_change(tone, duration)
479
- @fog_tone_target = tone.clone
480
- @fog_tone_duration = duration
481
- if @fog_tone_duration == 0
482
- @fog_tone = @fog_tone_target.clone
483
- end
484
- end
485
- #--------------------------------------------------------------------------
486
- # * Start Changing Fog Opacity Level
487
- # opacity : opacity level
488
- # duration : time
489
- #--------------------------------------------------------------------------
490
- def start_fog_opacity_change(opacity, duration)
491
- @fog_opacity_target = opacity * 1.0
492
- @fog_opacity_duration = duration
493
- if @fog_opacity_duration == 0
494
- @fog_opacity = @fog_opacity_target
495
- end
496
- end
497
- #--------------------------------------------------------------------------
498
- # * Frame Update
499
- #--------------------------------------------------------------------------
500
- def update
501
- # Refresh map if necessary
502
- if $game_map.need_refresh
503
- refresh
504
- end
505
- # If scrolling
506
- if @scroll_rest > 0
507
- # Change from scroll speed to distance in map coordinates
508
- distance = 2 ** @scroll_speed
509
- # Execute scrolling
510
- case @scroll_direction
511
- when 2 # Down
512
- scroll_down(distance)
513
- when 4 # Left
514
- scroll_left(distance)
515
- when 6 # Right
516
- scroll_right(distance)
517
- when 8 # Up
518
- scroll_up(distance)
519
- end
520
- # Subtract distance scrolled
521
- @scroll_rest -= distance
522
- end
523
- # Update map event
524
- for event in @events.values
525
- event.update
526
- end
527
- # Update common event
528
- for common_event in @common_events.values
529
- common_event.update
530
- end
531
- # Manage fog scrolling
532
- @fog_ox -= @fog_sx / 8.0
533
- @fog_oy -= @fog_sy / 8.0
534
- # Manage change in fog color tone
535
- if @fog_tone_duration >= 1
536
- d = @fog_tone_duration
537
- target = @fog_tone_target
538
- @fog_tone.red = (@fog_tone.red * (d - 1) + target.red) / d
539
- @fog_tone.green = (@fog_tone.green * (d - 1) + target.green) / d
540
- @fog_tone.blue = (@fog_tone.blue * (d - 1) + target.blue) / d
541
- @fog_tone.gray = (@fog_tone.gray * (d - 1) + target.gray) / d
542
- @fog_tone_duration -= 1
543
- end
544
- # Manage change in fog opacity level
545
- if @fog_opacity_duration >= 1
546
- d = @fog_opacity_duration
547
- @fog_opacity = (@fog_opacity * (d - 1) + @fog_opacity_target) / d
548
- @fog_opacity_duration -= 1
549
- end
550
- end
551
- end
@@ -1,83 +0,0 @@
1
- class Game_Oneshot
2
- #--------------------------------------------------------------------------
3
- # * Public Instance Variables
4
- #--------------------------------------------------------------------------
5
- attr_accessor :player_name # map music (for battle memory)
6
- attr_accessor :plight_timer # start of plight's plight
7
- attr_accessor :bruteforce_start # when the bruteforce_timer is started
8
- attr_accessor :wallpaper # the wallpaper that we should use
9
- attr_accessor :wallpaper_color # the wallpaper color
10
-
11
- def initialize
12
- if $GDC
13
- @player_name = ''
14
- else
15
- @player_name = Game_Oneshot.get_user_name.force_encoding("utf-8")
16
- end
17
- @lights = {}
18
- @plight_timer = nil
19
- @wallpaper = nil
20
- @bruteforce_start = nil
21
- end
22
- def self.get_user_name
23
- user_name = (Oneshot::USER_NAME).split(/\s+/)
24
- #user_name = (Steam.enabled? ? Steam::USER_NAME : Oneshot::USER_NAME).split(/\s+/)
25
- if user_name[0].casecmp('the') == 0 || user_name[0].casecmp('a') == 0
26
- return user_name.join(' ')
27
- else
28
- return user_name[0]
29
- end
30
- end
31
- end
32
-
33
- module Wallpaper
34
- def self.set_persistent(name, color)
35
- if Graphics.fullscreen
36
- Graphics.fullscreen = false
37
- $console = false
38
- if Oneshot::OS == "macos"
39
- sleep 0.65
40
- else
41
- sleep 0.2
42
- end
43
- Graphics.update
44
- end
45
-
46
- if (name == 'save_w32')
47
- case $persistent.langcode
48
- when 'fr'
49
- name = $persistent.langcode + "/" + name
50
- when 'pt_BR'
51
- name = $persistent.langcode + "/" + name
52
- when 'es'
53
- name = $persistent.langcode + "/" + name
54
- when 'ja'
55
- name = $persistent.langcode + "/" + name
56
- when 'ko'
57
- name = $persistent.langcode + "/" + name
58
- when 'zh_CN'
59
- name = $persistent.langcode + "/" + name
60
- end
61
- end
62
- $game_oneshot.wallpaper = name
63
- $game_oneshot.wallpaper_color = color
64
- Wallpaper.set(name, color)
65
- end
66
-
67
- def self.reset_persistent
68
- if Graphics.fullscreen
69
- Graphics.fullscreen = false
70
- $console = false
71
- if Oneshot::OS == "macos"
72
- sleep 0.65
73
- else
74
- sleep 0.2
75
- end
76
- Graphics.update
77
- end
78
-
79
- $game_oneshot.wallpaper = nil
80
- $game_oneshot.wallpaper_color = nil
81
- Wallpaper.reset
82
- end
83
- end