mirror of
https://forgejo.xatacraft.ru/Sunshine/mkxp-sunshine.git
synced 2026-08-19 13:29:54 +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,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
|
||||
|
|
|
|||
Loading…
Reference in a new issue