code:
;SELF.ERB、노예からの奉仕などのイベント
;-------------------------------------------------
;朝に起こるイベント
;-------------------------------------------------
@EVENT_NEWDAY_SELF
;조교대상が居ない場合は終了
SIF TARGET < 0
	RETURN 0

;朝でない場合は終了
SIF !IS_DAYTIME()
	RETURN 0

;全体判定、陥落素質が無い場合は関数終了
SIF TALENT:3 == 0 && TALENT:4 == 0 && TALENT:5 == 0 && TALENT:6 == 0 && TALENT:7 == 0 && TALENT:8 == 0
	RETURN 0

;주인이 사정ができない場合は関数終了
;SIF TALENT:MASTER:287 == 0 && TALENT:MASTER:289 == 0 && TALENT:MASTER:290 == 0
;	RETURN 0

;붕괴時は関数終了
SIF TALENT:붕괴
	RETURN 0

;스트레스가 一定이상の時は関数終了
SIF CFLAG:10 >= 80
	RETURN 0

;放置日数5日이상、ＮＴＲ進行度2이상で협박ＮＴＲか교제時敗北ＮＴＲの時、確率でＮＴＲ朝フェラ発生
IF CFLAG:122 >= 5 && TALENT:ＮＴＲ >= 2 && (CFLAG:117 == 6 || CFLAG:117 == 8) && RAND:100 >= 80

	CALL SELF_MORNING_1
;モーニングコール判定 & 平日캐릭터も1/3の確率でモーニングコール
ELSEIF FLAG:8 == 1 && (!IS_GO_SAMESCHOOL(TARGET) || (IS_GO_SAMESCHOOL(TARGET) && RAND:3 == 0))
	CALL SELF_MORNING_4
;朝기승위判定（주인이 사정できる場合のみ）
ELSEIF TALENT:0 == 0 && TALENT:1 == 0 && ABL:Ｖ감각 >= 3 && ABL:봉사정신 >= 5 && TALENT:290 == 0 && (TALENT:MASTER:287 == 1 || TALENT:MASTER:289 == 1 || TALENT:MASTER:290 == 1)
	;ＮＴＲ時は関数終了
	SIF TALENT:ＮＴＲ >= 1
		RETURN 0

	CALL SELF_MORNING_3
;朝파이즈리判定（주인이 사정できる場合のみ）
ELSEIF ABL:7 >= 5 && TALENT:240 == 0 && TALENT:290 == 0 && (TALENT:MASTER:287 == 1 || TALENT:MASTER:289 == 1 || TALENT:MASTER:290 == 1)
	;ＮＴＲ時は関数終了
	SIF TALENT:ＮＴＲ >= 1
		RETURN 0

	CALL SELF_MORNING_2
;朝フェラ判定（女주인は朝커닐링구스へ変化）
ELSE
	;ＮＴＲ時は関数終了
	SIF TALENT:ＮＴＲ >= 1
		RETURN 0

	CALL SELF_MORNING_1
ENDIF

;朝フェラ（女주인は朝커닐링구스）
@SELF_MORNING_1
DRAWLINE
TFLAG:13 = 1
CALL KOJO_MESSAGE_EVENT
A = 0

;정액중독
IF ABL:16 == 0  && (TALENT:MASTER:287 == 1 || TALENT:MASTER:289 == 1 || TALENT:MASTER:290 == 1)
	A = 1
ELSEIF ABL:16 == 1 && (TALENT:MASTER:287 == 1 || TALENT:MASTER:289 == 1 || TALENT:MASTER:290 == 1)
	A = 2
ELSEIF ABL:16 == 2 && (TALENT:MASTER:287 == 1 || TALENT:MASTER:289 == 1 || TALENT:MASTER:290 == 1)
	A = 3
ELSEIF ABL:16 == 3 && (TALENT:MASTER:287 == 1 || TALENT:MASTER:289 == 1 || TALENT:MASTER:290 == 1)
	A = 4
ELSEIF ABL:16 == 4 && (TALENT:MASTER:287 == 1 || TALENT:MASTER:289 == 1 || TALENT:MASTER:290 == 1)
	A = 5
ELSEIF ABL:16 == 5 && (TALENT:MASTER:287 == 1 || TALENT:MASTER:289 == 1 || TALENT:MASTER:290 == 1)
	A = 6
ELSEIF ABL:16 == 6 && (TALENT:MASTER:287 == 1 || TALENT:MASTER:289 == 1 || TALENT:MASTER:290 == 1)
	A = 7
ELSEIF ABL:16 == 7 && (TALENT:MASTER:287 == 1 || TALENT:MASTER:289 == 1 || TALENT:MASTER:290 == 1)
	A = 8
ELSEIF ABL:16 == 8 && (TALENT:MASTER:287 == 1 || TALENT:MASTER:289 == 1 || TALENT:MASTER:290 == 1)
	A = 9
ELSEIF ABL:16 == 9 && (TALENT:MASTER:287 == 1 || TALENT:MASTER:289 == 1 || TALENT:MASTER:290 == 1)
	A = 10
ELSEIF ABL:16 >= 10 && (TALENT:MASTER:287 == 1 || TALENT:MASTER:289 == 1 || TALENT:MASTER:290 == 1)
	A = 11
ENDIF

;레즈중독（女주인）
IF ABL:17 == 0 && TALENT:MASTER:290 == 0 && TALENT:TARGET:290 == 0
	A += 1
ELSEIF ABL:17 == 1 && TALENT:MASTER:290 == 0 && TALENT:TARGET:290 == 0
	A += 2
ELSEIF ABL:17 == 2 && TALENT:MASTER:290 == 0 && TALENT:TARGET:290 == 0
	A += 3
ELSEIF ABL:17 == 3 && TALENT:MASTER:290 == 0 && TALENT:TARGET:290 == 0
	A += 4
ELSEIF ABL:17 == 4 && TALENT:MASTER:290 == 0 && TALENT:TARGET:290 == 0
	A += 5
ELSEIF ABL:17 == 5 && TALENT:MASTER:290 == 0 && TALENT:TARGET:290 == 0
	A += 6
ELSEIF ABL:17 == 6 && TALENT:MASTER:290 == 0 && TALENT:TARGET:290 == 0
	A += 7
ELSEIF ABL:17 == 7 && TALENT:MASTER:290 == 0 && TALENT:TARGET:290 == 0
	A += 8
ELSEIF ABL:17 == 8 && TALENT:MASTER:290 == 0 && TALENT:TARGET:290 == 0
	A += 9
ELSEIF ABL:17 == 9 && TALENT:MASTER:290 == 0 && TALENT:TARGET:290 == 0
	A += 10
ELSEIF ABL:17 >= 10 && TALENT:MASTER:290 == 0 && TALENT:TARGET:290 == 0
	A += 11
ENDIF

;정액中毒と레즈중독の恩恵を受けられる후타나리、반인반요あなたは半分に
SIF TALENT:MASTER:287 == 1 || TALENT:MASTER:289 == 1
	A = A/2+1

;호기심
SIF TALENT:호기심
	A += 1
;악취둔감
SIF TALENT:악취둔감
	A += 1
;악취민감
SIF TALENT:악취민감
	A -= 2
;헌신적
SIF TALENT:헌신적
	A += 3
;인간혐오
SIF TALENT:인간혐오
	A -= 3
;보수적
SIF TALENT:보수적
	A -= 2
;결벽성
SIF TALENT:결벽성
	A -= 3
;영구발정
SIF TALENT:영구발정
	A += 5
;거절
SIF TALENT:거절
	A -= 3
;바이
SIF TALENT:바이 && TALENT:MASTER:남자 == 0
	A += 2
;철벽
SIF TALENT:철벽
	A = A/3

SIF A <= 0
	A = 1

LOCAL:0 = A*50

;대상の기교による補正計算

SIF ABL:TARGET:2 == 0
	TIMES LOCAL:0, 1.0
SIF ABL:TARGET:2 == 1
	TIMES LOCAL:0, 1.1
SIF ABL:TARGET:2 == 2
	TIMES LOCAL:0, 1.2
SIF ABL:TARGET:2 == 3
	TIMES LOCAL:0, 1.3
SIF ABL:TARGET:2 == 4
	TIMES LOCAL:0, 1.4
SIF ABL:TARGET:2 == 5
	TIMES LOCAL:0, 1.5
SIF ABL:TARGET:2 == 6
	TIMES LOCAL:0, 1.6
SIF ABL:TARGET:2 == 7
	TIMES LOCAL:0, 1.7
SIF ABL:TARGET:2 == 8
	TIMES LOCAL:0, 1.8
SIF ABL:TARGET:2 == 9
	TIMES LOCAL:0, 1.9
SIF ABL:TARGET:2 == 10
	TIMES LOCAL:0, 2.0

;순종의 구슬의 수
LOCAL:1 = LOCAL:0*3/2
;굴복의 구슬의 수
LOCAL:2 = LOCAL:0
;습득의 구슬의 수
LOCAL:3 = LOCAL:0/2

;순종の素質補正処理

;얌전함だと순종1.5倍
SIF TALENT:TARGET:얌전함
	TIMES LOCAL:1, 1.5
;솔직だと순종1.5倍
SIF TALENT:TARGET:솔직
	TIMES LOCAL:1, 1.5
;프라이드높음or꿋꿋함or건방짐or츤데레だと0.7倍
SIF TALENT:TARGET:프라이드높음 || TALENT:TARGET:꿋꿋함 || TALENT:TARGET:건방짐 || TALENT:TARGET:츤데레
	TIMES LOCAL:1, 0.7
;성악だと순종0.3倍
SIF TALENT:TARGET:성악
	TIMES LOCAL:1, 0.3
;감정풍부だと순종1.3倍
SIF TALENT:TARGET:감정풍부
	TIMES LOCAL:1, 1.3
;감정부족だと순종0.7倍
SIF TALENT:TARGET:감정부족
	TIMES LOCAL:1, 0.7
;무관심だと순종0.8倍
SIF TALENT:TARGET:무관심
	TIMES LOCAL:1, 0.8
;일선을넘지않음だと순종0.7倍
SIF TALENT:TARGET:일선을넘지않음
	TIMES LOCAL:1, 1.2

;能力による補正
SIF ABL:TARGET:0 == 0
	TIMES LOCAL:1, 0.4
SIF ABL:TARGET:0 == 1
	TIMES LOCAL:1, 0.7
SIF ABL:TARGET:0 == 2
	TIMES LOCAL:1, 1.0
SIF ABL:TARGET:0 == 3
	TIMES LOCAL:1, 1.3
SIF ABL:TARGET:0 == 4
	TIMES LOCAL:1, 1.6
SIF ABL:TARGET:0 == 5
	TIMES LOCAL:1, 1.9
SIF ABL:TARGET:0 == 6
	TIMES LOCAL:1, 2.2
SIF ABL:TARGET:0 == 7
	TIMES LOCAL:1, 2.5
SIF ABL:TARGET:0 == 8
	TIMES LOCAL:1, 2.8
SIF ABL:TARGET:0 == 9
	TIMES LOCAL:1, 3.1
SIF ABL:TARGET:0 == 10
	TIMES LOCAL:1, 3.4

;굴복の素質補正処理

;프라이드높음だと굴복0.7倍
SIF TALENT:TARGET:프라이드높음
	TIMES LOCAL:2, 0.6
;고결だと굴복0.5倍
SIF TALENT:TARGET:고결
	TIMES LOCAL:2, 0.5
;성악だと굴복0.5倍
SIF TALENT:TARGET:성악
	TIMES LOCAL:2, 0.5
;자제심だと굴복0.7倍
SIF TALENT:TARGET:자제심
	TIMES LOCAL:2, 0.7
;일선을넘지않음だと굴복0.7倍
SIF TALENT:TARGET:일선을넘지않음
	TIMES LOCAL:2, 0.7
;정조무관심だと굴복0.8倍
SIF TALENT:TARGET:정조무관심
	TIMES LOCAL:2, 0.8
;해방だと굴복1.5倍
SIF TALENT:TARGET:해방
	TIMES LOCAL:2, 1.5
;굴복だと굴복2倍
SIF TALENT:TARGET:굴복
	TIMES LOCAL:2, 2.0
;헌신적だと굴복1.3倍
SIF TALENT:TARGET:헌신적
	TIMES LOCAL:2, 1.3
;망신だと굴복1.5倍
SIF TALENT:TARGET:망신
	TIMES LOCAL:2, 1.5

;能力による補正
SIF ABL:TARGET:7 == 0
	TIMES LOCAL:2, 0.4
SIF ABL:TARGET:7 == 1
	TIMES LOCAL:2, 0.7
SIF ABL:TARGET:7 == 2
	TIMES LOCAL:2, 1.0
SIF ABL:TARGET:7 == 3
	TIMES LOCAL:2, 1.3
SIF ABL:TARGET:7 == 4
	TIMES LOCAL:2, 1.6
SIF ABL:TARGET:7 == 5
	TIMES LOCAL:2, 1.9
SIF ABL:TARGET:7 == 6
	TIMES LOCAL:2, 2.2
SIF ABL:TARGET:7 == 7
	TIMES LOCAL:2, 2.5
SIF ABL:TARGET:7 == 8
	TIMES LOCAL:2, 2.8
SIF ABL:TARGET:7 == 9
	TIMES LOCAL:2, 3.1
SIF ABL:TARGET:7 == 10
	TIMES LOCAL:2, 3.4

;습득の素質補正処理

;호기심だと습득1.3倍
SIF TALENT:TARGET:호기심
	TIMES LOCAL:3, 1.3
;보수적だと습득0.8倍
SIF TALENT:TARGET:보수적
	TIMES LOCAL:3, 0.8
;습득빠름だと습득1.5倍
SIF TALENT:TARGET:습득빠름
	TIMES LOCAL:3, 1.5
;습득느림だと습득0.7倍
SIF TALENT:TARGET:습득느림
	TIMES LOCAL:3, 0.7
;우등생だと습득1.3倍
SIF TALENT:TARGET:우등생
	TIMES LOCAL:3, 1.3

IF TALENT:MASTER:290 == 0 && TALENT:TARGET:290 == 0
	EXP:40 += A
	IF TALENT:MASTER:287 == 1 || TALENT:MASTER:289 == 1
		EXP:22 += A
		EXP:20 += A/2
	ENDIF
ELSEIF TALENT:MASTER:290 == 0 && TALENT:TARGET:290 == 1
		EXP:21 += 1
ELSE
	EXP:22 += A
	EXP:20 += A/2
ENDIF

JUEL:5 += LOCAL:1
JUEL:7 += LOCAL:2
JUEL:8 += LOCAL:3

IF TALENT:MASTER:290 == 0 && TALENT:TARGET:290 == 0
	PRINTFORML %EXPNAME:40%＋{A}
	IF TALENT:MASTER:287 == 1 || TALENT:MASTER:289 == 1
		PRINTFORML %EXPNAME:22%＋{A}
		PRINTFORML %EXPNAME:20%＋{A/2}
	ENDIF
ELSEIF TALENT:MASTER:290 == 0 && TALENT:TARGET:290 == 1
		PRINTFORML %EXPNAME:21%＋1
ELSE
	PRINTFORML %EXPNAME:22%＋{A}
	PRINTFORML %EXPNAME:20%＋{A/2}
ENDIF

PRINTFORML %PALAMNAME:5%의 구슬＋{LOCAL:1}
PRINTFORML %PALAMNAME:7%의 구슬＋{LOCAL:2}
PRINTFORMW %PALAMNAME:8%의 구슬＋{LOCAL:3}
DRAWLINE

RETURN 0

;朝파이즈리
@SELF_MORNING_2
DRAWLINE
TFLAG:13 = 2
CALL KOJO_MESSAGE_EVENT
A = 0

;정액중독
IF ABL:16 == 0
	A = 1
ELSEIF ABL:16 == 1
	A = 2
ELSEIF ABL:16 == 2
	A = 3
ELSEIF ABL:16 == 3
	A = 4
ELSEIF ABL:16 == 4
	A = 5
ELSEIF ABL:16 == 5
	A = 6
ELSEIF ABL:16 == 6
	A = 7
ELSEIF ABL:16 == 7
	A = 8
ELSEIF ABL:16 == 8
	A = 9
ELSEIF ABL:16 == 9
	A = 10
ELSEIF ABL:16 >= 10
	A = 11
ENDIF

;호기심
SIF TALENT:호기심
	A += 1
;악취둔감
SIF TALENT:악취둔감
	A += 1
;악취민감
SIF TALENT:악취민감
	A -= 1
;헌신적
SIF TALENT:헌신적
	A += 3
;인간혐오
SIF TALENT:인간혐오
	A -= 1
;보수적
SIF TALENT:보수적
	A -= 1
;결벽성
SIF TALENT:결벽성
	A -= 1
;영구발정
SIF TALENT:영구발정
	A += 5
;거절
SIF TALENT:거절
	A -= 2
;철벽
SIF TALENT:철벽
	A = A/3

SIF A <= 0
	A = 1

LOCAL:0 = A*50

;대상の기교による補正計算

SIF ABL:TARGET:2 == 0
	TIMES LOCAL:0, 1.0
SIF ABL:TARGET:2 == 1
	TIMES LOCAL:0, 1.1
SIF ABL:TARGET:2 == 2
	TIMES LOCAL:0, 1.2
SIF ABL:TARGET:2 == 3
	TIMES LOCAL:0, 1.3
SIF ABL:TARGET:2 == 4
	TIMES LOCAL:0, 1.4
SIF ABL:TARGET:2 == 5
	TIMES LOCAL:0, 1.5
SIF ABL:TARGET:2 == 6
	TIMES LOCAL:0, 1.6
SIF ABL:TARGET:2 == 7
	TIMES LOCAL:0, 1.7
SIF ABL:TARGET:2 == 8
	TIMES LOCAL:0, 1.8
SIF ABL:TARGET:2 == 9
	TIMES LOCAL:0, 1.9
SIF ABL:TARGET:2 == 10
	TIMES LOCAL:0, 2.0

;순종의 구슬의 수
LOCAL:1 = LOCAL:0*3/2
;굴복의 구슬의 수
LOCAL:2 = LOCAL:0
;습득의 구슬의 수
LOCAL:3 = LOCAL:0/2
;쾌Ｂ의 구슬의 수
LOCAL:4 = LOCAL:0*2

;순종の素質補正処理

;얌전함だと순종1.5倍
SIF TALENT:TARGET:얌전함
	TIMES LOCAL:1, 1.5
;솔직だと순종1.5倍
SIF TALENT:TARGET:솔직
	TIMES LOCAL:1, 1.5
;프라이드높음or꿋꿋함or건방짐or츤데레だと0.7倍
SIF TALENT:TARGET:프라이드높음 || TALENT:TARGET:꿋꿋함 || TALENT:TARGET:건방짐 || TALENT:TARGET:츤데레
	TIMES LOCAL:1, 0.7
;성악だと순종0.3倍
SIF TALENT:TARGET:성악
	TIMES LOCAL:1, 0.3
;감정풍부だと순종1.3倍
SIF TALENT:TARGET:감정풍부
	TIMES LOCAL:1, 1.3
;감정부족だと순종0.7倍
SIF TALENT:TARGET:감정부족
	TIMES LOCAL:1, 0.7
;무관심だと순종0.8倍
SIF TALENT:TARGET:무관심
	TIMES LOCAL:1, 0.8
;일선을넘지않음だと순종0.7倍
SIF TALENT:TARGET:일선을넘지않음
	TIMES LOCAL:1, 1.2

;能力による補正
SIF ABL:TARGET:0 == 0
	TIMES LOCAL:1, 0.4
SIF ABL:TARGET:0 == 1
	TIMES LOCAL:1, 0.7
SIF ABL:TARGET:0 == 2
	TIMES LOCAL:1, 1.0
SIF ABL:TARGET:0 == 3
	TIMES LOCAL:1, 1.3
SIF ABL:TARGET:0 == 4
	TIMES LOCAL:1, 1.6
SIF ABL:TARGET:0 == 5
	TIMES LOCAL:1, 1.9
SIF ABL:TARGET:0 == 6
	TIMES LOCAL:1, 2.2
SIF ABL:TARGET:0 == 7
	TIMES LOCAL:1, 2.5
SIF ABL:TARGET:0 == 8
	TIMES LOCAL:1, 2.8
SIF ABL:TARGET:0 == 9
	TIMES LOCAL:1, 3.1
SIF ABL:TARGET:0 == 10
	TIMES LOCAL:1, 3.4

;굴복の素質補正処理

;프라이드높음だと굴복0.7倍
SIF TALENT:TARGET:프라이드높음
	TIMES LOCAL:2, 0.6
;고결だと굴복0.5倍
SIF TALENT:TARGET:고결
	TIMES LOCAL:2, 0.5
;성악だと굴복0.5倍
SIF TALENT:TARGET:성악
	TIMES LOCAL:2, 0.5
;자제심だと굴복0.7倍
SIF TALENT:TARGET:자제심
	TIMES LOCAL:2, 0.7
;일선을넘지않음だと굴복0.7倍
SIF TALENT:TARGET:일선을넘지않음
	TIMES LOCAL:2, 0.7
;정조무관심だと굴복0.8倍
SIF TALENT:TARGET:정조무관심
	TIMES LOCAL:2, 0.8
;해방だと굴복1.5倍
SIF TALENT:TARGET:해방
	TIMES LOCAL:2, 1.5
;굴복だと굴복2倍
SIF TALENT:TARGET:굴복
	TIMES LOCAL:2, 2.0
;헌신적だと굴복1.3倍
SIF TALENT:TARGET:헌신적
	TIMES LOCAL:2, 1.3
;망신だと굴복1.5倍
SIF TALENT:TARGET:망신
	TIMES LOCAL:2, 1.5

;能力による補正
SIF ABL:TARGET:7 == 0
	TIMES LOCAL:2, 0.4
SIF ABL:TARGET:7 == 1
	TIMES LOCAL:2, 0.7
SIF ABL:TARGET:7 == 2
	TIMES LOCAL:2, 1.0
SIF ABL:TARGET:7 == 3
	TIMES LOCAL:2, 1.3
SIF ABL:TARGET:7 == 4
	TIMES LOCAL:2, 1.6
SIF ABL:TARGET:7 == 5
	TIMES LOCAL:2, 1.9
SIF ABL:TARGET:7 == 6
	TIMES LOCAL:2, 2.2
SIF ABL:TARGET:7 == 7
	TIMES LOCAL:2, 2.5
SIF ABL:TARGET:7 == 8
	TIMES LOCAL:2, 2.8
SIF ABL:TARGET:7 == 9
	TIMES LOCAL:2, 3.1
SIF ABL:TARGET:7 == 10
	TIMES LOCAL:2, 3.4

;습득の素質補正処理

;호기심だと습득1.3倍
SIF TALENT:TARGET:호기심
	TIMES LOCAL:3, 1.3
;보수적だと습득0.8倍
SIF TALENT:TARGET:보수적
	TIMES LOCAL:3, 0.8
;습득빠름だと습득1.5倍
SIF TALENT:TARGET:습득빠름
	TIMES LOCAL:3, 1.5
;습득느림だと습득0.7倍
SIF TALENT:TARGET:습득느림
	TIMES LOCAL:3, 0.7
;우등생だと습득1.3倍
SIF TALENT:TARGET:우등생
	TIMES LOCAL:3, 1.3

;쾌Ｂの素質補正処理

;음유だと쾌Ｂ1.5倍
SIF TALENT:TARGET:음유
	TIMES LOCAL:4, 1.5
;Ｂ둔감だと쾌Ｂ0.5倍
SIF TALENT:TARGET:Ｂ둔감
	TIMES LOCAL:4, 0.5
;Ｂ민감だと쾌Ｂ2.0倍
SIF TALENT:TARGET:Ｂ민감
	TIMES LOCAL:4, 2.0
;빈유だと쾌Ｂ1.5倍
SIF TALENT:TARGET:빈유
	TIMES LOCAL:4, 1.5
;절벽だと쾌Ｂ2.0倍
SIF TALENT:TARGET:절벽
	TIMES LOCAL:4, 2.0
;거유だと쾌Ｂ0.8倍
SIF TALENT:TARGET:거유
	TIMES LOCAL:4, 0.8
;폭유だと쾌Ｂ0.6倍
SIF TALENT:TARGET:폭유
	TIMES LOCAL:4, 0.6

;ＮＴＲ朝フェラ発生
;放置日数5日이상、ＮＴＲ進行度2이상で협박ＮＴＲか교제時敗北ＮＴＲの時
IF CFLAG:122 >= 5 && TALENT:ＮＴＲ >= 2 && (CFLAG:117 == 6 || CFLAG:117 == 8)
	EXP:22 += A
	JUEL:3 += LOCAL:4
	JUEL:5 += LOCAL:1
	JUEL:7 += LOCAL:2
	JUEL:8 += LOCAL:3
	PRINTFORML %EXPNAME:22%＋{A}
	PRINTFORML %PALAMNAME:3%의 구슬＋{LOCAL:4}
	PRINTFORML %PALAMNAME:5%의 구슬＋{LOCAL:1}
	PRINTFORML %PALAMNAME:7%의 구슬＋{LOCAL:2}
	PRINTFORMW %PALAMNAME:8%의 구슬＋{LOCAL:3}
ELSE
	EXP:22 += A
	EXP:20 += A/2
	JUEL:3 += LOCAL:4
	JUEL:5 += LOCAL:1
	JUEL:7 += LOCAL:2
	JUEL:8 += LOCAL:3
	PRINTFORML %EXPNAME:22%＋{A}
	PRINTFORML %EXPNAME:20%＋{A/2}
	PRINTFORML %PALAMNAME:3%의 구슬＋{LOCAL:4}
	PRINTFORML %PALAMNAME:5%의 구슬＋{LOCAL:1}
	PRINTFORML %PALAMNAME:7%의 구슬＋{LOCAL:2}
	PRINTFORMW %PALAMNAME:8%의 구슬＋{LOCAL:3}
ENDIF
DRAWLINE

RETURN 0

;朝기승위
@SELF_MORNING_3
DRAWLINE
TFLAG:13 = 3
CALL KOJO_MESSAGE_EVENT
A = 0

;정액중독
IF ABL:16 == 0
	A = 1
ELSEIF ABL:16 == 1
	A = 2
ELSEIF ABL:16 == 2
	A = 3
ELSEIF ABL:16 == 3
	A = 4
ELSEIF ABL:16 == 4
	A = 5
ELSEIF ABL:16 == 5
	A = 6
ELSEIF ABL:16 == 6
	A = 7
ELSEIF ABL:16 == 7
	A = 8
ELSEIF ABL:16 == 8
	A = 9
ELSEIF ABL:16 == 9
	A = 10
ELSEIF ABL:16 >= 10
	A = 11
ENDIF

;섹스중독
;정액중독
IF ABL:18 == 0
	A += 1
ELSEIF ABL:18 == 1
	A += 2
ELSEIF ABL:18 == 2
	A += 3
ELSEIF ABL:18 == 3
	A += 4
ELSEIF ABL:18 == 4
	A += 5
ELSEIF ABL:18 == 5
	A += 6
ELSEIF ABL:18 == 6
	A += 7
ELSEIF ABL:18 == 7
	A += 8
ELSEIF ABL:18 == 8
	A += 9
ELSEIF ABL:18 == 9
	A += 10
ELSEIF ABL:18 >= 10
	A += 11
ENDIF

;호기심
SIF TALENT:호기심
	A += 1
;악취둔감
SIF TALENT:악취둔감
	A += 1
;악취민감
SIF TALENT:악취민감
	A -= 1
;헌신적
SIF TALENT:헌신적
	A += 3
;인간혐오
SIF TALENT:인간혐오
	A -= 2
;보수적
SIF TALENT:보수적
	A -= 2
;눈에띄고싶어함
SIF TALENT:눈에띄고싶어함
	A += 1
;결벽성
SIF TALENT:결벽성
	A -= 1
;음호
SIF TALENT:음호
	A += 4
;영구발정
SIF TALENT:영구발정
	A += 5
;걸레녀
SIF TALENT:걸레녀
	A += 4
;거절
SIF TALENT:거절
	A -= 4
;철벽
SIF TALENT:철벽
	A = A/4

SIF A <= 0
	A = 1

LOCAL:0 = A*50

;대상の기교による補正計算

SIF ABL:TARGET:2 == 0
	TIMES LOCAL:0, 1.0
SIF ABL:TARGET:2 == 1
	TIMES LOCAL:0, 1.1
SIF ABL:TARGET:2 == 2
	TIMES LOCAL:0, 1.2
SIF ABL:TARGET:2 == 3
	TIMES LOCAL:0, 1.3
SIF ABL:TARGET:2 == 4
	TIMES LOCAL:0, 1.4
SIF ABL:TARGET:2 == 5
	TIMES LOCAL:0, 1.5
SIF ABL:TARGET:2 == 6
	TIMES LOCAL:0, 1.6
SIF ABL:TARGET:2 == 7
	TIMES LOCAL:0, 1.7
SIF ABL:TARGET:2 == 8
	TIMES LOCAL:0, 1.8
SIF ABL:TARGET:2 == 9
	TIMES LOCAL:0, 1.9
SIF ABL:TARGET:2 == 10
	TIMES LOCAL:0, 2.0

;순종의 구슬의 수
LOCAL:1 = LOCAL:0*3/2
;굴복의 구슬의 수
LOCAL:2 = LOCAL:0
;습득의 구슬의 수
LOCAL:3 = LOCAL:0/2
;쾌Ｖ의 구슬의 수
LOCAL:4 = LOCAL:0*2

;순종の素質補正処理

;얌전함だと순종1.5倍
SIF TALENT:TARGET:얌전함
	TIMES LOCAL:1, 1.5
;솔직だと순종1.5倍
SIF TALENT:TARGET:솔직
	TIMES LOCAL:1, 1.5
;프라이드높음or꿋꿋함or건방짐or츤데레だと0.7倍
SIF TALENT:TARGET:프라이드높음 || TALENT:TARGET:꿋꿋함 || TALENT:TARGET:건방짐 || TALENT:TARGET:츤데레
	TIMES LOCAL:1, 0.7
;성악だと순종0.3倍
SIF TALENT:TARGET:성악
	TIMES LOCAL:1, 0.3
;감정풍부だと순종1.3倍
SIF TALENT:TARGET:감정풍부
	TIMES LOCAL:1, 1.3
;감정부족だと순종0.7倍
SIF TALENT:TARGET:감정부족
	TIMES LOCAL:1, 0.7
;무관심だと순종0.8倍
SIF TALENT:TARGET:무관심
	TIMES LOCAL:1, 0.8
;일선을넘지않음だと순종0.7倍
SIF TALENT:TARGET:일선을넘지않음
	TIMES LOCAL:1, 1.2
;정조관념と순종1.5倍
SIF TALENT:TARGET:정조관념
	TIMES LOCAL:1, 1.5
;정조무관심と순종0.7倍
SIF TALENT:TARGET:정조무관심
	TIMES LOCAL:1, 0.7

;能力による補正
SIF ABL:TARGET:0 == 0
	TIMES LOCAL:1, 0.4
SIF ABL:TARGET:0 == 1
	TIMES LOCAL:1, 0.7
SIF ABL:TARGET:0 == 2
	TIMES LOCAL:1, 1.0
SIF ABL:TARGET:0 == 3
	TIMES LOCAL:1, 1.3
SIF ABL:TARGET:0 == 4
	TIMES LOCAL:1, 1.6
SIF ABL:TARGET:0 == 5
	TIMES LOCAL:1, 1.9
SIF ABL:TARGET:0 == 6
	TIMES LOCAL:1, 2.2
SIF ABL:TARGET:0 == 7
	TIMES LOCAL:1, 2.5
SIF ABL:TARGET:0 == 8
	TIMES LOCAL:1, 2.8
SIF ABL:TARGET:0 == 9
	TIMES LOCAL:1, 3.1
SIF ABL:TARGET:0 == 10
	TIMES LOCAL:1, 3.4

;굴복の素質補正処理

;프라이드높음だと굴복0.6倍
SIF TALENT:TARGET:프라이드높음
	TIMES LOCAL:2, 0.6
;고결だと굴복0.5倍
SIF TALENT:TARGET:고결
	TIMES LOCAL:2, 0.5
;성악だと굴복0.5倍
SIF TALENT:TARGET:성악
	TIMES LOCAL:2, 0.5
;자제심だと굴복0.7倍
SIF TALENT:TARGET:자제심
	TIMES LOCAL:2, 0.7
;일선을넘지않음だと굴복0.7倍
SIF TALENT:TARGET:일선을넘지않음
	TIMES LOCAL:2, 0.7
;정조관념だと굴복1.5倍
SIF TALENT:TARGET:정조관념
	TIMES LOCAL:2, 1.5
;정조무관심だと굴복0.8倍
SIF TALENT:TARGET:정조무관심
	TIMES LOCAL:2, 0.8
;해방だと굴복1.5倍
SIF TALENT:TARGET:해방
	TIMES LOCAL:2, 1.5
;굴복だと굴복2倍
SIF TALENT:TARGET:굴복
	TIMES LOCAL:2, 2.0
;헌신적だと굴복1.3倍
SIF TALENT:TARGET:헌신적
	TIMES LOCAL:2, 1.3
;망신だと굴복1.5倍
SIF TALENT:TARGET:망신
	TIMES LOCAL:2, 1.5

;能力による補正
SIF ABL:TARGET:7 == 0
	TIMES LOCAL:2, 0.4
SIF ABL:TARGET:7 == 1
	TIMES LOCAL:2, 0.7
SIF ABL:TARGET:7 == 2
	TIMES LOCAL:2, 1.0
SIF ABL:TARGET:7 == 3
	TIMES LOCAL:2, 1.3
SIF ABL:TARGET:7 == 4
	TIMES LOCAL:2, 1.6
SIF ABL:TARGET:7 == 5
	TIMES LOCAL:2, 1.9
SIF ABL:TARGET:7 == 6
	TIMES LOCAL:2, 2.2
SIF ABL:TARGET:7 == 7
	TIMES LOCAL:2, 2.5
SIF ABL:TARGET:7 == 8
	TIMES LOCAL:2, 2.8
SIF ABL:TARGET:7 == 9
	TIMES LOCAL:2, 3.1
SIF ABL:TARGET:7 == 10
	TIMES LOCAL:2, 3.4

;습득の素質補正処理

;호기심だと습득1.3倍
SIF TALENT:TARGET:호기심
	TIMES LOCAL:3, 1.3
;보수적だと습득0.8倍
SIF TALENT:TARGET:보수적
	TIMES LOCAL:3, 0.8
;습득빠름だと습득1.5倍
SIF TALENT:TARGET:습득빠름
	TIMES LOCAL:3, 1.5
;습득느림だと습득0.7倍
SIF TALENT:TARGET:습득느림
	TIMES LOCAL:3, 0.7
;우등생だと습득1.3倍
SIF TALENT:TARGET:우등생
	TIMES LOCAL:3, 1.3

;쾌Ｖの素質補正処理

;음호だと쾌Ｖ1.5倍
SIF TALENT:TARGET:음호
	TIMES LOCAL:4, 1.5
;Ｖ둔감だと쾌Ｖ0.5倍
SIF TALENT:TARGET:Ｖ둔감
	TIMES LOCAL:4, 0.5
;Ｖ민감だと쾌Ｖ2.0倍
SIF TALENT:TARGET:Ｖ민감
	TIMES LOCAL:4, 2.0

EXP:0 += A
EXP:4 += A
EXP:20 += A/2
IF CFLAG:101 > 1 && CFLAG:108 == 0
	EXP:5 += A/2
	CFLAG:101 += A/2
ENDIF
JUEL:1 += LOCAL:4
JUEL:5 += LOCAL:1
JUEL:7 += LOCAL:2
JUEL:8 += LOCAL:3
PRINTFORML %EXPNAME:0%＋{A}
PRINTFORML %EXPNAME:4%＋{A}
PRINTFORML %EXPNAME:20%＋{A/2}
SIF EXP:5 > 0 && (TALENT:3 || TALENT:6)
	PRINTFORML %EXPNAME:5%＋{A/2}
PRINTFORML %PALAMNAME:1%의 구슬＋{LOCAL:4}
PRINTFORML %PALAMNAME:5%의 구슬＋{LOCAL:1}
PRINTFORML %PALAMNAME:7%의 구슬＋{LOCAL:2}
PRINTFORMW %PALAMNAME:8%의 구슬＋{LOCAL:3}
DRAWLINE

;モーニングコール
@SELF_MORNING_4
DRAWLINE
TFLAG:13 = 24
CALL KOJO_MESSAGE_EVENT

A = 0

;교제の成果
IF TALENT:3 == 1 || TALENT:6 ==1
;デフォルト設定
	IF TALENT:6 == 1
		A = 3
	ELSEIF TALENT:3 == 1
		A = 2
	ENDIF
;순종を追加
	IF ABL:0 >= 8
		A += 3
	ELSEIF ABL:0 >= 5
		A += 2
	ELSE
		A += 1
	ENDIF
;봉사정신を追加
	IF ABL:7 >= 8
		A += 3
	ELSEIF ABL:7 >= 5
		A += 2
	ELSE
		A += 1
	ENDIF
;各種素質の補正
;솔직
	SIF TALENT:솔직 == 1
		A += 1
;얌전함
	SIF TALENT:얌전함 == 1
		A += 1
;인간혐오
	SIF TALENT:인간혐오 == 1
		A -= 1
;억압
	SIF TALENT:억압 == 1
		A -= 1
;헌신적
	SIF TALENT:헌신적 == 1
		A += 1
;즉각함락
	SIF TALENT:즉각함락 == 1
		A += 1
;질투
	SIF TALENT:질투 == 1
		A -= 1
;공주님소망
	SIF TALENT:공주님소망 == 1
		A += 1
;고무
	SIF TALENT:고무 == 1
		A += 1
;음란
ELSEIF TALENT:음란 == 1 || TALENT:창녀 ==1 || TALENT:동화 ==1 || TALENT:모판 ==1
;デフォルト設定
	IF TALENT:7 == 1 || TALENT:동화
		A = 2
	ELSEIF TALENT:4 == 1 || TALENT:모판
		A = 1
	ENDIF
;순종を追加
	IF ABL:0 >= 5
		A += 2
	ELSE
		A += 1
	ENDIF
;욕망を追加
	IF ABL:1 >= 8
		A += 4
	ELSEIF ABL:1 >= 6
		A += 3
	ELSEIF ABL:1 >= 4
		A += 2
	ELSE
		A += 1
	ENDIF
;봉사정신を追加
	IF ABL:7 >= 5
		A += 2
	ELSE
		A += 1
	ENDIF
;노출증を追加
	IF ABL:8 >= 5
		A += 3
	ELSEIF ABL:8 >= 3
		A += 2
	ELSEIF ABL:8 >= 3
		A += 1
	ENDIF
;各種素質の補正
;솔직
	SIF TALENT:솔직 == 1
		A += 1
;건방짐
	SIF TALENT:건방짐 == 1
		A -= 1
;호기심
	SIF TALENT:호기심 == 1
		A += 1
;일선을넘지않음
	SIF TALENT:일선을넘지않음 == 1
		A -= 1
;눈에띄고싶어함
	SIF TALENT:눈에띄고싶어함 == 1
		A += 1
;해방
	SIF TALENT:해방 == 1
		A += 1
;레이프소망&&강간
	SIF TALENT:레이프소망 == 1 && TALENT:강간 == 1
		A += 1
;쾌감에솔직
	SIF TALENT:쾌감에솔직 == 1
		A += 1
;도착적
	SIF TALENT:도착적 == 1
		A += 1
;ＮＴＬ
	SIF TALENT:ＮＴＬ == 1
		A += 1

;복종
ELSEIF TALENT:복종 == 1 || TALENT:예속 ==1

	IF TALENT:예속 == 1
		A = 2
	ELSEIF TALENT:복종 == 1
		A = 1
	ENDIF
;순종を追加
	IF ABL:0 >= 8
		A += 3
	ELSEIF ABL:0 >= 5
		A += 2
	ELSE
		A += 1
	ENDIF
;봉사정신を追加
	IF ABL:7 >= 8
		A += 3
	ELSEIF ABL:7 >= 5
		A += 2
	ELSEIF ABL:7 >= 3
		A += 1
	ENDIF
;마조끼を追加
	IF ABL:9 >= 5
		A += 3
	ELSEIF ABL:9 >= 4
		A += 2
	ELSEIF ABL:9 >= 3
		A += 1
	ENDIF

;各種素質の補正
;겁쟁이
	SIF TALENT:겁쟁이 == 1
		A += 1
;꿋꿋함
	SIF TALENT:꿋꿋함 == 1
		A -= 1
;프라이드높음
	SIF TALENT:프라이드높음 == 1
		A -= 1
;프라이드낮음
	SIF TALENT:프라이드낮음 == 1
		A += 1
;건방짐
	SIF TALENT:건방짐 == 1
		A -= 1
;결벽성
	SIF TALENT:결벽성 == 1
		A -= 1
;약점
	SIF TALENT:약점 == 1
		A += 1
;굴복
	SIF TALENT:굴복 == 1
		A += 1
;레이프소망&&강간
	SIF TALENT:레이프소망 == 1 && TALENT:강간 == 1
		A += 1
;거절
	SIF TALENT:거절 == 1
		A -= 1
;중독되기쉬움
	SIF TALENT:중독되기쉬움 == 1
		A += 1
;망신
	SIF TALENT:망신 == 1
		A += 1
ENDIF

SIF A <= 0
	A = 1

;経験の追加
SIF TALENT:3 == 1 || TALENT:6 == 1
	EXP:23 += A/2
;珠の増加
IF TALENT:3 == 1 || TALENT:6 == 1
	JUEL:5 += A*50
ELSE
	JUEL:7 += A*100
ENDIF

;出力
SIF TALENT:연모 == 1 || TALENT:친애 == 1
	PRINTFORML %EXPNAME:23%＋{A/2}
IF TALENT:연모 == 1 || TALENT:친애 == 1
	PRINTFORML %PALAMNAME:5%의 구슬＋{A*50}
ELSE
	PRINTFORML %PALAMNAME:7%의 구슬＋{A*100}
ENDIF

;자위경험の計算
B = A/5
IF ABL:15 >= 1
	IF ABL:15 == 1
		B += 1
	ELSEIF ABL:15 == 2
		B += 2
	ELSEIF ABL:15 == 3
		B += 3
	ELSEIF ABL:15 == 4
		B += 4
	ELSEIF ABL:15 == 5
		B += 5
	ENDIF

	EXP:10 += B
	JUEL:0 += B*100
	JUEL:3 += B*100
	JUEL:6 += B*50

;出力
	PRINTFORML %PALAMNAME:0%의 구슬＋{B*100}
	PRINTFORML %PALAMNAME:3%의 구슬＋{B*100}
	PRINTFORML %PALAMNAME:6%의 구슬＋{B*50}
	PRINTFORML %EXPNAME:10%＋{B}
ENDIF

DRAWLINE

RETURN 0

;-------------------------------------------------
;조교後に起こるイベント
;-------------------------------------------------
@SELF_CHECK
;ＮＴＲ時は起きない
SIF TALENT:ＮＴＲ >= 1
	RETURN 0

;昼間は起きない
SIF TIME != 1
	RETURN 0

;붕괴時は関数終了
SIF TALENT:붕괴
	RETURN 0

;충동적フラグ
	LOCAL:0 = DAY % 6
	LOCAL:1 = DAY % 5
	LOCAL:2 = DAY % 3
;실신時は終了
SIF TFLAG:55 == 1
	RETURN 0
;강정신약の反動が優先
IF TEQUIP:34 > 2
	CALL SELF_CHECK3
;조교後夜這い;マスターとの判定
;걸레녀は毎日必ずくる
ELSEIF TALENT:TARGET:걸레녀 == 1 && BASE:0 >= 500
	CALL SELF_CHECK6
;陥落済みは3日に1回
ELSEIF TALENT:3 == 1 || TALENT:6 == 1 || TALENT:4 == 1 || TALENT:7 == 1 || TALENT:5 == 1 || TALENT:8 == 1
	SIF BASE:0 >= 500 && LOCAL:2 == 2
		CALL SELF_CHECK6
;순종と욕망3이상、반발각인3以外で5日に1回
ELSEIF BASE:0 >= 500 && LOCAL:0 == 5 && ABL:0 >= 3 && ABL:1 >= 3 && MARK:3 < 3
	CALL SELF_CHECK6
;충동적なら来る
ELSEIF LOCAL:1 == 4 && TALENT:TARGET:59 == 1
	CALL SELF_CHECK6
ELSE
	IF ASSI >= 0
		A = NO:ASSI
		;조교後レズプレイ(조수가 충동적)
		IF ( LOCAL:1 == 4 && TALENT:ASSI:59 == 1 ) && BASE:0 >= 500 && TEQUIP:34 <= 2 && (TALENT:ASSI:290 == 0 && TALENT:290 == 0) || (TALENT:ASSI:290 && TALENT:290)
			CALL SELF_CHECK8
		;조교後レズプレイ(ホモプレイ、ノーマルプレイ含む）
		ELSEIF IS_NOTLOVE_ATTACKING(TARGET) && ABL:TARGET:0 >= 2 && IS_NOTLOVE_FALLEN(ASSI) && (TALENT:ASSI:바이 == 1 || (TALENT:ASSI:남자 == 1 && TALENT:TARGET:남자 == 0) || (TALENT:ASSI:남자 == 0 && TALENT:TARGET:남자 == 1)) && BASE:0 >= 500 && TEQUIP:34 <= 2
			CALL SELF_CHECK1
		;조교後자위(충동적)
		ELSEIF (LOCAL:1 == 4 && TALENT:59 == 1) || (LOCAL:1 == 2 && TALENT:59 == 1 && TALENT:150 == 1 ) || ( TALENT:59 == 1 && TALENT:174 == 1 )
			CALL SELF_CHECK7
		;조교後자위
		ELSEIF ABL:15
			CALL SELF_CHECK5
		ENDIF
	ELSE
		;조교後セックス（조교後夜這いと重複で機能していないと思われる）
		IF ((TALENT:3 || TALENT:6) || ((TALENT:4 || TALENT:5 || TALENT:7 || TALENT:8) && ABL:4 >= 3)) && TALENT:0 == 0 && TALENT:1 == 0 && BASE:0 >= 500 && TEQUIP:34 <= 2 && CFLAG:MASTER:11 && (TALENT:MASTER:287 || TALENT:MASTER:289 || TALENT:MASTER:290) && TALENT:290 == 0
			CALL SELF_CHECK2
		;조교後搾乳
		ELSEIF ABL:3 >= 4 && (ABL:19 > ABL:15) && TALENT:299 && TALENT:290 == 0
			CALL SELF_CHECK4
		;조교後자위(충동적)
		ELSEIF (LOCAL:1 == 4 && TALENT:59 == 1) || (LOCAL:1 == 2 && TALENT:59 == 1 && TALENT:150 == 1 ) || ( TALENT:59 == 1 && TALENT:174 == 1 )
			CALL SELF_CHECK7
		;조교後자위
		ELSEIF ABL:15
			CALL SELF_CHECK5
		ENDIF
	ENDIF

ENDIF
LOCAL:1 = 0
LOCAL:2 = 0

;----------------------------------------------------------------------------
;;조교後レズおよびホモプレイ、조교後セックスどちらか一つ（強精神剤の反動が起こる時は無効）
;IF ASSI >= 0
;	A = NO:ASSI
;	IF (TALENT:4 || TALENT:7) && RELATION:A > 100 && BASE:0 >= 500 && TEQUIP:34 <= 2 && (TALENT:ASSI:290 == 0 && TALENT:290 == 0) || (TALENT:ASSI:290 && TALENT:290)
;		CALL SELF_CHECK1
;	ELSEIF (TALENT:4 || TALENT:5 || TALENT:7 || TALENT:8) && TALENT:ASSI:191 && (RELATION:A >= 100 || RELATION:A == 0) && BASE:0 >= 500 && TEQUIP:34 <= 2 && (TALENT:ASSI:290 == 0 && TALENT:290 == 0) || (TALENT:ASSI:290 && TALENT:290)
;		CALL SELF_CHECK1
;	ELSEIF ((TALENT:3 || TALENT:6) || ((TALENT:4 || TALENT:5 || TALENT:7 || TALENT:8) && ABL:4 >= 3)) && TALENT:0 == 0 && TALENT:1 == 0 && BASE:0 >= 500 && TEQUIP:34 <= 2 && CFLAG:MASTER:11 && (TALENT:MASTER:287 || TALENT:MASTER:289 || TALENT:MASTER:290) && TALENT:290 == 0
;		CALL SELF_CHECK2
;	ENDIF
;ELSEIF ((TALENT:3 || TALENT:6) || ((TALENT:4 || TALENT:5 || TALENT:7 || TALENT:8) && ABL:4 >= 3)) && TALENT:0 == 0 && TALENT:1 == 0 && BASE:0 >= 500 && TEQUIP:34 <= 2 && CFLAG:MASTER:11 && (TALENT:MASTER:287 || TALENT:MASTER:289 || TALENT:MASTER:290) && TALENT:290 == 0
;	CALL SELF_CHECK2
;ENDIF
;
;;강정신약の反動、조교後搾乳、조교後자위。どれか一つ
;IF TEQUIP:34 > 2
;	CALL SELF_CHECK3
;ELSEIF ABL:3 >= 4 && (ABL:19 > ABL:15) && TALENT:299 && TALENT:290 == 0
;	CALL SELF_CHECK4
;ELSEIF ABL:15
;	CALL SELF_CHECK5
;ENDIF
;
;;조교後夜這い
;;SIF ((TALENT:3 || TALENT:6) || ((TALENT:5 || TALENT:8) && ABL:4 >= 5)) && TALENT:0 == 0 && TALENT:1 == 0 && BASE:0 >= 500 && CFLAG:MASTER:11 && IS_NIGHT() && (TALENT:MASTER:287 || TALENT:MASTER:289 || TALENT:MASTER:290) && TALENT:290 == 0
;SIF ((TALENT:3 || TALENT:6) || ((TALENT:5 || TALENT:8) && ABL:4 >= 5)) && TALENT:0 == 0 && TALENT:1 == 0 && BASE:0 >= 500 && CFLAG:MASTER:11 && (TALENT:MASTER:287 || TALENT:MASTER:289 || TALENT:MASTER:290) && TALENT:290 == 0
;	CALL SELF_CHECK6
;----------------------------------------------------------------------------

;レズおよびホモプレイ
@SELF_CHECK1
;イベント입上呼び出し
DRAWLINE
TFLAG:13 = 4
CALL KOJO_MESSAGE_EVENT
N = 0

;레즈중독 아니면 게이중독
N = 1
IF ABL:17 == 1 || ABL:21 == 1
	N += 1
ELSEIF ABL:17 == 2 || ABL:21 == 2
	N += 2
ELSEIF ABL:17 == 3 || ABL:21 == 3
	N += 3
ELSEIF ABL:17 == 4 || ABL:21 == 4
	N += 5
ELSEIF ABL:17 == 5 || ABL:21 == 5
	N += 7
ELSEIF ABL:17 == 6 || ABL:21 == 6
	N += 10
ELSEIF ABL:17 == 7 || ABL:21 == 7
	N += 13
ELSEIF ABL:17 == 8 || ABL:21 == 8
	N += 17
ELSEIF ABL:17 == 9 || ABL:21 == 9
	N += 21
ELSEIF ABL:17 >= 10 || ABL:21 >= 10
	N += 15
ENDIF
IF ABL:ASSI:17 == 1 || ABL:ASSI:21 == 1
	N += 1
ELSEIF ABL:ASSI:17 == 2 || ABL:ASSI:21 == 2
	N += 2
ELSEIF ABL:ASSI:17 == 3 || ABL:ASSI:21 == 3
	N += 5
ELSEIF ABL:ASSI:17 == 4 || ABL:ASSI:21 == 4
	N += 8
ELSEIF ABL:ASSI:17 == 5 || ABL:ASSI:21 == 5
	N += 13
ELSEIF ABL:ASSI:17 == 6 || ABL:ASSI:21 == 6
	N += 18
ELSEIF ABL:ASSI:17 == 7 || ABL:ASSI:21 == 7
	N += 23
ELSEIF ABL:ASSI:17 == 8 || ABL:ASSI:21 == 8
	N += 29
ELSEIF ABL:ASSI:17 == 9 || ABL:ASSI:21 == 9
	N += 34
ELSEIF ABL:ASSI:17 >= 10 || ABL:ASSI:21 >= 10
	N += 40
ENDIF

;相性処理
A = NO:ASSI
LOCAL = RELATION:A
SIF RELATION:A == 0
	LOCAL = 100
N = (N*LOCAL)/100

;바이
SIF TALENT:TARGET:바이 == 1 || TALENT:ASSI:바이 == 1
	N += 3

;[소악마]조수は대상を자위をさせる
SIF TALENT:ASSI:소악마 == 1 && TALENT:TARGET:거절 == 0 && TALENT:TARGET:철벽 == 0
	N += 3

;[결벽성]は行為回数マイナス
SIF TALENT:결벽성
	N -= 5
;[거절]は行為回数マイナス
SIF TALENT:거절
	N -= 10
;[철벽]は行為回数が3分の1になる
SIF TALENT:철벽
	N = N/3
SIF N <= 0
	N = 1

;순종의 구슬의 수
LOCAL:0 = N*25
;욕정의 구슬의 수
LOCAL:1 = N*25
;굴복의 구슬의 수
LOCAL:2 = N*25
;습득의 구슬의 수
LOCAL:3 = N*25
;치정의 구슬의 수
LOCAL:4 = N*25
;고통의 구슬의 수
LOCAL:5 = N*15
;쾌Ｃ의 구슬의 수
LOCAL:6 = N*20*ABL:0
;쾌Ｂ의 구슬의 수
LOCAL:7 = N*20*ABL:3

;순종の素質補正処理

;얌전함だと순종1.5倍
SIF TALENT:TARGET:얌전함
	TIMES LOCAL:0, 1.5
;솔직だと순종1.5倍
SIF TALENT:TARGET:솔직
	TIMES LOCAL:0, 1.5
;프라이드높음or꿋꿋함or건방짐or츤데레だと0.7倍
SIF TALENT:TARGET:프라이드높음 || TALENT:TARGET:꿋꿋함 || TALENT:TARGET:건방짐 || TALENT:TARGET:츤데레
	TIMES LOCAL:0, 0.7
;성악だと순종0.3倍
SIF TALENT:TARGET:성악
	TIMES LOCAL:0, 0.3
;감정풍부だと순종1.3倍
SIF TALENT:TARGET:감정풍부
	TIMES LOCAL:0, 1.3
;감정부족だと순종0.7倍
SIF TALENT:TARGET:감정부족
	TIMES LOCAL:0, 0.7
;무관심だと순종0.8倍
SIF TALENT:TARGET:무관심
	TIMES LOCAL:0, 0.8
;레이프소망だと순종1.2倍
SIF TALENT:TARGET:레이프소망
	TIMES LOCAL:0, 1.2
;일선을넘지않음だと순종0.7倍
SIF TALENT:TARGET:일선을넘지않음
	TIMES LOCAL:0, 1.2
;저항だと순종半分
SIF TALENT:TARGET:저항
	TIMES LOCAL:0, 0.5

;能力による補正
SIF ABL:TARGET:0 == 0
	TIMES LOCAL:0, 0.4
SIF ABL:TARGET:0 == 1
	TIMES LOCAL:0, 0.7
SIF ABL:TARGET:0 == 2
	TIMES LOCAL:0, 1.0
SIF ABL:TARGET:0 == 3
	TIMES LOCAL:0, 1.3
SIF ABL:TARGET:0 == 4
	TIMES LOCAL:0, 1.6
SIF ABL:TARGET:0 == 5
	TIMES LOCAL:0, 1.9
SIF ABL:TARGET:0 == 6
	TIMES LOCAL:0, 2.2
SIF ABL:TARGET:0 == 7
	TIMES LOCAL:0, 2.5
SIF ABL:TARGET:0 == 8
	TIMES LOCAL:0, 2.8
SIF ABL:TARGET:0 == 9
	TIMES LOCAL:0, 3.1
SIF ABL:TARGET:0 == 10
	TIMES LOCAL:0, 3.4

;조수의 기교による補正
SIF ABL:ASSI:2 == 0
	TIMES LOCAL:0, 1.0
SIF ABL:ASSI:2 == 1
	TIMES LOCAL:0, 1.1
SIF ABL:ASSI:2 == 2
	TIMES LOCAL:0, 1.2
SIF ABL:ASSI:2 == 3
	TIMES LOCAL:0, 1.3
SIF ABL:ASSI:2 == 4
	TIMES LOCAL:0, 1.4
SIF ABL:ASSI:2 == 5
	TIMES LOCAL:0, 1.5
SIF ABL:ASSI:2 == 6
	TIMES LOCAL:0, 1.6
SIF ABL:ASSI:2 == 7
	TIMES LOCAL:0, 1.7
SIF ABL:ASSI:2 == 8
	TIMES LOCAL:0, 1.8
SIF ABL:ASSI:2 == 9
	TIMES LOCAL:0, 1.9
SIF ABL:ASSI:2 == 10
	TIMES LOCAL:0, 2.0

;욕정の素質補正処理

;자제심だと욕정0.7倍
SIF TALENT:TARGET:자제심
	TIMES LOCAL:1, 0.7
;무관심だと욕정0.7倍
SIF TALENT:TARGET:무관심
	TIMES LOCAL:1, 0.7
;결벽성だと욕정半分
SIF TALENT:TARGET:결벽성
	TIMES LOCAL:1, 0.5
;해방だと욕정1.3倍
SIF TALENT:TARGET:해방
	TIMES LOCAL:1, 1.3
;억압だと욕정半分
SIF TALENT:TARGET:억압
	TIMES LOCAL:1, 0.5
;레이프소망だと욕정1.5倍
SIF TALENT:TARGET:레이프소망
	TIMES LOCAL:1, 1.5
;쾌감에솔직だと욕정1.5倍
SIF TALENT:TARGET:쾌감에솔직
	TIMES LOCAL:1, 1.5
;쾌감을부정だと욕정0.5倍
SIF TALENT:TARGET:쾌감을부정
	TIMES LOCAL:1, 0.5
;도착적だと욕정1.2倍
SIF TALENT:TARGET:도착적
	TIMES LOCAL:1, 1.2
;마조だと욕정1.4倍
SIF TALENT:TARGET:마조
	TIMES LOCAL:1, 1.4
;영구발정だと욕정1.5倍
SIF TALENT:TARGET:영구발정
	TIMES LOCAL:1, 1.5

;能力による補正
SIF ABL:TARGET:1 == 0
	TIMES LOCAL:1, 0.4
SIF ABL:TARGET:1 == 1
	TIMES LOCAL:0, 0.7
SIF ABL:TARGET:1 == 2
	TIMES LOCAL:1, 1.0
SIF ABL:TARGET:1 == 3
	TIMES LOCAL:1, 1.3
SIF ABL:TARGET:1 == 4
	TIMES LOCAL:1, 1.6
SIF ABL:TARGET:1 == 5
	TIMES LOCAL:1, 1.9
SIF ABL:TARGET:1 == 6
	TIMES LOCAL:1, 2.2
SIF ABL:TARGET:1 == 7
	TIMES LOCAL:1, 2.5
SIF ABL:TARGET:1 == 8
	TIMES LOCAL:1, 2.8
SIF ABL:TARGET:1 == 9
	TIMES LOCAL:1, 3.1
SIF ABL:TARGET:1 == 10
	TIMES LOCAL:1, 3.4

;조수의 기교による補正
SIF ABL:ASSI:2 == 0
	TIMES LOCAL:1, 1.0
SIF ABL:ASSI:2 == 1
	TIMES LOCAL:1, 1.1
SIF ABL:ASSI:2 == 2
	TIMES LOCAL:1, 1.2
SIF ABL:ASSI:2 == 3
	TIMES LOCAL:1, 1.3
SIF ABL:ASSI:2 == 4
	TIMES LOCAL:1, 1.4
SIF ABL:ASSI:2 == 5
	TIMES LOCAL:1, 1.5
SIF ABL:ASSI:2 == 6
	TIMES LOCAL:1, 1.6
SIF ABL:ASSI:2 == 7
	TIMES LOCAL:1, 1.7
SIF ABL:ASSI:2 == 8
	TIMES LOCAL:1, 1.8
SIF ABL:ASSI:2 == 9
	TIMES LOCAL:1, 1.9
SIF ABL:ASSI:2 == 10
	TIMES LOCAL:1, 2.0

;굴복の素質補正処理

;프라이드높음だと굴복0.7倍
SIF TALENT:TARGET:프라이드높음
	TIMES LOCAL:2, 0.6
;고결だと굴복0.5倍
SIF TALENT:TARGET:고결
	TIMES LOCAL:2, 0.5
;성악だと굴복0.5倍
SIF TALENT:TARGET:성악
	TIMES LOCAL:2, 0.5
;자제심だと굴복0.7倍
SIF TALENT:TARGET:자제심
	TIMES LOCAL:2, 0.7
;일선을넘지않음だと굴복0.7倍
SIF TALENT:TARGET:일선을넘지않음
	TIMES LOCAL:2, 0.7
;정조무관심だと굴복0.8倍
SIF TALENT:TARGET:정조무관심
	TIMES LOCAL:2, 0.8
;해방だと굴복1.5倍
SIF TALENT:TARGET:해방
	TIMES LOCAL:2, 1.5
;굴복だと굴복2倍
SIF TALENT:TARGET:굴복
	TIMES LOCAL:2, 2.0
;헌신적だと굴복1.3倍
SIF TALENT:TARGET:헌신적
	TIMES LOCAL:2, 1.3
;레이프소망だと굴복1.5倍
SIF TALENT:TARGET:레이프소망
	TIMES LOCAL:2, 1.5
;망신だと굴복1.5倍
SIF TALENT:TARGET:망신
	TIMES LOCAL:2, 1.5

;能力による補正
SIF ABL:TARGET:7 == 0
	TIMES LOCAL:2, 0.4
SIF ABL:TARGET:7 == 1
	TIMES LOCAL:2, 0.7
SIF ABL:TARGET:7 == 2
	TIMES LOCAL:2, 1.0
SIF ABL:TARGET:7 == 3
	TIMES LOCAL:2, 1.3
SIF ABL:TARGET:7 == 4
	TIMES LOCAL:2, 1.6
SIF ABL:TARGET:7 == 5
	TIMES LOCAL:2, 1.9
SIF ABL:TARGET:7 == 6
	TIMES LOCAL:2, 2.2
SIF ABL:TARGET:7 == 7
	TIMES LOCAL:2, 2.5
SIF ABL:TARGET:7 == 8
	TIMES LOCAL:2, 2.8
SIF ABL:TARGET:7 == 9
	TIMES LOCAL:2, 3.1
SIF ABL:TARGET:7 == 10
	TIMES LOCAL:2, 3.4

;조수의 기교による補正
SIF ABL:ASSI:2 == 0
	TIMES LOCAL:2, 1.0
SIF ABL:ASSI:2 == 1
	TIMES LOCAL:2, 1.1
SIF ABL:ASSI:2 == 2
	TIMES LOCAL:2, 1.2
SIF ABL:ASSI:2 == 3
	TIMES LOCAL:2, 1.3
SIF ABL:ASSI:2 == 4
	TIMES LOCAL:2, 1.4
SIF ABL:ASSI:2 == 5
	TIMES LOCAL:2, 1.5
SIF ABL:ASSI:2 == 6
	TIMES LOCAL:2, 1.6
SIF ABL:ASSI:2 == 7
	TIMES LOCAL:2, 1.7
SIF ABL:ASSI:2 == 8
	TIMES LOCAL:2, 1.8
SIF ABL:ASSI:2 == 9
	TIMES LOCAL:2, 1.9
SIF ABL:ASSI:2 == 10
	TIMES LOCAL:2, 2.0

;습득の素質補正処理

;호기심だと습득1.3倍
SIF TALENT:TARGET:호기심
	TIMES LOCAL:3, 1.3
;보수적だと습득0.8倍
SIF TALENT:TARGET:보수적
	TIMES LOCAL:3, 0.8
;습득빠름だと습득1.5倍
SIF TALENT:TARGET:습득빠름
	TIMES LOCAL:3, 1.5
;습득느림だと습득0.7倍
SIF TALENT:TARGET:습득느림
	TIMES LOCAL:3, 0.7
;우등생だと습득1.3倍
SIF TALENT:TARGET:우등생
	TIMES LOCAL:3, 1.3

;能力による補正
SIF ABL:TARGET:2 == 0
	TIMES LOCAL:3, 0.8
SIF ABL:TARGET:2 == 1
	TIMES LOCAL:3, 0.9
SIF ABL:TARGET:2 == 2
	TIMES LOCAL:3, 1.0
SIF ABL:TARGET:2 == 3
	TIMES LOCAL:3, 1.1
SIF ABL:TARGET:2 == 4
	TIMES LOCAL:3, 1.2
SIF ABL:TARGET:2 == 5
	TIMES LOCAL:3, 1.3
SIF ABL:TARGET:2 == 6
	TIMES LOCAL:3, 1.4
SIF ABL:TARGET:2 == 7
	TIMES LOCAL:3, 1.5
SIF ABL:TARGET:2 == 8
	TIMES LOCAL:3, 1.6
SIF ABL:TARGET:2 == 9
	TIMES LOCAL:3, 1.7
SIF ABL:TARGET:2 == 10
	TIMES LOCAL:3, 1.8

;조수의 기교による補正
SIF ABL:ASSI:2 == 0
	TIMES LOCAL:3, 1.0
SIF ABL:ASSI:2 == 1
	TIMES LOCAL:3, 1.2
SIF ABL:ASSI:2 == 2
	TIMES LOCAL:3, 1.4
SIF ABL:ASSI:2 == 3
	TIMES LOCAL:3, 1.6
SIF ABL:ASSI:2 == 4
	TIMES LOCAL:3, 1.8
SIF ABL:ASSI:2 == 5
	TIMES LOCAL:3, 2.0
SIF ABL:ASSI:2 == 6
	TIMES LOCAL:3, 2.2
SIF ABL:ASSI:2 == 7
	TIMES LOCAL:3, 2.4
SIF ABL:ASSI:2 == 8
	TIMES LOCAL:3, 2.6
SIF ABL:ASSI:2 == 9
	TIMES LOCAL:3, 2.8
SIF ABL:ASSI:2 == 10
	TIMES LOCAL:3, 3.0

;치정の素質補正処理

;겁쟁이だと치정1.5倍
SIF TALENT:TARGET:겁쟁이
	TIMES LOCAL:4, 1.5
;부끄럼쟁이だと치정1.5倍
SIF TALENT:TARGET:부끄럼쟁이
	TIMES LOCAL:4, 1.5
;수치심없음だと치정0.5倍
SIF TALENT:TARGET:수치심없음
	TIMES LOCAL:4, 0.5
;Ｂ열등감だと치정1.3倍
SIF TALENT:TARGET:Ｂ열등감
	TIMES LOCAL:4, 1.3
;유아or유치or유아퇴행だと치정0.5倍
SIF TALENT:TARGET:유아 || TALENT:TARGET:유치 || TALENT:TARGET:유아퇴행
	TIMES LOCAL:4, 0.5
;중학생だと치정2倍（年頃ボーナス）
SIF TALENT:TARGET:중학생
	TIMES LOCAL:4, 2.0
;조수가 소악마だと치정1.5倍
SIF TALENT:ASSI:소악마
	TIMES LOCAL:4, 2.0

;能力による補正
SIF ABL:TARGET:8 == 0
	TIMES LOCAL:4, 1.5
SIF ABL:TARGET:8 == 1
	TIMES LOCAL:4, 1.4
SIF ABL:TARGET:8 == 2
	TIMES LOCAL:4, 1.3
SIF ABL:TARGET:8 == 3
	TIMES LOCAL:4, 1.2
SIF ABL:TARGET:8 == 4
	TIMES LOCAL:4, 1.1
SIF ABL:TARGET:8 == 5
	TIMES LOCAL:4, 1.0
SIF ABL:TARGET:8 == 6
	TIMES LOCAL:4, 0.9
SIF ABL:TARGET:8 == 7
	TIMES LOCAL:4, 0.8
SIF ABL:TARGET:8 == 8
	TIMES LOCAL:4, 0.7
SIF ABL:TARGET:8 == 9
	TIMES LOCAL:4, 0.6
SIF ABL:TARGET:8 == 10
	TIMES LOCAL:4, 0.5

;조수의 기교による補正
SIF ABL:ASSI:2 == 0
	TIMES LOCAL:4, 1.0
SIF ABL:ASSI:2 == 1
	TIMES LOCAL:4, 1.1
SIF ABL:ASSI:2 == 2
	TIMES LOCAL:4, 1.2
SIF ABL:ASSI:2 == 3
	TIMES LOCAL:4, 1.3
SIF ABL:ASSI:2 == 4
	TIMES LOCAL:4, 1.4
SIF ABL:ASSI:2 == 5
	TIMES LOCAL:4, 1.5
SIF ABL:ASSI:2 == 6
	TIMES LOCAL:4, 1.6
SIF ABL:ASSI:2 == 7
	TIMES LOCAL:4, 1.7
SIF ABL:ASSI:2 == 8
	TIMES LOCAL:4, 1.8
SIF ABL:ASSI:2 == 9
	TIMES LOCAL:4, 1.9
SIF ABL:ASSI:2 == 10
	TIMES LOCAL:4, 2.0

;고통の素質補正処理

;아픔에약함だと고통2.0倍
SIF TALENT:TARGET:아픔에약함
	TIMES LOCAL:5, 2.0
;아픔에강함だと고통0.5倍
SIF TALENT:TARGET:아픔에강함
	TIMES LOCAL:5, 0.5
;小柄体系だと고통1.2倍
SIF TALENT:TARGET:작은체형
	TIMES LOCAL:5, 1.2

;조수의 기교による補正
SIF ABL:ASSI:2 == 0
	TIMES LOCAL:5, 1.0
SIF ABL:ASSI:2 == 1
	TIMES LOCAL:5, 1.1
SIF ABL:ASSI:2 == 2
	TIMES LOCAL:5, 1.2
SIF ABL:ASSI:2 == 3
	TIMES LOCAL:5, 1.3
SIF ABL:ASSI:2 == 4
	TIMES LOCAL:5, 1.4
SIF ABL:ASSI:2 == 5
	TIMES LOCAL:5, 1.5
SIF ABL:ASSI:2 == 6
	TIMES LOCAL:5, 1.6
SIF ABL:ASSI:2 == 7
	TIMES LOCAL:5, 1.7
SIF ABL:ASSI:2 == 8
	TIMES LOCAL:5, 1.8
SIF ABL:ASSI:2 == 9
	TIMES LOCAL:5, 1.9
SIF ABL:ASSI:2 == 10
	TIMES LOCAL:5, 2.0

;쾌Ｃの素質補正処理

;음핵だと쾌Ｃ1.5倍
SIF TALENT:TARGET:음핵
	TIMES LOCAL:6, 1.5
;Ｃ둔감だと쾌Ｃ0.5倍
SIF TALENT:TARGET:Ｃ둔감
	TIMES LOCAL:6, 0.5
;Ｃ민감だと쾌Ｃ2.0倍
SIF TALENT:TARGET:Ｃ민감
	TIMES LOCAL:6, 2.0

;조수의 기교による補正
SIF ABL:ASSI:2 == 0
	TIMES LOCAL:6, 1.0
SIF ABL:ASSI:2 == 1
	TIMES LOCAL:6, 1.1
SIF ABL:ASSI:2 == 2
	TIMES LOCAL:6, 1.2
SIF ABL:ASSI:2 == 3
	TIMES LOCAL:6, 1.3
SIF ABL:ASSI:2 == 4
	TIMES LOCAL:6, 1.4
SIF ABL:ASSI:2 == 5
	TIMES LOCAL:6, 1.5
SIF ABL:ASSI:2 == 6
	TIMES LOCAL:6, 1.6
SIF ABL:ASSI:2 == 7
	TIMES LOCAL:6, 1.7
SIF ABL:ASSI:2 == 8
	TIMES LOCAL:6, 1.8
SIF ABL:ASSI:2 == 9
	TIMES LOCAL:6, 1.9
SIF ABL:ASSI:2 == 10
	TIMES LOCAL:6, 2.0

;쾌Ｂの素質補正処理

;음유だと쾌Ｂ1.5倍
SIF TALENT:TARGET:음유
	TIMES LOCAL:7, 1.5
;Ｂ둔감だと쾌Ｂ0.5倍
SIF TALENT:TARGET:Ｂ둔감
	TIMES LOCAL:7, 0.5
;Ｂ민감だと쾌Ｂ2.0倍
SIF TALENT:TARGET:Ｂ민감
	TIMES LOCAL:7, 2.0
;빈유だと쾌Ｂ1.5倍
SIF TALENT:TARGET:빈유
	TIMES LOCAL:7, 1.5
;절벽だと쾌Ｂ2.0倍
SIF TALENT:TARGET:절벽
	TIMES LOCAL:7, 2.0
;거유だと쾌Ｂ0.8倍
SIF TALENT:TARGET:거유
	TIMES LOCAL:7, 0.8
;폭유だと쾌Ｂ0.6倍
SIF TALENT:TARGET:폭유
	TIMES LOCAL:7, 0.6

;조수의 기교による補正
SIF ABL:ASSI:2 == 0
	TIMES LOCAL:7, 1.0
SIF ABL:ASSI:2 == 1
	TIMES LOCAL:7, 1.1
SIF ABL:ASSI:2 == 2
	TIMES LOCAL:7, 1.2
SIF ABL:ASSI:2 == 3
	TIMES LOCAL:7, 1.3
SIF ABL:ASSI:2 == 4
	TIMES LOCAL:7, 1.4
SIF ABL:ASSI:2 == 5
	TIMES LOCAL:7, 1.5
SIF ABL:ASSI:2 == 6
	TIMES LOCAL:7, 1.6
SIF ABL:ASSI:2 == 7
	TIMES LOCAL:7, 1.7
SIF ABL:ASSI:2 == 8
	TIMES LOCAL:7, 1.8
SIF ABL:ASSI:2 == 9
	TIMES LOCAL:7, 1.9
SIF ABL:ASSI:2 == 10
	TIMES LOCAL:7, 2.0

;レズ（ゲイ）経験増加処理
IF TALENT:290 == 0 && TALENT:ASSI:290 == 0
	PRINTFORML %EXPNAME:40%＋{N}
	EXP:40 += N
ELSEIF TALENT:290 && TALENT:ASSI:290
	PRINTFORML %EXPNAME:41%＋{N}
	EXP:41 += N
ENDIF

;[소악마]자위경험処理
SIF TALENT:ASSI:소악마 == 1 && TALENT:TARGET:거절 == 0 && TALENT:TARGET:철벽 == 0
	PRINTFORML %EXPNAME:10%＋3

;절정経験増加処理
SIF N*100*ABL:0/500 > 0
	PRINTFORML %EXPNAME:2%＋{N*100*ABL:0/500}
EXP:2 += N*100*ABL:0/500

;대상と조수가 異性
IF ( TALENT:TARGET:남자 == 0 && TALENT:ASSI:남자 == 1 ) || ( TALENT:TARGET:남자 == 1 && TALENT:ASSI:남자 == 0 )
	SIF TALENT:TARGET:남자 == 1
		PRINTFORML %EXPNAME:3%＋{N}
	SIF TALENT:ASSI:남자 == 1
		PRINTFORML %EXPNAME:20%＋{N}
	SIF TALENT:ASSI:남자 == 1
		PRINTFORML %EXPNAME:21%＋{N}
	SIF TALENT:ASSI:남자 == 1
		PRINTFORML %EXPNAME:22%＋{N}
	SIF TALENT:ASSI:남자 == 1
		PRINTFORML %CALLNAME:ASSI%の%EXPNAME:3%＋{N}
	SIF TALENT:TARGET:남자 == 1
		PRINTFORML %CALLNAME:ASSI%の%EXPNAME:20%＋{N}
	SIF TALENT:TARGET:남자 == 1
		PRINTFORML %CALLNAME:ASSI%の%EXPNAME:21%＋{N}
	SIF TALENT:TARGET:남자 == 1
		PRINTFORML %CALLNAME:ASSI%の%EXPNAME:22%＋{N}
	SIF TALENT:TARGET:남자 == 1
		EXP:ASSI:3 += N
	SIF TALENT:ASSI:남자 == 1
		EXP:3 += N
	SIF TALENT:TARGET:남자 == 1
		EXP:ASSI:20 += N
	SIF TALENT:ASSI:남자 == 1
		EXP:20 += N
	SIF TALENT:TARGET:남자 == 1
		EXP:ASSI:21 += N
	SIF TALENT:ASSI:남자 == 1
		EXP:21 += N
	SIF TALENT:TARGET:남자 == 1
		EXP:ASSI:22 += N
	SIF TALENT:ASSI:남자 == 1
		EXP:22 += N

;대상と조수가 후타나리
ELSEIF ( TALENT:TARGET:후타나리 == 1 && TALENT:ASSI:후타나리 == 1 ) || ( TALENT:TARGET:후타나리 == 1 && TALENT:ASSI:반인반요 == 1 ) || ( TALENT:TARGET:반인반요 == 1 && TALENT:ASSI:후타나리 == 1 )
	PRINTFORML %EXPNAME:3%＋{N/2}
	PRINTFORML %EXPNAME:20%＋{N/2}
	PRINTFORML %EXPNAME:21%＋{N}
	PRINTFORML %EXPNAME:22%＋{N}
	PRINTFORML %CALLNAME:ASSI%の%EXPNAME:3%＋{N}
	PRINTFORML %CALLNAME:ASSI%の%EXPNAME:20%＋{N/2}
	PRINTFORML %CALLNAME:ASSI%の%EXPNAME:21%＋{N}
	PRINTFORML %CALLNAME:ASSI%の%EXPNAME:22%＋{N}
	EXP:3 += N/2
	EXP:20 += N/2
	EXP:21 += N
	EXP:22 += N
	EXP:ASSI:3 += N
	EXP:ASSI:20 += N
	EXP:ASSI:21 += N
	EXP:ASSI:22 += N

;男同士
ELSEIF TALENT:290 && TALENT:ASSI:290
	PRINTFORML %EXPNAME:3%＋{N/2}
	PRINTFORML %EXPNAME:20%＋{N/2}
	PRINTFORML %EXPNAME:21%＋{N}
	PRINTFORML %EXPNAME:22%＋{N}
	PRINTFORML %CALLNAME:ASSI%の%EXPNAME:3%＋{N/2}
	PRINTFORML %CALLNAME:ASSI%の%EXPNAME:20%＋{N/2}
	PRINTFORML %CALLNAME:ASSI%の%EXPNAME:21%＋{N}
	PRINTFORML %CALLNAME:ASSI%の%EXPNAME:22%＋{N}
	EXP:3 += N/2
	EXP:20 += N/2
	EXP:21 += N
	EXP:22 += N
	EXP:ASSI:3 += N/2
	EXP:ASSI:20 += N/2
	EXP:ASSI:21 += N
	EXP:ASSI:22 += N

;조수가 후타나리（조수가 후타나리、대상がオンナ）
ELSEIF TALENT:ASSI:후타나리 == 1 || TALENT:ASSI:반인반요 == 1
	PRINTFORML %EXPNAME:20%＋{N/2}
	PRINTFORML %EXPNAME:21%＋{N}
	PRINTFORML %EXPNAME:22%＋{N}
	PRINTFORML %CALLNAME:ASSI%の%EXPNAME:3%＋{N/2}
	EXP:20 += N
	EXP:21 += N
	EXP:22 += N/2
	EXP:ASSI:3 += N/2

;대상が후타나리（조수가 オンナ）
ELSEIF TALENT:TARGET:후타나리 || TALENT:TARGET:반인반요
	PRINTFORML %EXPNAME:3%＋{N/2}
	PRINTFORML %CALLNAME:ASSI%の%EXPNAME:20%＋{N/2}
	PRINTFORML %CALLNAME:ASSI%の%EXPNAME:21%＋{N}
	PRINTFORML %CALLNAME:ASSI%の%EXPNAME:22%＋{N}
	EXP:3 += N/2
	EXP:ASSI:20 += N/2
	EXP:ASSI:21 += N
	EXP:ASSI:22 += N
ELSE

ENDIF

;조수가 새드
IF TALENT:ASSI:새드
	PRINTFORML %EXPNAME:30%＋{N}
	PRINTFORML %CALLNAME:ASSI%の%EXPNAME:32%＋{N}
	EXP:30 += N
	EXP:ASSI:32 += N
	SIF TALENT:TARGET:도착적 == 1
		TIMES LOCAL:1, 1.2
ENDIF

PRINTFORML %PALAMNAME:0%의 구슬＋{LOCAL:6}
;조수가 Ｂ열등감の場合、快B의 구슬도 얻는다
IF TALENT:ASSI:Ｂ열등감 == 1 && TALENT:TARGET:남자 == 0
	PRINTFORML %PALAMNAME:3%의 구슬＋{LOCAL:7}
	JUEL:3 += LOCAL:7
ELSEIF TALENT:ASSI:소악마 == 1 && TALENT:TARGET:거절 == 0 && TALENT:TARGET:철벽 == 0
	PRINTFORML %PALAMNAME:3%의 구슬＋{LOCAL:7/3}
	JUEL:3 += (LOCAL:7/2)
ENDIF

PRINTFORML %PALAMNAME:5%의 구슬＋{LOCAL:0}
PRINTFORML %PALAMNAME:6%의 구슬＋{LOCAL:1}
;대상がオンナで페니스조교される場合굴복がつく
SIF ( TALENT:TARGET:남자 == 0 && TALENT:ASSI:남자 == 1 ) || ( TALENT:TARGET:남자 == 0 && TALENT:ASSI:후타나리 == 1 ) || ( TALENT:TARGET:남자 == 0 && TALENT:ASSI:반인반요 == 1 ) || (TALENT:TARGET:후타나리 == 1 && TALENT:ASSI:후타나리 == 1 ) || (TALENT:TARGET:후타나리 == 1 && TALENT:ASSI:남자 == 1 ) || (TALENT:TARGET:후타나리 == 1 && TALENT:ASSI:반인반요 == 1 ) || ( TALENT:TARGET:반인반요 == 0 && TALENT:ASSI:남자 == 1 ) || ( TALENT:TARGET:반인반요 == 0 && TALENT:ASSI:후타나리 == 1 ) || ( TALENT:TARGET:반인반요 == 0 && TALENT:ASSI:반인반요 == 1 )
	PRINTFORML %PALAMNAME:7%의 구슬＋{LOCAL:2}
PRINTFORML %PALAMNAME:8%의 구슬＋{LOCAL:3}
;대상と조수가 女であれば치정がつく
SIF TALENT:TARGET:남자 == 0 && TALENT:ASSI:남자 == 0
	PRINTFORML %PALAMNAME:9%의 구슬＋{LOCAL:4}

IF TALENT:ASSI:193 && (LOCAL:5*ABL:9 > 0)
	PRINTFORML %PALAMNAME:10%의 구슬＋{LOCAL:5}
ENDIF

JUEL:0 += LOCAL:2*ABL:3
IF TALENT:ASSI:Ｂ열등감 == 1 && TALENT:TARGET:남자 == 0
	JUEL:3 += LOCAL:2*ABL:3
ELSEIF TALENT:ASSI:소악마 == 1 && TALENT:TARGET:거절 == 0 && TALENT:TARGET:철벽 == 0
	JUEL:3 += LOCAL:2
ENDIF

JUEL:0 += LOCAL:6
JUEL:5 += LOCAL:0
JUEL:6 += LOCAL:1
JUEL:7 += LOCAL:2
JUEL:8 += LOCAL:3
JUEL:9 += LOCAL:4
JUEL:10 += LOCAL:5

WAIT
DRAWLINE

;レズプレイ(조수가 충동적)
@SELF_CHECK8
;イベント입上呼び出し
DRAWLINE
TFLAG:13 = 34
CALL KOJO_MESSAGE_EVENT
N = 0

;레즈중독 아니면 게이중독
N = 1
IF ABL:17 == 1 || ABL:21 == 1
	N += 1
ELSEIF ABL:17 == 2 || ABL:21 == 2
	N += 2
ELSEIF ABL:17 == 3 || ABL:21 == 3
	N += 3
ELSEIF ABL:17 == 4 || ABL:21 == 4
	N += 4
ELSEIF ABL:17 == 5 || ABL:21 == 5
	N += 5
ELSEIF ABL:17 == 6 || ABL:21 == 6
	N += 6
ELSEIF ABL:17 == 7 || ABL:21 == 7
	N += 7
ELSEIF ABL:17 == 8 || ABL:21 == 8
	N += 8
ELSEIF ABL:17 == 9 || ABL:21 == 9
	N += 9
ELSEIF ABL:17 >= 10 || ABL:21 >= 10
	N += 10
ENDIF
IF ABL:ASSI:17 == 1 || ABL:ASSI:21 == 1
	N += 1
ELSEIF ABL:ASSI:17 == 2 || ABL:ASSI:21 == 2
	N += 2
ELSEIF ABL:ASSI:17 == 3 || ABL:ASSI:21 == 3
	N += 3
ELSEIF ABL:ASSI:17 == 4 || ABL:ASSI:21 == 4
	N += 5
ELSEIF ABL:ASSI:17 == 5 || ABL:ASSI:21 == 5
	N += 5
ELSEIF ABL:ASSI:17 == 6 || ABL:ASSI:21 == 6
	N += 6
ELSEIF ABL:ASSI:17 == 7 || ABL:ASSI:21 == 7
	N += 7
ELSEIF ABL:ASSI:17 == 8 || ABL:ASSI:21 == 8
	N += 8
ELSEIF ABL:ASSI:17 == 9 || ABL:ASSI:21 == 9
	N += 9
ELSEIF ABL:ASSI:17 >= 10 || ABL:ASSI:21 >= 10
	N += 10
ENDIF

;相性処理
A = NO:ASSI
LOCAL = RELATION:A
SIF RELATION:A == 0
	LOCAL = 100
N = (N*LOCAL)/100

;바이
SIF TALENT:TARGET:바이 == 1 || TALENT:ASSI:바이 == 1
	N += 3

;[소악마]조수は대상を자위をさせる
SIF TALENT:ASSI:소악마 == 1 && TALENT:TARGET:거절 == 0 && TALENT:TARGET:철벽 == 0
	N += 3

;충동적基本値
SIF TALENT:59
	N += 5
;[결벽성]は行為回数マイナス
SIF TALENT:60
	N -= 2
;[거절]は行為回数マイナス
SIF TALENT:159
	N -= 2
;[철벽]は行為回数が半分になる
SIF TALENT:91
	N = N/2
SIF N <= 0
	N = 1

;순종or공포의 구슬의 수
LOCAL:0 = N*25
;욕정의 구슬의 수
LOCAL:1 = N*25
;굴복의 구슬의 수
LOCAL:2 = N*25
;습득의 구슬의 수
LOCAL:3 = N*25
;치정의 구슬의 수
LOCAL:4 = N*25
;고통의 구슬의 수
LOCAL:5 = N*25
;쾌Ｃ의 구슬의 수
LOCAL:6 = N*20*ABL:0
;쾌Ｂ의 구슬의 수
LOCAL:7 = N*20*ABL:3

;([새드]or[광기]or[흡혈귀]or[요마]は순종ではなく공포が増える
IF TALENT:ASSI:193 || TALENT:ASSI:291 || TALENT:ASSI:282 || TALENT:ASSI:297
;겁쟁이だと공포3倍
	SIF TALENT:TARGET:20
		TIMES LOCAL:0, 3
;반항적か꿋꿋함だと공포0.7倍
	SIF TALENT:TARGET:21 || TALENT:TARGET:22
		TIMES LOCAL:0, 0.7
;감정풍부だと공포1.3倍
	SIF TALENT:TARGET:30
		TIMES LOCAL:0, 1.3
;감정부족だと공포0.7倍
	SIF TALENT:TARGET:30
		TIMES LOCAL:0, 0.7
;무관심だと공포0.7倍
	SIF TALENT:TARGET:51
		TIMES LOCAL:0, 0.7
;고결だと공포半分
	SIF TALENT:TARGET:34
		TIMES LOCAL:0, 0.5
;부끄럼쟁이だと공포1.5倍
	SIF TALENT:TARGET:85
		TIMES LOCAL:0, 1.5
;小柄体系だと공포1.2倍
	SIF TALENT:TARGET:230
	TIMES LOCAL:0, 1.2
;저항だと공포半分
	SIF TALENT:TARGET:84
		TIMES LOCAL:0, 0.5

;조수의 기교による補正
	SIF ABL:ASSI:2 == 0
		TIMES LOCAL:0, 1.0
	SIF ABL:ASSI:2 == 1
		TIMES LOCAL:0, 1.1
	SIF ABL:ASSI:2 == 2
		TIMES LOCAL:0, 1.2
	SIF ABL:ASSI:2 == 3
		TIMES LOCAL:0, 1.3
	SIF ABL:ASSI:2 == 4
		TIMES LOCAL:0, 1.4
	SIF ABL:ASSI:2 == 5
		TIMES LOCAL:0, 1.5
	SIF ABL:ASSI:2 == 6
		TIMES LOCAL:0, 1.6
	SIF ABL:ASSI:2 == 7
		TIMES LOCAL:0, 1.7
	SIF ABL:ASSI:2 == 8
		TIMES LOCAL:0, 1.8
	SIF ABL:ASSI:2 == 9
		TIMES LOCAL:0, 1.9
	SIF ABL:ASSI:2 == 10
		TIMES LOCAL:0, 2.0
;조수가 [흡혈귀]だと공포의 구슬 추가（흡혈경험+1ということ)
	SIF TALENT:ASSI:282
		LOCAL:0 = LOCAL:0 + 400
ELSE
;얌전함だと순종1.5倍
	SIF TALENT:TARGET:얌전함
		TIMES LOCAL:0, 1.5
;솔직だと순종1.5倍
	SIF TALENT:TARGET:솔직
		TIMES LOCAL:0, 1.5
;프라이드높음or꿋꿋함or건방짐or츤데레だと0.7倍
	SIF TALENT:TARGET:프라이드높음 || TALENT:TARGET:꿋꿋함 || TALENT:TARGET:건방짐 || TALENT:TARGET:츤데레
		TIMES LOCAL:0, 0.7
;성악だと순종0.3倍
	SIF TALENT:TARGET:성악
		TIMES LOCAL:0, 0.3
;감정풍부だと순종1.3倍
	SIF TALENT:TARGET:감정풍부
		TIMES LOCAL:0, 1.3
;감정부족だと순종0.7倍
	SIF TALENT:TARGET:감정부족
		TIMES LOCAL:0, 0.7
;무관심だと순종0.8倍
	SIF TALENT:TARGET:무관심
		TIMES LOCAL:0, 0.8
;레이프소망だと순종2.0倍
	SIF TALENT:TARGET:레이프소망
		TIMES LOCAL:0, 2.0
;일선을넘지않음だと순종0.7倍
	SIF TALENT:TARGET:일선을넘지않음
		TIMES LOCAL:0, 1.2
;저항だと순종半分
	SIF TALENT:TARGET:저항
		TIMES LOCAL:0, 0.5

;能力による補正
	SIF ABL:TARGET:0 == 0
		TIMES LOCAL:0, 0.4
	SIF ABL:TARGET:0 == 1
		TIMES LOCAL:0, 0.7
	SIF ABL:TARGET:0 == 2
		TIMES LOCAL:0, 1.0
	SIF ABL:TARGET:0 == 3
		TIMES LOCAL:0, 1.3
	SIF ABL:TARGET:0 == 4
		TIMES LOCAL:0, 1.6
	SIF ABL:TARGET:0 == 5
		TIMES LOCAL:0, 1.9
	SIF ABL:TARGET:0 == 6
		TIMES LOCAL:0, 2.2
	SIF ABL:TARGET:0 == 7
		TIMES LOCAL:0, 2.5
	SIF ABL:TARGET:0 == 8
		TIMES LOCAL:0, 2.8
	SIF ABL:TARGET:0 == 9
		TIMES LOCAL:0, 3.1
	SIF ABL:TARGET:0 == 10
		TIMES LOCAL:0, 3.4

;조수의 기교による補正
	SIF ABL:ASSI:2 == 0
		TIMES LOCAL:0, 1.0
	SIF ABL:ASSI:2 == 1
		TIMES LOCAL:0, 1.1
	SIF ABL:ASSI:2 == 2
		TIMES LOCAL:0, 1.2
	SIF ABL:ASSI:2 == 3
		TIMES LOCAL:0, 1.3
	SIF ABL:ASSI:2 == 4
		TIMES LOCAL:0, 1.4
	SIF ABL:ASSI:2 == 5
		TIMES LOCAL:0, 1.5
	SIF ABL:ASSI:2 == 6
		TIMES LOCAL:0, 1.6
	SIF ABL:ASSI:2 == 7
		TIMES LOCAL:0, 1.7
	SIF ABL:ASSI:2 == 8
		TIMES LOCAL:0, 1.8
	SIF ABL:ASSI:2 == 9
		TIMES LOCAL:0, 1.9
	SIF ABL:ASSI:2 == 10
		TIMES LOCAL:0, 2.0
ENDIF

;욕정の素質補正処理

;자제심だと욕정0.7倍
SIF TALENT:TARGET:자제심
	TIMES LOCAL:1, 0.7
;무관심だと욕정0.7倍
SIF TALENT:TARGET:무관심
	TIMES LOCAL:1, 0.7
;결벽성だと욕정半分
SIF TALENT:TARGET:결벽성
	TIMES LOCAL:1, 0.5
;해방だと욕정1.3倍
SIF TALENT:TARGET:해방
	TIMES LOCAL:1, 1.3
;억압だと욕정半分
SIF TALENT:TARGET:억압
	TIMES LOCAL:1, 0.5
;레이프소망だと욕정2.0倍
SIF TALENT:TARGET:레이프소망
	TIMES LOCAL:1, 2.0
;쾌감에솔직だと욕정1.5倍
SIF TALENT:TARGET:쾌감에솔직
	TIMES LOCAL:1, 1.5
;쾌감을부정だと욕정0.5倍
SIF TALENT:TARGET:쾌감을부정
	TIMES LOCAL:1, 0.5
;도착적だと욕정1.2倍
SIF TALENT:TARGET:도착적
	TIMES LOCAL:1, 1.2
;마조だと욕정1.4倍
SIF TALENT:TARGET:마조
	TIMES LOCAL:1, 1.4
;영구발정だと욕정1.5倍
SIF TALENT:TARGET:영구발정
	TIMES LOCAL:1, 1.5

;能力による補正
SIF ABL:TARGET:1 == 0
	TIMES LOCAL:1, 0.4
SIF ABL:TARGET:1 == 1
	TIMES LOCAL:0, 0.7
SIF ABL:TARGET:1 == 2
	TIMES LOCAL:1, 1.0
SIF ABL:TARGET:1 == 3
	TIMES LOCAL:1, 1.3
SIF ABL:TARGET:1 == 4
	TIMES LOCAL:1, 1.6
SIF ABL:TARGET:1 == 5
	TIMES LOCAL:1, 1.9
SIF ABL:TARGET:1 == 6
	TIMES LOCAL:1, 2.2
SIF ABL:TARGET:1 == 7
	TIMES LOCAL:1, 2.5
SIF ABL:TARGET:1 == 8
	TIMES LOCAL:1, 2.8
SIF ABL:TARGET:1 == 9
	TIMES LOCAL:1, 3.1
SIF ABL:TARGET:1 == 10
	TIMES LOCAL:1, 3.4

;조수의 기교による補正
SIF ABL:ASSI:2 == 0
	TIMES LOCAL:1, 1.0
SIF ABL:ASSI:2 == 1
	TIMES LOCAL:1, 1.1
SIF ABL:ASSI:2 == 2
	TIMES LOCAL:1, 1.2
SIF ABL:ASSI:2 == 3
	TIMES LOCAL:1, 1.3
SIF ABL:ASSI:2 == 4
	TIMES LOCAL:1, 1.4
SIF ABL:ASSI:2 == 5
	TIMES LOCAL:1, 1.5
SIF ABL:ASSI:2 == 6
	TIMES LOCAL:1, 1.6
SIF ABL:ASSI:2 == 7
	TIMES LOCAL:1, 1.7
SIF ABL:ASSI:2 == 8
	TIMES LOCAL:1, 1.8
SIF ABL:ASSI:2 == 9
	TIMES LOCAL:1, 1.9
SIF ABL:ASSI:2 == 10
	TIMES LOCAL:1, 2.0

;굴복の素質補正処理

;프라이드높음だと굴복0.7倍
SIF TALENT:TARGET:프라이드높음
	TIMES LOCAL:2, 0.7
;고결だと굴복0.5倍
SIF TALENT:TARGET:고결
	TIMES LOCAL:2, 0.5
;성악だと굴복0.5倍
SIF TALENT:TARGET:성악
	TIMES LOCAL:2, 0.5
;자제심だと굴복0.7倍
SIF TALENT:TARGET:자제심
	TIMES LOCAL:2, 0.7
;일선을넘지않음だと굴복0.7倍
SIF TALENT:TARGET:일선을넘지않음
	TIMES LOCAL:2, 0.7
;정조무관심だと굴복0.8倍
SIF TALENT:TARGET:정조무관심
	TIMES LOCAL:2, 0.8
;해방だと굴복1.5倍
SIF TALENT:TARGET:해방
	TIMES LOCAL:2, 1.5
;굴복だと굴복2倍
SIF TALENT:TARGET:굴복
	TIMES LOCAL:2, 2.0
;헌신적だと굴복1.3倍
SIF TALENT:TARGET:헌신적
	TIMES LOCAL:2, 1.3
;레이프소망だと굴복2.0倍
SIF TALENT:TARGET:레이프소망
	TIMES LOCAL:2, 2.0
;망신だと굴복1.5倍
SIF TALENT:TARGET:망신
	TIMES LOCAL:2, 1.5

;能力による補正
SIF ABL:TARGET:7 == 0
	TIMES LOCAL:2, 0.4
SIF ABL:TARGET:7 == 1
	TIMES LOCAL:2, 0.7
SIF ABL:TARGET:7 == 2
	TIMES LOCAL:2, 1.0
SIF ABL:TARGET:7 == 3
	TIMES LOCAL:2, 1.3
SIF ABL:TARGET:7 == 4
	TIMES LOCAL:2, 1.6
SIF ABL:TARGET:7 == 5
	TIMES LOCAL:2, 1.9
SIF ABL:TARGET:7 == 6
	TIMES LOCAL:2, 2.2
SIF ABL:TARGET:7 == 7
	TIMES LOCAL:2, 2.5
SIF ABL:TARGET:7 == 8
	TIMES LOCAL:2, 2.8
SIF ABL:TARGET:7 == 9
	TIMES LOCAL:2, 3.1
SIF ABL:TARGET:7 == 10
	TIMES LOCAL:2, 3.4

;조수의 기교による補正
SIF ABL:ASSI:2 == 0
	TIMES LOCAL:2, 1.0
SIF ABL:ASSI:2 == 1
	TIMES LOCAL:2, 1.1
SIF ABL:ASSI:2 == 2
	TIMES LOCAL:2, 1.2
SIF ABL:ASSI:2 == 3
	TIMES LOCAL:2, 1.3
SIF ABL:ASSI:2 == 4
	TIMES LOCAL:2, 1.4
SIF ABL:ASSI:2 == 5
	TIMES LOCAL:2, 1.5
SIF ABL:ASSI:2 == 6
	TIMES LOCAL:2, 1.6
SIF ABL:ASSI:2 == 7
	TIMES LOCAL:2, 1.7
SIF ABL:ASSI:2 == 8
	TIMES LOCAL:2, 1.8
SIF ABL:ASSI:2 == 9
	TIMES LOCAL:2, 1.9
SIF ABL:ASSI:2 == 10
	TIMES LOCAL:2, 2.0

;조수가 [흡혈귀]だと굴복의 구슬 추가（흡혈경험+1ということ)
SIF TALENT:ASSI:282
	LOCAL:2 = LOCAL:2 + 300

;습득の素質補正処理

;호기심だと습득1.3倍
SIF TALENT:TARGET:호기심
	TIMES LOCAL:3, 1.3
;보수적だと습득0.8倍
SIF TALENT:TARGET:보수적
	TIMES LOCAL:3, 0.8
;습득빠름だと습득1.5倍
SIF TALENT:TARGET:습득빠름
	TIMES LOCAL:3, 1.5
;습득느림だと습득0.7倍
SIF TALENT:TARGET:습득느림
	TIMES LOCAL:3, 0.7
;우등생だと습득1.3倍
SIF TALENT:TARGET:우등생
	TIMES LOCAL:3, 1.3

;能力による補正
SIF ABL:TARGET:2 == 0
	TIMES LOCAL:3, 0.8
SIF ABL:TARGET:2 == 1
	TIMES LOCAL:3, 0.9
SIF ABL:TARGET:2 == 2
	TIMES LOCAL:3, 1.0
SIF ABL:TARGET:2 == 3
	TIMES LOCAL:3, 1.1
SIF ABL:TARGET:2 == 4
	TIMES LOCAL:3, 1.2
SIF ABL:TARGET:2 == 5
	TIMES LOCAL:3, 1.3
SIF ABL:TARGET:2 == 6
	TIMES LOCAL:3, 1.4
SIF ABL:TARGET:2 == 7
	TIMES LOCAL:3, 1.5
SIF ABL:TARGET:2 == 8
	TIMES LOCAL:3, 1.6
SIF ABL:TARGET:2 == 9
	TIMES LOCAL:3, 1.7
SIF ABL:TARGET:2 == 10
	TIMES LOCAL:3, 1.8

;조수의 기교による補正
SIF ABL:ASSI:2 == 0
	TIMES LOCAL:3, 1.0
SIF ABL:ASSI:2 == 1
	TIMES LOCAL:3, 1.2
SIF ABL:ASSI:2 == 2
	TIMES LOCAL:3, 1.4
SIF ABL:ASSI:2 == 3
	TIMES LOCAL:3, 1.6
SIF ABL:ASSI:2 == 4
	TIMES LOCAL:3, 1.8
SIF ABL:ASSI:2 == 5
	TIMES LOCAL:3, 2.0
SIF ABL:ASSI:2 == 6
	TIMES LOCAL:3, 2.2
SIF ABL:ASSI:2 == 7
	TIMES LOCAL:3, 2.4
SIF ABL:ASSI:2 == 8
	TIMES LOCAL:3, 2.6
SIF ABL:ASSI:2 == 9
	TIMES LOCAL:3, 2.8
SIF ABL:ASSI:2 == 10
	TIMES LOCAL:3, 3.0

;치정の素質補正処理

;겁쟁이だと치정1.5倍
SIF TALENT:TARGET:겁쟁이
	TIMES LOCAL:4, 1.5
;부끄럼쟁이だと치정1.5倍
SIF TALENT:TARGET:부끄럼쟁이
	TIMES LOCAL:4, 1.5
;수치심없음だと치정0.5倍
SIF TALENT:TARGET:수치심없음
	TIMES LOCAL:4, 0.5
;Ｂ열등감だと치정1.3倍
SIF TALENT:TARGET:Ｂ열등감
	TIMES LOCAL:4, 1.3
;유아or유치or유아퇴행だと치정0.5倍
SIF TALENT:TARGET:유아 || TALENT:TARGET:유치 || TALENT:TARGET:유아퇴행
	TIMES LOCAL:4, 0.5
;중학생だと치정2倍（年頃ボーナス）
SIF TALENT:TARGET:중학생
	TIMES LOCAL:4, 2.0
;조수가 소악마だと치정1.5倍
SIF TALENT:ASSI:소악마
	TIMES LOCAL:4, 2.0

;能力による補正
SIF ABL:TARGET:8 == 0
	TIMES LOCAL:4, 1.5
SIF ABL:TARGET:8 == 1
	TIMES LOCAL:4, 1.4
SIF ABL:TARGET:8 == 2
	TIMES LOCAL:4, 1.3
SIF ABL:TARGET:8 == 3
	TIMES LOCAL:4, 1.2
SIF ABL:TARGET:8 == 4
	TIMES LOCAL:4, 1.1
SIF ABL:TARGET:8 == 5
	TIMES LOCAL:4, 1.0
SIF ABL:TARGET:8 == 6
	TIMES LOCAL:4, 0.9
SIF ABL:TARGET:8 == 7
	TIMES LOCAL:4, 0.8
SIF ABL:TARGET:8 == 8
	TIMES LOCAL:4, 0.7
SIF ABL:TARGET:8 == 9
	TIMES LOCAL:4, 0.6
SIF ABL:TARGET:8 == 10
	TIMES LOCAL:4, 0.5

;조수의 기교による補正
SIF ABL:ASSI:2 == 0
	TIMES LOCAL:4, 1.0
SIF ABL:ASSI:2 == 1
	TIMES LOCAL:4, 1.1
SIF ABL:ASSI:2 == 2
	TIMES LOCAL:4, 1.2
SIF ABL:ASSI:2 == 3
	TIMES LOCAL:4, 1.3
SIF ABL:ASSI:2 == 4
	TIMES LOCAL:4, 1.4
SIF ABL:ASSI:2 == 5
	TIMES LOCAL:4, 1.5
SIF ABL:ASSI:2 == 6
	TIMES LOCAL:4, 1.6
SIF ABL:ASSI:2 == 7
	TIMES LOCAL:4, 1.7
SIF ABL:ASSI:2 == 8
	TIMES LOCAL:4, 1.8
SIF ABL:ASSI:2 == 9
	TIMES LOCAL:4, 1.9
SIF ABL:ASSI:2 == 10
	TIMES LOCAL:4, 2.0

;고통の素質補正処理

;아픔에약함だと고통2.0倍
SIF TALENT:TARGET:아픔에약함
	TIMES LOCAL:5, 2.0
;아픔에강함だと고통0.5倍
SIF TALENT:TARGET:아픔에강함
	TIMES LOCAL:5, 0.5
;小柄体系だと고통1.2倍
SIF TALENT:TARGET:작은체형
	TIMES LOCAL:5, 1.2

;조수의 기교による補正
SIF ABL:ASSI:2 == 0
	TIMES LOCAL:5, 1.0
SIF ABL:ASSI:2 == 1
	TIMES LOCAL:5, 1.1
SIF ABL:ASSI:2 == 2
	TIMES LOCAL:5, 1.2
SIF ABL:ASSI:2 == 3
	TIMES LOCAL:5, 1.3
SIF ABL:ASSI:2 == 4
	TIMES LOCAL:5, 1.4
SIF ABL:ASSI:2 == 5
	TIMES LOCAL:5, 1.5
SIF ABL:ASSI:2 == 6
	TIMES LOCAL:5, 1.6
SIF ABL:ASSI:2 == 7
	TIMES LOCAL:5, 1.7
SIF ABL:ASSI:2 == 8
	TIMES LOCAL:5, 1.8
SIF ABL:ASSI:2 == 9
	TIMES LOCAL:5, 1.9
SIF ABL:ASSI:2 == 10
	TIMES LOCAL:5, 2.0

;쾌Ｃの素質補正処理

;음핵だと쾌Ｃ1.5倍
SIF TALENT:TARGET:음핵
	TIMES LOCAL:6, 1.5
;Ｃ둔감だと쾌Ｃ0.5倍
SIF TALENT:TARGET:Ｃ둔감
	TIMES LOCAL:6, 0.5
;Ｃ민감だと쾌Ｃ2.0倍
SIF TALENT:TARGET:Ｃ민감
	TIMES LOCAL:6, 2.0

;조수의 기교による補正
SIF ABL:ASSI:2 == 0
	TIMES LOCAL:6, 1.0
SIF ABL:ASSI:2 == 1
	TIMES LOCAL:6, 1.1
SIF ABL:ASSI:2 == 2
	TIMES LOCAL:6, 1.2
SIF ABL:ASSI:2 == 3
	TIMES LOCAL:6, 1.3
SIF ABL:ASSI:2 == 4
	TIMES LOCAL:6, 1.4
SIF ABL:ASSI:2 == 5
	TIMES LOCAL:6, 1.5
SIF ABL:ASSI:2 == 6
	TIMES LOCAL:6, 1.6
SIF ABL:ASSI:2 == 7
	TIMES LOCAL:6, 1.7
SIF ABL:ASSI:2 == 8
	TIMES LOCAL:6, 1.8
SIF ABL:ASSI:2 == 9
	TIMES LOCAL:6, 1.9
SIF ABL:ASSI:2 == 10
	TIMES LOCAL:6, 2.0

;쾌Ｂの素質補正処理

;음유だと쾌Ｂ1.5倍
SIF TALENT:TARGET:음유
	TIMES LOCAL:7, 1.5
;Ｂ둔감だと쾌Ｂ0.5倍
SIF TALENT:TARGET:Ｂ둔감
	TIMES LOCAL:7, 0.5
;Ｂ민감だと쾌Ｂ2.0倍
SIF TALENT:TARGET:Ｂ민감
	TIMES LOCAL:7, 2.0
;빈유だと쾌Ｂ1.5倍
SIF TALENT:TARGET:빈유
	TIMES LOCAL:7, 1.5
;절벽だと쾌Ｂ2.0倍
SIF TALENT:TARGET:절벽
	TIMES LOCAL:7, 2.0
;거유だと쾌Ｂ0.8倍
SIF TALENT:TARGET:거유
	TIMES LOCAL:7, 0.8
;폭유だと쾌Ｂ0.6倍
SIF TALENT:TARGET:폭유
	TIMES LOCAL:7, 0.6

;조수의 기교による補正
SIF ABL:ASSI:2 == 0
	TIMES LOCAL:7, 1.0
SIF ABL:ASSI:2 == 1
	TIMES LOCAL:7, 1.1
SIF ABL:ASSI:2 == 2
	TIMES LOCAL:7, 1.2
SIF ABL:ASSI:2 == 3
	TIMES LOCAL:7, 1.3
SIF ABL:ASSI:2 == 4
	TIMES LOCAL:7, 1.4
SIF ABL:ASSI:2 == 5
	TIMES LOCAL:7, 1.5
SIF ABL:ASSI:2 == 6
	TIMES LOCAL:7, 1.6
SIF ABL:ASSI:2 == 7
	TIMES LOCAL:7, 1.7
SIF ABL:ASSI:2 == 8
	TIMES LOCAL:7, 1.8
SIF ABL:ASSI:2 == 9
	TIMES LOCAL:7, 1.9
SIF ABL:ASSI:2 == 10
	TIMES LOCAL:7, 2.0

;조수가 [흡혈귀]だと고통의 구슬 추가（흡혈경험+1ということ)
SIF TALENT:ASSI:흡혈귀
	LOCAL:5 = LOCAL:5 + 400

;レズ（ゲイ）経験増加処理
IF TALENT:290 == 0 && TALENT:ASSI:290 == 0
	PRINTFORML %EXPNAME:40%＋{N}
	EXP:40 += N
ELSEIF TALENT:290 && TALENT:ASSI:290
	PRINTFORML %EXPNAME:41%＋{N}
	EXP:41 += N
ENDIF

;[소악마]자위경험処理
SIF TALENT:ASSI:소악마 == 1 && TALENT:TARGET:거절 == 0 && TALENT:TARGET:철벽 == 0
	PRINTFORML %EXPNAME:10%＋3

;절정経験増加処理
SIF N*100*ABL:0/500 > 0
	PRINTFORML %EXPNAME:2%＋{N*100*ABL:0/500}
EXP:2 += N*100*ABL:0/500

;조수가 흡혈귀の場合흡혈경험+1
IF TALENT:ASSI:157
	PRINTFORML %CALLNAME:ASSI%の%EXPNAME:56%＋{1}
	EXP:ASSI:56 += 1
ENDIF

;대상と조수가 異性
IF ( TALENT:TARGET:남자 == 0 && TALENT:ASSI:남자 == 1 ) || ( TALENT:TARGET:남자 == 1 && TALENT:ASSI:남자 == 0 )
	SIF TALENT:TARGET:남자 == 1
		PRINTFORML %EXPNAME:3%＋{N/2}
	SIF TALENT:ASSI:남자 == 1
		PRINTFORML %EXPNAME:20%＋{N/2}
	SIF TALENT:ASSI:남자 == 1
		PRINTFORML %EXPNAME:21%＋{N}
	SIF TALENT:ASSI:남자 == 1
		PRINTFORML %EXPNAME:22%＋{N}
	SIF TALENT:ASSI:남자 == 1
		PRINTFORML %CALLNAME:ASSI%の%EXPNAME:3%＋{N/2}
	SIF TALENT:TARGET:남자 == 1
		PRINTFORML %CALLNAME:ASSI%の%EXPNAME:20%＋{N/2}
	SIF TALENT:TARGET:남자 == 1
		PRINTFORML %CALLNAME:ASSI%の%EXPNAME:21%＋{N}
	SIF TALENT:TARGET:남자 == 1
		PRINTFORML %CALLNAME:ASSI%の%EXPNAME:22%＋{N}
	SIF TALENT:TARGET:남자 == 1
		EXP:ASSI:3 += N/2
	SIF TALENT:ASSI:남자 == 1
		EXP:3 += N/2
	SIF TALENT:TARGET:남자 == 1
		EXP:ASSI:20 += N/2
	SIF TALENT:ASSI:남자 == 1
		EXP:20 += N/2
	SIF TALENT:TARGET:남자 == 1
		EXP:ASSI:21 += N
	SIF TALENT:ASSI:남자 == 1
		EXP:21 += N
	SIF TALENT:TARGET:남자 == 1
		EXP:ASSI:22 += N
	SIF TALENT:ASSI:남자 == 1
		EXP:22 += N

;대상と조수가 후타나리
ELSEIF ( TALENT:TARGET:후타나리 == 1 && TALENT:ASSI:후타나리 == 1 ) || ( TALENT:TARGET:후타나리 == 1 && TALENT:ASSI:반인반요 == 1 ) || ( TALENT:TARGET:반인반요 == 1 && TALENT:ASSI:후타나리 == 1 )
	PRINTFORML %EXPNAME:3%＋{N/2}
	PRINTFORML %EXPNAME:20%＋{N/2}
	PRINTFORML %EXPNAME:21%＋{N}
	PRINTFORML %EXPNAME:22%＋{N}
	PRINTFORML %CALLNAME:ASSI%の%EXPNAME:3%＋{N/2}
	PRINTFORML %CALLNAME:ASSI%の%EXPNAME:20%＋{N/2}
	PRINTFORML %CALLNAME:ASSI%の%EXPNAME:21%＋{N}
	PRINTFORML %CALLNAME:ASSI%の%EXPNAME:22%＋{N}
	EXP:3 += N/2
	EXP:20 += N/2
	EXP:21 += N
	EXP:22 += N
	EXP:ASSI:3 += N/2
	EXP:ASSI:20 += N/2
	EXP:ASSI:21 += N
	EXP:ASSI:22 += N

;男同士
ELSEIF TALENT:290 && TALENT:ASSI:290
	PRINTFORML %EXPNAME:3%＋{N/2}
	PRINTFORML %EXPNAME:20%＋{N/2}
	PRINTFORML %EXPNAME:21%＋{N}
	PRINTFORML %EXPNAME:22%＋{N}
	PRINTFORML %CALLNAME:ASSI%の%EXPNAME:3%＋{N/2}
	PRINTFORML %CALLNAME:ASSI%の%EXPNAME:20%＋{N/2}
	PRINTFORML %CALLNAME:ASSI%の%EXPNAME:21%＋{N}
	PRINTFORML %CALLNAME:ASSI%の%EXPNAME:22%＋{N}
	EXP:3 += N/2
	EXP:20 += N/2
	EXP:21 += N
	EXP:22 += N
	EXP:ASSI:3 += N/2
	EXP:ASSI:20 += N/2
	EXP:ASSI:21 += N
	EXP:ASSI:22 += N

;조수가 후타나리（조수가 후타나리、대상がオンナ）
ELSEIF TALENT:ASSI:후타나리 == 1 || TALENT:ASSI:반인반요 == 1
	PRINTFORML %EXPNAME:20%＋{N/2}
	PRINTFORML %EXPNAME:21%＋{N}
	PRINTFORML %EXPNAME:22%＋{N}
	PRINTFORML %CALLNAME:ASSI%の%EXPNAME:3%＋{N/2}
	EXP:20 += N/2
	EXP:21 += N
	EXP:22 += N
	EXP:ASSI:3 += N/2

;대상が후타나리（조수가 オンナ）
ELSEIF TALENT:TARGET:후타나리 || TALENT:TARGET:반인반요
	PRINTFORML %EXPNAME:3%＋{N/2}
	PRINTFORML %CALLNAME:ASSI%の%EXPNAME:20%＋{N/2}
	PRINTFORML %CALLNAME:ASSI%の%EXPNAME:21%＋{N}
	PRINTFORML %CALLNAME:ASSI%の%EXPNAME:22%＋{N}
	EXP:3 += N
	EXP:ASSI:20 += N
	EXP:ASSI:21 += N
	EXP:ASSI:22 += N
ELSE
ENDIF

;조수가 새드
IF TALENT:ASSI:새드
	IF TALENT:ASSI:흡혈귀
		PRINTFORML %EXPNAME:30%＋{N+1}
		PRINTFORML %CALLNAME:ASSI%の%EXPNAME:32%＋{N+1}
		EXP:30 += (N + 1)
		EXP:ASSI:32 += (N + 1)
	ELSE
		PRINTFORML %EXPNAME:30%＋{N}
		PRINTFORML %CALLNAME:ASSI%の%EXPNAME:32%＋{N}
		EXP:30 += N
		EXP:ASSI:32 += N
	ENDIF
	SIF TALENT:TARGET:도착적 == 1
		TIMES LOCAL:1, 1.2
ENDIF

;珠の処理

PRINTFORML %PALAMNAME:0%의 구슬＋{LOCAL:6}
;조수가 Ｂ열등감の場合、快B의 구슬도 얻는다
IF TALENT:ASSI:Ｂ열등감 == 1 && TALENT:TARGET:남자 == 0
	PRINTFORML %PALAMNAME:3%의 구슬＋{LOCAL:7}
	JUEL:3 += LOCAL:7
ELSEIF TALENT:ASSI:소악마 == 1 && TALENT:TARGET:거절 == 0 && TALENT:TARGET:철벽 == 0
	PRINTFORML %PALAMNAME:3%의 구슬＋{LOCAL:7/3}
	JUEL:3 += (LOCAL:7/2)
ENDIF

IF TALENT:ASSI:193 || TALENT:ASSI:291 || TALENT:ASSI:282 || TALENT:ASSI:297
	PRINTFORML %PALAMNAME:11%의 구슬＋{LOCAL:0}
ELSE
	PRINTFORML %PALAMNAME:5%의 구슬＋{LOCAL:0}
ENDIF
PRINTFORML %PALAMNAME:6%의 구슬＋{LOCAL:1}
;대상がオンナで페니스조교される場合굴복がつく
SIF ( TALENT:TARGET:남자 == 0 && TALENT:ASSI:남자 == 1 ) || ( TALENT:TARGET:남자 == 0 && TALENT:ASSI:후타나리 == 1 ) || ( TALENT:TARGET:남자 == 0 && TALENT:ASSI:반인반요 == 1 ) || (TALENT:TARGET:후타나리 == 1 && TALENT:ASSI:후타나리 == 1 ) || (TALENT:TARGET:후타나리 == 1 && TALENT:ASSI:남자 == 1 ) || (TALENT:TARGET:후타나리 == 1 && TALENT:ASSI:반인반요 == 1 ) || ( TALENT:TARGET:반인반요 == 0 && TALENT:ASSI:남자 == 1 ) || ( TALENT:TARGET:반인반요 == 0 && TALENT:ASSI:후타나리 == 1 ) || ( TALENT:TARGET:반인반요 == 0 && TALENT:ASSI:반인반요 == 1 )
	PRINTFORML %PALAMNAME:7%의 구슬＋{LOCAL:2}
PRINTFORML %PALAMNAME:8%의 구슬＋{LOCAL:3}
;대상と조수가 女であれば치정がつく
SIF TALENT:TARGET:남자 == 0 && TALENT:ASSI:남자 == 0
	PRINTFORML %PALAMNAME:9%의 구슬＋{LOCAL:4}

IF TALENT:ASSI:193 && (LOCAL:5*ABL:9 > 0)
	PRINTFORML %PALAMNAME:10%의 구슬＋{LOCAL:5}
ENDIF
JUEL:0 += LOCAL:2*ABL:3
IF TALENT:ASSI:Ｂ열등감 == 1 && TALENT:TARGET:남자 == 0
	JUEL:3 += LOCAL:2*ABL:3
ELSEIF TALENT:ASSI:소악마 == 1 && TALENT:TARGET:거절 == 0 && TALENT:TARGET:철벽 == 0
	JUEL:3 += LOCAL:2
ENDIF
IF TALENT:ASSI:193 || TALENT:ASSI:291 || TALENT:ASSI:282 || TALENT:ASSI:297
	JUEL:11 += LOCAL:0
ELSE
	JUEL:5 += LOCAL:0
ENDIF

JUEL:0 += LOCAL:6
JUEL:6 += LOCAL:1
JUEL:7 += LOCAL:2
JUEL:8 += LOCAL:3
JUEL:9 += LOCAL:4
JUEL:10 += LOCAL:5

WAIT
DRAWLINE

;조교後セックス
@SELF_CHECK2
;イベント입上呼び出し
DRAWLINE
TFLAG:13 = 5
CALL KOJO_MESSAGE_EVENT

S = 0
;V感깨우침
IF ABL:4 == 1
	S += 1
ELSEIF ABL:4 == 2
	S += 2
ELSEIF ABL:4 == 3
	S += 3
ELSEIF ABL:4 == 4
	S += 4
ELSEIF ABL:4 >= 5
	S += 5
ENDIF

;욕망と봉사정신によるボーナス
IF ABL:1 >= 5 && ABL:7 >= 5 && PALAM:5 >= PALAMLV:5
	S += 3
ELSEIF ABL:1 >= 4 && ABL:7 >= 4 && PALAM:5 >= PALAMLV:4
	S += 2
ELSEIF ABL:1 >= 3 && ABL:7 >= 3 && PALAM:5 >= PALAMLV:3
	S += 1
ENDIF

;음호い
SIF TALENT:175
	S += 3

;주인의 사정制限
SIF S > CFLAG:MASTER:11
	S = CFLAG:MASTER:11

PRINTFORML %EXPNAME:0%＋{S}
PRINTFORML %EXPNAME:4%＋{S}
SIF CFLAG:101 > 0 && CFLAG:108 == 0
	PRINTFORML %EXPNAME:5%＋{S/2}
PRINTFORML %EXPNAME:20%＋{S/2}
PRINTFORML %PALAMNAME:1%의 구슬＋{S*400}
PRINTFORML %PALAMNAME:5%의 구슬＋{S*200}
PRINTFORMW %PALAMNAME:6%의 구슬＋{S*400}
EXP:0 += S
EXP:4 += S
IF CFLAG:101 > 0 && CFLAG:108 == 0
	EXP:5 += S/2
	CFLAG:101 += S/2
ENDIF
EXP:20 += S/2
JUEL:1 += S*400
JUEL:5 += S*200
JUEL:6 += S*400
CFLAG:MASTER:11 -= S
WAIT

@SELF_CHECK3
;イベント입上呼び出し
DRAWLINE
TFLAG:13 = 6
CALL KOJO_MESSAGE_EVENT

;강정신약による절정チェック
D = 0
IF TFLAG:44 + TFLAG:45 + TFLAG:46 + TFLAG:47 > 0
	;강정신약の効果が残ったまま조교を終了した場合の処理
	;通常時の効果が再現できそうにないので同時多重절정したという処理に変更
	;Dは多重절정の種類を示す(1の場合は○절정、2の場合は○＋△절정、4の場合は四重절정となっている)
	SIF TFLAG:44
		D += 1
	SIF TFLAG:45
		D += 1
	SIF TFLAG:46
		D += 1
	SIF TFLAG:47
		D += 1

	C = D * TFLAG:44
	V = D * TFLAG:45
	A = D * TFLAG:46
	B = D * TFLAG:47

	PRINTFORML %EXPNAME:2%＋{TFLAG:44 + TFLAG:45 + TFLAG:46 + TFLAG:47}
	SIF C > 0
		PRINTFORML %PALAMNAME:0%의 구슬＋{C*1000}
	SIF V > 0
		PRINTFORML %PALAMNAME:1%의 구슬＋{V*1000}
	SIF A > 0
		PRINTFORMW %PALAMNAME:2%의 구슬＋{A*1000}
	SIF B > 0
		PRINTFORML %PALAMNAME:3%의 구슬＋{B*1000}
	PRINTL
	EXP:2 += TFLAG:44 + TFLAG:45 + TFLAG:46 + TFLAG:47
	JUEL:0 += C*1000
	JUEL:1 += V*1000
	JUEL:2 += A*1000
	JUEL:3 += B*1000

	;リセット
	TFLAG:44 = 0
	TFLAG:45 = 0
	TFLAG:46 = 0
	TFLAG:47 = 0
	TEQUIP:34 = 0

	;副作用で체력が500に
	SIF BASE:0 > 500
		BASE:0 = 500
	WAIT
ENDIF

@SELF_CHECK4
;イベント입上呼び出し
DRAWLINE
TFLAG:13 = 7
CALL KOJO_MESSAGE_EVENT

;분유中毒による搾乳チェック
;남자はだめ。모유체질、분유중독、一定能力、체력が必要
M = 0

IF ABL:19 == 1
	M += 1
ELSEIF ABL:19 == 2
	M += 2
ELSEIF ABL:19 == 3
	M += 3
ELSEIF ABL:19 == 4
	M += 5
ELSEIF ABL:19 == 5
	M += 7
ELSEIF ABL:19 == 6
	M += 9
ELSEIF ABL:19 == 7
	M += 11
ELSEIF ABL:19 == 8
	M += 14
ELSEIF ABL:19 == 9
	M += 17
ELSEIF ABL:19 >= 10
	M += 20
ENDIF

;욕망と봉사정신によるボーナス
IF ABL:1 >= 5 && ABL:7 >= 5 && PALAM:5 >= PALAMLV:5
	M += 3
ELSEIF ABL:1 >= 4 && ABL:7 >= 4 && PALAM:5 >= PALAMLV:4
	M += 2
ELSEIF ABL:1 >= 3 && ABL:7 >= 3 && PALAM:5 >= PALAMLV:3
	M += 1
ENDIF
;자위하기쉬움
SIF TALENT:150
	M += 2
;헌신적
SIF TALENT:153
	M += 3
;음유
SIF TALENT:177
	M += 3

;욕정의 구슬의 수
LOCAL:1 = M*50
;습득의 구슬의 수
LOCAL:2 = M*30
;쾌Ｂ의 구슬의 수
LOCAL:3 = M*30*ABL:3
;치정의 구슬의 수
LOCAL:4 = M*30

;욕정の素質補正処理

;자제심だと욕정0.7倍
SIF TALENT:TARGET:자제심
	TIMES LOCAL:1, 0.7
;결벽성だと욕정半分
SIF TALENT:TARGET:결벽성
	TIMES LOCAL:1, 0.5
;해방だと욕정1.3倍
SIF TALENT:TARGET:해방
	TIMES LOCAL:1, 1.3
;억압だと욕정半分
SIF TALENT:TARGET:억압
	TIMES LOCAL:1, 0.5
;쾌감에솔직だと욕정1.5倍
SIF TALENT:TARGET:쾌감에솔직
	TIMES LOCAL:1, 1.5
;쾌감을부정だと욕정0.5倍
SIF TALENT:TARGET:쾌감을부정
	TIMES LOCAL:1, 0.5
;영구발정だと욕정1.5倍
SIF TALENT:TARGET:영구발정
	TIMES LOCAL:1, 1.5

;습득の素質補正処理

;호기심だと습득1.3倍
SIF TALENT:TARGET:호기심
	TIMES LOCAL:2, 1.3
;보수적だと습득0.8倍
SIF TALENT:TARGET:보수적
	TIMES LOCAL:2, 0.8
;습득빠름だと습득1.5倍
SIF TALENT:TARGET:습득빠름
	TIMES LOCAL:2, 1.5
;습득느림だと습득0.7倍
SIF TALENT:TARGET:습득느림
	TIMES LOCAL:2, 0.7
;우등생だと습득1.3倍
SIF TALENT:TARGET:우등생
	TIMES LOCAL:2, 1.3

;쾌Ｂの素質補正処理

;음유だと쾌Ｂ1.5倍
SIF TALENT:TARGET:음유
	TIMES LOCAL:3, 1.5
;Ｂ둔감だと쾌Ｂ0.5倍
SIF TALENT:TARGET:Ｂ둔감
	TIMES LOCAL:3, 0.5
;Ｂ민감だと쾌Ｂ2.0倍
SIF TALENT:TARGET:Ｂ민감
	TIMES LOCAL:3, 2.0
;빈유だと쾌Ｂ1.5倍
SIF TALENT:TARGET:빈유
	TIMES LOCAL:3, 1.5
;절벽だと쾌Ｂ2.0倍
SIF TALENT:TARGET:절벽
	TIMES LOCAL:3, 2.0
;거유だと쾌Ｂ0.8倍
SIF TALENT:TARGET:거유
	TIMES LOCAL:3, 0.8
;폭유だと쾌Ｂ0.6倍
SIF TALENT:TARGET:폭유
	TIMES LOCAL:3, 0.6

;치정の素質補正処理

;겁쟁이だと치정1.5倍
SIF TALENT:TARGET:겁쟁이
	TIMES LOCAL:4, 1.5
;부끄럼쟁이だと치정1.5倍
SIF TALENT:TARGET:부끄럼쟁이
	TIMES LOCAL:4, 1.5
;수치심없음だと치정0.5倍
SIF TALENT:TARGET:수치심없음
	TIMES LOCAL:4, 0.5
;유아or유치or유아퇴행だと치정0.5倍
SIF TALENT:TARGET:유아 || TALENT:TARGET:유치 || TALENT:TARGET:유아퇴행
	TIMES LOCAL:4, 0.5
;중학생だと치정2倍（年頃ボーナス）
SIF TALENT:TARGET:중학생
	TIMES LOCAL:4, 2.0

;能力による補正
SIF ABL:TARGET:8 == 0
	TIMES LOCAL:4, 1.5
SIF ABL:TARGET:8 == 1
	TIMES LOCAL:4, 1.4
SIF ABL:TARGET:8 == 2
	TIMES LOCAL:4, 1.3
SIF ABL:TARGET:8 == 3
	TIMES LOCAL:4, 1.2
SIF ABL:TARGET:8 == 4
	TIMES LOCAL:4, 1.1
SIF ABL:TARGET:8 == 5
	TIMES LOCAL:4, 1.0
SIF ABL:TARGET:8 == 6
	TIMES LOCAL:4, 0.9
SIF ABL:TARGET:8 == 7
	TIMES LOCAL:4, 0.8
SIF ABL:TARGET:8 == 8
	TIMES LOCAL:4, 0.7
SIF ABL:TARGET:8 == 9
	TIMES LOCAL:4, 0.6
SIF ABL:TARGET:8 == 10
	TIMES LOCAL:4, 0.5

PRINTFORML %EXPNAME:54%＋{M}
PRINTFORMW %PALAMNAME:3%의 구슬＋{LOCAL:3}
PRINTFORML %PALAMNAME:6%의 구슬＋{LOCAL:1}
PRINTFORML %PALAMNAME:8%의 구슬＋{LOCAL:2}
EXP:54 += M
JUEL:3 += LOCAL:3
JUEL:6 += LOCAL:1
JUEL:8 += LOCAL:2
IF ABL:0+ABL:8+ABL:9 >= 10
	PRINTFORML %PALAMNAME:9%의 구슬＋{LOCAL:4}
	JUEL:9 += LOCAL:4
ENDIF
WAIT

@SELF_CHECK5
;イベント입上呼び出し
DRAWLINE
TFLAG:13 = 8
CALL KOJO_MESSAGE_EVENT

;자위중독による자위チェック
A = 0

;자위중독を見る
IF ABL:15 == 1
	A += 1
ELSEIF ABL:15 == 2
	A += 2
ELSEIF ABL:15 == 3
	A += 4
ELSEIF ABL:15 == 4
	A += 7
ELSEIF ABL:15 == 5
	A += 10
ELSEIF ABL:15 == 6
	A += 12
ELSEIF ABL:15 == 7
	A += 14
ELSEIF ABL:15 == 8
	A += 16
ELSEIF ABL:15 == 9
	A += 18
ELSEIF ABL:15 >= 10
	A += 20
ENDIF

;욕망とＣ감각によるボーナス
IF ABL:1 >= 5 && ABL:3 >= 5 && PALAM:5 >= PALAMLV:5
	A += 3
ELSEIF ABL:1 >= 4 && ABL:3 >= 4 && PALAM:5 >= PALAMLV:4
	A += 2
ELSEIF ABL:1 >= 3 && ABL:3 >= 3 && PALAM:5 >= PALAMLV:3
	A += 1
ENDIF

;충동적

;충동적フラグ
LOCAL:1 = DAY % 5
SIF TALENT:59 == 1 && TFLAG:13 == 38 && (LOCAL:1 == 2)
	A += 10
LOCAL:1 = 0

;자위하기쉬움
SIF TALENT:자위하기쉬움
	A += 3
;음핵
SIF TALENT:음핵
	A += 6

;조수가 고무
IF ASSI >= 0
	SIF TALENT:ASSI:고무
		A += 3
ENDIF

;결벽성
SIF TALENT:결벽성 == 1
	A -= 3
;철벽
SIF TALENT:철벽 == 1
	A = A/3

SIF A <= 0
	A = 1

;순종의 구슬의 수
LOCAL:0 = A*25
;욕정의 구슬의 수
LOCAL:1 = A*25
;치정의 구슬의 수
LOCAL:2 = A*25
;쾌Ｃ의 구슬의 수
LOCAL:3 = A*20*ABL:0
;쾌Ｂ의 구슬의 수
LOCAL:4 = A*20*ABL:3

;성악だと순종0.3倍
SIF TALENT:TARGET:성악
	TIMES LOCAL:0, 0.3
;감정풍부だと순종1.3倍
SIF TALENT:TARGET:감정풍부
	TIMES LOCAL:0, 1.3
;감정부족だと순종0.7倍
SIF TALENT:TARGET:감정부족
	TIMES LOCAL:0, 0.7
;무관심だと순종0.8倍
SIF TALENT:TARGET:무관심
	TIMES LOCAL:0, 0.8
;일선을넘지않음だと순종0.7倍
SIF TALENT:TARGET:일선을넘지않음
	TIMES LOCAL:0, 1.2

;대상の기교による補正
SIF ABL:TARGET:2 == 0
	TIMES LOCAL:0, 1.0
SIF ABL:TARGET:2 == 1
	TIMES LOCAL:0, 1.1
SIF ABL:TARGET:2 == 2
	TIMES LOCAL:0, 1.2
SIF ABL:TARGET:2 == 3
	TIMES LOCAL:0, 1.3
SIF ABL:TARGET:2 == 4
	TIMES LOCAL:0, 1.4
SIF ABL:TARGET:2 == 5
	TIMES LOCAL:0, 1.5
SIF ABL:TARGET:2 == 6
	TIMES LOCAL:0, 1.6
SIF ABL:TARGET:2 == 7
	TIMES LOCAL:0, 1.7
SIF ABL:TARGET:2 == 8
	TIMES LOCAL:0, 1.8
SIF ABL:TARGET:2 == 9
	TIMES LOCAL:0, 1.9
SIF ABL:TARGET:2 == 10
	TIMES LOCAL:0, 2.0

;욕정の素質補正処理

;자제심だと욕정0.7倍
SIF TALENT:TARGET:자제심
	TIMES LOCAL:1, 0.7
;결벽성だと욕정半分
SIF TALENT:TARGET:결벽성
	TIMES LOCAL:1, 0.5
;해방だと욕정1.3倍
SIF TALENT:TARGET:해방
	TIMES LOCAL:1, 1.3
;억압だと욕정半分
SIF TALENT:TARGET:억압
	TIMES LOCAL:1, 0.5
;쾌감에솔직だと욕정1.5倍
SIF TALENT:TARGET:쾌감에솔직
	TIMES LOCAL:1, 1.5
;쾌감을부정だと욕정0.5倍
SIF TALENT:TARGET:쾌감을부정
	TIMES LOCAL:1, 0.5
;영구발정だと욕정1.5倍
SIF TALENT:TARGET:영구발정
	TIMES LOCAL:1, 1.5

;대상の기교による補正
SIF ABL:TARGET:2 == 0
	TIMES LOCAL:1, 1.0
SIF ABL:TARGET:2 == 1
	TIMES LOCAL:1, 1.1
SIF ABL:TARGET:2 == 2
	TIMES LOCAL:1, 1.2
SIF ABL:TARGET:2 == 3
	TIMES LOCAL:1, 1.3
SIF ABL:TARGET:2 == 4
	TIMES LOCAL:1, 1.4
SIF ABL:TARGET:2 == 5
	TIMES LOCAL:1, 1.5
SIF ABL:TARGET:2 == 6
	TIMES LOCAL:1, 1.6
SIF ABL:TARGET:2 == 7
	TIMES LOCAL:1, 1.7
SIF ABL:TARGET:2 == 8
	TIMES LOCAL:1, 1.8
SIF ABL:TARGET:2 == 9
	TIMES LOCAL:1, 1.9
SIF ABL:TARGET:2 == 10
	TIMES LOCAL:1, 2.0

;치정の素質補正処理

;겁쟁이だと치정1.5倍
SIF TALENT:TARGET:겁쟁이
	TIMES LOCAL:2, 1.5
;부끄럼쟁이だと치정1.5倍
SIF TALENT:TARGET:부끄럼쟁이
	TIMES LOCAL:2, 1.5
;수치심없음だと치정0.5倍
SIF TALENT:TARGET:수치심없음
	TIMES LOCAL:2, 0.5
;Ｂ열등감だと치정1.3倍
SIF TALENT:TARGET:Ｂ열등감
	TIMES LOCAL:2, 1.3
;유아or유치or유아퇴행だと치정0.5倍
SIF TALENT:TARGET:유아 || TALENT:TARGET:유치 || TALENT:TARGET:유아퇴행
	TIMES LOCAL:2, 0.5
;중학생だと치정2倍（年頃ボーナス）
SIF TALENT:TARGET:중학생
	TIMES LOCAL:2, 2.0

;能力による補正
SIF ABL:TARGET:8 == 0
	TIMES LOCAL:2, 1.5
SIF ABL:TARGET:8 == 1
	TIMES LOCAL:2, 1.4
SIF ABL:TARGET:8 == 2
	TIMES LOCAL:2, 1.3
SIF ABL:TARGET:8 == 3
	TIMES LOCAL:2, 1.2
SIF ABL:TARGET:8 == 4
	TIMES LOCAL:2, 1.1
SIF ABL:TARGET:8 == 5
	TIMES LOCAL:2, 1.0
SIF ABL:TARGET:8 == 6
	TIMES LOCAL:2, 0.9
SIF ABL:TARGET:8 == 7
	TIMES LOCAL:2, 0.8
SIF ABL:TARGET:8 == 8
	TIMES LOCAL:2, 0.7
SIF ABL:TARGET:8 == 9
	TIMES LOCAL:2, 0.6
SIF ABL:TARGET:8 == 10
	TIMES LOCAL:2, 0.5

;쾌Ｃの素質補正処理

;음핵だと쾌Ｃ1.5倍
SIF TALENT:TARGET:음핵
	TIMES LOCAL:3, 1.5
;Ｃ둔감だと쾌Ｃ0.5倍
SIF TALENT:TARGET:Ｃ둔감
	TIMES LOCAL:3, 0.5
;Ｃ민감だと쾌Ｃ2.0倍
SIF TALENT:TARGET:Ｃ민감
	TIMES LOCAL:3, 2.0

;대상の기교による補正
SIF ABL:TARGET:2 == 0
	TIMES LOCAL:3, 1.0
SIF ABL:TARGET:2 == 1
	TIMES LOCAL:3, 1.1
SIF ABL:TARGET:2 == 2
	TIMES LOCAL:3, 1.2
SIF ABL:TARGET:2 == 3
	TIMES LOCAL:3, 1.3
SIF ABL:TARGET:2 == 4
	TIMES LOCAL:3, 1.4
SIF ABL:TARGET:2 == 5
	TIMES LOCAL:3, 1.5
SIF ABL:TARGET:2 == 6
	TIMES LOCAL:3, 1.6
SIF ABL:TARGET:2 == 7
	TIMES LOCAL:3, 1.7
SIF ABL:TARGET:2 == 8
	TIMES LOCAL:3, 1.8
SIF ABL:TARGET:2 == 9
	TIMES LOCAL:3, 1.9
SIF ABL:TARGET:2 == 10
	TIMES LOCAL:3, 2.0

;쾌Ｂの素質補正処理

;음유だと쾌Ｂ1.5倍
SIF TALENT:TARGET:음유
	TIMES LOCAL:4, 1.5
;Ｂ둔감だと쾌Ｂ0.5倍
SIF TALENT:TARGET:Ｂ둔감
	TIMES LOCAL:4, 0.5
;Ｂ민감だと쾌Ｂ2.0倍
SIF TALENT:TARGET:Ｂ민감
	TIMES LOCAL:4, 2.0
;빈유だと쾌Ｂ1.5倍
SIF TALENT:TARGET:빈유
	TIMES LOCAL:4, 1.5
;절벽だと쾌Ｂ2.0倍
SIF TALENT:TARGET:절벽
	TIMES LOCAL:4, 2.0
;거유だと쾌Ｂ0.8倍
SIF TALENT:TARGET:거유
	TIMES LOCAL:4, 0.8
;폭유だと쾌Ｂ0.6倍
SIF TALENT:TARGET:폭유
	TIMES LOCAL:4, 0.6

;대상の기교による補正
SIF ABL:TARGET:2 == 0
	TIMES LOCAL:4, 1.0
SIF ABL:TARGET:2 == 1
	TIMES LOCAL:4, 1.1
SIF ABL:TARGET:2 == 2
	TIMES LOCAL:4, 1.2
SIF ABL:TARGET:2 == 3
	TIMES LOCAL:4, 1.3
SIF ABL:TARGET:2 == 4
	TIMES LOCAL:4, 1.4
SIF ABL:TARGET:2 == 5
	TIMES LOCAL:4, 1.5
SIF ABL:TARGET:2 == 6
	TIMES LOCAL:4, 1.6
SIF ABL:TARGET:2 == 7
	TIMES LOCAL:4, 1.7
SIF ABL:TARGET:2 == 8
	TIMES LOCAL:4, 1.8
SIF ABL:TARGET:2 == 9
	TIMES LOCAL:4, 1.9
SIF ABL:TARGET:2 == 10
	TIMES LOCAL:4, 2.0

PRINTFORML %EXPNAME:10%＋{A}
PRINTFORML %PALAMNAME:0%의 구슬＋{LOCAL:3}
PRINTFORML %PALAMNAME:3%의 구슬＋{LOCAL:4}
PRINTFORML %PALAMNAME:5%의 구슬＋{LOCAL:0}
PRINTFORMW %PALAMNAME:6%의 구슬＋{LOCAL:1}
EXP:10 += A
JUEL:0 += LOCAL:3
JUEL:5 += LOCAL:4
JUEL:6 += LOCAL:1
;IF ABL:0+ABL:8+ABL:9 >= 10 && IS_DAYTIME()
IF ABL:0+ABL:8+ABL:9 >= 10
	PRINTFORML %PALAMNAME:9%의 구슬＋{LOCAL:2}
	JUEL:9 += LOCAL:2
ENDIF
WAIT

@SELF_CHECK7

;イベント입上呼び出し
DRAWLINE
TFLAG:13 = 38
CALL KOJO_MESSAGE_EVENT

;자위중독による자위チェック
A = 0
;자위중독を見る
IF ABL:15 == 1
	A += 1
ELSEIF ABL:15 == 2
	A += 2
ELSEIF ABL:15 == 3
	A += 4
ELSEIF ABL:15 == 4
	A += 7
ELSEIF ABL:15 == 5
	A += 10
ELSEIF ABL:15 == 6
	A += 12
ELSEIF ABL:15 == 7
	A += 14
ELSEIF ABL:15 == 8
	A += 16
ELSEIF ABL:15 == 9
	A += 18
ELSEIF ABL:15 >= 10
	A += 20
ENDIF

;욕망とＣ감각によるボーナス
IF ABL:1 >= 5 && ABL:3 >= 5 && PALAM:5 >= PALAMLV:5
	A += 3
ELSEIF ABL:1 >= 4 && ABL:3 >= 4 && PALAM:5 >= PALAMLV:4
	A += 2
ELSEIF ABL:1 >= 3 && ABL:3 >= 3 && PALAM:5 >= PALAMLV:3
	A += 1
ENDIF

;충동적
SIF TALENT:충동적 == 1
	A += 10

;자위하기쉬움
SIF TALENT:자위하기쉬움
	A += 3
;음핵
SIF TALENT:음핵
	A += 6

;조수가 고무
IF ASSI >= 0
	SIF TALENT:ASSI:고무
		A += 3
ENDIF

;결벽성
SIF TALENT:결벽성 == 1
	A -= 2
;철벽
SIF TALENT:철벽 == 1
	A = A/2

;욕정が2以下なら回数감소
SIF ABL:TARGET:1 == 2
	A -= 5
SIF ABL:TARGET:1 == 1
	A -= 7
SIF ABL:TARGET:1 == 0
	A -= 9

SIF A <= 0
	A = 1

;순종의 구슬의 수
LOCAL:0 = A*25
;욕정의 구슬의 수
LOCAL:1 = A*25
;치정의 구슬의 수
LOCAL:2 = A*25
;쾌Ｃ의 구슬의 수
LOCAL:3 = A*20*ABL:0
;쾌Ｂ의 구슬의 수
LOCAL:4 = A*20*ABL:3

;성악だと순종0.3倍
SIF TALENT:TARGET:성악
	TIMES LOCAL:0, 0.3
;감정풍부だと순종1.3倍
SIF TALENT:TARGET:감정풍부
	TIMES LOCAL:0, 1.3
;감정부족だと순종0.7倍
SIF TALENT:TARGET:감정부족
	TIMES LOCAL:0, 0.7
;무관심だと순종0.8倍
SIF TALENT:TARGET:무관심
	TIMES LOCAL:0, 0.8
;일선을넘지않음だと순종0.7倍
SIF TALENT:TARGET:일선을넘지않음
	TIMES LOCAL:0, 1.2

;대상の기교による補正
SIF ABL:TARGET:2 == 0
	TIMES LOCAL:0, 1.0
SIF ABL:TARGET:2 == 1
	TIMES LOCAL:0, 1.1
SIF ABL:TARGET:2 == 2
	TIMES LOCAL:0, 1.2
SIF ABL:TARGET:2 == 3
	TIMES LOCAL:0, 1.3
SIF ABL:TARGET:2 == 4
	TIMES LOCAL:0, 1.4
SIF ABL:TARGET:2 == 5
	TIMES LOCAL:0, 1.5
SIF ABL:TARGET:2 == 6
	TIMES LOCAL:0, 1.6
SIF ABL:TARGET:2 == 7
	TIMES LOCAL:0, 1.7
SIF ABL:TARGET:2 == 8
	TIMES LOCAL:0, 1.8
SIF ABL:TARGET:2 == 9
	TIMES LOCAL:0, 1.9
SIF ABL:TARGET:2 == 10
	TIMES LOCAL:0, 2.0

;욕정の素質補正処理

;자제심だと욕정0.7倍
SIF TALENT:TARGET:자제심
	TIMES LOCAL:1, 0.7
;결벽성だと욕정半分
SIF TALENT:TARGET:결벽성
	TIMES LOCAL:1, 0.5
;해방だと욕정1.3倍
SIF TALENT:TARGET:해방
	TIMES LOCAL:1, 1.3
;억압だと욕정半分
SIF TALENT:TARGET:억압
	TIMES LOCAL:1, 0.5
;쾌감에솔직だと욕정1.5倍
SIF TALENT:TARGET:쾌감에솔직
	TIMES LOCAL:1, 1.5
;쾌감을부정だと욕정0.5倍
SIF TALENT:TARGET:쾌감을부정
	TIMES LOCAL:1, 0.5
;영구발정だと욕정1.5倍
SIF TALENT:TARGET:영구발정
	TIMES LOCAL:1, 1.5

;대상の기교による補正
SIF ABL:TARGET:2 == 0
	TIMES LOCAL:1, 1.0
SIF ABL:TARGET:2 == 1
	TIMES LOCAL:1, 1.1
SIF ABL:TARGET:2 == 2
	TIMES LOCAL:1, 1.2
SIF ABL:TARGET:2 == 3
	TIMES LOCAL:1, 1.3
SIF ABL:TARGET:2 == 4
	TIMES LOCAL:1, 1.4
SIF ABL:TARGET:2 == 5
	TIMES LOCAL:1, 1.5
SIF ABL:TARGET:2 == 6
	TIMES LOCAL:1, 1.6
SIF ABL:TARGET:2 == 7
	TIMES LOCAL:1, 1.7
SIF ABL:TARGET:2 == 8
	TIMES LOCAL:1, 1.8
SIF ABL:TARGET:2 == 9
	TIMES LOCAL:1, 1.9
SIF ABL:TARGET:2 == 10
	TIMES LOCAL:1, 2.0

;치정の素質補正処理

;겁쟁이だと치정1.5倍
SIF TALENT:TARGET:겁쟁이
	TIMES LOCAL:2, 1.5
;부끄럼쟁이だと치정1.5倍
SIF TALENT:TARGET:부끄럼쟁이
	TIMES LOCAL:2, 1.5
;수치심없음だと치정0.5倍
SIF TALENT:TARGET:수치심없음
	TIMES LOCAL:2, 0.5
;Ｂ열등감だと치정1.3倍
SIF TALENT:TARGET:Ｂ열등감
	TIMES LOCAL:2, 1.3
;유아or유치or유아퇴행だと치정0.5倍
SIF TALENT:TARGET:유아 || TALENT:TARGET:유치 || TALENT:TARGET:유아퇴행
	TIMES LOCAL:2, 0.5
;중학생だと치정2倍（年頃ボーナス）
SIF TALENT:TARGET:중학생
	TIMES LOCAL:2, 2.0

;能力による補正
SIF ABL:TARGET:8 == 0
	TIMES LOCAL:2, 1.5
SIF ABL:TARGET:8 == 1
	TIMES LOCAL:2, 1.4
SIF ABL:TARGET:8 == 2
	TIMES LOCAL:2, 1.3
SIF ABL:TARGET:8 == 3
	TIMES LOCAL:2, 1.2
SIF ABL:TARGET:8 == 4
	TIMES LOCAL:2, 1.1
SIF ABL:TARGET:8 == 5
	TIMES LOCAL:2, 1.0
SIF ABL:TARGET:8 == 6
	TIMES LOCAL:2, 0.9
SIF ABL:TARGET:8 == 7
	TIMES LOCAL:2, 0.8
SIF ABL:TARGET:8 == 8
	TIMES LOCAL:2, 0.7
SIF ABL:TARGET:8 == 9
	TIMES LOCAL:2, 0.6
SIF ABL:TARGET:8 == 10
	TIMES LOCAL:2, 0.5

;쾌Ｃの素質補正処理

;음핵だと쾌Ｃ1.5倍
SIF TALENT:TARGET:음핵
	TIMES LOCAL:3, 1.5
;Ｃ둔감だと쾌Ｃ0.5倍
SIF TALENT:TARGET:Ｃ둔감
	TIMES LOCAL:3, 0.5
;Ｃ민감だと쾌Ｃ2.0倍
SIF TALENT:TARGET:Ｃ민감
	TIMES LOCAL:3, 2.0

;대상の기교による補正
SIF ABL:TARGET:2 == 0
	TIMES LOCAL:3, 1.0
SIF ABL:TARGET:2 == 1
	TIMES LOCAL:3, 1.1
SIF ABL:TARGET:2 == 2
	TIMES LOCAL:3, 1.2
SIF ABL:TARGET:2 == 3
	TIMES LOCAL:3, 1.3
SIF ABL:TARGET:2 == 4
	TIMES LOCAL:3, 1.4
SIF ABL:TARGET:2 == 5
	TIMES LOCAL:3, 1.5
SIF ABL:TARGET:2 == 6
	TIMES LOCAL:3, 1.6
SIF ABL:TARGET:2 == 7
	TIMES LOCAL:3, 1.7
SIF ABL:TARGET:2 == 8
	TIMES LOCAL:3, 1.8
SIF ABL:TARGET:2 == 9
	TIMES LOCAL:3, 1.9
SIF ABL:TARGET:2 == 10
	TIMES LOCAL:3, 2.0

;쾌Ｂの素質補正処理

;음유だと쾌Ｂ1.5倍
SIF TALENT:TARGET:음유
	TIMES LOCAL:4, 1.5
;Ｂ둔감だと쾌Ｂ0.5倍
SIF TALENT:TARGET:Ｂ둔감
	TIMES LOCAL:4, 0.5
;Ｂ민감だと쾌Ｂ2.0倍
SIF TALENT:TARGET:Ｂ민감
	TIMES LOCAL:4, 2.0
;빈유だと쾌Ｂ1.5倍
SIF TALENT:TARGET:빈유
	TIMES LOCAL:4, 1.5
;절벽だと쾌Ｂ2.0倍
SIF TALENT:TARGET:절벽
	TIMES LOCAL:4, 2.0
;거유だと쾌Ｂ0.8倍
SIF TALENT:TARGET:거유
	TIMES LOCAL:4, 0.8
;폭유だと쾌Ｂ0.6倍
SIF TALENT:TARGET:폭유
	TIMES LOCAL:4, 0.6

;대상の기교による補正
SIF ABL:TARGET:2 == 0
	TIMES LOCAL:4, 1.0
SIF ABL:TARGET:2 == 1
	TIMES LOCAL:4, 1.1
SIF ABL:TARGET:2 == 2
	TIMES LOCAL:4, 1.2
SIF ABL:TARGET:2 == 3
	TIMES LOCAL:4, 1.3
SIF ABL:TARGET:2 == 4
	TIMES LOCAL:4, 1.4
SIF ABL:TARGET:2 == 5
	TIMES LOCAL:4, 1.5
SIF ABL:TARGET:2 == 6
	TIMES LOCAL:4, 1.6
SIF ABL:TARGET:2 == 7
	TIMES LOCAL:4, 1.7
SIF ABL:TARGET:2 == 8
	TIMES LOCAL:4, 1.8
SIF ABL:TARGET:2 == 9
	TIMES LOCAL:4, 1.9
SIF ABL:TARGET:2 == 10
	TIMES LOCAL:4, 2.0

;충동적 자위는 온순의 구슬을 얻을 수 없다(자위중독이 있으면 해제)

PRINTFORML %EXPNAME:10%＋{A}
PRINTFORML %PALAMNAME:0%의 구슬＋{LOCAL:3}
PRINTFORML %PALAMNAME:3%의 구슬＋{LOCAL:4}
SIF ABL:TARGET:15 >= 1
	PRINTFORML %PALAMNAME:5%의 구슬＋{LOCAL:0}
PRINTFORMW %PALAMNAME:6%의 구슬＋{LOCAL:1}
EXP:10 += A
JUEL:0 += LOCAL:3
JUEL:3 += LOCAL:4
SIF ABL:TARGET:15 >= 1
	JUEL:5 += LOCAL:0
JUEL:6 += LOCAL:1
;IF ABL:0+ABL:8+ABL:9 >= 10 && IS_DAYTIME()
IF ABL:0+ABL:8+ABL:9 >= 10
	PRINTFORML %PALAMNAME:9%의 구슬＋{LOCAL:2}
	JUEL:9 += LOCAL:2
ENDIF
WAIT

@SELF_CHECK6
;イベント입上呼び出し
DRAWLINE
TFLAG:13 = 9
CALL KOJO_MESSAGE_EVENT
;*この関数には대상が男ということはない

;충동적フラグ（LOCAL:0が4の時대상の충동적発動）
LOCAL:0 = DAY % 5

A = 0

;정액중독（マスターにちんこ必須）
IF ABL:16 == 0 && (TALENT:MASTER:290 == 1) || (TALENT:MASTER:287 == 1) || (TALENT:MASTER:289 == 1)
	A += 1
ELSEIF ABL:16 == 1 && (TALENT:MASTER:290 == 1) || (TALENT:MASTER:287 == 1) || (TALENT:MASTER:289 == 1)
	A += 2
ELSEIF ABL:16 == 2 && (TALENT:MASTER:290 == 1) || (TALENT:MASTER:287 == 1) || (TALENT:MASTER:289 == 1)
	A += 3
ELSEIF ABL:16 == 3 && (TALENT:MASTER:290 == 1) || (TALENT:MASTER:287 == 1) || (TALENT:MASTER:289 == 1)
	A += 4
ELSEIF ABL:16 == 4 && (TALENT:MASTER:290 == 1) || (TALENT:MASTER:287 == 1) || (TALENT:MASTER:289 == 1)
	A += 5
ELSEIF ABL:16 == 5 && (TALENT:MASTER:290 == 1) || (TALENT:MASTER:287 == 1) || (TALENT:MASTER:289 == 1)
	A += 6
ELSEIF ABL:16 == 6 && (TALENT:MASTER:290 == 1) || (TALENT:MASTER:287 == 1) || (TALENT:MASTER:289 == 1)
	A += 7
ELSEIF ABL:16 == 7 && (TALENT:MASTER:290 == 1) || (TALENT:MASTER:287 == 1) || (TALENT:MASTER:289 == 1)
	A += 8
ELSEIF ABL:16 == 8 && (TALENT:MASTER:290 == 1) || (TALENT:MASTER:287 == 1) || (TALENT:MASTER:289 == 1)
	A += 9
ELSEIF ABL:16 == 9 && (TALENT:MASTER:290 == 1) || (TALENT:MASTER:287 == 1) || (TALENT:MASTER:289 == 1)
	A += 10
ELSEIF ABL:16 >= 10 && (TALENT:MASTER:290 == 1) || (TALENT:MASTER:287 == 1) || (TALENT:MASTER:289 == 1)
	A += 11
ENDIF

;레즈중독
IF ABL:17 == 0 && (TALENT:MASTER:290 == 0)
	A += 1
ELSEIF ABL:17 == 1 && (TALENT:MASTER:290 == 0)
	A += 2
ELSEIF ABL:17 == 2 && (TALENT:MASTER:290 == 0)
	A += 3
ELSEIF ABL:17 == 3 && (TALENT:MASTER:290 == 0)
	A += 4
ELSEIF ABL:17 == 4 && (TALENT:MASTER:290 == 0)
	A += 5
ELSEIF ABL:17 == 5 && (TALENT:MASTER:290 == 0)
	A += 6
ELSEIF ABL:17 == 6 && (TALENT:MASTER:290 == 0)
	A += 7
ELSEIF ABL:17 == 7 && (TALENT:MASTER:290 == 0)
	A += 8
ELSEIF ABL:17 == 8 && (TALENT:MASTER:290 == 0)
	A += 9
ELSEIF ABL:17 == 9 && (TALENT:MASTER:290 == 0)
	A += 10
ELSEIF ABL:17 >= 10 && (TALENT:MASTER:290 == 0)
	A += 11
ENDIF

;섹스중독（女あなたは페니스バンド必須）
IF ABL:18 == 0 && (TALENT:MASTER:290 == 1) || (TALENT:MASTER:287 == 1) || (TALENT:MASTER:289 == 1 ) || (TALENT:MASTER:290 == 0 && ITEM:19 == 1 )
	A += 1
ELSEIF ABL:18 == 1 && (TALENT:MASTER:290 == 1) || (TALENT:MASTER:287 == 1) || (TALENT:MASTER:289 == 1 ) || (TALENT:MASTER:290 == 0 && ITEM:19 == 1 )
	A += 2
ELSEIF ABL:18 == 2 && (TALENT:MASTER:290 == 1) || (TALENT:MASTER:287 == 1) || (TALENT:MASTER:289 == 1 ) || (TALENT:MASTER:290 == 0 && ITEM:19 == 1 )
	A += 3
ELSEIF ABL:18 == 3 && (TALENT:MASTER:290 == 1) || (TALENT:MASTER:287 == 1) || (TALENT:MASTER:289 == 1 ) || (TALENT:MASTER:290 == 0 && ITEM:19 == 1 )
	A += 4
ELSEIF ABL:18 == 4 && (TALENT:MASTER:290 == 1) || (TALENT:MASTER:287 == 1) || (TALENT:MASTER:289 == 1 ) || (TALENT:MASTER:290 == 0 && ITEM:19 == 1 )
	A += 5
ELSEIF ABL:18 == 5 && (TALENT:MASTER:290 == 1) || (TALENT:MASTER:287 == 1) || (TALENT:MASTER:289 == 1 ) || (TALENT:MASTER:290 == 0 && ITEM:19 == 1 )
	A += 6
ELSEIF ABL:18 == 6 && (TALENT:MASTER:290 == 1) || (TALENT:MASTER:287 == 1) || (TALENT:MASTER:289 == 1 ) || (TALENT:MASTER:290 == 0 && ITEM:19 == 1 )
	A += 7
ELSEIF ABL:18 == 7 && (TALENT:MASTER:290 == 1) || (TALENT:MASTER:287 == 1) || (TALENT:MASTER:289 == 1 ) || (TALENT:MASTER:290 == 0 && ITEM:19 == 1 )
	A += 8
ELSEIF ABL:18 == 8 && (TALENT:MASTER:290 == 1) || (TALENT:MASTER:287 == 1) || (TALENT:MASTER:289 == 1 ) || (TALENT:MASTER:290 == 0 && ITEM:19 == 1 )
	A += 9
ELSEIF ABL:18 == 9 && (TALENT:MASTER:290 == 1) || (TALENT:MASTER:287 == 1) || (TALENT:MASTER:289 == 1 ) || (TALENT:MASTER:290 == 0 && ITEM:19 == 1 )
	A += 10
ELSEIF ABL:18 >= 10 && (TALENT:MASTER:290 == 1) || (TALENT:MASTER:287 == 1) || (TALENT:MASTER:289 == 1 ) || (TALENT:MASTER:290 == 0 && ITEM:19 == 1 )
	A += 11
ENDIF

;겁쟁이
SIF TALENT:겁쟁이
	A -= 2
;자제심
SIF TALENT:자제심
	A -= 2
;무관심
SIF TALENT:무관심
	A -= 3
;호기심
SIF TALENT:호기심
	A += 1
;일선을넘지않음
SIF TALENT:일선을넘지않음
	A -= 2
;충동적
SIF TALENT:충동적 && LOCAL:0 == 4
	A += 7
;결벽성
SIF TALENT:결벽성
	A -= 2
;해방
SIF TALENT:해방
	A += 2
;부끄럼쟁이
SIF TALENT:부끄럼쟁이
	A -= 1
;반하기쉬움
SIF TALENT:반하기쉬움
	A += 2
;악취둔감
SIF TALENT:악취둔감
	A += 1
;악취민감
SIF TALENT:악취민감
	A -= 1
;헌신적
SIF TALENT:헌신적
	A += 3
;즉각함락
SIF TALENT:즉각함락
	A += 10
;인간혐오
SIF TALENT:인간혐오
	A -= 3
;보수적
SIF TALENT:보수적
	A -= 2
;눈에띄고싶어함
SIF TALENT:눈에띄고싶어함
	A += 1
;결벽성
SIF TALENT:결벽성
	A -= 3
;음호
SIF TALENT:음호 && (TALENT:MASTER:290 == 1) || (TALENT:MASTER:287 == 1) || (TALENT:MASTER:289 == 1 ) || (TALENT:MASTER:290 == 0 && ITEM:19 == 1 )
	A += 5
;영구발정
SIF TALENT:영구발정
	A += 7
;걸레녀
SIF TALENT:걸레녀 && (TALENT:MASTER:290 == 1) || (TALENT:MASTER:287 == 1) || (TALENT:MASTER:289 == 1 ) || (TALENT:MASTER:290 == 0 && ITEM:19 == 1 )
	A += 4
;거절
SIF TALENT:거절
	A -= 5
;철벽
SIF TALENT:철벽
	A = A/5

SIF A <= 0
	A = 1

;주인의 사정制限
SIF A > CFLAG:MASTER:11 && (TALENT:MASTER:290 == 1) || (TALENT:MASTER:287 == 1) || (TALENT:MASTER:289 == 1 )
	A = CFLAG:MASTER:11

LOCAL:0 = A*50

;대상の기교による補正計算

SIF ABL:TARGET:2 == 0
	TIMES LOCAL:0, 1.0
SIF ABL:TARGET:2 == 1
	TIMES LOCAL:0, 1.1
SIF ABL:TARGET:2 == 2
	TIMES LOCAL:0, 1.2
SIF ABL:TARGET:2 == 3
	TIMES LOCAL:0, 1.3
SIF ABL:TARGET:2 == 4
	TIMES LOCAL:0, 1.4
SIF ABL:TARGET:2 == 5
	TIMES LOCAL:0, 1.5
SIF ABL:TARGET:2 == 6
	TIMES LOCAL:0, 1.6
SIF ABL:TARGET:2 == 7
	TIMES LOCAL:0, 1.7
SIF ABL:TARGET:2 == 8
	TIMES LOCAL:0, 1.8
SIF ABL:TARGET:2 == 9
	TIMES LOCAL:0, 1.9
SIF ABL:TARGET:2 == 10
	TIMES LOCAL:0, 2.0

;순종의 구슬의 수
LOCAL:1 = LOCAL:0*3/2
;굴복의 구슬의 수
LOCAL:2 = LOCAL:0
;습득의 구슬의 수
LOCAL:3 = LOCAL:0/2
;쾌Ｖ의 구슬의 수
LOCAL:4 = LOCAL:0*ABL:4
;쾌Ｃ의 구슬의 수
LOCAL:5 = LOCAL:0*ABL:3
;쾌Ｂ의 구슬의 수
LOCAL:6 = LOCAL:0*ABL:6

;순종の素質補正処理

;얌전함だと순종1.5倍
SIF TALENT:TARGET:얌전함
	TIMES LOCAL:1, 1.5
;솔직だと순종1.5倍
SIF TALENT:TARGET:솔직
	TIMES LOCAL:1, 1.5
;프라이드높음or꿋꿋함or건방짐or츤데레だと0.7倍
SIF TALENT:TARGET:프라이드높음 || TALENT:TARGET:꿋꿋함 || TALENT:TARGET:츤데레 || TALENT:TARGET:건방짐
	TIMES LOCAL:1, 0.7
;성악だと순종0.3倍
SIF TALENT:TARGET:성악
	TIMES LOCAL:1, 0.3
;감정풍부だと순종1.3倍
SIF TALENT:TARGET:감정풍부
	TIMES LOCAL:1, 1.3
;감정부족だと순종0.7倍
SIF TALENT:TARGET:감정부족
	TIMES LOCAL:1, 0.7
;무관심だと순종0.8倍
SIF TALENT:TARGET:무관심
	TIMES LOCAL:1, 0.8
;일선을넘지않음だと순종0.7倍
SIF TALENT:TARGET:일선을넘지않음
	TIMES LOCAL:1, 1.2
;정조관념と순종1.5倍
SIF TALENT:TARGET:정조관념
	TIMES LOCAL:1, 1.5
;정조무관심と순종0.7倍
SIF TALENT:TARGET:정조무관심
	TIMES LOCAL:1, 0.7

;能力による補正
SIF ABL:TARGET:0 == 0
	TIMES LOCAL:1, 0.4
SIF ABL:TARGET:0 == 1
	TIMES LOCAL:1, 0.7
SIF ABL:TARGET:0 == 2
	TIMES LOCAL:1, 1.0
SIF ABL:TARGET:0 == 3
	TIMES LOCAL:1, 1.3
SIF ABL:TARGET:0 == 4
	TIMES LOCAL:1, 1.6
SIF ABL:TARGET:0 == 5
	TIMES LOCAL:1, 1.9
SIF ABL:TARGET:0 == 6
	TIMES LOCAL:1, 2.2
SIF ABL:TARGET:0 == 7
	TIMES LOCAL:1, 2.5
SIF ABL:TARGET:0 == 8
	TIMES LOCAL:1, 2.8
SIF ABL:TARGET:0 == 9
	TIMES LOCAL:1, 3.1
SIF ABL:TARGET:0 == 10
	TIMES LOCAL:1, 3.4

;굴복の素質補正処理

;프라이드높음だと굴복0.7倍
SIF TALENT:TARGET:프라이드높음
	TIMES LOCAL:2, 0.6
;고결だと굴복0.5倍
SIF TALENT:TARGET:고결
	TIMES LOCAL:2, 0.5
;성악だと굴복0.5倍
SIF TALENT:TARGET:성악
	TIMES LOCAL:2, 0.5
;자제심だと굴복0.7倍
SIF TALENT:TARGET:자제심
	TIMES LOCAL:2, 0.7
;일선을넘지않음だと굴복0.7倍
SIF TALENT:TARGET:일선을넘지않음
	TIMES LOCAL:2, 0.7
;정조관념だと굴복1.5倍
SIF TALENT:TARGET:정조관념
	TIMES LOCAL:2, 1.5
;정조무관심だと굴복0.8倍
SIF TALENT:TARGET:정조무관심
	TIMES LOCAL:2, 0.8
;해방だと굴복1.5倍
SIF TALENT:TARGET:해방
	TIMES LOCAL:2, 1.5
;굴복だと굴복2倍
SIF TALENT:TARGET:굴복
	TIMES LOCAL:2, 2.0
;헌신적だと굴복1.3倍
SIF TALENT:TARGET:헌신적
	TIMES LOCAL:2, 1.3
;망신だと굴복1.5倍
SIF TALENT:TARGET:망신
	TIMES LOCAL:2, 1.5

;能力による補正
SIF ABL:TARGET:7 == 0
	TIMES LOCAL:2, 0.4
SIF ABL:TARGET:7 == 1
	TIMES LOCAL:2, 0.7
SIF ABL:TARGET:7 == 2
	TIMES LOCAL:2, 1.0
SIF ABL:TARGET:7 == 3
	TIMES LOCAL:2, 1.3
SIF ABL:TARGET:7 == 4
	TIMES LOCAL:2, 1.6
SIF ABL:TARGET:7 == 5
	TIMES LOCAL:2, 1.9
SIF ABL:TARGET:7 == 6
	TIMES LOCAL:2, 2.2
SIF ABL:TARGET:7 == 7
	TIMES LOCAL:2, 2.5
SIF ABL:TARGET:7 == 8
	TIMES LOCAL:2, 2.8
SIF ABL:TARGET:7 == 9
	TIMES LOCAL:2, 3.1
SIF ABL:TARGET:7 == 10
	TIMES LOCAL:2, 3.4

;습득の素質補正処理

;호기심だと습득1.3倍
SIF TALENT:TARGET:호기심
	TIMES LOCAL:3, 1.3
;보수적だと습득0.8倍
SIF TALENT:TARGET:보수적
	TIMES LOCAL:3, 0.8
;습득빠름だと습득1.5倍
SIF TALENT:TARGET:습득빠름
	TIMES LOCAL:3, 1.5
;습득느림だと습득0.7倍
SIF TALENT:TARGET:습득느림
	TIMES LOCAL:3, 0.7
;우등생だと습득1.3倍
SIF TALENT:TARGET:우등생
	TIMES LOCAL:3, 1.3

;쾌Ｖの素質補正処理

;음호だと쾌Ｖ1.5倍
SIF TALENT:TARGET:음호
	TIMES LOCAL:4, 1.5
;Ｖ둔감だと쾌Ｖ0.5倍
SIF TALENT:TARGET:Ｖ둔감
	TIMES LOCAL:4, 0.5
;Ｖ민감だと쾌Ｖ2.0倍
SIF TALENT:TARGET:Ｖ민감
	TIMES LOCAL:4, 2.0

;쾌Ｃの素質補正処理

;음핵だと쾌Ｃ1.5倍
SIF TALENT:TARGET:음핵
	TIMES LOCAL:5, 1.5
;Ｃ둔감だと쾌Ｃ0.5倍
SIF TALENT:TARGET:Ｃ둔감
	TIMES LOCAL:5, 0.5
;Ｃ민감だと쾌Ｃ2.0倍
SIF TALENT:TARGET:Ｃ민감
	TIMES LOCAL:5, 2.0

;쾌Ｂの素質補正処理

;음유だと쾌Ｂ1.5倍
SIF TALENT:TARGET:음유
	TIMES LOCAL:6, 1.5
;Ｂ둔감だと쾌Ｂ0.5倍
SIF TALENT:TARGET:Ｂ둔감
	TIMES LOCAL:6, 0.5
;Ｂ민감だと쾌Ｂ2.0倍
SIF TALENT:TARGET:Ｂ민감
	TIMES LOCAL:6, 2.0
;빈유だと쾌Ｂ1.5倍
SIF TALENT:TARGET:빈유
	TIMES LOCAL:6, 1.5
;절벽だと쾌Ｂ2.0倍
SIF TALENT:TARGET:절벽
	TIMES LOCAL:6, 2.0
;거유だと쾌Ｂ0.8倍
SIF TALENT:TARGET:거유
	TIMES LOCAL:6, 0.8
;폭유だと쾌Ｂ0.6倍
SIF TALENT:TARGET:폭유
	TIMES LOCAL:6, 0.6

IF EXP:TARGET:0 >= 1 && TALENT:TARGET:0 == 0 && TALENT:TARGET:1 == 0
	EXP:0 += A
	EXP:4 += A
	IF TALENT:MASTER:290 == 1 || TALENT:MASTER:287 == 1 || TALENT:MASTER:289 == 1
		EXP:20 += A/2
		EXP:21 += A/2+1
		SIF TALENT:MASTER:287 == 1 || TALENT:MASTER:289 == 1
			EXP:40 += A
		IF CFLAG:101 > 1 && CFLAG:108 == 0
			EXP:5 += A/5+1
			CFLAG:101 += A/2+1
		ENDIF
	ELSEIF TALENT:MASTER:290 == 0 && ITEM:19 == 1
			EXP:21 += A/2+1
			EXP:40 += A
	ENDIF
ELSEIF TALENT:MASTER:290 == 1
	EXP:20 += A/2
	EXP:21 += A/2+1
	EXP:22 += A/4+1
ELSE
	EXP:21 += A/2+1
	EXP:40 += A
ENDIF

;Ｖ의 구슬이 들어가는 조건은 대상이 처녀가 아니며、또 한편으로 여주인은 후타나리이거나 반인반요이거나 페니스밴드가 필수
IF ( EXP:TARGET:0 >= 1 && TALENT:TARGET:0 == 0 && TALENT:TARGET:1 == 0 ) && TALENT:MASTER:290 == 1 || TALENT:MASTER:287 == 1 || TALENT:MASTER:289 == 1 || ( TALENT:MASTER:290 == 0 && ITEM:19 == 1 )
	JUEL:1 += LOCAL:4
	JUEL:0 += LOCAL:5/2
	JUEL:3 += LOCAL:6/2
ELSE
	JUEL:0 += LOCAL:5
	JUEL:3 += LOCAL:6
ENDIF
JUEL:5 += LOCAL:1
;굴복의 구슬은 정액경험이 필수
SIF TALENT:MASTER:290 == 1 || TALENT:MASTER:287 == 1 || TALENT:MASTER:289 == 1
	JUEL:7 += LOCAL:2
JUEL:8 += LOCAL:3

IF EXP:TARGET:0 >= 1 && TALENT:TARGET:0 == 0 && TALENT:TARGET:1 == 0 && ( TALENT:MASTER:290 == 1 || TALENT:MASTER:287 == 1 || TALENT:MASTER:289 == 1 || ( TALENT:MASTER:290 == 0 && ITEM:19 == 1 ))
	PRINTFORML %EXPNAME:0%＋{A}
	PRINTFORML %EXPNAME:4%＋{A}
	IF TALENT:MASTER:290 == 1 || TALENT:MASTER:287 == 1 || TALENT:MASTER:289 == 1
		PRINTFORML %EXPNAME:20%＋{A/2}
		PRINTFORML %EXPNAME:21%＋{A/2+1}
		SIF TALENT:MASTER:287 == 1 || TALENT:MASTER:289 == 1
			PRINTFORML %EXPNAME:40%＋{A}
		PRINTFORML %EXPNAME:5%＋{A/2+1}
	ELSEIF TALENT:MASTER:290 == 0 && ITEM:19 == 1
		PRINTFORML %EXPNAME:21%＋{A/2+1}
		PRINTFORML %EXPNAME:40%＋{A}
	ENDIF
ELSEIF TALENT:MASTER:290 == 1
	PRINTFORML %EXPNAME:20%＋{A/2}
	PRINTFORML %EXPNAME:21%＋{A/2+1}
	PRINTFORML %EXPNAME:22%＋{A/4+1}
ELSE
	PRINTFORML %EXPNAME:21%＋{A/2+1}
	PRINTFORML %EXPNAME:40%＋{A}
ENDIF

IF EXP:TARGET:0 >= 1 && TALENT:TARGET:0 == 0 && TALENT:TARGET:1 == 0 && ( TALENT:MASTER:290 == 1 || TALENT:MASTER:287 == 1 || TALENT:MASTER:289 == 1 || ( TALENT:MASTER:290 == 0 && ITEM:19 == 1 ))
	SIF LOCAL:4 > 0
		PRINTFORML %PALAMNAME:1%의 구슬＋{LOCAL:4}
	SIF (LOCAL:5/2) > 1
		PRINTFORML %PALAMNAME:0%의 구슬＋{LOCAL:5/2}
	SIF (LOCAL:6/2) > 1
		PRINTFORML %PALAMNAME:3%의 구슬＋{LOCAL:6/2}
ELSE
	SIF LOCAL:5 > 0
		PRINTFORML %PALAMNAME:0%의 구슬＋{LOCAL:5}
	SIF LOCAL:6 > 0
		PRINTFORML %PALAMNAME:3%의 구슬＋{LOCAL:6}
ENDIF
SIF LOCAL:1 > 1
	PRINTFORML %PALAMNAME:5%의 구슬＋{LOCAL:1}
SIF (LOCAL:3 > 1) && TALENT:MASTER:290 == 1 || TALENT:MASTER:287 == 1 || TALENT:MASTER:289 == 1
	PRINTFORML %PALAMNAME:7%의 구슬＋{LOCAL:2}
SIF LOCAL:3 > 1
	PRINTFORMW %PALAMNAME:8%의 구슬＋{LOCAL:3}

CFLAG:MASTER:11 -= A
WAIT


code:
@SETTING_NAME
$INPUTS_NAME
PRINTL 명칭을 입력해주세요
INPUTS
STR:300 = %RESULTS%

repo_name: Catalyst/B

license: unknown


code:
@SET_COLOR_STATUS,ARG
;調教時の判定や状態を表示するときに、緑色と紫色を呼び出すことができる
;1番緑色、2番紫色

IF (FLAG:93 % 10) == 1
	IF ARG == 1
		RESETCOLOR
;修正が大変なので一度オミット（SET_COLOR_STATUS,1が判定箇所に入っていない調教コマンドCOMF.ERBが膨大なため)
;		SETCOLOR 44,222,74
	ELSEIF ARG == 2
		SETCOLOR 0xFF00FF
	ELSEIF ARG == 3
		SETCOLOR 252,107,89
	ENDIF
ENDIF

@COMMAND_COLOR_SET,ARG
;USERCOM.ERBのルート別色の分岐を表示する
;コマンドのみ適用
IF (FLAG:93 % 10) == 1
	IF TALENT:음란 == 1 || TALENT:창녀 == 1
		SETCOLOR 156,207,49
	ELSEIF TALENT:복종 == 1 || TALENT:예속 == 1
		SETCOLOR 101,153,255
	ELSEIF TALENT:동화 == 1 || TALENT:모판 == 1
		SETCOLOR 255,153,101
	ELSEIF TALENT:교제 == 1
		SETCOLOR 255,186,210
	ELSEIF TALENT:강간 == 1
		SETCOLOR 160,210,61
	ELSEIF TALENT:협박 == 1
		SETCOLOR 121,173,255
	ELSEIF TALENT:기생 == 1
		SETCOLOR 255,101,101
	ELSE
		SETCOLOR 160,92,179
	ENDIF
ENDIF