OSDN Git Service

[Refactor] #1473 Renamed gain_exp_from_hex() to gain_exp() because it's a member...
authorHourier <66951241+Hourier@users.noreply.github.com>
Tue, 14 Sep 2021 14:58:55 +0000 (23:58 +0900)
committerHourier <66951241+Hourier@users.noreply.github.com>
Tue, 14 Sep 2021 14:58:55 +0000 (23:58 +0900)
src/spell-realm/spells-hex.cpp
src/spell-realm/spells-hex.h

index 0780e4c..e4ad7ed 100644 (file)
@@ -188,7 +188,7 @@ void SpellHex::decrease_mana()
         return;
     }
 
-    this->gain_exp_from_hex();
+    this->gain_exp();
     for (auto spell : this->casting_spells) {
         exe_spell(this->player_ptr, REALM_HEX, spell, SPELL_CONTNUATION);
     }
@@ -250,7 +250,7 @@ int SpellHex::calc_need_mana()
     return need_mana;
 }
 
-void SpellHex::gain_exp_from_hex()
+void SpellHex::gain_exp()
 {
     for (auto spell : this->casting_spells) {
         if (!this->is_spelling_specific(spell)) {
@@ -497,7 +497,7 @@ void SpellHex::set_revenge_turn(byte turn, bool substitution)
 
 SpellHexRevengeType SpellHex::get_revenge_type() const
 {
-    return static_cast <SpellHexRevengeType>(this->player_ptr->magic_num2[1]);
+    return static_cast<SpellHexRevengeType>(this->player_ptr->magic_num2[1]);
 }
 
 void SpellHex::set_revenge_type(SpellHexRevengeType type)
index 2d0887d..93e2990 100644 (file)
@@ -50,7 +50,7 @@ private:
     bool process_mana_cost(const bool need_restart);
     bool check_restart();
     int calc_need_mana();
-    void gain_exp_from_hex();
+    void gain_exp();
     bool gain_exp_skilled(const int spell);
     bool gain_exp_expert(const int spell);
     void gain_exp_master(const int spell);