変愚蛮怒のメインリポジトリです
Revision | bee50bec22fd6ff46186e2b4eb93c34a41f42b96 (tree) |
---|---|
Time | 2019-07-16 09:44:23 |
Author | deskull <deskull@user...> |
Commiter | deskull |
[Refactor] #39076 冗長なコメントを削除 ('/* Open */' '/* Shut */')
@@ -5312,7 +5312,6 @@ bool show_file(bool show_version, concptr name, concptr what, int line, BIT_FLAG | ||
5312 | 5312 | /* Access the "file" */ |
5313 | 5313 | strcpy(path, name); |
5314 | 5314 | |
5315 | - /* Open */ | |
5316 | 5315 | fff = my_fopen(path, "r"); |
5317 | 5316 | } |
5318 | 5317 |
@@ -268,7 +268,6 @@ bool set_monster_csleep(MONSTER_IDX m_idx, int v) | ||
268 | 268 | bool notice = FALSE; |
269 | 269 | v = (v > 10000) ? 10000 : (v < 0) ? 0 : v; |
270 | 270 | |
271 | - /* Open */ | |
272 | 271 | if (v) |
273 | 272 | { |
274 | 273 | if (!MON_CSLEEP(m_ptr)) |
@@ -278,7 +277,6 @@ bool set_monster_csleep(MONSTER_IDX m_idx, int v) | ||
278 | 277 | } |
279 | 278 | } |
280 | 279 | |
281 | - /* Shut */ | |
282 | 280 | else |
283 | 281 | { |
284 | 282 | if (MON_CSLEEP(m_ptr)) |
@@ -319,7 +317,6 @@ bool set_monster_fast(MONSTER_IDX m_idx, int v) | ||
319 | 317 | bool notice = FALSE; |
320 | 318 | v = (v > 200) ? 200 : (v < 0) ? 0 : v; |
321 | 319 | |
322 | - /* Open */ | |
323 | 320 | if (v) |
324 | 321 | { |
325 | 322 | if (!MON_FAST(m_ptr)) |
@@ -329,7 +326,6 @@ bool set_monster_fast(MONSTER_IDX m_idx, int v) | ||
329 | 326 | } |
330 | 327 | } |
331 | 328 | |
332 | - /* Shut */ | |
333 | 329 | else |
334 | 330 | { |
335 | 331 | if (MON_FAST(m_ptr)) |
@@ -359,7 +355,6 @@ bool set_monster_slow(MONSTER_IDX m_idx, int v) | ||
359 | 355 | bool notice = FALSE; |
360 | 356 | v = (v > 200) ? 200 : (v < 0) ? 0 : v; |
361 | 357 | |
362 | - /* Open */ | |
363 | 358 | if (v) |
364 | 359 | { |
365 | 360 | if (!MON_SLOW(m_ptr)) |
@@ -369,7 +364,6 @@ bool set_monster_slow(MONSTER_IDX m_idx, int v) | ||
369 | 364 | } |
370 | 365 | } |
371 | 366 | |
372 | - /* Shut */ | |
373 | 367 | else |
374 | 368 | { |
375 | 369 | if (MON_SLOW(m_ptr)) |
@@ -403,7 +397,6 @@ bool set_monster_stunned(MONSTER_IDX m_idx, int v) | ||
403 | 397 | bool notice = FALSE; |
404 | 398 | v = (v > 200) ? 200 : (v < 0) ? 0 : v; |
405 | 399 | |
406 | - /* Open */ | |
407 | 400 | if (v) |
408 | 401 | { |
409 | 402 | if (!MON_STUNNED(m_ptr)) |
@@ -413,7 +406,6 @@ bool set_monster_stunned(MONSTER_IDX m_idx, int v) | ||
413 | 406 | } |
414 | 407 | } |
415 | 408 | |
416 | - /* Shut */ | |
417 | 409 | else |
418 | 410 | { |
419 | 411 | if (MON_STUNNED(m_ptr)) |
@@ -443,7 +435,6 @@ bool set_monster_confused(MONSTER_IDX m_idx, int v) | ||
443 | 435 | bool notice = FALSE; |
444 | 436 | v = (v > 200) ? 200 : (v < 0) ? 0 : v; |
445 | 437 | |
446 | - /* Open */ | |
447 | 438 | if (v) |
448 | 439 | { |
449 | 440 | if (!MON_CONFUSED(m_ptr)) |
@@ -453,7 +444,6 @@ bool set_monster_confused(MONSTER_IDX m_idx, int v) | ||
453 | 444 | } |
454 | 445 | } |
455 | 446 | |
456 | - /* Shut */ | |
457 | 447 | else |
458 | 448 | { |
459 | 449 | if (MON_CONFUSED(m_ptr)) |
@@ -483,7 +473,6 @@ bool set_monster_monfear(MONSTER_IDX m_idx, int v) | ||
483 | 473 | bool notice = FALSE; |
484 | 474 | v = (v > 200) ? 200 : (v < 0) ? 0 : v; |
485 | 475 | |
486 | - /* Open */ | |
487 | 476 | if (v) |
488 | 477 | { |
489 | 478 | if (!MON_MONFEAR(m_ptr)) |
@@ -493,7 +482,6 @@ bool set_monster_monfear(MONSTER_IDX m_idx, int v) | ||
493 | 482 | } |
494 | 483 | } |
495 | 484 | |
496 | - /* Shut */ | |
497 | 485 | else |
498 | 486 | { |
499 | 487 | if (MON_MONFEAR(m_ptr)) |
@@ -533,7 +521,6 @@ bool set_monster_invulner(MONSTER_IDX m_idx, int v, bool energy_need) | ||
533 | 521 | bool notice = FALSE; |
534 | 522 | v = (v > 200) ? 200 : (v < 0) ? 0 : v; |
535 | 523 | |
536 | - /* Open */ | |
537 | 524 | if (v) |
538 | 525 | { |
539 | 526 | if (!MON_INVULNER(m_ptr)) |
@@ -543,7 +530,6 @@ bool set_monster_invulner(MONSTER_IDX m_idx, int v, bool energy_need) | ||
543 | 530 | } |
544 | 531 | } |
545 | 532 | |
546 | - /* Shut */ | |
547 | 533 | else |
548 | 534 | { |
549 | 535 | if (MON_INVULNER(m_ptr)) |
@@ -368,7 +368,6 @@ bool set_mimic(player_type *creature_ptr, TIME_EFFECT v, MIMIC_RACE_IDX p, bool | ||
368 | 368 | |
369 | 369 | if (creature_ptr->is_dead) return FALSE; |
370 | 370 | |
371 | - /* Open */ | |
372 | 371 | if (v) |
373 | 372 | { |
374 | 373 | 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 | ||
383 | 382 | } |
384 | 383 | } |
385 | 384 | |
386 | - /* Shut */ | |
387 | 385 | else |
388 | 386 | { |
389 | 387 | if (creature_ptr->tim_mimic) |
@@ -428,7 +426,6 @@ bool set_blind(player_type *creature_ptr, TIME_EFFECT v) | ||
428 | 426 | |
429 | 427 | if (creature_ptr->is_dead) return FALSE; |
430 | 428 | |
431 | - /* Open */ | |
432 | 429 | if (v) |
433 | 430 | { |
434 | 431 | if (!creature_ptr->blind) |
@@ -447,7 +444,6 @@ bool set_blind(player_type *creature_ptr, TIME_EFFECT v) | ||
447 | 444 | } |
448 | 445 | } |
449 | 446 | |
450 | - /* Shut */ | |
451 | 447 | else |
452 | 448 | { |
453 | 449 | if (creature_ptr->blind) |
@@ -494,7 +490,6 @@ bool set_confused(player_type *creature_ptr, TIME_EFFECT v) | ||
494 | 490 | |
495 | 491 | if (creature_ptr->is_dead) return FALSE; |
496 | 492 | |
497 | - /* Open */ | |
498 | 493 | if (v) |
499 | 494 | { |
500 | 495 | if (!creature_ptr->confused) |
@@ -540,7 +535,6 @@ bool set_confused(player_type *creature_ptr, TIME_EFFECT v) | ||
540 | 535 | } |
541 | 536 | } |
542 | 537 | |
543 | - /* Shut */ | |
544 | 538 | else |
545 | 539 | { |
546 | 540 | if (creature_ptr->confused) |
@@ -576,7 +570,6 @@ bool set_poisoned(player_type *creature_ptr, TIME_EFFECT v) | ||
576 | 570 | |
577 | 571 | if (creature_ptr->is_dead) return FALSE; |
578 | 572 | |
579 | - /* Open */ | |
580 | 573 | if (v) |
581 | 574 | { |
582 | 575 | if (!creature_ptr->poisoned) |
@@ -586,7 +579,6 @@ bool set_poisoned(player_type *creature_ptr, TIME_EFFECT v) | ||
586 | 579 | } |
587 | 580 | } |
588 | 581 | |
589 | - /* Shut */ | |
590 | 582 | else |
591 | 583 | { |
592 | 584 | if (creature_ptr->poisoned) |
@@ -621,7 +613,6 @@ bool set_afraid(player_type *creature_ptr, TIME_EFFECT v) | ||
621 | 613 | |
622 | 614 | if (creature_ptr->is_dead) return FALSE; |
623 | 615 | |
624 | - /* Open */ | |
625 | 616 | if (v) |
626 | 617 | { |
627 | 618 | if (!creature_ptr->afraid) |
@@ -645,7 +636,6 @@ bool set_afraid(player_type *creature_ptr, TIME_EFFECT v) | ||
645 | 636 | } |
646 | 637 | } |
647 | 638 | |
648 | - /* Shut */ | |
649 | 639 | else |
650 | 640 | { |
651 | 641 | if (creature_ptr->afraid) |
@@ -679,7 +669,6 @@ bool set_paralyzed(player_type *creature_ptr, TIME_EFFECT v) | ||
679 | 669 | |
680 | 670 | if (creature_ptr->is_dead) return FALSE; |
681 | 671 | |
682 | - /* Open */ | |
683 | 672 | if (v) |
684 | 673 | { |
685 | 674 | if (!creature_ptr->paralyzed) |
@@ -696,7 +685,6 @@ bool set_paralyzed(player_type *creature_ptr, TIME_EFFECT v) | ||
696 | 685 | } |
697 | 686 | } |
698 | 687 | |
699 | - /* Shut */ | |
700 | 688 | else |
701 | 689 | { |
702 | 690 | if (creature_ptr->paralyzed) |
@@ -733,7 +721,6 @@ bool set_image(player_type *creature_ptr, TIME_EFFECT v) | ||
733 | 721 | if (creature_ptr->is_dead) return FALSE; |
734 | 722 | if (creature_ptr->pseikaku == SEIKAKU_CHARGEMAN) v = 0; |
735 | 723 | |
736 | - /* Open */ | |
737 | 724 | if (v) |
738 | 725 | { |
739 | 726 | set_tsuyoshi(creature_ptr, 0, TRUE); |
@@ -749,7 +736,6 @@ bool set_image(player_type *creature_ptr, TIME_EFFECT v) | ||
749 | 736 | } |
750 | 737 | } |
751 | 738 | |
752 | - /* Shut */ | |
753 | 739 | else |
754 | 740 | { |
755 | 741 | if (creature_ptr->image) |
@@ -788,7 +774,6 @@ bool set_fast(player_type *creature_ptr, TIME_EFFECT v, bool do_dec) | ||
788 | 774 | |
789 | 775 | if (creature_ptr->is_dead) return FALSE; |
790 | 776 | |
791 | - /* Open */ | |
792 | 777 | if (v) |
793 | 778 | { |
794 | 779 | if (creature_ptr->fast && !do_dec) |
@@ -804,7 +789,6 @@ bool set_fast(player_type *creature_ptr, TIME_EFFECT v, bool do_dec) | ||
804 | 789 | } |
805 | 790 | } |
806 | 791 | |
807 | - /* Shut */ | |
808 | 792 | else |
809 | 793 | { |
810 | 794 | 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) | ||
841 | 825 | |
842 | 826 | if (creature_ptr->wild_mode) v = 0; |
843 | 827 | |
844 | - /* Open */ | |
845 | 828 | if (v) |
846 | 829 | { |
847 | 830 | if (creature_ptr->lightspeed && !do_dec) |
@@ -857,7 +840,6 @@ bool set_lightspeed(player_type *creature_ptr, TIME_EFFECT v, bool do_dec) | ||
857 | 840 | } |
858 | 841 | } |
859 | 842 | |
860 | - /* Shut */ | |
861 | 843 | else |
862 | 844 | { |
863 | 845 | if (creature_ptr->lightspeed) |
@@ -892,7 +874,6 @@ bool set_slow(player_type *creature_ptr, TIME_EFFECT v, bool do_dec) | ||
892 | 874 | |
893 | 875 | if (creature_ptr->is_dead) return FALSE; |
894 | 876 | |
895 | - /* Open */ | |
896 | 877 | if (v) |
897 | 878 | { |
898 | 879 | if (creature_ptr->slow && !do_dec) |
@@ -906,7 +887,6 @@ bool set_slow(player_type *creature_ptr, TIME_EFFECT v, bool do_dec) | ||
906 | 887 | } |
907 | 888 | } |
908 | 889 | |
909 | - /* Shut */ | |
910 | 890 | else |
911 | 891 | { |
912 | 892 | if (creature_ptr->slow) |
@@ -942,7 +922,6 @@ bool set_shield(player_type *creature_ptr, TIME_EFFECT v, bool do_dec) | ||
942 | 922 | |
943 | 923 | if (creature_ptr->is_dead) return FALSE; |
944 | 924 | |
945 | - /* Open */ | |
946 | 925 | if (v) |
947 | 926 | { |
948 | 927 | if (creature_ptr->shield && !do_dec) |
@@ -956,7 +935,6 @@ bool set_shield(player_type *creature_ptr, TIME_EFFECT v, bool do_dec) | ||
956 | 935 | } |
957 | 936 | } |
958 | 937 | |
959 | - /* Shut */ | |
960 | 938 | else |
961 | 939 | { |
962 | 940 | if (creature_ptr->shield) |
@@ -993,7 +971,6 @@ bool set_tsubureru(player_type *creature_ptr, TIME_EFFECT v, bool do_dec) | ||
993 | 971 | |
994 | 972 | if (creature_ptr->is_dead) return FALSE; |
995 | 973 | |
996 | - /* Open */ | |
997 | 974 | if (v) |
998 | 975 | { |
999 | 976 | if (creature_ptr->tsubureru && !do_dec) |
@@ -1007,7 +984,6 @@ bool set_tsubureru(player_type *creature_ptr, TIME_EFFECT v, bool do_dec) | ||
1007 | 984 | } |
1008 | 985 | } |
1009 | 986 | |
1010 | - /* Shut */ | |
1011 | 987 | else |
1012 | 988 | { |
1013 | 989 | if (creature_ptr->tsubureru) |
@@ -1044,7 +1020,6 @@ bool set_magicdef(player_type *creature_ptr, TIME_EFFECT v, bool do_dec) | ||
1044 | 1020 | |
1045 | 1021 | if (creature_ptr->is_dead) return FALSE; |
1046 | 1022 | |
1047 | - /* Open */ | |
1048 | 1023 | if (v) |
1049 | 1024 | { |
1050 | 1025 | if (creature_ptr->magicdef && !do_dec) |
@@ -1058,7 +1033,6 @@ bool set_magicdef(player_type *creature_ptr, TIME_EFFECT v, bool do_dec) | ||
1058 | 1033 | } |
1059 | 1034 | } |
1060 | 1035 | |
1061 | - /* Shut */ | |
1062 | 1036 | else |
1063 | 1037 | { |
1064 | 1038 | if (creature_ptr->magicdef) |
@@ -1094,7 +1068,6 @@ bool set_blessed(player_type *creature_ptr, TIME_EFFECT v, bool do_dec) | ||
1094 | 1068 | |
1095 | 1069 | if (creature_ptr->is_dead) return FALSE; |
1096 | 1070 | |
1097 | - /* Open */ | |
1098 | 1071 | if (v) |
1099 | 1072 | { |
1100 | 1073 | if (creature_ptr->blessed && !do_dec) |
@@ -1108,7 +1081,6 @@ bool set_blessed(player_type *creature_ptr, TIME_EFFECT v, bool do_dec) | ||
1108 | 1081 | } |
1109 | 1082 | } |
1110 | 1083 | |
1111 | - /* Shut */ | |
1112 | 1084 | else |
1113 | 1085 | { |
1114 | 1086 | 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) | ||
1145 | 1117 | |
1146 | 1118 | if (creature_ptr->is_dead) return FALSE; |
1147 | 1119 | |
1148 | - /* Open */ | |
1149 | 1120 | if (v) |
1150 | 1121 | { |
1151 | 1122 | if (creature_ptr->hero && !do_dec) |
@@ -1159,7 +1130,6 @@ bool set_hero(player_type *creature_ptr, TIME_EFFECT v, bool do_dec) | ||
1159 | 1130 | } |
1160 | 1131 | } |
1161 | 1132 | |
1162 | - /* Shut */ | |
1163 | 1133 | else |
1164 | 1134 | { |
1165 | 1135 | 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) | ||
1199 | 1169 | if (creature_ptr->is_dead) return FALSE; |
1200 | 1170 | |
1201 | 1171 | if (creature_ptr->pclass == CLASS_BERSERKER) v = 1; |
1202 | - /* Open */ | |
1203 | 1172 | if (v) |
1204 | 1173 | { |
1205 | 1174 | if (creature_ptr->shero && !do_dec) |
@@ -1213,7 +1182,6 @@ bool set_shero(player_type *creature_ptr, TIME_EFFECT v, bool do_dec) | ||
1213 | 1182 | } |
1214 | 1183 | } |
1215 | 1184 | |
1216 | - /* Shut */ | |
1217 | 1185 | else |
1218 | 1186 | { |
1219 | 1187 | if (creature_ptr->shero) |
@@ -1252,7 +1220,6 @@ bool set_protevil(player_type *creature_ptr, TIME_EFFECT v, bool do_dec) | ||
1252 | 1220 | |
1253 | 1221 | if (creature_ptr->is_dead) return FALSE; |
1254 | 1222 | |
1255 | - /* Open */ | |
1256 | 1223 | if (v) |
1257 | 1224 | { |
1258 | 1225 | if (creature_ptr->protevil && !do_dec) |
@@ -1266,7 +1233,6 @@ bool set_protevil(player_type *creature_ptr, TIME_EFFECT v, bool do_dec) | ||
1266 | 1233 | } |
1267 | 1234 | } |
1268 | 1235 | |
1269 | - /* Shut */ | |
1270 | 1236 | else |
1271 | 1237 | { |
1272 | 1238 | if (creature_ptr->protevil) |
@@ -1301,7 +1267,6 @@ bool set_wraith_form(player_type *creature_ptr, TIME_EFFECT v, bool do_dec) | ||
1301 | 1267 | |
1302 | 1268 | if (creature_ptr->is_dead) return FALSE; |
1303 | 1269 | |
1304 | - /* Open */ | |
1305 | 1270 | if (v) |
1306 | 1271 | { |
1307 | 1272 | 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) | ||
1324 | 1289 | } |
1325 | 1290 | } |
1326 | 1291 | |
1327 | - /* Shut */ | |
1328 | 1292 | else |
1329 | 1293 | { |
1330 | 1294 | if (creature_ptr->wraith_form) |
@@ -1366,7 +1330,6 @@ bool set_invuln(player_type *creature_ptr, TIME_EFFECT v, bool do_dec) | ||
1366 | 1330 | |
1367 | 1331 | if (creature_ptr->is_dead) return FALSE; |
1368 | 1332 | |
1369 | - /* Open */ | |
1370 | 1333 | if (v) |
1371 | 1334 | { |
1372 | 1335 | if (creature_ptr->invuln && !do_dec) |
@@ -1390,7 +1353,6 @@ bool set_invuln(player_type *creature_ptr, TIME_EFFECT v, bool do_dec) | ||
1390 | 1353 | } |
1391 | 1354 | } |
1392 | 1355 | |
1393 | - /* Shut */ | |
1394 | 1356 | else |
1395 | 1357 | { |
1396 | 1358 | 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) | ||
1433 | 1395 | |
1434 | 1396 | if (creature_ptr->is_dead) return FALSE; |
1435 | 1397 | |
1436 | - /* Open */ | |
1437 | 1398 | if (v) |
1438 | 1399 | { |
1439 | 1400 | 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) | ||
1447 | 1408 | } |
1448 | 1409 | } |
1449 | 1410 | |
1450 | - /* Shut */ | |
1451 | 1411 | else |
1452 | 1412 | { |
1453 | 1413 | 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) | ||
1484 | 1444 | |
1485 | 1445 | if (creature_ptr->is_dead) return FALSE; |
1486 | 1446 | |
1487 | - /* Open */ | |
1488 | 1447 | if (v) |
1489 | 1448 | { |
1490 | 1449 | 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) | ||
1498 | 1457 | } |
1499 | 1458 | } |
1500 | 1459 | |
1501 | - /* Shut */ | |
1502 | 1460 | else |
1503 | 1461 | { |
1504 | 1462 | if (creature_ptr->tim_invis) |
@@ -1537,7 +1495,6 @@ bool set_tim_infra(player_type *creature_ptr, TIME_EFFECT v, bool do_dec) | ||
1537 | 1495 | |
1538 | 1496 | if (creature_ptr->is_dead) return FALSE; |
1539 | 1497 | |
1540 | - /* Open */ | |
1541 | 1498 | if (v) |
1542 | 1499 | { |
1543 | 1500 | 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) | ||
1551 | 1508 | } |
1552 | 1509 | } |
1553 | 1510 | |
1554 | - /* Shut */ | |
1555 | 1511 | else |
1556 | 1512 | { |
1557 | 1513 | if (creature_ptr->tim_infra) |
@@ -1590,7 +1546,6 @@ bool set_tim_regen(player_type *creature_ptr, TIME_EFFECT v, bool do_dec) | ||
1590 | 1546 | |
1591 | 1547 | if (creature_ptr->is_dead) return FALSE; |
1592 | 1548 | |
1593 | - /* Open */ | |
1594 | 1549 | if (v) |
1595 | 1550 | { |
1596 | 1551 | 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) | ||
1604 | 1559 | } |
1605 | 1560 | } |
1606 | 1561 | |
1607 | - /* Shut */ | |
1608 | 1562 | else |
1609 | 1563 | { |
1610 | 1564 | if (creature_ptr->tim_regen) |
@@ -1640,7 +1594,6 @@ bool set_tim_stealth(player_type *creature_ptr, TIME_EFFECT v, bool do_dec) | ||
1640 | 1594 | |
1641 | 1595 | if (creature_ptr->is_dead) return FALSE; |
1642 | 1596 | |
1643 | - /* Open */ | |
1644 | 1597 | if (v) |
1645 | 1598 | { |
1646 | 1599 | 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) | ||
1654 | 1607 | } |
1655 | 1608 | } |
1656 | 1609 | |
1657 | - /* Shut */ | |
1658 | 1610 | else |
1659 | 1611 | { |
1660 | 1612 | if (creature_ptr->tim_stealth && !music_singing(p_ptr, MUSIC_STEALTH)) |
@@ -1688,7 +1640,6 @@ bool set_superstealth(player_type *creature_ptr, bool set) | ||
1688 | 1640 | |
1689 | 1641 | if (creature_ptr->is_dead) return FALSE; |
1690 | 1642 | |
1691 | - /* Open */ | |
1692 | 1643 | if (set) |
1693 | 1644 | { |
1694 | 1645 | if (!(creature_ptr->special_defense & NINJA_S_STEALTH)) |
@@ -1711,7 +1662,6 @@ bool set_superstealth(player_type *creature_ptr, bool set) | ||
1711 | 1662 | } |
1712 | 1663 | } |
1713 | 1664 | |
1714 | - /* Shut */ | |
1715 | 1665 | else |
1716 | 1666 | { |
1717 | 1667 | 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) | ||
1745 | 1695 | |
1746 | 1696 | if (creature_ptr->is_dead) return FALSE; |
1747 | 1697 | |
1748 | - /* Open */ | |
1749 | 1698 | if (v) |
1750 | 1699 | { |
1751 | 1700 | 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) | ||
1759 | 1708 | } |
1760 | 1709 | } |
1761 | 1710 | |
1762 | - /* Shut */ | |
1763 | 1711 | else |
1764 | 1712 | { |
1765 | 1713 | if (creature_ptr->tim_levitation) |
@@ -1795,7 +1743,6 @@ bool set_tim_sh_touki(player_type *creature_ptr, TIME_EFFECT v, bool do_dec) | ||
1795 | 1743 | |
1796 | 1744 | if (creature_ptr->is_dead) return FALSE; |
1797 | 1745 | |
1798 | - /* Open */ | |
1799 | 1746 | if (v) |
1800 | 1747 | { |
1801 | 1748 | 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) | ||
1809 | 1756 | } |
1810 | 1757 | } |
1811 | 1758 | |
1812 | - /* Shut */ | |
1813 | 1759 | else |
1814 | 1760 | { |
1815 | 1761 | 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) | ||
1844 | 1790 | |
1845 | 1791 | if (creature_ptr->is_dead) return FALSE; |
1846 | 1792 | |
1847 | - /* Open */ | |
1848 | 1793 | if (v) |
1849 | 1794 | { |
1850 | 1795 | 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) | ||
1858 | 1803 | } |
1859 | 1804 | } |
1860 | 1805 | |
1861 | - /* Shut */ | |
1862 | 1806 | else |
1863 | 1807 | { |
1864 | 1808 | 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) | ||
1894 | 1838 | |
1895 | 1839 | if (creature_ptr->is_dead) return FALSE; |
1896 | 1840 | |
1897 | - /* Open */ | |
1898 | 1841 | if (v) |
1899 | 1842 | { |
1900 | 1843 | 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) | ||
1908 | 1851 | } |
1909 | 1852 | } |
1910 | 1853 | |
1911 | - /* Shut */ | |
1912 | 1854 | else |
1913 | 1855 | { |
1914 | 1856 | if (creature_ptr->tim_sh_holy) |
@@ -1944,7 +1886,6 @@ bool set_tim_eyeeye(player_type *creature_ptr, TIME_EFFECT v, bool do_dec) | ||
1944 | 1886 | |
1945 | 1887 | if (creature_ptr->is_dead) return FALSE; |
1946 | 1888 | |
1947 | - /* Open */ | |
1948 | 1889 | if (v) |
1949 | 1890 | { |
1950 | 1891 | 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) | ||
1958 | 1899 | } |
1959 | 1900 | } |
1960 | 1901 | |
1961 | - /* Shut */ | |
1962 | 1902 | else |
1963 | 1903 | { |
1964 | 1904 | if (creature_ptr->tim_eyeeye) |
@@ -1995,7 +1935,6 @@ bool set_resist_magic(player_type *creature_ptr, TIME_EFFECT v, bool do_dec) | ||
1995 | 1935 | |
1996 | 1936 | if (creature_ptr->is_dead) return FALSE; |
1997 | 1937 | |
1998 | - /* Open */ | |
1999 | 1938 | if (v) |
2000 | 1939 | { |
2001 | 1940 | 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) | ||
2009 | 1948 | } |
2010 | 1949 | } |
2011 | 1950 | |
2012 | - /* Shut */ | |
2013 | 1951 | else |
2014 | 1952 | { |
2015 | 1953 | if (creature_ptr->resist_magic) |
@@ -2045,7 +1983,6 @@ bool set_tim_reflect(player_type *creature_ptr, TIME_EFFECT v, bool do_dec) | ||
2045 | 1983 | |
2046 | 1984 | if (creature_ptr->is_dead) return FALSE; |
2047 | 1985 | |
2048 | - /* Open */ | |
2049 | 1986 | if (v) |
2050 | 1987 | { |
2051 | 1988 | 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) | ||
2059 | 1996 | } |
2060 | 1997 | } |
2061 | 1998 | |
2062 | - /* Shut */ | |
2063 | 1999 | else |
2064 | 2000 | { |
2065 | 2001 | if (creature_ptr->tim_reflect) |
@@ -2093,7 +2029,6 @@ bool set_multishadow(player_type *creature_ptr, TIME_EFFECT v, bool do_dec) | ||
2093 | 2029 | |
2094 | 2030 | if (creature_ptr->is_dead) return FALSE; |
2095 | 2031 | |
2096 | - /* Open */ | |
2097 | 2032 | if (v) |
2098 | 2033 | { |
2099 | 2034 | if (creature_ptr->multishadow && !do_dec) |
@@ -2107,7 +2042,6 @@ bool set_multishadow(player_type *creature_ptr, TIME_EFFECT v, bool do_dec) | ||
2107 | 2042 | } |
2108 | 2043 | } |
2109 | 2044 | |
2110 | - /* Shut */ | |
2111 | 2045 | else |
2112 | 2046 | { |
2113 | 2047 | if (creature_ptr->multishadow) |
@@ -2143,7 +2077,6 @@ bool set_dustrobe(player_type *creature_ptr, TIME_EFFECT v, bool do_dec) | ||
2143 | 2077 | |
2144 | 2078 | if (creature_ptr->is_dead) return FALSE; |
2145 | 2079 | |
2146 | - /* Open */ | |
2147 | 2080 | if (v) |
2148 | 2081 | { |
2149 | 2082 | if (creature_ptr->dustrobe && !do_dec) |
@@ -2157,7 +2090,6 @@ bool set_dustrobe(player_type *creature_ptr, TIME_EFFECT v, bool do_dec) | ||
2157 | 2090 | } |
2158 | 2091 | } |
2159 | 2092 | |
2160 | - /* Shut */ | |
2161 | 2093 | else |
2162 | 2094 | { |
2163 | 2095 | if (creature_ptr->dustrobe) |
@@ -2193,7 +2125,6 @@ bool set_kabenuke(player_type *creature_ptr, TIME_EFFECT v, bool do_dec) | ||
2193 | 2125 | |
2194 | 2126 | if (creature_ptr->is_dead) return FALSE; |
2195 | 2127 | |
2196 | - /* Open */ | |
2197 | 2128 | if (v) |
2198 | 2129 | { |
2199 | 2130 | if (creature_ptr->kabenuke && !do_dec) |
@@ -2207,7 +2138,6 @@ bool set_kabenuke(player_type *creature_ptr, TIME_EFFECT v, bool do_dec) | ||
2207 | 2138 | } |
2208 | 2139 | } |
2209 | 2140 | |
2210 | - /* Shut */ | |
2211 | 2141 | else |
2212 | 2142 | { |
2213 | 2143 | if (creature_ptr->kabenuke) |
@@ -2243,7 +2173,6 @@ bool set_tsuyoshi(player_type *creature_ptr, TIME_EFFECT v, bool do_dec) | ||
2243 | 2173 | |
2244 | 2174 | if (creature_ptr->is_dead) return FALSE; |
2245 | 2175 | |
2246 | - /* Open */ | |
2247 | 2176 | if (v) |
2248 | 2177 | { |
2249 | 2178 | if (creature_ptr->tsuyoshi && !do_dec) |
@@ -2258,7 +2187,6 @@ bool set_tsuyoshi(player_type *creature_ptr, TIME_EFFECT v, bool do_dec) | ||
2258 | 2187 | } |
2259 | 2188 | } |
2260 | 2189 | |
2261 | - /* Shut */ | |
2262 | 2190 | else |
2263 | 2191 | { |
2264 | 2192 | if (creature_ptr->tsuyoshi) |
@@ -2437,7 +2365,6 @@ bool set_oppose_acid(player_type *creature_ptr, TIME_EFFECT v, bool do_dec) | ||
2437 | 2365 | |
2438 | 2366 | if (creature_ptr->is_dead) return FALSE; |
2439 | 2367 | |
2440 | - /* Open */ | |
2441 | 2368 | if (v) |
2442 | 2369 | { |
2443 | 2370 | 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) | ||
2451 | 2378 | } |
2452 | 2379 | } |
2453 | 2380 | |
2454 | - /* Shut */ | |
2455 | 2381 | else |
2456 | 2382 | { |
2457 | 2383 | 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) | ||
2486 | 2412 | |
2487 | 2413 | if (creature_ptr->is_dead) return FALSE; |
2488 | 2414 | |
2489 | - /* Open */ | |
2490 | 2415 | if (v) |
2491 | 2416 | { |
2492 | 2417 | 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) | ||
2500 | 2425 | } |
2501 | 2426 | } |
2502 | 2427 | |
2503 | - /* Shut */ | |
2504 | 2428 | else |
2505 | 2429 | { |
2506 | 2430 | 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) | ||
2536 | 2460 | if (creature_ptr->is_dead) return FALSE; |
2537 | 2461 | |
2538 | 2462 | if ((PRACE_IS_(creature_ptr, RACE_DEMON) && (creature_ptr->lev > 44)) || (creature_ptr->mimic_form == MIMIC_DEMON)) v = 1; |
2539 | - /* Open */ | |
2540 | 2463 | if (v) |
2541 | 2464 | { |
2542 | 2465 | 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) | ||
2550 | 2473 | } |
2551 | 2474 | } |
2552 | 2475 | |
2553 | - /* Shut */ | |
2554 | 2476 | else |
2555 | 2477 | { |
2556 | 2478 | 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) | ||
2585 | 2507 | |
2586 | 2508 | if (creature_ptr->is_dead) return FALSE; |
2587 | 2509 | |
2588 | - /* Open */ | |
2589 | 2510 | if (v) |
2590 | 2511 | { |
2591 | 2512 | 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) | ||
2599 | 2520 | } |
2600 | 2521 | } |
2601 | 2522 | |
2602 | - /* Shut */ | |
2603 | 2523 | else |
2604 | 2524 | { |
2605 | 2525 | 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) | ||
2635 | 2555 | if ((creature_ptr->pclass == CLASS_NINJA) && (creature_ptr->lev > 44)) v = 1; |
2636 | 2556 | if (creature_ptr->is_dead) return FALSE; |
2637 | 2557 | |
2638 | - /* Open */ | |
2639 | 2558 | if (v) |
2640 | 2559 | { |
2641 | 2560 | 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) | ||
2649 | 2568 | } |
2650 | 2569 | } |
2651 | 2570 | |
2652 | - /* Shut */ | |
2653 | 2571 | else |
2654 | 2572 | { |
2655 | 2573 | 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) | ||
4081 | 3999 | |
4082 | 4000 | if (creature_ptr->is_dead) return FALSE; |
4083 | 4001 | |
4084 | - /* Open */ | |
4085 | 4002 | if (v) |
4086 | 4003 | { |
4087 | 4004 | 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) | ||
4095 | 4012 | } |
4096 | 4013 | } |
4097 | 4014 | |
4098 | - /* Shut */ | |
4099 | 4015 | else |
4100 | 4016 | { |
4101 | 4017 | if (creature_ptr->ult_res) |
@@ -4125,7 +4041,6 @@ bool set_tim_res_nether(player_type *creature_ptr, TIME_EFFECT v, bool do_dec) | ||
4125 | 4041 | |
4126 | 4042 | if (creature_ptr->is_dead) return FALSE; |
4127 | 4043 | |
4128 | - /* Open */ | |
4129 | 4044 | if (v) |
4130 | 4045 | { |
4131 | 4046 | 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) | ||
4139 | 4054 | } |
4140 | 4055 | } |
4141 | 4056 | |
4142 | - /* Shut */ | |
4143 | 4057 | else |
4144 | 4058 | { |
4145 | 4059 | 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) | ||
4169 | 4083 | |
4170 | 4084 | if (creature_ptr->is_dead) return FALSE; |
4171 | 4085 | |
4172 | - /* Open */ | |
4173 | 4086 | if (v) |
4174 | 4087 | { |
4175 | 4088 | 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) | ||
4183 | 4096 | } |
4184 | 4097 | } |
4185 | 4098 | |
4186 | - /* Shut */ | |
4187 | 4099 | else |
4188 | 4100 | { |
4189 | 4101 | if (creature_ptr->tim_res_time) |