1 #include "player-ability/player-intelligence.h"
2 #include "mutation/mutation-flag-types.h"
3 #include "object/object-flags.h"
4 #include "player-info/class-info.h"
5 #include "player-info/mimic-info-table.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 PlayerIntelligence::set_locals()
16 this->max_value = +99;
17 this->min_value = -99;
18 this->ability_type = A_INT;
19 this->tr_flag = TR_INT;
20 this->tr_bad_flag = TR_INT;
32 int16_t PlayerIntelligence::battleform_value()
36 if (any_bits(this->owner_ptr->special_defense, KATA_KOUKIJIN)) {
40 if (any_bits(this->owner_ptr->special_defense, KAMAE_GENBU)) {
42 } else if (any_bits(this->owner_ptr->special_defense, KAMAE_SUZAKU)) {
54 * * 変異MUT3_HYPER_INTで加算(+4)
55 * * 変異MUT3_MORONICで減算(-4)
57 int16_t PlayerIntelligence::mutation_value()
60 if (this->owner_ptr->muta.any()) {
61 if (this->owner_ptr->muta.has(MUTA::HYPER_INT)) {
65 if (this->owner_ptr->muta.has(MUTA::MORONIC)) {