Compare commits
3094 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 99b6fe4203 | |||
| 03b1198db2 | |||
| b28fb2ffc6 | |||
| 76d5122caf | |||
| 39128f3ecd | |||
| bed2a0b855 | |||
| 43b2c20030 | |||
| 7df6391fdc | |||
| 90e5168711 | |||
| 14780bb8d4 | |||
| 076cdc4297 | |||
| 2b6e0069e5 | |||
| a13ff98816 | |||
| 424857fcd7 | |||
| 3654990345 | |||
| bf82319c1e | |||
| 03b088ab9a | |||
| ae8b8669ab | |||
| 0d6c12381c | |||
| 48b4d77573 | |||
| 8b5dad450c | |||
| 9f0bab0c95 | |||
| c2fb4027ae | |||
| 696a7e632f | |||
| 866fc19805 | |||
| c4528c12ac | |||
| 56edfec658 | |||
| 860a75a32c | |||
| 7577f795f7 | |||
| 6c93fdcac8 | |||
| 2b3592d4c4 | |||
| a7d4de6225 | |||
| 8d15fb5dc7 | |||
| b9f6cd752d | |||
| 9196ccd85d | |||
| fac3f16f29 | |||
| 216084291b | |||
| 1f24df6111 | |||
| 9a1758b93f | |||
| ba057204a1 | |||
| cb6ad55a83 | |||
| b3e4a98258 | |||
| 5a4e96663d | |||
| a3d94acb2d | |||
| 2ed836b8fb | |||
| e484c00aa4 | |||
| b5958343dc | |||
| 94deec6397 | |||
| c2df3659b0 | |||
| ea854dbc18 | |||
| ca0acc408b | |||
| e25afd603d | |||
| 6f6e449704 | |||
| dc3644f9ed | |||
| 6916b6b6c0 | |||
| 7bb6eb3d1e | |||
| 1a7142298f | |||
| 7890bc9ad1 | |||
| 8cf29e9d1c | |||
| 84f4628ea8 | |||
| f6db61ce59 | |||
| 48eb247c5f | |||
| 2b146ceaba | |||
| 0aec15a52c | |||
| 81acc9d24c | |||
| 19206e3134 | |||
| d2b89c3d8e | |||
| fd250a0278 | |||
| a09860f5c0 | |||
| 331faf0203 | |||
| 2722a0a168 | |||
| 997d576f66 | |||
| fae89dcf3b | |||
| f1e07ef3be | |||
| d0ddcaca01 | |||
| 430dae77ba | |||
| 4a005b14de | |||
| 314d24ac76 | |||
| 26ec5a115b | |||
| 456e89c6b9 | |||
| d61ad13f68 | |||
| 271e1f6c41 | |||
| ab09263478 | |||
| 109c000ffd | |||
| 60d09b3fe7 | |||
| deae80bcb6 | |||
| 199ae63ad3 | |||
| e65f1fae5f | |||
| 2f83c04695 | |||
| 8905045110 | |||
| 3d06aef232 | |||
| f9d3e77272 | |||
| 604a9d9e2b | |||
| 929f4215e8 | |||
| a60d5c0528 | |||
| fe431bb45d | |||
| eb6955af89 | |||
| b536122952 | |||
| a4bbafa1c1 | |||
| 0645cc687f | |||
| 536d9213b3 | |||
| 15f90d74f3 | |||
| 8a1b815edc | |||
| 706f2e21f2 | |||
| 7c4f666a8b | |||
| 371e3fc408 | |||
| cf33a440f8 | |||
| 1d8f9b1fbb | |||
| c16be829ae | |||
| 488ca7b45d | |||
| 22b62e61ec | |||
| 070f5d94db | |||
| f22533e7a7 | |||
| 8ef1320664 | |||
| db0827779a | |||
| 41c5ec7b8a | |||
| c7da92c6e0 | |||
| 1d9dbd0a09 | |||
| 37b8cf7a37 | |||
| 3de2153c5c | |||
| 69c257ed00 | |||
| 87a8b56abb | |||
| 4c9a38978f | |||
| 68e753e4eb | |||
| d9ec5a6c45 | |||
| ebf27a9604 | |||
| e40ee1c1fc | |||
| 55802dcbba | |||
| 947e9a5afa | |||
| 874fb9ceb4 | |||
| 82be7367ed | |||
| 21acfb0d85 | |||
| 439516caad | |||
| d5cbb8e33f | |||
| a6aeda1d80 | |||
| 2f74fbc761 | |||
| 15fb60c6dd | |||
| 4ab0886d6d | |||
| beb2bc8fa9 | |||
| ad65cd7118 | |||
| 16244f94bf | |||
| cffa00a5c4 | |||
| 3fa3b2233a | |||
| 7389e62e17 | |||
| 9657ae312b | |||
| c9fc66b7c9 | |||
| d447d138ae | |||
| b409dc73dd | |||
| fb829448f0 | |||
| 5f24a37786 | |||
| 9c0f07edb3 | |||
| 27a6c11989 | |||
| 0c90f460d4 | |||
| 3ba38b0b45 | |||
| e49a63a03f | |||
| 62568d370e | |||
| e0377909dd | |||
| fdb19b5994 | |||
| 94378a7fba | |||
| ccd32b3d60 | |||
| c6131803d6 | |||
| b8c3bd5706 | |||
| 437211f1ae | |||
| fb5b258074 | |||
| 6959541c26 | |||
| 8504827d99 | |||
| 4059e2bc00 | |||
| 8b14d7615e | |||
| 8249e38ccd | |||
| f0eb1d5035 | |||
| b98469b201 | |||
| 6cbcd0a512 | |||
| 851d9c0cfa | |||
| 03a0f83f30 | |||
| d42e57da86 | |||
| e2f9108c87 | |||
| 47f0510553 | |||
| f4cc3941f8 | |||
| cb9898ff4f | |||
| 08e918ba7e | |||
| a6f737199b | |||
| d8fa141529 | |||
| 0819dc9cb0 | |||
| c94050459d | |||
| 62433794e7 | |||
| a181f7055c | |||
| d494e74969 | |||
| b4802c8a6e | |||
| 1ac1f0defe | |||
| 559924421b | |||
| 1eb98b66d6 | |||
| 9ba7f12749 | |||
| 64162f25f6 | |||
| 380805f901 | |||
| 678393167d | |||
| d5b03aaef2 | |||
| 753e8160d8 | |||
| 52c67a5cb5 | |||
| 2205337090 | |||
| 30423bd208 | |||
| 72d857ced8 | |||
| bf1ac31e73 | |||
| 64baa3a0a0 | |||
| a9be0ac70e | |||
| 71a3722eae | |||
| 4902859e5a | |||
| fbe2fb6a4c | |||
| 145f1041e5 | |||
| 9b96a72685 | |||
| 009c001e02 | |||
| 9528aa945b | |||
| 9d74a2d6d2 | |||
| 8d354a9f0f | |||
| 105eced167 | |||
| bc0a57b00a | |||
| 16c055b0d6 | |||
| 89cf96fb34 | |||
| 626a967937 | |||
| cf3b99c3b2 | |||
| 519ec13a7f | |||
| 04017b6eaa | |||
| 9bc757c5c1 | |||
| aa45d25063 | |||
| 7e5ba3d6e8 | |||
| a636c27e03 | |||
| d087ac7cfd | |||
| a91914d64c | |||
| d9718ac8fe | |||
| 4579c320ee | |||
| 905ccab1ce | |||
| fdf01880bc | |||
| c76dddc3a9 | |||
| f1aba04c60 | |||
| 76890c0934 | |||
| 65958653ce | |||
| 7191fbe8cd | |||
| 91605ec6ee | |||
| e4c4897e32 | |||
| 6a49afc3d4 | |||
| 183afe1973 | |||
| c544691838 | |||
| 5429c975e9 | |||
| a238f42b72 | |||
| 09f33a607d | |||
| 82d32c0b9b | |||
| 0ab081deea | |||
| bf98c6b0f5 | |||
| 56eba4fff0 | |||
| af041766b0 | |||
| 39532e8427 | |||
| 0866e2d456 | |||
| 4482678fc4 | |||
| 7873e9caf4 | |||
| fe34ebf7a7 | |||
| 072ba43d70 | |||
| 9e1305c2ce | |||
| 005ee2c478 | |||
| 201b438f9e | |||
| 2f8ce2481b | |||
| f6ef764c45 | |||
| 4cb8161c31 | |||
| 77d8288e82 | |||
| a6b5cd0455 | |||
| 868d8c4758 | |||
| 675c0e97b9 | |||
| 9cede61f48 | |||
| 626a9f8777 | |||
| cf112b5418 | |||
| 18bbaa22f1 | |||
| 5523aced98 | |||
| 91e17e5a69 | |||
| 2e2ad75514 | |||
| 275c8135ea | |||
| 72eb8e2ec2 | |||
| d6a3028a3d | |||
| 6a1a185f50 | |||
| c996d67710 | |||
| 74bd2e1dbb | |||
| 95691ceda6 | |||
| 1c4d635f5d | |||
| 29481e1308 | |||
| bb7f650094 | |||
| ca29b41b10 | |||
| a9cce38863 | |||
| d236316bc4 | |||
| a883778b7e | |||
| 725afa72bf | |||
| 632d894310 | |||
| 0f3949c284 | |||
| 3d413d0b92 | |||
| 40ccdeb3c4 | |||
| 6aa6be14d1 | |||
| fd3132376e | |||
| c6c695e5d7 | |||
| 2a037ba1fe | |||
| f2b83c4571 | |||
| 512aa7b702 | |||
| 813bb5f49c | |||
| eb0e92bfbb | |||
| f40c097333 | |||
| 3ba65c3035 | |||
| c8711b4563 | |||
| d036018f92 | |||
| 63947e3e90 | |||
| b8d0e6c22d | |||
| abb3fa3359 | |||
| 6394c60ed8 | |||
| 8fb43b4c3b | |||
| 4516784c4f | |||
| f4a56ed637 | |||
| 370d4f5e98 | |||
| 66e95a85fa | |||
| 34dde331b3 | |||
| 06e45e703d | |||
| a61a07f344 | |||
| 76c258ff4e | |||
| 6ce2d147e4 | |||
| d55902bff3 | |||
| 14741e2004 | |||
| 6c7019286b | |||
| bbe9e08bfb | |||
| 17a88a4193 | |||
| 68d39461ed | |||
| bb868ddf67 | |||
| 719c75f25f | |||
| d7d433e405 | |||
| cc4c15b938 | |||
| 383c4a0de7 | |||
| 2e32ebbf51 | |||
| cae51d3a8b | |||
| 26e2a42942 | |||
| 7d6a43ecb2 | |||
| 9d14480f1d | |||
| 6fbdc969c9 | |||
| b4253f72ad | |||
| 72e50e0270 | |||
| 4402fef615 | |||
| fd9a582a00 | |||
| a2486f557f | |||
| fec5720621 | |||
| 612c92b5b2 | |||
| e67f974d46 | |||
| b5ef587c69 | |||
| 01fd29bf4c | |||
| 701e1a7c70 | |||
| 1e3f8934f6 | |||
| ade3e40006 | |||
| 262c596aad | |||
| a9451bd4ec | |||
| b865862d45 | |||
| 8ae50a140a | |||
| 8e22e8c72c | |||
| bafcf07143 | |||
| f8e6703db0 | |||
| 55c262612b | |||
| a4621643e0 | |||
| 4f4d2fa38a | |||
| eb20b7146c | |||
| f569de691c | |||
| e7f0c04d17 | |||
| a60b5a1a35 | |||
| d957b5dec9 | |||
| 377ab12ff9 | |||
| 8f6b77644f | |||
| f76749055a | |||
| 9e80384202 | |||
| c7a0cba98e | |||
| 21e76f9d63 | |||
| 1a723a5a60 | |||
| c1c2f6aec0 | |||
| 6c3b2d68f2 | |||
| bc5efc46a8 | |||
| b6d311d507 | |||
| 71874c3cc1 | |||
| d0d768735f | |||
| 7121fbd1b9 | |||
| 1c13aa4d64 | |||
| d118ba3fd4 | |||
| 1f63d33d5f | |||
| 801ae04e94 | |||
| 90d5c37612 | |||
| 41cbda18c5 | |||
| b6809e6692 | |||
| 63dbf54a07 | |||
| f62f54cf9f | |||
| 92d912aeb9 | |||
| 3f09689821 | |||
| f569d714bb | |||
| 6e1a154256 | |||
| 7a2f59e4ad | |||
| 29e19246b9 | |||
| 4d0754dc49 | |||
| 52fd4029e2 | |||
| cb60d5c9b5 | |||
| 2ac4457f73 | |||
| 19e30edcbe | |||
| 088b326853 | |||
| af441ad978 | |||
| b0d147cb0e | |||
| 73a39e315a | |||
| e035ca6bc9 | |||
| 8ce0854f4d | |||
| 4af1031bb1 | |||
| 63cddea446 | |||
| f988507d7e | |||
| 0f77631e6b | |||
| f39fee294e | |||
| 19ceda0b79 | |||
| 794a34fe42 | |||
| 0f292837a9 | |||
| 3468f7b535 | |||
| 3cb032ccbd | |||
| f98743e9a5 | |||
| ea4398fed2 | |||
| f24fa1c6d7 | |||
| 50a4a344ed | |||
| e571d6ff1e | |||
| 9f927d1188 | |||
| cd4c4284f8 | |||
| e50f075279 | |||
| 8df9d59c9a | |||
| 3d1c00ec58 | |||
| 485364351f | |||
| 17cf67164f | |||
| 0d849bffed | |||
| c667ea33a6 | |||
| 9a9acd068d | |||
| 8494fcc31e | |||
| 9f94482a57 | |||
| aeb7c093f3 | |||
| ba80f26b24 | |||
| f84949ca67 | |||
| df6ce817df | |||
| 6ce52ef433 | |||
| 700ce9cb2e | |||
| a3382b53c7 | |||
| c72ca42620 | |||
| 77975ac6a9 | |||
| 2a0c4f8dde | |||
| 2c0c77c8e1 | |||
| 549ddc1774 | |||
| 445d4ddadc | |||
| 4f7379533e | |||
| 972aa0c0cb | |||
| e97318e84e | |||
| e03d58d3aa | |||
| 60ba8365d3 | |||
| 38f5819e11 | |||
| 49552904de | |||
| 09fd949d93 | |||
| e331b4be5a | |||
| f9ed3a99d3 | |||
| 625c5b7754 | |||
| fc43ef6767 | |||
| a79eb809dc | |||
| 6d147c59e3 | |||
| 3e7b4bea18 | |||
| c1b5820feb | |||
| 523d6a7db0 | |||
| 4f947db75b | |||
| f1ee4c3b92 | |||
| 2712b20dea | |||
| e7b2d9597a | |||
| 8d9464827a | |||
| 1c8738baf2 | |||
| 53d684bd7c | |||
| f5ca569d36 | |||
| 446624942e | |||
| ee61700a4a | |||
| 86821f7928 | |||
| 1a9f3ca970 | |||
| 560d1bce20 | |||
| 48108ca79f | |||
| 839fb9d697 | |||
| b2fd435ba3 | |||
| 807d87ee43 | |||
| 724af77f53 | |||
| b463e15e24 | |||
| cce08da868 | |||
| 819a96473d | |||
| 62a94cd8bf | |||
| 26de7d8a1e | |||
| f67148aaa1 | |||
| 13de804b52 | |||
| 85c2755658 | |||
| a671796956 | |||
| 2594d68cb6 | |||
| e623911528 | |||
| 788a167090 | |||
| d227b45b27 | |||
| 4a114c0a40 | |||
| da87350f4e | |||
| 70ca63db7a | |||
| 4c4b25950e | |||
| 0b29053e75 | |||
| 46509b3be8 | |||
| a7a8e00b30 | |||
| 429bfbd062 | |||
| af1ad37c3c | |||
| 985dac33f1 | |||
| 9c3e8aadb8 | |||
| a5d3ea11a5 | |||
| 76eeca6f09 | |||
| 31643178ce | |||
| bbd1affe1c | |||
| c26d474fe7 | |||
| cbc1998343 | |||
| c82d8b7716 | |||
| 368ccbf597 | |||
| c6bfc7ae3f | |||
| f1eff1155e | |||
| c7d0e76024 | |||
| 2d5478a435 | |||
| 292bc55fe4 | |||
| 546fe82046 | |||
| 53eccaa7b5 | |||
| bfc5fd4844 | |||
| bb9c58c8fe | |||
| 819d425eca | |||
| d86b07f05c | |||
| 04d0ece2b6 | |||
| 17c68cb06e | |||
| ac3ff00225 | |||
| a066733254 | |||
| 623c2ba035 | |||
| 4b49b93c36 | |||
| 5f085f3606 | |||
| fa0b868c8b | |||
| 9a64c64c8a | |||
| 1c2a595ed3 | |||
| 985d563dfc | |||
| 4f6d05add5 | |||
| 1c6d2338e5 | |||
| b77e324b7f | |||
| 6a332ec82f | |||
| 46a553ba79 | |||
| b4cbe18d80 | |||
| 07dc753c88 | |||
| 5d5d7d4383 | |||
| 7246431081 | |||
| 82b43e82ea | |||
| 10e766b3dd | |||
| c61390b33e | |||
| ee8ee6517e | |||
| d2bbbd41cd | |||
| 3f625c658e | |||
| d803188c76 | |||
| 2b6eb3f195 | |||
| 296adcf2a9 | |||
| 185b2c1cab | |||
| 5af215ec7e | |||
| a36f4e3c7e | |||
| 768f6280a6 | |||
| 91f5033e14 | |||
| 022aa2ba55 | |||
| 5f12cd7255 | |||
| 96400aac38 | |||
| 8c846f021c | |||
| 37d29c47d3 | |||
| e50ad3fce3 | |||
| 79e2f85324 | |||
| c90cb41d87 | |||
| 941f114e38 | |||
| 3a126c3807 | |||
| 628b7b78b1 | |||
| 7a1034a36c | |||
| 8c8aab3694 | |||
| be8feb1b8a | |||
| c9b71f21be | |||
| 31b2343c60 | |||
| f3cd0cc790 | |||
| 4ab8e70926 | |||
| 8a18a09806 | |||
| fc7cc73d09 | |||
| 5436a36696 | |||
| 79b34560b0 | |||
| 2ac2ffcdf7 | |||
| 970f438c86 | |||
| e7835e542d | |||
| 541a8deab6 | |||
| c54f5a0f1c | |||
| 1f8280c5f2 | |||
| 33bb2f316a | |||
| f528be8dab | |||
| 7381458b3e | |||
| 9275296b77 | |||
| 71ca0fb674 | |||
| 6d480bc812 | |||
| c7b380cc48 | |||
| a151a31cc9 | |||
| f7a4dd38b7 | |||
| 089fd55679 | |||
| ca45913b1a | |||
| 3992c955b3 | |||
| df7b8042f0 | |||
| 203fe389ae | |||
| 46d5eaa580 | |||
| 8629274f3b | |||
| a68ca370ef | |||
| 94f76df7cf | |||
| ed674bdf63 | |||
| bdd69068dd | |||
| 8a4999aafa | |||
| 1e7a974d20 | |||
| f77782cf1b | |||
| ab3d280d50 | |||
| afc2a3132c | |||
| e32cac6dce | |||
| 2720c803df | |||
| 20b04cd5f3 | |||
| 57876b4bc4 | |||
| e6ff5b385b | |||
| cf0e1434b2 | |||
| b8ede93f07 | |||
| 1df1157d92 | |||
| 52e0e38442 | |||
| 1ab9e56e81 | |||
| 8309d5e287 | |||
| 36aea13e3b | |||
| 89bf0420b2 | |||
| bd22b791ef | |||
| 5aec4e5297 | |||
| 7d3bec0928 | |||
| a848e581a1 | |||
| eb48133217 | |||
| 6a420cff3e | |||
| f1d9daf79c | |||
| 0fe105e6c4 | |||
| d55da4ee59 | |||
| 1e4e242856 | |||
| a5df66fde9 | |||
| 6c239559b8 | |||
| f54f1a3b7b | |||
| cda98b357a | |||
| f295bd81d2 | |||
| 3be4738dcc | |||
| 5765824425 | |||
| 15922d2438 | |||
| 9318c0ef71 | |||
| fcf9268df2 | |||
| bc964df65a | |||
| e5b5451195 | |||
| 4fd491ab47 | |||
| 031c53828b | |||
| 6a6d466af2 | |||
| bb7d29f03e | |||
| fe1c5e6d8c | |||
| 3dda66217c | |||
| 74224bca23 | |||
| 874d536b6e | |||
| c9f1892459 | |||
| cdb55e25c0 | |||
| 240513d414 | |||
| 01141560b0 | |||
| 2307919344 | |||
| ff5d99310b | |||
| c8c90f8eaf | |||
| f718dd7500 | |||
| e458b78b70 | |||
| 39b278cd9e | |||
| b830eefcc8 | |||
| 6bd45780a6 | |||
| 96b27640c0 | |||
| ec8e49b914 | |||
| 121da8beb2 | |||
| 9f852e59e9 | |||
| e9068af73b | |||
| a5a738b9ac | |||
| 2e76c84251 | |||
| 1690b63037 | |||
| 2e328e66df | |||
| ede5cc3103 | |||
| 03bf2051cc | |||
| f6f1ba2303 | |||
| d74703053d | |||
| 95b45abb0f | |||
| d8c2651e57 | |||
| 8c7aa9fd44 | |||
| 8feb37e6e2 | |||
| 76b776f743 | |||
| 1fd9f66288 | |||
| 49856dfe46 | |||
| 4013bf30c2 | |||
| d0db95dabf | |||
| 9b73658db1 | |||
| 053c79c39c | |||
| 8ead474a80 | |||
| be4812a0e4 | |||
| 35fdd3b692 | |||
| d8d0bc4c9b | |||
| b759ae216d | |||
| 08a2739c87 | |||
| 498421541a | |||
| 1e29cdddc9 | |||
| 26d6bf92aa | |||
| 4bee2c8ac1 | |||
| b69c72dc1f | |||
| c97e9c2bc7 | |||
| 9e892513e7 | |||
| d022d23593 | |||
| 43f95d89d3 | |||
| e8f25f10c1 | |||
| f577c72240 | |||
| 3cebcce5d6 | |||
| 4828c7e8cf | |||
| 5b7dcc955d | |||
| 85933509f5 | |||
| bfc0ccd567 | |||
| f3335fbefb | |||
| 2752b58195 | |||
| 4f400b226c | |||
| 1bb2d8c0a4 | |||
| 27fae5a4aa | |||
| e1e17dd304 | |||
| 22fb79a479 | |||
| 06bf8c58f3 | |||
| f8f5b1e2c5 | |||
| 8c1d39dcd9 | |||
| ab5a076c78 | |||
| 4760b4e38a | |||
| 360f955c33 | |||
| add89b42e2 | |||
| c020dc4588 | |||
| b5bec8ea26 | |||
| 91e4c8ff32 | |||
| 4c1009169e | |||
| 3cf0ca2de0 | |||
| a1d97c6cfb | |||
| 261d02e461 | |||
| 3ad24f211d | |||
| 2ecd7c471a | |||
| 6cd9adf321 | |||
| c2906b4340 | |||
| 7ee74e96e5 | |||
| 01e1e418f3 | |||
| 0ea432c46d | |||
| 122537fe9d | |||
| c80c8a941a | |||
| ccea5b5ec8 | |||
| 4b8430e88c | |||
| a4c01bf56f | |||
| 247ded6e2d | |||
| df81d237c8 | |||
| c4e8af1ec5 | |||
| 7ff6d60ed5 | |||
| 92f5b712b9 | |||
| 56262a8c23 | |||
| 0b7f5b815e | |||
| 524b56f43d | |||
| b16527cd56 | |||
| 6bf19d1f04 | |||
| c9c5d99550 | |||
| 8523d4c16b | |||
| a4a00b0722 | |||
| b981ab095a | |||
| 4959980bcd | |||
| 3a53c0e0cd | |||
| 665363f4cb | |||
| 6c27f91a5b | |||
| 162ef2a9fd | |||
| 72260f0546 | |||
| 940a60f3b9 | |||
| ba58cfd4ae | |||
| 15612a3318 | |||
| 22a5a53b69 | |||
| fd902b360c | |||
| 50e7c6bca8 | |||
| 2292a5469a | |||
| 6c2b98abd4 | |||
| 2e28f65f37 | |||
| 859174da19 | |||
| d2ac80993b | |||
| 606a4d79db | |||
| 9c98ee57ae | |||
| b6f660e9b3 | |||
| db2e2b8a0f | |||
| 2fa06f6231 | |||
| 7593f07fb1 | |||
| d4ed165d7e | |||
| 805779dc4e | |||
| 9697668ee6 | |||
| f76cac82eb | |||
| 3a806fde1e | |||
| bae87a7a8e | |||
| 8134dfd50b | |||
| 3cf64f45f6 | |||
| 365bcce5ea | |||
| cb3b997d5e | |||
| 3507083658 | |||
| a48cd708c9 | |||
| 359247faf5 | |||
| 7654fba97b | |||
| 31f8eb2f9b | |||
| b15c7dcbc8 | |||
| c6456374c3 | |||
| 9864f86b81 | |||
| 548b4696e0 | |||
| 5a74d5066e | |||
| 829ac483d5 | |||
| a75ee101b0 | |||
| ce606ced7f | |||
| 3daa2c8ffd | |||
| 126328dd10 | |||
| 71df854e62 | |||
| 7b4ed64688 | |||
| 0bc41aafaf | |||
| e906fb3c1b | |||
| 9622d88747 | |||
| dc69990289 | |||
| 9169d42bed | |||
| 8a05b119c7 | |||
| 5086b7260d | |||
| 3acb8d3d3b | |||
| 74151126f4 | |||
| 84b622b015 | |||
| 78844f5484 | |||
| 8ac110eb82 | |||
| 4a6b73c4ab | |||
| c6d027fe44 | |||
| b1c025c5ff | |||
| 754c4de4c4 | |||
| 759da2858c | |||
| 3dfda3e9b1 | |||
| aa556c7bb6 | |||
| 392d115cba | |||
| 6b67255485 | |||
| 27863376e6 | |||
| 4a44850c96 | |||
| 4103f9485d | |||
| bd3078d703 | |||
| e25a0ee7a8 | |||
| be3f610177 | |||
| d4f5e86830 | |||
| 4040395a11 | |||
| 1ccbf517f6 | |||
| c14fdfefb5 | |||
| abaa066d82 | |||
| 8c96a87779 | |||
| e81c87c615 | |||
| d7401714c0 | |||
| 0600d8ca83 | |||
| 4bd8a3572c | |||
| f64438599b | |||
| f9137cf266 | |||
| 824a9c4b17 | |||
| c6378217ba | |||
| cda9f19596 | |||
| 8f5fea016a | |||
| 9952bc92d3 | |||
| b6e679d71c | |||
| d1674796af | |||
| c4623198f1 | |||
| fb18824d27 | |||
| cddbf8d13d | |||
| f326109e25 | |||
| 8e0552df91 | |||
| eaee21b170 | |||
| 0c348de029 | |||
| 929531f7ea | |||
| eba939a2a0 | |||
| 36c29e9d13 | |||
| b83355d8fc | |||
| bd0ffccf02 | |||
| 4db9904cb5 | |||
| 1771d14e43 | |||
| 55341c731b | |||
| b938b70720 | |||
| 75d15838a6 | |||
| 304d21f5ba | |||
| 3ee5e22a02 | |||
| add6b4010e | |||
| 0d0c2199c2 | |||
| db00ab9b90 | |||
| e996cee106 | |||
| 7d68ffd7d2 | |||
| fde9a78c88 | |||
| bb76bf1b68 | |||
| 3a7eaa34cb | |||
| 513fc17f4f | |||
| b60a7cd2e6 | |||
| 75aa4a8668 | |||
| 4097e3d821 | |||
| 924b964dd0 | |||
| 12c04216fe | |||
| 0d21d7e6a0 | |||
| f7eb3350ca | |||
| 3a63782d36 | |||
| 091b7b3870 | |||
| 181929b6ba | |||
| 4d9f87987a | |||
| 12a8e84610 | |||
| e3125752bf | |||
| 0d4b36a179 | |||
| e3192284b0 | |||
| 4eaceef123 | |||
| 9d6b267e41 | |||
| 78324ba096 | |||
| cb8b7fc15b | |||
| 5866181baf | |||
| cc1bf8e267 | |||
| 5850495b4b | |||
| 04bd65e41f | |||
| 5c27daa14d | |||
| 28b9484ebf | |||
| f844d814d7 | |||
| 10a7b0b49b | |||
| 7b1a3a3045 | |||
| 6c0858449e | |||
| 8500b3a821 | |||
| c6a3676af2 | |||
| ed1ef75e22 | |||
| 5ffc69101c | |||
| 130b9bb30c | |||
| 9b6ce741a5 | |||
| 403c43de2f | |||
| 854de66bd0 | |||
| e488333b49 | |||
| b8cbef0813 | |||
| 64f4d07cd6 | |||
| 5b2e86c431 | |||
| 4228c586a9 | |||
| 98cca662a8 | |||
| 16183d2da6 | |||
| 0d0fb888c1 | |||
| ce2ccf3378 | |||
| 30b4e4d3d5 | |||
| 9ecb814fca | |||
| 9a78167655 | |||
| ebe9bd8aac | |||
| 37852fb380 | |||
| 661f2b7aa7 | |||
| 5088b3becf | |||
| 9a8f838f02 | |||
| 7fb88c59ea | |||
| a658fee84c | |||
| c8eb8fa529 | |||
| 1f94f68e4e | |||
| 3f41fa7417 | |||
| d7fef7cb86 | |||
| 96c0e10a44 | |||
| 9f4f89dd32 | |||
| 85a4a6d182 | |||
| 1efebefa46 | |||
| 8fb255fc10 | |||
| 49a047c120 | |||
| 29627f73c3 | |||
| 14f7a4fff6 | |||
| 4406487053 | |||
| 46d15d3a49 | |||
| 4a4fd0254d | |||
| 66b9254231 | |||
| d65587a4cf | |||
| 819c7ccf5d | |||
| c78dbd1ad6 | |||
| 31f4cc682c | |||
| 29068df009 | |||
| 7940ff0599 | |||
| 674ed9046f | |||
| 5aee6355ef | |||
| 16232bdd30 | |||
| e216bcba5f | |||
| 5884274483 | |||
| 9ecd604b5f | |||
| cd7ccfa502 | |||
| c31b0dfcbd | |||
| e6fbf2d416 | |||
| ac0bf8d5e3 | |||
| 3ad87ec059 | |||
| e439534e52 | |||
| f868f2c6b8 | |||
| 325a9b33be | |||
| 6414cc1a53 | |||
| f9302b5289 | |||
| 046efa24b3 | |||
| 0dc47d4965 | |||
| ab74f73902 | |||
| 86daf9c9d4 | |||
| c0810aaa29 | |||
| ae9cddbd22 | |||
| bce0fc788f | |||
| c65dfcdf8d | |||
| d7b05df348 | |||
| bd3243999b | |||
| b4b8314f92 | |||
| 264bc81ba9 | |||
| 98ecb2703e | |||
| 2267dc7bc6 | |||
| 477cf896ea | |||
| f05e5a8611 | |||
| c0bf55292c | |||
| d2f0c052ca | |||
| 92d0be7dad | |||
| 226d9d4a15 | |||
| aa77276e0a | |||
| 817d3a664b | |||
| d139df1aee | |||
| 2fcc33f62c | |||
| 3d1e84c8b1 | |||
| 358c78c9b6 | |||
| 553c875add | |||
| 7278ac0ce7 | |||
| 2f2940effe | |||
| 2227f9ef44 | |||
| 7b43498d40 | |||
| 54290e6cad | |||
| c812665243 | |||
| ff5b7bfe9c | |||
| 3f0c10ba0b | |||
| 3178bbdc1e | |||
| 1948816ecf | |||
| 06a1f38176 | |||
| 88545fbbe9 | |||
| c4a8a63479 | |||
| 7c20658581 | |||
| bcf7bfb83b | |||
| 8e73a65ce4 | |||
| 9942a1881b | |||
| 6ffd0b4ecf | |||
| 9ed1b4fc94 | |||
| 71463ee67e | |||
| 62bc38fce7 | |||
| f071bc2ace | |||
| d775e00be1 | |||
| cc0f93c9f1 | |||
| 9d5c162d9c | |||
| baf57bb1de | |||
| 054a86d68e | |||
| df0af8ddf0 | |||
| f86147ea11 | |||
| 8db107bdf7 | |||
| b5e4643c10 | |||
| 700310e27a | |||
| 424af24811 | |||
| 7679506d7a | |||
| 435b7bca00 | |||
| 29f168a0d8 | |||
| db3566a690 | |||
| f970fffba7 | |||
| dbd122a659 | |||
| bf938dda99 | |||
| 062cf5312d | |||
| 4a2951c892 | |||
| dcc811b6f5 | |||
| 8e3223610b | |||
| 5af4140fe5 | |||
| c14cbdb7cf | |||
| ab4831bdce | |||
| 04d744d4f0 | |||
| 8e1879d64d | |||
| 65a20da58e | |||
| 90b263cb48 | |||
| 2a6dd7a17d | |||
| 9f8ae7fae3 | |||
| c5de3e40b0 | |||
| b55bec38e6 | |||
| bb58d5b206 | |||
| 6c957a0a65 | |||
| 1fdcaff027 | |||
| 671ba10e5d | |||
| c6094b602d | |||
| 08b89940b8 | |||
| 2ef0bfdbc7 | |||
| d51504fcbf | |||
| dfc1c1387b | |||
| bb364816b4 | |||
| ddce86b987 | |||
| 61d939c474 | |||
| c8b731e931 | |||
| 81cfae011b | |||
| 022d1d6fc5 | |||
| ebdd33351f | |||
| 61b2fa977b | |||
| 21ba4a712f | |||
| 16ca51b9af | |||
| 5f5719d04f | |||
| 5faac4469e | |||
| 31aabcea1c | |||
| 8045625c3b | |||
| a9b5b7ef96 | |||
| c3721877de | |||
| 7e2f1f8e38 | |||
| 8b1a280d1e | |||
| 69ffeb0c28 | |||
| 6fc8de7c4c | |||
| bb056183f5 | |||
| bbbdab5683 | |||
| bc57c04264 | |||
| ad697e3fca | |||
| 6552a86ef9 | |||
| 5aeae61d66 | |||
| ad66293597 | |||
| 230db952c5 | |||
| e6678400da | |||
| 881bf5880a | |||
| 861577e128 | |||
| 26e80c31e9 | |||
| 52c08e33fa | |||
| ea9c5ee139 | |||
| fe600b2091 | |||
| 0c0610b1ac | |||
| a907643cb0 | |||
| 495295d522 | |||
| 5497699c41 | |||
| 18c5cce831 | |||
| c9ae998bba | |||
| 960908d3c0 | |||
| b7d841faa9 | |||
| 7e95eb03e2 | |||
| 390eb5e4ed | |||
| 85048a3847 | |||
| aca5db7d90 | |||
| 778b730641 | |||
| 705c01945a | |||
| 7e11708601 | |||
| d3632c60c8 | |||
| cb38b096a1 | |||
| 9e97b477f7 | |||
| d6287e3e4f | |||
| a3578ff793 | |||
| 689294e11a | |||
| e6c40dd990 | |||
| 3b1d4ed9e4 | |||
| 3e657192a4 | |||
| a341db225a | |||
| ec21194623 | |||
| 39d7985ab2 | |||
| 761d834dc8 | |||
| 8d3b297f80 | |||
| ab349464c4 | |||
| cef1b9d8b1 | |||
| c3eeee0612 | |||
| 44889f4ac9 | |||
| fa761a9b89 | |||
| 0032062de4 | |||
| 60b5f49de5 | |||
| 36acf62632 | |||
| d4dec0ecff | |||
| 48c6b1bea4 | |||
| 51ce36114f | |||
| c9e5c9f263 | |||
| 860ca9ff71 | |||
| 86a3be3250 | |||
| ce0a810e8a | |||
| 56be93e03e | |||
| a1cb77359b | |||
| 012f6b0b2a | |||
| cbae69c0d1 | |||
| 8ef5cbb267 | |||
| a2c0693f90 | |||
| 807a814fee | |||
| 608c99383c | |||
| 6fc622e938 | |||
| fa65cb3e2d | |||
| 27bcdebdb2 | |||
| e439da5f18 | |||
| 1b1090de2f | |||
| d246775894 | |||
| e70e07df02 | |||
| bf6b17a004 | |||
| 9f6c83c325 | |||
| d534974065 | |||
| dc6e18e370 | |||
| 8a129a487b | |||
| dbcc7298b7 | |||
| 10927249b4 | |||
| d49bc0a8c7 | |||
| e0dbdc8579 | |||
| 42e44548dd | |||
| fd9945738a | |||
| f76c295a34 | |||
| 2751b2d2c7 | |||
| 81d7442508 | |||
| 7d162bd41e | |||
| 7f8edaebf9 | |||
| 6e38df2876 | |||
| a413fdfa1f | |||
| 98d10fd042 | |||
| 8c365bacda | |||
| f588212f67 | |||
| 83cf39bbf9 | |||
| c836c517ed | |||
| 3dba7cf6a6 | |||
| dbe9c23c3a | |||
| b66089e79a | |||
| 2f8513b091 | |||
| 194417fd9f | |||
| bef011c2e3 | |||
| e4b061bcfb | |||
| 67c7376cd4 | |||
| 4b749d9154 | |||
| 0d624a1cbf | |||
| 08d08c2ead | |||
| 2700448889 | |||
| 8eef57869e | |||
| 7f4207b21e | |||
| 674bf0eab3 | |||
| 2a476d1286 | |||
| 522dcd61d1 | |||
| 3539630c22 | |||
| 043dc54a0f | |||
| a362d89e45 | |||
| 33544e682b | |||
| de708772f2 | |||
| 69e180e4bd | |||
| b59a08d27e | |||
| e3cf60a4bb | |||
| 75f7a7fd1d | |||
| c763a9a5a7 | |||
| 30f9f361f0 | |||
| 2a746151fa | |||
| 15d478e096 | |||
| 6cbb065803 | |||
| 4f830d5198 | |||
| ff7073fe5d | |||
| 99de867378 | |||
| d9497b988d | |||
| 4c78759450 | |||
| 822622149a | |||
| 5679eaaded | |||
| 5cc688db87 | |||
| dc8e6289d9 | |||
| 0d926b00e4 | |||
| 87e4c7d485 | |||
| 28703854ef | |||
| 32df5e1e59 | |||
| 6fb6603c65 | |||
| 2a5a610958 | |||
| 26e470ed27 | |||
| bc1d44003f | |||
| 0a2b15eb10 | |||
| b161df7738 | |||
| ffcc01dbac | |||
| e6017fc0ab | |||
| 350bd9e41a | |||
| be189ed85a | |||
| 46356bebac | |||
| 3c4a161829 | |||
| d515895db6 | |||
| c634d9adc1 | |||
| b3b03bc7bd | |||
| b3bf851e79 | |||
| f3dac9d436 | |||
| 14e51e1e80 | |||
| 21679690e0 | |||
| 9357c8baf9 | |||
| 98ae67e633 | |||
| cce971a72b | |||
| dfa2c503b7 | |||
| 38e76e09c1 | |||
| 7ad65bdb54 | |||
| 8b720f0d8e | |||
| 1582fb2b28 | |||
| 6bc8540533 | |||
| b1d04619e7 | |||
| 92367c6efc | |||
| 3bd548bb5c | |||
| 8350cb7bf9 | |||
| d6fa6b09ca | |||
| 0d92f39712 | |||
| 950496a001 | |||
| 4f908f3f5a | |||
| 9382f314f6 | |||
| 9c2eaeb175 | |||
| 7b811f0a9c | |||
| c4839eca49 | |||
| 6b015c6231 | |||
| 9e6616b0ba | |||
| 0132bca329 | |||
| ffc92aed8f | |||
| 7d345c8b6c | |||
| 4657618b1f | |||
| 96c2277c93 | |||
| e3b0a894f3 | |||
| 8b271f5e07 | |||
| 7202f2d1e2 | |||
| ebdf07d684 | |||
| d39bb8074c | |||
| d1b9866567 | |||
| 340fc527e6 | |||
| d01afc0cbf | |||
| f9843c971e | |||
| f9073b9a06 | |||
| 54e4c8bf92 | |||
| 06cc8eb32a | |||
| d2175d738c | |||
| 411b1651a2 | |||
| 14d63ab95b | |||
| 310e1bb7c8 | |||
| 3b854e136d | |||
| 20b1e484e4 | |||
| 53d39abdf4 | |||
| 36c9b33bf4 | |||
| 9d0d3157e6 | |||
| bc852482b6 | |||
| e3e91bed6b | |||
| 35772b94a1 | |||
| fe4899880d | |||
| 9472c1f012 | |||
| c10a3afa59 | |||
| c58c006982 | |||
| 3439fc996c | |||
| 9c5cba7ef6 | |||
| 8c9d1f1c4e | |||
| 326205b0e0 | |||
| ba4240e6b5 | |||
| 9634a00a6b | |||
| c7b231d4da | |||
| 3658f59d99 | |||
| fcd0aca3d9 | |||
| b81571808f | |||
| cd74801048 | |||
| 85beb37d41 | |||
| 6b49aad659 | |||
| 797b5ae351 | |||
| 51f7da1f59 | |||
| ad9f135686 | |||
| 4e2314d921 | |||
| c3d98e47a0 | |||
| 57728c1003 | |||
| 10a587815e | |||
| b84defd2b3 | |||
| 406653b2bc | |||
| 5f6a370187 | |||
| b81c999286 | |||
| 0bbcb86c2f | |||
| 82b760edad | |||
| 23d9245d6d | |||
| da20884fe2 | |||
| c9bf186958 | |||
| 7475f65b56 | |||
| ad8ed8ac1b | |||
| e61d505763 | |||
| b6f1a09615 | |||
| 04b04cd085 | |||
| 1b68955a36 | |||
| 1637140bcc | |||
| b6aa8ca5a9 | |||
| bf20877218 | |||
| 2433b64b3f | |||
| 526d1c5760 | |||
| 7c72c62a3b | |||
| e6ad28b49a | |||
| c68a4efdde | |||
| 038dfe8428 | |||
| 2cd9039d75 | |||
| abc02325b6 | |||
| 42675c0d6d | |||
| 72f1251389 | |||
| 20221434be | |||
| 194599d2b0 | |||
| 05bca61409 | |||
| 70561ecd51 | |||
| f770545b5b | |||
| 599f968dd2 | |||
| c3fcf3c3ff | |||
| 6c01f95101 | |||
| c27395c0fd | |||
| 5266e69f8f | |||
| ecc2c267bd | |||
| a5210d1e3e | |||
| a03aa36ec0 | |||
| 916786c7d5 | |||
| 956fbfbd64 | |||
| 2673c4aa72 | |||
| dd0f7d89e5 | |||
| c73785c96e | |||
| 80dca7b6ba | |||
| 9266f762c0 | |||
| afd7aefbd0 | |||
| d4ba6c94ac | |||
| 235cf594e9 | |||
| 1b35ea3588 | |||
| c6bf0d4988 | |||
| 1c8613a180 | |||
| edab1df3c5 | |||
| 57ca073e26 | |||
| 6ea6cc7073 | |||
| ce90f7dac6 | |||
| d7544927d8 | |||
| d23207fcaf | |||
| 24bc453cbb | |||
| 2e850bd086 | |||
| ad67881608 | |||
| 61114018dd | |||
| 5b1d25f052 | |||
| 5b395f751f | |||
| 2103b6a548 | |||
| af56f525e8 | |||
| f7a4d5cf3d | |||
| faff2935af | |||
| b0c829d7f0 | |||
| eea0f0c154 | |||
| a336a654b8 | |||
| 8b585970d8 | |||
| 03587c06a8 | |||
| f5277d704b | |||
| fe65058768 | |||
| bc05f51001 | |||
| 82a5339754 | |||
| 7927ee0cf6 | |||
| 14beca719a | |||
| a965ff8e6e | |||
| 5233731645 | |||
| afe97b1532 | |||
| a9deddcf97 | |||
| 61fdd5b30a | |||
| 75a3838d4c | |||
| 99bfd11e07 | |||
| 8e6dded350 | |||
| 9cc0139ed8 | |||
| 199a1cb862 | |||
| b73218e487 | |||
| e79e657041 | |||
| 911e40563a | |||
| d155102aa4 | |||
| 7eca6c37ef | |||
| 9d675dcfe3 | |||
| ae0d017dc8 | |||
| a3ec0e318a | |||
| 4dec9a6382 | |||
| 948ff65e6d | |||
| d00709f9b4 | |||
| 5fd5e9738f | |||
| cfbcd914e7 | |||
| db1b69a27d | |||
| 7831f716e6 | |||
| 16753fdfa6 | |||
| 234a80234e | |||
| 5c39636fe1 | |||
| 37bee730e9 | |||
| a6caebd93b | |||
| a5687b7bac | |||
| d109bc08b0 | |||
| 76ba335bdf | |||
| d0a1e5d264 | |||
| cef5caa462 | |||
| e67f032dcf | |||
| cdd5cc4e27 | |||
| 77430ee50b | |||
| b3823c018f | |||
| c17bc2080a | |||
| 370d6ebdf4 | |||
| 029ca63d2a | |||
| 1887222669 | |||
| 78f1b6b550 | |||
| cf1ea17f44 | |||
| 395dd43317 | |||
| aee09de5ce | |||
| c5b794133f | |||
| 4a4045baa2 | |||
| 7c5001059c | |||
| 3f67fafd12 | |||
| 8849522880 | |||
| f65bbb9481 | |||
| 8091d682a0 | |||
| 63cf5e44bc | |||
| 15f9270e27 | |||
| f86fe886ca | |||
| c0d855b9c2 | |||
| 19b81fe746 | |||
| 0b7801fb7e | |||
| e26cb52cf8 | |||
| 59106835d4 | |||
| b53e0919f3 | |||
| 53615441cc | |||
| ceb1d8ce44 | |||
| ada84e52be | |||
| a180bcd1b0 | |||
| 4b19a53ea0 | |||
| e566e3516a | |||
| 675f44961e | |||
| 8cab7876cf | |||
| ab48ff6fdb | |||
| 555bb0b925 | |||
| 92241b121e | |||
| c6a6c28236 | |||
| b5163e91f0 | |||
| a86916a805 | |||
| dc4822dbc3 | |||
| a0908b9706 | |||
| 92abc54f5e | |||
| 40398ec4e7 | |||
| 993ba9b86a | |||
| 2b4c6ef171 | |||
| 1d5a0f2320 | |||
| 3cfa95babf | |||
| 111e7bf93a | |||
| 14c4ae50f9 | |||
| 1a88375516 | |||
| c2b68856cb | |||
| f7c62fe796 | |||
| 331ba53e59 | |||
| 6384ba8104 | |||
| 58634ea20c | |||
| 5119f82fa5 | |||
| c507e75b6f | |||
| 87dcf7bc04 | |||
| 02e114c83e | |||
| ff8a688f98 | |||
| 2d15985f49 | |||
| 0fb8e79782 | |||
| f2ae163536 | |||
| e547b18d99 | |||
| c1be5f6467 | |||
| 769b279198 | |||
| fe80a75f9d | |||
| 14a39cc4bc | |||
| 132e8abebc | |||
| a52bcf7303 | |||
| 0bf700d721 | |||
| 761774700f | |||
| 2989315101 | |||
| 77216eb850 | |||
| 7049524313 | |||
| 0f7774795c | |||
| 81ee8c3c3b | |||
| 6874c4e63f | |||
| 1277d2bc5f | |||
| 4d010a29f9 | |||
| 7e779a4c4a | |||
| a4a9b15c2e | |||
| 0d7226514b | |||
| 929d552803 | |||
| bfea22ab7e | |||
| 49c27a4e28 | |||
| 8299bb8471 | |||
| 954c9c8ce0 | |||
| 1fe22ae17c | |||
| 82a3c5bb0a | |||
| 01b1da8e46 | |||
| 2638c784d6 | |||
| ee97642ef8 | |||
| fb6c6024b1 | |||
| bcd49f807f | |||
| c3a5b5b8bb | |||
| 7bd8a8846a | |||
| 5e6a852eff | |||
| 8f44e4523e | |||
| 9fd8833ab3 | |||
| ccdeea930f | |||
| 83ca725597 | |||
| 8d65ea0f42 | |||
| 7ef7fc6782 | |||
| c1d1366028 | |||
| c4bbc7a9d8 | |||
| c29ead819d | |||
| df3bd97888 | |||
| 0a78e36c75 | |||
| 103d2703ba | |||
| 607d0a3fd4 | |||
| 301635ebd7 | |||
| 1ee47126ef | |||
| 5b6033d0b4 | |||
| 04b18bdb01 | |||
| 195c9d89c6 | |||
| 004b0ae992 | |||
| 7379e91425 | |||
| 6fb9379638 | |||
| 07e028da50 | |||
| 4bce258dd2 | |||
| c55d0c1789 | |||
| c43e6df8e3 | |||
| 8d238b8aff | |||
| b01a1cb69f | |||
| 032e910666 | |||
| bbfe776a1a | |||
| ccc004d047 | |||
| e094105acf | |||
| 851bf5aeab | |||
| 07cf449ca3 | |||
| eb25dad796 | |||
| 49f5ab8f40 | |||
| b7ce889c7b | |||
| 0fbbb43010 | |||
| 5a8a5f199e | |||
| fb1f62da87 | |||
| 1d3c2c7d13 | |||
| e1889ef83f | |||
| 22f2657cdc | |||
| 989a9fcfa5 | |||
| ef0604b645 | |||
| 0fda0a1cdc | |||
| c7c0fcb847 | |||
| a4bcd31ce0 | |||
| 9942802625 | |||
| ff9c5bd82b | |||
| 91301ab6b6 | |||
| 50985edc5a | |||
| 268e5d5de8 | |||
| a7a331f718 | |||
| e2c196572e | |||
| fdfc3ade16 | |||
| 825bd6001e | |||
| 6c1ddab491 | |||
| 2f1ee62585 | |||
| 01dc82f678 | |||
| 492510db98 | |||
| 971c6540e8 | |||
| 27160054bc | |||
| aa7325ecca | |||
| de25b8b250 | |||
| 4727789e09 | |||
| 30ced92b12 | |||
| 358387befb | |||
| 24983bab4e | |||
| 92243e22fe | |||
| 6edfbaecfe | |||
| b78c12d56c | |||
| aca475270d | |||
| 79f2c4ad94 | |||
| 1d863b206b | |||
| 04123e385d | |||
| 1d01a4665a | |||
| dcdceeeb5c | |||
| a84c936197 | |||
| 30bc966b4e | |||
| 467c179b03 | |||
| 0c50593a39 | |||
| 5a79f78d36 | |||
| 3496114855 | |||
| 954ece7662 | |||
| 1cce186129 | |||
| 29dbefe291 | |||
| 575534b435 | |||
| ba84565c29 | |||
| 82e5ae27dc | |||
| 061868c1e3 | |||
| 08c86110e4 | |||
| 8a34f7f70c | |||
| f0a21d100f | |||
| d11ab299c2 | |||
| 0ae9216f2e | |||
| d3b4a9c7e4 | |||
| 4ab7df28b8 | |||
| 130905be12 | |||
| 7e84f706c9 | |||
| 8ebe261feb | |||
| 2bddc3bea6 | |||
| d847e7172a | |||
| bf297dd5ed | |||
| 43f199216a | |||
| 98a90fc69b | |||
| 1bff9bc848 | |||
| 2492231949 | |||
| c7373231f3 | |||
| 4b12d2b6b1 | |||
| bd791c5b01 | |||
| 977d3de882 | |||
| 9e5fd0c128 | |||
| d5729cecf0 | |||
| 7c9d86a764 | |||
| e6684a78da | |||
| 0a6c64dd34 | |||
| 33380f96ac | |||
| 1679d4b943 | |||
| e2919e115f | |||
| e6449e58c0 | |||
| 4628c00125 | |||
| 256bc9e337 | |||
| 86cd5ca442 | |||
| a62ecbe4cb | |||
| be596061a3 | |||
| 6cc1a1f184 | |||
| be08f8da14 | |||
| b86facc822 | |||
| b3ace27b3e | |||
| 7fa3504a50 | |||
| 9c78fb76d0 | |||
| bf64647f65 | |||
| 74958d054d | |||
| 8332f46c1f | |||
| 2ccb2dec91 | |||
| bc9c0098ff | |||
| 32a0798f2e | |||
| 93638cf9e5 | |||
| f5fd6ff6d5 | |||
| 96a6513179 | |||
| 108899fa65 | |||
| 241fd3da6e | |||
| 4ca61b1442 | |||
| 17292d2dc2 | |||
| 2fd370d25e | |||
| c876cfc62c | |||
| 5cea3d76df | |||
| f7b797bbbd | |||
| d75d4236c2 | |||
| 67bbc5ad4c | |||
| 607c8f13ee | |||
| 6ecf812533 | |||
| 4b8a447843 | |||
| 432c9a43ea | |||
| 21a5b80eb1 | |||
| c5a47feca8 | |||
| 7b58db24a3 | |||
| cd639c8a86 | |||
| f6a36db235 | |||
| 57dab3ef9c | |||
| 40c9e56ba7 | |||
| 44506152f3 | |||
| 2fad551237 | |||
| 91a730720e | |||
| ff70f12362 | |||
| 24196cac9b | |||
| 5ce5ec36bc | |||
| cbd4418e4e | |||
| 008bcebaf0 | |||
| f48dbd5d7a | |||
| dce151ab9b | |||
| 69623f2a36 | |||
| 2a22fa3233 | |||
| dc7d5236d0 | |||
| 75c8c64218 | |||
| dd8d60a067 | |||
| 9a19dcd2a8 | |||
| c0c81848d0 | |||
| 0bf3fb491f | |||
| e48d813ddb | |||
| f33ee7ac51 | |||
| 4009d6502d | |||
| fb3dd65a65 | |||
| 4507889020 | |||
| c36648e9bb | |||
| 1225a8c3fd | |||
| 4a3fe0cbdc | |||
| 59d6e5f744 | |||
| fd0f1c33ae | |||
| 1ba83ccbb4 | |||
| 691537345e | |||
| 798bbfb128 | |||
| 9a13f76ec3 | |||
| f2b9282169 | |||
| 5eb07c3fce | |||
| cf17a33d1c | |||
| 7c2faed928 | |||
| 83220975bc | |||
| 4cfd8b2f5c | |||
| a548f79a7f | |||
| c2e2bf777c | |||
| d5e1645748 | |||
| 49df62d090 | |||
| 9bc4e41e66 | |||
| 0fa51e28ef | |||
| 60cc53a1e7 | |||
| ff518fe4f6 | |||
| 4b79a11978 | |||
| e67cd62ba2 | |||
| 8bf3950aae | |||
| bb5f035c33 | |||
| fa9d442fa1 | |||
| 0f10723933 | |||
| 6e9ab8b107 | |||
| 34a8156bfd | |||
| dfd5cbf613 | |||
| 6d93de7b02 | |||
| 7c8d5009ac | |||
| 210273f3ca | |||
| 2bc5d630b5 | |||
| d9414565ff | |||
| 5590d9beb9 | |||
| e62ca51fd6 | |||
| 4d31482045 | |||
| f116c1bad6 | |||
| 93031408ff | |||
| 76e3ca7292 | |||
| 220fec1701 | |||
| ab998b1734 | |||
| 1b3359beaa | |||
| ff8cc63ff2 | |||
| dcc8ff1dd9 | |||
| 41615618b5 | |||
| d4b31ab5fa | |||
| ab314ac75f | |||
| b052ca9871 | |||
| 9396c17c02 | |||
| 734cfc40f9 | |||
| 401dd4c319 | |||
| 6a2801663e | |||
| f830f19fe0 | |||
| 766a707722 | |||
| 03f59c5c4b | |||
| 336820e22e | |||
| eeede6a039 | |||
| 945fe528ff | |||
| e560247e50 | |||
| b2547996be | |||
| 89795286f7 | |||
| 65b543e0ae | |||
| 9015dae70c | |||
| 7f7b54571b | |||
| ce89fe960d | |||
| 66261402ff | |||
| 7f46a542fe | |||
| 40e85b0353 | |||
| c00cd7b9bb | |||
| 544ea39c96 | |||
| 8745ac51ff | |||
| 8656f8f76d | |||
| a9e420dc61 | |||
| f0271b1cec | |||
| 7b71c4882a | |||
| 824b10ea1d | |||
| 4e7d34e05e | |||
| 38d2a07c65 | |||
| b2a08ee4e1 | |||
| f772977184 | |||
| d0c4519b0d | |||
| 9cac01cd22 | |||
| 7458ef8655 | |||
| 8580f7f78f | |||
| 8d62745018 | |||
| 2d200f5af7 | |||
| 9d578a1d2f | |||
| 5ad0087a34 | |||
| 3ae6a1a8de | |||
| 0667b20125 | |||
| ff57ac89f5 | |||
| e09af5d70c | |||
| 5a689e44c8 | |||
| 682174ce74 | |||
| d2a3acd821 | |||
| 7dc8b368b3 | |||
| e91193ee04 | |||
| c2adc4aff1 | |||
| cf320539d4 | |||
| e6275ef32e | |||
| 9f03f153da | |||
| 6adb4647f8 | |||
| 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 | |||
| c48b1bfd94 | |||
| 084dc2c78e | |||
| f1f31a083b | |||
| 23a1d95d18 | |||
| fb09d161e0 | |||
| 0b4f01b5ee | |||
| 4edd31d66c | |||
| be968a9dff | |||
| d7577cbae6 | |||
| 1ea95529a8 | |||
| 44507e7a24 | |||
| f399387738 | |||
| 39a2073959 | |||
| ff7d545aa3 | |||
| ac460114c5 | |||
| e623d9285e | |||
| 0ddd311674 | |||
| 020534ef18 | |||
| 2a70cc6231 | |||
| 27615c07b0 | |||
| 6bb5133271 | |||
| 755587c7ba | |||
| 6454dd6936 | |||
| dd992ef821 | |||
| 9ffd98c43b | |||
| b1289f2f0c | |||
| a5d360858d | |||
| 6c2a0abc71 | |||
| 8d56d5fb94 | |||
| be8e2a50dc | |||
| dd5a9aad31 | |||
| 7db1372eb7 | |||
| 765a3b60b4 | |||
| 5cb0826632 | |||
| 7a265293f9 | |||
| 4a250215be | |||
| 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 | |||
| 2684d3ad99 | |||
| 7c480131a3 | |||
| 5d64700e69 | |||
| 9064cd3d48 | |||
| f4b78f255b | |||
| 52e99a44ce | |||
| ea6b51f757 | |||
| 29072a1418 | |||
| 8f5ac59e04 | |||
| b0dac2209e | |||
| 8922640a45 | |||
| ea27ba067f | |||
| 510cdd5ec1 | |||
| 8ce5a3a28a | |||
| 9c7cc37aa5 | |||
| 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 | |||
| 3de8d970af | |||
| 4e65569bb0 | |||
| be94cf3714 | |||
| 87c33c7616 | |||
| a449ab6310 | |||
| 492054b243 | |||
| 040ff92099 | |||
| 6557b4e7f5 | |||
| 445b576a58 | |||
| 1ab05985ed | |||
| c170f7bc6a | |||
| 56c820fb49 | |||
| 66999b48f5 | |||
| c892792209 | |||
| 2d70b5c477 | |||
| f7af08ba42 | |||
| 6da3697f9f | |||
| 0e93b1b696 | |||
| dd444125ab | |||
| 5d5a1d0960 | |||
| e066f83cda |
+27
-2
@@ -1,14 +1,39 @@
|
||||
cataclysm
|
||||
cataclysm-tiles
|
||||
data/*.template
|
||||
save/
|
||||
graveyard/
|
||||
memorial/
|
||||
obj/
|
||||
debug.log
|
||||
logg.txt
|
||||
bindist/
|
||||
cataclysmdda-*
|
||||
objwin/
|
||||
cataclysm.exe
|
||||
version.h
|
||||
Cataclysm.exe
|
||||
CataclysmWin.cscope_file_list
|
||||
CataclysmWin.depend
|
||||
CataclysmWin.layout
|
||||
*.exe
|
||||
*.dll
|
||||
|
||||
# Visual Studio files
|
||||
*.suo
|
||||
*.sdf
|
||||
*.pdb
|
||||
*.ilk
|
||||
Release*/
|
||||
Debug*/
|
||||
*.opensdf
|
||||
|
||||
# Temporary and backup files
|
||||
*~
|
||||
\#*
|
||||
*.bak
|
||||
*.cbTemp
|
||||
*.swp
|
||||
gmon.out
|
||||
|
||||
# System Files
|
||||
Thumbs.db
|
||||
.DS_Store
|
||||
|
||||
@@ -0,0 +1,89 @@
|
||||
# WARNING: Only linux is currently supported by this cmake build file.
|
||||
|
||||
# This file is used to build cataclysm with CMake.
|
||||
#
|
||||
# To use it, install cmake, then:
|
||||
#
|
||||
# cd cataclysm
|
||||
# mkdir build
|
||||
# cd build
|
||||
# cmake -G "Unix Makefiles" -DLOCALIZE=ON -DSDL=OFF ..
|
||||
# make
|
||||
#
|
||||
# This will build and install cataclysm into the build directory.
|
||||
#
|
||||
# "Unix Makefiles" is a generator, you can get a list of supported generators
|
||||
# on your system by running "cmake" without any arguments.
|
||||
#
|
||||
# -DOPTION_NAME=ON/OFF enables/disables OPTION_NAME
|
||||
|
||||
CMAKE_MINIMUM_REQUIRED(VERSION 2.8.8)
|
||||
|
||||
PROJECT(CataclysmDDA)
|
||||
|
||||
OPTION(LOCALIZE "Toggle gettext localization/translation." ON)
|
||||
OPTION(SDL "Use SDL curses emulation instead of terminal support." OFF)
|
||||
OPTION(TILES "Enable tileset support." OFF)
|
||||
|
||||
# Note: The CMake documentation says it's better to list the actual source
|
||||
# files here, as otherwise cmake won't know to rerun when a new file
|
||||
# is added. However, currently the Makefile also just scans for source
|
||||
# files, so this approach should be "good enough".
|
||||
FILE(GLOB CataclysmDDA_SRCS *.cpp)
|
||||
FILE(GLOB CataclysmDDA_HDRS *.h)
|
||||
|
||||
ADD_EXECUTABLE(cataclysm ${CataclysmDDA_SRCS} ${CataclysmDDA_HDRS})
|
||||
|
||||
# Custom command that will be executed whenever the "cataclysm" target is built.
|
||||
# Copy all the relevant game data into the build directory.
|
||||
ADD_CUSTOM_COMMAND(
|
||||
TARGET cataclysm PRE_BUILD
|
||||
COMMAND ${CMAKE_COMMAND} -E copy_directory ${CMAKE_SOURCE_DIR}/data $<TARGET_FILE_DIR:cataclysm>/data
|
||||
COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_SOURCE_DIR}/LICENSE $<TARGET_FILE_DIR:cataclysm> # Don't forget the license :)
|
||||
)
|
||||
|
||||
IF(MINGW)
|
||||
add_definitions("-D_WINDOWS -D_MINGW -D_WIN32 -DWIN32 -D__MINGW__")
|
||||
ENDIF()
|
||||
|
||||
IF(LOCALIZE)
|
||||
add_definitions(-DLOCALIZE)
|
||||
#TARGET_LINK_LIBRARIES(cataclysm
|
||||
# intl
|
||||
#)
|
||||
ENDIF()
|
||||
|
||||
# TODO: windows rc stuff
|
||||
|
||||
IF(SDL OR TILES)
|
||||
# CMake ships with a few helpful include's to find common libraries
|
||||
# like SDL
|
||||
Include(FindSDL)
|
||||
Include(FindSDL_ttf)
|
||||
|
||||
Find_Package(SDL REQUIRED)
|
||||
Find_Package(SDL_ttf REQUIRED)
|
||||
|
||||
TARGET_LINK_LIBRARIES(cataclysm ${SDL_LIBRARY} ${SDLTTF_LIBRARY})
|
||||
|
||||
IF(TILES)
|
||||
# Install GFX directory
|
||||
ADD_CUSTOM_COMMAND(
|
||||
TARGET cataclysm PRE_BUILD
|
||||
COMMAND ${CMAKE_COMMAND} -E copy_directory ${CMAKE_SOURCE_DIR}/gfx $<TARGET_FILE_DIR:cataclysm>/gfx
|
||||
)
|
||||
|
||||
Include(FindSDL_image)
|
||||
TARGET_LINK_LIBRARIES(cataclysm ${SDLIMAGE_LIBRARY})
|
||||
ADD_DEFINITIONS(-DSDLTILES)
|
||||
ELSE()
|
||||
ADD_DEFINITIONS(-DTILES)
|
||||
ENDIF()
|
||||
|
||||
ELSEIF(MSVC OR MINGW)
|
||||
# On windows our default isn't curses, but rather GDI
|
||||
TARGET_LINK_LIBRARIES(cataclysm gdi32 intl iconv winmm)
|
||||
add_definitions(-Wl,-stack,12000000,-subsystem,windows)
|
||||
ELSE()
|
||||
TARGET_LINK_LIBRARIES(cataclysm curses)
|
||||
ENDIF()
|
||||
@@ -1,8 +0,0 @@
|
||||
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 glib
|
||||
```
|
||||
|
||||
### 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,83 @@
|
||||
# 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.
|
||||
|
||||
### SDL
|
||||
|
||||
SDL, SDL\_image, and SDL\_ttf are needed for the tiles build.
|
||||
|
||||
[**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_image/)
|
||||
http://www.libsdl.org/projects/SDL_image/release/SDL_image-1.2.12.dmg
|
||||
|
||||
[**SDL\_ttf 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`, `SDL_image.framework`, and `SDL_ttf.framework`
|
||||
to `/Library/Frameworks` or `/Users/name/Library/Frameworks`.
|
||||
|
||||
Alternately, shared libraries (libsdl, libsdl\_image, libsdl\_ttf) can be used
|
||||
instead of frameworks. Install with a package manager (Fink, MacPorts,
|
||||
Homebrew, pkgsrc) or build and install from source.
|
||||
|
||||
### ncurses, gettext
|
||||
|
||||
ncurses and gettext are needed for localization.
|
||||
Install with a package manager, or build from source and install.
|
||||
|
||||
* ncurses needs wide character support enabled.
|
||||
|
||||
## Build
|
||||
|
||||
From the Cataclysm-DDA source folder:
|
||||
|
||||
The easiest way to try it out is the console version without localization:
|
||||
|
||||
$ make NATIVE=osx LOCALIZED=0 OSX_MIN=10.6
|
||||
|
||||
For localization support and/or to use libsdl (not frameworks):
|
||||
|
||||
$ export CXXFLAGS="-I/path/to/include" LDFLAGS="-L/path/to/lib"
|
||||
|
||||
This adds paths to find shared libraries outside of /usr and /usr/local.
|
||||
Multiple `-I/...` or `-L/...` paths can be specified.
|
||||
|
||||
### Example builds:
|
||||
|
||||
Build a release version with SDL graphical tiles:
|
||||
|
||||
$ make FRAMEWORK=1 NATIVE=osx OSX_MIN=10.6 RELEASE=1 TILES=1 LOCALIZE=0
|
||||
|
||||
Build a debug version with SDL ASCII:
|
||||
|
||||
$ make FRAMEWORK=1 NATIVE=osx OSX_MIN=10.6 SDL=1 LOCALIZE=0
|
||||
|
||||
## Run
|
||||
|
||||
$ ./cataclysm
|
||||
|
||||
or
|
||||
|
||||
$ ./cataclysm-tiles
|
||||
|
||||
### Make Options
|
||||
|
||||
`FRAMEWORK=1` use frameworks; omit to use libsdl, libsdl\_image, libsdl\_ttf.
|
||||
|
||||
`LOCALIZED=0` disable localization; enabled by default (requires gettext and ncurses with wide character support).
|
||||
|
||||
`NATIVE=osx` build for OS X.
|
||||
|
||||
`OSX_MIN=version` set `-mmacosx-version-min=` (for OS X > 10.5 set it to 10.6 or higher); omit for 10.5.
|
||||
|
||||
`RELEASE=1` build an optimized 'release' version.
|
||||
|
||||
`SDL=1` build the SDL version with ASCII characters.
|
||||
|
||||
`TILES=1` build the SDL version with graphical tiles.
|
||||
+59
-6
@@ -13,15 +13,64 @@ There are a couple of guidelines we suggest sticking to:
|
||||
|
||||
## 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:
|
||||
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
|
||||
astyle --style=1tbs --indent=spaces=4 --align-pointer=name --max-code-length=100 --break-after-logical --indent-classes --indent-switches --indent-preprocessor --indent-col1-comments --min-conditional-indent=0 --pad-oper --add-brackets --convert-tabs
|
||||
|
||||
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
|
||||
:'a,'b ! astyle --style=1tbs --indent-spaces=4 --align-pointer=name --max-code-length=100 --break-after-logical --indent-classes --indent-switches --indent-preprocessor --indent-col1-comments --min-conditional-indent=0 --pad-oper --add-brackets --convert-tabs
|
||||
|
||||
|
||||
## Doxygen Comments
|
||||
|
||||
Extensive documentation of classes and class members will make the code more readable to new contributors. New doxygen comments for existing classes are a welcomed contribution.
|
||||
|
||||
Use the following template for commenting classes:
|
||||
```c++
|
||||
/**
|
||||
* Brief description
|
||||
*
|
||||
* Lengthy description with many words. (optional)
|
||||
*/
|
||||
class foo {
|
||||
```
|
||||
|
||||
Use the following template for commenting functions:
|
||||
```c++
|
||||
/**
|
||||
* Brief description
|
||||
*
|
||||
* Lengthy description with many words. (optional)
|
||||
* @param param1 Description of param1 (optional)
|
||||
* @return Description of return (optional)
|
||||
*/
|
||||
int foo(int param1);
|
||||
```
|
||||
|
||||
Use the following template for commenting member variables:
|
||||
```c++
|
||||
/** Brief description **/
|
||||
int foo;
|
||||
```
|
||||
|
||||
Helpful pages:
|
||||
http://www.stack.nl/~dimitri/doxygen/manual/commands.html
|
||||
http://www.stack.nl/~dimitri/doxygen/manual/markdown.html#markdown_std
|
||||
http://www.stack.nl/~dimitri/doxygen/manual/faq.html
|
||||
|
||||
### Guidelines for adding documentation
|
||||
* Doxygen comments should describe behavior towards the outside, not implementation, but since many classes in Cataclysm are intertwined, it's often necessary to describe implementation.
|
||||
* Describe things that aren't obvious to newcomers just from the name.
|
||||
* Don't describe redundantly, `/** Map **/; map* map;` is not a helpful comment.
|
||||
* When documenting X, describe how X interacts with other components, not just what X itself does.
|
||||
|
||||
### Building the documentation for viewing it locally
|
||||
* Install doxygen
|
||||
* `doxygen doxygen_doc/doxygen_conf.txt `
|
||||
* `firefox doxygen_doc/html/index.html` (replace firefox with your browser of choice)
|
||||
|
||||
## Example Workflow
|
||||
|
||||
#### Setup your environment
|
||||
@@ -39,7 +88,7 @@ For example, from vi, set marks a and b around the block, then:
|
||||
|
||||
$ 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/TheDarklingWolf/Cataclysm-DDA.git
|
||||
$ 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
|
||||
@@ -76,6 +125,10 @@ For example, from vi, set marks a and b around the block, then:
|
||||
|
||||
* 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.
|
||||
|
||||
## Pull Request Notes
|
||||
* Mark pull requests that are still being worked on with [WIP] at the end of the title
|
||||
* When a pull request is ready to be reviewed remove the [WIP]
|
||||
* Mark pull requests that need commenting/testing by others with [CR]
|
||||
|
||||
## Advanced Techniques
|
||||
|
||||
@@ -113,7 +166,7 @@ You can also set the tracking information at the same time as creating the branc
|
||||
* 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/TheDarklingWolf/Cataclysm-DDA.git
|
||||
error: The requested URL returned error: 403 while accessing https://github.com/CleverRaven/Cataclysm-DDA.git
|
||||
fatal: HTTP request failed
|
||||
$ git push origin
|
||||
....
|
||||
@@ -128,7 +181,7 @@ You can also set the tracking information at the same time as creating the branc
|
||||
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/TheDarklingWolf/Cataclysm-DDA
|
||||
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
|
||||
|
||||
Executable → Regular
+149
-6
@@ -13,20 +13,134 @@
|
||||
<Option compiler="gcc" />
|
||||
<Compiler>
|
||||
<Add option="-Os" />
|
||||
<Add option="-O2" />
|
||||
</Compiler>
|
||||
</Target>
|
||||
<Target title="Release - Localized">
|
||||
<Option output="Cataclysm" prefix_auto="1" extension_auto="1" />
|
||||
<Option object_output="obj/Release/" />
|
||||
<Option type="0" />
|
||||
<Option compiler="gcc" />
|
||||
<Compiler>
|
||||
<Add option="-Os" />
|
||||
<Add option="-O2" />
|
||||
<Add option="-DLOCALIZE" />
|
||||
</Compiler>
|
||||
<Linker>
|
||||
<Add option="-Wl,-stack,12000000,-subsystem,windows" />
|
||||
<Add option="-static -lgdi32" />
|
||||
<Add library="intl" />
|
||||
<Add library="iconv" />
|
||||
</Linker>
|
||||
</Target>
|
||||
<Target title="Release -SDL">
|
||||
<Option output="Cataclysm" prefix_auto="1" extension_auto="1" />
|
||||
<Option object_output="obj/Release/" />
|
||||
<Option type="0" />
|
||||
<Option compiler="gcc" />
|
||||
<Compiler>
|
||||
<Add option="-Os" />
|
||||
<Add option="-O2" />
|
||||
<Add option="-DTILES" />
|
||||
</Compiler>
|
||||
<Linker>
|
||||
<Add library="libSDL.dll" />
|
||||
<Add library="SDL_ttf" />
|
||||
</Linker>
|
||||
</Target>
|
||||
<Target title="Release -SDL -Localized">
|
||||
<Option output="Cataclysm" prefix_auto="1" extension_auto="1" />
|
||||
<Option object_output="obj/Release/" />
|
||||
<Option type="0" />
|
||||
<Option compiler="gcc" />
|
||||
<Compiler>
|
||||
<Add option="-Os" />
|
||||
<Add option="-O2" />
|
||||
<Add option="-DLOCALIZE" />
|
||||
<Add option="-DTILES" />
|
||||
</Compiler>
|
||||
<Linker>
|
||||
<Add library="intl" />
|
||||
<Add library="iconv" />
|
||||
<Add library="libSDL.dll" />
|
||||
<Add library="SDL_ttf" />
|
||||
</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" />
|
||||
</Linker>
|
||||
</Target>
|
||||
<Target title="Debug - Localized">
|
||||
<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" />
|
||||
<Add option="-DLOCALIZE" />
|
||||
</Compiler>
|
||||
<Linker>
|
||||
<Add option="-pg -lgmon" />
|
||||
<Add library="intl" />
|
||||
<Add library="iconv" />
|
||||
</Linker>
|
||||
</Target>
|
||||
<Target title="Release - Tile Support">
|
||||
<Option output="Cataclysm-Tiles" prefix_auto="1" extension_auto="1" />
|
||||
<Option object_output="obj/TilesRelease/" />
|
||||
<Option type="0" />
|
||||
<Option compiler="gcc" />
|
||||
<Compiler>
|
||||
<Add option="-Os" />
|
||||
<Add option="-O2" />
|
||||
<Add option="-pg" />
|
||||
<Add option="-DSDLTILES" />
|
||||
<Add directory="3rdparty/include/SDL" />
|
||||
</Compiler>
|
||||
<Linker>
|
||||
<Add option="-pg -lgmon" />
|
||||
<Add library="3rdparty\lib\libSDL.dll.a" />
|
||||
<Add library="3rdparty\lib\libSDLmain.a" />
|
||||
<Add library="3rdparty\lib\x86\SDL_image.lib" />
|
||||
<Add library="3rdparty\lib\x86\SDL_ttf.lib" />
|
||||
<Add directory="3rdparty/lib" />
|
||||
<Add directory="3rdparty/lib/x86" />
|
||||
</Linker>
|
||||
</Target>
|
||||
</Build>
|
||||
<Compiler>
|
||||
<Add option="-Wextra" />
|
||||
<Add option="-Wall" />
|
||||
<Add option="-Wno-switch -Wno-sign-compare -Wno-missing-braces -Wno-unused-parameter" />
|
||||
</Compiler>
|
||||
<Linker>
|
||||
<Add option="-Wl,-stack,12000000,-subsystem,windows" />
|
||||
<Add option="-static" />
|
||||
<Add library="gdi32" />
|
||||
<Add library="winmm" />
|
||||
</Linker>
|
||||
<Unit filename="SDLMain.h" />
|
||||
<Unit filename="action.cpp" />
|
||||
<Unit filename="action.h" />
|
||||
<Unit filename="addiction.cpp" />
|
||||
<Unit filename="addiction.h" />
|
||||
<Unit filename="advanced_inv.cpp" />
|
||||
<Unit filename="advanced_inv.h" />
|
||||
<Unit filename="animation_curses.cpp" />
|
||||
<Unit filename="animation_tiles.cpp" />
|
||||
<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" />
|
||||
@@ -37,7 +151,10 @@
|
||||
<Unit filename="building_generation.h" />
|
||||
<Unit filename="calendar.cpp" />
|
||||
<Unit filename="calendar.h" />
|
||||
<Unit filename="catacurse.cpp" />
|
||||
<Unit filename="cata_tiles.cpp" />
|
||||
<Unit filename="cata_tiles.h" />
|
||||
<Unit filename="catacharset.cpp" />
|
||||
<Unit filename="catacharset.h" />
|
||||
<Unit filename="catacurse.h" />
|
||||
<Unit filename="catajson.cpp" />
|
||||
<Unit filename="catajson.h" />
|
||||
@@ -50,23 +167,28 @@
|
||||
<Unit filename="crafting.cpp" />
|
||||
<Unit filename="crafting.h" />
|
||||
<Unit filename="cursesdef.h" />
|
||||
<Unit filename="cursesport.cpp" />
|
||||
<Unit filename="debug.cpp" />
|
||||
<Unit filename="debug.h" />
|
||||
<Unit filename="defense.cpp" />
|
||||
<Unit filename="dialogue.h" />
|
||||
<Unit filename="disease.cpp" />
|
||||
<Unit filename="disease.h" />
|
||||
<Unit filename="editmap.cpp" />
|
||||
<Unit filename="editmap.h" />
|
||||
<Unit filename="enums.h" />
|
||||
<Unit filename="event.cpp" />
|
||||
<Unit filename="event.h" />
|
||||
<Unit filename="facdata.h" />
|
||||
<Unit filename="faction.cpp" />
|
||||
<Unit filename="faction.h" />
|
||||
<Unit filename="field.cpp" />
|
||||
<Unit filename="field.h" />
|
||||
<Unit filename="game.cpp" />
|
||||
<Unit filename="game.h" />
|
||||
<Unit filename="gamemode.cpp" />
|
||||
<Unit filename="gamemode.h" />
|
||||
<Unit filename="gamesave.cpp" />
|
||||
<Unit filename="get_version.h" />
|
||||
<Unit filename="graffiti.cpp" />
|
||||
<Unit filename="graffiti.h" />
|
||||
<Unit filename="help.cpp" />
|
||||
@@ -89,6 +211,14 @@
|
||||
<Unit filename="itypedef.cpp" />
|
||||
<Unit filename="iuse.cpp" />
|
||||
<Unit filename="iuse.h" />
|
||||
<Unit filename="iuse_software.cpp" />
|
||||
<Unit filename="iuse_software.h" />
|
||||
<Unit filename="iuse_software_kitten.cpp" />
|
||||
<Unit filename="iuse_software_kitten.h" />
|
||||
<Unit filename="iuse_software_snake.cpp" />
|
||||
<Unit filename="iuse_software_snake.h" />
|
||||
<Unit filename="iuse_software_sokoban.cpp" />
|
||||
<Unit filename="iuse_software_sokoban.h" />
|
||||
<Unit filename="keypress.cpp" />
|
||||
<Unit filename="keypress.h" />
|
||||
<Unit filename="lightmap.cpp" />
|
||||
@@ -107,9 +237,8 @@
|
||||
<Unit filename="mapgenformat.cpp" />
|
||||
<Unit filename="mapgenformat.h" />
|
||||
<Unit filename="mapitems.h" />
|
||||
<Unit filename="mapitemsdef.cpp" />
|
||||
<Unit filename="material.h" />
|
||||
<Unit filename="material.cpp" />
|
||||
<Unit filename="material.h" />
|
||||
<Unit filename="melee.cpp" />
|
||||
<Unit filename="mission.cpp" />
|
||||
<Unit filename="mission.h" />
|
||||
@@ -151,6 +280,8 @@
|
||||
<Unit filename="overmap.h" />
|
||||
<Unit filename="overmapbuffer.cpp" />
|
||||
<Unit filename="overmapbuffer.h" />
|
||||
<Unit filename="picofunc.cpp" />
|
||||
<Unit filename="picofunc.h" />
|
||||
<Unit filename="picojson.h" />
|
||||
<Unit filename="player.cpp" />
|
||||
<Unit filename="player.h" />
|
||||
@@ -165,6 +296,8 @@
|
||||
</Unit>
|
||||
<Unit filename="rng.cpp" />
|
||||
<Unit filename="rng.h" />
|
||||
<Unit filename="sdlcurse.cpp" />
|
||||
<Unit filename="sdltiles.cpp" />
|
||||
<Unit filename="settlement.cpp" />
|
||||
<Unit filename="settlement.h" />
|
||||
<Unit filename="setvector.cpp" />
|
||||
@@ -173,13 +306,18 @@
|
||||
<Unit filename="skill.h" />
|
||||
<Unit filename="text_snippets.cpp" />
|
||||
<Unit filename="text_snippets.h" />
|
||||
<Unit filename="tile_id_data.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="uistate.h" />
|
||||
<Unit filename="veh_interact.cpp" />
|
||||
<Unit filename="veh_interact.h" />
|
||||
<Unit filename="veh_type.h" />
|
||||
@@ -188,9 +326,14 @@
|
||||
<Unit filename="vehicle.h" />
|
||||
<Unit filename="version.cpp" />
|
||||
<Unit filename="version.h" />
|
||||
<Unit filename="wcwidth.c">
|
||||
<Option compilerVar="CC" />
|
||||
</Unit>
|
||||
<Unit filename="wdirent.h" />
|
||||
<Unit filename="weather.cpp" />
|
||||
<Unit filename="weather.h" />
|
||||
<Unit filename="weather_data.cpp" />
|
||||
<Unit filename="wincurse.cpp" />
|
||||
<Unit filename="wish.cpp" />
|
||||
<Extensions>
|
||||
<code_completion />
|
||||
|
||||
@@ -1,120 +0,0 @@
|
||||
1.1 Adding an item
|
||||
1) Edit itype.h. Change the enum item_id and insert a unique identifier for
|
||||
your new item type. Be sure to put it among similar items.
|
||||
2) Edit itypedef.cpp. Macros are used for all item types, and they are pretty
|
||||
self-explanatory. Be ABSOLUTELY sure that you insert the macro at the same
|
||||
point in the list as you inserted the identifier in item_id!
|
||||
3) Your item type is now valid, but won't be spawned. If you want it to be
|
||||
spawned among similar items, edit mapitemsdef.cpp. Find the appropriate
|
||||
array(s), and insert the identifier for your item (e.g. itm_aspirin). Make
|
||||
sure it comes in before the NULL at the end of the list.
|
||||
5) Some items, like tools or food, also take an iuse::function reference.
|
||||
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
|
||||
your new monster type. Be sure to put it among similar monsters.
|
||||
2) Edit montypedef.cpp. A macro is used for monsters and it is pretty
|
||||
straightforward (Any of this ring a bell?). Be ABSOLUTELY sure that you
|
||||
insert the macro at the same point in the list as your inserted the
|
||||
identifier in mon_id!
|
||||
3) Your monster type is now valid, but won't be spawned. If you want it to be
|
||||
spawned among similar monsters, edit mongroupdef.cpp. Find the appropriate
|
||||
array, and insert the identifier for your monster (e.g, mon_zombie). Make
|
||||
sure it comes in before the NULL at the end of the list.
|
||||
4) If you want your monster to drop items, edit monitemsdef.cpp. Make a new
|
||||
array for your monster type with all the map item groups it may carry, and a
|
||||
chance value for each.
|
||||
5) Your monster may have a special attack, a monattack::function reference.
|
||||
Edit monattack.h and include the function in the class definition; then
|
||||
edit monattack.cpp and define your function. Functions may be shared among
|
||||
different monster types. Be aware that the function should contain a
|
||||
statement that the monster uses to decide whether or not to use the attack,
|
||||
and if they do, should reset the monster's attack timer.
|
||||
7) Just like attacks, some monsters may have a special function called when
|
||||
they die. This works the same as attacks, but the relevent files are
|
||||
mondeath.h and mondeath.cpp.
|
||||
1.3 Adding structures to the map
|
||||
Most "regular" buildings are spawned in cities (large clusters of buildings which are located rather close to each other).
|
||||
In file omdata.h in the enum oter_id structure define names (code identifiers) for your building.
|
||||
If you want your building to be displayed at overmap in different orientations, you should add 4 identifiers for each orientation (south, east, west and north correspondingly).
|
||||
In the same file in structure const oter_t oterlist[num_ter_types]
|
||||
we should define how these buildings will be displayed, how much they obscure vision and which extras set they have. For example:
|
||||
{"mil. surplus", '^', c_white, 5, build_extras, false, false},
|
||||
{"mil. surplus", '>', c_white, 5, build_extras, false, false},
|
||||
{"mil. surplus", 'v', c_white, 5, build_extras, false, false},
|
||||
{"mil. surplus", '<', c_white, 5, build_extras, false, false}
|
||||
Comments at the beginning of this structure are rather useful.
|
||||
In the file mapgen.cpp find the subroutine called draw_map(...);
|
||||
there you should find a huge variant operator ("switch")
|
||||
where you should put your code defining the new building by adding new case-statement.
|
||||
This should be mentioned that most buildings are built on the square SEEX*2 x SEEY*2 tiles.
|
||||
If you want your building to be spawned not only in city limits
|
||||
you should refer to structures in file omdata.h
|
||||
(starting from the line #define OMSPEC_FREQ 7).
|
||||
These structures are commented in source code. Add new identifier in enum omspec_id structure before
|
||||
NUM_OMSPECS and then add a record in const overmap_special overmap_specials[NUM_OMSPECS] array. For example:
|
||||
{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).
|
||||
|
||||
FAQ
|
||||
Q: What the heck is up with the map objects?
|
||||
|
||||
A: The pertinent map objects are submap, mapbuffer, map, and overmap.
|
||||
The submap contains the actual map data, in SEEXxSEEY chunks.
|
||||
Vehicles and Spawns are stored in vectors because they're relatively sparse.
|
||||
Submaps live in the single global mapbuffer, MAPBUFFER.
|
||||
Map encapsulates the area around the player that is currently active.
|
||||
It contains an array of MAPSIZE * MAPSIZE submap pointers called grid.
|
||||
This is a 2D array, but is mapped to a 1D array for (questionable) indexing purposes.
|
||||
When the player moves from one submap to another, map::shift() is called.
|
||||
It moves the pointers in grid to keep the player centered.
|
||||
The leading edge of grid is populated by map::load()
|
||||
If the submap has been visited before, it's loaded from MAPBUFFER
|
||||
Otherwise a 2x2 chunk of submaps is generated based on the corresponding overmap square type.
|
||||
An overmap encapsulates the large-scale structure of a map
|
||||
Such as location and layout of cities, forests, rivers, roads, etc...
|
||||
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.
|
||||
@@ -20,7 +20,13 @@
|
||||
# Default
|
||||
# Release (turn on optimizations)
|
||||
# make RELEASE=1
|
||||
|
||||
# Tiles (uses SDL rather than ncurses)
|
||||
# make TILES=1
|
||||
# Disable gettext, on some platforms the dependencies are hard to wrangle.
|
||||
# make LOCALIZE=0
|
||||
# Compile localization files for specified languages
|
||||
# make LANGUAGES="<lang_id_1>[ lang_id_2][ ...]"
|
||||
# (for example: make LANGUAGES="zh_CN zh_TW" for Chinese)
|
||||
|
||||
# comment these to toggle them as one sees fit.
|
||||
# WARNINGS will spam hundreds of warnings, mostly safe, if turned on
|
||||
@@ -49,21 +55,29 @@ DEBUG = -g
|
||||
#DEFINES += -DDEBUG_ENABLE_MAP_GEN
|
||||
#DEFINES += -DDEBUG_ENABLE_GAME
|
||||
|
||||
|
||||
VERSION = 0.5
|
||||
VERSION = 0.8
|
||||
|
||||
|
||||
TARGET = cataclysm
|
||||
TILESTARGET = cataclysm-tiles
|
||||
W32TILESTARGET = cataclysm-tiles.exe
|
||||
W32TARGET = cataclysm.exe
|
||||
BINDIST_DIR = bindist
|
||||
BUILD_DIR = $(CURDIR)
|
||||
LOCALIZE = 1
|
||||
|
||||
# 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)
|
||||
CXX = $(CROSS)g++
|
||||
LD = $(CROSS)g++
|
||||
RC = $(CROSS)windres
|
||||
|
||||
# enable optimizations. slow to build
|
||||
ifdef RELEASE
|
||||
@@ -73,11 +87,11 @@ endif
|
||||
|
||||
CXXFLAGS += $(WARNINGS) $(DEBUG) $(PROFILE) $(OTHERS) -MMD
|
||||
|
||||
BINDIST_EXTRAS = README data cataclysm-launcher
|
||||
BINDIST_EXTRAS = README.md 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
|
||||
@@ -97,19 +111,29 @@ 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)
|
||||
CXXFLAGS += -mmacosx-version-min=10.6
|
||||
OSX_MIN = 10.5
|
||||
DEFINES += -DMACOSX
|
||||
CXXFLAGS += -mmacosx-version-min=$(OSX_MIN)
|
||||
ifeq ($(LOCALIZE), 1)
|
||||
LDFLAGS += -lintl
|
||||
endif
|
||||
TARGETSYSTEM=LINUX
|
||||
ifneq ($(OS), GNU/Linux)
|
||||
BINDIST_CMD = tar -s"@^$(BINDIST_DIR)@cataclysmdda-$(VERSION)@" -czvf $(BINDIST) $(BINDIST_DIR)
|
||||
endif
|
||||
endif
|
||||
|
||||
# Win32 (mingw32?)
|
||||
@@ -119,30 +143,122 @@ endif
|
||||
|
||||
# MXE cross-compile to win32
|
||||
ifneq (,$(findstring mingw32,$(CROSS)))
|
||||
DEFINES += -DCROSS_LINUX
|
||||
TARGETSYSTEM=WINDOWS
|
||||
endif
|
||||
|
||||
# Global settings for Linux targets
|
||||
ifeq ($(TARGETSYSTEM),LINUX)
|
||||
LDFLAGS += -lncurses
|
||||
endif
|
||||
|
||||
# Global settings for Windows targets
|
||||
ifeq ($(TARGETSYSTEM),WINDOWS)
|
||||
TARGET = $(W32TARGET)
|
||||
BINDIST = $(W32BINDIST)
|
||||
BINDIST_CMD = $(W32BINDIST_CMD)
|
||||
ODIR = $(W32ODIR)
|
||||
LDFLAGS += -static -lgdi32
|
||||
LDFLAGS += -static -lgdi32 -lwinmm
|
||||
ifeq ($(LOCALIZE), 1)
|
||||
LDFLAGS += -lintl -liconv
|
||||
endif
|
||||
W32FLAGS += -Wl,-stack,12000000,-subsystem,windows
|
||||
RFLAGS = -J rc -O coff
|
||||
endif
|
||||
|
||||
ifdef TILES
|
||||
SDL = 1
|
||||
BINDIST_EXTRAS += gfx
|
||||
endif
|
||||
|
||||
ifdef SDL
|
||||
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_image.framework/Headers \
|
||||
-I$(HOME)/Library/Frameworks/SDL_image.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_image -framework SDL_ttf -framework Cocoa
|
||||
CXXFLAGS += $(OSX_INC)
|
||||
else # libsdl build
|
||||
DEFINES += -DOSX_SDL_LIBS
|
||||
# handle #include "SDL/SDL.h" and "SDL.h"
|
||||
CXXFLAGS += $(shell sdl-config --cflags) \
|
||||
-I$(shell dirname $(shell sdl-config --cflags | sed 's/-I\(.[^ ]*\) .*/\1/'))
|
||||
LDFLAGS += $(shell sdl-config --libs) -lSDL_ttf
|
||||
ifdef TILES
|
||||
LDFLAGS += -lSDL_image
|
||||
endif
|
||||
endif
|
||||
else # not osx
|
||||
LDFLAGS += -lSDL -lSDL_ttf -lfreetype -lz
|
||||
ifdef TILES
|
||||
LDFLAGS += -lSDL_image
|
||||
endif
|
||||
endif
|
||||
ifdef TILES
|
||||
DEFINES += -DSDLTILES
|
||||
else
|
||||
DEFINES += -DTILES
|
||||
endif
|
||||
ifeq ($(TARGETSYSTEM),WINDOWS)
|
||||
LDFLAGS += -lgdi32 -ldxguid -lwinmm -ljpeg -lpng
|
||||
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)
|
||||
ifeq ($(LOCALIZE),1)
|
||||
ifeq ($(shell sh -c 'uname -o 2>/dev/null || echo not'),Darwin)
|
||||
LDFLAGS += -lncurses
|
||||
else
|
||||
LDFLAGS += -lncursesw
|
||||
endif
|
||||
# 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
|
||||
else
|
||||
LDFLAGS += -lncurses
|
||||
endif
|
||||
endif
|
||||
endif
|
||||
|
||||
ifeq ($(LOCALIZE),1)
|
||||
DEFINES += -DLOCALIZE
|
||||
endif
|
||||
|
||||
ifeq ($(TARGETSYSTEM),LINUX)
|
||||
BINDIST_EXTRAS += cataclysm-launcher
|
||||
endif
|
||||
|
||||
SOURCES = $(wildcard *.cpp)
|
||||
HEADERS = $(wildcard *.h)
|
||||
_OBJS = $(SOURCES:.cpp=.o)
|
||||
ifeq ($(TARGETSYSTEM),WINDOWS)
|
||||
RSRC = $(wildcard *.rc)
|
||||
_OBJS += $(RSRC:.rc=.o)
|
||||
endif
|
||||
OBJS = $(patsubst %,$(ODIR)/%,$(_OBJS))
|
||||
|
||||
all: version $(TARGET)
|
||||
ifdef SDL
|
||||
ifeq ($(NATIVE),osx)
|
||||
OBJS += $(ODIR)/SDLMain.o
|
||||
endif
|
||||
endif
|
||||
|
||||
ifdef LANGUAGES
|
||||
L10N = localization
|
||||
BINDIST_EXTRAS += lang/mo
|
||||
endif
|
||||
|
||||
all: version $(TARGET) $(L10N)
|
||||
@
|
||||
|
||||
$(TARGET): $(ODIR) $(DDIR) $(OBJS)
|
||||
@@ -158,7 +274,7 @@ version:
|
||||
)
|
||||
|
||||
$(ODIR):
|
||||
mkdir $(ODIR)
|
||||
mkdir -p $(ODIR)
|
||||
|
||||
$(DDIR):
|
||||
@mkdir $(DDIR)
|
||||
@@ -166,20 +282,37 @@ $(DDIR):
|
||||
$(ODIR)/%.o: %.cpp
|
||||
$(CXX) $(DEFINES) $(CXXFLAGS) -c $< -o $@
|
||||
|
||||
$(ODIR)/%.o: %.rc
|
||||
$(RC) $(RFLAGS) $< -o $@
|
||||
|
||||
$(ODIR)/SDLMain.o: SDLMain.m
|
||||
$(CC) -c $(OSX_INC) $< -o $@
|
||||
|
||||
version.cpp: version
|
||||
|
||||
localization:
|
||||
lang/compile_mo.sh $(LANGUAGES)
|
||||
|
||||
clean: clean-tests
|
||||
rm -f $(TARGET) $(W32TARGET) $(ODIR)/*.o $(ODIR)/*.d $(W32ODIR)/*.o $(W32BINDIST) \
|
||||
$(BINDIST)
|
||||
rm -rf $(BINDIST_DIR)
|
||||
rm -rf $(TARGET) $(TILESTARGET) $(W32TILESTARGET) $(W32TARGET)
|
||||
rm -rf $(ODIR) $(W32ODIR) $(W32ODIRTILES)
|
||||
rm -rf $(BINDIST) $(W32BINDIST) $(BINDIST_DIR)
|
||||
rm -f version.h
|
||||
|
||||
distclean:
|
||||
rm -rf $(BINDIST_DIR)
|
||||
rm -rf save
|
||||
rm -rf lang/mo
|
||||
rm -f data/options.txt
|
||||
rm -f data/keymap.txt
|
||||
rm -f data/auto_pickup.txt
|
||||
rm -f data/fontlist.txt
|
||||
|
||||
bindist: $(BINDIST)
|
||||
|
||||
$(BINDIST): $(TARGET) $(BINDIST_EXTRAS)
|
||||
rm -rf $(BINDIST_DIR)
|
||||
$(BINDIST): distclean $(TARGET) $(L10N) $(BINDIST_EXTRAS)
|
||||
mkdir -p $(BINDIST_DIR)
|
||||
cp -R $(TARGET) $(BINDIST_EXTRAS) $(BINDIST_DIR)
|
||||
cp -R --parents $(TARGET) $(BINDIST_EXTRAS) $(BINDIST_DIR)
|
||||
$(BINDIST_CMD)
|
||||
|
||||
export ODIR _OBJS LDFLAGS CXX W32FLAGS DEFINES CXXFLAGS
|
||||
|
||||
@@ -1,52 +0,0 @@
|
||||
# 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
|
||||
DEBUG = -g
|
||||
#PROFILE = -pg
|
||||
OTHERS = -O3
|
||||
|
||||
ODIR = objwin
|
||||
DDIR = .deps
|
||||
|
||||
TARGET = cataclysm.exe
|
||||
|
||||
CXX = g++
|
||||
|
||||
LINKER = i486-mingw32-ld
|
||||
LINKERFLAGS = -Wl,-stack,12000000,-subsystem,windows
|
||||
|
||||
CFLAGS = $(WARNINGS) $(DEBUG) $(PROFILE) $(OTHERS)
|
||||
|
||||
LDFLAGS = -static -lgdi32
|
||||
|
||||
#ifeq ($(OS), Msys)
|
||||
#LDFLAGS = -static -lpdcurses
|
||||
#else
|
||||
#LDFLAGS = -lncurses
|
||||
#endif
|
||||
|
||||
SOURCES = $(wildcard *.cpp)
|
||||
_OBJS = $(SOURCES:.cpp=.o)
|
||||
OBJS = $(patsubst %,$(ODIR)/%,$(_OBJS))
|
||||
|
||||
all: $(TARGET)
|
||||
@
|
||||
|
||||
$(TARGET): $(ODIR) $(DDIR) $(OBJS)
|
||||
$(CXX) $(LINKERFLAGS) -o $(TARGET) $(CFLAGS) $(OBJS) $(LDFLAGS) -DMINGW
|
||||
|
||||
$(ODIR):
|
||||
mkdir $(ODIR)
|
||||
|
||||
$(DDIR):
|
||||
@mkdir $(DDIR)
|
||||
|
||||
$(ODIR)/%.o: %.cpp
|
||||
$(CXX) $(CFLAGS) -c $< -o $@
|
||||
|
||||
clean:
|
||||
rm -f $(TARGET) $(ODIR)/*.o
|
||||
|
||||
-include $(SOURCES:%.cpp=$(DEPDIR)/%.P)
|
||||
@@ -1,56 +0,0 @@
|
||||
Cataclysm is a post-apocalyptic roguelike, set in the countryside of New England
|
||||
after a devastating plague of monsters and zombies.
|
||||
|
||||
At present time, Cataclysm is still in early alpha, and is being developed very
|
||||
rapidly. As such, there are no formal version numbers, as a new version is
|
||||
released every day, often several a day.
|
||||
|
||||
Source is available at the github repository, http://github.com/Whales/Cataclysm
|
||||
There is also a tarball available at http://squidnet.ath.cx/cataclysm.tar.gz
|
||||
Squidnet maintains a public SSH server. If you cannot play Cataclysm locally,
|
||||
or if you prefer to play it in a world shared with others, connect to
|
||||
cataclysm@squidnet.ath.cx (there is no password).
|
||||
|
||||
Compiling Cataclysm under linux is straightforward, and only requires the
|
||||
ncurses development libraries. Under Ubuntu, these libraries can be found in
|
||||
the libncurses5-dev package ("sudo apt-get install libncurses5-dev" will install
|
||||
this package).
|
||||
|
||||
Cataclysm is very different from most roguelikes in many ways. Rather than
|
||||
being set in a vertical, linear dungeon, it is set in an unbounded, 3D world.
|
||||
This means that exploration plays a much bigger role than in most roguelikes,
|
||||
and the game is much less linear.
|
||||
Because the map is so huge, it is actually completely persistant between games.
|
||||
If you die, and start a new character, your new game will be set in the same
|
||||
game world as your last. Like in many roguelikes, you will be able to loot the
|
||||
dead bodies of previous characters; unlike most roguelikes, you will also be
|
||||
able to retrace their steps completely, and any dramatic changes made to the
|
||||
world will persist into your next game.
|
||||
While this makes for interesting depth of play, and the ability to "save" game
|
||||
progress even after death, some prefer to start each game with a freshly
|
||||
generated world. This can be achieved by erasing the contents of the save
|
||||
directory, found in the same folder as the executable. "rm save/*" will erase
|
||||
these files for you.
|
||||
|
||||
Cataclysm's gameplay also includes many unique quirks, and the learning curve is
|
||||
somewhat steep, even for those experienced with roguelikes. Included with the
|
||||
game is a tutorial which runs the player through most of the key features. The
|
||||
game also has extensive documentation via the ? command. Pressing ?1 will list
|
||||
all the key commands, which is a good place to start.
|
||||
|
||||
To submit a bug, complaint, feature request, or praise, please send them via
|
||||
email to TheDarklingWolf@gmail.com. You can also submit problem reports and
|
||||
patches at the github repository at http://github.com/Whales/Cataclysm .
|
||||
|
||||
I strive to include as many feature requests as possible, and if you submit one
|
||||
there is a good chance that it will appear in the game within a few days. Of
|
||||
course, it is inevitable that I will reject some feature requests, either
|
||||
because they do not fit my conception of the game, or because they require more
|
||||
code than I think they're worth. Feature requests supplied in the form of a
|
||||
patch stand a better chance of inclusion, of course ;) For instructions on
|
||||
making changes to item types, monster types, etc., please see the EDITING file.
|
||||
Most changes of this variety require no training in C++, or programming in
|
||||
general.
|
||||
|
||||
If you want to take Cataclysm in a new direction, please feel free to create a
|
||||
branch project--just let me know about it!
|
||||
@@ -1,16 +1,13 @@
|
||||
# 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...
|
||||
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, persistent, 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...
|
||||
|
||||
|
||||
## Download
|
||||
|
||||
The following binary releases are available:
|
||||
Visit [our website](http://en.cataclysmdda.com/) for download links to all stable and experimental releases
|
||||
|
||||
* [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/).
|
||||
The source can either be downloaded as [an archive](https://github.com/CleverRaven/Cataclysm-DDA/archive/master.zip), or you can clone it from [our GitHub repository](https://github.com/CleverRaven/Cataclysm-DDA/).
|
||||
|
||||
|
||||
## Compile
|
||||
@@ -20,7 +17,7 @@ The latest instructions on how to compile can be found on [our wiki](http://www.
|
||||
|
||||
## Contribute
|
||||
|
||||
Please see [CONTRIBUTING.md](https://github.com/TheDarklingWolf/Cataclysm-DDA/blob/master/CONTRIBUTING.md) for details.
|
||||
Please see [CONTRIBUTING.md](https://github.com/CleverRaven/Cataclysm-DDA/blob/master/CONTRIBUTING.md) for details.
|
||||
|
||||
|
||||
## Frequently Asked Questions
|
||||
@@ -35,8 +32,8 @@ Press the `?` key, followed by the `1` key to see the full list of key commands.
|
||||
|
||||
#### How can I start a new world?
|
||||
|
||||
Simply delete the **save** folder, which can be found in the same directory as the executable.
|
||||
**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/TheDarklingWolf/Cataclysm-DDA/issues/). If you're not able to, send an email to `TheDarklingWolf@gmail.com`.
|
||||
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 `kevin.granade@gmail.com`.
|
||||
|
||||
+35
@@ -0,0 +1,35 @@
|
||||
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, persistent,
|
||||
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...
|
||||
|
||||
Download
|
||||
Visit http://en.cataclysmdda.com/ for download links to all stable and experimental releases
|
||||
|
||||
Compile
|
||||
The latest instructions on how to compile can be found on our wiki at http://www.wiki.cataclysmdda.com/index.php?title=How_to_compile.
|
||||
|
||||
Contribute
|
||||
Please see CONTRIBUTING.md for details.
|
||||
Contributing is much easier with an advanced text editor, for windows a good program is Notepad++, available at http://notepad-plus-plus.org/.
|
||||
|
||||
Frequently Asked Questions
|
||||
1)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.
|
||||
|
||||
2)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.
|
||||
|
||||
3)How can I start a new world?
|
||||
Reset on the main menu will generate a fresh world for you.
|
||||
|
||||
4)I've found a bug / I would like to make a suggestion. What should I do?
|
||||
Please submit an issue on our GitHub page at https://github.com/CleverRaven/Cataclysm-DDA/issues/.
|
||||
If you're not able to, send an email to `kevin.granade@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;
|
||||
}
|
||||
|
||||
@@ -15,4 +15,21 @@ 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>
|
||||
Robert Sørlie (1942rob) <1942rob@gmail.com>
|
||||
Angela Graves <Rivet.the.Zombie@gmail.com>
|
||||
Ian Strachan <ian_e_strachan@hotmail.com>
|
||||
Greg McNew <gmcnew@gmail.com>
|
||||
NaturesWitness <natureswitness@gmail.com>
|
||||
|
||||
+134
-86
@@ -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,25 +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.eof()) {
|
||||
while (!keymap_txt.eof()) {
|
||||
char ch;
|
||||
fin >> std::noskipws >> ch >> std::skipws;
|
||||
keymap_txt >> std::noskipws >> ch >> std::skipws;
|
||||
if (ch == '\n') {
|
||||
break;
|
||||
} else if (ch != ' ' || fin.peek() == '\n') {
|
||||
if (keymap.find(ch) != keymap.end()) {
|
||||
} 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;
|
||||
kmap[ ch ] = act;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
} else {
|
||||
getline(fin, id); // Clear the whole line
|
||||
getline(keymap_txt, id); // Clear the whole line
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -146,6 +181,8 @@ std::string action_ident(action_id act)
|
||||
return "advinv";
|
||||
case ACTION_PICKUP:
|
||||
return "pickup";
|
||||
case ACTION_GRAB:
|
||||
return "grab";
|
||||
case ACTION_BUTCHER:
|
||||
return "butcher";
|
||||
case ACTION_CHAT:
|
||||
@@ -197,7 +234,7 @@ std::string action_ident(action_id act)
|
||||
case ACTION_BIONICS:
|
||||
return "bionics";
|
||||
case ACTION_SORT_ARMOR:
|
||||
return "sort_armor";
|
||||
return "sort_armor";
|
||||
case ACTION_WAIT:
|
||||
return "wait";
|
||||
case ACTION_CRAFT:
|
||||
@@ -212,6 +249,8 @@ std::string action_ident(action_id act)
|
||||
return "disassemble";
|
||||
case ACTION_SLEEP:
|
||||
return "sleep";
|
||||
case ACTION_CONTROL_VEHICLE:
|
||||
return "control_vehicle";
|
||||
case ACTION_TOGGLE_SAFEMODE:
|
||||
return "safemode";
|
||||
case ACTION_TOGGLE_AUTOSAFE:
|
||||
@@ -220,6 +259,8 @@ std::string action_ident(action_id act)
|
||||
return "ignore_enemy";
|
||||
case ACTION_SAVE:
|
||||
return "save";
|
||||
case ACTION_QUICKSAVE:
|
||||
return "quicksave";
|
||||
case ACTION_QUIT:
|
||||
return "quit";
|
||||
case ACTION_PL_INFO:
|
||||
@@ -267,157 +308,164 @@ std::string action_name(action_id act)
|
||||
switch (act)
|
||||
{
|
||||
case ACTION_PAUSE:
|
||||
return "Pause";
|
||||
return _("Pause");
|
||||
case ACTION_MOVE_N:
|
||||
return "Move North";
|
||||
return _("Move North");
|
||||
case ACTION_MOVE_NE:
|
||||
return "Move Northeast";
|
||||
return _("Move Northeast");
|
||||
case ACTION_MOVE_E:
|
||||
return "Move East";
|
||||
return _("Move East");
|
||||
case ACTION_MOVE_SE:
|
||||
return "Move Southeast";
|
||||
return _("Move Southeast");
|
||||
case ACTION_MOVE_S:
|
||||
return "Move South";
|
||||
return _("Move South");
|
||||
case ACTION_MOVE_SW:
|
||||
return "Move Southwest";
|
||||
return _("Move Southwest");
|
||||
case ACTION_MOVE_W:
|
||||
return "Move West";
|
||||
return _("Move West");
|
||||
case ACTION_MOVE_NW:
|
||||
return "Move Northwest";
|
||||
return _("Move Northwest");
|
||||
case ACTION_MOVE_DOWN:
|
||||
return "Descend Stairs";
|
||||
return _("Descend Stairs");
|
||||
case ACTION_MOVE_UP:
|
||||
return "Ascend Stairs";
|
||||
return _("Ascend Stairs");
|
||||
case ACTION_CENTER:
|
||||
return "Center View";
|
||||
return _("Center View");
|
||||
case ACTION_SHIFT_N:
|
||||
return "Move View North";
|
||||
return _("Move View North");
|
||||
case ACTION_SHIFT_NE:
|
||||
return "Move View Northeast";
|
||||
return _("Move View Northeast");
|
||||
case ACTION_SHIFT_E:
|
||||
return "Move View East";
|
||||
return _("Move View East");
|
||||
case ACTION_SHIFT_SE:
|
||||
return "Move View Southeast";
|
||||
return _("Move View Southeast");
|
||||
case ACTION_SHIFT_S:
|
||||
return "Move View South";
|
||||
return _("Move View South");
|
||||
case ACTION_SHIFT_SW:
|
||||
return "Move View Southwest";
|
||||
return _("Move View Southwest");
|
||||
case ACTION_SHIFT_W:
|
||||
return "Move View West";
|
||||
return _("Move View West");
|
||||
case ACTION_SHIFT_NW:
|
||||
return "Move View Northwest";
|
||||
return _("Move View Northwest");
|
||||
case ACTION_OPEN:
|
||||
return "Open Door";
|
||||
return _("Open Door");
|
||||
case ACTION_CLOSE:
|
||||
return "Close Door";
|
||||
return _("Close Door");
|
||||
case ACTION_SMASH:
|
||||
return "Smash Nearby Terrain";
|
||||
return _("Smash Nearby Terrain");
|
||||
case ACTION_EXAMINE:
|
||||
return "Examine Nearby Terrain";
|
||||
return _("Examine Nearby Terrain");
|
||||
case ACTION_PICKUP:
|
||||
return "Pick Item(s) Up";
|
||||
return _("Pick Item(s) Up");
|
||||
case ACTION_GRAB:
|
||||
return _("Grab a nearby vehicle");
|
||||
case ACTION_BUTCHER:
|
||||
return "Butcher";
|
||||
return _("Butcher");
|
||||
case ACTION_CHAT:
|
||||
return "Chat with NPC";
|
||||
return _("Chat with NPC");
|
||||
case ACTION_LOOK:
|
||||
return "Look Around";
|
||||
return _("Look Around");
|
||||
case ACTION_PEEK:
|
||||
return "Peek Around Corners";
|
||||
return _("Peek Around Corners");
|
||||
case ACTION_LIST_ITEMS:
|
||||
return "List all items around the player";
|
||||
return _("List all items around the player");
|
||||
case ACTION_INVENTORY:
|
||||
return "Open Inventory";
|
||||
return _("Open Inventory");
|
||||
case ACTION_ADVANCEDINV:
|
||||
return "Advanced Inventory management";
|
||||
return _("Advanced Inventory management");
|
||||
case ACTION_COMPARE:
|
||||
return "Compare two Items";
|
||||
return _("Compare two Items");
|
||||
case ACTION_ORGANIZE:
|
||||
return "Swap Inventory Letters";
|
||||
return _("Swap Inventory Letters");
|
||||
case ACTION_USE:
|
||||
return "Apply or Use Item";
|
||||
return _("Apply or Use Item");
|
||||
case ACTION_USE_WIELDED:
|
||||
return "Apply or Use Wielded Item";
|
||||
return _("Apply or Use Wielded Item");
|
||||
case ACTION_WEAR:
|
||||
return "Wear Item";
|
||||
return _("Wear Item");
|
||||
case ACTION_TAKE_OFF:
|
||||
return "Take Off Worn Item";
|
||||
return _("Take Off Worn Item");
|
||||
case ACTION_EAT:
|
||||
return "Eat";
|
||||
return _("Eat");
|
||||
case ACTION_READ:
|
||||
return "Read";
|
||||
return _("Read");
|
||||
case ACTION_WIELD:
|
||||
return "Wield";
|
||||
return _("Wield");
|
||||
case ACTION_PICK_STYLE:
|
||||
return "Select Unarmed Style";
|
||||
return _("Select Unarmed Style");
|
||||
case ACTION_RELOAD:
|
||||
return "Reload Wielded Item";
|
||||
return _("Reload Wielded Item");
|
||||
case ACTION_UNLOAD:
|
||||
return "Unload or Empty Wielded Item";
|
||||
return _("Unload or Empty Wielded Item");
|
||||
case ACTION_THROW:
|
||||
return "Throw Item";
|
||||
return _("Throw Item");
|
||||
case ACTION_FIRE:
|
||||
return "Fire Wielded Item";
|
||||
return _("Fire Wielded Item");
|
||||
case ACTION_FIRE_BURST:
|
||||
return "Burst-Fire Wielded Item";
|
||||
return _("Burst-Fire Wielded Item");
|
||||
case ACTION_SELECT_FIRE_MODE:
|
||||
return "Toggle attack mode of Wielded Item";
|
||||
return _("Toggle attack mode of Wielded Item");
|
||||
case ACTION_DROP:
|
||||
return "Drop Item";
|
||||
return _("Drop Item");
|
||||
case ACTION_DIR_DROP:
|
||||
return "Drop Item to Adjacent Tile";
|
||||
return _("Drop Item to Adjacent Tile");
|
||||
case ACTION_BIONICS:
|
||||
return "View/Activate Bionics";
|
||||
return _("View/Activate Bionics");
|
||||
case ACTION_SORT_ARMOR:
|
||||
return "Re-layer armour/clothing";
|
||||
return _("Re-layer armour/clothing");
|
||||
case ACTION_WAIT:
|
||||
return "Wait for Several Minutes";
|
||||
return _("Wait for Several Minutes");
|
||||
case ACTION_CRAFT:
|
||||
return "Craft Items";
|
||||
return _("Craft Items");
|
||||
case ACTION_RECRAFT:
|
||||
return "Recraft last recipe";
|
||||
return _("Recraft last recipe");
|
||||
case ACTION_LONGCRAFT:
|
||||
return "Craft as long as possible";
|
||||
return _("Craft as long as possible");
|
||||
case ACTION_CONSTRUCT:
|
||||
return "Construct Terrain";
|
||||
return _("Construct Terrain");
|
||||
case ACTION_DISASSEMBLE:
|
||||
return "Disassemble items";
|
||||
return _("Disassemble items");
|
||||
case ACTION_SLEEP:
|
||||
return "Sleep";
|
||||
return _("Sleep");
|
||||
case ACTION_CONTROL_VEHICLE:
|
||||
return _("Control Vehicle");
|
||||
case ACTION_TOGGLE_SAFEMODE:
|
||||
return "Toggle Safemode";
|
||||
return _("Toggle Safemode");
|
||||
case ACTION_TOGGLE_AUTOSAFE:
|
||||
return "Toggle Auto-Safemode";
|
||||
return _("Toggle Auto-Safemode");
|
||||
case ACTION_IGNORE_ENEMY:
|
||||
return "Ignore Nearby Enemy";
|
||||
return _("Ignore Nearby Enemy");
|
||||
case ACTION_SAVE:
|
||||
return "Save and Quit";
|
||||
return _("Save and Quit");
|
||||
case ACTION_QUICKSAVE:
|
||||
return _("Quicksave");
|
||||
case ACTION_QUIT:
|
||||
return "Commit Suicide";
|
||||
return _("Commit Suicide");
|
||||
case ACTION_PL_INFO:
|
||||
return "View Player Info";
|
||||
return _("View Player Info");
|
||||
case ACTION_MAP:
|
||||
return "View Map";
|
||||
return _("View Map");
|
||||
case ACTION_MISSIONS:
|
||||
return "View Missions";
|
||||
return _("View Missions");
|
||||
case ACTION_FACTIONS:
|
||||
return "View Factions";
|
||||
return _("View Factions");
|
||||
case ACTION_KILLS:
|
||||
return "View Kills";
|
||||
return _("View Kills");
|
||||
case ACTION_MORALE:
|
||||
return "View Morale";
|
||||
return _("View Morale");
|
||||
case ACTION_MESSAGES:
|
||||
return "View Message Log";
|
||||
return _("View Message Log");
|
||||
case ACTION_HELP:
|
||||
return "View Help";
|
||||
return _("View Help");
|
||||
case ACTION_DEBUG:
|
||||
return "Debug Menu";
|
||||
return _("Debug Menu");
|
||||
case ACTION_DISPLAY_SCENT:
|
||||
return "View Scentmap";
|
||||
return _("View Scentmap");
|
||||
case ACTION_TOGGLE_DEBUGMON:
|
||||
return "Toggle Debug Messages";
|
||||
return _("Toggle Debug Messages");
|
||||
case ACTION_NULL:
|
||||
return "No Action";
|
||||
return _("No Action");
|
||||
}
|
||||
return "Someone forgot to name an action.";
|
||||
}
|
||||
|
||||
|
||||
@@ -31,6 +31,7 @@ ACTION_CLOSE,
|
||||
ACTION_SMASH,
|
||||
ACTION_EXAMINE,
|
||||
ACTION_PICKUP,
|
||||
ACTION_GRAB,
|
||||
ACTION_BUTCHER,
|
||||
ACTION_CHAT,
|
||||
ACTION_LOOK,
|
||||
@@ -67,10 +68,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,
|
||||
|
||||
+209
-160
@@ -2,169 +2,218 @@
|
||||
|
||||
void addict_effect(game *g, addiction &add)
|
||||
{
|
||||
int in = add.intensity;
|
||||
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;
|
||||
switch (add.type) {
|
||||
case ADD_CIG:
|
||||
if (in > 20 || one_in((500 - 20 * in))) {
|
||||
g->add_msg(rng(0, 6) < in ? _("You need a cigarette.") : _("You could use a cigarette."));
|
||||
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 (g->u.stim > -50 && 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(DI_SHAKES, 20, g);
|
||||
}
|
||||
}
|
||||
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 (g->u.stim > -150 && 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(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;
|
||||
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_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_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(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_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);
|
||||
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);
|
||||
if (g->u.stim > -150) {
|
||||
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);
|
||||
if (g->u.stim > -150) {
|
||||
g->u.stim -= 3;
|
||||
}
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the name of an addiction. It should be able to finish the sentence
|
||||
* "Became addicted to ______".
|
||||
*/
|
||||
std::string addiction_type_name(add_type cur)
|
||||
{
|
||||
switch(cur) {
|
||||
case ADD_CIG: return _("nicotine");
|
||||
case ADD_CAFFEINE: return _("caffeine");
|
||||
case ADD_ALCOHOL: return _("alcohol");
|
||||
case ADD_SLEEP: return _("sleeping pills");
|
||||
case ADD_PKILLER: return _("opiates");
|
||||
case ADD_SPEED: return _("amphetamine");
|
||||
case ADD_COKE: return _("cocaine");
|
||||
case ADD_CRACK: return _("crack cocaine");
|
||||
default: return "bugs in addiction.cpp";
|
||||
}
|
||||
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";
|
||||
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")
|
||||
@@ -189,38 +238,38 @@ add_type addiction_type(std::string name)
|
||||
|
||||
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";
|
||||
return _("Intelligence - 1; Occasional cravings");
|
||||
|
||||
case ADD_CAFFEINE:
|
||||
return "Strength - 1; Slight sluggishness; Occasional cravings";
|
||||
return _("Strength - 1; Slight sluggishness; Occasional cravings");
|
||||
|
||||
case ADD_ALCOHOL:
|
||||
return "\
|
||||
return _("\
|
||||
Perception - 1; Intelligence - 1; Occasional Cravings;\n\
|
||||
Risk of delirium tremens";
|
||||
Risk of delirium tremens");
|
||||
|
||||
case ADD_SLEEP:
|
||||
return "You may find it difficult to sleep without medication.";
|
||||
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();
|
||||
{
|
||||
return string_format(_(
|
||||
"Strength - %d; Perception - 1; Dexterity - 1;\n"
|
||||
"Depression and physical pain to some degree. Frequent cravings. Vomiting."), strpen);
|
||||
}
|
||||
|
||||
case ADD_SPEED:
|
||||
return "Strength - 1; Intelligence - 1;\n\
|
||||
Movement rate reduction. Depression. Weak immune system. Frequent cravings.";
|
||||
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.";
|
||||
return _("Perception - 1; Intelligence - 1; Frequent cravings.");
|
||||
|
||||
case ADD_CRACK:
|
||||
return "Perception - 2; Intelligence - 2; Frequent cravings.";
|
||||
return _("Perception - 2; Intelligence - 2; Frequent cravings.");
|
||||
default:
|
||||
return "";
|
||||
}
|
||||
|
||||
@@ -10,8 +10,12 @@
|
||||
|
||||
void addict_effect(game *g, addiction &add);
|
||||
|
||||
std::string addiction_type_name(add_type cur);
|
||||
|
||||
std::string addiction_name(addiction cur);
|
||||
|
||||
morale_type addiction_craving(add_type cur);
|
||||
|
||||
add_type addiction_type(std::string name);
|
||||
|
||||
std::string addiction_text(addiction cur);
|
||||
|
||||
+1254
File diff suppressed because it is too large
Load Diff
+124
@@ -0,0 +1,124 @@
|
||||
#ifndef _ADVANCED_INV_H
|
||||
#define _ADVANCED_INV_H_
|
||||
#include "output.h"
|
||||
#include "game.h"
|
||||
#include <string>
|
||||
struct advanced_inv_area {
|
||||
int id;
|
||||
int hscreenx;
|
||||
int hscreeny;
|
||||
int offx;
|
||||
int offy;
|
||||
int x;
|
||||
int y;
|
||||
std::string name;
|
||||
std::string shortname;
|
||||
bool canputitems;
|
||||
vehicle *veh;
|
||||
int vstor;
|
||||
int size;
|
||||
std::string desc;
|
||||
int volume, weight;
|
||||
int max_size, max_volume;
|
||||
};
|
||||
|
||||
// for printing items in environment
|
||||
struct advanced_inv_listitem {
|
||||
int idx;
|
||||
int area;
|
||||
item *it;
|
||||
std::string name;
|
||||
bool autopickup;
|
||||
int stacks;
|
||||
int volume;
|
||||
int weight;
|
||||
int cat;
|
||||
};
|
||||
|
||||
class advanced_inventory_pane {
|
||||
public:
|
||||
int pos;
|
||||
int area, offx, offy, size, vstor; // quick lookup later
|
||||
int index, max_page, max_index, page;
|
||||
std::string area_string;
|
||||
int sortby;
|
||||
int issrc;
|
||||
vehicle *veh;
|
||||
WINDOW *window;
|
||||
std::vector<advanced_inv_listitem> items;
|
||||
int numcats;
|
||||
std::string filter;
|
||||
bool recalc;
|
||||
bool redraw;
|
||||
std::map<std::string, bool> filtercache;
|
||||
advanced_inventory_pane() {
|
||||
offx = 0; offy = 0; size = 0; vstor = -1;
|
||||
index = 0; max_page = 0; max_index = 0; page = 0;
|
||||
area_string = _("Initializing...");
|
||||
sortby = 1; issrc = 0; veh = NULL; window = NULL;
|
||||
items.clear();
|
||||
numcats = 0; filter="";
|
||||
filtercache.clear();
|
||||
}
|
||||
};
|
||||
|
||||
class advanced_inventory
|
||||
{
|
||||
public:
|
||||
game * g;
|
||||
player * p;
|
||||
|
||||
const int head_height;
|
||||
const int min_w_height;
|
||||
const int min_w_width;
|
||||
const int max_w_width;
|
||||
const int left;
|
||||
const int right;
|
||||
const int isinventory;
|
||||
const int isall;
|
||||
|
||||
bool checkshowmsg;
|
||||
bool showmsg;
|
||||
|
||||
int itemsPerPage;
|
||||
int w_height;
|
||||
int w_width;
|
||||
|
||||
int headstart;
|
||||
int colstart;
|
||||
|
||||
// itemsPerPage=getmaxy(left_window)-ADVINVOFS;
|
||||
// todo: awaiting ui::menu // last_tmpdest=-1;
|
||||
bool exit;// = false;
|
||||
bool redraw;// = true;
|
||||
bool recalc;// = true;
|
||||
int lastCh;// = 0;
|
||||
|
||||
int src;// = left; // the active screen , 0 for left , 1 for right.
|
||||
int dest;// = right;
|
||||
int max_inv;// = inv_chars.size() - u.worn.size() - ( u.is_armed() || u.weapon.is_style() ? 1 : 0 );
|
||||
bool examineScroll;// = false;
|
||||
bool filter_edit;
|
||||
|
||||
advanced_inventory_pane panes[2];
|
||||
advanced_inv_area squares[11];
|
||||
|
||||
advanced_inventory() :
|
||||
head_height(5),
|
||||
min_w_height(10),
|
||||
min_w_width(FULL_SCREEN_WIDTH),
|
||||
max_w_width(120),
|
||||
left(0),
|
||||
right(1),
|
||||
isinventory(0),
|
||||
isall(10) {
|
||||
}
|
||||
void display(game *gp, player *pp);
|
||||
void print_items(advanced_inventory_pane &pane, bool active);
|
||||
void recalc_pane(int i);
|
||||
void redraw_pane(int i);
|
||||
void init(game *gp, player *pp);
|
||||
private:
|
||||
};
|
||||
|
||||
#endif
|
||||
@@ -0,0 +1,124 @@
|
||||
#if (!defined SDLTILES)
|
||||
|
||||
#include "game.h"
|
||||
/* Explosion Animation */
|
||||
void game::draw_explosion(int x, int y, int radius, nc_color col)
|
||||
{
|
||||
timespec ts; // Timespec for the animation of the explosion
|
||||
ts.tv_sec = 0;
|
||||
ts.tv_nsec = EXPLOSION_SPEED;
|
||||
for (int i = 1; i <= radius; i++) {
|
||||
mvwputch(w_terrain, y - i + VIEWY - u.posy - u.view_offset_y,
|
||||
x - i + VIEWX - u.posx - u.view_offset_x, col, '/');
|
||||
mvwputch(w_terrain, y - i + VIEWY - u.posy - u.view_offset_y,
|
||||
x + i + VIEWX - u.posx - u.view_offset_x, col,'\\');
|
||||
mvwputch(w_terrain, y + i + VIEWY - u.posy - u.view_offset_y,
|
||||
x - i + VIEWX - u.posx - u.view_offset_x, col,'\\');
|
||||
mvwputch(w_terrain, y + i + VIEWY - u.posy - u.view_offset_y,
|
||||
x + i + VIEWX - u.posx - u.view_offset_x, col, '/');
|
||||
for (int j = 1 - i; j < 0 + i; j++) {
|
||||
mvwputch(w_terrain, y - i + VIEWY - u.posy - u.view_offset_y,
|
||||
x + j + VIEWX - u.posx - u.view_offset_x, col,'-');
|
||||
mvwputch(w_terrain, y + i + VIEWY - u.posy - u.view_offset_y,
|
||||
x + j + VIEWX - u.posx - u.view_offset_x, col,'-');
|
||||
mvwputch(w_terrain, y + j + VIEWY - u.posy - u.view_offset_y,
|
||||
x - i + VIEWX - u.posx - u.view_offset_x, col,'|');
|
||||
mvwputch(w_terrain, y + j + VIEWY - u.posy - u.view_offset_y,
|
||||
x + i + VIEWX - u.posx - u.view_offset_x, col,'|');
|
||||
}
|
||||
wrefresh(w_terrain);
|
||||
nanosleep(&ts, NULL);
|
||||
}
|
||||
}
|
||||
/* Bullet Animation */
|
||||
void game::draw_bullet(player &p, int tx, int ty, int i, std::vector<point> trajectory, char bullet, timespec &ts)
|
||||
{
|
||||
if (u_see(tx, ty)) {
|
||||
if (i > 0)
|
||||
{
|
||||
m.drawsq(w_terrain, u, trajectory[i-1].x, trajectory[i-1].y, false,
|
||||
true, u.posx + u.view_offset_x, u.posy + u.view_offset_y);
|
||||
}
|
||||
/*
|
||||
char bullet = '*';
|
||||
if (is_aflame)
|
||||
bullet = '#';
|
||||
*/
|
||||
mvwputch(w_terrain, ty + VIEWY - u.posy - u.view_offset_y,
|
||||
tx + VIEWX - u.posx - u.view_offset_x, c_red, bullet);
|
||||
wrefresh(w_terrain);
|
||||
if (&p == &u)
|
||||
nanosleep(&ts, NULL);
|
||||
}
|
||||
}
|
||||
/* Monster hit animation */
|
||||
void game::draw_hit_mon(int x, int y, monster m, bool dead)
|
||||
{
|
||||
/*
|
||||
x - u.posx + VIEWX - u.view_offset_x,
|
||||
y - u.posy + VIEWY - u.view_offset_y,
|
||||
*/
|
||||
nc_color cMonColor = m.type->color;
|
||||
char sMonSym = m.symbol();
|
||||
|
||||
hit_animation(x + VIEWX - u.posx - u.view_offset_x,
|
||||
y + VIEWY - u.posy - u.view_offset_y,
|
||||
red_background(cMonColor), dead?'%':sMonSym);
|
||||
}
|
||||
/* Player hit animation */
|
||||
void game::draw_hit_player(player *p, bool dead)
|
||||
{
|
||||
hit_animation(p->posx + VIEWX - u.posx - u.view_offset_x,
|
||||
p->posy + VIEWY - u.posy - u.view_offset_y,
|
||||
red_background(p->color()), '@');
|
||||
}
|
||||
/* Line drawing code, not really an animation but should be separated anyway */
|
||||
|
||||
void game::draw_line(const int x, const int y, const point center_point, std::vector<point> ret)
|
||||
{
|
||||
if (u_see( x, y))
|
||||
{
|
||||
for (int i = 0; i < ret.size(); i++)
|
||||
{
|
||||
int mondex = mon_at(ret[i].x, ret[i].y),
|
||||
npcdex = npc_at(ret[i].x, ret[i].y);
|
||||
|
||||
// NPCs and monsters get drawn with inverted colors
|
||||
if (mondex != -1 && u_see(&(_z[mondex])))
|
||||
{
|
||||
_z[mondex].draw(w_terrain, center_point.x, center_point.y, true);
|
||||
}
|
||||
else if (npcdex != -1)
|
||||
{
|
||||
active_npc[npcdex]->draw(w_terrain, center_point.x, center_point.y, true);
|
||||
}
|
||||
else
|
||||
{
|
||||
m.drawsq(w_terrain, u, ret[i].x, ret[i].y, true,true,center_point.x, center_point.y);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
void game::draw_line(const int x, const int y, std::vector<point> vPoint)
|
||||
{
|
||||
for (int i = 1; i < vPoint.size(); i++)
|
||||
{
|
||||
m.drawsq(w_terrain, u, vPoint[i-1].x, vPoint[i-1].y, true, true);
|
||||
}
|
||||
|
||||
mvwputch(w_terrain, vPoint[vPoint.size()-1].y + VIEWY - u.posy - u.view_offset_y,
|
||||
vPoint[vPoint.size()-1].x + VIEWX - u.posx - u.view_offset_x, c_white, 'X');
|
||||
}
|
||||
//*/
|
||||
void game::draw_weather(weather_printable wPrint)
|
||||
{
|
||||
for (std::vector<std::pair<int, int> >::iterator weather_iterator = wPrint.vdrops.begin();
|
||||
weather_iterator != wPrint.vdrops.end();
|
||||
++weather_iterator)
|
||||
{
|
||||
mvwputch(w_terrain, weather_iterator->second, weather_iterator->first, wPrint.colGlyph, wPrint.cGlyph);
|
||||
}
|
||||
|
||||
//mvwputch(w_terrain, iRandY, iRandX, colGlyph, cGlyph);
|
||||
}
|
||||
#endif
|
||||
@@ -0,0 +1,246 @@
|
||||
#if (defined SDLTILES)
|
||||
|
||||
#include "game.h"
|
||||
#include "debug.h"
|
||||
#include "cata_tiles.h" // all animation functions will be pushed out to a cata_tiles function in some manner
|
||||
|
||||
extern cata_tiles *tilecontext; // obtained from sdltiles.cpp
|
||||
extern int fontheight;
|
||||
extern int fontwidth;
|
||||
|
||||
/* Tiles version of Explosion Animation */
|
||||
void game::draw_explosion(int x, int y, int radius, nc_color col)
|
||||
{
|
||||
timespec ts; // Timespec for the animation of the explosion
|
||||
ts.tv_sec = 0;
|
||||
ts.tv_nsec = EXPLOSION_SPEED;
|
||||
// added offset values to keep from calculating the same value over and over again.
|
||||
const int offset_x = VIEWX - u.posx - u.view_offset_x;
|
||||
const int offset_y = VIEWY - u.posy - u.view_offset_y;
|
||||
|
||||
for (int i = 1; i <= radius; i++) {
|
||||
mvwputch(w_terrain, y - i + offset_y,
|
||||
x - i + offset_x, col, '/');
|
||||
mvwputch(w_terrain, y - i + offset_y,
|
||||
x + i + offset_x, col,'\\');
|
||||
mvwputch(w_terrain, y + i + offset_y,
|
||||
x - i + offset_x, col,'\\');
|
||||
mvwputch(w_terrain, y + i + offset_y,
|
||||
x + i + offset_x, col, '/');
|
||||
for (int j = 1 - i; j < 0 + i; j++) {
|
||||
mvwputch(w_terrain, y - i + offset_y,
|
||||
x + j + offset_x, col,'-');
|
||||
mvwputch(w_terrain, y + i + offset_y,
|
||||
x + j + offset_x, col,'-');
|
||||
mvwputch(w_terrain, y + j + offset_y,
|
||||
x - i + offset_x, col,'|');
|
||||
mvwputch(w_terrain, y + j + offset_y,
|
||||
x + i + offset_x, col,'|');
|
||||
}
|
||||
tilecontext->init_explosion(x, y, i);
|
||||
//tilecontext->draw_explosion_frame(x, y, radius, offset_x, offset_y);
|
||||
|
||||
wrefresh(w_terrain);
|
||||
nanosleep(&ts, NULL);
|
||||
}
|
||||
tilecontext->void_explosion();
|
||||
}
|
||||
/* Bullet Animation -- Maybe change this to animate the ammo itself flying through the air?*/
|
||||
// need to have a version where there is no player defined, possibly. That way shrapnel works as intended
|
||||
void game::draw_bullet(player &p, int tx, int ty, int i, std::vector<point> trajectory, char bullet_char, timespec &ts)
|
||||
{
|
||||
if (u_see(tx, ty)) {
|
||||
std::string bullet;// = "animation_bullet_normal";
|
||||
switch(bullet_char)
|
||||
{
|
||||
case '*': bullet = "animation_bullet_normal"; break;
|
||||
case '#': bullet = "animation_bullet_flame"; break;
|
||||
case '`': bullet = "animation_bullet_shrapnel"; break;
|
||||
}
|
||||
|
||||
mvwputch(w_terrain, ty + VIEWY - u.posy - u.view_offset_y,
|
||||
tx + VIEWX - u.posx - u.view_offset_x, c_red, bullet_char);
|
||||
// pass to tilecontext
|
||||
tilecontext->init_draw_bullet(tx, ty, bullet);
|
||||
wrefresh(w_terrain);
|
||||
if (&p == &u)
|
||||
nanosleep(&ts, NULL);
|
||||
tilecontext->void_bullet();
|
||||
}
|
||||
}
|
||||
/* Monster hit animation */
|
||||
void game::draw_hit_mon(int x, int y, monster m, bool dead)
|
||||
{
|
||||
if (use_tiles)
|
||||
{
|
||||
//int iTimeout = 0;
|
||||
tilecontext->init_draw_hit(x, y, monster_names[m.type->id]);
|
||||
wrefresh(w_terrain);
|
||||
|
||||
timespec tspec;
|
||||
tspec.tv_sec = 0;
|
||||
tspec.tv_nsec = BULLET_SPEED;
|
||||
|
||||
nanosleep(&tspec, NULL);
|
||||
/*
|
||||
nc_color cMonColor = m.type->color;
|
||||
char sMonSym = m.symbol();
|
||||
hit_animation(x,
|
||||
y,
|
||||
red_background(cMonColor), dead?'%':sMonSym);
|
||||
*/
|
||||
/*
|
||||
x + VIEWX - u.posx - u.view_offset_x,
|
||||
y + VIEWY - u.posy - u.view_offset_y,
|
||||
*/
|
||||
mvwputch(w_terrain,
|
||||
x + VIEWX - u.posx - u.view_offset_x,
|
||||
y + VIEWY - u.posy - u.view_offset_y,
|
||||
c_white, ' ');
|
||||
wrefresh(w_terrain);
|
||||
}
|
||||
else
|
||||
{
|
||||
nc_color cMonColor = m.type->color;
|
||||
char sMonSym = m.symbol();
|
||||
|
||||
hit_animation(x + VIEWX - u.posx - u.view_offset_x,
|
||||
y + VIEWY - u.posy - u.view_offset_y,
|
||||
red_background(cMonColor), dead?'%':sMonSym);
|
||||
}
|
||||
}
|
||||
/* Player hit animation */
|
||||
void game::draw_hit_player(player *p, bool dead)
|
||||
{
|
||||
if (use_tiles)
|
||||
{
|
||||
// get base name of player id
|
||||
std::string pname = (p->is_npc()?"npc_":"player_");
|
||||
// get sex of player
|
||||
pname += (p->male?"male":"female");
|
||||
|
||||
tilecontext->init_draw_hit(p->posx, p->posy, pname);
|
||||
wrefresh(w_terrain);
|
||||
|
||||
timespec tspec;
|
||||
tspec.tv_sec = 0;
|
||||
tspec.tv_nsec = BULLET_SPEED;
|
||||
|
||||
nanosleep(&tspec, NULL);
|
||||
/*
|
||||
hit_animation(p->posx - g->u.posx + VIEWX - g->u.view_offset_x,
|
||||
p->posy - g->u.posy + VIEWY - g->u.view_offset_y,
|
||||
red_background(p->color()), '@');
|
||||
*/
|
||||
/*
|
||||
if (iTimeout <= 0 || iTimeout > 999) {
|
||||
iTimeout = 70;
|
||||
}
|
||||
|
||||
timeout(iTimeout);
|
||||
getch(); //useing this, because holding down a key with nanosleep can get yourself killed
|
||||
timeout(-1);
|
||||
*/
|
||||
mvwputch(w_terrain,
|
||||
p->posx + VIEWX - u.posx - u.view_offset_x,
|
||||
p->posy + VIEWY - u.posy - u.view_offset_y,
|
||||
c_white, ' ');
|
||||
wrefresh(w_terrain);
|
||||
}
|
||||
else
|
||||
{
|
||||
hit_animation(p->posx + VIEWX - u.posx - u.view_offset_x,
|
||||
p->posy + VIEWY - u.posy - u.view_offset_y,
|
||||
red_background(p->color()), '@');
|
||||
}
|
||||
}
|
||||
|
||||
/* Line drawing code, not really an animation but should be separated anyway */
|
||||
|
||||
void game::draw_line(const int x, const int y, const point center_point, std::vector<point> ret)
|
||||
{
|
||||
if (u_see( x, y))
|
||||
{
|
||||
for (int i = 0; i < ret.size(); i++)
|
||||
{
|
||||
int mondex = mon_at(ret[i].x, ret[i].y),
|
||||
npcdex = npc_at(ret[i].x, ret[i].y);
|
||||
|
||||
// NPCs and monsters get drawn with inverted colors
|
||||
if (mondex != -1 && u_see(&(_z[mondex])))
|
||||
{
|
||||
_z[mondex].draw(w_terrain, center_point.x, center_point.y, true);
|
||||
}
|
||||
else if (npcdex != -1)
|
||||
{
|
||||
active_npc[npcdex]->draw(w_terrain, center_point.x, center_point.y, true);
|
||||
}
|
||||
else
|
||||
{
|
||||
m.drawsq(w_terrain, u, ret[i].x, ret[i].y, true,true,center_point.x, center_point.y);
|
||||
}
|
||||
}
|
||||
}
|
||||
tilecontext->init_draw_line(x,y,ret,"line_target", true);
|
||||
}
|
||||
|
||||
void game::draw_line(const int x, const int y, std::vector<point> vPoint)
|
||||
{
|
||||
for (int i = 1; i < vPoint.size(); i++)
|
||||
{
|
||||
m.drawsq(w_terrain, u, vPoint[i-1].x, vPoint[i-1].y, true, true);
|
||||
}
|
||||
|
||||
mvwputch(w_terrain, vPoint[vPoint.size()-1].y + VIEWY - u.posy - u.view_offset_y,
|
||||
vPoint[vPoint.size()-1].x + VIEWX - u.posx - u.view_offset_x, c_white, 'X');
|
||||
|
||||
tilecontext->init_draw_line(x,y,vPoint,"line_trail", false);
|
||||
}
|
||||
//*/
|
||||
void game::draw_weather(weather_printable wPrint)
|
||||
{
|
||||
if (use_tiles)
|
||||
{
|
||||
std::string weather_name;
|
||||
/*
|
||||
WEATHER_ACID_DRIZZLE | WEATHER_ACID_RAIN = "weather_acid_drop"
|
||||
WEATHER_DRIZZLE | WEATHER_RAINY | WEATHER_THUNDER | WEATHER_LIGHTNING = "weather_rain_drop"
|
||||
WEATHER_SNOW | WEATHER_SNOWSTORM = "weather_snowflake"
|
||||
*/
|
||||
switch(wPrint.wtype)
|
||||
{
|
||||
// Acid weathers, uses acid droplet tile, fallthrough intended
|
||||
case WEATHER_ACID_DRIZZLE:
|
||||
case WEATHER_ACID_RAIN: weather_name = "weather_acid_drop"; break;
|
||||
// Normal rainy weathers, uses normal raindrop tile, fallthrough intended
|
||||
case WEATHER_DRIZZLE:
|
||||
case WEATHER_RAINY:
|
||||
case WEATHER_THUNDER:
|
||||
case WEATHER_LIGHTNING: weather_name = "weather_rain_drop"; break;
|
||||
// Snowy weathers, uses snowflake tile, fallthrough intended
|
||||
case WEATHER_SNOW:
|
||||
case WEATHER_SNOWSTORM: weather_name = "weather_snowflake"; break;
|
||||
}
|
||||
/*
|
||||
// may have been the culprit of slowdown. Seems to be the same speed now for both weathered and non-weathered display
|
||||
for (std::vector<std::pair<int, int> >::iterator weather_iterator = wPrint.vdrops.begin();
|
||||
weather_iterator != wPrint.vdrops.end();
|
||||
++weather_iterator)
|
||||
{
|
||||
mvwputch(w_terrain, weather_iterator->second, weather_iterator->first, wPrint.colGlyph, wPrint.cGlyph);
|
||||
|
||||
}
|
||||
*/
|
||||
tilecontext->init_draw_weather(wPrint, weather_name);
|
||||
}
|
||||
else
|
||||
{
|
||||
for (std::vector<std::pair<int, int> >::iterator weather_iterator = wPrint.vdrops.begin();
|
||||
weather_iterator != wPrint.vdrops.end();
|
||||
++weather_iterator)
|
||||
{
|
||||
mvwputch(w_terrain, weather_iterator->second, weather_iterator->first, wPrint.colGlyph, wPrint.cGlyph);
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
+358
-334
@@ -90,268 +90,288 @@ int active_effect_cost[NUM_AEAS] = {
|
||||
-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, 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}}
|
||||
};
|
||||
|
||||
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, 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 Cov Thk Env Wrm Sto Bsh Cut Hit
|
||||
{"Robe", c_red, WOOL, MNULL, 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,MNULL, 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, MNULL, 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, MNULL, 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,MNULL, 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, MNULL, 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, MNULL, 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, 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 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, 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, 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, MNULL,
|
||||
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, MNULL,
|
||||
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"
|
||||
};
|
||||
|
||||
//see below, move them so gettext and be applied properly
|
||||
artifact_shape_datum artifact_shape_data[ARTSHAPE_MAX];
|
||||
artifact_property_datum artifact_property_data[ARTPROP_MAX];
|
||||
artifact_tool_form_datum artifact_tool_form_data[NUM_ARTTOOLFORMS];
|
||||
artifact_weapon_datum artifact_weapon_data[NUM_ARTWEAPS];
|
||||
artifact_armor_form_datum artifact_armor_form_data[NUM_ARTARMFORMS];
|
||||
artifact_armor_form_datum artifact_armor_mod_data[NUM_ARMORMODS];
|
||||
std::string artifact_adj[NUM_ART_ADJS];
|
||||
std::string artifact_noun[NUM_ART_NOUNS];
|
||||
std::string artifact_name(std::string type);
|
||||
|
||||
void game::init_artifacts()
|
||||
{
|
||||
artifact_shape_datum tmp_artifact_shape_data[ARTSHAPE_MAX] = {
|
||||
{"BUG", "BUG", 0, 0, 0, 0},
|
||||
{_("sphere"), _("smooth sphere"), 2, 4, 1, 1150},
|
||||
{_("rod"), _("tapered rod"), 1, 7, 1, 800},
|
||||
{_("teardrop"), _("teardrop-shaped stone"), 2, 6, 1, 950},
|
||||
{_("lamp"), _("hollow, transparent cube"), 4, 9, 1, 350},
|
||||
{_("snake"), _("winding, flexible rod"), 0, 8, 1, 950},
|
||||
{_("disc"), _("smooth disc"), 4, 6, 200, 400},
|
||||
{_("beads"), _("string of beads"), 3, 7, 1, 700},
|
||||
{_("napkin"), _("very thin sheet"), 0, 3, 1, 350},
|
||||
{_("urchin"), _("spiked sphere"), 3, 5, 200, 700},
|
||||
{_("jelly"), _("malleable blob"), 2, 8, 200, 450},
|
||||
{_("spiral"), _("spiraling rod"), 5, 6, 200, 350},
|
||||
{_("pin"), _("pointed rod"), 1, 5, 100, 1050},
|
||||
{_("tube"), _("hollow tube"), 2, 5, 350, 700},
|
||||
{_("pyramid"), _("regular tetrahedron"), 3, 7, 200, 450},
|
||||
{_("crystal"), _("translucent crystal"), 1, 6, 200, 800},
|
||||
{_("knot"), _("twisted, knotted cord"), 2, 6, 100, 800},
|
||||
{_("crescent"), _("crescent-shaped stone"), 2, 6, 200, 700}
|
||||
};
|
||||
for(int i=0;i<ARTSHAPE_MAX;i++) {artifact_shape_data[i]=tmp_artifact_shape_data[i];}
|
||||
|
||||
artifact_property_datum tmp_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}
|
||||
}
|
||||
};
|
||||
for(int i=0;i<ARTPROP_MAX;i++) {artifact_property_data[i]=tmp_artifact_property_data[i];}
|
||||
|
||||
artifact_tool_form_datum tmp_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, 1150, 2100, ARTWEAP_BULK,
|
||||
{ARTWEAP_SPEAR, ARTWEAP_SWORD, ARTWEAP_KNIFE}},
|
||||
|
||||
{_("Staff"), '/', c_brown, "wood", "null", 6, 12, 450, 1150, ARTWEAP_CLUB,
|
||||
{ARTWEAP_BULK, ARTWEAP_SPEAR, ARTWEAP_KNIFE}},
|
||||
|
||||
{_("Sword"), '/', c_ltblue, "steel", "null", 8, 14, 900, 3259, ARTWEAP_SWORD,
|
||||
{ARTWEAP_BULK, ARTWEAP_NULL, ARTWEAP_NULL}},
|
||||
|
||||
{_("Dagger"), ';', c_ltblue, "steel", "null", 1, 4, 100, 700, ARTWEAP_KNIFE,
|
||||
{ARTWEAP_NULL, ARTWEAP_NULL, ARTWEAP_NULL}},
|
||||
|
||||
{_("Cube"), '*', c_white, "steel", "null", 1, 3, 100, 2300, ARTWEAP_BULK,
|
||||
{ARTWEAP_SPEAR, ARTWEAP_NULL, ARTWEAP_NULL}}
|
||||
};
|
||||
for(int i=0;i<NUM_ARTTOOLFORMS;i++) {artifact_tool_form_data[i]=tmp_artifact_tool_form_data[i];}
|
||||
|
||||
artifact_weapon_datum tmp_artifact_weapon_data[NUM_ARTWEAPS] = {
|
||||
{"", 0, 0, 0, 0, 0, 0, 0, 0, ""},
|
||||
// Adjective Vol,wgt Bash Cut To-Hit tags
|
||||
{_("Heavy"), 0,1400, 10, 20, 0, 0, -2, 0,
|
||||
""},
|
||||
{_("Knobbed"), 1,250, 14, 30, 0, 0, -1, 1,
|
||||
""},
|
||||
{_("Spiked"), 1,100, 0, 0, 20, 40, -1, 1,
|
||||
"SPEAR"},
|
||||
{_("Edged"), 2,450, 0, 0, 20, 50, -1, 2,
|
||||
""},
|
||||
{_("Bladed"), 1,2250, 0, 0, 12, 30, -1, 1,
|
||||
"STAB"}
|
||||
};
|
||||
for(int i=0;i<NUM_ARTWEAPS;i++) {artifact_weapon_data[i]=tmp_artifact_weapon_data[i];}
|
||||
|
||||
artifact_armor_form_datum tmp_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, 700, 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, 1600, 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, 100, 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, 700, 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, 100, 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, 250, 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, 4, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, true,
|
||||
{ARMORMOD_NULL, ARMORMOD_NULL, ARMORMOD_NULL, ARMORMOD_NULL, ARMORMOD_NULL}}
|
||||
|
||||
};
|
||||
for(int i=0;i<NUM_ARTARMFORMS;i++) {artifact_armor_form_data[i]=tmp_artifact_armor_form_data[i];}
|
||||
|
||||
artifact_armor_form_datum tmp_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, -950, -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, 1150, 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, 150, 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, 250, 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, 450, 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, 1400, 3, 2, 2, 0, 1, -4, 0, 0, 0, 0, false,
|
||||
{ARMORMOD_NULL, ARMORMOD_NULL, ARMORMOD_NULL, ARMORMOD_NULL, ARMORMOD_NULL}},
|
||||
|
||||
};
|
||||
for(int i=0;i<NUM_ARMORMODS;i++) {artifact_armor_mod_data[i]=tmp_artifact_armor_mod_data[i];}
|
||||
|
||||
std::string tmp_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")
|
||||
};
|
||||
for(int i=0;i<NUM_ART_ADJS;i++) {artifact_adj[i]=tmp_artifact_adj[i];}
|
||||
|
||||
std::string tmp_artifact_noun[NUM_ART_NOUNS] = {
|
||||
_("%s Technique"), _("%s Dreams"), _("%s Beasts"), _("%s Evil"), _("%s Miasma"),
|
||||
_("the %s Abyss"), _("the %s City"), _("%s Shadows"), _("%s Shade"), _("%s Illusion"),
|
||||
_("%s Justice"), _("the %s Necropolis"), _("%s Ichor"), _("the %s Monolith"), _("%s Aeons"),
|
||||
_("%s Graves"), _("%s Horrors"), _("%s Suffering"), _("%s Death"), _("%s Horror")
|
||||
};
|
||||
for(int i=0;i<NUM_ART_NOUNS;i++) {artifact_noun[i]=tmp_artifact_noun[i];}
|
||||
|
||||
}
|
||||
|
||||
itype* game::new_artifact()
|
||||
{
|
||||
if (one_in(2)) { // Generate a "tool" artifact
|
||||
@@ -393,12 +413,7 @@ itype* game::new_artifact()
|
||||
art->name = artifact_name(newname.str());
|
||||
}
|
||||
}
|
||||
|
||||
std::stringstream description;
|
||||
description << "This is the " << art->name << ".\n\
|
||||
It is the only one of its kind.\n\
|
||||
It may have unknown powers; use 'a' to activate them.";
|
||||
art->description = description.str();
|
||||
art->description = string_format(_("This is the %s.\nIt is the only one of its kind.\nIt may have unknown powers; use 'a' to activate them."), art->name.c_str());
|
||||
|
||||
// Finally, pick some powers
|
||||
art_effect_passive passive_tmp = AEP_NULL;
|
||||
@@ -515,9 +530,10 @@ It may have unknown powers; use 'a' to activate them.";
|
||||
art->warmth = info->warmth;
|
||||
art->storage = info->storage;
|
||||
std::stringstream description;
|
||||
description << "This is the " << art->name << ".\n" <<
|
||||
(info->plural ? "They are the only ones of their kind." :
|
||||
"It is the only one of its kind.");
|
||||
description << string_format(info->plural?
|
||||
_("This is the %s.\nThey are the only ones of their kind.") :
|
||||
_("This is the %s.\nIt is the only one of its kind."),
|
||||
art->name.c_str());
|
||||
|
||||
// Modify the armor further
|
||||
if (!one_in(4)) {
|
||||
@@ -558,8 +574,10 @@ It may have unknown powers; use 'a' to activate them.";
|
||||
else
|
||||
art->storage = 0;
|
||||
|
||||
description << "\n" << (info->plural ? "They are " : "It is ") <<
|
||||
modinfo->name;
|
||||
description << string_format(info->plural?
|
||||
_("\nThey are %s") :
|
||||
_("\nIt is %s"),
|
||||
modinfo->name.c_str());
|
||||
}
|
||||
}
|
||||
|
||||
@@ -590,8 +608,10 @@ It may have unknown powers; use 'a' to activate them.";
|
||||
art->effects_worn.push_back(passive_tmp);
|
||||
}
|
||||
|
||||
art->id = itypes.size();
|
||||
itypes[art->id]=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;
|
||||
}
|
||||
@@ -612,19 +632,19 @@ 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->name = property_data->name + " " + shape_data->name;
|
||||
std::stringstream desc;
|
||||
desc << "This " << shape_data->desc << " " << property_data->desc << ".";
|
||||
art->description = desc.str();
|
||||
art->name = rmp_format(_("<artifact_name>%1$s %2$s"), property_data->name.c_str(), shape_data->name.c_str());
|
||||
art->description = rmp_format(_("<artifact_desc>This %1$s %2$s."), shape_data->desc.c_str(), property_data->desc.c_str());
|
||||
|
||||
// Add line breaks to the description as necessary
|
||||
/*
|
||||
size_t pos = 76;
|
||||
while (art->description.length() - pos >= 76) {
|
||||
pos = art->description.find_last_of(' ', pos);
|
||||
@@ -634,7 +654,7 @@ itype* game::new_natural_artifact(artifact_natural_property prop)
|
||||
art->description[pos] = '\n';
|
||||
pos += 76;
|
||||
}
|
||||
}
|
||||
}*/
|
||||
|
||||
// Three possibilities: good passive + bad passive, good active + bad active,
|
||||
// and bad passive + good active
|
||||
@@ -704,9 +724,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();
|
||||
std::stringstream artid;
|
||||
artid << "artifact" << artifact_itype_ids.size();
|
||||
art->id = artid.str();
|
||||
artifact_itype_ids.push_back(art->id);
|
||||
itypes[art->id]=art;
|
||||
itypes[art->id] = art;
|
||||
return art;
|
||||
}
|
||||
|
||||
@@ -744,15 +766,13 @@ std::vector<art_effect_active> fill_bad_active()
|
||||
|
||||
std::string artifact_name(std::string type)
|
||||
{
|
||||
std::stringstream ret;
|
||||
ret << type << " of ";
|
||||
std::string ret;
|
||||
const char *fmtstr = _("<artifact_name>%1$s of %2$s");
|
||||
std::string noun = artifact_noun[rng(0, NUM_ART_NOUNS - 1)];
|
||||
if (noun[0] == '+') {
|
||||
ret << "the ";
|
||||
noun = noun.substr(1); // Chop off '+'
|
||||
}
|
||||
ret << artifact_adj[rng(0, NUM_ART_ADJS - 1)] << " " << noun;
|
||||
return ret.str();
|
||||
std::string adj = artifact_adj[rng(0, NUM_ART_ADJS - 1)];
|
||||
ret = string_format(noun.c_str(), adj.c_str());
|
||||
ret = rmp_format(fmtstr, type.c_str(),ret.c_str());
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
||||
@@ -783,14 +803,14 @@ void game::process_artifact(item *it, player *p, bool wielded)
|
||||
break;
|
||||
case ARTC_PAIN:
|
||||
if (turn.seconds() == 0) {
|
||||
add_msg("You suddenly feel sharp pain for no reason.");
|
||||
add_msg(_("You suddenly feel sharp pain for no reason."));
|
||||
p->pain += 3 * rng(1, 3);
|
||||
it->charges++;
|
||||
}
|
||||
break;
|
||||
case ARTC_HP:
|
||||
if (turn.seconds() == 0) {
|
||||
add_msg("You feel your body decaying.");
|
||||
add_msg(_("You feel your body decaying."));
|
||||
p->hurtall(1);
|
||||
it->charges++;
|
||||
}
|
||||
@@ -831,7 +851,7 @@ void game::process_artifact(item *it, player *p, bool wielded)
|
||||
if (one_in(10)) {
|
||||
int x = p->posx + rng(-1, 1), y = p->posy + rng(-1, 1);
|
||||
if (m.add_field(this, x, y, fd_smoke, rng(1, 3)))
|
||||
add_msg("The %s emits some smoke.", it->tname().c_str());
|
||||
add_msg(_("The %s emits some smoke."), it->tname().c_str());
|
||||
}
|
||||
break;
|
||||
|
||||
@@ -841,15 +861,16 @@ 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);
|
||||
else
|
||||
m.field_at(x, y).density--;
|
||||
}
|
||||
field &fire_field = m.field_at(x, y);
|
||||
if (fire_field.findField(fd_fire)) {
|
||||
if (fire_field.findField(fd_fire)->getFieldDensity() == 0) {
|
||||
m.remove_field(x, y, fd_fire);
|
||||
} else {
|
||||
fire_field.findField(fd_fire)->setFieldDensity(fire_field.findField(fd_fire)->getFieldDensity() - 1);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
||||
case AEP_HUNGER:
|
||||
if (one_in(100))
|
||||
@@ -863,10 +884,9 @@ 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());
|
||||
add_msg((it->is_armor() ? _("You have an urge to wear the %s.") : _("You have an urge to wield the %s.")), it->tname().c_str());
|
||||
}
|
||||
break;
|
||||
|
||||
@@ -936,96 +956,100 @@ void game::add_artifact_messages(std::vector<art_effect_passive> effects)
|
||||
break; // No message
|
||||
|
||||
case AEP_SNAKES:
|
||||
add_msg("Your skin feels slithery.");
|
||||
add_msg(_("Your skin feels slithery."));
|
||||
break;
|
||||
|
||||
case AEP_INVISIBLE:
|
||||
add_msg("You fade into invisibility!");
|
||||
add_msg(_("You fade into invisibility!"));
|
||||
break;
|
||||
|
||||
case AEP_CLAIRVOYANCE:
|
||||
add_msg("You can see through walls!");
|
||||
add_msg(_("You can see through walls!"));
|
||||
break;
|
||||
|
||||
case AEP_SUPER_CLAIRVOYANCE:
|
||||
add_msg("You can see through everything!");
|
||||
add_msg(_("You can see through everything!"));
|
||||
break;
|
||||
|
||||
case AEP_STEALTH:
|
||||
add_msg("Your steps stop making noise.");
|
||||
add_msg(_("Your steps stop making noise."));
|
||||
break;
|
||||
|
||||
case AEP_GLOW:
|
||||
add_msg("A glow of light forms around you.");
|
||||
add_msg(_("A glow of light forms around you."));
|
||||
break;
|
||||
|
||||
case AEP_PSYSHIELD:
|
||||
add_msg("Your mental state feels protected.");
|
||||
add_msg(_("Your mental state feels protected."));
|
||||
break;
|
||||
|
||||
case AEP_RESIST_ELECTRICITY:
|
||||
add_msg("You feel insulated.");
|
||||
add_msg(_("You feel insulated."));
|
||||
break;
|
||||
|
||||
case AEP_CARRY_MORE:
|
||||
add_msg("Your back feels strengthened.");
|
||||
add_msg(_("Your back feels strengthened."));
|
||||
break;
|
||||
|
||||
case AEP_HUNGER:
|
||||
add_msg("You feel hungry.");
|
||||
add_msg(_("You feel hungry."));
|
||||
break;
|
||||
|
||||
case AEP_THIRST:
|
||||
add_msg("You feel thirsty.");
|
||||
add_msg(_("You feel thirsty."));
|
||||
break;
|
||||
|
||||
case AEP_EVIL:
|
||||
add_msg("You feel an evil presence...");
|
||||
add_msg(_("You feel an evil presence..."));
|
||||
break;
|
||||
|
||||
case AEP_SCHIZO:
|
||||
add_msg("You feel a tickle of insanity.");
|
||||
add_msg(_("You feel a tickle of insanity."));
|
||||
break;
|
||||
|
||||
case AEP_RADIOACTIVE:
|
||||
add_msg("Your skin prickles with radiation.");
|
||||
add_msg(_("Your skin prickles with radiation."));
|
||||
break;
|
||||
|
||||
case AEP_MUTAGENIC:
|
||||
add_msg("You feel your genetic makeup degrading.");
|
||||
add_msg(_("You feel your genetic makeup degrading."));
|
||||
break;
|
||||
|
||||
case AEP_ATTENTION:
|
||||
add_msg("You feel an otherworldly attention upon you...");
|
||||
add_msg(_("You feel an otherworldly attention upon you..."));
|
||||
break;
|
||||
|
||||
case AEP_FORCE_TELEPORT:
|
||||
add_msg("You feel a force pulling you inwards.");
|
||||
add_msg(_("You feel a force pulling you inwards."));
|
||||
break;
|
||||
|
||||
case AEP_MOVEMENT_NOISE:
|
||||
add_msg("You hear a rattling noise coming from inside yourself.");
|
||||
add_msg(_("You hear a rattling noise coming from inside yourself."));
|
||||
break;
|
||||
|
||||
case AEP_BAD_WEATHER:
|
||||
add_msg("You feel storms coming.");
|
||||
add_msg(_("You feel storms coming."));
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
std::stringstream stat_info;
|
||||
if (net_str != 0)
|
||||
stat_info << "Str " << (net_str > 0 ? "+" : "") << net_str << "! ";
|
||||
if (net_dex != 0)
|
||||
stat_info << "Dex " << (net_dex > 0 ? "+" : "") << net_dex << "! ";
|
||||
if (net_int != 0)
|
||||
stat_info << "Int " << (net_int > 0 ? "+" : "") << net_int << "! ";
|
||||
if (net_per != 0)
|
||||
stat_info << "Per " << (net_per > 0 ? "+" : "") << net_per << "! ";
|
||||
std::string stat_info = "";
|
||||
if (net_str != 0) {
|
||||
stat_info += string_format(_("Str %s%d! "), (net_str > 0 ? "+" : ""), net_str);
|
||||
}
|
||||
if (net_dex != 0) {
|
||||
stat_info += string_format( _("Dex %s%d! "), (net_dex > 0 ? "+" : ""), net_dex);
|
||||
}
|
||||
if (net_int != 0) {
|
||||
stat_info += string_format(_("Int %s%d! "), (net_int > 0 ? "+" : ""), net_int);
|
||||
}
|
||||
if (net_per != 0) {
|
||||
stat_info += string_format(_("Per %s%d! "), (net_per > 0 ? "+" : ""), net_per);
|
||||
}
|
||||
|
||||
if (stat_info.str().length() > 0)
|
||||
add_msg(stat_info.str().c_str());
|
||||
if (stat_info.length() > 0)
|
||||
add_msg(stat_info.c_str());
|
||||
|
||||
if (net_speed != 0)
|
||||
add_msg("Speed %s%d", (net_speed > 0 ? "+" : ""), net_speed);
|
||||
add_msg(_("Speed %s%d! "), (net_speed > 0 ? "+" : ""), net_speed);
|
||||
}
|
||||
|
||||
+7
-7
@@ -48,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;
|
||||
@@ -57,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),
|
||||
@@ -108,8 +108,8 @@ 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 coverage;
|
||||
@@ -125,7 +125,7 @@ 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])
|
||||
@@ -154,7 +154,7 @@ enum artifact_armor_form
|
||||
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.
|
||||
*/
|
||||
extern artifact_armor_form_datum artifact_armor_mod_data[NUM_ARMORMODS];
|
||||
|
||||
+796
@@ -0,0 +1,796 @@
|
||||
#include "game.h"
|
||||
#include "auto_pickup.h"
|
||||
#include "output.h"
|
||||
#include "debug.h"
|
||||
#include "keypress.h"
|
||||
#include "item_factory.h"
|
||||
#include "catacharset.h"
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <fstream>
|
||||
#include <string>
|
||||
|
||||
std::map<std::string, std::string> mapAutoPickupItems;
|
||||
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);
|
||||
|
||||
int tmpx = 0;
|
||||
tmpx += shortcut_print(w_auto_pickup_header, 0, tmpx, c_white, c_ltgreen, _("<A>dd"))+2;
|
||||
tmpx += shortcut_print(w_auto_pickup_header, 0, tmpx, c_white, c_ltgreen, _("<R>emove"))+2;
|
||||
tmpx += shortcut_print(w_auto_pickup_header, 0, tmpx, c_white, c_ltgreen, _("<C>opy"))+2;
|
||||
tmpx += shortcut_print(w_auto_pickup_header, 0, tmpx, c_white, c_ltgreen, _("<M>ove"))+2;
|
||||
tmpx += shortcut_print(w_auto_pickup_header, 0, tmpx, c_white, c_ltgreen, _("<E>nable"))+2;
|
||||
tmpx += shortcut_print(w_auto_pickup_header, 0, tmpx, c_white, c_ltgreen, _("<D>isable"))+2;
|
||||
tmpx += shortcut_print(w_auto_pickup_header, 0, tmpx, c_white, c_ltgreen, _("<T>est"))+2;
|
||||
tmpx = 0;
|
||||
tmpx += shortcut_print(w_auto_pickup_header, 1, tmpx, c_white, c_ltgreen, _("<+-> Move up/down"))+2;
|
||||
tmpx += shortcut_print(w_auto_pickup_header, 1, tmpx, c_white, c_ltgreen, _("<Enter>-Edit"))+2;
|
||||
tmpx += shortcut_print(w_auto_pickup_header, 1, tmpx, c_white, c_ltgreen, _("<Tab>-Switch Page"))+2;
|
||||
|
||||
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 {
|
||||
int locx = 17;
|
||||
locx += shortcut_print(w_auto_pickup_header, 2, locx, c_white, (iCurrentPage == 1) ? hilite(c_white) : c_white, _("[<Global>]"))+1;
|
||||
locx = shortcut_print(w_auto_pickup_header, 2, locx, c_white, (iCurrentPage == 2) ? hilite(c_white) : c_white, _("[<Character>]"))+1;
|
||||
|
||||
/*
|
||||
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!"));
|
||||
}
|
||||
|
||||
//Draw Scrollbar
|
||||
draw_scrollbar(w_auto_pickup_border, iCurrentLine, iContentHeight, vAutoPickupRules[iCurrentPage].size(), 5);
|
||||
|
||||
calcStartPos(iStartPos, iCurrentLine, iContentHeight, vAutoPickupRules[iCurrentPage].size());
|
||||
|
||||
// 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) ? rm_prefix(_("<Exclude>E")).c_str() : rm_prefix(_("<Include>I")).c_str()));
|
||||
}
|
||||
}
|
||||
|
||||
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) {
|
||||
fold_and_print(w_auto_pickup_help, 1, 1, 999, c_white,
|
||||
_(
|
||||
"* is used as a Wildcard. A few Examples:\n"
|
||||
"\n"
|
||||
"wood arrow matches the itemname exactly\n"
|
||||
"wood ar* matches items beginning with wood ar\n"
|
||||
"*rrow matches items ending with rrow\n"
|
||||
"*avy fle*fi*arrow multible * are allowed\n"
|
||||
"heAVY*woOD*arrOW case insesitive search\n"
|
||||
"")
|
||||
);
|
||||
|
||||
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
|
||||
//TODO: somehow generate damaged, fitting or container items
|
||||
for (int i = 0; i < standard_itype_ids.size(); i++) {
|
||||
sItemName = item_controller->find_template(standard_itype_ids[i])->name;
|
||||
if (vAutoPickupRules[iCurrentPage][iCurrentLine].bActive && 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);
|
||||
|
||||
int nmatch = vMatchingItems.size();
|
||||
std::string buf = string_format(ngettext("%1$d item matches: %2$s", "%1$d items match: %2$s", nmatch), nmatch, vAutoPickupRules[iCurrentPage][iCurrentLine].sRule.c_str());
|
||||
mvwprintz(w_test_rule_border, 0, iContentWidth/2 - utf8_width(buf.c_str())/2, hilite(c_white), buf.c_str());
|
||||
|
||||
mvwprintz(w_test_rule_border, iContentHeight + 1, 1, red_background(c_white), _("Won't display damaged, fits and can/bottle items"));
|
||||
|
||||
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, ' ');
|
||||
}
|
||||
}
|
||||
|
||||
calcStartPos(iStartPos, iCurrentLine, iContentHeight, vMatchingItems.size());
|
||||
|
||||
// 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/" + base64_encode(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();
|
||||
|
||||
std::string sLine;
|
||||
while(!fin.eof()) {
|
||||
getline(fin, sLine);
|
||||
|
||||
if(sLine != "" && sLine[0] != '#') {
|
||||
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";
|
||||
//}
|
||||
|
||||
} else {
|
||||
std::string sRule = "";
|
||||
bool bActive = true;
|
||||
bool bExclude = false;
|
||||
|
||||
size_t 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));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
fin.close();
|
||||
|
||||
merge_vector();
|
||||
createPickupRules();
|
||||
}
|
||||
|
||||
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));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
bool hasPickupRule(std::string sRule)
|
||||
{
|
||||
for (int i = 0; i < vAutoPickupRules[2].size(); i++) {
|
||||
if (sRule.length() == (vAutoPickupRules[2][i].sRule).length() && ci_find_substr(sRule, vAutoPickupRules[2][i].sRule) != -1) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
void addPickupRule(std::string sRule)
|
||||
{
|
||||
vAutoPickupRules[2].push_back(cPickupRules(sRule, true, false));
|
||||
merge_vector();
|
||||
createPickupRules();
|
||||
}
|
||||
|
||||
void removePickupRule(std::string sRule)
|
||||
{
|
||||
for (int i = 0; i < vAutoPickupRules[2].size(); i++) {
|
||||
if (sRule.length() == (vAutoPickupRules[2][i].sRule).length() && ci_find_substr(sRule, vAutoPickupRules[2][i].sRule) != -1) {
|
||||
vAutoPickupRules[2].erase(vAutoPickupRules[2].begin() + i);
|
||||
merge_vector();
|
||||
createPickupRules();
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void createPickupRules(const std::string sItemNameIn)
|
||||
{
|
||||
if (sItemNameIn == "") {
|
||||
mapAutoPickupItems.clear();
|
||||
}
|
||||
|
||||
std::string sItemName = "";
|
||||
|
||||
for (int iPattern = 0; iPattern < vAutoPickupRules[0].size(); iPattern++) { //Includes only
|
||||
if (!vAutoPickupRules[0][iPattern].bExclude) {
|
||||
if (sItemNameIn != "") {
|
||||
if (vAutoPickupRules[0][iPattern].bActive && auto_pickup_match(sItemNameIn, vAutoPickupRules[0][iPattern].sRule)) {
|
||||
mapAutoPickupItems[sItemNameIn] = "true";
|
||||
break;
|
||||
}
|
||||
} else {
|
||||
//Check include paterns against all itemfactory items
|
||||
for (int i = 0; i < standard_itype_ids.size(); i++) {
|
||||
sItemName = item_controller->find_template(standard_itype_ids[i])->name;
|
||||
if (vAutoPickupRules[0][iPattern].bActive && auto_pickup_match(sItemName, vAutoPickupRules[0][iPattern].sRule)) {
|
||||
mapAutoPickupItems[sItemName] = "true";
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
for (int iPattern = 0; iPattern < vAutoPickupRules[0].size(); iPattern++) { //Excludes only
|
||||
if (vAutoPickupRules[0][iPattern].bExclude) {
|
||||
if (sItemNameIn != "") {
|
||||
if (vAutoPickupRules[0][iPattern].bActive && auto_pickup_match(sItemNameIn, vAutoPickupRules[0][iPattern].sRule)) {
|
||||
mapAutoPickupItems[sItemNameIn] = "false";
|
||||
return;
|
||||
}
|
||||
} else {
|
||||
//Check exclude paterns against all included items
|
||||
for (std::map<std::string, std::string>::iterator iter = mapAutoPickupItems.begin(); iter != mapAutoPickupItems.end(); ++iter) {
|
||||
if (vAutoPickupRules[0][iPattern].bActive && auto_pickup_match(iter->first, vAutoPickupRules[0][iPattern].sRule)) {
|
||||
mapAutoPickupItems[iter->first] = "false";
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
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/" + base64_encode(g->u.name) + ".apu.txt";
|
||||
std::ifstream fin;
|
||||
|
||||
fin.open(("save/" + base64_encode(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();
|
||||
createPickupRules();
|
||||
}
|
||||
}
|
||||
|
||||
void create_default_auto_pickup(bool bCharacter)
|
||||
{
|
||||
std::ofstream fout;
|
||||
std::string sFile = "data/auto_pickup.txt";
|
||||
|
||||
if (bCharacter) {
|
||||
sFile = "save/" + base64_encode(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 (vPattern[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,51 @@
|
||||
#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::map<std::string, std::string> mapAutoPickupItems;
|
||||
extern std::vector<cPickupRules> vAutoPickupRules[5];
|
||||
|
||||
void test_pattern(int iCurrentPage, int iCurrentLine);
|
||||
std::string trim_rule(std::string sPattern);
|
||||
void merge_vector();
|
||||
bool hasPickupRule(std::string sRule);
|
||||
void addPickupRule(std::string sRule);
|
||||
void removePickupRule(std::string sRule);
|
||||
void createPickupRules(const std::string sItemNameIn = "");
|
||||
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
|
||||
+702
-1020
File diff suppressed because it is too large
Load Diff
+26
-25
@@ -1,43 +1,44 @@
|
||||
#include "bodypart.h"
|
||||
#include "translations.h"
|
||||
#include "rng.h"
|
||||
|
||||
std::string body_part_name (body_part bp, int side)
|
||||
{
|
||||
switch (bp) {
|
||||
case bp_head:
|
||||
return "head";
|
||||
return _("head");
|
||||
case bp_eyes:
|
||||
return "eyes";
|
||||
return _("eyes");
|
||||
case bp_mouth:
|
||||
return "mouth";
|
||||
return _("mouth");
|
||||
case bp_torso:
|
||||
return "torso";
|
||||
return _("torso");
|
||||
case bp_arms:
|
||||
if (side == 0)
|
||||
return "left arm";
|
||||
return _("left arm");
|
||||
if (side == 1)
|
||||
return "right arm";
|
||||
return "arms";
|
||||
return _("right arm");
|
||||
return _("arms");
|
||||
case bp_hands:
|
||||
if (side == 0)
|
||||
return "left hand";
|
||||
return _("left hand");
|
||||
if (side == 1)
|
||||
return "right hand";
|
||||
return "hands";
|
||||
return _("right hand");
|
||||
return _("hands");
|
||||
case bp_legs:
|
||||
if (side == 0)
|
||||
return "left leg";
|
||||
return _("left leg");
|
||||
if (side == 1)
|
||||
return "right leg";
|
||||
return "legs";
|
||||
return _("right leg");
|
||||
return _("legs");
|
||||
case bp_feet:
|
||||
if (side == 0)
|
||||
return "left foot";
|
||||
return _("left foot");
|
||||
if (side == 1)
|
||||
return "right foot";
|
||||
return "feet";
|
||||
return _("right foot");
|
||||
return _("feet");
|
||||
default:
|
||||
return "appendix";
|
||||
return _("appendix");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -45,14 +46,14 @@ std::string encumb_text(body_part bp)
|
||||
{
|
||||
switch (bp) {
|
||||
case bp_head: return "";
|
||||
case bp_eyes: return "Ranged combat is hampered.";
|
||||
case bp_mouth: return "Running is slowed.";
|
||||
case bp_torso: return "Dodging and melee is hampered.";
|
||||
case bp_arms: return "Melee and ranged combat is hampered.";
|
||||
case bp_hands: return "Manual tasks are slowed.";
|
||||
case bp_legs: return "Running and swimming are slowed.";
|
||||
case bp_feet: return "Running is slowed.";
|
||||
default: return "It's inflammed.";
|
||||
case bp_eyes: return _("Ranged combat is hampered.");
|
||||
case bp_mouth: return _("Running is slowed.");
|
||||
case bp_torso: return _("Dodging and melee is hampered.");
|
||||
case bp_arms: return _("Melee and ranged combat is hampered.");
|
||||
case bp_hands: return _("Manual tasks are slowed.");
|
||||
case bp_legs: return _("Running and swimming are slowed.");
|
||||
case bp_feet: return _("Running is slowed.");
|
||||
default: return _("It's inflammed.");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
+41
-18
@@ -124,34 +124,46 @@ void mapgen_crater(map *m, mapgendata dat)
|
||||
}
|
||||
}
|
||||
}
|
||||
m->place_items(mi_wreckage, 83, 0, 0, SEEX * 2 - 1, SEEY * 2 - 1, true, 0);
|
||||
m->place_items("wreckage", 83, 0, 0, SEEX * 2 - 1, SEEY * 2 - 1, true, 0);
|
||||
}
|
||||
|
||||
void mapgen_field(map *m, int turn)
|
||||
{
|
||||
// There's a chance this field will be thick with strawberry
|
||||
// and blueberry bushes.
|
||||
int berry_bush_factor = 200;
|
||||
int bush_factor = 120;
|
||||
if(one_in(120)) {
|
||||
berry_bush_factor = 2;
|
||||
bush_factor = 40;
|
||||
}
|
||||
|
||||
for (int i = 0; i < SEEX * 2; i++)
|
||||
{
|
||||
for (int j = 0; j < SEEY * 2; j++)
|
||||
{
|
||||
m->ter_set(i, j, grass_or_dirt());
|
||||
//------Jovan's-----
|
||||
if (one_in(120))
|
||||
if (one_in(bush_factor))
|
||||
{
|
||||
if (one_in(30))
|
||||
if (one_in(berry_bush_factor))
|
||||
{
|
||||
m->ter_set(i, j, t_shrub_blueberry);
|
||||
}
|
||||
else
|
||||
if (one_in(berry_bush_factor))
|
||||
{
|
||||
m->ter_set(i, j, t_shrub_strawberry);
|
||||
}
|
||||
else
|
||||
{
|
||||
m->ter_set(i, j, t_shrub);
|
||||
}
|
||||
}
|
||||
else
|
||||
if (one_in(1000)) { m->ter_set(i,j, t_mutpoppy); }
|
||||
//------------------
|
||||
if (one_in(1000)) { m->furn_set(i,j, f_mutpoppy); }
|
||||
}
|
||||
}
|
||||
m->place_items(mi_field, 60, 0, 0, SEEX * 2 - 1, SEEY * 2 - 1, true, turn);
|
||||
m->place_items("field", 60, 0, 0, SEEX * 2 - 1, SEEY * 2 - 1, true, turn);
|
||||
}
|
||||
|
||||
void mapgen_dirtlot(map *m, game *g)
|
||||
@@ -173,7 +185,7 @@ void mapgen_dirtlot(map *m, game *g)
|
||||
}
|
||||
if (one_in(4))
|
||||
{
|
||||
m->add_vehicle (g, veh_truck, 12, 12, 90, -1, -1);
|
||||
m->add_vehicle (g, "flatbed_truck", 12, 12, 90, -1, -1);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -237,7 +249,7 @@ void mapgen_forest_general(map *m, oter_id terrain_type, mapgendata dat, int tur
|
||||
if (one_in(250))
|
||||
{
|
||||
m->ter_set(i, j, t_tree_apple);
|
||||
m->spawn_item(i, j, item_controller->find_template("apple"), turn);
|
||||
m->spawn_item(i, j, "apple", turn);
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -261,11 +273,11 @@ void mapgen_forest_general(map *m, oter_id terrain_type, mapgendata dat, int tur
|
||||
}
|
||||
else
|
||||
{
|
||||
m->ter_set(i, j, t_dirt);
|
||||
m->ter_set(i, j, grass_or_dirt());
|
||||
}
|
||||
}
|
||||
}
|
||||
m->place_items(mi_forest, 60, 0, 0, SEEX * 2 - 1, SEEY * 2 - 1, true, turn);
|
||||
m->place_items("forest", 60, 0, 0, SEEX * 2 - 1, SEEY * 2 - 1, true, turn);
|
||||
|
||||
if (terrain_type == ot_forest_water)
|
||||
{
|
||||
@@ -298,7 +310,8 @@ void mapgen_forest_general(map *m, oter_id terrain_type, mapgendata dat, int tur
|
||||
{
|
||||
m->ter_set(x, y, t_water_dp);
|
||||
}
|
||||
else if (m->ter(x, y) == t_dirt || m->ter(x, y) == t_underbrush)
|
||||
else if (m->ter(x, y) == t_dirt || m->ter(x, y) == t_grass ||
|
||||
m->ter(x, y) == t_underbrush)
|
||||
{
|
||||
m->ter_set(x, y, t_water_sh);
|
||||
}
|
||||
@@ -320,7 +333,8 @@ void mapgen_forest_general(map *m, oter_id terrain_type, mapgendata dat, int tur
|
||||
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)
|
||||
if (m->ter(wx, wy) == t_dirt || m->ter(wx, wy) == t_grass ||
|
||||
m->ter(wx, wy) == t_underbrush)
|
||||
{
|
||||
m->ter_set(wx, wy, t_water_sh);
|
||||
}
|
||||
@@ -328,7 +342,8 @@ void mapgen_forest_general(map *m, oter_id terrain_type, mapgendata dat, int tur
|
||||
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)
|
||||
if (m->ter(wx, wy) == t_dirt || m->ter(wx, wy) == t_grass ||
|
||||
m->ter(wx, wy) == t_underbrush)
|
||||
{
|
||||
m->ter_set(wx, wy, t_water_sh);
|
||||
}
|
||||
@@ -336,7 +351,8 @@ void mapgen_forest_general(map *m, oter_id terrain_type, mapgendata dat, int tur
|
||||
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)
|
||||
if (m->ter(wx, wy) == t_dirt || m->ter(wx, wy) == t_grass ||
|
||||
m->ter(wx, wy) == t_underbrush)
|
||||
{
|
||||
m->ter_set(wx, wy, t_water_sh);
|
||||
}
|
||||
@@ -344,7 +360,8 @@ void mapgen_forest_general(map *m, oter_id terrain_type, mapgendata dat, int tur
|
||||
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)
|
||||
if (m->ter(wx, wy) == t_dirt || m->ter(wx, wy) == t_grass ||
|
||||
m->ter(wx, wy) == t_underbrush)
|
||||
{
|
||||
m->ter_set(wx, wy, t_water_sh);
|
||||
}
|
||||
@@ -358,18 +375,24 @@ void mapgen_forest_general(map *m, oter_id terrain_type, mapgendata dat, int tur
|
||||
m->add_trap(x, y, tr_sinkhole);
|
||||
if (m->ter(x, y) != t_water_sh)
|
||||
{
|
||||
m->ter_set(x, y, t_dirt);
|
||||
m->ter_set(x, y, grass_or_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))
|
||||
if ((m->ter(i, j) == t_dirt || m->ter(i, j) == t_grass ||
|
||||
m->ter(i, j) == t_underbrush) && !one_in(3))
|
||||
{
|
||||
m->add_field(NULL, i, j, fd_web, rng(1, 3));
|
||||
}
|
||||
|
||||
+57
-71
@@ -2,6 +2,7 @@
|
||||
#include "calendar.h"
|
||||
#include "output.h"
|
||||
#include "options.h"
|
||||
#include "translations.h"
|
||||
|
||||
calendar::calendar()
|
||||
{
|
||||
@@ -38,11 +39,11 @@ calendar::calendar(int turn)
|
||||
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];
|
||||
int season_param = day_param / OPTIONS["SEASON_LENGTH"];
|
||||
second = 6 * (turn % 10);
|
||||
minute = minute_param % 60;
|
||||
hour = hour_param % 24;
|
||||
day = 1 + day_param % (int)OPTIONS[OPT_SEASON_LENGTH];
|
||||
day = 1 + day_param % (int)OPTIONS["SEASON_LENGTH"];
|
||||
season = season_type(season_param % 4);
|
||||
year = season_param / 4;
|
||||
}
|
||||
@@ -53,8 +54,8 @@ int calendar::get_turn() const
|
||||
ret += minute * 10;
|
||||
ret += hour * 600;
|
||||
ret += day * 14400;
|
||||
ret += int(season) * 14400 * (int)OPTIONS[OPT_SEASON_LENGTH];
|
||||
ret += year * 14400 * 4 * (int)OPTIONS[OPT_SEASON_LENGTH];
|
||||
ret += int(season) * 14400 * (int)OPTIONS["SEASON_LENGTH"];
|
||||
ret += year * 14400 * 4 * (int)OPTIONS["SEASON_LENGTH"];
|
||||
return ret;
|
||||
}
|
||||
|
||||
@@ -64,8 +65,8 @@ calendar::operator int() const
|
||||
ret += minute * 10;
|
||||
ret += hour * 600;
|
||||
ret += day * 14400;
|
||||
ret += int(season) * 14400 * (int)OPTIONS[OPT_SEASON_LENGTH];
|
||||
ret += year * 14400 * 4 * (int)OPTIONS[OPT_SEASON_LENGTH];
|
||||
ret += int(season) * 14400 * (int)OPTIONS["SEASON_LENGTH"];
|
||||
ret += year * 14400 * 4 * (int)OPTIONS["SEASON_LENGTH"];
|
||||
return ret;
|
||||
}
|
||||
|
||||
@@ -89,11 +90,11 @@ calendar& calendar::operator =(int rhs)
|
||||
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];
|
||||
int season_param = day_param / OPTIONS["SEASON_LENGTH"];
|
||||
second = 6 * (rhs % 10);
|
||||
minute = minute_param % 60;
|
||||
hour = hour_param % 24;
|
||||
day = day_param % (int)OPTIONS[OPT_SEASON_LENGTH];
|
||||
day = day_param % (int)OPTIONS["SEASON_LENGTH"];
|
||||
season = season_type(season_param % 4);
|
||||
year = season_param / 4;
|
||||
return *this;
|
||||
@@ -198,6 +199,11 @@ void calendar::increment()
|
||||
standardize();
|
||||
}
|
||||
|
||||
int calendar::getHour()
|
||||
{
|
||||
return hour;
|
||||
}
|
||||
|
||||
void calendar::standardize()
|
||||
{
|
||||
if (second >= 60) {
|
||||
@@ -213,9 +219,9 @@ void calendar::standardize()
|
||||
hour %= 24;
|
||||
}
|
||||
int tmpseason = int(season);
|
||||
if (day >= OPTIONS[OPT_SEASON_LENGTH]) {
|
||||
tmpseason += day / OPTIONS[OPT_SEASON_LENGTH];
|
||||
day %= (int)OPTIONS[OPT_SEASON_LENGTH];
|
||||
if (day >= OPTIONS["SEASON_LENGTH"]) {
|
||||
tmpseason += day / OPTIONS["SEASON_LENGTH"];
|
||||
day %= (int)OPTIONS["SEASON_LENGTH"];
|
||||
}
|
||||
if (tmpseason >= 4) {
|
||||
year += tmpseason / 4;
|
||||
@@ -233,7 +239,7 @@ int calendar::minutes_past_midnight() const
|
||||
|
||||
moon_phase calendar::moon() const
|
||||
{
|
||||
int phase = day / (OPTIONS[OPT_SEASON_LENGTH] / 4);
|
||||
int phase = day / (OPTIONS["SEASON_LENGTH"] / 4);
|
||||
//phase %= 4; Redundant?
|
||||
if (phase == 3)
|
||||
return MOON_HALF;
|
||||
@@ -263,7 +269,7 @@ calendar calendar::sunrise() const
|
||||
end_hour = SUNRISE_SOLSTICE;
|
||||
break;
|
||||
}
|
||||
double percent = double(double(day) / OPTIONS[OPT_SEASON_LENGTH]);
|
||||
double percent = double(double(day) / OPTIONS["SEASON_LENGTH"]);
|
||||
double time = double(start_hour) * (1.- percent) + double(end_hour) * percent;
|
||||
|
||||
ret.hour = int(time);
|
||||
@@ -295,7 +301,7 @@ calendar calendar::sunset() const
|
||||
end_hour = SUNSET_SOLSTICE;
|
||||
break;
|
||||
}
|
||||
double percent = double(double(day) / OPTIONS[OPT_SEASON_LENGTH]);
|
||||
double percent = double(double(day) / OPTIONS["SEASON_LENGTH"]);
|
||||
double time = double(start_hour) * (1.- percent) + double(end_hour) * percent;
|
||||
|
||||
ret.hour = int(time);
|
||||
@@ -351,49 +357,32 @@ int calendar::sunlight() const
|
||||
std::string calendar::print_time(bool just_hour) const
|
||||
{
|
||||
std::stringstream time_string;
|
||||
int hour_param;
|
||||
|
||||
if (OPTIONS[OPT_24_HOUR] == 1)
|
||||
{
|
||||
int hour_param = hour % 24;
|
||||
if (hour_param < 10)
|
||||
{
|
||||
time_string << "0";
|
||||
if (OPTIONS["24_HOUR"] == "military") {
|
||||
hour_param = hour % 24;
|
||||
time_string << string_format("%02d%02d", hour_param, minute);
|
||||
} else if (OPTIONS["24_HOUR"] == "24h") {
|
||||
hour_param = hour % 24;
|
||||
if (just_hour) {
|
||||
time_string << hour_param;
|
||||
} else {
|
||||
//~ hour:minute (24hr time display)
|
||||
time_string << string_format(_("%02d:%02d"), hour_param, minute);
|
||||
}
|
||||
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)
|
||||
{
|
||||
} else {
|
||||
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";
|
||||
if (just_hour && hour < 12) {
|
||||
time_string << string_format(_("%d AM"), hour_param);
|
||||
} else if (just_hour) {
|
||||
time_string << string_format(_("%d PM"), hour_param);
|
||||
} else if (hour < 12) {
|
||||
time_string << string_format(_("%d:%02d AM"), hour_param, minute);
|
||||
} else {
|
||||
time_string << string_format(_("%d:%02d PM"), hour_param, minute);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -403,33 +392,30 @@ std::string calendar::print_time(bool just_hour) const
|
||||
std::string calendar::textify_period()
|
||||
{
|
||||
standardize();
|
||||
std::stringstream ret;
|
||||
int am;
|
||||
std::string tx;
|
||||
const char* tx;
|
||||
// Describe the biggest time period, as "<am> <tx>s", am = amount, tx = name
|
||||
if (year > 0) {
|
||||
am = year;
|
||||
tx = "year";
|
||||
tx = ngettext("%d year", "%d years", am);
|
||||
} else if (season > 0) {
|
||||
am = season;
|
||||
tx = "season";
|
||||
tx = ngettext("%d season", "%d seasons", am);
|
||||
} else if (day > 0) {
|
||||
am = day;
|
||||
tx = "day";
|
||||
tx = ngettext("%d day", "%d days", am);
|
||||
} else if (hour > 0) {
|
||||
am = hour;
|
||||
tx = "hour";
|
||||
tx = ngettext("%d hour", "%d hours", am);
|
||||
} else if (minute >= 5) {
|
||||
am = minute;
|
||||
tx = "minute";
|
||||
tx = ngettext("%d minute", "%d minutes", am);
|
||||
} else {
|
||||
am = second / 6 + minute * 10;
|
||||
tx = "turn";
|
||||
tx = ngettext("%d turn", "%d turns", am);
|
||||
}
|
||||
|
||||
ret << am << " " << tx << (am > 1 ? "s" : "");
|
||||
|
||||
return ret.str();
|
||||
return string_format(tx, am);
|
||||
}
|
||||
|
||||
std::string calendar::day_of_week() const
|
||||
@@ -475,25 +461,25 @@ std::string calendar::day_of_week() const
|
||||
switch (current_day)
|
||||
{
|
||||
case SUNDAY:
|
||||
day_string = "Sunday";
|
||||
day_string = _("Sunday");
|
||||
break;
|
||||
case MONDAY:
|
||||
day_string = "Monday";
|
||||
day_string = _("Monday");
|
||||
break;
|
||||
case TUESDAY:
|
||||
day_string = "Tuesday";
|
||||
day_string = _("Tuesday");
|
||||
break;
|
||||
case WEDNESDAY:
|
||||
day_string = "Wendsday";
|
||||
day_string = _("Wendsday");
|
||||
break;
|
||||
case THURSDAY:
|
||||
day_string = "Thursday";
|
||||
day_string = _("Thursday");
|
||||
break;
|
||||
case FRIDAY:
|
||||
day_string = "Friday";
|
||||
day_string = _("Friday");
|
||||
break;
|
||||
case SATURDAY:
|
||||
day_string = "Saturday";
|
||||
day_string = _("Saturday");
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
@@ -75,6 +75,8 @@ public:
|
||||
|
||||
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
|
||||
|
||||
+1387
File diff suppressed because it is too large
Load Diff
+239
@@ -0,0 +1,239 @@
|
||||
#ifndef CATA_TILES_H
|
||||
#define CATA_TILES_H
|
||||
|
||||
// make sure that SDL systems are included: Until testing is available for other systems, keep Windows specific
|
||||
#if (defined _WIN32 || defined WINDOWS)
|
||||
//#include <windows.h>
|
||||
#include "SDL.h"
|
||||
#include "SDL_ttf.h"
|
||||
#else
|
||||
#include <wordexp.h>
|
||||
#if (defined OSX_SDL_FW)
|
||||
#include "SDL.h"
|
||||
#include "SDL_ttf/SDL_ttf.h"
|
||||
#else
|
||||
#include "SDL/SDL.h"
|
||||
#include "SDL/SDL_ttf.h"
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#include "game.h"
|
||||
#include "options.h"
|
||||
#include "catajson.h"
|
||||
#include "mapdata.h"
|
||||
#include "tile_id_data.h"
|
||||
#include "enums.h"
|
||||
|
||||
|
||||
|
||||
/** Structures */
|
||||
struct tile_type
|
||||
{
|
||||
int fg, bg;
|
||||
bool multitile, rotates;
|
||||
|
||||
std::vector<std::string> available_subtiles;
|
||||
|
||||
tile_type()
|
||||
{
|
||||
fg = bg = 0;
|
||||
multitile = rotates = false;
|
||||
available_subtiles.clear();
|
||||
}
|
||||
};
|
||||
|
||||
struct tile
|
||||
{
|
||||
/** Screen coordinates as tile number */
|
||||
int sx, sy;
|
||||
/** World coordinates */
|
||||
int wx, wy;
|
||||
|
||||
tile()
|
||||
{
|
||||
sx = wx = wy = 0;
|
||||
}
|
||||
tile(int x, int y, int x2, int y2)
|
||||
{
|
||||
sx = x;
|
||||
sy = y;
|
||||
wx = x2;
|
||||
wy = y2;
|
||||
}
|
||||
};
|
||||
struct tile_rotation
|
||||
{
|
||||
int *dx, *dy;
|
||||
|
||||
tile_rotation(int num_pixels)
|
||||
{
|
||||
dx = new int[num_pixels];
|
||||
dy = new int[num_pixels];
|
||||
}
|
||||
};
|
||||
|
||||
/* Enums */
|
||||
enum LIGHTING
|
||||
{
|
||||
HIDDEN = -1,
|
||||
CLEAR = 0,
|
||||
LIGHT_NORMAL = 1,
|
||||
LIGHT_DARK = 2,
|
||||
BOOMER_NORMAL = 3,
|
||||
BOOMER_DARK = 4
|
||||
};
|
||||
enum MULTITILE_TYPE
|
||||
{
|
||||
center,
|
||||
corner,
|
||||
edge,
|
||||
t_connection,
|
||||
end_piece,
|
||||
unconnected,
|
||||
num_multitile_types
|
||||
};
|
||||
|
||||
/** Typedefs */
|
||||
typedef std::map<int, SDL_Rect*> tile_map;
|
||||
typedef std::map<std::string, tile_type*> tile_id_map;
|
||||
|
||||
typedef tile_map::iterator tile_iterator;
|
||||
typedef tile_id_map::iterator tile_id_iterator;
|
||||
|
||||
class cata_tiles
|
||||
{
|
||||
public:
|
||||
/** Default constructor */
|
||||
cata_tiles();
|
||||
/** Default destructor */
|
||||
~cata_tiles();
|
||||
/** Load tileset */
|
||||
void load_tileset(std::string path);
|
||||
/** Load tileset config file */
|
||||
void load_tilejson(std::string path);
|
||||
/* After loading tileset, create additional cache for rotating each tile assuming it is used for rotations */
|
||||
void create_rotation_cache();
|
||||
/** Draw to screen */
|
||||
void draw(); /* Deprecated */
|
||||
void draw(int destx, int desty, int centerx, int centery, int width, int height);
|
||||
|
||||
bool draw_from_id_string(std::string id, int x, int y, int subtile, int rota, bool is_at_screen_position = false);
|
||||
bool draw_tile_at(tile_type *tile, int x, int y, int rota);
|
||||
|
||||
/** Surface/Sprite rotation specifics */
|
||||
SDL_Surface *rotate_tile(SDL_Surface *src, SDL_Rect *rect, int rota);
|
||||
void put_pixel(SDL_Surface *surface, int x, int y, Uint32 pixel);
|
||||
Uint32 get_pixel(SDL_Surface *surface, int x, int y);
|
||||
/* Tile Picking */
|
||||
void get_tile_values(const int t, const int *tn, int &subtile, int &rotation);
|
||||
|
||||
void get_wall_values(const int x, const int y, const long vertical_wall_symbol, const long horizontal_wall_symbol, int &subtile, int &rotation);
|
||||
void get_terrain_orientation(int x, int y, int &rota, int &subtype);
|
||||
|
||||
void get_rotation_and_subtile(const char val, const int num_connects, int &rota, int &subtype);
|
||||
|
||||
/** Drawing Layers */
|
||||
bool draw_lighting(int x, int y, LIGHTING l);
|
||||
bool draw_terrain(int x, int y);
|
||||
bool draw_furniture(int x, int y);
|
||||
bool draw_trap(int x, int y);
|
||||
bool draw_field_or_item(int x, int y);
|
||||
bool draw_item(int x, int y);
|
||||
bool draw_vpart(int x, int y);
|
||||
bool draw_entity(int x, int y);
|
||||
|
||||
// Animation layers
|
||||
bool draw_hit(int x, int y);
|
||||
|
||||
void init_explosion(int x, int y, int radius);
|
||||
void draw_explosion_frame(int destx, int desty, int centerx, int centery, int width, int height);
|
||||
void void_explosion();
|
||||
|
||||
void init_draw_bullet(int x, int y, std::string name);
|
||||
void draw_bullet_frame(int destx, int desty, int centerx, int centery, int width, int height);
|
||||
void void_bullet();
|
||||
|
||||
void init_draw_hit(int x, int y, std::string name);
|
||||
void draw_hit_frame(int destx, int desty, int centerx, int centery, int width, int height);
|
||||
void void_hit();
|
||||
|
||||
// pseudo-animated layer, not really though.
|
||||
void init_draw_line(int x, int y, std::vector<point> trajectory, std::string line_end_name, bool target_line);
|
||||
void draw_line(int destx, int desty, int centerx, int centery, int width, int height);
|
||||
void void_line();
|
||||
|
||||
void init_draw_weather(weather_printable weather, std::string name);
|
||||
void draw_weather_frame(int destx, int desty, int centerx, int centery, int width, int height);
|
||||
void void_weather();
|
||||
|
||||
/** Overmap Layer : Not used for now, do later*/
|
||||
bool draw_omap();
|
||||
|
||||
/** Used to properly initialize everything for display */
|
||||
void init(SDL_Surface *screen, std::string json_path, std::string tileset_path);
|
||||
/* initialize from an outside file */
|
||||
void init(SDL_Surface *screen, std::string load_file_path);
|
||||
void get_tile_information(std::string file_path, std::string &json_path, std::string &tileset_path);
|
||||
/** Lighting */
|
||||
void init_light();
|
||||
LIGHTING light_at(int x, int y);
|
||||
|
||||
/** Variables */
|
||||
SDL_Surface *buffer, *tile_atlas, *display_screen;
|
||||
tile_map *tile_values;
|
||||
tile_id_map *tile_ids;
|
||||
|
||||
std::map<int, std::vector<SDL_Surface*> > rotation_cache;
|
||||
|
||||
int tile_height, tile_width;
|
||||
int screentile_width, screentile_height;
|
||||
tile *screen_tiles;
|
||||
int num_tiles;
|
||||
|
||||
bool in_animation;
|
||||
|
||||
bool do_draw_explosion;
|
||||
bool do_draw_bullet;
|
||||
bool do_draw_hit;
|
||||
bool do_draw_line;
|
||||
bool do_draw_weather;
|
||||
|
||||
int exp_pos_x, exp_pos_y, exp_rad;
|
||||
|
||||
int bul_pos_x, bul_pos_y;
|
||||
std::string bul_id;
|
||||
|
||||
int hit_pos_x, hit_pos_y;
|
||||
std::string hit_entity_id;
|
||||
|
||||
int line_pos_x, line_pos_y;
|
||||
bool is_target_line;
|
||||
std::vector<point> line_trajectory;
|
||||
std::string line_endpoint_id;
|
||||
|
||||
weather_printable anim_weather;
|
||||
std::string weather_name;
|
||||
|
||||
// offset values
|
||||
int o_x, o_y;
|
||||
|
||||
protected:
|
||||
private:
|
||||
int
|
||||
sightrange_natural,
|
||||
sightrange_light,
|
||||
sightrange_lowlight,
|
||||
sightrange_max;
|
||||
int
|
||||
u_clairvoyance,
|
||||
g_lightlevel;
|
||||
bool
|
||||
boomered,
|
||||
sight_impaired,
|
||||
bionight_bionic_active;
|
||||
|
||||
|
||||
tile_rotation *tile_rotations;
|
||||
};
|
||||
|
||||
#endif // CATA_TILES_H
|
||||
+358
@@ -0,0 +1,358 @@
|
||||
#include "catacharset.h"
|
||||
#include <string.h>
|
||||
#include "debug.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;
|
||||
}
|
||||
|
||||
std::string utf32_to_utf8(unsigned ch) {
|
||||
char out[5];
|
||||
char* buf = out;
|
||||
static const unsigned char utf8FirstByte[7] = { 0x00, 0x00, 0xC0, 0xE0, 0xF0, 0xF8, 0xFC };
|
||||
int utf8Bytes;
|
||||
if (ch < 0x80) {
|
||||
utf8Bytes = 1;
|
||||
} else if (ch < 0x800) {
|
||||
utf8Bytes = 2;
|
||||
} else if (ch < 0x10000) {
|
||||
utf8Bytes = 3;
|
||||
} else if (ch <= 0x10FFFF) {
|
||||
utf8Bytes = 4;
|
||||
} else {
|
||||
utf8Bytes = 3;
|
||||
ch = UNKNOWN_UNICODE;
|
||||
}
|
||||
|
||||
buf += utf8Bytes;
|
||||
switch (utf8Bytes) {
|
||||
case 4:
|
||||
*--buf = (ch|0x80)&0xBF;
|
||||
ch >>= 6;
|
||||
case 3:
|
||||
*--buf = (ch|0x80)&0xBF;
|
||||
ch >>= 6;
|
||||
case 2:
|
||||
*--buf = (ch|0x80)&0xBF;
|
||||
ch >>= 6;
|
||||
case 1:
|
||||
*--buf = ch|utf8FirstByte[utf8Bytes];
|
||||
}
|
||||
out[utf8Bytes] = '\0';
|
||||
return out;
|
||||
}
|
||||
|
||||
//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);
|
||||
}
|
||||
|
||||
static const char base64_encoding_table[] =
|
||||
{'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H',
|
||||
'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P',
|
||||
'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X',
|
||||
'Y', 'Z', 'a', 'b', 'c', 'd', 'e', 'f',
|
||||
'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n',
|
||||
'o', 'p', 'q', 'r', 's', 't', 'u', 'v',
|
||||
'w', 'x', 'y', 'z', '0', '1', '2', '3',
|
||||
'4', '5', '6', '7', '8', '9', '+', '-'};
|
||||
|
||||
static char base64_decoding_table[256];
|
||||
static const int mod_table[] = {0, 2, 1};
|
||||
|
||||
static void build_base64_decoding_table() {
|
||||
static bool built = false;
|
||||
if(!built) {
|
||||
for (int i = 0; i < 64; i++) {
|
||||
base64_decoding_table[(unsigned char) base64_encoding_table[i]] = i;
|
||||
}
|
||||
built = true;
|
||||
}
|
||||
}
|
||||
|
||||
std::string base64_encode(std::string str) {
|
||||
//assume it is already encoded
|
||||
if(str.length()>0 && str[0]=='#') {
|
||||
return str;
|
||||
}
|
||||
|
||||
int input_length = str.length();
|
||||
int output_length = 4 * ((input_length + 2) / 3);
|
||||
|
||||
char *encoded_data = new char[output_length+1];
|
||||
const unsigned char* data = (const unsigned char*)str.c_str();
|
||||
|
||||
for (int i = 0, j = 0; i < input_length;) {
|
||||
|
||||
unsigned octet_a = i < input_length ? data[i++] : 0;
|
||||
unsigned octet_b = i < input_length ? data[i++] : 0;
|
||||
unsigned octet_c = i < input_length ? data[i++] : 0;
|
||||
|
||||
unsigned triple = (octet_a << 0x10) + (octet_b << 0x08) + octet_c;
|
||||
|
||||
encoded_data[j++] = base64_encoding_table[(triple >> 3 * 6) & 0x3F];
|
||||
encoded_data[j++] = base64_encoding_table[(triple >> 2 * 6) & 0x3F];
|
||||
encoded_data[j++] = base64_encoding_table[(triple >> 1 * 6) & 0x3F];
|
||||
encoded_data[j++] = base64_encoding_table[(triple >> 0 * 6) & 0x3F];
|
||||
}
|
||||
|
||||
for (int i = 0; i < mod_table[input_length % 3]; i++)
|
||||
encoded_data[output_length - 1 - i] = '=';
|
||||
|
||||
encoded_data[output_length] = '\0';
|
||||
std::string ret = "#";
|
||||
ret += encoded_data;
|
||||
delete[] encoded_data;
|
||||
|
||||
//DebugLog()<<"base64 encoded: \n"<<str<<"\n"<<ret<<"\n";
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
||||
std::string base64_decode(std::string str) {
|
||||
// do not decode if it is not base64
|
||||
if(str.length()==0 || str[0]!='#') {
|
||||
return str;
|
||||
}
|
||||
|
||||
build_base64_decoding_table();
|
||||
|
||||
std::string instr = str.substr(1);
|
||||
|
||||
int input_length = instr.length();
|
||||
|
||||
if (input_length % 4 != 0) {
|
||||
return str;
|
||||
}
|
||||
|
||||
int output_length = input_length / 4 * 3;
|
||||
const char* data = (const char*)instr.c_str();
|
||||
|
||||
if (data[input_length - 1] == '=') output_length--;
|
||||
if (data[input_length - 2] == '=') output_length--;
|
||||
|
||||
unsigned char *decoded_data = new unsigned char[output_length+1];
|
||||
|
||||
for (int i = 0, j = 0; i < input_length;) {
|
||||
|
||||
unsigned sextet_a = data[i] == '=' ? 0 & i++ : base64_decoding_table[(unsigned char)data[i++]];
|
||||
unsigned sextet_b = data[i] == '=' ? 0 & i++ : base64_decoding_table[(unsigned char)data[i++]];
|
||||
unsigned sextet_c = data[i] == '=' ? 0 & i++ : base64_decoding_table[(unsigned char)data[i++]];
|
||||
unsigned sextet_d = data[i] == '=' ? 0 & i++ : base64_decoding_table[(unsigned char)data[i++]];
|
||||
|
||||
unsigned triple = (sextet_a << 3 * 6)
|
||||
+ (sextet_b << 2 * 6)
|
||||
+ (sextet_c << 1 * 6)
|
||||
+ (sextet_d << 0 * 6);
|
||||
|
||||
if (j < output_length) decoded_data[j++] = (triple >> 2 * 8) & 0xFF;
|
||||
if (j < output_length) decoded_data[j++] = (triple >> 1 * 8) & 0xFF;
|
||||
if (j < output_length) decoded_data[j++] = (triple >> 0 * 8) & 0xFF;
|
||||
}
|
||||
|
||||
decoded_data[output_length] = 0;
|
||||
|
||||
std::string ret = (char*)decoded_data;
|
||||
delete[] decoded_data;
|
||||
|
||||
//DebugLog()<<"base64 decoded: \n"<<str<<"\n"<<ret<<"\n";
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,22 @@
|
||||
#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);
|
||||
std::string utf32_to_utf8(unsigned ch);
|
||||
|
||||
std::string base64_encode(std::string str);
|
||||
std::string base64_decode(std::string str);
|
||||
#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
|
||||
|
||||
-938
@@ -1,938 +0,0 @@
|
||||
#if (defined _WIN32 || defined WINDOWS)
|
||||
#include "catacurse.h"
|
||||
#include "options.h"
|
||||
#include "output.h"
|
||||
#include "color.h"
|
||||
#include <cstdlib>
|
||||
#include <fstream>
|
||||
|
||||
//***********************************
|
||||
//Globals *
|
||||
//***********************************
|
||||
|
||||
WINDOW *mainwin;
|
||||
const WCHAR *szWindowClass = (L"CataCurseWindow"); //Class name :D
|
||||
HINSTANCE WindowINST; //the instance of the window
|
||||
HWND WindowHandle; //the handle of the window
|
||||
HDC WindowDC; //Device Context of the window, used for backbuffer
|
||||
int WindowX; //X pos of the actual window, not the curses window
|
||||
int WindowY; //Y pos of the actual window, not the curses window
|
||||
int WindowWidth; //Width of the actual window, not the curses window
|
||||
int WindowHeight; //Height of the actual window, not the curses window
|
||||
int lastchar; //the last character that was pressed, resets in getch
|
||||
int inputdelay; //How long getch will wait for a character to be typed
|
||||
//WINDOW *_windows; //Probably need to change this to dynamic at some point
|
||||
//int WindowCount; //The number of curses windows currently in use
|
||||
HDC backbuffer; //an off-screen DC to prevent flickering, lower cpu
|
||||
HBITMAP backbit; //the bitmap that is used in conjunction wth the above
|
||||
int fontwidth; //the width of the font, background is always this size
|
||||
int fontheight; //the height of the font, background is always this size
|
||||
int halfwidth; //half of the font width, used for centering lines
|
||||
int halfheight; //half of the font height, used for centering lines
|
||||
HFONT font; //Handle to the font created by CreateFont
|
||||
RGBQUAD *windowsPalette; //The coor palette, 16 colors emulates a terminal
|
||||
pairs *colorpairs; //storage for pair'ed colored, should be dynamic, meh
|
||||
unsigned char *dcbits; //the bits of the screen image, for direct access
|
||||
char szDirectory[MAX_PATH] = "";
|
||||
int echoOn; //1 = getnstr shows input, 0 = doesn't show. needed for echo()-ncurses compatibility.
|
||||
|
||||
//***********************************
|
||||
//Non-curses, Window functions *
|
||||
//***********************************
|
||||
|
||||
//Registers, creates, and shows the Window!!
|
||||
bool WinCreate()
|
||||
{
|
||||
int success;
|
||||
WNDCLASSEXW WindowClassType;
|
||||
int WinBorderHeight;
|
||||
int WinBorderWidth;
|
||||
int WinTitleSize;
|
||||
unsigned int WindowStyle;
|
||||
const WCHAR *szTitle= (L"Cataclysm: Dark Days Ahead - 0.6git");
|
||||
WinTitleSize = GetSystemMetrics(SM_CYCAPTION); //These lines ensure
|
||||
WinBorderWidth = GetSystemMetrics(SM_CXDLGFRAME) * 2; //that our window will
|
||||
WinBorderHeight = GetSystemMetrics(SM_CYDLGFRAME) * 2; // be a perfect size
|
||||
WindowClassType.cbSize = sizeof(WNDCLASSEXW);
|
||||
WindowClassType.style = 0;//No point in having a custom style, no mouse, etc
|
||||
WindowClassType.lpfnWndProc = ProcessMessages;//the procedure that gets msgs
|
||||
WindowClassType.cbClsExtra = 0;
|
||||
WindowClassType.cbWndExtra = 0;
|
||||
WindowClassType.hInstance = WindowINST;// hInstance
|
||||
WindowClassType.hIcon = LoadIcon(WindowINST, IDI_APPLICATION);//Default Icon
|
||||
WindowClassType.hIconSm = LoadIcon(WindowINST, IDI_APPLICATION);//Default Icon
|
||||
WindowClassType.hCursor = LoadCursor(NULL, IDC_ARROW);//Default Pointer
|
||||
WindowClassType.lpszMenuName = NULL;
|
||||
WindowClassType.hbrBackground = 0;//Thanks jday! Remove background brush
|
||||
WindowClassType.lpszClassName = szWindowClass;
|
||||
success = RegisterClassExW(&WindowClassType);
|
||||
if ( success== 0){
|
||||
return false;
|
||||
}
|
||||
WindowStyle = WS_OVERLAPPEDWINDOW & ~(WS_THICKFRAME) & ~(WS_MAXIMIZEBOX);
|
||||
WindowHandle = CreateWindowExW(WS_EX_APPWINDOW || WS_EX_TOPMOST * 0,
|
||||
szWindowClass , szTitle,WindowStyle, WindowX,
|
||||
WindowY, WindowWidth + (WinBorderWidth) * 1,
|
||||
WindowHeight + (WinBorderHeight +
|
||||
WinTitleSize) * 1, 0, 0, WindowINST, NULL);
|
||||
if (WindowHandle == 0){
|
||||
return false;
|
||||
}
|
||||
ShowWindow(WindowHandle,5);
|
||||
return true;
|
||||
};
|
||||
|
||||
//Unregisters, releases the DC if needed, and destroys the window.
|
||||
void WinDestroy()
|
||||
{
|
||||
if ((WindowDC > 0) && (ReleaseDC(WindowHandle, WindowDC) == 0)){
|
||||
WindowDC = 0;
|
||||
}
|
||||
if ((!WindowHandle == 0) && (!(DestroyWindow(WindowHandle)))){
|
||||
WindowHandle = 0;
|
||||
}
|
||||
if (!(UnregisterClassW(szWindowClass, WindowINST))){
|
||||
WindowINST = 0;
|
||||
}
|
||||
};
|
||||
|
||||
//This function processes any Windows messages we get. Keyboard, OnClose, etc
|
||||
LRESULT CALLBACK ProcessMessages(HWND__ *hWnd,unsigned int Msg,
|
||||
WPARAM wParam, LPARAM lParam)
|
||||
{
|
||||
switch (Msg){
|
||||
case WM_CHAR: //This handles most key presses
|
||||
lastchar=(int)wParam;
|
||||
switch (lastchar){
|
||||
case 13: //Reroute ENTER key for compatilbity purposes
|
||||
lastchar=10;
|
||||
break;
|
||||
case 8: //Reroute BACKSPACE key for compatilbity purposes
|
||||
lastchar=127;
|
||||
break;
|
||||
};
|
||||
break;
|
||||
case WM_KEYDOWN: //Here we handle non-character input
|
||||
switch (wParam){
|
||||
case VK_LEFT:
|
||||
lastchar = KEY_LEFT;
|
||||
break;
|
||||
case VK_RIGHT:
|
||||
lastchar = KEY_RIGHT;
|
||||
break;
|
||||
case VK_UP:
|
||||
lastchar = KEY_UP;
|
||||
break;
|
||||
case VK_DOWN:
|
||||
lastchar = KEY_DOWN;
|
||||
break;
|
||||
case VK_NEXT:
|
||||
lastchar = KEY_NPAGE;
|
||||
break;
|
||||
case VK_PRIOR:
|
||||
lastchar = KEY_PPAGE;
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
};
|
||||
case WM_ERASEBKGND:
|
||||
return 1; //We don't want to erase our background
|
||||
case WM_PAINT: //Pull from our backbuffer, onto the screen
|
||||
BitBlt(WindowDC, 0, 0, WindowWidth, WindowHeight, backbuffer, 0, 0,SRCCOPY);
|
||||
ValidateRect(WindowHandle,NULL);
|
||||
break;
|
||||
case WM_DESTROY:
|
||||
exit(0);//A messy exit, but easy way to escape game loop
|
||||
default://If we didnt process a message, return the default value for it
|
||||
return DefWindowProcW(hWnd, Msg, wParam, lParam);
|
||||
};
|
||||
return 0;
|
||||
};
|
||||
|
||||
//The following 3 methods use mem functions for fast drawing
|
||||
inline void VertLineDIB(int x, int y, int y2,int thickness, unsigned char color)
|
||||
{
|
||||
int j;
|
||||
for (j=y; j<y2; j++)
|
||||
memset(&dcbits[x+j*WindowWidth],color,thickness);
|
||||
};
|
||||
inline void HorzLineDIB(int x, int y, int x2,int thickness, unsigned char color)
|
||||
{
|
||||
int j;
|
||||
for (j=y; j<y+thickness; j++)
|
||||
memset(&dcbits[x+j*WindowWidth],color,x2-x);
|
||||
};
|
||||
inline void FillRectDIB(int x, int y, int width, int height, unsigned char color)
|
||||
{
|
||||
int j;
|
||||
for (j=y; j<y+height; j++)
|
||||
//NOTE TO FUTURE: this breaks if j is negative. Apparently it doesn't break if j is too large, though?
|
||||
memset(&dcbits[x+j*WindowWidth],color,width);
|
||||
};
|
||||
|
||||
void DrawWindow(WINDOW *win)
|
||||
{
|
||||
int i,j,drawx,drawy;
|
||||
char tmp;
|
||||
RECT update = {win->x * fontwidth, -1,
|
||||
(win->x + win->width) * fontwidth, -1};
|
||||
for (j=0; j<win->height; j++){
|
||||
if (win->line[j].touched)
|
||||
{
|
||||
update.bottom = (win->y+j+1)*fontheight;
|
||||
if (update.top == -1)
|
||||
{
|
||||
update.top = update.bottom - fontheight;
|
||||
}
|
||||
|
||||
win->line[j].touched=false;
|
||||
|
||||
for (i=0; i<win->width; i++){
|
||||
drawx=((win->x+i)*fontwidth);
|
||||
drawy=((win->y+j)*fontheight);//-j;
|
||||
if (((drawx+fontwidth)<=WindowWidth) && ((drawy+fontheight)<=WindowHeight)){
|
||||
tmp = win->line[j].chars[i];
|
||||
int FG = win->line[j].FG[i];
|
||||
int BG = win->line[j].BG[i];
|
||||
FillRectDIB(drawx,drawy,fontwidth,fontheight,BG);
|
||||
|
||||
if ( tmp > 0){
|
||||
//if (tmp==95){//If your font doesnt draw underscores..uncomment
|
||||
// HorzLineDIB(drawx,drawy+fontheight-2,drawx+fontwidth,1,FG);
|
||||
// } else { // all the wa to here
|
||||
int color = RGB(windowsPalette[FG].rgbRed,windowsPalette[FG].rgbGreen,windowsPalette[FG].rgbBlue);
|
||||
SetTextColor(backbuffer,color);
|
||||
ExtTextOut(backbuffer,drawx,drawy,0,NULL,&tmp,1,NULL);
|
||||
// } //and this line too.
|
||||
} else if ( tmp < 0 ) {
|
||||
switch (tmp) {
|
||||
case -60://box bottom/top side (horizontal line)
|
||||
HorzLineDIB(drawx,drawy+halfheight,drawx+fontwidth,1,FG);
|
||||
break;
|
||||
case -77://box left/right side (vertical line)
|
||||
VertLineDIB(drawx+halfwidth,drawy,drawy+fontheight,2,FG);
|
||||
break;
|
||||
case -38://box top left
|
||||
HorzLineDIB(drawx+halfwidth,drawy+halfheight,drawx+fontwidth,1,FG);
|
||||
VertLineDIB(drawx+halfwidth,drawy+halfheight,drawy+fontheight,2,FG);
|
||||
break;
|
||||
case -65://box top right
|
||||
HorzLineDIB(drawx,drawy+halfheight,drawx+halfwidth,1,FG);
|
||||
VertLineDIB(drawx+halfwidth,drawy+halfheight,drawy+fontheight,2,FG);
|
||||
break;
|
||||
case -39://box bottom right
|
||||
HorzLineDIB(drawx,drawy+halfheight,drawx+halfwidth,1,FG);
|
||||
VertLineDIB(drawx+halfwidth,drawy,drawy+halfheight+1,2,FG);
|
||||
break;
|
||||
case -64://box bottom left
|
||||
HorzLineDIB(drawx+halfwidth,drawy+halfheight,drawx+fontwidth,1,FG);
|
||||
VertLineDIB(drawx+halfwidth,drawy,drawy+halfheight+1,2,FG);
|
||||
break;
|
||||
case -63://box bottom north T (left, right, up)
|
||||
HorzLineDIB(drawx,drawy+halfheight,drawx+fontwidth,1,FG);
|
||||
VertLineDIB(drawx+halfwidth,drawy,drawy+halfheight,2,FG);
|
||||
break;
|
||||
case -61://box bottom east T (up, right, down)
|
||||
VertLineDIB(drawx+halfwidth,drawy,drawy+fontheight,2,FG);
|
||||
HorzLineDIB(drawx+halfwidth,drawy+halfheight,drawx+fontwidth,1,FG);
|
||||
break;
|
||||
case -62://box bottom south T (left, right, down)
|
||||
HorzLineDIB(drawx,drawy+halfheight,drawx+fontwidth,1,FG);
|
||||
VertLineDIB(drawx+halfwidth,drawy+halfheight,drawy+fontheight,2,FG);
|
||||
break;
|
||||
case -59://box X (left down up right)
|
||||
HorzLineDIB(drawx,drawy+halfheight,drawx+fontwidth,1,FG);
|
||||
VertLineDIB(drawx+halfwidth,drawy,drawy+fontheight,2,FG);
|
||||
break;
|
||||
case -76://box bottom east T (left, down, up)
|
||||
VertLineDIB(drawx+halfwidth,drawy,drawy+fontheight,2,FG);
|
||||
HorzLineDIB(drawx,drawy+halfheight,drawx+halfwidth,1,FG);
|
||||
break;
|
||||
default:
|
||||
// SetTextColor(DC,_windows[w].line[j].chars[i].color.FG);
|
||||
// TextOut(DC,drawx,drawy,&tmp,1);
|
||||
break;
|
||||
}
|
||||
};//switch (tmp)
|
||||
}//(tmp < 0)
|
||||
};//for (i=0;i<_windows[w].width;i++)
|
||||
}
|
||||
};// for (j=0;j<_windows[w].height;j++)
|
||||
win->draw=false; //We drew the window, mark it as so
|
||||
if (update.top != -1)
|
||||
{
|
||||
RedrawWindow(WindowHandle, &update, NULL, RDW_INVALIDATE | RDW_UPDATENOW);
|
||||
}
|
||||
};
|
||||
|
||||
//Check for any window messages (keypress, paint, mousemove, etc)
|
||||
void CheckMessages()
|
||||
{
|
||||
MSG msg;
|
||||
while (PeekMessage(&msg, 0 , 0, 0, PM_REMOVE)){
|
||||
TranslateMessage(&msg);
|
||||
DispatchMessage(&msg);
|
||||
}
|
||||
};
|
||||
|
||||
//***********************************
|
||||
//Psuedo-Curses Functions *
|
||||
//***********************************
|
||||
|
||||
//Basic Init, create the font, backbuffer, etc
|
||||
WINDOW *initscr(void)
|
||||
{
|
||||
// _windows = new WINDOW[20]; //initialize all of our variables
|
||||
BITMAPINFO bmi;
|
||||
lastchar=-1;
|
||||
inputdelay=-1;
|
||||
std::string typeface;
|
||||
char * typeface_c;
|
||||
std::ifstream fin;
|
||||
fin.open("data\\FONTDATA");
|
||||
if (!fin.is_open()){
|
||||
MessageBox(WindowHandle, "Failed to open FONTDATA, loading defaults.",
|
||||
NULL, 0);
|
||||
fontheight=16;
|
||||
fontwidth=8;
|
||||
} else {
|
||||
getline(fin, typeface);
|
||||
typeface_c= new char [typeface.size()+1];
|
||||
strcpy (typeface_c, typeface.c_str());
|
||||
fin >> fontwidth;
|
||||
fin >> fontheight;
|
||||
if ((fontwidth <= 4) || (fontheight <=4)){
|
||||
MessageBox(WindowHandle, "Invalid font size specified!",
|
||||
NULL, 0);
|
||||
fontheight=16;
|
||||
fontwidth=8;
|
||||
}
|
||||
}
|
||||
halfwidth=fontwidth / 2;
|
||||
halfheight=fontheight / 2;
|
||||
WindowWidth= (55 + (OPTIONS[OPT_VIEWPORT_X] * 2 + 1)) * fontwidth;
|
||||
WindowHeight= (OPTIONS[OPT_VIEWPORT_Y] * 2 + 1) *fontheight;
|
||||
WindowX=(GetSystemMetrics(SM_CXSCREEN) / 2)-WindowWidth/2; //center this
|
||||
WindowY=(GetSystemMetrics(SM_CYSCREEN) / 2)-WindowHeight/2; //sucker
|
||||
WinCreate(); //Create the actual window, register it, etc
|
||||
CheckMessages(); //Let the message queue handle setting up the window
|
||||
WindowDC = GetDC(WindowHandle);
|
||||
backbuffer = CreateCompatibleDC(WindowDC);
|
||||
ZeroMemory(&bmi, sizeof(BITMAPINFO));
|
||||
bmi.bmiHeader.biSize = sizeof(BITMAPINFOHEADER);
|
||||
bmi.bmiHeader.biWidth = WindowWidth;
|
||||
bmi.bmiHeader.biHeight = -WindowHeight;
|
||||
bmi.bmiHeader.biPlanes = 1;
|
||||
bmi.bmiHeader.biBitCount=8;
|
||||
bmi.bmiHeader.biCompression = BI_RGB; //store it in uncompressed bytes
|
||||
bmi.bmiHeader.biSizeImage = WindowWidth * WindowHeight * 1;
|
||||
bmi.bmiHeader.biClrUsed=16; //the number of colors in our palette
|
||||
bmi.bmiHeader.biClrImportant=16; //the number of colors in our palette
|
||||
backbit = CreateDIBSection(0, &bmi, DIB_RGB_COLORS, (void**)&dcbits, NULL, 0);
|
||||
DeleteObject(SelectObject(backbuffer, backbit));//load the buffer into DC
|
||||
|
||||
int nResults = AddFontResourceExA("data\\termfont",FR_PRIVATE,NULL);
|
||||
if (nResults>0){
|
||||
font = CreateFont(fontheight, fontwidth, 0, 0, FW_NORMAL, FALSE, FALSE, FALSE,
|
||||
ANSI_CHARSET, OUT_DEFAULT_PRECIS,CLIP_DEFAULT_PRECIS,
|
||||
PROOF_QUALITY, FF_MODERN, typeface_c); //Create our font
|
||||
|
||||
} else {
|
||||
MessageBox(WindowHandle, "Failed to load default font, using FixedSys.",
|
||||
NULL, 0);
|
||||
font = CreateFont(fontheight, fontwidth, 0, 0, FW_NORMAL, FALSE, FALSE, FALSE,
|
||||
ANSI_CHARSET, OUT_DEFAULT_PRECIS,CLIP_DEFAULT_PRECIS,
|
||||
PROOF_QUALITY, FF_MODERN, "FixedSys"); //Create our font
|
||||
}
|
||||
//FixedSys will be user-changable at some point in time??
|
||||
SetBkMode(backbuffer, TRANSPARENT);//Transparent font backgrounds
|
||||
SelectObject(backbuffer, font);//Load our font into the DC
|
||||
// WindowCount=0;
|
||||
|
||||
delete typeface_c;
|
||||
mainwin = newwin((OPTIONS[OPT_VIEWPORT_Y] * 2 + 1),(55 + (OPTIONS[OPT_VIEWPORT_Y] * 2 + 1)),0,0);
|
||||
return mainwin; //create the 'stdscr' window and return its ref
|
||||
};
|
||||
|
||||
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];
|
||||
newwindow->line[j].FG= new char[ncols];
|
||||
newwindow->line[j].BG= new char[ncols];
|
||||
newwindow->line[j].touched=true;//Touch them all !?
|
||||
for (i=0; i<ncols; i++)
|
||||
{
|
||||
newwindow->line[j].chars[i]=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, 179);
|
||||
if (rs>0)
|
||||
for (j=1; j<win->height-1; j++)
|
||||
mvwaddch(win, j, win->width-1, 179);
|
||||
if (ts>0)
|
||||
for (i=1; i<win->width-1; i++)
|
||||
mvwaddch(win, 0, i, 196);
|
||||
if (bs>0)
|
||||
for (i=1; i<win->width-1; i++)
|
||||
mvwaddch(win, win->height-1, i, 196);
|
||||
if (tl>0)
|
||||
mvwaddch(win,0, 0, 218);
|
||||
if (tr>0)
|
||||
mvwaddch(win,0, win->width-1, 191);
|
||||
if (bl>0)
|
||||
mvwaddch(win,win->height-1, 0, 192);
|
||||
if (br>0)
|
||||
mvwaddch(win,win->height-1, win->width-1, 217);
|
||||
//_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)
|
||||
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);
|
||||
}
|
||||
|
||||
//Not terribly sure how this function is suppose to work,
|
||||
//but jday helped to figure most of it out
|
||||
int wgetch(WINDOW* win)
|
||||
{
|
||||
// standards note: getch is sometimes required to call refresh
|
||||
// see, e.g., http://linux.die.net/man/3/getch
|
||||
// so although it's non-obvious, that refresh() call (and maybe InvalidateRect?) IS supposed to be there
|
||||
wrefresh(win);
|
||||
InvalidateRect(WindowHandle,NULL,true);
|
||||
lastchar=ERR;//ERR=-1
|
||||
if (inputdelay < 0)
|
||||
{
|
||||
do
|
||||
{
|
||||
CheckMessages();
|
||||
if (lastchar!=ERR) break;
|
||||
MsgWaitForMultipleObjects(0, NULL, FALSE, 50, QS_ALLEVENTS);//low cpu wait!
|
||||
}
|
||||
while (lastchar==ERR);
|
||||
}
|
||||
else if (inputdelay > 0)
|
||||
{
|
||||
unsigned long starttime=GetTickCount();
|
||||
unsigned long endtime;
|
||||
do
|
||||
{
|
||||
CheckMessages(); //MsgWaitForMultipleObjects won't work very good here
|
||||
endtime=GetTickCount(); //it responds to mouse movement, and WM_PAINT, not good
|
||||
if (lastchar!=ERR) break;
|
||||
Sleep(2);
|
||||
}
|
||||
while (endtime<(starttime+inputdelay));
|
||||
}
|
||||
else
|
||||
{
|
||||
CheckMessages();
|
||||
};
|
||||
Sleep(25);
|
||||
return lastchar;
|
||||
};
|
||||
|
||||
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);
|
||||
int j;
|
||||
for (j=0; j<size; j++){
|
||||
if (!(fmt[j]==10)){//check that this isnt a newline char
|
||||
if (win->cursorx <= win->width - 1 && win->cursory <= win->height - 1) {
|
||||
win->line[win->cursory].chars[win->cursorx]=fmt[j];
|
||||
win->line[win->cursory].FG[win->cursorx]=win->FG;
|
||||
win->line[win->cursory].BG[win->cursorx]=win->BG;
|
||||
win->line[win->cursory].touched=true;
|
||||
addedchar(win);
|
||||
} 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;
|
||||
}
|
||||
}
|
||||
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].FG[i]=0;
|
||||
win->line[j].BG[i]=0;
|
||||
}
|
||||
win->line[j].touched=true;
|
||||
}
|
||||
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)
|
||||
{
|
||||
DeleteObject(font);
|
||||
WinDestroy();
|
||||
RemoveFontResourceExA("data\\termfont",FR_PRIVATE,NULL);//Unload it
|
||||
return 1;
|
||||
};
|
||||
|
||||
//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);
|
||||
wrefresh(win);
|
||||
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;
|
||||
};
|
||||
|
||||
inline RGBQUAD BGR(int b, int g, int r)
|
||||
{
|
||||
RGBQUAD result;
|
||||
result.rgbBlue=b; //Blue
|
||||
result.rgbGreen=g; //Green
|
||||
result.rgbRed=r; //Red
|
||||
result.rgbReserved=0;//The Alpha, isnt used, so just set it to 0
|
||||
return result;
|
||||
};
|
||||
|
||||
int start_color(void)
|
||||
{
|
||||
colorpairs=new pairs[50];
|
||||
windowsPalette=new RGBQUAD[16]; //Colors in the struct are BGR!! not RGB!!
|
||||
windowsPalette[0]= BGR(0,0,0); // Black
|
||||
windowsPalette[1]= BGR(0, 0, 255); // Red
|
||||
windowsPalette[2]= BGR(0,110,0); // Green
|
||||
windowsPalette[3]= BGR(23,51,92); // Brown???
|
||||
windowsPalette[4]= BGR(200, 0, 0); // Blue
|
||||
windowsPalette[5]= BGR(98, 58, 139); // Purple
|
||||
windowsPalette[6]= BGR(180, 150, 0); // Cyan
|
||||
windowsPalette[7]= BGR(150, 150, 150);// Gray
|
||||
windowsPalette[8]= BGR(99, 99, 99);// Dark Gray
|
||||
windowsPalette[9]= BGR(150, 150, 255); // Light Red/Salmon?
|
||||
windowsPalette[10]= BGR(0, 255, 0); // Bright Green
|
||||
windowsPalette[11]= BGR(0, 255, 255); // Yellow
|
||||
windowsPalette[12]= BGR(255, 100, 100); // Light Blue
|
||||
windowsPalette[13]= BGR(240, 0, 255); // Pink
|
||||
windowsPalette[14]= BGR(255, 240, 0); // Light Cyan?
|
||||
windowsPalette[15]= BGR(255, 255, 255); //White
|
||||
return SetDIBColorTable(backbuffer, 0, 16, windowsPalette);
|
||||
};
|
||||
|
||||
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 4194424: //#define LINE_XOXO 4194424
|
||||
charcode=179;
|
||||
break;
|
||||
case 4194417: //#define LINE_OXOX 4194417
|
||||
charcode=196;
|
||||
break;
|
||||
case 4194413: //#define LINE_XXOO 4194413
|
||||
charcode=192;
|
||||
break;
|
||||
case 4194412: //#define LINE_OXXO 4194412
|
||||
charcode=218;
|
||||
break;
|
||||
case 4194411: //#define LINE_OOXX 4194411
|
||||
charcode=191;
|
||||
break;
|
||||
case 4194410: //#define LINE_XOOX 4194410
|
||||
charcode=217;
|
||||
break;
|
||||
case 4194422: //#define LINE_XXOX 4194422
|
||||
charcode=193;
|
||||
break;
|
||||
case 4194420: //#define LINE_XXXO 4194420
|
||||
charcode=195;
|
||||
break;
|
||||
case 4194421: //#define LINE_XOXX 4194421
|
||||
charcode=180;
|
||||
break;
|
||||
case 4194423: //#define LINE_OXXX 4194423
|
||||
charcode=194;
|
||||
break;
|
||||
case 4194414: //#define LINE_XXXX 4194414
|
||||
charcode=197;
|
||||
break;
|
||||
default:
|
||||
charcode = (char)ch;
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
int curx=win->cursorx;
|
||||
int cury=win->cursory;
|
||||
|
||||
//if (win2 > -1){
|
||||
win->line[cury].chars[curx]=charcode;
|
||||
win->line[cury].FG[curx]=win->FG;
|
||||
win->line[cury].BG[curx]=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)
|
||||
{
|
||||
inputdelay=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
|
||||
+31
-7
@@ -1,9 +1,15 @@
|
||||
#ifndef __CATACURSE__
|
||||
#define __CATACURSE__
|
||||
#if (defined _WIN32 || defined WINDOWS)
|
||||
#define _WIN32_WINNT 0x0500
|
||||
#define WIN32_LEAN_AND_MEAN
|
||||
#ifndef NOMINMAX
|
||||
#define NOMINMAX
|
||||
#endif
|
||||
//#define VC_EXTRALEAN
|
||||
#include <windows.h>
|
||||
#include "windows.h"
|
||||
#include "mmsystem.h"
|
||||
#endif
|
||||
#include <stdio.h>
|
||||
typedef int chtype;
|
||||
typedef unsigned short attr_t;
|
||||
@@ -43,6 +49,7 @@ typedef struct
|
||||
typedef struct{
|
||||
bool touched;
|
||||
char *chars;
|
||||
int width_in_bytes;
|
||||
char *FG;
|
||||
char *BG;
|
||||
//cursechar chars [80];
|
||||
@@ -97,8 +104,10 @@ 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_F(n) (0x108+n) /* F1, F2, etc*/
|
||||
#define KEY_NPAGE 0x152 /* page down */
|
||||
#define KEY_PPAGE 0x153 /* page up */
|
||||
#define KEY_ENTER 0x157 /* enter */
|
||||
|
||||
/* Curses external declarations. */
|
||||
|
||||
@@ -113,6 +122,16 @@ typedef struct {
|
||||
WINDOW *newwin(int nlines, int ncols, int begin_y, int begin_x);
|
||||
int delwin(WINDOW *win);
|
||||
int wborder(WINDOW *win, chtype ls, chtype rs, chtype ts, chtype bs, chtype tl, chtype tr, chtype bl, chtype br);
|
||||
|
||||
int hline(chtype ch, int n);
|
||||
int vline(chtype ch, int n);
|
||||
int whline(WINDOW *win, chtype ch, int n);
|
||||
int wvline(WINDOW *win, chtype ch, int n);
|
||||
int mvhline(int y, int x, chtype ch, int n);
|
||||
int mvvline(int y, int x, chtype ch, int n);
|
||||
int mvwhline(WINDOW *win, int y, int x, chtype ch, int n);
|
||||
int mvwvline(WINDOW *win, int y, int x, chtype ch, int n);
|
||||
|
||||
int wrefresh(WINDOW *win);
|
||||
int refresh(void);
|
||||
int getch(void);
|
||||
@@ -127,6 +146,7 @@ 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);
|
||||
@@ -152,10 +172,14 @@ void timeout(int delay);//PORTABILITY, DUMMY FUNCTION
|
||||
void set_escdelay(int delay);//PORTABILITY, DUMMY FUNCTION
|
||||
int echo(void);
|
||||
int noecho(void);
|
||||
//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);
|
||||
//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
|
||||
|
||||
+8
-2
@@ -10,7 +10,7 @@ catajson::catajson()
|
||||
path_msg = "";
|
||||
}
|
||||
|
||||
catajson::catajson(std::string path)
|
||||
catajson::catajson(std::string path, bool is_static)
|
||||
{
|
||||
std::ifstream file;
|
||||
file.open(path.c_str());
|
||||
@@ -21,7 +21,13 @@ catajson::catajson(std::string 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());
|
||||
if(is_static)
|
||||
{
|
||||
std::cout << "Parse error in " << path << std::endl << "ERROR: " << err;
|
||||
exit(1);
|
||||
}
|
||||
else
|
||||
debugmsg("Parse error in %s.\n\nERROR: %s", path.c_str(), err.c_str());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
+3
-1
@@ -8,7 +8,7 @@ class catajson
|
||||
{
|
||||
public:
|
||||
catajson();
|
||||
catajson(std::string path);
|
||||
catajson(std::string path, bool is_static = false);
|
||||
catajson(picojson::value val, std::string path_msg);
|
||||
|
||||
// accessors for picojson values containing simple types
|
||||
@@ -50,4 +50,6 @@ private:
|
||||
std::string path_msg; // used for error messages
|
||||
};
|
||||
|
||||
#define json_good() picojson::get_last_error().empty()
|
||||
|
||||
#endif
|
||||
|
||||
@@ -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=1tbs --indent=spaces=4 --align-pointer=name --max-code-length=100 --break-after-logical --indent-classes --indent-switches --indent-preprocessor --indent-col1-comments --min-conditional-indent=0 --pad-oper --add-brackets --convert-tabs
|
||||
|
||||
For example, from vi, set marks a and b around the block, then:
|
||||
:'a,'b ! astyle --style=1tbs --indent-spaces=4 --align-pointer=name --max-code-length=100 --break-after-logical --indent-classes --indent-switches --indent-preprocessor --indent-col1-comments --min-conditional-indent=0 --pad-oper --add-brackets --convert-tabs
|
||||
@@ -0,0 +1,103 @@
|
||||
#ADDING STUFF
|
||||
##Adding a monster
|
||||
1. Edit mtype.h. Change the enum mon_id and insert a unique identifier for
|
||||
your new monster type. Be sure to put it among similar monsters.
|
||||
2. Edit montypedef.cpp. A macro is used for monsters and it is pretty
|
||||
straightforward (Any of this ring a bell?). Be ABSOLUTELY sure that you
|
||||
insert the macro at the same point in the list as your inserted the
|
||||
identifier in mon_id!
|
||||
3. Your monster type is now valid, but won't be spawned. If you want it to be
|
||||
spawned among similar monsters, edit mongroupdef.cpp. Find the appropriate
|
||||
array, and insert the identifier for your monster (e.g, mon_zombie). Make
|
||||
sure it comes in before the NULL at the end of the list.
|
||||
4. If you want your monster to drop items, edit monitemsdef.cpp. Make a new
|
||||
array for your monster type with all the map item groups it may carry, and a
|
||||
chance value for each.
|
||||
5. Your monster may have a special attack, a monattack::function reference.
|
||||
Edit monattack.h and include the function in the class definition; then
|
||||
edit monattack.cpp and define your function. Functions may be shared among
|
||||
different monster types. Be aware that the function should contain a
|
||||
statement that the monster uses to decide whether or not to use the attack,
|
||||
and if they do, should reset the monster's attack timer.
|
||||
6. Just like attacks, some monsters may have a special function called when
|
||||
they die. This works the same as attacks, but the relevent files are
|
||||
mondeath.h and mondeath.cpp.
|
||||
|
||||
##Adding structures to the map
|
||||
Most "regular" buildings are spawned in cities (large clusters of buildings which are located rather close to each other).
|
||||
In file omdata.h in the enum oter_id structure define names (code identifiers) for your building.
|
||||
If you want your building to be displayed at overmap in different orientations, you should add 4 identifiers for each orientation (south, east, west and north correspondingly).
|
||||
In the same file in `structure const oter_t oterlist[num_ter_types]`
|
||||
we should define how these buildings will be displayed, how much they obscure vision and which extras set they have. For example:
|
||||
```C++
|
||||
{"mil. surplus", '^', c_white, 5, build_extras, false, false},
|
||||
{"mil. surplus", '>', c_white, 5, build_extras, false, false},
|
||||
{"mil. surplus", 'v', c_white, 5, build_extras, false, false},
|
||||
{"mil. surplus", '<', c_white, 5, build_extras, false, false}
|
||||
```
|
||||
Comments at the beginning of this structure are rather useful.
|
||||
In the file `mapgen.cpp` find the subroutine called `draw_map(...);`
|
||||
where you should find a huge variant operator ("switch"). This is where you should
|
||||
put your code defining the new building by adding new case-statement.
|
||||
|
||||
It should be mentioned that most buildings are built on the square `SEEX*2 x SEEY*2` tiles.
|
||||
|
||||
If you want your building to be spawned not only in city limits you should refer to structures in file `omdata.h` (starting from the line `#define OMSPEC_FREQ 7`).
|
||||
These structures are also commented in source code. Add new identifier in enum omspec_id structure before
|
||||
`NUM_OMSPECS` and then add a record in `const overmap_special overmap_specials[NUM_OMSPECS]` array. For example:
|
||||
```C++
|
||||
{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` explain the meaning of these constants in the example above.
|
||||
|
||||
##Adding a bionic
|
||||
1. Edit data/raw/bionics.json and add your bionic near similar types. See JSON_INFO for a more in-depth review of the individual fields.
|
||||
2. If you want the bionic to be available in the gameworld as an item, add it to item_groups.json
|
||||
3. Manually code in effects into the appropriate files
|
||||
|
||||
|
||||
##How armour protection is calculated
|
||||
1. 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)
|
||||
2. 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
|
||||
3. If the above roll succeeds, the armour is hit, possibly absorbing some damage and possibly getting damaged in the process
|
||||
4. The above steps are repeated for each layer of armour on the body part
|
||||
5. 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
|
||||
6. If the armour is made from 2 materials types, then it takes a weighted average of the primary material (66%) and secondary material (33%).
|
||||
7. Materials resistance factors are given relative to PAPER as a material (this probably needs some fine-tuning for balance).
|
||||
|
||||
##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
|
||||
|
||||
|
||||
#FAQ
|
||||
**Q: What the heck is up with the map objects?**
|
||||
|
||||
A: The pertinent map objects are submap, mapbuffer, map, and overmap.
|
||||
The submap contains the actual map data, in SEEXxSEEY chunks.
|
||||
Vehicles and Spawns are stored in vectors because they're relatively sparse.
|
||||
Submaps live in the single global mapbuffer, MAPBUFFER.
|
||||
Map encapsulates the area around the player that is currently active.
|
||||
It contains an array of MAPSIZE * MAPSIZE submap pointers called grid.
|
||||
This is a 2D array, but is mapped to a 1D array for (questionable) indexing purposes.
|
||||
When the player moves from one submap to another, map::shift() is called.
|
||||
It moves the pointers in grid to keep the player centered.
|
||||
The leading edge of grid is populated by map::load()
|
||||
If the submap has been visited before, it's loaded from MAPBUFFER
|
||||
Otherwise a 2x2 chunk of submaps is generated based on the corresponding overmap square type.
|
||||
An overmap encapsulates the large-scale structure of a map
|
||||
Such as location and layout of cities, forests, rivers, roads, etc...
|
||||
There are an arbitrary number of overmaps
|
||||
Additional overmaps are generated as the player enters new areas.
|
||||
|
||||
**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.
|
||||
@@ -1,85 +0,0 @@
|
||||
ADDITIONS
|
||||
|
||||
1.1 Adding an item
|
||||
1) Edit itype.h. Change the enum item_id and insert a unique identifier for
|
||||
your new item type. Be sure to put it among similar items.
|
||||
2) Edit itypedef.cpp. Macros are used for all item types, and they are pretty
|
||||
self-explanatory. Be ABSOLUTELY sure that you insert the macro at the same
|
||||
point in the list as you inserted the identifier in item_id!
|
||||
3) Your item type is now valid, but won't be spawned. If you want it to be
|
||||
spawned among similar items, edit mapitemsdef.cpp. Find the appropriate
|
||||
array(s), and insert the identifier for your item (e.g. itm_aspirin). Make
|
||||
sure it comes in before the NULL at the end of the list.
|
||||
5) Some items, like tools or food, also take an iuse::function reference.
|
||||
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.
|
||||
|
||||
1.2 Adding a monster
|
||||
1) Edit mtype.h. Change the enum mon_id and insert a unique identifier for
|
||||
your new monster type. Be sure to put it among similar monsters.
|
||||
2) Edit mtypedef.cpp. A macro is used for monsters and it is pretty
|
||||
straightforward (Any of this ring a bell?). Be ABSOLUTELY sure that you
|
||||
insert the macro at the same point in the list as your inserted the
|
||||
identifier in mon_id!
|
||||
3) Your monster type is now valid, but won't be spawned. If you want it to be
|
||||
spawned among similar monsters, edit mongroupdef.cpp. Find the appropriate
|
||||
array, and insert the identifier for your monster (e.g, mon_zombie). Make
|
||||
sure it comes in before the NULL at the end of the list.
|
||||
4) If you want your monster to drop items, edit monitemsdef.cpp. Make a new
|
||||
array for your monster type with all the map item groups it may carry, and a
|
||||
chance value for each.
|
||||
5) Your monster may have a special attack, a monattack::function reference.
|
||||
Edit monattack.h and include the function in the class definition; then
|
||||
edit monattack.cpp and define your function. Functions may be shared among
|
||||
different monster types. Be aware that the function should contain a
|
||||
statement that the monster uses to decide whether or not to use the attack,
|
||||
and if they do, should reset the monster's attack timer.
|
||||
7) Just like attacks, some monsters may have a special function called when
|
||||
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,84 +0,0 @@
|
||||
ENUMS
|
||||
|
||||
This is a guide to all the enumerations in the game. If you encounter a flag
|
||||
you don't understand, grep it here. Likewise if a function accepts an m_flags
|
||||
tag, grep this document for 'm_flags'. Enums are also labeled with the file in
|
||||
which they are defined.
|
||||
|
||||
Format:
|
||||
|
||||
<File with definition> : <Name of enum>
|
||||
<List of values...>
|
||||
<Related classes, files, notes...>
|
||||
|
||||
----------------------------------------
|
||||
|
||||
bionics.h : bionic_id
|
||||
bio_null, bio_batteries, bio_metabolics, bio_solar, bio_furnace, bio_ethanol,
|
||||
bio_memory, bio_ears, bio_eye_enhancer, bio_membrane, bio_targeting, bio_gills,
|
||||
bio_purifier, bio_climate, bio_storage, bio_recycler, bio_digestion, bio_tools,
|
||||
bio_shock, bio_heat_absorb, bio_carbon, bio_armor_head, bio_armor_torso,
|
||||
bio_armor_arms, bio_armor_legs, bio_flashlight, bio_night_vision, bio_infrared,
|
||||
bio_face_mask, bio_ads, bio_ods, bio_scent_mask, bio_cloak, bio_painkiller,
|
||||
bio_nanobots, bio_heatsink, bio_resonator, bio_time_freeze, bio_teleport,
|
||||
bio_blood_anal, bio_blood_filter, bio_alarm, bio_evap, bio_lighter, bio_claws,
|
||||
bio_blaster, bio_laser, bio_emp, bio_hydraulics, bio_water_extractor,
|
||||
bio_magnet, bio_fingerhack, bio_lockpick, bio_ground_sonar, max_bio_start,
|
||||
bio_banish, bio_gate_out, bio_gate_in, bio_nightfall, bio_drilldown,
|
||||
bio_heatwave, bio_lightning, bio_tremor, bio_flashflood, max_bio_good,
|
||||
bio_dis_shock, bio_dis_acid, bio_drain, bio_noise, bio_power_weakness,
|
||||
bio_stiff, max_bio
|
||||
|
||||
bodypart.h : body_part
|
||||
color.h : col_attribute
|
||||
color.h : nc_color
|
||||
crafting.h : craft_cat
|
||||
dialogue.h : talk_topic
|
||||
enums.h : material
|
||||
event.h : event_type
|
||||
faction.h : faction_goal
|
||||
faction.h : faction_job
|
||||
faction.h : faction_value
|
||||
game.h : tut_type
|
||||
itype.h : itype_id
|
||||
itype.h : item_cat
|
||||
itype.h : ammotype
|
||||
itype.h : weapon_flag
|
||||
itype.h : container_flags
|
||||
line.h : direction
|
||||
map.cpp : astar_list
|
||||
mapdata.h : t_flag
|
||||
mapdata.h : ter_id
|
||||
mapdata.h : map_extra
|
||||
mapdata.h : field_id
|
||||
mapgen.cpp : room_type
|
||||
mapitems.h : items_location
|
||||
mission.h : mission_id
|
||||
mission.h : mission_origin
|
||||
mission.h : mission_goal
|
||||
mongroup.h : moncat_id
|
||||
monster.h : monster_effect_type
|
||||
morale.h:enum morale_type
|
||||
mtype.h : mon_id
|
||||
mtype.h : m_size
|
||||
mtype.h : m_flags
|
||||
npc.h : npc_attitude
|
||||
npc.h : npc_mission
|
||||
npc.h : npc_class
|
||||
npc.h : npc_action
|
||||
npc.h : npc_need
|
||||
npc.h : npc_flag
|
||||
omdata.h : oter_id
|
||||
omdata.h:// Order MUST match enum oter_id above!
|
||||
overmap.h:#include "enums.h"
|
||||
pldata.h : character_type
|
||||
pldata.h : dis_type
|
||||
pldata.h : add_type
|
||||
pldata.h : activity_type
|
||||
pldata.h : pl_flag
|
||||
pldata.h : hp_part
|
||||
skill.h : skill
|
||||
trap.h : trap_id
|
||||
tutorial.h : tut_lesson
|
||||
weather.h : season_type
|
||||
weather.h : weather_type
|
||||
@@ -0,0 +1,96 @@
|
||||
#ENUMS
|
||||
|
||||
Format: File with definition : Name of enum
|
||||
* action.h : action_id
|
||||
* artifact.h : art_effect_passive
|
||||
* artifact.h : art_effect_active
|
||||
* artifact.h : art_charge
|
||||
* artifact.h : artifact_natural_shape
|
||||
* artifact.h : artifact_natural_property
|
||||
* artifactdata.h : artifact_weapon_type
|
||||
* artifactdata.h : artifact_tool_form
|
||||
* artifactdata.h : artifact_armor_mod
|
||||
* artifactdata.h : artifact_armor_form
|
||||
* bodypart.h : body_part
|
||||
* calendar.cpp : weekday
|
||||
* calendar.h : season_type
|
||||
* calendar.h : moon_phase
|
||||
* color.h : col_attribute
|
||||
* color.h : nc_color
|
||||
* computer.h : computer_action
|
||||
* computer.h : computer_failure
|
||||
* debug.h : DebugLevel
|
||||
* debug.h : DebugClass
|
||||
* dialogue.h : talk_trial
|
||||
* disease.cpp : dis_type_enum
|
||||
* enums.h : phase_id
|
||||
* enums.h : damage_type
|
||||
* event.h : event_type
|
||||
* faction.h : faction_goal
|
||||
* faction.h : faction_job
|
||||
* faction.h : faction_value
|
||||
* field.h : field_id
|
||||
* game.cpp : ter_id v_wall_type
|
||||
* game.cpp : ter_id h_wall_type
|
||||
* game.cpp : ter_id door_type
|
||||
* game.cpp : ter_id floor_type
|
||||
* game.h : tut_type
|
||||
* game.h : input_ret
|
||||
* game.h : quit_status
|
||||
* gamemode.h : special_game_id
|
||||
* gamemode.h : tut_lesson
|
||||
* gamemode.h : defense_style
|
||||
* gamemode.h : defense_location
|
||||
* gamemode.h : caravan_category
|
||||
* input.h : InputEvent
|
||||
* item.h : hint_rating
|
||||
* itype.h : item_cat
|
||||
* itype.h : software_type
|
||||
* itype.h : technique_id
|
||||
* itype.h : bigness_property_aspect
|
||||
* lightmap.h : lit_level
|
||||
* line.h : direction
|
||||
* map.cpp : astar_list
|
||||
* mapdata.h : t_flag
|
||||
* mapdata.h : ter_id
|
||||
* mapdata.h : furn_id
|
||||
* mapdata.h : map_extra
|
||||
* mapgen.cpp : room_type
|
||||
* mission.h : talk_topic
|
||||
* mission.h : mission_id
|
||||
* mission.h : mission_origin
|
||||
* mission.h : mission_goal
|
||||
* monster.h : monster_effect_type
|
||||
* monster.h : monster_attitude
|
||||
* morale.h : morale_type
|
||||
* mtype.h : monster_species
|
||||
* mtype.h : mon_id
|
||||
* mtype.h : m_size
|
||||
* mtype.h : monster_trigger
|
||||
* mtype.h : m_flag
|
||||
* mtype.h : m_category
|
||||
* npc.h : npc_attitude
|
||||
* npc.h : npc_mission
|
||||
* npc.h : npc_class
|
||||
* npc.h : npc_action
|
||||
* npc.h : npc_need
|
||||
* npc.h : npc_flag
|
||||
* npc.h : npc_favor_type
|
||||
* npc.h : combat_engagement
|
||||
* npc.h : talk_topic
|
||||
* omdata.h : oter_id
|
||||
* omdata.h : omspec_flag
|
||||
* omdata.h : omspec_id
|
||||
* omdata.h : overmap_zone
|
||||
* overmpa.h : radio_type
|
||||
* pldata.h : character_type
|
||||
* pldata.h : add_type
|
||||
* pldata.h : activity_type
|
||||
* pldata.h : pl_flag
|
||||
* pldata.h : hp_part
|
||||
* trap.h : trap_id
|
||||
* veh_interact.h : sel_types
|
||||
* veh_type : vpart_id
|
||||
* vehicle.cpp : vehicle_controls
|
||||
* vehicle.h : veh_coll_type
|
||||
* weather.h : weather_type
|
||||
@@ -1,18 +1,17 @@
|
||||
#0 Table of Contents
|
||||
##0 Table of Contents
|
||||
|
||||
#0 Table of Contents
|
||||
#1 Files
|
||||
#2 special_game class
|
||||
#3 Functions
|
||||
#3.0 id()
|
||||
#3.1 init()
|
||||
#3.2 per_turn()
|
||||
#3.3 pre_action()
|
||||
#3.4 post_action()
|
||||
#3.5 game_over()
|
||||
|
||||
#1 Files
|
||||
* 0 Table of Contents
|
||||
* 1 Files
|
||||
* 2 special_game class
|
||||
* 3 Functions
|
||||
* 3.0 id()
|
||||
* 3.1 init()
|
||||
* 3.2 per_turn()
|
||||
* 3.3 pre_action()
|
||||
* 3.4 post_action()
|
||||
* 3.5 game_over()
|
||||
|
||||
##1 Files
|
||||
The main file to be concerned with is gamemode.h.
|
||||
|
||||
This is where you can insert the class definition for your game mode, and any
|
||||
@@ -30,10 +29,7 @@ respectively.
|
||||
If you add a new game mode, use <mode name>.cpp for its code and <mode name>.h
|
||||
for any static data associated with it.
|
||||
|
||||
|
||||
|
||||
#2 special_game class
|
||||
|
||||
##2 special_game class
|
||||
Every new game mode is a child class of special_game. It may house any private
|
||||
functions and variables it needs, as well as a constructor, but otherwise the
|
||||
only public members should be the five functions described below.
|
||||
@@ -45,77 +41,68 @@ class.
|
||||
There is an enum, special_game_id, at the top of gamemode.h. There should be
|
||||
one entry for every game mode in existance. Add one for yours.
|
||||
|
||||
|
||||
|
||||
#3 Functions
|
||||
|
||||
|
||||
#3.0 id()
|
||||
##3 Functions
|
||||
###3.0 id()
|
||||
|
||||
virtual special_game_id id();
|
||||
|
||||
Returns the special_game_id assigned to your game mode.
|
||||
|
||||
|
||||
#3.1 init()
|
||||
###3.1 init()
|
||||
|
||||
virtual void init(game *g);
|
||||
|
||||
This is run when your game mode begins.
|
||||
|
||||
Some ideas:
|
||||
>>Change the itype and mtype definitions--remove certain monsters from
|
||||
>Some ideas:
|
||||
>Change the itype and mtype definitions--remove certain monsters from
|
||||
the game, make certain items weightless, make baseballs bats uber-powerful
|
||||
>>Change the recipes. Add new ones, reduce the time crafting takes.
|
||||
>>Start the game in a special area. Edit the world to be entirely swamp.
|
||||
>Change the recipes. Add new ones, reduce the time crafting takes.
|
||||
>Start the game in a special area. Edit the world to be entirely swamp.
|
||||
|
||||
|
||||
#3.2 per_turn()
|
||||
###3.2 per_turn()
|
||||
|
||||
virtual void per_turn(game *g);
|
||||
|
||||
This is run every turn, before anything else is done, including player actions.
|
||||
|
||||
Some ideas:
|
||||
>>Reset the player's thirst, hunger, or fatigue to 0, eliminating these needs
|
||||
>>Spawn some monsters every 50 turns
|
||||
>>Make fire burn off faster
|
||||
>>Add a chance for a space debris to fall
|
||||
>Some ideas:
|
||||
>Reset the player's thirst, hunger, or fatigue to 0, eliminating these needs
|
||||
>Spawn some monsters every 50 turns
|
||||
>Make fire burn off faster
|
||||
>Add a chance for a space debris to fall
|
||||
|
||||
|
||||
#3.3 pre_action()
|
||||
###3.3 pre_action()
|
||||
|
||||
virtual void pre_action(game *g, action_id &act);
|
||||
|
||||
This is run after a keypress, but before the action is performed. The action
|
||||
is passed by reference, so you can modify it if you like.
|
||||
|
||||
Some ideas:
|
||||
>>Rewrite the functionality of actions entirely; change the long wait menu,
|
||||
>Some ideas:
|
||||
>Rewrite the functionality of actions entirely; change the long wait menu,
|
||||
for example
|
||||
>>Disallow certain actions by setting act to ACTION_NULL
|
||||
>>Add a confirmation request to certain actions
|
||||
>>Make the availability of certain actions dependant on game state
|
||||
>Disallow certain actions by setting act to ACTION_NULL
|
||||
>Add a confirmation request to certain actions
|
||||
>Make the availability of certain actions dependant on game state
|
||||
|
||||
|
||||
#3.4 post_action()
|
||||
###3.4 post_action()
|
||||
|
||||
virtual void post_action(game *g, action_id act);
|
||||
|
||||
This is run after an action is performed.
|
||||
|
||||
Some ideas:
|
||||
>>Make certain actions perform faster by rebating movement points
|
||||
>>Add extra effects to certain actions
|
||||
>>Display a message upon execution of certain actions
|
||||
>Some ideas:
|
||||
>Make certain actions perform faster by rebating movement points
|
||||
>Add extra effects to certain actions
|
||||
>Display a message upon execution of certain actions
|
||||
|
||||
|
||||
#3.5 game_over()
|
||||
###3.5 game_over()
|
||||
|
||||
virtual void game_over(game *g);
|
||||
|
||||
This is run when the game is over (player quit or died).
|
||||
|
||||
Some ideas:
|
||||
>>Add a special achievement message, e.g. number of rounds survived
|
||||
>>Delete any special files created during play
|
||||
>Some ideas:
|
||||
>Add a special achievement message, e.g. number of rounds survived
|
||||
>Delete any special files created during play
|
||||
@@ -1,15 +1,18 @@
|
||||
Stat system scaling:
|
||||
Minimum stat: 1 (should only happen due to penalties)
|
||||
Minimum stat: 0 (should only happen due to penalties, instant failure in most scenarios)
|
||||
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)
|
||||
Maximum skill: 10 (requires regular training to maintain, "professional" level)
|
||||
|
||||
Monster melee skill scaling:
|
||||
Ranges from 8 to 16
|
||||
Minimum skill: 0 (no combat potential)
|
||||
Nominal skill: 8 (average Zed)
|
||||
Very high stat: 16 (skilled in combat)
|
||||
Maximal stat: 20 (highest for balance purposes)
|
||||
|
||||
Dodge System assumptions:
|
||||
Dodge chance is based on attacker's melee skill and target's dex stat and dodge skill.
|
||||
@@ -18,15 +21,14 @@ Successful dodges negate the attack and impose a cumulative penalty on dodges wi
|
||||
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 corcumstances against a skilled opponent should rarely if ever 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 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.
|
||||
|
||||
@@ -0,0 +1,422 @@
|
||||
# JSON file contents
|
||||
|
||||
##raw
|
||||
* bionics.json - bionics, does NOT include bionic effects
|
||||
* dreams.json - dream text and linked mutation categories
|
||||
* item_groups.json - item spawn groups
|
||||
* materials.json - material types
|
||||
* monstergroups.json - monster spawn groups
|
||||
* names.json - names used for NPC/player name generation
|
||||
* professions.json - profession definitions
|
||||
* recipes.json - crafting/disassembly recipes
|
||||
* skills.json - skill descriptions and ID's
|
||||
* snippets.json - flier/poster descriptions
|
||||
* mutations.json - traits/mutations
|
||||
* vehicle_parts.json - vehicle parts, does NOT affect flag effects
|
||||
* vehicles.json - vehicle definitions
|
||||
|
||||
##raw/items
|
||||
* archery.json - bows and arrows
|
||||
* ranged.json - guns
|
||||
* tools.json - tools and items that can be (a)ctivated
|
||||
* ammo.json - ammo
|
||||
* books.json - books
|
||||
* comestibles.json - food/drinks
|
||||
* containers.json - containers
|
||||
* instruments.json - instruments
|
||||
* melee.json - anything that doesn't go in the other item jsons, melee weapons
|
||||
* mods.json - gunmods
|
||||
|
||||
#raw jsons
|
||||
|
||||
###BIONICS
|
||||
```C++
|
||||
"id" : "bio_batteries", // Unique ID. Must be one continuous word, use underscores if necessary
|
||||
"name" : "Battery System", // In-game name displayed
|
||||
"cost" : 0, // How many PUs it costs to use the bionic.
|
||||
"time" : 0, // How long, when activated, between drawing cost. If 0, it draws power once.
|
||||
"flags" : ["POWER"], // Used to flag the bionic as a specific type.
|
||||
"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." // In-game description
|
||||
```
|
||||
###DREAMS
|
||||
```C++
|
||||
"message" : [ // List of potential dreams
|
||||
"You have a strange dream about birds.",
|
||||
"Your dreams give you a strange feathered feeling."
|
||||
],
|
||||
"category" : "MUTCAT_BIRD", // Mutation category needed to dream
|
||||
"strength" : 1 // Mutation category strength required
|
||||
1 = 20 - 34
|
||||
2 = 35 - 49
|
||||
3 = 50+
|
||||
```
|
||||
###ITEM GROUPS
|
||||
```C++
|
||||
"id":"forest", // Unique ID. Must be one continuous word, use underscores if necessary
|
||||
"items":[ // List of potential item ID's. Chance of an item spawning is x/T, where
|
||||
["rock", 40], // X is the value linked to the specific item and T is the total of all
|
||||
["stick", 95], // item values in a group
|
||||
["mushroom", 4],
|
||||
["mushroom_poison", 3],
|
||||
["mushroom_magic", 1],
|
||||
["blueberries", 3]
|
||||
]
|
||||
```
|
||||
###MATERIALS
|
||||
```C++
|
||||
"ident" : "hflesh", // Unique ID. Must be one continuous word, use underscores if necessary
|
||||
"name" : "Human Flesh", // In-game name displayed
|
||||
"bash_resist" : 1, // How well a material resists bashing damage
|
||||
"cut_resist" : 1, // How well a material resists cutting damage
|
||||
"bash_dmg_verb" : "bruised", // Verb used when material takes bashing damage
|
||||
"cut_dmg_verb" : "sliced", // Verb used when material takes cutting damage
|
||||
"dmg_adj" : ["bruised", "mutilated", "badly mutilated", "thoroughly mutilated"], // Description added to damaged item in ascending severity
|
||||
"acid_resist" : 1, // Ability of a material to resist acid
|
||||
"elec_resist" : 1, // Ability of a material to resist electricity
|
||||
"fire_resist" : 0, // Ability of a material to resist fire
|
||||
"density" : 5 // Density of a material
|
||||
```
|
||||
###MONSTER GROUPS
|
||||
```C++
|
||||
"name" : "GROUP_ANT", // Unique ID. Must be one continuous word, use underscores if necessary
|
||||
"default" : "mon_ant", // Default monster, automatically fills in any remaining spawn chances
|
||||
"monsters" : [
|
||||
{ "monster" : "mon_ant_larva", "freq" : 40, "multiplier" : 0 }, // To choose monster spawned game creates 1000 entries and picks one.
|
||||
{ "monster" : "mon_ant_soldier", "freq" : 90, "multiplier" : 5 }, // Each monster will have a number of entries equal to it's "freq" and
|
||||
{ "monster" : "mon_ant_queen", "freq" : 0, "multiplier" : 0 } // the default monster will fill in the remaining. "multiplier" increases
|
||||
] // how much each monster counts for in a spawn group (i.e. will spawn 5 larva or 1 soldier)
|
||||
```
|
||||
###NAMES
|
||||
```C++
|
||||
{ "name" : "Aaliyah", "gender" : "female", "usage" : "given" }, // Name, gender, "given"/"family"/"city" (first/last/city name).
|
||||
// NOTE: Please refrain from adding name PR's in order to maintain kickstarter exclusivity
|
||||
```
|
||||
###PROFESSIONS
|
||||
```C++
|
||||
"description":"Ever since you were a child you loved hunting, and you loved the challenge of hunting with a bow even more. You start with a level in archery and survival.", // In-game description
|
||||
"ident":"hunter", // Unique ID. Must be one continuous word, use underscores if necessary
|
||||
"items":[ // ID's of items player starts with when selecting this profession
|
||||
"army_top",
|
||||
"boots_steel",
|
||||
"jeans"
|
||||
],
|
||||
"name":"Bow Hunter", // In-game name displayed
|
||||
"points":2, // Point cost of profession. Positive values cost points and negative values grant points
|
||||
"addictions" : [ // Optional list of starting addictions.
|
||||
{
|
||||
"type": "nicotine", // ID of addiction
|
||||
"intensity" : 10, // Intensity of starting addiction
|
||||
}
|
||||
"skills":[ // Skills that the player starts with when selecting this profession, stacks with purchased skills
|
||||
{
|
||||
"level":1, // Skill level granted
|
||||
"name":"archery" // ID of granted skill
|
||||
},
|
||||
{
|
||||
"level":1,
|
||||
"name":"survival"
|
||||
}
|
||||
]
|
||||
```
|
||||
###RECIPES
|
||||
```C++
|
||||
"result": "javelin", // ID of resulting item
|
||||
"category": "CC_WEAPON", // Category of crafting recipe. CC_NONCRAFT used for disassembly recipes
|
||||
"skill_used": "fabrication", // Skill trained and used for success checks
|
||||
"requires_skills": [ "survival", 1, "throw", 2 ], // Skills required to unlock recipe
|
||||
"difficulty": 3, // Difficulty of success check
|
||||
"time": 5000, // Time to perform recipe
|
||||
"reversible": false, // Can be disassembled.
|
||||
"autolearn": true, // Automatically learned upon gaining required skills
|
||||
"tools": [ // Tools needed to craft
|
||||
[ // Equivalent tools are surrounded by a single set of brackets []
|
||||
[ "hatchet", -1 ], // Charges consumed when tool is used, -1 means no charges are consumed
|
||||
[ "knife_steak", -1 ],
|
||||
[ "knife_combat", -1 ],
|
||||
[ "knife_butcher", -1 ],
|
||||
[ "pockknife", -1 ],
|
||||
[ "scalpel", -1 ],
|
||||
[ "machete", -1 ],
|
||||
[ "broadsword", -1 ],
|
||||
[ "toolset", -1 ]
|
||||
],
|
||||
[
|
||||
[ "fire", -1 ]
|
||||
]
|
||||
],
|
||||
"components": [ // Equivalent components are surrounded by a single set of brackets
|
||||
[
|
||||
[ "spear_wood", 1 ], // Number of charges/items required
|
||||
[ "pointy_stick", 1 ]
|
||||
],
|
||||
[
|
||||
[ "rag", 1 ],
|
||||
[ "leather", 1 ],
|
||||
[ "fur", 1 ]
|
||||
],
|
||||
[
|
||||
[ "plant_fibre", 20 ],
|
||||
[ "sinew", 20 ],
|
||||
[ "thread", 20 ],
|
||||
[ "duct_tape", 20 ]
|
||||
]
|
||||
]
|
||||
```
|
||||
###SKILLS
|
||||
```C++
|
||||
"smg", // Unique ID. Must be one continuous word, use underscores if necessary
|
||||
"submachine guns", // In-game name displayed
|
||||
"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.", // In-game description
|
||||
["gun_type"] // Special flags, most skills will have an empty list "[]"
|
||||
```
|
||||
###SNIPPETS
|
||||
```C++
|
||||
"category": "flier", // Category used
|
||||
"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!\"" // In-game description
|
||||
```
|
||||
###TRAITS/MUTATIONS
|
||||
```C++
|
||||
"id": "LIGHTEATER", // Unique ID
|
||||
"name": "Optimist", // In-game name displayed
|
||||
"points": 2, // Point cost of the trait. Positive values cost points and negative values give points
|
||||
"visibility": 0, // Visibility of the trait for purposes of NPC interaction
|
||||
"ugliness": 0, // Ugliness of the trait for purposes of NPC interaction
|
||||
"description": "Nothing gets you down!" // In-game description
|
||||
"starting_trait": true, // Can be selected at character creation
|
||||
"valid": false, // Can be mutated ingame
|
||||
"category": ["MUTCAT_BIRD", "MUTCAT_INSECT"], // Categories containing this mutation
|
||||
"prereqs": ["SKIN_ROUGH"], // Needs these mutations before you can mutate toward this mutation
|
||||
"cancels": ["ROT1", "ROT2", "ROT3"], // Cancels these mutations when mutating
|
||||
"changes_to": ["FASTHEALER2"], // Can change into these mutations when mutating further
|
||||
"wet_protection":[{ "part": "HEAD", // Wet Protection on specific bodyparts
|
||||
"good": 1 } ] // "neutral/good/ignored" // Good increases pos and cancels neg, neut cancels neg, ignored cancels both
|
||||
```
|
||||
###VEHICLE PARTS
|
||||
```C++
|
||||
"id": "wheel", // Unique identifier
|
||||
"name": "wheel", // Displayed name
|
||||
"symbol": "0", // ASCII character displayed when part is working
|
||||
"color": "dark_gray", // Color used when part is working
|
||||
"broken_symbol": "x", // ASCII character displayed when part is broken
|
||||
"broken_color": "light_gray", // Color used when part is broken
|
||||
"damage_modifier": 50, // (Optional, default = 100) Dealt damage multiplier when this part hits something, as a percentage. Higher = more damage to creature struck
|
||||
"durability": 200, // How much damage the part can take before breaking
|
||||
"wheel_width": 9, /* (Optional, default = 0)
|
||||
* SPECIAL: A part may have at most ONE of the following fields:
|
||||
* wheel_width = base wheel width in inches
|
||||
* size = trunk/box storage volume capacity
|
||||
* power = base engine power (in liters)
|
||||
* bonus = bonus granted; muffler = noise reduction%, seatbelt = bonus to not being thrown from vehicle
|
||||
* par1 = generic value used for unique bonuses, like the headlight's light intensity */
|
||||
"fuel_type": "NULL", // (Optional, default = "NULL") Type of fuel/ammo the part consumes, as an item id
|
||||
"item": "wheel", // The item used to install this part, and the item obtained when removing this part
|
||||
"difficulty": 4, // Your mechanics skill must be at least this level to install this part
|
||||
"flags": [ // Flags associated with the part
|
||||
"EXTERNAL", "MOUNT_OVER", "WHEEL", "MOUNT_POINT", "VARIABLE_SIZE"
|
||||
]
|
||||
```
|
||||
###VEHICLES
|
||||
```C++
|
||||
"id": "shopping_cart", // Internally-used name.
|
||||
"name": "Shopping Cart", // Display name, subject to i18n.
|
||||
"blueprint": "#", // Preview of vehicle - ignored by the code, so use only as documentation
|
||||
"parts": [ // Parts list
|
||||
{"x": 0, "y": 0, "part": "box"}, // Part definition, positive x direction is to the left, positive y is to the right
|
||||
{"x": 0, "y": 0, "part": "casters"} // See vehicle_parts.json for part ids
|
||||
]
|
||||
/* Important! Vehicle parts must be defined in the same order you would install
|
||||
* them in the game (ie, frames and mount points first).
|
||||
* You also cannot break the normal rules of installation
|
||||
* (you can't stack non-stackable part flags). */
|
||||
```
|
||||
#raw/items jsons
|
||||
|
||||
###AMMO
|
||||
```C++
|
||||
"type" : "AMMO", // Defines this as ammo
|
||||
"id" : "shot_bird", // Unique ID. Must be one continuous word, use underscores if necessary
|
||||
"price" : 500, // Used when bartering with NPC's
|
||||
"name" : "birdshot", // In-game name displayed
|
||||
"symbol" : "=", // ASCII character used in-game
|
||||
"color" : "red", // ASCII character colour
|
||||
"description" : "Weak shotgun ammunition. Designed for hunting birds and other small game, its applications in combat are very limited.", // In-game description
|
||||
"material" : "plastic", // Material types. See materials.json for possible options
|
||||
"volume" : 2, // Volume, measured in 1/4 liters
|
||||
"weight" : 34, // Weight, measuted in grams
|
||||
"bashing" : 1, // Bashing damage caused by using it as a melee weapon
|
||||
"cutting" : 0, // Cutting damage caused by using it as a melee weapon
|
||||
"to_hit" : 0, // To-hit bonus if using it as a melee weapon
|
||||
"ammo_type" : "shot", // Determines what it can be loaded in
|
||||
"damage" : 18, // Ranged damage when fired
|
||||
"pierce" : 0, // Armor piercing ability when fired
|
||||
"range" : 5, // Range when fired
|
||||
"dispersion" : 0, // Inaccuracy of ammo, measured in quarter-degrees
|
||||
"recoil" : 18, // Recoil caused when firing
|
||||
"count" : 25, // Number of rounds that spawn together
|
||||
"stack_size" : 50, // (Optional) How many rounds are in the above-defined volume. If omitted, is the same as 'count'
|
||||
"effects" : ["COOKOFF", "SHOT"] // Special effects
|
||||
```
|
||||
###ARMOR
|
||||
```C++
|
||||
"type" : "ARMOR", // Defines this as armor
|
||||
"id" : "socks", // Unique ID. 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" : 350, // Weight of armour in grams
|
||||
"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 used in-game
|
||||
"description" : "Socks. Put 'em on your feet.", // Description of armour
|
||||
"price" : 100, // Used when bartering with NPCs
|
||||
"material" : ["COTTON", "NULL"], // Material types. See materials.json for possible options
|
||||
"volume" : 1, // Volume, measured in 1/4 liters
|
||||
"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
|
||||
"encumberance" : 0, // Base encumbrance (unfitted value)
|
||||
"bashing" : -5, // Bashing damage caused by using it as a melee weapon
|
||||
"flags" : ["VARSIZE"] // Indicates special effects
|
||||
"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
|
||||
```
|
||||
###BOOKS
|
||||
```C++
|
||||
"type" : "BOOK", // Defines this as a BOOK
|
||||
"id" : "textbook_computers", // Unique ID. Must be one continuous word, use underscores if necessary
|
||||
"name" : "Computer Science 301", // In-game name displayed
|
||||
"max_level" : 5, // Maximum skill level this book will train to
|
||||
"description" : "A college textbook on computer science.", // In-game description
|
||||
"weight" : 1587, // Weight, measured in grams
|
||||
"to_hit" : 1, // To-hit bonus if using it as a melee weapon
|
||||
"color" : "blue", // ASCII character colour
|
||||
"intelligence" : 11, // Intelligence required to read this book without penalty
|
||||
"symbol" : "?", // ASCII character used in-game
|
||||
"material" : ["paper", "null"], // Material types. See materials.json for possible options
|
||||
"volume" : 7, // Volume, measured in 1/4 liters
|
||||
"bashing" : 5, // Bashing damage caused by using it as a melee weapon
|
||||
"cutting" : 0, // Cutting damage caused by using it as a melee weapon
|
||||
"time" : 35, // Time (in minutes) a single read session takes
|
||||
"fun" : -2, // Morale bonus/penalty for reading
|
||||
"skill" : "computer", // Skill raised
|
||||
"price" : 500, // Used when bartering with NPCs
|
||||
"required_level" : 2 // Minimum skill level required to learn
|
||||
```
|
||||
###COMESTIBLES
|
||||
```C++
|
||||
"type" : "COMESTIBLE", // Defines this as a COMESTIBLE
|
||||
"id" : "crack", // Unique ID. Must be one continuous word, use underscores if necessary
|
||||
"name" : "crack", // In-game name displayed
|
||||
"weight" : 1, // Weight, measured in grams
|
||||
"color" : "white", // ASCII character colour
|
||||
"addiction_type" : "crack", // Addiction type
|
||||
"spoils_in" : 0, // How long a comestible is good for. 0 = no spoilage
|
||||
"use_action" : "CRACK", // What effects a comestible has when used
|
||||
"stim" : 40, // Stimulant effect
|
||||
"container" : "null", // What container stores this
|
||||
"to_hit" : 0, // To-hit bonus if using it as a melee weapon
|
||||
"comestible_type" : "MED", // Comestible type, used for inventory sorting
|
||||
"symbol" : "!", // ASCII character used in-game
|
||||
"quench" : 0, // Thirst quenched
|
||||
"heal" : -2, // Health effects (used for sickness chances)
|
||||
"addiction_potential" : 80, // Ability to cause addictions
|
||||
"nutrition" : 0, // Hunger satisfied
|
||||
"description" : "Refined cocaine, incredibly addictive.", // In-game description
|
||||
"price" : 420, // Used when bartering with NPCs
|
||||
"material" : "powder", // Material types. See materials.json for possible options
|
||||
"tool" : "apparatus", // Tool required to be eaten/drank
|
||||
"volume" : 1, // Volume, measured in 1/4 liters
|
||||
"cutting" : 0, // Cutting damage caused by using it as a melee weapon
|
||||
"phase" : "solid", // What phase it is
|
||||
"charges" : 4, // Number of uses when spawned
|
||||
"stack_size" : 8, // (Optional) How many uses are in the above-defined volume. If omitted, is the same as 'charges'
|
||||
"bashing" : 0, // Bashing damage caused by using it as a melee weapon
|
||||
"fun" : 50 // Morale effects when used
|
||||
```
|
||||
###CONTAINERS
|
||||
```C++
|
||||
"id": "keg", // Unique ID. Must be one continuous word, use underscores if necessary
|
||||
"type": "CONTAINER", // Defines this as a CONTAINER
|
||||
"symbol": ")", // ASCII character used in-game
|
||||
"color": "light_cyan", // ASCII character colour
|
||||
"name": "aluminum keg", // In-game name displayed
|
||||
"description": "A reusable aluminum keg, used for shipping beer.\nIt has a capacity of 50 liters.", // In-game description
|
||||
"price": 6000, // Used when bartering with NPCs
|
||||
"weight": 13500, // Weight, measured in grams
|
||||
"volume": 200, // Volume, measured in 1/4 liters
|
||||
"bashing": -4, // Bashing damage caused by using it as a melee weapon
|
||||
"cutting": 0, // Cutting damage caused by using it as a melee weapon
|
||||
"to_hit": -4, // To-hit bonus if using it as a melee weapon
|
||||
"material": "steel", // Material types. See materials.json for possible options
|
||||
"contains": 200, // How much volume this container can hold
|
||||
"flags": ["RIGID", "SEALS", "WATERTIGHT"] // Indicates special effects
|
||||
```
|
||||
###MELEE
|
||||
```C++
|
||||
"id": "hatchet", // Unique ID. Must be one continuous word, use underscores if necessary
|
||||
"symbol": ";", // ASCII character used in-game
|
||||
"color": "light_gray", // ASCII character colour
|
||||
"name": "hatchet", // In-game name displayed
|
||||
"description": "A one-handed hatchet. Makes a great melee weapon, and is useful both for cutting wood, and for use as a hammer.", // In-game description
|
||||
"price": 95, // Used when bartering with NPCs
|
||||
"material": ["iron", "wood"], // Material types. See materials.json for possible options
|
||||
"weight": 907, // Weight, measured in grams
|
||||
"volume": 6, // Volume, measured in 1/4 liters
|
||||
"bashing": 12, // Bashing damage caused by using it as a melee weapon
|
||||
"cutting": 12, // Cutting damage caused by using it as a melee weapon
|
||||
"flags" : ["CHOP"], // Indicates special effects
|
||||
"to_hit": 1 // To-hit bonus if using it as a melee weapon
|
||||
```
|
||||
###GUN
|
||||
```C++
|
||||
"id": "nailgun", // Unique ID. Must be one continuous word, use underscores if necessary
|
||||
"type": "GUN", // Defines this as a GUN
|
||||
"symbol": "(", // ASCII character used in-game
|
||||
"color": "light_blue", // ASCII character colour
|
||||
"name": "nail gun", // In-game name displayed
|
||||
"description": "A tool used to drive nails into wood or other material. It could also be used as a ad-hoc weapon, or to practice your handgun skill up to level 1.", // In-game description
|
||||
"price": 100, // Used when bartering with NPCs
|
||||
"material": "iron", // Material types. See materials.json for possible options
|
||||
"flags": "MODE_BURST", // Indicates special effects
|
||||
"skill": "pistol", // Skill used for firing
|
||||
"ammo": "nail", // Ammo type accepted for reloading
|
||||
"weight": 2404, // Weight, measured in grams
|
||||
"volume": 4, // Volume, measured in 1/4 liters
|
||||
"bashing": 12, // Bashing damage caused by using it as a melee weapon
|
||||
"cutting": 0, // Cutting damage caused by using it as a melee weapon
|
||||
"to_hit": 1, // To-hit bonus if using it as a melee weapon
|
||||
"ranged_damage": 0, // Ranged damage when fired
|
||||
"range": 0, // Range when fired
|
||||
"dispersion": 32, // Inaccuracy of gun, measured in quarter-degrees
|
||||
"recoil": 0, // Recoil caused when firing
|
||||
"durability": 8, // Resistance to damage/rusting, also determines misfire chance
|
||||
"burst": 5, // Number of shots fired in burst mode
|
||||
"clip_size": 100, // Maximum amount of ammo that can be loaded
|
||||
"reload": 450 // Amount of time to reload, 100 = 6 seconds = 1 "turn"
|
||||
```
|
||||
###TOOLS
|
||||
```C++
|
||||
"id": "torch_lit", // Unique ID. Must be one continuous word, use underscores if necessary
|
||||
"type": "TOOL", // Defines this as a TOOL
|
||||
"symbol": "/", // ASCII character used in-game
|
||||
"color": "brown", // ASCII character colour
|
||||
"name": "torch (lit)", // In-game name displayed
|
||||
"description": "A large stick, wrapped in gasoline soaked rags. This is burning, producing plenty of light", // In-game description
|
||||
"price": 0, // Used when bartering with NPCs
|
||||
"material": "wood", // Material types. See materials.json for possible options
|
||||
"techniques": "FLAMING", // Combat techniques used by this tool
|
||||
"flags": "FIRE", // Indicates special effects
|
||||
"weight": 831, // Weight, measured in grams
|
||||
"volume": 6, // Volume, measured in 1/4 liters
|
||||
"bashing": 12, // Bashing damage caused by using it as a melee weapon
|
||||
"cutting": 0, // Cutting damage caused by using it as a melee weapon
|
||||
"to_hit": 3, // To-hit bonus if using it as a melee weapon
|
||||
"max_charges": 75, // Maximum charges tool can hold
|
||||
"initial_charges": 75, // Charges when spawned
|
||||
"charges_per_use": 1, // Charges consumed per tool use
|
||||
"turns_per_charge": 20, // Charges consumed over time
|
||||
"ammo": "NULL", // Ammo type used for reloading
|
||||
"revert_to": "torch_done", // Transforms into item when charges are expended
|
||||
"use_action": "TORCH_LIT" // Action performed when tool is used
|
||||
```
|
||||
@@ -0,0 +1,60 @@
|
||||
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.
|
||||
|
||||
An in-depth review of all json files and their appropriate fields is avaliable in
|
||||
JSON_INFO.txt.
|
||||
|
||||
1) 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.
|
||||
|
||||
2) Adding an item
|
||||
1) Open the appropriate json in data/raw/items and add your item near similar types.
|
||||
1b) See JSON_INFO for a more in-depth review of each individual item .json file/flags
|
||||
2) Add the item to item_groups.json to have it spawn in in-game locations
|
||||
|
||||
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 :-).
|
||||
@@ -1,17 +1,6 @@
|
||||
NOTABLE BUGS:
|
||||
|
||||
Factions cannot be saved at all, or they corrupt the master save file
|
||||
|
||||
|
||||
NOTE: ONLY SAVED FOR POSTERITY, PLEASE USE GIT FOR ALL NEW SUGGESTIONS/DISCUSSION
|
||||
|
||||
LONG-TERM FEATURES: Stuff I hope to finish in a year
|
||||
|
||||
Add a "list nearby items" command, which lists visible items by distance,
|
||||
name, type, etc. Make it searchable, perhaps allow the player to define
|
||||
highlighted items which are always moved to the top of the list.
|
||||
|
||||
Missions need to have save() and load() functions.
|
||||
|
||||
Save NPCs.
|
||||
|
||||
Once NPCs are working, populate settlements with them. Make sure that the
|
||||
@@ -37,38 +26,15 @@ LONG-TERM FEATURES: Stuff I hope to finish in a year
|
||||
Priests start with robe & collar and have bonuses when
|
||||
interacting with religious NPCs
|
||||
|
||||
|
||||
Support terminals larger than 80x25, with the extra space being utilized
|
||||
Larger terminals should not be given any real advantages over smaller
|
||||
ones; this means that the visible terrain should not be a larger
|
||||
area, but rather the extra space could be used for a larger visible
|
||||
message buffer.
|
||||
|
||||
Wrap WINDOW* in a custom class. This will eliminate the possibility of
|
||||
memory leaks from undeleted temporary windows, and will make porting to
|
||||
different display libraries (e.g. tiles) much easier.
|
||||
|
||||
Eventually a tiles port would be nice. The biggest obstacle to this is the
|
||||
actual tile graphics; once those are acquired, the only things needing a
|
||||
rewrite should be output.{h,cpp} and keypress.{h,cpp}
|
||||
Though mtypedef and itypedef might need to have item glyphs replaced or
|
||||
enchanced with a link to a image file or part of an image file. Same
|
||||
with terrain data
|
||||
|
||||
Sustained high morale generates "life points" (think of a less stupid name).
|
||||
These can be spent on a permanent stat increase, crafting a "legendary" item,
|
||||
or other otherwise unobtainable goodies. This gives the player motivation to
|
||||
maintain high morale without the artificial-feeling stat bonuses.
|
||||
High morale now generates XP points, which go into increasing your
|
||||
skills without the use of books. Maybe these XP points could be used
|
||||
for the above effects?
|
||||
|
||||
GENERAL:
|
||||
|
||||
More cultural references!
|
||||
LOST: Black cloud monster, polar bear, hatches
|
||||
Resident Evil style zombies
|
||||
Kinda done with The Thing dog
|
||||
->The whole game is already a reference to Fallout, let's admit it. So
|
||||
avoid Fallout references in general, they're too easy.
|
||||
->Ditto for Half-Life, the game is saturated with HL references
|
||||
@@ -92,19 +58,9 @@ GENERAL:
|
||||
OTHERS: Escape From New York,
|
||||
Classes (see above under LONG-TERM) could draw from pop culture heros
|
||||
Archeologist: Indiana Jones (a la nethack)
|
||||
Road Warrior: Mad Max
|
||||
|
||||
|
||||
Pushable furniture; push dressers, fridges, etc. in front of doors
|
||||
|
||||
Configurable options:
|
||||
Colors (e.g. highlight color, currently blue)
|
||||
Also ncurses options, e.g. A_BLINK support--not all terminals
|
||||
can display bright background colors, so black-on-dark-gray
|
||||
will just show up as a blank tile. We should have an option
|
||||
to turn off bright background colors.
|
||||
Run Mode behavior / Run Mode auto-on
|
||||
Auto-drop food containers (empty soda cans, etc)
|
||||
|
||||
Fix eating/fullness; right now only overeating when Full is a risk of puking,
|
||||
which comes too quickly and feels unfair. Thirst (and small amounts of
|
||||
@@ -114,27 +70,15 @@ GENERAL:
|
||||
>Two levels; "Full" and "Overfull"; Only when Overfull is puking a risk
|
||||
>Three levels, hunger, thirst, and stomach fullness
|
||||
|
||||
Make cooking a rotten item result in a rotten item
|
||||
Or, average the original item's birthday with the current turn, to allow
|
||||
for some freshening.
|
||||
|
||||
When picking items up, highlight useful ones in particular colors
|
||||
DONE Red: Ammo for a gun you have, or vice versa
|
||||
Green: Important medical (1st aid, bandages, painkiller, etc.)
|
||||
Possibly context-dependant? Painkillers if you're in pain, etc.
|
||||
Blue: Items you can craft with
|
||||
Purple: User-defined criteria
|
||||
|
||||
Food canning. We already have tin cans, add an item "canning kit"
|
||||
Or make it a craft; canning requires boiling water + equipment
|
||||
|
||||
Highlight or color-invert monsters that're fleeing; also make indifference
|
||||
visually obvious in some way (change glyph foreground color?)
|
||||
|
||||
Audit how we're using screen space in the data window
|
||||
Maybe make a special data structure for how the data section is used and
|
||||
layed out; easier to audit, player configurable
|
||||
|
||||
Make swimming more interesting
|
||||
Items at the bottoms of rivers, only discoverable by diving underwater
|
||||
Entrances to special dungeons;
|
||||
@@ -143,11 +87,6 @@ DONE Red: Ammo for a gun you have, or vice versa
|
||||
Water-dwelling monsters. Probably rare, because for unskilled swimmers
|
||||
almost any monsters would be deadly
|
||||
|
||||
Automatically drop items if our volume capacity suddenly drops (e.g. from a
|
||||
torn-open backpack)
|
||||
|
||||
Add a warning in the data screen if volume carried is over capacity
|
||||
|
||||
Allow basic movement while reloading, or make it possible to resume
|
||||
interrupted reloading
|
||||
|
||||
@@ -158,28 +97,11 @@ DONE Red: Ammo for a gun you have, or vice versa
|
||||
Make computer functions use skills other than sk_computer. For
|
||||
instance, the computers in hospitals should use sk_firstaid
|
||||
|
||||
Desires, as in The Sims 3. These could be their own class, or a special
|
||||
type of mission; added more or less randomly, they include things like "eat an
|
||||
orange," "read a novel" and other banal actions, and reward the player with a
|
||||
larger-than-usual morale boost.
|
||||
|
||||
|
||||
|
||||
ITEMS / BIONICS:
|
||||
|
||||
Book: Bible; high morale boost if you have the Religious trait
|
||||
|
||||
Canning kit (see canning under GENERAL)
|
||||
|
||||
Fire extinguisher bionic
|
||||
Make this, and real fire extinguishers, more effective
|
||||
|
||||
Road maps, found in gas stations; using it adds some map data.
|
||||
|
||||
|
||||
|
||||
MAP:
|
||||
|
||||
Hatch (see cultural references, above)
|
||||
|
||||
Terrain tiles, such as heavy doors, which require the help of an extra NPC
|
||||
@@ -187,7 +109,6 @@ MAP:
|
||||
|
||||
|
||||
CHARACTER CREATION:
|
||||
|
||||
Illiterate makes read speed show up as "N/A" on stats tab
|
||||
|
||||
Glass Jaw makes Head HP show up on stats tab, alongside Base HP
|
||||
@@ -201,15 +122,6 @@ CHARACTER CREATION:
|
||||
|
||||
Save our position in both Traits lists, even when changing tabs
|
||||
|
||||
Display player::miss_penalty() in Stats tab (Under Str and/or Dex)
|
||||
Modified by Dex, by Str with heavy weapons, and the Deft trait
|
||||
Show penalty under various circumstances? Unarmed, crowbar, chainsaw etc
|
||||
|
||||
Make skill levels affect values in Stats tab?
|
||||
Bottom 3 lines could be a color legend, blue=from stat, green=from skill
|
||||
|
||||
Make Drunken Master bonus appear in Stats tab?
|
||||
|
||||
Make the Description tab more interesting? Maybe hair color, etc.
|
||||
Any effect on gameplay? Probably not.
|
||||
Make the effect of gender on gameplay transparent
|
||||
@@ -217,8 +129,6 @@ CHARACTER CREATION:
|
||||
List specific effects on gameplay mechanics in the Skills tab, comparable to
|
||||
those listed in the Stats tab.
|
||||
|
||||
|
||||
|
||||
TRAITS:
|
||||
|
||||
More Schizophrenic effects
|
||||
@@ -229,28 +139,14 @@ TRAITS:
|
||||
More obvious Wool Allergy text (remind the player that they're allergic)
|
||||
Wool Allergy prevents eating wool (with Internal Furnace bionic)
|
||||
|
||||
Make Fast Learner affect skill comprehension directly
|
||||
Rewrite description
|
||||
|
||||
Android encourages start-scumming. Maybe make it a static set, or present
|
||||
the player with a few different options?
|
||||
Make Android a class instead? (see above under LONG-TERM)
|
||||
|
||||
|
||||
|
||||
CRAFTING:
|
||||
|
||||
Expand cooking; much more morale-boosting (i.e. tasty) recipes
|
||||
|
||||
Fruit drying; remove quench and some nutrition, but won't go bad
|
||||
|
||||
|
||||
|
||||
KEYBINDINGS/INPUT:
|
||||
|
||||
Configurable bindings!
|
||||
This ties into options in general.
|
||||
|
||||
Make ctrl+movement equivalent to 'e'+movement
|
||||
|
||||
"Repeat last command" command
|
||||
@@ -0,0 +1,9 @@
|
||||
Come up with a release name at the absolute last second.
|
||||
Update VERSION in Makefile and version.cpp for MSVC and C::B builds.
|
||||
Bring changelog up to date if necessary.
|
||||
Update MOTD.
|
||||
Tag release.
|
||||
Commit above (to trigger jenkins builds).
|
||||
Sanity test jenkins builds.
|
||||
Upload builds to github release page.
|
||||
Post release thread in forum.
|
||||
@@ -0,0 +1,87 @@
|
||||
Info on translating Cataclysm-DDA into another language.
|
||||
|
||||
|
||||
TRANSLATORS
|
||||
===========
|
||||
|
||||
The current official location for translating Cataclysm-DDA is at
|
||||
[Launchpad Translations](https://translations.launchpad.net/cdda).
|
||||
|
||||
For the moment, there are separate locations for translating
|
||||
[Chinese](https://translations.launchpad.net/cataclysm)
|
||||
and [Russian](https://translations.launchpad.net/cataclysm-dda).
|
||||
We will be merging these once translations have stabalized.
|
||||
|
||||
Using Launchpad Translations anyone can help translate.
|
||||
All you need to do is set up a Launchpad account,
|
||||
and tell it your preferred language.
|
||||
After that, your language should show up for translation,
|
||||
even if you are starting a new translation from scratch.
|
||||
|
||||
If you have any questions or comments about translation,
|
||||
feel free to post in the "Translations Team Discussion" subforum of
|
||||
[the Cataclysm-DDA forums](http://smf.cataclysmdda.com/).
|
||||
|
||||
There are some issues specific to Cataclysm-DDA,
|
||||
(and some specific to translating computer programs in general,)
|
||||
which translators should be aware of,
|
||||
such as the use of terms like `%s` and `%3$d` (leave them as they are),
|
||||
and the use of tags like `<name>` (don't translate the tags).
|
||||
|
||||
Information about these,
|
||||
and any other issues specific to individual languages,
|
||||
can be found in Cataclysm-DDA's `lang/notes/` folder.
|
||||
General notes for all translators are in
|
||||
`lang/notes/README_all_translators.txt`,
|
||||
and notes specific to a language may be stored as `<lang_id>.txt`,
|
||||
for example `lang/notes/de.txt` for German.
|
||||
|
||||
Cataclysm-DDA has more than 10,000 translatable strings,
|
||||
but don't be discouraged.
|
||||
The more translators there are,
|
||||
the easier it becomes :).
|
||||
|
||||
|
||||
MAINTAINERS
|
||||
===========
|
||||
|
||||
Several steps need to be done in the correct order,
|
||||
to correctly merge and maintain the translation files.
|
||||
|
||||
There are scripts available for these,
|
||||
so usually the process will be as follows:
|
||||
|
||||
1. Download the translations in .po format from Launchpad.
|
||||
2. Put them in `lang/incoming/`,
|
||||
ensuring they are named consistently with the files in `lang/po/`.
|
||||
3. Run `lang/update_pot.sh` to update `lang/po/cataclysm-dda.pot`.
|
||||
4. Run `lang/merge_po.sh` to update `lang/po/*.po`.
|
||||
This will also merge the translations from `lang/incoming/`.
|
||||
|
||||
These steps should be enough to keep the translation files up-to-date.
|
||||
|
||||
To compile the .po files into .mo files for use,
|
||||
run `lang/compile_mo.sh`.
|
||||
It will create a directory in `lang/mo/` for each language found.
|
||||
|
||||
Also note that both `lang/merge_po.sh` and `lang/compile_mo.sh`
|
||||
accept arguments specifying which languages to merge or compile.
|
||||
So to compile only the translation for, say, Traditional Chinese (zh_TW),
|
||||
one would run `lang/compile_mo.sh zh_TW`.
|
||||
|
||||
After compiling the appropriate .mo file,
|
||||
if your system is using that language,
|
||||
the translations will be automatically used when you run cataclysm.
|
||||
|
||||
If your system locale is different from the one you want to test,
|
||||
the easiest way to do so is to find out your locale identifier,
|
||||
compile the translation you want to test,
|
||||
then rename the directory in `lang/mo/` to your locale identifier.
|
||||
|
||||
So for example if your local language is New Zealand English (en_NZ),
|
||||
and you want to test the Russian (ru) translation,
|
||||
the steps would be `lang/compile_mo.sh ru`,
|
||||
`mv lang/mo/ru lang/mo/en_NZ`,
|
||||
`./cataclysm`.
|
||||
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
#include "color.h"
|
||||
#include "output.h"
|
||||
|
||||
#define HILIGHT COLOR_BLUE
|
||||
void init_colors()
|
||||
@@ -41,7 +42,54 @@ void init_colors()
|
||||
init_pair(28, COLOR_MAGENTA, COLOR_RED);
|
||||
init_pair(29, COLOR_YELLOW, COLOR_RED);
|
||||
|
||||
init_pair(30, COLOR_BLACK, COLOR_BLACK );
|
||||
init_pair(30, COLOR_BLACK, COLOR_BLACK);
|
||||
init_pair(31, COLOR_WHITE, COLOR_BLACK);
|
||||
|
||||
init_pair(32, COLOR_BLACK, COLOR_WHITE);
|
||||
init_pair(33, COLOR_WHITE, COLOR_WHITE);
|
||||
init_pair(34, COLOR_RED, COLOR_WHITE);
|
||||
init_pair(35, COLOR_GREEN, COLOR_WHITE);
|
||||
init_pair(36, COLOR_YELLOW, COLOR_WHITE);
|
||||
init_pair(37, COLOR_BLUE, COLOR_WHITE);
|
||||
init_pair(38, COLOR_MAGENTA, COLOR_WHITE);
|
||||
init_pair(39, COLOR_CYAN, COLOR_WHITE);
|
||||
|
||||
init_pair(40, COLOR_BLACK, COLOR_GREEN);
|
||||
init_pair(41, COLOR_WHITE, COLOR_GREEN);
|
||||
init_pair(42, COLOR_RED, COLOR_GREEN);
|
||||
init_pair(43, COLOR_GREEN, COLOR_GREEN);
|
||||
init_pair(44, COLOR_YELLOW, COLOR_GREEN);
|
||||
init_pair(45, COLOR_BLUE, COLOR_GREEN);
|
||||
init_pair(46, COLOR_MAGENTA, COLOR_GREEN);
|
||||
init_pair(47, COLOR_CYAN, COLOR_GREEN);
|
||||
|
||||
init_pair(48, COLOR_BLACK, COLOR_YELLOW);
|
||||
init_pair(49, COLOR_WHITE, COLOR_YELLOW);
|
||||
init_pair(50, COLOR_RED, COLOR_YELLOW);
|
||||
init_pair(51, COLOR_GREEN, COLOR_YELLOW);
|
||||
init_pair(52, COLOR_YELLOW, COLOR_YELLOW);
|
||||
init_pair(53, COLOR_BLUE, COLOR_YELLOW);
|
||||
init_pair(54, COLOR_MAGENTA, COLOR_YELLOW);
|
||||
init_pair(55, COLOR_CYAN, COLOR_YELLOW);
|
||||
|
||||
init_pair(56, COLOR_BLACK, COLOR_MAGENTA);
|
||||
init_pair(57, COLOR_WHITE, COLOR_MAGENTA);
|
||||
init_pair(58, COLOR_RED, COLOR_MAGENTA);
|
||||
init_pair(59, COLOR_GREEN, COLOR_MAGENTA);
|
||||
init_pair(60, COLOR_YELLOW, COLOR_MAGENTA);
|
||||
init_pair(61, COLOR_BLUE, COLOR_MAGENTA);
|
||||
init_pair(62, COLOR_MAGENTA, COLOR_MAGENTA);
|
||||
init_pair(63, COLOR_CYAN, COLOR_MAGENTA);
|
||||
|
||||
init_pair(64, COLOR_BLACK, COLOR_CYAN);
|
||||
init_pair(65, COLOR_WHITE, COLOR_CYAN);
|
||||
init_pair(66, COLOR_RED, COLOR_CYAN);
|
||||
init_pair(67, COLOR_GREEN, COLOR_CYAN);
|
||||
init_pair(68, COLOR_YELLOW, COLOR_CYAN);
|
||||
init_pair(69, COLOR_BLUE, COLOR_CYAN);
|
||||
init_pair(70, COLOR_MAGENTA, COLOR_CYAN);
|
||||
init_pair(71, COLOR_CYAN, COLOR_CYAN);
|
||||
|
||||
}
|
||||
|
||||
int color_to_int(nc_color col)
|
||||
@@ -110,6 +158,93 @@ int color_to_int(nc_color col)
|
||||
case c_pink_red : return 61;
|
||||
case c_yellow_red : return 62;
|
||||
|
||||
case c_unset : return 63;
|
||||
|
||||
case c_black_white : return 64;
|
||||
case c_dkgray_white : return 65;
|
||||
case c_ltgray_white : return 66;
|
||||
case c_white_white : return 67;
|
||||
case c_red_white : return 68;
|
||||
case c_ltred_white : return 69;
|
||||
case c_green_white : return 70;
|
||||
case c_ltgreen_white : return 71;
|
||||
case c_brown_white : return 72;
|
||||
case c_yellow_white : return 73;
|
||||
case c_blue_white : return 74;
|
||||
case c_ltblue_white : return 75;
|
||||
case c_magenta_white : return 76;
|
||||
case c_pink_white : return 77;
|
||||
case c_cyan_white : return 78;
|
||||
case c_ltcyan_white : return 79;
|
||||
|
||||
case c_black_green : return 80;
|
||||
case c_dkgray_green : return 81;
|
||||
case c_ltgray_green : return 82;
|
||||
case c_white_green : return 83;
|
||||
case c_red_green : return 84;
|
||||
case c_ltred_green : return 85;
|
||||
case c_green_green : return 86;
|
||||
case c_ltgreen_green : return 87;
|
||||
case c_brown_green : return 88;
|
||||
case c_yellow_green : return 89;
|
||||
case c_blue_green : return 90;
|
||||
case c_ltblue_green : return 91;
|
||||
case c_magenta_green : return 92;
|
||||
case c_pink_green : return 93;
|
||||
case c_cyan_green : return 94;
|
||||
case c_ltcyan_green : return 95;
|
||||
|
||||
case c_black_yellow : return 96;
|
||||
case c_dkgray_yellow : return 97;
|
||||
case c_ltgray_yellow : return 98;
|
||||
case c_white_yellow : return 99;
|
||||
case c_red_yellow : return 100;
|
||||
case c_ltred_yellow : return 101;
|
||||
case c_green_yellow : return 102;
|
||||
case c_ltgreen_yellow : return 103;
|
||||
case c_brown_yellow : return 104;
|
||||
case c_yellow_yellow : return 105;
|
||||
case c_blue_yellow : return 106;
|
||||
case c_ltblue_yellow : return 107;
|
||||
case c_magenta_yellow : return 108;
|
||||
case c_pink_yellow : return 109;
|
||||
case c_cyan_yellow : return 110;
|
||||
case c_ltcyan_yellow : return 111;
|
||||
|
||||
case c_black_magenta : return 112;
|
||||
case c_dkgray_magenta : return 113;
|
||||
case c_ltgray_magenta : return 114;
|
||||
case c_white_magenta : return 115;
|
||||
case c_red_magenta : return 116;
|
||||
case c_ltred_magenta : return 117;
|
||||
case c_green_magenta : return 118;
|
||||
case c_ltgreen_magenta : return 119;
|
||||
case c_brown_magenta : return 120;
|
||||
case c_yellow_magenta : return 121;
|
||||
case c_blue_magenta : return 122;
|
||||
case c_ltblue_magenta : return 123;
|
||||
case c_magenta_magenta : return 124;
|
||||
case c_pink_magenta : return 125;
|
||||
case c_cyan_magenta : return 126;
|
||||
case c_ltcyan_magenta : return 127;
|
||||
|
||||
case c_black_cyan : return 128;
|
||||
case c_dkgray_cyan : return 129;
|
||||
case c_ltgray_cyan : return 130;
|
||||
case c_white_cyan : return 131;
|
||||
case c_red_cyan : return 132;
|
||||
case c_ltred_cyan : return 133;
|
||||
case c_green_cyan : return 134;
|
||||
case c_ltgreen_cyan : return 135;
|
||||
case c_brown_cyan : return 136;
|
||||
case c_yellow_cyan : return 137;
|
||||
case c_blue_cyan : return 138;
|
||||
case c_ltblue_cyan : return 139;
|
||||
case c_magenta_cyan : return 140;
|
||||
case c_pink_cyan : return 141;
|
||||
case c_cyan_cyan : return 142;
|
||||
case c_ltcyan_cyan : return 143;
|
||||
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
@@ -183,6 +318,137 @@ nc_color int_to_color(int key)
|
||||
case 60: return c_ltcyan_red ;
|
||||
case 61: return c_pink_red ;
|
||||
case 62: return c_yellow_red ;
|
||||
|
||||
case 63: return c_unset;
|
||||
|
||||
case 64: return c_black_white;
|
||||
case 65: return c_dkgray_white;
|
||||
case 66: return c_ltgray_white;
|
||||
case 67: return c_white_white;
|
||||
case 68: return c_red_white;
|
||||
case 69: return c_ltred_white;
|
||||
case 70: return c_green_white;
|
||||
case 71: return c_ltgreen_white;
|
||||
case 72: return c_brown_white;
|
||||
case 73: return c_yellow_white;
|
||||
case 74: return c_blue_white;
|
||||
case 75: return c_ltblue_white;
|
||||
case 76: return c_magenta_white;
|
||||
case 77: return c_pink_white;
|
||||
case 78: return c_cyan_white;
|
||||
case 79: return c_ltcyan_white;
|
||||
|
||||
case 80: return c_black_green;
|
||||
case 81: return c_dkgray_green;
|
||||
case 82: return c_ltgray_green;
|
||||
case 83: return c_white_green;
|
||||
case 84: return c_red_green;
|
||||
case 85: return c_ltred_green;
|
||||
case 86: return c_green_green;
|
||||
case 87: return c_ltgreen_green;
|
||||
case 88: return c_brown_green;
|
||||
case 89: return c_yellow_green;
|
||||
case 90: return c_blue_green;
|
||||
case 91: return c_ltblue_green;
|
||||
case 92: return c_magenta_green;
|
||||
case 93: return c_pink_green;
|
||||
case 94: return c_cyan_green;
|
||||
case 95: return c_ltcyan_green;
|
||||
|
||||
case 96: return c_black_yellow;
|
||||
case 97: return c_dkgray_yellow;
|
||||
case 98: return c_ltgray_yellow;
|
||||
case 99: return c_white_yellow;
|
||||
case 100: return c_red_yellow;
|
||||
case 101: return c_ltred_yellow;
|
||||
case 102: return c_green_yellow;
|
||||
case 103: return c_ltgreen_yellow;
|
||||
case 104: return c_brown_yellow;
|
||||
case 105: return c_yellow_yellow;
|
||||
case 106: return c_blue_yellow;
|
||||
case 107: return c_ltblue_yellow;
|
||||
case 108: return c_magenta_yellow;
|
||||
case 109: return c_pink_yellow;
|
||||
case 110: return c_cyan_yellow;
|
||||
case 111: return c_ltcyan_yellow;
|
||||
|
||||
case 112: return c_black_magenta;
|
||||
case 113: return c_dkgray_magenta;
|
||||
case 114: return c_ltgray_magenta;
|
||||
case 115: return c_white_magenta;
|
||||
case 116: return c_red_magenta;
|
||||
case 117: return c_ltred_magenta;
|
||||
case 118: return c_green_magenta;
|
||||
case 119: return c_ltgreen_magenta;
|
||||
case 120: return c_brown_magenta;
|
||||
case 121: return c_yellow_magenta;
|
||||
case 122: return c_blue_magenta;
|
||||
case 123: return c_ltblue_magenta;
|
||||
case 124: return c_magenta_magenta;
|
||||
case 125: return c_pink_magenta;
|
||||
case 126: return c_cyan_magenta;
|
||||
case 127: return c_ltcyan_magenta;
|
||||
|
||||
case 128: return c_black_cyan;
|
||||
case 129: return c_dkgray_cyan;
|
||||
case 130: return c_ltgray_cyan;
|
||||
case 131: return c_white_cyan;
|
||||
case 132: return c_red_cyan;
|
||||
case 133: return c_ltred_cyan;
|
||||
case 134: return c_green_cyan;
|
||||
case 135: return c_ltgreen_cyan;
|
||||
case 136: return c_brown_cyan;
|
||||
case 137: return c_yellow_cyan;
|
||||
case 138: return c_blue_cyan;
|
||||
case 139: return c_ltblue_cyan;
|
||||
case 140: return c_magenta_cyan;
|
||||
case 141: return c_pink_cyan;
|
||||
case 142: return c_cyan_cyan;
|
||||
case 143: return c_ltcyan_cyan;
|
||||
|
||||
}
|
||||
return c_black;
|
||||
}
|
||||
|
||||
/**
|
||||
* Given the name of a color, returns the nc_color constant that matches. If
|
||||
* no match is found, c_white is returned.
|
||||
* @param new_color The color to get, as a std::string.
|
||||
* @return The nc_color constant that matches the input.
|
||||
*/
|
||||
nc_color color_from_string(std::string new_color){
|
||||
if("red"==new_color){
|
||||
return c_red;
|
||||
} else if("blue"==new_color){
|
||||
return c_blue;
|
||||
} else if("green"==new_color){
|
||||
return c_green;
|
||||
} else if("light_cyan"==new_color){
|
||||
return c_ltcyan;
|
||||
} else if("brown"==new_color){
|
||||
return c_brown;
|
||||
} else if("light_red"==new_color){
|
||||
return c_ltred;
|
||||
} else if("white"==new_color){
|
||||
return c_white;
|
||||
} else if("light_blue"==new_color){
|
||||
return c_ltblue;
|
||||
} else if("yellow"==new_color){
|
||||
return c_yellow;
|
||||
} else if("magenta"==new_color){
|
||||
return c_magenta;
|
||||
} else if("cyan"==new_color){
|
||||
return c_cyan;
|
||||
} else if("light_gray"==new_color){
|
||||
return c_ltgray;
|
||||
} else if("dark_gray"==new_color){
|
||||
return c_dkgray;
|
||||
} else if("light_green"==new_color){
|
||||
return c_ltgreen;
|
||||
} else if("pink"==new_color){
|
||||
return c_pink;
|
||||
} else {
|
||||
debugmsg("Received invalid color property %s. Color is required.", new_color.c_str());
|
||||
return c_white;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -5,6 +5,7 @@
|
||||
#define _COLOR_LIST_
|
||||
|
||||
#include "cursesdef.h"
|
||||
#include <string>
|
||||
|
||||
void init_colors();
|
||||
|
||||
@@ -80,12 +81,96 @@ c_ltgreen_red = COLOR_PAIR(25) | A_BOLD,
|
||||
c_ltblue_red = COLOR_PAIR(26) | A_BOLD,
|
||||
c_ltcyan_red = COLOR_PAIR(27) | A_BOLD,
|
||||
c_pink_red = COLOR_PAIR(28) | A_BOLD,
|
||||
c_yellow_red = COLOR_PAIR(29) | A_BOLD
|
||||
c_yellow_red = COLOR_PAIR(29) | A_BOLD,
|
||||
|
||||
c_unset = COLOR_PAIR(31),
|
||||
|
||||
c_black_white = COLOR_PAIR(32),
|
||||
c_dkgray_white = COLOR_PAIR(32) | A_BOLD,
|
||||
c_ltgray_white = COLOR_PAIR(33),
|
||||
c_white_white = COLOR_PAIR(33) | A_BOLD,
|
||||
c_red_white = COLOR_PAIR(34),
|
||||
c_ltred_white = COLOR_PAIR(34) | A_BOLD,
|
||||
c_green_white = COLOR_PAIR(35),
|
||||
c_ltgreen_white = COLOR_PAIR(35) | A_BOLD,
|
||||
c_brown_white = COLOR_PAIR(36),
|
||||
c_yellow_white = COLOR_PAIR(36) | A_BOLD,
|
||||
c_blue_white = COLOR_PAIR(37),
|
||||
c_ltblue_white = COLOR_PAIR(37) | A_BOLD,
|
||||
c_magenta_white = COLOR_PAIR(38),
|
||||
c_pink_white = COLOR_PAIR(38) | A_BOLD,
|
||||
c_cyan_white = COLOR_PAIR(39),
|
||||
c_ltcyan_white = COLOR_PAIR(39) | A_BOLD,
|
||||
c_black_green = COLOR_PAIR(40),
|
||||
c_dkgray_green = COLOR_PAIR(40) | A_BOLD,
|
||||
c_ltgray_green = COLOR_PAIR(41),
|
||||
c_white_green = COLOR_PAIR(41) | A_BOLD,
|
||||
c_red_green = COLOR_PAIR(42),
|
||||
c_ltred_green = COLOR_PAIR(42) | A_BOLD,
|
||||
c_green_green = COLOR_PAIR(43),
|
||||
c_ltgreen_green = COLOR_PAIR(43) | A_BOLD,
|
||||
c_brown_green = COLOR_PAIR(44),
|
||||
c_yellow_green = COLOR_PAIR(44) | A_BOLD,
|
||||
c_blue_green = COLOR_PAIR(45),
|
||||
c_ltblue_green = COLOR_PAIR(45) | A_BOLD,
|
||||
c_magenta_green = COLOR_PAIR(46),
|
||||
c_pink_green = COLOR_PAIR(46) | A_BOLD,
|
||||
c_cyan_green = COLOR_PAIR(47),
|
||||
c_ltcyan_green = COLOR_PAIR(47) | A_BOLD,
|
||||
c_black_yellow = COLOR_PAIR(48),
|
||||
c_dkgray_yellow = COLOR_PAIR(48) | A_BOLD,
|
||||
c_ltgray_yellow = COLOR_PAIR(49),
|
||||
c_white_yellow = COLOR_PAIR(49) | A_BOLD,
|
||||
c_red_yellow = COLOR_PAIR(50),
|
||||
c_ltred_yellow = COLOR_PAIR(50) | A_BOLD,
|
||||
c_green_yellow = COLOR_PAIR(51),
|
||||
c_ltgreen_yellow = COLOR_PAIR(51) | A_BOLD,
|
||||
c_brown_yellow = COLOR_PAIR(52),
|
||||
c_yellow_yellow = COLOR_PAIR(52) | A_BOLD,
|
||||
c_blue_yellow = COLOR_PAIR(53),
|
||||
c_ltblue_yellow = COLOR_PAIR(53) | A_BOLD,
|
||||
c_magenta_yellow = COLOR_PAIR(54),
|
||||
c_pink_yellow = COLOR_PAIR(54) | A_BOLD,
|
||||
c_cyan_yellow = COLOR_PAIR(55),
|
||||
c_ltcyan_yellow = COLOR_PAIR(55) | A_BOLD,
|
||||
c_black_magenta = COLOR_PAIR(56),
|
||||
c_dkgray_magenta = COLOR_PAIR(56) | A_BOLD,
|
||||
c_ltgray_magenta = COLOR_PAIR(57),
|
||||
c_white_magenta = COLOR_PAIR(57) | A_BOLD,
|
||||
c_red_magenta = COLOR_PAIR(58),
|
||||
c_ltred_magenta = COLOR_PAIR(58) | A_BOLD,
|
||||
c_green_magenta = COLOR_PAIR(59),
|
||||
c_ltgreen_magenta = COLOR_PAIR(59) | A_BOLD,
|
||||
c_brown_magenta = COLOR_PAIR(60),
|
||||
c_yellow_magenta = COLOR_PAIR(60) | A_BOLD,
|
||||
c_blue_magenta = COLOR_PAIR(61),
|
||||
c_ltblue_magenta = COLOR_PAIR(61) | A_BOLD,
|
||||
c_magenta_magenta = COLOR_PAIR(62),
|
||||
c_pink_magenta = COLOR_PAIR(62) | A_BOLD,
|
||||
c_cyan_magenta = COLOR_PAIR(63),
|
||||
c_ltcyan_magenta = COLOR_PAIR(63) | A_BOLD,
|
||||
c_black_cyan = COLOR_PAIR(64),
|
||||
c_dkgray_cyan = COLOR_PAIR(64) | A_BOLD,
|
||||
c_ltgray_cyan = COLOR_PAIR(65),
|
||||
c_white_cyan = COLOR_PAIR(65) | A_BOLD,
|
||||
c_red_cyan = COLOR_PAIR(66),
|
||||
c_ltred_cyan = COLOR_PAIR(66) | A_BOLD,
|
||||
c_green_cyan = COLOR_PAIR(67),
|
||||
c_ltgreen_cyan = COLOR_PAIR(67) | A_BOLD,
|
||||
c_brown_cyan = COLOR_PAIR(68),
|
||||
c_yellow_cyan = COLOR_PAIR(68) | A_BOLD,
|
||||
c_blue_cyan = COLOR_PAIR(69),
|
||||
c_ltblue_cyan = COLOR_PAIR(69) | A_BOLD,
|
||||
c_magenta_cyan = COLOR_PAIR(70),
|
||||
c_pink_cyan = COLOR_PAIR(70) | A_BOLD,
|
||||
c_cyan_cyan = COLOR_PAIR(71),
|
||||
c_ltcyan_cyan = COLOR_PAIR(71) | A_BOLD
|
||||
|
||||
};
|
||||
|
||||
int color_to_int(nc_color col);
|
||||
nc_color int_to_color(int key);
|
||||
nc_color color_from_string(std::string color);
|
||||
|
||||
void setattr(nc_color &col, col_attribute attr);
|
||||
|
||||
|
||||
+1221
-884
File diff suppressed because it is too large
Load Diff
+86
-82
@@ -12,122 +12,126 @@ class player;
|
||||
|
||||
enum computer_action
|
||||
{
|
||||
COMPACT_NULL = 0,
|
||||
COMPACT_OPEN,
|
||||
COMPACT_LOCK,
|
||||
COMPACT_UNLOCK,
|
||||
COMPACT_TOLL,
|
||||
COMPACT_SAMPLE,
|
||||
COMPACT_RELEASE,
|
||||
COMPACT_TERMINATE,
|
||||
COMPACT_PORTAL,
|
||||
COMPACT_CASCADE,
|
||||
COMPACT_RESEARCH,
|
||||
COMPACT_MAPS,
|
||||
COMPACT_MAP_SEWER,
|
||||
COMPACT_MISS_LAUNCH,
|
||||
COMPACT_MISS_DISARM,
|
||||
COMPACT_LIST_BIONICS,
|
||||
COMPACT_ELEVATOR_ON,
|
||||
COMPACT_AMIGARA_LOG,
|
||||
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,
|
||||
NUM_COMPUTER_ACTIONS
|
||||
COMPACT_NULL = 0,
|
||||
COMPACT_OPEN,
|
||||
COMPACT_LOCK,
|
||||
COMPACT_UNLOCK,
|
||||
COMPACT_TOLL,
|
||||
COMPACT_SAMPLE,
|
||||
COMPACT_RELEASE,
|
||||
COMPACT_TERMINATE,
|
||||
COMPACT_PORTAL,
|
||||
COMPACT_CASCADE,
|
||||
COMPACT_RESEARCH,
|
||||
COMPACT_MAPS,
|
||||
COMPACT_MAP_SEWER,
|
||||
COMPACT_MISS_LAUNCH,
|
||||
COMPACT_MISS_DISARM,
|
||||
COMPACT_LIST_BIONICS,
|
||||
COMPACT_ELEVATOR_ON,
|
||||
COMPACT_AMIGARA_LOG,
|
||||
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
|
||||
};
|
||||
|
||||
enum computer_failure
|
||||
{
|
||||
COMPFAIL_NULL = 0,
|
||||
COMPFAIL_SHUTDOWN,
|
||||
COMPFAIL_ALARM,
|
||||
COMPFAIL_MANHACKS,
|
||||
COMPFAIL_SECUBOTS,
|
||||
COMPFAIL_DAMAGE,
|
||||
COMPFAIL_PUMP_EXPLODE,
|
||||
COMPFAIL_PUMP_LEAK,
|
||||
COMPFAIL_AMIGARA,
|
||||
COMPFAIL_DESTROY_BLOOD,
|
||||
COMPFAIL_DESTROY_DATA,
|
||||
NUM_COMPUTER_FAILURES
|
||||
COMPFAIL_NULL = 0,
|
||||
COMPFAIL_SHUTDOWN,
|
||||
COMPFAIL_ALARM,
|
||||
COMPFAIL_MANHACKS,
|
||||
COMPFAIL_SECUBOTS,
|
||||
COMPFAIL_DAMAGE,
|
||||
COMPFAIL_PUMP_EXPLODE,
|
||||
COMPFAIL_PUMP_LEAK,
|
||||
COMPFAIL_AMIGARA,
|
||||
COMPFAIL_DESTROY_BLOOD,
|
||||
COMPFAIL_DESTROY_DATA,
|
||||
NUM_COMPUTER_FAILURES
|
||||
};
|
||||
|
||||
struct computer_option
|
||||
{
|
||||
std::string name;
|
||||
computer_action action;
|
||||
int security;
|
||||
std::string name;
|
||||
computer_action action;
|
||||
int security;
|
||||
|
||||
computer_option() { name = "Unknown", action = COMPACT_NULL, security = 0; };
|
||||
computer_option(std::string N, computer_action A, int S) :
|
||||
name (N), action (A), security (S) {};
|
||||
computer_option()
|
||||
{
|
||||
name = "Unknown", action = COMPACT_NULL, security = 0;
|
||||
};
|
||||
computer_option(std::string N, computer_action A, int S) :
|
||||
name (N), action (A), security (S) {};
|
||||
};
|
||||
|
||||
class computer
|
||||
{
|
||||
public:
|
||||
computer();
|
||||
computer(std::string Name, int Security);
|
||||
~computer();
|
||||
computer();
|
||||
computer(std::string Name, int Security);
|
||||
~computer();
|
||||
|
||||
computer & operator=(const computer &rhs);
|
||||
computer & operator=(const computer &rhs);
|
||||
// Initialization
|
||||
void set_security(int Security);
|
||||
void add_option(std::string opt_name, computer_action action, int Security);
|
||||
void add_failure(computer_failure failure);
|
||||
void set_security(int Security);
|
||||
void add_option(std::string opt_name, computer_action action, int Security);
|
||||
void add_failure(computer_failure failure);
|
||||
// Basic usage
|
||||
void shutdown_terminal(); // Shutdown (free w_terminal, etc)
|
||||
void use(game *g);
|
||||
bool hack_attempt(game *g, player *p, int Security = -1);// -1 defaults to main security
|
||||
void shutdown_terminal(); // Shutdown (free w_terminal, etc)
|
||||
void use(game *g);
|
||||
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);
|
||||
std::string save_data();
|
||||
void load_data(std::string data);
|
||||
|
||||
std::string name; // "Jon's Computer", "Lab 6E77-B Terminal Omega"
|
||||
int mission_id; // Linked to a mission?
|
||||
std::string name; // "Jon's Computer", "Lab 6E77-B Terminal Omega"
|
||||
int mission_id; // Linked to a mission?
|
||||
|
||||
private:
|
||||
int security; // Difficulty of simply logging in
|
||||
std::vector<computer_option> options; // Things we can do
|
||||
std::vector<computer_failure> failures; // Things that happen if we fail a hack
|
||||
WINDOW *w_terminal; // Output window
|
||||
int security; // Difficulty of simply logging in
|
||||
std::vector<computer_option> options; // Things we can do
|
||||
std::vector<computer_failure> failures; // Things that happen if we fail a hack
|
||||
WINDOW *w_terminal; // Output window
|
||||
|
||||
// Called by use()
|
||||
void activate_function (game *g, computer_action action);
|
||||
void activate_function (game *g, computer_action action);
|
||||
// Generally called when we fail a hack attempt
|
||||
void activate_random_failure(game *g);
|
||||
void activate_random_failure(game *g);
|
||||
// ...but we can also choose a specific failure.
|
||||
void activate_failure (game *g, computer_failure fail);
|
||||
void activate_failure (game *g, computer_failure fail);
|
||||
|
||||
// OUTPUT/INPUT
|
||||
// Reset to a blank terminal (e.g. at start of usage loop)
|
||||
void reset_terminal();
|
||||
void reset_terminal();
|
||||
// Prints a line to the terminal (with printf flags)
|
||||
void print_line(const char *text, ...);
|
||||
void print_line(const char *text, ...);
|
||||
// For now, the same as print_line but in red (TODO: change this?)
|
||||
void print_error(const char *text, ...);
|
||||
void print_error(const char *text, ...);
|
||||
// Prints code-looking gibberish
|
||||
void print_gibberish_line();
|
||||
void print_gibberish_line();
|
||||
// Prints a line and waits for Y/N/Q
|
||||
char query_ynq(const char *text, ...);
|
||||
char query_ynq(const char *text, ...);
|
||||
// Same as query_ynq, but returns true for y or Y
|
||||
bool query_bool(const char *text, ...);
|
||||
bool query_bool(const char *text, ...);
|
||||
// Simply wait for any key, returns True
|
||||
bool query_any(const char *text, ...);
|
||||
bool query_any(const char *text, ...);
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
+1218
-1172
File diff suppressed because it is too large
Load Diff
+15
-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[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
|
||||
@@ -20,14 +25,16 @@ struct constructable
|
||||
int id;
|
||||
std::string name; // Name as displayed
|
||||
int difficulty; // Carpentry skill level required
|
||||
bool loopstages;
|
||||
std::vector<construction_stage> stages;
|
||||
bool (construct::*able) (game *, point);
|
||||
void (construct::*done) (game *, point);
|
||||
|
||||
constructable(int Id, std::string Name, int Diff,
|
||||
bool (construct::*Able) (game *, point),
|
||||
void (construct::*Done) (game *, point)) :
|
||||
id (Id), name (Name), difficulty (Diff), able (Able), done (Done) {};
|
||||
void (construct::*Done) (game *, point),
|
||||
bool LoopStages = false) :
|
||||
id (Id), name (Name), difficulty (Diff), loopstages (LoopStages), able (Able), done (Done) {};
|
||||
};
|
||||
|
||||
struct construct // Construction functions.
|
||||
@@ -49,7 +56,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 +64,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 +75,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);
|
||||
|
||||
|
||||
+1683
-1633
File diff suppressed because it is too large
Load Diff
+31
-10
@@ -27,8 +27,8 @@ struct recipe {
|
||||
int id;
|
||||
itype_id result;
|
||||
craft_cat cat;
|
||||
Skill *sk_primary;
|
||||
Skill *sk_secondary;
|
||||
Skill *skill_used;
|
||||
std::map<Skill*,int> required_skills;
|
||||
int difficulty;
|
||||
int time;
|
||||
bool reversible; // can the item be disassembled?
|
||||
@@ -38,25 +38,46 @@ struct recipe {
|
||||
std::vector<std::vector<component> > tools;
|
||||
std::vector<std::vector<component> > components;
|
||||
|
||||
//Create a string list to describe the skill requirements fir this recipe
|
||||
// Format: skill_name(amount), skill_name(amount)
|
||||
std::string required_skills_string(){
|
||||
std::ostringstream skills_as_stream;
|
||||
if(required_skills.size()){
|
||||
for(std::map<Skill*,int>::iterator iter=required_skills.begin(); iter!=required_skills.end();){
|
||||
skills_as_stream << iter->first->name() << "(" << iter->second << ")";
|
||||
++iter;
|
||||
if(iter != required_skills.end()){
|
||||
skills_as_stream << ", ";
|
||||
}
|
||||
}
|
||||
}
|
||||
else{
|
||||
skills_as_stream << "N/A";
|
||||
}
|
||||
return skills_as_stream.str();
|
||||
}
|
||||
|
||||
recipe() {
|
||||
id = 0;
|
||||
result = "null";
|
||||
sk_primary = NULL;
|
||||
sk_secondary = NULL;
|
||||
skill_used = NULL;
|
||||
difficulty = 0;
|
||||
time = 0;
|
||||
reversible = false;
|
||||
autolearn = false;
|
||||
}
|
||||
|
||||
recipe(std::string pident, int pid, itype_id pres, craft_cat pcat, const char *p1,
|
||||
const char *p2, int pdiff, int ptime, bool preversible, bool pautolearn,
|
||||
recipe(std::string pident, int pid, itype_id pres, craft_cat pcat, std::string &to_use,
|
||||
std::map<std::string,int> &to_require, 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;
|
||||
reversible (preversible), autolearn (pautolearn), learn_by_disassembly (plearn_dis) {
|
||||
skill_used = to_use.size()?Skill::skill(to_use):NULL;
|
||||
if(to_require.size()){
|
||||
for(std::map<std::string,int>::iterator iter=to_require.begin(); iter!=to_require.end(); ++iter){
|
||||
required_skills[Skill::skill(iter->first)] = iter->second;
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
+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 SDLTILES || 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
|
||||
|
||||
+693
@@ -0,0 +1,693 @@
|
||||
#if ((defined TILES ^ defined SDLTILES) || 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) {
|
||||
for (j=1; j<win->height-1; j++)
|
||||
mvwaddch(win, j, 0, ls);
|
||||
} else {
|
||||
for (j=1; j<win->height-1; j++)
|
||||
mvwaddch(win, j, 0, LINE_XOXO);
|
||||
}
|
||||
|
||||
if (rs) {
|
||||
for (j=1; j<win->height-1; j++)
|
||||
mvwaddch(win, j, win->width-1, rs);
|
||||
} else {
|
||||
for (j=1; j<win->height-1; j++)
|
||||
mvwaddch(win, j, win->width-1, LINE_XOXO);
|
||||
}
|
||||
|
||||
if (ts) {
|
||||
for (i=1; i<win->width-1; i++)
|
||||
mvwaddch(win, 0, i, ts);
|
||||
} else {
|
||||
for (i=1; i<win->width-1; i++)
|
||||
mvwaddch(win, 0, i, LINE_OXOX);
|
||||
}
|
||||
|
||||
if (bs) {
|
||||
for (i=1; i<win->width-1; i++)
|
||||
mvwaddch(win, win->height-1, i, bs);
|
||||
} else {
|
||||
for (i=1; i<win->width-1; i++)
|
||||
mvwaddch(win, win->height-1, i, LINE_OXOX);
|
||||
}
|
||||
|
||||
if (tl)
|
||||
mvwaddch(win, 0, 0, tl);
|
||||
else
|
||||
mvwaddch(win, 0, 0, LINE_OXXO);
|
||||
|
||||
if (tr)
|
||||
mvwaddch(win, 0, win->width-1, tr);
|
||||
else
|
||||
mvwaddch(win, 0, win->width-1, LINE_OOXX);
|
||||
|
||||
if (bl)
|
||||
mvwaddch(win, win->height-1, 0, bl);
|
||||
else
|
||||
mvwaddch(win, win->height-1, 0, LINE_XXOO);
|
||||
|
||||
if (br)
|
||||
mvwaddch(win, win->height-1, win->width-1, br);
|
||||
else
|
||||
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;
|
||||
}
|
||||
|
||||
int hline(chtype ch, int n)
|
||||
{
|
||||
return whline(mainwin, ch, n);
|
||||
}
|
||||
|
||||
int vline(chtype ch, int n)
|
||||
{
|
||||
return wvline(mainwin, ch, n);
|
||||
}
|
||||
|
||||
int whline(WINDOW *win, chtype ch, int n)
|
||||
{
|
||||
return mvwvline(mainwin, win->cursory, win->cursorx, ch, n);
|
||||
}
|
||||
|
||||
int wvline(WINDOW *win, chtype ch, int n)
|
||||
{
|
||||
return mvwvline(mainwin, win->cursory, win->cursorx, ch, n);
|
||||
}
|
||||
|
||||
int mvhline(int y, int x, chtype ch, int n)
|
||||
{
|
||||
return mvwhline(mainwin, y, x, ch, n);
|
||||
}
|
||||
|
||||
int mvvline(int y, int x, chtype ch, int n)
|
||||
{
|
||||
return mvwvline(mainwin, y, x, ch, n);
|
||||
}
|
||||
|
||||
int mvwhline(WINDOW *win, int y, int x, chtype ch, int n)
|
||||
{
|
||||
if (ch){
|
||||
for (int i=0; i<n; i++)
|
||||
mvwaddch(win, y, x + i, ch);
|
||||
} else {
|
||||
for (int i=0; i<n; i++)
|
||||
mvwaddch(win, y, x + i, LINE_OXOX);
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
int mvwvline(WINDOW *win, int y, int x, chtype ch, int n)
|
||||
{
|
||||
if (ch){
|
||||
for (int j=0; j<n; j++)
|
||||
mvwaddch(win, y + j, x, ch);
|
||||
} else {
|
||||
for (int j=0; j<n; j++)
|
||||
mvwaddch(win, y + j, x, LINE_XOXO);
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
//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
|
||||
+4
-2
@@ -1,3 +1,5 @@
|
||||
# These are both generated if missing at program startup
|
||||
# These are all generated if missing at program startup
|
||||
keymap.txt
|
||||
options.txt
|
||||
options.txt
|
||||
auto_pickup.txt
|
||||
fontlist.txt
|
||||
+3
-3
@@ -1,3 +1,3 @@
|
||||
Terminus
|
||||
8
|
||||
16
|
||||
Terminus
|
||||
8
|
||||
16
|
||||
|
||||
+148
-76
@@ -1,7 +1,6 @@
|
||||
%
|
||||
Our chemical department has made great strides in the production of a
|
||||
concentrated mutagen, derived from samples of mutated individuals. This
|
||||
substance has been denoted PE012.
|
||||
concentrated mutagen, derived from samples of PE012.
|
||||
%
|
||||
Our chemical department has perfected an untargeted stem cell treatment.
|
||||
Consumption of the treatment will reverse the effects of mutation, and may
|
||||
@@ -11,9 +10,9 @@ Both PE012 and PE018 show great stability. A subject was exposed to both
|
||||
substances, alternating between the mutagen and the purifier. Ultimately, the
|
||||
subject returned to baseline state with no apparent side effects.
|
||||
%
|
||||
We have made a fascinating discovery; by creating a miniature portal with low
|
||||
stability and high power, one can transpose into the 4th dimension and return
|
||||
immediately, but shifted by several meters. Our subjects oscillated so
|
||||
We have made a fascinating discovery; by creating a miniature portal with
|
||||
low stability and high power, one can transpose into the 4th dimension and
|
||||
return immediately, but shifted by several meters. Our subjects oscillated so
|
||||
quickly that none were even aware that they had visited lower planes.
|
||||
%
|
||||
Our research on teleportation has ground to a halt. For some reason, the
|
||||
@@ -26,36 +25,37 @@ Security was called in immediately but was unable to save the janitor from
|
||||
being torn apart. By the time the confusion settled, all the fauna had been
|
||||
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 was destroyed when
|
||||
security put down the fauna.
|
||||
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 was
|
||||
destroyed when security put down the fauna.
|
||||
%
|
||||
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.
|
||||
%
|
||||
Test subjects in the teleportation department are showing alarming symptoms.
|
||||
It seems prolonged rapid transposition along the 4th dimension weakens the
|
||||
forces holding one on this plane.
|
||||
Test subjects in the teleportation department are showing alarming
|
||||
symptoms. It seems prolonged rapid transposition along the 4th dimension
|
||||
weakens the forces holding one on this plane.
|
||||
%
|
||||
Catastrophe struck in our teleportation department yesterday. It seems that
|
||||
our test subjects are so detached from this plane that they create occasional
|
||||
tunnels along the 4th dimension, allowing life forms to transfer to this
|
||||
plane. All subjects with prolonged exposure have been terminated.
|
||||
Catastrophe struck in our teleportation department yesterday. It seems
|
||||
that our test subjects are so detached from this plane that they create
|
||||
occasional 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 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
|
||||
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.
|
||||
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.
|
||||
%
|
||||
XE037 shows promise as a catalyst for both cloning and treatments that mimic
|
||||
stem cells. This is further evidence supporting Hendelson's theory of a near
|
||||
universal symbiotic relationship involving XE037.
|
||||
XE037 shows promise as a catalyst for both cloning and treatments that
|
||||
mimic stem cells. This is further evidence supporting Hendelson's theory of a
|
||||
near universal symbiotic relationship involving XE037.
|
||||
%
|
||||
Several of the more advanced specimens we have retrieved show stunning
|
||||
similarity to XE037. XE142 and XE157 in particular show the same amorphous,
|
||||
@@ -65,90 +65,162 @@ Today we tested weaponry against XE142 and XE157, two amorphous subprime
|
||||
samples. Their form proved to be nearly invulnerable to projectile based
|
||||
weaponry, but they were susceptible to directed energy weapons and flagration.
|
||||
%
|
||||
Our cloning department has failed to produce results. In vats containing stem
|
||||
cell treatments, XE037, and control vats, the subjects simple disintegrated.
|
||||
This suggests that XE037, while compatible with subprime lifeforms, shows only
|
||||
destructive effects on prime plane lifeforms.
|
||||
Our cloning department has failed to produce results. In vats containing
|
||||
stem cell treatments, XE037, and control vats, the subjects simple
|
||||
disintegrated. This suggests that XE037, while compatible with subprime
|
||||
lifeforms, shows only destructive effects on prime plane lifeforms.
|
||||
%
|
||||
The vivisection program has shown mixed results, revealing an incredible
|
||||
degree of variation in subplane lifeforms. Certain specimens have an internal
|
||||
structure that is amazingly similar to that of mammals, while others seem to
|
||||
have no internal structure at all.
|
||||
%
|
||||
Our security department has identified several key flaws. Though our surface
|
||||
entrance is quite secure, there are several possible points of entry below
|
||||
the surface, particularly in the sewage systems.
|
||||
Our security department has identified several key flaws. Though our
|
||||
surface entrance is quite secure, there are several possible points of entry
|
||||
below 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 revivification progress, but displayed next to no human
|
||||
intelligence.
|
||||
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 revivification progress, but displayed
|
||||
next to no human intelligence.
|
||||
%
|
||||
Mendelson shows a dismaying lack of organization and security consciousness.
|
||||
Containment of all samples of XE037 is of critical importance, as shown by
|
||||
contamination experiments.
|
||||
Mendelson shows a dismaying lack of organization and security
|
||||
consciousness. Containment of all samples of XE037 is of critical importance,
|
||||
as shown by contamination experiments.
|
||||
%
|
||||
Mendelson has been terminated following an incident with XE037. A substantial
|
||||
mobile sample departed his lab and encountered our security forces. Before
|
||||
the sample was destroyed, it managed to kill two men. Alarmingly, their
|
||||
corpses displayed mobility and extreme aggression.
|
||||
Mendelson has been terminated following an incident with XE037. A
|
||||
substantial mobile sample departed his lab and encountered our security
|
||||
forces. Before the sample was destroyed, it managed to kill two men.
|
||||
Alarmingly, their corpses displayed mobility and extreme aggression.
|
||||
%
|
||||
We have created a new department to investigate the effects of XE037 on the
|
||||
human body, specifically to examine the revivification effect observed on two
|
||||
prior occasions. Sadly, our human subject pool is dwindling due to the short
|
||||
lifespan of subjects in this program. More will be acquired soon.
|
||||
%
|
||||
Testing XE037 on non-human mammal subjects does not appear to display the same
|
||||
revivifying effect, oddly enough. Acquiring non-human subjects, sadly, is a
|
||||
long and costly process, and research into this area is lacking.
|
||||
Testing XE037 on non-human mammal subjects does not appear to display the
|
||||
same revivifying effect, oddly enough. Acquiring non-human subjects, sadly,
|
||||
is a long and costly process, and research into this area is lacking.
|
||||
%
|
||||
After our curious results with testing XE037 on non-human mammals, we decided
|
||||
to introduce the substance to some of the insects which have found their way
|
||||
into the lab. Horrifyingly, XE037 caused near-instant mutation and gigantism
|
||||
in the insects, and security intervention was required.
|
||||
After our curious results with testing XE037 on non-human mammals, we
|
||||
decided to introduce the substance to some of the insects which have found
|
||||
their way into the lab. Horrifyingly, XE037 caused near-instant mutation
|
||||
and gigantism 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
|
||||
Earlier conjecture that revivification occurred only in humans and insects
|
||||
was premature. Exposure introduces a persistent, low level infection in all
|
||||
mammal subjects, but quickly enters a form of stasis and seems to go dormant.
|
||||
%
|
||||
The primary factor in determining revivification of mammalian subjects
|
||||
seems to be the amount of XE037 within the body at time of expiration. Smaller
|
||||
mammals such as lab rats do not obtain this critical mass of XE037 before
|
||||
going dormant. Larger canine subjects, however, do.
|
||||
%
|
||||
I swear they are talking to me. No one believes me. No one understands. They
|
||||
whisper to me, at night, in the dark. Please, please, make them stop.
|
||||
%
|
||||
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; revivification only occurs when the subject is exposed to XE037
|
||||
prior to expiration.
|
||||
%
|
||||
Attempts to surpass the XE037 mammalian stasis limit have had some success.
|
||||
Direct subcutaneous injection of XE037 quickly spreads through the body, and
|
||||
while it immediately enters stasis after equalizing, it remains in the body.
|
||||
%
|
||||
There has been an incident in Lab 24, 2 casualties reported, one lethal.
|
||||
A rat involved in the stasis breaking project was hooked to a monitoring
|
||||
machine and left over night. Upon opening the cage, Simon Bellevue was
|
||||
electrocuted, and another researcher at the opposite end of the lab sustained
|
||||
severe current burns, despite never approaching the cage.
|
||||
%
|
||||
A post mortem on the rat involved in the electrocution incident has
|
||||
revealed several changes to it's internal anatomy centered around it's
|
||||
connection with the monitoring device, and large buildups of XE037 were
|
||||
detected around the connection point.
|
||||
%
|
||||
There is a belief several other rat subjects experienced changes overnight
|
||||
as well. This hypothesis was informed when an inventory check after the
|
||||
incident found almost twenty rats had gone missing from their cages overnight.
|
||||
%
|
||||
Exposure of large quantities of XE037 to various types of radiation have
|
||||
shown promising results, stimulating activity and forming interesting
|
||||
structural changes in the subject being tested. Exposure to radiation on
|
||||
living subjects schedules.
|
||||
%
|
||||
Exposure to radiation of test subject T3D indicates stimulation of internal
|
||||
XE037 deposits and a temporary lifting of the mammalian stasis condition.
|
||||
%
|
||||
As in the tests of isolated XE037 samples, prolonged radiation exposure of
|
||||
T3D has resulted in significant structural changes. These do not appear to be
|
||||
random. T3D appears to be in immense pain as a result of these changes, but
|
||||
the lack of an oral opening has rendered him unable to vocalize.
|
||||
%
|
||||
Subject T3D has succumbed to radiation poisoning, but not before undergoing
|
||||
several more physiological changes the lab boys are referring to as
|
||||
"mutations". They do not appear to be truly random, and may be an attempt
|
||||
by XE037 to adapt its host to an unknown stimulus.
|
||||
%
|
||||
Post-mortem revivification of subject T3D occurred as expected, followed by
|
||||
an immediate autopsy. The internal changes were significant, with large
|
||||
parts of the subjects internal anatomy replaced with "organs" of XE037 with
|
||||
unknown properties, primarily those known to succumb earlier to the effects
|
||||
of radiation poisoning.
|
||||
%
|
||||
Samples of XE037 from subject T3D remains extremely active. Further
|
||||
experimentation on induced mutation in infected individuals shows
|
||||
significant potential. Samples of the enhanced XE037, labeled PE012, have
|
||||
been sent to several researchers for further study.
|
||||
%
|
||||
S37ZBE, the special investigation into the effects of XE037 on inert human
|
||||
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.
|
||||
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.
|
||||
%
|
||||
Incidence of post-mortem mutation seems to depend on several factors -
|
||||
leading candidates include type and amount of damaged sustained leading
|
||||
to expiration, embedded foreign bodies at time of revivification,
|
||||
proximity to other revived individuals, and the body mass of the subject.
|
||||
%
|
||||
Time also appears to play a large role in post-mortem revivification, as
|
||||
does sustained trauma insufficient to permanently disable the subject.
|
||||
Sufficient amounts of trauma in short periods of time lead to deactivation
|
||||
of XE037, but smaller amounts over several days cause it to expand.
|
||||
%
|
||||
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.
|
||||
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 of our security forces have been redirected to the
|
||||
S37ZBE project, simply to deal with the occasional escape of a subject.
|
||||
Jakobson insists that S37ZBE must continue, despite the extreme security
|
||||
and 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.
|
||||
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.
|
||||
%
|
||||
Despite a wide variety of treatments, we have been completely unsuccessful in
|
||||
removing XE037 from human subjects. Every individual displayed revivification
|
||||
post termination. Interestingly, XE037 seems to be completely inert prior to
|
||||
termination.
|
||||
Despite a wide variety of treatments, we have been completely unsuccessful
|
||||
in 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
|
||||
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
|
||||
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
|
||||
substance shows no effect on postmortem subjects whatsoever; a substance which
|
||||
renders XE037 inert after it has activated would be immensely useful in the
|
||||
case of an outbreak.
|
||||
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 substance shows no effect on postmortem subjects whatsoever; a substance
|
||||
which renders XE037 inert after it has activated would be immensely useful in
|
||||
the case of an outbreak.
|
||||
%
|
||||
An alarming discovery has been made. A colony of XE037 has formed nearly a
|
||||
half mile from the laboratory. It is unclear how it escaped; it is quite
|
||||
@@ -163,10 +235,10 @@ 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
|
||||
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.
|
||||
|
||||
Executable → Regular
|
Before Width: | Height: | Size: 66 KiB After Width: | Height: | Size: 66 KiB |
Executable → Regular
+246
-6
@@ -1,22 +1,209 @@
|
||||
Changelog will be a little light for the early entries due to me being really bad at documenting things.
|
||||
0.8
|
||||
|
||||
Highlights:
|
||||
---
|
||||
Releasing with Russian, Chinese, and bla translations.
|
||||
Draggable vhicles, e.g. shopping carts.
|
||||
Memorial file listing player history.
|
||||
Tiles!
|
||||
Basic farming support.
|
||||
Support for save backwards compatability.
|
||||
Option to adjust city size, make a whole map metropolis!
|
||||
Option to adjust monster density, walls of zombies!
|
||||
|
||||
Features:
|
||||
---
|
||||
Intelligence dependent skill rust option.
|
||||
Uncanny Dodge CBM
|
||||
Weight management rework, weight now in grams.
|
||||
If the player is overloaded, the strain causes pain.
|
||||
Display option for metric vs imperial vehicle speed.
|
||||
Beanbag rounds for shotguns and grenade launchers.
|
||||
Added headlights that can be aimed at installation time.
|
||||
Active bionics.
|
||||
Throw single items from stacks instead of whole stack.
|
||||
Updated many menus to updated menu system that provides acrolling, filtering and more unified hotkeys.
|
||||
Crafting overhaul, crafting no longer trains combat skills and vice versa.
|
||||
Reworked rain protection, items now have waterproof flags.
|
||||
Crafting recipes you can actually perform bubble to the top of the list.
|
||||
New laser weapons.
|
||||
Pneumatic weapons.
|
||||
Narrow sidebar option.
|
||||
Support unicode character names.
|
||||
Aim-related gunmods.
|
||||
Automatically adjust aim path if the default path is blocked by something.
|
||||
Play Now game start for one-click game initiation.
|
||||
Rework encumbrance to remove nonsensical negative encumbrance.
|
||||
Loosen strictness of encumbrance in general.
|
||||
Heated melee weapons.
|
||||
Plastic item crafting.
|
||||
Option overhaul with new tabbed menu.
|
||||
Swimming now makes you wet.
|
||||
Wetness can be a good thing when it's hot and you're properly attired.
|
||||
Wetness effects asjusted by some mutations.
|
||||
Portable Game system now usable, has playable games snake, sokoban, and robotfindskitten.
|
||||
Vehicle components, vehicles, mutations and traits are moddable in json.
|
||||
fruit bushes spawn in groups.
|
||||
Significant rebalance of fire, emits less smoke, and small fires should burn longer.
|
||||
Basic farming support.
|
||||
Welding rig vehicle component.
|
||||
When in a square with clothes and bedding, sleeping players will use them for warmth.
|
||||
Corpse-filled pits cause less or no damage.
|
||||
Adrenaline shot item.
|
||||
Nerfed Adrenaline rush effect, no more bullettime.
|
||||
Small vehicles are draggable and pushable. Added shopping carts.
|
||||
Funnel now directs rain into container in the same square during rain.
|
||||
Mutation dreams.
|
||||
Siphon water out of vehicles with water tanks.
|
||||
Ice labs.
|
||||
Vehicle collisions based on SCIENCE!
|
||||
Streamlined selecting same ammo over and over again.
|
||||
Blacksmithing.
|
||||
Pickling and other food preservation techniques.
|
||||
Re-enabled mouth encumbrance.
|
||||
Caseless ammunition and guns.
|
||||
New heavy weapons.
|
||||
More features spawning in houses.
|
||||
Significantly reduced map save size.
|
||||
Lots of professions.
|
||||
Many many items and crafting recipes.
|
||||
Energy weapon special effects.
|
||||
Scrollbars in many list menus.
|
||||
Vehicles can spawn smashed into each other.
|
||||
|
||||
Bugfixes:
|
||||
---
|
||||
Mouse cursor hiding.
|
||||
Terminal text display fixes.
|
||||
Very significant performance improvements.
|
||||
Removed input delay.
|
||||
Allow exiting from long-term activities like wait.
|
||||
All titlebars should use the correct version number.
|
||||
Remove busywaitin WinGDI build. (caused 100% CPU usage)
|
||||
No more "nothing" map tiles.
|
||||
Hand out letters to bionics so more than a few are usable.
|
||||
Monsters no longer attack themselves.
|
||||
Fatal hunger/thirst/fatigue detected correctly.
|
||||
Major monster handling performance improvements to make 50x zombies work.
|
||||
Nerfed smoke inhalation.
|
||||
Major performance increase in mapgen to make huge cities generate before the heat death of the universe.
|
||||
Rain and acid rain doesn't bother you when underwater.
|
||||
Batched raycasting optimization.
|
||||
Fixed old inventory letter overlapping bug.
|
||||
Use shadowcasting algorithm for fast and accurate fov calculation.
|
||||
Vehicles no longer spawn floating above water.
|
||||
Loaded ammo, such as nails in a nailgun can be used for crafting.
|
||||
Light from items more consistent.
|
||||
|
||||
======
|
||||
|
||||
0.7.1 (bugfix point release)
|
||||
|
||||
Vehicle bed sleepiness fix.
|
||||
Made coughing from smoke wake you up.
|
||||
Update version for MSVC project builds.
|
||||
Remove coverage property from wristwatch to prevent ensumberance.
|
||||
Supress pickup from vehicle when doing autopickup.
|
||||
Fix typo in spawn list.
|
||||
Don't draw item glyphs on top of furniture glyphs.
|
||||
Strip out references to a removed ammunition in spawn lists.
|
||||
Change in how Vehicle Examination window is displayed so it works in 12x12 View Screens
|
||||
Fix for weapon mods with no ammo types.
|
||||
|
||||
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:
|
||||
---
|
||||
* Some work to make vehicle collisions sane.
|
||||
* 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.
|
||||
* Leather repair/reinforcement actually possible!
|
||||
* 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 missions, for those who play with the shelter NPC turned on.
|
||||
* 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:
|
||||
@@ -45,7 +232,7 @@ 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 (but it does make it slightly less rotten).
|
||||
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.
|
||||
@@ -112,6 +299,59 @@ 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.
|
||||
|
||||
|
||||
======
|
||||
|
||||
+9
-9
@@ -2,15 +2,15 @@
|
||||
# Max length of a line is 68 characters; the following line is for reference
|
||||
####################################################################
|
||||
Original author: Project Manager: Website/Forum:
|
||||
Whales (retired) TheDarklingWolf GlyphGryph
|
||||
Whales (retired) Kevingranade GlyphGryph
|
||||
|
||||
Main Developers/Gihub Managers:
|
||||
Kevingranade, Ozone, TheDarklingWolf, zpmorgan
|
||||
Current Main Developers/Github Managers:
|
||||
Kevingranade, GalenEvil, i2amroy, AtomicDryad, Ozone
|
||||
|
||||
Active Contributors:
|
||||
BurnZeZ, Oddzball, Shades, Shoes01, Tase, GalenEvil
|
||||
Special thanks to:
|
||||
TheDarklingWolf - For creating Cataclysm:DDA as we know it
|
||||
Narc - For setting up the automatic Jenkins build-bot
|
||||
yobbobanana - For working as liason between translators and github
|
||||
|
||||
Contributors:
|
||||
AkrionXxarr, Benjamg, Creidieki, Daftfad, Elricsfate, Gim,
|
||||
GlyphGryph, Gremour, HerbertJones, hovatterz, Origamiwolf,
|
||||
Soron, Uzername, Voker57, Wito, i2amroy
|
||||
For a full list of contributors please see:
|
||||
https://github.com/CleverRaven/Cataclysm-DDA/contributors
|
||||
|
||||
Binary file not shown.
@@ -0,0 +1,17 @@
|
||||
#Until multiple tilesets are implemented, there should only ever be these two entries
|
||||
#in this file.
|
||||
|
||||
#Paths to Deon's tileset: gfx/DeonTileset/tile_config.json & /deontiles.png
|
||||
#Paths to Hoder's tileset: gfx/HoderTileset/tile_config.json & /hodertiles.png
|
||||
|
||||
#DEON's TILESET
|
||||
#JSON Path - Default of gfx/tile_config.json
|
||||
JSON: gfx/DeonTileset/tile_config.json
|
||||
#Tileset Path - Default of gfx/tinytile.png
|
||||
TILESET: gfx/DeonTileset/deontiles.png
|
||||
|
||||
#HODER'S TILESET -- Commented out
|
||||
#JSON Path - Default of gfx/tile_config.json
|
||||
#JSON: gfx/HoderTileset/tile_config.json
|
||||
#Tileset Path - Default of gfx/tinytile.png
|
||||
#TILESET: gfx/HoderTileset/hodertiles.png
|
||||
@@ -1,18 +1,19 @@
|
||||
# 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.5:
|
||||
* Todo
|
||||
* Fixes, fixes and more fixes.
|
||||
Major features v0.8 Romero:
|
||||
* Tiles!
|
||||
* Optional huge cities packed with zombies!
|
||||
* Player memorial file.
|
||||
* Save compatability moving forward.
|
||||
* Russian and Chinese translations.
|
||||
* Farming.
|
||||
* Shopping carts.
|
||||
|
||||
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
|
||||
Static NPCs, Randomly spawning NPCs, Seasons
|
||||
Source: https://github.com/CleverRaven/Cataclysm-DDA
|
||||
|
||||
Ingame you can access the options via the help menu (?2).
|
||||
|
||||
@@ -0,0 +1,588 @@
|
||||
[
|
||||
{
|
||||
"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_power_storage",
|
||||
"name" : "Power Storage",
|
||||
"cost" : 0,
|
||||
"time" : 0,
|
||||
"description": "Compact Bionics Module that upgrades your power capacity by 4 units. Having at least one of these is a prerequisite to using powered bionics. You will also need a power supply, found in another CBM."
|
||||
},
|
||||
{
|
||||
"id" : "bio_power_storage_mkII",
|
||||
"name" : "Power Storage Mk. II",
|
||||
"cost" : 0,
|
||||
"time" : 0,
|
||||
"description": "Compact Bionics Module developed at DoubleTech Industries as a replacement for the highly successful CBM: Power Storage. Increases you power capacity by 10 units."
|
||||
},
|
||||
{
|
||||
"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 contained 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 energy 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 level 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 when 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 power 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 will 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 you start to forget a skill, you have a chance at retaining all knowledge, at the 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 better than the average person. Additionally, high-intensity sounds will be automatically 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_dex_enhancer",
|
||||
"name" : "Wired Reflexes",
|
||||
"cost" : 0,
|
||||
"time" : 0,
|
||||
"description": "Your reaction time has been greatly enhanced with bionic nerve stimulators, giving you a +2 bonus to dexterity."
|
||||
},
|
||||
{
|
||||
"id" : "bio_str_enhancer",
|
||||
"name" : "Muscle Augmentation",
|
||||
"cost" : 0,
|
||||
"time" : 0,
|
||||
"description": "Your muscular system has been enhanced with myomer fibers, giving you a +2 bonus to strength."
|
||||
},
|
||||
{
|
||||
"id" : "bio_int_enhancer",
|
||||
"name" : "Cerebral Booster",
|
||||
"cost" : 0,
|
||||
"time" : 0,
|
||||
"description": "Your brain has been enhanced with bionic coprocessors, giving you a +2 bonus to intelligence."
|
||||
},
|
||||
{
|
||||
"id" : "bio_membrane",
|
||||
"name" : "Nictating Membrane",
|
||||
"cost" : 0,
|
||||
"time" : 0,
|
||||
"description": "Your eyes have a thin membrane that closes over your eyes while underwater, negating 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 that of your arms, to a degree. Shots you fire will be much more accurate, particularly at long range."
|
||||
},
|
||||
{
|
||||
"id" : "bio_gills",
|
||||
"name" : "Membrane Oxygenator",
|
||||
"cost" : 1,
|
||||
"time" : 0,
|
||||
"description": "An oxygen interchange system automatically switches on while underwater, slowly 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 their 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 of 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 may 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 processors, allowing you to reclaim waste liquid and, to a lesser degree, nutrients. 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 intestines. Not only can you extract much more nutrition from food, but you are 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, hammer, wrench, and heating elements. You can use this in place of many tools when crafting."
|
||||
},
|
||||
{
|
||||
"id" : "bio_shock",
|
||||
"name" : "Electroshock Unit",
|
||||
"cost" : 0,
|
||||
"time" : 1,
|
||||
"flags" : ["ACTIVE"],
|
||||
"description": "While fighting unarmed, or with a weapon that conducts electricity, there is a chance that a successful hit will shock your opponent, inflicting extra damage and disabling them temporarily at the cost of some energy."
|
||||
},
|
||||
{
|
||||
"id" : "bio_heat_absorb",
|
||||
"name" : "Heat Drain",
|
||||
"cost" : 0,
|
||||
"time" : 1,
|
||||
"flags" : ["ACTIVE"],
|
||||
"description": "While fighting unarmed against a warm-blooded opponent, there is a chance that a successful hit will drain body heat, inflicting a small amount of extra 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 reduces 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 your 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 greatly."
|
||||
},
|
||||
{
|
||||
"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 greatly."
|
||||
},
|
||||
{
|
||||
"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 greatly."
|
||||
},
|
||||
{
|
||||
"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 in 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-blooded 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 impulses, making you impossible to recognize. While not powered, however, the 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 attempting to penetrate this field has a chance of being deflected at the cost 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 field does not deflect penetration, but rather delivers a very strong shock, damaging 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 it 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, making it possible for you to recognize your surroundings even if you can't see 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 your background, rendering you fully invisible to normal vision. However, you 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, allowing you to dull your senses at will. However, the use of this system may 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 energy 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, this system will prevent heat damage up to 2000 degrees fahrenheit. Note that 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 shockwave. While it will not too much damage to flexible creatures, stiff items 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 dramatically, essentially freezing time. You are still delicate, however, and 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 transporting your body up to 25 feet at the cost of much power. Note that prolonged 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 blood. 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 impurities, primarily drugs. It will have limited impact on viruses. Note that 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 fifteen-foot radius, and will silently alert you. This is very useful during sleep, 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 a 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 the 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 extend. These do considerable cutting damage, but prevent you from holding anything 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 your energy banks to fire a damaging heat ray; however, you are unable to use or 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 range weapon is not incredibly damaging, but is very accurate, and has the potential 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. You may use power to fire a short-ranged blast which will disable electronics and robots."
|
||||
},
|
||||
{
|
||||
"id" : "bio_hydraulics",
|
||||
"name" : "Hydraulic Muscles",
|
||||
"cost" : 1,
|
||||
"time" : 3,
|
||||
"flags" : ["ACTIVE"],
|
||||
"description": "While activated, the muscles in your arms will be greatly enhanced, increasing 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 of a dead body, cleanse it of impurities and convert it into drinkable water. You 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 made 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 unit used to override control panels and the like (but not computers). Skill in 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 automatic system will quickly unlock all but the most advanced key locks without any 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 the 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. The Mk. II was designed by DoubleTech Inc., to meet the popularity of the Mk. II power 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 to a flashbang grenade, blinding nearby enemies. Speakers integrated into your body 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 iron and steel objects at a cost of 1 power per throw, causing them to leave 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 walls, reappearing on the other side. Power drain in standby is minimal, but 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. Targets are stunned briefly, take damage and additional stun upon impact with 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 emit a blast of lightning at a target, leaving a trail of lightning in 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_uncanny_dodge",
|
||||
"name" : "Uncanny Dodge",
|
||||
"cost" : 1,
|
||||
"time" : 10,
|
||||
"flags" : ["ACTIVE"],
|
||||
"description": "Your nervous system has been augmented with bionic processors, allowing you to dodge attacks beyond normal human capability, including bullets."
|
||||
},
|
||||
{
|
||||
"id" : "bio_dis_shock",
|
||||
"name" : "Electrical Discharge",
|
||||
"cost" : 0,
|
||||
"time" : 0,
|
||||
"flags" : ["FAULTY"],
|
||||
"description": "A malfunctioning bionic which occasionally discharges electricity through your 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, causing 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 occasionally 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 batteries are above 75%%%% capacity, causing greatly reduced strength. This has 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, causing increased encumbrance."
|
||||
}
|
||||
]
|
||||
@@ -0,0 +1,325 @@
|
||||
[
|
||||
{
|
||||
"message" : [
|
||||
"You have a strange dream about lizards.",
|
||||
"Your dreams give you a strange scaly feeling."
|
||||
],
|
||||
"category" : "MUTCAT_LIZARD",
|
||||
"strength" : 1
|
||||
},
|
||||
|
||||
{
|
||||
"message" : [
|
||||
"You have a strange dream about birds.",
|
||||
"Your dreams give you a strange feathered feeling."
|
||||
],
|
||||
"category" : "MUTCAT_BIRD",
|
||||
"strength" : 1
|
||||
},
|
||||
|
||||
{
|
||||
"message" : [
|
||||
"You have a strange dream about fish.",
|
||||
"Your dreams give you a strange wet, scaly feeling."
|
||||
],
|
||||
"category" : "MUTCAT_FISH",
|
||||
"strength" : 1
|
||||
},
|
||||
|
||||
{
|
||||
"message" : [
|
||||
"You have a strange dream about animals.",
|
||||
"Your dreams give you a strange furry feeling."
|
||||
],
|
||||
"category" : "MUTCAT_BEAST",
|
||||
"strength" : 1
|
||||
},
|
||||
|
||||
{
|
||||
"message" : [
|
||||
"You have a strange dream about cattle.",
|
||||
"Your dreams give you a strange content, furry feeling."
|
||||
],
|
||||
"category" : "MUTCAT_CATTLE",
|
||||
"strength" : 1
|
||||
},
|
||||
|
||||
{
|
||||
"message" : [
|
||||
"You have a strange dream about insects.",
|
||||
"Your dreams give you a strange chitinous feeling."
|
||||
],
|
||||
"category" : "MUTCAT_INSECT",
|
||||
"strength" : 1
|
||||
},
|
||||
|
||||
{
|
||||
"message" : [
|
||||
"You have a strange dream about plants.",
|
||||
"Your dreams give you a strange plantlike feeling."
|
||||
],
|
||||
"category" : "MUTCAT_PLANT",
|
||||
"strength" : 1
|
||||
},
|
||||
|
||||
{
|
||||
"message" : [
|
||||
"You have a strange dream about slime.",
|
||||
"Your dreams give you a strange slimy feeling."
|
||||
],
|
||||
"category" : "MUTCAT_SLIME",
|
||||
"strength" : 1
|
||||
},
|
||||
|
||||
{
|
||||
"message" : [
|
||||
"You have a strange dream about living in a cave.",
|
||||
"Your dreams give a strange reclusive feeling."
|
||||
],
|
||||
"category" : "MUTCAT_TROGLO",
|
||||
"strength" : 1
|
||||
},
|
||||
|
||||
{
|
||||
"message" : [
|
||||
"You have a strange dream about sea creatures.",
|
||||
"Your dreams give you a strange wet feeling."
|
||||
],
|
||||
"category" : "MUTCAT_CEPHALOPOD",
|
||||
"strength" : 1
|
||||
},
|
||||
|
||||
{
|
||||
"message" : [
|
||||
"You have a strange dream about spiders.",
|
||||
"Your dreams give you a strange webbed feeling."
|
||||
],
|
||||
"category" : "MUTCAT_SPIDER",
|
||||
"strength" : 1
|
||||
},
|
||||
|
||||
{
|
||||
"message" : [
|
||||
"You have a strange dream about rats.",
|
||||
"Your dreams give you a strange fuzzy feeling."
|
||||
],
|
||||
"category" : "MUTCAT_RAT",
|
||||
"strength" : 1
|
||||
},
|
||||
|
||||
{
|
||||
"message" : [
|
||||
"You have a disturbing dream of bathing in the sun on a rock.",
|
||||
"While dreaming, you see a distinctively lizard-like reflection of yourself."
|
||||
],
|
||||
"category" : "MUTCAT_LIZARD",
|
||||
"strength" : 2
|
||||
},
|
||||
|
||||
{
|
||||
"message" : [
|
||||
"You have strange dreams of soaring through the sky.",
|
||||
"In a dream, you see a curiously birdlike reflection of yourself."
|
||||
],
|
||||
"category" : "MUTCAT_BIRD",
|
||||
"strength" : 2
|
||||
},
|
||||
|
||||
{
|
||||
"message" : [
|
||||
"You dream of swimming in the open ocean",
|
||||
"In your dream, you see a strangely fishlike image of yourself."
|
||||
],
|
||||
"category" : "MUTCAT_FISH",
|
||||
"strength" : 2
|
||||
},
|
||||
|
||||
{
|
||||
"message" : [
|
||||
"You have a vivid dream of hunting in the woods.",
|
||||
"Whilst dreaming, you see a disturbingly bestial version of yourself."
|
||||
],
|
||||
"category" : "MUTCAT_BEAST",
|
||||
"strength" : 2
|
||||
},
|
||||
|
||||
{
|
||||
"message" : [
|
||||
"You dream of grazing in an open field.",
|
||||
"In a dream you catch a glimpse of a strangely cattle-like image of yourself."
|
||||
],
|
||||
"category" : "MUTCAT_CATTLE",
|
||||
"strength" : 2
|
||||
},
|
||||
|
||||
{
|
||||
"message" : [
|
||||
"You have a dream of working in a hive.",
|
||||
"While dreaming you look into a mirror and see a frighteningly insectoid reflection."
|
||||
],
|
||||
"category" : "MUTCAT_INSECT",
|
||||
"strength" : 2
|
||||
},
|
||||
|
||||
{
|
||||
"message" : [
|
||||
"You have a confusing dream of growing in a garden.",
|
||||
"You are confused by a plantlike image of yourself in a dream."
|
||||
],
|
||||
"category" : "MUTCAT_PLANT",
|
||||
"strength" : 2
|
||||
},
|
||||
|
||||
{
|
||||
"message" : [
|
||||
"You have a strange dream of living in sludge.",
|
||||
"In your dream you see an odd, slimy reflection of yourself."
|
||||
],
|
||||
"category" : "MUTCAT_SLIME",
|
||||
"strength" : 2
|
||||
},
|
||||
|
||||
{
|
||||
"message" : [
|
||||
"You dream of living deep inside a dark cave.",
|
||||
"You dream of being a primitive cave dweller."
|
||||
],
|
||||
"category" : "MUTCAT_TROGLO",
|
||||
"strength" : 2
|
||||
},
|
||||
|
||||
{
|
||||
"message" : [
|
||||
"You dream of living on the ocean floor.",
|
||||
"While dreaming, a reflection of yourself appears almost like an octopus."
|
||||
],
|
||||
"category" : "MUTCAT_CEPHALOPOD",
|
||||
"strength" : 2
|
||||
},
|
||||
|
||||
{
|
||||
"message" : [
|
||||
"You have a strange dream of spinning webs",
|
||||
"In your dream you see a very spiderlike version of yourself."
|
||||
],
|
||||
"category" : "MUTCAT_SPIDER",
|
||||
"strength" : 2
|
||||
},
|
||||
|
||||
{
|
||||
"message" : [
|
||||
"You vividly dream of living in the sewers.",
|
||||
"In your dream you see a group of rats that look almost like yourself."
|
||||
],
|
||||
"category" : "MUTCAT_RAT",
|
||||
"strength" : 2
|
||||
},
|
||||
|
||||
{
|
||||
"message" : [
|
||||
"You are terrified by a dream of becoming a lizard hybrid.",
|
||||
"You have a disturbingly lifelike dream of living as a lizard."
|
||||
],
|
||||
"category" : "MUTCAT_LIZARD",
|
||||
"strength" : 3
|
||||
},
|
||||
|
||||
{
|
||||
"message" : [
|
||||
"You have a realistic dream of flying south with your flock for the winter.",
|
||||
"You are disturbed when your birdlike dreams are more lifelike than reality."
|
||||
],
|
||||
"category" : "MUTCAT_BIRD",
|
||||
"strength" : 3
|
||||
},
|
||||
|
||||
{
|
||||
"message" : [
|
||||
"You have a disturbing dream of swimming with a school of fish.",
|
||||
"When you wake up you panic about drowning from being out of water."
|
||||
],
|
||||
"category" : "MUTCAT_FISH",
|
||||
"strength" : 3
|
||||
},
|
||||
|
||||
{
|
||||
"message" : [
|
||||
"You vividly dream of running with your pack, hunting a wild animal.",
|
||||
"A terrifyingly real dream has you killing game with your bare teeth."
|
||||
],
|
||||
"category" : "MUTCAT_BEAST",
|
||||
"strength" : 3
|
||||
},
|
||||
|
||||
{
|
||||
"message" : [
|
||||
"You terrifyingly dream of being led to a slaughterhouse by a farmer.",
|
||||
"You find it hard to wake from a vivid dream of grazing on a farm."
|
||||
],
|
||||
"category" : "MUTCAT_CATTLE",
|
||||
"strength" : 3
|
||||
},
|
||||
|
||||
{
|
||||
"message" : [
|
||||
"You are terrified by a dream of serving the hive queen mindlessly.",
|
||||
"Your disturbingly lifelike dream has you pollinating plants."
|
||||
],
|
||||
"category" : "MUTCAT_INSECT",
|
||||
"strength" : 3
|
||||
},
|
||||
|
||||
{
|
||||
"message" : [
|
||||
"You have a confusing and scary dream of becoming a plant.",
|
||||
"The transition from your lifelike dreams of living as a plant to reality shocks you."
|
||||
],
|
||||
"category" : "MUTCAT_PLANT",
|
||||
"strength" : 3
|
||||
},
|
||||
|
||||
{
|
||||
"message" : [
|
||||
"Your vivid dream of living as a slime blob frightens you.",
|
||||
"You find it hard to control your limbs after dreaming of amorphous blob life."
|
||||
],
|
||||
"category" : "MUTCAT_SLIME",
|
||||
"strength" : 3
|
||||
},
|
||||
|
||||
{
|
||||
"message" : [
|
||||
"Your dream of living in the dark for years is almost real.",
|
||||
"You are frightened of the outside after your vivid dream of cave life."
|
||||
],
|
||||
"category" : "MUTCAT_TROGLO",
|
||||
"strength" : 3
|
||||
},
|
||||
|
||||
{
|
||||
"message" : [
|
||||
"Your dreams of living on the ocean floor seem more lifelike than reality.",
|
||||
"You dream of living as a terrifying octopus mutant."
|
||||
],
|
||||
"category" : "MUTCAT_CEPHALOPOD",
|
||||
"strength" : 3
|
||||
},
|
||||
|
||||
{
|
||||
"message" : [
|
||||
"You vividly dream of living in a web and consuming insects.",
|
||||
"Your dreams of fully turning into a spider frighten you."
|
||||
],
|
||||
"category" : "MUTCAT_SPIDER",
|
||||
"strength" : 3
|
||||
},
|
||||
|
||||
{
|
||||
"message" : [
|
||||
"You scream in fear while you dream of being chased by a cat",
|
||||
"Your lifelike dreams have you scavenging food with a pack of rats."
|
||||
],
|
||||
"category" : "MUTCAT_RAT",
|
||||
"strength" : 3
|
||||
}
|
||||
]
|
||||
+3669
-10
File diff suppressed because it is too large
Load Diff
+949
-477
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,861 @@
|
||||
[
|
||||
{
|
||||
"type" : "AMMO",
|
||||
"id" : "arrowhead",
|
||||
"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" : 8,
|
||||
"bashing" : 1,
|
||||
"cutting" : 0,
|
||||
"to_hit" : 0,
|
||||
"ammo_type" : "components",
|
||||
"damage" : 0,
|
||||
"pierce" : 0,
|
||||
"range" : 0,
|
||||
"dispersion" : 0,
|
||||
"recoil" : 0,
|
||||
"count" : 10
|
||||
},
|
||||
{
|
||||
"type" : "AMMO",
|
||||
"id" : "fletching",
|
||||
"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" : "components",
|
||||
"damage" : 0,
|
||||
"pierce" : 0,
|
||||
"range" : 0,
|
||||
"dispersion" : 0,
|
||||
"recoil" : 0,
|
||||
"count" : 10
|
||||
},
|
||||
{
|
||||
"type" : "AMMO",
|
||||
"id" : "shaft_wood",
|
||||
"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" : 42,
|
||||
"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",
|
||||
"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" : 63,
|
||||
"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",
|
||||
"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" : 441,
|
||||
"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",
|
||||
"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" : 42,
|
||||
"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",
|
||||
"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" : 48,
|
||||
"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",
|
||||
"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" : 50,
|
||||
"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",
|
||||
"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" : 43,
|
||||
"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",
|
||||
"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" : 49,
|
||||
"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",
|
||||
"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" : 51,
|
||||
"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",
|
||||
"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" : 64,
|
||||
"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",
|
||||
"price" : 70,
|
||||
"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" : 67,
|
||||
"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",
|
||||
"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" : 71,
|
||||
"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",
|
||||
"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" : 441,
|
||||
"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",
|
||||
"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" : 442,
|
||||
"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",
|
||||
"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" : 8,
|
||||
"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",
|
||||
"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" : 833,
|
||||
"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?",
|
||||
"price" : 400,
|
||||
"material" : "iron",
|
||||
"weight" : 762,
|
||||
"volume" : 1,
|
||||
"bashing" : 10,
|
||||
"cutting" : 0,
|
||||
"to_hit" : -1,
|
||||
"count" : 5,
|
||||
"effects" : ["EXPLOSIVE"]
|
||||
},
|
||||
{
|
||||
"type" : "AMMO",
|
||||
"id" : "arrow_flamming",
|
||||
"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" : 150,
|
||||
"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",
|
||||
"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" : 31,
|
||||
"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",
|
||||
"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" : 217,
|
||||
"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.",
|
||||
"price" : 400,
|
||||
"material" : "wood",
|
||||
"flags" : ["ALWAYS_TWOHAND", "RELOAD_AND_SHOOT"],
|
||||
"skill" : "archery",
|
||||
"ammo" : "arrow",
|
||||
"weight" : 1360,
|
||||
"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",
|
||||
"price" : 800,
|
||||
"material" : "wood",
|
||||
"flags" : ["ALWAYS_TWOHAND", "STR8_DRAW", "RELOAD_AND_SHOOT"],
|
||||
"skill" : "archery",
|
||||
"ammo" : "arrow",
|
||||
"weight" : 340,
|
||||
"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",
|
||||
"price" : 700,
|
||||
"material" : ["steel", "plastic"],
|
||||
"flags" : ["ALWAYS_TWOHAND", "STR8_DRAW", "RELOAD_AND_SHOOT"],
|
||||
"skill" : "archery",
|
||||
"ammo" : "arrow",
|
||||
"weight" : 907,
|
||||
"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",
|
||||
"price" : 1200,
|
||||
"material" : ["wood", "plastic"],
|
||||
"flags" : ["ALWAYS_TWOHAND", "STR10_DRAW", "RELOAD_AND_SHOOT"],
|
||||
"skill" : "archery",
|
||||
"ammo" : "arrow",
|
||||
"weight" : 540,
|
||||
"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",
|
||||
"price" : 1200,
|
||||
"material" : ["steel", "plastic"],
|
||||
"flags" : ["ALWAYS_TWOHAND", "STR10_DRAW", "RELOAD_AND_SHOOT"],
|
||||
"skill" : "archery",
|
||||
"ammo" : "arrow",
|
||||
"weight" : 540,
|
||||
"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",
|
||||
"price" : 1200,
|
||||
"material" : ["steel", "plastic"],
|
||||
"flags" : ["ALWAYS_TWOHAND", "STR10_DRAW", "RELOAD_AND_SHOOT"],
|
||||
"skill" : "archery",
|
||||
"ammo" : "arrow",
|
||||
"weight" : 540,
|
||||
"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",
|
||||
"price" : 800,
|
||||
"material" : "wood",
|
||||
"flags" : ["ALWAYS_TWOHAND", "STR10_DRAW", "RELOAD_AND_SHOOT"],
|
||||
"skill" : "archery",
|
||||
"ammo" : "arrow",
|
||||
"weight" : 680,
|
||||
"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.",
|
||||
"price" : 1200,
|
||||
"material" : ["wood", "bone"],
|
||||
"flags" : ["ALWAYS_TWOHAND", "STR12_DRAW", "RELOAD_AND_SHOOT"],
|
||||
"skill" : "archery",
|
||||
"ammo" : "arrow",
|
||||
"weight" : 540,
|
||||
"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.",
|
||||
"price" : 1000,
|
||||
"material" : ["iron", "wood"],
|
||||
"flags" : "none",
|
||||
"skill" : "archery",
|
||||
"ammo" : "bolt",
|
||||
"weight" : 900,
|
||||
"volume" : 4,
|
||||
"bashing" : 4,
|
||||
"cutting" : 0,
|
||||
"to_hit" : -0,
|
||||
"ranged_damage" : 7,
|
||||
"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.",
|
||||
"price" : 1000,
|
||||
"material" : ["iron", "wood"],
|
||||
"flags" : "STR_RELOAD",
|
||||
"skill" : "archery",
|
||||
"ammo" : "bolt",
|
||||
"weight" : 2728,
|
||||
"volume" : 6,
|
||||
"bashing" : 11,
|
||||
"cutting" : 0,
|
||||
"to_hit" : 1,
|
||||
"ranged_damage" : 13,
|
||||
"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.",
|
||||
"price" : 1000,
|
||||
"material" : ["iron", "wood"],
|
||||
"flags" : ["ALWAYS_TWOHAND", "STR_RELOAD"],
|
||||
"skill" : "archery",
|
||||
"ammo" : "bolt",
|
||||
"weight" : 6803,
|
||||
"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.",
|
||||
"price" : 1000,
|
||||
"material" : ["iron", "wood"],
|
||||
"flags" : ["ALWAYS_TWOHAND", "RELOAD_ONE", "MODE_BURST"],
|
||||
"skill" : "archery",
|
||||
"ammo" : "bolt",
|
||||
"weight" : 3628,
|
||||
"volume" : 10,
|
||||
"bashing" : 13,
|
||||
"cutting" : 0,
|
||||
"to_hit" : -1,
|
||||
"ranged_damage" : 10,
|
||||
"range" : 8,
|
||||
"dispersion" : 22,
|
||||
"recoil" : 15,
|
||||
"durability" : 6,
|
||||
"burst" : 3,
|
||||
"clip_size" : 10,
|
||||
"reload" : 100
|
||||
},
|
||||
{
|
||||
"id":"shaft_plastic",
|
||||
"type":"AMMO",
|
||||
"symbol":"=",
|
||||
"color":"green",
|
||||
"name":"plastic shaft",
|
||||
"description":"A crude shaft made from plastic. It needs arrowheads and fletching to become a functional arrow. You can, however, fire it from a bow.",
|
||||
"to_hit":0,
|
||||
"price":0,
|
||||
"material":"plastic",
|
||||
"bashing":1,
|
||||
"cutting":0,
|
||||
"weight":6,
|
||||
"volume":1,
|
||||
"ammo_type":"arrow",
|
||||
"range":0,
|
||||
"pierce":0,
|
||||
"damage":0,
|
||||
"recoil":0,
|
||||
"dispersion":40,
|
||||
"count":10
|
||||
},
|
||||
{
|
||||
"id":"arrowhead_plastic",
|
||||
"type":"AMMO",
|
||||
"color":"green",
|
||||
"symbol":"=",
|
||||
"name":"plastic arrowhead",
|
||||
"description":"Plastic heads for an arrow. Placing these on an arrow will make the arrow more damaging and piercing.",
|
||||
"price":0,
|
||||
"material":"plastic",
|
||||
"to_hit":0,
|
||||
"cutting":0,
|
||||
"bashing":1,
|
||||
"weight":1,
|
||||
"volume":1,
|
||||
"ammo_type":"components",
|
||||
"range":0,
|
||||
"pierce":0,
|
||||
"damage":0,
|
||||
"recoil":0,
|
||||
"dispersion":0,
|
||||
"count":10
|
||||
},
|
||||
{
|
||||
"id":"arrow_plastic",
|
||||
"type":"AMMO",
|
||||
"symbol":"=",
|
||||
"color":"green",
|
||||
"name":"plastic arrow",
|
||||
"description":"This plastic arrow has a plastic arrow head and some fletchings.",
|
||||
"price":20,
|
||||
"material":"plastic",
|
||||
"volume":1,
|
||||
"weight":8,
|
||||
"bashing":2,
|
||||
"cutting":1,
|
||||
"to_hit":0,
|
||||
"ammo_type":"arrow",
|
||||
"damage":8,
|
||||
"pierce":1,
|
||||
"range":12,
|
||||
"dispersion":15,
|
||||
"recoil":0,
|
||||
"count":10
|
||||
}
|
||||
]
|
||||
+2249
-435
File diff suppressed because it is too large
Load Diff
+352
-148
File diff suppressed because it is too large
Load Diff
+2277
-556
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,274 @@
|
||||
[
|
||||
{
|
||||
"id": "bag_plastic",
|
||||
"type": "CONTAINER",
|
||||
"symbol": ")",
|
||||
"color": "light_gray",
|
||||
"name": "plastic bag",
|
||||
"description": "A small, open plastic bag. Essentially trash.",
|
||||
"price": 1,
|
||||
"weight": 2,
|
||||
"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 500 ml of liquid.",
|
||||
"price": 8,
|
||||
"weight": 13,
|
||||
"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 750 ml of liquid.",
|
||||
"price": 1,
|
||||
"weight": 200,
|
||||
"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.",
|
||||
"price": 1,
|
||||
"weight": 13,
|
||||
"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.",
|
||||
"price": 2,
|
||||
"weight": 400,
|
||||
"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.",
|
||||
"price": 0,
|
||||
"weight": 151,
|
||||
"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.",
|
||||
"price": 1000,
|
||||
"weight": 155,
|
||||
"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.",
|
||||
"price": 2500,
|
||||
"weight": 1587,
|
||||
"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.",
|
||||
"price": 2500,
|
||||
"weight": 190,
|
||||
"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.",
|
||||
"price": 2500,
|
||||
"weight": 48,
|
||||
"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.",
|
||||
"price": 0,
|
||||
"weight": 453,
|
||||
"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.",
|
||||
"price": 5000,
|
||||
"weight": 4815,
|
||||
"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.",
|
||||
"price": 6000,
|
||||
"weight": 13500,
|
||||
"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.",
|
||||
"price": 2500,
|
||||
"weight": 264,
|
||||
"volume": 1,
|
||||
"bashing": 8,
|
||||
"cutting": 0,
|
||||
"to_hit": 1,
|
||||
"material": "glass",
|
||||
"contains": 1,
|
||||
"flags": ["RIGID", "SEALS", "WATERTIGHT"]
|
||||
},
|
||||
{
|
||||
"id": "jar_3l_glass",
|
||||
"type": "CONTAINER",
|
||||
"symbol": ")",
|
||||
"color": "light_cyan",
|
||||
"name": "3l glass jar",
|
||||
"description": "A three-litre glass jar with a metal screw top lid, used for canning.",
|
||||
"price": 3000,
|
||||
"weight": 365,
|
||||
"volume": 3,
|
||||
"bashing": 10,
|
||||
"cutting": 0,
|
||||
"to_hit": 1,
|
||||
"material": "glass",
|
||||
"contains": 5,
|
||||
"flags": ["RIGID", "SEALS", "WATERTIGHT"]
|
||||
},
|
||||
{
|
||||
"id":"bowl_plastic",
|
||||
"type":"CONTAINER",
|
||||
"color":"light_cyan",
|
||||
"symbol":")","to_hit":1,
|
||||
"name":"plastic bowl",
|
||||
"description":"A plastic bowl. Can be used as a container or as a tool. Holds 250 ml of liquid.",
|
||||
"cutting":0,
|
||||
"price":1,
|
||||
"weight":0,
|
||||
"volume":1,
|
||||
"bashing":2,
|
||||
"cutting":0,
|
||||
"to_hit":1,
|
||||
"material":"plastic",
|
||||
"contains":1,
|
||||
"flags":[ "RIGID" ]
|
||||
}
|
||||
]
|
||||
@@ -4,9 +4,8 @@
|
||||
"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,
|
||||
"material": "wood",
|
||||
"weight": 2766,
|
||||
"volume": 24,
|
||||
"damage": 14,
|
||||
"to_hit": 1,
|
||||
@@ -22,9 +21,8 @@
|
||||
"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,
|
||||
"material": ["wood", "steel"],
|
||||
"weight": 400,
|
||||
"volume": 10,
|
||||
"damage": 11,
|
||||
"to_hit": 1,
|
||||
|
||||
+540
-379
File diff suppressed because it is too large
Load Diff
+379
-124
@@ -5,45 +5,43 @@
|
||||
"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,
|
||||
"material": "steel",
|
||||
"weight": 226,
|
||||
"volume": 2,
|
||||
"bashing": 3,
|
||||
"cutting": 0,
|
||||
"to_hit": -1,
|
||||
"accuracy_modifier": 2,
|
||||
"dispersion_modifier": 2,
|
||||
"damage_modifier": 0,
|
||||
"loudness_modifier": 0,
|
||||
"ammo_modifier": ".45",
|
||||
"ammo_modifier": "45",
|
||||
"recoil_modifier": 2,
|
||||
"burst_modifier": 0,
|
||||
"clip_size_modifier": 0,
|
||||
"mod_targets": ["pistol", "smg"],
|
||||
"acceptable_ammo": ["9MM", "38", "40", "44"]
|
||||
"acceptable_ammo": ["9mm", "38", "40", "44"]
|
||||
},
|
||||
{
|
||||
"type" : "GUNMOD",
|
||||
"id" : "suppressor",
|
||||
"name" : "suppressor",
|
||||
"clip_size_modifier" : 0,
|
||||
"accuracy_modifier" : -1,
|
||||
"dispersion_modifier" : 1,
|
||||
"damage_modifier" : -4,
|
||||
"ammo_modifier" : "none",
|
||||
"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,
|
||||
"weight" : 510,
|
||||
"to_hit" : 2,
|
||||
"color" : "dark_gray",
|
||||
"symbol" : ":",
|
||||
"material" : ["STEEL", "PLASTIC"],
|
||||
"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
|
||||
},
|
||||
@@ -52,22 +50,21 @@
|
||||
"id" : "grip",
|
||||
"name" : "enhanced grip",
|
||||
"clip_size_modifier" : 0,
|
||||
"accuracy_modifier" : 2,
|
||||
"dispersion_modifier" : -2,
|
||||
"damage_modifier" : 0,
|
||||
"ammo_modifier" : "none",
|
||||
"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,
|
||||
"weight" : 113,
|
||||
"to_hit" : -1,
|
||||
"color" : "brown",
|
||||
"symbol" : ":",
|
||||
"material" : ["STEEL", "PLASTIC"],
|
||||
"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
|
||||
},
|
||||
@@ -76,22 +73,21 @@
|
||||
"id" : "barrel_big",
|
||||
"name" : "barrel extension",
|
||||
"clip_size_modifier" : 0,
|
||||
"accuracy_modifier" : 6,
|
||||
"dispersion_modifier" : -6,
|
||||
"damage_modifier" : 1,
|
||||
"ammo_modifier" : "none",
|
||||
"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,
|
||||
"weight" : 226,
|
||||
"to_hit" : 2,
|
||||
"color" : "light_gray",
|
||||
"symbol" : ":",
|
||||
"material" : ["STEEL", "NULL"],
|
||||
"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
|
||||
},
|
||||
@@ -100,22 +96,21 @@
|
||||
"id" : "barrel_small",
|
||||
"name" : "shortened barrel",
|
||||
"clip_size_modifier" : 0,
|
||||
"accuracy_modifier" : -5,
|
||||
"dispersion_modifier" : 5,
|
||||
"damage_modifier" : 0,
|
||||
"ammo_modifier" : "none",
|
||||
"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,
|
||||
"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 manageability of the firearm.",
|
||||
"weight" : 113,
|
||||
"to_hit" : -1,
|
||||
"color" : "light_gray",
|
||||
"symbol" : ":",
|
||||
"material" : ["STEEL", "NULL"],
|
||||
"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
|
||||
},
|
||||
@@ -124,22 +119,21 @@
|
||||
"id" : "barrel_rifled",
|
||||
"name" : "rifled barrel",
|
||||
"clip_size_modifier" : 0,
|
||||
"accuracy_modifier" : 10,
|
||||
"dispersion_modifier" : -10,
|
||||
"damage_modifier" : -20,
|
||||
"ammo_modifier" : "none",
|
||||
"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,
|
||||
"weight" : 226,
|
||||
"to_hit" : 1,
|
||||
"color" : "light_gray",
|
||||
"symbol" : ":",
|
||||
"material" : ["STEEL", "NULL"],
|
||||
"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
|
||||
},
|
||||
@@ -148,22 +142,21 @@
|
||||
"id" : "clip",
|
||||
"name" : "extended magazine",
|
||||
"clip_size_modifier" : 50,
|
||||
"accuracy_modifier" : -1,
|
||||
"dispersion_modifier" : 1,
|
||||
"damage_modifier" : 0,
|
||||
"ammo_modifier" : "none",
|
||||
"ammo_modifier" : "NULL",
|
||||
"description" : "Increases the ammunition capacity of your firearm by 50%, but the added bulk reduces accuracy slightly.",
|
||||
"weight" : 1,
|
||||
"weight" : 495,
|
||||
"to_hit" : -1,
|
||||
"color" : "light_gray",
|
||||
"symbol" : ":",
|
||||
"material" : ["STEEL", "PLASTIC"],
|
||||
"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
|
||||
},
|
||||
@@ -172,22 +165,21 @@
|
||||
"id" : "clip2",
|
||||
"name" : "double magazine",
|
||||
"clip_size_modifier" : 100,
|
||||
"accuracy_modifier" : -2,
|
||||
"dispersion_modifier" : 2,
|
||||
"damage_modifier" : 0,
|
||||
"ammo_modifier" : "none",
|
||||
"ammo_modifier" : "NULL",
|
||||
"description" : "Completely doubles the ammunition capacity of your firearm, but the added bulk reduces accuracy and increases recoil.",
|
||||
"weight" : 2,
|
||||
"weight" : 660,
|
||||
"to_hit" : 0,
|
||||
"color" : "light_gray",
|
||||
"symbol" : ":",
|
||||
"material" : ["STEEL", "PLASTIC"],
|
||||
"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
|
||||
},
|
||||
@@ -196,22 +188,44 @@
|
||||
"id" : "spare_mag",
|
||||
"name" : "spare magazine",
|
||||
"clip_size_modifier" : 0,
|
||||
"accuracy_modifier" : 0,
|
||||
"dispersion_modifier" : 0,
|
||||
"damage_modifier" : 0,
|
||||
"ammo_modifier" : "none",
|
||||
"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,
|
||||
"weight" : 330,
|
||||
"to_hit" : 0,
|
||||
"color" : "light_gray",
|
||||
"symbol" : ":",
|
||||
"material" : ["STEEL", "PLASTIC"],
|
||||
"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" : 114,
|
||||
"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,
|
||||
"price" : 200,
|
||||
"loudness_modifier" : 0
|
||||
},
|
||||
@@ -220,22 +234,21 @@
|
||||
"id" : "stabilizer",
|
||||
"name" : "gyroscopic stabilizer",
|
||||
"clip_size_modifier" : -10,
|
||||
"accuracy_modifier" : 2,
|
||||
"dispersion_modifier" : -2,
|
||||
"damage_modifier" : -2,
|
||||
"ammo_modifier" : "none",
|
||||
"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,
|
||||
"weight" : 286,
|
||||
"to_hit" : -3,
|
||||
"color" : "blue",
|
||||
"symbol" : ":",
|
||||
"material" : ["STEEL", "PLASTIC"],
|
||||
"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
|
||||
},
|
||||
@@ -244,22 +257,21 @@
|
||||
"id" : "blowback",
|
||||
"name" : "rapid blowback",
|
||||
"clip_size_modifier" : 0,
|
||||
"accuracy_modifier" : -3,
|
||||
"dispersion_modifier" : 3,
|
||||
"damage_modifier" : 0,
|
||||
"ammo_modifier" : "none",
|
||||
"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,
|
||||
"weight" : 114,
|
||||
"to_hit" : 0,
|
||||
"color" : "red",
|
||||
"symbol" : ":",
|
||||
"material" : ["STEEL", "PLASTIC"],
|
||||
"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
|
||||
},
|
||||
@@ -267,49 +279,47 @@
|
||||
"type" : "GUNMOD",
|
||||
"id" : "autofire",
|
||||
"name" : "auto-fire mechanism",
|
||||
"weight" : 2,
|
||||
"weight" : 226,
|
||||
"color" : "red",
|
||||
"burst_modifier" : 3,
|
||||
"loudness_modifier" : 2,
|
||||
"to_hit" : -1,
|
||||
"accuracy_modifier" : -2,
|
||||
"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"],
|
||||
"material" : ["steel", "plastic"],
|
||||
"volume" : 1,
|
||||
"cutting" : 0,
|
||||
"recoil_modifier" : 2,
|
||||
"damage_modifier" : 0,
|
||||
"acceptable_ammo" : ["22", "9MM", "38", "40", "57", "46"],
|
||||
"acceptable_ammo" : ["22", "9mm", "38", "40", "57", "46"],
|
||||
"mod_targets" : ["pistol"],
|
||||
"rarity" : 2,
|
||||
"bashing" : 2,
|
||||
"ammo_modifier" : "none"
|
||||
"ammo_modifier" : "NULL"
|
||||
},
|
||||
{
|
||||
"type" : "GUNMOD",
|
||||
"id" : "retool_9mm",
|
||||
"name" : "9mm caliber retool",
|
||||
"weight" : 1,
|
||||
"weight" : 114,
|
||||
"color" : "green",
|
||||
"burst_modifier" : 0,
|
||||
"loudness_modifier" : 0,
|
||||
"to_hit" : -1,
|
||||
"accuracy_modifier" : -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"],
|
||||
"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"
|
||||
},
|
||||
@@ -317,148 +327,142 @@
|
||||
"type" : "GUNMOD",
|
||||
"id" : "retool_22",
|
||||
"name" : ".22 caliber retool",
|
||||
"weight" : 1,
|
||||
"weight" : 114,
|
||||
"color" : "green",
|
||||
"burst_modifier" : 0,
|
||||
"loudness_modifier" : 0,
|
||||
"to_hit" : -1,
|
||||
"accuracy_modifier" : -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"],
|
||||
"material" : ["steel", "null"],
|
||||
"volume" : 1,
|
||||
"cutting" : 0,
|
||||
"recoil_modifier" : 0,
|
||||
"damage_modifier" : 0,
|
||||
"acceptable_ammo" : ["9MM", "38", "40", "57", "46", "762", "223"],
|
||||
"acceptable_ammo" : ["9mm", "38", "40", "57", "46", "762", "223"],
|
||||
"mod_targets" : ["pistol", "smg", "rifle"],
|
||||
"rarity" : 2,
|
||||
"bashing" : -2,
|
||||
"ammo_modifier" : ".22"
|
||||
"ammo_modifier" : "22"
|
||||
},
|
||||
{
|
||||
"type" : "GUNMOD",
|
||||
"id" : "retool_57",
|
||||
"name" : "5.7mm caliber retool",
|
||||
"weight" : 1,
|
||||
"weight" : 114,
|
||||
"color" : "green",
|
||||
"burst_modifier" : 0,
|
||||
"loudness_modifier" : 0,
|
||||
"to_hit" : -1,
|
||||
"accuracy_modifier" : -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"],
|
||||
"material" : ["steel", "null"],
|
||||
"volume" : 1,
|
||||
"cutting" : 0,
|
||||
"recoil_modifier" : 0,
|
||||
"damage_modifier" : 0,
|
||||
"acceptable_ammo" : ["22", "9MM", "38"],
|
||||
"acceptable_ammo" : ["22", "9mm", "38"],
|
||||
"mod_targets" : ["pistol", "smg"],
|
||||
"rarity" : 1,
|
||||
"bashing" : -3,
|
||||
"ammo_modifier" : "5.7mm"
|
||||
"ammo_modifier" : "57"
|
||||
},
|
||||
{
|
||||
"type" : "GUNMOD",
|
||||
"id" : "retool_46",
|
||||
"name" : "4.6mm caliber retool",
|
||||
"weight" : 1,
|
||||
"weight" : 114,
|
||||
"color" : "green",
|
||||
"burst_modifier" : 0,
|
||||
"loudness_modifier" : 0,
|
||||
"to_hit" : -1,
|
||||
"accuracy_modifier" : -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"],
|
||||
"material" : ["steel", "null"],
|
||||
"volume" : 1,
|
||||
"cutting" : 0,
|
||||
"recoil_modifier" : 0,
|
||||
"damage_modifier" : 0,
|
||||
"acceptable_ammo" : ["22", "9MM", "38"],
|
||||
"acceptable_ammo" : ["22", "9mm", "38"],
|
||||
"mod_targets" : ["pistol", "smg"],
|
||||
"rarity" : 1,
|
||||
"bashing" : -3,
|
||||
"ammo_modifier" : "4.6mm"
|
||||
"ammo_modifier" : "46"
|
||||
},
|
||||
{
|
||||
"type" : "GUNMOD",
|
||||
"id" : "retool_308",
|
||||
"name" : ".308 caliber retool",
|
||||
"weight" : 1,
|
||||
"weight" : 114,
|
||||
"color" : "green",
|
||||
"burst_modifier" : 0,
|
||||
"loudness_modifier" : 0,
|
||||
"to_hit" : 1,
|
||||
"accuracy_modifier" : -2,
|
||||
"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"],
|
||||
"material" : ["steel", "null"],
|
||||
"volume" : 2,
|
||||
"cutting" : 0,
|
||||
"recoil_modifier" : 0,
|
||||
"damage_modifier" : 0,
|
||||
"acceptable_ammo" : ["SHOT", "762", "223", "3006"],
|
||||
"acceptable_ammo" : ["shot", "762", "223", "3006"],
|
||||
"mod_targets" : ["shotgun", "rifle"],
|
||||
"rarity" : 2,
|
||||
"bashing" : 4,
|
||||
"ammo_modifier" : ".308"
|
||||
"ammo_modifier" : "308"
|
||||
},
|
||||
{
|
||||
"type" : "GUNMOD",
|
||||
"id" : "retool_223",
|
||||
"name" : ".223 caliber retool",
|
||||
"weight" : 1,
|
||||
"weight" : 114,
|
||||
"color" : "green",
|
||||
"burst_modifier" : 0,
|
||||
"loudness_modifier" : 0,
|
||||
"to_hit" : 1,
|
||||
"accuracy_modifier" : -2,
|
||||
"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"],
|
||||
"material" : ["steel", "null"],
|
||||
"volume" : 2,
|
||||
"cutting" : 0,
|
||||
"recoil_modifier" : 0,
|
||||
"damage_modifier" : 0,
|
||||
"acceptable_ammo" : ["SHOT", "762", "3006", "308"],
|
||||
"acceptable_ammo" : ["shot", "762", "3006", "308"],
|
||||
"mod_targets" : ["shotgun", "rifle"],
|
||||
"rarity" : 2,
|
||||
"bashing" : 4,
|
||||
"ammo_modifier" : ".223"
|
||||
"ammo_modifier" : "223"
|
||||
},
|
||||
{
|
||||
"type" : "GUNMOD",
|
||||
"id" : "conversion_battle",
|
||||
"name" : "battle rifle conversion",
|
||||
"clip_size_modifier" : 20,
|
||||
"accuracy_modifier" : -6,
|
||||
"dispersion_modifier" : 6,
|
||||
"damage_modifier" : 6,
|
||||
"ammo_modifier" : "none",
|
||||
"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,
|
||||
"weight" : 589,
|
||||
"to_hit" : -1,
|
||||
"color" : "magenta",
|
||||
"symbol" : ":",
|
||||
"material" : ["STEEL", "NULL"],
|
||||
"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
|
||||
},
|
||||
@@ -467,22 +471,21 @@
|
||||
"id" : "conversion_sniper",
|
||||
"name" : "sniper conversion",
|
||||
"clip_size_modifier" : -15,
|
||||
"accuracy_modifier" : 10,
|
||||
"dispersion_modifier" : -10,
|
||||
"damage_modifier" : 8,
|
||||
"ammo_modifier" : "none",
|
||||
"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,
|
||||
"weight" : 589,
|
||||
"to_hit" : -1,
|
||||
"color" : "green",
|
||||
"symbol" : ":",
|
||||
"material" : ["STEEL", "NULL"],
|
||||
"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
|
||||
},
|
||||
@@ -490,73 +493,118 @@
|
||||
"type" : "GUNMOD",
|
||||
"id" : "m203",
|
||||
"name" : "M203",
|
||||
"weight" : 1,
|
||||
"weight" : 1360,
|
||||
"color" : "light_red",
|
||||
"burst_modifier" : 0,
|
||||
"loudness_modifier" : 0,
|
||||
"to_hit" : -1,
|
||||
"accuracy_modifier" : -2,
|
||||
"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"],
|
||||
"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" : "pipe_launcher40mm",
|
||||
"name" : "40mm pipe launcher",
|
||||
"weight" : 2080,
|
||||
"color" : "light_gray",
|
||||
"burst_modifier" : 0,
|
||||
"loudness_modifier" : 0,
|
||||
"to_hit" : -1,
|
||||
"dispersion_modifier" : 4,
|
||||
"price" : 250,
|
||||
"clip_size_modifier" : 1,
|
||||
"description" : "This is a home built launcher tube that can be attached to almost any rifle. It allows a single 40mm grenade to be loaded and fired.",
|
||||
"symbol" : ":",
|
||||
"material" : ["steel", "plastic"],
|
||||
"volume" : 5,
|
||||
"cutting" : 0,
|
||||
"recoil_modifier" : 0,
|
||||
"damage_modifier" : 0,
|
||||
"mod_targets" : ["rifle"],
|
||||
"bashing" : 4,
|
||||
"flags" : ["MODE_AUX"],
|
||||
"ammo_modifier" : "40mm"
|
||||
},
|
||||
{
|
||||
"type" : "GUNMOD",
|
||||
"id" : "bayonet",
|
||||
"name" : "bayonet",
|
||||
"weight" : 2,
|
||||
"weight" : 387,
|
||||
"color" : "light_cyan",
|
||||
"burst_modifier" : 0,
|
||||
"loudness_modifier" : 0,
|
||||
"to_hit" : -3,
|
||||
"accuracy_modifier" : 0,
|
||||
"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"],
|
||||
"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" : "none"
|
||||
"ammo_modifier" : "NULL"
|
||||
},
|
||||
{
|
||||
"type" : "GUNMOD",
|
||||
"id" : "u_shotgun",
|
||||
"name" : "underslung shotgun",
|
||||
"weight" : 1,
|
||||
"weight" : 1500,
|
||||
"color" : "light_red",
|
||||
"burst_modifier" : 0,
|
||||
"loudness_modifier" : 0,
|
||||
"to_hit" : -1,
|
||||
"accuracy_modifier" : -2,
|
||||
"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"],
|
||||
"material" : ["steel", "null"],
|
||||
"volume" : 2,
|
||||
"cutting" : 0,
|
||||
"recoil_modifier" : 0,
|
||||
"damage_modifier" : 0,
|
||||
"mod_targets" : ["rifle"],
|
||||
"bashing" : 2,
|
||||
"flags" : ["MODE_AUX"],
|
||||
"ammo_modifier" : "shot"
|
||||
},
|
||||
{
|
||||
"type" : "GUNMOD",
|
||||
"id" : "masterkey",
|
||||
"name" : "masterkey shotgun",
|
||||
"weight" : 2600,
|
||||
"color" : "light_red",
|
||||
"burst_modifier" : 0,
|
||||
"loudness_modifier" : 0,
|
||||
"to_hit" : -1,
|
||||
"dispersion_modifier" : 1,
|
||||
"price" : 950,
|
||||
"clip_size_modifier" : 4,
|
||||
"description" : "A minimalist pump action shotgun, which can be mounted under the barrel of many rifles. It allows a total of four 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"
|
||||
@@ -565,25 +613,232 @@
|
||||
"type" : "GUNMOD",
|
||||
"id" : "gun_crossbow",
|
||||
"name" : "rail-mounted crossbow",
|
||||
"weight" : 1,
|
||||
"weight" : 1450,
|
||||
"color" : "light_red",
|
||||
"burst_modifier" : 0,
|
||||
"loudness_modifier" : 0,
|
||||
"to_hit" : -1,
|
||||
"accuracy_modifier" : 0,
|
||||
"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"],
|
||||
"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"
|
||||
},
|
||||
{
|
||||
"type" : "GUNMOD",
|
||||
"id" : "laser_sight",
|
||||
"name" : "laser sight",
|
||||
"clip_size_modifier" : 0,
|
||||
"dispersion_modifier" : -4,
|
||||
"damage_modifier" : 0,
|
||||
"ammo_modifier" : "NULL",
|
||||
"description" : "A small visible-light laser that mounts on a firearm to enhance ease and speed of target acquisition. Aside from increased weight, there are no drawbacks.",
|
||||
"weight" : 100,
|
||||
"to_hit" : -1,
|
||||
"color" : "dark_gray",
|
||||
"symbol" : ":",
|
||||
"material" : ["plastic", "steel"],
|
||||
"mod_targets" : ["smg", "rifle", "pistol", "shotgun"],
|
||||
"volume" : 1,
|
||||
"bashing" : 0,
|
||||
"cutting" : 0,
|
||||
"burst_modifier" : 0,
|
||||
"recoil_modifier" : 0,
|
||||
"price" : 680,
|
||||
"loudness_modifier" : 0
|
||||
},
|
||||
{
|
||||
"type" : "GUNMOD",
|
||||
"id" : "improve_sights",
|
||||
"name" : "improved iron sights",
|
||||
"clip_size_modifier" : 0,
|
||||
"dispersion_modifier" : -2,
|
||||
"damage_modifier" : 0,
|
||||
"ammo_modifier" : "NULL",
|
||||
"description" : "Improves the weapon's ironsights, increasing accuracy. No drawbacks.",
|
||||
"weight" : 60,
|
||||
"to_hit" : -1,
|
||||
"color" : "dark_gray",
|
||||
"symbol" : ":",
|
||||
"material" : ["plastic", "steel"],
|
||||
"mod_targets" : ["smg", "rifle", "pistol", "shotgun"],
|
||||
"volume" : 0,
|
||||
"bashing" : 0,
|
||||
"cutting" : 0,
|
||||
"burst_modifier" : 0,
|
||||
"recoil_modifier" : 0,
|
||||
"price" : 720,
|
||||
"loudness_modifier" : 0
|
||||
},
|
||||
{
|
||||
"type" : "GUNMOD",
|
||||
"id" : "red_dot_sight",
|
||||
"name" : "red dot sight",
|
||||
"clip_size_modifier" : 0,
|
||||
"dispersion_modifier" : -5,
|
||||
"damage_modifier" : 0,
|
||||
"ammo_modifier" : "NULL",
|
||||
"description" : "Adds a red dot optic to the top of your gun, replacing the iron sights. Increases accuracy and weight.",
|
||||
"weight" : 300,
|
||||
"to_hit" : -1,
|
||||
"color" : "dark_gray",
|
||||
"symbol" : ":",
|
||||
"material" : ["plastic", "steel"],
|
||||
"mod_targets" : ["smg", "rifle", "shotgun"],
|
||||
"volume" : 1,
|
||||
"bashing" : 0,
|
||||
"cutting" : 0,
|
||||
"burst_modifier" : 0,
|
||||
"recoil_modifier" : 0,
|
||||
"price" : 680,
|
||||
"loudness_modifier" : 0
|
||||
},
|
||||
{
|
||||
"type" : "GUNMOD",
|
||||
"id" : "holo_sight",
|
||||
"name" : "holographic sight",
|
||||
"clip_size_modifier" : 0,
|
||||
"dispersion_modifier" : -6,
|
||||
"damage_modifier" : 0,
|
||||
"ammo_modifier" : "NULL",
|
||||
"description" : "Adds a holographic sight. Used extensively by military forces, it increases accuracy and weight but is a step up from a red dot sight.",
|
||||
"weight" : 400,
|
||||
"to_hit" : -2,
|
||||
"color" : "dark_gray",
|
||||
"symbol" : ":",
|
||||
"material" : ["plastic", "steel"],
|
||||
"mod_targets" : ["smg", "rifle","shotgun"],
|
||||
"volume" : 2,
|
||||
"bashing" : 0,
|
||||
"cutting" : 0,
|
||||
"burst_modifier" : 0,
|
||||
"recoil_modifier" : 0,
|
||||
"price" : 680,
|
||||
"loudness_modifier" : 0
|
||||
},
|
||||
{
|
||||
"type" : "GUNMOD",
|
||||
"id" : "rifle_scope",
|
||||
"name" : "rifle scope",
|
||||
"clip_size_modifier" : 0,
|
||||
"dispersion_modifier" : -8,
|
||||
"damage_modifier" : 0,
|
||||
"ammo_modifier" : "NULL",
|
||||
"description" : "A long ranged rifle scope used by civilians and military alike, increases weight but improves accuracy greatly.",
|
||||
"weight" : 450,
|
||||
"to_hit" : -3,
|
||||
"color" : "dark_gray",
|
||||
"symbol" : ":",
|
||||
"material" : ["plastic", "steel"],
|
||||
"mod_targets" : ["rifle"],
|
||||
"volume" : 3,
|
||||
"bashing" : 0,
|
||||
"cutting" : 0,
|
||||
"burst_modifier" : 0,
|
||||
"recoil_modifier" : 0,
|
||||
"price" : 680,
|
||||
"loudness_modifier" : 0
|
||||
},
|
||||
{
|
||||
"type" : "GUNMOD",
|
||||
"id" : "barrel_ported",
|
||||
"name" : "ported barrel",
|
||||
"clip_size_modifier" : 0,
|
||||
"dispersion_modifier" : 1,
|
||||
"damage_modifier" : 0,
|
||||
"ammo_modifier" : "NULL",
|
||||
"description" : "A ported barrel redirects exhaust gases to compensate for muzzle climb, improves recoil but increases noise and reduces accuracy slightly.",
|
||||
"weight" : 225,
|
||||
"to_hit" : -3,
|
||||
"color" : "light_gray",
|
||||
"symbol" : ":",
|
||||
"material" : ["steel", "null"],
|
||||
"mod_targets" : ["smg", "rifle", "pistol", "shotgun"],
|
||||
"volume" : 2,
|
||||
"bashing" : 0,
|
||||
"cutting" : 0,
|
||||
"burst_modifier" : 0,
|
||||
"recoil_modifier" : -4,
|
||||
"price" : 720,
|
||||
"loudness_modifier" : 6
|
||||
},
|
||||
{
|
||||
"type" : "GUNMOD",
|
||||
"id" : "pistol_grip",
|
||||
"name" : "ergonomic grip",
|
||||
"clip_size_modifier" : 0,
|
||||
"dispersion_modifier" : -2,
|
||||
"damage_modifier" : 0,
|
||||
"ammo_modifier" : "NULL",
|
||||
"description" : "A set of ergonomic replacement furniture for a pistol, improves recoil and accuracy. Aside from increased weight, there are no drawbacks.",
|
||||
"weight" : 125,
|
||||
"to_hit" : -3,
|
||||
"color" : "dark_gray",
|
||||
"symbol" : ":",
|
||||
"material" : ["steel", "null"],
|
||||
"mod_targets" : ["pistol"],
|
||||
"volume" : 1,
|
||||
"bashing" : 0,
|
||||
"cutting" : 0,
|
||||
"burst_modifier" : 0,
|
||||
"recoil_modifier" : -2,
|
||||
"price" : 380,
|
||||
"loudness_modifier" : 0
|
||||
},
|
||||
{
|
||||
"type" : "GUNMOD",
|
||||
"id" : "adjustable_stock",
|
||||
"name" : "adjustable stock",
|
||||
"clip_size_modifier" : 0,
|
||||
"dispersion_modifier" : -2,
|
||||
"damage_modifier" : 0,
|
||||
"ammo_modifier" : "NULL",
|
||||
"description" : "An adjustable replacement stock, improves recoil and accuracy. Aside from increased weight, there are no drawbacks.",
|
||||
"weight" : 350,
|
||||
"to_hit" : -3,
|
||||
"color" : "dark_gray",
|
||||
"symbol" : ":",
|
||||
"material" : ["plastic", "steel"],
|
||||
"mod_targets" : ["smg", "rifle", "shotgun"],
|
||||
"volume" : 2,
|
||||
"bashing" : 0,
|
||||
"cutting" : 0,
|
||||
"burst_modifier" : 0,
|
||||
"recoil_modifier" : -2,
|
||||
"price" : 380,
|
||||
"loudness_modifier" : 0
|
||||
},
|
||||
{
|
||||
"type" : "GUNMOD",
|
||||
"id" : "pistol_stock",
|
||||
"name" : "pistol stock",
|
||||
"clip_size_modifier" : 0,
|
||||
"dispersion_modifier" : -1,
|
||||
"damage_modifier" : 0,
|
||||
"ammo_modifier" : "NULL",
|
||||
"description" : "An add on stock for handguns, improves recoil and accuracy. Aside from increased weight, there are no drawbacks.",
|
||||
"weight" : 350,
|
||||
"to_hit" : -3,
|
||||
"color" : "dark_gray",
|
||||
"symbol" : ":",
|
||||
"material" : ["plastic", "steel"],
|
||||
"mod_targets" : ["pistol"],
|
||||
"volume" : 2,
|
||||
"bashing" : 0,
|
||||
"cutting" : 0,
|
||||
"burst_modifier" : 0,
|
||||
"recoil_modifier" : -5,
|
||||
"price" : 380,
|
||||
"loudness_modifier" : 0
|
||||
}
|
||||
|
||||
]
|
||||
|
||||
+816
-418
File diff suppressed because it is too large
Load Diff
+1747
-630
File diff suppressed because it is too large
Load Diff
+99
-35
@@ -6,9 +6,11 @@
|
||||
"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
|
||||
"fire_resist" : 0,
|
||||
"density" : 1
|
||||
},
|
||||
{
|
||||
"ident" : "veggy",
|
||||
@@ -17,9 +19,11 @@
|
||||
"cut_resist" : 1,
|
||||
"bash_dmg_verb" : "ripped",
|
||||
"cut_dmg_verb" : "cut",
|
||||
"acid_resist" : 0,
|
||||
"dmg_adj" : ["lightly damaged", "damaged", "very damaged", "thoroughly damaged"],
|
||||
"acid_resist" : 1,
|
||||
"elec_resist" : 1,
|
||||
"fire_resist" : 0
|
||||
"fire_resist" : 0,
|
||||
"density" : 4
|
||||
},
|
||||
{
|
||||
"ident" : "flesh",
|
||||
@@ -28,9 +32,11 @@
|
||||
"cut_resist" : 1,
|
||||
"bash_dmg_verb" : "bruised",
|
||||
"cut_dmg_verb" : "sliced",
|
||||
"acid_resist" : 0,
|
||||
"dmg_adj" : ["bruised", "mutilated", "badly mutilated", "thoroughly mutilated"],
|
||||
"acid_resist" : 1,
|
||||
"elec_resist" : 1,
|
||||
"fire_resist" : 0
|
||||
"fire_resist" : 0,
|
||||
"density" : 5
|
||||
},
|
||||
{
|
||||
"ident" : "powder",
|
||||
@@ -39,9 +45,11 @@
|
||||
"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
|
||||
"fire_resist" : 0,
|
||||
"density" : 1
|
||||
},
|
||||
{
|
||||
"ident" : "hflesh",
|
||||
@@ -50,9 +58,11 @@
|
||||
"cut_resist" : 1,
|
||||
"bash_dmg_verb" : "bruised",
|
||||
"cut_dmg_verb" : "sliced",
|
||||
"acid_resist" : 0,
|
||||
"dmg_adj" : ["bruised", "mutilated", "badly mutilated", "thoroughly mutilated"],
|
||||
"acid_resist" : 1,
|
||||
"elec_resist" : 1,
|
||||
"fire_resist" : 0
|
||||
"fire_resist" : 0,
|
||||
"density" : 5
|
||||
},
|
||||
{
|
||||
"ident" : "cotton",
|
||||
@@ -61,9 +71,11 @@
|
||||
"cut_resist" : 1,
|
||||
"bash_dmg_verb" : "ripped",
|
||||
"cut_dmg_verb" : "cut",
|
||||
"acid_resist" : 0,
|
||||
"dmg_adj" : ["ripped", "torn", "shredded", "tattered"],
|
||||
"acid_resist" : 1,
|
||||
"elec_resist" : 2,
|
||||
"fire_resist" : 0
|
||||
"fire_resist" : 0,
|
||||
"density" : 3
|
||||
},
|
||||
{
|
||||
"ident" : "wool",
|
||||
@@ -72,9 +84,11 @@
|
||||
"cut_resist" : 1,
|
||||
"bash_dmg_verb" : "torn",
|
||||
"cut_dmg_verb" : "cut",
|
||||
"acid_resist" : 0,
|
||||
"dmg_adj" : ["ripped", "torn", "shredded", "tattered"],
|
||||
"acid_resist" : 1,
|
||||
"elec_resist" : 2,
|
||||
"fire_resist" : 0
|
||||
"fire_resist" : 0,
|
||||
"density" : 9
|
||||
},
|
||||
{
|
||||
"ident" : "leather",
|
||||
@@ -83,9 +97,11 @@
|
||||
"cut_resist" : 2,
|
||||
"bash_dmg_verb" : "ripped",
|
||||
"cut_dmg_verb" : "sliced",
|
||||
"acid_resist" : 0,
|
||||
"dmg_adj" : ["scratched", "cut", "shredded", "tattered"],
|
||||
"acid_resist" : 1,
|
||||
"elec_resist" : 2,
|
||||
"fire_resist" : 1
|
||||
"fire_resist" : 1,
|
||||
"density" : 6
|
||||
},
|
||||
{
|
||||
"ident" : "kevlar",
|
||||
@@ -94,9 +110,11 @@
|
||||
"cut_resist" : 4,
|
||||
"bash_dmg_verb" : "ripped",
|
||||
"cut_dmg_verb" : "cut",
|
||||
"acid_resist" : 0,
|
||||
"dmg_adj" : ["marked", "dented", "scarred", "broken"],
|
||||
"acid_resist" : 2,
|
||||
"elec_resist" : 2,
|
||||
"fire_resist" : 1
|
||||
"fire_resist" : 1,
|
||||
"density" : 10
|
||||
},
|
||||
{
|
||||
"ident" : "fur",
|
||||
@@ -105,9 +123,11 @@
|
||||
"cut_resist" : 2,
|
||||
"bash_dmg_verb" : "ripped",
|
||||
"cut_dmg_verb" : "sliced",
|
||||
"acid_resist" : 0,
|
||||
"dmg_adj" : ["ripped", "torn", "shredded", "tattered"],
|
||||
"acid_resist" : 1,
|
||||
"elec_resist" : 2,
|
||||
"fire_resist" : 0
|
||||
"fire_resist" : 0,
|
||||
"density" : 9
|
||||
},
|
||||
{
|
||||
"ident" : "chitin",
|
||||
@@ -116,9 +136,24 @@
|
||||
"cut_resist" : 4,
|
||||
"bash_dmg_verb" : "cracked",
|
||||
"cut_dmg_verb" : "chipped",
|
||||
"acid_resist" : 0,
|
||||
"dmg_adj" : ["scratched", "cut", "cracked", "shattered"],
|
||||
"acid_resist" : 1,
|
||||
"elec_resist" : 2,
|
||||
"fire_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",
|
||||
@@ -127,9 +162,11 @@
|
||||
"cut_resist" : 6,
|
||||
"bash_dmg_verb" : "cracked",
|
||||
"cut_dmg_verb" : "chipped",
|
||||
"acid_resist" : 2,
|
||||
"dmg_adj" : ["scratched", "cut", "cracked", "shattered"],
|
||||
"acid_resist" : 3,
|
||||
"elec_resist" : 2,
|
||||
"fire_resist" : 2
|
||||
"fire_resist" : 2,
|
||||
"density" : 17
|
||||
},
|
||||
{
|
||||
"ident" : "paper",
|
||||
@@ -138,9 +175,11 @@
|
||||
"cut_resist" : 1,
|
||||
"bash_dmg_verb" : "ripped",
|
||||
"cut_dmg_verb" : "cut",
|
||||
"acid_resist" : 0,
|
||||
"dmg_adj" : ["ripped", "torn", "shredded", "tattered"],
|
||||
"acid_resist" : 1,
|
||||
"elec_resist" : 2,
|
||||
"fire_resist" : 0
|
||||
"fire_resist" : 0,
|
||||
"density" : 4
|
||||
},
|
||||
{
|
||||
"ident" : "wood",
|
||||
@@ -149,9 +188,11 @@
|
||||
"cut_resist" : 2,
|
||||
"bash_dmg_verb" : "splintered",
|
||||
"cut_dmg_verb" : "gouged",
|
||||
"acid_resist" : 1,
|
||||
"dmg_adj" : ["scratched", "chipped", "cracked", "splintered"],
|
||||
"acid_resist" : 2,
|
||||
"elec_resist" : 2,
|
||||
"fire_resist" : 0
|
||||
"fire_resist" : 0,
|
||||
"density" : 4
|
||||
},
|
||||
{
|
||||
"ident" : "plastic",
|
||||
@@ -160,20 +201,24 @@
|
||||
"cut_resist" : 2,
|
||||
"bash_dmg_verb" : "dented",
|
||||
"cut_dmg_verb" : "gouged",
|
||||
"acid_resist" : 1,
|
||||
"dmg_adj" : ["scratched", "cut", "cracked", "shattered"],
|
||||
"acid_resist" : 2,
|
||||
"elec_resist" : 2,
|
||||
"fire_resist" : 0
|
||||
"fire_resist" : 0,
|
||||
"density" : 8
|
||||
},
|
||||
{
|
||||
"ident" : "glass",
|
||||
"name" : "Glass",
|
||||
"bash_resist" : 1,
|
||||
"bash_resist" : 3,
|
||||
"cut_resist" : 4,
|
||||
"bash_dmg_verb" : "cracked",
|
||||
"cut_dmg_verb" : "scratched",
|
||||
"acid_resist" : 2,
|
||||
"dmg_adj" : ["scratched", "cut", "cracked", "shattered"],
|
||||
"acid_resist" : 3,
|
||||
"elec_resist" : 2,
|
||||
"fire_resist" : 2
|
||||
"fire_resist" : 2,
|
||||
"density" : 14
|
||||
},
|
||||
{
|
||||
"ident" : "iron",
|
||||
@@ -182,9 +227,11 @@
|
||||
"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
|
||||
"fire_resist" : 2,
|
||||
"density" : 52
|
||||
},
|
||||
{
|
||||
"ident" : "steel",
|
||||
@@ -193,9 +240,11 @@
|
||||
"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
|
||||
"fire_resist" : 2,
|
||||
"density" : 52
|
||||
},
|
||||
{
|
||||
"ident" : "silver",
|
||||
@@ -204,8 +253,23 @@
|
||||
"cut_resist" : 3,
|
||||
"bash_dmg_verb" : "dented",
|
||||
"cut_dmg_verb" : "scratched",
|
||||
"acid_resist" : 0,
|
||||
"dmg_adj" : ["marked", "dented", "smashed", "shattered"],
|
||||
"acid_resist" : 2,
|
||||
"elec_resist" : 0,
|
||||
"fire_resist" : 2
|
||||
"fire_resist" : 2,
|
||||
"density" : 70
|
||||
},
|
||||
{
|
||||
"ident" : "gold",
|
||||
"name" : "Gold",
|
||||
"bash_resist" : 1,
|
||||
"cut_resist" : 1,
|
||||
"bash_dmg_verb" : "dented",
|
||||
"cut_dmg_verb" : "scratched",
|
||||
"dmg_adj" : ["marked", "dented", "smashed", "shattered"],
|
||||
"acid_resist" : 3,
|
||||
"elec_resist" : 0,
|
||||
"fire_resist" : 1,
|
||||
"density" : 130
|
||||
}
|
||||
]
|
||||
|
||||
@@ -49,6 +49,7 @@
|
||||
{ "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_swimmer", "freq" : 20, "multiplier" : 2 },
|
||||
{ "monster" : "mon_zombie_shrieker", "freq" : 30, "multiplier" : 5 },
|
||||
{ "monster" : "mon_zombie_spitter", "freq" : 30, "multiplier" : 5 },
|
||||
{ "monster" : "mon_zombie_electric", "freq" : 30, "multiplier" : 5 },
|
||||
@@ -66,7 +67,8 @@
|
||||
"monsters" : [
|
||||
{ "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_queen", "freq" : 60, "multiplier" : 0 },
|
||||
{ "monster" : "mon_triffid_heart", "freq" : 0, "multiplier" : 0 }
|
||||
]
|
||||
},
|
||||
{
|
||||
@@ -78,7 +80,8 @@
|
||||
{ "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_fungal_wall", "freq" : 0, "multiplier" : 0 },
|
||||
{ "monster" : "mon_fungaloid_queen", "freq" : 0, "multiplier" : 0 }
|
||||
]
|
||||
},
|
||||
|
||||
@@ -126,6 +129,15 @@
|
||||
{ "monster" : "mon_skitterbot", "freq" : 245, "multiplier" : 0 }
|
||||
]
|
||||
},
|
||||
{
|
||||
"name" : "GROUP_ICE_LAB",
|
||||
"default" : "mon_zombie_scientist",
|
||||
"monsters" : [
|
||||
{ "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",
|
||||
@@ -185,6 +197,7 @@
|
||||
{ "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_swimmer", "freq" : 20, "multiplier" : 2 },
|
||||
{ "monster" : "mon_zombie_shrieker", "freq" : 30, "multiplier" : 5 },
|
||||
{ "monster" : "mon_zombie_spitter", "freq" : 30, "multiplier" : 5 },
|
||||
{ "monster" : "mon_zombie_electric", "freq" : 30, "multiplier" : 5 },
|
||||
@@ -206,6 +219,7 @@
|
||||
{ "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_swimmer", "freq" : 20, "multiplier" : 2 },
|
||||
{ "monster" : "mon_zombie_shrieker", "freq" : 30, "multiplier" : 5 },
|
||||
{ "monster" : "mon_zombie_spitter", "freq" : 30, "multiplier" : 5 },
|
||||
{ "monster" : "mon_zombie_electric", "freq" : 30, "multiplier" : 5 },
|
||||
@@ -226,6 +240,7 @@
|
||||
{ "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_swimmer", "freq" : 20, "multiplier" : 2 },
|
||||
{ "monster" : "mon_zombie_shrieker", "freq" : 30, "multiplier" : 5 },
|
||||
{ "monster" : "mon_zombie_spitter", "freq" : 30, "multiplier" : 5 },
|
||||
{ "monster" : "mon_zombie_electric", "freq" : 30, "multiplier" : 5 },
|
||||
@@ -246,6 +261,7 @@
|
||||
{ "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_swimmer", "freq" : 20, "multiplier" : 2 },
|
||||
{ "monster" : "mon_zombie_shrieker", "freq" : 30, "multiplier" : 5 },
|
||||
{ "monster" : "mon_zombie_spitter", "freq" : 30, "multiplier" : 5 },
|
||||
{ "monster" : "mon_zombie_electric", "freq" : 180, "multiplier" : 5 },
|
||||
@@ -266,6 +282,7 @@
|
||||
{ "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_swimmer", "freq" : 20, "multiplier" : 2 },
|
||||
{ "monster" : "mon_zombie_shrieker", "freq" : 30, "multiplier" : 5 },
|
||||
{ "monster" : "mon_zombie_spitter", "freq" : 30, "multiplier" : 5 },
|
||||
{ "monster" : "mon_zombie_electric", "freq" : 30, "multiplier" : 5 },
|
||||
@@ -283,5 +300,20 @@
|
||||
"monsters" : [
|
||||
{ "monster" : "mon_zombie_soldier", "freq" : 50, "multiplier" : 0 }
|
||||
]
|
||||
},
|
||||
{
|
||||
"name" : "GROUP_PUBLICWORKERS",
|
||||
"default" : "mon_zombie_electric",
|
||||
"monsters" : [
|
||||
{ "monster" : "mon_zombie_grabber", "freq" : 100, "multiplier" : 1 },
|
||||
{ "monster" : "mon_zombie_smoker", "freq" : 100, "multiplier" : 5 },
|
||||
{ "monster" : "mon_zombie_shrieker", "freq" : 100, "multiplier" : 5 },
|
||||
{ "monster" : "mon_zombie_spitter", "freq" : 100, "multiplier" : 5 },
|
||||
{ "monster" : "mon_zombie", "freq" : 100, "multiplier" : 5 },
|
||||
{ "monster" : "mon_zombie_brute", "freq" : 20, "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 }
|
||||
]
|
||||
}
|
||||
]
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -8,6 +8,8 @@
|
||||
{ "name" : "Adrian", "gender" : "male", "usage" : "given" },
|
||||
{ "name" : "Aidan", "gender" : "male", "usage" : "given" },
|
||||
{ "name" : "Aiden", "gender" : "male", "usage" : "given" },
|
||||
{ "name" : "Aizawa", "gender" : "female", "usage" : "given" },
|
||||
{ "name" : "Akiko", "gender" : "female", "usage" : "given" },
|
||||
{ "name" : "Alex", "gender" : "male", "usage" : "given" },
|
||||
{ "name" : "Alexa", "gender" : "female", "usage" : "given" },
|
||||
{ "name" : "Alexander", "gender" : "male", "usage" : "given" },
|
||||
@@ -83,6 +85,7 @@
|
||||
{ "name" : "Cooper", "gender" : "male", "usage" : "given" },
|
||||
{ "name" : "Cooper", "gender" : "unisex", "usage" : "family" },
|
||||
{ "name" : "Cox", "gender" : "unisex", "usage" : "family" },
|
||||
{ "name" : "Daisuki", "gender" : "male", "usage" : "given" },
|
||||
{ "name" : "Daniel", "gender" : "male", "usage" : "given" },
|
||||
{ "name" : "David", "gender" : "male", "usage" : "given" },
|
||||
{ "name" : "Davis", "gender" : "unisex", "usage" : "family" },
|
||||
@@ -112,6 +115,7 @@
|
||||
{ "name" : "Gabrielle", "gender" : "female", "usage" : "given" },
|
||||
{ "name" : "Garcia", "gender" : "unisex", "usage" : "family" },
|
||||
{ "name" : "Gavin", "gender" : "male", "usage" : "given" },
|
||||
{ "name" : "Gendo", "gender" : "male", "usage" : "given" },
|
||||
{ "name" : "Genesis", "gender" : "female", "usage" : "given" },
|
||||
{ "name" : "Gianna", "gender" : "female", "usage" : "given" },
|
||||
{ "name" : "Gonzales", "gender" : "unisex", "usage" : "family" },
|
||||
@@ -127,9 +131,11 @@
|
||||
{ "name" : "Harris", "gender" : "unisex", "usage" : "family" },
|
||||
{ "name" : "Hayden", "gender" : "male", "usage" : "given" },
|
||||
{ "name" : "Hayes", "gender" : "unisex", "usage" : "family" },
|
||||
{ "name" : "Heather", "gender" : "female", "usage" : "given" },
|
||||
{ "name" : "Henderson", "gender" : "unisex", "usage" : "family" },
|
||||
{ "name" : "Henry", "gender" : "male", "usage" : "given" },
|
||||
{ "name" : "Hernandez", "gender" : "unisex", "usage" : "family" },
|
||||
{ "name" : "Hikari", "gender" : "female", "usage" : "given" },
|
||||
{ "name" : "Hill", "gender" : "unisex", "usage" : "family" },
|
||||
{ "name" : "Howard", "gender" : "unisex", "usage" : "family" },
|
||||
{ "name" : "Hughes", "gender" : "unisex", "usage" : "family" },
|
||||
@@ -172,18 +178,22 @@
|
||||
{ "name" : "Julian", "gender" : "male", "usage" : "given" },
|
||||
{ "name" : "Justin", "gender" : "male", "usage" : "given" },
|
||||
{ "name" : "Kaden", "gender" : "male", "usage" : "given" },
|
||||
{ "name" : "Kaiko", "gender" : "unisex", "usage" : "family" },
|
||||
{ "name" : "Kaitlin", "gender" : "female", "usage" : "given" },
|
||||
{ "name" : "Katelyn", "gender" : "female", "usage" : "given" },
|
||||
{ "name" : "Katie", "gender" : "female", "usage" : "given" },
|
||||
{ "name" : "Kayla", "gender" : "female", "usage" : "given" },
|
||||
{ "name" : "Kaylee", "gender" : "female", "usage" : "given" },
|
||||
{ "name" : "Keita", "gender" : "male", "usage" : "given" },
|
||||
{ "name" : "Kelly", "gender" : "unisex", "usage" : "family" },
|
||||
{ "name" : "Kevin", "gender" : "male", "usage" : "given" },
|
||||
{ "name" : "Kim", "gender" : "female", "usage" : "given" },
|
||||
{ "name" : "Kimberly", "gender" : "female", "usage" : "given" },
|
||||
{ "name" : "King", "gender" : "unisex", "usage" : "family" },
|
||||
{ "name" : "Kira", "gender" : "male", "usage" : "given" },
|
||||
{ "name" : "Kyle", "gender" : "male", "usage" : "given" },
|
||||
{ "name" : "Kylie", "gender" : "female", "usage" : "given" },
|
||||
{ "name" : "Kyosuki", "gender" : "male", "usage" : "given" },
|
||||
{ "name" : "Landon", "gender" : "male", "usage" : "given" },
|
||||
{ "name" : "Lauren", "gender" : "female", "usage" : "given" },
|
||||
{ "name" : "Layla", "gender" : "female", "usage" : "given" },
|
||||
@@ -222,13 +232,16 @@
|
||||
{ "name" : "Morgan", "gender" : "unisex", "usage" : "family" },
|
||||
{ "name" : "Morris", "gender" : "unisex", "usage" : "family" },
|
||||
{ "name" : "Murphy", "gender" : "unisex", "usage" : "family" },
|
||||
{ "name" : "Nakiya", "gender" : "unisex", "usage" : "family" },
|
||||
{ "name" : "Natalie", "gender" : "female", "usage" : "given" },
|
||||
{ "name" : "Nathan", "gender" : "male", "usage" : "given" },
|
||||
{ "name" : "Nathaniel", "gender" : "male", "usage" : "given" },
|
||||
{ "name" : "Natsuki", "gender" : "female", "usage" : "given" },
|
||||
{ "name" : "Nelson", "gender" : "unisex", "usage" : "family" },
|
||||
{ "name" : "Nevaeh", "gender" : "female", "usage" : "given" },
|
||||
{ "name" : "Nicholas", "gender" : "male", "usage" : "given" },
|
||||
{ "name" : "Noah", "gender" : "male", "usage" : "given" },
|
||||
{ "name" : "Nuku", "gender" : "female", "usage" : "given" },
|
||||
{ "name" : "Olivia", "gender" : "female", "usage" : "given" },
|
||||
{ "name" : "Owen", "gender" : "male", "usage" : "given" },
|
||||
{ "name" : "Paige", "gender" : "female", "usage" : "given" },
|
||||
@@ -271,6 +284,7 @@
|
||||
{ "name" : "Sophie", "gender" : "female", "usage" : "given" },
|
||||
{ "name" : "Stewart", "gender" : "unisex", "usage" : "family" },
|
||||
{ "name" : "Sydney", "gender" : "female", "usage" : "given" },
|
||||
{ "name" : "Takeuchi", "gender" : "male", "usage" : "given" },
|
||||
{ "name" : "Taylor", "gender" : "unisex", "usage" : "family" },
|
||||
{ "name" : "Thomas", "gender" : "male", "usage" : "given" },
|
||||
{ "name" : "Thomas", "gender" : "unisex", "usage" : "family" },
|
||||
@@ -281,6 +295,7 @@
|
||||
{ "name" : "Turner", "gender" : "unisex", "usage" : "family" },
|
||||
{ "name" : "Tyler", "gender" : "male", "usage" : "given" },
|
||||
{ "name" : "Valeria", "gender" : "female", "usage" : "given" },
|
||||
{ "name" : "Van Wilde", "gender" : "unisex", "usage" : "family" },
|
||||
{ "name" : "Vanessa", "gender" : "female", "usage" : "given" },
|
||||
{ "name" : "Victoria", "gender" : "female", "usage" : "given" },
|
||||
{ "name" : "Walker", "gender" : "unisex", "usage" : "family" },
|
||||
@@ -288,6 +303,7 @@
|
||||
{ "name" : "Washington", "gender" : "unisex", "usage" : "family" },
|
||||
{ "name" : "Watson", "gender" : "unisex", "usage" : "family" },
|
||||
{ "name" : "White", "gender" : "unisex", "usage" : "family" },
|
||||
{ "name" : "West", "gender" : "unisex", "usage" : "family" },
|
||||
{ "name" : "William", "gender" : "male", "usage" : "given" },
|
||||
{ "name" : "Williams", "gender" : "unisex", "usage" : "family" },
|
||||
{ "name" : "Wilson", "gender" : "unisex", "usage" : "family" },
|
||||
@@ -296,6 +312,7 @@
|
||||
{ "name" : "Wyatt", "gender" : "male", "usage" : "given" },
|
||||
{ "name" : "Xavier", "gender" : "male", "usage" : "given" },
|
||||
{ "name" : "Young", "gender" : "unisex", "usage" : "family" },
|
||||
{ "name" : "Yuki", "gender" : "female", "usage" : "given" },
|
||||
{ "name" : "Zachary", "gender" : "male", "usage" : "given" },
|
||||
{ "name" : "Zoe", "gender" : "female", "usage" : "given" },
|
||||
{ "name" : "Zoey", "gender" : "female", "usage" : "given" },
|
||||
|
||||
@@ -0,0 +1,934 @@
|
||||
[
|
||||
{
|
||||
"sound" : "\"Hello?\"",
|
||||
"volume" : 40
|
||||
},
|
||||
{
|
||||
"sound" : "\"Who's there?\"",
|
||||
"volume" : 40
|
||||
},
|
||||
{
|
||||
"sound" : "\"Can you help me?\"",
|
||||
"volume" : 30
|
||||
},
|
||||
{
|
||||
"sound" : "\"Over here!\"",
|
||||
"volume" : 40
|
||||
},
|
||||
{
|
||||
"sound" : "\"Can you repeat that?\"",
|
||||
"volume" : 30
|
||||
},
|
||||
{
|
||||
"sound" : "\"You're just copying me, aren't you?\"",
|
||||
"volume" : 30
|
||||
},
|
||||
{
|
||||
"sound" : "\"I'm not afraid of you!\"",
|
||||
"volume" : 40
|
||||
},
|
||||
{
|
||||
"sound" : "\"Come here!\"",
|
||||
"volume" : 40
|
||||
},
|
||||
{
|
||||
"sound" : "\"Please, don't!\"",
|
||||
"volume" : 40
|
||||
},
|
||||
{
|
||||
"sound" : "a horrified scream!",
|
||||
"volume" : 60
|
||||
},
|
||||
{
|
||||
"sound" : "a little girl's wailing!",
|
||||
"volume" : 50
|
||||
},
|
||||
{
|
||||
"sound" : "\"So, what is this thing supposed to be, exactly?\"",
|
||||
"volume" : 20
|
||||
},
|
||||
{
|
||||
"sound" : "\"Uncategorized object seven-seven-three-four.\"",
|
||||
"volume" : 20
|
||||
},
|
||||
{
|
||||
"sound" : "\"It came from the other side of one of the apertures.\"",
|
||||
"volume" : 20
|
||||
},
|
||||
{
|
||||
"sound" : "\"Mommy, help!\"",
|
||||
"volume" : 40
|
||||
},
|
||||
{
|
||||
"sound" : "\"We're still trying to figure out what makes it tick.\"",
|
||||
"volume" : 20
|
||||
},
|
||||
{
|
||||
"sound" : "\"We're not even sure what it is.\"",
|
||||
"volume" : 20
|
||||
},
|
||||
{
|
||||
"sound" : "\"The cell structure is unlike any we've ever seen.\"",
|
||||
"volume" : 20
|
||||
},
|
||||
{
|
||||
"sound" : "\"It does seem to have some form of higher level brain functioning.\"",
|
||||
"volume" : 20
|
||||
},
|
||||
{
|
||||
"sound" : "\"Problem solving, memory retention, that sort of thing.\"",
|
||||
"volume" : 20
|
||||
},
|
||||
{
|
||||
"sound" : "\"There appear to be some anomalous aspects to the mimicry.\"",
|
||||
"volume" : 20
|
||||
},
|
||||
{
|
||||
"sound" : "\"Members of the species have some kind of neurocognitive link.\"",
|
||||
"volume" : 20
|
||||
},
|
||||
{
|
||||
"sound" : "\"This one's repeating phrases that the previous specimen was exposed to.\"",
|
||||
"volume" : 20
|
||||
},
|
||||
{
|
||||
"sound" : "a child shrieking!",
|
||||
"volume" : 60
|
||||
},
|
||||
{
|
||||
"sound" : "\"Oh God, my leg, Oh God!\"",
|
||||
"volume" : 60
|
||||
},
|
||||
{
|
||||
"sound" : "a long cry of agony!",
|
||||
"volume" : 60
|
||||
},
|
||||
{
|
||||
"sound" : "\"You mean it's not just parroting us?\"",
|
||||
"volume" : 20
|
||||
},
|
||||
{
|
||||
"sound" : "\"It's parroting us, but we're uncertain as to how or why.\"",
|
||||
"volume" : 20
|
||||
},
|
||||
{
|
||||
"sound" : "\"It may be a mechanism for attracting prey.\"",
|
||||
"volume" : 20
|
||||
},
|
||||
{
|
||||
"sound" : "\"It could even be a way of trying to scare us off.\"",
|
||||
"volume" : 20
|
||||
},
|
||||
{
|
||||
"sound" : "\"We just don't know.\"",
|
||||
"volume" : 20
|
||||
},
|
||||
{
|
||||
"sound" : "an anguished wail!",
|
||||
"volume" : 60
|
||||
},
|
||||
{
|
||||
"sound" : "\"You're gonna rot in hell for this!\"",
|
||||
"volume" : 60
|
||||
},
|
||||
{
|
||||
"sound" : "\"You hear me!?\"",
|
||||
"volume" : 50
|
||||
},
|
||||
{
|
||||
"sound" : "\"You're gonna rot in hell, you pieces of shit!\"",
|
||||
"volume" : 60
|
||||
},
|
||||
{
|
||||
"sound" : "\"Like we said, we have no idea what it's thinking.\"",
|
||||
"volume" : 20
|
||||
},
|
||||
{
|
||||
"sound" : "\"Is that glass electrified?\"",
|
||||
"volume" : 20
|
||||
},
|
||||
{
|
||||
"sound" : "\"Why don't you touch it and find out?\"",
|
||||
"volume" : 20
|
||||
},
|
||||
{
|
||||
"sound" : "\"Of course it is.\"",
|
||||
"volume" : 20
|
||||
},
|
||||
{
|
||||
"sound" : "\"What'll happen if the power goes out?\"",
|
||||
"volume" : 20
|
||||
},
|
||||
{
|
||||
"sound" : "\"Don't worry about it.\"",
|
||||
"volume" : 20
|
||||
},
|
||||
{
|
||||
"sound" : "\"Don't worry.\"",
|
||||
"volume" : 20
|
||||
},
|
||||
{
|
||||
"sound" : "\"There are seven backup generators.\"",
|
||||
"volume" : 20
|
||||
},
|
||||
{
|
||||
"sound" : "\"And what if all the backups fail?\"",
|
||||
"volume" : 20
|
||||
},
|
||||
{
|
||||
"sound" : "\"We'd have to terminate the specimen.\"",
|
||||
"volume" : 20
|
||||
},
|
||||
{
|
||||
"sound" : "\"The glass alone won't keep us safe for very long.\"",
|
||||
"volume" : 20
|
||||
},
|
||||
{
|
||||
"sound" : "\"That fuckin' thing is horrible, man, it gives me the creeps.\"",
|
||||
"volume" : 20
|
||||
},
|
||||
{
|
||||
"sound" : "\"It's probably more scared of us than we are of it.\"",
|
||||
"volume" : 20
|
||||
},
|
||||
{
|
||||
"sound" : "\"Somehow, I doubt that.\"",
|
||||
"volume" : 20
|
||||
},
|
||||
{
|
||||
"sound" : "\"Hey, we got other specimens that could withstand a grenade.\"",
|
||||
"volume" : 20
|
||||
},
|
||||
{
|
||||
"sound" : "\"And that's supposed to comfort me?\"",
|
||||
"volume" : 20
|
||||
},
|
||||
{
|
||||
"sound" : "\"At least we know they can die.\"",
|
||||
"volume" : 20
|
||||
},
|
||||
{
|
||||
"sound" : "\"U-O Seven-Seven-Three-Four.\"",
|
||||
"volume" : 20
|
||||
},
|
||||
{
|
||||
"sound" : "\"Individual instances of U-O Seven-Seven-Three-Four.\"",
|
||||
"volume" : 20
|
||||
},
|
||||
{
|
||||
"sound" : "\"To be kept in a standard biohazardous containment chamber.\"",
|
||||
"volume" : 20
|
||||
},
|
||||
{
|
||||
"sound" : "\"Until such time as more permanent arrangements are made.\"",
|
||||
"volume" : 20
|
||||
},
|
||||
{
|
||||
"sound" : "\"Shows a noted preference for human brain tissue.\"",
|
||||
"volume" : 20
|
||||
},
|
||||
{
|
||||
"sound" : "\"Destroy the specimen if it begins to interact with the lock.\"",
|
||||
"volume" : 20
|
||||
},
|
||||
{
|
||||
"sound" : "\"Kill them all and let God sort them out!\"",
|
||||
"volume" : 40
|
||||
},
|
||||
{
|
||||
"sound" : "\"I watched a snail crawl along the edge of a straight razor.\"",
|
||||
"volume" : 40
|
||||
},
|
||||
{
|
||||
"sound" : "\"I've seen horrors, horrors that you've seen.\"",
|
||||
"volume" : 40
|
||||
},
|
||||
{
|
||||
"sound" : "\"I love the smell of napalm in the morning.\"",
|
||||
"volume" : 40
|
||||
},
|
||||
{
|
||||
"sound" : "\"This is the way the fuckin' world ends.\"",
|
||||
"volume" : 40
|
||||
},
|
||||
{
|
||||
"sound" : "\"Look at this fuckin' shit we're in, man.\"",
|
||||
"volume" : 40
|
||||
},
|
||||
{
|
||||
"sound" : "\"Every man has got a breaking point.\"",
|
||||
"volume" : 40
|
||||
},
|
||||
{
|
||||
"sound" : "\"I'ma cut those fuckin' tentacles off, bitch!\"",
|
||||
"volume" : 30
|
||||
},
|
||||
{
|
||||
"sound" : "\"Watch you bleed out!\"",
|
||||
"volume" : 40
|
||||
},
|
||||
{
|
||||
"sound" : "\"I wonder if it understands us.\"",
|
||||
"volume" : 20
|
||||
},
|
||||
{
|
||||
"sound" : "\"Do you understand what I'm saying?\"",
|
||||
"volume" : 30
|
||||
},
|
||||
{
|
||||
"sound" : "\"Look, it's responding!\"",
|
||||
"volume" : 40
|
||||
},
|
||||
{
|
||||
"sound" : "\"That's the first time it moved all morning.\"",
|
||||
"volume" : 20
|
||||
},
|
||||
{
|
||||
"sound" : "\"I'm certain it's trying to understand us.\"",
|
||||
"volume" : 20
|
||||
},
|
||||
{
|
||||
"sound" : "\"I'm not convinced it can actually comprehend us.\"",
|
||||
"volume" : 20
|
||||
},
|
||||
{
|
||||
"sound" : "\"It's just repeating us.\"",
|
||||
"volume" : 20
|
||||
},
|
||||
{
|
||||
"sound" : "\"Just being an alien creature doesn't mean it's intelligent.\"",
|
||||
"volume" : 20
|
||||
},
|
||||
{
|
||||
"sound" : "\"Just because it doesn't look like you doesn't mean that it isn't.\"",
|
||||
"volume" : 20
|
||||
},
|
||||
{
|
||||
"sound" : "\"Please open the door and enter the cell.\"",
|
||||
"volume" : 30
|
||||
},
|
||||
{
|
||||
"sound" : "\"Would it react differently with a child?\"",
|
||||
"volume" : 40
|
||||
},
|
||||
{
|
||||
"sound" : "\"Experiments to determine extent of cognitive abilities still underway.\"",
|
||||
"volume" : 20
|
||||
},
|
||||
{
|
||||
"sound" : "\"Subject has so far displayed a total lack of empathy toward human suffering.\"",
|
||||
"volume" : 20
|
||||
},
|
||||
{
|
||||
"sound" : "\"I got a round trip ticket.\"",
|
||||
"volume" : 20
|
||||
},
|
||||
{
|
||||
"sound" : "\"How's your mom doing?\"",
|
||||
"volume" : 20
|
||||
},
|
||||
{
|
||||
"sound" : "\"How's your dad doing?\"",
|
||||
"volume" : 20
|
||||
},
|
||||
{
|
||||
"sound" : "\"I love you.\"",
|
||||
"volume" : 20
|
||||
},
|
||||
{
|
||||
"sound" : "\"I love you too.\"",
|
||||
"volume" : 20
|
||||
},
|
||||
{
|
||||
"sound" : "\"Just a little.\"",
|
||||
"volume" : 20
|
||||
},
|
||||
{
|
||||
"sound" : "\"Only a few more days 'til the weekend.\"",
|
||||
"volume" : 20
|
||||
},
|
||||
{
|
||||
"sound" : "\"Do you smoke?\"",
|
||||
"volume" : 20
|
||||
},
|
||||
{
|
||||
"sound" : "\"You're new here, aren't you?\"",
|
||||
"volume" : 20
|
||||
},
|
||||
{
|
||||
"sound" : "\"How do you like it here?\"",
|
||||
"volume" : 20
|
||||
},
|
||||
{
|
||||
"sound" : "\"It won't hurt a bit.\"",
|
||||
"volume" : 20
|
||||
},
|
||||
{
|
||||
"sound" : "\"That was a long time ago.\"",
|
||||
"volume" : 20
|
||||
},
|
||||
{
|
||||
"sound" : "\"Does it scare you?\"",
|
||||
"volume" : 20
|
||||
},
|
||||
{
|
||||
"sound" : "\"Don't worry, it can't hurt us.\"",
|
||||
"volume" : 20
|
||||
},
|
||||
{
|
||||
"sound" : "\"What are you afraid will happen?\"",
|
||||
"volume" : 20
|
||||
},
|
||||
{
|
||||
"sound" : "\"Anything else?\"",
|
||||
"volume" : 20
|
||||
},
|
||||
{
|
||||
"sound" : "\"You think they're the same sex?\"",
|
||||
"volume" : 20
|
||||
},
|
||||
{
|
||||
"sound" : "\"Do they even have sex?\"",
|
||||
"volume" : 20
|
||||
},
|
||||
{
|
||||
"sound" : "\"Can I see your phone?\"",
|
||||
"volume" : 20
|
||||
},
|
||||
{
|
||||
"sound" : "\"You got a dollar I can borrow?\"",
|
||||
"volume" : 20
|
||||
},
|
||||
{
|
||||
"sound" : "\"Are you busy at the moment?\"",
|
||||
"volume" : 20
|
||||
},
|
||||
{
|
||||
"sound" : "\"Are you busy later?\"",
|
||||
"volume" : 20
|
||||
},
|
||||
{
|
||||
"sound" : "\"Are you busy tonight?\"",
|
||||
"volume" : 20
|
||||
},
|
||||
{
|
||||
"sound" : "\"Are you free tonight?\"",
|
||||
"volume" : 20
|
||||
},
|
||||
{
|
||||
"sound" : "\"Are you going to the party tonight?\"",
|
||||
"volume" : 20
|
||||
},
|
||||
{
|
||||
"sound" : "\"Are you going to help them?\"",
|
||||
"volume" : 20
|
||||
},
|
||||
{
|
||||
"sound" : "\"Are you alone?\"",
|
||||
"volume" : 20
|
||||
},
|
||||
{
|
||||
"sound" : "\"Are you hungry?\"",
|
||||
"volume" : 20
|
||||
},
|
||||
{
|
||||
"sound" : "\"I'm hungry.\"",
|
||||
"volume" : 20
|
||||
},
|
||||
{
|
||||
"sound" : "\"Go ahead.\"",
|
||||
"volume" : 20
|
||||
},
|
||||
{
|
||||
"sound" : "\"Have a good time.\"",
|
||||
"volume" : 20
|
||||
},
|
||||
{
|
||||
"sound" : "\"Have you eaten yet?\"",
|
||||
"volume" : 20
|
||||
},
|
||||
{
|
||||
"sound" : "\"Is it supposed to rain tomorrow?\"",
|
||||
"volume" : 20
|
||||
},
|
||||
{
|
||||
"sound" : "\"Okay.\"",
|
||||
"volume" : 20
|
||||
},
|
||||
{
|
||||
"sound" : "\"Good.\"",
|
||||
"volume" : 20
|
||||
},
|
||||
{
|
||||
"sound" : "\"Great.\"",
|
||||
"volume" : 20
|
||||
},
|
||||
{
|
||||
"sound" : "\"Fantastic.\"",
|
||||
"volume" : 20
|
||||
},
|
||||
{
|
||||
"sound" : "\"God damn it.\"",
|
||||
"volume" : 20
|
||||
},
|
||||
{
|
||||
"sound" : "\"God damn it!\"",
|
||||
"volume" : 40
|
||||
},
|
||||
{
|
||||
"sound" : "\"Damn it.\"",
|
||||
"volume" : 20
|
||||
},
|
||||
{
|
||||
"sound" : "\"Damn it!\"",
|
||||
"volume" : 40
|
||||
},
|
||||
{
|
||||
"sound" : "\"Fuck.\"",
|
||||
"volume" : 20
|
||||
},
|
||||
{
|
||||
"sound" : "\"Shit.\"",
|
||||
"volume" : 20
|
||||
},
|
||||
{
|
||||
"sound" : "\"Fuck!\"",
|
||||
"volume" : 40
|
||||
},
|
||||
{
|
||||
"sound" : "\"Shit!\"",
|
||||
"volume" : 40
|
||||
},
|
||||
{
|
||||
"sound" : "\"Fuckin' piece of garbage.\"",
|
||||
"volume" : 30
|
||||
},
|
||||
{
|
||||
"sound" : "\"I need a new lab coat.\"",
|
||||
"volume" : 20
|
||||
},
|
||||
{
|
||||
"sound" : "\"Excellent.\"",
|
||||
"volume" : 20
|
||||
},
|
||||
{
|
||||
"sound" : "\"Excuse me.\"",
|
||||
"volume" : 20
|
||||
},
|
||||
{
|
||||
"sound" : "\"Go ahead.\"",
|
||||
"volume" : 20
|
||||
},
|
||||
{
|
||||
"sound" : "\"Good morning.\"",
|
||||
"volume" : 20
|
||||
},
|
||||
{
|
||||
"sound" : "\"Good afternoon.\"",
|
||||
"volume" : 20
|
||||
},
|
||||
{
|
||||
"sound" : "\"Good evening.\"",
|
||||
"volume" : 20
|
||||
},
|
||||
{
|
||||
"sound" : "\"Good night.\"",
|
||||
"volume" : 20
|
||||
},
|
||||
{
|
||||
"sound" : "\"Good luck.\"",
|
||||
"volume" : 20
|
||||
},
|
||||
{
|
||||
"sound" : "\"Can I help you?\"",
|
||||
"volume" : 20
|
||||
},
|
||||
{
|
||||
"sound" : "\"Are you seeing anyone?\"",
|
||||
"volume" : 20
|
||||
},
|
||||
{
|
||||
"sound" : "\"Forget it.\"",
|
||||
"volume" : 20
|
||||
},
|
||||
{
|
||||
"sound" : "\"How long were you two together?\"",
|
||||
"volume" : 20
|
||||
},
|
||||
{
|
||||
"sound" : "\"Give me a call later.\"",
|
||||
"volume" : 20
|
||||
},
|
||||
{
|
||||
"sound" : "\"Call me.\"",
|
||||
"volume" : 20
|
||||
},
|
||||
{
|
||||
"sound" : "\"From time to time.\"",
|
||||
"volume" : 20
|
||||
},
|
||||
{
|
||||
"sound" : "\"We have a serious situation here.\"",
|
||||
"volume" : 20
|
||||
},
|
||||
{
|
||||
"sound" : "\"Call the police.\"",
|
||||
"volume" : 20
|
||||
},
|
||||
{
|
||||
"sound" : "\"Call an ambulance.\"",
|
||||
"volume" : 20
|
||||
},
|
||||
{
|
||||
"sound" : "\"Get me the White House.\"",
|
||||
"volume" : 20
|
||||
},
|
||||
{
|
||||
"sound" : "\"Are you feeling all right?\"",
|
||||
"volume" : 20
|
||||
},
|
||||
{
|
||||
"sound" : "\"I think I'll live.\"",
|
||||
"volume" : 20
|
||||
},
|
||||
{
|
||||
"sound" : "\"I think I need to see a doctor.\"",
|
||||
"volume" : 20
|
||||
},
|
||||
{
|
||||
"sound" : "\"Is everything all right?\"",
|
||||
"volume" : 20
|
||||
},
|
||||
{
|
||||
"sound" : "\"I'm okay, don't worry about me.\"",
|
||||
"volume" : 20
|
||||
},
|
||||
{
|
||||
"sound" : "\"It's just a scratch.\"",
|
||||
"volume" : 20
|
||||
},
|
||||
{
|
||||
"sound" : "\"I've got a headache.\"",
|
||||
"volume" : 20
|
||||
},
|
||||
{
|
||||
"sound" : "\"I'm fine.\"",
|
||||
"volume" : 20
|
||||
},
|
||||
{
|
||||
"sound" : "\"Are you sure?\"",
|
||||
"volume" : 20
|
||||
},
|
||||
{
|
||||
"sound" : "\"Positive.\"",
|
||||
"volume" : 20
|
||||
},
|
||||
{
|
||||
"sound" : "\"Affirmative.\"",
|
||||
"volume" : 20
|
||||
},
|
||||
{
|
||||
"sound" : "\"Negative.\"",
|
||||
"volume" : 20
|
||||
},
|
||||
{
|
||||
"sound" : "\"Sorry.\"",
|
||||
"volume" : 20
|
||||
},
|
||||
{
|
||||
"sound" : "\"Happy Birthday!\"",
|
||||
"volume" : 40
|
||||
},
|
||||
{
|
||||
"sound" : "\"Have you ever been to California?\"",
|
||||
"volume" : 20
|
||||
},
|
||||
{
|
||||
"sound" : "\"What time do you get off?\"",
|
||||
"volume" : 20
|
||||
},
|
||||
{
|
||||
"sound" : "\"We should hit up the shooting range later.\"",
|
||||
"volume" : 20
|
||||
},
|
||||
{
|
||||
"sound" : "\"I'm heading to the pool after work.\"",
|
||||
"volume" : 20
|
||||
},
|
||||
{
|
||||
"sound" : "\"Have a good trip.\"",
|
||||
"volume" : 20
|
||||
},
|
||||
{
|
||||
"sound" : "\"Where did you come from?\"",
|
||||
"volume" : 20
|
||||
},
|
||||
{
|
||||
"sound" : "\"Have you been waiting long?\"",
|
||||
"volume" : 20
|
||||
},
|
||||
{
|
||||
"sound" : "\"Have you done this before?\"",
|
||||
"volume" : 20
|
||||
},
|
||||
{
|
||||
"sound" : "\"Hello.\"",
|
||||
"volume" : 20
|
||||
},
|
||||
{
|
||||
"sound" : "\"Help!\"",
|
||||
"volume" : 40
|
||||
},
|
||||
{
|
||||
"sound" : "\"Here it is.\"",
|
||||
"volume" : 20
|
||||
},
|
||||
{
|
||||
"sound" : "\"I've got family coming tomorrow.\"",
|
||||
"volume" : 20
|
||||
},
|
||||
{
|
||||
"sound" : "\"How do I use this?\"",
|
||||
"volume" : 20
|
||||
},
|
||||
{
|
||||
"sound" : "\"How do you know?\"",
|
||||
"volume" : 20
|
||||
},
|
||||
{
|
||||
"sound" : "\"How long have you been here?\"",
|
||||
"volume" : 20
|
||||
},
|
||||
{
|
||||
"sound" : "\"How many languages do you speak?\"",
|
||||
"volume" : 20
|
||||
},
|
||||
{
|
||||
"sound" : "\"How many people?\"",
|
||||
"volume" : 20
|
||||
},
|
||||
{
|
||||
"sound" : "\"How much were these earrings?\"",
|
||||
"volume" : 20
|
||||
},
|
||||
{
|
||||
"sound" : "\"How much do I owe you?\"",
|
||||
"volume" : 20
|
||||
},
|
||||
{
|
||||
"sound" : "\"How much will it cost?\"",
|
||||
"volume" : 20
|
||||
},
|
||||
{
|
||||
"sound" : "\"How much would you like?\"",
|
||||
"volume" : 20
|
||||
},
|
||||
{
|
||||
"sound" : "\"How old are you?\"",
|
||||
"volume" : 20
|
||||
},
|
||||
{
|
||||
"sound" : "\"How tall is it?\"",
|
||||
"volume" : 20
|
||||
},
|
||||
{
|
||||
"sound" : "\"How was the movie?\"",
|
||||
"volume" : 20
|
||||
},
|
||||
{
|
||||
"sound" : "\"How was your trip?\"",
|
||||
"volume" : 20
|
||||
},
|
||||
{
|
||||
"sound" : "\"How's it going?\"",
|
||||
"volume" : 20
|
||||
},
|
||||
{
|
||||
"sound" : "\"See you later.\"",
|
||||
"volume" : 20
|
||||
},
|
||||
{
|
||||
"sound" : "\"See you tonight.\"",
|
||||
"volume" : 20
|
||||
},
|
||||
{
|
||||
"sound" : "\"I got this weird rash a few days ago.\"",
|
||||
"volume" : 20
|
||||
},
|
||||
{
|
||||
"sound" : "\"Let me have a look at it.\"",
|
||||
"volume" : 20
|
||||
},
|
||||
{
|
||||
"sound" : "\"When did you find out?\"",
|
||||
"volume" : 20
|
||||
},
|
||||
{
|
||||
"sound" : "\"Seven o'clock.\"",
|
||||
"volume" : 20
|
||||
},
|
||||
{
|
||||
"sound" : "\"Nobody is helping us.\"",
|
||||
"volume" : 20
|
||||
},
|
||||
{
|
||||
"sound" : "\"We're on our own.\"",
|
||||
"volume" : 20
|
||||
},
|
||||
{
|
||||
"sound" : "\"We're all alone.\"",
|
||||
"volume" : 20
|
||||
},
|
||||
{
|
||||
"sound" : "\"We should split into groups of two each.\"",
|
||||
"volume" : 20
|
||||
},
|
||||
{
|
||||
"sound" : "\"It can't follow all of us.\"",
|
||||
"volume" : 20
|
||||
},
|
||||
{
|
||||
"sound" : "\"Be careful out there.\"",
|
||||
"volume" : 20
|
||||
},
|
||||
{
|
||||
"sound" : "\"There you are.\"",
|
||||
"volume" : 20
|
||||
},
|
||||
{
|
||||
"sound" : "\"I've been looking all over for you.\"",
|
||||
"volume" : 20
|
||||
},
|
||||
{
|
||||
"sound" : "\"It's looking for us.\"",
|
||||
"volume" : 20
|
||||
},
|
||||
{
|
||||
"sound" : "\"It's faster than us.\"",
|
||||
"volume" : 20
|
||||
},
|
||||
{
|
||||
"sound" : "\"It's looking right at us.\"",
|
||||
"volume" : 20
|
||||
},
|
||||
{
|
||||
"sound" : "\"It's heading right for us!\"",
|
||||
"volume" : 40
|
||||
},
|
||||
{
|
||||
"sound" : "\"Can you swim?\"",
|
||||
"volume" : 20
|
||||
},
|
||||
{
|
||||
"sound" : "\"Don't do that.\"",
|
||||
"volume" : 20
|
||||
},
|
||||
{
|
||||
"sound" : "\"You hear that?\"",
|
||||
"volume" : 10
|
||||
},
|
||||
{
|
||||
"sound" : "\"Be quiet.\"",
|
||||
"volume" : 10
|
||||
},
|
||||
{
|
||||
"sound" : "\"Look out!\"",
|
||||
"volume" : 40
|
||||
},
|
||||
{
|
||||
"sound" : "\"Run!\"",
|
||||
"volume" : 40
|
||||
},
|
||||
{
|
||||
"sound" : "\"Hurry!\"",
|
||||
"volume" : 40
|
||||
},
|
||||
{
|
||||
"sound" : "\"No!\"",
|
||||
"volume" : 50
|
||||
},
|
||||
{
|
||||
"sound" : "\"I'll never forget you.\"",
|
||||
"volume" : 20
|
||||
},
|
||||
{
|
||||
"sound" : "\"Take his gun, we're going to need it.\"",
|
||||
"volume" : 20
|
||||
},
|
||||
{
|
||||
"sound" : "\"How do we get out of here?\"",
|
||||
"volume" : 20
|
||||
},
|
||||
{
|
||||
"sound" : "\"This place is like a maze.\"",
|
||||
"volume" : 20
|
||||
},
|
||||
{
|
||||
"sound" : "\"Oh God, I'm the only one left.\"",
|
||||
"volume" : 20
|
||||
},
|
||||
{
|
||||
"sound" : "\"Please, I don't want to die.\"",
|
||||
"volume" : 20
|
||||
},
|
||||
{
|
||||
"sound" : "\"Mom.\"",
|
||||
"volume" : 10
|
||||
},
|
||||
{
|
||||
"sound" : "\"Mom, I miss you.\"",
|
||||
"volume" : 10
|
||||
},
|
||||
{
|
||||
"sound" : "\"Please, God.\"",
|
||||
"volume" : 5
|
||||
},
|
||||
{
|
||||
"sound" : "a gurgling sound.",
|
||||
"volume" : 10
|
||||
},
|
||||
{
|
||||
"sound" : "a choking sound.",
|
||||
"volume" : 10
|
||||
},
|
||||
{
|
||||
"sound" : "a snapping sound.",
|
||||
"volume" : 20
|
||||
},
|
||||
{
|
||||
"sound" : "a beeping sound.",
|
||||
"volume" : 20
|
||||
},
|
||||
{
|
||||
"sound" : "a loud beeping sound.",
|
||||
"volume" : 30
|
||||
},
|
||||
{
|
||||
"sound" : "a very loud beeping sound.",
|
||||
"volume" : 40
|
||||
},
|
||||
{
|
||||
"sound" : "a loud hiss.",
|
||||
"volume" : 30
|
||||
},
|
||||
{
|
||||
"sound" : "a loud crackling noise.",
|
||||
"volume" : 30
|
||||
},
|
||||
{
|
||||
"sound" : "gunfire!",
|
||||
"volume" : 90
|
||||
},
|
||||
{
|
||||
"sound" : "a klaxon blaring!",
|
||||
"volume" : 90
|
||||
},
|
||||
{
|
||||
"sound" : "\"EMERGENCY, EMERGENCY!\"",
|
||||
"volume" : 70
|
||||
},
|
||||
{
|
||||
"sound" : "a static hissing sound.",
|
||||
"volume" : 30
|
||||
}
|
||||
]
|
||||
+604
-58
@@ -1,61 +1,607 @@
|
||||
[
|
||||
{
|
||||
"ident": "unemployed",
|
||||
"name": "Unemployed",
|
||||
"description":
|
||||
"They say you don't have any 'useful skills', but at least your clothes fit\nwell.",
|
||||
"points": 0,
|
||||
"items": ["jeans", "tshirt", "sneakers"]
|
||||
},
|
||||
{
|
||||
"description":"They say you don't have any \"useful skills\", but at least your clothes fit well.",
|
||||
"ident":"unemployed",
|
||||
"items":[
|
||||
"jeans",
|
||||
"tshirt",
|
||||
"sneakers"
|
||||
],
|
||||
"name":"Unemployed",
|
||||
"points":0
|
||||
},
|
||||
{
|
||||
"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.",
|
||||
"ident":"tailor",
|
||||
"items":[
|
||||
"polo_shirt",
|
||||
"blazer",
|
||||
"pants",
|
||||
"dress_shoes",
|
||||
"sewing_kit",
|
||||
"scissors",
|
||||
"manual_tailor"
|
||||
],
|
||||
"name":"Tailor",
|
||||
"points":1
|
||||
},
|
||||
{
|
||||
"description":"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.",
|
||||
"ident":"labtech",
|
||||
"items":[
|
||||
"dress_shirt",
|
||||
"pants",
|
||||
"boots",
|
||||
"coat_lab",
|
||||
"gloves_rubber",
|
||||
"glasses_safety"
|
||||
],
|
||||
"name":"Lab Technician",
|
||||
"points":1
|
||||
},
|
||||
{
|
||||
"description":"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.",
|
||||
"ident":"mechanic",
|
||||
"items":[
|
||||
"tank_top",
|
||||
"jeans",
|
||||
"boots",
|
||||
"chestrig",
|
||||
"wrench",
|
||||
"mag_cars",
|
||||
"manual_mechanics"
|
||||
],
|
||||
"name":"Wannabe Mechanic",
|
||||
"points":2
|
||||
},
|
||||
{
|
||||
"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.",
|
||||
"ident":"scoundrel",
|
||||
"items":[
|
||||
"tank_top",
|
||||
"hoodie",
|
||||
"pants_cargo",
|
||||
"sneakers",
|
||||
"weed",
|
||||
"rolling_paper",
|
||||
"picklocks"
|
||||
],
|
||||
"name":"Scoundrel",
|
||||
"points":2,
|
||||
"skills":[
|
||||
{
|
||||
"level":1,
|
||||
"name":"melee"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"description":"You're a high school drop-out with one goal in mind: to join the military. You finally got in, and now it's hell on Earth in cataclysmic proportions. You start out with some military gear, and a level in survival and firearms.",
|
||||
"ident":"soldier",
|
||||
"items":[
|
||||
"pants_army",
|
||||
"army_top",
|
||||
"boots_combat",
|
||||
"knife_combat",
|
||||
"binoculars"
|
||||
],
|
||||
"name":"Military Recruit",
|
||||
"points":3,
|
||||
"skills":[
|
||||
{
|
||||
"level":1,
|
||||
"name":"survival"
|
||||
},
|
||||
{
|
||||
"level":1,
|
||||
"name":"gun"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"description":"You were a pre-med student just starting out in your medical career. You start with some bandages and a level in first aid.",
|
||||
"ident":"medic",
|
||||
"items":[
|
||||
"pants",
|
||||
"dress_shirt",
|
||||
"dress_shoes",
|
||||
"water_clean",
|
||||
"bandages",
|
||||
"bandages"
|
||||
],
|
||||
"name":"Pre-Med Student",
|
||||
"points":1,
|
||||
"skills":[
|
||||
{
|
||||
"level":1,
|
||||
"name":"firstaid"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"description":"When it came to getting dirty, the boss knew you could be trusted to get the job done. From performing hits to \"attitude adjustment\", you were the best. Now, at the end of the world, you've finally found your place in society.",
|
||||
"ident":"thug",
|
||||
"items":[
|
||||
"suit",
|
||||
"bowhat",
|
||||
"dress_shoes",
|
||||
"cig",
|
||||
"mag_porn"
|
||||
],
|
||||
"name":"Mafia Enforcer",
|
||||
"points":2,
|
||||
"skills":[
|
||||
{
|
||||
"level":1,
|
||||
"name":"unarmed"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"description":"When you got the call about the disturbances, you came to the rescue only to realize you were in over your head, and needed rescuing yourself. You start with a level in firearms.",
|
||||
"ident":"sheriff",
|
||||
"items":[
|
||||
"pants_army",
|
||||
"socks",
|
||||
"badge_deputy",
|
||||
"sheriffshirt",
|
||||
"boots",
|
||||
"holster"
|
||||
],
|
||||
"name":"Local Sheriff",
|
||||
"points":2,
|
||||
"skills":[
|
||||
{
|
||||
"level":1,
|
||||
"name":"gun"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"addictions":[
|
||||
{
|
||||
"intensity":10,
|
||||
"type":"nicotine"
|
||||
}
|
||||
],
|
||||
"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.",
|
||||
"ident":"smoker",
|
||||
"items":[
|
||||
"pants",
|
||||
"dress_shirt",
|
||||
"dress_shoes",
|
||||
"cig",
|
||||
"ref_lighter"
|
||||
],
|
||||
"name":"Chain Smoker",
|
||||
"points":-1
|
||||
},
|
||||
{
|
||||
"description":"You would have sold your own mother for a dollar, and not felt guilty. In fact, you sold her a broken down beater right before the cataclysm. You start with bartering skills.",
|
||||
"ident":"salesman",
|
||||
"items":[
|
||||
"suit",
|
||||
"dress_shoes"
|
||||
],
|
||||
"name":"Used Car Salesman",
|
||||
"points":1,
|
||||
"skills":[
|
||||
{
|
||||
"level":1,
|
||||
"name":"barter"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"addictions":[
|
||||
{
|
||||
"intensity":20,
|
||||
"type":"alcohol"
|
||||
}
|
||||
],
|
||||
"description":"You lived on the streets your whole life because you would rather have a bottle of whiskey than a roof over your head. You start with a strong alcohol addiction and a pair of pants.",
|
||||
"ident":"homeless",
|
||||
"items":[
|
||||
"pants",
|
||||
"whiskey"
|
||||
],
|
||||
"name":"Hobo",
|
||||
"points":-4
|
||||
},
|
||||
{
|
||||
"description":"Ever since you were a child you loved hunting, and you loved the challenge of hunting with a bow even more. You start with a level in archery and survival.",
|
||||
"ident":"hunter",
|
||||
"items":[
|
||||
"army_top",
|
||||
"boots_steel",
|
||||
"jeans"
|
||||
],
|
||||
"name":"Bow Hunter",
|
||||
"points":2,
|
||||
"skills":[
|
||||
{
|
||||
"level":1,
|
||||
"name":"archery"
|
||||
},
|
||||
{
|
||||
"level":1,
|
||||
"name":"survival"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"description":"You used to work at the home depot, and you did a lot of home renovations yourself. You start with steel toe boots, a tool belt, a hammer, and a level in construction.",
|
||||
"ident":"cworker",
|
||||
"items":[
|
||||
"tank_top",
|
||||
"boots_steel",
|
||||
"jeans",
|
||||
"hammer",
|
||||
"tool_belt"
|
||||
],
|
||||
"name":"Handy Man",
|
||||
"points":2,
|
||||
"skills":[
|
||||
{
|
||||
"level":1,
|
||||
"name":"carpentry"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"description":"You've worked in the woods your whole life, and start with some woodsman gear.",
|
||||
"ident":"lumberjack",
|
||||
"items":[
|
||||
"jeans",
|
||||
"boots",
|
||||
"hat_hunting",
|
||||
"jacket_flannel"
|
||||
],
|
||||
"name":"Lumberjack",
|
||||
"points":1
|
||||
},
|
||||
{
|
||||
"description":"You've traveled for a living, sightseeing here and there, and living off your parents' trust fund. But now they're gone, and the only thing between you and death is the open road and your backpack.",
|
||||
"ident":"backpacker",
|
||||
"items":[
|
||||
"backpack_leather",
|
||||
"jeans",
|
||||
"sneakers",
|
||||
"tshirt",
|
||||
"socks"
|
||||
],
|
||||
"name":"Backpacker",
|
||||
"points":2
|
||||
},
|
||||
{
|
||||
"description":"You used to work at a fancy fast food joint a week ago, but now you show the meaning of \"fast\" food by running for your life. You start with a level in cooking.",
|
||||
"ident":"fastfoodcook",
|
||||
"items":[
|
||||
"pants",
|
||||
"sneakers",
|
||||
"tshirt",
|
||||
"socks"
|
||||
],
|
||||
"name":"Fast Food Cook",
|
||||
"points":1,
|
||||
"skills":[
|
||||
{
|
||||
"level":1,
|
||||
"name":"cooking"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"description":"You were one of those guys who watched one too many survivalist shows. You start with a backpack, a blazer, and some survival skills.",
|
||||
"ident":"survivalist",
|
||||
"items":[
|
||||
"shorts_cargo",
|
||||
"boots",
|
||||
"blazer",
|
||||
"tshirt",
|
||||
"socks",
|
||||
"backpack"
|
||||
],
|
||||
"name":"Survivalist",
|
||||
"points":3,
|
||||
"skills":[
|
||||
{
|
||||
"level":1,
|
||||
"name":"survival"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"description":"You used to work for some small-time business owner doing minor electrical work, and you just so happened to be working on an evac shelter when the cataclysm struck. You start with a level in electronics, and a tool belt.",
|
||||
"ident":"electrician",
|
||||
"items":[
|
||||
"jumpsuit",
|
||||
"boots",
|
||||
"tool_belt"
|
||||
],
|
||||
"name":"Electrician",
|
||||
"points":3,
|
||||
"skills":[
|
||||
{
|
||||
"level":1,
|
||||
"name":"electronics"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"description":"Caffeine pills and all-nighters in front of a computer screen have given you some basic hacking skills. You start with a level in computers.",
|
||||
"ident":"hacker",
|
||||
"items":[
|
||||
"pants",
|
||||
"tshirt",
|
||||
"sneakers"
|
||||
],
|
||||
"name":"Computer Hacker",
|
||||
"points":1,
|
||||
"skills":[
|
||||
{
|
||||
"level":1,
|
||||
"name":"computer"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"description":"You were a high school student until the teachers literally tried to pick your brains. You start with a backpack and a zombie survival guide.",
|
||||
"ident":"student",
|
||||
"items":[
|
||||
"pants",
|
||||
"tshirt",
|
||||
"sneakers",
|
||||
"ZSG",
|
||||
"backpack"
|
||||
],
|
||||
"name":"Student",
|
||||
"points":2
|
||||
},
|
||||
{
|
||||
"description":"You were in the middle of a nice shower when the cataclysm struck! You start buck naked.",
|
||||
"ident":"svictim",
|
||||
"items":[
|
||||
|
||||
{
|
||||
"ident": "tailor",
|
||||
"name": "Tailor",
|
||||
"description":
|
||||
"You've made and adjusted clothing for some of the biggest names in town.\nNow, their undead bodies are trying to eat your brains. At least you'll be\nable 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.",
|
||||
"points": 1,
|
||||
"items": ["dress_shirt", "pants", "boots", "coat_lab", "gloves_rubber", "glasses_safety"]
|
||||
},
|
||||
|
||||
{
|
||||
"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.",
|
||||
"points": 2,
|
||||
"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?\nYou start with cargo pants, a hoodie, and \"sundries\".",
|
||||
"points": 2,
|
||||
"items": ["tank_top", "hoodie", "pants_cargo", "sneakers", "weed", "picklocks"]
|
||||
},
|
||||
|
||||
{
|
||||
"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.",
|
||||
"points": -1,
|
||||
"items": ["pants", "dress_shirt", "dress_shoes", "cig"],
|
||||
"addictions": [
|
||||
{
|
||||
"type": "nicotine",
|
||||
"intensity": 10
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"name":"Shower Victim",
|
||||
"points":-1
|
||||
},
|
||||
{
|
||||
"description":"You spent most of your life on a Harley, and it's only natural you spend the rest of it riding one. You start with some biker clothes.",
|
||||
"ident":"biker",
|
||||
"items":[
|
||||
"jeans",
|
||||
"tank_top",
|
||||
"chaps_leather",
|
||||
"boots",
|
||||
"bandana",
|
||||
"jacket_leather"
|
||||
],
|
||||
"name":"Biker",
|
||||
"points":2
|
||||
},
|
||||
{
|
||||
"description":"You used to be a ballroom dancer before the cataclysm, and now you use your skills to save your life. You start with a tuxedo and a level in dodging.",
|
||||
"ident":"dancer",
|
||||
"items":[
|
||||
"tux",
|
||||
"dress_shoes"
|
||||
],
|
||||
"name":"Ballroom Dancer",
|
||||
"points":1,
|
||||
"skills":[
|
||||
{
|
||||
"level":1,
|
||||
"name":"dodge"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"description":"You worked for a small-time security company guarding local businesses. You start with a security outfit and a flashlight.",
|
||||
"ident":"security",
|
||||
"items":[
|
||||
"pants",
|
||||
"poncho",
|
||||
"boots_combat",
|
||||
"flashlight"
|
||||
],
|
||||
"name":"Security Guard",
|
||||
"points":1
|
||||
},
|
||||
{
|
||||
"description":"You've always loved tinkering with stuff. You start with a tool belt, and know a little bit about mechanics, tailoring, electronics, and carpentry.",
|
||||
"ident":"tinkerer",
|
||||
"items":[
|
||||
"pants",
|
||||
"tshirt",
|
||||
"tool_belt",
|
||||
"sneakers"
|
||||
],
|
||||
"name":"Tinkerer",
|
||||
"points":3,
|
||||
"skills":[
|
||||
{
|
||||
"level":1,
|
||||
"name":"mechanics"
|
||||
},
|
||||
{
|
||||
"level":1,
|
||||
"name":"tailor"
|
||||
},
|
||||
{
|
||||
"level":1,
|
||||
"name":"electronics"
|
||||
},
|
||||
{
|
||||
"level":1,
|
||||
"name":"carpentry"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"description":"You've worked the streets since you were a kid, and now you use your street skills to survive. You start with a Glock 19 and some of your \"goods\", but no bullets.",
|
||||
"ident":"ddealer",
|
||||
"items":[
|
||||
"jeans",
|
||||
"tshirt",
|
||||
"hoodie",
|
||||
"sneakers",
|
||||
"glock_19",
|
||||
"coke"
|
||||
],
|
||||
"name":"Drug Dealer",
|
||||
"points":1
|
||||
},
|
||||
{
|
||||
"description":"You were about to marry your bride before the cataclysm, now you spend you days searching for her.",
|
||||
"ident":"groom",
|
||||
"items":[
|
||||
"tux",
|
||||
"dress_shoes"
|
||||
],
|
||||
"name":"Groom",
|
||||
"points":0
|
||||
},
|
||||
{
|
||||
"description":"You chose a bad day for your wedding. You just barely escaped with your wedding dress intact.",
|
||||
"ident":"bride",
|
||||
"items":[
|
||||
"dress_wedding",
|
||||
"dress_shoes"
|
||||
],
|
||||
"name":"Bride",
|
||||
"points":0
|
||||
},
|
||||
{
|
||||
"ident": "punkgirl",
|
||||
"name": "Punk Rock Girl",
|
||||
"description":"The apocalypse has been your psychotic dream come true. Now that the system is dead, it's time to party among the bones of the world!",
|
||||
"points": 2,
|
||||
"items": ["skirt", "corset", "trenchcoat", "gloves_fingerless", "boots_combat",
|
||||
"weed", "rolling_paper", "cig", "mp3", "ref_lighter"]
|
||||
},
|
||||
{
|
||||
"ident": "junkie",
|
||||
"name": "Junkie",
|
||||
"description":
|
||||
"Before the Apocalypse, you turned to Heroin to soothe your many problems.\nNow, your habit is your only comfort and your only drive.",
|
||||
"points": -1,
|
||||
"items": ["pants", "dress_shirt", "dress_shoes", "heroin","syringe"],
|
||||
"addictions": [ { "type": "opiate", "intensity": 10 } ]
|
||||
},
|
||||
{
|
||||
"ident": "chef",
|
||||
"name": "Chef",
|
||||
"description":
|
||||
"Bork bork! Years in the kitchen have left you carrying a prodigious bulk, but you managed to escape the carnage with a butchers knife and only a small collection of stains on your uniform.",
|
||||
"points": 2,
|
||||
"items": ["knife_butcher", "hat_chef", "jacket_chef", "pants_checkered", "dress_shoes"],
|
||||
"skills" : [ { "name" : "cooking", "level" : 3 } ]
|
||||
},
|
||||
{
|
||||
"addictions":[
|
||||
{
|
||||
"intensity":20,
|
||||
"type":"crack"
|
||||
}
|
||||
],
|
||||
"description":"You were on your way to collect your check, when your pimp tried to kill you. You wish that it wasn't a common occurence. You start with a skirt, tank top, a pair of high heels, your stash, and a strong crack addiction.",
|
||||
"ident":"hooker",
|
||||
"items":[
|
||||
"skirt",
|
||||
"heels",
|
||||
"tank_top",
|
||||
"crackpipe",
|
||||
"crack"
|
||||
],
|
||||
"name":"Prostitute",
|
||||
"points":-4
|
||||
},
|
||||
{
|
||||
"description":"You spent most of your life trapping with your father. Both of you made a decent living off of your catches, and trapping tutorials. You start with a skill in trapping.",
|
||||
"ident":"trapper",
|
||||
"items":[
|
||||
"jeans",
|
||||
"boots",
|
||||
"hat_hunting",
|
||||
"jacket_flannel",
|
||||
"beartrap"
|
||||
],
|
||||
"name":"Trapper",
|
||||
"points":1,
|
||||
"skills":[
|
||||
{
|
||||
"level":1,
|
||||
"name":"traps"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"description":"You were going through your community college's metalsmithing program when the world ended. You start with a few related tools and some skill in fabrication.",
|
||||
"ident":"blacksmith",
|
||||
"items":[
|
||||
"jeans",
|
||||
"boots",
|
||||
"tank_top",
|
||||
"apron_leather",
|
||||
"fire_gauntlets",
|
||||
"hammer"
|
||||
],
|
||||
"name":"Blacksmith",
|
||||
"points":2,
|
||||
"skills":[
|
||||
{
|
||||
"level":1,
|
||||
"name":"fabrication"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"ident": "clown",
|
||||
"name": "Clown",
|
||||
"description":"All you ever wanted was to make people laugh. Dropping out of school and performing at kids' parties was a dream come true until the world ended. There's precious few balloon animals in your future now.",
|
||||
"points": 0,
|
||||
"items": ["clown_suit", "clownshoes"]
|
||||
},
|
||||
{
|
||||
"ident": "lost_sub",
|
||||
"name": "Lost Submissive",
|
||||
"description":"Early in the rush to safety, you were separated from your master by cruel fate. Now you are on your own with nothing to your name but a suit of really kinky black leather. Unfortunately, there's no safewords in the apocalypse.",
|
||||
"points": 0,
|
||||
"items": ["bondage_suit", "bondage_mask", "boots"]
|
||||
},
|
||||
{
|
||||
"ident": "senior",
|
||||
"name": "Senior Citizen",
|
||||
"description":"You haven't seen this much blood since the war. The whole world's gone crazy! They ate your grandkids! But dagnabbit, you'll make them all pay for what they've done. You start with a cane and your pocketwatch.",
|
||||
"points": 1,
|
||||
"items": ["dress_shirt", "pants_checkered", "dress_shoes", "cane", "pocketwatch"]
|
||||
},
|
||||
{
|
||||
"description":"Being a paramedic put you in a bad spot when it all ended. You had to fight your way out of a hospital full of infected to get to the shelter. You start with a few related tools and some skill in first aid.",
|
||||
"ident":"paramedic",
|
||||
"items":[
|
||||
"pants",
|
||||
"boots",
|
||||
"polo_shirt",
|
||||
"gloves_medical",
|
||||
"1st_aid"
|
||||
],
|
||||
"name":"Paramedic",
|
||||
"points":2,
|
||||
"skills":[
|
||||
{
|
||||
"level":1,
|
||||
"name":"firstaid"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"ident":"cosplay",
|
||||
"name":"Otaku",
|
||||
"description":"Late nights with friends watching anime and eating snacks has prepared you for the premier anime convention in the Northeast. It just had to be the day of the apocalypse. At least you were ready in case your costume tore.",
|
||||
"items":["shorts", "sneakers", "tank_top", "sewing_kit", "mbag", "fur_cat_ears", "fur_cat_tail", "fur_collar", "cheeseburger"],
|
||||
"points":2
|
||||
}
|
||||
]
|
||||
|
||||
+13990
-7399
File diff suppressed because it is too large
Load Diff
+168
-135
@@ -1,137 +1,170 @@
|
||||
[
|
||||
[
|
||||
"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."
|
||||
],
|
||||
[
|
||||
"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."
|
||||
],
|
||||
[
|
||||
"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."
|
||||
],
|
||||
[
|
||||
"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."
|
||||
],
|
||||
[
|
||||
"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."
|
||||
],
|
||||
[
|
||||
"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."
|
||||
],
|
||||
[
|
||||
"throw",
|
||||
"throwing",
|
||||
"Your skill at throwing items and getting them to go where you want. Increases\nboth 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."
|
||||
],
|
||||
[
|
||||
"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."
|
||||
],
|
||||
[
|
||||
"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."
|
||||
],
|
||||
[
|
||||
"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."
|
||||
],
|
||||
[
|
||||
"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."
|
||||
],
|
||||
[
|
||||
"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."
|
||||
],
|
||||
[
|
||||
"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."
|
||||
],
|
||||
[
|
||||
"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."
|
||||
],
|
||||
[
|
||||
"mechanics",
|
||||
"mechanics",
|
||||
"Your skill with repairs to mechanical systems, and the crafting of many items\nthat 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."
|
||||
],
|
||||
[
|
||||
"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."
|
||||
],
|
||||
[
|
||||
"carpentry",
|
||||
"construction",
|
||||
"Your general knowledge in construction. This is used primarily when building\nterrain, 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."
|
||||
],
|
||||
[
|
||||
"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."
|
||||
],
|
||||
[
|
||||
"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."
|
||||
],
|
||||
[
|
||||
"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."
|
||||
],
|
||||
[
|
||||
"speech",
|
||||
"speech",
|
||||
"Your skill at talking to people, convincing them of things, lying, and many\nothers. 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."
|
||||
],
|
||||
[
|
||||
"swimming",
|
||||
"swimming",
|
||||
"Your skill at swimming. This affects speed, your ability to swim while\nwearing 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."
|
||||
]
|
||||
[
|
||||
"barter",
|
||||
"bartering",
|
||||
"Your skill in bargaining, haggling, and trading with others. Higher levels increase the odds of getting the better end of a deal, and might even see you convincing others to give you free stuff.",
|
||||
[]
|
||||
],
|
||||
[
|
||||
"computer",
|
||||
"computers",
|
||||
"Your skill in accessing and manipulating computers. Higher levels can allow a user to navigate complex software systems and even bypass their security.",
|
||||
[]
|
||||
],
|
||||
[
|
||||
"carpentry",
|
||||
"construction",
|
||||
"Your general competence in building construction. This governs the complexity of structures that can be built, and the time required to build them.",
|
||||
[]
|
||||
],
|
||||
[
|
||||
"cooking",
|
||||
"cooking",
|
||||
"Your skill in combining food ingredients to make other, tastier food items. It may also be used in certain chemical mixtures and other, more esoteric tasks.",
|
||||
[]
|
||||
],
|
||||
[
|
||||
"driving",
|
||||
"driving",
|
||||
"Your skill in operating and steering a vehicle in motion. A higher level allows greater control over vehicles at higher speeds, and reduces the penalty of shooting while driving.",
|
||||
[]
|
||||
],
|
||||
[
|
||||
"electronics",
|
||||
"electronics",
|
||||
"Your skill in dealing with electrical systems, used in the craft and repair of objects with electrical components. This skill is an important part of installing and managing bionic implants.",
|
||||
[]
|
||||
],
|
||||
[
|
||||
"fabrication",
|
||||
"fabrication",
|
||||
"Your skill in working with raw materials and shaping them into useful objects. This skill plays an important role in the crafting of many objects.",
|
||||
[]
|
||||
],
|
||||
[
|
||||
"firstaid",
|
||||
"first aid",
|
||||
"Your skill in effecting emergency medical treatment. Higher levels allow better use of medicines and items like bandages and first aid kits, and reduce the failure and complication rates of medical procedures.",
|
||||
[]
|
||||
],
|
||||
[
|
||||
"mechanics",
|
||||
"mechanics",
|
||||
"Your skill in engineering, maintaining and repairing vehicles and other mechanical systems. This skill covers the craft of items with complex parts, and plays a role in the installation of bionic equipment.",
|
||||
[]
|
||||
],
|
||||
[
|
||||
"speech",
|
||||
"speaking",
|
||||
"Your skill in speaking to other people. Covers ability in boasting, flattery, threats, persuasion, lies, and other facets of interpersonal communication. Works best in conjunction with a high level of intelligence.",
|
||||
[]
|
||||
],
|
||||
[
|
||||
"survival",
|
||||
"survival",
|
||||
"Your skill in surviving the wilderness, and in crafting various basic survival items. This also covers your ability to skin and butcher animals for meat and hides.",
|
||||
[]
|
||||
],
|
||||
[
|
||||
"swimming",
|
||||
"swimming",
|
||||
"Your ability to stay afloat and move around in bodies of water. This skill keeps you from drowning, affects your combat effectiveness and speed in deep water, and determines the detriment of swimming with heavier gear.",
|
||||
[]
|
||||
],
|
||||
[
|
||||
"tailor",
|
||||
"tailoring",
|
||||
"Your skill in the craft and repair of clothing, bags, blankets and other textiles. Affects knitting, sewing, stitching, weaving, and nearly anything else involving a needle and thread.",
|
||||
[]
|
||||
],
|
||||
[
|
||||
"traps",
|
||||
"trapping",
|
||||
"Your skill in setting and disarming traps safely and effectively. This skill does not affect the detection of hidden traps, or the evasion of traps that are triggered.",
|
||||
[]
|
||||
],
|
||||
[
|
||||
"archery",
|
||||
"archery",
|
||||
"Your skill in using bow weapons, from hand-carved self bows to complex hunting crossbows. Quiet and effective, they require strength of body and sight to wield, and are not terribly accurate over a long distance.",
|
||||
[]
|
||||
],
|
||||
[
|
||||
"bashing",
|
||||
"bashing weapons",
|
||||
"Your skill in fighting with blunt weaponry, from rocks and sticks to baseball bats and the butts of rifles. Skill increases damage, and higher levels will improve the accuracy of an attack.",
|
||||
[]
|
||||
],
|
||||
[
|
||||
"cutting",
|
||||
"cutting weapons",
|
||||
"Your skill in fighting with weaponry designed to cut, hack and slash an opponent. Lower levels of skill increase accuracy and damage, while higher levels will help to bypass heavy armor and thick hides.",
|
||||
[]
|
||||
],
|
||||
[
|
||||
"dodge",
|
||||
"dodging",
|
||||
"Your ability to dodge an oncoming threat, be it an enemy's attack, a triggered trap, or a falling rock. This skill is also used in attempts to fall gracefully, and for other acrobatic feats.",
|
||||
[]
|
||||
],
|
||||
[
|
||||
"gun",
|
||||
"firearms",
|
||||
"Your overall skill in using firearms. With higher levels, this general experience increases accuracy with any gun, but is secondary to practice with the type of gun in question.",
|
||||
[]
|
||||
],
|
||||
[
|
||||
"launcher",
|
||||
"launchers",
|
||||
"Your skill in using heavy weapons like rocket, grenade or missile launchers. These weapons have a variety of applications and may carry immense destructive power, but they are cumbersome and hard to manage.",
|
||||
[]
|
||||
],
|
||||
[
|
||||
"melee",
|
||||
"melee",
|
||||
"Your skill and finesse in personal combat, both with and without a weapon. Higher levels can significantly increase the accuracy and effectiveness of your physical attacks.",
|
||||
[]
|
||||
],
|
||||
[
|
||||
"stabbing",
|
||||
"piercing weapons",
|
||||
"Your skill in fighting with knives, spears and other such stabbing implements. Skill increases attack accuracy as well as the chance of inflicting a deadly and critical blow.",
|
||||
[]
|
||||
],
|
||||
[
|
||||
"throw",
|
||||
"throwing",
|
||||
"Your skill in throwing objects over a distance. Skill increases accuracy, and at higher levels, the range of a throw.",
|
||||
[]
|
||||
],
|
||||
[
|
||||
"unarmed",
|
||||
"unarmed combat",
|
||||
"Your skill in hand-to-hand fighting. For the unskilled, it's a good way to get hurt, but those with enough practice can perform special blows and techniques to quickly dispatch enemies.",
|
||||
[]
|
||||
],
|
||||
[
|
||||
"pistol",
|
||||
"handguns",
|
||||
"Handguns have poor accuracy compared to rifles, but are usually quick to fire and reload faster than other guns. They are very effective at close quarters, though unsuited for long range engagement.",
|
||||
["gun_type"]
|
||||
],
|
||||
[
|
||||
"rifle",
|
||||
"rifles",
|
||||
"Rifles have terrific range and accuracy compared to other firearms, but may be slow to fire and reload, and can prove difficult to use in close quarters. Fully automatic rifles can fire rapidly, but are harder to handle properly.",
|
||||
["gun_type"]
|
||||
],
|
||||
[
|
||||
"shotgun",
|
||||
"shotguns",
|
||||
"Shotguns are easy to shoot and can inflict massive damage, but their effectiveness and accuracy decline rapidly with range. Slugs can be loaded into shotguns to provide greater range, though they are somewhat inaccurate.",
|
||||
["gun_type"]
|
||||
],
|
||||
[
|
||||
"smg",
|
||||
"submachine guns",
|
||||
"Comprised of an automatic rifle carbine designed to fire a pistol cartridge, submachine guns can reload and fire quickly, sometimes in bursts, but they are relatively inaccurate and may be prone to mechanical failures.",
|
||||
["gun_type"]
|
||||
]
|
||||
]
|
||||
|
||||
+17
-1
@@ -67,11 +67,27 @@
|
||||
},
|
||||
{
|
||||
"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!\""
|
||||
"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 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!\""
|
||||
},
|
||||
{
|
||||
"category": "flier",
|
||||
"text": "This is an advertisement for Rivtech brand handguns. It shows a picture of a well armed couple in business suits with matching handguns facing down a legion of villainous looking characters. The caption reads: \"Protect yourself with the Rivtech caseless automagnum!\""
|
||||
},
|
||||
{
|
||||
"category": "flier",
|
||||
"text": "This is an advertisement for Rivtech brand rifles. It shows a picture of a smiling soldier with a futuristic looking rifle on her shoulder saluting the viewer. The caption reads: \"Rivtech caseless firearms proudly supports our Military.\""
|
||||
},
|
||||
{
|
||||
"category": "flier",
|
||||
"text": "This is an advertisement for Rivtech brand firearms. It shows a picture of a trio of well armed hunters. The three are each armed with different futuristic looking weapons and are shooting at a hostile crowd of approaching wildlife. The caption reads: \"Rivtech caseless firearms. Superior stopping power.\""
|
||||
},
|
||||
{
|
||||
"category": "flier",
|
||||
"text": "This is an advertisement for Rivtech brand ammunition. It shows a picture of an armored steel plate with a gaping hole blasted through the middle. Sitting beside the plate is a block of brightly colored caseless ammunition. The caption reads: \"Rivtech 8x40mm caseless. Nothing else comes close.\""
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user