Adding april fools changes back in

I guess I never committed these last year
This commit is contained in:
mshirt 2019-03-31 02:06:02 -07:00
parent c096f6f020
commit b49d9fb8cf
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
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