Changing niko sprites to en sprites if on "..." replay

This commit is contained in:
mshirt 2017-04-22 10:26:33 -07:00
parent e48fb2660e
commit 84b0314e4d
2 changed files with 19 additions and 2 deletions

View file

@ -2,7 +2,16 @@
module RPG
module Cache
def self.character(filename, hue)
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)
if $game_switches[160] && filename.start_with?("niko")
filename.gsub!(/niko/, "en")
end
self.load_bitmap("Graphics/Faces/", filename)
end
def self.menu(filename)

View file

@ -159,9 +159,13 @@ class Window_Message < Window_Selectable
# Blit face graphic
if $game_temp.message_face != nil
if $game_player.character_name == "niko_gasmask" || $game_player.character_name == "niko_bulb_gasmask"
if $game_player.character_name == "niko_gasmask" || $game_player.character_name == "niko_bulb_gasmask" \
|| $game_player.character_name == "en_gasmask" || $game_player.character_name == "en_bulb_gasmask"
if $game_temp.message_face.start_with?("niko")
$game_temp.message_face = "niko_gasmask"
end
if $game_temp.message_face.start_with?("en")
$game_temp.message_face = "en_gasmask"
end
end
face = RPG::Cache.face($game_temp.message_face)
@ -236,9 +240,13 @@ class Window_Message < Window_Selectable
end
self.contents.fill_rect(self.contents.width - 96, 0, 96, 96, Color.new(0,0,0,0))
$game_temp.message_face = face_name
if $game_player.character_name == "niko_gasmask" || $game_player.character_name == "niko_bulb_gasmask"
if $game_player.character_name == "niko_gasmask" || $game_player.character_name == "niko_bulb_gasmask" \
|| $game_player.character_name == "en_gasmask" || $game_player.character_name == "en_bulb_gasmask"
if $game_temp.message_face.start_with?("niko")
$game_temp.message_face = "niko_gasmask"
end
if $game_temp.message_face.start_with?("en")
$game_temp.message_face = "en_gasmask"
end
end
face = RPG::Cache.face($game_temp.message_face)