OSDN Git Service

[Refactor] #2680 守りと爆発のルーンに関する定数をmonster-move.h に移した
authorHourier <66951241+Hourier@users.noreply.github.com>
Wed, 2 Nov 2022 14:05:18 +0000 (23:05 +0900)
committerHourier <66951241+Hourier@users.noreply.github.com>
Thu, 3 Nov 2022 00:55:52 +0000 (09:55 +0900)
src/monster-floor/monster-move.h
src/system/gamevalue.h

index ff49cff..1b7a3d9 100644 (file)
@@ -2,6 +2,9 @@
 
 #include "system/angband.h"
 
+constexpr auto BREAK_RUNE_PROTECTION = 550; /*!< 守りのルーンの強靭度 / Rune of protection resistance */
+constexpr auto BREAK_RUNE_EXPLOSION = 299; /*!< 爆発のルーンの発動しやすさ / For explosive runes */
+
 struct monster_type;
 class PlayerType;
 struct turn_flags;
index 2b46ec5..69f4ac4 100644 (file)
@@ -6,8 +6,6 @@
 #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_DRAIN_LIFE 2 /*!< モンスターの打撃によるプレイヤーの経験値吸収基本倍率(%) / Percent of player exp drained per hit */
 #define USE_DEVICE 3 /*!< 魔道具の最低失敗基準値 x> Harder devices x< Easier devices     */