Compare commits
2960 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 7f7b54571b | |||
| ce89fe960d | |||
| 66261402ff | |||
| 7f46a542fe | |||
| 40e85b0353 | |||
| c00cd7b9bb | |||
| a9e420dc61 | |||
| f0271b1cec | |||
| 824b10ea1d | |||
| 4e7d34e05e | |||
| 38d2a07c65 | |||
| b2a08ee4e1 | |||
| f772977184 | |||
| d0c4519b0d | |||
| 9cac01cd22 | |||
| 7458ef8655 | |||
| 8580f7f78f | |||
| 2d200f5af7 | |||
| 3ae6a1a8de | |||
| 0667b20125 | |||
| ff57ac89f5 | |||
| e09af5d70c | |||
| 5a689e44c8 | |||
| 682174ce74 | |||
| d2a3acd821 | |||
| e91193ee04 | |||
| 9f03f153da | |||
| c24c775694 | |||
| 37fd1058cc | |||
| 8e4b775338 | |||
| 2218ca1009 | |||
| a39dfc3ab4 | |||
| 95abc56e14 | |||
| 5ea66d8bdf | |||
| 00e5091d61 | |||
| 9e32ac83d4 | |||
| 3c23b7dadb | |||
| 31899327e2 | |||
| 94f93110b5 | |||
| 7081984ab4 | |||
| 49448b0f54 | |||
| cfa8ac17e3 | |||
| f14d24ec56 | |||
| f5a8fe533b | |||
| 9ac3e63f0a | |||
| 392ca258c0 | |||
| 0bac7ba12b | |||
| 8b3eb919aa | |||
| 12f57e1871 | |||
| eb37236a3a | |||
| c5ecb9b2b5 | |||
| 82772439ba | |||
| 16ae0f2ba0 | |||
| ad76ca8fea | |||
| 7ad9c75e7f | |||
| 4729e4ac69 | |||
| 441a6ee6ee | |||
| 23a1d95d18 | |||
| fb09d161e0 | |||
| 0b4f01b5ee | |||
| 4edd31d66c | |||
| be968a9dff | |||
| d7577cbae6 | |||
| 44507e7a24 | |||
| f399387738 | |||
| 39a2073959 | |||
| ff7d545aa3 | |||
| ac460114c5 | |||
| e623d9285e | |||
| 0ddd311674 | |||
| 020534ef18 | |||
| 2a70cc6231 | |||
| 27615c07b0 | |||
| 6bb5133271 | |||
| 755587c7ba | |||
| 6454dd6936 | |||
| dd992ef821 | |||
| 9ffd98c43b | |||
| b1289f2f0c | |||
| a5d360858d | |||
| 6c2a0abc71 | |||
| 8d56d5fb94 | |||
| be8e2a50dc | |||
| dd5a9aad31 | |||
| 5cb0826632 | |||
| 7a265293f9 | |||
| df871a1446 | |||
| 44eaf8e4e9 | |||
| f37a8d1feb | |||
| ba33cf8704 | |||
| d2978b2c19 | |||
| 27b71c7703 | |||
| 1f4603ba26 | |||
| f724c9da04 | |||
| e7b444debb | |||
| fe37756898 | |||
| e64767b28c | |||
| 835e098b09 | |||
| 71b8df3f4b | |||
| dc7ce68266 | |||
| 8fe6aee088 | |||
| 58e1a7dfc3 | |||
| efb547710a | |||
| 9d30a62045 | |||
| 90c6469c19 | |||
| af817c6b6a | |||
| f7171fe70d | |||
| eaf93728ff | |||
| 346f78da6b | |||
| f0bd034cb2 | |||
| 34ba3160d2 | |||
| 482f33f92b | |||
| b716753531 | |||
| 1ee77c56fd | |||
| 50cb9acbec | |||
| 640571556c | |||
| 0fa471a267 | |||
| c31d362b05 | |||
| 7c480131a3 | |||
| 5d64700e69 | |||
| 8922640a45 | |||
| ea27ba067f | |||
| 510cdd5ec1 | |||
| 8ce5a3a28a | |||
| 501cc69330 | |||
| 280a27c422 | |||
| 4e6bd58d2e | |||
| 2f6895476c | |||
| e2029587f0 | |||
| b6d8cd5978 | |||
| f76074b8bc | |||
| 6d741ccb52 | |||
| 94c06e68f2 | |||
| 5ad6920325 | |||
| ab2d34ea01 | |||
| a738de0474 | |||
| 9cc2d5ccd6 | |||
| caaea1f0f2 | |||
| 8cf7fada84 | |||
| a022c908bd | |||
| 85e5683d46 | |||
| dec0d7a7e2 | |||
| e519a0fe77 | |||
| 811c412200 | |||
| 32c4ea9e54 | |||
| a6ea4f7941 | |||
| b19df88301 | |||
| 186a5aa954 | |||
| 9301114316 | |||
| c0cfc62e10 | |||
| a15abe7185 | |||
| b802684082 | |||
| 2bed854469 | |||
| e60739392e | |||
| 615feebe5f | |||
| 4b29d396f3 | |||
| d1889b2061 | |||
| 0c51a373da | |||
| 7433e4f552 | |||
| 0f8e60b717 | |||
| 892cdb6237 | |||
| 35fc6ddd90 | |||
| a48dda91dc | |||
| f4f411937a | |||
| 1bdcda2a7c | |||
| 13847fb6a0 | |||
| 89ffbe1b8f | |||
| 5660c816e9 | |||
| 0de109a437 | |||
| 5f4416c10a | |||
| 923db00ead | |||
| f8000e1438 | |||
| 472a993be6 | |||
| 4a111367d8 | |||
| 75cb306055 | |||
| ab10751ee6 | |||
| 41426c2c99 | |||
| 710c77fcb6 | |||
| aaf4af0d8a | |||
| 1e410d8de1 | |||
| 76642f5e89 | |||
| fa893b308f | |||
| 55c06c8802 | |||
| 8ef9408864 | |||
| d27a45675d | |||
| ca2f4f52bd | |||
| 895ac666bd | |||
| bf73d905c4 | |||
| a59d6883ca | |||
| b6bd2f3ea7 | |||
| a8c83640c4 | |||
| 5f5a5c82a0 | |||
| 2c5685be49 | |||
| 71d8814b4a | |||
| a416764149 | |||
| 6968084578 | |||
| 3ce1b2009a | |||
| 0543803a10 | |||
| 43e7c09cba | |||
| 0394870246 | |||
| 180faffc65 | |||
| f925d544c5 | |||
| 6814c82b4a | |||
| bad2f57b94 | |||
| 13b3711822 | |||
| 5286878d8a | |||
| c43bfe41fd | |||
| 546a8a4a13 | |||
| 8565b77409 | |||
| d84bccd7aa | |||
| 3625b660e4 | |||
| 7a37eb14e5 | |||
| 58a1c6d486 | |||
| 75b5e97d7b | |||
| c6499013f1 | |||
| d50a0a3a8b | |||
| f48fff8f42 | |||
| e2dab3aaaf | |||
| 8c464145e7 | |||
| 829275266e | |||
| 3a1b75af35 | |||
| f360bb1195 | |||
| 3d48f8b209 | |||
| 78db4ecb9c | |||
| 7d11865807 | |||
| 26a04f918f | |||
| ba03815a81 | |||
| 23d459606b | |||
| 63ace3b7f6 | |||
| a05431eeab | |||
| fbcd715536 | |||
| 98c812aae8 | |||
| 6f4e4a9332 | |||
| 71333c8f9c | |||
| 9bc2402b22 | |||
| 2a6821ff56 | |||
| 7f91455cf5 | |||
| ca2c33abbf | |||
| 68f25feb5f | |||
| 4c7713ad20 | |||
| eaf15056cf | |||
| 8281db69c4 | |||
| 12d061aaa1 | |||
| 155b363140 | |||
| fdee5ee937 | |||
| ad6b1aea7e | |||
| 6982c8eeb7 | |||
| 5a7ec3edb1 | |||
| 4b67092933 | |||
| 8208cc6c3c | |||
| c1f2c34695 | |||
| 02e4099bb5 | |||
| 1ca7f2a6c8 | |||
| 380b52643f | |||
| 3725fbc9e0 | |||
| 4dfd730eb2 | |||
| 40f73f671b | |||
| 9763d53e5f | |||
| 7b7c95eedc | |||
| ecae49a0c2 | |||
| 4f66ede64a | |||
| f54ad1a0f5 | |||
| f38fdeed58 | |||
| 51c27dadbf | |||
| aabbec53b7 | |||
| dc396fe954 | |||
| 7ba00561e8 | |||
| dec2dc7bf0 | |||
| 46be778aee | |||
| eb8e823b66 | |||
| dbf295d0e2 | |||
| 64bf5e2306 | |||
| 12128cc347 | |||
| c5132d553f | |||
| d1d96ef1d0 | |||
| 26565dbef6 | |||
| 3f13bd6bc1 | |||
| 3d931cd9ab | |||
| 3c1251c366 | |||
| 1b5d082db5 | |||
| 001849272f | |||
| 7d0983c839 | |||
| 89d2f9893c | |||
| 66a61e239f | |||
| 51b7cef821 | |||
| 07bd0879e9 | |||
| 1b23bde3af | |||
| 419db6875c | |||
| db2c8526f6 | |||
| 86f6857dd0 | |||
| a397e1ea4a | |||
| 9a61b00dc1 | |||
| ae64a3f61f | |||
| 468b3db3b7 | |||
| 115252a149 | |||
| d3e965ef1a | |||
| 9fe6feb52f | |||
| 9b058378bf | |||
| 5e85552377 | |||
| a89185e056 | |||
| 4445f7f06f | |||
| f6bafa573b | |||
| 0c66a3db76 | |||
| 98a51dfaab | |||
| b9220e7d8b | |||
| 2c6ec43e1f | |||
| 3b21826b6a | |||
| 317ba1c34c | |||
| 95808abc28 | |||
| 520b90e371 | |||
| b0c5eefee0 | |||
| c915ec3af6 | |||
| dd3ea43ee3 | |||
| 5a667408f4 | |||
| be320a8540 | |||
| 76c7519e11 | |||
| adccca67f9 | |||
| 470d948fe5 | |||
| 0755f6f8b3 | |||
| 36347ba62b | |||
| 4577cceb9e | |||
| 2f10f7907a | |||
| eee9970065 | |||
| d19c6cf1ab | |||
| 5cbe278548 | |||
| f44cd9e3d9 | |||
| 5232c34161 | |||
| 0ed81e758a | |||
| 83da2d8b1d | |||
| 3fbb690d76 | |||
| 158950e71d | |||
| c5b3f9e1ec | |||
| 150d916981 | |||
| 86db34bdf9 | |||
| 51b8b40b68 | |||
| f27390f53a | |||
| 1fc7546e96 | |||
| 7d91d4f358 | |||
| 248f8a64f7 | |||
| a9512b5b4c | |||
| 1fcae4b4ef | |||
| e6b98ee733 | |||
| f459dabf9d | |||
| a49b02060c | |||
| 8d667baf3c | |||
| ad8fdd4819 | |||
| 434ea30026 | |||
| 81ce7c6e9a | |||
| b4871d49d7 | |||
| 17e2380abf | |||
| 5749a320bd | |||
| 0ecdc3891a | |||
| 5868686f9d | |||
| 3108e44fe0 | |||
| aa50085573 | |||
| 959f10e80b | |||
| 4b30f55a72 | |||
| 4f0bf666cd | |||
| 2f9e8e5c52 | |||
| a7f543d60a | |||
| f382badf7d | |||
| a2993e3cd8 | |||
| da04c902e7 | |||
| 4059e16396 | |||
| a47a920a02 | |||
| 8600085be3 | |||
| aec5108fe9 | |||
| 930b4cf3a3 | |||
| 84b9f4411f | |||
| cc8006a2b0 | |||
| 5eb8e1ab41 | |||
| c909a0f713 | |||
| 377bac95d8 | |||
| 8a17c9a0d3 | |||
| e6c3168956 | |||
| 39292d183d | |||
| 1099f6b527 | |||
| 73a86971ac | |||
| 79debd29db | |||
| ac3a92c219 | |||
| 3bf8fda4df | |||
| 0086715750 | |||
| 8bba59aa72 | |||
| 8cabe87199 | |||
| 5604434130 | |||
| 66d42195a9 | |||
| 4d55dc6fe0 | |||
| 69d48fe953 | |||
| 10421d4fdc | |||
| 4d99cc7d20 | |||
| b38be2e57f | |||
| 112e7a7239 | |||
| 6544b1911e | |||
| 195350b8af | |||
| 0a22d34b4b | |||
| be52063100 | |||
| 6ef1e6d68d | |||
| 2d1c67cbd5 | |||
| 9a74914720 | |||
| be6de66c8a | |||
| 82f39cb588 | |||
| a6c5fb497e | |||
| 79157104e0 | |||
| 4fcd90bb37 | |||
| 670135cf86 | |||
| 26e650d0ab | |||
| 142f42c903 | |||
| 3c31a662de | |||
| 2e69cf70bd | |||
| 1e204fb105 | |||
| e6e9feb586 | |||
| a4f2cb4972 | |||
| 84767fb60c | |||
| 695fc87f55 | |||
| f1632bd090 | |||
| df837f15d8 | |||
| f01a835d47 | |||
| e649f43dd5 | |||
| d1d6525bbf | |||
| 570d0b6f72 | |||
| c6cb0b4930 | |||
| 4a0964bd91 | |||
| a9bf334674 | |||
| 21e377356c | |||
| 4bd36d5407 | |||
| 1819060a76 | |||
| 0e6a8be822 | |||
| 7a7e3ebc1a | |||
| f480c13d25 | |||
| f23a086603 | |||
| 91649fe933 | |||
| ff7c2a81f2 | |||
| 1e4137c847 | |||
| 0d101e51b8 | |||
| f176e82253 | |||
| 04955a421f | |||
| fd59fba0d5 | |||
| e53e8de76a | |||
| 8ea78461af | |||
| b55fcbcea1 | |||
| 67d0317a87 | |||
| f19762c67d | |||
| 4fc91e9207 | |||
| bb25bebac7 | |||
| 8f439ac7e8 | |||
| 51556b70a5 | |||
| 6ff073e8f3 | |||
| 4c346ab6e3 | |||
| 7d9b420d93 | |||
| a2a2377a21 | |||
| d7cdeb112c | |||
| a7df33c79c | |||
| 2059b0eac4 | |||
| a510ada95e | |||
| 32e29c9edf | |||
| 532c9f0096 | |||
| 887338c198 | |||
| fc8b8170f7 | |||
| 55a7f31d1d | |||
| faa6e0a41f | |||
| c61b0ed4a8 | |||
| 8531e1149b | |||
| 42dcb1b529 | |||
| 8b3a6d8ce1 | |||
| b6beaa3f8e | |||
| d4198865f7 | |||
| b8f57d9bec | |||
| fa9ce18623 | |||
| 5dc2f67c66 | |||
| d4043c546b | |||
| a2b6b30794 | |||
| c63088f288 | |||
| 682542ec45 | |||
| f1004a5e4e | |||
| f73fb793ff | |||
| 7083594e96 | |||
| c0fdab7ce6 | |||
| d63144b7e1 | |||
| 9ab335dc82 | |||
| 346ea8583a | |||
| 0759718bd8 | |||
| 39a49bbf37 | |||
| eb4cdbe904 | |||
| 2c126e7bf5 | |||
| ca2d29a024 | |||
| 729e9eda04 | |||
| ac24e389b3 | |||
| 0036a235ed | |||
| 2d39261a1e | |||
| e9f030e164 | |||
| 2c87aec44a | |||
| c77c4d0b2d | |||
| 926fdadd32 | |||
| bd4dc179b8 | |||
| 7f7a779825 | |||
| 23ba3c646b | |||
| df51e0a4a7 | |||
| a700541abb | |||
| 2c4117cc50 | |||
| e97af6b7a1 | |||
| 3f1f5f6072 | |||
| 308f599683 | |||
| 20577ba42b | |||
| c6831b3ea0 | |||
| 41aeb9aede | |||
| e9081452d5 | |||
| 38151c4a45 | |||
| 1aff0cbe39 | |||
| 10c8928039 | |||
| f0600e428b | |||
| e170b54f9b | |||
| c6f4201fc0 | |||
| 1f1ac4be07 | |||
| 2afcd12df9 | |||
| 6a31d3e093 | |||
| 45266b3f63 | |||
| 3f20273e38 | |||
| 515d7f0906 | |||
| 13eb8447ac | |||
| df698e66cf | |||
| c817d06261 | |||
| 3ec50c35c1 | |||
| 67c297c615 | |||
| d2266eef08 | |||
| 48d7715b21 | |||
| 399d3995c5 | |||
| efb83c5d9d | |||
| 0a6f9b3548 | |||
| 2befb7106c | |||
| a94a88d331 | |||
| 2e1e4be90b | |||
| 1f8d32165e | |||
| 946489a181 | |||
| 7ee01d317d | |||
| de09ced18c | |||
| 303f6cf569 | |||
| 9a5694933b | |||
| 64c61a4f43 | |||
| 656a72fb71 | |||
| f95a2060df | |||
| ccbbaeddd6 | |||
| 12b6415e78 | |||
| e0c988f550 | |||
| 73c398015e | |||
| a01e32f67b | |||
| 8e898bd2de | |||
| 77b8783db2 | |||
| cf80a547ce | |||
| 727cbaffa7 | |||
| d53896ab9b | |||
| 6dbcaeeeb0 | |||
| bf186bf7c2 | |||
| d519b1891b | |||
| 47493be741 | |||
| eb831f79c1 | |||
| 52cd8a9821 | |||
| 2ae4511c0c | |||
| 8954fa0d16 | |||
| 2a3a171ca3 | |||
| 1fc6fc205b | |||
| 9f74a26b1f | |||
| dbda99eb07 | |||
| f82e3df79f | |||
| b514501496 | |||
| cdc092218f | |||
| e2d52fe785 | |||
| a8a3fca9a0 | |||
| 113dd51ea3 | |||
| 4443556d2e | |||
| ec0b4e53be | |||
| f5fa8cbc5c | |||
| 1e5e0ca303 | |||
| c48b2ae0c9 | |||
| d802fc9458 | |||
| 500539f9c8 | |||
| eba91edabb | |||
| 7c274113eb | |||
| 939d18d323 | |||
| 57057593e9 | |||
| b5c8fc8be2 | |||
| abd3c0174f | |||
| 67597003cf | |||
| 826e865708 | |||
| bc48353cc5 | |||
| c9cc125a73 | |||
| 6c59ecddd6 | |||
| ea83616dde | |||
| b0ce537eb6 | |||
| 48866df182 | |||
| 2b0dadc3fb | |||
| 646b69e35e | |||
| 2ac080cb19 | |||
| 3956f65bd0 | |||
| b1ea7ab8d7 | |||
| 50b3f2e38f | |||
| 92237f7634 | |||
| b06c682cd5 | |||
| bf52e6f7a9 | |||
| caa0fa6e20 | |||
| 4b91513410 | |||
| 426fe81e54 | |||
| cce7d4f63e | |||
| e76f73eb52 | |||
| 17dd9f2e51 | |||
| 543381ffd7 | |||
| c5816a06c2 | |||
| c3743345ee | |||
| 5b2530d6b2 | |||
| 32bb1fada6 | |||
| 1df574a033 | |||
| a6191c6047 | |||
| f3c582131f | |||
| 92daf7bd16 | |||
| 93c1bf4aee | |||
| 9a0d253c2c | |||
| 95db5af92c | |||
| 081e3858cd | |||
| 50e7c00cac | |||
| 3220c75c4e | |||
| c5727c8437 | |||
| f05d52ccb1 | |||
| d24a6213a6 | |||
| 14e1163651 | |||
| 4c6b0aa0c8 | |||
| 04921b9b8f | |||
| ee269b9ad5 | |||
| 359aca85de | |||
| 76f8f95769 | |||
| 99e7891705 | |||
| acbc71f94b | |||
| c683b3567a | |||
| 010049efd4 | |||
| 83fd08ec5d | |||
| 9b668a85e9 | |||
| 07277e7107 | |||
| 9d8fdc485e | |||
| fab0754115 | |||
| 35b13f9927 | |||
| 807bfc889d | |||
| 9449806628 | |||
| 87af2671eb | |||
| 946bc3e75d | |||
| 1f52a16ef1 | |||
| 444c73d6a5 | |||
| 899979491b | |||
| ed5088f49a | |||
| 0a1f8af4e0 | |||
| cf2d0681a9 | |||
| ec5d9bc7ef | |||
| 2fabab8822 | |||
| 41409252da | |||
| c35132b2a9 | |||
| 91810fd9ef | |||
| e6ffa8171d | |||
| cfde4c9e52 | |||
| 736fd2a200 | |||
| a4a5a954e7 | |||
| 1329d43de0 | |||
| 7166f291b7 | |||
| 7d5c4275c2 | |||
| 2f902d7390 | |||
| 6283dd2635 | |||
| 69be6a3f07 | |||
| beb0c5ef09 | |||
| 7fa9422485 | |||
| 262ca3a99b | |||
| ee4d81fdea | |||
| 569dc15f4f | |||
| a0500ee0d4 | |||
| 10b39e1301 | |||
| d69d9de4c6 | |||
| d6c94ed314 | |||
| b7f3fb5deb | |||
| 8c58dd00b5 | |||
| 12b145050f | |||
| 34a44cefc4 | |||
| 8ff6ce2ff2 | |||
| dfdf8322d2 | |||
| 01e041efd6 | |||
| 1cbec25e35 | |||
| e38daf8467 | |||
| 40ff084785 | |||
| af83dee486 | |||
| 2081d3b18c | |||
| 443b3fff0d | |||
| ab3a2e704b | |||
| 590de892e6 | |||
| 06ece44d22 | |||
| 224a3e35f2 | |||
| 2013d93521 | |||
| d6083f3017 | |||
| df86abf313 | |||
| 22a0e38fbb | |||
| b183d5f141 | |||
| 87a0cafd24 | |||
| a6c20a66ed | |||
| edbb25441f | |||
| 38922b9860 | |||
| e5a5302284 | |||
| b9dc7f9b81 | |||
| 204aa7b154 | |||
| 36b52dc240 | |||
| e3530fb537 | |||
| cbbcb0ebdd | |||
| e8789745aa | |||
| bd15789c4c | |||
| 003b7670cb | |||
| 7d2efa2aa0 | |||
| ed58320403 | |||
| 0e983a2b62 | |||
| 28c0732fd4 | |||
| 6170c8c5c6 | |||
| ef4ef8a8b6 | |||
| 2734a17368 | |||
| e5b892f37a | |||
| 64e37e180a | |||
| 2993a9d7c8 | |||
| 05dbf9a83f | |||
| bfda82c6f9 | |||
| f70437892a | |||
| 036f8f2cf3 | |||
| 98b146394f | |||
| 549a46ffcc | |||
| bb133844e4 | |||
| 679398ab2a | |||
| 5a1fc5d5ad | |||
| 106bd6e1c3 | |||
| df72c2ccd4 | |||
| eb57f41857 | |||
| 739af21685 | |||
| 739b802d0f | |||
| 19a60bcf7c | |||
| 391df20a46 | |||
| f25f315639 | |||
| 1c2e5d7d39 | |||
| 12c83f4a6f | |||
| 17a2dd8e7a | |||
| d8ecbb828f | |||
| de1c12786b | |||
| e863e14093 | |||
| dedb21de65 | |||
| 7fd77130b5 | |||
| 19ed69e870 | |||
| 3729c5bb3f | |||
| 9bceba1d9d | |||
| b45a2a532a | |||
| 7c125f2aa8 | |||
| 8b9a842521 | |||
| f376787c57 | |||
| 39e0e173bf | |||
| 319f13bf92 | |||
| 9132f5b057 | |||
| 78b1dd3f88 | |||
| 285bcb5d5c | |||
| b662d9ae12 | |||
| fdc7b2c193 | |||
| 19b739e614 | |||
| 1bc5708920 | |||
| 99703bfc7d | |||
| 1cf6a385a0 | |||
| 6461427870 | |||
| 96b5ed86e8 | |||
| 45025d7b5f | |||
| cb7cd8ec71 | |||
| 2a8688d39c | |||
| d014321afd | |||
| f3e0581ac5 | |||
| 8db49bd998 | |||
| 02df95256e | |||
| 25f9c3884a | |||
| 8d5e6edd84 | |||
| de0969d1de | |||
| 26879c46fc | |||
| 2916482f8c | |||
| f8a79ab175 | |||
| 885ed7b51d | |||
| fa42b57dd3 | |||
| 064328b92e | |||
| d64370541e | |||
| f96d802182 | |||
| fefa233d9c | |||
| 6fea0b6683 | |||
| 5290c2fc09 | |||
| 653190fa6e | |||
| fb089b9a71 | |||
| 522960a2c0 | |||
| 705c202ba9 | |||
| ef358767e0 | |||
| 9771340ba2 | |||
| d6b2f156ff | |||
| 1ce228614d | |||
| c4ec82ecc6 | |||
| f51c5f698f | |||
| c9fed93159 | |||
| e24c4655c7 | |||
| a783d1b713 | |||
| 46063018fe | |||
| d52baca0cb | |||
| f3cfe0e2ab | |||
| 909fce3119 | |||
| b0b0b5e839 | |||
| 77028f2c29 | |||
| f6c6db2597 | |||
| f697e55a95 | |||
| b6be7ae1ae | |||
| 12377e8f9e | |||
| d816ee2b5d | |||
| 16194ce2c3 | |||
| 6a99d5629d | |||
| dd8b9592e0 | |||
| 7526a3b16c | |||
| 9da3a9a7cb | |||
| 49dc280805 | |||
| 16d8d18c0d | |||
| 18eee8f2f9 | |||
| dfeea3184e | |||
| f182b22b76 | |||
| 5f1e3b467e | |||
| b41d35f05b | |||
| b69c583d22 | |||
| bb99ae7e03 | |||
| a126213ed5 | |||
| d13ab0b992 | |||
| f0d205b9f6 | |||
| 0659912848 | |||
| 5e7d36ab98 | |||
| e3b9b707e5 | |||
| c79768b2e0 | |||
| 8dbec5230f | |||
| 51281e1850 | |||
| 9f11df4d30 | |||
| b102f5e622 | |||
| cbcd451dbd | |||
| f2f8474495 | |||
| 1588e8128d | |||
| 2222b28fdd | |||
| eb859cb53c | |||
| 4231e1bba5 | |||
| 6ee6bc05b0 | |||
| 25666a1895 | |||
| c24e5b5cc3 | |||
| 4fb09287b6 | |||
| f6986c1bac | |||
| 0e86cf801b | |||
| 8355f3d3b4 | |||
| 8c4f5dbfd8 | |||
| c1b1055c1b | |||
| 9a892424d3 | |||
| 244aa81d1a | |||
| 539afb5773 | |||
| 90c17258c2 | |||
| 2909795958 | |||
| 87517c8247 | |||
| 015dd91cd8 | |||
| 01d6fdacc0 | |||
| 2e62753e4d | |||
| 962ed6ebf8 | |||
| 8641bee38a | |||
| c9e5aad704 | |||
| d4cc36fbe8 | |||
| 42a38ba8d0 | |||
| 483a1c3277 | |||
| b132383344 | |||
| 480ba538fa | |||
| 896ebeccd0 | |||
| 90b4a261f6 | |||
| 23e05440cd | |||
| 104c85ab84 | |||
| 1eeaf4e881 | |||
| 63ec2d48c6 | |||
| fcbb998d72 | |||
| 24b674f99d | |||
| 22a1cbbf7e | |||
| 1ba2641b5b | |||
| 561f372e20 | |||
| 8fe7a5408c | |||
| 0c30276a39 | |||
| e614dba6ba | |||
| c8ecb7b7c7 | |||
| f58c769ce2 | |||
| cbc4f65a43 | |||
| 0a12c9f43b | |||
| 98100189ec | |||
| 93120acbcf | |||
| 244dfaf245 | |||
| 25b77cbf2a | |||
| d6e359b460 | |||
| 80e396ba67 | |||
| b6738b9e15 | |||
| fdddeb2e33 | |||
| 94953e6ce1 | |||
| e3c3f7e2ad | |||
| ea842fdcd4 | |||
| 6bd2be6c19 | |||
| 7ee5220010 | |||
| e5188abc04 | |||
| 7db953b341 | |||
| 29d91ec83b | |||
| e8af406e8c | |||
| 66f85fd665 | |||
| b14e56e7ed | |||
| 11917efbb1 | |||
| c8a51d5272 | |||
| 9d02380e5d | |||
| 346d3fc13c | |||
| 6bda614fce | |||
| cbb79103d9 | |||
| 049e2dad48 | |||
| 0c20b9e0e0 | |||
| f4ec56896c | |||
| 7bb826d024 | |||
| c20a6d656b | |||
| 03a1ddb767 | |||
| 3ff2841600 | |||
| a61050d0b7 | |||
| 273cb19123 | |||
| 78598fc848 | |||
| f5d43cbefd | |||
| bdc508ca30 | |||
| 6c7c5c92cd | |||
| cba216eea6 | |||
| 9efd9c6cb1 | |||
| db05859538 | |||
| ec32cf4399 | |||
| 569017d4b5 | |||
| 578b776f50 | |||
| 5bd3dd5389 | |||
| c29f251e0c | |||
| 7486b13eef | |||
| 7dca418f8f | |||
| 43edb6e28e | |||
| c87a4eb985 | |||
| f3bec68606 | |||
| d778c96f24 | |||
| 5238680f4e | |||
| c582ec1f00 | |||
| d403dee27f | |||
| 033c674821 | |||
| 6b47b3ed04 | |||
| 20448bbb9f | |||
| 99be2add0d | |||
| 329879b152 | |||
| 567a0cf048 | |||
| 241666ab45 | |||
| eb51a46b07 | |||
| 60bc5c0d01 | |||
| 82c369f341 | |||
| f237dfbc7c | |||
| fe5cd58192 | |||
| 62dc4a0d3e | |||
| 04c6035e79 | |||
| 70be4e63a9 | |||
| 12bfcf4363 | |||
| b0a2691a9b | |||
| 7b043b8aad | |||
| 23fb52737b | |||
| c1e849a701 | |||
| 75bc1c5015 | |||
| 8a975d9829 | |||
| c26fb969c3 | |||
| 4544c029bf | |||
| af7eac439c | |||
| 76bb7b8a60 | |||
| 8c1b90ac2a | |||
| 2242dc0558 | |||
| efc9851ece | |||
| d8da557343 | |||
| ca566baee7 | |||
| 6cfe4927ee | |||
| 2f86ddf54d | |||
| 4efd4a1fbd | |||
| bfa463f427 | |||
| c36e1390eb | |||
| d1bd12b0e2 | |||
| 9d9fec4c62 | |||
| dbc0eea563 | |||
| 97d8766dc6 | |||
| 0d95cb99fd | |||
| 06ebe00ed3 | |||
| a5eddf5e9a | |||
| 5e8a75e6f4 | |||
| 3061d2a15f | |||
| a6359ab812 | |||
| b767b19a22 | |||
| 9e7160f4e0 | |||
| 90b1454d3f | |||
| 0247a68bb2 | |||
| 55c5c9fb3d | |||
| 6791b36b20 | |||
| a78d4ab6a5 | |||
| 8561b882d6 | |||
| 34ce78ca92 | |||
| bf96a523bf | |||
| ea6fc565da | |||
| 0626768b17 | |||
| aebb05a22d | |||
| b4f69b80a6 | |||
| 1a28044b91 | |||
| ed9b4fd905 | |||
| b067ca460f | |||
| e3b897ced2 | |||
| 6b59ed084a | |||
| 398dd3c5d4 | |||
| 64dd8e0466 | |||
| fc497729fd | |||
| b2d5e59da0 | |||
| 1d8aed0c37 | |||
| 41f080ea36 | |||
| 9ae0c84205 | |||
| f2002aa178 | |||
| 62a497b1a3 | |||
| dd9ae34c02 | |||
| b16960015e | |||
| d7bbf9d357 | |||
| 8f086dcd8a | |||
| 688e0c7506 | |||
| b34d1e275c | |||
| 43036fb7fe | |||
| 09eb756bc6 | |||
| 570bc23f02 | |||
| 832e230cd8 | |||
| 80ef38459c | |||
| a0ecb15c19 | |||
| 02f1626fb8 | |||
| 5800c1d74d | |||
| b95ed0f2dd | |||
| 1293a4a327 | |||
| 18fc805a0f | |||
| 540a19cfaa | |||
| 218bfd1323 | |||
| ca482d88d2 | |||
| b50433ca19 | |||
| 2314c2c63f | |||
| 3de1a7f2c2 | |||
| a6fad03602 | |||
| 5e8bce8c51 | |||
| 85733dfa3c | |||
| c062c0f857 | |||
| 190cdee153 | |||
| 7107433dcd | |||
| d1c9b8dbbe | |||
| ed26c90816 | |||
| 0960f63f03 | |||
| 2f3e4fc8c2 | |||
| c27e89a85c | |||
| 8f0077396e | |||
| 35250f7334 | |||
| 2f4a211065 | |||
| 2ae1f65705 | |||
| 79654065b4 | |||
| 6a672affcd | |||
| 6094e56112 | |||
| fa4a3bf606 | |||
| 7202b9da7a | |||
| 3bcd65bcb5 | |||
| 39581a1d09 | |||
| 8627293874 | |||
| 82b6211c50 | |||
| eac93274e6 | |||
| 1345baa885 | |||
| b8f66b69e1 | |||
| 4be8d6647d | |||
| 9428f23d63 | |||
| 38e261b283 | |||
| c0fbf32c8f | |||
| 1d5d5666fb | |||
| 16b9a17adc | |||
| 69f869ca16 | |||
| eb8ff64592 | |||
| 63afbe6d05 | |||
| 7db767b36c | |||
| 34ba91f8df | |||
| 2849eb539c | |||
| 62db60c36f | |||
| 9c343b5b58 | |||
| 0e075582c6 | |||
| 6557b37f44 | |||
| 4b30bb41a3 | |||
| a59e0f6a84 | |||
| c7f727d974 | |||
| 77fefd9123 | |||
| e65588ab65 | |||
| 5d024eb583 | |||
| 10e323f80b | |||
| 41a432a88a | |||
| e116197137 | |||
| 89b769ec11 | |||
| 9bcd254e1f | |||
| 6e02f37876 | |||
| 17064f496c | |||
| 0b2a39755f | |||
| c12bab5ede | |||
| a90f8beca3 | |||
| 417c2235f3 | |||
| a6b43ca28e | |||
| 252c3977f5 | |||
| 583e94f8ca | |||
| a16b870c3c | |||
| 48f09cbda3 | |||
| ccdbae085d | |||
| 1fa4cab410 | |||
| 32a5b96f89 | |||
| f5ccf0d0ef | |||
| c22cc8dd4a | |||
| 6dcd020977 | |||
| 40cd3dec1a | |||
| ef5981e752 | |||
| 67c99cdff5 | |||
| e44c295ad8 | |||
| edca8f0f33 | |||
| 7e5960c637 | |||
| 65ef0ffe81 | |||
| 92758ac2aa | |||
| 651d8779a8 | |||
| 5e80ca8573 | |||
| 623a331ef5 | |||
| 23b449951a | |||
| e638e812e2 | |||
| d113871810 | |||
| df4f271a7f | |||
| 0873d4ab8d | |||
| 28b1bb51ec | |||
| 910215c7a2 | |||
| 045fb50ac6 | |||
| 02d5cd9023 | |||
| 7a03540af7 | |||
| 6d2bc37c82 | |||
| 662a977f2a | |||
| 8e81ad1091 | |||
| fb709da465 | |||
| 8b2e421f59 | |||
| c40a5b413c | |||
| 1d89346337 | |||
| abd5432247 | |||
| 6d60d22ee1 | |||
| fb4cbb0cd2 | |||
| 01e4ab3c1c | |||
| b60b6933c6 | |||
| 971d5b79c5 | |||
| a55c42808d | |||
| a554eb6b75 | |||
| 9705ca763e | |||
| 4790d40f22 | |||
| 5499eb30af | |||
| 342bebfd40 | |||
| a643b5a0bf | |||
| ab44abd652 | |||
| ae20a06ce9 | |||
| b29e9f6dfc | |||
| ea288e8f9a | |||
| da975c6b42 | |||
| f711f996ef | |||
| ff69111bd2 | |||
| 155095b32a | |||
| 989b9f37b6 | |||
| e1512a8825 | |||
| 0f44c4ae13 | |||
| 2152f08eae | |||
| 6874ae57b9 | |||
| f8884ef1d2 | |||
| e1444d40da | |||
| 45e8e6c391 | |||
| 716ec49d32 | |||
| f4af0c831f | |||
| 720317931e | |||
| 323872c503 | |||
| bdc66f1f7a | |||
| 0819b2cc67 | |||
| ddf15c3e67 | |||
| cbed9f4de0 | |||
| e650629cb6 | |||
| fd6f5e24ea | |||
| 0858c1c06a | |||
| 84b716bb81 | |||
| b4c2a2240c | |||
| 0d0c1f0303 | |||
| 382f779114 | |||
| 336fd7ff39 | |||
| cdc6107715 | |||
| e4b1dba228 | |||
| dbc97fb205 | |||
| 5eaebe59d2 | |||
| 8abd247968 | |||
| b8b9b1d8e2 | |||
| 0df23b1b25 | |||
| 089cb1582f | |||
| 1259f07dbb | |||
| cb2a8e250d | |||
| 3f928b8be6 | |||
| 690a76bcde | |||
| 691954f517 | |||
| 0a9a69eb92 | |||
| d1cfc04f51 | |||
| 553acf35ca | |||
| 41ba156fe4 | |||
| 8283f207dc | |||
| b7bacb74f7 | |||
| 9628eb5902 | |||
| 7f758eb8c7 | |||
| 9ab367b32d | |||
| cb498936a1 | |||
| b26f0c3b53 | |||
| 8bedbd1406 | |||
| a5ef4ff627 | |||
| 397deb2b2a | |||
| ff35d368b3 | |||
| e0a4cfd0a5 | |||
| c1c44af54d | |||
| f4166a796c | |||
| c178b7f81e | |||
| 6496b6b417 | |||
| 5d3067c98f | |||
| 50fe2024ec | |||
| c84b0fcba7 | |||
| 2c096cff92 | |||
| 540419ac5f | |||
| 42f7f3863e | |||
| 922c242c00 | |||
| 6846b798ba | |||
| 36e02742b1 | |||
| e47e711cfa | |||
| b57def4763 | |||
| e7d2913f33 | |||
| f20118fed9 | |||
| 4bbf660067 | |||
| ce5a1b4521 | |||
| afede12c04 | |||
| b03dff09b4 | |||
| 49217b652e | |||
| b0afac60ad | |||
| bee9f9c7c2 | |||
| 171f312097 | |||
| 9944213436 | |||
| 919b0c316c | |||
| 1d1c1311a7 | |||
| fd30c6b272 | |||
| 5ddceb2116 | |||
| 27c494d808 | |||
| 7d771106a1 | |||
| 3a2a94f637 | |||
| 2589f6b642 | |||
| 6489762fa6 | |||
| 569c17eb59 | |||
| b47167bffa | |||
| 117eb69d00 | |||
| ca83dfed82 | |||
| 90e6bdb34e | |||
| 9895370291 | |||
| b28ea74582 | |||
| e3f9ce548d | |||
| 93c6927326 | |||
| 41f0d9e2d7 | |||
| f179a72a10 | |||
| 6442e69bb5 | |||
| b0769ed94b | |||
| 0e7d333f88 | |||
| a7499b4002 | |||
| 1cd0f1f61d | |||
| 3de8d970af | |||
| 783f0ef4a2 | |||
| 4e65569bb0 | |||
| be94cf3714 | |||
| 87c33c7616 | |||
| a449ab6310 | |||
| a98b011ed6 | |||
| 492054b243 | |||
| c8b7515f38 | |||
| 78df118350 | |||
| 0b035b344c | |||
| afcec85b1c | |||
| 040ff92099 | |||
| 29dcc1960c | |||
| 45498558f9 | |||
| d7b08463ea | |||
| 6557b4e7f5 | |||
| 2eb0ad444e | |||
| 7b7b50dad7 | |||
| a5620124d6 | |||
| 7642811bbf | |||
| 9457aacdf0 | |||
| 445b576a58 | |||
| 1ab05985ed | |||
| c170f7bc6a | |||
| 9b15e7fcf8 | |||
| 1f4459aafd | |||
| 8ab3b1a1cf | |||
| 085dcfd617 | |||
| 8e722ea716 | |||
| f15a4de104 | |||
| 10e3ae9f33 | |||
| 331bc16d61 | |||
| 77c87667db | |||
| 56c820fb49 | |||
| 66999b48f5 | |||
| c892792209 | |||
| 2d70b5c477 | |||
| f7af08ba42 | |||
| 6da3697f9f | |||
| 0e93b1b696 | |||
| dd444125ab | |||
| 5d5a1d0960 | |||
| c8ce78afd0 | |||
| ef83b84f8b | |||
| a395843c68 | |||
| 7615f98ff7 | |||
| a6494f5ad5 | |||
| 379c161446 | |||
| 0c734d6832 | |||
| 06e7288463 | |||
| a1833b71bb | |||
| 47fb78f48f | |||
| 3062f7b1c5 | |||
| 685d36e801 | |||
| 928fc755cc | |||
| 3942bb6bde | |||
| 740ccdeae5 | |||
| 43ab59355c | |||
| 01975326ff | |||
| d19eb1b420 | |||
| 6d6df3b0e0 | |||
| 5ed3f2cdc3 | |||
| fd856d47cd | |||
| 432aa7a7f9 | |||
| 60d84eb9c7 | |||
| 22a998a486 | |||
| 8d25113870 | |||
| 8eed366797 | |||
| 829b4c4755 | |||
| 52db89f7c8 | |||
| 49e7c28584 | |||
| 6377d81abc | |||
| 3c1b528685 | |||
| 8f290fcc86 | |||
| e0e1f3e654 | |||
| b663eef6f0 | |||
| 0ff829de6a | |||
| c7e5684425 | |||
| 3df4b1af97 | |||
| 35ae82ec91 | |||
| 34f6fb4e8d | |||
| 7e53e362b3 | |||
| 6319f032ec | |||
| 26c3919ded | |||
| e9fe6943b3 | |||
| b5c37c493e | |||
| 9a83ba77d2 | |||
| e397c29983 | |||
| a49daf240c | |||
| e0ee49cfef | |||
| 0ead765da9 | |||
| 0ec54e1dcf | |||
| efe30fdc31 | |||
| faf89f3c8e | |||
| 195a68e9e1 | |||
| b804dde202 | |||
| d95c55f8c4 | |||
| 195446684f | |||
| 447fa2e768 | |||
| 1035cc8ba6 | |||
| 7929120aa8 | |||
| 0696961ea7 | |||
| e558e38487 | |||
| df013ad57b | |||
| 06f5c8ddd7 | |||
| c5e5541282 | |||
| ab984471bd | |||
| ca48e195b2 | |||
| 2ee0736a5a | |||
| 9d766a375f | |||
| 89e2fabaf4 | |||
| c91b3ebaa2 | |||
| 77bb0fe85f | |||
| 678b3f5f5c | |||
| 17a6d312a7 | |||
| cc5bccdf33 | |||
| a62858a5a5 | |||
| ab6425d526 | |||
| 7bad2dfd0a | |||
| ac4c9c60d3 | |||
| bc07a5179f | |||
| 61e4d140e3 | |||
| 07317608bc | |||
| b32ff5badc | |||
| 4653350687 | |||
| 8a2cc5493c | |||
| a97b899e74 | |||
| fb3ba56953 | |||
| 0ee8e83212 | |||
| 16ab75d7fa | |||
| 3a4c5e8047 | |||
| 26611e970f | |||
| 9d984bbd5f | |||
| 141d788990 | |||
| ef00549452 | |||
| 5f3ccbcf1c | |||
| 552a6d3cd4 | |||
| efa46c5d62 | |||
| 92739fdbeb | |||
| 84a0becfe4 | |||
| 31c5694c10 | |||
| 1c0e09c334 | |||
| 5aa4104683 | |||
| d626730dd2 | |||
| f3b0bcb7c9 | |||
| 6db72c165c | |||
| d67fc55322 | |||
| 78942cc30f | |||
| 0f682ec45e | |||
| d4f500787b | |||
| 986b7a07f0 | |||
| 835652c5d2 | |||
| 6f63dd7522 | |||
| ab15f1a879 | |||
| 4f8010d0a0 | |||
| 0988944949 | |||
| c52f6b9048 | |||
| 1e07470c98 | |||
| 61113a8dd9 | |||
| 5acbb5b3db | |||
| ebecd3b40e | |||
| 01cc3f6bf7 | |||
| fcee31c237 | |||
| 21855e2176 | |||
| 68cadcb52c | |||
| a28693139d | |||
| 2e3af258b4 | |||
| 528edd10b2 | |||
| 8bf2035d3c | |||
| 25c9986d4d | |||
| 0c759878bd | |||
| 903feb9bc1 | |||
| 23f088e938 | |||
| c9ef1d465b | |||
| 9d61f574e8 | |||
| 01bfde4bc7 | |||
| f673fe21d2 | |||
| 7f5d6f8383 | |||
| a9606106cd | |||
| 029ce0d948 | |||
| 97e822da48 | |||
| 25b58a0873 | |||
| d9dcdb8915 | |||
| c02fd28af1 | |||
| a22522a725 | |||
| 8dc7cd36fe | |||
| 49b3b63d72 | |||
| d2501bc030 | |||
| 97b9331afb | |||
| 6451098bd8 | |||
| 510c759f64 | |||
| 6363ad61f7 | |||
| 551fc095ac | |||
| 7cfb3e9369 | |||
| 222ce076f5 | |||
| d7d7b8bf49 | |||
| b5ace4ad2a | |||
| 35eea03570 | |||
| 91449a4fc0 | |||
| 3e835b85a0 | |||
| 0816af5cb8 | |||
| a783ea88d3 | |||
| 8e4024afb0 | |||
| d29b244ff3 | |||
| 092793805b | |||
| 3d5ba4eae8 | |||
| 4350320437 | |||
| 3153790ac8 | |||
| 2316fd5911 | |||
| b8519ed9c7 | |||
| 4183d70999 | |||
| 9a8283e121 | |||
| 6f96ab0173 | |||
| 9f48d73510 | |||
| 305d1f5cdd | |||
| b1a8c6d395 | |||
| bd364111dc | |||
| e9745bba42 | |||
| 3882cb5cc2 | |||
| 7920ca2d48 | |||
| 8673eea0a1 | |||
| dc2d6a7244 | |||
| 34d4b97189 | |||
| eb0f327c49 | |||
| 877b136f02 | |||
| 705a2f25d6 | |||
| 10ce9024f4 | |||
| 40350df34f | |||
| ad3c7828d4 | |||
| 25dd4be923 | |||
| 9474e84e35 | |||
| ede15e1a8f | |||
| b51549e20a | |||
| b9f6c70b95 | |||
| 6359d73864 | |||
| f8a43b5053 | |||
| f7b4bb5635 | |||
| 27f6f4064a | |||
| 783bc2cc18 | |||
| 524ad4a5e1 | |||
| 3ed605f45f | |||
| dcca01a26d | |||
| deedf81e90 | |||
| bd387006f4 | |||
| ed149d8ef3 | |||
| 086e56c81d | |||
| 3b561a037e | |||
| e97fd63d8b | |||
| 9475956cdc | |||
| f74a85320e | |||
| d314685789 | |||
| 42d5e77536 | |||
| 6d35478837 | |||
| be01f5fcab | |||
| ad9f771c02 | |||
| 268819aa44 | |||
| 865b5ec6ba | |||
| d2d7cc175e | |||
| a195837be5 | |||
| 3ee1b69be4 | |||
| cec14342fa | |||
| e6b8b4b858 | |||
| 9d7ed3b561 | |||
| 723002d92b | |||
| 05037ceed2 | |||
| f4795426be | |||
| acdf2094d0 | |||
| bbd5143dc3 | |||
| 9e23cf1a92 | |||
| edafe2e453 | |||
| e11b84b982 | |||
| 8c1751c0b5 | |||
| eafd32048b | |||
| 8712b85bea | |||
| b9b08294c9 | |||
| f162d0f195 | |||
| ff98c8c4db | |||
| 3f13bb9f25 | |||
| ce19e1bf8d | |||
| f64cb83838 | |||
| d790f8f9ba | |||
| f42e20b48d | |||
| 5f6441214b | |||
| ded915d780 | |||
| a711120781 | |||
| ec1e7b63e1 | |||
| 6479dfcbe2 | |||
| d3462eca05 | |||
| 479f6feb6c | |||
| d897f1b9cb | |||
| c37e641e6b | |||
| e098d1d39b | |||
| a2727180df | |||
| 79fc31c74f | |||
| cda170ff64 | |||
| 7fceef44f2 | |||
| d1e11bf78a | |||
| 3957eb2bf6 | |||
| bb56645fb0 | |||
| 04bd38a2ab | |||
| 78591cd9ca | |||
| fe2b68697b | |||
| 4d27d8a250 | |||
| c474d10f77 | |||
| 600130b1a1 | |||
| 602e64dafe | |||
| 22f93982df | |||
| 6bb10531bc | |||
| eb345f04c2 | |||
| 96a4d54295 | |||
| ca9a57c684 | |||
| 9074961c55 | |||
| 909ca50c49 | |||
| c0f8cea2cf | |||
| c4318c4e3d | |||
| 14eb3ddd4f | |||
| 8a3bec3f62 | |||
| 697cba3bb5 | |||
| b5087e1ed4 | |||
| fd689a4a3b | |||
| e38776ab89 | |||
| 06696b6002 | |||
| 491273bd35 | |||
| 4182ff8bf5 | |||
| 49589a2406 | |||
| 65e992f0c2 | |||
| 15df8f7f37 | |||
| 73378e1456 | |||
| 6bf376f3cf | |||
| 1708fc2b3b | |||
| 91f2a5a00a | |||
| 748d7561d8 | |||
| 1faf1e61c0 | |||
| 2dbd68c703 | |||
| 08e8426cbd | |||
| c68bb0f295 | |||
| ef62aeaa65 | |||
| c288630d74 | |||
| d9de70eb3f | |||
| 9e3482b8ef | |||
| d578c09c85 | |||
| 3d03d8c2a7 | |||
| 3c70c9475c | |||
| 68551c1145 | |||
| 348e83c86a | |||
| 3983e49459 | |||
| a09087b3f2 | |||
| 4e66ed5cb3 | |||
| ff458e43ea | |||
| 4466f7e315 | |||
| 1140e5a28a | |||
| 9bef3b10ef | |||
| eb27dae044 | |||
| 0a2bfc91f4 | |||
| d0e47205ea | |||
| 431c9cdb1f | |||
| 2a77a1307e | |||
| 4e964a58f9 | |||
| 37d1a0b365 | |||
| aeee7fa419 | |||
| af799bc6c4 | |||
| efd23ef434 | |||
| 0cb717e342 | |||
| d13ca72b67 | |||
| d85b39e41f | |||
| 6a570f0c53 | |||
| 1ec122d162 | |||
| cf1fcdde28 | |||
| 2dd42317ef | |||
| 7da807e1be | |||
| 989be8275d | |||
| 5485b75e2f | |||
| 55e1197800 | |||
| 3cb3dce7f2 | |||
| 294c04cc1e | |||
| 9bbefa16e8 | |||
| b66fd49c8e | |||
| 424bcf0b5d | |||
| 78d87c8e4c | |||
| 11f18517f4 | |||
| 7eff9b9fe1 | |||
| fec629aa4f | |||
| 66e8cdf26b | |||
| 015a8b5284 | |||
| 6ad3169434 | |||
| 0379189c17 | |||
| ac4c785fb8 | |||
| e08ceb81db | |||
| 4495a9369f | |||
| 11fac6058d | |||
| 098887a329 | |||
| f394fa7b92 | |||
| 0da409648c | |||
| 9108c53e5d | |||
| 22c3301c5b | |||
| e22b6f6e81 | |||
| 2ab5e43c29 | |||
| 40318b986d | |||
| a8051ba330 | |||
| d4bbbf352b | |||
| 95b0f791c2 | |||
| 6f1ddd2126 | |||
| 03153ebfc5 | |||
| 2e475fa83d | |||
| b0345c2f7b | |||
| 9f94ff602b | |||
| ec1f8c0656 | |||
| 8f9f2b81fa | |||
| 2e40eeaf57 | |||
| 195d8caba5 | |||
| f0eb67f2df | |||
| aec010d4aa | |||
| 61d7722d58 | |||
| 5510fdda83 | |||
| c2d5d6b845 | |||
| 688263a4b2 | |||
| b505b82a6c | |||
| ed4ca9497d | |||
| b04f51abe3 | |||
| 41950db139 | |||
| ac3bebf8bc | |||
| a9e0ee9515 | |||
| 1bfb4bec63 | |||
| d62c714434 | |||
| 1d84ccf2b5 | |||
| 9a79713510 | |||
| 5f87fcd549 | |||
| 98779857d6 | |||
| e7fb33496e | |||
| 1bc4f249de | |||
| d6b05e978e | |||
| 76bbf9779d | |||
| aaff40057e | |||
| 6dae388bcf | |||
| 32e2942650 | |||
| fd9975c5ff | |||
| db5c679e8d | |||
| a6d32cde1a | |||
| f34568ee60 | |||
| bbbe83ffdc | |||
| 01f5296a1d | |||
| 3fbca61610 | |||
| 3367e0cf13 | |||
| 98220d9e36 | |||
| 2d8967f603 | |||
| cbfe708f36 | |||
| 2be2924e05 | |||
| ea7211ab97 | |||
| 8047cbf4ff | |||
| b7d0bae27e | |||
| ad1920876c | |||
| 46bcc0845a | |||
| 95f3b83ff3 | |||
| 4ca94f6bb1 | |||
| 1941b4de71 | |||
| 5edcfdcd26 | |||
| 397b231583 | |||
| dcf02f0d67 | |||
| e066f83cda | |||
| 6402bcf27b | |||
| 80ece8d258 | |||
| 03a6364d9b | |||
| be6647066c | |||
| a720914bb5 | |||
| 4a6764af79 | |||
| 1662931a47 | |||
| 7b21957354 | |||
| e93219ff14 | |||
| ea1d558122 | |||
| f625fe9122 | |||
| 823feaf118 | |||
| 04099f616a | |||
| 45366ee295 | |||
| 2cea5dddbf | |||
| 06a6c3edda | |||
| 361dd56d86 | |||
| 65add6f7e0 | |||
| f8e8578d6f | |||
| 23adb8980e | |||
| 4628c57a0e | |||
| e36d22b247 | |||
| e6ecd0f808 | |||
| 9bbac19deb | |||
| 70ef2c462d | |||
| 68952a196e | |||
| 08b2937f6d | |||
| bd488e0d43 | |||
| ac6097c90e | |||
| 3f8c412ed5 | |||
| 2668d71da3 | |||
| cd027374a8 | |||
| 4851b6b46e | |||
| 4274b47aaf | |||
| fbdc5d645c | |||
| 5e344b212a | |||
| a75932c41f | |||
| 7bb642a151 | |||
| ec3e7159ba | |||
| 1bbb0450e9 | |||
| 87dc9c95bc | |||
| bf6de1f221 | |||
| 2dda9136b1 | |||
| 68440d6b9b | |||
| 143b697272 | |||
| 3af4f50a0b | |||
| c8278a4a01 | |||
| 0ca7b343d7 | |||
| 3f928311a3 | |||
| 0c6d4d0df6 | |||
| efd7a7a1d1 | |||
| c533b3e5e3 | |||
| 3ef72e3278 | |||
| efc0cc8e76 | |||
| c16218cd12 | |||
| db7d4073f7 | |||
| c380b77f64 | |||
| 1b3d547a1f | |||
| ba78704a74 | |||
| 215ee8a0a9 | |||
| 84a87fe6ad | |||
| d4e9057939 | |||
| 0e1660efce | |||
| 50977e8062 | |||
| 0cedbf6955 | |||
| 03d7f7385d | |||
| 1923bd5137 | |||
| 653900fd85 | |||
| 439279c069 | |||
| ca0a7a614f | |||
| 8dd5e8df67 | |||
| 434c9057a4 | |||
| 850b41c92c | |||
| 239740ad6a | |||
| 65d19be1be | |||
| 7c92f74668 | |||
| ae4a3c3118 | |||
| d102b0d6e2 | |||
| 767475355e | |||
| ed83664888 | |||
| dbbc4fe323 | |||
| 2054755efa | |||
| 44d3adbc92 | |||
| 7ecfbef8ce | |||
| 72e2ccb419 | |||
| 314c05c059 | |||
| 86d7cabfc2 | |||
| f28e427a04 | |||
| 95937d27b6 | |||
| 8b67bd05b9 | |||
| 1e78e6f302 | |||
| b6a1dadafc | |||
| 0a313cf103 | |||
| a0200f5922 | |||
| 78d067e51b | |||
| 95207ca2cb | |||
| 56efd2853c | |||
| ef4766f1f1 | |||
| 97b4043be2 | |||
| 94345a60e5 | |||
| 318f7771b8 | |||
| b8094625c8 | |||
| fb80910a1b | |||
| fe2af5a9e9 | |||
| 84244301c0 | |||
| ee2578039c | |||
| 7ede782371 | |||
| 6adb425ab4 | |||
| 076fe953a8 | |||
| 78ae253b7e | |||
| 6284c7f310 | |||
| 8cac4f05c2 | |||
| e5a6fa0f5f | |||
| 7c4db80ac4 | |||
| 7ac4ae9bfa | |||
| d35a2ebb8d | |||
| bf8c56c511 | |||
| 7b3f6542e7 | |||
| 269b04cb1f | |||
| 1a10ceaa25 | |||
| c14902154c | |||
| 0f06505787 | |||
| 37d8d33244 | |||
| f7e9e9b41b | |||
| 36c0eb27e0 | |||
| ee54b68f33 | |||
| 8f11e360a9 | |||
| 55d84400b9 | |||
| 16702223b4 | |||
| 218a8e9807 | |||
| 3474800769 | |||
| ccf0dbb5fd | |||
| 556d60b4d2 | |||
| 3dccc08411 | |||
| aac52183f5 | |||
| af048b1bbc | |||
| 1ae24a17ff | |||
| ec96820550 | |||
| 892fe144ca | |||
| 6cc77411e4 | |||
| 0b87149c28 | |||
| c732772315 | |||
| 779184be8f | |||
| 34bf1926d9 | |||
| d39962b38b | |||
| 214b3ef0b7 | |||
| a850c62f91 | |||
| 988ed77f5c | |||
| 56127dd975 | |||
| e92496ff5a | |||
| 97278bac0b | |||
| b73395132f | |||
| 9d78235b17 | |||
| ac7ad13d59 | |||
| 360a3279a1 | |||
| 79c53e5a95 | |||
| bb1872ac1a | |||
| 5167440503 | |||
| d55064493c | |||
| 03ff172e16 | |||
| 16bf49adde | |||
| c8e359644c | |||
| 7566c8bd50 | |||
| b030902cd8 | |||
| 19292eda23 | |||
| 833dc0f746 | |||
| 042e838ceb | |||
| 0f7e91ea4b | |||
| 8ab097029d | |||
| 8d321fac3e | |||
| a68f1c9019 | |||
| 6d0840b2e0 | |||
| c16266e59d | |||
| 3d16bb6bb9 | |||
| d49b4f1677 | |||
| 19ad248bd8 | |||
| ee92ac51fe | |||
| 66005e3056 | |||
| 514f277a16 | |||
| 8e2096e93a | |||
| b6ce97120f | |||
| fcb0a4daa9 | |||
| 85adbf7fe2 | |||
| 09d37a86a0 | |||
| fcaa32ec5c | |||
| d8ded8228e | |||
| 569cf05f50 | |||
| 1c183d9406 | |||
| 6c9f84b42c | |||
| 0dcb206f78 | |||
| 71d60cb2d1 | |||
| 22dd9dfc5e | |||
| f05d81673d | |||
| bb93200423 | |||
| 2f13f6636c | |||
| 333ee08d62 | |||
| d70e73cd2f | |||
| 1b691b1279 | |||
| d67d368a25 | |||
| cdd37aef00 | |||
| fd5623160a | |||
| 75d63194e1 | |||
| 382f3c351e | |||
| 4c9137a6ba | |||
| 1ea167a34d | |||
| 2a440181f4 | |||
| 6ea9bd624e | |||
| 1a0a051ccb | |||
| db1f3e7707 | |||
| 0a50ad2ecc | |||
| 53ee7d5878 | |||
| 1f8acf900e | |||
| 20765e1ea8 | |||
| 25c5c88a74 | |||
| 6c0f80736c | |||
| 9b1f9d2c98 | |||
| fde5614ffd | |||
| f3cfa189c1 | |||
| a9b8a4badf | |||
| 0af738b937 | |||
| 60bd4c8918 | |||
| 8fd5532e95 | |||
| 1272ea7b65 | |||
| 8e4580057c | |||
| 8fa100a309 | |||
| 2290edd3fb | |||
| 0b4761a9b1 | |||
| 3eb4c6489a | |||
| e3cfb527f2 | |||
| 98d4976199 | |||
| 99aef279f8 | |||
| 89a34d39fc | |||
| e783d2528b | |||
| ca3d4a72fc | |||
| a6f1260329 | |||
| fe5c14ab59 | |||
| 92f9e3c53c | |||
| 5b6b519092 | |||
| 530b0c8e81 | |||
| 746c5be69b | |||
| 290c1de6dc | |||
| 6fbc2ee982 | |||
| 73e06f8507 | |||
| bbcc613b69 | |||
| f7fd14d17c | |||
| d97da371c3 | |||
| a675fde2e4 | |||
| 8938e47b2e | |||
| 6b7f836085 | |||
| 63923cd643 | |||
| 95e1afae3e | |||
| 47fd6137d1 | |||
| 82360b296e | |||
| 581bb99133 | |||
| 62b311f2bc | |||
| 581a1a0bbc | |||
| 684b607479 | |||
| 957439e63c | |||
| 7e3ed4a61f | |||
| fbfb9bac2e | |||
| 3d6332465b | |||
| aab1e7509e | |||
| 51048fdbad | |||
| a4172fa0f7 | |||
| e6f71af174 | |||
| b1f7d161bf | |||
| 1985b18dfa | |||
| 992d1daf25 | |||
| f407045a4a | |||
| 167ef3387e | |||
| e357c21509 | |||
| 7a1b31dd30 | |||
| 2ae15f12ab | |||
| 2257549e91 | |||
| 547457ab42 | |||
| e0430d4244 | |||
| 20eb69d706 | |||
| 4fd57be302 | |||
| 84a306b08b | |||
| b68579b4e2 | |||
| 69b3e9b77d | |||
| 1e9709f22b | |||
| 71310f885a | |||
| b62c726070 | |||
| ae5b0e746a | |||
| ce233072df | |||
| b943c93b3c | |||
| 0a88f66a58 | |||
| 1e9411426a | |||
| 3ca3b484f7 | |||
| ebda7d3a4f | |||
| e223e362b0 | |||
| b15b5b1002 | |||
| f1d601a2c4 | |||
| d207182c04 | |||
| a8bbc27b0a | |||
| a0f67902ae | |||
| 8bfd9cd380 | |||
| 874364596f | |||
| 61d99558bc | |||
| d52e9b2cd6 | |||
| 700a92ac6a | |||
| 919596eacb | |||
| 986f780fd7 | |||
| 031afc690b | |||
| a0c6c152a3 | |||
| 466fb00531 | |||
| 9f0d0a212f | |||
| fe173195b2 | |||
| f1235a08b6 | |||
| a937f01a41 | |||
| b8b4dd0fab | |||
| 8bd11deb24 | |||
| c3a29e9dcd | |||
| ba34bbb8f2 | |||
| d1f36ccfcc | |||
| 11b042bac1 | |||
| 02c8b31912 | |||
| 9373b9c163 | |||
| 2e297ec7f0 | |||
| 3a22667aa6 | |||
| b347bb83bf | |||
| f356ada0fd | |||
| 6c0568916b | |||
| d1913896c0 | |||
| e17ab1b08e | |||
| ed5a88f6da | |||
| 1af5328537 | |||
| 6fe3e4e565 | |||
| a28898441b | |||
| 4e685ba359 | |||
| ea42509125 | |||
| a994d7f1a2 | |||
| 9eee37c023 | |||
| d02feb1d5d | |||
| 48d77b97bb | |||
| c3cc3609f4 | |||
| 9046960f2a | |||
| 3da9282266 | |||
| 4a0c8f41a7 | |||
| 50321598e7 | |||
| 2be4117401 | |||
| 333554ac55 | |||
| c75167f56b | |||
| 1a6addb6ba | |||
| e0c5e4b51e | |||
| 9363f651a3 | |||
| 9e3d36d779 | |||
| 4ff76d150c | |||
| 448a359bdc | |||
| cf6d9a3e29 | |||
| 0f50711b03 | |||
| d14bfa655c | |||
| 9cbbfe2ee0 | |||
| c74d6d7a86 | |||
| 20f1ab1ef6 | |||
| 814408e639 | |||
| 066521bb54 | |||
| ff22e6a50f | |||
| bed07b632b | |||
| 409d9f8e61 | |||
| 760a8c6a08 | |||
| 4e8f6b33e7 | |||
| 812ac5864f | |||
| 73bad6e342 | |||
| d961f1d35d | |||
| d13cc7bbe5 | |||
| cff00d318d | |||
| 4e76914767 | |||
| 4fccb12826 | |||
| 14be4a7acc | |||
| e37bcefcbd | |||
| 7937bbac72 | |||
| 5ab6ee2058 | |||
| ef64daaab3 | |||
| 5ccc0d8080 | |||
| 5a176c84d0 | |||
| b65b9d5b94 | |||
| 937a5ca44c | |||
| a91a0b0dbb | |||
| e9159d3c02 | |||
| 01e3b5e063 | |||
| 34c3f2d9fc | |||
| c6b8b4202b | |||
| f5f40ec2e6 | |||
| 163e92c1d8 | |||
| ffa28ea872 | |||
| b02deeb45a | |||
| c50bc06c9c | |||
| 8def207ddf | |||
| 27dbfbefee | |||
| 33b3540a1e | |||
| cc361d8f19 | |||
| ed9826f145 | |||
| de6fd3480e | |||
| aee74ccdc5 | |||
| db4e8eeb2c | |||
| 23515bb121 | |||
| ebf8fb0177 | |||
| 5a1c0aafb2 | |||
| fdb67b69f9 | |||
| 1018865602 | |||
| 339a4b96a6 | |||
| cc2573e81d | |||
| b445f2b026 | |||
| e98c1891b6 | |||
| ca2add2332 | |||
| b17969c596 | |||
| bc8c2c052d | |||
| 2b7cb8d713 | |||
| 06a25a234b | |||
| cc31d07b98 | |||
| 16d5b46565 | |||
| f97a7e5185 | |||
| fa29a60fa4 | |||
| 9a4e6fa235 | |||
| 50f8554968 | |||
| fe67da5df2 | |||
| 697d818a99 | |||
| 73b5879c87 | |||
| 8952996c16 | |||
| fd41008a42 | |||
| 19fd360f4c | |||
| eff49db944 | |||
| 8e9d769a7c | |||
| 52d35ecd0a | |||
| 76cb4a1e92 | |||
| 5e770db4b0 | |||
| c155d3e771 | |||
| 39bf2f0b83 | |||
| ecfc2b555b | |||
| 67f9e2f22f | |||
| 341adbdd86 | |||
| 25733bc0d3 | |||
| 6cd2a52306 | |||
| dc998944a8 | |||
| b19d4e25c5 | |||
| e67f83d49c | |||
| b5658f6820 | |||
| c864072ad4 | |||
| aa79906bdf | |||
| bc5b3e37df | |||
| f13def77f1 | |||
| 8835883e7a | |||
| cc9b6fb693 | |||
| 465107b5dd | |||
| f60b03008b | |||
| dc6d27cd02 | |||
| c07a0a01a3 | |||
| e6e1cf1b90 | |||
| 0cf42d906f | |||
| c2d7c818a8 | |||
| 112d203638 | |||
| ab2192a14a | |||
| 9082f60def | |||
| 45031f1d8f | |||
| 730f264c1b | |||
| a7ca556f3b | |||
| a14eb58308 | |||
| ddb088c16b | |||
| a6f662f28f | |||
| 4f60654735 | |||
| 1b016fd4db | |||
| 095e119ef7 | |||
| b251bd36ce | |||
| 0960eb42c3 | |||
| 5d9c28b463 | |||
| ba7009bc4b | |||
| 70d9598045 | |||
| 4843518041 | |||
| fda759909f | |||
| 50332ba1c5 | |||
| 2289cd3088 | |||
| 0fa61f1998 | |||
| 514e29cb40 | |||
| 9c8aae56ba | |||
| e239e301ff | |||
| 7aa7b944f0 | |||
| 5b62eb9080 | |||
| ce7adeb7ea | |||
| 673df9aebd | |||
| 51260d5274 | |||
| 50e03e2fc7 | |||
| 8c8fd8c5c2 | |||
| c206119e85 | |||
| ec44ca7964 | |||
| ef923b87c9 | |||
| dd9249485e | |||
| 00cc4a2436 | |||
| 6fec8185d1 | |||
| b01b722c33 | |||
| ff1e4d0b66 | |||
| 73097eb284 | |||
| 65ac642977 | |||
| 87e16a5f2a | |||
| 31ccd4144b | |||
| b283e16493 | |||
| 23e6eb34ec | |||
| 78b20a7993 | |||
| 22c60b3789 | |||
| 1cf221fd87 | |||
| 2f2b5038c1 | |||
| 3d5596f74e | |||
| b47377b717 | |||
| 066ca69a7b | |||
| ee42111888 | |||
| 8cb7d77514 | |||
| 80fa320fd4 | |||
| 5af6393756 | |||
| bb74ffaff1 | |||
| c7bd14c9fa | |||
| d3647d1713 | |||
| 38f3c52b84 | |||
| 466281438c | |||
| 485fa925e7 | |||
| 0538e02dc0 | |||
| ba29e071a7 | |||
| 6f067f0995 | |||
| 83e727ccd7 | |||
| 0ea9f640df | |||
| 708ef8e8f5 | |||
| 388e5ff84f | |||
| af824e6bca | |||
| fb30f54798 | |||
| 39b8ff354b | |||
| aae82d3866 | |||
| fdccfb42b2 | |||
| 01e694efaf | |||
| 2e326de350 | |||
| 09ed66030b | |||
| b827f13abc | |||
| 21519a4a32 | |||
| e1391ad272 | |||
| ba11230b5f | |||
| 0030442c93 | |||
| 9e2f41f426 | |||
| f5367786f5 | |||
| 2c63b38829 | |||
| 050e63e12f | |||
| c9296205e7 | |||
| b1518235b6 | |||
| bf9fe279ed | |||
| ad021aadb8 | |||
| b60366c142 | |||
| 16fba6284c | |||
| 4a3c4681c1 | |||
| bd20b654eb | |||
| 3b204f6df0 | |||
| 7ce79129bc | |||
| deb8c052bd | |||
| 141fdc9a80 | |||
| c888616d9d | |||
| 3c9b8f6bff | |||
| 4ddf2b0178 | |||
| 7d80546989 | |||
| 6874535966 | |||
| 4efe14ebe5 | |||
| 4281e29814 | |||
| 5582877ca9 | |||
| b0a164928b | |||
| 6494f07212 | |||
| e54f3966fc | |||
| 279a9bd713 | |||
| ffb6cc269b | |||
| 06d9a8ad85 | |||
| 311e9842e7 | |||
| 1cb66c25e6 | |||
| 21b79fbdd8 | |||
| 09a175935c | |||
| 057a65f632 | |||
| b9fcadf4d9 | |||
| 923eeda247 | |||
| 5636362e5f | |||
| 9d39ef4428 | |||
| 58219fd309 | |||
| 314b70e7c3 | |||
| 7e728edf79 | |||
| f4e2194d8d | |||
| 88b154a6a9 | |||
| 43e6f88f15 | |||
| c6ae17fc13 | |||
| 70f0d2fda2 | |||
| 118dfafb92 | |||
| b311d68952 | |||
| 50c6fb24bd | |||
| 8fd8e9722d | |||
| fdbbe5e953 | |||
| d915d69327 | |||
| 5150be5f3b | |||
| b8cbc7fdb1 | |||
| fefd11d2fc | |||
| cc6c7d561a | |||
| d6edf8d2ec | |||
| 64d641f328 | |||
| 6eb520a095 | |||
| 8458ac3496 | |||
| 3bcdc9f854 | |||
| f778ee86a2 | |||
| 9c90bf4c30 | |||
| 8980898543 | |||
| 4f5cf8c47c | |||
| e1a0fe4181 | |||
| c73bee4927 | |||
| 0912d4b997 | |||
| a49cbfc37f | |||
| 11b8e95723 | |||
| 4269091a00 | |||
| 4f9b8f1e96 | |||
| 9b27e46bf2 | |||
| 7f3caf2bc7 | |||
| 946473384a | |||
| bbf08d18b8 | |||
| 5900a9f06a | |||
| 94c46e5d46 | |||
| 191edaaaf0 | |||
| d2fe8b4b1a | |||
| 0be21c5494 | |||
| 7beead5acf | |||
| 1cef2fdbee | |||
| f814f8db72 | |||
| 29964dea6c | |||
| 67d44ac47d | |||
| 515485c9ca | |||
| 46e5e5185b | |||
| e3e7a87c06 | |||
| 33fcd7e4a7 | |||
| 5cf8e82279 | |||
| d88ab1794a | |||
| 1122ee7c78 | |||
| e97baf1fe8 | |||
| 27ae55a6ac | |||
| a93535783d | |||
| 9fd40a77a3 | |||
| e1f244e876 | |||
| d61e3023c0 | |||
| 73d53f542f | |||
| 20a8616c00 | |||
| 9f5d3ce750 | |||
| 9f8f9c48b2 | |||
| 23cd22ef46 | |||
| f05fa032c7 | |||
| 7e6c823518 | |||
| 7142f90209 | |||
| 51ccd1dee1 | |||
| 48901ed9f5 | |||
| 54a1fc3b3a | |||
| 29f26c6967 | |||
| e2217827b4 | |||
| 9198766a5a | |||
| 7684faf67c | |||
| a01d962440 | |||
| 470a8ccc08 | |||
| f3ad25db35 | |||
| e791265eff | |||
| b1b0d50820 | |||
| 164a2c8dac | |||
| 05408ced2b | |||
| 5f2cec8dff | |||
| 37877fbf76 | |||
| d889f9f057 | |||
| 2e9d8785cb | |||
| 51d77112fe | |||
| fc6f7dd9b8 | |||
| 9be377c847 | |||
| 5b72456b80 | |||
| 80a17d0f17 | |||
| 69455c0573 | |||
| bff8159633 | |||
| f889246ea3 | |||
| 64a9db567f | |||
| 498cb106a5 | |||
| 2ae29f9c4b | |||
| 6bba43e88d | |||
| 3cdf9ba616 | |||
| 5538ea0b3e | |||
| 721256dacf | |||
| af24e6e70a | |||
| ed4d4da62c | |||
| 685e3dd7ef | |||
| ca18fe3125 | |||
| 6c39291f7f | |||
| 20b12b9790 | |||
| 7e1548fa72 | |||
| 6208d00a70 | |||
| 1f90391445 | |||
| 3da22f74cb | |||
| 440b73b99a | |||
| 4562cfb68a | |||
| 830cba6b2e | |||
| 68411e1fd3 | |||
| 5b57969620 | |||
| 0e5ae9372c | |||
| 692e3d7663 | |||
| f4fbbbcc30 | |||
| 756db54c7e | |||
| 65d85921c7 | |||
| 572a45c265 | |||
| 9f2d795b39 | |||
| 7535508ad5 | |||
| 9a434a4733 | |||
| 1767e5db95 | |||
| 8e74b2c011 | |||
| 83bb89c118 | |||
| f328c63fb2 | |||
| 4755ed4366 | |||
| 1516b240fb | |||
| 730d8dba94 | |||
| 8ff9af741a | |||
| 75b7199f79 | |||
| d56f63ce1a | |||
| 6e4366f3fe | |||
| dada465e7b | |||
| 86e8487d7b | |||
| 38e60b604a | |||
| 42cd8b4e65 | |||
| b5b00fb4fc | |||
| 05ae3c9f30 | |||
| 2770eeb57e | |||
| 02b4c0f095 | |||
| 5fb07abc23 | |||
| 049c966126 | |||
| 30219cec41 | |||
| 11cea1008f | |||
| b01d4a2a94 | |||
| fc36ea3be4 | |||
| 71934ca884 | |||
| b079323940 | |||
| 78c523e342 | |||
| 220f14d127 | |||
| 2b7df6cd55 | |||
| b9018f8159 | |||
| 8513fa26bf | |||
| a75e6fed42 | |||
| 5e20983ecf | |||
| 4ec2602c33 | |||
| 33ae4f5b95 | |||
| 5f858741fc | |||
| dfe29f2e1c | |||
| 4858457ba9 | |||
| 088412e207 | |||
| f42e077270 | |||
| b5389c050d | |||
| f30e78c27a | |||
| 61a2e08927 | |||
| 09aba18d4e | |||
| bda59fae16 | |||
| 72607bef81 | |||
| ecc249e971 | |||
| 6619ca67fb | |||
| 9d17476027 | |||
| f4d6dc512e | |||
| 40e9ed7e61 | |||
| b69cc518f8 | |||
| 4b4ee3d086 | |||
| 230b184529 | |||
| 45d2a9b118 | |||
| b70447484d | |||
| 250f133f10 | |||
| d3f2b5a5f4 | |||
| 248449ed9c | |||
| 3b2dbc2cbc | |||
| a6f30533b6 | |||
| 0bcf810973 | |||
| 53e3aec4ac | |||
| 15bbf67b59 | |||
| 6bc0f4016d | |||
| 3a2b8b9a97 | |||
| 06b86b448f | |||
| 4fd0b7645b | |||
| 3f27b8d314 | |||
| 2d26346388 | |||
| 104abb0724 | |||
| 42976d8f31 | |||
| bf389bc2e1 | |||
| 950a36a1c5 | |||
| 4e98459092 | |||
| 6c61c54080 | |||
| f773e5b53b | |||
| 6398d533bb | |||
| 59a46573ac | |||
| 23274c44bb | |||
| be009d84c5 | |||
| 2661c02c28 | |||
| 0d302ed37e | |||
| 1b04a42118 | |||
| 25b90e09d8 | |||
| de6c291f8a | |||
| 1bd96df08d | |||
| a5434b1a93 | |||
| 3b140e646c | |||
| fd5c80075d | |||
| 219b918331 | |||
| bb72502d24 | |||
| 3fd82111cd | |||
| 40c010583e | |||
| 7b6f3c83c8 | |||
| 656156c9ed | |||
| 30a7792771 | |||
| d60e329a24 | |||
| e11bb41545 | |||
| 4113da2fbc | |||
| 28e2a5249f | |||
| 4c8bbdbf87 | |||
| 4d9f79dedc | |||
| d566a863ed | |||
| 2aabb97ae5 | |||
| aaec4da0f2 | |||
| 96ce0e5a7f | |||
| e3df93e349 | |||
| 2999ceae34 | |||
| b1300c09b1 | |||
| d533039fd0 | |||
| c69717ef49 | |||
| 32cf3ff1ed | |||
| 1e6c1205c3 | |||
| 1d76f9eb0d | |||
| cd1f2b332e | |||
| b1256b61a7 | |||
| d9453558cc | |||
| b206ce466d | |||
| a6926595d5 | |||
| dd27ea987f | |||
| 05fceafad7 | |||
| 114a8a6228 | |||
| cb3240a6b7 | |||
| a69b84485b | |||
| a19533dd07 | |||
| bda64f135d | |||
| aacb2cdcfa | |||
| bdd1b7cbfe | |||
| 62d3f27572 | |||
| be2edad24b | |||
| 130e4cdba4 | |||
| 288d0f3759 | |||
| 4c1020445b | |||
| ae267664a7 | |||
| 73c07b1745 | |||
| 8f0e648a7a | |||
| 429b1d248e | |||
| 183399d114 | |||
| eb1959689e | |||
| e9b38fdcb0 | |||
| d7a5104bb5 | |||
| 8ea8efc3de | |||
| 2b6c989ab3 | |||
| 4d8a61842e | |||
| dc5781a0c0 | |||
| c4567d6317 | |||
| 52d4c473f2 | |||
| 2837110c01 | |||
| 3802be27ef | |||
| d291c41bb5 | |||
| 948e103796 | |||
| 7231aabea3 | |||
| 953f491979 | |||
| 51238c65e2 | |||
| b399a4881c | |||
| 284b37d63c | |||
| 8e576dbadc | |||
| 2de693c70f | |||
| c061849783 | |||
| 7e56cd21b0 | |||
| be630b910a | |||
| 244ec0c355 | |||
| d76febdf56 | |||
| 9e1bf24313 | |||
| 07fd5e30ec | |||
| 59d6dfdbf9 | |||
| 5dad2a3ae4 | |||
| ba3d5a97b7 | |||
| 9fdfaf7536 | |||
| 74a4b97535 | |||
| bd368b94e2 | |||
| e4616ccfc0 | |||
| 6f1956f6dd | |||
| bd60983ecc | |||
| bb121595ee | |||
| dd18ad45e9 | |||
| 5de5da1fc6 | |||
| 7c8e421caa | |||
| 698ddeb76c | |||
| 72d3f55379 | |||
| fcf68613ae | |||
| c9e34e95c0 | |||
| d053c9941b | |||
| 407ca5efbc | |||
| aebd88c14e | |||
| f2f16cff33 | |||
| 17b6c189d1 | |||
| aa2247366a | |||
| d92980a712 | |||
| 3044f815c2 | |||
| ac68e41197 | |||
| 3631fb6b81 | |||
| 02b682e810 | |||
| 64b041f0b6 | |||
| ae1bedc416 | |||
| 0e4fba8d11 | |||
| 72dcd674d0 | |||
| c1bedb2d96 | |||
| ed7c7bba64 | |||
| dbb4ada1a4 | |||
| 401f05846a | |||
| cbe46754fc | |||
| f73beda29b | |||
| bf5fc488f9 | |||
| 59283dfd42 | |||
| 7dcb069fd1 | |||
| 243c3decd8 | |||
| 62aa4a0172 | |||
| f1f7b0d3ca | |||
| 0f3e8741ab | |||
| c955683776 | |||
| 221ad9f456 | |||
| d18d627c58 | |||
| a963d1f737 | |||
| b5ffa4b4b0 | |||
| 5da6e6ff5e | |||
| 9bc9a07182 | |||
| ea4c9b3f08 | |||
| f0b9466faa | |||
| 548b9608f0 | |||
| 339189950e | |||
| b7695f4d3f | |||
| 8c3851a65c | |||
| 3a32c08fa8 | |||
| bea000431b | |||
| f708b30c37 | |||
| c789bc8656 | |||
| 28c9dcd6ce | |||
| c4f26747c5 | |||
| 15af713e26 | |||
| 34ad5f6bdd | |||
| 82a88c1fb6 | |||
| 8f31e5a85e | |||
| 53aba45c44 | |||
| 79b394ce83 | |||
| 92a2afd621 | |||
| 34ab6b29fb | |||
| 36998f5e68 | |||
| 82e47d68e7 | |||
| 5593ca32d3 | |||
| a7f17e1d1e | |||
| 2185593afb | |||
| 1b85e47a73 | |||
| afdf59a63d | |||
| c9a2f5e087 | |||
| 2e2720fe1d | |||
| 7ebc84dc7b | |||
| 06bfb23843 | |||
| dd066d3c6a | |||
| a5dedb81aa | |||
| 238497e821 | |||
| d80afc35fb | |||
| c3e9cbfe3c | |||
| cb2532688a | |||
| c1a8c4f5f7 | |||
| d4c0937ba2 | |||
| 456273c1ea | |||
| 444dec1ffb | |||
| b61cae985c | |||
| 6e8e795cdd | |||
| 4ad647ae0d | |||
| e5ce3ef87d | |||
| 56ed01160d | |||
| 59fdcb847c | |||
| 5702416bf4 | |||
| 680ae8ddf5 | |||
| 673c2db045 | |||
| 7466110f94 | |||
| 29c40355e4 | |||
| 0c3d17970e | |||
| b4086724d8 | |||
| bd9e41a912 | |||
| deb553d2f8 | |||
| 0cabda6a8b | |||
| 08c5f1dfa0 | |||
| 8e412a8dfc | |||
| c3f6ccce35 | |||
| d1481feedd | |||
| 47e36208e9 | |||
| f2e3b04bd1 | |||
| 97f94107ad | |||
| 98e03d0bf9 | |||
| 5f47c42841 | |||
| 14c6a29b2c | |||
| 3fcd6716fc | |||
| e1b8545338 | |||
| 50553e8d2c | |||
| f3953ee05b | |||
| bf9e4f1dd6 | |||
| 98d7025fc7 | |||
| 371a0e870a | |||
| 872304660a | |||
| ac0a5b2dee | |||
| d9f03fb014 | |||
| bb1c4f4894 | |||
| 8f20305d0e | |||
| 740b354ce0 | |||
| 004aa3c9e9 | |||
| ede7f95aad | |||
| 52da6cf1f4 | |||
| 37a4bcdd1b | |||
| a0df40fc56 | |||
| 867e94ef27 | |||
| 195acfece5 | |||
| 26f37817dd | |||
| 06628cd42d | |||
| 1336b449ca | |||
| 54e125864b | |||
| fa47c7c739 | |||
| dcba959d86 | |||
| 9e3299a762 | |||
| 26885d4888 | |||
| 57e3bda687 | |||
| 010450c2ff | |||
| 7e40c8d0fd | |||
| 1ab83d89c9 | |||
| c1005ccead | |||
| dc366f0926 | |||
| 6baff491b1 | |||
| 6084becec5 | |||
| 6e3ec2efe4 | |||
| 3e69ecd2a6 | |||
| 7f147dc1d0 | |||
| 748b526d80 | |||
| 76dbbf2ed3 | |||
| 19241894a2 | |||
| f68bd65e41 | |||
| 32f5bb9ccb | |||
| b716ca2bf0 | |||
| 31d74a25eb | |||
| ec9d3d8495 | |||
| ad791dcfc5 | |||
| a3e26c82e0 | |||
| 1c1bed274f | |||
| 06f9c0f8bf | |||
| 52f7e4546b | |||
| 1033e45a55 | |||
| 43eeae6936 | |||
| 90876a43dc | |||
| f87921a761 | |||
| 9f00b8b960 | |||
| b53a33b2b8 | |||
| 56bc3fb1ea | |||
| 50f2c1f1ef | |||
| c6b23f8900 | |||
| 7f99a4f03e | |||
| ca9269b66d | |||
| 8b582a6797 | |||
| 55dbb14262 | |||
| ca1af0d0b1 | |||
| 941899e366 | |||
| 64ec817803 | |||
| 371736daae | |||
| 1b4af36ea2 | |||
| b704ae5da1 | |||
| 529097d57a | |||
| f138dada12 | |||
| 5b734ebb57 | |||
| 03d961758f | |||
| 08429eb222 | |||
| a5db6af0d7 | |||
| 790f181b62 | |||
| 0ab1fb13cf | |||
| b936e46459 | |||
| f31be642f0 | |||
| 818a7248a8 | |||
| b7edd4a572 | |||
| 6a54ff6e16 | |||
| 81b5f63355 | |||
| e81c029888 | |||
| 2d63545383 | |||
| e01060baa8 | |||
| 9690a5c418 | |||
| 661217f26f | |||
| 31fdb9d0e3 | |||
| 9c0c359227 | |||
| 56f567505d | |||
| 50e9318c15 | |||
| 4e525a45a4 | |||
| 24207440aa | |||
| 6f368c12c6 | |||
| 3d3dc16c70 | |||
| 96d5c727b0 | |||
| bea3acb963 | |||
| 65c633bd74 | |||
| 78c6a3f18f | |||
| 780652f51e | |||
| 507b24e26c | |||
| 9f308335f3 | |||
| 8e0d43a546 | |||
| 1cc14d602c | |||
| 128cd2f0e4 | |||
| e541e51288 | |||
| 956b37f773 | |||
| 2e95b66094 | |||
| 8178e569bd | |||
| 90e57f1dae | |||
| 6a82abe713 | |||
| 5c2ff4d8b8 | |||
| 710439ad03 | |||
| 5e0774d595 | |||
| 2bbdd5f4b1 | |||
| 0dc7d00cc9 | |||
| af8e413d7d | |||
| e918f15f51 | |||
| 5a0f485374 | |||
| c9641f2a9d | |||
| dc6671c110 | |||
| f5a4b5b010 | |||
| e5f8ecadae | |||
| a753dbfe36 | |||
| 7d24f45e6e | |||
| 6f86400737 | |||
| bb42924b3c | |||
| b8b5335e43 | |||
| 1b7645c11e | |||
| b26da9ae82 | |||
| 11e88402e3 | |||
| 153765e3d5 | |||
| 03e4176618 | |||
| 4645695fdd | |||
| d2804adc96 | |||
| f9ba079c85 | |||
| 025768538b | |||
| d7322153aa | |||
| 61fb34181f | |||
| f142e4582d | |||
| 9abbbe6265 | |||
| 1f786288d2 | |||
| 4b9c82aef4 | |||
| 08b6d7b43d | |||
| 56aec1d572 | |||
| 4d63b52b94 | |||
| 4b6cd52dbf | |||
| cb8d101d8d | |||
| f612e678d8 | |||
| 4371287a65 | |||
| 9b1196341e | |||
| f2a0fd2de1 | |||
| fffbd401bd | |||
| e577ea5196 | |||
| 7c3bdcbcb9 | |||
| ff1e899a30 | |||
| 5ef35157af | |||
| 15a3a00501 | |||
| 8ce04d82be | |||
| 5ed1e1323c | |||
| 0c9af0172d | |||
| 69a7583a30 | |||
| e011dd4a37 | |||
| 92a07d19ba | |||
| 387e3a73f1 | |||
| 23307443f3 | |||
| 8c0aefb52f | |||
| c7b8a3544e | |||
| 823fad701a | |||
| 4254294d06 | |||
| 5a987c407b | |||
| 5a8ae2719e | |||
| 4d83c56bf3 | |||
| 47037471c0 | |||
| c6323c497d | |||
| 0cd6dd8a34 | |||
| 16868d3424 | |||
| f21fe182bd | |||
| 4ccb96cfdd | |||
| 756070a34a | |||
| 6185322415 | |||
| 259450b6d2 | |||
| 8839361610 | |||
| e6f9bc1e9e | |||
| 2a2e09f592 | |||
| e81766387b | |||
| 59febd4ad6 | |||
| 8933256fe1 | |||
| 2dde93b067 | |||
| f97606e06b | |||
| 7347d6c0b4 | |||
| 5fbbab5567 | |||
| 7fbb6554e4 | |||
| e64fdc4381 | |||
| c2c3b24b12 | |||
| cf1b542511 | |||
| 95bf0f46c8 | |||
| 1ca9a88224 | |||
| eb74d17ffb | |||
| 29e6b4715c | |||
| 5b9602a745 | |||
| 3354255b5a | |||
| 128f30d28a | |||
| 1e469829c6 | |||
| aa04172ac7 | |||
| 95ed637ef4 | |||
| 054878d127 | |||
| f3f4cad530 | |||
| b55185b114 | |||
| e70b3de26a | |||
| 184ee41860 | |||
| cc46377dbb | |||
| b1d7220ce7 | |||
| 60ca9b336c | |||
| 8a48779047 | |||
| 0838e39b38 | |||
| f6ec8bb16b | |||
| 2ac0add305 | |||
| 62fa68ef43 | |||
| f991d2c14f | |||
| 763186cb8e | |||
| 5fc316e275 | |||
| 652ed6cf01 | |||
| 1baa560d27 | |||
| 45bdb24cfe | |||
| 13b53cac38 | |||
| a1bb155612 | |||
| f962ce139a | |||
| 585ee75769 | |||
| bf44765446 | |||
| 09d5e1dcf0 | |||
| c39d925b7e | |||
| 7508fdeef9 | |||
| c5bcd48104 | |||
| 31c794ecd7 | |||
| d00da29a4f | |||
| 63b22b823d | |||
| 4fc2a470f5 | |||
| 354dddc705 | |||
| 7c2a6beed4 | |||
| 9ae5faad12 | |||
| 9230700679 | |||
| 8231ba3a06 | |||
| 2a5fc534e0 | |||
| b9c2dae06a | |||
| df49f8a895 | |||
| 099cc919c3 | |||
| 43e1d92388 | |||
| c69fcca380 | |||
| 45a4d4f575 | |||
| 428391ee1f | |||
| 892bd0d4ff | |||
| dea3eea1fe |
+26
@@ -1,4 +1,5 @@
|
||||
cataclysm
|
||||
cataclysm-tiles
|
||||
data/*.template
|
||||
save/
|
||||
obj/
|
||||
@@ -6,3 +7,28 @@ debug.log
|
||||
logg.txt
|
||||
bindist/
|
||||
cataclysmdda-*
|
||||
objwin/
|
||||
cataclysm.exe
|
||||
version.h
|
||||
Cataclysm.exe
|
||||
CataclysmWin.depend
|
||||
CataclysmWin.layout
|
||||
|
||||
# Visual Studio files
|
||||
*.suo
|
||||
*.user
|
||||
Cataclysm.sdf
|
||||
Release*/
|
||||
Debug*/
|
||||
*.opensdf
|
||||
|
||||
# Temporary and backup files
|
||||
*~
|
||||
\#*
|
||||
*.bak
|
||||
*.cbTemp
|
||||
gmon.out
|
||||
|
||||
# System Files
|
||||
Thumbs.db
|
||||
.DS_Store
|
||||
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
language: cpp
|
||||
compiler:
|
||||
- gcc
|
||||
|
||||
script: make
|
||||
|
||||
notifications:
|
||||
irc: "irc.newnet.net#Cataclysm-DDA"
|
||||
irc: "irc.freenode.org#Cataclysm-DDA"
|
||||
use_notice: true
|
||||
skip_join: true
|
||||
@@ -0,0 +1,8 @@
|
||||
Current policy is to update code to the standard style when changing a
|
||||
substantial portion of it. Blocks of code can be passed through astyle
|
||||
to ensure that their formatting is correct:
|
||||
|
||||
astyle --style=allman --indent=spaces=4 --add-brackets --align-pointer=name -p
|
||||
|
||||
For example, from vi, set marks a and b around the block, then:
|
||||
:'a,'b ! astyle --style=allman --indent=spaces=4 --add-brackets --align-pointer=name
|
||||
@@ -1,20 +0,0 @@
|
||||
Instructions for compiling on a Debian-based system. The package names here are for Ubuntu 12.10
|
||||
|
||||
Dependencies: libncurses
|
||||
|
||||
# Native build on current platform
|
||||
sudo apt-get install libncurses5-dev
|
||||
make
|
||||
|
||||
# Cross-compile to linux 32-bit from linux 64-bit
|
||||
sudo apt-get install libc6-dev-i386 lib32ncurses5-dev lib32stdc++-dev g++-multilib
|
||||
make NATIVE=linux32
|
||||
|
||||
# Cross-compile for Windows
|
||||
sudo apt-get install autoconf bison flex cmake git automake intltool libtool scons yasm
|
||||
mkdir -p ~/src
|
||||
git clone -b stable https://github.com/mxe/mxe.git ~/src
|
||||
cd ~/src/mxe
|
||||
make gcc
|
||||
PATH=${PATH}:~/src/mxe/usr/bin
|
||||
make CROSS=win32
|
||||
@@ -0,0 +1,84 @@
|
||||
Instructions for compiling on a Debian-based system. The package names here are
|
||||
valid for Ubuntu 12.10 and may or may not work on your system.
|
||||
|
||||
Building instructions, below, always assume you are running them from the
|
||||
Cataclysm:DDA source directory.
|
||||
|
||||
## Linux (native) ncurses builds ##
|
||||
Dependencies:
|
||||
* ncurses
|
||||
* build essentials
|
||||
|
||||
```
|
||||
sudo apt-get install libncurses5-dev build-essential
|
||||
```
|
||||
|
||||
### Building ###
|
||||
```
|
||||
make
|
||||
```
|
||||
|
||||
## Cross-compiling to linux 32-bit from linux 64-bit ##
|
||||
Dependencies:
|
||||
* 32-bit toolchain
|
||||
* 32-bit ncurses
|
||||
|
||||
```
|
||||
sudo apt-get install libc6-dev-i386 lib32stdc++-dev g++-multilib lib32ncurses5-dev
|
||||
```
|
||||
|
||||
### Building ###
|
||||
```
|
||||
make NATIVE=linux32
|
||||
```
|
||||
|
||||
## Cross-compile to Windows from Linux ##
|
||||
Dependencies:
|
||||
* [mxe](http://mxe.cc)
|
||||
|
||||
```
|
||||
sudo apt-get install autoconf bison flex cmake git automake intltool libtool scons yasm
|
||||
mkdir -p ~/src/mxe
|
||||
git clone -b stable https://github.com/mxe/mxe.git ~/src/mxe
|
||||
cd ~/src/mxe
|
||||
make gcc
|
||||
```
|
||||
|
||||
### Building ###
|
||||
```
|
||||
PATH="${PATH}:~/src/mxe/usr/bin"
|
||||
make CROSS=i686-pc-mingw32-
|
||||
```
|
||||
|
||||
## Linux (native) SDL builds ##
|
||||
Dependencies:
|
||||
* SDL
|
||||
* SDL_ttf
|
||||
* build essentials
|
||||
|
||||
```
|
||||
sudo apt-get install libsdl1.2-dev libsdl-ttf2.0-dev build-essential
|
||||
```
|
||||
|
||||
### Building ###
|
||||
```
|
||||
make TILES=1
|
||||
```
|
||||
|
||||
## Cross-compile to Windows SDL from Linux ##
|
||||
Dependencies:
|
||||
* [mxe](http://mxe.cc)
|
||||
|
||||
```
|
||||
sudo apt-get install autoconf bison flex cmake git automake intltool libtool scons yasm
|
||||
mkdir -p ~/src/mxe
|
||||
git clone -b stable https://github.com/mxe/mxe.git ~/src/mxe
|
||||
cd ~/src/mxe
|
||||
make sdl sdl_ttf
|
||||
```
|
||||
|
||||
### Building ###
|
||||
```
|
||||
PATH="${PATH}:~/src/mxe/usr/bin"
|
||||
make TILES=1 CROSS=i686-pc-mingw32-
|
||||
```
|
||||
@@ -0,0 +1,73 @@
|
||||
# Building Cataclysm-DDA on Mac OS X
|
||||
|
||||
Tested with OS X 10.8.4, Xcode 4.6.2.
|
||||
I haven't played it extensively but it builds and runs.
|
||||
|
||||
Not sure if it compiles with older OS/XCode versions.
|
||||
This worked for me, your mileage may vary.
|
||||
|
||||
## Requirements
|
||||
|
||||
Cataclysm-DDA uses SDL, SDL\_ttf, ncurses, and gettext.
|
||||
|
||||
SDL can be installed as frameworks or shared libraries.
|
||||
|
||||
### SDL Frameworks
|
||||
|
||||
[**SDL framework**](http://www.libsdl.org/download-1.2.php)
|
||||
http://www.libsdl.org/release/SDL-1.2.15.dmg
|
||||
|
||||
[**SDL\_image framework**](http://www.libsdl.org/projects/SDL_ttf/)
|
||||
http://www.libsdl.org/projects/SDL_ttf/release/SDL_ttf-2.0.11.dmg
|
||||
|
||||
Copy `SDL.framework` and `SDL_ttf.framework` to `/Library/Frameworks`
|
||||
or `/Users/name/Library/Frameworks`.
|
||||
|
||||
### ncurses, gettext, libsdl, lib\_ttf
|
||||
|
||||
Using a package manager:
|
||||
[Fink](http://fink.thetis.ig42.org), [Homebrew](http://mxcl.github.io/homebrew/),
|
||||
[MacPorts](http://www.macports.org), or [pkgsrc](http://www.pkgsrc.org/).
|
||||
|
||||
Install gettext and ncurses. Also install libsdl and libsdl\_ttf if you're
|
||||
not using frameworks as above.
|
||||
|
||||
Without a package manager, building from source isn't too difficult;
|
||||
follow instructions in the source archives.
|
||||
|
||||
## Build
|
||||
|
||||
From the Cataclysm-DDA source folder:
|
||||
|
||||
$ export CXXFLAGS="-I/path/to/include" LDFLAGS="-L/path/to/lib"
|
||||
|
||||
This adds search paths to find shared libraries outside of /usr and /usr/local.
|
||||
Multiple `-I/...` or `-L/...` paths can be specified.
|
||||
|
||||
$ make NATIVE=osx RELEASE=1 TILES=1 FRAMEWORK=1 OSX_MIN=10.6
|
||||
|
||||
## Run
|
||||
|
||||
$ ./cataclysm
|
||||
|
||||
or
|
||||
|
||||
$ ./cataclysm-tiles
|
||||
|
||||
### Options
|
||||
|
||||
`NATIVE=osx` builds for OS X.
|
||||
|
||||
`RELEASE=1` builds an optimized 'release' version.
|
||||
|
||||
`TILES=1` builds the SDL version; omit to build the ncurses/console version.
|
||||
|
||||
`FRAMEWORK=1` uses frameworks; omit for libsdl, libsdl\_ttf.
|
||||
|
||||
`OSX_MIN=version` sets `-mmacosx-version-min=` (mine needs to be 10.6); omit for 10.5.
|
||||
|
||||
### Archive
|
||||
|
||||
$ make bindist NATIVE=osx TILES=1
|
||||
|
||||
Create a .tar.gz archive of the build; omit `TILES=1` for the console version.
|
||||
+144
@@ -0,0 +1,144 @@
|
||||
# Contribute
|
||||
|
||||
Contributing to Cataclysm: Dark Days Ahead is easy - simply fork the repository here on GitHub, make your changes, and then send us a pull request.
|
||||
|
||||
## Guidelines
|
||||
|
||||
There are a couple of guidelines we suggest sticking to:
|
||||
|
||||
* Add this repository as an `upstream` remote.
|
||||
* Keep your `master` branch clean. This means you can easily pull changes made to this repository into yours.
|
||||
* Create a new branch for each new feature or set of related bug fixes.
|
||||
* Never merge from your local branches into your `master` branch. Only update that by pulling from `upstream/master`.
|
||||
|
||||
## Code Style
|
||||
|
||||
Current policy is to only update code to the standard style when changing a substantial portion of it, but **please** do this in a seperate commit. Blocks of code can be passed through astyle to ensure that their formatting is correct:
|
||||
|
||||
astyle --style=allman --indent=spaces=4 --add-brackets --align-pointer=name
|
||||
|
||||
For example, from vi, set marks a and b around the block, then:
|
||||
|
||||
:'a,'b ! astyle --style=allman --indent=spaces=4 --add-brackets --align-pointer=name
|
||||
|
||||
|
||||
## Example Workflow
|
||||
|
||||
#### Setup your environment
|
||||
|
||||
*(This only needs to be done once.)*
|
||||
|
||||
1. Fork this repository here on GitHub.
|
||||
|
||||
2. Clone your fork locally.
|
||||
|
||||
$ git clone https://github.com/YOUR_USERNAME/Cataclysm-DDA.git
|
||||
# Clones your fork of the repository into the current directory in terminal
|
||||
|
||||
3. Add this repository as a remote.
|
||||
|
||||
$ cd Cataclysm-DDA
|
||||
# Changes the active directory in the prompt to the newly cloned "Cataclysm-DDA" directory
|
||||
$ git remote add -f upstream https://github.com/CleverRaven/Cataclysm-DDA.git
|
||||
# Assigns the original repository to a remote called "upstream"
|
||||
|
||||
#### Update your `master` branch
|
||||
|
||||
1. Make sure you have your `master` branch checked out.
|
||||
|
||||
$ git checkout master
|
||||
|
||||
2. Pull the changes from the `upstream/master` branch.
|
||||
|
||||
$ git pull --ff-only upstream master
|
||||
# gets changes from "master" branch on the "upstream" remote
|
||||
|
||||
* Note: If this gives you an error, it means you have committed directly to your local `master` branch. [Click here for instructions on how to fix this issue](#why-does-git-pull---ff-only-result-in-an-error).
|
||||
|
||||
#### Make your changes
|
||||
|
||||
0. Update your `master` branch, if you haven't already.
|
||||
|
||||
1. For each new feature or bug fix, create a new branch.
|
||||
|
||||
$ git branch new_feature
|
||||
# Creates a new branch called "new_feature"
|
||||
$ git checkout new_feature
|
||||
# Makes "new_feature" the active branch
|
||||
|
||||
2. Once you've committed some changes locally, you need to push them to your fork here on GitHub.
|
||||
|
||||
$ git push origin new_feature
|
||||
# origin was automatically set to point to your fork when you cloned it
|
||||
|
||||
|
||||
3. Once you're finished working on your branch, and have committed and pushed all your changes, submit a pull request from your `new_feature` branch to this repository's `master` branch.
|
||||
|
||||
* Note: any new commits to the `new_feature` branch on GitHub will automatically be included in the pull request, so make sure to only commit related changes to the same branch.
|
||||
|
||||
|
||||
## Advanced Techniques
|
||||
|
||||
These guidelines aren't essential, but they can make keeping things in order much easier.
|
||||
|
||||
#### Using remote tracking branches
|
||||
|
||||
Remote tracking branches allow you to easily stay in touch with this repository's `master` branch, as they automatically know which remote branch to get changes from.
|
||||
|
||||
$ git branch -vv
|
||||
* master xxxx [origin/master] ....
|
||||
new_feature xxxx ....
|
||||
|
||||
Here you can see we have two branches; `master` which is tracking `origin/master`, and `new_feature` which isn't tracking any branch. In practice, what this means is that git won't know where to get changes from.
|
||||
|
||||
$ git checkout new_feature
|
||||
Switched to branch 'new_feature'
|
||||
$ git pull
|
||||
There is no tracking information for the current branch.
|
||||
Please specify which branch you want to merge with.
|
||||
|
||||
In order to easily pull changes from `upstream/master` into the `new_feature` branch, we can tell git which branch it should track. (You can even do this for your local master branch.)
|
||||
|
||||
$ git branch -u upstream/master new_feature
|
||||
Branch new_feature set up to track remote branch master from upstream.
|
||||
$ git pull
|
||||
Updating xxxx..xxxx
|
||||
....
|
||||
|
||||
You can also set the tracking information at the same time as creating the branch.
|
||||
|
||||
$ git branch new_feature_2 --track upstream/master
|
||||
Branch new_feature_2 set up to track remote branch master from upstream.
|
||||
|
||||
* Note: Although this makes it easier to pull from `upstream/master`, it doesn't change anything with regards to pushing. `git push` fails because you don't have permission to push to `upstream/master`.
|
||||
|
||||
$ git push
|
||||
error: The requested URL returned error: 403 while accessing https://github.com/CleverRaven/Cataclysm-DDA.git
|
||||
fatal: HTTP request failed
|
||||
$ git push origin
|
||||
....
|
||||
To https://github.com/YOUR_USERNAME/Cataclysm-DDA.git
|
||||
xxxx..xxxx new_feature -> new_feature
|
||||
|
||||
|
||||
## Frequently Asked Questions
|
||||
|
||||
####Why does `git pull --ff-only` result in an error?
|
||||
|
||||
If `git pull --ff-only` shows an error, it means that you've committed directly to your local `master` branch. To fix this, we create a new branch with these commits, find the point at which we diverged from `upstream/master`, and then reset `master` to that point.
|
||||
|
||||
$ git pull --ff-only upstream master
|
||||
From https://github.com/CleverRaven/Cataclysm-DDA
|
||||
* branch master -> FETCH_HEAD
|
||||
fatal: Not possible to fast-forward, aborting.
|
||||
$ git branch new_branch master # mark the current commit with a tmp branch
|
||||
$ git merge-base master upstream/master
|
||||
cc31d0... # the last commit before we committed directly to master
|
||||
$ git reset --hard cc31d0....
|
||||
HEAD is now at cc31d0... ...
|
||||
|
||||
Now that `master` has been cleaned up, we can easily pull from `upstream/master`, and then continue working on `new_branch`.
|
||||
|
||||
$ git pull --ff-only upstream master
|
||||
# gets changes from the "upstream" remote for the matching branch, in this case "master"
|
||||
$ git checkout new_branch
|
||||
Executable → Regular
+44
-6
@@ -9,7 +9,7 @@
|
||||
<Target title="Release">
|
||||
<Option output="Cataclysm" prefix_auto="1" extension_auto="1" />
|
||||
<Option object_output="obj/Release/" />
|
||||
<Option type="1" />
|
||||
<Option type="0" />
|
||||
<Option compiler="gcc" />
|
||||
<Compiler>
|
||||
<Add option="-Os" />
|
||||
@@ -19,23 +19,44 @@
|
||||
<Add option="-static -lgdi32" />
|
||||
</Linker>
|
||||
</Target>
|
||||
<Target title="Debug">
|
||||
<Option output="Cataclysm" prefix_auto="1" extension_auto="1" />
|
||||
<Option object_output="obj/Debug/" />
|
||||
<Option type="0" />
|
||||
<Option compiler="gcc" />
|
||||
<Compiler>
|
||||
<Add option="-pg" />
|
||||
<Add option="-g" />
|
||||
</Compiler>
|
||||
<Linker>
|
||||
<Add option="-pg -lgmon" />
|
||||
<Add option="-Wl,-stack,12000000,-subsystem,windows" />
|
||||
<Add option="-static -lgdi32" />
|
||||
</Linker>
|
||||
</Target>
|
||||
</Build>
|
||||
<Unit filename="action.cpp" />
|
||||
<Unit filename="action.h" />
|
||||
<Unit filename="addiction.cpp" />
|
||||
<Unit filename="addiction.h" />
|
||||
<Unit filename="artifact.cpp" />
|
||||
<Unit filename="artifact.h" />
|
||||
<Unit filename="artifactdata.h" />
|
||||
<Unit filename="auto_pickup.cpp" />
|
||||
<Unit filename="auto_pickup.h" />
|
||||
<Unit filename="basecamp.cpp" />
|
||||
<Unit filename="basecamp.h" />
|
||||
<Unit filename="bionics.cpp" />
|
||||
<Unit filename="bionics.h" />
|
||||
<Unit filename="bodypart.cpp" />
|
||||
<Unit filename="bodypart.h" />
|
||||
<Unit filename="building_generation.cpp" />
|
||||
<Unit filename="building_generation.h" />
|
||||
<Unit filename="calendar.cpp" />
|
||||
<Unit filename="calendar.h" />
|
||||
<Unit filename="catacurse.cpp" />
|
||||
<Unit filename="catacurse.h" />
|
||||
<Unit filename="catajson.cpp" />
|
||||
<Unit filename="catajson.h" />
|
||||
<Unit filename="color.cpp" />
|
||||
<Unit filename="color.h" />
|
||||
<Unit filename="computer.cpp" />
|
||||
@@ -65,6 +86,8 @@
|
||||
<Unit filename="graffiti.cpp" />
|
||||
<Unit filename="graffiti.h" />
|
||||
<Unit filename="help.cpp" />
|
||||
<Unit filename="helper.cpp" />
|
||||
<Unit filename="helper.h" />
|
||||
<Unit filename="iexamine.cpp" />
|
||||
<Unit filename="iexamine.h" />
|
||||
<Unit filename="input.cpp" />
|
||||
@@ -74,6 +97,10 @@
|
||||
<Unit filename="inventory_ui.cpp" />
|
||||
<Unit filename="item.cpp" />
|
||||
<Unit filename="item.h" />
|
||||
<Unit filename="item_factory.cpp" />
|
||||
<Unit filename="item_factory.h" />
|
||||
<Unit filename="item_group.cpp" />
|
||||
<Unit filename="item_group.h" />
|
||||
<Unit filename="itype.h" />
|
||||
<Unit filename="itypedef.cpp" />
|
||||
<Unit filename="iuse.cpp" />
|
||||
@@ -93,8 +120,12 @@
|
||||
<Unit filename="mapdata.cpp" />
|
||||
<Unit filename="mapdata.h" />
|
||||
<Unit filename="mapgen.cpp" />
|
||||
<Unit filename="mapgenformat.cpp" />
|
||||
<Unit filename="mapgenformat.h" />
|
||||
<Unit filename="mapitems.h" />
|
||||
<Unit filename="mapitemsdef.cpp" />
|
||||
<Unit filename="material.cpp" />
|
||||
<Unit filename="material.h" />
|
||||
<Unit filename="melee.cpp" />
|
||||
<Unit filename="mission.cpp" />
|
||||
<Unit filename="mission.h" />
|
||||
@@ -109,7 +140,6 @@
|
||||
<Unit filename="mondeath.h" />
|
||||
<Unit filename="mongroup.h" />
|
||||
<Unit filename="mongroupdef.cpp" />
|
||||
<Unit filename="monitemsdef.cpp" />
|
||||
<Unit filename="monmove.cpp" />
|
||||
<Unit filename="monster.cpp" />
|
||||
<Unit filename="monster.h" />
|
||||
@@ -134,6 +164,8 @@
|
||||
<Unit filename="output.h" />
|
||||
<Unit filename="overmap.cpp" />
|
||||
<Unit filename="overmap.h" />
|
||||
<Unit filename="overmapbuffer.cpp" />
|
||||
<Unit filename="overmapbuffer.h" />
|
||||
<Unit filename="picojson.h" />
|
||||
<Unit filename="player.cpp" />
|
||||
<Unit filename="player.h" />
|
||||
@@ -154,24 +186,30 @@
|
||||
<Unit filename="setvector.h" />
|
||||
<Unit filename="skill.cpp" />
|
||||
<Unit filename="skill.h" />
|
||||
<Unit filename="texthash.cpp" />
|
||||
<Unit filename="texthash.h" />
|
||||
<Unit filename="text_snippets.cpp" />
|
||||
<Unit filename="text_snippets.h" />
|
||||
<Unit filename="tileray.cpp" />
|
||||
<Unit filename="tileray.h" />
|
||||
<Unit filename="translations.h" />
|
||||
<Unit filename="trap.h" />
|
||||
<Unit filename="trapdef.cpp" />
|
||||
<Unit filename="trapfunc.cpp" />
|
||||
<Unit filename="tutorial.cpp" />
|
||||
<Unit filename="tutorial.h" />
|
||||
<Unit filename="ui.cpp" />
|
||||
<Unit filename="ui.h" />
|
||||
<Unit filename="veh_interact.cpp" />
|
||||
<Unit filename="veh_interact.h" />
|
||||
<Unit filename="veh_type.h" />
|
||||
<Unit filename="veh_typedef.cpp" />
|
||||
<Unit filename="vehicle.cpp" />
|
||||
<Unit filename="vehicle.h" />
|
||||
<Unit filename="version.cpp" />
|
||||
<Unit filename="version.h" />
|
||||
<Unit filename="weather.cpp" />
|
||||
<Unit filename="weather.h" />
|
||||
<Unit filename="weather_data.h" />
|
||||
<Unit filename="weather_data.cpp" />
|
||||
<Unit filename="wincurse.cpp" />
|
||||
<Unit filename="wish.cpp" />
|
||||
<Extensions>
|
||||
<code_completion />
|
||||
|
||||
@@ -12,6 +12,8 @@
|
||||
Edit iuse.h and include the function in the class declaration; then edit
|
||||
iuse.cpp and define your function. Functions may be shared among different
|
||||
item types.
|
||||
6) If you do not want NPCs to carry the item, add it to the list called
|
||||
mapitems[mi_trader_avoid] in mapitemsdef.cpp.
|
||||
|
||||
1.2 Adding a monster
|
||||
1) Edit mtype.h. Change the enum mon_id and insert a unique identifier for
|
||||
@@ -59,6 +61,82 @@
|
||||
{ot_toxic_dump, 0, 5, 15, -1, mcat_null, 0, 0, 0, 0, &omspec_place::wilderness,0}
|
||||
The comments given in source code to structure struct overmap_special explains the meaning of these constants in the example above.
|
||||
|
||||
1.4 Adding/editing armour and how armour protection is calculated
|
||||
1) Edit armor.json and add your armor item near similar types.
|
||||
2) The fields are:
|
||||
"type" : "ARMOR", // this must be ARMOR
|
||||
"id" : "socks", // the identifier used by the game. Must be one continuous word, use underscores if necessary
|
||||
"name" : "socks", // the name appearing in the examine box. Can be more than one word separated by spaces
|
||||
"weight" : 1, // weight of armour
|
||||
"color" : "blue", // ascii character colour
|
||||
"covers" : ["FEET"], // where it covers. Possible options are TORSO, HEAD, EYES, MOUTH, ARMS, HANDS, LEGS, FEET
|
||||
"to_hit" : 0, // bonus if using it as a melee weapon (whatever for?)
|
||||
"storage" : 0, // how many volume storage slots it adds
|
||||
"symbol" : "[", // ascii character
|
||||
"description" : "Socks. Put 'em on your feet.", // description of armour
|
||||
"price" : 100, // price of armour, used when bartering with NPCs
|
||||
"material" : ["COTTON", "NULL"], // material types. See materials.json for possible options
|
||||
"volume" : 1, // volume occupied
|
||||
"cutting" : 0, // cutting damage caused by using it as a melee weapon
|
||||
"warmth" : 10, // how much warmth clothing provides
|
||||
"phase" : "solid", // what phase it is
|
||||
"enviromental_protection" : 0, // how much environmental protection it affords
|
||||
"rarity" : 70, // determines how often it spawns
|
||||
"encumberance" : 0, // base encumbrance (unfitted value)
|
||||
"bashing" : -5, // bashing damage caused by using it as a melee weapon
|
||||
"flags" : ["VARSIZE"] // used to indicate clothing type which can be fitted. Leave out the flags field entirely if clothing cannot be fitted
|
||||
"coverage" : 80, // what percentage of body part
|
||||
"material_thickness" : 1 // thickness of material, in millimetre units (approximately). Generally ranges between 1 - 5, more unusual armour types go up to 10 or more
|
||||
3) When the player is hit at a specific body part, armour coverage determines whether the armour is hit, or an uncovered part of the player is hit (roll 1d100 against coverage)
|
||||
4) If the above roll fails (ie roll value is above coverage), then the armour does not absorb any damage from the blow, neither does it become damaged
|
||||
5) If the above roll succeeds, the armour is hit, possibly absorbing some damage and possibly getting damaged in the process
|
||||
6) The above steps are repeated for each layer of armour on the body part
|
||||
7) Armour protects against bash and cut damage. These are determined by multiplying the armour thickness by the material bash/cut resistance factor respectively, given in materials.json
|
||||
8) If the armour is made from 2 materials types, then it takes a weighted average of the primary material (66%) and secondary material (33%).
|
||||
9) Materials resistance factors are given relative to PAPER as a material (this probably needs some fine-tuning for balance).
|
||||
|
||||
1.5 Acid resistance
|
||||
This determines how items react to acid fields. Item acid resistances are a weighted
|
||||
average of the materials acid resistance (see item::acid_resist).
|
||||
An item acid resistance of zero means it will get corroded every turn
|
||||
An item acid resistance above zero means it has a chance of getting corroded every turn
|
||||
An item acid resistance above 9 means completely acidproof
|
||||
|
||||
Acid resistance values are in materials.json, and defined as such:
|
||||
0 - zero resistance to acid (metals)
|
||||
1 - partly resistant to acid
|
||||
2 - very resistant to acid
|
||||
3 - complete acid resistance
|
||||
|
||||
1.6 Adding a bionic
|
||||
1) Edit data/raw/bionics.json and add your bionic near similar types.
|
||||
|
||||
2) Add the required attributes
|
||||
|
||||
id : "bio_rocketlauncher" // Text string used as identifier in the code.
|
||||
name : "CBM: Rocket Launcher" // The bionic's name, as showed to the player.
|
||||
cost : 10 // How many PUs it costs to use the bionic.
|
||||
time : 0 // How long, when activated, between drawing cost. If 0, it draws power once.
|
||||
description : "It's a rocket launcher, inside your arm!!" // A brief description of the bionic, as showed to the player.
|
||||
|
||||
3) Add any otional attributes
|
||||
|
||||
flags : ["ACTIVE"] // Used to flag the bionic as a specific type.
|
||||
|
||||
Supported flags:
|
||||
|
||||
"ACTIVE" : The bionic can be manually activated and deactivated.
|
||||
"POWER" : The bionic provides a source of power.
|
||||
"FAULTY" : The bionic is an unwanted one, will typically have negative effects.
|
||||
|
||||
Flags can be combined like so: ["ACTIVE","POWER","FAULTY"] (Don't add all these at once)
|
||||
|
||||
4) If you want the bionic to be available in the gameworld as an item, add it to itypedef.cpp
|
||||
|
||||
BIO_SINGLE(id, rarity, price, color, difficulty)
|
||||
|
||||
See 1.1 for more information about adding items.
|
||||
|
||||
|
||||
FAQ
|
||||
Q: What the heck is up with the map objects?
|
||||
@@ -80,3 +158,6 @@ An overmap encapsulates the large-scale structure of a map
|
||||
There are an arbitrary number of overmaps
|
||||
Additional overmaps are generated as the player enters new areas.
|
||||
|
||||
FAQ
|
||||
Q: what is the relation of NPCS/Monsters vs maps. How are they stored, where are they stored? Are they stored?
|
||||
A: All npcs are now stored in the overmap. Active npcs only contain the currently active npcs. There is a difference between npc active npc coordinates, and overmap coordinates. So these will need to be changed when saving the npcs. Or else the npcs will be saved at the wrong location. And yes they are stored.
|
||||
|
||||
+106
@@ -0,0 +1,106 @@
|
||||
MODDING
|
||||
|
||||
Certain features of the game can be modified without rebuilding the game from
|
||||
source code; you should be able to just modify the pertinent files and run the
|
||||
game to see your changes. This attempts to document these features.
|
||||
|
||||
1.1 Adding a profession.
|
||||
|
||||
The data on professions is contained in data/raw/professions.json
|
||||
The format of the file follows:
|
||||
[
|
||||
{
|
||||
"ident" : "example", <-- This is a unique string that identifies the
|
||||
profession; it is used internally by the game as
|
||||
opposed to in the user interface.
|
||||
"name": "Example Profession", <-- This is the name that will be displayed
|
||||
on the user interface; this is
|
||||
what you actually "see" in-game.
|
||||
"description": "An example profession.", <-- This field contains the
|
||||
description of the profession
|
||||
that will be displayed in the
|
||||
character creation screen.
|
||||
|
||||
"points" : 0, <-- This value describes the point cost of the profession;
|
||||
note that negative numbers are accecptable. A positive
|
||||
value will deduct points from the players total whereas
|
||||
a negative one will give the player creation points.
|
||||
"items": ["jeans", "tshirt", "sneakers"], <-- This list contains the items
|
||||
a character will start with
|
||||
if they choose this
|
||||
profession.
|
||||
"addictions" : [ <-- This is the OPTIONAL list of starting addictions.
|
||||
{
|
||||
"type": "nicotine", <-- The identifier of the addiction.
|
||||
"intensity" : 10, <-- The intensity of the addiction.
|
||||
}
|
||||
],
|
||||
"skills" : [ <-- This list is also OPTIONAL; it contains the starting
|
||||
skills and their modified levels.
|
||||
{
|
||||
"name": "melee", <-- The identifier of the skill that will be modified.
|
||||
"level" : 1 <-- The value that the skill will be modified; note that
|
||||
this is NOT the starting level of the skill. It is
|
||||
the value that the player's starting level will be
|
||||
modified by. In other words, if the player puts 1
|
||||
point into melee to give themselves level 2 melee,
|
||||
taking this profession would add one additional level
|
||||
resulting in level 3.
|
||||
},
|
||||
{
|
||||
"name" : "dodge",
|
||||
"level" : 1
|
||||
}, <-- It is possible to list multiple skills for a single profession;
|
||||
it's an unused feature in the current game.
|
||||
|
||||
]
|
||||
|
||||
},
|
||||
]
|
||||
1.2 Example of adding a profession.
|
||||
|
||||
Let's say we want to add a survivalist profession; this profession represents a
|
||||
character who was already living off the land before the disaster struck. We'll
|
||||
say this profession starts with archery, survival, traps, beef jerky
|
||||
and a few survival items. We'll set the starting cost at 3 points since
|
||||
it modifies skills and items. We could do that with the
|
||||
following entries:
|
||||
{
|
||||
"ident" : "survivalist"
|
||||
"name": "Wilderness Survivalist",
|
||||
"description": "You live off the wild and wander the world; you've never
|
||||
had\na place to live or items other than what you can
|
||||
scavenge off the land. People called you crazy; now,
|
||||
after the disaster, you're the sane one."
|
||||
|
||||
"points" : 3,
|
||||
"items": ["pants_cargo", "boots", "beltrig", "selfbow", "jerky", "arrow_field_point"],
|
||||
|
||||
"skills" : [
|
||||
{
|
||||
"name": "archery",
|
||||
"level" : 1
|
||||
},
|
||||
{
|
||||
"name" : "survival",
|
||||
"level" : 1
|
||||
},
|
||||
{
|
||||
"name" : "traps",
|
||||
"level" : 1
|
||||
}
|
||||
]
|
||||
},
|
||||
|
||||
After adding this to the professions.json file, we should see the new profession
|
||||
show up in the character creation screen.
|
||||
|
||||
1.3 IMPORTANT NOTE on JSON FILES:
|
||||
The following characters: [ { , } ] : "
|
||||
are *very* important when adding or modifying the JSON files for technical
|
||||
reasons. This means a single missing , or [ or } can be the difference between
|
||||
a working file and a hanging game at startup. Many editors have features
|
||||
that let you track { [ and ] } to see if they're balanced (ie, have a matching
|
||||
opposite); Notepad++ is a popular, free editor on Windows that contains
|
||||
this feature. On Linux, there are a plethora of options, and you probably
|
||||
already have a preferred one :-).
|
||||
@@ -7,21 +7,28 @@
|
||||
# make NATIVE=linux32
|
||||
# Linux cross-compile to Win32
|
||||
# make CROSS=i686-pc-mingw32-
|
||||
# or make CROSS=i586-mingw32msvc-
|
||||
# or whichever prefix your crosscompiler uses
|
||||
# as long as its name contains mingw32
|
||||
# Win32
|
||||
# Run: make NATIVE=win32
|
||||
# OS X
|
||||
# Run: make NATIVE=osx
|
||||
|
||||
# Build types:
|
||||
# Debug (no optimizations)
|
||||
# Default
|
||||
# Release (turn on optimizations)
|
||||
# make RELEASE=1
|
||||
# Tiles (uses SDL rather than ncurses)
|
||||
# make TILES=1
|
||||
|
||||
|
||||
# comment these to toggle them as one sees fit.
|
||||
# WARNINGS will spam hundreds of warnings, mostly safe, if turned on
|
||||
# DEBUG is best turned on if you plan to debug in gdb -- please do!
|
||||
# PROFILE is for use with gprof or a similar program -- don't bother generally
|
||||
WARNINGS = -Wall -Wextra -Wno-switch -Wno-sign-compare -Wno-missing-braces -Wno-unused-parameter -Wno-char-subscripts
|
||||
WARNINGS = -Wall -Wextra -Wno-switch -Wno-sign-compare -Wno-missing-braces -Wno-unused-parameter
|
||||
# Uncomment below to disable warnings
|
||||
#WARNINGS = -w
|
||||
DEBUG = -g
|
||||
@@ -44,14 +51,22 @@ DEBUG = -g
|
||||
#DEFINES += -DDEBUG_ENABLE_MAP_GEN
|
||||
#DEFINES += -DDEBUG_ENABLE_GAME
|
||||
|
||||
VERSION = 0.3
|
||||
VERSION = 0.7
|
||||
|
||||
|
||||
TARGET = cataclysm
|
||||
TILESTARGET = cataclysm-tiles
|
||||
W32TILESTARGET = cataclysm-tiles.exe
|
||||
W32TARGET = cataclysm.exe
|
||||
BINDIST_DIR = bindist
|
||||
BUILD_DIR = $(CURDIR)
|
||||
|
||||
# tiles object directories are because gcc gets confused
|
||||
# when preprocessor defines change, but the source doesn't
|
||||
ODIR = obj
|
||||
ODIRTILES = obj/tiles
|
||||
W32ODIR = objwin
|
||||
W32ODIRTILES = objwin/tiles
|
||||
DDIR = .deps
|
||||
|
||||
OS = $(shell uname -o)
|
||||
@@ -64,47 +79,120 @@ ifdef RELEASE
|
||||
DEBUG =
|
||||
endif
|
||||
|
||||
CXXFLAGS = $(WARNINGS) $(DEBUG) $(PROFILE) $(OTHERS) -MMD
|
||||
CXXFLAGS += $(WARNINGS) $(DEBUG) $(PROFILE) $(OTHERS) -MMD
|
||||
|
||||
BINDIST_EXTRAS = README data cataclysm-launcher
|
||||
BINDIST_EXTRAS = README data
|
||||
BINDIST = cataclysmdda-$(VERSION).tar.gz
|
||||
W32BINDIST = cataclysmdda-$(VERSION).zip
|
||||
BINDIST_CMD = tar -czvf $(BINDIST) $(BINDIST_DIR)
|
||||
W32BINDIST_CMD = zip -r $(W32BINDIST) $(BINDIST_DIR)
|
||||
BINDIST_CMD = tar --transform=s@^$(BINDIST_DIR)@cataclysmdda-$(VERSION)@ -czvf $(BINDIST) $(BINDIST_DIR)
|
||||
W32BINDIST_CMD = cd $(BINDIST_DIR) && zip -r ../$(W32BINDIST) * && cd $(BUILD_DIR)
|
||||
|
||||
# is this section even being used anymore?
|
||||
# SOMEBODY PLEASE CHECK
|
||||
#ifeq ($(OS), Msys)
|
||||
# LDFLAGS = -static -lpdcurses
|
||||
#else
|
||||
LDFLAGS = -lncurses
|
||||
# LDFLAGS += -lncurses
|
||||
#endif
|
||||
|
||||
# Check if called without a special build target
|
||||
ifeq ($(NATIVE),)
|
||||
ifeq ($(CROSS),)
|
||||
TARGETSYSTEM=LINUX
|
||||
endif
|
||||
endif
|
||||
|
||||
# Linux 64-bit
|
||||
ifeq ($(NATIVE), linux64)
|
||||
CXXFLAGS += -m64
|
||||
LDFLAGS += -m64
|
||||
TARGETSYSTEM=LINUX
|
||||
else
|
||||
# Linux 32-bit
|
||||
ifeq ($(NATIVE), linux32)
|
||||
CXXFLAGS += -m32
|
||||
LDFLAGS += -m32
|
||||
TARGETSYSTEM=LINUX
|
||||
endif
|
||||
endif
|
||||
|
||||
# OSX
|
||||
ifeq ($(NATIVE), osx)
|
||||
OSX_MIN = 10.5
|
||||
DEFINES += -DMACOSX
|
||||
CXXFLAGS += -mmacosx-version-min=$(OSX_MIN)
|
||||
LDFLAGS += -lintl
|
||||
TARGETSYSTEM=LINUX
|
||||
ifneq ($(OS), GNU/Linux)
|
||||
BINDIST_CMD = tar -s"@^$(BINDIST_DIR)@cataclysmdda-$(VERSION)@" -czvf $(BINDIST) $(BINDIST_DIR)
|
||||
endif
|
||||
endif
|
||||
|
||||
# Win32 (mingw32?)
|
||||
ifeq ($(NATIVE), win32)
|
||||
TARGET = $(W32TARGET)
|
||||
BINDIST = $(W32BINDIST)
|
||||
BINDIST_CMD = $(W32BINDIST_CMD)
|
||||
ODIR = $(W32ODIR)
|
||||
W32LDFLAGS = -Wl,-stack,12000000,-subsystem,windows
|
||||
LDFLAGS += -static -lgdi32
|
||||
TARGETSYSTEM=WINDOWS
|
||||
endif
|
||||
|
||||
# MXE cross-compile to win32
|
||||
ifeq ($(CROSS), i686-pc-mingw32-)
|
||||
ifneq (,$(findstring mingw32,$(CROSS)))
|
||||
DEFINES += -DCROSS_LINUX
|
||||
TARGETSYSTEM=WINDOWS
|
||||
endif
|
||||
|
||||
# Global settings for Windows targets
|
||||
ifeq ($(TARGETSYSTEM),WINDOWS)
|
||||
TARGET = $(W32TARGET)
|
||||
BINDIST = $(W32BINDIST)
|
||||
BINDIST_CMD = $(W32BINDIST_CMD)
|
||||
ODIR = $(W32ODIR)
|
||||
LDFLAGS += -lgdi32
|
||||
LDFLAGS += -static -lgdi32 -lintl -liconv
|
||||
W32FLAGS += -Wl,-stack,12000000,-subsystem,windows
|
||||
endif
|
||||
|
||||
ifdef TILES
|
||||
ifeq ($(NATIVE),osx)
|
||||
ifdef FRAMEWORK
|
||||
DEFINES += -DOSX_SDL_FW
|
||||
OSX_INC = -F/Library/Frameworks \
|
||||
-F$(HOME)/Library/Frameworks \
|
||||
-I/Library/Frameworks/SDL.framework/Headers \
|
||||
-I$(HOME)/Library/Frameworks/SDL.framework/Headers \
|
||||
-I/Library/Frameworks/SDL_ttf.framework/Headers \
|
||||
-I$(HOME)/Library/Frameworks/SDL_ttf.framework/Headers
|
||||
LDFLAGS += -F/Library/Frameworks \
|
||||
-F$(HOME)/Library/Frameworks \
|
||||
-framework SDL -framework SDL_ttf -framework Cocoa
|
||||
CXXFLAGS += $(OSX_INC)
|
||||
else
|
||||
DEFINES += -DOSX_SDL_LIBS
|
||||
CXXFLAGS += $(shell sdl-config --cflags)
|
||||
LDFLAGS += $(shell sdl-config --libs) -lSDL_ttf
|
||||
endif
|
||||
else
|
||||
LDFLAGS += -lSDL -lSDL_ttf -lfreetype -lz
|
||||
endif
|
||||
DEFINES += -DTILES
|
||||
ifeq ($(TARGETSYSTEM),WINDOWS)
|
||||
LDFLAGS += -lgdi32 -ldxguid -lwinmm
|
||||
TARGET = $(W32TILESTARGET)
|
||||
ODIR = $(W32ODIRTILES)
|
||||
else
|
||||
TARGET = $(TILESTARGET)
|
||||
ODIR = $(ODIRTILES)
|
||||
endif
|
||||
else
|
||||
# Link to ncurses if we're using a non-tiles, Linux build
|
||||
ifeq ($(TARGETSYSTEM),LINUX)
|
||||
LDFLAGS += -lncursesw
|
||||
# Work around Cygwin not including gettext support in glibc
|
||||
ifeq ($(shell sh -c 'uname -o 2>/dev/null || echo not'),Cygwin)
|
||||
LDFLAGS += -lintl -liconv
|
||||
endif
|
||||
endif
|
||||
endif
|
||||
|
||||
ifeq ($(TARGETSYSTEM),LINUX)
|
||||
BINDIST_EXTRAS += cataclysm-launcher
|
||||
endif
|
||||
|
||||
SOURCES = $(wildcard *.cpp)
|
||||
@@ -112,15 +200,29 @@ HEADERS = $(wildcard *.h)
|
||||
_OBJS = $(SOURCES:.cpp=.o)
|
||||
OBJS = $(patsubst %,$(ODIR)/%,$(_OBJS))
|
||||
|
||||
all: $(TARGET)
|
||||
ifdef TILES
|
||||
ifeq ($(NATIVE),osx)
|
||||
OBJS += $(ODIR)/SDLMain.o
|
||||
endif
|
||||
endif
|
||||
|
||||
all: version $(TARGET)
|
||||
@
|
||||
|
||||
$(TARGET): $(ODIR) $(DDIR) $(OBJS)
|
||||
$(LD) $(W32FLAGS) -o $(TARGET) $(DEFINES) $(CXXFLAGS) \
|
||||
$(OBJS) $(LDFLAGS)
|
||||
|
||||
.PHONY: version
|
||||
version:
|
||||
@( VERSION_STRING=$(VERSION) ; \
|
||||
[ -e ".git" ] && GITVERSION=$$( git describe --tags --always --dirty --match "[0-9]*.[0-9]*" ) && VERSION_STRING=$$GITVERSION ; \
|
||||
[ -e "version.h" ] && OLDVERSION=$$(grep VERSION version.h|cut -d '"' -f2) ; \
|
||||
if [ "x$$VERSION_STRING" != "x$$OLDVERSION" ]; then echo "#define VERSION \"$$VERSION_STRING\"" | tee version.h ; fi \
|
||||
)
|
||||
|
||||
$(ODIR):
|
||||
mkdir $(ODIR)
|
||||
mkdir -p $(ODIR)
|
||||
|
||||
$(DDIR):
|
||||
@mkdir $(DDIR)
|
||||
@@ -128,10 +230,16 @@ $(DDIR):
|
||||
$(ODIR)/%.o: %.cpp
|
||||
$(CXX) $(DEFINES) $(CXXFLAGS) -c $< -o $@
|
||||
|
||||
clean:
|
||||
rm -f $(TARGET) $(W32TARGET) $(ODIR)/*.o $(ODIR)/*.d $(W32ODIR)/*.o $(W32BINDIST) \
|
||||
$(BINDIST)
|
||||
rm -rf $(BINDIST_DIR)
|
||||
$(ODIR)/SDLMain.o: SDLMain.m
|
||||
$(CC) -c $(OSX_INC) $< -o $@
|
||||
|
||||
version.cpp: version
|
||||
|
||||
clean: clean-tests
|
||||
rm -rf $(TARGET) $(TILESTARGET) $(W32TILESTARGET) $(W32TARGET)
|
||||
rm -rf $(ODIR) $(W32ODIR) $(W32ODIRTILES)
|
||||
rm -rf $(BINDIST) $(W32BINDIST) $(BINDIST_DIR)
|
||||
rm -f version.h
|
||||
|
||||
bindist: $(BINDIST)
|
||||
|
||||
@@ -155,7 +263,10 @@ tests: $(ODIR) $(DDIR) $(OBJS)
|
||||
check: tests
|
||||
$(MAKE) -C tests check
|
||||
|
||||
.PHONY: tests check ctags etags
|
||||
clean-tests:
|
||||
$(MAKE) -C tests clean
|
||||
|
||||
.PHONY: tests check ctags etags clean-tests
|
||||
|
||||
-include $(SOURCES:%.cpp=$(DEPDIR)/%.P)
|
||||
-include ${OBJS:.o=.d}
|
||||
|
||||
+9
-1
@@ -13,6 +13,7 @@ DDIR = .deps
|
||||
TARGET = cataclysm.exe
|
||||
|
||||
CXX = g++
|
||||
WNDRES = windres
|
||||
|
||||
LINKER = i486-mingw32-ld
|
||||
LINKERFLAGS = -Wl,-stack,12000000,-subsystem,windows
|
||||
@@ -20,6 +21,7 @@ LINKERFLAGS = -Wl,-stack,12000000,-subsystem,windows
|
||||
CFLAGS = $(WARNINGS) $(DEBUG) $(PROFILE) $(OTHERS)
|
||||
|
||||
LDFLAGS = -static -lgdi32
|
||||
RFLAGS = -J rc -O coff
|
||||
|
||||
#ifeq ($(OS), Msys)
|
||||
#LDFLAGS = -static -lpdcurses
|
||||
@@ -29,13 +31,15 @@ LDFLAGS = -static -lgdi32
|
||||
|
||||
SOURCES = $(wildcard *.cpp)
|
||||
_OBJS = $(SOURCES:.cpp=.o)
|
||||
RSRC = $(wildcard *.rc)
|
||||
_OBJS += $(RSRC:.rc=.res)
|
||||
OBJS = $(patsubst %,$(ODIR)/%,$(_OBJS))
|
||||
|
||||
all: $(TARGET)
|
||||
@
|
||||
|
||||
$(TARGET): $(ODIR) $(DDIR) $(OBJS)
|
||||
$(CXX) $(LINKERFLAGS) -o $(TARGET) $(CFLAGS) $(OBJS) $(LDFLAGS)
|
||||
$(CXX) $(LINKERFLAGS) -o $(TARGET) $(CFLAGS) $(OBJS) $(LDFLAGS) -DMINGW
|
||||
|
||||
$(ODIR):
|
||||
mkdir $(ODIR)
|
||||
@@ -46,7 +50,11 @@ $(DDIR):
|
||||
$(ODIR)/%.o: %.cpp
|
||||
$(CXX) $(CFLAGS) -c $< -o $@
|
||||
|
||||
$(ODIR)/%.res: %.rc
|
||||
$(WNDRES) $(RFLAGS) $< -o $@
|
||||
|
||||
clean:
|
||||
rm -f $(TARGET) $(ODIR)/*.o
|
||||
|
||||
-include $(SOURCES:%.cpp=$(DEPDIR)/%.P)
|
||||
|
||||
|
||||
@@ -1,13 +1,42 @@
|
||||
Cataclysm: Dark Days Ahead
|
||||
==========================
|
||||
You emerge from the shelter into the dim light of an overcast day, and look around for the first time since the disaster.
|
||||
|
||||
The world as you knew it is gone. A ruined world stands in its place, full of nightmares come to life. Nothing can ever go back to the way it was, before the Cataclysm, but you have to be strong. You have to survive. You have to persevere. If you don't, death will be one of the better outcomes.
|
||||
|
||||
Above your head, storm clouds gather, and the rain stings and hisses against your skin. You shoulder your backpack, and start walking. The world has gone to hell, but you get the sinking feeling that there are darker days ahead.
|
||||
# Cataclysm: Dark Days Ahead
|
||||
|
||||
Cataclysm: Dark Days Ahead is a roguelike set in a post-apocalyptic world. While some have described it as a "zombie game", there's far more to Cataclysm than that. Struggle to survive in a harsh, persistant, procedurally generated world. Scavenge the remnants of a dead civilization for for food, equipment, or, if you're lucky, a vehicle with a full tank of gas to get you the hell out of Dodge. Fight to defeat or escape from a wide variety of powerful monstrosities, from zombies to giant insects to killer robots and things far stranger and deadlier, and against the others like yourself, that want what you have...
|
||||
|
||||
Build the tools and defenses you will need to overcome the challenges you face, from a strongly fortified lair full of customized firearms and surrounded by pits and landmines, to a mobile, gasoline powered blade spinning fortress of death, tearing apart anything stupid enough to get in the way. And finally, improve! Learn skills to help you survive, acquire mind-bending mutations, and convert your own body into a cybernetic masterpiece.
|
||||
|
||||
Make no mistake - there is no other game quite like Cataclysm. How long can you survive?
|
||||
## Download
|
||||
|
||||
The following binary releases are available:
|
||||
|
||||
* [Windows Executable](http://www.cataclysmdda.com/Downloads/CataDDA0.4.zip)
|
||||
* [OS X 10.6+ Executable](http://www.cataclysm.glyphgryph.com/Downloads/CataDDA0.4.tar.gz)
|
||||
|
||||
The source can either be downloaded as [an archive](https://github.com/TheDarklingWolf/Cataclysm-DDA/archive/master.zip), or you can clone it from [our GitHub repository](https://github.com/TheDarklingWolf/Cataclysm-DDA/).
|
||||
|
||||
|
||||
## Compile
|
||||
|
||||
The latest instructions on how to compile can be found on [our wiki](http://www.wiki.cataclysmdda.com/index.php?title=How_to_compile).
|
||||
|
||||
|
||||
## Contribute
|
||||
|
||||
Please see [CONTRIBUTING.md](https://github.com/CleverRaven/Cataclysm-DDA/blob/master/CONTRIBUTING.md) for details.
|
||||
|
||||
|
||||
## Frequently Asked Questions
|
||||
|
||||
#### Is there a tutorial?
|
||||
|
||||
Yes, you can find the tutorial in the **Special** menu at the main menu. You can also access documentation in-game via the **?** key.
|
||||
|
||||
#### How can I change the key bindings?
|
||||
|
||||
Press the `?` key, followed by the `1` key to see the full list of key commands. Press the `+` key to add a key binding, select which action with the corresponding letter key `a-w`, and then the key you wish to assign to that action.
|
||||
|
||||
#### How can I start a new world?
|
||||
|
||||
**Reset** on the main menu will generate a fresh world for you.
|
||||
|
||||
#### I've found a bug / I would like to make a suggestion. What should I do?
|
||||
|
||||
Please submit an issue on [our GitHub page](https://github.com/CleverRaven/Cataclysm-DDA/issues/). If you're not able to, send an email to `TheDarklingWolf@gmail.com`.
|
||||
|
||||
@@ -0,0 +1,16 @@
|
||||
/* SDLMain.m - main entry point for our Cocoa-ized SDL app
|
||||
Initial Version: Darrell Walisser <dwaliss1@purdue.edu>
|
||||
Non-NIB-Code & other changes: Max Horn <max@quendi.de>
|
||||
|
||||
Feel free to customize this file to suit your needs
|
||||
*/
|
||||
|
||||
#ifndef _SDLMain_h_
|
||||
#define _SDLMain_h_
|
||||
|
||||
#import <Cocoa/Cocoa.h>
|
||||
|
||||
@interface SDLMain : NSObject
|
||||
@end
|
||||
|
||||
#endif /* _SDLMain_h_ */
|
||||
@@ -0,0 +1,385 @@
|
||||
/* SDLMain.m - main entry point for our Cocoa-ized SDL app
|
||||
Initial Version: Darrell Walisser <dwaliss1@purdue.edu>
|
||||
Non-NIB-Code & other changes: Max Horn <max@quendi.de>
|
||||
|
||||
Feel free to customize this file to suit your needs
|
||||
*/
|
||||
|
||||
#if (defined OSX_SDL_FW)
|
||||
#include "SDL.h"
|
||||
#else
|
||||
#include "SDL/SDL.h"
|
||||
#endif
|
||||
#include "SDLMain.h"
|
||||
#include <sys/param.h> /* for MAXPATHLEN */
|
||||
#include <unistd.h>
|
||||
|
||||
/* For some reaon, Apple removed setAppleMenu from the headers in 10.4,
|
||||
but the method still is there and works. To avoid warnings, we declare
|
||||
it ourselves here. */
|
||||
@interface NSApplication(SDL_Missing_Methods)
|
||||
- (void)setAppleMenu:(NSMenu *)menu;
|
||||
@end
|
||||
|
||||
/* Use this flag to determine whether we use SDLMain.nib or not */
|
||||
#define SDL_USE_NIB_FILE 0
|
||||
|
||||
/* Use this flag to determine whether we use CPS (docking) or not */
|
||||
#define SDL_USE_CPS 1
|
||||
#ifdef SDL_USE_CPS
|
||||
/* Portions of CPS.h */
|
||||
typedef struct CPSProcessSerNum
|
||||
{
|
||||
UInt32 lo;
|
||||
UInt32 hi;
|
||||
} CPSProcessSerNum;
|
||||
|
||||
extern OSErr CPSGetCurrentProcess( CPSProcessSerNum *psn);
|
||||
extern OSErr CPSEnableForegroundOperation( CPSProcessSerNum *psn, UInt32 _arg2, UInt32 _arg3, UInt32 _arg4, UInt32 _arg5);
|
||||
extern OSErr CPSSetFrontProcess( CPSProcessSerNum *psn);
|
||||
|
||||
#endif /* SDL_USE_CPS */
|
||||
|
||||
static int gArgc;
|
||||
static char **gArgv;
|
||||
static BOOL gFinderLaunch;
|
||||
static BOOL gCalledAppMainline = FALSE;
|
||||
|
||||
static NSString *getApplicationName(void)
|
||||
{
|
||||
const NSDictionary *dict;
|
||||
NSString *appName = 0;
|
||||
|
||||
/* Determine the application name */
|
||||
dict = (const NSDictionary *)CFBundleGetInfoDictionary(CFBundleGetMainBundle());
|
||||
if (dict)
|
||||
appName = [dict objectForKey: @"CFBundleName"];
|
||||
|
||||
if (![appName length])
|
||||
appName = [[NSProcessInfo processInfo] processName];
|
||||
|
||||
return appName;
|
||||
}
|
||||
|
||||
#if SDL_USE_NIB_FILE
|
||||
/* A helper category for NSString */
|
||||
@interface NSString (ReplaceSubString)
|
||||
- (NSString *)stringByReplacingRange:(NSRange)aRange with:(NSString *)aString;
|
||||
@end
|
||||
#endif
|
||||
|
||||
@interface NSApplication (SDLApplication)
|
||||
@end
|
||||
|
||||
@implementation NSApplication (SDLApplication)
|
||||
/* Invoked from the Quit menu item */
|
||||
- (void)terminate:(id)sender
|
||||
{
|
||||
/* Post a SDL_QUIT event */
|
||||
SDL_Event event;
|
||||
event.type = SDL_QUIT;
|
||||
SDL_PushEvent(&event);
|
||||
}
|
||||
@end
|
||||
|
||||
/* The main class of the application, the application's delegate */
|
||||
@implementation SDLMain
|
||||
|
||||
/* Set the working directory to the .app's parent directory */
|
||||
- (void) setupWorkingDirectory:(BOOL)shouldChdir
|
||||
{
|
||||
if (shouldChdir)
|
||||
{
|
||||
char parentdir[MAXPATHLEN];
|
||||
CFURLRef url = CFBundleCopyBundleURL(CFBundleGetMainBundle());
|
||||
CFURLRef url2 = CFURLCreateCopyDeletingLastPathComponent(0, url);
|
||||
if (CFURLGetFileSystemRepresentation(url2, 1, (UInt8 *)parentdir, MAXPATHLEN)) {
|
||||
chdir(parentdir); /* chdir to the binary app's parent */
|
||||
}
|
||||
CFRelease(url);
|
||||
CFRelease(url2);
|
||||
}
|
||||
}
|
||||
|
||||
#if SDL_USE_NIB_FILE
|
||||
|
||||
/* Fix menu to contain the real app name instead of "SDL App" */
|
||||
- (void)fixMenu:(NSMenu *)aMenu withAppName:(NSString *)appName
|
||||
{
|
||||
NSRange aRange;
|
||||
NSEnumerator *enumerator;
|
||||
NSMenuItem *menuItem;
|
||||
|
||||
aRange = [[aMenu title] rangeOfString:@"SDL App"];
|
||||
if (aRange.length != 0)
|
||||
[aMenu setTitle: [[aMenu title] stringByReplacingRange:aRange with:appName]];
|
||||
|
||||
enumerator = [[aMenu itemArray] objectEnumerator];
|
||||
while ((menuItem = [enumerator nextObject]))
|
||||
{
|
||||
aRange = [[menuItem title] rangeOfString:@"SDL App"];
|
||||
if (aRange.length != 0)
|
||||
[menuItem setTitle: [[menuItem title] stringByReplacingRange:aRange with:appName]];
|
||||
if ([menuItem hasSubmenu])
|
||||
[self fixMenu:[menuItem submenu] withAppName:appName];
|
||||
}
|
||||
}
|
||||
|
||||
#else
|
||||
|
||||
static void setApplicationMenu(void)
|
||||
{
|
||||
/* warning: this code is very odd */
|
||||
NSMenu *appleMenu;
|
||||
NSMenuItem *menuItem;
|
||||
NSString *title;
|
||||
NSString *appName;
|
||||
|
||||
appName = getApplicationName();
|
||||
appleMenu = [[NSMenu alloc] initWithTitle:@""];
|
||||
|
||||
/* Add menu items */
|
||||
title = [@"About " stringByAppendingString:appName];
|
||||
[appleMenu addItemWithTitle:title action:@selector(orderFrontStandardAboutPanel:) keyEquivalent:@""];
|
||||
|
||||
[appleMenu addItem:[NSMenuItem separatorItem]];
|
||||
|
||||
title = [@"Hide " stringByAppendingString:appName];
|
||||
[appleMenu addItemWithTitle:title action:@selector(hide:) keyEquivalent:@"h"];
|
||||
|
||||
menuItem = (NSMenuItem *)[appleMenu addItemWithTitle:@"Hide Others" action:@selector(hideOtherApplications:) keyEquivalent:@"h"];
|
||||
[menuItem setKeyEquivalentModifierMask:(NSAlternateKeyMask|NSCommandKeyMask)];
|
||||
|
||||
[appleMenu addItemWithTitle:@"Show All" action:@selector(unhideAllApplications:) keyEquivalent:@""];
|
||||
|
||||
[appleMenu addItem:[NSMenuItem separatorItem]];
|
||||
|
||||
title = [@"Quit " stringByAppendingString:appName];
|
||||
[appleMenu addItemWithTitle:title action:@selector(terminate:) keyEquivalent:@"q"];
|
||||
|
||||
|
||||
/* Put menu into the menubar */
|
||||
menuItem = [[NSMenuItem alloc] initWithTitle:@"" action:nil keyEquivalent:@""];
|
||||
[menuItem setSubmenu:appleMenu];
|
||||
[[NSApp mainMenu] addItem:menuItem];
|
||||
|
||||
/* Tell the application object that this is now the application menu */
|
||||
[NSApp setAppleMenu:appleMenu];
|
||||
|
||||
/* Finally give up our references to the objects */
|
||||
[appleMenu release];
|
||||
[menuItem release];
|
||||
}
|
||||
|
||||
/* Create a window menu */
|
||||
static void setupWindowMenu(void)
|
||||
{
|
||||
NSMenu *windowMenu;
|
||||
NSMenuItem *windowMenuItem;
|
||||
NSMenuItem *menuItem;
|
||||
|
||||
windowMenu = [[NSMenu alloc] initWithTitle:@"Window"];
|
||||
|
||||
/* "Minimize" item */
|
||||
menuItem = [[NSMenuItem alloc] initWithTitle:@"Minimize" action:@selector(performMiniaturize:) keyEquivalent:@"m"];
|
||||
[windowMenu addItem:menuItem];
|
||||
[menuItem release];
|
||||
|
||||
/* Put menu into the menubar */
|
||||
windowMenuItem = [[NSMenuItem alloc] initWithTitle:@"Window" action:nil keyEquivalent:@""];
|
||||
[windowMenuItem setSubmenu:windowMenu];
|
||||
[[NSApp mainMenu] addItem:windowMenuItem];
|
||||
|
||||
/* Tell the application object that this is now the window menu */
|
||||
[NSApp setWindowsMenu:windowMenu];
|
||||
|
||||
/* Finally give up our references to the objects */
|
||||
[windowMenu release];
|
||||
[windowMenuItem release];
|
||||
}
|
||||
|
||||
/* Replacement for NSApplicationMain */
|
||||
static void CustomApplicationMain (int argc, char **argv)
|
||||
{
|
||||
NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
|
||||
SDLMain *sdlMain;
|
||||
|
||||
/* Ensure the application object is initialised */
|
||||
[NSApplication sharedApplication];
|
||||
|
||||
#ifdef SDL_USE_CPS
|
||||
{
|
||||
CPSProcessSerNum PSN;
|
||||
/* Tell the dock about us */
|
||||
if (!CPSGetCurrentProcess(&PSN))
|
||||
if (!CPSEnableForegroundOperation(&PSN,0x03,0x3C,0x2C,0x1103))
|
||||
if (!CPSSetFrontProcess(&PSN))
|
||||
[NSApplication sharedApplication];
|
||||
}
|
||||
#endif /* SDL_USE_CPS */
|
||||
|
||||
/* Set up the menubar */
|
||||
[NSApp setMainMenu:[[NSMenu alloc] init]];
|
||||
setApplicationMenu();
|
||||
setupWindowMenu();
|
||||
|
||||
/* Create SDLMain and make it the app delegate */
|
||||
sdlMain = [[SDLMain alloc] init];
|
||||
[NSApp setDelegate:sdlMain];
|
||||
|
||||
/* Start the main event loop */
|
||||
[NSApp run];
|
||||
|
||||
[sdlMain release];
|
||||
[pool release];
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
/*
|
||||
* Catch document open requests...this lets us notice files when the app
|
||||
* was launched by double-clicking a document, or when a document was
|
||||
* dragged/dropped on the app's icon. You need to have a
|
||||
* CFBundleDocumentsType section in your Info.plist to get this message,
|
||||
* apparently.
|
||||
*
|
||||
* Files are added to gArgv, so to the app, they'll look like command line
|
||||
* arguments. Previously, apps launched from the finder had nothing but
|
||||
* an argv[0].
|
||||
*
|
||||
* This message may be received multiple times to open several docs on launch.
|
||||
*
|
||||
* This message is ignored once the app's mainline has been called.
|
||||
*/
|
||||
- (BOOL)application:(NSApplication *)theApplication openFile:(NSString *)filename
|
||||
{
|
||||
const char *temparg;
|
||||
size_t arglen;
|
||||
char *arg;
|
||||
char **newargv;
|
||||
|
||||
if (!gFinderLaunch) /* MacOS is passing command line args. */
|
||||
return FALSE;
|
||||
|
||||
if (gCalledAppMainline) /* app has started, ignore this document. */
|
||||
return FALSE;
|
||||
|
||||
temparg = [filename UTF8String];
|
||||
arglen = SDL_strlen(temparg) + 1;
|
||||
arg = (char *) SDL_malloc(arglen);
|
||||
if (arg == NULL)
|
||||
return FALSE;
|
||||
|
||||
newargv = (char **) realloc(gArgv, sizeof (char *) * (gArgc + 2));
|
||||
if (newargv == NULL)
|
||||
{
|
||||
SDL_free(arg);
|
||||
return FALSE;
|
||||
}
|
||||
gArgv = newargv;
|
||||
|
||||
SDL_strlcpy(arg, temparg, arglen);
|
||||
gArgv[gArgc++] = arg;
|
||||
gArgv[gArgc] = NULL;
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
|
||||
/* Called when the internal event loop has just started running */
|
||||
- (void) applicationDidFinishLaunching: (NSNotification *) note
|
||||
{
|
||||
int status;
|
||||
|
||||
/* Set the working directory to the .app's parent directory */
|
||||
[self setupWorkingDirectory:gFinderLaunch];
|
||||
|
||||
#if SDL_USE_NIB_FILE
|
||||
/* Set the main menu to contain the real app name instead of "SDL App" */
|
||||
[self fixMenu:[NSApp mainMenu] withAppName:getApplicationName()];
|
||||
#endif
|
||||
|
||||
/* Hand off to main application code */
|
||||
gCalledAppMainline = TRUE;
|
||||
status = SDL_main (gArgc, gArgv);
|
||||
|
||||
/* We're done, thank you for playing */
|
||||
exit(status);
|
||||
}
|
||||
@end
|
||||
|
||||
|
||||
@implementation NSString (ReplaceSubString)
|
||||
|
||||
- (NSString *)stringByReplacingRange:(NSRange)aRange with:(NSString *)aString
|
||||
{
|
||||
unsigned int bufferSize;
|
||||
unsigned int selfLen = [self length];
|
||||
unsigned int aStringLen = [aString length];
|
||||
unichar *buffer;
|
||||
NSRange localRange;
|
||||
NSString *result;
|
||||
|
||||
bufferSize = selfLen + aStringLen - aRange.length;
|
||||
buffer = (unichar *)NSAllocateMemoryPages(bufferSize*sizeof(unichar));
|
||||
|
||||
/* Get first part into buffer */
|
||||
localRange.location = 0;
|
||||
localRange.length = aRange.location;
|
||||
[self getCharacters:buffer range:localRange];
|
||||
|
||||
/* Get middle part into buffer */
|
||||
localRange.location = 0;
|
||||
localRange.length = aStringLen;
|
||||
[aString getCharacters:(buffer+aRange.location) range:localRange];
|
||||
|
||||
/* Get last part into buffer */
|
||||
localRange.location = aRange.location + aRange.length;
|
||||
localRange.length = selfLen - localRange.location;
|
||||
[self getCharacters:(buffer+aRange.location+aStringLen) range:localRange];
|
||||
|
||||
/* Build output string */
|
||||
result = [NSString stringWithCharacters:buffer length:bufferSize];
|
||||
|
||||
NSDeallocateMemoryPages(buffer, bufferSize);
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
@end
|
||||
|
||||
|
||||
|
||||
#ifdef main
|
||||
# undef main
|
||||
#endif
|
||||
|
||||
|
||||
/* Main entry point to executable - should *not* be SDL_main! */
|
||||
int main (int argc, char **argv)
|
||||
{
|
||||
/* Copy the arguments into a global variable */
|
||||
/* This is passed if we are launched by double-clicking */
|
||||
if ( argc >= 2 && strncmp (argv[1], "-psn", 4) == 0 ) {
|
||||
gArgv = (char **) SDL_malloc(sizeof (char *) * 2);
|
||||
gArgv[0] = argv[0];
|
||||
gArgv[1] = NULL;
|
||||
gArgc = 1;
|
||||
gFinderLaunch = YES;
|
||||
} else {
|
||||
int i;
|
||||
gArgc = argc;
|
||||
gArgv = (char **) SDL_malloc(sizeof (char *) * (argc+1));
|
||||
for (i = 0; i <= argc; i++)
|
||||
gArgv[i] = argv[i];
|
||||
gFinderLaunch = NO;
|
||||
}
|
||||
|
||||
#if SDL_USE_NIB_FILE
|
||||
NSApplicationMain (argc, argv);
|
||||
#else
|
||||
CustomApplicationMain (argc, argv);
|
||||
#endif
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,30 @@
|
||||
The undersigned release all their contributions to the Cataclysm project under the Creative Commons Attribution-ShareAlike 3.0 Unported License.
|
||||
|
||||
Kevin Granade <kevin.granade@gmail.com>
|
||||
Matthew Moffatt <TheDarklingWolf@gmail.com>
|
||||
origamiwolf <origamiwolf@gmail.com>
|
||||
Frank Huard <veryinky@gmail.com>
|
||||
daftfad <daftfjord@gmail.com>
|
||||
ZwodahS <ericnjf@gmail.com>
|
||||
Williham "Wito" Totland <williham.totland@gmail.com>
|
||||
Zach Morgan <zpmorgan@gmail.com>
|
||||
Livingstone <minexal@gmail.com>
|
||||
Ethan "Soron" Kaminski <ethan.kaminski@gmail.com>
|
||||
Soyweiser <soyweiser@gmail.com>
|
||||
Jason Gilbert <0jason.gilbert@gmail.com>
|
||||
Charlie Nolan (FunnyMan3595) <funnyman3595@gmail.com>
|
||||
uzername (some_name) <ivanpost777@gmail.com>
|
||||
Christian Buskirk (i2amroy) <i2amroy@gmail.com>
|
||||
Kevin McKayven (GlyphGryph) <glyphgryph@gmail.com>
|
||||
Ozone <satori.jj@gmail.com>
|
||||
Herbert Jones <jones.herbert@gmail.com>
|
||||
Justin "MacrosBlackD" Drury <macrosblackd@gmail.com>
|
||||
AtomicDryad <fnord@fnord> / <atomicdryad@gmail.com>
|
||||
Izicata
|
||||
Voker57 <voker57@gmail.com>
|
||||
Tommy <yobbobanana@gmx.com>
|
||||
teh-sam
|
||||
Alex Casey (Tamunshin) <tamunshin@hotmail.com>
|
||||
Stevensonz <money3030@yahoo.com.>
|
||||
David Holmes <dholmes@dholmes.us>
|
||||
Sean McLaughlin <galenevil@hotmail.com> / <galenevil.eve@gmail.com>
|
||||
@@ -0,0 +1,6 @@
|
||||
There's a slowly growing test suite in tests/. To build install libtap
|
||||
from http://www.shlomifish.org/open-source/projects/libtap/ *, then build
|
||||
the "check" target. e.g. "make check". This builds and runs any tests.
|
||||
|
||||
*Unpack the tarball with "gunzip tap-1.03.tar.gz && tar xf tap-1.03.tar"
|
||||
instead of the usual tar command.
|
||||
@@ -0,0 +1,92 @@
|
||||
Info on translating Cataclysm-DDA into another language.
|
||||
|
||||
|
||||
TRANSLATORS
|
||||
===========
|
||||
|
||||
If there is already a translation available for your language,
|
||||
and you just want to update or improve it,
|
||||
you can edit the .po file for your language,
|
||||
found inside the "lang/po" subdirectory.
|
||||
|
||||
After editing this file,
|
||||
if you are running the dev version and want to test your changes,
|
||||
perform step 4 from the maintainers section below.
|
||||
|
||||
|
||||
If there is no translation yet,
|
||||
the .po file will need to be generated.
|
||||
You can do this yourself by following the instructions below,
|
||||
or ask one of the CleverRaven devs to do it for you.
|
||||
|
||||
When you are done translating,
|
||||
submit the changes back to CleverRaven for inclusion in Cataclysm-DDA.
|
||||
|
||||
|
||||
MAINTAINERS
|
||||
===========
|
||||
|
||||
|
||||
Step 1: Extract the translatable strings
|
||||
----------------------------------------
|
||||
|
||||
First we have to extract the translatable strings from the .json files.
|
||||
The python script lang/extract_json_strings.py will do this for us,
|
||||
storing them in an intermediate form in lang/json for "xgettext" to read.
|
||||
|
||||
python lang/extract_json_strings.py
|
||||
|
||||
Now we can use xgettext to collate all the translatable strings,
|
||||
and store them in the file lang/po/cataclysm-dda.pot.
|
||||
|
||||
This needs to be done every time translatable strings are added or modified.
|
||||
All of the translations depend on this file.
|
||||
|
||||
xgettext -d cataclysm-dda -s -o lang/po/cataclysm-dda.pot --keyword=_ *.cpp *.h lang/json/*.py
|
||||
|
||||
|
||||
Step 2(a): Initialize each language file
|
||||
----------------------------------------
|
||||
|
||||
If we're starting a new translation from scratch,
|
||||
we have to initialize the translation file.
|
||||
In this example the translation is into New Zealand English (en_NZ).
|
||||
For other languages change "en_NZ" to the relevant language identifier.
|
||||
|
||||
msginit -l en_NZ.utf8 -o lang/po/en_NZ.po -i lang/po/cataclysm-dda.pot
|
||||
|
||||
|
||||
Step 2(b): Update an already existing language file
|
||||
---------------------------------------------------
|
||||
|
||||
If we just want to update a translation,
|
||||
we'll want to keep all the messages that have already been translated.
|
||||
In this case we use "msgmerge" in stead of "msginit".
|
||||
|
||||
msgmerge -s -U lang/po/en_NZ.po lang/po/cataclysm-dda.pot
|
||||
|
||||
|
||||
Step 3: Translate
|
||||
-----------------
|
||||
|
||||
Now open the .po file in your favorite editor and translate!
|
||||
The lines beginning with "msgid" must be left in the english form,
|
||||
only the lines beginning with "msgstr" should be translated.
|
||||
|
||||
|
||||
Step 4: Compile the .po file
|
||||
----------------------------
|
||||
|
||||
If it is a new translation,
|
||||
you will need to create a subdirectory in lang/mo for it,
|
||||
and then a subdirectory called "LC_MESSAGES" inside that.
|
||||
For example:
|
||||
|
||||
mkdir -p lang/mo/en_NZ/LC_MESSAGES
|
||||
|
||||
Now run the "msgfmt" program to compile the translations for use in game.
|
||||
|
||||
msgfmt -c -o lang/mo/en_NZ/LC_MESSAGES/cataclysm-dda.mo lang/po/en_NZ.po
|
||||
|
||||
Hooray, that's it :).
|
||||
|
||||
+380
-319
@@ -1,9 +1,20 @@
|
||||
#include "game.h"
|
||||
#include "keypress.h"
|
||||
#include "output.h"
|
||||
#include <istream>
|
||||
#include <sstream>
|
||||
#include <fstream>
|
||||
|
||||
void parse_keymap(std::istream &keymap_txt, std::map<char, action_id> &kmap);
|
||||
|
||||
void game::load_keyboard_settings()
|
||||
{
|
||||
// Load the default keymap
|
||||
std::istringstream sin;
|
||||
sin.str(default_keymap_txt());
|
||||
parse_keymap(sin, default_keymap);
|
||||
|
||||
// Load the player's actual keymap
|
||||
std::ifstream fin;
|
||||
fin.open("data/keymap.txt");
|
||||
if (!fin) { // It doesn't exist
|
||||
@@ -15,13 +26,37 @@ void game::load_keyboard_settings()
|
||||
}
|
||||
if (!fin) { // Still can't open it--probably bad permissions
|
||||
debugmsg("Can't open data/keymap.txt. This may be a permissions issue.");
|
||||
keymap = default_keymap;
|
||||
return;
|
||||
} else {
|
||||
parse_keymap(fin, keymap);
|
||||
}
|
||||
while (!fin.eof()) {
|
||||
|
||||
// Check for new defaults, and automatically bind them if possible
|
||||
std::map<char, action_id>::iterator d_it;
|
||||
bool found;
|
||||
for (d_it = default_keymap.begin(); d_it != default_keymap.end(); d_it++) {
|
||||
found = false;
|
||||
std::map<char, action_id>::iterator k_it;
|
||||
for (k_it = keymap.begin(); k_it != keymap.end(); k_it++) {
|
||||
if (d_it->second == k_it->second) {
|
||||
found = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (!found && !keymap.count(d_it->first)) {
|
||||
keymap[d_it->first] = d_it->second;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void parse_keymap(std::istream &keymap_txt, std::map<char, action_id> &kmap)
|
||||
{
|
||||
while (!keymap_txt.eof()) {
|
||||
std::string id;
|
||||
fin >> id;
|
||||
keymap_txt >> id;
|
||||
if (id == "")
|
||||
getline(fin, id); // Empty line, chomp it
|
||||
getline(keymap_txt, id); // Empty line, chomp it
|
||||
else if (id[0] != '#') {
|
||||
action_id act = look_up_action(id);
|
||||
if (act == ACTION_NULL)
|
||||
@@ -29,20 +64,25 @@ void game::load_keyboard_settings()
|
||||
Warning! data/keymap.txt contains an unknown action, \"%s\"\n\
|
||||
Fix data/keymap.txt at your next chance!", id.c_str());
|
||||
else {
|
||||
while (fin.peek() != '\n' && !fin.eof()) {
|
||||
char ch;
|
||||
fin >> ch;
|
||||
if (keymap.find(ch) != keymap.end())
|
||||
debugmsg("\
|
||||
while (!keymap_txt.eof()) {
|
||||
char ch;
|
||||
keymap_txt >> std::noskipws >> ch >> std::skipws;
|
||||
if (ch == '\n') {
|
||||
break;
|
||||
} else if (ch != ' ' || keymap_txt.peek() == '\n') {
|
||||
if (kmap.find(ch) != kmap.end()) {
|
||||
debugmsg("\
|
||||
Warning! '%c' assigned twice in the keymap!\n\
|
||||
%s is being ignored.\n\
|
||||
Fix data/keymap.txt at your next chance!", ch, id.c_str());
|
||||
else
|
||||
keymap[ ch ] = act;
|
||||
} else {
|
||||
kmap[ ch ] = act;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
} else {
|
||||
getline(fin, id); // Clear the whole line
|
||||
getline(keymap_txt, id); // Clear the whole line
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -88,319 +128,340 @@ void game::clear_bindings(action_id act)
|
||||
|
||||
std::string action_ident(action_id act)
|
||||
{
|
||||
switch (act) {
|
||||
case ACTION_PAUSE:
|
||||
return "pause";
|
||||
case ACTION_MOVE_N:
|
||||
return "move_n";
|
||||
case ACTION_MOVE_NE:
|
||||
return "move_ne";
|
||||
case ACTION_MOVE_E:
|
||||
return "move_e";
|
||||
case ACTION_MOVE_SE:
|
||||
return "move_se";
|
||||
case ACTION_MOVE_S:
|
||||
return "move_s";
|
||||
case ACTION_MOVE_SW:
|
||||
return "move_sw";
|
||||
case ACTION_MOVE_W:
|
||||
return "move_w";
|
||||
case ACTION_MOVE_NW:
|
||||
return "move_nw";
|
||||
case ACTION_MOVE_DOWN:
|
||||
return "move_down";
|
||||
case ACTION_MOVE_UP:
|
||||
return "move_up";
|
||||
case ACTION_CENTER:
|
||||
return "center";
|
||||
case ACTION_SHIFT_N:
|
||||
return "shift_n";
|
||||
case ACTION_SHIFT_NE:
|
||||
return "shift_ne";
|
||||
case ACTION_SHIFT_E:
|
||||
return "shift_e";
|
||||
case ACTION_SHIFT_SE:
|
||||
return "shift_se";
|
||||
case ACTION_SHIFT_S:
|
||||
return "shift_s";
|
||||
case ACTION_SHIFT_SW:
|
||||
return "shift_sw";
|
||||
case ACTION_SHIFT_W:
|
||||
return "shift_w";
|
||||
case ACTION_SHIFT_NW:
|
||||
return "shift_nw";
|
||||
case ACTION_OPEN:
|
||||
return "open";
|
||||
case ACTION_CLOSE:
|
||||
return "close";
|
||||
case ACTION_SMASH:
|
||||
return "smash";
|
||||
case ACTION_EXAMINE:
|
||||
return "examine";
|
||||
case ACTION_PICKUP:
|
||||
return "pickup";
|
||||
case ACTION_BUTCHER:
|
||||
return "butcher";
|
||||
case ACTION_CHAT:
|
||||
return "chat";
|
||||
case ACTION_LOOK:
|
||||
return "look";
|
||||
case ACTION_PEEK:
|
||||
return "peek";
|
||||
case ACTION_LIST_ITEMS:
|
||||
return "listitems";
|
||||
case ACTION_INVENTORY:
|
||||
return "inventory";
|
||||
case ACTION_COMPARE:
|
||||
return "compare";
|
||||
case ACTION_ORGANIZE:
|
||||
return "organize";
|
||||
case ACTION_USE:
|
||||
return "apply";
|
||||
case ACTION_USE_WIELDED:
|
||||
return "apply_wielded";
|
||||
case ACTION_WEAR:
|
||||
return "wear";
|
||||
case ACTION_TAKE_OFF:
|
||||
return "take_off";
|
||||
case ACTION_EAT:
|
||||
return "eat";
|
||||
case ACTION_READ:
|
||||
return "read";
|
||||
case ACTION_WIELD:
|
||||
return "wield";
|
||||
case ACTION_PICK_STYLE:
|
||||
return "pick_style";
|
||||
case ACTION_RELOAD:
|
||||
return "reload";
|
||||
case ACTION_UNLOAD:
|
||||
return "unload";
|
||||
case ACTION_THROW:
|
||||
return "throw";
|
||||
case ACTION_FIRE:
|
||||
return "fire";
|
||||
case ACTION_FIRE_BURST:
|
||||
return "fire_burst";
|
||||
case ACTION_SELECT_FIRE_MODE:
|
||||
return "select_fire_mode";
|
||||
case ACTION_DROP:
|
||||
return "drop";
|
||||
case ACTION_DIR_DROP:
|
||||
return "drop_adj";
|
||||
case ACTION_BIONICS:
|
||||
return "bionics";
|
||||
case ACTION_WAIT:
|
||||
return "wait";
|
||||
case ACTION_CRAFT:
|
||||
return "craft";
|
||||
case ACTION_RECRAFT:
|
||||
return "recraft";
|
||||
case ACTION_LONGCRAFT:
|
||||
return "long_craft";
|
||||
case ACTION_CONSTRUCT:
|
||||
return "construct";
|
||||
case ACTION_DISASSEMBLE:
|
||||
return "disassemble";
|
||||
case ACTION_SLEEP:
|
||||
return "sleep";
|
||||
case ACTION_TOGGLE_SAFEMODE:
|
||||
return "safemode";
|
||||
case ACTION_TOGGLE_AUTOSAFE:
|
||||
return "autosafe";
|
||||
case ACTION_IGNORE_ENEMY:
|
||||
return "ignore_enemy";
|
||||
case ACTION_SAVE:
|
||||
return "save";
|
||||
case ACTION_QUIT:
|
||||
return "quit";
|
||||
case ACTION_PL_INFO:
|
||||
return "player_data";
|
||||
case ACTION_MAP:
|
||||
return "map";
|
||||
case ACTION_MISSIONS:
|
||||
return "missions";
|
||||
case ACTION_FACTIONS:
|
||||
return "factions";
|
||||
case ACTION_KILLS:
|
||||
return "kills";
|
||||
case ACTION_MORALE:
|
||||
return "morale";
|
||||
case ACTION_MESSAGES:
|
||||
return "messages";
|
||||
case ACTION_HELP:
|
||||
return "help";
|
||||
case ACTION_DEBUG:
|
||||
return "debug";
|
||||
case ACTION_DISPLAY_SCENT:
|
||||
return "debug_scent";
|
||||
case ACTION_TOGGLE_DEBUGMON:
|
||||
return "debug_mode";
|
||||
case ACTION_NULL:
|
||||
return "null";
|
||||
}
|
||||
return "unknown";
|
||||
}
|
||||
switch (act) {
|
||||
case ACTION_PAUSE:
|
||||
return "pause";
|
||||
case ACTION_MOVE_N:
|
||||
return "move_n";
|
||||
case ACTION_MOVE_NE:
|
||||
return "move_ne";
|
||||
case ACTION_MOVE_E:
|
||||
return "move_e";
|
||||
case ACTION_MOVE_SE:
|
||||
return "move_se";
|
||||
case ACTION_MOVE_S:
|
||||
return "move_s";
|
||||
case ACTION_MOVE_SW:
|
||||
return "move_sw";
|
||||
case ACTION_MOVE_W:
|
||||
return "move_w";
|
||||
case ACTION_MOVE_NW:
|
||||
return "move_nw";
|
||||
case ACTION_MOVE_DOWN:
|
||||
return "move_down";
|
||||
case ACTION_MOVE_UP:
|
||||
return "move_up";
|
||||
case ACTION_CENTER:
|
||||
return "center";
|
||||
case ACTION_SHIFT_N:
|
||||
return "shift_n";
|
||||
case ACTION_SHIFT_NE:
|
||||
return "shift_ne";
|
||||
case ACTION_SHIFT_E:
|
||||
return "shift_e";
|
||||
case ACTION_SHIFT_SE:
|
||||
return "shift_se";
|
||||
case ACTION_SHIFT_S:
|
||||
return "shift_s";
|
||||
case ACTION_SHIFT_SW:
|
||||
return "shift_sw";
|
||||
case ACTION_SHIFT_W:
|
||||
return "shift_w";
|
||||
case ACTION_SHIFT_NW:
|
||||
return "shift_nw";
|
||||
case ACTION_OPEN:
|
||||
return "open";
|
||||
case ACTION_CLOSE:
|
||||
return "close";
|
||||
case ACTION_SMASH:
|
||||
return "smash";
|
||||
case ACTION_EXAMINE:
|
||||
return "examine";
|
||||
case ACTION_ADVANCEDINV:
|
||||
return "advinv";
|
||||
case ACTION_PICKUP:
|
||||
return "pickup";
|
||||
case ACTION_BUTCHER:
|
||||
return "butcher";
|
||||
case ACTION_CHAT:
|
||||
return "chat";
|
||||
case ACTION_LOOK:
|
||||
return "look";
|
||||
case ACTION_PEEK:
|
||||
return "peek";
|
||||
case ACTION_LIST_ITEMS:
|
||||
return "listitems";
|
||||
case ACTION_INVENTORY:
|
||||
return "inventory";
|
||||
case ACTION_COMPARE:
|
||||
return "compare";
|
||||
case ACTION_ORGANIZE:
|
||||
return "organize";
|
||||
case ACTION_USE:
|
||||
return "apply";
|
||||
case ACTION_USE_WIELDED:
|
||||
return "apply_wielded";
|
||||
case ACTION_WEAR:
|
||||
return "wear";
|
||||
case ACTION_TAKE_OFF:
|
||||
return "take_off";
|
||||
case ACTION_EAT:
|
||||
return "eat";
|
||||
case ACTION_READ:
|
||||
return "read";
|
||||
case ACTION_WIELD:
|
||||
return "wield";
|
||||
case ACTION_PICK_STYLE:
|
||||
return "pick_style";
|
||||
case ACTION_RELOAD:
|
||||
return "reload";
|
||||
case ACTION_UNLOAD:
|
||||
return "unload";
|
||||
case ACTION_THROW:
|
||||
return "throw";
|
||||
case ACTION_FIRE:
|
||||
return "fire";
|
||||
case ACTION_FIRE_BURST:
|
||||
return "fire_burst";
|
||||
case ACTION_SELECT_FIRE_MODE:
|
||||
return "select_fire_mode";
|
||||
case ACTION_DROP:
|
||||
return "drop";
|
||||
case ACTION_DIR_DROP:
|
||||
return "drop_adj";
|
||||
case ACTION_BIONICS:
|
||||
return "bionics";
|
||||
case ACTION_SORT_ARMOR:
|
||||
return "sort_armor";
|
||||
case ACTION_WAIT:
|
||||
return "wait";
|
||||
case ACTION_CRAFT:
|
||||
return "craft";
|
||||
case ACTION_RECRAFT:
|
||||
return "recraft";
|
||||
case ACTION_LONGCRAFT:
|
||||
return "long_craft";
|
||||
case ACTION_CONSTRUCT:
|
||||
return "construct";
|
||||
case ACTION_DISASSEMBLE:
|
||||
return "disassemble";
|
||||
case ACTION_SLEEP:
|
||||
return "sleep";
|
||||
case ACTION_CONTROL_VEHICLE:
|
||||
return "control_vehicle";
|
||||
case ACTION_TOGGLE_SAFEMODE:
|
||||
return "safemode";
|
||||
case ACTION_TOGGLE_AUTOSAFE:
|
||||
return "autosafe";
|
||||
case ACTION_IGNORE_ENEMY:
|
||||
return "ignore_enemy";
|
||||
case ACTION_SAVE:
|
||||
return "save";
|
||||
case ACTION_QUICKSAVE:
|
||||
return "quicksave";
|
||||
case ACTION_QUIT:
|
||||
return "quit";
|
||||
case ACTION_PL_INFO:
|
||||
return "player_data";
|
||||
case ACTION_MAP:
|
||||
return "map";
|
||||
case ACTION_MISSIONS:
|
||||
return "missions";
|
||||
case ACTION_FACTIONS:
|
||||
return "factions";
|
||||
case ACTION_KILLS:
|
||||
return "kills";
|
||||
case ACTION_MORALE:
|
||||
return "morale";
|
||||
case ACTION_MESSAGES:
|
||||
return "messages";
|
||||
case ACTION_HELP:
|
||||
return "help";
|
||||
case ACTION_DEBUG:
|
||||
return "debug";
|
||||
case ACTION_DISPLAY_SCENT:
|
||||
return "debug_scent";
|
||||
case ACTION_TOGGLE_DEBUGMON:
|
||||
return "debug_mode";
|
||||
case ACTION_NULL:
|
||||
return "null";
|
||||
}
|
||||
return "unknown";
|
||||
}
|
||||
|
||||
action_id look_up_action(std::string ident)
|
||||
{
|
||||
for (int i = 0; i < NUM_ACTIONS; i++) {
|
||||
if (action_ident( action_id(i) ) == ident)
|
||||
return action_id(i);
|
||||
}
|
||||
return ACTION_NULL;
|
||||
for (int i = 0; i < NUM_ACTIONS; i++)
|
||||
{
|
||||
if (action_ident( action_id(i) ) == ident)
|
||||
{
|
||||
return action_id(i);
|
||||
}
|
||||
}
|
||||
return ACTION_NULL;
|
||||
}
|
||||
|
||||
std::string action_name(action_id act)
|
||||
{
|
||||
switch (act) {
|
||||
case ACTION_PAUSE:
|
||||
return "Pause";
|
||||
case ACTION_MOVE_N:
|
||||
return "Move North";
|
||||
case ACTION_MOVE_NE:
|
||||
return "Move Northeast";
|
||||
case ACTION_MOVE_E:
|
||||
return "Move East";
|
||||
case ACTION_MOVE_SE:
|
||||
return "Move Southeast";
|
||||
case ACTION_MOVE_S:
|
||||
return "Move South";
|
||||
case ACTION_MOVE_SW:
|
||||
return "Move Southwest";
|
||||
case ACTION_MOVE_W:
|
||||
return "Move West";
|
||||
case ACTION_MOVE_NW:
|
||||
return "Move Northwest";
|
||||
case ACTION_MOVE_DOWN:
|
||||
return "Descend Stairs";
|
||||
case ACTION_MOVE_UP:
|
||||
return "Ascend Stairs";
|
||||
case ACTION_CENTER:
|
||||
return "Center View";
|
||||
case ACTION_SHIFT_N:
|
||||
return "Move View North";
|
||||
case ACTION_SHIFT_NE:
|
||||
return "Move View Northeast";
|
||||
case ACTION_SHIFT_E:
|
||||
return "Move View East";
|
||||
case ACTION_SHIFT_SE:
|
||||
return "Move View Southeast";
|
||||
case ACTION_SHIFT_S:
|
||||
return "Move View South";
|
||||
case ACTION_SHIFT_SW:
|
||||
return "Move View Southwest";
|
||||
case ACTION_SHIFT_W:
|
||||
return "Move View West";
|
||||
case ACTION_SHIFT_NW:
|
||||
return "Move View Northwest";
|
||||
case ACTION_OPEN:
|
||||
return "Open Door";
|
||||
case ACTION_CLOSE:
|
||||
return "Close Door";
|
||||
case ACTION_SMASH:
|
||||
return "Smash Nearby Terrain";
|
||||
case ACTION_EXAMINE:
|
||||
return "Examine Nearby Terrain";
|
||||
case ACTION_PICKUP:
|
||||
return "Pick Item(s) Up";
|
||||
case ACTION_BUTCHER:
|
||||
return "Butcher";
|
||||
case ACTION_CHAT:
|
||||
return "Chat with NPC";
|
||||
case ACTION_LOOK:
|
||||
return "Look Around";
|
||||
case ACTION_PEEK:
|
||||
return "Peek Around Corners";
|
||||
case ACTION_LIST_ITEMS:
|
||||
return "List all items around the player";
|
||||
case ACTION_INVENTORY:
|
||||
return "Open Inventory";
|
||||
case ACTION_COMPARE:
|
||||
return "Compare two Items";
|
||||
case ACTION_ORGANIZE:
|
||||
return "Swap Inventory Letters";
|
||||
case ACTION_USE:
|
||||
return "Apply or Use Item";
|
||||
case ACTION_USE_WIELDED:
|
||||
return "Apply or Use Wielded Item";
|
||||
case ACTION_WEAR:
|
||||
return "Wear Item";
|
||||
case ACTION_TAKE_OFF:
|
||||
return "Take Off Worn Item";
|
||||
case ACTION_EAT:
|
||||
return "Eat";
|
||||
case ACTION_READ:
|
||||
return "Read";
|
||||
case ACTION_WIELD:
|
||||
return "Wield";
|
||||
case ACTION_PICK_STYLE:
|
||||
return "Select Unarmed Style";
|
||||
case ACTION_RELOAD:
|
||||
return "Reload Wielded Item";
|
||||
case ACTION_UNLOAD:
|
||||
return "Unload or Empty Wielded Item";
|
||||
case ACTION_THROW:
|
||||
return "Throw Item";
|
||||
case ACTION_FIRE:
|
||||
return "Fire Wielded Item";
|
||||
case ACTION_FIRE_BURST:
|
||||
return "Burst-Fire Wielded Item";
|
||||
case ACTION_SELECT_FIRE_MODE:
|
||||
return "Toggle attack mode of Wielded Item";
|
||||
case ACTION_DROP:
|
||||
return "Drop Item";
|
||||
case ACTION_DIR_DROP:
|
||||
return "Drop Item to Adjacent Tile";
|
||||
case ACTION_BIONICS:
|
||||
return "View/Activate Bionics";
|
||||
case ACTION_WAIT:
|
||||
return "Wait for Several Minutes";
|
||||
case ACTION_CRAFT:
|
||||
return "Craft Items";
|
||||
case ACTION_RECRAFT:
|
||||
return "Recraft last recipe";
|
||||
case ACTION_LONGCRAFT:
|
||||
return "Craft as long as possible";
|
||||
case ACTION_CONSTRUCT:
|
||||
return "Construct Terrain";
|
||||
case ACTION_DISASSEMBLE:
|
||||
return "Disassemble items";
|
||||
case ACTION_SLEEP:
|
||||
return "Sleep";
|
||||
case ACTION_TOGGLE_SAFEMODE:
|
||||
return "Toggle Safemode";
|
||||
case ACTION_TOGGLE_AUTOSAFE:
|
||||
return "Toggle Auto-Safemode";
|
||||
case ACTION_IGNORE_ENEMY:
|
||||
return "Ignore Nearby Enemy";
|
||||
case ACTION_SAVE:
|
||||
return "Save and Quit";
|
||||
case ACTION_QUIT:
|
||||
return "Commit Suicide";
|
||||
case ACTION_PL_INFO:
|
||||
return "View Player Info";
|
||||
case ACTION_MAP:
|
||||
return "View Map";
|
||||
case ACTION_MISSIONS:
|
||||
return "View Missions";
|
||||
case ACTION_FACTIONS:
|
||||
return "View Factions";
|
||||
case ACTION_KILLS:
|
||||
return "View Kills";
|
||||
case ACTION_MORALE:
|
||||
return "View Morale";
|
||||
case ACTION_MESSAGES:
|
||||
return "View Message Log";
|
||||
case ACTION_HELP:
|
||||
return "View Help";
|
||||
case ACTION_DEBUG:
|
||||
return "Debug Menu";
|
||||
case ACTION_DISPLAY_SCENT:
|
||||
return "View Scentmap";
|
||||
case ACTION_TOGGLE_DEBUGMON:
|
||||
return "Toggle Debug Messages";
|
||||
case ACTION_NULL:
|
||||
return "No Action";
|
||||
}
|
||||
return "Someone forgot to name an action.";
|
||||
switch (act)
|
||||
{
|
||||
case ACTION_PAUSE:
|
||||
return "Pause";
|
||||
case ACTION_MOVE_N:
|
||||
return "Move North";
|
||||
case ACTION_MOVE_NE:
|
||||
return "Move Northeast";
|
||||
case ACTION_MOVE_E:
|
||||
return "Move East";
|
||||
case ACTION_MOVE_SE:
|
||||
return "Move Southeast";
|
||||
case ACTION_MOVE_S:
|
||||
return "Move South";
|
||||
case ACTION_MOVE_SW:
|
||||
return "Move Southwest";
|
||||
case ACTION_MOVE_W:
|
||||
return "Move West";
|
||||
case ACTION_MOVE_NW:
|
||||
return "Move Northwest";
|
||||
case ACTION_MOVE_DOWN:
|
||||
return "Descend Stairs";
|
||||
case ACTION_MOVE_UP:
|
||||
return "Ascend Stairs";
|
||||
case ACTION_CENTER:
|
||||
return "Center View";
|
||||
case ACTION_SHIFT_N:
|
||||
return "Move View North";
|
||||
case ACTION_SHIFT_NE:
|
||||
return "Move View Northeast";
|
||||
case ACTION_SHIFT_E:
|
||||
return "Move View East";
|
||||
case ACTION_SHIFT_SE:
|
||||
return "Move View Southeast";
|
||||
case ACTION_SHIFT_S:
|
||||
return "Move View South";
|
||||
case ACTION_SHIFT_SW:
|
||||
return "Move View Southwest";
|
||||
case ACTION_SHIFT_W:
|
||||
return "Move View West";
|
||||
case ACTION_SHIFT_NW:
|
||||
return "Move View Northwest";
|
||||
case ACTION_OPEN:
|
||||
return "Open Door";
|
||||
case ACTION_CLOSE:
|
||||
return "Close Door";
|
||||
case ACTION_SMASH:
|
||||
return "Smash Nearby Terrain";
|
||||
case ACTION_EXAMINE:
|
||||
return "Examine Nearby Terrain";
|
||||
case ACTION_PICKUP:
|
||||
return "Pick Item(s) Up";
|
||||
case ACTION_BUTCHER:
|
||||
return "Butcher";
|
||||
case ACTION_CHAT:
|
||||
return "Chat with NPC";
|
||||
case ACTION_LOOK:
|
||||
return "Look Around";
|
||||
case ACTION_PEEK:
|
||||
return "Peek Around Corners";
|
||||
case ACTION_LIST_ITEMS:
|
||||
return "List all items around the player";
|
||||
case ACTION_INVENTORY:
|
||||
return "Open Inventory";
|
||||
case ACTION_ADVANCEDINV:
|
||||
return "Advanced Inventory management";
|
||||
case ACTION_COMPARE:
|
||||
return "Compare two Items";
|
||||
case ACTION_ORGANIZE:
|
||||
return "Swap Inventory Letters";
|
||||
case ACTION_USE:
|
||||
return "Apply or Use Item";
|
||||
case ACTION_USE_WIELDED:
|
||||
return "Apply or Use Wielded Item";
|
||||
case ACTION_WEAR:
|
||||
return "Wear Item";
|
||||
case ACTION_TAKE_OFF:
|
||||
return "Take Off Worn Item";
|
||||
case ACTION_EAT:
|
||||
return "Eat";
|
||||
case ACTION_READ:
|
||||
return "Read";
|
||||
case ACTION_WIELD:
|
||||
return "Wield";
|
||||
case ACTION_PICK_STYLE:
|
||||
return "Select Unarmed Style";
|
||||
case ACTION_RELOAD:
|
||||
return "Reload Wielded Item";
|
||||
case ACTION_UNLOAD:
|
||||
return "Unload or Empty Wielded Item";
|
||||
case ACTION_THROW:
|
||||
return "Throw Item";
|
||||
case ACTION_FIRE:
|
||||
return "Fire Wielded Item";
|
||||
case ACTION_FIRE_BURST:
|
||||
return "Burst-Fire Wielded Item";
|
||||
case ACTION_SELECT_FIRE_MODE:
|
||||
return "Toggle attack mode of Wielded Item";
|
||||
case ACTION_DROP:
|
||||
return "Drop Item";
|
||||
case ACTION_DIR_DROP:
|
||||
return "Drop Item to Adjacent Tile";
|
||||
case ACTION_BIONICS:
|
||||
return "View/Activate Bionics";
|
||||
case ACTION_SORT_ARMOR:
|
||||
return "Re-layer armour/clothing";
|
||||
case ACTION_WAIT:
|
||||
return "Wait for Several Minutes";
|
||||
case ACTION_CRAFT:
|
||||
return "Craft Items";
|
||||
case ACTION_RECRAFT:
|
||||
return "Recraft last recipe";
|
||||
case ACTION_LONGCRAFT:
|
||||
return "Craft as long as possible";
|
||||
case ACTION_CONSTRUCT:
|
||||
return "Construct Terrain";
|
||||
case ACTION_DISASSEMBLE:
|
||||
return "Disassemble items";
|
||||
case ACTION_SLEEP:
|
||||
return "Sleep";
|
||||
case ACTION_CONTROL_VEHICLE:
|
||||
return "Control Vehicle";
|
||||
case ACTION_TOGGLE_SAFEMODE:
|
||||
return "Toggle Safemode";
|
||||
case ACTION_TOGGLE_AUTOSAFE:
|
||||
return "Toggle Auto-Safemode";
|
||||
case ACTION_IGNORE_ENEMY:
|
||||
return "Ignore Nearby Enemy";
|
||||
case ACTION_SAVE:
|
||||
return "Save and Quit";
|
||||
case ACTION_QUICKSAVE:
|
||||
return "Quicksave";
|
||||
case ACTION_QUIT:
|
||||
return "Commit Suicide";
|
||||
case ACTION_PL_INFO:
|
||||
return "View Player Info";
|
||||
case ACTION_MAP:
|
||||
return "View Map";
|
||||
case ACTION_MISSIONS:
|
||||
return "View Missions";
|
||||
case ACTION_FACTIONS:
|
||||
return "View Factions";
|
||||
case ACTION_KILLS:
|
||||
return "View Kills";
|
||||
case ACTION_MORALE:
|
||||
return "View Morale";
|
||||
case ACTION_MESSAGES:
|
||||
return "View Message Log";
|
||||
case ACTION_HELP:
|
||||
return "View Help";
|
||||
case ACTION_DEBUG:
|
||||
return "Debug Menu";
|
||||
case ACTION_DISPLAY_SCENT:
|
||||
return "View Scentmap";
|
||||
case ACTION_TOGGLE_DEBUGMON:
|
||||
return "Toggle Debug Messages";
|
||||
case ACTION_NULL:
|
||||
return "No Action";
|
||||
}
|
||||
return "Someone forgot to name an action.";
|
||||
}
|
||||
|
||||
|
||||
@@ -38,6 +38,7 @@ ACTION_PEEK,
|
||||
ACTION_LIST_ITEMS,
|
||||
// Inventory Interaction (including quasi-inventories like bionics)
|
||||
ACTION_INVENTORY,
|
||||
ACTION_ADVANCEDINV,
|
||||
ACTION_COMPARE,
|
||||
ACTION_ORGANIZE,
|
||||
ACTION_USE,
|
||||
@@ -57,6 +58,7 @@ ACTION_SELECT_FIRE_MODE,
|
||||
ACTION_DROP,
|
||||
ACTION_DIR_DROP,
|
||||
ACTION_BIONICS,
|
||||
ACTION_SORT_ARMOR,
|
||||
// Long-term / special actions
|
||||
ACTION_WAIT,
|
||||
ACTION_CRAFT,
|
||||
@@ -65,10 +67,12 @@ ACTION_LONGCRAFT,
|
||||
ACTION_CONSTRUCT,
|
||||
ACTION_DISASSEMBLE,
|
||||
ACTION_SLEEP,
|
||||
ACTION_CONTROL_VEHICLE,
|
||||
ACTION_TOGGLE_SAFEMODE,
|
||||
ACTION_TOGGLE_AUTOSAFE,
|
||||
ACTION_IGNORE_ENEMY,
|
||||
ACTION_SAVE,
|
||||
ACTION_QUICKSAVE,
|
||||
ACTION_QUIT,
|
||||
// Info Screens
|
||||
ACTION_PL_INFO,
|
||||
|
||||
+241
@@ -0,0 +1,241 @@
|
||||
#include "addiction.h"
|
||||
|
||||
void addict_effect(game *g, addiction &add)
|
||||
{
|
||||
int in = add.intensity;
|
||||
|
||||
switch (add.type) {
|
||||
case ADD_CIG:
|
||||
if (in > 20 || one_in((500 - 20 * in))) {
|
||||
g->add_msg("You %s a cigarette.",
|
||||
rng(0, 6) < in ? "need" : "could use");
|
||||
g->cancel_activity_query("You have a nicotine craving.");
|
||||
g->u.add_morale(MORALE_CRAVING_NICOTINE, -15, -50);
|
||||
if (one_in(800 - 50 * in))
|
||||
g->u.fatigue++;
|
||||
if (one_in(400 - 20 * in))
|
||||
g->u.stim--;
|
||||
}
|
||||
break;
|
||||
|
||||
case ADD_CAFFEINE:
|
||||
g->u.moves -= 2;
|
||||
if (in > 20 || one_in((500 - 20 * in))) {
|
||||
g->add_msg("You want some caffeine.");
|
||||
g->cancel_activity_query("You have a caffeine craving.");
|
||||
g->u.add_morale(MORALE_CRAVING_CAFFEINE, -5, -30);
|
||||
if (rng(0, 10) < in)
|
||||
g->u.stim--;
|
||||
if (rng(8, 400) < in) {
|
||||
g->add_msg("Your hands start shaking... you need it bad!");
|
||||
g->u.add_disease("shakes", 20);
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
||||
case ADD_ALCOHOL:
|
||||
g->u.per_cur--;
|
||||
g->u.int_cur--;
|
||||
if (rng(40, 1200) <= in * 10)
|
||||
g->u.health--;
|
||||
if (one_in(20) && rng(0, 20) < in) {
|
||||
g->add_msg("You could use a drink.");
|
||||
g->cancel_activity_query("You have an alcohol craving.");
|
||||
g->u.add_morale(MORALE_CRAVING_ALCOHOL, -35, -120);
|
||||
} else if (rng(8, 300) < in) {
|
||||
g->add_msg("Your hands start shaking... you need a drink bad!");
|
||||
g->cancel_activity_query("You have an alcohol craving.");
|
||||
g->u.add_morale(MORALE_CRAVING_ALCOHOL, -35, -120);
|
||||
g->u.add_disease("shakes", 50);
|
||||
} else if (!g->u.has_disease("hallu") && rng(10, 1600) < in)
|
||||
g->u.add_disease("hallu", 3600);
|
||||
break;
|
||||
|
||||
case ADD_SLEEP:
|
||||
// No effects here--just in player::can_sleep()
|
||||
// EXCEPT! Prolong this addiction longer than usual.
|
||||
if (one_in(2) && add.sated < 0)
|
||||
add.sated++;
|
||||
break;
|
||||
|
||||
case ADD_PKILLER:
|
||||
if ((in >= 25 || int(g->turn) % (100 - in * 4) == 0) && g->u.pkill > 0)
|
||||
g->u.pkill--; // Tolerance increases!
|
||||
if (g->u.pkill >= 35) // No further effects if we're doped up.
|
||||
add.sated = 0;
|
||||
else {
|
||||
g->u.str_cur -= 1 + int(in / 7);
|
||||
g->u.per_cur--;
|
||||
g->u.dex_cur--;
|
||||
if (g->u.pain < in * 3)
|
||||
g->u.pain++;
|
||||
if (in >= 40 || one_in((1200 - 30 * in)))
|
||||
g->u.health--;
|
||||
if (one_in(20) && dice(2, 20) < in) {
|
||||
g->add_msg("Your hands start shaking... you need some painkillers.");
|
||||
g->cancel_activity_query("You have an opiate craving.");
|
||||
g->u.add_morale(MORALE_CRAVING_OPIATE, -40, -200);
|
||||
g->u.add_disease("shakes", 20 + in * 5);
|
||||
} else if (one_in(20) && dice(2, 30) < in) {
|
||||
g->add_msg("You feel anxious. You need your painkillers!");
|
||||
g->u.add_morale(MORALE_CRAVING_OPIATE, -30, -200);
|
||||
g->cancel_activity_query("You have a craving.");
|
||||
} else if (one_in(50) && dice(3, 50) < in) {
|
||||
g->add_msg("You throw up heavily!");
|
||||
g->cancel_activity_query("Throwing up.");
|
||||
g->u.vomit(g);
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
||||
case ADD_SPEED: {
|
||||
int move_pen = in * 5;
|
||||
if (move_pen > 30)
|
||||
move_pen = 30;
|
||||
g->u.moves -= move_pen;
|
||||
g->u.int_cur--;
|
||||
g->u.str_cur--;
|
||||
if (g->u.stim > -100 && (in >= 20 || int(g->turn) % (100 - in * 5) == 0))
|
||||
g->u.stim--;
|
||||
if (rng(0, 150) <= in)
|
||||
g->u.health--;
|
||||
if (dice(2, 100) < in) {
|
||||
g->add_msg("You feel depressed. Speed would help.");
|
||||
g->cancel_activity_query("You have a speed craving.");
|
||||
g->u.add_morale(MORALE_CRAVING_SPEED, -25, -200);
|
||||
} else if (one_in(10) && dice(2, 80) < in) {
|
||||
g->add_msg("Your hands start shaking... you need a pick-me-up.");
|
||||
g->cancel_activity_query("You have a speed craving.");
|
||||
g->u.add_morale(MORALE_CRAVING_SPEED, -25, -200);
|
||||
g->u.add_disease("shakes", in * 20);
|
||||
} else if (one_in(50) && dice(2, 100) < in) {
|
||||
g->add_msg("You stop suddenly, feeling bewildered.");
|
||||
g->cancel_activity();
|
||||
g->u.moves -= 300;
|
||||
} else if (!g->u.has_disease("hallu") && one_in(20) &&
|
||||
8 + dice(2, 80) < in)
|
||||
g->u.add_disease("hallu", 3600);
|
||||
} break;
|
||||
|
||||
case ADD_COKE:
|
||||
g->u.int_cur--;
|
||||
g->u.per_cur--;
|
||||
if (in >= 30 || one_in((900 - 30 * in))) {
|
||||
g->add_msg("You feel like you need a bump.");
|
||||
g->cancel_activity_query("You have a craving for cocaine.");
|
||||
g->u.add_morale(MORALE_CRAVING_COCAINE, -20, -250);
|
||||
}
|
||||
if (dice(2, 80) <= in) {
|
||||
g->add_msg("You feel like you need a bump.");
|
||||
g->cancel_activity_query("You have a craving for cocaine.");
|
||||
g->u.add_morale(MORALE_CRAVING_COCAINE, -20, -250);
|
||||
g->u.stim -= 3;
|
||||
}
|
||||
break;
|
||||
case ADD_CRACK:
|
||||
g->u.int_cur--;
|
||||
g->u.per_cur--;
|
||||
if (in >= 30 || one_in((900 - 30 * in))) {
|
||||
g->add_msg("You're shivering, you need some crack.");
|
||||
g->cancel_activity_query("You have a craving for crack.");
|
||||
g->u.add_morale(MORALE_CRAVING_CRACK, -80, -250);
|
||||
}
|
||||
if (dice(2, 80) <= in) {
|
||||
g->add_msg("You're shivering, you need some crack.");
|
||||
g->cancel_activity_query("You have a craving for crack.");
|
||||
g->u.add_morale(MORALE_CRAVING_CRACK, -80, -250);
|
||||
g->u.stim -= 3;
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
std::string addiction_name(addiction cur)
|
||||
{
|
||||
switch (cur.type) {
|
||||
case ADD_CIG: return "Nicotine Withdrawal";
|
||||
case ADD_CAFFEINE: return "Caffeine Withdrawal";
|
||||
case ADD_ALCOHOL: return "Alcohol Withdrawal";
|
||||
case ADD_SLEEP: return "Sleeping Pill Dependance";
|
||||
case ADD_PKILLER: return "Opiate Withdrawal";
|
||||
case ADD_SPEED: return "Amphetamine Withdrawal";
|
||||
case ADD_COKE: return "Cocaine Withdrawal";
|
||||
case ADD_CRACK: return "Crack Cocaine Withdrawal";
|
||||
default: return "Erroneous addiction";
|
||||
}
|
||||
}
|
||||
|
||||
morale_type addiction_craving(add_type cur)
|
||||
{
|
||||
switch (cur) {
|
||||
case ADD_CIG: return MORALE_CRAVING_NICOTINE;
|
||||
case ADD_CAFFEINE: return MORALE_CRAVING_CAFFEINE;
|
||||
case ADD_ALCOHOL: return MORALE_CRAVING_ALCOHOL;
|
||||
case ADD_PKILLER: return MORALE_CRAVING_OPIATE;
|
||||
case ADD_SPEED: return MORALE_CRAVING_SPEED;
|
||||
case ADD_COKE: return MORALE_CRAVING_COCAINE;
|
||||
case ADD_CRACK: return MORALE_CRAVING_CRACK;
|
||||
default: return MORALE_NULL;
|
||||
}
|
||||
}
|
||||
|
||||
add_type addiction_type(std::string name)
|
||||
{
|
||||
if (name == "nicotine")
|
||||
return ADD_CIG;
|
||||
else if (name == "caffeine")
|
||||
return ADD_CAFFEINE;
|
||||
else if (name == "alcohol")
|
||||
return ADD_ALCOHOL;
|
||||
else if (name == "sleeping pill")
|
||||
return ADD_SLEEP;
|
||||
else if (name == "opiate")
|
||||
return ADD_PKILLER;
|
||||
else if (name == "amphetamine")
|
||||
return ADD_SPEED;
|
||||
else if (name == "cocaine")
|
||||
return ADD_COKE;
|
||||
else if (name == "crack")
|
||||
return ADD_CRACK;
|
||||
else
|
||||
return ADD_NULL;
|
||||
}
|
||||
|
||||
std::string addiction_text(addiction cur)
|
||||
{
|
||||
std::stringstream dump;
|
||||
int strpen = 1 + int(cur.intensity / 7);
|
||||
switch (cur.type) {
|
||||
case ADD_CIG:
|
||||
return "Intelligence - 1; Occasional cravings";
|
||||
|
||||
case ADD_CAFFEINE:
|
||||
return "Strength - 1; Slight sluggishness; Occasional cravings";
|
||||
|
||||
case ADD_ALCOHOL:
|
||||
return "\
|
||||
Perception - 1; Intelligence - 1; Occasional Cravings;\n\
|
||||
Risk of delirium tremens";
|
||||
|
||||
case ADD_SLEEP:
|
||||
return "You may find it difficult to sleep without medication.";
|
||||
|
||||
case ADD_PKILLER:
|
||||
dump << "Strength -" << strpen << "; Perception - 1; Dexterity - 1;" <<
|
||||
std::endl <<
|
||||
"Depression and physical pain to some degree. Frequent cravings. Vomiting.";
|
||||
return dump.str();
|
||||
|
||||
case ADD_SPEED:
|
||||
return "Strength - 1; Intelligence - 1;\n\
|
||||
Movement rate reduction. Depression. Weak immune system. Frequent cravings.";
|
||||
|
||||
case ADD_COKE:
|
||||
return "Perception - 1; Intelligence - 1; Frequent cravings.";
|
||||
|
||||
case ADD_CRACK:
|
||||
return "Perception - 2; Intelligence - 2; Frequent cravings.";
|
||||
default:
|
||||
return "";
|
||||
}
|
||||
}
|
||||
+5
-199
@@ -8,208 +8,14 @@
|
||||
|
||||
#define MIN_ADDICTION_LEVEL 3 // Minimum intensity before effects are seen
|
||||
|
||||
void addict_effect(game *g, addiction &add)
|
||||
{
|
||||
int in = add.intensity;
|
||||
void addict_effect(game *g, addiction &add);
|
||||
|
||||
switch (add.type) {
|
||||
case ADD_CIG:
|
||||
if (in > 20 || one_in((500 - 20 * in))) {
|
||||
g->add_msg("You %s a cigarette.",
|
||||
rng(0, 6) < in ? "need" : "could use");
|
||||
g->cancel_activity_query("You have a nicotine craving.");
|
||||
g->u.add_morale(MORALE_CRAVING_NICOTINE, -15, -50);
|
||||
if (one_in(800 - 50 * in))
|
||||
g->u.fatigue++;
|
||||
if (one_in(400 - 20 * in))
|
||||
g->u.stim--;
|
||||
}
|
||||
break;
|
||||
std::string addiction_name(addiction cur);
|
||||
|
||||
case ADD_CAFFEINE:
|
||||
g->u.moves -= 2;
|
||||
if (in > 20 || one_in((500 - 20 * in))) {
|
||||
g->add_msg("You want some caffeine.");
|
||||
g->cancel_activity_query("You have a caffeine craving.");
|
||||
g->u.add_morale(MORALE_CRAVING_CAFFEINE, -5, -30);
|
||||
if (rng(0, 10) < in)
|
||||
g->u.stim--;
|
||||
if (rng(8, 400) < in) {
|
||||
g->add_msg("Your hands start shaking... you need it bad!");
|
||||
g->u.add_disease(DI_SHAKES, 20, g);
|
||||
}
|
||||
}
|
||||
break;
|
||||
morale_type addiction_craving(add_type cur);
|
||||
|
||||
case ADD_ALCOHOL:
|
||||
g->u.per_cur--;
|
||||
g->u.int_cur--;
|
||||
if (rng(40, 1200) <= in * 10)
|
||||
g->u.health--;
|
||||
if (one_in(20) && rng(0, 20) < in) {
|
||||
g->add_msg("You could use a drink.");
|
||||
g->cancel_activity_query("You have an alcohol craving.");
|
||||
g->u.add_morale(MORALE_CRAVING_ALCOHOL, -35, -120);
|
||||
} else if (rng(8, 300) < in) {
|
||||
g->add_msg("Your hands start shaking... you need a drink bad!");
|
||||
g->cancel_activity_query("You have an alcohol craving.");
|
||||
g->u.add_morale(MORALE_CRAVING_ALCOHOL, -35, -120);
|
||||
g->u.add_disease(DI_SHAKES, 50, g);
|
||||
} else if (!g->u.has_disease(DI_HALLU) && rng(10, 1600) < in)
|
||||
g->u.add_disease(DI_HALLU, 3600, g);
|
||||
break;
|
||||
add_type addiction_type(std::string name);
|
||||
|
||||
case ADD_SLEEP:
|
||||
// No effects here--just in player::can_sleep()
|
||||
// EXCEPT! Prolong this addiction longer than usual.
|
||||
if (one_in(2) && add.sated < 0)
|
||||
add.sated++;
|
||||
break;
|
||||
|
||||
case ADD_PKILLER:
|
||||
if ((in >= 25 || int(g->turn) % (100 - in * 4) == 0) && g->u.pkill > 0)
|
||||
g->u.pkill--; // Tolerance increases!
|
||||
if (g->u.pkill >= 35) // No further effects if we're doped up.
|
||||
add.sated = 0;
|
||||
else {
|
||||
g->u.str_cur -= 1 + int(in / 7);
|
||||
g->u.per_cur--;
|
||||
g->u.dex_cur--;
|
||||
if (g->u.pain < in * 3)
|
||||
g->u.pain++;
|
||||
if (in >= 40 || one_in((1200 - 30 * in)))
|
||||
g->u.health--;
|
||||
if (one_in(20) && dice(2, 20) < in) {
|
||||
g->add_msg("Your hands start shaking... you need some painkillers.");
|
||||
g->cancel_activity_query("You have an opiate craving.");
|
||||
g->u.add_morale(MORALE_CRAVING_OPIATE, -40, -200);
|
||||
g->u.add_disease(DI_SHAKES, 20 + in * 5, g);
|
||||
} else if (one_in(20) && dice(2, 30) < in) {
|
||||
g->add_msg("You feel anxious. You need your painkillers!");
|
||||
g->u.add_morale(MORALE_CRAVING_OPIATE, -30, -200);
|
||||
g->cancel_activity_query("You have a craving.");
|
||||
} else if (one_in(50) && dice(3, 50) < in) {
|
||||
g->add_msg("You throw up heavily!");
|
||||
g->cancel_activity_query("Throwing up.");
|
||||
g->u.vomit(g);
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
||||
case ADD_SPEED: {
|
||||
int move_pen = in * 5;
|
||||
if (move_pen > 30)
|
||||
move_pen = 30;
|
||||
g->u.moves -= move_pen;
|
||||
g->u.int_cur--;
|
||||
g->u.str_cur--;
|
||||
if (g->u.stim > -100 && (in >= 20 || int(g->turn) % (100 - in * 5) == 0))
|
||||
g->u.stim--;
|
||||
if (rng(0, 150) <= in)
|
||||
g->u.health--;
|
||||
if (dice(2, 100) < in) {
|
||||
g->add_msg("You feel depressed. Speed would help.");
|
||||
g->cancel_activity_query("You have a speed craving.");
|
||||
g->u.add_morale(MORALE_CRAVING_SPEED, -25, -200);
|
||||
} else if (one_in(10) && dice(2, 80) < in) {
|
||||
g->add_msg("Your hands start shaking... you need a pick-me-up.");
|
||||
g->cancel_activity_query("You have a speed craving.");
|
||||
g->u.add_morale(MORALE_CRAVING_SPEED, -25, -200);
|
||||
g->u.add_disease(DI_SHAKES, in * 20, g);
|
||||
} else if (one_in(50) && dice(2, 100) < in) {
|
||||
g->add_msg("You stop suddenly, feeling bewildered.");
|
||||
g->cancel_activity();
|
||||
g->u.moves -= 300;
|
||||
} else if (!g->u.has_disease(DI_HALLU) && one_in(20) &&
|
||||
8 + dice(2, 80) < in)
|
||||
g->u.add_disease(DI_HALLU, 3600, g);
|
||||
} break;
|
||||
|
||||
case ADD_COKE:
|
||||
g->u.int_cur--;
|
||||
g->u.per_cur--;
|
||||
if (in >= 30 || one_in((900 - 30 * in))) {
|
||||
g->add_msg("You feel like you need a bump.");
|
||||
g->cancel_activity_query("You have a craving for cocaine.");
|
||||
g->u.add_morale(MORALE_CRAVING_COCAINE, -20, -250);
|
||||
}
|
||||
if (dice(2, 80) <= in) {
|
||||
g->add_msg("You feel like you need a bump.");
|
||||
g->cancel_activity_query("You have a craving for cocaine.");
|
||||
g->u.add_morale(MORALE_CRAVING_COCAINE, -20, -250);
|
||||
g->u.stim -= 3;
|
||||
}
|
||||
break;
|
||||
case ADD_CRACK:
|
||||
g->u.int_cur--;
|
||||
g->u.per_cur--;
|
||||
if (in >= 30 || one_in((900 - 30 * in))) {
|
||||
g->add_msg("You're shivering, you need some crack.");
|
||||
g->cancel_activity_query("You have a craving for crack.");
|
||||
g->u.add_morale(MORALE_CRAVING_CRACK, -80, -250);
|
||||
}
|
||||
if (dice(2, 80) <= in) {
|
||||
g->add_msg("You're shivering, you need some crack.");
|
||||
g->cancel_activity_query("You have a craving for crack.");
|
||||
g->u.add_morale(MORALE_CRAVING_CRACK, -80, -250);
|
||||
g->u.stim -= 3;
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
std::string addiction_name(addiction cur)
|
||||
{
|
||||
switch (cur.type) {
|
||||
case ADD_CIG: return "Nicotine Withdrawal";
|
||||
case ADD_CAFFEINE: return "Caffeine Withdrawal";
|
||||
case ADD_ALCOHOL: return "Alcohol Withdrawal";
|
||||
case ADD_SLEEP: return "Sleeping Pill Dependance";
|
||||
case ADD_PKILLER: return "Opiate Withdrawal";
|
||||
case ADD_SPEED: return "Amphetamine Withdrawal";
|
||||
case ADD_COKE: return "Cocaine Withdrawal";
|
||||
case ADD_CRACK: return "Crack Cocaine Withdrawal";
|
||||
default: return "Erroneous addiction";
|
||||
}
|
||||
}
|
||||
|
||||
std::string addiction_text(addiction cur)
|
||||
{
|
||||
std::stringstream dump;
|
||||
int strpen = 1 + int(cur.intensity / 7);
|
||||
switch (cur.type) {
|
||||
case ADD_CIG:
|
||||
return "Intelligence - 1; Occasional cravings";
|
||||
|
||||
case ADD_CAFFEINE:
|
||||
return "Strength - 1; Slight sluggishness; Occasional cravings";
|
||||
|
||||
case ADD_ALCOHOL:
|
||||
return "\
|
||||
Perception - 1; Intelligence - 1; Occasional Cravings;\n\
|
||||
Risk of delirium tremens";
|
||||
|
||||
case ADD_SLEEP:
|
||||
return "You may find it difficult to sleep without medication.";
|
||||
|
||||
case ADD_PKILLER:
|
||||
dump << "Strength -" << strpen << "; Perception - 1; Dexterity - 1;" <<
|
||||
std::endl <<
|
||||
"Depression and physical pain to some degree. Frequent cravings. Vomiting.";
|
||||
return dump.str();
|
||||
|
||||
case ADD_SPEED:
|
||||
return "Strength - 1; Intelligence - 1;\n\
|
||||
Movement rate reduction. Depression. Weak immune system. Frequent cravings.";
|
||||
|
||||
case ADD_COKE:
|
||||
return "Perception - 1; Intelligence - 1; Frequent cravings.";
|
||||
|
||||
case ADD_CRACK:
|
||||
return "Perception - 2; Intelligence - 2; Frequent cravings.";
|
||||
default:
|
||||
return "";
|
||||
}
|
||||
}
|
||||
std::string addiction_text(addiction cur);
|
||||
|
||||
#endif
|
||||
|
||||
+383
-28
@@ -9,6 +9,347 @@ std::vector<art_effect_passive> fill_bad_passive();
|
||||
std::vector<art_effect_active> fill_good_active();
|
||||
std::vector<art_effect_active> fill_bad_active();
|
||||
|
||||
int passive_effect_cost[NUM_AEPS] = {
|
||||
0, // AEP_NULL
|
||||
|
||||
3, // AEP_STR_UP
|
||||
3, // AEP_DEX_UP
|
||||
3, // AEP_PER_UP
|
||||
3, // AEP_INT_UP
|
||||
5, // AEP_ALL_UP
|
||||
4, // AEP_SPEED_UP
|
||||
2, // AEP_IODINE
|
||||
4, // AEP_SNAKES
|
||||
7, // AEP_INVISIBLE
|
||||
5, // AEP_CLAIRVOYANCE
|
||||
50, // AEP_SUPER_CLAIRVOYANCE
|
||||
2, // AEP_STEALTH
|
||||
2, // AEP_EXTINGUISH
|
||||
1, // AEP_GLOW
|
||||
1, // AEP_PSYSHIELD
|
||||
3, // AEP_RESIST_ELECTRICITY
|
||||
3, // AEP_CARRY_MORE
|
||||
5, // AEP_SAP_LIFE
|
||||
|
||||
0, // AEP_SPLIT
|
||||
|
||||
-2, // AEP_HUNGER
|
||||
-2, // AEP_THIRST
|
||||
-1, // AEP_SMOKE
|
||||
-5, // AEP_EVIL
|
||||
-3, // AEP_SCHIZO
|
||||
-5, // AEP_RADIOACTIVE
|
||||
-3, // AEP_MUTAGENIC
|
||||
-5, // AEP_ATTENTION
|
||||
-2, // AEP_STR_DOWN
|
||||
-2, // AEP_DEX_DOWN
|
||||
-2, // AEP_PER_DOWN
|
||||
-2, // AEP_INT_DOWN
|
||||
-5, // AEP_ALL_DOWN
|
||||
-4, // AEP_SPEED_DOWN
|
||||
-5, // AEP_FORCE_TELEPORT
|
||||
-3, // AEP_MOVEMENT_NOISE
|
||||
-2, // AEP_BAD_WEATHER
|
||||
-1 // AEP_SICK
|
||||
};
|
||||
|
||||
int active_effect_cost[NUM_AEAS] = {
|
||||
0, // AEA_NULL
|
||||
|
||||
2, // AEA_STORM
|
||||
4, // AEA_FIREBALL
|
||||
5, // AEA_ADRENALINE
|
||||
4, // AEA_MAP
|
||||
0, // AEA_BLOOD
|
||||
0, // AEA_FATIGUE
|
||||
4, // AEA_ACIDBALL
|
||||
5, // AEA_PULSE
|
||||
4, // AEA_HEAL
|
||||
3, // AEA_CONFUSED
|
||||
3, // AEA_ENTRANCE
|
||||
3, // AEA_BUGS
|
||||
5, // AEA_TELEPORT
|
||||
1, // AEA_LIGHT
|
||||
4, // AEA_GROWTH
|
||||
6, // AEA_HURTALL
|
||||
|
||||
0, // AEA_SPLIT
|
||||
|
||||
-3, // AEA_RADIATION
|
||||
-2, // AEA_PAIN
|
||||
-3, // AEA_MUTATE
|
||||
-2, // AEA_PARALYZE
|
||||
-3, // AEA_FIRESTORM
|
||||
-6, // AEA_ATTENTION
|
||||
-4, // AEA_TELEGLOW
|
||||
-2, // AEA_NOISE
|
||||
-2, // AEA_SCREAM
|
||||
-3, // AEA_DIM
|
||||
-4, // AEA_FLASH
|
||||
-2, // AEA_VOMIT
|
||||
-5 // AEA_SHADOWS
|
||||
};
|
||||
|
||||
artifact_shape_datum artifact_shape_data[ARTSHAPE_MAX] = {
|
||||
{"BUG", "BUG", 0, 0, 0, 0},
|
||||
{"sphere", "smooth sphere", 2, 4, 0, 10},
|
||||
{"rod", "tapered rod", 1, 7, 1, 7},
|
||||
{"teardrop", "teardrop-shaped stone", 2, 6, 0, 8},
|
||||
{"lamp", "hollow, transparent cube", 4, 9, 0, 3},
|
||||
{"snake", "winding, flexible rod", 0, 8, 0, 8},
|
||||
{"disc", "smooth disc", 4, 6, 2, 4},
|
||||
{"beads", "string of beads", 3, 7, 0, 6},
|
||||
{"napkin", "very thin sheet", 0, 3, 0, 3},
|
||||
{"urchin", "spiked sphere", 3, 5, 2, 6},
|
||||
{"jelly", "malleable blob", 2, 8, 2, 4},
|
||||
{"spiral", "spiraling rod", 5, 6, 2, 3},
|
||||
{"pin", "pointed rod", 1, 5, 1, 9},
|
||||
{"tube", "hollow tube", 2, 5, 3, 6},
|
||||
{"pyramid", "regular tetrahedron", 3, 7, 2, 4},
|
||||
{"crystal", "translucent crystal", 1, 6, 2, 7},
|
||||
{"knot", "twisted, knotted cord", 2, 6, 1, 7},
|
||||
{"crescent", "crescent-shaped stone", 2, 6, 2, 6}
|
||||
};
|
||||
|
||||
artifact_property_datum artifact_property_data[ARTPROP_MAX] = {
|
||||
{"BUG", "BUG",
|
||||
{AEP_NULL, AEP_NULL, AEP_NULL, AEP_NULL},
|
||||
{AEP_NULL, AEP_NULL, AEP_NULL, AEP_NULL},
|
||||
{AEA_NULL, AEA_NULL, AEA_NULL, AEA_NULL},
|
||||
{AEA_NULL, AEA_NULL, AEA_NULL, AEA_NULL}
|
||||
},
|
||||
{"wriggling", "is constantly wriggling",
|
||||
{AEP_SPEED_UP, AEP_SNAKES, AEP_NULL, AEP_NULL},
|
||||
{AEP_DEX_DOWN, AEP_FORCE_TELEPORT, AEP_SICK, AEP_NULL},
|
||||
{AEA_TELEPORT, AEA_ADRENALINE, AEA_NULL, AEA_NULL},
|
||||
{AEA_MUTATE, AEA_ATTENTION, AEA_VOMIT, AEA_NULL}
|
||||
},
|
||||
{"glowing", "glows faintly",
|
||||
{AEP_INT_UP, AEP_GLOW, AEP_CLAIRVOYANCE, AEP_NULL},
|
||||
{AEP_RADIOACTIVE, AEP_MUTAGENIC, AEP_ATTENTION, AEP_NULL},
|
||||
{AEA_LIGHT, AEA_LIGHT, AEA_LIGHT, AEA_NULL},
|
||||
{AEA_ATTENTION, AEA_TELEGLOW, AEA_FLASH, AEA_SHADOWS}
|
||||
},
|
||||
{"humming", "hums very quietly",
|
||||
{AEP_ALL_UP, AEP_PSYSHIELD, AEP_NULL, AEP_NULL},
|
||||
{AEP_SCHIZO, AEP_PER_DOWN, AEP_INT_DOWN, AEP_NULL},
|
||||
{AEA_PULSE, AEA_ENTRANCE, AEA_NULL, AEA_NULL},
|
||||
{AEA_NOISE, AEA_NOISE, AEA_SCREAM, AEA_NULL}
|
||||
},
|
||||
{"moving", "shifts from side to side slowly",
|
||||
{AEP_STR_UP, AEP_DEX_UP, AEP_SPEED_UP, AEP_NULL},
|
||||
{AEP_HUNGER, AEP_PER_DOWN, AEP_FORCE_TELEPORT, AEP_NULL},
|
||||
{AEA_TELEPORT, AEA_TELEPORT, AEA_MAP, AEA_NULL},
|
||||
{AEA_PARALYZE, AEA_VOMIT, AEA_VOMIT, AEA_NULL}
|
||||
},
|
||||
{"whispering", "makes very faint whispering sounds",
|
||||
{AEP_CLAIRVOYANCE, AEP_EXTINGUISH, AEP_STEALTH, AEP_NULL},
|
||||
{AEP_EVIL, AEP_SCHIZO, AEP_ATTENTION, AEP_NULL},
|
||||
{AEA_FATIGUE, AEA_ENTRANCE, AEA_ENTRANCE, AEA_NULL},
|
||||
{AEA_ATTENTION, AEA_SCREAM, AEA_SCREAM, AEA_SHADOWS}
|
||||
},
|
||||
{"breathing",
|
||||
"shrinks and grows very slightly with a regular pulse, as if breathing",
|
||||
{AEP_SAP_LIFE, AEP_ALL_UP, AEP_SPEED_UP, AEP_CARRY_MORE},
|
||||
{AEP_HUNGER, AEP_THIRST, AEP_SICK, AEP_BAD_WEATHER},
|
||||
{AEA_ADRENALINE, AEA_HEAL, AEA_ENTRANCE, AEA_GROWTH},
|
||||
{AEA_MUTATE, AEA_ATTENTION, AEA_SHADOWS, AEA_NULL}
|
||||
},
|
||||
{"dead", "is icy cold to the touch",
|
||||
{AEP_INVISIBLE, AEP_CLAIRVOYANCE, AEP_EXTINGUISH, AEP_SAP_LIFE},
|
||||
{AEP_HUNGER, AEP_EVIL, AEP_ALL_DOWN, AEP_SICK},
|
||||
{AEA_BLOOD, AEA_HURTALL, AEA_NULL, AEA_NULL},
|
||||
{AEA_PAIN, AEA_SHADOWS, AEA_DIM, AEA_VOMIT}
|
||||
},
|
||||
{"itchy", "makes your skin itch slightly when it is close",
|
||||
{AEP_DEX_UP, AEP_SPEED_UP, AEP_PSYSHIELD, AEP_NULL},
|
||||
{AEP_RADIOACTIVE, AEP_MUTAGENIC, AEP_SICK, AEP_NULL},
|
||||
{AEA_ADRENALINE, AEA_BLOOD, AEA_HEAL, AEA_BUGS},
|
||||
{AEA_RADIATION, AEA_PAIN, AEA_PAIN, AEA_VOMIT}
|
||||
},
|
||||
{"glittering", "glitters faintly under direct light",
|
||||
{AEP_INT_UP, AEP_EXTINGUISH, AEP_GLOW, AEP_NULL},
|
||||
{AEP_SMOKE, AEP_ATTENTION, AEP_NULL, AEP_NULL},
|
||||
{AEA_MAP, AEA_LIGHT, AEA_CONFUSED, AEA_ENTRANCE},
|
||||
{AEA_RADIATION, AEA_MUTATE, AEA_ATTENTION, AEA_FLASH}
|
||||
},
|
||||
{"electric", "very weakly shocks you when touched",
|
||||
{AEP_RESIST_ELECTRICITY, AEP_DEX_UP, AEP_SPEED_UP, AEP_PSYSHIELD},
|
||||
{AEP_THIRST, AEP_SMOKE, AEP_STR_DOWN, AEP_BAD_WEATHER},
|
||||
{AEA_STORM, AEA_ADRENALINE, AEA_LIGHT, AEA_NULL},
|
||||
{AEA_PAIN, AEA_PARALYZE, AEA_FLASH, AEA_FLASH}
|
||||
},
|
||||
{"slimy", "feels slimy",
|
||||
{AEP_SNAKES, AEP_STEALTH, AEP_EXTINGUISH, AEP_SAP_LIFE},
|
||||
{AEP_THIRST, AEP_DEX_DOWN, AEP_SPEED_DOWN, AEP_SICK},
|
||||
{AEA_BLOOD, AEA_ACIDBALL, AEA_GROWTH, AEA_ACIDBALL},
|
||||
{AEA_MUTATE, AEA_MUTATE, AEA_VOMIT, AEA_VOMIT}
|
||||
},
|
||||
{"engraved", "is covered with odd etchings",
|
||||
{AEP_CLAIRVOYANCE, AEP_INVISIBLE, AEP_PSYSHIELD, AEP_SAP_LIFE},
|
||||
{AEP_EVIL, AEP_ATTENTION, AEP_NULL, AEP_NULL},
|
||||
{AEA_FATIGUE, AEA_TELEPORT, AEA_HEAL, AEA_FATIGUE},
|
||||
{AEA_ATTENTION, AEA_ATTENTION, AEA_TELEGLOW, AEA_DIM}
|
||||
},
|
||||
{"crackling", "occasionally makes a soft crackling sound",
|
||||
{AEP_EXTINGUISH, AEP_RESIST_ELECTRICITY, AEP_NULL, AEP_NULL},
|
||||
{AEP_SMOKE, AEP_RADIOACTIVE, AEP_MOVEMENT_NOISE, AEP_NULL},
|
||||
{AEA_STORM, AEA_FIREBALL, AEA_PULSE, AEA_NULL},
|
||||
{AEA_PAIN, AEA_PARALYZE, AEA_NOISE, AEA_NOISE}
|
||||
},
|
||||
{"warm", "is warm to the touch",
|
||||
{AEP_STR_UP, AEP_EXTINGUISH, AEP_GLOW, AEP_NULL},
|
||||
{AEP_SMOKE, AEP_RADIOACTIVE, AEP_NULL, AEP_NULL},
|
||||
{AEA_FIREBALL, AEA_FIREBALL, AEA_FIREBALL, AEA_LIGHT},
|
||||
{AEA_FIRESTORM, AEA_FIRESTORM, AEA_TELEGLOW, AEA_NULL}
|
||||
},
|
||||
{"rattling", "makes a rattling sound when moved",
|
||||
{AEP_DEX_UP, AEP_SPEED_UP, AEP_SNAKES, AEP_CARRY_MORE},
|
||||
{AEP_ATTENTION, AEP_INT_DOWN, AEP_MOVEMENT_NOISE, AEP_MOVEMENT_NOISE},
|
||||
{AEA_BLOOD, AEA_PULSE, AEA_BUGS, AEA_NULL},
|
||||
{AEA_PAIN, AEA_ATTENTION, AEA_NOISE, AEA_NULL}
|
||||
},
|
||||
{"scaled", "has a surface reminiscent of reptile scales",
|
||||
{AEP_SNAKES, AEP_SNAKES, AEP_SNAKES, AEP_STEALTH},
|
||||
{AEP_THIRST, AEP_MUTAGENIC, AEP_SPEED_DOWN, AEP_NULL},
|
||||
{AEA_ADRENALINE, AEA_BUGS, AEA_GROWTH, AEA_NULL},
|
||||
{AEA_MUTATE, AEA_SCREAM, AEA_DIM, AEA_NULL}
|
||||
},
|
||||
{"fractal",
|
||||
"has a self-similar pattern which repeats until it is too small for you to see",
|
||||
{AEP_ALL_UP, AEP_ALL_UP, AEP_CLAIRVOYANCE, AEP_PSYSHIELD},
|
||||
{AEP_SCHIZO, AEP_ATTENTION, AEP_FORCE_TELEPORT, AEP_BAD_WEATHER},
|
||||
{AEA_STORM, AEA_FATIGUE, AEA_TELEPORT, AEA_NULL},
|
||||
{AEA_RADIATION, AEA_MUTATE, AEA_TELEGLOW, AEA_TELEGLOW}
|
||||
}
|
||||
};
|
||||
|
||||
artifact_tool_form_datum artifact_tool_form_data[NUM_ARTTOOLFORMS] = {
|
||||
{"", '*', c_white, "null", "null", 0, 0, 0, 0, ARTWEAP_BULK,
|
||||
{ARTWEAP_NULL, ARTWEAP_NULL, ARTWEAP_NULL}},
|
||||
|
||||
{"Harp", ';', c_yellow, "wood", "null", 20, 30, 10, 18, ARTWEAP_BULK,
|
||||
{ARTWEAP_SPEAR, ARTWEAP_SWORD, ARTWEAP_KNIFE}},
|
||||
|
||||
{"Staff", '/', c_brown, "wood", "null", 6, 12, 4, 10, ARTWEAP_CLUB,
|
||||
{ARTWEAP_BULK, ARTWEAP_SPEAR, ARTWEAP_KNIFE}},
|
||||
|
||||
{"Sword", '/', c_ltblue, "steel", "null", 8, 14, 8, 28, ARTWEAP_SWORD,
|
||||
{ARTWEAP_BULK, ARTWEAP_NULL, ARTWEAP_NULL}},
|
||||
|
||||
{"Dagger", ';', c_ltblue, "steel", "null", 1, 4, 1, 6, ARTWEAP_KNIFE,
|
||||
{ARTWEAP_NULL, ARTWEAP_NULL, ARTWEAP_NULL}},
|
||||
|
||||
{"Cube", '*', c_white, "steel", "null", 1, 3, 1, 20, ARTWEAP_BULK,
|
||||
{ARTWEAP_SPEAR, ARTWEAP_NULL, ARTWEAP_NULL}}
|
||||
};
|
||||
|
||||
artifact_weapon_datum artifact_weapon_data[NUM_ARTWEAPS] = {
|
||||
{"", 0, 0, 0, 0, 0, 0, 0, 0, ""},
|
||||
// Adjective Vol,wgt Bash Cut To-Hit
|
||||
{"Heavy", 0, 12, 10, 20, 0, 0, -2, 0,
|
||||
""},
|
||||
{"Knobbed", 1, 2, 14, 30, 0, 0, -1, 1,
|
||||
""},
|
||||
{"Spiked", 1, 1, 0, 0, 20, 40, -1, 1,
|
||||
"SPEAR"},
|
||||
{"Edged", 2, 4, 0, 0, 20, 50, -1, 2,
|
||||
""},
|
||||
{"Bladed", 1, 2, 0, 0, 12, 30, -1, 1,
|
||||
"STAB"}
|
||||
};
|
||||
|
||||
artifact_armor_form_datum artifact_armor_form_data[NUM_ARTARMFORMS] = {
|
||||
{"", c_white, "null", "null", 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, false,
|
||||
{ARMORMOD_NULL, ARMORMOD_NULL, ARMORMOD_NULL, ARMORMOD_NULL, ARMORMOD_NULL}},
|
||||
// Name color Materials Vol Wgt Enc Cov Thk Env Wrm Sto Bsh Cut Hit
|
||||
{"Robe", c_red, "wool", "null", 6, 6, 1, 3, 3, 0, 2, 0, -8, 0, -3,
|
||||
mfb(bp_torso)|mfb(bp_legs), false,
|
||||
{ARMORMOD_LIGHT, ARMORMOD_BULKY, ARMORMOD_POCKETED, ARMORMOD_FURRED,
|
||||
ARMORMOD_PADDED}},
|
||||
|
||||
{"Coat", c_brown,"leather","null", 14, 14, 2, 3, 2, 1, 4, 4, -6, 0, -3,
|
||||
mfb(bp_torso), false,
|
||||
{ARMORMOD_LIGHT, ARMORMOD_POCKETED, ARMORMOD_FURRED, ARMORMOD_PADDED,
|
||||
ARMORMOD_PLATED}},
|
||||
|
||||
{"Mask", c_white, "wood", "null", 4, 1, 2, 2, 2, 1, 2, 0, 2, 0, -2,
|
||||
mfb(bp_eyes)|mfb(bp_mouth), false,
|
||||
{ARMORMOD_FURRED, ARMORMOD_FURRED, ARMORMOD_NULL, ARMORMOD_NULL,
|
||||
ARMORMOD_NULL}},
|
||||
|
||||
// Name color Materials Vol Wgt Enc Cov Thk Env Wrm Sto Bsh Cut Hit
|
||||
{"Helm", c_dkgray, "silver", "null", 6, 6, 2, 3, 3, 0, 1, 0, 8, 0, -2,
|
||||
mfb(bp_head), false,
|
||||
{ARMORMOD_BULKY, ARMORMOD_FURRED, ARMORMOD_PADDED, ARMORMOD_PLATED,
|
||||
ARMORMOD_NULL}},
|
||||
|
||||
{"Gloves", c_ltblue,"leather","null", 2, 1, 1, 3, 3, 1, 2, 0, -4, 0, -2,
|
||||
mfb(bp_hands), true,
|
||||
{ARMORMOD_BULKY, ARMORMOD_FURRED, ARMORMOD_PADDED, ARMORMOD_PLATED,
|
||||
ARMORMOD_NULL}},
|
||||
|
||||
// Name color Materials Vol Wgt Enc Cov Thk Env Wrm Sto Bsh Cut Hit
|
||||
{"Boots", c_blue, "leather", "null", 6, 2, 1, 3, 3, 1, 3, 0, 4, 0, -1,
|
||||
mfb(bp_feet), true,
|
||||
{ARMORMOD_LIGHT, ARMORMOD_BULKY, ARMORMOD_PADDED, ARMORMOD_PLATED,
|
||||
ARMORMOD_NULL}},
|
||||
|
||||
{"Ring", c_ltgreen, "silver", "null", 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, true,
|
||||
{ARMORMOD_NULL, ARMORMOD_NULL, ARMORMOD_NULL, ARMORMOD_NULL, ARMORMOD_NULL}}
|
||||
|
||||
};
|
||||
|
||||
artifact_armor_form_datum artifact_armor_mod_data[NUM_ARMORMODS] = {
|
||||
|
||||
{"", c_white, "null", "null", 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, false,
|
||||
{ARMORMOD_NULL, ARMORMOD_NULL, ARMORMOD_NULL, ARMORMOD_NULL, ARMORMOD_NULL}},
|
||||
// Description; "It is ..." or "They are ..."
|
||||
{"very thin and light.", c_white, "null", "null",
|
||||
// Vol Wgt Enc Cov Thk Env Wrm Sto
|
||||
-4, -8, -2, -1, -1, -1, -1, 0, 0, 0, 0, 0, false,
|
||||
{ARMORMOD_NULL, ARMORMOD_NULL, ARMORMOD_NULL, ARMORMOD_NULL, ARMORMOD_NULL}},
|
||||
|
||||
{"extremely bulky.", c_white, "null", "null",
|
||||
8, 10, 2, 1, 1, 0, 1, 0, 0, 0, 0, 0, false,
|
||||
{ARMORMOD_NULL, ARMORMOD_NULL, ARMORMOD_NULL, ARMORMOD_NULL, ARMORMOD_NULL}},
|
||||
|
||||
{"covered in pockets.", c_white, "null", "null",
|
||||
1, 1, 1, 0, 0, 0, 0, 16, 0, 0, 0, 0, false,
|
||||
{ARMORMOD_NULL, ARMORMOD_NULL, ARMORMOD_NULL, ARMORMOD_NULL, ARMORMOD_NULL}},
|
||||
|
||||
{"disgustingly furry.", c_white, "wool", "null",
|
||||
// Vol Wgt Enc Dmg Cut Env Wrm Sto
|
||||
4, 2, 1, 1, 1, 1, 3, 0, 0, 0, 0, 0, false,
|
||||
{ARMORMOD_NULL, ARMORMOD_NULL, ARMORMOD_NULL, ARMORMOD_NULL, ARMORMOD_NULL}},
|
||||
|
||||
{"leather-padded.", c_white, "leather", "null",
|
||||
4, 4, 1, 1, 1, 0, 1, -3, 0, 0, 0, 0, false,
|
||||
{ARMORMOD_NULL, ARMORMOD_NULL, ARMORMOD_NULL, ARMORMOD_NULL, ARMORMOD_NULL}},
|
||||
|
||||
{"plated in iron.", c_white, "iron", "null",
|
||||
4, 12, 3, 2, 2, 0, 1, -4, 0, 0, 0, 0, false,
|
||||
{ARMORMOD_NULL, ARMORMOD_NULL, ARMORMOD_NULL, ARMORMOD_NULL, ARMORMOD_NULL}},
|
||||
|
||||
};
|
||||
|
||||
std::string artifact_adj[NUM_ART_ADJS] = {
|
||||
"Forbidden", "Unknown", "Forgotten", "Hideous", "Eldritch",
|
||||
"Gelatinous", "Ancient", "Cursed", "Bloody", "Undying",
|
||||
"Shadowy", "Silent", "Cyclopean", "Fungal", "Unspeakable",
|
||||
"Grotesque", "Frigid", "Shattered", "Sleeping", "Repellent"
|
||||
};
|
||||
|
||||
// Prepending + makes it proper, e.g. "The Forbidden Abyss"
|
||||
std::string artifact_noun[NUM_ART_NOUNS] = {
|
||||
"Technique", "Dreams", "Beasts", "Evil", "Miasma",
|
||||
"+Abyss", "+City", "Shadows", "Shade", "Illusion",
|
||||
"Justice", "+Necropolis", "Ichor", "+Monolith", "Aeons",
|
||||
"Graves", "Horrors", "Suffering", "Death", "Horror"
|
||||
};
|
||||
|
||||
std::string artifact_name(std::string type);
|
||||
|
||||
itype* game::new_artifact()
|
||||
@@ -31,7 +372,9 @@ itype* game::new_artifact()
|
||||
art->melee_dam = rng(weapon->bash_min, weapon->bash_max);
|
||||
art->melee_cut = rng(weapon->cut_min, weapon->cut_max);
|
||||
art->m_to_hit = rng(weapon->to_hit_min, weapon->to_hit_max);
|
||||
art->item_flags = weapon->flags;
|
||||
if( weapon->tag != "" ) {
|
||||
art->item_tags.insert(weapon->tag);
|
||||
}
|
||||
// Add an extra weapon perhaps?
|
||||
if (one_in(2)) {
|
||||
int select = rng(0, 2);
|
||||
@@ -42,7 +385,9 @@ itype* game::new_artifact()
|
||||
art->melee_dam += rng(weapon->bash_min, weapon->bash_max);
|
||||
art->melee_cut += rng(weapon->bash_min, weapon->bash_max);
|
||||
art->m_to_hit += rng(weapon->to_hit_min, weapon->to_hit_max);
|
||||
art->item_flags |= weapon->flags;
|
||||
if( weapon->tag != "" ) {
|
||||
art->item_tags.insert(weapon->tag);
|
||||
}
|
||||
std::stringstream newname;
|
||||
newname << weapon->adjective << " " << info->name;
|
||||
art->name = artifact_name(newname.str());
|
||||
@@ -141,7 +486,9 @@ It may have unknown powers; use 'a' to activate them.";
|
||||
art->charge_type = ARTC_NULL; // 1 in 8 chance that it can't recharge!
|
||||
|
||||
art->id = itypes.size();
|
||||
itypes[art->name]=art;
|
||||
|
||||
itypes[art->id]=art;
|
||||
artifact_itype_ids.push_back(art->id);
|
||||
return art;
|
||||
|
||||
} else { // Generate an armor artifact
|
||||
@@ -160,11 +507,10 @@ It may have unknown powers; use 'a' to activate them.";
|
||||
art->melee_dam = info->melee_bash;
|
||||
art->melee_cut = info->melee_cut;
|
||||
art->m_to_hit = info->melee_hit;
|
||||
art->item_flags = 0;
|
||||
art->covers = info->covers;
|
||||
art->encumber = info->encumb;
|
||||
art->dmg_resist = info->dmg_resist;
|
||||
art->cut_resist = info->cut_resist;
|
||||
art->coverage = info->coverage;
|
||||
art->thickness = info->thickness;
|
||||
art->env_resist = info->env_resist;
|
||||
art->warmth = info->warmth;
|
||||
art->storage = info->storage;
|
||||
@@ -191,15 +537,15 @@ It may have unknown powers; use 'a' to activate them.";
|
||||
|
||||
art->encumber += modinfo->encumb;
|
||||
|
||||
if (modinfo->dmg_resist > 0 || art->dmg_resist > abs(modinfo->dmg_resist))
|
||||
art->dmg_resist += modinfo->dmg_resist;
|
||||
if (modinfo->coverage > 0 || art->coverage > abs(modinfo->coverage))
|
||||
art->coverage += modinfo->coverage;
|
||||
else
|
||||
art->dmg_resist = 0;
|
||||
art->coverage = 0;
|
||||
|
||||
if (modinfo->cut_resist > 0 || art->cut_resist > abs(modinfo->cut_resist))
|
||||
art->cut_resist += modinfo->cut_resist;
|
||||
if (modinfo->thickness > 0 || art->thickness > abs(modinfo->thickness))
|
||||
art->thickness += modinfo->thickness;
|
||||
else
|
||||
art->cut_resist = 0;
|
||||
art->thickness = 0;
|
||||
|
||||
if (modinfo->env_resist > 0 || art->env_resist > abs(modinfo->env_resist))
|
||||
art->env_resist += modinfo->env_resist;
|
||||
@@ -244,8 +590,11 @@ It may have unknown powers; use 'a' to activate them.";
|
||||
art->effects_worn.push_back(passive_tmp);
|
||||
}
|
||||
|
||||
art->id = itypes.size();
|
||||
itypes[art->name]=art;
|
||||
std::stringstream artid;
|
||||
artid << "artifact" << artifact_itype_ids.size();
|
||||
art->id = artid.str();
|
||||
itypes[art->id] = art;
|
||||
artifact_itype_ids.push_back(art->id);
|
||||
return art;
|
||||
}
|
||||
}
|
||||
@@ -265,14 +614,13 @@ itype* game::new_natural_artifact(artifact_natural_property prop)
|
||||
|
||||
art->sym = ':';
|
||||
art->color = c_yellow;
|
||||
art->m1 = STONE;
|
||||
art->m2 = MNULL;
|
||||
art->m1 = "stone";
|
||||
art->m2 = "null";
|
||||
art->volume = rng(shape_data->volume_min, shape_data->volume_max);
|
||||
art->weight = rng(shape_data->weight_min, shape_data->weight_max);
|
||||
art->melee_dam = 0;
|
||||
art->melee_cut = 0;
|
||||
art->m_to_hit = 0;
|
||||
art->item_flags = 0;
|
||||
|
||||
art->name = property_data->name + " " + shape_data->name;
|
||||
std::stringstream desc;
|
||||
@@ -358,8 +706,11 @@ itype* game::new_natural_artifact(artifact_natural_property prop)
|
||||
art->charge_type = art_charge( rng(ARTC_NULL + 1, NUM_ARTCS - 1) );
|
||||
}
|
||||
|
||||
art->id = itypes.size();
|
||||
itypes[art->name]=art;
|
||||
std::stringstream artid;
|
||||
artid << "artifact" << artifact_itype_ids.size();
|
||||
art->id = artid.str();
|
||||
artifact_itype_ids.push_back(art->id);
|
||||
itypes[art->id] = art;
|
||||
return art;
|
||||
}
|
||||
|
||||
@@ -426,23 +777,23 @@ void game::process_artifact(item *it, player *p, bool wielded)
|
||||
if (it->charges < tool->max_charges) {
|
||||
switch (tool->charge_type) {
|
||||
case ARTC_TIME:
|
||||
if (turn.second == 0 && turn.minute == 0) // Once per hour
|
||||
if (turn.seconds() == 0 && turn.minutes() == 0) // Once per hour
|
||||
it->charges++;
|
||||
break;
|
||||
case ARTC_SOLAR:
|
||||
if (turn.second == 0 && turn.minute % 10 == 0 &&
|
||||
if (turn.seconds() == 0 && turn.minutes() % 10 == 0 &&
|
||||
is_in_sunlight(p->posx, p->posy))
|
||||
it->charges++;
|
||||
break;
|
||||
case ARTC_PAIN:
|
||||
if (turn.second == 0) {
|
||||
if (turn.seconds() == 0) {
|
||||
add_msg("You suddenly feel sharp pain for no reason.");
|
||||
p->pain += 3 * rng(1, 3);
|
||||
it->charges++;
|
||||
}
|
||||
break;
|
||||
case ARTC_HP:
|
||||
if (turn.second == 0) {
|
||||
if (turn.seconds() == 0) {
|
||||
add_msg("You feel your body decaying.");
|
||||
p->hurtall(1);
|
||||
it->charges++;
|
||||
@@ -494,11 +845,11 @@ void game::process_artifact(item *it, player *p, bool wielded)
|
||||
case AEP_EXTINGUISH:
|
||||
for (int x = p->posx - 1; x <= p->posx + 1; x++) {
|
||||
for (int y = p->posy - 1; y <= p->posy + 1; y++) {
|
||||
if (m.field_at(x, y).type == fd_fire) {
|
||||
if (m.field_at(x, y).density == 0)
|
||||
m.remove_field(x, y);
|
||||
if (m.field_at(x, y).findField(fd_fire)) {
|
||||
if (m.field_at(x, y).findField(fd_fire)->getFieldDensity() == 0)
|
||||
m.remove_field(x, y, fd_fire);
|
||||
else
|
||||
m.field_at(x, y).density--;
|
||||
m.field_at(x, y).findField(fd_fire)->setFieldDensity(m.field_at(x, y).findField(fd_fire)->getFieldDensity() - 1);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -516,7 +867,7 @@ void game::process_artifact(item *it, player *p, bool wielded)
|
||||
|
||||
case AEP_EVIL:
|
||||
if (one_in(150)) { // Once every 15 minutes, on average
|
||||
p->add_disease(DI_EVIL, 300, this);
|
||||
p->add_disease("evil", 300);
|
||||
if (!wielded && !it->is_armor())
|
||||
add_msg("You have an urge to %s the %s.",
|
||||
(it->is_armor() ? "wear" : "wield"), it->tname().c_str());
|
||||
@@ -600,6 +951,10 @@ void game::add_artifact_messages(std::vector<art_effect_passive> effects)
|
||||
add_msg("You can see through walls!");
|
||||
break;
|
||||
|
||||
case AEP_SUPER_CLAIRVOYANCE:
|
||||
add_msg("You can see through everything!");
|
||||
break;
|
||||
|
||||
case AEP_STEALTH:
|
||||
add_msg("Your steps stop making noise.");
|
||||
break;
|
||||
|
||||
@@ -17,6 +17,7 @@ enum art_effect_passive {
|
||||
AEP_SNAKES, // Summons friendly snakes when you're hit
|
||||
AEP_INVISIBLE, // Makes you invisible
|
||||
AEP_CLAIRVOYANCE, // See through walls
|
||||
AEP_SUPER_CLAIRVOYANCE, // See through walls to a great distance
|
||||
AEP_STEALTH, // Your steps are quieted
|
||||
AEP_EXTINGUISH, // May extinguish nearby flames
|
||||
AEP_GLOW, // Four-tile light source
|
||||
|
||||
+22
-342
@@ -5,85 +5,10 @@
|
||||
#include "artifact.h"
|
||||
#include "itype.h"
|
||||
|
||||
int passive_effect_cost[NUM_AEPS] = {
|
||||
0, // AEP_NULL
|
||||
extern int passive_effect_cost[NUM_AEPS];
|
||||
|
||||
3, // AEP_STR_UP
|
||||
3, // AEP_DEX_UP
|
||||
3, // AEP_PER_UP
|
||||
3, // AEP_INT_UP
|
||||
5, // AEP_ALL_UP
|
||||
4, // AEP_SPEED_UP
|
||||
2, // AEP_IODINE
|
||||
4, // AEP_SNAKES
|
||||
7, // AEP_INVISIBLE
|
||||
5, // AEP_CLAIRVOYANCE
|
||||
2, // AEP_STEALTH
|
||||
2, // AEP_EXTINGUISH
|
||||
1, // AEP_GLOW
|
||||
1, // AEP_PSYSHIELD
|
||||
3, // AEP_RESIST_ELECTRICITY
|
||||
3, // AEP_CARRY_MORE
|
||||
5, // AEP_SAP_LIFE
|
||||
extern int active_effect_cost[NUM_AEAS];
|
||||
|
||||
0, // AEP_SPLIT
|
||||
|
||||
-2, // AEP_HUNGER
|
||||
-2, // AEP_THIRST
|
||||
-1, // AEP_SMOKE
|
||||
-5, // AEP_EVIL
|
||||
-3, // AEP_SCHIZO
|
||||
-5, // AEP_RADIOACTIVE
|
||||
-3, // AEP_MUTAGENIC
|
||||
-5, // AEP_ATTENTION
|
||||
-2, // AEP_STR_DOWN
|
||||
-2, // AEP_DEX_DOWN
|
||||
-2, // AEP_PER_DOWN
|
||||
-2, // AEP_INT_DOWN
|
||||
-5, // AEP_ALL_DOWN
|
||||
-4, // AEP_SPEED_DOWN
|
||||
-5, // AEP_FORCE_TELEPORT
|
||||
-3, // AEP_MOVEMENT_NOISE
|
||||
-2, // AEP_BAD_WEATHER
|
||||
-1 // AEP_SICK
|
||||
};
|
||||
|
||||
int active_effect_cost[NUM_AEAS] = {
|
||||
0, // AEA_NULL
|
||||
|
||||
2, // AEA_STORM
|
||||
4, // AEA_FIREBALL
|
||||
5, // AEA_ADRENALINE
|
||||
4, // AEA_MAP
|
||||
0, // AEA_BLOOD
|
||||
0, // AEA_FATIGUE
|
||||
4, // AEA_ACIDBALL
|
||||
5, // AEA_PULSE
|
||||
4, // AEA_HEAL
|
||||
3, // AEA_CONFUSED
|
||||
3, // AEA_ENTRANCE
|
||||
3, // AEA_BUGS
|
||||
5, // AEA_TELEPORT
|
||||
1, // AEA_LIGHT
|
||||
4, // AEA_GROWTH
|
||||
6, // AEA_HURTALL
|
||||
|
||||
0, // AEA_SPLIT
|
||||
|
||||
-3, // AEA_RADIATION
|
||||
-2, // AEA_PAIN
|
||||
-3, // AEA_MUTATE
|
||||
-2, // AEA_PARALYZE
|
||||
-3, // AEA_FIRESTORM
|
||||
-6, // AEA_ATTENTION
|
||||
-4, // AEA_TELEGLOW
|
||||
-2, // AEA_NOISE
|
||||
-2, // AEA_SCREAM
|
||||
-3, // AEA_DIM
|
||||
-4, // AEA_FLASH
|
||||
-2, // AEA_VOMIT
|
||||
-5 // AEA_SHADOWS
|
||||
};
|
||||
|
||||
struct artifact_shape_datum
|
||||
{
|
||||
@@ -93,26 +18,7 @@ struct artifact_shape_datum
|
||||
int weight_min, weight_max;
|
||||
};
|
||||
|
||||
artifact_shape_datum artifact_shape_data[ARTSHAPE_MAX] = {
|
||||
{"BUG", "BUG", 0, 0, 0, 0},
|
||||
{"sphere", "smooth sphere", 2, 4, 0, 10},
|
||||
{"rod", "tapered rod", 1, 7, 1, 7},
|
||||
{"teardrop", "teardrop-shaped stone", 2, 6, 0, 8},
|
||||
{"lamp", "hollow, transparent cube", 4, 9, 0, 3},
|
||||
{"snake", "winding, flexible rod", 0, 8, 0, 8},
|
||||
{"disc", "smooth disc", 4, 6, 2, 4},
|
||||
{"beads", "string of beads", 3, 7, 0, 6},
|
||||
{"napkin", "very thin sheet", 0, 3, 0, 3},
|
||||
{"urchin", "spiked sphere", 3, 5, 2, 6},
|
||||
{"jelly", "malleable blob", 2, 8, 2, 4},
|
||||
{"spiral", "spiraling rod", 5, 6, 2, 3},
|
||||
{"pin", "pointed rod", 1, 5, 1, 9},
|
||||
{"tube", "hollow tube", 2, 5, 3, 6},
|
||||
{"pyramid", "regular tetrahedron", 3, 7, 2, 4},
|
||||
{"crystal", "translucent crystal", 1, 6, 2, 7},
|
||||
{"knot", "twisted, knotted cord", 2, 6, 1, 7},
|
||||
{"crescent", "crescent-shaped stone", 2, 6, 2, 6}
|
||||
};
|
||||
extern artifact_shape_datum artifact_shape_data[ARTSHAPE_MAX];
|
||||
|
||||
struct artifact_property_datum
|
||||
{
|
||||
@@ -124,118 +30,7 @@ struct artifact_property_datum
|
||||
art_effect_active active_bad[4];
|
||||
};
|
||||
|
||||
artifact_property_datum artifact_property_data[ARTPROP_MAX] = {
|
||||
{"BUG", "BUG",
|
||||
{AEP_NULL, AEP_NULL, AEP_NULL, AEP_NULL},
|
||||
{AEP_NULL, AEP_NULL, AEP_NULL, AEP_NULL},
|
||||
{AEA_NULL, AEA_NULL, AEA_NULL, AEA_NULL},
|
||||
{AEA_NULL, AEA_NULL, AEA_NULL, AEA_NULL}
|
||||
},
|
||||
{"wriggling", "is constantly wriggling",
|
||||
{AEP_SPEED_UP, AEP_SNAKES, AEP_NULL, AEP_NULL},
|
||||
{AEP_DEX_DOWN, AEP_FORCE_TELEPORT, AEP_SICK, AEP_NULL},
|
||||
{AEA_TELEPORT, AEA_ADRENALINE, AEA_NULL, AEA_NULL},
|
||||
{AEA_MUTATE, AEA_ATTENTION, AEA_VOMIT, AEA_NULL}
|
||||
},
|
||||
{"glowing", "glows faintly",
|
||||
{AEP_INT_UP, AEP_GLOW, AEP_CLAIRVOYANCE, AEP_NULL},
|
||||
{AEP_RADIOACTIVE, AEP_MUTAGENIC, AEP_ATTENTION, AEP_NULL},
|
||||
{AEA_LIGHT, AEA_LIGHT, AEA_LIGHT, AEA_NULL},
|
||||
{AEA_ATTENTION, AEA_TELEGLOW, AEA_FLASH, AEA_SHADOWS}
|
||||
},
|
||||
{"humming", "hums very quietly",
|
||||
{AEP_ALL_UP, AEP_PSYSHIELD, AEP_NULL, AEP_NULL},
|
||||
{AEP_SCHIZO, AEP_PER_DOWN, AEP_INT_DOWN, AEP_NULL},
|
||||
{AEA_PULSE, AEA_ENTRANCE, AEA_NULL, AEA_NULL},
|
||||
{AEA_NOISE, AEA_NOISE, AEA_SCREAM, AEA_NULL}
|
||||
},
|
||||
{"moving", "shifts from side to side slowly",
|
||||
{AEP_STR_UP, AEP_DEX_UP, AEP_SPEED_UP, AEP_NULL},
|
||||
{AEP_HUNGER, AEP_PER_DOWN, AEP_FORCE_TELEPORT, AEP_NULL},
|
||||
{AEA_TELEPORT, AEA_TELEPORT, AEA_MAP, AEA_NULL},
|
||||
{AEA_PARALYZE, AEA_VOMIT, AEA_VOMIT, AEA_NULL}
|
||||
},
|
||||
{"whispering", "makes very faint whispering sounds",
|
||||
{AEP_CLAIRVOYANCE, AEP_EXTINGUISH, AEP_STEALTH, AEP_NULL},
|
||||
{AEP_EVIL, AEP_SCHIZO, AEP_ATTENTION, AEP_NULL},
|
||||
{AEA_FATIGUE, AEA_ENTRANCE, AEA_ENTRANCE, AEA_NULL},
|
||||
{AEA_ATTENTION, AEA_SCREAM, AEA_SCREAM, AEA_SHADOWS}
|
||||
},
|
||||
{"breathing",
|
||||
"shrinks and grows very slightly with a regular pulse, as if breathing",
|
||||
{AEP_SAP_LIFE, AEP_ALL_UP, AEP_SPEED_UP, AEP_CARRY_MORE},
|
||||
{AEP_HUNGER, AEP_THIRST, AEP_SICK, AEP_BAD_WEATHER},
|
||||
{AEA_ADRENALINE, AEA_HEAL, AEA_ENTRANCE, AEA_GROWTH},
|
||||
{AEA_MUTATE, AEA_ATTENTION, AEA_SHADOWS, AEA_NULL}
|
||||
},
|
||||
{"dead", "is icy cold to the touch",
|
||||
{AEP_INVISIBLE, AEP_CLAIRVOYANCE, AEP_EXTINGUISH, AEP_SAP_LIFE},
|
||||
{AEP_HUNGER, AEP_EVIL, AEP_ALL_DOWN, AEP_SICK},
|
||||
{AEA_BLOOD, AEA_HURTALL, AEA_NULL, AEA_NULL},
|
||||
{AEA_PAIN, AEA_SHADOWS, AEA_DIM, AEA_VOMIT}
|
||||
},
|
||||
{"itchy", "makes your skin itch slightly when it is close",
|
||||
{AEP_DEX_UP, AEP_SPEED_UP, AEP_PSYSHIELD, AEP_NULL},
|
||||
{AEP_RADIOACTIVE, AEP_MUTAGENIC, AEP_SICK, AEP_NULL},
|
||||
{AEA_ADRENALINE, AEA_BLOOD, AEA_HEAL, AEA_BUGS},
|
||||
{AEA_RADIATION, AEA_PAIN, AEA_PAIN, AEA_VOMIT}
|
||||
},
|
||||
{"glittering", "glitters faintly under direct light",
|
||||
{AEP_INT_UP, AEP_EXTINGUISH, AEP_GLOW, AEP_NULL},
|
||||
{AEP_SMOKE, AEP_ATTENTION, AEP_NULL, AEP_NULL},
|
||||
{AEA_MAP, AEA_LIGHT, AEA_CONFUSED, AEA_ENTRANCE},
|
||||
{AEA_RADIATION, AEA_MUTATE, AEA_ATTENTION, AEA_FLASH}
|
||||
},
|
||||
{"electric", "very weakly shocks you when touched",
|
||||
{AEP_RESIST_ELECTRICITY, AEP_DEX_UP, AEP_SPEED_UP, AEP_PSYSHIELD},
|
||||
{AEP_THIRST, AEP_SMOKE, AEP_STR_DOWN, AEP_BAD_WEATHER},
|
||||
{AEA_STORM, AEA_ADRENALINE, AEA_LIGHT, AEA_NULL},
|
||||
{AEA_PAIN, AEA_PARALYZE, AEA_FLASH, AEA_FLASH}
|
||||
},
|
||||
{"slimy", "feels slimy",
|
||||
{AEP_SNAKES, AEP_STEALTH, AEP_EXTINGUISH, AEP_SAP_LIFE},
|
||||
{AEP_THIRST, AEP_DEX_DOWN, AEP_SPEED_DOWN, AEP_SICK},
|
||||
{AEA_BLOOD, AEA_ACIDBALL, AEA_GROWTH, AEA_ACIDBALL},
|
||||
{AEA_MUTATE, AEA_MUTATE, AEA_VOMIT, AEA_VOMIT}
|
||||
},
|
||||
{"engraved", "is covered with odd etchings",
|
||||
{AEP_CLAIRVOYANCE, AEP_INVISIBLE, AEP_PSYSHIELD, AEP_SAP_LIFE},
|
||||
{AEP_EVIL, AEP_ATTENTION, AEP_NULL, AEP_NULL},
|
||||
{AEA_FATIGUE, AEA_TELEPORT, AEA_HEAL, AEA_FATIGUE},
|
||||
{AEA_ATTENTION, AEA_ATTENTION, AEA_TELEGLOW, AEA_DIM}
|
||||
},
|
||||
{"crackling", "occasionally makes a soft crackling sound",
|
||||
{AEP_EXTINGUISH, AEP_RESIST_ELECTRICITY, AEP_NULL, AEP_NULL},
|
||||
{AEP_SMOKE, AEP_RADIOACTIVE, AEP_MOVEMENT_NOISE, AEP_NULL},
|
||||
{AEA_STORM, AEA_FIREBALL, AEA_PULSE, AEA_NULL},
|
||||
{AEA_PAIN, AEA_PARALYZE, AEA_NOISE, AEA_NOISE}
|
||||
},
|
||||
{"warm", "is warm to the touch",
|
||||
{AEP_STR_UP, AEP_EXTINGUISH, AEP_GLOW, AEP_NULL},
|
||||
{AEP_SMOKE, AEP_RADIOACTIVE, AEP_NULL, AEP_NULL},
|
||||
{AEA_FIREBALL, AEA_FIREBALL, AEA_FIREBALL, AEA_LIGHT},
|
||||
{AEA_FIRESTORM, AEA_FIRESTORM, AEA_TELEGLOW, AEA_NULL}
|
||||
},
|
||||
{"rattling", "makes a rattling sound when moved",
|
||||
{AEP_DEX_UP, AEP_SPEED_UP, AEP_SNAKES, AEP_CARRY_MORE},
|
||||
{AEP_ATTENTION, AEP_INT_DOWN, AEP_MOVEMENT_NOISE, AEP_MOVEMENT_NOISE},
|
||||
{AEA_BLOOD, AEA_PULSE, AEA_BUGS, AEA_NULL},
|
||||
{AEA_PAIN, AEA_ATTENTION, AEA_NOISE, AEA_NULL}
|
||||
},
|
||||
{"scaled", "has a surface reminiscent of reptile scales",
|
||||
{AEP_SNAKES, AEP_SNAKES, AEP_SNAKES, AEP_STEALTH},
|
||||
{AEP_THIRST, AEP_MUTAGENIC, AEP_SPEED_DOWN, AEP_NULL},
|
||||
{AEA_ADRENALINE, AEA_BUGS, AEA_GROWTH, AEA_NULL},
|
||||
{AEA_MUTATE, AEA_SCREAM, AEA_DIM, AEA_NULL}
|
||||
},
|
||||
{"fractal",
|
||||
"has a self-similar pattern which repeats until it is too small for you to see",
|
||||
{AEP_ALL_UP, AEP_ALL_UP, AEP_CLAIRVOYANCE, AEP_PSYSHIELD},
|
||||
{AEP_SCHIZO, AEP_ATTENTION, AEP_FORCE_TELEPORT, AEP_BAD_WEATHER},
|
||||
{AEA_STORM, AEA_FATIGUE, AEA_TELEPORT, AEA_NULL},
|
||||
{AEA_RADIATION, AEA_MUTATE, AEA_TELEGLOW, AEA_TELEGLOW}
|
||||
}
|
||||
};
|
||||
extern artifact_property_datum artifact_property_data[ARTPROP_MAX];
|
||||
|
||||
enum artifact_weapon_type
|
||||
{
|
||||
@@ -253,8 +48,8 @@ struct artifact_tool_form_datum
|
||||
std::string name;
|
||||
char sym;
|
||||
nc_color color;
|
||||
material m1;
|
||||
material m2;
|
||||
std::string m1;
|
||||
std::string m2;
|
||||
int volume_min, volume_max;
|
||||
int weight_min, weight_max;
|
||||
artifact_weapon_type base_weapon;
|
||||
@@ -262,7 +57,7 @@ struct artifact_tool_form_datum
|
||||
|
||||
/*
|
||||
artifact_tool_form_datum
|
||||
(std::string Name, char Sym, nc_color Color, material M1, material M2,
|
||||
(std::string Name, char Sym, nc_color Color, std::string M1, std::string M2,
|
||||
int Volmin, int Volmax, int Wgtmin, int Wgtmax, artifact_weapon_type Base,
|
||||
artifact_weapon_type extra[3])
|
||||
: name (Name), sym (Sym), color (Color), m1 (M1), m2 (M2),
|
||||
@@ -283,25 +78,7 @@ enum artifact_tool_form
|
||||
NUM_ARTTOOLFORMS
|
||||
};
|
||||
|
||||
artifact_tool_form_datum artifact_tool_form_data[NUM_ARTTOOLFORMS] = {
|
||||
{"", '*', c_white, MNULL, MNULL, 0, 0, 0, 0, ARTWEAP_BULK,
|
||||
{ARTWEAP_NULL, ARTWEAP_NULL, ARTWEAP_NULL}},
|
||||
|
||||
{"Harp", ';', c_yellow, WOOD, MNULL, 20, 30, 10, 18, ARTWEAP_BULK,
|
||||
{ARTWEAP_SPEAR, ARTWEAP_SWORD, ARTWEAP_KNIFE}},
|
||||
|
||||
{"Staff", '/', c_brown, WOOD, MNULL, 6, 12, 4, 10, ARTWEAP_CLUB,
|
||||
{ARTWEAP_BULK, ARTWEAP_SPEAR, ARTWEAP_KNIFE}},
|
||||
|
||||
{"Sword", '/', c_ltblue, STEEL, MNULL, 8, 14, 8, 28, ARTWEAP_SWORD,
|
||||
{ARTWEAP_BULK, ARTWEAP_NULL, ARTWEAP_NULL}},
|
||||
|
||||
{"Dagger", ';', c_ltblue, STEEL, MNULL, 1, 4, 1, 6, ARTWEAP_KNIFE,
|
||||
{ARTWEAP_NULL, ARTWEAP_NULL, ARTWEAP_NULL}},
|
||||
|
||||
{"Cube", '*', c_white, STEEL, MNULL, 1, 3, 1, 20, ARTWEAP_BULK,
|
||||
{ARTWEAP_SPEAR, ARTWEAP_NULL, ARTWEAP_NULL}}
|
||||
};
|
||||
extern artifact_tool_form_datum artifact_tool_form_data[NUM_ARTTOOLFORMS];
|
||||
|
||||
struct artifact_weapon_datum
|
||||
{
|
||||
@@ -310,23 +87,10 @@ struct artifact_weapon_datum
|
||||
int bash_min, bash_max;
|
||||
int cut_min, cut_max;
|
||||
int to_hit_min, to_hit_max;
|
||||
unsigned flags : NUM_ITEM_FLAGS;
|
||||
std::string tag;
|
||||
};
|
||||
|
||||
artifact_weapon_datum artifact_weapon_data[NUM_ARTWEAPS] = {
|
||||
{"", 0, 0, 0, 0, 0, 0, 0, 0, 0},
|
||||
// Adjective Vol,wgt Bash Cut To-Hit
|
||||
{"Heavy", 0, 12, 10, 20, 0, 0, -2, 0,
|
||||
0},
|
||||
{"Knobbed", 1, 2, 14, 30, 0, 0, -1, 1,
|
||||
0},
|
||||
{"Spiked", 1, 1, 0, 0, 20, 40, -1, 1,
|
||||
mfb(IF_SPEAR)},
|
||||
{"Edged", 2, 4, 0, 0, 20, 50, -1, 2,
|
||||
0},
|
||||
{"Bladed", 1, 2, 0, 0, 12, 30, -1, 1,
|
||||
mfb(IF_STAB)}
|
||||
};
|
||||
extern artifact_weapon_datum artifact_weapon_data[NUM_ARTWEAPS];
|
||||
|
||||
enum artifact_armor_mod
|
||||
{
|
||||
@@ -344,12 +108,12 @@ struct artifact_armor_form_datum
|
||||
{
|
||||
std::string name;
|
||||
nc_color color;
|
||||
material m1;
|
||||
material m2;
|
||||
std::string m1;
|
||||
std::string m2;
|
||||
int volume, weight;
|
||||
int encumb;
|
||||
int dmg_resist;
|
||||
int cut_resist;
|
||||
int coverage;
|
||||
int thickness;
|
||||
int env_resist;
|
||||
int warmth;
|
||||
int storage;
|
||||
@@ -361,13 +125,13 @@ struct artifact_armor_form_datum
|
||||
/*
|
||||
// Constructor
|
||||
artifact_armor_form_datum
|
||||
(std::string Name, nc_color Color, material M1, material M2, int Volume,
|
||||
(std::string Name, nc_color Color, std::string M1, std::string M2, int Volume,
|
||||
int Weight, int Encumb, int Dmg_res, int Cut_res, int Env_res,
|
||||
int Warmth, int Storage, int Bash, int Cut, int Hit, unsigned char Covers,
|
||||
bool Plural, artifact_armor_mod Mods[5])
|
||||
: name (Name), color (Color), m1 (M1), m2 (M2), volume (Volume),
|
||||
weight (Weight), encumb (Encumb), dmg_resist (Dmg_res),
|
||||
cut_resist (Cut_res), env_resist (Env_res), warmth (Warmth),
|
||||
weight (Weight), encumb (Encumb), coverage (Coverage),
|
||||
thickness (thickness), env_resist (Env_res), warmth (Warmth),
|
||||
storage (Storage), melee_bash (Bash), melee_cut (Cut), melee_hit (Hit),
|
||||
covers (Covers), plural (Plural), available_mods (Mods) { };
|
||||
|
||||
@@ -387,102 +151,18 @@ enum artifact_armor_form
|
||||
NUM_ARTARMFORMS
|
||||
};
|
||||
|
||||
artifact_armor_form_datum artifact_armor_form_data[NUM_ARTARMFORMS] = {
|
||||
{"", c_white, MNULL, MNULL, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, false,
|
||||
{ARMORMOD_NULL, ARMORMOD_NULL, ARMORMOD_NULL, ARMORMOD_NULL, ARMORMOD_NULL}},
|
||||
// Name color Materials Vol Wgt Enc Dmg Cut Env Wrm Sto Bsh Cut Hit
|
||||
{"Robe", c_red, WOOL, MNULL, 6, 6, 1, 3, 1, 0, 2, 0, -8, 0, -3,
|
||||
mfb(bp_torso)|mfb(bp_legs), false,
|
||||
{ARMORMOD_LIGHT, ARMORMOD_BULKY, ARMORMOD_POCKETED, ARMORMOD_FURRED,
|
||||
ARMORMOD_PADDED}},
|
||||
|
||||
{"Coat", c_brown,LEATHER,MNULL, 14, 14, 2, 4, 12, 1, 4, 4, -6, 0, -3,
|
||||
mfb(bp_torso), false,
|
||||
{ARMORMOD_LIGHT, ARMORMOD_POCKETED, ARMORMOD_FURRED, ARMORMOD_PADDED,
|
||||
ARMORMOD_PLATED}},
|
||||
|
||||
{"Mask", c_white, WOOD, MNULL, 4, 1, 2, 2, 16, 1, 2, 0, 2, 0, -2,
|
||||
mfb(bp_eyes)|mfb(bp_mouth), false,
|
||||
{ARMORMOD_FURRED, ARMORMOD_FURRED, ARMORMOD_NULL, ARMORMOD_NULL,
|
||||
ARMORMOD_NULL}},
|
||||
|
||||
// Name color Materials Vol Wgt Enc Dmg Cut Env Wrm Sto Bsh Cut Hit
|
||||
{"Helm", c_dkgray,SILVER, MNULL, 6, 6, 2, 4, 18, 0, 1, 0, 8, 0, -2,
|
||||
mfb(bp_head), false,
|
||||
{ARMORMOD_BULKY, ARMORMOD_FURRED, ARMORMOD_PADDED, ARMORMOD_PLATED,
|
||||
ARMORMOD_NULL}},
|
||||
|
||||
{"Gloves", c_ltblue,LEATHER,MNULL, 2, 1, 1, 6, 6, 1, 2, 0, -4, 0, -2,
|
||||
mfb(bp_hands), true,
|
||||
{ARMORMOD_BULKY, ARMORMOD_FURRED, ARMORMOD_PADDED, ARMORMOD_PLATED,
|
||||
ARMORMOD_NULL}},
|
||||
|
||||
// Name color Materials Vol Wgt Enc Dmg Cut Env Wrm Sto Bsh Cut Hit
|
||||
{"Boots", c_blue, LEATHER, MNULL, 6, 2, 1, 6, 6, 1, 3, 0, 4, 0, -1,
|
||||
mfb(bp_feet), true,
|
||||
{ARMORMOD_LIGHT, ARMORMOD_BULKY, ARMORMOD_PADDED, ARMORMOD_PLATED,
|
||||
ARMORMOD_NULL}},
|
||||
|
||||
{"Ring", c_ltgreen, SILVER, MNULL, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, true,
|
||||
{ARMORMOD_NULL, ARMORMOD_NULL, ARMORMOD_NULL, ARMORMOD_NULL, ARMORMOD_NULL}}
|
||||
|
||||
};
|
||||
extern artifact_armor_form_datum artifact_armor_form_data[NUM_ARTARMFORMS];
|
||||
|
||||
/* Armor mods alter the normal values of armor.
|
||||
* If the basic armor type has MNULL as its second material, and the mod has a
|
||||
* If the basic armor type has "null" as its second material, and the mod has a
|
||||
* material attached, the second material will be changed.
|
||||
*/
|
||||
artifact_armor_form_datum artifact_armor_mod_data[NUM_ARMORMODS] = {
|
||||
|
||||
{"", c_white, MNULL, MNULL, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, false,
|
||||
{ARMORMOD_NULL, ARMORMOD_NULL, ARMORMOD_NULL, ARMORMOD_NULL, ARMORMOD_NULL}},
|
||||
// Description; "It is ..." or "They are ..."
|
||||
{"very thin and light.", c_white, MNULL, MNULL,
|
||||
// Vol Wgt Enc Dmg Cut Env Wrm Sto
|
||||
-4, -8, -2, -1, -1, -1, -1, 0, 0, 0, 0, 0, false,
|
||||
{ARMORMOD_NULL, ARMORMOD_NULL, ARMORMOD_NULL, ARMORMOD_NULL, ARMORMOD_NULL}},
|
||||
|
||||
{"extremely bulky.", c_white, MNULL, MNULL,
|
||||
8, 10, 2, 1, 1, 0, 1, 0, 0, 0, 0, 0, false,
|
||||
{ARMORMOD_NULL, ARMORMOD_NULL, ARMORMOD_NULL, ARMORMOD_NULL, ARMORMOD_NULL}},
|
||||
|
||||
{"covered in pockets.", c_white, MNULL, MNULL,
|
||||
1, 1, 1, 0, 0, 0, 0, 16, 0, 0, 0, 0, false,
|
||||
{ARMORMOD_NULL, ARMORMOD_NULL, ARMORMOD_NULL, ARMORMOD_NULL, ARMORMOD_NULL}},
|
||||
|
||||
{"disgustingly furry.", c_white, WOOL, MNULL,
|
||||
// Vol Wgt Enc Dmg Cut Env Wrm Sto
|
||||
4, 2, 1, 4, 0, 1, 3, 0, 0, 0, 0, 0, false,
|
||||
{ARMORMOD_NULL, ARMORMOD_NULL, ARMORMOD_NULL, ARMORMOD_NULL, ARMORMOD_NULL}},
|
||||
|
||||
{"leather-padded.", c_white, LEATHER, MNULL,
|
||||
4, 4, 1, 10, 4, 0, 1, -3, 0, 0, 0, 0, false,
|
||||
{ARMORMOD_NULL, ARMORMOD_NULL, ARMORMOD_NULL, ARMORMOD_NULL, ARMORMOD_NULL}},
|
||||
|
||||
{"plated in iron.", c_white, IRON, MNULL,
|
||||
4, 12, 3, 8, 14, 0, 1, -4, 0, 0, 0, 0, false,
|
||||
{ARMORMOD_NULL, ARMORMOD_NULL, ARMORMOD_NULL, ARMORMOD_NULL, ARMORMOD_NULL}},
|
||||
|
||||
};
|
||||
|
||||
extern artifact_armor_form_datum artifact_armor_mod_data[NUM_ARMORMODS];
|
||||
|
||||
#define NUM_ART_ADJS 20
|
||||
std::string artifact_adj[NUM_ART_ADJS] = {
|
||||
"Forbidden", "Unknown", "Forgotten", "Hideous", "Eldritch",
|
||||
"Gelatinous", "Ancient", "Cursed", "Bloody", "Undying",
|
||||
"Shadowy", "Silent", "Cyclopean", "Fungal", "Unspeakable",
|
||||
"Grotesque", "Frigid", "Shattered", "Sleeping", "Repellent"
|
||||
};
|
||||
extern std::string artifact_adj[NUM_ART_ADJS];
|
||||
|
||||
#define NUM_ART_NOUNS 20
|
||||
// Prepending + makes it proper, e.g. "The Forbidden Abyss"
|
||||
std::string artifact_noun[NUM_ART_NOUNS] = {
|
||||
"Technique", "Dreams", "Beasts", "Evil", "Miasma",
|
||||
"+Abyss", "+City", "Shadows", "Shade", "Illusion",
|
||||
"Justice", "+Necropolis", "Ichor", "+Monolith", "Aeons",
|
||||
"Graves", "Horrors", "Suffering", "Death", "Horror"
|
||||
};
|
||||
extern std::string artifact_noun[NUM_ART_NOUNS];
|
||||
|
||||
#endif
|
||||
|
||||
+755
@@ -0,0 +1,755 @@
|
||||
#include "game.h"
|
||||
#include "auto_pickup.h"
|
||||
#include "output.h"
|
||||
#include "debug.h"
|
||||
#include "keypress.h"
|
||||
#include "item_factory.h"
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <fstream>
|
||||
#include <string>
|
||||
|
||||
std::vector<cPickupRules> vAutoPickupRules[5];
|
||||
|
||||
void game::show_auto_pickup()
|
||||
{
|
||||
save_reset_changes(false);
|
||||
|
||||
const int iHeaderHeight = 4;
|
||||
const int iContentHeight = FULL_SCREEN_HEIGHT-2-iHeaderHeight;
|
||||
|
||||
const int iOffsetX = (TERMX > FULL_SCREEN_WIDTH) ? (TERMX-FULL_SCREEN_WIDTH)/2 : 0;
|
||||
const int iOffsetY = (TERMY > FULL_SCREEN_HEIGHT) ? (TERMY-FULL_SCREEN_HEIGHT)/2 : 0;
|
||||
|
||||
std::map<int, bool> mapLines;
|
||||
mapLines[3] = true;
|
||||
mapLines[50] = true;
|
||||
mapLines[54] = true;
|
||||
//mapLines[61] = true;
|
||||
//mapLines[68] = true;
|
||||
|
||||
const int iTotalCols = mapLines.size()-1;
|
||||
|
||||
WINDOW* w_auto_pickup_options = newwin(FULL_SCREEN_HEIGHT/2, FULL_SCREEN_WIDTH/2, iOffsetY + (FULL_SCREEN_HEIGHT/2)/2, iOffsetX + (FULL_SCREEN_WIDTH/2)/2);
|
||||
WINDOW* w_auto_pickup_help = newwin((FULL_SCREEN_HEIGHT/2)-2, FULL_SCREEN_WIDTH * 3/4, 8 + iOffsetY + (FULL_SCREEN_HEIGHT/2)/2, iOffsetX + 19/2);
|
||||
|
||||
WINDOW* w_auto_pickup_border = newwin(FULL_SCREEN_HEIGHT, FULL_SCREEN_WIDTH, iOffsetY, iOffsetX);
|
||||
WINDOW* w_auto_pickup_header = newwin(iHeaderHeight, FULL_SCREEN_WIDTH - 2, 1 + iOffsetY, 1 + iOffsetX);
|
||||
WINDOW* w_auto_pickup = newwin(iContentHeight, FULL_SCREEN_WIDTH - 2, iHeaderHeight + 1 + iOffsetY, 1 + iOffsetX);
|
||||
|
||||
wborder(w_auto_pickup_border, LINE_XOXO, LINE_XOXO, LINE_OXOX, LINE_OXOX, LINE_OXXO, LINE_OOXX, LINE_XXOO, LINE_XOOX);
|
||||
mvwputch(w_auto_pickup_border, 3, 0, c_ltgray, LINE_XXXO); // |-
|
||||
mvwputch(w_auto_pickup_border, 3, 79, c_ltgray, LINE_XOXX); // -|
|
||||
|
||||
for (std::map<int, bool>::iterator iter = mapLines.begin(); iter != mapLines.end(); ++iter) {
|
||||
mvwputch(w_auto_pickup_border, FULL_SCREEN_HEIGHT-1, iter->first + 1, c_ltgray, LINE_XXOX); // _|_
|
||||
}
|
||||
|
||||
mvwprintz(w_auto_pickup_border, 0, 29, c_ltred, " AUTO PICKUP MANAGER ");
|
||||
wrefresh(w_auto_pickup_border);
|
||||
|
||||
mvwprintz(w_auto_pickup_header, 0, 0, c_ltgreen, " A");
|
||||
wprintz(w_auto_pickup_header, c_white, "dd ");
|
||||
|
||||
wprintz(w_auto_pickup_header, c_ltgreen, "R");
|
||||
wprintz(w_auto_pickup_header, c_white, "emove ");
|
||||
|
||||
wprintz(w_auto_pickup_header, c_ltgreen, "C");
|
||||
wprintz(w_auto_pickup_header, c_white, "opy ");
|
||||
|
||||
wprintz(w_auto_pickup_header, c_ltgreen, "M");
|
||||
wprintz(w_auto_pickup_header, c_white, "ove ");
|
||||
|
||||
wprintz(w_auto_pickup_header, c_ltgreen, "E");
|
||||
wprintz(w_auto_pickup_header, c_white, "nable ");
|
||||
|
||||
wprintz(w_auto_pickup_header, c_ltgreen, "D");
|
||||
wprintz(w_auto_pickup_header, c_white, "isable ");
|
||||
|
||||
wprintz(w_auto_pickup_header, c_ltgreen, "T");
|
||||
wprintz(w_auto_pickup_header, c_white, "est ");
|
||||
|
||||
mvwprintz(w_auto_pickup_header, 1, 0, c_ltgreen, " +");
|
||||
wprintz(w_auto_pickup_header, c_white, "/");
|
||||
wprintz(w_auto_pickup_header, c_ltgreen, "-");
|
||||
wprintz(w_auto_pickup_header, c_white, " Move up/down ");
|
||||
|
||||
wprintz(w_auto_pickup_header, c_ltgreen, "Enter");
|
||||
wprintz(w_auto_pickup_header, c_white, "-Edit ");
|
||||
|
||||
wprintz(w_auto_pickup_header, c_ltgreen, "Tab");
|
||||
wprintz(w_auto_pickup_header, c_white, "-Switch Page ");
|
||||
|
||||
|
||||
for (int i = 0; i < 78; i++) {
|
||||
if (mapLines[i]) {
|
||||
mvwputch(w_auto_pickup_header, 2, i, c_ltgray, LINE_OXXX);
|
||||
mvwputch(w_auto_pickup_header, 3, i, c_ltgray, LINE_XOXO);
|
||||
} else {
|
||||
mvwputch(w_auto_pickup_header, 2, i, c_ltgray, LINE_OXOX); // Draw line under header
|
||||
}
|
||||
}
|
||||
|
||||
mvwprintz(w_auto_pickup_header, 3, 0, c_white, "#");
|
||||
mvwprintz(w_auto_pickup_header, 3, 7, c_white, "Rules");
|
||||
mvwprintz(w_auto_pickup_header, 3, 51, c_white, "I/E");
|
||||
//mvwprintz(w_auto_pickup_header, 3, 55, c_white, "Volume");
|
||||
//mvwprintz(w_auto_pickup_header, 3, 62, c_white, "Weight");
|
||||
|
||||
wrefresh(w_auto_pickup_header);
|
||||
|
||||
int iCurrentPage = 1;
|
||||
int iCurrentLine = 0;
|
||||
int iCurrentCol = 1;
|
||||
int iStartPos = 0;
|
||||
bool bStuffChanged = false;
|
||||
char ch = ' ';
|
||||
|
||||
std::stringstream sTemp;
|
||||
|
||||
do {
|
||||
mvwprintz(w_auto_pickup_header, 2, 17 + 0, c_white, "[");
|
||||
wprintz(w_auto_pickup_header, (iCurrentPage == 1) ? hilite(c_white) : c_white, "Global");
|
||||
wprintz(w_auto_pickup_header, c_white, "]");
|
||||
|
||||
mvwprintz(w_auto_pickup_header, 2, 17 + 9, c_white, "[");
|
||||
wprintz(w_auto_pickup_header, (iCurrentPage == 2) ? hilite(c_white) : c_white, "Character");
|
||||
wprintz(w_auto_pickup_header, c_white, "]");
|
||||
|
||||
/*
|
||||
mvwprintz(w_auto_pickup_header, 2, 12 + 21, c_white, "[");
|
||||
wprintz(w_auto_pickup_header, (iCurrentPage == 3) ? hilite(c_white) : c_white, "Options");
|
||||
wprintz(w_auto_pickup_header, c_white, "]");
|
||||
*/
|
||||
|
||||
wrefresh(w_auto_pickup_header);
|
||||
|
||||
// Clear the lines
|
||||
for (int i = 0; i < iContentHeight; i++) {
|
||||
for (int j = 0; j < 79; j++) {
|
||||
if (mapLines[j]) {
|
||||
mvwputch(w_auto_pickup, i, j, c_ltgray, LINE_XOXO);
|
||||
} else {
|
||||
mvwputch(w_auto_pickup, i, j, c_black, ' ');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (iCurrentPage == 1 || iCurrentPage == 2) {
|
||||
if (iCurrentPage == 2 && g->u.name == "") {
|
||||
vAutoPickupRules[2].clear();
|
||||
mvwprintz(w_auto_pickup, 8, 15, c_white, "Please load a character first to use this page!");
|
||||
}
|
||||
|
||||
if (vAutoPickupRules[iCurrentPage].size() > iContentHeight) {
|
||||
iStartPos = iCurrentLine - (iContentHeight - 1) / 2;
|
||||
|
||||
if (iStartPos < 0) {
|
||||
iStartPos = 0;
|
||||
} else if (iStartPos + iContentHeight > vAutoPickupRules[iCurrentPage].size()) {
|
||||
iStartPos = vAutoPickupRules[iCurrentPage].size() - iContentHeight;
|
||||
}
|
||||
}
|
||||
|
||||
// display auto pickup
|
||||
for (int i = iStartPos; i < vAutoPickupRules[iCurrentPage].size(); i++) {
|
||||
if (i >= iStartPos && i < iStartPos + ((iContentHeight > vAutoPickupRules[iCurrentPage].size()) ? vAutoPickupRules[iCurrentPage].size() : iContentHeight)) {
|
||||
nc_color cLineColor = (vAutoPickupRules[iCurrentPage][i].bActive) ? c_white : c_ltgray;
|
||||
|
||||
sTemp.str("");
|
||||
sTemp << i + 1;
|
||||
mvwprintz(w_auto_pickup, i - iStartPos, 0, cLineColor, sTemp.str().c_str());
|
||||
mvwprintz(w_auto_pickup, i - iStartPos, 4, cLineColor, "");
|
||||
|
||||
if (iCurrentLine == i) {
|
||||
wprintz(w_auto_pickup, c_yellow, ">> ");
|
||||
} else {
|
||||
wprintz(w_auto_pickup, c_yellow, " ");
|
||||
}
|
||||
|
||||
wprintz(w_auto_pickup, (iCurrentLine == i && iCurrentCol == 1) ? hilite(cLineColor) : cLineColor, "%s", ((vAutoPickupRules[iCurrentPage][i].sRule == "") ? "<empty rule>" : vAutoPickupRules[iCurrentPage][i].sRule).c_str());
|
||||
|
||||
mvwprintz(w_auto_pickup, i - iStartPos, 52, (iCurrentLine == i && iCurrentCol == 2) ? hilite(cLineColor) : cLineColor, "%s", ((vAutoPickupRules[iCurrentPage][i].bExclude) ? "E" : "I"));
|
||||
}
|
||||
}
|
||||
|
||||
wrefresh(w_auto_pickup);
|
||||
|
||||
} else if (iCurrentPage == 3) {
|
||||
wborder(w_auto_pickup_options, LINE_XOXO, LINE_XOXO, LINE_OXOX, LINE_OXOX, LINE_OXXO, LINE_OOXX, LINE_XXOO, LINE_XOOX);
|
||||
|
||||
mvwprintz(w_auto_pickup_options, 5, 10, c_white, "Under construction!");
|
||||
|
||||
wrefresh(w_auto_pickup);
|
||||
wrefresh(w_auto_pickup_options);
|
||||
}
|
||||
|
||||
ch = input();
|
||||
|
||||
if (iCurrentPage == 3) {
|
||||
switch(ch) {
|
||||
case '\t': //Switch to next Page
|
||||
iCurrentPage++;
|
||||
if (iCurrentPage > 3) {
|
||||
iCurrentPage = 1;
|
||||
iCurrentLine = 0;
|
||||
}
|
||||
break;
|
||||
}
|
||||
} else if (iCurrentPage == 1 || iCurrentPage == 2) {
|
||||
if (iCurrentPage == 2 && g->u.name == "" && ch != '\t') {
|
||||
//Only allow loaded games to use the char sheet
|
||||
} else if (vAutoPickupRules[iCurrentPage].size() > 0 || ch == 'a' || ch == '\t') {
|
||||
switch(ch) {
|
||||
case 'j': //move down
|
||||
iCurrentLine++;
|
||||
iCurrentCol = 1;
|
||||
if (iCurrentLine >= vAutoPickupRules[iCurrentPage].size()) {
|
||||
iCurrentLine = 0;
|
||||
}
|
||||
break;
|
||||
case 'k': //move up
|
||||
iCurrentLine--;
|
||||
iCurrentCol = 1;
|
||||
if (iCurrentLine < 0) {
|
||||
iCurrentLine = vAutoPickupRules[iCurrentPage].size()-1;
|
||||
}
|
||||
break;
|
||||
case 'a': //add new rule
|
||||
case 'A':
|
||||
bStuffChanged = true;
|
||||
vAutoPickupRules[iCurrentPage].push_back(cPickupRules("", true, false));
|
||||
iCurrentLine = vAutoPickupRules[iCurrentPage].size()-1;
|
||||
break;
|
||||
case 'r': //remove rule
|
||||
case 'R':
|
||||
bStuffChanged = true;
|
||||
vAutoPickupRules[iCurrentPage].erase(vAutoPickupRules[iCurrentPage].begin() + iCurrentLine);
|
||||
if (iCurrentLine > vAutoPickupRules[iCurrentPage].size()-1) {
|
||||
iCurrentLine--;
|
||||
}
|
||||
break;
|
||||
case 'c': //copy rule
|
||||
case 'C':
|
||||
bStuffChanged = true;
|
||||
vAutoPickupRules[iCurrentPage].push_back(cPickupRules(vAutoPickupRules[iCurrentPage][iCurrentLine].sRule, vAutoPickupRules[iCurrentPage][iCurrentLine].bActive, vAutoPickupRules[iCurrentPage][iCurrentLine].bExclude));
|
||||
iCurrentLine = vAutoPickupRules[iCurrentPage].size()-1;
|
||||
break;
|
||||
case 'm': //move rule global <-> character
|
||||
case 'M':
|
||||
if ((iCurrentPage == 1 && g->u.name != "") || iCurrentPage == 2) {
|
||||
bStuffChanged = true;
|
||||
//copy over
|
||||
vAutoPickupRules[(iCurrentPage == 1) ? 2 : 1].push_back(cPickupRules(vAutoPickupRules[iCurrentPage][iCurrentLine].sRule, vAutoPickupRules[iCurrentPage][iCurrentLine].bActive, vAutoPickupRules[iCurrentPage][iCurrentLine].bExclude));
|
||||
|
||||
//remove old
|
||||
vAutoPickupRules[iCurrentPage].erase(vAutoPickupRules[iCurrentPage].begin() + iCurrentLine);
|
||||
iCurrentLine = vAutoPickupRules[(iCurrentPage == 1) ? 2 : 1].size()-1;
|
||||
iCurrentPage = (iCurrentPage == 1) ? 2 : 1;
|
||||
}
|
||||
break;
|
||||
case '\t': //Switch to next Page
|
||||
iCurrentPage++;
|
||||
if (iCurrentPage > 2) {
|
||||
iCurrentPage = 1;
|
||||
iCurrentLine = 0;
|
||||
}
|
||||
break;
|
||||
case '\n': //Edit Col in current line
|
||||
bStuffChanged = true;
|
||||
if (iCurrentCol == 1) {
|
||||
mvwprintz(w_auto_pickup_help, 1, 1, c_white, "* is used as a Wildcard. A few Examples:");
|
||||
mvwprintz(w_auto_pickup_help, 2, 1, c_white, "");
|
||||
mvwprintz(w_auto_pickup_help, 3, 1, c_white, "wood arrow matches the itemname exactly");
|
||||
mvwprintz(w_auto_pickup_help, 4, 1, c_white, "wood ar* matches items beginning with wood ar");
|
||||
mvwprintz(w_auto_pickup_help, 5, 1, c_white, "*rrow matches items ending with rrow");
|
||||
mvwprintz(w_auto_pickup_help, 6, 1, c_white, "*avy fle*fi*arrow multible * are allowed");
|
||||
mvwprintz(w_auto_pickup_help, 7, 1, c_white, "heAVY*woOD*arrOW case insesitive search");
|
||||
mvwprintz(w_auto_pickup_help, 8, 1, c_white, "");
|
||||
|
||||
wborder(w_auto_pickup_help, LINE_XOXO, LINE_XOXO, LINE_OXOX, LINE_OXOX, LINE_OXXO, LINE_OOXX, LINE_XXOO, LINE_XOOX);
|
||||
wrefresh(w_auto_pickup_help);
|
||||
vAutoPickupRules[iCurrentPage][iCurrentLine].sRule = trim_rule(string_input_popup("Pickup Rule:", 30, vAutoPickupRules[iCurrentPage][iCurrentLine].sRule));
|
||||
} else if (iCurrentCol == 2) {
|
||||
vAutoPickupRules[iCurrentPage][iCurrentLine].bExclude = !vAutoPickupRules[iCurrentPage][iCurrentLine].bExclude;
|
||||
}
|
||||
break;
|
||||
case 'e': //enable rule
|
||||
case 'E':
|
||||
bStuffChanged = true;
|
||||
vAutoPickupRules[iCurrentPage][iCurrentLine].bActive = true;
|
||||
break;
|
||||
case 'd': //disable rule
|
||||
case 'D':
|
||||
bStuffChanged = true;
|
||||
vAutoPickupRules[iCurrentPage][iCurrentLine].bActive = false;
|
||||
break;
|
||||
case 'h': //move left
|
||||
iCurrentCol--;
|
||||
if (iCurrentCol < 1) {
|
||||
iCurrentCol = iTotalCols;
|
||||
}
|
||||
break;
|
||||
case 'l': //move right
|
||||
iCurrentCol++;
|
||||
if (iCurrentCol > iTotalCols) {
|
||||
iCurrentCol = 1;
|
||||
}
|
||||
break;
|
||||
case '+': //move rule up
|
||||
bStuffChanged = true;
|
||||
if (iCurrentLine < vAutoPickupRules[iCurrentPage].size()-1) {
|
||||
std::swap(vAutoPickupRules[iCurrentPage][iCurrentLine], vAutoPickupRules[iCurrentPage][iCurrentLine+1]);
|
||||
iCurrentLine++;
|
||||
iCurrentCol = 1;
|
||||
}
|
||||
break;
|
||||
case '-': //move rule down
|
||||
bStuffChanged = true;
|
||||
if (iCurrentLine > 0) {
|
||||
std::swap(vAutoPickupRules[iCurrentPage][iCurrentLine], vAutoPickupRules[iCurrentPage][iCurrentLine-1]);
|
||||
iCurrentLine--;
|
||||
iCurrentCol = 1;
|
||||
}
|
||||
break;
|
||||
case 't': //test rule
|
||||
case 'T':
|
||||
test_pattern(iCurrentPage, iCurrentLine);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
} while(ch != 'q' && ch != 'Q' && ch != KEY_ESCAPE);
|
||||
|
||||
if (bStuffChanged) {
|
||||
if(query_yn("Save changes?")) {
|
||||
save_auto_pickup(false);
|
||||
|
||||
if (g->u.name != "") {
|
||||
save_auto_pickup(true);
|
||||
}
|
||||
} else {
|
||||
save_reset_changes(true);
|
||||
}
|
||||
}
|
||||
|
||||
werase(w_auto_pickup);
|
||||
werase(w_auto_pickup_border);
|
||||
werase(w_auto_pickup_header);
|
||||
werase(w_auto_pickup_options);
|
||||
werase(w_auto_pickup_help);
|
||||
}
|
||||
|
||||
void test_pattern(int iCurrentPage, int iCurrentLine)
|
||||
{
|
||||
std::vector<std::string> vMatchingItems;
|
||||
std::string sItemName = "";
|
||||
|
||||
if (vAutoPickupRules[iCurrentPage][iCurrentLine].sRule == "") {
|
||||
return;
|
||||
}
|
||||
|
||||
//Loop through all itemfactory items
|
||||
for (int i = 0; i < standard_itype_ids.size(); i++) {
|
||||
sItemName = item_controller->find_template(standard_itype_ids[i])->name;
|
||||
if (auto_pickup_match(sItemName, vAutoPickupRules[iCurrentPage][iCurrentLine].sRule)) {
|
||||
vMatchingItems.push_back(sItemName);
|
||||
}
|
||||
}
|
||||
|
||||
const int iOffsetX = 15 + ((TERMX > FULL_SCREEN_WIDTH) ? (TERMX-FULL_SCREEN_WIDTH)/2 : 0);
|
||||
const int iOffsetY = 5 + ((TERMY > FULL_SCREEN_HEIGHT) ? (TERMY-FULL_SCREEN_HEIGHT)/2 : 0);
|
||||
|
||||
int iStartPos = 0;
|
||||
const int iContentHeight = FULL_SCREEN_HEIGHT - 8;
|
||||
const int iContentWidth = FULL_SCREEN_WIDTH - 30;
|
||||
char ch;
|
||||
std::stringstream sTemp;
|
||||
|
||||
WINDOW* w_test_rule_border = newwin(iContentHeight + 2, iContentWidth, iOffsetY, iOffsetX);
|
||||
WINDOW* w_test_rule_content = newwin(iContentHeight, iContentWidth - 2, 1 + iOffsetY, 1 + iOffsetX);
|
||||
|
||||
wborder(w_test_rule_border, LINE_XOXO, LINE_XOXO, LINE_OXOX, LINE_OXOX, LINE_OXXO, LINE_OOXX, LINE_XXOO, LINE_XOOX);
|
||||
|
||||
sTemp << vMatchingItems.size() << " items match: " << vAutoPickupRules[iCurrentPage][iCurrentLine].sRule;
|
||||
mvwprintz(w_test_rule_border, 0, iContentWidth/2 - (sTemp.str()).length()/2, hilite(c_white), sTemp.str().c_str());
|
||||
|
||||
wrefresh(w_test_rule_border);
|
||||
|
||||
iCurrentLine = 0;
|
||||
|
||||
do {
|
||||
// Clear the lines
|
||||
for (int i = 0; i < iContentHeight; i++) {
|
||||
for (int j = 0; j < 79; j++) {
|
||||
mvwputch(w_test_rule_content, i, j, c_black, ' ');
|
||||
}
|
||||
}
|
||||
|
||||
if (vMatchingItems.size() > iContentHeight) {
|
||||
iStartPos = iCurrentLine - (iContentHeight - 1) / 2;
|
||||
|
||||
if (iStartPos < 0) {
|
||||
iStartPos = 0;
|
||||
} else if (iStartPos + iContentHeight > vMatchingItems.size()) {
|
||||
iStartPos = vMatchingItems.size() - iContentHeight;
|
||||
}
|
||||
}
|
||||
|
||||
// display auto pickup
|
||||
for (int i = iStartPos; i < vMatchingItems.size(); i++) {
|
||||
if (i >= iStartPos && i < iStartPos + ((iContentHeight > vMatchingItems.size()) ? vMatchingItems.size() : iContentHeight)) {
|
||||
nc_color cLineColor = c_white;
|
||||
|
||||
sTemp.str("");
|
||||
sTemp << i + 1;
|
||||
mvwprintz(w_test_rule_content, i - iStartPos, 0, cLineColor, sTemp.str().c_str());
|
||||
mvwprintz(w_test_rule_content, i - iStartPos, 4, cLineColor, "");
|
||||
|
||||
if (iCurrentLine == i) {
|
||||
wprintz(w_test_rule_content, c_yellow, ">> ");
|
||||
} else {
|
||||
wprintz(w_test_rule_content, c_yellow, " ");
|
||||
}
|
||||
|
||||
wprintz(w_test_rule_content, (iCurrentLine == i) ? hilite(cLineColor) : cLineColor, vMatchingItems[i].c_str());
|
||||
}
|
||||
}
|
||||
|
||||
wrefresh(w_test_rule_content);
|
||||
|
||||
ch = input();
|
||||
|
||||
switch(ch) {
|
||||
case 'j': //move down
|
||||
iCurrentLine++;
|
||||
if (iCurrentLine >= vMatchingItems.size()) {
|
||||
iCurrentLine = 0;
|
||||
}
|
||||
break;
|
||||
case 'k': //move up
|
||||
iCurrentLine--;
|
||||
if (iCurrentLine < 0) {
|
||||
iCurrentLine = vMatchingItems.size()-1;
|
||||
}
|
||||
break;
|
||||
}
|
||||
} while(ch == 'j' || ch == 'k');
|
||||
|
||||
werase(w_test_rule_border);
|
||||
werase(w_test_rule_content);
|
||||
}
|
||||
|
||||
void load_auto_pickup(bool bCharacter)
|
||||
{
|
||||
std::ifstream fin;
|
||||
std::string sFile = "data/auto_pickup.txt";
|
||||
|
||||
if (bCharacter) {
|
||||
sFile = "save/" + g->u.name + ".apu.txt";
|
||||
}
|
||||
|
||||
fin.open(sFile.c_str());
|
||||
if(!fin.is_open()) {
|
||||
fin.close();
|
||||
|
||||
create_default_auto_pickup(bCharacter);
|
||||
|
||||
fin.open(sFile.c_str());
|
||||
if(!fin.is_open()) {
|
||||
DebugLog() << "Could neither read nor create " << sFile << "\n";
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
vAutoPickupRules[(bCharacter) ? 2 : 1].clear();
|
||||
|
||||
while(!fin.eof()) {
|
||||
std::string sLine;
|
||||
fin >> sLine;
|
||||
|
||||
if(sLine == "") { // Empty line, chomp it
|
||||
getline(fin, sLine);
|
||||
|
||||
} else if(sLine[0] == '#') { // # indicates a comment
|
||||
getline(fin, sLine);
|
||||
|
||||
} else {
|
||||
int iNum = std::count(sLine.begin(), sLine.end(), ';');
|
||||
|
||||
if(iNum != 2) {
|
||||
/*int iNum = std::count(sLine.begin(), sLine.end(), ' ');
|
||||
|
||||
if(iNum == 1) { //its an option! hurray
|
||||
|
||||
} else {*/
|
||||
DebugLog() << "Bad Rule: " << sLine << "\n";
|
||||
getline(fin, sLine);
|
||||
//}
|
||||
|
||||
} else {
|
||||
std::string sRule = "";
|
||||
bool bActive = true;
|
||||
bool bExclude = false;
|
||||
|
||||
int iPos = 0;
|
||||
int iCol = 1;
|
||||
do {
|
||||
iPos = sLine.find(";");
|
||||
|
||||
std::string sTemp = (iPos == std::string::npos) ? sLine : sLine.substr(0, iPos);
|
||||
|
||||
if (iCol == 1) {
|
||||
sRule = sTemp;
|
||||
|
||||
} else if (iCol == 2) {
|
||||
bActive = (sTemp == "T" || sTemp == "True") ? true : false;
|
||||
|
||||
} else if (iCol == 3) {
|
||||
bExclude = (sTemp == "T" || sTemp == "True") ? true : false;
|
||||
}
|
||||
|
||||
iCol++;
|
||||
|
||||
if (iPos != std::string::npos) {
|
||||
sLine = sLine.substr(iPos+1, sLine.size());
|
||||
}
|
||||
|
||||
} while(iPos != std::string::npos);
|
||||
|
||||
vAutoPickupRules[(bCharacter) ? 2 : 1].push_back(cPickupRules(sRule, bActive, bExclude));
|
||||
}
|
||||
}
|
||||
|
||||
if(fin.peek() == '\n') {
|
||||
getline(fin, sLine); // Chomp
|
||||
}
|
||||
}
|
||||
|
||||
fin.close();
|
||||
|
||||
merge_vector();
|
||||
}
|
||||
|
||||
void merge_vector()
|
||||
{
|
||||
vAutoPickupRules[0].clear();
|
||||
|
||||
for (int i=1; i <= 2; i++) { //Loop through global 1 and character 2
|
||||
for (int j=0; j < vAutoPickupRules[i].size(); j++) {
|
||||
if (vAutoPickupRules[i][j].sRule != "") {
|
||||
vAutoPickupRules[0].push_back(cPickupRules(vAutoPickupRules[i][j].sRule, vAutoPickupRules[i][j].bActive, vAutoPickupRules[i][j].bExclude));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void save_reset_changes(bool bReset)
|
||||
{
|
||||
for (int i=1; i <= 2; i++) { //Loop through global 1 and character 2
|
||||
vAutoPickupRules[i + ((bReset) ? 0: 2)].clear();
|
||||
for (int j=0; j < vAutoPickupRules[i + ((bReset) ? 2: 0)].size(); j++) {
|
||||
if (vAutoPickupRules[i + ((bReset) ? 2: 0)][j].sRule != "") {
|
||||
vAutoPickupRules[i + ((bReset) ? 0: 2)].push_back(cPickupRules(vAutoPickupRules[i + ((bReset) ? 2: 0)][j].sRule, vAutoPickupRules[i + ((bReset) ? 2: 0)][j].bActive, vAutoPickupRules[i + ((bReset) ? 2: 0)][j].bExclude));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
merge_vector();
|
||||
}
|
||||
|
||||
std::string auto_pickup_header(bool bCharacter)
|
||||
{
|
||||
std::string sTemp = (bCharacter) ? "character": "global";
|
||||
return "# This is the " + sTemp + " auto pickup rules file. The format is\n\
|
||||
# <pickup rule>;<dis/enabled>;<in/exclude>\n\n\
|
||||
# <pickup rule> Simple text. No other special characters except spaces and *\n\
|
||||
# <dis/enabled> Can be T(rue) of F(alse)\n\
|
||||
# <in/exclude> Can be T(rue) of F(alse)\n\
|
||||
#\n\
|
||||
# If # is at the start of a line, it is considered a comment and is ignored.\n\
|
||||
# In-line commenting is not allowed. I think.\n\
|
||||
#\n\
|
||||
# If you want to restore the default auto pickup rules file, simply delete this file.\n\
|
||||
# A new auto_pickup.txt will be created next time you play.\
|
||||
\n\n";
|
||||
}
|
||||
|
||||
void save_auto_pickup(bool bCharacter)
|
||||
{
|
||||
std::ofstream fout;
|
||||
std::string sFile = "data/auto_pickup.txt";
|
||||
|
||||
if (bCharacter) {
|
||||
sFile = "save/" + g->u.name + ".apu.txt";
|
||||
std::ifstream fin;
|
||||
|
||||
fin.open(("save/" + g->u.name + ".sav").c_str());
|
||||
if(!fin.is_open()) {
|
||||
return;
|
||||
}
|
||||
fin.close();
|
||||
}
|
||||
|
||||
fout.open(sFile.c_str());
|
||||
|
||||
if(!fout.is_open()) {
|
||||
return;
|
||||
}
|
||||
|
||||
fout << auto_pickup_header(bCharacter) << std::endl;
|
||||
for(int i = 0; i < vAutoPickupRules[(bCharacter) ? 2 : 1].size(); i++) {
|
||||
fout << vAutoPickupRules[(bCharacter) ? 2 : 1][i].sRule << ";";
|
||||
fout << (vAutoPickupRules[(bCharacter) ? 2 : 1][i].bActive ? "T" : "F") << ";";
|
||||
fout << (vAutoPickupRules[(bCharacter) ? 2 : 1][i].bExclude ? "T" : "F");
|
||||
fout << "\n";
|
||||
}
|
||||
|
||||
if (!bCharacter) {
|
||||
merge_vector();
|
||||
}
|
||||
}
|
||||
|
||||
void create_default_auto_pickup(bool bCharacter)
|
||||
{
|
||||
std::ofstream fout;
|
||||
std::string sFile = "data/auto_pickup.txt";
|
||||
|
||||
if (bCharacter) {
|
||||
sFile = "save/" + g->u.name + ".apu.txt";
|
||||
}
|
||||
|
||||
fout.open(sFile.c_str());
|
||||
if(!fout.is_open()) {
|
||||
return;
|
||||
}
|
||||
|
||||
fout << auto_pickup_header(bCharacter);
|
||||
fout.close();
|
||||
}
|
||||
|
||||
std::string trim_rule(std::string sPattern)
|
||||
{
|
||||
size_t iPos = 0;
|
||||
|
||||
//Remove all double ** in pattern
|
||||
while((iPos = sPattern.find("**")) != std::string::npos) {
|
||||
sPattern = sPattern.substr(0, iPos) + sPattern.substr(iPos+1, sPattern.length()-iPos-1);
|
||||
}
|
||||
|
||||
return sPattern;
|
||||
}
|
||||
|
||||
bool auto_pickup_match(std::string sText, std::string sPattern)
|
||||
{
|
||||
//case insenitive search
|
||||
|
||||
/* Possible patterns
|
||||
*
|
||||
wooD
|
||||
wood*
|
||||
*wood
|
||||
Wood*aRrOW
|
||||
wood*arrow*
|
||||
*wood*arrow
|
||||
*wood*hard* *x*y*z*arrow*
|
||||
*/
|
||||
|
||||
if (sText == "") {
|
||||
return false;
|
||||
} else if (sText == "*") {
|
||||
return true;
|
||||
}
|
||||
|
||||
size_t iPos;
|
||||
std::vector<std::string> vPattern;
|
||||
|
||||
sPattern = trim_rule(sPattern);
|
||||
|
||||
split(sPattern, '*', vPattern);
|
||||
size_t iNum = vPattern.size();
|
||||
|
||||
if (iNum == 0) { //should never happen
|
||||
return false;
|
||||
} else if (iNum == 1) { // no * found
|
||||
if (sText.length() == vPattern[0].length() && ci_find_substr(sText, vPattern[0]) != -1) {
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
for (int i=0; i < vPattern.size(); i++) {
|
||||
if (i==0 && vPattern[i] != "") { //beginning: ^vPat[i]
|
||||
if (sText.length() < vPattern[i].length() || ci_find_substr(sText.substr(0, vPattern[i].length()), vPattern[i]) == -1) {
|
||||
//debugmsg(("1: sText: " + sText + " | sPattern: ^" + vPattern[i] + " | no match").c_str());
|
||||
return false;
|
||||
}
|
||||
|
||||
sText = sText.substr(vPattern[i].length(), sText.length()-vPattern[i].length());
|
||||
} else if (i==vPattern.size()-1 && vPattern[i] != "") { //linenend: vPat[i]$
|
||||
if (sText.length() < vPattern[i].length() || ci_find_substr(sText.substr(sText.length()-vPattern[i].length(), vPattern[i].length()), vPattern[i]) == -1) {
|
||||
//debugmsg(("2: sText: " + sText + " | sPattern: " + vPattern[i] + "$ | no match").c_str());
|
||||
return false;
|
||||
}
|
||||
} else { //inbetween: vPat[i]
|
||||
if ((iPos = ci_find_substr(sText, vPattern[i])) == -1) {
|
||||
//debugmsg(("3: sText: " + sText + " | sPattern: " + vPattern[i] + " | no match").c_str());
|
||||
return false;
|
||||
}
|
||||
|
||||
sText = sText.substr(iPos+vPattern[i].length(), sText.length()-iPos);
|
||||
}
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
std::vector<std::string> &split(const std::string &s, char delim, std::vector<std::string> &elems) {
|
||||
std::stringstream ss(s);
|
||||
std::string item;
|
||||
elems.clear();
|
||||
while (std::getline(ss, item, delim)) {
|
||||
elems.push_back(item);
|
||||
}
|
||||
|
||||
if ( s.substr(s.length()-1, 1) == "*") {
|
||||
elems.push_back("");
|
||||
}
|
||||
|
||||
return elems;
|
||||
}
|
||||
|
||||
/*
|
||||
// string test
|
||||
std::string str1 = "FIRST HELLO";
|
||||
std::string str2 = "hello";
|
||||
int f1 = ci_find_substr( str1, str2 );
|
||||
|
||||
// wstring test
|
||||
std::wstring wstr1 = L"ОПЯТЬ ПРИВЕТ";
|
||||
std::wstring wstr2 = L"привет";
|
||||
int f2 = ci_find_substr( wstr1, wstr2 );
|
||||
*/
|
||||
|
||||
// templated version of my_equal so it could work with both char and wchar_t
|
||||
template<typename charT>
|
||||
struct my_equal {
|
||||
public:
|
||||
my_equal( const std::locale& loc ) : loc_(loc) {}
|
||||
|
||||
bool operator()(charT ch1, charT ch2) {
|
||||
return std::toupper(ch1, loc_) == std::toupper(ch2, loc_);
|
||||
}
|
||||
private:
|
||||
const std::locale& loc_;
|
||||
};
|
||||
|
||||
// find substring (case insensitive)
|
||||
template<typename charT>
|
||||
int ci_find_substr( const charT& str1, const charT& str2, const std::locale& loc )
|
||||
{
|
||||
typename charT::const_iterator it = std::search( str1.begin(), str1.end(), str2.begin(), str2.end(), my_equal<typename charT::value_type>(loc) );
|
||||
if ( it != str1.end() ) return it - str1.begin();
|
||||
else return -1; // not found
|
||||
}
|
||||
@@ -0,0 +1,46 @@
|
||||
#ifndef _AUTO_PICKUP_H_
|
||||
#define _AUTO_PICKUP_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <locale>
|
||||
#include <algorithm>
|
||||
|
||||
class cPickupRules {
|
||||
public:
|
||||
std::string sRule;
|
||||
bool bActive;
|
||||
bool bExclude;
|
||||
|
||||
cPickupRules() {
|
||||
this->sRule = "";
|
||||
this->bActive = false;
|
||||
this->bExclude = false;
|
||||
}
|
||||
|
||||
cPickupRules(std::string sRuleIn, bool bActiveIn, bool bExcludeIn) {
|
||||
this->sRule = sRuleIn;
|
||||
this->bActive = bActiveIn;
|
||||
this->bExclude = bExcludeIn;
|
||||
}
|
||||
|
||||
~cPickupRules() {};
|
||||
};
|
||||
|
||||
extern std::vector<cPickupRules> vAutoPickupRules[5];
|
||||
|
||||
void test_pattern(int iCurrentPage, int iCurrentLine);
|
||||
std::string trim_rule(std::string sPattern);
|
||||
void merge_vector();
|
||||
void save_reset_changes(bool bReset);
|
||||
void show_auto_pickup();
|
||||
void load_auto_pickup(bool bCharacter);
|
||||
void save_auto_pickup(bool bCharacter);
|
||||
std::string auto_pickup_header(bool bCharacter);
|
||||
void create_default_auto_pickup(bool bCharacter);
|
||||
bool auto_pickup_match(std::string sText, std::string sPattern);
|
||||
std::vector<std::string> &split(const std::string &s, char delim, std::vector<std::string> &elems);
|
||||
template<typename charT>
|
||||
int ci_find_substr( const charT& str1, const charT& str2, const std::locale& loc = std::locale() );
|
||||
|
||||
#endif
|
||||
+223
-569
@@ -5,7 +5,8 @@
|
||||
#include "keypress.h"
|
||||
#include "item.h"
|
||||
#include "bionics.h"
|
||||
#include "line.h"
|
||||
#include "line.h"
|
||||
#include "catajson.h"
|
||||
|
||||
#define BATTERY_AMOUNT 4 // How much batteries increase your power
|
||||
|
||||
@@ -17,20 +18,45 @@ std::vector<bionic_id> unpowered_bionics;
|
||||
void bionics_install_failure(game *g, player *u, int success);
|
||||
|
||||
bionic_data::bionic_data(std::string new_name, bool new_power_source, bool new_activated,
|
||||
int new_power_cost, int new_charge_time, std::string new_description){
|
||||
int new_power_cost, int new_charge_time, std::string new_description, bool new_faulty){
|
||||
name = new_name;
|
||||
power_source = new_power_source;
|
||||
activated = new_activated;
|
||||
power_cost = new_power_cost;
|
||||
charge_time = new_charge_time;
|
||||
description = new_description;
|
||||
faulty = new_faulty;
|
||||
}
|
||||
|
||||
bionic_id game::random_good_bionic() const
|
||||
{
|
||||
std::map<std::string,bionic_data*>::const_iterator random_bionic;
|
||||
do
|
||||
{
|
||||
random_bionic = bionics.begin();
|
||||
std::advance(random_bionic,rng(0,bionics.size()-1));
|
||||
} while (random_bionic->first == "bio_null" || random_bionic->second->faulty);
|
||||
return random_bionic->first;
|
||||
}
|
||||
|
||||
// helper function for power_bionics
|
||||
void show_power_level_in_titlebar(WINDOW* window, player* p)
|
||||
{
|
||||
mvwprintz(window, 1, 62, c_white, "Power: %d/%d", p->power_level, p->max_power_level);
|
||||
}
|
||||
|
||||
void player::power_bionics(game *g)
|
||||
{
|
||||
WINDOW* wBio = newwin(25, 80, (TERMY > 25) ? (TERMY-25)/2 : 0, (TERMX > 80) ? (TERMX-80)/2 : 0);
|
||||
WINDOW* w_description = newwin(3, 78, 21 + getbegy(wBio), 1 + getbegx(wBio));
|
||||
int HEIGHT = TERMY;
|
||||
int WIDTH = FULL_SCREEN_WIDTH;
|
||||
int START_X = (TERMX - WIDTH)/2;
|
||||
int START_Y = (TERMY - HEIGHT)/2;
|
||||
WINDOW* wBio = newwin(HEIGHT, WIDTH, START_Y, START_X);
|
||||
int DESCRIPTION_WIDTH = WIDTH - 2; // Same width as bionics window minus 2 for the borders
|
||||
int DESCRIPTION_HEIGHT = 3;
|
||||
int DESCRIPTION_START_X = getbegx(wBio) + 1; // +1 to avoid border
|
||||
int DESCRIPTION_START_Y = getmaxy(wBio) - DESCRIPTION_HEIGHT - 1; // At the bottom of the bio window, -1 to avoid border
|
||||
WINDOW* w_description = newwin(DESCRIPTION_HEIGHT, DESCRIPTION_WIDTH, DESCRIPTION_START_Y, DESCRIPTION_START_X);
|
||||
|
||||
werase(wBio);
|
||||
wborder(wBio, LINE_XOXO, LINE_XOXO, LINE_OXOX, LINE_OXOX,
|
||||
@@ -38,23 +64,27 @@ void player::power_bionics(game *g)
|
||||
|
||||
std::vector <bionic> passive;
|
||||
std::vector <bionic> active;
|
||||
mvwprintz(wBio, 1, 1, c_blue, "BIONICS -");
|
||||
mvwprintz(wBio, 1, 11, c_white, "Activating. Press '!' to examine your implants.");
|
||||
int HEADER_TEXT_Y = START_Y + 1;
|
||||
mvwprintz(wBio, HEADER_TEXT_Y, 1, c_blue, "BIONICS -");
|
||||
mvwprintz(wBio, HEADER_TEXT_Y, 11, c_white, "Activating. Press '!' to examine your implants.");
|
||||
show_power_level_in_titlebar(wBio, this);
|
||||
|
||||
int HEADER_LINE_Y = START_Y + 2;
|
||||
int DESCRIPTION_LINE_Y = DESCRIPTION_START_Y - 1;
|
||||
for (int i = 1; i < 79; i++) {
|
||||
mvwputch(wBio, 2, i, c_ltgray, LINE_OXOX);
|
||||
mvwputch(wBio, 20, i, c_ltgray, LINE_OXOX);
|
||||
mvwputch(wBio, HEADER_LINE_Y, i, c_ltgray, LINE_OXOX); // Draw line under title
|
||||
mvwputch(wBio, DESCRIPTION_LINE_Y, i, c_ltgray, LINE_OXOX); // Draw line above description
|
||||
}
|
||||
|
||||
mvwputch(wBio, 2, 0, c_ltgray, LINE_XXXO); // |-
|
||||
mvwputch(wBio, 2, 79, c_ltgray, LINE_XOXX); // -|
|
||||
// Draw symbols to connect additional lines to border
|
||||
mvwputch(wBio, HEADER_LINE_Y, 0, c_ltgray, LINE_XXXO); // |-
|
||||
mvwputch(wBio, HEADER_LINE_Y, 79, c_ltgray, LINE_XOXX); // -|
|
||||
|
||||
mvwputch(wBio, 20, 0, c_ltgray, LINE_XXXO); // |-
|
||||
mvwputch(wBio, 20, 79, c_ltgray, LINE_XOXX); // -|
|
||||
mvwputch(wBio, DESCRIPTION_LINE_Y, 0, c_ltgray, LINE_XXXO); // |-
|
||||
mvwputch(wBio, DESCRIPTION_LINE_Y, 79, c_ltgray, LINE_XOXX); // -|
|
||||
|
||||
for (int i = 0; i < my_bionics.size(); i++) {
|
||||
if ( bionics[my_bionics[i].id]->power_source ||
|
||||
!bionics[my_bionics[i].id]->activated )
|
||||
if (!bionics[my_bionics[i].id]->activated)
|
||||
passive.push_back(my_bionics[i]);
|
||||
else
|
||||
active.push_back(my_bionics[i]);
|
||||
@@ -74,10 +104,15 @@ void player::power_bionics(game *g)
|
||||
if (active.size() > 0) {
|
||||
mvwprintz(wBio, 3, 33, c_ltblue, "Active:");
|
||||
for (int i = 0; i < active.size(); i++) {
|
||||
if (active[i].powered)
|
||||
if (active[i].powered && !bionics[active[i].id]->power_source)
|
||||
type = c_red;
|
||||
else if (bionics[active[i].id]->power_source && !active[i].powered)
|
||||
type = c_ltcyan;
|
||||
else if (bionics[active[i].id]->power_source && active[i].powered)
|
||||
type = c_ltgreen;
|
||||
else
|
||||
type = c_ltred;
|
||||
|
||||
mvwputch(wBio, 4 + i, 33, type, active[i].invlet);
|
||||
mvwprintz(wBio, 4 + i, 35, type,
|
||||
(active[i].powered ? "%s - ON" : "%s - %d PU / %d trns"),
|
||||
@@ -112,6 +147,7 @@ void player::power_bionics(game *g)
|
||||
if (ch == KEY_ESCAPE) {
|
||||
if (activating) {
|
||||
if (bionics[tmp->id]->activated) {
|
||||
show_power_level_in_titlebar(wBio, this);
|
||||
itype_id weapon_id = weapon.type->id;
|
||||
if (tmp->powered) {
|
||||
tmp->powered = false;
|
||||
@@ -179,7 +215,6 @@ void player::activate_bionic(int b, game *g)
|
||||
std::vector<std::string> bad;
|
||||
WINDOW* w;
|
||||
int dirx, diry, t, l, index;
|
||||
InputEvent input;
|
||||
item tmp_item;
|
||||
|
||||
if(bio.id == "bio_painkiller"){
|
||||
@@ -189,6 +224,9 @@ void player::activate_bionic(int b, game *g)
|
||||
pkill = pain;
|
||||
} else if (bio.id == "bio_nanobots"){
|
||||
healall(4);
|
||||
} else if (bio.id == "bio_night"){
|
||||
if (g->turn % 5)
|
||||
g->add_msg("Artificial night generator active!");
|
||||
} else if (bio.id == "bio_resonator"){
|
||||
g->sound(posx, posy, 30, "VRRRRMP!");
|
||||
for (int i = posx - 1; i <= posx + 1; i++) {
|
||||
@@ -213,43 +251,51 @@ void player::activate_bionic(int b, game *g)
|
||||
hurt(g, bp_torso, 0, rng(5, 15));
|
||||
}
|
||||
if (one_in(5))
|
||||
add_disease(DI_TELEGLOW, rng(50, 400), g);
|
||||
add_disease("teleglow", rng(50, 400));
|
||||
} else if (bio.id == "bio_teleport"){
|
||||
g->teleport();
|
||||
add_disease(DI_TELEGLOW, 300, g);
|
||||
add_disease("teleglow", 300);
|
||||
}
|
||||
// TODO: More stuff here (and bio_blood_filter)
|
||||
else if(bio.id == "bio_blood_anal"){
|
||||
w = newwin(20, 40, 3 + ((TERMY > 25) ? (TERMY-25)/2 : 0), 10+((TERMX > 80) ? (TERMX-80)/2 : 0));
|
||||
wborder(w, LINE_XOXO, LINE_XOXO, LINE_OXOX, LINE_OXOX,
|
||||
LINE_OXXO, LINE_OOXX, LINE_XXOO, LINE_XOOX );
|
||||
if (has_disease(DI_FUNGUS))
|
||||
if (has_disease("fungus"))
|
||||
bad.push_back("Fungal Parasite");
|
||||
if (has_disease(DI_DERMATIK))
|
||||
if (has_disease("dermatik"))
|
||||
bad.push_back("Insect Parasite");
|
||||
if (has_disease(DI_POISON))
|
||||
if (has_disease("poison"))
|
||||
bad.push_back("Poison");
|
||||
if (radiation > 0)
|
||||
bad.push_back("Irradiated");
|
||||
if (has_disease(DI_PKILL1))
|
||||
if (has_disease("pkill1"))
|
||||
good.push_back("Minor Painkiller");
|
||||
if (has_disease(DI_PKILL2))
|
||||
if (has_disease("pkill2"))
|
||||
good.push_back("Moderate Painkiller");
|
||||
if (has_disease(DI_PKILL3))
|
||||
if (has_disease("pkill3"))
|
||||
good.push_back("Heavy Painkiller");
|
||||
if (has_disease(DI_PKILL_L))
|
||||
if (has_disease("pkill_l"))
|
||||
good.push_back("Slow-Release Painkiller");
|
||||
if (has_disease(DI_DRUNK))
|
||||
if (has_disease("drunk"))
|
||||
good.push_back("Alcohol");
|
||||
if (has_disease(DI_CIG))
|
||||
if (has_disease("cig"))
|
||||
good.push_back("Nicotine");
|
||||
if (has_disease(DI_HIGH))
|
||||
if (has_disease("meth"))
|
||||
good.push_back("Methamphetamines");
|
||||
if (has_disease("high"))
|
||||
good.push_back("Intoxicant: Other");
|
||||
if (has_disease(DI_TOOK_PROZAC))
|
||||
if (has_disease("hallu") || has_disease("visuals"))
|
||||
bad.push_back("Magic Mushroom");
|
||||
if (has_disease("iodine"))
|
||||
good.push_back("Iodine");
|
||||
if (has_disease("took_xanax"))
|
||||
good.push_back("Xanax");
|
||||
if (has_disease("took_prozac"))
|
||||
good.push_back("Prozac");
|
||||
if (has_disease(DI_TOOK_FLUMED))
|
||||
if (has_disease("took_flumed"))
|
||||
good.push_back("Antihistamines");
|
||||
if (has_disease(DI_ADRENALINE))
|
||||
if (has_disease("adrenaline"))
|
||||
good.push_back("Adrenaline Spike");
|
||||
if (good.size() == 0 && bad.size() == 0)
|
||||
mvwprintz(w, 1, 1, c_white, "No effects.");
|
||||
@@ -266,69 +312,53 @@ void player::activate_bionic(int b, game *g)
|
||||
getch();
|
||||
delwin(w);
|
||||
} else if(bio.id == "bio_blood_filter"){
|
||||
rem_disease(DI_FUNGUS);
|
||||
rem_disease(DI_POISON);
|
||||
rem_disease(DI_PKILL1);
|
||||
rem_disease(DI_PKILL2);
|
||||
rem_disease(DI_PKILL3);
|
||||
rem_disease(DI_PKILL_L);
|
||||
rem_disease(DI_DRUNK);
|
||||
rem_disease(DI_CIG);
|
||||
rem_disease(DI_HIGH);
|
||||
rem_disease(DI_TOOK_PROZAC);
|
||||
rem_disease(DI_TOOK_FLUMED);
|
||||
rem_disease(DI_ADRENALINE);
|
||||
rem_disease("fungus");
|
||||
rem_disease("poison");
|
||||
rem_disease("pkill1");
|
||||
rem_disease("pkill2");
|
||||
rem_disease("pkill3");
|
||||
rem_disease("pkill_l");
|
||||
rem_disease("drunk");
|
||||
rem_disease("cig");
|
||||
rem_disease("high");
|
||||
rem_disease("hallu");
|
||||
rem_disease("visuals");
|
||||
rem_disease("iodine");
|
||||
rem_disease("took_xanax");
|
||||
rem_disease("took_prozac");
|
||||
rem_disease("took_flumed");
|
||||
rem_disease("adrenaline");
|
||||
rem_disease("meth");
|
||||
pkill = 0;
|
||||
stim = 0;
|
||||
} else if(bio.id == "bio_evap"){
|
||||
if (query_yn("Drink directly? Otherwise you will need a container.")) {
|
||||
tmp_item = item(g->itypes["water_clean"], 0);
|
||||
thirst -= 50;
|
||||
if (has_trait(PF_GOURMAND) && thirst < -60) {
|
||||
g->add_msg("You can't finish it all!");
|
||||
thirst = -60;
|
||||
} else if (!has_trait(PF_GOURMAND) && thirst < -20) {
|
||||
g->add_msg("You can't finish it all!");
|
||||
thirst = -20;
|
||||
}
|
||||
} else {
|
||||
t = g->inv("Choose a container:");
|
||||
if (i_at(t).type == 0) {
|
||||
g->add_msg("You don't have that item!");
|
||||
item water = item(g->itypes["water_clean"], 0);
|
||||
if (g->handle_liquid(water, true, true))
|
||||
{
|
||||
moves -= 100;
|
||||
}
|
||||
else if (query_yn("Drink from your hands?"))
|
||||
{
|
||||
inv.push_back(water);
|
||||
water = inv.item_by_type(water.typeId());
|
||||
eat(g, water.invlet);
|
||||
moves -= 350;
|
||||
}
|
||||
else
|
||||
{
|
||||
power_level += bionics["bio_evap"]->power_cost;
|
||||
} else if (!i_at(t).is_container()) {
|
||||
g->add_msg("That %s isn't a container!", i_at(t).tname().c_str());
|
||||
power_level += bionics["bio_evap"]->power_cost;
|
||||
} else {
|
||||
it_container *cont = dynamic_cast<it_container*>(i_at(t).type);
|
||||
if (i_at(t).volume_contained() + 1 > cont->contains) {
|
||||
g->add_msg("There's no space left in your %s.", i_at(t).tname().c_str());
|
||||
power_level += bionics["bio_evap"]->power_cost;
|
||||
} else if (!(cont->flags & con_wtight)) {
|
||||
g->add_msg("Your %s isn't watertight!", i_at(t).tname().c_str());
|
||||
power_level += bionics["bio_evap"]->power_cost;
|
||||
} else {
|
||||
g->add_msg("You pour water into your %s.", i_at(t).tname().c_str());
|
||||
i_at(t).put_in(item(g->itypes["water_clean"], 0));
|
||||
}
|
||||
}
|
||||
}
|
||||
} else if(bio.id == "bio_lighter"){
|
||||
g->draw();
|
||||
mvprintw(0, 0, "Torch in which direction?");
|
||||
input = get_input();
|
||||
get_direction(dirx, diry, input);
|
||||
if (dirx == -2) {
|
||||
g->add_msg("Invalid direction.");
|
||||
power_level += bionics["bio_lighter"]->power_cost;
|
||||
return;
|
||||
if(!g->choose_adjacent("Start a fire", dirx, diry) ||
|
||||
(!g->m.add_field(g, dirx, diry, fd_fire, 1))){
|
||||
g->add_msg_if_player(this,"You can't light a fire there.");
|
||||
power_level += bionics["bio_lighter"]->power_cost;
|
||||
}
|
||||
dirx += posx;
|
||||
diry += posy;
|
||||
if (!g->m.add_field(g, dirx, diry, fd_fire, 1)) // Unsuccessful.
|
||||
g->add_msg("You can't light a fire there.");
|
||||
|
||||
} else if(bio.id == "bio_claws"){
|
||||
if (weapon.type->id == "bio_claws_weapon") {
|
||||
g->add_msg("You withdraw your claws.");
|
||||
weapon = ret_null;
|
||||
weapon = get_combat_style();
|
||||
} else if(weapon.type->id != "null"){
|
||||
g->add_msg("Your claws extend, forcing you to drop your %s.",
|
||||
weapon.tname().c_str());
|
||||
@@ -357,47 +387,38 @@ void player::activate_bionic(int b, game *g)
|
||||
g->plfire(false);
|
||||
weapon = tmp_item;
|
||||
} else if (bio.id == "bio_emp"){
|
||||
g->draw();
|
||||
mvprintw(0, 0, "Fire EMP in which direction?");
|
||||
input = get_input();
|
||||
get_direction(dirx, diry, input);
|
||||
if (dirx == -2) {
|
||||
g->add_msg("Invalid direction.");
|
||||
if(g->choose_adjacent("create an EMP", dirx, diry))
|
||||
g->emp_blast(dirx, diry);
|
||||
else{
|
||||
power_level += bionics["bio_emp"]->power_cost;
|
||||
return;
|
||||
}
|
||||
dirx += posx;
|
||||
diry += posy;
|
||||
g->emp_blast(dirx, diry);
|
||||
|
||||
} else if (bio.id == "bio_hydraulics"){
|
||||
g->add_msg("Your muscles hiss as hydraulic strength fills them!");
|
||||
} else if (bio.id == "bio_water_extractor"){
|
||||
bool extracted = false;
|
||||
for (int i = 0; i < g->m.i_at(posx, posy).size(); i++) {
|
||||
item tmp = g->m.i_at(posx, posy)[i];
|
||||
if (tmp.type->id == "corpse" && query_yn("Extract water from the %s",
|
||||
tmp.tname().c_str())) {
|
||||
i = g->m.i_at(posx, posy).size() + 1; // Loop is finished
|
||||
t = g->inv("Choose a container:");
|
||||
if (i_at(t).type == 0) {
|
||||
g->add_msg("You don't have that item!");
|
||||
power_level += bionics["bio_water_extractor"]->power_cost;
|
||||
} else if (!i_at(t).is_container()) {
|
||||
g->add_msg("That %s isn't a container!", i_at(t).tname().c_str());
|
||||
power_level += bionics["bio_water_extractor"]->power_cost;
|
||||
} else {
|
||||
it_container *cont = dynamic_cast<it_container*>(i_at(t).type);
|
||||
if (i_at(t).volume_contained() + 1 > cont->contains) {
|
||||
g->add_msg("There's no space left in your %s.", i_at(t).tname().c_str());
|
||||
power_level += bionics["bio_water_extractor"]->power_cost;
|
||||
} else {
|
||||
g->add_msg("You pour water into your %s.", i_at(t).tname().c_str());
|
||||
i_at(t).put_in(item(g->itypes["water"], 0));
|
||||
}
|
||||
item water = item(g->itypes["water_clean"], 0);
|
||||
if (g->handle_liquid(water, true, true))
|
||||
{
|
||||
moves -= 100;
|
||||
}
|
||||
else if (query_yn("Drink directly from the condensor?"))
|
||||
{
|
||||
inv.push_back(water);
|
||||
water = inv.item_by_type(water.typeId());
|
||||
eat(g, water.invlet);
|
||||
moves -= 350;
|
||||
}
|
||||
extracted = true;
|
||||
break;
|
||||
}
|
||||
if (i == g->m.i_at(posx, posy).size() - 1) // We never chose a corpse
|
||||
power_level += bionics["bio_water_extractor"]->power_cost;
|
||||
}
|
||||
if (!extracted)
|
||||
power_level += bionics["bio_water_extractor"]->power_cost;
|
||||
} else if(bio.id == "bio_magnet"){
|
||||
for (int i = posx - 10; i <= posx + 10; i++) {
|
||||
for (int j = posy - 10; j <= posy + 10; j++) {
|
||||
@@ -409,7 +430,7 @@ void player::activate_bionic(int b, game *g)
|
||||
}
|
||||
traj.insert(traj.begin(), point(i, j));
|
||||
for (int k = 0; k < g->m.i_at(i, j).size(); k++) {
|
||||
if (g->m.i_at(i, j)[k].made_of(IRON) || g->m.i_at(i, j)[k].made_of(STEEL)){
|
||||
if (g->m.i_at(i, j)[k].made_of("iron") || g->m.i_at(i, j)[k].made_of("steel")){
|
||||
tmp_item = g->m.i_at(i, j)[k];
|
||||
g->m.i_rem(i, j, k);
|
||||
for (l = 0; l < traj.size(); l++) {
|
||||
@@ -435,202 +456,81 @@ void player::activate_bionic(int b, game *g)
|
||||
}
|
||||
}
|
||||
} else if(bio.id == "bio_lockpick"){
|
||||
g->draw();
|
||||
mvprintw(0, 0, "Unlock in which direction?");
|
||||
input = get_input();
|
||||
get_direction(dirx, diry, input);
|
||||
if (dirx == -2) {
|
||||
g->add_msg("Invalid direction.");
|
||||
if(!g->choose_adjacent("Activate your bio lockpick", dirx, diry)){
|
||||
power_level += bionics["bio_lockpick"]->power_cost;
|
||||
return;
|
||||
}
|
||||
dirx += posx;
|
||||
diry += posy;
|
||||
if (g->m.ter(dirx, diry) == t_door_locked) {
|
||||
moves -= 40;
|
||||
g->add_msg("You unlock the door.");
|
||||
g->add_msg_if_player(this,"You unlock the door.");
|
||||
g->m.ter_set(dirx, diry, t_door_c);
|
||||
} else
|
||||
g->add_msg("You can't unlock that %s.", g->m.tername(dirx, diry).c_str());
|
||||
g->add_msg_if_player(this,"You can't unlock that %s.", g->m.tername(dirx, diry).c_str());
|
||||
} else if(bio.id == "bio_flashbang") {
|
||||
g->add_msg_if_player(this,"You activate your integrated flashbang generator!");
|
||||
g->flashbang(posx, posy, true);
|
||||
} else if(bio.id == "bio_shockwave") {
|
||||
g->shockwave(posx, posy, 3, 4, 2, 8, true);
|
||||
g->add_msg_if_player(this,"You unleash a powerful shockwave!");
|
||||
} else if(bio.id == "bio_chain_lightning"){
|
||||
tmp_item = weapon;
|
||||
weapon = item(g->itypes["bio_lightning"], 0);
|
||||
weapon.curammo = dynamic_cast<it_ammo*>(g->itypes["bio_lightning_ammo"]);
|
||||
weapon.charges = 10;
|
||||
g->refresh_all();
|
||||
g->plfire(false);
|
||||
weapon = tmp_item;
|
||||
}
|
||||
}
|
||||
|
||||
bool player::install_bionics(game *g, it_bionic* type)
|
||||
{
|
||||
|
||||
if (type == NULL) {
|
||||
debugmsg("Tried to install NULL bionic");
|
||||
return false;
|
||||
}
|
||||
if (has_bionic(type->id)){
|
||||
if (!(type->id == "bio_power_storage" || type->id == "bio_power_storage_mkII")){
|
||||
popup("You have already installed this bionic.");
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
std::string bio_name = type->name.substr(5); // Strip off "CBM: "
|
||||
|
||||
WINDOW* w = newwin(25, 80, (TERMY > 25) ? (TERMY-25)/2 : 0, (TERMX > 80) ? (TERMX-80)/2 : 0);
|
||||
WINDOW* w_description = newwin(3, 78, 21 + getbegy(w), 1 + getbegx(w));
|
||||
|
||||
werase(w);
|
||||
wborder(w, LINE_XOXO, LINE_XOXO, LINE_OXOX, LINE_OXOX,
|
||||
LINE_OXXO, LINE_OOXX, LINE_XXOO, LINE_XOOX );
|
||||
|
||||
int pl_skill = int_cur +
|
||||
skillLevel("electronics") * 4 +
|
||||
skillLevel("firstaid") * 3 +
|
||||
skillLevel("mechanics") * 2;
|
||||
|
||||
int skint = int(pl_skill / 4);
|
||||
int skdec = int((pl_skill * 10) / 4) % 10;
|
||||
|
||||
// Header text
|
||||
mvwprintz(w, 1, 1, c_white, "Installing bionics:");
|
||||
mvwprintz(w, 1, 21, type->color, bio_name.c_str());
|
||||
|
||||
// Dividing bars
|
||||
for (int i = 1; i < 79; i++) {
|
||||
mvwputch(w, 2, i, c_ltgray, LINE_OXOX);
|
||||
mvwputch(w, 20, i, c_ltgray, LINE_OXOX);
|
||||
}
|
||||
|
||||
mvwputch(w, 2, 0, c_ltgray, LINE_XXXO); // |-
|
||||
mvwputch(w, 2, 79, c_ltgray, LINE_XOXX); // -|
|
||||
|
||||
mvwputch(w, 20, 0, c_ltgray, LINE_XXXO); // |-
|
||||
mvwputch(w, 20, 79, c_ltgray, LINE_XOXX); // -|
|
||||
|
||||
// Init the list of bionics
|
||||
for (int i = 1; i < type->options.size(); i++) {
|
||||
bionic_id id = type->options[i];
|
||||
mvwprintz(w, i + 3, 1, (has_bionic(id) ? c_ltred : c_ltblue),
|
||||
bionics[id]->name.c_str());
|
||||
}
|
||||
// Helper text
|
||||
mvwprintz(w, 3, 39, c_white, "Difficulty of this module: %d",
|
||||
type->difficulty);
|
||||
mvwprintz(w, 4, 39, c_white, "Your installation skill: %d.%d",
|
||||
skint, skdec);
|
||||
mvwprintz(w, 5, 39, c_white, "Installation requires high intelligence,");
|
||||
mvwprintz(w, 6, 39, c_white, "and skill in electronics, first aid, and");
|
||||
mvwprintz(w, 7, 39, c_white, "mechanics (in that order of importance).");
|
||||
|
||||
int chance_of_success = int((100 * pl_skill) /
|
||||
(pl_skill + 4 * type->difficulty));
|
||||
|
||||
mvwprintz(w, 9, 39, c_white, "Chance of success:");
|
||||
|
||||
nc_color col_suc;
|
||||
if (chance_of_success >= 95)
|
||||
col_suc = c_green;
|
||||
else if (chance_of_success >= 80)
|
||||
col_suc = c_ltgreen;
|
||||
else if (chance_of_success >= 60)
|
||||
col_suc = c_yellow;
|
||||
else if (chance_of_success >= 35)
|
||||
col_suc = c_ltred;
|
||||
else
|
||||
col_suc = c_red;
|
||||
|
||||
mvwprintz(w, 9, 59, col_suc, "%d%%%%", chance_of_success);
|
||||
|
||||
mvwprintz(w, 11, 39, c_white, "Failure may result in crippling damage,");
|
||||
mvwprintz(w, 12, 39, c_white, "loss of existing bionics, genetic damage");
|
||||
mvwprintz(w, 13, 39, c_white, "or faulty installation.");
|
||||
wrefresh(w);
|
||||
|
||||
if (type->id == "bio_power_storage") { // No selection list; just confirm
|
||||
mvwprintz(w, 3, 1, h_ltblue, "Power Storage +%d", BATTERY_AMOUNT);
|
||||
mvwprintz(w_description, 0, 0, c_ltblue, "\
|
||||
Installing this bionic will increase your total power storage by %d.\n\
|
||||
Power is necessary for most bionics to function. You also require a\n\
|
||||
charge mechanism, which must be installed from another CBM.", BATTERY_AMOUNT);
|
||||
|
||||
InputEvent input;
|
||||
wrefresh(w_description);
|
||||
wrefresh(w);
|
||||
do
|
||||
input = get_input();
|
||||
while (input != Confirm && input != Close);
|
||||
if (input == Confirm) {
|
||||
practice("electronics", (100 - chance_of_success) * 1.5);
|
||||
practice("firstaid", (100 - chance_of_success) * 1.0);
|
||||
practice("mechanics", (100 - chance_of_success) * 0.5);
|
||||
int success = chance_of_success - rng(1, 100);
|
||||
if (success > 0) {
|
||||
g->add_msg("Successfully installed batteries.");
|
||||
max_power_level += BATTERY_AMOUNT;
|
||||
} else
|
||||
bionics_install_failure(g, this, success);
|
||||
werase(w);
|
||||
delwin(w);
|
||||
g->refresh_all();
|
||||
return true;
|
||||
}
|
||||
werase(w);
|
||||
delwin(w);
|
||||
g->refresh_all();
|
||||
return false;
|
||||
if (!query_yn("WARNING: %i percent chance of genetic damage, blood loss, or damage to existing bionics! Install anyway?", 100 - chance_of_success))
|
||||
return false;
|
||||
int pow_up = 0;
|
||||
if (type->id == "bio_power_storage" || type->id == "bio_power_storage_mkII") {
|
||||
pow_up = BATTERY_AMOUNT;
|
||||
if (type->id == "bio_power_storage_mkII") {
|
||||
pow_up = 10;
|
||||
}
|
||||
}
|
||||
|
||||
int selection = 0;
|
||||
InputEvent input;
|
||||
|
||||
do {
|
||||
|
||||
bionic_id id = type->options[selection];
|
||||
mvwprintz(w, 3 + selection, 1, (has_bionic(id) ? h_ltred : h_ltblue),
|
||||
bionics[id]->name.c_str());
|
||||
|
||||
// Clear the bottom three lines...
|
||||
werase(w_description);
|
||||
// ...and then fill them with the description of the selected bionic
|
||||
mvwprintz(w_description, 0, 0, c_ltblue, bionics[id]->description.c_str());
|
||||
|
||||
wrefresh(w_description);
|
||||
wrefresh(w);
|
||||
input = get_input();
|
||||
switch (input) {
|
||||
|
||||
case DirectionS:
|
||||
mvwprintz(w, 2 + selection, 0, (has_bionic(id) ? c_ltred : c_ltblue),
|
||||
bionics[id]->name.c_str());
|
||||
if (selection == type->options.size() - 1)
|
||||
selection = 0;
|
||||
else
|
||||
selection++;
|
||||
break;
|
||||
|
||||
case DirectionN:
|
||||
mvwprintz(w, 2 + selection, 0, (has_bionic(id) ? c_ltred : c_ltblue),
|
||||
bionics[id]->name.c_str());
|
||||
if (selection == 0)
|
||||
selection = type->options.size() - 1;
|
||||
else
|
||||
selection--;
|
||||
break;
|
||||
|
||||
}
|
||||
if (input == Confirm && has_bionic(id)) {
|
||||
popup("You already have a %s!", bionics[id]->name.c_str());
|
||||
input = Nothing;
|
||||
}
|
||||
} while (input != Cancel && input != Confirm);
|
||||
|
||||
if (input == Confirm) {
|
||||
practice("electronics", (100 - chance_of_success) * 1.5);
|
||||
practice("firstaid", (100 - chance_of_success) * 1.0);
|
||||
practice("mechanics", (100 - chance_of_success) * 0.5);
|
||||
bionic_id id = type->options[selection];
|
||||
int success = chance_of_success - rng(1, 100);
|
||||
if (success > 0) {
|
||||
g->add_msg("Successfully installed %s.", bionics[id]->name.c_str());
|
||||
add_bionic(id);
|
||||
} else
|
||||
bionics_install_failure(g, this, success);
|
||||
werase(w);
|
||||
delwin(w);
|
||||
g->refresh_all();
|
||||
return true;
|
||||
}
|
||||
werase(w);
|
||||
delwin(w);
|
||||
practice(g->turn, "electronics", (100 - chance_of_success) * 1.5);
|
||||
practice(g->turn, "firstaid", (100 - chance_of_success) * 1.0);
|
||||
practice(g->turn, "mechanics", (100 - chance_of_success) * 0.5);
|
||||
int success = chance_of_success - rng(1, 100);
|
||||
if (success > 0) {
|
||||
if (pow_up) {
|
||||
max_power_level += pow_up;
|
||||
g->add_msg_if_player(this, "Increased storage capacity by %i", pow_up);
|
||||
} else{
|
||||
g->add_msg("Successfully installed %s.", bionics[type->id]->name.c_str());
|
||||
add_bionic(type->id);
|
||||
}
|
||||
} else
|
||||
bionics_install_failure(g, this, success);
|
||||
g->refresh_all();
|
||||
return false;
|
||||
return true;
|
||||
}
|
||||
|
||||
void bionics_install_failure(game *g, player *u, int success)
|
||||
@@ -720,296 +620,50 @@ void bionics_install_failure(game *g, player *u, int success)
|
||||
|
||||
}
|
||||
|
||||
void game::init_bionics(){
|
||||
bionics["bio_null"] = new bionic_data("NULL bionics", false, false, 0, 0, "\
|
||||
If you're seeing this, it's a bug.");
|
||||
// NAME ,PW_SRC, ACT ,COST, TIME,
|
||||
bionics["bio_batteries"] = new bionic_data("Battery System", true, false, 0, 0, "\
|
||||
You have a battery draining attachment, and thus can make use of the energy\n\
|
||||
contained in normal, everyday batteries. Use 'E' to consume batteries.");
|
||||
power_source_bionics.push_back("bio_batteries");
|
||||
bionics["bio_metabolics"] = new bionic_data("Metabolic Interchange", true, false, 0, 0, "\
|
||||
Your digestive system and power supply are interconnected. Any drain on\n\
|
||||
energy instead increases your hunger.");
|
||||
power_source_bionics.push_back("bio_metabolics");
|
||||
bionics["bio_solar"] = new bionic_data("Solar Panels", true, false, 0, 0, "\
|
||||
You have a few solar panels installed. While in direct sunlight, your power\n\
|
||||
level will slowly recharge.");
|
||||
power_source_bionics.push_back("bio_solar");
|
||||
bionics["bio_furnace"] = new bionic_data("Internal Furnace", true, false, 0, 0, "\
|
||||
You can burn nearly any organic material as fuel (use 'E'), recharging your\n\
|
||||
power level. Some materials will burn better than others.");
|
||||
power_source_bionics.push_back("bio_furnace");
|
||||
bionics["bio_ethanol"] = new bionic_data("Ethanol Burner", true, false, 0, 0, "\
|
||||
You burn alcohol as fuel in an extremely efficient reaction. However, you\n\
|
||||
will still suffer the inebriating effects of the substance.");
|
||||
power_source_bionics.push_back("bio_ethanol");
|
||||
bionics["bio_memory"] = new bionic_data("Enhanced Memory Banks", false, false, 1, 0, "\
|
||||
Your memory has been enhanced with small quantum storage drives. Any time\n\
|
||||
you start to forget a skill, you have a chance at retaining all knowledge, at\n\
|
||||
the cost of a small amount of poweron.");
|
||||
unpowered_bionics.push_back("bio_memory");
|
||||
bionics["bio_ears"] = new bionic_data("Enhanced Hearing", false, false, 0, 0, "\
|
||||
Your hearing has been drastically improved, allowing you to hear ten times\n\
|
||||
better than the average person. Additionally, high-intensity sounds will be\n\
|
||||
automatically dampened before they can damage your hearing.");
|
||||
unpowered_bionics.push_back("bio_ears");
|
||||
void game::init_bionics()
|
||||
{
|
||||
catajson bionics_file("data/raw/bionics.json");
|
||||
|
||||
bionics["bio_eye_enhancer"] = new bionic_data("Diamond Cornea", false, false, 0, 0, "\
|
||||
Your vision is greatly enhanced, giving you a +2 bonus to perception.");
|
||||
unpowered_bionics.push_back("bio_ears");
|
||||
bionics["bio_membrane"] = new bionic_data("Nictating Membrane", false, false, 0, 0, "\
|
||||
Your eyes have a thin membrane that closes over your eyes while underwater,\n\
|
||||
negating any vision penalties.");
|
||||
unpowered_bionics.push_back("bio_ears");
|
||||
bionics["bio_targeting"] = new bionic_data("Targeting System", false, false, 0, 0, "\
|
||||
Your eyes are equipped with range finders, and their movement is synced with\n\
|
||||
that of your arms, to a degree. Shots you fire will be much more accurate,\n\
|
||||
particularly at long range.");
|
||||
unpowered_bionics.push_back("bio_ears");
|
||||
bionics["bio_gills"] = new bionic_data("Membrane Oxygenator", false, false, 1, 0, "\
|
||||
An oxygen interchange system automatically switches on while underwater,\n\
|
||||
slowly draining your energy reserves but providing oxygen.");
|
||||
unpowered_bionics.push_back("bio_ears");
|
||||
bionics["bio_purifier"] = new bionic_data("Air Filtration System", false, false, 1, 0, "\
|
||||
Implanted in your trachea is an advanced filtration system. If toxins find\n\
|
||||
their way into your windpipe, the filter will attempt to remove them.");
|
||||
unpowered_bionics.push_back("bio_ears");
|
||||
bionics["bio_climate"] = new bionic_data("Internal Climate Control", false, true, 1, 30, "\
|
||||
Throughout your body lies a network of thermal piping which eases the effects\n\
|
||||
of high and low ambient temperatures.");
|
||||
unpowered_bionics.push_back("bio_ears");
|
||||
for(bionics_file.set_begin(); bionics_file.has_curr(); bionics_file.next())
|
||||
{
|
||||
catajson bio = bionics_file.curr();
|
||||
|
||||
bionics["bio_storage"] = new bionic_data("Internal Storage", false, false, 0, 0, "\
|
||||
Space inside your chest cavity has been converted into a storage area. You\n\
|
||||
may carry an extra 8 units of volume.");
|
||||
unpowered_bionics.push_back("bio_ears");
|
||||
bionics["bio_recycler"] = new bionic_data("Recycler Unit", false, false, 0, 0, "\
|
||||
Your digestive system has been outfitted with a series of filters and\n\
|
||||
processors, allowing you to reclaim waste liquid and, to a lesser degree,\n\
|
||||
nutrients. The net effect is a greatly reduced need to eat and drink.");
|
||||
unpowered_bionics.push_back("bio_ears");
|
||||
bionics["bio_digestion"] = new bionic_data("Expanded Digestive System", false, false, 0, 0, "\
|
||||
You have been outfitted with three synthetic stomachs and industrial-grade\n\
|
||||
intestines. Not only can you extract much more nutrition from food, but you\n\
|
||||
are highly resistant to foodborne illness, and can sometimes eat rotten food.");
|
||||
unpowered_bionics.push_back("bio_ears");
|
||||
bionics["bio_tools"] = new bionic_data("Integrated Toolset", false, false, 0, 0, "\
|
||||
Implanted in your hands and fingers is a complete tool set - screwdriver,\n\
|
||||
hammer, wrench, and heating elements. You can use this in place of many\n\
|
||||
tools when crafting.");
|
||||
unpowered_bionics.push_back("bio_ears");
|
||||
bionics["bio_shock"] = new bionic_data("Electroshock Unit", false, false, 1, 0, "\
|
||||
While fighting unarmed, or with a weapon that conducts electricity, there is\n\
|
||||
a chance that a successful hit will shock your opponent, inflicting extra\n\
|
||||
damage and disabling them temporarily at the cost of some energy.");
|
||||
unpowered_bionics.push_back("bio_ears");
|
||||
bionics["bio_heat_absorb"] = new bionic_data("Heat Drain", false, false, 1, 0, "\
|
||||
While fighting unarmed against a warm-blooded opponent, there is a chance\n\
|
||||
that a successful hit will drain body heat, inflicting a small amount of\n\
|
||||
extra damage, and increasing your power reserves slightly.");
|
||||
unpowered_bionics.push_back("bio_ears");
|
||||
bionics["bio_carbon"] = new bionic_data("Subdermal Carbon Filament", false, false, 0, 0, "\
|
||||
Lying just beneath your skin is a thin armor made of carbon nanotubes. This\n\
|
||||
reduces bashing damage by 2 and cutting damage by 4, but also reduces your\n\
|
||||
dexterity by 2.");
|
||||
unpowered_bionics.push_back("bio_ears");
|
||||
bionics["bio_armor_head"] = new bionic_data("Alloy Plating - Head", false, false, 0, 0, "\
|
||||
The flesh on your head has been replaced by a strong armor, protecting both\n\
|
||||
your head and jaw regions, but increasing encumberance by 2 and decreasing\n\
|
||||
perception by 1.");
|
||||
unpowered_bionics.push_back("bio_ears");
|
||||
bionics["bio_armor_torso"] = new bionic_data("Alloy Plating - Torso", false, false, 0, 0, "\
|
||||
The flesh on your torso has been replaced by a strong armor, protecting you\n\
|
||||
greatly, but increasing your encumberance by 2.");
|
||||
unpowered_bionics.push_back("bio_ears");
|
||||
bionics["bio_armor_arms"] = new bionic_data("Alloy Plating - Arms", false, false, 0, 0, "\
|
||||
The flesh on your arms has been replaced by a strong armor, protecting you\n\
|
||||
greatly, but decreasing your dexterity by 1.");
|
||||
unpowered_bionics.push_back("bio_ears");
|
||||
bionics["bio_armor_legs"] = new bionic_data("Alloy Plating - Legs", false, false, 0, 0, "\
|
||||
The flesh on your legs has been replaced by a strong armor, protecting you\n\
|
||||
greatly, but decreasing your speed by 15.");
|
||||
unpowered_bionics.push_back("bio_ears");
|
||||
std::set<std::string> tags;
|
||||
|
||||
bionics["bio_flashlight"] = new bionic_data("Cranial Flashlight", false, true, 1, 30, "\
|
||||
Mounted between your eyes is a small but powerful LED flashlight.");
|
||||
bionics["bio_night_vision"] = new bionic_data("Implanted Night Vision", false, true, 1, 20, "\
|
||||
Your eyes have been modified to amplify existing light, allowing you to see\n\
|
||||
in the dark.");
|
||||
bionics["bio_infrared"] = new bionic_data("Infrared Vision", false, true, 1, 4, "\
|
||||
Your range of vision extends into the infrared, allowing you to see warm-\n\
|
||||
blooded creatures in the dark, and even through walls.");
|
||||
bionics["bio_face_mask"] = new bionic_data("Facial Distortion", false, true, 1, 10, "\
|
||||
Your face is actually made of a compound which may be molded by electrical\n\
|
||||
impulses, making you impossible to recognize. While not powered, however,\n\
|
||||
the compound reverts to its default shape.");
|
||||
bionics["bio_ads"] = new bionic_data("Active Defense System", false, true, 1, 7, "\
|
||||
A thin forcefield surrounds your body, continually draining power. Anything\n\
|
||||
attempting to penetrate this field has a chance of being deflected at the\n\
|
||||
cost of more energy. Melee attacks will be stopped more often than bullets.");
|
||||
bionics["bio_ods"] = new bionic_data("Offensive Defense System", false, true, 1, 6, "\
|
||||
A thin forcefield surrounds your body, continually draining power. This\n\
|
||||
field does not deflect penetration, but rather delivers a very strong shock,\n\
|
||||
damaging unarmed attackers and those with a conductive weapon.");
|
||||
bionics["bio_scent_mask"] = new bionic_data("Olfactory Mask", false, true, 1, 8, "\
|
||||
While this system is powered, your body will produce very little odor, making\n\
|
||||
it nearly impossible for creatures to track you by scent.");
|
||||
if(bio.has("flags"))
|
||||
{
|
||||
tags = bio.get("flags").as_tags();
|
||||
}
|
||||
|
||||
bionics["bio_scent_vision"] = new bionic_data("Scent Vision", false, true, 1, 30, "\
|
||||
While this system is powered, you're able to visually sense your own scent,\n\
|
||||
making it possible for you to recognize your surroundings even if you can't\n\
|
||||
see it.");
|
||||
bionics["bio_cloak"] = new bionic_data("Cloaking System", false, true, 2, 1, "\
|
||||
This high-power system uses a set of cameras and LEDs to make you blend into\n\
|
||||
your background, rendering you fully invisible to normal vision. However,\n\
|
||||
you may be detected by infrared, sonar, etc.");
|
||||
bionics["bio_painkiller"] = new bionic_data("Sensory Dulling", false, true, 2, 0, "\
|
||||
Your nervous system is wired to allow you to inhibit the signals of pain,\n\
|
||||
allowing you to dull your senses at will. However, the use of this system\n\
|
||||
may cause delayed reaction time and drowsiness.");
|
||||
bionics["bio_nanobots"] = new bionic_data("Repair Nanobots", false, true, 5, 0, "\
|
||||
Inside your body is a fleet of tiny dormant robots. Once charged from your\n\
|
||||
energy banks, they will flit about your body, repairing any damage.");
|
||||
bionics["bio_heatsink"] = new bionic_data("Thermal Dissapation", false, true, 1, 6, "\
|
||||
Powerful heatsinks supermaterials are woven into your flesh. While powered,\n\
|
||||
this system will prevent heat damage up to 2000 degrees fahrenheit. Note\n\
|
||||
that this does not affect your internal temperature.");
|
||||
bionics["bio_resonator"] = new bionic_data("Sonic Resonator", false, true, 4, 0, "\
|
||||
Your entire body may resonate at very high power, creating a short-range\n\
|
||||
shockwave. While it will not to much damage to flexible creatures, stiff\n\
|
||||
items such as walls, doors, and even robots will be severely damaged.");
|
||||
// set up all the bionic parameters
|
||||
std::string id = bio.get("id").as_string();
|
||||
std::string name = bio.get("name").as_string();
|
||||
int cost = bio.get("cost").as_int();
|
||||
int time = bio.get("time").as_int();
|
||||
std::string description = bio.get("description").as_string();
|
||||
bool faulty = (tags.find("FAULTY") != tags.end());
|
||||
bool powersource = (tags.find("POWER") != tags.end());
|
||||
bool active = (tags.find("ACTIVE") != tags.end());
|
||||
|
||||
bionics["bio_time_freeze"] = new bionic_data("Time Dilation", false, true, 3, 0, "\
|
||||
At an immense cost of power, you may increase your body speed and reactions\n\
|
||||
dramatically, essentially freezing time. You are still delicate, however,\n\
|
||||
and violent or rapid movements may damage you due to friction.");
|
||||
bionics["bio_teleport"] = new bionic_data("Teleportation Unit", false, true, 10, 0, "\
|
||||
This highly experimental unit folds space over short distances, instantly\n\
|
||||
transporting your body up to 25 feet at the cost of much power. Note that\n\
|
||||
prolonged or frequent use may have dangerous side effects.");
|
||||
bionics["bio_blood_anal"] = new bionic_data("Blood Analysis", false, true, 1, 0, "\
|
||||
Small sensors have been implanted in your heart, allowing you to analyse your\n\
|
||||
blood. This will detect many illnesses, drugs, and other conditions.");
|
||||
bionics["bio_blood_filter"] = new bionic_data("Blood Filter", false, true, 3, 0, "\
|
||||
A filtration system in your heart allows you to actively filter out chemical\n\
|
||||
impurities, primarily drugs. It will have limited impact on viruses. Note\n\
|
||||
that it is not a targeted filter; ALL drugs in your system will be affected.");
|
||||
bionics["bio_alarm"] = new bionic_data("Alarm System", false, true, 1, 400, "\
|
||||
A motion-detecting alarm system will notice almost all movement within a\n\
|
||||
fifteen-foot radius, and will silently alert you. This is very useful during\n\
|
||||
sleep, or if you suspect a cloaked pursuer.");
|
||||
bionics["bio_evap"] = new bionic_data("Aero-Evaporator", false, true, 8, 0, "\
|
||||
This unit draws moisture from the surrounding air, which then is poured from\n\
|
||||
a fingertip in the form of water. It may fail in very dry environments.");
|
||||
bionics["bio_lighter"] = new bionic_data("Mini-Flamethrower", false, true, 3, 0, "\
|
||||
The index fingers of both hands have powerful fire starters which extend from\n\
|
||||
the tip.");
|
||||
bionics["bio_claws"] = new bionic_data("Adamantium Claws", false, true, 3, 0, "\
|
||||
Your fingers can withdraw into your hands, allowing a set of vicious claws to\n\
|
||||
extend. These do considerable cutting damage, but prevent you from holding\n\
|
||||
anything else.");
|
||||
bionics[id] = new bionic_data(name, powersource, active, cost, time, description, faulty);
|
||||
|
||||
bionics["bio_blaster"] = new bionic_data("Fusion Blaster Arm", false, true, 2, 0, "\
|
||||
Your left arm has been replaced by a heavy-duty fusion blaster! You may use\n\
|
||||
your energy banks to fire a damaging heat ray; however, you are unable to use\n\
|
||||
or carry two-handed items, and may only fire handguns.");
|
||||
bionics["bio_laser"] = new bionic_data("Finger-Mounted Laser", false, true, 2, 0, "\
|
||||
One of your fingers has a small high-powered laser embedded in it. This long\n\
|
||||
range weapon is not incredibly damaging, but is very accurate, and has the\n\
|
||||
potential to start fires.");
|
||||
bionics["bio_emp"] = new bionic_data("Directional EMP", false, true, 4, 0, "\
|
||||
Mounted in the palms of your hand are small parabolic EMP field generators.\n\
|
||||
You may use power to fire a short-ranged blast which will disable electronics\n\
|
||||
and robots.");
|
||||
bionics["bio_hydraulics"] = new bionic_data("Hydraulic Muscles", false, true, 1, 3, "\
|
||||
While activated, the muscles in your arms will be greatly enchanced,\n\
|
||||
increasing your strength by 20.");
|
||||
bionics["bio_water_extractor"] = new bionic_data("Water Extraction Unit", false, true, 2, 0, "\
|
||||
Nanotubs embedded in the palm of your hand will pump any available fluid out\n\
|
||||
of a dead body, cleanse it of impurities and convert it into drinkable water.\n\
|
||||
You must, however, have a container to store the water in.");
|
||||
bionics["bio_magnet"] = new bionic_data("Electromagnetic Unit", false, true, 2, 0, "\
|
||||
Embedded in your hand is a powerful electromagnet, allowing you to pull items\n\
|
||||
made of iron over short distances.");
|
||||
bionics["bio_fingerhack"] = new bionic_data("Fingerhack", false, true, 1, 0, "\
|
||||
One of your fingers has an electrohack embedded in it; an all-purpose hacking\n\
|
||||
unit used to override control panels and the like (but not computers). Skill\n\
|
||||
in computers is important, and a failed use may damage your circuits.");
|
||||
bionics["bio_lockpick"] = new bionic_data("Fingerpick", false, true, 1, 0, "\
|
||||
One of your fingers has an electronic lockpick embedded in it. This auto-\n\
|
||||
matic system will quickly unlock all but the most advanced key locks without\n\
|
||||
any skill required on the part of the user.");
|
||||
// Don't add bio_null to any vectors.
|
||||
if(id != "bio_null")
|
||||
{
|
||||
if(faulty)
|
||||
{
|
||||
faulty_bionics.push_back(id);
|
||||
}
|
||||
else if(powersource)
|
||||
{
|
||||
power_source_bionics.push_back(id);
|
||||
}
|
||||
else if(!active)
|
||||
{
|
||||
unpowered_bionics.push_back(id);
|
||||
}
|
||||
}
|
||||
|
||||
bionics["bio_ground_sonar"] = new bionic_data("Terranian Sonar", false, true, 1, 5, "\
|
||||
Your feet are equipped with precision sonar equipment, allowing you to detect\n\
|
||||
the movements of creatures below the ground.");
|
||||
|
||||
bionics["bio_banish"] = new bionic_data("Banishment", false, true, 40, 0, "\
|
||||
You can briefly open a one-way gate to the nether realm, banishing a single\n\
|
||||
target there permanently. This is not without its dangers, however, as the\n\
|
||||
inhabitants of the nether world may take notice.");
|
||||
bionics["bio_gate_out"] = new bionic_data("Gate Out", false, true, 55, 0, "\
|
||||
You can temporarily open a two-way gate to the nether realm, accessible only\n\
|
||||
by you. This will remove you from immediate danger, but may attract the\n\
|
||||
attention of the nether world's inhabitants...");
|
||||
bionics["bio_gate_in"] = new bionic_data("Gate In", false, true, 35, 0, "\
|
||||
You can temporarily open a one-way gate from the nether realm. This will\n\
|
||||
attract the attention of its horrifying inhabitants, who may begin to pour\n\
|
||||
into reality.");
|
||||
bionics["bio_nightfall"] = new bionic_data("Artificial Night", false, true, 5, 1, "\
|
||||
Photon absorbtion panels will attract and obliterate photons within a 100'\n\
|
||||
radius, casting an area around you into pitch darkness.");
|
||||
bionics["bio_drilldown"] = new bionic_data("Borehole Drill", false, true, 30, 0, "\
|
||||
Your legs can transform into a powerful drill which will bury you 50 feet\n\
|
||||
into the earth. Be careful to only drill down when you know you will be able\n\
|
||||
to get out, or you'll simply dig your own tomb.");
|
||||
|
||||
bionics["bio_heatwave"] = new bionic_data("Heatwave", false, true, 45, 0, "\
|
||||
At the cost of immense power, you can cause dramatic spikes in the ambient\n\
|
||||
temperature around you. These spikes are very short-lived, but last long\n\
|
||||
enough to ignite wood, paper, gunpowder, and other substances.");
|
||||
bionics["bio_lightning"] = new bionic_data("Chain Lightning", false, true, 48, 0, "\
|
||||
Powerful capacitors unleash an electrical storm at your command, sending a\n\
|
||||
chain of highly-damaging lightning through the air. It has the power to\n\
|
||||
injure several opponents before grounding itself.");
|
||||
bionics["bio_tremor"] = new bionic_data("Tremor Pads", false, true, 40, 0, "\
|
||||
Using tremor pads in your feet, you can cause a miniature earthquake. The\n\
|
||||
shockwave will damage enemies (particularly those digging underground), tear\n\
|
||||
down walls, and churn the earth.");
|
||||
bionics["bio_flashflood"] = new bionic_data("Flashflood", false, true, 35, 0, "\
|
||||
By drawing the moisture from the air, and synthesizing water from in-air\n\
|
||||
elements, you can create a massive puddle around you. The effects are more\n\
|
||||
powerful when used near a body of water.");
|
||||
|
||||
//Fault Bionics from here on out.
|
||||
bionics["bio_dis_shock"] = new bionic_data("Electrical Discharge", false, false, 0, 0, "\
|
||||
A malfunctioning bionic which occasionally discharges electricity through\n\
|
||||
your body, causing pain and brief paralysis but no damage.");
|
||||
faulty_bionics.push_back("bio_dis_shock");
|
||||
|
||||
bionics["bio_dis_acid"] = new bionic_data("Acidic Discharge", false, false, 0, 0, "\
|
||||
A malfunctioning bionic which occasionally discharges acid into your muscles,\n\
|
||||
causing sharp pain and minor damage.");
|
||||
faulty_bionics.push_back("bio_dis_shock");
|
||||
|
||||
bionics["bio_drain"] = new bionic_data("Electrical Drain", false, false, 0, 0, "\
|
||||
A malfunctioning bionic. It doesn't perform any useful function, but will\n\
|
||||
occasionally draw power from your batteries.");
|
||||
faulty_bionics.push_back("bio_drain");
|
||||
|
||||
bionics["bio_noise"] = new bionic_data("Noisemaker", false, false, 0, 0, "\
|
||||
A malfunctioning bionic. It will occasionally emit a loud burst of noise.");
|
||||
faulty_bionics.push_back("bio_noise");
|
||||
bionics["bio_power_weakness"] = new bionic_data("Power Overload", false, false, 0, 0, "\
|
||||
Damaged power circuits cause short-circuiting inside your muscles when your\n\
|
||||
batteries are above 75%%%% capacity, causing greatly reduced strength. This\n\
|
||||
has no effect if you have no internal batteries.");
|
||||
faulty_bionics.push_back("bio_power_weakness");
|
||||
|
||||
bionics["bio_stiff"] = new bionic_data("Wire-induced Stiffness", false, false, 0, 0, "\
|
||||
Improperly installed wires cause a physical stiffness in most of your body,\n\
|
||||
causing increased encumberance.");
|
||||
faulty_bionics.push_back("bio_stiff");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -11,7 +11,7 @@ typedef std::string bionic_id;
|
||||
class bionic_data {
|
||||
public:
|
||||
bionic_data(std::string new_name, bool new_power_source, bool new_activated,
|
||||
int new_power_cost, int new_charge_time, std::string new_description);
|
||||
int new_power_cost, int new_charge_time, std::string new_description, bool new_faulty = false);
|
||||
|
||||
std::string name;
|
||||
bool power_source;
|
||||
@@ -21,6 +21,7 @@ public:
|
||||
int charge_time; // How long, when activated, between drawing power_cost
|
||||
// If 0, it draws power once
|
||||
std::string description;
|
||||
bool faulty; // Whether or not the bionic is faulty
|
||||
};
|
||||
|
||||
struct bionic {
|
||||
|
||||
@@ -0,0 +1,388 @@
|
||||
#include "building_generation.h"
|
||||
#include "output.h"
|
||||
#include "item_factory.h"
|
||||
|
||||
mapgendata::mapgendata(oter_id north, oter_id east, oter_id south, oter_id west)
|
||||
{
|
||||
t_nesw[0] = north;
|
||||
t_nesw[1] = east;
|
||||
t_nesw[2] = south;
|
||||
t_nesw[3] = west;
|
||||
n_fac = 0;
|
||||
e_fac = 0;
|
||||
s_fac = 0;
|
||||
w_fac = 0;
|
||||
}
|
||||
|
||||
void mapgendata::set_dir(int dir_in, int val)
|
||||
{
|
||||
switch (dir_in)
|
||||
{
|
||||
case 0:
|
||||
n_fac = val;
|
||||
break;
|
||||
case 1:
|
||||
e_fac = val;
|
||||
break;
|
||||
case 2:
|
||||
s_fac = val;
|
||||
break;
|
||||
case 3:
|
||||
w_fac = val;
|
||||
break;
|
||||
default:
|
||||
debugmsg("Invalid direction for mapgendata::set_dir. dir_in = %d", dir_in);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
void mapgendata::fill(int val)
|
||||
{
|
||||
n_fac = val;
|
||||
e_fac = val;
|
||||
s_fac = val;
|
||||
w_fac = val;
|
||||
}
|
||||
|
||||
int& mapgendata::dir(int dir_in)
|
||||
{
|
||||
switch (dir_in)
|
||||
{
|
||||
case 0:
|
||||
return n_fac;
|
||||
break;
|
||||
case 1:
|
||||
return e_fac;
|
||||
break;
|
||||
case 2:
|
||||
return s_fac;
|
||||
break;
|
||||
case 3:
|
||||
return w_fac;
|
||||
break;
|
||||
default:
|
||||
debugmsg("Invalid direction for mapgendata::set_dir. dir_in = %d", dir_in);
|
||||
//return something just so the compiler doesn't freak out. Not really correct, though.
|
||||
return n_fac;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
ter_id grass_or_dirt()
|
||||
{
|
||||
if (one_in(4))
|
||||
return t_grass;
|
||||
return t_dirt;
|
||||
}
|
||||
|
||||
ter_id dirt_or_pile()
|
||||
{
|
||||
if (one_in(4))
|
||||
return t_dirtmound;
|
||||
return t_dirt;
|
||||
}
|
||||
|
||||
// helper functions below
|
||||
|
||||
void mapgen_null(map *m)
|
||||
{
|
||||
debugmsg("Generating terrain for ot_null, please report this as a bug");
|
||||
for (int i = 0; i < SEEX * 2; i++)
|
||||
{
|
||||
for (int j = 0; j < SEEY * 2; j++)
|
||||
{
|
||||
m->ter_set(i, j, t_null);
|
||||
m->radiation(i, j) = 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void mapgen_crater(map *m, mapgendata dat)
|
||||
{
|
||||
for(int i = 0; i < 4; i++)
|
||||
{
|
||||
if(dat.t_nesw[i] != ot_crater)
|
||||
{
|
||||
dat.set_dir(i, 6);
|
||||
}
|
||||
}
|
||||
|
||||
for (int i = 0; i < SEEX * 2; i++)
|
||||
{
|
||||
for (int j = 0; j < SEEY * 2; j++)
|
||||
{
|
||||
if (rng(0, dat.w_fac) <= i && rng(0, dat.e_fac) <= SEEX * 2 - 1 - i &&
|
||||
rng(0, dat.n_fac) <= j && rng(0, dat.s_fac) <= SEEX * 2 - 1 - j )
|
||||
{
|
||||
m->ter_set(i, j, t_rubble);
|
||||
m->radiation(i, j) = rng(0, 4) * rng(0, 2);
|
||||
}
|
||||
else
|
||||
{
|
||||
m->ter_set(i, j, t_dirt);
|
||||
m->radiation(i, j) = rng(0, 2) * rng(0, 2) * rng(0, 2);
|
||||
}
|
||||
}
|
||||
}
|
||||
m->place_items("wreckage", 83, 0, 0, SEEX * 2 - 1, SEEY * 2 - 1, true, 0);
|
||||
}
|
||||
|
||||
void mapgen_field(map *m, int turn)
|
||||
{
|
||||
for (int i = 0; i < SEEX * 2; i++)
|
||||
{
|
||||
for (int j = 0; j < SEEY * 2; j++)
|
||||
{
|
||||
m->ter_set(i, j, grass_or_dirt());
|
||||
if (one_in(120))
|
||||
{
|
||||
if (one_in(30))
|
||||
{
|
||||
m->ter_set(i, j, t_shrub_blueberry);
|
||||
}
|
||||
else
|
||||
if (one_in(30))
|
||||
{
|
||||
m->ter_set(i, j, t_shrub_strawberry);
|
||||
}
|
||||
else
|
||||
{
|
||||
m->ter_set(i, j, t_shrub);
|
||||
}
|
||||
}
|
||||
else
|
||||
if (one_in(1000)) { m->furn_set(i,j, f_mutpoppy); }
|
||||
}
|
||||
}
|
||||
m->place_items("field", 60, 0, 0, SEEX * 2 - 1, SEEY * 2 - 1, true, turn);
|
||||
}
|
||||
|
||||
void mapgen_dirtlot(map *m, game *g)
|
||||
{
|
||||
for (int i = 0; i < SEEX * 2; i++)
|
||||
{
|
||||
for (int j = 0; j < SEEY * 2; j++)
|
||||
{
|
||||
m->ter_set(i, j, t_dirt);
|
||||
if (one_in(120))
|
||||
{
|
||||
m->ter_set(i, j, t_pit_shallow);
|
||||
}
|
||||
else if (one_in(50))
|
||||
{
|
||||
m->ter_set(i,j, t_grass);
|
||||
}
|
||||
}
|
||||
}
|
||||
if (one_in(4))
|
||||
{
|
||||
m->add_vehicle (g, veh_truck, 12, 12, 90, -1, -1);
|
||||
}
|
||||
}
|
||||
|
||||
void mapgen_forest_general(map *m, oter_id terrain_type, mapgendata dat, int turn)
|
||||
{
|
||||
switch (terrain_type)
|
||||
{
|
||||
case ot_forest_thick:
|
||||
dat.fill(8);
|
||||
break;
|
||||
case ot_forest_water:
|
||||
dat.fill(4);
|
||||
break;
|
||||
case ot_forest:
|
||||
dat.fill(0);
|
||||
break;
|
||||
}
|
||||
for (int i = 0; i < 4; i++)
|
||||
{
|
||||
if (dat.t_nesw[i] == ot_forest || dat.t_nesw[i] == ot_forest_water)
|
||||
{
|
||||
dat.dir(i) += 14;
|
||||
}
|
||||
else if (dat.t_nesw[i] == ot_forest_thick)
|
||||
{
|
||||
dat.dir(i) += 18;
|
||||
}
|
||||
}
|
||||
for (int i = 0; i < SEEX * 2; i++)
|
||||
{
|
||||
for (int j = 0; j < SEEY * 2; j++)
|
||||
{
|
||||
int forest_chance = 0, num = 0;
|
||||
if (j < dat.n_fac)
|
||||
{
|
||||
forest_chance += dat.n_fac - j;
|
||||
num++;
|
||||
}
|
||||
if (SEEX * 2 - 1 - i < dat.e_fac)
|
||||
{
|
||||
forest_chance += dat.e_fac - (SEEX * 2 - 1 - i);
|
||||
num++;
|
||||
}
|
||||
if (SEEY * 2 - 1 - j < dat.s_fac)
|
||||
{
|
||||
forest_chance += dat.s_fac - (SEEY * 2 - 1 - j);
|
||||
num++;
|
||||
}
|
||||
if (i < dat.w_fac)
|
||||
{
|
||||
forest_chance += dat.w_fac - i;
|
||||
num++;
|
||||
}
|
||||
if (num > 0)
|
||||
{
|
||||
forest_chance /= num;
|
||||
}
|
||||
int rn = rng(0, forest_chance);
|
||||
if ((forest_chance > 0 && rn > 13) || one_in(100 - forest_chance))
|
||||
{
|
||||
if (one_in(250))
|
||||
{
|
||||
m->ter_set(i, j, t_tree_apple);
|
||||
m->spawn_item(i, j, "apple", turn);
|
||||
}
|
||||
else
|
||||
{
|
||||
m->ter_set(i, j, t_tree);
|
||||
}
|
||||
}
|
||||
else if ((forest_chance > 0 && rn > 10) || one_in(100 - forest_chance))
|
||||
{
|
||||
m->ter_set(i, j, t_tree_young);
|
||||
}
|
||||
else if ((forest_chance > 0 && rn > 9) || one_in(100 - forest_chance))
|
||||
{
|
||||
if (one_in(250))
|
||||
{
|
||||
m->ter_set(i, j, t_shrub_blueberry);
|
||||
}
|
||||
else
|
||||
{
|
||||
m->ter_set(i, j, t_underbrush);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
m->ter_set(i, j, t_dirt);
|
||||
}
|
||||
}
|
||||
}
|
||||
m->place_items("forest", 60, 0, 0, SEEX * 2 - 1, SEEY * 2 - 1, true, turn);
|
||||
|
||||
if (terrain_type == ot_forest_water)
|
||||
{
|
||||
// Reset *_fac to handle where to place water
|
||||
for (int i = 0; i < 4; i++)
|
||||
{
|
||||
if (dat.t_nesw[i] == ot_forest_water)
|
||||
{
|
||||
dat.set_dir(i, 2);
|
||||
}
|
||||
else if (dat.t_nesw[i] >= ot_river_center && dat.t_nesw[i] <= ot_river_nw)
|
||||
{
|
||||
dat.set_dir(i, 3);
|
||||
}
|
||||
else if (dat.t_nesw[i] == ot_forest || dat.t_nesw[i] == ot_forest_thick)
|
||||
{
|
||||
dat.set_dir(i, 1);
|
||||
}
|
||||
else
|
||||
{
|
||||
dat.set_dir(i, 0);
|
||||
}
|
||||
}
|
||||
int x = SEEX / 2 + rng(0, SEEX), y = SEEY / 2 + rng(0, SEEY);
|
||||
for (int i = 0; i < 20; i++)
|
||||
{
|
||||
if (x >= 0 && x < SEEX * 2 && y >= 0 && y < SEEY * 2)
|
||||
{
|
||||
if (m->ter(x, y) == t_water_sh)
|
||||
{
|
||||
m->ter_set(x, y, t_water_dp);
|
||||
}
|
||||
else if (m->ter(x, y) == t_dirt || m->ter(x, y) == t_underbrush)
|
||||
{
|
||||
m->ter_set(x, y, t_water_sh);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
i = 20;
|
||||
}
|
||||
x += rng(-2, 2);
|
||||
y += rng(-2, 2);
|
||||
if (x < 0 || x >= SEEX * 2)
|
||||
{
|
||||
x = SEEX / 2 + rng(0, SEEX);
|
||||
}
|
||||
if (y < 0 || y >= SEEY * 2)
|
||||
{
|
||||
y = SEEY / 2 + rng(0, SEEY);
|
||||
}
|
||||
for (int j = 0; j < dat.n_fac; j++)
|
||||
{
|
||||
int wx = rng(0, SEEX * 2 -1), wy = rng(0, SEEY - 1);
|
||||
if (m->ter(wx, wy) == t_dirt || m->ter(wx, wy) == t_underbrush)
|
||||
{
|
||||
m->ter_set(wx, wy, t_water_sh);
|
||||
}
|
||||
}
|
||||
for (int j = 0; j < dat.e_fac; j++)
|
||||
{
|
||||
int wx = rng(SEEX, SEEX * 2 - 1), wy = rng(0, SEEY * 2 - 1);
|
||||
if (m->ter(wx, wy) == t_dirt || m->ter(wx, wy) == t_underbrush)
|
||||
{
|
||||
m->ter_set(wx, wy, t_water_sh);
|
||||
}
|
||||
}
|
||||
for (int j = 0; j < dat.s_fac; j++)
|
||||
{
|
||||
int wx = rng(0, SEEX * 2 - 1), wy = rng(SEEY, SEEY * 2 - 1);
|
||||
if (m->ter(wx, wy) == t_dirt || m->ter(wx, wy) == t_underbrush)
|
||||
{
|
||||
m->ter_set(wx, wy, t_water_sh);
|
||||
}
|
||||
}
|
||||
for (int j = 0; j < dat.w_fac; j++)
|
||||
{
|
||||
int wx = rng(0, SEEX - 1), wy = rng(0, SEEY * 2 - 1);
|
||||
if (m->ter(wx, wy) == t_dirt || m->ter(wx, wy) == t_underbrush)
|
||||
{
|
||||
m->ter_set(wx, wy, t_water_sh);
|
||||
}
|
||||
}
|
||||
}
|
||||
int rn = rng(0, 2) * rng(0, 1) * (rng(0, 1) + rng(0, 1));// Good chance of 0
|
||||
for (int i = 0; i < rn; i++)
|
||||
{
|
||||
x = rng(0, SEEX * 2 - 1);
|
||||
y = rng(0, SEEY * 2 - 1);
|
||||
m->add_trap(x, y, tr_sinkhole);
|
||||
if (m->ter(x, y) != t_water_sh)
|
||||
{
|
||||
m->ter_set(x, y, t_dirt);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (one_in(10000)) { //1-2 per overmap, very bad day for low level characters
|
||||
m->add_spawn(mon_jabberwock, 1, SEEX, SEEY);
|
||||
}
|
||||
|
||||
|
||||
if (one_in(100)) // One in 100 forests has a spider living in it :o
|
||||
{
|
||||
for (int i = 0; i < SEEX * 2; i++)
|
||||
{
|
||||
for (int j = 0; j < SEEX * 2; j++)
|
||||
{
|
||||
if ((m->ter(i, j) == t_dirt || m->ter(i, j) == t_underbrush) && !one_in(3))
|
||||
{
|
||||
m->add_field(NULL, i, j, fd_web, rng(1, 3));
|
||||
}
|
||||
}
|
||||
}
|
||||
m->add_spawn(mon_spider_web, rng(1, 2), SEEX, SEEY);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,32 @@
|
||||
#ifndef _BUILDING_GENERATION_H_
|
||||
#define _BUILDING_GENERATION_H_
|
||||
|
||||
#include "omdata.h"
|
||||
#include "map.h"
|
||||
|
||||
struct mapgendata
|
||||
{
|
||||
public:
|
||||
oter_id t_nesw[4];
|
||||
int n_fac; // dir == 0
|
||||
int e_fac; // dir == 1
|
||||
int s_fac; // dir == 2
|
||||
int w_fac; // dir == 3
|
||||
|
||||
mapgendata(oter_id north, oter_id east, oter_id south, oter_id west);
|
||||
void set_dir(int dir_in, int val);
|
||||
void fill(int val);
|
||||
int& dir(int dir_in);
|
||||
};
|
||||
|
||||
ter_id grass_or_dirt();
|
||||
ter_id dirt_or_pile();
|
||||
|
||||
// helper functions for mapgen.cpp, so that we can avoid having a massive switch statement (sorta)
|
||||
void mapgen_null(map *m);
|
||||
void mapgen_crater(map *m, mapgendata dat);
|
||||
void mapgen_field(map *m, int turn);
|
||||
void mapgen_dirtlot(map *m, game *g);
|
||||
void mapgen_forest_general(map *m, oter_id terrain_type, mapgendata dat, int turn);
|
||||
|
||||
#endif
|
||||
+155
-65
@@ -35,26 +35,26 @@ calendar::calendar(int Minute, int Hour, int Day, season_type Season, int Year)
|
||||
|
||||
calendar::calendar(int turn)
|
||||
{
|
||||
int minutes = int(turn / 10);
|
||||
int hours = minutes / 60;
|
||||
int days = hours / 24;
|
||||
int seasons = days / DAYS_IN_SEASON;
|
||||
int minute_param = int(turn / 10);
|
||||
int hour_param = minute_param / 60;
|
||||
int day_param = hour_param / 24;
|
||||
int season_param = day_param / OPTIONS[OPT_SEASON_LENGTH];
|
||||
second = 6 * (turn % 10);
|
||||
minute = minutes % 60;
|
||||
hour = hours % 24;
|
||||
day = 1 + days % DAYS_IN_SEASON;
|
||||
season = season_type(seasons % 4);
|
||||
year = seasons / 4;
|
||||
minute = minute_param % 60;
|
||||
hour = hour_param % 24;
|
||||
day = 1 + day_param % (int)OPTIONS[OPT_SEASON_LENGTH];
|
||||
season = season_type(season_param % 4);
|
||||
year = season_param / 4;
|
||||
}
|
||||
|
||||
int calendar::get_turn()
|
||||
int calendar::get_turn() const
|
||||
{
|
||||
int ret = second / 6;
|
||||
ret += minute * 10;
|
||||
ret += hour * 600;
|
||||
ret += day * 14400;
|
||||
ret += int(season) * 14400 * DAYS_IN_SEASON;
|
||||
ret += year * 14400 * 4 * DAYS_IN_SEASON;
|
||||
ret += int(season) * 14400 * (int)OPTIONS[OPT_SEASON_LENGTH];
|
||||
ret += year * 14400 * 4 * (int)OPTIONS[OPT_SEASON_LENGTH];
|
||||
return ret;
|
||||
}
|
||||
|
||||
@@ -64,8 +64,8 @@ calendar::operator int() const
|
||||
ret += minute * 10;
|
||||
ret += hour * 600;
|
||||
ret += day * 14400;
|
||||
ret += int(season) * 14400 * DAYS_IN_SEASON;
|
||||
ret += year * 14400 * 4 * DAYS_IN_SEASON;
|
||||
ret += int(season) * 14400 * (int)OPTIONS[OPT_SEASON_LENGTH];
|
||||
ret += year * 14400 * 4 * (int)OPTIONS[OPT_SEASON_LENGTH];
|
||||
return ret;
|
||||
}
|
||||
|
||||
@@ -86,16 +86,16 @@ calendar& calendar::operator =(calendar &rhs)
|
||||
|
||||
calendar& calendar::operator =(int rhs)
|
||||
{
|
||||
int minutes = int(rhs / 10);
|
||||
int hours = minutes / 60;
|
||||
int days = hours / 24;
|
||||
int seasons = days / DAYS_IN_SEASON;
|
||||
int minute_param = int(rhs / 10);
|
||||
int hour_param = minute_param / 60;
|
||||
int day_param = hour_param / 24;
|
||||
int season_param = day_param / OPTIONS[OPT_SEASON_LENGTH];
|
||||
second = 6 * (rhs % 10);
|
||||
minute = minutes % 60;
|
||||
hour = hours % 24;
|
||||
day = days % DAYS_IN_SEASON;
|
||||
season = season_type(seasons % 4);
|
||||
year = seasons / 4;
|
||||
minute = minute_param % 60;
|
||||
hour = hour_param % 24;
|
||||
day = day_param % (int)OPTIONS[OPT_SEASON_LENGTH];
|
||||
season = season_type(season_param % 4);
|
||||
year = season_param / 4;
|
||||
return *this;
|
||||
}
|
||||
|
||||
@@ -149,11 +149,11 @@ calendar& calendar::operator +=(int rhs)
|
||||
return *this;
|
||||
}
|
||||
|
||||
bool calendar::operator ==(int rhs)
|
||||
bool calendar::operator ==(int rhs) const
|
||||
{
|
||||
return int(*this) == rhs;
|
||||
}
|
||||
bool calendar::operator ==(calendar &rhs)
|
||||
bool calendar::operator ==(calendar &rhs) const
|
||||
{
|
||||
return (second == rhs.second &&
|
||||
minute == rhs.minute &&
|
||||
@@ -198,6 +198,11 @@ void calendar::increment()
|
||||
standardize();
|
||||
}
|
||||
|
||||
int calendar::getHour()
|
||||
{
|
||||
return hour;
|
||||
}
|
||||
|
||||
void calendar::standardize()
|
||||
{
|
||||
if (second >= 60) {
|
||||
@@ -213,9 +218,9 @@ void calendar::standardize()
|
||||
hour %= 24;
|
||||
}
|
||||
int tmpseason = int(season);
|
||||
if (day >= DAYS_IN_SEASON) {
|
||||
tmpseason += day / DAYS_IN_SEASON;
|
||||
day %= DAYS_IN_SEASON;
|
||||
if (day >= OPTIONS[OPT_SEASON_LENGTH]) {
|
||||
tmpseason += day / OPTIONS[OPT_SEASON_LENGTH];
|
||||
day %= (int)OPTIONS[OPT_SEASON_LENGTH];
|
||||
}
|
||||
if (tmpseason >= 4) {
|
||||
year += tmpseason / 4;
|
||||
@@ -233,7 +238,7 @@ int calendar::minutes_past_midnight() const
|
||||
|
||||
moon_phase calendar::moon() const
|
||||
{
|
||||
int phase = day / (DAYS_IN_SEASON / 4);
|
||||
int phase = day / (OPTIONS[OPT_SEASON_LENGTH] / 4);
|
||||
//phase %= 4; Redundant?
|
||||
if (phase == 3)
|
||||
return MOON_HALF;
|
||||
@@ -263,7 +268,7 @@ calendar calendar::sunrise() const
|
||||
end_hour = SUNRISE_SOLSTICE;
|
||||
break;
|
||||
}
|
||||
double percent = double(double(day) / DAYS_IN_SEASON);
|
||||
double percent = double(double(day) / OPTIONS[OPT_SEASON_LENGTH]);
|
||||
double time = double(start_hour) * (1.- percent) + double(end_hour) * percent;
|
||||
|
||||
ret.hour = int(time);
|
||||
@@ -295,7 +300,7 @@ calendar calendar::sunset() const
|
||||
end_hour = SUNSET_SOLSTICE;
|
||||
break;
|
||||
}
|
||||
double percent = double(double(day) / DAYS_IN_SEASON);
|
||||
double percent = double(double(day) / OPTIONS[OPT_SEASON_LENGTH]);
|
||||
double time = double(start_hour) * (1.- percent) + double(end_hour) * percent;
|
||||
|
||||
ret.hour = int(time);
|
||||
@@ -346,41 +351,58 @@ int calendar::sunlight() const
|
||||
return DAYLIGHT_LEVEL;
|
||||
}
|
||||
|
||||
std::string calendar::print_time(bool twentyfour)
|
||||
{
|
||||
std::stringstream ret;
|
||||
if (twentyfour) {
|
||||
ret << hour << ":";
|
||||
if (minute < 10)
|
||||
ret << "0";
|
||||
ret << minute;
|
||||
} else {
|
||||
if (OPTIONS[OPT_24_HOUR] == 1) {
|
||||
int hours = hour % 24;
|
||||
if (hours < 10)
|
||||
ret << "0";
|
||||
ret << hours;
|
||||
} else if (OPTIONS[OPT_24_HOUR] == 2) {
|
||||
int hours = hour % 24;
|
||||
ret << hours << ":";
|
||||
}else {
|
||||
int hours = hour % 12;
|
||||
if (hours == 0)
|
||||
hours = 12;
|
||||
ret << hours << ":";
|
||||
}
|
||||
if (minute < 10)
|
||||
ret << "0";
|
||||
ret << minute;
|
||||
if (OPTIONS[OPT_24_HOUR] == 0) {
|
||||
if (hour < 12)
|
||||
ret << " AM";
|
||||
else
|
||||
ret << " PM";
|
||||
}
|
||||
}
|
||||
|
||||
return ret.str();
|
||||
|
||||
std::string calendar::print_time(bool just_hour) const
|
||||
{
|
||||
std::stringstream time_string;
|
||||
|
||||
if (OPTIONS[OPT_24_HOUR] == 1)
|
||||
{
|
||||
int hour_param = hour % 24;
|
||||
if (hour_param < 10)
|
||||
{
|
||||
time_string << "0";
|
||||
}
|
||||
time_string << hour_param;
|
||||
}
|
||||
else if (OPTIONS[OPT_24_HOUR] == 2)
|
||||
{
|
||||
int hour_param = hour % 24;
|
||||
time_string << hour_param;
|
||||
if (!just_hour) time_string << ":";
|
||||
}
|
||||
else
|
||||
{
|
||||
int hour_param = hour % 12;
|
||||
if (hour_param == 0)
|
||||
{
|
||||
hour_param = 12;
|
||||
}
|
||||
time_string << hour_param;
|
||||
if (!just_hour) time_string << ":";
|
||||
}
|
||||
if(!just_hour)
|
||||
{
|
||||
if (minute < 10)
|
||||
{
|
||||
time_string << "0";
|
||||
}
|
||||
time_string << minute;
|
||||
}
|
||||
if (OPTIONS[OPT_24_HOUR] == 0)
|
||||
{
|
||||
if (hour < 12)
|
||||
{
|
||||
time_string << " AM";
|
||||
}
|
||||
else
|
||||
{
|
||||
time_string << " PM";
|
||||
}
|
||||
}
|
||||
|
||||
return time_string.str();
|
||||
}
|
||||
|
||||
std::string calendar::textify_period()
|
||||
@@ -414,3 +436,71 @@ std::string calendar::textify_period()
|
||||
|
||||
return ret.str();
|
||||
}
|
||||
|
||||
std::string calendar::day_of_week() const
|
||||
{
|
||||
// Design rationale
|
||||
// <kevingranade> here's a question
|
||||
// <kevingranade> what day of the week is day 0?
|
||||
// <wito> Sunday
|
||||
// <GlyphGryph> Why does it matter?
|
||||
// <GlyphGryph> For like where people are and stuff?
|
||||
// <wito> 7 is also Sunday
|
||||
// <kevingranade> NOAA weather forecasts include day of week
|
||||
// <GlyphGryph> Also by day0 do you mean the day people start day 0
|
||||
// <GlyphGryph> Or actual day 0
|
||||
// <kevingranade> good point, turn 0
|
||||
// <GlyphGryph> So day 5
|
||||
// <wito> Oh, I thought we were talking about week day numbering in general.
|
||||
// <wito> Day 5 is a thursday, I think.
|
||||
// <wito> Nah, Day 5 feels like a thursday. :P
|
||||
// <wito> Which would put the apocalpyse on a saturday?
|
||||
// <Starfyre> must be a thursday. I was never able to get the hang of those.
|
||||
// <ZChris13> wito: seems about right to me
|
||||
// <wito> kevingranade: add four for thursday. ;)
|
||||
// <kevingranade> sounds like consensus to me
|
||||
// <kevingranade> Thursday it is
|
||||
|
||||
enum weekday
|
||||
{
|
||||
THURSDAY = 0,
|
||||
FRIDAY = 1,
|
||||
SATURDAY = 2,
|
||||
SUNDAY = 3,
|
||||
MONDAY = 4,
|
||||
TUESDAY = 5,
|
||||
WEDNESDAY = 6
|
||||
};
|
||||
|
||||
// calendar::day gets mangled by season transitions, so reclaculate days since start.
|
||||
int current_day = day % 7;
|
||||
|
||||
std::string day_string;
|
||||
|
||||
switch (current_day)
|
||||
{
|
||||
case SUNDAY:
|
||||
day_string = "Sunday";
|
||||
break;
|
||||
case MONDAY:
|
||||
day_string = "Monday";
|
||||
break;
|
||||
case TUESDAY:
|
||||
day_string = "Tuesday";
|
||||
break;
|
||||
case WEDNESDAY:
|
||||
day_string = "Wendsday";
|
||||
break;
|
||||
case THURSDAY:
|
||||
day_string = "Thursday";
|
||||
break;
|
||||
case FRIDAY:
|
||||
day_string = "Friday";
|
||||
break;
|
||||
case SATURDAY:
|
||||
day_string = "Saturday";
|
||||
break;
|
||||
}
|
||||
|
||||
return day_string;
|
||||
}
|
||||
|
||||
+32
-11
@@ -1,10 +1,7 @@
|
||||
#include <string>
|
||||
#include "weather.h"
|
||||
#ifndef _CALENDAR_H_
|
||||
#define _CALENDAR_H_
|
||||
|
||||
// How many minutes exist when the game starts - 8:00 AM
|
||||
#define STARTING_MINUTES 480
|
||||
// The number of days in a season - this also defines moon cycles
|
||||
#define DAYS_IN_SEASON 14
|
||||
#include <string>
|
||||
|
||||
// Convert minutes, hours, days to turns
|
||||
#define MINUTES(x) ((x) * 10)
|
||||
@@ -28,6 +25,14 @@
|
||||
// How much light is provided in full daylight
|
||||
#define DAYLIGHT_LEVEL 60
|
||||
|
||||
enum season_type {
|
||||
SPRING = 0,
|
||||
SUMMER = 1,
|
||||
AUTUMN = 2,
|
||||
WINTER = 3
|
||||
#define FALL AUTUMN
|
||||
};
|
||||
|
||||
enum moon_phase {
|
||||
MOON_NEW = 0,
|
||||
MOON_HALF,
|
||||
@@ -36,7 +41,7 @@ MOON_FULL
|
||||
|
||||
class calendar
|
||||
{
|
||||
public:
|
||||
private:
|
||||
// The basic data; note that "second" should always be a multiple of 6
|
||||
int second;
|
||||
int minute;
|
||||
@@ -46,11 +51,12 @@ class calendar
|
||||
int year;
|
||||
// End data
|
||||
|
||||
public:
|
||||
calendar();
|
||||
calendar(const calendar ©);
|
||||
calendar(int Minute, int Hour, int Day, season_type Season, int Year);
|
||||
calendar(int turn);
|
||||
int get_turn();
|
||||
int get_turn() const;
|
||||
operator int() const; // Returns get_turn() for backwards compatibility
|
||||
calendar& operator = (calendar &rhs);
|
||||
calendar& operator = (int rhs);
|
||||
@@ -62,13 +68,15 @@ class calendar
|
||||
calendar operator - (int rhs);
|
||||
calendar operator + (calendar &rhs);
|
||||
calendar operator + (int rhs);
|
||||
bool operator ==(int rhs);
|
||||
bool operator ==(calendar &rhs);
|
||||
bool operator ==(int rhs) const;
|
||||
bool operator ==(calendar &rhs) const;
|
||||
|
||||
void increment(); // Add one turn / 6 seconds
|
||||
|
||||
void standardize(); // Ensure minutes <= 59, hour <= 23, etc.
|
||||
|
||||
int getHour(); // return hour
|
||||
|
||||
// Sunlight and day/night calcuations
|
||||
int minutes_past_midnight() const; // Useful for sunrise/set calculations
|
||||
moon_phase moon() const; // Find phase of moon
|
||||
@@ -77,7 +85,20 @@ class calendar
|
||||
bool is_night() const; // After sunset + TWILIGHT_MINUTES, before sunrise
|
||||
int sunlight() const; // Current amount of sun/moonlight; uses preceding funcs
|
||||
|
||||
// Basic accessors
|
||||
int seconds() const {return second;}
|
||||
int minutes() const {return minute;}
|
||||
int hours() const {return hour;}
|
||||
int days() const {return day;}
|
||||
season_type get_season() const {return season;}
|
||||
int years() const {return year;}
|
||||
|
||||
void set_season(season_type new_season) {season = new_season;}
|
||||
|
||||
|
||||
// Print-friendly stuff
|
||||
std::string print_time(bool twentyfour = false);
|
||||
std::string print_time(bool just_hour = false) const;
|
||||
std::string textify_period(); // "1 second" "2 hours" "two days"
|
||||
std::string day_of_week() const;
|
||||
};
|
||||
#endif // _CALENDAR_H_
|
||||
|
||||
+207
@@ -0,0 +1,207 @@
|
||||
#include "catacharset.h"
|
||||
#include <string.h>
|
||||
#include "wcwidth.c"
|
||||
|
||||
//copied from SDL2_ttf code
|
||||
unsigned UTF8_getch(const char **src, int *srclen)
|
||||
{
|
||||
const unsigned char *p = *(const unsigned char**)src;
|
||||
int left = 0;
|
||||
bool overlong = false;
|
||||
bool underflow = false;
|
||||
unsigned ch = UNKNOWN_UNICODE;
|
||||
|
||||
if (*srclen == 0) {
|
||||
return UNKNOWN_UNICODE;
|
||||
}
|
||||
if (p[0] >= 0xFC) {
|
||||
if ((p[0] & 0xFE) == 0xFC) {
|
||||
if (p[0] == 0xFC && (p[1] & 0xFC) == 0x80) {
|
||||
overlong = true;
|
||||
}
|
||||
ch = (unsigned) (p[0] & 0x01);
|
||||
left = 5;
|
||||
}
|
||||
} else if (p[0] >= 0xF8) {
|
||||
if ((p[0] & 0xFC) == 0xF8) {
|
||||
if (p[0] == 0xF8 && (p[1] & 0xF8) == 0x80) {
|
||||
overlong = true;
|
||||
}
|
||||
ch = (unsigned) (p[0] & 0x03);
|
||||
left = 4;
|
||||
}
|
||||
} else if (p[0] >= 0xF0) {
|
||||
if ((p[0] & 0xF8) == 0xF0) {
|
||||
if (p[0] == 0xF0 && (p[1] & 0xF0) == 0x80) {
|
||||
overlong = true;
|
||||
}
|
||||
ch = (unsigned) (p[0] & 0x07);
|
||||
left = 3;
|
||||
}
|
||||
} else if (p[0] >= 0xE0) {
|
||||
if ((p[0] & 0xF0) == 0xE0) {
|
||||
if (p[0] == 0xE0 && (p[1] & 0xE0) == 0x80) {
|
||||
overlong = true;
|
||||
}
|
||||
ch = (unsigned) (p[0] & 0x0F);
|
||||
left = 2;
|
||||
}
|
||||
} else if (p[0] >= 0xC0) {
|
||||
if ((p[0] & 0xE0) == 0xC0) {
|
||||
if ((p[0] & 0xDE) == 0xC0) {
|
||||
overlong = true;
|
||||
}
|
||||
ch = (unsigned) (p[0] & 0x1F);
|
||||
left = 1;
|
||||
}
|
||||
} else {
|
||||
if ((p[0] & 0x80) == 0x00) {
|
||||
ch = (unsigned) p[0];
|
||||
}
|
||||
}
|
||||
++*src;
|
||||
--*srclen;
|
||||
while (left > 0 && *srclen > 0) {
|
||||
++p;
|
||||
if ((p[0] & 0xC0) != 0x80) {
|
||||
ch = UNKNOWN_UNICODE;
|
||||
break;
|
||||
}
|
||||
ch <<= 6;
|
||||
ch |= (p[0] & 0x3F);
|
||||
++*src;
|
||||
--*srclen;
|
||||
--left;
|
||||
}
|
||||
if (left > 0) {
|
||||
underflow = true;
|
||||
}
|
||||
if (overlong || underflow ||
|
||||
(ch >= 0xD800 && ch <= 0xDFFF) ||
|
||||
(ch == 0xFFFE || ch == 0xFFFF) || ch > 0x10FFFF) {
|
||||
ch = UNKNOWN_UNICODE;
|
||||
}
|
||||
return ch;
|
||||
}
|
||||
|
||||
//Calculate width of a unicode string
|
||||
//Latin characters have a width of 1
|
||||
//CJK characters have a width of 2, etc
|
||||
int utf8_width(const char* s)
|
||||
{
|
||||
int len = strlen(s);
|
||||
const char* ptr = s;
|
||||
int w = 0;
|
||||
while(len>0)
|
||||
{
|
||||
unsigned ch = UTF8_getch(&ptr, &len);
|
||||
if(ch!=UNKNOWN_UNICODE) {
|
||||
w += mk_wcwidth((wchar_t)ch);
|
||||
} else {
|
||||
continue;
|
||||
}
|
||||
}
|
||||
return w;
|
||||
}
|
||||
|
||||
//Convert cursor position to byte offset
|
||||
//returns the first character position in bytes behind the cursor position.
|
||||
//If the cursor is not on the first half of the character,
|
||||
//prevpos (which points to the first byte of the cursor located char)
|
||||
// should be a different value.
|
||||
int cursorx_to_position(const char* line, int cursorx, int* prevpos)
|
||||
{
|
||||
int dummy;
|
||||
int i=0, c=0, *p=prevpos?prevpos:&dummy;
|
||||
*p = 0;
|
||||
while(c<cursorx)
|
||||
{
|
||||
const char* utf8str = line+i;
|
||||
int len = ANY_LENGTH;
|
||||
unsigned ch = UTF8_getch(&utf8str, &len);
|
||||
int cw = mk_wcwidth((wchar_t)ch);
|
||||
len = ANY_LENGTH-len;
|
||||
if(len<=0) len=1;
|
||||
i+=len;
|
||||
if(cw<=0) cw=1;
|
||||
c+=cw;
|
||||
if(c<=cursorx) *p = i;
|
||||
}
|
||||
return i;
|
||||
}
|
||||
|
||||
//Erase character by unicode char width.
|
||||
//Fill the characters with spaces.
|
||||
//returns length modified
|
||||
int erease_utf8_by_cw( char* t, int cw, int clen, int maxlen)
|
||||
{
|
||||
static char buf[8000]; //LOL
|
||||
int c=0,i=0;
|
||||
while(c<cw)
|
||||
{
|
||||
const char* utf8str = t+i;
|
||||
int len = ANY_LENGTH;
|
||||
unsigned ch = UTF8_getch(&utf8str, &len);
|
||||
int cw = mk_wcwidth((wchar_t)ch);
|
||||
len = ANY_LENGTH-len;
|
||||
if(len<=0) len=1;
|
||||
i+=len;
|
||||
if(cw<=0) cw=1;
|
||||
c+=cw;
|
||||
}
|
||||
if(cw==c && clen==i)
|
||||
{
|
||||
memset(t, ' ', clen);
|
||||
return 0;
|
||||
}
|
||||
else
|
||||
{
|
||||
int filled = clen+c-cw;
|
||||
memcpy(buf, t+i, maxlen-i);
|
||||
memset(t, ' ', filled);
|
||||
memcpy(t+filled, buf, maxlen-filled);
|
||||
return filled-i;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
//cut ut8 string by character size
|
||||
//utf8_substr("正正正正", 1, 4) returns
|
||||
// " 正 "
|
||||
// Broken characters will be filled with space
|
||||
std::string utf8_substr(std::string s, int start, int size)
|
||||
{
|
||||
static char buf[8000];
|
||||
int len = strlen(s.c_str());
|
||||
int pos;
|
||||
strcpy(buf, s.c_str());
|
||||
int begin = cursorx_to_position(buf, start, &pos);
|
||||
if(begin!=pos)
|
||||
{
|
||||
const char* ts = buf+pos;
|
||||
int l = ANY_LENGTH;
|
||||
unsigned tc = UTF8_getch(&ts, &l);
|
||||
int tw = mk_wcwidth((wchar_t)tc);
|
||||
erease_utf8_by_cw(buf+pos, tw, tw, len-pos-1);
|
||||
begin = pos+tw-1;
|
||||
}
|
||||
|
||||
if(size>0)
|
||||
{
|
||||
int end = cursorx_to_position(buf, start+size-1, &pos);
|
||||
if(end!=pos)
|
||||
{
|
||||
const char* ts = buf+pos;
|
||||
int l = ANY_LENGTH;
|
||||
unsigned tc = UTF8_getch(&ts, &l);
|
||||
int tw = mk_wcwidth((wchar_t)tc);
|
||||
erease_utf8_by_cw(buf+pos, tw, tw, len-pos-1);
|
||||
end = pos+tw-1;
|
||||
}
|
||||
buf[end+1] = '\0';
|
||||
}
|
||||
|
||||
return std::string(buf+start);
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,18 @@
|
||||
#ifndef CATACHARSET_H
|
||||
#define CATACHARSET_H
|
||||
#include <wchar.h>
|
||||
#include <string>
|
||||
#define ANY_LENGTH 5
|
||||
#define UNKNOWN_UNICODE 0xFFFD
|
||||
|
||||
// get a unicode character from a utf8 string
|
||||
unsigned UTF8_getch(const char **src, int *srclen);
|
||||
// from wcwidth.c, return "cell" width of a unicode char
|
||||
int mk_wcwidth(wchar_t ucs);
|
||||
// convert cursorx value to byte position
|
||||
int cursorx_to_position(const char* line, int cursorx, int* prevppos=NULL);
|
||||
//erease for characters insertion
|
||||
int erease_utf8_by_cw( char* t, int cw, int len, int maxlen);
|
||||
int utf8_width(const char* s);
|
||||
std::string utf8_substr(std::string s, int start, int size=-1);
|
||||
#endif
|
||||
+2
-2
@@ -1,3 +1,3 @@
|
||||
#!/usr/bin/env sh
|
||||
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||
#!/bin/sh
|
||||
DIR=`dirname "$0"`
|
||||
cd $DIR && ./cataclysm
|
||||
|
||||
+24
-10
@@ -1,9 +1,11 @@
|
||||
#ifndef __CATACURSE__
|
||||
#define __CATACURSE__
|
||||
#if (defined _WIN32 || defined WINDOWS)
|
||||
#define _WIN32_WINNT 0x0500
|
||||
#define WIN32_LEAN_AND_MEAN
|
||||
//#define VC_EXTRALEAN
|
||||
#include <windows.h>
|
||||
#include "windows.h"
|
||||
#endif
|
||||
#include <stdio.h>
|
||||
typedef int chtype;
|
||||
typedef unsigned short attr_t;
|
||||
@@ -43,6 +45,7 @@ typedef struct
|
||||
typedef struct{
|
||||
bool touched;
|
||||
char *chars;
|
||||
int width_in_bytes;
|
||||
char *FG;
|
||||
char *BG;
|
||||
//cursechar chars [80];
|
||||
@@ -97,6 +100,9 @@ typedef struct {
|
||||
#define KEY_RIGHT 0x105 /* right arrow*/
|
||||
#define KEY_HOME 0x106 /* home key */ //<---------not used
|
||||
#define KEY_BACKSPACE 0x107 /* Backspace */ //<---------not used
|
||||
#define KEY_NPAGE 0x152 /* page down */
|
||||
#define KEY_PPAGE 0x153 /* page up */
|
||||
#define KEY_ENTER 0x157 /* enter */
|
||||
|
||||
/* Curses external declarations. */
|
||||
|
||||
@@ -114,21 +120,24 @@ int wborder(WINDOW *win, chtype ls, chtype rs, chtype ts, chtype bs, chtype tl,
|
||||
int wrefresh(WINDOW *win);
|
||||
int refresh(void);
|
||||
int getch(void);
|
||||
int wgetch(WINDOW* win);
|
||||
int mvgetch(int y, int x);
|
||||
int mvwgetch(WINDOW* win, int y, int x);
|
||||
int mvwprintw(WINDOW *win, int y, int x, const char *fmt, ...);
|
||||
int mvprintw(int y, int x, const char *fmt, ...);
|
||||
int werase(WINDOW *win);
|
||||
int start_color(void);
|
||||
int init_pair(short pair, short f, short b);
|
||||
int wmove(WINDOW *win, int y, int x);
|
||||
|
||||
int getnstr(char *str, int size);
|
||||
int clear(void);
|
||||
int clearok(WINDOW *win);
|
||||
int erase(void);
|
||||
int endwin(void);
|
||||
int mvwaddch(WINDOW *win, int y, int x, const chtype ch);
|
||||
int wclear(WINDOW *win);
|
||||
int wprintw(WINDOW *win, const char *fmt, ...);
|
||||
WINDOW *initscr(void);
|
||||
int noecho(void);//PORTABILITY, DUMMY FUNCTION
|
||||
int cbreak(void);//PORTABILITY, DUMMY FUNCTION
|
||||
int keypad(WINDOW *faux, bool bf);//PORTABILITY, DUMMY FUNCTION
|
||||
int curs_set(int visibility);//PORTABILITY, DUMMY FUNCTION
|
||||
@@ -146,11 +155,16 @@ int getbegy(WINDOW *win);
|
||||
int move(int y, int x);
|
||||
void timeout(int delay);//PORTABILITY, DUMMY FUNCTION
|
||||
void set_escdelay(int delay);//PORTABILITY, DUMMY FUNCTION
|
||||
|
||||
//Window Functions, Do not call these outside of catacurse.cpp
|
||||
void WinDestroy();
|
||||
bool WinCreate(bool initgl);
|
||||
void CheckMessages();
|
||||
int FindWin(WINDOW *wnd);
|
||||
LRESULT CALLBACK ProcessMessages(HWND__ *hWnd,u_int32_t Msg,WPARAM wParam, LPARAM lParam);
|
||||
int echo(void);
|
||||
int noecho(void);
|
||||
//non-curses functions, Do not call these in the main game code
|
||||
extern WINDOW* mainwin;
|
||||
extern pairs *colorpairs;
|
||||
WINDOW* curses_init();
|
||||
int curses_destroy();
|
||||
void curses_drawwindow(WINDOW* win);
|
||||
void curses_delay(int delay);
|
||||
void curses_timeout(int t);
|
||||
int curses_getch(WINDOW* win);
|
||||
int curses_start_color();
|
||||
#endif
|
||||
|
||||
+316
@@ -0,0 +1,316 @@
|
||||
#include "catajson.h"
|
||||
#include "output.h"
|
||||
#include <string>
|
||||
#include <iostream>
|
||||
#include <fstream>
|
||||
#include <sstream>
|
||||
|
||||
catajson::catajson()
|
||||
{
|
||||
path_msg = "";
|
||||
}
|
||||
|
||||
catajson::catajson(std::string path)
|
||||
{
|
||||
std::ifstream file;
|
||||
file.open(path.c_str());
|
||||
file >> val;
|
||||
file.close();
|
||||
|
||||
path_msg = path;
|
||||
|
||||
std::string err = picojson::get_last_error();
|
||||
if (! err.empty()) {
|
||||
debugmsg("Parse error in %s.\n\nERROR: %s\n", path.c_str(), err.c_str());
|
||||
}
|
||||
}
|
||||
|
||||
catajson::catajson(picojson::value val_in, std::string path_msg_in)
|
||||
{
|
||||
val = val_in;
|
||||
path_msg = path_msg_in;
|
||||
}
|
||||
|
||||
char catajson::as_char() const
|
||||
{
|
||||
std::string temp = as_string();
|
||||
if (temp.size() != 1)
|
||||
{
|
||||
debugmsg("JSON warning at %s: value requested as char, string length is not 1", path_msg.c_str());
|
||||
}
|
||||
return temp[0];
|
||||
}
|
||||
|
||||
std::string catajson::as_string() const
|
||||
{
|
||||
if (val.is<std::string>())
|
||||
{
|
||||
return val.get<std::string>();
|
||||
}
|
||||
else
|
||||
{
|
||||
debugmsg("JSON error at %s: value is not a string", path_msg.c_str());
|
||||
}
|
||||
return "";
|
||||
}
|
||||
|
||||
int catajson::as_int() const
|
||||
{
|
||||
double temp = as_double();
|
||||
int ret = static_cast<int>(temp);
|
||||
if (ret != temp)
|
||||
{
|
||||
debugmsg("JSON warning at %s: value was requested as int, provided as double", path_msg.c_str());
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
|
||||
bool catajson::as_bool() const
|
||||
{
|
||||
if (val.is<bool>())
|
||||
{
|
||||
return val.get<bool>();
|
||||
}
|
||||
else
|
||||
{
|
||||
debugmsg("JSON error at %s: value is not a boolean", path_msg.c_str());
|
||||
}
|
||||
return val.evaluate_as_boolean();
|
||||
}
|
||||
|
||||
double catajson::as_double() const
|
||||
{
|
||||
if (val.is<double>())
|
||||
{
|
||||
return val.get<double>();
|
||||
}
|
||||
else
|
||||
{
|
||||
debugmsg("JSON error at %s: value is not numeric", path_msg.c_str());
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
std::set<std::string> catajson::as_tags()
|
||||
{
|
||||
std::set<std::string> tags;
|
||||
if (is_array())
|
||||
{
|
||||
for (set_begin(); has_curr(); next())
|
||||
{
|
||||
tags.insert( curr().as_string() );
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
// We should have gotten a string, if not an array.
|
||||
tags.insert( as_string() );
|
||||
}
|
||||
return tags;
|
||||
}
|
||||
|
||||
catajson catajson::get(std::string key) const
|
||||
{
|
||||
if (val.is<picojson::object>())
|
||||
{
|
||||
if (has(key))
|
||||
{
|
||||
return catajson(val.get(key), path_msg + "[" + key + "]");
|
||||
}
|
||||
else
|
||||
{
|
||||
debugmsg("JSON error at %s[%s]: value does not exist", path_msg.c_str(), key.c_str());
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
debugmsg("JSON error at %s: value is not an object", path_msg.c_str());
|
||||
}
|
||||
return catajson();
|
||||
}
|
||||
|
||||
catajson catajson::get(int index) const
|
||||
{
|
||||
if (val.is<picojson::array>())
|
||||
{
|
||||
if (has(index))
|
||||
{
|
||||
std::stringstream text;
|
||||
text << path_msg << "[" << index << "]";
|
||||
return catajson(val.get(index), text.str());
|
||||
}
|
||||
else
|
||||
{
|
||||
debugmsg("JSON error at %s[%d]: value does not exist", path_msg.c_str(), index);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
debugmsg("JSON error at %s: value is not an array", path_msg.c_str());
|
||||
}
|
||||
return catajson();
|
||||
}
|
||||
|
||||
bool catajson::has(std::string key) const
|
||||
{
|
||||
if (val.is<picojson::object>())
|
||||
{
|
||||
return val.contains(key);
|
||||
}
|
||||
else
|
||||
{
|
||||
debugmsg("JSON error at %s: value is not an object", path_msg.c_str());
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
bool catajson::has(int index) const
|
||||
{
|
||||
if (val.is<picojson::array>())
|
||||
{
|
||||
return val.contains(index);
|
||||
}
|
||||
else
|
||||
{
|
||||
debugmsg("JSON error at %s: value is not an array", path_msg.c_str());
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
bool catajson::is_char() const
|
||||
{
|
||||
return is_string() && as_string().size() == 1;
|
||||
}
|
||||
|
||||
bool catajson::is_string() const
|
||||
{
|
||||
return val.is<std::string>();
|
||||
}
|
||||
|
||||
bool catajson::is_number() const
|
||||
{
|
||||
return val.is<double>();
|
||||
}
|
||||
|
||||
bool catajson::is_bool() const
|
||||
{
|
||||
return val.is<bool>();
|
||||
}
|
||||
|
||||
bool catajson::is_object() const
|
||||
{
|
||||
return val.is<picojson::object>();
|
||||
}
|
||||
|
||||
bool catajson::is_array() const
|
||||
{
|
||||
return val.is<picojson::array>();
|
||||
}
|
||||
|
||||
void catajson::set_begin()
|
||||
{
|
||||
if (val.is<picojson::array>())
|
||||
{
|
||||
ar_iter = val.get<picojson::array>().begin();
|
||||
}
|
||||
else if (val.is<picojson::object>())
|
||||
{
|
||||
obj_iter = val.get<picojson::object>().begin();
|
||||
}
|
||||
else
|
||||
{
|
||||
debugmsg("JSON error at %s: cannot call set_begin(), value is not an array or object", path_msg.c_str());
|
||||
}
|
||||
}
|
||||
|
||||
void catajson::set_end()
|
||||
{
|
||||
if (val.is<picojson::array>())
|
||||
{
|
||||
ar_iter = val.get<picojson::array>().end();
|
||||
}
|
||||
else if (val.is<picojson::object>())
|
||||
{
|
||||
obj_iter = val.get<picojson::object>().end();
|
||||
}
|
||||
else
|
||||
{
|
||||
debugmsg("JSON error at %s: cannot call set_end(), value is not an array or object", path_msg.c_str());
|
||||
}
|
||||
}
|
||||
|
||||
void catajson::next()
|
||||
{
|
||||
if (val.is<picojson::array>())
|
||||
{
|
||||
++ar_iter;
|
||||
}
|
||||
else if (val.is<picojson::object>())
|
||||
{
|
||||
++obj_iter;
|
||||
}
|
||||
else
|
||||
{
|
||||
debugmsg("JSON error at %s: tried to iterate an invalid value", path_msg.c_str());
|
||||
}
|
||||
}
|
||||
|
||||
void catajson::prev()
|
||||
{
|
||||
if (val.is<picojson::array>())
|
||||
{
|
||||
--ar_iter;
|
||||
}
|
||||
else if (val.is<picojson::object>())
|
||||
{
|
||||
--obj_iter;
|
||||
}
|
||||
else
|
||||
{
|
||||
debugmsg("JSON error at %s: tried to iterate an invalid value", path_msg.c_str());
|
||||
}
|
||||
}
|
||||
|
||||
bool catajson::has_curr() const
|
||||
{
|
||||
if (val.is<picojson::array>())
|
||||
{
|
||||
if (ar_iter >= val.get<picojson::array>().begin() && ar_iter < val.get<picojson::array>().end())
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
else if (val.is<picojson::object>())
|
||||
{
|
||||
return has(obj_iter->first);
|
||||
}
|
||||
else
|
||||
{
|
||||
debugmsg("JSON error at %s: not an array or object", path_msg.c_str());
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
catajson catajson::curr() const
|
||||
{
|
||||
if (val.is<picojson::array>())
|
||||
{
|
||||
const int count = val.get<picojson::array>().size();
|
||||
for (int i = 0; i < count; ++i)
|
||||
{
|
||||
if (val.get(i) == *ar_iter)
|
||||
{
|
||||
return get(i);
|
||||
}
|
||||
}
|
||||
}
|
||||
else if (val.is<picojson::object>())
|
||||
{
|
||||
return get(obj_iter->first);
|
||||
}
|
||||
else
|
||||
{
|
||||
debugmsg("JSON error at %s: not an array or object", path_msg.c_str());
|
||||
}
|
||||
return catajson();
|
||||
}
|
||||
+53
@@ -0,0 +1,53 @@
|
||||
#ifndef _CATAJSON_H_
|
||||
#define _CATAJSON_H_
|
||||
|
||||
#include "picojson.h"
|
||||
#include <set>
|
||||
|
||||
class catajson
|
||||
{
|
||||
public:
|
||||
catajson();
|
||||
catajson(std::string path);
|
||||
catajson(picojson::value val, std::string path_msg);
|
||||
|
||||
// accessors for picojson values containing simple types
|
||||
char as_char() const;
|
||||
std::string as_string() const;
|
||||
int as_int() const;
|
||||
bool as_bool() const;
|
||||
double as_double() const;
|
||||
// accessor for not-so-simple type
|
||||
std::set<std::string> as_tags();
|
||||
// accessors in the case of array or object values
|
||||
catajson get(std::string key) const;
|
||||
catajson get(int index) const;
|
||||
|
||||
//these check whether a given key/index is valid
|
||||
bool has(std::string key) const;
|
||||
bool has(int index) const;
|
||||
|
||||
bool is_char() const;
|
||||
bool is_string() const;
|
||||
bool is_number() const; // double OR int
|
||||
bool is_bool() const;
|
||||
bool is_object() const; // string-value pairs
|
||||
bool is_array() const;
|
||||
|
||||
// these are intended for use in iteration
|
||||
// STL-style iterators are acceptable too, if anyone wants to add them
|
||||
void set_begin(); // start iterating from the beginning
|
||||
void set_end(); // start iterating from the end
|
||||
void next(); // caller's responsibility to init first
|
||||
void prev(); // caller's responsibility to init first
|
||||
bool has_curr() const; // would curr() be valid?
|
||||
catajson curr() const; // get the current element
|
||||
|
||||
private:
|
||||
picojson::value val;
|
||||
picojson::array::const_iterator ar_iter;
|
||||
picojson::object::const_iterator obj_iter;
|
||||
std::string path_msg; // used for error messages
|
||||
};
|
||||
|
||||
#endif
|
||||
@@ -39,3 +39,75 @@ ADDITIONS
|
||||
they die. This works the same as attacks, but the relevent files are
|
||||
mondeath.h and mondeath.cpp.
|
||||
|
||||
1.3 Adding a recipe
|
||||
1) Edit recipes.json. Add your recipe among similar recipes. Required fields
|
||||
are "result", "category", "difficulty", "time", "autolearn", "components".
|
||||
Optional fields are "reversible" (defaults to false), "tools" (defaults to
|
||||
none), "skill_pri" (primary skill, defaults to none), "skill_sec" (defaults
|
||||
to none), "id_suffix" (disambiguates recipes with the same result, must be
|
||||
unique among the set of such recipes), "decomp_learn" (the level (if any)
|
||||
when you can learn it from disassembly), "book_learn" (a list of books that
|
||||
teach the recipe, and the level they teach it at).
|
||||
|
||||
1.4 Adding/editing armour and how armour protection is calculated
|
||||
1) Edit armor.json and add your armor item near similar types.
|
||||
2) The fields are:
|
||||
"type" : "ARMOR", // this must be ARMOR
|
||||
"id" : "socks", // the identifier used by the game. Must be one continuous word, use underscores if necessary
|
||||
"name" : "socks", // the name appearing in the examine box. Can be more than one word separated by spaces
|
||||
"weight" : 1, // weight of armour
|
||||
"color" : "blue", // ascii character colour
|
||||
"covers" : ["FEET"], // where it covers. Possible options are TORSO, HEAD, EYES, MOUTH, ARMS, HANDS, LEGS, FEET
|
||||
"to_hit" : 0, // to-hit bonus if using it as a melee weapon (whatever for?)
|
||||
"storage" : 0, // how many volume storage slots it adds
|
||||
"symbol" : "[", // ascii character
|
||||
"description" : "Socks. Put 'em on your feet.", // description of armour
|
||||
"price" : 100, // price of armour, used when bartering with NPCs
|
||||
"material" : ["COTTON", "NULL"], // material types. See materials.json for possible options
|
||||
"volume" : 1, // volume occupied
|
||||
"cutting" : 0, // cutting damage caused by using it as a melee weapon
|
||||
"warmth" : 10, // how much warmth clothing provides
|
||||
"phase" : "solid", // what phase it is
|
||||
"enviromental_protection" : 0, // how much environmental protection it affords
|
||||
"rarity" : 70, // determines how often it spawns
|
||||
"encumberance" : 0, // base encumbrance (unfitted value)
|
||||
"bashing" : -5, // bashing damage caused by using it as a melee weapon
|
||||
"flags" : ["VARSIZE"] // used to indicate clothing type which can be fitted. Leave out the flags field entirely if clothing cannot be fitted
|
||||
"coverage" : 80, // what percentage of body part
|
||||
"material_thickness" : 1 // thickness of material, in millimetre units (approximately). Generally ranges between 1 - 5, more unusual armour types go up to 10 or more
|
||||
3) When the player is hit at a specific body part, armour coverage determines whether the armour is hit, or an uncovered part of the player is hit (roll 1d100 against coverage)
|
||||
4) If the above roll fails (ie roll value is above coverage), then the armour does not absorb any damage from the blow, neither does it become damaged
|
||||
5) If the above roll succeeds, the armour is hit, possibly absorbing some damage and possibly getting damaged in the process
|
||||
6) The above steps are repeated for each layer of armour on the body part
|
||||
7) Armour protects against bash and cut damage. These are determined by multiplying the armour thickness by the material bash/cut resistance factor respectively, given in materials.json
|
||||
8) If the armour is made from 2 materials types, then it takes a weighted average of the primary material (66%) and secondary material (33%).
|
||||
9) Materials resistance factors are given relative to PAPER as a material (this probably needs some fine-tuning for balance).
|
||||
|
||||
1.5 Adding a bionic
|
||||
1) Edit data/raw/bionics.json and add your bionic near similar types.
|
||||
|
||||
2) Add the required attributes
|
||||
|
||||
id : "bio_rocketlauncher" // Text string used as identifier in the code.
|
||||
name : "CBM: Rocket Launcher" // The bionic's name, as showed to the player.
|
||||
cost : 10 // How many PUs it costs to use the bionic.
|
||||
time : 0 // How long, when activated, between drawing cost. If 0, it draws power once.
|
||||
description : "It's a rocket launcher, inside your arm!!" // A brief description of the bionic, as showed to the player.
|
||||
|
||||
3) Add any otional attributes
|
||||
|
||||
flags : ["ACTIVE"] // Used to flag the bionic as a specific type.
|
||||
|
||||
Supported flags:
|
||||
|
||||
"ACTIVE" : The bionic can be manually activated and deactivated.
|
||||
"POWER" : The bionic provides a source of power.
|
||||
"FAULTY" : The bionic is an unwanted one, will typically have negative effects.
|
||||
|
||||
Flags can be combined like so: ["ACTIVE","POWER","FAULTY"] (Don't add all these at once)
|
||||
|
||||
4) If you want the bionic to be available in the gameworld as an item, add it to itypedef.cpp
|
||||
|
||||
BIO_SINGLE(id, rarity, price, color, difficulty)
|
||||
|
||||
See 1.1 for more information about adding items.
|
||||
@@ -0,0 +1,32 @@
|
||||
Stat system scaling:
|
||||
Minimum stat: 1 (should only happen due to penalties)
|
||||
Nominal stat: 8 ("average" person)
|
||||
Very high stat: ? (realistic world class human)
|
||||
Maximal stat: 20 (higher may be achievable, but we're not worried about balancing at that point.)
|
||||
|
||||
Skill system scaling:
|
||||
Minimum skill: 0 (no training)
|
||||
Maximum skill: 10 (requires regular training to maintain)
|
||||
|
||||
Monster melee skill scaling:
|
||||
Ranges from 8 to 16
|
||||
|
||||
Dodge System assumptions:
|
||||
Dodge chance is based on attacker's melee skill and target's dex stat and dodge skill.
|
||||
Successful dodges negate the attack and impose a cumulative penalty on dodges within the same turn.
|
||||
|
||||
Dodge Use Cases:
|
||||
An individual with no skill and nominal stats in ideal circumstances against a basic opponent should occasionally be able to dodge.
|
||||
|
||||
An individual with no skill and nominal stats in ideal circumstances against a skilled opponent should rarely if ever be able to dodge.
|
||||
|
||||
An individual with world-class dodging ability, in ideal circumstances against a basic opponent should have a negligible chance of failure.
|
||||
|
||||
An individual with world-class dodging ability, in ideal circumstances against a skilled opponent should have a moderate chance of failure.
|
||||
|
||||
The effect of increasing dodge skill has a growth rate with diminishing returns that accelerates sharply at the point where you move beyond the dodge a "regular" character is likely to achieve (7 and above)
|
||||
|
||||
The balance of melee versus dodge should favour dodge which, after all, isn't effective against a wide variety of other types of attacks.
|
||||
|
||||
Even a world class dodger should not be able to dodge continuously when attacked many times a turn.
|
||||
|
||||
+479
-70
@@ -70,7 +70,9 @@ void computer::shutdown_terminal()
|
||||
void computer::use(game *g)
|
||||
{
|
||||
if (w_terminal == NULL)
|
||||
w_terminal = newwin(25, 80, (TERMY > 25) ? (TERMY-25)/2 : 0, (TERMX > 80) ? (TERMX-80)/2 : 0);
|
||||
w_terminal = newwin(FULL_SCREEN_HEIGHT, FULL_SCREEN_WIDTH,
|
||||
(TERMY > FULL_SCREEN_HEIGHT) ? (TERMY-FULL_SCREEN_HEIGHT)/2 : 0,
|
||||
(TERMX > FULL_SCREEN_WIDTH) ? (TERMX-FULL_SCREEN_WIDTH)/2 : 0);
|
||||
wborder(w_terminal, LINE_XOXO, LINE_XOXO, LINE_OXOX, LINE_OXOX,
|
||||
LINE_OXXO, LINE_OOXX, LINE_XXOO, LINE_XOOX );
|
||||
|
||||
@@ -93,7 +95,7 @@ void computer::use(game *g)
|
||||
|
||||
case 'y':
|
||||
case 'Y':
|
||||
if (!hack_attempt(&(g->u))) {
|
||||
if (!hack_attempt(g, &(g->u))) {
|
||||
if (failures.size() == 0) {
|
||||
print_line("Maximum login attempts exceeded. Press any key...");
|
||||
getch();
|
||||
@@ -140,7 +142,7 @@ void computer::use(game *g)
|
||||
if (current.security > 0) {
|
||||
print_error("Password required.");
|
||||
if (query_bool("Hack into system?")) {
|
||||
if (!hack_attempt(&(g->u), current.security)) {
|
||||
if (!hack_attempt(g, &(g->u), current.security)) {
|
||||
activate_random_failure(g);
|
||||
shutdown_terminal();
|
||||
return;
|
||||
@@ -151,18 +153,19 @@ void computer::use(game *g)
|
||||
}
|
||||
} else // No need to hack, just activate
|
||||
activate_function(g, current.action);
|
||||
reset_terminal();
|
||||
} // Done processing a selected option.
|
||||
} while (!done); // Done with main terminal loop
|
||||
|
||||
shutdown_terminal(); // This should have been done by now, but just in case.
|
||||
}
|
||||
|
||||
bool computer::hack_attempt(player *p, int Security)
|
||||
bool computer::hack_attempt(game *g, player *p, int Security)
|
||||
{
|
||||
if (Security == -1)
|
||||
Security = security; // Set to main system security if no value passed
|
||||
|
||||
p->practice("computer", 5 + Security * 2);
|
||||
p->practice(g->turn, "computer", 5 + Security * 2);
|
||||
int player_roll = p->skillLevel("computer");
|
||||
if (p->int_cur < 8 && one_in(2))
|
||||
player_roll -= rng(0, 8 - p->int_cur);
|
||||
@@ -221,10 +224,10 @@ void computer::load_data(std::string data)
|
||||
std::string tmpname;
|
||||
int tmpaction, tmpsec;
|
||||
dump >> tmpname >> tmpaction >> tmpsec;
|
||||
size_t found = tmpname.find("_");
|
||||
while (found != std::string::npos) {
|
||||
tmpname.replace(found, 1, " ");
|
||||
found = tmpname.find("_");
|
||||
size_t tmp_found = tmpname.find("_");
|
||||
while (tmp_found != std::string::npos) {
|
||||
tmpname.replace(tmp_found, 1, " ");
|
||||
tmp_found = tmpname.find("_");
|
||||
}
|
||||
add_option(tmpname, computer_action(tmpaction), tmpsec);
|
||||
}
|
||||
@@ -248,6 +251,24 @@ void computer::activate_function(game *g, computer_action action)
|
||||
g->m.translate(t_door_metal_locked, t_floor);
|
||||
print_line("Doors opened.");
|
||||
break;
|
||||
|
||||
//LOCK AND UNLOCK are used to build more complex buildings that can have multiple doors that can be locked and
|
||||
//unlocked by different computers. Simply uses translate_radius which take a given radius and player position
|
||||
//to determine which terrain tiles to edit.
|
||||
case COMPACT_LOCK:
|
||||
g->m.translate_radius(t_door_metal_c, t_door_metal_locked, 8.0, g->u.posx, g->u.posy);
|
||||
print_line("Lock enabled.");
|
||||
break;
|
||||
|
||||
case COMPACT_UNLOCK:
|
||||
g->m.translate_radius(t_door_metal_locked, t_door_metal_c, 8.0, g->u.posx, g->u.posy);
|
||||
print_line("Lock disabled.");
|
||||
break;
|
||||
|
||||
//Toll is required for the church computer/mechanism to function
|
||||
case COMPACT_TOLL:
|
||||
g->sound(g->u.posx, g->u.posy, 120, "Bohm... Bohm... Bohm...");
|
||||
break;
|
||||
|
||||
case COMPACT_SAMPLE:
|
||||
for (int x = 0; x < SEEX * MAPSIZE; x++) {
|
||||
@@ -255,7 +276,7 @@ void computer::activate_function(game *g, computer_action action)
|
||||
if (g->m.ter(x, y) == t_sewage_pump) {
|
||||
for (int x1 = x - 1; x1 <= x + 1; x1++) {
|
||||
for (int y1 = y - 1; y1 <= y + 1; y1++ ) {
|
||||
if (g->m.ter(x1, y1) == t_counter) {
|
||||
if (g->m.furn(x1, y1) == f_counter) {
|
||||
bool found_item = false;
|
||||
for (int i = 0; i < g->m.i_at(x1, y1).size(); i++) {
|
||||
item *it = &(g->m.i_at(x1, y1)[i]);
|
||||
@@ -374,6 +395,7 @@ void computer::activate_function(game *g, computer_action action)
|
||||
print_line(" %s", log.c_str());
|
||||
print_line("Press any key...");
|
||||
getch();
|
||||
reset_terminal();
|
||||
} break;
|
||||
|
||||
case COMPACT_MAPS: {
|
||||
@@ -387,9 +409,11 @@ void computer::activate_function(game *g, computer_action action)
|
||||
if (maxy >= OMAPY) maxy = OMAPY - 1;
|
||||
for (int i = minx; i <= maxx; i++) {
|
||||
for (int j = miny; j <= maxy; j++)
|
||||
g->cur_om.seen(i, j, 0) = true;
|
||||
g->cur_om->seen(i, j, 0) = true;
|
||||
}
|
||||
print_line("Surface map data downloaded.");
|
||||
query_any("Press any key to continue...");
|
||||
reset_terminal();
|
||||
} break;
|
||||
|
||||
case COMPACT_MAP_SEWER: {
|
||||
@@ -403,50 +427,84 @@ void computer::activate_function(game *g, computer_action action)
|
||||
if (maxy >= OMAPY) maxy = OMAPY - 1;
|
||||
for (int i = minx; i <= maxx; i++) {
|
||||
for (int j = miny; j <= maxy; j++)
|
||||
if ((g->cur_om.ter(i, j, g->levz) >= ot_sewer_ns &&
|
||||
g->cur_om.ter(i, j, g->levz) <= ot_sewer_nesw) ||
|
||||
(g->cur_om.ter(i, j, g->levz) >= ot_sewage_treatment &&
|
||||
g->cur_om.ter(i, j, g->levz) <= ot_sewage_treatment_under))
|
||||
g->cur_om.seen(i, j, g->levz) = true;
|
||||
if ((g->cur_om->ter(i, j, g->levz) >= ot_sewer_ns &&
|
||||
g->cur_om->ter(i, j, g->levz) <= ot_sewer_nesw) ||
|
||||
(g->cur_om->ter(i, j, g->levz) >= ot_sewage_treatment &&
|
||||
g->cur_om->ter(i, j, g->levz) <= ot_sewage_treatment_under))
|
||||
g->cur_om->seen(i, j, g->levz) = true;
|
||||
}
|
||||
print_line("Sewage map data downloaded.");
|
||||
} break;
|
||||
|
||||
|
||||
case COMPACT_MISS_LAUNCH: {
|
||||
// Target Acquisition.
|
||||
point target = g->cur_om.choose_point(g, 0);
|
||||
if (target.x == -1) {
|
||||
print_line("Launch canceled.");
|
||||
return;
|
||||
}
|
||||
// Figure out where the glass wall is...
|
||||
int wall_spot = 0;
|
||||
for (int i = g->u.posx; i < g->u.posx + SEEX * 2 && wall_spot == 0; i++) {
|
||||
if (g->m.ter(i, 10) == t_wall_glass_v)
|
||||
wall_spot = i;
|
||||
}
|
||||
// ...and put radioactive to the right of it
|
||||
for (int i = wall_spot + 1; i < SEEX * 2 - 1; i++) {
|
||||
for (int j = 1; j < SEEY * 2 - 1; j++) {
|
||||
if (one_in(3))
|
||||
g->m.add_field(NULL, i, j, fd_nuke_gas, 3);
|
||||
}
|
||||
}
|
||||
// For each level between here and the surface, remove the missile
|
||||
for (int level = g->levz; level < 0; level++) {
|
||||
tinymap tmpmap(&g->itypes, &g->mapitems, &g->traps);
|
||||
tmpmap.load(g, g->levx, g->levy, level, false);
|
||||
tmpmap.translate(t_missile, t_hole);
|
||||
tmpmap.save(&g->cur_om, g->turn, g->levx, level, g->levz);
|
||||
}
|
||||
for (int x = target.x - 2; x <= target.x + 2; x++) {
|
||||
for (int y = target.y - 2; y <= target.y + 2; y++)
|
||||
g->nuke(x, y);
|
||||
}
|
||||
case COMPACT_MISS_LAUNCH:
|
||||
{
|
||||
// Target Acquisition.
|
||||
point target = g->cur_om->draw_overmap(g, 0);
|
||||
if (target.x == -1)
|
||||
{
|
||||
g->add_msg("Target acquisition canceled");
|
||||
return;
|
||||
}
|
||||
if(query_yn("Confirm nuclear missile launch."))
|
||||
{
|
||||
g->add_msg("Nuclear missile launched!");
|
||||
options.clear();//Remove the option to fire another missle.
|
||||
}
|
||||
else
|
||||
{
|
||||
g->add_msg("Nuclear missile launch aborted.");
|
||||
return;
|
||||
}
|
||||
g->refresh_all();
|
||||
|
||||
//Put some smoke gas and explosions at the nuke location.
|
||||
for(int i= g->u.posx +8; i < g->u.posx +15; i++)
|
||||
{
|
||||
for(int j= g->u.posy +3; j < g->u.posy +12; j++)
|
||||
if(!one_in(4))
|
||||
g->m.add_field(NULL, i+rng(-2,2), j+rng(-2,2), fd_smoke, rng(1,9));
|
||||
}
|
||||
|
||||
g->explosion(g->u.posx +10, g->u.posx +21, 200, 0, true); //Only explode once. But make it large.
|
||||
|
||||
//...ERASE MISSILE, OPEN SILO, DISABLE COMPUTER
|
||||
// For each level between here and the surface, remove the missile
|
||||
for (int level = g->levz; level <= 0; level++)
|
||||
{
|
||||
map tmpmap(&g->traps);
|
||||
tmpmap.load(g, g->levx, g->levy, level, false);
|
||||
|
||||
if(level < 0)
|
||||
tmpmap.translate(t_missile, t_hole);
|
||||
else if(level == 0)
|
||||
tmpmap.translate(t_metal_floor, t_hole);
|
||||
tmpmap.save(g->cur_om, g->turn, g->levx, g->levy, level);
|
||||
}
|
||||
|
||||
|
||||
for(int x = target.x - 2; x <= target.x + 2; x++)
|
||||
{
|
||||
for(int y = target.y - 2; y <= target.y + 2; y++)
|
||||
g->nuke(x, y);
|
||||
}
|
||||
|
||||
activate_failure(g, COMPFAIL_SHUTDOWN);
|
||||
} break;
|
||||
|
||||
case COMPACT_MISS_DISARM: // TODO: This!
|
||||
|
||||
case COMPACT_MISS_DISARM: // TODO: stop the nuke from creating radioactive clouds.
|
||||
if(query_yn("Disarm missile."))
|
||||
{
|
||||
g->add_msg("Nuclear missile disarmed!");
|
||||
options.clear();//disable missile.
|
||||
activate_failure(g, COMPFAIL_SHUTDOWN);
|
||||
}
|
||||
else
|
||||
{
|
||||
g->add_msg("Nuclear missile remains active.");
|
||||
return;
|
||||
}
|
||||
break;
|
||||
|
||||
case COMPACT_LIST_BIONICS: {
|
||||
@@ -456,7 +514,7 @@ void computer::activate_function(game *g, computer_action action)
|
||||
for (int y = 0; y < SEEY * MAPSIZE; y++) {
|
||||
for (int i = 0; i < g->m.i_at(x, y).size(); i++) {
|
||||
if (g->m.i_at(x, y)[i].is_bionic()) {
|
||||
if (names.size() < 9)
|
||||
if (names.size() < TERMY - 8)
|
||||
names.push_back(g->m.i_at(x, y)[i].tname());
|
||||
else
|
||||
more++;
|
||||
@@ -464,10 +522,22 @@ void computer::activate_function(game *g, computer_action action)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
reset_terminal();
|
||||
|
||||
print_line("");
|
||||
print_line("Bionic access - Manifest:");
|
||||
print_line("");
|
||||
|
||||
for (int i = 0; i < names.size(); i++)
|
||||
print_line(names[i].c_str());
|
||||
if (more > 0)
|
||||
print_line("%d OTHERS FOUND...", more);
|
||||
|
||||
print_line("");
|
||||
print_line("Press any key...");
|
||||
getch();
|
||||
|
||||
} break;
|
||||
|
||||
case COMPACT_ELEVATOR_ON:
|
||||
@@ -547,7 +617,7 @@ know that's sort of a big deal, but come on, these guys can't handle it?\n");
|
||||
print_line("\
|
||||
SITE %d%d%d%d%d\n\
|
||||
PERTINANT FOREMAN LOGS WILL BE PREPENDED TO NOTES",
|
||||
g->cur_om.pos().x, g->cur_om.pos().y, g->levx, g->levy, abs(g->levz));
|
||||
g->cur_om->pos().x, g->cur_om->pos().y, g->levx, g->levy, abs(g->levz));
|
||||
print_line("\n\
|
||||
MINE OPERATIONS SUSPENDED; CONTROL TRANSFERRED TO AMIGARA PROJECT UNDER\n\
|
||||
IMPERATIVE 2:07B\n\
|
||||
@@ -568,11 +638,11 @@ INITIATING STANDARD TREMOR TEST...");
|
||||
case COMPACT_AMIGARA_START:
|
||||
g->add_event(EVENT_AMIGARA, int(g->turn) + 10, 0, 0, 0);
|
||||
if (!g->u.has_artifact_with(AEP_PSYSHIELD))
|
||||
g->u.add_disease(DI_AMIGARA, 20, g);
|
||||
g->u.add_disease("amigara", 20);
|
||||
break;
|
||||
|
||||
case COMPACT_STEMCELL_TREATMENT:
|
||||
g->u.add_disease(DI_STEMCELL_TREATMENT, 120, g);
|
||||
g->u.add_disease("stemcell_treatment", 120);
|
||||
print_line("The machine injects your eyeball with the solution \n\
|
||||
of pureed bone & LSD.");
|
||||
g->u.pain += rng(40,90);
|
||||
@@ -589,9 +659,9 @@ of pureed bone & LSD.");
|
||||
}
|
||||
item software(g->itypes[miss->item_id], 0);
|
||||
software.mission_id = mission_id;
|
||||
int index = g->u.pick_usb();
|
||||
g->u.inv[index].contents.clear();
|
||||
g->u.inv[index].put_in(software);
|
||||
item* usb = g->u.pick_usb();
|
||||
usb->contents.clear();
|
||||
usb->put_in(software);
|
||||
print_line("Software downloaded.");
|
||||
}
|
||||
break;
|
||||
@@ -622,9 +692,9 @@ of pureed bone & LSD.");
|
||||
print_error("USB drive required!");
|
||||
else {
|
||||
item software(g->itypes["software_blood_data"], 0);
|
||||
int index = g->u.pick_usb();
|
||||
g->u.inv[index].contents.clear();
|
||||
g->u.inv[index].put_in(software);
|
||||
item* usb = g->u.pick_usb();
|
||||
usb->contents.clear();
|
||||
usb->put_in(software);
|
||||
print_line("Software downloaded.");
|
||||
}
|
||||
}
|
||||
@@ -637,22 +707,321 @@ of pureed bone & LSD.");
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
||||
case COMPACT_DATA_ANAL:
|
||||
for (int x = g->u.posx - 2; x <= g->u.posx + 2; x++) {
|
||||
for (int y = g->u.posy - 2; y <= g->u.posy + 2; y++) {
|
||||
if (g->m.ter(x, y) == t_floor_blue) {
|
||||
print_error("PROCESSING DATA");
|
||||
if (g->m.i_at(x, y).empty()){
|
||||
print_error("ERROR: Please place memory bank in scan area.");
|
||||
query_any("Press any key to continue...");}
|
||||
else if (g->m.i_at(x, y).size() > 1){
|
||||
print_error("ERROR: Please only scan one item at a time.");
|
||||
query_any("Press any key to continue...");}
|
||||
else if (g->m.i_at(x, y)[0].type->id != "usb_drive" && g->m.i_at(x, y)[0].type->id != "black_box"){
|
||||
print_error("ERROR: Memory bank destroyed or not present.");
|
||||
query_any("Press any key to continue...");}
|
||||
else if (g->m.i_at(x, y)[0].type->id == "usb_drive" && g->m.i_at(x, y)[0].contents.empty()){
|
||||
print_error("ERROR: Memory bank is empty.");
|
||||
query_any("Press any key to continue...");}
|
||||
else { // Success!
|
||||
if (g->m.i_at(x, y)[0].type->id == "usb_drive"){
|
||||
print_line("Memory Bank: Unencrypted\nNothing of interest.");
|
||||
query_any("Press any key to continue...");}
|
||||
if (g->m.i_at(x, y)[0].type->id == "black_box"){
|
||||
print_line("Memory Bank: Military Hexron Encryption\nPrinting Transcript\n");
|
||||
query_any("Press any key to continue...");
|
||||
item transcript(g->itypes["black_box_transcript"], g->turn);
|
||||
g->m.add_item(g->u.posx, g->u.posy, transcript);
|
||||
} else
|
||||
print_line("Memory Bank: Unencrypted\nNothing of interest.\n");
|
||||
query_any("Press any key to continue...");
|
||||
reset_terminal();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
||||
case COMPACT_DISCONNECT:
|
||||
reset_terminal();
|
||||
print_line("\n\
|
||||
ERROR: NETWORK DISCONNECT \n\
|
||||
UNABLE TO REACH NETWORK ROUTER OR PROXY. PLEASE CONTACT YOUR\n\
|
||||
SYSTEM ADMINISTRATOR TO RESOLVE THIS ISSUE.\n\
|
||||
\n");
|
||||
query_any("Press any key to continue...");
|
||||
reset_terminal();
|
||||
break;
|
||||
|
||||
case COMPACT_EMERG_MESS:
|
||||
print_line("\
|
||||
GREETINGS CITIZEN. A BIOLOGICAL ATTACK HAS TAKEN PLACE AND A STATE OF \n\
|
||||
EMERGENCY HAS BEEN DECLARED. EMERGENCY PERSONNEL WILL BE AIDING YOU \n\
|
||||
SHORTLY. TO ENSURE YOUR SAFETY PLEASE FOLLOW THE BELOW STEPS. \n\
|
||||
\n\
|
||||
1. DO NOT PANIC. \n\
|
||||
2. REMAIN INSIDE THE BUILDING. \n\
|
||||
3. SEEK SHELTER IN THE BASEMENT. \n\
|
||||
4. USE PROVIDED GAS MASKS. \n\
|
||||
5. AWAIT FURTHER INSTRUCTIONS \n\
|
||||
\n\
|
||||
Press any key to continue...");
|
||||
GREETINGS CITIZEN. A BIOLOGICAL ATTACK HAS TAKEN PLACE AND A STATE OF \n\
|
||||
EMERGENCY HAS BEEN DECLARED. EMERGENCY PERSONNEL WILL BE AIDING YOU \n\
|
||||
SHORTLY. TO ENSURE YOUR SAFETY PLEASE FOLLOW THE BELOW STEPS. \n\
|
||||
\n\
|
||||
1. DO NOT PANIC. \n\
|
||||
2. REMAIN INSIDE THE BUILDING. \n\
|
||||
3. SEEK SHELTER IN THE BASEMENT. \n\
|
||||
4. USE PROVIDED GAS MASKS. \n\
|
||||
5. AWAIT FURTHER INSTRUCTIONS \n\
|
||||
\n\
|
||||
\n");
|
||||
query_any("Press any key to continue...");
|
||||
reset_terminal();
|
||||
break;
|
||||
|
||||
case COMPACT_TOWER_UNRESPONSIVE:
|
||||
print_line("\
|
||||
WARNING, RADIO TOWER IS UNRESPONSIVE. \n\
|
||||
\n\
|
||||
BACKUP POWER INSUFFICIENT TO MEET BROADCASTING REQUIREMENTS. \n\
|
||||
IN THE EVENT OF AN EMERGENCY, CONTACT LOCAL NATIONAL GUARD \n\
|
||||
UNITS TO RECEIVE PRIORITY WHEN GENERATORS ARE BEING DEPLOYED. \n\
|
||||
\n\
|
||||
\n");
|
||||
query_any("Press any key to continue...");
|
||||
reset_terminal();
|
||||
break;
|
||||
|
||||
case COMPACT_SR1_MESS:
|
||||
reset_terminal();
|
||||
print_line("\n\
|
||||
Subj: Security Reminder\n\
|
||||
To: all SRCF staff\n\
|
||||
From: Constantine Dvorak, Undersecretary of Nuclear Security\n\
|
||||
\n\
|
||||
I want to remind everyone on staff: Do not open or examine\n\
|
||||
containers above your security-clearance. If you have some\n\
|
||||
question about safety protocols or shipping procedures, please\n\
|
||||
contact your SRCF administrator or on-site military officer.\n\
|
||||
When in doubt, assume all containers are Class-A Biohazards\n\
|
||||
and highly toxic. Take full precautions!\n\
|
||||
\n");
|
||||
query_any("Press any key to continue...");
|
||||
reset_terminal();
|
||||
break;
|
||||
|
||||
case COMPACT_SR2_MESS:
|
||||
reset_terminal();
|
||||
print_line("\n\
|
||||
Subj: Security Reminder\n\
|
||||
To: all SRCF staff\n\
|
||||
From: Constantine Dvorak, Undersecretary of Nuclear Security\n\
|
||||
\n\
|
||||
From today onward medical wastes are not to be stored anywhere\n\
|
||||
near radioactive materials. All containers are to be\n\
|
||||
re-arranged according to these new regulations. If your\n\
|
||||
facility currently has these containers stored in close\n\
|
||||
proximity, you are to work with armed guards on duty at all\n\
|
||||
times. Report any unusual activity to your SRCF administrator\n\
|
||||
at once.\n\
|
||||
");
|
||||
query_any("Press any key to continue...");
|
||||
reset_terminal();
|
||||
break;
|
||||
|
||||
case COMPACT_SR3_MESS:
|
||||
reset_terminal();
|
||||
print_line("\n\
|
||||
Subj: Security Reminder\n\
|
||||
To: all SRCF staff\n\
|
||||
From: Constantine Dvorak, Undersecretary of Nuclear Security\n\
|
||||
\n\
|
||||
Worker health and safety is our number one concern! As such,\n\
|
||||
we are instituting weekly health examinations for all SRCF\n\
|
||||
employees. Report any unusual symptoms or physical changes\n\
|
||||
to your SRCF administrator at once.\n\
|
||||
");
|
||||
query_any("Press any key to continue...");
|
||||
reset_terminal();
|
||||
break;
|
||||
|
||||
case COMPACT_SR4_MESS:
|
||||
reset_terminal();
|
||||
print_line("\n\
|
||||
Subj: Security Reminder\n\
|
||||
To: all SRCF staff\n\
|
||||
From: Constantine Dvorak, Undersecretary of Nuclear Security\n\
|
||||
\n\
|
||||
All compromised facilities will remain under lock down until\n\
|
||||
further notice. Anyone who has seen or come in direct contact\n\
|
||||
with the creatures is to report to the home office for a full\n\
|
||||
medical evaluation and security debriefing.\n\
|
||||
");
|
||||
query_any("Press any key to continue...");
|
||||
reset_terminal();
|
||||
break;
|
||||
|
||||
case COMPACT_SRCF_1_MESS:
|
||||
reset_terminal();
|
||||
print_line("\n\
|
||||
Subj: EPA: Report All Potential Containment Breaches 3873643\n\
|
||||
To: all SRCF staff\n\
|
||||
From: Robert Shane, Director of the EPA\n\
|
||||
\n\
|
||||
All hazardous waste dumps and sarcouphagi must submit three\n\
|
||||
samples from each operational leache system to the following\n\
|
||||
addresses:\n\
|
||||
\n\
|
||||
CDC Bioterrism Lab \n\
|
||||
Building 10\n\
|
||||
Corporate Square Boulevard\n\
|
||||
Atlanta, GA 30329\n\
|
||||
\n\
|
||||
EPA Region 8 Laboratory\n\
|
||||
16194 W. 45th\n\
|
||||
Drive Golden, Colorado 80403\n\
|
||||
\n\
|
||||
These samples must be accurate and any attempts to cover\n\
|
||||
incompetencies will resault in charges of Federal Corrution\n\
|
||||
and potentially Treason.\n");
|
||||
query_any("Press any key to continue...");
|
||||
reset_terminal();
|
||||
print_line("Director of the EPA,\n\
|
||||
Robert Shane\n\
|
||||
\n");
|
||||
query_any("Press any key to continue...");
|
||||
reset_terminal();
|
||||
break;
|
||||
|
||||
case COMPACT_SRCF_2_MESS:
|
||||
reset_terminal();
|
||||
print_line(" Subj: SRCF: Internal Memo, EPA [2918024]\n\
|
||||
To: all SRCF admin staff\n\
|
||||
From: Constantine Dvorak, Undersecretary of Nuclear Security\n\
|
||||
\n\
|
||||
Director Grimes has released a new series of accusations that\n\
|
||||
will soon be investigated by a Congressional committee. Below\n\
|
||||
is the message that he sent myself.\n\
|
||||
\n\
|
||||
--------------------------------------------------------------\n\
|
||||
Subj: Congressional Investigations\n\
|
||||
To: Constantine Dvorak, Undersecretary of Nuclear Safety\n\
|
||||
From: Robert Shane, director of the EPA\n\
|
||||
\n\
|
||||
The EPA has opposed the Security-Restricted Containment\n\
|
||||
Facility (SRCF) project from its inception. We were horrified\n\
|
||||
that these facilities would be constructed so close to populated\n\
|
||||
areas, and only agreed to sign-off on the project if we were\n\
|
||||
allowed to freely examine and monitor the sarcophagi. But that\n\
|
||||
has not happened. Since then the DoE has employed any and all\n\
|
||||
means to keep EPA agents from visiting the SRCFs, using military\n\
|
||||
secrecy, emergency powers, and inter-departmental gag orders to\n");
|
||||
query_any("Press any key to continue...");
|
||||
reset_terminal();
|
||||
print_line(" surround the project with an impenetrable thicket of red tape.\n\
|
||||
\n\
|
||||
Although our agents have not been allowed inside, our atmospheric\n\
|
||||
testers in nearby communities have detected high levels of toxins\n\
|
||||
and radiation, and we've found dozens of potentially dangerous\n\
|
||||
unidentified compounds in the ground water. We now have\n\
|
||||
conclusive evidence that the SRCFs are a threat to the public\n\
|
||||
safety. We are taking these data to state representatives and\n\
|
||||
petitioning for a full congressional inquiry. They should be\n\
|
||||
able to force open your secret vaults, and the world will see\n\
|
||||
what you've been hiding.\n\
|
||||
\n\
|
||||
If you had any hand in this outbreak I hope you rot in hell.\n\
|
||||
\n\
|
||||
Director of the EPA,\n\
|
||||
Robert Shane\n\
|
||||
\n");
|
||||
query_any("Press any key to continue...");
|
||||
reset_terminal();
|
||||
break;
|
||||
|
||||
case COMPACT_SRCF_3_MESS:
|
||||
reset_terminal();
|
||||
print_line(" Subj: CDC: Internal Memo, Standby [2918115]\n\
|
||||
To: all SRCF staff\n\
|
||||
From: Ellen Grimes, Director of the EPA\n\
|
||||
\n\
|
||||
Your site along with many others has been found to be\n\
|
||||
contaminated with what we will now refer to as [redracted].\n\
|
||||
It is vital that you standby for further orders. We are\n\
|
||||
currently awaiting the President to decide our course of\n\
|
||||
action in this national crisis. You will proceed with fail-\n\
|
||||
safe procedures and rig the sarcouphagus with c-4 as outlined\n\
|
||||
in Publication 4423. We will send you orders to either detonate\n\
|
||||
and seal the sarcouphagus or remove the charges. It is of\n\
|
||||
upmost importance that the facility is sealed immediatly when\n\
|
||||
the orders are given, we have been alerted by Homeland Security\n\
|
||||
that there are potential terrorist suspects that are being\n\
|
||||
detained in connection with the recent national crisis.\n\
|
||||
\n\
|
||||
Director of the CDC,\n\
|
||||
Ellen Grimes\n\
|
||||
\n");
|
||||
query_any("Press any key to continue...");
|
||||
reset_terminal();
|
||||
break;
|
||||
|
||||
case COMPACT_SRCF_SEAL_ORDER:
|
||||
reset_terminal();
|
||||
print_line(" Subj: USARMY: SEAL SRCF [987167]\n\
|
||||
To: all SRCF staff\n\
|
||||
From: Major General Cornelius, U.S. Army\n\
|
||||
\n\
|
||||
As a general warning to all civilian staff: the 10th Mountain\n\
|
||||
Division has been assigned to oversee the sealing of the SRCF\n\
|
||||
facilities. By direct order, all non-essential staff must vacate\n\
|
||||
at the earliest possible opportunity to prevent potential\n\
|
||||
contamination. Low yield tactical nuclear demolition charges\n\
|
||||
will be deployed in the lower tunnels to ensure that recovery\n\
|
||||
of hazardous material is impossible. The Army Corps of Engineers\n\
|
||||
will then dump concrete over the rubble so that we can redeploy \n\
|
||||
the 10th Mountain into the greater Boston area.\n\
|
||||
\n\
|
||||
Cornelius,\n\
|
||||
Major General, U.S. Army\n\
|
||||
Commander of the 10th Mountain Division\n\
|
||||
\n");
|
||||
query_any("Press any key to continue...");
|
||||
reset_terminal();
|
||||
break;
|
||||
|
||||
case COMPACT_SRCF_SEAL:
|
||||
g->add_msg("Evacuate Immediatly!");
|
||||
for (int x = 0; x < SEEX * MAPSIZE; x++) {
|
||||
for (int y = 0; y < SEEY * MAPSIZE; y++) {
|
||||
if (g->m.ter(x, y) == t_elevator || g->m.ter(x, y) == t_vat) {
|
||||
g->m.ter_set(x, y, t_rubble);
|
||||
g->explosion(x, y, 40, 0, true);
|
||||
}
|
||||
if (g->m.ter(x, y) == t_wall_glass_h || g->m.ter(x, y) == t_wall_glass_v)
|
||||
g->m.ter_set(x, y, t_rubble);
|
||||
if (g->m.ter(x, y) == t_sewage_pipe || g->m.ter(x, y) == t_sewage || g->m.ter(x, y) == t_grate)
|
||||
g->m.ter_set(x, y, t_rubble);
|
||||
if (g->m.ter(x, y) == t_sewage_pump) {
|
||||
g->m.ter_set(x, y, t_rubble);
|
||||
g->explosion(x, y, 50, 0, true);
|
||||
}
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
||||
case COMPACT_SRCF_ELEVATOR:
|
||||
if (!g->u.has_amount("sarcophagus_access_code", 1)){
|
||||
print_error("Access code required!");
|
||||
query_any("Press any key to continue...");}
|
||||
else{
|
||||
g->u.use_amount("sarcophagus_access_code", 1);
|
||||
reset_terminal();
|
||||
print_line("\nPower: Backup Only\nRadion Level: Very Dangerous\nOperational: Overrided\n\n");
|
||||
query_any("Press any key to continue...");
|
||||
for (int x = 0; x < SEEX * MAPSIZE; x++) {
|
||||
for (int y = 0; y < SEEY * MAPSIZE; y++) {
|
||||
if (g->m.ter(x, y) == t_elevator_control_off) {
|
||||
g->m.ter_set(x, y, t_elevator_control);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
||||
} // switch (action)
|
||||
}
|
||||
|
||||
@@ -770,7 +1139,7 @@ void computer::activate_failure(game *g, computer_failure fail)
|
||||
|
||||
case COMPFAIL_AMIGARA:
|
||||
g->add_event(EVENT_AMIGARA, int(g->turn) + 5, 0, 0, 0);
|
||||
g->u.add_disease(DI_AMIGARA, 20, g);
|
||||
g->u.add_disease("amigara", 20);
|
||||
g->explosion(rng(0, SEEX * MAPSIZE), rng(0, SEEY * MAPSIZE), 10, 10, false);
|
||||
g->explosion(rng(0, SEEX * MAPSIZE), rng(0, SEEY * MAPSIZE), 10, 10, false);
|
||||
break;
|
||||
@@ -801,6 +1170,31 @@ void computer::activate_failure(game *g, computer_failure fail)
|
||||
}
|
||||
getch();
|
||||
break;
|
||||
|
||||
case COMPFAIL_DESTROY_DATA:
|
||||
print_error("ERROR: ACCESSING DATA MALFUNCTION");
|
||||
for (int x = 0; x <= 23; x++) {
|
||||
for (int y = 0; y <= 23; y++) {
|
||||
if (g->m.ter(x, y) == t_floor_blue) {
|
||||
for (int i = 0; i < g->m.i_at(x, y).size(); i++) {
|
||||
if (g->m.i_at(x, y).empty())
|
||||
print_error("ERROR: Please place memory bank in scan area.");
|
||||
else if (g->m.i_at(x, y).size() > 1)
|
||||
print_error("ERROR: Please only scan one item at a time.");
|
||||
else if (g->m.i_at(x, y)[0].type->id != "usb_drive")
|
||||
print_error("ERROR: Memory bank destroyed or not present.");
|
||||
else if (g->m.i_at(x, y)[0].contents.empty())
|
||||
print_error("ERROR: Memory bank is empty.");
|
||||
else {
|
||||
print_error("ERROR: Data bank destroyed.");
|
||||
g->m.i_at(x, y)[i].contents.clear();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
getch();
|
||||
break;
|
||||
|
||||
}// switch (fail)
|
||||
}
|
||||
@@ -826,6 +1220,21 @@ bool computer::query_bool(const char *mes, ...)
|
||||
return (ret == 'y' || ret == 'Y');
|
||||
}
|
||||
|
||||
bool computer::query_any(const char *mes, ...)
|
||||
{
|
||||
// Translate the printf flags
|
||||
va_list ap;
|
||||
va_start(ap, mes);
|
||||
char buff[6000];
|
||||
vsprintf(buff, mes, ap);
|
||||
va_end(ap);
|
||||
std::string full_line = buff;
|
||||
// Print the resulting text
|
||||
print_line(full_line.c_str());
|
||||
getch();
|
||||
return true;
|
||||
}
|
||||
|
||||
char computer::query_ynq(const char *mes, ...)
|
||||
{
|
||||
// Translate the printf flags
|
||||
|
||||
+20
-2
@@ -1,7 +1,6 @@
|
||||
#ifndef _COMPUTER_H_
|
||||
#define _COMPUTER_H_
|
||||
|
||||
//#include "texthash.h"
|
||||
#include "output.h"
|
||||
#include <vector>
|
||||
#include <string>
|
||||
@@ -15,6 +14,9 @@ enum computer_action
|
||||
{
|
||||
COMPACT_NULL = 0,
|
||||
COMPACT_OPEN,
|
||||
COMPACT_LOCK,
|
||||
COMPACT_UNLOCK,
|
||||
COMPACT_TOLL,
|
||||
COMPACT_SAMPLE,
|
||||
COMPACT_RELEASE,
|
||||
COMPACT_TERMINATE,
|
||||
@@ -31,8 +33,21 @@ enum computer_action
|
||||
COMPACT_AMIGARA_START,
|
||||
COMPACT_DOWNLOAD_SOFTWARE,
|
||||
COMPACT_BLOOD_ANAL,
|
||||
COMPACT_DATA_ANAL,
|
||||
COMPACT_DISCONNECT,
|
||||
COMPACT_STEMCELL_TREATMENT,
|
||||
COMPACT_EMERG_MESS,
|
||||
COMPACT_TOWER_UNRESPONSIVE,
|
||||
COMPACT_SR1_MESS, //Security Reminders for Hazardous Waste Sarcophagus (SRCF)
|
||||
COMPACT_SR2_MESS,
|
||||
COMPACT_SR3_MESS,
|
||||
COMPACT_SR4_MESS,
|
||||
COMPACT_SRCF_1_MESS,
|
||||
COMPACT_SRCF_2_MESS,
|
||||
COMPACT_SRCF_3_MESS,
|
||||
COMPACT_SRCF_SEAL_ORDER,
|
||||
COMPACT_SRCF_SEAL,
|
||||
COMPACT_SRCF_ELEVATOR,
|
||||
NUM_COMPUTER_ACTIONS
|
||||
};
|
||||
|
||||
@@ -48,6 +63,7 @@ enum computer_failure
|
||||
COMPFAIL_PUMP_LEAK,
|
||||
COMPFAIL_AMIGARA,
|
||||
COMPFAIL_DESTROY_BLOOD,
|
||||
COMPFAIL_DESTROY_DATA,
|
||||
NUM_COMPUTER_FAILURES
|
||||
};
|
||||
|
||||
@@ -77,7 +93,7 @@ public:
|
||||
// Basic usage
|
||||
void shutdown_terminal(); // Shutdown (free w_terminal, etc)
|
||||
void use(game *g);
|
||||
bool hack_attempt(player *p, int Security = -1);// -1 defaults to main security
|
||||
bool hack_attempt(game *g, player *p, int Security = -1);// -1 defaults to main security
|
||||
// Save/load
|
||||
std::string save_data();
|
||||
void load_data(std::string data);
|
||||
@@ -111,6 +127,8 @@ private:
|
||||
char query_ynq(const char *text, ...);
|
||||
// Same as query_ynq, but returns true for y or Y
|
||||
bool query_bool(const char *text, ...);
|
||||
// Simply wait for any key, returns True
|
||||
bool query_any(const char *text, ...);
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
+387
-243
File diff suppressed because it is too large
Load Diff
+13
-8
@@ -7,12 +7,17 @@ struct construct;
|
||||
struct construction_stage
|
||||
{
|
||||
ter_id terrain;
|
||||
furn_id furniture;
|
||||
int time; // In minutes, i.e. 10 turns
|
||||
std::vector<component> tools[3];
|
||||
std::vector<component> components[3];
|
||||
std::vector<component> tools[10];
|
||||
std::vector<component> components[10];
|
||||
|
||||
construction_stage(ter_id Terrain, int Time) :
|
||||
terrain (Terrain), time (Time) { };
|
||||
terrain (Terrain), furniture(f_null), time (Time) { };
|
||||
construction_stage(furn_id Furniture, int Time) :
|
||||
terrain (t_null), furniture (Furniture), time (Time) { };
|
||||
construction_stage(int Time) :
|
||||
terrain (t_null), furniture (f_null), time (Time) { };
|
||||
};
|
||||
|
||||
struct constructable
|
||||
@@ -49,7 +54,6 @@ struct construct // Construction functions.
|
||||
|
||||
bool able_wall (game *, point); // Able if tile is wall
|
||||
bool able_wall_wood(game *g, point); // Only player-built walls
|
||||
bool able_indoors(game *g, point); // Able on floors
|
||||
|
||||
bool able_between_walls(game *, point); // Flood-fill contained by walls
|
||||
|
||||
@@ -58,9 +62,9 @@ struct construct // Construction functions.
|
||||
bool able_pit(game *, point); // Able only on pits
|
||||
|
||||
bool able_tree(game *, point); // Able on trees
|
||||
bool able_log(game *, point); // Able on logs
|
||||
bool able_trunk(game *, point); // Able on tree trunks
|
||||
|
||||
bool able_furniture(game *, point); // Able on furniture
|
||||
bool able_move(game *, point); // Able on furniture
|
||||
|
||||
bool able_deconstruct(game *, point);
|
||||
|
||||
@@ -69,8 +73,9 @@ struct construct // Construction functions.
|
||||
void done_window_pane(game *, point);
|
||||
void done_vehicle(game *, point);
|
||||
void done_tree(game *, point);
|
||||
void done_log(game *, point);
|
||||
void done_furniture(game *, point);
|
||||
void done_trunk_log(game *, point);
|
||||
void done_trunk_plank(game *, point);
|
||||
void done_move(game *, point);
|
||||
void done_tape(game *, point);
|
||||
void done_deconstruct(game *, point);
|
||||
|
||||
|
||||
+903
-2215
File diff suppressed because it is too large
Load Diff
+23
-24
@@ -3,66 +3,65 @@
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
#include "itype.h"
|
||||
#include "skill.h"
|
||||
#include "rng.h"
|
||||
|
||||
#define MAX_DISPLAYED_RECIPES 18
|
||||
|
||||
enum craft_cat {
|
||||
CC_NULL = 0,
|
||||
CC_WEAPON,
|
||||
CC_AMMO,
|
||||
CC_FOOD,
|
||||
CC_DRINK,
|
||||
CC_CHEM,
|
||||
CC_ELECTRONIC,
|
||||
CC_ARMOR,
|
||||
CC_MISC,
|
||||
CC_NONCRAFT,
|
||||
NUM_CC
|
||||
};
|
||||
typedef std::string craft_cat;
|
||||
|
||||
struct component
|
||||
{
|
||||
itype_id type;
|
||||
int count;
|
||||
component() { type = "null"; count = 0; }
|
||||
component(itype_id TYPE, int COUNT) : type (TYPE), count (COUNT) {}
|
||||
int available; // -1 means the player doesn't have the item, 1 means they do,
|
||||
// 0 means they have item but not enough for both tool and component
|
||||
component() { type = "null"; count = 0; available = -1;}
|
||||
component(itype_id TYPE, int COUNT) : type (TYPE), count (COUNT), available(-1) {}
|
||||
};
|
||||
|
||||
struct recipe {
|
||||
std::string ident;
|
||||
int id;
|
||||
itype_id result;
|
||||
craft_cat category;
|
||||
craft_cat cat;
|
||||
Skill *sk_primary;
|
||||
Skill *sk_secondary;
|
||||
int difficulty;
|
||||
int time;
|
||||
bool reversible; // can the item be disassembled?
|
||||
bool autolearn; // do we learn it just by leveling skills?
|
||||
int learn_by_disassembly; // what level (if any) do we learn it by disassembly?
|
||||
|
||||
std::vector<component> tools[20];
|
||||
std::vector<component> components[20];
|
||||
std::vector<std::vector<component> > tools;
|
||||
std::vector<std::vector<component> > components;
|
||||
|
||||
recipe() {
|
||||
id = 0;
|
||||
result = "null";
|
||||
category = CC_NULL;
|
||||
sk_primary = NULL;
|
||||
sk_secondary = NULL;
|
||||
difficulty = 0;
|
||||
time = 0;
|
||||
reversible = false;
|
||||
autolearn = false;
|
||||
}
|
||||
|
||||
recipe(int pid, itype_id pres, craft_cat cat, const char *p1, const char *p2,
|
||||
int pdiff, int ptime, bool preversible) :
|
||||
id (pid), result (pres), category (cat), difficulty (pdiff), time (ptime), reversible (preversible)
|
||||
recipe(std::string pident, int pid, itype_id pres, craft_cat pcat, std::string &p1,
|
||||
std::string &p2, int pdiff, int ptime, bool preversible, bool pautolearn,
|
||||
int plearn_dis) :
|
||||
ident (pident), id (pid), result (pres), cat(pcat), difficulty (pdiff), time (ptime),
|
||||
reversible (preversible), autolearn (pautolearn), learn_by_disassembly (plearn_dis)
|
||||
{
|
||||
sk_primary = p1?Skill::skill(p1):NULL;
|
||||
sk_secondary = p2?Skill::skill(p2):NULL;
|
||||
sk_primary = p1.size()?Skill::skill(p1):NULL;
|
||||
sk_secondary = p2.size()?Skill::skill(p2):NULL;
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
typedef std::vector<recipe*> recipe_list;
|
||||
typedef std::map<craft_cat, recipe_list> recipe_map;
|
||||
|
||||
#endif
|
||||
|
||||
+4
-4
@@ -1,12 +1,12 @@
|
||||
#ifndef _CURSES_DEF_H_
|
||||
#define _CURSES_DEF_H_
|
||||
|
||||
#if (defined _WIN32 || defined WINDOWS)
|
||||
#include "catacurse.h"
|
||||
#if (defined TILES || defined _WIN32 || defined WINDOWS)
|
||||
#include "catacurse.h"
|
||||
#elif (defined __CYGWIN__)
|
||||
#include "ncurses/curses.h"
|
||||
#include "ncurses/curses.h"
|
||||
#else
|
||||
#include <curses.h>
|
||||
#include <curses.h>
|
||||
#endif
|
||||
|
||||
#endif // CURSES_DEF_H
|
||||
|
||||
+604
@@ -0,0 +1,604 @@
|
||||
#if (defined TILES || defined _WIN32 || defined WINDOWS)
|
||||
#include "catacurse.h"
|
||||
#include "output.h"
|
||||
#include "color.h"
|
||||
#include "catacharset.h"
|
||||
|
||||
//***********************************
|
||||
//Globals *
|
||||
//***********************************
|
||||
|
||||
WINDOW *mainwin;
|
||||
pairs *colorpairs; //storage for pair'ed colored, should be dynamic, meh
|
||||
int echoOn; //1 = getnstr shows input, 0 = doesn't show. needed for echo()-ncurses compatibility.
|
||||
|
||||
//***********************************
|
||||
//Psuedo-Curses Functions *
|
||||
//***********************************
|
||||
|
||||
//Basic Init, create the font, backbuffer, etc
|
||||
WINDOW *initscr(void)
|
||||
{
|
||||
return curses_init();
|
||||
}
|
||||
|
||||
WINDOW *newwin(int nlines, int ncols, int begin_y, int begin_x)
|
||||
{
|
||||
if (begin_y < 0 || begin_x < 0) {
|
||||
return NULL; //it's the caller's problem now (since they have logging functions declared)
|
||||
}
|
||||
|
||||
// default values
|
||||
if (ncols == 0)
|
||||
{
|
||||
ncols = TERMX - begin_x;
|
||||
}
|
||||
if (nlines == 0)
|
||||
{
|
||||
nlines = TERMY - begin_y;
|
||||
}
|
||||
|
||||
int i,j;
|
||||
WINDOW *newwindow = new WINDOW;
|
||||
//newwindow=&_windows[WindowCount];
|
||||
newwindow->x=begin_x;
|
||||
newwindow->y=begin_y;
|
||||
newwindow->width=ncols;
|
||||
newwindow->height=nlines;
|
||||
newwindow->inuse=true;
|
||||
newwindow->draw=false;
|
||||
newwindow->BG=0;
|
||||
newwindow->FG=8;
|
||||
newwindow->cursorx=0;
|
||||
newwindow->cursory=0;
|
||||
newwindow->line = new curseline[nlines];
|
||||
|
||||
for (j=0; j<nlines; j++)
|
||||
{
|
||||
newwindow->line[j].chars= new char[ncols*4];
|
||||
newwindow->line[j].FG= new char[ncols];
|
||||
newwindow->line[j].BG= new char[ncols];
|
||||
newwindow->line[j].touched=true;//Touch them all !?
|
||||
newwindow->line[j].width_in_bytes = ncols;
|
||||
for (i=0; i<ncols; i++)
|
||||
{
|
||||
newwindow->line[j].chars[i]=0;
|
||||
newwindow->line[j].chars[i+1]=0;
|
||||
newwindow->line[j].chars[i+2]=0;
|
||||
newwindow->line[j].chars[i+3]=0;
|
||||
newwindow->line[j].FG[i]=0;
|
||||
newwindow->line[j].BG[i]=0;
|
||||
}
|
||||
}
|
||||
//WindowCount++;
|
||||
return newwindow;
|
||||
}
|
||||
|
||||
//Deletes the window and marks it as free. Clears it just in case.
|
||||
int delwin(WINDOW *win)
|
||||
{
|
||||
int j;
|
||||
win->inuse=false;
|
||||
win->draw=false;
|
||||
for (j=0; j<win->height; j++){
|
||||
delete win->line[j].chars;
|
||||
delete win->line[j].FG;
|
||||
delete win->line[j].BG;
|
||||
}
|
||||
delete win->line;
|
||||
delete win;
|
||||
return 1;
|
||||
}
|
||||
|
||||
inline int newline(WINDOW *win){
|
||||
if (win->cursory < win->height - 1){
|
||||
win->cursory++;
|
||||
win->cursorx=0;
|
||||
return 1;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
inline void addedchar(WINDOW *win){
|
||||
win->cursorx++;
|
||||
win->line[win->cursory].touched=true;
|
||||
if (win->cursorx > win->width)
|
||||
newline(win);
|
||||
}
|
||||
|
||||
|
||||
//Borders the window with fancy lines!
|
||||
int wborder(WINDOW *win, chtype ls, chtype rs, chtype ts, chtype bs, chtype tl, chtype tr, chtype bl, chtype br)
|
||||
{
|
||||
/*
|
||||
ncurses does not do this, and this prevents: wattron(win, c_customBordercolor); wborder(win, ...); wattroff(win, c_customBorderColor);
|
||||
wattron(win, c_white);
|
||||
*/
|
||||
int i, j;
|
||||
int oldx=win->cursorx;//methods below move the cursor, save the value!
|
||||
int oldy=win->cursory;//methods below move the cursor, save the value!
|
||||
if (ls>0)
|
||||
for (j=1; j<win->height-1; j++)
|
||||
mvwaddch(win, j, 0, LINE_XOXO);
|
||||
if (rs>0)
|
||||
for (j=1; j<win->height-1; j++)
|
||||
mvwaddch(win, j, win->width-1, LINE_XOXO);
|
||||
if (ts>0)
|
||||
for (i=1; i<win->width-1; i++)
|
||||
mvwaddch(win, 0, i, LINE_OXOX);
|
||||
if (bs>0)
|
||||
for (i=1; i<win->width-1; i++)
|
||||
mvwaddch(win, win->height-1, i, LINE_OXOX);
|
||||
if (tl>0)
|
||||
mvwaddch(win,0, 0, LINE_OXXO);
|
||||
if (tr>0)
|
||||
mvwaddch(win,0, win->width-1, LINE_OOXX);
|
||||
if (bl>0)
|
||||
mvwaddch(win,win->height-1, 0, LINE_XXOO);
|
||||
if (br>0)
|
||||
mvwaddch(win,win->height-1, win->width-1, LINE_XOOX);
|
||||
//_windows[w].cursorx=oldx;//methods above move the cursor, put it back
|
||||
//_windows[w].cursory=oldy;//methods above move the cursor, put it back
|
||||
wmove(win,oldy,oldx);
|
||||
wattroff(win, c_white);
|
||||
return 1;
|
||||
}
|
||||
|
||||
//Refreshes a window, causing it to redraw on top.
|
||||
int wrefresh(WINDOW *win)
|
||||
{
|
||||
if (win==0) win=mainwin;
|
||||
if (win->draw)
|
||||
curses_drawwindow(win);
|
||||
return 1;
|
||||
}
|
||||
|
||||
//Refreshes window 0 (stdscr), causing it to redraw on top.
|
||||
int refresh(void)
|
||||
{
|
||||
return wrefresh(mainwin);
|
||||
}
|
||||
|
||||
int getch(void)
|
||||
{
|
||||
return wgetch(mainwin);
|
||||
}
|
||||
|
||||
int wgetch(WINDOW* win)
|
||||
{
|
||||
return curses_getch(win);
|
||||
}
|
||||
|
||||
int mvgetch(int y, int x)
|
||||
{
|
||||
move(y,x);
|
||||
return getch();
|
||||
}
|
||||
|
||||
int mvwgetch(WINDOW* win, int y, int x)
|
||||
{
|
||||
move(y, x);
|
||||
return wgetch(win);
|
||||
}
|
||||
|
||||
int getnstr(char *str, int size)
|
||||
{
|
||||
int startX = mainwin->cursorx;
|
||||
int count = 0;
|
||||
char input;
|
||||
while(true)
|
||||
{
|
||||
input = getch();
|
||||
// Carriage return, Line feed and End of File terminate the input.
|
||||
if( input == '\r' || input == '\n' || input == '\x04' )
|
||||
{
|
||||
str[count] = '\x00';
|
||||
return count;
|
||||
}
|
||||
else if( input == 127 ) // Backspace, remapped from \x8 in ProcessMessages()
|
||||
{
|
||||
if( count == 0 )
|
||||
continue;
|
||||
str[count] = '\x00';
|
||||
if(echoOn == 1)
|
||||
mvaddch(mainwin->cursory, startX + count, ' ');
|
||||
--count;
|
||||
if(echoOn == 1)
|
||||
move(mainwin->cursory, startX + count);
|
||||
}
|
||||
else
|
||||
{
|
||||
if( count >= size - 1 ) // Still need space for trailing 0x00
|
||||
continue;
|
||||
str[count] = input;
|
||||
++count;
|
||||
if(echoOn == 1)
|
||||
{
|
||||
move(mainwin->cursory, startX + count);
|
||||
mvaddch(mainwin->cursory, startX + count, input);
|
||||
}
|
||||
}
|
||||
}
|
||||
return count;
|
||||
}
|
||||
|
||||
//The core printing function, prints characters to the array, and sets colors
|
||||
inline int printstring(WINDOW *win, char *fmt)
|
||||
{
|
||||
int size = strlen(fmt);
|
||||
if(size>0)
|
||||
{
|
||||
int j, i, p=win->cursorx;
|
||||
int x = (win->line[win->cursory].width_in_bytes==win->width)?win->cursorx:cursorx_to_position(win->line[win->cursory].chars, win->cursorx, &p);
|
||||
|
||||
if(p!=x)//so we start inside a wide character, erase it for good
|
||||
{
|
||||
const char* ts = win->line[win->cursory].chars+p;
|
||||
int len = ANY_LENGTH;
|
||||
unsigned tc = UTF8_getch(&ts, &len);
|
||||
int tw = mk_wcwidth((wchar_t)tc);
|
||||
erease_utf8_by_cw(win->line[win->cursory].chars+p, tw, tw, win->width*4-p-1);
|
||||
x = p+tw-1;
|
||||
}
|
||||
for (j=0; j<size; j++){
|
||||
if (!(fmt[j]==10)){//check that this isnt a newline char
|
||||
const char* utf8str = fmt+j;
|
||||
int len = ANY_LENGTH;
|
||||
unsigned ch = UTF8_getch(&utf8str, &len);
|
||||
int cw = mk_wcwidth((wchar_t)ch);
|
||||
len = ANY_LENGTH-len;
|
||||
if(cw<1) cw = 1;
|
||||
if(len<1) len = 1;
|
||||
if (win->cursorx+cw <= win->width && win->cursory <= win->height - 1) {
|
||||
win->line[win->cursory].width_in_bytes += erease_utf8_by_cw(win->line[win->cursory].chars+x, cw, len, win->width*4-x-1);
|
||||
for(i=0; i<len; i++)
|
||||
{
|
||||
win->line[win->cursory].chars[x+i]=fmt[j+i];
|
||||
}
|
||||
for(i=0; i<cw; i++)
|
||||
{
|
||||
win->line[win->cursory].FG[win->cursorx]=win->FG;
|
||||
win->line[win->cursory].BG[win->cursorx]=win->BG;
|
||||
addedchar(win);
|
||||
}
|
||||
win->line[win->cursory].touched=true;
|
||||
j += len-1;
|
||||
x+=len;
|
||||
} else if (win->cursory <= win->height - 1) {
|
||||
// don't write outside the window, but don't abort if there are still lines to write.
|
||||
//j += len-1;
|
||||
//x+=len;
|
||||
} else {
|
||||
return 0; //if we try and write anything outside the window, abort completely
|
||||
}
|
||||
} else {// if the character is a newline, make sure to move down a line
|
||||
if (newline(win)==0){
|
||||
return 0;
|
||||
}
|
||||
x = 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
win->draw=true;
|
||||
return 1;
|
||||
}
|
||||
|
||||
//Prints a formatted string to a window at the current cursor, base function
|
||||
int wprintw(WINDOW *win, const char *fmt, ...)
|
||||
{
|
||||
va_list args;
|
||||
va_start(args, fmt);
|
||||
char printbuf[2048];
|
||||
vsnprintf(printbuf, 2047, fmt, args);
|
||||
va_end(args);
|
||||
return printstring(win,printbuf);
|
||||
}
|
||||
|
||||
//Prints a formatted string to a window, moves the cursor
|
||||
int mvwprintw(WINDOW *win, int y, int x, const char *fmt, ...)
|
||||
{
|
||||
va_list args;
|
||||
va_start(args, fmt);
|
||||
char printbuf[2048];
|
||||
vsnprintf(printbuf, 2047, fmt, args);
|
||||
va_end(args);
|
||||
if (wmove(win,y,x)==0) return 0;
|
||||
return printstring(win,printbuf);
|
||||
}
|
||||
|
||||
//Prints a formatted string to window 0 (stdscr), moves the cursor
|
||||
int mvprintw(int y, int x, const char *fmt, ...)
|
||||
{
|
||||
va_list args;
|
||||
va_start(args, fmt);
|
||||
char printbuf[2048];
|
||||
vsnprintf(printbuf, 2047, fmt, args);
|
||||
va_end(args);
|
||||
if (move(y,x)==0) return 0;
|
||||
return printstring(mainwin,printbuf);
|
||||
}
|
||||
|
||||
//Prints a formatted string to window 0 (stdscr) at the current cursor
|
||||
int printw(const char *fmt, ...)
|
||||
{
|
||||
va_list args;
|
||||
va_start(args, fmt);
|
||||
char printbuf[2078];
|
||||
vsnprintf(printbuf, 2047, fmt, args);
|
||||
va_end(args);
|
||||
return printstring(mainwin,printbuf);
|
||||
}
|
||||
|
||||
//erases a window of all text and attributes
|
||||
int werase(WINDOW *win)
|
||||
{
|
||||
int j,i;
|
||||
for (j=0; j<win->height; j++)
|
||||
{
|
||||
for (i=0; i<win->width; i++) {
|
||||
win->line[j].chars[i]=0;
|
||||
win->line[j].chars[i+1]=0;
|
||||
win->line[j].chars[i+2]=0;
|
||||
win->line[j].chars[i+3]=0;
|
||||
win->line[j].FG[i]=0;
|
||||
win->line[j].BG[i]=0;
|
||||
}
|
||||
win->line[j].touched=true;
|
||||
win->line[j].width_in_bytes = win->width;
|
||||
}
|
||||
win->draw=true;
|
||||
wmove(win,0,0);
|
||||
// wrefresh(win);
|
||||
return 1;
|
||||
}
|
||||
|
||||
//erases window 0 (stdscr) of all text and attributes
|
||||
int erase(void)
|
||||
{
|
||||
return werase(mainwin);
|
||||
}
|
||||
|
||||
//pairs up a foreground and background color and puts it into the array of pairs
|
||||
int init_pair(short pair, short f, short b)
|
||||
{
|
||||
colorpairs[pair].FG=f;
|
||||
colorpairs[pair].BG=b;
|
||||
return 1;
|
||||
}
|
||||
|
||||
//moves the cursor in a window
|
||||
int wmove(WINDOW *win, int y, int x)
|
||||
{
|
||||
if (x>=win->width)
|
||||
{return 0;}//FIXES MAP CRASH -> >= vs > only
|
||||
if (y>=win->height)
|
||||
{return 0;}// > crashes?
|
||||
if (y<0)
|
||||
{return 0;}
|
||||
if (x<0)
|
||||
{return 0;}
|
||||
win->cursorx=x;
|
||||
win->cursory=y;
|
||||
return 1;
|
||||
}
|
||||
|
||||
//Clears windows 0 (stdscr) I'm not sure if its suppose to do this?
|
||||
int clear(void)
|
||||
{
|
||||
return wclear(mainwin);
|
||||
}
|
||||
|
||||
//Ends the terminal, destroy everything
|
||||
int endwin(void)
|
||||
{
|
||||
return curses_destroy();
|
||||
}
|
||||
|
||||
//adds a character to the window
|
||||
int mvwaddch(WINDOW *win, int y, int x, const chtype ch)
|
||||
{
|
||||
if (wmove(win,y,x)==0) return 0;
|
||||
return waddch(win, ch);
|
||||
}
|
||||
|
||||
//clears a window
|
||||
int wclear(WINDOW *win)
|
||||
{
|
||||
werase(win);
|
||||
clearok(win);
|
||||
return 1;
|
||||
}
|
||||
|
||||
int clearok(WINDOW *win)
|
||||
{
|
||||
for (int i=0; i<win->y; i++)
|
||||
{
|
||||
win->line[i].touched = true;
|
||||
}
|
||||
return 1;
|
||||
}
|
||||
|
||||
//gets the max x of a window (the width)
|
||||
int getmaxx(WINDOW *win)
|
||||
{
|
||||
if (win==0) return mainwin->width; //StdScr
|
||||
return win->width;
|
||||
}
|
||||
|
||||
//gets the max y of a window (the height)
|
||||
int getmaxy(WINDOW *win)
|
||||
{
|
||||
if (win==0) return mainwin->height; //StdScr
|
||||
return win->height;
|
||||
}
|
||||
|
||||
//gets the beginning x of a window (the x pos)
|
||||
int getbegx(WINDOW *win)
|
||||
{
|
||||
if (win==0) return mainwin->x; //StdScr
|
||||
return win->x;
|
||||
}
|
||||
|
||||
//gets the beginning y of a window (the y pos)
|
||||
int getbegy(WINDOW *win)
|
||||
{
|
||||
if (win==0) return mainwin->y; //StdScr
|
||||
return win->y;
|
||||
}
|
||||
|
||||
int start_color(void)
|
||||
{
|
||||
return curses_start_color();
|
||||
}
|
||||
|
||||
int keypad(WINDOW *faux, bool bf)
|
||||
{
|
||||
return 1;
|
||||
}
|
||||
|
||||
int cbreak(void)
|
||||
{
|
||||
return 1;
|
||||
}
|
||||
int keypad(int faux, bool bf)
|
||||
{
|
||||
return 1;
|
||||
}
|
||||
int curs_set(int visibility)
|
||||
{
|
||||
return 1;
|
||||
}
|
||||
|
||||
int mvaddch(int y, int x, const chtype ch)
|
||||
{
|
||||
return mvwaddch(mainwin,y,x,ch);
|
||||
}
|
||||
|
||||
int wattron(WINDOW *win, int attrs)
|
||||
{
|
||||
bool isBold = !!(attrs & A_BOLD);
|
||||
bool isBlink = !!(attrs & A_BLINK);
|
||||
int pairNumber = (attrs & A_COLOR) >> 17;
|
||||
win->FG=colorpairs[pairNumber].FG;
|
||||
win->BG=colorpairs[pairNumber].BG;
|
||||
if (isBold) win->FG += 8;
|
||||
if (isBlink) win->BG += 8;
|
||||
return 1;
|
||||
}
|
||||
int wattroff(WINDOW *win, int attrs)
|
||||
{
|
||||
win->FG=8; //reset to white
|
||||
win->BG=0; //reset to black
|
||||
return 1;
|
||||
}
|
||||
int attron(int attrs)
|
||||
{
|
||||
return wattron(mainwin, attrs);
|
||||
}
|
||||
int attroff(int attrs)
|
||||
{
|
||||
return wattroff(mainwin,attrs);
|
||||
}
|
||||
int waddch(WINDOW *win, const chtype ch)
|
||||
{
|
||||
char charcode;
|
||||
charcode=ch;
|
||||
|
||||
switch (ch){ //LINE_NESW - X for on, O for off
|
||||
case LINE_XOXO: //#define LINE_XOXO 4194424
|
||||
charcode=LINE_XOXO_C;
|
||||
break;
|
||||
case LINE_OXOX: //#define LINE_OXOX 4194417
|
||||
charcode=LINE_OXOX_C;
|
||||
break;
|
||||
case LINE_XXOO: //#define LINE_XXOO 4194413
|
||||
charcode=LINE_XXOO_C;
|
||||
break;
|
||||
case LINE_OXXO: //#define LINE_OXXO 4194412
|
||||
charcode=LINE_OXXO_C;
|
||||
break;
|
||||
case LINE_OOXX: //#define LINE_OOXX 4194411
|
||||
charcode=LINE_OOXX_C;
|
||||
break;
|
||||
case LINE_XOOX: //#define LINE_XOOX 4194410
|
||||
charcode=LINE_XOOX_C;
|
||||
break;
|
||||
case LINE_XXOX: //#define LINE_XXOX 4194422
|
||||
charcode=LINE_XXOX_C;
|
||||
break;
|
||||
case LINE_XXXO: //#define LINE_XXXO 4194420
|
||||
charcode=LINE_XXXO_C;
|
||||
break;
|
||||
case LINE_XOXX: //#define LINE_XOXX 4194421
|
||||
charcode=LINE_XOXX_C;
|
||||
break;
|
||||
case LINE_OXXX: //#define LINE_OXXX 4194423
|
||||
charcode=LINE_OXXX_C;
|
||||
break;
|
||||
case LINE_XXXX: //#define LINE_XXXX 4194414
|
||||
charcode=LINE_XXXX_C;
|
||||
break;
|
||||
default:
|
||||
charcode = (char)ch;
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
int cury=win->cursory;
|
||||
int p = win->cursorx;
|
||||
int curx=(win->line[cury].width_in_bytes==win->width)?win->cursorx:cursorx_to_position(win->line[cury].chars, win->cursorx, &p);
|
||||
|
||||
if(curx!=p)
|
||||
{
|
||||
const char* ts = win->line[cury].chars+p;
|
||||
int len = ANY_LENGTH;
|
||||
unsigned tc = UTF8_getch(&ts, &len);
|
||||
int tw = mk_wcwidth((wchar_t)tc);
|
||||
win->line[cury].width_in_bytes += erease_utf8_by_cw(win->line[cury].chars+p, tw, tw, win->width*4-p-1);
|
||||
curx = p+tw-1;
|
||||
}
|
||||
else if(win->line[cury].width_in_bytes!=win->width)
|
||||
{
|
||||
win->line[cury].width_in_bytes += erease_utf8_by_cw(win->line[cury].chars+p, 1, 1, win->width*4-p-1);
|
||||
}
|
||||
|
||||
//if (win2 > -1){
|
||||
win->line[cury].chars[curx]=charcode;
|
||||
win->line[cury].FG[win->cursorx]=win->FG;
|
||||
win->line[cury].BG[win->cursorx]=win->BG;
|
||||
|
||||
|
||||
win->draw=true;
|
||||
addedchar(win);
|
||||
return 1;
|
||||
// else{
|
||||
// win2=win2+1;
|
||||
|
||||
}
|
||||
|
||||
//Move the cursor of windows 0 (stdscr)
|
||||
int move(int y, int x)
|
||||
{
|
||||
return wmove(mainwin,y,x);
|
||||
}
|
||||
|
||||
//Set the amount of time getch waits for input
|
||||
void timeout(int delay)
|
||||
{
|
||||
curses_timeout(delay);
|
||||
}
|
||||
void set_escdelay(int delay) { } //PORTABILITY, DUMMY FUNCTION
|
||||
|
||||
|
||||
int echo()
|
||||
{
|
||||
echoOn = 1;
|
||||
return 0; // 0 = OK, -1 = ERR
|
||||
}
|
||||
|
||||
int noecho()
|
||||
{
|
||||
echoOn = 0;
|
||||
return 0;
|
||||
}
|
||||
#endif
|
||||
+3
-3
@@ -1,3 +1,3 @@
|
||||
Terminus
|
||||
8
|
||||
16
|
||||
Terminus
|
||||
8
|
||||
16
|
||||
|
||||
+24
-16
@@ -28,10 +28,10 @@ terminated.
|
||||
%
|
||||
Tests on the prehistoric fauna show extremely close genetic relationships with
|
||||
extant and extinct terranian animals. It might be that the portal had performed
|
||||
a transposition in time, unfortunately the portal device had been destroyed
|
||||
when security had put down the fauna.
|
||||
a transposition in time, unfortunately the portal device was destroyed when
|
||||
security put down the fauna.
|
||||
%
|
||||
An incident occured in the teleportation lab, wherein a subject managed to
|
||||
An incident occurred in the teleportation lab, wherein a subject managed to
|
||||
teleport into another subject. The latter was completely destroyed from the
|
||||
inside out, while the former sustained little damage. I would like to explore
|
||||
the phenomenon further, but subjects are expensive.
|
||||
@@ -46,10 +46,10 @@ tunnels along the 4th dimension, allowing life forms to transfer to this
|
||||
plane. All subjects with prolonged exposure have been terminated.
|
||||
%
|
||||
Our lifeform extraction program continues to produce samples of specimen
|
||||
XE037. It seems to be a kind of living, semi-sentient primordal ooze, and is
|
||||
XE037. It seems to be a kind of living, semi-sentient primordial ooze, and is
|
||||
the basis of much of the life we have found.
|
||||
%
|
||||
Specimen XE037, jokingly referred to as "the blob," has been observed entering
|
||||
Specimen XE037, jokingly referred to as "the blob", has been observed entering
|
||||
a kind of dormant state, forming a depression in the floor. Hendelson stepped
|
||||
into one of these pits yesterday, and was immediately coated and attacked.
|
||||
%
|
||||
@@ -81,7 +81,7 @@ the surface, particularly in the sewage systems.
|
||||
%
|
||||
Today we applied a very small sample of XE037, suspended in water, to subject
|
||||
TP92, prior to necessary termination. During the postmortem examination, the
|
||||
subject went through a revivication progress, but displayed next to no human
|
||||
subject went through a revivification progress, but displayed next to no human
|
||||
intelligence.
|
||||
%
|
||||
Mendelson shows a dismaying lack of organization and security consciousness.
|
||||
@@ -109,7 +109,7 @@ in the insects, and security intervention was required.
|
||||
%
|
||||
Program S37ZBE, investigation of XE037 on inert human bodies, is making great
|
||||
strides. Recently we found that XE037 has no effect when introduced to a
|
||||
deceased body; revivication only occurs when the subject is exposed to XE037
|
||||
deceased body; revivification only occurs when the subject is exposed to XE037
|
||||
prior to expiration.
|
||||
%
|
||||
S37ZBE, the special investigation into the effects of XE037 on inert human
|
||||
@@ -117,32 +117,32 @@ bodies, has made terrific discoveries. It seems that it occasionally displays
|
||||
a mutagenic property which manifests itself after termination of the subject,
|
||||
resulting in a striking variety in postmortem morphology.
|
||||
%
|
||||
S37ZBE may be put on indefinate hold shortly. Postmortem morphological
|
||||
S37ZBE may be put on indefinite hold shortly. Postmortem morphological
|
||||
changes have reached extreme levels; this morning one subject nearly doubled
|
||||
in size, acquiring enough strength to reduce a concrete wall to rubble. It
|
||||
required a 6 man team, heavily armed, to re-terminate the subject.
|
||||
%
|
||||
Jakobson insists that S37ZBE must continue, despite the extreme security and
|
||||
safety risks. Nearly half our security forces have been redirected to the
|
||||
project, simply to deal with the occasional escape of a subject.
|
||||
safety risks. Nearly half of our security forces have been redirected to the
|
||||
S37ZBE project, simply to deal with the occasional escape of a subject.
|
||||
%
|
||||
Jakobson was killed today by one of S37ZBE's subjects; ironic considering how
|
||||
hard he fought to keep the project active. Alarmingly, his corpse revivified
|
||||
immediately. This suggests that XE037 may have contaminated the lab at large.
|
||||
%
|
||||
Termination of a subject which was never a part of S37ZBE has confirmed my
|
||||
fears. XE037 has contaminated most if not all of the laboratory, most likely
|
||||
via the water supply. Research has started immediately into a process to
|
||||
destroy XE037 within the human body.
|
||||
fears. XE037 has contaminated most, if not all of the laboratory, most
|
||||
likely via the water supply. Research has started immediately into a process
|
||||
to destroy XE037 within the human body.
|
||||
%
|
||||
Despite a wide variety of treatments, we have been completely unsuccessful in
|
||||
removing XE037 from human subjects. Every individual displayed revivication
|
||||
removing XE037 from human subjects. Every individual displayed revivification
|
||||
post termination. Interestingly, XE037 seems to be completely inert prior to
|
||||
termination.
|
||||
%
|
||||
We have finally found success in S37BEP, our emergency investigation into the
|
||||
destruction of XE037 in living subjects. 8 of 10 of the subjects showed no
|
||||
revivication, despite confirmed dosages of XE037.
|
||||
revivification, despite confirmed dosages of XE037.
|
||||
%
|
||||
PE062, our "cure" for XE037 contamination, has neared perfection. Sadly, the
|
||||
production of PE062 is a costly and time-consuming process. What is more, the
|
||||
@@ -155,7 +155,7 @@ half mile from the laboratory. It is unclear how it escaped; it is quite
|
||||
possible that it is in the ground water now.
|
||||
%
|
||||
An emergency meeting was held today to discuss the possible implications of
|
||||
widespread XE037 contamination. It was agreed that neturalization must be
|
||||
widespread XE037 contamination. It was agreed that neutralization must be
|
||||
instated immediately to prevent a catastrophic event.
|
||||
%
|
||||
It has begun. The XE037 contamination has spread for miles, and those who
|
||||
@@ -163,6 +163,14 @@ have since deceased have revivified. It is my fear that extremely large
|
||||
populations will be decimated by this pandemic. We must find a way to remove
|
||||
XE037 from revivified bodies.
|
||||
%
|
||||
We have even more distressing news than the widespread XE037 contamination,
|
||||
there are reports of the XE037 mutating into various new variants. See
|
||||
data files on XE037a - XE037f. Research on the effects of these variants
|
||||
is ongoing. We do know that XE037d shows signs of PE062 immunity, and
|
||||
XE037b can revive various breeds of canines. However, revival is not
|
||||
as guaranteed as standard XE037 humanoid infection. Canine body size seems
|
||||
to influence the chances. See experiment tXE037b_c.
|
||||
%
|
||||
Today we found our solution, quite by accident. It was found that XE037 is
|
||||
completely removed from a revivified body following a series of extremely-high
|
||||
energy 4th dimensional transpositions. Unfortunately, this invariably allows
|
||||
|
||||
Executable → Regular
|
Before Width: | Height: | Size: 66 KiB After Width: | Height: | Size: 66 KiB |
Executable → Regular
+403
-5
@@ -1,5 +1,403 @@
|
||||
Changelog will be a little light for the early entries due to me being really bad at documenting things.
|
||||
|
||||
0.7
|
||||
|
||||
Highlights:
|
||||
---
|
||||
Use ncursesw and gettext for i18n support and expanded character palette.
|
||||
Configurable Autopickup feature.
|
||||
Configurable item spawning lists, now with more configurable spawn frequencies.
|
||||
New advanced bionics.
|
||||
|
||||
Features:
|
||||
---
|
||||
Use ncursesw and gettext for i18n support and expanded character palette.
|
||||
Configurable Autopickup feature.
|
||||
Configurable item spawning lists, now with more configurable spawn frequencies.
|
||||
Probability Travel Bionic (walk through walls!)
|
||||
Railgun Bionic (throw metal items at the speed of electricity!)
|
||||
Flashbang bionic.
|
||||
Shockwave Generator bionic.
|
||||
Chain Lightning bionic.
|
||||
Artificial Night bionic.
|
||||
Streamlined lumberjacking tasks.
|
||||
Splints are now craftable and (slowly!) heal broken limbs.
|
||||
Recover CBMs from butchered player corpses
|
||||
Small game arrow.
|
||||
Spoiled (rotten) items will now be removed from the map after twice the time it takes to spoil.
|
||||
Lit torches set enemies on fire.
|
||||
Toggled Metabolic Interchange bionic, active power sources.
|
||||
Changed Optimist to be more thematic and balanced.
|
||||
Morale effects have more flexible durations.
|
||||
Extensively reworked fire handling, e.g. campfires should last a more reasonable duration.
|
||||
Preserve martial art style selection across wielding/unwielding weapons.
|
||||
Simulate alt+number input for SDL version.
|
||||
Quicksave command.
|
||||
Added basic sludge crawler monster
|
||||
More crafting recipes.
|
||||
Stash knives in your boots.
|
||||
Folding bicycle you can stash in a trunk.
|
||||
New improvised guns.
|
||||
More survival-ish foods.
|
||||
Added some more heavy pistols and ammunition.
|
||||
New Improvised lockpick!
|
||||
Floatation Vest.
|
||||
Added wine and a new shirt.
|
||||
Towels.
|
||||
Fuzzy time display, and precise time with wristwatch item.
|
||||
|
||||
Bugfixes:
|
||||
---
|
||||
Multiple gates near one handle work correctly.
|
||||
Made wild Jabberwocks much more rare.
|
||||
Fix turrets shuffing around when off map.
|
||||
Prevent gibbing from low-damage sources.
|
||||
House generation fixes.
|
||||
Allow deconstruction of refrigerators.
|
||||
More consistent road placement.
|
||||
Make mongroups die propperly, even if the queen dies at a distance
|
||||
Monsters killed by wide attacks drop corpses/loot
|
||||
Fix solar panel power production on vehicles.
|
||||
Cleanup tire changing activity.
|
||||
Fix stunlock caused by counterattacks.
|
||||
Keep Jabberwocks from spawning in classic mode.
|
||||
Fix turret drops.
|
||||
Extensive text handling fixes.
|
||||
Menu beautification.
|
||||
Allow saving while in a vehicle.
|
||||
Fix div0 on bad option setting.
|
||||
|
||||
======
|
||||
|
||||
0.6
|
||||
|
||||
Highlights:
|
||||
---
|
||||
* Zombies will revive after a time, if not butchered (or otherwise dealt with).
|
||||
* The Android trait now behaves the way that the description indicates.
|
||||
* Gasoline can be siphoned from vehicles. Requires a rubber hose for now - these are easier to acquire.
|
||||
* Sewing requires materials other than thread - rags for cloth, leather patches for leather, kevlar bricks, plastic chunks.
|
||||
* Leather/Kevlar/plastic/fur repair/reinforcement actually possible!
|
||||
* Inventory management UI improvements, and a new screen to organize worn items.
|
||||
* NPCs continue to be less buggy, but are still prone to crashes.
|
||||
* Weapon firing code reworked a bit. UI improvements, and you should now be able to fire at anything within range.
|
||||
* Reworked the armor/protection code.
|
||||
* Reworked the learning system: replaced XP with Focus. See the relevant help text.
|
||||
* Added a *bunch* of new multi-stage missions, for those who play with the shelter NPC turned on.
|
||||
* Many new buildings (See full changelong list)
|
||||
* Vehicle collision physics are now based on *actual* physics! Reduces collision insanity.
|
||||
* Option to use triginometric distance instead of roguelike distance. In other words light, line of sight are circular instead of square.
|
||||
* Zombie density in towns is based on nearby buildings instead of distance from town center.
|
||||
* Higher-performance (on windows) SDL-based rendering as an optional build type.
|
||||
* Movement on and around vehicles greatly streamlined.
|
||||
* Sound indicator lets you know how much noise you're making.
|
||||
* Turn cost indicator lets you know how long actions take.
|
||||
* Overkilled monsters now spray gibs around instead of disapearing.
|
||||
* Mostly remove limits on how many items fit in a tile of ground.
|
||||
* As usual, many bugfixes.
|
||||
|
||||
Full list:
|
||||
---
|
||||
Purifier no longer removes traits available at chargen.
|
||||
Fix some calculations that wanted floating-point math, and were using integer math.
|
||||
Fix some vehicle collision craziness related to skids.
|
||||
Added zombie revival. Chance of unbutchered zombie corpses rezzing, once 6 hours have passed.
|
||||
Advanced inventory UI improvements/fixes.
|
||||
Dropping count-by-charge items (batteries, meds, etc.) into vehicles will cause restacking.
|
||||
Android trait always gives a power system bionic.
|
||||
Fix torso encumbrance display (it's smart about sign use now).
|
||||
Bitmask-based item flags no longer exist! Instead, we have string-based tags, that have no upper limit.
|
||||
Tweaked glowstick behavior - can no longer deactivate, and they have a dead state.
|
||||
Android trait should no longer give the player faulty bionics.
|
||||
Bolts moved to ammo category, like arrows.
|
||||
Added bone broth, and recipe.
|
||||
Adjust how Climate Control bionic works, make vehicles have functioning (magic!) AC.
|
||||
Added fuel siphoning using rubber hose.
|
||||
Appearance-improving mutations are now flagged as being good mutations.
|
||||
Welder charges are actually used during vehicle construction.
|
||||
Items will no longer become erroneously fitted, and item tags should not spread during map loading.
|
||||
Weather accounts for starting time properly.
|
||||
Containers can be unloaded again (they were bugged).
|
||||
Optimized scentmap updates, hopefully this speeds up certain activities.
|
||||
Pit-requiring constructions have pit digging as their first two stages, to make it more obvious what the prereqs are.
|
||||
Some menus (notably, inventory) can be navigated with arrow keys and enter.
|
||||
Allowing sewing of leather items, make sewing require rags/patches.
|
||||
Cooking rotten food does not make it magically fresh any more.
|
||||
Resolves an issue where destroying an item while tailoring would crash the game.
|
||||
New UI to sort clothing and automatically assign special characters to clothing (accessed via +)
|
||||
Footwear warmth values tweaked to be more flexible.
|
||||
Wool warmth is not reduced by rain.
|
||||
Sofas and armchairs help with sleeping.
|
||||
Temperature is less of an issue while sleeping.
|
||||
Warning messages for when the player is cold/hot while sleeping.
|
||||
Oversized clothing can be worn over anything (blankets, cloaks, etc).
|
||||
Sound interruptions can be categorically ignored while crafting, reading, etc.
|
||||
More improvements to the advanced inventory UI.
|
||||
Shrubs less difficult to smash.
|
||||
Upgraded versions of Fast Healer still give you bonuses while sleeping.
|
||||
Soldering iron recipe learnable via disassembly.
|
||||
Integrated toolset power usage normalized on a few recipes.
|
||||
Vehicle speed is now taken into account when throwing a character that exits a moving vehicle.
|
||||
Gasoline lanterns added to the game.
|
||||
Bifocal glasses added to the game.
|
||||
Tweak Windows (catacurse) colors.
|
||||
Correct window border color behavior under Windows.
|
||||
Add glass jars, make sauces spawn in them instead of in tin cans.
|
||||
Removed a couple NPC crash bugs.
|
||||
You can safely exit a vehicle moving less than 1 MPH.
|
||||
Fix a pair of drawing glitches related to the item pickup window.
|
||||
Remove the artificial delay when animating vehicle movement.
|
||||
Out-of-range enemies are still drawn when firing a weapon.
|
||||
Make it so that anything within range can be targeted with a ranged weapon.
|
||||
Disassembly recipe for vacuum sealer.
|
||||
Backspace no longer causes junk to be input during string entry.
|
||||
The overmap screen now lets you use "<" and ">" to view different z-levels.
|
||||
Reworked the armor/protection code.
|
||||
Fridges drop rubber hose instead of pipe when destroyed.
|
||||
Reworked the learning system: replaced XP with Focus. See the relevant help text.
|
||||
Autosave should save everything now, rather than a subset.
|
||||
Fix artifact saving/loading... again.
|
||||
Added new missions.
|
||||
Added cathedral to mapgen.
|
||||
Fixed flamethrowers.
|
||||
Add 40mm acid bomb shells.
|
||||
Moving furniture causes noise.
|
||||
Clothing damage descriptions now depend on the item's material.
|
||||
Gunmods now show "%" properly in the magazine size line.
|
||||
Add bicycle seats: low-mass seats that can't take a seatbelt.
|
||||
Vehicle collision physics are now based on *actual* physics! Reduces collision insanity.
|
||||
Foraging gives survival experience, even on failure.
|
||||
Disassembling ammo gives firearms experience.
|
||||
Ball bearings should hopefully drop now.
|
||||
Added headlights to a few more default vehicles.
|
||||
Lab coats can be fitted.
|
||||
Items in adjacent containers (fridges, lockers, etc.) visible with 'V' screen.
|
||||
Players can no longer examine sealed crates to see their contents.
|
||||
Funnels give acid water during acid rain :).
|
||||
Acid water (after refinement) now an alternate ingredient for acid bombs.
|
||||
Corrected a few item name typos.
|
||||
Cleaned up generation of a particular (spiral-y) underground room.
|
||||
More temperature tweaks.
|
||||
Being hot makes you MORE thirsty, not less.
|
||||
Reworked item unloading and reloading a bit to remove bugs.
|
||||
Flatbed trucks now have rear windows.
|
||||
Electric cars added as potential vehicle spawns.
|
||||
Fix some bugs related to known overmap data and leaking the state to other characters.
|
||||
Effects of current stats are shown on the '@' screen.
|
||||
Materials obtained from clothing depend on the clothing's damage level.
|
||||
Fixed some lab mapgen bugs.
|
||||
Mansions got a little love.
|
||||
Having too little intelligence for a book is more of a penalty.
|
||||
Vehicle headlight state is persistent after save-load.
|
||||
Being hot no longer increases thirst by an unreasonable amount
|
||||
Minor : temp_conv and dis.intensity are saved, fixing strange on-load inconsistencies
|
||||
Minor : Diseases that affect speed no longer overwrite eachother in the @ menu
|
||||
Clothing with pockets provides a bonus to hand warmth when not wielding a weapon.
|
||||
New large building with basement: Prison
|
||||
Basement level for hazardous waste sarcophagus.
|
||||
New building with basement: musterious cabin.
|
||||
Display recent log messages on player death.
|
||||
Radiation exposure is now more dangerous
|
||||
Mutations from radiation can be disabled.
|
||||
Mutation categories now more dominant.
|
||||
Added themed mutagens with recipes.
|
||||
New medical items.
|
||||
Bundle of plastic bags item for stowing bags.
|
||||
Rebalance chance of cutting weapons getting stuck, much less likely now.
|
||||
Smashing corpses prevents them from reviving.
|
||||
Burning corpses prevents them from reviving.
|
||||
Stopped players from leaving slime trails or webs while in a vehicle.
|
||||
Made vitamins have an effect again.
|
||||
Made multiple gasoline tanks drain properly.
|
||||
Added tiny pain effect to Acid Drizzle, raincoats now offer a bit of protection to acid rain/drizzle.
|
||||
Advanced inv: "e" pulls up inventory item menu. Help window displays feedback messages for actions taken. "?" toggles between help and msg viewer.
|
||||
Eliminate radiation dosage saturation, halving dosage rate to compensate. (radiation is slower, but more implacable)
|
||||
Fitting screen now shows storage and encumbrance in item columns.
|
||||
Added leather vest item and crafting recipe.
|
||||
avoid use of pow() in distance calculation, speeding them up an order of magnitude.
|
||||
Make blood filter remove all other drug based diseases.
|
||||
Make blood analysis detect all drugs.
|
||||
Behold, sharpie markers.
|
||||
Display actual keymapping instead of default one in most help text.
|
||||
Stopped bleeding, bites, and poison from applying when stopped by armor.
|
||||
Safely hop from slow-moving vehicles, get hurt from quick ones.
|
||||
Multidrop screen now shows a summary of what is about to be dropped.
|
||||
Sort inventory by item charges, use low-charge items first.
|
||||
Option to auto-save before sleep.
|
||||
Lava burns things and can be used for crafting.
|
||||
Multiple fixes to burst-fire targeting.
|
||||
Prevent turrets from shooting themselves.
|
||||
Prevent friendly turrets from trying to shoot through the player.
|
||||
Brasas catcher item to catch your brass for recrafting.
|
||||
More power armor variants.
|
||||
Make movement take half the cost of both the beginning and end tiles, instead of just taking the cost of the end tile.
|
||||
Made shooting interactions more realistic.
|
||||
Add radiation badge item and associated infrastructure.
|
||||
Automagically add new keybindings, so long as they don't conflict.
|
||||
Significantly reduces the number of giant worms.
|
||||
Adds strawberry bushes.
|
||||
Advanced inventory: Add [c]ategory sort.
|
||||
Large number of added archery items: Wide range of bows crossbows, and arrows, and a multitude of crafting recipes.
|
||||
Stop unnecessaraly saving adjacent overmaps every time they are potentially dirtied. (prevents periodic pauses!)
|
||||
Hard Leg Guards and Metal Leg guards.
|
||||
Picking berry bushes trains survival (at low levels).
|
||||
Added skill support into professions.
|
||||
|
||||
|
||||
======
|
||||
|
||||
0.5
|
||||
|
||||
Highlights:
|
||||
---
|
||||
* Many new details added to mapgen! New buildings, ruined vehicles on roads, and so on.
|
||||
* Much more modding-friendly: MANY bits of data have been moved into data files, rather than being hardcoded in the source.
|
||||
* A handful of recipes can be learned from sources other than just leveling your skills.
|
||||
* Artifacts should save/load properly now!
|
||||
* Assorted UI tweaks and improvements.
|
||||
* Weather radio and directional antenna.
|
||||
* Rain funnels - first step towards proper rain barrels.
|
||||
* Robust Genetics and dodging have both been significantly rebalanced, and should actually be useful.
|
||||
* Zombies wear damaged clothing.
|
||||
* Tailoring is more important, and string is easier to acquire.
|
||||
* New content all around!
|
||||
* Numerous bugfixes.
|
||||
|
||||
|
||||
Full list:
|
||||
---
|
||||
Matches usable anywhere lighters could be used previously.
|
||||
Draw lit areas outside of LOS and normal sight radius the same as unlit areas
|
||||
Tell the player when their gear is damaged in combat
|
||||
Display player feat morale boosts
|
||||
Pickling/canning
|
||||
Only rust skill if X turns have passed since practice, not every x turns.
|
||||
Halve rate of skill rust across the board.
|
||||
Push crafting recipes out to JSON - now moddable without recompiling!
|
||||
Acid rain causes pain not injury
|
||||
Changed default viewmorale key to v
|
||||
Learn crafting recipes from item disassembly or books.
|
||||
New Hardcore trait
|
||||
Other new traits: Skilled Liar, Pretty, Beautiful, Very Beautiful, Glorius (cancels truth-teller, ugly mutations)
|
||||
Set minimum move to 25
|
||||
Death by starvation or thirst
|
||||
New professions: tailor, scoundrel
|
||||
Adjusted conditions for cutting and stabbing skill practice (should be able to practice piercing now)
|
||||
Code compiles with no warnings. No user-visible change, but important stability milestone.
|
||||
Added a craftable power armor power interface CBM, solar panels.
|
||||
Continuous reading.
|
||||
New mixed drinks
|
||||
A new book; "To Serve Man"
|
||||
Glowsticks, found in sporting goods stores and bedrooms.
|
||||
Broken and Empty windows can no longer be taped up, alarmed windows can.
|
||||
Palisade walls changed to require 2 6foot ropes rather than one thirty foot one.
|
||||
Domestic Windows drop strings now (Those are the kind that can be opened)
|
||||
String can be made from sinew and plant fibre.
|
||||
Added blankets, fur blankets (craft only), emergency blankets, sleeping bags, fur sleeping bags (craft only).
|
||||
Added house coat, snuggie, cloak, fur cloak (craft only), leather cloak (craft only).
|
||||
Added fur scarf, fur gloves, fur trenchcoat, fur pants, fur boots (all craft only).
|
||||
All tailoring items that use fur require survival as secondary skill.
|
||||
Added crafting recipes for bandana, blanket, house coat, cloak.
|
||||
Weather radio
|
||||
Radios are tuneable, so you can receive from more than one station without moving.
|
||||
New item that doubles battery capacity of tools, recipe learn from certain electronics books.
|
||||
Bugfix: reduced chance of "Tried to kill monster" debug s pam.
|
||||
Bugfix: reduced chance of "Stopping out-of-map vehicle" spam.
|
||||
Bugfix: can unload liquids into items wielded in hands (e.g., steel jerrycans).
|
||||
Bionics screen shows current and maximum power.
|
||||
Escape key usable to exit out of more menus.
|
||||
Multidrop screen continually updates to show new potential weight/volume.
|
||||
Bugfix: longbow should not end up loaded while in inventory, and can be fired if it does.
|
||||
Backpacks, messenger bags, etc. can be repaired via sewing kits.
|
||||
Add fire drill as a survivalcraft firestarter (trickier and slower than lighter/matches).
|
||||
Furry mutation provides warmth, Bark mutation protects from fire.
|
||||
Removed/reduced a lot of spam messages related to being hot or cold.
|
||||
Sleeping should be easier in the cold (decreased chances of waking up).
|
||||
Being too hot can now wake you up.
|
||||
Inreased the amount fo heat generated by the player while awake.
|
||||
Tweaked hunger and fatigue's contribution to body temperature.
|
||||
More traits and mutations have body temperature effects.
|
||||
Fix artifact saving and loading.
|
||||
Multiple building additions in town and in the countryside.
|
||||
Support for 2x2 and 3x3 buildings.
|
||||
Temporary fix to decrease the number of large structures with roads running through them.
|
||||
Items can only be set on fire if it would affect them (no more burning sheets infinitely).
|
||||
Looking around at items (with "V") has a few improvements.
|
||||
Soldering irons give heating elements when disassembled, tweak numbers for hotplates and water purifiers.
|
||||
Advanced inventory management screen, default keymap "/". Lets you interact with adjacent tiles.
|
||||
Roadmap is made of paper.
|
||||
Removed RV kitchen units from some spawn locations.
|
||||
Backend: made it much easier to define pre-built locations. Responsible for a lot of the new building types.
|
||||
Increased the quench value of clean water.
|
||||
Early-game survivalist stabbing weapon is now pointy stick. Wood spear is higher level.
|
||||
You can now read using torches and other items.
|
||||
Addictions can be configured explicitly in the professions file.
|
||||
Tweak crossbow trap drops.
|
||||
Made several UI screens smarter (resize to fit screen, esc can exit, etc.).
|
||||
Show nearby map notes on the minimap.
|
||||
Some item types can be defined from data files now! So far: misc/melee, armor, guns, ammo, tools, gun mods, books
|
||||
Glasses can be worn with power armor.
|
||||
Added several new constructions.
|
||||
Power use of integrated toolset has been rebalanced.
|
||||
Armor CBMs have had drawbacks removed.
|
||||
Rain coats can be made from plastic bags.
|
||||
Fursuits.
|
||||
Work to make NPCs less buggy.
|
||||
Nuclear missile fixes.
|
||||
Tweaked steel recycler behavior.
|
||||
Autosaves take into account the passage of real-world time.
|
||||
Placable funnel that collects some water while raining.
|
||||
Characters with the Android trait no longer get unimplemented bionics.
|
||||
Added several new options.
|
||||
NPC spawning is toggled with the in-game options menu rather than a text file hack.
|
||||
Added more wildlife (coyotes, cats, etc.).
|
||||
Robust Genetics trait heavily buffed.
|
||||
Change how overmap tile data is saved, to allow for more terrain types and buildings.
|
||||
Add high-capacity power storage CBM.
|
||||
Add some new magazines and entertainment books.
|
||||
Blisters no longer lower max HP (at least until the system is more fleshed out).
|
||||
Cannibal trait has been rebalanced, as well as morale effects of eating human flesh.
|
||||
Added cookbook for Italian recipes.
|
||||
Sewing now requires an adequate source of light.
|
||||
New health display for non-Self Aware characters, accurate to 1/10th max HP rather than 1/4th.
|
||||
Targeting window (when throwing/firing weapons) has been reorganized.
|
||||
Directional antennas!
|
||||
Gas pumps have been rebalanced (less fragile when filling vehicles, more fragile when filling containers).
|
||||
Added sling, slingshot, and associated ammunition.
|
||||
Gas stations can spawn next to highways.
|
||||
Large creatures are more likely to leave a corpse when taking high damage.
|
||||
Add flavor items with variable descriptions to the game (fliers and such).
|
||||
Some guns have range modifiers independent of their ammo. Buffed coilgun range.
|
||||
Add limb torsion ratchet bionic, generates power when moving.
|
||||
Desks don't spawn outside any more.
|
||||
The option to delete your world on character death actually works now!
|
||||
Tweaked projectile/glass interaction, stopped leaping monsters from phasing through windows.
|
||||
Debug menu changes.
|
||||
Made it possible to build indoor furniture in more situations.
|
||||
Updated readme, added contributing guidelines.
|
||||
Stopped small animals from suiciding, in many cases (e.g., broken windows and landmines).
|
||||
Add a few hats. No, not TF2-style.
|
||||
Artifacts will successfully save and load now!
|
||||
Adjusted monster spawning mechanics to reduce the chance of swarms of difficult zombies.
|
||||
Stop roads from going through buildings so often.
|
||||
Pits less awkward to board over (can use nearby items).
|
||||
Tweak glass bottle weight/volume.
|
||||
Allow for reading/sewing in the dark through mutations/CBM's with a speed penalty.
|
||||
Rewrote dodge abilities to have a noticeable impact.
|
||||
Mansion pools are considered indoors now.
|
||||
Tires can be changed with a wrench and a jack.
|
||||
Add game logic to handle recipes that take the same item as a component and a tool, and add UI to alert the player.
|
||||
Improve rendering in the main Windows port - animations should display better.
|
||||
Cave-ins cause damaging rubble to fall.
|
||||
Improve fuel guage display in the vehicle examination window.
|
||||
Overmap notes blink again.
|
||||
Space and tab should be available for keymaps.
|
||||
Hitting the "pause"/"skip turn" button will let you cancel reading, crafting, and other long-term actions.
|
||||
Special road spawns should not happen on bridges.
|
||||
Ruined vehicles spawn on roads.
|
||||
Zombies wear damaged clothing.
|
||||
Nighttime lights are visible from reasonable distances now.
|
||||
|
||||
======
|
||||
|
||||
0.4
|
||||
Make the battery system bionic only consume as many batteries as necessary to fully power yourself
|
||||
Knives can also cauterize wounds now. Requires a lighter.
|
||||
@@ -16,7 +414,7 @@ Vehicle-mountable water tanks and kitchen units, implied storage-battery-chargin
|
||||
Map tiles can now contain up to 64 items.
|
||||
Beer has been made weaker, and now appears in kegs in liquor stores and bars.
|
||||
Steel jerrycans.
|
||||
Any gun can now be used one-handed if you are strong enough.
|
||||
Any gun can now be used one-handed if you are strong enough.
|
||||
Hardcoded frostbite not to occur above freezing temperatures.
|
||||
Improved fire's ability to warm the player. Also, standing on fire and being on fire warm up the player.
|
||||
Fixed body temperature equalization.
|
||||
@@ -25,7 +423,7 @@ Standing in water or sewage will increase the rate of heat loss (but not make th
|
||||
The head and torso now lose heat faster than other body parts.
|
||||
Body temperature drops as you lose HP.
|
||||
Encumberance menu's listing of warmth has been made more colorful.
|
||||
Mouth (face) now has appropriate cold and hot diseases.
|
||||
Mouth (face) now has appropriate cold and hot diseases.
|
||||
The ability to cauterize wounds to heal bites and stop bleeding. (a)ctivate a knife, requires a lighter.
|
||||
The ability to craft an item as many times as is possible. Defaults to the + key. (Linux and Mac users will need to assign a key)
|
||||
Added M72-LAW. Makes a large explosion and penetrates armour well. One shot only.
|
||||
@@ -35,7 +433,7 @@ Ammunition explodes rather than burning.
|
||||
Lightstrips, function as weak light providers. Craftable.
|
||||
Bandages and First Aid kits no longer show uninjured bodyparts in the menu.
|
||||
Some basic professions, more to be added later.
|
||||
|
||||
|
||||
|
||||
0.3
|
||||
Many menus stretch with an enlarged viewport.
|
||||
|
||||
+2
-2
@@ -4,7 +4,7 @@
|
||||
Original author: Project Manager: Website/Forum:
|
||||
Whales (retired) TheDarklingWolf GlyphGryph
|
||||
|
||||
Main Developers/Gihub Managers:
|
||||
Main Developers/Github Managers:
|
||||
Kevingranade, Ozone, TheDarklingWolf, zpmorgan
|
||||
|
||||
Active Contributors:
|
||||
@@ -13,4 +13,4 @@ BurnZeZ, Oddzball, Shades, Shoes01, Tase, GalenEvil
|
||||
Contributors:
|
||||
AkrionXxarr, Benjamg, Creidieki, Daftfad, Elricsfate, Gim,
|
||||
GlyphGryph, Gremour, HerbertJones, hovatterz, Origamiwolf,
|
||||
Soron, Uzername, Voker57, Wito
|
||||
Soron, Uzername, Voker57, Wito, i2amroy
|
||||
|
||||
Binary file not shown.
@@ -1,18 +1,18 @@
|
||||
# This message may be 16 lines long at maximum.
|
||||
# Max length of a line is 68 characters; the following line is for reference
|
||||
####################################################################
|
||||
New features v0.3:
|
||||
Reduced sight range of monsters. Monster bites and infections.
|
||||
A bunch of new survival craft.
|
||||
Fixes, fixes and more fixes.
|
||||
New features v0.7 Lindqvist:
|
||||
* Preliminary i18n support.
|
||||
* More advanced bionics.
|
||||
* Autopickup
|
||||
|
||||
For latest discussions and news on Cataclysm DDA, please visit:
|
||||
|
||||
Homepage: http://www.cataclysmdda.com/
|
||||
Forum: http://www.cataclysmdda.com/smf/
|
||||
Forum: http://smf.cataclysmdda.com/
|
||||
Wiki: http://wiki.cataclysmdda.com/
|
||||
|
||||
The game now has new configurable options:
|
||||
Customizeable Viewport, Spawntype: Classic/Static, Starting time
|
||||
New configurable options:
|
||||
Autosave frequency, Trigonometric (circular) distance,
|
||||
Trait points cap, radiation lethality.
|
||||
|
||||
Ingame you can access the options via the help menu (?2).
|
||||
|
||||
@@ -1,18 +0,0 @@
|
||||
# This is the npc file for Cataclysm.
|
||||
# You can start a line with # to make it a comment--it will be ignored.
|
||||
# Blank lines are ignored too.
|
||||
# Extra whitespace, including tab, is ignored, so format things how you like.
|
||||
# If you wish to restore defaults, simply remove this file.
|
||||
|
||||
# This file currently has two options, disabling starting npcs and
|
||||
# disabling randomly spawning npcs spawned by the dynamic spawn system
|
||||
|
||||
# Turning on the starting_npc setting only has effect on new character
|
||||
# creation. None of these settings get rid of already spawned npcs. Use
|
||||
# the debug menu for that.
|
||||
|
||||
# WARNING: NPC's are currently broken. When used expect bugs and crashes.
|
||||
# You have been warned.
|
||||
# None of these settings prevent you from spawning npcs using the debug menu.
|
||||
starting_npc n
|
||||
random_npc n
|
||||
@@ -0,0 +1,543 @@
|
||||
[
|
||||
{
|
||||
"id" : "bio_null",
|
||||
"name" : "NULL bionics",
|
||||
"cost" : 0,
|
||||
"time" : 0,
|
||||
"description": "If you're seeing this, it's a bug. (game::init_bionics)"
|
||||
},
|
||||
{
|
||||
"id" : "bio_batteries",
|
||||
"name" : "Battery System",
|
||||
"cost" : 0,
|
||||
"time" : 0,
|
||||
"flags" : ["POWER"],
|
||||
"description": "You have a battery draining attachment, and thus can make use of the energy\ncontained in normal, everyday batteries. Use 'E' to consume batteries."
|
||||
},
|
||||
{
|
||||
"id" : "bio_metabolics",
|
||||
"name" : "Metabolic Interchange",
|
||||
"cost" : 0,
|
||||
"time" : 100,
|
||||
"flags" : ["POWER", "ACTIVE"],
|
||||
"description": "Your digestive system and power supply are interconnected. Any drain on\nenergy instead increases your hunger."
|
||||
},
|
||||
{
|
||||
"id" : "bio_solar",
|
||||
"name" : "Solar Panels",
|
||||
"cost" : 0,
|
||||
"time" : 0,
|
||||
"flags" : ["POWER"],
|
||||
"description": "You have a few solar panels installed. While in direct sunlight, your power\nlevel will slowly recharge."
|
||||
},
|
||||
{
|
||||
"id" : "bio_torsionratchet",
|
||||
"name" : "Joint Torsion Ratchet",
|
||||
"cost" : 0,
|
||||
"time" : 0,
|
||||
"flags" : ["POWER"],
|
||||
"description": "Your joints have been equipped with torsion ratchets that generate power slowly\nwhen you move."
|
||||
},
|
||||
{
|
||||
"id" : "bio_furnace",
|
||||
"name" : "Internal Furnace",
|
||||
"cost" : 0,
|
||||
"time" : 0,
|
||||
"flags" : ["POWER"],
|
||||
"description": "You can burn nearly any organic material as fuel (use 'E'), recharging your\npower level. Some materials will burn better than others."
|
||||
},
|
||||
{
|
||||
"id" : "bio_ethanol",
|
||||
"name" : "Ethanol Burner",
|
||||
"cost" : 0,
|
||||
"time" : 0,
|
||||
"flags" : ["POWER"],
|
||||
"description": "You burn alcohol as fuel in an extremely efficient reaction. However, you\nwill still suffer the inebriating effects of the substance."
|
||||
},
|
||||
{
|
||||
"id" : "bio_memory",
|
||||
"name" : "Enhanced Memory Banks",
|
||||
"cost" : 1,
|
||||
"time" : 0,
|
||||
"description": "Your memory has been enhanced with small quantum storage drives. Any time\nyou start to forget a skill, you have a chance at retaining all knowledge, at\nthe cost of a small amount of poweron."
|
||||
},
|
||||
{
|
||||
"id" : "bio_ears",
|
||||
"name" : "Enhanced Hearing",
|
||||
"cost" : 0,
|
||||
"time" : 0,
|
||||
"description": "Your hearing has been drastically improved, allowing you to hear ten times\nbetter than the average person. Additionally, high-intensity sounds will be\nautomatically dampened before they can damage your hearing."
|
||||
},
|
||||
{
|
||||
"id" : "bio_eye_enhancer",
|
||||
"name" : "Diamond Cornea",
|
||||
"cost" : 0,
|
||||
"time" : 0,
|
||||
"description": "Your vision is greatly enhanced, giving you a +2 bonus to perception."
|
||||
},
|
||||
{
|
||||
"id" : "bio_membrane",
|
||||
"name" : "Nictating Membrane",
|
||||
"cost" : 0,
|
||||
"time" : 0,
|
||||
"description": "Your eyes have a thin membrane that closes over your eyes while underwater,\nnegating any vision penalties."
|
||||
},
|
||||
{
|
||||
"id" : "bio_targeting",
|
||||
"name" : "Targeting System",
|
||||
"cost" : 0,
|
||||
"time" : 0,
|
||||
"description": "Your eyes are equipped with range finders, and their movement is synced with\nthat of your arms, to a degree. Shots you fire will be much more accurate,\nparticularly at long range."
|
||||
},
|
||||
{
|
||||
"id" : "bio_gills",
|
||||
"name" : "Membrane Oxygenator",
|
||||
"cost" : 1,
|
||||
"time" : 0,
|
||||
"description": "An oxygen interchange system automatically switches on while underwater,\nslowly draining your energy reserves but providing oxygen."
|
||||
},
|
||||
{
|
||||
"id" : "bio_purifier",
|
||||
"name" : "Air Filtration System",
|
||||
"cost" : 1,
|
||||
"time" : 0,
|
||||
"description": "Implanted in your trachea is an advanced filtration system. If toxins find\ntheir way into your windpipe, the filter will attempt to remove them."
|
||||
},
|
||||
{
|
||||
"id" : "bio_climate",
|
||||
"name" : "Internal Climate Control",
|
||||
"cost" : 1,
|
||||
"time" : 30,
|
||||
"flags" : ["ACTIVE"],
|
||||
"description": "Throughout your body lies a network of thermal piping which eases the effects\nof high and low ambient temperatures."
|
||||
},
|
||||
{
|
||||
"id" : "bio_storage",
|
||||
"name" : "Internal Storage",
|
||||
"cost" : 0,
|
||||
"time" : 0,
|
||||
"description": "Space inside your chest cavity has been converted into a storage area. You\nmay carry an extra 8 units of volume."
|
||||
},
|
||||
{
|
||||
"id" : "bio_recycler",
|
||||
"name" : "Recycler Unit",
|
||||
"cost" : 0,
|
||||
"time" : 0,
|
||||
"description": "Your digestive system has been outfitted with a series of filters and\nprocessors, allowing you to reclaim waste liquid and, to a lesser degree,\nnutrients. The net effect is a greatly reduced need to eat and drink."
|
||||
},
|
||||
{
|
||||
"id" : "bio_digestion",
|
||||
"name" : "Expanded Digestive System",
|
||||
"cost" : 0,
|
||||
"time" : 0,
|
||||
"description": "You have been outfitted with three synthetic stomachs and industrial-grade\nintestines. Not only can you extract much more nutrition from food, but you\nare highly resistant to foodborne illness, and can sometimes eat rotten food."
|
||||
},
|
||||
{
|
||||
"id" : "bio_tools",
|
||||
"name" : "Integrated Toolset",
|
||||
"cost" : 0,
|
||||
"time" : 0,
|
||||
"description": "Implanted in your hands and fingers is a complete tool set - screwdriver,\nhammer, wrench, and heating elements. You can use this in place of many\ntools when crafting."
|
||||
},
|
||||
{
|
||||
"id" : "bio_shock",
|
||||
"name" : "Electroshock Unit",
|
||||
"cost" : 1,
|
||||
"time" : 0,
|
||||
"description": "While fighting unarmed, or with a weapon that conducts electricity, there is\na chance that a successful hit will shock your opponent, inflicting extra\ndamage and disabling them temporarily at the cost of some energy."
|
||||
},
|
||||
{
|
||||
"id" : "bio_heat_absorb",
|
||||
"name" : "Heat Drain",
|
||||
"cost" : 1,
|
||||
"time" : 0,
|
||||
"description": "While fighting unarmed against a warm-blooded opponent, there is a chance\nthat a successful hit will drain body heat, inflicting a small amount of\nextra damage, and increasing your power reserves slightly."
|
||||
},
|
||||
{
|
||||
"id" : "bio_carbon",
|
||||
"name" : "Subdermal Carbon Filament",
|
||||
"cost" : 0,
|
||||
"time" : 0,
|
||||
"description": "Lying just beneath your skin is a thin armor made of carbon nanotubes. This\nreduces bashing damage by 2 and cutting damage by 4."
|
||||
},
|
||||
{
|
||||
"id" : "bio_armor_head",
|
||||
"name" : "Alloy Plating - Head",
|
||||
"cost" : 0,
|
||||
"time" : 0,
|
||||
"description": "The flesh on your head has been replaced by a strong armor, protecting both\nyour head and jaw regions."
|
||||
},
|
||||
{
|
||||
"id" : "bio_armor_torso",
|
||||
"name" : "Alloy Plating - Torso",
|
||||
"cost" : 0,
|
||||
"time" : 0,
|
||||
"description": "The flesh on your torso has been replaced by a strong armor, protecting you\ngreatly."
|
||||
},
|
||||
{
|
||||
"id" : "bio_armor_arms",
|
||||
"name" : "Alloy Plating - Arms",
|
||||
"cost" : 0,
|
||||
"time" : 0,
|
||||
"description": "The flesh on your arms has been replaced by a strong armor, protecting you\ngreatly."
|
||||
},
|
||||
{
|
||||
"id" : "bio_armor_legs",
|
||||
"name" : "Alloy Plating - Legs",
|
||||
"cost" : 0,
|
||||
"time" : 0,
|
||||
"description": "The flesh on your legs has been replaced by a strong armor, protecting you\ngreatly."
|
||||
},
|
||||
{
|
||||
"id" : "bio_flashlight",
|
||||
"name" : "Cranial Flashlight",
|
||||
"cost" : 1,
|
||||
"time" : 30,
|
||||
"flags" : ["ACTIVE"],
|
||||
"description": "Mounted between your eyes is a small but powerful LED flashlight."
|
||||
},
|
||||
{
|
||||
"id" : "bio_night_vision",
|
||||
"name" : "Implanted Night Vision",
|
||||
"cost" : 1,
|
||||
"time" : 20,
|
||||
"flags" : ["ACTIVE"],
|
||||
"description": "Your eyes have been modified to amplify existing light, allowing you to see\nin the dark."
|
||||
},
|
||||
{
|
||||
"id" : "bio_infrared",
|
||||
"name" : "Infrared Vision",
|
||||
"cost" : 1,
|
||||
"time" : 4,
|
||||
"flags" : ["ACTIVE"],
|
||||
"description": "Your range of vision extends into the infrared, allowing you to see warm-\nblooded creatures in the dark, and even through walls."
|
||||
},
|
||||
{
|
||||
"id" : "bio_face_mask",
|
||||
"name" : "Facial Distortion",
|
||||
"cost" : 1,
|
||||
"time" : 10,
|
||||
"flags" : ["ACTIVE"],
|
||||
"description": "Your face is actually made of a compound which may be molded by electrical\nimpulses, making you impossible to recognize. While not powered, however,\nthe compound reverts to its default shape."
|
||||
},
|
||||
{
|
||||
"id" : "bio_ads",
|
||||
"name" : "Active Defense System",
|
||||
"cost" : 1,
|
||||
"time" : 7,
|
||||
"flags" : ["ACTIVE"],
|
||||
"description": "A thin forcefield surrounds your body, continually draining power. Anything\nattempting to penetrate this field has a chance of being deflected at the\ncost of more energy. Melee attacks will be stopped more often than bullets."
|
||||
},
|
||||
{
|
||||
"id" : "bio_ods",
|
||||
"name" : "Offensive Defense System",
|
||||
"cost" : 1,
|
||||
"time" : 6,
|
||||
"flags" : ["ACTIVE"],
|
||||
"description": "A thin forcefield surrounds your body, continually draining power. This\nfield does not deflect penetration, but rather delivers a very strong shock,\ndamaging unarmed attackers and those with a conductive weapon."
|
||||
},
|
||||
{
|
||||
"id" : "bio_scent_mask",
|
||||
"name" : "Olfactory Mask",
|
||||
"cost" : 1,
|
||||
"time" : 8,
|
||||
"flags" : ["ACTIVE"],
|
||||
"description": "While this system is powered, your body will produce very little odor, making\nit nearly impossible for creatures to track you by scent."
|
||||
},
|
||||
{
|
||||
"id" : "bio_scent_vision",
|
||||
"name" : "Scent Vision",
|
||||
"cost" : 1,
|
||||
"time" : 30,
|
||||
"flags" : ["ACTIVE"],
|
||||
"description": "While this system is powered, you're able to visually sense your own scent,\nmaking it possible for you to recognize your surroundings even if you can't\nsee it."
|
||||
},
|
||||
{
|
||||
"id" : "bio_cloak",
|
||||
"name" : "Cloaking System",
|
||||
"cost" : 2,
|
||||
"time" : 1,
|
||||
"flags" : ["ACTIVE"],
|
||||
"description": "This high-power system uses a set of cameras and LEDs to make you blend into\nyour background, rendering you fully invisible to normal vision. However,\nyou may be detected by infrared, sonar, etc."
|
||||
},
|
||||
{
|
||||
"id" : "bio_painkiller",
|
||||
"name" : "Sensory Dulling",
|
||||
"cost" : 2,
|
||||
"time" : 0,
|
||||
"flags" : ["ACTIVE"],
|
||||
"description": "Your nervous system is wired to allow you to inhibit the signals of pain,\nallowing you to dull your senses at will. However, the use of this system\nmay cause delayed reaction time and drowsiness."
|
||||
},
|
||||
{
|
||||
"id" : "bio_nanobots",
|
||||
"name" : "Repair Nanobots",
|
||||
"cost" : 5,
|
||||
"time" : 0,
|
||||
"flags" : ["ACTIVE"],
|
||||
"description": "Inside your body is a fleet of tiny dormant robots. Once charged from your\nenergy banks, they will flit about your body, repairing any damage."
|
||||
},
|
||||
{
|
||||
"id" : "bio_heatsink",
|
||||
"name" : "Thermal Dissipation",
|
||||
"cost" : 1,
|
||||
"time" : 6,
|
||||
"flags" : ["ACTIVE"],
|
||||
"description": "Powerful heatsinks supermaterials are woven into your flesh. While powered,\nthis system will prevent heat damage up to 2000 degrees fahrenheit. Note\nthat this does not affect your internal temperature."
|
||||
},
|
||||
{
|
||||
"id" : "bio_resonator",
|
||||
"name" : "Sonic Resonator",
|
||||
"cost" : 4,
|
||||
"time" : 0,
|
||||
"flags" : ["ACTIVE"],
|
||||
"description": "Your entire body may resonate at very high power, creating a short-range\nshockwave. While it will not to much damage to flexible creatures, stiff\nitems such as walls, doors, and even robots will be severely damaged."
|
||||
},
|
||||
{
|
||||
"id" : "bio_time_freeze",
|
||||
"name" : "Time Dilation",
|
||||
"cost" : 3,
|
||||
"time" : 0,
|
||||
"flags" : ["ACTIVE"],
|
||||
"description": "At an immense cost of power, you may increase your body speed and reactions\ndramatically, essentially freezing time. You are still delicate, however,\nand violent or rapid movements may damage you due to friction."
|
||||
},
|
||||
{
|
||||
"id" : "bio_teleport",
|
||||
"name" : "Teleportation Unit",
|
||||
"cost" : 10,
|
||||
"time" : 0,
|
||||
"flags" : ["ACTIVE"],
|
||||
"description": "This highly experimental unit folds space over short distances, instantly\ntransporting your body up to 25 feet at the cost of much power. Note that\nprolonged or frequent use may have dangerous side effects."
|
||||
},
|
||||
{
|
||||
"id" : "bio_blood_anal",
|
||||
"name" : "Blood Analysis",
|
||||
"cost" : 1,
|
||||
"time" : 0,
|
||||
"flags" : ["ACTIVE"],
|
||||
"description": "Small sensors have been implanted in your heart, allowing you to analyse your\nblood. This will detect many illnesses, drugs, and other conditions."
|
||||
},
|
||||
{
|
||||
"id" : "bio_blood_filter",
|
||||
"name" : "Blood Filter",
|
||||
"cost" : 3,
|
||||
"time" : 0,
|
||||
"flags" : ["ACTIVE"],
|
||||
"description": "A filtration system in your heart allows you to actively filter out chemical\nimpurities, primarily drugs. It will have limited impact on viruses. Note\nthat it is not a targeted filter; ALL drugs in your system will be affected."
|
||||
},
|
||||
{
|
||||
"id" : "bio_alarm",
|
||||
"name" : "Alarm System",
|
||||
"cost" : 1,
|
||||
"time" : 400,
|
||||
"flags" : ["ACTIVE"],
|
||||
"description": "A motion-detecting alarm system will notice almost all movement within a\nfifteen-foot radius, and will silently alert you. This is very useful during\nsleep, or if you suspect a cloaked pursuer."
|
||||
},
|
||||
{
|
||||
"id" : "bio_evap",
|
||||
"name" : "Aero-Evaporator",
|
||||
"cost" : 8,
|
||||
"time" : 0,
|
||||
"flags" : ["ACTIVE"],
|
||||
"description": "This unit draws moisture from the surrounding air, which then is poured from\na fingertip in the form of water. It may fail in very dry environments."
|
||||
},
|
||||
{
|
||||
"id" : "bio_lighter",
|
||||
"name" : "Mini-Flamethrower",
|
||||
"cost" : 3,
|
||||
"time" : 0,
|
||||
"flags" : ["ACTIVE"],
|
||||
"description": "The index fingers of both hands have powerful fire starters which extend from\nthe tip."
|
||||
},
|
||||
{
|
||||
"id" : "bio_claws",
|
||||
"name" : "Adamantium Claws",
|
||||
"cost" : 3,
|
||||
"time" : 0,
|
||||
"flags" : ["ACTIVE"],
|
||||
"description": "Your fingers can withdraw into your hands, allowing a set of vicious claws to\nextend. These do considerable cutting damage, but prevent you from holding\nanything else."
|
||||
},
|
||||
{
|
||||
"id" : "bio_blaster",
|
||||
"name" : "Fusion Blaster Arm",
|
||||
"cost" : 2,
|
||||
"time" : 0,
|
||||
"flags" : ["ACTIVE"],
|
||||
"description": "Your left arm has been replaced by a heavy-duty fusion blaster! You may use\nyour energy banks to fire a damaging heat ray; however, you are unable to use\nor carry two-handed items, and may only fire handguns."
|
||||
},
|
||||
{
|
||||
"id" : "bio_laser",
|
||||
"name" : "Finger-Mounted Laser",
|
||||
"cost" : 2,
|
||||
"time" : 0,
|
||||
"flags" : ["ACTIVE"],
|
||||
"description": "One of your fingers has a small high-powered laser embedded in it. This long\nrange weapon is not incredibly damaging, but is very accurate, and has the\npotential to start fires."
|
||||
},
|
||||
{
|
||||
"id" : "bio_emp",
|
||||
"name" : "Directional EMP",
|
||||
"cost" : 4,
|
||||
"time" : 0,
|
||||
"flags" : ["ACTIVE"],
|
||||
"description": "Mounted in the palms of your hand are small parabolic EMP field generators.\nYou may use power to fire a short-ranged blast which will disable electronics\nand robots."
|
||||
},
|
||||
{
|
||||
"id" : "bio_hydraulics",
|
||||
"name" : "Hydraulic Muscles",
|
||||
"cost" : 1,
|
||||
"time" : 3,
|
||||
"flags" : ["ACTIVE"],
|
||||
"description": "While activated, the muscles in your arms will be greatly enchanced,\nincreasing your strength by 20."
|
||||
},
|
||||
{
|
||||
"id" : "bio_water_extractor",
|
||||
"name" : "Water Extraction Unit",
|
||||
"cost" : 2,
|
||||
"time" : 0,
|
||||
"flags" : ["ACTIVE"],
|
||||
"description": "Nanotubes embedded in the palm of your hand will pump any available fluid out\nof a dead body, cleanse it of impurities and convert it into drinkable water.\nYou must, however, have a container to store the water in."
|
||||
},
|
||||
{
|
||||
"id" : "bio_magnet",
|
||||
"name" : "Electromagnetic Unit",
|
||||
"cost" : 2,
|
||||
"time" : 0,
|
||||
"flags" : ["ACTIVE"],
|
||||
"description": "Embedded in your hand is a powerful electromagnet, allowing you to pull items\nmade of iron over short distances."
|
||||
},
|
||||
{
|
||||
"id" : "bio_fingerhack",
|
||||
"name" : "Fingerhack",
|
||||
"cost" : 1,
|
||||
"time" : 0,
|
||||
"flags" : ["ACTIVE"],
|
||||
"description": "One of your fingers has an electrohack embedded in it; an all-purpose hacking\nunit used to override control panels and the like (but not computers). Skill\nin computers is important, and a failed use may damage your circuits."
|
||||
},
|
||||
{
|
||||
"id" : "bio_lockpick",
|
||||
"name" : "Fingerpick",
|
||||
"cost" : 1,
|
||||
"time" : 0,
|
||||
"flags" : ["ACTIVE"],
|
||||
"description": "One of your fingers has an electronic lockpick embedded in it. This auto-\nmatic system will quickly unlock all but the most advanced key locks without\nany skill required on the part of the user."
|
||||
},
|
||||
{
|
||||
"id" : "bio_ground_sonar",
|
||||
"name" : "Terranian Sonar",
|
||||
"cost" : 1,
|
||||
"time" : 5,
|
||||
"flags" : ["ACTIVE"],
|
||||
"description": "Your feet are equipped with precision sonar equipment, allowing you to detect\nthe movements of creatures below the ground."
|
||||
},
|
||||
{
|
||||
"id" : "bio_power_armor_interface",
|
||||
"name" : "Power Armor Interface",
|
||||
"cost" : 1,
|
||||
"time" : 10,
|
||||
"flags" : ["ACTIVE"],
|
||||
"description": "Interfaces your power system with the internal charging port on suits of power armor."
|
||||
},
|
||||
{
|
||||
"id" : "bio_power_armor_interface_mkII",
|
||||
"name" : "Power Armor Interface Mk. II",
|
||||
"cost" : 1,
|
||||
"time" : 50,
|
||||
"flags" : ["ACTIVE"],
|
||||
"description": "Interfaces your power system with the internal charging port on suits of power armor.\nThe Mk. II was designed by DoubleTech Inc., to meet the popularity of the Mk. II\npower armor series."
|
||||
},
|
||||
{
|
||||
"id" : "bio_flashbang",
|
||||
"name" : "Flashbang Generator",
|
||||
"cost" : 5,
|
||||
"time" : 0,
|
||||
"flags" : ["ACTIVE"],
|
||||
"description": "Light emitting diodes integrated into your skin can release a flash comparable\nto a flashbang grenade, blinding nearby enemies. Speakers integrated into your\nbody mimic the loud sound, deafening those nearby."
|
||||
},
|
||||
{
|
||||
"id" : "bio_railgun",
|
||||
"name" : "Railgun",
|
||||
"cost" : 1,
|
||||
"time" : 100,
|
||||
"flags" : ["ACTIVE"],
|
||||
"description": "EM field generators in your arms double the range and damage of thrown\niron and steel objects at a cost of 1 power per throw, causing them to\nleave a trail of electricity that can cause additional damage."
|
||||
},
|
||||
{
|
||||
"id" : "bio_probability_travel",
|
||||
"name" : "Probability Travel",
|
||||
"cost" : 1,
|
||||
"time" : 100,
|
||||
"flags" : ["ACTIVE"],
|
||||
"description": "Increases your body's wavelength, allowing you to quantum tunnel through\nwalls, reappearing on the other side. Power drain in standby is minimal,\nbut each tile tunneled through costs 10 bionic power."
|
||||
},
|
||||
{
|
||||
"id" : "bio_shockwave",
|
||||
"name" : "Shockwave Generator",
|
||||
"cost" : 10,
|
||||
"time" : 0,
|
||||
"flags" : ["ACTIVE"],
|
||||
"description": "You generate a powerful shockwave, knocking back all nearby creatures.\nTargets are stunned briefly, take damage and additional stun upon impact\nwith impassable terrain, and knockback any creatures they collide with."
|
||||
},
|
||||
{
|
||||
"id" : "bio_chain_lightning",
|
||||
"name" : "Chain Lightning",
|
||||
"cost" : 5,
|
||||
"time" : 0,
|
||||
"flags" : ["ACTIVE"],
|
||||
"description": "Your body is equipped with a chain lightning generator, allowing you to\n emit a blast of lightning at a target, leaving a trail of lightning in\n its wake, jumping to additional targets within 4 tiles of the previous target."
|
||||
},
|
||||
{
|
||||
"id" : "bio_night",
|
||||
"name" : "Artificial Night Generator",
|
||||
"cost" : 1,
|
||||
"time" : 2,
|
||||
"flags" : ["ACTIVE"],
|
||||
"description": "Destructive interference eliminates all light within a 15 tile radius."
|
||||
},
|
||||
{
|
||||
"id" : "bio_dis_shock",
|
||||
"name" : "Electrical Discharge",
|
||||
"cost" : 0,
|
||||
"time" : 0,
|
||||
"flags" : ["FAULTY"],
|
||||
"description": "A malfunctioning bionic which occasionally discharges electricity through\nyour body, causing pain and brief paralysis but no damage."
|
||||
},
|
||||
{
|
||||
"id" : "bio_dis_acid",
|
||||
"name" : "Acidic Discharge",
|
||||
"cost" : 0,
|
||||
"time" : 0,
|
||||
"flags" : ["FAULTY"],
|
||||
"description": "A malfunctioning bionic which occasionally discharges acid into your muscles,\ncausing sharp pain and minor damage."
|
||||
},
|
||||
{
|
||||
"id" : "bio_drain",
|
||||
"name" : "Electrical Drain",
|
||||
"cost" : 0,
|
||||
"time" : 0,
|
||||
"flags" : ["FAULTY"],
|
||||
"description": "A malfunctioning bionic. It doesn't perform any useful function, but will\noccasionally draw power from your batteries."
|
||||
},
|
||||
{
|
||||
"id" : "bio_noise",
|
||||
"name" : "Noisemaker",
|
||||
"cost" : 0,
|
||||
"time" : 0,
|
||||
"flags" : ["FAULTY"],
|
||||
"description": "A malfunctioning bionic. It will occasionally emit a loud burst of noise."
|
||||
},
|
||||
{
|
||||
"id" : "bio_power_weakness",
|
||||
"name" : "Power Overload",
|
||||
"cost" : 0,
|
||||
"time" : 0,
|
||||
"flags" : ["FAULTY"],
|
||||
"description": "Damaged power circuits cause short-circuiting inside your muscles when your\nbatteries are above 75%%%% capacity, causing greatly reduced strength. This\nhas no effect if you have no internal batteries."
|
||||
},
|
||||
{
|
||||
"id" : "bio_stiff",
|
||||
"name" : "Wire-induced Stiffness",
|
||||
"cost" : 0,
|
||||
"time" : 0,
|
||||
"flags" : ["FAULTY"],
|
||||
"description": "Improperly installed wires cause a physical stiffness in most of your body,\ncausing increased encumberance."
|
||||
}
|
||||
]
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,829 @@
|
||||
[
|
||||
{
|
||||
"type" : "AMMO",
|
||||
"id" : "arrowhead",
|
||||
"rarity" : 0,
|
||||
"price" : 30,
|
||||
"name" : "arrowhead",
|
||||
"symbol" : "=",
|
||||
"color" : "light_gray",
|
||||
"description" : "Heads for an arrow. Placing these on an arrow will make the arrow more damaging and piercing.",
|
||||
"material" : "steel",
|
||||
"volume" : 1,
|
||||
"weight" : 1,
|
||||
"bashing" : 1,
|
||||
"cutting" : 0,
|
||||
"to_hit" : 0,
|
||||
"ammo_type" : "NULL",
|
||||
"damage" : 0,
|
||||
"pierce" : 0,
|
||||
"range" : 0,
|
||||
"dispersion" : 0,
|
||||
"recoil" : 0,
|
||||
"count" : 10
|
||||
},
|
||||
{
|
||||
"type" : "AMMO",
|
||||
"id" : "fletching",
|
||||
"rarity" : 0,
|
||||
"price" : 30,
|
||||
"name" : "fletching",
|
||||
"symbol" : "=",
|
||||
"color" : "white",
|
||||
"description" : "Also known as a flight, this item provides aerodynamic stabilization of arrows.",
|
||||
"material" : "leather",
|
||||
"volume" : 1,
|
||||
"weight" : 1,
|
||||
"bashing" : 1,
|
||||
"cutting" : 0,
|
||||
"to_hit" : 0,
|
||||
"ammo_type" : "NULL",
|
||||
"damage" : 0,
|
||||
"pierce" : 0,
|
||||
"range" : 0,
|
||||
"dispersion" : 0,
|
||||
"recoil" : 0,
|
||||
"count" : 10
|
||||
},
|
||||
{
|
||||
"type" : "AMMO",
|
||||
"id" : "shaft_wood",
|
||||
"rarity" : 0,
|
||||
"price" : 20,
|
||||
"name" : "wood arrow shaft",
|
||||
"symbol" : "=",
|
||||
"color" : "green",
|
||||
"description" : "A crude shaft made from wood. It needs arrowheads and fletching to become a functional arrow. You can, however, fire it from a bow.",
|
||||
"material" : "wood",
|
||||
"volume" : 1,
|
||||
"weight" : 12,
|
||||
"bashing" : 1,
|
||||
"cutting" : 0,
|
||||
"to_hit" : 0,
|
||||
"ammo_type" : "arrow",
|
||||
"damage" : 0,
|
||||
"pierce" : 0,
|
||||
"range" : 0,
|
||||
"dispersion" : 34,
|
||||
"recoil" : 0,
|
||||
"count" : 10
|
||||
},
|
||||
{
|
||||
"type" : "AMMO",
|
||||
"id" : "shaft_wood_heavy",
|
||||
"rarity" : 0,
|
||||
"price" : 20,
|
||||
"name" : "heavy wood arrow shaft",
|
||||
"symbol" : "=",
|
||||
"color" : "green",
|
||||
"description" : "A heavy shaft made from wood. It needs arrowheads and fletching to become a functional arrow. You can, however, fire it from a bow.",
|
||||
"material" : "wood",
|
||||
"volume" : 1,
|
||||
"weight" : 14,
|
||||
"bashing" : 2,
|
||||
"cutting" : 0,
|
||||
"to_hit" : 0,
|
||||
"ammo_type" : "arrow",
|
||||
"damage" : 2,
|
||||
"pierce" : 0,
|
||||
"range" : 1,
|
||||
"dispersion" : 29,
|
||||
"recoil" : 0,
|
||||
"count" : 10
|
||||
},
|
||||
{
|
||||
"type" : "AMMO",
|
||||
"id" : "shaft_metal",
|
||||
"rarity" : 0,
|
||||
"price" : 20,
|
||||
"name" : "metal arrow shaft",
|
||||
"symbol" : "=",
|
||||
"color" : "green",
|
||||
"description" : "A heavy shaft made from scrap metal. It needs arrowheads and fletching to become a functional arrow. You can, however, fire it from a bow.",
|
||||
"material" : "steel",
|
||||
"volume" : 1,
|
||||
"weight" : 19,
|
||||
"bashing" : 3,
|
||||
"cutting" : 0,
|
||||
"to_hit" : 0,
|
||||
"ammo_type" : "arrow",
|
||||
"damage" : 3,
|
||||
"pierce" : 0,
|
||||
"range" : 3,
|
||||
"dispersion" : 24,
|
||||
"recoil" : 0,
|
||||
"count" : 10
|
||||
},
|
||||
{
|
||||
"type" : "AMMO",
|
||||
"id" : "arrow_fire_hardened",
|
||||
"rarity" : 0,
|
||||
"price" : 25,
|
||||
"name" : "fire hardened wood arrow",
|
||||
"symbol" : "=",
|
||||
"color" : "green",
|
||||
"description" : "A simple arrow shaft that has had a point carved into it and then fire hardened.",
|
||||
"material" : "wood",
|
||||
"volume" : 1,
|
||||
"weight" : 12,
|
||||
"bashing" : 2,
|
||||
"cutting" : 0,
|
||||
"to_hit" : 0,
|
||||
"ammo_type" : "arrow",
|
||||
"damage" : 3,
|
||||
"pierce" : 0,
|
||||
"range" : 2,
|
||||
"dispersion" : 29,
|
||||
"recoil" : 0,
|
||||
"count" : 10
|
||||
},
|
||||
{
|
||||
"type" : "AMMO",
|
||||
"id" : "arrow_field_point",
|
||||
"rarity" : 0,
|
||||
"price" : 30,
|
||||
"name" : "field point wood arrow",
|
||||
"symbol" : "=",
|
||||
"color" : "green",
|
||||
"description" : "A simple arrow shaft that has a crude arrow head. Useful for hunting small woodland creatures.",
|
||||
"material" : "wood",
|
||||
"volume" : 1,
|
||||
"weight" : 13,
|
||||
"bashing" : 3,
|
||||
"cutting" : 0,
|
||||
"to_hit" : 0,
|
||||
"ammo_type" : "arrow",
|
||||
"damage" : 6,
|
||||
"pierce" : 1,
|
||||
"range" : 2,
|
||||
"dispersion" : 29,
|
||||
"recoil" : 0,
|
||||
"count" : 10
|
||||
},
|
||||
{
|
||||
"type" : "AMMO",
|
||||
"id" : "arrow_small_game",
|
||||
"rarity" : 0,
|
||||
"price" : 30,
|
||||
"name" : "small game arrow",
|
||||
"symbol" : "=",
|
||||
"color" : "green",
|
||||
"description" : "A simple arrow shaft that has a wide blunt head. Useful for hunting small woodland creatures without splattering them all over the ground.",
|
||||
"material" : "wood",
|
||||
"volume" : 1,
|
||||
"weight" : 13,
|
||||
"bashing" : 4,
|
||||
"cutting" : 0,
|
||||
"to_hit" : 0,
|
||||
"ammo_type" : "arrow",
|
||||
"damage" : 2,
|
||||
"pierce" : 0,
|
||||
"range" : 2,
|
||||
"dispersion" : 29,
|
||||
"recoil" : 0,
|
||||
"count" : 10,
|
||||
"flags" : ["NOGIB"]
|
||||
},
|
||||
{
|
||||
"type" : "AMMO",
|
||||
"id" : "arrow_fire_hardened_fletched",
|
||||
"rarity" : 0,
|
||||
"price" : 35,
|
||||
"name" : "fletched fire hardened wood arrow",
|
||||
"symbol" : "=",
|
||||
"color" : "green",
|
||||
"description" : "This simple arrow has a fire hardened point and some fletchings.",
|
||||
"material" : "wood",
|
||||
"volume" : 1,
|
||||
"weight" : 13,
|
||||
"bashing" : 3,
|
||||
"cutting" : 0,
|
||||
"to_hit" : 0,
|
||||
"ammo_type" : "arrow",
|
||||
"damage" : 4,
|
||||
"pierce" : 0,
|
||||
"range" : 6,
|
||||
"dispersion" : 14,
|
||||
"recoil" : 0,
|
||||
"count" : 10
|
||||
},
|
||||
{
|
||||
"type" : "AMMO",
|
||||
"id" : "arrow_field_point_fletched",
|
||||
"rarity" : 0,
|
||||
"price" : 40,
|
||||
"name" : "fletched field point wood arrow",
|
||||
"symbol" : "=",
|
||||
"color" : "green",
|
||||
"description" : "A simple arrow shaft that has a crude arrow head and some fletchings. Useful for hunting small woodland creatures or as a last ditch defense against zombies.",
|
||||
"material" : "wood",
|
||||
"volume" : 1,
|
||||
"weight" : 14,
|
||||
"bashing" : 3,
|
||||
"cutting" : 0,
|
||||
"to_hit" : 0,
|
||||
"ammo_type" : "arrow",
|
||||
"damage" : 7,
|
||||
"pierce" : 2,
|
||||
"range" : 6,
|
||||
"dispersion" : 14,
|
||||
"recoil" : 0,
|
||||
"count" : 10
|
||||
},
|
||||
{
|
||||
"type" : "AMMO",
|
||||
"id" : "arrow_wood",
|
||||
"rarity" : 7,
|
||||
"price" : 75,
|
||||
"name" : "wood arrow",
|
||||
"symbol" : "=",
|
||||
"color" : "green",
|
||||
"description" : "A basic wooden arrow, it has a metal arrow head and some fletchings. It's light-weight, does some damage, and is so-so on accuracy. Stands a good chance of remaining intact once fired.",
|
||||
"material" : "wood",
|
||||
"volume" : 1,
|
||||
"weight" : 15,
|
||||
"bashing" : 2,
|
||||
"cutting" : 1,
|
||||
"to_hit" : 0,
|
||||
"ammo_type" : "arrow",
|
||||
"damage" : 10,
|
||||
"pierce" : 3,
|
||||
"range" : 7,
|
||||
"dispersion" : 9,
|
||||
"recoil" : 0,
|
||||
"count" : 10
|
||||
},
|
||||
{
|
||||
"type" : "AMMO",
|
||||
"id" : "arrow_heavy_fire_hardened_fletched",
|
||||
"rarity" : 7,
|
||||
"price" : 75,
|
||||
"name" : "heavy fletched fire hardened arrow",
|
||||
"symbol" : "=",
|
||||
"color" : "green",
|
||||
"description" : "This arrow is significantly sturdier than other wooden arrows. It has a firehardened point and some fletchings.",
|
||||
"material" : "plastic",
|
||||
"volume" : 1,
|
||||
"weight" : 19,
|
||||
"bashing" : 4,
|
||||
"cutting" : 0,
|
||||
"to_hit" : 0,
|
||||
"ammo_type" : "arrow",
|
||||
"damage" : 5,
|
||||
"pierce" : 2,
|
||||
"range" : 7,
|
||||
"dispersion" : 9,
|
||||
"recoil" : 0,
|
||||
"count" : 10
|
||||
},
|
||||
{
|
||||
"type" : "AMMO",
|
||||
"id" : "arrow_heavy_field_point_fletched",
|
||||
"rarity" : 7,
|
||||
"price" : 75,
|
||||
"name" : "heavy fletched field point arrow",
|
||||
"symbol" : "=",
|
||||
"color" : "green",
|
||||
"description" : "This arrow is significantly sturdier than other wooden arrows. It has a crude field point head and some fletchings.",
|
||||
"material" : "plastic",
|
||||
"volume" : 1,
|
||||
"weight" : 20,
|
||||
"bashing" : 4,
|
||||
"cutting" : 0,
|
||||
"to_hit" : 0,
|
||||
"ammo_type" : "arrow",
|
||||
"damage" : 6,
|
||||
"pierce" : 3,
|
||||
"range" : 7,
|
||||
"dispersion" : 9,
|
||||
"recoil" : 0,
|
||||
"count" : 10
|
||||
},
|
||||
{
|
||||
"type" : "AMMO",
|
||||
"id" : "arrow_wood_heavy",
|
||||
"rarity" : 7,
|
||||
"price" : 75,
|
||||
"name" : "heavy wood arrow",
|
||||
"symbol" : "=",
|
||||
"color" : "green",
|
||||
"description" : "A heavy wooden arrow, it has a metal arrow head and some fletchings. It's much heavier than other wooden arrows, as a result it does more damage and is more stable in flight, resulting in better accuracy over a longer range. Stands a very good chance of remaining intact once fired.",
|
||||
"material" : "plastic",
|
||||
"volume" : 1,
|
||||
"weight" : 22,
|
||||
"bashing" : 6,
|
||||
"cutting" : 2,
|
||||
"to_hit" : 0,
|
||||
"ammo_type" : "arrow",
|
||||
"damage" : 12,
|
||||
"pierce" : 5,
|
||||
"range" : 8,
|
||||
"dispersion" : 4,
|
||||
"recoil" : 0,
|
||||
"count" : 10
|
||||
},
|
||||
{
|
||||
"type" : "AMMO",
|
||||
"id" : "arrow_metal_sharpened",
|
||||
"rarity" : 7,
|
||||
"price" : 50,
|
||||
"name" : "sharpened metal arrow",
|
||||
"symbol" : "=",
|
||||
"color" : "green",
|
||||
"description" : "This metal shaft has been carefully sharpened so that it has a crude point at the end.",
|
||||
"material" : "steel",
|
||||
"volume" : 1,
|
||||
"weight" : 19,
|
||||
"bashing" : 2,
|
||||
"cutting" : 0,
|
||||
"to_hit" : 0,
|
||||
"ammo_type" : "arrow",
|
||||
"damage" : 5,
|
||||
"pierce" : 3,
|
||||
"range" : 5,
|
||||
"dispersion" : 19,
|
||||
"recoil" : 0,
|
||||
"count" : 10
|
||||
},
|
||||
{
|
||||
"type" : "AMMO",
|
||||
"id" : "arrow_metal",
|
||||
"rarity" : 7,
|
||||
"price" : 100,
|
||||
"name" : "metal arrow",
|
||||
"symbol" : "=",
|
||||
"color" : "green",
|
||||
"description" : "This metal arrow has a steel arrow head and some fletchings.",
|
||||
"material" : "steel",
|
||||
"volume" : 1,
|
||||
"weight" : 21,
|
||||
"bashing" : 3,
|
||||
"cutting" : 2,
|
||||
"to_hit" : 0,
|
||||
"ammo_type" : "arrow",
|
||||
"damage" : 14,
|
||||
"pierce" : 7,
|
||||
"range" : 10,
|
||||
"dispersion" : 4,
|
||||
"recoil" : 0,
|
||||
"count" : 10
|
||||
},
|
||||
{
|
||||
"type" : "AMMO",
|
||||
"id" : "arrow_cf",
|
||||
"rarity" : 5,
|
||||
"price" : 150,
|
||||
"name" : "carbon fiber arrow",
|
||||
"symbol" : "=",
|
||||
"color" : "green",
|
||||
"description" : "High-tech carbon fiber shafts and 100 grain broadheads. Very light weight, fast, and notoriously fragile.",
|
||||
"material" : "plastic",
|
||||
"volume" : 2,
|
||||
"weight" : 15,
|
||||
"bashing" : 1,
|
||||
"cutting" : 0,
|
||||
"to_hit" : 0,
|
||||
"ammo_type" : "arrow",
|
||||
"damage" : 10,
|
||||
"pierce" : 5,
|
||||
"range" : 8,
|
||||
"dispersion" : 9,
|
||||
"recoil" : 0,
|
||||
"count" : 8
|
||||
},
|
||||
{
|
||||
"type" : "AMMO",
|
||||
"id" : "arrow_exploding",
|
||||
"rarity" : 5,
|
||||
"price" : 350,
|
||||
"name" : "exploding arrow",
|
||||
"symbol" : "=",
|
||||
"color" : "green",
|
||||
"description" : "This arrow has a small IED strapped to its tip. Horribly inaccurate, heavy, and bulky, not only does this contraption require expert hands to pull off a shot, it requires one to loose this with a small measure of confidence the shooter won't be caught in the blast radius.",
|
||||
"material" : "steel",
|
||||
"volume" : 2,
|
||||
"weight" : 40,
|
||||
"bashing" : 2,
|
||||
"cutting" : 0,
|
||||
"to_hit" : 0,
|
||||
"ammo_type" : "arrow",
|
||||
"damage" : 15,
|
||||
"pierce" : 9,
|
||||
"range" : 5,
|
||||
"dispersion" : 19,
|
||||
"recoil" : 0,
|
||||
"count" : 5,
|
||||
"effects" : ["EXPLOSIVE"]
|
||||
},
|
||||
{
|
||||
"id" : "exploding_arrow_warhead",
|
||||
"symbol" : "=",
|
||||
"color" : "green",
|
||||
"name" : "exploding arrowhead",
|
||||
"description" : "This simple IED is designed to be attached to an arrow and detonate on impact. Theoretically you could throw it but who would want to do that?",
|
||||
"rarity" : 3,
|
||||
"price" : 400,
|
||||
"material" : "iron",
|
||||
"weight" : 10,
|
||||
"volume" : 1,
|
||||
"bashing" : 10,
|
||||
"cutting" : 0,
|
||||
"to_hit" : -1,
|
||||
"count" : 5,
|
||||
"effects" : ["EXPLOSIVE"]
|
||||
},
|
||||
{
|
||||
"type" : "AMMO",
|
||||
"id" : "arrow_flamming",
|
||||
"rarity" : 5,
|
||||
"price" : 350,
|
||||
"name" : "flaming arrow",
|
||||
"symbol" : "=",
|
||||
"color" : "green",
|
||||
"description" : "This arrow has a flaming rag wrapped around the shaft near the head. You should shoot it soon before it burns your bow.",
|
||||
"material" : "steel",
|
||||
"volume" : 2,
|
||||
"weight" : 40,
|
||||
"bashing" : 2,
|
||||
"cutting" : 0,
|
||||
"to_hit" : 0,
|
||||
"ammo_type" : "arrow",
|
||||
"damage" : 15,
|
||||
"pierce" : 9,
|
||||
"range" : 5,
|
||||
"dispersion" : 19,
|
||||
"recoil" : 0,
|
||||
"count" : 5,
|
||||
"effects" : ["IGNITE"]
|
||||
},
|
||||
{
|
||||
"type" : "AMMO",
|
||||
"id" : "bolt_wood",
|
||||
"rarity" : 8,
|
||||
"price" : 100,
|
||||
"name" : "wood crossbow bolt",
|
||||
"symbol" : "=",
|
||||
"color" : "green",
|
||||
"description" : "A sharpened bolt carved from wood. It's lighter than a steel bolt, but does less damage and is less accurate. Stands a good chance of remaining intact once fired.",
|
||||
"material" : "wood",
|
||||
"volume" : 1,
|
||||
"weight" : 40,
|
||||
"bashing" : 1,
|
||||
"cutting" : 0,
|
||||
"to_hit" : 0,
|
||||
"ammo_type" : "bolt",
|
||||
"damage" : 10,
|
||||
"pierce" : 1,
|
||||
"range" : 0,
|
||||
"dispersion" : 10,
|
||||
"recoil" : 0,
|
||||
"count" : 15
|
||||
},
|
||||
{
|
||||
"type" : "AMMO",
|
||||
"id" : "bolt_steel",
|
||||
"rarity" : 7,
|
||||
"price" : 400,
|
||||
"name" : "steel crossbow bolt",
|
||||
"symbol" : "=",
|
||||
"color" : "green",
|
||||
"description" : "A sharp bolt made from steel. Deadly in skilled hands. Stands an excellent chance of remaining intact once fired.",
|
||||
"material" : "steel",
|
||||
"volume" : 1,
|
||||
"weight" : 25,
|
||||
"bashing" : 5,
|
||||
"cutting" : 0,
|
||||
"to_hit" : 0,
|
||||
"ammo_type" : "bolt",
|
||||
"damage" : 20,
|
||||
"pierce" : 10,
|
||||
"range" : 6,
|
||||
"dispersion" : 9,
|
||||
"recoil" : 0,
|
||||
"count" : 10
|
||||
},
|
||||
{
|
||||
"id" : "selfbow",
|
||||
"type" : "GUN",
|
||||
"symbol" : "(",
|
||||
"color" : "yellow",
|
||||
"name" : "self bow",
|
||||
"description" : "A bow made from a single piece of wood. It is made specifically for the person using it.",
|
||||
"rarity" : 5,
|
||||
"price" : 400,
|
||||
"material" : "wood",
|
||||
"flags" : ["ALWAYS_TWOHAND", "RELOAD_AND_SHOOT"],
|
||||
"skill" : "archery",
|
||||
"ammo" : "arrow",
|
||||
"weight" : 8,
|
||||
"volume" : 12,
|
||||
"bashing" : 6,
|
||||
"cutting" : 0,
|
||||
"to_hit" : 0,
|
||||
"ranged_damage" : 4,
|
||||
"range" : 5,
|
||||
"dispersion" : 20,
|
||||
"recoil" : 0,
|
||||
"durability" : 6,
|
||||
"burst" : 0,
|
||||
"clip_size" : 1,
|
||||
"reload" : 70
|
||||
},
|
||||
{
|
||||
"id" : "shortbow",
|
||||
"type" : "GUN",
|
||||
"symbol" : "(",
|
||||
"color" : "yellow",
|
||||
"name" : "short bow",
|
||||
"description" : "A shorter bow than the longbow, easier to draw than the longbow but sacrifices power. Arrows fired from this weapon have a good chance of remaining intact for re-use. It requires 8 strength to fire",
|
||||
"rarity" : 5,
|
||||
"price" : 800,
|
||||
"material" : "wood",
|
||||
"flags" : ["ALWAYS_TWOHAND", "STR8_DRAW", "RELOAD_AND_SHOOT"],
|
||||
"skill" : "archery",
|
||||
"ammo" : "arrow",
|
||||
"weight" : 3,
|
||||
"volume" : 6,
|
||||
"bashing" : 6,
|
||||
"cutting" : 0,
|
||||
"to_hit" : 0,
|
||||
"ranged_damage" : 3,
|
||||
"range" : 6,
|
||||
"dispersion" : 14,
|
||||
"recoil" : 0,
|
||||
"durability" : 6,
|
||||
"burst" : 0,
|
||||
"clip_size" : 1,
|
||||
"reload" : 60
|
||||
},
|
||||
{
|
||||
"id" : "compbow",
|
||||
"type" : "GUN",
|
||||
"symbol" : "(",
|
||||
"color" : "yellow",
|
||||
"name" : "compound bow",
|
||||
"description" : "A bow with cams that fires high velocity arrows. Weaker people can use compound bows more easily. Arrows fired from this weapon have a good chance of remaining intact for re-use. It requires 8 strength to fire",
|
||||
"rarity" : 1,
|
||||
"price" : 1800,
|
||||
"material" : ["steel", "plastic"],
|
||||
"flags" : ["ALWAYS_TWOHAND", "STR8_DRAW", "RELOAD_AND_SHOOT"],
|
||||
"skill" : "archery",
|
||||
"ammo" : "arrow",
|
||||
"weight" : 8,
|
||||
"volume" : 8,
|
||||
"bashing" : 8,
|
||||
"cutting" : 0,
|
||||
"to_hit" : 1,
|
||||
"ranged_damage" : 5,
|
||||
"range" : 10,
|
||||
"dispersion" : 12,
|
||||
"recoil" : 0,
|
||||
"durability" : 6,
|
||||
"burst" : 0,
|
||||
"clip_size" : 1,
|
||||
"reload" : 100
|
||||
},
|
||||
{
|
||||
"id" : "compositebow",
|
||||
"type" : "GUN",
|
||||
"symbol" : "(",
|
||||
"color" : "yellow",
|
||||
"name" : "composite bow",
|
||||
"description" : "A bow made from more than one material so it is able to store more energy. Arrows fired from this weapon have a good chance of remaining intact for re-use. It requires 10 strength to fire",
|
||||
"rarity" : 3,
|
||||
"price" : 1200,
|
||||
"material" : ["wood", "plastic"],
|
||||
"flags" : ["ALWAYS_TWOHAND", "STR10_DRAW", "RELOAD_AND_SHOOT"],
|
||||
"skill" : "archery",
|
||||
"ammo" : "arrow",
|
||||
"weight" : 6,
|
||||
"volume" : 10,
|
||||
"bashing" : 8,
|
||||
"cutting" : 0,
|
||||
"to_hit" : 0,
|
||||
"ranged_damage" : 7,
|
||||
"range" : 12,
|
||||
"dispersion" : 10,
|
||||
"recoil" : 0,
|
||||
"durability" : 6,
|
||||
"burst" : 0,
|
||||
"clip_size" : 1,
|
||||
"reload" : 110
|
||||
},
|
||||
{
|
||||
"id" : "recurbow",
|
||||
"type" : "GUN",
|
||||
"symbol" : "(",
|
||||
"color" : "yellow",
|
||||
"name" : "recurve bow",
|
||||
"description" : "A bow that curves away from the archer at the tips allowing more power to be stored in the bow. Arrows fired from this weapon have a good chance of remaining intact for re-use. It requires 10 strength to fire",
|
||||
"rarity" : 2,
|
||||
"price" : 1200,
|
||||
"material" : ["steel", "plastic"],
|
||||
"flags" : ["ALWAYS_TWOHAND", "STR10_DRAW", "RELOAD_AND_SHOOT"],
|
||||
"skill" : "archery",
|
||||
"ammo" : "arrow",
|
||||
"weight" : 6,
|
||||
"volume" : 10,
|
||||
"bashing" : 12,
|
||||
"cutting" : 0,
|
||||
"to_hit" : 0,
|
||||
"ranged_damage" : 9,
|
||||
"range" : 14,
|
||||
"dispersion" : 8,
|
||||
"recoil" : 0,
|
||||
"durability" : 6,
|
||||
"burst" : 0,
|
||||
"clip_size" : 1,
|
||||
"reload" : 100
|
||||
},
|
||||
{
|
||||
"id" : "reflexbow",
|
||||
"type" : "GUN",
|
||||
"symbol" : "(",
|
||||
"color" : "yellow",
|
||||
"name" : "reflex bow",
|
||||
"description" : "A bow that has limbs which curve away from the archer sacrificing accuracy for power. Arrows fired from this weapon have a good chance of remaining intact for re-use. It requires 10 strength to fire",
|
||||
"rarity" : 2,
|
||||
"price" : 1200,
|
||||
"material" : ["steel", "plastic"],
|
||||
"flags" : ["ALWAYS_TWOHAND", "STR10_DRAW", "RELOAD_AND_SHOOT"],
|
||||
"skill" : "archery",
|
||||
"ammo" : "arrow",
|
||||
"weight" : 6,
|
||||
"volume" : 10,
|
||||
"bashing" : 12,
|
||||
"cutting" : 0,
|
||||
"to_hit" : 0,
|
||||
"ranged_damage" : 11,
|
||||
"range" : 16,
|
||||
"dispersion" : 6,
|
||||
"recoil" : 0,
|
||||
"durability" : 6,
|
||||
"burst" : 0,
|
||||
"clip_size" : 1,
|
||||
"reload" : 100
|
||||
},
|
||||
{
|
||||
"id" : "longbow",
|
||||
"type" : "GUN",
|
||||
"symbol" : "(",
|
||||
"color" : "yellow",
|
||||
"name" : "longbow",
|
||||
"description" : "A six-foot wooden bow that fires arrows. This takes a fair amount of strength to draw. Arrows fired from this weapon have a good chance of remaining intact for re-use. It requires 10 strength to fire",
|
||||
"rarity" : 5,
|
||||
"price" : 800,
|
||||
"material" : "wood",
|
||||
"flags" : ["ALWAYS_TWOHAND", "STR10_DRAW", "RELOAD_AND_SHOOT"],
|
||||
"skill" : "archery",
|
||||
"ammo" : "arrow",
|
||||
"weight" : 4,
|
||||
"volume" : 8,
|
||||
"bashing" : 10,
|
||||
"cutting" : 0,
|
||||
"to_hit" : 0,
|
||||
"ranged_damage" : 7,
|
||||
"range" : 20,
|
||||
"dispersion" : 18,
|
||||
"recoil" : 0,
|
||||
"durability" : 6,
|
||||
"burst" : 0,
|
||||
"clip_size" : 1,
|
||||
"reload" : 80
|
||||
},
|
||||
{
|
||||
"id" : "reflexrecurvebow",
|
||||
"type" : "GUN",
|
||||
"symbol" : "(",
|
||||
"color" : "yellow",
|
||||
"name" : "reflex recurve bow",
|
||||
"description" : "A bow that combines the traits from both the reflex and the recurve bows. Both the limbs and the tips curve away from the archer. This dramatically increases the power while increasing the strength to draw the bow significantly. It requires 12 strength to fire efficiently.",
|
||||
"rarity" : 2,
|
||||
"price" : 1200,
|
||||
"material" : ["wood", "bone"],
|
||||
"flags" : ["ALWAYS_TWOHAND", "STR12_DRAW", "RELOAD_AND_SHOOT"],
|
||||
"skill" : "archery",
|
||||
"ammo" : "arrow",
|
||||
"weight" : 4,
|
||||
"volume" : 5,
|
||||
"bashing" : 12,
|
||||
"cutting" : 0,
|
||||
"to_hit" : 0,
|
||||
"ranged_damage" : 15,
|
||||
"range" : 18,
|
||||
"dispersion" : 8,
|
||||
"recoil" : 0,
|
||||
"durability" : 6,
|
||||
"burst" : 0,
|
||||
"clip_size" : 1,
|
||||
"reload" : 80
|
||||
},
|
||||
{
|
||||
"id" : "hand_crossbow",
|
||||
"type" : "GUN",
|
||||
"symbol" : "(",
|
||||
"color" : "green",
|
||||
"name" : "pistol crossbow",
|
||||
"description" : "A small concealable pistol like crossbow. It is weak due to it's small size and draw, good for hunting small game. Bolts fired from this weapon have a good chance of remaining intact for re-use.",
|
||||
"rarity" : 1,
|
||||
"price" : 1000,
|
||||
"material" : ["iron", "wood"],
|
||||
"flags" : "none",
|
||||
"skill" : "archery",
|
||||
"ammo" : "bolt",
|
||||
"weight" : 5,
|
||||
"volume" : 4,
|
||||
"bashing" : 4,
|
||||
"cutting" : 0,
|
||||
"to_hit" : -0,
|
||||
"ranged_damage" : -6,
|
||||
"range" : 6,
|
||||
"dispersion" : 12,
|
||||
"recoil" : 0,
|
||||
"durability" : 6,
|
||||
"burst" : 0,
|
||||
"clip_size" : 1,
|
||||
"reload" : 100
|
||||
},
|
||||
{
|
||||
"id" : "crossbow",
|
||||
"type" : "GUN",
|
||||
"symbol" : "(",
|
||||
"color" : "green",
|
||||
"name" : "crossbow",
|
||||
"description" : "A slow-loading hand weapon that launches bolts. Stronger people can reload it much faster. Bolts fired from this weapon have a good chance of remaining intact for re-use.",
|
||||
"rarity" : 2,
|
||||
"price" : 1000,
|
||||
"material" : ["iron", "wood"],
|
||||
"flags" : "STR_RELOAD",
|
||||
"skill" : "archery",
|
||||
"ammo" : "bolt",
|
||||
"weight" : 9,
|
||||
"volume" : 6,
|
||||
"bashing" : 11,
|
||||
"cutting" : 0,
|
||||
"to_hit" : 1,
|
||||
"ranged_damage" : 0,
|
||||
"range" : 10,
|
||||
"dispersion" : 10,
|
||||
"recoil" : 0,
|
||||
"durability" : 6,
|
||||
"burst" : 0,
|
||||
"clip_size" : 1,
|
||||
"reload" : 800
|
||||
},
|
||||
{
|
||||
"id" : "huge_crossbow",
|
||||
"type" : "GUN",
|
||||
"symbol" : "(",
|
||||
"color" : "green",
|
||||
"name" : "Ganz-Rustung",
|
||||
"description" : "A HUGE very slow-loading medieval crossbow from Germany. It's tension is so powerful that you feel it shake after firing. Un-skilled users will find it very hard to reload. Bolts fired from this weapon have a good chance of remaining intact for re-use.",
|
||||
"rarity" : 2,
|
||||
"price" : 1000,
|
||||
"material" : ["iron", "wood"],
|
||||
"flags" : ["ALWAYS_TWOHAND", "STR_RELOAD"],
|
||||
"skill" : "archery",
|
||||
"ammo" : "bolt",
|
||||
"weight" : 60,
|
||||
"volume" : 40,
|
||||
"bashing" : 20,
|
||||
"cutting" : 0,
|
||||
"to_hit" : -1,
|
||||
"ranged_damage" : 30,
|
||||
"range" : 30,
|
||||
"dispersion" : 22,
|
||||
"recoil" : 30,
|
||||
"durability" : 6,
|
||||
"burst" : 0,
|
||||
"clip_size" : 1,
|
||||
"reload" : 6000
|
||||
},
|
||||
{
|
||||
"id" : "rep_crossbow",
|
||||
"type" : "GUN",
|
||||
"symbol" : "(",
|
||||
"color" : "green",
|
||||
"name" : "repeating crossbow",
|
||||
"description" : "A custom made mechanical large crossbow, with a wooden magazine that holds 10 bolts. Single bolt reload. Bolts fired from this weapon have a good chance of remaining intact for re-use.",
|
||||
"rarity" : 1,
|
||||
"price" : 1000,
|
||||
"material" : ["iron", "wood"],
|
||||
"flags" : ["ALWAYS_TWOHAND", "RELOAD_ONE", "MODE_BURST"],
|
||||
"skill" : "archery",
|
||||
"ammo" : "bolt",
|
||||
"weight" : 16,
|
||||
"volume" : 10,
|
||||
"bashing" : 13,
|
||||
"cutting" : 0,
|
||||
"to_hit" : -1,
|
||||
"ranged_damage" : -2,
|
||||
"range" : 8,
|
||||
"dispersion" : 22,
|
||||
"recoil" : 15,
|
||||
"durability" : 6,
|
||||
"burst" : 3,
|
||||
"clip_size" : 10,
|
||||
"reload" : 100
|
||||
}
|
||||
]
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,253 @@
|
||||
[
|
||||
{
|
||||
"id": "bag_plastic",
|
||||
"type": "CONTAINER",
|
||||
"symbol": ")",
|
||||
"color": "light_gray",
|
||||
"name": "plastic bag",
|
||||
"description": "A small, open plastic bag. Essentially trash.",
|
||||
"rarity": 90,
|
||||
"price": 1,
|
||||
"weight": 0,
|
||||
"volume": 1,
|
||||
"bashing": -4,
|
||||
"cutting": 0,
|
||||
"to_hit": -8,
|
||||
"contains": 24,
|
||||
"material": "plastic"
|
||||
},
|
||||
{
|
||||
"id": "bottle_plastic",
|
||||
"type": "CONTAINER",
|
||||
"symbol": ")",
|
||||
"color": "light_cyan",
|
||||
"name": "plastic bottle",
|
||||
"description": "A resealable plastic bottle, holds 500mls of liquid.",
|
||||
"rarity": 90,
|
||||
"price": 8,
|
||||
"weight": 0,
|
||||
"volume": 2,
|
||||
"bashing": -8,
|
||||
"cutting": 0,
|
||||
"to_hit": 1,
|
||||
"material": "plastic",
|
||||
"contains": 2,
|
||||
"flags": ["RIGID", "WATERTIGHT", "SEALS"]
|
||||
},
|
||||
{
|
||||
"id": "bottle_glass",
|
||||
"type": "CONTAINER",
|
||||
"symbol": ")",
|
||||
"color": "cyan",
|
||||
"name": "glass bottle",
|
||||
"description": "A resealable glass bottle, holds 750mls of liquid.",
|
||||
"rarity": 90,
|
||||
"price": 1,
|
||||
"weight": 2,
|
||||
"volume": 3,
|
||||
"bashing": -8,
|
||||
"cutting": 0,
|
||||
"to_hit": 1,
|
||||
"material": "glass",
|
||||
"contains": 3,
|
||||
"flags": ["RIGID", "WATERTIGHT", "SEALS"]
|
||||
},
|
||||
{
|
||||
"id": "can_drink",
|
||||
"type": "CONTAINER",
|
||||
"symbol": ")",
|
||||
"color": "light_blue",
|
||||
"name": "aluminum can",
|
||||
"description": "An aluminum can, like what soda comes in.",
|
||||
"rarity": 70,
|
||||
"price": 1,
|
||||
"weight": 0,
|
||||
"volume": 1,
|
||||
"bashing": 0,
|
||||
"cutting": 0,
|
||||
"to_hit": 0,
|
||||
"material": "steel",
|
||||
"contains": 1,
|
||||
"flags": ["RIGID", "WATERTIGHT"]
|
||||
},
|
||||
{
|
||||
"id": "can_food",
|
||||
"type": "CONTAINER",
|
||||
"symbol": ")",
|
||||
"color": "blue",
|
||||
"name": "tin can",
|
||||
"description": "A tin can, like what beans come in.",
|
||||
"rarity": 65,
|
||||
"price": 2,
|
||||
"weight": 0,
|
||||
"volume": 1,
|
||||
"bashing": -1,
|
||||
"cutting": 0,
|
||||
"to_hit": 1,
|
||||
"material": "iron",
|
||||
"contains": 1,
|
||||
"flags": ["RIGID", "WATERTIGHT"]
|
||||
},
|
||||
{
|
||||
"id": "box_small",
|
||||
"type": "CONTAINER",
|
||||
"symbol": ")",
|
||||
"color": "brown",
|
||||
"name": "sm. cardboard box",
|
||||
"description": "A small cardboard box. No bigger than a foot in dimension.",
|
||||
"rarity": 50,
|
||||
"price": 0,
|
||||
"weight": 0,
|
||||
"volume": 4,
|
||||
"bashing": -5,
|
||||
"cutting": 0,
|
||||
"to_hit": 1,
|
||||
"material": "paper",
|
||||
"contains": 4,
|
||||
"flags": ["RIGID"]
|
||||
},
|
||||
{
|
||||
"id": "canteen",
|
||||
"type": "CONTAINER",
|
||||
"symbol": ")",
|
||||
"color": "green",
|
||||
"name": "plastic canteen",
|
||||
"description": "A large military-style water canteen, with a 1.5 liter capacity and strap.",
|
||||
"rarity": 20,
|
||||
"price": 1000,
|
||||
"weight": 2,
|
||||
"volume": 6,
|
||||
"bashing": -8,
|
||||
"cutting": 0,
|
||||
"to_hit": 1,
|
||||
"material": "plastic",
|
||||
"contains": 6,
|
||||
"flags": ["RIGID", "SEALS", "WATERTIGHT"]
|
||||
},
|
||||
{
|
||||
"id": "jerrycan",
|
||||
"type": "CONTAINER",
|
||||
"symbol": ")",
|
||||
"color": "green",
|
||||
"name": "plastic jerrycan",
|
||||
"description": "A bulky plastic jerrycan, meant to carry fuel, but can carry other liquids\nin a pinch. It has a capacity of 10 liters.",
|
||||
"rarity": 10,
|
||||
"price": 2500,
|
||||
"weight": 4,
|
||||
"volume": 40,
|
||||
"bashing": -2,
|
||||
"cutting": 0,
|
||||
"to_hit": -2,
|
||||
"material": "plastic",
|
||||
"contains": 40,
|
||||
"flags": ["RIGID", "SEALS", "WATERTIGHT"]
|
||||
},
|
||||
{
|
||||
"id": "jug_plastic",
|
||||
"type": "CONTAINER",
|
||||
"symbol": ")",
|
||||
"color": "light_cyan",
|
||||
"name": "gallon jug",
|
||||
"description": "A standard plastic jug used for household cleaning chemicals.",
|
||||
"rarity": 10,
|
||||
"price": 2500,
|
||||
"weight": 2,
|
||||
"volume": 10,
|
||||
"bashing": -8,
|
||||
"cutting": 0,
|
||||
"to_hit": 1,
|
||||
"material": "plastic",
|
||||
"contains": 10,
|
||||
"flags": ["RIGID", "SEALS", "WATERTIGHT"]
|
||||
},
|
||||
{
|
||||
"id": "flask_glass",
|
||||
"type": "CONTAINER",
|
||||
"symbol": ")",
|
||||
"color": "light_cyan",
|
||||
"name": "glass flask",
|
||||
"description": "A 250 ml laboratory conical flask, with a rubber bung.",
|
||||
"rarity": 10,
|
||||
"price": 2500,
|
||||
"weight": 0,
|
||||
"volume": 1,
|
||||
"bashing": 8,
|
||||
"cutting": 0,
|
||||
"to_hit": 1,
|
||||
"material": "glass",
|
||||
"contains": 1,
|
||||
"flags": ["RIGID", "SEALS", "WATERTIGHT"]
|
||||
},
|
||||
{
|
||||
"id": "waterskin",
|
||||
"type": "CONTAINER",
|
||||
"symbol": ")",
|
||||
"color": "brown",
|
||||
"name": "waterskin",
|
||||
"description": "A watertight leather bag, can hold 1.5 liters of water.",
|
||||
"rarity": 0,
|
||||
"price": 0,
|
||||
"weight": 4,
|
||||
"volume": 6,
|
||||
"bashing": -8,
|
||||
"cutting": 0,
|
||||
"to_hit": -5,
|
||||
"material": "leather",
|
||||
"contains": 6,
|
||||
"flags": ["SEALS", "WATERTIGHT"]
|
||||
},
|
||||
{
|
||||
"id": "jerrycan_big",
|
||||
"type": "CONTAINER",
|
||||
"symbol": ")",
|
||||
"color": "green",
|
||||
"name": "steel jerrycan",
|
||||
"description": "A steel jerrycan, meant to carry fuel, but can carry other liquids\nin a pinch. It has a capacity of 25 liters.",
|
||||
"rarity": 20,
|
||||
"price": 5000,
|
||||
"weight": 7,
|
||||
"volume": 100,
|
||||
"bashing": -3,
|
||||
"cutting": 0,
|
||||
"to_hit": -3,
|
||||
"material": "steel",
|
||||
"contains": 100,
|
||||
"flags": ["RIGID", "SEALS", "WATERTIGHT"]
|
||||
},
|
||||
{
|
||||
"id": "keg",
|
||||
"type": "CONTAINER",
|
||||
"symbol": ")",
|
||||
"color": "light_cyan",
|
||||
"name": "aluminum keg",
|
||||
"description": "A reusable aluminum keg, used for shipping beer.\nIt has a capacity of 50 liters.",
|
||||
"rarity": 20,
|
||||
"price": 6000,
|
||||
"weight": 12,
|
||||
"volume": 200,
|
||||
"bashing": -4,
|
||||
"cutting": 0,
|
||||
"to_hit": -4,
|
||||
"material": "steel",
|
||||
"contains": 200,
|
||||
"flags": ["RIGID", "SEALS", "WATERTIGHT"]
|
||||
},
|
||||
{
|
||||
"id": "jar_glass",
|
||||
"type": "CONTAINER",
|
||||
"symbol": ")",
|
||||
"color": "light_cyan",
|
||||
"name": "glass jar",
|
||||
"description": "A half-litre glass jar with a metal screw top lid, used for canning.",
|
||||
"rarity": 50,
|
||||
"price": 2500,
|
||||
"weight": 1,
|
||||
"volume": 1,
|
||||
"bashing": 8,
|
||||
"cutting": 0,
|
||||
"to_hit": 1,
|
||||
"material": "glass",
|
||||
"contains": 1,
|
||||
"flags": ["RIGID", "SEALS", "WATERTIGHT"]
|
||||
}
|
||||
]
|
||||
@@ -0,0 +1,33 @@
|
||||
[
|
||||
{ "id":"GUITAR",
|
||||
"symbol": "$",
|
||||
"color": "red",
|
||||
"name":"Guitar",
|
||||
"description":"An acoustic six-string guitar. A bit out of tune, but in good shape otherwise.",
|
||||
"rarity": 60,
|
||||
"material": "wood",
|
||||
"weight": 13,
|
||||
"volume": 24,
|
||||
"damage": 14,
|
||||
"to_hit": 1,
|
||||
"use": "PLAY_GUITAR",
|
||||
"variations": [
|
||||
{ "odds" : 200,
|
||||
"name" : "Specific Variation"
|
||||
}
|
||||
]
|
||||
},
|
||||
{ "id":"DRUM",
|
||||
"symbol": "o",
|
||||
"color": "green",
|
||||
"name":"Bongo",
|
||||
"description": "A handheld drum. Suitable for making loud noises into all hours of the night.",
|
||||
"rarity": 60,
|
||||
"material": ["wood", "steel"],
|
||||
"weight": 10,
|
||||
"volume": 10,
|
||||
"damage": 11,
|
||||
"to_hit": 1,
|
||||
"use": "PLAY_DRUM"
|
||||
}
|
||||
]
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,613 @@
|
||||
[
|
||||
{ "id":"retool_45",
|
||||
"type": "GUNMOD",
|
||||
"symbol": ":",
|
||||
"color": "green",
|
||||
"name":".45 caliber retool",
|
||||
"description":"Replacing several key parts of a 9mm, .38, .40 or .44 firearm converts it to a .45 firearm. The conversion results in reduced accuracy and increased recoil.",
|
||||
"rarity": 3,
|
||||
"price": 480,
|
||||
"material": "steel",
|
||||
"weight": 2,
|
||||
"volume": 2,
|
||||
"bashing": 3,
|
||||
"cutting": 0,
|
||||
"to_hit": -1,
|
||||
"dispersion_modifier": 2,
|
||||
"damage_modifier": 0,
|
||||
"loudness_modifier": 0,
|
||||
"ammo_modifier": "45",
|
||||
"recoil_modifier": 2,
|
||||
"burst_modifier": 0,
|
||||
"clip_size_modifier": 0,
|
||||
"mod_targets": ["pistol", "smg"],
|
||||
"acceptable_ammo": ["9mm", "38", "40", "44"]
|
||||
},
|
||||
{
|
||||
"type" : "GUNMOD",
|
||||
"id" : "suppressor",
|
||||
"name" : "suppressor",
|
||||
"clip_size_modifier" : 0,
|
||||
"dispersion_modifier" : 1,
|
||||
"damage_modifier" : -4,
|
||||
"ammo_modifier" : "NULL",
|
||||
"description" : "Using a suppressor is almost an imperative in zombie-infested regions. Gunfire is very noisy, and will attract predators. Its only drawback is a reduced muzzle velocity, resulting in less accuracy and damage.",
|
||||
"weight" : 1,
|
||||
"to_hit" : 2,
|
||||
"color" : "dark_gray",
|
||||
"symbol" : ":",
|
||||
"material" : ["steel", "plastic"],
|
||||
"mod_targets" : ["pistol", "smg", "rifle"],
|
||||
"volume" : 2,
|
||||
"bashing" : 3,
|
||||
"cutting" : 0,
|
||||
"burst_modifier" : 0,
|
||||
"recoil_modifier" : 0,
|
||||
"rarity" : 15,
|
||||
"price" : 480,
|
||||
"loudness_modifier" : -25
|
||||
},
|
||||
{
|
||||
"type" : "GUNMOD",
|
||||
"id" : "grip",
|
||||
"name" : "enhanced grip",
|
||||
"clip_size_modifier" : 0,
|
||||
"dispersion_modifier" : -2,
|
||||
"damage_modifier" : 0,
|
||||
"ammo_modifier" : "NULL",
|
||||
"description" : "A grip placed forward on the barrel allows for greater control and accuracy. Aside from increased weight, there are no drawbacks.",
|
||||
"weight" : 1,
|
||||
"to_hit" : -1,
|
||||
"color" : "brown",
|
||||
"symbol" : ":",
|
||||
"material" : ["steel", "plastic"],
|
||||
"mod_targets" : ["shotgun", "smg", "rifle"],
|
||||
"volume" : 1,
|
||||
"bashing" : 0,
|
||||
"cutting" : 0,
|
||||
"burst_modifier" : 0,
|
||||
"recoil_modifier" : -2,
|
||||
"rarity" : 12,
|
||||
"price" : 280,
|
||||
"loudness_modifier" : 0
|
||||
},
|
||||
{
|
||||
"type" : "GUNMOD",
|
||||
"id" : "barrel_big",
|
||||
"name" : "barrel extension",
|
||||
"clip_size_modifier" : 0,
|
||||
"dispersion_modifier" : -6,
|
||||
"damage_modifier" : 1,
|
||||
"ammo_modifier" : "NULL",
|
||||
"description" : "A longer barrel increases the muzzle velocity of a firearm, contributing to both accuracy and damage. However, the longer barrel tends to vibrate after firing, greatly increasing recoil.",
|
||||
"weight" : 1,
|
||||
"to_hit" : 2,
|
||||
"color" : "light_gray",
|
||||
"symbol" : ":",
|
||||
"material" : ["steel", "null"],
|
||||
"mod_targets" : ["smg", "rifle"],
|
||||
"volume" : 4,
|
||||
"bashing" : 5,
|
||||
"cutting" : 0,
|
||||
"burst_modifier" : 0,
|
||||
"recoil_modifier" : 5,
|
||||
"rarity" : 10,
|
||||
"price" : 400,
|
||||
"loudness_modifier" : 0
|
||||
},
|
||||
{
|
||||
"type" : "GUNMOD",
|
||||
"id" : "barrel_small",
|
||||
"name" : "shortened barrel",
|
||||
"clip_size_modifier" : 0,
|
||||
"dispersion_modifier" : 5,
|
||||
"damage_modifier" : 0,
|
||||
"ammo_modifier" : "NULL",
|
||||
"description" : "A shortened barrel results in markedly reduced accuracy, and a minor increase in noise, but also reduces recoil greatly as a result of the improved managability of the firearm.",
|
||||
"weight" : 1,
|
||||
"to_hit" : -1,
|
||||
"color" : "light_gray",
|
||||
"symbol" : ":",
|
||||
"material" : ["steel", "null"],
|
||||
"mod_targets" : ["smg", "rifle"],
|
||||
"volume" : 1,
|
||||
"bashing" : -2,
|
||||
"cutting" : 0,
|
||||
"burst_modifier" : 0,
|
||||
"recoil_modifier" : -6,
|
||||
"rarity" : 6,
|
||||
"price" : 320,
|
||||
"loudness_modifier" : 2
|
||||
},
|
||||
{
|
||||
"type" : "GUNMOD",
|
||||
"id" : "barrel_rifled",
|
||||
"name" : "rifled barrel",
|
||||
"clip_size_modifier" : 0,
|
||||
"dispersion_modifier" : -10,
|
||||
"damage_modifier" : -20,
|
||||
"ammo_modifier" : "NULL",
|
||||
"description" : "Rifling a shotgun barrel is mainly done in order to improve its accuracy when firing slugs. The rifling makes the gun less suitable for shot, however.",
|
||||
"weight" : 1,
|
||||
"to_hit" : 1,
|
||||
"color" : "light_gray",
|
||||
"symbol" : ":",
|
||||
"material" : ["steel", "null"],
|
||||
"mod_targets" : ["shotgun"],
|
||||
"volume" : 2,
|
||||
"bashing" : 3,
|
||||
"cutting" : 0,
|
||||
"burst_modifier" : -1,
|
||||
"recoil_modifier" : 0,
|
||||
"rarity" : 5,
|
||||
"price" : 220,
|
||||
"loudness_modifier" : 0
|
||||
},
|
||||
{
|
||||
"type" : "GUNMOD",
|
||||
"id" : "clip",
|
||||
"name" : "extended magazine",
|
||||
"clip_size_modifier" : 50,
|
||||
"dispersion_modifier" : 1,
|
||||
"damage_modifier" : 0,
|
||||
"ammo_modifier" : "NULL",
|
||||
"description" : "Increases the ammunition capacity of your firearm by 50%, but the added bulk reduces accuracy slightly.",
|
||||
"weight" : 1,
|
||||
"to_hit" : -1,
|
||||
"color" : "light_gray",
|
||||
"symbol" : ":",
|
||||
"material" : ["steel", "plastic"],
|
||||
"mod_targets" : ["pistol", "shotgun", "smg", "rifle"],
|
||||
"volume" : 1,
|
||||
"bashing" : -2,
|
||||
"cutting" : 0,
|
||||
"burst_modifier" : 0,
|
||||
"recoil_modifier" : 0,
|
||||
"rarity" : 8,
|
||||
"price" : 560,
|
||||
"loudness_modifier" : 0
|
||||
},
|
||||
{
|
||||
"type" : "GUNMOD",
|
||||
"id" : "clip2",
|
||||
"name" : "double magazine",
|
||||
"clip_size_modifier" : 100,
|
||||
"dispersion_modifier" : 2,
|
||||
"damage_modifier" : 0,
|
||||
"ammo_modifier" : "NULL",
|
||||
"description" : "Completely doubles the ammunition capacity of your firearm, but the added bulk reduces accuracy and increases recoil.",
|
||||
"weight" : 2,
|
||||
"to_hit" : 0,
|
||||
"color" : "light_gray",
|
||||
"symbol" : ":",
|
||||
"material" : ["steel", "plastic"],
|
||||
"mod_targets" : ["shotgun", "smg", "rifle"],
|
||||
"volume" : 2,
|
||||
"bashing" : 0,
|
||||
"cutting" : 0,
|
||||
"burst_modifier" : 0,
|
||||
"recoil_modifier" : 2,
|
||||
"rarity" : 4,
|
||||
"price" : 720,
|
||||
"loudness_modifier" : 0
|
||||
},
|
||||
{
|
||||
"type" : "GUNMOD",
|
||||
"id" : "spare_mag",
|
||||
"name" : "spare magazine",
|
||||
"clip_size_modifier" : 0,
|
||||
"dispersion_modifier" : 0,
|
||||
"damage_modifier" : 0,
|
||||
"ammo_modifier" : "NULL",
|
||||
"description" : "A spare magazine you can keep on hand to make reloads faster, but must itself be reloaded before it can be used again.",
|
||||
"weight" : 1,
|
||||
"to_hit" : 0,
|
||||
"color" : "light_gray",
|
||||
"symbol" : ":",
|
||||
"material" : ["steel", "plastic"],
|
||||
"mod_targets" : ["pistol", "shotgun", "smg", "rifle"],
|
||||
"volume" : 1,
|
||||
"bashing" : 0,
|
||||
"cutting" : 0,
|
||||
"burst_modifier" : 0,
|
||||
"recoil_modifier" : 0,
|
||||
"rarity" : 15,
|
||||
"price" : 200,
|
||||
"loudness_modifier" : 0
|
||||
},
|
||||
{
|
||||
"type" : "GUNMOD",
|
||||
"id" : "brass_catcher",
|
||||
"name" : "brass catcher",
|
||||
"clip_size_modifier" : 0,
|
||||
"dispersion_modifier" : 0,
|
||||
"damage_modifier" : 0,
|
||||
"ammo_modifier" : "NULL",
|
||||
"description" : "A bag that hangs off the side of your gun and catches ejected casings so you don't have to pick them up.",
|
||||
"weight" : 1,
|
||||
"to_hit" : 0,
|
||||
"color" : "light_gray",
|
||||
"symbol" : ":",
|
||||
"material" : ["cotton", "null"],
|
||||
"mod_targets" : ["shotgun", "smg", "rifle"],
|
||||
"volume" : 1,
|
||||
"bashing" : 0,
|
||||
"cutting" : 0,
|
||||
"burst_modifier" : 0,
|
||||
"recoil_modifier" : 0,
|
||||
"rarity" : 15,
|
||||
"price" : 200,
|
||||
"loudness_modifier" : 0
|
||||
},
|
||||
{
|
||||
"type" : "GUNMOD",
|
||||
"id" : "stabilizer",
|
||||
"name" : "gyroscopic stabilizer",
|
||||
"clip_size_modifier" : -10,
|
||||
"dispersion_modifier" : -2,
|
||||
"damage_modifier" : -2,
|
||||
"ammo_modifier" : "NULL",
|
||||
"description" : "An advanced unit that straps onto the side of your firearm and reduces vibration, greatly reducing recoil and increasing accuracy. However, it also takes up space in the magazine slot, reducing ammo capacity.",
|
||||
"weight" : 2,
|
||||
"to_hit" : -3,
|
||||
"color" : "blue",
|
||||
"symbol" : ":",
|
||||
"material" : ["steel", "plastic"],
|
||||
"mod_targets" : ["smg", "rifle"],
|
||||
"volume" : 3,
|
||||
"bashing" : 0,
|
||||
"cutting" : 0,
|
||||
"burst_modifier" : 0,
|
||||
"recoil_modifier" : -8,
|
||||
"rarity" : 4,
|
||||
"price" : 680,
|
||||
"loudness_modifier" : 0
|
||||
},
|
||||
{
|
||||
"type" : "GUNMOD",
|
||||
"id" : "blowback",
|
||||
"name" : "rapid blowback",
|
||||
"clip_size_modifier" : 0,
|
||||
"dispersion_modifier" : 3,
|
||||
"damage_modifier" : 0,
|
||||
"ammo_modifier" : "NULL",
|
||||
"description" : "An improved blowback mechanism makes your firearm's automatic fire faster, at the cost of reduced accuracy and increased noise.",
|
||||
"weight" : 1,
|
||||
"to_hit" : 0,
|
||||
"color" : "red",
|
||||
"symbol" : ":",
|
||||
"material" : ["steel", "plastic"],
|
||||
"mod_targets" : ["smg", "rifle"],
|
||||
"volume" : 0,
|
||||
"bashing" : 0,
|
||||
"cutting" : 0,
|
||||
"burst_modifier" : 6,
|
||||
"recoil_modifier" : 0,
|
||||
"rarity" : 3,
|
||||
"price" : 700,
|
||||
"loudness_modifier" : 4
|
||||
},
|
||||
{
|
||||
"type" : "GUNMOD",
|
||||
"id" : "autofire",
|
||||
"name" : "auto-fire mechanism",
|
||||
"weight" : 2,
|
||||
"color" : "red",
|
||||
"burst_modifier" : 3,
|
||||
"loudness_modifier" : 2,
|
||||
"to_hit" : -1,
|
||||
"dispersion_modifier" : 2,
|
||||
"price" : 650,
|
||||
"clip_size_modifier" : 0,
|
||||
"description" : "A simple mechanism that converts a pistol to a fully-automatic weapon, with a burst size of three rounds. However, it reduces accuracy, and increases noise and recoil.",
|
||||
"symbol" : ":",
|
||||
"material" : ["steel", "plastic"],
|
||||
"volume" : 1,
|
||||
"cutting" : 0,
|
||||
"recoil_modifier" : 2,
|
||||
"damage_modifier" : 0,
|
||||
"acceptable_ammo" : ["22", "9mm", "38", "40", "57", "46"],
|
||||
"mod_targets" : ["pistol"],
|
||||
"rarity" : 2,
|
||||
"bashing" : 2,
|
||||
"ammo_modifier" : "NULL"
|
||||
},
|
||||
{
|
||||
"type" : "GUNMOD",
|
||||
"id" : "retool_9mm",
|
||||
"name" : "9mm caliber retool",
|
||||
"weight" : 1,
|
||||
"color" : "green",
|
||||
"burst_modifier" : 0,
|
||||
"loudness_modifier" : 0,
|
||||
"to_hit" : -1,
|
||||
"dispersion_modifier" : 1,
|
||||
"price" : 420,
|
||||
"clip_size_modifier" : 0,
|
||||
"description" : "Replacing several key parts of a .38, .40, .44 or .45 firearm converts it to a 9mm firearm. The conversion results in a slight reduction in accuracy.",
|
||||
"symbol" : ":",
|
||||
"material" : ["steel", "null"],
|
||||
"volume" : 1,
|
||||
"cutting" : 0,
|
||||
"recoil_modifier" : 0,
|
||||
"damage_modifier" : 0,
|
||||
"acceptable_ammo" : ["38", "40", "44", "45"],
|
||||
"mod_targets" : ["pistol", "smg"],
|
||||
"rarity" : 3,
|
||||
"bashing" : 0,
|
||||
"ammo_modifier" : "9mm"
|
||||
},
|
||||
{
|
||||
"type" : "GUNMOD",
|
||||
"id" : "retool_22",
|
||||
"name" : ".22 caliber retool",
|
||||
"weight" : 1,
|
||||
"color" : "green",
|
||||
"burst_modifier" : 0,
|
||||
"loudness_modifier" : 0,
|
||||
"to_hit" : -1,
|
||||
"dispersion_modifier" : 1,
|
||||
"price" : 320,
|
||||
"clip_size_modifier" : 0,
|
||||
"description" : "Replacing several key parts of a 9mm, .38, .40, 5.7mm, 4.6mm, 7.62mm or .223 firearm converts it to a .22 firearm. The conversion results in a slight reduction in accuracy.",
|
||||
"symbol" : ":",
|
||||
"material" : ["steel", "null"],
|
||||
"volume" : 1,
|
||||
"cutting" : 0,
|
||||
"recoil_modifier" : 0,
|
||||
"damage_modifier" : 0,
|
||||
"acceptable_ammo" : ["9mm", "38", "40", "57", "46", "762", "223"],
|
||||
"mod_targets" : ["pistol", "smg", "rifle"],
|
||||
"rarity" : 2,
|
||||
"bashing" : -2,
|
||||
"ammo_modifier" : "22"
|
||||
},
|
||||
{
|
||||
"type" : "GUNMOD",
|
||||
"id" : "retool_57",
|
||||
"name" : "5.7mm caliber retool",
|
||||
"weight" : 1,
|
||||
"color" : "green",
|
||||
"burst_modifier" : 0,
|
||||
"loudness_modifier" : 0,
|
||||
"to_hit" : -1,
|
||||
"dispersion_modifier" : 1,
|
||||
"price" : 460,
|
||||
"clip_size_modifier" : 0,
|
||||
"description" : "FN Hestal sells a conversion kit, used to convert .22, 9mm, or .38 firearms to their proprietary 5.7x28mm, a round designed for accuracy and armor penetration.",
|
||||
"symbol" : ":",
|
||||
"material" : ["steel", "null"],
|
||||
"volume" : 1,
|
||||
"cutting" : 0,
|
||||
"recoil_modifier" : 0,
|
||||
"damage_modifier" : 0,
|
||||
"acceptable_ammo" : ["22", "9mm", "38"],
|
||||
"mod_targets" : ["pistol", "smg"],
|
||||
"rarity" : 1,
|
||||
"bashing" : -3,
|
||||
"ammo_modifier" : "57"
|
||||
},
|
||||
{
|
||||
"type" : "GUNMOD",
|
||||
"id" : "retool_46",
|
||||
"name" : "4.6mm caliber retool",
|
||||
"weight" : 1,
|
||||
"color" : "green",
|
||||
"burst_modifier" : 0,
|
||||
"loudness_modifier" : 0,
|
||||
"to_hit" : -1,
|
||||
"dispersion_modifier" : 1,
|
||||
"price" : 460,
|
||||
"clip_size_modifier" : 0,
|
||||
"description" : "Heckler and Koch sells a conversion kit, used to convert .22, 9mm, or .38 firearms to their proprietary 4.6x30mm, a round designed for accuracy and armor penetration.",
|
||||
"symbol" : ":",
|
||||
"material" : ["steel", "null"],
|
||||
"volume" : 1,
|
||||
"cutting" : 0,
|
||||
"recoil_modifier" : 0,
|
||||
"damage_modifier" : 0,
|
||||
"acceptable_ammo" : ["22", "9mm", "38"],
|
||||
"mod_targets" : ["pistol", "smg"],
|
||||
"rarity" : 1,
|
||||
"bashing" : -3,
|
||||
"ammo_modifier" : "46"
|
||||
},
|
||||
{
|
||||
"type" : "GUNMOD",
|
||||
"id" : "retool_308",
|
||||
"name" : ".308 caliber retool",
|
||||
"weight" : 1,
|
||||
"color" : "green",
|
||||
"burst_modifier" : 0,
|
||||
"loudness_modifier" : 0,
|
||||
"to_hit" : 1,
|
||||
"dispersion_modifier" : 2,
|
||||
"price" : 520,
|
||||
"clip_size_modifier" : -20,
|
||||
"description" : "This kit is used to convert a shotgun or 7.62mm, .223 or .30-06 rifle to the popular and powerful .308 caliber. The conversion results in reduced ammo capacity and a slight reduction in accuracy.",
|
||||
"symbol" : ":",
|
||||
"material" : ["steel", "null"],
|
||||
"volume" : 2,
|
||||
"cutting" : 0,
|
||||
"recoil_modifier" : 0,
|
||||
"damage_modifier" : 0,
|
||||
"acceptable_ammo" : ["shot", "762", "223", "3006"],
|
||||
"mod_targets" : ["shotgun", "rifle"],
|
||||
"rarity" : 2,
|
||||
"bashing" : 4,
|
||||
"ammo_modifier" : "308"
|
||||
},
|
||||
{
|
||||
"type" : "GUNMOD",
|
||||
"id" : "retool_223",
|
||||
"name" : ".223 caliber retool",
|
||||
"weight" : 1,
|
||||
"color" : "green",
|
||||
"burst_modifier" : 0,
|
||||
"loudness_modifier" : 0,
|
||||
"to_hit" : 1,
|
||||
"dispersion_modifier" : 2,
|
||||
"price" : 500,
|
||||
"clip_size_modifier" : -10,
|
||||
"description" : "This kit is used to convert a shotgun or 7.62mm, .30-06, or .308 rifle to the popular, accurate, and damaging .223 caliber. The conversion results in slight reductions in both accuracy and ammo capacity.",
|
||||
"symbol" : ":",
|
||||
"material" : ["steel", "null"],
|
||||
"volume" : 2,
|
||||
"cutting" : 0,
|
||||
"recoil_modifier" : 0,
|
||||
"damage_modifier" : 0,
|
||||
"acceptable_ammo" : ["shot", "762", "3006", "308"],
|
||||
"mod_targets" : ["shotgun", "rifle"],
|
||||
"rarity" : 2,
|
||||
"bashing" : 4,
|
||||
"ammo_modifier" : "223"
|
||||
},
|
||||
{
|
||||
"type" : "GUNMOD",
|
||||
"id" : "conversion_battle",
|
||||
"name" : "battle rifle conversion",
|
||||
"clip_size_modifier" : 20,
|
||||
"dispersion_modifier" : 6,
|
||||
"damage_modifier" : 6,
|
||||
"ammo_modifier" : "NULL",
|
||||
"description" : "This is a complete conversion kit, designed to turn a rifle into a powerful battle rifle. It reduces accuracy, and increases noise and recoil, but also increases damage, ammo capacity, and fire rate.",
|
||||
"weight" : 3,
|
||||
"to_hit" : -1,
|
||||
"color" : "magenta",
|
||||
"symbol" : ":",
|
||||
"material" : ["steel", "null"],
|
||||
"mod_targets" : ["rifle"],
|
||||
"volume" : 4,
|
||||
"bashing" : 6,
|
||||
"cutting" : 0,
|
||||
"burst_modifier" : 4,
|
||||
"recoil_modifier" : 4,
|
||||
"rarity" : 1,
|
||||
"price" : 680,
|
||||
"loudness_modifier" : 4
|
||||
},
|
||||
{
|
||||
"type" : "GUNMOD",
|
||||
"id" : "conversion_sniper",
|
||||
"name" : "sniper conversion",
|
||||
"clip_size_modifier" : -15,
|
||||
"dispersion_modifier" : -10,
|
||||
"damage_modifier" : 8,
|
||||
"ammo_modifier" : "NULL",
|
||||
"description" : "This is a complete conversion kit, designed to turn a rifle into a deadly sniper rifle. It decreases ammo capacity, and removes any automatic fire capabilities, but also increases accuracy and damage.",
|
||||
"weight" : 2,
|
||||
"to_hit" : -1,
|
||||
"color" : "green",
|
||||
"symbol" : ":",
|
||||
"material" : ["steel", "null"],
|
||||
"mod_targets" : ["rifle"],
|
||||
"volume" : 1,
|
||||
"bashing" : 0,
|
||||
"cutting" : 0,
|
||||
"burst_modifier" : -99,
|
||||
"recoil_modifier" : 0,
|
||||
"rarity" : 1,
|
||||
"price" : 660,
|
||||
"loudness_modifier" : 3
|
||||
},
|
||||
{
|
||||
"type" : "GUNMOD",
|
||||
"id" : "m203",
|
||||
"name" : "M203",
|
||||
"weight" : 1,
|
||||
"color" : "light_red",
|
||||
"burst_modifier" : 0,
|
||||
"loudness_modifier" : 0,
|
||||
"to_hit" : -1,
|
||||
"dispersion_modifier" : 2,
|
||||
"price" : 650,
|
||||
"clip_size_modifier" : 1,
|
||||
"description" : "The M203 was originally designed for use with M16 variants but today can be attached to almost any rifle. It allows a single 40mm grenade to be loaded and fired.",
|
||||
"symbol" : ":",
|
||||
"material" : ["steel", "null"],
|
||||
"volume" : 2,
|
||||
"cutting" : 0,
|
||||
"recoil_modifier" : 0,
|
||||
"damage_modifier" : 0,
|
||||
"mod_targets" : ["rifle"],
|
||||
"rarity" : 2,
|
||||
"bashing" : 2,
|
||||
"flags" : ["MODE_AUX"],
|
||||
"ammo_modifier" : "40mm"
|
||||
},
|
||||
{
|
||||
"type" : "GUNMOD",
|
||||
"id" : "bayonet",
|
||||
"name" : "bayonet",
|
||||
"weight" : 2,
|
||||
"color" : "light_cyan",
|
||||
"burst_modifier" : 0,
|
||||
"loudness_modifier" : 0,
|
||||
"to_hit" : -3,
|
||||
"dispersion_modifier" : 0,
|
||||
"price" : 400,
|
||||
"clip_size_modifier" : 0,
|
||||
"description" : "A bayonet is a stabbing weapon that can be attached to the front of a shotgun, sub-machinegun or rifle, allowing a melee attack to deal piercing damage. The added length increases recoil slightly.",
|
||||
"symbol" : ":",
|
||||
"material" : ["steel", "null"],
|
||||
"volume" : 2,
|
||||
"cutting" : 16,
|
||||
"recoil_modifier" : 3,
|
||||
"damage_modifier" : 0,
|
||||
"mod_targets" : ["shotgun", "smg", "rifle"],
|
||||
"rarity" : 6,
|
||||
"bashing" : 0,
|
||||
"flags" : ["STAB"],
|
||||
"ammo_modifier" : "NULL"
|
||||
},
|
||||
{
|
||||
"type" : "GUNMOD",
|
||||
"id" : "u_shotgun",
|
||||
"name" : "underslung shotgun",
|
||||
"weight" : 1,
|
||||
"color" : "light_red",
|
||||
"burst_modifier" : 0,
|
||||
"loudness_modifier" : 0,
|
||||
"to_hit" : -1,
|
||||
"dispersion_modifier" : 2,
|
||||
"price" : 650,
|
||||
"clip_size_modifier" : 2,
|
||||
"description" : "A miniaturized shotgun with 2 barrels, which can be mounted under the barrel of many rifles. It allows two shotgun shells to be loaded and fired.",
|
||||
"symbol" : ":",
|
||||
"material" : ["steel", "null"],
|
||||
"volume" : 2,
|
||||
"cutting" : 0,
|
||||
"recoil_modifier" : 0,
|
||||
"damage_modifier" : 0,
|
||||
"mod_targets" : ["rifle"],
|
||||
"rarity" : 2,
|
||||
"bashing" : 2,
|
||||
"flags" : ["MODE_AUX"],
|
||||
"ammo_modifier" : "shot"
|
||||
},
|
||||
{
|
||||
"type" : "GUNMOD",
|
||||
"id" : "gun_crossbow",
|
||||
"name" : "rail-mounted crossbow",
|
||||
"weight" : 1,
|
||||
"color" : "light_red",
|
||||
"burst_modifier" : 0,
|
||||
"loudness_modifier" : 0,
|
||||
"to_hit" : -1,
|
||||
"dispersion_modifier" : 0,
|
||||
"price" : 500,
|
||||
"clip_size_modifier" : 1,
|
||||
"description" : "A kit to attach a pair of crossbow arms and a firing rail to the barrel of a long firearm. It allows crossbow bolts to be fired.",
|
||||
"symbol" : ":",
|
||||
"material" : ["steel", "wood"],
|
||||
"volume" : 2,
|
||||
"cutting" : 0,
|
||||
"recoil_modifier" : 0,
|
||||
"damage_modifier" : 0,
|
||||
"mod_targets" : ["shotgun", "rifle"],
|
||||
"rarity" : 2,
|
||||
"bashing" : 2,
|
||||
"flags" : ["MODE_AUX", "STR_RELOAD"],
|
||||
"ammo_modifier" : "bolt"
|
||||
}
|
||||
]
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,262 @@
|
||||
[
|
||||
{
|
||||
"ident" : "null",
|
||||
"name" : "Null",
|
||||
"bash_resist" : 0,
|
||||
"cut_resist" : 0,
|
||||
"bash_dmg_verb" : "damaged",
|
||||
"cut_dmg_verb" : "damaged",
|
||||
"dmg_adj" : ["lightly damaged", "damaged", "very damaged", "thoroughly damaged"],
|
||||
"acid_resist" : 0,
|
||||
"elec_resist" : 0,
|
||||
"fire_resist" : 0,
|
||||
"density" : 1
|
||||
},
|
||||
{
|
||||
"ident" : "veggy",
|
||||
"name" : "Plant Matter",
|
||||
"bash_resist" : 1,
|
||||
"cut_resist" : 1,
|
||||
"bash_dmg_verb" : "ripped",
|
||||
"cut_dmg_verb" : "cut",
|
||||
"dmg_adj" : ["lightly damaged", "damaged", "very damaged", "thoroughly damaged"],
|
||||
"acid_resist" : 1,
|
||||
"elec_resist" : 1,
|
||||
"fire_resist" : 0,
|
||||
"density" : 4
|
||||
},
|
||||
{
|
||||
"ident" : "flesh",
|
||||
"name" : "Flesh",
|
||||
"bash_resist" : 1,
|
||||
"cut_resist" : 1,
|
||||
"bash_dmg_verb" : "bruised",
|
||||
"cut_dmg_verb" : "sliced",
|
||||
"dmg_adj" : ["bruised", "mutilated", "badly mutilated", "thoroughly mutilated"],
|
||||
"acid_resist" : 1,
|
||||
"elec_resist" : 1,
|
||||
"fire_resist" : 0,
|
||||
"density" : 5
|
||||
},
|
||||
{
|
||||
"ident" : "powder",
|
||||
"name" : "Powder",
|
||||
"bash_resist" : 1,
|
||||
"cut_resist" : 1,
|
||||
"bash_dmg_verb" : "damaged",
|
||||
"cut_dmg_verb" : "damaged",
|
||||
"dmg_adj" : ["lightly damaged", "damaged", "very damaged", "thoroughly damaged"],
|
||||
"acid_resist" : 0,
|
||||
"elec_resist" : 2,
|
||||
"fire_resist" : 0,
|
||||
"density" : 1
|
||||
},
|
||||
{
|
||||
"ident" : "hflesh",
|
||||
"name" : "Human Flesh",
|
||||
"bash_resist" : 1,
|
||||
"cut_resist" : 1,
|
||||
"bash_dmg_verb" : "bruised",
|
||||
"cut_dmg_verb" : "sliced",
|
||||
"dmg_adj" : ["bruised", "mutilated", "badly mutilated", "thoroughly mutilated"],
|
||||
"acid_resist" : 1,
|
||||
"elec_resist" : 1,
|
||||
"fire_resist" : 0,
|
||||
"density" : 5
|
||||
},
|
||||
{
|
||||
"ident" : "cotton",
|
||||
"name" : "Cotton",
|
||||
"bash_resist" : 1,
|
||||
"cut_resist" : 1,
|
||||
"bash_dmg_verb" : "ripped",
|
||||
"cut_dmg_verb" : "cut",
|
||||
"dmg_adj" : ["ripped", "torn", "shredded", "tattered"],
|
||||
"acid_resist" : 1,
|
||||
"elec_resist" : 2,
|
||||
"fire_resist" : 0,
|
||||
"density" : 3
|
||||
},
|
||||
{
|
||||
"ident" : "wool",
|
||||
"name" : "Wool",
|
||||
"bash_resist" : 1,
|
||||
"cut_resist" : 1,
|
||||
"bash_dmg_verb" : "torn",
|
||||
"cut_dmg_verb" : "cut",
|
||||
"dmg_adj" : ["ripped", "torn", "shredded", "tattered"],
|
||||
"acid_resist" : 1,
|
||||
"elec_resist" : 2,
|
||||
"fire_resist" : 0,
|
||||
"density" : 9
|
||||
},
|
||||
{
|
||||
"ident" : "leather",
|
||||
"name" : "Leather",
|
||||
"bash_resist" : 2,
|
||||
"cut_resist" : 2,
|
||||
"bash_dmg_verb" : "ripped",
|
||||
"cut_dmg_verb" : "sliced",
|
||||
"dmg_adj" : ["scratched", "cut", "shredded", "tattered"],
|
||||
"acid_resist" : 1,
|
||||
"elec_resist" : 2,
|
||||
"fire_resist" : 1,
|
||||
"density" : 6
|
||||
},
|
||||
{
|
||||
"ident" : "kevlar",
|
||||
"name" : "Kevlar",
|
||||
"bash_resist" : 2,
|
||||
"cut_resist" : 4,
|
||||
"bash_dmg_verb" : "ripped",
|
||||
"cut_dmg_verb" : "cut",
|
||||
"dmg_adj" : ["marked", "dented", "scarred", "broken"],
|
||||
"acid_resist" : 2,
|
||||
"elec_resist" : 2,
|
||||
"fire_resist" : 1,
|
||||
"density" : 10
|
||||
},
|
||||
{
|
||||
"ident" : "fur",
|
||||
"name" : "Fur",
|
||||
"bash_resist" : 2,
|
||||
"cut_resist" : 2,
|
||||
"bash_dmg_verb" : "ripped",
|
||||
"cut_dmg_verb" : "sliced",
|
||||
"dmg_adj" : ["ripped", "torn", "shredded", "tattered"],
|
||||
"acid_resist" : 1,
|
||||
"elec_resist" : 2,
|
||||
"fire_resist" : 0,
|
||||
"density" : 9
|
||||
},
|
||||
{
|
||||
"ident" : "chitin",
|
||||
"name" : "Chitin",
|
||||
"bash_resist" : 3,
|
||||
"cut_resist" : 4,
|
||||
"bash_dmg_verb" : "cracked",
|
||||
"cut_dmg_verb" : "chipped",
|
||||
"dmg_adj" : ["scratched", "cut", "cracked", "shattered"],
|
||||
"acid_resist" : 1,
|
||||
"elec_resist" : 2,
|
||||
"fire_resist" : 2,
|
||||
"density" : 10
|
||||
},
|
||||
{
|
||||
"ident" : "bone",
|
||||
"name" : "Bone",
|
||||
"bash_resist" : 2,
|
||||
"cut_resist" : 3,
|
||||
"bash_dmg_verb" : "cracked",
|
||||
"cut_dmg_verb" : "chipped",
|
||||
"dmg_adj" : ["scratched", "cut", "cracked", "shattered"],
|
||||
"acid_resist" : 1,
|
||||
"elec_resist" : 2,
|
||||
"fire_resist" : 4,
|
||||
"density" : 7
|
||||
},
|
||||
{
|
||||
"ident" : "stone",
|
||||
"name" : "Stone",
|
||||
"bash_resist" : 6,
|
||||
"cut_resist" : 6,
|
||||
"bash_dmg_verb" : "cracked",
|
||||
"cut_dmg_verb" : "chipped",
|
||||
"dmg_adj" : ["scratched", "cut", "cracked", "shattered"],
|
||||
"acid_resist" : 3,
|
||||
"elec_resist" : 2,
|
||||
"fire_resist" : 2,
|
||||
"density" : 17
|
||||
},
|
||||
{
|
||||
"ident" : "paper",
|
||||
"name" : "Paper",
|
||||
"bash_resist" : 1,
|
||||
"cut_resist" : 1,
|
||||
"bash_dmg_verb" : "ripped",
|
||||
"cut_dmg_verb" : "cut",
|
||||
"dmg_adj" : ["ripped", "torn", "shredded", "tattered"],
|
||||
"acid_resist" : 1,
|
||||
"elec_resist" : 2,
|
||||
"fire_resist" : 0,
|
||||
"density" : 4
|
||||
},
|
||||
{
|
||||
"ident" : "wood",
|
||||
"name" : "Wood",
|
||||
"bash_resist" : 3,
|
||||
"cut_resist" : 2,
|
||||
"bash_dmg_verb" : "splintered",
|
||||
"cut_dmg_verb" : "gouged",
|
||||
"dmg_adj" : ["scratched", "chipped", "cracked", "splintered"],
|
||||
"acid_resist" : 2,
|
||||
"elec_resist" : 2,
|
||||
"fire_resist" : 0,
|
||||
"density" : 4
|
||||
},
|
||||
{
|
||||
"ident" : "plastic",
|
||||
"name" : "Plastic",
|
||||
"bash_resist" : 2,
|
||||
"cut_resist" : 2,
|
||||
"bash_dmg_verb" : "dented",
|
||||
"cut_dmg_verb" : "gouged",
|
||||
"dmg_adj" : ["scratched", "cut", "cracked", "shattered"],
|
||||
"acid_resist" : 2,
|
||||
"elec_resist" : 2,
|
||||
"fire_resist" : 0,
|
||||
"density" : 8
|
||||
},
|
||||
{
|
||||
"ident" : "glass",
|
||||
"name" : "Glass",
|
||||
"bash_resist" : 3,
|
||||
"cut_resist" : 4,
|
||||
"bash_dmg_verb" : "cracked",
|
||||
"cut_dmg_verb" : "scratched",
|
||||
"dmg_adj" : ["scratched", "cut", "cracked", "shattered"],
|
||||
"acid_resist" : 3,
|
||||
"elec_resist" : 2,
|
||||
"fire_resist" : 2,
|
||||
"density" : 14
|
||||
},
|
||||
{
|
||||
"ident" : "iron",
|
||||
"name" : "Iron",
|
||||
"bash_resist" : 4,
|
||||
"cut_resist" : 4,
|
||||
"bash_dmg_verb" : "dented",
|
||||
"cut_dmg_verb" : "scratched",
|
||||
"dmg_adj" : ["marked", "dented", "smashed", "shattered"],
|
||||
"acid_resist" : 0,
|
||||
"elec_resist" : 0,
|
||||
"fire_resist" : 2,
|
||||
"density" : 52
|
||||
},
|
||||
{
|
||||
"ident" : "steel",
|
||||
"name" : "Steel",
|
||||
"bash_resist" : 6,
|
||||
"cut_resist" : 6,
|
||||
"bash_dmg_verb" : "dented",
|
||||
"cut_dmg_verb" : "scratched",
|
||||
"dmg_adj" : ["marked", "dented", "smashed", "shattered"],
|
||||
"acid_resist" : 0,
|
||||
"elec_resist" : 0,
|
||||
"fire_resist" : 2,
|
||||
"density" : 52
|
||||
},
|
||||
{
|
||||
"ident" : "silver",
|
||||
"name" : "Silver",
|
||||
"bash_resist" : 2,
|
||||
"cut_resist" : 3,
|
||||
"bash_dmg_verb" : "dented",
|
||||
"cut_dmg_verb" : "scratched",
|
||||
"dmg_adj" : ["marked", "dented", "smashed", "shattered"],
|
||||
"acid_resist" : 2,
|
||||
"elec_resist" : 0,
|
||||
"fire_resist" : 2,
|
||||
"density" : 70
|
||||
}
|
||||
]
|
||||
+148
-143
@@ -3,24 +3,27 @@
|
||||
"name" : "GROUP_FOREST",
|
||||
"default" : "mon_squirrel",
|
||||
"monsters" : [
|
||||
{ "monster" : "mon_rabbit", "freq" : 150 },
|
||||
{ "monster" : "mon_deer", "freq" : 30 },
|
||||
{ "monster" : "mon_wolf", "freq" : 30 },
|
||||
{ "monster" : "mon_bear", "freq" : 20 },
|
||||
{ "monster" : "mon_cougar", "freq" : 20 },
|
||||
{ "monster" : "mon_spider_wolf", "freq" : 30 },
|
||||
{ "monster" : "mon_spider_jumping", "freq" : 30 },
|
||||
{ "monster" : "mon_dog", "freq" : 10 },
|
||||
{ "monster" : "mon_crow", "freq" : 30 }
|
||||
{ "monster" : "mon_rabbit", "freq" : 150, "multiplier" : 0 },
|
||||
{ "monster" : "mon_deer", "freq" : 30, "multiplier" : 3 },
|
||||
{ "monster" : "mon_moose", "freq" : 10, "multiplier" : 3 },
|
||||
{ "monster" : "mon_wolf", "freq" : 30, "multiplier" : 5 },
|
||||
{ "monster" : "mon_coyote", "freq" : 30, "multiplier" : 5 },
|
||||
{ "monster" : "mon_bear", "freq" : 20, "multiplier" : 10 },
|
||||
{ "monster" : "mon_cougar", "freq" : 20, "multiplier" : 10 },
|
||||
{ "monster" : "mon_spider_wolf", "freq" : 30, "multiplier" : 10 },
|
||||
{ "monster" : "mon_spider_jumping", "freq" : 30, "multiplier" : 10 },
|
||||
{ "monster" : "mon_dog", "freq" : 10, "multiplier" : 0 },
|
||||
{ "monster" : "mon_cat", "freq" : 10, "multiplier" : 0 },
|
||||
{ "monster" : "mon_crow", "freq" : 30, "multiplier" : 0 }
|
||||
]
|
||||
},
|
||||
{
|
||||
"name" : "GROUP_ANT",
|
||||
"default" : "mon_ant",
|
||||
"monsters" : [
|
||||
{ "monster" : "mon_ant_larva", "freq" : 40 },
|
||||
{ "monster" : "mon_ant_soldier", "freq" : 90 },
|
||||
{ "monster" : "mon_ant_queen", "freq" : 0 }
|
||||
{ "monster" : "mon_ant_larva", "freq" : 40, "multiplier" : 0 },
|
||||
{ "monster" : "mon_ant_soldier", "freq" : 90, "multiplier" : 5 },
|
||||
{ "monster" : "mon_ant_queen", "freq" : 0, "multiplier" : 0 }
|
||||
]
|
||||
},
|
||||
{
|
||||
@@ -33,49 +36,51 @@
|
||||
"name" : "GROUP_WORM",
|
||||
"default" : "mon_worm",
|
||||
"monsters" : [
|
||||
{ "monster" : "mon_graboid", "freq" : 30 },
|
||||
{ "monster" : "mon_halfworm", "freq" : 0 }
|
||||
{ "monster" : "mon_graboid", "freq" : 30, "multiplier" : 20 },
|
||||
{ "monster" : "mon_halfworm", "freq" : 0, "multiplier" : 0 }
|
||||
]
|
||||
},
|
||||
{
|
||||
"name" : "GROUP_ZOMBIE",
|
||||
"default" : "mon_zombie",
|
||||
"monsters" : [
|
||||
{ "monster" : "mon_zombie_cop", "freq" : 20 },
|
||||
{ "monster" : "mon_zombie_fast", "freq" : 70 },
|
||||
{ "monster" : "mon_zombie_grabber", "freq" : 70 },
|
||||
{ "monster" : "mon_skeleton", "freq" : 30 },
|
||||
{ "monster" : "mon_zombie_smoker", "freq" : 30 },
|
||||
{ "monster" : "mon_zombie_shrieker", "freq" : 30 },
|
||||
{ "monster" : "mon_zombie_spitter", "freq" : 30 },
|
||||
{ "monster" : "mon_zombie_electric", "freq" : 30 },
|
||||
{ "monster" : "mon_zombie_necro", "freq" : 1 },
|
||||
{ "monster" : "mon_boomer", "freq" : 30 },
|
||||
{ "monster" : "mon_zombie_brute", "freq" : 10 },
|
||||
{ "monster" : "mon_zombie_hulk", "freq" : 1 },
|
||||
{ "monster" : "mon_zombie_master", "freq" : 1 },
|
||||
{ "monster" : "mon_crow", "freq" : 1 }
|
||||
{ "monster" : "mon_zombie_cop", "freq" : 20, "multiplier" : 3 },
|
||||
{ "monster" : "mon_zombie_fast", "freq" : 70, "multiplier" : 2 },
|
||||
{ "monster" : "mon_zombie_grabber", "freq" : 70, "multiplier" : 1 },
|
||||
{ "monster" : "mon_skeleton", "freq" : 30, "multiplier" : 2 },
|
||||
{ "monster" : "mon_zombie_smoker", "freq" : 30, "multiplier" : 5 },
|
||||
{ "monster" : "mon_zombie_shrieker", "freq" : 30, "multiplier" : 5 },
|
||||
{ "monster" : "mon_zombie_spitter", "freq" : 30, "multiplier" : 5 },
|
||||
{ "monster" : "mon_zombie_electric", "freq" : 30, "multiplier" : 5 },
|
||||
{ "monster" : "mon_zombie_necro", "freq" : 1, "multiplier" : 25 },
|
||||
{ "monster" : "mon_boomer", "freq" : 30, "multiplier" : 7 },
|
||||
{ "monster" : "mon_zombie_brute", "freq" : 10, "multiplier" : 15 },
|
||||
{ "monster" : "mon_zombie_hulk", "freq" : 1, "multiplier" : 50 },
|
||||
{ "monster" : "mon_zombie_master", "freq" : 1, "multiplier" : 25 },
|
||||
{ "monster" : "mon_crow", "freq" : 1, "multiplier" : 0 }
|
||||
]
|
||||
},
|
||||
{
|
||||
"name" : "GROUP_TRIFFID",
|
||||
"default" : "mon_triffid",
|
||||
"monsters" : [
|
||||
{ "monster" : "mon_triffid_young", "freq" : 300 },
|
||||
{ "monster" : "mon_vinebeast", "freq" : 160 },
|
||||
{ "monster" : "mon_triffid_queen", "freq" : 60 }
|
||||
{ "monster" : "mon_triffid_young", "freq" : 300, "multiplier" : 0 },
|
||||
{ "monster" : "mon_vinebeast", "freq" : 160, "multiplier" : 10 },
|
||||
{ "monster" : "mon_triffid_queen", "freq" : 60, "multiplier" : 0 },
|
||||
{ "monster" : "mon_triffid_heart", "freq" : 0, "multiplier" : 0 }
|
||||
]
|
||||
},
|
||||
{
|
||||
"name" : "GROUP_FUNGI",
|
||||
"default" : "mon_fungaloid",
|
||||
"monsters" : [
|
||||
{ "monster" : "mon_fungaloid_dormant", "freq" : 0 },
|
||||
{ "monster" : "mon_ant_fungus", "freq" : 0 },
|
||||
{ "monster" : "mon_zombie_fungus", "freq" : 300 },
|
||||
{ "monster" : "mon_boomer_fungus", "freq" : 30 },
|
||||
{ "monster" : "mon_spore", "freq" : 0 },
|
||||
{ "monster" : "mon_fungal_wall", "freq" : 0 }
|
||||
{ "monster" : "mon_fungaloid_dormant", "freq" : 0, "multiplier" : 0 },
|
||||
{ "monster" : "mon_ant_fungus", "freq" : 0, "multiplier" : 0 },
|
||||
{ "monster" : "mon_zombie_fungus", "freq" : 300, "multiplier" : 0 },
|
||||
{ "monster" : "mon_boomer_fungus", "freq" : 30, "multiplier" : 0 },
|
||||
{ "monster" : "mon_spore", "freq" : 0, "multiplier" : 0 },
|
||||
{ "monster" : "mon_fungal_wall", "freq" : 0, "multiplier" : 0 },
|
||||
{ "monster" : "mon_fungaloid_queen", "freq" : 0, "multiplier" : 0 }
|
||||
]
|
||||
},
|
||||
|
||||
@@ -83,66 +88,66 @@
|
||||
"name" : "GROUP_GOO",
|
||||
"default" : "mon_blob",
|
||||
"monsters" : [
|
||||
{ "monster" : "mon_blob_small", "freq" : 200 }
|
||||
{ "monster" : "mon_blob_small", "freq" : 200, "multiplier" : 0 }
|
||||
]
|
||||
},
|
||||
{
|
||||
"name" : "GROUP_CHUD",
|
||||
"default" : "mon_chud",
|
||||
"monsters" : [
|
||||
{ "monster" : "mon_one_eye", "freq" : 90 },
|
||||
{ "monster" : "mon_crawler", "freq" : 35 }
|
||||
{ "monster" : "mon_one_eye", "freq" : 90, "multiplier" : 0 },
|
||||
{ "monster" : "mon_crawler", "freq" : 35, "multiplier" : 0 }
|
||||
]
|
||||
},
|
||||
{
|
||||
"name" : "GROUP_SEWER",
|
||||
"default" : "mon_sewer_rat",
|
||||
"monsters" : [
|
||||
{ "monster" : "mon_sewer_fish", "freq" : 470 },
|
||||
{ "monster" : "mon_sewer_snake", "freq" : 240 }
|
||||
{ "monster" : "mon_sewer_fish", "freq" : 470, "multiplier" : 0 },
|
||||
{ "monster" : "mon_sewer_snake", "freq" : 240, "multiplier" : 0 }
|
||||
]
|
||||
},
|
||||
{
|
||||
"name" : "GROUP_SWAMP",
|
||||
"default" : "mon_mosquito",
|
||||
"monsters" : [
|
||||
{ "monster" : "mon_dragonfly", "freq" : 130 },
|
||||
{ "monster" : "mon_centipede", "freq" : 150 },
|
||||
{ "monster" : "mon_frog", "freq" : 100 },
|
||||
{ "monster" : "mon_slug", "freq" : 85 },
|
||||
{ "monster" : "mon_dermatik_larva", "freq" : 0 },
|
||||
{ "monster" : "mon_dermatik", "freq" : 65 }
|
||||
{ "monster" : "mon_dragonfly", "freq" : 130, "multiplier" : 0 },
|
||||
{ "monster" : "mon_centipede", "freq" : 150, "multiplier" : 0 },
|
||||
{ "monster" : "mon_frog", "freq" : 100, "multiplier" : 0 },
|
||||
{ "monster" : "mon_slug", "freq" : 85, "multiplier" : 0 },
|
||||
{ "monster" : "mon_dermatik_larva", "freq" : 0, "multiplier" : 0 },
|
||||
{ "monster" : "mon_dermatik", "freq" : 65, "multiplier" : 0 }
|
||||
]
|
||||
},
|
||||
{
|
||||
"name" : "GROUP_LAB",
|
||||
"default" : "mon_zombie_scientist",
|
||||
"monsters" : [
|
||||
{ "monster" : "mon_blob_small", "freq" : 25 },
|
||||
{ "monster" : "mon_manhack", "freq" : 245 },
|
||||
{ "monster" : "mon_skitterbot", "freq" : 245 }
|
||||
{ "monster" : "mon_blob_small", "freq" : 25, "multiplier" : 0 },
|
||||
{ "monster" : "mon_manhack", "freq" : 245, "multiplier" : 0 },
|
||||
{ "monster" : "mon_skitterbot", "freq" : 245, "multiplier" : 0 }
|
||||
]
|
||||
},
|
||||
{
|
||||
"name" : "GROUP_NETHER",
|
||||
"default" : "mon_blank",
|
||||
"monsters" : [
|
||||
{ "monster" : "mon_flying_polyp", "freq" : 25 },
|
||||
{ "monster" : "mon_hunting_horror", "freq" : 240 },
|
||||
{ "monster" : "mon_mi_go", "freq" : 120 },
|
||||
{ "monster" : "mon_yugg", "freq" : 70 },
|
||||
{ "monster" : "mon_gelatin", "freq" : 120 },
|
||||
{ "monster" : "mon_flaming_eye", "freq" : 120 },
|
||||
{ "monster" : "mon_kreck", "freq" : 210 },
|
||||
{ "monster" : "mon_gozu", "freq" : 25 }
|
||||
{ "monster" : "mon_flying_polyp", "freq" : 25, "multiplier" : 0 },
|
||||
{ "monster" : "mon_hunting_horror", "freq" : 240, "multiplier" : 0 },
|
||||
{ "monster" : "mon_mi_go", "freq" : 120, "multiplier" : 0 },
|
||||
{ "monster" : "mon_yugg", "freq" : 70, "multiplier" : 0 },
|
||||
{ "monster" : "mon_gelatin", "freq" : 120, "multiplier" : 0 },
|
||||
{ "monster" : "mon_flaming_eye", "freq" : 120, "multiplier" : 0 },
|
||||
{ "monster" : "mon_kreck", "freq" : 210, "multiplier" : 0 },
|
||||
{ "monster" : "mon_gozu", "freq" : 25, "multiplier" : 0 }
|
||||
]
|
||||
},
|
||||
{
|
||||
"name" : "GROUP_SPIRAL",
|
||||
"default" : "mon_human_snail",
|
||||
"monsters" : [
|
||||
{ "monster" : "mon_twisted_body", "freq" : 180 },
|
||||
{ "monster" : "mon_vortex", "freq" : 80 }
|
||||
{ "monster" : "mon_twisted_body", "freq" : 180, "multiplier" : 0 },
|
||||
{ "monster" : "mon_vortex", "freq" : 80, "multiplier" : 0 }
|
||||
]
|
||||
},
|
||||
{
|
||||
@@ -155,130 +160,130 @@
|
||||
"name" : "GROUP_SPIDER",
|
||||
"default" : "mon_spider_wolf",
|
||||
"monsters" : [
|
||||
{ "monster" : "mon_spider_web", "freq" : 200 },
|
||||
{ "monster" : "mon_spider_jumping", "freq" : 400 },
|
||||
{ "monster" : "mon_spider_widow", "freq" : 200 }
|
||||
{ "monster" : "mon_spider_web", "freq" : 200, "multiplier" : 0 },
|
||||
{ "monster" : "mon_spider_jumping", "freq" : 400, "multiplier" : 0 },
|
||||
{ "monster" : "mon_spider_widow", "freq" : 200, "multiplier" : 0 }
|
||||
]
|
||||
},
|
||||
{
|
||||
"name" : "GROUP_ROBOT",
|
||||
"default" : "mon_manhack",
|
||||
"monsters" : [
|
||||
{ "monster" : "mon_skitterbot", "freq" : 220 },
|
||||
{ "monster" : "mon_secubot", "freq" : 150 },
|
||||
{ "monster" : "mon_copbot", "freq" : 0 },
|
||||
{ "monster" : "mon_molebot", "freq" : 40 },
|
||||
{ "monster" : "mon_tripod", "freq" : 110 },
|
||||
{ "monster" : "mon_chickenbot", "freq" : 60 },
|
||||
{ "monster" : "mon_tankbot", "freq" : 20 }
|
||||
{ "monster" : "mon_skitterbot", "freq" : 220, "multiplier" : 0 },
|
||||
{ "monster" : "mon_secubot", "freq" : 150, "multiplier" : 0 },
|
||||
{ "monster" : "mon_copbot", "freq" : 0, "multiplier" : 0 },
|
||||
{ "monster" : "mon_molebot", "freq" : 40, "multiplier" : 0 },
|
||||
{ "monster" : "mon_tripod", "freq" : 110, "multiplier" : 0 },
|
||||
{ "monster" : "mon_chickenbot", "freq" : 60, "multiplier" : 0 },
|
||||
{ "monster" : "mon_tankbot", "freq" : 20, "multiplier" : 0 }
|
||||
]
|
||||
},
|
||||
{
|
||||
"name" : "GROUP_POLICE", "_comment" : "+30% cops",
|
||||
"default" : "mon_zombie",
|
||||
"monsters" : [
|
||||
{ "monster" : "mon_zombie_cop", "freq" : 320 },
|
||||
{ "monster" : "mon_zombie_fast", "freq" : 70 },
|
||||
{ "monster" : "mon_zombie_grabber", "freq" : 70 },
|
||||
{ "monster" : "mon_skeleton", "freq" : 30 },
|
||||
{ "monster" : "mon_zombie_smoker", "freq" : 30 },
|
||||
{ "monster" : "mon_zombie_shrieker", "freq" : 30 },
|
||||
{ "monster" : "mon_zombie_spitter", "freq" : 30 },
|
||||
{ "monster" : "mon_zombie_electric", "freq" : 30 },
|
||||
{ "monster" : "mon_zombie_necro", "freq" : 1 },
|
||||
{ "monster" : "mon_boomer", "freq" : 30 },
|
||||
{ "monster" : "mon_zombie_brute", "freq" : 10 },
|
||||
{ "monster" : "mon_zombie_hulk", "freq" : 1 },
|
||||
{ "monster" : "mon_zombie_master", "freq" : 1 },
|
||||
{ "monster" : "mon_crow", "freq" : 1 }
|
||||
{ "monster" : "mon_zombie_cop", "freq" : 320, "multiplier" : 3 },
|
||||
{ "monster" : "mon_zombie_fast", "freq" : 70, "multiplier" : 2 },
|
||||
{ "monster" : "mon_zombie_grabber", "freq" : 70, "multiplier" : 1 },
|
||||
{ "monster" : "mon_skeleton", "freq" : 30, "multiplier" : 2 },
|
||||
{ "monster" : "mon_zombie_smoker", "freq" : 30, "multiplier" : 5 },
|
||||
{ "monster" : "mon_zombie_shrieker", "freq" : 30, "multiplier" : 5 },
|
||||
{ "monster" : "mon_zombie_spitter", "freq" : 30, "multiplier" : 5 },
|
||||
{ "monster" : "mon_zombie_electric", "freq" : 30, "multiplier" : 5 },
|
||||
{ "monster" : "mon_zombie_necro", "freq" : 1, "multiplier" : 25 },
|
||||
{ "monster" : "mon_boomer", "freq" : 30, "multiplier" : 7 },
|
||||
{ "monster" : "mon_zombie_brute", "freq" : 10, "multiplier" : 15 },
|
||||
{ "monster" : "mon_zombie_hulk", "freq" : 1, "multiplier" : 50 },
|
||||
{ "monster" : "mon_zombie_master", "freq" : 1, "multiplier" : 25 },
|
||||
{ "monster" : "mon_crow", "freq" : 1, "multiplier" : 0 }
|
||||
]
|
||||
},
|
||||
{
|
||||
"name" : "GROUP_HOUSE", "_comment" : "+15% child",
|
||||
"default" : "mon_zombie",
|
||||
"monsters" : [
|
||||
{ "monster" : "mon_zombie_child", "freq" : 150 },
|
||||
{ "monster" : "mon_zombie_cop", "freq" : 20 },
|
||||
{ "monster" : "mon_zombie_fast", "freq" : 70 },
|
||||
{ "monster" : "mon_zombie_grabber", "freq" : 70 },
|
||||
{ "monster" : "mon_skeleton", "freq" : 30 },
|
||||
{ "monster" : "mon_zombie_smoker", "freq" : 30 },
|
||||
{ "monster" : "mon_zombie_shrieker", "freq" : 30 },
|
||||
{ "monster" : "mon_zombie_spitter", "freq" : 30 },
|
||||
{ "monster" : "mon_zombie_electric", "freq" : 30 },
|
||||
{ "monster" : "mon_zombie_necro", "freq" : 1 },
|
||||
{ "monster" : "mon_boomer", "freq" : 30 },
|
||||
{ "monster" : "mon_zombie_brute", "freq" : 10 },
|
||||
{ "monster" : "mon_zombie_hulk", "freq" : 1 },
|
||||
{ "monster" : "mon_zombie_master", "freq" : 1 },
|
||||
{ "monster" : "mon_crow", "freq" : 1 }
|
||||
{ "monster" : "mon_zombie_child", "freq" : 150, "multiplier" : 2 },
|
||||
{ "monster" : "mon_zombie_cop", "freq" : 20, "multiplier" : 2 },
|
||||
{ "monster" : "mon_zombie_fast", "freq" : 70, "multiplier" : 2 },
|
||||
{ "monster" : "mon_zombie_grabber", "freq" : 70, "multiplier" : 1 },
|
||||
{ "monster" : "mon_skeleton", "freq" : 30, "multiplier" : 2 },
|
||||
{ "monster" : "mon_zombie_smoker", "freq" : 30, "multiplier" : 5 },
|
||||
{ "monster" : "mon_zombie_shrieker", "freq" : 30, "multiplier" : 5 },
|
||||
{ "monster" : "mon_zombie_spitter", "freq" : 30, "multiplier" : 5 },
|
||||
{ "monster" : "mon_zombie_electric", "freq" : 30, "multiplier" : 5 },
|
||||
{ "monster" : "mon_zombie_necro", "freq" : 1, "multiplier" : 25 },
|
||||
{ "monster" : "mon_boomer", "freq" : 30, "multiplier" : 7 },
|
||||
{ "monster" : "mon_zombie_brute", "freq" : 10, "multiplier" : 15 },
|
||||
{ "monster" : "mon_zombie_hulk", "freq" : 1, "multiplier" : 50 },
|
||||
{ "monster" : "mon_zombie_master", "freq" : 1, "multiplier" : 25 },
|
||||
{ "monster" : "mon_crow", "freq" : 1, "multiplier" : 0 }
|
||||
]
|
||||
},
|
||||
{
|
||||
"name" : "GROUP_PHARM", "_comment" : "+15% fast",
|
||||
"default" : "mon_zombie",
|
||||
"monsters" : [
|
||||
{ "monster" : "mon_zombie_cop", "freq" : 20 },
|
||||
{ "monster" : "mon_zombie_fast", "freq" : 220 },
|
||||
{ "monster" : "mon_zombie_grabber", "freq" : 70 },
|
||||
{ "monster" : "mon_skeleton", "freq" : 30 },
|
||||
{ "monster" : "mon_zombie_smoker", "freq" : 30 },
|
||||
{ "monster" : "mon_zombie_shrieker", "freq" : 30 },
|
||||
{ "monster" : "mon_zombie_spitter", "freq" : 30 },
|
||||
{ "monster" : "mon_zombie_electric", "freq" : 30 },
|
||||
{ "monster" : "mon_zombie_necro", "freq" : 1 },
|
||||
{ "monster" : "mon_boomer", "freq" : 30 },
|
||||
{ "monster" : "mon_zombie_brute", "freq" : 10 },
|
||||
{ "monster" : "mon_zombie_hulk", "freq" : 1 },
|
||||
{ "monster" : "mon_zombie_master", "freq" : 1 },
|
||||
{ "monster" : "mon_crow", "freq" : 1 }
|
||||
{ "monster" : "mon_zombie_cop", "freq" : 20, "multiplier" : 2 },
|
||||
{ "monster" : "mon_zombie_fast", "freq" : 220, "multiplier" : 2 },
|
||||
{ "monster" : "mon_zombie_grabber", "freq" : 70, "multiplier" : 1 },
|
||||
{ "monster" : "mon_skeleton", "freq" : 30, "multiplier" : 2 },
|
||||
{ "monster" : "mon_zombie_smoker", "freq" : 30, "multiplier" : 5 },
|
||||
{ "monster" : "mon_zombie_shrieker", "freq" : 30, "multiplier" : 5 },
|
||||
{ "monster" : "mon_zombie_spitter", "freq" : 30, "multiplier" : 5 },
|
||||
{ "monster" : "mon_zombie_electric", "freq" : 30, "multiplier" : 5 },
|
||||
{ "monster" : "mon_zombie_necro", "freq" : 1, "multiplier" : 25 },
|
||||
{ "monster" : "mon_boomer", "freq" : 30, "multiplier" : 7 },
|
||||
{ "monster" : "mon_zombie_brute", "freq" : 10, "multiplier" : 15 },
|
||||
{ "monster" : "mon_zombie_hulk", "freq" : 1, "multiplier" : 50 },
|
||||
{ "monster" : "mon_zombie_master", "freq" : 1, "multiplier" : 25 },
|
||||
{ "monster" : "mon_crow", "freq" : 1, "multiplier" : 0 }
|
||||
]
|
||||
},
|
||||
{
|
||||
"name" : "GROUP_ELECTRO", "_comment" : "+15% electric",
|
||||
"default" : "mon_zombie",
|
||||
"monsters" : [
|
||||
{ "monster" : "mon_zombie_cop", "freq" : 20 },
|
||||
{ "monster" : "mon_zombie_fast", "freq" : 70 },
|
||||
{ "monster" : "mon_zombie_grabber", "freq" : 70 },
|
||||
{ "monster" : "mon_skeleton", "freq" : 30 },
|
||||
{ "monster" : "mon_zombie_smoker", "freq" : 30 },
|
||||
{ "monster" : "mon_zombie_shrieker", "freq" : 30 },
|
||||
{ "monster" : "mon_zombie_spitter", "freq" : 30 },
|
||||
{ "monster" : "mon_zombie_electric", "freq" : 180 },
|
||||
{ "monster" : "mon_zombie_necro", "freq" : 1 },
|
||||
{ "monster" : "mon_boomer", "freq" : 30 },
|
||||
{ "monster" : "mon_zombie_brute", "freq" : 10 },
|
||||
{ "monster" : "mon_zombie_hulk", "freq" : 1 },
|
||||
{ "monster" : "mon_zombie_master", "freq" : 1 },
|
||||
{ "monster" : "mon_crow", "freq" : 1 }
|
||||
{ "monster" : "mon_zombie_cop", "freq" : 20, "multiplier" : 2 },
|
||||
{ "monster" : "mon_zombie_fast", "freq" : 70, "multiplier" : 2 },
|
||||
{ "monster" : "mon_zombie_grabber", "freq" : 70, "multiplier" : 1 },
|
||||
{ "monster" : "mon_skeleton", "freq" : 30, "multiplier" : 2 },
|
||||
{ "monster" : "mon_zombie_smoker", "freq" : 30, "multiplier" : 5 },
|
||||
{ "monster" : "mon_zombie_shrieker", "freq" : 30, "multiplier" : 5 },
|
||||
{ "monster" : "mon_zombie_spitter", "freq" : 30, "multiplier" : 5 },
|
||||
{ "monster" : "mon_zombie_electric", "freq" : 180, "multiplier" : 5 },
|
||||
{ "monster" : "mon_zombie_necro", "freq" : 1, "multiplier" : 25 },
|
||||
{ "monster" : "mon_boomer", "freq" : 30, "multiplier" : 7 },
|
||||
{ "monster" : "mon_zombie_brute", "freq" : 10, "multiplier" : 15 },
|
||||
{ "monster" : "mon_zombie_hulk", "freq" : 1, "multiplier" : 50 },
|
||||
{ "monster" : "mon_zombie_master", "freq" : 1, "multiplier" : 25 },
|
||||
{ "monster" : "mon_crow", "freq" : 1, "multiplier" : 0 }
|
||||
]
|
||||
},
|
||||
{
|
||||
"name" : "GROUP_GROCERY", "_comment" : "+15% bommers",
|
||||
"default" : "mon_zombie",
|
||||
"monsters" : [
|
||||
{ "monster" : "mon_zombie_cop", "freq" : 20 },
|
||||
{ "monster" : "mon_zombie_fast", "freq" : 70 },
|
||||
{ "monster" : "mon_zombie_grabber", "freq" : 70 },
|
||||
{ "monster" : "mon_skeleton", "freq" : 30 },
|
||||
{ "monster" : "mon_zombie_smoker", "freq" : 30 },
|
||||
{ "monster" : "mon_zombie_shrieker", "freq" : 30 },
|
||||
{ "monster" : "mon_zombie_spitter", "freq" : 30 },
|
||||
{ "monster" : "mon_zombie_electric", "freq" : 30 },
|
||||
{ "monster" : "mon_zombie_necro", "freq" : 1 },
|
||||
{ "monster" : "mon_boomer", "freq" : 180 },
|
||||
{ "monster" : "mon_zombie_brute", "freq" : 10 },
|
||||
{ "monster" : "mon_zombie_hulk", "freq" : 1 },
|
||||
{ "monster" : "mon_zombie_master", "freq" : 1 },
|
||||
{ "monster" : "mon_crow", "freq" : 1 }
|
||||
{ "monster" : "mon_zombie_cop", "freq" : 20, "multiplier" : 2 },
|
||||
{ "monster" : "mon_zombie_fast", "freq" : 70, "multiplier" : 2 },
|
||||
{ "monster" : "mon_zombie_grabber", "freq" : 70, "multiplier" : 1 },
|
||||
{ "monster" : "mon_skeleton", "freq" : 30, "multiplier" : 2 },
|
||||
{ "monster" : "mon_zombie_smoker", "freq" : 30, "multiplier" : 5 },
|
||||
{ "monster" : "mon_zombie_shrieker", "freq" : 30, "multiplier" : 5 },
|
||||
{ "monster" : "mon_zombie_spitter", "freq" : 30, "multiplier" : 5 },
|
||||
{ "monster" : "mon_zombie_electric", "freq" : 30, "multiplier" : 5 },
|
||||
{ "monster" : "mon_zombie_necro", "freq" : 1, "multiplier" : 25 },
|
||||
{ "monster" : "mon_boomer", "freq" : 180, "multiplier" : 7 },
|
||||
{ "monster" : "mon_zombie_brute", "freq" : 10, "multiplier" : 15 },
|
||||
{ "monster" : "mon_zombie_hulk", "freq" : 1, "multiplier" : 50 },
|
||||
{ "monster" : "mon_zombie_master", "freq" : 1, "multiplier" : 25 },
|
||||
{ "monster" : "mon_crow", "freq" : 1, "multiplier" : 0 }
|
||||
]
|
||||
},
|
||||
{
|
||||
"name" : "GROUP_MAYBE_MIL", "_comment" : "50% chance military zombie",
|
||||
"default" : "mon_null",
|
||||
"monsters" : [
|
||||
{ "monster" : "mon_zombie_soldier", "freq" : 50 }
|
||||
{ "monster" : "mon_zombie_soldier", "freq" : 50, "multiplier" : 0 }
|
||||
]
|
||||
}
|
||||
]
|
||||
|
||||
+1156
-3
File diff suppressed because it is too large
Load Diff
@@ -3,16 +3,25 @@
|
||||
"ident": "unemployed",
|
||||
"name": "Unemployed",
|
||||
"description":
|
||||
"They say you don't have any 'useful skills', but at least your clothes fit\nwell.",
|
||||
"They say you don't have any 'useful skills', but at least your clothes fit well.",
|
||||
"points": 0,
|
||||
"items": ["jeans", "tshirt", "sneakers"]
|
||||
"items": ["jeans", "tshirt", "sneakers"]
|
||||
},
|
||||
|
||||
{
|
||||
"ident": "tailor",
|
||||
"name": "Tailor",
|
||||
"description":
|
||||
"You've made and adjusted clothing for some of the biggest names in town. Now, their undead bodies are trying to eat your brains. At least you'll be able to keep your own clothing repaired.",
|
||||
"points": 1,
|
||||
"items": ["polo_shirt", "blazer", "pants", "dress_shoes", "sewing_kit", "scissors", "manual_tailor"]
|
||||
},
|
||||
|
||||
{
|
||||
"ident": "labtech",
|
||||
"name": "Lab Technician",
|
||||
"description":
|
||||
"It was your first day in the lab when the cataclysm hit. You were evacuated\nwith all the civilians, but at least you kept your lab gear.",
|
||||
"It was your first day in the lab when the cataclysm hit. You were evacuated with all the civilians, but at least you kept your lab gear.",
|
||||
"points": 1,
|
||||
"items": ["dress_shirt", "pants", "boots", "coat_lab", "gloves_rubber", "glasses_safety"]
|
||||
},
|
||||
@@ -21,17 +30,37 @@
|
||||
"ident": "mechanic",
|
||||
"name": "Wannabe Mechanic",
|
||||
"description":
|
||||
"Although you never got your driver's license, you've always loved cars.\nYou start with a wrench, a toolbelt, and some car-related reading material.",
|
||||
"Although you never got your driver's license, you've always loved cars. You start with a wrench, a toolbelt, and some car-related reading material.",
|
||||
"points": 2,
|
||||
"items": ["tank_top", "jeans", "beltrig", "wrench", "mag_cars", "manual_mechanics"]
|
||||
"items": ["tank_top", "jeans", "boots", "beltrig", "wrench", "mag_cars", "manual_mechanics"]
|
||||
},
|
||||
|
||||
{
|
||||
"ident": "scoundrel",
|
||||
"name": "Scoundrel",
|
||||
"description":
|
||||
"Your flexible outlook on law has ensured your survival, but now what? You start with cargo pants, a hoodie, \"sundries\", and one additional level of melee.",
|
||||
"points": 2,
|
||||
"items": ["tank_top", "hoodie", "pants_cargo", "sneakers", "weed", "picklocks"],
|
||||
"skills" : [
|
||||
{
|
||||
"name" : "melee",
|
||||
"level" : 1
|
||||
}
|
||||
]
|
||||
},
|
||||
|
||||
{
|
||||
"ident": "smoker",
|
||||
"name": "Chain Smoker",
|
||||
"description":
|
||||
"Everyone at work knew you as the person who always had a cigarette or two\nin hand. Now, you're down to a single pack, and you hope you find more soon.\nYou start out with a strong nicotine addiction, and 10 cigarettes.",
|
||||
"description": "Everyone at work knew you as the person who always had a cigarette or two in hand. now, you're down to a single pack, and you hope you find more soon. You start out with a strong nicotine addiction, and 10 cigarettes.",
|
||||
"points": -1,
|
||||
"items": ["pants", "dress_shirt", "dress_shoes", "cig"]
|
||||
"items": ["pants", "dress_shirt", "dress_shoes", "cig"],
|
||||
"addictions": [
|
||||
{
|
||||
"type": "nicotine",
|
||||
"intensity": 10
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
+54
-32
@@ -1,142 +1,164 @@
|
||||
[
|
||||
[
|
||||
"null",
|
||||
"null",
|
||||
"The skill of true Zen."
|
||||
],
|
||||
[
|
||||
"dodge",
|
||||
"dodge",
|
||||
"Your skill at dodging, whether it be from an attack, a trap, or a natural\noccurrence. It is also used when attempting to fall gracefully, or in other\nacrobatic feats."
|
||||
"Your skill at dodging, whether it be from an attack, a trap, or a natural occurrence. It is also used when attempting to fall gracefully, or in other acrobatic feats.",
|
||||
[]
|
||||
],
|
||||
[
|
||||
"melee",
|
||||
"melee",
|
||||
"Your skill at hand-to-hand combat, both with and without a weapon. At low\nlevels this merely increases your chance to hit, but at higher levels it also\nincreases the damage done significantly."
|
||||
"Your skill at hand-to-hand combat, both with and without a weapon. At low levels this merely increases your chance to hit, but at higher levels it also increases the damage done significantly.",
|
||||
[]
|
||||
],
|
||||
[
|
||||
"unarmed",
|
||||
"unarmed combat",
|
||||
"Your skill at combat without a weapon. While at low levels, unarmed combat is\na good way to die quickly, those skilled in it can eventually use throws and\ncrushing blows to quickly dispatch enemies."
|
||||
"Your skill at combat without a weapon. While at low levels, unarmed combat is a good way to die quickly, those skilled in it can eventually use throws and crushing blows to quickly dispatch enemies.",
|
||||
[]
|
||||
],
|
||||
[
|
||||
"bashing",
|
||||
"bashing weapons",
|
||||
"Your skill at combat with weapons that club or bash your enemies. This\nincludes everything from rocks to baseball bats, and even the butt of rifles.\nThis increases damage, and at higher levels will improve your chance to hit."
|
||||
"Your skill at combat with weapons that club or bash your enemies. This includes everything from rocks to baseball bats, and even the butt of rifles. This increases damage, and at higher levels will improve your chance to hit.",
|
||||
[]
|
||||
],
|
||||
[
|
||||
"cutting",
|
||||
"cutting weapons",
|
||||
"Your skill at combat with weapons that cut or slice your enemies. At first\nthis will simply slightly increase accuracy and damage; later on it will\nhelp you bypass armor and thick hides."
|
||||
"Your skill at combat with weapons that cut or slice your enemies. At first this will simply slightly increase accuracy and damage; later on it will help you bypass armor and thick hides.",
|
||||
[]
|
||||
],
|
||||
[
|
||||
"stabbing",
|
||||
"piercing weapons",
|
||||
"Your skill at combat that involves piercing weapons. This includes spears,\nwhich only have a stabbing attack, and things like knives, which can cut or\npierce. This increases your accuracy and chance of a deadly critical."
|
||||
"Your skill at combat that involves piercing weapons. This includes spears, which only have a stabbing attack, and things like knives, which can cut or pierce. This increases your accuracy and chance of a deadly critical.",
|
||||
[]
|
||||
],
|
||||
[
|
||||
"throw",
|
||||
"throwing",
|
||||
"Your skill at throwing items and getting them to go where you want. Increases\nboth accuracy and, at higher levels, range."
|
||||
"Your skill at throwing items and getting them to go where you want. Increases both accuracy and, at higher levels, range.",
|
||||
[]
|
||||
],
|
||||
[
|
||||
"gun",
|
||||
"firearms",
|
||||
"Your general skill at firearms. This increases your accuracy with any gun,\nbut not as much as the skill associated with the gun in question."
|
||||
"Your general skill at firearms. This increases your accuracy with any gun, but not as much as the skill associated with the gun in question.",
|
||||
[]
|
||||
],
|
||||
[
|
||||
"pistol",
|
||||
"handguns",
|
||||
"Your skill with handguns. These have poor accuracy, but generally are fired\nand reloaded faster than other guns, and are good in close quarters."
|
||||
"Your skill with handguns. These have poor accuracy, but generally are fired and reloaded faster than other guns, and are good in close quarters.",
|
||||
["gun_type"]
|
||||
],
|
||||
[
|
||||
"shotgun",
|
||||
"shotguns",
|
||||
"Your skill with shotguns. Shot is easy to hit with, and does massive damage,\nbut has short range. Shotguns may also be loaded with slugs, which go further\nand do as much damage, but are not very accurate."
|
||||
"Your skill with shotguns. Shot is easy to hit with, and does massive damage, but has short range. Shotguns may also be loaded with slugs, which go further and do as much damage, but are not very accurate.",
|
||||
["gun_type"]
|
||||
],
|
||||
[
|
||||
"smg",
|
||||
"submachine guns",
|
||||
"Your skill with submachine guns and machine pistols. Halfway between a pistol\nand an assault rifle, these weapons fire and reload quickly, and may fire in\nbursts, but they are not very accurate."
|
||||
"Your skill with submachine guns and machine pistols. Halfway between a pistol and an assault rifle, these weapons fire and reload quickly, and may fire in bursts, but they are not very accurate.",
|
||||
["gun_type"]
|
||||
],
|
||||
[
|
||||
"rifle",
|
||||
"rifles",
|
||||
"Your skill with rifles, both assault rifles and semi-auto hunting rifles.\nThese have terrific range and accuracy, but are very slow to fire and reload,\nand are not very good in close quarters."
|
||||
"Your skill with rifles, both assault rifles and semi-auto hunting rifles. These have terrific range and accuracy, but are very slow to fire and reload, and are not very good in close quarters.",
|
||||
["gun_type"]
|
||||
],
|
||||
[
|
||||
"archery",
|
||||
"archery",
|
||||
"Your skill with all kinds of bows, from crossbows to handmade long bows.\nThese are quiet, but require some amount of strength to use, and are not\nterribly accurate. They can only be deadly in skilled hands."
|
||||
"Your skill with all kinds of bows, from crossbows to handmade long bows. These are quiet, but require some amount of strength to use, and are not terribly accurate. They can only be deadly in skilled hands.",
|
||||
[]
|
||||
],
|
||||
[
|
||||
"launcher",
|
||||
"grenade launcher",
|
||||
"Your skill with grenade launchers, whether standalone or as a rifle mod.\nThese launchers fire a variety of 40mm grenades with different uses,\nbut they and their rounds are hard to find."
|
||||
"Your skill with grenade launchers, whether standalone or as a rifle mod. These launchers fire a variety of 40mm grenades with different uses, but they and their rounds are hard to find.",
|
||||
[]
|
||||
],
|
||||
[
|
||||
"computer",
|
||||
"computers",
|
||||
"Your skill with computers, both in terms of legitimate use, and hacking. This\nwill help you use complex systems, and bypass their security."
|
||||
"Your skill with computers, both in terms of legitimate use, and hacking. This will help you use complex systems, and bypass their security.",
|
||||
[]
|
||||
],
|
||||
[
|
||||
"mechanics",
|
||||
"mechanics",
|
||||
"Your skill with repairs to mechanical systems, and the crafting of many items\nthat use complex parts, but are not electronics."
|
||||
"Your skill with repairs to mechanical systems, and the crafting of many items that use complex parts, but are not electronics.",
|
||||
[]
|
||||
],
|
||||
[
|
||||
"electronics",
|
||||
"electronics",
|
||||
"Your skill with repairs to electrical systems, and the crafting of many items\nthat use electrical parts."
|
||||
"Your skill with repairs to electrical systems, and the crafting of many items that use electrical parts.",
|
||||
[]
|
||||
],
|
||||
[
|
||||
"cooking",
|
||||
"cooking",
|
||||
"Your skill in combining food ingredients to make other, tastier food items.\nThis may also be used in mixing chemicals and other more esoteric tasks."
|
||||
"Your skill in combining food ingredients to make other, tastier food items. This may also be used in mixing chemicals and other more esoteric tasks.",
|
||||
[]
|
||||
],
|
||||
[
|
||||
"carpentry",
|
||||
"construction",
|
||||
"Your general knowledge in construction. This is used primarily when building\nterrain, via the * screen."
|
||||
"Your general knowledge in construction. This is used primarily when building terrain, via the * screen.",
|
||||
[]
|
||||
],
|
||||
[
|
||||
"survival",
|
||||
"survival",
|
||||
"Your skill in wilderness survival. This helps you butcher meat from a corpse\nand craft various basic survival items. High levels may allow you to remove\npoison from tainted meat. Also used for skinning corpses to acquire pelts."
|
||||
"Your skill in wilderness survival. This helps you butcher meat from a corpse and craft various basic survival items. Also used for skinning corpses to acquire pelts.",
|
||||
[]
|
||||
],
|
||||
[
|
||||
"traps",
|
||||
"traps",
|
||||
"Your skill at setting and disarming traps safely and effectively. Note that\nthis does not help you detect traps, or avoid their effects if you activate\nthem."
|
||||
"Your skill at setting and disarming traps safely and effectively. Note that this does not help you detect traps, or avoid their effects if you activate them.",
|
||||
[]
|
||||
],
|
||||
[
|
||||
"tailor",
|
||||
"tailoring",
|
||||
"Your skill at repairing clothing, and at higher levels, creating clothing\nfrom basic materials. Generally a sewing kit is needed. Also applies to\nother methods of clothing repair and textile crafting."
|
||||
"Your skill at repairing clothing, and at higher levels, creating clothing from basic materials. Generally a sewing kit is needed. Also applies to other methods of clothing repair and textile crafting.",
|
||||
[]
|
||||
],
|
||||
[
|
||||
"firstaid",
|
||||
"first aid",
|
||||
"Your skill at emergency medical treatment, such as that from first aid kits\nand bandages. High levels of this skill may help heal more HP. Some drugs\nmay be more effective as well."
|
||||
"Your skill at emergency medical treatment, such as that from first aid kits and bandages. High levels of this skill may help heal more HP. Some drugs may be more effective as well.",
|
||||
[]
|
||||
],
|
||||
[
|
||||
"speech",
|
||||
"speech",
|
||||
"Your skill at talking to people, convincing them of things, lying, and many\nothers. Works best in conjunction with a high intelligence."
|
||||
"Your skill at talking to people, convincing them of things, lying, and many others. Works best in conjunction with a high intelligence.",
|
||||
[]
|
||||
],
|
||||
[
|
||||
"barter",
|
||||
"barter",
|
||||
"Your skill at getting a good deal when trading with others. Very high levels\nmight even see you getting freebies."
|
||||
"Your skill at getting a good deal when trading with others. Very high levels might even see you getting freebies.",
|
||||
[]
|
||||
],
|
||||
[
|
||||
"swimming",
|
||||
"swimming",
|
||||
"Your skill at swimming. This affects speed, your ability to swim while\nwearing clothes or carrying weights, and in-water combat."
|
||||
"Your skill at swimming. This affects speed, your ability to swim while wearing clothes or carrying weights, and in-water combat.",
|
||||
[]
|
||||
],
|
||||
[
|
||||
"driving",
|
||||
"driving",
|
||||
"Your skill at driving. This affects how well you can control a vehicle,\nas well as the penalty of shooting while driving."
|
||||
"Your skill at driving. This affects how well you can control a vehicle, as well as the penalty of shooting while driving.",
|
||||
[]
|
||||
]
|
||||
]
|
||||
|
||||
@@ -0,0 +1,77 @@
|
||||
{
|
||||
"snippets":
|
||||
[
|
||||
{
|
||||
"category": "flier",
|
||||
"text": "This is an advertisement for the Diet Devil brand Metabolic Exchange CBM. It shows a picture of a tiny obese devil sitting on a woman's shoulder. The woman stares intently at a gigantic wedding cake covered with bacon and candybars. The caption reads: \"Burn calories! Burn!\""
|
||||
},
|
||||
{
|
||||
"category": "flier",
|
||||
"text": "This is an advertisement for the Diet Devil brand Internal Furnace CBM. It shows a picture of a tiny obese devil sitting on a man's shoulder. The man is about to bite into a frosting-covered baby. The caption reads: \"Eat What You Want! How You Want! Who You Want!\""
|
||||
},
|
||||
{
|
||||
"category": "flier",
|
||||
"text": "This is an advertisement for the Diet Devil brand Ethanol Burner CBM. It shows a picture of a teenaged boy driving a car while chugging a bottle of whiskey. A tiny obese devil sits on his shoulder and drinks a martini. The caption reads: \"Drink like there's no tomorrow!\""
|
||||
},
|
||||
{
|
||||
"category": "flier",
|
||||
"text": "This is an advertisement for the Twenty8 brand Diamond Cornea CBM. It shows a picture of the cyber-module being clutched by an eagle in flight. The captions read: \"Get the new Model 28.bx Eagle-Eye!\" and \"Twenty8. See what you've been missing.\""
|
||||
},
|
||||
{
|
||||
"category": "flier",
|
||||
"text": "This is an advertisement for the Twenty8 brand Night Vision CBM. It shows a picture of an owl swooping down on a the cyber-module. The captions read: \"Get the new Model 28.hx Night-Owl!\" and \"Twenty8. See what you've been missing.\""
|
||||
},
|
||||
{
|
||||
"category": "flier",
|
||||
"text": "This is an advertisement for the Twenty8 brand Diamond Cornea CBM. It shows a picture of a flying hawk carrying the cyber-module in its beak. The captions read: \"Get the new Model 28.xx Hawk-Eye!\" and \"Twenty8. See what you've been missing.\""
|
||||
},
|
||||
{
|
||||
"category": "flier",
|
||||
"text": "This is an advertisement for the Twenty8 brand Scent Vision CBM. It shows a picture of a vulture perched on a pile of skulls and cyber-modules. The captions read: \"Get the new Model 28.vx Vulture today!\" and \"Twenty8. See what you've been missing.\""
|
||||
},
|
||||
{
|
||||
"category": "flier",
|
||||
"text": "This is an ad for a Twenty8 brand Infrared Vision CBM. It shows a picture of a robotic phoenix covered in flames. The captions read: \"Get the new Model 28.tx Phoenix today!\" and \"Twenty8. See what you've been missing.\""
|
||||
},
|
||||
{
|
||||
"category": "flier",
|
||||
"text": "This is an advertisement for DoubleTech brand law enforcement robots. It shows a picture of copbot and an eyebot boldly emerging from a cloud of teargas and flame. The caption reads: \"DoubleTech Industries. Built to Protect. Programmed to Serve.\""
|
||||
},
|
||||
{
|
||||
"category": "flier",
|
||||
"text": "This is an advertisement for DoubleTech brand law enforcement robots. It shows a picture of an eyebot flying alongside a bald eagle and a Stealth bomber painted as an American flag. The caption reads: \"Built to Protect. Programmed to Serve.\""
|
||||
},
|
||||
{
|
||||
"category": "flier",
|
||||
"text": "This is an advertisement for DoubleTech brand law enforcement robots. It shows a picture of a dozen eyebots floating over a woman as she jogs through a park. The captions read: \"Built to Protect. Programmed to Serve.\""
|
||||
},
|
||||
{
|
||||
"category": "flier",
|
||||
"text": "This is an advertisement for DoubleTech brand law enforcement robots. It shows a picture of copbot pepper-spraying a handcuffed rioter. In the background a troop of boy scouts salutes the robot. The caption reads: \"Built to Protect. Programmed to Serve.\""
|
||||
},
|
||||
{
|
||||
"category": "flier",
|
||||
"text": "This is an advertisement for Robert's Universal Robotics brand law enforcement robots. It shows a picture of tripod robot incinerating a mob of looters and stepping over charred and smoking corpses. The caption reads: \"Built to Protect. Programmed to Serve.\""
|
||||
},
|
||||
{
|
||||
"category": "flier",
|
||||
"text": "This is an advertisement for Robert's Universal Robots brand labor-bots. It shows a picture of a robot carrying a heavy pallet of bricks. In the background a human foreman is sleeping on the job, with his hardhat pulled down over his eyes. The captions read: \"It's a tough job, so why should you have to do it?\" and \"R.U.R. Technology you can Trust.\""
|
||||
},
|
||||
{
|
||||
"category": "flier",
|
||||
"text": "This is an advertisement for Robert's Universal Robots brand labor-bots. It shows a picture of a factory floor run entirely by robots. In the background a man in a suit reads a newspaper that shows soaring stock prices. The caption reads: \"R.U.R. Technology you can Trust.\""
|
||||
},
|
||||
{
|
||||
"category": "flier",
|
||||
"text": "This is an advertisement for Sybil's Cyber Boutique. It shows a picture of several bikini-clad female doctors removing the skin from man's face. The patient is strapped to a chair but cheerfully gives two thumbs up. The caption reads: \"Free Plastic Surgery While You Wait!\""
|
||||
},
|
||||
{
|
||||
"category": "flier",
|
||||
"text": "This is an advertisement for Sybil's Cyber Boutique. It shows a picture of a nerdy looking man surrounded by a group of admiring women. In the foreground a blood-drenched doctor gives an exaggerated wink and a two thumbs up. The caption reads: \"Holiday sales! Get the package deals!\""
|
||||
},
|
||||
{
|
||||
"category": "flier",
|
||||
"text": "This is an advertisement for Sybil's Cyber Boutique. It shows a picture of a man flexing shiny cybernetic arms in front of a mirror. He is flanked by two scantily clad nurses who hold bloody chainsaws and give approving thumbs up. In the background feral dogs gnaw on the man's discarded former limbs. The caption reads: \"Spring Cleaning Sale! 20% off!\""
|
||||
}
|
||||
]
|
||||
}
|
||||
+53
-48
@@ -4,6 +4,7 @@
|
||||
#include "keypress.h"
|
||||
#include "itype.h"
|
||||
#include "mtype.h"
|
||||
#include "overmapbuffer.h"
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <sstream>
|
||||
@@ -80,7 +81,7 @@ bool defense_game::init(game *g)
|
||||
g->u.cash = initial_cash;
|
||||
popup_nowait("Please wait as the map generates [ 0%]");
|
||||
// TODO: support multiple defence games? clean up old defence game
|
||||
g->cur_om = overmap(g, 0, 0);
|
||||
g->cur_om = &overmap_buffer.get(g, 0, 0);
|
||||
init_map(g);
|
||||
caravan(g);
|
||||
return true;
|
||||
@@ -110,7 +111,7 @@ void defense_game::pre_action(game *g, action_id &act)
|
||||
g->add_msg("You don't need to sleep!");
|
||||
act = ACTION_NULL;
|
||||
}
|
||||
if (act == ACTION_SAVE) {
|
||||
if (act == ACTION_SAVE || act == ACTION_QUICKSAVE) {
|
||||
g->add_msg("You cannot save in defense mode!");
|
||||
act = ACTION_NULL;
|
||||
}
|
||||
@@ -186,21 +187,25 @@ void defense_game::init_constructions(game *g)
|
||||
|
||||
void defense_game::init_recipes(game *g)
|
||||
{
|
||||
for (int i = 0; i < g->recipes.size(); i++) {
|
||||
g->recipes[i]->time /= 10; // Things take turns, not minutes
|
||||
}
|
||||
for (recipe_map::iterator map_iter = g->recipes.begin(); map_iter != g->recipes.end(); ++map_iter)
|
||||
{
|
||||
for (recipe_list::iterator list_iter = map_iter->second.begin(); list_iter != map_iter->second.end(); ++list_iter)
|
||||
{
|
||||
(*list_iter)->time /= 10; // Things take turns, not minutes
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void defense_game::init_map(game *g)
|
||||
{
|
||||
for (int x = 0; x < OMAPX; x++) {
|
||||
for (int y = 0; y < OMAPY; y++) {
|
||||
g->cur_om.ter(x, y, 0) = ot_field;
|
||||
g->cur_om.seen(x, y, 0) = true;
|
||||
g->cur_om->ter(x, y, 0) = ot_field;
|
||||
g->cur_om->seen(x, y, 0) = true;
|
||||
}
|
||||
}
|
||||
|
||||
g->cur_om.save();
|
||||
g->cur_om->save();
|
||||
g->levx = 100;
|
||||
g->levy = 100;
|
||||
g->levz = 0;
|
||||
@@ -212,29 +217,29 @@ void defense_game::init_map(game *g)
|
||||
case DEFLOC_HOSPITAL:
|
||||
for (int x = 49; x <= 51; x++) {
|
||||
for (int y = 49; y <= 51; y++)
|
||||
g->cur_om.ter(x, y, 0) = ot_hospital;
|
||||
g->cur_om->ter(x, y, 0) = ot_hospital;
|
||||
}
|
||||
g->cur_om.ter(50, 49, 0) = ot_hospital_entrance;
|
||||
g->cur_om->ter(50, 49, 0) = ot_hospital_entrance;
|
||||
break;
|
||||
|
||||
case DEFLOC_MALL:
|
||||
for (int x = 49; x <= 51; x++) {
|
||||
for (int y = 49; y <= 51; y++)
|
||||
g->cur_om.ter(x, y, 0) = ot_megastore;
|
||||
g->cur_om->ter(x, y, 0) = ot_megastore;
|
||||
}
|
||||
g->cur_om.ter(50, 49, 0) = ot_megastore_entrance;
|
||||
g->cur_om->ter(50, 49, 0) = ot_megastore_entrance;
|
||||
break;
|
||||
|
||||
case DEFLOC_BAR:
|
||||
g->cur_om.ter(50, 50, 0) = ot_bar_north;
|
||||
g->cur_om->ter(50, 50, 0) = ot_bar_north;
|
||||
break;
|
||||
|
||||
case DEFLOC_MANSION:
|
||||
for (int x = 49; x <= 51; x++) {
|
||||
for (int y = 49; y <= 51; y++)
|
||||
g->cur_om.ter(x, y, 0) = ot_mansion;
|
||||
g->cur_om->ter(x, y, 0) = ot_mansion;
|
||||
}
|
||||
g->cur_om.ter(50, 49, 0) = ot_mansion_entrance;
|
||||
g->cur_om->ter(50, 49, 0) = ot_mansion_entrance;
|
||||
break;
|
||||
}
|
||||
// Init the map
|
||||
@@ -252,11 +257,11 @@ void defense_game::init_map(game *g)
|
||||
// Round down to the nearest even number
|
||||
mx -= mx % 2;
|
||||
my -= my % 2;
|
||||
tinymap tm(&g->itypes, &g->mapitems, &g->traps);
|
||||
tm.generate(g, &(g->cur_om), mx, my, 0, int(g->turn));
|
||||
tinymap tm(&g->traps);
|
||||
tm.generate(g, g->cur_om, mx, my, 0, int(g->turn));
|
||||
tm.clear_spawns();
|
||||
tm.clear_traps();
|
||||
tm.save(&g->cur_om, int(g->turn), mx, my, 0);
|
||||
tm.save(g->cur_om, int(g->turn), mx, my, 0);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -268,7 +273,7 @@ void defense_game::init_map(game *g)
|
||||
std::vector<point> valid;
|
||||
for (int x = g->u.posx - 1; x <= g->u.posx + 1; x++) {
|
||||
for (int y = g->u.posy - 1; y <= g->u.posy + 1; y++) {
|
||||
if (generator.can_move_to(g->m, x, y) && g->is_empty(x, y))
|
||||
if (generator.can_move_to(g, x, y) && g->is_empty(x, y))
|
||||
valid.push_back( point(x, y) );
|
||||
}
|
||||
}
|
||||
@@ -435,7 +440,7 @@ void defense_game::init_to_style(defense_style new_style)
|
||||
|
||||
void defense_game::setup()
|
||||
{
|
||||
WINDOW* w = newwin(25, 80, 0, 0);
|
||||
WINDOW* w = newwin(FULL_SCREEN_HEIGHT, FULL_SCREEN_WIDTH, 0, 0);
|
||||
int selection = 1;
|
||||
refresh_setup(w, selection);
|
||||
|
||||
@@ -713,7 +718,7 @@ std::string defense_style_name(defense_style style)
|
||||
case DEFENSE_TRIFFIDS: return "Day of the Triffids";
|
||||
case DEFENSE_SKYNET: return "Skynet";
|
||||
case DEFENSE_LOVECRAFT: return "The Call of Cthulhu";
|
||||
default: return "Bug! Report this!";
|
||||
default: return "Bug! (bug in defense.cpp:defense_style_name)";
|
||||
}
|
||||
}
|
||||
|
||||
@@ -742,19 +747,19 @@ std::string defense_style_description(defense_style style)
|
||||
case DEFENSE_LOVECRAFT:
|
||||
return "Ward off legions of eldritch horrors.";
|
||||
default:
|
||||
return "What the heck is this I don't even know. A bug!";
|
||||
return "What the heck is this I don't even know. (defense.cpp:defense_style_description)";
|
||||
}
|
||||
}
|
||||
|
||||
std::string defense_location_name(defense_location location)
|
||||
{
|
||||
switch (location) {
|
||||
case DEFLOC_NULL: return "Nowhere?! A bug!";
|
||||
case DEFLOC_NULL: return "Nowhere?! (bug in defense.cpp:defense_location_name)";
|
||||
case DEFLOC_HOSPITAL: return "Hospital";
|
||||
case DEFLOC_MALL: return "Megastore";
|
||||
case DEFLOC_BAR: return "Bar";
|
||||
case DEFLOC_MANSION: return "Mansion";
|
||||
default: return "a ghost's house (bug)";
|
||||
default: return "a ghost's house (bug in defense.cpp:defense_location_name)";
|
||||
}
|
||||
}
|
||||
|
||||
@@ -762,7 +767,7 @@ std::string defense_location_description(defense_location location)
|
||||
{
|
||||
switch (location) {
|
||||
case DEFLOC_NULL:
|
||||
return "NULL Bug.";
|
||||
return "NULL Bug. (defense.cpp:defense_location_description)";
|
||||
case DEFLOC_HOSPITAL:
|
||||
return "One entrance and many rooms. Some medical supplies.";
|
||||
case DEFLOC_MALL:
|
||||
@@ -772,7 +777,7 @@ std::string defense_location_description(defense_location location)
|
||||
case DEFLOC_MANSION:
|
||||
return "A large house with many rooms and.";
|
||||
default:
|
||||
return "Unknown data bug.";
|
||||
return "Unknown data bug. (defense.cpp:defense_location_description)";
|
||||
}
|
||||
}
|
||||
|
||||
@@ -796,7 +801,7 @@ void defense_game::caravan(game *g)
|
||||
|
||||
int total_price = 0;
|
||||
|
||||
WINDOW *w = newwin(25, 80, 0, 0);
|
||||
WINDOW *w = newwin(FULL_SCREEN_HEIGHT, FULL_SCREEN_WIDTH, 0, 0);
|
||||
|
||||
int offset = 0, item_selected = 0, category_selected = 0;
|
||||
|
||||
@@ -1021,7 +1026,7 @@ std::string caravan_category_name(caravan_category cat)
|
||||
case CARAVAN_CLOTHES: return "Clothing & Armor";
|
||||
case CARAVAN_TOOLS: return "Tools, Traps & Grenades";
|
||||
}
|
||||
return "BUG";
|
||||
return "BUG (defense.cpp:caravan_category_name)";
|
||||
}
|
||||
|
||||
std::vector<itype_id> caravan_items(caravan_category cat)
|
||||
@@ -1032,14 +1037,14 @@ std::vector<itype_id> caravan_items(caravan_category cat)
|
||||
return ret;
|
||||
|
||||
case CARAVAN_MELEE:
|
||||
setvector(ret,
|
||||
setvector(&ret,
|
||||
"hammer", "bat", "mace", "morningstar", "hammer_sledge", "hatchet",
|
||||
"knife_combat", "rapier", "machete", "katana", "spear_knife",
|
||||
"pike", "chainsaw_off", NULL);
|
||||
break;
|
||||
|
||||
case CARAVAN_GUNS:
|
||||
setvector(ret,
|
||||
setvector(&ret,
|
||||
"crossbow", "bolt_steel", "compbow", "arrow_cf", "marlin_9a",
|
||||
"22_lr", "hk_mp5", "9mm", "taurus_38", "38_special", "deagle_44",
|
||||
"44magnum", "m1911", "hk_ump45", "45_acp", "fn_p90", "57mm",
|
||||
@@ -1049,21 +1054,21 @@ std::vector<itype_id> caravan_items(caravan_category cat)
|
||||
break;
|
||||
|
||||
case CARAVAN_COMPONENTS:
|
||||
setvector(ret,
|
||||
setvector(&ret,
|
||||
"rag", "fur", "leather", "superglue", "string_36", "chain",
|
||||
"processor", "RAM", "power_supply", "motor", "hose", "pot",
|
||||
"2x4", "battery", "nail", "gasoline", NULL);
|
||||
break;
|
||||
|
||||
case CARAVAN_FOOD:
|
||||
setvector(ret,
|
||||
setvector(&ret,
|
||||
"1st_aid", "water", "energy_drink", "whiskey", "can_beans",
|
||||
"mre_beef", "flour", "inhaler", "codeine", "oxycodone", "adderall",
|
||||
"cig", "meth", "royal_jelly", "mutagen", "purifier", NULL);
|
||||
break;
|
||||
|
||||
case CARAVAN_CLOTHES:
|
||||
setvector(ret,
|
||||
setvector(&ret,
|
||||
"backpack", "vest", "trenchcoat", "jacket_leather", "kevlar",
|
||||
"gloves_fingerless", "mask_filter", "mask_gas", "glasses_eye",
|
||||
"glasses_safety", "goggles_ski", "goggles_nv", "helmet_ball",
|
||||
@@ -1071,7 +1076,7 @@ std::vector<itype_id> caravan_items(caravan_category cat)
|
||||
break;
|
||||
|
||||
case CARAVAN_TOOLS:
|
||||
setvector(ret,
|
||||
setvector(&ret,
|
||||
"screwdriver", "wrench", "saw", "hacksaw", "lighter", "sewing_kit",
|
||||
"scissors", "extinguisher", "flashlight", "hotplate",
|
||||
"soldering_iron", "shovel", "jackhammer", "landmine", "teleporter",
|
||||
@@ -1112,25 +1117,25 @@ void draw_caravan_borders(WINDOW *w, int current_window)
|
||||
mvwputch(w, i, 39, col, LINE_XOXO);
|
||||
}
|
||||
for (int i = 1; i <= 38; i++)
|
||||
mvwputch(w, 24, i, c_ltgray, LINE_OXOX);
|
||||
mvwputch(w, FULL_SCREEN_HEIGHT-1, i, c_ltgray, LINE_OXOX);
|
||||
|
||||
mvwputch(w, 24, 0, c_ltgray, LINE_XXOO);
|
||||
mvwputch(w, 24, 39, c_ltgray, LINE_XXOX);
|
||||
mvwputch(w, FULL_SCREEN_HEIGHT-1, 0, c_ltgray, LINE_XXOO);
|
||||
mvwputch(w, FULL_SCREEN_HEIGHT-1, 39, c_ltgray, LINE_XXOX);
|
||||
|
||||
// Finally, draw the item section borders
|
||||
for (int i = 40; i <= 78; i++) {
|
||||
for (int i = 40; i <= FULL_SCREEN_WIDTH-2; i++) {
|
||||
mvwputch(w, 0, i, col, LINE_OXOX);
|
||||
mvwputch(w, 24, i, col, LINE_OXOX);
|
||||
mvwputch(w, FULL_SCREEN_HEIGHT-1, i, col, LINE_OXOX);
|
||||
}
|
||||
for (int i = 1; i <= 23; i++)
|
||||
mvwputch(w, i, 79, col, LINE_XOXO);
|
||||
for (int i = 1; i <= FULL_SCREEN_HEIGHT-2; i++)
|
||||
mvwputch(w, i, FULL_SCREEN_WIDTH-1, col, LINE_XOXO);
|
||||
|
||||
mvwputch(w, 24, 39, col, LINE_XXOX);
|
||||
mvwputch(w, 0, 79, col, LINE_OOXX);
|
||||
mvwputch(w, 24, 79, col, LINE_XOOX);
|
||||
mvwputch(w, FULL_SCREEN_HEIGHT-1, 39, col, LINE_XXOX);
|
||||
mvwputch(w, 0, FULL_SCREEN_WIDTH-1, col, LINE_OOXX);
|
||||
mvwputch(w, FULL_SCREEN_HEIGHT-1, FULL_SCREEN_WIDTH-1, col, LINE_XOOX);
|
||||
|
||||
// Quick reminded about help.
|
||||
mvwprintz(w, 24, 2, c_red, "Press ? for help.");
|
||||
mvwprintz(w, FULL_SCREEN_HEIGHT-1, 2, c_red, "Press ? for help.");
|
||||
wrefresh(w);
|
||||
}
|
||||
|
||||
@@ -1160,7 +1165,7 @@ void draw_caravan_items(WINDOW *w, game *g, std::vector<itype_id> *items,
|
||||
// will corrupt the item list.
|
||||
|
||||
// Actually, clear the item info first.
|
||||
for (int i = 12; i <= 23; i++)
|
||||
for (int i = 12; i <= FULL_SCREEN_HEIGHT-2; i++)
|
||||
mvwprintz(w, i, 1, c_black, "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx");
|
||||
// THEN print it--if item_selected is valid
|
||||
if (item_selected < items->size()) {
|
||||
@@ -1168,10 +1173,10 @@ void draw_caravan_items(WINDOW *w, game *g, std::vector<itype_id> *items,
|
||||
mvwprintz(w, 12, 0, c_white, tmp.info().c_str());
|
||||
}
|
||||
// Next, clear the item list on the right
|
||||
for (int i = 1; i <= 23; i++)
|
||||
for (int i = 1; i <= FULL_SCREEN_HEIGHT-2; i++)
|
||||
mvwprintz(w, i, 40, c_black, "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx");
|
||||
// Finally, print the item list on the right
|
||||
for (int i = offset; i <= offset + 23 && i < items->size(); i++) {
|
||||
for (int i = offset; i <= offset + FULL_SCREEN_HEIGHT-2 && i < items->size(); i++) {
|
||||
mvwprintz(w, i - offset + 1, 40, (item_selected == i ? h_white : c_white),
|
||||
g->itypes[ (*items)[i] ]->name.c_str());
|
||||
wprintz(w, c_white, " x %s%d", ((*counts)[i] >= 10 ? "" : " "), (*counts)[i]);
|
||||
|
||||
@@ -89,6 +89,7 @@ struct talk_response
|
||||
int mission_index;
|
||||
mission_id miss; // If it generates a new mission
|
||||
int tempvalue; // Used for various stuff
|
||||
Skill* skill;
|
||||
npc_opinion opinion_success;
|
||||
npc_opinion opinion_failure;
|
||||
void (talk_function::*effect_success)(game *, npc *);
|
||||
@@ -104,6 +105,7 @@ struct talk_response
|
||||
mission_index = -1;
|
||||
miss = MISSION_NULL;
|
||||
tempvalue = -1;
|
||||
skill = NULL;
|
||||
effect_success = &talk_function::nothing;
|
||||
effect_failure = &talk_function::nothing;
|
||||
opinion_success = npc_opinion();
|
||||
@@ -120,6 +122,7 @@ struct talk_response
|
||||
mission_index = rhs.mission_index;
|
||||
miss = rhs.miss;
|
||||
tempvalue = rhs.tempvalue;
|
||||
skill = rhs.skill;
|
||||
effect_success = rhs.effect_success;
|
||||
effect_failure = rhs.effect_failure;
|
||||
opinion_success = rhs.opinion_success;
|
||||
|
||||
+1091
-720
File diff suppressed because it is too large
Load Diff
@@ -8,7 +8,7 @@
|
||||
|
||||
#define MIN_DISEASE_AGE (-43200) // Permanent disease capped @ 3 days
|
||||
|
||||
struct game;
|
||||
class game;
|
||||
|
||||
void dis_msg(game *g, dis_type type);
|
||||
|
||||
@@ -20,4 +20,6 @@ std::string dis_name(disease dis);
|
||||
|
||||
std::string dis_description(disease dis);
|
||||
|
||||
dis_type disease_for_body_part(dis_type base, int body_part);
|
||||
|
||||
#endif
|
||||
|
||||
@@ -5,14 +5,19 @@
|
||||
#define sgn(x) (((x) < 0) ? -1 : 1)
|
||||
#endif
|
||||
|
||||
enum material {
|
||||
MNULL = 0,
|
||||
//Food Materials
|
||||
LIQUID, VEGGY, FLESH, POWDER, HFLESH, //Human Flesh.
|
||||
//Clothing
|
||||
COTTON, WOOL, LEATHER, KEVLAR, FUR,
|
||||
//Other
|
||||
STONE, PAPER, WOOD, PLASTIC, GLASS, IRON, STEEL, SILVER
|
||||
enum phase_id {
|
||||
PNULL, SOLID, LIQUID, GAS, PLASMA
|
||||
};
|
||||
|
||||
enum damage_type
|
||||
{
|
||||
DNULL = 0,
|
||||
BASH,
|
||||
CUT,
|
||||
ACID,
|
||||
ELECTRICITY,
|
||||
FIRE,
|
||||
NUM_DAM_TYPES
|
||||
};
|
||||
|
||||
struct point {
|
||||
|
||||
@@ -25,7 +25,7 @@ void event::actualize(game *g)
|
||||
tmp.attitude = NPCATT_DEFEND;
|
||||
tmp.posx = g->u.posx - SEEX * 2 + rng(-5, 5);
|
||||
tmp.posy = g->u.posy - SEEY * 2 + rng(-5, 5);
|
||||
g->active_npc.push_back(tmp);
|
||||
g->active_npc.push_back(&tmp);
|
||||
}
|
||||
} break;
|
||||
|
||||
@@ -124,8 +124,7 @@ void event::actualize(game *g)
|
||||
for (int y = 0; y < SEEY * MAPSIZE; y++) {
|
||||
if (g->m.ter(x, y) == t_grate) {
|
||||
g->m.ter_set(x, y, t_stairs_down);
|
||||
int j;
|
||||
if (!saw_grate && g->u_see(x, y, j))
|
||||
if (!saw_grate && g->u_see(x, y))
|
||||
saw_grate = true;
|
||||
}
|
||||
}
|
||||
@@ -230,8 +229,7 @@ void event::per_turn(game *g)
|
||||
return; // We're safely indoors!
|
||||
eyebot.spawn(place.x, place.y);
|
||||
g->z.push_back(eyebot);
|
||||
int t;
|
||||
if (g->u_see(place.x, place.y, t))
|
||||
if (g->u_see(place.x, place.y))
|
||||
g->add_msg("An eyebot swoops down nearby!");
|
||||
}
|
||||
} break;
|
||||
|
||||
+4
-4
@@ -57,7 +57,7 @@ faction::faction(int uid)
|
||||
mapy = 0;
|
||||
size = 0;
|
||||
power = 0;
|
||||
uid = id;
|
||||
id = uid;
|
||||
}
|
||||
|
||||
|
||||
@@ -92,9 +92,9 @@ void faction::load_info(std::string data)
|
||||
goal = faction_goal(goaltmp);
|
||||
job1 = faction_job(jobtmp1);
|
||||
job2 = faction_job(jobtmp2);
|
||||
int size, tmpop;
|
||||
dump >> size;
|
||||
for (int i = 0; i < size; i++) {
|
||||
int tmpsize, tmpop;
|
||||
dump >> tmpsize;
|
||||
for (int i = 0; i < tmpsize; i++) {
|
||||
dump >> tmpop;
|
||||
opinion_of.push_back(tmpop);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,340 @@
|
||||
#ifndef _FIELD_H_
|
||||
#define _FIELD_H_
|
||||
|
||||
#include <vector>
|
||||
#include <string>
|
||||
#include "color.h"
|
||||
#include "item.h"
|
||||
#include "trap.h"
|
||||
#include "monster.h"
|
||||
#include "enums.h"
|
||||
#include "computer.h"
|
||||
#include "vehicle.h"
|
||||
#include "graffiti.h"
|
||||
#include "basecamp.h"
|
||||
#include "iexamine.h"
|
||||
#include <iosfwd>
|
||||
|
||||
/*
|
||||
struct field_t
|
||||
Used to store the master field effects list metadata. Not used to store a field, just queried to find out specifics
|
||||
of an existing field.
|
||||
*/
|
||||
struct field_t {
|
||||
std::string name[3]; //The display name of the given density (ie: light smoke, smoke, heavy smoke)
|
||||
char sym; //The symbol to draw for this field. Note that some are reserved like * and %. You will have to check the draw function for specifics.
|
||||
nc_color color[3]; //The color the field will be drawn as on the screen, by density.
|
||||
|
||||
/*
|
||||
If true, does not invoke a check to block line of sight. If false, may block line of sight.
|
||||
Note that this does nothing by itself. You must go to the code block in lightmap.cpp and modify
|
||||
transparancy code there with a case statement as well!
|
||||
*/
|
||||
bool transparent[3];
|
||||
|
||||
//Dangerous tiles ask you before you step in them.
|
||||
bool dangerous[3];
|
||||
|
||||
//Controls, albeit randomly, how long a field of a given type will last before going down in density.
|
||||
int halflife; // In turns
|
||||
|
||||
//cost of moving into and out of this field
|
||||
int move_cost[3];
|
||||
};
|
||||
|
||||
//The master list of id's for a field, corresponding to the fieldlist array.
|
||||
enum field_id {
|
||||
fd_null = 0,
|
||||
fd_blood,
|
||||
fd_bile,
|
||||
fd_gibs_flesh,
|
||||
fd_gibs_veggy,
|
||||
fd_web,
|
||||
fd_slime,
|
||||
fd_acid,
|
||||
fd_sap,
|
||||
fd_sludge,
|
||||
fd_fire,
|
||||
fd_rubble,
|
||||
fd_smoke,
|
||||
fd_toxic_gas,
|
||||
fd_tear_gas,
|
||||
fd_nuke_gas,
|
||||
fd_gas_vent,
|
||||
fd_fire_vent,
|
||||
fd_flame_burst,
|
||||
fd_electricity,
|
||||
fd_fatigue,
|
||||
fd_push_items,
|
||||
fd_shock_vent,
|
||||
fd_acid_vent,
|
||||
num_fields
|
||||
};
|
||||
|
||||
/*
|
||||
Controls the master listing of all possible field effects, indexed by a field_id. Does not store active fields, just metadata.
|
||||
*/
|
||||
const field_t fieldlist[] = {
|
||||
{
|
||||
{"", "", ""}, '%',
|
||||
{c_white, c_white, c_white}, {true, true, true}, {false, false, false}, 0,
|
||||
{0,0,0}
|
||||
},
|
||||
|
||||
{
|
||||
{"blood splatter", "blood stain", "puddle of blood"}, '%',
|
||||
{c_red, c_red, c_red}, {true, true, true}, {false, false, false}, 2500,
|
||||
{0,0,0}
|
||||
},
|
||||
{
|
||||
{"bile splatter", "bile stain", "puddle of bile"}, '%',
|
||||
{c_pink, c_pink, c_pink}, {true, true, true}, {false, false, false},2500,
|
||||
{0,0,0}
|
||||
},
|
||||
|
||||
{
|
||||
{"scraps of flesh", "bloody meat chunks", "heap of gore"}, '~',
|
||||
{c_brown, c_ltred, c_red}, {true, true, true}, {false, false, false}, 2500,
|
||||
{0,0,0}
|
||||
},
|
||||
|
||||
{
|
||||
{"shredded leaves and twigs", "shattered branches and leaves", "broken vegetation tangle"}, '~',
|
||||
{c_ltgreen, c_ltgreen, c_green}, {true, true, true}, {false, false, false}, 2500,
|
||||
{0,0,0}
|
||||
},
|
||||
|
||||
{
|
||||
{"cobwebs","webs", "thick webs"}, '}',
|
||||
{c_white, c_white, c_white}, {true, true, false},{false, false, false}, 0,
|
||||
{0,0,0}
|
||||
},
|
||||
|
||||
{
|
||||
{"slime trail", "slime stain", "puddle of slime"}, '%',
|
||||
{c_ltgreen, c_ltgreen, c_green},{true, true, true},{false, false, false},2500,
|
||||
{0,0,0}
|
||||
},
|
||||
|
||||
{
|
||||
{"acid splatter", "acid streak", "pool of acid"}, '5',
|
||||
{c_ltgreen, c_green, c_green}, {true, true, true}, {true, true, true}, 10,
|
||||
{0,0,0}
|
||||
},
|
||||
|
||||
{
|
||||
{"sap splatter", "glob of sap", "pool of sap"}, '5',
|
||||
{c_yellow, c_brown, c_brown}, {true, true, true}, {true, true, true}, 20,
|
||||
{0,0,0}
|
||||
},
|
||||
|
||||
{
|
||||
{"thin sludge trail", "sludge trail", "thick sludge trail"}, '5',
|
||||
{c_ltgray, c_dkgray, c_black}, {true, true, true}, {false, false, false}, 900,
|
||||
{0,0,0}
|
||||
},
|
||||
|
||||
{
|
||||
{"small fire", "fire", "raging fire"}, '4',
|
||||
{c_yellow, c_ltred, c_red}, {true, true, true}, {true, true, true}, 800,
|
||||
{0,0,0}
|
||||
},
|
||||
|
||||
{
|
||||
{"rubble heap", "rubble pile", "mountain of rubble"}, '#',
|
||||
{c_dkgray, c_dkgray, c_dkgray}, {true, true, false},{false, false, false}, 0,
|
||||
{0,0,0}
|
||||
},
|
||||
|
||||
{
|
||||
{"thin smoke", "smoke", "thick smoke"}, '8',
|
||||
{c_white, c_ltgray, c_dkgray}, {true, false, false},{false, true, true}, 300,
|
||||
{0,0,0}
|
||||
},
|
||||
|
||||
{
|
||||
{"hazy cloud","toxic gas","thick toxic gas"}, '8',
|
||||
{c_white, c_ltgreen, c_green}, {true, false, false},{false, true, true}, 900,
|
||||
{0,0,0}
|
||||
},
|
||||
|
||||
{
|
||||
{"hazy cloud","tear gas","thick tear gas"}, '8',
|
||||
{c_white, c_yellow, c_brown}, {true, false, false},{true, true, true}, 600,
|
||||
{0,0,0}
|
||||
},
|
||||
|
||||
{
|
||||
{"hazy cloud","radioactive gas", "thick radioactive gas"}, '8',
|
||||
{c_white, c_ltgreen, c_green}, {true, true, false}, {true, true, true}, 1000,
|
||||
{0,0,0}
|
||||
},
|
||||
|
||||
{
|
||||
{"gas vent", "gas vent", "gas vent"}, '%',
|
||||
{c_white, c_white, c_white}, {true, true, true}, {false, false, false}, 0,
|
||||
{0,0,0}
|
||||
},
|
||||
|
||||
{ // Fire Vents
|
||||
{"", "", ""}, '&',
|
||||
{c_white, c_white, c_white}, {true, true, true}, {false, false, false}, 0,
|
||||
{0,0,0}
|
||||
},
|
||||
|
||||
{
|
||||
{"fire", "fire", "fire"}, '5',
|
||||
{c_red, c_red, c_red}, {true, true, true}, {true, true, true}, 0,
|
||||
{0,0,0}
|
||||
},
|
||||
|
||||
{
|
||||
{"sparks", "electric crackle", "electric cloud"}, '9',
|
||||
{c_white, c_cyan, c_blue}, {true, true, true}, {true, true, true}, 2,
|
||||
{0,0,0}
|
||||
},
|
||||
|
||||
{
|
||||
{"odd ripple", "swirling air", "tear in reality"}, '*',
|
||||
{c_ltgray, c_dkgray, c_magenta},{true, true, false},{false, false, false}, 0,
|
||||
{0,0,0}
|
||||
},
|
||||
|
||||
{ //Push Items
|
||||
{"", "", ""}, '&',
|
||||
{c_white, c_white, c_white}, {true, true, true}, {false, false, false}, 0,
|
||||
{0,0,0}
|
||||
},
|
||||
|
||||
{ // shock vents
|
||||
{"", "", ""}, '&',
|
||||
{c_white, c_white, c_white}, {true, true, true}, {false, false, false}, 0,
|
||||
{0,0,0}
|
||||
},
|
||||
|
||||
{ // acid vents
|
||||
{"", "", ""}, '&',
|
||||
{c_white, c_white, c_white}, {true, true, true}, {false, false, false}, 0,
|
||||
{0,0,0}
|
||||
}
|
||||
};
|
||||
|
||||
/*
|
||||
Class: field_entry
|
||||
An active or passive effect existing on a tile. Multiple different types can exist on one tile
|
||||
but there can be only one of each type (IE: one fire, one smoke cloud, etc). Each effect
|
||||
can vary in intensity (density) and age (usually used as a time to live).
|
||||
*/
|
||||
class field_entry {
|
||||
public:
|
||||
field_entry() {
|
||||
type = fd_null;
|
||||
density = 1;
|
||||
age = 0;
|
||||
is_alive = false;
|
||||
};
|
||||
|
||||
field_entry(field_id t, unsigned char d, unsigned int a) {
|
||||
type = t;
|
||||
density = d;
|
||||
age = a;
|
||||
is_alive = true;
|
||||
}
|
||||
|
||||
//returns the move cost of this field
|
||||
int move_cost() const;
|
||||
|
||||
//Returns the field_id of the current field entry.
|
||||
field_id getFieldType() const;
|
||||
|
||||
//Returns the current density (aka intensity) of the current field entry.
|
||||
signed char getFieldDensity() const;
|
||||
|
||||
//Returns the age (usually turns to live) of the current field entry.
|
||||
int getFieldAge() const;
|
||||
|
||||
//Allows you to modify the field_id of the current field entry.
|
||||
field_id setFieldType(const field_id new_field_id);
|
||||
|
||||
//Allows you to modify the density of the current field entry.
|
||||
signed char setFieldDensity(const signed char new_density);
|
||||
|
||||
//Allows you to modify the age of the current field entry.
|
||||
int setFieldAge(const int new_age);
|
||||
|
||||
//Get the move cost for this field
|
||||
int getFieldMoveCost();
|
||||
|
||||
//Returns if the current field is dangerous or not.
|
||||
bool is_dangerous() const
|
||||
{
|
||||
return fieldlist[type].dangerous[density - 1];
|
||||
}
|
||||
|
||||
//Returns the display name of the current field given its current density.
|
||||
//IE: light smoke, smoke, heavy smoke
|
||||
std::string name() const
|
||||
{
|
||||
return fieldlist[type].name[density - 1];
|
||||
}
|
||||
|
||||
//Returns true if this is an active field, false if it should be removed.
|
||||
bool isAlive(){
|
||||
return is_alive;
|
||||
}
|
||||
|
||||
private:
|
||||
field_id type; //The field identifier.
|
||||
signed char density; //The density, or intensity (higher is stronger), of the field entry.
|
||||
int age; //The age, or time to live, of the field effect. 0 is permanent.
|
||||
bool is_alive; //True if this is an active field, false if it should be destroyed next check.
|
||||
};
|
||||
|
||||
//Represents a variable sized collection of field entries on a given map square.
|
||||
class field{
|
||||
public:
|
||||
//Field constructor
|
||||
field();
|
||||
//Frees all memory assigned to the field's field_entry vector and general cleanup.
|
||||
~field();
|
||||
|
||||
//Returns a field entry corresponding to the field_id parameter passed in.
|
||||
//If no fields are found then a field_entry with type fd_null is returned.
|
||||
field_entry* findField(const field_id field_to_find);
|
||||
const field_entry* findFieldc(const field_id field_to_find); //for when you want a const field_entry.
|
||||
|
||||
//Inserts the given field_id into the field list for a given tile if it does not already exist.
|
||||
//Returns false if the field_id already exists, true otherwise.
|
||||
//If you wish to modify an already existing field use findField and modify the result.
|
||||
//Density defaults to 1, and age to 0 (permanent) if not specified.
|
||||
bool addField(const field_id field_to_add,const unsigned char new_density=1, const int new_age=0);
|
||||
|
||||
//Removes the field entry with a type equal to the field_id parameter. Returns true if removed, false otherwise.
|
||||
bool removeField(const field_id field_to_remove);
|
||||
|
||||
//Returns the number of fields existing on the current tile.
|
||||
unsigned int fieldCount() const;
|
||||
|
||||
//Returns the last added field from the tile for drawing purposes.
|
||||
//This can be changed to return whatever you think the most important field to draw is.
|
||||
field_id fieldSymbol() const;
|
||||
|
||||
//Returns the vector iterator to begin searching through the list.
|
||||
//Note: If you are using "field_at" function, set the return to a temporary field variable! If you somehow
|
||||
//query an out of bounds field location it returns a different field every inquery. This means that
|
||||
//the start and end iterators won't match up and will crash the system.
|
||||
std::vector<field_entry*>::iterator getFieldStart();
|
||||
|
||||
//Returns the vector iterator to end searching through the list.
|
||||
std::vector<field_entry*>::iterator getFieldEnd();
|
||||
|
||||
//Returns the total move cost from all fields
|
||||
int move_cost() const;
|
||||
|
||||
private:
|
||||
std::vector<field_entry*> field_list; //A listing of all field effects on the current tile.
|
||||
//Draw_symbol currently is equal to the last field added to the square. You can modify this behavior in the class functions if you wish.
|
||||
field_id draw_symbol;
|
||||
bool dirty; //true if this is a copy of the class, false otherwise.
|
||||
};
|
||||
#endif
|
||||
@@ -23,8 +23,10 @@
|
||||
#include "mutation.h"
|
||||
#include "gamemode.h"
|
||||
#include "action.h"
|
||||
#include "translations.h"
|
||||
#include <vector>
|
||||
#include <map>
|
||||
#include <list>
|
||||
#include <stdarg.h>
|
||||
|
||||
// Fixed window sizes
|
||||
@@ -46,8 +48,16 @@
|
||||
#define BULLET_SPEED 10000000
|
||||
#define EXPLOSION_SPEED 70000000
|
||||
|
||||
#define PICKUP_RANGE 2
|
||||
#define MAX_ITEM_IN_SQUARE 1024 // really just a sanity check for functions not tested beyond this. in theory 4096 works (`InvletInvlet)
|
||||
#define MAX_VOLUME_IN_SQUARE 1000 // 6.25 dead bears is enough for everybody!
|
||||
#define MAX_ITEM_IN_VEHICLE_STORAGE MAX_ITEM_IN_SQUARE // no reason to differ
|
||||
#define MAX_VOLUME_IN_VEHICLE_STORAGE 500 // todo: variation. semi trailer square could hold more. the real limit would be weight
|
||||
|
||||
// The reference to the one and only game instance.
|
||||
extern game *g;
|
||||
|
||||
#define PICKUP_RANGE 2
|
||||
extern bool trigdist;
|
||||
enum tut_type {
|
||||
TUT_NULL,
|
||||
TUT_BASIC, TUT_COMBAT,
|
||||
@@ -112,20 +122,27 @@ class game
|
||||
void vadd_msg(const char* msg, va_list ap );
|
||||
void add_msg(const char* msg, ...);
|
||||
void add_msg_if_player(player *p, const char* msg, ...);
|
||||
std::string press_x(action_id act); // (Press X (or Y)|Try) to Z
|
||||
std::string press_x(action_id act, std::string key_bound,
|
||||
std::string key_unbound);
|
||||
std::string press_x(action_id act, std::string key_bound_pre,
|
||||
std::string key_bound_suf, std::string key_unbound);
|
||||
std::string press_x(action_id act, std::string act_desc); // ('Z'ing|zing) (X( or Y)))
|
||||
void add_event(event_type type, int on_turn, int faction_id = -1,
|
||||
int x = -1, int y = -1);
|
||||
bool event_queued(event_type type);
|
||||
// Sound at (x, y) of intensity (vol), described to the player is (description)
|
||||
void sound(int x, int y, int vol, std::string description);
|
||||
// creates a list of coordinates to draw footsteps
|
||||
void add_footstep(int x, int y, int volume, int distance);
|
||||
std::vector<point> footsteps;
|
||||
void add_footstep(int x, int y, int volume, int distance, monster* source);
|
||||
std::vector<std::vector<point> > footsteps;
|
||||
std::vector<monster*> footsteps_source;
|
||||
// visual cue to monsters moving out of the players sight
|
||||
void draw_footsteps();
|
||||
// Explosion at (x, y) of intensity (power), with (shrapnel) chunks of shrapnel
|
||||
void explosion(int x, int y, int power, int shrapnel, bool fire);
|
||||
// Flashback at (x, y)
|
||||
void flashbang(int x, int y);
|
||||
void flashbang(int x, int y, bool player_immune = false);
|
||||
// Move the player vertically, if (force) then they fell
|
||||
void vertical_move(int z, bool force);
|
||||
void use_computer(int x, int y);
|
||||
@@ -143,8 +160,10 @@ class game
|
||||
// Kill that monster; fixes any pointers etc
|
||||
void kill_mon(int index, bool player_did_it = false);
|
||||
void explode_mon(int index); // Explode a monster; like kill_mon but messier
|
||||
void revive_corpse(int x, int y, int n); // revives a corpse from an item pile
|
||||
void revive_corpse(int x, int y, item *it); // revives a corpse by item pointer, caller handles item deletion
|
||||
// hit_monster_with_flags processes ammo flags (e.g. incendiary, etc)
|
||||
void hit_monster_with_flags(monster &z, unsigned int flags);
|
||||
void hit_monster_with_flags(monster &z, const std::set<std::string> &effects);
|
||||
void plfire(bool burst); // Player fires a gun (target selection)...
|
||||
// ... a gun is fired, maybe by an NPC (actual damage, etc.).
|
||||
void fire(player &p, int tarx, int tary, std::vector<point> &trajectory,
|
||||
@@ -153,6 +172,11 @@ class game
|
||||
std::vector<point> &trajectory);
|
||||
void cancel_activity();
|
||||
void cancel_activity_query(const char* message, ...);
|
||||
bool cancel_activity_or_ignore_query(const char* reason, ...);
|
||||
void moving_vehicle_dismount(int tox, int toy);
|
||||
// Get input from the player to choose an adjacent tile (for examine() etc)
|
||||
bool choose_adjacent(std::string verb, int &x, int&y);
|
||||
|
||||
int assign_mission_id(); // Just returns the next available one
|
||||
void give_mission(mission_id type); // Create the mission and assign it
|
||||
void assign_mission(int id); // Just assign an existing mission
|
||||
@@ -163,6 +187,7 @@ class game
|
||||
int reserve_random_mission(mission_origin origin, point p = point(-1, -1),
|
||||
int npc_id = -1);
|
||||
npc* find_npc(int id);
|
||||
int kill_count(mon_id mon); // Return the number of kills of a given mon_id
|
||||
mission* find_mission(int id); // Mission with UID=id; NULL if non-existant
|
||||
mission_type* find_mission_type(int id); // Same, but returns its type
|
||||
bool mission_complete(int id, int npc_id); // True if we made it
|
||||
@@ -175,7 +200,7 @@ class game
|
||||
void teleport(player *p = NULL);
|
||||
void plswim(int x, int y); // Called by plmove. Handles swimming
|
||||
// when player is thrown (by impact or something)
|
||||
void fling_player_or_monster(player *p, monster *zz, int dir, int flvel);
|
||||
void fling_player_or_monster(player *p, monster *zz, const int& dir, float flvel, bool controlled = false);
|
||||
|
||||
void nuke(int x, int y);
|
||||
std::vector<faction *> factions_at(int x, int y);
|
||||
@@ -187,8 +212,8 @@ class game
|
||||
int assign_faction_id();
|
||||
faction* faction_by_id(int it);
|
||||
bool sees_u(int x, int y, int &t);
|
||||
bool u_see (int x, int y, int &t);
|
||||
bool u_see (monster *mon, int &t);
|
||||
bool u_see (int x, int y);
|
||||
bool u_see (monster *mon);
|
||||
bool pl_sees(player *p, monster *mon, int &t);
|
||||
void refresh_all();
|
||||
void update_map(int &x, int &y); // Called by plmove when the map updates
|
||||
@@ -204,20 +229,31 @@ class game
|
||||
void add_artifact_messages(std::vector<art_effect_passive> effects);
|
||||
|
||||
void peek();
|
||||
point look_debug(point pnt=point(-256,-256));
|
||||
point look_around();// Look at nearby terrain ';'
|
||||
void list_items(); //List all items around the player
|
||||
bool list_items_match(std::string sText, std::string sPattern);
|
||||
std::string sFilter;
|
||||
char inv(std::string title = "Inventory:");
|
||||
char inv_type(std::string title = "Inventory:", int inv_item_type = 0);
|
||||
int list_filter_high_priority(std::vector<map_item_stack> &stack, std::string prorities);
|
||||
int list_filter_low_priority(std::vector<map_item_stack> &stack,int start, std::string prorities);
|
||||
std::vector<map_item_stack> filter_item_stacks(std::vector<map_item_stack> stack, std::string filter);
|
||||
std::vector<map_item_stack> find_nearby_items(int search_x, int search_y);
|
||||
std::string ask_item_filter(WINDOW* window, int rows);
|
||||
void draw_trail_to_square(std::vector<point>& vPoint, int x, int y);
|
||||
void reset_item_list_state(WINDOW* window, int height);
|
||||
std::string sFilter; // this is a member so that it's remembered over time
|
||||
std::string list_item_upvote;
|
||||
std::string list_item_downvote;
|
||||
char inv(std::string title);
|
||||
char inv_type(std::string title, item_cat inv_item_type = IC_NULL);
|
||||
int inventory_item_menu(char chItem, int startx = 0, int width = 50);
|
||||
std::vector<item> multidrop();
|
||||
faction* list_factions(std::string title = "FACTIONS:");
|
||||
point find_item(item *it);
|
||||
void remove_item(item *it);
|
||||
|
||||
inventory crafting_inventory(); // inv_from_map, inv, & 'weapon'
|
||||
void consume_items(std::vector<component> components);
|
||||
void consume_tools(std::vector<component> tools);
|
||||
inventory crafting_inventory(player *p); // inv_from_map, inv, & 'weapon'
|
||||
std::list<item> consume_items(player *p, std::vector<component> components);
|
||||
void consume_tools(player *p, std::vector<component> tools, bool force_available);
|
||||
|
||||
bool has_gametype() const { return gamemode && gamemode->id() != SGAME_NULL; }
|
||||
special_game_id gametype() const { return (gamemode) ? gamemode->id() : SGAME_NULL; }
|
||||
@@ -226,27 +262,30 @@ class game
|
||||
std::vector <mtype*> mtypes;
|
||||
std::vector <vehicle*> vtypes;
|
||||
std::vector <trap*> traps;
|
||||
std::vector<recipe*> recipes; // The list of valid recipes
|
||||
recipe_map recipes; // The list of valid recipes
|
||||
std::vector<constructable*> constructions; // The list of constructions
|
||||
|
||||
std::vector <itype_id> mapitems[num_itloc]; // Items at various map types
|
||||
std::vector <items_location_and_chance> monitems[num_monsters];
|
||||
std::vector <mission_type> mission_types; // The list of mission templates
|
||||
mutation_branch mutation_data[PF_MAX2]; // Mutation data
|
||||
std::map<char, action_id> keymap;
|
||||
std::map<char, action_id> default_keymap;
|
||||
|
||||
calendar turn;
|
||||
signed char temperature; // The air temperature
|
||||
weather_type weather; // Weather pattern--SEE weather.h
|
||||
|
||||
std::list<weather_segment> future_weather;
|
||||
|
||||
char nextinv; // Determines which letter the next inv item will have
|
||||
overmap cur_om;
|
||||
overmap *cur_om;
|
||||
map m;
|
||||
int levx, levy, levz; // Placement inside the overmap
|
||||
player u;
|
||||
std::vector<monster> z;
|
||||
std::vector<monster_and_count> coming_to_stairs;
|
||||
int monstairx, monstairy, monstairz;
|
||||
std::vector<npc> active_npc;
|
||||
std::vector<npc *> active_npc;
|
||||
std::vector<faction> factions;
|
||||
std::vector<mission> active_missions; // Missions which may be assigned
|
||||
// NEW: Dragging a piece of furniture, with a list of items contained
|
||||
@@ -254,11 +293,10 @@ class game
|
||||
std::vector<item> items_dragged;
|
||||
int weight_dragged; // Computed once, when you start dragging
|
||||
bool debugmon;
|
||||
bool starting_npc;
|
||||
bool random_npc;
|
||||
|
||||
std::map<int, std::map<int, bool> > mapRain;
|
||||
|
||||
int w_void_lines;
|
||||
WINDOW *w_terrain;
|
||||
WINDOW *w_minimap;
|
||||
WINDOW *w_HP;
|
||||
@@ -273,20 +311,48 @@ class game
|
||||
|
||||
void open_gate( game *g, const int examx, const int examy, const enum ter_id handle_type );
|
||||
|
||||
recipe* recipe_by_name(std::string name); // See crafting.cpp
|
||||
|
||||
bionic_id random_good_bionic() const; // returns a non-faulty, valid bionic
|
||||
|
||||
void load_artifacts(); // Load artifact data
|
||||
// Needs to be called by main() before MAPBUFFER.load
|
||||
|
||||
// Knockback functions: knock target at (tx,ty) along a line, either calculated
|
||||
// from source position (sx,sy) using force parameter or passed as an argument;
|
||||
// force determines how far target is knocked, if trajectory is calculated
|
||||
// force also determines damage along with dam_mult;
|
||||
// stun determines base number of turns target is stunned regardless of impact
|
||||
// stun == 0 means no stun, stun == -1 indicates only impact stun (wall or npc/monster)
|
||||
void knockback(int sx, int sy, int tx, int ty, int force, int stun, int dam_mult);
|
||||
void knockback(std::vector<point>& traj, int force, int stun, int dam_mult);
|
||||
|
||||
// shockwave applies knockback to all targets within radius of (x,y)
|
||||
// parameters force, stun, and dam_mult are passed to knockback()
|
||||
// ignore_player determines if player is affected, useful for bionic, etc.
|
||||
void shockwave(int x, int y, int radius, int force, int stun, int dam_mult, bool ignore_player);
|
||||
|
||||
private:
|
||||
// Game-start procedures
|
||||
bool opening_screen();// Warn about screen size, then present the main menu
|
||||
void print_menu(WINDOW* w_open, int iSel, const int iMenuOffsetX, int iMenuOffsetY, bool bShowDDA = true);
|
||||
void print_menu_items(WINDOW* w_in, std::vector<std::string> vItems, int iSel, int iOffsetY, int iOffsetX);
|
||||
bool load_master(); // Load the master data file, with factions &c
|
||||
void load_weather(std::ifstream &fin);
|
||||
void load(std::string name); // Load a player-specific save file
|
||||
void start_game(); // Starts a new game
|
||||
void start_special_game(special_game_id gametype); // See gamemode.cpp
|
||||
|
||||
//private save functions.
|
||||
void save_factions_missions_npcs();
|
||||
void save_artifacts();
|
||||
void save_maps();
|
||||
std::string save_weather() const;
|
||||
|
||||
// Data Initialization
|
||||
void init_itypes(); // Initializes item types
|
||||
void init_skills();
|
||||
void init_bionics(); // Initializes bionics... for now.
|
||||
void init_mapitems(); // Initializes item placement
|
||||
void init_mtypes(); // Initializes monster types
|
||||
void init_mongroups(); // Initualizes monster groups
|
||||
void init_monitems(); // Initializes monster inventory selection
|
||||
@@ -297,16 +363,16 @@ class game
|
||||
void init_mutations(); // Initializes mutation "tech tree"
|
||||
void init_vehicles(); // Initializes vehicle types
|
||||
void init_autosave(); // Initializes autosave parameters
|
||||
void init_diseases(); // Initializes disease lookup table.
|
||||
|
||||
std::string default_npc_txt(); //load the default settings for the npc.txt file
|
||||
void load_keyboard_settings(); // Load keybindings from disk
|
||||
void load_npc_settings(); //load npc settings from disk
|
||||
|
||||
void save_keymap(); // Save keybindings to disk
|
||||
std::vector<char> keys_bound_to(action_id act); // All keys bound to act
|
||||
void clear_bindings(action_id act); // Deletes all keys bound to act
|
||||
|
||||
void create_factions(); // Creates new factions (for a new game world)
|
||||
void load_npcs(); //Make any nearby NPCs from the overmap active.
|
||||
void create_starting_npcs(); // Creates NPCs that start near you
|
||||
|
||||
// Player actions
|
||||
@@ -327,23 +393,30 @@ class game
|
||||
recipe* select_crafting_recipe(); // See crafting.cpp
|
||||
bool making_would_work(recipe *r); // See crafting.cpp
|
||||
bool can_make(recipe *r); // See crafting.cpp
|
||||
bool check_enough_materials(recipe *r, inventory crafting_inv);
|
||||
void make_craft(recipe *making); // See crafting.cpp
|
||||
void make_all_craft(recipe *making); // See crafting.cpp
|
||||
void complete_craft(); // See crafting.cpp
|
||||
void pick_recipes(std::vector<recipe*> ¤t,
|
||||
std::vector<bool> &available, craft_cat tab,std::string filter);// crafting.cpp
|
||||
void add_known_recipes(std::vector<recipe*> ¤t, recipe_list source,
|
||||
std::string filter = ""); //crafting.cpp
|
||||
craft_cat next_craft_cat(craft_cat cat); // crafting.cpp
|
||||
craft_cat prev_craft_cat(craft_cat cat); // crafting.cpp
|
||||
void disassemble(char ch = 0); // See crafting.cpp
|
||||
void complete_disassemble(); // See crafting.cpp
|
||||
recipe* recipe_by_index(int index); // See crafting.cpp
|
||||
void construction_menu(); // See construction.cpp
|
||||
bool player_can_build(player &p, inventory inv, constructable* con,
|
||||
const int level = -1, bool cont = false,
|
||||
bool exact_level=false);
|
||||
bool exact_level=false);
|
||||
void place_construction(constructable *con); // See construction.cpp
|
||||
void complete_construction(); // See construction.cpp
|
||||
bool pl_choose_vehicle (int &x, int &y);
|
||||
bool vehicle_near ();
|
||||
void handbrake ();
|
||||
void control_vehicle(); // Use vehicle controls '^'
|
||||
void examine();// Examine nearby terrain 'e'
|
||||
void advanced_inv();
|
||||
// open vehicle interaction screen
|
||||
void exam_vehicle(vehicle &veh, int examx, int examy, int cx=0, int cy=0);
|
||||
void pickup(int posx, int posy, int min);// Pickup items; ',' or via examine()
|
||||
@@ -352,7 +425,7 @@ class game
|
||||
void compare(int iCompareX = -999, int iCompareY = -999); // Compare two Items 'I'
|
||||
void drop(char chInput = '.'); // Drop an item 'd'
|
||||
void drop_in_direction(); // Drop w/ direction 'D'
|
||||
void reassign_item(); // Reassign the letter of an item '='
|
||||
void reassign_item(char ch = '.'); // Reassign the letter of an item '='
|
||||
void butcher(); // Butcher a corpse 'B'
|
||||
void complete_butcher(int index); // Finish the butchering process
|
||||
void forage(); // Foraging ('a' on underbrush)
|
||||
@@ -363,14 +436,15 @@ class game
|
||||
void takeoff(char chInput = '.'); // Remove armor 'T'
|
||||
void reload(); // Reload a wielded gun/tool 'r'
|
||||
void reload(char chInput);
|
||||
void unload(); // Unload a wielded gun/tool 'U'
|
||||
void unload(item& it); // Unload a gun/tool 'U'
|
||||
void unload(char chInput);
|
||||
void wield(char chInput = '.'); // Wield a weapon 'w'
|
||||
void read(); // Read a book 'R' (or 'a')
|
||||
void chat(); // Talk to a nearby NPC 'C'
|
||||
void plthrow(char chInput = '.'); // Throw an item 't'
|
||||
void help(); // Help screen '?'
|
||||
void show_options(); // Options screen '?'
|
||||
void show_options(); // Options screen '?1'
|
||||
void show_auto_pickup(); // Auto pickup manage screen '?3'
|
||||
|
||||
// Target is an interactive function which allows the player to choose a nearby
|
||||
// square. It display information on any monster/NPC on that square, and also
|
||||
@@ -397,17 +471,20 @@ class game
|
||||
void update_weather(); // Updates the temperature and weather patten
|
||||
void hallucinate(const int x, const int y); // Prints hallucination junk to the screen
|
||||
void mon_info(); // Prints a list of nearby monsters (top right)
|
||||
void handle_key_blocking_activity(); // Abort reading etc.
|
||||
bool handle_action();
|
||||
void update_scent(); // Updates the scent map
|
||||
bool is_game_over(); // Returns true if the player quit or died
|
||||
void place_corpse(); // Place player corpse
|
||||
void death_screen(); // Display our stats, "GAME OVER BOO HOO"
|
||||
void gameover(); // Ends the game
|
||||
void write_msg(); // Prints the messages in the messages list
|
||||
void msg_buffer(); // Opens a window with old messages in it
|
||||
void draw_minimap(); // Draw the 5x5 minimap
|
||||
void draw_HP(); // Draws the player's HP and Power level
|
||||
int autosave_timeout(); // If autosave enabled, how long we should wait for user inaction before saving.
|
||||
void autosave(); // Saves map
|
||||
// int autosave_timeout(); // If autosave enabled, how long we should wait for user inaction before saving.
|
||||
void autosave(); // automatic quicksaves - Performs some checks before calling quicksave()
|
||||
void quicksave(); // Saves the game without quitting
|
||||
|
||||
// On-request draw functions
|
||||
void draw_overmap(); // Draws the overmap, allows note-taking etc.
|
||||
@@ -444,13 +521,15 @@ class game
|
||||
std::vector<event> events; // Game events to be processed
|
||||
int kills[num_monsters]; // Player's kill count
|
||||
std::string last_action; // The keypresses of last turn
|
||||
|
||||
int moves_since_last_save;
|
||||
int item_exchanges_since_save;
|
||||
time_t last_save_timestamp;
|
||||
unsigned char latest_lightlevel;
|
||||
calendar latest_lightlevel_turn;
|
||||
|
||||
special_game *gamemode;
|
||||
|
||||
int moveCount; //Times the player has moved (not pause, sleep, etc)
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
+3
-3
@@ -5,10 +5,10 @@ std::string special_game_name(special_game_id id)
|
||||
{
|
||||
switch (id) {
|
||||
case SGAME_NULL:
|
||||
case NUM_SPECIAL_GAMES: return "nethack (this is a bug)";
|
||||
case NUM_SPECIAL_GAMES: return "Bug (gamemode.cpp:special_game_name)";
|
||||
case SGAME_TUTORIAL: return "Tutorial";
|
||||
case SGAME_DEFENSE: return "Defense";
|
||||
default: return "Uncoded (this is a bug)";
|
||||
default: return "Uncoded (gamemode.cpp:special_game_name)";
|
||||
}
|
||||
}
|
||||
|
||||
@@ -26,7 +26,7 @@ special_game* get_special_game(special_game_id id)
|
||||
ret = new defense_game;
|
||||
break;
|
||||
default:
|
||||
debugmsg("Missing something in get_special_game()?");
|
||||
debugmsg("Missing something in gamemode.cpp:get_special_game()?");
|
||||
ret = new special_game;
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -22,6 +22,7 @@ special_game* get_special_game(special_game_id id);
|
||||
|
||||
struct special_game
|
||||
{
|
||||
virtual ~special_game() { return; };
|
||||
virtual special_game_id id() { return SGAME_NULL; };
|
||||
// init is run when the game begins
|
||||
virtual bool init(game *g) { return true; };
|
||||
|
||||
@@ -18,14 +18,20 @@
|
||||
|
||||
void game::help()
|
||||
{
|
||||
WINDOW* w_help_border = newwin(25, 80, (TERMY > 25) ? (TERMY-25)/2 : 0, (TERMX > 80) ? (TERMX-80)/2 : 0);
|
||||
WINDOW* w_help = newwin(23, 78, 1 + (int)((TERMY > 25) ? (TERMY-25)/2 : 0), 1 + (int)((TERMX > 80) ? (TERMX-80)/2 : 0));
|
||||
WINDOW* w_help_border = newwin(FULL_SCREEN_HEIGHT, FULL_SCREEN_WIDTH,
|
||||
(TERMY > FULL_SCREEN_HEIGHT) ? (TERMY-FULL_SCREEN_HEIGHT)/2 : 0,
|
||||
(TERMX > FULL_SCREEN_WIDTH) ? (TERMX-FULL_SCREEN_WIDTH)/2 : 0);
|
||||
WINDOW* w_help = newwin(FULL_SCREEN_HEIGHT-2, FULL_SCREEN_WIDTH-2,
|
||||
1 + (int)((TERMY > FULL_SCREEN_HEIGHT) ? (TERMY-FULL_SCREEN_HEIGHT)/2 : 0),
|
||||
1 + (int)((TERMX > FULL_SCREEN_WIDTH) ? (TERMX-FULL_SCREEN_WIDTH)/2 : 0));
|
||||
|
||||
char ch;
|
||||
|
||||
action_id movearray[] = {ACTION_MOVE_NW,ACTION_MOVE_N,ACTION_MOVE_NE,
|
||||
ACTION_MOVE_W, ACTION_PAUSE, ACTION_MOVE_E,
|
||||
ACTION_MOVE_SW,ACTION_MOVE_S,ACTION_MOVE_SE};
|
||||
do {
|
||||
wborder(w_help_border, LINE_XOXO, LINE_XOXO, LINE_OXOX, LINE_OXOX,
|
||||
LINE_OXXO, LINE_OOXX, LINE_XXOO, LINE_XOOX);
|
||||
LINE_OXXO, LINE_OOXX, LINE_XXOO, LINE_XOOX);
|
||||
mvwprintz(w_help_border, 0, 38, c_ltred, " HELP ");
|
||||
wrefresh(w_help_border);
|
||||
werase(w_help);
|
||||
@@ -39,15 +45,16 @@ c: Viewing k: Traps\n\
|
||||
d: Hunger, Thirst, and Sleep l: Items overview\n\
|
||||
e: Pain and Stimulants m: Combat\n\
|
||||
f: Addiction n: Unarmed Styles\n\
|
||||
g: Morale and XP o: Survival tips\n\
|
||||
g: Morale and Learning o: Survival tips\n\
|
||||
h: Radioactivity and Mutation\n\
|
||||
\n\
|
||||
1: List of all commands (you can change key commands here)\n\
|
||||
2: List of all options (you can change options here)\n\
|
||||
3: List of item types and data\n\
|
||||
4: Description of map symbols\n\
|
||||
5: Description of gun types\n\
|
||||
6: Frequently Asked Questions (Some spoilers!)\n\
|
||||
3: Auto pickup manager (you can change pickup rules here)\n\
|
||||
4: List of item types and data\n\
|
||||
5: Description of map symbols\n\
|
||||
6: Description of gun types\n\
|
||||
7: Frequently Asked Questions (Some spoilers!)\n\
|
||||
\n\
|
||||
q: Return to game");
|
||||
|
||||
@@ -82,21 +89,38 @@ tools are all available to help you survive.");
|
||||
mvwprintz(w_help, 0, 0, c_white, "\
|
||||
Movement is performed using the numpad, or vikeys. Each step will take 100\n\
|
||||
movement points (or more, depending on the terrain); you\n\
|
||||
y k u 7 8 9 will then replenish a variable amount of movement points,\n\
|
||||
\\ | / \\ | / depending on many factors (press '@' to see the exact\n\
|
||||
will then replenish a variable amount of movement points,\n\
|
||||
\\ | / \\ | / depending on many factors (%s to see the exact\n\
|
||||
\\|/ \\|/ amount). To attempt to hit a monster with your weapon,\n\
|
||||
h--.--l 4--5--6 simply move into it. You may find doors, ('+'); these may\n\
|
||||
/|\\ /|\\ be opened with 'o' or closed with 'c'. Some doors are\n\
|
||||
-- -- -- -- simply move into it. You may find doors, ('+'); these may\n\
|
||||
/|\\ /|\\ be opened %s or closed %s. Some doors are\n\
|
||||
/ | \\ / | \\ locked. Locked doors, windows, and some other obstacles\n\
|
||||
b j n 1 2 3 can be destroyed by smashing them ('s', then choose a\n\
|
||||
can be destroyed by smashing them (%sthen choose a\n\
|
||||
direction). Smashing down obstacles is much easier with a\n\
|
||||
good weapon or a strong character.\n\
|
||||
\n\
|
||||
There may be times when you want to move more quickly by holding down a\n\
|
||||
movement key. However, fast movement in this fashion may lead to the player\n\
|
||||
getting into a dangerous situation or even killed before they have a chance\n\
|
||||
to react. Pressing '!' will toggle \"Run Mode.\" While this is on, any\n\
|
||||
movement will be ignored if new monsters enter the player's view.");
|
||||
to react. %s will toggle \"Run Mode.\" While this is on, any\n\
|
||||
movement will be ignored if new monsters enter the player's view.",
|
||||
press_x(ACTION_PL_INFO, "press ", "'View Player Info'").c_str(),
|
||||
press_x(ACTION_OPEN, "with ", "").c_str(),
|
||||
press_x(ACTION_CLOSE, "with ", "").c_str(),
|
||||
press_x(ACTION_SMASH, "", ", ", "").c_str(),
|
||||
press_x(ACTION_TOGGLE_SAFEMODE, "Pressing ", "'Toggle Safemode'" ).c_str());
|
||||
for(int acty = 0; acty < 3; acty++) {
|
||||
for(int actx = 0; actx < 3; actx++) {
|
||||
std::vector<char> keys = keys_bound_to( movearray[acty*3+actx] );
|
||||
if (keys.empty()) {
|
||||
} else {
|
||||
mvwputch(w_help, (acty * 3 + 2), (actx * 3), c_ltblue, keys[0]);
|
||||
if (keys.size() >0) {
|
||||
mvwputch(w_help, (acty * 3 + 2), (actx * 3 + 10), c_ltblue, keys[1]);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
wrefresh(w_help);
|
||||
refresh();
|
||||
getch();
|
||||
@@ -107,12 +131,14 @@ movement will be ignored if new monsters enter the player's view.");
|
||||
werase(w_help);
|
||||
mvwprintz(w_help, 0, 0, c_white, "\
|
||||
The player can often see more than can be displayed on the screen at a time.\n\
|
||||
Pressing ';' or 'x' enters look around mode, which allows you to scoll around\n\
|
||||
using the movement keys and view irems on the map. Pressing 'V' provides a\n\
|
||||
list of nearby visible items, though items shut away in crates, cubpoards,\n\
|
||||
%s allows you to scroll around\n\
|
||||
using the movement keys and view items on the map. %s provides a\n\
|
||||
list of nearby visible items, though items shut away in crates, cupboards,\n\
|
||||
refrigerators and the like will not be displayed. Pressing Shift+vikeys\n\
|
||||
will scroll the view persistently, allowing you to keep an eye on things\n\
|
||||
as you move around.");
|
||||
as you move around.",
|
||||
press_x(ACTION_LOOK, "Pressing ", " enters look around mode, which", "'Look Around' mode").c_str(),
|
||||
press_x(ACTION_LIST_ITEMS, "Pressing ", "'List all items around the player'").c_str());
|
||||
wrefresh(w_help);
|
||||
refresh();
|
||||
getch();
|
||||
@@ -126,20 +152,23 @@ As time passes, you will begin to feel hunger and thirst. A status warning\n\
|
||||
at the bottom of the screen will appear. As hunger and thirst reach critical\n\
|
||||
levels, you will begin to suffer movement penalties. Thirst is more dangerous\n\
|
||||
than hunger. Finding food in a city is usually easy; outside of a city, you\n\
|
||||
may have to hunt an animal, then stand over its corpse and 'B'utcher it into\n\
|
||||
may have to hunt an animal, then stand over its corpse and %s it into\n\
|
||||
small chunks of meat. Likewise, outside of a city you may have to drink water\n\
|
||||
from a river or other natural source; stand in shallow water and press 'g' or\n\
|
||||
',' to pick it up. You'll need a watertight container. Be forewarned that\n\
|
||||
some sources of water aren't trustworthy and may produce diseased water. To\n\
|
||||
be sure it's healthy, run all water you collect through a water filter before\n\
|
||||
drinking.\n\
|
||||
from a river or other natural source; stand in shallow water and \n\
|
||||
%s to pick it up. You'll need a watertight container. \n\
|
||||
Be forewarned that some sources of water aren't trustworthy \n\
|
||||
and may produce diseased water. To be sure it's healthy, \n\
|
||||
run all water you collect through a water filter before drinking.\n\
|
||||
\n\
|
||||
Every 14 to 20 hours, you'll find yourself growing sleepy. If you do not\n\
|
||||
sleep by pressing '$', you'll start suffering stat and movement penalties.\n\
|
||||
sleep%s you'll start suffering stat and movement penalties.\n\
|
||||
You may not always fall asleep right away. Sleeping indoors, especially on a\n\
|
||||
bed, will help; or you can always use sleeping pills. While sleeping, you'll\n\
|
||||
slowly replenish lost hit points. You'll also be vulnerable to attack, so\n\
|
||||
try to find a safe place, or set traps for unwary intruders.");
|
||||
try to find a safe place, or set traps for unwary intruders.",
|
||||
press_x(ACTION_BUTCHER, "butcher").c_str(),
|
||||
from_sentence_case(press_x(ACTION_PICKUP)).c_str(),
|
||||
press_x(ACTION_SLEEP, " by pressing ", ",", "").c_str());
|
||||
wrefresh(w_help);
|
||||
refresh();
|
||||
getch();
|
||||
@@ -221,14 +250,24 @@ Press any key for more...");
|
||||
getch();
|
||||
werase(w_help);
|
||||
mvwprintz(w_help, 0, 0, c_white, "\
|
||||
Morale is also responsible for filling your XP pool. This XP pool is used\n\
|
||||
for improving your skills; as you use your skills, points are taken from the\n\
|
||||
XP pool and placed into the skill used. If your XP pool is empty, your\n\
|
||||
skills cannot be improved except through the use of books.\n\
|
||||
Morale is also responsible for ensuring you can learn effectively, via a\n\
|
||||
mechanic referred to as 'focus'. Your focus level is a measure of how\n\
|
||||
effectively you can learn. The natural level is 100, which indicates normal\n\
|
||||
learning potential. Higher or lower focus levels make it easier or harder\n\
|
||||
to learn from practical experience.\n\
|
||||
\n\
|
||||
Your XP pool will not fill unless your morale is at least 0. A morale level\n\
|
||||
between 0 and 100 gives the percentage chance for your XP to increase by 1\n\
|
||||
each turn. Above 100, you get 1 XP point each turn for every 100 morale.");
|
||||
Your focus level has a natural set point that it converges towards. When your\n\
|
||||
focus is much lower - or higher - than this set point, it will change faster\n\
|
||||
than when it is near the set point. Having high morale will raise the set\n\
|
||||
point, and having low morale will lower the set point. Pain is also factored\n\
|
||||
into the set point calculation - it's harder to learn when you're in pain.\n\
|
||||
\n\
|
||||
Your focus is also lowered by certain activities. Training your skills\n\
|
||||
through real-world practice lowers your focus gradually, by an amount that\n\
|
||||
depends on your current level of focus (higher focus means larger decreases,\n\
|
||||
as well as improved learning). Training your skills by reading books\n\
|
||||
decreases your focus rapidly, by giving a significant penalty to the set\n\
|
||||
point of your focus.");
|
||||
wrefresh(w_help);
|
||||
refresh();
|
||||
getch();
|
||||
@@ -238,7 +277,7 @@ each turn. Above 100, you get 1 XP point each turn for every 100 morale.");
|
||||
case 'H':
|
||||
werase(w_help);
|
||||
mvwprintz(w_help, 0, 0, c_white, "\
|
||||
Though it is relatively rare, certain areas of the world may be contamiated\n\
|
||||
Though it is relatively rare, certain areas of the world may be contaminated\n\
|
||||
with radiation. It will gradually accumulate in your body, weakening you\n\
|
||||
more and more. While in radiation-free areas, your radiation level will\n\
|
||||
slowly decrease. Taking iodine tablets will help speed the process.\n\
|
||||
@@ -285,24 +324,27 @@ Many important items can be very hard to find, or will cost a great deal of\n\
|
||||
money to trade for. Fortunately, it is possible to craft a wide variety of\n\
|
||||
goods with the proper tools, materials, and training.\n\
|
||||
\n\
|
||||
Some recipes require a set of tools. These are not used up when crafting, so\n\
|
||||
you can keep your tool set. All recipes require one or more ingredients.\n\
|
||||
Some recipes require a set of tools. These are not used up when crafting,\n\
|
||||
so you can keep your tool set. All recipes require one or more ingredients.\n\
|
||||
These ARE used up in crafting.\n\
|
||||
\n\
|
||||
To craft items, press '&'. There are five categories; Weapons, Food,\n\
|
||||
Electronics, Armor, and Miscellaneous. While a few items require no skill to\n\
|
||||
create, the majority require you to have some knowledge:\n\
|
||||
%sThere are five categories; Weapons, Food, \n\
|
||||
Electronics, Armor, and Miscellaneous. While a few items require\n\
|
||||
no skill to create, the majority require you to have some knowledge:\n\
|
||||
\n\
|
||||
->Mechanic skill is used for weapons, traps, and a few tools.\n\
|
||||
->Cooking skill, at low levels, is used for making tasty recipes; at higher\n\
|
||||
levels, you have an understanding of chemistry and can make chemical weapons\n\
|
||||
and beneficial elixirs.\n\
|
||||
->Cooking skill, at low levels, is used for making tasty recipes; \n\
|
||||
at higher levels, you have an understanding of chemistry and can make\n\
|
||||
chemical weapons and beneficial elixirs.\n\
|
||||
->Electronics skill lets you make a wide variety of tools with intricate uses.\n\
|
||||
->Tailoring skill is used to create basic clothing, and later tough armor.\n\
|
||||
\n\
|
||||
In addition to the primary crafting skills, other skills may be necessary to\n\
|
||||
create certain items. Traps skill, Firearms skill, and First Aid skill are\n\
|
||||
all required for certain items.");
|
||||
In addition to the primary crafting skills, other skills may be necessary\n\
|
||||
to create certain items. Traps skill, Firearms skill, and First Aid skill\n\
|
||||
are all required for certain items.",
|
||||
press_x(ACTION_CRAFT, "To craft items, press ", ". ", "").c_str()/*,
|
||||
press_x(ACTION_RECRAFT).c_str(),
|
||||
press_x(ACTION_LONGCRAFT).c_str()*/);
|
||||
wrefresh(w_help);
|
||||
refresh();
|
||||
getch();
|
||||
@@ -319,19 +361,22 @@ to wake you up) and bear traps (which make noise AND damage and trap anything\n\
|
||||
that steps on them). Others need to be crafted; this requires the Traps skill\n\
|
||||
and possibly Mechanics.\n\
|
||||
\n\
|
||||
To set a trap, simply use the item ('a') and choose a direction; the trap\n\
|
||||
To set a trap, simply use the item%s and choose a direction; the trap\n\
|
||||
will be placed on an adjacent tile. Some traps may require additional tools,\n\
|
||||
like a shovel, to be set. Once set, a trap will remain in place until\n\
|
||||
stepped on or disarmed.\n\
|
||||
\n\
|
||||
To disarm a trap, examine ('e') the space it is on. Your success depends\n\
|
||||
To disarm a trap, examine%s the space it is on. Your success depends\n\
|
||||
upon your Traps skill and Dexterity. If you succeed, the trap is removed\n\
|
||||
and replaced by some or all of its constituent parts; however, if you fail,\n\
|
||||
there is a chance that you will set off the trap, suffering the consequences.\n\
|
||||
\n\
|
||||
Many traps are fully or partially hidden. Your ability to detect traps is\n\
|
||||
entirely dependent upon your Perception. Should you stumble into a trap, you\n\
|
||||
may have a chance to avoid it, depending on your Dodge skill.");
|
||||
may have a chance to avoid it, depending on your Dodge skill.",
|
||||
press_x(ACTION_USE, " (", ")", "").c_str(),
|
||||
press_x(ACTION_EXAMINE, " (", ")", "").c_str()/*,
|
||||
press_x(ACTION_USE_WIELDED).c_str()*/);
|
||||
wrefresh(w_help);
|
||||
refresh();
|
||||
getch();
|
||||
@@ -342,39 +387,51 @@ may have a chance to avoid it, depending on your Dodge skill.");
|
||||
werase(w_help);
|
||||
mvwprintz(w_help, 0, 0, c_white, "\
|
||||
There are a wide variety of items available for your use. You may find them\n\
|
||||
lying on the ground; if so, simply press ',' or 'g' to pick up items on the\n\
|
||||
lying on the ground; if so, simply %s to pick up items on the\n\
|
||||
same square. Some items are found inside a container, drawn as a { with a\n\
|
||||
blue background. Pressing 'e', then a direction, will allow you to examine\n\
|
||||
blue background. %s, then a direction, will allow you to examine\n\
|
||||
these containers and loot their contents.\n\
|
||||
\n\
|
||||
Pressing 'I' opens a comparison menu, where you can see two items\n\
|
||||
%s opens a comparison menu, where you can see two items\n\
|
||||
side-by-side with their attributes highlighted to indicate which is superior.\n\
|
||||
You can also access the item comparison menu by pressing 'C' when the 'V'iew\n\
|
||||
You can also access the item comparison menu by pressing 'C' when the %s\n\
|
||||
nearby items menu is open and an item is selected.\n\
|
||||
\n\
|
||||
All items may be used as a melee weapon, though some are better than others.\n\
|
||||
You can check the melee attributes of an item you're carrying by hitting 'i'\n\
|
||||
You can check the melee attributes of an item you're carrying by %s\n\
|
||||
to enter your inventory, then pressing the letter of the item. There are 3\n\
|
||||
melee values, bashing, cutting, and to-hit bonus (or penalty).\n\
|
||||
Bashing damage is universally effective, but is capped by low strength.\n\
|
||||
Cutting damage is a guaranteed increase in damage, but it may be reduced by\n\
|
||||
a monster's natural armor.\n\
|
||||
\n\
|
||||
Press any key for more...");
|
||||
Press any key for more...",
|
||||
from_sentence_case(press_x(ACTION_PICKUP)).c_str(),
|
||||
press_x(ACTION_EXAMINE, "Pressing ", "'Examine Nearby Terrain'").c_str(),
|
||||
press_x(ACTION_COMPARE, "Pressing ", "'Compare two Items'").c_str(),
|
||||
press_x(ACTION_LIST_ITEMS, "view").c_str(),
|
||||
press_x(ACTION_INVENTORY, "hitting ", "trying").c_str()/*,
|
||||
press_x(ACTION_ADVANCEDINV).c_str(), //'Advanced Inventory management'"
|
||||
press_x(ACTION_ORGANIZE).c_str()*/); //'Swap Inventory Letters'
|
||||
wrefresh(w_help);
|
||||
refresh();
|
||||
getch();
|
||||
werase(w_help);
|
||||
mvwprintz(w_help, 0, 0, c_white, "\
|
||||
To wield an item as a weapon, press 'w' then the proper letter. Pressing '-'\n\
|
||||
To wield an item as a weapon, %s then the proper letter. Pressing '-'\n\
|
||||
in lieu of a letter will make you wield nothing. A wielded weapon will not\n\
|
||||
contribute to your volume carried, so holding a large item in your hands may\n\
|
||||
be a good option for travel. When unwielding your weapon, it will go back in\n\
|
||||
your inventory, or will be dropped on the ground if there is no space.\n\
|
||||
\n\
|
||||
To wear a piece of clothing, press 'W' then the proper letter. Armor reduces\n\
|
||||
damage and helps you resist things like smoke. To take off an item, press\n\
|
||||
'T' then the proper letter.");
|
||||
To wear a piece of clothing, %s then the proper letter. Armor reduces\n\
|
||||
damage and helps you resist things like smoke. To take off an item, %s\n\
|
||||
then the proper letter.",
|
||||
from_sentence_case(press_x(ACTION_WIELD)).c_str(),
|
||||
from_sentence_case(press_x(ACTION_WEAR)).c_str(),
|
||||
from_sentence_case(press_x(ACTION_TAKE_OFF)).c_str()/*,
|
||||
press_x(ACTION_SORT_ARMOR).c_str(),
|
||||
press_x(ACTION_PICK_STYLE).c_str()*/);
|
||||
wrefresh(w_help);
|
||||
refresh();
|
||||
getch();
|
||||
@@ -388,27 +445,37 @@ After 30 minutes of warmup time, monsters will begin to appear. They are\n\
|
||||
represented by letters on your screen; a list of monster names, and their\n\
|
||||
positions relative to you, is displayed on the right side of the screen.\n\
|
||||
\n\
|
||||
To attack a monster with a melee weapon, simply move into them. The time it\n\
|
||||
takes to attack depends on the size and weight of your weapon. Small, light\n\
|
||||
weapons are the fastest; unarmed attacks increase in speed with your Unarmed\n\
|
||||
Combat skill, and will eventually be VERY fast. A successful hit with a\n\
|
||||
bashing weapon may stun the monster temporarily, while cutting weapons may get\n\
|
||||
stuck, possibly pulling the weapon from your hands--but a monster with a weapon\n\
|
||||
stuck in it will move much more slowly. A miss may make you stumble and lose\n\
|
||||
movement points. If a monster hits you, your clothing may absorb some damage,\n\
|
||||
but you will absorb the excess.\n\
|
||||
To attack a monster with a melee weapon, simply move into them. The time\n\
|
||||
it takes to attack depends on the size and weight of your weapon. Small,\n\
|
||||
light weapons are the fastest; unarmed attacks increase in speed with\n\
|
||||
your Unarmed Combat skill, and will eventually be VERY fast. A successful\n\
|
||||
hit with a bashing weapon may stun the monster temporarily, while cutting\n\
|
||||
weapons may get stuck, possibly pulling the weapon from your hands-- but\n\
|
||||
a monster with a weapon stuck in it will move much more slowly. A miss\n\
|
||||
may make you stumble and lose movement points. If a monster hits you,\n\
|
||||
your clothing may absorb some damage, but you will absorb the excess.\n\
|
||||
\n\
|
||||
Swarms of monsters may call for firearms. If you find one, wield it first,\n\
|
||||
then reload by pressing 'r'. If you wish to change ammo, you must unload the\n\
|
||||
weapon by pressing 'U', then reload again. To fire, press 'f', move the\n\
|
||||
then reload%s. If you wish to change ammo, you must unload the\n\
|
||||
weapon%s, then reload again. To fire%s, move the\n\
|
||||
cursor to the relevant space, then hit '.' or 'f'. Some guns have alternate\n\
|
||||
firing modes, such as burst fire; to cycle modes, press 'F'. Firing\n\
|
||||
continuously, especially in bursts, will severely reduce accuracy.\n\
|
||||
\n\
|
||||
firing modes, such as burst fire; to cycle modes%s.\n\
|
||||
Firing continuously, especially in bursts, will severely reduce accuracy.\n\
|
||||
Press any key for more...",
|
||||
press_x(ACTION_RELOAD, " by pressing ", "").c_str(),
|
||||
press_x(ACTION_UNLOAD, " by pressing ", "").c_str(),
|
||||
press_x(ACTION_FIRE, ", press ", "").c_str(),
|
||||
press_x(ACTION_SELECT_FIRE_MODE, ", press ", " 'Toggle attack mode of Wielded Item'").c_str());
|
||||
wrefresh(w_help);
|
||||
refresh();
|
||||
getch();
|
||||
werase(w_help);
|
||||
mvwprintz(w_help, 0, 0, c_white, "\
|
||||
Unlike most roguelikes, fleeing will often be your best option, especially\n\
|
||||
when overwhelmed by a swarm of zombies. Try to avoid getting cornered inside\n\
|
||||
a building. Ducking down into the subways or sewers is often an excellent\n\
|
||||
escape tactic.");
|
||||
when overwhelmed by a swarm of zombies. Try to avoid getting cornered\n\
|
||||
inside a building. Ducking down into the subways or sewers is often\n\
|
||||
an excellent escape tactic."/*,
|
||||
press_x(ACTION_USE_WIELDED).c_str()*/);
|
||||
wrefresh(w_help);
|
||||
refresh();
|
||||
getch();
|
||||
@@ -423,19 +490,23 @@ start with your choice of a single, commonly-taught style by starting with\n\
|
||||
the Martial Arts Training trait. Many, many more can be taught by wandering\n\
|
||||
masters.\n\
|
||||
\n\
|
||||
To select a fighting style, press _ (underscore). If you are already unarmed\n\
|
||||
To select a fighting style%s. If you are already unarmed\n\
|
||||
this will make you start using the style. Otherwise, it will be locked in as\n\
|
||||
your default unarmed style; to start using it, press w-.\n\
|
||||
your default unarmed style; to start using it, %s '-'.\n\
|
||||
\n\
|
||||
Most styles have a variety of special moves associated with them. Most have\n\
|
||||
a skill requirement, and will be unavailable until you reach a level of\n\
|
||||
unarmed skill. You can check the moves by examining your style via the\n\
|
||||
inventory screen (i key).\n\
|
||||
inventory screen%s.\n\
|
||||
\n\
|
||||
Many styles also have special effects unlocked under certain conditions.\n\
|
||||
These are varied and unique to each style, and range from special combo moves\n\
|
||||
to bonuses depending on the situation you are in. You can check these by\n\
|
||||
examining your style.");
|
||||
examining your style.",
|
||||
press_x(ACTION_PICK_STYLE, ", press ", "").c_str(),
|
||||
press_x(ACTION_WIELD, "press ", " then", "'Select Wielded Item' then press").c_str(),
|
||||
press_x(ACTION_INVENTORY, " (", " key)", "").c_str()/*,
|
||||
press_x(ACTION_THROW).c_str()*/);
|
||||
wrefresh(w_help);
|
||||
refresh();
|
||||
getch();
|
||||
@@ -455,8 +526,8 @@ as possible and load up on more than one type.\n\
|
||||
It's also important to carry a few medications; painkillers are a must-have,\n\
|
||||
and drugs such as cigarettes will make life easier (but beware addiction).\n\
|
||||
Leave cities as soon as you have a good stockpile of equipment. Their high\n\
|
||||
concentration of zombies makes them a deathtrap--but a necessary resource for\n\
|
||||
food and ammunition.\n\
|
||||
concentration of zombies makes them a deathtrap--but a necessary resource\n\
|
||||
for food and ammunition.\n\
|
||||
\n\
|
||||
Combat is much easier if you can fight just one monster at once. Use doorways\n\
|
||||
as a choke point, or stand behind a window and strike as the zombies slowly\n\
|
||||
@@ -472,22 +543,27 @@ Press any key for more...");
|
||||
getch();
|
||||
werase(w_help);
|
||||
mvwprintz(w_help, 0, 0, c_white, "\
|
||||
Try to keep your inventory as full as possible without being overloaded. You\n\
|
||||
never know when you might need an item, most are good to sell, and you can\n\
|
||||
easily drop unwanted items on the floor.\n\
|
||||
Try to keep your inventory as full as possible without being overloaded.\n\
|
||||
You never know when you might need an item, most are good to sell, and\n\
|
||||
you can easily drop unwanted items on the floor.\n\
|
||||
\n\
|
||||
Keep an eye on the weather. At night, sleeping might be difficult if you\n\
|
||||
don't have a warm place to rest your head. Be sure to protect your\n\
|
||||
Keep an eye on the weather. At night, sleeping might be difficult if\n\
|
||||
you don't have a warm place to rest your head. Be sure to protect your\n\
|
||||
extremities from frostbite and to keep your distance from large fires.");
|
||||
wrefresh(w_help);
|
||||
refresh();
|
||||
getch();
|
||||
break;
|
||||
|
||||
// Keybindings
|
||||
case '1': {
|
||||
|
||||
// Remember what the keybindings were originally so we can restore them if player cancels.
|
||||
std::map<char, action_id> keymap_old = keymap;
|
||||
|
||||
werase(w_help);
|
||||
int offset = 1;
|
||||
char ch = ' ';
|
||||
char remapch = ' ';
|
||||
bool changed_keymap = false;
|
||||
bool needs_refresh = true;
|
||||
do {
|
||||
@@ -507,10 +583,10 @@ extremities from frostbite and to keep your distance from large fires.");
|
||||
needs_refresh = false;
|
||||
}
|
||||
// Clear the lines
|
||||
for (int i = 0; i < 23; i++)
|
||||
mvwprintz(w_help, i, 0, c_black, " ");
|
||||
for (int i = 0; i < FULL_SCREEN_HEIGHT-2; i++)
|
||||
mvwprintz(w_help, i, 0, c_black, " ");
|
||||
|
||||
for (int i = 0; i < 23 && offset + i < NUM_ACTIONS; i++) {
|
||||
for (int i = 0; i < FULL_SCREEN_HEIGHT-2 && offset + i < NUM_ACTIONS; i++) {
|
||||
std::vector<char> keys = keys_bound_to( action_id(offset + i) );
|
||||
nc_color col = (keys.empty() ? c_ltred : c_white);
|
||||
mvwprintz(w_help, i, 3, col, "%s: ", action_name( action_id(offset + i) ).c_str());
|
||||
@@ -526,16 +602,16 @@ extremities from frostbite and to keep your distance from large fires.");
|
||||
}
|
||||
wrefresh(w_help);
|
||||
refresh();
|
||||
ch = input();
|
||||
remapch = input();
|
||||
int sx = 0, sy = 0;
|
||||
get_direction(this, sx, sy, ch);
|
||||
get_direction(this, sx, sy, remapch);
|
||||
if (sy == -1 && offset > 1)
|
||||
offset--;
|
||||
if (sy == 1 && offset + 20 < NUM_ACTIONS)
|
||||
offset++;
|
||||
if (ch == '-' || ch == '+') {
|
||||
if (remapch == '-' || remapch == '+') {
|
||||
needs_refresh = true;
|
||||
for (int i = 0; i < 23 && i + offset < NUM_ACTIONS; i++) {
|
||||
for (int i = 0; i < FULL_SCREEN_HEIGHT-2 && i + offset < NUM_ACTIONS; i++) {
|
||||
mvwprintz(w_help, i, 0, c_ltblue, "%c", 'a' + i);
|
||||
mvwprintz(w_help, i, 1, c_white, ":");
|
||||
}
|
||||
@@ -545,10 +621,10 @@ extremities from frostbite and to keep your distance from large fires.");
|
||||
if (actch >= 'a' && actch <= 'a' + 24 &&
|
||||
actch - 'a' + offset < NUM_ACTIONS) {
|
||||
action_id act = action_id(actch - 'a' + offset);
|
||||
if (ch == '-' && query_yn("Clear keys for %s?",action_name(act).c_str())){
|
||||
if (remapch == '-' && query_yn("Clear keys for %s?",action_name(act).c_str())){
|
||||
clear_bindings(act);
|
||||
changed_keymap = true;
|
||||
} else if (ch == '+') {
|
||||
} else if (remapch == '+') {
|
||||
char newbind = popup_getkey("New key for %s:", action_name(act).c_str());
|
||||
if (keymap.find(newbind) == keymap.end()) { // It's not in use! Good.
|
||||
keymap[ newbind ] = act;
|
||||
@@ -559,9 +635,22 @@ extremities from frostbite and to keep your distance from large fires.");
|
||||
}
|
||||
}
|
||||
}
|
||||
} while (ch != 'q' && ch != 'Q' && ch != KEY_ESCAPE);
|
||||
if (changed_keymap && query_yn("Save changes?"))
|
||||
save_keymap();
|
||||
} while (remapch != 'q' && remapch != 'Q' && remapch != KEY_ESCAPE);
|
||||
|
||||
|
||||
if (changed_keymap)
|
||||
{
|
||||
if(query_yn("Save changes?"))
|
||||
{
|
||||
save_keymap();
|
||||
}
|
||||
else
|
||||
{
|
||||
// Player wants to keep the old keybindings. Revert!
|
||||
keymap = keymap_old;
|
||||
}
|
||||
}
|
||||
|
||||
werase(w_help);
|
||||
} break;
|
||||
|
||||
@@ -570,14 +659,19 @@ extremities from frostbite and to keep your distance from large fires.");
|
||||
werase(w_help);
|
||||
} break;
|
||||
|
||||
case '3':
|
||||
case '3': {
|
||||
show_auto_pickup();
|
||||
werase(w_help);
|
||||
} break;
|
||||
|
||||
case '4':
|
||||
werase(w_help);
|
||||
mvwprintz(w_help, 0, 0, c_white, "\
|
||||
ITEM TYPES:\n\
|
||||
~ Liquid\n\
|
||||
%%%% Food\n\
|
||||
! Medication\n\
|
||||
These are all consumed by using 'E'. They provide a certain amount of\n\
|
||||
These are all consumed by %s. They provide a certain amount of\n\
|
||||
nutrition, quench your thirst, may be a stimulant or a depressant, and may\n\
|
||||
provide morale. There may also be more subtle effects.\n\
|
||||
\n\
|
||||
@@ -586,13 +680,17 @@ ITEM TYPES:\n\
|
||||
, Tiny item\n\
|
||||
These are all generic items, useful only to be wielded as a weapon.\n\
|
||||
However, some have special uses; they will show up under the TOOLS section\n\
|
||||
in your inventory. Press 'a' to use these.\n\
|
||||
in your inventory. %s to use these.\n\
|
||||
\n\
|
||||
) Container\n\
|
||||
These items may hold other items. Someare passable weapons. Many will be\n\
|
||||
listed with their contents, e.g. \"plastic bottle of water\". Those containing\n\
|
||||
comestibles may be eaten with 'E'; this may leave you with an empty container.\n\
|
||||
Press any key to continue...");
|
||||
These items may hold other items. Some are passable weapons.\n\
|
||||
Many will be listed with their contents, e.g. \"plastic bottle of water\".\n\
|
||||
Those containing comestibles may be eaten%s;\n\
|
||||
this may leave an empty container.\n\
|
||||
Press any key to continue...",
|
||||
press_x(ACTION_EAT, "using ", "eating").c_str(),
|
||||
press_x(ACTION_USE).c_str(),
|
||||
press_x(ACTION_EAT, " with ", "").c_str());
|
||||
wrefresh(w_help);
|
||||
refresh();
|
||||
getch();
|
||||
@@ -600,7 +698,7 @@ Press any key to continue...");
|
||||
mvwprintz(w_help, 0, 0, c_white, "\
|
||||
ITEM TYPES:\n\
|
||||
[ Clothing\n\
|
||||
This may be worn with the 'W' key or removed with the 'T' key. It may\n\
|
||||
This may be worn%s or removed%s. It may\n\
|
||||
cover one or more body parts; you can wear multiple articles of clothing on\n\
|
||||
any given body part, but this will encumber you severely. Each article of\n\
|
||||
clothing may provide storage space, warmth, an encumberment, and a resistance\n\
|
||||
@@ -608,19 +706,27 @@ ITEM TYPES:\n\
|
||||
effects.\n\
|
||||
\n\
|
||||
( Firearm\n\
|
||||
This weapon may be loaded with ammunition with 'r', unloaded with 'U', and\n\
|
||||
fired with 'f'. Some have automatic fire, which may be used with 'F' at a\n\
|
||||
penalty to accuracy. The color refers to the type; handguns are gray, shotguns\n\
|
||||
are red, submachine guns are cyan, rifles are brown, assault rifles are blue,\n\
|
||||
and heavy machine guns are light red. Each has an accuracy rating, a bonus to\n\
|
||||
damage, a rate of fire, and a maximum load. Note that most firearms load\n\
|
||||
fully in one action, while shotguns must be loaded one shell at a time.\n\
|
||||
This weapon may be loaded with ammunition%s, unloaded%s, and\n\
|
||||
fired%s. Some have automatic fire, which may be used%s at a\n\
|
||||
penalty to accuracy. The color refers to the type; handguns are gray,\n\
|
||||
shotguns are red, submachine guns are cyan, rifles are brown, assault rifles\n\
|
||||
are blue, and heavy machine guns are light red. Each has a dispersion rating,\n\
|
||||
a bonus to damage, a rate of fire, and a maximum load. Note that most\n\
|
||||
firearms load fully in one action, while shotguns must be loaded one\n\
|
||||
shell at a time.\n\
|
||||
\n\
|
||||
= Ammunition\n\
|
||||
Ammunition is worthless without a gun to load it into. Generally, there\n\
|
||||
are several variants for any particular calibre. Ammunition has a damage\n\
|
||||
rating, an accuracy, a range, and an armor-piercing quality.\n\
|
||||
Press any key to continue...");
|
||||
Ammunition is worthless without a gun to load it into. Generally,\n\
|
||||
there are several variants for any particular calibre. Ammunition has\n\
|
||||
damage, dispersion, and range ratings, and an armor-piercing quality.\n\
|
||||
Press any key to continue...",
|
||||
press_x(ACTION_WEAR, " with the ", " key","").c_str(),
|
||||
press_x(ACTION_TAKE_OFF, " with the "," key","").c_str(),
|
||||
press_x(ACTION_RELOAD, " with ", "").c_str(),
|
||||
press_x(ACTION_UNLOAD, " with ", "").c_str(),
|
||||
press_x(ACTION_FIRE, " with ", "").c_str(),
|
||||
press_x(ACTION_SELECT_FIRE_MODE, " with ", "").c_str()/*,
|
||||
press_x(ACTION_FIRE_BURST).c_str()*/);
|
||||
wrefresh(w_help);
|
||||
refresh();
|
||||
getch();
|
||||
@@ -630,35 +736,38 @@ ITEM TYPES:\n\
|
||||
\n\
|
||||
* Thrown weapon; simple projectile or grenade\n\
|
||||
These items are suited for throwing, and many are only useful when\n\
|
||||
thrown, such as grenades, molotov cocktails, or tear gas.\n\
|
||||
thrown, such as grenades, molotov cocktails, or tear gas. Once activated\n\
|
||||
be certain to throw these items%s.\n\
|
||||
\n\
|
||||
? Book or magazine\n\
|
||||
This can be read for training or entertainment by pressing 'R'. Most\n\
|
||||
This can be read for training or entertainment%s. Most\n\
|
||||
require a basic level of intelligence; some require some base knowledge in\n\
|
||||
the relevant subject.");
|
||||
the relevant subject.",
|
||||
press_x(ACTION_THROW, " by pressing ",", then the letter of the item to throw.",".").c_str(),
|
||||
press_x(ACTION_READ, " by pressing ", "").c_str());
|
||||
wrefresh(w_help);
|
||||
refresh();
|
||||
getch();
|
||||
break;
|
||||
|
||||
case '4':
|
||||
case '5':
|
||||
werase(w_help);
|
||||
mvwprintz(w_help, 0, 0, c_ltgray, "MAP SYMBOLS:");
|
||||
mvwprintz(w_help, 1, 0, c_brown, "\
|
||||
. Field - Empty grassland, occasional wild fruit.");
|
||||
mvwprintz(w_help, 2, 0, c_green, "\
|
||||
F Forest - May be dense or sparse. Slow moving; foragable food.");
|
||||
mvputch(3, 0, c_dkgray, LINE_XOXO);
|
||||
mvputch(3, 1, c_dkgray, LINE_OXOX);
|
||||
mvputch(3, 2, c_dkgray, LINE_XXOO);
|
||||
mvputch(3, 3, c_dkgray, LINE_OXXO);
|
||||
mvputch(3, 4, c_dkgray, LINE_OOXX);
|
||||
mvputch(3, 5, c_dkgray, LINE_XOOX);
|
||||
mvputch(3, 6, c_dkgray, LINE_XXXO);
|
||||
mvputch(3, 7, c_dkgray, LINE_XXOX);
|
||||
mvputch(3, 8, c_dkgray, LINE_XOXX);
|
||||
mvputch(3, 9, c_dkgray, LINE_OXXX);
|
||||
mvputch(3, 10, c_dkgray, LINE_XXXX);
|
||||
mvwputch(w_help, 3, 0, c_dkgray, LINE_XOXO);
|
||||
mvwputch(w_help, 3, 1, c_dkgray, LINE_OXOX);
|
||||
mvwputch(w_help, 3, 2, c_dkgray, LINE_XXOO);
|
||||
mvwputch(w_help, 3, 3, c_dkgray, LINE_OXXO);
|
||||
mvwputch(w_help, 3, 4, c_dkgray, LINE_OOXX);
|
||||
mvwputch(w_help, 3, 5, c_dkgray, LINE_XOOX);
|
||||
mvwputch(w_help, 3, 6, c_dkgray, LINE_XXXO);
|
||||
mvwputch(w_help, 3, 7, c_dkgray, LINE_XXOX);
|
||||
mvwputch(w_help, 3, 8, c_dkgray, LINE_XOXX);
|
||||
mvwputch(w_help, 3, 9, c_dkgray, LINE_OXXX);
|
||||
mvwputch(w_help, 3, 10, c_dkgray, LINE_XXXX);
|
||||
|
||||
mvwprintz(w_help, 3, 12, c_dkgray, "\
|
||||
Road - Safe from burrowing animals.");
|
||||
@@ -699,7 +808,7 @@ O Parking lot - Empty lot, few items. Mostly useless.");
|
||||
getch();
|
||||
break;
|
||||
|
||||
case '5':
|
||||
case '6':
|
||||
werase(w_help);
|
||||
mvwprintz(w_help, 0, 0, c_white, "Gun types:");
|
||||
mvwprintz(w_help, 2, 0, c_ltgray, "( Handguns");
|
||||
@@ -707,24 +816,25 @@ O Parking lot - Empty lot, few items. Mostly useless.");
|
||||
Handguns are small weapons held in one or both hands. They are much more\n\
|
||||
difficult to aim and control than larger firearms, and this is reflected in\n\
|
||||
their poor accuracy. However, their small size makes them appropriate for\n\
|
||||
short-range combat, where largers guns fare poorly.\n\
|
||||
short-range combat, where larger guns fare poorly.\n\
|
||||
They are also relatively quick to reload, and use a very wide selection of\n\
|
||||
ammunition. Their small size and low weight make it possible to carry\n\
|
||||
several loaded handguns, switching from one to the next once their ammo is\n\
|
||||
spent.");
|
||||
mvwprintz(w_help, 12, 0, c_green, "( Crossbows");
|
||||
mvwprintz(w_help, 13, 0, c_white, "\
|
||||
The best feature of crossbows is their silence. The bolts they fire are only\n\
|
||||
rarely destroyed; if you pick up the bolts after firing them, your ammunition\n\
|
||||
will last much longer. Crossbows suffer from a short range and a very long\n\
|
||||
reload time (modified by your strength); plus, most only hold a single round.\n\
|
||||
The best feature of crossbows is their silence. The bolts they fire are\n\
|
||||
only rarely destroyed; if you pick up the bolts after firing them, your \n\
|
||||
ammunition will last much longer. Crossbows suffer from a short range and\n\
|
||||
a very long reload time (modified by your strength); plus, most only hold\n\
|
||||
a single round.\n\
|
||||
For this reason, it is advisable to carry a few loaded crossbows.\n\
|
||||
Crossbows can be very difficult to find; however, it is possible to craft one\n\
|
||||
given enough Mechanics skill. Likewise, it is possible to make wooden bolts\n\
|
||||
from any number of wooden objects, though these are much less effective than\n\
|
||||
steel bolts.\n\
|
||||
Crossbows can be very difficult to find; however, it is possible to craft\n\
|
||||
one given enough Mechanics skill. Likewise, it is possible to make\n\
|
||||
wooden bolts from any number of wooden objects, though these are much\n\
|
||||
less effective than steel bolts.\n\
|
||||
Crossbows use the handgun skill.");
|
||||
mvwprintz(w_help, 24, 0, c_white, "Press any key to continue...");
|
||||
mvwprintz(w_help, FULL_SCREEN_HEIGHT-1, 0, c_white, "Press any key to continue...");
|
||||
|
||||
wrefresh(w_help);
|
||||
refresh();
|
||||
@@ -737,8 +847,8 @@ Shotguns are one of the most powerful weapons in the game, capable of taking\n\
|
||||
out almost any enemy with a single hit. Birdshot and 00 shot spread, making\n\
|
||||
it very easy to hit nearby monsters. However, they are very ineffective\n\
|
||||
against armor, and some armored monsters might shrug off 00 shot completely.\n\
|
||||
Shotgun slugs are the answer to this problem; they also offer much better\n\
|
||||
range than shot.\n\
|
||||
Shotgun slugs are the answer to this problem; they also offer much\n\
|
||||
better range than shot.\n\
|
||||
The biggest drawback to shotguns is their noisiness. They are very loud,\n\
|
||||
and impossible to silence. A shot that kills one zombie might attract three\n\
|
||||
more! Because of this, shotguns are best reserved for emergencies.");
|
||||
@@ -750,7 +860,7 @@ of bullets. However, they are more effective when firing single shots, so\n\
|
||||
use discretion. They mainly use the 9mm and .45 ammunition; however, other\n\
|
||||
SMGs exist. They reload moderately quickly, and are suitable for close or\n\
|
||||
medium-long range combat.");
|
||||
mvwprintz(w_help, 22, 0, c_white, "Press any key to continue...");
|
||||
mvwprintz(w_help, FULL_SCREEN_HEIGHT-3, 0, c_white, "Press any key to continue...");
|
||||
|
||||
wrefresh(w_help);
|
||||
refresh();
|
||||
@@ -764,8 +874,8 @@ more, their scopes or sights make shots fired at targets more than 10 tiles\n\
|
||||
away as accurate as those with a shorter range. However, they are very poor\n\
|
||||
at hitting targets 4 squares or less from the player.\n\
|
||||
Unlike assault rifles, hunting rifles have no automatic fire. They are also\n\
|
||||
slow to reload and fire, so when facing a large group of nearby enemies, they\n\
|
||||
are not the best pick.");
|
||||
slow to reload and fire, so when facing a large group of nearby enemies,\n\
|
||||
they are not the best pick.");
|
||||
mvwprintz(w_help, 11, 0, c_blue, "( Assault Rifles");
|
||||
mvwprintz(w_help, 12, 0, c_white, "\
|
||||
Assault rifles are similar to hunting rifles in many ways; they are also\n\
|
||||
@@ -776,7 +886,7 @@ fire, so save it for when you're highly skilled.\n\
|
||||
Assault rifles are an excellent choice for medium or long range combat, or\n\
|
||||
even close-range bursts again a large number of enemies. They are difficult\n\
|
||||
to use, and are best saved for skilled riflemen.");
|
||||
mvwprintz(w_help, 24, 0, c_white, "Press any key to continue...");
|
||||
mvwprintz(w_help, FULL_SCREEN_HEIGHT-1, 0, c_white, "Press any key to continue...");
|
||||
|
||||
wrefresh(w_help);
|
||||
refresh();
|
||||
@@ -794,46 +904,45 @@ making them very good at clearing out large numbers of enemies.");
|
||||
mvwprintz(w_help, 10, 0, c_magenta, "( Energy Weapons");
|
||||
mvwprintz(w_help, 11, 0, c_white, "\
|
||||
Energy weapons is an umbrella term used to describe a variety of rifles and\n\
|
||||
handguns which fire lasers, plasma, or energy atttacks. They started to\n\
|
||||
appear in military use just prior to the start of the apocalypse, and as such\n\
|
||||
are very difficult to find.\n\
|
||||
handguns which fire lasers, plasma, or energy attacks. They started to\n\
|
||||
appear in military use just prior to the start of the apocalypse, and\n\
|
||||
as such are very difficult to find.\n\
|
||||
Energy weapons have no recoil at all; they are nearly silent, have a long\n\
|
||||
range, and are fairly damaging. The biggest drawback to energy weapons is\n\
|
||||
scarcity of ammunition; it is wise to reserve the precious ammo for when you\n\
|
||||
really need it.");
|
||||
mvwprintz(w_help, 24, 0, c_white, "Press any key to continue...");
|
||||
scarcity of ammunition; it is wise to reserve the precious ammo for when\n\
|
||||
you really need it.");
|
||||
mvwprintz(w_help, FULL_SCREEN_HEIGHT-1, 0, c_white, "Press any key to continue...");
|
||||
|
||||
wrefresh(w_help);
|
||||
refresh();
|
||||
getch();
|
||||
break;
|
||||
|
||||
case '6':
|
||||
case '7':
|
||||
werase(w_help);
|
||||
mvwprintz(w_help, 0, 0, c_white, "\
|
||||
Q: What is Run Mode, and why does it prevent me from moving?\n\
|
||||
A: Run Mode is a way to guarantee that you won't die by holding a movement\n\
|
||||
Q: What is Safe Mode, and why does it prevent me from moving?\n\
|
||||
A: Safe Mode is a way to guarantee that you won't die by holding a movement\n\
|
||||
key down. When a monster comes into view, your movement will be ignored\n\
|
||||
until Run Mode is turned off with the ! key. This ensures that the\n\
|
||||
sudden appearence of a monster won't catch you off guard.\n\
|
||||
until Safe Mode is turned off with the ! key. This ensures that\n\
|
||||
the sudden appearence of a monster won't catch you off guard.\n\
|
||||
\n\
|
||||
Q: It seems like everything I eat makes me sick! What's wrong?\n\
|
||||
A: Lots of the food found in towns is perishable, and will only last a few\n\
|
||||
days after the start of a new game (July 12). Fruit, milk, and others are\n\
|
||||
the first to go. After the first couple of days, you should switch to\n\
|
||||
canned food, jerky, and hunting.\n\
|
||||
days after the start of a new game (July 12). Fruit, milk, and others\n\
|
||||
are the first to go. After the first couple of days, you should switch\n\
|
||||
to canned food, jerky, and hunting.\n\
|
||||
\n\
|
||||
Q: Why doesn't reading a book seem to give me any training?\n\
|
||||
A: Your skills will not be displayed in the @ screen until they reach level\n\
|
||||
one. Generally it will take several reads of the same book to gain a\n\
|
||||
single level in a skill.\n\
|
||||
Q: How can I remove boards from boarded-up windows and doors?\n\
|
||||
A: Use a hammer and choose the direction of the boarded-up window or\n\
|
||||
door to remove the boards.\n\
|
||||
\n\
|
||||
Q: How can I board up windows and doors?\n\
|
||||
A: You'll need a hammer, nails, and two by fours. Use the hammer and choose\n\
|
||||
the direction in which the terrain you wish to barricade lies.\n\
|
||||
Q: The game just told me to quit, and other weird stuff is happening.\n\
|
||||
A: You have the Schizophrenic trait, which might make the game seem buggy.\n\
|
||||
\n\
|
||||
Q: How can I prevent monsters from attacking while I sleep?\n\
|
||||
A: Find a safe place to sleep, in a building far from the front door. Set\n\
|
||||
traps if you have them, or build a fire.");
|
||||
A: Find a safe place to sleep, in a building far from the front door.\n\
|
||||
Set traps if you have them, or build a fire.");
|
||||
|
||||
wrefresh(w_help);
|
||||
refresh();
|
||||
@@ -843,40 +952,49 @@ A: Find a safe place to sleep, in a building far from the front door. Set\n\
|
||||
Q: Why do I always sink when I try to swim?\n\
|
||||
A: Your swimming ability is reduced greatly by the weight you are carrying,\n\
|
||||
and is also adversely affected by the clothing you wear. Until you reach\n\
|
||||
a high level in the swimming skill, you'll need to drop your equipment and\n\
|
||||
remove your clothing to swim, making it a last-ditch escape plan.\n\
|
||||
a high level in the swimming skill, you'll need to drop your equipment \n\
|
||||
and remove your clothing to swim, making it a last-ditch escape plan.\n\
|
||||
\n\
|
||||
Q: How can I cure a fungal infection?\n\
|
||||
A: At present time, there is only one cure, royal jelly. You can find royal\n\
|
||||
jelly in the bee hives which dot forests.\n\
|
||||
\n\
|
||||
Q: How do I get into science labs?\n\
|
||||
A: You can enter the front door if you have an ID card by 'e'xamining the\n\
|
||||
A: You can enter the front door if you have an ID card by %s the\n\
|
||||
keypad. If you are skilled in computers and have an electrohack, it is\n\
|
||||
possible to hack the keypad. An EMP blast has a chance to force the doors\n\
|
||||
open, but it's more likely to break them. You can also sneak in through\n\
|
||||
the sewers sometimes, or try to smash through the walls with explosions.\n\
|
||||
\n\
|
||||
Q: Why does my crafting fail so often?\n\
|
||||
A: Check the difficulty of the recipe, and the primary skill used; your skill\n\
|
||||
level should be around one and a half times the difficulty to be confident\n\
|
||||
that it will succeed.");
|
||||
A: Check the difficulty of the recipe, and the primary skill used; your\n\
|
||||
skill level should be around one and a half times the difficulty to\n\
|
||||
be confident that it will succeed.",
|
||||
press_x(ACTION_EXAMINE, "examining").c_str());
|
||||
|
||||
wrefresh(w_help);
|
||||
refresh();
|
||||
getch();
|
||||
werase(w_help);
|
||||
mvwprintz(w_help, 0, 0, c_white, "\
|
||||
Q: Shotguns bring in more zombies than they kill! What's the point?\n\
|
||||
A: Shotguns are intended for emergency use. If you are cornered, use your\n\
|
||||
shotgun to escape, then just run from the zombies it attracts.\n\
|
||||
Q: Why can't I carry anything?\n\
|
||||
A: At the start of the game you only have the space in your pockets.\n\
|
||||
A good first goal of many survivors is to find a backpack or pouch to\n\
|
||||
store things in. (The shelter basement is a good place to check first!)\n\
|
||||
\n\
|
||||
Q: The game just told me to quit, and other weird stuff is happening.\n\
|
||||
A: You have the Schizophrenic trait, which might make the game seem buggy.\n\
|
||||
Q: Shotguns bring in more zombies than they kill! What's the point?\n\
|
||||
A: Shotguns are intended for emergency use. If you are cornered, use\n\
|
||||
your shotgun to escape, then just run from the zombies it attracts.\n\
|
||||
\n\
|
||||
Q: Help! I started a fire and now my house is burning down!\n\
|
||||
A: Fires will spread to nearby flammable tiles if they are able. Lighting a\n\
|
||||
stop fire in a set-up brazier, wood stove, stone fireplace, or pit will\n\
|
||||
it from spreading. Fire extinguishers can put out fires that get out\n\
|
||||
of control.\n\
|
||||
\n\
|
||||
Q: I have a question that's not addressed here. How can I get an answer?\n\
|
||||
A: Email your question to TheDarklingWolf@Gmail.com. I'll answer it for you,\n\
|
||||
and possibly include it on this list.");
|
||||
A: Ask the helpful people on the forum at smf.cataclysmdda.com or email\n\
|
||||
your question to TheDarklingWolf@Gmail.com.");
|
||||
|
||||
wrefresh(w_help);
|
||||
refresh();
|
||||
|
||||
+24
@@ -0,0 +1,24 @@
|
||||
#include "helper.h"
|
||||
#include <string>
|
||||
#include <sstream>
|
||||
namespace helper
|
||||
{
|
||||
int to_int(std::string str)
|
||||
{
|
||||
std::istringstream buffer(str);
|
||||
int value;
|
||||
buffer >> value;
|
||||
if(str != to_string(value)) //if the converted value is different then return 0 (similar to atoi)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
return value;
|
||||
}
|
||||
std::string to_string(int i)
|
||||
{
|
||||
std::stringstream sstr;
|
||||
sstr << i;
|
||||
std::string str1 = sstr.str();
|
||||
return str1;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
#ifndef _HELPER_H_
|
||||
#define _HELPER_H_
|
||||
#include <string>
|
||||
#include <sstream>
|
||||
namespace helper
|
||||
{
|
||||
int to_int(std::string str);
|
||||
std::string to_string(int i);
|
||||
}
|
||||
#endif
|
||||
+317
-151
@@ -5,6 +5,7 @@
|
||||
// Livingstone
|
||||
//
|
||||
|
||||
#include "item_factory.h"
|
||||
#include "iuse.h"
|
||||
#include "game.h"
|
||||
#include "mapdata.h"
|
||||
@@ -16,7 +17,7 @@
|
||||
#include <sstream>
|
||||
|
||||
void iexamine::none (game *g, player *p, map *m, int examx, int examy) {
|
||||
g->add_msg("That is a %s.", m->tername(examx, examy).c_str());
|
||||
g->add_msg("That is a %s.", m->name(examx, examy).c_str());
|
||||
};
|
||||
|
||||
void iexamine::gaspump(game *g, player *p, map *m, int examx, int examy) {
|
||||
@@ -24,35 +25,38 @@ void iexamine::gaspump(game *g, player *p, map *m, int examx, int examy) {
|
||||
none(g, p, m, examx, examy);
|
||||
return;
|
||||
}
|
||||
item gas(g->itypes["gasoline"], g->turn);
|
||||
if (one_in(10 + p->dex_cur)) {
|
||||
g->add_msg("You accidentally spill the gasoline.");
|
||||
m->add_item(p->posx, p->posy, gas);
|
||||
} else {
|
||||
p->moves -= 300;
|
||||
g->handle_liquid(gas, false, true);
|
||||
}
|
||||
if (one_in(50)) {
|
||||
g->add_msg("With a clang and a shudder, the gas pump goes silent.");
|
||||
m->ter_set(examx, examy, t_gas_pump_empty);
|
||||
|
||||
for (int i = 0; i < m->i_at(examx, examy).size(); i++) {
|
||||
if (m->i_at(examx, examy)[i].made_of(LIQUID)) {
|
||||
item* liq = &(m->i_at(examx, examy)[i]);
|
||||
|
||||
if (one_in(10 + p->dex_cur)) {
|
||||
g->add_msg("You accidentally spill the %s.", liq->type->name.c_str());
|
||||
item spill(liq->type, g->turn);
|
||||
spill.charges = rng(dynamic_cast<it_ammo*>(liq->type)->count,
|
||||
dynamic_cast<it_ammo*>(liq->type)->count * (float)(8 / p->dex_cur));
|
||||
m->add_item_or_charges(p->posx, p->posy, spill, 1);
|
||||
liq->charges -= spill.charges;
|
||||
if (liq->charges < 1) {
|
||||
m->i_at(examx, examy).erase(m->i_at(examx, examy).begin() + i);
|
||||
}
|
||||
} else {
|
||||
p->moves -= 300;
|
||||
if (g->handle_liquid(*liq, true, false)) {
|
||||
g->add_msg("With a clang and a shudder, the %s pump goes silent.", liq->type->name.c_str());
|
||||
m->i_at(examx, examy).erase(m->i_at(examx, examy).begin() + i);
|
||||
}
|
||||
}
|
||||
return;
|
||||
}
|
||||
}
|
||||
g->add_msg("Out of order.");
|
||||
}
|
||||
|
||||
void iexamine::elevator(game *g, player *p, map *m, int examx, int examy){
|
||||
if (!query_yn("Use the %s?",m->tername(examx, examy).c_str())) return;
|
||||
int movez = (g->levz < 0 ? 2 : -2);
|
||||
g->levz += movez;
|
||||
m->load(g, g->levx, g->levy, g->levz);
|
||||
g->update_map(p->posx, p->posy);
|
||||
for (int x = 0; x < SEEX * MAPSIZE; x++) {
|
||||
for (int y = 0; y < SEEY * MAPSIZE; y++) {
|
||||
if (m->ter(x, y) == t_elevator) {
|
||||
p->posx = x;
|
||||
p->posy = y;
|
||||
}
|
||||
}
|
||||
}
|
||||
g->refresh_all();
|
||||
g->vertical_move( movez, false );
|
||||
}
|
||||
|
||||
void iexamine::controls_gate(game *g, player *p, map *m, int examx, int examy) {
|
||||
@@ -91,7 +95,7 @@ void iexamine::cardreader(game *g, player *p, map *m, int examx, int examy) {
|
||||
query_yn("Use fingerhack on the reader?"));
|
||||
if (using_electrohack || using_fingerhack) {
|
||||
p->moves -= 500;
|
||||
p->practice("computer", 20);
|
||||
p->practice(g->turn, "computer", 20);
|
||||
int success = rng(p->skillLevel("computer") / 4 - 2, p->skillLevel("computer") * 2);
|
||||
success += rng(-3, 3);
|
||||
if (using_fingerhack)
|
||||
@@ -183,24 +187,24 @@ void iexamine::tent(game *g, player *p, map *m, int examx, int examy) {
|
||||
p->moves -= 200;
|
||||
for (int i = -1; i <= 1; i++)
|
||||
for (int j = -1; j <= 1; j++)
|
||||
m->ter_set(examx + i, examy + j, t_dirt);
|
||||
m->furn_set(examx + i, examy + j, f_null);
|
||||
g->add_msg("You take down the tent");
|
||||
item tent(g->itypes["tent_kit"], g->turn);
|
||||
m->add_item(examx, examy, tent);
|
||||
item dropped(g->itypes["tent_kit"], g->turn);
|
||||
m->add_item(examx, examy, dropped);
|
||||
}
|
||||
|
||||
void iexamine::shelter(game *g, player *p, map *m, int examx, int examy) {
|
||||
if (!query_yn("Take down %s?",m->tername(examx, examy).c_str())) {
|
||||
if (!query_yn("Take down %s?",m->furnname(examx, examy).c_str())) {
|
||||
none(g, p, m, examx, examy);
|
||||
return;
|
||||
}
|
||||
p->moves -= 200;
|
||||
for (int i = -1; i <= 1; i++)
|
||||
for (int j = -1; j <= 1; j++)
|
||||
m->ter_set(examx + i, examy + j, t_dirt);
|
||||
m->furn_set(examx + i, examy + j, f_null);
|
||||
g->add_msg("You take down the shelter");
|
||||
item tent(g->itypes["shelter_kit"], g->turn);
|
||||
m->add_item(examx, examy, tent);
|
||||
item dropped(g->itypes["shelter_kit"], g->turn);
|
||||
m->add_item(examx, examy, dropped);
|
||||
}
|
||||
|
||||
void iexamine::wreckage(game *g, player *p, map *m, int examx, int examy) {
|
||||
@@ -225,60 +229,86 @@ void iexamine::wreckage(game *g, player *p, map *m, int examx, int examy) {
|
||||
}
|
||||
}
|
||||
|
||||
void iexamine::pit(game *g, player *p, map *m, int examx, int examy) {
|
||||
if(!p->has_amount("2x4", 1)) {
|
||||
none(g, p, m, examx, examy);
|
||||
return;
|
||||
}
|
||||
if (query_yn("Place a plank over the pit?")) {
|
||||
p->use_amount("2x4", 1);
|
||||
m->ter_set(examx, examy, t_pit_covered);
|
||||
g->add_msg("You place a plank of wood over the pit");
|
||||
} else {
|
||||
g->add_msg("You need a plank of wood to do that");
|
||||
}
|
||||
void iexamine::pit(game *g, player *p, map *m, int examx, int examy)
|
||||
{
|
||||
bool player_has = false;
|
||||
bool map_has = false;
|
||||
inventory map_inv;
|
||||
map_inv.form_from_map(g, point(p->posx, p->posy), 1);
|
||||
|
||||
// check if player has 2x4
|
||||
player_has = p->has_amount("2x4", 1);
|
||||
|
||||
// check if map has 2x4 in a 1-tile radius around player
|
||||
map_has = map_inv.has_amount("2x4", 1);
|
||||
|
||||
// return if there is no 2x4 around
|
||||
if (!player_has && !map_has)
|
||||
{
|
||||
none(g, p, m, examx, examy);
|
||||
return;
|
||||
}
|
||||
|
||||
if (query_yn("Place a plank over the pit?"))
|
||||
{
|
||||
// if both have, then ask to use the one on the map
|
||||
if (player_has && map_has)
|
||||
{
|
||||
if (query_yn("Use the plank at your feet?"))
|
||||
{
|
||||
m->use_amount(point(p->posx, p->posy), 1, "2x4", 1, false);
|
||||
}
|
||||
else
|
||||
{
|
||||
p->use_amount("2x4", 1);
|
||||
}
|
||||
}
|
||||
else if (player_has && !map_has) // only player has plank
|
||||
{
|
||||
p->use_amount("2x4", 1);
|
||||
}
|
||||
else if (!player_has && map_has) // only map has plank
|
||||
{
|
||||
m->use_amount(point(p->posx, p->posy), 1, "2x4", 1, false);
|
||||
}
|
||||
|
||||
if( m->ter(examx, examy) == t_pit )
|
||||
{
|
||||
m->ter_set(examx, examy, t_pit_covered);
|
||||
}
|
||||
else if( m->ter(examx, examy) == t_pit_spiked )
|
||||
{
|
||||
m->ter_set(examx, examy, t_pit_spiked_covered);
|
||||
}
|
||||
g->add_msg("You place a plank of wood over the pit.");
|
||||
}
|
||||
}
|
||||
|
||||
void iexamine::pit_spiked(game *g, player *p, map *m, int examx, int examy) {
|
||||
if(!p->has_amount("2x4", 1)) {
|
||||
none(g, p, m, examx, examy);
|
||||
return;
|
||||
}
|
||||
if (query_yn("Place a plank over the pit?")) {
|
||||
p->use_amount("2x4", 1);
|
||||
m->ter_set(examx, examy, t_pit_spiked_covered);
|
||||
g->add_msg("You place a plank of wood over the pit");
|
||||
} else {
|
||||
g->add_msg("You need a plank of wood to do that");
|
||||
}
|
||||
}
|
||||
void iexamine::pit_covered(game *g, player *p, map *m, int examx, int examy)
|
||||
{
|
||||
if(!query_yn("Remove cover?"))
|
||||
{
|
||||
none(g, p, m, examx, examy);
|
||||
return;
|
||||
}
|
||||
|
||||
void iexamine::pit_covered(game *g, player *p, map *m, int examx, int examy) {
|
||||
if(!query_yn("Remove cover?")) {
|
||||
none(g, p, m, examx, examy);
|
||||
return;
|
||||
}
|
||||
item plank(g->itypes["2x4"], g->turn);
|
||||
g->add_msg("You remove the plank.");
|
||||
m->add_item(p->posx, p->posy, plank);
|
||||
m->ter_set(examx, examy, t_pit);
|
||||
}
|
||||
item plank(g->itypes["2x4"], g->turn);
|
||||
g->add_msg("You remove the plank.");
|
||||
m->add_item(p->posx, p->posy, plank);
|
||||
|
||||
void iexamine::pit_spiked_covered(game *g, player *p, map *m, int examx, int examy) {
|
||||
if(!query_yn("Remove cover?")) {
|
||||
none(g, p, m, examx, examy);
|
||||
return;
|
||||
}
|
||||
|
||||
item plank(g->itypes["2x4"], g->turn);
|
||||
g->add_msg("You remove the plank.");
|
||||
m->add_item(p->posx, p->posy, plank);
|
||||
m->ter_set(examx, examy, t_pit_spiked);
|
||||
if( m->ter(examx, examy) == t_pit_covered )
|
||||
{
|
||||
m->ter_set(examx, examy, t_pit);
|
||||
}
|
||||
else if( m->ter(examx, examy) == t_pit_spiked_covered )
|
||||
{
|
||||
m->ter_set(examx, examy, t_pit_spiked);
|
||||
}
|
||||
}
|
||||
|
||||
void iexamine::fence_post(game *g, player *p, map *m, int examx, int examy) {
|
||||
|
||||
int ch = menu("Fence Construction:", "Rope Fence", "Wire Fence",
|
||||
int ch = menu(true, "Fence Construction:", "Rope Fence", "Wire Fence",
|
||||
"Barbed Wire Fence", "Cancel", NULL);
|
||||
switch (ch){
|
||||
case 1:{
|
||||
@@ -382,7 +412,9 @@ void iexamine::bulletin_board(game *g, player *p, map *m, int examx, int examy)
|
||||
if (camp && camp->board_x() == examx && camp->board_y() == examy) {
|
||||
std::vector<std::string> options;
|
||||
options.push_back("Cancel");
|
||||
int choice = menu_vec(camp->board_name().c_str(), options) - 1;
|
||||
// Causes a warning due to being unused, but don't want to delete since
|
||||
// it's clearly what's intened for future functionality.
|
||||
//int choice = menu_vec(true, camp->board_name().c_str(), options) - 1;
|
||||
}
|
||||
else {
|
||||
bool create_camp = m->allow_camp(examx, examy);
|
||||
@@ -391,7 +423,7 @@ void iexamine::bulletin_board(game *g, player *p, map *m, int examx, int examy)
|
||||
options.push_back("Create camp");
|
||||
options.push_back("Cancel");
|
||||
// TODO: Other Bulletin Boards
|
||||
int choice = menu_vec("Bulletin Board", options) - 1;
|
||||
int choice = menu_vec(true, "Bulletin Board", options) - 1;
|
||||
if (choice >= 0 && choice < options.size()) {
|
||||
if (options[choice] == "Create camp") {
|
||||
// TODO: Allow text entry for name
|
||||
@@ -501,52 +533,64 @@ void iexamine::fswitch(game *g, player *p, map *m, int examx, int examy) {
|
||||
}
|
||||
|
||||
void iexamine::flower_poppy(game *g, player *p, map *m, int examx, int examy) {
|
||||
if(!query_yn("Pick %s?",m->tername(examx, examy).c_str())) {
|
||||
none(g, p, m, examx, examy);
|
||||
return;
|
||||
}
|
||||
if(!query_yn("Pick %s?",m->furnname(examx, examy).c_str())) {
|
||||
none(g, p, m, examx, examy);
|
||||
return;
|
||||
}
|
||||
|
||||
g->add_msg("This flower has a heady aroma");
|
||||
if (!(p->is_wearing("mask_filter")||p->is_wearing("mask_gas") ||
|
||||
one_in(3))) {
|
||||
g->add_msg("You fall asleep...");
|
||||
p->add_disease(DI_SLEEP, 1200, g);
|
||||
g->add_msg("Your legs are covered by flower's roots!");
|
||||
p->hurt(g,bp_legs, 0, 4);
|
||||
p->moves-=50;
|
||||
}
|
||||
m->ter_set(examx, examy, t_dirt);
|
||||
m->spawn_item(examx, examy, g->itypes["poppy_flower"],0);
|
||||
m->spawn_item(examx, examy, g->itypes["poppy_bud"],0);
|
||||
int resist = p->resist(bp_mouth);
|
||||
|
||||
if (resist < 10) {
|
||||
// Can't smell the flowers with a gas mask on!
|
||||
g->add_msg("This flower has a heady aroma");
|
||||
}
|
||||
|
||||
if (one_in(3) && resist < 5) {
|
||||
// Should user player::infect, but can't!
|
||||
// player::infect needs to be restructured to return a bool indicating success.
|
||||
g->add_msg("You fall asleep...");
|
||||
p->add_disease("sleep", 1200);
|
||||
g->add_msg("Your legs are covered by flower's roots!");
|
||||
p->hurt(g,bp_legs, 0, 4);
|
||||
p->moves-=50;
|
||||
}
|
||||
|
||||
m->furn_set(examx, examy, f_null);
|
||||
m->spawn_item(examx, examy, "poppy_flower", 0);
|
||||
m->spawn_item(examx, examy, "poppy_bud", 0);
|
||||
}
|
||||
|
||||
void iexamine::pick_plant(game *g, player *p, map *m, int examx, int examy, std::string itemType, int new_ter) {
|
||||
if (!query_yn("Pick %s?", m->tername(examx, examy).c_str())) {
|
||||
none(g, p, m, examx, examy);
|
||||
return;
|
||||
}
|
||||
|
||||
SkillLevel& survival = p->skillLevel("survival");
|
||||
if (survival < 1)
|
||||
p->practice(g->turn, "survival", rng(5, 12));
|
||||
else if (survival < 6)
|
||||
p->practice(g->turn, "survival", rng(1, 12 / survival));
|
||||
|
||||
int num_fruits = rng(1, survival);
|
||||
if (num_fruits > 12)
|
||||
num_fruits = 12;
|
||||
|
||||
m->spawn_item(examx, examy, itemType, g->turn, num_fruits);
|
||||
|
||||
m->ter_set(examx, examy, (ter_id)new_ter);
|
||||
}
|
||||
|
||||
void iexamine::tree_apple(game *g, player *p, map *m, int examx, int examy) {
|
||||
if(!query_yn("Pick %s?",m->tername(examx, examy).c_str())) return;
|
||||
|
||||
int num_apples = rng(1, p->skillLevel("survival"));
|
||||
if (num_apples >= 12)
|
||||
num_apples = 12;
|
||||
for (int i = 0; i < num_apples; i++)
|
||||
m->spawn_item(examx, examy, g->itypes["apple"], g->turn, 0);
|
||||
|
||||
m->ter_set(examx, examy, t_tree);
|
||||
|
||||
pick_plant(g, p, m, examx, examy, "apple", t_tree);
|
||||
}
|
||||
|
||||
void iexamine::shrub_blueberry(game *g, player *p, map *m, int examx, int examy) {
|
||||
if(!query_yn("Pick %s?",m->tername(examx, examy).c_str())) {
|
||||
none(g, p, m, examx, examy);
|
||||
return;
|
||||
}
|
||||
pick_plant(g, p, m, examx, examy, "blueberries", t_shrub);
|
||||
}
|
||||
|
||||
int num_blueberries = rng(1, p->skillLevel("survival"));
|
||||
|
||||
if (num_blueberries >= 12)
|
||||
num_blueberries = 12;
|
||||
for (int i = 0; i < num_blueberries; i++)
|
||||
m->spawn_item(examx, examy, g->itypes["blueberries"], g->turn, 0);
|
||||
|
||||
m->ter_set(examx, examy, t_shrub);
|
||||
void iexamine::shrub_strawberry(game *g, player *p, map *m, int examx, int examy) {
|
||||
pick_plant(g, p, m, examx, examy, "strawberries", t_shrub);
|
||||
}
|
||||
|
||||
void iexamine::shrub_wildveggies(game *g, player *p, map *m, int examx, int examy) {
|
||||
@@ -558,38 +602,122 @@ void iexamine::shrub_wildveggies(game *g, player *p, map *m, int examx, int exam
|
||||
}
|
||||
|
||||
void iexamine::recycler(game *g, player *p, map *m, int examx, int examy) {
|
||||
if(!query_yn("Use the %s?",m->tername(examx, examy).c_str())) {
|
||||
none(g, p, m, examx, examy);
|
||||
return;
|
||||
}
|
||||
int ch = menu(true,
|
||||
"Recycle metal into?:", "Lumps", "Sheets", "Chunks", "Scraps", "Cancel", NULL);
|
||||
|
||||
if (m->i_at(examx, examy).size() > 0)
|
||||
{
|
||||
g->sound(examx, examy, 80, "Ka-klunk!");
|
||||
int num_metal = 0;
|
||||
for (int i = 0; i < m->i_at(examx, examy).size(); i++)
|
||||
{
|
||||
item *it = &(m->i_at(examx, examy)[i]);
|
||||
if (it->made_of(STEEL))
|
||||
num_metal++;
|
||||
m->i_at(examx, examy).erase(m->i_at(examx, examy).begin() + i);
|
||||
i--;
|
||||
}
|
||||
if (num_metal > 0)
|
||||
{
|
||||
while (num_metal > 9)
|
||||
{
|
||||
m->spawn_item(p->posx, p->posy, g->itypes["steel_lump"], 0);
|
||||
num_metal -= 10;
|
||||
}
|
||||
do
|
||||
{
|
||||
m->spawn_item(p->posx, p->posy, g->itypes["steel_chunk"], 0);
|
||||
num_metal -= 3;
|
||||
} while (num_metal > 2);
|
||||
}
|
||||
}
|
||||
else g->add_msg("The recycler is empty.");
|
||||
// check for how much steel, by weight, is in the recycler
|
||||
// only items made of STEEL are checked
|
||||
// IRON and other metals cannot be turned into STEEL for now
|
||||
|
||||
int steel_weight = 0;
|
||||
int num_lumps = 0;
|
||||
int num_sheets = 0;
|
||||
int num_chunks = 0;
|
||||
int num_scraps = 0;
|
||||
|
||||
if (m->i_at(examx, examy).size() == 0)
|
||||
{
|
||||
g->add_msg("The recycler is currently empty. Drop some metal items onto it and examine it again.");
|
||||
return;
|
||||
}
|
||||
|
||||
if (ch == 5)
|
||||
{
|
||||
g->add_msg("Never mind.");
|
||||
return;
|
||||
}
|
||||
|
||||
for (int i = 0; i < m->i_at(examx, examy).size(); i++)
|
||||
{
|
||||
item *it = &(m->i_at(examx, examy)[i]);
|
||||
if (it->made_of("steel"))
|
||||
steel_weight += it->weight();
|
||||
m->i_at(examx, examy).erase(m->i_at(examx, examy).begin() + i);
|
||||
i--;
|
||||
}
|
||||
|
||||
double recover_factor = rng(6, 9) / 10.0;
|
||||
steel_weight = (int)(steel_weight * recover_factor);
|
||||
|
||||
if (steel_weight == 0)
|
||||
{
|
||||
g->add_msg("The recycler chews up all the items in its hopper.");
|
||||
g->add_msg("The recycler beeps: \"No steel to process!\"");
|
||||
return;
|
||||
}
|
||||
|
||||
g->sound(examx, examy, 80, "Ka-klunk!");
|
||||
|
||||
int lump_weight = item_controller->find_template("steel_lump")->weight;
|
||||
int sheet_weight = item_controller->find_template("sheet_metal")->weight;
|
||||
int chunk_weight = item_controller->find_template("steel_chunk")->weight;
|
||||
int scrap_weight = item_controller->find_template("scrap")->weight;
|
||||
|
||||
switch(ch)
|
||||
{
|
||||
case 1: // 1 steel lump = weight 80
|
||||
num_lumps = steel_weight / (lump_weight);
|
||||
steel_weight -= num_lumps * (lump_weight);
|
||||
num_sheets = steel_weight / (sheet_weight);
|
||||
steel_weight -= num_sheets * (sheet_weight);
|
||||
num_chunks = steel_weight / (chunk_weight);
|
||||
steel_weight -= num_chunks * (chunk_weight);
|
||||
num_scraps = steel_weight / (scrap_weight);
|
||||
if (num_lumps == 0)
|
||||
{
|
||||
g->add_msg("The recycler beeps: \"Insufficient steel!\"");
|
||||
g->add_msg("It spits out an assortment of smaller pieces instead.");
|
||||
}
|
||||
break;
|
||||
|
||||
case 2: // 1 metal sheet = weight 20
|
||||
num_sheets = steel_weight / (sheet_weight);
|
||||
steel_weight -= num_sheets * (sheet_weight);
|
||||
num_chunks = steel_weight / (chunk_weight);
|
||||
steel_weight -= num_chunks * (chunk_weight);
|
||||
num_scraps = steel_weight / (scrap_weight);
|
||||
if (num_sheets == 0)
|
||||
{
|
||||
g->add_msg("The recycler beeps: \"Insufficient steel!\"");
|
||||
g->add_msg("It spits out an assortment of smaller pieces instead.");
|
||||
}
|
||||
break;
|
||||
|
||||
case 3: // 1 steel chunk = weight 6
|
||||
num_chunks = steel_weight / (chunk_weight);
|
||||
steel_weight -= num_chunks * (chunk_weight);
|
||||
num_scraps = steel_weight / (scrap_weight);
|
||||
if (num_chunks == 0)
|
||||
{
|
||||
g->add_msg("The recycler beeps: \"Insufficient steel!\"");
|
||||
g->add_msg("It spits out an assortment of smaller pieces instead.");
|
||||
}
|
||||
break;
|
||||
|
||||
case 4: // 1 metal scrap = weight 1
|
||||
num_scraps = steel_weight / (scrap_weight);
|
||||
break;
|
||||
}
|
||||
|
||||
for (int i = 0; i < num_lumps; i++)
|
||||
{
|
||||
m->spawn_item(p->posx, p->posy, "steel_lump", 0);
|
||||
}
|
||||
|
||||
for (int i = 0; i < num_sheets; i++)
|
||||
{
|
||||
m->spawn_item(p->posx, p->posy, "sheet_metal", 0);
|
||||
}
|
||||
|
||||
for (int i = 0; i < num_chunks; i++)
|
||||
{
|
||||
m->spawn_item(p->posx, p->posy, "steel_chunk", 0);
|
||||
}
|
||||
|
||||
for (int i = 0; i < num_scraps; i++)
|
||||
{
|
||||
m->spawn_item(p->posx, p->posy, "scrap", 0);
|
||||
}
|
||||
}
|
||||
|
||||
void iexamine::trap(game *g, player *p, map *m, int examx, int examy) {
|
||||
@@ -597,6 +725,44 @@ void iexamine::trap(game *g, player *p, map *m, int examx, int examy) {
|
||||
p->per_cur-p->encumb(bp_eyes) >= g->traps[m->tr_at(examx, examy)]->visibility &&
|
||||
query_yn("There is a %s there. Disarm?",
|
||||
g->traps[m->tr_at(examx, examy)]->name.c_str())) {
|
||||
m->disarm_trap(g, examx, examy);
|
||||
}
|
||||
m->disarm_trap(g, examx, examy);
|
||||
}
|
||||
else if (m->tr_at(examx, examy) == tr_funnel && m->is_outside(examx, examy) &&
|
||||
(g->weather == WEATHER_DRIZZLE || g->weather == WEATHER_RAINY ||
|
||||
g->weather == WEATHER_THUNDER || g->weather == WEATHER_LIGHTNING))
|
||||
{
|
||||
water_source(g, p, m, examx, examy);
|
||||
}
|
||||
else if (m->tr_at(examx, examy) == tr_funnel && m->is_outside(examx, examy) &&
|
||||
(g->weather == WEATHER_ACID_DRIZZLE || g->weather == WEATHER_ACID_RAIN))
|
||||
{
|
||||
acid_source(g, p, m, examx, examy);
|
||||
}
|
||||
}
|
||||
|
||||
void iexamine::water_source(game *g, player *p, map *m, const int examx, const int examy)
|
||||
{
|
||||
item water = m->water_from(examx, examy);
|
||||
// Try to handle first (bottling) drink after.
|
||||
// changed boolean, large sources should be infinite
|
||||
if (g->handle_liquid(water, true, true))
|
||||
{
|
||||
p->moves -= 100;
|
||||
}
|
||||
else if (query_yn("Drink from your hands?"))
|
||||
{
|
||||
p->inv.push_back(water);
|
||||
water = p->inv.item_by_type(water.typeId());
|
||||
p->eat(g, water.invlet);
|
||||
p->moves -= 350;
|
||||
}
|
||||
}
|
||||
|
||||
void iexamine::acid_source(game *g, player *p, map *m, const int examx, const int examy)
|
||||
{
|
||||
item acid = m->acid_from(examx, examy);
|
||||
if (g->handle_liquid(acid, true, true))
|
||||
{
|
||||
p->moves -= 100;
|
||||
}
|
||||
}
|
||||
|
||||
+4
-2
@@ -30,9 +30,7 @@ public:
|
||||
void shelter (game *g, player *p, map *m, int examx, int examy);
|
||||
void wreckage (game *g, player *p, map *m, int examx, int examy);
|
||||
void pit (game *g, player *p, map *m, int examx, int examy);
|
||||
void pit_spiked (game *g, player *p, map *m, int examx, int examy);
|
||||
void pit_covered (game *g, player *p, map *m, int examx, int examy);
|
||||
void pit_spiked_covered (game *g, player *p, map *m, int examx, int examy);
|
||||
void fence_post (game *g, player *p, map *m, int examx, int examy);
|
||||
void remove_fence_rope (game *g, player *p, map *m, int examx, int examy);
|
||||
void remove_fence_wire (game *g, player *p, map *m, int examx, int examy);
|
||||
@@ -44,11 +42,15 @@ public:
|
||||
void pedestal_temple (game *g, player *p, map *m, int examx, int examy);
|
||||
void fswitch (game *g, player *p, map *m, int examx, int examy);
|
||||
void flower_poppy (game *g, player *p, map *m, int examx, int examy);
|
||||
void pick_plant(game *g, player *p, map *m, int examx, int examy, std::string itemType, int new_ter);
|
||||
void tree_apple (game *g, player *p, map *m, int examx, int examy);
|
||||
void shrub_blueberry (game *g, player *p, map *m, int examx, int examy);
|
||||
void shrub_strawberry (game *g, player *p, map *m, int examx, int examy);
|
||||
void shrub_wildveggies (game *g, player *p, map *m, int examx, int examy);
|
||||
void recycler (game *g, player *p, map *m, int examx, int examy);
|
||||
void trap(game *g, player *p, map *m, int examx, int examy);
|
||||
void water_source (game *g, player *p, map *m, const int examx, const int examy);
|
||||
void acid_source (game *g, player *p, map *m, const int examx, const int examy);
|
||||
};
|
||||
|
||||
#endif /* defined(__Cataclysmic__iexamine__) */
|
||||
|
||||
+1168
-289
File diff suppressed because it is too large
Load Diff
+73
-25
@@ -4,37 +4,48 @@
|
||||
#include "item.h"
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <list>
|
||||
|
||||
class game;
|
||||
class map;
|
||||
|
||||
const extern std::string inv_chars;
|
||||
|
||||
typedef std::list< std::list<item> > invstack;
|
||||
typedef std::vector< std::list<item>* > invslice;
|
||||
|
||||
class inventory
|
||||
{
|
||||
public:
|
||||
item& operator[] (int i);
|
||||
std::vector<item>& stack_at(int i);
|
||||
std::vector<item> const_stack(int i) const;
|
||||
std::vector<item> as_vector();
|
||||
item& front();
|
||||
item& back();
|
||||
invslice slice(int start, int length);
|
||||
invslice slice(const std::list<item>* stack, int length);
|
||||
// returns an inventory instance containing only the chosen items
|
||||
// chosen is an invlet-count mapping
|
||||
inventory subset(std::map<char, int> chosen) const;
|
||||
std::list<item>& stack_by_letter(char ch);
|
||||
std::list<item> const_stack(int i) const;
|
||||
int size() const;
|
||||
int num_items() const;
|
||||
bool is_sorted() const;
|
||||
|
||||
inventory& operator= (inventory &rhs);
|
||||
inventory& operator= (const inventory &rhs);
|
||||
inventory& operator+= (const inventory &rhs);
|
||||
inventory& operator+= (const item &rhs);
|
||||
inventory& operator+= (const std::vector<item> &rhs);
|
||||
inventory& operator+= (const std::list<item> &rhs);
|
||||
inventory operator+ (const inventory &rhs);
|
||||
inventory operator+ (const item &rhs);
|
||||
inventory operator+ (const std::vector<item> &rhs);
|
||||
inventory operator+ (const std::list<item> &rhs);
|
||||
|
||||
inventory filter_by_category(item_cat cat, const player& u) const;
|
||||
|
||||
void unsort(); // flags the inventory as unsorted
|
||||
void sort();
|
||||
void clear();
|
||||
void add_stack(std::vector<item> newits);
|
||||
void push_back(std::vector<item> newits);
|
||||
void add_item (item newit, bool keep_invlet = false);
|
||||
void add_stack(std::list<item> newits);
|
||||
void push_back(std::list<item> newits);
|
||||
item& add_item (item newit, bool keep_invlet = false); //returns a ref to the added item
|
||||
void add_item_by_type(itype_id type, int count = 1, int charges = -1);
|
||||
void add_item_keep_invlet(item newit);
|
||||
void push_back(item newit);
|
||||
|
||||
@@ -46,25 +57,60 @@ class inventory
|
||||
|
||||
void form_from_map(game *g, point origin, int distance);
|
||||
|
||||
std::vector<item> remove_stack(int index);
|
||||
item remove_item(int index);
|
||||
item remove_item(int stack, int index);
|
||||
std::list<item> remove_stack_by_letter(char ch);
|
||||
std::list<item> remove_partial_stack(char ch, int amount);
|
||||
item remove_item(item *it);
|
||||
item remove_item_by_type(itype_id type);
|
||||
item remove_item_by_letter(char ch);
|
||||
item remove_item_by_quantity(int index, int quantity);
|
||||
item remove_item_by_charges(char ch, int quantity); // charged items, not stacks
|
||||
std::vector<item> remove_mission_items(int mission_id);
|
||||
item& item_by_letter(char ch);
|
||||
int index_by_letter(char ch);
|
||||
item& item_by_type(itype_id type);
|
||||
item& item_or_container(itype_id type); // returns an item, or a container of it
|
||||
|
||||
std::vector<item*> all_items_by_type(itype_id type);
|
||||
std::vector<item*> all_ammo(ammotype type);
|
||||
|
||||
// Below, "amount" refers to quantity
|
||||
// "charges" refers to charges
|
||||
int amount_of (itype_id it);
|
||||
int charges_of(itype_id it);
|
||||
int amount_of (itype_id it) const;
|
||||
int charges_of(itype_id it) const;
|
||||
|
||||
void use_amount (itype_id it, int quantity, bool use_container = false);
|
||||
void use_charges(itype_id it, int quantity);
|
||||
std::list<item> use_amount (itype_id it, int quantity, bool use_container = false);
|
||||
std::list<item> use_charges(itype_id it, int quantity);
|
||||
|
||||
bool has_amount (itype_id it, int quantity);
|
||||
bool has_charges(itype_id it, int quantity);
|
||||
bool has_item(item *it); // Looks for a specific item
|
||||
bool has_amount (itype_id it, int quantity) const;
|
||||
bool has_charges(itype_id it, int quantity) const;
|
||||
bool has_item(item *it) const; // Looks for a specific item
|
||||
bool has_gun_for_ammo(ammotype type) const;
|
||||
bool has_active_item(itype_id) const;
|
||||
|
||||
bool has_mission_item(int mission_id) const;
|
||||
int butcher_factor() const;
|
||||
bool has_artifact_with(art_effect_passive effect) const;
|
||||
bool has_liquid(itype_id type) const;
|
||||
item& watertight_container();
|
||||
|
||||
// NPC/AI functions
|
||||
int worst_item_value(npc* p) const;
|
||||
bool has_enough_painkiller(int pain) const;
|
||||
item& most_appropriate_painkiller(int pain);
|
||||
item& best_for_melee(player *p);
|
||||
item& most_loaded_gun();
|
||||
|
||||
void rust_iron_items();
|
||||
|
||||
int weight() const;
|
||||
int volume() const;
|
||||
int max_active_item_charges(itype_id id) const;
|
||||
|
||||
void dump(std::vector<item*>& dest); // dumps contents into dest (does not delete contents)
|
||||
|
||||
// vector rather than list because it's NOT an item stack
|
||||
std::vector<item*> active_items();
|
||||
|
||||
// hack to account for players saving inventory data (including weapon, etc.)
|
||||
std::string save_str_no_quant() const;
|
||||
|
||||
/* TODO: This stuff, I guess?
|
||||
std::string save();
|
||||
@@ -72,10 +118,12 @@ class inventory
|
||||
*/
|
||||
|
||||
item nullitem;
|
||||
std::vector<item> nullstack;
|
||||
std::list<item> nullstack;
|
||||
private:
|
||||
item remove_item(invstack::iterator iter);
|
||||
void assign_empty_invlet(item &it, player *p = NULL);
|
||||
std::vector< std::vector<item> > items;
|
||||
invstack items;
|
||||
bool sorted;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
+468
-298
File diff suppressed because it is too large
Load Diff
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user