Skip to content

Commit

Permalink
오류 수정
Browse files Browse the repository at this point in the history
- trNPCname에 한글이름이 들어오는 경우 오류나는 문제 수정 ( https://arca.live/b/textgame/96641767 )
  • Loading branch information
uotalkie committed Jan 15, 2024
1 parent 9ddee38 commit 6e71728
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
1 change: 0 additions & 1 deletion game/base-debug/customTestroom.twee
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@ navigator.userAgent=<<print navigator.userAgent>><br><br>
<br><br>
<<l10ntest>>
<br>
<<trNPCname 10 "을">>_trResult<br>
[[Robin Trick Hall]]<br>
<<generatem1>><<person1>><<trNPCdesc $NPCList[0].fullDescription "이">>_trResult<br>
<<endevent>>
Expand Down
2 changes: 1 addition & 1 deletion game/base-system/translate/trNPCdesc.twee
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@
<<if _args[0] is undefined>>
<<set $_name to $NPCList[0].name>>
<<elseif typeof _args[0] is "string">>
<<if _args[0].substring(0,1).search("[가-힣]") gte 0>>
<<if def setup.trPostsList[_args[0]]>>
<<set $_name to $NPCList[0].name>><<set $_post to _args[0]>><<set $_sep to _args[1]>>
<<else>>
<<set $_name to _args[0]>>
Expand Down
1 change: 1 addition & 0 deletions game/base-system/translate/trPost.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ const trPostsList = {
"이다" : ["이다", "다", "이다"], "다" : ["이다", "다", "이다"],
"이지" : ["이지", "지", "이지"], "지" : ["이지", "지", "이지"]
};
setup.trPostsList = trPostsList;

function trPost(postNum, post, sep)
{
Expand Down

0 comments on commit 6e71728

Please sign in to comment.