Equim-chan / tensoul

Convert MahjongSoul log into tenhou.net/6 format
MIT License
29 stars 9 forks source link

Fix tonpuu and hanchan disp for 3p #13

Closed hidacow closed 3 weeks ago

hidacow commented 3 weeks ago

The GameMode for 3p is 11(tonpuu) and 12(hanchan), while the current parser only considers gamemodes in 4p(which is 1 for tonpuu and 2 for hanchan), and skips parsing for 3p games.

This PR fixes the issue for rule disp for 3p, eg. 三王座の間南喰赤 for

GameConfig {
  category: 2,
  mode: GameMode { mode: 12, detail_rule: GameDetailRule {} },
  meta: GameMetaData { mode_id: 26 }
}