This commit is contained in:
syuilo 2024-01-29 11:47:01 +09:00
parent dad8430040
commit 5f48109230

View file

@ -217,6 +217,19 @@ const YAKU_DEFINITIONS = [{
false).length >= 3) false).length >= 3)
); );
}, },
}, {
name: 'seat-wind',
fan: 1,
calc: (state: EnvForCalcYaku) => {
return (
(state.handTiles.filter(t => t === state.house).length >= 3) ||
(state.huros.filter(huro =>
huro.type === 'pon' ? huro.tile === state.house :
huro.type === 'ankan' ? huro.tile === state.house :
huro.type === 'minkan' ? huro.tile === state.house :
false).length >= 3)
);
},
}, { }, {
name: 'tanyao', name: 'tanyao',
fan: 1, fan: 1,