[SW2] 騎獣の価格に数値以外のものが入力されている場合に適切に整形する #241
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.
変更内容
G
をつけない必要でなさそうなときは単位
G
をつけない従来は、騎獣の価格に常に単位
![image](https://private-user-images.githubusercontent.com/44130782/356112398-95deca6b-be22-4801-acce-2bffb0c61102.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjU1MjE4NTcsIm5iZiI6MTcyNTUyMTU1NywicGF0aCI6Ii80NDEzMDc4Mi8zNTYxMTIzOTgtOTVkZWNhNmItYmUyMi00ODAxLWFjY2UtMmJmZmIwYzYxMTAyLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA5MDUlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwOTA1VDA3MzIzN1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTQ3MmU0MDMyNGIwMTJlNWI1NGNlNDk1YjRlY2Q5OTFiMTU1MTYzY2Q3MTBlYzA2MDhkYTVjN2U3YTljNDMzMjYmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.sGOjI3N8bD5Ax_OHYoHiL-z8FhUkmuKkH5Q8o0r9t9E)
G
がついていた。が、金額以外のものが記入されたときに不自然なことになるので、価格(の末尾)が数字でなければ単位をつけないようにした。
なお、金額以外のものが入力される具体例としては、(2.0時代の表現だが)『ルミエルレガシィ』137頁の「レンタル不能」などが考えられる。
末尾の括弧書きは単位の後ろに回す
(非売品)
など、末尾に括弧書きがある場合、その部分を単位より後ろに回すようにした。該当する表現の例は、やはり『ルミエルレガシィ』137頁などにある。