1 #include "player-ability/player-dexterity.h"
2 #include "mutation/mutation-flag-types.h"
3 #include "object/object-flags.h"
4 #include "player-base/player-race.h"
5 #include "player-info/class-info.h"
6 #include "player/player-personality.h"
7 #include "player/race-info-table.h"
8 #include "player/special-defense-types.h"
9 #include "realm/realm-hex-numbers.h"
10 #include "spell-realm/spells-hex.h"
11 #include "system/player-type-definition.h"
12 #include "util/bit-flags-calculator.h"
14 void PlayerDexterity::set_locals()
16 this->max_value = +99;
17 this->min_value = -99;
18 this->ability_type = A_DEX;
19 this->tr_flag = TR_DEX;
20 this->tr_bad_flag = TR_DEX;
28 * * エントは別途レベル26,41,46到達ごとに減算(-1)
30 int16_t PlayerDexterity::race_value()
32 int16_t result = PlayerBasicStatistics::race_value();
34 if (PlayerRace(this->player_ptr).equals(player_race_type::ENT)) {
35 if (this->player_ptr->lev > 25)
37 if (this->player_ptr->lev > 40)
39 if (this->player_ptr->lev > 45)
47 * @brief 器用さ補正計算 - 一時効果
53 int16_t PlayerDexterity::time_effect_value()
57 if (this->player_ptr->realm1 == REALM_HEX) {
58 if (SpellHex(this->player_ptr).is_spelling_specific(HEX_BUILDING)) {
76 int16_t PlayerDexterity::battleform_value()
80 if (any_bits(this->player_ptr->special_defense, KATA_KOUKIJIN)) {
84 if (any_bits(this->player_ptr->special_defense, KAMAE_BYAKKO)) {
86 } else if (any_bits(this->player_ptr->special_defense, KAMAE_GENBU)) {
88 } else if (any_bits(this->player_ptr->special_defense, KAMAE_SUZAKU)) {
96 * @brief 器用さ腕力補正計算 - 変異
100 * * 変異MUT3_IRON_SKINで減算(-1)
101 * * 変異MUT3_LIMBERで加算(+3)
102 * * 変異MUT3_ARTHRITISで減算(-3)
104 int16_t PlayerDexterity::mutation_value()
108 if (this->player_ptr->muta.has(MUTA::IRON_SKIN)) {
112 if (this->player_ptr->muta.has(MUTA::LIMBER)) {
116 if (this->player_ptr->muta.has(MUTA::ARTHRITIS)) {