mirror of
https://forgejo.xatacraft.ru/Sunshine/mkxp-sunshine.git
synced 2026-08-19 21:39:57 +00:00
22 lines
736 B
Ruby
22 lines
736 B
Ruby
class Game_Oneshot
|
|
#--------------------------------------------------------------------------
|
|
# * Public Instance Variables
|
|
#--------------------------------------------------------------------------
|
|
attr_accessor :player_name # map music (for battle memory)
|
|
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
|
|
end
|