• R/O
  • HTTP
  • SSH
  • HTTPS

hengband: Commit

変愚蛮怒のメインリポジトリです


Commit MetaInfo

Revision766c865199b9eebafa2588aa7fe59a6dfcdf7f37 (tree)
Time2020-05-28 22:04:37
AuthorHourier <hourier@user...>
CommiterHourier

Log Message

[Refactor] #40399 Moved some definitions from object1.h to sv-other-types.h

Change Summary

Incremental Difference

--- a/src/cmd/cmd-magiceat.c
+++ b/src/cmd/cmd-magiceat.c
@@ -67,6 +67,7 @@
6767 #include "spell/spells3.h"
6868 #include "player/player-class.h"
6969 #include "object/object-kind.h"
70+#include "object/sv-other-types.h"
7071 #include "io/targeting.h"
7172
7273 /*!
--- a/src/cmd/cmd-zaprod.c
+++ b/src/cmd/cmd-zaprod.c
@@ -11,6 +11,7 @@
1111 #include "object/object-kind.h"
1212 #include "object/object-hook.h"
1313 #include "object/special-object-flags.h"
14+#include "object/sv-other-types.h"
1415 #include "spell/spells-type.h"
1516 #include "spell/spells-status.h"
1617 #include "spell/spells-floor.h"
--- a/src/object/chest.c
+++ b/src/object/chest.c
@@ -15,6 +15,10 @@
1515 #include "spell/spells2.h"
1616 #include "spell/spells3.h"
1717 #include "object/item-apply-magic.h"
18+#include "object/sv-other-types.h"
19+
20+/*!< この値以降の小項目IDを持った箱は大型の箱としてドロップ数を増やす / Special "sval" limit -- first "large" chest */
21+#define SV_CHEST_MIN_LARGE 4
1822
1923 /*!
2024 * @brief 箱からアイテムを引き出す /
--- a/src/object/object1.h
+++ b/src/object/object1.h
@@ -670,9 +670,3 @@ extern s32b flag_cost(object_type *o_ptr, int plusses);
670670 #define SV_FOOD_WAYBREAD 37
671671 #define SV_FOOD_PINT_OF_ALE 38
672672 #define SV_FOOD_PINT_OF_WINE 39
673-
674-
675-#define SV_ROD_MIN_DIRECTION 12 /*!< この値以降の小項目IDを持ったロッドは使用時にターゲットを要求する / Special "sval" limit -- first "aimed" rod */
676-
677-#define SV_CHEST_MIN_LARGE 4 /*!< この値以降の小項目IDを持った箱は大型の箱としてドロップ数を増やす / Special "sval" limit -- first "large" chest */
678-#define SV_CHEST_KANDUME 50 /*!< 箱アイテムの小項目ID: おもちゃのカンヅメ */
--- a/src/object/sv-other-types.h
+++ b/src/object/sv-other-types.h
@@ -17,3 +17,6 @@
1717 /* The "sval" codes for TV_SHOT/TV_ARROW/TV_BOLT */
1818 #define SV_AMMO_LIGHT 0 /* pebbles */
1919 #define SV_AMMO_NORMAL 1 /* shots, arrows, bolts */
20+
21+#define SV_ROD_MIN_DIRECTION 12 /*!< この値以降の小項目IDを持ったロッドは使用時にターゲットを要求する / Special "sval" limit -- first "aimed" rod */
22+#define SV_CHEST_KANDUME 50 /*!< 箱アイテムの小項目ID: おもちゃのカンヅメ */
Show on old repository browser