Rename Blueballz mode to Brutal Peeps

This commit is contained in:
2026-06-05 19:19:48 -04:00
parent 108eee0154
commit 08c897cbea
8 changed files with 106 additions and 106 deletions
+1 -1
View File
@@ -152,7 +152,7 @@ public:
uint8_t override_lobby_event = 0xFF; // FF = no override uint8_t override_lobby_event = 0xFF; // FF = no override
uint8_t override_lobby_number = 0x80; // 80 = no override uint8_t override_lobby_number = 0x80; // 80 = no override
int64_t override_random_seed = -1; int64_t override_random_seed = -1;
int8_t selected_blueballz_tier = -1; // -1 = normal lobby/game; 0..10 = requested Blueballz tier int8_t selected_brutal_peeps_tier = -1; // -1 = normal lobby/game; 0..10 = requested Brutal Peeps tier
std::unique_ptr<Variations> override_variations; std::unique_ptr<Variations> override_variations;
VectorXYZF pos; VectorXYZF pos;
uint32_t floor = 0x0F; uint32_t floor = 0x0F;
+3 -3
View File
@@ -228,10 +228,10 @@ void Lobby::create_item_creator(Version logic_version) {
effective_section_id, effective_section_id,
rand_crypt, rand_crypt,
this->quest ? this->quest->meta.battle_rules : nullptr); this->quest ? this->quest->meta.battle_rules : nullptr);
if (this->blueballz_tier >= 0) { if (this->brutal_peeps_tier >= 0) {
double rare_mult = 1.25 + (static_cast<double>(this->blueballz_tier) * 0.25); double rare_mult = 1.25 + (static_cast<double>(this->brutal_peeps_tier) * 0.25);
this->item_creator->set_rare_drop_rate_multiplier(rare_mult); this->item_creator->set_rare_drop_rate_multiplier(rare_mult);
this->log.info_f("Blueballz +{} rare drop rate multiplier set to {:g}x", this->blueballz_tier, rare_mult); this->log.info_f("Brutal Peeps +{} rare drop rate multiplier set to {:g}x", this->brutal_peeps_tier, rare_mult);
} }
if (s->use_legacy_item_random_behavior) { if (s->use_legacy_item_random_behavior) {
this->item_creator->set_legacy_replay(); this->item_creator->set_legacy_replay();
+2 -2
View File
@@ -81,7 +81,7 @@ struct Lobby : public std::enable_shared_from_this<Lobby> {
START_BATTLE_PLAYER_IMMEDIATELY = 0x00010000, START_BATTLE_PLAYER_IMMEDIATELY = 0x00010000,
CANNOT_CHANGE_CHEAT_MODE = 0x00020000, CANNOT_CHANGE_CHEAT_MODE = 0x00020000,
USE_CREATOR_SECTION_ID = 0x00040000, USE_CREATOR_SECTION_ID = 0x00040000,
BLUEBALLZ_PLUS0 = 0x00080000, BRUTAL_PEEPS_PLUS0 = 0x00080000,
// Flags used only for lobbies // Flags used only for lobbies
PUBLIC = 0x01000000, PUBLIC = 0x01000000,
DEFAULT = 0x02000000, DEFAULT = 0x02000000,
@@ -119,7 +119,7 @@ struct Lobby : public std::enable_shared_from_this<Lobby> {
Episode episode = Episode::NONE; Episode episode = Episode::NONE;
GameMode mode = GameMode::NORMAL; GameMode mode = GameMode::NORMAL;
Difficulty difficulty = Difficulty::NORMAL; Difficulty difficulty = Difficulty::NORMAL;
int8_t blueballz_tier = -1; // -1 = disabled; 0..10 = Blueballz +0..+10 int8_t brutal_peeps_tier = -1; // -1 = disabled; 0..10 = Brutal Peeps +0..+10
float base_exp_multiplier = 1.0f; float base_exp_multiplier = 1.0f;
float exp_share_multiplier = 0.5f; float exp_share_multiplier = 0.5f;
float challenge_exp_multiplier = 1.0f; float challenge_exp_multiplier = 1.0f;
+1 -1
View File
@@ -47,7 +47,7 @@ constexpr uint32_t BB_TEST_SHIP = 0x11BBBB11;
constexpr uint32_t BB_VANILLA_SHIP = 0x11CCCC11; constexpr uint32_t BB_VANILLA_SHIP = 0x11CCCC11;
constexpr uint32_t BB_HARDCORE_SHIP = 0x11F00D11; constexpr uint32_t BB_HARDCORE_SHIP = 0x11F00D11;
constexpr uint32_t BB_DEV_SHIP = 0x11EEEE11; constexpr uint32_t BB_DEV_SHIP = 0x11EEEE11;
constexpr uint32_t BLUEBALLZ_PLUS0 = 0x11DDDD11; constexpr uint32_t BRUTAL_PEEPS_PLUS0 = 0x11DDDD11;
} // namespace MainMenuItemID } // namespace MainMenuItemID
namespace ClearLicenseConfirmationMenuItemID { namespace ClearLicenseConfirmationMenuItemID {
+65 -65
View File
@@ -306,21 +306,21 @@ static void send_main_menu(std::shared_ptr<Client> c) {
num_players, num_games, num_compatible_games); num_players, num_games, num_compatible_games);
}, },
go_to_lobby_menu_item_flags); go_to_lobby_menu_item_flags);
bool show_blueballz_menu_items = bool show_brutal_peeps_menu_items =
bb_destination_transport_menu && bb_destination_transport_menu &&
s->enable_blueballz && s->enable_brutal_peeps_mode &&
(s->blueballz_unlocked_tier_v4 >= 0); (s->brutal_peeps_unlocked_tier_v4 >= 0);
if (show_blueballz_menu_items) { if (show_brutal_peeps_menu_items) {
int64_t max_blueballz_menu_tier = std::min<int64_t>( int64_t max_brutal_peeps_menu_tier = std::min<int64_t>(
s->blueballz_max_tier, s->brutal_peeps_max_tier,
s->blueballz_unlocked_tier_v4); s->brutal_peeps_unlocked_tier_v4);
for (int64_t tier = 0; tier <= max_blueballz_menu_tier; tier++) { for (int64_t tier = 0; tier <= max_brutal_peeps_menu_tier; tier++) {
main_menu->items.emplace_back( main_menu->items.emplace_back(
MainMenuItemID::BLUEBALLZ_PLUS0 + static_cast<uint32_t>(tier), MainMenuItemID::BRUTAL_PEEPS_PLUS0 + static_cast<uint32_t>(tier),
std::format("Blueballz +{}", tier), std::format("Brutal Peeps +{}", tier),
std::format("Enter Blueballz\n+{}", tier), std::format("Enter Brutal Peeps\n+{}", tier),
MenuItem::Flag::BB_ONLY); MenuItem::Flag::BB_ONLY);
} }
} }
@@ -2735,21 +2735,21 @@ void set_lobby_quest(std::shared_ptr<Lobby> l, std::shared_ptr<const Quest> q, b
static asio::awaitable<void> on_10_main_menu(std::shared_ptr<Client> c, uint32_t item_id) { static asio::awaitable<void> on_10_main_menu(std::shared_ptr<Client> c, uint32_t item_id) {
auto s = c->require_server_state(); auto s = c->require_server_state();
if ((item_id >= MainMenuItemID::BLUEBALLZ_PLUS0) && if ((item_id >= MainMenuItemID::BRUTAL_PEEPS_PLUS0) &&
(item_id <= (MainMenuItemID::BLUEBALLZ_PLUS0 + 10))) { (item_id <= (MainMenuItemID::BRUTAL_PEEPS_PLUS0 + 10))) {
int64_t tier = item_id - MainMenuItemID::BLUEBALLZ_PLUS0; int64_t tier = item_id - MainMenuItemID::BRUTAL_PEEPS_PLUS0;
if (!s->enable_blueballz || if (!s->enable_brutal_peeps_mode ||
!is_v4(c->version()) || !is_v4(c->version()) ||
(tier < 0) || (tier < 0) ||
(tier > s->blueballz_max_tier) || (tier > s->brutal_peeps_max_tier) ||
(tier > s->blueballz_unlocked_tier_v4)) { (tier > s->brutal_peeps_unlocked_tier_v4)) {
send_message_box(c, std::format("$C6Blueballz +{} is not available.", tier)); send_message_box(c, std::format("$C6Brutal Peeps +{} is not available.", tier));
co_return; co_return;
} }
c->selected_blueballz_tier = tier; c->selected_brutal_peeps_tier = tier;
c->log.info_f("Blueballz +{} selected from BB menu", tier); c->log.info_f("Brutal Peeps +{} selected from BB menu", tier);
co_await send_auto_patches_if_needed(c); co_await send_auto_patches_if_needed(c);
co_await enable_save_if_needed(c); co_await enable_save_if_needed(c);
@@ -2762,7 +2762,7 @@ static asio::awaitable<void> on_10_main_menu(std::shared_ptr<Client> c, uint32_t
switch (item_id) { switch (item_id) {
case MainMenuItemID::GO_TO_LOBBY: { case MainMenuItemID::GO_TO_LOBBY: {
c->selected_blueballz_tier = -1; c->selected_brutal_peeps_tier = -1;
co_await send_auto_patches_if_needed(c); co_await send_auto_patches_if_needed(c);
co_await enable_save_if_needed(c); co_await enable_save_if_needed(c);
send_lobby_list(c); send_lobby_list(c);
@@ -2775,12 +2775,12 @@ static asio::awaitable<void> on_10_main_menu(std::shared_ptr<Client> c, uint32_t
break; break;
} }
case MainMenuItemID::BLUEBALLZ_PLUS0: { case MainMenuItemID::BRUTAL_PEEPS_PLUS0: {
if (!s->enable_blueballz || (c->version() != Version::DC_V2) || (s->blueballz_unlocked_tier_v2 < 0)) { if (!s->enable_brutal_peeps_mode || (c->version() != Version::DC_V2) || (s->brutal_peeps_unlocked_tier_v2 < 0)) {
send_message_box(c, "$C6Blueballz +0 is not available."); send_message_box(c, "$C6Brutal Peeps +0 is not available.");
break; break;
} }
c->selected_blueballz_tier = 0; c->selected_brutal_peeps_tier = 0;
co_await send_auto_patches_if_needed(c); co_await send_auto_patches_if_needed(c);
co_await enable_save_if_needed(c); co_await enable_save_if_needed(c);
send_lobby_list(c); send_lobby_list(c);
@@ -2807,7 +2807,7 @@ static asio::awaitable<void> on_10_main_menu(std::shared_ptr<Client> c, uint32_t
} }
if ((c->listener_port == 12000) || (c->listener_port == 12001) || if ((c->listener_port == 12000) || (c->listener_port == 12001) ||
(c->listener_port == 19145) || (c->listener_port == 19146)) { (c->listener_port == 19145) || (c->listener_port == 19146)) {
c->selected_blueballz_tier = -1; c->selected_brutal_peeps_tier = -1;
co_await send_auto_patches_if_needed(c); co_await send_auto_patches_if_needed(c);
co_await enable_save_if_needed(c); co_await enable_save_if_needed(c);
send_lobby_list(c); send_lobby_list(c);
@@ -2826,7 +2826,7 @@ static asio::awaitable<void> on_10_main_menu(std::shared_ptr<Client> c, uint32_t
break; break;
} }
if ((c->listener_port == 19345) || (c->listener_port == 19346)) { if ((c->listener_port == 19345) || (c->listener_port == 19346)) {
c->selected_blueballz_tier = -1; c->selected_brutal_peeps_tier = -1;
co_await send_auto_patches_if_needed(c); co_await send_auto_patches_if_needed(c);
co_await enable_save_if_needed(c); co_await enable_save_if_needed(c);
send_lobby_list(c); send_lobby_list(c);
@@ -2847,7 +2847,7 @@ static asio::awaitable<void> on_10_main_menu(std::shared_ptr<Client> c, uint32_t
break; break;
} }
if ((c->listener_port == 19445) || (c->listener_port == 19446)) { if ((c->listener_port == 19445) || (c->listener_port == 19446)) {
c->selected_blueballz_tier = -1; c->selected_brutal_peeps_tier = -1;
co_await send_auto_patches_if_needed(c); co_await send_auto_patches_if_needed(c);
co_await enable_save_if_needed(c); co_await enable_save_if_needed(c);
send_lobby_list(c); send_lobby_list(c);
@@ -2868,7 +2868,7 @@ static asio::awaitable<void> on_10_main_menu(std::shared_ptr<Client> c, uint32_t
break; break;
} }
if ((c->listener_port == 19245) || (c->listener_port == 19246)) { if ((c->listener_port == 19245) || (c->listener_port == 19246)) {
c->selected_blueballz_tier = -1; c->selected_brutal_peeps_tier = -1;
co_await send_auto_patches_if_needed(c); co_await send_auto_patches_if_needed(c);
co_await enable_save_if_needed(c); co_await enable_save_if_needed(c);
send_lobby_list(c); send_lobby_list(c);
@@ -5081,27 +5081,27 @@ std::shared_ptr<Lobby> create_game_generic(
if (creator_c->check_flag(Client::Flag::IS_CLIENT_CUSTOMIZATION)) { if (creator_c->check_flag(Client::Flag::IS_CLIENT_CUSTOMIZATION)) {
game->set_flag(Lobby::Flag::IS_CLIENT_CUSTOMIZATION); game->set_flag(Lobby::Flag::IS_CLIENT_CUSTOMIZATION);
} }
game->log.info_f("PSO Peeps BBZ debug: created game name=[{}] version={} difficulty={} enable_blueballz={} unlocked_v4={} max_tier={}", game->log.info_f("PSO Peeps Brutal Peeps debug: created game name=[{}] version={} difficulty={} enable_brutal_peeps_mode={} unlocked_v4={} max_tier={}",
name, name,
static_cast<size_t>(creator_c->version()), static_cast<size_t>(creator_c->version()),
name_for_difficulty(difficulty), name_for_difficulty(difficulty),
s->enable_blueballz, s->enable_brutal_peeps_mode,
s->blueballz_unlocked_tier_v4, s->brutal_peeps_unlocked_tier_v4,
s->blueballz_max_tier); s->brutal_peeps_max_tier);
int8_t requested_blueballz_tier = -1; int8_t requested_brutal_peeps_tier = -1;
bool requested_blueballz = false; bool requested_brutal_peeps = false;
std::string requested_blueballz_source = "none"; std::string requested_brutal_peeps_source = "none";
if (creator_c->selected_blueballz_tier >= 0) { if (creator_c->selected_brutal_peeps_tier >= 0) {
requested_blueballz = true; requested_brutal_peeps = true;
requested_blueballz_tier = creator_c->selected_blueballz_tier; requested_brutal_peeps_tier = creator_c->selected_brutal_peeps_tier;
requested_blueballz_source = "BB menu selection"; requested_brutal_peeps_source = "BB menu selection";
} else { } else {
size_t bb_prefix_offset = name.find("[BB+"); size_t bb_prefix_offset = name.find("[BB+");
if (bb_prefix_offset != std::string::npos) { if (bb_prefix_offset != std::string::npos) {
requested_blueballz = true; requested_brutal_peeps = true;
requested_blueballz_source = "room prefix"; requested_brutal_peeps_source = "room prefix";
size_t tier_start_offset = bb_prefix_offset + 4; size_t tier_start_offset = bb_prefix_offset + 4;
size_t close_offset = name.find(']', tier_start_offset); size_t close_offset = name.find(']', tier_start_offset);
if (close_offset != std::string::npos) { if (close_offset != std::string::npos) {
@@ -5115,35 +5115,35 @@ std::shared_ptr<Lobby> create_game_generic(
} }
if (tier_str_valid) { if (tier_str_valid) {
int64_t parsed_tier = std::stoll(tier_str); int64_t parsed_tier = std::stoll(tier_str);
if ((parsed_tier >= 0) && (parsed_tier <= s->blueballz_max_tier)) { if ((parsed_tier >= 0) && (parsed_tier <= s->brutal_peeps_max_tier)) {
requested_blueballz_tier = parsed_tier; requested_brutal_peeps_tier = parsed_tier;
} }
} }
} }
} }
} }
if (requested_blueballz_tier >= 0) { if (requested_brutal_peeps_tier >= 0) {
if (s->enable_blueballz && if (s->enable_brutal_peeps_mode &&
is_v4(creator_c->version()) && is_v4(creator_c->version()) &&
(difficulty == Difficulty::ULTIMATE) && (difficulty == Difficulty::ULTIMATE) &&
(requested_blueballz_tier <= s->blueballz_unlocked_tier_v4)) { (requested_brutal_peeps_tier <= s->brutal_peeps_unlocked_tier_v4)) {
game->blueballz_tier = requested_blueballz_tier; game->brutal_peeps_tier = requested_brutal_peeps_tier;
game->set_flag(Lobby::Flag::BLUEBALLZ_PLUS0); game->set_flag(Lobby::Flag::BRUTAL_PEEPS_PLUS0);
game->log.info_f("Blueballz +{} enabled for BB Ultimate game via {}", game->log.info_f("Brutal Peeps +{} enabled for BB Ultimate game via {}",
static_cast<int>(game->blueballz_tier), static_cast<int>(game->brutal_peeps_tier),
requested_blueballz_source); requested_brutal_peeps_source);
} else { } else {
game->log.info_f("Blueballz +{} room prefix ignored; enable={}, version={}, difficulty={}, unlocked_v4={}, max_tier={}", game->log.info_f("Brutal Peeps +{} room prefix ignored; enable={}, version={}, difficulty={}, unlocked_v4={}, max_tier={}",
static_cast<int>(requested_blueballz_tier), static_cast<int>(requested_brutal_peeps_tier),
s->enable_blueballz, s->enable_brutal_peeps_mode,
static_cast<size_t>(creator_c->version()), static_cast<size_t>(creator_c->version()),
name_for_difficulty(difficulty), name_for_difficulty(difficulty),
s->blueballz_unlocked_tier_v4, s->brutal_peeps_unlocked_tier_v4,
s->blueballz_max_tier); s->brutal_peeps_max_tier);
} }
} else if (requested_blueballz) { } else if (requested_brutal_peeps) {
game->log.info_f("Blueballz room prefix ignored; invalid prefix in room name: {}", name); game->log.info_f("Brutal Peeps room prefix ignored; invalid prefix in room name: {}", name);
} }
while (game->floor_item_managers.size() < 0x12) { while (game->floor_item_managers.size() < 0x12) {
@@ -5188,14 +5188,14 @@ std::shared_ptr<Lobby> create_game_generic(
battle_player->set_lobby(game); battle_player->set_lobby(game);
} }
game->base_exp_multiplier = s->bb_global_exp_multiplier; game->base_exp_multiplier = s->bb_global_exp_multiplier;
if (game->blueballz_tier >= 0) { if (game->brutal_peeps_tier >= 0) {
float blueballz_exp_multiplier = 1.0f + (static_cast<float>(game->blueballz_tier) * 0.25f); float brutal_peeps_exp_multiplier = 1.0f + (static_cast<float>(game->brutal_peeps_tier) * 0.25f);
game->base_exp_multiplier *= blueballz_exp_multiplier; game->base_exp_multiplier *= brutal_peeps_exp_multiplier;
game->log.info_f("Blueballz +{} EXP multiplier set to {:g}x total (BBGlobalEXPMultiplier={:g}, blueballz={:g})", game->log.info_f("Brutal Peeps +{} EXP multiplier set to {:g}x total (BBGlobalEXPMultiplier={:g}, brutal_peeps={:g})",
static_cast<int>(game->blueballz_tier), static_cast<int>(game->brutal_peeps_tier),
game->base_exp_multiplier, game->base_exp_multiplier,
s->bb_global_exp_multiplier, s->bb_global_exp_multiplier,
blueballz_exp_multiplier); brutal_peeps_exp_multiplier);
} }
game->exp_share_multiplier = s->exp_share_multiplier; game->exp_share_multiplier = s->exp_share_multiplier;
+14 -14
View File
@@ -699,7 +699,7 @@ void send_guild_card_chunk_bb(std::shared_ptr<Client> c, size_t chunk_index) {
static bool is_battle_param_stream_file_for_blueballz(const std::string& filename) { static bool is_battle_param_stream_file_for_brutal_peeps(const std::string& filename) {
return (filename == "BattleParamEntry.dat") || return (filename == "BattleParamEntry.dat") ||
(filename == "BattleParamEntry_on.dat") || (filename == "BattleParamEntry_on.dat") ||
(filename == "BattleParamEntry_lab.dat") || (filename == "BattleParamEntry_lab.dat") ||
@@ -711,20 +711,20 @@ static bool is_battle_param_stream_file_for_blueballz(const std::string& filenam
static std::string bb_stream_file_data_for_client(std::shared_ptr<Client> c) { static std::string bb_stream_file_data_for_client(std::shared_ptr<Client> c) {
auto s = c->require_server_state(); auto s = c->require_server_state();
int64_t effective_blueballz_hp_scale_tier = (c->selected_blueballz_tier >= 0) int64_t effective_brutal_peeps_hp_scale_tier = (c->selected_brutal_peeps_tier >= 0)
? c->selected_blueballz_tier ? c->selected_brutal_peeps_tier
: s->blueballz_enemy_hp_scale_tier; : s->brutal_peeps_enemy_hp_scale_tier;
if (effective_blueballz_hp_scale_tier < 0) { if (effective_brutal_peeps_hp_scale_tier < 0) {
return s->bb_stream_file->data; return s->bb_stream_file->data;
} }
effective_blueballz_hp_scale_tier = std::min<int64_t>( effective_brutal_peeps_hp_scale_tier = std::min<int64_t>(
s->blueballz_max_tier, s->brutal_peeps_max_tier,
effective_blueballz_hp_scale_tier); effective_brutal_peeps_hp_scale_tier);
std::string scaled_data = s->bb_stream_file->data; std::string scaled_data = s->bb_stream_file->data;
double mult = 1.0 + (static_cast<double>(effective_blueballz_hp_scale_tier) * 0.25); double mult = 1.0 + (static_cast<double>(effective_brutal_peeps_hp_scale_tier) * 0.25);
size_t ultimate_index = static_cast<size_t>(Difficulty::ULTIMATE); size_t ultimate_index = static_cast<size_t>(Difficulty::ULTIMATE);
auto scale_u16 = [mult](uint32_t v) -> uint16_t { auto scale_u16 = [mult](uint32_t v) -> uint16_t {
@@ -742,19 +742,19 @@ static std::string bb_stream_file_data_for_client(std::shared_ptr<Client> c) {
}; };
for (const auto& sf_entry : s->bb_stream_file->entries) { for (const auto& sf_entry : s->bb_stream_file->entries) {
if (!is_battle_param_stream_file_for_blueballz(sf_entry.filename)) { if (!is_battle_param_stream_file_for_brutal_peeps(sf_entry.filename)) {
continue; continue;
} }
if ((sf_entry.offset > scaled_data.size()) || if ((sf_entry.offset > scaled_data.size()) ||
(sf_entry.size > (scaled_data.size() - sf_entry.offset))) { (sf_entry.size > (scaled_data.size() - sf_entry.offset))) {
c->log.warning_f("Blueballz enemy HP scaling skipped for {}; invalid stream-file range", c->log.warning_f("Brutal Peeps enemy HP scaling skipped for {}; invalid stream-file range",
sf_entry.filename); sf_entry.filename);
continue; continue;
} }
if (sf_entry.size < sizeof(BattleParamsIndex::Table)) { if (sf_entry.size < sizeof(BattleParamsIndex::Table)) {
c->log.warning_f("Blueballz enemy HP scaling skipped for {}; file is too small", c->log.warning_f("Brutal Peeps enemy HP scaling skipped for {}; file is too small",
sf_entry.filename); sf_entry.filename);
continue; continue;
} }
@@ -767,8 +767,8 @@ static std::string bb_stream_file_data_for_client(std::shared_ptr<Client> c) {
stats.char_stats.hp = scale_u16(stats.char_stats.hp); stats.char_stats.hp = scale_u16(stats.char_stats.hp);
} }
c->log.info_f("Blueballz enemy HP scaling: serving {} with tier {} ({:g}x Ultimate HP)", c->log.info_f("Brutal Peeps enemy HP scaling: serving {} with tier {} ({:g}x Ultimate HP)",
sf_entry.filename, effective_blueballz_hp_scale_tier, mult); sf_entry.filename, effective_brutal_peeps_hp_scale_tier, mult);
} }
return scaled_data; return scaled_data;
+14 -14
View File
@@ -955,22 +955,22 @@ void ServerState::load_config_early() {
this->default_switch_assist_enabled = this->config_json->get_bool("EnableSwitchAssistByDefault", false); this->default_switch_assist_enabled = this->config_json->get_bool("EnableSwitchAssistByDefault", false);
this->use_game_creator_section_id = this->config_json->get_bool("UseGameCreatorSectionID", false); this->use_game_creator_section_id = this->config_json->get_bool("UseGameCreatorSectionID", false);
this->enable_bb_ship_selection_menu = this->config_json->get_bool("EnableBBShipSelectionMenu", false); this->enable_bb_ship_selection_menu = this->config_json->get_bool("EnableBBShipSelectionMenu", false);
this->enable_blueballz = this->config_json->get_bool("EnableBlueballz", false); this->enable_brutal_peeps_mode = this->config_json->get_bool("EnableBrutalPeepsMode", false);
this->enable_hardcore_mode = this->config_json->get_bool("EnableHardcoreMode", false); this->enable_hardcore_mode = this->config_json->get_bool("EnableHardcoreMode", false);
this->enable_test_mode = this->config_json->get_bool("EnableTestMode", false); this->enable_test_mode = this->config_json->get_bool("EnableTestMode", false);
this->blueballz_max_tier = std::min<int64_t>(10, std::max<int64_t>(0, this->config_json->get_int("BlueballzMaxTier", 10))); this->brutal_peeps_max_tier = std::min<int64_t>(10, std::max<int64_t>(0, this->config_json->get_int("BrutalPeepsMaxTier", 10)));
this->blueballz_unlocked_tier_v2 = std::min<int64_t>( this->brutal_peeps_unlocked_tier_v2 = std::min<int64_t>(
this->blueballz_max_tier, this->brutal_peeps_max_tier,
std::max<int64_t>(-1, this->config_json->get_int("BlueballzUnlockedTierV2", -1))); std::max<int64_t>(-1, this->config_json->get_int("BrutalPeepsUnlockedTierV2", -1)));
this->blueballz_unlocked_tier_v3 = std::min<int64_t>( this->brutal_peeps_unlocked_tier_v3 = std::min<int64_t>(
this->blueballz_max_tier, this->brutal_peeps_max_tier,
std::max<int64_t>(-1, this->config_json->get_int("BlueballzUnlockedTierV3", -1))); std::max<int64_t>(-1, this->config_json->get_int("BrutalPeepsUnlockedTierV3", -1)));
this->blueballz_unlocked_tier_v4 = std::min<int64_t>( this->brutal_peeps_unlocked_tier_v4 = std::min<int64_t>(
this->blueballz_max_tier, this->brutal_peeps_max_tier,
std::max<int64_t>(-1, this->config_json->get_int("BlueballzUnlockedTierV4", -1))); std::max<int64_t>(-1, this->config_json->get_int("BrutalPeepsUnlockedTierV4", -1)));
this->blueballz_enemy_hp_scale_tier = std::min<int64_t>( this->brutal_peeps_enemy_hp_scale_tier = std::min<int64_t>(
this->blueballz_max_tier, this->brutal_peeps_max_tier,
std::max<int64_t>(-1, this->config_json->get_int("BlueballzEnemyHPScaleTier", -1))); std::max<int64_t>(-1, this->config_json->get_int("BrutalPeepsEnemyHPScaleTier", -1)));
this->rare_notifs_enabled_for_client_drops = this->config_json->get_bool("RareNotificationsEnabledForClientDrops", false); this->rare_notifs_enabled_for_client_drops = this->config_json->get_bool("RareNotificationsEnabledForClientDrops", false);
this->default_rare_notifs_enabled_v1_v2 = this->config_json->get_bool("RareNotificationsEnabledByDefault", false); this->default_rare_notifs_enabled_v1_v2 = this->config_json->get_bool("RareNotificationsEnabledByDefault", false);
this->default_rare_notifs_enabled_v3_v4 = this->default_rare_notifs_enabled_v1_v2; this->default_rare_notifs_enabled_v3_v4 = this->default_rare_notifs_enabled_v1_v2;
+6 -6
View File
@@ -175,14 +175,14 @@ struct ServerState : public std::enable_shared_from_this<ServerState> {
bool use_game_creator_section_id = false; bool use_game_creator_section_id = false;
bool enable_bb_ship_selection_menu = false; bool enable_bb_ship_selection_menu = false;
bool use_psov2_rand_crypt = false; // Used in some tests bool use_psov2_rand_crypt = false; // Used in some tests
bool enable_blueballz = false; bool enable_brutal_peeps_mode = false;
int64_t blueballz_enemy_hp_scale_tier = -1; // -1 = disabled; 0..10 = scale BB enemy HP in stream files int64_t brutal_peeps_enemy_hp_scale_tier = -1; // -1 = disabled; 0..10 = scale BB enemy HP in stream files
bool enable_hardcore_mode = false; bool enable_hardcore_mode = false;
bool enable_test_mode = false; bool enable_test_mode = false;
int8_t blueballz_max_tier = 10; int8_t brutal_peeps_max_tier = 10;
int8_t blueballz_unlocked_tier_v2 = 0; int8_t brutal_peeps_unlocked_tier_v2 = 0;
int8_t blueballz_unlocked_tier_v3 = 0; int8_t brutal_peeps_unlocked_tier_v3 = 0;
int8_t blueballz_unlocked_tier_v4 = 0; int8_t brutal_peeps_unlocked_tier_v4 = 0;
bool use_legacy_item_random_behavior = false; // Used in some tests bool use_legacy_item_random_behavior = false; // Used in some tests
bool rare_notifs_enabled_for_client_drops = false; bool rare_notifs_enabled_for_client_drops = false;
bool default_rare_notifs_enabled_v1_v2 = false; bool default_rare_notifs_enabled_v1_v2 = false;