From b49d9fb8cf1a8f3d4639120b4454edf30502afeb Mon Sep 17 00:00:00 2001 From: mshirt Date: Sun, 31 Mar 2019 02:06:02 -0700 Subject: [PATCH] Adding april fools changes back in I guess I never committed these last year --- scripts/RPG.rb | 7 +++++++ scripts/Window_Message.rb | 10 +++++++++- 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/scripts/RPG.rb b/scripts/RPG.rb index 33a6724..3d79194 100644 --- a/scripts/RPG.rb +++ b/scripts/RPG.rb @@ -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 diff --git a/scripts/Window_Message.rb b/scripts/Window_Message.rb index ded48d9..83a7b4b 100644 --- a/scripts/Window_Message.rb +++ b/scripts/Window_Message.rb @@ -383,7 +383,15 @@ class Window_Message < Window_Selectable @text_pause -= 1 else if @blip >= BLIP_TIME - Audio.se_play("Audio/SE/#{@blipsound}.wav", 50) unless @text.empty? + #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