1 #include "player-status/player-strength.h"
2 #include "mutation/mutation-flag-types.h"
3 #include "object/object-flags.h"
4 #include "player/mimic-info-table.h"
5 #include "player/player-class.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 PlayerStrength::set_locals()
16 this->max_value = +99;
17 this->min_value = -99;
18 this->status_type = A_STR;
19 this->tr_flag = TR_STR;
20 this->tr_bad_flag = TR_STR;
28 * * エントは別途レベル26,41,46到達ごとに加算(+1)
30 s16b PlayerStrength::race_value()
32 s16b result = PlayerBasicStatistics::race_value();
34 if (is_specific_player_race(this->owner_ptr, RACE_ENT)) {
35 if (this->owner_ptr->lev > 25)
37 if (this->owner_ptr->lev > 40)
39 if (this->owner_ptr->lev > 45)
47 * @brief 腕力補正計算 - 一時効果
53 * * ネオ・つよしスペシャル中で加算(+4)
55 s16b PlayerStrength::time_effect_value()
59 if (this->owner_ptr->realm1 == REALM_HEX) {
60 if (hex_spelling(this->owner_ptr, HEX_XTRA_MIGHT)) {
63 if (hex_spelling(this->owner_ptr, HEX_BUILDING)) {
68 if (this->owner_ptr->tsuyoshi) {
85 s16b PlayerStrength::battleform_value()
89 if (any_bits(this->owner_ptr->special_defense, KATA_KOUKIJIN)) {
93 if (any_bits(this->owner_ptr->special_defense, KAMAE_BYAKKO)) {
95 } else if (any_bits(this->owner_ptr->special_defense, KAMAE_SUZAKU)) {
107 * * 変異MUT3_HYPER_STRで加算(+4)
108 * * 変異MUT3_PUNYで減算(-4)
110 s16b PlayerStrength::mutation_value()
114 if (this->owner_ptr->muta.any()) {
115 if (this->owner_ptr->muta.has(MUTA::HYPER_STR)) {
119 if (this->owner_ptr->muta.has(MUTA::PUNY)) {