feat(Features): Added disable phone feature

This commit is contained in:
Yimura 2021-01-01 15:25:44 +01:00
parent dd4fdcd427
commit 9be7d36ce3
No known key found for this signature in database
GPG Key ID: 3D8FF4397E768682
3 changed files with 13 additions and 0 deletions

View File

@ -29,6 +29,7 @@ namespace big
void run_tick();
void script_func();
void disable_phone();
void god_mode();
void join_message(Player player);
void never_wanted();

View File

@ -0,0 +1,11 @@
#include "features.hpp"
#include "script_global.hpp"
namespace big
{
void features::disable_phone()
{
if (g_settings.options["disable_phone"].get<bool>())
*script_global(19664).as<int*>() = 1;
}
}

View File

@ -13,6 +13,7 @@ namespace big
nlohmann::json options;
nlohmann::json default_options =
R"({
"disable_phone": false,
"disable_chat_censoring": false,
"god_mode": false,
"join_message": false,