Skip to content
This repository has been archived by the owner on Jul 1, 2021. It is now read-only.

Commit

Permalink
增加缺省
Browse files Browse the repository at this point in the history
  • Loading branch information
Rratic committed Mar 14, 2021
1 parent 4aead75 commit a5ae913
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 4 deletions.
3 changes: 2 additions & 1 deletion cpp11/maze-game.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,8 @@ void level_menu(unsigned short i){
cin>>input;
if(input=="0")return;
if(all.set(setting.tag["level-data"],input)){
all.help_words=lang.search("help-"+input);
if(lang.without("help-"+input))all.help_words=lang.search("no-help");
else all.help_words=lang.tag["help-"+input];
cls;
if(!lang.without("story-"+input))show_story(lang.tag["story-"+input]);
all.work();
Expand Down
2 changes: 1 addition & 1 deletion data/count.data
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
worlds:2
world-1:9
world-2:1
world-2:2
1 change: 1 addition & 0 deletions data/lang/en.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ letter-to:To:
---
level-unfound:Error opening level :(
level-uncompleted:Uncompleted
no-help:No help provided.
score:Score
win:Success!
die-0: fell into the void!
Expand Down
1 change: 1 addition & 0 deletions data/lang/zh.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ letter-to:发给:
---
level-unfound:打开关卡失败qaq
level-uncompleted:未完成
no-help:无帮助提供。
score:分数
win:成功了!
die-0:掉进了虚空!
Expand Down
4 changes: 2 additions & 2 deletions data/levels.data
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ $2-2
#......$......%#
#. .#####......#
#..............#
#... .. ......#
#... .. $.....#
#&{3,c}&{3,c}.. .........#
#&{3,c}@........ ...#
#&{3,c}@ ....... ...#
################

0 comments on commit a5ae913

Please sign in to comment.