• R/O
  • HTTP
  • SSH
  • HTTPS

hengband: Commit

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


Commit MetaInfo

Revisionbee50bec22fd6ff46186e2b4eb93c34a41f42b96 (tree)
Time2019-07-16 09:44:23
Authordeskull <deskull@user...>
Commiterdeskull

Log Message

[Refactor] #39076 冗長なコメントを削除 ('/* Open */' '/* Shut */')

Change Summary

Incremental Difference

--- a/src/files.c
+++ b/src/files.c
@@ -5312,7 +5312,6 @@ bool show_file(bool show_version, concptr name, concptr what, int line, BIT_FLAG
53125312 /* Access the "file" */
53135313 strcpy(path, name);
53145314
5315- /* Open */
53165315 fff = my_fopen(path, "r");
53175316 }
53185317
--- a/src/monster-status.c
+++ b/src/monster-status.c
@@ -268,7 +268,6 @@ bool set_monster_csleep(MONSTER_IDX m_idx, int v)
268268 bool notice = FALSE;
269269 v = (v > 10000) ? 10000 : (v < 0) ? 0 : v;
270270
271- /* Open */
272271 if (v)
273272 {
274273 if (!MON_CSLEEP(m_ptr))
@@ -278,7 +277,6 @@ bool set_monster_csleep(MONSTER_IDX m_idx, int v)
278277 }
279278 }
280279
281- /* Shut */
282280 else
283281 {
284282 if (MON_CSLEEP(m_ptr))
@@ -319,7 +317,6 @@ bool set_monster_fast(MONSTER_IDX m_idx, int v)
319317 bool notice = FALSE;
320318 v = (v > 200) ? 200 : (v < 0) ? 0 : v;
321319
322- /* Open */
323320 if (v)
324321 {
325322 if (!MON_FAST(m_ptr))
@@ -329,7 +326,6 @@ bool set_monster_fast(MONSTER_IDX m_idx, int v)
329326 }
330327 }
331328
332- /* Shut */
333329 else
334330 {
335331 if (MON_FAST(m_ptr))
@@ -359,7 +355,6 @@ bool set_monster_slow(MONSTER_IDX m_idx, int v)
359355 bool notice = FALSE;
360356 v = (v > 200) ? 200 : (v < 0) ? 0 : v;
361357
362- /* Open */
363358 if (v)
364359 {
365360 if (!MON_SLOW(m_ptr))
@@ -369,7 +364,6 @@ bool set_monster_slow(MONSTER_IDX m_idx, int v)
369364 }
370365 }
371366
372- /* Shut */
373367 else
374368 {
375369 if (MON_SLOW(m_ptr))
@@ -403,7 +397,6 @@ bool set_monster_stunned(MONSTER_IDX m_idx, int v)
403397 bool notice = FALSE;
404398 v = (v > 200) ? 200 : (v < 0) ? 0 : v;
405399
406- /* Open */
407400 if (v)
408401 {
409402 if (!MON_STUNNED(m_ptr))
@@ -413,7 +406,6 @@ bool set_monster_stunned(MONSTER_IDX m_idx, int v)
413406 }
414407 }
415408
416- /* Shut */
417409 else
418410 {
419411 if (MON_STUNNED(m_ptr))
@@ -443,7 +435,6 @@ bool set_monster_confused(MONSTER_IDX m_idx, int v)
443435 bool notice = FALSE;
444436 v = (v > 200) ? 200 : (v < 0) ? 0 : v;
445437
446- /* Open */
447438 if (v)
448439 {
449440 if (!MON_CONFUSED(m_ptr))
@@ -453,7 +444,6 @@ bool set_monster_confused(MONSTER_IDX m_idx, int v)
453444 }
454445 }
455446
456- /* Shut */
457447 else
458448 {
459449 if (MON_CONFUSED(m_ptr))
@@ -483,7 +473,6 @@ bool set_monster_monfear(MONSTER_IDX m_idx, int v)
483473 bool notice = FALSE;
484474 v = (v > 200) ? 200 : (v < 0) ? 0 : v;
485475
486- /* Open */
487476 if (v)
488477 {
489478 if (!MON_MONFEAR(m_ptr))
@@ -493,7 +482,6 @@ bool set_monster_monfear(MONSTER_IDX m_idx, int v)
493482 }
494483 }
495484
496- /* Shut */
497485 else
498486 {
499487 if (MON_MONFEAR(m_ptr))
@@ -533,7 +521,6 @@ bool set_monster_invulner(MONSTER_IDX m_idx, int v, bool energy_need)
533521 bool notice = FALSE;
534522 v = (v > 200) ? 200 : (v < 0) ? 0 : v;
535523
536- /* Open */
537524 if (v)
538525 {
539526 if (!MON_INVULNER(m_ptr))
@@ -543,7 +530,6 @@ bool set_monster_invulner(MONSTER_IDX m_idx, int v, bool energy_need)
543530 }
544531 }
545532
546- /* Shut */
547533 else
548534 {
549535 if (MON_INVULNER(m_ptr))
--- a/src/player-effects.c
+++ b/src/player-effects.c
@@ -368,7 +368,6 @@ bool set_mimic(player_type *creature_ptr, TIME_EFFECT v, MIMIC_RACE_IDX p, bool
368368
369369 if (creature_ptr->is_dead) return FALSE;
370370
371- /* Open */
372371 if (v)
373372 {
374373 if (creature_ptr->tim_mimic && (creature_ptr->mimic_form == p) && !do_dec)
@@ -383,7 +382,6 @@ bool set_mimic(player_type *creature_ptr, TIME_EFFECT v, MIMIC_RACE_IDX p, bool
383382 }
384383 }
385384
386- /* Shut */
387385 else
388386 {
389387 if (creature_ptr->tim_mimic)
@@ -428,7 +426,6 @@ bool set_blind(player_type *creature_ptr, TIME_EFFECT v)
428426
429427 if (creature_ptr->is_dead) return FALSE;
430428
431- /* Open */
432429 if (v)
433430 {
434431 if (!creature_ptr->blind)
@@ -447,7 +444,6 @@ bool set_blind(player_type *creature_ptr, TIME_EFFECT v)
447444 }
448445 }
449446
450- /* Shut */
451447 else
452448 {
453449 if (creature_ptr->blind)
@@ -494,7 +490,6 @@ bool set_confused(player_type *creature_ptr, TIME_EFFECT v)
494490
495491 if (creature_ptr->is_dead) return FALSE;
496492
497- /* Open */
498493 if (v)
499494 {
500495 if (!creature_ptr->confused)
@@ -540,7 +535,6 @@ bool set_confused(player_type *creature_ptr, TIME_EFFECT v)
540535 }
541536 }
542537
543- /* Shut */
544538 else
545539 {
546540 if (creature_ptr->confused)
@@ -576,7 +570,6 @@ bool set_poisoned(player_type *creature_ptr, TIME_EFFECT v)
576570
577571 if (creature_ptr->is_dead) return FALSE;
578572
579- /* Open */
580573 if (v)
581574 {
582575 if (!creature_ptr->poisoned)
@@ -586,7 +579,6 @@ bool set_poisoned(player_type *creature_ptr, TIME_EFFECT v)
586579 }
587580 }
588581
589- /* Shut */
590582 else
591583 {
592584 if (creature_ptr->poisoned)
@@ -621,7 +613,6 @@ bool set_afraid(player_type *creature_ptr, TIME_EFFECT v)
621613
622614 if (creature_ptr->is_dead) return FALSE;
623615
624- /* Open */
625616 if (v)
626617 {
627618 if (!creature_ptr->afraid)
@@ -645,7 +636,6 @@ bool set_afraid(player_type *creature_ptr, TIME_EFFECT v)
645636 }
646637 }
647638
648- /* Shut */
649639 else
650640 {
651641 if (creature_ptr->afraid)
@@ -679,7 +669,6 @@ bool set_paralyzed(player_type *creature_ptr, TIME_EFFECT v)
679669
680670 if (creature_ptr->is_dead) return FALSE;
681671
682- /* Open */
683672 if (v)
684673 {
685674 if (!creature_ptr->paralyzed)
@@ -696,7 +685,6 @@ bool set_paralyzed(player_type *creature_ptr, TIME_EFFECT v)
696685 }
697686 }
698687
699- /* Shut */
700688 else
701689 {
702690 if (creature_ptr->paralyzed)
@@ -733,7 +721,6 @@ bool set_image(player_type *creature_ptr, TIME_EFFECT v)
733721 if (creature_ptr->is_dead) return FALSE;
734722 if (creature_ptr->pseikaku == SEIKAKU_CHARGEMAN) v = 0;
735723
736- /* Open */
737724 if (v)
738725 {
739726 set_tsuyoshi(creature_ptr, 0, TRUE);
@@ -749,7 +736,6 @@ bool set_image(player_type *creature_ptr, TIME_EFFECT v)
749736 }
750737 }
751738
752- /* Shut */
753739 else
754740 {
755741 if (creature_ptr->image)
@@ -788,7 +774,6 @@ bool set_fast(player_type *creature_ptr, TIME_EFFECT v, bool do_dec)
788774
789775 if (creature_ptr->is_dead) return FALSE;
790776
791- /* Open */
792777 if (v)
793778 {
794779 if (creature_ptr->fast && !do_dec)
@@ -804,7 +789,6 @@ bool set_fast(player_type *creature_ptr, TIME_EFFECT v, bool do_dec)
804789 }
805790 }
806791
807- /* Shut */
808792 else
809793 {
810794 if (creature_ptr->fast && !creature_ptr->lightspeed && !music_singing(p_ptr, MUSIC_SPEED) && !music_singing(p_ptr, MUSIC_SHERO))
@@ -841,7 +825,6 @@ bool set_lightspeed(player_type *creature_ptr, TIME_EFFECT v, bool do_dec)
841825
842826 if (creature_ptr->wild_mode) v = 0;
843827
844- /* Open */
845828 if (v)
846829 {
847830 if (creature_ptr->lightspeed && !do_dec)
@@ -857,7 +840,6 @@ bool set_lightspeed(player_type *creature_ptr, TIME_EFFECT v, bool do_dec)
857840 }
858841 }
859842
860- /* Shut */
861843 else
862844 {
863845 if (creature_ptr->lightspeed)
@@ -892,7 +874,6 @@ bool set_slow(player_type *creature_ptr, TIME_EFFECT v, bool do_dec)
892874
893875 if (creature_ptr->is_dead) return FALSE;
894876
895- /* Open */
896877 if (v)
897878 {
898879 if (creature_ptr->slow && !do_dec)
@@ -906,7 +887,6 @@ bool set_slow(player_type *creature_ptr, TIME_EFFECT v, bool do_dec)
906887 }
907888 }
908889
909- /* Shut */
910890 else
911891 {
912892 if (creature_ptr->slow)
@@ -942,7 +922,6 @@ bool set_shield(player_type *creature_ptr, TIME_EFFECT v, bool do_dec)
942922
943923 if (creature_ptr->is_dead) return FALSE;
944924
945- /* Open */
946925 if (v)
947926 {
948927 if (creature_ptr->shield && !do_dec)
@@ -956,7 +935,6 @@ bool set_shield(player_type *creature_ptr, TIME_EFFECT v, bool do_dec)
956935 }
957936 }
958937
959- /* Shut */
960938 else
961939 {
962940 if (creature_ptr->shield)
@@ -993,7 +971,6 @@ bool set_tsubureru(player_type *creature_ptr, TIME_EFFECT v, bool do_dec)
993971
994972 if (creature_ptr->is_dead) return FALSE;
995973
996- /* Open */
997974 if (v)
998975 {
999976 if (creature_ptr->tsubureru && !do_dec)
@@ -1007,7 +984,6 @@ bool set_tsubureru(player_type *creature_ptr, TIME_EFFECT v, bool do_dec)
1007984 }
1008985 }
1009986
1010- /* Shut */
1011987 else
1012988 {
1013989 if (creature_ptr->tsubureru)
@@ -1044,7 +1020,6 @@ bool set_magicdef(player_type *creature_ptr, TIME_EFFECT v, bool do_dec)
10441020
10451021 if (creature_ptr->is_dead) return FALSE;
10461022
1047- /* Open */
10481023 if (v)
10491024 {
10501025 if (creature_ptr->magicdef && !do_dec)
@@ -1058,7 +1033,6 @@ bool set_magicdef(player_type *creature_ptr, TIME_EFFECT v, bool do_dec)
10581033 }
10591034 }
10601035
1061- /* Shut */
10621036 else
10631037 {
10641038 if (creature_ptr->magicdef)
@@ -1094,7 +1068,6 @@ bool set_blessed(player_type *creature_ptr, TIME_EFFECT v, bool do_dec)
10941068
10951069 if (creature_ptr->is_dead) return FALSE;
10961070
1097- /* Open */
10981071 if (v)
10991072 {
11001073 if (creature_ptr->blessed && !do_dec)
@@ -1108,7 +1081,6 @@ bool set_blessed(player_type *creature_ptr, TIME_EFFECT v, bool do_dec)
11081081 }
11091082 }
11101083
1111- /* Shut */
11121084 else
11131085 {
11141086 if (creature_ptr->blessed && !music_singing(p_ptr, MUSIC_BLESS))
@@ -1145,7 +1117,6 @@ bool set_hero(player_type *creature_ptr, TIME_EFFECT v, bool do_dec)
11451117
11461118 if (creature_ptr->is_dead) return FALSE;
11471119
1148- /* Open */
11491120 if (v)
11501121 {
11511122 if (creature_ptr->hero && !do_dec)
@@ -1159,7 +1130,6 @@ bool set_hero(player_type *creature_ptr, TIME_EFFECT v, bool do_dec)
11591130 }
11601131 }
11611132
1162- /* Shut */
11631133 else
11641134 {
11651135 if (creature_ptr->hero && !music_singing(p_ptr, MUSIC_HERO) && !music_singing(p_ptr, MUSIC_SHERO))
@@ -1199,7 +1169,6 @@ bool set_shero(player_type *creature_ptr, TIME_EFFECT v, bool do_dec)
11991169 if (creature_ptr->is_dead) return FALSE;
12001170
12011171 if (creature_ptr->pclass == CLASS_BERSERKER) v = 1;
1202- /* Open */
12031172 if (v)
12041173 {
12051174 if (creature_ptr->shero && !do_dec)
@@ -1213,7 +1182,6 @@ bool set_shero(player_type *creature_ptr, TIME_EFFECT v, bool do_dec)
12131182 }
12141183 }
12151184
1216- /* Shut */
12171185 else
12181186 {
12191187 if (creature_ptr->shero)
@@ -1252,7 +1220,6 @@ bool set_protevil(player_type *creature_ptr, TIME_EFFECT v, bool do_dec)
12521220
12531221 if (creature_ptr->is_dead) return FALSE;
12541222
1255- /* Open */
12561223 if (v)
12571224 {
12581225 if (creature_ptr->protevil && !do_dec)
@@ -1266,7 +1233,6 @@ bool set_protevil(player_type *creature_ptr, TIME_EFFECT v, bool do_dec)
12661233 }
12671234 }
12681235
1269- /* Shut */
12701236 else
12711237 {
12721238 if (creature_ptr->protevil)
@@ -1301,7 +1267,6 @@ bool set_wraith_form(player_type *creature_ptr, TIME_EFFECT v, bool do_dec)
13011267
13021268 if (creature_ptr->is_dead) return FALSE;
13031269
1304- /* Open */
13051270 if (v)
13061271 {
13071272 if (creature_ptr->wraith_form && !do_dec)
@@ -1324,7 +1289,6 @@ bool set_wraith_form(player_type *creature_ptr, TIME_EFFECT v, bool do_dec)
13241289 }
13251290 }
13261291
1327- /* Shut */
13281292 else
13291293 {
13301294 if (creature_ptr->wraith_form)
@@ -1366,7 +1330,6 @@ bool set_invuln(player_type *creature_ptr, TIME_EFFECT v, bool do_dec)
13661330
13671331 if (creature_ptr->is_dead) return FALSE;
13681332
1369- /* Open */
13701333 if (v)
13711334 {
13721335 if (creature_ptr->invuln && !do_dec)
@@ -1390,7 +1353,6 @@ bool set_invuln(player_type *creature_ptr, TIME_EFFECT v, bool do_dec)
13901353 }
13911354 }
13921355
1393- /* Shut */
13941356 else
13951357 {
13961358 if (creature_ptr->invuln && !music_singing(p_ptr, MUSIC_INVULN))
@@ -1433,7 +1395,6 @@ bool set_tim_esp(player_type *creature_ptr, TIME_EFFECT v, bool do_dec)
14331395
14341396 if (creature_ptr->is_dead) return FALSE;
14351397
1436- /* Open */
14371398 if (v)
14381399 {
14391400 if (creature_ptr->tim_esp && !do_dec)
@@ -1447,7 +1408,6 @@ bool set_tim_esp(player_type *creature_ptr, TIME_EFFECT v, bool do_dec)
14471408 }
14481409 }
14491410
1450- /* Shut */
14511411 else
14521412 {
14531413 if (creature_ptr->tim_esp && !music_singing(p_ptr, MUSIC_MIND))
@@ -1484,7 +1444,6 @@ bool set_tim_invis(player_type *creature_ptr, TIME_EFFECT v, bool do_dec)
14841444
14851445 if (creature_ptr->is_dead) return FALSE;
14861446
1487- /* Open */
14881447 if (v)
14891448 {
14901449 if (creature_ptr->tim_invis && !do_dec)
@@ -1498,7 +1457,6 @@ bool set_tim_invis(player_type *creature_ptr, TIME_EFFECT v, bool do_dec)
14981457 }
14991458 }
15001459
1501- /* Shut */
15021460 else
15031461 {
15041462 if (creature_ptr->tim_invis)
@@ -1537,7 +1495,6 @@ bool set_tim_infra(player_type *creature_ptr, TIME_EFFECT v, bool do_dec)
15371495
15381496 if (creature_ptr->is_dead) return FALSE;
15391497
1540- /* Open */
15411498 if (v)
15421499 {
15431500 if (creature_ptr->tim_infra && !do_dec)
@@ -1551,7 +1508,6 @@ bool set_tim_infra(player_type *creature_ptr, TIME_EFFECT v, bool do_dec)
15511508 }
15521509 }
15531510
1554- /* Shut */
15551511 else
15561512 {
15571513 if (creature_ptr->tim_infra)
@@ -1590,7 +1546,6 @@ bool set_tim_regen(player_type *creature_ptr, TIME_EFFECT v, bool do_dec)
15901546
15911547 if (creature_ptr->is_dead) return FALSE;
15921548
1593- /* Open */
15941549 if (v)
15951550 {
15961551 if (creature_ptr->tim_regen && !do_dec)
@@ -1604,7 +1559,6 @@ bool set_tim_regen(player_type *creature_ptr, TIME_EFFECT v, bool do_dec)
16041559 }
16051560 }
16061561
1607- /* Shut */
16081562 else
16091563 {
16101564 if (creature_ptr->tim_regen)
@@ -1640,7 +1594,6 @@ bool set_tim_stealth(player_type *creature_ptr, TIME_EFFECT v, bool do_dec)
16401594
16411595 if (creature_ptr->is_dead) return FALSE;
16421596
1643- /* Open */
16441597 if (v)
16451598 {
16461599 if (creature_ptr->tim_stealth && !do_dec)
@@ -1654,7 +1607,6 @@ bool set_tim_stealth(player_type *creature_ptr, TIME_EFFECT v, bool do_dec)
16541607 }
16551608 }
16561609
1657- /* Shut */
16581610 else
16591611 {
16601612 if (creature_ptr->tim_stealth && !music_singing(p_ptr, MUSIC_STEALTH))
@@ -1688,7 +1640,6 @@ bool set_superstealth(player_type *creature_ptr, bool set)
16881640
16891641 if (creature_ptr->is_dead) return FALSE;
16901642
1691- /* Open */
16921643 if (set)
16931644 {
16941645 if (!(creature_ptr->special_defense & NINJA_S_STEALTH))
@@ -1711,7 +1662,6 @@ bool set_superstealth(player_type *creature_ptr, bool set)
17111662 }
17121663 }
17131664
1714- /* Shut */
17151665 else
17161666 {
17171667 if (creature_ptr->special_defense & NINJA_S_STEALTH)
@@ -1745,7 +1695,6 @@ bool set_tim_levitation(player_type *creature_ptr, TIME_EFFECT v, bool do_dec)
17451695
17461696 if (creature_ptr->is_dead) return FALSE;
17471697
1748- /* Open */
17491698 if (v)
17501699 {
17511700 if (creature_ptr->tim_levitation && !do_dec)
@@ -1759,7 +1708,6 @@ bool set_tim_levitation(player_type *creature_ptr, TIME_EFFECT v, bool do_dec)
17591708 }
17601709 }
17611710
1762- /* Shut */
17631711 else
17641712 {
17651713 if (creature_ptr->tim_levitation)
@@ -1795,7 +1743,6 @@ bool set_tim_sh_touki(player_type *creature_ptr, TIME_EFFECT v, bool do_dec)
17951743
17961744 if (creature_ptr->is_dead) return FALSE;
17971745
1798- /* Open */
17991746 if (v)
18001747 {
18011748 if (creature_ptr->tim_sh_touki && !do_dec)
@@ -1809,7 +1756,6 @@ bool set_tim_sh_touki(player_type *creature_ptr, TIME_EFFECT v, bool do_dec)
18091756 }
18101757 }
18111758
1812- /* Shut */
18131759 else
18141760 {
18151761 if (creature_ptr->tim_sh_touki)
@@ -1844,7 +1790,6 @@ bool set_tim_sh_fire(player_type *creature_ptr, TIME_EFFECT v, bool do_dec)
18441790
18451791 if (creature_ptr->is_dead) return FALSE;
18461792
1847- /* Open */
18481793 if (v)
18491794 {
18501795 if (creature_ptr->tim_sh_fire && !do_dec)
@@ -1858,7 +1803,6 @@ bool set_tim_sh_fire(player_type *creature_ptr, TIME_EFFECT v, bool do_dec)
18581803 }
18591804 }
18601805
1861- /* Shut */
18621806 else
18631807 {
18641808 if (creature_ptr->tim_sh_fire)
@@ -1894,7 +1838,6 @@ bool set_tim_sh_holy(player_type *creature_ptr, TIME_EFFECT v, bool do_dec)
18941838
18951839 if (creature_ptr->is_dead) return FALSE;
18961840
1897- /* Open */
18981841 if (v)
18991842 {
19001843 if (creature_ptr->tim_sh_holy && !do_dec)
@@ -1908,7 +1851,6 @@ bool set_tim_sh_holy(player_type *creature_ptr, TIME_EFFECT v, bool do_dec)
19081851 }
19091852 }
19101853
1911- /* Shut */
19121854 else
19131855 {
19141856 if (creature_ptr->tim_sh_holy)
@@ -1944,7 +1886,6 @@ bool set_tim_eyeeye(player_type *creature_ptr, TIME_EFFECT v, bool do_dec)
19441886
19451887 if (creature_ptr->is_dead) return FALSE;
19461888
1947- /* Open */
19481889 if (v)
19491890 {
19501891 if (creature_ptr->tim_eyeeye && !do_dec)
@@ -1958,7 +1899,6 @@ bool set_tim_eyeeye(player_type *creature_ptr, TIME_EFFECT v, bool do_dec)
19581899 }
19591900 }
19601901
1961- /* Shut */
19621902 else
19631903 {
19641904 if (creature_ptr->tim_eyeeye)
@@ -1995,7 +1935,6 @@ bool set_resist_magic(player_type *creature_ptr, TIME_EFFECT v, bool do_dec)
19951935
19961936 if (creature_ptr->is_dead) return FALSE;
19971937
1998- /* Open */
19991938 if (v)
20001939 {
20011940 if (creature_ptr->resist_magic && !do_dec)
@@ -2009,7 +1948,6 @@ bool set_resist_magic(player_type *creature_ptr, TIME_EFFECT v, bool do_dec)
20091948 }
20101949 }
20111950
2012- /* Shut */
20131951 else
20141952 {
20151953 if (creature_ptr->resist_magic)
@@ -2045,7 +1983,6 @@ bool set_tim_reflect(player_type *creature_ptr, TIME_EFFECT v, bool do_dec)
20451983
20461984 if (creature_ptr->is_dead) return FALSE;
20471985
2048- /* Open */
20491986 if (v)
20501987 {
20511988 if (creature_ptr->tim_reflect && !do_dec)
@@ -2059,7 +1996,6 @@ bool set_tim_reflect(player_type *creature_ptr, TIME_EFFECT v, bool do_dec)
20591996 }
20601997 }
20611998
2062- /* Shut */
20631999 else
20642000 {
20652001 if (creature_ptr->tim_reflect)
@@ -2093,7 +2029,6 @@ bool set_multishadow(player_type *creature_ptr, TIME_EFFECT v, bool do_dec)
20932029
20942030 if (creature_ptr->is_dead) return FALSE;
20952031
2096- /* Open */
20972032 if (v)
20982033 {
20992034 if (creature_ptr->multishadow && !do_dec)
@@ -2107,7 +2042,6 @@ bool set_multishadow(player_type *creature_ptr, TIME_EFFECT v, bool do_dec)
21072042 }
21082043 }
21092044
2110- /* Shut */
21112045 else
21122046 {
21132047 if (creature_ptr->multishadow)
@@ -2143,7 +2077,6 @@ bool set_dustrobe(player_type *creature_ptr, TIME_EFFECT v, bool do_dec)
21432077
21442078 if (creature_ptr->is_dead) return FALSE;
21452079
2146- /* Open */
21472080 if (v)
21482081 {
21492082 if (creature_ptr->dustrobe && !do_dec)
@@ -2157,7 +2090,6 @@ bool set_dustrobe(player_type *creature_ptr, TIME_EFFECT v, bool do_dec)
21572090 }
21582091 }
21592092
2160- /* Shut */
21612093 else
21622094 {
21632095 if (creature_ptr->dustrobe)
@@ -2193,7 +2125,6 @@ bool set_kabenuke(player_type *creature_ptr, TIME_EFFECT v, bool do_dec)
21932125
21942126 if (creature_ptr->is_dead) return FALSE;
21952127
2196- /* Open */
21972128 if (v)
21982129 {
21992130 if (creature_ptr->kabenuke && !do_dec)
@@ -2207,7 +2138,6 @@ bool set_kabenuke(player_type *creature_ptr, TIME_EFFECT v, bool do_dec)
22072138 }
22082139 }
22092140
2210- /* Shut */
22112141 else
22122142 {
22132143 if (creature_ptr->kabenuke)
@@ -2243,7 +2173,6 @@ bool set_tsuyoshi(player_type *creature_ptr, TIME_EFFECT v, bool do_dec)
22432173
22442174 if (creature_ptr->is_dead) return FALSE;
22452175
2246- /* Open */
22472176 if (v)
22482177 {
22492178 if (creature_ptr->tsuyoshi && !do_dec)
@@ -2258,7 +2187,6 @@ bool set_tsuyoshi(player_type *creature_ptr, TIME_EFFECT v, bool do_dec)
22582187 }
22592188 }
22602189
2261- /* Shut */
22622190 else
22632191 {
22642192 if (creature_ptr->tsuyoshi)
@@ -2437,7 +2365,6 @@ bool set_oppose_acid(player_type *creature_ptr, TIME_EFFECT v, bool do_dec)
24372365
24382366 if (creature_ptr->is_dead) return FALSE;
24392367
2440- /* Open */
24412368 if (v)
24422369 {
24432370 if (creature_ptr->oppose_acid && !do_dec)
@@ -2451,7 +2378,6 @@ bool set_oppose_acid(player_type *creature_ptr, TIME_EFFECT v, bool do_dec)
24512378 }
24522379 }
24532380
2454- /* Shut */
24552381 else
24562382 {
24572383 if (creature_ptr->oppose_acid && !music_singing(p_ptr, MUSIC_RESIST) && !(creature_ptr->special_defense & KATA_MUSOU))
@@ -2486,7 +2412,6 @@ bool set_oppose_elec(player_type *creature_ptr, TIME_EFFECT v, bool do_dec)
24862412
24872413 if (creature_ptr->is_dead) return FALSE;
24882414
2489- /* Open */
24902415 if (v)
24912416 {
24922417 if (creature_ptr->oppose_elec && !do_dec)
@@ -2500,7 +2425,6 @@ bool set_oppose_elec(player_type *creature_ptr, TIME_EFFECT v, bool do_dec)
25002425 }
25012426 }
25022427
2503- /* Shut */
25042428 else
25052429 {
25062430 if (creature_ptr->oppose_elec && !music_singing(p_ptr, MUSIC_RESIST) && !(creature_ptr->special_defense & KATA_MUSOU))
@@ -2536,7 +2460,6 @@ bool set_oppose_fire(player_type *creature_ptr, TIME_EFFECT v, bool do_dec)
25362460 if (creature_ptr->is_dead) return FALSE;
25372461
25382462 if ((PRACE_IS_(creature_ptr, RACE_DEMON) && (creature_ptr->lev > 44)) || (creature_ptr->mimic_form == MIMIC_DEMON)) v = 1;
2539- /* Open */
25402463 if (v)
25412464 {
25422465 if (creature_ptr->oppose_fire && !do_dec)
@@ -2550,7 +2473,6 @@ bool set_oppose_fire(player_type *creature_ptr, TIME_EFFECT v, bool do_dec)
25502473 }
25512474 }
25522475
2553- /* Shut */
25542476 else
25552477 {
25562478 if (creature_ptr->oppose_fire && !music_singing(p_ptr, MUSIC_RESIST) && !(creature_ptr->special_defense & KATA_MUSOU))
@@ -2585,7 +2507,6 @@ bool set_oppose_cold(player_type *creature_ptr, TIME_EFFECT v, bool do_dec)
25852507
25862508 if (creature_ptr->is_dead) return FALSE;
25872509
2588- /* Open */
25892510 if (v)
25902511 {
25912512 if (creature_ptr->oppose_cold && !do_dec)
@@ -2599,7 +2520,6 @@ bool set_oppose_cold(player_type *creature_ptr, TIME_EFFECT v, bool do_dec)
25992520 }
26002521 }
26012522
2602- /* Shut */
26032523 else
26042524 {
26052525 if (creature_ptr->oppose_cold && !music_singing(p_ptr, MUSIC_RESIST) && !(creature_ptr->special_defense & KATA_MUSOU))
@@ -2635,7 +2555,6 @@ bool set_oppose_pois(player_type *creature_ptr, TIME_EFFECT v, bool do_dec)
26352555 if ((creature_ptr->pclass == CLASS_NINJA) && (creature_ptr->lev > 44)) v = 1;
26362556 if (creature_ptr->is_dead) return FALSE;
26372557
2638- /* Open */
26392558 if (v)
26402559 {
26412560 if (creature_ptr->oppose_pois && !do_dec)
@@ -2649,7 +2568,6 @@ bool set_oppose_pois(player_type *creature_ptr, TIME_EFFECT v, bool do_dec)
26492568 }
26502569 }
26512570
2652- /* Shut */
26532571 else
26542572 {
26552573 if (creature_ptr->oppose_pois && !music_singing(p_ptr, MUSIC_RESIST) && !(creature_ptr->special_defense & KATA_MUSOU))
@@ -4081,7 +3999,6 @@ bool set_ultimate_res(player_type *creature_ptr, TIME_EFFECT v, bool do_dec)
40813999
40824000 if (creature_ptr->is_dead) return FALSE;
40834001
4084- /* Open */
40854002 if (v)
40864003 {
40874004 if (creature_ptr->ult_res && !do_dec)
@@ -4095,7 +4012,6 @@ bool set_ultimate_res(player_type *creature_ptr, TIME_EFFECT v, bool do_dec)
40954012 }
40964013 }
40974014
4098- /* Shut */
40994015 else
41004016 {
41014017 if (creature_ptr->ult_res)
@@ -4125,7 +4041,6 @@ bool set_tim_res_nether(player_type *creature_ptr, TIME_EFFECT v, bool do_dec)
41254041
41264042 if (creature_ptr->is_dead) return FALSE;
41274043
4128- /* Open */
41294044 if (v)
41304045 {
41314046 if (creature_ptr->tim_res_nether && !do_dec)
@@ -4139,7 +4054,6 @@ bool set_tim_res_nether(player_type *creature_ptr, TIME_EFFECT v, bool do_dec)
41394054 }
41404055 }
41414056
4142- /* Shut */
41434057 else
41444058 {
41454059 if (creature_ptr->tim_res_nether)
@@ -4169,7 +4083,6 @@ bool set_tim_res_time(player_type *creature_ptr, TIME_EFFECT v, bool do_dec)
41694083
41704084 if (creature_ptr->is_dead) return FALSE;
41714085
4172- /* Open */
41734086 if (v)
41744087 {
41754088 if (creature_ptr->tim_res_time && !do_dec)
@@ -4183,7 +4096,6 @@ bool set_tim_res_time(player_type *creature_ptr, TIME_EFFECT v, bool do_dec)
41834096 }
41844097 }
41854098
4186- /* Shut */
41874099 else
41884100 {
41894101 if (creature_ptr->tim_res_time)
Show on old repository browser