• R/O
  • HTTP
  • SSH
  • HTTPS

hengband: Commit

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


Commit MetaInfo

Revision03d5ce725937742caff358fc5fdc2cf04e7d9b31 (tree)
Time2019-03-08 22:34:48
Authordeskull <deskull@user...>
Commiterdeskull

Log Message

[Refactor] #37353 インデント修正。 / Fix indent.

Change Summary

Incremental Difference

--- a/src/object2.c
+++ b/src/object2.c
@@ -49,12 +49,12 @@ static void one_sustain(object_type *o_ptr)
4949 {
5050 switch (randint0(A_MAX))
5151 {
52- case 0: add_flag(o_ptr->art_flags, TR_SUST_STR); break;
53- case 1: add_flag(o_ptr->art_flags, TR_SUST_INT); break;
54- case 2: add_flag(o_ptr->art_flags, TR_SUST_WIS); break;
55- case 3: add_flag(o_ptr->art_flags, TR_SUST_DEX); break;
56- case 4: add_flag(o_ptr->art_flags, TR_SUST_CON); break;
57- case 5: add_flag(o_ptr->art_flags, TR_SUST_CHR); break;
52+ case 0: add_flag(o_ptr->art_flags, TR_SUST_STR); break;
53+ case 1: add_flag(o_ptr->art_flags, TR_SUST_INT); break;
54+ case 2: add_flag(o_ptr->art_flags, TR_SUST_WIS); break;
55+ case 3: add_flag(o_ptr->art_flags, TR_SUST_DEX); break;
56+ case 4: add_flag(o_ptr->art_flags, TR_SUST_CON); break;
57+ case 5: add_flag(o_ptr->art_flags, TR_SUST_CHR); break;
5858 }
5959 }
6060
--- a/src/rooms-vault.c
+++ b/src/rooms-vault.c
@@ -551,65 +551,64 @@ static void build_vault(POSITION yval, POSITION xval, POSITION ymax, POSITION xm
551551 /* Analyze the symbol */
552552 switch (*t)
553553 {
554- /* Monster */
555- case '&':
556- {
557- current_floor_ptr->monster_level = current_floor_ptr->base_level + 5;
558- place_monster(y, x, (PM_ALLOW_SLEEP | PM_ALLOW_GROUP));
559- current_floor_ptr->monster_level = current_floor_ptr->base_level;
560- break;
561- }
562-
563- /* Meaner monster */
564- case '@':
565- {
566- current_floor_ptr->monster_level = current_floor_ptr->base_level + 11;
567- place_monster(y, x, (PM_ALLOW_SLEEP | PM_ALLOW_GROUP));
568- current_floor_ptr->monster_level = current_floor_ptr->base_level;
569- break;
570- }
571-
572- /* Meaner monster, plus treasure */
573- case '9':
574- {
575- current_floor_ptr->monster_level = current_floor_ptr->base_level + 9;
576- place_monster(y, x, PM_ALLOW_SLEEP);
577- current_floor_ptr->monster_level = current_floor_ptr->base_level;
578- current_floor_ptr->object_level = current_floor_ptr->base_level + 7;
579- place_object(y, x, AM_GOOD);
580- current_floor_ptr->object_level = current_floor_ptr->base_level;
581- break;
582- }
583-
584- /* Nasty monster and treasure */
585- case '8':
586- {
587- current_floor_ptr->monster_level = current_floor_ptr->base_level + 40;
588- place_monster(y, x, PM_ALLOW_SLEEP);
589- current_floor_ptr->monster_level = current_floor_ptr->base_level;
590- current_floor_ptr->object_level = current_floor_ptr->base_level + 20;
591- place_object(y, x, AM_GOOD | AM_GREAT);
592- current_floor_ptr->object_level = current_floor_ptr->base_level;
593- break;
594- }
554+ case '&':
555+ {
556+ current_floor_ptr->monster_level = current_floor_ptr->base_level + 5;
557+ place_monster(y, x, (PM_ALLOW_SLEEP | PM_ALLOW_GROUP));
558+ current_floor_ptr->monster_level = current_floor_ptr->base_level;
559+ break;
560+ }
595561
596- /* Monster and/or object */
597- case ',':
598- {
599- if (randint0(100) < 50)
562+ /* Meaner monster */
563+ case '@':
600564 {
601- current_floor_ptr->monster_level = current_floor_ptr->base_level + 3;
565+ current_floor_ptr->monster_level = current_floor_ptr->base_level + 11;
602566 place_monster(y, x, (PM_ALLOW_SLEEP | PM_ALLOW_GROUP));
603567 current_floor_ptr->monster_level = current_floor_ptr->base_level;
568+ break;
604569 }
605- if (randint0(100) < 50)
570+
571+ /* Meaner monster, plus treasure */
572+ case '9':
606573 {
574+ current_floor_ptr->monster_level = current_floor_ptr->base_level + 9;
575+ place_monster(y, x, PM_ALLOW_SLEEP);
576+ current_floor_ptr->monster_level = current_floor_ptr->base_level;
607577 current_floor_ptr->object_level = current_floor_ptr->base_level + 7;
608- place_object(y, x, 0L);
578+ place_object(y, x, AM_GOOD);
609579 current_floor_ptr->object_level = current_floor_ptr->base_level;
580+ break;
581+ }
582+
583+ /* Nasty monster and treasure */
584+ case '8':
585+ {
586+ current_floor_ptr->monster_level = current_floor_ptr->base_level + 40;
587+ place_monster(y, x, PM_ALLOW_SLEEP);
588+ current_floor_ptr->monster_level = current_floor_ptr->base_level;
589+ current_floor_ptr->object_level = current_floor_ptr->base_level + 20;
590+ place_object(y, x, AM_GOOD | AM_GREAT);
591+ current_floor_ptr->object_level = current_floor_ptr->base_level;
592+ break;
593+ }
594+
595+ /* Monster and/or object */
596+ case ',':
597+ {
598+ if (randint0(100) < 50)
599+ {
600+ current_floor_ptr->monster_level = current_floor_ptr->base_level + 3;
601+ place_monster(y, x, (PM_ALLOW_SLEEP | PM_ALLOW_GROUP));
602+ current_floor_ptr->monster_level = current_floor_ptr->base_level;
603+ }
604+ if (randint0(100) < 50)
605+ {
606+ current_floor_ptr->object_level = current_floor_ptr->base_level + 7;
607+ place_object(y, x, 0L);
608+ current_floor_ptr->object_level = current_floor_ptr->base_level;
609+ }
610+ break;
610611 }
611- break;
612- }
613612
614613 }
615614 }
Show on old repository browser