• R/O
  • HTTP
  • SSH
  • HTTPS

hengband: Commit

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


Commit MetaInfo

Revision5a955bfb00a8965c731b8d5bcbf30e3cbb9be682 (tree)
Time2019-02-02 00:29:23
AuthorDeskull <deskull@user...>
CommiterDeskull

Log Message

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

Change Summary

Incremental Difference

--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -62,6 +62,7 @@ hengband_SOURCES = \
6262 rumor.h rumor.c \
6363 \
6464 spells1.c spells2.c spells3.c \
65+ spells-diceroll.c spells-diceroll.h \
6566 spells-object.c spells-object.h \
6667 spells-status.c spells-status.h \
6768 spells-summon.c spells-summon.h \
--- a/src/spells1.c
+++ b/src/spells1.c
@@ -529,101 +529,58 @@ static bool project_f(MONSTER_IDX who, POSITION r, POSITION y, POSITION x, HIT_P
529529 break;
530530 }
531531
532- /* Make doors */
533532 case GF_MAKE_DOOR:
534533 {
535- /* Require a "naked" floor grid */
536534 if (!cave_naked_bold(y, x)) break;
537-
538- /* Not on the player */
539535 if (player_bold(y, x)) break;
540-
541- /* Create a closed door */
542536 cave_set_feat(y, x, feat_door[DOOR_DOOR].closed);
543-
544- /* Observe */
545537 if (c_ptr->info & (CAVE_MARK)) obvious = TRUE;
546-
547538 break;
548539 }
549540
550- /* Make traps */
551541 case GF_MAKE_TRAP:
552542 {
553- /* Place a trap */
554543 place_trap(y, x);
555-
556544 break;
557545 }
558546
559- /* Make doors */
560547 case GF_MAKE_TREE:
561548 {
562- /* Require a "naked" floor grid */
563549 if (!cave_naked_bold(y, x)) break;
564-
565- /* Not on the player */
566550 if (player_bold(y, x)) break;
567-
568- /* Create a closed door */
569551 cave_set_feat(y, x, feat_tree);
570-
571- /* Observe */
572552 if (c_ptr->info & (CAVE_MARK)) obvious = TRUE;
573-
574-
575553 break;
576554 }
577555
578556 case GF_MAKE_GLYPH:
579557 {
580- /* Require a "naked" floor grid */
581558 if (!cave_naked_bold(y, x)) break;
582-
583- /* Create a glyph */
584559 c_ptr->info |= CAVE_OBJECT;
585560 c_ptr->mimic = feat_glyph;
586-
587561 note_spot(y, x);
588-
589562 lite_spot(y, x);
590-
591563 break;
592564 }
593565
594566 case GF_STONE_WALL:
595567 {
596- /* Require a "naked" floor grid */
597568 if (!cave_naked_bold(y, x)) break;
598-
599- /* Not on the player */
600569 if (player_bold(y, x)) break;
601-
602- /* Place a wall */
603570 cave_set_feat(y, x, feat_granite);
604-
605571 break;
606572 }
607573
608-
609574 case GF_LAVA_FLOW:
610575 {
611- /* Ignore permanent grid */
612576 if (have_flag(f_ptr->flags, FF_PERMANENT)) break;
613-
614- /* Shallow Lava */
615577 if (dam == 1)
616578 {
617- /* Ignore grid without enough space */
618579 if (!have_flag(f_ptr->flags, FF_FLOOR)) break;
619-
620- /* Place a shallow lava */
621580 cave_set_feat(y, x, feat_shallow_lava);
622581 }
623- /* Deep Lava */
624582 else if (dam)
625583 {
626- /* Place a deep lava */
627584 cave_set_feat(y, x, feat_deep_lava);
628585 }
629586 break;
@@ -631,22 +588,14 @@ static bool project_f(MONSTER_IDX who, POSITION r, POSITION y, POSITION x, HIT_P
631588
632589 case GF_WATER_FLOW:
633590 {
634- /* Ignore permanent grid */
635591 if (have_flag(f_ptr->flags, FF_PERMANENT)) break;
636-
637- /* Shallow Water */
638592 if (dam == 1)
639593 {
640- /* Ignore grid without enough space */
641594 if (!have_flag(f_ptr->flags, FF_FLOOR)) break;
642-
643- /* Place a shallow water */
644595 cave_set_feat(y, x, feat_shallow_water);
645596 }
646- /* Deep Water */
647597 else if (dam)
648598 {
649- /* Place a deep water */
650599 cave_set_feat(y, x, feat_deep_water);
651600 }
652601 break;
Show on old repository browser