Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove bionic mana penalty #2404

Merged
merged 2 commits into from
Mar 11, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Update enchantment_test.cpp
  • Loading branch information
chaosvolt committed Mar 11, 2023
commit 8461d5524d21ec88d19e106380c5ae6a26ee5221
17 changes: 3 additions & 14 deletions tests/enchantment_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -474,20 +474,15 @@ TEST_CASE( "Enchantments modify metabolic rate", "[magic][enchantment][metabolis
struct mana_test_case {
int idx;
int intellect;
units::energy power_level;
int norm_cap;
int exp_cap;
double norm_regen_amt_8h;
double exp_regen_amt_8h;
};

static const std::vector<mana_test_case> mana_test_data = {{
{0, 8, 0_kJ, 1000, 800, 1000.0, 560.0},
{1, 12, 0_kJ, 1400, 1080, 1400.0, 686.0},
{2, 8, 250_kJ, 750, 450, 750.0, 385.0},
{3, 12, 250_kJ, 1150, 830, 1150.0, 581.0},
{4, 8, 1250_kJ, 0, 0, 0.0, 0.0},
{5, 16, 1250_kJ, 550, 110, 550.0, 77.0},
{0, 8, 1000, 800, 1000.0, 560.0},
{1, 12, 1400, 1080, 1400.0, 686.0},
}
};

Expand All @@ -498,12 +493,6 @@ static void tests_mana_pool( Character &guy, const mana_test_case &t )

advance_turn( guy );

guy.set_max_power_level( 2000_kJ );
REQUIRE( guy.get_max_power_level() == 2000_kJ );

guy.set_power_level( t.power_level );
REQUIRE( guy.get_power_level() == t.power_level );

guy.int_max = t.intellect;
guy.int_cur = guy.int_max;
REQUIRE( guy.get_int() == t.intellect );
Expand Down Expand Up @@ -548,7 +537,7 @@ static void tests_mana_pool_section( const mana_test_case &t )
tests_mana_pool( guy, t );
}

TEST_CASE( "Mana pool", "[magic][enchantment][mana][bionic]" )
TEST_CASE( "Mana pool", "[magic][enchantment][mana]" )
{
clear_all_state();
for( const mana_test_case &it : mana_test_data ) {
Expand Down