From c37867b8ef1a100bac3e86e7ce50a732c559f03b Mon Sep 17 00:00:00 2001 From: Mathew Velasquez Date: Mon, 7 Mar 2016 20:13:26 -0500 Subject: [PATCH] Empty player name for GDC --- scripts/Game_Oneshot.rb | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/scripts/Game_Oneshot.rb b/scripts/Game_Oneshot.rb index c997ecd..a2dd2fa 100644 --- a/scripts/Game_Oneshot.rb +++ b/scripts/Game_Oneshot.rb @@ -6,11 +6,15 @@ class Game_Oneshot attr_accessor :plight_timer # start of plight's plight def initialize - user_name = (Steam.enabled? ? Steam::USER_NAME : Oneshot::USER_NAME).split(/\s+/) - if user_name[0].casecmp('the') == 0 || user_name[0].casecmp('a') == 0 - @player_name = user_name.join(' ') + if $GDC + @player_name = '' else - @player_name = user_name[0] + user_name = (Steam.enabled? ? Steam::USER_NAME : Oneshot::USER_NAME).split(/\s+/) + if user_name[0].casecmp('the') == 0 || user_name[0].casecmp('a') == 0 + @player_name = user_name.join(' ') + else + @player_name = user_name[0] + end end @lights = {} @plight_timer = nil