• R/O
  • HTTP
  • SSH
  • HTTPS

hengband: Commit

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


Commit MetaInfo

Revisione9e977aa6a8155de4f85d278fc40b74ace1a751d (tree)
Time2019-01-09 22:30:26
AuthorDeskull <deskull@user...>
CommiterDeskull

Log Message

[Refactor] #37353 コメント整理。 / Refactor comments.

Change Summary

Incremental Difference

--- a/src/init1.c
+++ b/src/init1.c
@@ -4137,8 +4137,6 @@ static errr process_dungeon_file_aux(char *buf, int ymin, int xmin, int ymax, in
41374137 object_type *q_ptr = &forge;
41384138
41394139 object_prep(q_ptr, k_idx);
4140-
4141- /* Drop it in the dungeon */
41424140 drop_here(q_ptr, *y, *x);
41434141 }
41444142 else
--- a/src/spells1.c
+++ b/src/spells1.c
@@ -5055,8 +5055,6 @@ static bool project_m(MONSTER_IDX who, POSITION r, POSITION y, POSITION x, HIT_P
50555055
50565056 /* Mark the item as fully known */
50575057 q_ptr->ident |= (IDENT_MENTAL);
5058-
5059- /* Drop it in the dungeon */
50605058 (void)drop_near(q_ptr, -1, p_ptr->y, p_ptr->x);
50615059 }
50625060
--- a/src/spells2.c
+++ b/src/spells2.c
@@ -3871,8 +3871,6 @@ bool kawarimi(bool success)
38713871 object_prep(q_ptr, lookup_kind(TV_STATUE, SV_WOODEN_STATUE));
38723872
38733873 q_ptr->pval = MON_NINJA;
3874-
3875- /* Drop it in the dungeon */
38763874 (void)drop_near(q_ptr, -1, y, x);
38773875
38783876 #ifdef JP
--- a/src/xtra2.c
+++ b/src/xtra2.c
@@ -471,8 +471,6 @@ void check_quest_completion(monster_type *m_ptr)
471471
472472 /* Make a great object */
473473 make_object(o_ptr, AM_GOOD | AM_GREAT);
474-
475- /* Drop it in the dungeon */
476474 (void)drop_near(o_ptr, -1, y, x);
477475 }
478476 }
@@ -640,8 +638,6 @@ void monster_death(MONSTER_IDX m_idx, bool drop_item)
640638 /* Prepare to make a prize */
641639 object_prep(q_ptr, lookup_kind(arena_info[p_ptr->arena_number].tval, arena_info[p_ptr->arena_number].sval));
642640 apply_magic(q_ptr, object_level, AM_NO_FIXED_ART);
643-
644- /* Drop it in the dungeon */
645641 (void)drop_near(q_ptr, -1, y, x);
646642 }
647643
@@ -704,8 +700,6 @@ void monster_death(MONSTER_IDX m_idx, bool drop_item)
704700 apply_magic(q_ptr, object_level, AM_NO_FIXED_ART);
705701
706702 q_ptr->pval = m_ptr->r_idx;
707-
708- /* Drop it in the dungeon */
709703 (void)drop_near(q_ptr, -1, y, x);
710704 }
711705
@@ -751,8 +745,6 @@ void monster_death(MONSTER_IDX m_idx, bool drop_item)
751745 object_prep(q_ptr, lookup_kind(TV_SWORD, SV_BLADE_OF_CHAOS));
752746
753747 apply_magic(q_ptr, object_level, AM_NO_FIXED_ART | mo_mode);
754-
755- /* Drop it in the dungeon */
756748 (void)drop_near(q_ptr, -1, y, x);
757749 }
758750 break;
@@ -771,8 +763,6 @@ void monster_death(MONSTER_IDX m_idx, bool drop_item)
771763
772764 /* Make a book */
773765 make_object(q_ptr, mo_mode);
774-
775- /* Drop it in the dungeon */
776766 (void)drop_near(q_ptr, -1, y, x);
777767 }
778768 break;
@@ -873,8 +863,6 @@ void monster_death(MONSTER_IDX m_idx, bool drop_item)
873863
874864 /* Mega-Hack -- Actually create "Grond" */
875865 apply_magic(q_ptr, -1, AM_GOOD | AM_GREAT);
876-
877- /* Drop it in the dungeon */
878866 (void)drop_near(q_ptr, -1, y, x);
879867 q_ptr = &forge;
880868
@@ -886,8 +874,6 @@ void monster_death(MONSTER_IDX m_idx, bool drop_item)
886874
887875 /* Mega-Hack -- Actually create "Chaos" */
888876 apply_magic(q_ptr, -1, AM_GOOD | AM_GREAT);
889-
890- /* Drop it in the dungeon */
891877 (void)drop_near(q_ptr, -1, y, x);
892878 break;
893879
@@ -898,8 +884,6 @@ void monster_death(MONSTER_IDX m_idx, bool drop_item)
898884
899885 /* Prepare to make a broken sword */
900886 object_prep(q_ptr, lookup_kind(TV_SWORD, randint1(2)));
901-
902- /* Drop it in the dungeon */
903887 (void)drop_near(q_ptr, -1, y, x);
904888 }
905889 break;
@@ -915,8 +899,6 @@ void monster_death(MONSTER_IDX m_idx, bool drop_item)
915899 object_prep(q_ptr, lookup_kind(TV_CHEST, SV_CHEST_KANDUME));
916900
917901 apply_magic(q_ptr, object_level, AM_NO_FIXED_ART);
918-
919- /* Drop it in the dungeon */
920902 (void)drop_near(q_ptr, -1, y, x);
921903 }
922904 break;
@@ -944,8 +926,6 @@ void monster_death(MONSTER_IDX m_idx, bool drop_item)
944926
945927 /* Make a cloak */
946928 make_object(q_ptr, mo_mode);
947-
948- /* Drop it in the dungeon */
949929 (void)drop_near(q_ptr, -1, y, x);
950930 }
951931 break;
@@ -961,8 +941,6 @@ void monster_death(MONSTER_IDX m_idx, bool drop_item)
961941
962942 /* Make a poleweapon */
963943 make_object(q_ptr, mo_mode);
964-
965- /* Drop it in the dungeon */
966944 (void)drop_near(q_ptr, -1, y, x);
967945 }
968946 break;
@@ -978,8 +956,6 @@ void monster_death(MONSTER_IDX m_idx, bool drop_item)
978956
979957 /* Make a hard armor */
980958 make_object(q_ptr, mo_mode);
981-
982- /* Drop it in the dungeon */
983959 (void)drop_near(q_ptr, -1, y, x);
984960 }
985961 break;
@@ -995,8 +971,6 @@ void monster_death(MONSTER_IDX m_idx, bool drop_item)
995971
996972 /* Make a hafted weapon */
997973 make_object(q_ptr, mo_mode);
998-
999- /* Drop it in the dungeon */
1000974 (void)drop_near(q_ptr, -1, y, x);
1001975 }
1002976 break;
@@ -1012,8 +986,6 @@ void monster_death(MONSTER_IDX m_idx, bool drop_item)
1012986
1013987 /* Make a sword */
1014988 make_object(q_ptr, mo_mode);
1015-
1016- /* Drop it in the dungeon */
1017989 (void)drop_near(q_ptr, -1, y, x);
1018990 }
1019991 break;
@@ -1087,8 +1059,6 @@ void monster_death(MONSTER_IDX m_idx, bool drop_item)
10871059 object_prep(q_ptr, k_idx);
10881060
10891061 apply_magic(q_ptr, object_level, AM_NO_FIXED_ART | AM_GOOD);
1090-
1091- /* Drop it in the dungeon */
10921062 (void)drop_near(q_ptr, -1, y, x);
10931063 }
10941064 msg_format(_("あなたは%sを制覇した!", "You have conquered %s!"),d_name+d_info[dungeon_type].name);
@@ -1142,8 +1112,6 @@ void monster_death(MONSTER_IDX m_idx, bool drop_item)
11421112
11431113 dump_item++;
11441114 }
1145-
1146- /* Drop it in the dungeon */
11471115 (void)drop_near(q_ptr, -1, y, x);
11481116 }
11491117
@@ -4324,8 +4292,6 @@ void gain_level_reward(int chosen_reward)
43244292 q_ptr->to_d = 3 + randint1(dun_level) % 10;
43254293 one_resistance(q_ptr);
43264294 q_ptr->name2 = EGO_CHAOTIC;
4327-
4328- /* Drop it in the dungeon */
43294295 (void)drop_near(q_ptr, -1, p_ptr->y, p_ptr->x);
43304296 reward = _("(混沌)の武器を手に入れた。", "chaos weapon");
43314297 break;
Show on old repository browser