1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 1658 1659 1660 1661 1662 1663 1664 1665 1666 1667 1668 1669 1670 1671 1672 1673 1674 1675 1676 1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 1721 1722 1723 1724 1725 1726 1727 1728 1729 1730 1731 1732 1733 1734 1735 1736 1737 1738 1739 1740 1741 1742 1743 1744 1745 1746 1747 1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 1766 1767 1768 1769 1770 1771 1772 1773 1774 1775 1776 1777 1778 1779 1780 1781 1782 1783 1784 1785 1786 1787 1788 1789 1790 1791 1792 1793 1794 1795 1796 1797 1798 1799 1800 1801 1802 1803 1804 1805 1806 1807 1808 1809 1810 1811 1812 1813 1814 1815 1816 1817 1818 1819 1820 1821 1822 1823 1824 1825 1826 1827 1828 1829 1830 1831 1832 1833 1834 1835 1836 1837 1838 1839 1840 1841 1842 1843 1844 1845 1846 1847 1848 1849 1850 1851 1852 1853 1854 1855 1856 1857 1858 1859 1860 1861 1862 1863 1864 1865 1866 1867 1868 1869 1870 1871 1872 1873 1874 1875 1876 1877 1878 1879 1880 1881 1882 1883 1884 1885 1886 1887 1888 1889 1890 1891 1892 1893 1894 1895 1896 1897 1898 1899 1900 1901 1902 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 1918 1919 1920 1921 1922 1923 1924 1925 1926 1927 1928 1929 1930 1931 1932 1933 1934 1935 1936 1937 1938 1939 1940 1941 1942 1943 1944 1945 1946 1947 1948 1949 1950 1951 1952 1953 1954 1955 1956 1957 1958 1959 1960 1961 1962 1963 1964 1965 1966 1967 1968 1969 1970 1971 1972 1973 1974 1975 1976 1977 1978 1979 1980 1981 1982 1983 1984 1985 1986 1987 1988 1989 1990 1991 1992 1993 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 2026 2027 2028 2029 2030 2031 2032 2033 2034 2035 2036 2037 2038 2039 2040 2041 2042 2043 2044 2045 2046 2047 2048 2049 2050 2051 2052 2053 2054 2055 2056 2057 2058 2059 2060 2061 2062 2063 2064 2065 2066 2067 2068 2069 2070 2071 2072 2073 2074 2075 2076 2077 2078 2079 2080 2081 2082 2083 2084 2085 2086 2087 2088 2089 2090 2091 2092 2093 2094 2095 2096 2097 2098 2099 2100 2101 2102 2103 2104 2105 2106 2107 2108 2109 2110 2111 2112 2113 2114 2115 2116 2117 2118 2119 2120 2121 2122 2123 2124 2125 2126 2127 2128 2129 2130 2131 2132 2133 2134 2135 2136 2137 2138 2139 2140 2141 2142 2143 2144 2145 2146 2147 2148 2149 2150 2151 2152 2153 2154 2155 2156 2157 2158 2159 2160 2161 2162 2163 2164 2165 2166 2167 2168 2169 2170 2171 2172 2173 2174 2175 2176 2177 2178 2179 2180 2181 2182 2183 2184 2185 2186 2187 2188 2189 2190 2191 2192 2193 2194 2195 2196 2197 2198 2199 2200 2201 2202 2203 2204 2205 2206 2207 2208 2209 2210 2211 2212 2213 2214 2215 2216 2217 2218 2219 2220 2221 2222 2223 2224 2225 2226 2227 2228 2229 2230 2231 2232 2233 2234 2235 2236 2237 2238 2239 2240 2241 2242 2243 2244 2245 2246 2247 2248 2249 2250 2251 2252 2253 2254 2255 2256 2257 2258 2259 2260 2261 2262 2263 2264 2265 2266 2267 2268 2269 2270 2271 2272 2273 2274 2275 2276 2277 2278 2279 2280 2281 2282 2283 2284 2285 2286 2287 2288 2289 2290 2291 2292 2293 2294 2295 2296 2297 2298 2299 2300 2301 2302 2303 2304 2305 2306 2307 2308 2309 2310 2311 2312 2313 2314 2315 2316 2317 2318 2319 2320 2321 2322 2323 2324 2325 2326 2327 2328 2329 2330 2331 2332 2333 2334 2335 2336 2337 2338 2339 2340 2341 2342 2343 2344 2345 2346 2347 2348 2349 2350 2351 2352 2353 2354 2355 2356 2357 2358 2359 2360 2361 2362 2363 2364 2365 2366 2367 2368 2369 2370 2371 2372 2373 2374 2375 2376 2377 2378 2379 2380 2381 2382 2383 2384 2385 2386 2387 2388 2389 2390 2391 2392 2393 2394 2395 2396 2397 2398 2399 2400 2401 2402 2403 2404 2405 2406 2407 2408 2409 2410 2411 2412 2413 2414 2415 2416 2417 2418 2419 2420 2421 2422 2423 2424 2425 2426 2427 2428 2429 2430 2431 2432 2433 2434 2435 2436 2437 2438 2439 2440 2441 2442 2443 2444 2445 2446 2447 2448 2449 2450 2451 2452 2453 2454 2455 2456 2457 2458 2459 2460 2461 2462 2463 2464 2465 2466 2467 2468 2469 2470 2471 2472 2473 2474 2475 2476 2477 2478 2479 2480 2481 2482 2483 2484 2485 2486 2487 2488 2489 2490 2491 2492 2493 2494 2495 2496 2497 2498 2499 2500 2501 2502 2503 2504 2505 2506 2507 2508 2509 2510 2511 2512 2513 2514 2515 2516 2517 2518 2519 2520 2521 2522 2523 2524 2525 2526 2527 2528 2529 2530 2531 2532 2533 2534 2535 2536 2537 2538 2539 2540 2541 2542 2543 2544 2545 2546 2547 2548 2549 2550 2551 2552 2553 2554 2555 2556 2557 2558 2559 2560 2561 2562 2563 2564 2565 2566 2567 2568 2569 2570 2571 2572 2573 2574 2575 2576 2577 2578 2579 2580 2581 2582 2583 2584 2585 2586 2587 2588 2589 2590 2591 2592 2593 2594 2595 2596 2597 2598 2599 2600 2601 2602 2603 2604 2605 2606 2607 2608 2609 2610 2611 2612 2613 2614 2615 2616 2617 2618 2619 2620 2621 2622 2623 2624 2625 2626 2627 2628 2629 2630 2631 2632 2633 2634 2635 2636 2637 2638 2639 2640 2641 2642 2643 2644 2645 2646 2647 2648 2649 2650 2651 2652 2653 2654 2655 2656 2657 2658 2659 2660 2661 2662 2663 2664 2665 2666 2667 2668 2669 2670 2671 2672 2673 2674 2675 2676 2677 2678 2679 2680 2681 2682 2683 2684 2685 2686 2687 2688 2689 2690 2691 2692 2693 2694 2695 2696 2697 2698 2699 2700 2701 2702 2703 2704 2705 2706 2707 2708 2709 2710 2711 2712 2713 2714 2715 2716 2717 2718 2719 2720 2721 2722 2723 2724 2725 2726 2727 2728 2729 2730 2731 2732 2733 2734 2735 2736 2737 2738 2739 2740 2741 2742 2743 2744 2745 2746 2747 2748 2749 2750 2751 2752 2753 2754 2755 2756 2757 2758 2759 2760 2761 2762 2763 2764 2765 2766 2767 2768 2769 2770 2771 2772 2773 2774 2775 2776 2777 2778 2779 2780 2781 2782 2783 2784 2785 2786 2787 2788 2789 2790 2791 2792 2793 2794 2795 2796 2797 2798 2799 2800 2801 2802 2803 2804 2805 2806 2807 2808 2809 2810 2811 2812 2813 2814 2815 2816 2817 2818 2819 2820 2821 2822 2823 2824 2825 2826 2827 2828 2829 2830 2831 2832 2833 2834 2835 2836 2837 2838 2839 2840 2841 2842 2843 2844 2845 2846 2847 2848 2849 2850 2851 2852 2853 2854 2855 2856 2857 2858 2859 2860 2861 2862 2863 2864 2865 2866 2867 2868 2869 2870 2871 2872 2873 2874 2875 2876 2877 2878 2879 2880 2881 2882 2883 2884 2885 2886 2887 2888 2889 2890 2891 2892 2893 2894 2895 2896 2897 2898 2899 2900 2901 2902 2903 2904 2905 2906 2907 2908 2909 2910 2911 2912 2913 2914 2915 2916 2917 2918 2919 2920 2921 2922 2923 2924 2925 2926 2927 2928 2929 2930 2931 2932 2933 2934 2935 2936 2937 2938 2939 2940 2941 2942 2943 2944 2945 2946 2947 2948 2949 2950 2951 2952 2953 2954 2955 2956 2957 2958 2959 2960 2961 2962 2963 2964 2965 2966 2967 2968 2969 2970 2971 2972 2973 2974 2975 2976 2977 2978 2979 2980 2981 2982 2983 2984 2985 2986 2987 2988 2989 2990 2991 2992 2993 2994 2995 2996 2997 2998 2999 3000 3001 3002 3003 3004 3005 3006 3007 3008 3009 3010 3011 3012 3013 3014 3015 3016 3017 3018 3019 3020 3021 3022 3023 3024 3025 3026 3027 3028 3029 3030 3031 3032 3033 3034 3035 3036 3037 3038 3039 3040 3041 3042 3043 3044 3045 3046 3047 3048 3049 3050 3051 3052 3053 3054 3055 3056 3057 3058 3059 3060 3061 3062 3063 3064 3065 3066 3067 3068 3069 3070 3071 3072 3073 3074 3075 3076 3077 3078 3079 3080 3081 3082 3083 3084 3085 3086 3087 3088 3089 3090 3091 3092 3093 3094 3095 3096 3097 3098 3099 3100 3101 3102 3103 3104 3105 3106 3107 3108 3109 3110 3111 3112 3113 3114 3115 3116 3117 3118 3119 3120 3121 3122 3123 3124 3125 3126 3127 3128 3129 3130 3131 3132 3133 3134 3135 3136 3137 3138 3139 3140 3141 3142 3143 3144 3145 3146 3147 3148 3149 3150 3151 3152 3153 3154 3155 3156 3157 3158 3159 3160 3161 3162 3163 3164 3165 3166 3167 3168 3169 3170 3171 3172 3173 3174 3175 3176 3177 3178 3179 3180 3181 3182 3183 3184 3185 3186 3187 3188 3189 3190 3191 3192 3193 3194 3195 3196 3197 3198 3199 3200 3201 3202 3203 3204 3205 3206 3207 3208 3209 3210 3211 3212 3213 3214 3215 3216 3217 3218 3219 3220 3221 3222 3223 3224 3225 3226 3227 3228 3229 3230 3231 3232 3233 3234 3235 3236 3237 3238 3239 3240 3241 3242 3243 3244 3245 3246 3247 3248 3249 3250 3251 3252 3253 3254 3255 3256 3257 3258 3259 3260 3261 3262 3263 3264 3265 3266 3267 3268 3269 3270 3271 3272 3273 3274 3275 3276 3277 3278 3279 3280 3281 3282 3283 3284 3285 3286 3287 3288 3289 3290 3291 3292 3293 3294 3295 3296 3297 3298 3299 3300 3301 3302 3303 3304 3305 3306 3307 3308 3309 3310 3311 3312 3313 3314 3315 3316 3317 3318 3319 3320 3321 3322 3323 3324 3325 3326 3327 3328 3329 3330 3331 3332 3333 3334 3335 3336 3337 3338 3339 3340 3341 3342 3343 3344 3345 3346 3347 3348 3349 3350 3351 3352 3353 3354 3355 3356 3357 3358 3359 3360 3361 3362 3363 3364 3365 3366 3367 3368 3369 3370 3371 3372 3373 3374 3375 3376 3377 3378 3379 3380 3381 3382 3383 3384 3385 3386 3387 3388 3389 3390 3391 3392 3393 3394 3395 3396 3397 3398 3399 3400 3401 3402 3403 3404 3405 3406 3407 3408 3409 3410 3411 3412 3413 3414 3415 3416 3417 3418 3419 3420 3421 3422 3423 3424 3425 3426 3427 3428 3429 3430 3431 3432 3433 3434 3435 3436 3437 3438 3439 3440 3441 3442 3443 3444 3445 3446 3447 3448 3449 3450 3451 3452 3453 3454 3455 3456 3457 3458 3459 3460 3461 3462 3463 3464 3465 3466 3467 3468 3469 3470 3471 3472 3473 3474 3475 3476 3477 3478 3479 3480 3481 3482 3483 3484 3485 3486 3487 3488 3489 3490 3491 3492 3493 3494 3495 3496 3497 3498 3499 3500 3501 3502 3503 3504 3505 3506 3507 3508 3509 3510 3511 3512 3513 3514 3515 3516 3517 3518 3519 3520 3521 3522 3523 3524 3525 3526 3527 3528 3529 3530 3531 3532 3533 3534 3535 3536 3537 3538 3539 3540 3541 3542 3543 3544 3545 3546 3547 3548 3549 3550 3551 3552 3553 3554 3555 3556 3557 3558 3559 3560 3561 3562 3563 3564 3565 3566 3567 3568 3569 3570 3571 3572 3573 3574 3575 3576 3577 3578 3579 3580 3581 3582 3583 3584 3585 3586 3587 3588 3589 3590 3591 3592 3593 3594 3595 3596 3597 3598 3599 3600 3601 3602 3603 3604 3605 3606 3607 3608 3609 3610 3611 3612 3613 3614 3615 3616 3617 3618 3619 3620 3621 3622 3623 3624 3625 3626 3627 3628 3629 3630 3631 3632 3633 3634 3635 3636 3637 3638 3639 3640 3641 3642 3643 3644 3645 3646 3647 3648 3649 3650 3651 3652 3653 3654 3655 3656 3657 3658 3659 3660 3661 3662 3663 3664 3665 3666 3667 3668 3669 3670 3671 3672 3673 3674 3675 3676 3677 3678 3679 3680 3681 3682 3683 3684 3685 3686 3687 3688 3689 3690 3691 3692 3693 3694 3695 3696 3697 3698 3699 3700 3701 3702 3703 3704 3705 3706 3707 3708 3709 3710 3711 3712 3713 3714 3715 3716 3717 3718 3719 3720 3721 3722 3723 3724 3725 3726 3727 3728 3729 3730 3731 3732 3733 3734 3735 3736 3737 3738 3739 3740 3741 3742 3743 3744 3745 3746 3747 3748 3749 3750 3751 3752 3753 3754 3755 3756 3757 3758 3759 3760 3761 3762 3763 3764 3765 3766 3767 3768 3769 3770 3771 3772 3773 3774 3775 3776 3777 3778 3779 3780 3781 3782 3783 3784 3785 3786 3787 3788 3789 3790 3791 3792 3793 3794 3795 3796 3797 3798 3799 3800 3801 3802 3803 3804 3805 3806 3807 3808 3809 3810 3811 3812 3813 3814 3815 3816 3817 3818 3819 3820 3821 3822 3823 3824 3825 3826 3827 3828 3829 3830 3831 3832 3833 3834 3835 3836 3837 3838 3839 3840 3841 3842 3843 3844 3845 3846 3847 3848 3849 3850 3851 3852 3853 3854 3855 3856 3857 3858 3859 3860 3861 3862 3863 3864 3865 3866 3867 3868 3869 3870 3871 3872 3873 3874 3875 3876 3877 3878 3879 3880 3881 3882 3883 3884 3885 3886 3887 3888 3889 3890 3891 3892 3893 3894 3895 3896 3897 3898 3899 3900 3901 3902 3903 3904 3905 3906 3907 3908 3909 3910 3911 3912 3913 3914 3915 3916 3917 3918 3919 3920 3921 3922 3923 3924 3925 3926 3927 3928 3929 3930 3931 3932 3933 3934 3935 3936 3937 3938 3939 3940 3941 3942 3943 3944 3945 3946 3947 3948 3949 3950 3951 3952 3953 3954 3955 3956 3957 3958 3959 3960 3961 3962 3963 3964 3965 3966 3967 3968 3969 3970 3971 3972 3973 3974 3975 3976 3977 3978 3979 3980 3981 3982 3983 3984 3985 3986 3987 3988 3989 3990 3991 3992 3993 3994 3995 3996 3997 3998 3999 4000 4001 4002 4003 4004 4005 4006 4007 4008 4009 4010 4011 4012 4013 4014 4015 4016 4017 4018 4019 4020 4021 4022 4023 4024 4025 4026 4027 4028 4029 4030 4031 4032 4033 4034 4035 4036 4037 4038 4039 4040 4041 4042 4043 4044 4045 4046 4047 4048 4049 4050 4051 4052 4053 4054 4055 4056 4057 4058 4059 4060 4061 4062 4063 4064 4065 4066 4067 4068 4069 4070 4071 4072 4073 4074 4075 4076 4077 4078 4079 4080 4081 4082 4083 4084 4085 4086 4087 4088 4089 4090 4091 4092 4093 4094 4095 4096 4097 4098 4099 4100 4101 4102 4103 4104 4105 4106 4107 4108 4109 4110 4111 4112 4113 4114 4115 4116 4117 4118 4119 4120 4121 4122 4123 4124 4125 4126 4127 4128 4129 4130 4131 4132 4133 4134 4135 4136 4137 4138 4139 4140 4141 4142 4143 4144 4145 4146 4147 4148 4149 4150 4151 4152 4153 4154 4155 4156 4157 4158 4159 4160 4161 4162 4163 4164 4165 4166 4167 4168 4169 4170 4171 4172 4173 4174 4175 4176 4177 4178 4179 4180 4181 4182 4183 4184 4185 4186 4187 4188 4189 4190 4191 4192 4193 4194 4195 4196 4197 4198 4199 4200 4201 4202 4203 4204 4205 4206 4207 4208 4209 4210 4211 4212 4213 4214 4215 4216 4217 4218 4219 4220 4221 4222 4223 4224 4225 4226 4227 4228 4229 4230 4231 4232 4233 4234 4235 4236 4237 4238 4239 4240 4241 4242 4243 4244 4245 4246 4247 4248 4249 4250 4251 4252 4253 4254 4255 4256 4257 4258 4259 4260 4261 4262 4263 4264 4265 4266 4267 4268 4269 4270 4271 4272 4273 4274 4275 4276 4277 4278 4279 4280 4281 4282 4283 4284 4285 4286 4287 4288 4289 4290 4291 4292 4293 4294 4295 4296 4297 4298 4299 4300 4301 4302 4303 4304 4305 4306 4307 4308 4309 4310 4311 4312 4313 4314 4315 4316 4317 4318 4319 4320 4321 4322 4323 4324 4325 4326 4327 4328 4329 4330 4331 4332 4333 4334 4335 4336 4337 4338 4339 4340 4341 4342 4343 4344 4345 4346 4347 4348 4349 4350 4351 4352 4353 4354 4355 4356 4357 4358 4359 4360 4361 4362 4363 4364 4365 4366 4367 4368 4369 4370 4371 4372 4373 4374 4375 4376 4377 4378 4379 4380 4381 4382 4383 4384 4385 4386 4387 4388 4389 4390 4391 4392 4393 4394 4395 4396 4397 4398 4399 4400 4401 4402 4403 4404 4405 4406 4407 4408 4409 4410 4411 4412 4413 4414 4415 4416 4417 4418 4419 4420 4421 4422 4423 4424 4425 4426 4427 4428 4429 4430 4431 4432 4433 4434 4435 4436 4437 4438 4439 4440 4441 4442 4443 4444 4445 4446 4447 4448 4449 4450 4451 4452 4453 4454 4455 4456 4457 4458 4459 4460 4461 4462 4463 4464 4465 4466 4467 4468 4469 4470 4471 4472 4473 4474 4475 4476 4477 4478 4479 4480 4481 4482 4483 4484 4485 4486 4487 4488 4489 4490 4491 4492 4493 4494 4495 4496 4497 4498 4499 4500 4501 4502 4503 4504 4505 4506 4507 4508 4509 4510 4511 4512 4513 4514 4515 4516 4517 4518 4519 4520 4521 4522 4523 4524 4525 4526 4527 4528 4529 4530 4531 4532 4533 4534 4535 4536 4537 4538 4539 4540 4541 4542 4543 4544 4545 4546 4547 4548 4549 4550 4551 4552 4553 4554 4555 4556 4557 4558 4559 4560 4561 4562 4563 4564 4565 4566 4567 4568 4569 4570 4571 4572 4573 4574 4575 4576 4577 4578 4579 4580 4581 4582 4583 4584 4585 4586 4587 4588 4589 4590 4591 4592 4593 4594 4595 4596 4597 4598 4599 4600 4601 4602 4603 4604 4605 4606 4607 4608 4609 4610 4611 4612 4613 4614 4615 4616 4617 4618 4619 4620 4621 4622 4623 4624 4625 4626 4627 4628 4629 4630 4631 4632 4633 4634 4635 4636 4637 4638 4639 4640 4641 4642 4643 4644 4645 4646 4647 4648 4649 4650 4651 4652 4653 4654 4655 4656 4657 4658 4659 4660 4661 4662 4663 4664 4665 4666 4667 4668 4669 4670 4671 4672 4673 4674 4675 4676 4677 4678 4679 4680 4681 4682 4683 4684 4685 4686 4687 4688 4689 4690 4691 4692 4693 4694 4695 4696 4697 4698 4699 4700 4701 4702 4703 4704 4705 4706 4707 4708 4709 4710 4711 4712 4713 4714 4715 4716 4717 4718 4719 4720 4721 4722 4723 4724 4725 4726 4727 4728 4729 4730 4731 4732 4733 4734 4735 4736 4737 4738 4739 4740 4741 4742 4743 4744 4745 4746 4747 4748 4749 4750 4751 4752 4753 4754 4755 4756 4757 4758 4759 4760 4761 4762 4763 4764 4765 4766 4767 4768 4769 4770 4771 4772 4773 4774 4775 4776 4777 4778 4779 4780 4781 4782 4783 4784 4785 4786 4787 4788 4789 4790 4791 4792 4793 4794 4795 4796 4797 4798 4799 4800 4801 4802 4803 4804
|
/* File: tables.c */
/* Purpose: Angband Tables */
/*
* Copyright (c) 1989 James E. Wilson, Robert A. Koeneke
*
* This software may be copied and distributed for educational, research, and
* not for profit purposes provided that this copyright and statement are
* included in all such copies.
*/
#include "angband.h"
/*
* Global array for looping through the "keypad directions"
*/
s16b ddd[9] =
{ 2, 8, 6, 4, 3, 1, 9, 7, 5 };
/*
* Global arrays for converting "keypad direction" into offsets
*/
s16b ddx[10] =
{ 0, -1, 0, 1, -1, 0, 1, -1, 0, 1 };
s16b ddy[10] =
{ 0, 1, 1, 1, 0, 0, 0, -1, -1, -1 };
/*
* Global arrays for optimizing "ddx[ddd[i]]" and "ddy[ddd[i]]"
*/
s16b ddx_ddd[9] =
{ 0, 0, 1, -1, 1, -1, 1, -1, 0 };
s16b ddy_ddd[9] =
{ 1, -1, 0, 0, 1, 1, -1, -1, 0 };
/*
* Global array for converting numbers to uppercase hexadecimal digit
* This array can also be used to convert a number to an octal digit
*/
char hexsym[16] =
{
'0', '1', '2', '3', '4', '5', '6', '7',
'8', '9', 'A', 'B', 'C', 'D', 'E', 'F'
};
/*
* Stat Table (INT/WIS) -- Number of half-spells per level
*/
byte adj_mag_study[] =
{
0 /* 3 */,
0 /* 4 */,
0 /* 5 */,
0 /* 6 */,
0 /* 7 */,
1 /* 8 */,
1 /* 9 */,
1 /* 10 */,
1 /* 11 */,
2 /* 12 */,
2 /* 13 */,
2 /* 14 */,
2 /* 15 */,
2 /* 16 */,
2 /* 17 */,
2 /* 18/00-18/09 */,
2 /* 18/10-18/19 */,
2 /* 18/20-18/29 */,
2 /* 18/30-18/39 */,
2 /* 18/40-18/49 */,
3 /* 18/50-18/59 */,
3 /* 18/60-18/69 */,
3 /* 18/70-18/79 */,
3 /* 18/80-18/89 */,
4 /* 18/90-18/99 */,
4 /* 18/100-18/109 */,
4 /* 18/110-18/119 */,
5 /* 18/120-18/129 */,
5 /* 18/130-18/139 */,
5 /* 18/140-18/149 */,
5 /* 18/150-18/159 */,
5 /* 18/160-18/169 */,
5 /* 18/170-18/179 */,
5 /* 18/180-18/189 */,
5 /* 18/190-18/199 */,
5 /* 18/200-18/209 */,
6 /* 18/210-18/219 */,
6 /* 18/220+ */
};
/*
* Stat Table (INT/WIS) -- extra half-mana-points per level
*/
byte adj_mag_mana[] =
{
0 /* 3 */,
0 /* 4 */,
0 /* 5 */,
0 /* 6 */,
0 /* 7 */,
1 /* 8 */,
2 /* 9 */,
2 /* 10 */,
2 /* 11 */,
2 /* 12 */,
2 /* 13 */,
2 /* 14 */,
2 /* 15 */,
2 /* 16 */,
2 /* 17 */,
3 /* 18/00-18/09 */,
3 /* 18/10-18/19 */,
3 /* 18/20-18/29 */,
3 /* 18/30-18/39 */,
3 /* 18/40-18/49 */,
4 /* 18/50-18/59 */,
4 /* 18/60-18/69 */,
5 /* 18/70-18/79 */,
6 /* 18/80-18/89 */,
7 /* 18/90-18/99 */,
8 /* 18/100-18/109 */,
9 /* 18/110-18/119 */,
10 /* 18/120-18/129 */,
11 /* 18/130-18/139 */,
12 /* 18/140-18/149 */,
13 /* 18/150-18/159 */,
14 /* 18/160-18/169 */,
15 /* 18/170-18/179 */,
16 /* 18/180-18/189 */,
16 /* 18/190-18/199 */,
17 /* 18/200-18/209 */,
17 /* 18/210-18/219 */,
18 /* 18/220+ */
};
/*
* Stat Table (INT/WIS) -- Minimum failure rate (percentage)
*/
byte adj_mag_fail[] =
{
99 /* 3 */,
99 /* 4 */,
99 /* 5 */,
99 /* 6 */,
99 /* 7 */,
50 /* 8 */,
30 /* 9 */,
20 /* 10 */,
15 /* 11 */,
12 /* 12 */,
11 /* 13 */,
10 /* 14 */,
9 /* 15 */,
8 /* 16 */,
7 /* 17 */,
6 /* 18/00-18/09 */,
6 /* 18/10-18/19 */,
5 /* 18/20-18/29 */,
5 /* 18/30-18/39 */,
5 /* 18/40-18/49 */,
4 /* 18/50-18/59 */,
4 /* 18/60-18/69 */,
4 /* 18/70-18/79 */,
4 /* 18/80-18/89 */,
3 /* 18/90-18/99 */,
3 /* 18/100-18/109 */,
2 /* 18/110-18/119 */,
2 /* 18/120-18/129 */,
2 /* 18/130-18/139 */,
2 /* 18/140-18/149 */,
1 /* 18/150-18/159 */,
1 /* 18/160-18/169 */,
1 /* 18/170-18/179 */,
1 /* 18/180-18/189 */,
1 /* 18/190-18/199 */,
0 /* 18/200-18/209 */,
0 /* 18/210-18/219 */,
0 /* 18/220+ */
};
/*
* Stat Table (INT/WIS) -- Various things
*/
byte adj_mag_stat[] =
{
0 /* 3 */,
0 /* 4 */,
0 /* 5 */,
0 /* 6 */,
0 /* 7 */,
1 /* 8 */,
1 /* 9 */,
1 /* 10 */,
1 /* 11 */,
1 /* 12 */,
1 /* 13 */,
1 /* 14 */,
2 /* 15 */,
2 /* 16 */,
2 /* 17 */,
3 /* 18/00-18/09 */,
3 /* 18/10-18/19 */,
3 /* 18/20-18/29 */,
3 /* 18/30-18/39 */,
3 /* 18/40-18/49 */,
4 /* 18/50-18/59 */,
4 /* 18/60-18/69 */,
5 /* 18/70-18/79 */,
6 /* 18/80-18/89 */,
7 /* 18/90-18/99 */,
8 /* 18/100-18/109 */,
9 /* 18/110-18/119 */,
10 /* 18/120-18/129 */,
11 /* 18/130-18/139 */,
12 /* 18/140-18/149 */,
13 /* 18/150-18/159 */,
14 /* 18/160-18/169 */,
15 /* 18/170-18/179 */,
16 /* 18/180-18/189 */,
17 /* 18/190-18/199 */,
18 /* 18/200-18/209 */,
19 /* 18/210-18/219 */,
20 /* 18/220+ */
};
/*
* Stat Table (CHR) -- payment percentages
*/
byte adj_chr_gold[] =
{
130 /* 3 */,
125 /* 4 */,
122 /* 5 */,
120 /* 6 */,
118 /* 7 */,
116 /* 8 */,
114 /* 9 */,
112 /* 10 */,
110 /* 11 */,
108 /* 12 */,
106 /* 13 */,
104 /* 14 */,
103 /* 15 */,
102 /* 16 */,
101 /* 17 */,
100 /* 18/00-18/09 */,
99 /* 18/10-18/19 */,
98 /* 18/20-18/29 */,
97 /* 18/30-18/39 */,
96 /* 18/40-18/49 */,
95 /* 18/50-18/59 */,
94 /* 18/60-18/69 */,
93 /* 18/70-18/79 */,
92 /* 18/80-18/89 */,
91 /* 18/90-18/99 */,
90 /* 18/100-18/109 */,
89 /* 18/110-18/119 */,
88 /* 18/120-18/129 */,
87 /* 18/130-18/139 */,
86 /* 18/140-18/149 */,
85 /* 18/150-18/159 */,
84 /* 18/160-18/169 */,
83 /* 18/170-18/179 */,
82 /* 18/180-18/189 */,
81 /* 18/190-18/199 */,
80 /* 18/200-18/209 */,
79 /* 18/210-18/219 */,
78 /* 18/220+ */
};
/*
* Stat Table (INT) -- Magic devices
*/
byte adj_int_dev[] =
{
0 /* 3 */,
0 /* 4 */,
0 /* 5 */,
0 /* 6 */,
0 /* 7 */,
1 /* 8 */,
1 /* 9 */,
1 /* 10 */,
1 /* 11 */,
1 /* 12 */,
1 /* 13 */,
1 /* 14 */,
2 /* 15 */,
2 /* 16 */,
2 /* 17 */,
3 /* 18/00-18/09 */,
3 /* 18/10-18/19 */,
4 /* 18/20-18/29 */,
4 /* 18/30-18/39 */,
5 /* 18/40-18/49 */,
5 /* 18/50-18/59 */,
6 /* 18/60-18/69 */,
6 /* 18/70-18/79 */,
7 /* 18/80-18/89 */,
7 /* 18/90-18/99 */,
8 /* 18/100-18/109 */,
9 /* 18/110-18/119 */,
10 /* 18/120-18/129 */,
11 /* 18/130-18/139 */,
12 /* 18/140-18/149 */,
13 /* 18/150-18/159 */,
14 /* 18/160-18/169 */,
15 /* 18/170-18/179 */,
16 /* 18/180-18/189 */,
17 /* 18/190-18/199 */,
18 /* 18/200-18/209 */,
19 /* 18/210-18/219 */,
20 /* 18/220+ */
};
/*
* Stat Table (WIS) -- Saving throw
*/
byte adj_wis_sav[] =
{
0 /* 3 */,
0 /* 4 */,
0 /* 5 */,
0 /* 6 */,
0 /* 7 */,
1 /* 8 */,
1 /* 9 */,
1 /* 10 */,
1 /* 11 */,
1 /* 12 */,
1 /* 13 */,
1 /* 14 */,
2 /* 15 */,
2 /* 16 */,
2 /* 17 */,
3 /* 18/00-18/09 */,
3 /* 18/10-18/19 */,
3 /* 18/20-18/29 */,
3 /* 18/30-18/39 */,
3 /* 18/40-18/49 */,
4 /* 18/50-18/59 */,
4 /* 18/60-18/69 */,
5 /* 18/70-18/79 */,
5 /* 18/80-18/89 */,
6 /* 18/90-18/99 */,
7 /* 18/100-18/109 */,
8 /* 18/110-18/119 */,
9 /* 18/120-18/129 */,
10 /* 18/130-18/139 */,
11 /* 18/140-18/149 */,
12 /* 18/150-18/159 */,
13 /* 18/160-18/169 */,
14 /* 18/170-18/179 */,
15 /* 18/180-18/189 */,
16 /* 18/190-18/199 */,
17 /* 18/200-18/209 */,
18 /* 18/210-18/219 */,
19 /* 18/220+ */
};
/*
* Stat Table (DEX) -- disarming
*/
byte adj_dex_dis[] =
{
0 /* 3 */,
0 /* 4 */,
0 /* 5 */,
0 /* 6 */,
0 /* 7 */,
0 /* 8 */,
0 /* 9 */,
0 /* 10 */,
0 /* 11 */,
0 /* 12 */,
1 /* 13 */,
1 /* 14 */,
1 /* 15 */,
2 /* 16 */,
2 /* 17 */,
4 /* 18/00-18/09 */,
4 /* 18/10-18/19 */,
4 /* 18/20-18/29 */,
4 /* 18/30-18/39 */,
5 /* 18/40-18/49 */,
5 /* 18/50-18/59 */,
5 /* 18/60-18/69 */,
6 /* 18/70-18/79 */,
6 /* 18/80-18/89 */,
7 /* 18/90-18/99 */,
8 /* 18/100-18/109 */,
8 /* 18/110-18/119 */,
8 /* 18/120-18/129 */,
8 /* 18/130-18/139 */,
8 /* 18/140-18/149 */,
9 /* 18/150-18/159 */,
9 /* 18/160-18/169 */,
9 /* 18/170-18/179 */,
9 /* 18/180-18/189 */,
9 /* 18/190-18/199 */,
10 /* 18/200-18/209 */,
10 /* 18/210-18/219 */,
10 /* 18/220+ */
};
/*
* Stat Table (INT) -- disarming
*/
byte adj_int_dis[] =
{
0 /* 3 */,
0 /* 4 */,
0 /* 5 */,
0 /* 6 */,
0 /* 7 */,
1 /* 8 */,
1 /* 9 */,
1 /* 10 */,
1 /* 11 */,
1 /* 12 */,
1 /* 13 */,
1 /* 14 */,
2 /* 15 */,
2 /* 16 */,
2 /* 17 */,
3 /* 18/00-18/09 */,
3 /* 18/10-18/19 */,
3 /* 18/20-18/29 */,
4 /* 18/30-18/39 */,
4 /* 18/40-18/49 */,
5 /* 18/50-18/59 */,
6 /* 18/60-18/69 */,
7 /* 18/70-18/79 */,
8 /* 18/80-18/89 */,
9 /* 18/90-18/99 */,
10 /* 18/100-18/109 */,
10 /* 18/110-18/119 */,
11 /* 18/120-18/129 */,
12 /* 18/130-18/139 */,
13 /* 18/140-18/149 */,
14 /* 18/150-18/159 */,
15 /* 18/160-18/169 */,
16 /* 18/170-18/179 */,
17 /* 18/180-18/189 */,
18 /* 18/190-18/199 */,
19 /* 18/200-18/209 */,
19 /* 18/210-18/219 */,
20 /* 18/220+ */
};
/*
* Stat Table (DEX) -- bonus to ac (plus 128)
*/
byte adj_dex_ta[] =
{
128 + -4 /* 3 */,
128 + -3 /* 4 */,
128 + -2 /* 5 */,
128 + -1 /* 6 */,
128 + 0 /* 7 */,
128 + 0 /* 8 */,
128 + 0 /* 9 */,
128 + 0 /* 10 */,
128 + 0 /* 11 */,
128 + 0 /* 12 */,
128 + 0 /* 13 */,
128 + 0 /* 14 */,
128 + 1 /* 15 */,
128 + 1 /* 16 */,
128 + 1 /* 17 */,
128 + 2 /* 18/00-18/09 */,
128 + 2 /* 18/10-18/19 */,
128 + 2 /* 18/20-18/29 */,
128 + 2 /* 18/30-18/39 */,
128 + 2 /* 18/40-18/49 */,
128 + 3 /* 18/50-18/59 */,
128 + 3 /* 18/60-18/69 */,
128 + 3 /* 18/70-18/79 */,
128 + 4 /* 18/80-18/89 */,
128 + 5 /* 18/90-18/99 */,
128 + 6 /* 18/100-18/109 */,
128 + 7 /* 18/110-18/119 */,
128 + 8 /* 18/120-18/129 */,
128 + 9 /* 18/130-18/139 */,
128 + 9 /* 18/140-18/149 */,
128 + 10 /* 18/150-18/159 */,
128 + 11 /* 18/160-18/169 */,
128 + 12 /* 18/170-18/179 */,
128 + 13 /* 18/180-18/189 */,
128 + 14 /* 18/190-18/199 */,
128 + 15 /* 18/200-18/209 */,
128 + 15 /* 18/210-18/219 */,
128 + 16 /* 18/220+ */
};
/*
* Stat Table (STR) -- bonus to dam (plus 128)
*/
byte adj_str_td[] =
{
128 + -2 /* 3 */,
128 + -2 /* 4 */,
128 + -1 /* 5 */,
128 + -1 /* 6 */,
128 + 0 /* 7 */,
128 + 0 /* 8 */,
128 + 0 /* 9 */,
128 + 0 /* 10 */,
128 + 0 /* 11 */,
128 + 0 /* 12 */,
128 + 0 /* 13 */,
128 + 0 /* 14 */,
128 + 0 /* 15 */,
128 + 1 /* 16 */,
128 + 2 /* 17 */,
128 + 2 /* 18/00-18/09 */,
128 + 2 /* 18/10-18/19 */,
128 + 3 /* 18/20-18/29 */,
128 + 3 /* 18/30-18/39 */,
128 + 3 /* 18/40-18/49 */,
128 + 3 /* 18/50-18/59 */,
128 + 3 /* 18/60-18/69 */,
128 + 4 /* 18/70-18/79 */,
128 + 5 /* 18/80-18/89 */,
128 + 5 /* 18/90-18/99 */,
128 + 6 /* 18/100-18/109 */,
128 + 7 /* 18/110-18/119 */,
128 + 8 /* 18/120-18/129 */,
128 + 9 /* 18/130-18/139 */,
128 + 10 /* 18/140-18/149 */,
128 + 11 /* 18/150-18/159 */,
128 + 12 /* 18/160-18/169 */,
128 + 13 /* 18/170-18/179 */,
128 + 14 /* 18/180-18/189 */,
128 + 15 /* 18/190-18/199 */,
128 + 16 /* 18/200-18/209 */,
128 + 18 /* 18/210-18/219 */,
128 + 20 /* 18/220+ */
};
/*
* Stat Table (DEX) -- bonus to hit (plus 128)
*/
byte adj_dex_th[] =
{
128 + -3 /* 3 */,
128 + -2 /* 4 */,
128 + -2 /* 5 */,
128 + -1 /* 6 */,
128 + -1 /* 7 */,
128 + 0 /* 8 */,
128 + 0 /* 9 */,
128 + 0 /* 10 */,
128 + 0 /* 11 */,
128 + 0 /* 12 */,
128 + 0 /* 13 */,
128 + 0 /* 14 */,
128 + 0 /* 15 */,
128 + 1 /* 16 */,
128 + 2 /* 17 */,
128 + 3 /* 18/00-18/09 */,
128 + 3 /* 18/10-18/19 */,
128 + 3 /* 18/20-18/29 */,
128 + 3 /* 18/30-18/39 */,
128 + 3 /* 18/40-18/49 */,
128 + 4 /* 18/50-18/59 */,
128 + 4 /* 18/60-18/69 */,
128 + 4 /* 18/70-18/79 */,
128 + 4 /* 18/80-18/89 */,
128 + 5 /* 18/90-18/99 */,
128 + 6 /* 18/100-18/109 */,
128 + 7 /* 18/110-18/119 */,
128 + 8 /* 18/120-18/129 */,
128 + 9 /* 18/130-18/139 */,
128 + 9 /* 18/140-18/149 */,
128 + 10 /* 18/150-18/159 */,
128 + 11 /* 18/160-18/169 */,
128 + 12 /* 18/170-18/179 */,
128 + 13 /* 18/180-18/189 */,
128 + 14 /* 18/190-18/199 */,
128 + 15 /* 18/200-18/209 */,
128 + 15 /* 18/210-18/219 */,
128 + 16 /* 18/220+ */
};
/*
* Stat Table (STR) -- bonus to hit (plus 128)
*/
byte adj_str_th[] =
{
128 + -3 /* 3 */,
128 + -2 /* 4 */,
128 + -1 /* 5 */,
128 + -1 /* 6 */,
128 + 0 /* 7 */,
128 + 0 /* 8 */,
128 + 0 /* 9 */,
128 + 0 /* 10 */,
128 + 0 /* 11 */,
128 + 0 /* 12 */,
128 + 0 /* 13 */,
128 + 0 /* 14 */,
128 + 0 /* 15 */,
128 + 0 /* 16 */,
128 + 0 /* 17 */,
128 + 1 /* 18/00-18/09 */,
128 + 1 /* 18/10-18/19 */,
128 + 1 /* 18/20-18/29 */,
128 + 1 /* 18/30-18/39 */,
128 + 1 /* 18/40-18/49 */,
128 + 1 /* 18/50-18/59 */,
128 + 1 /* 18/60-18/69 */,
128 + 2 /* 18/70-18/79 */,
128 + 3 /* 18/80-18/89 */,
128 + 4 /* 18/90-18/99 */,
128 + 5 /* 18/100-18/109 */,
128 + 6 /* 18/110-18/119 */,
128 + 7 /* 18/120-18/129 */,
128 + 8 /* 18/130-18/139 */,
128 + 9 /* 18/140-18/149 */,
128 + 10 /* 18/150-18/159 */,
128 + 11 /* 18/160-18/169 */,
128 + 12 /* 18/170-18/179 */,
128 + 13 /* 18/180-18/189 */,
128 + 14 /* 18/190-18/199 */,
128 + 15 /* 18/200-18/209 */,
128 + 15 /* 18/210-18/219 */,
128 + 16 /* 18/220+ */
};
/*
* Stat Table (STR) -- weight limit in deca-pounds
*/
byte adj_str_wgt[] =
{
5 /* 3 */,
6 /* 4 */,
7 /* 5 */,
8 /* 6 */,
9 /* 7 */,
10 /* 8 */,
11 /* 9 */,
12 /* 10 */,
13 /* 11 */,
14 /* 12 */,
15 /* 13 */,
16 /* 14 */,
17 /* 15 */,
18 /* 16 */,
19 /* 17 */,
20 /* 18/00-18/09 */,
22 /* 18/10-18/19 */,
24 /* 18/20-18/29 */,
26 /* 18/30-18/39 */,
28 /* 18/40-18/49 */,
30 /* 18/50-18/59 */,
31 /* 18/60-18/69 */,
31 /* 18/70-18/79 */,
32 /* 18/80-18/89 */,
32 /* 18/90-18/99 */,
33 /* 18/100-18/109 */,
33 /* 18/110-18/119 */,
34 /* 18/120-18/129 */,
34 /* 18/130-18/139 */,
35 /* 18/140-18/149 */,
35 /* 18/150-18/159 */,
36 /* 18/160-18/169 */,
36 /* 18/170-18/179 */,
37 /* 18/180-18/189 */,
37 /* 18/190-18/199 */,
38 /* 18/200-18/209 */,
38 /* 18/210-18/219 */,
39 /* 18/220+ */
};
/*
* Stat Table (STR) -- weapon weight limit in pounds
*/
byte adj_str_hold[] =
{
4 /* 3 */,
5 /* 4 */,
6 /* 5 */,
7 /* 6 */,
8 /* 7 */,
10 /* 8 */,
12 /* 9 */,
14 /* 10 */,
16 /* 11 */,
18 /* 12 */,
20 /* 13 */,
22 /* 14 */,
24 /* 15 */,
26 /* 16 */,
28 /* 17 */,
30 /* 18/00-18/09 */,
30 /* 18/10-18/19 */,
35 /* 18/20-18/29 */,
40 /* 18/30-18/39 */,
45 /* 18/40-18/49 */,
50 /* 18/50-18/59 */,
55 /* 18/60-18/69 */,
60 /* 18/70-18/79 */,
65 /* 18/80-18/89 */,
70 /* 18/90-18/99 */,
80 /* 18/100-18/109 */,
80 /* 18/110-18/119 */,
80 /* 18/120-18/129 */,
80 /* 18/130-18/139 */,
80 /* 18/140-18/149 */,
90 /* 18/150-18/159 */,
90 /* 18/160-18/169 */,
90 /* 18/170-18/179 */,
90 /* 18/180-18/189 */,
90 /* 18/190-18/199 */,
100 /* 18/200-18/209 */,
100 /* 18/210-18/219 */,
100 /* 18/220+ */
};
/*
* Stat Table (STR) -- digging value
*/
byte adj_str_dig[] =
{
0 /* 3 */,
0 /* 4 */,
1 /* 5 */,
2 /* 6 */,
3 /* 7 */,
4 /* 8 */,
4 /* 9 */,
5 /* 10 */,
5 /* 11 */,
6 /* 12 */,
6 /* 13 */,
7 /* 14 */,
7 /* 15 */,
8 /* 16 */,
8 /* 17 */,
9 /* 18/00-18/09 */,
10 /* 18/10-18/19 */,
12 /* 18/20-18/29 */,
15 /* 18/30-18/39 */,
20 /* 18/40-18/49 */,
25 /* 18/50-18/59 */,
30 /* 18/60-18/69 */,
35 /* 18/70-18/79 */,
40 /* 18/80-18/89 */,
45 /* 18/90-18/99 */,
50 /* 18/100-18/109 */,
55 /* 18/110-18/119 */,
60 /* 18/120-18/129 */,
65 /* 18/130-18/139 */,
70 /* 18/140-18/149 */,
75 /* 18/150-18/159 */,
80 /* 18/160-18/169 */,
85 /* 18/170-18/179 */,
90 /* 18/180-18/189 */,
95 /* 18/190-18/199 */,
100 /* 18/200-18/209 */,
100 /* 18/210-18/219 */,
100 /* 18/220+ */
};
/*
* Stat Table (STR) -- help index into the "blow" table
*/
byte adj_str_blow[] =
{
3 /* 3 */,
4 /* 4 */,
5 /* 5 */,
6 /* 6 */,
7 /* 7 */,
8 /* 8 */,
9 /* 9 */,
10 /* 10 */,
11 /* 11 */,
12 /* 12 */,
13 /* 13 */,
14 /* 14 */,
15 /* 15 */,
16 /* 16 */,
17 /* 17 */,
20 /* 18/00-18/09 */,
30 /* 18/10-18/19 */,
40 /* 18/20-18/29 */,
50 /* 18/30-18/39 */,
60 /* 18/40-18/49 */,
70 /* 18/50-18/59 */,
80 /* 18/60-18/69 */,
90 /* 18/70-18/79 */,
100 /* 18/80-18/89 */,
110 /* 18/90-18/99 */,
120 /* 18/100-18/109 */,
130 /* 18/110-18/119 */,
140 /* 18/120-18/129 */,
150 /* 18/130-18/139 */,
160 /* 18/140-18/149 */,
170 /* 18/150-18/159 */,
180 /* 18/160-18/169 */,
190 /* 18/170-18/179 */,
200 /* 18/180-18/189 */,
210 /* 18/190-18/199 */,
220 /* 18/200-18/209 */,
230 /* 18/210-18/219 */,
240 /* 18/220+ */
};
/*
* Stat Table (DEX) -- index into the "blow" table
*/
byte adj_dex_blow[] =
{
0 /* 3 */,
0 /* 4 */,
0 /* 5 */,
0 /* 6 */,
0 /* 7 */,
0 /* 8 */,
0 /* 9 */,
1 /* 10 */,
1 /* 11 */,
1 /* 12 */,
1 /* 13 */,
1 /* 14 */,
1 /* 15 */,
1 /* 16 */,
1 /* 17 */,
1 /* 18/00-18/09 */,
2 /* 18/10-18/19 */,
2 /* 18/20-18/29 */,
2 /* 18/30-18/39 */,
2 /* 18/40-18/49 */,
3 /* 18/50-18/59 */,
3 /* 18/60-18/69 */,
4 /* 18/70-18/79 */,
4 /* 18/80-18/89 */,
5 /* 18/90-18/99 */,
6 /* 18/100-18/109 */,
7 /* 18/110-18/119 */,
8 /* 18/120-18/129 */,
9 /* 18/130-18/139 */,
10 /* 18/140-18/149 */,
11 /* 18/150-18/159 */,
12 /* 18/160-18/169 */,
14 /* 18/170-18/179 */,
16 /* 18/180-18/189 */,
18 /* 18/190-18/199 */,
20 /* 18/200-18/209 */,
20 /* 18/210-18/219 */,
20 /* 18/220+ */
};
/*
* Stat Table (DEX) -- chance of avoiding "theft" and "falling"
*/
byte adj_dex_safe[] =
{
0 /* 3 */,
1 /* 4 */,
2 /* 5 */,
3 /* 6 */,
4 /* 7 */,
5 /* 8 */,
5 /* 9 */,
6 /* 10 */,
6 /* 11 */,
7 /* 12 */,
7 /* 13 */,
8 /* 14 */,
8 /* 15 */,
9 /* 16 */,
9 /* 17 */,
10 /* 18/00-18/09 */,
10 /* 18/10-18/19 */,
15 /* 18/20-18/29 */,
15 /* 18/30-18/39 */,
20 /* 18/40-18/49 */,
25 /* 18/50-18/59 */,
30 /* 18/60-18/69 */,
35 /* 18/70-18/79 */,
40 /* 18/80-18/89 */,
45 /* 18/90-18/99 */,
50 /* 18/100-18/109 */,
60 /* 18/110-18/119 */,
70 /* 18/120-18/129 */,
80 /* 18/130-18/139 */,
90 /* 18/140-18/149 */,
100 /* 18/150-18/159 */,
100 /* 18/160-18/169 */,
100 /* 18/170-18/179 */,
100 /* 18/180-18/189 */,
100 /* 18/190-18/199 */,
100 /* 18/200-18/209 */,
100 /* 18/210-18/219 */,
100 /* 18/220+ */
};
/*
* Stat Table (CON) -- base regeneration rate
*/
byte adj_con_fix[] =
{
0 /* 3 */,
0 /* 4 */,
0 /* 5 */,
0 /* 6 */,
0 /* 7 */,
0 /* 8 */,
0 /* 9 */,
0 /* 10 */,
0 /* 11 */,
0 /* 12 */,
0 /* 13 */,
1 /* 14 */,
1 /* 15 */,
1 /* 16 */,
1 /* 17 */,
2 /* 18/00-18/09 */,
2 /* 18/10-18/19 */,
2 /* 18/20-18/29 */,
2 /* 18/30-18/39 */,
2 /* 18/40-18/49 */,
3 /* 18/50-18/59 */,
3 /* 18/60-18/69 */,
3 /* 18/70-18/79 */,
3 /* 18/80-18/89 */,
3 /* 18/90-18/99 */,
4 /* 18/100-18/109 */,
4 /* 18/110-18/119 */,
5 /* 18/120-18/129 */,
6 /* 18/130-18/139 */,
6 /* 18/140-18/149 */,
7 /* 18/150-18/159 */,
7 /* 18/160-18/169 */,
8 /* 18/170-18/179 */,
8 /* 18/180-18/189 */,
8 /* 18/190-18/199 */,
9 /* 18/200-18/209 */,
9 /* 18/210-18/219 */,
9 /* 18/220+ */
};
/*
* Stat Table (CON) -- extra half-hitpoints per level (plus 128)
*/
byte adj_con_mhp[] =
{
128 + -5 /* 3 */,
128 + -3 /* 4 */,
128 + -2 /* 5 */,
128 + -1 /* 6 */,
128 + 0 /* 7 */,
128 + 0 /* 8 */,
128 + 0 /* 9 */,
128 + 0 /* 10 */,
128 + 0 /* 11 */,
128 + 0 /* 12 */,
128 + 0 /* 13 */,
128 + 0 /* 14 */,
128 + 1 /* 15 */,
128 + 1 /* 16 */,
128 + 2 /* 17 */,
128 + 3 /* 18/00-18/09 */,
128 + 4 /* 18/10-18/19 */,
128 + 4 /* 18/20-18/29 */,
128 + 4 /* 18/30-18/39 */,
128 + 4 /* 18/40-18/49 */,
128 + 5 /* 18/50-18/59 */,
128 + 6 /* 18/60-18/69 */,
128 + 7 /* 18/70-18/79 */,
128 + 8 /* 18/80-18/89 */,
128 + 9 /* 18/90-18/99 */,
128 + 10 /* 18/100-18/109 */,
128 + 11 /* 18/110-18/119 */,
128 + 12 /* 18/120-18/129 */,
128 + 13 /* 18/130-18/139 */,
128 + 14 /* 18/140-18/149 */,
128 + 15 /* 18/150-18/159 */,
128 + 16 /* 18/160-18/169 */,
128 + 18 /* 18/170-18/179 */,
128 + 20 /* 18/180-18/189 */,
128 + 22 /* 18/190-18/199 */,
128 + 25 /* 18/200-18/209 */,
128 + 26 /* 18/210-18/219 */,
128 + 27 /* 18/220+ */
};
/*
* This table is used to help calculate the number of blows the player can
* make in a single round of attacks (one player turn) with a normal weapon.
*
* This number ranges from a single blow/round for weak players to up to six
* blows/round for powerful warriors.
*
* Note that certain artifacts and ego-items give "bonus" blows/round.
*
* First, from the player class, we extract some values:
*
* Warrior --> num = 6; mul = 5; div = MAX(30, weapon_weight);
* Mage --> num = 4; mul = 2; div = MAX(40, weapon_weight);
* Priest --> num = 5; mul = 3; div = MAX(35, weapon_weight);
* Rogue --> num = 5; mul = 3; div = MAX(30, weapon_weight);
* Ranger --> num = 5; mul = 4; div = MAX(35, weapon_weight);
* Paladin --> num = 5; mul = 4; div = MAX(30, weapon_weight);
*
* To get "P", we look up the relevant "adj_str_blow[]" (see above),
* multiply it by "mul", and then divide it by "div", rounding down.
*
* To get "D", we look up the relevant "adj_dex_blow[]" (see above),
* note especially column 6 (DEX 18/101) and 11 (DEX 18/150).
*
* The player gets "blows_table[P][D]" blows/round, as shown below,
* up to a maximum of "num" blows/round, plus any "bonus" blows/round.
*/
byte blows_table[12][12] =
{
/* P/D */
/* 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11+ */
/* 0 */
{ 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3 },
/* 1 */
{ 1, 1, 1, 1, 2, 2, 3, 3, 3, 4, 4, 4 },
/* 2 */
{ 1, 1, 2, 2, 3, 3, 4, 4, 4, 5, 5, 5 },
/* 3 */
{ 1, 2, 2, 3, 3, 4, 4, 4, 5, 5, 5, 5 },
/* 4 */
{ 1, 2, 2, 3, 3, 4, 4, 5, 5, 5, 5, 5 },
/* 5 */
{ 2, 2, 3, 3, 4, 4, 5, 5, 5, 5, 5, 6 },
/* 6 */
{ 2, 2, 3, 3, 4, 4, 5, 5, 5, 5, 5, 6 },
/* 7 */
{ 2, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 6 },
/* 8 */
{ 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 6, 6 },
/* 9 */
{ 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 6, 6 },
/* 10 */
{ 3, 3, 4, 4, 4, 4, 5, 5, 5, 6, 6, 6 },
/* 11+ */
{ 3, 3, 4, 4, 4, 4, 5, 5, 6, 6, 6, 6 },
};
s16b arena_monsters[MAX_ARENA_MONS] =
{
30, 43, 102, 118, 126, 149, 173,
183, 188, 191, 216, 230, 238, 244,
255, 262, 293, 297, 321, 349, 372,
401, 415, 454, 464, 485, 538, 631,
641
};
/*
* This table allows quick conversion from "speed" to "energy"
* The basic function WAS ((S>=110) ? (S-110) : (100 / (120-S)))
* Note that table access is *much* quicker than computation.
*
* Note that the table has been changed at high speeds. From
* "Slow (-40)" to "Fast (+30)" is pretty much unchanged, but
* at speeds above "Fast (+30)", one approaches an asymptotic
* effective limit of 50 energy per turn. This means that it
* is relatively easy to reach "Fast (+30)" and get about 40
* energy per turn, but then speed becomes very "expensive",
* and you must get all the way to "Fast (+50)" to reach the
* point of getting 45 energy per turn. After that point,
* further increases in speed are more or less pointless,
* except to balance out heavy inventory.
*
* Note that currently the fastest monster is "Fast (+30)".
*
* It should be possible to lower the energy threshold from
* 100 units to 50 units, though this may interact badly with
* the (compiled out) small random energy boost code. It may
* also tend to cause more "clumping" at high speeds.
*/
byte extract_energy[300] =
{
/* Slow */ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
/* Slow */ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
/* Slow */ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
/* Slow */ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
/* Slow */ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
/* Slow */ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
/* S-50 */ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
/* S-40 */ 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
/* S-30 */ 2, 2, 2, 2, 2, 2, 2, 3, 3, 3,
/* S-20 */ 3, 3, 3, 3, 3, 4, 4, 4, 4, 4,
/* S-10 */ 5, 5, 5, 5, 6, 6, 7, 7, 8, 9,
/* Norm */ 10, 11, 12, 13, 14, 15, 16, 17, 18, 19,
/* F+10 */ 20, 21, 22, 23, 24, 25, 26, 27, 28, 29,
/* F+20 */ 30, 31, 32, 33, 34, 35, 36, 36, 37, 37,
/* F+30 */ 38, 38, 39, 39, 40, 40, 40, 41, 41, 41,
/* F+40 */ 42, 42, 42, 43, 43, 43, 44, 44, 44, 44,
/* F+50 */ 45, 45, 45, 45, 45, 46, 46, 46, 46, 46,
/* F+60 */ 47, 47, 47, 47, 47, 48, 48, 48, 48, 48,
/* F+70 */ 49, 49, 49, 49, 49, 49, 49, 49, 49, 49,
/* Fast */ 49, 49, 49, 49, 49, 49, 49, 49, 49, 49,
/* Virtual */ 49, 49, 49, 49, 49, 49, 49, 49, 49, 49,
/* Virtual */ 49, 49, 49, 49, 49, 49, 49, 49, 49, 49,
/* Virtual */ 49, 49, 49, 49, 49, 49, 49, 49, 49, 49,
/* Virtual */ 49, 49, 49, 49, 49, 49, 49, 49, 49, 49,
/* Virtual */ 49, 49, 49, 49, 49, 49, 49, 49, 49, 49,
/* Virtual */ 49, 49, 49, 49, 49, 49, 49, 49, 49, 49,
/* Virtual */ 49, 49, 49, 49, 49, 49, 49, 49, 49, 49,
/* Virtual */ 49, 49, 49, 49, 49, 49, 49, 49, 49, 49,
/* Virtual */ 49, 49, 49, 49, 49, 49, 49, 49, 49, 49,
/* Virtual */ 49, 49, 49, 49, 49, 49, 49, 49, 49, 49,
};
/*
* Base experience levels, may be adjusted up for race and/or class
*/
s32b player_exp[PY_MAX_LEVEL] =
{
10,
25,
45,
70,
100,
140,
200,
280,
380,
500,
650,
850,
1100,
1400,
1800,
2300,
2900,
3600,
4400,
5400,
6800,
8400,
10200,
12500,
17500,
25000,
35000L,
50000L,
75000L,
100000L,
150000L,
200000L,
275000L,
350000L,
450000L,
550000L,
700000L,
850000L,
1000000L,
1250000L,
1500000L,
1800000L,
2100000L,
2400000L,
2700000L,
3000000L,
3500000L,
4000000L,
4500000L,
5000000L
};
/*
* Player Sexes
*
* Title,
* Winner
*/
player_sex sex_info[MAX_SEXES] =
{
{
"Female",
"Queen"
},
{
"Male",
"King"
},
{
"Neuter",
"Ruler"
}
};
/*
* Hack -- the "basic" color names (see "TERM_xxx")
*/
cptr color_names[16] =
{
"Dark",
"White",
"Slate",
"Orange",
"Red",
"Green",
"Blue",
"Umber",
"Light Dark",
"Light Slate",
"Violet",
"Yellow",
"Light Red",
"Light Green",
"Light Blue",
"Light Umber",
};
/*
* Abbreviations of healthy stats
*/
cptr stat_names[6] =
{
"STR", "INT", "WIS", "DEX", "CON", "CHR"
};
/*
* Abbreviations of damaged stats
*/
cptr stat_names_reduced[6] =
{
"Str", "Int", "Wis", "Dex", "Con", "Chr"
};
/*
* Certain "screens" always use the main screen, including News, Birth,
* Dungeon, Tomb-stone, High-scores, Macros, Colors, Visuals, Options.
*
* Later, special flags may allow sub-windows to "steal" stuff from the
* main window, including File dump (help), File dump (artifacts, uniques),
* Character screen, Small scale map, Previous Messages, Store screen, etc.
*
* The "ctrl-i" (tab) command flips the "Display inven/equip" and "Display
* equip/inven" flags for all windows.
*
* The "ctrl-g" command (or pseudo-command) should perhaps grab a snapshot
* of the main screen into any interested windows.
*/
cptr window_flag_desc[32] =
{
"Display inven/equip",
"Display equip/inven",
NULL,
"Display character",
"Show visible monsters",
"Display IRC messages",
"Display messages",
"Display overhead view",
"Display monster recall",
"Display object recall",
NULL,
"Display snap-shot",
NULL,
NULL,
"Display borg messages",
"Display borg status",
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL
};
/*
* Available Options
*
* Option Screen Sets:
*
* Set 1: User Interface
* Set 2: Disturbance
* Set 3: Inventory
* Set 4: Game Play
* Set 5: ToME
* Set 6: Birth
*
* Note that bits 28-31 of set 0 are currently unused.
*/
option_type option_info[] =
{
/*** User-Interface ***/
{ &rogue_like_commands, FALSE, 1, 0,
"rogue_like_commands", "Rogue-like commands" },
{ &quick_messages, TRUE, 1, 1,
"quick_messages", "Activate quick messages" },
{ &other_query_flag, FALSE, 1, 2,
"other_query_flag", "Prompt for various information" },
{ &carry_query_flag, FALSE, 1, 3,
"carry_query_flag", "Prompt before picking things up" },
{ &use_old_target, FALSE, 1, 4,
"use_old_target", "Use old target by default" },
{ &always_pickup, FALSE, 1, 5,
"always_pickup", "Pick things up by default" },
{ &prompt_pickup_heavy, TRUE, 1, 6,
"prompt_pickup_heavy", "Prompt before picking up heavy objects" },
{ &always_repeat, TRUE, 1, 7,
"always_repeat", "Repeat obvious commands" },
{ &depth_in_feet, FALSE, 1, 8,
"depth_in_feet", "Show dungeon level in feet" },
{ &stack_force_notes, TRUE, 1, 9,
"stack_force_notes", "Merge inscriptions when stacking" },
{ &stack_force_costs, FALSE, 1, 10,
"stack_force_costs", "Merge discounts when stacking" },
{ &show_labels, TRUE, 1, 11,
"show_labels", "Show labels in object listings" },
{ &show_weights, TRUE, 1, 12,
"show_weights", "Show weights in object listings" },
{ &show_inven_graph, TRUE, 1, 13,
"show_inven_graph", "Show graphics in inventory list" },
{ &show_equip_graph, TRUE, 1, 14,
"show_equip_graph", "Show graphics in equipment list" },
{ &show_store_graph, TRUE, 1, 15,
"show_store_graph", "Show graphics in stores" },
{ &show_choices, TRUE, 1, 16,
"show_choices", "Show choices in certain sub-windows" },
{ &show_details, TRUE, 1, 17,
"show_details", "Show details in certain sub-windows" },
{ &ring_bell, FALSE, 1, 18,
"ring_bell", "Audible bell (on errors, etc)" },
/* Changed to default to FALSE -- it's so extremely annoying!!! -TY */
{ &use_color, TRUE, 1, 19,
"use_color", "Use color if possible (slow)" },
/*** Disturbance ***/
{ &find_ignore_stairs, FALSE, 2, 0,
"find_ignore_stairs", "Run past stairs" },
{ &find_ignore_doors, TRUE, 2, 1,
"find_ignore_doors", "Run through open doors" },
{ &find_cut, FALSE, 2, 2,
"find_cut", "Run past known corners" },
{ &find_examine, TRUE, 2, 3,
"find_examine", "Run into potential corners" },
{ &disturb_move, FALSE, 2, 4,
"disturb_move", "Disturb whenever any monster moves" },
{ &disturb_near, TRUE, 2, 5,
"disturb_near", "Disturb whenever viewable monster moves" },
{ &disturb_panel, TRUE, 2, 6,
"disturb_panel", "Disturb whenever map panel changes" },
{ &disturb_detect, TRUE, 2, 21,
"disturb_detect", "Disturb whenever leaving trap-detected area" },
{ &disturb_state, TRUE, 2, 7,
"disturb_state", "Disturb whenever player state changes" },
{ &disturb_minor, TRUE, 2, 8,
"disturb_minor", "Disturb whenever boring things happen" },
{ &disturb_other, FALSE, 2, 9,
"disturb_other", "Disturb whenever random things happen" },
{ &alert_hitpoint, FALSE, 2, 10,
"alert_hitpoint", "Alert user to critical hitpoints" },
{ &alert_failure, FALSE, 2, 11,
"alert_failure", "Alert user to various failures" },
{ &last_words, TRUE, 2, 12,
"last_words", "Get last words when the character dies" },
{ &speak_unique, TRUE, 2, 13,
"speak_unique", "Allow shopkeepers and uniques to speak" },
{ &auto_destroy, TRUE, 2, 14,
"auto_destroy", "No query to destroy known worthless items" },
{ &wear_confirm, TRUE, 2, 15,
"confirm_wear", "Confirm to wear/wield known cursed items" },
{ &confirm_stairs, FALSE, 2, 16,
"confirm_stairs", "Prompt before exiting a dungeon level" },
{ &disturb_pets, FALSE, 2, 17,
"disturb_pets", "Disturb when visible pets move" },
#ifdef ALLOW_EASY_OPEN
{ &easy_open, TRUE, 2, 18,
"easy_open", "Automatically open doors" },
#endif /* ALLOW_EASY_OPEN */
#ifdef ALLOW_EASY_DISARM
{ &easy_disarm, TRUE, 2, 19,
"easy_disarm", "Automatically disarm traps" },
#endif /* ALLOW_EASY_DISARM */
{ &easy_tunnel, FALSE, 2, 20,
"easy_tunnel", "Automatically tunnel walls" },
/*** Game-Play ***/
{ &auto_haggle, TRUE, 3, 0,
"auto_haggle", "Auto-haggle in stores" },
{ &auto_scum, TRUE, 3, 1,
"auto_scum", "Auto-scum for good levels" },
{ &stack_allow_items, TRUE, 3, 2,
"stack_allow_items", "Allow weapons and armour to stack" },
{ &stack_allow_wands, TRUE, 3, 3,
"stack_allow_wands", "Allow wands/staffs/rods to stack" },
{ &expand_look, FALSE, 3, 4,
"expand_look", "Expand the power of the look command" },
{ &expand_list, FALSE, 3, 5,
"expand_list", "Expand the power of the list commands" },
{ &view_perma_grids, TRUE, 3, 6,
"view_perma_grids", "Map remembers all perma-lit grids" },
{ &view_torch_grids, FALSE, 3, 7,
"view_torch_grids", "Map remembers all torch-lit grids" },
{ &monster_lite, TRUE, 3, 19,
"monster_lite", "Allow some monsters to carry light" },
{ &dungeon_align, TRUE, 3, 8,
"dungeon_align", "Generate dungeons with aligned rooms" },
{ &dungeon_stair, TRUE, 3, 9,
"dungeon_stair", "Generate dungeons with connected stairs" },
{ &flow_by_sound, FALSE, 3, 10,
"flow_by_sound", "Monsters chase current location (v.slow)" },
{ &flow_by_smell, FALSE, 3, 11,
"flow_by_smell", "Monsters chase recent locations (v.slow)" },
{ &player_symbols, FALSE, 3, 12,
"player_symbols", "Use special symbols for the player char"},
{ &plain_descriptions, TRUE, 3, 13,
"plain_descriptions", "Plain object descriptions" },
{ &smart_learn, FALSE, 3, 14,
"smart_learn", "Monsters learn from their mistakes" },
{ &smart_cheat, FALSE, 3, 15,
"smart_cheat", "Monsters exploit players weaknesses" },
{ &stupid_monsters, FALSE, 3, 16,
"stupid_monsters", "Monsters behave stupidly" },
{ &small_levels, TRUE, 3, 17,
"small_levels", "Allow unusually small dungeon levels" },
{ &empty_levels, TRUE, 3, 18,
"empty_levels", "Allow empty 'arena' levels" },
/*** Efficiency ***/
{ &view_reduce_lite, FALSE, 4, 0,
"view_reduce_lite", "Reduce lite-radius when running" },
{ &view_reduce_view, FALSE, 4, 1,
"view_reduce_view", "Reduce view-radius in town" },
{ &avoid_abort, FALSE, 4, 2,
"avoid_abort", "Avoid checking for user abort" },
{ &avoid_shimmer, FALSE, 4, 17,
"avoid_shimmer", "Avoid extra shimmering (fast)" },
{ &avoid_other, FALSE, 4, 3,
"avoid_other", "Avoid processing special colors (fast)" },
{ &flush_failure, TRUE, 4, 4,
"flush_failure", "Flush input on various failures" },
{ &flush_disturb, FALSE, 4, 5,
"flush_disturb", "Flush input whenever disturbed" },
{ &flush_command, FALSE, 4, 6,
"flush_command", "Flush input before every command" },
{ &fresh_before, TRUE, 4, 7,
"fresh_before", "Flush output before every command" },
{ &fresh_after, FALSE, 4, 8,
"fresh_after", "Flush output after every command" },
{ &fresh_message, FALSE, 4, 9,
"fresh_message", "Flush output after every message" },
{ &compress_savefile, TRUE, 4, 10,
"compress_savefile", "Compress messages in savefiles" },
{ &hilite_player, FALSE, 4, 11,
"hilite_player", "Hilite the player with the cursor" },
{ &view_yellow_lite, FALSE, 4, 12,
"view_yellow_lite", "Use special colors for torch-lit grids" },
{ &view_bright_lite, FALSE, 4, 13,
"view_bright_lite", "Use special colors for 'viewable' grids" },
{ &view_granite_lite, FALSE, 4, 14,
"view_granite_lite", "Use special colors for wall grids (slow)" },
{ &view_special_lite, FALSE, 4, 15,
"view_special_lite", "Use special colors for floor grids (slow)" },
{ ¢er_player, FALSE, 4, 16,
"center_player", "Center the view on the player (very slow)" },
/*** ToME options ***/
#if 0 /* It's controlled by insanity instead :) - pelpel */
{ &flavored_attacks, TRUE, 5, 0,
"flavored_attacks", "Show silly messages when fighting" },
#endif /* 0 */
{ &option_ingame_help, TRUE, 5, 1,
"ingame_help", "Ingame contextual help" },
{ &exp_need, FALSE, 5, 2,
"exp_need", "Show the experience needed for next level" },
{ &autoload_old_colors, FALSE, 5, 3,
"old_colors", "Use the old(Z) coloring scheme(reload the game)" },
{ &auto_more, FALSE, 5, 4,
"auto_more", "Automatically clear '-more-' prompts" },
{ &player_char_health, TRUE, 5, 6,
"player_char_health", "Player char represent his/her health" },
{ &linear_stats, TRUE, 5, 7,
"linear_stats", "Stats are represented in a linear way" },
{ &inventory_no_move, FALSE, 5, 8,
"inventory_no_move", "In option windows, just omit the select char" },
/*** Birth Options ***/
#if 0 /* XXX free -- no more used */
{ &vanilla_town, FALSE, 6, 0,
"vanilla_town", "Use 'vanilla' town without quests and wilderness" },
#endif
{ &maximize, TRUE, 6, 1,
"maximize", "Maximise stats" },
{ &preserve, TRUE, 6, 2,
"preserve", "Preserve artifacts" },
{ &autoroll, TRUE, 6, 3,
"autoroll", "Specify 'minimal' stats" },
{ &point_based, FALSE, 6, 17,
"point_based", "Generate character using a point system" },
#if 0
{ &special_lvls, TRUE, 6, 4,
"special_lvls", "Allow the use of special, unique, levels" },
#endif
{ &permanent_levels, FALSE, 6, 5,
"permanent_levels", "Generate persistent dungeons [EXPERIMENTAL]" },
{ &ironman_rooms, FALSE, 6, 6,
"ironman_rooms", "Always generate very unusual rooms" },
{ &take_notes, TRUE, 6, 7,
"take_notes", "Allow notes to be written to a file" },
{ &auto_notes, TRUE, 6, 8,
"auto_notes", "Automatically note important events" },
#if 0 /* when Ill get some ideas */
{ &rand_birth, FALSE, 6, 9,
"rand_birth", "Random present at birth" },
#endif
{ &fast_autoroller, FALSE, 6, 10,
"fast_autoroller", "Fast autoroller(NOT on multiuser systems)" },
{ &joke_monsters, FALSE, 6, 14,
"joke_monsters", "Allow use of some 'joke' monsters" },
/* XXX */
{ &always_small_level, FALSE, 6, 16,
"always_small_level", "Always make small levels" },
{ &fate_option, TRUE, 6, 18,
"fate_option", "You can receive fates, good or bad" },
/* XXX 17 is used BEFORE */
/*** Stacking ***/
{ &testing_stack, TRUE, 7, 0,
"testing_stack", "Allow objects to stack on floor" },
{ &testing_carry, TRUE, 7, 1,
"testing_carry", "Allow monsters to carry objects" },
/*** End of Table ***/
{ NULL, 0, 0, 0,
NULL, NULL }
};
cptr chaos_patrons[MAX_PATRON] =
{
"Slortar",
"Mabelode",
"Chardros",
"Hionhurn",
"Xiombarg",
"Pyaray",
"Balaan",
"Arioch",
"Eequor",
"Narjhan",
"Balo",
"Khorne",
"Slaanesh",
"Nurgle",
"Tzeentch",
"Khaine"
};
int chaos_stats[MAX_PATRON] =
{
A_CON, /* Slortar */
A_CON, /* Mabelode */
A_STR, /* Chardros */
A_STR, /* Hionhurn */
A_STR, /* Xiombarg */
A_INT, /* Pyaray */
A_STR, /* Balaan */
A_INT, /* Arioch */
A_CON, /* Eequor */
A_CHR, /* Narjhan */
-1, /* Balo */
A_STR, /* Khorne */
A_CHR, /* Slaanesh */
A_CON, /* Nurgle */
A_INT, /* Tzeentch */
A_STR, /* Khaine */
};
int chaos_rewards[MAX_PATRON][20] =
{
/* Slortar the Old: */
{
REW_WRATH, REW_CURSE_WP, REW_CURSE_AR, REW_RUIN_ABL, REW_LOSE_ABL,
REW_IGNORE, REW_IGNORE, REW_IGNORE, REW_POLY_WND, REW_POLY_SLF,
REW_POLY_SLF, REW_POLY_SLF, REW_GAIN_ABL, REW_GAIN_ABL, REW_GAIN_EXP,
REW_GOOD_OBJ, REW_CHAOS_WP, REW_GREA_OBJ, REW_AUGM_ABL, REW_AUGM_ABL
},
/* Mabelode the Faceless: */
{
REW_WRATH, REW_CURSE_WP, REW_CURSE_AR, REW_H_SUMMON, REW_SUMMON_M,
REW_SUMMON_M, REW_IGNORE, REW_IGNORE, REW_POLY_WND, REW_POLY_WND,
REW_POLY_SLF, REW_HEAL_FUL, REW_HEAL_FUL, REW_GAIN_ABL, REW_SER_UNDE,
REW_CHAOS_WP, REW_GOOD_OBJ, REW_GOOD_OBJ, REW_GOOD_OBS, REW_GOOD_OBS
},
/* Chardros the Reaper: */
{
REW_WRATH, REW_WRATH, REW_HURT_LOT, REW_PISS_OFF, REW_H_SUMMON,
REW_SUMMON_M, REW_IGNORE, REW_IGNORE, REW_DESTRUCT, REW_SER_UNDE,
REW_GENOCIDE, REW_MASS_GEN, REW_MASS_GEN, REW_DISPEL_C, REW_GOOD_OBJ,
REW_CHAOS_WP, REW_GOOD_OBS, REW_GOOD_OBS, REW_AUGM_ABL, REW_AUGM_ABL
},
/* Hionhurn the Executioner: */
{
REW_WRATH, REW_WRATH, REW_CURSE_WP, REW_CURSE_AR, REW_RUIN_ABL,
REW_IGNORE, REW_IGNORE, REW_SER_UNDE, REW_DESTRUCT, REW_GENOCIDE,
REW_MASS_GEN, REW_MASS_GEN, REW_HEAL_FUL, REW_GAIN_ABL, REW_GAIN_ABL,
REW_CHAOS_WP, REW_GOOD_OBS, REW_GOOD_OBS, REW_AUGM_ABL, REW_AUGM_ABL
},
/* Xiombarg the Sword-Queen: */
{
REW_TY_CURSE, REW_TY_CURSE, REW_PISS_OFF, REW_RUIN_ABL, REW_LOSE_ABL,
REW_IGNORE, REW_POLY_SLF, REW_POLY_SLF, REW_POLY_WND, REW_POLY_WND,
REW_GENOCIDE, REW_DISPEL_C, REW_GOOD_OBJ, REW_GOOD_OBJ, REW_SER_MONS,
REW_GAIN_ABL, REW_CHAOS_WP, REW_GAIN_EXP, REW_AUGM_ABL, REW_GOOD_OBS
},
/* Pyaray the Tentacled Whisperer of Impossible Secretes: */
{
REW_WRATH, REW_TY_CURSE, REW_PISS_OFF, REW_H_SUMMON, REW_H_SUMMON,
REW_IGNORE, REW_IGNORE, REW_IGNORE, REW_POLY_WND, REW_POLY_SLF,
REW_POLY_SLF, REW_SER_DEMO, REW_HEAL_FUL, REW_GAIN_ABL, REW_GAIN_ABL,
REW_CHAOS_WP, REW_DO_HAVOC, REW_GOOD_OBJ, REW_GREA_OBJ, REW_GREA_OBS
},
/* Balaan the Grim: */
{
REW_TY_CURSE, REW_HURT_LOT, REW_CURSE_WP, REW_CURSE_AR, REW_RUIN_ABL,
REW_SUMMON_M, REW_LOSE_EXP, REW_POLY_SLF, REW_POLY_SLF, REW_POLY_WND,
REW_SER_UNDE, REW_HEAL_FUL, REW_HEAL_FUL, REW_GAIN_EXP, REW_GAIN_EXP,
REW_CHAOS_WP, REW_GOOD_OBJ, REW_GOOD_OBS, REW_GREA_OBS, REW_AUGM_ABL
},
/* Arioch, Duke of Hell: */
{
REW_WRATH, REW_PISS_OFF, REW_RUIN_ABL, REW_LOSE_EXP, REW_H_SUMMON,
REW_IGNORE, REW_IGNORE, REW_IGNORE, REW_IGNORE, REW_POLY_SLF,
REW_POLY_SLF, REW_MASS_GEN, REW_SER_DEMO, REW_HEAL_FUL, REW_CHAOS_WP,
REW_CHAOS_WP, REW_GOOD_OBJ, REW_GAIN_EXP, REW_GREA_OBJ, REW_AUGM_ABL
},
/* Eequor, Blue Lady of Dismay: */
{
REW_WRATH, REW_TY_CURSE, REW_PISS_OFF, REW_CURSE_WP, REW_RUIN_ABL,
REW_IGNORE, REW_IGNORE, REW_POLY_SLF, REW_POLY_SLF, REW_POLY_WND,
REW_GOOD_OBJ, REW_GOOD_OBJ, REW_SER_MONS, REW_HEAL_FUL, REW_GAIN_EXP,
REW_GAIN_ABL, REW_CHAOS_WP, REW_GOOD_OBS, REW_GREA_OBJ, REW_AUGM_ABL
},
/* Narjhan, Lord of Beggars: */
{
REW_WRATH, REW_CURSE_AR, REW_CURSE_WP, REW_CURSE_WP, REW_CURSE_AR,
REW_IGNORE, REW_IGNORE, REW_IGNORE, REW_POLY_SLF, REW_POLY_SLF,
REW_POLY_WND, REW_HEAL_FUL, REW_HEAL_FUL, REW_GAIN_EXP, REW_AUGM_ABL,
REW_GOOD_OBJ, REW_GOOD_OBJ, REW_CHAOS_WP, REW_GREA_OBJ, REW_GREA_OBS
},
/* Balo the Jester: */
{
REW_WRATH, REW_SER_DEMO, REW_CURSE_WP, REW_CURSE_AR, REW_LOSE_EXP,
REW_GAIN_ABL, REW_LOSE_ABL, REW_POLY_WND, REW_POLY_SLF, REW_IGNORE,
REW_DESTRUCT, REW_MASS_GEN, REW_CHAOS_WP, REW_GREA_OBJ, REW_HURT_LOT,
REW_AUGM_ABL, REW_RUIN_ABL, REW_H_SUMMON, REW_GREA_OBS, REW_AUGM_ABL
},
/* Khorne the Bloodgod: */
{
REW_WRATH, REW_HURT_LOT, REW_HURT_LOT, REW_H_SUMMON, REW_H_SUMMON,
REW_IGNORE, REW_IGNORE, REW_IGNORE, REW_SER_MONS, REW_SER_DEMO,
REW_POLY_SLF, REW_POLY_WND, REW_HEAL_FUL, REW_GOOD_OBJ, REW_GOOD_OBJ,
REW_CHAOS_WP, REW_GOOD_OBS, REW_GOOD_OBS, REW_GREA_OBJ, REW_GREA_OBS
},
/* Slaanesh: */
{
REW_WRATH, REW_PISS_OFF, REW_PISS_OFF, REW_RUIN_ABL, REW_LOSE_ABL,
REW_LOSE_EXP, REW_IGNORE, REW_IGNORE, REW_POLY_WND, REW_SER_DEMO,
REW_POLY_SLF, REW_HEAL_FUL, REW_HEAL_FUL, REW_GOOD_OBJ, REW_GAIN_EXP,
REW_GAIN_EXP, REW_CHAOS_WP, REW_GAIN_ABL, REW_GREA_OBJ, REW_AUGM_ABL
},
/* Nurgle: */
{
REW_WRATH, REW_PISS_OFF, REW_HURT_LOT, REW_RUIN_ABL, REW_LOSE_ABL,
REW_LOSE_EXP, REW_IGNORE, REW_IGNORE, REW_IGNORE, REW_POLY_SLF,
REW_POLY_SLF, REW_POLY_WND, REW_HEAL_FUL, REW_GOOD_OBJ, REW_GAIN_ABL,
REW_GAIN_ABL, REW_SER_UNDE, REW_CHAOS_WP, REW_GREA_OBJ, REW_AUGM_ABL
},
/* Tzeentch: */
{
REW_WRATH, REW_CURSE_WP, REW_CURSE_AR, REW_RUIN_ABL, REW_LOSE_ABL,
REW_LOSE_EXP, REW_IGNORE, REW_POLY_SLF, REW_POLY_SLF, REW_POLY_SLF,
REW_POLY_SLF, REW_POLY_WND, REW_HEAL_FUL, REW_CHAOS_WP, REW_GREA_OBJ,
REW_GAIN_ABL, REW_GAIN_ABL, REW_GAIN_EXP, REW_GAIN_EXP, REW_AUGM_ABL
},
/* Khaine: */
{
REW_WRATH, REW_HURT_LOT, REW_PISS_OFF, REW_LOSE_ABL, REW_LOSE_EXP,
REW_IGNORE, REW_IGNORE, REW_DISPEL_C, REW_DO_HAVOC, REW_DO_HAVOC,
REW_POLY_SLF, REW_POLY_SLF, REW_GAIN_EXP, REW_GAIN_ABL, REW_GAIN_ABL,
REW_SER_MONS, REW_GOOD_OBJ, REW_CHAOS_WP, REW_GREA_OBJ, REW_GOOD_OBS
}
};
/* Names used for random artifact name generation */
cptr artifact_names_list =
"adanedhel\n"
"adurant\n"
"aeglos\n"
"aegnor\n"
"aelin\n"
"aeluin\n"
"aerandir\n"
"aerin\n"
"agarwaen\n"
"aglareb\n"
"aglarond\n"
"aglon\n"
"ainulindale\n"
"ainur\n"
"alcarinque\n"
"aldaron\n"
"aldudenie\n"
"almaren\n"
"alqualonde\n"
"aman\n"
"amandil\n"
"amarie\n"
"amarth\n"
"amlach\n"
"amon\n"
"amras\n"
"amrod\n"
"anach\n"
"anar\n"
"anarion\n"
"ancalagon\n"
"ancalimon\n"
"anarrima\n"
"andor\n"
"andram\n"
"androth\n"
"anduin\n"
"andunie\n"
"anfauglir\n"
"anfauglith\n"
"angainor\n"
"angband\n"
"anghabar\n"
"anglachel\n"
"angrenost\n"
"angrim\n"
"angrist\n"
"angrod\n"
"anguirel\n"
"annael\n"
"annatar\n"
"annon\n"
"annuminas\n"
"apanonar\n"
"aradan\n"
"aragorn\n"
"araman\n"
"aranel\n"
"aranruth\n"
"aranwe\n"
"aras\n"
"aratan\n"
"aratar\n"
"arathorn\n"
"arda\n"
"ard-galen\n"
"aredhel\n"
"ar-feiniel\n"
"argonath\n"
"arien\n"
"armenelos\n"
"arminas\n"
"arnor\n"
"aros\n"
"arossiach\n"
"arthad\n"
"arvernien\n"
"arwen\n"
"ascar\n"
"astaldo\n"
"atalante\n"
"atanamir\n"
"atanatari\n"
"atani\n"
"aule\n"
"avallone\n"
"avari\n"
"avathar\n"
"balan\n"
"balar\n"
"balrog\n"
"barad\n"
"baragund\n"
"barahir\n"
"baran\n"
"baranduin\n"
"bar\n"
"bauglir\n"
"beleg\n"
"belegaer\n"
"belegost\n"
"belegund\n"
"beleriand\n"
"belfalas\n"
"belthil\n"
"belthronding\n"
"beor\n"
"beraid\n"
"bereg\n"
"beren\n"
"boromir\n"
"boron\n"
"bragollach\n"
"brandir\n"
"bregolas\n"
"bregor\n"
"brethil\n"
"brilthor\n"
"brithiach\n"
"brithombar\n"
"brithon\n"
"cabed\n"
"calacirya\n"
"calaquendi\n"
"calenardhon\n"
"calion\n"
"camlost\n"
"caragdur\n"
"caranthir\n"
"carcharoth\n"
"cardolan\n"
"carnil\n"
"celeborn\n"
"celebrant\n"
"celebrimbor\n"
"celebrindal\n"
"celebros\n"
"celegorm\n"
"celon\n"
"cirdan\n"
"cirith\n"
"cirth\n"
"ciryatan\n"
"ciryon\n"
"coimas\n"
"corollaire\n"
"crissaegrim\n"
"cuarthal\n"
"cuivienen\n"
"culurien\n"
"curufin\n"
"curufinwe\n"
"curunir\n"
"cuthalion\n"
"daedeloth\n"
"daeron\n"
"dagnir\n"
"dagor\n"
"dagorlad\n"
"dairuin\n"
"danwedh\n"
"delduwath\n"
"denethor\n"
"dimbar\n"
"dimrost\n"
"dinen\n"
"dior\n"
"dirnen\n"
"dolmed\n"
"doriath\n"
"dorlas\n"
"dorthonion\n"
"draugluin\n"
"drengist\n"
"duath\n"
"duinath\n"
"duilwen\n"
"dunedain\n"
"dungortheb\n"
"earendil\n"
"earendur\n"
"earnil\n"
"earnur\n"
"earrame\n"
"earwen\n"
"echor\n"
"echoriath\n"
"ecthelion\n"
"edain\n"
"edrahil\n"
"eglador\n"
"eglarest\n"
"eglath\n"
"eilinel\n"
"eithel\n"
"ekkaia\n"
"elbereth\n"
"eldalie\n"
"eldalieva\n"
"eldamar\n"
"eldar\n"
"eledhwen\n"
"elemmire\n"
"elende\n"
"elendil\n"
"elendur\n"
"elenna\n"
"elentari\n"
"elenwe\n"
"elerrina\n"
"elleth\n"
"elmoth\n"
"elostirion\n"
"elrond\n"
"elros\n"
"elu\n"
"eluchil\n"
"elured\n"
"elurin\n"
"elwe\n"
"elwing\n"
"emeldir\n"
"endor\n"
"engrin\n"
"engwar\n"
"eol\n"
"eonwe\n"
"ephel\n"
"erchamion\n"
"ereb\n"
"ered\n"
"erech\n"
"eregion\n"
"ereinion\n"
"erellont\n"
"eressea\n"
"eriador\n"
"eru\n"
"esgalduin\n"
"este\n"
"estel\n"
"estolad\n"
"ethir\n"
"ezellohar\n"
"faelivrin\n"
"falas\n"
"falathar\n"
"falathrim\n"
"falmari\n"
"faroth\n"
"fauglith\n"
"feanor\n"
"feanturi\n"
"felagund\n"
"finarfin\n"
"finduilas\n"
"fingolfin\n"
"fingon\n"
"finwe\n"
"firimar\n"
"formenos\n"
"fornost\n"
"frodo\n"
"fuin\n"
"fuinur\n"
"gabilgathol\n"
"galad\n"
"galadriel\n"
"galathilion\n"
"galdor\n"
"galen\n"
"galvorn\n"
"gandalf\n"
"gaurhoth\n"
"gelion\n"
"gelmir\n"
"gelydh\n"
"gil\n"
"gildor\n"
"giliath\n"
"ginglith\n"
"girith\n"
"glaurung\n"
"glingal\n"
"glirhuin\n"
"gloredhel\n"
"glorfindel\n"
"golodhrim\n"
"gondolin\n"
"gondor\n"
"gonnhirrim\n"
"gorgoroth\n"
"gorlim\n"
"gorthaur\n"
"gorthol\n"
"gothmog\n"
"guilin\n"
"guinar\n"
"guldur\n"
"gundor\n"
"gurthang\n"
"gwaith\n"
"gwareth\n"
"gwindor\n"
"hadhodrond\n"
"hador\n"
"haladin\n"
"haldad\n"
"haldan\n"
"haldar\n"
"haldir\n"
"haleth\n"
"halmir\n"
"handir\n"
"harad\n"
"hareth\n"
"hathaldir\n"
"hathol\n"
"haudh\n"
"helcar\n"
"helcaraxe\n"
"helevorn\n"
"helluin\n"
"herumor\n"
"herunumen\n"
"hildorien\n"
"himlad\n"
"himring\n"
"hirilorn\n"
"hisilome\n"
"hithaeglir\n"
"hithlum\n"
"hollin\n"
"huan\n"
"hunthor\n"
"huor\n"
"hurin\n"
"hyarmendacil\n"
"hyarmentir\n"
"iant\n"
"iaur\n"
"ibun\n"
"idril\n"
"illuin\n"
"ilmare\n"
"ilmen\n"
"iluvatar\n"
"imlach\n"
"imladris\n"
"indis\n"
"ingwe\n"
"irmo\n"
"isil\n"
"isildur\n"
"istari\n"
"ithil\n"
"ivrin\n"
"kelvar\n"
"kementari\n"
"ladros\n"
"laiquendi\n"
"lalaith\n"
"lamath\n"
"lammoth\n"
"lanthir\n"
"laurelin\n"
"leithian\n"
"legolin\n"
"lembas\n"
"lenwe\n"
"linaewen\n"
"lindon\n"
"lindorie\n"
"loeg\n"
"lomelindi\n"
"lomin\n"
"lomion\n"
"lorellin\n"
"lorien\n"
"lorindol\n"
"losgar\n"
"lothlann\n"
"lothlorien\n"
"luin\n"
"luinil\n"
"lumbar\n"
"luthien\n"
"mablung\n"
"maedhros\n"
"maeglin\n"
"maglor\n"
"magor\n"
"mahanaxar\n"
"mahtan\n"
"maiar\n"
"malduin\n"
"malinalda\n"
"mandos\n"
"manwe\n"
"mardil\n"
"melian\n"
"melkor\n"
"menegroth\n"
"meneldil\n"
"menelmacar\n"
"meneltarma\n"
"minas\n"
"minastir\n"
"mindeb\n"
"mindolluin\n"
"mindon\n"
"minyatur\n"
"mirdain\n"
"miriel\n"
"mithlond\n"
"mithrandir\n"
"mithrim\n"
"mordor\n"
"morgoth\n"
"morgul\n"
"moria\n"
"moriquendi\n"
"mormegil\n"
"morwen\n"
"nahar\n"
"naeramarth\n"
"namo\n"
"nandor\n"
"nargothrond\n"
"narog\n"
"narsil\n"
"narsilion\n"
"narya\n"
"nauglamir\n"
"naugrim\n"
"ndengin\n"
"neithan\n"
"neldoreth\n"
"nenar\n"
"nenning\n"
"nenuial\n"
"nenya\n"
"nerdanel\n"
"nessa\n"
"nevrast\n"
"nibin\n"
"nienna\n"
"nienor\n"
"nimbrethil\n"
"nimloth\n"
"nimphelos\n"
"nimrais\n"
"nimras\n"
"ningloron\n"
"niniel\n"
"ninniach\n"
"ninquelote\n"
"niphredil\n"
"nirnaeth\n"
"nivrim\n"
"noegyth\n"
"nogrod\n"
"noldolante\n"
"noldor\n"
"numenor\n"
"nurtale\n"
"obel\n"
"ohtar\n"
"oiolosse\n"
"oiomure\n"
"olorin\n"
"olvar\n"
"olwe\n"
"ondolinde\n"
"orfalch\n"
"ormal\n"
"orocarni\n"
"orodreth\n"
"orodruin\n"
"orome\n"
"oromet\n"
"orthanc\n"
"osgiliath\n"
"osse\n"
"ossiriand\n"
"palantir\n"
"pelargir\n"
"pelori\n"
"periannath\n"
"quendi\n"
"quenta\n"
"quenya\n"
"radagast\n"
"radhruin\n"
"ragnor\n"
"ramdal\n"
"rana\n"
"rathloriel\n"
"rauros\n"
"region\n"
"rerir\n"
"rhovanion\n"
"rhudaur\n"
"rhun\n"
"rhunen\n"
"rian\n"
"ringil\n"
"ringwil\n"
"romenna\n"
"rudh\n"
"rumil\n"
"saeros\n"
"salmar\n"
"saruman\n"
"sauron\n"
"serech\n"
"seregon\n"
"serinde\n"
"shelob\n"
"silmarien\n"
"silmaril\n"
"silpion\n"
"sindar\n"
"singollo\n"
"sirion\n"
"soronume\n"
"sul\n"
"sulimo\n"
"talath\n"
"taniquetil\n"
"tar\n"
"taras\n"
"tarn\n"
"tathren\n"
"taur\n"
"tauron\n"
"teiglin\n"
"telchar\n"
"telemnar\n"
"teleri\n"
"telperion\n"
"telumendil\n"
"thalion\n"
"thalos\n"
"thangorodrim\n"
"thargelion\n"
"thingol\n"
"thoronath\n"
"thorondor\n"
"thranduil\n"
"thuringwethil\n"
"tilion\n"
"tintalle\n"
"tinuviel\n"
"tirion\n"
"tirith\n"
"tol\n"
"tulkas\n"
"tumhalad\n"
"tumladen\n"
"tuna\n"
"tuor\n"
"turambar\n"
"turgon\n"
"turin\n"
"uial\n"
"uilos\n"
"uinen\n"
"ulairi\n"
"ulmo\n"
"ulumuri\n"
"umanyar\n"
"umarth\n"
"umbar\n"
"ungoliant\n"
"urthel\n"
"uruloki\n"
"utumno\n"
"vaire\n"
"valacirca\n"
"valandil\n"
"valaquenta\n"
"valar\n"
"valaraukar\n"
"valaroma\n"
"valier\n"
"valimar\n"
"valinor\n"
"valinoreva\n"
"valmar\n"
"vana\n"
"vanyar\n"
"varda\n"
"vasa\n"
"vilya\n"
"vingilot\n"
"vinyamar\n"
"voronwe\n"
"wethrin\n"
"wilwarin\n"
"yavanna\n"
;
martial_arts ma_blows[MAX_MA] =
{
{ "You punch %s.", 1, 0, 2, 4, 0, 0 },
{ "You kick %s.", 2, 0, 2, 6, 0, 0 },
{ "You strike %s.", 3, 0, 2, 7, 0, 0 },
{ "You hit %s with your knee.", 5, 5, 4, 3, MA_KNEE, 0 },
{ "You hit %s with your elbow.", 7, 5, 2, 8, 0, 0 },
{ "You butt %s.", 9, 10, 4, 5, 0, 0 },
{ "You kick %s.", 11, 10, 6, 4, MA_SLOW, 0 },
{ "You uppercut %s.", 13, 12, 8, 4, MA_STUN, 6 },
{ "You double-kick %s.", 16, 15, 10, 4, MA_STUN, 8 },
{ "You hit %s with a Cat's Claw.", 20, 20, 10, 5, 0, 0 },
{ "You hit %s with a jump kick.", 25, 25, 10, 6, MA_STUN, 10 },
{ "You hit %s with an Eagle's Claw.", 29, 25, 12, 6, 0, 0 },
{ "You hit %s with a circle kick.", 33, 30, 12, 8, MA_STUN, 10 },
{ "You hit %s with an Iron Fist.", 37, 35, 16, 8, MA_STUN, 10 },
{ "You hit %s with a flying kick.", 41, 35, 16, 10, MA_STUN, 12 },
{ "You hit %s with a Dragon Fist.", 45, 35, 20, 10, MA_STUN, 16 },
{ "You hit %s with a Crushing Blow.", 48, 35, 20, 12, MA_STUN, 18 },
};
/*
* cptr desc; A verbose attack description
* int min_level; Minimum level to use
* int chance; Chance of 'success
* int dd; Damage dice
* int ds; Damage sides
* s16b effect; Special effects
* s16b power; Special effects power
*/
martial_arts bear_blows[MAX_BEAR] =
{
{ "You claw %s.", 1, 0, 3, 4, MA_STUN, 4 },
{ "You swat %s.", 4, 0, 4, 4, MA_WOUND, 20 },
{ "You bite %s.", 9, 2, 4, 4, MA_WOUND, 30 },
{ "You hug %s.", 15, 5, 6, 4, MA_FULL_SLOW, 0 },
{ "You swat and rake %s.", 25, 10, 6, 5, MA_STUN | MA_WOUND, 10 },
{ "You hug and claw %s.", 30, 15, 6, 6, MA_FULL_SLOW | MA_WOUND, 60 },
{ "You double swat %s.", 35, 20, 9, 7, MA_STUN | MA_WOUND, 20 },
{ "You double swat and rake %s.", 40, 25, 10, 10, MA_STUN | MA_WOUND, 25 },
};
magic_power mindcraft_powers[MAX_MINDCRAFT_POWERS] =
{
/* Level gained, cost, %fail, name, desc */
{
/* Det. monsters/traps */
1, 1, 15,
"Precognition",
"Detect monsters, traps and level layout and lights up at higher levels."
},
{
/* ~MM */
2, 1, 20,
"Neural Blast",
"Blast the minds of your foes."
},
{
/* Phase/Between gate */
3, 2, 25,
"Minor Displacement",
"Short distance teleportation"
},
{
/* Tele. Self / All */
7, 6, 35,
"Major Displacement",
"Teleport you and others at high levels."
},
{
9, 7, 50,
"Domination",
"Charm monsters"
},
{
/* Telekinetic "bolt" */
11, 7, 30,
"Pulverise",
"Fires a bolt of pure sound."
},
{
/* Psychic/physical defenses */
13, 12, 50,
"Character Armour",
"Sets up physical/elemental shield."
},
{
15, 12, 60,
"Psychometry",
"Senses/identifies objects."
},
{
/* Ball -> LOS */
18, 10, 45,
"Mind Wave",
"Projects psi waves to crush the minds of your foes."
},
{
23, 15, 50,
"Adrenaline Channeling",
"Heals you, cures you and speeds you."
},
{
/* Convert enemy HP to mana */
25, 10, 40,
"Psychic Drain",
"Drain your foes' life into your mana reserves"
},
{
/* Ball -> LOS */
28, 20, 45,
"Telekinetic Wave",
"Powerful wave of pure telekinetic forces."
},
};
magic_power necro_powers[MAX_NECRO_POWERS] =
{
/* Level gained, cost, %fail, name, desc */
{
/* Bolt/beam/ball/LOS of stun/scare */
1, 2, 10,
"Horrify",
"Calls upon the darkness to stun and scare your foes."
},
{
/* Ball */
5, 6, 20,
"Raise Dead",
"Brings back your foes in the form of various undead. Also, can heal monsters."
},
{
/* Summons weapon */
12, 20, 25,
"Necromantic Teeth",
"Conjures a temporary vampiric weapon."
},
{
/* Heals when killing a monster */
20, 10, 25,
"Absorb Soul",
"Gives back some life for each kill."
},
{
/* Bolt */
30, 15, 20,
"Vampirism",
"Drain the life of your foes into your own."
},
{
/* The Death word, always bolt put your HP to 1 */
35, 100, 25,
"Death",
"Instantly kills your opponent and you, turning yourself into an undead."
},
};
magic_power mimic_powers[MAX_MIMIC_POWERS] =
{
/* Level gained, cost, %fail, name */
{
/* Use a book of lore */
1, 2, 0,
"Mimic",
"Lets you use the powers of a Cloak of Mimicry."
},
{
/* Invisibility */
10, 6, 20,
"Invisibility",
"Hides you from the sight of mortals."
},
{
/* +1 pair of legs */
25, 20, 25,
"Legs Mimicry",
"Temporarily provides a new pair of legs."
},
{
/* wall form */
30, 40, 30,
"Wall Mimicry",
"Temporarily lets you walk in walls, and ONLY in walls."
},
{
/* +1 pair of arms, +1 weapon */
35, 100, 40,
"Arms Mimicry",
"Temporarily provides a new pair of arms."
},
};
magic_power symbiotic_powers[MAX_SYMBIOTIC_POWERS] =
{
/* Level gained, cost, %fail, name */
{
1, 1, 0,
"Hypnotise",
"Hypnotise a non-moving pet to allow you to enter symbiosis(wear) with it."
},
{
1, 1, 0,
"Release",
"Release an hypnotised pet."
},
{
3, 2, 10,
"Charm Never-Moving",
"Tries to charm a never-moving monster."
},
{
5, 5, 20,
"Life Share",
"Evens out your life with your symbiote."
},
{
10, 10, 20,
"Use Minor Powers",
"Allows you to use some of the powers of your symbiote."
},
{
15, 14, 25,
"Heal Symbiote",
"Heals your symbiotic monster."
},
{
25, 30, 40,
"Use major powers",
"Allows you to use all the powers of your symbiote."
},
{
30, 35, 40,
"Summon Never-Moving Pet",
"Summons a never-moving pet."
},
{
40, 60, 70,
"Force Symbiosis",
"Allows you to use all the powers of a monster in your line of sight."
},
};
/*
* Textual translation of your god's "niceness".
*/
cptr deity_niceness[10] =
{
"a lovable deity",
"a friendly deity",
"an easygoing deity",
"a forgiving deity",
"an uncaring deity",
"a wary deity",
"an unforgiving deity",
"an impatient deity",
"a wrathful deity",
"an easily angered deity"
};
/*
* Textual translation of your standing with your god.
*/
cptr deity_standing[11] =
{
"cursed",
"persecuted",
"punished",
"despised",
"disliked",
"watched",
"unnoticed",
"noticed",
"rewarded",
"favored",
"championed"
};
/*
* Name and description (max. 10 lines) of the gods.
* Only the first four lines are printed at birth.
*/
deity_type deity_info_init[MAX_GODS_INIT] =
{
{
"Nobody",
{
"Atheist",
"",
"",
"",
"",
"",
"",
"",
"",
"",
},
},
{
"Eru Iluvatar",
{
"He is the supreme god, he created the world, and most of its inhabitants.",
"",
"",
"",
"",
"",
"",
"",
"",
"",
},
},
{
"Manwe Sulimo",
{
"He is the king of the Valar, most powerful of them after Melkor.",
"",
"",
"",
"",
"",
"",
"",
"",
"",
},
},
{
"Tulkas",
{
"He is the last of the Valar that came to the world, and the fiercest fighter.",
"",
"",
"",
"",
"",
"",
"",
"",
"",
},
},
{
"Melkor Bauglir",
{
"He is the most powerful of the Valar. He became corrupted and he's now ",
"the greatest threat of Arda, he is also known as Morgoth, the dark enemy.",
"",
"",
"",
"",
"",
"",
"",
"",
},
},
{
"Yavanna Kementari",
{
"She is the Vala of nature, protectress of the great forests of "
"Middle-earth.",
"",
"",
"",
"",
"",
"",
"",
"",
"",
},
},
};
/* jk - to hit, to dam, to ac, to stealth, to disarm, to saving throw */
/* this concept is taken from Adom, where Thomas Biskup thought it out, */
/* as far as I know. */
tactic_info_type tactic_info[9] =
{
/* hit dam ac stl dis sav */
{ -10, -10, + 15, + 3, + 15, + 14, "coward"}, /* 4-4 */
{ -8, -8, + 10, + 2, + 9, + 9, "meek"}, /* 4-3 */
{ -4, -4, + 5, + 1, + 5, + 5, "wary"}, /* 4-2 */
{ -2, -2, + 2, + 1, + 2, + 2, "careful"}, /* 4-1 */
{ 0, 0, 0, 0, 0, 0, "normal"}, /* 4+0 */
{ 2, 2, -2, -1, -2, -3, "confident"}, /* 4+1 */
{ 4, 4, -5, -2, -5, -7, "aggressive"}, /* 4+2 */
{ 6, 6, -10, -3, -11, -12, "furious"}, /* 4+3 */
{ 8, 12, -25, -5, -18, -18, "berserker"} /* 4+4 */
};
/*
* Random artifact activations.
*/
activation activation_info[MAX_T_ACT] =
{
{ "death", 0, ACT_DEATH },
{ "ruination", 0, ACT_RUINATION },
{ "destruction", 1000, ACT_DESTRUC },
{ "stupidity", 0, ACT_UNINT },
{ "weakness", 0, ACT_UNSTR },
{ "unhealth", 0, ACT_UNCON },
{ "ugliness", 0, ACT_UNCHR },
{ "clumsiness", 0, ACT_UNDEX },
{ "naivete", 0, ACT_UNWIS },
{ "stat loss", 0, ACT_STATLOSS },
{ "huge stat loss", 0, ACT_HISTATLOSS },
{ "experience loss", 0, ACT_EXPLOSS },
{ "huge experience loss", 0, ACT_HIEXPLOSS },
{ "teleportation", 1000, ACT_TELEPORT },
{ "monster summoning", 5, ACT_SUMMON_MONST },
{ "paralyzation", 0, ACT_PARALYZE },
{ "hallucination", 100, ACT_HALLU },
{ "poisoning", 0, ACT_POISON },
{ "hunger", 0, ACT_HUNGER },
{ "stun", 0, ACT_STUN },
{ "cuts", 0, ACT_CUTS },
{ "paranoia", 0, ACT_PARANO },
{ "confusion", 0, ACT_CONFUSION },
{ "blindness", 0, ACT_BLIND },
{ "pet summoning", 1010, ACT_PET_SUMMON },
{ "cure paralyzation", 5000, ACT_CURE_PARA },
{ "cure hallucination", 1000, ACT_CURE_HALLU },
{ "cure poison", 1000, ACT_CURE_POIS },
{ "cure hunger", 1000, ACT_CURE_HUNGER },
{ "cure stun", 1000, ACT_CURE_STUN },
{ "cure cut", 1000, ACT_CURE_CUTS },
{ "cure fear", 1000, ACT_CURE_FEAR },
{ "cure confusion", 1000, ACT_CURE_CONF },
{ "cure blindness", 1000, ACT_CURE_BLIND },
{ "cure light wounds", 500, ACT_CURE_LW },
{ "cure serious wounds", 750, ACT_CURE_MW },
{ "cure critical wounds", 1000, ACT_CURE_700 },
{ "curing", 1100, ACT_CURING },
{ "genocide", 5000, ACT_GENOCIDE },
{ "mass genocide", 10000, ACT_MASS_GENO },
{ "restoration", 2000, ACT_REST_ALL },
{ "light", 1000, ACT_LIGHT },
{ "darkness", 0, ACT_DARKNESS },
{ "teleportation", 1000, ACT_TELEPORT },
{ "level teleportation", 500, ACT_LEV_TELE },
{ "acquirement", 30000, ACT_ACQUIREMENT },
{ "something weird", 50, ACT_WEIRD },
{ "aggravation", 0, ACT_AGGRAVATE },
{ "corruption", 100, ACT_MUT },
{ "cure insanity", 2000, ACT_CURE_INSANITY },
{ "light absortion", 800, ACT_LIGHT_ABSORBTION },
#if 0 /* No more for the time being, ehehhe evil I am :> */
{ "cure corruption", 2000, ACT_CURE_MUT },
#endif
};
/*
* Possible movement type.
*/
move_info_type move_info[9] =
{
/* speed, searching, stealth, perception */
{ -10, 17, 4, 20, "slug-like"},
{ -8, 12, 4, 16, "very slow"},
{ -6, 8, 3, 10, "slow"},
{ -3, 4, 2, 6, "leisurely"},
{ 0, 0, 0, 0, "normal"},
{ 1, -4, -1, -4, "brisk"},
{ 2, -6, -4, -8, "fast"},
{ 3, -10, -7, -14, "very fast"},
{ 4, -16, -10, -20, "running"}
};
/*
* Possible inscriptions type.
*/
inscription_info_type inscription_info[MAX_INSCRIPTIONS] =
{
{ /* Nothing */
"",
0,
TRUE,
0,
},
{ /* Light up the room(Adunaic) */
"ure nimir", /* sun shine */
INSCRIP_EXEC_ENGRAVE | INSCRIP_EXEC_WALK | INSCRIP_EXEC_MONST_WALK,
FALSE,
30,
},
{ /* Darkness in room(Adunaic) */
"lomi gimli", /* night stars */
INSCRIP_EXEC_ENGRAVE | INSCRIP_EXEC_WALK | INSCRIP_EXEC_MONST_WALK,
FALSE,
10,
},
{ /* Storm(Adunaic) */
"dulgi bawiba", /* black winds */
INSCRIP_EXEC_ENGRAVE | INSCRIP_EXEC_WALK | INSCRIP_EXEC_MONST_WALK,
FALSE,
40,
},
{ /* Protection(Sindarin) */
"pedo mellon a minno", /* say friend and enter */
INSCRIP_EXEC_MONST_WALK,
FALSE,
8,
},
{ /* Dwarves summoning(Khuzdul) */
"Baruk Khazad! Khazad aimenu!", /* Axes of the Dwarves, the Dwarves are upon you! */
INSCRIP_EXEC_ENGRAVE,
FALSE,
100,
},
{ /* Open Chasm(Nandorin) */
"dunna hrassa", /* black precipice */
INSCRIP_EXEC_MONST_WALK,
FALSE,
50,
},
{ /* Blast of Black Fire(Orcish) */
"burz ghash ronk", /* black fire pool */
INSCRIP_EXEC_ENGRAVE | INSCRIP_EXEC_WALK | INSCRIP_EXEC_MONST_WALK,
FALSE,
60,
},
};
/*
* Inscriptions for pseudo-id
*/
cptr sense_desc[] =
{
"whoops",
"cursed",
"average",
"good",
"good",
"excellent",
"worthless",
"terrible",
"special",
"broken",
""
};
/*
* Flag groups used for art creation, level gaining weapons, ...
* -----
* Name,
* Price,
* Flags 1,
* Flags 2,
* Flags 3,
* Flags 4,
* ESP,
*/
flags_group flags_groups[MAX_FLAG_GROUP] =
{
{
"Fire",
TERM_L_RED,
1,
TR1_SLAY_UNDEAD | TR1_BRAND_FIRE,
TR2_RES_FIRE,
TR3_SH_FIRE | TR3_LITE1 | TR3_IGNORE_FIRE,
0,
0,
},
{
"Cold",
TERM_WHITE,
1,
TR1_SLAY_DRAGON | TR1_SLAY_DEMON | TR1_BRAND_COLD,
TR2_RES_COLD | TR2_INVIS,
TR3_SLOW_DIGEST | TR3_IGNORE_COLD,
0,
0,
},
{
"Acid",
TERM_GREEN,
3,
TR1_SLAY_ANIMAL | TR1_IMPACT | TR1_TUNNEL | TR1_BRAND_ACID,
TR2_RES_ACID,
TR3_IGNORE_ACID,
0,
0,
},
{
"Lightning",
TERM_L_BLUE,
1,
TR1_SLAY_EVIL | TR1_BRAND_ELEC,
TR2_RES_ELEC,
TR3_IGNORE_ELEC | TR3_SH_ELEC | TR3_TELEPORT,
0,
0,
},
{
"Poison",
TERM_L_GREEN,
2,
TR1_CHR | TR1_VAMPIRIC | TR1_SLAY_ANIMAL | TR1_BRAND_POIS,
TR2_SUST_CHR | TR2_RES_POIS,
TR3_DRAIN_EXP,
0,
ESP_TROLL | ESP_GIANT,
},
{
"Air",
TERM_BLUE,
5,
TR1_WIS | TR1_STEALTH | TR1_INFRA | TR1_SPEED,
TR2_RES_LITE | TR2_RES_DARK | TR2_RES_BLIND | TR2_SUST_WIS,
TR3_FEATHER | TR3_SEE_INVIS | TR3_BLESSED,
0,
ESP_GOOD,
},
{
"Earth",
TERM_L_UMBER,
5,
TR1_STR | TR1_CON | TR1_TUNNEL | TR1_BLOWS | TR1_SLAY_TROLL | TR1_SLAY_GIANT | TR1_IMPACT,
TR2_SUST_STR | TR2_SUST_CON | TR2_FREE_ACT | TR2_RES_FEAR | TR2_RES_SHARDS,
TR3_REGEN,
0,
ESP_TROLL | ESP_GIANT,
},
{
"Mind",
TERM_YELLOW,
7,
TR1_INT | TR1_SEARCH,
TR2_SUST_INT | TR2_RES_CONF | TR2_RES_FEAR,
0,
0,
ESP_ORC | ESP_TROLL | ESP_GIANT | ESP_ANIMAL | ESP_UNIQUE | ESP_SPIDER | ESP_DEMON,
},
{
"Shield",
TERM_RED,
7,
TR1_DEX,
TR2_SUST_DEX | TR2_INVIS | TR2_REFLECT | TR2_HOLD_LIFE | TR2_RES_SOUND | TR2_RES_NEXUS,
TR3_REGEN,
0,
0,
},
{
"Chaos",
TERM_VIOLET,
7,
TR1_CHAOTIC | TR1_IMPACT,
TR2_RES_CHAOS | TR2_RES_DISEN,
TR3_REGEN,
0,
ESP_ALL,
},
{
"Magic",
TERM_L_BLUE,
10,
TR1_MANA | TR1_SPELL,
TR2_RES_CHAOS | TR2_RES_DISEN,
TR3_WRAITH,
TR4_PRECOGNITION | TR4_FLY | TR4_CLONE,
0,
},
{
"Antimagic",
TERM_L_DARK,
10,
TR1_VAMPIRIC | TR1_CHAOTIC | TR1_BLOWS | TR1_SPEED,
TR2_LIFE | TR2_REFLECT | TR2_FREE_ACT | TR2_HOLD_LIFE,
TR3_NO_MAGIC | TR3_NO_TELE | TR3_SEE_INVIS,
TR4_ANTIMAGIC_10 | TR4_ANTIMAGIC_20,
0,
},
};
/* Powers */
power_type powers_type_init[POWER_MAX_INIT] =
{
{
"spit acid",
"You can spit acid.",
"You gain the ability to spit acid.",
"You lose the ability to spit acid.",
9, 9, A_DEX, 15,
},
{
"fire breath",
"You can breath fire.",
"You gain the ability to breathe fire.",
"You lose the ability to breathe fire.",
20, 10, A_CON, 18,
},
{
"hypnotic gaze",
"Your gaze is hypnotic.",
"Your eyes look mesmerising...",
"Your eyes look uninteresting.",
12, 12, A_CHR, 18,
},
{
"telekinesis",
"You are telekinetic.",
"You gain the ability to move objects telekinetically.",
"You lose the ability to move objects telekinetically.",
9, 9, A_WIS, 14,
},
{
"teleport",
"You can teleport at will.",
"You gain the power of teleportation at will.",
"You lose the power of teleportation at will.",
7, 7, A_WIS, 15,
},
{
"mind blast",
"You can mind blast your enemies.",
"You gain the power of Mind Blast.",
"You lose the power of Mind Blast.",
5, 3, A_WIS, 15,
},
{
"emit radiation",
"You can emit hard radiation at will.",
"You start emitting hard radiation.",
"You stop emitting hard radiation.",
15, 15, A_CON, 14,
},
{
"vampiric drain",
"You can drain life from a foe.",
"You become vampiric.",
"You are no longer vampiric.",
4, 5, A_CON, 9,
},
{
"smell metal",
"You can smell nearby precious metal.",
"You smell a metallic odour.",
"You no longer smell a metallic odour.",
3, 2, A_INT, 12,
},
{
"smell monsters",
"You can smell nearby monsters.",
"You smell filthy monsters.",
"You no longer smell filthy monsters.",
5, 4, A_INT, 15,
},
{
"blink",
"You can teleport yourself short distances.",
"You gain the power of minor teleportation.",
"You lose the power of minor teleportation.",
3, 3, A_WIS, 12,
},
{
"eat rock",
"You can consume solid rock.",
"The walls look delicious.",
"The walls look unappetising.",
8, 12, A_CON, 18,
},
{
"swap position",
"You can switch locations with another being.",
"You feel like walking a mile in someone else's shoes.",
"You feel like staying in your own shoes.",
15, 12, A_DEX, 16,
},
{
"shriek",
"You can emit a horrible shriek.",
"Your vocal cords get much tougher.",
"Your vocal cords get much weaker.",
4, 4, A_CON, 6,
},
{
"illuminate",
"You can emit bright light.",
"You can light up rooms with your presence.",
"You can no longer light up rooms with your presence.",
3, 2, A_INT, 10,
},
{
"detect curses",
"You can feel the danger of evil magic.",
"You can feel evil magic.",
"You can no longer feel evil magic.",
7, 14, A_WIS, 14,
},
{
"berserk",
"You can drive yourself into a berserk frenzy.",
"You feel a controlled rage.",
"You no longer feel a controlled rage.",
8, 8, A_STR, 14,
},
{
"polymorph",
"You can polymorph yourself at will.",
"Your body seems mutable.",
"Your body seems stable.",
18, 20, A_CON, 18,
},
{
"Midas touch",
"You can turn ordinary items to gold.",
"You gain the Midas touch.",
"You lose the Midas touch.",
10, 5, A_INT, 12,
},
{
"grow mold",
"You can cause mold to grow near you.",
"You feel a sudden affinity for mold.",
"You feel a sudden dislike for mold.",
1, 6, A_CON, 14,
},
{
"resist elements",
"You can harden yourself to the ravages of the elements.",
"You feel like you can protect yourself.",
"You feel like you might be vulnerable.",
10, 12, A_CON, 12,
},
{
"earthquake",
"You can bring down the dungeon around your ears.",
"You gain the ability to wreck the dungeon.",
"You lose the ability to wreck the dungeon.",
12, 12, A_STR, 16,
},
{
"eat magic",
"You can consume magic energy for your own use.",
"Your magic items look delicious.",
"Your magic items no longer look delicious.",
17, 1, A_WIS, 15,
},
{
"weigh magic",
"You can feel the strength of the magics affecting you.",
"You feel you can better understand the magic around you.",
"You no longer sense magic.",
6, 6, A_INT, 10,
},
{
"sterilise",
"You can cause mass impotence.",
"You can give everything around you a headache.",
"You hear a massed sigh of relief.",
20, 40, A_CHR, 18,
},
{
"panic hit",
"You can run for your life after hitting something.",
"You suddenly understand how thieves feel.",
"You no longer feel jumpy.",
10, 12, A_DEX, 14,
},
{
"dazzle",
"You can emit confusing, blinding radiation.",
"You gain the ability to emit dazzling lights.",
"You lose the ability to emit dazzling lights.",
7, 15, A_CHR, 8,
},
{
"spear of darkness",
"You can create a spear of darkness.",
"An illusory spear of darkness appears in your hand.",
"The spear of darkness disappear.",
7, 10, A_WIS, 9,
},
{
"recall",
"You can travel between towns and the depths.",
"You feel briefly homesick, but it passes.",
"You feel briefly homesick.",
17, 50, A_INT, 16,
},
{
"banish evil",
"You can send evil creatures directly to the Nether Realm.",
"You feel a holy wrath fill you.",
"You no longer feel a holy wrath.",
25, 25, A_WIS, 18,
},
{
"cold touch",
"You can freeze things with a touch.",
"Your hands get very cold.",
"Your hands warm up.",
2, 2, A_CON, 11,
},
{
"throw object",
"You can hurl objects with great force.",
"Your throwing arm feels much stronger.",
"Your throwing arm feels much weaker.",
1, 10, A_STR, 6,
},
{
"find secret passages",
"You can use secret passages.",
"You suddenly notice lots of hidden ways.",
"You no longer can use hidden ways.",
15, 15, A_DEX, 12,
},
{
"detect doors and traps",
"You can detect hidden doors and traps.",
"You develop an affinity for traps.",
"You no longer can detect hidden doors and traps.",
5, 3, A_WIS, 10,
},
{
"create food",
"You can create food.",
"Your cooking skills greatly improve.",
"Your cooking skills return to a normal level.",
15, 10, A_INT, 10,
},
{
"remove fear",
"You can embolden yourself.",
"You feel your fears lessening.",
"You feel your fears growing again.",
3, 5, A_WIS, 8,
},
{
"set explosive rune",
"You can set explosive runes.",
"You suddenly understand how explosive runes work.",
"You suddenly forget how explosive runes work.",
25, 35, A_INT, 15,
},
{
"stone to mud",
"You can destroy walls.",
"You can destroy walls.",
"You cannot destroy walls anymore.",
20, 10, A_STR, 12,
},
{
"poison dart",
"You can throw poisoned darts.",
"You get an infinite supply of poisoned darts.",
"You lose your infinite supply of poisoned darts.",
12, 8, A_DEX, 14,
},
{
"magic missile",
"You can cast magic missiles.",
"You suddenly understand the basics of magic.",
"You forget the basics of magic.",
2, 2, A_INT, 9,
},
{
"grow trees",
"You can grow trees.",
"You feel an affinity for trees.",
"You no longer feel an affinity for trees.",
2, 6, A_CHR, 3,
},
{
"cold breath",
"You can breath cold.",
"You gain the ability to breathe cold.",
"You lose the ability to breathe cold.",
20, 10, A_CON, 18,
},
{
"chaos breath",
"You can breath chaos.",
"You gain the ability to breathe chaos.",
"You lose the ability to breathe chaos.",
20, 10, A_CON, 18,
},
{
"elemental breath",
"You can breath the elements.",
"You gain the ability to breathe the elements.",
"You lose the ability to breathe the elements.",
20, 10, A_CON, 18,
},
{
"change the world",
"You can wreck the world around you.",
"You gain the ability to wreck the world.",
"You lose the ability to wreck the world.",
1, 30, A_CHR, 6,
},
{
"scare monster",
"You can scare monsters.",
"You gain the ability to scare monsters.",
"You lose the ability to scare monsters.",
4, 3, A_INT, 3,
},
{
"restore life",
"You can restore lost life forces.",
"You gain the ability to restore your life force.",
"You lose the ability to restore your life force.",
30, 30, A_WIS, 18,
},
{
"summon monsters",
"You can call upon monsters.",
"You gain the ability to call upon monsters.",
"You lose the ability to call upon monsters.",
0, 0, 0, 0,
},
{
"necromantic powers",
"You can use the foul necromantic magic.",
"You gain the ability to use the foul necromantic magic.",
"You lose the ability to use the foul necromantic magic.",
0, 0, 0, 0,
},
{
"Rohan Knight's Powers",
"You can use rohir powers.",
"You gain the ability to use rohir powers.",
"You lose the ability to use rohir powers.",
0, 0, 0, 0,
},
{
"Thunderlord's Powers",
"You can use thunderlords powers.",
"You gain the ability to use thunderlords powers.",
"You lose the ability to use thunderlords powers.",
0, 0, 0, 0,
},
{
"Death Mold's Powers",
"You can use the foul deathmold magic.",
"You gain the ability to use the foul deathmold magic.",
"You lose the ability to use the foul deathmold magic.",
0, 0, 0, 0,
},
{
"Hypnotise Pet",
"You can mystify pets.",
"You gain the ability to mystify pets.",
"You lose the ability to mystify pets.",
0, 0, 0, 0,
},
{
"Awaken Hypnotised Pet",
"You can wake up a pet.",
"You gain the ability to wake up a pet.",
"You lose the ability to wake up a pet.",
0, 0, 0, 0,
},
{
"Incarnate",
"You can incarnate into a body.",
"You feel the need to get a body.",
"You no longer feel the need for a new body.",
0, 0, 0, 0,
},
{
"magic map",
"You can sense what is beyond walls.",
"You feel you can sense what is beyond walls.",
"You no longer can sense what is beyond walls.",
7, 10, A_WIS, 15,
},
{
"lay trap",
"You can lay monster traps.",
"You suddenly understand how rogues work.",
"You no longer understand how rogues work.",
1, 1, A_DEX, 1,
},
{
"Merchant abilities",
"You can request items and get loans.",
"From now on you can use the merchant abilities.",
"You can no longer use the merchant abilities.",
0, 0, 0, 0,
},
{
"turn pet into companion",
"You can turn a pet into a companion.",
"You suddenly gain authority over your pets.",
"You can no longer convert pets into companions.",
2, 10, A_CHR, 10,
},
{
"turn into a bear",
"You can turn into a bear.",
"You suddenly gain beorning powers.",
"You can no longer shapeshift into a bear.",
2, 5, A_CON, 5,
},
{
"sense dodge success",
"You can sense your dodging success chance.",
"You suddenly can sense your dodging success chance.",
"You can no longer sense your dodging success chance.",
0, 0, 0, 0,
},
{
"turn into a Balrog",
"You can turn into a Balrog at will.",
"You feel the fire of Udun burning in you.",
"You no longer feel the fire of Udun in you.",
35, 80, A_WIS, 25,
},
};
/*
* The Quests
*/
quest_type quest_init_tome[MAX_Q_IDX_INIT] =
{
{
FALSE,
FALSE,
"",
{
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
},
QUEST_STATUS_UNTAKEN,
0,
NULL,
HOOK_TYPE_C,
quest_null_hook,
{0, 0},
},
{
FALSE,
FALSE,
"Dol Guldur",
{
"The forest of Mirkwood is a very dangerous place to go, mainly due to",
"the activities of the Necromancer that lurks in Dol Guldur.",
"Find him, and free Mirkwood from his spells.",
"",
"",
"",
"",
"",
"",
"",
},
QUEST_STATUS_TAKEN,
70,
&plots[PLOT_MAIN],
HOOK_TYPE_C,
quest_necro_init_hook,
{0, 0},
},
{
FALSE,
FALSE,
"Sauron",
{
"It is time to take the battle to Morgoth. But, before you can",
"reach it, you must find and kill Sauron. Only after defeating",
"this powerful sorcerer will the stairs leading to Morgoth's",
"room be opened.",
"",
"",
"",
"",
"",
"",
},
QUEST_STATUS_UNTAKEN,
99,
&plots[PLOT_MAIN],
HOOK_TYPE_C,
quest_sauron_init_hook,
{0, 0},
},
{
FALSE,
FALSE,
"Morgoth",
{
"Your final quest is the ultimate quest that has always been",
"required of you. You must enter the fetid depths of Angband, where",
"Morgoth is waiting. Travel deep, and defeat this source of all our",
"problems. Be prepared, be patient, and good luck. May the light",
"shine on you.",
"",
"",
"",
"",
"",
},
QUEST_STATUS_UNTAKEN,
100,
&plots[PLOT_MAIN],
HOOK_TYPE_C,
quest_morgoth_init_hook,
{0, 0},
},
/* Bree plot */
{
FALSE,
FALSE,
"Thieves!",
{
"There are thieves robbing my people! They live in a small",
"burrow outside the city walls, but they get inside the walls",
"with a tunnel to a building here! Your task is to go into",
"the building and kill these ruffians.",
"",
"",
"",
"",
"",
"",
},
QUEST_STATUS_UNTAKEN,
5,
&plots[PLOT_BREE],
HOOK_TYPE_C,
quest_thieves_init_hook,
{0, 0},
},
{
FALSE,
TRUE,
"Random Quest",
{
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
},
QUEST_STATUS_UNTAKEN,
5,
NULL,
HOOK_TYPE_C,
quest_random_init_hook,
{0, 0},
},
{
FALSE,
FALSE,
"Lost Hobbit",
{
"Merton Proudfoot, a young hobbit, seems to have disappeared.",
"Last time anyone saw him was near the horrible maze to the south of Bree.",
"",
"",
"",
"",
"",
"",
"",
"",
},
QUEST_STATUS_UNTAKEN,
25,
&plots[PLOT_OTHER],
HOOK_TYPE_C,
quest_hobbit_init_hook,
{0, 0},
},
{
FALSE,
FALSE,
"The Dark Horseman",
{
"A dark-cloaked horseman has been spotted several times in town.",
"He carries an aura of fear with him and people seem to get sick",
"wherever he goes. Please do something, but be careful...",
"",
"",
"",
"",
"",
"",
"",
},
QUEST_STATUS_UNTAKEN,
40,
&plots[PLOT_BREE],
HOOK_TYPE_C,
quest_nazgul_init_hook,
{0, 0},
},
{
FALSE,
FALSE,
"The Trolls Glade",
{
"A group of Forest Trolls settled in an abandoned forest in the",
"south east of our town. They are killing our people. You must",
"put an end to this! It might be best to look for them at night.",
"Local hobbits claim that the mighty swords Orcrist and Glamdring",
"can be found there! Bring back one of them as a proof!",
"",
"",
"",
"",
"",
},
QUEST_STATUS_UNTAKEN,
30,
&plots[PLOT_BREE],
HOOK_TYPE_C,
quest_troll_init_hook,
{FALSE, 0},
},
{
FALSE,
FALSE,
"The Wight Grave",
{
"The Barrow-Downs hides many mysteries and dangers.",
"Lately many people, both men and hobbits, have disappeared there.",
"Please put an end to this threat!",
"",
"",
"",
"",
"",
"",
"",
},
QUEST_STATUS_UNTAKEN,
30,
&plots[PLOT_BREE],
HOOK_TYPE_C,
quest_wight_init_hook,
{FALSE, 0},
},
/* Lorien plot */
{
FALSE,
FALSE,
"Spiders of Mirkwood",
{
"Powers lurk deep within Mirkwood. Spiders have blocked the",
"path through the forest, and Thranduil's folk have been",
"unable to hold them off. It is your task to drive them",
"away. Be careful -- many traps have been laid by their",
"webs, and their venom is dangerous indeed.",
"",
"",
"",
"",
"",
},
QUEST_STATUS_UNTAKEN,
25,
&plots[PLOT_LORIEN],
HOOK_TYPE_C,
quest_spider_init_hook,
{0, 0},
},
{
FALSE,
FALSE,
"Poisoned Water",
{
"A curse has beset Lothlorien. All trees along the shorelines of Nimrodel",
"are withering away. We fear the blight could spread to the whole forest.",
"The cause seems to be an unknown poison. You are to go to the West and",
"travel along Celebrant and Nimrodel until you discover the source of",
"the poisoning. Then you must destroy it and drop these potions on",
"the tainted water.",
"",
"",
"",
"",
},
QUEST_STATUS_UNTAKEN,
30,
&plots[PLOT_LORIEN],
HOOK_TYPE_C,
quest_poison_init_hook,
{0, 0},
},
/* Other quests */
{
FALSE,
FALSE,
"The Broken Sword",
{
"You have found Narsil, a broken sword. It is said that the sword that",
"was broken shall be reforged... Maybe it is this one.",
"You should bring it to Aragorn at Minas Anor -- he would know.",
"",
"",
"",
"",
"",
"",
"",
},
QUEST_STATUS_UNTAKEN,
20,
&plots[PLOT_OTHER],
HOOK_TYPE_C,
quest_narsil_init_hook,
{0, 0},
},
/* Gondolin plot */
{
FALSE,
FALSE,
"Eol the Dark Elf",
{
"We have disturbing tidings. Eol the Dark Elf has come seeking his kin in",
"Gondolin. We cannot let anyone pass the borders of the city without the",
"King's leave. Go forth to the eastern mountains and apprehend him. If",
"he resists, use whatever means possible to hinder him from reaching the",
"city. Be wary -- the mountain caves may have many hidden traps.",
"",
"",
"",
"",
"",
},
QUEST_STATUS_UNTAKEN,
30,
&plots[PLOT_GONDOLIN],
HOOK_TYPE_C,
quest_eol_init_hook,
{0, 0},
},
{
FALSE,
FALSE,
"Nirnaeth Arnoediad",
{
"The fortunes of war in the north turn against us.",
"Morgoth's treachery has driven our armies back nigh",
"to the city's walls. Go forth from the city gates",
"and clear a path for them to retreat. You need not",
"destroy the troll army, simply drive a path through.",
"",
"",
"",
"",
"",
},
QUEST_STATUS_UNTAKEN,
37,
&plots[PLOT_GONDOLIN],
HOOK_TYPE_C,
quest_nirnaeth_init_hook,
{0, 0},
},
{
FALSE,
FALSE,
"Invasion of Gondolin",
{
"Morgoth is upon us! Dragons and Balrogs have poured over secret",
"ways of the Echoriath, and are looking for our city. They are",
"conducted by Maeglin! You must stop him or they will find us.",
"Do not let Maeglin get to the stairs or everything will be lost!",
"Go now, be brave.",
"",
"",
"",
"",
"",
},
QUEST_STATUS_UNTAKEN,
80,
&plots[PLOT_GONDOLIN],
HOOK_TYPE_C,
quest_invasion_init_hook,
{0, 0},
},
/* Minas Anor Plot*/
{
FALSE,
FALSE,
"The Last Alliance",
{
"The armies of Morgoth are closing in on the last remaining strongholds",
"of resistance against him. We are too far apart to help each other.",
"The arrival of our new Thunderlord allies has helped, but can only delay",
"the inevitable. We must be able to stand together and reinforce each other,",
"or both our kingdoms will fall separately. The Thunderlords have taught us",
"how to use the Void Jumpgates: we need you to open a Void Jumpgate in our",
"own city, and that of Gondolin.",
"Simply travel to Gondolin, but beware of rebel thunderlords.",
"",
"",
},
QUEST_STATUS_UNTAKEN,
80,
&plots[PLOT_MINAS],
HOOK_TYPE_C,
quest_between_init_hook,
{0, 0},
},
{
FALSE,
FALSE,
"The One Ring",
{
"Find the One Ring, then bring it to Mount Doom, in Mordor, to drop",
"it in the Great Fire where it was once forged.",
"But beware: *NEVER* use it, or you will be corrupted.",
"Once it is destroyed you will be able to permanently defeat Sauron.",
"The ring must be cast back into the fires of Mount Doom!",
"",
"",
"",
"",
"",
},
QUEST_STATUS_UNTAKEN,
99,
&plots[PLOT_MAIN],
HOOK_TYPE_C,
quest_one_init_hook,
{0, 0},
},
{
FALSE,
FALSE,
"Mushroom supplies",
{
"Farmer Maggot asked you to bring him back his mushrooms.",
"Do not harm his dogs.",
"",
"",
"",
"",
"",
"",
"",
"",
},
QUEST_STATUS_UNTAKEN,
3,
&plots[PLOT_OTHER],
HOOK_TYPE_C,
quest_shroom_init_hook,
{0, 0},
},
{
FALSE,
FALSE,
"The prisoner of Dol Guldur",
{
"You keep hearing distress cries in the dark tower of",
"Dol Guldur...",
"Maybe there is someone being held prisoner and tortured!",
"",
"",
"",
"",
"",
"",
"",
},
QUEST_STATUS_UNTAKEN,
60,
&plots[PLOT_OTHER],
HOOK_TYPE_C,
quest_thrain_init_hook,
{0, 0},
},
/* The 2 ultra endings go here */
{
FALSE,
FALSE,
"Falling Toward Apotheosis",
{
"You must enter the Void where Melkor spirit lurks to destroy",
"him forever. Remember however that it is likely to be your own",
"death that awaits you.",
"",
"",
"",
"",
"",
"",
"",
},
QUEST_STATUS_UNTAKEN,
150,
&plots[PLOT_MAIN],
HOOK_TYPE_C,
quest_ultra_good_init_hook,
{0, 0},
},
{
FALSE,
FALSE,
"Falling Toward Apotheosis",
{
"You must now launch an onslaught on Valinor itself to eliminate",
"once and for all any posible resistance to your dominance of Arda.",
"Remember however that it is likely to be your own death that awaits you.",
"",
"",
"",
"",
"",
"",
"",
},
QUEST_STATUS_UNTAKEN,
150,
&plots[PLOT_MAIN],
HOOK_TYPE_C,
quest_ultra_evil_init_hook,
{0, 0},
},
/* More Lorien */
{
FALSE,
FALSE,
"Wolves!",
{
"There are wolves pestering my people! They gather in a hut",
"on the edge of town and menace everyone nearby. Your task",
"is to go in there and clear them out.",
"",
"",
"",
"",
"",
"",
"",
},
QUEST_STATUS_UNTAKEN,
15,
&plots[PLOT_LORIEN],
HOOK_TYPE_C,
quest_wolves_init_hook,
{0, 0},
},
/* More Gondolin */
{
FALSE,
FALSE,
"Dragons!",
{
"There are dragons pestering my people! They gather in a",
"building on the edge of town and menace everyone nearby.",
"Your task is to go into the building and clear them out.",
"",
"",
"",
"",
"",
"",
"",
},
QUEST_STATUS_UNTAKEN,
25,
&plots[PLOT_GONDOLIN],
HOOK_TYPE_C,
quest_dragons_init_hook,
{0, 0},
},
/* More Minas Anor */
{
FALSE,
FALSE,
"Haunted House!",
{
"There are undead pestering my people! They gather in a hut",
"on the edge of town and menace everyone nearby. Your task",
"is to go into the building and clear out the beasts.",
"",
"",
"",
"",
"",
"",
"",
},
QUEST_STATUS_UNTAKEN,
45,
&plots[PLOT_MINAS],
HOOK_TYPE_C,
quest_haunted_init_hook,
{0, 0},
},
/* Khazad-Dum Plot*/
{
FALSE,
FALSE,
"Evil!",
{
"We have burrowed too deep, and let out some creatures of",
"Morgoth's that threaten to kill us all! Your task is to save us",
"from them!",
"",
"",
"",
"",
"",
"",
"",
},
QUEST_STATUS_UNTAKEN,
60,
&plots[PLOT_KHAZAD],
HOOK_TYPE_C,
quest_evil_init_hook,
{0, 0},
},
};
/* List of powers for Symbiants/Powers */
monster_power monster_powers[96] =
{
{ RF4_SHRIEK, "Aggravate Monster", 1, FALSE },
{ RF4_MULTIPLY, "Multiply", 10, FALSE },
{ RF4_S_ANIMAL, "Summon Animal", 30, FALSE },
{ RF4_ROCKET, "Fire a Rocket", 40, TRUE },
{ RF4_ARROW_1, "Light Arrow", 1, FALSE },
{ RF4_ARROW_2, "Minor Arrow", 3, FALSE },
{ RF4_ARROW_3, "Major Arrow", 7, TRUE },
{ RF4_ARROW_4, "Great Arrow", 9, TRUE },
{ RF4_BR_ACID, "Breathe Acid", 10, FALSE },
{ RF4_BR_ELEC, "Breathe Lightning", 10, FALSE },
{ RF4_BR_FIRE, "Breathe Fire", 10, FALSE },
{ RF4_BR_COLD, "Breathe Cold", 10, FALSE },
{ RF4_BR_POIS, "Breathe Poison", 15, TRUE },
{ RF4_BR_NETH, "Breathe Nether", 30, TRUE },
{ RF4_BR_LITE, "Breathe Light", 20, TRUE },
{ RF4_BR_DARK, "Breathe Dark", 20, TRUE },
{ RF4_BR_CONF, "Breathe Confusion", 15, TRUE },
{ RF4_BR_SOUN, "Breathe Sound", 30, TRUE },
{ RF4_BR_CHAO, "Breathe Chaos", 30, TRUE },
{ RF4_BR_DISE, "Breathe Disenchantment", 30, TRUE },
{ RF4_BR_NEXU, "Breathe Nexus", 30, TRUE },
{ RF4_BR_TIME, "Breathe Time", 30, TRUE },
{ RF4_BR_INER, "Breathe Inertia", 30, TRUE },
{ RF4_BR_GRAV, "Breathe Gravity", 30, TRUE },
{ RF4_BR_SHAR, "Breathe Shards", 30, TRUE },
{ RF4_BR_PLAS, "Breathe Plasma", 30, TRUE },
{ RF4_BR_WALL, "Breathe Force", 30, TRUE },
{ RF4_BR_MANA, "Breathe Mana", 40, TRUE },
{ RF4_BA_NUKE, "Nuke Ball", 30, TRUE },
{ RF4_BR_NUKE, "Breathe Nuke", 40, TRUE },
{ RF4_BA_CHAO, "Chaos Ball", 30, TRUE },
{ RF4_BR_DISI, "Breathe Disintegration", 40, TRUE },
{ RF5_BA_ACID, "Acid Ball", 8, FALSE },
{ RF5_BA_ELEC, "Lightning Ball", 8, FALSE },
{ RF5_BA_FIRE, "Fire Ball", 8, FALSE },
{ RF5_BA_COLD, "Cold Ball", 8, FALSE },
{ RF5_BA_POIS, "Poison Ball", 20, TRUE },
{ RF5_BA_NETH, "Nether Ball", 20, TRUE },
{ RF5_BA_WATE, "Water Ball", 20, TRUE },
{ RF5_BA_MANA, "Mana Ball", 50, TRUE },
{ RF5_BA_DARK, "Darkness Ball", 20, TRUE },
{ 0, "(none)", 0, FALSE },
{ 0, "(none)", 0, FALSE },
{ 0, "(none)", 0, FALSE },
{ RF5_CAUSE_1, "Cause Light Wounds", 20, FALSE },
{ RF5_CAUSE_2, "Cause Medium Wounds", 30, FALSE },
{ RF5_CAUSE_3, "Cause Critical Wounds", 35, TRUE },
{ RF5_CAUSE_4, "Cause Mortal Wounds", 45, TRUE },
{ RF5_BO_ACID, "Acid Bolt", 5, FALSE },
{ RF5_BO_ELEC, "Lightning Bolt", 5, FALSE },
{ RF5_BO_FIRE, "Fire Bolt", 5, FALSE },
{ RF5_BO_COLD, "Cold Bolt", 5, FALSE },
{ RF5_BO_POIS, "Poison Bolt", 10, TRUE },
{ RF5_BO_NETH, "Nether Bolt", 15, TRUE },
{ RF5_BO_WATE, "Water Bolt", 20, TRUE },
{ RF5_BO_MANA, "Mana Bolt", 25, TRUE },
{ RF5_BO_PLAS, "Plasma Bolt", 20, TRUE },
{ RF5_BO_ICEE, "Ice Bolt", 20, TRUE },
{ RF5_MISSILE, "Magic Missile", 1, FALSE },
{ RF5_SCARE, "Scare", 4, FALSE },
{ RF5_BLIND, "Blindness", 6, FALSE },
{ RF5_CONF, "Confusion", 7, FALSE },
{ RF5_SLOW, "Slowness", 10, FALSE },
{ RF5_HOLD, "Paralyse", 10, FALSE },
{ RF6_HASTE, "Haste Self", 50, FALSE },
{ RF6_HAND_DOOM, "Hand of Doom", 30, TRUE },
{ RF6_HEAL, "Healing", 60, FALSE },
{ RF6_S_ANIMALS, "Summon Animals", 60, TRUE },
{ RF6_BLINK, "Phase Door", 2, FALSE },
{ RF6_TPORT, "Teleport", 10, FALSE },
{ RF6_TELE_TO, "Teleport To", 20, TRUE },
{ RF6_TELE_AWAY, "Teleport Away", 20, FALSE },
{ RF6_TELE_LEVEL, "Teleport Level", 20, TRUE },
{ RF6_DARKNESS, "Darkness", 3, FALSE },
{ RF6_TRAPS, "Create Traps", 10, TRUE },
{ 0, "(none)", 0, FALSE },
{ RF6_RAISE_DEAD, "Raise the Dead", 400, TRUE },
{ 0, "(none)", 0, FALSE },
{ 0, "(none)", 0, FALSE },
{ RF6_S_THUNDERLORD, "Summon Thunderlords", 90, TRUE },
{ RF6_S_KIN, "Summon Kin", 80, FALSE },
{ RF6_S_HI_DEMON, "Summon Greater Demons", 90, TRUE },
{ RF6_S_MONSTER, "Summon Monster", 50, FALSE },
{ RF6_S_MONSTERS, "Summon Monsters", 60, TRUE },
{ RF6_S_ANT, "Summon Ants", 30, FALSE },
{ RF6_S_SPIDER, "Summon Spider", 30, FALSE },
{ RF6_S_HOUND, "Summon Hound", 50, TRUE },
{ RF6_S_HYDRA, "Summon Hydra", 40, TRUE },
{ RF6_S_ANGEL, "Summon Angel", 60, TRUE },
{ RF6_S_DEMON, "Summon Demon", 60, TRUE },
{ RF6_S_UNDEAD, "Summon Undead", 70, TRUE },
{ RF6_S_DRAGON, "Summon Dragon", 70, TRUE },
{ RF6_S_HI_UNDEAD, "Summon High Undead", 90, TRUE },
{ RF6_S_HI_DRAGON, "Summon High Dragon", 90, TRUE },
{ RF6_S_WRAITH, "Summon Wraith", 90, TRUE },
{ 0, "(none)", 0, FALSE },
};
/* Tval descriptions */
tval_desc tval_descs[] =
{
{
TV_BATERIE,
"Essences contain primitive magic forces which users of the "
"Alchemy skill can use to create powerful magic items from "
"other magic items."
},
{
TV_MSTAFF,
"Mage Staves are the spellcaster's weapons of choice. "
"They all reduce spellcasting time to 80% of "
"normal time and some will yield even greater powers."
},
{
3,
"XXX"
},
{
TV_PARCHMENT,
"Parchments can contain useful information ... or useless "
"junk."
},
{
TV_EGG,
"Eggs are laid by some monsters. If they hatch in your "
"inventory the monster will be your friend."
},
{
TV_TOOL,
"Tools can be digging implements, climbing equipment and such. "
"They have their own slot in your inventory."
},
{
TV_INSTRUMENT,
"Musical instruments can be used with the Music skill to play "
"magical songs. Some of them can also be activated."
},
{
TV_BOOMERANG,
"Boomerangs can be used instead of bows or slings. They "
"are more like melee weapons than bows."
},
{
TV_SHOT,
"Shots are small, hard balls. They are the standard ammunition "
"for slings. You can carry them in your quiver if you have a sling "
"equipped."
},
{
TV_ARROW,
"Arrows are the standard ammunition for bows. You can carry "
"them in your quiver if you have a bow equipped."
},
{
TV_BOLT,
"Bolts are the standard ammunition for crossbows. You can "
"carry them in your quiver if you have a crossbow equipped."
},
{
TV_BOW,
"Slings, bows and crossbows are used to attack monsters "
"from a distance."
},
{
TV_DIGGING,
"Tools can be digging implements, climbing equipment and such. "
"They have their own slot in your inventory."
},
{
TV_HAFTED,
"Hafted weapons are melee weapons. Eru followers can use them "
"without penalties."
},
{
TV_SWORD,
"Swords are melee weapons."
},
{
TV_AXE,
"Axes are melee weapons."
},
{
TV_POLEARM,
"Polearms are melee weapons."
},
{
TV_DRAG_ARMOR,
"Dragon armour is made from the scales of dead dragons. "
"These mighty sets of armour usually yield great power to "
"their wearer."
},
{
TV_LITE,
"Lights allow you to read things and see from afar. Some of "
"them need to be fueled but some do not."
},
{
TV_AMULET,
"Amulets are fine pieces of jewelry, usually imbued with "
"arcane magics."
},
{
TV_RING,
"Rings are fine pieces of jewelry, usually imbued with "
"arcane magics."
},
{
TV_TRAPKIT,
"Trapping kits are used with the trapping ability to set "
"deadly monster traps."
},
{
TV_STAFF,
"Staves are objects imbued with mystical powers."
},
{
TV_WAND,
"Wands are like small staves and usually have a targeted "
"effect."
},
{
TV_ROD,
"Rod tips are the physical bindings of powerful "
"spells. Zap (attach) them to a rod to get a fully "
"functional rod. Each spell takes some mana from the rod "
"it is attached to to work."
},
{
TV_ROD_MAIN,
"Rods contain mana reserves used to cast spells in rod "
"tips. Zap (attach) a rod tip to them to get a fully "
"functional rod. Each spell takes some mana from the rod "
"it is attached to to work."
},
{
TV_SCROLL,
"Scrolls are magical parchments imbued with magic spells. "
"Some are good, some...are not. When a scroll is read, its "
"magic is released and the scroll is destroyed."
},
{
TV_POTION,
"Potions are magical liquids. Some of them are "
"beneficial...some not."
},
{
TV_POTION2,
"Potions are magical liquids. Some of them are "
"beneficial...some not."
},
{
TV_FLASK,
"Flasks of oil can be used to refill lanterns."
},
{
TV_FOOD,
"Everybody needs to eat, even you."
},
{
TV_HYPNOS,
"This monster seems to be hypnotised and friendly."
},
{
TV_RANDART,
"Those objects are only known of by rumours. It is said that "
"they can be activated for great or strange effects..."
},
{
TV_RUNE1,
"Runes are used with the Runecraft skill to create brand new spells."
},
{
TV_RUNE2,
"Runes are used with the Runecraft skill to create brand new spells."
},
{
TV_JUNK,
"Junk is usually worthless, though experienced archers can "
"create ammo with them."
},
{
TV_SKELETON,
"It looks dead..."
},
{
TV_BOTTLE,
"An empty bottle. Maybe an alchemist could refill it."
},
{
TV_SPIKE,
"Spikes can be used to jam doors."
},
{
TV_CORPSE,
"It looks dead..."
},
{
TV_BOOTS,
"Boots can help your armour rating. Some of these are magical."
},
{
TV_GLOVES,
"Handgear is used to protect hands, but nonmagical ones "
"can sometimes hinder spellcasting. Alchemists need "
"gloves in order to do alchemy."
},
{
TV_HELM,
"Headgear will protect your head."
},
{
TV_CROWN,
"Headgear will protect your head."
},
{
TV_SHIELD,
"Shields will help improve your defence rating, but you "
"cannot use them with two handed weapons."
},
{
TV_CLOAK,
"Cloaks can shield you from damage. Sometimes they also "
"provide magical powers."
},
{
TV_SOFT_ARMOR,
"Soft armour is light, and will not hinder your combat much."
},
{
TV_HARD_ARMOR,
"Hard armour provides much more protection than soft "
"armour but also hinders combat much more."
},
{
TV_SYMBIOTIC_BOOK,
"This mystical book is used by symbiants to extend their "
"symbiosis."
},
{
TV_MUSIC_BOOK,
"This song book is used by bards to play songs."
},
{
TV_DRUID_BOOK,
"This mystical book is used by druids to call upon the "
"powers of nature."
},
{
TV_DAEMON_BOOK,
"This unholy demon equipment is used with the Demonology skill to control "
"the school of demon power."
},
{0, ""},
};
/*
* List of the between exits
* s16b corresp; Corresponding between gate
* bool dungeon; Do we exit in a dungeon or in the wild ?
*
* s16b wild_x, wild_y; Wilderness spot to land onto
* s16b p_ptr->px, p_ptr->py; Location of the map
*
* s16b d_idx; Dungeon to land onto
* s16b level;
*/
between_exit between_exits[MAX_BETWEEN_EXITS] =
{
{
1,
FALSE,
49, 11,
119, 25,
0, 0
},
{
0,
FALSE,
60, 56,
10, 35,
0, 0
},
};
/*
* Months
*/
int month_day[9] =
{
0, /* 1 day */
1, /* 54 days */
55, /* 72 days */
127, /* 54 days */
181, /* 3 days */
184, /* 54 days */
238, /* 72 days */
310, /* 54 days */
364, /* 1 day */
};
cptr month_name[9] =
{
"Yestare",
"Tuile",
"Laire",
"Yavie",
"Enderi",
"Quelle",
"Hrive",
"Coire",
"Mettare",
};
/*
* max body parts
*/
int max_body_part[BODY_MAX] =
{
3, /* Weapon */
1, /* Torso */
3, /* Arms */
6, /* Finger */
2, /* Head */
2, /* Legs */
};
/*
* Description of GF_FOO
*/
gf_name_type gf_names[] =
{
{ GF_ELEC, "electricity" },
{ GF_POIS, "poison" },
{ GF_ACID, "acid" },
{ GF_COLD, "cold" },
{ GF_FIRE, "fire" },
{ GF_UNBREATH, "asphyxiating gas" },
{ GF_CORPSE_EXPL, "corpse explosion" },
{ GF_MISSILE, "missile" },
{ GF_ARROW, "arrow" },
{ GF_PLASMA, "plasma" },
{ GF_WAVE, "a tidal wave" },
{ GF_WATER, "water" },
{ GF_LITE, "light" },
{ GF_DARK, "darkness" },
{ GF_LITE_WEAK, "weak light" },
{ GF_DARK_WEAK, "weak darkness" },
{ GF_SHARDS, "shards" },
{ GF_SOUND, "sound" },
{ GF_CONFUSION, "confusion" },
{ GF_FORCE, "force" },
{ GF_INERTIA, "inertia" },
{ GF_MANA, "pure mana" },
{ GF_METEOR, "meteor" },
{ GF_ICE, "ice" },
{ GF_CHAOS, "chaos" },
{ GF_NETHER, "nether" },
{ GF_DISENCHANT, "disenchantment" },
{ GF_NEXUS, "nexus" },
{ GF_TIME, "time" },
{ GF_GRAVITY, "gravity" },
{ GF_KILL_WALL, "wall destruction" },
{ GF_KILL_DOOR, "door destruction" },
{ GF_KILL_TRAP, "trap destruction" },
{ GF_MAKE_WALL, "wall creation" },
{ GF_MAKE_DOOR, "door creation" },
{ GF_MAKE_TRAP, "trap creation" },
{ GF_OLD_CLONE, "clone" },
{ GF_OLD_POLY, "polymorph" },
{ GF_OLD_HEAL, "healing" },
{ GF_OLD_SPEED, "speed" },
{ GF_OLD_SLOW, "slowness" },
{ GF_OLD_CONF, "confusion" },
{ GF_OLD_SLEEP, "sleep" },
{ GF_OLD_DRAIN, "drain life" },
{ GF_AWAY_UNDEAD, "teleport away undead" },
{ GF_AWAY_EVIL, "teleport away evil" },
{ GF_AWAY_ALL, "teleport away" },
{ GF_TURN_UNDEAD, "scare undead" },
{ GF_TURN_EVIL, "scare evil" },
{ GF_TURN_ALL, "scare" },
{ GF_DISP_UNDEAD, "dispel undead" },
{ GF_DISP_EVIL, "dispel evil" },
{ GF_DISP_ALL, "dispel" },
{ GF_DISP_DEMON, "dispel demons" },
{ GF_DISP_LIVING, "dispel living creatures" },
{ GF_ROCKET, "rocket" },
{ GF_NUKE, "nuke" },
{ GF_MAKE_GLYPH, "glyph creation" },
{ GF_STASIS, "stasis" },
{ GF_STONE_WALL, "stone wall creation" },
{ GF_DEATH_RAY, "death ray" },
{ GF_STUN, "stunning" },
{ GF_HOLY_FIRE, "holy fire" },
{ GF_HELL_FIRE, "hellfire" },
{ GF_DISINTEGRATE, "disintegration" },
{ GF_CHARM, "charming" },
{ GF_CONTROL_UNDEAD, "undead control" },
{ GF_CONTROL_ANIMAL, "animal control" },
{ GF_PSI, "psionic energy" },
{ GF_PSI_DRAIN, "psionic drain" },
{ GF_TELEKINESIS, "telekinesis" },
{ GF_JAM_DOOR, "door jamming" },
{ GF_DOMINATION, "domination" },
{ GF_DISP_GOOD, "dispel good" },
{ GF_IDENTIFY, "identification" },
{ GF_RAISE, "raise dead" },
{ GF_STAR_IDENTIFY, "*identification*" },
{ GF_DESTRUCTION, "destruction" },
{ GF_STUN_CONF, "stunning and confusion" },
{ GF_STUN_DAM, "stunning and damage" },
{ GF_CONF_DAM, "confusion and damage" },
{ GF_STAR_CHARM, "*charming*" },
{ GF_IMPLOSION, "implosion" },
{ GF_LAVA_FLOW, "lava" },
{ GF_FEAR, "fear" },
{ GF_BETWEEN_GATE, "jumpgate creation" },
{ GF_WINDS_MANA, "" },
{ GF_DEATH, "death" },
{ GF_CONTROL_DEMON, "control demon" },
{ GF_RAISE_DEMON, "raise demon" },
{ GF_TRAP_DEMONSOUL, "*control demon*" },
{ GF_ATTACK, "projected melee attacks" },
{ -1, NULL },
};
|