Skip to content

Commit

Permalink
Merge pull request #643 from WhiteCloud0123/develop
Browse files Browse the repository at this point in the history
develop -> before_reality_bubble
  • Loading branch information
WhiteCloud0123 authored May 16, 2024
2 parents 65b0180 + 952407a commit c1b4f85
Show file tree
Hide file tree
Showing 10 changed files with 40 additions and 22 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,9 @@ public void onClick(DialogInterface dialog, int id) {
totalFiles = countTotalAssets(assetManager, "data") +
countTotalAssets(assetManager, "gfx") +
countTotalAssets(assetManager, "lang") +
countTotalAssets(assetManager, "config");
countTotalAssets(assetManager, "config") +
countTotalAssets(assetManager, "save")
;
showDialog(INSTALL_DIALOG_ID);
} catch(Exception e) {
installationAlert.setMessage(e.getMessage());
Expand Down Expand Up @@ -317,7 +319,7 @@ protected Boolean doInBackground(Void... params) {
copyAssetFolder(assetManager, "gfx", externalFilesDir + "/gfx");
copyAssetFolder(assetManager, "lang", externalFilesDir + "/lang");
copyAssetFolder(assetManager, "config", externalFilesDir + "/config");

copyAssetFolder(assetManager, "save", externalFilesDir + "/save");


} catch(Exception e) {
Expand Down
1 change: 1 addition & 0 deletions src/cached_options.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ int pixel_minimap_a;
bool use_particle_system;
bool use_show_creature_hp_bar;
bool use_show_player_move_point;
bool use_animation;

#ifndef CATA_IN_TOOL
error_log_format_t error_log_format = error_log_format_t::human_readable;
Expand Down
1 change: 1 addition & 0 deletions src/cached_options.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ extern int pixel_minimap_a;
extern bool use_particle_system;
extern bool use_show_creature_hp_bar;
extern bool use_show_player_move_point;
extern bool use_animation;

// test_mode is not a regular game option; it's true when we are running unit
// tests.
Expand Down
4 changes: 2 additions & 2 deletions src/cata_tiles.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3634,8 +3634,8 @@ bool cata_tiles::draw_vpart( const tripoint &p, lit_level ll, int &height_3d,
const vehicle_stack& v_s_ref = veh.get_items(cargopart->part_index());


// 如果这个载具的部分(电器)是不是传送带,如果是那么就直接用亮色突出物品
// 其他时候,我们要看看此传送带上的物品数量是不是大于1,大于一高亮显示,并显示物品
// 检查这个cargopart是不是传送带,如果不是,那么就直接高亮标记
// 其他时候,我们要看看此传送带上的物品数量是不是大于1,大于一高亮标记,并显示物品
// ,不大于一,仅仅显示物品。
if (cargopart->info().has_flag("CONVEYOR_BELT") == false) {

Expand Down
2 changes: 1 addition & 1 deletion src/game.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11362,7 +11362,7 @@ void game::fling_creature_up(Creature* c, const units::angle& dir,float flvel, b
bool thru = true;
const bool is_u = c == &u;
// Don't animate critters getting bashed if animations are off
const bool animate = is_u || get_option<bool>("ANIMATIONS");
const bool animate = is_u || use_animation;

Character* you = dynamic_cast<Character*>(c);

Expand Down
2 changes: 1 addition & 1 deletion src/handle_action.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -501,7 +501,7 @@ input_context game::get_player_input(std::string& action)

user_turn current_turn;

if (get_option<bool>("ANIMATIONS")) {
if (use_animation) {
const int TOTAL_VIEW = MAX_VIEW_DISTANCE * 2 + 1;
point iStart((TERRAIN_WINDOW_WIDTH > TOTAL_VIEW) ? (TERRAIN_WINDOW_WIDTH - TOTAL_VIEW) / 2 : 0,
(TERRAIN_WINDOW_HEIGHT > TOTAL_VIEW) ? (TERRAIN_WINDOW_HEIGHT - TOTAL_VIEW) / 2 :
Expand Down
2 changes: 1 addition & 1 deletion src/monster.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ monster::monster(const mtype_id& id) : monster()
hp = type->hp;
for (const auto& sa : type->special_attacks) {
mon_special_attack& entry = special_attacks[sa.first];
entry.cooldown = rng(0, sa.second->cooldown);
entry.cooldown = sa.second->cooldown;
}
anger = type->agro;
morale = type->morale;
Expand Down
13 changes: 7 additions & 6 deletions src/options.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1630,9 +1630,13 @@ void options_manager::add_options_interface()

add_empty_line();

add("显示独立角色的图片", "interface", to_translation("显示独立角色的图片"),
to_translation("开启后,在与独立角色进行交谈时,将显示该角色的图片。"),
true
);
add("派系态度以数值显示", "interface", to_translation("派系态度以数值显示"), to_translation("当此选项的值为 是 时,在派系界面,对你的态度会显示具体的数值。"), false);
add("显示玩家的剩余行动点", "interface", to_translation("显示玩家的剩余行动点"), to_translation("当此选项的值为 是 时,会在游戏画面上显示玩家的剩余行动点。关闭此选项可以提升游戏性能。"), false);
add("显示生物血条", "interface", to_translation("显示生物血条"), to_translation("当此选项的值为 是 时,会在游戏画面上显示除了玩家之外的其他生物的血条。关闭此选项可以提升游戏性能。"), false);
add("显示玩家的剩余行动点", "interface", to_translation("显示玩家的剩余行动点"), to_translation("当此选项的值为 是 时,会在游戏画面上显示玩家的剩余行动点。"), false);
add("显示生物血条", "interface", to_translation("显示生物血条"), to_translation("当此选项的值为 是 时,会在游戏画面上显示除了玩家之外的其他生物的血条。"), false);

add_empty_line();

Expand Down Expand Up @@ -2008,10 +2012,6 @@ void options_manager::add_options_graphics()
graphics_page_.items_.emplace_back();
};

add("显示独立角色的图片", "graphics", to_translation("显示独立角色的图片"),
to_translation("开启后,在与独立角色进行交谈时,将显示该角色的图片。"),
true
);

add("启用粒子特效", "graphics", to_translation("启用粒子特效"),
to_translation("目前是测试阶段。开启后,将在游戏的一些地方应用粒子特效,同时提高游戏画面的刷新频率。目前已在 细雨、雨、雪 这三种天气上应用。"),
Expand Down Expand Up @@ -3691,6 +3691,7 @@ static void update_options_cache()
use_particle_system = ::get_option<bool>("启用粒子特效");
use_show_creature_hp_bar = ::get_option<bool>("显示生物血条");
use_show_player_move_point = ::get_option<bool>("显示玩家的剩余行动点");
use_animation =::get_option<bool>("ANIMATIONS");
}

bool options_manager::save() const
Expand Down
2 changes: 1 addition & 1 deletion src/savegame_json.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2708,7 +2708,7 @@ void monster::load( const JsonObject &data )
const std::string &aname = sa.first;
if( special_attacks.find( aname ) == special_attacks.end() ) {
auto &entry = special_attacks[aname];
entry.cooldown = rng( 0, sa.second->cooldown );
entry.cooldown = sa.second->cooldown;
}
}

Expand Down
29 changes: 21 additions & 8 deletions 内容汇总.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@

- 修复了ASRG发电机双倍发电的问题。

- 修复每次进入游戏怪物的第一次特殊攻击的冷却时间在范围内随机的问题。

# 优化:

- 优化了身边有大量物品时的制作速度。
Expand Down Expand Up @@ -70,6 +72,16 @@

- 将cata_tiles::draw中的局部常量drawing_layers与drawing_layers_legacy作为private成员。

- ff::point_flood_fill_4_connected(用于自动驾驶和部分地形的生成):使用phmap::flat_hash_set代替std::unordered_set

- Character::leak_items:std::vector->veque::veque

- Character::process_items:std::vector->veque::veque

- cata_tiles::draw:std::map->phmap::btree_map

- get_option/get_world_defaults:std::unordered_map -> phmap::flat_hash_map

# 新增特性

- 在设置中的常规选项卡里添加了名为“骑乘状态可以上下楼”的选项。
Expand Down Expand Up @@ -119,8 +131,8 @@
- 引入了怪物等级。怪物击杀敌人可以获取经验,每升1级,速度加5,最大等级为10级。“怪物的等级 * 5”可以作为怪物的近战伤害加成。可以在设置的常规选项卡下的“怪物的等级动态变化”选项设置为关。未来进行扩展。

- 平衡真菌在游戏中的强度。预想中,真菌应该成为综合实力中等或者稍弱的派系,但是如果玩家有意辅佐,便能迅速壮大。
1. 如果是白天,真菌雾( FUNGUS_HAZE )的成功喷射几率为 1/75,其他时间为1/100。喷射范围由3降低到1。强度设定为2。
2. 如果是白天,真菌大开花( FUNGUS_BIG_BLOSSOM )的成功几率为 1/75,其他时间为1/100,喷射范围由12降低到6,强度设定为2。
1. 如果是白天,FUNGUS_HAZE的成功几率为 1/75,其他时间为1/100。喷射范围由3降低到1。强度设定为2。
2. 如果是白天,FUNGUS_BIG_BLOSSOM的成功几率为 1/75,其他时间为1/100,喷射范围由12降低到6,强度设定为2。


- 特效:添加粒子系统系统。在设置的“图形”选项卡下添加名为“启用粒子特效”的选项,目前是测试阶段。开启后,将在游戏的一些地方应用粒子特效,同时提高游戏画面的刷新频率。目前已在 细雨、雨、雪 这三种天气上应用。目前默认为关。
Expand Down Expand Up @@ -189,8 +201,6 @@

- 允许远距攻击应用战技。

- 可以在设置里调节种子的生长周期。

- 添加拼音搜索。可以在设置的“界面”选项卡里进行开/关。

- 添加树梢,以及可以爬树。
Expand All @@ -211,17 +221,20 @@

- 在“和他人交谈”菜单上加入一个选项可以命令npc前往指定位置,到达后,npc会再返回。

- 在施法界面,可以根据法术体系对法术进行分类,以及可以收藏法术。

- 在界面选项卡里,添加一个名为“派系态度以数值显示”的选项,开启时,在派系界面,派系态度将以数值的方式显示。默认为关。

- 在设置的“默认世界”/“当前世界”选项卡下添加名为“宏观种子生长周期比例系数”的选项。

- 在设置的“调试”选项卡下添加名为“不再弹出错误信息”的选项。

- 在设置的“图形”选项卡下添加名为“显示独立角色的图片”的选项。
- 在设置的“界面”选项卡下添加名为“显示独立角色的图片”的选项。

- 在施法界面,可以根据法术体系对法术进行分类,以及可以收藏法术
- 在设置的“界面”选项卡下添加名为“显示生物血条”的选项

- 可以在设置里选择是否在游戏画面上显示除了玩家之外的其他的生物的血条
- 在设置的“界面”选项卡下添加名为“显示玩家的剩余行动点”的选项

- 可以在设置里选择是否在游戏画面上显示玩家的剩余行动点。

# 其他修改

Expand Down

0 comments on commit c1b4f85

Please sign in to comment.