OSDN Git Service

Add 'special' process to acquirement() and debug command 'S' (special acquirement).
authordeskull <deskull@0568b783-4c39-0410-ac80-bf13821ea2a2>
Wed, 4 Dec 2013 12:02:51 +0000 (12:02 +0000)
committerdeskull <deskull@0568b783-4c39-0410-ac80-bf13821ea2a2>
Wed, 4 Dec 2013 12:02:51 +0000 (12:02 +0000)
src/cmd6.c
src/externs.h
src/object2.c
src/wizard2.c
src/xtra2.c

index 6405293..0aecc8a 100644 (file)
@@ -2016,14 +2016,14 @@ msg_print("
 
                case SV_SCROLL_ACQUIREMENT:
                {
-                       acquirement(py, px, 1, TRUE, FALSE);
+                       acquirement(py, px, 1, TRUE, FALSE, FALSE);
                        ident = TRUE;
                        break;
                }
 
                case SV_SCROLL_STAR_ACQUIREMENT:
                {
-                       acquirement(py, px, randint1(2) + 1, TRUE, FALSE);
+                       acquirement(py, px, randint1(2) + 1, TRUE, FALSE, FALSE);
                        ident = TRUE;
                        break;
                }
index f56b1b3..a2857e6 100644 (file)
@@ -28,7 +28,7 @@ extern cptr macro_trigger_name[MAX_MACRO_TRIG];
 extern cptr macro_trigger_keycode[2][MAX_MACRO_TRIG];
 
 
-/* ÆüËܸìÈǵ¡Ç½ÄɲäǻȤ¦ */
+/* Æ\81Eܸ\81Eǵ¡Ç½ÄɲäǻȤ¦ */
 extern int level_up;
 
 /* 
@@ -1052,7 +1052,7 @@ extern void place_object(int y, int x, u32b mode);
 extern bool make_gold(object_type *j_ptr);
 extern void place_gold(int y, int x);
 extern s16b drop_near(object_type *o_ptr, int chance, int y, int x);
-extern void acquirement(int y1, int x1, int num, bool great, bool known);
+extern void acquirement(int y1, int x1, int num, bool great, bool special, bool known);
 extern void amusement(int y1, int x1, int num, bool known);
 extern void init_normal_traps(void);
 extern s16b choose_random_trap(void);
index f4168d4..cedb3b2 100644 (file)
@@ -5384,11 +5384,11 @@ s16b drop_near(object_type *j_ptr, int chance, int y, int x)
 /*
  * Scatter some "great" objects near the player
  */
-void acquirement(int y1, int x1, int num, bool great, bool known)
+void acquirement(int y1, int x1, int num, bool great, bool special, bool known)
 {
        object_type *i_ptr;
        object_type object_type_body;
-       u32b mode = AM_GOOD | (great ? AM_GREAT : 0L);
+       u32b mode = AM_GOOD | (great || special ? AM_GREAT : 0L) | (special ? AM_SPECIAL : 0L) ;
 
        /* Acquirement */
        while (num--)
@@ -5413,7 +5413,6 @@ void acquirement(int y1, int x1, int num, bool great, bool known)
        }
 }
 
-
 /*
  * Scatter some "amusing" objects near the player
  */
index 27fa4b1..2b3d708 100644 (file)
@@ -2011,7 +2011,7 @@ void do_cmd_debug(void)
        /* Good Objects */
        case 'g':
                if (command_arg <= 0) command_arg = 1;
-               acquirement(py, px, command_arg, FALSE, TRUE);
+               acquirement(py, px, command_arg, FALSE, FALSE, TRUE);
                break;
 
        /* Hitpoint rerating */
@@ -2129,6 +2129,12 @@ void do_cmd_debug(void)
                do_cmd_wiz_summon(command_arg);
                break;
 
+       /* Special(Random Artifact) Objects */
+       case 'S':
+               if (command_arg <= 0) command_arg = 1;
+               acquirement(py, px, command_arg, TRUE, TRUE, TRUE);
+               break;
+
        /* Teleport */
        case 't':
                teleport_player(100, 0L);
@@ -2137,7 +2143,7 @@ void do_cmd_debug(void)
        /* Very Good Objects */
        case 'v':
                if (command_arg <= 0) command_arg = 1;
-               acquirement(py, px, command_arg, TRUE, TRUE);
+               acquirement(py, px, command_arg, TRUE, FALSE, TRUE);
                break;
 
        /* Wizard Light the Level */
index e0fd7cb..4cd0789 100644 (file)
@@ -4945,7 +4945,7 @@ msg_print("
                        msg_print("'Use my gift wisely.'");
 #endif
 
-                       acquirement(py, px, 1, FALSE, FALSE);
+                       acquirement(py, px, 1, FALSE, FALSE, FALSE);
 #ifdef JP
                        reward = "¾å¼Á¤Ê¥¢¥¤¥Æ¥à¤ò¼ê¤ËÆþ¤ì¤¿¡£";
 #else
@@ -4967,7 +4967,7 @@ msg_print("
                        msg_print("'Use my gift wisely.'");
 #endif
 
-                       acquirement(py, px, 1, TRUE, FALSE);
+                       acquirement(py, px, 1, TRUE, FALSE, FALSE);
 #ifdef JP
                        reward = "¹âµéÉʤΥ¢¥¤¥Æ¥à¤ò¼ê¤ËÆþ¤ì¤¿¡£";
 #else
@@ -5108,7 +5108,7 @@ msg_print("
                        msg_print("'Thy deed hath earned thee a worthy reward.'");
 #endif
 
-                       acquirement(py, px, randint1(2) + 1, FALSE, FALSE);
+                       acquirement(py, px, randint1(2) + 1, FALSE, FALSE, FALSE);
 #ifdef JP
                        reward = "¾å¼Á¤Ê¥¢¥¤¥Æ¥à¤ò¼ê¤ËÆþ¤ì¤¿¡£";
 #else
@@ -5130,7 +5130,7 @@ msg_print("
                        msg_print("'Behold, mortal, how generously I reward thy loyalty.'");
 #endif
 
-                       acquirement(py, px, randint1(2) + 1, TRUE, FALSE);
+                       acquirement(py, px, randint1(2) + 1, TRUE, FALSE, FALSE);
 #ifdef JP
                        reward = "¹âµéÉʤΥ¢¥¤¥Æ¥à¤ò¼ê¤ËÆþ¤ì¤¿¡£";
 #else