1 #include "player-status/player-intelligence.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 "util/bit-flags-calculator.h"
13 void PlayerIntelligence::set_locals()
15 this->max_value = +99;
16 this->min_value = -99;
17 this->status_type = A_INT;
18 this->tr_flag = TR_INT;
19 this->tr_bad_flag = TR_INT;
31 s16b PlayerIntelligence::battleform_value()
35 if (any_bits(this->owner_ptr->special_defense, KATA_KOUKIJIN)) {
39 if (any_bits(this->owner_ptr->special_defense, KAMAE_GENBU)) {
41 } else if (any_bits(this->owner_ptr->special_defense, KAMAE_SUZAKU)) {
53 * * 変異MUT3_HYPER_INTで加算(+4)
54 * * 変異MUT3_MORONICで減算(-4)
56 s16b PlayerIntelligence::mutation_value()
59 if (this->owner_ptr->muta3) {
60 if (any_bits(this->owner_ptr->muta3, MUT3_HYPER_INT)) {
64 if (any_bits(this->owner_ptr->muta3, MUT3_MORONIC)) {