OSDN Git Service

[Refactor] #2680 MAX_SKILLS を、より適切な場所player-skill.h に移した
authorHourier <66951241+Hourier@users.noreply.github.com>
Wed, 2 Nov 2022 14:03:15 +0000 (23:03 +0900)
committerHourier <66951241+Hourier@users.noreply.github.com>
Thu, 3 Nov 2022 00:55:52 +0000 (09:55 +0900)
src/player/player-skill.h
src/system/gamevalue.h

index 6bf80d4..19de3c2 100644 (file)
@@ -25,6 +25,7 @@ enum class PlayerSkillRank {
     MASTER = 4,
 };
 
+constexpr auto MAX_SKILLS = 10;
 constexpr auto PLAYER_SKILL_KIND_TYPE_RANGE = EnumRange(PlayerSkillKindType::MARTIAL_ARTS, PlayerSkillKindType::SHIELD);
 
 enum class ItemKindType : short;
index 0e3c839..2b46ec5 100644 (file)
@@ -1,22 +1,14 @@
 #pragma once
 
 #define PENETRATE_INVULNERABILITY 13 /*!< 無敵化が破られる確率(1/x) / 1/x chance of hurting even if invulnerable! */
-
-/*
- * Refueling constants
- */
 #define FUEL_TORCH 5000 /*!< 松明の基本寿命値 / Maximum amount of fuel in a torch */
 #define FUEL_LAMP 15000 /*!< ランタンの基本寿命値 / Maximum amount of fuel in a lantern */
-
-#define MAX_SKILLS 10
-
 #define TOWN_DAWN 10000 /*!< 1日分のターン / Number of ticks from dawn to dawn XXX */
 #define TURNS_PER_TICK 10L /*!< 時間経過処理を行うターン数の刻み / Number of energy-gain-turns per ticks */
 #define MAX_DAYS 20000 /*!< 内部処理中で保持される最大日数 / Maximum days */
 #define BREAK_RUNE_PROTECTION 550 /*!< 守りのルーンの強靭度 / Rune of protection resistance */
 #define BREAK_RUNE_EXPLOSION 299 /*!< 爆発のルーンの発動しやすさ / For explosive runes */
 #define BTH_PLUS_ADJ 3 /*!< 武器経験値及びプレイヤーの打撃/射撃能力に応じた修正値倍率 / Adjust BTH per plus-to-hit */
-#define MON_SUMMON_ADJ 2 /*!< 現在未使用 Adjust level of summoned creatures */
 #define MON_DRAIN_LIFE 2 /*!< モンスターの打撃によるプレイヤーの経験値吸収基本倍率(%) / Percent of player exp drained per hit */
 #define USE_DEVICE 3 /*!< 魔道具の最低失敗基準値 x> Harder devices x< Easier devices     */