From 5a5c4e0164678e23a6c53755fa65e85253db367d Mon Sep 17 00:00:00 2001 From: sSAR <138690654+zUltimaPG3D@users.noreply.github.com> Date: Fri, 14 Mar 2025 19:21:32 +0100 Subject: [PATCH] feat: changed/changed-special specific fixes --- mkxp-z/Kawariki-patches/patches.rb | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/mkxp-z/Kawariki-patches/patches.rb b/mkxp-z/Kawariki-patches/patches.rb index 9df13f2..bf3a3b2 100644 --- a/mkxp-z/Kawariki-patches/patches.rb +++ b/mkxp-z/Kawariki-patches/patches.rb @@ -164,6 +164,21 @@ module Preload .imported?(nil) .include?("======\nMoonpearl's Scene_Base\n-----") .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 Patch.new("Disable all font effects") .flag?(:no_font_effects) # KAWARIKI_MKXP_NO_FONT_EFFECTS