diff --git a/binding-mri/module_rpg1.rb b/binding-mri/module_rpg1.rb index 8227030..6461cc6 100644 --- a/binding-mri/module_rpg1.rb +++ b/binding-mri/module_rpg1.rb @@ -49,20 +49,20 @@ module RPG self.load_bitmap("Graphics/Battlers/", filename, hue) end def self.character(filename, hue) - filename = filename.downcase - if $game_switches[160] && filename.start_with?("niko") - filename.gsub!(/niko/, "en") - end - self.load_bitmap("Graphics/Characters/", filename, hue) + filename = filename.downcase + if $game_switches[160] && filename.start_with?("niko") + filename.gsub!(/niko/, "en") + end + self.load_bitmap("Graphics/Characters/", filename, hue) end def self.face(filename) - filename = filename.downcase - if (CTime.month == 4 && CTime.day == 1 && filename.start_with?("niko")) or Settings[:enforce_april_fools] - filename = "af" - end - if $game_switches[160] && filename.start_with?("niko") - filename.gsub!(/niko/, "en") - end + filename = filename.downcase + if (CTime.month == 4 && CTime.day == 1 && filename.start_with?("niko")) or Settings[:enforce_april_fools] + filename = "af" + end + if $game_switches[160] && filename.start_with?("niko") + filename.gsub!(/niko/, "en") + end self.load_bitmap("Graphics/Faces/", filename) end def self.menu(filename) diff --git a/scripts/Game_Character_3.rb b/scripts/Game_Character_3.rb index 57fbbd8..af6db5f 100644 --- a/scripts/Game_Character_3.rb +++ b/scripts/Game_Character_3.rb @@ -494,7 +494,7 @@ class Game_Character #-------------------------------------------------------------------------- def emit_footprint(direction) if $game_map.counter?(@x, @y) && !$game_switches[101] && !$game_switches[111] - $scene.new_footprint(direction, @x, @y) + $scene.new_footprint(direction, @x, @y, @character_name) end end def emit_footsplash(direction) diff --git a/scripts/Scene_Map.rb b/scripts/Scene_Map.rb index 4f1bc53..68858c3 100644 --- a/scripts/Scene_Map.rb +++ b/scripts/Scene_Map.rb @@ -423,9 +423,9 @@ class Scene_Map #-------------------------------------------------------------------------- # * Misc operations #-------------------------------------------------------------------------- - def new_footprint(direction, x, y) + def new_footprint(direction, x, y, character_name) if @spriteset != nil - @spriteset.new_footprint(direction, x, y) + @spriteset.new_footprint(direction, x, y, character_name) end end def new_footsplash(direction, x, y) diff --git a/scripts/Sprite_Footprint.rb b/scripts/Sprite_Footprint.rb index 43727f2..e847ffc 100644 --- a/scripts/Sprite_Footprint.rb +++ b/scripts/Sprite_Footprint.rb @@ -1,5 +1,5 @@ class Sprite_Footprint < Sprite - def initialize(viewport, direction, x, y) + def initialize(viewport, direction, x, y, character_name) super(viewport) @direction = direction @real_x = x * 4 * 32 @@ -11,6 +11,8 @@ class Sprite_Footprint < Sprite self.oy = 16 self.bitmap = RPG::Cache.misc('footprints') self.src_rect.set(0, 16 * (direction / 2 - 1), 16, 16) + + self.shader = character_name.start_with?("en") || (character_name.start_with?("niko") && $game_switches[160]) ? Shader::WorldMachine : Shader::Sprite update end diff --git a/scripts/Spriteset_Map.rb b/scripts/Spriteset_Map.rb index 17c746d..d2d7862 100644 --- a/scripts/Spriteset_Map.rb +++ b/scripts/Spriteset_Map.rb @@ -383,8 +383,8 @@ class Spriteset_Map #-------------------------------------------------------------------------- # * Misc operations #-------------------------------------------------------------------------- - def new_footprint(direction, x, y) - @footprint_sprites << Sprite_Footprint.new(@viewport, direction, x, y) + def new_footprint(direction, x, y, character_name) + @footprint_sprites << Sprite_Footprint.new(@viewport, direction, x, y, character_name) end def new_maptext(text, x, y) @footprint_sprites << Sprite_MapText.new(@viewport, text, x, y)