Tests
Removed x_max x_cur x_bonus accesses outside of setters and getters in the character namespace
This commit is contained in:
+1
-1
@@ -2019,7 +2019,7 @@ int Character::bionics_pl_skill( bool autodoc, int skill_level ) const
|
||||
|
||||
float pl_skill;
|
||||
if( skill_level == -1 ) {
|
||||
pl_skill = int_cur * 4 +
|
||||
pl_skill = get_int() * 4 +
|
||||
get_greater_skill_or_knowledge_level( most_important_skill ) * 4 +
|
||||
get_greater_skill_or_knowledge_level( important_skill ) * 3 +
|
||||
get_greater_skill_or_knowledge_level( least_important_skill ) * 1;
|
||||
|
||||
+23
-21
@@ -640,7 +640,7 @@ int Character::count_threshold_substitute_traits() const
|
||||
|
||||
int Character::get_oxygen_max() const
|
||||
{
|
||||
return 30 + ( has_bionic( bio_synlungs ) ? 30 : 2 * str_cur );
|
||||
return 30 + ( has_bionic( bio_synlungs ) ? 30 : 2 * get_str() );
|
||||
}
|
||||
|
||||
void Character::randomize_heartrate()
|
||||
@@ -935,7 +935,7 @@ double Character::fastest_aiming_method_speed( const item &gun, double recoil,
|
||||
// to check whether laser sights are available
|
||||
const int base_distance = 10;
|
||||
const float light_limit = 120.0f;
|
||||
bool laser_light_available = target_attributes.range <= ( base_distance + per_cur ) * std::max(
|
||||
bool laser_light_available = target_attributes.range <= ( base_distance + get_per() ) * std::max(
|
||||
1.0f - target_attributes.light / light_limit, 0.0f ) && target_attributes.visible;
|
||||
// There are only two kinds of parallaxes, one with zoom and one without. So cache them.
|
||||
std::vector<std::optional<int>> parallaxes;
|
||||
@@ -1394,29 +1394,30 @@ int Character::swim_speed() const
|
||||
( usable.test( body_part_hand_r ) ? 0.5f : 0.0f );
|
||||
|
||||
// base swim speed.
|
||||
int current_str = get_str();
|
||||
float swim_speed_mult = enchantment_cache->modify_value( enchant_vals::mod::MOVECOST_SWIM_MOD, 1 );
|
||||
ret = ( 440 * swim_speed_mult ) + weight_carried() /
|
||||
( 60_gram / swim_speed_mult ) - 50 * get_skill_level( skill_swimming );
|
||||
/** @EFFECT_STR increases swim speed bonus from PAWS */
|
||||
if( has_trait( trait_PAWS ) ) {
|
||||
ret -= hand_bonus_mult * ( 20 + str_cur * 3 );
|
||||
ret -= hand_bonus_mult * ( 20 + current_str * 3 );
|
||||
}
|
||||
/** @EFFECT_STR increases swim speed bonus from PAWS_LARGE */
|
||||
if( has_trait( trait_PAWS_LARGE ) ) {
|
||||
ret -= hand_bonus_mult * ( 20 + str_cur * 4 );
|
||||
ret -= hand_bonus_mult * ( 20 + current_str * 4 );
|
||||
}
|
||||
/** @EFFECT_STR increases swim speed bonus from swim_fins */
|
||||
if( worn_with_flag( flag_FIN, body_part_foot_l ) ||
|
||||
worn_with_flag( flag_FIN, body_part_foot_r ) ) {
|
||||
if( worn_with_flag( flag_FIN, body_part_foot_l ) &&
|
||||
worn_with_flag( flag_FIN, body_part_foot_r ) ) {
|
||||
ret -= ( 15 * str_cur );
|
||||
ret -= ( 15 * current_str );
|
||||
} else {
|
||||
ret -= ( 15 * str_cur ) / 2;
|
||||
ret -= ( 15 * current_str ) / 2;
|
||||
}
|
||||
}
|
||||
/** @EFFECT_STR increases swim speed bonus from WEBBED and WEBBED_FEET */
|
||||
float webbing_factor = 60 + str_cur * 5;
|
||||
float webbing_factor = 60 + current_str * 5;
|
||||
if( has_flag( json_flag_WEBBED_HANDS ) ) {
|
||||
ret -= hand_bonus_mult * webbing_factor * 0.5f;
|
||||
}
|
||||
@@ -1429,7 +1430,7 @@ int Character::swim_speed() const
|
||||
/** @EFFECT_STR increases swim speed */
|
||||
|
||||
/** @EFFECT_DEX increases swim speed */
|
||||
ret -= str_cur * 6 + dex_cur * 4;
|
||||
ret -= current_str * 6 + get_dex() * 4;
|
||||
if( worn_with_flag( flag_FLOTATION ) ) {
|
||||
ret = std::min( ret, 400 );
|
||||
ret = std::max( ret, 200 );
|
||||
@@ -3066,11 +3067,11 @@ void Character::reset_stats()
|
||||
mod_dodge_bonus( enchantment_cache->modify_value( enchant_vals::mod::DODGE_CHANCE, 0 ) );
|
||||
|
||||
/** @EFFECT_STR_MAX above 15 decreases Dodge bonus by 1 (NEGATIVE) */
|
||||
if( str_max >= 16 ) {
|
||||
if( get_str_base() >= 16 ) {
|
||||
mod_dodge_bonus( -1 ); // Penalty if we're huge
|
||||
}
|
||||
/** @EFFECT_STR_MAX below 6 increases Dodge bonus by 1 */
|
||||
else if( str_max <= 5 ) {
|
||||
else if( get_str_base() <= 5 ) {
|
||||
mod_dodge_bonus( 1 ); // Bonus if we're small
|
||||
}
|
||||
|
||||
@@ -3299,7 +3300,7 @@ int Character::get_speed() const
|
||||
|
||||
int Character::get_arm_str() const
|
||||
{
|
||||
return str_cur * get_modifier( character_modifier_limb_str_mod );
|
||||
return get_str() * get_modifier( character_modifier_limb_str_mod );
|
||||
}
|
||||
|
||||
int Character::get_eff_per() const
|
||||
@@ -4545,7 +4546,7 @@ int Character::get_shout_volume() const
|
||||
// Balanced around whisper for wearing bondage mask
|
||||
// and noise ~= 10 (door smashing) for wearing dust mask for character with strength = 8
|
||||
/** @EFFECT_STR increases shouting volume */
|
||||
int noise = ( base + str_cur * shout_multiplier ) * get_limb_score( limb_score_breathing );
|
||||
int noise = ( base + get_str() * shout_multiplier ) * get_limb_score( limb_score_breathing );
|
||||
|
||||
// Minimum noise volume possible after all reductions.
|
||||
// Volume 1 can't be heard even by player
|
||||
@@ -5917,7 +5918,7 @@ bool Character::crush_frozen_liquid( item_location loc )
|
||||
loc.get_item()->display_name(), hammering_item.tname() ) ) {
|
||||
|
||||
//Risk smashing tile with hammering tool, risk is lower with higher dex, damage lower with lower strength
|
||||
if( one_in( 1 + dex_cur / 4 ) ) {
|
||||
if( one_in( 1 + get_dex() / 4 ) ) {
|
||||
add_msg_if_player( colorize( _( "You swing your %s wildly!" ), c_red ),
|
||||
hammering_item.tname() );
|
||||
// FIXME: Hardcoded damage type
|
||||
@@ -6316,10 +6317,10 @@ int Character::get_mutation_visibility_cap( const Character *observed ) const
|
||||
// 3 perception and 20 distance would be barely able to discern huge antlers on a person - cap 10
|
||||
const int dist = rl_dist( pos_bub(), observed->pos_bub() );
|
||||
int visibility_cap;
|
||||
if( per_cur <= 1 ) {
|
||||
if( get_per() <= 1 ) {
|
||||
visibility_cap = INT_MAX;
|
||||
} else {
|
||||
visibility_cap = std::round( dist * dist / 20.0 / ( per_cur - 1 ) );
|
||||
visibility_cap = std::round( dist * dist / 20.0 / ( get_per() - 1 ) );
|
||||
}
|
||||
return visibility_cap;
|
||||
}
|
||||
@@ -7446,7 +7447,7 @@ bool Character::avoid_trap( const tripoint_bub_ms &pos, const trap &tr ) const
|
||||
/** @EFFECT_DEX increases chance to avoid traps */
|
||||
|
||||
/** @EFFECT_DODGE increases chance to avoid traps */
|
||||
int myroll = dice( 3, round( dex_cur + get_skill_level( skill_dodge ) * 1.5 ) );
|
||||
int myroll = dice( 3, round( get_dex() + get_skill_level( skill_dodge ) * 1.5 ) );
|
||||
int traproll;
|
||||
if( tr.can_see( pos, *this ) ) {
|
||||
traproll = dice( 3, tr.get_avoidance() );
|
||||
@@ -7651,7 +7652,7 @@ float Character::fall_damage_mod() const
|
||||
/** @EFFECT_DEX decreases damage from falling */
|
||||
|
||||
/** @EFFECT_DODGE decreases damage from falling */
|
||||
float dex_dodge = dex_cur / 2.0 + get_skill_level( skill_dodge );
|
||||
float dex_dodge = get_dex() / 2.0 + get_skill_level( skill_dodge );
|
||||
// Reactions, legwork and footing determine your landing
|
||||
dex_dodge *= get_modifier( character_modifier_limb_fall_mod );
|
||||
// But prevent it from increasing damage
|
||||
@@ -7870,12 +7871,13 @@ void Character::knock_back_to( const tripoint_bub_ms &to )
|
||||
static_cast<float>( critter->type->size ) ) );
|
||||
add_effect( effect_stunned, 1_turns );
|
||||
/** @EFFECT_STR_MAX allows knocked back player to knock back, damage, stun some monsters */
|
||||
if( ( str_max - 6 ) / 4 > critter->type->size ) {
|
||||
int strength_base = get_str_base();
|
||||
if( ( strength_base - 6 ) / 4 > critter->type->size ) {
|
||||
critter->knock_back_from( pos_bub() ); // Chain reaction!
|
||||
critter->apply_damage( this, bodypart_id( "torso" ), ( str_max - 6 ) / 4 );
|
||||
critter->apply_damage( this, bodypart_id( "torso" ), ( strength_base - 6 ) / 4 );
|
||||
critter->add_effect( effect_stunned, 1_turns );
|
||||
} else if( ( str_max - 6 ) / 4 == critter->type->size ) {
|
||||
critter->apply_damage( this, bodypart_id( "torso" ), ( str_max - 6 ) / 4 );
|
||||
} else if( ( strength_base - 6 ) / 4 == critter->type->size ) {
|
||||
critter->apply_damage( this, bodypart_id( "torso" ), ( strength_base - 6 ) / 4 );
|
||||
critter->add_effect( effect_stunned, 1_turns );
|
||||
}
|
||||
critter->check_dead_state( &here );
|
||||
|
||||
@@ -163,7 +163,7 @@ void Character::try_remove_heavysnare()
|
||||
}
|
||||
}
|
||||
} else {
|
||||
if( can_escape_trap( 32 - dex_cur, true ) ) {
|
||||
if( can_escape_trap( 32 - get_dex(), true ) ) {
|
||||
remove_effect( effect_heavysnare );
|
||||
add_msg_player_or_npc( m_good, _( "You free yourself from the heavy snare!" ),
|
||||
_( "<npcname> frees themselves from the heavy snare!" ) );
|
||||
@@ -419,7 +419,7 @@ bool Character::move_effects( bool attacking )
|
||||
// than this will need to be reworked to only have success effects if /all/ checks succeed
|
||||
if( has_effect( effect_in_pit ) ) {
|
||||
/** @EFFECT_DEX increases chance to escape pit, slightly */
|
||||
if( !can_escape_trap( 40 - dex_cur / 2 ) ) {
|
||||
if( !can_escape_trap( 40 - get_dex() / 2 ) ) {
|
||||
add_msg_if_player( m_bad, _( "You try to escape the pit, but slip back in." ) );
|
||||
return false;
|
||||
} else {
|
||||
|
||||
@@ -455,7 +455,7 @@ void Character::conduct_blood_analysis()
|
||||
|
||||
int Character::get_standard_stamina_cost( const item *thrown_item ) const
|
||||
{
|
||||
// Previously calculated as 2_gram * std::max( 1, str_cur )
|
||||
// Previously calculated as 2_gram * std::max( 1, get_str() )
|
||||
// using 16_gram normalizes it to 8 str. Same effort expenditure
|
||||
// for each strike, regardless of weight. This is compensated
|
||||
// for by the additional move cost as weapon weight increases
|
||||
@@ -1746,7 +1746,7 @@ void Character::check_needs_extremes()
|
||||
add_effect( effect_lack_sleep, 30_minutes + 1_turns );
|
||||
}
|
||||
/** @EFFECT_INT slightly decreases occurrence of short naps when dead tired */
|
||||
if( one_in( 50 + int_cur ) ) {
|
||||
if( one_in( 50 + get_int() ) ) {
|
||||
// Rivet's idea: look out for microsleeps!
|
||||
fall_asleep( 30_seconds );
|
||||
}
|
||||
@@ -1756,7 +1756,7 @@ void Character::check_needs_extremes()
|
||||
add_effect( effect_lack_sleep, 30_minutes + 1_turns );
|
||||
}
|
||||
/** @EFFECT_INT slightly decreases occurrence of short naps when exhausted */
|
||||
if( one_in( 100 + int_cur ) ) {
|
||||
if( one_in( 100 + get_int() ) ) {
|
||||
fall_asleep( 30_seconds );
|
||||
}
|
||||
} else if( get_sleepiness() >= sleepiness_levels::DEAD_TIRED &&
|
||||
@@ -1801,10 +1801,10 @@ void Character::check_needs_extremes()
|
||||
}
|
||||
// else you pass out for 20 hours, guaranteed
|
||||
|
||||
// Microsleeps are slightly worse if you're sleep deprived, but not by much. (chance: 1 in (75 + int_cur) at lethal sleep deprivation)
|
||||
// Microsleeps are slightly worse if you're sleep deprived, but not by much. (chance: 1 in (75 + get_int()) at lethal sleep deprivation)
|
||||
// Note: these can coexist with sleepiness-related microsleeps
|
||||
/** @EFFECT_INT slightly decreases occurrence of short naps when sleep deprived */
|
||||
if( one_in( static_cast<int>( sleep_deprivation_pct * 75 ) + int_cur ) ) {
|
||||
if( one_in( static_cast<int>( sleep_deprivation_pct * 75 ) + get_int() ) ) {
|
||||
fall_asleep( 30_seconds );
|
||||
}
|
||||
|
||||
@@ -1814,7 +1814,7 @@ void Character::check_needs_extremes()
|
||||
|
||||
if( can_pass_out && calendar::once_every( 10_minutes ) ) {
|
||||
/** @EFFECT_PER slightly increases resilience against passing out from sleep deprivation */
|
||||
if( one_in( static_cast<int>( ( 1 - sleep_deprivation_pct ) * 100 ) + per_cur ) ||
|
||||
if( one_in( static_cast<int>( ( 1 - sleep_deprivation_pct ) * 100 ) + get_per() ) ||
|
||||
sleep_deprivation >= SLEEP_DEPRIVATION_MASSIVE ) {
|
||||
add_msg_player_or_npc( m_bad,
|
||||
_( "Your body collapses due to sleep deprivation, your neglected fatigue rushing back all at once, and you pass out on the spot." )
|
||||
@@ -3218,7 +3218,8 @@ stat_mod Character::get_weight_penalty() const
|
||||
{
|
||||
stat_mod ret;
|
||||
const float bmi = get_bmi_fat();
|
||||
ret.strength = std::floor( ( 1.0f - ( bmi / character_weight_category::normal ) ) * str_max );
|
||||
ret.strength = std::floor( ( 1.0f - ( bmi / character_weight_category::normal ) ) *
|
||||
get_str_base() );
|
||||
ret.dexterity = std::floor( ( character_weight_category::normal - bmi ) * 3.0f );
|
||||
ret.intelligence = ret.dexterity;
|
||||
return ret;
|
||||
|
||||
+3
-3
@@ -1161,9 +1161,9 @@ float Character::get_recipe_weighted_skill_average( const recipe &making ) const
|
||||
// TO DO: Attribute role should also be data-driven either in skills.json or in the recipe itself.
|
||||
// For now let's just use Intelligence. For the average intelligence of 8, give +2. Inc/dec by 0.25 per stat point.
|
||||
// This ensures that at parity, where skill = difficulty, you have a roughly 85% chance of success at average intelligence.
|
||||
total_skill_modifiers += int_cur / 4.0f;
|
||||
total_skill_modifiers += get_int() / 4.0f;
|
||||
add_msg_debug( debugmode::DF_CRAFTING, "Total skill modifiers: %g (+%g from int)",
|
||||
total_skill_modifiers, int_cur / 4.f );
|
||||
total_skill_modifiers, get_int() / 4.f );
|
||||
|
||||
// Missing proficiencies penalize skill level
|
||||
for( const recipe_proficiency &recip : making.proficiencies ) {
|
||||
@@ -2904,7 +2904,7 @@ void Character::complete_disassemble( item_location &target, const recipe &dis )
|
||||
|
||||
// Sides on dice is 16 plus your current intelligence
|
||||
///\EFFECT_INT increases success rate for disassembling items
|
||||
int skill_sides = 16 + int_cur;
|
||||
int skill_sides = 16 + get_int();
|
||||
|
||||
int diff_dice = dis.difficulty;
|
||||
int diff_sides = 24; // 16 + 8 (default intelligence)
|
||||
|
||||
+1
-1
@@ -7405,7 +7405,7 @@ std::vector<std::string> game::get_dangerous_tile( const tripoint_bub_ms &dest_l
|
||||
|
||||
// For future reference... It turns out that 78 is exactly the dex required to avoid all damage at the function call used elsewhere.
|
||||
// That function call is:
|
||||
// x_in_y(1+u.dex_cur/2, 40)
|
||||
// x_in_y(1+u.get_dex()/2, 40)
|
||||
const int magic_number_78 = 78;
|
||||
|
||||
if( here.has_flag( ter_furn_flag::TFLAG_ROUGH, dest_loc ) &&
|
||||
|
||||
+5
-5
@@ -245,7 +245,7 @@ bool Character::handle_melee_wear( item_location shield, float wear_multiplier )
|
||||
/** @ARM_STR increases chance of damaging your melee weapon (NEGATIVE) */
|
||||
|
||||
/** @EFFECT_MELEE reduces chance of damaging your melee weapon */
|
||||
const float stat_factor = dex_cur / 2.0f
|
||||
const float stat_factor = get_dex() / 2.0f
|
||||
+ get_skill_level( skill_melee )
|
||||
+ ( 64.0f / std::max( get_arm_str(), 4 ) );
|
||||
|
||||
@@ -1168,7 +1168,7 @@ double Character::crit_chance( float roll_hit, float target_dodge, const item &w
|
||||
/** @EFFECT_DEX increases chance for critical hits */
|
||||
|
||||
/** @EFFECT_PER increases chance for critical hits */
|
||||
const double stat_crit_chance = limit_probability( 0.25 + 0.01 * dex_cur + ( 0.02 * per_cur ) );
|
||||
const double stat_crit_chance = limit_probability( 0.25 + 0.01 * get_dex() + ( 0.02 * get_per() ) );
|
||||
|
||||
/** @EFFECT_BASHING increases critical chance with bashing weapons */
|
||||
/** @EFFECT_CUTTING increases critical chance with cutting weapons */
|
||||
@@ -1557,8 +1557,8 @@ std::optional<std::tuple<matec_id, attack_vector_id, sub_bodypart_str_id>>
|
||||
|
||||
// don't apply disarming techniques to someone without a weapon
|
||||
// TODO: these are the stat requirements for tec_disarm
|
||||
// dice( dex_cur + get_skill_level("unarmed"), 8) >
|
||||
// dice(p->dex_cur + p->get_skill_level("melee"), 10))
|
||||
// dice( get_dex() + get_skill_level("unarmed"), 8) >
|
||||
// dice(p->get_dex() + p->get_skill_level("melee"), 10))
|
||||
if( tec_id->disarms && !t.has_weapon() ) {
|
||||
add_msg_debug( debugmode::DF_MELEE,
|
||||
"Disarming technique against unarmed opponent, attack discarded" );
|
||||
@@ -2730,7 +2730,7 @@ int Character::attack_speed( const item &weap ) const
|
||||
/** @EFFECT_MELEE increases melee attack speed */
|
||||
const int skill_cost = static_cast<int>( ( base_move_cost * ( 15 - melee_skill ) / 15 ) );
|
||||
/** @EFFECT_DEX increases attack speed */
|
||||
const int dexbonus = dex_cur / 2;
|
||||
const int dexbonus = get_dex() / 2;
|
||||
const int ma_move_cost = mabuff_attack_cost_penalty();
|
||||
const float stamina_ratio = static_cast<float>( get_stamina() ) / static_cast<float>
|
||||
( get_stamina_max() );
|
||||
|
||||
+16
-16
@@ -448,10 +448,10 @@ void Character::randomize( const bool random_scenario, bool play_now )
|
||||
world_origin = std::nullopt;
|
||||
random_start_location = true;
|
||||
|
||||
str_max = rng( 6, HIGH_STAT - 2 );
|
||||
dex_max = rng( 6, HIGH_STAT - 2 );
|
||||
int_max = rng( 6, HIGH_STAT - 2 );
|
||||
per_max = rng( 6, HIGH_STAT - 2 );
|
||||
set_str_base( rng( 6, HIGH_STAT - 2 ) );
|
||||
set_dex_base( rng( 6, HIGH_STAT - 2 ) );
|
||||
set_int_base( rng( 6, HIGH_STAT - 2 ) );
|
||||
set_per_base( rng( 6, HIGH_STAT - 2 ) );
|
||||
|
||||
set_body();
|
||||
randomize_hobbies();
|
||||
@@ -503,23 +503,23 @@ void Character::randomize( const bool random_scenario, bool play_now )
|
||||
} else {
|
||||
switch( rng( 1, 4 ) ) {
|
||||
case 1:
|
||||
if( str_max > 5 ) {
|
||||
str_max--;
|
||||
if( get_str_base() > 5 ) {
|
||||
set_str_base( get_str_base() - 1 );
|
||||
}
|
||||
break;
|
||||
case 2:
|
||||
if( dex_max > 5 ) {
|
||||
dex_max--;
|
||||
if( get_dex_base() > 5 ) {
|
||||
set_dex_base( get_dex_base() - 1 );
|
||||
}
|
||||
break;
|
||||
case 3:
|
||||
if( int_max > 5 ) {
|
||||
int_max--;
|
||||
if( get_int_base() > 5 ) {
|
||||
set_int_base( get_int_base() - 1 );
|
||||
}
|
||||
break;
|
||||
case 4:
|
||||
if( per_max > 5 ) {
|
||||
per_max--;
|
||||
if( get_per_base() > 5 ) {
|
||||
set_per_base( get_per_base() - 1 );
|
||||
}
|
||||
break;
|
||||
}
|
||||
@@ -554,16 +554,16 @@ void Character::randomize( const bool random_scenario, bool play_now )
|
||||
if( allow_stats ) {
|
||||
switch( rng( 1, 4 ) ) {
|
||||
case 1:
|
||||
str_max++;
|
||||
set_str_base( get_str_base() + 1 );
|
||||
break;
|
||||
case 2:
|
||||
dex_max++;
|
||||
set_dex_base( get_dex_base() + 1 );
|
||||
break;
|
||||
case 3:
|
||||
int_max++;
|
||||
set_int_base( get_int_base() + 1 );
|
||||
break;
|
||||
case 4:
|
||||
per_max++;
|
||||
set_per_base( get_per_base() + 1 );
|
||||
break;
|
||||
}
|
||||
break;
|
||||
|
||||
@@ -55,10 +55,10 @@ struct addict_effect_totals {
|
||||
sleepiness += u.get_sleepiness();
|
||||
morale += u.get_morale_level();
|
||||
stim += u.get_stim();
|
||||
str_bonus += u.str_cur;
|
||||
dex_bonus += u.dex_cur;
|
||||
per_bonus += u.per_cur;
|
||||
int_bonus += u.int_cur;
|
||||
str_bonus += u.get_str();
|
||||
dex_bonus += u.get_dex();
|
||||
per_bonus += u.get_per();
|
||||
int_bonus += u.get_int();
|
||||
health_mod += u.get_daily_health();
|
||||
pkiller += u.get_painkiller();
|
||||
pain += u.get_pain();
|
||||
@@ -74,10 +74,10 @@ static void clear_addictions( Character &u )
|
||||
u.clear_effects();
|
||||
u.set_moves( u.get_speed() );
|
||||
u.set_daily_health( 0 );
|
||||
u.str_max = 8;
|
||||
u.dex_max = 8;
|
||||
u.int_max = 8;
|
||||
u.per_max = 8;
|
||||
u.set_str_base( 8 );
|
||||
u.set_dex_base( 8 );
|
||||
u.set_int_base( 8 );
|
||||
u.set_per_base( 8 );
|
||||
u.set_str_bonus( 0 );
|
||||
u.set_dex_bonus( 0 );
|
||||
u.set_int_bonus( 0 );
|
||||
|
||||
@@ -1883,8 +1883,7 @@ TEST_CASE( "zone_sorting_no_grab_weight_gate",
|
||||
// str 6: weight_capacity = 13 + 6*4 = 37 kg.
|
||||
// Each boulder is 10 kg. After picking up 3 (30 kg), the fourth would
|
||||
// push carried weight to 40 kg > 37 kg, so the weight gate should block it.
|
||||
dummy.str_max = 6;
|
||||
dummy.str_cur = 6;
|
||||
dummy.set_str_base( 6 );
|
||||
dummy.set_str_bonus( 0 );
|
||||
const int num_boulders = 5;
|
||||
|
||||
@@ -1949,8 +1948,7 @@ TEST_CASE( "zone_sorting_drag_weight_gate",
|
||||
|
||||
// Low strength so the drag gate triggers at reasonable weights.
|
||||
// str 4 -> arm_str ~4, weight_capacity = 13+16 = 29 kg
|
||||
dummy.str_max = 4;
|
||||
dummy.str_cur = 4;
|
||||
dummy.set_str_base( 4 );
|
||||
dummy.set_str_bonus( 0 );
|
||||
|
||||
const tripoint_bub_ms start_pos( 60, 60, 0 );
|
||||
|
||||
@@ -158,8 +158,8 @@ TEST_CASE( "effective_damage_per_second", "[effective][dps]" )
|
||||
monster mummy( pseudo_debug_mon );
|
||||
|
||||
SECTION( "STR 6, DEX 6" ) {
|
||||
dummy.str_max = 6;
|
||||
dummy.dex_max = 6;
|
||||
dummy.set_str_base( 6 );
|
||||
dummy.set_dex_base( 6 );
|
||||
|
||||
CHECK( clumsy_sword.effective_dps( dummy, mummy ) == Approx( 20.0f ).epsilon( 0.15f ) );
|
||||
CHECK( normal_sword.effective_dps( dummy, mummy ) == Approx( 26.0f ).epsilon( 0.15f ) );
|
||||
@@ -167,8 +167,8 @@ TEST_CASE( "effective_damage_per_second", "[effective][dps]" )
|
||||
}
|
||||
|
||||
SECTION( "STR 8, DEX 10" ) {
|
||||
dummy.str_max = 8;
|
||||
dummy.dex_max = 10;
|
||||
dummy.set_str_base( 8 );
|
||||
dummy.set_dex_base( 10 );
|
||||
|
||||
CHECK( clumsy_sword.effective_dps( dummy, mummy ) == Approx( 25.0f ).epsilon( 0.15f ) );
|
||||
CHECK( normal_sword.effective_dps( dummy, mummy ) == Approx( 32.0f ).epsilon( 0.15f ) );
|
||||
@@ -176,8 +176,8 @@ TEST_CASE( "effective_damage_per_second", "[effective][dps]" )
|
||||
}
|
||||
|
||||
SECTION( "STR 10, DEX 10" ) {
|
||||
dummy.str_max = 10;
|
||||
dummy.dex_max = 10;
|
||||
dummy.set_str_base( 10 );
|
||||
dummy.set_dex_base( 10 );
|
||||
|
||||
CHECK( clumsy_sword.effective_dps( dummy, mummy ) == Approx( 27.0f ).epsilon( 0.15f ) );
|
||||
CHECK( normal_sword.effective_dps( dummy, mummy ) == Approx( 34.0f ).epsilon( 0.15f ) );
|
||||
@@ -247,10 +247,10 @@ TEST_CASE( "accuracy_increases_success", "[accuracy][dps]" )
|
||||
static void make_experienced_tester( avatar &test_guy )
|
||||
{
|
||||
clear_character( test_guy );
|
||||
test_guy.str_max = 10;
|
||||
test_guy.dex_max = 10;
|
||||
test_guy.int_max = 10;
|
||||
test_guy.per_max = 10;
|
||||
test_guy.set_str_base( 10 );
|
||||
test_guy.set_dex_base( 10 );
|
||||
test_guy.set_int_base( 10 );
|
||||
test_guy.set_per_base( 10 );
|
||||
test_guy.set_str_bonus( 0 );
|
||||
test_guy.set_dex_bonus( 0 );
|
||||
test_guy.set_int_bonus( 0 );
|
||||
|
||||
@@ -103,7 +103,7 @@ TEST_CASE( "faction_price_rules", "[npc][factions][trade]" )
|
||||
}
|
||||
|
||||
WHEN( "item is main currency (implicit price rule)" ) {
|
||||
guy.int_max = 1000;
|
||||
guy.set_int_base( 1000 );
|
||||
guy.set_skill_level( skill_speech, 10 );
|
||||
item const fmcnote( itype_FMCNote );
|
||||
REQUIRE( npc_trading::adjusted_price( &fmcnote, 1, get_avatar(), guy ) ==
|
||||
@@ -114,7 +114,7 @@ TEST_CASE( "faction_price_rules", "[npc][factions][trade]" )
|
||||
|
||||
item const pants_fur( itype_test_pants_fur );
|
||||
WHEN( "item is secondary currency (fixed_adj=0)" ) {
|
||||
get_avatar().int_max = 1000;
|
||||
get_avatar().set_int_base( 1000 );
|
||||
get_avatar().set_skill_level( skill_speech, 10 );
|
||||
REQUIRE( npc_trading::adjusted_price( &pants_fur, 1, get_avatar(), guy ) ==
|
||||
units::to_cent( pants_fur.type->price_post ) );
|
||||
|
||||
@@ -165,7 +165,7 @@ static void cut_up_yields( const itype_id &target )
|
||||
Character &guy = get_avatar();
|
||||
clear_avatar();
|
||||
// Nominal dex to avoid yield penalty.
|
||||
guy.dex_cur = 12;
|
||||
guy.set_dex_base( 12 );
|
||||
//guy.set_skill_level( skill_id( "fabrication" ), 10 );
|
||||
here.i_at( guy.pos_bub() ).clear();
|
||||
|
||||
|
||||
@@ -57,9 +57,9 @@ void bash_test_loadout::apply( Character &guy ) const
|
||||
{
|
||||
clear_character( guy );
|
||||
|
||||
guy.str_max = strength;
|
||||
guy.set_str_base( strength );
|
||||
guy.reset_stats();
|
||||
REQUIRE( guy.str_cur == strength );
|
||||
REQUIRE( guy.get_str() == strength );
|
||||
|
||||
for( const itype_id &it : worn ) {
|
||||
REQUIRE( guy.wear_item( item( it ), false, false ).has_value() );
|
||||
|
||||
@@ -36,7 +36,7 @@ static const trait_id trait_PROF_SKATER( "PROF_SKATER" );
|
||||
static float hit_base_with_dex( avatar &dummy, int dexterity )
|
||||
{
|
||||
clear_character( dummy );
|
||||
dummy.dex_max = dexterity;
|
||||
dummy.set_dex_base( dexterity );
|
||||
|
||||
return dummy.get_hit_base();
|
||||
}
|
||||
@@ -45,7 +45,7 @@ static float hit_base_with_dex( avatar &dummy, int dexterity )
|
||||
static float dodge_base_with_dex_and_skill( avatar &dummy, int dexterity, int dodge_skill )
|
||||
{
|
||||
clear_character( dummy );
|
||||
dummy.dex_max = dexterity;
|
||||
dummy.set_dex_base( dexterity );
|
||||
dummy.set_skill_level( skill_dodge, dodge_skill );
|
||||
|
||||
return dummy.get_dodge_base();
|
||||
|
||||
+51
-34
@@ -213,10 +213,14 @@ TEST_CASE( "npc_talk_stats", "[npc_talk]" )
|
||||
prep_test( d );
|
||||
|
||||
Character &player_character = get_avatar();
|
||||
player_character.str_cur = 8;
|
||||
player_character.dex_cur = 8;
|
||||
player_character.int_cur = 8;
|
||||
player_character.per_cur = 8;
|
||||
player_character.set_str_bonus( 0 );
|
||||
player_character.set_dex_bonus( 0 );
|
||||
player_character.set_int_bonus( 0 );
|
||||
player_character.set_per_bonus( 0 );
|
||||
player_character.set_str_base( 8 );
|
||||
player_character.set_dex_base( 8 );
|
||||
player_character.set_int_base( 8 );
|
||||
player_character.set_per_base( 8 );
|
||||
|
||||
d.add_topic( "TALK_TEST_SIMPLE_STATS" );
|
||||
gen_response_lines( d, 5 );
|
||||
@@ -225,10 +229,10 @@ TEST_CASE( "npc_talk_stats", "[npc_talk]" )
|
||||
CHECK( d.responses[2].text == "This is a dexterity test response." );
|
||||
CHECK( d.responses[3].text == "This is an intelligence test response." );
|
||||
CHECK( d.responses[4].text == "This is a perception test response." );
|
||||
player_character.str_cur = 6;
|
||||
player_character.dex_cur = 6;
|
||||
player_character.int_cur = 6;
|
||||
player_character.per_cur = 6;
|
||||
player_character.set_str_base( 6 );
|
||||
player_character.set_dex_base( 6 );
|
||||
player_character.set_int_base( 6 );
|
||||
player_character.set_per_base( 6 );
|
||||
gen_response_lines( d, 1 );
|
||||
CHECK( d.responses[0].text == "This is a basic test response." );
|
||||
|
||||
@@ -605,7 +609,8 @@ TEST_CASE( "npc_talk_nested", "[npc_talk]" )
|
||||
gen_response_lines( d, 1 );
|
||||
CHECK( d.responses[0].text == "This is a basic test response." );
|
||||
player_character.cash = 800;
|
||||
player_character.int_cur = 11;
|
||||
player_character.set_int_base( 11 );
|
||||
player_character.set_int_bonus( 0 );
|
||||
gen_response_lines( d, 2 );
|
||||
CHECK( d.responses[0].text == "This is a basic test response." );
|
||||
CHECK( d.responses[1].text == "This is a complex nested test response." );
|
||||
@@ -670,7 +675,7 @@ TEST_CASE( "npc_talk_items", "[npc_talk]" )
|
||||
return has_item( p, itype_bottle_glass, 1 ) && has_item( p, itype_beer, count );
|
||||
};
|
||||
player_character.cash = 1000;
|
||||
player_character.int_cur = 8;
|
||||
player_character.set_int_base( 8 );
|
||||
player_character.worn.wear_item( player_character, item( itype_backpack ), false, false );
|
||||
d.add_topic( "TALK_TEST_EFFECTS" );
|
||||
gen_response_lines( d, 19 );
|
||||
@@ -1072,14 +1077,22 @@ TEST_CASE( "npc_compare_int", "[npc_talk]" )
|
||||
Character &player_character = get_avatar();
|
||||
clear_avatar();
|
||||
|
||||
player_character.str_cur = 4;
|
||||
player_character.dex_cur = 4;
|
||||
player_character.int_cur = 4;
|
||||
player_character.per_cur = 4;
|
||||
beta.str_cur = 8;
|
||||
beta.dex_cur = 8;
|
||||
beta.int_cur = 8;
|
||||
beta.per_cur = 8;
|
||||
player_character.set_str_bonus( 0 );
|
||||
player_character.set_dex_bonus( 0 );
|
||||
player_character.set_int_bonus( 0 );
|
||||
player_character.set_per_bonus( 0 );
|
||||
player_character.set_str_base( 4 );
|
||||
player_character.set_dex_base( 4 );
|
||||
player_character.set_int_base( 4 );
|
||||
player_character.set_per_base( 4 );
|
||||
beta.set_str_bonus( 0 );
|
||||
beta.set_dex_bonus( 0 );
|
||||
beta.set_int_bonus( 0 );
|
||||
beta.set_per_bonus( 0 );
|
||||
beta.set_str_base( 8 );
|
||||
beta.set_dex_base( 8 );
|
||||
beta.set_int_base( 8 );
|
||||
beta.set_per_base( 8 );
|
||||
player_character.kill_xp = 50;
|
||||
for( npc *guy : g->allies() ) {
|
||||
talk_function::leave( *guy );
|
||||
@@ -1119,10 +1132,10 @@ TEST_CASE( "npc_compare_int", "[npc_talk]" )
|
||||
CHECK( d.responses[expected_answers - 1].text ==
|
||||
"Test Proficiency total learning time is 24 hours." );
|
||||
|
||||
beta.str_cur = 9;
|
||||
beta.dex_cur = 10;
|
||||
beta.int_cur = 11;
|
||||
beta.per_cur = 12;
|
||||
beta.set_str_base( 9 );
|
||||
beta.set_dex_base( 10 );
|
||||
beta.set_int_base( 11 );
|
||||
beta.set_per_base( 12 );
|
||||
time_point then = calendar::turn;
|
||||
calendar::turn = calendar::turn + time_duration( 4_days );
|
||||
REQUIRE( then < calendar::turn );
|
||||
@@ -1173,10 +1186,14 @@ TEST_CASE( "npc_compare_int", "[npc_talk]" )
|
||||
// gains weakpoint proficiency practice which lowers focus
|
||||
// (see kill_tracker::notify() -> weakpoint_families::practice_kill())
|
||||
player_character.set_focus( 24 );
|
||||
player_character.str_cur = 5;
|
||||
player_character.dex_cur = 6;
|
||||
player_character.int_cur = 7;
|
||||
player_character.per_cur = 8;
|
||||
player_character.set_str_bonus( 0 );
|
||||
player_character.set_dex_bonus( 0 );
|
||||
player_character.set_int_bonus( 0 );
|
||||
player_character.set_per_bonus( 0 );
|
||||
player_character.set_str_base( 5 );
|
||||
player_character.set_dex_base( 6 );
|
||||
player_character.set_int_base( 7 );
|
||||
player_character.set_per_base( 8 );
|
||||
player_character.magic->set_mana( 25 );
|
||||
|
||||
// Each response is separated out into a single line for easier browsing.
|
||||
@@ -1309,29 +1326,29 @@ TEST_CASE( "npc_arithmetic", "[npc_talk]" )
|
||||
effects.apply( d );
|
||||
CHECK( get_weather().weather_precise->pressure == 5 );
|
||||
|
||||
player_character.str_max = 10;
|
||||
player_character.set_str_base( 10 );
|
||||
// "Sets base strength to 6."
|
||||
effects = d.responses[ 5 ].success;
|
||||
effects.apply( d );
|
||||
CHECK( player_character.str_max == 6 );
|
||||
CHECK( player_character.get_str_base() == 6 );
|
||||
|
||||
player_character.dex_max = 10;
|
||||
player_character.set_dex_base( 10 );
|
||||
// "Sets base dexterity to 7."
|
||||
effects = d.responses[ 6 ].success;
|
||||
effects.apply( d );
|
||||
CHECK( player_character.dex_max == 7 );
|
||||
CHECK( player_character.get_dex_base() == 7 );
|
||||
|
||||
player_character.int_max = 10;
|
||||
player_character.set_int_base( 10 );
|
||||
// "Sets base intelligence to 8."
|
||||
effects = d.responses[ 7 ].success;
|
||||
effects.apply( d );
|
||||
CHECK( player_character.int_max == 8 );
|
||||
CHECK( player_character.get_int_base() == 8 );
|
||||
|
||||
player_character.per_max = 10;
|
||||
player_character.set_per_base( 10 );
|
||||
// "Sets base perception to 9."
|
||||
effects = d.responses[ 8 ].success;
|
||||
effects.apply( d );
|
||||
CHECK( player_character.per_max == 9 );
|
||||
CHECK( player_character.get_per_base() == 9 );
|
||||
|
||||
std::string var_name = "test_var_time_test_test";
|
||||
player_character.set_value( var_name, 1 );
|
||||
|
||||
@@ -144,7 +144,8 @@ TEST_CASE( "safecracking", "[activity][safecracking]" )
|
||||
|
||||
auto safecracking_setup = [&dummy]( int perception,
|
||||
int skill_level, bool has_proficiency ) -> void {
|
||||
dummy.per_max = perception;
|
||||
dummy.set_per_base( perception );
|
||||
dummy.set_per_bonus( 0 );
|
||||
dummy.set_skill_level( skill_traps, skill_level );
|
||||
|
||||
REQUIRE( dummy.get_per() == perception );
|
||||
|
||||
@@ -149,10 +149,10 @@ void clear_character( Character &dummy, bool skip_nutrition )
|
||||
dummy.set_underwater( false );
|
||||
|
||||
// Make stats nominal.
|
||||
dummy.str_max = 8;
|
||||
dummy.dex_max = 8;
|
||||
dummy.int_max = 8;
|
||||
dummy.per_max = 8;
|
||||
dummy.set_str_base( 8 );
|
||||
dummy.set_dex_base( 8 );
|
||||
dummy.set_int_base( 8 );
|
||||
dummy.set_per_base( 8 );
|
||||
dummy.set_str_bonus( 0 );
|
||||
dummy.set_dex_bonus( 0 );
|
||||
dummy.set_int_bonus( 0 );
|
||||
|
||||
+11
-11
@@ -193,13 +193,13 @@ TEST_CASE( "character_reading_speed", "[reading][character][speed]" )
|
||||
WHEN( "character has below-average intelligence" ) {
|
||||
|
||||
THEN( "reading speed gets slower as intelligence decreases" ) {
|
||||
dummy.int_max = 7;
|
||||
dummy.set_int_base( 7 );
|
||||
CHECK( dummy.read_speed() * 60 == 6180 );
|
||||
dummy.int_max = 6;
|
||||
dummy.set_int_base( 6 );
|
||||
CHECK( dummy.read_speed() * 60 == 6480 );
|
||||
dummy.int_max = 5;
|
||||
dummy.set_int_base( 5 );
|
||||
CHECK( dummy.read_speed() * 60 == 6780 );
|
||||
dummy.int_max = 4;
|
||||
dummy.set_int_base( 4 );
|
||||
CHECK( dummy.read_speed() * 60 == 7200 );
|
||||
}
|
||||
}
|
||||
@@ -207,13 +207,13 @@ TEST_CASE( "character_reading_speed", "[reading][character][speed]" )
|
||||
WHEN( "character has above-average intelligence" ) {
|
||||
|
||||
THEN( "reading speed gets faster as intelligence increases" ) {
|
||||
dummy.int_max = 9;
|
||||
dummy.set_int_base( 9 );
|
||||
CHECK( dummy.read_speed() * 60 == 5700 );
|
||||
dummy.int_max = 10;
|
||||
dummy.set_int_base( 10 );
|
||||
CHECK( dummy.read_speed() * 60 == 5460 );
|
||||
dummy.int_max = 12;
|
||||
dummy.set_int_base( 12 );
|
||||
CHECK( dummy.read_speed() * 60 == 5100 );
|
||||
dummy.int_max = 14;
|
||||
dummy.set_int_base( 14 );
|
||||
CHECK( dummy.read_speed() * 60 == 4800 );
|
||||
}
|
||||
}
|
||||
@@ -272,7 +272,7 @@ TEST_CASE( "estimated_reading_time_for_a_book", "[reading][book][time]" )
|
||||
REQUIRE( dummy.fine_detail_vision_mod() == 1 );
|
||||
|
||||
WHEN( "player has average intelligence" ) {
|
||||
dummy.int_max = 8;
|
||||
dummy.set_int_base( 8 );
|
||||
REQUIRE( dummy.get_int() == 8 );
|
||||
REQUIRE( dummy.read_speed() * 60 == 6000 ); // 60s, "normal"
|
||||
|
||||
@@ -286,7 +286,7 @@ TEST_CASE( "estimated_reading_time_for_a_book", "[reading][book][time]" )
|
||||
}
|
||||
|
||||
WHEN( "player has below average intelligence" ) {
|
||||
dummy.int_max = 6;
|
||||
dummy.set_int_base( 6 );
|
||||
REQUIRE( dummy.get_int() == 6 );
|
||||
REQUIRE( dummy.read_speed() * 60 == 6480 ); // 65s
|
||||
|
||||
@@ -298,7 +298,7 @@ TEST_CASE( "estimated_reading_time_for_a_book", "[reading][book][time]" )
|
||||
}
|
||||
|
||||
WHEN( "player has above average intelligence" ) {
|
||||
dummy.int_max = 10;
|
||||
dummy.set_int_base( 10 );
|
||||
REQUIRE( dummy.get_int() == 10 );
|
||||
REQUIRE( dummy.read_speed() * 60 == 5460 ); // 55s
|
||||
|
||||
|
||||
@@ -66,9 +66,9 @@ static void reset_player( Character &you, const throw_test_pstats &pstats,
|
||||
clear_character( you );
|
||||
CHECK( !you.in_vehicle );
|
||||
you.setpos( here, pos );
|
||||
you.str_max = pstats.str;
|
||||
you.dex_max = pstats.dex;
|
||||
you.per_max = pstats.per;
|
||||
you.set_str_base( pstats.str );
|
||||
you.set_dex_base( pstats.dex );
|
||||
you.set_per_base( pstats.per );
|
||||
you.set_str_bonus( 0 );
|
||||
you.set_per_bonus( 0 );
|
||||
you.set_dex_bonus( 0 );
|
||||
|
||||
@@ -38,7 +38,8 @@ static void clear_game_drag( const ter_id &terrain )
|
||||
// Blind the player to avoid needless drawing-related overhead
|
||||
player_character.add_effect( effect_blind, 1_turns, true );
|
||||
// Make sure the ST is 8 so that muscle powered results are consistent
|
||||
player_character.str_cur = 8;
|
||||
player_character.set_str_base( 8 );
|
||||
player_character.set_str_bonus( 0 );
|
||||
|
||||
build_test_map( terrain );
|
||||
|
||||
|
||||
@@ -314,8 +314,8 @@ static int swimming_steps( avatar &swimmer )
|
||||
static void configure_swimmer( avatar &swimmer, const move_mode_id move_mode,
|
||||
const swimmer_config &config )
|
||||
{
|
||||
swimmer.str_max = config.stats.strength;
|
||||
swimmer.dex_max = config.stats.dexterity;
|
||||
swimmer.set_str_base( config.stats.strength );
|
||||
swimmer.set_dex_base( config.stats.dexterity );
|
||||
swimmer.set_str_bonus( 0 );
|
||||
swimmer.set_dex_bonus( 0 );
|
||||
|
||||
|
||||
+10
-10
@@ -455,10 +455,10 @@ TEST_CASE( "widgets_showing_avatar_stats_with_color_for_normal_value", "[widget]
|
||||
clear_avatar();
|
||||
|
||||
SECTION( "base stats str / dex / int / per" ) {
|
||||
ava.str_max = 8;
|
||||
ava.dex_max = 8;
|
||||
ava.int_max = 8;
|
||||
ava.per_max = 8;
|
||||
ava.set_str_base( 8 );
|
||||
ava.set_dex_base( 8 );
|
||||
ava.set_int_base( 8 );
|
||||
ava.set_per_base( 8 );
|
||||
|
||||
CHECK( str_w.layout( ava ) == "STR: <color_c_white>8</color>" );
|
||||
CHECK( dex_w.layout( ava ) == "DEX: <color_c_white>8</color>" );
|
||||
@@ -468,7 +468,7 @@ TEST_CASE( "widgets_showing_avatar_stats_with_color_for_normal_value", "[widget]
|
||||
|
||||
SECTION( "stats above or below their normal level" ) {
|
||||
// Normal base STR is 8, always shown in white
|
||||
ava.str_max = 8;
|
||||
ava.set_str_base( 8 );
|
||||
CHECK( str_w.layout( ava ) == "STR: <color_c_white>8</color>" );
|
||||
// Reduced STR, due to pain or something
|
||||
ava.set_str_bonus( -1 );
|
||||
@@ -1680,10 +1680,10 @@ TEST_CASE( "layout_widgets_in_columns", "[widget][layout][columns]" )
|
||||
avatar &ava = get_avatar();
|
||||
clear_avatar();
|
||||
|
||||
ava.str_max = 8;
|
||||
ava.dex_max = 8;
|
||||
ava.int_max = 8;
|
||||
ava.per_max = 8;
|
||||
ava.set_str_base( 8 );
|
||||
ava.set_dex_base( 8 );
|
||||
ava.set_int_base( 8 );
|
||||
ava.set_per_base( 8 );
|
||||
ava.movecounter = 50;
|
||||
ava.set_focus( 120 );
|
||||
ava.set_speed_base( 100 );
|
||||
@@ -2779,7 +2779,7 @@ TEST_CASE( "widgets_using_custom_vars", "[widget]" )
|
||||
|
||||
SECTION( "dynamic range" ) {
|
||||
widget dynamic_range_w = widget_test_custom_var_dynamic_range.obj();
|
||||
ava.str_max = 8;
|
||||
ava.set_str_base( 8 );
|
||||
|
||||
GIVEN( "value within normal range" ) {
|
||||
ava.set_str_bonus( 0 );
|
||||
|
||||
Reference in New Issue
Block a user