Empty player name for GDC

This commit is contained in:
Mathew Velasquez 2016-03-07 20:13:26 -05:00
parent b8c4a360ce
commit c37867b8ef

View file

@ -6,12 +6,16 @@ class Game_Oneshot
attr_accessor :plight_timer # start of plight's plight
def initialize
if $GDC
@player_name = ''
else
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
end