Compare commits

..

190 Commits

Author SHA1 Message Date
kuutekitty 625a0ec5ec add kuutekitty to donations.md (#89712) 2026-11-22 12:57:25 -08:00
Maya Granade 6b79ead016 JSON linter gh-pages file update (#87466)
Co-authored-by: harakka <2456481+harakka@users.noreply.github.com>
2026-08-06 10:55:40 -07:00
ergolyam f2504649e9 [+] add flathub download link (#87667) 2026-06-20 09:20:34 -07:00
Maya Granade b4326d972d Update head.html 2026-06-03 12:51:48 -07:00
gettingusedto 2f23974f81 Update donations.md (#83821) 2025-11-19 18:31:05 -08:00
SittingDucken 26c4be927a Initial twison build. (#81587) 2025-07-28 21:58:31 -07:00
Kevin Granade 87baa3cc79 Add link to reactivated subreddit 2025-07-16 15:35:37 -07:00
Kevin Granade 189354b8e9 Remove release enumeration from releases page
This was exceeding the GitHub "list releases" API limit of 10,000 release entries and causing the page rebuild to fail.
2025-04-03 10:14:11 -07:00
Kevin Granade 345c1c0d27 Remove enumeration of releases from experimental releases page
This was exceeding the "list releases" API limit of 10,000 release entries and failing to build the page.
2025-04-03 10:00:33 -07:00
Kevin Granade c98ee8dbef Remove outdated comment about msvc builds 2025-03-17 10:46:45 -07:00
Kevin Granade 6b2ab31824 JSON linter gh-pages file update (#78086)
Co-authored-by: kevingranade <kevingranade@users.noreply.github.com>
2024-12-19 08:43:58 -08:00
Kevin Granade 31ad94a1ee add crosslink to project organization doc 2024-11-23 00:44:18 -08:00
Kevin Granade 33f71fa042 Update org.flathub.VerifiedApps.txt 2024-11-04 18:45:11 -08:00
Kevin Granade 8e35b4dd35 include the .well-known folder
For flathub verification
2024-11-04 18:18:19 -08:00
Kevin Granade 47de02a172 Create org.flathub.VerifiedApps.txt for app verification 2024-11-04 14:18:01 -08:00
Kevin Granade 256f1a99de JSON linter gh-pages file update (#71354)
Co-authored-by: Maleclypse <Maleclypse@users.noreply.github.com>
2024-03-14 15:18:48 -07:00
Antti Riikonen 1361276e1a Remove mention of lemmy (#72097)
Remove Lemmy mention
2024-03-04 11:03:01 -08:00
Kevin Granade 54a996a989 JSON linter gh-pages file update (#68707)
Co-authored-by: Maleclypse <Maleclypse@users.noreply.github.com>
2023-11-04 14:29:37 -07:00
Zhilkin Serg d13493e7fe Privacy policy update (#69039)
* Privay policy update

* add header

---------

Co-authored-by: I-am-Erk <45136638+I-am-Erk@users.noreply.github.com>
2023-10-31 12:08:03 -07:00
Kevin Granade d1f3bd9938 JSON linter gh-pages file update (#67630)
Co-authored-by: Maleclypse <Maleclypse@users.noreply.github.com>
2023-08-27 18:26:06 -07:00
Dillon Matchett cb164a8236 Added Community Discord To Website (#67428)
* Added Community Discord

* fixed steam link
2023-08-03 23:07:33 -07:00
Dillon Matchett 88a9b6ce7b Updated index removed all developer facing pages (#66475) 2023-06-27 08:12:54 -07:00
Antti Riikonen 97b6d7e4cf Update hhg url (#64549) 2023-05-06 09:53:13 -07:00
taatu cf3250e11b fix broken anchor references (#64814) 2023-04-05 17:51:41 -07:00
I-am-Erk d1cf4fcf61 Create steam_faq.md (#64439)
* Create steam_faq.md

* Update steam_faq.md

* Update steam_faq.md

* Update index.md

* Update index.md

* Update steam_faq.md

Co-authored-by: andrei <68240139+andrei8l@users.noreply.github.com>

* Update steam_faq.md

---------

Co-authored-by: andrei <68240139+andrei8l@users.noreply.github.com>
2023-03-21 13:13:17 -07:00
Antti Riikonen afd99f6ec0 Remove Bountysource and Chezzo links, move hhg up (#64020) 2023-03-06 23:27:49 -08:00
Kevin Granade fcfe75b906 Merge pull request #63703 from John-Candlebury/gh-pages-donationlink
Add my Patreon to the donations page
2023-02-22 10:49:38 -08:00
John Candlebury 17d955042f Add my info to the donations page 2023-02-20 17:40:40 -06:00
NetSysFire 1a72165a2c Hint about other files on the lore page (#60899) 2023-01-12 07:14:46 -08:00
Kevin Granade 834754b3a3 Merge pull request #62080 from irwiss/explain-msvc
Provide hint for msvc build tag on downloads page
2022-12-23 21:01:47 -08:00
Alexey Kim 160bd243a6 Provide hint for msvc build tag 2022-11-04 20:26:18 +02:00
NetSysFire ba6c7353d9 Some typo and grammar fixes (#57880) 2022-07-03 19:03:44 -07:00
Kevin Granade 90c1b7b5c1 Prune the defunct game launcher from the front page 2022-04-03 15:49:14 -07:00
NetSysFire b83267d257 Update IRC stuff (#55439) 2022-03-08 09:52:47 -08:00
I-am-Erk c9915d2b0b Design doc updates (#54074)
* in progress changes to lore docs

* adjust gameplay doc a bit

* touch up background document
2022-01-05 16:42:02 -08:00
I-am-Erk bb38735679 split up the design doc 2022-01-05 10:19:36 -08:00
Kevin Granade 1f2ba5df16 tpyo 2022-01-04 11:32:52 -08:00
Zhilkin Serg 04850d017f Create privacy.md (#52607) 2021-11-02 14:34:22 -07:00
I-am-Erk ac04d717af Update lore-factions.md 2021-10-28 11:26:23 -07:00
I-am-Erk ddbb41e71a Update lore-factions.md 2021-10-28 11:24:32 -07:00
I-am-Erk 856e285427 Update technology.md 2021-10-28 11:14:19 -07:00
I-am-Erk 3d0816a284 Update technology.md 2021-10-28 10:17:53 -07:00
I-am-Erk c1d8ec0cd2 Update design-doc.md 2021-10-28 10:05:29 -07:00
I-am-Erk dc817bf2b9 format fixes 2021-10-28 09:54:49 -07:00
I-am-Erk 9452acb749 Update lore-factions.md 2021-10-28 09:51:05 -07:00
I-am-Erk c850ae3aea Update lore-factions.md 2021-10-28 09:49:13 -07:00
I-am-Erk 7e43f1bfbf Update lore-factions.md 2021-10-28 09:45:56 -07:00
I-am-Erk d0f8c7c6a9 Update lore-factions.md 2021-10-28 09:19:40 -07:00
I-am-Erk 1e3420aa8f Update lore-factions.md 2021-10-28 09:08:13 -07:00
I-am-Erk 62185ef48b Update lore-factions.md 2021-10-28 09:06:25 -07:00
Kevin Granade e851085b9b correcting some misleading phrasing 2021-10-28 08:55:44 -07:00
I-am-Erk 748a5ed5b5 Update design-balance.md 2021-10-27 15:17:26 -07:00
I-am-Erk 4b62a06af9 Update design-balance.md 2021-10-27 15:16:31 -07:00
I-am-Erk f191347e05 Update design-balance.md 2021-10-27 15:10:54 -07:00
I-am-Erk a195028061 Update design-balance.md 2021-10-27 15:01:57 -07:00
I-am-Erk 72ccb94cba Update design-balance.md 2021-10-27 14:47:28 -07:00
I-am-Erk 53541e8e38 Update design-balance.md 2021-10-27 13:54:23 -07:00
I-am-Erk 40d1691b40 Update design-balance.md 2021-10-27 12:31:26 -07:00
I-am-Erk d38c685772 add design-balance
based on kevingranade balance draft, expanded
2021-10-27 12:29:29 -07:00
I-am-Erk b56181e59f Update lore-factions.md 2021-10-27 11:36:51 -07:00
I-am-Erk 8496a93690 Update lore-factions.md 2021-10-27 10:55:37 -07:00
I-am-Erk 3984f0197f Update design-doc.md 2021-10-27 10:30:34 -07:00
I-am-Erk 73827b40c8 Update lore-factions.md 2021-10-27 10:25:55 -07:00
I-am-Erk 42e34087fc Update lore-factions.md 2021-10-26 15:58:42 -07:00
I-am-Erk 7292ac7b92 Update lore-factions.md 2021-10-26 13:09:15 -07:00
I-am-Erk 931236ec82 Update lore-factions.md 2021-10-26 13:03:07 -07:00
I-am-Erk d25a043958 Update lore-factions.md 2021-10-26 13:02:47 -07:00
I-am-Erk 8c2f5c109a add lore-factions.md
Not too much new info here yet.
2021-10-26 12:53:14 -07:00
I-am-Erk f2834c0079 remove factions from design doc main 2021-10-26 12:52:45 -07:00
Kevin Granade 487a686c9a Remove lore note we haven't been following 2021-09-24 10:32:33 -07:00
Alexey Mostovoy 5f8eb8d704 Small tweaks to gh-pages service files (#51469)
* Update .gitignore

Include the directory and file name used to serve the site locally

* Update _config.yml

Deprecated `gems`: `plugins` config key is a replacement for `gems`

* Update .gitignore and sync with master
2021-09-13 15:49:59 -07:00
Alexey Mostovoy 8ee5a039d9 Add showcase image (Ultica tileset) (#51468)
Add showcase image to home page
https://github.com/I-am-Erk/CDDA-Tilesets
2021-09-13 15:49:23 -07:00
I-am-Erk 6f62316525 Update design-doc.md
wip
2021-09-10 12:42:00 -07:00
I-am-Erk e86adb7b4a Update technology.md 2021-09-10 12:41:37 -07:00
casswedson bc139be5ac Fix typos in design-doc.md (#49554)
* fix typos
Co-authored-by: actual-nh <74678550+actual-nh@users.noreply.github.com>
2021-07-06 16:54:59 -07:00
halosammy 89606d54f1 Update lore-background.md (#49553)
Capitalization
2021-07-06 11:21:45 -07:00
Zhilkin Serg afaeab92a6 Just wanna rebuild releases page (#49505) 2021-07-01 08:53:34 -07:00
Kevin Granade e2a81e3626 Enhance distinction between first party and third party resources
Also added HHGTTC, and removed reddit as I no longer consider it productive to send users there.
2021-05-28 11:37:56 -07:00
Kevin Granade 80c519df6b Update IRC channel reference to point to Libera 2021-05-26 12:20:00 -07:00
Zhilkin Serg 85b70b1bef Fix missing line break (#48439)
... and also bring OMG release down
2021-04-08 23:23:26 -07:00
Kevin Granade 10c7b24130 Create CNAME 2021-03-21 15:29:35 -07:00
Kevin Granade 725700952e Delete CNAME 2021-03-21 15:29:26 -07:00
Kevin Granade 386d664d2f Update index.md 2020-11-09 13:41:58 -08:00
Kevin Granade d17b905747 Update code style blurb 2020-10-14 19:38:27 -07:00
Kevin Granade f6d198b4fb Clarify build availablility. 2020-10-14 19:33:47 -07:00
gemsys 5e81da6827 Improve grammar and fix typos in the website 2020-10-15 02:27:53 +00:00
I-am-Erk 8c6b82564a Update technology.md 2020-06-01 12:12:12 -07:00
I-am-Erk dd72f62e06 Update technology.md 2020-06-01 12:02:16 -07:00
I-am-Erk 90dd579372 Update technology.md 2020-06-01 11:54:18 -07:00
I-am-Erk c3c77d79ed Update technology.md 2020-06-01 11:53:33 -07:00
I-am-Erk 128d69039e Update technology.md 2020-06-01 11:41:26 -07:00
I-am-Erk 668ca4d4d5 Update lore-background.md 2020-06-01 11:35:46 -07:00
I-am-Erk 33e7dc1b04 Update lore-background.md 2020-06-01 11:22:44 -07:00
I-am-Erk 856b06a9d7 Update lore-background.md 2020-06-01 11:20:12 -07:00
I-am-Erk 6a95b78584 Update lore-background.md 2020-06-01 10:46:47 -07:00
I-am-Erk b5631470ad Remove CBMs, tighten up timeline, add spoiler. 2020-06-01 10:46:37 -07:00
I-am-Erk 757e29b223 Update technology.md 2020-06-01 10:28:58 -07:00
I-am-Erk 6e17b80cd2 Update technology.md 2020-06-01 10:28:45 -07:00
I-am-Erk d9e8b3bb17 add spoiler alerts. 2020-06-01 10:20:34 -07:00
ZhilkinSerg 3889ef8d11 Update CDDA description on homepage (#40945) 2020-05-31 07:10:42 +00:00
I-am-Erk 9d16ab056b Update technology.md 2020-05-29 10:38:03 -07:00
Kevin Granade 339b665712 Remove dead links
The target pages are unfortunately gone now, so no reason to keep them around.
2020-05-21 14:56:36 -07:00
snipercup 71c2f0acf9 Remove snipercup from donations page 2020-05-21 14:48:55 -07:00
Isaac Freund 6c79e7fb41 Trigger rebuild 2020-05-20 16:18:15 +02:00
Isaac Freund 98220d224f Trigger rebuild to remove 0.C download links 2020-05-08 13:49:52 +02:00
Isaac Freund c57923f1a9 Trigger one more rebuild 2020-04-01 14:51:01 +02:00
Isaac Freund 13beb3e0f4 Trigger rebuild 2020-04-01 14:34:46 +02:00
Isaac Freund c5e612a48b Add script for simple local testing with docker 2020-02-21 06:50:23 +00:00
Isaac Freund 14cd8db985 Create packaging status page on website (#37855)
This information was quite hidden at the bottom of the releases page.
2020-02-09 07:58:18 -08:00
Isaac Freund 194c87c271 Merge pull request #37834 from reinerh/gh-pages
Add Debian/Ubuntu install instructions to releases page
2020-02-09 12:02:43 +01:00
Reiner Herrmann d5478c5d26 Add Debian/Ubuntu install instructions to releases page 2020-02-08 14:46:06 +01:00
I-am-Erk ffd16169a8 Update lore-background.md 2020-01-30 17:33:05 -08:00
I-am-Erk 69321de26f Update lore-background.md 2020-01-30 17:27:10 -08:00
snipercup 2608758799 Explain the difference between tiles and curses on release page (#37433)
* Explain the difference between tiles and curses

* Revert "Explain the difference between tiles and curses"

This reverts commit 6f83dcb738.

* Explain the difference between tiles and curses

* Update releases.md

Co-Authored-By: Alexey Mostovoy <1931904+AMurkin@users.noreply.github.com>

* Update releases.md

Co-authored-by: Alexey Mostovoy <1931904+AMurkin@users.noreply.github.com>
2020-01-29 21:39:04 -08:00
Kevin Granade 1d2f7bff6b Fix a typo 2020-01-23 12:32:44 -08:00
Artem Polishchuk b7eb63e481 Add packaging status to Release page (#36143) 2019-12-16 19:20:18 +00:00
I-am-Erk c9efd9e07d Update design-doc.md 2019-11-29 18:11:15 -08:00
I-am-Erk 2fbb555d1f Add a section on mi-go 2019-11-27 22:06:41 -08:00
I-am-Erk d05bb314c6 Add info about mutations 2019-11-15 18:27:54 -08:00
snipercup a8202034ed Add contributor to donations page (#35317) 2019-11-04 18:25:42 -08:00
Curtis Merrill a072ef1ac8 add Donations tab and add extra return (#35149) 2019-10-29 17:36:52 -07:00
Curtis Merrill c779eaa368 Create initial donations page (#35036) 2019-10-27 12:03:25 -07:00
Kevin Granade e252913a04 Add link to discord server 2019-07-13 12:10:45 -07:00
I-am-Erk a7a4b27974 Update technology.md 2019-07-08 14:31:54 -07:00
I-am-Erk db309cab30 Update technology.md 2019-07-08 14:11:05 -07:00
I-am-Erk 44eb59a505 prosthetics 2019-07-08 14:07:14 -07:00
I-am-Erk dedf57fac0 Update technology.md 2019-07-08 13:44:05 -07:00
I-am-Erk e398f9bafd Comment on dimensions 2019-07-08 13:33:40 -07:00
I-am-Erk 979b06b3d7 Update technology.md 2019-07-08 13:18:52 -07:00
I-am-Erk 764717a692 add links to technology doc that were missed. 2019-07-08 13:16:56 -07:00
Kevin Granade 955ddf5a68 Remove a link to a compromised page 2019-07-07 15:10:40 -07:00
I-am-Erk c11694c8f5 Continue technology.md 2019-05-22 11:38:22 -07:00
I-am-Erk 71c137cb7b Create technology.md 2019-05-22 11:18:00 -07:00
I-am-Erk 236a8eaf2b Alien fuel cells, not alien robots 2019-05-22 09:21:00 -07:00
I-am-Erk 11584605aa More power cell stuff 2019-05-22 08:47:12 -07:00
I-am-Erk 7ba6ddd36c Update lore-background.md 2019-05-22 08:34:23 -07:00
Kevin Granade 1919ec2d1f More mutation notes 2019-05-14 20:18:59 -07:00
Kevin Granade 4e0431a322 Notes about clothes bionics and mutagen 2019-05-14 18:13:18 -07:00
I-am-Erk 32dfe1835c hyperlink 2019-05-14 16:01:17 -07:00
I-am-Erk 39c70d5215 Update design-doc.md 2019-05-14 13:59:59 -07:00
I-am-Erk 53f46d6cbc Expand timeline of Year 0 2019-05-11 22:35:10 -07:00
I-am-Erk cac6b77701 Create a file for the timeline and background info
It's too crowded in the main design doc.
2019-05-11 13:06:46 -07:00
I-am-Erk 10a53e345e Remove timeline from master design doc
It's crowded in there.
2019-05-11 13:06:20 -07:00
Isaac Freund 858cb2c70c Merge pull request #30407 from AMurkin/patch-1
Design Document - minor style change
2019-05-11 12:54:08 +02:00
Alexey Mostovoy 55917f29ee Update design-doc.md 2019-05-11 14:11:39 +04:00
Isaac Freund 8e298bf3c8 Fix build list on experimental page
Trying to display all releases seems to cause issues with only ~15 loading, so make a counter
and only display the most recent 10 releases for which at least one artifact was generated
2019-05-10 11:21:45 +02:00
Isaac Freund 2cd7f3b231 Add experimental builds page
- Edit build descriptions and links on Home and Releases pages
 - Only list experimental builds that were successful (have artifacts)
2019-05-02 15:21:48 -07:00
Isaac Freund df8b9c496b Hide changes page in header
- The changes page currently is blank, as the github-metadat api doesn't seem to give us access
   to the pull requests or commits and I haven't found a way around this yet.
2019-05-02 23:15:38 +02:00
Isaac Freund 26ed97b25e Remove prerelease builds from releases page 2019-05-02 23:09:51 +02:00
Isaac Freund 89b144fe69 Fix typo 2019-05-02 22:53:25 +02:00
Kevin Granade 7a090660f0 Added note about factions. 2019-05-01 21:04:25 -07:00
Kevin Granade 1b864a9a90 Moved overview sections to top 2019-05-01 20:31:45 -07:00
Kevin Granade f302db99fd Added more notes about vehicles 2019-05-01 20:09:19 -07:00
Kevin Granade aa71c25eee Add note about structures 2019-05-01 19:20:52 -07:00
Kevin Granade 8ddb42e3b7 add some notes about scavenging and crafting 2019-05-01 17:45:35 -07:00
Isaac Freund 3d3b660f35 Add download links to release list
- tweak formatting
 - add version tags
2019-04-21 18:53:40 +02:00
Isaac Freund b648d80e52 Merge pull request #29795 from KorGgenT/gh-pages-update
Gh pages update
2019-04-21 18:19:38 +02:00
Isaac Freund aa744bfc9d Use github-metadata api for links and release name 2019-04-21 18:17:24 +02:00
KorGgenT 157c2f3ebc update releases page
before it recommended experimental, which we do not necessarily want to encourage.
2019-04-21 11:20:56 -04:00
KorGgenT 0277830d44 Update .gitignore
add the .gitignore from master to this gitignore
2019-04-21 11:12:33 -04:00
Isaac Freund 4478b07e9c Add GitHub link to header
- correct github reference on contributions page
2019-04-18 02:12:14 +02:00
Isaac Freund 9fbd2684e8 Fix table of contents formatting 2019-04-18 01:35:51 +02:00
Isaac Freund ad69d1bbbe Clean up header
- Hardcode and reword links in header
 - Standardize urls
 - Fix minor formatting erro on contributions page
2019-04-18 01:28:51 +02:00
I-am-Erk c83d72ee59 Add Timeline (incomplete) 2019-04-04 21:34:06 -07:00
Isaac Freund 079f0e3cbc Standardize spelling and fix minor formatting errors 2019-04-05 05:02:26 +02:00
Kevin Granade 6d26f077ca Update header 2019-04-04 18:22:25 -07:00
Kevin Granade 884582f056 Drop the design doc draft 2019-04-04 18:19:20 -07:00
Kevin Granade dc01a8cb0b Added link to Android build. 2019-03-22 06:56:06 +00:00
Kevin Granade 843e548735 update wiki link
Fixes #28848
2019-03-20 21:53:17 -07:00
Kevin Granade 3f8605b480 rebuild pages 2019-03-08 08:00:43 +00:00
Kevin Granade fb5597ecc2 remove adsense stub. 2019-01-01 11:53:22 -06:00
Kevin Granade c0f9e865bd Add addsense resources 2018-12-29 20:49:36 -06:00
Kevin Granade c406d589a4 Revert head.html version to minima 2.0 2018-12-29 20:47:40 -06:00
Kevin Granade 2ca266e1f2 Import head.html from minima to override it 2018-12-29 20:38:32 -06:00
Kevin Granade 0ed563b102 Remove discord link.
Removing due to poor moderation practices.
2018-11-12 11:27:23 -08:00
Kevin Granade 114c25454b De-emphisize the sentence transitioning to releases. 2018-05-24 10:32:31 -07:00
Kevin Granade eedabd57c2 Add download links for latest builds to releases page.
This seems like a point of confusion, and encourages people to seek out 0.C instead of playing the latest experimental, which is a tragedy.
2018-05-24 10:30:43 -07:00
Kevin Granade 07b6f36115 Update links to use https where possible, including migrating urls to discourse site. (#23053) 2018-02-25 11:49:15 -08:00
Leland Clemmons f87bf17412 Move Linux downloads links to 64bit versions
We're not building 32 bit ones anymore
2018-01-31 20:07:47 -08:00
Kevin Granade 877552c3a4 Add FAQ entry for bountysource.
Addresses #22385
2018-01-03 11:58:19 -06:00
Kevin Granade 07fcf7d196 Point forums link at new discourse site. 2017-11-15 13:26:30 -08:00
Kevin Granade dff69f7269 Moved community resources higher on page. 2017-09-28 02:46:15 +00:00
Kevin Granade 9654131119 Create CNAME 2017-09-24 18:03:23 +00:00
Kevin Granade ff4619146e Add changes page. 2017-06-08 06:44:29 +00:00
Miguel Melon Otero 0e366475a3 Corriged typo (#20979) 2017-05-09 11:55:06 -07:00
Kevin Granade b420f16e3c Added link to game launcher. 2017-05-02 10:11:23 -07:00
Kevin Granade 2d50f82c1b Several minor changes to site main page.
Expanded System Requirements section.
Corrected outdated link text.
Added link to issue guidelines page.
2017-05-01 18:02:22 -07:00
Kevin Granade 7e99570f41 Import contribution guide from game source tree. 2017-04-28 06:11:33 +00:00
Kevin Granade 51f537e2fc First draft of GitHub Pages site for Ctaclysm: Dark Days Ahead. 2017-03-22 04:32:21 +00:00
Kevin Granade 6e566bb0dd Remove game content from pages branch. 2017-03-22 04:31:25 +00:00
256 changed files with 1523 additions and 149220 deletions
+202 -16
View File
@@ -1,30 +1,216 @@
cataclysm
data/*.template
save/
obj/
debug.log
logg.txt
bindist/
cataclysmdda-*
objwin/
cataclysm.exe
version.h
Cataclysm.exe
!src/chkjson
*.7z
*.a
*.d
*.dll
*.exe
*.o
*.tmp
*.zip
*.apk
/WinDepend/
/bindist/
/build/
/build-start-time
/cmake-build-debug/
/config/
/data/*.template
/data/mods/user-default-mods.json
/dep/
/doxygen_doc/html/*
/doxygen_doc/latex/*
/font/
/graveyard/
/memorial/
/mods/
/obj/
/objwin/
/save/
/src/version.h
/sound/
/templates/
/tools/format/json_formatter.cgi
CataclysmWin.cscope_file_list
CataclysmWin.depend
CataclysmWin.layout
cata_test
cata_test-tiles
cataclysm
cataclysm-tiles
cataclysm-vcpkg
cataclysmdda-*
chkjson*
debug.log
logg.txt
json_formatter
# Visual Studio files
*.code-workspace
*.exp
*.ilk
*.opensdf
*.pdb
*.lib
*.sdf
*.suo
*.user
Cataclysm.sdf
*.vcxproj.filters
.vs/
.vscode/
Debug*/
Release*/
*.opensdf
# Distribution script results
/msvc-full-features/distribution
# Visual Studio 2015
/msvc-full-features/*db
/msvc-full-features/ipch
lnk*.tmp
Cataclysm.exe.lastcodeanalysissucceeded
#Visual Studio 2017
/msvc-full-features/PredictedInputCache_Debug_x64.dat
#vcpkg
/msvc-full-features/vcpkg_installed
/msvc-object_creator/vcpkg_installed
# PVS Studio
/msvc-full-features/*PVS-Studio*
# Temporary and backup files
*.bak
*.cbTemp
*.sw?
*~
\#*
*.bak
gmon.out
# System Files
Thumbs.db
.DS_Store
._.DS_Store
Thumbs.db
cscope.*
tags
# Generated translation source
/lang/po/cataclysm-dda.pot
/lang/po/en.po
# Compiled binary translations
/lang/mo/
# Directory for translatable strings
/lang/json/*
!/lang/json/README
# Netbeans IDE folders
nbproject/
# Python runtime files
*.pyc
# vim files
*.vim
*.session
.ycm_extra_conf.py
.vimrc
# taskwarrior files
*.task*
# GitEye files
*.project
# vimdiff backup
*.orig
# OSX
Cataclysm.app
build-data/osx/AppIcon.icns
Cataclysm.dmg
# Jetbrains CLion
.idea/
# test executables and generated data
/tests/obj
/tests/cata_test
/tests/line_test
/tests/map_iterator_test
/tests/shadowcasting_test
/tests/data/jsionized_overmap.sav
/test_user_dir
monfactions.txt
# temporary files generated by tools/reduce_tests.sh
/list_of_tests
/list_of_tests.ok
/log
/multidelta.log
# static library used to link the test executable
cataclysm.a
# coredumps
*.core
# sublime-text workspace
*.sublime-workspace
# cppcheck
*cppcheck.xml
*.cppcheck
# clang tooling
compile_commands.json
.clangd
# IDA database
Cataclysm.i64
Cataclysm.id*
Cataclysm.til
Cataclysm.nam
# Snapcraft build directories
prime
snap
stage
# Snapcraft build file
*.snap
# Eclipse IDE
.cproject
.settings/
# Apple Xcode IDE
Xcode/
# gdb
.gdb_history
# Flatpak build artifacts
/.flatpak-builder/
/repo/
/build-dir/
# precompiled headers
/pch/pch.hpp.pch
/pch/main-pch.hpp.gch
/pch/main-pch.hpp.pch
/tests/pch/pch.hpp.pch
/tests/pch/tests-pch.hpp.gch
/tests/pch/tests-pch.hpp.pch
/tests/catch/catch.hpp.gch
/tests/catch/catch.hpp.pch
weather.output
# bundler local directories and files for jekyll site
/.bundle/
/_site/
/vendor/
.sass-cache
.jekyll-metadata
Gemfile.lock
-11
View File
@@ -1,11 +0,0 @@
language: cpp
compiler:
- gcc
script: make
notifications:
irc: "irc.newnet.net#Cataclysm-DDA"
irc: "irc.freenode.org#Cataclysm-DDA"
use_notice: true
skip_join: true
+1
View File
@@ -0,0 +1 @@
1e7d902c-02b7-4619-bf01-fe4b9c0ba8ca
+1
View File
@@ -0,0 +1 @@
cataclysmdda.org
-8
View File
@@ -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
-84
View File
@@ -1,84 +0,0 @@
Instructions for compiling on a Debian-based system. The package names here are
valid for Ubuntu 12.10 and may or may not work on your system.
Building instructions, below, always assume you are running them from the
Cataclysm:DDA source directory.
## Linux (native) ncurses builds ##
Dependencies:
* ncurses
* build essentials
```
sudo apt-get install libncurses5-dev build-essential
```
### Building ###
```
make
```
## Cross-compiling to linux 32-bit from linux 64-bit ##
Dependencies:
* 32-bit toolchain
* 32-bit ncurses
```
sudo apt-get install libc6-dev-i386 lib32stdc++-dev g++-multilib lib32ncurses5-dev
```
### Building ###
```
make NATIVE=linux32
```
## Cross-compile to Windows from Linux ##
Dependencies:
* [mxe](http://mxe.cc)
```
sudo apt-get install autoconf bison flex cmake git automake intltool libtool scons yasm
mkdir -p ~/src/mxe
git clone -b stable https://github.com/mxe/mxe.git ~/src/mxe
cd ~/src/mxe
make gcc
```
### Building ###
```
PATH="${PATH}:~/src/mxe/usr/bin"
make CROSS=i686-pc-mingw32-
```
## Linux (native) SDL builds ##
Dependencies:
* SDL
* SDL_ttf
* build essentials
```
sudo apt-get install libsdl1.2-dev libsdl-ttf2.0-dev build-essential
```
### Building ###
```
make TILES=1
```
## Cross-compile to Windows SDL from Linux ##
Dependencies:
* [mxe](http://mxe.cc)
```
sudo apt-get install autoconf bison flex cmake git automake intltool libtool scons yasm
mkdir -p ~/src/mxe
git clone -b stable https://github.com/mxe/mxe.git ~/src/mxe
cd ~/src/mxe
make sdl sdl_ttf
```
### Building ###
```
PATH="${PATH}:~/src/mxe/usr/bin"
make TILES=1 CROSS=i686-pc-mingw32-
```
-144
View File
@@ -1,144 +0,0 @@
# Contribute
Contributing to Cataclysm: Dark Days Ahead is easy - simply fork the repository here on GitHub, make your changes, and then send us a pull request.
## Guidelines
There are a couple of guidelines we suggest sticking to:
* Add this repository as an `upstream` remote.
* Keep your `master` branch clean. This means you can easily pull changes made to this repository into yours.
* Create a new branch for each new feature or set of related bug fixes.
* Never merge from your local branches into your `master` branch. Only update that by pulling from `upstream/master`.
## Code Style
Current policy is to only update code to the standard style when changing a substantial portion of it, but **please** do this in a seperate commit. Blocks of code can be passed through astyle to ensure that their formatting is correct:
astyle --style=allman --indent=spaces=4 --add-brackets --align-pointer=name
For example, from vi, set marks a and b around the block, then:
:'a,'b ! astyle --style=allman --indent=spaces=4 --add-brackets --align-pointer=name
## Example Workflow
#### Setup your environment
*(This only needs to be done once.)*
1. Fork this repository here on GitHub.
2. Clone your fork locally.
$ git clone https://github.com/YOUR_USERNAME/Cataclysm-DDA.git
# Clones your fork of the repository into the current directory in terminal
3. Add this repository as a remote.
$ cd Cataclysm-DDA
# Changes the active directory in the prompt to the newly cloned "Cataclysm-DDA" directory
$ git remote add -f upstream https://github.com/TheDarklingWolf/Cataclysm-DDA.git
# Assigns the original repository to a remote called "upstream"
#### Update your `master` branch
1. Make sure you have your `master` branch checked out.
$ git checkout master
2. Pull the changes from the `upstream/master` branch.
$ git pull --ff-only upstream master
# gets changes from "master" branch on the "upstream" remote
* Note: If this gives you an error, it means you have committed directly to your local `master` branch. [Click here for instructions on how to fix this issue](#why-does-git-pull---ff-only-result-in-an-error).
#### Make your changes
0. Update your `master` branch, if you haven't already.
1. For each new feature or bug fix, create a new branch.
$ git branch new_feature
# Creates a new branch called "new_feature"
$ git checkout new_feature
# Makes "new_feature" the active branch
2. Once you've committed some changes locally, you need to push them to your fork here on GitHub.
$ git push origin new_feature
# origin was automatically set to point to your fork when you cloned it
3. Once you're finished working on your branch, and have committed and pushed all your changes, submit a pull request from your `new_feature` branch to this repository's `master` branch.
* Note: any new commits to the `new_feature` branch on GitHub will automatically be included in the pull request, so make sure to only commit related changes to the same branch.
## Advanced Techniques
These guidelines aren't essential, but they can make keeping things in order much easier.
#### Using remote tracking branches
Remote tracking branches allow you to easily stay in touch with this repository's `master` branch, as they automatically know which remote branch to get changes from.
$ git branch -vv
* master xxxx [origin/master] ....
new_feature xxxx ....
Here you can see we have two branches; `master` which is tracking `origin/master`, and `new_feature` which isn't tracking any branch. In practice, what this means is that git won't know where to get changes from.
$ git checkout new_feature
Switched to branch 'new_feature'
$ git pull
There is no tracking information for the current branch.
Please specify which branch you want to merge with.
In order to easily pull changes from `upstream/master` into the `new_feature` branch, we can tell git which branch it should track. (You can even do this for your local master branch.)
$ git branch -u upstream/master new_feature
Branch new_feature set up to track remote branch master from upstream.
$ git pull
Updating xxxx..xxxx
....
You can also set the tracking information at the same time as creating the branch.
$ git branch new_feature_2 --track upstream/master
Branch new_feature_2 set up to track remote branch master from upstream.
* Note: Although this makes it easier to pull from `upstream/master`, it doesn't change anything with regards to pushing. `git push` fails because you don't have permission to push to `upstream/master`.
$ git push
error: The requested URL returned error: 403 while accessing https://github.com/TheDarklingWolf/Cataclysm-DDA.git
fatal: HTTP request failed
$ git push origin
....
To https://github.com/YOUR_USERNAME/Cataclysm-DDA.git
xxxx..xxxx new_feature -> new_feature
## Frequently Asked Questions
####Why does `git pull --ff-only` result in an error?
If `git pull --ff-only` shows an error, it means that you've committed directly to your local `master` branch. To fix this, we create a new branch with these commits, find the point at which we diverged from `upstream/master`, and then reset `master` to that point.
$ git pull --ff-only upstream master
From https://github.com/TheDarklingWolf/Cataclysm-DDA
* branch master -> FETCH_HEAD
fatal: Not possible to fast-forward, aborting.
$ git branch new_branch master # mark the current commit with a tmp branch
$ git merge-base master upstream/master
cc31d0... # the last commit before we committed directly to master
$ git reset --hard cc31d0....
HEAD is now at cc31d0... ...
Now that `master` has been cleaned up, we can easily pull from `upstream/master`, and then continue working on `new_branch`.
$ git pull --ff-only upstream master
# gets changes from the "upstream" remote for the matching branch, in this case "master"
$ git checkout new_branch
-227
View File
@@ -1,227 +0,0 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<CodeBlocks_project_file>
<FileVersion major="1" minor="6" />
<Project>
<Option title="Cataclysm" />
<Option pch_mode="2" />
<Option compiler="gcc" />
<Build>
<Target title="Release">
<Option output="Cataclysm" prefix_auto="1" extension_auto="1" />
<Option object_output="obj/Release/" />
<Option type="0" />
<Option compiler="gcc" />
<Compiler>
<Add option="-Os" />
</Compiler>
<Linker>
<Add option="-Wl,-stack,12000000,-subsystem,windows" />
<Add option="-static -lgdi32" />
</Linker>
</Target>
<Target title="Debug">
<Option output="Cataclysm" prefix_auto="1" extension_auto="1" />
<Option object_output="obj/Debug/" />
<Option type="0" />
<Option compiler="gcc" />
<Compiler>
<Add option="-pg" />
<Add option="-g" />
</Compiler>
<Linker>
<Add option="-pg -lgmon" />
<Add option="-Wl,-stack,12000000,-subsystem,windows" />
<Add option="-static -lgdi32" />
</Linker>
</Target>
</Build>
<Unit filename="action.cpp" />
<Unit filename="action.h" />
<Unit filename="addiction.cpp" />
<Unit filename="addiction.h" />
<Unit filename="artifact.cpp" />
<Unit filename="artifact.h" />
<Unit filename="artifactdata.h" />
<Unit filename="basecamp.cpp" />
<Unit filename="basecamp.h" />
<Unit filename="bionics.cpp" />
<Unit filename="bionics.h" />
<Unit filename="bodypart.cpp" />
<Unit filename="bodypart.h" />
<Unit filename="building_generation.cpp" />
<Unit filename="building_generation.h" />
<Unit filename="calendar.cpp" />
<Unit filename="calendar.h" />
<Unit filename="catacurse.h" />
<Unit filename="catajson.cpp" />
<Unit filename="catajson.h" />
<Unit filename="color.cpp" />
<Unit filename="color.h" />
<Unit filename="computer.cpp" />
<Unit filename="computer.h" />
<Unit filename="construction.cpp" />
<Unit filename="construction.h" />
<Unit filename="crafting.cpp" />
<Unit filename="crafting.h" />
<Unit filename="cursesdef.h" />
<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="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="game.cpp" />
<Unit filename="game.h" />
<Unit filename="gamemode.cpp" />
<Unit filename="gamemode.h" />
<Unit filename="graffiti.cpp" />
<Unit filename="graffiti.h" />
<Unit filename="help.cpp" />
<Unit filename="helper.cpp" />
<Unit filename="helper.h" />
<Unit filename="iexamine.cpp" />
<Unit filename="iexamine.h" />
<Unit filename="input.cpp" />
<Unit filename="input.h" />
<Unit filename="inventory.cpp" />
<Unit filename="inventory.h" />
<Unit filename="inventory_ui.cpp" />
<Unit filename="item.cpp" />
<Unit filename="item.h" />
<Unit filename="item_factory.cpp" />
<Unit filename="item_factory.h" />
<Unit filename="item_group.cpp" />
<Unit filename="item_group.h" />
<Unit filename="itype.h" />
<Unit filename="itypedef.cpp" />
<Unit filename="iuse.cpp" />
<Unit filename="iuse.h" />
<Unit filename="keypress.cpp" />
<Unit filename="keypress.h" />
<Unit filename="lightmap.cpp" />
<Unit filename="lightmap.h" />
<Unit filename="line.cpp" />
<Unit filename="line.h" />
<Unit filename="main.cpp" />
<Unit filename="main_menu.cpp" />
<Unit filename="map.cpp" />
<Unit filename="map.h" />
<Unit filename="mapbuffer.cpp" />
<Unit filename="mapbuffer.h" />
<Unit filename="mapdata.cpp" />
<Unit filename="mapdata.h" />
<Unit filename="mapgen.cpp" />
<Unit filename="mapgenformat.cpp" />
<Unit filename="mapgenformat.h" />
<Unit filename="mapitems.h" />
<Unit filename="mapitemsdef.cpp" />
<Unit filename="material.cpp" />
<Unit filename="material.h" />
<Unit filename="melee.cpp" />
<Unit filename="mission.cpp" />
<Unit filename="mission.h" />
<Unit filename="mission_end.cpp" />
<Unit filename="mission_fail.cpp" />
<Unit filename="mission_place.cpp" />
<Unit filename="mission_start.cpp" />
<Unit filename="missiondef.cpp" />
<Unit filename="monattack.cpp" />
<Unit filename="monattack.h" />
<Unit filename="mondeath.cpp" />
<Unit filename="mondeath.h" />
<Unit filename="mongroup.h" />
<Unit filename="mongroupdef.cpp" />
<Unit filename="monitemsdef.cpp" />
<Unit filename="monmove.cpp" />
<Unit filename="monster.cpp" />
<Unit filename="monster.h" />
<Unit filename="morale.h" />
<Unit filename="moraledata.h" />
<Unit filename="mtype.h" />
<Unit filename="mtypedef.cpp" />
<Unit filename="mutation.cpp" />
<Unit filename="mutation.h" />
<Unit filename="mutation_data.cpp" />
<Unit filename="name.cpp" />
<Unit filename="name.h" />
<Unit filename="newcharacter.cpp" />
<Unit filename="npc.cpp" />
<Unit filename="npc.h" />
<Unit filename="npcmove.cpp" />
<Unit filename="npctalk.cpp" />
<Unit filename="omdata.h" />
<Unit filename="options.cpp" />
<Unit filename="options.h" />
<Unit filename="output.cpp" />
<Unit filename="output.h" />
<Unit filename="overmap.cpp" />
<Unit filename="overmap.h" />
<Unit filename="overmapbuffer.cpp" />
<Unit filename="overmapbuffer.h" />
<Unit filename="picojson.h" />
<Unit filename="player.cpp" />
<Unit filename="player.h" />
<Unit filename="pldata.h" />
<Unit filename="posix_time.cpp" />
<Unit filename="posix_time.h" />
<Unit filename="profession.cpp" />
<Unit filename="profession.h" />
<Unit filename="ranged.cpp" />
<Unit filename="resource.rc">
<Option compilerVar="WINDRES" />
</Unit>
<Unit filename="rng.cpp" />
<Unit filename="rng.h" />
<Unit filename="settlement.cpp" />
<Unit filename="settlement.h" />
<Unit filename="setvector.cpp" />
<Unit filename="setvector.h" />
<Unit filename="skill.cpp" />
<Unit filename="skill.h" />
<Unit filename="text_snippets.cpp" />
<Unit filename="text_snippets.h" />
<Unit filename="tileray.cpp" />
<Unit filename="tileray.h" />
<Unit filename="trap.h" />
<Unit filename="trapdef.cpp" />
<Unit filename="trapfunc.cpp" />
<Unit filename="tutorial.cpp" />
<Unit filename="tutorial.h" />
<Unit filename="ui.cpp" />
<Unit filename="ui.h" />
<Unit filename="veh_interact.cpp" />
<Unit filename="veh_interact.h" />
<Unit filename="veh_type.h" />
<Unit filename="veh_typedef.cpp" />
<Unit filename="vehicle.cpp" />
<Unit filename="vehicle.h" />
<Unit filename="version.cpp" />
<Unit filename="version.h" />
<Unit filename="weather.cpp" />
<Unit filename="weather.h" />
<Unit filename="weather_data.cpp" />
<Unit filename="wincurse.cpp" />
<Unit filename="wish.cpp" />
<Extensions>
<code_completion />
<debugger />
<envvars />
<DoxyBlocks>
<comment_style block="0" line="0" />
<doxyfile_project />
<doxyfile_build />
<doxyfile_warnings />
<doxyfile_output />
<doxyfile_dot />
<general />
</DoxyBlocks>
</Extensions>
</Project>
</CodeBlocks_project_file>
-133
View File
@@ -1,133 +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).
1.5 Acid resistance
This determines how items react to acid fields. Item acid resistances are a weighted
average of the materials acid resistance (see item::acid_resist).
An item acid resistance of zero means it will get corroded every turn
An item acid resistance above zero means it has a chance of getting corroded every turn
An item acid resistance above 9 means completely acidproof
Acid resistance values are in materials.json, and defined as such:
0 - zero resistance to acid (metals)
1 - partly resistant to acid
2 - very resistant to acid
3 - complete acid resistance
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.
+28
View File
@@ -0,0 +1,28 @@
source "https://rubygems.org"
ruby RUBY_VERSION
# Hello! This is where you manage which Jekyll version is used to run.
# When you want to use a different version, change it below, save the
# file and run `bundle install`. Run Jekyll with `bundle exec`, like so:
#
# bundle exec jekyll serve
#
# This will help ensure the proper Jekyll version is running.
# Happy Jekylling!
# gem "jekyll", "3.4.2"
# This is the default theme for new Jekyll sites. You may change this to anything you like.
gem "minima", "~> 2.0"
# If you want to use GitHub Pages, remove the "gem "jekyll"" above and
# uncomment the line below. To upgrade, run `bundle update github-pages`.
gem "github-pages", group: :jekyll_plugins
# If you have any plugins, put them here!
group :jekyll_plugins do
gem "jekyll-feed", "~> 0.6"
end
# Windows does not include zoneinfo files, so bundle the tzinfo-data gem
gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby]
-1
View File
@@ -1 +0,0 @@
Cataclysm is licensed under the Creative Commons Attribution-ShareAlike 3.0 Unported License. To view a copy of this license, visit http://creativecommons.org/licenses/by-sa/3.0/ or send a letter to Creative Commons, 444 Castro Street, Suite 900, Mountain View, California, 94041, USA.
-232
View File
@@ -1,232 +0,0 @@
# Platforms:
# Linux native
# (don't need to do anything)
# Linux 64-bit
# make NATIVE=linux64
# Linux 32-bit
# make NATIVE=linux32
# Linux cross-compile to Win32
# make CROSS=i686-pc-mingw32-
# or make CROSS=i586-mingw32msvc-
# or whichever prefix your crosscompiler uses
# as long as its name contains mingw32
# Win32
# Run: make NATIVE=win32
# OS X
# Run: make NATIVE=osx
# Build types:
# Debug (no optimizations)
# Default
# Release (turn on optimizations)
# make RELEASE=1
# Tiles (uses SDL rather than ncurses)
# make TILES=1
# comment these to toggle them as one sees fit.
# WARNINGS will spam hundreds of warnings, mostly safe, if turned on
# DEBUG is best turned on if you plan to debug in gdb -- please do!
# PROFILE is for use with gprof or a similar program -- don't bother generally
WARNINGS = -Wall -Wextra -Wno-switch -Wno-sign-compare -Wno-missing-braces -Wno-unused-parameter -Wno-psabi
# Uncomment below to disable warnings
#WARNINGS = -w
DEBUG = -g
#PROFILE = -pg
#OTHERS = -O3
#DEFINES = -DNDEBUG
# Disable debug. Comment this out to get logging.
#DEFINES = -DENABLE_LOGGING
# Limit debug to level. Comment out all for all levels.
#DEFINES += -DDEBUG_INFO
#DEFINES += -DDEBUG_WARNING
#DEFINES += -DDEBUG_ERROR
#DEFINES += -DDEBUG_PEDANTIC_INFO
# Limit debug to section. Comment out all for all levels.
#DEFINES += -DDEBUG_ENABLE_MAIN
#DEFINES += -DDEBUG_ENABLE_MAP
#DEFINES += -DDEBUG_ENABLE_MAP_GEN
#DEFINES += -DDEBUG_ENABLE_GAME
VERSION = 0.5
TARGET = cataclysm
TILESTARGET = cataclysm-tiles
W32TILESTARGET = cataclysm-tiles.exe
W32TARGET = cataclysm.exe
BINDIST_DIR = bindist
BUILD_DIR = $(CURDIR)
# tiles object directories are because gcc gets confused
# when preprocessor defines change, but the source doesn't
ODIR = obj
ODIRTILES = obj/tiles
W32ODIR = objwin
W32ODIRTILES = objwin/tiles
DDIR = .deps
OS = $(shell uname -o)
CXX = $(CROSS)g++
LD = $(CROSS)g++
# enable optimizations. slow to build
ifdef RELEASE
OTHERS += -O3
DEBUG =
endif
CXXFLAGS += $(WARNINGS) $(DEBUG) $(PROFILE) $(OTHERS) -MMD
BINDIST_EXTRAS = README data
BINDIST = cataclysmdda-$(VERSION).tar.gz
W32BINDIST = cataclysmdda-$(VERSION).zip
BINDIST_CMD = tar --transform=s@^$(BINDIST_DIR)@cataclysmdda-$(VERSION)@ -czvf $(BINDIST) $(BINDIST_DIR)
W32BINDIST_CMD = cd $(BINDIST_DIR) && zip -r ../$(W32BINDIST) * && cd $(BUILD_DIR)
# is this section even being used anymore?
# SOMEBODY PLEASE CHECK
#ifeq ($(OS), Msys)
# LDFLAGS = -static -lpdcurses
#else
# LDFLAGS += -lncurses
#endif
# Check if called without a special build target
ifeq ($(NATIVE),)
ifeq ($(CROSS),)
TARGETSYSTEM=LINUX
endif
endif
# Linux 64-bit
ifeq ($(NATIVE), linux64)
CXXFLAGS += -m64
TARGETSYSTEM=LINUX
else
# Linux 32-bit
ifeq ($(NATIVE), linux32)
CXXFLAGS += -m32
TARGETSYSTEM=LINUX
endif
endif
# OSX
ifeq ($(NATIVE), osx)
CXXFLAGS += -mmacosx-version-min=10.6
TARGETSYSTEM=LINUX
endif
# Win32 (mingw32?)
ifeq ($(NATIVE), win32)
TARGETSYSTEM=WINDOWS
endif
# MXE cross-compile to win32
ifneq (,$(findstring mingw32,$(CROSS)))
DEFINES += -DCROSS_LINUX
TARGETSYSTEM=WINDOWS
endif
# Global settings for Windows targets
ifeq ($(TARGETSYSTEM),WINDOWS)
TARGET = $(W32TARGET)
BINDIST = $(W32BINDIST)
BINDIST_CMD = $(W32BINDIST_CMD)
ODIR = $(W32ODIR)
LDFLAGS += -static -lgdi32
W32FLAGS += -Wl,-stack,12000000,-subsystem,windows
endif
ifdef TILES
LDFLAGS += -lSDL -lSDL_ttf -lfreetype -lz
DEFINES += -DTILES
ifeq ($(TARGETSYSTEM),WINDOWS)
LDFLAGS += -lgdi32 -ldxguid -lwinmm
TARGET = $(W32TILESTARGET)
ODIR = $(W32ODIRTILES)
else
TARGET = $(TILESTARGET)
ODIR = $(ODIRTILES)
endif
else
# Link to ncurses if we're using a non-tiles, Linux build
ifeq ($(TARGETSYSTEM),LINUX)
LDFLAGS += -lncurses
endif
endif
ifeq ($(TARGETSYSTEM),LINUX)
BINDIST_EXTRAS += cataclysm-launcher
endif
SOURCES = $(wildcard *.cpp)
HEADERS = $(wildcard *.h)
_OBJS = $(SOURCES:.cpp=.o)
OBJS = $(patsubst %,$(ODIR)/%,$(_OBJS))
all: version $(TARGET)
@
$(TARGET): $(ODIR) $(DDIR) $(OBJS)
$(LD) $(W32FLAGS) -o $(TARGET) $(DEFINES) $(CXXFLAGS) \
$(OBJS) $(LDFLAGS)
.PHONY: version
version:
@( VERSION_STRING=$(VERSION) ; \
[ -e ".git" ] && GITVERSION=$$( git describe --tags --always --dirty --match "[0-9]*.[0-9]*" ) && VERSION_STRING=$$GITVERSION ; \
[ -e "version.h" ] && OLDVERSION=$$(grep VERSION version.h|cut -d '"' -f2) ; \
if [ "x$$VERSION_STRING" != "x$$OLDVERSION" ]; then echo "#define VERSION \"$$VERSION_STRING\"" | tee version.h ; fi \
)
$(ODIR):
mkdir -p $(ODIR)
$(DDIR):
@mkdir $(DDIR)
$(ODIR)/%.o: %.cpp
$(CXX) $(DEFINES) $(CXXFLAGS) -c $< -o $@
version.cpp: version
clean: clean-tests
rm -rf $(TARGET) $(W32TARGET) $(ODIR) $(W32ODIR) $(W32BINDIST) \
$(BINDIST)
rm -rf $(BINDIST_DIR)
rm -f version.h
bindist: $(BINDIST)
$(BINDIST): $(TARGET) $(BINDIST_EXTRAS)
rm -rf $(BINDIST_DIR)
mkdir -p $(BINDIST_DIR)
cp -R $(TARGET) $(BINDIST_EXTRAS) $(BINDIST_DIR)
$(BINDIST_CMD)
export ODIR _OBJS LDFLAGS CXX W32FLAGS DEFINES CXXFLAGS
ctags: $(SOURCES) $(HEADERS)
ctags $(SOURCES) $(HEADERS)
etags: $(SOURCES) $(HEADERS)
etags $(SOURCES) $(HEADERS)
tests: $(ODIR) $(DDIR) $(OBJS)
$(MAKE) -C tests
check: tests
$(MAKE) -C tests check
clean-tests:
$(MAKE) -C tests clean
.PHONY: tests check ctags etags clean-tests
-include $(SOURCES:%.cpp=$(DEPDIR)/%.P)
-include ${OBJS:.o=.d}
-60
View File
@@ -1,60 +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++
WNDRES = windres
LINKER = i486-mingw32-ld
LINKERFLAGS = -Wl,-stack,12000000,-subsystem,windows
CFLAGS = $(WARNINGS) $(DEBUG) $(PROFILE) $(OTHERS)
LDFLAGS = -static -lgdi32
RFLAGS = -J rc -O coff
#ifeq ($(OS), Msys)
#LDFLAGS = -static -lpdcurses
#else
#LDFLAGS = -lncurses
#endif
SOURCES = $(wildcard *.cpp)
_OBJS = $(SOURCES:.cpp=.o)
RSRC = $(wildcard *.rc)
_OBJS += $(RSRC:.rc=.res)
OBJS = $(patsubst %,$(ODIR)/%,$(_OBJS))
all: $(TARGET)
@
$(TARGET): $(ODIR) $(DDIR) $(OBJS)
$(CXX) $(LINKERFLAGS) -o $(TARGET) $(CFLAGS) $(OBJS) $(LDFLAGS) -DMINGW
$(ODIR):
mkdir $(ODIR)
$(DDIR):
@mkdir $(DDIR)
$(ODIR)/%.o: %.cpp
$(CXX) $(CFLAGS) -c $< -o $@
$(ODIR)/%.res: %.rc
$(WNDRES) $(RFLAGS) $< -o $@
clean:
rm -f $(TARGET) $(ODIR)/*.o
-include $(SOURCES:%.cpp=$(DEPDIR)/%.P)
-56
View File
@@ -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!
-42
View File
@@ -1,42 +0,0 @@
# 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...
## Download
The following binary releases are available:
* [Windows Executable](http://www.cataclysmdda.com/Downloads/CataDDA0.4.zip)
* [OS X 10.6+ Executable](http://www.cataclysm.glyphgryph.com/Downloads/CataDDA0.4.tar.gz)
The source can either be downloaded as [an archive](https://github.com/TheDarklingWolf/Cataclysm-DDA/archive/master.zip), or you can clone it from [our GitHub repository](https://github.com/TheDarklingWolf/Cataclysm-DDA/).
## Compile
The latest instructions on how to compile can be found on [our wiki](http://www.wiki.cataclysmdda.com/index.php?title=How_to_compile).
## Contribute
Please see [CONTRIBUTING.md](https://github.com/TheDarklingWolf/Cataclysm-DDA/blob/master/CONTRIBUTING.md) for details.
## Frequently Asked Questions
#### Is there a tutorial?
Yes, you can find the tutorial in the **Special** menu at the main menu. You can also access documentation in-game via the **?** key.
#### How can I change the key bindings?
Press the `?` key, followed by the `1` key to see the full list of key commands. Press the `+` key to add a key binding, select which action with the corresponding letter key `a-w`, and then the key you wish to assign to that action.
#### How can I start a new world?
Simply delete the **save** folder, which can be found in the same directory as the executable.
#### 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`.
-28
View File
@@ -1,28 +0,0 @@
The undersigned release all their contributions to the Cataclysm project under the Creative Commons Attribution-ShareAlike 3.0 Unported License.
Kevin Granade <kevin.granade@gmail.com>
Matthew Moffatt <TheDarklingWolf@gmail.com>
origamiwolf <origamiwolf@gmail.com>
Frank Huard <veryinky@gmail.com>
daftfad <daftfjord@gmail.com>
ZwodahS <ericnjf@gmail.com>
Williham "Wito" Totland <williham.totland@gmail.com>
Zach Morgan <zpmorgan@gmail.com>
Livingstone <minexal@gmail.com>
Ethan "Soron" Kaminski <ethan.kaminski@gmail.com>
Soyweiser <soyweiser@gmail.com>
Jason Gilbert <0jason.gilbert@gmail.com>
Charlie Nolan (FunnyMan3595) <funnyman3595@gmail.com>
uzername (some_name) <ivanpost777@gmail.com>
Christian Buskirk (i2amroy) <i2amroy@gmail.com>
Kevin McKayven (GlyphGryph) <glyphgryph@gmail.com>
Ozone <satori.jj@gmail.com>
Herbert Jones <jones.herbert@gmail.com>
Justin "MacrosBlackD" Drury <macrosblackd@gmail.com>
AtomicDryad <fnord@fnord> / <atomicdryad@gmail.com>
Izicata
Voker57 <voker57@gmail.com>
Tommy <yobbobanana@gmx.com>
teh-sam
Alex Casey (Tamunshin) <tamunshin@hotmail.com>
Stevensonz <money3030@yahoo.com.>
-6
View File
@@ -1,6 +0,0 @@
There's a slowly growing test suite in tests/. To build install libtap
from http://www.shlomifish.org/open-source/projects/libtap/ *, then build
the "check" target. e.g. "make check". This builds and runs any tests.
*Unpack the tarball with "gunzip tap-1.03.tar.gz && tar xf tap-1.03.tar"
instead of the usual tar command.
+35
View File
@@ -0,0 +1,35 @@
# Welcome to Jekyll!
#
# This config file is meant for settings that affect your whole blog, values
# which you are expected to set up once and rarely edit after that. If you find
# yourself editing this file very often, consider using Jekyll's data files
# feature for the data you need to update frequently.
#
# For technical reasons, this file is *NOT* reloaded automatically when you use
# 'bundle exec jekyll serve'. If you change this file, please restart the server process.
# Site settings
# These are used to personalize your new site. If you look in the HTML files,
# you will see them accessed via {{ site.title }}, {{ site.email }}, and so on.
# You can create any custom variable you would like, and they will be accessible
# in the templates via {{ site.myvariable }}.
title: "Cataclysm: Dark Days Ahead"
email: kevin.granade@gmail.com
description: > # this means to ignore newlines until "baseurl:"
Official homepage of Cataclysm: Dark Days Ahead open source turn-based survival RPG development project.
Hosts downloads of game and links to community sites and resources.
baseurl: "" # the subpath of your site, e.g. /blog
url: "https://cataclysmdda.org" # the base hostname & protocol for your site, e.g. http://example.com
repository: CleverRaven/Cataclysm-DDA
# Build settings
markdown: kramdown
theme: minima
plugins:
- jekyll-feed
exclude:
- Gemfile
- Gemfile.lock
- vendor
include:
- .well-known
+18
View File
@@ -0,0 +1,18 @@
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>{% if page.title %}{{ page.title | escape }}{% else %}{{ site.title | escape }}{% endif %}</title>
<meta name="description" content="{{ page.excerpt | default: site.description | strip_html | normalize_whitespace | truncate: 160 | escape }}">
<link rel="stylesheet" href="{{ "/assets/main.css" | relative_url }}">
<link rel="canonical" href="{{ page.url | replace:'index.html','' | absolute_url }}">
<link rel="alternate" type="application/rss+xml" title="{{ site.title | escape }}" href="{{ "/feed.xml" | relative_url }}">
<link rel="me" href="https://mastodon.gamedev.place/@kevingranade">
<link rel="me" href="https://social.treehouse.systems/@itsmaya">
{% if jekyll.environment == 'production' and site.google_analytics %}
{% include google-analytics.html %}
{% endif %}
</head>
+31
View File
@@ -0,0 +1,31 @@
<header class="site-header">
<div class="wrapper">
{%- assign default_paths = site.pages | map: "path" -%}
{%- assign page_paths = site.header_pages | default: default_paths -%}
{%- assign titles_size = site.pages | map: 'title' | join: '' | size -%}
<a class="site-title" rel="author" href="{{ "/" | relative_url }}">{{ site.title | escape }}</a>
{%- if titles_size > 0 -%}
<nav class="site-nav">
<input type="checkbox" id="nav-trigger" class="nav-trigger" />
<label for="nav-trigger">
<span class="menu-icon">
<svg viewBox="0 0 18 15" width="18px" height="15px">
<path d="M18,1.484c0,0.82-0.665,1.484-1.484,1.484H1.484C0.665,2.969,0,2.304,0,1.484l0,0C0,0.665,0.665,0,1.484,0 h15.032C17.335,0,18,0.665,18,1.484L18,1.484z M18,7.516C18,8.335,17.335,9,16.516,9H1.484C0.665,9,0,8.335,0,7.516l0,0 c0-0.82,0.665-1.484,1.484-1.484h15.032C17.335,6.031,18,6.696,18,7.516L18,7.516z M18,13.516C18,14.335,17.335,15,16.516,15H1.484 C0.665,15,0,14.335,0,13.516l0,0c0-0.82,0.665-1.483,1.484-1.483h15.032C17.335,12.031,18,12.695,18,13.516L18,13.516z"/>
</svg>
</span>
</label>
<div class="trigger">
<a class="page-link" href="/">Home</a>
<a class="page-link" href="/releases/">Releases</a>
<!--<a class="page-link" href="/changes/">Changes</a>-->
<a class="page-link" href="/contributions/">Contribution Guidelines</a>
<a class="page-link" href="/donations/">Donations</a>
<a class="page-link" href="https://github.com/CleverRaven/Cataclysm-DDA/">GitHub</a>
</div>
</nav>
{%- endif -%}
</div>
</header>
-463
View File
@@ -1,463 +0,0 @@
#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
std::ofstream fout;
fout.open("data/keymap.txt");
fout << default_keymap_txt();
fout.close();
fin.open("data/keymap.txt");
}
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);
}
// 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;
keymap_txt >> id;
if (id == "")
getline(keymap_txt, id); // Empty line, chomp it
else if (id[0] != '#') {
action_id act = look_up_action(id);
if (act == ACTION_NULL)
debugmsg("\
Warning! data/keymap.txt contains an unknown action, \"%s\"\n\
Fix data/keymap.txt at your next chance!", id.c_str());
else {
while (!keymap_txt.eof()) {
char ch;
keymap_txt >> std::noskipws >> ch >> std::skipws;
if (ch == '\n') {
break;
} else if (ch != ' ' || keymap_txt.peek() == '\n') {
if (kmap.find(ch) != kmap.end()) {
debugmsg("\
Warning! '%c' assigned twice in the keymap!\n\
%s is being ignored.\n\
Fix data/keymap.txt at your next chance!", ch, id.c_str());
} else {
kmap[ ch ] = act;
}
}
}
}
} else {
getline(keymap_txt, id); // Clear the whole line
}
}
}
void game::save_keymap()
{
std::ofstream fout;
fout.open("data/keymap.txt");
if (!fout) { // It doesn't exist
debugmsg("Can't open data/keymap.txt.");
fout.close();
return;
}
std::map<char, action_id>::iterator it;
for (it = keymap.begin(); it != keymap.end(); it++)
fout << action_ident( (*it).second ) << " " << (*it).first << std::endl;
fout.close();
}
std::vector<char> game::keys_bound_to(action_id act)
{
std::vector<char> ret;
std::map<char, action_id>::iterator it;
for (it = keymap.begin(); it != keymap.end(); it++) {
if ( (*it).second == act )
ret.push_back( (*it).first );
}
return ret;
}
void game::clear_bindings(action_id act)
{
std::map<char, action_id>::iterator it;
for (it = keymap.begin(); it != keymap.end(); it++) {
if ( (*it).second == act ) {
keymap.erase(it);
it = keymap.begin();
}
}
}
std::string action_ident(action_id act)
{
switch (act) {
case ACTION_PAUSE:
return "pause";
case ACTION_MOVE_N:
return "move_n";
case ACTION_MOVE_NE:
return "move_ne";
case ACTION_MOVE_E:
return "move_e";
case ACTION_MOVE_SE:
return "move_se";
case ACTION_MOVE_S:
return "move_s";
case ACTION_MOVE_SW:
return "move_sw";
case ACTION_MOVE_W:
return "move_w";
case ACTION_MOVE_NW:
return "move_nw";
case ACTION_MOVE_DOWN:
return "move_down";
case ACTION_MOVE_UP:
return "move_up";
case ACTION_CENTER:
return "center";
case ACTION_SHIFT_N:
return "shift_n";
case ACTION_SHIFT_NE:
return "shift_ne";
case ACTION_SHIFT_E:
return "shift_e";
case ACTION_SHIFT_SE:
return "shift_se";
case ACTION_SHIFT_S:
return "shift_s";
case ACTION_SHIFT_SW:
return "shift_sw";
case ACTION_SHIFT_W:
return "shift_w";
case ACTION_SHIFT_NW:
return "shift_nw";
case ACTION_OPEN:
return "open";
case ACTION_CLOSE:
return "close";
case ACTION_SMASH:
return "smash";
case ACTION_EXAMINE:
return "examine";
case ACTION_ADVANCEDINV:
return "advinv";
case ACTION_PICKUP:
return "pickup";
case ACTION_BUTCHER:
return "butcher";
case ACTION_CHAT:
return "chat";
case ACTION_LOOK:
return "look";
case ACTION_PEEK:
return "peek";
case ACTION_LIST_ITEMS:
return "listitems";
case ACTION_INVENTORY:
return "inventory";
case ACTION_COMPARE:
return "compare";
case ACTION_ORGANIZE:
return "organize";
case ACTION_USE:
return "apply";
case ACTION_USE_WIELDED:
return "apply_wielded";
case ACTION_WEAR:
return "wear";
case ACTION_TAKE_OFF:
return "take_off";
case ACTION_EAT:
return "eat";
case ACTION_READ:
return "read";
case ACTION_WIELD:
return "wield";
case ACTION_PICK_STYLE:
return "pick_style";
case ACTION_RELOAD:
return "reload";
case ACTION_UNLOAD:
return "unload";
case ACTION_THROW:
return "throw";
case ACTION_FIRE:
return "fire";
case ACTION_FIRE_BURST:
return "fire_burst";
case ACTION_SELECT_FIRE_MODE:
return "select_fire_mode";
case ACTION_DROP:
return "drop";
case ACTION_DIR_DROP:
return "drop_adj";
case ACTION_BIONICS:
return "bionics";
case ACTION_SORT_ARMOR:
return "sort_armor";
case ACTION_WAIT:
return "wait";
case ACTION_CRAFT:
return "craft";
case ACTION_RECRAFT:
return "recraft";
case ACTION_LONGCRAFT:
return "long_craft";
case ACTION_CONSTRUCT:
return "construct";
case ACTION_DISASSEMBLE:
return "disassemble";
case ACTION_SLEEP:
return "sleep";
case ACTION_CONTROL_VEHICLE:
return "control_vehicle";
case ACTION_TOGGLE_SAFEMODE:
return "safemode";
case ACTION_TOGGLE_AUTOSAFE:
return "autosafe";
case ACTION_IGNORE_ENEMY:
return "ignore_enemy";
case ACTION_SAVE:
return "save";
case ACTION_QUIT:
return "quit";
case ACTION_PL_INFO:
return "player_data";
case ACTION_MAP:
return "map";
case ACTION_MISSIONS:
return "missions";
case ACTION_FACTIONS:
return "factions";
case ACTION_KILLS:
return "kills";
case ACTION_MORALE:
return "morale";
case ACTION_MESSAGES:
return "messages";
case ACTION_HELP:
return "help";
case ACTION_DEBUG:
return "debug";
case ACTION_DISPLAY_SCENT:
return "debug_scent";
case ACTION_TOGGLE_DEBUGMON:
return "debug_mode";
case ACTION_NULL:
return "null";
}
return "unknown";
}
action_id look_up_action(std::string ident)
{
for (int i = 0; i < NUM_ACTIONS; i++)
{
if (action_ident( action_id(i) ) == ident)
{
return action_id(i);
}
}
return ACTION_NULL;
}
std::string action_name(action_id act)
{
switch (act)
{
case ACTION_PAUSE:
return "Pause";
case ACTION_MOVE_N:
return "Move North";
case ACTION_MOVE_NE:
return "Move Northeast";
case ACTION_MOVE_E:
return "Move East";
case ACTION_MOVE_SE:
return "Move Southeast";
case ACTION_MOVE_S:
return "Move South";
case ACTION_MOVE_SW:
return "Move Southwest";
case ACTION_MOVE_W:
return "Move West";
case ACTION_MOVE_NW:
return "Move Northwest";
case ACTION_MOVE_DOWN:
return "Descend Stairs";
case ACTION_MOVE_UP:
return "Ascend Stairs";
case ACTION_CENTER:
return "Center View";
case ACTION_SHIFT_N:
return "Move View North";
case ACTION_SHIFT_NE:
return "Move View Northeast";
case ACTION_SHIFT_E:
return "Move View East";
case ACTION_SHIFT_SE:
return "Move View Southeast";
case ACTION_SHIFT_S:
return "Move View South";
case ACTION_SHIFT_SW:
return "Move View Southwest";
case ACTION_SHIFT_W:
return "Move View West";
case ACTION_SHIFT_NW:
return "Move View Northwest";
case ACTION_OPEN:
return "Open Door";
case ACTION_CLOSE:
return "Close Door";
case ACTION_SMASH:
return "Smash Nearby Terrain";
case ACTION_EXAMINE:
return "Examine Nearby Terrain";
case ACTION_PICKUP:
return "Pick Item(s) Up";
case ACTION_BUTCHER:
return "Butcher";
case ACTION_CHAT:
return "Chat with NPC";
case ACTION_LOOK:
return "Look Around";
case ACTION_PEEK:
return "Peek Around Corners";
case ACTION_LIST_ITEMS:
return "List all items around the player";
case ACTION_INVENTORY:
return "Open Inventory";
case ACTION_ADVANCEDINV:
return "Advanced Inventory management";
case ACTION_COMPARE:
return "Compare two Items";
case ACTION_ORGANIZE:
return "Swap Inventory Letters";
case ACTION_USE:
return "Apply or Use Item";
case ACTION_USE_WIELDED:
return "Apply or Use Wielded Item";
case ACTION_WEAR:
return "Wear Item";
case ACTION_TAKE_OFF:
return "Take Off Worn Item";
case ACTION_EAT:
return "Eat";
case ACTION_READ:
return "Read";
case ACTION_WIELD:
return "Wield";
case ACTION_PICK_STYLE:
return "Select Unarmed Style";
case ACTION_RELOAD:
return "Reload Wielded Item";
case ACTION_UNLOAD:
return "Unload or Empty Wielded Item";
case ACTION_THROW:
return "Throw Item";
case ACTION_FIRE:
return "Fire Wielded Item";
case ACTION_FIRE_BURST:
return "Burst-Fire Wielded Item";
case ACTION_SELECT_FIRE_MODE:
return "Toggle attack mode of Wielded Item";
case ACTION_DROP:
return "Drop Item";
case ACTION_DIR_DROP:
return "Drop Item to Adjacent Tile";
case ACTION_BIONICS:
return "View/Activate Bionics";
case ACTION_SORT_ARMOR:
return "Re-layer armour/clothing";
case ACTION_WAIT:
return "Wait for Several Minutes";
case ACTION_CRAFT:
return "Craft Items";
case ACTION_RECRAFT:
return "Recraft last recipe";
case ACTION_LONGCRAFT:
return "Craft as long as possible";
case ACTION_CONSTRUCT:
return "Construct Terrain";
case ACTION_DISASSEMBLE:
return "Disassemble items";
case ACTION_SLEEP:
return "Sleep";
case ACTION_CONTROL_VEHICLE:
return "Control Vehicle";
case ACTION_TOGGLE_SAFEMODE:
return "Toggle Safemode";
case ACTION_TOGGLE_AUTOSAFE:
return "Toggle Auto-Safemode";
case ACTION_IGNORE_ENEMY:
return "Ignore Nearby Enemy";
case ACTION_SAVE:
return "Save and Quit";
case ACTION_QUIT:
return "Commit Suicide";
case ACTION_PL_INFO:
return "View Player Info";
case ACTION_MAP:
return "View Map";
case ACTION_MISSIONS:
return "View Missions";
case ACTION_FACTIONS:
return "View Factions";
case ACTION_KILLS:
return "View Kills";
case ACTION_MORALE:
return "View Morale";
case ACTION_MESSAGES:
return "View Message Log";
case ACTION_HELP:
return "View Help";
case ACTION_DEBUG:
return "Debug Menu";
case ACTION_DISPLAY_SCENT:
return "View Scentmap";
case ACTION_TOGGLE_DEBUGMON:
return "Toggle Debug Messages";
case ACTION_NULL:
return "No Action";
}
return "Someone forgot to name an action.";
}
-96
View File
@@ -1,96 +0,0 @@
#ifndef _ACTION_H_
#define _ACTION_H_
enum action_id {
ACTION_NULL = 0,
// Movement
ACTION_PAUSE,
ACTION_MOVE_N,
ACTION_MOVE_NE,
ACTION_MOVE_E,
ACTION_MOVE_SE,
ACTION_MOVE_S,
ACTION_MOVE_SW,
ACTION_MOVE_W,
ACTION_MOVE_NW,
ACTION_MOVE_DOWN,
ACTION_MOVE_UP,
// Shift view
ACTION_CENTER,
ACTION_SHIFT_N,
ACTION_SHIFT_NE,
ACTION_SHIFT_E,
ACTION_SHIFT_SE,
ACTION_SHIFT_S,
ACTION_SHIFT_SW,
ACTION_SHIFT_W,
ACTION_SHIFT_NW,
// Environment Interaction
ACTION_OPEN,
ACTION_CLOSE,
ACTION_SMASH,
ACTION_EXAMINE,
ACTION_PICKUP,
ACTION_BUTCHER,
ACTION_CHAT,
ACTION_LOOK,
ACTION_PEEK,
ACTION_LIST_ITEMS,
// Inventory Interaction (including quasi-inventories like bionics)
ACTION_INVENTORY,
ACTION_ADVANCEDINV,
ACTION_COMPARE,
ACTION_ORGANIZE,
ACTION_USE,
ACTION_USE_WIELDED,
ACTION_WEAR,
ACTION_TAKE_OFF,
ACTION_EAT,
ACTION_READ,
ACTION_WIELD,
ACTION_PICK_STYLE,
ACTION_RELOAD,
ACTION_UNLOAD,
ACTION_THROW,
ACTION_FIRE,
ACTION_FIRE_BURST,
ACTION_SELECT_FIRE_MODE,
ACTION_DROP,
ACTION_DIR_DROP,
ACTION_BIONICS,
ACTION_SORT_ARMOR,
// Long-term / special actions
ACTION_WAIT,
ACTION_CRAFT,
ACTION_RECRAFT,
ACTION_LONGCRAFT,
ACTION_CONSTRUCT,
ACTION_DISASSEMBLE,
ACTION_SLEEP,
ACTION_CONTROL_VEHICLE,
ACTION_TOGGLE_SAFEMODE,
ACTION_TOGGLE_AUTOSAFE,
ACTION_IGNORE_ENEMY,
ACTION_SAVE,
ACTION_QUIT,
// Info Screens
ACTION_PL_INFO,
ACTION_MAP,
ACTION_MISSIONS,
ACTION_KILLS,
ACTION_FACTIONS,
ACTION_MORALE,
ACTION_MESSAGES,
ACTION_HELP,
// Debug Functions
ACTION_DEBUG,
ACTION_DISPLAY_SCENT,
ACTION_TOGGLE_DEBUGMON,
NUM_ACTIONS
};
action_id look_up_action(std::string ident);
std::string action_ident(action_id);
std::string action_name(action_id);
#endif
-227
View File
@@ -1,227 +0,0 @@
#include "addiction.h"
void addict_effect(game *g, addiction &add)
{
int in = add.intensity;
switch (add.type) {
case ADD_CIG:
if (in > 20 || one_in((500 - 20 * in))) {
g->add_msg("You %s a cigarette.",
rng(0, 6) < in ? "need" : "could use");
g->cancel_activity_query("You have a nicotine craving.");
g->u.add_morale(MORALE_CRAVING_NICOTINE, -15, -50);
if (one_in(800 - 50 * in))
g->u.fatigue++;
if (one_in(400 - 20 * in))
g->u.stim--;
}
break;
case ADD_CAFFEINE:
g->u.moves -= 2;
if (in > 20 || one_in((500 - 20 * in))) {
g->add_msg("You want some caffeine.");
g->cancel_activity_query("You have a caffeine craving.");
g->u.add_morale(MORALE_CRAVING_CAFFEINE, -5, -30);
if (rng(0, 10) < in)
g->u.stim--;
if (rng(8, 400) < in) {
g->add_msg("Your hands start shaking... you need it bad!");
g->u.add_disease(DI_SHAKES, 20, 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(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_SLEEP:
// No effects here--just in player::can_sleep()
// EXCEPT! Prolong this addiction longer than usual.
if (one_in(2) && add.sated < 0)
add.sated++;
break;
case ADD_PKILLER:
if ((in >= 25 || int(g->turn) % (100 - in * 4) == 0) && g->u.pkill > 0)
g->u.pkill--; // Tolerance increases!
if (g->u.pkill >= 35) // No further effects if we're doped up.
add.sated = 0;
else {
g->u.str_cur -= 1 + int(in / 7);
g->u.per_cur--;
g->u.dex_cur--;
if (g->u.pain < in * 3)
g->u.pain++;
if (in >= 40 || one_in((1200 - 30 * in)))
g->u.health--;
if (one_in(20) && dice(2, 20) < in) {
g->add_msg("Your hands start shaking... you need some painkillers.");
g->cancel_activity_query("You have an opiate craving.");
g->u.add_morale(MORALE_CRAVING_OPIATE, -40, -200);
g->u.add_disease(DI_SHAKES, 20 + in * 5, g);
} else if (one_in(20) && dice(2, 30) < in) {
g->add_msg("You feel anxious. You need your painkillers!");
g->u.add_morale(MORALE_CRAVING_OPIATE, -30, -200);
g->cancel_activity_query("You have a craving.");
} else if (one_in(50) && dice(3, 50) < in) {
g->add_msg("You throw up heavily!");
g->cancel_activity_query("Throwing up.");
g->u.vomit(g);
}
}
break;
case ADD_SPEED: {
int move_pen = in * 5;
if (move_pen > 30)
move_pen = 30;
g->u.moves -= move_pen;
g->u.int_cur--;
g->u.str_cur--;
if (g->u.stim > -100 && (in >= 20 || int(g->turn) % (100 - in * 5) == 0))
g->u.stim--;
if (rng(0, 150) <= in)
g->u.health--;
if (dice(2, 100) < in) {
g->add_msg("You feel depressed. Speed would help.");
g->cancel_activity_query("You have a speed craving.");
g->u.add_morale(MORALE_CRAVING_SPEED, -25, -200);
} else if (one_in(10) && dice(2, 80) < in) {
g->add_msg("Your hands start shaking... you need a pick-me-up.");
g->cancel_activity_query("You have a speed craving.");
g->u.add_morale(MORALE_CRAVING_SPEED, -25, -200);
g->u.add_disease(DI_SHAKES, in * 20, g);
} else if (one_in(50) && dice(2, 100) < in) {
g->add_msg("You stop suddenly, feeling bewildered.");
g->cancel_activity();
g->u.moves -= 300;
} else if (!g->u.has_disease(DI_HALLU) && one_in(20) &&
8 + dice(2, 80) < in)
g->u.add_disease(DI_HALLU, 3600, g);
} break;
case ADD_COKE:
g->u.int_cur--;
g->u.per_cur--;
if (in >= 30 || one_in((900 - 30 * in))) {
g->add_msg("You feel like you need a bump.");
g->cancel_activity_query("You have a craving for cocaine.");
g->u.add_morale(MORALE_CRAVING_COCAINE, -20, -250);
}
if (dice(2, 80) <= in) {
g->add_msg("You feel like you need a bump.");
g->cancel_activity_query("You have a craving for cocaine.");
g->u.add_morale(MORALE_CRAVING_COCAINE, -20, -250);
g->u.stim -= 3;
}
break;
case ADD_CRACK:
g->u.int_cur--;
g->u.per_cur--;
if (in >= 30 || one_in((900 - 30 * in))) {
g->add_msg("You're shivering, you need some crack.");
g->cancel_activity_query("You have a craving for crack.");
g->u.add_morale(MORALE_CRAVING_CRACK, -80, -250);
}
if (dice(2, 80) <= in) {
g->add_msg("You're shivering, you need some crack.");
g->cancel_activity_query("You have a craving for crack.");
g->u.add_morale(MORALE_CRAVING_CRACK, -80, -250);
g->u.stim -= 3;
}
break;
}
}
std::string addiction_name(addiction cur)
{
switch (cur.type) {
case ADD_CIG: return "Nicotine Withdrawal";
case ADD_CAFFEINE: return "Caffeine Withdrawal";
case ADD_ALCOHOL: return "Alcohol Withdrawal";
case ADD_SLEEP: return "Sleeping Pill Dependance";
case ADD_PKILLER: return "Opiate Withdrawal";
case ADD_SPEED: return "Amphetamine Withdrawal";
case ADD_COKE: return "Cocaine Withdrawal";
case ADD_CRACK: return "Crack Cocaine Withdrawal";
default: return "Erroneous addiction";
}
}
add_type addiction_type(std::string name)
{
if (name == "nicotine")
return ADD_CIG;
else if (name == "caffeine")
return ADD_CAFFEINE;
else if (name == "alcohol")
return ADD_ALCOHOL;
else if (name == "sleeping pill")
return ADD_SLEEP;
else if (name == "opiate")
return ADD_PKILLER;
else if (name == "amphetamine")
return ADD_SPEED;
else if (name == "cocaine")
return ADD_COKE;
else if (name == "crack")
return ADD_CRACK;
else
return ADD_NULL;
}
std::string addiction_text(addiction cur)
{
std::stringstream dump;
int strpen = 1 + int(cur.intensity / 7);
switch (cur.type) {
case ADD_CIG:
return "Intelligence - 1; Occasional cravings";
case ADD_CAFFEINE:
return "Strength - 1; Slight sluggishness; Occasional cravings";
case ADD_ALCOHOL:
return "\
Perception - 1; Intelligence - 1; Occasional Cravings;\n\
Risk of delirium tremens";
case ADD_SLEEP:
return "You may find it difficult to sleep without medication.";
case ADD_PKILLER:
dump << "Strength -" << strpen << "; Perception - 1; Dexterity - 1;" <<
std::endl <<
"Depression and physical pain to some degree. Frequent cravings. Vomiting.";
return dump.str();
case ADD_SPEED:
return "Strength - 1; Intelligence - 1;\n\
Movement rate reduction. Depression. Weak immune system. Frequent cravings.";
case ADD_COKE:
return "Perception - 1; Intelligence - 1; Frequent cravings.";
case ADD_CRACK:
return "Perception - 2; Intelligence - 2; Frequent cravings.";
default:
return "";
}
}
-19
View File
@@ -1,19 +0,0 @@
#ifndef _ADDICTION_H_
#define _ADDICTION_H_
#include "rng.h"
#include "game.h"
#include "morale.h"
#include <sstream>
#define MIN_ADDICTION_LEVEL 3 // Minimum intensity before effects are seen
void addict_effect(game *g, addiction &add);
std::string addiction_name(addiction cur);
add_type addiction_type(std::string name);
std::string addiction_text(addiction cur);
#endif
-1035
View File
File diff suppressed because it is too large Load Diff
-148
View File
@@ -1,148 +0,0 @@
#ifndef _ARTIFACT_H_
#define _ARTIFACT_H_
#include <string>
#include <vector>
enum art_effect_passive {
AEP_NULL = 0,
// Good
AEP_STR_UP, // Strength + 4
AEP_DEX_UP, // Dexterity + 4
AEP_PER_UP, // Perception + 4
AEP_INT_UP, // Intelligence + 4
AEP_ALL_UP, // All stats + 2
AEP_SPEED_UP, // +20 speed
AEP_IODINE, // Reduces radiation
AEP_SNAKES, // Summons friendly snakes when you're hit
AEP_INVISIBLE, // Makes you invisible
AEP_CLAIRVOYANCE, // See through walls
AEP_SUPER_CLAIRVOYANCE, // See through walls to a great distance
AEP_STEALTH, // Your steps are quieted
AEP_EXTINGUISH, // May extinguish nearby flames
AEP_GLOW, // Four-tile light source
AEP_PSYSHIELD, // Protection from stare attacks
AEP_RESIST_ELECTRICITY, // Protection from electricity
AEP_CARRY_MORE, // Increases carrying capacity by 200
AEP_SAP_LIFE, // Killing non-zombie monsters may heal you
// Splits good from bad
AEP_SPLIT,
// Bad
AEP_HUNGER, // Increases hunger
AEP_THIRST, // Increases thirst
AEP_SMOKE, // Emits smoke occasionally
AEP_EVIL, // Addiction to the power
AEP_SCHIZO, // Mimicks schizophrenia
AEP_RADIOACTIVE, // Increases your radiation
AEP_MUTAGENIC, // Mutates you slowly
AEP_ATTENTION, // Draws netherworld attention slowly
AEP_STR_DOWN, // Strength - 3
AEP_DEX_DOWN, // Dex - 3
AEP_PER_DOWN, // Per - 3
AEP_INT_DOWN, // Int - 3
AEP_ALL_DOWN, // All stats - 2
AEP_SPEED_DOWN, // -20 speed
AEP_FORCE_TELEPORT, // Occasionally force a teleport
AEP_MOVEMENT_NOISE, // Makes noise when you move
AEP_BAD_WEATHER, // More likely to experience bad weather
AEP_SICK, // Decreases health
NUM_AEPS
};
enum art_effect_active {
AEA_NULL = 0,
AEA_STORM, // Emits shock fields
AEA_FIREBALL, // Targeted
AEA_ADRENALINE, // Adrenaline rush
AEA_MAP, // Maps the area around you
AEA_BLOOD, // Shoots blood all over
AEA_FATIGUE, // Creates interdimensional fatigue
AEA_ACIDBALL, // Targeted acid
AEA_PULSE, // Destroys adjacent terrain
AEA_HEAL, // Heals minor damage
AEA_CONFUSED, // Confuses all monsters in view
AEA_ENTRANCE, // Chance to make nearby monsters friendly
AEA_BUGS, // Chance to summon friendly insects
AEA_TELEPORT, // Teleports you
AEA_LIGHT, // Temporary light source
AEA_GROWTH, // Grow plants, a la triffid queen
AEA_HURTALL, // Hurts all monsters!
AEA_SPLIT, // Split between good and bad
AEA_RADIATION, // Spew radioactive gas
AEA_PAIN, // Increases player pain
AEA_MUTATE, // Chance of mutation
AEA_PARALYZE, // You lose several turns
AEA_FIRESTORM, // Spreads minor fire all around you
AEA_ATTENTION, // Attention from sub-prime denizens
AEA_TELEGLOW, // Teleglow disease
AEA_NOISE, // Loud noise
AEA_SCREAM, // Noise & morale penalty
AEA_DIM, // Darkens the sky slowly
AEA_FLASH, // Flashbang
AEA_VOMIT, // User vomits
AEA_SHADOWS, // Summon shadow creatures
NUM_AEAS
};
enum art_charge
{
ARTC_NULL, // Never recharges!
ARTC_TIME, // Very slowly recharges with time
ARTC_SOLAR, // Recharges in sunlight
ARTC_PAIN, // Creates pain to recharge
ARTC_HP, // Drains HP to recharge
NUM_ARTCS
};
enum artifact_natural_shape
{
ARTSHAPE_NULL,
ARTSHAPE_SPHERE,
ARTSHAPE_ROD,
ARTSHAPE_TEARDROP,
ARTSHAPE_LAMP,
ARTSHAPE_SNAKE,
ARTSHAPE_DISC,
ARTSHAPE_BEADS,
ARTSHAPE_NAPKIN,
ARTSHAPE_URCHIN,
ARTSHAPE_JELLY,
ARTSHAPE_SPIRAL,
ARTSHAPE_PIN,
ARTSHAPE_TUBE,
ARTSHAPE_PYRAMID,
ARTSHAPE_CRYSTAL,
ARTSHAPE_KNOT,
ARTSHAPE_CRESCENT,
ARTSHAPE_MAX
};
enum artifact_natural_property
{
ARTPROP_NULL,
ARTPROP_WRIGGLING, //
ARTPROP_GLOWING, //
ARTPROP_HUMMING, //
ARTPROP_MOVING, //
ARTPROP_WHISPERING, //
ARTPROP_BREATHING, //
ARTPROP_DEAD, //
ARTPROP_ITCHY, //
ARTPROP_GLITTERING, //
ARTPROP_ELECTRIC, //
ARTPROP_SLIMY, //
ARTPROP_ENGRAVED, //
ARTPROP_CRACKLING, //
ARTPROP_WARM, //
ARTPROP_RATTLING, //
ARTPROP_SCALED,
ARTPROP_FRACTAL,
ARTPROP_MAX
};
#endif
-168
View File
@@ -1,168 +0,0 @@
#ifndef _ARTIFACTDATA_H_
#define _ARTIFACTDATA_H_
#include <vector>
#include "artifact.h"
#include "itype.h"
extern int passive_effect_cost[NUM_AEPS];
extern int active_effect_cost[NUM_AEAS];
struct artifact_shape_datum
{
std::string name;
std::string desc;
int volume_min, volume_max;
int weight_min, weight_max;
};
extern artifact_shape_datum artifact_shape_data[ARTSHAPE_MAX];
struct artifact_property_datum
{
std::string name;
std::string desc;
art_effect_passive passive_good[4];
art_effect_passive passive_bad[4];
art_effect_active active_good[4];
art_effect_active active_bad[4];
};
extern artifact_property_datum artifact_property_data[ARTPROP_MAX];
enum artifact_weapon_type
{
ARTWEAP_NULL,
ARTWEAP_BULK, // A bulky item that works okay for bashing
ARTWEAP_CLUB, // An item designed to bash
ARTWEAP_SPEAR, // A stab-only weapon
ARTWEAP_SWORD, // A long slasher
ARTWEAP_KNIFE, // Short, slash and stab
NUM_ARTWEAPS
};
struct artifact_tool_form_datum
{
std::string name;
char sym;
nc_color color;
std::string m1;
std::string m2;
int volume_min, volume_max;
int weight_min, weight_max;
artifact_weapon_type base_weapon;
artifact_weapon_type extra_weapons[3];
/*
artifact_tool_form_datum
(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),
volume_min (Volmin), volume_max (Volmax), weight_min (Wgtmin),
weight_max (Wgtmax), base_weapon (Base), extra_weapons (extra) { };
*/
};
enum artifact_tool_form
{
ARTTOOLFORM_NULL,
ARTTOOLFORM_HARP,
ARTTOOLFORM_STAFF,
ARTTOOLFORM_SWORD,
ARTTOOLFORM_KNIFE,
ARTTOOLFORM_CUBE,
NUM_ARTTOOLFORMS
};
extern artifact_tool_form_datum artifact_tool_form_data[NUM_ARTTOOLFORMS];
struct artifact_weapon_datum
{
std::string adjective;
int volume, weight; // Only applicable if this is an *extra* weapon
int bash_min, bash_max;
int cut_min, cut_max;
int to_hit_min, to_hit_max;
std::string tag;
};
extern artifact_weapon_datum artifact_weapon_data[NUM_ARTWEAPS];
enum artifact_armor_mod
{
ARMORMOD_NULL,
ARMORMOD_LIGHT,
ARMORMOD_BULKY,
ARMORMOD_POCKETED,
ARMORMOD_FURRED,
ARMORMOD_PADDED,
ARMORMOD_PLATED,
NUM_ARMORMODS
};
struct artifact_armor_form_datum
{
std::string name;
nc_color color;
std::string m1;
std::string m2;
int volume, weight;
int encumb;
int coverage;
int thickness;
int env_resist;
int warmth;
int storage;
int melee_bash, melee_cut, melee_hit;
unsigned char covers;
bool plural;
artifact_armor_mod available_mods[5];
/*
// Constructor
artifact_armor_form_datum
(std::string Name, nc_color Color, std::string M1, std::string M2, int Volume,
int Weight, int Encumb, int Dmg_res, int Cut_res, int Env_res,
int Warmth, int Storage, int Bash, int Cut, int Hit, unsigned char Covers,
bool Plural, artifact_armor_mod Mods[5])
: name (Name), color (Color), m1 (M1), m2 (M2), volume (Volume),
weight (Weight), encumb (Encumb), coverage (Coverage),
thickness (thickness), env_resist (Env_res), warmth (Warmth),
storage (Storage), melee_bash (Bash), melee_cut (Cut), melee_hit (Hit),
covers (Covers), plural (Plural), available_mods (Mods) { };
*/
};
enum artifact_armor_form
{
ARTARMFORM_NULL,
ARTARMFORM_ROBE,
ARTARMFORM_COAT,
ARTARMFORM_MASK,
ARTARMFORM_HELM,
ARTARMFORM_GLOVES,
ARTARMFORM_BOOTS,
ARTARMFORM_RING,
NUM_ARTARMFORMS
};
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 "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];
#define NUM_ART_ADJS 20
extern std::string artifact_adj[NUM_ART_ADJS];
#define NUM_ART_NOUNS 20
extern std::string artifact_noun[NUM_ART_NOUNS];
#endif
Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 MiB

-45
View File
@@ -1,45 +0,0 @@
#include <algorithm>
#include <sstream>
#include "basecamp.h"
basecamp::basecamp()
: name()
, posx(0), posy(0)
{
}
basecamp::basecamp(std::string const& name_, int const posx_, int const posy_)
: name(name_)
, posx(posx_), posy(posy_)
{
}
std::string basecamp::board_name() const
{
return name + " Board";
}
std::string basecamp::save_data() const
{
std::stringstream data;
// TODO: This will lose underscores, is that a problem?
// strip spaces from name
std::string savename = name;
replace(savename.begin(), savename.end(), ' ', '_');
data << savename << " " << posx << " " << posy;
return data.str();
}
void basecamp::load_data(std::string const& data)
{
std::stringstream stream(data);
stream >> name >> posx >> posy;
// add space to name
replace(name.begin(), name.end(), '_', ' ');
}
-29
View File
@@ -1,29 +0,0 @@
#ifndef _BASECAMP_H_
#define _BASECAMP_H_
#include <string>
class basecamp
{
public:
basecamp();
basecamp(std::string const& name_, int const posx_, int const posy_);
inline bool is_valid() const { return !name.empty(); }
inline int board_x() const { return posx; }
inline int board_y() const { return posy; }
inline std::string const& camp_name() const { return name; }
std::string board_name() const;
// Save/load
std::string save_data() const;
void load_data(std::string const& data);
private:
std::string name;
int posx, posy; // location of associated bulletin board
};
#endif
-1040
View File
File diff suppressed because it is too large Load Diff
-51
View File
@@ -1,51 +0,0 @@
#ifndef _BIONICS_H_
#define _BIONICS_H_
#include <string>
#include <map>
/* Thought: Perhaps a HUD bionic that changes the display of the game?
* Showing more information or something. */
typedef std::string bionic_id;
class bionic_data {
public:
bionic_data(std::string new_name, bool new_power_source, bool new_activated,
int new_power_cost, int new_charge_time, std::string new_description, bool new_faulty = false);
std::string name;
bool power_source;
bool activated; // If true, then the below function only happens when
// activated; otherwise, it happens every turn
int power_cost;
int charge_time; // How long, when activated, between drawing power_cost
// If 0, it draws power once
std::string description;
bool faulty; // Whether or not the bionic is faulty
};
struct bionic {
bionic_id id;
char invlet;
bool powered;
int charge;
bionic() {
id = "bio_batteries";
invlet = 'a';
powered = false;
charge = 0;
}
bionic(bionic_id pid, char pinvlet) {
id = pid;
invlet = pinvlet;
powered = false;
charge = 0;
};
};
extern std::map<bionic_id, bionic_data*> bionics;
extern std::vector<bionic_id> faulty_bionics;
extern std::vector<bionic_id> power_source_bionics;
extern std::vector<bionic_id> unpowered_bionics;
#endif
-73
View File
@@ -1,73 +0,0 @@
#include "bodypart.h"
#include "rng.h"
std::string body_part_name (body_part bp, int side)
{
switch (bp) {
case bp_head:
return "head";
case bp_eyes:
return "eyes";
case bp_mouth:
return "mouth";
case bp_torso:
return "torso";
case bp_arms:
if (side == 0)
return "left arm";
if (side == 1)
return "right arm";
return "arms";
case bp_hands:
if (side == 0)
return "left hand";
if (side == 1)
return "right hand";
return "hands";
case bp_legs:
if (side == 0)
return "left leg";
if (side == 1)
return "right leg";
return "legs";
case bp_feet:
if (side == 0)
return "left foot";
if (side == 1)
return "right foot";
return "feet";
default:
return "appendix";
}
}
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.";
}
}
body_part random_body_part()
{
int rn = rng(0, 100);
if (rn == 0)
return bp_eyes;
if (rn <= 1)
return bp_mouth;
if (rn <= 7)
return bp_head;
if (rn <= 28)
return bp_legs;
if (rn <= 50)
return bp_arms;
return bp_torso;
}
-23
View File
@@ -1,23 +0,0 @@
#ifndef _BODYPART_H_
#define _BODYPART_H_
#include <string>
// The order is important ; pldata.h has to be in the same order
enum body_part {
bp_torso = 0,
bp_head,
bp_eyes,
bp_mouth,
bp_arms,
bp_hands,
bp_legs,
bp_feet,
num_bp
};
std::string body_part_name(body_part bp, int side);
std::string encumb_text(body_part bp);
body_part random_body_part();
#endif
-388
View File
@@ -1,388 +0,0 @@
#include "building_generation.h"
#include "output.h"
#include "item_factory.h"
mapgendata::mapgendata(oter_id north, oter_id east, oter_id south, oter_id west)
{
t_nesw[0] = north;
t_nesw[1] = east;
t_nesw[2] = south;
t_nesw[3] = west;
n_fac = 0;
e_fac = 0;
s_fac = 0;
w_fac = 0;
}
void mapgendata::set_dir(int dir_in, int val)
{
switch (dir_in)
{
case 0:
n_fac = val;
break;
case 1:
e_fac = val;
break;
case 2:
s_fac = val;
break;
case 3:
w_fac = val;
break;
default:
debugmsg("Invalid direction for mapgendata::set_dir. dir_in = %d", dir_in);
break;
}
}
void mapgendata::fill(int val)
{
n_fac = val;
e_fac = val;
s_fac = val;
w_fac = val;
}
int& mapgendata::dir(int dir_in)
{
switch (dir_in)
{
case 0:
return n_fac;
break;
case 1:
return e_fac;
break;
case 2:
return s_fac;
break;
case 3:
return w_fac;
break;
default:
debugmsg("Invalid direction for mapgendata::set_dir. dir_in = %d", dir_in);
//return something just so the compiler doesn't freak out. Not really correct, though.
return n_fac;
break;
}
}
ter_id grass_or_dirt()
{
if (one_in(4))
return t_grass;
return t_dirt;
}
ter_id dirt_or_pile()
{
if (one_in(4))
return t_dirtmound;
return t_dirt;
}
// helper functions below
void mapgen_null(map *m)
{
debugmsg("Generating terrain for ot_null, please report this as a bug");
for (int i = 0; i < SEEX * 2; i++)
{
for (int j = 0; j < SEEY * 2; j++)
{
m->ter_set(i, j, t_null);
m->radiation(i, j) = 0;
}
}
}
void mapgen_crater(map *m, mapgendata dat)
{
for(int i = 0; i < 4; i++)
{
if(dat.t_nesw[i] != ot_crater)
{
dat.set_dir(i, 6);
}
}
for (int i = 0; i < SEEX * 2; i++)
{
for (int j = 0; j < SEEY * 2; j++)
{
if (rng(0, dat.w_fac) <= i && rng(0, dat.e_fac) <= SEEX * 2 - 1 - i &&
rng(0, dat.n_fac) <= j && rng(0, dat.s_fac) <= SEEX * 2 - 1 - j )
{
m->ter_set(i, j, t_rubble);
m->radiation(i, j) = rng(0, 4) * rng(0, 2);
}
else
{
m->ter_set(i, j, t_dirt);
m->radiation(i, j) = rng(0, 2) * rng(0, 2) * rng(0, 2);
}
}
}
m->place_items(mi_wreckage, 83, 0, 0, SEEX * 2 - 1, SEEY * 2 - 1, true, 0);
}
void mapgen_field(map *m, int turn)
{
for (int i = 0; i < SEEX * 2; i++)
{
for (int j = 0; j < SEEY * 2; j++)
{
m->ter_set(i, j, grass_or_dirt());
if (one_in(120))
{
if (one_in(30))
{
m->ter_set(i, j, t_shrub_blueberry);
}
else
if (one_in(30))
{
m->ter_set(i, j, t_shrub_strawberry);
}
else
{
m->ter_set(i, j, t_shrub);
}
}
else
if (one_in(1000)) { m->ter_set(i,j, t_mutpoppy); }
}
}
m->place_items(mi_field, 60, 0, 0, SEEX * 2 - 1, SEEY * 2 - 1, true, turn);
}
void mapgen_dirtlot(map *m, game *g)
{
for (int i = 0; i < SEEX * 2; i++)
{
for (int j = 0; j < SEEY * 2; j++)
{
m->ter_set(i, j, t_dirt);
if (one_in(120))
{
m->ter_set(i, j, t_pit_shallow);
}
else if (one_in(50))
{
m->ter_set(i,j, t_grass);
}
}
}
if (one_in(4))
{
m->add_vehicle (g, veh_truck, 12, 12, 90, -1, -1);
}
}
void mapgen_forest_general(map *m, oter_id terrain_type, mapgendata dat, int turn)
{
switch (terrain_type)
{
case ot_forest_thick:
dat.fill(8);
break;
case ot_forest_water:
dat.fill(4);
break;
case ot_forest:
dat.fill(0);
break;
}
for (int i = 0; i < 4; i++)
{
if (dat.t_nesw[i] == ot_forest || dat.t_nesw[i] == ot_forest_water)
{
dat.dir(i) += 14;
}
else if (dat.t_nesw[i] == ot_forest_thick)
{
dat.dir(i) += 18;
}
}
for (int i = 0; i < SEEX * 2; i++)
{
for (int j = 0; j < SEEY * 2; j++)
{
int forest_chance = 0, num = 0;
if (j < dat.n_fac)
{
forest_chance += dat.n_fac - j;
num++;
}
if (SEEX * 2 - 1 - i < dat.e_fac)
{
forest_chance += dat.e_fac - (SEEX * 2 - 1 - i);
num++;
}
if (SEEY * 2 - 1 - j < dat.s_fac)
{
forest_chance += dat.s_fac - (SEEY * 2 - 1 - j);
num++;
}
if (i < dat.w_fac)
{
forest_chance += dat.w_fac - i;
num++;
}
if (num > 0)
{
forest_chance /= num;
}
int rn = rng(0, forest_chance);
if ((forest_chance > 0 && rn > 13) || one_in(100 - forest_chance))
{
if (one_in(250))
{
m->ter_set(i, j, t_tree_apple);
m->spawn_item(i, j, "apple", turn);
}
else
{
m->ter_set(i, j, t_tree);
}
}
else if ((forest_chance > 0 && rn > 10) || one_in(100 - forest_chance))
{
m->ter_set(i, j, t_tree_young);
}
else if ((forest_chance > 0 && rn > 9) || one_in(100 - forest_chance))
{
if (one_in(250))
{
m->ter_set(i, j, t_shrub_blueberry);
}
else
{
m->ter_set(i, j, t_underbrush);
}
}
else
{
m->ter_set(i, j, t_dirt);
}
}
}
m->place_items(mi_forest, 60, 0, 0, SEEX * 2 - 1, SEEY * 2 - 1, true, turn);
if (terrain_type == ot_forest_water)
{
// Reset *_fac to handle where to place water
for (int i = 0; i < 4; i++)
{
if (dat.t_nesw[i] == ot_forest_water)
{
dat.set_dir(i, 2);
}
else if (dat.t_nesw[i] >= ot_river_center && dat.t_nesw[i] <= ot_river_nw)
{
dat.set_dir(i, 3);
}
else if (dat.t_nesw[i] == ot_forest || dat.t_nesw[i] == ot_forest_thick)
{
dat.set_dir(i, 1);
}
else
{
dat.set_dir(i, 0);
}
}
int x = SEEX / 2 + rng(0, SEEX), y = SEEY / 2 + rng(0, SEEY);
for (int i = 0; i < 20; i++)
{
if (x >= 0 && x < SEEX * 2 && y >= 0 && y < SEEY * 2)
{
if (m->ter(x, y) == t_water_sh)
{
m->ter_set(x, y, t_water_dp);
}
else if (m->ter(x, y) == t_dirt || m->ter(x, y) == t_underbrush)
{
m->ter_set(x, y, t_water_sh);
}
}
else
{
i = 20;
}
x += rng(-2, 2);
y += rng(-2, 2);
if (x < 0 || x >= SEEX * 2)
{
x = SEEX / 2 + rng(0, SEEX);
}
if (y < 0 || y >= SEEY * 2)
{
y = SEEY / 2 + rng(0, SEEY);
}
for (int j = 0; j < dat.n_fac; j++)
{
int wx = rng(0, SEEX * 2 -1), wy = rng(0, SEEY - 1);
if (m->ter(wx, wy) == t_dirt || m->ter(wx, wy) == t_underbrush)
{
m->ter_set(wx, wy, t_water_sh);
}
}
for (int j = 0; j < dat.e_fac; j++)
{
int wx = rng(SEEX, SEEX * 2 - 1), wy = rng(0, SEEY * 2 - 1);
if (m->ter(wx, wy) == t_dirt || m->ter(wx, wy) == t_underbrush)
{
m->ter_set(wx, wy, t_water_sh);
}
}
for (int j = 0; j < dat.s_fac; j++)
{
int wx = rng(0, SEEX * 2 - 1), wy = rng(SEEY, SEEY * 2 - 1);
if (m->ter(wx, wy) == t_dirt || m->ter(wx, wy) == t_underbrush)
{
m->ter_set(wx, wy, t_water_sh);
}
}
for (int j = 0; j < dat.w_fac; j++)
{
int wx = rng(0, SEEX - 1), wy = rng(0, SEEY * 2 - 1);
if (m->ter(wx, wy) == t_dirt || m->ter(wx, wy) == t_underbrush)
{
m->ter_set(wx, wy, t_water_sh);
}
}
}
int rn = rng(0, 2) * rng(0, 1) * (rng(0, 1) + rng(0, 1));// Good chance of 0
for (int i = 0; i < rn; i++)
{
x = rng(0, SEEX * 2 - 1);
y = rng(0, SEEY * 2 - 1);
m->add_trap(x, y, tr_sinkhole);
if (m->ter(x, y) != t_water_sh)
{
m->ter_set(x, y, t_dirt);
}
}
}
if (one_in(300)) { //rare, very bad day for low level characters
m->add_spawn(mon_jabberwock, 1, SEEX, SEEY);
}
if (one_in(100)) // One in 100 forests has a spider living in it :o
{
for (int i = 0; i < SEEX * 2; i++)
{
for (int j = 0; j < SEEX * 2; j++)
{
if ((m->ter(i, j) == t_dirt || m->ter(i, j) == t_underbrush) && !one_in(3))
{
m->add_field(NULL, i, j, fd_web, rng(1, 3));
}
}
}
m->add_spawn(mon_spider_web, rng(1, 2), SEEX, SEEY);
}
}
-32
View File
@@ -1,32 +0,0 @@
#ifndef _BUILDING_GENERATION_H_
#define _BUILDING_GENERATION_H_
#include "omdata.h"
#include "map.h"
struct mapgendata
{
public:
oter_id t_nesw[4];
int n_fac; // dir == 0
int e_fac; // dir == 1
int s_fac; // dir == 2
int w_fac; // dir == 3
mapgendata(oter_id north, oter_id east, oter_id south, oter_id west);
void set_dir(int dir_in, int val);
void fill(int val);
int& dir(int dir_in);
};
ter_id grass_or_dirt();
ter_id dirt_or_pile();
// helper functions for mapgen.cpp, so that we can avoid having a massive switch statement (sorta)
void mapgen_null(map *m);
void mapgen_crater(map *m, mapgendata dat);
void mapgen_field(map *m, int turn);
void mapgen_dirtlot(map *m, game *g);
void mapgen_forest_general(map *m, oter_id terrain_type, mapgendata dat, int turn);
#endif
-501
View File
@@ -1,501 +0,0 @@
#include <sstream>
#include "calendar.h"
#include "output.h"
#include "options.h"
calendar::calendar()
{
second = 0;
minute = 0;
hour = 0;
day = 0;
season = SPRING;
year = 0;
}
calendar::calendar(const calendar &copy)
{
second = copy.second;
minute = copy.minute;
hour = copy.hour;
day = copy.day;
season = copy.season;
year = copy.year;
}
calendar::calendar(int Minute, int Hour, int Day, season_type Season, int Year)
{
second = 0;
minute = Minute;
hour = Hour;
day = Day;
season = Season;
year = Year;
}
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];
second = 6 * (turn % 10);
minute = minute_param % 60;
hour = hour_param % 24;
day = 1 + day_param % (int)OPTIONS[OPT_SEASON_LENGTH];
season = season_type(season_param % 4);
year = season_param / 4;
}
int calendar::get_turn() const
{
int ret = second / 6;
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];
return ret;
}
calendar::operator int() const
{
int ret = second / 6;
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];
return ret;
}
calendar& calendar::operator =(calendar &rhs)
{
if (this == &rhs)
return *this;
second = rhs.second;
minute = rhs.minute;
hour = rhs.hour;
day = rhs.day;
season = rhs.season;
year = rhs.year;
return *this;
}
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];
second = 6 * (rhs % 10);
minute = minute_param % 60;
hour = hour_param % 24;
day = day_param % (int)OPTIONS[OPT_SEASON_LENGTH];
season = season_type(season_param % 4);
year = season_param / 4;
return *this;
}
calendar& calendar::operator -=(calendar &rhs)
{
calendar tmp(rhs);
tmp.standardize();
second -= tmp.second;
minute -= tmp.minute;
hour -= tmp.hour;
day -= tmp.day;
int tmpseason = int(season) - int(tmp.season);
while (tmpseason < 0) {
year--;
tmpseason += 4;
}
season = season_type(tmpseason);
year -= tmp.year;
standardize();
return *this;
}
calendar& calendar::operator -=(int rhs)
{
calendar tmp(rhs);
*this -= tmp;
return *this;
}
calendar& calendar::operator +=(calendar &rhs)
{
second += rhs.second;
minute += rhs.minute;
hour += rhs.hour;
day += rhs.day;
int tmpseason = int(season) + int(rhs.season);
while (tmpseason >= 4) {
year++;
tmpseason -= 4;
}
season = season_type(tmpseason);
year += rhs.year;
standardize();
return *this;
}
calendar& calendar::operator +=(int rhs)
{
second += rhs * 6;
standardize();
return *this;
}
bool calendar::operator ==(int rhs) const
{
return int(*this) == rhs;
}
bool calendar::operator ==(calendar &rhs) const
{
return (second == rhs.second &&
minute == rhs.minute &&
hour == rhs.hour &&
day == rhs.day &&
season == rhs.season &&
year == rhs.year);
}
/*
calendar& calendar::operator ++()
{
*this += 1;
return *this;
}
*/
calendar calendar::operator -(calendar &rhs)
{
return calendar(*this) -= rhs;
}
calendar calendar::operator -(int rhs)
{
return calendar(*this) -= rhs;
}
calendar calendar::operator +(calendar &rhs)
{
return calendar(*this) += rhs;
}
calendar calendar::operator +(int rhs)
{
return calendar(*this) += rhs;
}
void calendar::increment()
{
second += 6;
if (second >= 60)
standardize();
}
void calendar::standardize()
{
if (second >= 60) {
minute += second / 60;
second %= 60;
}
if (minute >= 60) {
hour += minute / 60;
minute %= 60;
}
if (hour >= 24) {
day += hour / 24;
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 (tmpseason >= 4) {
year += tmpseason / 4;
tmpseason %= 4;
}
season = season_type(tmpseason);
}
int calendar::minutes_past_midnight() const
{
//debugmsg("minute: %d hour: %d");
int ret = minute + hour * 60;
return ret;
}
moon_phase calendar::moon() const
{
int phase = day / (OPTIONS[OPT_SEASON_LENGTH] / 4);
//phase %= 4; Redundant?
if (phase == 3)
return MOON_HALF;
else
return moon_phase(phase);
}
calendar calendar::sunrise() const
{
calendar ret;
int start_hour = 0, end_hour = 0;
switch (season) {
case SPRING:
start_hour = SUNRISE_SOLSTICE;
end_hour = SUNRISE_SUMMER;
break;
case SUMMER:
start_hour = SUNRISE_SUMMER;
end_hour = SUNRISE_SOLSTICE;
break;
case AUTUMN:
start_hour = SUNRISE_SOLSTICE;
end_hour = SUNRISE_WINTER;
break;
case WINTER:
start_hour = SUNRISE_WINTER;
end_hour = SUNRISE_SOLSTICE;
break;
}
double percent = double(double(day) / OPTIONS[OPT_SEASON_LENGTH]);
double time = double(start_hour) * (1.- percent) + double(end_hour) * percent;
ret.hour = int(time);
time -= int(time);
ret.minute = int(time * 60);
return ret;
}
calendar calendar::sunset() const
{
calendar ret;
int start_hour = 0, end_hour = 0;
switch (season) {
case SPRING:
start_hour = SUNSET_SOLSTICE;
end_hour = SUNSET_SUMMER;
break;
case SUMMER:
start_hour = SUNSET_SUMMER;
end_hour = SUNSET_SOLSTICE;
break;
case AUTUMN:
start_hour = SUNSET_SOLSTICE;
end_hour = SUNSET_WINTER;
break;
case WINTER:
start_hour = SUNSET_WINTER;
end_hour = SUNSET_SOLSTICE;
break;
}
double percent = double(double(day) / OPTIONS[OPT_SEASON_LENGTH]);
double time = double(start_hour) * (1.- percent) + double(end_hour) * percent;
ret.hour = int(time);
time -= int(time);
ret.minute = int(time * 60);
return ret;
}
bool calendar::is_night() const
{
calendar sunrise_time = sunrise(), sunset_time = sunset();
int mins = minutes_past_midnight(),
sunrise_mins = sunrise_time.minutes_past_midnight(),
sunset_mins = sunset_time.minutes_past_midnight();
return (mins > sunset_mins + TWILIGHT_MINUTES || mins < sunrise_mins);
}
int calendar::sunlight() const
{
calendar sunrise_time = sunrise(), sunset_time = sunset();
int mins = 0, sunrise_mins = 0, sunset_mins = 0;
mins = minutes_past_midnight();
sunrise_mins = sunrise_time.minutes_past_midnight();
sunset_mins = sunset_time.minutes_past_midnight();
int moonlight = 1 + int(moon()) * MOONLIGHT_LEVEL;
if (mins > sunset_mins + TWILIGHT_MINUTES || mins < sunrise_mins) // Night
return moonlight;
else if (mins >= sunrise_mins && mins <= sunrise_mins + TWILIGHT_MINUTES) {
double percent = double(mins - sunrise_mins) / TWILIGHT_MINUTES;
return int( double(moonlight) * (1. - percent) +
double(DAYLIGHT_LEVEL) * percent );
} else if (mins >= sunset_mins && mins <= sunset_mins + TWILIGHT_MINUTES) {
double percent = double(mins - sunset_mins) / TWILIGHT_MINUTES;
return int( double(DAYLIGHT_LEVEL) * (1. - percent) +
double(moonlight) * percent );
} else
return DAYLIGHT_LEVEL;
}
std::string calendar::print_time(bool just_hour) const
{
std::stringstream time_string;
if (OPTIONS[OPT_24_HOUR] == 1)
{
int hour_param = hour % 24;
if (hour_param < 10)
{
time_string << "0";
}
time_string << hour_param;
}
else if (OPTIONS[OPT_24_HOUR] == 2)
{
int hour_param = hour % 24;
time_string << hour_param;
if (!just_hour) time_string << ":";
}
else
{
int hour_param = hour % 12;
if (hour_param == 0)
{
hour_param = 12;
}
time_string << hour_param;
if (!just_hour) time_string << ":";
}
if(!just_hour)
{
if (minute < 10)
{
time_string << "0";
}
time_string << minute;
}
if (OPTIONS[OPT_24_HOUR] == 0)
{
if (hour < 12)
{
time_string << " AM";
}
else
{
time_string << " PM";
}
}
return time_string.str();
}
std::string calendar::textify_period()
{
standardize();
std::stringstream ret;
int am;
std::string tx;
// Describe the biggest time period, as "<am> <tx>s", am = amount, tx = name
if (year > 0) {
am = year;
tx = "year";
} else if (season > 0) {
am = season;
tx = "season";
} else if (day > 0) {
am = day;
tx = "day";
} else if (hour > 0) {
am = hour;
tx = "hour";
} else if (minute >= 5) {
am = minute;
tx = "minute";
} else {
am = second / 6 + minute * 10;
tx = "turn";
}
ret << am << " " << tx << (am > 1 ? "s" : "");
return ret.str();
}
std::string calendar::day_of_week() const
{
// Design rationale
// <kevingranade> here's a question
// <kevingranade> what day of the week is day 0?
// <wito> Sunday
// <GlyphGryph> Why does it matter?
// <GlyphGryph> For like where people are and stuff?
// <wito> 7 is also Sunday
// <kevingranade> NOAA weather forecasts include day of week
// <GlyphGryph> Also by day0 do you mean the day people start day 0
// <GlyphGryph> Or actual day 0
// <kevingranade> good point, turn 0
// <GlyphGryph> So day 5
// <wito> Oh, I thought we were talking about week day numbering in general.
// <wito> Day 5 is a thursday, I think.
// <wito> Nah, Day 5 feels like a thursday. :P
// <wito> Which would put the apocalpyse on a saturday?
// <Starfyre> must be a thursday. I was never able to get the hang of those.
// <ZChris13> wito: seems about right to me
// <wito> kevingranade: add four for thursday. ;)
// <kevingranade> sounds like consensus to me
// <kevingranade> Thursday it is
enum weekday
{
THURSDAY = 0,
FRIDAY = 1,
SATURDAY = 2,
SUNDAY = 3,
MONDAY = 4,
TUESDAY = 5,
WEDNESDAY = 6
};
// calendar::day gets mangled by season transitions, so reclaculate days since start.
int current_day = day % 7;
std::string day_string;
switch (current_day)
{
case SUNDAY:
day_string = "Sunday";
break;
case MONDAY:
day_string = "Monday";
break;
case TUESDAY:
day_string = "Tuesday";
break;
case WEDNESDAY:
day_string = "Wendsday";
break;
case THURSDAY:
day_string = "Thursday";
break;
case FRIDAY:
day_string = "Friday";
break;
case SATURDAY:
day_string = "Saturday";
break;
}
return day_string;
}
-102
View File
@@ -1,102 +0,0 @@
#ifndef _CALENDAR_H_
#define _CALENDAR_H_
#include <string>
// Convert minutes, hours, days to turns
#define MINUTES(x) ((x) * 10)
#define HOURS(x) ((x) * 600)
#define DAYS(x) ((x) * 14400)
// Times for sunrise, sunset at equinoxes
#define SUNRISE_WINTER 7
#define SUNRISE_SOLSTICE 6
#define SUNRISE_SUMMER 5
#define SUNSET_WINTER 17
#define SUNSET_SOLSTICE 19
#define SUNSET_SUMMER 21
// How long, in minutes, does sunrise/sunset last?
#define TWILIGHT_MINUTES 60
// How much light moon provides--double for full moon
#define MOONLIGHT_LEVEL 4
// How much light is provided in full daylight
#define DAYLIGHT_LEVEL 60
enum season_type {
SPRING = 0,
SUMMER = 1,
AUTUMN = 2,
WINTER = 3
#define FALL AUTUMN
};
enum moon_phase {
MOON_NEW = 0,
MOON_HALF,
MOON_FULL
};
class calendar
{
private:
// The basic data; note that "second" should always be a multiple of 6
int second;
int minute;
int hour;
int day;
season_type season;
int year;
// End data
public:
calendar();
calendar(const calendar &copy);
calendar(int Minute, int Hour, int Day, season_type Season, int Year);
calendar(int turn);
int get_turn() const;
operator int() const; // Returns get_turn() for backwards compatibility
calendar& operator = (calendar &rhs);
calendar& operator = (int rhs);
calendar& operator -=(calendar &rhs);
calendar& operator -=(int rhs);
calendar& operator +=(calendar &rhs);
calendar& operator +=(int rhs);
calendar operator - (calendar &rhs);
calendar operator - (int rhs);
calendar operator + (calendar &rhs);
calendar operator + (int rhs);
bool operator ==(int rhs) const;
bool operator ==(calendar &rhs) const;
void increment(); // Add one turn / 6 seconds
void standardize(); // Ensure minutes <= 59, hour <= 23, etc.
// Sunlight and day/night calcuations
int minutes_past_midnight() const; // Useful for sunrise/set calculations
moon_phase moon() const; // Find phase of moon
calendar sunrise() const; // Current time of sunrise
calendar sunset() const; // Current time of sunset
bool is_night() const; // After sunset + TWILIGHT_MINUTES, before sunrise
int sunlight() const; // Current amount of sun/moonlight; uses preceding funcs
// Basic accessors
int seconds() const {return second;}
int minutes() const {return minute;}
int hours() const {return hour;}
int days() const {return day;}
season_type get_season() const {return season;}
int years() const {return year;}
void set_season(season_type new_season) {season = new_season;}
// Print-friendly stuff
std::string print_time(bool just_hour = false) const;
std::string textify_period(); // "1 second" "2 hours" "two days"
std::string day_of_week() const;
};
#endif // _CALENDAR_H_
-3
View File
@@ -1,3 +0,0 @@
#!/bin/sh
DIR=`dirname "$0"`
cd $DIR && ./cataclysm
-164
View File
@@ -1,164 +0,0 @@
#ifndef __CATACURSE__
#define __CATACURSE__
#if (defined _WIN32 || defined WINDOWS)
#define _WIN32_WINNT 0x0500
#define WIN32_LEAN_AND_MEAN
//#define VC_EXTRALEAN
#include "windows.h"
#endif
#include <stdio.h>
typedef int chtype;
typedef unsigned short attr_t;
typedef unsigned int u_int32_t;
#define __CHARTEXT 0x000000ff /* bits for 8-bit characters */ //<---------not used
#define __NORMAL 0x00000000 /* Added characters are normal. */ //<---------not used
#define __STANDOUT 0x00000100 /* Added characters are standout. */ //<---------not used
#define __UNDERSCORE 0x00000200 /* Added characters are underscored. */ //<---------not used
#define __REVERSE 0x00000400 /* Added characters are reverse //<---------not used
video. */
#define __BLINK 0x00000800 /* Added characters are blinking. */
#define __DIM 0x00001000 /* Added characters are dim. */ //<---------not used
#define __BOLD 0x00002000 /* Added characters are bold. */
#define __BLANK 0x00004000 /* Added characters are blanked. */ //<---------not used
#define __PROTECT 0x00008000 /* Added characters are protected. */ //<---------not used
#define __ALTCHARSET 0x00010000 /* Added characters are ACS */ //<---------not used
#define __COLOR 0x03fe0000 /* Color bits */
#define __ATTRIBUTES 0x03ffff00 /* All 8-bit attribute bits */ //<---------not used
//a pair of colors[] indexes, foreground and background
typedef struct
{
int FG;//foreground index in colors[]
int BG;//foreground index in colors[]
} pairs;
//The curse character struct, just a char, attribute, and color pair
//typedef struct
//{
// char character;//the ascii actual character
// int attrib;//attributes, mostly for A_BLINK and A_BOLD
// pairs color;//pair of foreground/background, indexed into colors[]
//} cursechar;
//Individual lines, so that we can track changed lines
typedef struct{
bool touched;
char *chars;
char *FG;
char *BG;
//cursechar chars [80];
} curseline;
//The curses window struct
typedef struct {
int x;//left side of window
int y;//top side of window
int width;//width of the curses window
int height;//height of the curses window
int FG;//current foreground color from attron
int BG;//current background color from attron
bool inuse;// Does this window actually exist?
bool draw;//Tracks if the window text has been changed
int cursorx;//x location of the cursor
int cursory;//y location of the cursor
curseline *line;
} WINDOW;
#define A_NORMAL __NORMAL
#define A_STANDOUT __STANDOUT
#define A_UNDERLINE __UNDERSCORE
#define A_REVERSE __REVERSE
#define A_BLINK __BLINK
#define A_DIM __DIM
#define A_BOLD __BOLD
#define A_BLANK __BLANK
#define A_PROTECT __PROTECT
#define A_ALTCHARSET __ALTCHARSET
#define A_ATTRIBUTES __ATTRIBUTES
#define A_CHARTEXT __CHARTEXT
#define A_COLOR __COLOR
#define COLOR_BLACK 0x00 //RGB{0,0,0}
#define COLOR_RED 0x01 //RGB{196, 0, 0}
#define COLOR_GREEN 0x02 //RGB{0,196,0}
#define COLOR_YELLOW 0x03 //RGB{196,180,30}
#define COLOR_BLUE 0x04 //RGB{0, 0, 196}
#define COLOR_MAGENTA 0x05 //RGB{196, 0, 180}
#define COLOR_CYAN 0x06 //RGB{0, 170, 200}
#define COLOR_WHITE 0x07 //RGB{196, 196, 196}
#define COLOR_PAIR(n) ((((u_int32_t)n) << 17) & A_COLOR)
//#define PAIR_NUMBER(n) ((((u_int32_t)n) & A_COLOR) >> 17)
#define KEY_MIN 0x101 /* minimum extended key value */ //<---------not used
#define KEY_BREAK 0x101 /* break key */ //<---------not used
#define KEY_DOWN 0x102 /* down arrow */
#define KEY_UP 0x103 /* up arrow */
#define KEY_LEFT 0x104 /* left arrow */
#define KEY_RIGHT 0x105 /* right arrow*/
#define KEY_HOME 0x106 /* home key */ //<---------not used
#define KEY_BACKSPACE 0x107 /* Backspace */ //<---------not used
#define KEY_NPAGE 0x152 /* page down */
#define KEY_PPAGE 0x153 /* page up */
#define KEY_ENTER 0x157 /* enter */
/* Curses external declarations. */
#define stdscr 0
//WINDOW *stdscr; //Define this for portability, strscr will basically be window[0] anyways
#define getmaxyx(w, y, x) (y = getmaxy(w), x = getmaxx(w))
//Curses Functions
#define ERR (-1) /* Error return. */
#define OK (0) /* Success return. */
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 wrefresh(WINDOW *win);
int refresh(void);
int getch(void);
int wgetch(WINDOW* win);
int mvgetch(int y, int x);
int mvwgetch(WINDOW* win, int y, int x);
int mvwprintw(WINDOW *win, int y, int x, const char *fmt, ...);
int mvprintw(int y, int x, const char *fmt, ...);
int werase(WINDOW *win);
int start_color(void);
int init_pair(short pair, short f, short b);
int wmove(WINDOW *win, int y, int x);
int getnstr(char *str, int size);
int clear(void);
int clearok(WINDOW *win);
int erase(void);
int endwin(void);
int mvwaddch(WINDOW *win, int y, int x, const chtype ch);
int wclear(WINDOW *win);
int wprintw(WINDOW *win, const char *fmt, ...);
WINDOW *initscr(void);
int cbreak(void);//PORTABILITY, DUMMY FUNCTION
int keypad(WINDOW *faux, bool bf);//PORTABILITY, DUMMY FUNCTION
int curs_set(int visibility);//PORTABILITY, DUMMY FUNCTION
int mvaddch(int y, int x, const chtype ch);
int wattron(WINDOW *win, int attrs);
int wattroff(WINDOW *win, int attrs);
int attron(int attrs);
int attroff(int attrs);
int waddch(WINDOW *win, const chtype ch);
int printw(const char *fmt,...);
int getmaxx(WINDOW *win);
int getmaxy(WINDOW *win);
int getbegx(WINDOW *win);
int getbegy(WINDOW *win);
int move(int y, int x);
void timeout(int delay);//PORTABILITY, DUMMY FUNCTION
void set_escdelay(int delay);//PORTABILITY, DUMMY FUNCTION
int echo(void);
int noecho(void);
//non-curses functions, Do not call these in the main game code
void WinDestroy();
bool WinCreate(bool initgl);
void CheckMessages();
int FindWin(WINDOW *wnd);
#endif
-316
View File
@@ -1,316 +0,0 @@
#include "catajson.h"
#include "output.h"
#include <string>
#include <iostream>
#include <fstream>
#include <sstream>
catajson::catajson()
{
path_msg = "";
}
catajson::catajson(std::string path)
{
std::ifstream file;
file.open(path.c_str());
file >> val;
file.close();
path_msg = path;
std::string err = picojson::get_last_error();
if (! err.empty()) {
debugmsg("Parse error in %s.\n\nERROR: %s\n", path.c_str(), err.c_str());
}
}
catajson::catajson(picojson::value val_in, std::string path_msg_in)
{
val = val_in;
path_msg = path_msg_in;
}
char catajson::as_char() const
{
std::string temp = as_string();
if (temp.size() != 1)
{
debugmsg("JSON warning at %s: value requested as char, string length is not 1", path_msg.c_str());
}
return temp[0];
}
std::string catajson::as_string() const
{
if (val.is<std::string>())
{
return val.get<std::string>();
}
else
{
debugmsg("JSON error at %s: value is not a string", path_msg.c_str());
}
return "";
}
int catajson::as_int() const
{
double temp = as_double();
int ret = static_cast<int>(temp);
if (ret != temp)
{
debugmsg("JSON warning at %s: value was requested as int, provided as double", path_msg.c_str());
}
return ret;
}
bool catajson::as_bool() const
{
if (val.is<bool>())
{
return val.get<bool>();
}
else
{
debugmsg("JSON error at %s: value is not a boolean", path_msg.c_str());
}
return val.evaluate_as_boolean();
}
double catajson::as_double() const
{
if (val.is<double>())
{
return val.get<double>();
}
else
{
debugmsg("JSON error at %s: value is not numeric", path_msg.c_str());
}
return 0;
}
std::set<std::string> catajson::as_tags()
{
std::set<std::string> tags;
if (is_array())
{
for (set_begin(); has_curr(); next())
{
tags.insert( curr().as_string() );
}
}
else
{
// We should have gotten a string, if not an array.
tags.insert( as_string() );
}
return tags;
}
catajson catajson::get(std::string key) const
{
if (val.is<picojson::object>())
{
if (has(key))
{
return catajson(val.get(key), path_msg + "[" + key + "]");
}
else
{
debugmsg("JSON error at %s[%s]: value does not exist", path_msg.c_str(), key.c_str());
}
}
else
{
debugmsg("JSON error at %s: value is not an object", path_msg.c_str());
}
return catajson();
}
catajson catajson::get(int index) const
{
if (val.is<picojson::array>())
{
if (has(index))
{
std::stringstream text;
text << path_msg << "[" << index << "]";
return catajson(val.get(index), text.str());
}
else
{
debugmsg("JSON error at %s[%d]: value does not exist", path_msg.c_str(), index);
}
}
else
{
debugmsg("JSON error at %s: value is not an array", path_msg.c_str());
}
return catajson();
}
bool catajson::has(std::string key) const
{
if (val.is<picojson::object>())
{
return val.contains(key);
}
else
{
debugmsg("JSON error at %s: value is not an object", path_msg.c_str());
}
return false;
}
bool catajson::has(int index) const
{
if (val.is<picojson::array>())
{
return val.contains(index);
}
else
{
debugmsg("JSON error at %s: value is not an array", path_msg.c_str());
}
return false;
}
bool catajson::is_char() const
{
return is_string() && as_string().size() == 1;
}
bool catajson::is_string() const
{
return val.is<std::string>();
}
bool catajson::is_number() const
{
return val.is<double>();
}
bool catajson::is_bool() const
{
return val.is<bool>();
}
bool catajson::is_object() const
{
return val.is<picojson::object>();
}
bool catajson::is_array() const
{
return val.is<picojson::array>();
}
void catajson::set_begin()
{
if (val.is<picojson::array>())
{
ar_iter = val.get<picojson::array>().begin();
}
else if (val.is<picojson::object>())
{
obj_iter = val.get<picojson::object>().begin();
}
else
{
debugmsg("JSON error at %s: cannot call set_begin(), value is not an array or object", path_msg.c_str());
}
}
void catajson::set_end()
{
if (val.is<picojson::array>())
{
ar_iter = val.get<picojson::array>().end();
}
else if (val.is<picojson::object>())
{
obj_iter = val.get<picojson::object>().end();
}
else
{
debugmsg("JSON error at %s: cannot call set_end(), value is not an array or object", path_msg.c_str());
}
}
void catajson::next()
{
if (val.is<picojson::array>())
{
++ar_iter;
}
else if (val.is<picojson::object>())
{
++obj_iter;
}
else
{
debugmsg("JSON error at %s: tried to iterate an invalid value", path_msg.c_str());
}
}
void catajson::prev()
{
if (val.is<picojson::array>())
{
--ar_iter;
}
else if (val.is<picojson::object>())
{
--obj_iter;
}
else
{
debugmsg("JSON error at %s: tried to iterate an invalid value", path_msg.c_str());
}
}
bool catajson::has_curr() const
{
if (val.is<picojson::array>())
{
if (ar_iter >= val.get<picojson::array>().begin() && ar_iter < val.get<picojson::array>().end())
{
return true;
}
}
else if (val.is<picojson::object>())
{
return has(obj_iter->first);
}
else
{
debugmsg("JSON error at %s: not an array or object", path_msg.c_str());
}
return false;
}
catajson catajson::curr() const
{
if (val.is<picojson::array>())
{
const int count = val.get<picojson::array>().size();
for (int i = 0; i < count; ++i)
{
if (val.get(i) == *ar_iter)
{
return get(i);
}
}
}
else if (val.is<picojson::object>())
{
return get(obj_iter->first);
}
else
{
debugmsg("JSON error at %s: not an array or object", path_msg.c_str());
}
return catajson();
}
-53
View File
@@ -1,53 +0,0 @@
#ifndef _CATAJSON_H_
#define _CATAJSON_H_
#include "picojson.h"
#include <set>
class catajson
{
public:
catajson();
catajson(std::string path);
catajson(picojson::value val, std::string path_msg);
// accessors for picojson values containing simple types
char as_char() const;
std::string as_string() const;
int as_int() const;
bool as_bool() const;
double as_double() const;
// accessor for not-so-simple type
std::set<std::string> as_tags();
// accessors in the case of array or object values
catajson get(std::string key) const;
catajson get(int index) const;
//these check whether a given key/index is valid
bool has(std::string key) const;
bool has(int index) const;
bool is_char() const;
bool is_string() const;
bool is_number() const; // double OR int
bool is_bool() const;
bool is_object() const; // string-value pairs
bool is_array() const;
// these are intended for use in iteration
// STL-style iterators are acceptable too, if anyone wants to add them
void set_begin(); // start iterating from the beginning
void set_end(); // start iterating from the end
void next(); // caller's responsibility to init first
void prev(); // caller's responsibility to init first
bool has_curr() const; // would curr() be valid?
catajson curr() const; // get the current element
private:
picojson::value val;
picojson::array::const_iterator ar_iter;
picojson::object::const_iterator obj_iter;
std::string path_msg; // used for error messages
};
#endif
+11
View File
@@ -0,0 +1,11 @@
---
layout: page
title: Changes
permalink: /changes/
---
{% for pull in site.github.pulls %}
{{ pull.title }}
------------------
{{ pull.body }}
{% endfor %}
-85
View File
@@ -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).
-84
View File
@@ -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
-121
View File
@@ -1,121 +0,0 @@
#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
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
enums it might use.
gamemode.cpp is also important, if short. It contains two functions:
special_game_name() returns the name of each special game.
get_special_game() returns a pointer to a special game of the proper
type.
Also of note are tutorial.h (houses text snippets for tutorials), and
tutorial.cpp and defense.cpp, which house code for tutorials and defense games
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
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.
The game class holds a pointer to a special_game. The five functions are
called as is appropriate, and thus are cast to the proper function in a child
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()
virtual special_game_id id();
Returns the special_game_id assigned to your game mode.
#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
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.
#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
#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,
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
#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
#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
-32
View File
@@ -1,32 +0,0 @@
Stat system scaling:
Minimum stat: 1 (should only happen due to penalties)
Nominal stat: 8 ("average" person)
Very high stat: ? (realistic world class human)
Maximal stat: 20 (higher may be achievable, but we're not worried about balancing at that point.)
Skill system scaling:
Minimum skill: 0 (no training)
Maximum skill: 10 (requires regular training to maintain)
Monster melee skill scaling:
Ranges from 8 to 16
Dodge System assumptions:
Dodge chance is based on attacker's melee skill and target's dex stat and dodge skill.
Successful dodges negate the attack and impose a cumulative penalty on dodges within the same turn.
Dodge Use Cases:
An individual with no skill and nominal stats in ideal circumstances against a basic opponent should occasionally be able to dodge.
An individual with no skill and nominal stats in ideal corcumstances against a skilled opponent should rarely if ever be able to dodge.
An individual with world-class dodging ability, in ideal circumstances against a basic opponent should have a negligible chance of failure.
An individual with world-class dodging ability, in ideal circumstances against a skilled opponent should have a moderate chance of failure.
The effect of increasing dodge skill has a growth rate with diminishing returns that accelerates sharply at the point where you move beyond the dodge a "regular" character is likely to achieve (7 and above)
The balance of melee versus dodge should favour dodge which, after all, isn't effective against a wide variety of other types of attacks.
Even a world class dodger should not be able to dodge continuously when attacked many times a turn.
-258
View File
@@ -1,258 +0,0 @@
NOTABLE BUGS:
Factions cannot be saved at all, or they corrupt the master save file
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
code for placing an NPC REALLY WORKS, so that shopkeepers stay where
they're supposed to.
Most settlements belong to a faction; its citizens should too (mostly?)
Factions already get generated and placed in the world, but they have no
effect on it. Once NPCs are working, place faction patrols in the world.
Factions could control radio towers, spewing propaganda or using it to
recruit or start missions
Factions could have projects; exterminating the zombies in a given town,
clearing a particular forest, paving a new road!
Replace the Skills tab in character creation with a Class tab
Classes come with a set of items and the skills needed to use them
e.g. a handgun, ammo, & holster, plus handgun & firearms skills
Cap at one class? Or make it mix-and-match, purchasable with points?
Mix-and-match has the problem of giving the player too many
items to store, unless we start them with a backpack
Maybe add a trait that allows a player to take 2 classes
Classes may also have unique effects upon the game
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
Hellraiser: High level Void monsters could be Cenobites.
Bladerunner: "Androids And The People Who Kill Them"
Steam powered robots (built by post-apoc factions)
Wild Wild West, Miyazaki, Iron Giant, Neverhood, etc. etc.
2001: Get locked in a chamber with an insane computer which you must
disable
What are the other great "insane computer" movies?
Logan's Run: A faction that kills people when they reach 30
Six-String Samurai: Like, all the bad guys. Wind People.
Nausicaa: Radiation-purifying mushroom forests
They Live!: Special glasses that let you see "reality" somehow
Hidden doors? Some people are really disguised monsters?
Indiana Jones: Archeologist class, religious artifacts
The Warriors: Making gangs (basically small factions) with cool themes
and costumes would be nice.
Dr Strangelove: Mineshafts converted into bunkers; quotes
Ghostbusters: Weapons! Maybe ghosts.
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
nutrition) never causes puking, which allows players to exploit cola by
drinking 10 at once.
Possible solutions:
>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;
Sewage treatment plant?
Underwater monster lair?
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
Make computer usage more widespread and more convincing. Possibly add a
class for computer networks; an area on the overmap, protected by a password.
Once you hack the password, you gain access to certain commands on computers
found inside that area.
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
or two to open (or very high strength)
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
Show skill erosion rate on stats tab (modded by Forgetful)
Greater transparency for skill comprehension (at level 0, 4, 8, etc.)
Show food consumption rate? (Modified by Light Eater)
Should high Strength increase this rate?
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
List specific effects on gameplay mechanics in the Skills tab, comparable to
those listed in the Stats tab.
TRAITS:
More Schizophrenic effects
Make auditory hallucinations more realistic/varied
Balance/fix/remove Jittery
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
Macros--are they necessary or useful at all?
-188
View File
@@ -1,188 +0,0 @@
#include "color.h"
#define HILIGHT COLOR_BLUE
void init_colors()
{
start_color();
init_pair( 1, COLOR_WHITE, COLOR_BLACK );
init_pair( 2, COLOR_RED, COLOR_BLACK );
init_pair( 3, COLOR_GREEN, COLOR_BLACK );
init_pair( 4, COLOR_BLUE, COLOR_BLACK );
init_pair( 5, COLOR_CYAN, COLOR_BLACK );
init_pair( 6, COLOR_MAGENTA, COLOR_BLACK );
init_pair( 7, COLOR_YELLOW, COLOR_BLACK );
// Inverted Colors
init_pair( 8, COLOR_BLACK, COLOR_WHITE );
init_pair( 9, COLOR_BLACK, COLOR_RED );
init_pair(10, COLOR_BLACK, COLOR_GREEN );
init_pair(11, COLOR_BLACK, COLOR_BLUE );
init_pair(12, COLOR_BLACK, COLOR_CYAN );
init_pair(13, COLOR_BLACK, COLOR_MAGENTA);
init_pair(14, COLOR_BLACK, COLOR_YELLOW );
// Highlighted - blue background
init_pair(15, COLOR_WHITE, HILIGHT);
init_pair(16, COLOR_RED, HILIGHT);
init_pair(17, COLOR_GREEN, HILIGHT);
init_pair(18, COLOR_BLUE, HILIGHT);
init_pair(19, COLOR_CYAN, HILIGHT);
init_pair(20, COLOR_BLACK, HILIGHT);
init_pair(21, COLOR_MAGENTA, HILIGHT);
init_pair(22, COLOR_YELLOW, HILIGHT);
// Red background - for monsters on fire
init_pair(23, COLOR_WHITE, COLOR_RED);
init_pair(24, COLOR_RED, COLOR_RED);
init_pair(25, COLOR_GREEN, COLOR_RED);
init_pair(26, COLOR_BLUE, COLOR_RED);
init_pair(27, COLOR_CYAN, COLOR_RED);
init_pair(28, COLOR_MAGENTA, COLOR_RED);
init_pair(29, COLOR_YELLOW, COLOR_RED);
init_pair(30, COLOR_BLACK, COLOR_BLACK );
}
int color_to_int(nc_color col)
{
switch (col) {
case c_black : return 0;
case c_white : return 1;
case c_ltgray : return 2;
case c_dkgray : return 3;
case c_red : return 4;
case c_green : return 5;
case c_blue : return 6;
case c_cyan : return 7;
case c_magenta: return 8;
case c_brown : return 9;
case c_ltred : return 10;
case c_ltgreen: return 11;
case c_ltblue : return 12;
case c_ltcyan : return 13;
case c_pink : return 14;
case c_yellow : return 15;
case h_black : return 16;
case h_white : return 17;
case h_ltgray : return 18;
case h_dkgray : return 19;
case h_red : return 20;
case h_green : return 21;
case h_cyan : return 23;
case h_magenta: return 24;
case h_brown : return 25;
case h_ltred : return 26;
case h_ltgreen: return 27;
case h_ltblue : return 28;
case h_ltcyan : return 29;
case h_pink : return 30;
case h_yellow : return 31;
case i_white : return 33;
case i_ltgray : return 34;
case i_dkgray : return 35;
case i_red : return 36;
case i_green : return 37;
case i_blue : return 38;
case i_cyan : return 39;
case i_magenta: return 40;
case i_brown : return 41;
case i_ltred : return 42;
case i_ltgreen: return 43;
case i_ltblue : return 44;
case i_ltcyan : return 45;
case i_pink : return 46;
case i_yellow : return 47;
case c_white_red : return 48;
case c_ltgray_red : return 49;
case c_green_red : return 52;
case c_blue_red : return 53;
case c_cyan_red : return 54;
case c_magenta_red: return 55;
case c_brown_red : return 56;
case c_ltred_red : return 57;
case c_ltgreen_red: return 58;
case c_ltblue_red : return 59;
case c_ltcyan_red : return 60;
case c_pink_red : return 61;
case c_yellow_red : return 62;
}
return 0;
}
nc_color int_to_color(int key)
{
switch (key) {
case 0: return c_black ;
case 1: return c_white ;
case 2: return c_ltgray ;
case 3: return c_dkgray ;
case 4: return c_red ;
case 5: return c_green ;
case 6: return c_blue ;
case 7: return c_cyan ;
case 8: return c_magenta;
case 9: return c_brown ;
case 10: return c_ltred ;
case 11: return c_ltgreen;
case 12: return c_ltblue ;
case 13: return c_ltcyan ;
case 14: return c_pink ;
case 15: return c_yellow ;
case 16: return h_black ;
case 17: return h_white ;
case 18: return h_ltgray ;
case 19: return h_dkgray ;
case 20: return h_red ;
case 21: return h_green ;
case 22: return h_blue ;
case 23: return h_cyan ;
case 24: return h_magenta;
case 25: return h_brown ;
case 26: return h_ltred ;
case 27: return h_ltgreen;
case 28: return h_ltblue ;
case 29: return h_ltcyan ;
case 30: return h_pink ;
case 31: return h_yellow ;
case 32: return i_black ;
case 33: return i_white ;
case 34: return i_ltgray ;
case 35: return i_dkgray ;
case 36: return i_red ;
case 37: return i_green ;
case 38: return i_blue ;
case 39: return i_cyan ;
case 40: return i_magenta;
case 41: return i_brown ;
case 42: return i_ltred ;
case 43: return i_ltgreen;
case 44: return i_ltblue ;
case 45: return i_ltcyan ;
case 46: return i_pink ;
case 47: return i_yellow ;
case 48: return c_white_red ;
case 49: return c_ltgray_red ;
case 50: return c_dkgray_red ;
case 51: return c_red_red ;
case 52: return c_green_red ;
case 53: return c_blue_red ;
case 54: return c_cyan_red ;
case 55: return c_magenta_red;
case 56: return c_brown_red ;
case 57: return c_ltred_red ;
case 58: return c_ltgreen_red;
case 59: return c_ltblue_red ;
case 60: return c_ltcyan_red ;
case 61: return c_pink_red ;
case 62: return c_yellow_red ;
}
return c_black;
}
-94
View File
@@ -1,94 +0,0 @@
#ifndef _COLOR_H_
#define _COLOR_H
#ifndef _COLOR_LIST_
#define _COLOR_LIST_
#include "cursesdef.h"
void init_colors();
enum col_attribute {
WA_NULL = 0,
HI = 1,
INV = 2
};
enum nc_color {
c_black = COLOR_PAIR(30),
c_white = COLOR_PAIR(1) | A_BOLD,
c_ltgray = COLOR_PAIR(1),
c_dkgray = COLOR_PAIR(30) | A_BOLD,
c_red = COLOR_PAIR(2),
c_green = COLOR_PAIR(3),
c_blue = COLOR_PAIR(4),
c_cyan = COLOR_PAIR(5),
c_magenta = COLOR_PAIR(6),
c_brown = COLOR_PAIR(7),
c_ltred = COLOR_PAIR(2) | A_BOLD,
c_ltgreen = COLOR_PAIR(3) | A_BOLD,
c_ltblue = COLOR_PAIR(4) | A_BOLD,
c_ltcyan = COLOR_PAIR(5) | A_BOLD,
c_pink = COLOR_PAIR(6) | A_BOLD,
c_yellow = COLOR_PAIR(7) | A_BOLD,
h_black = COLOR_PAIR(20),
h_white = COLOR_PAIR(15) | A_BOLD,
h_ltgray = COLOR_PAIR(15),
h_dkgray = COLOR_PAIR(20) | A_BOLD,
h_red = COLOR_PAIR(16),
h_green = COLOR_PAIR(17),
h_blue = COLOR_PAIR(20),
h_cyan = COLOR_PAIR(19),
h_magenta = COLOR_PAIR(21),
h_brown = COLOR_PAIR(22),
h_ltred = COLOR_PAIR(16) | A_BOLD,
h_ltgreen = COLOR_PAIR(17) | A_BOLD,
h_ltblue = COLOR_PAIR(18) | A_BOLD,
h_ltcyan = COLOR_PAIR(19) | A_BOLD,
h_pink = COLOR_PAIR(21) | A_BOLD,
h_yellow = COLOR_PAIR(22) | A_BOLD,
i_black = COLOR_PAIR(30),
i_white = COLOR_PAIR(8) | A_BLINK,
i_ltgray = COLOR_PAIR(8),
i_dkgray = COLOR_PAIR(30) | A_BLINK,
i_red = COLOR_PAIR(9),
i_green = COLOR_PAIR(10),
i_blue = COLOR_PAIR(11),
i_cyan = COLOR_PAIR(12),
i_magenta = COLOR_PAIR(13),
i_brown = COLOR_PAIR(14),
i_ltred = COLOR_PAIR(9) | A_BLINK,
i_ltgreen = COLOR_PAIR(10) | A_BLINK,
i_ltblue = COLOR_PAIR(11) | A_BLINK,
i_ltcyan = COLOR_PAIR(12) | A_BLINK,
i_pink = COLOR_PAIR(13) | A_BLINK,
i_yellow = COLOR_PAIR(14) | A_BLINK,
c_white_red = COLOR_PAIR(23) | A_BOLD,
c_ltgray_red = COLOR_PAIR(23),
c_dkgray_red = COLOR_PAIR(9),
c_red_red = COLOR_PAIR(9),
c_green_red = COLOR_PAIR(25),
c_blue_red = COLOR_PAIR(26),
c_cyan_red = COLOR_PAIR(27),
c_magenta_red = COLOR_PAIR(28),
c_brown_red = COLOR_PAIR(29),
c_ltred_red = COLOR_PAIR(24) | A_BOLD,
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
};
int color_to_int(nc_color col);
nc_color int_to_color(int key);
void setattr(nc_color &col, col_attribute attr);
#endif
#endif
-1314
View File
File diff suppressed because it is too large Load Diff
-134
View File
@@ -1,134 +0,0 @@
#ifndef _COMPUTER_H_
#define _COMPUTER_H_
#include "output.h"
#include <vector>
#include <string>
#define DEFAULT_COMPUTER_NAME ""
class game;
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,
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
};
struct computer_option
{
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) {};
};
class computer
{
public:
computer();
computer(std::string Name, int Security);
~computer();
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);
// 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
// Save/load
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?
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
// Called by use()
void activate_function (game *g, computer_action action);
// Generally called when we fail a hack attempt
void activate_random_failure(game *g);
// ...but we can also choose a specific failure.
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();
// Prints a line to the terminal (with printf flags)
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, ...);
// Prints code-looking gibberish
void print_gibberish_line();
// Prints a line and waits for Y/N/Q
char query_ynq(const char *text, ...);
// Same as query_ynq, but returns true for y or Y
bool query_bool(const char *text, ...);
// Simply wait for any key, returns True
bool query_any(const char *text, ...);
};
#endif
-1167
View File
File diff suppressed because it is too large Load Diff
-77
View File
@@ -1,77 +0,0 @@
bool able_window(game *, point); // Any window tile#include <vector>
#include <string>
#include "crafting.h"
struct construct;
struct construction_stage
{
ter_id terrain;
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) { };
};
struct constructable
{
int id;
std::string name; // Name as displayed
int difficulty; // Carpentry skill level required
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) {};
};
struct construct // Construction functions.
{
// Bools - able to build at the given point?
bool able_always(game *, point) { return true; }
bool able_never (game *, point) { return false; }
bool able_empty (game *, point); // Able if tile is empty
bool able_window(game *, point); // Any window tile
bool able_make_window(game *, point); // Any window tile or empty
bool able_empty_window(game *, point); // Empty window tiles
bool able_window_pane(game *, point); // Only intact windows
bool able_broken_window(game *, point); // Able if tile is broken window
bool able_door(game *, point); // Any door tile
bool able_door_broken(game *, point); // Broken door
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
bool able_dig(game *, point); // Able if diggable terrain
bool able_chainlink(game *, point); // Able on chain link fences
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_furniture(game *, point); // Able on furniture
bool able_deconstruct(game *, point);
// Does anything special happen when we're finished?
void done_nothing(game *, point) { }
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_tape(game *, point);
void done_deconstruct(game *, point);
};
+56
View File
@@ -0,0 +1,56 @@
---
layout: page
title: "Contribution Guidelines"
permalink: /contributions/
---
# Contribute
**Opening a new issue?** Please read our [issue guidelines]({{ site.baseurl }}{% link pages/issues.md %}) first.
**Contributing code?** Check the [code contribution guidelines]({{ site.baseurl }}{% link pages/code_contributions.md %}).
**Investigating bugs?** These [debugging commands]({{ site.baseurl }}{% link pages/debugging.md %}) can help.
**Need help with git?** [git howto]({{ site.baseurl }}{% link pages/branch_management.md %}) might be what you're looking for.
Contributing code or data to Cataclysm: Dark Days Ahead is easy - simply fork the repository on our [GitHub](https://github.com/CleverRaven/Cataclysm-DDA/), make your changes, and then send us a pull request.
Cataclysm: Dark Days Ahead is released under the Creative Commons Attribution ShareAlike 3.0 license. The code and content of the game is free to use, modify, and redistribute for any purpose whatsoever. See [https://creativecommons.org/licenses/by-sa/3.0/](https://creativecommons.org/licenses/by-sa/3.0/) for details.
This means any contribution you make to the project will also be covered by the same license, and this license is irrevocable.
## Guidelines
There are a couple of guidelines we suggest sticking to:
* Add the repository as an `upstream` remote.
* Keep your `master` branch clean. This means you can easily pull changes made to this repository into yours.
* Create a new branch for each new feature or set of related bug fixes.
* Never merge from your local branches into your `master` branch. Only update `master` by pulling from `upstream/master`.
## Frequently Asked Questions
#### Why does `git pull --ff-only` result in an error?
If `git pull --ff-only` shows an error, it means that you've committed directly to your local `master` branch. To fix this, you can create a new branch with these commits, find the point at which you diverged from `upstream/master`, and then reset `master` to that point.
$ git pull --ff-only upstream master
From https://github.com/CleverRaven/Cataclysm-DDA
* branch master -> FETCH_HEAD
fatal: Not possible to fast-forward, aborting.
$ git branch new_branch master # mark the current commit with a tmp branch
$ git merge-base master upstream/master
cc31d0... # the last commit before we committed directly to master
$ git reset --hard cc31d0....
HEAD is now at cc31d0... ...
Now that `master` has been cleaned up, you can easily pull from `upstream/master`, and then continue working on `new_branch`.
$ git pull --ff-only upstream master
# gets changes from the "upstream" remote for the matching branch, in this case "master"
$ git checkout new_branch
#### How does the project work anyway?
I-am-Erk has written a guide outlining project governance.
https://github.com/CleverRaven/Cataclysm-DDA/blob/master/doc/development_process.md
-1634
View File
File diff suppressed because it is too large Load Diff
-67
View File
@@ -1,67 +0,0 @@
#ifndef _CRAFTING_H_
#define _CRAFTING_H_
#include <string>
#include <vector>
#include <map>
#include "itype.h"
#include "skill.h"
#include "rng.h"
#define MAX_DISPLAYED_RECIPES 18
typedef std::string craft_cat;
struct component
{
itype_id type;
int count;
int available; // -1 means the player doesn't have the item, 1 means they do,
// 0 means they have item but not enough for both tool and component
component() { type = "null"; count = 0; available = -1;}
component(itype_id TYPE, int COUNT) : type (TYPE), count (COUNT), available(-1) {}
};
struct recipe {
std::string ident;
int id;
itype_id result;
craft_cat cat;
Skill *sk_primary;
Skill *sk_secondary;
int difficulty;
int time;
bool reversible; // can the item be disassembled?
bool autolearn; // do we learn it just by leveling skills?
int learn_by_disassembly; // what level (if any) do we learn it by disassembly?
std::vector<std::vector<component> > tools;
std::vector<std::vector<component> > components;
recipe() {
id = 0;
result = "null";
sk_primary = NULL;
sk_secondary = NULL;
difficulty = 0;
time = 0;
reversible = false;
autolearn = false;
}
recipe(std::string pident, int pid, itype_id pres, craft_cat pcat, std::string &p1,
std::string &p2, int pdiff, int ptime, bool preversible, bool pautolearn,
int plearn_dis) :
ident (pident), id (pid), result (pres), cat(pcat), difficulty (pdiff), time (ptime),
reversible (preversible), autolearn (pautolearn), learn_by_disassembly (plearn_dis)
{
sk_primary = p1.size()?Skill::skill(p1):NULL;
sk_secondary = p2.size()?Skill::skill(p2):NULL;
}
};
typedef std::vector<recipe*> recipe_list;
typedef std::map<craft_cat, recipe_list> recipe_map;
#endif
-12
View File
@@ -1,12 +0,0 @@
#ifndef _CURSES_DEF_H_
#define _CURSES_DEF_H_
#if (defined TILES || defined _WIN32 || defined WINDOWS)
#include "catacurse.h"
#elif (defined __CYGWIN__)
#include "ncurses/curses.h"
#else
#include <curses.h>
#endif
#endif // CURSES_DEF_H
-3
View File
@@ -1,3 +0,0 @@
# These are both generated if missing at program startup
keymap.txt
options.txt
-3
View File
@@ -1,3 +0,0 @@
fixedsys
8
16
-179
View File
@@ -1,179 +0,0 @@
%
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.
%
Our chemical department has perfected an untargeted stem cell treatment.
Consumption of the treatment will reverse the effects of mutation, and may
even cure congenital defects. This substance has been denoted PE018.
%
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
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
creation of a long-range transportation device eludes us, and one can transfer
no further than 30 meters.
%
I don't know how it happened, but a janitor managed to activate the portal
while cleaning the lab, shifting in an assortment of prehistoric fauna.
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.
%
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.
%
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.
%
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,
slime-like structure as XE037, suggesting a close genetic relationship.
%
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.
%
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.
%
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 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.
%
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
deceased body; revivification only occurs when the subject is exposed to XE037
prior to expiration.
%
S37ZBE, the special investigation into the effects of XE037 on inert human
bodies, has made terrific discoveries. It seems that it occasionally displays
a mutagenic property which manifests itself after termination of the subject,
resulting in a striking variety in postmortem morphology.
%
S37ZBE may be put on indefinite hold shortly. Postmortem morphological
changes have reached extreme levels; this morning one subject nearly doubled
in size, acquiring enough strength to reduce a concrete wall to rubble. It
required a 6 man team, heavily armed, to re-terminate the subject.
%
Jakobson insists that S37ZBE must continue, despite the extreme security and
safety risks. Nearly half of our security forces have been redirected to the
S37ZBE project, simply to deal with the occasional escape of a subject.
%
Jakobson was killed today by one of S37ZBE's subjects; ironic considering how
hard he fought to keep the project active. Alarmingly, his corpse revivified
immediately. This suggests that XE037 may have contaminated the lab at large.
%
Termination of a subject which was never a part of S37ZBE has confirmed my
fears. XE037 has contaminated most, if not all of the laboratory, most
likely via the water supply. Research has started immediately into a process
to destroy XE037 within the human body.
%
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
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.
%
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
possible that it is in the ground water now.
%
An emergency meeting was held today to discuss the possible implications of
widespread XE037 contamination. It was agreed that neutralization must be
instated immediately to prevent a catastrophic event.
%
It has begun. The XE037 contamination has spread for miles, and those who
have since deceased have revivified. It is my fear that extremely large
populations will be decimated by this pandemic. We must find a way to remove
XE037 from revivified bodies.
%
We have even more distressing news than the widespread XE037 contamination,
there are reports of the XE037 mutating into various new variants. See
data files on XE037a - XE037f. Research on the effects of these variants
is ongoing. We do know that XE037d shows signs of PE062 immunity, and
XE037b can revive various breeds of canines. However, revival is not
as guaranteed as standard XE037 humanoid infection. Canine body size seems
to influence the chances. See experiment tXE037b_c.
%
Today we found our solution, quite by accident. It was found that XE037 is
completely removed from a revivified body following a series of extremely-high
energy 4th dimensional transpositions. Unfortunately, this invariably allows
subplane life forms to pass into the prime plan. The cure is worse than the
disease.
%
-186
View File
@@ -1,186 +0,0 @@
Squirrels are pretty yummy, but if you shoot them with a high-powered gun you'll probably be left with no meat! Use a BB gun or maybe a .22 rifle.
Ever run into those big worm things? If you see trails of churned-up dirt, you can be sure they're around.
I got chased last week by some big digging creature. I couldn't see it, but I could tell where it was by the trail of churned-up earth.
Try to stay on the roads as much as you can. Giant worms can't cross them!
Don't relax after killing a giant worm. Little bits of them can break off and still attack!
If you see a big mob of zombies coming, RUN! Trying to fight them all is suicide unless you have a big tactical advantage.
Watch out for those zombies that shriek; they'll let other zombies know where you are, and will attract them from all over.
Those acid-spitting zombies are pretty nasty, but if you're smart, you can get other zombies to wade through the acid.
If there's a pool of acid blocking your way, trying tossing a junk item into it. Eating up items will help neutralize the acid faster.
There's this type of zombie that can shoot bolts of lightning! Stay away from walls and stuff when they do... the electricity can travel along solid surfaces.
Zombie hulks are NASTY, but they're easy to outsmart. If there's other monsters between you and them, they'll kill the monster for you!
If you run into a zombie hulk, it's probably a good idea to run. They're fast as hell, but pretty dumb; they'll try to smash through obstacles rather than going around, and that slows them down a lot.
Zombie brutes and hulks have really tough hide. Don't bother shooting at them with lower-caliber guns, the bullet will bounce right off!
Try not to kill a boomer if it's standing right next to you. They tend to explode when they die, and that pink goop will get all over you.
Skeletons are a tough target. They're so skinny and full of holes that bullets fired at them will usually just fly right past.
Skeletons are too delicate to smash through doors or windows. They also can't smell you, unlike zombies, so if you turn your light off at night you can sneak right past.
Don't try to take on a skeleton with a bladed weapon... you'll just leave scratch marks. You've got to shatter those bones with a hammer or something.
It's a good idea to butcher corpses if you have the time, even if you don't plan on eating them. I've seen these weird zombies bring their friends back from the dead!
Triffids are tough. They've got natural armor, and it takes a lot to bring them down. I don't recommend getting into a fight with them.
Triffids can't see! They figure out where you are by your smell, but if you mask it with smoke or something, you're as good as invisible.
I figured out how to take care of those triffids! Let me just say this: they're made of wood, and wood and fire don't mix.
Have you heard about those queen triffids? You gotta keep your distance from them, unless you like having a tree grow right through your chest.
I have a buddy who was sleeping in this cabin way out in the woods, when he suddenly woke up to trees and vines growing right up through the floor and walls! He said it was some kind of huge triffid making it happen...
Oh man, have you gone down into the old subway systems? I'd be careful... there's these things down there that're like zombies, but tougher.
There's snakes down in most of the old sewer systems. They're slow on land, but boy, those suckers can swim fast!
If you're planning on wandering around the sewers--not that you'd have a reason too--watch out for those fish. Those suckers are fast, and vicious too!
Have you seen those eyebots flying around? It's hard to say, but some faction's controlling them--maybe the military. All I know is, I don't want them taking my picture...
Ever go toe-to-toe with a manhack? Tiny little helicopters covered in knives. Best be packing a shotgun!
They're rare, but molebots are nasty things. They bore through the ground, then pop up to stab ya. Still, you're safe from them if you stay on pavement...
Don't fire your gun if you can help it--the noise attracts monsters!
Standing behind a window is a good tactic. It takes zombies a long time to crawl through, giving you lots of opportunities to hit them.
Zombies are pretty dumb... heck, most monsters are! If you can get a fire going between you and them, they'll just run straight through it.
I know it's tempting to just go full-auto and unload as many bullets as possible, but don't except as a last resort. It's inaccurate and wastes ammo.
If there's a bunch of zombies in a straight line, try unloading a burst from your gun. Be sure to aim at the zombie furthest away; you'll hit more of them that way.
If you shoot a zombie, but don't quite kill it, try to finish it off with a punch or something instead of wasting a bullet.
If you're in a corridor or something, and there's a bunch of zombies chasing you down it, try to wound the guy in front badly. He'll start moving slow and cause a serious traffic jam!
Here's a trick for taking care of a huge swarm of zombies chasing you: head into a liquor store, shoot out as many bottles as you can, then light the alcohol on fire. Then duck out the back door, and watch the zombies run into a burning building!
Sledge hammers may seem like a great weapon, but swinging them is really slow, and you won't do much damage unless you're really strong.
For a good melee weapon, you can't beat a machete. I've seen a guy take down a zombie brute with one! Of course, if you can find a katana, that might be even better...
You know, a glass bottle can make a good weapon in a pinch. If you break it over someone's head, the shattering glass will hurt them extra. Of course, it might hurt your hands, too...
You know what makes a nice weapon? Take a two by four, or a baseball bat or something, and stick a bunch of nails through the end!
BB guns may seem like a joke, but they've got their uses. They're good for hunting small game, or getting to know the basics of rifles.
Crossbows are a great weapon for long term use. Most of the time, you can retrieve the bolt after shooting it, so running out of ammo is less of a concern.
It's good to keep a pistol handy, in case your main gun runs out of ammo or something. They're also better than most guns at short range.
Shotguns are nice; you can take out lots of baddies with a single shot. Just remember that they're noisy as hell, and you might end up attracting more than you kill.
A good submachine gun can't be beat. Most of them use common ammo, they're good at short and long range, and you can burst-fire if you need to!
Hunting rifles are great at long range, but suck close up. Plus, most of them don't carry many rounds. Keep a pistol as a sidearm if you use a rifle.
You know, you don't have to go full auto with an assault rifle. Firing single shots is more accurate and efficient!
I've seen a couple guys running around with laser pistols. They seem like the perfect weapon... quiet, accurate, and deadly. But I've never found one, and I bet ammo is wicked scarce...
When it comes to footwear, you've got two basic choices as far as I see it; sneakers, for running extra fast, or boots for durability. Depends on your style, I guess.
You don't really need to wear gloves most of the time, but once in a while they'll really come in handy.
It's good to keep a filter mask or gas mask handy. You never know when you'll have to go into a smoke-filled room or something.
There's basically no reason not to wear safety glasses... nothing's worse than taking a hit to the eyes and getting blinded for a few seconds.
Ski goggles are a great choice if you're worried about getting stuff in your eyes. Perfect for dealing with boomers!
If you get a pair of night vision goggles, hold on to them! A flashlight will give you away, but with goggles you can be sneaky.
I know they look dumb, but wearing a fanny pack gives you that extra bit of storage without encumbering you.
Backpacks let you carry lots of stuff, but they limit your movement a lot. If you're an unarmed fighter, don't wear one!
Don't underestimate a good book. Not only will it keep you company on lonely nights, but you can learn a hell of a lot from some of them.
It's a good idea to carry around a couple of empty bottles. You can fill them up with water, gasoline, or whatever!
If you need a bunch of rags for making molotov cocktails, take a pair of scissors to an old t-shirt or something.
Carrying a lighter is something all veterans do. It takes up almost no space, and can easily save your life.
If you can spare the space, you might want to carry a fire extinguisher along. Nothing's worse than being trapped in a burning building!
Crowbars not only make a pretty good weapon, they're also useful for opening locked doors and lifting manhole covers.
If you're spending the night in a dangerous area, grab a shovel and dig pits all around your camp.
A chainsaw may seem like a great weapon, but remember that they're slow, unwieldy, and very noisy.
Bubblewrap is pretty harmless, but setting it up around you before going to sleep will keep you from waking up to a zombie punching you.
Beartraps are a nice way to cover an escape. If you place one in a doorway, the first zombie through will get stuck, and the rest won't be able to get past!
Smoke grenades aren't really offensive weapons, but they'll cover up your scent and hide you from view--perfect for making a quick escape.
Don't use molotovs indoors. Especially in a liquor store.
If you're going to be playing with molotov cocktails around a gas station, just make sure you're a long way from those pumps.
I once knew a guy who figured he'd survive a night in the subway by setting fires blocking off the tunnel in both directions and sleeping between them. He wound up asphyxiating on the smoke.
Don't light a molotov until you're ready to throw it. Not only can they go out, but if you accidentally drop it or something, you're in trouble.
If you're weak or clumsy, it might be a good idea not to mess with molotovs or grenades. Accidentally dropping them when you meant to throw them could be deadly.
If you're wandering in the wilderness, or following a road, keep an eye out for wild strawberries or blueberries.
Be careful eating wild mushrooms. Some are poisonous, and others can make you hallucinate.
Try to go around swamps, if you can. Some of them have sinkholes that can pull you right underground.
I heard about this group that raided a bee hive a while ago. Everyone got massacred but one, and he came home with this weird, magic honey stuff.
If you need to, you can swim across a river to escape; most monsters can't swim. Just make sure you drop as much stuff as possible first, and maybe strip naked, or you'll sink like a rock.
Houses can be a surprisingly good resource for all kinds of stuff; clothing, medication, food, books, and more.
While there's not much to loot, gas stations are a good source for gasoline, to power tools or to make molotov cocktails.
It's not like in the movies--shooting a gas pump won't make it explode. But it WILL make it leak all over the place, which is a definite fire hazard.
I know grocery stores and stuff are full of fruit, but be careful, it's probably rotten.
Next time you visit a grocery store, load up on canned goods. They never go bad!
I've found more good weapons in hardware stores than anywhere else. Except gun stores, of course.
Liquor stores are a great place to pick up non-alcoholic beverages, too. Not that I mind alcohol!
Most gun stores follow pretty similar layouts. The restricted stuff--SMGs, assault rifles, and most importantly ammo--are always behind the counter.
I've spent many nights in the changing rooms at the back of clothing stores. Walls on four sides, far from the store's entrance, a corridor for easy defense... it's perfect!
If you're getting chased by a hoard of zombies, try ducking into the subways and traveling a block or two, then coming back up.
Have you seen those weird science labs out in the middle of nowhere? I think you need some kind of special ID card to get in.
I've thought about raiding an ant hill before, but I realized it wasn't worth the risk. I doubt they have any loot beyond some scraps of food, you know?
This guy I know was walking through the subway when he came across a giant rift in the earth, with lava far below. Weird, huh?
In a lot of places, there's little hallways connecting the subways with the sewers, with heavy metal doors on both ends. It's a perfect place to sleep!
Be careful of drinking water from rivers and stuff, it's a good way to get sick. But if you have a water purifier, it'll make it safe.
BIN
View File
Binary file not shown.

Before

Width:  |  Height:  |  Size: 66 KiB

-425
View File
@@ -1,425 +0,0 @@
Changelog will be a little light for the early entries due to me being really bad at documenting things.
0.6
Highlights:
---
* Zombies will revive after a time, if not butchered (or otherwise dealt with).
* The Android trait now behaves the way that the description indicates.
* Gasoline can be siphoned from vehicles. Requires a rubber hose for now - these are easier to acquire.
* Sewing requires materials other than thread - rags for cloth, leather patches for leather, kevlar bricks, plastic chunks.
* Leather/Kevlar/plastic/fur repair/reinforcement actually possible!
* Inventory management UI improvements, and a new screen to organize worn items.
* NPCs continue to be less buggy, but are still prone to crashes.
* Weapon firing code reworked a bit. UI improvements, and you should now be able to fire at anything within range.
* Reworked the armor/protection code.
* Reworked the learning system: replaced XP with Focus. See the relevant help text.
* Added a *bunch* of new multi-stage missions, for those who play with the shelter NPC turned on.
* Many new buildings (See full changelong list)
* Vehicle collision physics are now based on *actual* physics! Reduces collision insanity.
* Option to use triginometric distance instead of roguelike distance. In other words light, line of sight are circular instead of square.
* Zombie density in towns is based on nearby buildings instead of distance from town center.
* Higher-performance (on windows) SDL-based rendering as an optional build type.
* Movement on and around vehicles greatly streamlined.
* Sound indicator lets you know how much noise you're making.
* Turn cost indicator lets you know how long actions take.
* Overkilled monsters now spray gibs around instead of disapearing.
* Mostly remove limits on how many items fit in a tile of ground.
* As usual, many bugfixes.
Full list:
---
Purifier no longer removes traits available at chargen.
Fix some calculations that wanted floating-point math, and were using integer math.
Fix some vehicle collision craziness related to skids.
Added zombie revival. Chance of unbutchered zombie corpses rezzing, once 6 hours have passed.
Advanced inventory UI improvements/fixes.
Dropping count-by-charge items (batteries, meds, etc.) into vehicles will cause restacking.
Android trait always gives a power system bionic.
Fix torso encumbrance display (it's smart about sign use now).
Bitmask-based item flags no longer exist! Instead, we have string-based tags, that have no upper limit.
Tweaked glowstick behavior - can no longer deactivate, and they have a dead state.
Android trait should no longer give the player faulty bionics.
Bolts moved to ammo category, like arrows.
Added bone broth, and recipe.
Adjust how Climate Control bionic works, make vehicles have functioning (magic!) AC.
Added fuel siphoning using rubber hose.
Appearance-improving mutations are now flagged as being good mutations.
Welder charges are actually used during vehicle construction.
Items will no longer become erroneously fitted, and item tags should not spread during map loading.
Weather accounts for starting time properly.
Containers can be unloaded again (they were bugged).
Optimized scentmap updates, hopefully this speeds up certain activities.
Pit-requiring constructions have pit digging as their first two stages, to make it more obvious what the prereqs are.
Some menus (notably, inventory) can be navigated with arrow keys and enter.
Allowing sewing of leather items, make sewing require rags/patches.
Cooking rotten food does not make it magically fresh any more.
Resolves an issue where destroying an item while tailoring would crash the game.
New UI to sort clothing and automatically assign special characters to clothing (accessed via +)
Footwear warmth values tweaked to be more flexible.
Wool warmth is not reduced by rain.
Sofas and armchairs help with sleeping.
Temperature is less of an issue while sleeping.
Warning messages for when the player is cold/hot while sleeping.
Oversized clothing can be worn over anything (blankets, cloaks, etc).
Sound interruptions can be categorically ignored while crafting, reading, etc.
More improvements to the advanced inventory UI.
Shrubs less difficult to smash.
Upgraded versions of Fast Healer still give you bonuses while sleeping.
Soldering iron recipe learnable via disassembly.
Integrated toolset power usage normalized on a few recipes.
Vehicle speed is now taken into account when throwing a character that exits a moving vehicle.
Gasoline lanterns added to the game.
Bifocal glasses added to the game.
Tweak Windows (catacurse) colors.
Correct window border color behavior under Windows.
Add glass jars, make sauces spawn in them instead of in tin cans.
Removed a couple NPC crash bugs.
You can safely exit a vehicle moving less than 1 MPH.
Fix a pair of drawing glitches related to the item pickup window.
Remove the artificial delay when animating vehicle movement.
Out-of-range enemies are still drawn when firing a weapon.
Make it so that anything within range can be targeted with a ranged weapon.
Disassembly recipe for vacuum sealer.
Backspace no longer causes junk to be input during string entry.
The overmap screen now lets you use "<" and ">" to view different z-levels.
Reworked the armor/protection code.
Fridges drop rubber hose instead of pipe when destroyed.
Reworked the learning system: replaced XP with Focus. See the relevant help text.
Autosave should save everything now, rather than a subset.
Fix artifact saving/loading... again.
Added new missions.
Added cathedral to mapgen.
Fixed flamethrowers.
Add 40mm acid bomb shells.
Moving furniture causes noise.
Clothing damage descriptions now depend on the item's material.
Gunmods now show "%" properly in the magazine size line.
Add bicycle seats: low-mass seats that can't take a seatbelt.
Vehicle collision physics are now based on *actual* physics! Reduces collision insanity.
Foraging gives survival experience, even on failure.
Disassembling ammo gives firearms experience.
Ball bearings should hopefully drop now.
Added headlights to a few more default vehicles.
Lab coats can be fitted.
Items in adjacent containers (fridges, lockers, etc.) visible with 'V' screen.
Players can no longer examine sealed crates to see their contents.
Funnels give acid water during acid rain :).
Acid water (after refinement) now an alternate ingredient for acid bombs.
Corrected a few item name typos.
Cleaned up generation of a particular (spiral-y) underground room.
More temperature tweaks.
Being hot makes you MORE thirsty, not less.
Reworked item unloading and reloading a bit to remove bugs.
Flatbed trucks now have rear windows.
Electric cars added as potential vehicle spawns.
Fix some bugs related to known overmap data and leaking the state to other characters.
Effects of current stats are shown on the '@' screen.
Materials obtained from clothing depend on the clothing's damage level.
Fixed some lab mapgen bugs.
Mansions got a little love.
Having too little intelligence for a book is more of a penalty.
Vehicle headlight state is persistent after save-load.
Being hot no longer increases thirst by an unreasonable amount
Minor : temp_conv and dis.intensity are saved, fixing strange on-load inconsistencies
Minor : Diseases that affect speed no longer overwrite eachother in the @ menu
Clothing with pockets provides a bonus to hand warmth when not wielding a weapon.
New large building with basement: Prison
Basement level for hazardous waste sarcophagus.
New building with basement: musterious cabin.
Display recent log messages on player death.
Radiation exposure is now more dangerous
Mutations from radiation can be disabled.
Mutation categories now more dominant.
Added themed mutagens with recipes.
New medical items.
Bundle of plastic bags item for stowing bags.
Rebalance chance of cutting weapons getting stuck, much less likely now.
Smashing corpses prevents them from reviving.
Burning corpses prevents them from reviving.
Stopped players from leaving slime trails or webs while in a vehicle.
Made vitamins have an effect again.
Made multiple gasoline tanks drain properly.
Added tiny pain effect to Acid Drizzle, raincoats now offer a bit of protection to acid rain/drizzle.
Advanced inv: "e" pulls up inventory item menu. Help window displays feedback messages for actions taken. "?" toggles between help and msg viewer.
Eliminate radiation dosage saturation, halving dosage rate to compensate. (radiation is slower, but more implacable)
Fitting screen now shows storage and encumbrance in item columns.
Added leather vest item and crafting recipe.
avoid use of pow() in distance calculation, speeding them up an order of magnitude.
Make blood filter remove all other drug based diseases.
Make blood analysis detect all drugs.
Behold, sharpie markers.
Display actual keymapping instead of default one in most help text.
Stopped bleeding, bites, and poison from applying when stopped by armor.
Safely hop from slow-moving vehicles, get hurt from quick ones.
Multidrop screen now shows a summary of what is about to be dropped.
Sort inventory by item charges, use low-charge items first.
Option to auto-save before sleep.
Lava burns things and can be used for crafting.
Multiple fixes to burst-fire targeting.
Prevent turrets from shooting themselves.
Prevent friendly turrets from trying to shoot through the player.
Brasas catcher item to catch your brass for recrafting.
More power armor variants.
Make movement take half the cost of both the beginning and end tiles, instead of just taking the cost of the end tile.
Made shooting interactions more realistic.
Add radiation badge item and associated infrastructure.
Automagically add new keybindings, so long as they don't conflict.
Significantly reduces the number of giant worms.
Adds strawberry bushes.
Advanced inventory: Add [c]ategory sort.
Large number of added archery items: Wide range of bows crossbows, and arrows, and a multitude of crafting recipes.
Stop unnecessaraly saving adjacent overmaps every time they are potentially dirtied. (prevents periodic pauses!)
Hard Leg Guards and Metal Leg guards.
Picking berry bushes trains survival (at low levels).
Added skill support into professions.
======
0.5
Highlights:
---
* Many new details added to mapgen! New buildings, ruined vehicles on roads, and so on.
* Much more modding-friendly: MANY bits of data have been moved into data files, rather than being hardcoded in the source.
* A handful of recipes can be learned from sources other than just leveling your skills.
* Artifacts should save/load properly now!
* Assorted UI tweaks and improvements.
* Weather radio and directional antenna.
* Rain funnels - first step towards proper rain barrels.
* Robust Genetics and dodging have both been significantly rebalanced, and should actually be useful.
* Zombies wear damaged clothing.
* Tailoring is more important, and string is easier to acquire.
* New content all around!
* Numerous bugfixes.
Full list:
---
Matches usable anywhere lighters could be used previously.
Draw lit areas outside of LOS and normal sight radius the same as unlit areas
Tell the player when their gear is damaged in combat
Display player feat morale boosts
Pickling/canning
Only rust skill if X turns have passed since practice, not every x turns.
Halve rate of skill rust across the board.
Push crafting recipes out to JSON - now moddable without recompiling!
Acid rain causes pain not injury
Changed default viewmorale key to v
Learn crafting recipes from item disassembly or books.
New Hardcore trait
Other new traits: Skilled Liar, Pretty, Beautiful, Very Beautiful, Glorius (cancels truth-teller, ugly mutations)
Set minimum move to 25
Death by starvation or thirst
New professions: tailor, scoundrel
Adjusted conditions for cutting and stabbing skill practice (should be able to practice piercing now)
Code compiles with no warnings. No user-visible change, but important stability milestone.
Added a craftable power armor power interface CBM, solar panels.
Continuous reading.
New mixed drinks
A new book; "To Serve Man"
Glowsticks, found in sporting goods stores and bedrooms.
Broken and Empty windows can no longer be taped up, alarmed windows can.
Palisade walls changed to require 2 6foot ropes rather than one thirty foot one.
Domestic Windows drop strings now (Those are the kind that can be opened)
String can be made from sinew and plant fibre.
Added blankets, fur blankets (craft only), emergency blankets, sleeping bags, fur sleeping bags (craft only).
Added house coat, snuggie, cloak, fur cloak (craft only), leather cloak (craft only).
Added fur scarf, fur gloves, fur trenchcoat, fur pants, fur boots (all craft only).
All tailoring items that use fur require survival as secondary skill.
Added crafting recipes for bandana, blanket, house coat, cloak.
Weather radio
Radios are tuneable, so you can receive from more than one station without moving.
New item that doubles battery capacity of tools, recipe learn from certain electronics books.
Bugfix: reduced chance of "Tried to kill monster" debug s pam.
Bugfix: reduced chance of "Stopping out-of-map vehicle" spam.
Bugfix: can unload liquids into items wielded in hands (e.g., steel jerrycans).
Bionics screen shows current and maximum power.
Escape key usable to exit out of more menus.
Multidrop screen continually updates to show new potential weight/volume.
Bugfix: longbow should not end up loaded while in inventory, and can be fired if it does.
Backpacks, messenger bags, etc. can be repaired via sewing kits.
Add fire drill as a survivalcraft firestarter (trickier and slower than lighter/matches).
Furry mutation provides warmth, Bark mutation protects from fire.
Removed/reduced a lot of spam messages related to being hot or cold.
Sleeping should be easier in the cold (decreased chances of waking up).
Being too hot can now wake you up.
Inreased the amount fo heat generated by the player while awake.
Tweaked hunger and fatigue's contribution to body temperature.
More traits and mutations have body temperature effects.
Fix artifact saving and loading.
Multiple building additions in town and in the countryside.
Support for 2x2 and 3x3 buildings.
Temporary fix to decrease the number of large structures with roads running through them.
Items can only be set on fire if it would affect them (no more burning sheets infinitely).
Looking around at items (with "V") has a few improvements.
Soldering irons give heating elements when disassembled, tweak numbers for hotplates and water purifiers.
Advanced inventory management screen, default keymap "/". Lets you interact with adjacent tiles.
Roadmap is made of paper.
Removed RV kitchen units from some spawn locations.
Backend: made it much easier to define pre-built locations. Responsible for a lot of the new building types.
Increased the quench value of clean water.
Early-game survivalist stabbing weapon is now pointy stick. Wood spear is higher level.
You can now read using torches and other items.
Addictions can be configured explicitly in the professions file.
Tweak crossbow trap drops.
Made several UI screens smarter (resize to fit screen, esc can exit, etc.).
Show nearby map notes on the minimap.
Some item types can be defined from data files now! So far: misc/melee, armor, guns, ammo, tools, gun mods, books
Glasses can be worn with power armor.
Added several new constructions.
Power use of integrated toolset has been rebalanced.
Armor CBMs have had drawbacks removed.
Rain coats can be made from plastic bags.
Fursuits.
Work to make NPCs less buggy.
Nuclear missile fixes.
Tweaked steel recycler behavior.
Autosaves take into account the passage of real-world time.
Placable funnel that collects some water while raining.
Characters with the Android trait no longer get unimplemented bionics.
Added several new options.
NPC spawning is toggled with the in-game options menu rather than a text file hack.
Added more wildlife (coyotes, cats, etc.).
Robust Genetics trait heavily buffed.
Change how overmap tile data is saved, to allow for more terrain types and buildings.
Add high-capacity power storage CBM.
Add some new magazines and entertainment books.
Blisters no longer lower max HP (at least until the system is more fleshed out).
Cannibal trait has been rebalanced, as well as morale effects of eating human flesh.
Added cookbook for Italian recipes.
Sewing now requires an adequate source of light.
New health display for non-Self Aware characters, accurate to 1/10th max HP rather than 1/4th.
Targeting window (when throwing/firing weapons) has been reorganized.
Directional antennas!
Gas pumps have been rebalanced (less fragile when filling vehicles, more fragile when filling containers).
Added sling, slingshot, and associated ammunition.
Gas stations can spawn next to highways.
Large creatures are more likely to leave a corpse when taking high damage.
Add flavor items with variable descriptions to the game (fliers and such).
Some guns have range modifiers independent of their ammo. Buffed coilgun range.
Add limb torsion ratchet bionic, generates power when moving.
Desks don't spawn outside any more.
The option to delete your world on character death actually works now!
Tweaked projectile/glass interaction, stopped leaping monsters from phasing through windows.
Debug menu changes.
Made it possible to build indoor furniture in more situations.
Updated readme, added contributing guidelines.
Stopped small animals from suiciding, in many cases (e.g., broken windows and landmines).
Add a few hats. No, not TF2-style.
Artifacts will successfully save and load now!
Adjusted monster spawning mechanics to reduce the chance of swarms of difficult zombies.
Stop roads from going through buildings so often.
Pits less awkward to board over (can use nearby items).
Tweak glass bottle weight/volume.
Allow for reading/sewing in the dark through mutations/CBM's with a speed penalty.
Rewrote dodge abilities to have a noticeable impact.
Mansion pools are considered indoors now.
Tires can be changed with a wrench and a jack.
Add game logic to handle recipes that take the same item as a component and a tool, and add UI to alert the player.
Improve rendering in the main Windows port - animations should display better.
Cave-ins cause damaging rubble to fall.
Improve fuel guage display in the vehicle examination window.
Overmap notes blink again.
Space and tab should be available for keymaps.
Hitting the "pause"/"skip turn" button will let you cancel reading, crafting, and other long-term actions.
Special road spawns should not happen on bridges.
Ruined vehicles spawn on roads.
Zombies wear damaged clothing.
Nighttime lights are visible from reasonable distances now.
======
0.4
Make the battery system bionic only consume as many batteries as necessary to fully power yourself
Knives can also cauterize wounds now. Requires a lighter.
Soldering irons (and hotplates, why not) can be used to cauterize wounds, causing pain and removing any bleeding or uninfected bite effects.
Fixed crash bug in Windows when attacks hit something off-screen?
Fixed precipitation animation with shifted viewport.
Can now disassemble items from the examination screen.
Added colored hinting to the item examination sidebar listing possible actions. e.g., "W" (for "wear") is grayed out if the item isn't wearable.
Added ability to craft a recipe continuously (until out of materials, etc.).
Reduce (maybe fully fix) wolf self-attacks.
Power armor.
More fitted gear, and a few more pieces made craftable.
Vehicle-mountable water tanks and kitchen units, implied storage-battery-charging generators.
Map tiles can now contain up to 64 items.
Beer has been made weaker, and now appears in kegs in liquor stores and bars.
Steel jerrycans.
Any gun can now be used one-handed if you are strong enough.
Hardcoded frostbite not to occur above freezing temperatures.
Improved fire's ability to warm the player. Also, standing on fire and being on fire warm up the player.
Fixed body temperature equalization.
Sunny and clear weather no longer warm the player underground.
Standing in water or sewage will increase the rate of heat loss (but not make the player colder)
The head and torso now lose heat faster than other body parts.
Body temperature drops as you lose HP.
Encumberance menu's listing of warmth has been made more colorful.
Mouth (face) now has appropriate cold and hot diseases.
The ability to cauterize wounds to heal bites and stop bleeding. (a)ctivate a knife, requires a lighter.
The ability to craft an item as many times as is possible. Defaults to the + key. (Linux and Mac users will need to assign a key)
Added M72-LAW. Makes a large explosion and penetrates armour well. One shot only.
Clothing can be made fitted by (a)pplying a sewing kit.
Some foods can be heated, hot food grants a larger morale bonus than cold food.
Ammunition explodes rather than burning.
Lightstrips, function as weak light providers. Craftable.
Bandages and First Aid kits no longer show uninjured bodyparts in the menu.
Some basic professions, more to be added later.
0.3
Many menus stretch with an enlarged viewport.
An action to repeat the last craft has been added, default keybinding of -
When crafting liquid items, the game asks you for a container first, then asks if you want to dump the item.
A large amount of survival craft has been added, allowing you to make most of the basic tools and necessities. Along with several new weapons, some storage items and a liquid container.
Smoker Zombies, belch clouds of smoke at players, slowing them and blocking LOS.
Robots now pull from separate drop lists when killed.
Alcohol cost for Torches and Bandages has been increased to 7, or one third of a bottle.
Alcohol cost for molotovs has been reduced to 14, gasoline cost increased to 400.
Chitinous boots and gauntlets added.
Picklock kits break when damaged 5 times.
Zombie spawn ratios have been rebalanced for static spawning.
Pocketknives are useable for all logical recipes.
Child zombies have had a small pool of item drops added.
HP Ignorant is now the player default, Self Aware can be purchased to display exact HP.
Lawnmower blades have been replaced with generic blades, most bladed items are made using blades instead of machetes/swords now.
Nail bat, nail board and makeshift halberd now all have weak block.
Wild veggies function as plant marrow for most recipes.
Meat soup added, more cooking to come.
The player now spawns with a pocket knife and lighter.
Sledge hammer is usable to board windows and doors up.
Heartless trait has been removed, replaced with the Cannibal trait, which allows you to eat human meat with no morale penalty.
Braziers are now craftable. They contain fire and can be set up indoors.
Bulletin Boards can be built to set an area as your home base. NPCs can
be told to wait there and will defend the area.
Bear traps have been increased in weight and volume.
Carboys have been renamed to Gallon jugs.
You can now create a character without allocating all skill points.
Winter Boots and Raincoats now correctly display the reinforced tag.
Kills can now be accessed from in-game. Default key is ).
'Phew it's hot warm' message has been fixed.
The game now accepts wielded items when checking for containers.
Sunny and Clear weather now provide warmth.
Internal Climate Control bionic consumes power to cool or warm you.
Crash bug caused by the screen being larger than the loaded overmap has
been fixed.
Crash bug when going down stairs near cities has been fixed.
Hunger now affects body temperature.
Added new crafting recipes: shorts, cargo shorts, balclava, long underwear,
glove liners, socks.
Added a digging stick. Can be used to dig shallow pits, and level construction enough to enable crafting of stone shovels.
Got angry at other developers for not updating changelog.
0.2
Reworked spawning option which places zombies at world generation
rather than generating them dynamically in play.
Implementation of a context menu when examining inventory items.
Machine added to hospitals to regrow limbs.
0.1
Palisade Walls and Gates - Pretty tough to bash down, and can be fired throguh
Log Walls - Basically the same as wood walls, different construction methods.
The ability to disassemble tshirts and tank tops by hand. - Handy for bleeding.
Revolver Shotgun - NotTe much to say on this.
-16
View File
@@ -1,16 +0,0 @@
# This message may be 16 lines long at maximum.
# Max length of a line is 68 characters; the following line is for reference
####################################################################
Original author: Project Manager: Website/Forum:
Whales (retired) TheDarklingWolf GlyphGryph
Main Developers/Gihub Managers:
Kevingranade, Ozone, TheDarklingWolf, zpmorgan
Active Contributors:
BurnZeZ, Oddzball, Shades, Shoes01, Tase, GalenEvil
Contributors:
AkrionXxarr, Benjamg, Creidieki, Daftfad, Elricsfate, Gim,
GlyphGryph, Gremour, HerbertJones, hovatterz, Origamiwolf,
Soron, Uzername, Voker57, Wito, i2amroy
Binary file not shown.
-18
View File
@@ -1,18 +0,0 @@
# 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.
For latest discussions and news on Cataclysm DDA, please visit:
Homepage: http://www.cataclysmdda.com/
Forum: http://www.cataclysmdda.com/smf/
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
Ingame you can access the options via the help menu (?2).
-16
View File
@@ -1,16 +0,0 @@
[
{ "id":"TEST",
"items":[
["GUITAR", 400],
["DRUM", 300],
["HATCHET", 200]
],
"groups":[
["NOTHING", 200]
]
},
{ "id":"NOTHING",
"default_item": "MISSING_ITEM"
}
]
File diff suppressed because it is too large Load Diff
-805
View File
@@ -1,805 +0,0 @@
[
{
"type" : "AMMO",
"id" : "arrowhead",
"rarity" : 0,
"price" : 30,
"name" : "arrowhead",
"symbol" : "=",
"color" : "light_gray",
"description" : "Heads for an arrow. Placing these on an arrow will make the arrow more damaging and piercing.",
"material" : "steel",
"volume" : 1,
"weight" : 1,
"bashing" : 1,
"cutting" : 0,
"to_hit" : 0,
"ammo_type" : "none",
"damage" : 0,
"pierce" : 0,
"range" : 0,
"accuracy" : 0,
"recoil" : 0,
"count" : 10
},
{
"type" : "AMMO",
"id" : "fletching",
"rarity" : 0,
"price" : 30,
"name" : "fletching",
"symbol" : "=",
"color" : "white",
"description" : "Also known as a flight, this item provides aerodynamic stabilization of arrows.",
"material" : "leather",
"volume" : 1,
"weight" : 1,
"bashing" : 1,
"cutting" : 0,
"to_hit" : 0,
"ammo_type" : "none",
"damage" : 0,
"pierce" : 0,
"range" : 0,
"accuracy" : 0,
"recoil" : 0,
"count" : 10
},
{
"type" : "AMMO",
"id" : "shaft_wood",
"rarity" : 0,
"price" : 20,
"name" : "wood arrow shaft",
"symbol" : "=",
"color" : "green",
"description" : "A crude shaft made from wood. It needs arrowheads and fletching to become a functional arrow. You can, however, fire it from a bow.",
"material" : "wood",
"volume" : 1,
"weight" : 12,
"bashing" : 1,
"cutting" : 0,
"to_hit" : 0,
"ammo_type" : "arrow",
"damage" : 0,
"pierce" : 0,
"range" : 0,
"accuracy" : 40,
"recoil" : 0,
"count" : 10
},
{
"type" : "AMMO",
"id" : "shaft_wood_heavy",
"rarity" : 0,
"price" : 20,
"name" : "heavy wood arrow shaft",
"symbol" : "=",
"color" : "green",
"description" : "A heavy shaft made from wood. It needs arrowheads and fletching to become a functional arrow. You can, however, fire it from a bow.",
"material" : "wood",
"volume" : 1,
"weight" : 14,
"bashing" : 2,
"cutting" : 0,
"to_hit" : 0,
"ammo_type" : "arrow",
"damage" : 2,
"pierce" : 0,
"range" : 1,
"accuracy" : 35,
"recoil" : 0,
"count" : 10
},
{
"type" : "AMMO",
"id" : "shaft_metal",
"rarity" : 0,
"price" : 20,
"name" : "metal arrow shaft",
"symbol" : "=",
"color" : "green",
"description" : "A heavy shaft made from scrap metal. It needs arrowheads and fletching to become a functional arrow. You can, however, fire it from a bow.",
"material" : "steel",
"volume" : 1,
"weight" : 19,
"bashing" : 3,
"cutting" : 0,
"to_hit" : 0,
"ammo_type" : "arrow",
"damage" : 3,
"pierce" : 0,
"range" : 3,
"accuracy" : 30,
"recoil" : 0,
"count" : 10
},
{
"type" : "AMMO",
"id" : "arrow_fire_hardened",
"rarity" : 0,
"price" : 25,
"name" : "fire hardened wood arrow",
"symbol" : "=",
"color" : "green",
"description" : "A simple arrow shaft that has had a point carved into it and then fire hardened.",
"material" : "wood",
"volume" : 1,
"weight" : 12,
"bashing" : 2,
"cutting" : 0,
"to_hit" : 0,
"ammo_type" : "arrow",
"damage" : 3,
"pierce" : 0,
"range" : 2,
"accuracy" : 35,
"recoil" : 0,
"count" : 10
},
{
"type" : "AMMO",
"id" : "arrow_field_point",
"rarity" : 0,
"price" : 30,
"name" : "field point wood arrow",
"symbol" : "=",
"color" : "green",
"description" : "A simple arrow shaft that has a crude arrow head. Useful for hunting small woodland creatures.",
"material" : "wood",
"volume" : 1,
"weight" : 13,
"bashing" : 3,
"cutting" : 0,
"to_hit" : 0,
"ammo_type" : "arrow",
"damage" : 6,
"pierce" : 1,
"range" : 2,
"accuracy" : 35,
"recoil" : 0,
"count" : 10
},
{
"type" : "AMMO",
"id" : "arrow_fire_hardened_fletched",
"rarity" : 0,
"price" : 35,
"name" : "fletched fire hardened wood arrow",
"symbol" : "=",
"color" : "green",
"description" : "This simple arrow has a fire hardened point and some fletchings.",
"material" : "wood",
"volume" : 1,
"weight" : 13,
"bashing" : 3,
"cutting" : 0,
"to_hit" : 0,
"ammo_type" : "arrow",
"damage" : 4,
"pierce" : 0,
"range" : 6,
"accuracy" : 20,
"recoil" : 0,
"count" : 10
},
{
"type" : "AMMO",
"id" : "arrow_field_point_fletched",
"rarity" : 0,
"price" : 40,
"name" : "fletched field point wood arrow",
"symbol" : "=",
"color" : "green",
"description" : "A simple arrow shaft that has a crude arrow head and some fletchings. Useful for hunting small woodland creatures or as a last ditch defense against zombies.",
"material" : "wood",
"volume" : 1,
"weight" : 14,
"bashing" : 3,
"cutting" : 0,
"to_hit" : 0,
"ammo_type" : "arrow",
"damage" : 7,
"pierce" : 2,
"range" : 6,
"accuracy" : 20,
"recoil" : 0,
"count" : 10
},
{
"type" : "AMMO",
"id" : "arrow_wood",
"rarity" : 7,
"price" : 75,
"name" : "wood arrow",
"symbol" : "=",
"color" : "green",
"description" : "A basic wooden arrow, it has a metal arrow head and some fletchings. It's light-weight, does some damage, and is so-so on accuracy. Stands a good chance of remaining intact once fired.",
"material" : "wood",
"volume" : 1,
"weight" : 15,
"bashing" : 2,
"cutting" : 1,
"to_hit" : 0,
"ammo_type" : "arrow",
"damage" : 10,
"pierce" : 3,
"range" : 7,
"accuracy" : 15,
"recoil" : 0,
"count" : 10
},
{
"type" : "AMMO",
"id" : "arrow_heavy_fire_hardened_fletched",
"rarity" : 7,
"price" : 75,
"name" : "heavy fletched fire hardened arrow",
"symbol" : "=",
"color" : "green",
"description" : "This arrow is significantly sturdier than other wooden arrows. It has a firehardened point and some fletchings.",
"material" : "plastic",
"volume" : 1,
"weight" : 19,
"bashing" : 4,
"cutting" : 0,
"to_hit" : 0,
"ammo_type" : "arrow",
"damage" : 5,
"pierce" : 2,
"range" : 7,
"accuracy" : 15,
"recoil" : 0,
"count" : 10
},
{
"type" : "AMMO",
"id" : "arrow_heavy_field_point_fletched",
"rarity" : 7,
"price" : 75,
"name" : "heavy fletched field point arrow",
"symbol" : "=",
"color" : "green",
"description" : "This arrow is significantly sturdier than other wooden arrows. It has a crude field point head and some fletchings.",
"material" : "plastic",
"volume" : 1,
"weight" : 20,
"bashing" : 4,
"cutting" : 0,
"to_hit" : 0,
"ammo_type" : "arrow",
"damage" : 6,
"pierce" : 3,
"range" : 7,
"accuracy" : 15,
"recoil" : 0,
"count" : 10
},
{
"type" : "AMMO",
"id" : "arrow_wood_heavy",
"rarity" : 7,
"price" : 75,
"name" : "heavy wood arrow",
"symbol" : "=",
"color" : "green",
"description" : "A heavy wooden arrow, it has a metal arrow head and some fletchings. It's much heavier than other wooden arrows, as a result it does more damage and is more stable in flight, resulting in better accuracy over a longer range. Stands a very good chance of remaining intact once fired.",
"material" : "plastic",
"volume" : 1,
"weight" : 22,
"bashing" : 6,
"cutting" : 2,
"to_hit" : 0,
"ammo_type" : "arrow",
"damage" : 12,
"pierce" : 5,
"range" : 8,
"accuracy" : 10,
"recoil" : 0,
"count" : 10
},
{
"type" : "AMMO",
"id" : "arrow_metal_sharpened",
"rarity" : 7,
"price" : 50,
"name" : "sharpened metal arrow",
"symbol" : "=",
"color" : "green",
"description" : "This metal shaft has been carefully sharpened so that it has a crude point at the end.",
"material" : "steel",
"volume" : 1,
"weight" : 19,
"bashing" : 2,
"cutting" : 0,
"to_hit" : 0,
"ammo_type" : "arrow",
"damage" : 5,
"pierce" : 3,
"range" : 5,
"accuracy" : 25,
"recoil" : 0,
"count" : 10
},
{
"type" : "AMMO",
"id" : "arrow_metal",
"rarity" : 7,
"price" : 100,
"name" : "metal arrow",
"symbol" : "=",
"color" : "green",
"description" : "This metal arrow has a steel arrow head and some fletchings.",
"material" : "steel",
"volume" : 1,
"weight" : 21,
"bashing" : 3,
"cutting" : 2,
"to_hit" : 0,
"ammo_type" : "arrow",
"damage" : 14,
"pierce" : 7,
"range" : 10,
"accuracy" : 10,
"recoil" : 0,
"count" : 10
},
{
"type" : "AMMO",
"id" : "arrow_cf",
"rarity" : 5,
"price" : 150,
"name" : "carbon fiber arrow",
"symbol" : "=",
"color" : "green",
"description" : "High-tech carbon fiber shafts and 100 grain broadheads. Very light weight, fast, and notoriously fragile.",
"material" : "plastic",
"volume" : 2,
"weight" : 15,
"bashing" : 1,
"cutting" : 0,
"to_hit" : 0,
"ammo_type" : "arrow",
"damage" : 10,
"pierce" : 5,
"range" : 8,
"accuracy" : 15,
"recoil" : 0,
"count" : 8
},
{
"type" : "AMMO",
"id" : "arrow_exploding",
"rarity" : 5,
"price" : 350,
"name" : "exploding arrow",
"symbol" : "=",
"color" : "green",
"description" : "This arrow has a small IED strapped to its tip. Horribly inaccurate, heavy, and bulky, not only does this contraption require expert hands to pull off a shot, it requires one to loose this with a small measure of confidence the shooter won't be caught in the blast radius.",
"material" : "steel",
"volume" : 2,
"weight" : 40,
"bashing" : 2,
"cutting" : 0,
"to_hit" : 0,
"ammo_type" : "arrow",
"damage" : 15,
"pierce" : 9,
"range" : 5,
"accuracy" : 25,
"recoil" : 0,
"count" : 5,
"effects" : ["EXPLOSIVE"]
},
{
"id" : "exploding_arrow_warhead",
"symbol" : "=",
"color" : "green",
"name" : "exploding arrowhead",
"description" : "This simple IED is designed to be attached to an arrow and detonate on impact. Theoretically you could throw it but who would want to do that?",
"rarity" : 3,
"price" : 400,
"material" : "iron",
"weight" : 10,
"volume" : 1,
"bashing" : 10,
"cutting" : 0,
"to_hit" : -1,
"count" : 5,
"effects" : ["EXPLOSIVE"]
},
{
"type" : "AMMO",
"id" : "arrow_flamming",
"rarity" : 5,
"price" : 350,
"name" : "flaming arrow",
"symbol" : "=",
"color" : "green",
"description" : "This arrow has a flaming rag wrapped around the shaft near the head. You should shoot it soon before it burns your bow.",
"material" : "steel",
"volume" : 2,
"weight" : 40,
"bashing" : 2,
"cutting" : 0,
"to_hit" : 0,
"ammo_type" : "arrow",
"damage" : 15,
"pierce" : 9,
"range" : 5,
"accuracy" : 25,
"recoil" : 0,
"count" : 5,
"effects" : ["IGNITE"]
},
{
"type" : "AMMO",
"id" : "bolt_wood",
"rarity" : 8,
"price" : 100,
"name" : "wood crossbow bolt",
"symbol" : "=",
"color" : "green",
"description" : "A sharpened bolt carved from wood. It's lighter than a steel bolt, but does less damage and is less accurate. Stands a good chance of remaining intact once fired.",
"material" : "wood",
"volume" : 1,
"weight" : 40,
"bashing" : 1,
"cutting" : 0,
"to_hit" : 0,
"ammo_type" : "bolt",
"damage" : 10,
"pierce" : 1,
"range" : 0,
"accuracy" : 16,
"recoil" : 0,
"count" : 15
},
{
"type" : "AMMO",
"id" : "bolt_steel",
"rarity" : 7,
"price" : 400,
"name" : "steel crossbow bolt",
"symbol" : "=",
"color" : "green",
"description" : "A sharp bolt made from steel. Deadly in skilled hands. Stands an excellent chance of remaining intact once fired.",
"material" : "steel",
"volume" : 1,
"weight" : 25,
"bashing" : 5,
"cutting" : 0,
"to_hit" : 0,
"ammo_type" : "bolt",
"damage" : 20,
"pierce" : 10,
"range" : 6,
"accuracy" : 15,
"recoil" : 0,
"count" : 10
},
{
"id" : "selfbow",
"type" : "GUN",
"symbol" : "(",
"color" : "yellow",
"name" : "self bow",
"description" : "A bow made from a single piece of wood. It is made specifically for the person using it.",
"rarity" : 5,
"price" : 400,
"material" : "wood",
"flags" : ["ALWAYS_TWOHAND", "RELOAD_AND_SHOOT"],
"skill" : "archery",
"ammo" : "arrow",
"weight" : 8,
"volume" : 12,
"bashing" : 6,
"cutting" : 0,
"to_hit" : 0,
"ranged_damage" : 4,
"range" : 5,
"accuracy" : 28,
"recoil" : 0,
"durability" : 6,
"burst" : 0,
"clip_size" : 1,
"reload" : 70
},
{
"id" : "shortbow",
"type" : "GUN",
"symbol" : "(",
"color" : "yellow",
"name" : "short bow",
"description" : "A shorter bow than the longbow, easier to draw than the longbow but sacrifices power. Arrows fired from this weapon have a good chance of remaining intact for re-use. It requires 8 strength to fire",
"rarity" : 5,
"price" : 800,
"material" : "wood",
"flags" : ["ALWAYS_TWOHAND", "STR8_DRAW", "RELOAD_AND_SHOOT"],
"skill" : "archery",
"ammo" : "arrow",
"weight" : 3,
"volume" : 6,
"bashing" : 6,
"cutting" : 0,
"to_hit" : 0,
"ranged_damage" : 3,
"range" : 6,
"accuracy" : 22,
"recoil" : 0,
"durability" : 6,
"burst" : 0,
"clip_size" : 1,
"reload" : 60
},
{
"id" : "compbow",
"type" : "GUN",
"symbol" : "(",
"color" : "yellow",
"name" : "compound bow",
"description" : "A bow with cams that fires high velocity arrows. Weaker people can use compound bows more easily. Arrows fired from this weapon have a good chance of remaining intact for re-use. It requires 8 strength to fire",
"rarity" : 1,
"price" : 1800,
"material" : ["steel", "plastic"],
"flags" : ["ALWAYS_TWOHAND", "STR8_DRAW", "RELOAD_AND_SHOOT"],
"skill" : "archery",
"ammo" : "arrow",
"weight" : 8,
"volume" : 8,
"bashing" : 8,
"cutting" : 0,
"to_hit" : 1,
"ranged_damage" : 5,
"range" : 10,
"accuracy" : 20,
"recoil" : 0,
"durability" : 6,
"burst" : 0,
"clip_size" : 1,
"reload" : 100
},
{
"id" : "compositebow",
"type" : "GUN",
"symbol" : "(",
"color" : "yellow",
"name" : "composite bow",
"description" : "A bow made from more than one material so it is able to store more energy. Arrows fired from this weapon have a good chance of remaining intact for re-use. It requires 10 strength to fire",
"rarity" : 3,
"price" : 1200,
"material" : ["wood", "plastic"],
"flags" : ["ALWAYS_TWOHAND", "STR10_DRAW", "RELOAD_AND_SHOOT"],
"skill" : "archery",
"ammo" : "arrow",
"weight" : 6,
"volume" : 10,
"bashing" : 8,
"cutting" : 0,
"to_hit" : 0,
"ranged_damage" : 7,
"range" : 12,
"accuracy" : 18,
"recoil" : 0,
"durability" : 6,
"burst" : 0,
"clip_size" : 1,
"reload" : 110
},
{
"id" : "recurbow",
"type" : "GUN",
"symbol" : "(",
"color" : "yellow",
"name" : "recurve bow",
"description" : "A bow that curves away from the archer at the tips allowing more power to be stored in the bow. Arrows fired from this weapon have a good chance of remaining intact for re-use. It requires 10 strength to fire",
"rarity" : 2,
"price" : 1200,
"material" : ["steel", "plastic"],
"flags" : ["ALWAYS_TWOHAND", "STR10_DRAW", "RELOAD_AND_SHOOT"],
"skill" : "archery",
"ammo" : "arrow",
"weight" : 6,
"volume" : 10,
"bashing" : 12,
"cutting" : 0,
"to_hit" : 0,
"ranged_damage" : 9,
"range" : 14,
"accuracy" : 16,
"recoil" : 0,
"durability" : 6,
"burst" : 0,
"clip_size" : 1,
"reload" : 100
},
{
"id" : "reflexbow",
"type" : "GUN",
"symbol" : "(",
"color" : "yellow",
"name" : "reflex bow",
"description" : "A bow that has limbs which curve away from the archer sacrificing accuracy for power. Arrows fired from this weapon have a good chance of remaining intact for re-use. It requires 10 strength to fire",
"rarity" : 2,
"price" : 1200,
"material" : ["steel", "plastic"],
"flags" : ["ALWAYS_TWOHAND", "STR10_DRAW", "RELOAD_AND_SHOOT"],
"skill" : "archery",
"ammo" : "arrow",
"weight" : 6,
"volume" : 10,
"bashing" : 12,
"cutting" : 0,
"to_hit" : 0,
"ranged_damage" : 11,
"range" : 16,
"accuracy" : 14,
"recoil" : 0,
"durability" : 6,
"burst" : 0,
"clip_size" : 1,
"reload" : 100
},
{
"id" : "longbow",
"type" : "GUN",
"symbol" : "(",
"color" : "yellow",
"name" : "longbow",
"description" : "A six-foot wooden bow that fires arrows. This takes a fair amount of strength to draw. Arrows fired from this weapon have a good chance of remaining intact for re-use. It requires 10 strength to fire",
"rarity" : 5,
"price" : 800,
"material" : "wood",
"flags" : ["ALWAYS_TWOHAND", "STR10_DRAW", "RELOAD_AND_SHOOT"],
"skill" : "archery",
"ammo" : "arrow",
"weight" : 4,
"volume" : 8,
"bashing" : 10,
"cutting" : 0,
"to_hit" : 0,
"ranged_damage" : 7,
"range" : 20,
"accuracy" : 26,
"recoil" : 0,
"durability" : 6,
"burst" : 0,
"clip_size" : 1,
"reload" : 80
},
{
"id" : "reflexrecurvebow",
"type" : "GUN",
"symbol" : "(",
"color" : "yellow",
"name" : "reflex recurve bow",
"description" : "A bow that combines the traits from both the reflex and the recurve bows. Both the limbs and the tips curve away from the archer. This dramatically increases the power while increasing the strength to draw the bow significantly. It requires 12 strength to fire efficiently.",
"rarity" : 2,
"price" : 1200,
"material" : ["wood", "bone"],
"flags" : ["ALWAYS_TWOHAND", "STR12_DRAW", "RELOAD_AND_SHOOT"],
"skill" : "archery",
"ammo" : "arrow",
"weight" : 4,
"volume" : 5,
"bashing" : 12,
"cutting" : 0,
"to_hit" : 0,
"ranged_damage" : 15,
"range" : 18,
"accuracy" : 16,
"recoil" : 0,
"durability" : 6,
"burst" : 0,
"clip_size" : 1,
"reload" : 80
},
{
"id" : "hand_crossbow",
"type" : "GUN",
"symbol" : "(",
"color" : "green",
"name" : "pistol crossbow",
"description" : "A small concealable pistol like crossbow. It is weak due to it's small size and draw, good for hunting small game. Bolts fired from this weapon have a good chance of remaining intact for re-use.",
"rarity" : 1,
"price" : 1000,
"material" : ["iron", "wood"],
"flags" : "none",
"skill" : "archery",
"ammo" : "bolt",
"weight" : 5,
"volume" : 4,
"bashing" : 4,
"cutting" : 0,
"to_hit" : -0,
"ranged_damage" : -6,
"range" : 6,
"accuracy" : 20,
"recoil" : 0,
"durability" : 6,
"burst" : 0,
"clip_size" : 1,
"reload" : 100
},
{
"id" : "crossbow",
"type" : "GUN",
"symbol" : "(",
"color" : "green",
"name" : "crossbow",
"description" : "A slow-loading hand weapon that launches bolts. Stronger people can reload it much faster. Bolts fired from this weapon have a good chance of remaining intact for re-use.",
"rarity" : 2,
"price" : 1000,
"material" : ["iron", "wood"],
"flags" : "STR_RELOAD",
"skill" : "archery",
"ammo" : "bolt",
"weight" : 9,
"volume" : 6,
"bashing" : 11,
"cutting" : 0,
"to_hit" : 1,
"ranged_damage" : 0,
"range" : 10,
"accuracy" : 18,
"recoil" : 0,
"durability" : 6,
"burst" : 0,
"clip_size" : 1,
"reload" : 800
},
{
"id" : "huge_crossbow",
"type" : "GUN",
"symbol" : "(",
"color" : "green",
"name" : "Ganz-Rustung",
"description" : "A HUGE very slow-loading medieval crossbow from Germany. It's tension is so powerful that you feel it shake after firing. Un-skilled users will find it very hard to reload. Bolts fired from this weapon have a good chance of remaining intact for re-use.",
"rarity" : 2,
"price" : 1000,
"material" : ["iron", "wood"],
"flags" : ["ALWAYS_TWOHAND", "STR_RELOAD"],
"skill" : "archery",
"ammo" : "bolt",
"weight" : 60,
"volume" : 40,
"bashing" : 20,
"cutting" : 0,
"to_hit" : -1,
"ranged_damage" : 30,
"range" : 30,
"accuracy" : 30,
"recoil" : 30,
"durability" : 6,
"burst" : 0,
"clip_size" : 1,
"reload" : 6000
},
{
"id" : "rep_crossbow",
"type" : "GUN",
"symbol" : "(",
"color" : "green",
"name" : "repeating crossbow",
"description" : "A custom made mechanical large crossbow, with a wooden magazine that holds 10 bolts. Single bolt reload. Bolts fired from this weapon have a good chance of remaining intact for re-use.",
"rarity" : 1,
"price" : 1000,
"material" : ["iron", "wood"],
"flags" : ["ALWAYS_TWOHAND", "RELOAD_ONE", "MODE_BURST"],
"skill" : "archery",
"ammo" : "bolt",
"weight" : 16,
"volume" : 10,
"bashing" : 13,
"cutting" : 0,
"to_hit" : -1,
"ranged_damage" : -2,
"range" : 8,
"accuracy" : 30,
"recoil" : 15,
"durability" : 6,
"burst" : 3,
"clip_size" : 10,
"reload" : 100
}
]
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
-33
View File
@@ -1,33 +0,0 @@
[
{ "id":"GUITAR",
"symbol": "$",
"color": "red",
"name":"Guitar",
"description":"An acoustic six-string guitar. A bit out of tune, but in good shape otherwise.",
"rarity": 60,
"material": "wood",
"weight": 13,
"volume": 24,
"damage": 14,
"to_hit": 1,
"use": "PLAY_GUITAR",
"variations": [
{ "odds" : 200,
"name" : "Specific Variation"
}
]
},
{ "id":"DRUM",
"symbol": "o",
"color": "green",
"name":"Bongo",
"description": "A handheld drum. Suitable for making loud noises into all hours of the night.",
"rarity": 60,
"material": ["wood", "steel"],
"weight": 10,
"volume": 10,
"damage": 11,
"to_hit": 1,
"use": "PLAY_DRUM"
}
]
File diff suppressed because it is too large Load Diff
-613
View File
@@ -1,613 +0,0 @@
[
{ "id":"retool_45",
"type": "GUNMOD",
"symbol": ":",
"color": "green",
"name":".45 caliber retool",
"description":"Replacing several key parts of a 9mm, .38, .40 or .44 firearm converts it to a .45 firearm. The conversion results in reduced accuracy and increased recoil.",
"rarity": 3,
"price": 480,
"material": "steel",
"weight": 2,
"volume": 2,
"bashing": 3,
"cutting": 0,
"to_hit": -1,
"accuracy_modifier": 2,
"damage_modifier": 0,
"loudness_modifier": 0,
"ammo_modifier": ".45",
"recoil_modifier": 2,
"burst_modifier": 0,
"clip_size_modifier": 0,
"mod_targets": ["pistol", "smg"],
"acceptable_ammo": ["9MM", "38", "40", "44"]
},
{
"type" : "GUNMOD",
"id" : "suppressor",
"name" : "suppressor",
"clip_size_modifier" : 0,
"accuracy_modifier" : -1,
"damage_modifier" : -4,
"ammo_modifier" : "none",
"description" : "Using a suppressor is almost an imperative in zombie-infested regions. Gunfire is very noisy, and will attract predators. Its only drawback is a reduced muzzle velocity, resulting in less accuracy and damage.",
"weight" : 1,
"to_hit" : 2,
"color" : "dark_gray",
"symbol" : ":",
"material" : ["steel", "plastic"],
"mod_targets" : ["pistol", "smg", "rifle"],
"volume" : 2,
"bashing" : 3,
"cutting" : 0,
"burst_modifier" : 0,
"recoil_modifier" : 0,
"rarity" : 15,
"price" : 480,
"loudness_modifier" : -25
},
{
"type" : "GUNMOD",
"id" : "grip",
"name" : "enhanced grip",
"clip_size_modifier" : 0,
"accuracy_modifier" : 2,
"damage_modifier" : 0,
"ammo_modifier" : "none",
"description" : "A grip placed forward on the barrel allows for greater control and accuracy. Aside from increased weight, there are no drawbacks.",
"weight" : 1,
"to_hit" : -1,
"color" : "brown",
"symbol" : ":",
"material" : ["steel", "plastic"],
"mod_targets" : ["shotgun", "smg", "rifle"],
"volume" : 1,
"bashing" : 0,
"cutting" : 0,
"burst_modifier" : 0,
"recoil_modifier" : -2,
"rarity" : 12,
"price" : 280,
"loudness_modifier" : 0
},
{
"type" : "GUNMOD",
"id" : "barrel_big",
"name" : "barrel extension",
"clip_size_modifier" : 0,
"accuracy_modifier" : 6,
"damage_modifier" : 1,
"ammo_modifier" : "none",
"description" : "A longer barrel increases the muzzle velocity of a firearm, contributing to both accuracy and damage. However, the longer barrel tends to vibrate after firing, greatly increasing recoil.",
"weight" : 1,
"to_hit" : 2,
"color" : "light_gray",
"symbol" : ":",
"material" : ["steel", "null"],
"mod_targets" : ["smg", "rifle"],
"volume" : 4,
"bashing" : 5,
"cutting" : 0,
"burst_modifier" : 0,
"recoil_modifier" : 5,
"rarity" : 10,
"price" : 400,
"loudness_modifier" : 0
},
{
"type" : "GUNMOD",
"id" : "barrel_small",
"name" : "shortened barrel",
"clip_size_modifier" : 0,
"accuracy_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,
"to_hit" : -1,
"color" : "light_gray",
"symbol" : ":",
"material" : ["steel", "null"],
"mod_targets" : ["smg", "rifle"],
"volume" : 1,
"bashing" : -2,
"cutting" : 0,
"burst_modifier" : 0,
"recoil_modifier" : -6,
"rarity" : 6,
"price" : 320,
"loudness_modifier" : 2
},
{
"type" : "GUNMOD",
"id" : "barrel_rifled",
"name" : "rifled barrel",
"clip_size_modifier" : 0,
"accuracy_modifier" : 10,
"damage_modifier" : -20,
"ammo_modifier" : "none",
"description" : "Rifling a shotgun barrel is mainly done in order to improve its accuracy when firing slugs. The rifling makes the gun less suitable for shot, however.",
"weight" : 1,
"to_hit" : 1,
"color" : "light_gray",
"symbol" : ":",
"material" : ["steel", "null"],
"mod_targets" : ["shotgun"],
"volume" : 2,
"bashing" : 3,
"cutting" : 0,
"burst_modifier" : -1,
"recoil_modifier" : 0,
"rarity" : 5,
"price" : 220,
"loudness_modifier" : 0
},
{
"type" : "GUNMOD",
"id" : "clip",
"name" : "extended magazine",
"clip_size_modifier" : 50,
"accuracy_modifier" : -1,
"damage_modifier" : 0,
"ammo_modifier" : "none",
"description" : "Increases the ammunition capacity of your firearm by 50%, but the added bulk reduces accuracy slightly.",
"weight" : 1,
"to_hit" : -1,
"color" : "light_gray",
"symbol" : ":",
"material" : ["steel", "plastic"],
"mod_targets" : ["pistol", "shotgun", "smg", "rifle"],
"volume" : 1,
"bashing" : -2,
"cutting" : 0,
"burst_modifier" : 0,
"recoil_modifier" : 0,
"rarity" : 8,
"price" : 560,
"loudness_modifier" : 0
},
{
"type" : "GUNMOD",
"id" : "clip2",
"name" : "double magazine",
"clip_size_modifier" : 100,
"accuracy_modifier" : -2,
"damage_modifier" : 0,
"ammo_modifier" : "none",
"description" : "Completely doubles the ammunition capacity of your firearm, but the added bulk reduces accuracy and increases recoil.",
"weight" : 2,
"to_hit" : 0,
"color" : "light_gray",
"symbol" : ":",
"material" : ["steel", "plastic"],
"mod_targets" : ["shotgun", "smg", "rifle"],
"volume" : 2,
"bashing" : 0,
"cutting" : 0,
"burst_modifier" : 0,
"recoil_modifier" : 2,
"rarity" : 4,
"price" : 720,
"loudness_modifier" : 0
},
{
"type" : "GUNMOD",
"id" : "spare_mag",
"name" : "spare magazine",
"clip_size_modifier" : 0,
"accuracy_modifier" : 0,
"damage_modifier" : 0,
"ammo_modifier" : "none",
"description" : "A spare magazine you can keep on hand to make reloads faster, but must itself be reloaded before it can be used again.",
"weight" : 1,
"to_hit" : 0,
"color" : "light_gray",
"symbol" : ":",
"material" : ["steel", "plastic"],
"mod_targets" : ["pistol", "shotgun", "smg", "rifle"],
"volume" : 1,
"bashing" : 0,
"cutting" : 0,
"burst_modifier" : 0,
"recoil_modifier" : 0,
"rarity" : 15,
"price" : 200,
"loudness_modifier" : 0
},
{
"type" : "GUNMOD",
"id" : "brass_catcher",
"name" : "brass catcher",
"clip_size_modifier" : 0,
"accuracy_modifier" : 0,
"damage_modifier" : 0,
"ammo_modifier" : "none",
"description" : "A bag that hangs off the side of your gun and catches ejected casings so you don't have to pick them up.",
"weight" : 1,
"to_hit" : 0,
"color" : "light_gray",
"symbol" : ":",
"material" : ["cotton", "null"],
"mod_targets" : ["shotgun", "smg", "rifle"],
"volume" : 1,
"bashing" : 0,
"cutting" : 0,
"burst_modifier" : 0,
"recoil_modifier" : 0,
"rarity" : 15,
"price" : 200,
"loudness_modifier" : 0
},
{
"type" : "GUNMOD",
"id" : "stabilizer",
"name" : "gyroscopic stabilizer",
"clip_size_modifier" : -10,
"accuracy_modifier" : 2,
"damage_modifier" : -2,
"ammo_modifier" : "none",
"description" : "An advanced unit that straps onto the side of your firearm and reduces vibration, greatly reducing recoil and increasing accuracy. However, it also takes up space in the magazine slot, reducing ammo capacity.",
"weight" : 2,
"to_hit" : -3,
"color" : "blue",
"symbol" : ":",
"material" : ["steel", "plastic"],
"mod_targets" : ["smg", "rifle"],
"volume" : 3,
"bashing" : 0,
"cutting" : 0,
"burst_modifier" : 0,
"recoil_modifier" : -8,
"rarity" : 4,
"price" : 680,
"loudness_modifier" : 0
},
{
"type" : "GUNMOD",
"id" : "blowback",
"name" : "rapid blowback",
"clip_size_modifier" : 0,
"accuracy_modifier" : -3,
"damage_modifier" : 0,
"ammo_modifier" : "none",
"description" : "An improved blowback mechanism makes your firearm's automatic fire faster, at the cost of reduced accuracy and increased noise.",
"weight" : 1,
"to_hit" : 0,
"color" : "red",
"symbol" : ":",
"material" : ["steel", "plastic"],
"mod_targets" : ["smg", "rifle"],
"volume" : 0,
"bashing" : 0,
"cutting" : 0,
"burst_modifier" : 6,
"recoil_modifier" : 0,
"rarity" : 3,
"price" : 700,
"loudness_modifier" : 4
},
{
"type" : "GUNMOD",
"id" : "autofire",
"name" : "auto-fire mechanism",
"weight" : 2,
"color" : "red",
"burst_modifier" : 3,
"loudness_modifier" : 2,
"to_hit" : -1,
"accuracy_modifier" : -2,
"price" : 650,
"clip_size_modifier" : 0,
"description" : "A simple mechanism that converts a pistol to a fully-automatic weapon, with a burst size of three rounds. However, it reduces accuracy, and increases noise and recoil.",
"symbol" : ":",
"material" : ["steel", "plastic"],
"volume" : 1,
"cutting" : 0,
"recoil_modifier" : 2,
"damage_modifier" : 0,
"acceptable_ammo" : ["22", "9MM", "38", "40", "57", "46"],
"mod_targets" : ["pistol"],
"rarity" : 2,
"bashing" : 2,
"ammo_modifier" : "none"
},
{
"type" : "GUNMOD",
"id" : "retool_9mm",
"name" : "9mm caliber retool",
"weight" : 1,
"color" : "green",
"burst_modifier" : 0,
"loudness_modifier" : 0,
"to_hit" : -1,
"accuracy_modifier" : -1,
"price" : 420,
"clip_size_modifier" : 0,
"description" : "Replacing several key parts of a .38, .40, .44 or .45 firearm converts it to a 9mm firearm. The conversion results in a slight reduction in accuracy.",
"symbol" : ":",
"material" : ["steel", "null"],
"volume" : 1,
"cutting" : 0,
"recoil_modifier" : 0,
"damage_modifier" : 0,
"acceptable_ammo" : ["38", "40", "44", "45"],
"mod_targets" : ["pistol", "smg"],
"rarity" : 3,
"bashing" : 0,
"ammo_modifier" : "9mm"
},
{
"type" : "GUNMOD",
"id" : "retool_22",
"name" : ".22 caliber retool",
"weight" : 1,
"color" : "green",
"burst_modifier" : 0,
"loudness_modifier" : 0,
"to_hit" : -1,
"accuracy_modifier" : -1,
"price" : 320,
"clip_size_modifier" : 0,
"description" : "Replacing several key parts of a 9mm, .38, .40, 5.7mm, 4.6mm, 7.62mm or .223 firearm converts it to a .22 firearm. The conversion results in a slight reduction in accuracy.",
"symbol" : ":",
"material" : ["steel", "null"],
"volume" : 1,
"cutting" : 0,
"recoil_modifier" : 0,
"damage_modifier" : 0,
"acceptable_ammo" : ["9MM", "38", "40", "57", "46", "762", "223"],
"mod_targets" : ["pistol", "smg", "rifle"],
"rarity" : 2,
"bashing" : -2,
"ammo_modifier" : ".22"
},
{
"type" : "GUNMOD",
"id" : "retool_57",
"name" : "5.7mm caliber retool",
"weight" : 1,
"color" : "green",
"burst_modifier" : 0,
"loudness_modifier" : 0,
"to_hit" : -1,
"accuracy_modifier" : -1,
"price" : 460,
"clip_size_modifier" : 0,
"description" : "FN Hestal sells a conversion kit, used to convert .22, 9mm, or .38 firearms to their proprietary 5.7x28mm, a round designed for accuracy and armor penetration.",
"symbol" : ":",
"material" : ["steel", "null"],
"volume" : 1,
"cutting" : 0,
"recoil_modifier" : 0,
"damage_modifier" : 0,
"acceptable_ammo" : ["22", "9MM", "38"],
"mod_targets" : ["pistol", "smg"],
"rarity" : 1,
"bashing" : -3,
"ammo_modifier" : "5.7mm"
},
{
"type" : "GUNMOD",
"id" : "retool_46",
"name" : "4.6mm caliber retool",
"weight" : 1,
"color" : "green",
"burst_modifier" : 0,
"loudness_modifier" : 0,
"to_hit" : -1,
"accuracy_modifier" : -1,
"price" : 460,
"clip_size_modifier" : 0,
"description" : "Heckler and Koch sells a conversion kit, used to convert .22, 9mm, or .38 firearms to their proprietary 4.6x30mm, a round designed for accuracy and armor penetration.",
"symbol" : ":",
"material" : ["steel", "null"],
"volume" : 1,
"cutting" : 0,
"recoil_modifier" : 0,
"damage_modifier" : 0,
"acceptable_ammo" : ["22", "9MM", "38"],
"mod_targets" : ["pistol", "smg"],
"rarity" : 1,
"bashing" : -3,
"ammo_modifier" : "4.6mm"
},
{
"type" : "GUNMOD",
"id" : "retool_308",
"name" : ".308 caliber retool",
"weight" : 1,
"color" : "green",
"burst_modifier" : 0,
"loudness_modifier" : 0,
"to_hit" : 1,
"accuracy_modifier" : -2,
"price" : 520,
"clip_size_modifier" : -20,
"description" : "This kit is used to convert a shotgun or 7.62mm, .223 or .30-06 rifle to the popular and powerful .308 caliber. The conversion results in reduced ammo capacity and a slight reduction in accuracy.",
"symbol" : ":",
"material" : ["steel", "null"],
"volume" : 2,
"cutting" : 0,
"recoil_modifier" : 0,
"damage_modifier" : 0,
"acceptable_ammo" : ["SHOT", "762", "223", "3006"],
"mod_targets" : ["shotgun", "rifle"],
"rarity" : 2,
"bashing" : 4,
"ammo_modifier" : ".308"
},
{
"type" : "GUNMOD",
"id" : "retool_223",
"name" : ".223 caliber retool",
"weight" : 1,
"color" : "green",
"burst_modifier" : 0,
"loudness_modifier" : 0,
"to_hit" : 1,
"accuracy_modifier" : -2,
"price" : 500,
"clip_size_modifier" : -10,
"description" : "This kit is used to convert a shotgun or 7.62mm, .30-06, or .308 rifle to the popular, accurate, and damaging .223 caliber. The conversion results in slight reductions in both accuracy and ammo capacity.",
"symbol" : ":",
"material" : ["steel", "null"],
"volume" : 2,
"cutting" : 0,
"recoil_modifier" : 0,
"damage_modifier" : 0,
"acceptable_ammo" : ["SHOT", "762", "3006", "308"],
"mod_targets" : ["shotgun", "rifle"],
"rarity" : 2,
"bashing" : 4,
"ammo_modifier" : ".223"
},
{
"type" : "GUNMOD",
"id" : "conversion_battle",
"name" : "battle rifle conversion",
"clip_size_modifier" : 20,
"accuracy_modifier" : -6,
"damage_modifier" : 6,
"ammo_modifier" : "none",
"description" : "This is a complete conversion kit, designed to turn a rifle into a powerful battle rifle. It reduces accuracy, and increases noise and recoil, but also increases damage, ammo capacity, and fire rate.",
"weight" : 3,
"to_hit" : -1,
"color" : "magenta",
"symbol" : ":",
"material" : ["steel", "null"],
"mod_targets" : ["rifle"],
"volume" : 4,
"bashing" : 6,
"cutting" : 0,
"burst_modifier" : 4,
"recoil_modifier" : 4,
"rarity" : 1,
"price" : 680,
"loudness_modifier" : 4
},
{
"type" : "GUNMOD",
"id" : "conversion_sniper",
"name" : "sniper conversion",
"clip_size_modifier" : -15,
"accuracy_modifier" : 10,
"damage_modifier" : 8,
"ammo_modifier" : "none",
"description" : "This is a complete conversion kit, designed to turn a rifle into a deadly sniper rifle. It decreases ammo capacity, and removes any automatic fire capabilities, but also increases accuracy and damage.",
"weight" : 2,
"to_hit" : -1,
"color" : "green",
"symbol" : ":",
"material" : ["steel", "null"],
"mod_targets" : ["rifle"],
"volume" : 1,
"bashing" : 0,
"cutting" : 0,
"burst_modifier" : -99,
"recoil_modifier" : 0,
"rarity" : 1,
"price" : 660,
"loudness_modifier" : 3
},
{
"type" : "GUNMOD",
"id" : "m203",
"name" : "M203",
"weight" : 1,
"color" : "light_red",
"burst_modifier" : 0,
"loudness_modifier" : 0,
"to_hit" : -1,
"accuracy_modifier" : -2,
"price" : 650,
"clip_size_modifier" : 1,
"description" : "The M203 was originally designed for use with M16 variants but today can be attached to almost any rifle. It allows a single 40mm grenade to be loaded and fired.",
"symbol" : ":",
"material" : ["steel", "null"],
"volume" : 2,
"cutting" : 0,
"recoil_modifier" : 0,
"damage_modifier" : 0,
"mod_targets" : ["rifle"],
"rarity" : 2,
"bashing" : 2,
"flags" : ["MODE_AUX"],
"ammo_modifier" : "40mm"
},
{
"type" : "GUNMOD",
"id" : "bayonet",
"name" : "bayonet",
"weight" : 2,
"color" : "light_cyan",
"burst_modifier" : 0,
"loudness_modifier" : 0,
"to_hit" : -3,
"accuracy_modifier" : 0,
"price" : 400,
"clip_size_modifier" : 0,
"description" : "A bayonet is a stabbing weapon that can be attached to the front of a shotgun, sub-machinegun or rifle, allowing a melee attack to deal piercing damage. The added length increases recoil slightly.",
"symbol" : ":",
"material" : ["steel", "null"],
"volume" : 2,
"cutting" : 16,
"recoil_modifier" : 3,
"damage_modifier" : 0,
"mod_targets" : ["shotgun", "smg", "rifle"],
"rarity" : 6,
"bashing" : 0,
"flags" : ["STAB"],
"ammo_modifier" : "none"
},
{
"type" : "GUNMOD",
"id" : "u_shotgun",
"name" : "underslung shotgun",
"weight" : 1,
"color" : "light_red",
"burst_modifier" : 0,
"loudness_modifier" : 0,
"to_hit" : -1,
"accuracy_modifier" : -2,
"price" : 650,
"clip_size_modifier" : 2,
"description" : "A miniaturized shotgun with 2 barrels, which can be mounted under the barrel of many rifles. It allows two shotgun shells to be loaded and fired.",
"symbol" : ":",
"material" : ["steel", "null"],
"volume" : 2,
"cutting" : 0,
"recoil_modifier" : 0,
"damage_modifier" : 0,
"mod_targets" : ["rifle"],
"rarity" : 2,
"bashing" : 2,
"flags" : ["MODE_AUX"],
"ammo_modifier" : "shot"
},
{
"type" : "GUNMOD",
"id" : "gun_crossbow",
"name" : "rail-mounted crossbow",
"weight" : 1,
"color" : "light_red",
"burst_modifier" : 0,
"loudness_modifier" : 0,
"to_hit" : -1,
"accuracy_modifier" : 0,
"price" : 500,
"clip_size_modifier" : 1,
"description" : "A kit to attach a pair of crossbow arms and a firing rail to the barrel of a long firearm. It allows crossbow bolts to be fired.",
"symbol" : ":",
"material" : ["steel", "wood"],
"volume" : 2,
"cutting" : 0,
"recoil_modifier" : 0,
"damage_modifier" : 0,
"mod_targets" : ["shotgun", "rifle"],
"rarity" : 2,
"bashing" : 2,
"flags" : ["MODE_AUX", "STR_RELOAD"],
"ammo_modifier" : "bolt"
}
]
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
-249
View File
@@ -1,249 +0,0 @@
[
{
"ident" : "null",
"name" : "Null",
"bash_resist" : 0,
"cut_resist" : 0,
"bash_dmg_verb" : "damaged",
"cut_dmg_verb" : "damaged",
"dmg_adj" : ["lightly damaged", "damaged", "very damaged", "thoroughly damaged"],
"acid_resist" : 0,
"elec_resist" : 0,
"fire_resist" : 0,
"density" : 1
},
{
"ident" : "veggy",
"name" : "Plant Matter",
"bash_resist" : 1,
"cut_resist" : 1,
"bash_dmg_verb" : "ripped",
"cut_dmg_verb" : "cut",
"dmg_adj" : ["lightly damaged", "damaged", "very damaged", "thoroughly damaged"],
"acid_resist" : 1,
"elec_resist" : 1,
"fire_resist" : 0,
"density" : 4
},
{
"ident" : "flesh",
"name" : "Flesh",
"bash_resist" : 1,
"cut_resist" : 1,
"bash_dmg_verb" : "bruised",
"cut_dmg_verb" : "sliced",
"dmg_adj" : ["bruised", "mutilated", "badly mutilated", "thoroughly mutilated"],
"acid_resist" : 1,
"elec_resist" : 1,
"fire_resist" : 0,
"density" : 5
},
{
"ident" : "powder",
"name" : "Powder",
"bash_resist" : 1,
"cut_resist" : 1,
"bash_dmg_verb" : "damaged",
"cut_dmg_verb" : "damaged",
"dmg_adj" : ["lightly damaged", "damaged", "very damaged", "thoroughly damaged"],
"acid_resist" : 0,
"elec_resist" : 2,
"fire_resist" : 0,
"density" : 1
},
{
"ident" : "hflesh",
"name" : "Human Flesh",
"bash_resist" : 1,
"cut_resist" : 1,
"bash_dmg_verb" : "bruised",
"cut_dmg_verb" : "sliced",
"dmg_adj" : ["bruised", "mutilated", "badly mutilated", "thoroughly mutilated"],
"acid_resist" : 1,
"elec_resist" : 1,
"fire_resist" : 0,
"density" : 5
},
{
"ident" : "cotton",
"name" : "Cotton",
"bash_resist" : 1,
"cut_resist" : 1,
"bash_dmg_verb" : "ripped",
"cut_dmg_verb" : "cut",
"dmg_adj" : ["ripped", "torn", "shredded", "tattered"],
"acid_resist" : 1,
"elec_resist" : 2,
"fire_resist" : 0,
"density" : 3
},
{
"ident" : "wool",
"name" : "Wool",
"bash_resist" : 1,
"cut_resist" : 1,
"bash_dmg_verb" : "torn",
"cut_dmg_verb" : "cut",
"dmg_adj" : ["ripped", "torn", "shredded", "tattered"],
"acid_resist" : 1,
"elec_resist" : 2,
"fire_resist" : 0,
"density" : 9
},
{
"ident" : "leather",
"name" : "Leather",
"bash_resist" : 2,
"cut_resist" : 2,
"bash_dmg_verb" : "ripped",
"cut_dmg_verb" : "sliced",
"dmg_adj" : ["scratched", "cut", "shredded", "tattered"],
"acid_resist" : 1,
"elec_resist" : 2,
"fire_resist" : 1,
"density" : 6
},
{
"ident" : "kevlar",
"name" : "Kevlar",
"bash_resist" : 2,
"cut_resist" : 4,
"bash_dmg_verb" : "ripped",
"cut_dmg_verb" : "cut",
"dmg_adj" : ["marked", "dented", "scarred", "broken"],
"acid_resist" : 2,
"elec_resist" : 2,
"fire_resist" : 1,
"density" : 10
},
{
"ident" : "fur",
"name" : "Fur",
"bash_resist" : 2,
"cut_resist" : 2,
"bash_dmg_verb" : "ripped",
"cut_dmg_verb" : "sliced",
"dmg_adj" : ["ripped", "torn", "shredded", "tattered"],
"acid_resist" : 1,
"elec_resist" : 2,
"fire_resist" : 0,
"density" : 9
},
{
"ident" : "chitin",
"name" : "Chitin",
"bash_resist" : 3,
"cut_resist" : 4,
"bash_dmg_verb" : "cracked",
"cut_dmg_verb" : "chipped",
"dmg_adj" : ["scratched", "cut", "cracked", "shattered"],
"acid_resist" : 1,
"elec_resist" : 2,
"fire_resist" : 2,
"density" : 10
},
{
"ident" : "stone",
"name" : "Stone",
"bash_resist" : 6,
"cut_resist" : 6,
"bash_dmg_verb" : "cracked",
"cut_dmg_verb" : "chipped",
"dmg_adj" : ["scratched", "cut", "cracked", "shattered"],
"acid_resist" : 3,
"elec_resist" : 2,
"fire_resist" : 2,
"density" : 17
},
{
"ident" : "paper",
"name" : "Paper",
"bash_resist" : 1,
"cut_resist" : 1,
"bash_dmg_verb" : "ripped",
"cut_dmg_verb" : "cut",
"dmg_adj" : ["ripped", "torn", "shredded", "tattered"],
"acid_resist" : 1,
"elec_resist" : 2,
"fire_resist" : 0,
"density" : 4
},
{
"ident" : "wood",
"name" : "Wood",
"bash_resist" : 3,
"cut_resist" : 2,
"bash_dmg_verb" : "splintered",
"cut_dmg_verb" : "gouged",
"dmg_adj" : ["scratched", "chipped", "cracked", "splintered"],
"acid_resist" : 2,
"elec_resist" : 2,
"fire_resist" : 0,
"density" : 4
},
{
"ident" : "plastic",
"name" : "Plastic",
"bash_resist" : 2,
"cut_resist" : 2,
"bash_dmg_verb" : "dented",
"cut_dmg_verb" : "gouged",
"dmg_adj" : ["scratched", "cut", "cracked", "shattered"],
"acid_resist" : 2,
"elec_resist" : 2,
"fire_resist" : 0,
"density" : 8
},
{
"ident" : "glass",
"name" : "Glass",
"bash_resist" : 3,
"cut_resist" : 4,
"bash_dmg_verb" : "cracked",
"cut_dmg_verb" : "scratched",
"dmg_adj" : ["scratched", "cut", "cracked", "shattered"],
"acid_resist" : 3,
"elec_resist" : 2,
"fire_resist" : 2,
"density" : 14
},
{
"ident" : "iron",
"name" : "Iron",
"bash_resist" : 4,
"cut_resist" : 4,
"bash_dmg_verb" : "dented",
"cut_dmg_verb" : "scratched",
"dmg_adj" : ["marked", "dented", "smashed", "shattered"],
"acid_resist" : 0,
"elec_resist" : 0,
"fire_resist" : 2,
"density" : 52
},
{
"ident" : "steel",
"name" : "Steel",
"bash_resist" : 6,
"cut_resist" : 6,
"bash_dmg_verb" : "dented",
"cut_dmg_verb" : "scratched",
"dmg_adj" : ["marked", "dented", "smashed", "shattered"],
"acid_resist" : 0,
"elec_resist" : 0,
"fire_resist" : 2,
"density" : 52
},
{
"ident" : "silver",
"name" : "Silver",
"bash_resist" : 2,
"cut_resist" : 3,
"bash_dmg_verb" : "dented",
"cut_dmg_verb" : "scratched",
"dmg_adj" : ["marked", "dented", "smashed", "shattered"],
"acid_resist" : 2,
"elec_resist" : 0,
"fire_resist" : 2,
"density" : 70
}
]
-287
View File
@@ -1,287 +0,0 @@
[
{
"name" : "GROUP_FOREST",
"default" : "mon_squirrel",
"monsters" : [
{ "monster" : "mon_rabbit", "freq" : 150, "multiplier" : 0 },
{ "monster" : "mon_deer", "freq" : 30, "multiplier" : 3 },
{ "monster" : "mon_moose", "freq" : 10, "multiplier" : 3 },
{ "monster" : "mon_wolf", "freq" : 30, "multiplier" : 5 },
{ "monster" : "mon_coyote", "freq" : 30, "multiplier" : 5 },
{ "monster" : "mon_bear", "freq" : 20, "multiplier" : 10 },
{ "monster" : "mon_cougar", "freq" : 20, "multiplier" : 10 },
{ "monster" : "mon_spider_wolf", "freq" : 30, "multiplier" : 10 },
{ "monster" : "mon_spider_jumping", "freq" : 30, "multiplier" : 10 },
{ "monster" : "mon_dog", "freq" : 10, "multiplier" : 0 },
{ "monster" : "mon_cat", "freq" : 10, "multiplier" : 0 },
{ "monster" : "mon_crow", "freq" : 30, "multiplier" : 0 }
]
},
{
"name" : "GROUP_ANT",
"default" : "mon_ant",
"monsters" : [
{ "monster" : "mon_ant_larva", "freq" : 40, "multiplier" : 0 },
{ "monster" : "mon_ant_soldier", "freq" : 90, "multiplier" : 5 },
{ "monster" : "mon_ant_queen", "freq" : 0, "multiplier" : 0 }
]
},
{
"name" : "GROUP_BEE",
"default" : "mon_bee",
"monsters" : [
]
},
{
"name" : "GROUP_WORM",
"default" : "mon_worm",
"monsters" : [
{ "monster" : "mon_graboid", "freq" : 30, "multiplier" : 20 },
{ "monster" : "mon_halfworm", "freq" : 0, "multiplier" : 0 }
]
},
{
"name" : "GROUP_ZOMBIE",
"default" : "mon_zombie",
"monsters" : [
{ "monster" : "mon_zombie_cop", "freq" : 20, "multiplier" : 3 },
{ "monster" : "mon_zombie_fast", "freq" : 70, "multiplier" : 2 },
{ "monster" : "mon_zombie_grabber", "freq" : 70, "multiplier" : 1 },
{ "monster" : "mon_skeleton", "freq" : 30, "multiplier" : 2 },
{ "monster" : "mon_zombie_smoker", "freq" : 30, "multiplier" : 5 },
{ "monster" : "mon_zombie_shrieker", "freq" : 30, "multiplier" : 5 },
{ "monster" : "mon_zombie_spitter", "freq" : 30, "multiplier" : 5 },
{ "monster" : "mon_zombie_electric", "freq" : 30, "multiplier" : 5 },
{ "monster" : "mon_zombie_necro", "freq" : 1, "multiplier" : 25 },
{ "monster" : "mon_boomer", "freq" : 30, "multiplier" : 7 },
{ "monster" : "mon_zombie_brute", "freq" : 10, "multiplier" : 15 },
{ "monster" : "mon_zombie_hulk", "freq" : 1, "multiplier" : 50 },
{ "monster" : "mon_zombie_master", "freq" : 1, "multiplier" : 25 },
{ "monster" : "mon_crow", "freq" : 1, "multiplier" : 0 }
]
},
{
"name" : "GROUP_TRIFFID",
"default" : "mon_triffid",
"monsters" : [
{ "monster" : "mon_triffid_young", "freq" : 300, "multiplier" : 0 },
{ "monster" : "mon_vinebeast", "freq" : 160, "multiplier" : 10 },
{ "monster" : "mon_triffid_queen", "freq" : 60, "multiplier" : 0 }
]
},
{
"name" : "GROUP_FUNGI",
"default" : "mon_fungaloid",
"monsters" : [
{ "monster" : "mon_fungaloid_dormant", "freq" : 0, "multiplier" : 0 },
{ "monster" : "mon_ant_fungus", "freq" : 0, "multiplier" : 0 },
{ "monster" : "mon_zombie_fungus", "freq" : 300, "multiplier" : 0 },
{ "monster" : "mon_boomer_fungus", "freq" : 30, "multiplier" : 0 },
{ "monster" : "mon_spore", "freq" : 0, "multiplier" : 0 },
{ "monster" : "mon_fungal_wall", "freq" : 0, "multiplier" : 0 }
]
},
{
"name" : "GROUP_GOO",
"default" : "mon_blob",
"monsters" : [
{ "monster" : "mon_blob_small", "freq" : 200, "multiplier" : 0 }
]
},
{
"name" : "GROUP_CHUD",
"default" : "mon_chud",
"monsters" : [
{ "monster" : "mon_one_eye", "freq" : 90, "multiplier" : 0 },
{ "monster" : "mon_crawler", "freq" : 35, "multiplier" : 0 }
]
},
{
"name" : "GROUP_SEWER",
"default" : "mon_sewer_rat",
"monsters" : [
{ "monster" : "mon_sewer_fish", "freq" : 470, "multiplier" : 0 },
{ "monster" : "mon_sewer_snake", "freq" : 240, "multiplier" : 0 }
]
},
{
"name" : "GROUP_SWAMP",
"default" : "mon_mosquito",
"monsters" : [
{ "monster" : "mon_dragonfly", "freq" : 130, "multiplier" : 0 },
{ "monster" : "mon_centipede", "freq" : 150, "multiplier" : 0 },
{ "monster" : "mon_frog", "freq" : 100, "multiplier" : 0 },
{ "monster" : "mon_slug", "freq" : 85, "multiplier" : 0 },
{ "monster" : "mon_dermatik_larva", "freq" : 0, "multiplier" : 0 },
{ "monster" : "mon_dermatik", "freq" : 65, "multiplier" : 0 }
]
},
{
"name" : "GROUP_LAB",
"default" : "mon_zombie_scientist",
"monsters" : [
{ "monster" : "mon_blob_small", "freq" : 25, "multiplier" : 0 },
{ "monster" : "mon_manhack", "freq" : 245, "multiplier" : 0 },
{ "monster" : "mon_skitterbot", "freq" : 245, "multiplier" : 0 }
]
},
{
"name" : "GROUP_NETHER",
"default" : "mon_blank",
"monsters" : [
{ "monster" : "mon_flying_polyp", "freq" : 25, "multiplier" : 0 },
{ "monster" : "mon_hunting_horror", "freq" : 240, "multiplier" : 0 },
{ "monster" : "mon_mi_go", "freq" : 120, "multiplier" : 0 },
{ "monster" : "mon_yugg", "freq" : 70, "multiplier" : 0 },
{ "monster" : "mon_gelatin", "freq" : 120, "multiplier" : 0 },
{ "monster" : "mon_flaming_eye", "freq" : 120, "multiplier" : 0 },
{ "monster" : "mon_kreck", "freq" : 210, "multiplier" : 0 },
{ "monster" : "mon_gozu", "freq" : 25, "multiplier" : 0 }
]
},
{
"name" : "GROUP_SPIRAL",
"default" : "mon_human_snail",
"monsters" : [
{ "monster" : "mon_twisted_body", "freq" : 180, "multiplier" : 0 },
{ "monster" : "mon_vortex", "freq" : 80, "multiplier" : 0 }
]
},
{
"name" : "GROUP_VANILLA",
"default" : "mon_zombie",
"monsters" : [
]
},
{
"name" : "GROUP_SPIDER",
"default" : "mon_spider_wolf",
"monsters" : [
{ "monster" : "mon_spider_web", "freq" : 200, "multiplier" : 0 },
{ "monster" : "mon_spider_jumping", "freq" : 400, "multiplier" : 0 },
{ "monster" : "mon_spider_widow", "freq" : 200, "multiplier" : 0 }
]
},
{
"name" : "GROUP_ROBOT",
"default" : "mon_manhack",
"monsters" : [
{ "monster" : "mon_skitterbot", "freq" : 220, "multiplier" : 0 },
{ "monster" : "mon_secubot", "freq" : 150, "multiplier" : 0 },
{ "monster" : "mon_copbot", "freq" : 0, "multiplier" : 0 },
{ "monster" : "mon_molebot", "freq" : 40, "multiplier" : 0 },
{ "monster" : "mon_tripod", "freq" : 110, "multiplier" : 0 },
{ "monster" : "mon_chickenbot", "freq" : 60, "multiplier" : 0 },
{ "monster" : "mon_tankbot", "freq" : 20, "multiplier" : 0 }
]
},
{
"name" : "GROUP_POLICE", "_comment" : "+30% cops",
"default" : "mon_zombie",
"monsters" : [
{ "monster" : "mon_zombie_cop", "freq" : 320, "multiplier" : 3 },
{ "monster" : "mon_zombie_fast", "freq" : 70, "multiplier" : 2 },
{ "monster" : "mon_zombie_grabber", "freq" : 70, "multiplier" : 1 },
{ "monster" : "mon_skeleton", "freq" : 30, "multiplier" : 2 },
{ "monster" : "mon_zombie_smoker", "freq" : 30, "multiplier" : 5 },
{ "monster" : "mon_zombie_shrieker", "freq" : 30, "multiplier" : 5 },
{ "monster" : "mon_zombie_spitter", "freq" : 30, "multiplier" : 5 },
{ "monster" : "mon_zombie_electric", "freq" : 30, "multiplier" : 5 },
{ "monster" : "mon_zombie_necro", "freq" : 1, "multiplier" : 25 },
{ "monster" : "mon_boomer", "freq" : 30, "multiplier" : 7 },
{ "monster" : "mon_zombie_brute", "freq" : 10, "multiplier" : 15 },
{ "monster" : "mon_zombie_hulk", "freq" : 1, "multiplier" : 50 },
{ "monster" : "mon_zombie_master", "freq" : 1, "multiplier" : 25 },
{ "monster" : "mon_crow", "freq" : 1, "multiplier" : 0 }
]
},
{
"name" : "GROUP_HOUSE", "_comment" : "+15% child",
"default" : "mon_zombie",
"monsters" : [
{ "monster" : "mon_zombie_child", "freq" : 150, "multiplier" : 2 },
{ "monster" : "mon_zombie_cop", "freq" : 20, "multiplier" : 2 },
{ "monster" : "mon_zombie_fast", "freq" : 70, "multiplier" : 2 },
{ "monster" : "mon_zombie_grabber", "freq" : 70, "multiplier" : 1 },
{ "monster" : "mon_skeleton", "freq" : 30, "multiplier" : 2 },
{ "monster" : "mon_zombie_smoker", "freq" : 30, "multiplier" : 5 },
{ "monster" : "mon_zombie_shrieker", "freq" : 30, "multiplier" : 5 },
{ "monster" : "mon_zombie_spitter", "freq" : 30, "multiplier" : 5 },
{ "monster" : "mon_zombie_electric", "freq" : 30, "multiplier" : 5 },
{ "monster" : "mon_zombie_necro", "freq" : 1, "multiplier" : 25 },
{ "monster" : "mon_boomer", "freq" : 30, "multiplier" : 7 },
{ "monster" : "mon_zombie_brute", "freq" : 10, "multiplier" : 15 },
{ "monster" : "mon_zombie_hulk", "freq" : 1, "multiplier" : 50 },
{ "monster" : "mon_zombie_master", "freq" : 1, "multiplier" : 25 },
{ "monster" : "mon_crow", "freq" : 1, "multiplier" : 0 }
]
},
{
"name" : "GROUP_PHARM", "_comment" : "+15% fast",
"default" : "mon_zombie",
"monsters" : [
{ "monster" : "mon_zombie_cop", "freq" : 20, "multiplier" : 2 },
{ "monster" : "mon_zombie_fast", "freq" : 220, "multiplier" : 2 },
{ "monster" : "mon_zombie_grabber", "freq" : 70, "multiplier" : 1 },
{ "monster" : "mon_skeleton", "freq" : 30, "multiplier" : 2 },
{ "monster" : "mon_zombie_smoker", "freq" : 30, "multiplier" : 5 },
{ "monster" : "mon_zombie_shrieker", "freq" : 30, "multiplier" : 5 },
{ "monster" : "mon_zombie_spitter", "freq" : 30, "multiplier" : 5 },
{ "monster" : "mon_zombie_electric", "freq" : 30, "multiplier" : 5 },
{ "monster" : "mon_zombie_necro", "freq" : 1, "multiplier" : 25 },
{ "monster" : "mon_boomer", "freq" : 30, "multiplier" : 7 },
{ "monster" : "mon_zombie_brute", "freq" : 10, "multiplier" : 15 },
{ "monster" : "mon_zombie_hulk", "freq" : 1, "multiplier" : 50 },
{ "monster" : "mon_zombie_master", "freq" : 1, "multiplier" : 25 },
{ "monster" : "mon_crow", "freq" : 1, "multiplier" : 0 }
]
},
{
"name" : "GROUP_ELECTRO", "_comment" : "+15% electric",
"default" : "mon_zombie",
"monsters" : [
{ "monster" : "mon_zombie_cop", "freq" : 20, "multiplier" : 2 },
{ "monster" : "mon_zombie_fast", "freq" : 70, "multiplier" : 2 },
{ "monster" : "mon_zombie_grabber", "freq" : 70, "multiplier" : 1 },
{ "monster" : "mon_skeleton", "freq" : 30, "multiplier" : 2 },
{ "monster" : "mon_zombie_smoker", "freq" : 30, "multiplier" : 5 },
{ "monster" : "mon_zombie_shrieker", "freq" : 30, "multiplier" : 5 },
{ "monster" : "mon_zombie_spitter", "freq" : 30, "multiplier" : 5 },
{ "monster" : "mon_zombie_electric", "freq" : 180, "multiplier" : 5 },
{ "monster" : "mon_zombie_necro", "freq" : 1, "multiplier" : 25 },
{ "monster" : "mon_boomer", "freq" : 30, "multiplier" : 7 },
{ "monster" : "mon_zombie_brute", "freq" : 10, "multiplier" : 15 },
{ "monster" : "mon_zombie_hulk", "freq" : 1, "multiplier" : 50 },
{ "monster" : "mon_zombie_master", "freq" : 1, "multiplier" : 25 },
{ "monster" : "mon_crow", "freq" : 1, "multiplier" : 0 }
]
},
{
"name" : "GROUP_GROCERY", "_comment" : "+15% bommers",
"default" : "mon_zombie",
"monsters" : [
{ "monster" : "mon_zombie_cop", "freq" : 20, "multiplier" : 2 },
{ "monster" : "mon_zombie_fast", "freq" : 70, "multiplier" : 2 },
{ "monster" : "mon_zombie_grabber", "freq" : 70, "multiplier" : 1 },
{ "monster" : "mon_skeleton", "freq" : 30, "multiplier" : 2 },
{ "monster" : "mon_zombie_smoker", "freq" : 30, "multiplier" : 5 },
{ "monster" : "mon_zombie_shrieker", "freq" : 30, "multiplier" : 5 },
{ "monster" : "mon_zombie_spitter", "freq" : 30, "multiplier" : 5 },
{ "monster" : "mon_zombie_electric", "freq" : 30, "multiplier" : 5 },
{ "monster" : "mon_zombie_necro", "freq" : 1, "multiplier" : 25 },
{ "monster" : "mon_boomer", "freq" : 180, "multiplier" : 7 },
{ "monster" : "mon_zombie_brute", "freq" : 10, "multiplier" : 15 },
{ "monster" : "mon_zombie_hulk", "freq" : 1, "multiplier" : 50 },
{ "monster" : "mon_zombie_master", "freq" : 1, "multiplier" : 25 },
{ "monster" : "mon_crow", "freq" : 1, "multiplier" : 0 }
]
},
{
"name" : "GROUP_MAYBE_MIL", "_comment" : "50% chance military zombie",
"default" : "mon_null",
"monsters" : [
{ "monster" : "mon_zombie_soldier", "freq" : 50, "multiplier" : 0 }
]
}
]
-1456
View File
File diff suppressed because it is too large Load Diff
-67
View File
@@ -1,67 +0,0 @@
[
{
"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"]
},
{
"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, \"sundries\", and one additional level of melee.",
"points": 2,
"items": ["tank_top", "hoodie", "pants_cargo", "sneakers", "weed", "picklocks"],
"skills" : [
{
"name" : "melee",
"level" : 1
}
]
},
{
"ident": "smoker",
"name": "Chain Smoker",
"description":
"Everyone at work knew you as the person who always had a cigarette or two\nin hand. Now, you're down to a single pack, and you hope you find more soon.\nYou start out with a strong nicotine addiction, and 10 cigarettes.",
"points": -1,
"items": ["pants", "dress_shirt", "dress_shoes", "cig"],
"addictions": [
{
"type": "nicotine",
"intensity": 10
}
]
}
]
File diff suppressed because it is too large Load Diff
-164
View File
@@ -1,164 +0,0 @@
[
[
"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.",
["gun_type"]
],
[
"shotgun",
"shotguns",
"Your skill with shotguns. Shot is easy to hit with, and does massive damage,\nbut has short range. Shotguns may also be loaded with slugs, which go further\nand do as much damage, but are not very accurate.",
["gun_type"]
],
[
"smg",
"submachine guns",
"Your skill with submachine guns and machine pistols. Halfway between a pistol\nand an assault rifle, these weapons fire and reload quickly, and may fire in\nbursts, but they are not very accurate.",
["gun_type"]
],
[
"rifle",
"rifles",
"Your skill with rifles, both assault rifles and semi-auto hunting rifles.\nThese have terrific range and accuracy, but are very slow to fire and reload,\nand are not very good in close quarters.",
["gun_type"]
],
[
"archery",
"archery",
"Your skill with all kinds of bows, from crossbows to handmade long bows.\nThese are quiet, but require some amount of strength to use, and are not\nterribly accurate. They can only be deadly in skilled hands.",
[]
],
[
"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.",
[]
]
]
-77
View File
@@ -1,77 +0,0 @@
{
"snippets":
[
{
"category": "flier",
"text": "This is an advertisement for the Diet Devil brand Metabolic Exchange CBM. It shows a picture of a tiny obese devil sitting on a woman's shoulder. The woman stares intently at a gigantic wedding cake covered with bacon and candybars. The caption reads: \"Burn calories! Burn!\""
},
{
"category": "flier",
"text": "This is an advertisement for the Diet Devil brand Internal Furnace CBM. It shows a picture of a tiny obese devil sitting on a man's shoulder. The man is about to bite into a frosting-covered baby. The caption reads: \"Eat What You Want! How You Want! Who You Want!\""
},
{
"category": "flier",
"text": "This is an advertisement for the Diet Devil brand Ethanol Burner CBM. It shows a picture of a teenaged boy driving a car while chugging a bottle of whiskey. A tiny obese devil sits on his shoulder and drinks a martini. The caption reads: \"Drink like there's no tomorrow!\""
},
{
"category": "flier",
"text": "This is an advertisement for the Twenty8 brand Diamond Cornea CBM. It shows a picture of the cyber-module being clutched by an eagle in flight. The captions read: \"Get the new Model 28.bx Eagle-Eye!\" and \"Twenty8. See what you've been missing.\""
},
{
"category": "flier",
"text": "This is an advertisement for the Twenty8 brand Night Vision CBM. It shows a picture of an owl swooping down on a the cyber-module. The captions read: \"Get the new Model 28.hx Night-Owl!\" and \"Twenty8. See what you've been missing.\""
},
{
"category": "flier",
"text": "This is an advertisement for the Twenty8 brand Diamond Cornea CBM. It shows a picture of a flying hawk carrying the cyber-module in its beak. The captions read: \"Get the new Model 28.xx Hawk-Eye!\" and \"Twenty8. See what you've been missing.\""
},
{
"category": "flier",
"text": "This is an advertisement for the Twenty8 brand Scent Vision CBM. It shows a picture of a vulture perched on a pile of skulls and cyber-modules. The captions read: \"Get the new Model 28.vx Vulture today!\" and \"Twenty8. See what you've been missing.\""
},
{
"category": "flier",
"text": "This is an ad for a Twenty8 brand Infrared Vision CBM. It shows a picture of a robotic phoenix covered in flames. The captions read: \"Get the new Model 28.tx Phoenix today!\" and \"Twenty8. See what you've been missing.\""
},
{
"category": "flier",
"text": "This is an advertisement for DoubleTech brand law enforcement robots. It shows a picture of copbot and an eyebot boldly emerging from a cloud of teargas and flame. The caption reads: \"DoubleTech Industries. Built to Protect. Programmed to Serve.\""
},
{
"category": "flier",
"text": "This is an advertisement for DoubleTech brand law enforcement robots. It shows a picture of an eyebot flying alongside a bald eagle and a Stealth bomber painted as an American flag. The caption reads: \"Built to Protect. Programmed to Serve.\""
},
{
"category": "flier",
"text": "This is an advertisement for DoubleTech brand law enforcement robots. It shows a picture of a dozen eyebots floating over a woman as she jogs through a park. The captions read: \"Built to Protect. Programmed to Serve.\""
},
{
"category": "flier",
"text": "This is an advertisement for DoubleTech brand law enforcement robots. It shows a picture of copbot pepper-spraying a handcuffed rioter. In the background a troop of boy scouts salutes the robot. The caption reads: \"Built to Protect. Programmed to Serve.\""
},
{
"category": "flier",
"text": "This is an advertisement for Robert's Universal Robotics brand law enforcement robots. It shows a picture of tripod robot incinerating a mob of looters and stepping over charred and smoking corpses. The caption reads: \"Built to Protect. Programmed to Serve.\""
},
{
"category": "flier",
"text": "This is an advertisement for Robert's Universal Robots brand labor-bots. It shows a picture of a robot carrying a heavy pallet of bricks. In the background a human foreman is sleeping on the job, with his hardhat pulled down over his eyes. The captions read: \"It's a tough job, so why should you have to do it?\" and \"R.U.R. Technology you can Trust.\""
},
{
"category": "flier",
"text": "This is an advertisement for Robert's Universal Robots brand labor-bots. It shows a picture of a factory floor run entirely by robots. In the background a man in a suit reads a newspaper that shows soaring stock prices. The caption reads: \"R.U.R. Technology you can Trust.\""
},
{
"category": "flier",
"text": "This is an advertisement for Sybil's Cyber Boutique. It shows a picture of several bikini-clad female doctors removing the skin from man's face. The patient is strapped to a chair but cheerfully gives two thumbs up. The caption reads: \"Free Plastic Surgery While You Wait!\""
},
{
"category": "flier",
"text": "This is an advertisement for Sybil's Cyber Boutique. It shows a picture of a nerdy looking man surrounded by a group of admiring women. In the foreground a blood-drenched doctor gives an exaggerated wink and a two thumbs up. The caption reads: \"Holiday sales! Get the package deals!\""
},
{
"category": "flier",
"text": "This is an advertisement for Sybil's Cyber Boutique. It shows a picture of a man flexing shiny cybernetic arms in front of a mirror. He is flanked by two scantily clad nurses who hold bloody chainsaws and give approving thumbs up. In the background feral dogs gnaw on the man's discarded former limbs. The caption reads: \"Spring Cleaning Sale! 20% off!\""
}
]
}
BIN
View File
Binary file not shown.
-217
View File
@@ -1,217 +0,0 @@
#include "debug.h"
#include <time.h>
#if !(defined _WIN32 || defined WINDOWS || defined __CYGWIN__)
#include <execinfo.h>
#include <stdlib.h>
#endif
// Static defines {{{1
// ---------------------------------------------------------------------
static int debugLevel = DL_ALL;
static int debugClass = DC_ALL;
// Normal functions {{{1
// ---------------------------------------------------------------------
void setupDebug()
{
int level = 0;
#ifdef DEBUG_INFO
level |= D_INFO;
#endif
#ifdef DEBUG_WARNING
level |= D_WARNING;
#endif
#ifdef DEBUG_ERROR
level |= D_ERROR;
#endif
#ifdef DEBUG_PEDANTIC_INFO
level |= D_PEDANTIC_INFO;
#endif
if( level != 0 )
limitDebugLevel(level);
int cl = 0;
#ifdef DEBUG_ENABLE_MAIN
cl |= D_MAIN;
#endif
#ifdef DEBUG_ENABLE_MAP
cl |= D_MAP;
#endif
#ifdef DEBUG_ENABLE_MAP_GEN
cl |= D_MAP_GEN;
#endif
#ifdef DEBUG_ENABLE_GAME
cl |= D_GAME;
#endif
if( cl != 0 )
limitDebugClass(cl);
}
void limitDebugLevel( int i )
{
dout() << "Set debug level to: " << (DebugLevel)i;
debugLevel = i;
}
void limitDebugClass( int i )
{
dout() << "Set debug class to: " << (DebugClass)i;
debugClass = i;
}
// Debug only {{{1
// ---------------------------------------------------------------------
#ifdef ENABLE_LOGGING
#define TRACE_SIZE 20
void* tracePtrs[TRACE_SIZE];
// Debug Includes {{{2
// ---------------------------------------------------------------------
#include <fstream>
#include <streambuf>
// Null OStream {{{2
// ---------------------------------------------------------------------
struct NullBuf : public std::streambuf
{
NullBuf() {}
int overflow(int c) { return c; }
};
struct DebugFile
{
DebugFile();
~DebugFile();
std::ofstream & currentTime();
std::ofstream file;
};
static NullBuf nullBuf;
static std::ostream nullStream(&nullBuf);
// DebugFile OStream Wrapper {{{2
// ---------------------------------------------------------------------
static DebugFile debugFile;
DebugFile::DebugFile()
{
file.open("data/debug.txt", std::ios::out | std::ios::app );
file << "\n\n-----------------------------------------\n";
currentTime() << " : Starting log.";
}
DebugFile::~DebugFile()
{
file << "\n";
currentTime() << " : Log shutdown.\n";
file << "-----------------------------------------\n\n";
file.close();
}
// OStream Operators {{{2
// ---------------------------------------------------------------------
std::ostream & operator<<(std::ostream & out, DebugLevel lev)
{
if( lev != DL_ALL )
{
if( lev & D_INFO )
out << "INFO ";
if( lev & D_WARNING )
out << "WARNING ";
if( lev & D_ERROR )
out << "ERROR ";
if( lev & D_PEDANTIC_INFO )
out << "PEDANTIC ";
}
return out;
}
std::ostream & operator<<(std::ostream & out, DebugClass cl)
{
if( cl != DC_ALL )
{
if( cl & D_MAIN )
out << "MAIN ";
if( cl & D_MAP )
out << "MAP ";
}
return out;
}
std::ofstream & DebugFile::currentTime()
{
struct tm *current;
time_t now;
time(&now);
current = localtime(&now);
file << current->tm_hour << ":" << current->tm_min << ":" <<
current->tm_sec;
return file;
}
std::ostream & dout(DebugLevel lev,DebugClass cl)
{
if( (lev & debugLevel) && (cl & debugClass) )
{
debugFile.file << std::endl;
debugFile.currentTime() << " ";
if( lev != debugLevel )
debugFile.file << lev;
if( cl != debugClass )
debugFile.file << cl;
debugFile.file << ": ";
// Backtrace on error.
#if !(defined _WIN32 || defined WINDOWS)
if( lev == D_ERROR )
{
int count = backtrace( tracePtrs, TRACE_SIZE );
char** funcNames = backtrace_symbols( tracePtrs, count );
for(int i = 0; i < count; ++i)
debugFile.file << "\n\t(" << funcNames[i] << "), ";
debugFile.file << "\n\t";
free(funcNames);
}
#endif
return debugFile.file;
}
return nullStream;
}
// Non Debug Only {{{1
// ---------------------------------------------------------------------
#else // If NOT defined ENABLE_LOGGING
DebugVoid dout(DebugLevel,DebugClass)
{ return DebugVoid(); }
#endif // END If NOT defined ENABLE_LOGGING
// vim:tw=72:sw=1:fdm=marker:fdl=0:
-105
View File
@@ -1,105 +0,0 @@
#ifndef DEBUG_H_1YCYLZSS
#define DEBUG_H_1YCYLZSS
// Includes {{{1
// ---------------------------------------------------------------------
#include <iostream>
#include <vector>
#include <fstream>
// Enumerations {{{1
// ---------------------------------------------------------------------
enum DebugLevel
{
D_INFO = 1,
D_WARNING = 1<<2,
D_ERROR = 1<<3,
D_PEDANTIC_INFO = 1<<4,
DL_ALL = (1<<5)-1
};
enum DebugClass
{
D_MAIN = 1,
D_MAP = 1<<2,
D_MAP_GEN = 1<<3,
D_GAME = 1<<4,
D_NPC = 1<<5,
DC_ALL = (1<<6)-1
};
void setupDebug();
// Function Declatations {{{1
// ---------------------------------------------------------------------
void limitDebugLevel( int );
void limitDebugClass( int );
// Debug Only {{{1
// ---------------------------------------------------------------------
#ifdef ENABLE_LOGGING
std::ostream & dout(DebugLevel=DL_ALL,DebugClass=DC_ALL);
#else // if NOT defined ENABLE_LOGGING
// Non debug only {{{1
// ---------------------------------------------------------------------
struct DebugVoid {};
template<class T>
DebugVoid operator<< ( const DebugVoid & dv, const T & )
{ return dv; }
DebugVoid dout(DebugLevel=DL_ALL,DebugClass=DC_ALL);
#endif // END if NOT defined ENABLE_LOGGING
// OStream operators {{{1
// ---------------------------------------------------------------------
template<typename C, typename A>
std::ostream & operator<<(std::ostream & out, const std::vector<C,A> & elm)
{
bool first = true;
for( typename std::vector<C>::const_iterator
it = elm.begin(),
end = elm.end();
it != end; ++it )
{
if( first )
first = false;
else
out << ",";
out << *it;
}
return out;
}
struct DebugLog
{
DebugLog() {
fout.open("logg.txt", std::ios_base::app | std::ios_base::out);
}
~DebugLog() {
fout.close();
}
template <class T>
DebugLog& operator<<(T& t) {
fout << t;
return *this;
}
private:
std::ofstream fout;
};
// vim:tw=72:sw=1:fdm=marker:fdl=0:
#endif /* end of include guard: DEBUG_H_1YCYLZSS */
-1318
View File
File diff suppressed because it is too large Load Diff
-421
View File
@@ -1,421 +0,0 @@
#ifndef _DIALOGUE_H_
#define _DIALOGUE_H_
#include "player.h"
#include "output.h"
#include "npc.h"
#include <vector>
#include <string>
struct dialogue {
player *alpha;
npc *beta;
WINDOW *win;
bool done;
std::vector<std::string> history;
std::vector<talk_topic> topic_stack;
int opt(std::string challenge, ...);
talk_topic opt(talk_topic topic, game *g);
dialogue()
{
alpha = NULL;
beta = NULL;
win = NULL;
done = false;
}
};
struct talk_function
{
void nothing (game *g, npc *p) {};
void assign_mission (game *g, npc *p);
void mission_success (game *g, npc *p);
void mission_failure (game *g, npc *p);
void clear_mission (game *g, npc *p);
void mission_reward (game *g, npc *p);
void mission_favor (game *g, npc *p);
void give_equipment (game *g, npc *p);
void start_trade (game *g, npc *p);
void assign_base(game *g, npc *p);
void follow (game *g, npc *p); // p follows u
void deny_follow (game *g, npc *p); // p gets DI_ASKED_TO_FOLLOW
void deny_lead (game *g, npc *p); // p gets DI_ASKED_TO_LEAD
void deny_equipment (game *g, npc *p); // p gets DI_ASKED_FOR_ITEM
void enslave (game *g, npc *p) {}; // p becomes slave of u
void hostile (game *g, npc *p); // p turns hostile to u
void flee (game *g, npc *p);
void leave (game *g, npc *p); // p becomes indifferant
void start_mugging (game *g, npc *p);
void player_leaving (game *g, npc *p);
void drop_weapon (game *g, npc *p);
void player_weapon_away (game *g, npc *p);
void player_weapon_drop (game *g, npc *p);
void lead_to_safety (game *g, npc *p);
void start_training (game *g, npc *p);
void toggle_use_guns (game *g, npc *p);
void toggle_use_silent (game *g, npc *p);
void toggle_use_grenades (game *g, npc *p);
void set_engagement_none (game *g, npc *p);
void set_engagement_close (game *g, npc *p);
void set_engagement_weak (game *g, npc *p);
void set_engagement_hit (game *g, npc *p);
void set_engagement_all (game *g, npc *p);
};
enum talk_trial
{
TALK_TRIAL_NONE, // No challenge here!
TALK_TRIAL_LIE, // Straight up lying
TALK_TRIAL_PERSUADE, // Convince them
TALK_TRIAL_INTIMIDATE, // Physical intimidation
NUM_TALK_TRIALS
};
std::string talk_trial_text[NUM_TALK_TRIALS] = {
"", "LIE", "PERSUADE", "INTIMIDATE"
};
struct talk_response
{
std::string text;
talk_trial trial;
int difficulty;
int mission_index;
mission_id miss; // If it generates a new mission
int tempvalue; // Used for various stuff
Skill* skill;
npc_opinion opinion_success;
npc_opinion opinion_failure;
void (talk_function::*effect_success)(game *, npc *);
void (talk_function::*effect_failure)(game *, npc *);
talk_topic success;
talk_topic failure;
talk_response()
{
text = "";
trial = TALK_TRIAL_NONE;
difficulty = 0;
mission_index = -1;
miss = MISSION_NULL;
tempvalue = -1;
skill = NULL;
effect_success = &talk_function::nothing;
effect_failure = &talk_function::nothing;
opinion_success = npc_opinion();
opinion_failure = npc_opinion();
success = TALK_NONE;
failure = TALK_NONE;
}
talk_response(const talk_response &rhs)
{
text = rhs.text;
trial = rhs.trial;
difficulty = rhs.difficulty;
mission_index = rhs.mission_index;
miss = rhs.miss;
tempvalue = rhs.tempvalue;
skill = rhs.skill;
effect_success = rhs.effect_success;
effect_failure = rhs.effect_failure;
opinion_success = rhs.opinion_success;
opinion_failure = rhs.opinion_failure;
success = rhs.success;
failure = rhs.failure;
}
};
struct talk_response_list
{
std::vector<talk_response> none(game *g, npc *p);
std::vector<talk_response> shelter(game *g, npc *p);
std::vector<talk_response> shopkeep(game *g, npc *p);
};
/* There is a array of tag_data, "tags", at the bottom of this file.
* It maps tags to the array of string replacements;
* e.g. "<name_g>" => talk_good_names
* Other tags, like "<yrwp>", are mapped to dynamic things
* (like the player's weapon), and are defined in parse_tags() (npctalk.cpp)
*/
struct tag_data
{
std::string tag;
std::string (*replacement)[10];
};
std::string talk_needs[num_needs][5] = {
{"", "", "", "", ""},
{"Hey<punc> You got any <ammo>?", "I'll need some <ammo> soon, got any?",
"I really need some <ammo><punc>", "I need <ammo> for my <mywp>, got any?",
"I need some <ammo> <very> bad<punc>"},
{"Got anything I can use as a weapon?",
"<ill_die> without a good weapon<punc>",
"I'm sick of fighting with my <swear> <mywp>, got something better?",
"Hey <name_g>, care to sell me a weapon?",
"My <mywp> just won't cut it, I need a real weapon..."},
{"Hey <name_g>, I could really use a gun.",
"Hey, you got a spare gun? It'd be better than my <swear> <mywp><punc>",
"<ill_die> if I don't find a gun soon!",
"<name_g><punc> Feel like selling me a gun?",
"I need a gun, any kind will do!"},
{"I could use some food, here.", "I need some food, <very> bad!",
"Man, am I <happy> to see you! Got any food to trade?",
"<ill_die> unless I get some food in me<punc> <okay>?",
"Please tell me you have some food to trade!"},
{"Got anything to drink?", "I need some water or something.",
"<name_g>, I need some water... got any?",
"<ill_die> without something to drink.", "You got anything to drink?"}
/*
{"<ill_die> unless I get healed<punc>", "You gotta heal me up, <name_g><punc>",
"Help me<punc> <ill_die> if you don't heal me<punc>",
"Please... I need medical help<punc>", "
*/
};
std::string talk_okay[10] = {
"okay", "get it", "you dig", "dig", "got it", "you see", "see, <name_g>",
"alright", "that clear"};
std::string talk_no[10] = {
"no", "fuck no", "hell no", "no way", "not a chance",
"I don't think so", "no way in hell", "nuh uh", "nope", "fat chance"};
std::string talk_bad_names[10] = {
"punk", "bitch", "dickhead", "asshole", "fucker",
"sucker", "fuckwad", "cocksucker", "motherfucker", "shithead"};
std::string talk_good_names[10] = {
"stranger", "friend", "pilgrim", "traveler", "pal",
"fella", "you", "dude", "buddy", "man"};
std::string talk_swear[10] = { // e.g. "drop the <swear> weapon"
"fucking", "goddamn", "motherfucking", "freaking", "damn", "<swear> <swear>",
"fucking", "fuckin'", "god damn", "mafuckin'"};
std::string talk_swear_interjection[10] = {
"fuck", "damn", "damnit", "shit", "cocksucker", "crap",
"motherfucker", "<swear><punc> <swear!>", "<very> <swear!>", "son of a bitch"};
std::string talk_fuck_you[10] = {
"fuck you", "fuck off", "go fuck yourself", "<fuck_you>, <name_b>",
"<fuck_you>, <swear> <name_b>", "<name_b>", "<swear> <name_b>",
"fuck you", "fuck off", "go fuck yourself"};
std::string talk_very[10] = { // Synonyms for "very" -- applied to adjectives
"really", "fucking", "super", "wicked", "very", "mega", "uber", "ultra",
"so <very>", "<very> <very>"};
std::string talk_really[10] = { // Synonyms for "really" -- applied to verbs
"really", "fucking", "absolutely", "definitely", "for real", "honestly",
"<really> <really>", "most <really>", "urgently", "REALLY"};
std::string talk_happy[10] = {
"glad", "happy", "overjoyed", "ecstatic", "thrilled", "stoked",
"<very> <happy>", "tickled pink", "delighted", "pumped"};
std::string talk_sad[10] = {
"sad", "bummed", "depressed", "pissed", "unhappy", "<very> <sad>", "dejected",
"down", "blue", "glum"};
std::string talk_greeting_gen[10] = {
"Hey <name_g>.", "Greetings <name_g>.", "Hi <name_g><punc> You okay?",
"<name_g><punc> Let's talk.", "Well hey there.",
"<name_g><punc> Hello.", "What's up, <name_g>?", "You okay, <name_g>?",
"Hello, <name_g>.", "Hi <name_g>"};
std::string talk_ill_die[10] = {
"I'm not gonna last much longer", "I'll be dead soon", "I'll be a goner",
"I'm dead, <name_g>,", "I'm dead meat", "I'm in <very> serious trouble",
"I'm <very> doomed", "I'm done for", "I won't last much longer",
"my days are <really> numbered"};
std::string talk_ill_kill_you[10] = {
"I'll kill you", "you're dead", "I'll <swear> kill you", "you're dead meat",
"<ill_kill_you>, <name_b>", "you're a dead <man>", "you'll taste my <mywp>",
"you're <swear> dead", "<name_b>, <ill_kill_you>"};
std::string talk_drop_weapon[10] = {
"Drop your <swear> weapon!",
"Okay <name_b>, drop your weapon!",
"Put your <swear> weapon down!",
"Drop the <yrwp>, <name_b>!",
"Drop the <swear> <yrwp>!",
"Drop your <yrwp>!",
"Put down the <yrwp>!",
"Drop your <swear> weapon, <name_b>!",
"Put down your <yrwp>!",
"Alright, drop the <yrwp>!"
};
std::string talk_hands_up[10] = {
"Put your <swear> hands up!",
"Put your hands up, <name_b>!",
"Reach for the sky!",
"Hands up!",
"Hands in the air!",
"Hands up, <name_b>!",
"Hands where I can see them!",
"Okay <name_b>, hands up!",
"Okay <name_b><punc> hands up!",
"Hands in the air, <name_b>!"
};
std::string talk_no_faction[10] = {
"I'm unaffiliated.",
"I don't run with a crew.",
"I'm a solo artist, <okay>?",
"I don't kowtow to any group, <okay>?",
"I'm a freelancer.",
"I work alone, <name_g>.",
"I'm a free agent, more money that way.",
"I prefer to work uninhibited by that kind of connection.",
"I haven't found one that's good enough for me.",
"I don't belong to a faction, <name_g>."
};
std::string talk_come_here[10] = {
"Wait up, let's talk!",
"Hey, I <really> want to talk to you!",
"Come on, talk to me!",
"Hey <name_g>, let's talk!",
"<name_g>, we <really> need to talk!",
"Hey, we should talk, <okay>?",
"<name_g>! Wait up!",
"Wait up, <okay>?",
"Let's talk, <name_g>!",
"Look, <name_g><punc> let's talk!"
};
std::string talk_keep_up[10] = {
"Catch up!",
"Get over here!",
"Catch up, <name_g>!",
"Keep up!",
"Come on, <catch_up>!",
"Keep it moving!",
"Stay with me!",
"Keep close!",
"Stay close!",
"Let's keep going!"
};
std::string talk_wait[10] = {
"Hey, where are you?",
"Wait up, <name_g>!",
"<name_g>, wait for me!",
"Hey, wait up, <okay>?",
"You <really> need to wait for me!",
"You <swear> need to wait!",
"<name_g>, where are you?",
"Hey <name_g><punc> Wait for me!",
"Where are you?!",
"Hey, I'm over here!"
};
std::string talk_let_me_pass[10] = {
"Excuse me, let me pass.",
"Hey <name_g>, can I get through?",
"Let me get past you, <name_g>.",
"Let me through, <okay>?",
"Can I get past you, <name_g>?",
"I need to get past you, <name_g>.",
"Move your <swear> ass, <name_b>!",
"Out of my way, <name_b>!",
"Move it, <name_g>!",
"You need to move, <name_g>, <okay>?"
};
// Used to tell player to move to avoid friendly fire
std::string talk_move[10] = {
"Move",
"Move your ass",
"Get out of the way",
"You need to move"
"Hey <name_g>, move",
"<swear> move it",
"Move your <swear> ass",
"Get out of my way, <name_b>,",
"Move to the side",
"Get out of my line of fire"
};
std::string talk_done_mugging[10] = {
"Thanks for the cash, <name_b>!",
"So long, <name_b>!",
"Thanks a lot, <name_g>!",
"Catch you later, <name_g>!",
"See you later, <name_b>!",
"See you in hell, <name_b>!",
"Hasta luego, <name_g>!",
"I'm outta here! <done_mugging>",
"Bye bye, <name_b>!",
"Thanks, <name_g>!"
};
std::string talk_leaving[10] = {
"So long, <name_b>!",
"Hasta luego, <name_g>!",
"I'm outta here!",
"Bye bye, <name_b>!",
"So long, <name_b>!",
"Hasta luego, <name_g>!",
"I'm outta here!",
"Bye bye, <name_b>!",
"I'm outta here!",
"Bye bye, <name_b>!"
};
std::string talk_catch_up[10] = {
"You're too far away, <name_b>!",
"Hurry up, <name_g>!",
"I'm outta here soon!",
"Come on molasses!",
"What's taking so long?",
"Get with the program laggard!",
"Did the zombies get you?",
"Wait up <name_b>!",
"Did you evolve from a snail?",
"How 'bout picking up the pace!"
};
#define NUM_STATIC_TAGS 26
tag_data talk_tags[NUM_STATIC_TAGS] = {
{"<okay>", &talk_okay},
{"<no>", &talk_no},
{"<name_b>", &talk_bad_names},
{"<name_g>", &talk_good_names},
{"<swear>", &talk_swear},
{"<swear!>", &talk_swear_interjection},
{"<fuck_you>", &talk_fuck_you},
{"<very>", &talk_very},
{"<really>", &talk_really},
{"<happy>", &talk_happy},
{"<sad>", &talk_sad},
{"<greet>", &talk_greeting_gen},
{"<ill_die>", &talk_ill_die},
{"<ill_kill_you>", &talk_ill_kill_you},
{"<drop_it>", &talk_drop_weapon},
{"<hands_up>", &talk_hands_up},
{"<no_faction>", &talk_no_faction},
{"<come_here>", &talk_come_here},
{"<keep_up>", &talk_keep_up},
{"<lets_talk>", &talk_come_here},
{"<wait>", &talk_wait},
{"<let_me_pass>", &talk_let_me_pass},
{"<move>", &talk_move},
{"<done_mugging>", &talk_done_mugging},
{"<catch_up>", &talk_catch_up},
{"<im_leaving_you>", &talk_leaving}
};
#endif
-1756
View File
File diff suppressed because it is too large Load Diff
-23
View File
@@ -1,23 +0,0 @@
#ifndef _DISEASE_H_
#define _DISEASE_H_
#include "rng.h"
#include "game.h"
#include "bodypart.h"
#include <sstream>
#define MIN_DISEASE_AGE (-43200) // Permanent disease capped @ 3 days
class game;
void dis_msg(game *g, dis_type type);
void dis_effect(game *g, player &p, disease &dis);
int disease_speed_boost(disease dis);
std::string dis_name(disease dis);
std::string dis_description(disease dis);
#endif
+7
View File
@@ -0,0 +1,7 @@
#!/bin/sh
docker run --rm \
--volume="$PWD:/srv/jekyll" \
--volume="$PWD/vendor/bundle:/usr/local/bundle" \
-p 4000:4000 \
-it jekyll/jekyll \
jekyll serve
+17
View File
@@ -0,0 +1,17 @@
---
layout: page
title: "Donations"
permalink: /donations/
---
If ever you wanted to give back to Cataclysm: Dark Days Ahead, this is the place! There are multiple ways to give out monetary help: you can either help fund the forums through the [official Patreon](https://www.patreon.com/user?u=15922455) or help sponsor individual developers.
### Sponsor a developer
[KorGgenT](https://github.com/CleverRaven/Cataclysm-DDA/pulls?utf8=%E2%9C%93&q=is%3Apr+is%3Amerged+author%3AKorGgenT) - [Donate via Github Sponsors](https://github.com/sponsors/KorGgenT)
[John-Candlebury](https://github.com/CleverRaven/Cataclysm-DDA/pulls?q=is%3Apr+is%3Amerged+author%3AJohn-Candlebury) - [Donate via Patreon](https://www.patreon.com/Candlebury)
[gettingusedto](https://github.com/I-am-Erk/CDDA-Tilesets/pulls?q=is%3Apr+is%3Amerged+author%3Agettingusedto+) - [Donate via Ko-fi](https://ko-fi.com/gettingusedto)
[nameless-kitty](https://github.com/CleverRaven/Cataclysm-DDA/pulls?q=is%3Apr+is%3Amerged+author%3Akuutekitty) - [Donate via Ko-fi](https://ko-fi.com/namelesskitty)
-40
View File
@@ -1,40 +0,0 @@
#ifndef _ENUMS_H_
#define _ENUMS_H_
#ifndef sgn
#define sgn(x) (((x) < 0) ? -1 : 1)
#endif
enum phase_id {
PNULL, SOLID, LIQUID, GAS, PLASMA
};
enum damage_type
{
DNULL = 0,
BASH,
CUT,
ACID,
ELECTRICITY,
FIRE,
NUM_DAM_TYPES
};
struct point {
int x;
int y;
point(int X = 0, int Y = 0) : x (X), y (Y) {}
point(const point &p) : x (p.x), y (p.y) {}
~point(){}
};
struct tripoint {
int x;
int y;
int z;
tripoint(int X = 0, int Y = 0, int Z = 0) : x (X), y (Y), z (Z) {}
tripoint(const tripoint &p) : x (p.x), y (p.y), z (p.z) {}
~tripoint(){}
};
#endif
-258
View File
@@ -1,258 +0,0 @@
#include "event.h"
#include "npc.h"
#include "game.h"
#include "rng.h"
#include "options.h"
void event::actualize(game *g)
{
switch (type) {
case EVENT_HELP: {
npc tmp;
int num = 1;
if (faction_id >= 0)
num = rng(1, 6);
for (int i = 0; i < num; i++) {
if (faction_id != -1) {
faction* fac = g->faction_by_id(faction_id);
if (fac)
tmp.randomize_from_faction(g, fac);
else
debugmsg("EVENT_HELP run with invalid faction_id");
} else
tmp.randomize(g);
tmp.attitude = NPCATT_DEFEND;
tmp.posx = g->u.posx - SEEX * 2 + rng(-5, 5);
tmp.posy = g->u.posy - SEEY * 2 + rng(-5, 5);
g->active_npc.push_back(&tmp);
}
} break;
case EVENT_ROBOT_ATTACK: {
if (rl_dist(g->levx, g->levy, map_point.x, map_point.y) <= 4) {
mtype *robot_type = g->mtypes[mon_tripod];
if (faction_id == 0) // The cops!
robot_type = g->mtypes[mon_copbot];
monster robot(robot_type);
int robx = (g->levx > map_point.x ? 0 - SEEX * 2 : SEEX * 4),
roby = (g->levy > map_point.y ? 0 - SEEY * 2 : SEEY * 4);
robot.spawn(robx, roby);
g->z.push_back(robot);
}
} break;
case EVENT_SPAWN_WYRMS: {
if (g->levz >= 0)
return;
monster wyrm(g->mtypes[mon_dark_wyrm]);
int num_wyrms = rng(1, 4);
for (int i = 0; i < num_wyrms; i++) {
int tries = 0;
int monx = -1, mony = -1;
do {
monx = rng(0, SEEX * MAPSIZE);
mony = rng(0, SEEY * MAPSIZE);
tries++;
} while (tries < 10 && !g->is_empty(monx, mony) &&
rl_dist(g->u.posx, g->u.posx, monx, mony) <= 2);
if (tries < 10) {
wyrm.spawn(monx, mony);
g->z.push_back(wyrm);
}
}
if (!one_in(25)) // They just keep coming!
g->add_event(EVENT_SPAWN_WYRMS, int(g->turn) + rng(15, 25));
} break;
case EVENT_AMIGARA: {
int num_horrors = rng(3, 5);
int faultx = -1, faulty = -1;
bool horizontal;
for (int x = 0; x < SEEX * MAPSIZE && faultx == -1; x++) {
for (int y = 0; y < SEEY * MAPSIZE && faulty == -1; y++) {
if (g->m.ter(x, y) == t_fault) {
faultx = x;
faulty = y;
if (g->m.ter(x - 1, y) == t_fault || g->m.ter(x + 1, y) == t_fault)
horizontal = true;
else
horizontal = false;
}
}
}
monster horror(g->mtypes[mon_amigara_horror]);
for (int i = 0; i < num_horrors; i++) {
int tries = 0;
int monx = -1, mony = -1;
do {
if (horizontal) {
monx = rng(faultx, faultx + 2 * SEEX - 8);
for (int n = -1; n <= 1; n++) {
if (g->m.ter(monx, faulty + n) == t_rock_floor)
mony = faulty + n;
}
} else { // Vertical fault
mony = rng(faulty, faulty + 2 * SEEY - 8);
for (int n = -1; n <= 1; n++) {
if (g->m.ter(faultx + n, mony) == t_rock_floor)
monx = faultx + n;
}
}
tries++;
} while ((monx == -1 || mony == -1 || g->is_empty(monx, mony)) &&
tries < 10);
if (tries < 10) {
horror.spawn(monx, mony);
g->z.push_back(horror);
}
}
} break;
case EVENT_ROOTS_DIE:
for (int x = 0; x < SEEX * MAPSIZE; x++) {
for (int y = 0; y < SEEY * MAPSIZE; y++) {
if (g->m.ter(x, y) == t_root_wall && one_in(3))
g->m.ter_set(x, y, t_underbrush);
}
}
break;
case EVENT_TEMPLE_OPEN: {
bool saw_grate = false;
for (int x = 0; x < SEEX * MAPSIZE; x++) {
for (int y = 0; y < SEEY * MAPSIZE; y++) {
if (g->m.ter(x, y) == t_grate) {
g->m.ter_set(x, y, t_stairs_down);
if (!saw_grate && g->u_see(x, y))
saw_grate = true;
}
}
}
if (saw_grate)
g->add_msg("The nearby grates open to reveal a staircase!");
} break;
case EVENT_TEMPLE_FLOOD: {
bool flooded = false;
ter_id flood_buf[SEEX*MAPSIZE][SEEY*MAPSIZE];
for (int x = 0; x < SEEX * MAPSIZE; x++) {
for (int y = 0; y < SEEY * MAPSIZE; y++)
flood_buf[x][y] = g->m.ter(x, y);
}
for (int x = 0; x < SEEX * MAPSIZE; x++) {
for (int y = 0; y < SEEY * MAPSIZE; y++) {
if (g->m.ter(x, y) == t_water_sh) {
bool deepen = false;
for (int wx = x - 1; wx <= x + 1 && !deepen; wx++) {
for (int wy = y - 1; wy <= y + 1 && !deepen; wy++) {
if (g->m.ter(wx, wy) == t_water_dp)
deepen = true;
}
}
if (deepen) {
flood_buf[x][y] = t_water_dp;
flooded = true;
}
} else if (g->m.ter(x, y) == t_rock_floor) {
bool flood = false;
for (int wx = x - 1; wx <= x + 1 && !flood; wx++) {
for (int wy = y - 1; wy <= y + 1 && !flood; wy++) {
if (g->m.ter(wx, wy) == t_water_dp || g->m.ter(wx, wy) == t_water_sh)
flood = true;
}
}
if (flood) {
flood_buf[x][y] = t_water_sh;
flooded = true;
}
}
}
}
if (!flooded)
return; // We finished flooding the entire chamber!
// Check if we should print a message
if (flood_buf[g->u.posx][g->u.posy] != g->m.ter(g->u.posx, g->u.posy)) {
if (flood_buf[g->u.posx][g->u.posy] == t_water_sh)
g->add_msg("Water quickly floods up to your knees.");
else { // Must be deep water!
g->add_msg("Water fills nearly to the ceiling!");
g->plswim(g->u.posx, g->u.posy);
}
}
// flood_buf is filled with correct tiles; now copy them back to g->m
for (int x = 0; x < SEEX * MAPSIZE; x++) {
for (int y = 0; y < SEEY * MAPSIZE; y++)
g->m.ter_set(x, y, flood_buf[x][y]);
}
g->add_event(EVENT_TEMPLE_FLOOD, int(g->turn) + rng(2, 3));
} break;
case EVENT_TEMPLE_SPAWN: {
mon_id montype;
switch (rng(1, 4)) {
case 1: montype = mon_sewer_snake; break;
case 2: montype = mon_centipede; break;
case 3: montype = mon_dermatik; break;
case 4: montype = mon_spider_widow; break;
}
monster spawned( g->mtypes[montype] );
int tries = 0, x, y;
do {
x = rng(g->u.posx - 5, g->u.posx + 5);
y = rng(g->u.posy - 5, g->u.posy + 5);
tries++;
} while (tries < 20 && !g->is_empty(x, y) &&
rl_dist(x, y, g->u.posx, g->u.posy) <= 2);
if (tries < 20) {
spawned.spawn(x, y);
g->z.push_back(spawned);
}
} break;
default:
break; // Nothing happens for other events
}
}
void event::per_turn(game *g)
{
switch (type) {
case EVENT_WANTED: {
// About once every 10 minutes. Suppress in classic zombie mode.
if (g->levz >= 0 && one_in(100) && !OPTIONS[OPT_CLASSIC_ZOMBIES]) {
monster eyebot(g->mtypes[mon_eyebot]);
eyebot.faction_id = faction_id;
point place = g->m.random_outdoor_tile();
if (place.x == -1 && place.y == -1)
return; // We're safely indoors!
eyebot.spawn(place.x, place.y);
g->z.push_back(eyebot);
if (g->u_see(place.x, place.y))
g->add_msg("An eyebot swoops down nearby!");
}
} break;
case EVENT_SPAWN_WYRMS:
if (g->levz >= 0) {
turn--;
return;
}
if (int(g->turn) % 3 == 0)
g->add_msg("You hear screeches from the rock above and around you!");
break;
case EVENT_AMIGARA:
g->add_msg("The entire cavern shakes!");
break;
case EVENT_TEMPLE_OPEN:
g->add_msg("The earth rumbles.");
break;
default:
break; // Nothing happens for other events
}
}
-51
View File
@@ -1,51 +0,0 @@
#ifndef _EVENT_H_
#define _EVENT_H_
#include "faction.h"
#include "line.h"
class game;
enum event_type {
EVENT_NULL,
EVENT_HELP,
EVENT_WANTED,
EVENT_ROBOT_ATTACK,
EVENT_SPAWN_WYRMS,
EVENT_AMIGARA,
EVENT_ROOTS_DIE,
EVENT_TEMPLE_OPEN,
EVENT_TEMPLE_FLOOD,
EVENT_TEMPLE_SPAWN,
EVENT_DIM,
EVENT_ARTIFACT_LIGHT,
NUM_EVENT_TYPES
};
struct event {
event_type type;
int turn;
int faction_id;
point map_point;
event() {
type = EVENT_NULL;
turn = 0;
faction_id = -1;
map_point.x = -1;
map_point.y = -1;
}
event(event_type e_t, int t, int f_id, int x, int y) {
type = e_t;
turn = t;
faction_id = f_id;
map_point.x = x;
map_point.y = y;
}
void actualize(game *g); // When the time runs out
void per_turn(game *g); // Every turn
};
#endif
-113
View File
@@ -1,113 +0,0 @@
#include <string>
std::string faction_adj_pos[15] = {
"Shining", "Sacred", "Golden", "Holy", "Righteous", "Devoted", "Virtuous",
"Splendid", "Divine", "Radiant", "Noble", "Venerable", "Immaculate",
"Heroic", "Bright"};
std::string faction_adj_neu[15] = {
"Original", "Crystal", "Metal", "Mighty", "Powerful", "Solid", "Stone",
"Firey", "Colossal", "Famous", "Supreme", "Invincible", "Unlimited",
"Great", "Electric"};
std::string faction_adj_bad[15] = {
"Poisonous", "Deadly", "Foul", "Nefarious", "Wicked", "Vile", "Ruinous",
"Horror", "Devastating", "Vicious", "Sinister", "Baleful", "Pestilent",
"Pernicious", "Dread"};
std::string faction_noun_strong[15] = {
"Fists", "Slayers", "Furies", "Dervishes", "Tigers", "Destroyers",
"Berserkers", "Samurai", "Valkyries", "Army", "Killers", "Paladins",
"Knights", "Warriors", "Huntsmen"};
std::string faction_noun_sneak[15] = {
"Snakes", "Rats", "Assassins", "Ninja", "Agents", "Shadows", "Guerillas",
"Eliminators", "Snipers", "Smoke", "Arachnids", "Creepers", "Shade",
"Stalkers", "Eels"};
std::string faction_noun_crime[15] = {
"Bandits", "Punks", "Family", "Mafia", "Mob", "Gang", "Vandals", "Sharks",
"Muggers", "Cutthroats", "Guild", "Faction", "Thugs", "Racket", "Crooks"};
std::string faction_noun_cult[15] = {
"Brotherhood", "Church", "Ones", "Crucible", "Sect", "Creed", "Doctrine",
"Priests", "Tenet", "Monks", "Clerics", "Pastors", "Gnostics", "Elders",
"Inquisitors"};
std::string faction_noun_none[15] = {
"Settlers", "People", "Men", "Faction", "Tribe", "Clan", "Society", "Folk",
"Nation", "Republic", "Colony", "State", "Kingdom", "Party", "Company"};
struct faction_value_datum {
std::string name;
int good; // A measure of how "good" the value is (naming purposes &c)
int strength;
int sneak;
int crime;
int cult;
};
faction_value_datum facgoal_data[NUM_FACGOALS] = {
// "Their ultimate goal is <name>"
//Name Good Str Sneak Crime Cult
{"Null", 0, 0, 0, 0, 0},
{"basic survival", 0, 0, 0, 0, 0},
{"financial wealth", 0, -1, 0, 2, -1},
{"dominance of the region", -1, 1, -1, 1, -1},
{"the extermination of monsters",1, 3, -1, -1, -1},
{"contact with unseen powers", -1, 0, 1, 0, 4},
{"bringing the apocalypse", -5, 1, 2, 0, 7},
{"general chaos and anarchy", -3, 2, -3, 2, -1},
{"the cultivation of knowledge", 2, -3, 2, -1, 0},
{"harmony with nature", 2, -2, 0, -1, 2},
{"rebuilding civilization", 2, 1, -2, -2, -4},
{"spreading the fungus", -2, 1, 1, 0, 4}
};
// TOTAL: -5 3 -2 0 7
faction_value_datum facjob_data[NUM_FACJOBS] = {
// "They earn money via <name>"
//Name Good Str Sneak Crime Cult
{"Null", 0, 0, 0, 0, 0},
{"protection rackets", -3, 2, -1, 4, 0},
{"the sale of information", -1, -1, 4, 1, 0},
{"their bustling trade centers", 1, -1, -2, -4, -4},
{"trade caravans", 2, -1, -1, -3, -2},
{"scavenging supplies", 0, -1, 0, -1, -1},
{"mercenary work", 0, 3, -1, 1, -1},
{"assassinations", -1, 2, 2, 1, 1},
{"raiding settlements", -4, 4, -3, 3, -2},
{"the theft of property", -3, -1, 4, 4, 1},
{"gambling parlors", -1, -2, -1, 1, -1},
{"medical aid", 4, -3, -2, -3, 0},
{"farming & selling food", 3, -4, -2, -4, 1},
{"drug dealing", -2, 0, -1, 2, 0},
{"selling manufactured goods", 1, 0, -1, -2, 0}
};
// TOTAL: -5 -3 -5 0 -6
faction_value_datum facval_data[NUM_FACVALS] = {
// "They are known for <name>"
//Name Good Str Sneak Crime Cult
{"Null", 0, 0, 0, 0, 0},
{"their charitable nature", 5, -1, -1, -2, -2},
{"their isolationism", 0, -2, 1, 0, 2},
{"exploring extensively", 1, 0, 0, -1, -1},
{"collecting rare artifacts", 0, 1, 1, 0, 3},
{"their knowledge of bionics", 1, 2, 0, 0, 0},
{"their libraries", 1, -3, 0, -2, 1},
{"their elite training", 0, 4, 2, 0, 2},
{"their robotics factories", 0, 3, -1, 0, -2},
{"treachery", -3, 0, 1, 3, 0},
{"the avoidance of drugs", 1, 0, 0, -1, 1},
{"their adherance to the law", 2, -1, -1, -4, -1},
{"their cruelty", -3, 1, -1, 4, 1}
};
// TOTALS: 5 4 1 -3 4
/* Note: It's nice to keep the totals around 0 for Good, and about even for the
* other four. It's okay if Good is slightly negative (after all, in a post-
* apocalyptic world people might be a LITTLE less virtuous), and to keep
* strength valued a bit higher than the others.
*/
-558
View File
@@ -1,558 +0,0 @@
#include "faction.h"
#include "facdata.h"
#include "rng.h"
#include "math.h"
#include "output.h"
#include "omdata.h"
#include "game.h"
#include <sstream>
std::string invent_name();
std::string invent_adj();
faction::faction()
{
// debugmsg("Warning: Faction created without UID!");
name = "";
values = 0;
likes_u = 0;
respects_u = 0;
known_by_u = false;
goal = FACGOAL_NULL;
job1 = FACJOB_NULL;
job2 = FACJOB_NULL;
strength = 0;
sneak = 0;
crime = 0;
cult = 0;
good = 0;
omx = 0;
omy = 0;
mapx = 0;
mapy = 0;
size = 0;
power = 0;
id = -1;
}
faction::faction(int uid)
{
name = "";
values = 0;
likes_u = 0;
respects_u = 0;
known_by_u = false;
goal = FACGOAL_NULL;
job1 = FACJOB_NULL;
job2 = FACJOB_NULL;
strength = 0;
sneak = 0;
crime = 0;
cult = 0;
good = 0;
omx = 0;
omy = 0;
mapx = 0;
mapy = 0;
size = 0;
power = 0;
id = uid;
}
faction::~faction()
{
}
std::string faction::save_info()
{
std::stringstream dump;
dump << id << " " << values << " " << goal << " " << job1 << " " << job2 <<
" " << likes_u << " " << respects_u << " " << known_by_u << " " <<
strength << " " << sneak << " " << crime << " " << cult << " " <<
good << " " << omx << " " << omy << " " << mapx << " " << mapy <<
" " << size << " " << power << " ";
dump << opinion_of.size() << " ";
for (int i = 0; i < opinion_of.size(); i++)
dump << opinion_of[i] << " ";
dump << name;
return dump.str();
}
void faction::load_info(std::string data)
{
std::stringstream dump;
int valuetmp, goaltmp, jobtmp1, jobtmp2;
dump << data;
dump >> id >> valuetmp >> goaltmp >> jobtmp1 >> jobtmp2 >> likes_u >>
respects_u >> known_by_u >> strength >> sneak >> crime >> cult >>
good >> omx >> omy >> mapx >> mapy >> size >> power;
values = valuetmp;
goal = faction_goal(goaltmp);
job1 = faction_job(jobtmp1);
job2 = faction_job(jobtmp2);
int tmpsize, tmpop;
dump >> tmpsize;
for (int i = 0; i < tmpsize; i++) {
dump >> tmpop;
opinion_of.push_back(tmpop);
}
std::string subname;
while (dump >> subname)
name += " " + subname;
}
void faction::randomize()
{
// Set up values
// TODO: Not always in overmap 0,0
omx = 0;
omy = 0;
mapx = rng(OMAPX / 10, OMAPX - OMAPX / 10);
mapy = rng(OMAPY / 10, OMAPY - OMAPY / 10);
// Pick an overall goal.
goal = faction_goal(rng(1, NUM_FACGOALS - 1));
if (one_in(4))
goal = FACGOAL_NONE; // Slightly more likely to not have a real goal
good = facgoal_data[goal].good;
strength = facgoal_data[goal].strength;
sneak = facgoal_data[goal].sneak;
crime = facgoal_data[goal].crime;
cult = facgoal_data[goal].cult;
job1 = faction_job(rng(1, NUM_FACJOBS - 1));
do
job2 = faction_job(rng(0, NUM_FACJOBS - 1));
while (job2 == job1);
good += facjob_data[job1].good + facjob_data[job2].good;
strength += facjob_data[job1].strength + facjob_data[job2].strength;
sneak += facjob_data[job1].sneak + facjob_data[job2].sneak;
crime += facjob_data[job1].crime + facjob_data[job2].crime;
cult += facjob_data[job1].cult + facjob_data[job2].cult;
int num_values = 0;
int tries = 0;
values = 0;
do {
int v = rng(1, NUM_FACVALS - 1);
if (!has_value(faction_value(v)) && matches_us(faction_value(v))) {
values |= mfb(v);
tries = 0;
num_values++;
good += facval_data[v].good;
strength += facval_data[v].strength;
sneak += facval_data[v].sneak;
crime += facval_data[v].crime;
cult += facval_data[v].cult;
} else
tries++;
} while((one_in(num_values) || one_in(num_values)) && tries < 15);
std::string noun;
int sel = 1, best = strength;
if (sneak > best) {
sel = 2;
best = sneak;
}
if (crime > best) {
sel = 3;
best = crime;
}
if (cult > best)
sel = 4;
if (strength <= 0 && sneak <= 0 && crime <= 0 && cult <= 0)
sel = 0;
switch (sel) {
case 1:
noun = faction_noun_strong[rng(0, 14)];
power = dice(5, 20);
size = dice(5, 6);
break;
case 2:
noun = faction_noun_sneak [rng(0, 14)];
power = dice(5, 8);
size = dice(5, 8);
break;
case 3:
noun = faction_noun_crime [rng(0, 14)];
power = dice(5, 16);
size = dice(5, 8);
break;
case 4:
noun = faction_noun_cult [rng(0, 14)];
power = dice(8, 8);
size = dice(4, 6);
break;
default:
noun = faction_noun_none [rng(0, 14)];
power = dice(6, 8);
size = dice(6, 6);
}
if (one_in(4)) {
do
name = "The " + noun + " of " + invent_name();
while (name.length() > MAX_FAC_NAME_SIZE);
}
else if (one_in(2)) {
do
name = "The " + invent_adj() + " " + noun;
while (name.length() > MAX_FAC_NAME_SIZE);
}
else {
do {
std::string adj;
if (good >= 3)
adj = faction_adj_pos[rng(0, 14)];
else if (good <= -3)
adj = faction_adj_bad[rng(0, 14)];
else
adj = faction_adj_neu[rng(0, 14)];
name = "The " + adj + " " + noun;
if (one_in(4))
name += " of " + invent_name();
} while (name.length() > MAX_FAC_NAME_SIZE);
}
}
void faction::make_army()
{
name = "The army";
omx = 0;
omy = 0;
mapx = OMAPX / 2;
mapy = OMAPY / 2;
size = OMAPX * 2;
power = OMAPX;
goal = FACGOAL_DOMINANCE;
job1 = FACJOB_MERCENARIES;
job2 = FACJOB_NULL;
if (one_in(4))
values |= mfb(FACVAL_CHARITABLE);
if (!one_in(4))
values |= mfb(FACVAL_EXPLORATION);
if (one_in(3))
values |= mfb(FACVAL_BIONICS);
if (one_in(3))
values |= mfb(FACVAL_ROBOTS);
if (one_in(4))
values |= mfb(FACVAL_TREACHERY);
if (one_in(4))
values |= mfb(FACVAL_STRAIGHTEDGE);
if (!one_in(3))
values |= mfb(FACVAL_LAWFUL);
if (one_in(8))
values |= mfb(FACVAL_CRUELTY);
id = 0;
}
bool faction::has_job(faction_job j)
{
return (job1 == j || job2 == j);
}
bool faction::has_value(faction_value v)
{
return values & mfb(v);
}
bool faction::matches_us(faction_value v)
{
int numvals = 2;
if (job2 != FACJOB_NULL)
numvals++;
for (int i = 0; i < NUM_FACVALS; i++) {
if (has_value(faction_value(i)))
numvals++;
}
if (has_job(FACJOB_DRUGS) && v == FACVAL_STRAIGHTEDGE) // Mutually exclusive
return false;
int avggood = (good / numvals + good) / 2;
int avgstrength = (strength / numvals + strength) / 2;
int avgsneak = (sneak / numvals + sneak / 2);
int avgcrime = (crime / numvals + crime / 2);
int avgcult = (cult / numvals + cult / 2);
/*
debugmsg("AVG: GOO %d STR %d SNK %d CRM %d CLT %d\n\
VAL: GOO %d STR %d SNK %d CRM %d CLT %d (%s)", avggood, avgstrength,
avgsneak, avgcrime, avgcult, facval_data[v].good, facval_data[v].strength,
facval_data[v].sneak, facval_data[v].crime, facval_data[v].cult,
facval_data[v].name.c_str());
*/
if ((abs(facval_data[v].good - avggood) <= 3 ||
(avggood >= 5 && facval_data[v].good >= 1) ||
(avggood <= -5 && facval_data[v].good <= 0)) &&
(abs(facval_data[v].strength - avgstrength) <= 5 ||
(avgstrength >= 5 && facval_data[v].strength >= 3) ||
(avgstrength <= -5 && facval_data[v].strength <= -1)) &&
(abs(facval_data[v].sneak - avgsneak) <= 4 ||
(avgsneak >= 5 && facval_data[v].sneak >= 1) ||
(avgsneak <= -5 && facval_data[v].sneak <= -1)) &&
(abs(facval_data[v].crime - avgcrime) <= 4 ||
(avgcrime >= 5 && facval_data[v].crime >= 0) ||
(avgcrime <= -5 && facval_data[v].crime <= -1)) &&
(abs(facval_data[v].cult - avgcult) <= 3 ||
(avgcult >= 5 && facval_data[v].cult >= 1) ||
(avgcult <= -5 && facval_data[v].cult <= -1)))
return true;
return false;
}
std::string faction::describe()
{
std::string ret = name + " have the ultimate goal of " +
facgoal_data[goal].name + ". Their primary concern is " +
facjob_data[job1].name;
if (job2 == FACJOB_NULL)
ret += ".";
else
ret += ", but they are also involved in " + facjob_data[job2].name + ".";
if (values != 0) {
ret += " They are known for ";
for (int i = 0; i < NUM_FACVALS; i++) {
if (has_value(faction_value(i)))
ret += facval_data[i].name + ", ";
}
}
size_t pos = ret.find_last_of(",");
if (pos != std::string::npos) {
ret.replace(pos, 2, ".");
pos = ret.find_last_of(",");
if (pos != std::string::npos)
ret.replace(pos, 2, ", and ");
}
return ret;
}
int faction::response_time(game *g)
{
int base = abs(mapx - g->levx);
if (abs(mapy - g->levy) > base)
base = abs(mapy - g->levy);
if (base > size) // Out of our sphere of influence
base *= 2.5;
base *= 24; // 24 turns to move one overmap square
int maxdiv = 10;
if (goal == FACGOAL_DOMINANCE)
maxdiv += 2;
if (has_job(FACJOB_CARAVANS))
maxdiv += 2;
if (has_job(FACJOB_SCAVENGE))
maxdiv++;
if (has_job(FACJOB_MERCENARIES))
maxdiv += 2;
if (has_job(FACJOB_FARMERS))
maxdiv -= 2;
if (has_value(FACVAL_EXPLORATION))
maxdiv += 2;
if (has_value(FACVAL_LONERS))
maxdiv -= 3;
if (has_value(FACVAL_TREACHERY))
maxdiv -= rng(0, 3);
int mindiv = (maxdiv > 9 ? maxdiv - 9 : 1);
base /= rng(mindiv, maxdiv);// We might be in the field
base -= likes_u; // We'll hurry, if we like you
if (base < 100)
base = 100;
return base;
}
// END faction:: MEMBER FUNCTIONS
std::string invent_name()
{
std::string ret = "";
std::string tmp;
int syllables = rng(2, 3);
for (int i = 0; i < syllables; i++) {
switch (rng(0, 25)) {
case 0: tmp = "ab"; break;
case 1: tmp = "bon"; break;
case 2: tmp = "cor"; break;
case 3: tmp = "den"; break;
case 4: tmp = "el"; break;
case 5: tmp = "fes"; break;
case 6: tmp = "gun"; break;
case 7: tmp = "hit"; break;
case 8: tmp = "id"; break;
case 9: tmp = "jan"; break;
case 10: tmp = "kal"; break;
case 11: tmp = "ler"; break;
case 12: tmp = "mal"; break;
case 13: tmp = "nor"; break;
case 14: tmp = "or"; break;
case 15: tmp = "pan"; break;
case 16: tmp = "qua"; break;
case 17: tmp = "ros"; break;
case 18: tmp = "sin"; break;
case 19: tmp = "tor"; break;
case 20: tmp = "urr"; break;
case 21: tmp = "ven"; break;
case 22: tmp = "wel"; break;
case 23: tmp = "oxo"; break;
case 24: tmp = "yen"; break;
case 25: tmp = "zu"; break;
}
ret += tmp;
}
ret[0] += 'A' - 'a';
return ret;
}
std::string invent_adj()
{
int syllables = dice(2, 2) - 1;
std::string ret, tmp;
switch (rng(0, 25)) {
case 0: ret = "Ald"; break;
case 1: ret = "Brogg"; break;
case 2: ret = "Cald"; break;
case 3: ret = "Dredd"; break;
case 4: ret = "Eld"; break;
case 5: ret = "Forr"; break;
case 6: ret = "Gugg"; break;
case 7: ret = "Horr"; break;
case 8: ret = "Ill"; break;
case 9: ret = "Jov"; break;
case 10: ret = "Kok"; break;
case 11: ret = "Lill"; break;
case 12: ret = "Moom"; break;
case 13: ret = "Nov"; break;
case 14: ret = "Orb"; break;
case 15: ret = "Perv"; break;
case 16: ret = "Quot"; break;
case 17: ret = "Rar"; break;
case 18: ret = "Suss"; break;
case 19: ret = "Torr"; break;
case 20: ret = "Umbr"; break;
case 21: ret = "Viv"; break;
case 22: ret = "Warr"; break;
case 23: ret = "Xen"; break;
case 24: ret = "Yend"; break;
case 25: ret = "Zor"; break;
}
for (int i = 0; i < syllables - 2; i++) {
switch (rng(0, 17)) {
case 0: tmp = "al"; break;
case 1: tmp = "arn"; break;
case 2: tmp = "astr"; break;
case 3: tmp = "antr"; break;
case 4: tmp = "ent"; break;
case 5: tmp = "ell"; break;
case 6: tmp = "ev"; break;
case 7: tmp = "emm"; break;
case 8: tmp = "empr"; break;
case 9: tmp = "ill"; break;
case 10: tmp = "ial"; break;
case 11: tmp = "ior"; break;
case 12: tmp = "ordr"; break;
case 13: tmp = "oth"; break;
case 14: tmp = "omn"; break;
case 15: tmp = "uv"; break;
case 16: tmp = "ulv"; break;
case 17: tmp = "urn"; break;
}
ret += tmp;
}
switch (rng(0, 24)) {
case 0: tmp = ""; break;
case 1: tmp = "al"; break;
case 2: tmp = "an"; break;
case 3: tmp = "ard"; break;
case 4: tmp = "ate"; break;
case 5: tmp = "e"; break;
case 6: tmp = "ed"; break;
case 7: tmp = "en"; break;
case 8: tmp = "er"; break;
case 9: tmp = "ial"; break;
case 10: tmp = "ian"; break;
case 11: tmp = "iated"; break;
case 12: tmp = "ier"; break;
case 13: tmp = "ious"; break;
case 14: tmp = "ish"; break;
case 15: tmp = "ive"; break;
case 16: tmp = "oo"; break;
case 17: tmp = "or"; break;
case 18: tmp = "oth"; break;
case 19: tmp = "old"; break;
case 20: tmp = "ous"; break;
case 21: tmp = "ul"; break;
case 22: tmp = "un"; break;
case 23: tmp = "ule"; break;
case 24: tmp = "y"; break;
}
ret += tmp;
return ret;
}
// Used in game.cpp
std::string fac_ranking_text(int val)
{
if (val <= -100)
return "Archenemy";
if (val <= -80)
return "Wanted Dead";
if (val <= -60)
return "Enemy of the People";
if (val <= -40)
return "Wanted Criminal";
if (val <= -20)
return "Not Welcome";
if (val <= -10)
return "Pariah";
if (val <= -5)
return "Disliked";
if (val >= 100)
return "Hero";
if (val >= 80)
return "Idol";
if (val >= 60)
return "Beloved";
if (val >= 40)
return "Highly Valued";
if (val >= 20)
return "Valued";
if (val >= 10)
return "Well-Liked";
if (val >= 5)
return "Liked";
return "Neutral";
}
// Used in game.cpp
std::string fac_respect_text(int val)
{
// Respected, feared, etc.
if (val >= 100)
return "Legendary";
if (val >= 80)
return "Unchallenged";
if (val >= 60)
return "Mighty";
if (val >= 40)
return "Famous";
if (val >= 20)
return "Well-Known";
if (val >= 10)
return "Spoken Of";
// Disrepected, laughed at, etc.
if (val <= -100)
return "Worthless Scum";
if (val <= -80)
return "Vermin";
if (val <= -60)
return "Despicable";
if (val <= -40)
return "Parasite";
if (val <= -20)
return "Leech";
if (val <= -10)
return "Laughingstock";
return "Neutral";
}
-105
View File
@@ -1,105 +0,0 @@
#ifndef _FACTION_H_
#define _FACTION_H_
#include <string>
#include <vector>
// TODO: Redefine?
#define MAX_FAC_NAME_SIZE 40
#ifndef mfb
#define mfb(n) long(1 << (n))
#endif
std::string fac_ranking_text(int val);
std::string fac_respect_text(int val);
class game;
enum faction_goal {
FACGOAL_NULL = 0,
FACGOAL_NONE,
FACGOAL_WEALTH,
FACGOAL_DOMINANCE,
FACGOAL_CLEANSE,
FACGOAL_SHADOW,
FACGOAL_APOCALYPSE,
FACGOAL_ANARCHY,
FACGOAL_KNOWLEDGE,
FACGOAL_NATURE,
FACGOAL_CIVILIZATION,
FACGOAL_FUNGUS,
NUM_FACGOALS
};
enum faction_job {
FACJOB_NULL = 0,
FACJOB_EXTORTION, // Protection rackets, etc
FACJOB_INFORMATION, // Gathering & sale of information
FACJOB_TRADE, // Bazaars, etc.
FACJOB_CARAVANS, // Transportation of goods
FACJOB_SCAVENGE, // Scavenging & sale of general supplies
FACJOB_MERCENARIES, // General fighters-for-hire
FACJOB_ASSASSINS, // Targeted discreet killing
FACJOB_RAIDERS, // Raiding settlements, trade routes, &c
FACJOB_THIEVES, // Less violent; theft of property without killing
FACJOB_GAMBLING, // Maitenance of gambling parlors
FACJOB_DOCTORS, // Doctors for hire
FACJOB_FARMERS, // Farming & sale of food
FACJOB_DRUGS, // Drug dealing
FACJOB_MANUFACTURE, // Manufacturing & selling goods
NUM_FACJOBS
};
enum faction_value {
FACVAL_NULL = 0,
FACVAL_CHARITABLE, // Give their job for free (often)
FACVAL_LONERS, // Avoid associating with outsiders
FACVAL_EXPLORATION, // Like to explore new territory
FACVAL_ARTIFACTS, // Seek out unique items
FACVAL_BIONICS, // Collection & installation of bionic parts
FACVAL_BOOKS, // Collection of books
FACVAL_TRAINING, // Training among themselves and others
FACVAL_ROBOTS, // Creation / use of robots
FACVAL_TREACHERY, // Untrustworthy
FACVAL_STRAIGHTEDGE, // No drugs, alcohol, etc.
FACVAL_LAWFUL, // Abide by the old laws
FACVAL_CRUELTY, // Torture, murder, etc.
NUM_FACVALS
};
struct faction {
faction();
faction(int uid);
~faction();
std::string save_info();
void load_info(std::string data);
void randomize();
void make_army();
bool has_job(faction_job j);
bool has_value(faction_value v);
bool matches_us(faction_value v);
std::string describe();
int response_time(game *g); // Time it takes for them to get to u
std::string name;
unsigned values : NUM_FACVALS; // Bitfield of values
faction_goal goal;
faction_job job1, job2;
std::vector<int> opinion_of;
int likes_u;
int respects_u;
bool known_by_u;
int id;
int strength, sneak, crime, cult, good; // Defining values
int omx, omy; // Which overmap are we based in?
int mapx, mapy;// Where in that overmap are we?
int size; // How big is our sphere of influence?
int power; // General measure of our power
};
#endif

Some files were not shown because too many files have changed in this diff Show More