fix: 신강·신약을 득령 먼저 보고 판정 — 월령 오행이 일간을 도우면 +0.15, 45~55%는 중화 (未월 己土가 시주 하나로 신약이 되던 문제)
This commit is contained in:
1 parent
b9dd0f203d
commit
263f01b4f1
9 files changed
+43
-11
No files matched your search
@@ -19,7 +19,11 @@ const CARD_ICON: Record<string, string> = { when: 'alarm_clock', do: 'check_mark
|
||||
const POS_WORD: Record<string, string> = { hour: '시', day: '일', month: '월', year: '연' }
|
||||
const EL_WORD: Record<string, string> = { 木: '나무', 火: '불', 土: '흙', 金: '쇠', 水: '물' }
|
||||
const EL_ART: Record<string, string> = { 木: 'wood', 火: 'fire', 土: 'earth', 金: 'metal', 水: 'water' }
|
||||
const STRENGTH_WORD: Record<string, string> = { 신강: '나를 돕는 기운이 절반이 넘는 사주', 신약: '나를 돕는 기운이 절반보다 적은 사주' }
|
||||
const STRENGTH_WORD: Record<string, string> = {
|
||||
신강: '나를 돕는 기운이 센 사주. 태어난 달(월령)의 힘을 먼저 봐요',
|
||||
중화: '나를 돕는 기운과 다른 기운이 비슷한 사주',
|
||||
신약: '나를 돕는 기운이 약한 사주',
|
||||
}
|
||||
const TEN_GOD_WORD: Record<string, string> = {
|
||||
비견: '나와 같은 기운',
|
||||
겁재: '나와 같지만 겨루는 기운',
|
||||
@@ -207,7 +211,7 @@ function Reading({ birth, onEdit }: { birth: Birth; onEdit: () => void }) {
|
||||
useEffect(() => {
|
||||
if (!r?.today) return
|
||||
markSeen()
|
||||
track('saju_view', { scene: r.me?.scene ?? '', score: r.today.score, strength: r.me?.strong == null ? '' : r.me.strong ? '신강' : '신약', top_element: r.me?.top_element ?? '' })
|
||||
track('saju_view', { scene: r.me?.scene ?? '', score: r.today.score, strength: r.me?.strength ?? '', top_element: r.me?.top_element ?? '' })
|
||||
}, [r])
|
||||
|
||||
if (q.isPending) return <p className="m-0 px-4 py-16 text-center font-semibold text-(--ink2)">사주를 풀고 있어요…</p>
|
||||
@@ -356,7 +360,7 @@ function MeCard({ r, onEdit }: { r: ResSaju; onEdit: () => void }) {
|
||||
const els = Object.entries(me.elements ?? {})
|
||||
const total = els.reduce((a, [, v]) => a + v, 0)
|
||||
const gods = [...new Set(me.pillars.flatMap((p) => [p.stem_ten_god, p.branch_ten_god]).filter((g): g is string => !!g && g in TEN_GOD_WORD))]
|
||||
const strength = me.strong == null ? null : me.strong ? '신강' : '신약'
|
||||
const strength = me.strength ?? (me.strong == null ? null : me.strong ? '신강' : '신약')
|
||||
return (
|
||||
<Panel icon={me.scene_icon} title="사주 명식" right={<button type="button" onClick={onEdit} className="cursor-pointer text-xs font-extrabold text-(--orange)">생년월일 바꾸기</button>}>
|
||||
{me.top_element && strength && (
|
||||
|
||||
Reference in new issue
Block a user