1 #include "player-ability/player-intelligence.h"
2 #include "mutation/mutation-flag-types.h"
3 #include "object/object-flags.h"
4 #include "player-base/player-class.h"
5 #include "player-info/class-info.h"
6 #include "player-info/mimic-info-table.h"
7 #include "player-info/monk-data-type.h"
8 #include "player-info/samurai-data-type.h"
9 #include "player/player-personality.h"
10 #include "player/race-info-table.h"
11 #include "player/special-defense-types.h"
12 #include "realm/realm-hex-numbers.h"
13 #include "spell-realm/spells-hex.h"
14 #include "system/player-type-definition.h"
15 #include "util/bit-flags-calculator.h"
17 PlayerIntelligence::PlayerIntelligence(player_type *player_ptr)
18 : PlayerBasicStatistics(player_ptr)
22 void PlayerIntelligence::set_locals()
24 this->max_value = +99;
25 this->min_value = -99;
26 this->ability_type = A_INT;
27 this->tr_flag = TR_INT;
28 this->tr_bad_flag = TR_INT;
40 int16_t PlayerIntelligence::stance_value()
44 PlayerClass pc(player_ptr);
45 if (pc.samurai_stance_is(SamuraiStance::KOUKIJIN)) {
49 if (pc.monk_stance_is(MonkStance::GENBU)) {
51 } else if (pc.monk_stance_is(MonkStance::SUZAKU)) {
63 * * 変異MUT3_HYPER_INTで加算(+4)
64 * * 変異MUT3_MORONICで減算(-4)
66 int16_t PlayerIntelligence::mutation_value()
69 if (this->player_ptr->muta.any()) {
70 if (this->player_ptr->muta.has(MUTA::HYPER_INT)) {
74 if (this->player_ptr->muta.has(MUTA::MORONIC)) {