Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Binary files Cataclysm-DDA/.git/index and nonvan/.git/index differ
- diff -bur Cataclysm-DDA/.git/logs/HEAD nonvan/.git/logs/HEAD
- --- Cataclysm-DDA/.git/logs/HEAD 2019-05-06 20:22:44.296067800 -0400
- +++ nonvan/.git/logs/HEAD 2019-05-06 18:38:23.009690700 -0400
- @@ -1 +1 @@
- -0000000000000000000000000000000000000000 545f6a3925ea508a0e2575be58867579f71cf34d U-MUTIE\Hazzle <thearcy@gmail.com> 1557188564 -0400 clone: from https://github.com/CleverRaven/Cataclysm-DDA
- +0000000000000000000000000000000000000000 545f6a3925ea508a0e2575be58867579f71cf34d U-MUTIE\Hazzle <thearcy@gmail.com> 1557182303 -0400 clone: from https://github.com/CleverRaven/Cataclysm-DDA
- diff -bur Cataclysm-DDA/.git/logs/refs/heads/master nonvan/.git/logs/refs/heads/master
- --- Cataclysm-DDA/.git/logs/refs/heads/master 2019-05-06 20:22:44.296067800 -0400
- +++ nonvan/.git/logs/refs/heads/master 2019-05-06 18:38:23.010708400 -0400
- @@ -1 +1 @@
- -0000000000000000000000000000000000000000 545f6a3925ea508a0e2575be58867579f71cf34d U-MUTIE\Hazzle <thearcy@gmail.com> 1557188564 -0400 clone: from https://github.com/CleverRaven/Cataclysm-DDA
- +0000000000000000000000000000000000000000 545f6a3925ea508a0e2575be58867579f71cf34d U-MUTIE\Hazzle <thearcy@gmail.com> 1557182303 -0400 clone: from https://github.com/CleverRaven/Cataclysm-DDA
- diff -bur Cataclysm-DDA/.git/logs/refs/remotes/origin/HEAD nonvan/.git/logs/refs/remotes/origin/HEAD
- --- Cataclysm-DDA/.git/logs/refs/remotes/origin/HEAD 2019-05-06 20:22:44.292067400 -0400
- +++ nonvan/.git/logs/refs/remotes/origin/HEAD 2019-05-06 18:38:23.006712300 -0400
- @@ -1 +1 @@
- -0000000000000000000000000000000000000000 545f6a3925ea508a0e2575be58867579f71cf34d U-MUTIE\Hazzle <thearcy@gmail.com> 1557188564 -0400 clone: from https://github.com/CleverRaven/Cataclysm-DDA
- +0000000000000000000000000000000000000000 545f6a3925ea508a0e2575be58867579f71cf34d U-MUTIE\Hazzle <thearcy@gmail.com> 1557182303 -0400 clone: from https://github.com/CleverRaven/Cataclysm-DDA
- Only in nonvan: Cataclysm.exe
- Only in nonvan: Cataclysm.pdb
- Only in nonvan: config
- Only in nonvan/data/mods: Arcana
- Only in nonvan/data/mods: M_Nechronica-master
- Only in nonvan/data/mods: PK, No Zombie Rads
- Only in nonvan/data/mods: PK, No_Fungi
- Only in nonvan/data/mods: PKs_Rebalancing-master
- Only in nonvan/data/mods: nocts_cata_mod-master
- Only in nonvan/data/mods: secronom
- Only in nonvan/msvc-full-features: .vs
- diff -bur Cataclysm-DDA/msvc-full-features/Cataclysm-vcpkg-static.vcxproj nonvan/msvc-full-features/Cataclysm-vcpkg-static.vcxproj
- --- Cataclysm-DDA/msvc-full-features/Cataclysm-vcpkg-static.vcxproj 2019-05-06 20:22:46.703072500 -0400
- +++ nonvan/msvc-full-features/Cataclysm-vcpkg-static.vcxproj 2019-05-06 18:51:42.810374400 -0400
- @@ -23,7 +23,7 @@
- <ProjectGuid>{19F0BE17-3DAF-40E8-A9D2-904A56382E54}</ProjectGuid>
- <Keyword>Win32Proj</Keyword>
- <RootNamespace>Cataclysm</RootNamespace>
- - <WindowsTargetPlatformVersion>10.0.17134.0</WindowsTargetPlatformVersion>
- + <WindowsTargetPlatformVersion>10.0.17763.0</WindowsTargetPlatformVersion>
- <VcpkgTriplet Condition="'$(Platform)'=='Win32'">x86-windows-static</VcpkgTriplet>
- <VcpkgTriplet Condition="'$(Platform)'=='x64'">x64-windows-static</VcpkgTriplet>
- </PropertyGroup>
- Only in nonvan/msvc-full-features: Cataclysm-vcpkg-static.vcxproj.user
- Only in nonvan/msvc-full-features: distribution
- Only in nonvan/msvc-full-features: vcpkg-static
- Only in nonvan: save
- Only in nonvan: sound
- diff -bur Cataclysm-DDA/src/action.cpp nonvan/src/action.cpp
- --- Cataclysm-DDA/src/action.cpp 2019-05-06 20:22:46.712079300 -0400
- +++ nonvan/src/action.cpp 2019-05-06 19:57:42.004619600 -0400
- @@ -277,6 +277,8 @@
- return "quicksave";
- case ACTION_QUICKLOAD:
- return "quickload";
- + case ACTION_CHECKSTATS:
- + return "checkstats";
- case ACTION_QUIT:
- return "quit";
- case ACTION_PL_INFO:
- @@ -929,6 +931,8 @@
- REGISTER_ACTION( ACTION_WORLD_MODS );
- REGISTER_ACTION( ACTION_ACTIONMENU );
- REGISTER_ACTION( ACTION_QUICKSAVE );
- + REGISTER_ACTION( ACTION_QUICKLOAD );
- + REGISTER_ACTION( ACTION_CHECKSTATS );
- REGISTER_ACTION( ACTION_SAVE );
- int width = 0;
- diff -bur Cataclysm-DDA/src/action.h nonvan/src/action.h
- --- Cataclysm-DDA/src/action.h 2019-05-06 20:22:46.712079300 -0400
- +++ nonvan/src/action.h 2019-05-06 18:42:25.581558400 -0400
- @@ -218,7 +218,8 @@
- /** Quit the game */
- ACTION_QUIT,
- /**@}*/
- -
- + /*Check to see if the player can increase their stats from kills.*/
- + ACTION_CHECKSTATS,
- // Info Screens
- /**@{*/
- /** Display player status screen */
- diff -bur Cataclysm-DDA/src/consumption.cpp nonvan/src/consumption.cpp
- --- Cataclysm-DDA/src/consumption.cpp 2019-05-06 20:22:46.753071900 -0400
- +++ nonvan/src/consumption.cpp 2019-05-06 20:16:37.047237700 -0400
- @@ -1202,7 +1202,7 @@
- bool player::can_feed_furnace_with( const item &it ) const
- {
- - if( !it.flammable() || it.has_flag( "RADIOACTIVE" ) || can_eat( it ).success() ) {
- + if( it.has_flag( "RADIOACTIVE" ) || can_eat( it ).success() ) {
- return false;
- }
- @@ -1322,10 +1322,10 @@
- // TODO: JSONize.
- if( it.made_of( material_id( "leather" ) ) ) {
- - amount /= 4;
- + amount = 4;
- }
- if( it.made_of( material_id( "wood" ) ) ) {
- - amount /= 2;
- + amount = 2;
- }
- return amount;
- diff -bur Cataclysm-DDA/src/crafting.cpp nonvan/src/crafting.cpp
- --- Cataclysm-DDA/src/crafting.cpp 2019-05-06 20:22:46.758069000 -0400
- +++ nonvan/src/crafting.cpp 2019-05-06 19:13:51.470824600 -0400
- @@ -340,14 +340,14 @@
- int player::base_time_to_craft( const recipe &rec, int batch_size ) const
- {
- const size_t assistants = available_assistant_count( rec );
- - return rec.batch_time( batch_size, 1.0f, assistants );
- + return (rec.batch_time( batch_size, 1.0f, assistants ) * (get_option<int>("COOL_SCALING") / 100));
- }
- int player::expected_time_to_craft( const recipe &rec, int batch_size, bool in_progress ) const
- {
- const size_t assistants = available_assistant_count( rec );
- float modifier = crafting_speed_multiplier( rec, in_progress );
- - return rec.batch_time( batch_size, modifier, assistants );
- + return (rec.batch_time( batch_size, modifier, assistants ) * (get_option<int>("COOL_SCALING") / 100));
- }
- bool player::check_eligible_containers_for_crafting( const recipe &rec, int batch_size ) const
- diff -bur Cataclysm-DDA/src/game.cpp nonvan/src/game.cpp
- --- Cataclysm-DDA/src/game.cpp 2019-05-06 20:22:46.796068300 -0400
- +++ nonvan/src/game.cpp 2019-05-06 19:57:54.130581000 -0400
- @@ -2303,9 +2303,8 @@
- ctxt.register_action( "whitelist_enemy" );
- ctxt.register_action( "save" );
- ctxt.register_action( "quicksave" );
- -#if !defined(RELEASE)
- ctxt.register_action( "quickload" );
- -#endif
- + ctxt.register_action( "checkstats" );
- ctxt.register_action( "quit" );
- ctxt.register_action( "player_data" );
- ctxt.register_action( "map" );
- @@ -12091,6 +12090,72 @@
- last_save_timestamp = time( nullptr );
- }
- +void game::checkstats()
- +{
- + int totalkills = 0;
- + for (const auto &type : MonsterGenerator::generator().get_all_mtypes()) {
- + if (kill_count(type.id) > 0) {
- + totalkills += kill_count(type.id);
- + }
- + }
- + if (totalkills >= (get_option<int>("STATS_PER_KILLS_BASE") * (u.current_stat_bonus + 1)) + (get_option<int>("STATS_PER_KILLS_ADDL") * (u.current_stat_bonus + 1)))
- + {
- + u.current_stat_bonus++;
- + if (get_option<std::string>("STATS_PER_KILLS_METHOD") == "random")
- + {
- + int whichStat = dice(1, 4);
- + switch (whichStat) {
- + case 1: u.dex_max++;
- + break;
- + case 2: u.str_max++;
- + break;
- + case 3: u.per_max++;
- + break;
- + case 4: u.int_max++;
- + break;
- + }
- + }
- + else if (get_option<std::string>("STATS_PER_KILLS_METHOD") == "chosen")
- + {
- + uilist statMenu;
- + statMenu.text = "Choose your stat!";
- + statMenu.addentry("Strength");
- + statMenu.addentry("Perception");
- + statMenu.addentry("Intelligence");
- + statMenu.addentry("Dexterity");
- + statMenu.query();
- + std::string message = "";
- + game_message_type gmtSCTcolor = m_neutral;
- +
- + if (statMenu.ret == 0)
- + {
- + u.mod_str_bonus(1);
- + message = "Strength increased! Rip and tear!";
- + }
- + else if (statMenu.ret == 1)
- + {
- + u.mod_per_bonus(1);
- + message = "Perception increased! See.. things.";
- + }
- + else if (statMenu.ret == 2)
- + {
- + u.mod_int_bonus(1);
- + message = "You only lack the ability to describe how smart you're getting.";
- + }
- + else if (statMenu.ret == 3)
- + {
- + u.mod_dex_bonus(1);
- + message = "You suddenly feel a lowered fear of the knife game.";
- + }
- + u.add_msg_if_player(message);
- + }
- + }
- + u.add_msg_if_player("Current kill count: " + std::to_string(totalkills));
- + u.add_msg_if_player("Amount required for next stat: " + std::to_string((get_option<int>("STATS_PER_KILLS_BASE") * u.current_stat_bonus) + (get_option<int>("STATS_PER_KILLS_ADDL"))));
- + u.add_msg_if_player("Current number of bonus stats: " + std::to_string(u.current_stat_bonus));
- +}
- +
- +
- void game::quicksave()
- {
- //Don't autosave if the player hasn't done anything since the last autosave/quicksave,
- diff -bur Cataclysm-DDA/src/game.h nonvan/src/game.h
- --- Cataclysm-DDA/src/game.h 2019-05-06 20:22:46.797070500 -0400
- +++ nonvan/src/game.h 2019-05-06 18:47:04.235735100 -0400
- @@ -1029,6 +1029,7 @@
- void autosave(); // automatic quicksaves - Performs some checks before calling quicksave()
- public:
- void quicksave(); // Saves the game without quitting
- + void checkstats();
- void disp_NPCs(); // Currently for debug use. Lists global NPCs.
- private:
- void quickload(); // Loads the previously saved game if it exists
- diff -bur Cataclysm-DDA/src/handle_action.cpp nonvan/src/handle_action.cpp
- --- Cataclysm-DDA/src/handle_action.cpp 2019-05-06 20:22:46.805072700 -0400
- +++ nonvan/src/handle_action.cpp 2019-05-06 18:45:08.878347100 -0400
- @@ -1888,6 +1888,9 @@
- case ACTION_QUICKLOAD:
- quickload();
- return false;
- + case ACTION_CHECKSTATS:
- + checkstats();
- + break;
- case ACTION_PL_INFO:
- u.disp_info();
- diff -bur Cataclysm-DDA/src/options.cpp nonvan/src/options.cpp
- --- Cataclysm-DDA/src/options.cpp 2019-05-06 20:22:46.915074900 -0400
- +++ nonvan/src/options.cpp 2019-05-06 19:00:33.009998400 -0400
- @@ -1726,6 +1726,31 @@
- 3, 20, 15
- );
- + add("COOL_SCALING", "world_default", translate_marker("Make Things Less Boring scaling"),
- + translate_marker("Sets the time of reading, construction, vehicle repair, etc in percents. '50' is two times faster than default, '200' is two times longer. '0' probably breaks. I'm leaving it in and you can't stop me.."),
- + 0, 10000, 100
- + );
- + mOptionsSort["debug"]++;
- + add("SPEEDYDEX_SPEED_PER_DEX", "debug", translate_marker("Speedydex speed per dex"), translate_marker("Speedydex speed per excess dex"), 1, 999, 1);
- + add("SPEEDYDEX_BASE_DEX", "debug", translate_marker("Speedydex base dex"), translate_marker("Speedydex dexterity needed to begin getting speed increases."), 1, 999, 1);
- +
- + mOptionsSort["debug"]++;
- +
- + add("STATS_PER_KILLS_BASE", "debug", translate_marker("Stats per Kills Base Number"),
- + translate_marker("Your first stat point will come at this number."), 1, 999, 1);
- +
- + add( "STATS_PER_KILLS_ADDL", "debug", translate_marker("Stats per Kills Added Number" ),
- + translate_marker("Your next stat points are (base + additional) * kills. Probably."), 1, 999, 1);
- +
- + add( "STATS_PER_KILLS_BASE", "debug", translate_marker("Stats per Kills Base Number" ),
- + translate_marker("Your first stat point will come at this number."), 1, 999, 1);
- +
- + add("STATS_PER_KILLS_METHOD", "debug", translate_marker("Stats per Kills Assignment Method"),
- + translate_marker("Assignment method for stats through kills."),
- + { { "random", translate_marker("Random") },
- + { "chosen", translate_marker("Chosen") } },
- + "chosen" );
- +
- mOptionsSort["debug"]++;
- add( "INITIAL_STAT_POINTS", "debug", translate_marker( "Initial stat points" ),
- diff -bur Cataclysm-DDA/src/player.cpp nonvan/src/player.cpp
- --- Cataclysm-DDA/src/player.cpp 2019-05-06 20:22:46.935072700 -0400
- +++ nonvan/src/player.cpp 2019-05-06 19:37:48.878764700 -0400
- @@ -1829,6 +1829,12 @@
- if( has_bionic( bio_speed ) ) { // multiply by 1.1
- set_speed_bonus( static_cast<int>( get_speed() * 1.1 ) - get_speed_base() );
- }
- + int isBonusDex = dex_cur - get_option<int>("SPEEDYDEX_BASE_DEX");
- +
- + if (isBonusDex > 0)
- + {
- + mod_speed_bonus(dex_cur * get_option<int>("SPEEDYDEX_SPEED_PER_DEX"));
- + }
- // Speed cannot be less than 25% of base speed, so minimal speed bonus is -75% base speed.
- const int min_speed_bonus = static_cast<int>( -0.75 * get_speed_base() );
- @@ -3238,8 +3244,10 @@
- ret *= 1.3;
- }
- - if( ret < 100 ) {
- - ret = 100;
- + ret *= get_option<int>("COOL_SCALING") / 100;
- +
- + if( ret < 10 ) {
- + ret = 10;
- }
- // return_stat_effect actually matters here
- return ( return_stat_effect ? ret : ret / 10 );
- diff -bur Cataclysm-DDA/src/player.h nonvan/src/player.h
- --- Cataclysm-DDA/src/player.h 2019-05-06 20:22:46.936073100 -0400
- +++ nonvan/src/player.h 2019-05-06 18:49:12.795869600 -0400
- @@ -223,6 +223,7 @@
- void hardcoded_effects( effect &it );
- /** Returns the modifier value used for vomiting effects. */
- double vomit_mod();
- + int current_stat_bonus;
- bool in_sleep_state() const override {
- return Creature::in_sleep_state() || activity.id() == "ACT_TRY_SLEEP";
- diff -bur Cataclysm-DDA/src/savegame.cpp nonvan/src/savegame.cpp
- --- Cataclysm-DDA/src/savegame.cpp 2019-05-06 20:22:46.956068400 -0400
- +++ nonvan/src/savegame.cpp 2019-05-06 18:50:42.344410800 -0400
- @@ -108,6 +108,7 @@
- json.end_array();
- json.member( "player", u );
- + json.member("stats", g->u.current_stat_bonus);
- Messages::serialize( json );
- json.end_object();
- @@ -237,6 +238,7 @@
- }
- data.read( "player", u );
- + data.read("stats", u.current_stat_bonus);
- Messages::deserialize( data );
- } catch( const JsonError &jsonerr ) {
- diff -bur Cataclysm-DDA/src/veh_interact.cpp nonvan/src/veh_interact.cpp
- --- Cataclysm-DDA/src/veh_interact.cpp 2019-05-06 20:22:46.992072900 -0400
- +++ nonvan/src/veh_interact.cpp 2019-05-06 19:57:58.214577800 -0400
- @@ -13,7 +13,7 @@
- #include <set>
- #include <type_traits>
- #include <utility>
- -
- +#include "options.h"
- #include "activity_handlers.h"
- #include "cata_utility.h"
- #include "catacharset.h"
- @@ -114,6 +114,8 @@
- time = vp->removal_time( g->u ) + vp->install_time( g->u );
- break;
- }
- + //i have taken klonopin so good luck I hope I didn't do this exactly backwards
- + time *= (get_option<int>("COOL_SCALING") / 100);
- if( g->u.has_trait( trait_id( "DEBUG_HS" ) ) ) {
- time = 1;
- }
- Only in nonvan/src: version.h
- Only in nonvan: templates
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement