#XPW[s
label	work
window_close
#------------------------------------------------------------------------------
#  t[̓ǂݍ
#------------------------------------------------------------------------------
l_work		=	60

add_kenkou	=	0
add_kiryoku	=	0
add_karada	=	0
add_atama	=	0
add_kokoro	=	0
add_money	=	0

if schedule_chara=1 then @mikan_schedule_paramset
if schedule_chara=2 then @ichigo_schedule_paramset
if schedule_chara=3 then @karin_schedule_paramset

##layerLoad		l_work,	"schedule\com_frame.png"
##layerPosition	l_work,16,90

if command=10 then goto schedule_study1
if command=11 then goto schedule_study2
if command=12 then goto schedule_study3
if command=13 then goto schedule_study4

if command=20 then goto schedule_work1
if command=21 then goto schedule_work2
if command=22 then goto schedule_work3
if command=23 then goto schedule_work4

if command=30 then goto schedule_reception1
if command=31 then goto schedule_reception2
if command=32 then goto schedule_reception3
if command=33 then goto schedule_reception4

if command=40 then goto schedule_rest1
if command=41 then goto schedule_rest2

if command=50 then goto schedule_lesson1
if command=51 then goto schedule_lesson2
if command=52 then goto schedule_lesson3
if command=53 then goto schedule_lesson4

if command=90 then goto schedule_down

#ɂĂ͂Ȃ
goto	scheduke_skip


#------------------------------------------------------------------------------
#  ׋(₳)
#------------------------------------------------------------------------------
label	schedule_study1

if schedule_chara=1 then @mikan_study1_load
if schedule_chara=2 then @ichigo_study1_load
if schedule_chara=3 then @karin_study1_load

@work_rnd1
add_kenkou=study1_kenkou+rnd
@work_rnd1
add_kiryoku=study1_kiryoku+rnd

@work_rnd1
add_atama=study1_atama+rnd
@work_rnd1
add_karada=study1_karada+rnd

goto	scheduke_skip

#------------------------------------------------------------------------------
#  ׋()
#------------------------------------------------------------------------------
label	schedule_study2

if schedule_chara=1 then @mikan_study2_load
if schedule_chara=2 then @ichigo_study2_load
if schedule_chara=3 then @karin_study2_load

@work_rnd1
add_kenkou=study2_kenkou+rnd
@work_rnd1
add_kiryoku=study2_kiryoku+rnd

@work_rnd1
add_atama=study2_atama+rnd
@work_rnd1
add_karada=study2_karada+rnd


goto	scheduke_skip

#------------------------------------------------------------------------------
#  ׋()
#------------------------------------------------------------------------------
label	schedule_study3

if schedule_chara=1 then @mikan_study3_load
if schedule_chara=2 then @ichigo_study3_load
if schedule_chara=3 then @karin_study3_load

@work_rnd1
add_kenkou=study3_kenkou+rnd
@work_rnd1
add_kiryoku=study3_kiryoku+rnd

@work_rnd1
add_atama=study3_atama+rnd
@work_rnd1
add_karada=study3_karada+rnd

goto	scheduke_skip

#------------------------------------------------------------------------------
#  ׋(Xp^)
#------------------------------------------------------------------------------
label	schedule_study4

if schedule_chara=1 then @mikan_study4_load
if schedule_chara=2 then @ichigo_study4_load
if schedule_chara=3 then @karin_study4_load

@work_rnd1
add_kenkou=study4_kenkou+rnd
@work_rnd1
add_kiryoku=study4_kiryoku+rnd

@work_rnd1
add_atama=study4_atama+rnd
@work_rnd1
add_karada=study4_karada+rnd

goto	scheduke_skip

#------------------------------------------------------------------------------
#  Chi
#------------------------------------------------------------------------------
label	schedule_work1

if schedule_chara=1 then @mikan_work1_load
if schedule_chara=2 then @ichigo_work1_load
if schedule_chara=3 then @karin_work1_load

@work_rnd1
add_kenkou=work1_kenkou+rnd
@work_rnd1
add_kiryoku=work1_kiryoku+rnd

@work_rnd1
add_atama=work1_atama+rnd
@work_rnd1
add_karada=work1_karada+rnd
add_money=work1_price

if schedule_chara=1 then mikan_work1=mikan_work1+1
if schedule_chara=2 then ichigo_work1=ichigo_work1+1
if schedule_chara=3 then karin_work1=karin_work1+1

#͂炭`FbN
if ojisan_count=0 then goto scheduke_skip
add_money=add_money*3
goto	scheduke_skip

#------------------------------------------------------------------------------
#  
#------------------------------------------------------------------------------
label	schedule_work2

if schedule_chara=1 then @mikan_work2_load
if schedule_chara=2 then @ichigo_work2_load
if schedule_chara=3 then @karin_work2_load

@work_rnd1
add_kenkou=work2_kenkou+rnd
@work_rnd1
add_kiryoku=work2_kiryoku+rnd

@work_rnd1
add_atama=work2_atama+rnd
@work_rnd1
add_karada=work2_karada+rnd
add_money=work2_price

if schedule_chara=1 then mikan_work2=mikan_work2+1
if schedule_chara=2 then ichigo_work2=ichigo_work2+1
if schedule_chara=3 then karin_work2=karin_work2+1

#͂炭`FbN
if ojisan_count=0 then goto scheduke_skip
add_money=add_money*3
goto	scheduke_skip

#------------------------------------------------------------------------------
#  Chiin[hj
#------------------------------------------------------------------------------
label	schedule_work3

if schedule_chara=1 then @mikan_work3_load
if schedule_chara=2 then @ichigo_work3_load
if schedule_chara=3 then @karin_work3_load

@work_rnd1
add_kenkou=work3_kenkou+rnd
@work_rnd1
add_kiryoku=work3_kiryoku+rnd

@work_rnd1
add_atama=work3_atama+rnd
@work_rnd1
add_karada=work3_karada+rnd
add_money=work3_price

if schedule_chara=1 then mikan_work3=mikan_work3+1
if schedule_chara=2 then ichigo_work3=ichigo_work3+1
if schedule_chara=3 then karin_work3=karin_work3+1

#͂炭`FbN
if ojisan_count=0 then goto scheduke_skip
add_money=add_money*3
goto	scheduke_skip

#------------------------------------------------------------------------------
#  ݁in[hj
#------------------------------------------------------------------------------
label	schedule_work4

if schedule_chara=1 then @mikan_work4_load
if schedule_chara=2 then @ichigo_work4_load
if schedule_chara=3 then @karin_work4_load

@work_rnd1
add_kenkou=work4_kenkou+rnd
@work_rnd1
add_kiryoku=work4_kiryoku+rnd

@work_rnd1
add_atama=work4_atama+rnd
@work_rnd1
add_karada=work4_karada+rnd
add_money=work4_price

if schedule_chara=1 then mikan_work4=mikan_work4+1
if schedule_chara=2 then ichigo_work4=ichigo_work4+1
if schedule_chara=3 then karin_work4=karin_work4+1

#͂炭`FbN
if ojisan_count=0 then goto scheduke_skip
add_money=add_money*3
goto	scheduke_skip


#------------------------------------------------------------------------------
#  
#------------------------------------------------------------------------------
label	schedule_reception1

if schedule_chara=1 then @mikan_reception1_load
if schedule_chara=2 then @ichigo_reception1_load
if schedule_chara=3 then @karin_reception1_load

@work_rnd1
add_kenkou=reception1_kenkou+rnd
@work_rnd1
add_kiryoku=reception1_kiryoku+rnd

temp=miryoku/100
add_money=reception1_price*temp			#ڑ҂̕V

if schedule_chara=1 then mikan_reception1_cnt=mikan_reception1_cnt+1
if schedule_chara=2 then ichigo_reception1_cnt=ichigo_reception1_cnt+1
if schedule_chara=3 then karin_reception1_cnt=karin_reception1_cnt+1

goto	scheduke_skip

#------------------------------------------------------------------------------
#  d
#------------------------------------------------------------------------------
label	schedule_reception2

if schedule_chara=1 then @mikan_reception2_load
if schedule_chara=2 then @ichigo_reception2_load
if schedule_chara=3 then @karin_reception2_load

@work_rnd1
add_kenkou=reception2_kenkou+rnd
@work_rnd1
add_kiryoku=reception2_kiryoku+rnd

temp=miryoku/100
add_money=reception2_price*temp			#ڑ҂̕V

if schedule_chara=1 then mikan_reception2_cnt=mikan_reception2_cnt+1
if schedule_chara=2 then ichigo_reception2_cnt=ichigo_reception2_cnt+1
if schedule_chara=3 then karin_reception2_cnt=karin_reception2_cnt+1

goto	scheduke_skip

#------------------------------------------------------------------------------
#  t
#------------------------------------------------------------------------------
label	schedule_reception3

if schedule_chara=1 then @mikan_reception3_load
if schedule_chara=2 then @ichigo_reception3_load
if schedule_chara=3 then @karin_reception3_load

@work_rnd1
add_kenkou=reception3_kenkou+rnd
@work_rnd1
add_kiryoku=reception3_kiryoku+rnd

temp=miryoku/100
add_money=reception3_price*temp			#ڑ҂̕V

if schedule_chara=1 then mikan_reception3_cnt=mikan_reception3_cnt+1
if schedule_chara=2 then ichigo_reception3_cnt=ichigo_reception3_cnt+1
if schedule_chara=3 then karin_reception3_cnt=karin_reception3_cnt+1

goto	scheduke_skip

#------------------------------------------------------------------------------
#  rl
#------------------------------------------------------------------------------
label	schedule_reception4

if schedule_chara=1 then @mikan_reception4_load
if schedule_chara=2 then @ichigo_reception4_load
if schedule_chara=3 then @karin_reception4_load

@work_rnd1
add_kenkou=reception4_kenkou+rnd
@work_rnd1
add_kiryoku=reception4_kiryoku+rnd

temp=miryoku/100
add_money=reception4_price*temp			#ڑ҂̕V

if schedule_chara=1 then mikan_reception4_cnt=mikan_reception4_cnt+1
if schedule_chara=2 then ichigo_reception4_cnt=ichigo_reception4_cnt+1
if schedule_chara=3 then karin_reception4_cnt=karin_reception4_cnt+1

goto	scheduke_skip

#------------------------------------------------------------------------------
#  ₷
#------------------------------------------------------------------------------
label	schedule_rest1

if schedule_chara=1 then @mikan_rest1_load
if schedule_chara=2 then @ichigo_rest1_load
if schedule_chara=3 then @karin_rest1_load

add_kenkou=kenkou_max/10
add_kiryoku=kiryoku_max/10

goto	scheduke_skip
#------------------------------------------------------------------------------
#  oJX
#------------------------------------------------------------------------------
label	schedule_rest2

if schedule_chara=1 then @mikan_rest2_load
if schedule_chara=2 then @ichigo_rest2_load
if schedule_chara=3 then @karin_rest2_load

add_kenkou=kenkou_max/3
add_kiryoku=kiryoku_max/3

add_money=_MONEY/30*-1

goto	scheduke_skip


#------------------------------------------------------------------------------
#  K
#------------------------------------------------------------------------------
label	schedule_lesson1

if schedule_chara=1 then @mikan_lesson1_load
if schedule_chara=2 then @ichigo_lesson1_load
if schedule_chara=3 then @karin_lesson1_load

@work_rnd1
add_kenkou=lesson1_kenkou+rnd
@work_rnd1
add_kiryoku=lesson1_kiryoku+rnd
@work_rnd1
add_karada=lesson1_karada+rnd
@work_rnd1
add_kokoro=lesson1_kokoro+rnd
add_money=lesson1_price

goto	scheduke_skip
#------------------------------------------------------------------------------
#  oG
#------------------------------------------------------------------------------
label	schedule_lesson2

if schedule_chara=1 then @mikan_lesson2_load
if schedule_chara=2 then @ichigo_lesson2_load
if schedule_chara=3 then @karin_lesson2_load



@work_rnd1
add_kenkou=lesson2_kenkou+rnd
@work_rnd1
add_kiryoku=lesson2_kiryoku+rnd
@work_rnd1
add_karada=lesson2_karada+rnd
@work_rnd1
add_kokoro=lesson2_kokoro+rnd
add_money=lesson2_price

goto	scheduke_skip
#------------------------------------------------------------------------------
#  Kin[hj
#------------------------------------------------------------------------------
label	schedule_lesson3

if schedule_chara=1 then @mikan_lesson3_load
if schedule_chara=2 then @ichigo_lesson3_load
if schedule_chara=3 then @karin_lesson3_load



@work_rnd1
add_kenkou=lesson3_kenkou+rnd
@work_rnd1
add_kiryoku=lesson3_kiryoku+rnd
@work_rnd1
add_karada=lesson3_karada+rnd
@work_rnd1
add_kokoro=lesson3_kokoro+rnd
add_money=lesson3_price


goto	scheduke_skip
#------------------------------------------------------------------------------
#  oGin[hj
#------------------------------------------------------------------------------
label	schedule_lesson4

if schedule_chara=1 then @mikan_lesson4_load
if schedule_chara=2 then @ichigo_lesson4_load
if schedule_chara=3 then @karin_lesson4_load


@work_rnd1
add_kenkou=lesson4_kenkou+rnd
@work_rnd1
add_kiryoku=lesson4_kiryoku+rnd
@work_rnd1
add_karada=lesson4_karada+rnd
@work_rnd1
add_kokoro=lesson4_kokoro+rnd
add_money=lesson4_price


goto	scheduke_skip


#------------------------------------------------------------------------------
#  aC
#------------------------------------------------------------------------------
label	schedule_down

if schedule_chara=1 then @mikan_sick_load
if schedule_chara=2 then @ichigo_sick_load
if schedule_chara=3 then @karin_sick_load

add_kenkou=kenkou_max/20
add_kiryoku=kiryoku_max/20
add_karada=-karada_max/50
add_kokoro=-kokoro_max/50
add_atama=-amata_max/50

goto	scheduke_skip


#------------------------------------------------------------------------------
#  Z
#------------------------------------------------------------------------------
label	scheduke_skip
##layer_move		l_work,400,-200,0,0,0,passtype_tcb
##layer_alpha		l_work,400,-255,0,passtype_tcb
##layer_alpha		l_work-1,400,-255,0,passtype_tcb
layerPosition	l_work-1,-500,300
layerMove	l_work-1,60,500,300
wait	30

#͂炭JEg
if ojisan_count>0 then ojisan_count=ojisan_count-1

# p[^̉Z ##########################################################
for imikan=0 to 2
	#񂱂
	kenkou	=	kenkou+add_kenkou*kenkou_hosei
	#傭
	kiryoku	=	kiryoku+add_kiryoku*kiryoku_hosei
	rand	rnd,0,kiryoku_max
	#x݂̏ꍇ~XȂ
	if command=40 or command=90 then rnd=0
	if rnd>kiryoku*2 then goto schedule_work_miss
	if _MONEY+add_money<0 then goto schedule_work_miss2
	#-----------------------------------------------------------
	#
	atama	=	atama+add_atama*atama_hosei
	#炾
	karada	=	karada+add_karada*karada_hosei
	#
	kokoro	=	kokoro+add_kokoro*kokoro_hosei
	#p[^͈̓`FbN
	#
	money_add 	add_money*money_hosei
	goto	schedule_work_skip
label	schedule_work_miss2
	layerLoad	l_work+2,"parts\schedule\nomoney.png",300,200
	##layer_reference_set	l_work+2,l_work
	#
	money_add 	add_money*money_hosei
	if schedule_chara=1 then voice	"A03136"
	if schedule_chara=2 then voice	"O00085sys"
	if schedule_chara=3 then voice	"P01883sys"
	se	"parts\schedule\s.wav"
	goto	schedule_work_skip

label	schedule_work_miss
	#s-----------------------------------------------------------
	if schedule_chara=1 then voice	"A03136"
	if schedule_chara=2 then voice	"O00085sys"
	if schedule_chara=3 then voice	"P01883sys"
	se	"parts\schedule\s.wav"
	money_add 	add_money*money_hosei/2
	goto	schedule_work_skip
label	schedule_work_skip
	lifebar_setauto		life_kiryoku,kiryoku
	lifebar_setauto		life_kenkou,kenkou
	lifebar_setauto		life_kokoro,kokoro
	lifebar_setauto		life_atama,atama
	lifebar_setauto		life_karada,karada

	if schedule_chara=1 then @mikan_schedule_paramget
	if schedule_chara=2 then @ichigo_schedule_paramget
	if schedule_chara=3 then @karin_schedule_paramget

	if schedule_chara=1 then @mikan_check
	if schedule_chara=2 then @ichigo_check
	if schedule_chara=3 then @karin_check

	if schedule_chara=1 then @mikan_schedule_paramset
	if schedule_chara=2 then @ichigo_schedule_paramset
	if schedule_chara=3 then @karin_schedule_paramset

	lifebar_setauto		life_kiryoku,kiryoku
	lifebar_setauto		life_kenkou,kenkou
	lifebar_setauto		life_kokoro,kokoro
	lifebar_setauto		life_atama,atama
	lifebar_setauto		life_karada,karada
	
	waitms		700
	layerfadeout	l_work+2,30
	
next							#JԂ


#Abv`FbN 
if schedule_chara=1 then @mikan_work_check
if schedule_chara=2 then @ichigo_work_check
if schedule_chara=3 then @karin_work_check


#IGtFNg

#layerLoad		l_work+1,"parts\schedule\study_ok.png"
#layerPosition	l_work+1,90,16
#layer_reference_set	l_work+1,l_work
#layer_scale		l_work+1,200,40,40,0,0,passtype_tcb
#layer_alpha		l_work+1,200,-255,0,passtype_tcb
waitms		200
#screen_effect_stardust	140,110,230,250
waitms		300

##layer_move		l_work,400,0,0,200,0,passtype_tcb
layerFadeout	l_work-1,60
##layer_alpha		l_work+1,400,0,-255,passtype_tcb
##layer_alpha		l_work,400,0,-255,passtype_tcb
##layer_alpha		l_work-1,400,0,-255,passtype_tcb
layerFadeout		l_work+2,60
layerFadeout		l_work+1,60
layerFadeout		l_work,60

layerMove	l_work-1,30,1500,300
wait	60

## waitms		400



return


# random̐ ##############################################################
macro	work_rnd1
	rand	rnd,1,4
	rnd=rnd-2
endm



# ݂摜ǂݍݗp #######################################################
# ݂׋(₳) -------------------------------------------------------
macro	mikan_study1_load
layerLoad		l_work-1,"parts\schedule\mikan\study1.atlas"
layerAnimation	l_work-1,"animation"
endm
# ݂׋()------------------------------------------------------------
macro	mikan_study2_load
layerLoad		l_work-1,"parts\schedule\mikan\study2.atlas"
layerAnimation	l_work-1,"animation"
endm
# ݂׋()----------------------------------------------------------
macro	mikan_study3_load
layerLoad		l_work-1,"parts\schedule\mikan\study3.atlas"
layerAnimation	l_work-1,"animation"
endm
# ݂׋(Xp^)--------------------------------------------------------
macro	mikan_study4_load
layerLoad		l_work-1,"parts\schedule\mikan\study4.atlas"
layerAnimation	l_work-1,"animation"
endm

# Chi------------------------------------------------------------------
macro	mikan_work1_load
layerLoad		l_work-1,"parts\schedule\mikan\part1.atlas"
layerAnimation	l_work-1,"animation"
endm
# -------------------------------------------------------------------
macro	mikan_work2_load
layerLoad		l_work-1,"parts\schedule\mikan\part2.atlas"
layerAnimation	l_work-1,"animation"
endm
# Chi(n[h)----------------------------------------------------------
macro	mikan_work3_load
layerLoad		l_work-1,"parts\schedule\mikan\part3.atlas"
layerAnimation	l_work-1,"animation"
endm
# (n[h)------------------------------------------------------------
macro	mikan_work4_load
layerLoad		l_work-1,"parts\schedule\mikan\part4.atlas"
layerAnimation	l_work-1,"animation"
endm

# -------------------------------------------------------------------
macro	mikan_reception1_load
layerLoad		l_work-1,"parts\schedule\mikan\reception1.atlas"
layerAnimation	l_work-1,"animation"
endm
# d-----------------------------------------------------------------------
macro	mikan_reception2_load
layerLoad		l_work-1,"parts\schedule\mikan\reception2.atlas"
layerAnimation	l_work-1,"animation"
endm
# t ----------------------------------------------------------------------
macro	mikan_reception3_load
layerLoad		l_work-1,"parts\schedule\mikan\reception3.atlas"
layerAnimation	l_work-1,"animation"
endm
# SM-------------------------------------------------------------------------
macro	mikan_reception4_load
layerLoad		l_work-1,"parts\schedule\mikan\reception4.atlas"
layerAnimation	l_work-1,"animation"
endm

#x ---------------------------------------------------------------------
macro	mikan_rest1_load
layerLoad		l_work-1,"parts\schedule\mikan\rest1.atlas"
layerAnimation	l_work-1,"animation"
endm
#oJX -------------------------------------------------------------------
macro	mikan_rest2_load
layerLoad		l_work-1,"parts\schedule\mikan\rest2.atlas"
layerAnimation	l_work-1,"animation"
endm

#K---------------------------------------------------------------------
macro	mikan_lesson1_load
layerLoad		l_work-1,"parts\schedule\mikan\lesson1.atlas"
layerAnimation	l_work-1,"animation"
endm
#oG---------------------------------------------------------------------
macro	mikan_lesson2_load
layerLoad		l_work-1,"parts\schedule\mikan\lesson2.atlas"
layerAnimation	l_work-1,"animation"
endm
#K---------------------------------------------------------------------
macro	mikan_lesson3_load
layerLoad		l_work-1,"parts\schedule\mikan\lesson3.atlas"
layerAnimation	l_work-1,"animation"
endm
#oG---------------------------------------------------------------------
macro	mikan_lesson4_load
layerLoad		l_work-1,"parts\schedule\mikan\lesson4.atlas"
layerAnimation	l_work-1,"animation"
endm

#aC---------------------------------------------------------------------
macro	mikan_sick_load
layerLoad		l_work-1,"parts\schedule\mikan\byouki.atlas"
layerAnimation	l_work-1,"animation"
endm

# 摜ǂݍݗp #######################################################
# ׋(₳) -------------------------------------------------------
macro	ichigo_study1_load
layerLoad		l_work-1,"parts\schedule\ichigo\study1.atlas"
layerAnimation	l_work-1,"animation"
endm
# ׋()------------------------------------------------------------
macro	ichigo_study2_load
layerLoad		l_work-1,"parts\schedule\ichigo\study2.atlas"
layerAnimation	l_work-1,"animation"
endm
# ׋()----------------------------------------------------------
macro	ichigo_study3_load
layerLoad		l_work-1,"parts\schedule\ichigo\study3.atlas"
layerAnimation	l_work-1,"animation"
endm
# ׋(Xp^)--------------------------------------------------------
macro	ichigo_study4_load
layerLoad		l_work-1,"parts\schedule\ichigo\study4.atlas"
layerAnimation	l_work-1,"animation"
endm

# Chi------------------------------------------------------------------
macro	ichigo_work1_load
layerLoad		l_work-1,"parts\schedule\ichigo\part1.atlas"
layerAnimation	l_work-1,"animation"
endm
# -------------------------------------------------------------------
macro	ichigo_work2_load
layerLoad		l_work-1,"parts\schedule\ichigo\part2.atlas"
layerAnimation	l_work-1,"animation"
endm
# Chi(n[h)----------------------------------------------------------
macro	ichigo_work3_load
layerLoad		l_work-1,"parts\schedule\ichigo\part3.atlas"
layerAnimation	l_work-1,"animation"
endm
# (n[h)------------------------------------------------------------
macro	ichigo_work4_load
layerLoad		l_work-1,"parts\schedule\ichigo\part4.atlas"
layerAnimation	l_work-1,"animation"
endm

# -------------------------------------------------------------------
macro	ichigo_reception1_load
layerLoad		l_work-1,"parts\schedule\ichigo\reception1.atlas"
layerAnimation	l_work-1,"animation"
endm
# d-----------------------------------------------------------------------
macro	ichigo_reception2_load
layerLoad		l_work-1,"parts\schedule\ichigo\reception2.atlas"
layerAnimation	l_work-1,"animation"
endm
# t ----------------------------------------------------------------------
macro	ichigo_reception3_load
layerLoad		l_work-1,"parts\schedule\ichigo\reception3.atlas"
layerAnimation	l_work-1,"animation"
endm
# SM-------------------------------------------------------------------------
macro	ichigo_reception4_load
layerLoad		l_work-1,"parts\schedule\ichigo\reception4.atlas"
layerAnimation	l_work-1,"animation"
endm

#x ---------------------------------------------------------------------
macro	ichigo_rest1_load
layerLoad		l_work-1,"parts\schedule\ichigo\rest1.atlas"
layerAnimation	l_work-1,"animation"
endm
#oJX -------------------------------------------------------------------
macro	ichigo_rest2_load
layerLoad		l_work-1,"parts\schedule\ichigo\rest2.atlas"
layerAnimation	l_work-1,"animation"
endm

#K---------------------------------------------------------------------
macro	ichigo_lesson1_load
layerLoad		l_work-1,"parts\schedule\ichigo\lesson1.atlas"
layerAnimation	l_work-1,"animation"
endm
#oG---------------------------------------------------------------------
macro	ichigo_lesson2_load
layerLoad		l_work-1,"parts\schedule\ichigo\lesson2.atlas"
layerAnimation	l_work-1,"animation"
endm
#K---------------------------------------------------------------------
macro	ichigo_lesson3_load
layerLoad		l_work-1,"parts\schedule\ichigo\lesson3.atlas"
layerAnimation	l_work-1,"animation"
endm
#oG---------------------------------------------------------------------
macro	ichigo_lesson4_load
layerLoad		l_work-1,"parts\schedule\ichigo\lesson4.atlas"
layerAnimation	l_work-1,"animation"
endm

#aC---------------------------------------------------------------------
macro	ichigo_sick_load
layerLoad		l_work-1,"parts\schedule\ichigo\byouki.atlas"
layerAnimation	l_work-1,"animation"
endm

# 摜ǂݍݗp #######################################################
# ׋(₳) -------------------------------------------------------
macro	karin_study1_load
layerLoad		l_work-1,"parts\schedule\karin\study1.atlas"
layerAnimation	l_work-1,"animation"
endm
# ׋()------------------------------------------------------------
macro	karin_study2_load
layerLoad		l_work-1,"parts\schedule\karin\study2.atlas"
layerAnimation	l_work-1,"animation"
endm
# ׋()----------------------------------------------------------
macro	karin_study3_load
layerLoad		l_work-1,"parts\schedule\karin\study3.atlas"
layerAnimation	l_work-1,"animation"
endm
# ׋(Xp^)--------------------------------------------------------
macro	karin_study4_load
layerLoad		l_work-1,"parts\schedule\karin\study4.atlas"
layerAnimation	l_work-1,"animation"
endm

# Chi------------------------------------------------------------------
macro	karin_work1_load
layerLoad		l_work-1,"parts\schedule\karin\part1.atlas"
layerAnimation	l_work-1,"animation"
endm
# -------------------------------------------------------------------
macro	karin_work2_load
layerLoad		l_work-1,"parts\schedule\karin\part2.atlas"
layerAnimation	l_work-1,"animation"
endm
# Chi(n[h)----------------------------------------------------------
macro	karin_work3_load
layerLoad		l_work-1,"parts\schedule\karin\part3.atlas"
layerAnimation	l_work-1,"animation"
endm
# (n[h)------------------------------------------------------------
macro	karin_work4_load
layerLoad		l_work-1,"parts\schedule\karin\part4.atlas"
layerAnimation	l_work-1,"animation"
endm

# -------------------------------------------------------------------
macro	karin_reception1_load
layerLoad		l_work-1,"parts\schedule\karin\reception1.atlas"
layerAnimation	l_work-1,"animation"
endm
# d-----------------------------------------------------------------------
macro	karin_reception2_load
layerLoad		l_work-1,"parts\schedule\karin\reception2.atlas"
layerAnimation	l_work-1,"animation"
endm
# t ----------------------------------------------------------------------
macro	karin_reception3_load
layerLoad		l_work-1,"parts\schedule\karin\reception3.atlas"
layerAnimation	l_work-1,"animation"
endm
# SM-------------------------------------------------------------------------
macro	karin_reception4_load
layerLoad		l_work-1,"parts\schedule\karin\reception4.atlas"
layerAnimation	l_work-1,"animation"
endm

#x ---------------------------------------------------------------------
macro	karin_rest1_load
layerLoad		l_work-1,"parts\schedule\karin\rest1.atlas"
layerAnimation	l_work-1,"animation"
endm
#oJX -------------------------------------------------------------------
macro	karin_rest2_load
layerLoad		l_work-1,"parts\schedule\karin\rest2.atlas"
layerAnimation	l_work-1,"animation"
endm

#K---------------------------------------------------------------------
macro	karin_lesson1_load
layerLoad		l_work-1,"parts\schedule\karin\lesson1.atlas"
layerAnimation	l_work-1,"animation"
endm
#oG---------------------------------------------------------------------
macro	karin_lesson2_load
layerLoad		l_work-1,"parts\schedule\karin\lesson2.atlas"
layerAnimation	l_work-1,"animation"
endm
#K---------------------------------------------------------------------
macro	karin_lesson3_load
layerLoad		l_work-1,"parts\schedule\karin\lesson3.atlas"
layerAnimation	l_work-1,"animation"
endm
#oG---------------------------------------------------------------------
macro	karin_lesson4_load
layerLoad		l_work-1,"parts\schedule\karin\lesson4.atlas"
layerAnimation	l_work-1,"animation"
endm

#aC---------------------------------------------------------------------
macro	karin_sick_load
layerLoad		l_work-1,"parts\schedule\karin\byouki.atlas"
layerAnimation	l_work-1,"animation"
endm

#݂p[^Zbg---------------------------------------------------
macro	mikan_schedule_paramset

	kenkou_max=mikan_kenkou_max
	kiryoku_max=mikan_kiryoku_max
	atama_max=mikan_atama_max
	karada_max=mikan_karada_max
	kokoro_max=mikan_kokoro_max

	kenkou=mikan_kenkou
	kiryoku=mikan_kiryoku
	atama=mikan_atama
	karada=mikan_karada
	kokoro=mikan_kokoro
	@calc_mikan_miryoku
	miryoku=mikan_miryoku

	kenkou_hosei=mikan_kenkou_hosei
	kiryoku_hosei=mikan_kiryoku_hosei
	atama_hosei=mikan_atama_hosei
	karada_hosei=mikan_karada_hosei
	kokoro_hosei=mikan_kokoro_hosei

	money_hosei=mikan_money_hosei
	ojisan_count=mikan_ojisan_count
	work1_price=mikan_work1_price
	work2_price=mikan_work2_price
	work3_price=mikan_work3_price
	work4_price=mikan_work4_price

endm
#Qbg
macro	mikan_schedule_paramget
	mikan_kenkou_max=kenkou_max
	mikan_kiryoku_max=kiryoku_max
	mikan_atama_max=atama_max
	mikan_karada_max=karada_max
	mikan_kokoro_max=kokoro_max

	mikan_kenkou=kenkou
	mikan_kiryoku=kiryoku
	mikan_atama=atama
	mikan_karada=karada
	mikan_kokoro=kokoro

	mikan_kenkou_hosei=kenkou_hosei
	mikan_kiryoku_hosei=kiryoku_hosei
	mikan_atama_hosei=atama_hosei
	mikan_karada_hosei=karada_hosei
	mikan_kokoro_hosei=kokoro_hosei

	mikan_money_hosei=money_hosei
	mikan_ojisan_count=ojisan_count
	mikan_work1_price=work1_price
	mikan_work2_price=work2_price
	mikan_work3_price=work3_price
	mikan_work4_price=work4_price

endm

#p[^Zbg
macro	ichigo_schedule_paramset
	kenkou_max=ichigo_kenkou_max
	kiryoku_max=ichigo_kiryoku_max
	atama_max=ichigo_atama_max
	karada_max=ichigo_karada_max
	kokoro_max=ichigo_kokoro_max

	kenkou=ichigo_kenkou
	kiryoku=ichigo_kiryoku
	atama=ichigo_atama
	karada=ichigo_karada
	kokoro=ichigo_kokoro
	@calc_ichigo_miryoku
	miryoku=ichigo_miryoku

	kenkou_hosei=ichigo_kenkou_hosei
	kiryoku_hosei=ichigo_kiryoku_hosei
	atama_hosei=ichigo_atama_hosei
	karada_hosei=ichigo_karada_hosei
	kokoro_hosei=ichigo_kokoro_hosei

	money_hosei=ichigo_money_hosei
	ojisan_count=ichigo_ojisan_count
	work1_price=ichigo_work1_price
	work2_price=ichigo_work2_price
	work3_price=ichigo_work3_price
	work4_price=ichigo_work4_price
endm

macro	ichigo_schedule_paramget
	ichigo_kenkou_max=kenkou_max
	ichigo_kiryoku_max=kiryoku_max
	ichigo_atama_max=atama_max
	ichigo_karada_max=karada_max
	ichigo_kokoro_max=kokoro_max

	ichigo_kenkou=kenkou
	ichigo_kiryoku=kiryoku
	ichigo_atama=atama
	ichigo_karada=karada
	ichigo_kokoro=kokoro

	ichigo_kenkou_hosei=kenkou_hosei
	ichigo_kiryoku_hosei=kiryoku_hosei
	ichigo_atama_hosei=atama_hosei
	ichigo_karada_hosei=karada_hosei
	ichigo_kokoro_hosei=kokoro_hosei

	ichigo_money_hosei=money_hosei
	ichigo_ojisan_count=ojisan_count
	ichigo_work1_price=work1_price
	ichigo_work2_price=work2_price
	ichigo_work3_price=work3_price
	ichigo_work4_price=work4_price
endm

#p[^Zbg
macro	karin_schedule_paramset
	kenkou_max=karin_kenkou_max
	kiryoku_max=karin_kiryoku_max
	atama_max=karin_atama_max
	karada_max=karin_karada_max
	kokoro_max=karin_kokoro_max
	@calc_karin_miryoku
	miryoku=karin_miryoku

	kenkou=karin_kenkou
	kiryoku=karin_kiryoku
	atama=karin_atama
	karada=karin_karada
	kokoro=karin_kokoro

	kenkou_hosei=karin_kenkou_hosei
	kiryoku_hosei=karin_kiryoku_hosei
	atama_hosei=karin_atama_hosei
	karada_hosei=karin_karada_hosei
	kokoro_hosei=karin_kokoro_hosei

	money_hosei=karin_money_hosei
	ojisan_count=karin_ojisan_count
	work1_price=karin_work1_price
	work2_price=karin_work2_price
	work3_price=karin_work3_price
	work4_price=karin_work4_price
endm

#p[^Zbg
macro	karin_schedule_paramget
	karin_kenkou_max=kenkou_max
	karin_kiryoku_max=kiryoku_max
	karin_atama_max=atama_max
	karin_karada_max=karada_max
	karin_kokoro_max=kokoro_max

	karin_kenkou=kenkou
	karin_kiryoku=kiryoku
	karin_atama=atama
	karin_karada=karada
	karin_kokoro=kokoro

	karin_kenkou_hosei=kenkou_hosei
	karin_kiryoku_hosei=kiryoku_hosei
	karin_atama_hosei=atama_hosei
	karin_karada_hosei=karada_hosei
	karin_kokoro_hosei=kokoro_hosei

	karin_money_hosei=money_hosei
	karin_ojisan_count=ojisan_count
	karin_work1_price=work1_price
	karin_work2_price=work2_price
	karin_work3_price=work3_price
	karin_work4_price=work4_price
endm

macro	mikan_work_check
	if mikan_work1=mikan_work1_max then gosub mikan_work1_up
	if mikan_work2=mikan_work2_max then gosub mikan_work2_up
	if mikan_work3=mikan_work3_max then gosub mikan_work3_up
	if mikan_work4=mikan_work4_max then gosub mikan_work4_up
endm

macro	ichigo_work_check
	if ichigo_work1=ichigo_work1_max then gosub ichigo_work1_up
	if ichigo_work2=ichigo_work2_max then gosub ichigo_work2_up
	if ichigo_work3=ichigo_work3_max then gosub ichigo_work3_up
	if ichigo_work4=ichigo_work4_max then gosub ichigo_work4_up
endm

macro	karin_work_check
	if karin_work1=karin_work1_max then gosub karin_work1_up
	if karin_work2=karin_work2_max then gosub karin_work2_up
	if karin_work3=karin_work3_max then gosub karin_work3_up
	if karin_work4=karin_work4_max then gosub karin_work4_up
endm


#݂d1@Abv ####################################################
label	mikan_work1_up
voice	"A03847sys"
@status_salaryup
mikan_work1_max=mikan_work1_max+16
mikan_work1_price=mikan_work1_price*1.5
voice	"A02526"
return

#݂d2@Abv ####################################################
label	mikan_work2_up
voice	"A03847sys"
@status_salaryup
mikan_work2_max=mikan_work2_max+16
mikan_work2_price=mikan_work2_price*1.5
voice	"A02526"
return

#݂d3@Abv ####################################################
label	mikan_work3_up
voice	"A03847sys"
@status_salaryup
mikan_work3_max=mikan_work3_max+16
mikan_work3_price=mikan_work3_price*1.5
voice	"A02526"
return

#݂d4@Abv ####################################################
label	mikan_work4_up
voice	"A03847sys"
@status_salaryup
mikan_work4_max=mikan_work4_max+16
mikan_work4_price=mikan_work4_price*1.5
voice	"A02526"
return


#d1@Abv ####################################################
label	ichigo_work1_up
voice	"O03706sys"
@status_salaryup
ichigo_work1_max=ichigo_work1_max+16
ichigo_work1_price=ichigo_work1_price*1.5
voice	"O03712"
return

#d2@Abv ####################################################
label	ichigo_work2_up
voice	"O03706sys"
@status_salaryup
ichigo_work2_max=ichigo_work2_max+16
ichigo_work2_price=ichigo_work2_price*1.5
voice	"O03712"
return

#d3@Abv ####################################################
label	ichigo_work3_up
voice	"O03706sys"
@status_salaryup
ichigo_work3_max=ichigo_work3_max+16
ichigo_work3_price=ichigo_work3_price*1.5
voice	"O03712"
return

#d4@Abv ####################################################
label	ichigo_work4_up
voice	"O03706sys"
@status_salaryup
ichigo_work4_max=ichigo_work4_max+16
ichigo_work4_price=ichigo_work4_price*1.5
voice	"O03712"
return


#d1@Abv ####################################################
label	karin_work1_up
voice	"P03557"
@status_salaryup
karin_work1_max=karin_work1_max+16
karin_work1_price=karin_work1_price*1.5
voice	"P02800sys"
return

#d2@Abv ####################################################
label	karin_work2_up
voice	"P03557"
@status_salaryup
karin_work2_max=karin_work2_max+16
karin_work2_price=karin_work2_price*1.5
voice	"P02800sys"
return

#d3@Abv ####################################################
label	karin_work3_up
voice	"P03557"
@status_salaryup
karin_work3_max=karin_work3_max+16
karin_work3_price=karin_work3_price*1.5
voice	"P02800sys"
return

#d4@Abv ####################################################
label	karin_work4_up
voice	"P03557"
@status_salaryup
karin_work4_max=karin_work4_max+16
karin_work4_price=karin_work4_price*1.5
voice	"P02800sys"
return


