Merge pull request #31 from zUltimaPG3D/main

add changed and changed-special specific fixes
This commit is contained in:
bakustarver 2025-03-30 23:45:44 +03:00 committed by GitHub
commit 1bc4427de5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -164,6 +164,21 @@ module Preload
.imported?(nil) .imported?(nil)
.include?("======\nMoonpearl's Scene_Base\n-----") .include?("======\nMoonpearl's Scene_Base\n-----")
.flag!(:redefinitions_overwrite_class), .flag!(:redefinitions_overwrite_class),
Patch.new("CHANGED: F12 Crash fix")
.if? {|script| script.name == "Super"}
.if? {|script| script.context[:rgss_version] == 2}
.include?("# A N T I L A G V X")
.remove!,
Patch.new("CHANGED: Font fix")
.if? {|script| script.name == "Main"}
.if? {|script| script.context[:rgss_version] == 2}
.sub!('Font.default_name = ["Source Han Sans K Normal"', 'Font.default_name = ["Source Han Sans K"'),
Patch.new("Changed-special: Spriteset_Map fix")
.if? {|script| script.name == "Spriteset_Map"}
.if? {|script| script.context[:rgss_version] == 2}
.include?("def update_parallax")
.sub!('@parallax.ox = $game_map.calc_parallax_x(@parallax.bitmap)', "begin; @parallax.ox = $game_map.calc_parallax_x(@parallax.bitmap)")
.sub!('@parallax.oy = $game_map.calc_parallax_y(@parallax.bitmap)', "@parallax.oy = $game_map.calc_parallax_y(@parallax.bitmap); rescue; end"),
# Generic Inline Patches # Generic Inline Patches
Patch.new("Disable all font effects") Patch.new("Disable all font effects")
.flag?(:no_font_effects) # KAWARIKI_MKXP_NO_FONT_EFFECTS .flag?(:no_font_effects) # KAWARIKI_MKXP_NO_FONT_EFFECTS