mirror of
https://forgejo.xatacraft.ru/Sunshine/mkxp-sunshine.git
synced 2026-08-19 21:39:57 +00:00
Empty player name for GDC
This commit is contained in:
parent
b8c4a360ce
commit
c37867b8ef
1 changed files with 8 additions and 4 deletions
|
|
@ -6,11 +6,15 @@ class Game_Oneshot
|
||||||
attr_accessor :plight_timer # start of plight's plight
|
attr_accessor :plight_timer # start of plight's plight
|
||||||
|
|
||||||
def initialize
|
def initialize
|
||||||
user_name = (Steam.enabled? ? Steam::USER_NAME : Oneshot::USER_NAME).split(/\s+/)
|
if $GDC
|
||||||
if user_name[0].casecmp('the') == 0 || user_name[0].casecmp('a') == 0
|
@player_name = ''
|
||||||
@player_name = user_name.join(' ')
|
|
||||||
else
|
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
|
end
|
||||||
@lights = {}
|
@lights = {}
|
||||||
@plight_timer = nil
|
@plight_timer = nil
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue