[DX3] 4番目以降のロイス枠が完全に空であれば、閲覧画面では表示しない #223
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
変更内容
4番目以降のロイス枠が完全に空であれば、閲覧画面では表示しないように。
表示例
理由
固定ロイス(PCがセッション外で静的に保有するロイス)の数は原則「3」であり、(レコードシートではなく)キャラクターシートに記載する数もまたそれに等しい。
(cf. 『ルールブック1』P60~61、同P217、同P223、ならびに、公式のキャラクターシート等)
公式のキャラクターシートの例:
ゆとシートが、セッション中の便宜のために、固定ロイス以外のロイスもとりあつかえるようにしていることは認識しているが、「記入されていなければ表示せず、記入されていれば表示する」という挙動であれば、その意図には支障をきたさないと考える。
実装方法に関する補足
CSS による表示の調整ではなく DOM 自体を生成しないかたちで実装したのは、歯抜けの可能性(4番目が空で5番目が埋まっている、というようなケース)を考慮すると、 CSS による実装では、行に交互に色をつける挙動と折り合いがつけづらいため。