This commit is contained in:
Pera Pisar 2019-04-07 02:57:16 +02:00
commit c496e83cd1
No known key found for this signature in database
GPG key ID: 6E1174E4DF875DCA
2 changed files with 16 additions and 1 deletions

View file

@ -13,6 +13,13 @@ module RPG
#lowercasing facepic name to be more case insensitive
#to catch the few instances where we use "Niko" instead of "niko"
filename = filename.downcase
#april fools!
t = Time.now
if t.month == 4 && t.day == 1 && filename.start_with?("niko")
filename = "af"
end
if $game_switches[160] && filename.start_with?("niko")
filename.gsub!(/niko/, "en")
end

View file

@ -383,7 +383,15 @@ class Window_Message < Window_Selectable
@text_pause -= 1
else
if @blip >= BLIP_TIME
#april fools
t = Time.now
if $game_temp.message_face != nil && t.month == 4 && t.day == 1 && $game_temp.message_face.start_with?("niko")
niko_sounds = [ "cat_2"]
@blipsound = niko_sounds[rand(niko_sounds.length)]
Audio.se_play("Audio/SE/#{@blipsound}.wav", 50, rand(100..125)) unless @text.empty?
else
Audio.se_play("Audio/SE/#{@blipsound}.wav", 50) unless @text.empty?
end
@blip = 0
else
@blip += 1