mirror of
https://forgejo.xatacraft.ru/Sunshine/mkxp-sunshine.git
synced 2026-08-19 13:29:54 +00:00
Changing niko sprites to en sprites if on "..." replay
This commit is contained in:
parent
e48fb2660e
commit
84b0314e4d
2 changed files with 19 additions and 2 deletions
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue