Skip to content

Commit

Permalink
Merge pull request #245 from WhiteCloud0123/develop
Browse files Browse the repository at this point in the history
添加一个选项“可以看到怪物的等级” + 调整 “骑乘状态可以下楼”的默认值为true
  • Loading branch information
WhiteCloud0123 authored Aug 1, 2023
2 parents eece647 + dc6cec3 commit 6bd6d30
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
6 changes: 4 additions & 2 deletions src/monster.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -780,8 +780,10 @@ int monster::print_info(const catacurses::window& w, int vStart, int vLines, int
oss << "<color_white>" << std::string(5 - utf8_width(bar_str), '.') << "</color> ";
oss << get_tag_from_color(basic_symbol_color()) << name() << "</color> ";
oss << "<color_h_white>" << get_effect_status() << "</color>";


if (get_option<bool>("可以看到怪物的等级") == true) {
oss << "\n";
oss << "<color_white>" << "等级 : " << lv_breeze << "</color>";
}
/*oss << "\n";
oss << "\n";
oss << "<color_white>" << "友好度:" << friendly << "</color>";
Expand Down
5 changes: 4 additions & 1 deletion src/options.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1373,10 +1373,13 @@ void options_manager::add_options_general()
);*/
add_empty_line();

add("骑乘状态可以上下楼", "general", to_translation("骑乘状态可以上下楼"), to_translation("当此选项的值为 true 时,骑乘状态可以上下楼。"), false);
add("骑乘状态可以上下楼", "general", to_translation("骑乘状态可以上下楼"), to_translation("当此选项的值为 true 时,骑乘状态可以上下楼。"), true);
add("可以看到怪物的等级", "general", to_translation("可以看到怪物的等级"), to_translation("当此选项的值为 true 时,可以看到怪物的等级。"), true);

add_empty_line();



add( "AUTO_PICKUP", "general", to_translation( "Auto pickup enabled" ),
to_translation( "If true, enable item auto pickup. Change pickup rules with the Auto pickup manager." ),
false
Expand Down
2 changes: 1 addition & 1 deletion 内容汇总.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,4 +56,4 @@

28 骑乘状态下,被骑乘的怪物可以对玩家的近战攻击的目标进行近战攻击。


29 添加了名为“可以看到怪物的等级”的选项。

0 comments on commit 6bd6d30

Please sign in to comment.