Compare commits

..

1829 Commits

Author SHA1 Message Date
Kevin Granade 333065db37 Roll version number in .pot back. 2013-11-17 16:41:21 -06:00
Tommy 4eea0aa985 Update .pot header for compatibility with old msgfmt. 2013-11-17 16:39:53 -06:00
Tommy 243cae9967 Only eat .pot header if header exists. 2013-11-17 16:39:52 -06:00
Vlasov Vitaly 6604c00938 fix msgfmt errors and warnings 2013-11-17 16:39:52 -06:00
Vlasov Vitaly 01a093753c xgettext call indentation
Conflicts:

	lang/update_pot.sh
2013-11-17 16:39:43 -06:00
Kevin Granade 3699eabdb8 Merge pull request #3279 from yobbobanana/0.8.0.1
0.8.0.1 translation updates
2013-09-30 20:30:03 -07:00
Tommy a0a9e1883d Update translations. 2013-09-27 09:30:27 +12:00
Tommy de6ede66a4 Update the .pot file 2013-09-27 09:29:31 +12:00
Tommy 19de1a3405 I18n for imaginary items, such as "nearby fire".
Conflicts:
	itypedef.cpp
2013-09-27 05:52:36 +12:00
Tommy d6a1720e20 I18n for mapgen.cpp. 2013-09-27 05:50:12 +12:00
Tommy b8d850486b Properly pass item->name to use_healing_item().
Conflicts:
	iuse.cpp
2013-09-27 05:49:08 +12:00
Tommy 3cc4ccc726 Rename "first aid" item to "first aid kit". 2013-09-27 05:45:09 +12:00
Tommy 02c9e39fde Override LC_NUMERIC because picojson. 2013-09-27 05:42:53 +12:00
Kevin Granade 99b6fe4203 Update translation line numbers in .pot. 2013-09-15 19:23:07 -05:00
Kevin Granade 03b1198db2 Update changelog, motd, and versioning for release 0.8. 2013-09-15 19:13:25 -05:00
Kevin Granade b28fb2ffc6 Merge more configurable stack sizing and latest translations. 2013-09-15 19:04:25 -05:00
Tommy 76d5122caf Pull in latest translations from Launchpad. 2013-09-16 11:53:06 +12:00
GalenEvil 39128f3ecd Merge branch 'pr/3050'
Merge branch 'pr/3023'
2013-09-15 17:30:23 -05:00
GalenEvil bed2a0b855 changed from debugmsg to dbg(D_INFO) 2013-09-15 17:28:04 -05:00
GalenEvil 43b2c20030 Merge branch 'pr/3023' 2013-09-15 17:26:19 -05:00
Kevin Granade 7df6391fdc Apply bounce effect on hit whether it does damage or not to avoid infinite loops when the shot cannot damage a target. 2013-09-15 14:49:41 -05:00
Kevin Granade 90e5168711 Use unified ammo and gun effects in shoot_monster(). 2013-09-15 14:49:11 -05:00
Kevin Granade 14780bb8d4 Remove unused bionic fake ammos. 2013-09-15 14:47:46 -05:00
Ian Strachan 076cdc4297 Make ammo stack_size consistent for each caliber, and meds' stack_size so that pills take up far less volume. 2013-09-15 14:46:20 -04:00
Ian Strachan 2b6e0069e5 Update JSON info documentation. 2013-09-15 14:10:11 -04:00
Ian Strachan a13ff98816 Add a stack_size field to ammo and comestibles, defaulting to the starting number of charges. 2013-09-15 14:07:07 -04:00
Ian Strachan 424857fcd7 Revert an ill-advised revert of a bug fix.
This reverts commit bf82319c1e.
2013-09-15 13:31:51 -04:00
atomicdryad 3654990345 Merge pull request #3045 from wito/september-fixes
Make volume consistent again.
2013-09-15 00:35:09 -07:00
Williham Totland bf82319c1e reverts an ill-advised adjustment to item volume 2013-09-15 09:21:11 +02:00
atomicdryad 03b088ab9a Merge pull request #3026 from 1942rob/seed-string-fix
iexamine::dirtmound() - Show correct message.
2013-09-14 23:22:38 -07:00
Kevin Granade ae8b8669ab Merge cheese material, localization target and distclean, and molotov fix. 2013-09-14 23:40:28 -05:00
Fergus Dall 0d6c12381c Make chesse have material "null", like milk
Fixes #3037
2013-09-15 13:20:12 +09:30
Kevin Granade 48b4d77573 Caught up changelog. 2013-09-14 22:28:20 -05:00
Tommy 8b5dad450c Add distclean target to Makefile, for cleaning keybindings etc. 2013-09-15 12:38:44 +12:00
Tommy 9f0bab0c95 Add lang/mo to bindist. 2013-09-15 12:29:57 +12:00
Christian Buskirk c2fb4027ae Fix Molotov cocktail double explosions 2013-09-14 17:25:28 -07:00
Tommy 696a7e632f Add capability to build localizations to the makefile. 2013-09-15 12:17:46 +12:00
GalenEvil 866fc19805 Added Deon's and SirHoder's tilesets to repo, altered ./data/gfx.txt to be able to point at either tileset 2013-09-14 18:52:15 -05:00
Kevin Granade c4528c12ac Merge pull request #3020 from yobbobanana/unused
silence gcc warning, and fix some _() that was nearby
2013-09-14 16:18:58 -07:00
Kevin Granade 56edfec658 Merge smashable crates, savegame version labels, kitten folding, and advanced inventory message. 2013-09-14 17:20:33 -05:00
fnord 860a75a32c Fold even non kitten things 2013-09-14 14:09:49 -05:00
Robert Sørlie 7577f795f7 I thought wrong! 2013-09-14 20:07:32 +02:00
Ian Strachan 6c93fdcac8 Added missing exclamation point to crate-smashing sound. 2013-09-14 13:35:31 -04:00
fnord 2b3592d4c4 Fix prior fix 2013-09-14 12:32:36 -05:00
Ian Strachan a7d4de6225 Crates can now be destroyed without requiring a sledgehammer. 2013-09-14 13:30:21 -04:00
fnord 8d15fb5dc7 FIx prior fix 2013-09-14 12:29:53 -05:00
fnord b9f6cd752d Fix folding of robotfindskitten blurb 2013-09-14 12:16:43 -05:00
fnord 9196ccd85d Adv inv: restore message display 2013-09-14 12:06:18 -05:00
fnord fac3f16f29 Add version headers to submap buffer and overmaps. Bump version to 5 for 0.8 2013-09-14 11:40:24 -05:00
Kevin Granade 216084291b Prevent debug spam on expected failures of item spawn. 2013-09-14 10:47:19 -05:00
Kevin Granade 1f24df6111 Merge hallucination refactor, salt water recipe, tool belt adjustment, winbuild fixes, and typo fixes. 2013-09-14 10:19:31 -05:00
illi-kun 9a1758b93f Update LAB_NOTES 2013-09-14 06:45:13 -07:00
Robert Sørlie ba057204a1 Prevented more min/max defines from windef.h
Just to be on the safe side
2013-09-14 13:55:38 +02:00
Christian Buskirk cb6ad55a83 Update credits 2013-09-14 01:58:37 -07:00
Rivet-the-Zombie b3e4a98258 Removed the cloth component. 2013-09-14 03:53:02 -05:00
Tommy 5a4e96663d That's not how _() works. 2013-09-14 19:33:35 +12:00
Tommy a3d94acb2d Remove unused game_completed variable that gcc was complaining about. 2013-09-14 19:30:42 +12:00
Rivet-the-Zombie 2ed836b8fb Changed to leather and cotton, made coverage smaller. 2013-09-14 01:53:52 -05:00
Rivet-the-Zombie e484c00aa4 Formatting. 2013-09-14 01:24:28 -05:00
Rivet-the-Zombie b5958343dc Salt water recipe.
We have salt, we have water. Why can't we make salt water?
2013-09-14 01:23:45 -05:00
Ian Strachan 94deec6397 Hallucinations have a 4% chance of disappearing each turn, and a ~14% chance of disappearing after hitting the player. 2013-09-13 22:27:52 -04:00
Ian Strachan c2df3659b0 Hallucinations no longer gib and can't bash terrain. Fixes #1328. 2013-09-13 22:13:21 -04:00
Kevin Granade ea854dbc18 Merge wish tweaks, revive flag, extreme morale emoticons, and lit item refactor. 2013-09-13 21:10:30 -05:00
fnord ca0acc408b Torches have LIGHT_75. Also, [REDACTED] 2013-09-13 21:06:25 -05:00
Ian Strachan e25afd603d Remove tile definitions for removed hallucination monsters.
(That's what I get for not playing the SDL version)
2013-09-13 22:01:00 -04:00
Ian Strachan 6f6e449704 Remove the now-unused hallucination monsters (except mom). Also refactor hallucination spawning into a single function. 2013-09-13 21:50:38 -04:00
Ian Strachan dc3644f9ed Any monster can now be hallucinated, and they produce fake damage messages. 2013-09-13 21:16:57 -04:00
Tommy 6916b6b6c0 Update .pot and .po, should be last time before 0.8. 2013-09-14 10:44:58 +12:00
fnord 7bb6eb3d1e Merge remote branch 'origin/pr/2997' 2013-09-13 17:28:00 -05:00
fnord 1a7142298f Merge remote branch 'origin/pr/2999' 2013-09-13 17:26:54 -05:00
fnord 7890bc9ad1 Merge remote branch 'origin/pr/3003' 2013-09-13 17:24:41 -05:00
fnord 8cf29e9d1c Merge remote branch 'origin/pr/3014' 2013-09-13 17:09:42 -05:00
fnord 84f4628ea8 Merge remote branch 'origin/pr/3011' 2013-09-13 17:09:15 -05:00
fnord f6db61ce59 Merge remote branch 'origin/pr/3010' 2013-09-13 17:09:04 -05:00
fnord 48eb247c5f Merge remote branch 'origin/pr/3009' 2013-09-13 17:08:45 -05:00
illi-kun 2b146ceaba Minor spelling fixes of armor.json 2013-09-13 14:57:04 -07:00
fnord 0aec15a52c Typofix 2013-09-13 16:54:32 -05:00
fnord 81acc9d24c item lighting: dropped items are now 100% (*) consistent with held items. Optional CHARGEDIM tag makes light dim at < 20% charge.
* player::active_light: simplified into only 1 inventory loop (which applies the same as before),
  held item, and telglow/bio_light. All but the latter two calc luminance from LIGHT_ / CHARGEDIM + charge
  as per item::getlight_emit(true)

* map: apply item lighting the same way, via:

* bool item::getlight(float & luminance, int & width, int & direction, bool calculate_dimming )
  use values from item.light, if item.light_luminance > 0, else use values from itype via:

* int getlight_emit(bool calculate_dimming = true);
  apply circular light as per tag LIGHT_*. Dim this in a linear fashion if charge < 20%, if tag CHARGEDIM is present.

* data/raw/items/tools.json: flashlight bumped to LIGHT_100 (same as before when held, same dropoff),
  others adjusted to match old held values

** item.light struct is a manual override of itag lighting, for functions to apply
   light sources/arcs with specific angle and direction (ie, spotlights). Since player has no
   direction it's not applicable atm, but a mechanic to point the flashlight while in 'x' look_around might be good.
2013-09-13 16:04:10 -05:00
fnord 19206e3134 game::wish*() moved back to private. editmap made friend class (for
post 0.8 feature upgrades), advanced_inventory made friend class (for
restoring message log reading)
2013-09-13 15:34:06 -05:00
fnord d2b89c3d8e Light sources of 1 only light up 1 square. Light source 2 is applied
as 1.49, which is distinctly dimmer than 3 (it resembles the old 3x3 '1')
2013-09-13 15:29:58 -05:00
Christian Buskirk fd250a0278 Lower shrub mass 2013-09-13 13:21:37 -07:00
Robert Sørlie a09860f5c0 Updated project files
added "iuse_software_sokoban.*" files
2013-09-13 22:05:02 +02:00
Robert Sørlie 331faf0203 Rewrote iexamine::dirtmound()
aka plant-seed-in-dirtmound function

and fixed bug in inventory::use_charges()
2013-09-13 21:44:08 +02:00
illi-kun 2722a0a168 Spelling fixes in tools.json
Also, some spaces are added for keeping everything in one style
2013-09-13 11:58:07 -07:00
Ian Strachan 997d576f66 Added some more morale indicators for extreme morale levels. 2013-09-13 14:00:28 -04:00
Ian Strachan fae89dcf3b Minor refactor: Make checking if a monster is a hallucination its own function. 2013-09-13 13:35:40 -04:00
Tommy f1e07ef3be Some minor i18n fixes for advanced_inv.cpp. 2013-09-13 21:15:15 +12:00
Tommy d0ddcaca01 Oops. 2013-09-13 21:12:48 +12:00
Tommy 430dae77ba Remove unnecessary string return from vehicle::use_controls(). 2013-09-13 20:55:28 +12:00
Tommy 4a005b14de Update .pot and .po again. 2013-09-13 16:07:17 +12:00
Tommy 314d24ac76 Fix some broken translator comments. 2013-09-13 16:06:30 +12:00
Tommy 26ec5a115b More missing gettext. 2013-09-13 16:04:51 +12:00
Christian Buskirk 456e89c6b9 Add the MF_REVIVES flag 2013-09-12 21:01:55 -07:00
Tommy d61ad13f68 Update .pot and merge current translations. 2013-09-13 15:48:41 +12:00
Tommy 271e1f6c41 Fix lang/merge_po.sh for empty lang/incoming. 2013-09-13 15:47:40 +12:00
GalenEvil ab09263478 Merge branch 'origin/master' 2013-09-12 22:10:29 -05:00
GlyphGryph 109c000ffd Added a few lab notes, fixed lab notes with improper lengths. 2013-09-12 23:06:33 -04:00
GalenEvil 60d09b3fe7 Merge branches 'pr/2970' and 'pr/2974' 2013-09-12 22:02:21 -05:00
Kevin Granade deae80bcb6 Pluralization typo fix. 2013-09-12 21:44:26 -05:00
Kevin Granade 199ae63ad3 Merge typos and towel damage nerf. 2013-09-12 21:33:55 -05:00
fnord e65f1fae5f wishmutate; t toggles trait, more info displayed 2013-09-12 21:09:38 -05:00
fnord 2f83c04695 grab const ref of inventory while populating abstract list 2013-09-12 21:07:02 -05:00
Kevin Granade 8905045110 Bug fixes all the way. 2013-09-12 19:52:22 -05:00
Rivet-the-Zombie 3d06aef232 towel damage fix
Towels really shouldn't do 8 cutting damage.
2013-09-12 17:30:49 -05:00
illi-kun f9d3e77272 spelling fixes in ammo.json 2013-09-12 11:31:56 -07:00
fnord 604a9d9e2b wish* made public functions for usage in editor 2013-09-12 13:28:59 -05:00
fnord 929f4215e8 wishitem: properly quit (and stack items) when called with ground coordinates.
skillwish: restore left/right arrow functionality
2013-09-12 13:24:18 -05:00
fnord a60d5c0528 string_input (popup) Make left/right cursor movement actually show 2013-09-12 13:18:06 -05:00
illi-kun fe431bb45d one-letter-fix of melee.json 2013-09-12 11:15:50 -07:00
fnord eb6955af89 inventory::add_item: Do not force reallocation if item->type == item->type && invlet != invlet 2013-09-12 08:24:24 -05:00
Tommy b536122952 Fix default option selection for string options. 2013-09-12 23:52:01 +12:00
Tommy a4bbafa1c1 Fix trigdist only getting cached at game init. 2013-09-12 23:50:59 +12:00
Kevin Granade 0645cc687f Revert "refactored inv and added inv_activatable"
This reverts commit 15fb60c6dd.
2013-09-11 22:59:54 -05:00
Tommy 536d9213b3 Move lang/translation_notes to just lang/notes. 2013-09-12 14:36:31 +12:00
Tommy 15f90d74f3 Rename lang/translation_notes/de_DE.txt to just de.txt. 2013-09-12 14:34:49 +12:00
Tommy 8a1b815edc Fine, markdown. Backticks it is. 2013-09-12 14:32:45 +12:00
Tommy 706f2e21f2 Bring TRANSLATING.md up to date with current procedure. 2013-09-12 14:26:03 +12:00
Ian Strachan 7c4f666a8b Slightly cleaner inventory.cpp check. 2013-09-11 20:45:47 -04:00
Ian Strachan 371e3fc408 Consume ammo from items in inventory, not just wielded ones. 2013-09-11 20:40:08 -04:00
Ian Strachan cf33a440f8 Fix ammo not being counted towards crafting recipes. 2013-09-11 20:28:25 -04:00
illi-kun 1d8f9b1fbb Spelling fix: ranged.json
construction? contraction?
2013-09-11 13:08:42 -07:00
illi-kun c16be829ae Minor spelling fixes in mods.json 2013-09-11 12:30:10 -07:00
illi-kun 488ca7b45d one-letter-fix of skills.json
fixed tailoring description
2013-09-11 12:05:38 -07:00
illi-kun 22b62e61ec Spelling fix: snippets.json 2013-09-11 11:59:01 -07:00
Robert Sørlie 070f5d94db Massive project update
- Updated C::B project
- Fixed MSVC compilation issues
- Now theres a project for VC2010, 2012, and 2013

*.user contains debug options
2013-09-11 18:14:38 +02:00
Kevin Granade f22533e7a7 A little restyling. 2013-09-10 22:33:26 -05:00
Kevin Granade 8ef1320664 Despawn monsters immediately upon leaving the active map instead of waiting until they are SEE[xy] off it. 2013-09-10 22:31:45 -05:00
Kevin Granade db0827779a Merge vehicle wreckage spawning fix. 2013-09-10 20:55:14 -05:00
Kevin Granade 41c5ec7b8a Spelling fix fix. 2013-09-10 20:50:21 -05:00
Kevin Granade c7da92c6e0 Merge spelling fixes. 2013-09-10 20:48:54 -05:00
Kevin Granade 1d9dbd0a09 Replace hackish bresenham border-scanning with shadowcasting for caching player seen tiles. 2013-09-10 20:28:04 -05:00
Ian Strachan 37b8cf7a37 Make smash() more likely to break vehicle parts. 2013-09-10 21:27:33 -04:00
Ian Strachan 3de2153c5c Fix #2926 for great justice! 2013-09-10 21:25:45 -04:00
Ian Strachan 69c257ed00 Don't calculate wreckage's global x and y if it hasn't changed. 2013-09-10 21:24:51 -04:00
Ian Strachan 87a8b56abb Improve the destroy_vehicle debug message. 2013-09-10 20:54:01 -04:00
Kevin Granade 4c9a38978f Merge inventory handling cleanup, i18n tweaks, pickles in jars, and memory leak fix. 2013-09-10 17:38:22 -05:00
Kevin Granade 68e753e4eb Merge some bugfixes. 2013-09-10 17:19:54 -05:00
illi-kun d9ec5a6c45 Update containers.json
Corrections of 'milliliters' spelling. Proof:
http://lamar.colostate.edu/~hillger/correct.htm
2013-09-10 14:35:24 -07:00
illi-kun ebf27a9604 Update mutations.json
Spell-checking
2013-09-10 14:12:42 -07:00
illi-kun e40ee1c1fc Update dreams.json
really small spell-checking
2013-09-10 13:45:44 -07:00
Robert Sørlie 55802dcbba fixed minor memoryleak 2013-09-10 22:11:48 +02:00
illi-kun 947e9a5afa Update bionics.json
Spell-checking
2013-09-10 12:29:52 -07:00
Rivet-the-Zombie 874fb9ceb4 Ensures that pickled stuff in fridges is properly sealed. 2013-09-10 12:52:58 -05:00
fnord 82be7367ed restore: items and monsters save to json
This is stable/tested and was merged in 21e76f9, however removed later. Please test
2013-09-10 04:19:42 -05:00
fnord 21acfb0d85 iuse:🔪 menu() didn't end in NULL but only crashed when built with -O. Also, remembers last menu selection (runtime). 2013-09-10 00:48:15 -05:00
Tommy 439516caad Fix missing final profession in profession list. 2013-09-10 16:20:29 +12:00
Tommy d5cbb8e33f Confirm that data/raw/sokoban.txt does not need translation. 2013-09-10 15:50:35 +12:00
Tommy a6aeda1d80 Mark a couple missed strings. 2013-09-10 15:49:19 +12:00
cib 2f74fbc761 Add a missing case for invlet reshuffling on force invlet assignment.
Fixes issue #2672

There's a tiny other change in there, which is to remove a duplicate call of update_cache_with_item(). The call is unnecessary if reuse_cached_letter is false, and if it's true, the call will be made anyway.
2013-09-10 05:14:24 +02:00
Peter Lacey-Bordeaux 15fb60c6dd refactored inv and added inv_activatable 2013-09-09 22:54:17 -04:00
Kevin Granade 4ab0886d6d Merge tons of content.
Conflicts:
	newcharacter.cpp
2013-09-09 20:24:20 -05:00
Kevin Granade beb2bc8fa9 Fixtastic 2013-09-09 19:03:25 -05:00
Kevin Granade ad65cd7118 Merge some vehicle interaction fixes. 2013-09-09 19:01:10 -05:00
OzoneH3 16244f94bf Autopickup fix for generated itemnames (damage, (fits) and container items) 2013-09-09 23:54:02 +02:00
Robert Sørlie cffa00a5c4 fixed bug in uimenu::query() which caused crashes 2013-09-09 22:28:06 +02:00
Livingstone 3fa3b2233a Show profession-given items in profession screen 2013-09-09 22:34:16 +03:00
OzoneH3 7389e62e17 Sokoban undo move fix. 2013-09-09 20:40:51 +02:00
Robert Sørlie 9657ae312b fixed possible crash when exiting vehicle interaction menu 2013-09-09 20:12:13 +02:00
Ian Strachan c9fc66b7c9 Pressing ESC when renaming a vehicle leaves the name instead of wiping it. 2013-09-09 14:00:19 -04:00
Ian Strachan d447d138ae Fixed vehicle-wall spawning collisions destroying the wrong terrain. 2013-09-09 13:49:49 -04:00
OzoneH3 b409dc73dd Play sokoban on your handheld! 2013-09-09 17:23:12 +02:00
fnord fb829448f0 iuse:🔪 Fix non-intuitive/undocumented carve item functionality, and unexpected sometimes-menu, sometimes-not behavior via a more helpful menu.
* Previously, carve item was only an option if knife is wielded, and the only way to know this was by looking into the source code.

* New menu implicitly says 'you need a lighter with 4 charges' over the disabled cauterize option.
2013-09-09 10:08:08 -05:00
Tommy 5f24a37786 Forgot to remove some int casts. 2013-09-09 23:54:36 +12:00
Tommy 9c0f07edb3 I18n for option names, wow that was a PITA. 2013-09-09 23:26:43 +12:00
Tommy 27a6c11989 Move cOpt class from options.h to options.cpp and do some minor i18n. 2013-09-09 21:57:44 +12:00
mina`kitty 0c90f460d4 Clean up anime con to otaku 2013-09-09 01:20:40 -07:00
Tommy 3ba38b0b45 I18n for special gamemode names. 2013-09-09 20:04:23 +12:00
Tommy e49a63a03f I18n for the tutorial. 2013-09-09 19:48:06 +12:00
Christian Buskirk 62568d370e Replace null ammo_type usage 2013-09-08 22:23:00 -07:00
Tommy e0377909dd Make sorted_profs, the sorted profession vector, saner. 2013-09-09 17:08:22 +12:00
Ian Strachan fdb19b5994 Better lockpick message when trying to pick unlocked doors. 2013-09-09 00:54:02 -04:00
Christian Buskirk 94378a7fba Convert "THREAD" to "thread" for consistency 2013-09-08 21:25:17 -07:00
Christian Buskirk ccd32b3d60 Stop adrenaline from altering moves directly 2013-09-08 21:11:46 -07:00
Christian Buskirk c6131803d6 Merge PR #2865 - Prune options 2013-09-08 20:00:43 -07:00
Kevin Granade b8c3bd5706 Merge pull request #2769 from mattkelr/osx
fix osx build, revise instructions. [CR]
2013-09-08 19:43:21 -07:00
Kevin Granade 437211f1ae Merge a batch of content. 2013-09-08 21:39:13 -05:00
Ian Strachan fb5b258074 Added motorcycles with sidecarts. 2013-09-08 22:39:04 -04:00
Kevin Granade 6959541c26 Use correct z-level to determine temperature of cold lab. 2013-09-08 21:30:44 -05:00
mina`kitty 8504827d99 Update recipes.json 2013-09-08 18:16:31 -07:00
mina`kitty 4059e2bc00 Added anime convention to take advantage of kitty accessories 2013-09-08 18:08:51 -07:00
mina`kitty 8b14d7615e Final tweaks of kitty armors 2013-09-08 18:07:17 -07:00
mina`kitty 8249e38ccd Completed the wearable aspects of kitty gear. 2013-09-08 17:36:20 -07:00
mina`kitty f0eb1d5035 Added remaining kitty recipies 2013-09-08 17:27:38 -07:00
mina`kitty b98469b201 Expanded to add some Japanese-esque names in 2013-09-08 17:11:00 -07:00
Kevin Granade 6cbcd0a512 Merge vehicle spawning refactor and per-submap temperature adjustments. 2013-09-08 19:04:10 -05:00
mina`kitty 851d9c0cfa Update names.json 2013-09-08 16:52:01 -07:00
Kevin Granade 03a0f83f30 Merge i18n update. 2013-09-08 18:34:32 -05:00
Ian Strachan d42e57da86 Better check for vehicles spawning in water. 2013-09-08 18:22:06 -04:00
Kevin Granade e2f9108c87 Cleanup unneeded consitionally compiled code. 2013-09-08 16:59:54 -05:00
Ian Strachan 47f0510553 Fixed craziness at submap boundaries, and wrong submap deletion. 2013-09-08 17:55:23 -04:00
Kevin Granade f4cc3941f8 Merge lightmap optimization and item definition cleanup. 2013-09-08 16:44:59 -05:00
Kevin Granade cb9898ff4f Merge build fixes. 2013-09-08 16:33:44 -05:00
fnord 08e918ba7e Merge branch 'lightsource_fix' into itype_light_improvement 2013-09-08 14:53:23 -05:00
fnord a6f737199b Fix merge error and actually apply added lightsources 2013-09-08 14:52:44 -05:00
fnord d8fa141529 Add test to editmap for item.light 2013-09-08 14:48:32 -05:00
fnord 0819dc9cb0 itype: Allow -any- LIGHT* tag value. item: Add functionality to allow any item to emit light of any brightness / width / direction 2013-09-08 14:08:47 -05:00
fnord c94050459d lightmap: 1000 % speedup of clustered light sources such as infernos and lava fields by eliminating redundant
ray casting. Significantly mitigates arson-induced slowdown.

* map.h: added light_source_buffer[][], add_light_source(x, y, luminance)
* map::generate_lightmap: add certian light sources to buffer instead of apply_light_source,
    then iterate buffer and apply_light_source. Also correct redundant item_tag searching.
* map::apply_light_source: check light_source_buffer for neighbors in each direction. If one of
    >= luminance is present, skip casting light rays in that direction entirely
2013-09-08 13:38:02 -05:00
Ian Strachan 62433794e7 Cars that spawn inside each other now get fused into a single 'Wreckage' vehicle. 2013-09-08 14:20:21 -04:00
Shoes01 a181f7055c Cleaning up some code 2013-09-08 08:42:44 -07:00
Shoes01 d494e74969 Added set_temperature function for submaps 2013-09-08 08:38:20 -07:00
fnord b4802c8a6e Rename variables that were shadowing something that is not kitten. 2013-09-08 06:26:34 -05:00
Tommy 1ac1f0defe I18n for direction names. 2013-09-08 19:29:43 +12:00
Tommy 559924421b I18n for terrain and furniture names. 2013-09-08 19:25:36 +12:00
fnord 1eb98b66d6 Add missing vc++ stuff to vc++ files for snake and kitten. 2013-09-08 02:21:17 -05:00
Tommy 9ba7f12749 Don't perform checks on .po files when compiling to .mo, just do it. 2013-09-08 18:39:40 +12:00
Tommy 64162f25f6 Import translations from launchpad. 2013-09-08 18:28:20 +12:00
Tommy 380805f901 Add new Chinese (Traditional) translation file (lang/po/zh_TW.po). 2013-09-08 18:20:22 +12:00
Tommy 678393167d Add empty translation file for Italian (lang/po/it.po). 2013-09-08 18:19:33 +12:00
Tommy d5b03aaef2 Update lang/merge_po.sh to also import translations from lang/incoming. 2013-09-08 18:16:47 +12:00
Rivet-the-Zombie 753e8160d8 Cleanup for better readability. 2013-09-08 00:58:51 -05:00
Shoes01 52c67a5cb5 Ice lab temps are now set through their submap 2013-09-07 22:46:01 -07:00
mina`kitty 2205337090 Add cat ears and tails 2013-09-07 22:31:06 -07:00
mina`kitty 30423bd208 Update armor.json 2013-09-07 22:12:30 -07:00
mina`kitty 72d857ced8 Update recipes.json
Recipe edits for cat ears/tails
2013-09-07 22:06:17 -07:00
Shoes01 bf1ac31e73 Submap temp code, including DEBUG 2013-09-07 21:53:08 -07:00
Tommy 64baa3a0a0 Add a new directory lang/incoming for incoming translations. 2013-09-08 16:43:48 +12:00
Ian Strachan a9be0ac70e Fix debug vehicle spawn from attempting to board if the vehicle wasn't created. 2013-09-07 23:55:54 -04:00
Rivet-the-Zombie 71a3722eae Makes match head bomb slightly more achievable. 2013-09-07 22:24:09 -05:00
Shoes01 4902859e5a submaps now store temperature 2013-09-07 20:04:08 -07:00
Gatleos fbe2fb6a4c Updated to work with dependency fixes in autopickup.h 2013-09-07 20:14:37 -06:00
Gatleos 145f1041e5 Made #include <locale> unconditional to fix dependency bug 2013-09-07 20:11:25 -06:00
Rivet-the-Zombie 9b96a72685 Changes quikclot recipe category to CHEMS.
Seems a better choice than MISC.
2013-09-07 21:05:10 -05:00
Gatleos 009c001e02 Fixed bug with non-LOCALIZE build 2013-09-07 19:41:25 -06:00
Kevin Granade 9528aa945b Add our workaround for windows not having nanosleep to robotfindskitten. 2013-09-07 19:37:12 -05:00
Kevin Granade 9d74a2d6d2 Merge remote-tracking branches 'dda/pr/2894' and 'dda/pr/2898' into dda-master 2013-09-07 18:33:45 -05:00
Kevin Granade 8d354a9f0f MErge small but important changes. 2013-09-07 18:32:37 -05:00
OzoneH3 105eced167 Play snake on your handheld now! Requires PR 2894 2013-09-08 01:16:19 +02:00
fnord bc0a57b00a Add more notkitten 2013-09-07 16:17:45 -05:00
Rivet-the-Zombie 16c055b0d6 Occasionally spawn army surplus clothes in the 'allclothes' listing. 2013-09-07 15:40:02 -05:00
fnord 89cf96fb34 Add missing kitten morale 2013-09-07 15:09:00 -05:00
fnord 626a967937 Cut video game morale boost by half. Unless you find kitten. 2013-09-07 15:00:02 -05:00
Eric Phetteplace cf3b99c3b2 2 spelling corrections 2013-09-07 14:30:18 -04:00
fnord 519ec13a7f Let's try this again: needless tmpvar and uint cast: scram 2013-09-07 11:45:36 -05:00
fnord 04017b6eaa Merge remote branch 'origin/master' into item_bday_load_adjust 2013-09-07 11:44:18 -05:00
Kevin Granade 9bc757c5c1 Restyle new matchbomb iuse methods. 2013-09-07 10:47:57 -05:00
Kevin Granade aa45d25063 Merge matchbombs. 2013-09-07 10:42:52 -05:00
fnord 7e5ba3d6e8 BUGFIX: item: do not init() variables in item::make
...as json_load calls init() and make() clobbered stuff
2013-09-07 02:29:32 -05:00
Kevin Granade a636c27e03 Fixup some syntax issues. 2013-09-07 00:51:46 -05:00
Kevin Granade d087ac7cfd Merge a heap of new content.
Conflicts:
	data/raw/item_groups.json
	data/raw/items/comestibles.json
	data/raw/recipes.json
2013-09-07 00:06:17 -05:00
Rivet-the-Zombie a91914d64c Moving items to second-to-last on their lists. 2013-09-07 00:05:03 -05:00
Gatleos d9718ac8fe Syntax fix 2013-09-06 21:50:16 -06:00
Gatleos 4579c320ee Removed a little redundancy 2013-09-06 21:07:17 -06:00
Ian Strachan 905ccab1ce Vehicles now spawn in more interesting ways. 2013-09-06 22:51:57 -04:00
Gatleos fdf01880bc Made minor windows portability fix 2013-09-06 20:47:45 -06:00
Rivet-the-Zombie c76dddc3a9 Adding as an option in first aid recipe. 2013-09-06 21:16:44 -05:00
Rivet-the-Zombie f1aba04c60 Quikclot first pass. 2013-09-06 21:13:22 -05:00
Rivet-the-Zombie 76890c0934 Traders don't want no lit bombs! 2013-09-06 20:49:47 -05:00
Rivet-the-Zombie 65958653ce Grammar fix. 2013-09-06 20:47:43 -05:00
Kevin Granade 7191fbe8cd Merge pull request #2885 from ianestrachan/fix-2880
Fix vehicles not having foot pedals.
2013-09-06 18:45:21 -07:00
Ian Strachan 91605ec6ee Fix vehicles not having foot pedals. 2013-09-06 21:33:11 -04:00
Kevin Granade e4c4897e32 Merge remote-tracking branch 'dda/pr/2840' into dda-master 2013-09-06 18:41:24 -05:00
Kevin Granade 6a49afc3d4 Merge fix to character creation scrollbars, reading cancallation notification, and item initialization unification.
Conflicts:
	game.h
	item.h
2013-09-06 18:40:45 -05:00
Rivet-the-Zombie 183afe1973 Making fuse length more reasonable.
Also better description.
2013-09-06 18:30:32 -05:00
Rivet-the-Zombie c544691838 Recipe simplification. 2013-09-06 18:09:32 -05:00
Rivet-the-Zombie 5429c975e9 Balancing. 2013-09-06 16:33:05 -05:00
Rivet-the-Zombie a238f42b72 First pass. 2013-09-06 15:29:14 -05:00
fnord 09f33a607d Might as well increment savegame_version since save compatibility was busted
since the 1st. Also, made a global variable
2013-09-06 15:18:24 -05:00
fnord 82d32c0b9b item: ensure the same default initializers are applied for all constructors as well as item:make. Fixes 'charges' leak in mapbuffer::load 2013-09-06 14:06:51 -05:00
Rivet-the-Zombie 0ab081deea Fix'd! 2013-09-06 11:29:10 -05:00
Ian Strachan bf98c6b0f5 Add an information message when you start studying a book to tell you how to stop. Addresses #1505. 2013-09-06 11:55:20 -04:00
OzoneH3 56eba4fff0 Char creation: Profession scrollbar fix. 2013-09-06 10:58:53 +02:00
Rivet-the-Zombie af041766b0 Third time's the charm! 2013-09-06 03:10:25 -05:00
Rivet-the-Zombie 39532e8427 Fix'd.
I hope!
2013-09-06 03:02:13 -05:00
Rivet-the-Zombie 0866e2d456 Recipe update to glass. 2013-09-06 02:55:20 -05:00
Rivet-the-Zombie 4482678fc4 First pass. 2013-09-06 02:53:29 -05:00
Rivet-the-Zombie 7873e9caf4 Altered charcoal purifier efficiency. 2013-09-06 02:34:41 -05:00
Rivet-the-Zombie fe34ebf7a7 Adjusted rarity. 2013-09-06 02:22:17 -05:00
Rivet-the-Zombie 072ba43d70 Adding matches to recipe. 2013-09-06 02:14:24 -05:00
Rivet-the-Zombie 9e1305c2ce Changed quantity.
Enough to clean one gallon.
Plus nothing holds five units of water.
2013-09-06 02:06:48 -05:00
Rivet-the-Zombie 005ee2c478 Better recipe. 2013-09-06 02:05:46 -05:00
Rivet-the-Zombie 201b438f9e Recipe diversification. 2013-09-06 02:03:35 -05:00
Rivet-the-Zombie 2f8ce2481b Item spawns. 2013-09-06 01:56:48 -05:00
Rivet-the-Zombie f6ef764c45 Charcoal water purifier. 2013-09-06 01:51:09 -05:00
Rivet-the-Zombie 4cb8161c31 More production. 2013-09-06 01:43:38 -05:00
Rivet-the-Zombie 77d8288e82 Production methods. 2013-09-06 01:36:25 -05:00
Rivet-the-Zombie a6b5cd0455 Water purification tablets!
Rather rare and incredibly valuable!
2013-09-06 01:24:24 -05:00
Rivet-the-Zombie 868d8c4758 First pass. 2013-09-06 01:10:38 -05:00
fnord 675c0e97b9 item::json_load: Remove tmp var & typecast for item.bday as per pr #2866 2013-09-05 23:29:01 -05:00
Kevin Granade 9cede61f48 Merge some balance tweaks. 2013-09-05 23:28:19 -05:00
Kevin Granade 626a9f8777 Remove zombie revival option, it's just a feature of zombies. 2013-09-05 21:41:43 -05:00
Kevin Granade cf112b5418 Remove crafting menu sort options, leave it on always. 2013-09-05 21:41:20 -05:00
Kevin Granade 18bbaa22f1 Fix vehicle wishing menu by enumerating vehicle types instead of names. 2013-09-05 21:21:15 -05:00
Kevin Granade 5523aced98 Merge scrollbar, vehicle data refactor, and memorial enhancements. 2013-09-05 19:54:22 -05:00
Kevin Granade 91e17e5a69 Use wielded item name in message instead of assuming its an umbrella. 2013-09-05 19:43:21 -05:00
Kevin Granade 2e2ad75514 Merge dispersion display fix, weather effect adjustment, and seatbelt effacacy fix. 2013-09-05 19:15:58 -05:00
Ian Strachan 275c8135ea Remove null vehicle template from vehicles.json 2013-09-05 15:55:21 -04:00
Ian Strachan 72eb8e2ec2 Made the custom vehicle come with a frame, rather than installing it with a hardcoded function call. 2013-09-05 13:48:40 -04:00
Ian Strachan d6a3028a3d Converted vehicle IDs to lowercase with underscores. 2013-09-05 13:18:43 -04:00
Ian Strachan 6a1a185f50 Added tracking of squares walked, and fixed memorial entries not loading. 2013-09-05 02:25:22 -04:00
fuchs87 c996d67710 small change 2013-09-04 22:53:31 +02:00
cib 74bd2e1dbb Reduced chewing gum frequency, except on military drops. 2013-09-04 22:26:57 +02:00
Christian Buskirk 95691ceda6 Lower enc layering penalties 2013-09-04 11:53:42 -07:00
Ian Strachan 1c4d635f5d Add separate ID field to vehicles.json to facilitate i18n. 2013-09-04 11:22:03 -04:00
fuchs87 29481e1308 -changed "throw_from_seat": Passengers aren´t thrown from the seat when there´s a seatbelt.
-fixed a bug in a json file
2013-09-04 15:55:45 +02:00
OzoneH3 bb7f650094 Bigger Scrollbar on smaller lists. 2013-09-04 15:48:32 +02:00
OzoneH3 ca29b41b10 Added scrollbars to two more lists. 2013-09-04 15:27:38 +02:00
OzoneH3 a9cce38863 Added the Top/Bottom scrolling option to compatible lists.
There are still a lot of menues left that would have to rewritten to support that behaviour.
2013-09-04 14:47:08 +02:00
OzoneH3 d236316bc4 Added Scrollbars to various lists.
Code based on atomicdryad's PR (https://github.com/CleverRaven/Cataclysm-DDA/pull/2843) with a few changes to the scrollbar calculation.
2013-09-04 13:00:35 +02:00
Christian Buskirk a883778b7e Increase ketchup spoilage time 2013-09-04 02:16:50 -07:00
fnord 725afa72bf cleanup 2013-09-04 03:52:36 -05:00
fnord 632d894310 Formatting tweak 2013-09-04 03:50:52 -05:00
fnord 0f3949c284 uimenu: scrollbar has better position calculation, consistent size >= 2. 2013-09-04 03:47:32 -05:00
fnord 3d413d0b92 Merge remote branch 'origin/master' into scrolling_option_and_indicator 2013-09-04 03:44:25 -05:00
Christian Buskirk 40ccdeb3c4 Add power armor acid rain protection effects 2013-09-03 23:19:49 -07:00
Christian Buskirk 6aa6be14d1 Stop underwater weather effects 2013-09-03 23:00:42 -07:00
Christian Buskirk fd3132376e Fix dispersion comparisons 2013-09-03 22:56:55 -07:00
Ian Strachan c6c695e5d7 Documentation update. 2013-09-04 01:23:09 -04:00
Ian Strachan 2a037ba1fe Remove the vhtype_id enum; vehicles are now referenced by name. 2013-09-04 01:07:45 -04:00
Christian Buskirk f2b83c4571 Merge some small bugfixes 2013-09-03 21:34:15 -07:00
Kevin Granade 512aa7b702 Don't cache center scroll setting so you can toggle it in-game. 2013-09-03 22:05:03 -05:00
Kevin Granade 813bb5f49c Default to center-scroll. 2013-09-03 22:04:27 -05:00
Kevin Granade eb0e92bfbb Merge scrolling changes.
Conflicts:
	options.cpp
	ui.cpp
2013-09-03 21:55:42 -05:00
Kevin Granade f40c097333 Merge dem bugfixes. 2013-09-03 19:44:21 -05:00
Ian Strachan 3ba65c3035 Using a wielded handheld game system now uses up charges. Fixes #2827. 2013-09-03 14:55:52 -04:00
fnord c8711b4563 Scroll indicator: No hiding, actually apply color option 2013-09-03 12:42:20 -05:00
fnord d036018f92 option: Interface option for centered menu scrolling.
uimenu: Scrollbar place indicator for large scrolling lists.
2013-09-03 12:26:33 -05:00
Robert Sørlie 63947e3e90 fixed load-game-with-planted-seed crash 2013-09-03 18:03:25 +02:00
Ian Strachan b8d0e6c22d Add gettext to vehicle names. 2013-09-03 10:54:58 -04:00
Ian Strachan abb3fa3359 Fix wide wheels not being present on vehicles. 2013-09-03 10:34:39 -04:00
OzoneH3 6394c60ed8 Better shopping cart movenent. It will now be dragged behind the player.
TODO: Check if this works with bigger vehicles as well.
2013-09-03 16:30:15 +02:00
OzoneH3 8fb43b4c3b Improved Options loading. Wrong manually configures options wont mess up the following options anymore.
Tabnames are now c_ltgreen to be more visible.
Removed a useless map mPage.
2013-09-03 14:02:55 +02:00
Robert Sørlie 4516784c4f fixed bug where null bytes was written to save
and template files
2013-09-03 13:38:00 +02:00
Tommy f4a56ed637 Seems like a good time to update the .pot file. 2013-09-03 20:14:20 +12:00
Tommy 370d4f5e98 Add data/raw/vehicles.json to lang/extract_json_strings.py. 2013-09-03 20:05:00 +12:00
Tommy 66e95a85fa Change update_pot.sh failure message slightly. 2013-09-03 19:15:24 +12:00
Kevin Granade 34dde331b3 Include header that declares getVersionString() in sdltiles.cpp. 2013-09-02 22:38:40 -05:00
Kevin Granade 06e45e703d Merge remote-tracking branch 'dda/pr/2798' into dda-master 2013-09-02 22:24:16 -05:00
Kevin Granade a61a07f344 Merge pull request #2806 from ianestrachan/memorial-kill-note-patch
Bump up limit on memorial kill logs.
2013-09-02 20:20:09 -07:00
Kevin Granade 76c258ff4e Merge tweaks, json cleanup, and tile fix. 2013-09-02 21:46:23 -05:00
GalenEvil 6ce2d147e4 Merge branch 'pr/2809' 2013-09-02 21:19:23 -05:00
Kevin Granade d55902bff3 Another day, another heaping helping of bugfixes. 2013-09-02 20:30:26 -05:00
GalenEvil 14741e2004 tile_config_template.json is an accurate template for all items and hardcoded tiles as of 2 Sept 2013 at 8:00pm CST
tile_id_data.h updated hardcoded keys to include added enum values.

Added comments to the top of enums referenced by tile_id_data.h's arrays to hopefully reduce the need to do fixes like this in the future.
2013-09-02 20:06:55 -05:00
Peter Lacey-Bordeaux 6c7019286b fixed the deconstructor complaint 2013-09-02 18:15:21 -04:00
Peter Lacey-Bordeaux bbe9e08bfb please don't leave commented out code inlined into an if statment... 2013-09-02 18:12:20 -04:00
Peter Lacey-Bordeaux 17a88a4193 initalized result to NULL; is delete result really needed? 2013-09-02 18:10:59 -04:00
Ian Strachan 68d39461ed Zombies that die in fire always drop items, fixes #2732. 2013-09-02 18:02:43 -04:00
fnord bb868ddf67 wish* implicitly start at left edge 2013-09-02 12:56:16 -05:00
fnord 719c75f25f Wish*: Don't try to conserve screen width as this triggers crash in foldstring, which cannot handle wide words 2013-09-02 12:52:29 -05:00
OzoneH3 d7d433e405 Undid the mutation wish menu fixed wide 80 commit. 2013-09-02 19:32:34 +02:00
fnord cc4c15b938 Interface option for centered menu scrolling.
So far supported by uimenu.
2013-09-02 12:10:42 -05:00
Steven Wu 383c4a0de7 fixed gun info display issues in item::info() 2013-09-02 07:05:40 -07:00
OzoneH3 2e32ebbf51 UIMenu: Start scrolling in the middle of the list and keep the selection centered as long as the list isnt at the top or bottom. 2013-09-02 11:55:26 +02:00
OzoneH3 cae51d3a8b Set mutation wish menu to a fixed width of 80. 2013-09-02 11:30:36 +02:00
OzoneH3 26e2a42942 List items: Jump to last item when scrolling up from the topmost item. 2013-09-02 11:09:30 +02:00
Steven Wu 7d6a43ecb2 Fixed energy-weapon bionics
* fixed bug where an ammo's effects were permanently modified by a
weapon's ammo_effects until reload
* bio_laser no longer requires UPS (now uses custom weapon instead of v29)
* bio_blaster now has plasma effect and does slightly more damage
* bio_lightning ammo effects moved to gun
* made new sound entries for weapons with LIGHTNING ammo_effect
2013-09-02 02:00:38 -07:00
OzoneH3 9d14480f1d Updated JSON_INFO for traits/mutations.
Small mutation wetness rework, got rid of some useless variables.
2013-09-02 10:55:37 +02:00
Ian Strachan 6fbdc969c9 Updating code documentation. 2013-09-02 02:43:32 -04:00
Ian Strachan b4253f72ad Load vehicle definitions from JSONs. 2013-09-02 02:22:59 -04:00
Ian Strachan 72e50e0270 Adding vehicles.json. 2013-09-02 02:19:49 -04:00
Ian Strachan 4402fef615 Adding ids to vehicle parts. 2013-09-02 01:12:52 -04:00
Kevin Granade fd9a582a00 Restyle a little chunk of place_forest(). 2013-09-02 00:03:53 -05:00
Kevin Granade a2486f557f Bail out trying to place a forest after a lot of tries. 2013-09-02 00:02:44 -05:00
Kevin Granade fec5720621 Restyle make_hiway(). 2013-09-02 00:00:32 -05:00
Kevin Granade 612c92b5b2 Nuke code that was making a fully connected graph of subway and sewer tunnels. 2013-09-02 00:00:05 -05:00
Livingstone e67f974d46 There's no point in cutting a result item. 2013-09-02 04:47:21 +03:00
Livingstone b5ef587c69 There's still no point in cutting a rag 2013-09-02 04:12:33 +03:00
Rivet-the-Zombie 01fd29bf4c Adjusting point cost.
This class gets a semi-crappy watch and a crappy weapon. Might be worth
a point.
2013-09-01 19:56:06 -05:00
Ian Strachan 701e1a7c70 Bump up limit on memorial kill logs. 2013-09-01 20:32:17 -04:00
Kevin Granade 1e3f8934f6 Mergorama. 2013-09-01 19:09:28 -05:00
NaturesWitness ade3e40006 Signed the Signoff
Not sure if I'm supposed to do this or not, haven't added THAT much code
to this repo.  Still, though I might as well.
2013-09-01 19:16:44 -04:00
NaturesWitness 262c596aad make vehicle storage function again (fixes #2772)
Apparently in the jsonizing of the vehicle parts we broke 60% of the
storage tiles  Whoops.  Anyway this should fix the seat, bed, RV
kitchen, floor trunk, and welding rig.
2013-09-01 18:49:44 -04:00
Steven Wu a9451bd4ec lab energy weapons finale now gives a UPS 2013-09-01 14:21:20 -07:00
Kevin Granade b865862d45 Merge dueling bugfixes.
Conflicts:
	wish.cpp
2013-09-01 16:17:51 -05:00
Robert Sørlie 8ae50a140a add missing files to c::b project 2013-09-01 23:02:13 +02:00
Steven Wu 8e22e8c72c Guns now have a pierce stat, energy vfx no longer dangerous 2013-09-01 13:44:20 -07:00
Robert Sørlie bafcf07143 Allow escape from skill wish menu 2013-09-01 22:42:25 +02:00
fnord f8e6703db0 skill cheat: 'q' and 'esc' now work, but no hotkeys 2013-09-01 15:27:20 -05:00
fnord 55c262612b crafting: make 'e' not reset your place, reducing user-rage by over 9000 rage points 2013-09-01 15:11:15 -05:00
Kevin Granade a4621643e0 Typo fix. 2013-09-01 15:10:27 -05:00
Kevin Granade 4f4d2fa38a Merge remote-tracking branch 'dda/pr/2795' into dda-master 2013-09-01 14:47:17 -05:00
Kevin Granade eb20b7146c Merge remote-tracking branch 'dda/pr/2789' into dda-master
Conflicts:
	game.cpp
2013-09-01 14:46:55 -05:00
Kevin Granade f569de691c Merge remote-tracking branch 'dda/pr/2797' into dda-master 2013-09-01 14:42:20 -05:00
Steven Wu e7f0c04d17 Changed UPS drain behavior, some balancing
* added USE_UPS_20 and USE_UPS_40 flags, which causes weapons to drain 20/12
and 40/24 UPS power per shot, respectively
* laser weapons now drain more UPS power (20/12 for pistols 40/24 for rifle)
* NO_AMMO and USE_UPS now both work correctly with burst-fire
* UPS energy drain now occurs inside the "shots" loop of game::fire in order
to drain the right amount of power during burst-fire
2013-09-01 12:27:30 -07:00
Robert Sørlie a60b5a1a35 uptodate titlebar version for tile build 2013-09-01 21:15:08 +02:00
Kevin Granade d957b5dec9 Trim various bits of dead code. 2013-09-01 14:01:32 -05:00
Livingstone 377ab12ff9 Fixing astyle-related oopsies 2013-09-01 21:02:16 +03:00
Steven Wu 8f6b77644f bio_laser now uses same fake ammo as v29 2013-09-01 10:47:29 -07:00
Livingstone f76749055a Astyle knife 2013-09-01 20:44:59 +03:00
Livingstone 9e80384202 Astyle valid fabric 2013-09-01 20:43:31 +03:00
Livingstone c7a0cba98e Astyle item_inscription 2013-09-01 20:42:23 +03:00
Kevin Granade 21e76f9d63 Merge save versioning and jsonizing some game save stuff. 2013-09-01 12:39:50 -05:00
Livingstone 1a723a5a60 Allow cauterization 2013-09-01 20:10:53 +03:00
Steven Wu c1c2f6aec0 Sounds, ammoless weapons, tweaks
* added NO_AMMO flag for weapons, and tweaked weapon numbers accordingly
* laser rifle, v29, and homemade v29 now use UPS but no ammo
* fusion gun now uses UPS as well as fusion packs
* tweaks to laserbeam effect
2013-09-01 09:44:50 -07:00
uzername 6c3b2d68f2 Military bunkers are surrounded by chainlink fence and have guards booth near near it 2013-09-01 19:00:07 +03:00
fnord bc5efc46a8 remove unimplemented function 2013-09-01 10:32:03 -05:00
OzoneH3 b6d311d507 Changed display to be more readable with longer item names. 2013-09-01 15:44:30 +02:00
Steven Wu 71874c3cc1 Some energy weapons changes
* Weapons now have an ammo_effects field in the JSON, all effects in that
field will be added to ammunition fired from that weapon
* Added plasma trail effect to plasma guns
2013-09-01 06:20:00 -07:00
fnord d0d768735f sync to upstream 2013-09-01 04:54:18 -05:00
OzoneH3 7121fbd1b9 Group the same items in List items, navigate through them with the left/right arrow keys. 2013-09-01 11:41:09 +02:00
fnord 1c13aa4d64 Features not present upstream: remove 2013-09-01 03:55:08 -05:00
fnord d118ba3fd4 patch related build errors: really fixed this time 2013-09-01 03:50:26 -05:00
fnord 1f63d33d5f Fix patch mistakes 2013-09-01 03:18:06 -05:00
fnord 801ae04e94 Fix patch mistakes 2013-09-01 03:14:44 -05:00
fnord 90d5c37612 game::serialize: cleanup 2013-09-01 03:01:31 -05:00
fnord 41cbda18c5 disable features not present in upstream 2013-09-01 02:57:08 -05:00
fnord b6809e6692 item::save_info: save 1 line json-serialized chunk instead of serialized stringsteam hairball
item::load_info: autodetect appropriate format: if it's json, parse as such
2013-09-01 02:55:23 -05:00
fnord 63dbf54a07 Cleanup 2013-09-01 02:54:36 -05:00
fnord f62f54cf9f Reshuffle / optimize pico* helper funcs 2013-09-01 02:47:27 -05:00
Kevin Granade 92d912aeb9 Revert format string adjustment in lieu of a more comprehensive fix. 2013-09-01 00:42:55 -05:00
Kevin Granade 3f09689821 Merge character creation display fix. 2013-09-01 00:37:57 -05:00
Kevin Granade f569d714bb Nuke some accidentally merged debug messages. 2013-09-01 00:35:24 -05:00
Rivet-the-Zombie 6e1a154256 Changes senior citizen startup gear.
Since you already start with glasses if you need them, the bifocals were
pretty useless. Also this lets us show off the new pocket watch item!
2013-09-01 00:31:58 -05:00
Kevin Granade 7a2f59e4ad Merge Multudinous Mendings. 2013-09-01 00:15:18 -05:00
Greg McNew 29e19246b9 Sort skills by name. 2013-08-31 22:44:24 -05:00
Kevin Granade 4d0754dc49 Second attempt at fixing infinite loop when mapgen can't find anywhere to put a staircase. 2013-08-31 21:43:55 -05:00
Kevin Granade 52fd4029e2 Second attempt at fixing infinite loop when mapgen can't find anywhere to put a staircase. 2013-08-31 21:39:31 -05:00
Ian Strachan cb60d5c9b5 Fixed being able to drain water from vehicles when you shouldn't have been able to. 2013-08-31 22:27:18 -04:00
Livingstone 2ac4457f73 Gut iuse::knife 2013-09-01 05:17:37 +03:00
Livingstone 19e30edcbe Gut iuse::scissors 2013-09-01 05:17:36 +03:00
Greg McNew 088b326853 Character creation screen improvements.
Professions are now sorted by name (with "Unemployed" at the top), and
scrolling now wraps-around for Professions and Skills.
2013-08-31 17:42:04 -05:00
Kevin Granade af441ad978 Merge vehicle collision rewrite. 2013-08-31 17:29:05 -05:00
GalenEvil b0d147cb0e Adds option to switch between tile and ttf font rendering to SDL builds. 2013-08-31 16:13:03 -05:00
Greg McNew 73a39e315a Reduce map filesize with run-length encoding.
This breaks save compatibility.
2013-08-31 15:33:24 -05:00
Kevin Granade e035ca6bc9 Move CONTRIBUTING.ms and LICENSE.txt back to root of repository. 2013-08-31 14:59:42 -05:00
Kevin Granade 8ce0854f4d JSON syntax fix. 2013-08-31 14:45:27 -05:00
Kevin Granade 4af1031bb1 Fix caseless ammo reference. 2013-08-31 14:23:54 -05:00
Kevin Granade 63cddea446 Merge sports equipment. 2013-08-31 14:22:07 -05:00
adrianbcorman f988507d7e Fix 5.7mm guns producing nones instead of casings. 2013-08-31 15:13:16 -04:00
Kevin Granade 0f77631e6b Merge some bugfixes. 2013-08-31 10:28:58 -05:00
OzoneH3 f39fee294e List item improvements Step 1 2013-08-31 14:52:29 +02:00
Greg McNew 19ceda0b79 Fix remove_zombie() for dead zombies.
mon_at() returns -1 if the zombie exists in the map but is dead. This was
causing a dead zombie's z_at entry to persist (and then point at a
different, still-living zombie).
2013-08-31 04:03:34 -05:00
Rivet-the-Zombie 794a34fe42 Fixes missing spawns for some of the caseless weapons. 2013-08-31 03:35:13 -05:00
Christian Buskirk 0f292837a9 Merge PR #2764 - Smokin fixes 2013-08-31 01:34:43 -07:00
Christian Buskirk 3468f7b535 Merge PR #2764 - City size 2013-08-31 01:34:19 -07:00
Greg McNew 3cb032ccbd Fix mon_at cache problems (#2756, #2759). 2013-08-31 02:57:32 -05:00
mattkelr f98743e9a5 fix osx build, revise instructions. 2013-08-31 01:56:47 -04:00
Rivet-the-Zombie ea4398fed2 Adding sports jersey. 2013-08-31 00:49:19 -05:00
GalenEvil f24fa1c6d7 Merge branch 'pr/2767' 2013-08-31 00:06:10 -05:00
Octav Sandulescu 50a4a344ed Tiles builds need the gfx dir 2013-08-31 05:58:40 +01:00
Livingstone e571d6ff1e Optional query is optional (soldering) 2013-08-31 07:53:03 +03:00
veryinky 9f927d1188 Chargen fixes 2013-08-31 00:33:33 -04:00
Kevin Granade cd4c4284f8 Add an option to adjust city size. 2013-08-30 23:10:44 -05:00
Rivet-the-Zombie e50f075279 Hockey stick! 2013-08-30 22:33:40 -05:00
Rivet-the-Zombie 8df9d59c9a Hockey Mask! 2013-08-30 22:27:57 -05:00
Rivet-the-Zombie 3d1c00ec58 Giving rolling papers to the professions that start with weed.
Cause that's just cruel to give them a bag of grass but no means of
smoking it.
2013-08-30 21:57:32 -05:00
Kevin Granade 485364351f Merge piles of content.
Conflicts:
	data/raw/item_groups.json
2013-08-30 21:00:14 -05:00
Kevin Granade 17cf67164f Merge heavy caching improvements and view shifting when targeting an out-of-sight item. 2013-08-30 20:14:53 -05:00
Kevin Granade 0d849bffed Merge some windows-specific enhancements. 2013-08-30 20:11:04 -05:00
Kevin Granade c667ea33a6 Merge various bugfixes. 2013-08-30 19:10:01 -05:00
Robert Sørlie 9a9acd068d Fixed radio scan causing game lockup
Caused by a faulty word_rewrap()
2013-08-31 01:58:21 +02:00
GalenEvil 8494fcc31e Fixes lookaround bug when view offset is non-zero.
Pre-Fix:
* During lookaround at view location tile displays "You (<player name>)"
* During lookaround at player location tile displays normal terrain text

Post-Fix
* During lookaround at view location tile displays normal terrain text
* During lookaround at player location tile displays "You (<player name>)"
2013-08-30 17:37:31 -05:00
GalenEvil 9f94482a57 Merge branch 'pr/2752'
* Fix for offset view showing lookaround cursor
2013-08-30 17:07:12 -05:00
fnord aeb7c093f3 Actually include a required header 2013-08-30 14:19:32 -05:00
fnord ba80f26b24 Monsters now live on your drive platter as json strings. 2013-08-30 13:53:05 -05:00
OzoneH3 f84949ca67 Fixed trail drawing. 2013-08-30 20:17:02 +02:00
Ian Strachan df6ce817df Added small and large quivers. 2013-08-30 13:45:22 -04:00
OzoneH3 6ce52ef433 Merge branch 'master' of https://github.com/CleverRaven/Cataclysm-DDA into list_items 2013-08-30 16:42:35 +02:00
OzoneH3 700ce9cb2e Option to shift the list item view toward the selected item if it is outside of your current viewport. 2013-08-30 16:41:56 +02:00
Robert Sørlie a3382b53c7 Pouring liquids on water dilutes it the liquid away 2013-08-30 16:41:22 +02:00
Robert Sørlie c72ca42620 restyled: handle_liquid() 2013-08-30 16:38:44 +02:00
fnord 77975ac6a9 Remove #includes for not included stuff 2013-08-30 09:07:08 -05:00
Robert Sørlie 2a0c4f8dde Added SDL targets to Code::Blocks project
and made it use same warning-flags as Makefile
2013-08-30 15:36:53 +02:00
Robert Sørlie 2c0c77c8e1 fixed fontlist.txt containing unoptimal filenames
also added fontlist.txt to .gitignore
2013-08-30 15:31:56 +02:00
fnord 549ddc1774 game.sav versioning and sanity
* game::save, game::load: moved iostream stuff to gamesave.cpp

* seperated misc / weather / location / killcount / player chunks into
  individual lines, and parse on a line-by-line basis. This makes .sav more
  resistent to complete breakage from adding a monster, or even a player data
  variable ( if those variables are added to the end of the variable hairball ).

* Implement versioning support; if a major change is made to the format, it is
  possible to load previous save versions.

All of these changes will allow easier conversion of individual classes to json
  serialization.
2013-08-30 07:43:50 -05:00
fuchs87 445d4ddadc Merge branch 'master' of https://github.com/CleverRaven/Cataclysm-DDA into Vehicle_Collision 2013-08-30 13:39:30 +02:00
fuchs87 4f7379533e -balancing update for vehicle collisions 2013-08-30 13:13:53 +02:00
Greg McNew 972aa0c0cb Sort traits by name. 2013-08-30 04:57:44 -05:00
OzoneH3 e97318e84e Tiles: Dont display look around cursor if the view is shifted.
Removed compiler Warnings. (Mainly unused variables and missing return values)
2013-08-30 11:00:33 +02:00
Rivet-the-Zombie e03d58d3aa Helmet fix. 2013-08-30 03:48:41 -05:00
Rivet-the-Zombie 60ba8365d3 Football armor! 2013-08-30 03:39:13 -05:00
Greg McNew 38f5819e11 Calculate player sight modifiers less often. 2013-08-30 03:24:02 -05:00
Rivet-the-Zombie 49552904de Hiking boots! 2013-08-30 03:11:57 -05:00
Fergus Dall 09fd949d93 Make gold conduct electroshock attacks 2013-08-30 16:53:37 +09:30
Octav Sandulescu e331b4be5a Merge pull request #2742 from narc0tiq/win32-tiles-libs
Add libjpeg and libpng to the Windows SDL LDFLAGS.
2013-08-30 00:20:55 -07:00
Octav Sandulescu f9ed3a99d3 Add libjpeg and libpng to the Windows SDL LDFLAGS.
Theoretically, libjpeg shouldn't be necessary or used, but it needs to
be present at compile time on the Jenkins. I strongly suggest someone
look into how to get rid of that dependency without compiling a custom
sdl_image.
2013-08-30 08:13:52 +01:00
Rivet-the-Zombie 625c5b7754 Tac gloves varsize tag. 2013-08-30 01:53:23 -05:00
OzoneH3 fc43ef6767 Merge branch 'master' of https://github.com/CleverRaven/Cataclysm-DDA 2013-08-30 08:53:05 +02:00
Rivet-the-Zombie a79eb809dc Helmet liner. 2013-08-30 01:37:04 -05:00
Rivet-the-Zombie 6d147c59e3 Coverage update. 2013-08-30 01:31:29 -05:00
Rivet-the-Zombie 3e7b4bea18 Recipe integration. 2013-08-30 01:27:19 -05:00
Rivet-the-Zombie c1b5820feb Item spawns and all that entails. 2013-08-30 01:23:55 -05:00
Rivet-the-Zombie 523d6a7db0 Integrating new clothes into professions.
Three new professions too.
2013-08-30 01:13:00 -05:00
Rivet-the-Zombie 4f947db75b clownshoes
"id" : "clownshoes", IS THE BEST ID NAME EVER
2013-08-30 00:08:42 -05:00
Greg McNew f1ee4c3b92 Precalculate friendly monsters for monster::plan. 2013-08-29 23:25:57 -05:00
Rivet-the-Zombie 2712b20dea Merge branch 'A-few-new-clothes' of https://github.com/Rivet-the-Zombie/Cataclysm-DDA into A-few-new-clothes 2013-08-29 23:25:39 -05:00
Rivet-the-Zombie e7b2d9597a First pass.
Also added waterproof tag to several pairs of footwear that really
should have it.
2013-08-29 23:24:37 -05:00
Rivet-the-Zombie 8d9464827a More clothing first pass. 2013-08-29 23:23:29 -05:00
Kevin Granade 1c8738baf2 Slow down rate at which wood burns for more controllable fires. 2013-08-29 23:20:46 -05:00
Greg McNew 53d684bd7c Performance tweaks. 2013-08-29 22:53:06 -05:00
Kevin Granade f5ca569d36 Merge sealed pickle jars. 2013-08-29 22:11:58 -05:00
Kevin Granade 446624942e Init some critical members in ctor. 2013-08-29 21:44:58 -05:00
GalenEvil ee61700a4a added parenths to mon location for call to draw_hit_mon(...) 2013-08-29 21:30:29 -05:00
GalenEvil 86821f7928 Merge branch 'TileSupport'
Conflicts:
	animation_curses.cpp
	animation_tiles.cpp
	bionics.cpp
	cata_tiles.cpp
	cata_tiles.h
	game.cpp
	itypedef.cpp
	ranged.cpp
	sdltiles.cpp
2013-08-29 21:29:34 -05:00
GalenEvil 1a9f3ca970 Update Windows C::B Project file 2013-08-29 21:10:50 -05:00
Rivet-the-Zombie 560d1bce20 Adding salt water as an option in recipes for pickles. 2013-08-29 21:00:54 -05:00
GalenEvil 48108ca79f Merge in latest changes 2013-08-29 20:56:30 -05:00
Rivet-the-Zombie 839fb9d697 Bringing pickled vegetable nutrition in line with other vegetable things. 2013-08-29 20:53:13 -05:00
GalenEvil b2fd435ba3 Added check for SDL_TILES definition
Added functionality for initializing and displaying tilesets
Added Tile support access of catacurse functions
Added hardcoded keys for displayables and probably some non-displayables
gfx/... -- Added tilesheet and tile json file for low-level testing. Not fully functional
Changed #elseif to #elif
Changed interval, removed whitespace
Merge branch 'pr/1'
Changed default "fg"/"bg" value to -1 to prevent it from displaying the 0 index tile for no reason
Changed tile with id "lighting_hidden": "fg" changed to 2 to test transparency -- Test succeeded
Added foreground for "lighting_hidden" tile, red transparency with black '?' character
Merged pr #3
Fixed conflict with commit made just a moment ago by me.

Conflicts:
	gfx/tinytile.png
added variables to keep track of where the center of screen is located
Added:
* Wall tile rotation support
* TODO listings in Player.cpp and Ranged.cpp to change hit_animation call to work with tiles
* New tiles to tinytile.png - Unshaded walls, stairs (up and down)
* Multitile keys and associated enum
* Modifications to JSON to work with new tiles
Added:
* a new value to terrain_names to bring it up to speed with the mainline's ter_id enum values
* removed multiple definitions of jar_kompot x2
* changed OPTIONS[...] calls to work with strings instead of enum values
Added:
* Different animation routines between curses and tileset versions
* A few extra definitions, explosion tiles, turned all vehicle parts in definitions to rotates: true
* Removed static keyword from cata_tiles *tilecontext declaration
* Ranged.cpp : draws bullets using appropriate code
* Definitions for new animation functions implemented in animation_tiles and animation_curses source files
* Moved animated sections for explosions and shrapnel to functions implemented in animation_tiles and animation_curses source files
* Added animation coupling and functions + definitions to cata_tiles source and header
Added:
* A few more tiles, and animation_hit definition
* Hit animation function definitions and addition to drawing system.
* Separated hit animation drawing between curses and tile supported versions
* Alterations to player.cpp, game.cpp, and ranged.cpp to conform to hit animation abstraction functions
Added:
* Line drawing mechanism for targeting and draw_trail_to_square depending on curses or tile support versions
* A few new tile definitions
* Changed tile json and tileset image loading from hardcoded to file read.
* "data/gfx.txt" file for loading tileset and tile json information
Changed mainwin creation ncols value from VIEWPORT_Y dependent to VIEWPORT_X dependent. Might fix the weird issue that Kevin Granade noticed on Linux. Cannot test myself as I do not have Linux OS still.
Added:
* weather animation functions
* tiles for the animations to use
* structure in weather.h to contain the weather data easily
* json additions to make use of the new tiles and animations
Merge branch 'pr/5'
Makes invisible things turn into hot pink tiles with a question mark on them (temporary fix until I get font glyphs drawing in their place)
Hopeful fix to weather animations being slow. Seems to work on my build, but may not have fixed the overall problem.
Rotation changes to some locations
Made "unknown" tile rotateable so that vehicles are testable w/o actual tiles. Makes some terrain areas look weird though w/o tiles since they show up as rotated '?'s
Cache rotations so they are not created on the fly all the time.
removed extra draw_explosion definition
Fixed problem in tools.json that was reintroduced during merge attempt
Added a few extra tiles
Fix for tinytile.png missing layer of tiles
change to "f_bench" tile id to give it multitile support for edge and end-piece tiles
Made zombie tile, removed unused wall tiles, added ref to mon_zombie_... entries in json pointing to zombie tile.
2013-08-29 20:51:31 -05:00
Rivet-the-Zombie 807d87ee43 Recipe time adjustment. 2013-08-29 20:45:34 -05:00
Rivet-the-Zombie 724af77f53 De-Jar-ification for victory! 2013-08-29 20:43:48 -05:00
Kevin Granade b463e15e24 Merge big guns and explosives.
Conflicts:
	data/raw/item_groups.json
2013-08-29 20:36:38 -05:00
Kevin Granade cce08da868 Merge pull request #2738 from Rivet-the-Zombie/Capitalization-Fixes
Fixes a bunch of capitalization errors.
2013-08-29 17:56:43 -07:00
Kevin Granade 819a96473d Merge today's awesome content. 2013-08-29 19:47:16 -05:00
Rivet-the-Zombie 62a94cd8bf Putting the G back in Ganz & etc. 2013-08-29 19:44:41 -05:00
Rivet-the-Zombie 26de7d8a1e Restored diacritic mark to Ō-yoroi. 2013-08-29 19:19:15 -05:00
GalenEvil f67148aaa1 Added check for SDL_TILES definition
Added functionality for initializing and displaying tilesets
Added Tile support access of catacurse functions
Added hardcoded keys for displayables and probably some non-displayables
gfx/... -- Added tilesheet and tile json file for low-level testing. Not fully functional
Changed #elseif to #elif
Changed interval, removed whitespace
Merge branch 'pr/1'
Changed default "fg"/"bg" value to -1 to prevent it from displaying the 0 index tile for no reason
Changed tile with id "lighting_hidden": "fg" changed to 2 to test transparency -- Test succeeded
Added foreground for "lighting_hidden" tile, red transparency with black '?' character
Merged pr #3
Fixed conflict with commit made just a moment ago by me.

Conflicts:
	gfx/tinytile.png
added variables to keep track of where the center of screen is located
Added:
* Wall tile rotation support
* TODO listings in Player.cpp and Ranged.cpp to change hit_animation call to work with tiles
* New tiles to tinytile.png - Unshaded walls, stairs (up and down)
* Multitile keys and associated enum
* Modifications to JSON to work with new tiles
Added:
* a new value to terrain_names to bring it up to speed with the mainline's ter_id enum values
* removed multiple definitions of jar_kompot x2
* changed OPTIONS[...] calls to work with strings instead of enum values
Added:
* Different animation routines between curses and tileset versions
* A few extra definitions, explosion tiles, turned all vehicle parts in definitions to rotates: true
* Removed static keyword from cata_tiles *tilecontext declaration
* Ranged.cpp : draws bullets using appropriate code
* Definitions for new animation functions implemented in animation_tiles and animation_curses source files
* Moved animated sections for explosions and shrapnel to functions implemented in animation_tiles and animation_curses source files
* Added animation coupling and functions + definitions to cata_tiles source and header
Added:
* A few more tiles, and animation_hit definition
* Hit animation function definitions and addition to drawing system.
* Separated hit animation drawing between curses and tile supported versions
* Alterations to player.cpp, game.cpp, and ranged.cpp to conform to hit animation abstraction functions
Added:
* Line drawing mechanism for targeting and draw_trail_to_square depending on curses or tile support versions
* A few new tile definitions
* Changed tile json and tileset image loading from hardcoded to file read.
* "data/gfx.txt" file for loading tileset and tile json information
Changed mainwin creation ncols value from VIEWPORT_Y dependent to VIEWPORT_X dependent. Might fix the weird issue that Kevin Granade noticed on Linux. Cannot test myself as I do not have Linux OS still.
Added:
* weather animation functions
* tiles for the animations to use
* structure in weather.h to contain the weather data easily
* json additions to make use of the new tiles and animations
Merge branch 'pr/5'
Makes invisible things turn into hot pink tiles with a question mark on them (temporary fix until I get font glyphs drawing in their place)
Hopeful fix to weather animations being slow. Seems to work on my build, but may not have fixed the overall problem.
Rotation changes to some locations
Made "unknown" tile rotateable so that vehicles are testable w/o actual tiles. Makes some terrain areas look weird though w/o tiles since they show up as rotated '?'s
Cache rotations so they are not created on the fly all the time.
removed extra draw_explosion definition
Fixed problem in tools.json that was reintroduced during merge attempt
Added a few extra tiles
Fix for tinytile.png missing layer of tiles
change to "f_bench" tile id to give it multitile support for edge and end-piece tiles
Made zombie tile, removed unused wall tiles, added ref to mon_zombie_... entries in json pointing to zombie tile.
2013-08-29 19:17:54 -05:00
Ian Strachan 13de804b52 Increased acid resistance of gold. 2013-08-29 20:02:48 -04:00
Kevin Granade 85c2755658 Merge some i18n fixes and a monster cache sync fix.
Conflicts:
	game.cpp
2013-08-29 18:45:57 -05:00
Christian Buskirk a671796956 Merge PR #2706 - Re-add mouth encumbrance penalty 2013-08-29 16:29:12 -07:00
OzoneH3 2594d68cb6 Merge branch 'master' of https://github.com/CleverRaven/Cataclysm-DDA 2013-08-29 23:56:22 +02:00
Rivet-the-Zombie e623911528 Nord sword word! 2013-08-29 16:55:13 -05:00
Rivet-the-Zombie 788a167090 Fixes a bunch of capitalization errors. 2013-08-29 16:54:35 -05:00
Robert Sørlie d227b45b27 fixed z_at[] cache getting out of synch on load
using Elembis's oneline compression :]
2013-08-29 23:36:37 +02:00
Ian Strachan 4a114c0a40 Added gold as a material. Fixes #2148 2013-08-29 15:10:51 -04:00
Ian Strachan da87350f4e Fix attributing explosion to wrong part name in vehicles. 2013-08-29 14:38:37 -04:00
Ian Strachan 70ca63db7a Add a whole bunch of memorial statements. Also show last 20 messages instead of last 10. 2013-08-29 14:28:22 -04:00
uzername 4c4b25950e Books are now spawned in study room 2013-08-29 16:37:44 +03:00
uzername 0b29053e75 Some houses are spawned with study rooms 2013-08-29 15:55:35 +03:00
uzername 46509b3be8 Added check for backyard spawning. Houses with backyards don_t spawn wery often now 2013-08-29 13:00:43 +03:00
Rivet-the-Zombie a7a8e00b30 Recipe to make your own welding goggles. 2013-08-29 03:43:40 -05:00
OzoneH3 429bfbd062 Merge branch 'master' of https://github.com/CleverRaven/Cataclysm-DDA 2013-08-29 09:32:36 +02:00
GalenEvil af1ad37c3c Made zombie tile, removed unused wall tiles, added ref to mon_zombie_... entries in json pointing to zombie tile. 2013-08-29 02:11:57 -05:00
Kevin Granade 985dac33f1 Prevent lockup due to inability to find a place to stash stairs. 2013-08-28 23:27:50 -05:00
Kevin Granade 9c3e8aadb8 Merge monster tracking refactor and performance enhancements.
Conflicts:
	disease.cpp
	wish.cpp
2013-08-28 23:27:21 -05:00
GalenEvil a5d3ea11a5 change to "f_bench" tile id to give it multitile support for edge and end-piece tiles 2013-08-28 22:20:54 -05:00
GalenEvil 76eeca6f09 Fix for tinytile.png missing layer of tiles 2013-08-28 22:17:20 -05:00
Tommy 31643178ce Some minor i18n fixes for veh_interact.cpp. Major problems remain. 2013-08-29 15:14:06 +12:00
GalenEvil bbd1affe1c removed extra draw_explosion definition
Fixed problem in tools.json that was reintroduced during merge attempt
Added a few extra tiles
2013-08-28 22:04:03 -05:00
Rivet-the-Zombie c26d474fe7 Prevents using more than one type of optics at a time, and prevents using suppressor with ported barrel. 2013-08-28 21:56:31 -05:00
Kevin Granade cbc1998343 Make the compiler happy with a virtual destructor. 2013-08-28 21:30:10 -05:00
Kevin Granade c82d8b7716 Merge hefty wish menu refactor. 2013-08-28 21:03:06 -05:00
Rivet-the-Zombie 368ccbf597 Added to lists. 2013-08-28 20:55:10 -05:00
Kevin Granade c6bfc7ae3f Merge sort_armor rewrite, backyards, and bouldering fix.
Conflicts:
	player.cpp
2013-08-28 20:40:12 -05:00
Rivet-the-Zombie f1eff1155e Adding gun_crossbow to list. 2013-08-28 20:25:57 -05:00
Tommy c7d0e76024 Improve translatability of vehicle part display. 2013-08-29 13:14:37 +12:00
Christian Buskirk 2d5478a435 Lowered the amount wood boosts a fire. 2013-08-28 18:04:55 -07:00
Christian Buskirk 292bc55fe4 Set minimum smoke duration needed for coughing
Also cleaned up some logic in the cough function.
2013-08-28 18:04:32 -07:00
Tommy 546fe82046 Use translated vehicle part names. 2013-08-29 12:32:12 +12:00
Christian Buskirk 53eccaa7b5 Fix coughing message 2013-08-28 17:06:12 -07:00
Tommy bfc5fd4844 Mark a missed string. 2013-08-29 12:05:42 +12:00
Kevin Granade bb9c58c8fe Merge bugfixes. 2013-08-28 18:47:33 -05:00
gmcnew 819d425eca Fix #2515: monsters get stuck forever in rubble. 2013-08-28 23:31:27 +00:00
GalenEvil d86b07f05c Merge branch 'origin/Tile_Support' 2013-08-28 17:58:55 -05:00
GalenEvil 04d0ece2b6 Bring Tile_Support in line with DDA master 2013-08-28 17:58:41 -05:00
GalenEvil 17c68cb06e Bring Tile_Support inline with CDDA Mainline 2013-08-28 17:50:32 -05:00
GalenEvil ac3ff00225 Bring repo master into line with CDDA master 2013-08-28 17:41:33 -05:00
Rivet-the-Zombie a066733254 Changed it so that only one accessory weapon gunmod can be used on a gun at a time. 2013-08-28 17:17:06 -05:00
fuchs87 623c2ba035 Fixed volume-limit for vehicles 2013-08-28 22:40:51 +02:00
fuchs87 4b49b93c36 Merge branch 'master' of https://github.com/CleverRaven/Cataclysm-DDA into Vehicle_Collision 2013-08-28 20:30:11 +02:00
fnord 5f085f3606 wish(mutate|item|monster): add runtime-persistent selection states 2013-08-28 13:27:17 -05:00
fnord fa0b868c8b Wish mutate rewrite: Now with unmutation and coloration of current traits 2013-08-28 13:21:43 -05:00
fuchs87 9a64c64c8a -damage for vehicle-vehicle collisions
-changed the equations for vehicle-vehicle collisions (partially elastic collision)
2013-08-28 20:16:39 +02:00
cib 1c2a595ed3 Adjusted jam spoils_in
I somehow thought it was days, so I had set it pretty low. Fixed it to last a lot longer(1.5x for the merely cooked version, 4x for the jam which was made durable with sugar).
2013-08-28 19:14:52 +02:00
Ian Strachan 985d563dfc Fix being unable to wear helmet then hat even though hat then helmet works. Also fixed a pluralization. 2013-08-28 12:18:42 -04:00
Robert Sørlie 4f6d05add5 sort_armor() rewrite - part 1
- rewrote sort_armor()
- allowed to rearrange foot- and headwear (because OCD)
- fixed catacurses wborder()
- added ncurses *line() functions to catacurses
2013-08-28 17:47:25 +02:00
fnord 1c6d2338e5 checknpc: Less silly method of text display 2013-08-28 09:22:56 -05:00
fnord b77e324b7f check npc: Made selectable entries more obvious 2013-08-28 08:28:44 -05:00
fnord 6a332ec82f Reapply styling and bugfix to skill mod code 2013-08-28 08:13:33 -05:00
uzername 46a553ba79 Nice Backyard 2013-08-28 15:51:26 +03:00
OzoneH3 b4cbe18d80 Merge branch 'master' of https://github.com/CleverRaven/Cataclysm-DDA 2013-08-28 14:48:55 +02:00
fnord 07dc753c88 Check NPC: allows skill modification. Skill modification made function and moved to wish.cpp 2013-08-28 07:48:24 -05:00
OzoneH3 5d5d7d4383 Check if a loaded int/float option is between its min and max, otherwise set to default. 2013-08-28 14:39:36 +02:00
fnord 7246431081 Eliminate sneaky unused variables 2013-08-28 07:38:12 -05:00
fnord 82b43e82ea advanced_inv.cpp: Big comment of unrequired includes: nuke 2013-08-28 07:07:13 -05:00
fnord 10e766b3dd string_input_win: Correct left/right key usage in unlooped mode.
This is why I'm working on making it a class
2013-08-28 07:03:56 -05:00
fnord c61390b33e Unused variables. Destroy them. 2013-08-28 06:42:57 -05:00
fnord ee8ee6517e advanced_inv: quick-filtering, move to advanced_inv.cpp and into own class.
Further refactoring is pending, however the added functionality is finished.
2013-08-28 06:13:16 -05:00
fnord d2bbbd41cd wish, monster_wish: Rewrite using uimenu which now provides a less
cumbersome means of searching
2013-08-28 06:05:09 -05:00
fnord 3f625c658e uistate: runtime states for wish selection, and advanced inventory filters 2013-08-28 06:04:24 -05:00
fnord d803188c76 uimenu: add generic callback functionality, quick filtering with '/', move into ui_container abstract base class, document functions.
* Filtering is case insensitive, find as you type. using the up/down pageup/pagedown keys while typing will scroll as expected
* uimenu_callback has triggers for highlighted items: select(entry_number, menu_ptr), keypresses: key(key, entry_number, menu_ptr), and refresh.
  Documentation and examples can be found in ui.h and wish.cpp
2013-08-28 05:58:01 -05:00
fnord 2b6eb3f195 add function string_input_window to output.h 2013-08-28 05:57:22 -05:00
fnord 296adcf2a9 string_input_popup: seperate the popup window generation from string
input functionality
2013-08-28 05:07:17 -05:00
Rivet-the-Zombie 185b2c1cab Adding M202 FLASH, masterkey gunmod, and homebrew 40mm gunmod. 2013-08-28 04:51:31 -05:00
Rivet-the-Zombie 5af215ec7e Adding M3 recoilless rocket launcher thingy! 2013-08-28 01:57:21 -05:00
Greg McNew a36f4e3c7e Use a bitset for mtype::has_flag. 2013-08-28 01:12:07 -05:00
Greg McNew 768f6280a6 Const strings for vehicle methods. 2013-08-28 00:56:28 -05:00
Greg McNew 91f5033e14 Clean up monster::plan(). 2013-08-28 00:03:24 -05:00
Ian Strachan 022aa2ba55 Fix Rivtech guns that spawn in houses/behind counters being spawned with ERROR: Item Missing instead of their matching ammo 2013-08-28 00:22:34 -04:00
Greg McNew 5f12cd7255 Make player::has_trait() faster. 2013-08-27 23:19:44 -05:00
Greg McNew 96400aac38 Fix z_at indices when removing a zombie. 2013-08-27 23:15:54 -05:00
GalenEvil 8c846f021c Cache rotations so they are not created on the fly all the time. 2013-08-27 22:42:03 -05:00
Kevin Granade 37d29c47d3 Replace dirt in forests with grass_or_dirt for prittier forests. 2013-08-27 22:25:29 -05:00
Greg McNew e50ad3fce3 Fix more g->z accesses so the z_at map is used. 2013-08-27 22:03:28 -05:00
Kevin Granade 79e2f85324 Re-add mouth encumbrance to move speed calculations. 2013-08-27 21:38:13 -05:00
GalenEvil c90cb41d87 Rotation changes to some locations
Made "unknown" tile rotateable so that vehicles are testable w/o actual tiles. Makes some terrain areas look weird though w/o tiles since they show up as rotated '?'s
2013-08-27 21:38:00 -05:00
Kevin Granade 941f114e38 Typos. 2013-08-27 20:54:20 -05:00
Kevin Granade 3a126c3807 Remove an unused variable. 2013-08-27 20:54:20 -05:00
Kevin Granade 628b7b78b1 Merge pull request #2675 from 1942rob/wingdi-version
Window title version string.
2013-08-27 18:42:42 -07:00
Kevin Granade 7a1034a36c Remove an unused variable. 2013-08-27 20:41:23 -05:00
Kevin Granade 8c8aab3694 Fully parenthesize a statement. 2013-08-27 20:41:07 -05:00
Kevin Granade be8feb1b8a Merge disease handling refactor and extensive drug effect and description adjustment. 2013-08-27 20:17:29 -05:00
Kevin Granade c9b71f21be Syntax fix. 2013-08-27 19:42:28 -05:00
Kevin Granade 31b2343c60 Merge today's pile of content. 2013-08-27 19:28:39 -05:00
Kevin Granade f3cd0cc790 Today's batch of bugfixes. 2013-08-27 19:12:47 -05:00
StrangerState 4ab8e70926 Adjustments to usage effects 2013-08-27 19:37:25 -04:00
Ian Strachan 8a18a09806 Fix partly-used ammo and food not dividing volume correctly. 2013-08-27 18:48:39 -04:00
GalenEvil fc7cc73d09 Makes invisible things turn into hot pink tiles with a question mark on them (temporary fix until I get font glyphs drawing in their place)
Hopeful fix to weather animations being slow. Seems to work on my build, but may not have fixed the overall problem.
2013-08-27 17:23:54 -05:00
Rivet-the-Zombie 5436a36696 Use refillable in preference to matches or disposable. 2013-08-27 15:27:05 -05:00
Rivet-the-Zombie 79b34560b0 Adjusted rarity. 2013-08-27 14:47:30 -05:00
Rivet-the-Zombie 2ac2ffcdf7 Nonspecific critters. 2013-08-27 14:42:30 -05:00
cib 970f438c86 Weighting for the types of shops that spawn.
Mostly implemented to increase amount of grocery stores by popular demand, but can also be used for other fine-tuning. This also opens up the possibility of spawning more stuff in a shop, but making it less common.
2013-08-27 21:00:38 +02:00
Rivet-the-Zombie e7835e542d Slightly less silly text fix. 2013-08-27 13:37:37 -05:00
Rivet-the-Zombie 541a8deab6 Fixes the tool belt and army top not spawning naturally. 2013-08-27 13:20:08 -05:00
NaturesWitness c54f5a0f1c Cotton hat recipe
In response to #2352
2013-08-27 13:03:30 -04:00
Ian Strachan 1f8280c5f2 Fix blood splatters/bile causing any terrain with items to show up as a red % 2013-08-27 12:53:52 -04:00
Ian Strachan 33bb2f316a Updating JSON_INFO to include information about vehicle_parts.json 2013-08-27 11:40:03 -04:00
StrangerState f528be8dab Moved hallucination state handling to new function. 2013-08-27 10:59:49 -04:00
Ian Strachan 7381458b3e Add brackets to fix the par1 union element detection. 2013-08-27 09:58:23 -04:00
StrangerState 9275296b77 Fix iuse::weed condition checking and add some flavor text. 2013-08-27 09:21:59 -04:00
StrangerState 71ca0fb674 Fix missing commas in tools.json file. 2013-08-27 08:11:26 -04:00
StrangerState 6d480bc812 Fix antibiotic failure rate. 2013-08-27 07:55:17 -04:00
StrangerState c7b380cc48 Replace missing item_groups and fix missing newline. 2013-08-27 07:20:30 -04:00
StrangerState a151a31cc9 fix messed up item_groups commit 2013-08-27 07:14:53 -04:00
StrangerState f7a4dd38b7 Update bionics.cpp and item_groups.json to current master 2013-08-27 07:08:12 -04:00
StrangerState 089fd55679 Edit vaccination description, make it cause some pain 2013-08-27 06:24:36 -04:00
StrangerState ca45913b1a Proofreading display names and item descriptions. 2013-08-27 06:03:33 -04:00
StrangerState 3992c955b3 Reduce nutrition value of hemp seed and restore missing "SEED" flag 2013-08-27 05:46:05 -04:00
StrangerState df7b8042f0 Added glass and wooden smoking pipes, edits to related item groups 2013-08-27 05:31:58 -04:00
StrangerState 203fe389ae Assorted edits related to diseaase and drug effects, added rolling paper 2013-08-27 05:00:10 -04:00
StrangerState 46d5eaa580 Disease.cpp reformatting, balance and realism tweaks 2013-08-27 04:58:19 -04:00
OzoneH3 8629274f3b Merge branch 'master' of https://github.com/CleverRaven/Cataclysm-DDA 2013-08-27 10:40:26 +02:00
OzoneH3 a68ca370ef Merge branch 'master' of https://github.com/OzoneH3/Cataclysm-DDA 2013-08-27 10:40:16 +02:00
Tommy 94f76df7cf Allow compile_mo.sh and merge_po.sh to work for individual languages. 2013-08-27 19:18:43 +12:00
Rivet-the-Zombie ed674bdf63 Added refillable lighter to the two recipes that use a lighter. 2013-08-27 02:05:43 -05:00
Greg McNew bdd69068dd Use a map to make mon_at() 144% faster. 2013-08-27 02:02:36 -05:00
Greg McNew 8a4999aafa Make monster::posx/posy private. 2013-08-27 02:02:35 -05:00
Greg McNew 1e7a974d20 Make g->z private; reduce mon_at() calls. 2013-08-27 02:00:07 -05:00
Rivet-the-Zombie f77782cf1b Makes 'improved iron sights' functional and slightly more common.
Super light and no volume, but only grants a tiny boost to a gun's
stats.
2013-08-27 01:38:25 -05:00
Rivet-the-Zombie ab3d280d50 Fixes some typos. 2013-08-27 00:43:44 -05:00
Ian Strachan afc2a3132c Declining to get items from a cargo area or take/drink water will now bring you to the vehicle examination screen. Fixes #2623 2013-08-27 00:18:03 -04:00
Greg McNew e32cac6dce Add recipe: 3 plastic bottles -> makeshift funnel. 2013-08-26 21:57:24 -05:00
Tommy 2720c803df Fix mouth encumberance message. 2013-08-27 14:30:35 +12:00
Rivet-the-Zombie 20b04cd5f3 Adds a refillable Zippo type lighter.
Fueled by gasoline. This also works with real Zippos, but it's not
anything I'd recommend you actually try doing at home unless you're
really tired of your eyebrows.
2013-08-26 21:29:19 -05:00
Kevin Granade 57876b4bc4 Merge mutation effecting wetness reaction, ammunition type selection persistence, and bionic and speech i18n cleanups. 2013-08-26 20:34:05 -05:00
Rivet-the-Zombie e6ff5b385b Adds vinegar to battery recipe.
If lemon juice can do it, why not vinegar?
Also fixes minor grammar issue in snippets file.
2013-08-26 20:16:10 -05:00
StrangerState cf0e1434b2 Further edits to drug descriptions, made hemp seeds edible 2013-08-26 21:01:23 -04:00
gmcnew b8ede93f07 Milk comes in plastic jugs. 2013-08-26 19:50:56 -05:00
gmcnew 1df1157d92 Makeshift funnel recipe now uses gallon jugs. 2013-08-26 19:46:25 -05:00
Tommy 52e0e38442 Properly fold bionics descriptions. 2013-08-27 12:44:31 +12:00
StrangerState 1ab9e56e81 Edits to drug descriptions, some rebalancing and realism tweaks. 2013-08-26 20:27:37 -04:00
Tommy 8309d5e287 Update the .pot file. 2013-08-27 12:26:54 +12:00
Tommy 36aea13e3b Fix some missing endquotes in data/raw/parrot.json. 2013-08-27 12:24:23 +12:00
Christian Buskirk 89bf0420b2 Merge PR #2663 - Skill.json cleanup 2013-08-26 17:18:21 -07:00
Christian Buskirk bd22b791ef Merge PR #2662 - Warn on new json 2013-08-26 17:17:35 -07:00
Tommy 5aec4e5297 Missing full-stop in parrot.json. 2013-08-27 12:14:51 +12:00
Tommy 7d3bec0928 Add data/raw/parrot.json to lang/extract_json_strings.py 2013-08-27 12:13:53 +12:00
Tommy a848e581a1 Merge branch 'warn_on_new_json' into i18n_fixes 2013-08-27 12:10:05 +12:00
Tommy eb48133217 Move Mi-Go parrot speech to data/raw/parrot.json. 2013-08-27 12:08:19 +12:00
Christian Buskirk 6a420cff3e Merge Fix. 2013-08-26 16:32:32 -07:00
Christian Buskirk f1d9daf79c Merge PR #2648 - Metalworking expansion!
Conflicts:
	data/raw/item_groups.json
	data/raw/items/armor.json
	data/raw/items/books.json
	data/raw/recipes.json
2013-08-26 16:24:37 -07:00
Christian Buskirk 0fe105e6c4 Merge PR #2670 - Pickling!
Conflicts:
	data/raw/items/comestibles.json
	data/raw/recipes.json
2013-08-26 16:12:03 -07:00
Christian Buskirk d55da4ee59 Merge PR #2669 - Chewing gum
Conflicts:
	data/raw/item_groups.json
	data/raw/items/comestibles.json
2013-08-26 16:04:27 -07:00
Christian Buskirk 1e4e242856 Merge PR #2664 - Typo fix 2013-08-26 15:59:31 -07:00
Christian Buskirk a5df66fde9 Merge PR #2666 - Crackpipe recipe
Conflicts:
	data/raw/recipes.json
2013-08-26 15:58:33 -07:00
Christian Buskirk 6c239559b8 Merge PR #2667 - Survivor suit welding 2013-08-26 15:52:56 -07:00
Christian Buskirk f54f1a3b7b Merge PR #2668 - LSD tablets 2013-08-26 15:51:55 -07:00
fuchs87 cda98b357a -damage calculation for vehicle-vehicle collisions
-fixed some bugs in line.cpp and vehicle.cpp
2013-08-27 00:34:58 +02:00
Rivet-the-Zombie f295bd81d2 Blacksmith profession cost increased to 2. 2013-08-26 17:31:42 -05:00
Tommy 3be4738dcc Remove unnecessary \n's from bionics.json and fix minor spacing issues. 2013-08-27 10:25:07 +12:00
Rivet-the-Zombie 5765824425 Added nicotine chewing gum.
Satisfies nicotine cravings without negative health effects.
2013-08-26 17:16:06 -05:00
Tommy 15922d2438 Move power storage bionics to bionics.json. 2013-08-27 10:13:25 +12:00
Tommy 9318c0ef71 Gettext "CBM: " prefix. 2013-08-27 09:52:57 +12:00
Tommy fcf9268df2 Properly localize CBM names and descriptions. 2013-08-27 09:37:36 +12:00
Rivet-the-Zombie bc964df65a Added student blacksmith profession. 2013-08-26 16:10:19 -05:00
Christian Buskirk e5b5451195 Sync to mainline
Conflicts:
	game.cpp
	game.h
	player.cpp
	weather.cpp
2013-08-26 14:00:09 -07:00
Christian Buskirk 4fd491ab47 Cache mutation protection 2013-08-26 13:41:12 -07:00
Rivet-the-Zombie 031c53828b Grammatical consistency fix. 2013-08-26 14:49:06 -05:00
Rivet-the-Zombie 6a6d466af2 Made name even more vague.
Though to be honest if this thing's description gets any more vague
nobody's going to know what these are for.
2013-08-26 13:41:56 -05:00
Robert Sørlie bb7d29f03e Window title version string
- and converted windows *W() functions to *A() for less pain in the future
2013-08-26 19:29:53 +02:00
Christian Buskirk fe1c5e6d8c .json protection loading 2013-08-26 04:19:34 -07:00
Rivet-the-Zombie 3dda66217c Made the description slightly more vague. 2013-08-26 05:46:04 -05:00
Rivet-the-Zombie 74224bca23 Altered item details. 2013-08-26 05:41:43 -05:00
Rivet-the-Zombie 874d536b6e Reduced spawn frequency. 2013-08-26 05:38:43 -05:00
fuchs87 c9f1892459 map.cpp 2013-08-26 12:32:50 +02:00
Rivet-the-Zombie cdb55e25c0 Made hamburgers/cheeseburgers more versatile. 2013-08-26 04:55:42 -05:00
fuchs87 240513d414 Merge remote-tracking branch 'origin/master' into Vehicle_Collision
Conflicts:
	map.cpp
	vehicle.cpp
2013-08-26 11:51:05 +02:00
Rivet-the-Zombie 01141560b0 Pickles expansion!
Now we can pickle vegetables, meat, and human flesh for long term
storage!
2013-08-26 04:50:00 -05:00
Rivet-the-Zombie 2307919344 Adding chewing gum.
No nutritional effects. This is just a little morale boosting consumable
for nonsmokers that Cataworld was sorely missing.
2013-08-26 03:53:06 -05:00
Rivet-the-Zombie ff5d99310b So the player can trip in their spare time. 2013-08-26 03:32:10 -05:00
Rivet-the-Zombie c8c90f8eaf Item description cleanup. 2013-08-26 03:12:46 -05:00
Rivet-the-Zombie f718dd7500 Pocket knife recipe! 2013-08-26 03:10:48 -05:00
Rivet-the-Zombie e458b78b70 Added welder to recipe since it can be used like a soldering iron. 2013-08-26 02:58:28 -05:00
Rivet-the-Zombie 39b278cd9e Exactly what it says on the tin. 2013-08-26 02:49:08 -05:00
Rivet-the-Zombie b830eefcc8 Leather apron recipe! 2013-08-26 02:42:18 -05:00
Rivet-the-Zombie 6bd45780a6 Leather apron for dressing like an awesome blacksmith! 2013-08-26 02:40:40 -05:00
Rivet-the-Zombie 96b27640c0 More smithing recipe books to be found. 2013-08-26 02:23:35 -05:00
StrangerState ec8e49b914 Change skills.json indent style to 4-space tabs 2013-08-26 03:23:12 -04:00
Rivet-the-Zombie 121da8beb2 Actually ended up fixing two typos. 2013-08-26 02:20:02 -05:00
Rivet-the-Zombie 9f852e59e9 Huge content update! 2013-08-26 02:11:45 -05:00
Christian Buskirk e9068af73b Update JSONS 2013-08-26 00:09:26 -07:00
StrangerState a5a738b9ac Further edits to skill descriptions. 2013-08-26 02:25:18 -04:00
Tommy 2e76c84251 Add vehicle_parts.json to lang/extract_json_strings.py. 2013-08-26 18:20:45 +12:00
Tommy 1690b63037 Automatically abort .pot updates if there are unparsed .json files. 2013-08-26 18:20:18 +12:00
Christian Buskirk 2e328e66df .json protection storage 2013-08-25 22:45:04 -07:00
StrangerState ede5cc3103 Length trimming, alphabetizing and pedantic edits to skill descriptions. 2013-08-26 00:50:43 -04:00
Kevin Granade 03bf2051cc Merge a pile of content.
Conflicts:
	data/raw/recipes.json
2013-08-25 22:57:06 -05:00
Kevin Granade f6f1ba2303 Merge liquid handling refactor, ice labs and vehicle jsonification.
Conflicts:
	iuse.cpp
	player.cpp
2013-08-25 21:58:15 -05:00
Ian Strachan d74703053d Fix non-swimmer zombies suddenly moving at half speed. 2013-08-25 22:49:47 -04:00
GalenEvil 95b45abb0f Merge branch 'pr/5' 2013-08-25 21:36:56 -05:00
GalenEvil d8c2651e57 Added:
* weather animation functions
* tiles for the animations to use
* structure in weather.h to contain the weather data easily
* json additions to make use of the new tiles and animations
2013-08-25 21:33:21 -05:00
Rivet-the-Zombie 8c7aa9fd44 Fixes new bionics word wrap. 2013-08-25 19:43:19 -05:00
Kevin Granade 8feb37e6e2 Merge some bugfixes. 2013-08-25 17:38:36 -05:00
Christian Buskirk 76b776f743 Merge PR #2644 - Whoooa! Fix the crash! 2013-08-25 15:30:34 -07:00
fnord 1fd9f66288 Multiple ammo reload has arrow key navigation, and pre-selects the last choice made for that ammo type.
For stuff like bows this makes pew pew less cumbersome;
'f' <enter> <enter>
vs
'f' (what was that letter..) <enter>
2013-08-25 16:55:48 -05:00
Rivet-the-Zombie 49856dfe46 Dang commas. 2013-08-25 15:00:57 -05:00
Rivet-the-Zombie 4013bf30c2 Filling in the missing magazine and textbook. 2013-08-25 14:56:14 -05:00
Ian Strachan d0db95dabf Salted popcorn recipe added. 2013-08-25 13:28:35 -04:00
Ian Strachan 9b73658db1 Popcorn cooked by the player is now hot. 2013-08-25 13:23:44 -04:00
fuchs87 053c79c39c More realistic vehicle collisions. 2013-08-25 16:00:31 +02:00
Robert Sørlie 8ead474a80 The very last'est invalid-iterator fix 2013-08-25 15:47:28 +02:00
Robert Sørlie be4812a0e4 bugfix: clear memorallog on death 2013-08-25 12:30:53 +02:00
strangie 35fdd3b692 bananas 2013-08-25 00:56:44 -04:00
Rivet-the-Zombie d8d0bc4c9b Jackhammer recipe hooray!
Since we can make a chainsaw from an engine plus a chain, why not this?
2013-08-24 23:55:16 -05:00
Rivet-the-Zombie b759ae216d Recipes expansion. 2013-08-24 23:34:04 -05:00
GalenEvil 08a2739c87 Changed mainwin creation ncols value from VIEWPORT_Y dependent to VIEWPORT_X dependent. Might fix the weird issue that Kevin Granade noticed on Linux. Cannot test myself as I do not have Linux OS still. 2013-08-24 22:36:43 -05:00
GalenEvil 498421541a Added:
* Line drawing mechanism for targeting and draw_trail_to_square depending on curses or tile support versions
* A few new tile definitions
* Changed tile json and tileset image loading from hardcoded to file read.
* "data/gfx.txt" file for loading tileset and tile json information
2013-08-24 22:17:35 -05:00
Christian Buskirk 1e29cdddc9 Fix throwing items of 150 weight 2013-08-24 18:38:17 -07:00
Robert Sørlie 26d6bf92aa crashfix: fixes Whoooa crash 2013-08-25 03:33:06 +02:00
Kevin Granade 4bee2c8ac1 Add support for building graphical tiles target to the Makefile. 2013-08-24 20:18:19 -05:00
Christian Buskirk b69c72dc1f Edit display precision to properly display. 2013-08-24 18:12:47 -07:00
Christian Buskirk c97e9c2bc7 Merge PR #2615 - Spawn densities 2013-08-24 18:00:43 -07:00
Shoes01 9e892513e7 Ice labs won't go below absolute 0, assuming there are no more than 10 z levels 2013-08-24 17:08:09 -07:00
Rivet-the-Zombie d022d23593 Recipes updated. 2013-08-24 18:53:53 -05:00
Rivet-the-Zombie 43f95d89d3 First volley! 2013-08-24 18:45:09 -05:00
Shoes01 e8f25f10c1 Less duplicated code 2013-08-24 16:41:43 -07:00
Christian Buskirk f577c72240 Fix fitted armor encumbrance display 2013-08-24 16:16:12 -07:00
Ian Strachan 3cebcce5d6 Made the "par1" field usable by any of its more descriptive names (power, size, etc). If not specified, defaults to 0. 2013-08-24 18:28:42 -04:00
Ian Strachan 4828c7e8cf Vehicle part json's damage_modifier is now optional, and defaults to 100. 2013-08-24 18:28:42 -04:00
Ian Strachan 5b7dcc955d Vehicle part json's fuel_type is now optional, and defaults to "NULL". 2013-08-24 18:28:42 -04:00
Ian Strachan 85933509f5 Removed the unused "par2" variable. 2013-08-24 18:28:42 -04:00
Ian Strachan bfc0ccd567 Vehicle parts list is now loaded from JSON. Part names are now strings instead of char *s. 2013-08-24 18:28:41 -04:00
Ian Strachan f3335fbefb Fixed a missing broken_color. 2013-08-24 18:28:41 -04:00
Ian Strachan 2752b58195 Moved color_from_string to color.cpp. 2013-08-24 18:28:41 -04:00
Ian Strachan 4f400b226c Initial vehicle parts JSON. 2013-08-24 18:28:41 -04:00
Shoes01 1bb2d8c0a4 Loose ends regarding ice labs and get_temperature function 2013-08-24 15:17:06 -07:00
Shoes01 27fae5a4aa Changd get_temperature function to make more sense 2013-08-24 15:10:46 -07:00
Shoes01 e1e17dd304 Made appropriate changes to use get_temperature() function 2013-08-24 14:07:40 -07:00
Shoes01 22fb79a479 Added get_temperature() function to differentiate between outdoor and indoor temperature 2013-08-24 14:06:58 -07:00
Shoes01 06bf8c58f3 Added bool to check if I am in an ice_lab 2013-08-24 13:51:04 -07:00
Shoes01 f8f5b1e2c5 Added monster group template GROUP_ICE_LAB. 2013-08-24 12:56:09 -07:00
Shoes01 8c1d39dcd9 Added ice lab to mapgen. No difference between it and regular labs yet 2013-08-24 12:55:15 -07:00
Shoes01 ab5a076c78 Added ice labs. Currently identical to regular labs, except color 2013-08-24 11:38:58 -07:00
Dimensiomancer 4760b4e38a Fixed more stupid mistakes; All set 2013-08-24 09:30:15 -05:00
Dimensiomancer 360f955c33 Fixed retarded mistakes 2013-08-24 06:46:10 -05:00
Dimensiomancer add89b42e2 Allows easy container filling from kitchen unit
May be redundant from siphoning, sure, but container filling seems like a missing feature.
2013-08-24 06:28:35 -05:00
Kevin Granade c020dc4588 Const some methods at random. 2013-08-24 01:39:12 -05:00
Kevin Granade b5bec8ea26 Merge pull request #2635 from Rivet-the-Zombie/Bionics-Fix
Warfare Package bionics patch
2013-08-23 23:37:55 -07:00
Rivet-the-Zombie 91e4c8ff32 Warfare Package bionics patch
This file didn't go through to Git initially and I have no idea why.
2013-08-24 01:33:55 -05:00
Kevin Granade 4c1009169e Set floating point option output to fixed for better display. 2013-08-24 00:07:36 -05:00
Kevin Granade 3cf0ca2de0 Merge Warfare package.
Conflicts:
	data/raw/recipes.json
2013-08-23 23:48:26 -05:00
Christian Buskirk a1d97c6cfb Merge PR #2582 - Migo dialogue expansion 2013-08-23 20:21:50 -07:00
Christian Buskirk 261d02e461 Merge PR #2634 - Fix item spawning 2013-08-23 19:51:46 -07:00
Christian Buskirk 3ad24f211d Merge PR #2573 - The Granade! 2013-08-23 17:48:27 -07:00
Kevin Granade 2ecd7c471a Merge swimmer zombies and funnels that fill containers over time. 2013-08-23 19:11:15 -05:00
Kevin Granade 6cd9adf321 Route item spawns through add_item_or_charges() for correct obstacle handling. 2013-08-23 18:47:09 -05:00
Kevin Granade c2906b4340 Merge a batch of bugfixes. 2013-08-23 17:57:19 -05:00
GalenEvil 7ee74e96e5 Added:
* A few more tiles, and animation_hit definition
* Hit animation function definitions and addition to drawing system.
* Separated hit animation drawing between curses and tile supported versions
* Alterations to player.cpp, game.cpp, and ranged.cpp to conform to hit animation abstraction functions
2013-08-23 17:21:25 -05:00
gmcnew 01e1e418f3 Fix an indexing bug when disarming engine traps. 2013-08-23 21:49:55 +00:00
gmcnew 0ea432c46d Remove a debug print statement. 2013-08-23 21:39:09 +00:00
Dimensiomancer 122537fe9d Applied siphon time 2013-08-23 14:12:01 -05:00
Dimensiomancer c80c8a941a Updated bool 2013-08-23 13:56:16 -05:00
Dimensiomancer ccea5b5ec8 Updated siphon 2013-08-23 13:45:15 -05:00
Dimensiomancer 4b8430e88c Commented 2013-08-23 13:02:47 -05:00
Ian Strachan a4c01bf56f Siphoning no longer causes an infinite loop until the liquid is dealt with. 2013-08-23 13:25:28 -04:00
Dimensiomancer 247ded6e2d Update header file for move_liquid 2013-08-23 11:56:47 -05:00
Dimensiomancer df81d237c8 Added move_liquid
Not a permanent fix for handle_liquid, just more flexible. I'll come back and work on handle liquid, as we need something for liquid movements where the water source is infinite.
2013-08-23 11:52:21 -05:00
Robert Sørlie c4e8af1ec5 bugfix: spawn deconstructed window parts at player 2013-08-23 18:43:06 +02:00
Robert Sørlie 7ff6d60ed5 bugfix: memoryleak in helpscreen 2013-08-23 18:02:36 +02:00
Robert Sørlie 92f5b712b9 restyle help.cpp 2013-08-23 18:00:59 +02:00
Robert Sørlie 56262a8c23 bugfix: deconstruct curtained (closed) windows 2013-08-23 15:15:48 +02:00
GalenEvil 0b7f5b815e Added:
* Different animation routines between curses and tileset versions
* A few extra definitions, explosion tiles, turned all vehicle parts in definitions to rotates: true
* Removed static keyword from cata_tiles *tilecontext declaration
* Ranged.cpp : draws bullets using appropriate code
* Definitions for new animation functions implemented in animation_tiles and animation_curses source files
* Moved animated sections for explosions and shrapnel to functions implemented in animation_tiles and animation_curses source files
* Added animation coupling and functions + definitions to cata_tiles source and header
2013-08-23 07:21:54 -05:00
Tommy 524b56f43d Properly load translated mutations and dreams. 2013-08-23 21:51:47 +12:00
Robert Sørlie b16527cd56 process_fields_in_submap iterator fix 2013-08-23 11:46:46 +02:00
Tommy 6bf19d1f04 And update the .pot file again. 2013-08-23 21:07:16 +12:00
Tommy c9c5d99550 Fix dream translation (hopefully). 2013-08-23 21:03:15 +12:00
Tommy 8523d4c16b Update .pot file to include dreams and mutations. 2013-08-23 20:15:38 +12:00
Tommy a4a00b0722 Add data/raw/dreams.json to lang/extract_json_strings.py 2013-08-23 20:11:11 +12:00
Tommy b981ab095a Add data/raw/mutations.json to lang/extract_json_strings.py 2013-08-23 20:02:30 +12:00
gmcnew 4959980bcd Add a makeshift funnel. 2013-08-23 02:16:58 -05:00
gmcnew 3a53c0e0cd Make funnels collect water automatically. 2013-08-23 01:59:03 -05:00
Rivet-the-Zombie 665363f4cb Added raincoats to survivor suit recipes.
Since they're waterproof and all...
2013-08-22 23:46:26 -05:00
Kevin Granade 6c27f91a5b Nerf blowgun damage. 2013-08-22 22:51:15 -05:00
Kevin Granade 162ef2a9fd JSON syntax fixes. 2013-08-22 22:51:03 -05:00
Kevin Granade 72260f0546 Merge a pile of new content. 2013-08-22 22:41:26 -05:00
Kevin Granade 940a60f3b9 Add spawn density option for configurable number of zombies. 2013-08-22 21:49:29 -05:00
Kevin Granade ba58cfd4ae Add float behavior to options. 2013-08-22 21:48:51 -05:00
Ian Strachan 15612a3318 Added swimmer zombies. 2013-08-22 21:43:27 -04:00
Kevin Granade 22a5a53b69 Fix broken code preventing stair use even when not dragging a vehicle. Fixes #2610. 2013-08-22 20:22:05 -05:00
Ian Strachan fd902b360c Monsters travelling through water are no longer visible. 2013-08-22 20:42:23 -04:00
Kevin Granade 50e7c6bca8 Merge bedding use, limited water from toilets, and ratking enhancements. 2013-08-22 19:40:39 -05:00
Kevin Granade 2292a5469a Merge fixes for eating flashlights, starting clothing, and player cleanup after death. 2013-08-22 18:54:41 -05:00
Christian Buskirk 6c2b98abd4 Update Ratking 2013-08-22 16:53:02 -07:00
Robert Sørlie 2e28f65f37 bugfix: Unload player / npc from vehicle on death 2013-08-23 01:43:44 +02:00
gmcnew 859174da19 Fix toilet water for most mapgen templates. 2013-08-22 18:34:37 -05:00
Ian Strachan d2ac80993b The tinkerer has no shoes, no more. 2013-08-22 19:22:26 -04:00
Ian Strachan 606a4d79db Zombies will chase the player into water, but won't wander into it. 2013-08-22 19:07:25 -04:00
Christian Buskirk 9c98ee57ae Fix flashlight eating 2013-08-22 15:18:03 -07:00
Christian Buskirk b6f660e9b3 Small grabbed vehicle comment fix 2013-08-22 14:04:19 -07:00
Christian Buskirk db2e2b8a0f Merge PR #2520 - Dragging vehicles 2013-08-22 13:55:54 -07:00
Christian Buskirk 2fa06f6231 Merge several bugfixes 2013-08-22 13:39:20 -07:00
GlyphGryph 7593f07fb1 Merge pull request #2604 from i2amroy/Wetsuit
Fix wetsuit protection amounts
2013-08-22 12:28:52 -07:00
Christian Buskirk d4ed165d7e Fix wetsuit protection amounts 2013-08-22 12:23:27 -07:00
StrangerState 805779dc4e bounds check for parrotVector, and some comment cleanup 2013-08-22 14:16:20 -04:00
StrangerState 9697668ee6 extraneous #include cleanup 2013-08-22 14:01:15 -04:00
StrangerState f76cac82eb Moved parrot dialogue to raw file, changed to use std::vector 2013-08-22 13:52:43 -04:00
Robert Sørlie 3a806fde1e Fixed hacksaw-fix mistake 2013-08-22 14:57:50 +02:00
Dimensiomancer bae87a7a8e Spawning blowguns naturally 2013-08-22 06:41:41 -05:00
Christian Buskirk 8134dfd50b Update mutation descriptions. 2013-08-22 03:29:23 -07:00
Christian Buskirk 3cf64f45f6 Rework drench() to include mutation effects 2013-08-22 02:43:15 -07:00
fnord 365bcce5ea editmap: Minor alignment fix, allow 'v'iew mode toggle in all modes, and persist via uistate.json 2013-08-22 02:59:53 -05:00
fnord cb3b997d5e uistate::load: actually load boolean values
Conflicts:

	uistate.h
2013-08-22 02:58:27 -05:00
fnord 3507083658 editmap: correct monster/npc rendering in "all-seeing eye" mode 2013-08-22 02:57:15 -05:00
Vlasov Vitaly a48cd708c9 utf-8 string length. 2013-08-22 09:43:08 +04:00
Kevin Granade 359247faf5 Handle iteration over fields properly when destroying them, addresses #2558 addresses #2209. 2013-08-21 23:05:50 -05:00
Christian Buskirk 7654fba97b Fix "Enjoyed XXXX" morale message 2013-08-21 21:03:39 -07:00
gmcnew 31f8eb2f9b Make toilet water finite. 2013-08-21 22:55:47 -05:00
Kevin Granade b15c7dcbc8 Restyle mon_in_field. 2013-08-21 22:45:31 -05:00
Christian Buskirk c6456374c3 Make wet morale increase/decrease faster 2013-08-21 20:15:14 -07:00
Rivet-the-Zombie 9864f86b81 Updated ketchup recipe.
Can now use salt water as well as salt.
2013-08-21 21:13:00 -05:00
Kevin Granade 548b4696e0 Restyled step_in_field. 2013-08-21 20:41:05 -05:00
Rivet-the-Zombie 5a74d5066e New recipes and foods!
Cheeseburger, hamburger, cheese, canned cheese, and recipes all around.
I also removed the spoilage tag for mustard since that stuff never goes
bad.
2013-08-21 20:40:50 -05:00
Dimensiomancer 829ac483d5 Recipes for blowgun and dart
I hate you, lag. I freaking hate you.
2013-08-21 20:22:09 -05:00
Dimensiomancer a75ee101b0 Added blowgun 2013-08-21 19:21:11 -05:00
Dimensiomancer ce606ced7f Blowgun darts 2013-08-21 19:17:11 -05:00
Dimensiomancer 3daa2c8ffd Fusion Gun Mount
Uses battery, as if it weren't OP enough
2013-08-21 19:14:34 -05:00
Rivet-the-Zombie 126328dd10 Dropped morale boost for top tier fabrication book.
Kept it for the middle tier. A book like that sounds like fun.
2013-08-21 18:58:33 -05:00
Rivet-the-Zombie 71df854e62 Difficulty swap.
Even with constant crafting it's seems it's about impossible to get to
tailor 9 with any reasonable degree of effort.
2013-08-21 18:52:46 -05:00
GalenEvil 7b4ed64688 Added:
* a new value to terrain_names to bring it up to speed with the mainline's ter_id enum values
* removed multiple definitions of jar_kompot x2
* changed OPTIONS[...] calls to work with strings instead of enum values
2013-08-21 18:31:25 -05:00
Robert Sørlie 0bc41aafaf Fixed hunger / thirst / sleep logic + sleep msg fix
No more fooling your body with 6001 hunger, 1201 thirst and 1001 sleep
2013-08-22 01:05:16 +02:00
Christian Buskirk e906fb3c1b Deincrement properly 2013-08-21 15:24:07 -07:00
Rivet-the-Zombie 9622d88747 Three skill books for the fabrication skill.
Since we can train carpentry and construction using books, why not
fabrication?
2013-08-21 17:10:39 -05:00
GalenEvil dc69990289 Merge mainline into Tile_Support
Conflicts:
	CMakeLists.txt
	bionics.cpp
	game.h
	itypedef.cpp
	player.cpp
	ui.cpp
2013-08-21 15:40:16 -05:00
GalenEvil 9169d42bed Reset And Retry, Again to get this looking right! 2013-08-21 15:28:29 -05:00
Ian Strachan 8a05b119c7 Fix limit on negative traits. 2013-08-21 16:11:53 -04:00
Seth 5086b7260d Remove unnecessary empty string array delimiter 2013-08-21 15:52:03 -04:00
Seth 3acb8d3d3b One last edit for now 2013-08-21 15:41:38 -04:00
StrangerState 74151126f4 More Mi-go dialogue edits 2013-08-21 15:38:35 -04:00
StrangerState 84b622b015 Various edits to dialogue strings 2013-08-21 15:29:32 -04:00
StrangerState 78844f5484 Expansion for Mi-go's parroted speech. 2013-08-21 14:58:09 -04:00
StrangerState 8ac110eb82 Struct for parroted speech. 2013-08-21 14:57:33 -04:00
Ian Strachan 4a6b73c4ab Fix incorrect totalling of negative traits on character creation screen. 2013-08-21 14:41:01 -04:00
StrangerState c6d027fe44 Revert unnecessary #include 2013-08-21 14:33:02 -04:00
Seth b1c025c5ff Update CB project to include editmap src and header 2013-08-21 14:18:10 -04:00
StrangerState 754c4de4c4 Fix for undefined editmap reference in CB build 2013-08-21 14:03:59 -04:00
Robert Sørlie 759da2858c fixed carpentry practice bug 2013-08-21 18:41:39 +02:00
Ian Strachan 3dfda3e9b1 Prevent corpses being spawned inside hospital walls. 2013-08-21 12:34:22 -04:00
Vlasov Vitaly aa556c7bb6 small optimization fix.
we already know string length of each direction name.
  All lengths are stored in widths[].
2013-08-21 17:20:45 +04:00
Vlasov Vitaly 392d115cba Issue #2575 2013-08-21 17:12:42 +04:00
Christian Buskirk 6b67255485 Few more Granade effects 2013-08-21 03:44:14 -07:00
Christian Buskirk 27863376e6 Add visible effects to the EMP/scrambler grenades 2013-08-21 03:36:41 -07:00
Christian Buskirk 4a44850c96 The Granade 2013-08-21 03:27:48 -07:00
GalenEvil 4103f9485d Merge branch 'CleverRavenMaster/master'
Conflicts:
	bionics.cpp
	construction.cpp
	crafting.cpp
	data/raw/items/books.json
	itypedef.cpp
2013-08-21 03:00:39 -05:00
GalenEvil bd3078d703 Merge branch 'master-2' in 'master' to bring it up to date with DDA Mainline
Conflicts:
	CataclysmWin.cbp
	Makefile.Windows
	SIGNOFF
	TRANSLATING.md
	addiction.cpp
	artifact.cpp
	auto_pickup.cpp
	bionics.cpp
	calendar.cpp
	computer.cpp
	construction.cpp
	crafting.cpp
	data/raw/item_groups.json
	data/raw/items/ammo.json
	data/raw/items/armor.json
	data/raw/items/comestibles.json
	data/raw/items/containers.json
	data/raw/items/melee.json
	data/raw/items/ranged.json
	data/raw/professions.json
	data/raw/recipes.json
	disease.cpp
	faction.cpp
	field.cpp
	game.cpp
	game.h
	item.cpp
	item.h
	item_factory.cpp
	itypedef.cpp
	iuse.cpp
	lang/po/cataclysm-dda.pot
	lang/po/de_DE.po
	lang/po/fr_FR.po
	lang/po/pt_PT.po
	lang/po/ru_RU.po
	lang/po/zh_CN.po
	main.cpp
	melee.cpp
	monattack.cpp
	mondeath.cpp
	monmove.cpp
	mutation.cpp
	mutation_data.cpp
	newcharacter.cpp
	npcmove.cpp
	npctalk.cpp
	options.cpp
	options.h
	output.cpp
	output.h
	overmap.cpp
	player.cpp
	player.h
	pldata.h
	profession.cpp
	profession.h
	ranged.cpp
	sdlcurse.cpp
	skill.cpp
	translations.h
	trapfunc.cpp
	veh_interact.cpp
	vehicle.cpp
	weather.cpp
	wincurse.cpp
	wish.cpp
2013-08-21 00:44:10 -05:00
Rivet-the-Zombie e25a0ee7a8 Removed the ALICE pack as per IRC instructions. 2013-08-20 23:01:15 -05:00
Kevin Granade be3f610177 Enforce some line-wrapping. 2013-08-20 22:35:53 -05:00
Kevin Granade d4f5e86830 You guys are trying to bury me in PRs.
Conflicts:
	game.cpp
	newcharacter.cpp
	trapfunc.cpp
2013-08-20 22:31:26 -05:00
Kevin Granade 4040395a11 Set a default keybinding for the grab command. 2013-08-20 20:52:10 -05:00
Kevin Granade 1ccbf517f6 Spawn shopping carts in some stores. 2013-08-20 20:52:10 -05:00
Kevin Granade c14fdfefb5 Add shopping cart spawns to parking lots. 2013-08-20 20:52:10 -05:00
Kevin Granade abaa066d82 Restyle vehicle spawning in parking lots. 2013-08-20 20:52:09 -05:00
Kevin Granade 8c96a87779 Double number of parking lots. 2013-08-20 20:52:09 -05:00
Kevin Granade e81c87c615 Add a shopping cart vehicle. 2013-08-20 20:52:09 -05:00
Kevin Granade d7401714c0 Add new wheel type, casters. 2013-08-20 20:52:09 -05:00
Kevin Granade 0600d8ca83 Vehicle drag code, allows grabbing an adjacent vehicle and pulling it around with you if it is light enough. 2013-08-20 20:52:09 -05:00
Kevin Granade 4bd8a3572c Add argument to move_cost methods to ignore a particular vehicle for move cost calculations. 2013-08-20 20:52:09 -05:00
Kevin Granade f64438599b Update collision detection to allow for only detecting collisions rather than acting on them. 2013-08-20 20:52:09 -05:00
Kevin Granade f9137cf266 Split collision detection out into a vehicle method. 2013-08-20 20:52:09 -05:00
Kevin Granade 824a9c4b17 Move default parameter declaration for displace_vehicle to prototype. 2013-08-20 20:52:09 -05:00
Kevin Granade c6378217ba Add a grab_point member to player. 2013-08-20 20:52:08 -05:00
Christian Buskirk cda9f19596 Move explosion drawing into it's own function 2013-08-20 18:00:02 -07:00
Shoes01 8f5fea016a Added a volume check to snuggling 2013-08-20 20:44:32 -03:00
Shoes01 9952bc92d3 Changed how the player is informed of sleeping on clothing 2013-08-20 20:36:06 -03:00
Shoes01 b6e679d71c Fixed segfault for sleeping on top of clothes 2013-08-20 20:17:41 -03:00
GalenEvil d1674796af Added:
* "cursor" tile to highlight where you are looking for 'x' lookaround actions
* window and door rotation abilities, just needs to be hooked up in the JSON
* other terrain rotation/multitile selection abilities
* furniture rotation/multitile selection
* field rotation/multitile selection
* trap rotation/multitile selection -- useful for pits and spike pits, though until I add in special case checks similar types will not mesh together. Special casing will be useful for wall|door|window transitions as well, so should probably get on that sooner rather than later.
* comment to remind me where 't'|'f' targetting is located. Needed to get trajectory lines drawing properly
2013-08-20 18:13:29 -05:00
Christian Buskirk c4623198f1 Fix copper wire weight 2013-08-20 15:40:13 -07:00
Christian Buskirk fb18824d27 Add roof over kitchen in RV 2013-08-20 15:37:26 -07:00
Christian Buskirk cddbf8d13d Remove vpf_roof from kitchen and welding rig 2013-08-20 15:37:17 -07:00
Rivet-the-Zombie f326109e25 New bionics, guns, armor, gunmods, etc. 2013-08-20 17:03:35 -05:00
Shoes01 8e0552df91 Legwear on the floor keeps you warm while you sleep 2013-08-20 18:40:45 -03:00
Robert Sørlie eaee21b170 Made hacksaw usable on terrain (fix by mathieu)
Rewrote relevant code into a switch statement
2013-08-20 23:11:54 +02:00
Shoes01 0c348de029 A little bit of flavor text 2013-08-20 17:49:15 -03:00
Shoes01 929531f7ea Player is informed he is using floor items for warmth during sleep 2013-08-20 14:10:26 -07:00
Robert Sørlie eba939a2a0 Mad sort_armor() indicate when inv list is scrollable
and small windowsizing bugfix
2013-08-20 22:41:27 +02:00
Christian Buskirk 36c29e9d13 Fix withdrawal deaths 2013-08-20 13:38:34 -07:00
Ian Strachan b83355d8fc Adrenaline shots can work like epipens to counter asthma. 2013-08-20 16:23:02 -04:00
Ian Strachan bd0ffccf02 Allow player character names to contain all non-reserved ASCII characters. Partially addresses #1138. 2013-08-20 15:51:39 -04:00
Robert Sørlie 4db9904cb5 WinGDI: Implemented missing AltCode function 2013-08-20 21:16:02 +02:00
Christian Buskirk 1771d14e43 Merge PR #2479 - Map editor improvements 2013-08-20 12:12:17 -07:00
fnord 55341c731b "All seeing eye" draw mode optional 2013-08-20 13:51:52 -05:00
fnord b938b70720 Reworked input and help systems to make more sense, various cosmetic fixes 2013-08-20 13:47:17 -05:00
Shoes01 75d15838a6 Intelligently use floor items for warmth while asleep 2013-08-20 12:45:17 -03:00
Robert Sørlie 304d21f5ba Removed Makefile.Windows 2013-08-20 17:03:48 +02:00
Fergus Dall 3ee5e22a02 Stop NPCs from shooting if more than weapon.range() tiles away
Fixes #1685
2013-08-20 22:40:47 +09:30
fnord add6b4010e Merge remote branch 'origin/master' into map_editor-refactor 2013-08-20 08:02:08 -05:00
Fergus Dall 0d0c2199c2 Only show infrared markers when the player has line of sight and isn't blinded
Fixes #2530
2013-08-20 21:52:19 +09:30
fnord db00ab9b90 typo: fix 2013-08-20 05:35:59 -05:00
fnord e996cee106 Alternative "weird meat" fix; corpses must have "corpse" != NULL -and- typeId() == "corpse". Meat retains "corpse" ptr for future shenanigans 2013-08-20 05:24:44 -05:00
Fergus Dall 7d68ffd7d2 Make fd_flame_burst and fd_fire_vent display properly 2013-08-20 18:00:45 +09:30
OzoneH3 fde9a78c88 Actually mutate when eating mutagen.
Removed fontlist, why did it even commit that ...
2013-08-20 10:15:17 +02:00
OzoneH3 bb76bf1b68 Merge branch 'master' of https://github.com/CleverRaven/Cataclysm-DDA into mutations 2013-08-20 09:30:15 +02:00
Christian Buskirk 3a7eaa34cb Player collapses if carrying too much 2013-08-19 23:10:50 -07:00
Christian Buskirk 513fc17f4f Halve overburdened speed penalty. 2013-08-19 22:52:16 -07:00
Christian Buskirk b60a7cd2e6 Update weight pain penalties. 2013-08-19 22:45:30 -07:00
gmcnew 75aa4a8668 Fix flicker when scrolling advanced inventory. 2013-08-19 23:04:27 -05:00
gmcnew 4097e3d821 Cleanup. 2013-08-19 23:04:26 -05:00
fiddlerwoaroof 924b964dd0 Merge branch 'master' of github.com:fiddlerwoaroof/Cataclysm-DDA
Conflicts:
	newcharacter.cpp
2013-08-19 21:50:48 -04:00
fiddlerwoaroof 12c04216fe allowed points to be temporarily negative in character building 2013-08-19 21:39:22 -04:00
gmcnew 0d21d7e6a0 Reduce damage dealt by corpse-filled pits. 2013-08-19 20:16:26 -05:00
Kevin Granade f7eb3350ca Remove some unused variables. 2013-08-19 20:04:00 -05:00
Kevin Granade 3a63782d36 Simplify an assignment. 2013-08-19 19:59:10 -05:00
Kevin Granade 091b7b3870 Remove commented out code. 2013-08-19 19:58:49 -05:00
Kevin Granade 181929b6ba Correct the other flotation misspellings too. 2013-08-19 19:27:12 -05:00
Kevin Granade 4d9f87987a Mergefest.
Conflicts:
	translations.h
2013-08-19 19:26:35 -05:00
fiddlerwoaroof 12a8e84610 allowed points to be negative in character building 2013-08-19 19:22:48 -04:00
OzoneH3 e3125752bf Note to self: Always make before commit ... 2013-08-20 00:46:13 +02:00
OzoneH3 0d4b36a179 Set mutation_category_level after creating a new game. 2013-08-20 00:42:45 +02:00
OzoneH3 e3192284b0 Properly redraw the minimap. 2013-08-20 00:24:14 +02:00
OzoneH3 4eaceef123 Merge branch 'master' of https://github.com/CleverRaven/Cataclysm-DDA 2013-08-19 23:03:35 +02:00
Ian Strachan 9d6b267e41 Pouring a container into itself no longer destroy the liquid, fixes #2504 2013-08-19 16:51:23 -04:00
OzoneH3 78324ba096 Merged: https://github.com/CleverRaven/Cataclysm-DDA/pull/2496
Prevent random selection of conflicting traits.
2013-08-19 22:43:29 +02:00
OzoneH3 cb8b7fc15b Removed accidently commited files. 2013-08-19 21:48:19 +02:00
Ian Strachan 5866181baf Adrenaline shots can now be chained if used before/just after comedown 2013-08-19 14:50:45 -04:00
OzoneH3 cc1bf8e267 Resolved Conflicts: iuse.cpp, mutation.cpp 2013-08-19 20:38:54 +02:00
Ian Strachan 5850495b4b Spawn manhole covers when prying manhole; fixes #2528. 2013-08-19 14:18:18 -04:00
OzoneH3 04bd65e41f Recalc mutation_category_level on load and after mutation changes. 2013-08-19 19:49:40 +02:00
fnord 5c27daa14d item, game, iuse: before using item->corpse, check 'item->corpse != NULL' instead of 'item.typeId() == "corpse"' 2013-08-19 10:28:32 -05:00
fnord 28b9484ebf Prevent item controller generated corpses from becoming game crashing bombs: add itype.corpse. Corpses default to mon_null (human).
This is evident in spider caves, which can lead to inevitable crash via:
mapgen(ot_spider_pit_under) -> place_items("spider") -> item_groups.json("corpse") -> spawn_item -> item_controller->create -> itype("corpse"),
  which does not fill in "corpse" variable'. Eventually when this bogus corpse is parsed via map::drawsq -> item.color, segfault.

This is also due to functions in item.cpp checking 'typeId() == "corpse"', instead of 'corpse != NULL'
2013-08-19 10:26:02 -05:00
cootue f844d814d7 fix for not finding container for water 2013-08-19 14:05:12 +02:00
Fergus Dall 10a7b0b49b Make overmap terain names wrap properly on the overmap screen
Fixes #867
2013-08-19 20:13:30 +09:30
Joshua Giles 7b1a3a3045 ESC at wish>search now stops searching, not exits
Pressing ESC when searching now stops the search only, and you must press ESC again in the main wish menu to return to the game.
2013-08-19 07:09:18 +00:00
Jehdin 6c0858449e Fixed minor typos for the flotation vest. 2013-08-19 01:58:22 -04:00
Kevin Granade 8500b3a821 Auto-update .pot file. 2013-08-18 22:39:36 -05:00
Kevin Granade c6a3676af2 Fix duration of berry cooking recipes. 2013-08-18 22:39:17 -05:00
Kevin Granade ed1ef75e22 Typo fix. 2013-08-18 22:38:54 -05:00
Kevin Granade 5ffc69101c Mega merge. 2013-08-18 22:37:07 -05:00
GalenEvil 130b9bb30c Added:
* Wall tile rotation support
* TODO listings in Player.cpp and Ranged.cpp to change hit_animation call to work with tiles
* New tiles to tinytile.png - Unshaded walls, stairs (up and down)
* Multitile keys and associated enum
* Modifications to JSON to work with new tiles
2013-08-18 21:03:55 -05:00
Jehdin 9b6ce741a5 Removed extra 0 in hot pants recipe time, now matches leather and fur hot pants. 2013-08-18 21:46:05 -04:00
Ian Strachan 403c43de2f Pulled linking between ammo and casings to JSON. 2013-08-18 20:34:01 -04:00
Ian Strachan 854de66bd0 Added popcorn, and a recipe for potato chips. 2013-08-18 17:53:39 -04:00
GalenEvil e488333b49 added variables to keep track of where the center of screen is located 2013-08-18 14:05:30 -05:00
GalenEvil b8cbef0813 Merged pr #3
Fixed conflict with commit made just a moment ago by me.

Conflicts:
	gfx/tinytile.png
2013-08-18 13:58:57 -05:00
GalenEvil 64f4d07cd6 Added foreground for "lighting_hidden" tile, red transparency with black '?' character 2013-08-18 13:47:00 -05:00
cib 5b2e86c431 Added minimal sample tileset. 2013-08-18 20:42:59 +02:00
GalenEvil 4228c586a9 Changed default "fg"/"bg" value to -1 to prevent it from displaying the 0 index tile for no reason
Changed tile with id "lighting_hidden": "fg" changed to 2 to test transparency -- Test succeeded
2013-08-18 13:01:17 -05:00
GalenEvil 98cca662a8 Merge branch 'pr/1' 2013-08-18 12:46:06 -05:00
GalenEvil 16183d2da6 Changed #elseif to #elif 2013-08-18 12:45:11 -05:00
GalenEvil 0d0fb888c1 Changed interval, removed whitespace 2013-08-18 11:40:27 -05:00
cib ce2ccf3378 CMakeLists.txt with tileset support. 2013-08-18 18:36:47 +02:00
cib 30b4e4d3d5 Make tileset run on linux. 2013-08-18 18:24:53 +02:00
StrangerState 9ecb814fca MingW: Revert libintl printf redefine 2013-08-18 10:26:03 -04:00
Vlasov Vitaly 9a78167655 Misspelling fix. 2013-08-18 17:21:40 +04:00
Voker57 ebe9bd8aac Fixed berry products' skills 2013-08-18 17:16:29 +04:00
Voker57 37852fb380 Lowered plutonium cell weight to make it more reasonable 2013-08-18 14:53:16 +04:00
Vlasov Vitaly 661f2b7aa7 Misspelling fix. 2013-08-18 12:49:21 +04:00
Vlasov Vitaly 5088b3becf Missspelling fix. 2013-08-18 12:48:09 +04:00
Vlasov Vitaly 9a8f838f02 Update of gettext template file. 2013-08-18 12:46:21 +04:00
StrangerState 7fb88c59ea Prevent libintl-related errors for MingW builds. 2013-08-18 02:25:39 -04:00
GalenEvil a658fee84c Added check for SDL_TILES definition
Added functionality for initializing and displaying tilesets
Added Tile support access of catacurse functions
Added hardcoded keys for displayables and probably some non-displayables
gfx/... -- Added tilesheet and tile json file for low-level testing. Not fully functional
2013-08-17 22:39:17 -05:00
Shoes01 c8eb8fa529 Optimizations to warmth while asleep code 2013-08-17 21:25:49 -03:00
Ian Strachan 1f94f68e4e Added the memorial event log. 2013-08-17 18:17:12 -04:00
Robert Sørlie 3f41fa7417 Made 'autopickup 0 Vol *' option usable
You will now pickup 0Vol items having a weight <= [option] * 50 grams.
Capped at 1kg.
2013-08-17 23:32:18 +02:00
cib d7fef7cb86 Fix to use delete[] call to free memory allocated with new[] 2013-08-17 22:35:58 +02:00
cib 96c0e10a44 Fixed missing usage instructions. 2013-08-17 21:06:52 +02:00
Shoes01 9f4f89dd32 Removed uneeded header 2013-08-17 13:07:58 -03:00
Shoes01 85a4a6d182 Merge branches 'master' and 'sleep-tiles-test' into sleep-tiles-test 2013-08-17 12:59:13 -03:00
Shoes01 1efebefa46 The player will intelligently use floor items for warmth 2013-08-17 12:56:36 -03:00
Shoes01 8fb255fc10 Player now searches tiles for warmth while asleep 2013-08-17 11:29:08 -03:00
Ian Strachan 49a047c120 Brought improved overmap detection from #2469 into memorial location detection 2013-08-17 01:31:15 -04:00
Ian Strachan 29627f73c3 Add trailing newline to iuse.cpp 2013-08-17 01:03:26 -04:00
Ian Strachan 14f7a4fff6 Less medical description on adrenaline shot. 2013-08-17 01:02:29 -04:00
Kevin Granade 4406487053 Move player save files to graveyard instead of deleting, linux only for now. 2013-08-16 23:16:33 -05:00
NaturesWitness 46d15d3a49 New vehicle part (Welding Rig) and RV kitchen bugfix
This adds a new vehicle part, the welding rig.  Similar to an RV
kitchen's hotplate, this allows you perform tasks that require a welder
or a soldering iron by drawing power from your vehicle's storage
battery.  The recipe for this is similar to RV kitchen, but requires as
components a soldering iron, some wire and either 1 regular welder or 3
makeshift welders.  It can also (rarely) spawn in a garage.
I also wanted you to be able to examine this when it's installed and use
it like a soldering iron (repair plastic/metal/kevlar and cauterize
wounds), but couldn't figure out how to make it work.  If anyone has any
idea how to do this, please let me know!

Tested and works

PS - While making this, I also found and fixed a typo in the RV kitchen
recipe, and added it to the garage spawn list.  If this should be
separate, tell me and I'll move it.
2013-08-16 23:16:59 -04:00
Kevin Granade 4a4fd0254d Pile o fixes and content. 2013-08-16 21:43:38 -05:00
Christian Buskirk 66b9254231 Merge PR #2481 - Clothing layering screen crash fix 2013-08-16 18:55:41 -07:00
Christian Buskirk d65587a4cf Merge PR #2468 - Bionic letter fix 2013-08-16 18:51:38 -07:00
Robert Sørlie 819c7ccf5d Fixed crash in 'clothing sorting' screen
caused by negative window offsets; and implemented scolling the worn
slothing list.
2013-08-17 03:46:25 +02:00
Fergus Dall c78dbd1ad6 Don't assign bionics '!' as a symbol 2013-08-17 11:15:13 +09:30
Christian Buskirk 31f4cc682c Merge PR #2446 - Further wet improvements 2013-08-16 16:57:31 -07:00
Christian Buskirk 29068df009 Merge PR #2444 - Fertilizer 2013-08-16 16:44:45 -07:00
NaturesWitness 7940ff0599 Add parry to rapier
Pretty simple PR, just give rapier parry instead of weak block.  I mean
c'mon, parrying is supposed to be THE thing you do with rapiers!
2013-08-16 16:15:04 -07:00
Christian Buskirk 674ed9046f Merge PR #2473 - Gettext translation update 2013-08-16 16:06:10 -07:00
Christian Buskirk 5aee6355ef Merge PR #2443 - Small fixes
Conflicts:
	newcharacter.cpp
	player.cpp
2013-08-16 16:04:42 -07:00
Robert Sørlie 16232bdd30 Fill first nonfull container with 1 charge when diverting sewage samples 2013-08-17 00:48:26 +02:00
Christian Buskirk e216bcba5f Alter options defaults 2013-08-16 15:46:45 -07:00
Christian Buskirk 5884274483 Merge lots of smaller fixes. 2013-08-16 15:09:24 -07:00
NaturesWitness 9ecd604b5f Add accented ä to name
Adds an ä to the name, so it's spelled correctly.
2013-08-16 17:51:33 -04:00
NaturesWitness cd7ccfa502 Fixes major bug (heatblades that run out of fuel disappear!)
Thanks to yassistant for spotting this.  I think this was a problem with
having menus on an active item.  Finally fixed it, added some ELSE IF
commands to the iuse functions.  Also added more interesting menu text
to the shishkebab, it's got a punk-rock slant to match the poorly-built,
unreliable nature of it.  Finally, firebrand and Rising Sun still give
messages when on, but don't make noise while doing so.
2013-08-16 17:20:38 -04:00
fnord c31b0dfcbd editmap: fix field density hilight offset 2013-08-16 16:15:48 -05:00
fnord e6fbf2d416 editmap: adjust help strings 2013-08-16 16:12:32 -05:00
fnord ac0bf8d5e3 editmap: fix reversed "J" and "K" movement keys 2013-08-16 16:12:21 -05:00
cib 3ad87ec059 Initial work on a CMakeLists.txt for cataclysm. 2013-08-16 22:57:42 +02:00
Christian Buskirk e439534e52 Fix readme (hopefully) 2013-08-16 13:56:28 -07:00
Christian Buskirk f868f2c6b8 Part 2 2013-08-16 13:51:12 -07:00
fnord 325a9b33be Map editor: Move into editmap class, fixed fields, added furniture, added line/rectangle/circle drawing of terrain/fields/traps/etc.
Completely functional, however some UI details may change, in particular switching between shape resizing / movement and tile selection
2013-08-16 15:23:49 -05:00
fnord 6414cc1a53 uimenu_entry: add optional 'extratxt' variable for secondary text (such as symbol placement)
int entry.left: offset from left edge of main entry text
nc_color entry.color: color of text
std::string txt: the text itself.

For example, see 'editmap' class
2013-08-16 15:20:25 -05:00
cib f9302b5289 Monsters shouldn't attack themselves. 2013-08-16 22:03:55 +02:00
Voker57 046efa24b3 Added disinfectant to possible disinfectants in bandages' recipe 2013-08-16 19:14:29 +04:00
cib 0dc47d4965 Fixed more places where add_item_keep_invlet should've been called.
This code was buggy even before new invlet assignment system, we just rarely triggered the bug.
2013-08-16 17:06:23 +02:00
cib ab74f73902 Fix drop worn item bug.
It used to be when you dropped a worn item it'd go in your inventory instead.
2013-08-16 16:54:05 +02:00
Voker57 86daf9c9d4 Lowered duct tape volume
2 (equal to a hammer) seems excessive
2013-08-16 17:10:34 +04:00
Vlasov Vitaly c0810aaa29 Small misspelling fix in terminal console. 2013-08-16 16:44:40 +04:00
Vlasov Vitaly ae9cddbd22 Update of gettext translation template file. 2013-08-16 15:50:45 +04:00
Robert Sørlie bce0fc788f Made skillrust with IntCap capped, and Int uncapped 2013-08-16 13:47:05 +02:00
Voker57 c65dfcdf8d Added crafting skills to handheld game recipe 2013-08-16 15:09:09 +04:00
Fergus Dall d7b05df348 Use the correct overmap when reporting the current terain to the player
Fixes #1341
2013-08-16 18:25:01 +09:30
Fergus Dall bd3243999b Change bionic letter allocation, should be possible to get up to 94 bionics
Fixes #2003
2013-08-16 17:35:10 +09:30
Fergus Dall b4b8314f92 Let electroshock bionic work when using metal weapons
Fixes #2337
2013-08-16 17:05:51 +09:30
Fergus Dall 264bc81ba9 Make Power Armor use bionics before adv. UPS and adv. UPS before UPS
Fixes #2399
2013-08-16 16:54:04 +09:30
Joshua Giles 98ecb2703e Fixed escape key not leaving item wish menu.
Fixes issue #2216
2013-08-16 04:54:03 +00:00
Joshua Giles 2267dc7bc6 Fixed vehicles not triggering buried landmines
Also fixed vehicles not removing triggered landmines from the map.
2013-08-16 04:05:24 +00:00
OzoneH3 477cf896ea Combined traits.json and mutations.json 2013-08-16 00:29:57 +02:00
NaturesWitness f05e5a8611 more tweaks 2013-08-15 18:01:28 -04:00
NaturesWitness c0bf55292c No. 9 takes 4 skill instead of 5 2013-08-15 17:51:55 -04:00
NaturesWitness d2f0c052ca Fix stupid spelling mistake (thanks CIB) 2013-08-15 17:34:05 -04:00
NaturesWitness 92d0be7dad Uncapitalize names and color change 2013-08-15 17:28:55 -04:00
Ian Strachan 226d9d4a15 Memorial files now contain the last 10 messages. 2013-08-15 14:04:14 -04:00
Ian Strachan aa77276e0a Fix misused metric options, fixes #2449 2013-08-15 13:21:44 -04:00
NaturesWitness 817d3a664b Merge remote-tracking branch 'upstream/master' 2013-08-15 12:48:50 -04:00
NaturesWitness d139df1aee Add spawns to mapgen.cpp, Cleanup vehtypedef.cpp
Okay for now I'm going to just fit this in with the current vehicle
system instead of reworking half the game.  Added the RV to mapgen.cpp,
it rarely shows up with the broken vehicles on roads, and will very
rarely be in a parking lot.  Changed all the floor trunks to aisles,
still has 4 trunks so I think it's good for storage.  This still uses
the underbody wide wheels, which is a new part but it doesn't change any
other parts so I think it's okay.
I'd like this to have a chance to spawn at hotels, but I'm not sure how
to do that so for now it doesn't.  If anyone has any tips on that let me
know!
2013-08-15 12:38:35 -04:00
NaturesWitness 2fcc33f62c New sword (zwiehander)
Built from the suggestions of whitelight04 and others here #2349, the
zwiehander is a large, two-handed sword with WIDE, WBLOCK_1, and BRUTAL.
It shows up in itemgroups.json in medieval and pawn fairly rarely.  If
you have any balance suggestions, please comment!

Tested and works
2013-08-15 11:16:49 -04:00
cib 3d1e84c8b1 Fix monster bashing check to be consistent with pre-refactor behavior. 2013-08-15 10:20:27 +02:00
Williham Totland 358c78c9b6 Updates the bullet puller to train fabrication. 2013-08-15 10:07:15 +02:00
Williham Totland 553c875add Resolves an issue where fertilizer would not be consumed 2013-08-15 09:52:24 +02:00
Williham Totland 7278ac0ce7 Typo fix 2013-08-15 09:42:34 +02:00
Williham Totland 2f2940effe Drenching refinements.
Hands and feet now only need to be waterproof when swimming if the weather is very cold.

Additionally, the player is properly drenched when waiting underwater.
2013-08-15 09:36:13 +02:00
Williham Totland 2227f9ef44 Wetsuits!
Adds two wetsuits with related items.
2013-08-15 09:31:12 +02:00
Williham Totland 7b43498d40 Fishing waders!
Rubber pants with integral boots, suitable for wading through sewage like a boss.
2013-08-15 09:08:34 +02:00
Williham Totland 54290e6cad Towels made available 2013-08-15 09:02:52 +02:00
Williham Totland c812665243 Fertilizer use 2013-08-15 08:58:24 +02:00
Williham Totland ff5b7bfe9c Fertilizer, with crafting 2013-08-15 08:56:28 +02:00
Williham Totland 3f0c10ba0b Upgrades various aggie-related recepies to new system. 2013-08-15 08:51:38 +02:00
Williham Totland 3178bbdc1e Corrects drenching for wading 2013-08-15 08:49:51 +02:00
Williham Totland 1948816ecf Removes errant debug message. 2013-08-15 08:47:37 +02:00
Williham Totland 06a1f38176 Further fixes for metric options 2013-08-15 08:45:40 +02:00
NaturesWitness 88545fbbe9 New vehicle part (underbody wide wheel)
Seeing as nobody wants a campervan with huge holes in the roof, I've
made a new vehicle part: underbody wheels.  For an extra point of
required skill, you can install wheels UNDER your vehicle instead of on
the sides.  This allows you to install interior parts (like roofs) on
the same tile as your wheels, so you don't have big holes in your
ceiling if you want to mount wheels somewhere other than the edges of
your vehicle.  This started as just an addition to get the RV working,
but I think this will actually be a significant addition to vehicle
crafting as a whole.  Now you can make larger vehicles (like moving
houses!) and be able to have wheels in the middle without screwing
things up.  This only adds the wide wheel (underbody) for now; I made it
as a proof of concept to see if this would work.  I'll make the rest of
the wheels tomorrow.

Note - For some reason, this has changed the size of the wheels
displayed in game.  I gave it same wheel width, only changed damage (to
match frame damage, which is essentially what this is).  Not sure what's
causing this, anyone have any ideas?  Also, in a test build the size
seems to change based on multiple wheels next to each other, wierd.
2013-08-14 23:32:02 -04:00
Ian Strachan c4a8a63479 Added adrenaline shot item. 2013-08-14 22:12:54 -04:00
Christian Buskirk 7c20658581 Update to mainline 2013-08-14 18:04:00 -07:00
Christian Buskirk bcf7bfb83b Part 1 2013-08-14 17:59:30 -07:00
Christian Buskirk 8e73a65ce4 THUS IT IS DECREED! - Merge coding style update 2013-08-14 17:46:59 -07:00
Kevin Granade 9942a1881b Merge pull request #2417 from i2amroy/Narrowing-Errors
Alter mfb() to cast as unsigned long instead of signed
2013-08-14 17:34:28 -07:00
Kevin Granade 6ffd0b4ecf Update CODE_STYLE
Fix spaces switch syntax.
2013-08-14 18:34:22 -05:00
Christian Buskirk 9ed1b4fc94 Convert weights to fix point precision if needed 2013-08-14 15:55:25 -07:00
NaturesWitness 71463ee67e Merge pull request #2 from atomicdryad/RV_assembly_order
Rv assembly order fix by atomicdryad
2013-08-14 15:34:47 -07:00
Christian Buskirk 62bc38fce7 Fix broken recipe skills 2013-08-14 15:22:55 -07:00
Christian Buskirk f071bc2ace Fix heavy fletched field point arrow weight 2013-08-14 15:15:28 -07:00
Christian Buskirk d775e00be1 Update PR #2426 to include cancel queries with ignore option. 2013-08-14 14:47:28 -07:00
Christian Buskirk cc0f93c9f1 Merge PR #2422 - Remove unused rarity item field 2013-08-14 14:32:20 -07:00
fnord 9d5c162d9c fix RV assemby order (the internal door made -2,0 a bad place to extend frame) 2013-08-14 16:30:00 -05:00
Christian Buskirk baf57bb1de Merge PR #2425 - Displacement fix 2013-08-14 14:29:00 -07:00
Christian Buskirk 054a86d68e Merge PR #2426 - Interrupted wait message fix 2013-08-14 14:28:07 -07:00
Christian Buskirk df0af8ddf0 Merge PR #2428 - Character templates fix 2013-08-14 14:27:11 -07:00
Christian Buskirk f86147ea11 Merge PR #2429 - Fix gunmods on charge rifles 2013-08-14 14:25:11 -07:00
Christian Buskirk 8db107bdf7 Merge PR #2432 - Sort recipes fix 2013-08-14 14:21:08 -07:00
Christian Buskirk b5e4643c10 Merge PR #2433 - Firebrand fix 2013-08-14 14:20:22 -07:00
Christian Buskirk 700310e27a Merge PR #2284 - Persistent UI and string input 2013-08-14 14:19:03 -07:00
fnord 424af24811 remove testing var 2013-08-14 15:51:39 -05:00
Kalrog 7679506d7a Fixed Firebrand techniques (Flaming in off mode) 2013-08-14 21:16:23 +02:00
Ian Strachan 435b7bca00 Reinstate sorting the crafting menu, fixes #2431. 2013-08-14 15:14:02 -04:00
Christian Buskirk 29f168a0d8 Remove duplicate phase entry for gasoline 2013-08-14 11:45:05 -07:00
Ian Strachan db3566a690 Allow NO_UNLOAD guns to be unmodified while still un-unloadable. Fixes #2406. 2013-08-14 13:21:51 -04:00
joshuagiles f970fffba7 Fixing "Preset Characters" menu offset weirdness.
Now when "Preset Characters" is selected, the list of presets will appear above that menu option, instead of the layer 2 menu being redrawn seven characters to the right.
2013-08-14 11:56:41 -05:00
Robert Sørlie dbd122a659 Fix wrong 'cancel activity' messages 2013-08-14 17:29:36 +02:00
Robert Sørlie bf938dda99 WinGDI: Load all fonts from font folder 2013-08-14 16:35:52 +02:00
cib 062cf5312d Fixes a bug with displacement.
Due to fixing move_to to not work when there's something at the target location, displacement also broke. Added a "force" parameter(default false) for this specific case.
2013-08-14 15:43:27 +02:00
fnord 4a2951c892 No \r for that matter. 2013-08-14 06:17:46 -05:00
fnord dcc811b6f5 No typos. 2013-08-14 06:16:26 -05:00
fnord 8e3223610b No rarity. 2013-08-14 05:58:18 -05:00
Christian Buskirk 5af4140fe5 Merge PR #2416 - Monmove.cpp refactor 2013-08-14 02:39:27 -07:00
cib c14cbdb7cf *_move functions now do not affect monster plans and renamed sound_move to wander_next.
sound_move wasn't a very good name, as it's effectively just "wander towards X", and might be used by other things than sound in the future.

Doing plans.clear() in the *_move() functions made it hard to use these functions outside the environment they are currently being called in. By having them as pure lookup algorithms, these functions are now much more flexible.
2013-08-14 11:13:20 +02:00
fnord ab4831bdce Millisecond timestamps for dbg 2013-08-14 03:37:19 -05:00
Christian Buskirk 04d744d4f0 Alter mfb() to cast as unsigned long instead of signed 2013-08-14 00:21:28 -07:00
cib 8e1879d64d monmove.cpp refactor #1
- move_to() now actually checks whether the movement is possible, and if not returns 0.
- Factored out attacking and bashing into their own functions and called them from move() and move_friendly()
2013-08-14 09:07:02 +02:00
Kevin Granade 65a20da58e Merge Crops and wetness adjustment. 2013-08-13 20:53:13 -05:00
Kevin Granade 90b263cb48 Fixes make the world go around. 2013-08-13 20:29:40 -05:00
Williham Totland 2a6dd7a17d item_groups fix 2013-08-14 02:58:54 +02:00
Kevin Granade 9f8ae7fae3 Merge nerf to fire growth rate. 2013-08-13 19:49:26 -05:00
Williham Totland c5de3e40b0 zap crbegin & friends 2013-08-14 02:37:19 +02:00
Kevin Granade b55bec38e6 Revert "Sounds that can distract monsters from following you for a short while."
This reverts commit 7e95eb03e2.
This was making zombies indifferent to the player, they'd act normal for a turn or two, then seemingly forget the player is there.
2013-08-13 19:37:09 -05:00
Williham Totland bb58d5b206 Swimming trunks 2013-08-14 02:35:53 +02:00
Kevin Granade 6c957a0a65 Merge fixes to nasty crashes. 2013-08-13 19:32:36 -05:00
Williham Totland 1fdcaff027 correct seed weights 2013-08-14 02:30:07 +02:00
Williham Totland 671ba10e5d Reworks wetness morale. 2013-08-14 02:29:12 +02:00
Kevin Granade c6094b602d Fix up localization include that crept in. 2013-08-13 19:25:56 -05:00
Kevin Granade 08b89940b8 Merge conditional compilation of gettext.
Conflicts:
	Makefile
	Makefile.Windows
2013-08-13 19:13:55 -05:00
Williham Totland 2ef0bfdbc7 New flag; WATERPROOF; slight WATER_FRIENDLY rejigger. 2013-08-14 02:09:05 +02:00
Williham Totland d51504fcbf player::is_water_friendly() 2013-08-14 01:07:25 +02:00
Williham Totland dfc1c1387b new item flag: WATER_FRIENDLY 2013-08-14 01:00:52 +02:00
Williham Totland bb364816b4 Adds plants; seeds; all that good stuff.
Also tweaks field plant yields.
2013-08-14 00:26:48 +02:00
Williham Totland ddce86b987 Improves handling of sealed terrain 2013-08-14 00:24:39 +02:00
Williham Totland 61d939c474 More seed spawning encouragement 2013-08-14 00:24:02 +02:00
Williham Totland c8b731e931 inventory::all_items_with_flag() 2013-08-14 00:23:37 +02:00
Williham Totland 81cfae011b Gently encouraging seeds to spawn. 2013-08-14 00:22:32 +02:00
Williham Totland 022d1d6fc5 adds bonemeal, flour, raw spaghetti, quern recipes 2013-08-14 00:21:59 +02:00
Williham Totland ebdd33351f adds wheat; wheat, blueberry, strawberry, weed seeds 2013-08-14 00:20:53 +02:00
NaturesWitness 61b2fa977b Fix unknown characters in diagram 2013-08-13 16:59:40 -04:00
Ian Strachan 21ba4a712f Similar fix regarding metric speeds. 2013-08-13 15:31:22 -04:00
OzoneH3 16ca51b9af Save Traits, Mutations and Mutation category levels by name. 2013-08-13 21:07:24 +02:00
Ian Strachan 5f5719d04f Correct the USE_METRIC_WEIGHTS option's usage, fixes #2394. 2013-08-13 14:47:48 -04:00
Robert Sørlie 5faac4469e Updated codeblocks project for non-localization 2013-08-13 20:17:23 +02:00
NaturesWitness 31aabcea1c New vehicle RV take two
While looking through the pull requests, saw there was a pull for an RV
that seemed kinda abandoned #2053 .  It looked like a really cool idea,
just needed to be finished, the design was based on original Cataclysm
and didn't work in DDA.  Seeing as there had been no activity in two
weeks, I thiugh I'd try and complete it.  So far I think I have the
design in veh_typedef.cpp fixed (bunch of misc. errors), but I'm not
sure how to add this to spawn lists.  Anyone know how vehicle spawns
work?

PS - I know this isn't my idea, it's just no one answered my comments on
the original pull and this is too cool to just let die.  If I should
have made a pull off the original request or whatever please tell me and
I'll take this down.  I don't want it to seem like I'm stealing people's
work.
2013-08-13 12:08:32 -04:00
Robert Sørlie 8045625c3b init submap to fix possible undefined behaviour
Related to nondissapearing electric clouds:
http://smf.cataclysmdda.com/index.php?topic=2658.0
2013-08-13 17:25:07 +02:00
NaturesWitness a9b5b7ef96 Merge branch 'master' of https://github.com/NaturesWitness/Cataclysm-DDA 2013-08-13 11:00:00 -04:00
Robert Sørlie c3721877de Autosave crashfix
caused by 'div by 0' exception
2013-08-13 16:23:44 +02:00
OzoneH3 7e2f1f8e38 Moved categories from mutation_cat.json into mutations.json 2013-08-13 16:12:53 +02:00
Andrey Kojevnikov 8b1a280d1e Added 3-litre jar to the 3-litre jar of kompot recipe. 2013-08-14 01:00:59 +11:00
OzoneH3 69ffeb0c28 Fixed automerge error 2013-08-13 14:51:57 +02:00
OzoneH3 6fc8de7c4c Resolved some conflicts
Conflicts:
	game.h
	iuse.cpp
	mutation_data.cpp
2013-08-13 14:41:10 +02:00
OzoneH3 bb056183f5 Mutations jsonized. 2013-08-13 14:36:09 +02:00
Christian Buskirk bbbdab5683 Remove some excess code that was generating error messages 2013-08-12 21:08:02 -07:00
cib bc57c04264 Ran map::process_fields_in_submap through astyle 2013-08-13 05:33:54 +02:00
fnord ad697e3fca sync / fix conflicts 2013-08-12 22:32:06 -05:00
Christian Buskirk 6552a86ef9 Merge PR #2339 - Power armor rule fix 2013-08-12 19:56:29 -07:00
Christian Buskirk 5aeae61d66 Merge PR #2389 - Little optimizations 2013-08-12 19:48:02 -07:00
Christian Buskirk ad66293597 Merge PR #2381 - Submap corruption fix 2013-08-12 19:47:12 -07:00
Christian Buskirk 230db952c5 Merge PR #2338 - Fridge fix 2013-08-12 19:45:35 -07:00
Christian Buskirk e6678400da Merge PR #2323 - Invlet cache upgrades 2013-08-12 19:38:36 -07:00
Kevin Granade 881bf5880a Merge load of bugfixes, warning cleanups, and distracting monsters with loud noises. 2013-08-12 20:46:03 -05:00
cib 861577e128 Fire adjustments.
- Reduced smoke by half.
- Flammable terrain no longer has to become an INFERNO just to convert the burning terrain to ashes.
- To grow past "small fire" stage, fire needs to be 1.) uncontained and 2.) either have a lot of fuel, or have nearby fires to help it grow
2013-08-13 03:43:57 +02:00
cib 26e80c31e9 Adjusted smoke distribution function. 2013-08-13 03:35:43 +02:00
Kevin Granade 52c08e33fa Conditionalize yet more of the makefiles. 2013-08-12 20:26:07 -05:00
Ian Strachan ea9c5ee139 Added debug menu command to force a weather change. 2013-08-12 21:24:02 -04:00
Kevin Granade fe600b2091 Add some robustness to power armor layering checks. Reported by xlemor. 2013-08-12 20:14:27 -05:00
Kevin Granade 0c0610b1ac Quick safecracking fix. 2013-08-12 20:06:46 -05:00
Kevin Granade a907643cb0 Merge craftable preserves and fix for eating action.
Conflicts:
	data/raw/recipes.json
2013-08-12 19:36:01 -05:00
Kevin Granade 495295d522 Merge handheld game system.
Conflicts:
	data/raw/recipes.json
2013-08-12 19:21:00 -05:00
Kevin Granade 5497699c41 Merge piles of content, and i18n lang code adjustment. 2013-08-12 18:33:38 -05:00
OzoneH3 18c5cce831 Small mutations update 2013-08-13 00:09:10 +02:00
Ian Strachan c9ae998bba Options screen description text now wraps on word boundaries. Fixes #2393. 2013-08-12 12:01:38 -04:00
OzoneH3 960908d3c0 Jsonize Mutations Step2. It runs! 2013-08-12 17:14:47 +02:00
cib b7d841faa9 No more NPC teleportation fun 2013-08-12 12:26:40 +02:00
cib 7e95eb03e2 Sounds that can distract monsters from following you for a short while. 2013-08-12 10:43:55 +02:00
OzoneH3 390eb5e4ed Merge branch 'mutations' of https://github.com/OzoneH3/Cataclysm-DDA
Conflicts:
	player.cpp
	weather.cpp
2013-08-12 09:30:25 +02:00
Fergus Dall 85048a3847 Fix a bunch of warnings, mostly maybe-uninitialized warnings 2013-08-12 16:46:31 +09:30
cib aca5db7d90 Corrected jam weights for new weight system. 2013-08-12 05:28:39 +02:00
Kevin Granade 778b730641 Merge jsonizing and enhancements to mutations and traits. 2013-08-11 22:14:10 -05:00
cib 705c01945a Berries are now harder to find but grow in bunches.
Berries are a lot rarer now, but when you do find some, you're likely to find a few bushes worth of them.
2013-08-12 05:13:19 +02:00
cib 7e11708601 Adds jam and the ability to eat liquids. 2013-08-12 04:24:58 +02:00
Ian Strachan d3632c60c8 Reduced weight of handheld game system to something more reasonable. 2013-08-11 22:04:33 -04:00
Alex Casey cb38b096a1 Dream messages are now an array 2013-08-12 11:55:45 +10:00
Voker57 9e97b477f7 Buffed crossbows damage 2013-08-12 04:49:37 +04:00
Voker57 d6287e3e4f Make soldering irons less and duct tape more frequent. 2013-08-12 04:49:18 +04:00
GlyphGryph a3578ff793 Fixed bugs introduced from merging translations, where code was duplicated 2013-08-11 19:57:48 -04:00
GlyphGryph 689294e11a Merge branch 'master' into fabrication_skill
Conflicts:
	crafting.cpp
	data/raw/recipes.json
2013-08-11 19:18:25 -04:00
GlyphGryph e6c40dd990 Brought up to date with more recently added recipes 2013-08-11 19:15:41 -04:00
OzoneH3 3b1d4ed9e4 Mutations to json Step 1 2013-08-11 23:54:30 +02:00
GlyphGryph 3e657192a4 Changed all references from 'training skill' to 'using skill' 2013-08-11 16:19:36 -04:00
Kevin Granade a341db225a Remove gradual night light option. 2013-08-11 13:02:05 -05:00
Kevin Granade ec21194623 Preallocate space for line_to vector. 2013-08-11 13:01:40 -05:00
Kevin Granade 39d7985ab2 Prevent corrupting last loaded submap. Thanks to wito for finding it. May fix #426 fix #437 and fix #1341. 2013-08-11 11:41:07 -05:00
Tommy 761d834dc8 Remove the country code from most of the .po files. 2013-08-12 01:28:56 +12:00
Alex Casey 8d3b297f80 Dreams are now in a JSON 2013-08-11 19:00:55 +10:00
Fergus Dall ab349464c4 Make active bionics consume power every charge_time turns, instead of charge_time+1 2013-08-11 13:36:05 +09:30
Ian Strachan cef1b9d8b1 Added crafting recipe for handheld game system. 2013-08-10 17:40:08 -04:00
Kevin Granade c3eeee0612 Cleanup formatting of new JSON entries. 2013-08-10 16:29:59 -05:00
Kevin Granade 44889f4ac9 Convrted new item weights to grams. 2013-08-10 16:27:25 -05:00
Ian Strachan fa761a9b89 The portable game system can now be used. 2013-08-10 17:06:52 -04:00
Williham Totland 0032062de4 Resolves an issue with building 2013-08-10 22:38:50 +02:00
Williham Totland 60b5f49de5 further safecrackery 2013-08-10 22:14:51 +02:00
Kevin Granade 36acf62632 Merge a huge batch of new content. 2013-08-10 14:52:25 -05:00
Williham Totland d4dec0ecff Adds a stethoscope. 2013-08-10 21:52:10 +02:00
Kevin Granade 48c6b1bea4 Fix a casting warning. 2013-08-10 14:32:39 -05:00
Williham Totland 51ce36114f preliminare iexamine function 2013-08-10 21:24:38 +02:00
Ian Strachan c9e5c9f263 Adding portable game system to item and spawn lists. 2013-08-10 15:16:25 -04:00
Kevin Granade 860ca9ff71 Further conditioniolize gettext compilation. 2013-08-10 14:15:22 -05:00
Williham Totland 86a3be3250 safe furniture 2013-08-10 20:52:13 +02:00
Zireael07 ce0a810e8a fix c&p mistake 2013-08-10 18:22:36 +02:00
Williham Totland 56be93e03e Drench when wading 2013-08-10 18:05:16 +02:00
Williham Totland a1cb77359b Revised weights 2013-08-10 17:38:44 +02:00
Williham Totland 012f6b0b2a New wetness morale paradigm 2013-08-10 17:36:18 +02:00
Williham Totland cbae69c0d1 reinstate casings 2013-08-10 15:05:41 +02:00
OzoneH3 8ef5cbb267 Merge branch 'master' of https://github.com/CleverRaven/Cataclysm-DDA 2013-08-10 14:12:26 +02:00
Alex Casey a2c0693f90 Adds mutation category based dreams when sleeping 2013-08-10 20:06:52 +10:00
Ian Strachan 807a814fee Load traits from a JSON file instead of a statically initialized array. 2013-08-10 03:58:03 -04:00
Ian Strachan 608c99383c Fix spacing in traits.json, also put the %%s back because they turned out to be important. 2013-08-10 03:57:41 -04:00
Kevin Granade 6fc622e938 More build fixes after options refactor. 2013-08-09 22:54:05 -05:00
Kevin Granade fa65cb3e2d Fix missing include in options.h. 2013-08-09 22:25:20 -05:00
Kevin Granade 27bcdebdb2 Merge rewrite of options system.
Conflicts:
	game.cpp
2013-08-09 21:00:08 -05:00
Ian Strachan e439da5f18 Creating traits.json. 2013-08-09 21:56:06 -04:00
Kevin Granade 1b1090de2f Merge translation cleanups and profession item spawning fix. 2013-08-09 20:27:14 -05:00
Williham Totland d246775894 red dot sight, thanks to lumikant 2013-08-10 03:25:48 +02:00
Williham Totland e70e07df02 renamed gun mods to standard (lcase) 2013-08-10 03:23:18 +02:00
Williham Totland bf6b17a004 Revert "Downcases gunmods to match standard; removes optical red dot on account of being laser sight."
This reverts commit d534974065.
2013-08-10 03:21:16 +02:00
Williham Totland 9f6c83c325 Downcases fried SPAM to match other comestibles. 2013-08-10 03:19:16 +02:00
Williham Totland d534974065 Downcases gunmods to match standard; removes optical red dot on account of being laser sight. 2013-08-10 03:19:16 +02:00
Williham Totland dc6e18e370 Better handling of decorated items 2013-08-10 03:19:16 +02:00
Williham Totland 8a129a487b candlestick uncraft 2013-08-10 03:19:15 +02:00
Williham Totland dbcc7298b7 More swim skill training if underwater 2013-08-10 03:19:15 +02:00
Williham Totland 10927249b4 plasma fuel display fix 2013-08-10 03:19:15 +02:00
Williham Totland d49bc0a8c7 Improved warmth display 2013-08-10 03:19:15 +02:00
Williham Totland e0dbdc8579 Beretta Cx4 Storm
In-game: 'Cx4 Storm', 9mm carbine; might need accuracy adjustments.
2013-08-10 03:19:15 +02:00
Williham Totland 42e44548dd Power Armor Interface Mk. II made more available 2013-08-10 03:19:15 +02:00
Williham Totland fd9945738a Jar goods volumes 2013-08-10 03:19:15 +02:00
Williham Totland f76c295a34 Preliminary wetness morale adjustment. 2013-08-10 01:35:29 +02:00
Williham Totland 2751b2d2c7 Swimming pools 2013-08-10 01:29:23 +02:00
Williham Totland 81d7442508 Swimwear crafting 2013-08-10 01:26:02 +02:00
Williham Totland 7d162bd41e Swimwear 2013-08-10 01:25:24 +02:00
OzoneH3 7f8edaebf9 Merge branch 'master' of https://github.com/CleverRaven/Cataclysm-DDA 2013-08-09 22:41:11 +02:00
Kevin Granade 6e38df2876 Update calendar.cpp
Make the compiler happy when building with localization disabled.
2013-08-09 15:32:22 -05:00
Ian Strachan a413fdfa1f Memorials handle empty trait lists better. 2013-08-09 15:03:11 -04:00
Ian Strachan 98d10fd042 Player's final location added to memorial file. 2013-08-09 15:01:48 -04:00
Voker57 8c365bacda Added primitive tools for screwdriver 2013-08-09 21:34:33 +04:00
Voker57 f588212f67 Fixed a message 2013-08-09 21:34:08 +04:00
Voker57 83cf39bbf9 CBM-enhanced construction workers for public works 2013-08-09 21:33:56 +04:00
Ian Strachan c836c517ed Equipped weapon, gender and profession info added to memorial. 2013-08-09 12:13:52 -04:00
Ian Strachan 3dba7cf6a6 Profession items now come in their containers, fixes #2355. 2013-08-09 10:16:48 -04:00
OzoneH3 dbe9c23c3a missing file .. 2013-08-09 16:00:35 +02:00
OzoneH3 b66089e79a Revertet some changes from another branch 2013-08-09 16:00:06 +02:00
OzoneH3 2f8513b091 Merge branch 'master' of https://github.com/CleverRaven/Cataclysm-DDA into options 2013-08-09 15:48:47 +02:00
OzoneH3 194417fd9f Options put in categories 2013-08-09 15:48:34 +02:00
OzoneH3 bef011c2e3 Options rewrite Step 2
Added display/save/load
2013-08-09 14:03:58 +02:00
fnord e4b061bcfb fix conflicts: Merge commit 'f9073b9' into readline_ish_and_more
Conflicts:
	game.cpp
	iuse.cpp
2013-08-09 04:53:53 -05:00
Tommy 67c7376cd4 Well i might as well update the .pot file again, i suppose. 2013-08-09 18:13:15 +12:00
Tommy 4b749d9154 Fix a bunch of i18n problems caused by cleverness inversion. 2013-08-09 18:11:17 +12:00
NaturesWitness 0d624a1cbf Rewording and Spacing fix
As per kevingranade's idea, brought item descriptions closer to reality
by saying torches heat the blade, instead of turning into a pillar of
fire, which was a little silly.  Also tweaked descriptions in iuse.cpp
to reflect this.

Big reformatting to recipe.json, so it looks like someone typed it
instead of just smacking the keyboard with their forehead (I can't
believe I actually POSTED that mess!).

Note:  I can't actually compile this to test it right now as I'm working
on my notebook because I'm out of town.  This is pretty much just a text
edit though, so I don't forsee any problems.

PS - I apologize for the previous terrible description of the flame
katana (Rising Sun).  I just hit total writer's block with that and it
was all I could think of.  The new description's a lot better (I hope).
2013-08-08 23:43:39 -04:00
Tommy 08d08c2ead Update the .pot file again. 2013-08-09 15:23:53 +12:00
Tommy 2700448889 Add a lot of ngettext, and fix some other broken i18n. 2013-08-09 15:22:04 +12:00
Tommy 8eef57869e Style game::teleport(). 2013-08-09 14:54:27 +12:00
Kevin Granade 7f4207b21e Fix minor bug where 'all skills' and 'first skill' hotkeys collided. 2013-08-08 21:54:16 -05:00
Kevin Granade 674bf0eab3 Reformat new skill upgrade debug code. 2013-08-08 21:51:38 -05:00
Kevin Granade 2a476d1286 Merge selective skill increases.
Conflicts:
	game.cpp
2013-08-08 21:50:19 -05:00
Tommy 522dcd61d1 Update the .pot file. 2013-08-09 14:33:05 +12:00
Tommy 3539630c22 Tweak another refueling string. 2013-08-09 14:32:22 +12:00
fnord 043dc54a0f uimenu: bugfixes and additional helper functions 2013-08-08 21:18:24 -05:00
Tommy a362d89e45 Add a bunch of translator comments for sounds. 2013-08-09 14:12:51 +12:00
Tommy 33544e682b Slightly better advanced inventory column titles for translators. 2013-08-09 13:34:18 +12:00
Kevin Granade de708772f2 Handle new invlet cache lines when loading NPCs. 2013-08-08 20:30:43 -05:00
Kevin Granade 69e180e4bd Remove redundant peek. 2013-08-08 20:28:23 -05:00
Tommy b59a08d27e Better i18n for game::pl_refill_vehicle. 2013-08-09 13:21:05 +12:00
Tommy e3cf60a4bb Style game::pl_refill_vehicle() a little. 2013-08-09 13:15:11 +12:00
Tommy 75f7a7fd1d Better i18n for game::drop. 2013-08-09 13:11:27 +12:00
Tommy c763a9a5a7 Style game::drop(). 2013-08-09 13:07:29 +12:00
Tommy 30f9f361f0 Better i18n for game::drop_in_direction. 2013-08-09 13:04:14 +12:00
Kevin Granade 2a746151fa Merge fix to invlet cache loading eating items. 2013-08-08 19:49:53 -05:00
Tommy 15d478e096 Style game::drop_in_direction because i'm about to mess with it. 2013-08-09 12:47:43 +12:00
Kevin Granade 6cbb065803 Move player memorial string generation to player class. 2013-08-08 18:55:04 -05:00
Kevin Granade 4f830d5198 Move getVersionString() declaration to a header file. 2013-08-08 18:54:22 -05:00
OzoneH3 ff7073fe5d Options rewrite Step 1
operator overload madness ...
2013-08-09 00:25:51 +02:00
OzoneH3 99de867378 Merge branch 'master' of https://github.com/CleverRaven/Cataclysm-DDA 2013-08-08 20:18:31 +02:00
Ian Strachan d9497b988d Invcache peeks instead of reads, fixes #2356 2013-08-08 13:01:30 -04:00
NaturesWitness 4c78759450 Merge branch 'master' of https://github.com/NaturesWitness/Cataclysm-DDA 2013-08-08 10:00:34 -04:00
Kevin Granade 822622149a Merge memorial file hotfix. 2013-08-07 20:55:09 -05:00
Ian Strachan 5679eaaded Fixed memorial files not writing on Windows. 2013-08-07 21:23:03 -04:00
Kevin Granade 5cc688db87 Move memorial directory gitignore entry to a better location. 2013-08-07 20:16:34 -05:00
Kevin Granade dc8e6289d9 Merge bionic installation rebalance, player memorial file, and i18n for time of day. 2013-08-07 19:29:07 -05:00
NaturesWitness 0d926b00e4 Tidying up with Astyle, spelling fixes
Pretty much what it says on the title.  Unless anyone has any
suggestions for changes, I think this is ready.  I tested everything and
it works.  Thanks again to everybody who helped me with this!
2013-08-07 19:28:28 -04:00
Kevin Granade 87e4c7d485 Merge radio disappearance and item weight bugs. 2013-08-07 17:47:05 -05:00
NaturesWitness 28703854ef Silly bug fix
D'oh!  Just realized I forgot to set revert_to in the .json,  so if a
fireblade ran out of fuel it would just disappear.  I fixed it (I think)
so they should revert to their off states if they run out of gas.
2013-08-07 17:21:27 -04:00
NaturesWitness 32df5e1e59 New Item (Rising Sun) and bug fixes
The next fireblade is the Rising Sun, a katana.  This also takes
mechanics 7,  as I figure it shouldn't be any harder than building the
Firebrand.  The text menus for this one have a sort of "Zen" simplistic
style that I think fits with the usual Far-East tropes with katanas.
The item descriptions for it aren't very good.  I couldn't think of a
good description for a flaming katana, so I just made fun of the idea
instead.  If anyone has any suggestions for something better, I'm all
ears.

I also tweaked the menu text for the Firebrand, and fixed a bug where
you could turn it on even with no fuel.
2013-08-07 17:12:32 -04:00
Christian Buskirk 6fb6603c65 Fix broken gasoline weight 2013-08-07 13:44:36 -07:00
Christian Buskirk 2a5a610958 Fix weight display and overburdened message 2013-08-07 12:11:41 -07:00
phaethonfire 26e470ed27 syntax 2013-08-07 13:25:39 -05:00
phaethonfire bc1d44003f use adjusted_skill in failure_level calculation 2013-08-07 13:21:13 -05:00
NaturesWitness 0a2b15eb10 New Item (Firebrand)
Okay the next one up is the firebrand.  Based off the broadsword, takes
mechanics of 7 to build.  At this skill level, I'm assuming player has
enough skill to make these reliable, so starts 100% of the time and
never flames out unexpectedly.  I also decided to have a little "fun"
with the dialogue messages, as I felt they were getting boring and
stale.  For the firebrand, the text is tailored around a "Medieval
Crusader" vibe to go with the weapon.  I think they are still easy
enough to understand, and add a bit of fun to it.  Depending on peoples'
reaction to this I may do the same kind of thing with all the flaming
weapons, giving each one a theme that fits the base item.  Please post
your thoughts on this, and look at the description on the previous
commit, as I listed some other questions there about where where people
think I should go with this.  Thanks for reading!
2013-08-07 13:51:04 -04:00
Ian Strachan b161df7738 Removed memorial file option; they are now always written. 2013-08-07 10:21:26 -04:00
Robert Sørlie ffcc01dbac Make radio stay real
Prevent the radio from draining itself away when its active, and you
then unload it.
2013-08-07 14:56:37 +02:00
phaethonfire e6017fc0ab fix skill_difficult_parameter
no more negative % failure chances.  Tested the change before pushing, and it gives the correct predicted values now.
2013-08-07 02:32:17 -05:00
Kevin Granade 350bd9e41a Merge pull request #2341 from narc0tiq/small-typo-big-build-failure
Fix accidental unrecognized cmdline option '-winmm'
2013-08-06 22:09:37 -07:00
Octav Sandulescu be189ed85a Fix accidental unrecognized cmdline option '-winmm' 2013-08-07 05:22:28 +01:00
Kevin Granade 46356bebac Merge batch of windows-specific fixes blindly because we don't have any windows devs.
Conflicts:
	wincurse.cpp
2013-08-06 22:42:13 -05:00
Kevin Granade 3c4a161829 Merge ranged balance adjustments, translation instructions and scripts, and warning and verbose code cleanups. 2013-08-06 22:18:54 -05:00
Ian Strachan d515895db6 Cash, effects, inventory, equipment are now written to the memorial file. 2013-08-06 22:25:44 -04:00
Kevin Granade c634d9adc1 Merge weight conversion from quarter pounds to grams. 2013-08-06 21:00:24 -05:00
Kevin Granade b3b03bc7bd Check invlet oracle when picking up items. 2013-08-06 20:04:44 -05:00
Kevin Granade b3bf851e79 Make invlet assignment oracle check wielded weapon. 2013-08-06 20:04:21 -05:00
Kevin Granade f3dac9d436 Extract invlet assignment oracle to its own method. 2013-08-06 20:03:54 -05:00
NaturesWitness 14e51e1e80 New Item (No.9 flaming machete) and tweaks
Okay this is coming along well.

Scrapped the whole "Use one action for all fireswords thing" because it
was being a huge pain, might have been prone to bugs and I realized I
wanted some different values in the action for each item.  So now every
firesword gets its own pair of actions, which seems to work best.

Fireswords have a chance go go out randomly.  The chance if different
for each one, but basically, the higher quality it is, the less chance
it'll flame out on you.  The odds to successfully turn one on are also
related to the fireswords' quality.

Fireswords do 25% more cut damage when turned on.  This probably needs
adjusted, I just figured base damage should see SOME effect for being
active.  Long term, I may switch this with a bonus to pain inflicted,
but from what I understand, pain does little (if anything) to hostiles
yet.

Added a second firesword, the "No. 9" (An homage to a character from the
game Parasite Eve 2).  Based on the regular machete, it's stronger, more
reliable, and harder to build than the shishkebab.

Well here's what I got so far.  Huge thanks to i2amroy, ejseto, and
kevingranade.  Without your cooments and help, this would have gone
nowhere.  Take a look, and tell me what you think!
2013-08-06 20:03:45 -04:00
Ian Strachan 21679690e0 Skills, traits, and bionics now get logged to the memorial file. 2013-08-06 17:47:07 -04:00
Christian Buskirk 9357c8baf9 Fix advanced UPS + broken profession 2013-08-06 14:22:55 -07:00
Kevin Granade 98ae67e633 Update mapdata.h
Restore non-opacity of glass-doored fridges.
2013-08-06 16:13:27 -05:00
Ian Strachan cce971a72b Final date, final HP, final and base stats recorded in memorial file. 2013-08-06 15:21:34 -04:00
Ian Strachan dfa2c503b7 Version, player name, and kill list are recorded to memorial file. 2013-08-06 12:59:40 -04:00
Zireael07 38e76e09c1 craftable chemistry set 2013-08-06 14:19:32 +02:00
Zireael07 7ad65bdb54 fix flags 2013-08-06 12:30:16 +02:00
Christian Buskirk 8b720f0d8e Final small fixes 2013-08-06 03:27:15 -07:00
Christian Buskirk 1582fb2b28 Merge main branch updates
Conflicts:
	artifact.cpp
	crafting.cpp
	data/raw/items/armor.json
	data/raw/items/melee.json
	item.cpp
	item.h
	itypedef.cpp
	options.cpp
	options.h
	output.cpp
	player.cpp
	veh_interact.cpp
2013-08-06 03:17:11 -07:00
Zireael07 6bc8540533 reordered item properties 2013-08-06 11:23:15 +02:00
Zireael07 b1d04619e7 plastic archery stuff 2013-08-06 09:57:23 +02:00
Christian Buskirk 92367c6efc Final conversion commit 2013-08-05 23:29:18 -07:00
phaethonfire 3bd548bb5c try to fix floats instead of doubles 2013-08-06 00:52:15 -05:00
Tommy 8350cb7bf9 Make time display more localizable. 2013-08-06 17:46:13 +12:00
phaethonfire d6fa6b09ca responding to comments
added more comments to the code and tried to ensure floating point calculations are typecast correctly
2013-08-06 00:32:14 -05:00
phaethonfire 0d92f39712 fixed equations that needed a 4x coefficient 2013-08-05 20:07:38 -05:00
Christian Buskirk 950496a001 Convert advanced inventory display 2013-08-05 15:25:43 -07:00
Ian Strachan 4f908f3f5a Memorial files are now written out, but don't have any content yet. 2013-08-05 16:16:43 -04:00
phaethonfire 9382f314f6 fixed a couple of build errors 2013-08-05 13:58:55 -05:00
NaturesWitness 9c2eaeb175 Rebalance values a bit 2013-08-05 14:39:38 -04:00
Ian Strachan 7b811f0a9c Adding memorial file option and post-death popup box. 2013-08-05 14:24:49 -04:00
Peter Lacey-Bordeaux c4839eca49 simplifying in map.cpp 2013-08-05 14:20:03 -04:00
phaethonfire 6b015c6231 new equations for chance of success, skill, and failure_type 2013-08-05 13:19:56 -05:00
Peter Lacey-Bordeaux 9e6616b0ba changed over field.cpp 2013-08-05 14:09:13 -04:00
Peter Lacey-Bordeaux 0132bca329 changed iuse to new function 2013-08-05 14:01:39 -04:00
Peter Lacey-Bordeaux ffc92aed8f added new add_field method 2013-08-05 13:46:04 -04:00
Peter Lacey-Bordeaux 7d345c8b6c changed back to std::string::npos 2013-08-05 12:59:27 -04:00
Peter Lacey-Bordeaux 4657618b1f changed a varaible from int to size_t 2013-08-05 12:49:58 -04:00
Zireael07 96c2277c93 fix c&p mistake (thanks CIB!) 2013-08-05 18:02:27 +02:00
Zireael07 e3b0a894f3 lowered the amount of chunks needed 2013-08-05 17:58:04 +02:00
Zireael07 8b271f5e07 plastic bowl and mold + crafting 2013-08-05 17:39:27 +02:00
Zireael07 7202f2d1e2 Revert "plastic bowl, plastic mold + crafting"
This reverts commit ebdf07d684.
2013-08-05 17:34:57 +02:00
Zireael07 ebdf07d684 plastic bowl, plastic mold + crafting 2013-08-05 17:04:12 +02:00
Robert Sørlie d39bb8074c WinGDI: Revive dead character(s)
so we dont have to double-tap '^' on localized keyboards
2013-08-05 06:07:52 +02:00
Tommy d1b9866567 Update TRANSLATING.md to refer to the new maintainer scripts. 2013-08-05 15:57:40 +12:00
Tommy 340fc527e6 Clean lang/json/*.py before extracting. 2013-08-05 15:31:35 +12:00
Tommy d01afc0cbf Tidy lang/extract_json_strings.py a little. 2013-08-05 15:28:20 +12:00
Tommy f9843c971e Add some convenience scripts for translation maintainers. 2013-08-05 15:23:38 +12:00
Kevin Granade f9073b9a06 Save and load invlet cache. 2013-08-04 22:00:04 -05:00
Kevin Granade 54e4c8bf92 Reformat some code in game::load(). 2013-08-04 21:59:40 -05:00
Tommy 06cc8eb32a Fix example locale (msginit) and ignore fuzzy strings (msgfmt). 2013-08-05 14:30:54 +12:00
Kevin Granade d2175d738c Merge invlet cache. 2013-08-04 17:35:06 -05:00
NaturesWitness 411b1651a2 Shishkebab (New Melee Weapon)
With all the fancy new bows and exotic firearms being added lately, I
thought we needed something new and exciting in the way of melee
weapons.  So we give you the "Shishkebab"!  Essentially the same as the
weapon of the same name in Fallout 3, this is a makeshift machete that
has been combined with a crude flamethrower to make a primitive flaming
sword.  It's not incredibly powerful, but it's fairly simple to make.
It also functions as a torch and a lighter when it's turned on, and can
be used as a knife like any other edged weapon when off.  I'm thinking
of making some more powerful and difficult to build versions based on
the stronger melee weapons (machete, broadsword, and katana), but first
I'd like to see if there would be any interest in adding this to the
game.

Tested and works

Note: This isn't my idea; I saw it in a post on the forums by Inquisitor
Dust and thought I'd see how hard it would be to do the hard-coded
actions for it.  It came out so well I thought I'd post it and see what
other people thought of it, and it includes too many files to easily
post on the forums.
2013-08-04 17:21:32 -04:00
Kevin Granade 14d63ab95b Merge translation instructions, initial serbian translation, cleanup wood shield remnants, and fix item damage label display. 2013-08-04 15:53:41 -05:00
Kevin Granade 310e1bb7c8 Flip NONLOCALIZED define to LOCALIZE, and pass it in to compile jobs. 2013-08-04 13:24:18 -05:00
Kevin Granade 3b854e136d Remove redundant include of clocale, thanks wito. 2013-08-04 12:43:15 -05:00
Kevin Granade 20b1e484e4 Allow disabling gettext dependency. 2013-08-04 12:32:25 -05:00
Kevin Granade 53d39abdf4 Adjust makefile for mac-specific ncurses library naming. 2013-08-04 12:30:14 -05:00
Voker57 36c9b33bf4 Fixed display of damage adjective 2013-08-04 20:55:42 +04:00
Robert Sørlie 9d0d3157e6 Removed remnants of wood shield. 2013-08-04 13:25:41 +02:00
Tommy bc852482b6 Serbian translation (sr_SR) initial commit. 2013-08-04 17:39:37 +12:00
Tommy e3e91bed6b Update .pot file. 2013-08-04 17:38:57 +12:00
Tommy 35772b94a1 Add detailed instructions for translators. 2013-08-04 16:14:59 +12:00
Christian Buskirk fe4899880d Revert "Titlebar fix" 2013-08-03 20:33:13 -07:00
Christian Buskirk 9472c1f012 Merge PR #2309 - Hobo/Prostitue balance 2013-08-03 20:15:03 -07:00
Christian Buskirk c10a3afa59 Merge PR #2301 - No negative encumberances 2013-08-03 20:05:58 -07:00
Kevin Granade c58c006982 Fix display of negative encumbrance. 2013-08-03 22:04:41 -05:00
Kevin Granade 3439fc996c Balance changes for hobo and prostitute. Addresses issue #2214. 2013-08-03 21:54:23 -05:00
Christian Buskirk 9c5cba7ef6 Merge PR #2298 - Spawn list fixes 2013-08-03 19:44:56 -07:00
Christian Buskirk 8c9d1f1c4e Merge PR #2299 - Throw stacks 2013-08-03 19:33:26 -07:00
Christian Buskirk 326205b0e0 Merge PR #2308 - Perception based item detection 2013-08-03 19:30:48 -07:00
Christian Buskirk ba4240e6b5 Merge PR #2291 - Vehicle interact crash fix 2013-08-03 19:28:34 -07:00
Christian Buskirk 9634a00a6b Merge PR #2281 - Titlebar fix 2013-08-03 19:27:34 -07:00
NaturesWitness c7b231d4da Merge remote-tracking branch 'upstream/master' 2013-08-03 19:42:35 -04:00
Kevin Granade 3658f59d99 Base item detection distance on perception instead of view size. 2013-08-03 18:30:38 -05:00
Kevin Granade fcd0aca3d9 Merge fixes to closest_points_first refactor. 2013-08-03 16:51:51 -05:00
Kevin Granade b81571808f Greatly simplify encumbrance derivation, no negative enc, and fitted armor with 0 enc has no layering penalty. 2013-08-03 16:24:02 -05:00
Kevin Granade cd74801048 Reformat player::encumb(). 2013-08-03 16:05:13 -05:00
Kevin Granade 85beb37d41 Reformat and clean debug code out of cleanup_dead(). 2013-08-03 15:12:28 -05:00
fnord 6b49aad659 Enable input history for graffiti 2013-08-03 14:59:49 -05:00
fnord 797b5ae351 add_items_or_charges: remove +1 from overflow radius, as closest_points_first(0,.. always returns center point. 2013-08-03 14:18:31 -05:00
fnord 51f7da1f59 find_nearby_items: truncate to screen size, restoring pre-closest_points_first
area.
2013-08-03 14:17:47 -05:00
fnord ad9f135686 closest_points_first: make 'radius' argument determine radius, not diameter.
Radius of 0 always returns center point.
This fixes 'V's range
2013-08-03 14:16:12 -05:00
Kevin Granade 4e2314d921 Merge autotargeting adjustments, crude welder fix, play now character start, i18n cleanup, and fix to items dropped when a window is broken by prying at it.
Conflicts:
	player.cpp
2013-08-03 13:48:44 -05:00
NaturesWitness c3d98e47a0 Merge remote-tracking branch 'upstream/master' 2013-08-03 12:31:22 -04:00
Robert Sørlie 57728c1003 Breaking a window with crowbar now spawns ...
curtain items
2013-08-03 17:19:36 +02:00
utunnels 10a587815e Autopickup manager menu position fix. 2013-08-03 23:17:58 +08:00
utunnels b84defd2b3 Replace substr magic number with function. 2013-08-03 23:06:23 +08:00
Robert Sørlie 406653b2bc WinGDI: Lower cpu usage to ~0%
This should not have any performance hit on the gamespeed.
2013-08-03 16:47:00 +02:00
Tommy 5f6a370187 Add translator comments for names, indicating intended gender etc.. 2013-08-04 01:14:30 +12:00
Tommy b81c999286 Enable comments for translators.
To add a translator comment,
put the comment on the line preceeding the gettext call,
and begin the comment with "~".

For example:
    //~ it doesn't matter what this message is
    g->add_msg(_("Some translated message."))
will appear in the .pot file as:
    #. ~ it doesn't matter what this message is
    msgid "Some translated message."
2013-08-04 00:07:29 +12:00
utunnels 0bbcb86c2f Also randomize gender. 2013-08-03 17:12:12 +08:00
utunnels 82b760edad [Play Now!] option in [New Game] to skip any confirm windows. Allow hot key highlighting for main menu options translation. 2013-08-03 16:34:36 +08:00
Kevin Granade 23d9245d6d No negative encumberance. 2013-08-03 00:40:49 -05:00
Kevin Granade da20884fe2 Remove some unused variables. 2013-08-03 00:16:20 -05:00
Kevin Granade c9bf186958 Merge fix to fence rotation operation, autopickup rule toggle in advanced inventory, completion of i18n annotation, and tweak cross-compile instructions. 2013-08-03 00:15:58 -05:00
Kevin Granade 7475f65b56 Change bearing material to steel. 2013-08-02 23:30:33 -05:00
Kevin Granade ad8ed8ac1b Use count_by_charges() to discriminate between stacking ammo and items with charges. 2013-08-02 23:30:33 -05:00
Kevin Granade e61d505763 Replace the really, finally, last static version string. 2013-08-02 22:27:55 -05:00
Kevin Granade b6f1a09615 Fix some spawn list mismatches based on errors from previous commit. 2013-08-02 22:16:37 -05:00
Kevin Granade 04b04cd085 Check that items exist when adding them to spawn lists. 2013-08-02 22:15:23 -05:00
Kevin Granade 1b68955a36 Reformat load_itemn_groups_from(). 2013-08-02 22:12:07 -05:00
Christian Buskirk 1637140bcc Enable proper "SHOT" effects. 2013-08-02 15:52:30 -07:00
NaturesWitness b6aa8ca5a9 Merge remote-tracking branch 'upstream/master' 2013-08-02 17:14:26 -04:00
Robert Sørlie bf20877218 Updated recipes to use makeshift welder
I presumed a battery-penalty-factor of 1.5
2013-08-02 21:42:03 +02:00
Robert Sørlie 2433b64b3f Make makeshift welder usable 2013-08-02 20:55:21 +02:00
fnord 526d1c5760 The closest newly spotted monster becomes default 'f' target, unless there's already a target. 2013-08-02 13:20:02 -05:00
fnord 7c72c62a3b Ranged targeting targets last target as last_target no longer
decrements for every monster per turn, due to cleanup_dead cleanup.

So there.
2013-08-02 12:40:24 -05:00
OzoneH3 e6ad28b49a Merge branch 'master' of https://github.com/CleverRaven/Cataclysm-DDA 2013-08-02 18:48:10 +02:00
Kevin Granade c68a4efdde Update veh_interact.cpp
Check cpart for validity before calling can_unmount() with it.
Thanks Rorundo for finding the problem.
2013-08-02 10:47:10 -05:00
Robert Sørlie 038dfe8428 Fixed realign fence construction 2013-08-02 17:40:32 +02:00
Ian Strachan 2cd9039d75 Updated cross-compile instructions to fix missing libintl.h 2013-08-02 11:27:57 -04:00
utunnels abc02325b6 Use \003 instead of $ to cut string in string_format. 2013-08-02 20:49:17 +08:00
fnord 42675c0d6d inscribe: string_format && constage 2013-08-02 07:40:19 -05:00
Christian Buskirk 72f1251389 Conversion commit 2
Inventory now properly displays and calculates weights
Tools and weapons now properly calculate the weight of contained ammo
2013-08-02 04:14:18 -07:00
fnord 20221434be Advanced inventory: display item autopickup status, toggle with "p" 2013-08-02 05:43:18 -05:00
Tommy 194599d2b0 update the .pot file 2013-08-02 22:38:23 +12:00
fnord 05bca61409 Change 'increase all skills' to something more selective 2013-08-02 05:33:47 -05:00
Tommy 70561ecd51 Fix errors for lang/json/json_names.py and lang/json/json_snippets.py. 2013-08-02 22:28:19 +12:00
Tommy f770545b5b Translate body part names for main display. 2013-08-02 21:43:15 +12:00
utunnels 599f968dd2 Code clean up. Replace sprintf with string_format. 2013-08-02 17:37:30 +08:00
Tommy c3fcf3c3ff disease.cpp i18n for sound effects 2013-08-02 21:25:22 +12:00
Tommy 6c01f95101 Wrap the last wrappable query_yn() calls with gettext goodness. 2013-08-02 21:18:51 +12:00
Tommy c27395c0fd some more game.cpp gettext 2013-08-02 21:15:16 +12:00
fnord 5266e69f8f item inscription: enable input history, split description of note
from actual note
2013-08-02 04:07:36 -05:00
Tommy ecc2c267bd add some gettext i missed in monmove.cpp 2013-08-02 20:55:11 +12:00
Tommy a5210d1e3e event.cpp i18n 2013-08-02 20:52:39 +12:00
Tommy a03aa36ec0 iexamine.cpp i18n 2013-08-02 20:50:54 +12:00
fnord 916786c7d5 Fix manual merge error 2013-08-02 03:39:34 -05:00
Tommy 956fbfbd64 npc.cpp i18n 2013-08-02 20:33:01 +12:00
fnord 2673c4aa72 uistate.save: only save <= 25 history entries per category 2013-08-02 03:11:53 -05:00
fnord dd0f7d89e5 string_input_popup: hitting 'd' in history menu deletes history 2013-08-02 03:11:42 -05:00
fnord c73785c96e uimenu.title sets minimum width 2013-08-02 03:11:29 -05:00
fnord 80dca7b6ba string_input_popup: line editing via arrows, optional persistent history backbuffer
* new arguments (str title, int width, str default, str description, str history_id, int maxwidth)
* if unset, max_width = width, or 1024 if width is unset / 0
* ^U clears line
* up arrow pulls up history if history_id is provided
* support for larger block of descriptive text above input

list_items: history for filters persists across saves
2013-08-02 03:09:45 -05:00
fnord 9266f762c0 advanced_inv: remembers sorting and target setting across saves
uistate: saves persistent data to save/uistate.json
2013-08-02 02:45:51 -05:00
fnord afd7aefbd0 uimenu: bugfixes and additional helper functions 2013-08-02 02:45:36 -05:00
Kevin Granade d4ba6c94ac Make SDL title bar use the right version string. 2013-08-01 22:17:01 -05:00
Kevin Granade 235cf594e9 MErge more translation prep, item placement bugfix, fontdata revert, and firing LOS tweak. 2013-08-01 21:11:08 -05:00
Eric 1b35ea3588 Allow alternate Bresenham line selection in game::target() 2013-08-01 16:30:21 -07:00
Christian Buskirk c6bf0d4988 Made hit zones more inclusive
Changed to >=
Raised hit zone cap to .8 (instead of .7)
Added new "Good hit!" zone, reduced "Grazing hit" range
2013-08-01 15:53:49 -07:00
Kevin Granade 1c8613a180 Fix checking return value of has_gunmod. 2013-08-01 17:41:18 -05:00
OzoneH3 edab1df3c5 Merge pull request #2278 from placeybordeaux/hotfix-add_items
Hotfix add items
2013-08-01 11:08:32 -07:00
Peter Lacey-Bordeaux 57ca073e26 added INBOUNDS back 2013-08-01 13:51:30 -04:00
Peter Lacey-Bordeaux 6ea6cc7073 made overflow radius do what makes sense 2013-08-01 13:49:16 -04:00
OzoneH3 ce90f7dac6 Merge branch 'master' of https://github.com/CleverRaven/Cataclysm-DDA 2013-08-01 18:37:07 +02:00
Robert Sørlie d7544927d8 Terminus 2013-08-01 15:49:46 +02:00
Richard Walmsley d23207fcaf Fixes a bug were an invalid item may be compared, possibly causing a segfault. 2013-08-01 22:58:16 +12:00
Tommy 24bc453cbb mutation.cpp i18n 2013-08-01 21:24:50 +12:00
Tommy 2e850bd086 monster.cpp i18n 2013-08-01 21:21:15 +12:00
Tommy ad67881608 monmove.cpp i18n 2013-08-01 21:13:24 +12:00
Tommy 61114018dd mission_start.cpp i18n 2013-08-01 20:58:01 +12:00
Tommy 5b1d25f052 mission_end.cpp i18n 2013-08-01 20:53:48 +12:00
Tommy 5b395f751f missiondef.cpp i18n 2013-08-01 20:52:33 +12:00
Tommy 2103b6a548 map.cpp i18n 2013-08-01 20:42:11 +12:00
Tommy af56f525e8 mapbuffer.cpp i18n 2013-08-01 19:52:16 +12:00
Tommy f7a4d5cf3d Tidy lang/extract_json_strings.py a little. 2013-08-01 19:30:47 +12:00
utunnels faff2935af Update po files. 2013-08-01 14:11:31 +08:00
Kevin Granade b0c829d7f0 Restyle overmap_sight_range(). 2013-07-31 23:42:45 -05:00
Kevin Granade eea0f0c154 Merge professions, alternate status display, SDL performance and input improvements, and weapon mods.
Conflicts:
	data/raw/professions.json
2013-07-31 23:23:46 -05:00
Kevin Granade a336a654b8 Belatedly update coding style. 2013-07-31 20:29:51 -05:00
utunnels 8b585970d8 Merge branch 'master' of github.com:CleverRaven/Cataclysm-DDA into inputhelper 2013-08-01 08:55:41 +08:00
Kevin Granade 03587c06a8 Set default radius for add_item_or_charges to a sensible number. 2013-07-31 19:42:58 -05:00
Robert Sørlie f5277d704b Prevent crash when eating stuff with internal furnace. 2013-07-31 19:04:43 -05:00
OzoneH3 fe65058768 Simple Scrolling Combat Text animation 2013-07-31 17:10:55 +02:00
Stone94 bc05f51001 removed Gender-Locking 2013-07-31 11:31:01 -03:00
gmcnew 82a5339754 Narrow sidebar: fix list_items and item pickup.
Also, the minimap should now reappear when you stop examining a car.
2013-07-31 05:19:30 -05:00
utunnels 7927ee0cf6 Fix a sdl clipping bug when WINDOW is bigger than screen. 2013-07-31 16:40:17 +08:00
gmcnew 14beca719a Save space: show monsters at the top of w_message. 2013-07-31 02:43:24 -05:00
Kevin Granade a965ff8e6e Merge helper to generate a spiral of points and a simplification to item handling based on it. 2013-07-30 22:17:54 -05:00
Clayton 5233731645 Added new mods to appropriate spawns 2013-07-30 22:15:27 -04:00
Clayton afe97b1532 New weapon mods: sights and a scope
Three new sights, "Improved Ironsights", "Tactical Red Dot Optic" and "Holographic Sights", and a scope "Rifle Scope"
2013-07-30 22:12:18 -04:00
gmcnew a9deddcf97 mon_info() cleanup. 2013-07-30 20:57:44 -05:00
utunnels 61fdd5b30a Merge branch 'master' of github.com:CleverRaven/Cataclysm-DDA into inputhelper 2013-07-31 09:41:51 +08:00
utunnels 75a3838d4c Try a single threaded version. Still fix the black or frozen screen problem while loading a map. 2013-07-31 09:37:37 +08:00
Kevin Granade 99bfd11e07 Remove mandatory gender checks on professions. 2013-07-30 18:47:30 -05:00
GalenEvil 8e6dded350 Revert "Merge branch 'master-2'"
This reverts commit 9cc0139ed8.
2013-07-30 18:41:49 -05:00
GalenEvil 9cc0139ed8 Merge branch 'master-2'
Conflicts:
	CataclysmWin.cbp
	SIGNOFF
	construction.cpp
	crafting.cpp
	data/raw/items/comestibles.json
	data/raw/items/melee.json
	data/raw/items/ranged.json
	data/raw/professions.json
	data/raw/recipes.json
	field.cpp
	game.cpp
	game.h
	iuse.cpp
	melee.cpp
	monattack.cpp
	monmove.cpp
	newcharacter.cpp
	player.cpp
	ranged.cpp
	ui.cpp
	veh_interact.cpp
2013-07-30 18:37:23 -05:00
Kevin Granade 199a1cb862 Change improvised flamethrower firing skill to pistol. Thanks for spotting Volker57. 2013-07-30 18:25:06 -05:00
Kevin Granade b73218e487 Merge numpad use in character creation screen, jerky and arrow recipe adjustment, and fire buff. 2013-07-30 18:24:31 -05:00
Kevin Granade e79e657041 Merge critical fixes. 2013-07-30 17:19:06 -05:00
Voker57 911e40563a Jackets made from .22 casings for 5.56 ammo (by Zaweri) 2013-07-30 23:34:24 +04:00
Robert Sørlie d155102aa4 Crashfix: Prevent escape from material selection 2013-07-30 21:17:09 +02:00
Voker57 7eca6c37ef Making fletching from several other things 2013-07-30 23:03:19 +04:00
Voker57 9d675dcfe3 Making fletching from plastic bottles 2013-07-30 22:53:08 +04:00
Voker57 ae0d017dc8 Fixed ascending/descending by stairs 2013-07-30 22:51:43 +04:00
Voker57 a3ec0e318a Buff wood output
Brought to you by friendly Wood Value Watch upon noticing that logs once again burn out in moments
2013-07-30 22:50:10 +04:00
Voker57 4dec9a6382 Reduce salt usage
Because it does not make sense to use half a box for single piece of meat
2013-07-30 22:49:16 +04:00
Robert Sørlie 948ff65e6d Enable numpad input during player creation 2013-07-30 19:19:01 +02:00
utunnels d00709f9b4 Use a different thread for SDL_flip. Lower cpu usage using SDL_Delay(2), previous it was 1, doesn't seem to work. 2013-07-30 23:50:53 +08:00
utunnels 5fd5e9738f Merge branch 'inputhelper' of github.com:utunnels/Cataclysm-DDA into inputhelper 2013-07-30 22:37:07 +08:00
Christian Buskirk cfbcd914e7 Update HARDTOSHOOT effects and disable old dispersion reliant effects 2013-07-30 03:49:53 -07:00
utunnels db1b69a27d Remove frame skipping for SDL because it skips "wait creating" popup. 2013-07-30 17:33:34 +08:00
Christian Buskirk 7831f716e6 Factor monster size in bullet "stun" effects 2013-07-30 02:31:08 -07:00
utunnels 16753fdfa6 F2 to load input.txt as input string (character naming screen, vehicle renaming, etc). 2013-07-30 15:51:20 +08:00
Christian Buskirk 234a80234e Fix uncanny dodge conditional 2013-07-29 23:46:43 -07:00
gmcnew 5c39636fe1 Narrow sidebar: fix SAFE, fuel, and look-around. 2013-07-30 01:07:23 -05:00
Kevin Granade 37bee730e9 Merge fix to player save non-deletion on death. 2013-07-29 22:54:21 -05:00
utunnels a6caebd93b Fix dead player not getting delete bug. 2013-07-30 11:35:25 +08:00
Peter Lacey-Bordeaux a5687b7bac fixed evaporating items problem 2013-07-29 22:52:30 -04:00
Christian Buskirk d109bc08b0 Merge PR #2246 - Uncanny dodge cleanup 2013-07-29 19:31:12 -07:00
Christian Buskirk 76ba335bdf Merge PR #2193 - Headlight aiming
Conflicts:
	veh_interact.cpp
2013-07-29 19:29:40 -07:00
Christian Buskirk d0a1e5d264 Merge PR #2237 - Gas spread cleanup 2013-07-29 19:28:18 -07:00
Christian Buskirk cef5caa462 Further merge conflict resolution 2013-07-29 19:27:21 -07:00
Kevin Granade e67f032dcf Slurp can_uncanny_dodge() into uncanny_dodge() to streamline calling it. 2013-07-29 21:16:44 -05:00
Christian Buskirk cdd5cc4e27 Merge PR #2227 - GDA cherry pick
Conflicts:
	data/raw/items/comestibles.json
	data/raw/items/ranged.json
	data/raw/professions.json
	data/raw/recipes.json
2013-07-29 19:11:59 -07:00
Kevin Granade 77430ee50b Warning cleanup. 2013-07-29 20:53:44 -05:00
Kevin Granade b3823c018f Merge encoding bugfixes, windows build tweak, profession editing, and Clang warning cleanup. 2013-07-29 19:55:54 -05:00
Peter Lacey-Bordeaux c17bc2080a gcc -> g++ 2013-07-29 19:43:16 -04:00
Peter Lacey-Bordeaux 370d6ebdf4 still use gcc as default, edit Makefile if you want clang 2013-07-29 19:35:36 -04:00
Peter Lacey-Bordeaux 029ca63d2a fixed logic and set default assignments to appease clang 2013-07-29 19:18:58 -04:00
Ian Strachan 1887222669 Adding my name to SIGNOFF. 2013-07-29 16:47:12 -04:00
Ian Strachan 78f1b6b550 Various fixes to professions.json: Spelling, punctuation, grammar, as well as making the information provided consistent across descriptions. 2013-07-29 16:42:05 -04:00
Peter Lacey-Bordeaux cf1ea17f44 changed diag_mult to float, because before it did _nothing_ 2013-07-29 15:01:23 -04:00
Peter Lacey-Bordeaux 395dd43317 added can_uncanny_dodge, simplified a bit of logic in monattack, should have fixed a bug 2013-07-29 14:55:43 -04:00
Peter Lacey-Bordeaux aee09de5ce added =0 to placate clang 2013-07-29 14:41:49 -04:00
Peter Lacey-Bordeaux c5b794133f two small changes for clang warnings 2013-07-29 14:37:22 -04:00
utunnels 4a4045baa2 Base64-encode save file name just in case non-ascii characters in player name. 2013-07-29 22:44:05 +08:00
GalenEvil 7c5001059c Update to CleverRaven Master branch
Conflicts:
	SIGNOFF
	construction.cpp
	crafting.cpp
	data/raw/item_groups.json
	data/raw/items/ammo.json
	data/raw/professions.json
	faction.cpp
	field.cpp
	game.cpp
	game.h
	item.cpp
	itypedef.cpp
	lang/po/cataclysm-dda.pot
	lang/po/fr_FR.po
	lang/po/pt_PT.po
	lang/po/ru_RU.po
	lang/po/zh_CN.po
	newcharacter.cpp
	npctalk.cpp
	output.cpp
	output.h
	player.cpp
	veh_interact.cpp
2013-07-29 08:38:15 -05:00
utunnels 3f67fafd12 Merge branch 'bugfix' of github.com:utunnels/Cataclysm-DDA into bugfix 2013-07-29 20:19:04 +08:00
utunnels 8849522880 Fix construction menu text overflow issue on default windows size. 2013-07-29 15:55:38 +08:00
gmcnew f65bbb9481 Wrap text automatically in monster::print_info(). 2013-07-29 02:33:27 -05:00
gmcnew 8091d682a0 Narrow sidebar fixes and cleanup. 2013-07-29 02:24:32 -05:00
utunnels 63cf5e44bc Material names are now actually translated. 2013-07-29 15:22:59 +08:00
Robert Sørlie 15f9270e27 Temp. crashfix for windows MinGW builds
when trying to construct stuff

Turns out -O3 provokes this crash
2013-07-29 09:18:12 +02:00
utunnels f86fe886ca Missing comma. 2013-07-29 13:39:12 +08:00
utunnels c0d855b9c2 Fix a bug that ranged attack shows multiple hit mssages. 2013-07-29 13:13:49 +08:00
Peter Lacey-Bordeaux 19b81fe746 get_points -> closest_points_first 2013-07-28 23:18:04 -04:00
Peter Lacey-Bordeaux 0b7801fb7e stripped down add_item 2013-07-28 23:09:29 -04:00
gmcnew e26cb52cf8 Fix ncurses build. 2013-07-28 21:40:25 -05:00
gmcnew 59106835d4 Add an option for a narrower sidebar. 2013-07-28 21:01:54 -05:00
Kevin Granade b53e0919f3 Merge future weapons.
Conflicts:
	SIGNOFF
	data/raw/item_groups.json
	data/raw/items/comestibles.json
	data/raw/items/ranged.json
	data/raw/professions.json
	itypedef.cpp
2013-07-28 19:58:13 -05:00
Kevin Granade 53615441cc Wrap up gas spread logic in a helper function. 2013-07-28 19:20:23 -05:00
Peter Lacey-Bordeaux ceb1d8ce44 added comments and credit to Tom J Nowell 2013-07-28 18:32:15 -04:00
Peter Lacey-Bordeaux ada84e52be removed a legacy false 2013-07-28 18:22:32 -04:00
Peter Lacey-Bordeaux a180bcd1b0 refractored add_item_or_charges 2013-07-28 18:21:03 -04:00
Peter Lacey-Bordeaux 4b19a53ea0 fixed it targeting incorrectly 2013-07-28 17:57:29 -04:00
Peter Lacey-Bordeaux e566e3516a one more ; 2013-07-28 17:52:28 -04:00
Peter Lacey-Bordeaux 675f44961e changed nearby_items to use get_points 2013-07-28 17:51:51 -04:00
Peter Lacey-Bordeaux 8cab7876cf added get_points, get points in a spiral 2013-07-28 17:33:36 -04:00
Stone94 ab48ff6fdb Update professions.json 2013-07-28 18:27:02 -03:00
Stone94 555bb0b925 added a strong crack and heroin addiction to Prostitute. 2013-07-28 18:13:23 -03:00
Stone94 92241b121e added a trapper profession. 2013-07-28 18:00:01 -03:00
Kevin Granade c6a6c28236 Merge new laser weapon, still more translation annotation and cleanup, javelin skill adjustment, and text fix.
Conflicts:
	data/raw/item_groups.json
	data/raw/items/ranged.json
2013-07-28 15:55:45 -05:00
Kevin Granade b5163e91f0 Fix indention and remove development debris. 2013-07-28 15:11:59 -05:00
Rivet-the-Zombie a86916a805 Formatting fix. 2013-07-28 15:11:44 -05:00
Kevin Granade dc4822dbc3 Restore private attribute of field class internals. 2013-07-28 15:07:28 -05:00
Rivet-the-Zombie a0908b9706 Minor tweaks and changes to 'Future Weapons v3'
Added steel tank, steel chunk(s), glue/tape to pneumatic recipes and
removed recoil from laser.
2013-07-28 15:06:21 -05:00
Kevin Granade 92abc54f5e Merge field processing optimization. 2013-07-28 14:43:26 -05:00
Voker57 40398ec4e7 Replaces javelin main crafting skill with throwing
For consistency with other craftable weapons
2013-07-28 23:22:14 +04:00
Voker57 993ba9b86a Added missing ending spaces to damage strings 2013-07-28 22:36:21 +04:00
Kevin Granade 2b4c6ef171 Balance tweaks for new items and recipes. 2013-07-28 13:29:02 -05:00
Kevin Granade 1d5a0f2320 Remove wooden shield. 2013-07-28 13:28:29 -05:00
Kevin Granade 3cfa95babf Tightened up formatting of new items, profesasions, etc. 2013-07-28 13:25:54 -05:00
PiCroft 111e7bf93a Cherry-picked from c17e04e7d2 2013-07-28 12:39:59 -05:00
GalenEvil 14c4ae50f9 Bring up to speed with current master repo 2013-07-28 10:26:32 -05:00
Stone94 1a88375516 Added Groom Profession
we have a bride might as well make a groom too.
2013-07-28 11:50:17 -03:00
Stone94 c2b68856cb Added a Hooker Profession Female Only flag :P 2013-07-28 11:47:23 -03:00
utunnels f7c62fe796 Fix a npc talk crash bug. Simplify popup code a bit and fix a size bug. 2013-07-28 22:17:19 +08:00
utunnels 331ba53e59 Move mtype functions to mtypedef.cpp, translate default name "human". 2013-07-28 19:27:50 +08:00
utunnels 6384ba8104 Backspace erases a utf8 character in character naming tab. 2013-07-28 18:51:10 +08:00
utunnels 58634ea20c Fix name translation logic. 2013-07-28 17:57:20 +08:00
utunnels 5119f82fa5 Update po/pot files. 2013-07-28 16:00:21 +08:00
utunnels c507e75b6f Fix complation of name.cpp. 2013-07-28 15:15:20 +08:00
utunnels 87dcf7bc04 Names now can be translated. 2013-07-28 15:14:18 +08:00
utunnels 02e114c83e Call init_profession to load professions in game constructor. 2013-07-28 15:05:38 +08:00
utunnels ff8a688f98 More fix to defense.cpp. 2013-07-28 14:57:24 +08:00
utunnels 2d15985f49 Fix a format strign mistake in defense.cpp. 2013-07-28 14:40:49 +08:00
utunnels 0fb8e79782 Hunt down remaining translation problems, more. 2013-07-28 14:31:46 +08:00
fnord f2ae163536 Refactor the field system due to the incredible amounts of overhead and slowdown the previous refactor introduced in large fires.
+ process_fields_in_submap: Eliminate hundreds of thousands of field iterations via pointer variables
  in process_fields_in_submap (instead of if(ptr->findField(..) && ptr->findField(..)->something() ) {
  ptr->findField(same_freaking_field)->stuff.

+ field::* Completely eliminate the need for iteration by changing field storage from std::vector to
  std::map.

In a burning hospital test case, this reduced the runtime of process_fields_in_submap from ~1000 ms to
  ~300 ms; switching to variables instead of performing repeated lookups for the same thing took it to
  ~650ms, switching to std::map accounts for the rest.

Further optimization is possible; caching fire and smoke in a struct array made the
  same scenario process in 110ms. Lightmap is also incredibly wasteful as light sources cast rays into
  light sources in the next tile.
2013-07-28 01:27:39 -05:00
Kevin Granade e547b18d99 Remove possible rad badge crash if irridation level is somehow negative. 2013-07-28 01:09:12 -05:00
PiCroft c1be5f6467 MRE nutrition bumped up 2013-07-28 01:02:20 -05:00
Kevin Granade 769b279198 tear paper from books, smashable ovens, fixed items with charges not
decrementing

Conflicts:

	CataclysmWin.cbp
	map.cpp
2013-07-28 01:01:53 -05:00
Kevin Granade fe80a75f9d Correct shortcut key of refill command. 2013-07-28 00:49:33 -05:00
Kevin Granade 14a39cc4bc Merge together siphon methods. 2013-07-28 00:48:55 -05:00
utunnels 132e8abebc Update python script to support more json files. 2013-07-28 13:26:07 +08:00
PiCroft a52bcf7303 Added ability to siphon water from water tanks
Conflicts:

	CataclysmWin.cbp
	veh_interact.cpp
	veh_interact.h
2013-07-27 23:06:20 -05:00
utunnels 0bf700d721 Hunting down misc translation problems. 2013-07-28 11:37:30 +08:00
utunnels 761774700f Merge branch 'master' of github.com:CleverRaven/Cataclysm-DDA into moregettext
Conflicts:
	newcharacter.cpp
2013-07-28 11:05:43 +08:00
utunnels 2989315101 Readjust player menu title center text logic. 2013-07-28 10:59:18 +08:00
Kevin Granade 77216eb850 Merge translation notes, sutopickup fix and field segfault fix.
Conflicts:
	data/raw/item_groups.json
	data/raw/items/melee.json
2013-07-27 21:56:23 -05:00
Kevin Granade 7049524313 Merge another stage of i18n annotation.
Conflicts:
	moraledata.h
	player.cpp
	weather.cpp
2013-07-27 21:08:02 -05:00
utunnels 0f7774795c Committed by mistake, now fixed. 2013-07-28 10:06:28 +08:00
Rivet-the-Zombie 81ee8c3c3b Added my name to the SIGNOFF file. 2013-07-27 21:04:59 -05:00
utunnels 6874c4e63f Translate skills in loadSkills. Readjust @ menu stats format. 2013-07-28 09:59:29 +08:00
RJ Costanzo 1277d2bc5f Fish bowl easter egg 2013-07-27 20:06:00 -04:00
RJ Costanzo 4d010a29f9 Fixed a spawn 2013-07-27 19:57:59 -04:00
Peter Lacey-Bordeaux 7e779a4c4a changed text 2013-07-27 19:14:34 -04:00
Peter Lacey-Bordeaux a4a9b15c2e added \ns 2013-07-27 19:07:09 -04:00
Rivet-the-Zombie 0d7226514b Whitespace problems (hopefully) all fixed. 2013-07-27 16:14:18 -05:00
Robert Sørlie 929d552803 Partial fix to random segfaults
FindField(...) can return NULL
2013-07-27 22:41:13 +02:00
Robert Sørlie bfea22ab7e Signed signoff file
I am qualified, right?
2013-07-27 21:59:03 +02:00
RJ Costanzo 49c27a4e28 LACP laser pistol with fusion pack changes
Makes fusion packs easier to find and adds cheap LACP laser pistol.
2013-07-27 13:35:05 -04:00
utunnels 8299bb8471 Update pot file. 2013-07-28 01:24:01 +08:00
utunnels 954c9c8ce0 Take care of most of the rest translation strings. 2013-07-28 01:15:32 +08:00
utunnels 1fe22ae17c Finish editing veh_interact.cpp. Simplify menu logic by adding shortcut_print. 2013-07-27 23:03:27 +08:00
Voker57 82a3c5bb0a Actually check if auto pickup rules are active 2013-07-27 19:01:33 +04:00
cib 01b1da8e46 Updated TRANSLATING.md with instructions to set up the locale. 2013-07-27 15:17:22 +02:00
cib 2638c784d6 Fixed a german translation string and added translation notes. 2013-07-27 15:04:48 +02:00
utunnels ee97642ef8 Partially done veh_interact.cpp. 2013-07-27 17:31:00 +08:00
utunnels fb6c6024b1 Finish editing player.cpp 2013-07-27 16:47:06 +08:00
Kevin Granade bcd49f807f Refactor headlight installation direction selection to be vehicle-relative and use raw degrees instead of cardinals and sub-cardinals, thanks CiB. 2013-07-27 02:36:23 -05:00
Kevin Granade c3a5b5b8bb Fix calculation of temporary view_offset_* to use to have look_around() start at the location of the part being installed. 2013-07-27 02:35:00 -05:00
utunnels 7bd8a8846a Change item sPre and sPost to a sFmt format string. 2013-07-27 14:28:04 +08:00
Kevin Granade 5e6a852eff Merge reordering crafting recipes, jarred kompot, umbrella, female-specific professions, German translation, wording fix and labelling fitted clothes.
Conflicts:
	options.cpp
2013-07-27 01:07:16 -05:00
Rivet-the-Zombie 8f44e4523e Found the error! 2013-07-27 00:56:11 -05:00
Rivet-the-Zombie 9fd8833ab3 Fix'd 2013-07-27 00:15:38 -05:00
Rivet-the-Zombie ccdeea930f Third time's the charm, right?
Proton pack is gone, caseless ammo has an appropriate description added,
item_groups.json has been double checked for inclusion this time.
2013-07-26 23:38:52 -05:00
utunnels 83ca725597 Merge branch 'master' of github.com:CleverRaven/Cataclysm-DDA into moregettext 2013-07-27 08:10:48 +08:00
utunnels 8d65ea0f42 Merge branch 'moregettext' of github.com:utunnels/Cataclysm-DDA into moregettext 2013-07-27 08:01:03 +08:00
Peter Lacey-Bordeaux 7ef7fc6782 merging 2013-07-26 17:22:50 -04:00
Peter Lacey-Bordeaux c1d1366028 changed defense 2013-07-26 17:16:17 -04:00
Peter Lacey-Bordeaux c4bbc7a9d8 changed bionics 2013-07-26 16:54:31 -04:00
Peter Lacey-Bordeaux c29ead819d changed crafting 2013-07-26 16:53:15 -04:00
Peter Lacey-Bordeaux df3bd97888 changed game.cpp 2013-07-26 16:51:18 -04:00
Peter Lacey-Bordeaux 0a78e36c75 changed iuse 2013-07-26 16:45:57 -04:00
Peter Lacey-Bordeaux 103d2703ba changed melee 2013-07-26 16:44:48 -04:00
Peter Lacey-Bordeaux 607d0a3fd4 changed monattack 2013-07-26 16:43:29 -04:00
Peter Lacey-Bordeaux 301635ebd7 changed mondeath 2013-07-26 16:42:25 -04:00
Peter Lacey-Bordeaux 1ee47126ef made it so (fits) is displayed on items that fit 2013-07-26 15:05:01 -04:00
cib 5b6033d0b4 Removed a few (FE)MALE_TYPICAL flags. 2013-07-26 19:21:27 +02:00
Peter Lacey-Bordeaux 04b18bdb01 fixed segfault due to iterator problem 2013-07-26 12:48:44 -04:00
Peter Lacey-Bordeaux 195c9d89c6 added sort crafting menu option, fixed order 2013-07-26 12:28:57 -04:00
Robert Sørlie 004b0ae992 SmallFix: skill rust description 2013-07-26 18:25:17 +02:00
cib 7379e91425 Converted cross-dresser from negative to positive trait. 2013-07-26 18:07:48 +02:00
GalenEvil 6fb9379638 Merge branch 'pr/2207'
- colorpair array changed from 50 to 100 elements to fit new color values
2013-07-26 09:48:29 -05:00
cib 07e028da50 Added wedding dresses to spawns with very low weighting. 2013-07-26 16:39:46 +02:00
utunnels 4bce258dd2 Move omdata.h variables to overmap.cpp. Add translation support to a few more files. 2013-07-26 22:30:18 +08:00
Robert Sørlie c55d0c1789 fix SIGSEGV in windows 2013-07-26 16:02:42 +02:00
Voker57 c43e6df8e3 Spawn glass 0.5l and 3l jars more. 2013-07-26 15:30:48 +04:00
Voker57 8d238b8aff Sealing kompot 2013-07-26 15:30:41 +04:00
Voker57 b01a1cb69f 3l glass jars 2013-07-26 15:30:32 +04:00
utunnels 032e910666 Make traps translatable. 2013-07-26 16:45:29 +08:00
utunnels bbfe776a1a Update TRANSLATING.md 2013-07-26 16:24:06 +08:00
utunnels ccc004d047 Update pot file. 2013-07-26 16:22:53 +08:00
utunnels e094105acf Now it actually compiles and runs normally. 2013-07-26 16:10:09 +08:00
cib 851bf5aeab Translated a few strings in de_DE.po 2013-07-26 09:10:18 +02:00
utunnels 07cf449ca3 Add translation support for npctalk.cpp 2013-07-26 15:03:55 +08:00
cib eb25dad796 More MALE_TYPICAL/FEMALE_TYPICAL flags for clothing. 2013-07-26 06:38:04 +02:00
cib 49f5ab8f40 Added cross-dresser negative trait.
You will take a morale penalty as cross-dresser if you're not wearing an item marked as typical for the opposite gender.
2013-07-26 06:16:16 +02:00
cib b7ce889c7b Adds the bride profession.
- Adds the wedding dress item.
- Adds the ability to specify flags for professions.
- Adds a profession::can_pick(player, points) function that allows more conditions for professions than just points.
2013-07-26 05:40:54 +02:00
Christian Buskirk 0fbbb43010 Solve merge conflicts
Conflicts:
	data/raw/items/melee.json
2013-07-25 20:13:37 -07:00
Christian Buskirk 5a8a5f199e Syntax fix 2013-07-25 20:05:26 -07:00
cib fb1f62da87 Reformat professions.json
File was hard to read due to messed up indentation.
2013-07-26 04:47:41 +02:00
Christian Buskirk 1d3c2c7d13 Add umbrella effects 2013-07-25 19:33:07 -07:00
Christian Buskirk e1889ef83f Add Umbrella item 2013-07-25 19:32:59 -07:00
Rivet-the-Zombie 22f2657cdc Re-upping for great justice 2013-07-25 20:31:39 -05:00
AndClayton 989a9fcfa5 Added M14 to apporiate spawns 2013-07-25 19:48:12 -05:00
AndClayton ef0604b645 Added the M14, a precision rifle using the .308 round 2013-07-25 19:48:02 -05:00
Kevin Granade 0fda0a1cdc Merge all the things.
Conflicts:
	disease.cpp
	game.cpp
	iuse.cpp
2013-07-25 19:39:02 -05:00
cib c7c0fcb847 Added onions and carrots to spawn groups. 2013-07-26 01:53:08 +02:00
Kevin Granade a4bcd31ce0 Use look_around() to choose headlight facing direction instead of a menu. 2013-07-25 18:04:37 -05:00
Robert Sørlie 9942802625 Option to hide cursor for WinGDI (too)
And some cleanup
2013-07-26 00:06:23 +02:00
NaturesWitness ff9c5bd82b Merge remote-tracking branch 'upstream/master' 2013-07-25 15:05:30 -04:00
cib 91301ab6b6 Fix bug with smoke.
When caching stuff, always make sure the stuff isn't modified while you have it cached! =)
2013-07-25 19:48:02 +02:00
Robert Sørlie 50985edc5a update GitIgnore + CodeBlocks project 2013-07-25 19:25:22 +02:00
utunnels 268e5d5de8 Update pot file 2013-07-25 23:49:22 +08:00
utunnels a7a331f718 Add translation support for npcmove.cpp. Other minor fix to translation strings. 2013-07-25 23:46:13 +08:00
cib e2c196572e Added onion and carrot. 2013-07-25 17:39:42 +02:00
fnord fdfc3ade16 removed unmerged variables 2013-07-25 10:28:49 -05:00
utunnels 825bd6001e Edit itypedef.cpp, adjust translation strings. 2013-07-25 23:22:26 +08:00
utunnels 6c1ddab491 Add a string_format function to avoid too many temporary char buffers. Add translation support for melee and melee styles. 2013-07-25 23:13:36 +08:00
OzoneH3 2f1ee62585 Merge branch 'master' of https://github.com/CleverRaven/Cataclysm-DDA into time_clock
Conflicts:
	game.cpp
2013-07-25 17:13:10 +02:00
OzoneH3 01dc82f678 Added alarm-clock flag to wrist watch and cell phone.
Added watch flag to cell phones and powerarmor helmets.
The watch flag item will also work if it is in the inventory.
Added the ability to set an alarm with an alarm-clock item in the sleep screen.
Traits like Heavy Sleeper, Bad Hearing and Bionic Ears have an effect on hearing the alarm.
Waiting can now be canceled with the "wait a turn" key (. of 5).
Waiting without a watch item has different options now.
UIMENU popups can be closed with ESC.
New player function has_item_with_flag(string).
New inventory function has_flag(string).
2013-07-25 17:06:41 +02:00
Christian Buskirk 492510db98 Merge PR #2049 - CBM:Uncanny Dodge
Conflicts:
	monattack.cpp
	monmove.cpp
2013-07-25 04:56:51 -07:00
Christian Buskirk 971c6540e8 Merge PR #2079 - Skill book focus rebalance 2013-07-25 04:43:40 -07:00
Christian Buskirk 27160054bc Merge PR #2146 - Mutation loss category balance 2013-07-25 04:42:48 -07:00
Christian Buskirk aa7325ecca Merge PR #2161 - Autopickup inventory option 2013-07-25 04:41:17 -07:00
Christian Buskirk de25b8b250 Merge PR #2162 - Fix breaking waits 2013-07-25 04:39:50 -07:00
Christian Buskirk 4727789e09 Merge PR #2163 - Makefile updates 2013-07-25 04:38:48 -07:00
Christian Buskirk 30ced92b12 Merge PR #2165 - Profession fixes 2013-07-25 04:31:20 -07:00
Christian Buskirk 358387befb Merge PR #2164 - Biker profession typo 2013-07-25 04:30:16 -07:00
Christian Buskirk 24983bab4e Merge PR #2167 - Probability/Vehicle interaction fix 2013-07-25 04:29:16 -07:00
Christian Buskirk 92243e22fe Merge PR #2178 - Raise tile item limit 2013-07-25 04:27:26 -07:00
Christian Buskirk 6edfbaecfe Merge PR #2179 - damage message fix 2013-07-25 04:19:31 -07:00
Christian Buskirk b78c12d56c Small syntax fix.
Dang my python habits!
2013-07-25 04:06:50 -07:00
OzoneH3 aca475270d Merge branch 'master' of https://github.com/CleverRaven/Cataclysm-DDA into time_clock 2013-07-25 09:39:19 +02:00
OzoneH3 79f2c4ad94 Merge branch 'time_clock' of https://github.com/OzoneH3/Cataclysm-DDA into time_clock
Conflicts:
	game.cpp
2013-07-25 09:39:12 +02:00
OzoneH3 1d863b206b Added alarmclock option to the sleep menu. 2013-07-25 08:59:01 +02:00
nanorumMETALLICUS 04123e385d prevent "cut yourself" message if no damage 2013-07-24 23:39:28 -04:00
GlyphGryph 1d01a4665a Changed the name from trains_skill to skill_used 2013-07-24 22:25:51 -04:00
GlyphGryph dcdceeeb5c Fixed indentation and missing braces. 2013-07-24 21:59:21 -04:00
GlyphGryph a84c936197 Merge remote-tracking branch 'origin/pr/1' into fabrication_skill
Conflicts:
	data/raw/recipes.json
2013-07-24 21:32:49 -04:00
GlyphGryph 30bc966b4e Broke skill system into trained skills and required skills. Fabrication introduced as test case. 2013-07-24 21:13:25 -04:00
fnord 467c179b03 1000/1024 is not enough for everybody 2013-07-24 18:09:23 -05:00
Christian Buskirk 0c50593a39 Update Picklock algorithm 2013-07-24 15:26:18 -07:00
Christian Buskirk 5a79f78d36 Merge split messages 2013-07-24 13:14:43 -07:00
Christian Buskirk 3496114855 Remove unused function 2013-07-24 13:04:14 -07:00
Peter Lacey-Bordeaux 954ece7662 npc 2013-07-24 14:42:59 -04:00
Peter Lacey-Bordeaux 1cce186129 npcmove 2013-07-24 14:41:49 -04:00
Peter Lacey-Bordeaux 29dbefe291 npctalk.cpp 2013-07-24 14:41:11 -04:00
Peter Lacey-Bordeaux 575534b435 player.cpp 2013-07-24 14:40:18 -04:00
Peter Lacey-Bordeaux ba84565c29 change ranged.cpp to add_item_or_charges 2013-07-24 14:37:18 -04:00
Peter Lacey-Bordeaux 82e5ae27dc changed the folding bike to use add_item_or_charges 2013-07-24 14:35:21 -04:00
Peter Lacey-Bordeaux 061868c1e3 changed to _or_charges in veh_interact.cpp 2013-07-24 14:27:50 -04:00
Peter Lacey-Bordeaux 08c86110e4 code is one } poorer 2013-07-24 14:23:07 -04:00
Peter Lacey-Bordeaux 8a34f7f70c changed casing adding to add_item_or_charges 2013-07-24 14:20:51 -04:00
Peter Lacey-Bordeaux f0a21d100f stuff you can craft should come up first 2013-07-24 13:31:05 -04:00
Darth Servo d11ab299c2 Fabrication Skill Recipe adjustments 2013-07-24 10:01:15 -04:00
Robert Sørlie 0ae9216f2e A small bugfixfix 2013-07-24 15:59:53 +02:00
utunnels d3b4a9c7e4 Add translation support for mission.cpp 2013-07-24 16:45:07 +08:00
Eric 4ab7df28b8 Properly board vehicle when using probability travel to enter 2013-07-24 01:06:26 -07:00
Eric 130905be12 Unboard vehicle when using probability travel to exit 2013-07-24 00:57:51 -07:00
Christian Buskirk 7e84f706c9 Update new items to new weights 2013-07-23 15:12:03 -07:00
fnord 8ebe261feb Add more colors: c_(whatever)_(white|green|yellow|magenta|cyan) as
well as additional (...)_background kludge functions. Colors would
be more versatile if redefined to be consistent.
2013-07-23 17:09:00 -05:00
Christian Buskirk 2bddc3bea6 Syncronize PR to master
Conflicts:
	data/raw/items/armor.json
	game.cpp
	options.cpp
2013-07-23 14:49:06 -07:00
Christian Buskirk d847e7172a Convert ammo.json to new weight system 2013-07-23 14:31:09 -07:00
fnord bf297dd5ed monster group fix:
+ overmap::monsters_at bounds checking is 0 - OMAPX*2 as per current
      usage and monster_group data.
    + spawn_mon: Now implicitly uses square range checking for diffuse groups
    + overmap::is_safe multiplies arguments by 2, as per current usage
    + commented functions to document their differing coordinate arguments
npc spawn fix:
    + game::load_npcs was using rl_dist for bounds checking. Now uses square_dist
square_dist:
    + square dist is square. Always.
2013-07-23 16:14:47 -05:00
fnord 43f199216a tinymap: initialize vehicle cache for mapgen, make error message useful 2013-07-23 15:58:50 -05:00
Christian Buskirk 98a90fc69b Add missing Zombie Survival Guide for student profession 2013-07-23 13:49:53 -07:00
Christian Buskirk 1bff9bc848 Fix tinkerer profession 2013-07-23 13:09:54 -07:00
Christian Buskirk 2492231949 Fix sheriff typo 2013-07-23 12:56:48 -07:00
utunnels c7373231f3 Update pot file. 2013-07-24 00:13:54 +08:00
utunnels 4b12d2b6b1 Make disease effect strings a whole part so symbols can also be translated. 2013-07-24 00:07:33 +08:00
Peter Lacey-Bordeaux bd791c5b01 fixed typo 2013-07-23 11:51:17 -04:00
Robert Sørlie 977d3de882 Updated makefile to include rc-files
when NATIVE=win32 or CROSS=something
2013-07-23 17:46:14 +02:00
utunnels 9e5fd0c128 Add translation support to more files. 2013-07-23 23:17:33 +08:00
fnord d5729cecf0 speed up map::load over %1000 by using tinymap, potentially eliminating
4212 needless temporary submaps in map::generate
(which resulted in 2343168+ std::vector constructor/destructors)

before: total 626ms, generate(36): 611ms, 4356 submaps created (4212 temporary)
now: total: 44ms, map::generate x 36: 30ms, 144 submaps created
2013-07-23 10:07:41 -05:00
Robert Sørlie 7c9d86a764 BugFix: Break wait now possible; and...
WinGDI speedup during continous actions
2013-07-23 16:41:41 +02:00
utunnels e6684a78da Artifact name bug fix. 2013-07-23 22:15:36 +08:00
utunnels 0a6c64dd34 Add translation support for artifact.cpp 2013-07-23 21:32:07 +08:00
utunnels 33380f96ac Merge branch 'master' of github.com:CleverRaven/Cataclysm-DDA into optionsfix
Conflicts:
	iuse.cpp
2013-07-23 20:16:36 +08:00
OzoneH3 1679d4b943 Add/Remove pickup rules with the inventory item menu. 2013-07-23 13:58:26 +02:00
Christian Buskirk e2919e115f Merge PR #2019 - i18n message handling
Conflicts:
	melee.cpp
	ranged.cpp
2013-07-23 01:29:05 -07:00
Christian Buskirk e6449e58c0 Merge PR #2140 - Ammo fixes 2013-07-23 01:16:24 -07:00
Christian Buskirk 4628c00125 Merge PR #2128 - Beanbag rounds 2013-07-23 01:15:25 -07:00
Christian Buskirk 256bc9e337 Merge PR #2137 - Field optimizations 2013-07-23 01:07:41 -07:00
Christian Buskirk 86cd5ca442 Revert "Throw a single item from a stack of items instead of the whole stack."
This reverts commit 6ecf812533.
2013-07-23 01:02:33 -07:00
utunnels a62ecbe4cb Add translation support for addiction.cpp 2013-07-23 15:51:35 +08:00
utunnels be596061a3 Add translation support for action.cpp 2013-07-23 15:37:15 +08:00
utunnels 6cc1a1f184 Add translation support for bodypart.cpp 2013-07-23 15:33:54 +08:00
utunnels be08f8da14 Add translation support for crafting.cpp 2013-07-23 15:27:57 +08:00
utunnels b86facc822 Add translation support for computer.cpp 2013-07-23 15:01:16 +08:00
utunnels b3ace27b3e Merge branch 'master' of github.com:CleverRaven/Cataclysm-DDA into optionsfix
Conflicts:
	game.cpp
	options.cpp
2013-07-23 14:07:42 +08:00
utunnels 7fa3504a50 Fix game.cpp item menu text translation. Finished editing iuse.cpp. 2013-07-23 13:51:45 +08:00
Robert Sørlie 9c78fb76d0 WinGDI center window properly
Takes taskbars ant the like into consideration
2013-07-23 04:48:47 +02:00
Kevin Granade bf64647f65 Merge Int-dependent skill rust, Windows icon fix, autopickup optimization, computer message fix, and input delay removal. 2013-07-22 19:17:50 -05:00
Kevin Granade 74958d054d Call vadd_msg instead of add_msg for player messages in add_msg_player_or_npc.. 2013-07-22 18:08:08 -05:00
Robert Sørlie 8332f46c1f WinGDI version speedup
Very noticable
2013-07-22 22:57:00 +02:00
Robert Sørlie 2ccb2dec91 BugFix: Computer messages would in some cases be cleared the instant they were printed
Aaand cleaned up a little
2013-07-22 22:05:10 +02:00
Robert Sørlie bc9c0098ff AStyle computer.cpp, computer.h 2013-07-22 22:05:10 +02:00
utunnels 32a0798f2e substring should be substr. 2013-07-22 23:54:47 +08:00
utunnels 93638cf9e5 More _( ). Still unfinished and need to fix grammar tricks in iuse.cpp. 2013-07-22 23:38:41 +08:00
OzoneH3 f5fd6ff6d5 Autopickup performanceboost with a prematched itemset.
Fixed rules ending with a * not matching lineends.
Fixed inventory itemmenu selection.
2013-07-22 12:51:30 +02:00
Christian Buskirk 96a6513179 Convert melee.json to new weight system 2013-07-22 01:11:55 -07:00
utunnels 108899fa65 Update translation files. 2013-07-22 14:30:36 +08:00
Eric 241fd3da6e move uncanny dodge check ahead of regular dodge check in melee.cpp, add is_u parameter to uncanny_dodge() to determine if message is displayed 2013-07-21 23:17:33 -07:00
Eric 4ca61b1442 check uncanny dodge before regular dodge, move energy cost 2013-07-21 22:48:23 -07:00
Christian Buskirk 17292d2dc2 Small weight tweak 2013-07-21 22:42:02 -07:00
Christian Buskirk 2fd370d25e Convert tools.json to new weight system 2013-07-21 22:40:36 -07:00
utunnels c876cfc62c Fix issue #2142, and add translation support. 2013-07-22 12:12:10 +08:00
Christian Buskirk 5cea3d76df Fix some missed charge conversions 2013-07-21 19:59:43 -07:00
Christian Buskirk f7b797bbbd Convert comestibles.json to new weight system 2013-07-21 19:02:19 -07:00
Alex Casey d75d4236c2 Make mutation loss weaken relevant categories 2013-07-22 12:00:52 +10:00
Christian Buskirk 67bbc5ad4c Convert archery.json to new weight system 2013-07-21 16:43:57 -07:00
NaturesWitness 607c8f13ee Merge remote-tracking branch 'upstream/master' 2013-07-21 19:43:11 -04:00
Kevin Granade 6ecf812533 Throw a single item from a stack of items instead of the whole stack. 2013-07-21 18:33:11 -05:00
Christian Buskirk 4b8a447843 Convert mods.json to new weight system 2013-07-21 14:53:16 -07:00
Christian Buskirk 432c9a43ea Update containers.json to new weight system 2013-07-21 14:38:27 -07:00
Christian Buskirk 21a5b80eb1 Convert books.json to new weight system 2013-07-21 14:25:44 -07:00
Christian Buskirk c5a47feca8 Convert armor.json to new weight system 2013-07-21 14:06:56 -07:00
Christian Buskirk 7b58db24a3 Added missing chitin armguard recipe
Also adjusted metal leg guard recipe to be more in-line with it's
weight.
2013-07-21 12:48:30 -07:00
Kevin Granade cd639c8a86 Merge Mingw build fix, continuing gettextification, CBM tweaks, and a butchering tweak. 2013-07-21 14:47:56 -05:00
Robert Sørlie f6a36db235 Removed duped rc file 2013-07-21 16:26:33 +02:00
utunnels 57dab3ef9c Update translation files. 2013-07-21 17:59:16 +08:00
utunnels 40c9e56ba7 Add missing game::init_fields function. 2013-07-21 17:37:28 +08:00
utunnels 44506152f3 Move from header to cpp, more. 2013-07-21 17:17:06 +08:00
utunnels 2fad551237 Move translation related strings from headers to cpps. 2013-07-21 17:05:56 +08:00
utunnels 91a730720e Beat extra tabs added by mistake while formating traits. 2013-07-21 16:49:45 +08:00
utunnels ff70f12362 Move traits from pldata.h to player.cpp 2013-07-21 16:44:22 +08:00
utunnels 24196cac9b Sort pot by file names. 2013-07-21 16:20:52 +08:00
utunnels 5ce5ec36bc Update pot file. 2013-07-21 16:11:19 +08:00
utunnels cbd4418e4e Move variables from facdata.h to faction.cpp. Add _( ) to bionics.cpp. 2013-07-21 15:56:11 +08:00
gmcnew 008bcebaf0 Fix butchering difficulty with Survival skill < 3. 2013-07-21 05:24:44 +00:00
Kevin Granade f48dbd5d7a Add missing ammo name and default ammo for .454 and .500. 2013-07-20 23:33:10 -05:00
utunnels dce151ab9b Move clocale behind libintl.h to resolve std::setlocale conflict. 2013-07-21 12:31:53 +08:00
utunnels 69623f2a36 Move <cstdio> and <clocale> to translations.h 2013-07-21 11:55:44 +08:00
utunnels 2a22fa3233 Merge branch 'master' of github.com:CleverRaven/Cataclysm-DDA into moregettext 2013-07-21 11:55:12 +08:00
Alex Casey dc7d5236d0 Reworked mutation_data to make trait vailidity more obvious 2013-07-21 13:11:31 +10:00
Kevin Granade 75c8c64218 Replace non-functional vargs handling with a template-based system for substituting in the NPCs name in messages. 2013-07-20 21:26:25 -05:00
Robert Sørlie dd8d60a067 Somehow the project didn't get saved. Now it is 2013-07-21 02:50:41 +02:00
Kevin Granade 9a19dcd2a8 Merge linewrap fix, debug message removal, more doxygen annotation, and a lightmap generation optimization. 2013-07-20 18:44:35 -05:00
Kevin Granade c0c81848d0 Stash a reference to a field instead of a copy of it. 2013-07-20 18:20:31 -05:00
Kevin Granade 0bf3fb491f Grab a local reference to a retrieved field in many places instead of retrieving it multiple times. 2013-07-20 18:19:20 -05:00
Robert Sørlie e48d813ddb Very small cleanup / warning fix 2013-07-21 00:14:54 +02:00
Robert Sørlie f33ee7ac51 Windows icon fix + related code cleanup 2013-07-21 00:03:07 +02:00
fnord 4009d6502d lightmap: Don't iterate unless you need to 2013-07-20 14:52:37 -05:00
utunnels fb3dd65a65 Temporay solution to fix gettext problems. 2013-07-21 02:17:22 +08:00
utunnels 4507889020 Bug fix. 2013-07-21 00:27:41 +08:00
NaturesWitness c36648e9bb Merge remote-tracking branch 'upstream/master' 2013-07-20 11:43:47 -04:00
cib 1225a8c3fd Added more doxygen comments to vehicle.h 2013-07-20 15:00:23 +02:00
cib 4a3fe0cbdc Added more doxygen comments to map.h 2013-07-20 15:00:12 +02:00
Costin Olteanu 59d6e5f744 Forgot to remove testing message 2013-07-20 14:22:43 +03:00
utunnels fd0f1c33ae Add missing header for facdata.h. Update cataclysm-dda.pot 2013-07-20 17:05:29 +08:00
Fergus Dall 1ba83ccbb4 Make electroshock unit an active bionic 2013-07-20 18:25:36 +09:30
Fergus Dall 691537345e Make heat drain only work when active 2013-07-20 18:23:48 +09:30
utunnels 798bbfb128 _( ) Factions 2013-07-20 16:48:17 +08:00
GalenEvil 9a13f76ec3 Merge branch 'master-2'
Conflicts:
	construction.cpp
	crafting.cpp
2013-07-20 03:22:39 -05:00
GalenEvil f2b9282169 Alteration of Project file 2013-07-20 03:21:09 -05:00
fnord 5eb07c3fce Restore '\n' parsing to foldstring. Fix border-overrun in popups. 2013-07-20 00:41:32 -05:00
Kevin Granade cf17a33d1c Add stunning effect to beanbag rounds. 2013-07-20 00:22:10 -05:00
Fergus Dall 7c2faed928 Make Heat Drain only use power on a successful drain 2013-07-20 13:34:29 +09:30
Fergus Dall 83220975bc Make Heat Drain an active bionic 2013-07-20 13:34:01 +09:30
utunnels 4cfd8b2f5c _( ) ranged.cpp 2013-07-20 11:55:18 +08:00
utunnels a548f79a7f _( ) mondeath.cpp 2013-07-20 11:30:14 +08:00
utunnels c2e2bf777c _( ) monattack.cpp 2013-07-20 11:22:22 +08:00
Christian Buskirk d5e1645748 Convert ranged.json to new weight system 2013-07-19 19:24:18 -07:00
Christian Buskirk 49df62d090 Convert instruments.json to new weight system 2013-07-19 19:23:50 -07:00
Kevin Granade 9bc4e41e66 Merge Beanbag ammo.
Conflicts:
	data/raw/items/ammo.json
2013-07-19 20:40:14 -05:00
Kevin Granade 0fa51e28ef Merge initial Doxygen support, rotatable vehicle lights, JSON error checking, Autopickup rule file handling fix, and a batch of new professions and supporting items. 2013-07-19 19:35:53 -05:00
Kevin Granade 60cc53a1e7 Merge more gettext annotation. 2013-07-19 18:50:01 -05:00
Stone94 ff518fe4f6 forgot i never removed the TWD reference in my rough draft DOH! :P 2013-07-19 18:07:55 -03:00
Stone94 4b79a11978 Update armor.json 2013-07-19 16:43:02 -03:00
Stone94 e67cd62ba2 Update professions.json 2013-07-19 16:29:52 -03:00
Stone94 8bf3950aae undue to move to branch instead im so forgetful :P 2013-07-19 16:27:31 -03:00
Stone94 bb5f035c33 Update professions.json 2013-07-19 16:24:24 -03:00
Kryptos fa9d442fa1 added _() in help.cpp 2013-07-19 23:38:32 +06:00
OzoneH3 0f10723933 Autopickup load function couldnt handle spaces in lines .... 2013-07-19 19:00:38 +02:00
Costin Olteanu 6e9ab8b107 Fixed calling JSON from static functions 2013-07-19 17:25:40 +03:00
Costin Olteanu 34a8156bfd init function throw exceptions with error message 2013-07-19 14:40:49 +03:00
utunnels dfd5cbf613 Wrap strings in strings in game.cpp with _( ). 2013-07-19 14:50:05 +08:00
Abalieno 6d93de7b02 Update Makefile.Windows
Couldn't compile here until I added explicit reference to the libraries. This on Windows 7 + MinGW (standard)
2013-07-19 05:59:56 +02:00
Kevin Granade 7c8d5009ac Release 0.7.1 2013-07-18 21:47:16 -05:00
Kevin Granade 210273f3ca Merge remote-tracking branch 'dda/master' into dda-master 2013-07-18 21:47:02 -05:00
GalenEvil 2bc5d630b5 Merge branch 'origin/master' 2013-07-18 21:35:02 -05:00
GalenEvil d9414565ff Merge remote-tracking branch 'origin/pr/2113' 2013-07-18 21:29:50 -05:00
Kevin Granade 5590d9beb9 Merge pull request #2098 from kevingranade/update-msvc-versioning
Update version for MSVC project builds.
2013-07-18 17:58:23 -07:00
Kevin Granade e62ca51fd6 Merge branch 'master' of github.com:CuriousRaven/Cataclysm-DDA into dda-master 2013-07-18 19:55:22 -05:00
GalenEvil 4d31482045 Merge branch 'origin/master' 2013-07-18 19:25:22 -05:00
GalenEvil f116c1bad6 Merge remote-tracking branch 'origin/pr/2105' 2013-07-18 19:19:34 -05:00
GalenEvil 93031408ff Merge remote-tracking branch 'origin/pr/2102' 2013-07-18 19:19:10 -05:00
Kevin Granade 76e3ca7292 Move check for ammo effect outside of time_to_fire() to avoid dereferencing (potentially null) currammo. 2013-07-18 19:09:34 -05:00
GalenEvil 220fec1701 Merge remote-tracking branches 'origin/pr/2104', 'origin/pr/2100' and 'origin/pr/2099' 2013-07-18 19:08:23 -05:00
Kevin Granade ab998b1734 Merge fix to gunmod attachment check. 2013-07-18 18:16:12 -05:00
somerandomlogin 1b3359beaa Rotatable headlights 2013-07-18 20:36:24 +04:00
cib ff8cc63ff2 Rework the inventory letter(invlet) assignment system.
Instead of relying on item.invlet to store the preferred letter for an item, we now cache the preferred letter in the inventory.

This commit also fixes several locations in the code where inventory:additem should have been called with keep_invlet = true. This caused a bug where items would appear to have a different letter than they actually had, which only didn't happen often because items tended to keep their assigned invlet.
2013-07-18 18:32:26 +02:00
Costin Olteanu dcc8ff1dd9 Added error code exit 2013-07-18 18:53:11 +03:00
Costin Olteanu 41615618b5 Aligned some code 2013-07-18 18:47:24 +03:00
Costin Olteanu d4b31ab5fa Implemented more file checks, standardised error messages 2013-07-18 18:36:30 +03:00
NaturesWitness ab314ac75f Merge remote-tracking branch 'upstream/master' 2013-07-18 09:47:16 -04:00
somerandomlogin b052ca9871 Fix for weapon mods with no ammo types 2013-07-18 17:38:23 +04:00
GalenEvil 9396c17c02 Change in how Vehicle Examination window is displayed so it works in 12x12 View Screens
Added a logging ability for constant values to DebugLog.
2013-07-17 23:45:24 -05:00
Kevin Granade 734cfc40f9 Strip out references to a removed ammunition in spawn lists. 2013-07-17 22:40:02 -05:00
Kevin Granade 401dd4c319 Don't draw item glyphs on top of furniture glyphs. 2013-07-17 21:47:26 -05:00
RJ Costanzo 6a2801663e Beanbags
Adds beanbag ammos for shotguns and 40mm
2013-07-17 22:42:55 -04:00
Kevin Granade f830f19fe0 Merge some sleep fixes. 2013-07-17 20:51:01 -05:00
Kevin Granade 766a707722 Fix typo in spawn list. 2013-07-17 20:03:22 -05:00
Kevin Granade 03f59c5c4b Supress pickup from vehicle when doing autopickup. 2013-07-17 19:07:43 -05:00
Kevin Granade 336820e22e Remove coverage property from wristwatch to prevent ensumberance. 2013-07-17 18:56:58 -05:00
Kevin Granade eeede6a039 Update version for MSVC project builds. 2013-07-17 18:05:42 -05:00
Peter Lacey-Bordeaux 945fe528ff made coughing from smoke wake you up 2013-07-17 16:18:13 -04:00
cib e560247e50 Added a doxygen section to CONTRIBUTING.md 2013-07-17 18:30:49 +02:00
somerandomlogin b2547996be Vehicle bed sleepiness fix. 2013-07-17 19:47:53 +04:00
cib 89795286f7 Removed cryptic/useless comment that would be recognized as doxygen comment. 2013-07-17 17:29:52 +02:00
cib 65b543e0ae Doxygen commented mapbuffer.h 2013-07-17 16:10:19 +02:00
cib 9015dae70c Added doxygen configuration and doxygen comments to map.h 2013-07-17 15:54:53 +02:00
NaturesWitness 544ea39c96 Skill Book Focus Drain Rebalance
Reduce focus loss from skill books from -100 to -50.  Had this fix as
part of my studious nature perk but my total inability to get gettext to
work has essentially cut me out of development :(   I'm not going to be
able to finish studious nature, so I thought I'd just submit this by
itself.  Talked with Funnyman about this when I was still able to work
on my perk mod, and we seemed to think this value was pretty balanced
(Even Funnyman agreed the original value was WAY to high).  It worked
fine before with all my other changes, so I don't see any reason it
shouldn't work on its own.  Although for obvious reasons I can't test
it.  Well this'll probably be my last pull request so I wish you all the
best with working on this awesome game.  I'll probably still play the
experimental builds occasionally but I can't see myself trying to code
anything new since I can't test it.  So see ya chummers, G'luck in your
struggles!  (Hope someone gets this reference)
2013-07-16 21:30:02 -04:00
NaturesWitness 8745ac51ff Revert "Skill book focus drain rebalance"
This reverts commit 8656f8f76d.
2013-07-16 21:26:09 -04:00
NaturesWitness 8656f8f76d Skill book focus drain rebalance
Reduce focus loss from skill books from -100 to -50.  Had this fix as
part of my studious nature perk but my total inability to get gettext to
work has essentially cut me out of development :(   I'm not going to be
able to finish studious nature, so I thought I'd just submit this by
itself.  Talked with Funnyman about this when I was still able to work
on my perk mod, and we seemed to think this value was pretty balanced
(Even Funnyman agreed the original value was WAY to high).  It worked
fine before with all my other changes, so I don't see any reason it
shouldn't work on its own.  Although for obvious reasons I can't test
it.  Well this'll probably be my last pull request so I wish you all the
best with working on this awesome game.  I'll probably still play the
experimental builds occasionally but I can't see myself trying to code
anything new since I can't test it.  So see ya chummers, G'luck in your
struggles!  (Hope someone gets this reference)
2013-07-16 21:24:10 -04:00
Eric 7b71c4882a ignore benign traps when dodging 2013-07-16 17:50:48 -07:00
Christian Buskirk 8d62745018 Conversion part 1
Converted artifacts, bionic code, FAQ, and some of Player + game code.
Added conversion function to convert for display.
2013-07-16 03:24:31 -07:00
Christian Buskirk 9d578a1d2f Create Metric Speeds option
Also enabled the mouse cursor option which had been broken at some
point.
2013-07-16 01:13:26 -07:00
Christian Buskirk 5ad0087a34 Fix merge conflicts
Conflicts:
	options.cpp
	options.h
2013-07-15 23:57:08 -07:00
Christian Buskirk 7dc8b368b3 Change player weight limits
Also adds a new option "Dangerous pickups", which when enabled will
cause players to automatically retain items (unloaded, casings, etc.)
that would cause them to go over the strain weight limit.
2013-07-15 20:21:51 -07:00
Christian Buskirk c2adc4aff1 Add strain harm 2013-07-15 19:26:25 -07:00
Christian Buskirk cf320539d4 Update overburdened function
Also removed unneeded int->int->double->int conversion
2013-07-15 18:27:36 -07:00
Christian Buskirk e6275ef32e Replace duplicate code 2013-07-15 17:37:07 -07:00
Christian Buskirk 6adb4647f8 Lowered maximum weight carried
100lbs for an avg person (8 STR). Based on military rucksack run data.
2013-07-15 16:43:07 -07:00
Eric c48b1bfd94 Fix uncanny_dodge() comment in player.h 2013-07-13 22:45:58 -07:00
Eric 084dc2c78e fix logic error 2013-07-13 22:42:50 -07:00
Eric f1f31a083b Add CBM: Uncanny Dodge 2013-07-13 22:02:13 -07:00
Vollch 1ea95529a8 Intelligence dependent skill rust 2013-07-14 01:00:37 +04:00
Kevin Granade 7db1372eb7 Refactor handling messages about player or NPCs to be more i18n friendly. 2013-07-11 20:32:29 -05:00
Kevin Granade 765a3b60b4 Merge player or npc message display. 2013-07-11 19:01:01 -05:00
GalenEvil 4a250215be Merge branch 'master' of https://github.com/GalenEvil/Cataclysm-DDA-1
Conflicts:
	game.cpp
	itype.h
	player.cpp
2013-07-11 17:58:10 -05:00
Peter Lacey-Bordeaux 2684d3ad99 fixed small bug 2013-07-09 11:07:09 -04:00
Peter Lacey-Bordeaux 9064cd3d48 merged with latest version; compiles 2013-07-09 10:56:18 -04:00
Peter Lacey-Bordeaux f4b78f255b merged with latest code 2013-07-09 10:46:00 -04:00
Peter Lacey-Bordeaux 52e99a44ce updated iuse.cpp with new add_msg stuff 2013-07-09 10:29:25 -04:00
Peter Lacey-Bordeaux ea6b51f757 updated disease.cpp with add_msg stuff 2013-07-09 10:24:43 -04:00
Peter Lacey-Bordeaux 29072a1418 fixed ranged.cpp 2013-07-09 09:54:44 -04:00
Peter Lacey-Bordeaux 8f5ac59e04 converted melee.cpp over to add_msg_action 2013-07-09 09:31:58 -04:00
Peter Lacey-Bordeaux b0dac2209e finished modifiying player.cpp 2013-07-09 09:09:25 -04:00
Peter Lacey-Bordeaux 9c7cc37aa5 part way through changing player.cpp to add_msg_action 2013-07-09 01:05:41 -04:00
277 changed files with 616964 additions and 98958 deletions
+9 -4
View File
@@ -2,22 +2,26 @@ cataclysm
cataclysm-tiles
data/*.template
save/
graveyard/
memorial/
obj/
debug.log
logg.txt
bindist/
cataclysmdda-*
objwin/
cataclysm.exe
version.h
Cataclysm.exe
CataclysmWin.cscope_file_list
CataclysmWin.depend
CataclysmWin.layout
*.exe
*.dll
# Visual Studio files
*.suo
*.user
Cataclysm.sdf
*.sdf
*.pdb
*.ilk
Release*/
Debug*/
*.opensdf
@@ -27,6 +31,7 @@ Debug*/
\#*
*.bak
*.cbTemp
*.swp
gmon.out
# System Files
+89
View File
@@ -0,0 +1,89 @@
# WARNING: Only linux is currently supported by this cmake build file.
# This file is used to build cataclysm with CMake.
#
# To use it, install cmake, then:
#
# cd cataclysm
# mkdir build
# cd build
# cmake -G "Unix Makefiles" -DLOCALIZE=ON -DSDL=OFF ..
# make
#
# This will build and install cataclysm into the build directory.
#
# "Unix Makefiles" is a generator, you can get a list of supported generators
# on your system by running "cmake" without any arguments.
#
# -DOPTION_NAME=ON/OFF enables/disables OPTION_NAME
CMAKE_MINIMUM_REQUIRED(VERSION 2.8.8)
PROJECT(CataclysmDDA)
OPTION(LOCALIZE "Toggle gettext localization/translation." ON)
OPTION(SDL "Use SDL curses emulation instead of terminal support." OFF)
OPTION(TILES "Enable tileset support." OFF)
# Note: The CMake documentation says it's better to list the actual source
# files here, as otherwise cmake won't know to rerun when a new file
# is added. However, currently the Makefile also just scans for source
# files, so this approach should be "good enough".
FILE(GLOB CataclysmDDA_SRCS *.cpp)
FILE(GLOB CataclysmDDA_HDRS *.h)
ADD_EXECUTABLE(cataclysm ${CataclysmDDA_SRCS} ${CataclysmDDA_HDRS})
# Custom command that will be executed whenever the "cataclysm" target is built.
# Copy all the relevant game data into the build directory.
ADD_CUSTOM_COMMAND(
TARGET cataclysm PRE_BUILD
COMMAND ${CMAKE_COMMAND} -E copy_directory ${CMAKE_SOURCE_DIR}/data $<TARGET_FILE_DIR:cataclysm>/data
COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_SOURCE_DIR}/LICENSE $<TARGET_FILE_DIR:cataclysm> # Don't forget the license :)
)
IF(MINGW)
add_definitions("-D_WINDOWS -D_MINGW -D_WIN32 -DWIN32 -D__MINGW__")
ENDIF()
IF(LOCALIZE)
add_definitions(-DLOCALIZE)
#TARGET_LINK_LIBRARIES(cataclysm
# intl
#)
ENDIF()
# TODO: windows rc stuff
IF(SDL OR TILES)
# CMake ships with a few helpful include's to find common libraries
# like SDL
Include(FindSDL)
Include(FindSDL_ttf)
Find_Package(SDL REQUIRED)
Find_Package(SDL_ttf REQUIRED)
TARGET_LINK_LIBRARIES(cataclysm ${SDL_LIBRARY} ${SDLTTF_LIBRARY})
IF(TILES)
# Install GFX directory
ADD_CUSTOM_COMMAND(
TARGET cataclysm PRE_BUILD
COMMAND ${CMAKE_COMMAND} -E copy_directory ${CMAKE_SOURCE_DIR}/gfx $<TARGET_FILE_DIR:cataclysm>/gfx
)
Include(FindSDL_image)
TARGET_LINK_LIBRARIES(cataclysm ${SDLIMAGE_LIBRARY})
ADD_DEFINITIONS(-DSDLTILES)
ELSE()
ADD_DEFINITIONS(-DTILES)
ENDIF()
ELSEIF(MSVC OR MINGW)
# On windows our default isn't curses, but rather GDI
TARGET_LINK_LIBRARIES(cataclysm gdi32 intl iconv winmm)
add_definitions(-Wl,-stack,12000000,-subsystem,windows)
ELSE()
TARGET_LINK_LIBRARIES(cataclysm curses)
ENDIF()
-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
+1 -1
View File
@@ -41,7 +41,7 @@ sudo apt-get install autoconf bison flex cmake git automake intltool libtool sco
mkdir -p ~/src/mxe
git clone -b stable https://github.com/mxe/mxe.git ~/src/mxe
cd ~/src/mxe
make gcc
make gcc glib
```
### Building ###
+39 -29
View File
@@ -6,45 +6,57 @@ I haven't played it extensively but it builds and runs.
Not sure if it compiles with older OS/XCode versions.
This worked for me, your mileage may vary.
## Requirements
### SDL
Cataclysm-DDA uses SDL, SDL\_ttf, ncurses, and gettext.
SDL can be installed as frameworks or shared libraries.
### SDL Frameworks
SDL, SDL\_image, and SDL\_ttf are needed for the tiles build.
[**SDL framework**](http://www.libsdl.org/download-1.2.php)
http://www.libsdl.org/release/SDL-1.2.15.dmg
[**SDL\_image framework**](http://www.libsdl.org/projects/SDL_ttf/)
[**SDL\_image framework**](http://www.libsdl.org/projects/SDL_image/)
http://www.libsdl.org/projects/SDL_image/release/SDL_image-1.2.12.dmg
[**SDL\_ttf framework**](http://www.libsdl.org/projects/SDL_ttf/)
http://www.libsdl.org/projects/SDL_ttf/release/SDL_ttf-2.0.11.dmg
Copy `SDL.framework` and `SDL_ttf.framework` to `/Library/Frameworks`
or `/Users/name/Library/Frameworks`.
Copy `SDL.framework`, `SDL_image.framework`, and `SDL_ttf.framework`
to `/Library/Frameworks` or `/Users/name/Library/Frameworks`.
### ncurses, gettext, libsdl, lib\_ttf
Alternately, shared libraries (libsdl, libsdl\_image, libsdl\_ttf) can be used
instead of frameworks. Install with a package manager (Fink, MacPorts,
Homebrew, pkgsrc) or build and install from source.
Using a package manager:
[Fink](http://fink.thetis.ig42.org), [Homebrew](http://mxcl.github.io/homebrew/),
[MacPorts](http://www.macports.org), or [pkgsrc](http://www.pkgsrc.org/).
### ncurses, gettext
Install gettext and ncurses. Also install libsdl and libsdl\_ttf if you're
not using frameworks as above.
ncurses and gettext are needed for localization.
Install with a package manager, or build from source and install.
Without a package manager, building from source isn't too difficult;
follow instructions in the source archives.
* ncurses needs wide character support enabled.
## Build
From the Cataclysm-DDA source folder:
The easiest way to try it out is the console version without localization:
$ make NATIVE=osx LOCALIZED=0 OSX_MIN=10.6
For localization support and/or to use libsdl (not frameworks):
$ export CXXFLAGS="-I/path/to/include" LDFLAGS="-L/path/to/lib"
This adds search paths to find shared libraries outside of /usr and /usr/local.
This adds paths to find shared libraries outside of /usr and /usr/local.
Multiple `-I/...` or `-L/...` paths can be specified.
$ make NATIVE=osx RELEASE=1 TILES=1 FRAMEWORK=1 OSX_MIN=10.6
### Example builds:
Build a release version with SDL graphical tiles:
$ make FRAMEWORK=1 NATIVE=osx OSX_MIN=10.6 RELEASE=1 TILES=1 LOCALIZE=0
Build a debug version with SDL ASCII:
$ make FRAMEWORK=1 NATIVE=osx OSX_MIN=10.6 SDL=1 LOCALIZE=0
## Run
@@ -54,20 +66,18 @@ or
$ ./cataclysm-tiles
### Options
### Make Options
`NATIVE=osx` builds for OS X.
`FRAMEWORK=1` use frameworks; omit to use libsdl, libsdl\_image, libsdl\_ttf.
`RELEASE=1` builds an optimized 'release' version.
`LOCALIZED=0` disable localization; enabled by default (requires gettext and ncurses with wide character support).
`TILES=1` builds the SDL version; omit to build the ncurses/console version.
`NATIVE=osx` build for OS X.
`FRAMEWORK=1` uses frameworks; omit for libsdl, libsdl\_ttf.
`OSX_MIN=version` set `-mmacosx-version-min=` (for OS X > 10.5 set it to 10.6 or higher); omit for 10.5.
`OSX_MIN=version` sets `-mmacosx-version-min=` (mine needs to be 10.6); omit for 10.5.
`RELEASE=1` build an optimized 'release' version.
### Archive
`SDL=1` build the SDL version with ASCII characters.
$ make bindist NATIVE=osx TILES=1
Create a .tar.gz archive of the build; omit `TILES=1` for the console version.
`TILES=1` build the SDL version with graphical tiles.
+56 -3
View File
@@ -13,15 +13,64 @@ There are a couple of guidelines we suggest sticking to:
## Code Style
Current policy is to only update code to the standard style when changing a substantial portion of it, but **please** do this in a seperate commit. Blocks of code can be passed through astyle to ensure that their formatting is correct:
Current policy is to only update code to the standard style when changing a substantial portion of it, but **please** do this in a seperate commit. Blocks of code can be passed through astyle
to ensure that their formatting is correct:
astyle --style=allman --indent=spaces=4 --add-brackets --align-pointer=name
astyle --style=1tbs --indent=spaces=4 --align-pointer=name --max-code-length=100 --break-after-logical --indent-classes --indent-switches --indent-preprocessor --indent-col1-comments --min-conditional-indent=0 --pad-oper --add-brackets --convert-tabs
For example, from vi, set marks a and b around the block, then:
:'a,'b ! astyle --style=allman --indent=spaces=4 --add-brackets --align-pointer=name
:'a,'b ! astyle --style=1tbs --indent-spaces=4 --align-pointer=name --max-code-length=100 --break-after-logical --indent-classes --indent-switches --indent-preprocessor --indent-col1-comments --min-conditional-indent=0 --pad-oper --add-brackets --convert-tabs
## Doxygen Comments
Extensive documentation of classes and class members will make the code more readable to new contributors. New doxygen comments for existing classes are a welcomed contribution.
Use the following template for commenting classes:
```c++
/**
* Brief description
*
* Lengthy description with many words. (optional)
*/
class foo {
```
Use the following template for commenting functions:
```c++
/**
* Brief description
*
* Lengthy description with many words. (optional)
* @param param1 Description of param1 (optional)
* @return Description of return (optional)
*/
int foo(int param1);
```
Use the following template for commenting member variables:
```c++
/** Brief description **/
int foo;
```
Helpful pages:
http://www.stack.nl/~dimitri/doxygen/manual/commands.html
http://www.stack.nl/~dimitri/doxygen/manual/markdown.html#markdown_std
http://www.stack.nl/~dimitri/doxygen/manual/faq.html
### Guidelines for adding documentation
* Doxygen comments should describe behavior towards the outside, not implementation, but since many classes in Cataclysm are intertwined, it's often necessary to describe implementation.
* Describe things that aren't obvious to newcomers just from the name.
* Don't describe redundantly, `/** Map **/; map* map;` is not a helpful comment.
* When documenting X, describe how X interacts with other components, not just what X itself does.
### Building the documentation for viewing it locally
* Install doxygen
* `doxygen doxygen_doc/doxygen_conf.txt `
* `firefox doxygen_doc/html/index.html` (replace firefox with your browser of choice)
## Example Workflow
#### Setup your environment
@@ -76,6 +125,10 @@ For example, from vi, set marks a and b around the block, then:
* Note: any new commits to the `new_feature` branch on GitHub will automatically be included in the pull request, so make sure to only commit related changes to the same branch.
## Pull Request Notes
* Mark pull requests that are still being worked on with [WIP] at the end of the title
* When a pull request is ready to be reviewed remove the [WIP]
* Mark pull requests that need commenting/testing by others with [CR]
## Advanced Techniques
+130 -6
View File
@@ -13,10 +13,55 @@
<Option compiler="gcc" />
<Compiler>
<Add option="-Os" />
<Add option="-O2" />
</Compiler>
</Target>
<Target title="Release - Localized">
<Option output="Cataclysm" prefix_auto="1" extension_auto="1" />
<Option object_output="obj/Release/" />
<Option type="0" />
<Option compiler="gcc" />
<Compiler>
<Add option="-Os" />
<Add option="-O2" />
<Add option="-DLOCALIZE" />
</Compiler>
<Linker>
<Add option="-Wl,-stack,12000000,-subsystem,windows" />
<Add option="-static -lgdi32" />
<Add library="intl" />
<Add library="iconv" />
</Linker>
</Target>
<Target title="Release -SDL">
<Option output="Cataclysm" prefix_auto="1" extension_auto="1" />
<Option object_output="obj/Release/" />
<Option type="0" />
<Option compiler="gcc" />
<Compiler>
<Add option="-Os" />
<Add option="-O2" />
<Add option="-DTILES" />
</Compiler>
<Linker>
<Add library="libSDL.dll" />
<Add library="SDL_ttf" />
</Linker>
</Target>
<Target title="Release -SDL -Localized">
<Option output="Cataclysm" prefix_auto="1" extension_auto="1" />
<Option object_output="obj/Release/" />
<Option type="0" />
<Option compiler="gcc" />
<Compiler>
<Add option="-Os" />
<Add option="-O2" />
<Add option="-DLOCALIZE" />
<Add option="-DTILES" />
</Compiler>
<Linker>
<Add library="intl" />
<Add library="iconv" />
<Add library="libSDL.dll" />
<Add library="SDL_ttf" />
</Linker>
</Target>
<Target title="Debug">
@@ -30,15 +75,67 @@
</Compiler>
<Linker>
<Add option="-pg -lgmon" />
<Add option="-Wl,-stack,12000000,-subsystem,windows" />
<Add option="-static -lgdi32" />
</Linker>
</Target>
<Target title="Debug - Localized">
<Option output="Cataclysm" prefix_auto="1" extension_auto="1" />
<Option object_output="obj/Debug/" />
<Option type="0" />
<Option compiler="gcc" />
<Compiler>
<Add option="-pg" />
<Add option="-g" />
<Add option="-DLOCALIZE" />
</Compiler>
<Linker>
<Add option="-pg -lgmon" />
<Add library="intl" />
<Add library="iconv" />
</Linker>
</Target>
<Target title="Release - Tile Support">
<Option output="Cataclysm-Tiles" prefix_auto="1" extension_auto="1" />
<Option object_output="obj/TilesRelease/" />
<Option type="0" />
<Option compiler="gcc" />
<Compiler>
<Add option="-Os" />
<Add option="-O2" />
<Add option="-pg" />
<Add option="-DSDLTILES" />
<Add directory="3rdparty/include/SDL" />
</Compiler>
<Linker>
<Add option="-pg -lgmon" />
<Add library="3rdparty\lib\libSDL.dll.a" />
<Add library="3rdparty\lib\libSDLmain.a" />
<Add library="3rdparty\lib\x86\SDL_image.lib" />
<Add library="3rdparty\lib\x86\SDL_ttf.lib" />
<Add directory="3rdparty/lib" />
<Add directory="3rdparty/lib/x86" />
</Linker>
</Target>
</Build>
<Compiler>
<Add option="-Wextra" />
<Add option="-Wall" />
<Add option="-Wno-switch -Wno-sign-compare -Wno-missing-braces -Wno-unused-parameter" />
</Compiler>
<Linker>
<Add option="-Wl,-stack,12000000,-subsystem,windows" />
<Add option="-static" />
<Add library="gdi32" />
<Add library="winmm" />
</Linker>
<Unit filename="SDLMain.h" />
<Unit filename="action.cpp" />
<Unit filename="action.h" />
<Unit filename="addiction.cpp" />
<Unit filename="addiction.h" />
<Unit filename="advanced_inv.cpp" />
<Unit filename="advanced_inv.h" />
<Unit filename="animation_curses.cpp" />
<Unit filename="animation_tiles.cpp" />
<Unit filename="artifact.cpp" />
<Unit filename="artifact.h" />
<Unit filename="artifactdata.h" />
@@ -54,6 +151,10 @@
<Unit filename="building_generation.h" />
<Unit filename="calendar.cpp" />
<Unit filename="calendar.h" />
<Unit filename="cata_tiles.cpp" />
<Unit filename="cata_tiles.h" />
<Unit filename="catacharset.cpp" />
<Unit filename="catacharset.h" />
<Unit filename="catacurse.h" />
<Unit filename="catajson.cpp" />
<Unit filename="catajson.h" />
@@ -66,23 +167,28 @@
<Unit filename="crafting.cpp" />
<Unit filename="crafting.h" />
<Unit filename="cursesdef.h" />
<Unit filename="cursesport.cpp" />
<Unit filename="debug.cpp" />
<Unit filename="debug.h" />
<Unit filename="defense.cpp" />
<Unit filename="dialogue.h" />
<Unit filename="disease.cpp" />
<Unit filename="disease.h" />
<Unit filename="editmap.cpp" />
<Unit filename="editmap.h" />
<Unit filename="enums.h" />
<Unit filename="event.cpp" />
<Unit filename="event.h" />
<Unit filename="facdata.h" />
<Unit filename="faction.cpp" />
<Unit filename="faction.h" />
<Unit filename="field.cpp" />
<Unit filename="field.h" />
<Unit filename="game.cpp" />
<Unit filename="game.h" />
<Unit filename="gamemode.cpp" />
<Unit filename="gamemode.h" />
<Unit filename="gamesave.cpp" />
<Unit filename="get_version.h" />
<Unit filename="graffiti.cpp" />
<Unit filename="graffiti.h" />
<Unit filename="help.cpp" />
@@ -105,6 +211,14 @@
<Unit filename="itypedef.cpp" />
<Unit filename="iuse.cpp" />
<Unit filename="iuse.h" />
<Unit filename="iuse_software.cpp" />
<Unit filename="iuse_software.h" />
<Unit filename="iuse_software_kitten.cpp" />
<Unit filename="iuse_software_kitten.h" />
<Unit filename="iuse_software_snake.cpp" />
<Unit filename="iuse_software_snake.h" />
<Unit filename="iuse_software_sokoban.cpp" />
<Unit filename="iuse_software_sokoban.h" />
<Unit filename="keypress.cpp" />
<Unit filename="keypress.h" />
<Unit filename="lightmap.cpp" />
@@ -123,7 +237,6 @@
<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" />
@@ -140,6 +253,7 @@
<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" />
@@ -166,6 +280,8 @@
<Unit filename="overmap.h" />
<Unit filename="overmapbuffer.cpp" />
<Unit filename="overmapbuffer.h" />
<Unit filename="picofunc.cpp" />
<Unit filename="picofunc.h" />
<Unit filename="picojson.h" />
<Unit filename="player.cpp" />
<Unit filename="player.h" />
@@ -180,6 +296,8 @@
</Unit>
<Unit filename="rng.cpp" />
<Unit filename="rng.h" />
<Unit filename="sdlcurse.cpp" />
<Unit filename="sdltiles.cpp" />
<Unit filename="settlement.cpp" />
<Unit filename="settlement.h" />
<Unit filename="setvector.cpp" />
@@ -188,6 +306,7 @@
<Unit filename="skill.h" />
<Unit filename="text_snippets.cpp" />
<Unit filename="text_snippets.h" />
<Unit filename="tile_id_data.h" />
<Unit filename="tileray.cpp" />
<Unit filename="tileray.h" />
<Unit filename="translations.h" />
@@ -198,6 +317,7 @@
<Unit filename="tutorial.h" />
<Unit filename="ui.cpp" />
<Unit filename="ui.h" />
<Unit filename="uistate.h" />
<Unit filename="veh_interact.cpp" />
<Unit filename="veh_interact.h" />
<Unit filename="veh_type.h" />
@@ -206,6 +326,10 @@
<Unit filename="vehicle.h" />
<Unit filename="version.cpp" />
<Unit filename="version.h" />
<Unit filename="wcwidth.c">
<Option compilerVar="CC" />
</Unit>
<Unit filename="wdirent.h" />
<Unit filename="weather.cpp" />
<Unit filename="weather.h" />
<Unit filename="weather_data.cpp" />
-163
View File
@@ -1,163 +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
1.6 Adding a bionic
1) Edit data/raw/bionics.json and add your bionic near similar types.
2) Add the required attributes
id : "bio_rocketlauncher" // Text string used as identifier in the code.
name : "CBM: Rocket Launcher" // The bionic's name, as showed to the player.
cost : 10 // How many PUs it costs to use the bionic.
time : 0 // How long, when activated, between drawing cost. If 0, it draws power once.
description : "It's a rocket launcher, inside your arm!!" // A brief description of the bionic, as showed to the player.
3) Add any otional attributes
flags : ["ACTIVE"] // Used to flag the bionic as a specific type.
Supported flags:
"ACTIVE" : The bionic can be manually activated and deactivated.
"POWER" : The bionic provides a source of power.
"FAULTY" : The bionic is an unwanted one, will typically have negative effects.
Flags can be combined like so: ["ACTIVE","POWER","FAULTY"] (Don't add all these at once)
4) If you want the bionic to be available in the gameworld as an item, add it to itypedef.cpp
BIO_SINGLE(id, rarity, price, color, difficulty)
See 1.1 for more information about adding items.
FAQ
Q: What the heck is up with the map objects?
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.
View File
-106
View File
@@ -1,106 +0,0 @@
MODDING
Certain features of the game can be modified without rebuilding the game from
source code; you should be able to just modify the pertinent files and run the
game to see your changes. This attempts to document these features.
1.1 Adding a profession.
The data on professions is contained in data/raw/professions.json
The format of the file follows:
[
{
"ident" : "example", <-- This is a unique string that identifies the
profession; it is used internally by the game as
opposed to in the user interface.
"name": "Example Profession", <-- This is the name that will be displayed
on the user interface; this is
what you actually "see" in-game.
"description": "An example profession.", <-- This field contains the
description of the profession
that will be displayed in the
character creation screen.
"points" : 0, <-- This value describes the point cost of the profession;
note that negative numbers are accecptable. A positive
value will deduct points from the players total whereas
a negative one will give the player creation points.
"items": ["jeans", "tshirt", "sneakers"], <-- This list contains the items
a character will start with
if they choose this
profession.
"addictions" : [ <-- This is the OPTIONAL list of starting addictions.
{
"type": "nicotine", <-- The identifier of the addiction.
"intensity" : 10, <-- The intensity of the addiction.
}
],
"skills" : [ <-- This list is also OPTIONAL; it contains the starting
skills and their modified levels.
{
"name": "melee", <-- The identifier of the skill that will be modified.
"level" : 1 <-- The value that the skill will be modified; note that
this is NOT the starting level of the skill. It is
the value that the player's starting level will be
modified by. In other words, if the player puts 1
point into melee to give themselves level 2 melee,
taking this profession would add one additional level
resulting in level 3.
},
{
"name" : "dodge",
"level" : 1
}, <-- It is possible to list multiple skills for a single profession;
it's an unused feature in the current game.
]
},
]
1.2 Example of adding a profession.
Let's say we want to add a survivalist profession; this profession represents a
character who was already living off the land before the disaster struck. We'll
say this profession starts with archery, survival, traps, beef jerky
and a few survival items. We'll set the starting cost at 3 points since
it modifies skills and items. We could do that with the
following entries:
{
"ident" : "survivalist"
"name": "Wilderness Survivalist",
"description": "You live off the wild and wander the world; you've never
had\na place to live or items other than what you can
scavenge off the land. People called you crazy; now,
after the disaster, you're the sane one."
"points" : 3,
"items": ["pants_cargo", "boots", "beltrig", "selfbow", "jerky", "arrow_field_point"],
"skills" : [
{
"name": "archery",
"level" : 1
},
{
"name" : "survival",
"level" : 1
},
{
"name" : "traps",
"level" : 1
}
]
},
After adding this to the professions.json file, we should see the new profession
show up in the character creation screen.
1.3 IMPORTANT NOTE on JSON FILES:
The following characters: [ { , } ] : "
are *very* important when adding or modifying the JSON files for technical
reasons. This means a single missing , or [ or } can be the difference between
a working file and a hanging game at startup. Many editors have features
that let you track { [ and ] } to see if they're balanced (ie, have a matching
opposite); Notepad++ is a popular, free editor on Windows that contains
this feature. On Linux, there are a plethora of options, and you probably
already have a preferred one :-).
+86 -20
View File
@@ -22,7 +22,11 @@
# make RELEASE=1
# Tiles (uses SDL rather than ncurses)
# make TILES=1
# Disable gettext, on some platforms the dependencies are hard to wrangle.
# make LOCALIZE=0
# Compile localization files for specified languages
# make LANGUAGES="<lang_id_1>[ lang_id_2][ ...]"
# (for example: make LANGUAGES="zh_CN zh_TW" for Chinese)
# comment these to toggle them as one sees fit.
# WARNINGS will spam hundreds of warnings, mostly safe, if turned on
@@ -51,7 +55,7 @@ DEBUG = -g
#DEFINES += -DDEBUG_ENABLE_MAP_GEN
#DEFINES += -DDEBUG_ENABLE_GAME
VERSION = 0.7
VERSION = 0.8
TARGET = cataclysm
@@ -60,6 +64,7 @@ W32TILESTARGET = cataclysm-tiles.exe
W32TARGET = cataclysm.exe
BINDIST_DIR = bindist
BUILD_DIR = $(CURDIR)
LOCALIZE = 1
# tiles object directories are because gcc gets confused
# when preprocessor defines change, but the source doesn't
@@ -72,6 +77,7 @@ DDIR = .deps
OS = $(shell uname -o)
CXX = $(CROSS)g++
LD = $(CROSS)g++
RC = $(CROSS)windres
# enable optimizations. slow to build
ifdef RELEASE
@@ -81,7 +87,7 @@ endif
CXXFLAGS += $(WARNINGS) $(DEBUG) $(PROFILE) $(OTHERS) -MMD
BINDIST_EXTRAS = README data
BINDIST_EXTRAS = README.md data
BINDIST = cataclysmdda-$(VERSION).tar.gz
W32BINDIST = cataclysmdda-$(VERSION).zip
BINDIST_CMD = tar --transform=s@^$(BINDIST_DIR)@cataclysmdda-$(VERSION)@ -czvf $(BINDIST) $(BINDIST_DIR)
@@ -121,7 +127,9 @@ ifeq ($(NATIVE), osx)
OSX_MIN = 10.5
DEFINES += -DMACOSX
CXXFLAGS += -mmacosx-version-min=$(OSX_MIN)
LDFLAGS += -lintl
ifeq ($(LOCALIZE), 1)
LDFLAGS += -lintl
endif
TARGETSYSTEM=LINUX
ifneq ($(OS), GNU/Linux)
BINDIST_CMD = tar -s"@^$(BINDIST_DIR)@cataclysmdda-$(VERSION)@" -czvf $(BINDIST) $(BINDIST_DIR)
@@ -145,11 +153,20 @@ ifeq ($(TARGETSYSTEM),WINDOWS)
BINDIST = $(W32BINDIST)
BINDIST_CMD = $(W32BINDIST_CMD)
ODIR = $(W32ODIR)
LDFLAGS += -static -lgdi32 -lintl -liconv
LDFLAGS += -static -lgdi32 -lwinmm
ifeq ($(LOCALIZE), 1)
LDFLAGS += -lintl -liconv
endif
W32FLAGS += -Wl,-stack,12000000,-subsystem,windows
RFLAGS = -J rc -O coff
endif
ifdef TILES
SDL = 1
BINDIST_EXTRAS += gfx
endif
ifdef SDL
ifeq ($(NATIVE),osx)
ifdef FRAMEWORK
DEFINES += -DOSX_SDL_FW
@@ -157,23 +174,37 @@ ifdef TILES
-F$(HOME)/Library/Frameworks \
-I/Library/Frameworks/SDL.framework/Headers \
-I$(HOME)/Library/Frameworks/SDL.framework/Headers \
-I/Library/Frameworks/SDL_image.framework/Headers \
-I$(HOME)/Library/Frameworks/SDL_image.framework/Headers \
-I/Library/Frameworks/SDL_ttf.framework/Headers \
-I$(HOME)/Library/Frameworks/SDL_ttf.framework/Headers
LDFLAGS += -F/Library/Frameworks \
-F$(HOME)/Library/Frameworks \
-framework SDL -framework SDL_ttf -framework Cocoa
-framework SDL -framework SDL_image -framework SDL_ttf -framework Cocoa
CXXFLAGS += $(OSX_INC)
else
else # libsdl build
DEFINES += -DOSX_SDL_LIBS
CXXFLAGS += $(shell sdl-config --cflags)
# handle #include "SDL/SDL.h" and "SDL.h"
CXXFLAGS += $(shell sdl-config --cflags) \
-I$(shell dirname $(shell sdl-config --cflags | sed 's/-I\(.[^ ]*\) .*/\1/'))
LDFLAGS += $(shell sdl-config --libs) -lSDL_ttf
ifdef TILES
LDFLAGS += -lSDL_image
endif
endif
else
else # not osx
LDFLAGS += -lSDL -lSDL_ttf -lfreetype -lz
ifdef TILES
LDFLAGS += -lSDL_image
endif
endif
ifdef TILES
DEFINES += -DSDLTILES
else
DEFINES += -DTILES
endif
DEFINES += -DTILES
ifeq ($(TARGETSYSTEM),WINDOWS)
LDFLAGS += -lgdi32 -ldxguid -lwinmm
LDFLAGS += -lgdi32 -ldxguid -lwinmm -ljpeg -lpng
TARGET = $(W32TILESTARGET)
ODIR = $(W32ODIRTILES)
else
@@ -183,14 +214,26 @@ ifdef TILES
else
# Link to ncurses if we're using a non-tiles, Linux build
ifeq ($(TARGETSYSTEM),LINUX)
LDFLAGS += -lncursesw
# Work around Cygwin not including gettext support in glibc
ifeq ($(shell sh -c 'uname -o 2>/dev/null || echo not'),Cygwin)
LDFLAGS += -lintl -liconv
ifeq ($(LOCALIZE),1)
ifeq ($(shell sh -c 'uname -o 2>/dev/null || echo not'),Darwin)
LDFLAGS += -lncurses
else
LDFLAGS += -lncursesw
endif
# Work around Cygwin not including gettext support in glibc
ifeq ($(shell sh -c 'uname -o 2>/dev/null || echo not'),Cygwin)
LDFLAGS += -lintl -liconv
endif
else
LDFLAGS += -lncurses
endif
endif
endif
ifeq ($(LOCALIZE),1)
DEFINES += -DLOCALIZE
endif
ifeq ($(TARGETSYSTEM),LINUX)
BINDIST_EXTRAS += cataclysm-launcher
endif
@@ -198,15 +241,24 @@ endif
SOURCES = $(wildcard *.cpp)
HEADERS = $(wildcard *.h)
_OBJS = $(SOURCES:.cpp=.o)
ifeq ($(TARGETSYSTEM),WINDOWS)
RSRC = $(wildcard *.rc)
_OBJS += $(RSRC:.rc=.o)
endif
OBJS = $(patsubst %,$(ODIR)/%,$(_OBJS))
ifdef TILES
ifdef SDL
ifeq ($(NATIVE),osx)
OBJS += $(ODIR)/SDLMain.o
endif
endif
all: version $(TARGET)
ifdef LANGUAGES
L10N = localization
BINDIST_EXTRAS += lang/mo
endif
all: version $(TARGET) $(L10N)
@
$(TARGET): $(ODIR) $(DDIR) $(OBJS)
@@ -230,23 +282,37 @@ $(DDIR):
$(ODIR)/%.o: %.cpp
$(CXX) $(DEFINES) $(CXXFLAGS) -c $< -o $@
$(ODIR)/%.o: %.rc
$(RC) $(RFLAGS) $< -o $@
$(ODIR)/SDLMain.o: SDLMain.m
$(CC) -c $(OSX_INC) $< -o $@
version.cpp: version
localization:
lang/compile_mo.sh $(LANGUAGES)
clean: clean-tests
rm -rf $(TARGET) $(TILESTARGET) $(W32TILESTARGET) $(W32TARGET)
rm -rf $(ODIR) $(W32ODIR) $(W32ODIRTILES)
rm -rf $(BINDIST) $(W32BINDIST) $(BINDIST_DIR)
rm -f version.h
distclean:
rm -rf $(BINDIST_DIR)
rm -rf save
rm -rf lang/mo
rm -f data/options.txt
rm -f data/keymap.txt
rm -f data/auto_pickup.txt
rm -f data/fontlist.txt
bindist: $(BINDIST)
$(BINDIST): $(TARGET) $(BINDIST_EXTRAS)
rm -rf $(BINDIST_DIR)
$(BINDIST): distclean $(TARGET) $(L10N) $(BINDIST_EXTRAS)
mkdir -p $(BINDIST_DIR)
cp -R $(TARGET) $(BINDIST_EXTRAS) $(BINDIST_DIR)
cp -R --parents $(TARGET) $(BINDIST_EXTRAS) $(BINDIST_DIR)
$(BINDIST_CMD)
export ODIR _OBJS LDFLAGS CXX W32FLAGS DEFINES CXXFLAGS
-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!
+4 -7
View File
@@ -1,16 +1,13 @@
# Cataclysm: Dark Days Ahead
Cataclysm: Dark Days Ahead is a roguelike set in a post-apocalyptic world. While some have described it as a "zombie game", there's far more to Cataclysm than that. Struggle to survive in a harsh, persistant, procedurally generated world. Scavenge the remnants of a dead civilization for for food, equipment, or, if you're lucky, a vehicle with a full tank of gas to get you the hell out of Dodge. Fight to defeat or escape from a wide variety of powerful monstrosities, from zombies to giant insects to killer robots and things far stranger and deadlier, and against the others like yourself, that want what you have...
Cataclysm: Dark Days Ahead is a roguelike set in a post-apocalyptic world. While some have described it as a "zombie game", there's far more to Cataclysm than that. Struggle to survive in a harsh, persistent, procedurally generated world. Scavenge the remnants of a dead civilization for for food, equipment, or, if you're lucky, a vehicle with a full tank of gas to get you the hell out of Dodge. Fight to defeat or escape from a wide variety of powerful monstrosities, from zombies to giant insects to killer robots and things far stranger and deadlier, and against the others like yourself, that want what you have...
## Download
The following binary releases are available:
Visit [our website](http://en.cataclysmdda.com/) for download links to all stable and experimental releases
* [Windows Executable](http://www.cataclysmdda.com/Downloads/CataDDA0.4.zip)
* [OS X 10.6+ Executable](http://www.cataclysm.glyphgryph.com/Downloads/CataDDA0.4.tar.gz)
The source can either be downloaded as [an archive](https://github.com/TheDarklingWolf/Cataclysm-DDA/archive/master.zip), or you can clone it from [our GitHub repository](https://github.com/TheDarklingWolf/Cataclysm-DDA/).
The source can either be downloaded as [an archive](https://github.com/CleverRaven/Cataclysm-DDA/archive/master.zip), or you can clone it from [our GitHub repository](https://github.com/CleverRaven/Cataclysm-DDA/).
## Compile
@@ -39,4 +36,4 @@ Press the `?` key, followed by the `1` key to see the full list of key commands.
#### I've found a bug / I would like to make a suggestion. What should I do?
Please submit an issue on [our GitHub page](https://github.com/CleverRaven/Cataclysm-DDA/issues/). If you're not able to, send an email to `TheDarklingWolf@gmail.com`.
Please submit an issue on [our GitHub page](https://github.com/CleverRaven/Cataclysm-DDA/issues/). If you're not able to, send an email to `kevin.granade@gmail.com`.
+35
View File
@@ -0,0 +1,35 @@
Cataclysm: Dark Days Ahead
Cataclysm: Dark Days Ahead is a roguelike set in a post-apocalyptic world. While some have described
it as a "zombie game", there's far more to Cataclysm than that. Struggle to survive in a harsh, persistent,
procedurally generated world. Scavenge the remnants of a dead civilization for for food, equipment,
or, if you're lucky, a vehicle with a full tank of gas to get you the hell out of Dodge. Fight to defeat
or escape from a wide variety of powerful monstrosities, from zombies to giant insects to killer robots
and things far stranger and deadlier, and against the others like yourself, that want what you have...
Download
Visit http://en.cataclysmdda.com/ for download links to all stable and experimental releases
Compile
The latest instructions on how to compile can be found on our wiki at http://www.wiki.cataclysmdda.com/index.php?title=How_to_compile.
Contribute
Please see CONTRIBUTING.md for details.
Contributing is much easier with an advanced text editor, for windows a good program is Notepad++, available at http://notepad-plus-plus.org/.
Frequently Asked Questions
1)Is there a tutorial?
Yes, you can find the tutorial in the Special menu at the main menu. You can also access
documentation in-game via the ? key.
2)How can I change the key bindings?
Press the `?` key, followed by the `1` key to see the full list of key commands. Press the `+` key
to add a key binding, select which action with the corresponding letter key `a-w`, and then the key
you wish to assign to that action.
3)How can I start a new world?
Reset on the main menu will generate a fresh world for you.
4)I've found a bug / I would like to make a suggestion. What should I do?
Please submit an issue on our GitHub page at https://github.com/CleverRaven/Cataclysm-DDA/issues/.
If you're not able to, send an email to `kevin.granade@gmail.com`.
+6 -1
View File
@@ -27,4 +27,9 @@ teh-sam
Alex Casey (Tamunshin) <tamunshin@hotmail.com>
Stevensonz <money3030@yahoo.com.>
David Holmes <dholmes@dholmes.us>
Sean McLaughlin <galenevil@hotmail.com> / <galenevil.eve@gmail.com>
Sean McLaughlin <galenevil@hotmail.com> / <galenevil.eve@gmail.com>
Robert Sørlie (1942rob) <1942rob@gmail.com>
Angela Graves <Rivet.the.Zombie@gmail.com>
Ian Strachan <ian_e_strachan@hotmail.com>
Greg McNew <gmcnew@gmail.com>
NaturesWitness <natureswitness@gmail.com>
-92
View File
@@ -1,92 +0,0 @@
Info on translating Cataclysm-DDA into another language.
TRANSLATORS
===========
If there is already a translation available for your language,
and you just want to update or improve it,
you can edit the .po file for your language,
found inside the "lang/po" subdirectory.
After editing this file,
if you are running the dev version and want to test your changes,
perform step 4 from the maintainers section below.
If there is no translation yet,
the .po file will need to be generated.
You can do this yourself by following the instructions below,
or ask one of the CleverRaven devs to do it for you.
When you are done translating,
submit the changes back to CleverRaven for inclusion in Cataclysm-DDA.
MAINTAINERS
===========
Step 1: Extract the translatable strings
----------------------------------------
First we have to extract the translatable strings from the .json files.
The python script lang/extract_json_strings.py will do this for us,
storing them in an intermediate form in lang/json for "xgettext" to read.
python lang/extract_json_strings.py
Now we can use xgettext to collate all the translatable strings,
and store them in the file lang/po/cataclysm-dda.pot.
This needs to be done every time translatable strings are added or modified.
All of the translations depend on this file.
xgettext -d cataclysm-dda -s -o lang/po/cataclysm-dda.pot --keyword=_ *.cpp *.h lang/json/*.py
Step 2(a): Initialize each language file
----------------------------------------
If we're starting a new translation from scratch,
we have to initialize the translation file.
In this example the translation is into New Zealand English (en_NZ).
For other languages change "en_NZ" to the relevant language identifier.
msginit -l en_NZ.utf8 -o lang/po/en_NZ.po -i lang/po/cataclysm-dda.pot
Step 2(b): Update an already existing language file
---------------------------------------------------
If we just want to update a translation,
we'll want to keep all the messages that have already been translated.
In this case we use "msgmerge" in stead of "msginit".
msgmerge -s -U lang/po/en_NZ.po lang/po/cataclysm-dda.pot
Step 3: Translate
-----------------
Now open the .po file in your favorite editor and translate!
The lines beginning with "msgid" must be left in the english form,
only the lines beginning with "msgstr" should be translated.
Step 4: Compile the .po file
----------------------------
If it is a new translation,
you will need to create a subdirectory in lang/mo for it,
and then a subdirectory called "LC_MESSAGES" inside that.
For example:
mkdir -p lang/mo/en_NZ/LC_MESSAGES
Now run the "msgfmt" program to compile the translations for use in game.
msgfmt -c -o lang/mo/en_NZ/LC_MESSAGES/cataclysm-dda.mo lang/po/en_NZ.po
Hooray, that's it :).
+82 -78
View File
@@ -181,6 +181,8 @@ std::string action_ident(action_id act)
return "advinv";
case ACTION_PICKUP:
return "pickup";
case ACTION_GRAB:
return "grab";
case ACTION_BUTCHER:
return "butcher";
case ACTION_CHAT:
@@ -306,161 +308,163 @@ std::string action_name(action_id act)
switch (act)
{
case ACTION_PAUSE:
return "Pause";
return _("Pause");
case ACTION_MOVE_N:
return "Move North";
return _("Move North");
case ACTION_MOVE_NE:
return "Move Northeast";
return _("Move Northeast");
case ACTION_MOVE_E:
return "Move East";
return _("Move East");
case ACTION_MOVE_SE:
return "Move Southeast";
return _("Move Southeast");
case ACTION_MOVE_S:
return "Move South";
return _("Move South");
case ACTION_MOVE_SW:
return "Move Southwest";
return _("Move Southwest");
case ACTION_MOVE_W:
return "Move West";
return _("Move West");
case ACTION_MOVE_NW:
return "Move Northwest";
return _("Move Northwest");
case ACTION_MOVE_DOWN:
return "Descend Stairs";
return _("Descend Stairs");
case ACTION_MOVE_UP:
return "Ascend Stairs";
return _("Ascend Stairs");
case ACTION_CENTER:
return "Center View";
return _("Center View");
case ACTION_SHIFT_N:
return "Move View North";
return _("Move View North");
case ACTION_SHIFT_NE:
return "Move View Northeast";
return _("Move View Northeast");
case ACTION_SHIFT_E:
return "Move View East";
return _("Move View East");
case ACTION_SHIFT_SE:
return "Move View Southeast";
return _("Move View Southeast");
case ACTION_SHIFT_S:
return "Move View South";
return _("Move View South");
case ACTION_SHIFT_SW:
return "Move View Southwest";
return _("Move View Southwest");
case ACTION_SHIFT_W:
return "Move View West";
return _("Move View West");
case ACTION_SHIFT_NW:
return "Move View Northwest";
return _("Move View Northwest");
case ACTION_OPEN:
return "Open Door";
return _("Open Door");
case ACTION_CLOSE:
return "Close Door";
return _("Close Door");
case ACTION_SMASH:
return "Smash Nearby Terrain";
return _("Smash Nearby Terrain");
case ACTION_EXAMINE:
return "Examine Nearby Terrain";
return _("Examine Nearby Terrain");
case ACTION_PICKUP:
return "Pick Item(s) Up";
return _("Pick Item(s) Up");
case ACTION_GRAB:
return _("Grab a nearby vehicle");
case ACTION_BUTCHER:
return "Butcher";
return _("Butcher");
case ACTION_CHAT:
return "Chat with NPC";
return _("Chat with NPC");
case ACTION_LOOK:
return "Look Around";
return _("Look Around");
case ACTION_PEEK:
return "Peek Around Corners";
return _("Peek Around Corners");
case ACTION_LIST_ITEMS:
return "List all items around the player";
return _("List all items around the player");
case ACTION_INVENTORY:
return "Open Inventory";
return _("Open Inventory");
case ACTION_ADVANCEDINV:
return "Advanced Inventory management";
return _("Advanced Inventory management");
case ACTION_COMPARE:
return "Compare two Items";
return _("Compare two Items");
case ACTION_ORGANIZE:
return "Swap Inventory Letters";
return _("Swap Inventory Letters");
case ACTION_USE:
return "Apply or Use Item";
return _("Apply or Use Item");
case ACTION_USE_WIELDED:
return "Apply or Use Wielded Item";
return _("Apply or Use Wielded Item");
case ACTION_WEAR:
return "Wear Item";
return _("Wear Item");
case ACTION_TAKE_OFF:
return "Take Off Worn Item";
return _("Take Off Worn Item");
case ACTION_EAT:
return "Eat";
return _("Eat");
case ACTION_READ:
return "Read";
return _("Read");
case ACTION_WIELD:
return "Wield";
return _("Wield");
case ACTION_PICK_STYLE:
return "Select Unarmed Style";
return _("Select Unarmed Style");
case ACTION_RELOAD:
return "Reload Wielded Item";
return _("Reload Wielded Item");
case ACTION_UNLOAD:
return "Unload or Empty Wielded Item";
return _("Unload or Empty Wielded Item");
case ACTION_THROW:
return "Throw Item";
return _("Throw Item");
case ACTION_FIRE:
return "Fire Wielded Item";
return _("Fire Wielded Item");
case ACTION_FIRE_BURST:
return "Burst-Fire Wielded Item";
return _("Burst-Fire Wielded Item");
case ACTION_SELECT_FIRE_MODE:
return "Toggle attack mode of Wielded Item";
return _("Toggle attack mode of Wielded Item");
case ACTION_DROP:
return "Drop Item";
return _("Drop Item");
case ACTION_DIR_DROP:
return "Drop Item to Adjacent Tile";
return _("Drop Item to Adjacent Tile");
case ACTION_BIONICS:
return "View/Activate Bionics";
return _("View/Activate Bionics");
case ACTION_SORT_ARMOR:
return "Re-layer armour/clothing";
return _("Re-layer armour/clothing");
case ACTION_WAIT:
return "Wait for Several Minutes";
return _("Wait for Several Minutes");
case ACTION_CRAFT:
return "Craft Items";
return _("Craft Items");
case ACTION_RECRAFT:
return "Recraft last recipe";
return _("Recraft last recipe");
case ACTION_LONGCRAFT:
return "Craft as long as possible";
return _("Craft as long as possible");
case ACTION_CONSTRUCT:
return "Construct Terrain";
return _("Construct Terrain");
case ACTION_DISASSEMBLE:
return "Disassemble items";
return _("Disassemble items");
case ACTION_SLEEP:
return "Sleep";
return _("Sleep");
case ACTION_CONTROL_VEHICLE:
return "Control Vehicle";
return _("Control Vehicle");
case ACTION_TOGGLE_SAFEMODE:
return "Toggle Safemode";
return _("Toggle Safemode");
case ACTION_TOGGLE_AUTOSAFE:
return "Toggle Auto-Safemode";
return _("Toggle Auto-Safemode");
case ACTION_IGNORE_ENEMY:
return "Ignore Nearby Enemy";
return _("Ignore Nearby Enemy");
case ACTION_SAVE:
return "Save and Quit";
return _("Save and Quit");
case ACTION_QUICKSAVE:
return "Quicksave";
return _("Quicksave");
case ACTION_QUIT:
return "Commit Suicide";
return _("Commit Suicide");
case ACTION_PL_INFO:
return "View Player Info";
return _("View Player Info");
case ACTION_MAP:
return "View Map";
return _("View Map");
case ACTION_MISSIONS:
return "View Missions";
return _("View Missions");
case ACTION_FACTIONS:
return "View Factions";
return _("View Factions");
case ACTION_KILLS:
return "View Kills";
return _("View Kills");
case ACTION_MORALE:
return "View Morale";
return _("View Morale");
case ACTION_MESSAGES:
return "View Message Log";
return _("View Message Log");
case ACTION_HELP:
return "View Help";
return _("View Help");
case ACTION_DEBUG:
return "Debug Menu";
return _("Debug Menu");
case ACTION_DISPLAY_SCENT:
return "View Scentmap";
return _("View Scentmap");
case ACTION_TOGGLE_DEBUGMON:
return "Toggle Debug Messages";
return _("Toggle Debug Messages");
case ACTION_NULL:
return "No Action";
return _("No Action");
}
return "Someone forgot to name an action.";
}
+1
View File
@@ -31,6 +31,7 @@ ACTION_CLOSE,
ACTION_SMASH,
ACTION_EXAMINE,
ACTION_PICKUP,
ACTION_GRAB,
ACTION_BUTCHER,
ACTION_CHAT,
ACTION_LOOK,
+195 -160
View File
@@ -2,165 +2,200 @@
void addict_effect(game *g, addiction &add)
{
int in = add.intensity;
int in = add.intensity;
switch (add.type) {
case ADD_CIG:
if (in > 20 || one_in((500 - 20 * in))) {
g->add_msg("You %s a cigarette.",
rng(0, 6) < in ? "need" : "could use");
g->cancel_activity_query("You have a nicotine craving.");
g->u.add_morale(MORALE_CRAVING_NICOTINE, -15, -50);
if (one_in(800 - 50 * in))
g->u.fatigue++;
if (one_in(400 - 20 * in))
g->u.stim--;
}
break;
switch (add.type) {
case ADD_CIG:
if (in > 20 || one_in((500 - 20 * in))) {
g->add_msg(rng(0, 6) < in ? _("You need a cigarette.") : _("You could use a cigarette."));
g->cancel_activity_query(_("You have a nicotine craving."));
g->u.add_morale(MORALE_CRAVING_NICOTINE, -15, -50);
if (one_in(800 - 50 * in)) {
g->u.fatigue++;
}
if (g->u.stim > -50 && one_in(400 - 20 * in)) {
g->u.stim--;
}
}
break;
case ADD_CAFFEINE:
g->u.moves -= 2;
if (in > 20 || one_in((500 - 20 * in))) {
g->add_msg("You want some caffeine.");
g->cancel_activity_query("You have a caffeine craving.");
g->u.add_morale(MORALE_CRAVING_CAFFEINE, -5, -30);
if (rng(0, 10) < in)
g->u.stim--;
if (rng(8, 400) < in) {
g->add_msg("Your hands start shaking... you need it bad!");
g->u.add_disease("shakes", 20);
}
}
break;
case ADD_CAFFEINE:
g->u.moves -= 2;
if (in > 20 || one_in((500 - 20 * in))) {
g->add_msg(_("You want some caffeine."));
g->cancel_activity_query(_("You have a caffeine craving."));
g->u.add_morale(MORALE_CRAVING_CAFFEINE, -5, -30);
if (g->u.stim > -150 && rng(0, 10) < in) {
g->u.stim--;
}
if (rng(8, 400) < in) {
g->add_msg(_("Your hands start shaking... you need it bad!"));
g->u.add_disease("shakes", 20);
}
}
break;
case ADD_ALCOHOL:
g->u.per_cur--;
g->u.int_cur--;
if (rng(40, 1200) <= in * 10)
g->u.health--;
if (one_in(20) && rng(0, 20) < in) {
g->add_msg("You could use a drink.");
g->cancel_activity_query("You have an alcohol craving.");
g->u.add_morale(MORALE_CRAVING_ALCOHOL, -35, -120);
} else if (rng(8, 300) < in) {
g->add_msg("Your hands start shaking... you need a drink bad!");
g->cancel_activity_query("You have an alcohol craving.");
g->u.add_morale(MORALE_CRAVING_ALCOHOL, -35, -120);
g->u.add_disease("shakes", 50);
} else if (!g->u.has_disease("hallu") && rng(10, 1600) < in)
g->u.add_disease("hallu", 3600);
break;
case ADD_ALCOHOL:
g->u.per_cur--;
g->u.int_cur--;
if (rng(40, 1200) <= in * 10) {
g->u.health--;
}
if (one_in(20) && rng(0, 20) < in) {
g->add_msg(_("You could use a drink."));
g->cancel_activity_query(_("You have an alcohol craving."));
g->u.add_morale(MORALE_CRAVING_ALCOHOL, -35, -120);
} else if (rng(8, 300) < in) {
g->add_msg(_("Your hands start shaking... you need a drink bad!"));
g->cancel_activity_query(_("You have an alcohol craving."));
g->u.add_morale(MORALE_CRAVING_ALCOHOL, -35, -120);
g->u.add_disease("shakes", 50);
} else if (!g->u.has_disease("hallu") && rng(10, 1600) < in) {
g->u.add_disease("hallu", 3600);
}
break;
case ADD_SLEEP:
// No effects here--just in player::can_sleep()
// EXCEPT! Prolong this addiction longer than usual.
if (one_in(2) && add.sated < 0)
add.sated++;
break;
case ADD_SLEEP:
// No effects here--just in player::can_sleep()
// EXCEPT! Prolong this addiction longer than usual.
if (one_in(2) && add.sated < 0) {
add.sated++;
}
break;
case ADD_PKILLER:
if ((in >= 25 || int(g->turn) % (100 - in * 4) == 0) && g->u.pkill > 0)
g->u.pkill--; // Tolerance increases!
if (g->u.pkill >= 35) // No further effects if we're doped up.
add.sated = 0;
else {
g->u.str_cur -= 1 + int(in / 7);
g->u.per_cur--;
g->u.dex_cur--;
if (g->u.pain < in * 3)
g->u.pain++;
if (in >= 40 || one_in((1200 - 30 * in)))
g->u.health--;
if (one_in(20) && dice(2, 20) < in) {
g->add_msg("Your hands start shaking... you need some painkillers.");
g->cancel_activity_query("You have an opiate craving.");
g->u.add_morale(MORALE_CRAVING_OPIATE, -40, -200);
g->u.add_disease("shakes", 20 + in * 5);
} else if (one_in(20) && dice(2, 30) < in) {
g->add_msg("You feel anxious. You need your painkillers!");
g->u.add_morale(MORALE_CRAVING_OPIATE, -30, -200);
g->cancel_activity_query("You have a craving.");
} else if (one_in(50) && dice(3, 50) < in) {
g->add_msg("You throw up heavily!");
g->cancel_activity_query("Throwing up.");
g->u.vomit(g);
}
}
break;
case ADD_PKILLER:
if ((in >= 25 || int(g->turn) % (100 - in * 4) == 0) && g->u.pkill > 0) {
g->u.pkill--; // Tolerance increases!
}
if (g->u.pkill >= 35) { // No further effects if we're doped up.
add.sated = 0;
} else {
g->u.str_cur -= 1 + int(in / 7);
g->u.per_cur--;
g->u.dex_cur--;
if (g->u.pain < in * 3) {
g->u.pain++;
}
if (in >= 40 || one_in((1200 - 30 * in))) {
g->u.health--;
}
if (one_in(20) && dice(2, 20) < in) {
g->add_msg(_("Your hands start shaking... you need some painkillers."));
g->cancel_activity_query(_("You have an opiate craving."));
g->u.add_morale(MORALE_CRAVING_OPIATE, -40, -200);
g->u.add_disease("shakes", 20 + in * 5);
} else if (one_in(20) && dice(2, 30) < in) {
g->add_msg(_("You feel anxious. You need your painkillers!"));
g->u.add_morale(MORALE_CRAVING_OPIATE, -30, -200);
g->cancel_activity_query(_("You have a craving."));
} else if (one_in(50) && dice(3, 50) < in) {
g->add_msg(_("You throw up heavily!"));
g->cancel_activity_query(_("Throwing up."));
g->u.vomit(g);
}
}
break;
case ADD_SPEED: {
int move_pen = in * 5;
if (move_pen > 30)
move_pen = 30;
g->u.moves -= move_pen;
g->u.int_cur--;
g->u.str_cur--;
if (g->u.stim > -100 && (in >= 20 || int(g->turn) % (100 - in * 5) == 0))
g->u.stim--;
if (rng(0, 150) <= in)
g->u.health--;
if (dice(2, 100) < in) {
g->add_msg("You feel depressed. Speed would help.");
g->cancel_activity_query("You have a speed craving.");
g->u.add_morale(MORALE_CRAVING_SPEED, -25, -200);
} else if (one_in(10) && dice(2, 80) < in) {
g->add_msg("Your hands start shaking... you need a pick-me-up.");
g->cancel_activity_query("You have a speed craving.");
g->u.add_morale(MORALE_CRAVING_SPEED, -25, -200);
g->u.add_disease("shakes", in * 20);
} else if (one_in(50) && dice(2, 100) < in) {
g->add_msg("You stop suddenly, feeling bewildered.");
g->cancel_activity();
g->u.moves -= 300;
} else if (!g->u.has_disease("hallu") && one_in(20) &&
8 + dice(2, 80) < in)
g->u.add_disease("hallu", 3600);
} break;
case ADD_SPEED: {
int move_pen = in * 5;
if (move_pen > 30) {
move_pen = 30;
}
g->u.moves -= move_pen;
g->u.int_cur--;
g->u.str_cur--;
if (g->u.stim > -100 && (in >= 20 || int(g->turn) % (100 - in * 5) == 0)) {
g->u.stim--;
}
if (rng(0, 150) <= in) {
g->u.health--;
}
if (dice(2, 100) < in) {
g->add_msg(_("You feel depressed. Speed would help."));
g->cancel_activity_query(_("You have a speed craving."));
g->u.add_morale(MORALE_CRAVING_SPEED, -25, -200);
} else if (one_in(10) && dice(2, 80) < in) {
g->add_msg(_("Your hands start shaking... you need a pick-me-up."));
g->cancel_activity_query(_("You have a speed craving."));
g->u.add_morale(MORALE_CRAVING_SPEED, -25, -200);
g->u.add_disease("shakes", in * 20);
} else if (one_in(50) && dice(2, 100) < in) {
g->add_msg(_("You stop suddenly, feeling bewildered."));
g->cancel_activity();
g->u.moves -= 300;
} else if (!g->u.has_disease("hallu") && one_in(20) && 8 + dice(2, 80) < in)
g->u.add_disease("hallu", 3600);
}
break;
case ADD_COKE:
g->u.int_cur--;
g->u.per_cur--;
if (in >= 30 || one_in((900 - 30 * in))) {
g->add_msg("You feel like you need a bump.");
g->cancel_activity_query("You have a craving for cocaine.");
g->u.add_morale(MORALE_CRAVING_COCAINE, -20, -250);
case ADD_COKE:
g->u.int_cur--;
g->u.per_cur--;
if (in >= 30 || one_in((900 - 30 * in))) {
g->add_msg(_("You feel like you need a bump."));
g->cancel_activity_query(_("You have a craving for cocaine."));
g->u.add_morale(MORALE_CRAVING_COCAINE, -20, -250);
}
if (dice(2, 80) <= in) {
g->add_msg(_("You feel like you need a bump."));
g->cancel_activity_query(_("You have a craving for cocaine."));
g->u.add_morale(MORALE_CRAVING_COCAINE, -20, -250);
if (g->u.stim > -150) {
g->u.stim -= 3;
}
}
break;
case ADD_CRACK:
g->u.int_cur--;
g->u.per_cur--;
if (in >= 30 || one_in((900 - 30 * in))) {
g->add_msg(_("You're shivering, you need some crack."));
g->cancel_activity_query(_("You have a craving for crack."));
g->u.add_morale(MORALE_CRAVING_CRACK, -80, -250);
}
if (dice(2, 80) <= in) {
g->add_msg(_("You're shivering, you need some crack."));
g->cancel_activity_query(_("You have a craving for crack."));
g->u.add_morale(MORALE_CRAVING_CRACK, -80, -250);
if (g->u.stim > -150) {
g->u.stim -= 3;
}
}
break;
}
}
/**
* Returns the name of an addiction. It should be able to finish the sentence
* "Became addicted to ______".
*/
std::string addiction_type_name(add_type cur)
{
switch(cur) {
case ADD_CIG: return _("nicotine");
case ADD_CAFFEINE: return _("caffeine");
case ADD_ALCOHOL: return _("alcohol");
case ADD_SLEEP: return _("sleeping pills");
case ADD_PKILLER: return _("opiates");
case ADD_SPEED: return _("amphetamine");
case ADD_COKE: return _("cocaine");
case ADD_CRACK: return _("crack cocaine");
default: return "bugs in addiction.cpp";
}
if (dice(2, 80) <= in) {
g->add_msg("You feel like you need a bump.");
g->cancel_activity_query("You have a craving for cocaine.");
g->u.add_morale(MORALE_CRAVING_COCAINE, -20, -250);
g->u.stim -= 3;
}
break;
case ADD_CRACK:
g->u.int_cur--;
g->u.per_cur--;
if (in >= 30 || one_in((900 - 30 * in))) {
g->add_msg("You're shivering, you need some crack.");
g->cancel_activity_query("You have a craving for crack.");
g->u.add_morale(MORALE_CRAVING_CRACK, -80, -250);
}
if (dice(2, 80) <= in) {
g->add_msg("You're shivering, you need some crack.");
g->cancel_activity_query("You have a craving for crack.");
g->u.add_morale(MORALE_CRAVING_CRACK, -80, -250);
g->u.stim -= 3;
}
break;
}
}
std::string addiction_name(addiction cur)
{
switch (cur.type) {
case ADD_CIG: return "Nicotine Withdrawal";
case ADD_CAFFEINE: return "Caffeine Withdrawal";
case ADD_ALCOHOL: return "Alcohol Withdrawal";
case ADD_SLEEP: return "Sleeping Pill Dependance";
case ADD_PKILLER: return "Opiate Withdrawal";
case ADD_SPEED: return "Amphetamine Withdrawal";
case ADD_COKE: return "Cocaine Withdrawal";
case ADD_CRACK: return "Crack Cocaine Withdrawal";
case ADD_CIG: return _("Nicotine Withdrawal");
case ADD_CAFFEINE: return _("Caffeine Withdrawal");
case ADD_ALCOHOL: return _("Alcohol Withdrawal");
case ADD_SLEEP: return _("Sleeping Pill Dependance");
case ADD_PKILLER: return _("Opiate Withdrawal");
case ADD_SPEED: return _("Amphetamine Withdrawal");
case ADD_COKE: return _("Cocaine Withdrawal");
case ADD_CRACK: return _("Crack Cocaine Withdrawal");
default: return "Erroneous addiction";
}
}
@@ -203,38 +238,38 @@ add_type addiction_type(std::string name)
std::string addiction_text(addiction cur)
{
std::stringstream dump;
int strpen = 1 + int(cur.intensity / 7);
switch (cur.type) {
case ADD_CIG:
return "Intelligence - 1; Occasional cravings";
return _("Intelligence - 1; Occasional cravings");
case ADD_CAFFEINE:
return "Strength - 1; Slight sluggishness; Occasional cravings";
return _("Strength - 1; Slight sluggishness; Occasional cravings");
case ADD_ALCOHOL:
return "\
return _("\
Perception - 1; Intelligence - 1; Occasional Cravings;\n\
Risk of delirium tremens";
Risk of delirium tremens");
case ADD_SLEEP:
return "You may find it difficult to sleep without medication.";
return _("You may find it difficult to sleep without medication.");
case ADD_PKILLER:
dump << "Strength -" << strpen << "; Perception - 1; Dexterity - 1;" <<
std::endl <<
"Depression and physical pain to some degree. Frequent cravings. Vomiting.";
return dump.str();
{
return string_format(_(
"Strength - %d; Perception - 1; Dexterity - 1;\n"
"Depression and physical pain to some degree. Frequent cravings. Vomiting."), strpen);
}
case ADD_SPEED:
return "Strength - 1; Intelligence - 1;\n\
Movement rate reduction. Depression. Weak immune system. Frequent cravings.";
return _("Strength - 1; Intelligence - 1;\n\
Movement rate reduction. Depression. Weak immune system. Frequent cravings.");
case ADD_COKE:
return "Perception - 1; Intelligence - 1; Frequent cravings.";
return _("Perception - 1; Intelligence - 1; Frequent cravings.");
case ADD_CRACK:
return "Perception - 2; Intelligence - 2; Frequent cravings.";
return _("Perception - 2; Intelligence - 2; Frequent cravings.");
default:
return "";
}
+2
View File
@@ -10,6 +10,8 @@
void addict_effect(game *g, addiction &add);
std::string addiction_type_name(add_type cur);
std::string addiction_name(addiction cur);
morale_type addiction_craving(add_type cur);
+1254
View File
File diff suppressed because it is too large Load Diff
+124
View File
@@ -0,0 +1,124 @@
#ifndef _ADVANCED_INV_H
#define _ADVANCED_INV_H_
#include "output.h"
#include "game.h"
#include <string>
struct advanced_inv_area {
int id;
int hscreenx;
int hscreeny;
int offx;
int offy;
int x;
int y;
std::string name;
std::string shortname;
bool canputitems;
vehicle *veh;
int vstor;
int size;
std::string desc;
int volume, weight;
int max_size, max_volume;
};
// for printing items in environment
struct advanced_inv_listitem {
int idx;
int area;
item *it;
std::string name;
bool autopickup;
int stacks;
int volume;
int weight;
int cat;
};
class advanced_inventory_pane {
public:
int pos;
int area, offx, offy, size, vstor; // quick lookup later
int index, max_page, max_index, page;
std::string area_string;
int sortby;
int issrc;
vehicle *veh;
WINDOW *window;
std::vector<advanced_inv_listitem> items;
int numcats;
std::string filter;
bool recalc;
bool redraw;
std::map<std::string, bool> filtercache;
advanced_inventory_pane() {
offx = 0; offy = 0; size = 0; vstor = -1;
index = 0; max_page = 0; max_index = 0; page = 0;
area_string = _("Initializing...");
sortby = 1; issrc = 0; veh = NULL; window = NULL;
items.clear();
numcats = 0; filter="";
filtercache.clear();
}
};
class advanced_inventory
{
public:
game * g;
player * p;
const int head_height;
const int min_w_height;
const int min_w_width;
const int max_w_width;
const int left;
const int right;
const int isinventory;
const int isall;
bool checkshowmsg;
bool showmsg;
int itemsPerPage;
int w_height;
int w_width;
int headstart;
int colstart;
// itemsPerPage=getmaxy(left_window)-ADVINVOFS;
// todo: awaiting ui::menu // last_tmpdest=-1;
bool exit;// = false;
bool redraw;// = true;
bool recalc;// = true;
int lastCh;// = 0;
int src;// = left; // the active screen , 0 for left , 1 for right.
int dest;// = right;
int max_inv;// = inv_chars.size() - u.worn.size() - ( u.is_armed() || u.weapon.is_style() ? 1 : 0 );
bool examineScroll;// = false;
bool filter_edit;
advanced_inventory_pane panes[2];
advanced_inv_area squares[11];
advanced_inventory() :
head_height(5),
min_w_height(10),
min_w_width(FULL_SCREEN_WIDTH),
max_w_width(120),
left(0),
right(1),
isinventory(0),
isall(10) {
}
void display(game *gp, player *pp);
void print_items(advanced_inventory_pane &pane, bool active);
void recalc_pane(int i);
void redraw_pane(int i);
void init(game *gp, player *pp);
private:
};
#endif
+124
View File
@@ -0,0 +1,124 @@
#if (!defined SDLTILES)
#include "game.h"
/* Explosion Animation */
void game::draw_explosion(int x, int y, int radius, nc_color col)
{
timespec ts; // Timespec for the animation of the explosion
ts.tv_sec = 0;
ts.tv_nsec = EXPLOSION_SPEED;
for (int i = 1; i <= radius; i++) {
mvwputch(w_terrain, y - i + VIEWY - u.posy - u.view_offset_y,
x - i + VIEWX - u.posx - u.view_offset_x, col, '/');
mvwputch(w_terrain, y - i + VIEWY - u.posy - u.view_offset_y,
x + i + VIEWX - u.posx - u.view_offset_x, col,'\\');
mvwputch(w_terrain, y + i + VIEWY - u.posy - u.view_offset_y,
x - i + VIEWX - u.posx - u.view_offset_x, col,'\\');
mvwputch(w_terrain, y + i + VIEWY - u.posy - u.view_offset_y,
x + i + VIEWX - u.posx - u.view_offset_x, col, '/');
for (int j = 1 - i; j < 0 + i; j++) {
mvwputch(w_terrain, y - i + VIEWY - u.posy - u.view_offset_y,
x + j + VIEWX - u.posx - u.view_offset_x, col,'-');
mvwputch(w_terrain, y + i + VIEWY - u.posy - u.view_offset_y,
x + j + VIEWX - u.posx - u.view_offset_x, col,'-');
mvwputch(w_terrain, y + j + VIEWY - u.posy - u.view_offset_y,
x - i + VIEWX - u.posx - u.view_offset_x, col,'|');
mvwputch(w_terrain, y + j + VIEWY - u.posy - u.view_offset_y,
x + i + VIEWX - u.posx - u.view_offset_x, col,'|');
}
wrefresh(w_terrain);
nanosleep(&ts, NULL);
}
}
/* Bullet Animation */
void game::draw_bullet(player &p, int tx, int ty, int i, std::vector<point> trajectory, char bullet, timespec &ts)
{
if (u_see(tx, ty)) {
if (i > 0)
{
m.drawsq(w_terrain, u, trajectory[i-1].x, trajectory[i-1].y, false,
true, u.posx + u.view_offset_x, u.posy + u.view_offset_y);
}
/*
char bullet = '*';
if (is_aflame)
bullet = '#';
*/
mvwputch(w_terrain, ty + VIEWY - u.posy - u.view_offset_y,
tx + VIEWX - u.posx - u.view_offset_x, c_red, bullet);
wrefresh(w_terrain);
if (&p == &u)
nanosleep(&ts, NULL);
}
}
/* Monster hit animation */
void game::draw_hit_mon(int x, int y, monster m, bool dead)
{
/*
x - u.posx + VIEWX - u.view_offset_x,
y - u.posy + VIEWY - u.view_offset_y,
*/
nc_color cMonColor = m.type->color;
char sMonSym = m.symbol();
hit_animation(x + VIEWX - u.posx - u.view_offset_x,
y + VIEWY - u.posy - u.view_offset_y,
red_background(cMonColor), dead?'%':sMonSym);
}
/* Player hit animation */
void game::draw_hit_player(player *p, bool dead)
{
hit_animation(p->posx + VIEWX - u.posx - u.view_offset_x,
p->posy + VIEWY - u.posy - u.view_offset_y,
red_background(p->color()), '@');
}
/* Line drawing code, not really an animation but should be separated anyway */
void game::draw_line(const int x, const int y, const point center_point, std::vector<point> ret)
{
if (u_see( x, y))
{
for (int i = 0; i < ret.size(); i++)
{
int mondex = mon_at(ret[i].x, ret[i].y),
npcdex = npc_at(ret[i].x, ret[i].y);
// NPCs and monsters get drawn with inverted colors
if (mondex != -1 && u_see(&(_z[mondex])))
{
_z[mondex].draw(w_terrain, center_point.x, center_point.y, true);
}
else if (npcdex != -1)
{
active_npc[npcdex]->draw(w_terrain, center_point.x, center_point.y, true);
}
else
{
m.drawsq(w_terrain, u, ret[i].x, ret[i].y, true,true,center_point.x, center_point.y);
}
}
}
}
void game::draw_line(const int x, const int y, std::vector<point> vPoint)
{
for (int i = 1; i < vPoint.size(); i++)
{
m.drawsq(w_terrain, u, vPoint[i-1].x, vPoint[i-1].y, true, true);
}
mvwputch(w_terrain, vPoint[vPoint.size()-1].y + VIEWY - u.posy - u.view_offset_y,
vPoint[vPoint.size()-1].x + VIEWX - u.posx - u.view_offset_x, c_white, 'X');
}
//*/
void game::draw_weather(weather_printable wPrint)
{
for (std::vector<std::pair<int, int> >::iterator weather_iterator = wPrint.vdrops.begin();
weather_iterator != wPrint.vdrops.end();
++weather_iterator)
{
mvwputch(w_terrain, weather_iterator->second, weather_iterator->first, wPrint.colGlyph, wPrint.cGlyph);
}
//mvwputch(w_terrain, iRandY, iRandX, colGlyph, cGlyph);
}
#endif
+246
View File
@@ -0,0 +1,246 @@
#if (defined SDLTILES)
#include "game.h"
#include "debug.h"
#include "cata_tiles.h" // all animation functions will be pushed out to a cata_tiles function in some manner
extern cata_tiles *tilecontext; // obtained from sdltiles.cpp
extern int fontheight;
extern int fontwidth;
/* Tiles version of Explosion Animation */
void game::draw_explosion(int x, int y, int radius, nc_color col)
{
timespec ts; // Timespec for the animation of the explosion
ts.tv_sec = 0;
ts.tv_nsec = EXPLOSION_SPEED;
// added offset values to keep from calculating the same value over and over again.
const int offset_x = VIEWX - u.posx - u.view_offset_x;
const int offset_y = VIEWY - u.posy - u.view_offset_y;
for (int i = 1; i <= radius; i++) {
mvwputch(w_terrain, y - i + offset_y,
x - i + offset_x, col, '/');
mvwputch(w_terrain, y - i + offset_y,
x + i + offset_x, col,'\\');
mvwputch(w_terrain, y + i + offset_y,
x - i + offset_x, col,'\\');
mvwputch(w_terrain, y + i + offset_y,
x + i + offset_x, col, '/');
for (int j = 1 - i; j < 0 + i; j++) {
mvwputch(w_terrain, y - i + offset_y,
x + j + offset_x, col,'-');
mvwputch(w_terrain, y + i + offset_y,
x + j + offset_x, col,'-');
mvwputch(w_terrain, y + j + offset_y,
x - i + offset_x, col,'|');
mvwputch(w_terrain, y + j + offset_y,
x + i + offset_x, col,'|');
}
tilecontext->init_explosion(x, y, i);
//tilecontext->draw_explosion_frame(x, y, radius, offset_x, offset_y);
wrefresh(w_terrain);
nanosleep(&ts, NULL);
}
tilecontext->void_explosion();
}
/* Bullet Animation -- Maybe change this to animate the ammo itself flying through the air?*/
// need to have a version where there is no player defined, possibly. That way shrapnel works as intended
void game::draw_bullet(player &p, int tx, int ty, int i, std::vector<point> trajectory, char bullet_char, timespec &ts)
{
if (u_see(tx, ty)) {
std::string bullet;// = "animation_bullet_normal";
switch(bullet_char)
{
case '*': bullet = "animation_bullet_normal"; break;
case '#': bullet = "animation_bullet_flame"; break;
case '`': bullet = "animation_bullet_shrapnel"; break;
}
mvwputch(w_terrain, ty + VIEWY - u.posy - u.view_offset_y,
tx + VIEWX - u.posx - u.view_offset_x, c_red, bullet_char);
// pass to tilecontext
tilecontext->init_draw_bullet(tx, ty, bullet);
wrefresh(w_terrain);
if (&p == &u)
nanosleep(&ts, NULL);
tilecontext->void_bullet();
}
}
/* Monster hit animation */
void game::draw_hit_mon(int x, int y, monster m, bool dead)
{
if (use_tiles)
{
//int iTimeout = 0;
tilecontext->init_draw_hit(x, y, monster_names[m.type->id]);
wrefresh(w_terrain);
timespec tspec;
tspec.tv_sec = 0;
tspec.tv_nsec = BULLET_SPEED;
nanosleep(&tspec, NULL);
/*
nc_color cMonColor = m.type->color;
char sMonSym = m.symbol();
hit_animation(x,
y,
red_background(cMonColor), dead?'%':sMonSym);
*/
/*
x + VIEWX - u.posx - u.view_offset_x,
y + VIEWY - u.posy - u.view_offset_y,
*/
mvwputch(w_terrain,
x + VIEWX - u.posx - u.view_offset_x,
y + VIEWY - u.posy - u.view_offset_y,
c_white, ' ');
wrefresh(w_terrain);
}
else
{
nc_color cMonColor = m.type->color;
char sMonSym = m.symbol();
hit_animation(x + VIEWX - u.posx - u.view_offset_x,
y + VIEWY - u.posy - u.view_offset_y,
red_background(cMonColor), dead?'%':sMonSym);
}
}
/* Player hit animation */
void game::draw_hit_player(player *p, bool dead)
{
if (use_tiles)
{
// get base name of player id
std::string pname = (p->is_npc()?"npc_":"player_");
// get sex of player
pname += (p->male?"male":"female");
tilecontext->init_draw_hit(p->posx, p->posy, pname);
wrefresh(w_terrain);
timespec tspec;
tspec.tv_sec = 0;
tspec.tv_nsec = BULLET_SPEED;
nanosleep(&tspec, NULL);
/*
hit_animation(p->posx - g->u.posx + VIEWX - g->u.view_offset_x,
p->posy - g->u.posy + VIEWY - g->u.view_offset_y,
red_background(p->color()), '@');
*/
/*
if (iTimeout <= 0 || iTimeout > 999) {
iTimeout = 70;
}
timeout(iTimeout);
getch(); //useing this, because holding down a key with nanosleep can get yourself killed
timeout(-1);
*/
mvwputch(w_terrain,
p->posx + VIEWX - u.posx - u.view_offset_x,
p->posy + VIEWY - u.posy - u.view_offset_y,
c_white, ' ');
wrefresh(w_terrain);
}
else
{
hit_animation(p->posx + VIEWX - u.posx - u.view_offset_x,
p->posy + VIEWY - u.posy - u.view_offset_y,
red_background(p->color()), '@');
}
}
/* Line drawing code, not really an animation but should be separated anyway */
void game::draw_line(const int x, const int y, const point center_point, std::vector<point> ret)
{
if (u_see( x, y))
{
for (int i = 0; i < ret.size(); i++)
{
int mondex = mon_at(ret[i].x, ret[i].y),
npcdex = npc_at(ret[i].x, ret[i].y);
// NPCs and monsters get drawn with inverted colors
if (mondex != -1 && u_see(&(_z[mondex])))
{
_z[mondex].draw(w_terrain, center_point.x, center_point.y, true);
}
else if (npcdex != -1)
{
active_npc[npcdex]->draw(w_terrain, center_point.x, center_point.y, true);
}
else
{
m.drawsq(w_terrain, u, ret[i].x, ret[i].y, true,true,center_point.x, center_point.y);
}
}
}
tilecontext->init_draw_line(x,y,ret,"line_target", true);
}
void game::draw_line(const int x, const int y, std::vector<point> vPoint)
{
for (int i = 1; i < vPoint.size(); i++)
{
m.drawsq(w_terrain, u, vPoint[i-1].x, vPoint[i-1].y, true, true);
}
mvwputch(w_terrain, vPoint[vPoint.size()-1].y + VIEWY - u.posy - u.view_offset_y,
vPoint[vPoint.size()-1].x + VIEWX - u.posx - u.view_offset_x, c_white, 'X');
tilecontext->init_draw_line(x,y,vPoint,"line_trail", false);
}
//*/
void game::draw_weather(weather_printable wPrint)
{
if (use_tiles)
{
std::string weather_name;
/*
WEATHER_ACID_DRIZZLE | WEATHER_ACID_RAIN = "weather_acid_drop"
WEATHER_DRIZZLE | WEATHER_RAINY | WEATHER_THUNDER | WEATHER_LIGHTNING = "weather_rain_drop"
WEATHER_SNOW | WEATHER_SNOWSTORM = "weather_snowflake"
*/
switch(wPrint.wtype)
{
// Acid weathers, uses acid droplet tile, fallthrough intended
case WEATHER_ACID_DRIZZLE:
case WEATHER_ACID_RAIN: weather_name = "weather_acid_drop"; break;
// Normal rainy weathers, uses normal raindrop tile, fallthrough intended
case WEATHER_DRIZZLE:
case WEATHER_RAINY:
case WEATHER_THUNDER:
case WEATHER_LIGHTNING: weather_name = "weather_rain_drop"; break;
// Snowy weathers, uses snowflake tile, fallthrough intended
case WEATHER_SNOW:
case WEATHER_SNOWSTORM: weather_name = "weather_snowflake"; break;
}
/*
// may have been the culprit of slowdown. Seems to be the same speed now for both weathered and non-weathered display
for (std::vector<std::pair<int, int> >::iterator weather_iterator = wPrint.vdrops.begin();
weather_iterator != wPrint.vdrops.end();
++weather_iterator)
{
mvwputch(w_terrain, weather_iterator->second, weather_iterator->first, wPrint.colGlyph, wPrint.cGlyph);
}
*/
tilecontext->init_draw_weather(wPrint, weather_name);
}
else
{
for (std::vector<std::pair<int, int> >::iterator weather_iterator = wPrint.vdrops.begin();
weather_iterator != wPrint.vdrops.end();
++weather_iterator)
{
mvwputch(w_terrain, weather_iterator->second, weather_iterator->first, wPrint.colGlyph, wPrint.cGlyph);
}
}
}
#endif
+347 -327
View File
@@ -90,268 +90,288 @@ int active_effect_cost[NUM_AEAS] = {
-5 // AEA_SHADOWS
};
artifact_shape_datum artifact_shape_data[ARTSHAPE_MAX] = {
{"BUG", "BUG", 0, 0, 0, 0},
{"sphere", "smooth sphere", 2, 4, 0, 10},
{"rod", "tapered rod", 1, 7, 1, 7},
{"teardrop", "teardrop-shaped stone", 2, 6, 0, 8},
{"lamp", "hollow, transparent cube", 4, 9, 0, 3},
{"snake", "winding, flexible rod", 0, 8, 0, 8},
{"disc", "smooth disc", 4, 6, 2, 4},
{"beads", "string of beads", 3, 7, 0, 6},
{"napkin", "very thin sheet", 0, 3, 0, 3},
{"urchin", "spiked sphere", 3, 5, 2, 6},
{"jelly", "malleable blob", 2, 8, 2, 4},
{"spiral", "spiraling rod", 5, 6, 2, 3},
{"pin", "pointed rod", 1, 5, 1, 9},
{"tube", "hollow tube", 2, 5, 3, 6},
{"pyramid", "regular tetrahedron", 3, 7, 2, 4},
{"crystal", "translucent crystal", 1, 6, 2, 7},
{"knot", "twisted, knotted cord", 2, 6, 1, 7},
{"crescent", "crescent-shaped stone", 2, 6, 2, 6}
};
artifact_property_datum artifact_property_data[ARTPROP_MAX] = {
{"BUG", "BUG",
{AEP_NULL, AEP_NULL, AEP_NULL, AEP_NULL},
{AEP_NULL, AEP_NULL, AEP_NULL, AEP_NULL},
{AEA_NULL, AEA_NULL, AEA_NULL, AEA_NULL},
{AEA_NULL, AEA_NULL, AEA_NULL, AEA_NULL}
},
{"wriggling", "is constantly wriggling",
{AEP_SPEED_UP, AEP_SNAKES, AEP_NULL, AEP_NULL},
{AEP_DEX_DOWN, AEP_FORCE_TELEPORT, AEP_SICK, AEP_NULL},
{AEA_TELEPORT, AEA_ADRENALINE, AEA_NULL, AEA_NULL},
{AEA_MUTATE, AEA_ATTENTION, AEA_VOMIT, AEA_NULL}
},
{"glowing", "glows faintly",
{AEP_INT_UP, AEP_GLOW, AEP_CLAIRVOYANCE, AEP_NULL},
{AEP_RADIOACTIVE, AEP_MUTAGENIC, AEP_ATTENTION, AEP_NULL},
{AEA_LIGHT, AEA_LIGHT, AEA_LIGHT, AEA_NULL},
{AEA_ATTENTION, AEA_TELEGLOW, AEA_FLASH, AEA_SHADOWS}
},
{"humming", "hums very quietly",
{AEP_ALL_UP, AEP_PSYSHIELD, AEP_NULL, AEP_NULL},
{AEP_SCHIZO, AEP_PER_DOWN, AEP_INT_DOWN, AEP_NULL},
{AEA_PULSE, AEA_ENTRANCE, AEA_NULL, AEA_NULL},
{AEA_NOISE, AEA_NOISE, AEA_SCREAM, AEA_NULL}
},
{"moving", "shifts from side to side slowly",
{AEP_STR_UP, AEP_DEX_UP, AEP_SPEED_UP, AEP_NULL},
{AEP_HUNGER, AEP_PER_DOWN, AEP_FORCE_TELEPORT, AEP_NULL},
{AEA_TELEPORT, AEA_TELEPORT, AEA_MAP, AEA_NULL},
{AEA_PARALYZE, AEA_VOMIT, AEA_VOMIT, AEA_NULL}
},
{"whispering", "makes very faint whispering sounds",
{AEP_CLAIRVOYANCE, AEP_EXTINGUISH, AEP_STEALTH, AEP_NULL},
{AEP_EVIL, AEP_SCHIZO, AEP_ATTENTION, AEP_NULL},
{AEA_FATIGUE, AEA_ENTRANCE, AEA_ENTRANCE, AEA_NULL},
{AEA_ATTENTION, AEA_SCREAM, AEA_SCREAM, AEA_SHADOWS}
},
{"breathing",
"shrinks and grows very slightly with a regular pulse, as if breathing",
{AEP_SAP_LIFE, AEP_ALL_UP, AEP_SPEED_UP, AEP_CARRY_MORE},
{AEP_HUNGER, AEP_THIRST, AEP_SICK, AEP_BAD_WEATHER},
{AEA_ADRENALINE, AEA_HEAL, AEA_ENTRANCE, AEA_GROWTH},
{AEA_MUTATE, AEA_ATTENTION, AEA_SHADOWS, AEA_NULL}
},
{"dead", "is icy cold to the touch",
{AEP_INVISIBLE, AEP_CLAIRVOYANCE, AEP_EXTINGUISH, AEP_SAP_LIFE},
{AEP_HUNGER, AEP_EVIL, AEP_ALL_DOWN, AEP_SICK},
{AEA_BLOOD, AEA_HURTALL, AEA_NULL, AEA_NULL},
{AEA_PAIN, AEA_SHADOWS, AEA_DIM, AEA_VOMIT}
},
{"itchy", "makes your skin itch slightly when it is close",
{AEP_DEX_UP, AEP_SPEED_UP, AEP_PSYSHIELD, AEP_NULL},
{AEP_RADIOACTIVE, AEP_MUTAGENIC, AEP_SICK, AEP_NULL},
{AEA_ADRENALINE, AEA_BLOOD, AEA_HEAL, AEA_BUGS},
{AEA_RADIATION, AEA_PAIN, AEA_PAIN, AEA_VOMIT}
},
{"glittering", "glitters faintly under direct light",
{AEP_INT_UP, AEP_EXTINGUISH, AEP_GLOW, AEP_NULL},
{AEP_SMOKE, AEP_ATTENTION, AEP_NULL, AEP_NULL},
{AEA_MAP, AEA_LIGHT, AEA_CONFUSED, AEA_ENTRANCE},
{AEA_RADIATION, AEA_MUTATE, AEA_ATTENTION, AEA_FLASH}
},
{"electric", "very weakly shocks you when touched",
{AEP_RESIST_ELECTRICITY, AEP_DEX_UP, AEP_SPEED_UP, AEP_PSYSHIELD},
{AEP_THIRST, AEP_SMOKE, AEP_STR_DOWN, AEP_BAD_WEATHER},
{AEA_STORM, AEA_ADRENALINE, AEA_LIGHT, AEA_NULL},
{AEA_PAIN, AEA_PARALYZE, AEA_FLASH, AEA_FLASH}
},
{"slimy", "feels slimy",
{AEP_SNAKES, AEP_STEALTH, AEP_EXTINGUISH, AEP_SAP_LIFE},
{AEP_THIRST, AEP_DEX_DOWN, AEP_SPEED_DOWN, AEP_SICK},
{AEA_BLOOD, AEA_ACIDBALL, AEA_GROWTH, AEA_ACIDBALL},
{AEA_MUTATE, AEA_MUTATE, AEA_VOMIT, AEA_VOMIT}
},
{"engraved", "is covered with odd etchings",
{AEP_CLAIRVOYANCE, AEP_INVISIBLE, AEP_PSYSHIELD, AEP_SAP_LIFE},
{AEP_EVIL, AEP_ATTENTION, AEP_NULL, AEP_NULL},
{AEA_FATIGUE, AEA_TELEPORT, AEA_HEAL, AEA_FATIGUE},
{AEA_ATTENTION, AEA_ATTENTION, AEA_TELEGLOW, AEA_DIM}
},
{"crackling", "occasionally makes a soft crackling sound",
{AEP_EXTINGUISH, AEP_RESIST_ELECTRICITY, AEP_NULL, AEP_NULL},
{AEP_SMOKE, AEP_RADIOACTIVE, AEP_MOVEMENT_NOISE, AEP_NULL},
{AEA_STORM, AEA_FIREBALL, AEA_PULSE, AEA_NULL},
{AEA_PAIN, AEA_PARALYZE, AEA_NOISE, AEA_NOISE}
},
{"warm", "is warm to the touch",
{AEP_STR_UP, AEP_EXTINGUISH, AEP_GLOW, AEP_NULL},
{AEP_SMOKE, AEP_RADIOACTIVE, AEP_NULL, AEP_NULL},
{AEA_FIREBALL, AEA_FIREBALL, AEA_FIREBALL, AEA_LIGHT},
{AEA_FIRESTORM, AEA_FIRESTORM, AEA_TELEGLOW, AEA_NULL}
},
{"rattling", "makes a rattling sound when moved",
{AEP_DEX_UP, AEP_SPEED_UP, AEP_SNAKES, AEP_CARRY_MORE},
{AEP_ATTENTION, AEP_INT_DOWN, AEP_MOVEMENT_NOISE, AEP_MOVEMENT_NOISE},
{AEA_BLOOD, AEA_PULSE, AEA_BUGS, AEA_NULL},
{AEA_PAIN, AEA_ATTENTION, AEA_NOISE, AEA_NULL}
},
{"scaled", "has a surface reminiscent of reptile scales",
{AEP_SNAKES, AEP_SNAKES, AEP_SNAKES, AEP_STEALTH},
{AEP_THIRST, AEP_MUTAGENIC, AEP_SPEED_DOWN, AEP_NULL},
{AEA_ADRENALINE, AEA_BUGS, AEA_GROWTH, AEA_NULL},
{AEA_MUTATE, AEA_SCREAM, AEA_DIM, AEA_NULL}
},
{"fractal",
"has a self-similar pattern which repeats until it is too small for you to see",
{AEP_ALL_UP, AEP_ALL_UP, AEP_CLAIRVOYANCE, AEP_PSYSHIELD},
{AEP_SCHIZO, AEP_ATTENTION, AEP_FORCE_TELEPORT, AEP_BAD_WEATHER},
{AEA_STORM, AEA_FATIGUE, AEA_TELEPORT, AEA_NULL},
{AEA_RADIATION, AEA_MUTATE, AEA_TELEGLOW, AEA_TELEGLOW}
}
};
artifact_tool_form_datum artifact_tool_form_data[NUM_ARTTOOLFORMS] = {
{"", '*', c_white, "null", "null", 0, 0, 0, 0, ARTWEAP_BULK,
{ARTWEAP_NULL, ARTWEAP_NULL, ARTWEAP_NULL}},
{"Harp", ';', c_yellow, "wood", "null", 20, 30, 10, 18, ARTWEAP_BULK,
{ARTWEAP_SPEAR, ARTWEAP_SWORD, ARTWEAP_KNIFE}},
{"Staff", '/', c_brown, "wood", "null", 6, 12, 4, 10, ARTWEAP_CLUB,
{ARTWEAP_BULK, ARTWEAP_SPEAR, ARTWEAP_KNIFE}},
{"Sword", '/', c_ltblue, "steel", "null", 8, 14, 8, 28, ARTWEAP_SWORD,
{ARTWEAP_BULK, ARTWEAP_NULL, ARTWEAP_NULL}},
{"Dagger", ';', c_ltblue, "steel", "null", 1, 4, 1, 6, ARTWEAP_KNIFE,
{ARTWEAP_NULL, ARTWEAP_NULL, ARTWEAP_NULL}},
{"Cube", '*', c_white, "steel", "null", 1, 3, 1, 20, ARTWEAP_BULK,
{ARTWEAP_SPEAR, ARTWEAP_NULL, ARTWEAP_NULL}}
};
artifact_weapon_datum artifact_weapon_data[NUM_ARTWEAPS] = {
{"", 0, 0, 0, 0, 0, 0, 0, 0, ""},
// Adjective Vol,wgt Bash Cut To-Hit
{"Heavy", 0, 12, 10, 20, 0, 0, -2, 0,
""},
{"Knobbed", 1, 2, 14, 30, 0, 0, -1, 1,
""},
{"Spiked", 1, 1, 0, 0, 20, 40, -1, 1,
"SPEAR"},
{"Edged", 2, 4, 0, 0, 20, 50, -1, 2,
""},
{"Bladed", 1, 2, 0, 0, 12, 30, -1, 1,
"STAB"}
};
artifact_armor_form_datum artifact_armor_form_data[NUM_ARTARMFORMS] = {
{"", c_white, "null", "null", 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, false,
{ARMORMOD_NULL, ARMORMOD_NULL, ARMORMOD_NULL, ARMORMOD_NULL, ARMORMOD_NULL}},
// Name color Materials Vol Wgt Enc Cov Thk Env Wrm Sto Bsh Cut Hit
{"Robe", c_red, "wool", "null", 6, 6, 1, 3, 3, 0, 2, 0, -8, 0, -3,
mfb(bp_torso)|mfb(bp_legs), false,
{ARMORMOD_LIGHT, ARMORMOD_BULKY, ARMORMOD_POCKETED, ARMORMOD_FURRED,
ARMORMOD_PADDED}},
{"Coat", c_brown,"leather","null", 14, 14, 2, 3, 2, 1, 4, 4, -6, 0, -3,
mfb(bp_torso), false,
{ARMORMOD_LIGHT, ARMORMOD_POCKETED, ARMORMOD_FURRED, ARMORMOD_PADDED,
ARMORMOD_PLATED}},
{"Mask", c_white, "wood", "null", 4, 1, 2, 2, 2, 1, 2, 0, 2, 0, -2,
mfb(bp_eyes)|mfb(bp_mouth), false,
{ARMORMOD_FURRED, ARMORMOD_FURRED, ARMORMOD_NULL, ARMORMOD_NULL,
ARMORMOD_NULL}},
// Name color Materials Vol Wgt Enc Cov Thk Env Wrm Sto Bsh Cut Hit
{"Helm", c_dkgray, "silver", "null", 6, 6, 2, 3, 3, 0, 1, 0, 8, 0, -2,
mfb(bp_head), false,
{ARMORMOD_BULKY, ARMORMOD_FURRED, ARMORMOD_PADDED, ARMORMOD_PLATED,
ARMORMOD_NULL}},
{"Gloves", c_ltblue,"leather","null", 2, 1, 1, 3, 3, 1, 2, 0, -4, 0, -2,
mfb(bp_hands), true,
{ARMORMOD_BULKY, ARMORMOD_FURRED, ARMORMOD_PADDED, ARMORMOD_PLATED,
ARMORMOD_NULL}},
// Name color Materials Vol Wgt Enc Cov Thk Env Wrm Sto Bsh Cut Hit
{"Boots", c_blue, "leather", "null", 6, 2, 1, 3, 3, 1, 3, 0, 4, 0, -1,
mfb(bp_feet), true,
{ARMORMOD_LIGHT, ARMORMOD_BULKY, ARMORMOD_PADDED, ARMORMOD_PLATED,
ARMORMOD_NULL}},
{"Ring", c_ltgreen, "silver", "null", 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, true,
{ARMORMOD_NULL, ARMORMOD_NULL, ARMORMOD_NULL, ARMORMOD_NULL, ARMORMOD_NULL}}
};
artifact_armor_form_datum artifact_armor_mod_data[NUM_ARMORMODS] = {
{"", c_white, "null", "null", 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, false,
{ARMORMOD_NULL, ARMORMOD_NULL, ARMORMOD_NULL, ARMORMOD_NULL, ARMORMOD_NULL}},
// Description; "It is ..." or "They are ..."
{"very thin and light.", c_white, "null", "null",
// Vol Wgt Enc Cov Thk Env Wrm Sto
-4, -8, -2, -1, -1, -1, -1, 0, 0, 0, 0, 0, false,
{ARMORMOD_NULL, ARMORMOD_NULL, ARMORMOD_NULL, ARMORMOD_NULL, ARMORMOD_NULL}},
{"extremely bulky.", c_white, "null", "null",
8, 10, 2, 1, 1, 0, 1, 0, 0, 0, 0, 0, false,
{ARMORMOD_NULL, ARMORMOD_NULL, ARMORMOD_NULL, ARMORMOD_NULL, ARMORMOD_NULL}},
{"covered in pockets.", c_white, "null", "null",
1, 1, 1, 0, 0, 0, 0, 16, 0, 0, 0, 0, false,
{ARMORMOD_NULL, ARMORMOD_NULL, ARMORMOD_NULL, ARMORMOD_NULL, ARMORMOD_NULL}},
{"disgustingly furry.", c_white, "wool", "null",
// Vol Wgt Enc Dmg Cut Env Wrm Sto
4, 2, 1, 1, 1, 1, 3, 0, 0, 0, 0, 0, false,
{ARMORMOD_NULL, ARMORMOD_NULL, ARMORMOD_NULL, ARMORMOD_NULL, ARMORMOD_NULL}},
{"leather-padded.", c_white, "leather", "null",
4, 4, 1, 1, 1, 0, 1, -3, 0, 0, 0, 0, false,
{ARMORMOD_NULL, ARMORMOD_NULL, ARMORMOD_NULL, ARMORMOD_NULL, ARMORMOD_NULL}},
{"plated in iron.", c_white, "iron", "null",
4, 12, 3, 2, 2, 0, 1, -4, 0, 0, 0, 0, false,
{ARMORMOD_NULL, ARMORMOD_NULL, ARMORMOD_NULL, ARMORMOD_NULL, ARMORMOD_NULL}},
};
std::string artifact_adj[NUM_ART_ADJS] = {
"Forbidden", "Unknown", "Forgotten", "Hideous", "Eldritch",
"Gelatinous", "Ancient", "Cursed", "Bloody", "Undying",
"Shadowy", "Silent", "Cyclopean", "Fungal", "Unspeakable",
"Grotesque", "Frigid", "Shattered", "Sleeping", "Repellent"
};
// Prepending + makes it proper, e.g. "The Forbidden Abyss"
std::string artifact_noun[NUM_ART_NOUNS] = {
"Technique", "Dreams", "Beasts", "Evil", "Miasma",
"+Abyss", "+City", "Shadows", "Shade", "Illusion",
"Justice", "+Necropolis", "Ichor", "+Monolith", "Aeons",
"Graves", "Horrors", "Suffering", "Death", "Horror"
};
//see below, move them so gettext and be applied properly
artifact_shape_datum artifact_shape_data[ARTSHAPE_MAX];
artifact_property_datum artifact_property_data[ARTPROP_MAX];
artifact_tool_form_datum artifact_tool_form_data[NUM_ARTTOOLFORMS];
artifact_weapon_datum artifact_weapon_data[NUM_ARTWEAPS];
artifact_armor_form_datum artifact_armor_form_data[NUM_ARTARMFORMS];
artifact_armor_form_datum artifact_armor_mod_data[NUM_ARMORMODS];
std::string artifact_adj[NUM_ART_ADJS];
std::string artifact_noun[NUM_ART_NOUNS];
std::string artifact_name(std::string type);
void game::init_artifacts()
{
artifact_shape_datum tmp_artifact_shape_data[ARTSHAPE_MAX] = {
{"BUG", "BUG", 0, 0, 0, 0},
{_("sphere"), _("smooth sphere"), 2, 4, 1, 1150},
{_("rod"), _("tapered rod"), 1, 7, 1, 800},
{_("teardrop"), _("teardrop-shaped stone"), 2, 6, 1, 950},
{_("lamp"), _("hollow, transparent cube"), 4, 9, 1, 350},
{_("snake"), _("winding, flexible rod"), 0, 8, 1, 950},
{_("disc"), _("smooth disc"), 4, 6, 200, 400},
{_("beads"), _("string of beads"), 3, 7, 1, 700},
{_("napkin"), _("very thin sheet"), 0, 3, 1, 350},
{_("urchin"), _("spiked sphere"), 3, 5, 200, 700},
{_("jelly"), _("malleable blob"), 2, 8, 200, 450},
{_("spiral"), _("spiraling rod"), 5, 6, 200, 350},
{_("pin"), _("pointed rod"), 1, 5, 100, 1050},
{_("tube"), _("hollow tube"), 2, 5, 350, 700},
{_("pyramid"), _("regular tetrahedron"), 3, 7, 200, 450},
{_("crystal"), _("translucent crystal"), 1, 6, 200, 800},
{_("knot"), _("twisted, knotted cord"), 2, 6, 100, 800},
{_("crescent"), _("crescent-shaped stone"), 2, 6, 200, 700}
};
for(int i=0;i<ARTSHAPE_MAX;i++) {artifact_shape_data[i]=tmp_artifact_shape_data[i];}
artifact_property_datum tmp_artifact_property_data[ARTPROP_MAX] = {
{"BUG", "BUG",
{AEP_NULL, AEP_NULL, AEP_NULL, AEP_NULL},
{AEP_NULL, AEP_NULL, AEP_NULL, AEP_NULL},
{AEA_NULL, AEA_NULL, AEA_NULL, AEA_NULL},
{AEA_NULL, AEA_NULL, AEA_NULL, AEA_NULL}
},
{_("wriggling"), _("is constantly wriggling"),
{AEP_SPEED_UP, AEP_SNAKES, AEP_NULL, AEP_NULL},
{AEP_DEX_DOWN, AEP_FORCE_TELEPORT, AEP_SICK, AEP_NULL},
{AEA_TELEPORT, AEA_ADRENALINE, AEA_NULL, AEA_NULL},
{AEA_MUTATE, AEA_ATTENTION, AEA_VOMIT, AEA_NULL}
},
{_("glowing"), _("glows faintly"),
{AEP_INT_UP, AEP_GLOW, AEP_CLAIRVOYANCE, AEP_NULL},
{AEP_RADIOACTIVE, AEP_MUTAGENIC, AEP_ATTENTION, AEP_NULL},
{AEA_LIGHT, AEA_LIGHT, AEA_LIGHT, AEA_NULL},
{AEA_ATTENTION, AEA_TELEGLOW, AEA_FLASH, AEA_SHADOWS}
},
{_("humming"), _("hums very quietly"),
{AEP_ALL_UP, AEP_PSYSHIELD, AEP_NULL, AEP_NULL},
{AEP_SCHIZO, AEP_PER_DOWN, AEP_INT_DOWN, AEP_NULL},
{AEA_PULSE, AEA_ENTRANCE, AEA_NULL, AEA_NULL},
{AEA_NOISE, AEA_NOISE, AEA_SCREAM, AEA_NULL}
},
{_("moving"), _("shifts from side to side slowly"),
{AEP_STR_UP, AEP_DEX_UP, AEP_SPEED_UP, AEP_NULL},
{AEP_HUNGER, AEP_PER_DOWN, AEP_FORCE_TELEPORT, AEP_NULL},
{AEA_TELEPORT, AEA_TELEPORT, AEA_MAP, AEA_NULL},
{AEA_PARALYZE, AEA_VOMIT, AEA_VOMIT, AEA_NULL}
},
{_("whispering"), _("makes very faint whispering sounds"),
{AEP_CLAIRVOYANCE, AEP_EXTINGUISH, AEP_STEALTH, AEP_NULL},
{AEP_EVIL, AEP_SCHIZO, AEP_ATTENTION, AEP_NULL},
{AEA_FATIGUE, AEA_ENTRANCE, AEA_ENTRANCE, AEA_NULL},
{AEA_ATTENTION, AEA_SCREAM, AEA_SCREAM, AEA_SHADOWS}
},
{_("breathing"),
_("shrinks and grows very slightly with a regular pulse, as if breathing"),
{AEP_SAP_LIFE, AEP_ALL_UP, AEP_SPEED_UP, AEP_CARRY_MORE},
{AEP_HUNGER, AEP_THIRST, AEP_SICK, AEP_BAD_WEATHER},
{AEA_ADRENALINE, AEA_HEAL, AEA_ENTRANCE, AEA_GROWTH},
{AEA_MUTATE, AEA_ATTENTION, AEA_SHADOWS, AEA_NULL}
},
{_("dead"), _("is icy cold to the touch"),
{AEP_INVISIBLE, AEP_CLAIRVOYANCE, AEP_EXTINGUISH, AEP_SAP_LIFE},
{AEP_HUNGER, AEP_EVIL, AEP_ALL_DOWN, AEP_SICK},
{AEA_BLOOD, AEA_HURTALL, AEA_NULL, AEA_NULL},
{AEA_PAIN, AEA_SHADOWS, AEA_DIM, AEA_VOMIT}
},
{_("itchy"), _("makes your skin itch slightly when it is close"),
{AEP_DEX_UP, AEP_SPEED_UP, AEP_PSYSHIELD, AEP_NULL},
{AEP_RADIOACTIVE, AEP_MUTAGENIC, AEP_SICK, AEP_NULL},
{AEA_ADRENALINE, AEA_BLOOD, AEA_HEAL, AEA_BUGS},
{AEA_RADIATION, AEA_PAIN, AEA_PAIN, AEA_VOMIT}
},
{_("glittering"), _("glitters faintly under direct light"),
{AEP_INT_UP, AEP_EXTINGUISH, AEP_GLOW, AEP_NULL},
{AEP_SMOKE, AEP_ATTENTION, AEP_NULL, AEP_NULL},
{AEA_MAP, AEA_LIGHT, AEA_CONFUSED, AEA_ENTRANCE},
{AEA_RADIATION, AEA_MUTATE, AEA_ATTENTION, AEA_FLASH}
},
{_("electric"), _("very weakly shocks you when touched"),
{AEP_RESIST_ELECTRICITY, AEP_DEX_UP, AEP_SPEED_UP, AEP_PSYSHIELD},
{AEP_THIRST, AEP_SMOKE, AEP_STR_DOWN, AEP_BAD_WEATHER},
{AEA_STORM, AEA_ADRENALINE, AEA_LIGHT, AEA_NULL},
{AEA_PAIN, AEA_PARALYZE, AEA_FLASH, AEA_FLASH}
},
{_("slimy"), _("feels slimy"),
{AEP_SNAKES, AEP_STEALTH, AEP_EXTINGUISH, AEP_SAP_LIFE},
{AEP_THIRST, AEP_DEX_DOWN, AEP_SPEED_DOWN, AEP_SICK},
{AEA_BLOOD, AEA_ACIDBALL, AEA_GROWTH, AEA_ACIDBALL},
{AEA_MUTATE, AEA_MUTATE, AEA_VOMIT, AEA_VOMIT}
},
{_("engraved"), _("is covered with odd etchings"),
{AEP_CLAIRVOYANCE, AEP_INVISIBLE, AEP_PSYSHIELD, AEP_SAP_LIFE},
{AEP_EVIL, AEP_ATTENTION, AEP_NULL, AEP_NULL},
{AEA_FATIGUE, AEA_TELEPORT, AEA_HEAL, AEA_FATIGUE},
{AEA_ATTENTION, AEA_ATTENTION, AEA_TELEGLOW, AEA_DIM}
},
{_("crackling"), _("occasionally makes a soft crackling sound"),
{AEP_EXTINGUISH, AEP_RESIST_ELECTRICITY, AEP_NULL, AEP_NULL},
{AEP_SMOKE, AEP_RADIOACTIVE, AEP_MOVEMENT_NOISE, AEP_NULL},
{AEA_STORM, AEA_FIREBALL, AEA_PULSE, AEA_NULL},
{AEA_PAIN, AEA_PARALYZE, AEA_NOISE, AEA_NOISE}
},
{_("warm"), _("is warm to the touch"),
{AEP_STR_UP, AEP_EXTINGUISH, AEP_GLOW, AEP_NULL},
{AEP_SMOKE, AEP_RADIOACTIVE, AEP_NULL, AEP_NULL},
{AEA_FIREBALL, AEA_FIREBALL, AEA_FIREBALL, AEA_LIGHT},
{AEA_FIRESTORM, AEA_FIRESTORM, AEA_TELEGLOW, AEA_NULL}
},
{_("rattling"), _("makes a rattling sound when moved"),
{AEP_DEX_UP, AEP_SPEED_UP, AEP_SNAKES, AEP_CARRY_MORE},
{AEP_ATTENTION, AEP_INT_DOWN, AEP_MOVEMENT_NOISE, AEP_MOVEMENT_NOISE},
{AEA_BLOOD, AEA_PULSE, AEA_BUGS, AEA_NULL},
{AEA_PAIN, AEA_ATTENTION, AEA_NOISE, AEA_NULL}
},
{_("scaled"), _("has a surface reminiscent of reptile scales"),
{AEP_SNAKES, AEP_SNAKES, AEP_SNAKES, AEP_STEALTH},
{AEP_THIRST, AEP_MUTAGENIC, AEP_SPEED_DOWN, AEP_NULL},
{AEA_ADRENALINE, AEA_BUGS, AEA_GROWTH, AEA_NULL},
{AEA_MUTATE, AEA_SCREAM, AEA_DIM, AEA_NULL}
},
{_("fractal"),
_("has a self-similar pattern which repeats until it is too small for you to see"),
{AEP_ALL_UP, AEP_ALL_UP, AEP_CLAIRVOYANCE, AEP_PSYSHIELD},
{AEP_SCHIZO, AEP_ATTENTION, AEP_FORCE_TELEPORT, AEP_BAD_WEATHER},
{AEA_STORM, AEA_FATIGUE, AEA_TELEPORT, AEA_NULL},
{AEA_RADIATION, AEA_MUTATE, AEA_TELEGLOW, AEA_TELEGLOW}
}
};
for(int i=0;i<ARTPROP_MAX;i++) {artifact_property_data[i]=tmp_artifact_property_data[i];}
artifact_tool_form_datum tmp_artifact_tool_form_data[NUM_ARTTOOLFORMS] = {
{"", '*', c_white, "null", "null", 0, 0, 0, 0, ARTWEAP_BULK,
{ARTWEAP_NULL, ARTWEAP_NULL, ARTWEAP_NULL}},
{_("Harp"), ';', c_yellow, "wood", "null", 20, 30, 1150, 2100, ARTWEAP_BULK,
{ARTWEAP_SPEAR, ARTWEAP_SWORD, ARTWEAP_KNIFE}},
{_("Staff"), '/', c_brown, "wood", "null", 6, 12, 450, 1150, ARTWEAP_CLUB,
{ARTWEAP_BULK, ARTWEAP_SPEAR, ARTWEAP_KNIFE}},
{_("Sword"), '/', c_ltblue, "steel", "null", 8, 14, 900, 3259, ARTWEAP_SWORD,
{ARTWEAP_BULK, ARTWEAP_NULL, ARTWEAP_NULL}},
{_("Dagger"), ';', c_ltblue, "steel", "null", 1, 4, 100, 700, ARTWEAP_KNIFE,
{ARTWEAP_NULL, ARTWEAP_NULL, ARTWEAP_NULL}},
{_("Cube"), '*', c_white, "steel", "null", 1, 3, 100, 2300, ARTWEAP_BULK,
{ARTWEAP_SPEAR, ARTWEAP_NULL, ARTWEAP_NULL}}
};
for(int i=0;i<NUM_ARTTOOLFORMS;i++) {artifact_tool_form_data[i]=tmp_artifact_tool_form_data[i];}
artifact_weapon_datum tmp_artifact_weapon_data[NUM_ARTWEAPS] = {
{"", 0, 0, 0, 0, 0, 0, 0, 0, ""},
// Adjective Vol,wgt Bash Cut To-Hit tags
{_("Heavy"), 0,1400, 10, 20, 0, 0, -2, 0,
""},
{_("Knobbed"), 1,250, 14, 30, 0, 0, -1, 1,
""},
{_("Spiked"), 1,100, 0, 0, 20, 40, -1, 1,
"SPEAR"},
{_("Edged"), 2,450, 0, 0, 20, 50, -1, 2,
""},
{_("Bladed"), 1,2250, 0, 0, 12, 30, -1, 1,
"STAB"}
};
for(int i=0;i<NUM_ARTWEAPS;i++) {artifact_weapon_data[i]=tmp_artifact_weapon_data[i];}
artifact_armor_form_datum tmp_artifact_armor_form_data[NUM_ARTARMFORMS] = {
{"", c_white, "null", "null", 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, false,
{ARMORMOD_NULL, ARMORMOD_NULL, ARMORMOD_NULL, ARMORMOD_NULL, ARMORMOD_NULL}},
// Name color Materials Vol Wgt Enc Cov Thk Env Wrm Sto Bsh Cut Hit
{_("Robe"), c_red, "wool", "null", 6, 700, 1, 3, 3, 0, 2, 0, -8, 0, -3,
mfb(bp_torso)|mfb(bp_legs), false,
{ARMORMOD_LIGHT, ARMORMOD_BULKY, ARMORMOD_POCKETED, ARMORMOD_FURRED,
ARMORMOD_PADDED}},
{_("Coat"), c_brown,"leather","null", 14, 1600, 2, 3, 2, 1, 4, 4, -6, 0, -3,
mfb(bp_torso), false,
{ARMORMOD_LIGHT, ARMORMOD_POCKETED, ARMORMOD_FURRED, ARMORMOD_PADDED,
ARMORMOD_PLATED}},
{_("Mask"), c_white, "wood", "null", 4, 100, 2, 2, 2, 1, 2, 0, 2, 0, -2,
mfb(bp_eyes)|mfb(bp_mouth), false,
{ARMORMOD_FURRED, ARMORMOD_FURRED, ARMORMOD_NULL, ARMORMOD_NULL,
ARMORMOD_NULL}},
// Name color Materials Vol Wgt Enc Cov Thk Env Wrm Sto Bsh Cut Hit
{_("Helm"), c_dkgray, "silver", "null", 6, 700, 2, 3, 3, 0, 1, 0, 8, 0, -2,
mfb(bp_head), false,
{ARMORMOD_BULKY, ARMORMOD_FURRED, ARMORMOD_PADDED, ARMORMOD_PLATED,
ARMORMOD_NULL}},
{_("Gloves"), c_ltblue,"leather","null", 2, 100, 1, 3, 3, 1, 2, 0, -4, 0, -2,
mfb(bp_hands), true,
{ARMORMOD_BULKY, ARMORMOD_FURRED, ARMORMOD_PADDED, ARMORMOD_PLATED,
ARMORMOD_NULL}},
// Name color Materials Vol Wgt Enc Cov Thk Env Wrm Sto Bsh Cut Hit
{_("Boots"), c_blue, "leather", "null", 6, 250, 1, 3, 3, 1, 3, 0, 4, 0, -1,
mfb(bp_feet), true,
{ARMORMOD_LIGHT, ARMORMOD_BULKY, ARMORMOD_PADDED, ARMORMOD_PLATED,
ARMORMOD_NULL}},
{_("Ring"), c_ltgreen, "silver", "null", 0, 4, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, true,
{ARMORMOD_NULL, ARMORMOD_NULL, ARMORMOD_NULL, ARMORMOD_NULL, ARMORMOD_NULL}}
};
for(int i=0;i<NUM_ARTARMFORMS;i++) {artifact_armor_form_data[i]=tmp_artifact_armor_form_data[i];}
artifact_armor_form_datum tmp_artifact_armor_mod_data[NUM_ARMORMODS] = {
{"", c_white, "null", "null", 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, false,
{ARMORMOD_NULL, ARMORMOD_NULL, ARMORMOD_NULL, ARMORMOD_NULL, ARMORMOD_NULL}},
// Description; "It is ..." or "They are ..."
{_("very thin and light."), c_white, "null", "null",
// Vol Wgt Enc Cov Thk Env Wrm Sto
-4, -950, -2, -1, -1, -1, -1, 0, 0, 0, 0, 0, false,
{ARMORMOD_NULL, ARMORMOD_NULL, ARMORMOD_NULL, ARMORMOD_NULL, ARMORMOD_NULL}},
{_("extremely bulky."), c_white, "null", "null",
8, 1150, 2, 1, 1, 0, 1, 0, 0, 0, 0, 0, false,
{ARMORMOD_NULL, ARMORMOD_NULL, ARMORMOD_NULL, ARMORMOD_NULL, ARMORMOD_NULL}},
{_("covered in pockets."), c_white, "null", "null",
1, 150, 1, 0, 0, 0, 0, 16, 0, 0, 0, 0, false,
{ARMORMOD_NULL, ARMORMOD_NULL, ARMORMOD_NULL, ARMORMOD_NULL, ARMORMOD_NULL}},
{_("disgustingly furry."), c_white, "wool", "null",
// Vol Wgt Enc Dmg Cut Env Wrm Sto
4, 250, 1, 1, 1, 1, 3, 0, 0, 0, 0, 0, false,
{ARMORMOD_NULL, ARMORMOD_NULL, ARMORMOD_NULL, ARMORMOD_NULL, ARMORMOD_NULL}},
{_("leather-padded."), c_white, "leather", "null",
4, 450, 1, 1, 1, 0, 1, -3, 0, 0, 0, 0, false,
{ARMORMOD_NULL, ARMORMOD_NULL, ARMORMOD_NULL, ARMORMOD_NULL, ARMORMOD_NULL}},
{_("plated in iron."), c_white, "iron", "null",
4, 1400, 3, 2, 2, 0, 1, -4, 0, 0, 0, 0, false,
{ARMORMOD_NULL, ARMORMOD_NULL, ARMORMOD_NULL, ARMORMOD_NULL, ARMORMOD_NULL}},
};
for(int i=0;i<NUM_ARMORMODS;i++) {artifact_armor_mod_data[i]=tmp_artifact_armor_mod_data[i];}
std::string tmp_artifact_adj[NUM_ART_ADJS] = {
_("Forbidden"), _("Unknown"), _("Forgotten"), _("Hideous"), _("Eldritch"),
_("Gelatinous"), _("Ancient"), _("Cursed"), _("Bloody"), _("Undying"),
_("Shadowy"), _("Silent"), _("Cyclopean"), _("Fungal"), _("Unspeakable"),
_("Grotesque"), _("Frigid"), _("Shattered"), _("Sleeping"), _("Repellent")
};
for(int i=0;i<NUM_ART_ADJS;i++) {artifact_adj[i]=tmp_artifact_adj[i];}
std::string tmp_artifact_noun[NUM_ART_NOUNS] = {
_("%s Technique"), _("%s Dreams"), _("%s Beasts"), _("%s Evil"), _("%s Miasma"),
_("the %s Abyss"), _("the %s City"), _("%s Shadows"), _("%s Shade"), _("%s Illusion"),
_("%s Justice"), _("the %s Necropolis"), _("%s Ichor"), _("the %s Monolith"), _("%s Aeons"),
_("%s Graves"), _("%s Horrors"), _("%s Suffering"), _("%s Death"), _("%s Horror")
};
for(int i=0;i<NUM_ART_NOUNS;i++) {artifact_noun[i]=tmp_artifact_noun[i];}
}
itype* game::new_artifact()
{
if (one_in(2)) { // Generate a "tool" artifact
@@ -393,12 +413,7 @@ itype* game::new_artifact()
art->name = artifact_name(newname.str());
}
}
std::stringstream description;
description << "This is the " << art->name << ".\n\
It is the only one of its kind.\n\
It may have unknown powers; use 'a' to activate them.";
art->description = description.str();
art->description = string_format(_("This is the %s.\nIt is the only one of its kind.\nIt may have unknown powers; use 'a' to activate them."), art->name.c_str());
// Finally, pick some powers
art_effect_passive passive_tmp = AEP_NULL;
@@ -515,9 +530,10 @@ It may have unknown powers; use 'a' to activate them.";
art->warmth = info->warmth;
art->storage = info->storage;
std::stringstream description;
description << "This is the " << art->name << ".\n" <<
(info->plural ? "They are the only ones of their kind." :
"It is the only one of its kind.");
description << string_format(info->plural?
_("This is the %s.\nThey are the only ones of their kind.") :
_("This is the %s.\nIt is the only one of its kind."),
art->name.c_str());
// Modify the armor further
if (!one_in(4)) {
@@ -558,8 +574,10 @@ It may have unknown powers; use 'a' to activate them.";
else
art->storage = 0;
description << "\n" << (info->plural ? "They are " : "It is ") <<
modinfo->name;
description << string_format(info->plural?
_("\nThey are %s") :
_("\nIt is %s"),
modinfo->name.c_str());
}
}
@@ -622,11 +640,11 @@ itype* game::new_natural_artifact(artifact_natural_property prop)
art->melee_cut = 0;
art->m_to_hit = 0;
art->name = property_data->name + " " + shape_data->name;
std::stringstream desc;
desc << "This " << shape_data->desc << " " << property_data->desc << ".";
art->description = desc.str();
art->name = rmp_format(_("<artifact_name>%1$s %2$s"), property_data->name.c_str(), shape_data->name.c_str());
art->description = rmp_format(_("<artifact_desc>This %1$s %2$s."), shape_data->desc.c_str(), property_data->desc.c_str());
// Add line breaks to the description as necessary
/*
size_t pos = 76;
while (art->description.length() - pos >= 76) {
pos = art->description.find_last_of(' ', pos);
@@ -636,7 +654,7 @@ itype* game::new_natural_artifact(artifact_natural_property prop)
art->description[pos] = '\n';
pos += 76;
}
}
}*/
// Three possibilities: good passive + bad passive, good active + bad active,
// and bad passive + good active
@@ -748,15 +766,13 @@ std::vector<art_effect_active> fill_bad_active()
std::string artifact_name(std::string type)
{
std::stringstream ret;
ret << type << " of ";
std::string ret;
const char *fmtstr = _("<artifact_name>%1$s of %2$s");
std::string noun = artifact_noun[rng(0, NUM_ART_NOUNS - 1)];
if (noun[0] == '+') {
ret << "the ";
noun = noun.substr(1); // Chop off '+'
}
ret << artifact_adj[rng(0, NUM_ART_ADJS - 1)] << " " << noun;
return ret.str();
std::string adj = artifact_adj[rng(0, NUM_ART_ADJS - 1)];
ret = string_format(noun.c_str(), adj.c_str());
ret = rmp_format(fmtstr, type.c_str(),ret.c_str());
return ret;
}
@@ -787,14 +803,14 @@ void game::process_artifact(item *it, player *p, bool wielded)
break;
case ARTC_PAIN:
if (turn.seconds() == 0) {
add_msg("You suddenly feel sharp pain for no reason.");
add_msg(_("You suddenly feel sharp pain for no reason."));
p->pain += 3 * rng(1, 3);
it->charges++;
}
break;
case ARTC_HP:
if (turn.seconds() == 0) {
add_msg("You feel your body decaying.");
add_msg(_("You feel your body decaying."));
p->hurtall(1);
it->charges++;
}
@@ -835,7 +851,7 @@ void game::process_artifact(item *it, player *p, bool wielded)
if (one_in(10)) {
int x = p->posx + rng(-1, 1), y = p->posy + rng(-1, 1);
if (m.add_field(this, x, y, fd_smoke, rng(1, 3)))
add_msg("The %s emits some smoke.", it->tname().c_str());
add_msg(_("The %s emits some smoke."), it->tname().c_str());
}
break;
@@ -845,15 +861,16 @@ void game::process_artifact(item *it, player *p, bool wielded)
case AEP_EXTINGUISH:
for (int x = p->posx - 1; x <= p->posx + 1; x++) {
for (int y = p->posy - 1; y <= p->posy + 1; y++) {
if (m.field_at(x, y).findField(fd_fire)) {
if (m.field_at(x, y).findField(fd_fire)->getFieldDensity() == 0)
m.remove_field(x, y, fd_fire);
else
m.field_at(x, y).findField(fd_fire)->setFieldDensity(m.field_at(x, y).findField(fd_fire)->getFieldDensity() - 1);
}
field &fire_field = m.field_at(x, y);
if (fire_field.findField(fd_fire)) {
if (fire_field.findField(fd_fire)->getFieldDensity() == 0) {
m.remove_field(x, y, fd_fire);
} else {
fire_field.findField(fd_fire)->setFieldDensity(fire_field.findField(fd_fire)->getFieldDensity() - 1);
}
}
}
}
break;
case AEP_HUNGER:
if (one_in(100))
@@ -869,8 +886,7 @@ void game::process_artifact(item *it, player *p, bool wielded)
if (one_in(150)) { // Once every 15 minutes, on average
p->add_disease("evil", 300);
if (!wielded && !it->is_armor())
add_msg("You have an urge to %s the %s.",
(it->is_armor() ? "wear" : "wield"), it->tname().c_str());
add_msg((it->is_armor() ? _("You have an urge to wear the %s.") : _("You have an urge to wield the %s.")), it->tname().c_str());
}
break;
@@ -940,96 +956,100 @@ void game::add_artifact_messages(std::vector<art_effect_passive> effects)
break; // No message
case AEP_SNAKES:
add_msg("Your skin feels slithery.");
add_msg(_("Your skin feels slithery."));
break;
case AEP_INVISIBLE:
add_msg("You fade into invisibility!");
add_msg(_("You fade into invisibility!"));
break;
case AEP_CLAIRVOYANCE:
add_msg("You can see through walls!");
add_msg(_("You can see through walls!"));
break;
case AEP_SUPER_CLAIRVOYANCE:
add_msg("You can see through everything!");
add_msg(_("You can see through everything!"));
break;
case AEP_STEALTH:
add_msg("Your steps stop making noise.");
add_msg(_("Your steps stop making noise."));
break;
case AEP_GLOW:
add_msg("A glow of light forms around you.");
add_msg(_("A glow of light forms around you."));
break;
case AEP_PSYSHIELD:
add_msg("Your mental state feels protected.");
add_msg(_("Your mental state feels protected."));
break;
case AEP_RESIST_ELECTRICITY:
add_msg("You feel insulated.");
add_msg(_("You feel insulated."));
break;
case AEP_CARRY_MORE:
add_msg("Your back feels strengthened.");
add_msg(_("Your back feels strengthened."));
break;
case AEP_HUNGER:
add_msg("You feel hungry.");
add_msg(_("You feel hungry."));
break;
case AEP_THIRST:
add_msg("You feel thirsty.");
add_msg(_("You feel thirsty."));
break;
case AEP_EVIL:
add_msg("You feel an evil presence...");
add_msg(_("You feel an evil presence..."));
break;
case AEP_SCHIZO:
add_msg("You feel a tickle of insanity.");
add_msg(_("You feel a tickle of insanity."));
break;
case AEP_RADIOACTIVE:
add_msg("Your skin prickles with radiation.");
add_msg(_("Your skin prickles with radiation."));
break;
case AEP_MUTAGENIC:
add_msg("You feel your genetic makeup degrading.");
add_msg(_("You feel your genetic makeup degrading."));
break;
case AEP_ATTENTION:
add_msg("You feel an otherworldly attention upon you...");
add_msg(_("You feel an otherworldly attention upon you..."));
break;
case AEP_FORCE_TELEPORT:
add_msg("You feel a force pulling you inwards.");
add_msg(_("You feel a force pulling you inwards."));
break;
case AEP_MOVEMENT_NOISE:
add_msg("You hear a rattling noise coming from inside yourself.");
add_msg(_("You hear a rattling noise coming from inside yourself."));
break;
case AEP_BAD_WEATHER:
add_msg("You feel storms coming.");
add_msg(_("You feel storms coming."));
break;
}
}
std::stringstream stat_info;
if (net_str != 0)
stat_info << "Str " << (net_str > 0 ? "+" : "") << net_str << "! ";
if (net_dex != 0)
stat_info << "Dex " << (net_dex > 0 ? "+" : "") << net_dex << "! ";
if (net_int != 0)
stat_info << "Int " << (net_int > 0 ? "+" : "") << net_int << "! ";
if (net_per != 0)
stat_info << "Per " << (net_per > 0 ? "+" : "") << net_per << "! ";
std::string stat_info = "";
if (net_str != 0) {
stat_info += string_format(_("Str %s%d! "), (net_str > 0 ? "+" : ""), net_str);
}
if (net_dex != 0) {
stat_info += string_format( _("Dex %s%d! "), (net_dex > 0 ? "+" : ""), net_dex);
}
if (net_int != 0) {
stat_info += string_format(_("Int %s%d! "), (net_int > 0 ? "+" : ""), net_int);
}
if (net_per != 0) {
stat_info += string_format(_("Per %s%d! "), (net_per > 0 ? "+" : ""), net_per);
}
if (stat_info.str().length() > 0)
add_msg(stat_info.str().c_str());
if (stat_info.length() > 0)
add_msg(stat_info.c_str());
if (net_speed != 0)
add_msg("Speed %s%d", (net_speed > 0 ? "+" : ""), net_speed);
add_msg(_("Speed %s%d! "), (net_speed > 0 ? "+" : ""), net_speed);
}
+141 -100
View File
@@ -4,11 +4,13 @@
#include "debug.h"
#include "keypress.h"
#include "item_factory.h"
#include "catacharset.h"
#include <stdlib.h>
#include <fstream>
#include <string>
std::map<std::string, std::string> mapAutoPickupItems;
std::vector<cPickupRules> vAutoPickupRules[5];
void game::show_auto_pickup()
@@ -45,41 +47,21 @@ void game::show_auto_pickup()
mvwputch(w_auto_pickup_border, FULL_SCREEN_HEIGHT-1, iter->first + 1, c_ltgray, LINE_XXOX); // _|_
}
mvwprintz(w_auto_pickup_border, 0, 29, c_ltred, " AUTO PICKUP MANAGER ");
mvwprintz(w_auto_pickup_border, 0, 29, c_ltred, _(" AUTO PICKUP MANAGER "));
wrefresh(w_auto_pickup_border);
mvwprintz(w_auto_pickup_header, 0, 0, c_ltgreen, " A");
wprintz(w_auto_pickup_header, c_white, "dd ");
wprintz(w_auto_pickup_header, c_ltgreen, "R");
wprintz(w_auto_pickup_header, c_white, "emove ");
wprintz(w_auto_pickup_header, c_ltgreen, "C");
wprintz(w_auto_pickup_header, c_white, "opy ");
wprintz(w_auto_pickup_header, c_ltgreen, "M");
wprintz(w_auto_pickup_header, c_white, "ove ");
wprintz(w_auto_pickup_header, c_ltgreen, "E");
wprintz(w_auto_pickup_header, c_white, "nable ");
wprintz(w_auto_pickup_header, c_ltgreen, "D");
wprintz(w_auto_pickup_header, c_white, "isable ");
wprintz(w_auto_pickup_header, c_ltgreen, "T");
wprintz(w_auto_pickup_header, c_white, "est ");
mvwprintz(w_auto_pickup_header, 1, 0, c_ltgreen, " +");
wprintz(w_auto_pickup_header, c_white, "/");
wprintz(w_auto_pickup_header, c_ltgreen, "-");
wprintz(w_auto_pickup_header, c_white, " Move up/down ");
wprintz(w_auto_pickup_header, c_ltgreen, "Enter");
wprintz(w_auto_pickup_header, c_white, "-Edit ");
wprintz(w_auto_pickup_header, c_ltgreen, "Tab");
wprintz(w_auto_pickup_header, c_white, "-Switch Page ");
int tmpx = 0;
tmpx += shortcut_print(w_auto_pickup_header, 0, tmpx, c_white, c_ltgreen, _("<A>dd"))+2;
tmpx += shortcut_print(w_auto_pickup_header, 0, tmpx, c_white, c_ltgreen, _("<R>emove"))+2;
tmpx += shortcut_print(w_auto_pickup_header, 0, tmpx, c_white, c_ltgreen, _("<C>opy"))+2;
tmpx += shortcut_print(w_auto_pickup_header, 0, tmpx, c_white, c_ltgreen, _("<M>ove"))+2;
tmpx += shortcut_print(w_auto_pickup_header, 0, tmpx, c_white, c_ltgreen, _("<E>nable"))+2;
tmpx += shortcut_print(w_auto_pickup_header, 0, tmpx, c_white, c_ltgreen, _("<D>isable"))+2;
tmpx += shortcut_print(w_auto_pickup_header, 0, tmpx, c_white, c_ltgreen, _("<T>est"))+2;
tmpx = 0;
tmpx += shortcut_print(w_auto_pickup_header, 1, tmpx, c_white, c_ltgreen, _("<+-> Move up/down"))+2;
tmpx += shortcut_print(w_auto_pickup_header, 1, tmpx, c_white, c_ltgreen, _("<Enter>-Edit"))+2;
tmpx += shortcut_print(w_auto_pickup_header, 1, tmpx, c_white, c_ltgreen, _("<Tab>-Switch Page"))+2;
for (int i = 0; i < 78; i++) {
if (mapLines[i]) {
@@ -91,8 +73,8 @@ void game::show_auto_pickup()
}
mvwprintz(w_auto_pickup_header, 3, 0, c_white, "#");
mvwprintz(w_auto_pickup_header, 3, 7, c_white, "Rules");
mvwprintz(w_auto_pickup_header, 3, 51, c_white, "I/E");
mvwprintz(w_auto_pickup_header, 3, 7, c_white, _("Rules"));
mvwprintz(w_auto_pickup_header, 3, 51, c_white, _("I/E"));
//mvwprintz(w_auto_pickup_header, 3, 55, c_white, "Volume");
//mvwprintz(w_auto_pickup_header, 3, 62, c_white, "Weight");
@@ -108,13 +90,9 @@ void game::show_auto_pickup()
std::stringstream sTemp;
do {
mvwprintz(w_auto_pickup_header, 2, 17 + 0, c_white, "[");
wprintz(w_auto_pickup_header, (iCurrentPage == 1) ? hilite(c_white) : c_white, "Global");
wprintz(w_auto_pickup_header, c_white, "]");
mvwprintz(w_auto_pickup_header, 2, 17 + 9, c_white, "[");
wprintz(w_auto_pickup_header, (iCurrentPage == 2) ? hilite(c_white) : c_white, "Character");
wprintz(w_auto_pickup_header, c_white, "]");
int locx = 17;
locx += shortcut_print(w_auto_pickup_header, 2, locx, c_white, (iCurrentPage == 1) ? hilite(c_white) : c_white, _("[<Global>]"))+1;
locx = shortcut_print(w_auto_pickup_header, 2, locx, c_white, (iCurrentPage == 2) ? hilite(c_white) : c_white, _("[<Character>]"))+1;
/*
mvwprintz(w_auto_pickup_header, 2, 12 + 21, c_white, "[");
@@ -138,18 +116,13 @@ void game::show_auto_pickup()
if (iCurrentPage == 1 || iCurrentPage == 2) {
if (iCurrentPage == 2 && g->u.name == "") {
vAutoPickupRules[2].clear();
mvwprintz(w_auto_pickup, 8, 15, c_white, "Please load a character first to use this page!");
mvwprintz(w_auto_pickup, 8, 15, c_white, _("Please load a character first to use this page!"));
}
if (vAutoPickupRules[iCurrentPage].size() > iContentHeight) {
iStartPos = iCurrentLine - (iContentHeight - 1) / 2;
//Draw Scrollbar
draw_scrollbar(w_auto_pickup_border, iCurrentLine, iContentHeight, vAutoPickupRules[iCurrentPage].size(), 5);
if (iStartPos < 0) {
iStartPos = 0;
} else if (iStartPos + iContentHeight > vAutoPickupRules[iCurrentPage].size()) {
iStartPos = vAutoPickupRules[iCurrentPage].size() - iContentHeight;
}
}
calcStartPos(iStartPos, iCurrentLine, iContentHeight, vAutoPickupRules[iCurrentPage].size());
// display auto pickup
for (int i = iStartPos; i < vAutoPickupRules[iCurrentPage].size(); i++) {
@@ -167,9 +140,9 @@ void game::show_auto_pickup()
wprintz(w_auto_pickup, c_yellow, " ");
}
wprintz(w_auto_pickup, (iCurrentLine == i && iCurrentCol == 1) ? hilite(cLineColor) : cLineColor, "%s", ((vAutoPickupRules[iCurrentPage][i].sRule == "") ? "<empty rule>" : vAutoPickupRules[iCurrentPage][i].sRule).c_str());
wprintz(w_auto_pickup, (iCurrentLine == i && iCurrentCol == 1) ? hilite(cLineColor) : cLineColor, "%s", ((vAutoPickupRules[iCurrentPage][i].sRule == "") ? _("<empty rule>") : vAutoPickupRules[iCurrentPage][i].sRule).c_str());
mvwprintz(w_auto_pickup, i - iStartPos, 52, (iCurrentLine == i && iCurrentCol == 2) ? hilite(cLineColor) : cLineColor, "%s", ((vAutoPickupRules[iCurrentPage][i].bExclude) ? "E" : "I"));
mvwprintz(w_auto_pickup, i - iStartPos, 52, (iCurrentLine == i && iCurrentCol == 2) ? hilite(cLineColor) : cLineColor, "%s", ((vAutoPickupRules[iCurrentPage][i].bExclude) ? rm_prefix(_("<Exclude>E")).c_str() : rm_prefix(_("<Include>I")).c_str()));
}
}
@@ -178,7 +151,7 @@ void game::show_auto_pickup()
} else if (iCurrentPage == 3) {
wborder(w_auto_pickup_options, LINE_XOXO, LINE_XOXO, LINE_OXOX, LINE_OXOX, LINE_OXXO, LINE_OOXX, LINE_XXOO, LINE_XOOX);
mvwprintz(w_auto_pickup_options, 5, 10, c_white, "Under construction!");
mvwprintz(w_auto_pickup_options, 5, 10, c_white, _("Under construction!"));
wrefresh(w_auto_pickup);
wrefresh(w_auto_pickup_options);
@@ -258,18 +231,21 @@ void game::show_auto_pickup()
case '\n': //Edit Col in current line
bStuffChanged = true;
if (iCurrentCol == 1) {
mvwprintz(w_auto_pickup_help, 1, 1, c_white, "* is used as a Wildcard. A few Examples:");
mvwprintz(w_auto_pickup_help, 2, 1, c_white, "");
mvwprintz(w_auto_pickup_help, 3, 1, c_white, "wood arrow matches the itemname exactly");
mvwprintz(w_auto_pickup_help, 4, 1, c_white, "wood ar* matches items beginning with wood ar");
mvwprintz(w_auto_pickup_help, 5, 1, c_white, "*rrow matches items ending with rrow");
mvwprintz(w_auto_pickup_help, 6, 1, c_white, "*avy fle*fi*arrow multible * are allowed");
mvwprintz(w_auto_pickup_help, 7, 1, c_white, "heAVY*woOD*arrOW case insesitive search");
mvwprintz(w_auto_pickup_help, 8, 1, c_white, "");
fold_and_print(w_auto_pickup_help, 1, 1, 999, c_white,
_(
"* is used as a Wildcard. A few Examples:\n"
"\n"
"wood arrow matches the itemname exactly\n"
"wood ar* matches items beginning with wood ar\n"
"*rrow matches items ending with rrow\n"
"*avy fle*fi*arrow multible * are allowed\n"
"heAVY*woOD*arrOW case insesitive search\n"
"")
);
wborder(w_auto_pickup_help, LINE_XOXO, LINE_XOXO, LINE_OXOX, LINE_OXOX, LINE_OXXO, LINE_OOXX, LINE_XXOO, LINE_XOOX);
wrefresh(w_auto_pickup_help);
vAutoPickupRules[iCurrentPage][iCurrentLine].sRule = trim_rule(string_input_popup("Pickup Rule:", 30, vAutoPickupRules[iCurrentPage][iCurrentLine].sRule));
vAutoPickupRules[iCurrentPage][iCurrentLine].sRule = trim_rule(string_input_popup(_("Pickup Rule:"), 30, vAutoPickupRules[iCurrentPage][iCurrentLine].sRule));
} else if (iCurrentCol == 2) {
vAutoPickupRules[iCurrentPage][iCurrentLine].bExclude = !vAutoPickupRules[iCurrentPage][iCurrentLine].bExclude;
}
@@ -322,7 +298,7 @@ void game::show_auto_pickup()
} while(ch != 'q' && ch != 'Q' && ch != KEY_ESCAPE);
if (bStuffChanged) {
if(query_yn("Save changes?")) {
if(query_yn(_("Save changes?"))) {
save_auto_pickup(false);
if (g->u.name != "") {
@@ -350,9 +326,10 @@ void test_pattern(int iCurrentPage, int iCurrentLine)
}
//Loop through all itemfactory items
//TODO: somehow generate damaged, fitting or container items
for (int i = 0; i < standard_itype_ids.size(); i++) {
sItemName = item_controller->find_template(standard_itype_ids[i])->name;
if (auto_pickup_match(sItemName, vAutoPickupRules[iCurrentPage][iCurrentLine].sRule)) {
if (vAutoPickupRules[iCurrentPage][iCurrentLine].bActive && auto_pickup_match(sItemName, vAutoPickupRules[iCurrentPage][iCurrentLine].sRule)) {
vMatchingItems.push_back(sItemName);
}
}
@@ -371,8 +348,11 @@ void test_pattern(int iCurrentPage, int iCurrentLine)
wborder(w_test_rule_border, LINE_XOXO, LINE_XOXO, LINE_OXOX, LINE_OXOX, LINE_OXXO, LINE_OOXX, LINE_XXOO, LINE_XOOX);
sTemp << vMatchingItems.size() << " items match: " << vAutoPickupRules[iCurrentPage][iCurrentLine].sRule;
mvwprintz(w_test_rule_border, 0, iContentWidth/2 - (sTemp.str()).length()/2, hilite(c_white), sTemp.str().c_str());
int nmatch = vMatchingItems.size();
std::string buf = string_format(ngettext("%1$d item matches: %2$s", "%1$d items match: %2$s", nmatch), nmatch, vAutoPickupRules[iCurrentPage][iCurrentLine].sRule.c_str());
mvwprintz(w_test_rule_border, 0, iContentWidth/2 - utf8_width(buf.c_str())/2, hilite(c_white), buf.c_str());
mvwprintz(w_test_rule_border, iContentHeight + 1, 1, red_background(c_white), _("Won't display damaged, fits and can/bottle items"));
wrefresh(w_test_rule_border);
@@ -386,15 +366,7 @@ void test_pattern(int iCurrentPage, int iCurrentLine)
}
}
if (vMatchingItems.size() > iContentHeight) {
iStartPos = iCurrentLine - (iContentHeight - 1) / 2;
if (iStartPos < 0) {
iStartPos = 0;
} else if (iStartPos + iContentHeight > vMatchingItems.size()) {
iStartPos = vMatchingItems.size() - iContentHeight;
}
}
calcStartPos(iStartPos, iCurrentLine, iContentHeight, vMatchingItems.size());
// display auto pickup
for (int i = iStartPos; i < vMatchingItems.size(); i++) {
@@ -446,7 +418,7 @@ void load_auto_pickup(bool bCharacter)
std::string sFile = "data/auto_pickup.txt";
if (bCharacter) {
sFile = "save/" + g->u.name + ".apu.txt";
sFile = "save/" + base64_encode(g->u.name) + ".apu.txt";
}
fin.open(sFile.c_str());
@@ -464,17 +436,11 @@ void load_auto_pickup(bool bCharacter)
vAutoPickupRules[(bCharacter) ? 2 : 1].clear();
std::string sLine;
while(!fin.eof()) {
std::string sLine;
fin >> sLine;
getline(fin, sLine);
if(sLine == "") { // Empty line, chomp it
getline(fin, sLine);
} else if(sLine[0] == '#') { // # indicates a comment
getline(fin, sLine);
} else {
if(sLine != "" && sLine[0] != '#') {
int iNum = std::count(sLine.begin(), sLine.end(), ';');
if(iNum != 2) {
@@ -484,7 +450,6 @@ void load_auto_pickup(bool bCharacter)
} else {*/
DebugLog() << "Bad Rule: " << sLine << "\n";
getline(fin, sLine);
//}
} else {
@@ -492,7 +457,7 @@ void load_auto_pickup(bool bCharacter)
bool bActive = true;
bool bExclude = false;
int iPos = 0;
size_t iPos = 0;
int iCol = 1;
do {
iPos = sLine.find(";");
@@ -520,15 +485,12 @@ void load_auto_pickup(bool bCharacter)
vAutoPickupRules[(bCharacter) ? 2 : 1].push_back(cPickupRules(sRule, bActive, bExclude));
}
}
if(fin.peek() == '\n') {
getline(fin, sLine); // Chomp
}
}
fin.close();
merge_vector();
createPickupRules();
}
void merge_vector()
@@ -544,6 +506,82 @@ void merge_vector()
}
}
bool hasPickupRule(std::string sRule)
{
for (int i = 0; i < vAutoPickupRules[2].size(); i++) {
if (sRule.length() == (vAutoPickupRules[2][i].sRule).length() && ci_find_substr(sRule, vAutoPickupRules[2][i].sRule) != -1) {
return true;
}
}
return false;
}
void addPickupRule(std::string sRule)
{
vAutoPickupRules[2].push_back(cPickupRules(sRule, true, false));
merge_vector();
createPickupRules();
}
void removePickupRule(std::string sRule)
{
for (int i = 0; i < vAutoPickupRules[2].size(); i++) {
if (sRule.length() == (vAutoPickupRules[2][i].sRule).length() && ci_find_substr(sRule, vAutoPickupRules[2][i].sRule) != -1) {
vAutoPickupRules[2].erase(vAutoPickupRules[2].begin() + i);
merge_vector();
createPickupRules();
break;
}
}
}
void createPickupRules(const std::string sItemNameIn)
{
if (sItemNameIn == "") {
mapAutoPickupItems.clear();
}
std::string sItemName = "";
for (int iPattern = 0; iPattern < vAutoPickupRules[0].size(); iPattern++) { //Includes only
if (!vAutoPickupRules[0][iPattern].bExclude) {
if (sItemNameIn != "") {
if (vAutoPickupRules[0][iPattern].bActive && auto_pickup_match(sItemNameIn, vAutoPickupRules[0][iPattern].sRule)) {
mapAutoPickupItems[sItemNameIn] = "true";
break;
}
} else {
//Check include paterns against all itemfactory items
for (int i = 0; i < standard_itype_ids.size(); i++) {
sItemName = item_controller->find_template(standard_itype_ids[i])->name;
if (vAutoPickupRules[0][iPattern].bActive && auto_pickup_match(sItemName, vAutoPickupRules[0][iPattern].sRule)) {
mapAutoPickupItems[sItemName] = "true";
}
}
}
}
}
for (int iPattern = 0; iPattern < vAutoPickupRules[0].size(); iPattern++) { //Excludes only
if (vAutoPickupRules[0][iPattern].bExclude) {
if (sItemNameIn != "") {
if (vAutoPickupRules[0][iPattern].bActive && auto_pickup_match(sItemNameIn, vAutoPickupRules[0][iPattern].sRule)) {
mapAutoPickupItems[sItemNameIn] = "false";
return;
}
} else {
//Check exclude paterns against all included items
for (std::map<std::string, std::string>::iterator iter = mapAutoPickupItems.begin(); iter != mapAutoPickupItems.end(); ++iter) {
if (vAutoPickupRules[0][iPattern].bActive && auto_pickup_match(iter->first, vAutoPickupRules[0][iPattern].sRule)) {
mapAutoPickupItems[iter->first] = "false";
}
}
}
}
}
}
void save_reset_changes(bool bReset)
{
for (int i=1; i <= 2; i++) { //Loop through global 1 and character 2
@@ -581,10 +619,10 @@ void save_auto_pickup(bool bCharacter)
std::string sFile = "data/auto_pickup.txt";
if (bCharacter) {
sFile = "save/" + g->u.name + ".apu.txt";
sFile = "save/" + base64_encode(g->u.name) + ".apu.txt";
std::ifstream fin;
fin.open(("save/" + g->u.name + ".sav").c_str());
fin.open(("save/" + base64_encode(g->u.name) + ".sav").c_str());
if(!fin.is_open()) {
return;
}
@@ -607,6 +645,7 @@ void save_auto_pickup(bool bCharacter)
if (!bCharacter) {
merge_vector();
createPickupRules();
}
}
@@ -616,7 +655,7 @@ void create_default_auto_pickup(bool bCharacter)
std::string sFile = "data/auto_pickup.txt";
if (bCharacter) {
sFile = "save/" + g->u.name + ".apu.txt";
sFile = "save/" + base64_encode(g->u.name) + ".apu.txt";
}
fout.open(sFile.c_str());
@@ -693,12 +732,14 @@ bool auto_pickup_match(std::string sText, std::string sPattern)
return false;
}
} else { //inbetween: vPat[i]
if ((iPos = ci_find_substr(sText, vPattern[i])) == -1) {
//debugmsg(("3: sText: " + sText + " | sPattern: " + vPattern[i] + " | no match").c_str());
return false;
}
if (vPattern[i] != "") {
if ((iPos = ci_find_substr(sText, vPattern[i])) == -1) {
//debugmsg(("3: sText: " + sText + " | sPattern: " + vPattern[i] + " | no match").c_str());
return false;
}
sText = sText.substr(iPos+vPattern[i].length(), sText.length()-iPos);
sText = sText.substr(iPos+vPattern[i].length(), sText.length()-iPos);
}
}
}
+5
View File
@@ -27,11 +27,16 @@ class cPickupRules {
~cPickupRules() {};
};
extern std::map<std::string, std::string> mapAutoPickupItems;
extern std::vector<cPickupRules> vAutoPickupRules[5];
void test_pattern(int iCurrentPage, int iCurrentLine);
std::string trim_rule(std::string sPattern);
void merge_vector();
bool hasPickupRule(std::string sRule);
void addPickupRule(std::string sRule);
void removePickupRule(std::string sRule);
void createPickupRules(const std::string sItemNameIn = "");
void save_reset_changes(bool bReset);
void show_auto_pickup();
void load_auto_pickup(bool bCharacter);
+700 -667
View File
File diff suppressed because it is too large Load Diff
+26 -25
View File
@@ -1,43 +1,44 @@
#include "bodypart.h"
#include "translations.h"
#include "rng.h"
std::string body_part_name (body_part bp, int side)
{
switch (bp) {
case bp_head:
return "head";
return _("head");
case bp_eyes:
return "eyes";
return _("eyes");
case bp_mouth:
return "mouth";
return _("mouth");
case bp_torso:
return "torso";
return _("torso");
case bp_arms:
if (side == 0)
return "left arm";
return _("left arm");
if (side == 1)
return "right arm";
return "arms";
return _("right arm");
return _("arms");
case bp_hands:
if (side == 0)
return "left hand";
return _("left hand");
if (side == 1)
return "right hand";
return "hands";
return _("right hand");
return _("hands");
case bp_legs:
if (side == 0)
return "left leg";
return _("left leg");
if (side == 1)
return "right leg";
return "legs";
return _("right leg");
return _("legs");
case bp_feet:
if (side == 0)
return "left foot";
return _("left foot");
if (side == 1)
return "right foot";
return "feet";
return _("right foot");
return _("feet");
default:
return "appendix";
return _("appendix");
}
}
@@ -45,14 +46,14 @@ std::string encumb_text(body_part bp)
{
switch (bp) {
case bp_head: return "";
case bp_eyes: return "Ranged combat is hampered.";
case bp_mouth: return "Running is slowed.";
case bp_torso: return "Dodging and melee is hampered.";
case bp_arms: return "Melee and ranged combat is hampered.";
case bp_hands: return "Manual tasks are slowed.";
case bp_legs: return "Running and swimming are slowed.";
case bp_feet: return "Running is slowed.";
default: return "It's inflammed.";
case bp_eyes: return _("Ranged combat is hampered.");
case bp_mouth: return _("Running is slowed.");
case bp_torso: return _("Dodging and melee is hampered.");
case bp_arms: return _("Melee and ranged combat is hampered.");
case bp_hands: return _("Manual tasks are slowed.");
case bp_legs: return _("Running and swimming are slowed.");
case bp_feet: return _("Running is slowed.");
default: return _("It's inflammed.");
}
}
+27 -12
View File
@@ -129,19 +129,28 @@ void mapgen_crater(map *m, mapgendata dat)
void mapgen_field(map *m, int turn)
{
// There's a chance this field will be thick with strawberry
// and blueberry bushes.
int berry_bush_factor = 200;
int bush_factor = 120;
if(one_in(120)) {
berry_bush_factor = 2;
bush_factor = 40;
}
for (int i = 0; i < SEEX * 2; i++)
{
for (int j = 0; j < SEEY * 2; j++)
{
m->ter_set(i, j, grass_or_dirt());
if (one_in(120))
if (one_in(bush_factor))
{
if (one_in(30))
if (one_in(berry_bush_factor))
{
m->ter_set(i, j, t_shrub_blueberry);
}
else
if (one_in(30))
if (one_in(berry_bush_factor))
{
m->ter_set(i, j, t_shrub_strawberry);
}
@@ -176,7 +185,7 @@ void mapgen_dirtlot(map *m, game *g)
}
if (one_in(4))
{
m->add_vehicle (g, veh_truck, 12, 12, 90, -1, -1);
m->add_vehicle (g, "flatbed_truck", 12, 12, 90, -1, -1);
}
}
@@ -264,7 +273,7 @@ void mapgen_forest_general(map *m, oter_id terrain_type, mapgendata dat, int tur
}
else
{
m->ter_set(i, j, t_dirt);
m->ter_set(i, j, grass_or_dirt());
}
}
}
@@ -301,7 +310,8 @@ void mapgen_forest_general(map *m, oter_id terrain_type, mapgendata dat, int tur
{
m->ter_set(x, y, t_water_dp);
}
else if (m->ter(x, y) == t_dirt || m->ter(x, y) == t_underbrush)
else if (m->ter(x, y) == t_dirt || m->ter(x, y) == t_grass ||
m->ter(x, y) == t_underbrush)
{
m->ter_set(x, y, t_water_sh);
}
@@ -323,7 +333,8 @@ void mapgen_forest_general(map *m, oter_id terrain_type, mapgendata dat, int tur
for (int j = 0; j < dat.n_fac; j++)
{
int wx = rng(0, SEEX * 2 -1), wy = rng(0, SEEY - 1);
if (m->ter(wx, wy) == t_dirt || m->ter(wx, wy) == t_underbrush)
if (m->ter(wx, wy) == t_dirt || m->ter(wx, wy) == t_grass ||
m->ter(wx, wy) == t_underbrush)
{
m->ter_set(wx, wy, t_water_sh);
}
@@ -331,7 +342,8 @@ void mapgen_forest_general(map *m, oter_id terrain_type, mapgendata dat, int tur
for (int j = 0; j < dat.e_fac; j++)
{
int wx = rng(SEEX, SEEX * 2 - 1), wy = rng(0, SEEY * 2 - 1);
if (m->ter(wx, wy) == t_dirt || m->ter(wx, wy) == t_underbrush)
if (m->ter(wx, wy) == t_dirt || m->ter(wx, wy) == t_grass ||
m->ter(wx, wy) == t_underbrush)
{
m->ter_set(wx, wy, t_water_sh);
}
@@ -339,7 +351,8 @@ void mapgen_forest_general(map *m, oter_id terrain_type, mapgendata dat, int tur
for (int j = 0; j < dat.s_fac; j++)
{
int wx = rng(0, SEEX * 2 - 1), wy = rng(SEEY, SEEY * 2 - 1);
if (m->ter(wx, wy) == t_dirt || m->ter(wx, wy) == t_underbrush)
if (m->ter(wx, wy) == t_dirt || m->ter(wx, wy) == t_grass ||
m->ter(wx, wy) == t_underbrush)
{
m->ter_set(wx, wy, t_water_sh);
}
@@ -347,7 +360,8 @@ void mapgen_forest_general(map *m, oter_id terrain_type, mapgendata dat, int tur
for (int j = 0; j < dat.w_fac; j++)
{
int wx = rng(0, SEEX - 1), wy = rng(0, SEEY * 2 - 1);
if (m->ter(wx, wy) == t_dirt || m->ter(wx, wy) == t_underbrush)
if (m->ter(wx, wy) == t_dirt || m->ter(wx, wy) == t_grass ||
m->ter(wx, wy) == t_underbrush)
{
m->ter_set(wx, wy, t_water_sh);
}
@@ -361,7 +375,7 @@ void mapgen_forest_general(map *m, oter_id terrain_type, mapgendata dat, int tur
m->add_trap(x, y, tr_sinkhole);
if (m->ter(x, y) != t_water_sh)
{
m->ter_set(x, y, t_dirt);
m->ter_set(x, y, grass_or_dirt());
}
}
}
@@ -377,7 +391,8 @@ void mapgen_forest_general(map *m, oter_id terrain_type, mapgendata dat, int tur
{
for (int j = 0; j < SEEX * 2; j++)
{
if ((m->ter(i, j) == t_dirt || m->ter(i, j) == t_underbrush) && !one_in(3))
if ((m->ter(i, j) == t_dirt || m->ter(i, j) == t_grass ||
m->ter(i, j) == t_underbrush) && !one_in(3))
{
m->add_field(NULL, i, j, fd_web, rng(1, 3));
}
+52 -71
View File
@@ -2,6 +2,7 @@
#include "calendar.h"
#include "output.h"
#include "options.h"
#include "translations.h"
calendar::calendar()
{
@@ -38,11 +39,11 @@ calendar::calendar(int turn)
int minute_param = int(turn / 10);
int hour_param = minute_param / 60;
int day_param = hour_param / 24;
int season_param = day_param / OPTIONS[OPT_SEASON_LENGTH];
int season_param = day_param / OPTIONS["SEASON_LENGTH"];
second = 6 * (turn % 10);
minute = minute_param % 60;
hour = hour_param % 24;
day = 1 + day_param % (int)OPTIONS[OPT_SEASON_LENGTH];
day = 1 + day_param % (int)OPTIONS["SEASON_LENGTH"];
season = season_type(season_param % 4);
year = season_param / 4;
}
@@ -53,8 +54,8 @@ int calendar::get_turn() const
ret += minute * 10;
ret += hour * 600;
ret += day * 14400;
ret += int(season) * 14400 * (int)OPTIONS[OPT_SEASON_LENGTH];
ret += year * 14400 * 4 * (int)OPTIONS[OPT_SEASON_LENGTH];
ret += int(season) * 14400 * (int)OPTIONS["SEASON_LENGTH"];
ret += year * 14400 * 4 * (int)OPTIONS["SEASON_LENGTH"];
return ret;
}
@@ -64,8 +65,8 @@ calendar::operator int() const
ret += minute * 10;
ret += hour * 600;
ret += day * 14400;
ret += int(season) * 14400 * (int)OPTIONS[OPT_SEASON_LENGTH];
ret += year * 14400 * 4 * (int)OPTIONS[OPT_SEASON_LENGTH];
ret += int(season) * 14400 * (int)OPTIONS["SEASON_LENGTH"];
ret += year * 14400 * 4 * (int)OPTIONS["SEASON_LENGTH"];
return ret;
}
@@ -89,11 +90,11 @@ calendar& calendar::operator =(int rhs)
int minute_param = int(rhs / 10);
int hour_param = minute_param / 60;
int day_param = hour_param / 24;
int season_param = day_param / OPTIONS[OPT_SEASON_LENGTH];
int season_param = day_param / OPTIONS["SEASON_LENGTH"];
second = 6 * (rhs % 10);
minute = minute_param % 60;
hour = hour_param % 24;
day = day_param % (int)OPTIONS[OPT_SEASON_LENGTH];
day = day_param % (int)OPTIONS["SEASON_LENGTH"];
season = season_type(season_param % 4);
year = season_param / 4;
return *this;
@@ -218,9 +219,9 @@ void calendar::standardize()
hour %= 24;
}
int tmpseason = int(season);
if (day >= OPTIONS[OPT_SEASON_LENGTH]) {
tmpseason += day / OPTIONS[OPT_SEASON_LENGTH];
day %= (int)OPTIONS[OPT_SEASON_LENGTH];
if (day >= OPTIONS["SEASON_LENGTH"]) {
tmpseason += day / OPTIONS["SEASON_LENGTH"];
day %= (int)OPTIONS["SEASON_LENGTH"];
}
if (tmpseason >= 4) {
year += tmpseason / 4;
@@ -238,7 +239,7 @@ int calendar::minutes_past_midnight() const
moon_phase calendar::moon() const
{
int phase = day / (OPTIONS[OPT_SEASON_LENGTH] / 4);
int phase = day / (OPTIONS["SEASON_LENGTH"] / 4);
//phase %= 4; Redundant?
if (phase == 3)
return MOON_HALF;
@@ -268,7 +269,7 @@ calendar calendar::sunrise() const
end_hour = SUNRISE_SOLSTICE;
break;
}
double percent = double(double(day) / OPTIONS[OPT_SEASON_LENGTH]);
double percent = double(double(day) / OPTIONS["SEASON_LENGTH"]);
double time = double(start_hour) * (1.- percent) + double(end_hour) * percent;
ret.hour = int(time);
@@ -300,7 +301,7 @@ calendar calendar::sunset() const
end_hour = SUNSET_SOLSTICE;
break;
}
double percent = double(double(day) / OPTIONS[OPT_SEASON_LENGTH]);
double percent = double(double(day) / OPTIONS["SEASON_LENGTH"]);
double time = double(start_hour) * (1.- percent) + double(end_hour) * percent;
ret.hour = int(time);
@@ -356,49 +357,32 @@ int calendar::sunlight() const
std::string calendar::print_time(bool just_hour) const
{
std::stringstream time_string;
int hour_param;
if (OPTIONS[OPT_24_HOUR] == 1)
{
int hour_param = hour % 24;
if (hour_param < 10)
{
time_string << "0";
if (OPTIONS["24_HOUR"] == "military") {
hour_param = hour % 24;
time_string << string_format("%02d%02d", hour_param, minute);
} else if (OPTIONS["24_HOUR"] == "24h") {
hour_param = hour % 24;
if (just_hour) {
time_string << hour_param;
} else {
//~ hour:minute (24hr time display)
time_string << string_format(_("%02d:%02d"), hour_param, minute);
}
time_string << hour_param;
}
else if (OPTIONS[OPT_24_HOUR] == 2)
{
int hour_param = hour % 24;
time_string << hour_param;
if (!just_hour) time_string << ":";
}
else
{
int hour_param = hour % 12;
if (hour_param == 0)
{
} else {
hour_param = hour % 12;
if (hour_param == 0) {
hour_param = 12;
}
time_string << hour_param;
if (!just_hour) time_string << ":";
}
if(!just_hour)
{
if (minute < 10)
{
time_string << "0";
}
time_string << minute;
}
if (OPTIONS[OPT_24_HOUR] == 0)
{
if (hour < 12)
{
time_string << " AM";
}
else
{
time_string << " PM";
if (just_hour && hour < 12) {
time_string << string_format(_("%d AM"), hour_param);
} else if (just_hour) {
time_string << string_format(_("%d PM"), hour_param);
} else if (hour < 12) {
time_string << string_format(_("%d:%02d AM"), hour_param, minute);
} else {
time_string << string_format(_("%d:%02d PM"), hour_param, minute);
}
}
@@ -408,33 +392,30 @@ std::string calendar::print_time(bool just_hour) const
std::string calendar::textify_period()
{
standardize();
std::stringstream ret;
int am;
std::string tx;
const char* tx;
// Describe the biggest time period, as "<am> <tx>s", am = amount, tx = name
if (year > 0) {
am = year;
tx = "year";
tx = ngettext("%d year", "%d years", am);
} else if (season > 0) {
am = season;
tx = "season";
tx = ngettext("%d season", "%d seasons", am);
} else if (day > 0) {
am = day;
tx = "day";
tx = ngettext("%d day", "%d days", am);
} else if (hour > 0) {
am = hour;
tx = "hour";
tx = ngettext("%d hour", "%d hours", am);
} else if (minute >= 5) {
am = minute;
tx = "minute";
tx = ngettext("%d minute", "%d minutes", am);
} else {
am = second / 6 + minute * 10;
tx = "turn";
tx = ngettext("%d turn", "%d turns", am);
}
ret << am << " " << tx << (am > 1 ? "s" : "");
return ret.str();
return string_format(tx, am);
}
std::string calendar::day_of_week() const
@@ -480,25 +461,25 @@ std::string calendar::day_of_week() const
switch (current_day)
{
case SUNDAY:
day_string = "Sunday";
day_string = _("Sunday");
break;
case MONDAY:
day_string = "Monday";
day_string = _("Monday");
break;
case TUESDAY:
day_string = "Tuesday";
day_string = _("Tuesday");
break;
case WEDNESDAY:
day_string = "Wendsday";
day_string = _("Wendsday");
break;
case THURSDAY:
day_string = "Thursday";
day_string = _("Thursday");
break;
case FRIDAY:
day_string = "Friday";
day_string = _("Friday");
break;
case SATURDAY:
day_string = "Saturday";
day_string = _("Saturday");
break;
}
+1387
View File
File diff suppressed because it is too large Load Diff
+239
View File
@@ -0,0 +1,239 @@
#ifndef CATA_TILES_H
#define CATA_TILES_H
// make sure that SDL systems are included: Until testing is available for other systems, keep Windows specific
#if (defined _WIN32 || defined WINDOWS)
//#include <windows.h>
#include "SDL.h"
#include "SDL_ttf.h"
#else
#include <wordexp.h>
#if (defined OSX_SDL_FW)
#include "SDL.h"
#include "SDL_ttf/SDL_ttf.h"
#else
#include "SDL/SDL.h"
#include "SDL/SDL_ttf.h"
#endif
#endif
#include "game.h"
#include "options.h"
#include "catajson.h"
#include "mapdata.h"
#include "tile_id_data.h"
#include "enums.h"
/** Structures */
struct tile_type
{
int fg, bg;
bool multitile, rotates;
std::vector<std::string> available_subtiles;
tile_type()
{
fg = bg = 0;
multitile = rotates = false;
available_subtiles.clear();
}
};
struct tile
{
/** Screen coordinates as tile number */
int sx, sy;
/** World coordinates */
int wx, wy;
tile()
{
sx = wx = wy = 0;
}
tile(int x, int y, int x2, int y2)
{
sx = x;
sy = y;
wx = x2;
wy = y2;
}
};
struct tile_rotation
{
int *dx, *dy;
tile_rotation(int num_pixels)
{
dx = new int[num_pixels];
dy = new int[num_pixels];
}
};
/* Enums */
enum LIGHTING
{
HIDDEN = -1,
CLEAR = 0,
LIGHT_NORMAL = 1,
LIGHT_DARK = 2,
BOOMER_NORMAL = 3,
BOOMER_DARK = 4
};
enum MULTITILE_TYPE
{
center,
corner,
edge,
t_connection,
end_piece,
unconnected,
num_multitile_types
};
/** Typedefs */
typedef std::map<int, SDL_Rect*> tile_map;
typedef std::map<std::string, tile_type*> tile_id_map;
typedef tile_map::iterator tile_iterator;
typedef tile_id_map::iterator tile_id_iterator;
class cata_tiles
{
public:
/** Default constructor */
cata_tiles();
/** Default destructor */
~cata_tiles();
/** Load tileset */
void load_tileset(std::string path);
/** Load tileset config file */
void load_tilejson(std::string path);
/* After loading tileset, create additional cache for rotating each tile assuming it is used for rotations */
void create_rotation_cache();
/** Draw to screen */
void draw(); /* Deprecated */
void draw(int destx, int desty, int centerx, int centery, int width, int height);
bool draw_from_id_string(std::string id, int x, int y, int subtile, int rota, bool is_at_screen_position = false);
bool draw_tile_at(tile_type *tile, int x, int y, int rota);
/** Surface/Sprite rotation specifics */
SDL_Surface *rotate_tile(SDL_Surface *src, SDL_Rect *rect, int rota);
void put_pixel(SDL_Surface *surface, int x, int y, Uint32 pixel);
Uint32 get_pixel(SDL_Surface *surface, int x, int y);
/* Tile Picking */
void get_tile_values(const int t, const int *tn, int &subtile, int &rotation);
void get_wall_values(const int x, const int y, const long vertical_wall_symbol, const long horizontal_wall_symbol, int &subtile, int &rotation);
void get_terrain_orientation(int x, int y, int &rota, int &subtype);
void get_rotation_and_subtile(const char val, const int num_connects, int &rota, int &subtype);
/** Drawing Layers */
bool draw_lighting(int x, int y, LIGHTING l);
bool draw_terrain(int x, int y);
bool draw_furniture(int x, int y);
bool draw_trap(int x, int y);
bool draw_field_or_item(int x, int y);
bool draw_item(int x, int y);
bool draw_vpart(int x, int y);
bool draw_entity(int x, int y);
// Animation layers
bool draw_hit(int x, int y);
void init_explosion(int x, int y, int radius);
void draw_explosion_frame(int destx, int desty, int centerx, int centery, int width, int height);
void void_explosion();
void init_draw_bullet(int x, int y, std::string name);
void draw_bullet_frame(int destx, int desty, int centerx, int centery, int width, int height);
void void_bullet();
void init_draw_hit(int x, int y, std::string name);
void draw_hit_frame(int destx, int desty, int centerx, int centery, int width, int height);
void void_hit();
// pseudo-animated layer, not really though.
void init_draw_line(int x, int y, std::vector<point> trajectory, std::string line_end_name, bool target_line);
void draw_line(int destx, int desty, int centerx, int centery, int width, int height);
void void_line();
void init_draw_weather(weather_printable weather, std::string name);
void draw_weather_frame(int destx, int desty, int centerx, int centery, int width, int height);
void void_weather();
/** Overmap Layer : Not used for now, do later*/
bool draw_omap();
/** Used to properly initialize everything for display */
void init(SDL_Surface *screen, std::string json_path, std::string tileset_path);
/* initialize from an outside file */
void init(SDL_Surface *screen, std::string load_file_path);
void get_tile_information(std::string file_path, std::string &json_path, std::string &tileset_path);
/** Lighting */
void init_light();
LIGHTING light_at(int x, int y);
/** Variables */
SDL_Surface *buffer, *tile_atlas, *display_screen;
tile_map *tile_values;
tile_id_map *tile_ids;
std::map<int, std::vector<SDL_Surface*> > rotation_cache;
int tile_height, tile_width;
int screentile_width, screentile_height;
tile *screen_tiles;
int num_tiles;
bool in_animation;
bool do_draw_explosion;
bool do_draw_bullet;
bool do_draw_hit;
bool do_draw_line;
bool do_draw_weather;
int exp_pos_x, exp_pos_y, exp_rad;
int bul_pos_x, bul_pos_y;
std::string bul_id;
int hit_pos_x, hit_pos_y;
std::string hit_entity_id;
int line_pos_x, line_pos_y;
bool is_target_line;
std::vector<point> line_trajectory;
std::string line_endpoint_id;
weather_printable anim_weather;
std::string weather_name;
// offset values
int o_x, o_y;
protected:
private:
int
sightrange_natural,
sightrange_light,
sightrange_lowlight,
sightrange_max;
int
u_clairvoyance,
g_lightlevel;
bool
boomered,
sight_impaired,
bionight_bionic_active;
tile_rotation *tile_rotations;
};
#endif // CATA_TILES_H
+151
View File
@@ -1,5 +1,6 @@
#include "catacharset.h"
#include <string.h>
#include "debug.h"
#include "wcwidth.c"
//copied from SDL2_ttf code
@@ -84,6 +85,42 @@ unsigned UTF8_getch(const char **src, int *srclen)
return ch;
}
std::string utf32_to_utf8(unsigned ch) {
char out[5];
char* buf = out;
static const unsigned char utf8FirstByte[7] = { 0x00, 0x00, 0xC0, 0xE0, 0xF0, 0xF8, 0xFC };
int utf8Bytes;
if (ch < 0x80) {
utf8Bytes = 1;
} else if (ch < 0x800) {
utf8Bytes = 2;
} else if (ch < 0x10000) {
utf8Bytes = 3;
} else if (ch <= 0x10FFFF) {
utf8Bytes = 4;
} else {
utf8Bytes = 3;
ch = UNKNOWN_UNICODE;
}
buf += utf8Bytes;
switch (utf8Bytes) {
case 4:
*--buf = (ch|0x80)&0xBF;
ch >>= 6;
case 3:
*--buf = (ch|0x80)&0xBF;
ch >>= 6;
case 2:
*--buf = (ch|0x80)&0xBF;
ch >>= 6;
case 1:
*--buf = ch|utf8FirstByte[utf8Bytes];
}
out[utf8Bytes] = '\0';
return out;
}
//Calculate width of a unicode string
//Latin characters have a width of 1
//CJK characters have a width of 2, etc
@@ -204,4 +241,118 @@ std::string utf8_substr(std::string s, int start, int size)
return std::string(buf+start);
}
static const char base64_encoding_table[] =
{'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H',
'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P',
'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X',
'Y', 'Z', 'a', 'b', 'c', 'd', 'e', 'f',
'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n',
'o', 'p', 'q', 'r', 's', 't', 'u', 'v',
'w', 'x', 'y', 'z', '0', '1', '2', '3',
'4', '5', '6', '7', '8', '9', '+', '-'};
static char base64_decoding_table[256];
static const int mod_table[] = {0, 2, 1};
static void build_base64_decoding_table() {
static bool built = false;
if(!built) {
for (int i = 0; i < 64; i++) {
base64_decoding_table[(unsigned char) base64_encoding_table[i]] = i;
}
built = true;
}
}
std::string base64_encode(std::string str) {
//assume it is already encoded
if(str.length()>0 && str[0]=='#') {
return str;
}
int input_length = str.length();
int output_length = 4 * ((input_length + 2) / 3);
char *encoded_data = new char[output_length+1];
const unsigned char* data = (const unsigned char*)str.c_str();
for (int i = 0, j = 0; i < input_length;) {
unsigned octet_a = i < input_length ? data[i++] : 0;
unsigned octet_b = i < input_length ? data[i++] : 0;
unsigned octet_c = i < input_length ? data[i++] : 0;
unsigned triple = (octet_a << 0x10) + (octet_b << 0x08) + octet_c;
encoded_data[j++] = base64_encoding_table[(triple >> 3 * 6) & 0x3F];
encoded_data[j++] = base64_encoding_table[(triple >> 2 * 6) & 0x3F];
encoded_data[j++] = base64_encoding_table[(triple >> 1 * 6) & 0x3F];
encoded_data[j++] = base64_encoding_table[(triple >> 0 * 6) & 0x3F];
}
for (int i = 0; i < mod_table[input_length % 3]; i++)
encoded_data[output_length - 1 - i] = '=';
encoded_data[output_length] = '\0';
std::string ret = "#";
ret += encoded_data;
delete[] encoded_data;
//DebugLog()<<"base64 encoded: \n"<<str<<"\n"<<ret<<"\n";
return ret;
}
std::string base64_decode(std::string str) {
// do not decode if it is not base64
if(str.length()==0 || str[0]!='#') {
return str;
}
build_base64_decoding_table();
std::string instr = str.substr(1);
int input_length = instr.length();
if (input_length % 4 != 0) {
return str;
}
int output_length = input_length / 4 * 3;
const char* data = (const char*)instr.c_str();
if (data[input_length - 1] == '=') output_length--;
if (data[input_length - 2] == '=') output_length--;
unsigned char *decoded_data = new unsigned char[output_length+1];
for (int i = 0, j = 0; i < input_length;) {
unsigned sextet_a = data[i] == '=' ? 0 & i++ : base64_decoding_table[(unsigned char)data[i++]];
unsigned sextet_b = data[i] == '=' ? 0 & i++ : base64_decoding_table[(unsigned char)data[i++]];
unsigned sextet_c = data[i] == '=' ? 0 & i++ : base64_decoding_table[(unsigned char)data[i++]];
unsigned sextet_d = data[i] == '=' ? 0 & i++ : base64_decoding_table[(unsigned char)data[i++]];
unsigned triple = (sextet_a << 3 * 6)
+ (sextet_b << 2 * 6)
+ (sextet_c << 1 * 6)
+ (sextet_d << 0 * 6);
if (j < output_length) decoded_data[j++] = (triple >> 2 * 8) & 0xFF;
if (j < output_length) decoded_data[j++] = (triple >> 1 * 8) & 0xFF;
if (j < output_length) decoded_data[j++] = (triple >> 0 * 8) & 0xFF;
}
decoded_data[output_length] = 0;
std::string ret = (char*)decoded_data;
delete[] decoded_data;
//DebugLog()<<"base64 decoded: \n"<<str<<"\n"<<ret<<"\n";
return ret;
}
+4
View File
@@ -15,4 +15,8 @@ int cursorx_to_position(const char* line, int cursorx, int* prevppos=NULL);
int erease_utf8_by_cw( char* t, int cw, int len, int maxlen);
int utf8_width(const char* s);
std::string utf8_substr(std::string s, int start, int size=-1);
std::string utf32_to_utf8(unsigned ch);
std::string base64_encode(std::string str);
std::string base64_decode(std::string str);
#endif
+15
View File
@@ -3,8 +3,12 @@
#if (defined _WIN32 || defined WINDOWS)
#define _WIN32_WINNT 0x0500
#define WIN32_LEAN_AND_MEAN
#ifndef NOMINMAX
#define NOMINMAX
#endif
//#define VC_EXTRALEAN
#include "windows.h"
#include "mmsystem.h"
#endif
#include <stdio.h>
typedef int chtype;
@@ -100,6 +104,7 @@ typedef struct {
#define KEY_RIGHT 0x105 /* right arrow*/
#define KEY_HOME 0x106 /* home key */ //<---------not used
#define KEY_BACKSPACE 0x107 /* Backspace */ //<---------not used
#define KEY_F(n) (0x108+n) /* F1, F2, etc*/
#define KEY_NPAGE 0x152 /* page down */
#define KEY_PPAGE 0x153 /* page up */
#define KEY_ENTER 0x157 /* enter */
@@ -117,6 +122,16 @@ typedef struct {
WINDOW *newwin(int nlines, int ncols, int begin_y, int begin_x);
int delwin(WINDOW *win);
int wborder(WINDOW *win, chtype ls, chtype rs, chtype ts, chtype bs, chtype tl, chtype tr, chtype bl, chtype br);
int hline(chtype ch, int n);
int vline(chtype ch, int n);
int whline(WINDOW *win, chtype ch, int n);
int wvline(WINDOW *win, chtype ch, int n);
int mvhline(int y, int x, chtype ch, int n);
int mvvline(int y, int x, chtype ch, int n);
int mvwhline(WINDOW *win, int y, int x, chtype ch, int n);
int mvwvline(WINDOW *win, int y, int x, chtype ch, int n);
int wrefresh(WINDOW *win);
int refresh(void);
int getch(void);
+8 -2
View File
@@ -10,7 +10,7 @@ catajson::catajson()
path_msg = "";
}
catajson::catajson(std::string path)
catajson::catajson(std::string path, bool is_static)
{
std::ifstream file;
file.open(path.c_str());
@@ -21,7 +21,13 @@ catajson::catajson(std::string path)
std::string err = picojson::get_last_error();
if (! err.empty()) {
debugmsg("Parse error in %s.\n\nERROR: %s\n", path.c_str(), err.c_str());
if(is_static)
{
std::cout << "Parse error in " << path << std::endl << "ERROR: " << err;
exit(1);
}
else
debugmsg("Parse error in %s.\n\nERROR: %s", path.c_str(), err.c_str());
}
}
+3 -1
View File
@@ -8,7 +8,7 @@ class catajson
{
public:
catajson();
catajson(std::string path);
catajson(std::string path, bool is_static = false);
catajson(picojson::value val, std::string path_msg);
// accessors for picojson values containing simple types
@@ -50,4 +50,6 @@ private:
std::string path_msg; // used for error messages
};
#define json_good() picojson::get_last_error().empty()
#endif
+8
View File
@@ -0,0 +1,8 @@
Current policy is to update code to the standard style when changing a
substantial portion of it. Blocks of code can be passed through astyle
to ensure that their formatting is correct:
astyle --style=1tbs --indent=spaces=4 --align-pointer=name --max-code-length=100 --break-after-logical --indent-classes --indent-switches --indent-preprocessor --indent-col1-comments --min-conditional-indent=0 --pad-oper --add-brackets --convert-tabs
For example, from vi, set marks a and b around the block, then:
:'a,'b ! astyle --style=1tbs --indent-spaces=4 --align-pointer=name --max-code-length=100 --break-after-logical --indent-classes --indent-switches --indent-preprocessor --indent-col1-comments --min-conditional-indent=0 --pad-oper --add-brackets --convert-tabs
+103
View File
@@ -0,0 +1,103 @@
#ADDING STUFF
##Adding a monster
1. Edit mtype.h. Change the enum mon_id and insert a unique identifier for
your new monster type. Be sure to put it among similar monsters.
2. Edit montypedef.cpp. A macro is used for monsters and it is pretty
straightforward (Any of this ring a bell?). Be ABSOLUTELY sure that you
insert the macro at the same point in the list as your inserted the
identifier in mon_id!
3. Your monster type is now valid, but won't be spawned. If you want it to be
spawned among similar monsters, edit mongroupdef.cpp. Find the appropriate
array, and insert the identifier for your monster (e.g, mon_zombie). Make
sure it comes in before the NULL at the end of the list.
4. If you want your monster to drop items, edit monitemsdef.cpp. Make a new
array for your monster type with all the map item groups it may carry, and a
chance value for each.
5. Your monster may have a special attack, a monattack::function reference.
Edit monattack.h and include the function in the class definition; then
edit monattack.cpp and define your function. Functions may be shared among
different monster types. Be aware that the function should contain a
statement that the monster uses to decide whether or not to use the attack,
and if they do, should reset the monster's attack timer.
6. Just like attacks, some monsters may have a special function called when
they die. This works the same as attacks, but the relevent files are
mondeath.h and mondeath.cpp.
##Adding structures to the map
Most "regular" buildings are spawned in cities (large clusters of buildings which are located rather close to each other).
In file omdata.h in the enum oter_id structure define names (code identifiers) for your building.
If you want your building to be displayed at overmap in different orientations, you should add 4 identifiers for each orientation (south, east, west and north correspondingly).
In the same file in `structure const oter_t oterlist[num_ter_types]`
we should define how these buildings will be displayed, how much they obscure vision and which extras set they have. For example:
```C++
{"mil. surplus", '^', c_white, 5, build_extras, false, false},
{"mil. surplus", '>', c_white, 5, build_extras, false, false},
{"mil. surplus", 'v', c_white, 5, build_extras, false, false},
{"mil. surplus", '<', c_white, 5, build_extras, false, false}
```
Comments at the beginning of this structure are rather useful.
In the file `mapgen.cpp` find the subroutine called `draw_map(...);`
where you should find a huge variant operator ("switch"). This is where you should
put your code defining the new building by adding new case-statement.
It should be mentioned that most buildings are built on the square `SEEX*2 x SEEY*2` tiles.
If you want your building to be spawned not only in city limits you should refer to structures in file `omdata.h` (starting from the line `#define OMSPEC_FREQ 7`).
These structures are also commented in source code. Add new identifier in enum omspec_id structure before
`NUM_OMSPECS` and then add a record in `const overmap_special overmap_specials[NUM_OMSPECS]` array. For example:
```C++
{ot_toxic_dump, 0, 5, 15, -1, mcat_null, 0, 0, 0, 0, &omspec_place::wilderness,0}
```
The comments given in source code to `structure struct overmap_special` explain the meaning of these constants in the example above.
##Adding a bionic
1. Edit data/raw/bionics.json and add your bionic near similar types. See JSON_INFO for a more in-depth review of the individual fields.
2. If you want the bionic to be available in the gameworld as an item, add it to item_groups.json
3. Manually code in effects into the appropriate files
##How armour protection is calculated
1. When the player is hit at a specific body part, armour coverage determines whether the armour is hit, or an uncovered part of the player is hit (roll 1d100 against coverage)
2. If the above roll fails (ie roll value is above coverage), then the armour does not absorb any damage from the blow, neither does it become damaged
3. If the above roll succeeds, the armour is hit, possibly absorbing some damage and possibly getting damaged in the process
4. The above steps are repeated for each layer of armour on the body part
5. Armour protects against bash and cut damage. These are determined by multiplying the armour thickness by the material bash/cut resistance factor respectively, given in materials.json
6. If the armour is made from 2 materials types, then it takes a weighted average of the primary material (66%) and secondary material (33%).
7. Materials resistance factors are given relative to PAPER as a material (this probably needs some fine-tuning for balance).
##Acid resistance
This determines how items react to acid fields. Item acid resistances are a weighted
average of the materials acid resistance (see item::acid_resist).
An item acid resistance of zero means it will get corroded every turn
An item acid resistance above zero means it has a chance of getting corroded every turn
An item acid resistance above 9 means completely acidproof
Acid resistance values are in materials.json, and defined as such:
0 - zero resistance to acid (metals)
1 - partly resistant to acid
2 - very resistant to acid
3 - complete acid resistance
#FAQ
**Q: What the heck is up with the map objects?**
A: The pertinent map objects are submap, mapbuffer, map, and overmap.
The submap contains the actual map data, in SEEXxSEEY chunks.
Vehicles and Spawns are stored in vectors because they're relatively sparse.
Submaps live in the single global mapbuffer, MAPBUFFER.
Map encapsulates the area around the player that is currently active.
It contains an array of MAPSIZE * MAPSIZE submap pointers called grid.
This is a 2D array, but is mapped to a 1D array for (questionable) indexing purposes.
When the player moves from one submap to another, map::shift() is called.
It moves the pointers in grid to keep the player centered.
The leading edge of grid is populated by map::load()
If the submap has been visited before, it's loaded from MAPBUFFER
Otherwise a 2x2 chunk of submaps is generated based on the corresponding overmap square type.
An overmap encapsulates the large-scale structure of a map
Such as location and layout of cities, forests, rivers, roads, etc...
There are an arbitrary number of overmaps
Additional overmaps are generated as the player enters new areas.
**Q: what is the relation of NPCS/Monsters vs maps. How are they stored, where are they stored? Are they stored?**
A: All npcs are now stored in the overmap. Active npcs only contain the currently active npcs. There is a difference between npc active npc coordinates, and overmap coordinates. So these will need to be changed when saving the npcs. Or else the npcs will be saved at the wrong location. And yes they are stored.
-113
View File
@@ -1,113 +0,0 @@
ADDITIONS
1.1 Adding an item
1) Edit itype.h. Change the enum item_id and insert a unique identifier for
your new item type. Be sure to put it among similar items.
2) Edit itypedef.cpp. Macros are used for all item types, and they are pretty
self-explanatory. Be ABSOLUTELY sure that you insert the macro at the same
point in the list as you inserted the identifier in item_id!
3) Your item type is now valid, but won't be spawned. If you want it to be
spawned among similar items, edit mapitemsdef.cpp. Find the appropriate
array(s), and insert the identifier for your item (e.g. itm_aspirin). Make
sure it comes in before the NULL at the end of the list.
5) Some items, like tools or food, also take an iuse::function reference.
Edit iuse.h and include the function in the class declaration; then edit
iuse.cpp and define your function. Functions may be shared among different
item types.
1.2 Adding a monster
1) Edit mtype.h. Change the enum mon_id and insert a unique identifier for
your new monster type. Be sure to put it among similar monsters.
2) Edit mtypedef.cpp. A macro is used for monsters and it is pretty
straightforward (Any of this ring a bell?). Be ABSOLUTELY sure that you
insert the macro at the same point in the list as your inserted the
identifier in mon_id!
3) Your monster type is now valid, but won't be spawned. If you want it to be
spawned among similar monsters, edit mongroupdef.cpp. Find the appropriate
array, and insert the identifier for your monster (e.g, mon_zombie). Make
sure it comes in before the NULL at the end of the list.
4) If you want your monster to drop items, edit monitemsdef.cpp. Make a new
array for your monster type with all the map item groups it may carry, and a
chance value for each.
5) Your monster may have a special attack, a monattack::function reference.
Edit monattack.h and include the function in the class definition; then
edit monattack.cpp and define your function. Functions may be shared among
different monster types. Be aware that the function should contain a
statement that the monster uses to decide whether or not to use the attack,
and if they do, should reset the monster's attack timer.
7) Just like attacks, some monsters may have a special function called when
they die. This works the same as attacks, but the relevent files are
mondeath.h and mondeath.cpp.
1.3 Adding a recipe
1) Edit recipes.json. Add your recipe among similar recipes. Required fields
are "result", "category", "difficulty", "time", "autolearn", "components".
Optional fields are "reversible" (defaults to false), "tools" (defaults to
none), "skill_pri" (primary skill, defaults to none), "skill_sec" (defaults
to none), "id_suffix" (disambiguates recipes with the same result, must be
unique among the set of such recipes), "decomp_learn" (the level (if any)
when you can learn it from disassembly), "book_learn" (a list of books that
teach the recipe, and the level they teach it at).
1.4 Adding/editing armour and how armour protection is calculated
1) Edit armor.json and add your armor item near similar types.
2) The fields are:
"type" : "ARMOR", // this must be ARMOR
"id" : "socks", // the identifier used by the game. Must be one continuous word, use underscores if necessary
"name" : "socks", // the name appearing in the examine box. Can be more than one word separated by spaces
"weight" : 1, // weight of armour
"color" : "blue", // ascii character colour
"covers" : ["FEET"], // where it covers. Possible options are TORSO, HEAD, EYES, MOUTH, ARMS, HANDS, LEGS, FEET
"to_hit" : 0, // to-hit bonus if using it as a melee weapon (whatever for?)
"storage" : 0, // how many volume storage slots it adds
"symbol" : "[", // ascii character
"description" : "Socks. Put 'em on your feet.", // description of armour
"price" : 100, // price of armour, used when bartering with NPCs
"material" : ["COTTON", "NULL"], // material types. See materials.json for possible options
"volume" : 1, // volume occupied
"cutting" : 0, // cutting damage caused by using it as a melee weapon
"warmth" : 10, // how much warmth clothing provides
"phase" : "solid", // what phase it is
"enviromental_protection" : 0, // how much environmental protection it affords
"rarity" : 70, // determines how often it spawns
"encumberance" : 0, // base encumbrance (unfitted value)
"bashing" : -5, // bashing damage caused by using it as a melee weapon
"flags" : ["VARSIZE"] // used to indicate clothing type which can be fitted. Leave out the flags field entirely if clothing cannot be fitted
"coverage" : 80, // what percentage of body part
"material_thickness" : 1 // thickness of material, in millimetre units (approximately). Generally ranges between 1 - 5, more unusual armour types go up to 10 or more
3) When the player is hit at a specific body part, armour coverage determines whether the armour is hit, or an uncovered part of the player is hit (roll 1d100 against coverage)
4) If the above roll fails (ie roll value is above coverage), then the armour does not absorb any damage from the blow, neither does it become damaged
5) If the above roll succeeds, the armour is hit, possibly absorbing some damage and possibly getting damaged in the process
6) The above steps are repeated for each layer of armour on the body part
7) Armour protects against bash and cut damage. These are determined by multiplying the armour thickness by the material bash/cut resistance factor respectively, given in materials.json
8) If the armour is made from 2 materials types, then it takes a weighted average of the primary material (66%) and secondary material (33%).
9) Materials resistance factors are given relative to PAPER as a material (this probably needs some fine-tuning for balance).
1.5 Adding a bionic
1) Edit data/raw/bionics.json and add your bionic near similar types.
2) Add the required attributes
id : "bio_rocketlauncher" // Text string used as identifier in the code.
name : "CBM: Rocket Launcher" // The bionic's name, as showed to the player.
cost : 10 // How many PUs it costs to use the bionic.
time : 0 // How long, when activated, between drawing cost. If 0, it draws power once.
description : "It's a rocket launcher, inside your arm!!" // A brief description of the bionic, as showed to the player.
3) Add any otional attributes
flags : ["ACTIVE"] // Used to flag the bionic as a specific type.
Supported flags:
"ACTIVE" : The bionic can be manually activated and deactivated.
"POWER" : The bionic provides a source of power.
"FAULTY" : The bionic is an unwanted one, will typically have negative effects.
Flags can be combined like so: ["ACTIVE","POWER","FAULTY"] (Don't add all these at once)
4) If you want the bionic to be available in the gameworld as an item, add it to itypedef.cpp
BIO_SINGLE(id, rarity, price, color, difficulty)
See 1.1 for more information about adding items.
-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
+96
View File
@@ -0,0 +1,96 @@
#ENUMS
Format: File with definition : Name of enum
* action.h : action_id
* artifact.h : art_effect_passive
* artifact.h : art_effect_active
* artifact.h : art_charge
* artifact.h : artifact_natural_shape
* artifact.h : artifact_natural_property
* artifactdata.h : artifact_weapon_type
* artifactdata.h : artifact_tool_form
* artifactdata.h : artifact_armor_mod
* artifactdata.h : artifact_armor_form
* bodypart.h : body_part
* calendar.cpp : weekday
* calendar.h : season_type
* calendar.h : moon_phase
* color.h : col_attribute
* color.h : nc_color
* computer.h : computer_action
* computer.h : computer_failure
* debug.h : DebugLevel
* debug.h : DebugClass
* dialogue.h : talk_trial
* disease.cpp : dis_type_enum
* enums.h : phase_id
* enums.h : damage_type
* event.h : event_type
* faction.h : faction_goal
* faction.h : faction_job
* faction.h : faction_value
* field.h : field_id
* game.cpp : ter_id v_wall_type
* game.cpp : ter_id h_wall_type
* game.cpp : ter_id door_type
* game.cpp : ter_id floor_type
* game.h : tut_type
* game.h : input_ret
* game.h : quit_status
* gamemode.h : special_game_id
* gamemode.h : tut_lesson
* gamemode.h : defense_style
* gamemode.h : defense_location
* gamemode.h : caravan_category
* input.h : InputEvent
* item.h : hint_rating
* itype.h : item_cat
* itype.h : software_type
* itype.h : technique_id
* itype.h : bigness_property_aspect
* lightmap.h : lit_level
* line.h : direction
* map.cpp : astar_list
* mapdata.h : t_flag
* mapdata.h : ter_id
* mapdata.h : furn_id
* mapdata.h : map_extra
* mapgen.cpp : room_type
* mission.h : talk_topic
* mission.h : mission_id
* mission.h : mission_origin
* mission.h : mission_goal
* monster.h : monster_effect_type
* monster.h : monster_attitude
* morale.h : morale_type
* mtype.h : monster_species
* mtype.h : mon_id
* mtype.h : m_size
* mtype.h : monster_trigger
* mtype.h : m_flag
* mtype.h : m_category
* npc.h : npc_attitude
* npc.h : npc_mission
* npc.h : npc_class
* npc.h : npc_action
* npc.h : npc_need
* npc.h : npc_flag
* npc.h : npc_favor_type
* npc.h : combat_engagement
* npc.h : talk_topic
* omdata.h : oter_id
* omdata.h : omspec_flag
* omdata.h : omspec_id
* omdata.h : overmap_zone
* overmpa.h : radio_type
* pldata.h : character_type
* pldata.h : add_type
* pldata.h : activity_type
* pldata.h : pl_flag
* pldata.h : hp_part
* trap.h : trap_id
* veh_interact.h : sel_types
* veh_type : vpart_id
* vehicle.cpp : vehicle_controls
* vehicle.h : veh_coll_type
* weather.h : weather_type
+41 -54
View File
@@ -1,18 +1,17 @@
#0 Table of Contents
##0 Table of Contents
#0 Table of Contents
#1 Files
#2 special_game class
#3 Functions
#3.0 id()
#3.1 init()
#3.2 per_turn()
#3.3 pre_action()
#3.4 post_action()
#3.5 game_over()
#1 Files
* 0 Table of Contents
* 1 Files
* 2 special_game class
* 3 Functions
* 3.0 id()
* 3.1 init()
* 3.2 per_turn()
* 3.3 pre_action()
* 3.4 post_action()
* 3.5 game_over()
##1 Files
The main file to be concerned with is gamemode.h.
This is where you can insert the class definition for your game mode, and any
@@ -30,10 +29,7 @@ respectively.
If you add a new game mode, use <mode name>.cpp for its code and <mode name>.h
for any static data associated with it.
#2 special_game class
##2 special_game class
Every new game mode is a child class of special_game. It may house any private
functions and variables it needs, as well as a constructor, but otherwise the
only public members should be the five functions described below.
@@ -45,77 +41,68 @@ class.
There is an enum, special_game_id, at the top of gamemode.h. There should be
one entry for every game mode in existance. Add one for yours.
#3 Functions
#3.0 id()
##3 Functions
###3.0 id()
virtual special_game_id id();
Returns the special_game_id assigned to your game mode.
#3.1 init()
###3.1 init()
virtual void init(game *g);
This is run when your game mode begins.
Some ideas:
>>Change the itype and mtype definitions--remove certain monsters from
>Some ideas:
>Change the itype and mtype definitions--remove certain monsters from
the game, make certain items weightless, make baseballs bats uber-powerful
>>Change the recipes. Add new ones, reduce the time crafting takes.
>>Start the game in a special area. Edit the world to be entirely swamp.
>Change the recipes. Add new ones, reduce the time crafting takes.
>Start the game in a special area. Edit the world to be entirely swamp.
#3.2 per_turn()
###3.2 per_turn()
virtual void per_turn(game *g);
This is run every turn, before anything else is done, including player actions.
Some ideas:
>>Reset the player's thirst, hunger, or fatigue to 0, eliminating these needs
>>Spawn some monsters every 50 turns
>>Make fire burn off faster
>>Add a chance for a space debris to fall
>Some ideas:
>Reset the player's thirst, hunger, or fatigue to 0, eliminating these needs
>Spawn some monsters every 50 turns
>Make fire burn off faster
>Add a chance for a space debris to fall
#3.3 pre_action()
###3.3 pre_action()
virtual void pre_action(game *g, action_id &act);
This is run after a keypress, but before the action is performed. The action
is passed by reference, so you can modify it if you like.
Some ideas:
>>Rewrite the functionality of actions entirely; change the long wait menu,
>Some ideas:
>Rewrite the functionality of actions entirely; change the long wait menu,
for example
>>Disallow certain actions by setting act to ACTION_NULL
>>Add a confirmation request to certain actions
>>Make the availability of certain actions dependant on game state
>Disallow certain actions by setting act to ACTION_NULL
>Add a confirmation request to certain actions
>Make the availability of certain actions dependant on game state
#3.4 post_action()
###3.4 post_action()
virtual void post_action(game *g, action_id act);
This is run after an action is performed.
Some ideas:
>>Make certain actions perform faster by rebating movement points
>>Add extra effects to certain actions
>>Display a message upon execution of certain actions
>Some ideas:
>Make certain actions perform faster by rebating movement points
>Add extra effects to certain actions
>Display a message upon execution of certain actions
#3.5 game_over()
###3.5 game_over()
virtual void game_over(game *g);
This is run when the game is over (player quit or died).
Some ideas:
>>Add a special achievement message, e.g. number of rounds survived
>>Delete any special files created during play
>Some ideas:
>Add a special achievement message, e.g. number of rounds survived
>Delete any special files created during play
@@ -1,15 +1,18 @@
Stat system scaling:
Minimum stat: 1 (should only happen due to penalties)
Minimum stat: 0 (should only happen due to penalties, instant failure in most scenarios)
Nominal stat: 8 ("average" person)
Very high stat: ? (realistic world class human)
Maximal stat: 20 (higher may be achievable, but we're not worried about balancing at that point.)
Skill system scaling:
Minimum skill: 0 (no training)
Maximum skill: 10 (requires regular training to maintain)
Maximum skill: 10 (requires regular training to maintain, "professional" level)
Monster melee skill scaling:
Ranges from 8 to 16
Minimum skill: 0 (no combat potential)
Nominal skill: 8 (average Zed)
Very high stat: 16 (skilled in combat)
Maximal stat: 20 (highest for balance purposes)
Dodge System assumptions:
Dodge chance is based on attacker's melee skill and target's dex stat and dodge skill.
@@ -24,9 +27,8 @@ An individual with world-class dodging ability, in ideal circumstances against a
An individual with world-class dodging ability, in ideal circumstances against a skilled opponent should have a moderate chance of failure.
The effect of increasing dodge skill has a growth rate with diminishing returns that accelerates sharply at the point where you move beyond the dodge a "regular" character is likely to achieve (7 and above)
The effect of increasing dodge skill has a growth rate with diminishing returns that accelerates sharply at the point where you move beyond the dodge a "regular" character is likely to achieve (7 and above)
The balance of melee versus dodge should favour dodge which, after all, isn't effective against a wide variety of other types of attacks.
Even a world class dodger should not be able to dodge continuously when attacked many times a turn.
+422
View File
@@ -0,0 +1,422 @@
# JSON file contents
##raw
* bionics.json - bionics, does NOT include bionic effects
* dreams.json - dream text and linked mutation categories
* item_groups.json - item spawn groups
* materials.json - material types
* monstergroups.json - monster spawn groups
* names.json - names used for NPC/player name generation
* professions.json - profession definitions
* recipes.json - crafting/disassembly recipes
* skills.json - skill descriptions and ID's
* snippets.json - flier/poster descriptions
* mutations.json - traits/mutations
* vehicle_parts.json - vehicle parts, does NOT affect flag effects
* vehicles.json - vehicle definitions
##raw/items
* archery.json - bows and arrows
* ranged.json - guns
* tools.json - tools and items that can be (a)ctivated
* ammo.json - ammo
* books.json - books
* comestibles.json - food/drinks
* containers.json - containers
* instruments.json - instruments
* melee.json - anything that doesn't go in the other item jsons, melee weapons
* mods.json - gunmods
#raw jsons
###BIONICS
```C++
"id" : "bio_batteries", // Unique ID. Must be one continuous word, use underscores if necessary
"name" : "Battery System", // In-game name displayed
"cost" : 0, // How many PUs it costs to use the bionic.
"time" : 0, // How long, when activated, between drawing cost. If 0, it draws power once.
"flags" : ["POWER"], // Used to flag the bionic as a specific type.
"description": "You have a battery draining attachment, and thus can make use of the energy\ncontained in normal, everyday batteries. Use 'E' to consume batteries." // In-game description
```
###DREAMS
```C++
"message" : [ // List of potential dreams
"You have a strange dream about birds.",
"Your dreams give you a strange feathered feeling."
],
"category" : "MUTCAT_BIRD", // Mutation category needed to dream
"strength" : 1 // Mutation category strength required
1 = 20 - 34
2 = 35 - 49
3 = 50+
```
###ITEM GROUPS
```C++
"id":"forest", // Unique ID. Must be one continuous word, use underscores if necessary
"items":[ // List of potential item ID's. Chance of an item spawning is x/T, where
["rock", 40], // X is the value linked to the specific item and T is the total of all
["stick", 95], // item values in a group
["mushroom", 4],
["mushroom_poison", 3],
["mushroom_magic", 1],
["blueberries", 3]
]
```
###MATERIALS
```C++
"ident" : "hflesh", // Unique ID. Must be one continuous word, use underscores if necessary
"name" : "Human Flesh", // In-game name displayed
"bash_resist" : 1, // How well a material resists bashing damage
"cut_resist" : 1, // How well a material resists cutting damage
"bash_dmg_verb" : "bruised", // Verb used when material takes bashing damage
"cut_dmg_verb" : "sliced", // Verb used when material takes cutting damage
"dmg_adj" : ["bruised", "mutilated", "badly mutilated", "thoroughly mutilated"], // Description added to damaged item in ascending severity
"acid_resist" : 1, // Ability of a material to resist acid
"elec_resist" : 1, // Ability of a material to resist electricity
"fire_resist" : 0, // Ability of a material to resist fire
"density" : 5 // Density of a material
```
###MONSTER GROUPS
```C++
"name" : "GROUP_ANT", // Unique ID. Must be one continuous word, use underscores if necessary
"default" : "mon_ant", // Default monster, automatically fills in any remaining spawn chances
"monsters" : [
{ "monster" : "mon_ant_larva", "freq" : 40, "multiplier" : 0 }, // To choose monster spawned game creates 1000 entries and picks one.
{ "monster" : "mon_ant_soldier", "freq" : 90, "multiplier" : 5 }, // Each monster will have a number of entries equal to it's "freq" and
{ "monster" : "mon_ant_queen", "freq" : 0, "multiplier" : 0 } // the default monster will fill in the remaining. "multiplier" increases
] // how much each monster counts for in a spawn group (i.e. will spawn 5 larva or 1 soldier)
```
###NAMES
```C++
{ "name" : "Aaliyah", "gender" : "female", "usage" : "given" }, // Name, gender, "given"/"family"/"city" (first/last/city name).
// NOTE: Please refrain from adding name PR's in order to maintain kickstarter exclusivity
```
###PROFESSIONS
```C++
"description":"Ever since you were a child you loved hunting, and you loved the challenge of hunting with a bow even more. You start with a level in archery and survival.", // In-game description
"ident":"hunter", // Unique ID. Must be one continuous word, use underscores if necessary
"items":[ // ID's of items player starts with when selecting this profession
"army_top",
"boots_steel",
"jeans"
],
"name":"Bow Hunter", // In-game name displayed
"points":2, // Point cost of profession. Positive values cost points and negative values grant points
"addictions" : [ // Optional list of starting addictions.
{
"type": "nicotine", // ID of addiction
"intensity" : 10, // Intensity of starting addiction
}
"skills":[ // Skills that the player starts with when selecting this profession, stacks with purchased skills
{
"level":1, // Skill level granted
"name":"archery" // ID of granted skill
},
{
"level":1,
"name":"survival"
}
]
```
###RECIPES
```C++
"result": "javelin", // ID of resulting item
"category": "CC_WEAPON", // Category of crafting recipe. CC_NONCRAFT used for disassembly recipes
"skill_used": "fabrication", // Skill trained and used for success checks
"requires_skills": [ "survival", 1, "throw", 2 ], // Skills required to unlock recipe
"difficulty": 3, // Difficulty of success check
"time": 5000, // Time to perform recipe
"reversible": false, // Can be disassembled.
"autolearn": true, // Automatically learned upon gaining required skills
"tools": [ // Tools needed to craft
[ // Equivalent tools are surrounded by a single set of brackets []
[ "hatchet", -1 ], // Charges consumed when tool is used, -1 means no charges are consumed
[ "knife_steak", -1 ],
[ "knife_combat", -1 ],
[ "knife_butcher", -1 ],
[ "pockknife", -1 ],
[ "scalpel", -1 ],
[ "machete", -1 ],
[ "broadsword", -1 ],
[ "toolset", -1 ]
],
[
[ "fire", -1 ]
]
],
"components": [ // Equivalent components are surrounded by a single set of brackets
[
[ "spear_wood", 1 ], // Number of charges/items required
[ "pointy_stick", 1 ]
],
[
[ "rag", 1 ],
[ "leather", 1 ],
[ "fur", 1 ]
],
[
[ "plant_fibre", 20 ],
[ "sinew", 20 ],
[ "thread", 20 ],
[ "duct_tape", 20 ]
]
]
```
###SKILLS
```C++
"smg", // Unique ID. Must be one continuous word, use underscores if necessary
"submachine guns", // In-game name displayed
"Your skill with submachine guns and machine pistols. Halfway between a pistol and an assault rifle, these weapons fire and reload quickly, and may fire in bursts, but they are not very accurate.", // In-game description
["gun_type"] // Special flags, most skills will have an empty list "[]"
```
###SNIPPETS
```C++
"category": "flier", // Category used
"text": "This is an advertisement for the Diet Devil brand Metabolic Exchange CBM. It shows a picture of a tiny obese devil sitting on a woman's shoulder. The woman stares intently at a gigantic wedding cake covered with bacon and candybars. The caption reads: \"Burn calories! Burn!\"" // In-game description
```
###TRAITS/MUTATIONS
```C++
"id": "LIGHTEATER", // Unique ID
"name": "Optimist", // In-game name displayed
"points": 2, // Point cost of the trait. Positive values cost points and negative values give points
"visibility": 0, // Visibility of the trait for purposes of NPC interaction
"ugliness": 0, // Ugliness of the trait for purposes of NPC interaction
"description": "Nothing gets you down!" // In-game description
"starting_trait": true, // Can be selected at character creation
"valid": false, // Can be mutated ingame
"category": ["MUTCAT_BIRD", "MUTCAT_INSECT"], // Categories containing this mutation
"prereqs": ["SKIN_ROUGH"], // Needs these mutations before you can mutate toward this mutation
"cancels": ["ROT1", "ROT2", "ROT3"], // Cancels these mutations when mutating
"changes_to": ["FASTHEALER2"], // Can change into these mutations when mutating further
"wet_protection":[{ "part": "HEAD", // Wet Protection on specific bodyparts
"good": 1 } ] // "neutral/good/ignored" // Good increases pos and cancels neg, neut cancels neg, ignored cancels both
```
###VEHICLE PARTS
```C++
"id": "wheel", // Unique identifier
"name": "wheel", // Displayed name
"symbol": "0", // ASCII character displayed when part is working
"color": "dark_gray", // Color used when part is working
"broken_symbol": "x", // ASCII character displayed when part is broken
"broken_color": "light_gray", // Color used when part is broken
"damage_modifier": 50, // (Optional, default = 100) Dealt damage multiplier when this part hits something, as a percentage. Higher = more damage to creature struck
"durability": 200, // How much damage the part can take before breaking
"wheel_width": 9, /* (Optional, default = 0)
* SPECIAL: A part may have at most ONE of the following fields:
* wheel_width = base wheel width in inches
* size = trunk/box storage volume capacity
* power = base engine power (in liters)
* bonus = bonus granted; muffler = noise reduction%, seatbelt = bonus to not being thrown from vehicle
* par1 = generic value used for unique bonuses, like the headlight's light intensity */
"fuel_type": "NULL", // (Optional, default = "NULL") Type of fuel/ammo the part consumes, as an item id
"item": "wheel", // The item used to install this part, and the item obtained when removing this part
"difficulty": 4, // Your mechanics skill must be at least this level to install this part
"flags": [ // Flags associated with the part
"EXTERNAL", "MOUNT_OVER", "WHEEL", "MOUNT_POINT", "VARIABLE_SIZE"
]
```
###VEHICLES
```C++
"id": "shopping_cart", // Internally-used name.
"name": "Shopping Cart", // Display name, subject to i18n.
"blueprint": "#", // Preview of vehicle - ignored by the code, so use only as documentation
"parts": [ // Parts list
{"x": 0, "y": 0, "part": "box"}, // Part definition, positive x direction is to the left, positive y is to the right
{"x": 0, "y": 0, "part": "casters"} // See vehicle_parts.json for part ids
]
/* Important! Vehicle parts must be defined in the same order you would install
* them in the game (ie, frames and mount points first).
* You also cannot break the normal rules of installation
* (you can't stack non-stackable part flags). */
```
#raw/items jsons
###AMMO
```C++
"type" : "AMMO", // Defines this as ammo
"id" : "shot_bird", // Unique ID. Must be one continuous word, use underscores if necessary
"price" : 500, // Used when bartering with NPC's
"name" : "birdshot", // In-game name displayed
"symbol" : "=", // ASCII character used in-game
"color" : "red", // ASCII character colour
"description" : "Weak shotgun ammunition. Designed for hunting birds and other small game, its applications in combat are very limited.", // In-game description
"material" : "plastic", // Material types. See materials.json for possible options
"volume" : 2, // Volume, measured in 1/4 liters
"weight" : 34, // Weight, measuted in grams
"bashing" : 1, // Bashing damage caused by using it as a melee weapon
"cutting" : 0, // Cutting damage caused by using it as a melee weapon
"to_hit" : 0, // To-hit bonus if using it as a melee weapon
"ammo_type" : "shot", // Determines what it can be loaded in
"damage" : 18, // Ranged damage when fired
"pierce" : 0, // Armor piercing ability when fired
"range" : 5, // Range when fired
"dispersion" : 0, // Inaccuracy of ammo, measured in quarter-degrees
"recoil" : 18, // Recoil caused when firing
"count" : 25, // Number of rounds that spawn together
"stack_size" : 50, // (Optional) How many rounds are in the above-defined volume. If omitted, is the same as 'count'
"effects" : ["COOKOFF", "SHOT"] // Special effects
```
###ARMOR
```C++
"type" : "ARMOR", // Defines this as armor
"id" : "socks", // Unique ID. Must be one continuous word, use underscores if necessary
"name" : "socks", // The name appearing in the examine box. Can be more than one word separated by spaces
"weight" : 350, // Weight of armour in grams
"color" : "blue", // ASCII character colour
"covers" : ["FEET"], // Where it covers. Possible options are TORSO, HEAD, EYES, MOUTH, ARMS, HANDS, LEGS, FEET
"to_hit" : 0, // To-hit bonus if using it as a melee weapon (whatever for?)
"storage" : 0, // How many volume storage slots it adds
"symbol" : "[", // ASCII character used in-game
"description" : "Socks. Put 'em on your feet.", // Description of armour
"price" : 100, // Used when bartering with NPCs
"material" : ["COTTON", "NULL"], // Material types. See materials.json for possible options
"volume" : 1, // Volume, measured in 1/4 liters
"cutting" : 0, // Cutting damage caused by using it as a melee weapon
"warmth" : 10, // How much warmth clothing provides
"phase" : "solid", // What phase it is
"enviromental_protection" : 0, // How much environmental protection it affords
"encumberance" : 0, // Base encumbrance (unfitted value)
"bashing" : -5, // Bashing damage caused by using it as a melee weapon
"flags" : ["VARSIZE"] // Indicates special effects
"coverage" : 80, // What percentage of body part
"material_thickness" : 1 // Thickness of material, in millimetre units (approximately). Generally ranges between 1 - 5, more unusual armour types go up to 10 or more
```
###BOOKS
```C++
"type" : "BOOK", // Defines this as a BOOK
"id" : "textbook_computers", // Unique ID. Must be one continuous word, use underscores if necessary
"name" : "Computer Science 301", // In-game name displayed
"max_level" : 5, // Maximum skill level this book will train to
"description" : "A college textbook on computer science.", // In-game description
"weight" : 1587, // Weight, measured in grams
"to_hit" : 1, // To-hit bonus if using it as a melee weapon
"color" : "blue", // ASCII character colour
"intelligence" : 11, // Intelligence required to read this book without penalty
"symbol" : "?", // ASCII character used in-game
"material" : ["paper", "null"], // Material types. See materials.json for possible options
"volume" : 7, // Volume, measured in 1/4 liters
"bashing" : 5, // Bashing damage caused by using it as a melee weapon
"cutting" : 0, // Cutting damage caused by using it as a melee weapon
"time" : 35, // Time (in minutes) a single read session takes
"fun" : -2, // Morale bonus/penalty for reading
"skill" : "computer", // Skill raised
"price" : 500, // Used when bartering with NPCs
"required_level" : 2 // Minimum skill level required to learn
```
###COMESTIBLES
```C++
"type" : "COMESTIBLE", // Defines this as a COMESTIBLE
"id" : "crack", // Unique ID. Must be one continuous word, use underscores if necessary
"name" : "crack", // In-game name displayed
"weight" : 1, // Weight, measured in grams
"color" : "white", // ASCII character colour
"addiction_type" : "crack", // Addiction type
"spoils_in" : 0, // How long a comestible is good for. 0 = no spoilage
"use_action" : "CRACK", // What effects a comestible has when used
"stim" : 40, // Stimulant effect
"container" : "null", // What container stores this
"to_hit" : 0, // To-hit bonus if using it as a melee weapon
"comestible_type" : "MED", // Comestible type, used for inventory sorting
"symbol" : "!", // ASCII character used in-game
"quench" : 0, // Thirst quenched
"heal" : -2, // Health effects (used for sickness chances)
"addiction_potential" : 80, // Ability to cause addictions
"nutrition" : 0, // Hunger satisfied
"description" : "Refined cocaine, incredibly addictive.", // In-game description
"price" : 420, // Used when bartering with NPCs
"material" : "powder", // Material types. See materials.json for possible options
"tool" : "apparatus", // Tool required to be eaten/drank
"volume" : 1, // Volume, measured in 1/4 liters
"cutting" : 0, // Cutting damage caused by using it as a melee weapon
"phase" : "solid", // What phase it is
"charges" : 4, // Number of uses when spawned
"stack_size" : 8, // (Optional) How many uses are in the above-defined volume. If omitted, is the same as 'charges'
"bashing" : 0, // Bashing damage caused by using it as a melee weapon
"fun" : 50 // Morale effects when used
```
###CONTAINERS
```C++
"id": "keg", // Unique ID. Must be one continuous word, use underscores if necessary
"type": "CONTAINER", // Defines this as a CONTAINER
"symbol": ")", // ASCII character used in-game
"color": "light_cyan", // ASCII character colour
"name": "aluminum keg", // In-game name displayed
"description": "A reusable aluminum keg, used for shipping beer.\nIt has a capacity of 50 liters.", // In-game description
"price": 6000, // Used when bartering with NPCs
"weight": 13500, // Weight, measured in grams
"volume": 200, // Volume, measured in 1/4 liters
"bashing": -4, // Bashing damage caused by using it as a melee weapon
"cutting": 0, // Cutting damage caused by using it as a melee weapon
"to_hit": -4, // To-hit bonus if using it as a melee weapon
"material": "steel", // Material types. See materials.json for possible options
"contains": 200, // How much volume this container can hold
"flags": ["RIGID", "SEALS", "WATERTIGHT"] // Indicates special effects
```
###MELEE
```C++
"id": "hatchet", // Unique ID. Must be one continuous word, use underscores if necessary
"symbol": ";", // ASCII character used in-game
"color": "light_gray", // ASCII character colour
"name": "hatchet", // In-game name displayed
"description": "A one-handed hatchet. Makes a great melee weapon, and is useful both for cutting wood, and for use as a hammer.", // In-game description
"price": 95, // Used when bartering with NPCs
"material": ["iron", "wood"], // Material types. See materials.json for possible options
"weight": 907, // Weight, measured in grams
"volume": 6, // Volume, measured in 1/4 liters
"bashing": 12, // Bashing damage caused by using it as a melee weapon
"cutting": 12, // Cutting damage caused by using it as a melee weapon
"flags" : ["CHOP"], // Indicates special effects
"to_hit": 1 // To-hit bonus if using it as a melee weapon
```
###GUN
```C++
"id": "nailgun", // Unique ID. Must be one continuous word, use underscores if necessary
"type": "GUN", // Defines this as a GUN
"symbol": "(", // ASCII character used in-game
"color": "light_blue", // ASCII character colour
"name": "nail gun", // In-game name displayed
"description": "A tool used to drive nails into wood or other material. It could also be used as a ad-hoc weapon, or to practice your handgun skill up to level 1.", // In-game description
"price": 100, // Used when bartering with NPCs
"material": "iron", // Material types. See materials.json for possible options
"flags": "MODE_BURST", // Indicates special effects
"skill": "pistol", // Skill used for firing
"ammo": "nail", // Ammo type accepted for reloading
"weight": 2404, // Weight, measured in grams
"volume": 4, // Volume, measured in 1/4 liters
"bashing": 12, // Bashing damage caused by using it as a melee weapon
"cutting": 0, // Cutting damage caused by using it as a melee weapon
"to_hit": 1, // To-hit bonus if using it as a melee weapon
"ranged_damage": 0, // Ranged damage when fired
"range": 0, // Range when fired
"dispersion": 32, // Inaccuracy of gun, measured in quarter-degrees
"recoil": 0, // Recoil caused when firing
"durability": 8, // Resistance to damage/rusting, also determines misfire chance
"burst": 5, // Number of shots fired in burst mode
"clip_size": 100, // Maximum amount of ammo that can be loaded
"reload": 450 // Amount of time to reload, 100 = 6 seconds = 1 "turn"
```
###TOOLS
```C++
"id": "torch_lit", // Unique ID. Must be one continuous word, use underscores if necessary
"type": "TOOL", // Defines this as a TOOL
"symbol": "/", // ASCII character used in-game
"color": "brown", // ASCII character colour
"name": "torch (lit)", // In-game name displayed
"description": "A large stick, wrapped in gasoline soaked rags. This is burning, producing plenty of light", // In-game description
"price": 0, // Used when bartering with NPCs
"material": "wood", // Material types. See materials.json for possible options
"techniques": "FLAMING", // Combat techniques used by this tool
"flags": "FIRE", // Indicates special effects
"weight": 831, // Weight, measured in grams
"volume": 6, // Volume, measured in 1/4 liters
"bashing": 12, // Bashing damage caused by using it as a melee weapon
"cutting": 0, // Cutting damage caused by using it as a melee weapon
"to_hit": 3, // To-hit bonus if using it as a melee weapon
"max_charges": 75, // Maximum charges tool can hold
"initial_charges": 75, // Charges when spawned
"charges_per_use": 1, // Charges consumed per tool use
"turns_per_charge": 20, // Charges consumed over time
"ammo": "NULL", // Ammo type used for reloading
"revert_to": "torch_done", // Transforms into item when charges are expended
"use_action": "TORCH_LIT" // Action performed when tool is used
```
+60
View File
@@ -0,0 +1,60 @@
MODDING
Certain features of the game can be modified without rebuilding the game from
source code; you should be able to just modify the pertinent files and run the
game to see your changes. This attempts to document these features.
An in-depth review of all json files and their appropriate fields is avaliable in
JSON_INFO.txt.
1) Adding a profession.
Let's say we want to add a survivalist profession; this profession represents a
character who was already living off the land before the disaster struck. We'll
say this profession starts with archery, survival, traps, beef jerky
and a few survival items. We'll set the starting cost at 3 points since
it modifies skills and items. We could do that with the
following entries:
{
"ident" : "survivalist"
"name": "Wilderness Survivalist",
"description": "You live off the wild and wander the world; you've never
had\na place to live or items other than what you can
scavenge off the land. People called you crazy; now,
after the disaster, you're the sane one."
"points" : 3,
"items": ["pants_cargo", "boots", "beltrig", "selfbow", "jerky", "arrow_field_point"],
"skills" : [
{
"name": "archery",
"level" : 1
},
{
"name" : "survival",
"level" : 1
},
{
"name" : "traps",
"level" : 1
}
]
},
After adding this to the professions.json file, we should see the new profession
show up in the character creation screen.
2) Adding an item
1) Open the appropriate json in data/raw/items and add your item near similar types.
1b) See JSON_INFO for a more in-depth review of each individual item .json file/flags
2) Add the item to item_groups.json to have it spawn in in-game locations
3) IMPORTANT NOTE on JSON FILES:
The following characters: [ { , } ] : "
are *very* important when adding or modifying the JSON files for technical
reasons. This means a single missing , or [ or } can be the difference between
a working file and a hanging game at startup. Many editors have features
that let you track { [ and ] } to see if they're balanced (ie, have a matching
opposite); Notepad++ is a popular, free editor on Windows that contains
this feature. On Linux, there are a plethora of options, and you probably
already have a preferred one :-).
+1 -105
View File
@@ -1,17 +1,6 @@
NOTABLE BUGS:
Factions cannot be saved at all, or they corrupt the master save file
NOTE: ONLY SAVED FOR POSTERITY, PLEASE USE GIT FOR ALL NEW SUGGESTIONS/DISCUSSION
LONG-TERM FEATURES: Stuff I hope to finish in a year
Add a "list nearby items" command, which lists visible items by distance,
name, type, etc. Make it searchable, perhaps allow the player to define
highlighted items which are always moved to the top of the list.
Missions need to have save() and load() functions.
Save NPCs.
Once NPCs are working, populate settlements with them. Make sure that the
@@ -37,38 +26,15 @@ LONG-TERM FEATURES: Stuff I hope to finish in a year
Priests start with robe & collar and have bonuses when
interacting with religious NPCs
Support terminals larger than 80x25, with the extra space being utilized
Larger terminals should not be given any real advantages over smaller
ones; this means that the visible terrain should not be a larger
area, but rather the extra space could be used for a larger visible
message buffer.
Wrap WINDOW* in a custom class. This will eliminate the possibility of
memory leaks from undeleted temporary windows, and will make porting to
different display libraries (e.g. tiles) much easier.
Eventually a tiles port would be nice. The biggest obstacle to this is the
actual tile graphics; once those are acquired, the only things needing a
rewrite should be output.{h,cpp} and keypress.{h,cpp}
Though mtypedef and itypedef might need to have item glyphs replaced or
enchanced with a link to a image file or part of an image file. Same
with terrain data
Sustained high morale generates "life points" (think of a less stupid name).
These can be spent on a permanent stat increase, crafting a "legendary" item,
or other otherwise unobtainable goodies. This gives the player motivation to
maintain high morale without the artificial-feeling stat bonuses.
High morale now generates XP points, which go into increasing your
skills without the use of books. Maybe these XP points could be used
for the above effects?
GENERAL:
More cultural references!
LOST: Black cloud monster, polar bear, hatches
Resident Evil style zombies
Kinda done with The Thing dog
->The whole game is already a reference to Fallout, let's admit it. So
avoid Fallout references in general, they're too easy.
->Ditto for Half-Life, the game is saturated with HL references
@@ -92,19 +58,9 @@ GENERAL:
OTHERS: Escape From New York,
Classes (see above under LONG-TERM) could draw from pop culture heros
Archeologist: Indiana Jones (a la nethack)
Road Warrior: Mad Max
Pushable furniture; push dressers, fridges, etc. in front of doors
Configurable options:
Colors (e.g. highlight color, currently blue)
Also ncurses options, e.g. A_BLINK support--not all terminals
can display bright background colors, so black-on-dark-gray
will just show up as a blank tile. We should have an option
to turn off bright background colors.
Run Mode behavior / Run Mode auto-on
Auto-drop food containers (empty soda cans, etc)
Fix eating/fullness; right now only overeating when Full is a risk of puking,
which comes too quickly and feels unfair. Thirst (and small amounts of
@@ -114,27 +70,15 @@ GENERAL:
>Two levels; "Full" and "Overfull"; Only when Overfull is puking a risk
>Three levels, hunger, thirst, and stomach fullness
Make cooking a rotten item result in a rotten item
Or, average the original item's birthday with the current turn, to allow
for some freshening.
When picking items up, highlight useful ones in particular colors
DONE Red: Ammo for a gun you have, or vice versa
Green: Important medical (1st aid, bandages, painkiller, etc.)
Possibly context-dependant? Painkillers if you're in pain, etc.
Blue: Items you can craft with
Purple: User-defined criteria
Food canning. We already have tin cans, add an item "canning kit"
Or make it a craft; canning requires boiling water + equipment
Highlight or color-invert monsters that're fleeing; also make indifference
visually obvious in some way (change glyph foreground color?)
Audit how we're using screen space in the data window
Maybe make a special data structure for how the data section is used and
layed out; easier to audit, player configurable
Make swimming more interesting
Items at the bottoms of rivers, only discoverable by diving underwater
Entrances to special dungeons;
@@ -143,11 +87,6 @@ DONE Red: Ammo for a gun you have, or vice versa
Water-dwelling monsters. Probably rare, because for unskilled swimmers
almost any monsters would be deadly
Automatically drop items if our volume capacity suddenly drops (e.g. from a
torn-open backpack)
Add a warning in the data screen if volume carried is over capacity
Allow basic movement while reloading, or make it possible to resume
interrupted reloading
@@ -158,28 +97,11 @@ DONE Red: Ammo for a gun you have, or vice versa
Make computer functions use skills other than sk_computer. For
instance, the computers in hospitals should use sk_firstaid
Desires, as in The Sims 3. These could be their own class, or a special
type of mission; added more or less randomly, they include things like "eat an
orange," "read a novel" and other banal actions, and reward the player with a
larger-than-usual morale boost.
ITEMS / BIONICS:
Book: Bible; high morale boost if you have the Religious trait
Canning kit (see canning under GENERAL)
Fire extinguisher bionic
Make this, and real fire extinguishers, more effective
Road maps, found in gas stations; using it adds some map data.
MAP:
Hatch (see cultural references, above)
Terrain tiles, such as heavy doors, which require the help of an extra NPC
@@ -187,7 +109,6 @@ MAP:
CHARACTER CREATION:
Illiterate makes read speed show up as "N/A" on stats tab
Glass Jaw makes Head HP show up on stats tab, alongside Base HP
@@ -201,15 +122,6 @@ CHARACTER CREATION:
Save our position in both Traits lists, even when changing tabs
Display player::miss_penalty() in Stats tab (Under Str and/or Dex)
Modified by Dex, by Str with heavy weapons, and the Deft trait
Show penalty under various circumstances? Unarmed, crowbar, chainsaw etc
Make skill levels affect values in Stats tab?
Bottom 3 lines could be a color legend, blue=from stat, green=from skill
Make Drunken Master bonus appear in Stats tab?
Make the Description tab more interesting? Maybe hair color, etc.
Any effect on gameplay? Probably not.
Make the effect of gender on gameplay transparent
@@ -217,8 +129,6 @@ CHARACTER CREATION:
List specific effects on gameplay mechanics in the Skills tab, comparable to
those listed in the Stats tab.
TRAITS:
More Schizophrenic effects
@@ -229,28 +139,14 @@ TRAITS:
More obvious Wool Allergy text (remind the player that they're allergic)
Wool Allergy prevents eating wool (with Internal Furnace bionic)
Make Fast Learner affect skill comprehension directly
Rewrite description
Android encourages start-scumming. Maybe make it a static set, or present
the player with a few different options?
Make Android a class instead? (see above under LONG-TERM)
CRAFTING:
Expand cooking; much more morale-boosting (i.e. tasty) recipes
Fruit drying; remove quench and some nutrition, but won't go bad
KEYBINDINGS/INPUT:
Configurable bindings!
This ties into options in general.
Make ctrl+movement equivalent to 'e'+movement
"Repeat last command" command
+9
View File
@@ -0,0 +1,9 @@
Come up with a release name at the absolute last second.
Update VERSION in Makefile and version.cpp for MSVC and C::B builds.
Bring changelog up to date if necessary.
Update MOTD.
Tag release.
Commit above (to trigger jenkins builds).
Sanity test jenkins builds.
Upload builds to github release page.
Post release thread in forum.
View File
+87
View File
@@ -0,0 +1,87 @@
Info on translating Cataclysm-DDA into another language.
TRANSLATORS
===========
The current official location for translating Cataclysm-DDA is at
[Launchpad Translations](https://translations.launchpad.net/cdda).
For the moment, there are separate locations for translating
[Chinese](https://translations.launchpad.net/cataclysm)
and [Russian](https://translations.launchpad.net/cataclysm-dda).
We will be merging these once translations have stabalized.
Using Launchpad Translations anyone can help translate.
All you need to do is set up a Launchpad account,
and tell it your preferred language.
After that, your language should show up for translation,
even if you are starting a new translation from scratch.
If you have any questions or comments about translation,
feel free to post in the "Translations Team Discussion" subforum of
[the Cataclysm-DDA forums](http://smf.cataclysmdda.com/).
There are some issues specific to Cataclysm-DDA,
(and some specific to translating computer programs in general,)
which translators should be aware of,
such as the use of terms like `%s` and `%3$d` (leave them as they are),
and the use of tags like `<name>` (don't translate the tags).
Information about these,
and any other issues specific to individual languages,
can be found in Cataclysm-DDA's `lang/notes/` folder.
General notes for all translators are in
`lang/notes/README_all_translators.txt`,
and notes specific to a language may be stored as `<lang_id>.txt`,
for example `lang/notes/de.txt` for German.
Cataclysm-DDA has more than 10,000 translatable strings,
but don't be discouraged.
The more translators there are,
the easier it becomes :).
MAINTAINERS
===========
Several steps need to be done in the correct order,
to correctly merge and maintain the translation files.
There are scripts available for these,
so usually the process will be as follows:
1. Download the translations in .po format from Launchpad.
2. Put them in `lang/incoming/`,
ensuring they are named consistently with the files in `lang/po/`.
3. Run `lang/update_pot.sh` to update `lang/po/cataclysm-dda.pot`.
4. Run `lang/merge_po.sh` to update `lang/po/*.po`.
This will also merge the translations from `lang/incoming/`.
These steps should be enough to keep the translation files up-to-date.
To compile the .po files into .mo files for use,
run `lang/compile_mo.sh`.
It will create a directory in `lang/mo/` for each language found.
Also note that both `lang/merge_po.sh` and `lang/compile_mo.sh`
accept arguments specifying which languages to merge or compile.
So to compile only the translation for, say, Traditional Chinese (zh_TW),
one would run `lang/compile_mo.sh zh_TW`.
After compiling the appropriate .mo file,
if your system is using that language,
the translations will be automatically used when you run cataclysm.
If your system locale is different from the one you want to test,
the easiest way to do so is to find out your locale identifier,
compile the translation you want to test,
then rename the directory in `lang/mo/` to your locale identifier.
So for example if your local language is New Zealand English (en_NZ),
and you want to test the Russian (ru) translation,
the steps would be `lang/compile_mo.sh ru`,
`mv lang/mo/ru lang/mo/en_NZ`,
`./cataclysm`.
+267 -1
View File
@@ -1,4 +1,5 @@
#include "color.h"
#include "output.h"
#define HILIGHT COLOR_BLUE
void init_colors()
@@ -41,7 +42,54 @@ void init_colors()
init_pair(28, COLOR_MAGENTA, COLOR_RED);
init_pair(29, COLOR_YELLOW, COLOR_RED);
init_pair(30, COLOR_BLACK, COLOR_BLACK );
init_pair(30, COLOR_BLACK, COLOR_BLACK);
init_pair(31, COLOR_WHITE, COLOR_BLACK);
init_pair(32, COLOR_BLACK, COLOR_WHITE);
init_pair(33, COLOR_WHITE, COLOR_WHITE);
init_pair(34, COLOR_RED, COLOR_WHITE);
init_pair(35, COLOR_GREEN, COLOR_WHITE);
init_pair(36, COLOR_YELLOW, COLOR_WHITE);
init_pair(37, COLOR_BLUE, COLOR_WHITE);
init_pair(38, COLOR_MAGENTA, COLOR_WHITE);
init_pair(39, COLOR_CYAN, COLOR_WHITE);
init_pair(40, COLOR_BLACK, COLOR_GREEN);
init_pair(41, COLOR_WHITE, COLOR_GREEN);
init_pair(42, COLOR_RED, COLOR_GREEN);
init_pair(43, COLOR_GREEN, COLOR_GREEN);
init_pair(44, COLOR_YELLOW, COLOR_GREEN);
init_pair(45, COLOR_BLUE, COLOR_GREEN);
init_pair(46, COLOR_MAGENTA, COLOR_GREEN);
init_pair(47, COLOR_CYAN, COLOR_GREEN);
init_pair(48, COLOR_BLACK, COLOR_YELLOW);
init_pair(49, COLOR_WHITE, COLOR_YELLOW);
init_pair(50, COLOR_RED, COLOR_YELLOW);
init_pair(51, COLOR_GREEN, COLOR_YELLOW);
init_pair(52, COLOR_YELLOW, COLOR_YELLOW);
init_pair(53, COLOR_BLUE, COLOR_YELLOW);
init_pair(54, COLOR_MAGENTA, COLOR_YELLOW);
init_pair(55, COLOR_CYAN, COLOR_YELLOW);
init_pair(56, COLOR_BLACK, COLOR_MAGENTA);
init_pair(57, COLOR_WHITE, COLOR_MAGENTA);
init_pair(58, COLOR_RED, COLOR_MAGENTA);
init_pair(59, COLOR_GREEN, COLOR_MAGENTA);
init_pair(60, COLOR_YELLOW, COLOR_MAGENTA);
init_pair(61, COLOR_BLUE, COLOR_MAGENTA);
init_pair(62, COLOR_MAGENTA, COLOR_MAGENTA);
init_pair(63, COLOR_CYAN, COLOR_MAGENTA);
init_pair(64, COLOR_BLACK, COLOR_CYAN);
init_pair(65, COLOR_WHITE, COLOR_CYAN);
init_pair(66, COLOR_RED, COLOR_CYAN);
init_pair(67, COLOR_GREEN, COLOR_CYAN);
init_pair(68, COLOR_YELLOW, COLOR_CYAN);
init_pair(69, COLOR_BLUE, COLOR_CYAN);
init_pair(70, COLOR_MAGENTA, COLOR_CYAN);
init_pair(71, COLOR_CYAN, COLOR_CYAN);
}
int color_to_int(nc_color col)
@@ -110,6 +158,93 @@ int color_to_int(nc_color col)
case c_pink_red : return 61;
case c_yellow_red : return 62;
case c_unset : return 63;
case c_black_white : return 64;
case c_dkgray_white : return 65;
case c_ltgray_white : return 66;
case c_white_white : return 67;
case c_red_white : return 68;
case c_ltred_white : return 69;
case c_green_white : return 70;
case c_ltgreen_white : return 71;
case c_brown_white : return 72;
case c_yellow_white : return 73;
case c_blue_white : return 74;
case c_ltblue_white : return 75;
case c_magenta_white : return 76;
case c_pink_white : return 77;
case c_cyan_white : return 78;
case c_ltcyan_white : return 79;
case c_black_green : return 80;
case c_dkgray_green : return 81;
case c_ltgray_green : return 82;
case c_white_green : return 83;
case c_red_green : return 84;
case c_ltred_green : return 85;
case c_green_green : return 86;
case c_ltgreen_green : return 87;
case c_brown_green : return 88;
case c_yellow_green : return 89;
case c_blue_green : return 90;
case c_ltblue_green : return 91;
case c_magenta_green : return 92;
case c_pink_green : return 93;
case c_cyan_green : return 94;
case c_ltcyan_green : return 95;
case c_black_yellow : return 96;
case c_dkgray_yellow : return 97;
case c_ltgray_yellow : return 98;
case c_white_yellow : return 99;
case c_red_yellow : return 100;
case c_ltred_yellow : return 101;
case c_green_yellow : return 102;
case c_ltgreen_yellow : return 103;
case c_brown_yellow : return 104;
case c_yellow_yellow : return 105;
case c_blue_yellow : return 106;
case c_ltblue_yellow : return 107;
case c_magenta_yellow : return 108;
case c_pink_yellow : return 109;
case c_cyan_yellow : return 110;
case c_ltcyan_yellow : return 111;
case c_black_magenta : return 112;
case c_dkgray_magenta : return 113;
case c_ltgray_magenta : return 114;
case c_white_magenta : return 115;
case c_red_magenta : return 116;
case c_ltred_magenta : return 117;
case c_green_magenta : return 118;
case c_ltgreen_magenta : return 119;
case c_brown_magenta : return 120;
case c_yellow_magenta : return 121;
case c_blue_magenta : return 122;
case c_ltblue_magenta : return 123;
case c_magenta_magenta : return 124;
case c_pink_magenta : return 125;
case c_cyan_magenta : return 126;
case c_ltcyan_magenta : return 127;
case c_black_cyan : return 128;
case c_dkgray_cyan : return 129;
case c_ltgray_cyan : return 130;
case c_white_cyan : return 131;
case c_red_cyan : return 132;
case c_ltred_cyan : return 133;
case c_green_cyan : return 134;
case c_ltgreen_cyan : return 135;
case c_brown_cyan : return 136;
case c_yellow_cyan : return 137;
case c_blue_cyan : return 138;
case c_ltblue_cyan : return 139;
case c_magenta_cyan : return 140;
case c_pink_cyan : return 141;
case c_cyan_cyan : return 142;
case c_ltcyan_cyan : return 143;
}
return 0;
}
@@ -183,6 +318,137 @@ nc_color int_to_color(int key)
case 60: return c_ltcyan_red ;
case 61: return c_pink_red ;
case 62: return c_yellow_red ;
case 63: return c_unset;
case 64: return c_black_white;
case 65: return c_dkgray_white;
case 66: return c_ltgray_white;
case 67: return c_white_white;
case 68: return c_red_white;
case 69: return c_ltred_white;
case 70: return c_green_white;
case 71: return c_ltgreen_white;
case 72: return c_brown_white;
case 73: return c_yellow_white;
case 74: return c_blue_white;
case 75: return c_ltblue_white;
case 76: return c_magenta_white;
case 77: return c_pink_white;
case 78: return c_cyan_white;
case 79: return c_ltcyan_white;
case 80: return c_black_green;
case 81: return c_dkgray_green;
case 82: return c_ltgray_green;
case 83: return c_white_green;
case 84: return c_red_green;
case 85: return c_ltred_green;
case 86: return c_green_green;
case 87: return c_ltgreen_green;
case 88: return c_brown_green;
case 89: return c_yellow_green;
case 90: return c_blue_green;
case 91: return c_ltblue_green;
case 92: return c_magenta_green;
case 93: return c_pink_green;
case 94: return c_cyan_green;
case 95: return c_ltcyan_green;
case 96: return c_black_yellow;
case 97: return c_dkgray_yellow;
case 98: return c_ltgray_yellow;
case 99: return c_white_yellow;
case 100: return c_red_yellow;
case 101: return c_ltred_yellow;
case 102: return c_green_yellow;
case 103: return c_ltgreen_yellow;
case 104: return c_brown_yellow;
case 105: return c_yellow_yellow;
case 106: return c_blue_yellow;
case 107: return c_ltblue_yellow;
case 108: return c_magenta_yellow;
case 109: return c_pink_yellow;
case 110: return c_cyan_yellow;
case 111: return c_ltcyan_yellow;
case 112: return c_black_magenta;
case 113: return c_dkgray_magenta;
case 114: return c_ltgray_magenta;
case 115: return c_white_magenta;
case 116: return c_red_magenta;
case 117: return c_ltred_magenta;
case 118: return c_green_magenta;
case 119: return c_ltgreen_magenta;
case 120: return c_brown_magenta;
case 121: return c_yellow_magenta;
case 122: return c_blue_magenta;
case 123: return c_ltblue_magenta;
case 124: return c_magenta_magenta;
case 125: return c_pink_magenta;
case 126: return c_cyan_magenta;
case 127: return c_ltcyan_magenta;
case 128: return c_black_cyan;
case 129: return c_dkgray_cyan;
case 130: return c_ltgray_cyan;
case 131: return c_white_cyan;
case 132: return c_red_cyan;
case 133: return c_ltred_cyan;
case 134: return c_green_cyan;
case 135: return c_ltgreen_cyan;
case 136: return c_brown_cyan;
case 137: return c_yellow_cyan;
case 138: return c_blue_cyan;
case 139: return c_ltblue_cyan;
case 140: return c_magenta_cyan;
case 141: return c_pink_cyan;
case 142: return c_cyan_cyan;
case 143: return c_ltcyan_cyan;
}
return c_black;
}
/**
* Given the name of a color, returns the nc_color constant that matches. If
* no match is found, c_white is returned.
* @param new_color The color to get, as a std::string.
* @return The nc_color constant that matches the input.
*/
nc_color color_from_string(std::string new_color){
if("red"==new_color){
return c_red;
} else if("blue"==new_color){
return c_blue;
} else if("green"==new_color){
return c_green;
} else if("light_cyan"==new_color){
return c_ltcyan;
} else if("brown"==new_color){
return c_brown;
} else if("light_red"==new_color){
return c_ltred;
} else if("white"==new_color){
return c_white;
} else if("light_blue"==new_color){
return c_ltblue;
} else if("yellow"==new_color){
return c_yellow;
} else if("magenta"==new_color){
return c_magenta;
} else if("cyan"==new_color){
return c_cyan;
} else if("light_gray"==new_color){
return c_ltgray;
} else if("dark_gray"==new_color){
return c_dkgray;
} else if("light_green"==new_color){
return c_ltgreen;
} else if("pink"==new_color){
return c_pink;
} else {
debugmsg("Received invalid color property %s. Color is required.", new_color.c_str());
return c_white;
}
}
+86 -1
View File
@@ -5,6 +5,7 @@
#define _COLOR_LIST_
#include "cursesdef.h"
#include <string>
void init_colors();
@@ -80,12 +81,96 @@ c_ltgreen_red = COLOR_PAIR(25) | A_BOLD,
c_ltblue_red = COLOR_PAIR(26) | A_BOLD,
c_ltcyan_red = COLOR_PAIR(27) | A_BOLD,
c_pink_red = COLOR_PAIR(28) | A_BOLD,
c_yellow_red = COLOR_PAIR(29) | A_BOLD
c_yellow_red = COLOR_PAIR(29) | A_BOLD,
c_unset = COLOR_PAIR(31),
c_black_white = COLOR_PAIR(32),
c_dkgray_white = COLOR_PAIR(32) | A_BOLD,
c_ltgray_white = COLOR_PAIR(33),
c_white_white = COLOR_PAIR(33) | A_BOLD,
c_red_white = COLOR_PAIR(34),
c_ltred_white = COLOR_PAIR(34) | A_BOLD,
c_green_white = COLOR_PAIR(35),
c_ltgreen_white = COLOR_PAIR(35) | A_BOLD,
c_brown_white = COLOR_PAIR(36),
c_yellow_white = COLOR_PAIR(36) | A_BOLD,
c_blue_white = COLOR_PAIR(37),
c_ltblue_white = COLOR_PAIR(37) | A_BOLD,
c_magenta_white = COLOR_PAIR(38),
c_pink_white = COLOR_PAIR(38) | A_BOLD,
c_cyan_white = COLOR_PAIR(39),
c_ltcyan_white = COLOR_PAIR(39) | A_BOLD,
c_black_green = COLOR_PAIR(40),
c_dkgray_green = COLOR_PAIR(40) | A_BOLD,
c_ltgray_green = COLOR_PAIR(41),
c_white_green = COLOR_PAIR(41) | A_BOLD,
c_red_green = COLOR_PAIR(42),
c_ltred_green = COLOR_PAIR(42) | A_BOLD,
c_green_green = COLOR_PAIR(43),
c_ltgreen_green = COLOR_PAIR(43) | A_BOLD,
c_brown_green = COLOR_PAIR(44),
c_yellow_green = COLOR_PAIR(44) | A_BOLD,
c_blue_green = COLOR_PAIR(45),
c_ltblue_green = COLOR_PAIR(45) | A_BOLD,
c_magenta_green = COLOR_PAIR(46),
c_pink_green = COLOR_PAIR(46) | A_BOLD,
c_cyan_green = COLOR_PAIR(47),
c_ltcyan_green = COLOR_PAIR(47) | A_BOLD,
c_black_yellow = COLOR_PAIR(48),
c_dkgray_yellow = COLOR_PAIR(48) | A_BOLD,
c_ltgray_yellow = COLOR_PAIR(49),
c_white_yellow = COLOR_PAIR(49) | A_BOLD,
c_red_yellow = COLOR_PAIR(50),
c_ltred_yellow = COLOR_PAIR(50) | A_BOLD,
c_green_yellow = COLOR_PAIR(51),
c_ltgreen_yellow = COLOR_PAIR(51) | A_BOLD,
c_brown_yellow = COLOR_PAIR(52),
c_yellow_yellow = COLOR_PAIR(52) | A_BOLD,
c_blue_yellow = COLOR_PAIR(53),
c_ltblue_yellow = COLOR_PAIR(53) | A_BOLD,
c_magenta_yellow = COLOR_PAIR(54),
c_pink_yellow = COLOR_PAIR(54) | A_BOLD,
c_cyan_yellow = COLOR_PAIR(55),
c_ltcyan_yellow = COLOR_PAIR(55) | A_BOLD,
c_black_magenta = COLOR_PAIR(56),
c_dkgray_magenta = COLOR_PAIR(56) | A_BOLD,
c_ltgray_magenta = COLOR_PAIR(57),
c_white_magenta = COLOR_PAIR(57) | A_BOLD,
c_red_magenta = COLOR_PAIR(58),
c_ltred_magenta = COLOR_PAIR(58) | A_BOLD,
c_green_magenta = COLOR_PAIR(59),
c_ltgreen_magenta = COLOR_PAIR(59) | A_BOLD,
c_brown_magenta = COLOR_PAIR(60),
c_yellow_magenta = COLOR_PAIR(60) | A_BOLD,
c_blue_magenta = COLOR_PAIR(61),
c_ltblue_magenta = COLOR_PAIR(61) | A_BOLD,
c_magenta_magenta = COLOR_PAIR(62),
c_pink_magenta = COLOR_PAIR(62) | A_BOLD,
c_cyan_magenta = COLOR_PAIR(63),
c_ltcyan_magenta = COLOR_PAIR(63) | A_BOLD,
c_black_cyan = COLOR_PAIR(64),
c_dkgray_cyan = COLOR_PAIR(64) | A_BOLD,
c_ltgray_cyan = COLOR_PAIR(65),
c_white_cyan = COLOR_PAIR(65) | A_BOLD,
c_red_cyan = COLOR_PAIR(66),
c_ltred_cyan = COLOR_PAIR(66) | A_BOLD,
c_green_cyan = COLOR_PAIR(67),
c_ltgreen_cyan = COLOR_PAIR(67) | A_BOLD,
c_brown_cyan = COLOR_PAIR(68),
c_yellow_cyan = COLOR_PAIR(68) | A_BOLD,
c_blue_cyan = COLOR_PAIR(69),
c_ltblue_cyan = COLOR_PAIR(69) | A_BOLD,
c_magenta_cyan = COLOR_PAIR(70),
c_pink_cyan = COLOR_PAIR(70) | A_BOLD,
c_cyan_cyan = COLOR_PAIR(71),
c_ltcyan_cyan = COLOR_PAIR(71) | A_BOLD
};
int color_to_int(nc_color col);
nc_color int_to_color(int key);
nc_color color_from_string(std::string color);
void setattr(nc_color &col, col_attribute attr);
+1217 -914
View File
File diff suppressed because it is too large Load Diff
+86 -83
View File
@@ -12,123 +12,126 @@ class player;
enum computer_action
{
COMPACT_NULL = 0,
COMPACT_OPEN,
COMPACT_LOCK,
COMPACT_UNLOCK,
COMPACT_TOLL,
COMPACT_SAMPLE,
COMPACT_RELEASE,
COMPACT_TERMINATE,
COMPACT_PORTAL,
COMPACT_CASCADE,
COMPACT_RESEARCH,
COMPACT_MAPS,
COMPACT_MAP_SEWER,
COMPACT_MISS_LAUNCH,
COMPACT_MISS_DISARM,
COMPACT_LIST_BIONICS,
COMPACT_ELEVATOR_ON,
COMPACT_AMIGARA_LOG,
COMPACT_AMIGARA_START,
COMPACT_DOWNLOAD_SOFTWARE,
COMPACT_BLOOD_ANAL,
COMPACT_DATA_ANAL,
COMPACT_DISCONNECT,
COMPACT_STEMCELL_TREATMENT,
COMPACT_EMERG_MESS,
COMPACT_TOWER_UNRESPONSIVE,
COMPACT_SR1_MESS, //Security Reminders for Hazardous Waste Sarcophagus (SRCF)
COMPACT_SR2_MESS,
COMPACT_SR3_MESS,
COMPACT_SR4_MESS,
COMPACT_SRCF_1_MESS,
COMPACT_SRCF_2_MESS,
COMPACT_SRCF_3_MESS,
COMPACT_SRCF_SEAL_ORDER,
COMPACT_SRCF_SEAL,
COMPACT_SRCF_ELEVATOR,
NUM_COMPUTER_ACTIONS
COMPACT_NULL = 0,
COMPACT_OPEN,
COMPACT_LOCK,
COMPACT_UNLOCK,
COMPACT_TOLL,
COMPACT_SAMPLE,
COMPACT_RELEASE,
COMPACT_TERMINATE,
COMPACT_PORTAL,
COMPACT_CASCADE,
COMPACT_RESEARCH,
COMPACT_MAPS,
COMPACT_MAP_SEWER,
COMPACT_MISS_LAUNCH,
COMPACT_MISS_DISARM,
COMPACT_LIST_BIONICS,
COMPACT_ELEVATOR_ON,
COMPACT_AMIGARA_LOG,
COMPACT_AMIGARA_START,
COMPACT_DOWNLOAD_SOFTWARE,
COMPACT_BLOOD_ANAL,
COMPACT_DATA_ANAL,
COMPACT_DISCONNECT,
COMPACT_STEMCELL_TREATMENT,
COMPACT_EMERG_MESS,
COMPACT_TOWER_UNRESPONSIVE,
COMPACT_SR1_MESS, //Security Reminders for Hazardous Waste Sarcophagus (SRCF)
COMPACT_SR2_MESS,
COMPACT_SR3_MESS,
COMPACT_SR4_MESS,
COMPACT_SRCF_1_MESS,
COMPACT_SRCF_2_MESS,
COMPACT_SRCF_3_MESS,
COMPACT_SRCF_SEAL_ORDER,
COMPACT_SRCF_SEAL,
COMPACT_SRCF_ELEVATOR,
NUM_COMPUTER_ACTIONS
};
enum computer_failure
{
COMPFAIL_NULL = 0,
COMPFAIL_SHUTDOWN,
COMPFAIL_ALARM,
COMPFAIL_MANHACKS,
COMPFAIL_SECUBOTS,
COMPFAIL_DAMAGE,
COMPFAIL_PUMP_EXPLODE,
COMPFAIL_PUMP_LEAK,
COMPFAIL_AMIGARA,
COMPFAIL_DESTROY_BLOOD,
COMPFAIL_DESTROY_DATA,
NUM_COMPUTER_FAILURES
COMPFAIL_NULL = 0,
COMPFAIL_SHUTDOWN,
COMPFAIL_ALARM,
COMPFAIL_MANHACKS,
COMPFAIL_SECUBOTS,
COMPFAIL_DAMAGE,
COMPFAIL_PUMP_EXPLODE,
COMPFAIL_PUMP_LEAK,
COMPFAIL_AMIGARA,
COMPFAIL_DESTROY_BLOOD,
COMPFAIL_DESTROY_DATA,
NUM_COMPUTER_FAILURES
};
struct computer_option
{
std::string name;
computer_action action;
int security;
std::string name;
computer_action action;
int security;
computer_option() { name = "Unknown", action = COMPACT_NULL, security = 0; };
computer_option(std::string N, computer_action A, int S) :
name (N), action (A), security (S) {};
computer_option()
{
name = "Unknown", action = COMPACT_NULL, security = 0;
};
computer_option(std::string N, computer_action A, int S) :
name (N), action (A), security (S) {};
};
class computer
{
public:
computer();
computer(std::string Name, int Security);
~computer();
computer();
computer(std::string Name, int Security);
~computer();
computer & operator=(const computer &rhs);
computer & operator=(const computer &rhs);
// Initialization
void set_security(int Security);
void add_option(std::string opt_name, computer_action action, int Security);
void add_failure(computer_failure failure);
void set_security(int Security);
void add_option(std::string opt_name, computer_action action, int Security);
void add_failure(computer_failure failure);
// Basic usage
void shutdown_terminal(); // Shutdown (free w_terminal, etc)
void use(game *g);
bool hack_attempt(game *g, player *p, int Security = -1);// -1 defaults to main security
void shutdown_terminal(); // Shutdown (free w_terminal, etc)
void use(game *g);
bool hack_attempt(game *g, player *p, int Security = -1);// -1 defaults to main security
// Save/load
std::string save_data();
void load_data(std::string data);
std::string save_data();
void load_data(std::string data);
std::string name; // "Jon's Computer", "Lab 6E77-B Terminal Omega"
int mission_id; // Linked to a mission?
std::string name; // "Jon's Computer", "Lab 6E77-B Terminal Omega"
int mission_id; // Linked to a mission?
private:
int security; // Difficulty of simply logging in
std::vector<computer_option> options; // Things we can do
std::vector<computer_failure> failures; // Things that happen if we fail a hack
WINDOW *w_terminal; // Output window
int security; // Difficulty of simply logging in
std::vector<computer_option> options; // Things we can do
std::vector<computer_failure> failures; // Things that happen if we fail a hack
WINDOW *w_terminal; // Output window
// Called by use()
void activate_function (game *g, computer_action action);
void activate_function (game *g, computer_action action);
// Generally called when we fail a hack attempt
void activate_random_failure(game *g);
void activate_random_failure(game *g);
// ...but we can also choose a specific failure.
void activate_failure (game *g, computer_failure fail);
void activate_failure (game *g, computer_failure fail);
// OUTPUT/INPUT
// Reset to a blank terminal (e.g. at start of usage loop)
void reset_terminal();
void reset_terminal();
// Prints a line to the terminal (with printf flags)
void print_line(const char *text, ...);
void print_line(const char *text, ...);
// For now, the same as print_line but in red (TODO: change this?)
void print_error(const char *text, ...);
void print_error(const char *text, ...);
// Prints code-looking gibberish
void print_gibberish_line();
void print_gibberish_line();
// Prints a line and waits for Y/N/Q
char query_ynq(const char *text, ...);
char query_ynq(const char *text, ...);
// Same as query_ynq, but returns true for y or Y
bool query_bool(const char *text, ...);
bool query_bool(const char *text, ...);
// Simply wait for any key, returns True
bool query_any(const char *text, ...);
bool query_any(const char *text, ...);
};
#endif
+1218 -1212
View File
File diff suppressed because it is too large Load Diff
+4 -2
View File
@@ -25,14 +25,16 @@ struct constructable
int id;
std::string name; // Name as displayed
int difficulty; // Carpentry skill level required
bool loopstages;
std::vector<construction_stage> stages;
bool (construct::*able) (game *, point);
void (construct::*done) (game *, point);
constructable(int Id, std::string Name, int Diff,
bool (construct::*Able) (game *, point),
void (construct::*Done) (game *, point)) :
id (Id), name (Name), difficulty (Diff), able (Able), done (Done) {};
void (construct::*Done) (game *, point),
bool LoopStages = false) :
id (Id), name (Name), difficulty (Diff), loopstages (LoopStages), able (Able), done (Done) {};
};
struct construct // Construction functions.
+1683 -1638
View File
File diff suppressed because it is too large Load Diff
+31 -10
View File
@@ -27,8 +27,8 @@ struct recipe {
int id;
itype_id result;
craft_cat cat;
Skill *sk_primary;
Skill *sk_secondary;
Skill *skill_used;
std::map<Skill*,int> required_skills;
int difficulty;
int time;
bool reversible; // can the item be disassembled?
@@ -38,25 +38,46 @@ struct recipe {
std::vector<std::vector<component> > tools;
std::vector<std::vector<component> > components;
//Create a string list to describe the skill requirements fir this recipe
// Format: skill_name(amount), skill_name(amount)
std::string required_skills_string(){
std::ostringstream skills_as_stream;
if(required_skills.size()){
for(std::map<Skill*,int>::iterator iter=required_skills.begin(); iter!=required_skills.end();){
skills_as_stream << iter->first->name() << "(" << iter->second << ")";
++iter;
if(iter != required_skills.end()){
skills_as_stream << ", ";
}
}
}
else{
skills_as_stream << "N/A";
}
return skills_as_stream.str();
}
recipe() {
id = 0;
result = "null";
sk_primary = NULL;
sk_secondary = NULL;
skill_used = NULL;
difficulty = 0;
time = 0;
reversible = false;
autolearn = false;
}
recipe(std::string pident, int pid, itype_id pres, craft_cat pcat, std::string &p1,
std::string &p2, int pdiff, int ptime, bool preversible, bool pautolearn,
recipe(std::string pident, int pid, itype_id pres, craft_cat pcat, std::string &to_use,
std::map<std::string,int> &to_require, int pdiff, int ptime, bool preversible, bool pautolearn,
int plearn_dis) :
ident (pident), id (pid), result (pres), cat(pcat), difficulty (pdiff), time (ptime),
reversible (preversible), autolearn (pautolearn), learn_by_disassembly (plearn_dis)
{
sk_primary = p1.size()?Skill::skill(p1):NULL;
sk_secondary = p2.size()?Skill::skill(p2):NULL;
reversible (preversible), autolearn (pautolearn), learn_by_disassembly (plearn_dis) {
skill_used = to_use.size()?Skill::skill(to_use):NULL;
if(to_require.size()){
for(std::map<std::string,int>::iterator iter=to_require.begin(); iter!=to_require.end(); ++iter){
required_skills[Skill::skill(iter->first)] = iter->second;
}
}
}
};
+1 -1
View File
@@ -1,7 +1,7 @@
#ifndef _CURSES_DEF_H_
#define _CURSES_DEF_H_
#if (defined TILES || defined _WIN32 || defined WINDOWS)
#if (defined TILES || defined SDLTILES || defined _WIN32 || defined WINDOWS)
#include "catacurse.h"
#elif (defined __CYGWIN__)
#include "ncurses/curses.h"
+103 -14
View File
@@ -1,4 +1,4 @@
#if (defined TILES || defined _WIN32 || defined WINDOWS)
#if ((defined TILES ^ defined SDLTILES) || defined _WIN32 || defined WINDOWS)
#include "catacurse.h"
#include "output.h"
#include "color.h"
@@ -117,26 +117,59 @@ ncurses does not do this, and this prevents: wattron(win, c_customBordercolor);
int i, j;
int oldx=win->cursorx;//methods below move the cursor, save the value!
int oldy=win->cursory;//methods below move the cursor, save the value!
if (ls>0)
if (ls) {
for (j=1; j<win->height-1; j++)
mvwaddch(win, j, 0, ls);
} else {
for (j=1; j<win->height-1; j++)
mvwaddch(win, j, 0, LINE_XOXO);
if (rs>0)
}
if (rs) {
for (j=1; j<win->height-1; j++)
mvwaddch(win, j, win->width-1, rs);
} else {
for (j=1; j<win->height-1; j++)
mvwaddch(win, j, win->width-1, LINE_XOXO);
if (ts>0)
}
if (ts) {
for (i=1; i<win->width-1; i++)
mvwaddch(win, 0, i, ts);
} else {
for (i=1; i<win->width-1; i++)
mvwaddch(win, 0, i, LINE_OXOX);
if (bs>0)
}
if (bs) {
for (i=1; i<win->width-1; i++)
mvwaddch(win, win->height-1, i, bs);
} else {
for (i=1; i<win->width-1; i++)
mvwaddch(win, win->height-1, i, LINE_OXOX);
if (tl>0)
mvwaddch(win,0, 0, LINE_OXXO);
if (tr>0)
mvwaddch(win,0, win->width-1, LINE_OOXX);
if (bl>0)
mvwaddch(win,win->height-1, 0, LINE_XXOO);
if (br>0)
mvwaddch(win,win->height-1, win->width-1, LINE_XOOX);
}
if (tl)
mvwaddch(win, 0, 0, tl);
else
mvwaddch(win, 0, 0, LINE_OXXO);
if (tr)
mvwaddch(win, 0, win->width-1, tr);
else
mvwaddch(win, 0, win->width-1, LINE_OOXX);
if (bl)
mvwaddch(win, win->height-1, 0, bl);
else
mvwaddch(win, win->height-1, 0, LINE_XXOO);
if (br)
mvwaddch(win, win->height-1, win->width-1, br);
else
mvwaddch(win, win->height-1, win->width-1, LINE_XOOX);
//_windows[w].cursorx=oldx;//methods above move the cursor, put it back
//_windows[w].cursory=oldy;//methods above move the cursor, put it back
wmove(win,oldy,oldx);
@@ -144,6 +177,62 @@ ncurses does not do this, and this prevents: wattron(win, c_customBordercolor);
return 1;
}
int hline(chtype ch, int n)
{
return whline(mainwin, ch, n);
}
int vline(chtype ch, int n)
{
return wvline(mainwin, ch, n);
}
int whline(WINDOW *win, chtype ch, int n)
{
return mvwvline(mainwin, win->cursory, win->cursorx, ch, n);
}
int wvline(WINDOW *win, chtype ch, int n)
{
return mvwvline(mainwin, win->cursory, win->cursorx, ch, n);
}
int mvhline(int y, int x, chtype ch, int n)
{
return mvwhline(mainwin, y, x, ch, n);
}
int mvvline(int y, int x, chtype ch, int n)
{
return mvwvline(mainwin, y, x, ch, n);
}
int mvwhline(WINDOW *win, int y, int x, chtype ch, int n)
{
if (ch){
for (int i=0; i<n; i++)
mvwaddch(win, y, x + i, ch);
} else {
for (int i=0; i<n; i++)
mvwaddch(win, y, x + i, LINE_OXOX);
}
return 0;
}
int mvwvline(WINDOW *win, int y, int x, chtype ch, int n)
{
if (ch){
for (int j=0; j<n; j++)
mvwaddch(win, y + j, x, ch);
} else {
for (int j=0; j<n; j++)
mvwaddch(win, y + j, x, LINE_XOXO);
}
return 0;
}
//Refreshes a window, causing it to redraw on top.
int wrefresh(WINDOW *win)
{
@@ -230,7 +319,7 @@ inline int printstring(WINDOW *win, char *fmt)
{
int j, i, p=win->cursorx;
int x = (win->line[win->cursory].width_in_bytes==win->width)?win->cursorx:cursorx_to_position(win->line[win->cursory].chars, win->cursorx, &p);
if(p!=x)//so we start inside a wide character, erase it for good
{
const char* ts = win->line[win->cursory].chars+p;
+4 -2
View File
@@ -1,3 +1,5 @@
# These are both generated if missing at program startup
# These are all generated if missing at program startup
keymap.txt
options.txt
options.txt
auto_pickup.txt
fontlist.txt
+148 -76
View File
@@ -1,7 +1,6 @@
%
Our chemical department has made great strides in the production of a
concentrated mutagen, derived from samples of mutated individuals. This
substance has been denoted PE012.
concentrated mutagen, derived from samples of PE012.
%
Our chemical department has perfected an untargeted stem cell treatment.
Consumption of the treatment will reverse the effects of mutation, and may
@@ -11,9 +10,9 @@ Both PE012 and PE018 show great stability. A subject was exposed to both
substances, alternating between the mutagen and the purifier. Ultimately, the
subject returned to baseline state with no apparent side effects.
%
We have made a fascinating discovery; by creating a miniature portal with low
stability and high power, one can transpose into the 4th dimension and return
immediately, but shifted by several meters. Our subjects oscillated so
We have made a fascinating discovery; by creating a miniature portal with
low stability and high power, one can transpose into the 4th dimension and
return immediately, but shifted by several meters. Our subjects oscillated so
quickly that none were even aware that they had visited lower planes.
%
Our research on teleportation has ground to a halt. For some reason, the
@@ -26,36 +25,37 @@ Security was called in immediately but was unable to save the janitor from
being torn apart. By the time the confusion settled, all the fauna had been
terminated.
%
Tests on the prehistoric fauna show extremely close genetic relationships with
extant and extinct terranian animals. It might be that the portal had performed
a transposition in time, unfortunately the portal device was destroyed when
security put down the fauna.
Tests on the prehistoric fauna show extremely close genetic relationships
with extant and extinct terranian animals. It might be that the portal had
performed a transposition in time, unfortunately the portal device was
destroyed when security put down the fauna.
%
An incident occurred in the teleportation lab, wherein a subject managed to
teleport into another subject. The latter was completely destroyed from the
inside out, while the former sustained little damage. I would like to explore
the phenomenon further, but subjects are expensive.
%
Test subjects in the teleportation department are showing alarming symptoms.
It seems prolonged rapid transposition along the 4th dimension weakens the
forces holding one on this plane.
Test subjects in the teleportation department are showing alarming
symptoms. It seems prolonged rapid transposition along the 4th dimension
weakens the forces holding one on this plane.
%
Catastrophe struck in our teleportation department yesterday. It seems that
our test subjects are so detached from this plane that they create occasional
tunnels along the 4th dimension, allowing life forms to transfer to this
plane. All subjects with prolonged exposure have been terminated.
Catastrophe struck in our teleportation department yesterday. It seems
that our test subjects are so detached from this plane that they create
occasional tunnels along the 4th dimension, allowing life forms to transfer to
this plane. All subjects with prolonged exposure have been terminated.
%
Our lifeform extraction program continues to produce samples of specimen
XE037. It seems to be a kind of living, semi-sentient primordial ooze, and is
the basis of much of the life we have found.
%
Specimen XE037, jokingly referred to as "the blob", has been observed entering
a kind of dormant state, forming a depression in the floor. Hendelson stepped
into one of these pits yesterday, and was immediately coated and attacked.
Specimen XE037, jokingly referred to as "the blob", has been observed
entering a kind of dormant state, forming a depression in the floor. Hendelson
stepped into one of these pits yesterday, and was immediately coated and
attacked.
%
XE037 shows promise as a catalyst for both cloning and treatments that mimic
stem cells. This is further evidence supporting Hendelson's theory of a near
universal symbiotic relationship involving XE037.
XE037 shows promise as a catalyst for both cloning and treatments that
mimic stem cells. This is further evidence supporting Hendelson's theory of a
near universal symbiotic relationship involving XE037.
%
Several of the more advanced specimens we have retrieved show stunning
similarity to XE037. XE142 and XE157 in particular show the same amorphous,
@@ -65,90 +65,162 @@ Today we tested weaponry against XE142 and XE157, two amorphous subprime
samples. Their form proved to be nearly invulnerable to projectile based
weaponry, but they were susceptible to directed energy weapons and flagration.
%
Our cloning department has failed to produce results. In vats containing stem
cell treatments, XE037, and control vats, the subjects simple disintegrated.
This suggests that XE037, while compatible with subprime lifeforms, shows only
destructive effects on prime plane lifeforms.
Our cloning department has failed to produce results. In vats containing
stem cell treatments, XE037, and control vats, the subjects simple
disintegrated. This suggests that XE037, while compatible with subprime
lifeforms, shows only destructive effects on prime plane lifeforms.
%
The vivisection program has shown mixed results, revealing an incredible
degree of variation in subplane lifeforms. Certain specimens have an internal
structure that is amazingly similar to that of mammals, while others seem to
have no internal structure at all.
%
Our security department has identified several key flaws. Though our surface
entrance is quite secure, there are several possible points of entry below
the surface, particularly in the sewage systems.
Our security department has identified several key flaws. Though our
surface entrance is quite secure, there are several possible points of entry
below the surface, particularly in the sewage systems.
%
Today we applied a very small sample of XE037, suspended in water, to subject
TP92, prior to necessary termination. During the postmortem examination, the
subject went through a revivification progress, but displayed next to no human
intelligence.
Today we applied a very small sample of XE037, suspended in water, to
subject TP92, prior to necessary termination. During the postmortem
examination, the subject went through a revivification progress, but displayed
next to no human intelligence.
%
Mendelson shows a dismaying lack of organization and security consciousness.
Containment of all samples of XE037 is of critical importance, as shown by
contamination experiments.
Mendelson shows a dismaying lack of organization and security
consciousness. Containment of all samples of XE037 is of critical importance,
as shown by contamination experiments.
%
Mendelson has been terminated following an incident with XE037. A substantial
mobile sample departed his lab and encountered our security forces. Before
the sample was destroyed, it managed to kill two men. Alarmingly, their
corpses displayed mobility and extreme aggression.
Mendelson has been terminated following an incident with XE037. A
substantial mobile sample departed his lab and encountered our security
forces. Before the sample was destroyed, it managed to kill two men.
Alarmingly, their corpses displayed mobility and extreme aggression.
%
We have created a new department to investigate the effects of XE037 on the
human body, specifically to examine the revivification effect observed on two
prior occasions. Sadly, our human subject pool is dwindling due to the short
lifespan of subjects in this program. More will be acquired soon.
%
Testing XE037 on non-human mammal subjects does not appear to display the same
revivifying effect, oddly enough. Acquiring non-human subjects, sadly, is a
long and costly process, and research into this area is lacking.
Testing XE037 on non-human mammal subjects does not appear to display the
same revivifying effect, oddly enough. Acquiring non-human subjects, sadly,
is a long and costly process, and research into this area is lacking.
%
After our curious results with testing XE037 on non-human mammals, we decided
to introduce the substance to some of the insects which have found their way
into the lab. Horrifyingly, XE037 caused near-instant mutation and gigantism
in the insects, and security intervention was required.
After our curious results with testing XE037 on non-human mammals, we
decided to introduce the substance to some of the insects which have found
their way into the lab. Horrifyingly, XE037 caused near-instant mutation
and gigantism in the insects, and security intervention was required.
%
Program S37ZBE, investigation of XE037 on inert human bodies, is making great
strides. Recently we found that XE037 has no effect when introduced to a
Earlier conjecture that revivification occurred only in humans and insects
was premature. Exposure introduces a persistent, low level infection in all
mammal subjects, but quickly enters a form of stasis and seems to go dormant.
%
The primary factor in determining revivification of mammalian subjects
seems to be the amount of XE037 within the body at time of expiration. Smaller
mammals such as lab rats do not obtain this critical mass of XE037 before
going dormant. Larger canine subjects, however, do.
%
I swear they are talking to me. No one believes me. No one understands. They
whisper to me, at night, in the dark. Please, please, make them stop.
%
Program S37ZBE, investigation of XE037 on inert human bodies, is making
great strides. Recently we found that XE037 has no effect when introduced to a
deceased body; revivification only occurs when the subject is exposed to XE037
prior to expiration.
%
Attempts to surpass the XE037 mammalian stasis limit have had some success.
Direct subcutaneous injection of XE037 quickly spreads through the body, and
while it immediately enters stasis after equalizing, it remains in the body.
%
There has been an incident in Lab 24, 2 casualties reported, one lethal.
A rat involved in the stasis breaking project was hooked to a monitoring
machine and left over night. Upon opening the cage, Simon Bellevue was
electrocuted, and another researcher at the opposite end of the lab sustained
severe current burns, despite never approaching the cage.
%
A post mortem on the rat involved in the electrocution incident has
revealed several changes to it's internal anatomy centered around it's
connection with the monitoring device, and large buildups of XE037 were
detected around the connection point.
%
There is a belief several other rat subjects experienced changes overnight
as well. This hypothesis was informed when an inventory check after the
incident found almost twenty rats had gone missing from their cages overnight.
%
Exposure of large quantities of XE037 to various types of radiation have
shown promising results, stimulating activity and forming interesting
structural changes in the subject being tested. Exposure to radiation on
living subjects schedules.
%
Exposure to radiation of test subject T3D indicates stimulation of internal
XE037 deposits and a temporary lifting of the mammalian stasis condition.
%
As in the tests of isolated XE037 samples, prolonged radiation exposure of
T3D has resulted in significant structural changes. These do not appear to be
random. T3D appears to be in immense pain as a result of these changes, but
the lack of an oral opening has rendered him unable to vocalize.
%
Subject T3D has succumbed to radiation poisoning, but not before undergoing
several more physiological changes the lab boys are referring to as
"mutations". They do not appear to be truly random, and may be an attempt
by XE037 to adapt its host to an unknown stimulus.
%
Post-mortem revivification of subject T3D occurred as expected, followed by
an immediate autopsy. The internal changes were significant, with large
parts of the subjects internal anatomy replaced with "organs" of XE037 with
unknown properties, primarily those known to succumb earlier to the effects
of radiation poisoning.
%
Samples of XE037 from subject T3D remains extremely active. Further
experimentation on induced mutation in infected individuals shows
significant potential. Samples of the enhanced XE037, labeled PE012, have
been sent to several researchers for further study.
%
S37ZBE, the special investigation into the effects of XE037 on inert human
bodies, has made terrific discoveries. It seems that it occasionally displays
a mutagenic property which manifests itself after termination of the subject,
resulting in a striking variety in postmortem morphology.
bodies, has made terrific discoveries. It seems that it occasionally
displays a mutagenic property which manifests itself after termination of
the subject, resulting in a striking variety in postmortem morphology.
%
Incidence of post-mortem mutation seems to depend on several factors -
leading candidates include type and amount of damaged sustained leading
to expiration, embedded foreign bodies at time of revivification,
proximity to other revived individuals, and the body mass of the subject.
%
Time also appears to play a large role in post-mortem revivification, as
does sustained trauma insufficient to permanently disable the subject.
Sufficient amounts of trauma in short periods of time lead to deactivation
of XE037, but smaller amounts over several days cause it to expand.
%
S37ZBE may be put on indefinite hold shortly. Postmortem morphological
changes have reached extreme levels; this morning one subject nearly doubled
in size, acquiring enough strength to reduce a concrete wall to rubble. It
required a 6 man team, heavily armed, to re-terminate the subject.
changes have reached extreme levels; this morning one subject nearly
doubled in size, acquiring enough strength to reduce a concrete wall to
rubble. It required a 6 man team, heavily armed, to re-terminate the
subject.
%
Jakobson insists that S37ZBE must continue, despite the extreme security and
safety risks. Nearly half of our security forces have been redirected to the
S37ZBE project, simply to deal with the occasional escape of a subject.
Jakobson insists that S37ZBE must continue, despite the extreme security
and safety risks. Nearly half of our security forces have been redirected
to the S37ZBE project, simply to deal with the occasional escape of a subject.
%
Jakobson was killed today by one of S37ZBE's subjects; ironic considering how
hard he fought to keep the project active. Alarmingly, his corpse revivified
immediately. This suggests that XE037 may have contaminated the lab at large.
Jakobson was killed today by one of S37ZBE's subjects; ironic considering
how hard he fought to keep the project active. Alarmingly, his corpse
revivified immediately. This suggests that XE037 may have contaminated the
lab at large.
%
Termination of a subject which was never a part of S37ZBE has confirmed my
fears. XE037 has contaminated most, if not all of the laboratory, most
likely via the water supply. Research has started immediately into a process
to destroy XE037 within the human body.
%
Despite a wide variety of treatments, we have been completely unsuccessful in
removing XE037 from human subjects. Every individual displayed revivification
post termination. Interestingly, XE037 seems to be completely inert prior to
termination.
Despite a wide variety of treatments, we have been completely unsuccessful
in removing XE037 from human subjects. Every individual displayed
revivification post termination. Interestingly, XE037 seems to be completely
inert prior to termination.
%
We have finally found success in S37BEP, our emergency investigation into the
destruction of XE037 in living subjects. 8 of 10 of the subjects showed no
We have finally found success in S37BEP, our emergency investigation into
the destruction of XE037 in living subjects. 8 of 10 of the subjects showed no
revivification, despite confirmed dosages of XE037.
%
PE062, our "cure" for XE037 contamination, has neared perfection. Sadly, the
production of PE062 is a costly and time-consuming process. What is more, the
substance shows no effect on postmortem subjects whatsoever; a substance which
renders XE037 inert after it has activated would be immensely useful in the
case of an outbreak.
PE062, our "cure" for XE037 contamination, has neared perfection. Sadly,
the production of PE062 is a costly and time-consuming process. What is more,
the substance shows no effect on postmortem subjects whatsoever; a substance
which renders XE037 inert after it has activated would be immensely useful in
the case of an outbreak.
%
An alarming discovery has been made. A colony of XE037 has formed nearly a
half mile from the laboratory. It is unclear how it escaped; it is quite
@@ -163,10 +235,10 @@ have since deceased have revivified. It is my fear that extremely large
populations will be decimated by this pandemic. We must find a way to remove
XE037 from revivified bodies.
%
We have even more distressing news than the widespread XE037 contamination,
there are reports of the XE037 mutating into various new variants. See
data files on XE037a - XE037f. Research on the effects of these variants
is ongoing. We do know that XE037d shows signs of PE062 immunity, and
We have even more distressing news than the widespread XE037
contamination, there are reports of the XE037 mutating into various new
variants. See data files on XE037a - XE037f. Research on the effects of these
variants is ongoing. We do know that XE037d shows signs of PE062 immunity, and
XE037b can revive various breeds of canines. However, revival is not
as guaranteed as standard XE037 humanoid infection. Canine body size seems
to influence the chances. See experiment tXE037b_c.
+112
View File
@@ -1,3 +1,115 @@
0.8
Highlights:
---
Releasing with Russian, Chinese, and bla translations.
Draggable vhicles, e.g. shopping carts.
Memorial file listing player history.
Tiles!
Basic farming support.
Support for save backwards compatability.
Option to adjust city size, make a whole map metropolis!
Option to adjust monster density, walls of zombies!
Features:
---
Intelligence dependent skill rust option.
Uncanny Dodge CBM
Weight management rework, weight now in grams.
If the player is overloaded, the strain causes pain.
Display option for metric vs imperial vehicle speed.
Beanbag rounds for shotguns and grenade launchers.
Added headlights that can be aimed at installation time.
Active bionics.
Throw single items from stacks instead of whole stack.
Updated many menus to updated menu system that provides acrolling, filtering and more unified hotkeys.
Crafting overhaul, crafting no longer trains combat skills and vice versa.
Reworked rain protection, items now have waterproof flags.
Crafting recipes you can actually perform bubble to the top of the list.
New laser weapons.
Pneumatic weapons.
Narrow sidebar option.
Support unicode character names.
Aim-related gunmods.
Automatically adjust aim path if the default path is blocked by something.
Play Now game start for one-click game initiation.
Rework encumbrance to remove nonsensical negative encumbrance.
Loosen strictness of encumbrance in general.
Heated melee weapons.
Plastic item crafting.
Option overhaul with new tabbed menu.
Swimming now makes you wet.
Wetness can be a good thing when it's hot and you're properly attired.
Wetness effects asjusted by some mutations.
Portable Game system now usable, has playable games snake, sokoban, and robotfindskitten.
Vehicle components, vehicles, mutations and traits are moddable in json.
fruit bushes spawn in groups.
Significant rebalance of fire, emits less smoke, and small fires should burn longer.
Basic farming support.
Welding rig vehicle component.
When in a square with clothes and bedding, sleeping players will use them for warmth.
Corpse-filled pits cause less or no damage.
Adrenaline shot item.
Nerfed Adrenaline rush effect, no more bullettime.
Small vehicles are draggable and pushable. Added shopping carts.
Funnel now directs rain into container in the same square during rain.
Mutation dreams.
Siphon water out of vehicles with water tanks.
Ice labs.
Vehicle collisions based on SCIENCE!
Streamlined selecting same ammo over and over again.
Blacksmithing.
Pickling and other food preservation techniques.
Re-enabled mouth encumbrance.
Caseless ammunition and guns.
New heavy weapons.
More features spawning in houses.
Significantly reduced map save size.
Lots of professions.
Many many items and crafting recipes.
Energy weapon special effects.
Scrollbars in many list menus.
Vehicles can spawn smashed into each other.
Bugfixes:
---
Mouse cursor hiding.
Terminal text display fixes.
Very significant performance improvements.
Removed input delay.
Allow exiting from long-term activities like wait.
All titlebars should use the correct version number.
Remove busywaitin WinGDI build. (caused 100% CPU usage)
No more "nothing" map tiles.
Hand out letters to bionics so more than a few are usable.
Monsters no longer attack themselves.
Fatal hunger/thirst/fatigue detected correctly.
Major monster handling performance improvements to make 50x zombies work.
Nerfed smoke inhalation.
Major performance increase in mapgen to make huge cities generate before the heat death of the universe.
Rain and acid rain doesn't bother you when underwater.
Batched raycasting optimization.
Fixed old inventory letter overlapping bug.
Use shadowcasting algorithm for fast and accurate fov calculation.
Vehicles no longer spawn floating above water.
Loaded ammo, such as nails in a nailgun can be used for crafting.
Light from items more consistent.
======
0.7.1 (bugfix point release)
Vehicle bed sleepiness fix.
Made coughing from smoke wake you up.
Update version for MSVC project builds.
Remove coverage property from wristwatch to prevent ensumberance.
Supress pickup from vehicle when doing autopickup.
Fix typo in spawn list.
Don't draw item glyphs on top of furniture glyphs.
Strip out references to a removed ammunition in spawn lists.
Change in how Vehicle Examination window is displayed so it works in 12x12 View Screens
Fix for weapon mods with no ammo types.
0.7
Highlights:
+9 -9
View File
@@ -2,15 +2,15 @@
# Max length of a line is 68 characters; the following line is for reference
####################################################################
Original author: Project Manager: Website/Forum:
Whales (retired) TheDarklingWolf GlyphGryph
Whales (retired) Kevingranade GlyphGryph
Main Developers/Github Managers:
Kevingranade, Ozone, TheDarklingWolf, zpmorgan
Current Main Developers/Github Managers:
Kevingranade, GalenEvil, i2amroy, AtomicDryad, Ozone
Active Contributors:
BurnZeZ, Oddzball, Shades, Shoes01, Tase, GalenEvil
Special thanks to:
TheDarklingWolf - For creating Cataclysm:DDA as we know it
Narc - For setting up the automatic Jenkins build-bot
yobbobanana - For working as liason between translators and github
Contributors:
AkrionXxarr, Benjamg, Creidieki, Daftfad, Elricsfate, Gim,
GlyphGryph, Gremour, HerbertJones, hovatterz, Origamiwolf,
Soron, Uzername, Voker57, Wito, i2amroy
For a full list of contributors please see:
https://github.com/CleverRaven/Cataclysm-DDA/contributors
+17
View File
@@ -0,0 +1,17 @@
#Until multiple tilesets are implemented, there should only ever be these two entries
#in this file.
#Paths to Deon's tileset: gfx/DeonTileset/tile_config.json & /deontiles.png
#Paths to Hoder's tileset: gfx/HoderTileset/tile_config.json & /hodertiles.png
#DEON's TILESET
#JSON Path - Default of gfx/tile_config.json
JSON: gfx/DeonTileset/tile_config.json
#Tileset Path - Default of gfx/tinytile.png
TILESET: gfx/DeonTileset/deontiles.png
#HODER'S TILESET -- Commented out
#JSON Path - Default of gfx/tile_config.json
#JSON: gfx/HoderTileset/tile_config.json
#Tileset Path - Default of gfx/tinytile.png
#TILESET: gfx/HoderTileset/hodertiles.png
+9 -8
View File
@@ -1,18 +1,19 @@
# This message may be 16 lines long at maximum.
# Max length of a line is 68 characters; the following line is for reference
####################################################################
New features v0.7 Lindqvist:
* Preliminary i18n support.
* More advanced bionics.
* Autopickup
Major features v0.8 Romero:
* Tiles!
* Optional huge cities packed with zombies!
* Player memorial file.
* Save compatability moving forward.
* Russian and Chinese translations.
* Farming.
* Shopping carts.
For latest discussions and news on Cataclysm DDA, please visit:
Homepage: http://www.cataclysmdda.com/
Forum: http://smf.cataclysmdda.com/
Wiki: http://wiki.cataclysmdda.com/
New configurable options:
Autosave frequency, Trigonometric (circular) distance,
Trait points cap, radiation lethality.
Source: https://github.com/CleverRaven/Cataclysm-DDA
Ingame you can access the options via the help menu (?2).
+114 -69
View File
@@ -6,13 +6,27 @@
"time" : 0,
"description": "If you're seeing this, it's a bug. (game::init_bionics)"
},
{
"id" : "bio_power_storage",
"name" : "Power Storage",
"cost" : 0,
"time" : 0,
"description": "Compact Bionics Module that upgrades your power capacity by 4 units. Having at least one of these is a prerequisite to using powered bionics. You will also need a power supply, found in another CBM."
},
{
"id" : "bio_power_storage_mkII",
"name" : "Power Storage Mk. II",
"cost" : 0,
"time" : 0,
"description": "Compact Bionics Module developed at DoubleTech Industries as a replacement for the highly successful CBM: Power Storage. Increases you power capacity by 10 units."
},
{
"id" : "bio_batteries",
"name" : "Battery System",
"cost" : 0,
"time" : 0,
"flags" : ["POWER"],
"description": "You have a battery draining attachment, and thus can make use of the energy\ncontained in normal, everyday batteries. Use 'E' to consume batteries."
"description": "You have a battery draining attachment, and thus can make use of the energy contained in normal, everyday batteries. Use 'E' to consume batteries."
},
{
"id" : "bio_metabolics",
@@ -20,7 +34,7 @@
"cost" : 0,
"time" : 100,
"flags" : ["POWER", "ACTIVE"],
"description": "Your digestive system and power supply are interconnected. Any drain on\nenergy instead increases your hunger."
"description": "Your digestive system and power supply are interconnected. Any drain on energy instead increases your hunger."
},
{
"id" : "bio_solar",
@@ -28,7 +42,7 @@
"cost" : 0,
"time" : 0,
"flags" : ["POWER"],
"description": "You have a few solar panels installed. While in direct sunlight, your power\nlevel will slowly recharge."
"description": "You have a few solar panels installed. While in direct sunlight, your power level will slowly recharge."
},
{
"id" : "bio_torsionratchet",
@@ -36,7 +50,7 @@
"cost" : 0,
"time" : 0,
"flags" : ["POWER"],
"description": "Your joints have been equipped with torsion ratchets that generate power slowly\nwhen you move."
"description": "Your joints have been equipped with torsion ratchets that generate power slowly when you move."
},
{
"id" : "bio_furnace",
@@ -44,7 +58,7 @@
"cost" : 0,
"time" : 0,
"flags" : ["POWER"],
"description": "You can burn nearly any organic material as fuel (use 'E'), recharging your\npower level. Some materials will burn better than others."
"description": "You can burn nearly any organic material as fuel (use 'E'), recharging your power level. Some materials will burn better than others."
},
{
"id" : "bio_ethanol",
@@ -52,21 +66,21 @@
"cost" : 0,
"time" : 0,
"flags" : ["POWER"],
"description": "You burn alcohol as fuel in an extremely efficient reaction. However, you\nwill still suffer the inebriating effects of the substance."
"description": "You burn alcohol as fuel in an extremely efficient reaction. However, you will still suffer the inebriating effects of the substance."
},
{
"id" : "bio_memory",
"name" : "Enhanced Memory Banks",
"cost" : 1,
"time" : 0,
"description": "Your memory has been enhanced with small quantum storage drives. Any time\nyou start to forget a skill, you have a chance at retaining all knowledge, at\nthe cost of a small amount of poweron."
"description": "Your memory has been enhanced with small quantum storage drives. Any time you start to forget a skill, you have a chance at retaining all knowledge, at the cost of a small amount of poweron."
},
{
"id" : "bio_ears",
"name" : "Enhanced Hearing",
"cost" : 0,
"time" : 0,
"description": "Your hearing has been drastically improved, allowing you to hear ten times\nbetter than the average person. Additionally, high-intensity sounds will be\nautomatically dampened before they can damage your hearing."
"description": "Your hearing has been drastically improved, allowing you to hear ten times better than the average person. Additionally, high-intensity sounds will be automatically dampened before they can damage your hearing."
},
{
"id" : "bio_eye_enhancer",
@@ -75,33 +89,54 @@
"time" : 0,
"description": "Your vision is greatly enhanced, giving you a +2 bonus to perception."
},
{
"id" : "bio_dex_enhancer",
"name" : "Wired Reflexes",
"cost" : 0,
"time" : 0,
"description": "Your reaction time has been greatly enhanced with bionic nerve stimulators, giving you a +2 bonus to dexterity."
},
{
"id" : "bio_str_enhancer",
"name" : "Muscle Augmentation",
"cost" : 0,
"time" : 0,
"description": "Your muscular system has been enhanced with myomer fibers, giving you a +2 bonus to strength."
},
{
"id" : "bio_int_enhancer",
"name" : "Cerebral Booster",
"cost" : 0,
"time" : 0,
"description": "Your brain has been enhanced with bionic coprocessors, giving you a +2 bonus to intelligence."
},
{
"id" : "bio_membrane",
"name" : "Nictating Membrane",
"cost" : 0,
"time" : 0,
"description": "Your eyes have a thin membrane that closes over your eyes while underwater,\nnegating any vision penalties."
"description": "Your eyes have a thin membrane that closes over your eyes while underwater, negating any vision penalties."
},
{
"id" : "bio_targeting",
"name" : "Targeting System",
"cost" : 0,
"time" : 0,
"description": "Your eyes are equipped with range finders, and their movement is synced with\nthat of your arms, to a degree. Shots you fire will be much more accurate,\nparticularly at long range."
"description": "Your eyes are equipped with range finders, and their movement is synced with that of your arms, to a degree. Shots you fire will be much more accurate, particularly at long range."
},
{
"id" : "bio_gills",
"name" : "Membrane Oxygenator",
"cost" : 1,
"time" : 0,
"description": "An oxygen interchange system automatically switches on while underwater,\nslowly draining your energy reserves but providing oxygen."
"description": "An oxygen interchange system automatically switches on while underwater, slowly draining your energy reserves but providing oxygen."
},
{
"id" : "bio_purifier",
"name" : "Air Filtration System",
"cost" : 1,
"time" : 0,
"description": "Implanted in your trachea is an advanced filtration system. If toxins find\ntheir way into your windpipe, the filter will attempt to remove them."
"description": "Implanted in your trachea is an advanced filtration system. If toxins find their way into your windpipe, the filter will attempt to remove them."
},
{
"id" : "bio_climate",
@@ -109,84 +144,86 @@
"cost" : 1,
"time" : 30,
"flags" : ["ACTIVE"],
"description": "Throughout your body lies a network of thermal piping which eases the effects\nof high and low ambient temperatures."
"description": "Throughout your body lies a network of thermal piping which eases the effects of high and low ambient temperatures."
},
{
"id" : "bio_storage",
"name" : "Internal Storage",
"cost" : 0,
"time" : 0,
"description": "Space inside your chest cavity has been converted into a storage area. You\nmay carry an extra 8 units of volume."
"description": "Space inside your chest cavity has been converted into a storage area. You may carry an extra 8 units of volume."
},
{
"id" : "bio_recycler",
"name" : "Recycler Unit",
"cost" : 0,
"time" : 0,
"description": "Your digestive system has been outfitted with a series of filters and\nprocessors, allowing you to reclaim waste liquid and, to a lesser degree,\nnutrients. The net effect is a greatly reduced need to eat and drink."
"description": "Your digestive system has been outfitted with a series of filters and processors, allowing you to reclaim waste liquid and, to a lesser degree, nutrients. The net effect is a greatly reduced need to eat and drink."
},
{
"id" : "bio_digestion",
"name" : "Expanded Digestive System",
"cost" : 0,
"time" : 0,
"description": "You have been outfitted with three synthetic stomachs and industrial-grade\nintestines. Not only can you extract much more nutrition from food, but you\nare highly resistant to foodborne illness, and can sometimes eat rotten food."
"description": "You have been outfitted with three synthetic stomachs and industrial-grade intestines. Not only can you extract much more nutrition from food, but you are highly resistant to foodborne illness, and can sometimes eat rotten food."
},
{
"id" : "bio_tools",
"name" : "Integrated Toolset",
"cost" : 0,
"time" : 0,
"description": "Implanted in your hands and fingers is a complete tool set - screwdriver,\nhammer, wrench, and heating elements. You can use this in place of many\ntools when crafting."
"description": "Implanted in your hands and fingers is a complete tool set - screwdriver, hammer, wrench, and heating elements. You can use this in place of many tools when crafting."
},
{
"id" : "bio_shock",
"name" : "Electroshock Unit",
"cost" : 1,
"time" : 0,
"description": "While fighting unarmed, or with a weapon that conducts electricity, there is\na chance that a successful hit will shock your opponent, inflicting extra\ndamage and disabling them temporarily at the cost of some energy."
"cost" : 0,
"time" : 1,
"flags" : ["ACTIVE"],
"description": "While fighting unarmed, or with a weapon that conducts electricity, there is a chance that a successful hit will shock your opponent, inflicting extra damage and disabling them temporarily at the cost of some energy."
},
{
"id" : "bio_heat_absorb",
"name" : "Heat Drain",
"cost" : 1,
"time" : 0,
"description": "While fighting unarmed against a warm-blooded opponent, there is a chance\nthat a successful hit will drain body heat, inflicting a small amount of\nextra damage, and increasing your power reserves slightly."
"cost" : 0,
"time" : 1,
"flags" : ["ACTIVE"],
"description": "While fighting unarmed against a warm-blooded opponent, there is a chance that a successful hit will drain body heat, inflicting a small amount of extra damage, and increasing your power reserves slightly."
},
{
"id" : "bio_carbon",
"name" : "Subdermal Carbon Filament",
"cost" : 0,
"time" : 0,
"description": "Lying just beneath your skin is a thin armor made of carbon nanotubes. This\nreduces bashing damage by 2 and cutting damage by 4."
"description": "Lying just beneath your skin is a thin armor made of carbon nanotubes. This reduces bashing damage by 2 and cutting damage by 4."
},
{
"id" : "bio_armor_head",
"name" : "Alloy Plating - Head",
"cost" : 0,
"time" : 0,
"description": "The flesh on your head has been replaced by a strong armor, protecting both\nyour head and jaw regions."
"description": "The flesh on your head has been replaced by a strong armor, protecting both your head and jaw regions."
},
{
"id" : "bio_armor_torso",
"name" : "Alloy Plating - Torso",
"cost" : 0,
"time" : 0,
"description": "The flesh on your torso has been replaced by a strong armor, protecting you\ngreatly."
"description": "The flesh on your torso has been replaced by a strong armor, protecting you greatly."
},
{
"id" : "bio_armor_arms",
"name" : "Alloy Plating - Arms",
"cost" : 0,
"time" : 0,
"description": "The flesh on your arms has been replaced by a strong armor, protecting you\ngreatly."
"description": "The flesh on your arms has been replaced by a strong armor, protecting you greatly."
},
{
"id" : "bio_armor_legs",
"name" : "Alloy Plating - Legs",
"cost" : 0,
"time" : 0,
"description": "The flesh on your legs has been replaced by a strong armor, protecting you\ngreatly."
"description": "The flesh on your legs has been replaced by a strong armor, protecting you greatly."
},
{
"id" : "bio_flashlight",
@@ -202,7 +239,7 @@
"cost" : 1,
"time" : 20,
"flags" : ["ACTIVE"],
"description": "Your eyes have been modified to amplify existing light, allowing you to see\nin the dark."
"description": "Your eyes have been modified to amplify existing light, allowing you to see in the dark."
},
{
"id" : "bio_infrared",
@@ -210,7 +247,7 @@
"cost" : 1,
"time" : 4,
"flags" : ["ACTIVE"],
"description": "Your range of vision extends into the infrared, allowing you to see warm-\nblooded creatures in the dark, and even through walls."
"description": "Your range of vision extends into the infrared, allowing you to see warm-blooded creatures in the dark, and even through walls."
},
{
"id" : "bio_face_mask",
@@ -218,7 +255,7 @@
"cost" : 1,
"time" : 10,
"flags" : ["ACTIVE"],
"description": "Your face is actually made of a compound which may be molded by electrical\nimpulses, making you impossible to recognize. While not powered, however,\nthe compound reverts to its default shape."
"description": "Your face is actually made of a compound which may be molded by electrical impulses, making you impossible to recognize. While not powered, however, the compound reverts to its default shape."
},
{
"id" : "bio_ads",
@@ -226,7 +263,7 @@
"cost" : 1,
"time" : 7,
"flags" : ["ACTIVE"],
"description": "A thin forcefield surrounds your body, continually draining power. Anything\nattempting to penetrate this field has a chance of being deflected at the\ncost of more energy. Melee attacks will be stopped more often than bullets."
"description": "A thin forcefield surrounds your body, continually draining power. Anything attempting to penetrate this field has a chance of being deflected at the cost of more energy. Melee attacks will be stopped more often than bullets."
},
{
"id" : "bio_ods",
@@ -234,7 +271,7 @@
"cost" : 1,
"time" : 6,
"flags" : ["ACTIVE"],
"description": "A thin forcefield surrounds your body, continually draining power. This\nfield does not deflect penetration, but rather delivers a very strong shock,\ndamaging unarmed attackers and those with a conductive weapon."
"description": "A thin forcefield surrounds your body, continually draining power. This field does not deflect penetration, but rather delivers a very strong shock, damaging unarmed attackers and those with a conductive weapon."
},
{
"id" : "bio_scent_mask",
@@ -242,7 +279,7 @@
"cost" : 1,
"time" : 8,
"flags" : ["ACTIVE"],
"description": "While this system is powered, your body will produce very little odor, making\nit nearly impossible for creatures to track you by scent."
"description": "While this system is powered, your body will produce very little odor, making it nearly impossible for creatures to track you by scent."
},
{
"id" : "bio_scent_vision",
@@ -250,7 +287,7 @@
"cost" : 1,
"time" : 30,
"flags" : ["ACTIVE"],
"description": "While this system is powered, you're able to visually sense your own scent,\nmaking it possible for you to recognize your surroundings even if you can't\nsee it."
"description": "While this system is powered, you're able to visually sense your own scent, making it possible for you to recognize your surroundings even if you can't see it."
},
{
"id" : "bio_cloak",
@@ -258,7 +295,7 @@
"cost" : 2,
"time" : 1,
"flags" : ["ACTIVE"],
"description": "This high-power system uses a set of cameras and LEDs to make you blend into\nyour background, rendering you fully invisible to normal vision. However,\nyou may be detected by infrared, sonar, etc."
"description": "This high-power system uses a set of cameras and LEDs to make you blend into your background, rendering you fully invisible to normal vision. However, you may be detected by infrared, sonar, etc."
},
{
"id" : "bio_painkiller",
@@ -266,7 +303,7 @@
"cost" : 2,
"time" : 0,
"flags" : ["ACTIVE"],
"description": "Your nervous system is wired to allow you to inhibit the signals of pain,\nallowing you to dull your senses at will. However, the use of this system\nmay cause delayed reaction time and drowsiness."
"description": "Your nervous system is wired to allow you to inhibit the signals of pain, allowing you to dull your senses at will. However, the use of this system may cause delayed reaction time and drowsiness."
},
{
"id" : "bio_nanobots",
@@ -274,7 +311,7 @@
"cost" : 5,
"time" : 0,
"flags" : ["ACTIVE"],
"description": "Inside your body is a fleet of tiny dormant robots. Once charged from your\nenergy banks, they will flit about your body, repairing any damage."
"description": "Inside your body is a fleet of tiny dormant robots. Once charged from your energy banks, they will flit about your body, repairing any damage."
},
{
"id" : "bio_heatsink",
@@ -282,7 +319,7 @@
"cost" : 1,
"time" : 6,
"flags" : ["ACTIVE"],
"description": "Powerful heatsinks supermaterials are woven into your flesh. While powered,\nthis system will prevent heat damage up to 2000 degrees fahrenheit. Note\nthat this does not affect your internal temperature."
"description": "Powerful heatsinks supermaterials are woven into your flesh. While powered, this system will prevent heat damage up to 2000 degrees fahrenheit. Note that this does not affect your internal temperature."
},
{
"id" : "bio_resonator",
@@ -290,7 +327,7 @@
"cost" : 4,
"time" : 0,
"flags" : ["ACTIVE"],
"description": "Your entire body may resonate at very high power, creating a short-range\nshockwave. While it will not to much damage to flexible creatures, stiff\nitems such as walls, doors, and even robots will be severely damaged."
"description": "Your entire body may resonate at very high power, creating a short-range shockwave. While it will not too much damage to flexible creatures, stiff items such as walls, doors, and even robots will be severely damaged."
},
{
"id" : "bio_time_freeze",
@@ -298,7 +335,7 @@
"cost" : 3,
"time" : 0,
"flags" : ["ACTIVE"],
"description": "At an immense cost of power, you may increase your body speed and reactions\ndramatically, essentially freezing time. You are still delicate, however,\nand violent or rapid movements may damage you due to friction."
"description": "At an immense cost of power, you may increase your body speed and reactions dramatically, essentially freezing time. You are still delicate, however, and violent or rapid movements may damage you due to friction."
},
{
"id" : "bio_teleport",
@@ -306,7 +343,7 @@
"cost" : 10,
"time" : 0,
"flags" : ["ACTIVE"],
"description": "This highly experimental unit folds space over short distances, instantly\ntransporting your body up to 25 feet at the cost of much power. Note that\nprolonged or frequent use may have dangerous side effects."
"description": "This highly experimental unit folds space over short distances, instantly transporting your body up to 25 feet at the cost of much power. Note that prolonged or frequent use may have dangerous side effects."
},
{
"id" : "bio_blood_anal",
@@ -314,7 +351,7 @@
"cost" : 1,
"time" : 0,
"flags" : ["ACTIVE"],
"description": "Small sensors have been implanted in your heart, allowing you to analyse your\nblood. This will detect many illnesses, drugs, and other conditions."
"description": "Small sensors have been implanted in your heart, allowing you to analyse your blood. This will detect many illnesses, drugs, and other conditions."
},
{
"id" : "bio_blood_filter",
@@ -322,7 +359,7 @@
"cost" : 3,
"time" : 0,
"flags" : ["ACTIVE"],
"description": "A filtration system in your heart allows you to actively filter out chemical\nimpurities, primarily drugs. It will have limited impact on viruses. Note\nthat it is not a targeted filter; ALL drugs in your system will be affected."
"description": "A filtration system in your heart allows you to actively filter out chemical impurities, primarily drugs. It will have limited impact on viruses. Note that it is not a targeted filter; ALL drugs in your system will be affected."
},
{
"id" : "bio_alarm",
@@ -330,7 +367,7 @@
"cost" : 1,
"time" : 400,
"flags" : ["ACTIVE"],
"description": "A motion-detecting alarm system will notice almost all movement within a\nfifteen-foot radius, and will silently alert you. This is very useful during\nsleep, or if you suspect a cloaked pursuer."
"description": "A motion-detecting alarm system will notice almost all movement within a fifteen-foot radius, and will silently alert you. This is very useful during sleep, or if you suspect a cloaked pursuer."
},
{
"id" : "bio_evap",
@@ -338,7 +375,7 @@
"cost" : 8,
"time" : 0,
"flags" : ["ACTIVE"],
"description": "This unit draws moisture from the surrounding air, which then is poured from\na fingertip in the form of water. It may fail in very dry environments."
"description": "This unit draws moisture from the surrounding air, which then is poured from a fingertip in the form of water. It may fail in very dry environments."
},
{
"id" : "bio_lighter",
@@ -346,7 +383,7 @@
"cost" : 3,
"time" : 0,
"flags" : ["ACTIVE"],
"description": "The index fingers of both hands have powerful fire starters which extend from\nthe tip."
"description": "The index fingers of both hands have powerful fire starters which extend from the tip."
},
{
"id" : "bio_claws",
@@ -354,7 +391,7 @@
"cost" : 3,
"time" : 0,
"flags" : ["ACTIVE"],
"description": "Your fingers can withdraw into your hands, allowing a set of vicious claws to\nextend. These do considerable cutting damage, but prevent you from holding\nanything else."
"description": "Your fingers can withdraw into your hands, allowing a set of vicious claws to extend. These do considerable cutting damage, but prevent you from holding anything else."
},
{
"id" : "bio_blaster",
@@ -362,7 +399,7 @@
"cost" : 2,
"time" : 0,
"flags" : ["ACTIVE"],
"description": "Your left arm has been replaced by a heavy-duty fusion blaster! You may use\nyour energy banks to fire a damaging heat ray; however, you are unable to use\nor carry two-handed items, and may only fire handguns."
"description": "Your left arm has been replaced by a heavy-duty fusion blaster! You may use your energy banks to fire a damaging heat ray; however, you are unable to use or carry two-handed items, and may only fire handguns."
},
{
"id" : "bio_laser",
@@ -370,7 +407,7 @@
"cost" : 2,
"time" : 0,
"flags" : ["ACTIVE"],
"description": "One of your fingers has a small high-powered laser embedded in it. This long\nrange weapon is not incredibly damaging, but is very accurate, and has the\npotential to start fires."
"description": "One of your fingers has a small high-powered laser embedded in it. This long range weapon is not incredibly damaging, but is very accurate, and has the potential to start fires."
},
{
"id" : "bio_emp",
@@ -378,7 +415,7 @@
"cost" : 4,
"time" : 0,
"flags" : ["ACTIVE"],
"description": "Mounted in the palms of your hand are small parabolic EMP field generators.\nYou may use power to fire a short-ranged blast which will disable electronics\nand robots."
"description": "Mounted in the palms of your hand are small parabolic EMP field generators. You may use power to fire a short-ranged blast which will disable electronics and robots."
},
{
"id" : "bio_hydraulics",
@@ -386,7 +423,7 @@
"cost" : 1,
"time" : 3,
"flags" : ["ACTIVE"],
"description": "While activated, the muscles in your arms will be greatly enchanced,\nincreasing your strength by 20."
"description": "While activated, the muscles in your arms will be greatly enhanced, increasing your strength by 20."
},
{
"id" : "bio_water_extractor",
@@ -394,7 +431,7 @@
"cost" : 2,
"time" : 0,
"flags" : ["ACTIVE"],
"description": "Nanotubes embedded in the palm of your hand will pump any available fluid out\nof a dead body, cleanse it of impurities and convert it into drinkable water.\nYou must, however, have a container to store the water in."
"description": "Nanotubes embedded in the palm of your hand will pump any available fluid out of a dead body, cleanse it of impurities and convert it into drinkable water. You must, however, have a container to store the water in."
},
{
"id" : "bio_magnet",
@@ -402,7 +439,7 @@
"cost" : 2,
"time" : 0,
"flags" : ["ACTIVE"],
"description": "Embedded in your hand is a powerful electromagnet, allowing you to pull items\nmade of iron over short distances."
"description": "Embedded in your hand is a powerful electromagnet, allowing you to pull items made of iron over short distances."
},
{
"id" : "bio_fingerhack",
@@ -410,7 +447,7 @@
"cost" : 1,
"time" : 0,
"flags" : ["ACTIVE"],
"description": "One of your fingers has an electrohack embedded in it; an all-purpose hacking\nunit used to override control panels and the like (but not computers). Skill\nin computers is important, and a failed use may damage your circuits."
"description": "One of your fingers has an electrohack embedded in it; an all-purpose hacking unit used to override control panels and the like (but not computers). Skill in computers is important, and a failed use may damage your circuits."
},
{
"id" : "bio_lockpick",
@@ -418,7 +455,7 @@
"cost" : 1,
"time" : 0,
"flags" : ["ACTIVE"],
"description": "One of your fingers has an electronic lockpick embedded in it. This auto-\nmatic system will quickly unlock all but the most advanced key locks without\nany skill required on the part of the user."
"description": "One of your fingers has an electronic lockpick embedded in it. This automatic system will quickly unlock all but the most advanced key locks without any skill required on the part of the user."
},
{
"id" : "bio_ground_sonar",
@@ -426,7 +463,7 @@
"cost" : 1,
"time" : 5,
"flags" : ["ACTIVE"],
"description": "Your feet are equipped with precision sonar equipment, allowing you to detect\nthe movements of creatures below the ground."
"description": "Your feet are equipped with precision sonar equipment, allowing you to detect the movements of creatures below the ground."
},
{
"id" : "bio_power_armor_interface",
@@ -442,7 +479,7 @@
"cost" : 1,
"time" : 50,
"flags" : ["ACTIVE"],
"description": "Interfaces your power system with the internal charging port on suits of power armor.\nThe Mk. II was designed by DoubleTech Inc., to meet the popularity of the Mk. II\npower armor series."
"description": "Interfaces your power system with the internal charging port on suits of power armor. The Mk. II was designed by DoubleTech Inc., to meet the popularity of the Mk. II power armor series."
},
{
"id" : "bio_flashbang",
@@ -450,7 +487,7 @@
"cost" : 5,
"time" : 0,
"flags" : ["ACTIVE"],
"description": "Light emitting diodes integrated into your skin can release a flash comparable\nto a flashbang grenade, blinding nearby enemies. Speakers integrated into your\nbody mimic the loud sound, deafening those nearby."
"description": "Light emitting diodes integrated into your skin can release a flash comparable to a flashbang grenade, blinding nearby enemies. Speakers integrated into your body mimic the loud sound, deafening those nearby."
},
{
"id" : "bio_railgun",
@@ -458,7 +495,7 @@
"cost" : 1,
"time" : 100,
"flags" : ["ACTIVE"],
"description": "EM field generators in your arms double the range and damage of thrown\niron and steel objects at a cost of 1 power per throw, causing them to\nleave a trail of electricity that can cause additional damage."
"description": "EM field generators in your arms double the range and damage of thrown iron and steel objects at a cost of 1 power per throw, causing them to leave a trail of electricity that can cause additional damage."
},
{
"id" : "bio_probability_travel",
@@ -466,7 +503,7 @@
"cost" : 1,
"time" : 100,
"flags" : ["ACTIVE"],
"description": "Increases your body's wavelength, allowing you to quantum tunnel through\nwalls, reappearing on the other side. Power drain in standby is minimal,\nbut each tile tunneled through costs 10 bionic power."
"description": "Increases your body's wavelength, allowing you to quantum tunnel through walls, reappearing on the other side. Power drain in standby is minimal, but each tile tunneled through costs 10 bionic power."
},
{
"id" : "bio_shockwave",
@@ -474,7 +511,7 @@
"cost" : 10,
"time" : 0,
"flags" : ["ACTIVE"],
"description": "You generate a powerful shockwave, knocking back all nearby creatures.\nTargets are stunned briefly, take damage and additional stun upon impact\nwith impassable terrain, and knockback any creatures they collide with."
"description": "You generate a powerful shockwave, knocking back all nearby creatures. Targets are stunned briefly, take damage and additional stun upon impact with impassable terrain, and knockback any creatures they collide with."
},
{
"id" : "bio_chain_lightning",
@@ -482,7 +519,7 @@
"cost" : 5,
"time" : 0,
"flags" : ["ACTIVE"],
"description": "Your body is equipped with a chain lightning generator, allowing you to\n emit a blast of lightning at a target, leaving a trail of lightning in\n its wake, jumping to additional targets within 4 tiles of the previous target."
"description": "Your body is equipped with a chain lightning generator, allowing you to emit a blast of lightning at a target, leaving a trail of lightning in its wake, jumping to additional targets within 4 tiles of the previous target."
},
{
"id" : "bio_night",
@@ -492,13 +529,21 @@
"flags" : ["ACTIVE"],
"description": "Destructive interference eliminates all light within a 15 tile radius."
},
{
"id" : "bio_uncanny_dodge",
"name" : "Uncanny Dodge",
"cost" : 1,
"time" : 10,
"flags" : ["ACTIVE"],
"description": "Your nervous system has been augmented with bionic processors, allowing you to dodge attacks beyond normal human capability, including bullets."
},
{
"id" : "bio_dis_shock",
"name" : "Electrical Discharge",
"cost" : 0,
"time" : 0,
"flags" : ["FAULTY"],
"description": "A malfunctioning bionic which occasionally discharges electricity through\nyour body, causing pain and brief paralysis but no damage."
"description": "A malfunctioning bionic which occasionally discharges electricity through your body, causing pain and brief paralysis but no damage."
},
{
"id" : "bio_dis_acid",
@@ -506,7 +551,7 @@
"cost" : 0,
"time" : 0,
"flags" : ["FAULTY"],
"description": "A malfunctioning bionic which occasionally discharges acid into your muscles,\ncausing sharp pain and minor damage."
"description": "A malfunctioning bionic which occasionally discharges acid into your muscles, causing sharp pain and minor damage."
},
{
"id" : "bio_drain",
@@ -514,7 +559,7 @@
"cost" : 0,
"time" : 0,
"flags" : ["FAULTY"],
"description": "A malfunctioning bionic. It doesn't perform any useful function, but will\noccasionally draw power from your batteries."
"description": "A malfunctioning bionic. It doesn't perform any useful function, but will occasionally draw power from your batteries."
},
{
"id" : "bio_noise",
@@ -530,7 +575,7 @@
"cost" : 0,
"time" : 0,
"flags" : ["FAULTY"],
"description": "Damaged power circuits cause short-circuiting inside your muscles when your\nbatteries are above 75%%%% capacity, causing greatly reduced strength. This\nhas no effect if you have no internal batteries."
"description": "Damaged power circuits cause short-circuiting inside your muscles when your batteries are above 75%%%% capacity, causing greatly reduced strength. This has no effect if you have no internal batteries."
},
{
"id" : "bio_stiff",
@@ -538,6 +583,6 @@
"cost" : 0,
"time" : 0,
"flags" : ["FAULTY"],
"description": "Improperly installed wires cause a physical stiffness in most of your body,\ncausing increased encumberance."
"description": "Improperly installed wires cause a physical stiffness in most of your body, causing increased encumbrance."
}
]
]
+325
View File
@@ -0,0 +1,325 @@
[
{
"message" : [
"You have a strange dream about lizards.",
"Your dreams give you a strange scaly feeling."
],
"category" : "MUTCAT_LIZARD",
"strength" : 1
},
{
"message" : [
"You have a strange dream about birds.",
"Your dreams give you a strange feathered feeling."
],
"category" : "MUTCAT_BIRD",
"strength" : 1
},
{
"message" : [
"You have a strange dream about fish.",
"Your dreams give you a strange wet, scaly feeling."
],
"category" : "MUTCAT_FISH",
"strength" : 1
},
{
"message" : [
"You have a strange dream about animals.",
"Your dreams give you a strange furry feeling."
],
"category" : "MUTCAT_BEAST",
"strength" : 1
},
{
"message" : [
"You have a strange dream about cattle.",
"Your dreams give you a strange content, furry feeling."
],
"category" : "MUTCAT_CATTLE",
"strength" : 1
},
{
"message" : [
"You have a strange dream about insects.",
"Your dreams give you a strange chitinous feeling."
],
"category" : "MUTCAT_INSECT",
"strength" : 1
},
{
"message" : [
"You have a strange dream about plants.",
"Your dreams give you a strange plantlike feeling."
],
"category" : "MUTCAT_PLANT",
"strength" : 1
},
{
"message" : [
"You have a strange dream about slime.",
"Your dreams give you a strange slimy feeling."
],
"category" : "MUTCAT_SLIME",
"strength" : 1
},
{
"message" : [
"You have a strange dream about living in a cave.",
"Your dreams give a strange reclusive feeling."
],
"category" : "MUTCAT_TROGLO",
"strength" : 1
},
{
"message" : [
"You have a strange dream about sea creatures.",
"Your dreams give you a strange wet feeling."
],
"category" : "MUTCAT_CEPHALOPOD",
"strength" : 1
},
{
"message" : [
"You have a strange dream about spiders.",
"Your dreams give you a strange webbed feeling."
],
"category" : "MUTCAT_SPIDER",
"strength" : 1
},
{
"message" : [
"You have a strange dream about rats.",
"Your dreams give you a strange fuzzy feeling."
],
"category" : "MUTCAT_RAT",
"strength" : 1
},
{
"message" : [
"You have a disturbing dream of bathing in the sun on a rock.",
"While dreaming, you see a distinctively lizard-like reflection of yourself."
],
"category" : "MUTCAT_LIZARD",
"strength" : 2
},
{
"message" : [
"You have strange dreams of soaring through the sky.",
"In a dream, you see a curiously birdlike reflection of yourself."
],
"category" : "MUTCAT_BIRD",
"strength" : 2
},
{
"message" : [
"You dream of swimming in the open ocean",
"In your dream, you see a strangely fishlike image of yourself."
],
"category" : "MUTCAT_FISH",
"strength" : 2
},
{
"message" : [
"You have a vivid dream of hunting in the woods.",
"Whilst dreaming, you see a disturbingly bestial version of yourself."
],
"category" : "MUTCAT_BEAST",
"strength" : 2
},
{
"message" : [
"You dream of grazing in an open field.",
"In a dream you catch a glimpse of a strangely cattle-like image of yourself."
],
"category" : "MUTCAT_CATTLE",
"strength" : 2
},
{
"message" : [
"You have a dream of working in a hive.",
"While dreaming you look into a mirror and see a frighteningly insectoid reflection."
],
"category" : "MUTCAT_INSECT",
"strength" : 2
},
{
"message" : [
"You have a confusing dream of growing in a garden.",
"You are confused by a plantlike image of yourself in a dream."
],
"category" : "MUTCAT_PLANT",
"strength" : 2
},
{
"message" : [
"You have a strange dream of living in sludge.",
"In your dream you see an odd, slimy reflection of yourself."
],
"category" : "MUTCAT_SLIME",
"strength" : 2
},
{
"message" : [
"You dream of living deep inside a dark cave.",
"You dream of being a primitive cave dweller."
],
"category" : "MUTCAT_TROGLO",
"strength" : 2
},
{
"message" : [
"You dream of living on the ocean floor.",
"While dreaming, a reflection of yourself appears almost like an octopus."
],
"category" : "MUTCAT_CEPHALOPOD",
"strength" : 2
},
{
"message" : [
"You have a strange dream of spinning webs",
"In your dream you see a very spiderlike version of yourself."
],
"category" : "MUTCAT_SPIDER",
"strength" : 2
},
{
"message" : [
"You vividly dream of living in the sewers.",
"In your dream you see a group of rats that look almost like yourself."
],
"category" : "MUTCAT_RAT",
"strength" : 2
},
{
"message" : [
"You are terrified by a dream of becoming a lizard hybrid.",
"You have a disturbingly lifelike dream of living as a lizard."
],
"category" : "MUTCAT_LIZARD",
"strength" : 3
},
{
"message" : [
"You have a realistic dream of flying south with your flock for the winter.",
"You are disturbed when your birdlike dreams are more lifelike than reality."
],
"category" : "MUTCAT_BIRD",
"strength" : 3
},
{
"message" : [
"You have a disturbing dream of swimming with a school of fish.",
"When you wake up you panic about drowning from being out of water."
],
"category" : "MUTCAT_FISH",
"strength" : 3
},
{
"message" : [
"You vividly dream of running with your pack, hunting a wild animal.",
"A terrifyingly real dream has you killing game with your bare teeth."
],
"category" : "MUTCAT_BEAST",
"strength" : 3
},
{
"message" : [
"You terrifyingly dream of being led to a slaughterhouse by a farmer.",
"You find it hard to wake from a vivid dream of grazing on a farm."
],
"category" : "MUTCAT_CATTLE",
"strength" : 3
},
{
"message" : [
"You are terrified by a dream of serving the hive queen mindlessly.",
"Your disturbingly lifelike dream has you pollinating plants."
],
"category" : "MUTCAT_INSECT",
"strength" : 3
},
{
"message" : [
"You have a confusing and scary dream of becoming a plant.",
"The transition from your lifelike dreams of living as a plant to reality shocks you."
],
"category" : "MUTCAT_PLANT",
"strength" : 3
},
{
"message" : [
"Your vivid dream of living as a slime blob frightens you.",
"You find it hard to control your limbs after dreaming of amorphous blob life."
],
"category" : "MUTCAT_SLIME",
"strength" : 3
},
{
"message" : [
"Your dream of living in the dark for years is almost real.",
"You are frightened of the outside after your vivid dream of cave life."
],
"category" : "MUTCAT_TROGLO",
"strength" : 3
},
{
"message" : [
"Your dreams of living on the ocean floor seem more lifelike than reality.",
"You dream of living as a terrifying octopus mutant."
],
"category" : "MUTCAT_CEPHALOPOD",
"strength" : 3
},
{
"message" : [
"You vividly dream of living in a web and consuming insects.",
"Your dreams of fully turning into a spider frighten you."
],
"category" : "MUTCAT_SPIDER",
"strength" : 3
},
{
"message" : [
"You scream in fear while you dream of being chased by a cat",
"Your lifelike dreams have you scavenging food with a pack of rats."
],
"category" : "MUTCAT_RAT",
"strength" : 3
}
]
+732 -129
View File
File diff suppressed because it is too large Load Diff
+468 -250
View File
File diff suppressed because it is too large Load Diff
+106 -74
View File
@@ -2,7 +2,6 @@
{
"type" : "AMMO",
"id" : "arrowhead",
"rarity" : 0,
"price" : 30,
"name" : "arrowhead",
"symbol" : "=",
@@ -10,11 +9,11 @@
"description" : "Heads for an arrow. Placing these on an arrow will make the arrow more damaging and piercing.",
"material" : "steel",
"volume" : 1,
"weight" : 1,
"weight" : 8,
"bashing" : 1,
"cutting" : 0,
"to_hit" : 0,
"ammo_type" : "NULL",
"ammo_type" : "components",
"damage" : 0,
"pierce" : 0,
"range" : 0,
@@ -25,7 +24,6 @@
{
"type" : "AMMO",
"id" : "fletching",
"rarity" : 0,
"price" : 30,
"name" : "fletching",
"symbol" : "=",
@@ -37,7 +35,7 @@
"bashing" : 1,
"cutting" : 0,
"to_hit" : 0,
"ammo_type" : "NULL",
"ammo_type" : "components",
"damage" : 0,
"pierce" : 0,
"range" : 0,
@@ -48,7 +46,6 @@
{
"type" : "AMMO",
"id" : "shaft_wood",
"rarity" : 0,
"price" : 20,
"name" : "wood arrow shaft",
"symbol" : "=",
@@ -56,7 +53,7 @@
"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,
"weight" : 42,
"bashing" : 1,
"cutting" : 0,
"to_hit" : 0,
@@ -71,7 +68,6 @@
{
"type" : "AMMO",
"id" : "shaft_wood_heavy",
"rarity" : 0,
"price" : 20,
"name" : "heavy wood arrow shaft",
"symbol" : "=",
@@ -79,7 +75,7 @@
"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,
"weight" : 63,
"bashing" : 2,
"cutting" : 0,
"to_hit" : 0,
@@ -94,7 +90,6 @@
{
"type" : "AMMO",
"id" : "shaft_metal",
"rarity" : 0,
"price" : 20,
"name" : "metal arrow shaft",
"symbol" : "=",
@@ -102,7 +97,7 @@
"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,
"weight" : 441,
"bashing" : 3,
"cutting" : 0,
"to_hit" : 0,
@@ -117,7 +112,6 @@
{
"type" : "AMMO",
"id" : "arrow_fire_hardened",
"rarity" : 0,
"price" : 25,
"name" : "fire hardened wood arrow",
"symbol" : "=",
@@ -125,7 +119,7 @@
"description" : "A simple arrow shaft that has had a point carved into it and then fire hardened.",
"material" : "wood",
"volume" : 1,
"weight" : 12,
"weight" : 42,
"bashing" : 2,
"cutting" : 0,
"to_hit" : 0,
@@ -140,7 +134,6 @@
{
"type" : "AMMO",
"id" : "arrow_field_point",
"rarity" : 0,
"price" : 30,
"name" : "field point wood arrow",
"symbol" : "=",
@@ -148,7 +141,7 @@
"description" : "A simple arrow shaft that has a crude arrow head. Useful for hunting small woodland creatures.",
"material" : "wood",
"volume" : 1,
"weight" : 13,
"weight" : 48,
"bashing" : 3,
"cutting" : 0,
"to_hit" : 0,
@@ -163,7 +156,6 @@
{
"type" : "AMMO",
"id" : "arrow_small_game",
"rarity" : 0,
"price" : 30,
"name" : "small game arrow",
"symbol" : "=",
@@ -171,7 +163,7 @@
"description" : "A simple arrow shaft that has a wide blunt head. Useful for hunting small woodland creatures without splattering them all over the ground.",
"material" : "wood",
"volume" : 1,
"weight" : 13,
"weight" : 50,
"bashing" : 4,
"cutting" : 0,
"to_hit" : 0,
@@ -187,7 +179,6 @@
{
"type" : "AMMO",
"id" : "arrow_fire_hardened_fletched",
"rarity" : 0,
"price" : 35,
"name" : "fletched fire hardened wood arrow",
"symbol" : "=",
@@ -195,7 +186,7 @@
"description" : "This simple arrow has a fire hardened point and some fletchings.",
"material" : "wood",
"volume" : 1,
"weight" : 13,
"weight" : 43,
"bashing" : 3,
"cutting" : 0,
"to_hit" : 0,
@@ -210,7 +201,6 @@
{
"type" : "AMMO",
"id" : "arrow_field_point_fletched",
"rarity" : 0,
"price" : 40,
"name" : "fletched field point wood arrow",
"symbol" : "=",
@@ -218,7 +208,7 @@
"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,
"weight" : 49,
"bashing" : 3,
"cutting" : 0,
"to_hit" : 0,
@@ -233,7 +223,6 @@
{
"type" : "AMMO",
"id" : "arrow_wood",
"rarity" : 7,
"price" : 75,
"name" : "wood arrow",
"symbol" : "=",
@@ -241,7 +230,7 @@
"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,
"weight" : 51,
"bashing" : 2,
"cutting" : 1,
"to_hit" : 0,
@@ -256,7 +245,6 @@
{
"type" : "AMMO",
"id" : "arrow_heavy_fire_hardened_fletched",
"rarity" : 7,
"price" : 75,
"name" : "heavy fletched fire hardened arrow",
"symbol" : "=",
@@ -264,7 +252,7 @@
"description" : "This arrow is significantly sturdier than other wooden arrows. It has a firehardened point and some fletchings.",
"material" : "plastic",
"volume" : 1,
"weight" : 19,
"weight" : 64,
"bashing" : 4,
"cutting" : 0,
"to_hit" : 0,
@@ -279,15 +267,14 @@
{
"type" : "AMMO",
"id" : "arrow_heavy_field_point_fletched",
"rarity" : 7,
"price" : 75,
"price" : 70,
"name" : "heavy fletched field point arrow",
"symbol" : "=",
"color" : "green",
"description" : "This arrow is significantly sturdier than other wooden arrows. It has a crude field point head and some fletchings.",
"material" : "plastic",
"volume" : 1,
"weight" : 20,
"weight" : 67,
"bashing" : 4,
"cutting" : 0,
"to_hit" : 0,
@@ -302,7 +289,6 @@
{
"type" : "AMMO",
"id" : "arrow_wood_heavy",
"rarity" : 7,
"price" : 75,
"name" : "heavy wood arrow",
"symbol" : "=",
@@ -310,7 +296,7 @@
"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,
"weight" : 71,
"bashing" : 6,
"cutting" : 2,
"to_hit" : 0,
@@ -325,7 +311,6 @@
{
"type" : "AMMO",
"id" : "arrow_metal_sharpened",
"rarity" : 7,
"price" : 50,
"name" : "sharpened metal arrow",
"symbol" : "=",
@@ -333,7 +318,7 @@
"description" : "This metal shaft has been carefully sharpened so that it has a crude point at the end.",
"material" : "steel",
"volume" : 1,
"weight" : 19,
"weight" : 441,
"bashing" : 2,
"cutting" : 0,
"to_hit" : 0,
@@ -348,7 +333,6 @@
{
"type" : "AMMO",
"id" : "arrow_metal",
"rarity" : 7,
"price" : 100,
"name" : "metal arrow",
"symbol" : "=",
@@ -356,7 +340,7 @@
"description" : "This metal arrow has a steel arrow head and some fletchings.",
"material" : "steel",
"volume" : 1,
"weight" : 21,
"weight" : 442,
"bashing" : 3,
"cutting" : 2,
"to_hit" : 0,
@@ -371,7 +355,6 @@
{
"type" : "AMMO",
"id" : "arrow_cf",
"rarity" : 5,
"price" : 150,
"name" : "carbon fiber arrow",
"symbol" : "=",
@@ -379,7 +362,7 @@
"description" : "High-tech carbon fiber shafts and 100 grain broadheads. Very light weight, fast, and notoriously fragile.",
"material" : "plastic",
"volume" : 2,
"weight" : 15,
"weight" : 8,
"bashing" : 1,
"cutting" : 0,
"to_hit" : 0,
@@ -394,7 +377,6 @@
{
"type" : "AMMO",
"id" : "arrow_exploding",
"rarity" : 5,
"price" : 350,
"name" : "exploding arrow",
"symbol" : "=",
@@ -402,7 +384,7 @@
"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,
"weight" : 833,
"bashing" : 2,
"cutting" : 0,
"to_hit" : 0,
@@ -421,10 +403,9 @@
"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,
"weight" : 762,
"volume" : 1,
"bashing" : 10,
"cutting" : 0,
@@ -435,7 +416,6 @@
{
"type" : "AMMO",
"id" : "arrow_flamming",
"rarity" : 5,
"price" : 350,
"name" : "flaming arrow",
"symbol" : "=",
@@ -443,7 +423,7 @@
"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,
"weight" : 150,
"bashing" : 2,
"cutting" : 0,
"to_hit" : 0,
@@ -459,7 +439,6 @@
{
"type" : "AMMO",
"id" : "bolt_wood",
"rarity" : 8,
"price" : 100,
"name" : "wood crossbow bolt",
"symbol" : "=",
@@ -467,7 +446,7 @@
"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,
"weight" : 31,
"bashing" : 1,
"cutting" : 0,
"to_hit" : 0,
@@ -482,7 +461,6 @@
{
"type" : "AMMO",
"id" : "bolt_steel",
"rarity" : 7,
"price" : 400,
"name" : "steel crossbow bolt",
"symbol" : "=",
@@ -490,7 +468,7 @@
"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,
"weight" : 217,
"bashing" : 5,
"cutting" : 0,
"to_hit" : 0,
@@ -509,13 +487,12 @@
"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,
"weight" : 1360,
"volume" : 12,
"bashing" : 6,
"cutting" : 0,
@@ -536,13 +513,12 @@
"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,
"weight" : 340,
"volume" : 6,
"bashing" : 6,
"cutting" : 0,
@@ -563,13 +539,12 @@
"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,
"price" : 700,
"material" : ["steel", "plastic"],
"flags" : ["ALWAYS_TWOHAND", "STR8_DRAW", "RELOAD_AND_SHOOT"],
"skill" : "archery",
"ammo" : "arrow",
"weight" : 8,
"weight" : 907,
"volume" : 8,
"bashing" : 8,
"cutting" : 0,
@@ -590,13 +565,12 @@
"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,
"weight" : 540,
"volume" : 10,
"bashing" : 8,
"cutting" : 0,
@@ -617,13 +591,12 @@
"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,
"weight" : 540,
"volume" : 10,
"bashing" : 12,
"cutting" : 0,
@@ -644,13 +617,12 @@
"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,
"weight" : 540,
"volume" : 10,
"bashing" : 12,
"cutting" : 0,
@@ -671,13 +643,12 @@
"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,
"weight" : 680,
"volume" : 8,
"bashing" : 10,
"cutting" : 0,
@@ -698,13 +669,12 @@
"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,
"weight" : 540,
"volume" : 5,
"bashing" : 12,
"cutting" : 0,
@@ -725,18 +695,17 @@
"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,
"weight" : 900,
"volume" : 4,
"bashing" : 4,
"cutting" : 0,
"to_hit" : -0,
"ranged_damage" : -6,
"ranged_damage" : 7,
"range" : 6,
"dispersion" : 12,
"recoil" : 0,
@@ -752,18 +721,17 @@
"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,
"weight" : 2728,
"volume" : 6,
"bashing" : 11,
"cutting" : 0,
"to_hit" : 1,
"ranged_damage" : 0,
"ranged_damage" : 13,
"range" : 10,
"dispersion" : 10,
"recoil" : 0,
@@ -779,13 +747,12 @@
"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,
"weight" : 6803,
"volume" : 40,
"bashing" : 20,
"cutting" : 0,
@@ -806,18 +773,17 @@
"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,
"weight" : 3628,
"volume" : 10,
"bashing" : 13,
"cutting" : 0,
"to_hit" : -1,
"ranged_damage" : -2,
"ranged_damage" : 10,
"range" : 8,
"dispersion" : 22,
"recoil" : 15,
@@ -825,5 +791,71 @@
"burst" : 3,
"clip_size" : 10,
"reload" : 100
},
{
"id":"shaft_plastic",
"type":"AMMO",
"symbol":"=",
"color":"green",
"name":"plastic shaft",
"description":"A crude shaft made from plastic. It needs arrowheads and fletching to become a functional arrow. You can, however, fire it from a bow.",
"to_hit":0,
"price":0,
"material":"plastic",
"bashing":1,
"cutting":0,
"weight":6,
"volume":1,
"ammo_type":"arrow",
"range":0,
"pierce":0,
"damage":0,
"recoil":0,
"dispersion":40,
"count":10
},
{
"id":"arrowhead_plastic",
"type":"AMMO",
"color":"green",
"symbol":"=",
"name":"plastic arrowhead",
"description":"Plastic heads for an arrow. Placing these on an arrow will make the arrow more damaging and piercing.",
"price":0,
"material":"plastic",
"to_hit":0,
"cutting":0,
"bashing":1,
"weight":1,
"volume":1,
"ammo_type":"components",
"range":0,
"pierce":0,
"damage":0,
"recoil":0,
"dispersion":0,
"count":10
},
{
"id":"arrow_plastic",
"type":"AMMO",
"symbol":"=",
"color":"green",
"name":"plastic arrow",
"description":"This plastic arrow has a plastic arrow head and some fletchings.",
"price":20,
"material":"plastic",
"volume":1,
"weight":8,
"bashing":2,
"cutting":1,
"to_hit":0,
"ammo_type":"arrow",
"damage":8,
"pierce":1,
"range":12,
"dispersion":15,
"recoil":0,
"count":10
}
]
+1774 -331
View File
File diff suppressed because it is too large Load Diff
+265 -105
View File
@@ -5,7 +5,7 @@
"name" : "Playboy",
"max_level" : 0,
"description" : "You can read it for the articles. Or not.",
"weight" : 1,
"weight" : 60,
"to_hit" : 1,
"color" : "pink",
"intelligence" : 0,
@@ -17,7 +17,6 @@
"time" : 10,
"fun" : 1,
"skill" : "none",
"rarity" : 20,
"price" : 30,
"required_level" : 0
},
@@ -27,7 +26,7 @@
"name" : "US Weekly",
"max_level" : 1,
"description" : "Weekly news about a bunch of famous people who're all (un)dead now.",
"weight" : 1,
"weight" : 60,
"to_hit" : 1,
"color" : "pink",
"intelligence" : 3,
@@ -39,7 +38,6 @@
"time" : 8,
"fun" : 1,
"skill" : "speech",
"rarity" : 40,
"price" : 40,
"required_level" : 0
},
@@ -49,7 +47,7 @@
"name" : "TIME magazine",
"max_level" : 0,
"description" : "Current events concerning a bunch of people who're all (un)dead now.",
"weight" : 1,
"weight" : 60,
"to_hit" : 1,
"color" : "pink",
"intelligence" : 7,
@@ -61,7 +59,6 @@
"time" : 10,
"fun" : 2,
"skill" : "none",
"rarity" : 35,
"price" : 40,
"required_level" : 0
},
@@ -71,7 +68,7 @@
"name" : "Top Gear magazine",
"max_level" : 1,
"description" : "Lots of articles about cars and driving techniques.",
"weight" : 1,
"weight" : 60,
"to_hit" : 1,
"color" : "pink",
"intelligence" : 2,
@@ -83,7 +80,6 @@
"time" : 8,
"fun" : 1,
"skill" : "driving",
"rarity" : 40,
"price" : 45,
"required_level" : 0
},
@@ -93,7 +89,7 @@
"name" : "Bon Appetit",
"max_level" : 1,
"description" : "Exciting recipes and restaurant reviews. Full of handy tips about cooking.",
"weight" : 1,
"weight" : 60,
"to_hit" : 1,
"color" : "pink",
"intelligence" : 5,
@@ -105,7 +101,6 @@
"time" : 8,
"fun" : 1,
"skill" : "cooking",
"rarity" : 30,
"price" : 45,
"required_level" : 0
},
@@ -115,7 +110,7 @@
"name" : "Birdhouse Monthly",
"max_level" : 1,
"description" : "A riveting periodical all about birdhouses and their construction.",
"weight" : 1,
"weight" : 60,
"to_hit" : 1,
"color" : "pink",
"intelligence" : 5,
@@ -127,7 +122,6 @@
"time" : 8,
"fun" : 1,
"skill" : "carpentry",
"rarity" : 30,
"price" : 45,
"required_level" : 0
},
@@ -137,7 +131,7 @@
"name" : "Guns n Ammo",
"max_level" : 1,
"description" : "Reviews of firearms, and various useful tips about their use.",
"weight" : 1,
"weight" : 60,
"to_hit" : 1,
"color" : "pink",
"intelligence" : 2,
@@ -149,7 +143,6 @@
"time" : 7,
"fun" : 1,
"skill" : "gun",
"rarity" : 20,
"price" : 48,
"required_level" : 0
},
@@ -159,7 +152,7 @@
"name" : "Archery for Kids",
"max_level" : 1,
"description" : "Will you be able to place the arrow right into bull's eye? It is not that easy, but once you know how it's done, you will have a lot of fun with archery.",
"weight" : 1,
"weight" : 60,
"to_hit" : 1,
"color" : "pink",
"intelligence" : 2,
@@ -171,7 +164,6 @@
"time" : 7,
"fun" : 1,
"skill" : "archery",
"rarity" : 20,
"price" : 48,
"required_level" : 0
},
@@ -181,7 +173,7 @@
"name" : "Computer Gaming",
"max_level" : 0,
"description" : "Reviews of recently released computer games and previews of upcoming titles.",
"weight" : 1,
"weight" : 60,
"to_hit" : 1,
"color" : "pink",
"intelligence" : 7,
@@ -193,7 +185,6 @@
"time" : 8,
"fun" : 2,
"skill" : "none",
"rarity" : 20,
"price" : 30,
"required_level" : 0
},
@@ -203,7 +194,7 @@
"name" : "comic book",
"max_level" : 0,
"description" : "A super-hero comic.",
"weight" : 1,
"weight" : 60,
"to_hit" : 1,
"color" : "pink",
"intelligence" : 0,
@@ -215,7 +206,6 @@
"time" : 7,
"fun" : 2,
"skill" : "none",
"rarity" : 20,
"price" : 30,
"required_level" : 0
},
@@ -225,7 +215,7 @@
"name" : "Paramedics",
"max_level" : 1,
"description" : "An educational magazine for EMTs.",
"weight" : 1,
"weight" : 60,
"to_hit" : 1,
"color" : "pink",
"intelligence" : 1,
@@ -237,7 +227,6 @@
"time" : 8,
"fun" : 1,
"skill" : "firstaid",
"rarity" : 15,
"price" : 48,
"required_level" : 0
},
@@ -247,7 +236,7 @@
"name" : "Dance Dance Dance!",
"max_level" : 1,
"description" : "Learn the moves of the trendiest dances right now.",
"weight" : 1,
"weight" : 60,
"to_hit" : 1,
"color" : "pink",
"intelligence" : 2,
@@ -259,7 +248,6 @@
"time" : 8,
"fun" : 1,
"skill" : "dodge",
"rarity" : 20,
"price" : 48,
"required_level" : 0
},
@@ -269,7 +257,7 @@
"name" : "Diskobolus",
"max_level" : 1,
"description" : "A biannual magazine devoted to discus throw.",
"weight" : 1,
"weight" : 60,
"to_hit" : 1,
"color" : "pink",
"intelligence" : 1,
@@ -281,7 +269,6 @@
"time" : 8,
"fun" : 1,
"skill" : "throw",
"rarity" : 20,
"price" : 48,
"required_level" : 0
},
@@ -291,7 +278,7 @@
"name" : "Swim Planet",
"max_level" : 1,
"description" : "The world's leading resource about aquatic sports.",
"weight" : 1,
"weight" : 60,
"to_hit" : 1,
"color" : "pink",
"intelligence" : 1,
@@ -303,7 +290,6 @@
"time" : 8,
"fun" : 1,
"skill" : "swimming",
"rarity" : 20,
"price" : 48,
"required_level" : 0
},
@@ -313,7 +299,7 @@
"name" : "romance novel",
"max_level" : 0,
"description" : "Drama and mild smut.",
"weight" : 1,
"weight" : 227,
"to_hit" : 0,
"color" : "light_blue",
"intelligence" : 4,
@@ -325,7 +311,6 @@
"time" : 15,
"fun" : 2,
"skill" : "none",
"rarity" : 30,
"price" : 55,
"required_level" : 0
},
@@ -335,7 +320,7 @@
"name" : "spy novel",
"max_level" : 0,
"description" : "A tale of intrigue and espionage amongst Nazis, no, Commies, no, Iraqis!",
"weight" : 1,
"weight" : 227,
"to_hit" : 0,
"color" : "light_blue",
"intelligence" : 5,
@@ -347,7 +332,6 @@
"time" : 18,
"fun" : 3,
"skill" : "none",
"rarity" : 28,
"price" : 55,
"required_level" : 0
},
@@ -357,7 +341,7 @@
"name" : "scifi novel",
"max_level" : 0,
"description" : "Aliens, ray guns, and space ships.",
"weight" : 1,
"weight" : 227,
"to_hit" : 0,
"color" : "light_blue",
"intelligence" : 6,
@@ -369,7 +353,6 @@
"time" : 20,
"fun" : 3,
"skill" : "none",
"rarity" : 20,
"price" : 55,
"required_level" : 0
},
@@ -379,7 +362,7 @@
"name" : "drama novel",
"max_level" : 0,
"description" : "A real book for real adults.",
"weight" : 1,
"weight" : 227,
"to_hit" : 0,
"color" : "light_blue",
"intelligence" : 7,
@@ -391,7 +374,6 @@
"time" : 25,
"fun" : 4,
"skill" : "none",
"rarity" : 40,
"price" : 55,
"required_level" : 0
},
@@ -401,7 +383,7 @@
"name" : "fantasy novel",
"max_level" : 0,
"description" : "Basic Sword & Sorcery.",
"weight" : 1,
"weight" : 227,
"to_hit" : 0,
"color" : "light_blue",
"intelligence" : 7,
@@ -413,7 +395,6 @@
"time" : 20,
"fun" : 4,
"skill" : "none",
"rarity" : 20,
"price" : 55,
"required_level" : 0
},
@@ -423,7 +404,7 @@
"name" : "mystery novel",
"max_level" : 0,
"description" : "A detective investigates an unusual murder in a secluded location.",
"weight" : 1,
"weight" : 227,
"to_hit" : 0,
"color" : "light_blue",
"intelligence" : 7,
@@ -435,7 +416,6 @@
"time" : 18,
"fun" : 4,
"skill" : "none",
"rarity" : 25,
"price" : 55,
"required_level" : 0
},
@@ -445,7 +425,7 @@
"name" : "horror novel",
"max_level" : 0,
"description" : "Maybe not the best reading material considering the situation.",
"weight" : 1,
"weight" : 227,
"to_hit" : 0,
"color" : "light_blue",
"intelligence" : 7,
@@ -457,7 +437,27 @@
"time" : 18,
"fun" : 1,
"skill" : "none",
"rarity" : 18,
"price" : 55,
"required_level" : 0
},
{
"type" : "BOOK",
"id" : "ZSG",
"name" : "Zombie Survival Guide",
"max_level" : 0,
"description" : "While this seems like it would be very useful in this situation, the sheer amount of misinformation present makes it practically useless.",
"weight" : 227,
"to_hit" : 0,
"color" : "light_blue",
"intelligence" : 7,
"symbol" : "?",
"material" : ["paper", "null"],
"volume" : 4,
"bashing" : -2,
"cutting" : 0,
"time" : 18,
"fun" : 2,
"skill" : "none",
"price" : 55,
"required_level" : 0
},
@@ -467,7 +467,7 @@
"name" : "101 Wrestling Moves",
"max_level" : 3,
"description" : "It seems to be a wrestling manual, poorly photocopied and released on spiral- bound paper. Still, there are lots of useful tips for unarmed combat.",
"weight" : 1,
"weight" : 227,
"to_hit" : 0,
"color" : "green",
"intelligence" : 3,
@@ -479,7 +479,6 @@
"time" : 15,
"fun" : 0,
"skill" : "unarmed",
"rarity" : 30,
"price" : 180,
"required_level" : 0
},
@@ -489,7 +488,7 @@
"name" : "Spetsnaz Knife Techniques",
"max_level" : 4,
"description" : "A classic Soviet text on the art of attacking with a blade.",
"weight" : 1,
"weight" : 454,
"to_hit" : 0,
"color" : "green",
"intelligence" : 4,
@@ -501,7 +500,6 @@
"time" : 18,
"fun" : 0,
"skill" : "cutting",
"rarity" : 12,
"price" : 200,
"required_level" : 1
},
@@ -511,7 +509,7 @@
"name" : "Under the Hood",
"max_level" : 3,
"description" : "An advanced mechanics manual, covering all sorts of topics.",
"weight" : 1,
"weight" : 454,
"to_hit" : 0,
"color" : "green",
"intelligence" : 5,
@@ -523,7 +521,6 @@
"time" : 18,
"fun" : 0,
"skill" : "mechanics",
"rarity" : 35,
"price" : 190,
"required_level" : 0
},
@@ -533,7 +530,7 @@
"name" : "Pitching a Tent",
"max_level" : 3,
"description" : "A guide detailing the basics of woodsmanship and outdoor survival.",
"weight" : 1,
"weight" : 454,
"to_hit" : 0,
"color" : "green",
"intelligence" : 4,
@@ -545,7 +542,6 @@
"time" : 18,
"fun" : 0,
"skill" : "survival",
"rarity" : 20,
"price" : 200,
"required_level" : 0
},
@@ -555,7 +551,7 @@
"name" : "Self-Esteem for Dummies",
"max_level" : 3,
"description" : "Full of useful tips for showing confidence in your speech.",
"weight" : 1,
"weight" : 454,
"to_hit" : 0,
"color" : "green",
"intelligence" : 5,
@@ -567,7 +563,6 @@
"time" : 20,
"fun" : 0,
"skill" : "speech",
"rarity" : 50,
"price" : 160,
"required_level" : 0
},
@@ -577,7 +572,7 @@
"name" : "How to Succeed in Business",
"max_level" : 3,
"description" : "Useful if you want to get a good deal when purchasing goods.",
"weight" : 1,
"weight" : 454,
"to_hit" : 0,
"color" : "green",
"intelligence" : 6,
@@ -589,7 +584,6 @@
"time" : 25,
"fun" : -1,
"skill" : "barter",
"rarity" : 40,
"price" : 180,
"required_level" : 0
},
@@ -599,7 +593,7 @@
"name" : "The Big Book of First Aid",
"max_level" : 3,
"description" : "It's big and heavy, but full of great information about first aid.",
"weight" : 2,
"weight" : 454,
"to_hit" : 0,
"color" : "green",
"intelligence" : 7,
@@ -611,7 +605,6 @@
"time" : 20,
"fun" : 0,
"skill" : "firstaid",
"rarity" : 40,
"price" : 200,
"required_level" : 0
},
@@ -621,7 +614,7 @@
"name" : "How to Browse the Web",
"max_level" : 2,
"description" : "Very beginner-level information about computers.",
"weight" : 1,
"weight" : 454,
"to_hit" : 0,
"color" : "green",
"intelligence" : 5,
@@ -633,7 +626,6 @@
"time" : 15,
"fun" : 0,
"skill" : "computer",
"rarity" : 20,
"price" : 170,
"required_level" : 0
},
@@ -643,7 +635,7 @@
"name" : "Cooking on a Budget",
"max_level" : 3,
"description" : "A nice cook book that goes beyond recipes and into the chemistry of food.",
"weight" : 1,
"weight" : 454,
"to_hit" : 0,
"color" : "green",
"intelligence" : 4,
@@ -655,7 +647,6 @@
"time" : 10,
"fun" : 0,
"skill" : "cooking",
"rarity" : 35,
"price" : 160,
"required_level" : 0
},
@@ -665,7 +656,7 @@
"name" : "To Serve Man",
"max_level" : 4,
"description" : "It's... it's a cookbook!",
"weight" : 1,
"weight" : 454,
"to_hit" : 0,
"color" : "green",
"intelligence" : 4,
@@ -677,7 +668,6 @@
"time" : 10,
"fun" : -5,
"skill" : "cooking",
"rarity" : 1,
"price" : 400,
"required_level" : 2
},
@@ -687,7 +677,7 @@
"name" : "Cucina Italiana",
"max_level" : 4,
"description" : "This cookbook is written in Italian, but handily illustrated with step by step photo instructions.",
"weight" : 1,
"weight" : 454,
"to_hit" : 0,
"color" : "green",
"intelligence" : 6,
@@ -699,7 +689,6 @@
"time" : 10,
"fun" : 0,
"skill" : "cooking",
"rarity" : 25,
"price" : 200,
"required_level" : 3
},
@@ -709,7 +698,7 @@
"name" : "What's a Transistor?",
"max_level" : 3,
"description" : "A basic manual of electronics and circuit design.",
"weight" : 1,
"weight" : 454,
"to_hit" : 0,
"color" : "green",
"intelligence" : 7,
@@ -721,7 +710,6 @@
"time" : 20,
"fun" : 0,
"skill" : "electronics",
"rarity" : 20,
"price" : 200,
"required_level" : 0
},
@@ -731,7 +719,7 @@
"name" : "Sew What? Clothing!",
"max_level" : 3,
"description" : "A colorful book about tailoring.",
"weight" : 1,
"weight" : 454,
"to_hit" : 0,
"color" : "green",
"intelligence" : 4,
@@ -743,9 +731,50 @@
"time" : 18,
"fun" : 0,
"skill" : "tailor",
"rarity" : 15,
"price" : 190,
"required_level" : 0
},
{
"type" : "BOOK",
"id" : "mag_tailor",
"name" : "Sew Awesome Monthly",
"max_level" : 1,
"description" : "A well presented monthly magazine all about knitting, crocheting, and needlepoint. Filled with ideas and project patterns.",
"weight" : 75,
"to_hit" : 1,
"color" : "pink",
"intelligence" : 5,
"symbol" : "?",
"material" : ["paper", "null"],
"volume" : 1,
"bashing" : -3,
"cutting" : 0,
"time" : 8,
"fun" : 2,
"skill" : "tailor",
"price" : 40,
"required_level" : 0
},
{
"type" : "BOOK",
"id" : "textbook_tailor",
"name" : "Sewing Techniques for Designers",
"max_level" : 6,
"description" : "A massive, hardbound book full of a wealth of information for the professional clothing designer.",
"weight" : 2600,
"to_hit" : 1,
"color" : "green",
"intelligence" : 8,
"symbol" : "?",
"material" : ["paper", "null"],
"volume" : 8,
"bashing" : 4,
"cutting" : 0,
"time" : 30,
"fun" : 0,
"skill" : "tailor",
"price" : 600,
"required_level" : 3
},
{
"type" : "BOOK",
@@ -753,7 +782,7 @@
"name" : "How to Trap Anything",
"max_level" : 4,
"description" : "A worn manual that describes how to set and disarm a wide variety of traps.",
"weight" : 1,
"weight" : 454,
"to_hit" : 0,
"color" : "green",
"intelligence" : 4,
@@ -765,7 +794,6 @@
"time" : 20,
"fun" : 0,
"skill" : "traps",
"rarity" : 12,
"price" : 240,
"required_level" : 0
},
@@ -775,7 +803,7 @@
"name" : "Building for Beginners",
"max_level" : 3,
"description" : "A large, paperback book detailing several beginner's projects in construction.",
"weight" : 1,
"weight" : 454,
"to_hit" : 0,
"color" : "green",
"intelligence" : 5,
@@ -787,7 +815,6 @@
"time" : 16,
"fun" : 0,
"skill" : "carpentry",
"rarity" : 10,
"price" : 220,
"required_level" : 0
},
@@ -797,7 +824,7 @@
"name" : "Computer Science 301",
"max_level" : 5,
"description" : "A college textbook on computer science.",
"weight" : 4,
"weight" : 1587,
"to_hit" : 1,
"color" : "blue",
"intelligence" : 11,
@@ -809,7 +836,6 @@
"time" : 35,
"fun" : -2,
"skill" : "computer",
"rarity" : 8,
"price" : 500,
"required_level" : 2
},
@@ -819,7 +845,7 @@
"name" : "Advanced Electronics",
"max_level" : 5,
"description" : "A college textbook on circuit design.",
"weight" : 5,
"weight" : 1587,
"to_hit" : 1,
"color" : "blue",
"intelligence" : 11,
@@ -831,7 +857,6 @@
"time" : 35,
"fun" : -1,
"skill" : "electronics",
"rarity" : 6,
"price" : 520,
"required_level" : 2
},
@@ -841,7 +866,7 @@
"name" : "Advanced Economics",
"max_level" : 5,
"description" : "A college textbook on economics.",
"weight" : 4,
"weight" : 1587,
"to_hit" : 1,
"color" : "blue",
"intelligence" : 9,
@@ -853,7 +878,6 @@
"time" : 30,
"fun" : -1,
"skill" : "barter",
"rarity" : 12,
"price" : 480,
"required_level" : 3
},
@@ -863,7 +887,7 @@
"name" : "Mechanical Mastery",
"max_level" : 6,
"description" : "An advanced guide on mechanics and welding, covering topics like \"Grinding off rust\" and \"Making cursive E's\".",
"weight" : 3,
"weight" : 1587,
"to_hit" : 1,
"color" : "blue",
"intelligence" : 6,
@@ -875,17 +899,16 @@
"time" : 30,
"fun" : -1,
"skill" : "mechanics",
"rarity" : 12,
"price" : 495,
"required_level" : 3
},
{
"type" : "BOOK",
"id" : "textbook_chemistry",
"name" : "Chemistry Textbook",
"name" : "chemistry textbook",
"max_level" : 6,
"description" : "A college textbook on chemistry.",
"weight" : 6,
"weight" : 1587,
"to_hit" : 1,
"color" : "blue",
"intelligence" : 12,
@@ -897,7 +920,6 @@
"time" : 35,
"fun" : -1,
"skill" : "cooking",
"rarity" : 11,
"price" : 495,
"required_level" : 3
},
@@ -907,7 +929,7 @@
"name" : "Engineering 301",
"max_level" : 6,
"description" : "A textbook on civil engineering and construction.",
"weight" : 3,
"weight" : 1587,
"to_hit" : 1,
"color" : "blue",
"intelligence" : 8,
@@ -919,7 +941,6 @@
"time" : 30,
"fun" : -1,
"skill" : "carpentry",
"rarity" : 6,
"price" : 550,
"required_level" : 3
},
@@ -929,7 +950,7 @@
"name" : "SICP",
"max_level" : 8,
"description" : "A classic text, \"The Structure and Interpretation of Computer Programs.\" Written with examples in LISP, but applicable to any language.",
"weight" : 5,
"weight" : 1587,
"to_hit" : 0,
"color" : "blue",
"intelligence" : 13,
@@ -941,7 +962,6 @@
"time" : 50,
"fun" : -1,
"skill" : "computer",
"rarity" : 3,
"price" : 780,
"required_level" : 4
},
@@ -951,7 +971,7 @@
"name" : "Robots for Fun & Profit",
"max_level" : 10,
"description" : "A rare book on the design of robots, with lots of helpful step-by-step guides.",
"weight" : 8,
"weight" : 2063,
"to_hit" : 1,
"color" : "blue",
"intelligence" : 14,
@@ -963,17 +983,16 @@
"time" : 55,
"fun" : -1,
"skill" : "electronics",
"rarity" : 1,
"price" : 920,
"required_level" : 5
},
{
"type" : "BOOK",
"id" : "record_weather",
"name" : "National Weather Transcripts",
"name" : "national weather transcripts",
"max_level" : 0,
"description" : "Old weather records are about as interesting as a rock.",
"weight" : 7,
"weight" : 454,
"to_hit" : 1,
"color" : "blue",
"intelligence" : 0,
@@ -985,17 +1004,16 @@
"time" : 30,
"fun" : -1,
"skill" : "none",
"rarity" : 20,
"price" : 5,
"required_level" : 0
},
{
"type" : "BOOK",
"id" : "record_patient",
"name" : "Patient Treatment Records",
"name" : "patient treatment records",
"max_level" : 0,
"description" : "A massive stack of medical records that contain every gory detail.",
"weight" : 6,
"weight" : 680,
"to_hit" : 1,
"color" : "blue",
"intelligence" : 0,
@@ -1007,17 +1025,16 @@
"time" : 30,
"fun" : -1,
"skill" : "none",
"rarity" : 20,
"price" : 5,
"required_level" : 0
},
{
"type" : "BOOK",
"id" : "record_accounting",
"name" : "Corporate Accounting Ledger",
"name" : "corporate accounting ledger",
"max_level" : 0,
"description" : "If you knew what to look for something might stand out...",
"weight" : 5,
"weight" : 566,
"to_hit" : 1,
"color" : "blue",
"intelligence" : 0,
@@ -1029,7 +1046,6 @@
"time" : 30,
"fun" : -1,
"skill" : "none",
"rarity" : 20,
"price" : 100,
"required_level" : 0
},
@@ -1039,7 +1055,7 @@
"name" : "black box transcript",
"max_level" : 0,
"description" : "A full flight log for a military aircraft. Nothing of interest stands out.",
"weight" : 5,
"weight" : 566,
"to_hit" : 1,
"color" : "blue",
"intelligence" : 0,
@@ -1051,17 +1067,16 @@
"time" : 30,
"fun" : -1,
"skill" : "none",
"rarity" : 0,
"price" : 500,
"required_level" : 0
},
{
"type" : "BOOK",
"id" : "priest_diary",
"name" : "Priest's Diary",
"name" : "priest's diary",
"max_level" : 0,
"description" : "A small book filled with journal entries in Latin.",
"weight" : 3,
"weight" : 340,
"to_hit" : 1,
"color" : "blue",
"intelligence" : 0,
@@ -1073,7 +1088,6 @@
"time" : 30,
"fun" : -1,
"skill" : "none",
"rarity" : 0,
"price" : 500,
"required_level" : 0
},
@@ -1083,7 +1097,7 @@
"name" : "Visions in Solitude",
"max_level" : 0,
"description" : "A small book detailing 'visions' a prisoner had on death row.",
"weight" : 1,
"weight" : 227,
"to_hit" : 1,
"color" : "blue",
"intelligence" : 0,
@@ -1095,8 +1109,154 @@
"time" : 30,
"fun" : 2,
"skill" : "none",
"rarity" : 0,
"price" : 900,
"required_level" : 0
},
{
"type" : "BOOK",
"id" : "mag_fabrication",
"name" : "Crafty Crafter's Quarterly",
"max_level" : 1,
"description" : "A fun quarterly magazine all about macaroni art and things you can make by supergluing found objects together.",
"weight" : 60,
"to_hit" : 1,
"color" : "pink",
"intelligence" : 5,
"symbol" : "?",
"material" : ["paper", "null"],
"volume" : 1,
"bashing" : -3,
"cutting" : 0,
"time" : 8,
"fun" : 2,
"skill" : "fabrication",
"price" : 45,
"required_level" : 0
},
{
"type" : "BOOK",
"id" : "manual_fabrication",
"name" : "101 Crafts for Beginners",
"max_level" : 3,
"description" : "A large, paperback book detailing a hundred and one beginner's projects in fabrication.",
"weight" : 510,
"to_hit" : 0,
"color" : "yellow",
"intelligence" : 5,
"symbol" : "?",
"material" : ["paper", "null"],
"volume" : 3,
"bashing" : -3,
"cutting" : 0,
"time" : 16,
"fun" : 1,
"skill" : "fabrication",
"price" : 220,
"required_level" : 0
},
{
"type" : "BOOK",
"id" : "textbook_fabrication",
"name" : "DIY Compendium",
"max_level" : 6,
"description" : "A thick, hardbound book detailing countless projects for inventions that claim to improve all aspects of life.",
"weight" : 2100,
"to_hit" : 1,
"color" : "green",
"intelligence" : 8,
"symbol" : "?",
"material" : ["paper", "null"],
"volume" : 7,
"bashing" : 4,
"cutting" : 0,
"time" : 30,
"fun" : 0,
"skill" : "fabrication",
"price" : 550,
"required_level" : 3
},
{
"type" : "BOOK",
"id" : "textbook_weapwest",
"name" : "The Historic Weaponsmith",
"max_level" : 8,
"description" : "This in-depth and technical text details various forms of ancient European weaponsmithing, and is well illustrated with step by step photo instructions.",
"weight" : 654,
"to_hit" : 0,
"color" : "yellow",
"intelligence" : 8,
"symbol" : "?",
"material" : ["paper", "null"],
"volume" : 5,
"bashing" : -2,
"cutting" : 0,
"time" : 10,
"fun" : -1,
"skill" : "fabrication",
"price" : 300,
"required_level" : 3
},
{
"type" : "BOOK",
"id" : "textbook_weapeast",
"name" : "The Swords of the Samurai",
"max_level" : 8,
"description" : "This in-depth and technical text details various forms of ancient Japanese swordsmithing, and is well illustrated with step by step photo instructions.",
"weight" : 654,
"to_hit" : 0,
"color" : "cyan",
"intelligence" : 8,
"symbol" : "?",
"material" : ["paper", "null"],
"volume" : 5,
"bashing" : -2,
"cutting" : 0,
"time" : 10,
"fun" : -1,
"skill" : "fabrication",
"price" : 300,
"required_level" : 3
},
{
"type" : "BOOK",
"id" : "textbook_armwest",
"name" : "Studies in Historic Armorsmithing",
"max_level" : 8,
"description" : "This in-depth and technical text details various forms of ancient European armor crafting, and is well illustrated with lots of photos.",
"weight" : 654,
"to_hit" : 0,
"color" : "blue",
"intelligence" : 8,
"symbol" : "?",
"material" : ["paper", "null"],
"volume" : 5,
"bashing" : -2,
"cutting" : 0,
"time" : 10,
"fun" : -1,
"skill" : "fabrication",
"price" : 300,
"required_level" : 3
},
{
"type" : "BOOK",
"id" : "textbook_armeast",
"name" : "The Art of Japenese Armormaking",
"max_level" : 8,
"description" : "This in-depth and technical text details various forms of ancient Japanese armor crafting, and is well illustrated with lots of photos.",
"weight" : 654,
"to_hit" : 0,
"color" : "light_blue",
"intelligence" : 8,
"symbol" : "?",
"material" : ["paper", "null"],
"volume" : 5,
"bashing" : -2,
"cutting" : 0,
"time" : 10,
"fun" : -1,
"skill" : "fabrication",
"price" : 300,
"required_level" : 3
}
]
File diff suppressed because it is too large Load Diff
+51 -30
View File
@@ -6,9 +6,8 @@
"color": "light_gray",
"name": "plastic bag",
"description": "A small, open plastic bag. Essentially trash.",
"rarity": 90,
"price": 1,
"weight": 0,
"weight": 2,
"volume": 1,
"bashing": -4,
"cutting": 0,
@@ -22,10 +21,9 @@
"symbol": ")",
"color": "light_cyan",
"name": "plastic bottle",
"description": "A resealable plastic bottle, holds 500mls of liquid.",
"rarity": 90,
"description": "A resealable plastic bottle, holds 500 ml of liquid.",
"price": 8,
"weight": 0,
"weight": 13,
"volume": 2,
"bashing": -8,
"cutting": 0,
@@ -40,10 +38,9 @@
"symbol": ")",
"color": "cyan",
"name": "glass bottle",
"description": "A resealable glass bottle, holds 750mls of liquid.",
"rarity": 90,
"description": "A resealable glass bottle, holds 750 ml of liquid.",
"price": 1,
"weight": 2,
"weight": 200,
"volume": 3,
"bashing": -8,
"cutting": 0,
@@ -59,9 +56,8 @@
"color": "light_blue",
"name": "aluminum can",
"description": "An aluminum can, like what soda comes in.",
"rarity": 70,
"price": 1,
"weight": 0,
"weight": 13,
"volume": 1,
"bashing": 0,
"cutting": 0,
@@ -77,9 +73,8 @@
"color": "blue",
"name": "tin can",
"description": "A tin can, like what beans come in.",
"rarity": 65,
"price": 2,
"weight": 0,
"weight": 400,
"volume": 1,
"bashing": -1,
"cutting": 0,
@@ -95,9 +90,8 @@
"color": "brown",
"name": "sm. cardboard box",
"description": "A small cardboard box. No bigger than a foot in dimension.",
"rarity": 50,
"price": 0,
"weight": 0,
"weight": 151,
"volume": 4,
"bashing": -5,
"cutting": 0,
@@ -113,9 +107,8 @@
"color": "green",
"name": "plastic canteen",
"description": "A large military-style water canteen, with a 1.5 liter capacity and strap.",
"rarity": 20,
"price": 1000,
"weight": 2,
"weight": 155,
"volume": 6,
"bashing": -8,
"cutting": 0,
@@ -131,9 +124,8 @@
"color": "green",
"name": "plastic jerrycan",
"description": "A bulky plastic jerrycan, meant to carry fuel, but can carry other liquids\nin a pinch. It has a capacity of 10 liters.",
"rarity": 10,
"price": 2500,
"weight": 4,
"weight": 1587,
"volume": 40,
"bashing": -2,
"cutting": 0,
@@ -149,9 +141,8 @@
"color": "light_cyan",
"name": "gallon jug",
"description": "A standard plastic jug used for household cleaning chemicals.",
"rarity": 10,
"price": 2500,
"weight": 2,
"weight": 190,
"volume": 10,
"bashing": -8,
"cutting": 0,
@@ -167,9 +158,8 @@
"color": "light_cyan",
"name": "glass flask",
"description": "A 250 ml laboratory conical flask, with a rubber bung.",
"rarity": 10,
"price": 2500,
"weight": 0,
"weight": 48,
"volume": 1,
"bashing": 8,
"cutting": 0,
@@ -185,9 +175,8 @@
"color": "brown",
"name": "waterskin",
"description": "A watertight leather bag, can hold 1.5 liters of water.",
"rarity": 0,
"price": 0,
"weight": 4,
"weight": 453,
"volume": 6,
"bashing": -8,
"cutting": 0,
@@ -203,9 +192,8 @@
"color": "green",
"name": "steel jerrycan",
"description": "A steel jerrycan, meant to carry fuel, but can carry other liquids\nin a pinch. It has a capacity of 25 liters.",
"rarity": 20,
"price": 5000,
"weight": 7,
"weight": 4815,
"volume": 100,
"bashing": -3,
"cutting": 0,
@@ -221,9 +209,8 @@
"color": "light_cyan",
"name": "aluminum keg",
"description": "A reusable aluminum keg, used for shipping beer.\nIt has a capacity of 50 liters.",
"rarity": 20,
"price": 6000,
"weight": 12,
"weight": 13500,
"volume": 200,
"bashing": -4,
"cutting": 0,
@@ -239,9 +226,8 @@
"color": "light_cyan",
"name": "glass jar",
"description": "A half-litre glass jar with a metal screw top lid, used for canning.",
"rarity": 50,
"price": 2500,
"weight": 1,
"weight": 264,
"volume": 1,
"bashing": 8,
"cutting": 0,
@@ -249,5 +235,40 @@
"material": "glass",
"contains": 1,
"flags": ["RIGID", "SEALS", "WATERTIGHT"]
},
{
"id": "jar_3l_glass",
"type": "CONTAINER",
"symbol": ")",
"color": "light_cyan",
"name": "3l glass jar",
"description": "A three-litre glass jar with a metal screw top lid, used for canning.",
"price": 3000,
"weight": 365,
"volume": 3,
"bashing": 10,
"cutting": 0,
"to_hit": 1,
"material": "glass",
"contains": 5,
"flags": ["RIGID", "SEALS", "WATERTIGHT"]
},
{
"id":"bowl_plastic",
"type":"CONTAINER",
"color":"light_cyan",
"symbol":")","to_hit":1,
"name":"plastic bowl",
"description":"A plastic bowl. Can be used as a container or as a tool. Holds 250 ml of liquid.",
"cutting":0,
"price":1,
"weight":0,
"volume":1,
"bashing":2,
"cutting":0,
"to_hit":1,
"material":"plastic",
"contains":1,
"flags":[ "RIGID" ]
}
]
+2 -4
View File
@@ -4,9 +4,8 @@
"color": "red",
"name":"Guitar",
"description":"An acoustic six-string guitar. A bit out of tune, but in good shape otherwise.",
"rarity": 60,
"material": "wood",
"weight": 13,
"weight": 2766,
"volume": 24,
"damage": 14,
"to_hit": 1,
@@ -22,9 +21,8 @@
"color": "green",
"name":"Bongo",
"description": "A handheld drum. Suitable for making loud noises into all hours of the night.",
"rarity": 60,
"material": ["wood", "steel"],
"weight": 10,
"weight": 400,
"volume": 10,
"damage": 11,
"to_hit": 1,
+373 -299
View File
File diff suppressed because it is too large Load Diff
+282 -51
View File
@@ -5,10 +5,9 @@
"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,
"weight": 226,
"volume": 2,
"bashing": 3,
"cutting": 0,
@@ -32,7 +31,7 @@
"damage_modifier" : -4,
"ammo_modifier" : "NULL",
"description" : "Using a suppressor is almost an imperative in zombie-infested regions. Gunfire is very noisy, and will attract predators. Its only drawback is a reduced muzzle velocity, resulting in less accuracy and damage.",
"weight" : 1,
"weight" : 510,
"to_hit" : 2,
"color" : "dark_gray",
"symbol" : ":",
@@ -43,7 +42,6 @@
"cutting" : 0,
"burst_modifier" : 0,
"recoil_modifier" : 0,
"rarity" : 15,
"price" : 480,
"loudness_modifier" : -25
},
@@ -56,7 +54,7 @@
"damage_modifier" : 0,
"ammo_modifier" : "NULL",
"description" : "A grip placed forward on the barrel allows for greater control and accuracy. Aside from increased weight, there are no drawbacks.",
"weight" : 1,
"weight" : 113,
"to_hit" : -1,
"color" : "brown",
"symbol" : ":",
@@ -67,7 +65,6 @@
"cutting" : 0,
"burst_modifier" : 0,
"recoil_modifier" : -2,
"rarity" : 12,
"price" : 280,
"loudness_modifier" : 0
},
@@ -80,7 +77,7 @@
"damage_modifier" : 1,
"ammo_modifier" : "NULL",
"description" : "A longer barrel increases the muzzle velocity of a firearm, contributing to both accuracy and damage. However, the longer barrel tends to vibrate after firing, greatly increasing recoil.",
"weight" : 1,
"weight" : 226,
"to_hit" : 2,
"color" : "light_gray",
"symbol" : ":",
@@ -91,7 +88,6 @@
"cutting" : 0,
"burst_modifier" : 0,
"recoil_modifier" : 5,
"rarity" : 10,
"price" : 400,
"loudness_modifier" : 0
},
@@ -103,8 +99,8 @@
"dispersion_modifier" : 5,
"damage_modifier" : 0,
"ammo_modifier" : "NULL",
"description" : "A shortened barrel results in markedly reduced accuracy, and a minor increase in noise, but also reduces recoil greatly as a result of the improved managability of the firearm.",
"weight" : 1,
"description" : "A shortened barrel results in markedly reduced accuracy, and a minor increase in noise, but also reduces recoil greatly as a result of the improved manageability of the firearm.",
"weight" : 113,
"to_hit" : -1,
"color" : "light_gray",
"symbol" : ":",
@@ -115,7 +111,6 @@
"cutting" : 0,
"burst_modifier" : 0,
"recoil_modifier" : -6,
"rarity" : 6,
"price" : 320,
"loudness_modifier" : 2
},
@@ -128,7 +123,7 @@
"damage_modifier" : -20,
"ammo_modifier" : "NULL",
"description" : "Rifling a shotgun barrel is mainly done in order to improve its accuracy when firing slugs. The rifling makes the gun less suitable for shot, however.",
"weight" : 1,
"weight" : 226,
"to_hit" : 1,
"color" : "light_gray",
"symbol" : ":",
@@ -139,7 +134,6 @@
"cutting" : 0,
"burst_modifier" : -1,
"recoil_modifier" : 0,
"rarity" : 5,
"price" : 220,
"loudness_modifier" : 0
},
@@ -152,7 +146,7 @@
"damage_modifier" : 0,
"ammo_modifier" : "NULL",
"description" : "Increases the ammunition capacity of your firearm by 50%, but the added bulk reduces accuracy slightly.",
"weight" : 1,
"weight" : 495,
"to_hit" : -1,
"color" : "light_gray",
"symbol" : ":",
@@ -163,7 +157,6 @@
"cutting" : 0,
"burst_modifier" : 0,
"recoil_modifier" : 0,
"rarity" : 8,
"price" : 560,
"loudness_modifier" : 0
},
@@ -176,7 +169,7 @@
"damage_modifier" : 0,
"ammo_modifier" : "NULL",
"description" : "Completely doubles the ammunition capacity of your firearm, but the added bulk reduces accuracy and increases recoil.",
"weight" : 2,
"weight" : 660,
"to_hit" : 0,
"color" : "light_gray",
"symbol" : ":",
@@ -187,7 +180,6 @@
"cutting" : 0,
"burst_modifier" : 0,
"recoil_modifier" : 2,
"rarity" : 4,
"price" : 720,
"loudness_modifier" : 0
},
@@ -200,7 +192,7 @@
"damage_modifier" : 0,
"ammo_modifier" : "NULL",
"description" : "A spare magazine you can keep on hand to make reloads faster, but must itself be reloaded before it can be used again.",
"weight" : 1,
"weight" : 330,
"to_hit" : 0,
"color" : "light_gray",
"symbol" : ":",
@@ -211,7 +203,6 @@
"cutting" : 0,
"burst_modifier" : 0,
"recoil_modifier" : 0,
"rarity" : 15,
"price" : 200,
"loudness_modifier" : 0
},
@@ -224,7 +215,7 @@
"damage_modifier" : 0,
"ammo_modifier" : "NULL",
"description" : "A bag that hangs off the side of your gun and catches ejected casings so you don't have to pick them up.",
"weight" : 1,
"weight" : 114,
"to_hit" : 0,
"color" : "light_gray",
"symbol" : ":",
@@ -235,7 +226,6 @@
"cutting" : 0,
"burst_modifier" : 0,
"recoil_modifier" : 0,
"rarity" : 15,
"price" : 200,
"loudness_modifier" : 0
},
@@ -248,7 +238,7 @@
"damage_modifier" : -2,
"ammo_modifier" : "NULL",
"description" : "An advanced unit that straps onto the side of your firearm and reduces vibration, greatly reducing recoil and increasing accuracy. However, it also takes up space in the magazine slot, reducing ammo capacity.",
"weight" : 2,
"weight" : 286,
"to_hit" : -3,
"color" : "blue",
"symbol" : ":",
@@ -259,7 +249,6 @@
"cutting" : 0,
"burst_modifier" : 0,
"recoil_modifier" : -8,
"rarity" : 4,
"price" : 680,
"loudness_modifier" : 0
},
@@ -272,7 +261,7 @@
"damage_modifier" : 0,
"ammo_modifier" : "NULL",
"description" : "An improved blowback mechanism makes your firearm's automatic fire faster, at the cost of reduced accuracy and increased noise.",
"weight" : 1,
"weight" : 114,
"to_hit" : 0,
"color" : "red",
"symbol" : ":",
@@ -283,7 +272,6 @@
"cutting" : 0,
"burst_modifier" : 6,
"recoil_modifier" : 0,
"rarity" : 3,
"price" : 700,
"loudness_modifier" : 4
},
@@ -291,7 +279,7 @@
"type" : "GUNMOD",
"id" : "autofire",
"name" : "auto-fire mechanism",
"weight" : 2,
"weight" : 226,
"color" : "red",
"burst_modifier" : 3,
"loudness_modifier" : 2,
@@ -308,7 +296,6 @@
"damage_modifier" : 0,
"acceptable_ammo" : ["22", "9mm", "38", "40", "57", "46"],
"mod_targets" : ["pistol"],
"rarity" : 2,
"bashing" : 2,
"ammo_modifier" : "NULL"
},
@@ -316,7 +303,7 @@
"type" : "GUNMOD",
"id" : "retool_9mm",
"name" : "9mm caliber retool",
"weight" : 1,
"weight" : 114,
"color" : "green",
"burst_modifier" : 0,
"loudness_modifier" : 0,
@@ -333,7 +320,6 @@
"damage_modifier" : 0,
"acceptable_ammo" : ["38", "40", "44", "45"],
"mod_targets" : ["pistol", "smg"],
"rarity" : 3,
"bashing" : 0,
"ammo_modifier" : "9mm"
},
@@ -341,7 +327,7 @@
"type" : "GUNMOD",
"id" : "retool_22",
"name" : ".22 caliber retool",
"weight" : 1,
"weight" : 114,
"color" : "green",
"burst_modifier" : 0,
"loudness_modifier" : 0,
@@ -358,7 +344,6 @@
"damage_modifier" : 0,
"acceptable_ammo" : ["9mm", "38", "40", "57", "46", "762", "223"],
"mod_targets" : ["pistol", "smg", "rifle"],
"rarity" : 2,
"bashing" : -2,
"ammo_modifier" : "22"
},
@@ -366,7 +351,7 @@
"type" : "GUNMOD",
"id" : "retool_57",
"name" : "5.7mm caliber retool",
"weight" : 1,
"weight" : 114,
"color" : "green",
"burst_modifier" : 0,
"loudness_modifier" : 0,
@@ -383,7 +368,6 @@
"damage_modifier" : 0,
"acceptable_ammo" : ["22", "9mm", "38"],
"mod_targets" : ["pistol", "smg"],
"rarity" : 1,
"bashing" : -3,
"ammo_modifier" : "57"
},
@@ -391,7 +375,7 @@
"type" : "GUNMOD",
"id" : "retool_46",
"name" : "4.6mm caliber retool",
"weight" : 1,
"weight" : 114,
"color" : "green",
"burst_modifier" : 0,
"loudness_modifier" : 0,
@@ -408,7 +392,6 @@
"damage_modifier" : 0,
"acceptable_ammo" : ["22", "9mm", "38"],
"mod_targets" : ["pistol", "smg"],
"rarity" : 1,
"bashing" : -3,
"ammo_modifier" : "46"
},
@@ -416,7 +399,7 @@
"type" : "GUNMOD",
"id" : "retool_308",
"name" : ".308 caliber retool",
"weight" : 1,
"weight" : 114,
"color" : "green",
"burst_modifier" : 0,
"loudness_modifier" : 0,
@@ -433,7 +416,6 @@
"damage_modifier" : 0,
"acceptable_ammo" : ["shot", "762", "223", "3006"],
"mod_targets" : ["shotgun", "rifle"],
"rarity" : 2,
"bashing" : 4,
"ammo_modifier" : "308"
},
@@ -441,7 +423,7 @@
"type" : "GUNMOD",
"id" : "retool_223",
"name" : ".223 caliber retool",
"weight" : 1,
"weight" : 114,
"color" : "green",
"burst_modifier" : 0,
"loudness_modifier" : 0,
@@ -458,7 +440,6 @@
"damage_modifier" : 0,
"acceptable_ammo" : ["shot", "762", "3006", "308"],
"mod_targets" : ["shotgun", "rifle"],
"rarity" : 2,
"bashing" : 4,
"ammo_modifier" : "223"
},
@@ -471,7 +452,7 @@
"damage_modifier" : 6,
"ammo_modifier" : "NULL",
"description" : "This is a complete conversion kit, designed to turn a rifle into a powerful battle rifle. It reduces accuracy, and increases noise and recoil, but also increases damage, ammo capacity, and fire rate.",
"weight" : 3,
"weight" : 589,
"to_hit" : -1,
"color" : "magenta",
"symbol" : ":",
@@ -482,7 +463,6 @@
"cutting" : 0,
"burst_modifier" : 4,
"recoil_modifier" : 4,
"rarity" : 1,
"price" : 680,
"loudness_modifier" : 4
},
@@ -495,7 +475,7 @@
"damage_modifier" : 8,
"ammo_modifier" : "NULL",
"description" : "This is a complete conversion kit, designed to turn a rifle into a deadly sniper rifle. It decreases ammo capacity, and removes any automatic fire capabilities, but also increases accuracy and damage.",
"weight" : 2,
"weight" : 589,
"to_hit" : -1,
"color" : "green",
"symbol" : ":",
@@ -506,7 +486,6 @@
"cutting" : 0,
"burst_modifier" : -99,
"recoil_modifier" : 0,
"rarity" : 1,
"price" : 660,
"loudness_modifier" : 3
},
@@ -514,7 +493,7 @@
"type" : "GUNMOD",
"id" : "m203",
"name" : "M203",
"weight" : 1,
"weight" : 1360,
"color" : "light_red",
"burst_modifier" : 0,
"loudness_modifier" : 0,
@@ -530,16 +509,39 @@
"recoil_modifier" : 0,
"damage_modifier" : 0,
"mod_targets" : ["rifle"],
"rarity" : 2,
"bashing" : 2,
"flags" : ["MODE_AUX"],
"ammo_modifier" : "40mm"
},
{
"type" : "GUNMOD",
"id" : "pipe_launcher40mm",
"name" : "40mm pipe launcher",
"weight" : 2080,
"color" : "light_gray",
"burst_modifier" : 0,
"loudness_modifier" : 0,
"to_hit" : -1,
"dispersion_modifier" : 4,
"price" : 250,
"clip_size_modifier" : 1,
"description" : "This is a home built launcher tube that can be attached to almost any rifle. It allows a single 40mm grenade to be loaded and fired.",
"symbol" : ":",
"material" : ["steel", "plastic"],
"volume" : 5,
"cutting" : 0,
"recoil_modifier" : 0,
"damage_modifier" : 0,
"mod_targets" : ["rifle"],
"bashing" : 4,
"flags" : ["MODE_AUX"],
"ammo_modifier" : "40mm"
},
{
"type" : "GUNMOD",
"id" : "bayonet",
"name" : "bayonet",
"weight" : 2,
"weight" : 387,
"color" : "light_cyan",
"burst_modifier" : 0,
"loudness_modifier" : 0,
@@ -555,7 +557,6 @@
"recoil_modifier" : 3,
"damage_modifier" : 0,
"mod_targets" : ["shotgun", "smg", "rifle"],
"rarity" : 6,
"bashing" : 0,
"flags" : ["STAB"],
"ammo_modifier" : "NULL"
@@ -564,7 +565,7 @@
"type" : "GUNMOD",
"id" : "u_shotgun",
"name" : "underslung shotgun",
"weight" : 1,
"weight" : 1500,
"color" : "light_red",
"burst_modifier" : 0,
"loudness_modifier" : 0,
@@ -580,7 +581,30 @@
"recoil_modifier" : 0,
"damage_modifier" : 0,
"mod_targets" : ["rifle"],
"rarity" : 2,
"bashing" : 2,
"flags" : ["MODE_AUX"],
"ammo_modifier" : "shot"
},
{
"type" : "GUNMOD",
"id" : "masterkey",
"name" : "masterkey shotgun",
"weight" : 2600,
"color" : "light_red",
"burst_modifier" : 0,
"loudness_modifier" : 0,
"to_hit" : -1,
"dispersion_modifier" : 1,
"price" : 950,
"clip_size_modifier" : 4,
"description" : "A minimalist pump action shotgun, which can be mounted under the barrel of many rifles. It allows a total of four shotgun shells to be loaded and fired.",
"symbol" : ":",
"material" : ["steel", "null"],
"volume" : 2,
"cutting" : 0,
"recoil_modifier" : 0,
"damage_modifier" : 0,
"mod_targets" : ["rifle"],
"bashing" : 2,
"flags" : ["MODE_AUX"],
"ammo_modifier" : "shot"
@@ -589,7 +613,7 @@
"type" : "GUNMOD",
"id" : "gun_crossbow",
"name" : "rail-mounted crossbow",
"weight" : 1,
"weight" : 1450,
"color" : "light_red",
"burst_modifier" : 0,
"loudness_modifier" : 0,
@@ -605,9 +629,216 @@
"recoil_modifier" : 0,
"damage_modifier" : 0,
"mod_targets" : ["shotgun", "rifle"],
"rarity" : 2,
"bashing" : 2,
"flags" : ["MODE_AUX", "STR_RELOAD"],
"ammo_modifier" : "bolt"
},
{
"type" : "GUNMOD",
"id" : "laser_sight",
"name" : "laser sight",
"clip_size_modifier" : 0,
"dispersion_modifier" : -4,
"damage_modifier" : 0,
"ammo_modifier" : "NULL",
"description" : "A small visible-light laser that mounts on a firearm to enhance ease and speed of target acquisition. Aside from increased weight, there are no drawbacks.",
"weight" : 100,
"to_hit" : -1,
"color" : "dark_gray",
"symbol" : ":",
"material" : ["plastic", "steel"],
"mod_targets" : ["smg", "rifle", "pistol", "shotgun"],
"volume" : 1,
"bashing" : 0,
"cutting" : 0,
"burst_modifier" : 0,
"recoil_modifier" : 0,
"price" : 680,
"loudness_modifier" : 0
},
{
"type" : "GUNMOD",
"id" : "improve_sights",
"name" : "improved iron sights",
"clip_size_modifier" : 0,
"dispersion_modifier" : -2,
"damage_modifier" : 0,
"ammo_modifier" : "NULL",
"description" : "Improves the weapon's ironsights, increasing accuracy. No drawbacks.",
"weight" : 60,
"to_hit" : -1,
"color" : "dark_gray",
"symbol" : ":",
"material" : ["plastic", "steel"],
"mod_targets" : ["smg", "rifle", "pistol", "shotgun"],
"volume" : 0,
"bashing" : 0,
"cutting" : 0,
"burst_modifier" : 0,
"recoil_modifier" : 0,
"price" : 720,
"loudness_modifier" : 0
},
{
"type" : "GUNMOD",
"id" : "red_dot_sight",
"name" : "red dot sight",
"clip_size_modifier" : 0,
"dispersion_modifier" : -5,
"damage_modifier" : 0,
"ammo_modifier" : "NULL",
"description" : "Adds a red dot optic to the top of your gun, replacing the iron sights. Increases accuracy and weight.",
"weight" : 300,
"to_hit" : -1,
"color" : "dark_gray",
"symbol" : ":",
"material" : ["plastic", "steel"],
"mod_targets" : ["smg", "rifle", "shotgun"],
"volume" : 1,
"bashing" : 0,
"cutting" : 0,
"burst_modifier" : 0,
"recoil_modifier" : 0,
"price" : 680,
"loudness_modifier" : 0
},
{
"type" : "GUNMOD",
"id" : "holo_sight",
"name" : "holographic sight",
"clip_size_modifier" : 0,
"dispersion_modifier" : -6,
"damage_modifier" : 0,
"ammo_modifier" : "NULL",
"description" : "Adds a holographic sight. Used extensively by military forces, it increases accuracy and weight but is a step up from a red dot sight.",
"weight" : 400,
"to_hit" : -2,
"color" : "dark_gray",
"symbol" : ":",
"material" : ["plastic", "steel"],
"mod_targets" : ["smg", "rifle","shotgun"],
"volume" : 2,
"bashing" : 0,
"cutting" : 0,
"burst_modifier" : 0,
"recoil_modifier" : 0,
"price" : 680,
"loudness_modifier" : 0
},
{
"type" : "GUNMOD",
"id" : "rifle_scope",
"name" : "rifle scope",
"clip_size_modifier" : 0,
"dispersion_modifier" : -8,
"damage_modifier" : 0,
"ammo_modifier" : "NULL",
"description" : "A long ranged rifle scope used by civilians and military alike, increases weight but improves accuracy greatly.",
"weight" : 450,
"to_hit" : -3,
"color" : "dark_gray",
"symbol" : ":",
"material" : ["plastic", "steel"],
"mod_targets" : ["rifle"],
"volume" : 3,
"bashing" : 0,
"cutting" : 0,
"burst_modifier" : 0,
"recoil_modifier" : 0,
"price" : 680,
"loudness_modifier" : 0
},
{
"type" : "GUNMOD",
"id" : "barrel_ported",
"name" : "ported barrel",
"clip_size_modifier" : 0,
"dispersion_modifier" : 1,
"damage_modifier" : 0,
"ammo_modifier" : "NULL",
"description" : "A ported barrel redirects exhaust gases to compensate for muzzle climb, improves recoil but increases noise and reduces accuracy slightly.",
"weight" : 225,
"to_hit" : -3,
"color" : "light_gray",
"symbol" : ":",
"material" : ["steel", "null"],
"mod_targets" : ["smg", "rifle", "pistol", "shotgun"],
"volume" : 2,
"bashing" : 0,
"cutting" : 0,
"burst_modifier" : 0,
"recoil_modifier" : -4,
"price" : 720,
"loudness_modifier" : 6
},
{
"type" : "GUNMOD",
"id" : "pistol_grip",
"name" : "ergonomic grip",
"clip_size_modifier" : 0,
"dispersion_modifier" : -2,
"damage_modifier" : 0,
"ammo_modifier" : "NULL",
"description" : "A set of ergonomic replacement furniture for a pistol, improves recoil and accuracy. Aside from increased weight, there are no drawbacks.",
"weight" : 125,
"to_hit" : -3,
"color" : "dark_gray",
"symbol" : ":",
"material" : ["steel", "null"],
"mod_targets" : ["pistol"],
"volume" : 1,
"bashing" : 0,
"cutting" : 0,
"burst_modifier" : 0,
"recoil_modifier" : -2,
"price" : 380,
"loudness_modifier" : 0
},
{
"type" : "GUNMOD",
"id" : "adjustable_stock",
"name" : "adjustable stock",
"clip_size_modifier" : 0,
"dispersion_modifier" : -2,
"damage_modifier" : 0,
"ammo_modifier" : "NULL",
"description" : "An adjustable replacement stock, improves recoil and accuracy. Aside from increased weight, there are no drawbacks.",
"weight" : 350,
"to_hit" : -3,
"color" : "dark_gray",
"symbol" : ":",
"material" : ["plastic", "steel"],
"mod_targets" : ["smg", "rifle", "shotgun"],
"volume" : 2,
"bashing" : 0,
"cutting" : 0,
"burst_modifier" : 0,
"recoil_modifier" : -2,
"price" : 380,
"loudness_modifier" : 0
},
{
"type" : "GUNMOD",
"id" : "pistol_stock",
"name" : "pistol stock",
"clip_size_modifier" : 0,
"dispersion_modifier" : -1,
"damage_modifier" : 0,
"ammo_modifier" : "NULL",
"description" : "An add on stock for handguns, improves recoil and accuracy. Aside from increased weight, there are no drawbacks.",
"weight" : 350,
"to_hit" : -3,
"color" : "dark_gray",
"symbol" : ":",
"material" : ["plastic", "steel"],
"mod_targets" : ["pistol"],
"volume" : 2,
"bashing" : 0,
"cutting" : 0,
"burst_modifier" : 0,
"recoil_modifier" : -5,
"price" : 380,
"loudness_modifier" : 0
}
]
+519 -172
View File
File diff suppressed because it is too large Load Diff
+1156 -374
View File
File diff suppressed because it is too large Load Diff
+13
View File
@@ -258,5 +258,18 @@
"elec_resist" : 0,
"fire_resist" : 2,
"density" : 70
},
{
"ident" : "gold",
"name" : "Gold",
"bash_resist" : 1,
"cut_resist" : 1,
"bash_dmg_verb" : "dented",
"cut_dmg_verb" : "scratched",
"dmg_adj" : ["marked", "dented", "smashed", "shattered"],
"acid_resist" : 3,
"elec_resist" : 0,
"fire_resist" : 1,
"density" : 130
}
]
+30
View File
@@ -49,6 +49,7 @@
{ "monster" : "mon_zombie_grabber", "freq" : 70, "multiplier" : 1 },
{ "monster" : "mon_skeleton", "freq" : 30, "multiplier" : 2 },
{ "monster" : "mon_zombie_smoker", "freq" : 30, "multiplier" : 5 },
{ "monster" : "mon_zombie_swimmer", "freq" : 20, "multiplier" : 2 },
{ "monster" : "mon_zombie_shrieker", "freq" : 30, "multiplier" : 5 },
{ "monster" : "mon_zombie_spitter", "freq" : 30, "multiplier" : 5 },
{ "monster" : "mon_zombie_electric", "freq" : 30, "multiplier" : 5 },
@@ -128,6 +129,15 @@
{ "monster" : "mon_skitterbot", "freq" : 245, "multiplier" : 0 }
]
},
{
"name" : "GROUP_ICE_LAB",
"default" : "mon_zombie_scientist",
"monsters" : [
{ "monster" : "mon_blob_small", "freq" : 25, "multiplier" : 0 },
{ "monster" : "mon_manhack", "freq" : 245, "multiplier" : 0 },
{ "monster" : "mon_skitterbot", "freq" : 245, "multiplier" : 0 }
]
},
{
"name" : "GROUP_NETHER",
"default" : "mon_blank",
@@ -187,6 +197,7 @@
{ "monster" : "mon_zombie_grabber", "freq" : 70, "multiplier" : 1 },
{ "monster" : "mon_skeleton", "freq" : 30, "multiplier" : 2 },
{ "monster" : "mon_zombie_smoker", "freq" : 30, "multiplier" : 5 },
{ "monster" : "mon_zombie_swimmer", "freq" : 20, "multiplier" : 2 },
{ "monster" : "mon_zombie_shrieker", "freq" : 30, "multiplier" : 5 },
{ "monster" : "mon_zombie_spitter", "freq" : 30, "multiplier" : 5 },
{ "monster" : "mon_zombie_electric", "freq" : 30, "multiplier" : 5 },
@@ -208,6 +219,7 @@
{ "monster" : "mon_zombie_grabber", "freq" : 70, "multiplier" : 1 },
{ "monster" : "mon_skeleton", "freq" : 30, "multiplier" : 2 },
{ "monster" : "mon_zombie_smoker", "freq" : 30, "multiplier" : 5 },
{ "monster" : "mon_zombie_swimmer", "freq" : 20, "multiplier" : 2 },
{ "monster" : "mon_zombie_shrieker", "freq" : 30, "multiplier" : 5 },
{ "monster" : "mon_zombie_spitter", "freq" : 30, "multiplier" : 5 },
{ "monster" : "mon_zombie_electric", "freq" : 30, "multiplier" : 5 },
@@ -228,6 +240,7 @@
{ "monster" : "mon_zombie_grabber", "freq" : 70, "multiplier" : 1 },
{ "monster" : "mon_skeleton", "freq" : 30, "multiplier" : 2 },
{ "monster" : "mon_zombie_smoker", "freq" : 30, "multiplier" : 5 },
{ "monster" : "mon_zombie_swimmer", "freq" : 20, "multiplier" : 2 },
{ "monster" : "mon_zombie_shrieker", "freq" : 30, "multiplier" : 5 },
{ "monster" : "mon_zombie_spitter", "freq" : 30, "multiplier" : 5 },
{ "monster" : "mon_zombie_electric", "freq" : 30, "multiplier" : 5 },
@@ -248,6 +261,7 @@
{ "monster" : "mon_zombie_grabber", "freq" : 70, "multiplier" : 1 },
{ "monster" : "mon_skeleton", "freq" : 30, "multiplier" : 2 },
{ "monster" : "mon_zombie_smoker", "freq" : 30, "multiplier" : 5 },
{ "monster" : "mon_zombie_swimmer", "freq" : 20, "multiplier" : 2 },
{ "monster" : "mon_zombie_shrieker", "freq" : 30, "multiplier" : 5 },
{ "monster" : "mon_zombie_spitter", "freq" : 30, "multiplier" : 5 },
{ "monster" : "mon_zombie_electric", "freq" : 180, "multiplier" : 5 },
@@ -268,6 +282,7 @@
{ "monster" : "mon_zombie_grabber", "freq" : 70, "multiplier" : 1 },
{ "monster" : "mon_skeleton", "freq" : 30, "multiplier" : 2 },
{ "monster" : "mon_zombie_smoker", "freq" : 30, "multiplier" : 5 },
{ "monster" : "mon_zombie_swimmer", "freq" : 20, "multiplier" : 2 },
{ "monster" : "mon_zombie_shrieker", "freq" : 30, "multiplier" : 5 },
{ "monster" : "mon_zombie_spitter", "freq" : 30, "multiplier" : 5 },
{ "monster" : "mon_zombie_electric", "freq" : 30, "multiplier" : 5 },
@@ -285,5 +300,20 @@
"monsters" : [
{ "monster" : "mon_zombie_soldier", "freq" : 50, "multiplier" : 0 }
]
},
{
"name" : "GROUP_PUBLICWORKERS",
"default" : "mon_zombie_electric",
"monsters" : [
{ "monster" : "mon_zombie_grabber", "freq" : 100, "multiplier" : 1 },
{ "monster" : "mon_zombie_smoker", "freq" : 100, "multiplier" : 5 },
{ "monster" : "mon_zombie_shrieker", "freq" : 100, "multiplier" : 5 },
{ "monster" : "mon_zombie_spitter", "freq" : 100, "multiplier" : 5 },
{ "monster" : "mon_zombie", "freq" : 100, "multiplier" : 5 },
{ "monster" : "mon_zombie_brute", "freq" : 20, "multiplier" : 15 },
{ "monster" : "mon_zombie_hulk", "freq" : 1, "multiplier" : 50 },
{ "monster" : "mon_zombie_master", "freq" : 1, "multiplier" : 25 },
{ "monster" : "mon_crow", "freq" : 1, "multiplier" : 0 }
]
}
]
File diff suppressed because it is too large Load Diff
+17
View File
@@ -8,6 +8,8 @@
{ "name" : "Adrian", "gender" : "male", "usage" : "given" },
{ "name" : "Aidan", "gender" : "male", "usage" : "given" },
{ "name" : "Aiden", "gender" : "male", "usage" : "given" },
{ "name" : "Aizawa", "gender" : "female", "usage" : "given" },
{ "name" : "Akiko", "gender" : "female", "usage" : "given" },
{ "name" : "Alex", "gender" : "male", "usage" : "given" },
{ "name" : "Alexa", "gender" : "female", "usage" : "given" },
{ "name" : "Alexander", "gender" : "male", "usage" : "given" },
@@ -83,6 +85,7 @@
{ "name" : "Cooper", "gender" : "male", "usage" : "given" },
{ "name" : "Cooper", "gender" : "unisex", "usage" : "family" },
{ "name" : "Cox", "gender" : "unisex", "usage" : "family" },
{ "name" : "Daisuki", "gender" : "male", "usage" : "given" },
{ "name" : "Daniel", "gender" : "male", "usage" : "given" },
{ "name" : "David", "gender" : "male", "usage" : "given" },
{ "name" : "Davis", "gender" : "unisex", "usage" : "family" },
@@ -112,6 +115,7 @@
{ "name" : "Gabrielle", "gender" : "female", "usage" : "given" },
{ "name" : "Garcia", "gender" : "unisex", "usage" : "family" },
{ "name" : "Gavin", "gender" : "male", "usage" : "given" },
{ "name" : "Gendo", "gender" : "male", "usage" : "given" },
{ "name" : "Genesis", "gender" : "female", "usage" : "given" },
{ "name" : "Gianna", "gender" : "female", "usage" : "given" },
{ "name" : "Gonzales", "gender" : "unisex", "usage" : "family" },
@@ -127,9 +131,11 @@
{ "name" : "Harris", "gender" : "unisex", "usage" : "family" },
{ "name" : "Hayden", "gender" : "male", "usage" : "given" },
{ "name" : "Hayes", "gender" : "unisex", "usage" : "family" },
{ "name" : "Heather", "gender" : "female", "usage" : "given" },
{ "name" : "Henderson", "gender" : "unisex", "usage" : "family" },
{ "name" : "Henry", "gender" : "male", "usage" : "given" },
{ "name" : "Hernandez", "gender" : "unisex", "usage" : "family" },
{ "name" : "Hikari", "gender" : "female", "usage" : "given" },
{ "name" : "Hill", "gender" : "unisex", "usage" : "family" },
{ "name" : "Howard", "gender" : "unisex", "usage" : "family" },
{ "name" : "Hughes", "gender" : "unisex", "usage" : "family" },
@@ -172,18 +178,22 @@
{ "name" : "Julian", "gender" : "male", "usage" : "given" },
{ "name" : "Justin", "gender" : "male", "usage" : "given" },
{ "name" : "Kaden", "gender" : "male", "usage" : "given" },
{ "name" : "Kaiko", "gender" : "unisex", "usage" : "family" },
{ "name" : "Kaitlin", "gender" : "female", "usage" : "given" },
{ "name" : "Katelyn", "gender" : "female", "usage" : "given" },
{ "name" : "Katie", "gender" : "female", "usage" : "given" },
{ "name" : "Kayla", "gender" : "female", "usage" : "given" },
{ "name" : "Kaylee", "gender" : "female", "usage" : "given" },
{ "name" : "Keita", "gender" : "male", "usage" : "given" },
{ "name" : "Kelly", "gender" : "unisex", "usage" : "family" },
{ "name" : "Kevin", "gender" : "male", "usage" : "given" },
{ "name" : "Kim", "gender" : "female", "usage" : "given" },
{ "name" : "Kimberly", "gender" : "female", "usage" : "given" },
{ "name" : "King", "gender" : "unisex", "usage" : "family" },
{ "name" : "Kira", "gender" : "male", "usage" : "given" },
{ "name" : "Kyle", "gender" : "male", "usage" : "given" },
{ "name" : "Kylie", "gender" : "female", "usage" : "given" },
{ "name" : "Kyosuki", "gender" : "male", "usage" : "given" },
{ "name" : "Landon", "gender" : "male", "usage" : "given" },
{ "name" : "Lauren", "gender" : "female", "usage" : "given" },
{ "name" : "Layla", "gender" : "female", "usage" : "given" },
@@ -222,13 +232,16 @@
{ "name" : "Morgan", "gender" : "unisex", "usage" : "family" },
{ "name" : "Morris", "gender" : "unisex", "usage" : "family" },
{ "name" : "Murphy", "gender" : "unisex", "usage" : "family" },
{ "name" : "Nakiya", "gender" : "unisex", "usage" : "family" },
{ "name" : "Natalie", "gender" : "female", "usage" : "given" },
{ "name" : "Nathan", "gender" : "male", "usage" : "given" },
{ "name" : "Nathaniel", "gender" : "male", "usage" : "given" },
{ "name" : "Natsuki", "gender" : "female", "usage" : "given" },
{ "name" : "Nelson", "gender" : "unisex", "usage" : "family" },
{ "name" : "Nevaeh", "gender" : "female", "usage" : "given" },
{ "name" : "Nicholas", "gender" : "male", "usage" : "given" },
{ "name" : "Noah", "gender" : "male", "usage" : "given" },
{ "name" : "Nuku", "gender" : "female", "usage" : "given" },
{ "name" : "Olivia", "gender" : "female", "usage" : "given" },
{ "name" : "Owen", "gender" : "male", "usage" : "given" },
{ "name" : "Paige", "gender" : "female", "usage" : "given" },
@@ -271,6 +284,7 @@
{ "name" : "Sophie", "gender" : "female", "usage" : "given" },
{ "name" : "Stewart", "gender" : "unisex", "usage" : "family" },
{ "name" : "Sydney", "gender" : "female", "usage" : "given" },
{ "name" : "Takeuchi", "gender" : "male", "usage" : "given" },
{ "name" : "Taylor", "gender" : "unisex", "usage" : "family" },
{ "name" : "Thomas", "gender" : "male", "usage" : "given" },
{ "name" : "Thomas", "gender" : "unisex", "usage" : "family" },
@@ -281,6 +295,7 @@
{ "name" : "Turner", "gender" : "unisex", "usage" : "family" },
{ "name" : "Tyler", "gender" : "male", "usage" : "given" },
{ "name" : "Valeria", "gender" : "female", "usage" : "given" },
{ "name" : "Van Wilde", "gender" : "unisex", "usage" : "family" },
{ "name" : "Vanessa", "gender" : "female", "usage" : "given" },
{ "name" : "Victoria", "gender" : "female", "usage" : "given" },
{ "name" : "Walker", "gender" : "unisex", "usage" : "family" },
@@ -288,6 +303,7 @@
{ "name" : "Washington", "gender" : "unisex", "usage" : "family" },
{ "name" : "Watson", "gender" : "unisex", "usage" : "family" },
{ "name" : "White", "gender" : "unisex", "usage" : "family" },
{ "name" : "West", "gender" : "unisex", "usage" : "family" },
{ "name" : "William", "gender" : "male", "usage" : "given" },
{ "name" : "Williams", "gender" : "unisex", "usage" : "family" },
{ "name" : "Wilson", "gender" : "unisex", "usage" : "family" },
@@ -296,6 +312,7 @@
{ "name" : "Wyatt", "gender" : "male", "usage" : "given" },
{ "name" : "Xavier", "gender" : "male", "usage" : "given" },
{ "name" : "Young", "gender" : "unisex", "usage" : "family" },
{ "name" : "Yuki", "gender" : "female", "usage" : "given" },
{ "name" : "Zachary", "gender" : "male", "usage" : "given" },
{ "name" : "Zoe", "gender" : "female", "usage" : "given" },
{ "name" : "Zoey", "gender" : "female", "usage" : "given" },
+934
View File
@@ -0,0 +1,934 @@
[
{
"sound" : "\"Hello?\"",
"volume" : 40
},
{
"sound" : "\"Who's there?\"",
"volume" : 40
},
{
"sound" : "\"Can you help me?\"",
"volume" : 30
},
{
"sound" : "\"Over here!\"",
"volume" : 40
},
{
"sound" : "\"Can you repeat that?\"",
"volume" : 30
},
{
"sound" : "\"You're just copying me, aren't you?\"",
"volume" : 30
},
{
"sound" : "\"I'm not afraid of you!\"",
"volume" : 40
},
{
"sound" : "\"Come here!\"",
"volume" : 40
},
{
"sound" : "\"Please, don't!\"",
"volume" : 40
},
{
"sound" : "a horrified scream!",
"volume" : 60
},
{
"sound" : "a little girl's wailing!",
"volume" : 50
},
{
"sound" : "\"So, what is this thing supposed to be, exactly?\"",
"volume" : 20
},
{
"sound" : "\"Uncategorized object seven-seven-three-four.\"",
"volume" : 20
},
{
"sound" : "\"It came from the other side of one of the apertures.\"",
"volume" : 20
},
{
"sound" : "\"Mommy, help!\"",
"volume" : 40
},
{
"sound" : "\"We're still trying to figure out what makes it tick.\"",
"volume" : 20
},
{
"sound" : "\"We're not even sure what it is.\"",
"volume" : 20
},
{
"sound" : "\"The cell structure is unlike any we've ever seen.\"",
"volume" : 20
},
{
"sound" : "\"It does seem to have some form of higher level brain functioning.\"",
"volume" : 20
},
{
"sound" : "\"Problem solving, memory retention, that sort of thing.\"",
"volume" : 20
},
{
"sound" : "\"There appear to be some anomalous aspects to the mimicry.\"",
"volume" : 20
},
{
"sound" : "\"Members of the species have some kind of neurocognitive link.\"",
"volume" : 20
},
{
"sound" : "\"This one's repeating phrases that the previous specimen was exposed to.\"",
"volume" : 20
},
{
"sound" : "a child shrieking!",
"volume" : 60
},
{
"sound" : "\"Oh God, my leg, Oh God!\"",
"volume" : 60
},
{
"sound" : "a long cry of agony!",
"volume" : 60
},
{
"sound" : "\"You mean it's not just parroting us?\"",
"volume" : 20
},
{
"sound" : "\"It's parroting us, but we're uncertain as to how or why.\"",
"volume" : 20
},
{
"sound" : "\"It may be a mechanism for attracting prey.\"",
"volume" : 20
},
{
"sound" : "\"It could even be a way of trying to scare us off.\"",
"volume" : 20
},
{
"sound" : "\"We just don't know.\"",
"volume" : 20
},
{
"sound" : "an anguished wail!",
"volume" : 60
},
{
"sound" : "\"You're gonna rot in hell for this!\"",
"volume" : 60
},
{
"sound" : "\"You hear me!?\"",
"volume" : 50
},
{
"sound" : "\"You're gonna rot in hell, you pieces of shit!\"",
"volume" : 60
},
{
"sound" : "\"Like we said, we have no idea what it's thinking.\"",
"volume" : 20
},
{
"sound" : "\"Is that glass electrified?\"",
"volume" : 20
},
{
"sound" : "\"Why don't you touch it and find out?\"",
"volume" : 20
},
{
"sound" : "\"Of course it is.\"",
"volume" : 20
},
{
"sound" : "\"What'll happen if the power goes out?\"",
"volume" : 20
},
{
"sound" : "\"Don't worry about it.\"",
"volume" : 20
},
{
"sound" : "\"Don't worry.\"",
"volume" : 20
},
{
"sound" : "\"There are seven backup generators.\"",
"volume" : 20
},
{
"sound" : "\"And what if all the backups fail?\"",
"volume" : 20
},
{
"sound" : "\"We'd have to terminate the specimen.\"",
"volume" : 20
},
{
"sound" : "\"The glass alone won't keep us safe for very long.\"",
"volume" : 20
},
{
"sound" : "\"That fuckin' thing is horrible, man, it gives me the creeps.\"",
"volume" : 20
},
{
"sound" : "\"It's probably more scared of us than we are of it.\"",
"volume" : 20
},
{
"sound" : "\"Somehow, I doubt that.\"",
"volume" : 20
},
{
"sound" : "\"Hey, we got other specimens that could withstand a grenade.\"",
"volume" : 20
},
{
"sound" : "\"And that's supposed to comfort me?\"",
"volume" : 20
},
{
"sound" : "\"At least we know they can die.\"",
"volume" : 20
},
{
"sound" : "\"U-O Seven-Seven-Three-Four.\"",
"volume" : 20
},
{
"sound" : "\"Individual instances of U-O Seven-Seven-Three-Four.\"",
"volume" : 20
},
{
"sound" : "\"To be kept in a standard biohazardous containment chamber.\"",
"volume" : 20
},
{
"sound" : "\"Until such time as more permanent arrangements are made.\"",
"volume" : 20
},
{
"sound" : "\"Shows a noted preference for human brain tissue.\"",
"volume" : 20
},
{
"sound" : "\"Destroy the specimen if it begins to interact with the lock.\"",
"volume" : 20
},
{
"sound" : "\"Kill them all and let God sort them out!\"",
"volume" : 40
},
{
"sound" : "\"I watched a snail crawl along the edge of a straight razor.\"",
"volume" : 40
},
{
"sound" : "\"I've seen horrors, horrors that you've seen.\"",
"volume" : 40
},
{
"sound" : "\"I love the smell of napalm in the morning.\"",
"volume" : 40
},
{
"sound" : "\"This is the way the fuckin' world ends.\"",
"volume" : 40
},
{
"sound" : "\"Look at this fuckin' shit we're in, man.\"",
"volume" : 40
},
{
"sound" : "\"Every man has got a breaking point.\"",
"volume" : 40
},
{
"sound" : "\"I'ma cut those fuckin' tentacles off, bitch!\"",
"volume" : 30
},
{
"sound" : "\"Watch you bleed out!\"",
"volume" : 40
},
{
"sound" : "\"I wonder if it understands us.\"",
"volume" : 20
},
{
"sound" : "\"Do you understand what I'm saying?\"",
"volume" : 30
},
{
"sound" : "\"Look, it's responding!\"",
"volume" : 40
},
{
"sound" : "\"That's the first time it moved all morning.\"",
"volume" : 20
},
{
"sound" : "\"I'm certain it's trying to understand us.\"",
"volume" : 20
},
{
"sound" : "\"I'm not convinced it can actually comprehend us.\"",
"volume" : 20
},
{
"sound" : "\"It's just repeating us.\"",
"volume" : 20
},
{
"sound" : "\"Just being an alien creature doesn't mean it's intelligent.\"",
"volume" : 20
},
{
"sound" : "\"Just because it doesn't look like you doesn't mean that it isn't.\"",
"volume" : 20
},
{
"sound" : "\"Please open the door and enter the cell.\"",
"volume" : 30
},
{
"sound" : "\"Would it react differently with a child?\"",
"volume" : 40
},
{
"sound" : "\"Experiments to determine extent of cognitive abilities still underway.\"",
"volume" : 20
},
{
"sound" : "\"Subject has so far displayed a total lack of empathy toward human suffering.\"",
"volume" : 20
},
{
"sound" : "\"I got a round trip ticket.\"",
"volume" : 20
},
{
"sound" : "\"How's your mom doing?\"",
"volume" : 20
},
{
"sound" : "\"How's your dad doing?\"",
"volume" : 20
},
{
"sound" : "\"I love you.\"",
"volume" : 20
},
{
"sound" : "\"I love you too.\"",
"volume" : 20
},
{
"sound" : "\"Just a little.\"",
"volume" : 20
},
{
"sound" : "\"Only a few more days 'til the weekend.\"",
"volume" : 20
},
{
"sound" : "\"Do you smoke?\"",
"volume" : 20
},
{
"sound" : "\"You're new here, aren't you?\"",
"volume" : 20
},
{
"sound" : "\"How do you like it here?\"",
"volume" : 20
},
{
"sound" : "\"It won't hurt a bit.\"",
"volume" : 20
},
{
"sound" : "\"That was a long time ago.\"",
"volume" : 20
},
{
"sound" : "\"Does it scare you?\"",
"volume" : 20
},
{
"sound" : "\"Don't worry, it can't hurt us.\"",
"volume" : 20
},
{
"sound" : "\"What are you afraid will happen?\"",
"volume" : 20
},
{
"sound" : "\"Anything else?\"",
"volume" : 20
},
{
"sound" : "\"You think they're the same sex?\"",
"volume" : 20
},
{
"sound" : "\"Do they even have sex?\"",
"volume" : 20
},
{
"sound" : "\"Can I see your phone?\"",
"volume" : 20
},
{
"sound" : "\"You got a dollar I can borrow?\"",
"volume" : 20
},
{
"sound" : "\"Are you busy at the moment?\"",
"volume" : 20
},
{
"sound" : "\"Are you busy later?\"",
"volume" : 20
},
{
"sound" : "\"Are you busy tonight?\"",
"volume" : 20
},
{
"sound" : "\"Are you free tonight?\"",
"volume" : 20
},
{
"sound" : "\"Are you going to the party tonight?\"",
"volume" : 20
},
{
"sound" : "\"Are you going to help them?\"",
"volume" : 20
},
{
"sound" : "\"Are you alone?\"",
"volume" : 20
},
{
"sound" : "\"Are you hungry?\"",
"volume" : 20
},
{
"sound" : "\"I'm hungry.\"",
"volume" : 20
},
{
"sound" : "\"Go ahead.\"",
"volume" : 20
},
{
"sound" : "\"Have a good time.\"",
"volume" : 20
},
{
"sound" : "\"Have you eaten yet?\"",
"volume" : 20
},
{
"sound" : "\"Is it supposed to rain tomorrow?\"",
"volume" : 20
},
{
"sound" : "\"Okay.\"",
"volume" : 20
},
{
"sound" : "\"Good.\"",
"volume" : 20
},
{
"sound" : "\"Great.\"",
"volume" : 20
},
{
"sound" : "\"Fantastic.\"",
"volume" : 20
},
{
"sound" : "\"God damn it.\"",
"volume" : 20
},
{
"sound" : "\"God damn it!\"",
"volume" : 40
},
{
"sound" : "\"Damn it.\"",
"volume" : 20
},
{
"sound" : "\"Damn it!\"",
"volume" : 40
},
{
"sound" : "\"Fuck.\"",
"volume" : 20
},
{
"sound" : "\"Shit.\"",
"volume" : 20
},
{
"sound" : "\"Fuck!\"",
"volume" : 40
},
{
"sound" : "\"Shit!\"",
"volume" : 40
},
{
"sound" : "\"Fuckin' piece of garbage.\"",
"volume" : 30
},
{
"sound" : "\"I need a new lab coat.\"",
"volume" : 20
},
{
"sound" : "\"Excellent.\"",
"volume" : 20
},
{
"sound" : "\"Excuse me.\"",
"volume" : 20
},
{
"sound" : "\"Go ahead.\"",
"volume" : 20
},
{
"sound" : "\"Good morning.\"",
"volume" : 20
},
{
"sound" : "\"Good afternoon.\"",
"volume" : 20
},
{
"sound" : "\"Good evening.\"",
"volume" : 20
},
{
"sound" : "\"Good night.\"",
"volume" : 20
},
{
"sound" : "\"Good luck.\"",
"volume" : 20
},
{
"sound" : "\"Can I help you?\"",
"volume" : 20
},
{
"sound" : "\"Are you seeing anyone?\"",
"volume" : 20
},
{
"sound" : "\"Forget it.\"",
"volume" : 20
},
{
"sound" : "\"How long were you two together?\"",
"volume" : 20
},
{
"sound" : "\"Give me a call later.\"",
"volume" : 20
},
{
"sound" : "\"Call me.\"",
"volume" : 20
},
{
"sound" : "\"From time to time.\"",
"volume" : 20
},
{
"sound" : "\"We have a serious situation here.\"",
"volume" : 20
},
{
"sound" : "\"Call the police.\"",
"volume" : 20
},
{
"sound" : "\"Call an ambulance.\"",
"volume" : 20
},
{
"sound" : "\"Get me the White House.\"",
"volume" : 20
},
{
"sound" : "\"Are you feeling all right?\"",
"volume" : 20
},
{
"sound" : "\"I think I'll live.\"",
"volume" : 20
},
{
"sound" : "\"I think I need to see a doctor.\"",
"volume" : 20
},
{
"sound" : "\"Is everything all right?\"",
"volume" : 20
},
{
"sound" : "\"I'm okay, don't worry about me.\"",
"volume" : 20
},
{
"sound" : "\"It's just a scratch.\"",
"volume" : 20
},
{
"sound" : "\"I've got a headache.\"",
"volume" : 20
},
{
"sound" : "\"I'm fine.\"",
"volume" : 20
},
{
"sound" : "\"Are you sure?\"",
"volume" : 20
},
{
"sound" : "\"Positive.\"",
"volume" : 20
},
{
"sound" : "\"Affirmative.\"",
"volume" : 20
},
{
"sound" : "\"Negative.\"",
"volume" : 20
},
{
"sound" : "\"Sorry.\"",
"volume" : 20
},
{
"sound" : "\"Happy Birthday!\"",
"volume" : 40
},
{
"sound" : "\"Have you ever been to California?\"",
"volume" : 20
},
{
"sound" : "\"What time do you get off?\"",
"volume" : 20
},
{
"sound" : "\"We should hit up the shooting range later.\"",
"volume" : 20
},
{
"sound" : "\"I'm heading to the pool after work.\"",
"volume" : 20
},
{
"sound" : "\"Have a good trip.\"",
"volume" : 20
},
{
"sound" : "\"Where did you come from?\"",
"volume" : 20
},
{
"sound" : "\"Have you been waiting long?\"",
"volume" : 20
},
{
"sound" : "\"Have you done this before?\"",
"volume" : 20
},
{
"sound" : "\"Hello.\"",
"volume" : 20
},
{
"sound" : "\"Help!\"",
"volume" : 40
},
{
"sound" : "\"Here it is.\"",
"volume" : 20
},
{
"sound" : "\"I've got family coming tomorrow.\"",
"volume" : 20
},
{
"sound" : "\"How do I use this?\"",
"volume" : 20
},
{
"sound" : "\"How do you know?\"",
"volume" : 20
},
{
"sound" : "\"How long have you been here?\"",
"volume" : 20
},
{
"sound" : "\"How many languages do you speak?\"",
"volume" : 20
},
{
"sound" : "\"How many people?\"",
"volume" : 20
},
{
"sound" : "\"How much were these earrings?\"",
"volume" : 20
},
{
"sound" : "\"How much do I owe you?\"",
"volume" : 20
},
{
"sound" : "\"How much will it cost?\"",
"volume" : 20
},
{
"sound" : "\"How much would you like?\"",
"volume" : 20
},
{
"sound" : "\"How old are you?\"",
"volume" : 20
},
{
"sound" : "\"How tall is it?\"",
"volume" : 20
},
{
"sound" : "\"How was the movie?\"",
"volume" : 20
},
{
"sound" : "\"How was your trip?\"",
"volume" : 20
},
{
"sound" : "\"How's it going?\"",
"volume" : 20
},
{
"sound" : "\"See you later.\"",
"volume" : 20
},
{
"sound" : "\"See you tonight.\"",
"volume" : 20
},
{
"sound" : "\"I got this weird rash a few days ago.\"",
"volume" : 20
},
{
"sound" : "\"Let me have a look at it.\"",
"volume" : 20
},
{
"sound" : "\"When did you find out?\"",
"volume" : 20
},
{
"sound" : "\"Seven o'clock.\"",
"volume" : 20
},
{
"sound" : "\"Nobody is helping us.\"",
"volume" : 20
},
{
"sound" : "\"We're on our own.\"",
"volume" : 20
},
{
"sound" : "\"We're all alone.\"",
"volume" : 20
},
{
"sound" : "\"We should split into groups of two each.\"",
"volume" : 20
},
{
"sound" : "\"It can't follow all of us.\"",
"volume" : 20
},
{
"sound" : "\"Be careful out there.\"",
"volume" : 20
},
{
"sound" : "\"There you are.\"",
"volume" : 20
},
{
"sound" : "\"I've been looking all over for you.\"",
"volume" : 20
},
{
"sound" : "\"It's looking for us.\"",
"volume" : 20
},
{
"sound" : "\"It's faster than us.\"",
"volume" : 20
},
{
"sound" : "\"It's looking right at us.\"",
"volume" : 20
},
{
"sound" : "\"It's heading right for us!\"",
"volume" : 40
},
{
"sound" : "\"Can you swim?\"",
"volume" : 20
},
{
"sound" : "\"Don't do that.\"",
"volume" : 20
},
{
"sound" : "\"You hear that?\"",
"volume" : 10
},
{
"sound" : "\"Be quiet.\"",
"volume" : 10
},
{
"sound" : "\"Look out!\"",
"volume" : 40
},
{
"sound" : "\"Run!\"",
"volume" : 40
},
{
"sound" : "\"Hurry!\"",
"volume" : 40
},
{
"sound" : "\"No!\"",
"volume" : 50
},
{
"sound" : "\"I'll never forget you.\"",
"volume" : 20
},
{
"sound" : "\"Take his gun, we're going to need it.\"",
"volume" : 20
},
{
"sound" : "\"How do we get out of here?\"",
"volume" : 20
},
{
"sound" : "\"This place is like a maze.\"",
"volume" : 20
},
{
"sound" : "\"Oh God, I'm the only one left.\"",
"volume" : 20
},
{
"sound" : "\"Please, I don't want to die.\"",
"volume" : 20
},
{
"sound" : "\"Mom.\"",
"volume" : 10
},
{
"sound" : "\"Mom, I miss you.\"",
"volume" : 10
},
{
"sound" : "\"Please, God.\"",
"volume" : 5
},
{
"sound" : "a gurgling sound.",
"volume" : 10
},
{
"sound" : "a choking sound.",
"volume" : 10
},
{
"sound" : "a snapping sound.",
"volume" : 20
},
{
"sound" : "a beeping sound.",
"volume" : 20
},
{
"sound" : "a loud beeping sound.",
"volume" : 30
},
{
"sound" : "a very loud beeping sound.",
"volume" : 40
},
{
"sound" : "a loud hiss.",
"volume" : 30
},
{
"sound" : "a loud crackling noise.",
"volume" : 30
},
{
"sound" : "gunfire!",
"volume" : 90
},
{
"sound" : "a klaxon blaring!",
"volume" : 90
},
{
"sound" : "\"EMERGENCY, EMERGENCY!\"",
"volume" : 70
},
{
"sound" : "a static hissing sound.",
"volume" : 30
}
]
+604 -63
View File
@@ -1,66 +1,607 @@
[
{
"ident": "unemployed",
"name": "Unemployed",
"description":
"They say you don't have any 'useful skills', but at least your clothes fit well.",
"points": 0,
"items": ["jeans", "tshirt", "sneakers"]
},
{
"description":"They say you don't have any \"useful skills\", but at least your clothes fit well.",
"ident":"unemployed",
"items":[
"jeans",
"tshirt",
"sneakers"
],
"name":"Unemployed",
"points":0
},
{
"description":"You've made and adjusted clothing for some of the biggest names in town. Now, their undead bodies are trying to eat your brains. At least you'll be able to keep your own clothing repaired.",
"ident":"tailor",
"items":[
"polo_shirt",
"blazer",
"pants",
"dress_shoes",
"sewing_kit",
"scissors",
"manual_tailor"
],
"name":"Tailor",
"points":1
},
{
"description":"It was your first day in the lab when the cataclysm hit. You were evacuated with all the civilians, but at least you kept your lab gear.",
"ident":"labtech",
"items":[
"dress_shirt",
"pants",
"boots",
"coat_lab",
"gloves_rubber",
"glasses_safety"
],
"name":"Lab Technician",
"points":1
},
{
"description":"Although you never got your driver's license, you've always loved cars. You start with a wrench, a toolbelt, and some car-related reading material.",
"ident":"mechanic",
"items":[
"tank_top",
"jeans",
"boots",
"chestrig",
"wrench",
"mag_cars",
"manual_mechanics"
],
"name":"Wannabe Mechanic",
"points":2
},
{
"description":"Your flexible outlook on law has ensured your survival, but now what? You start with cargo pants, a hoodie, \"sundries\", and one additional level of melee.",
"ident":"scoundrel",
"items":[
"tank_top",
"hoodie",
"pants_cargo",
"sneakers",
"weed",
"rolling_paper",
"picklocks"
],
"name":"Scoundrel",
"points":2,
"skills":[
{
"level":1,
"name":"melee"
}
]
},
{
"description":"You're a high school drop-out with one goal in mind: to join the military. You finally got in, and now it's hell on Earth in cataclysmic proportions. You start out with some military gear, and a level in survival and firearms.",
"ident":"soldier",
"items":[
"pants_army",
"army_top",
"boots_combat",
"knife_combat",
"binoculars"
],
"name":"Military Recruit",
"points":3,
"skills":[
{
"level":1,
"name":"survival"
},
{
"level":1,
"name":"gun"
}
]
},
{
"description":"You were a pre-med student just starting out in your medical career. You start with some bandages and a level in first aid.",
"ident":"medic",
"items":[
"pants",
"dress_shirt",
"dress_shoes",
"water_clean",
"bandages",
"bandages"
],
"name":"Pre-Med Student",
"points":1,
"skills":[
{
"level":1,
"name":"firstaid"
}
]
},
{
"description":"When it came to getting dirty, the boss knew you could be trusted to get the job done. From performing hits to \"attitude adjustment\", you were the best. Now, at the end of the world, you've finally found your place in society.",
"ident":"thug",
"items":[
"suit",
"bowhat",
"dress_shoes",
"cig",
"mag_porn"
],
"name":"Mafia Enforcer",
"points":2,
"skills":[
{
"level":1,
"name":"unarmed"
}
]
},
{
"description":"When you got the call about the disturbances, you came to the rescue only to realize you were in over your head, and needed rescuing yourself. You start with a level in firearms.",
"ident":"sheriff",
"items":[
"pants_army",
"socks",
"badge_deputy",
"sheriffshirt",
"boots",
"holster"
],
"name":"Local Sheriff",
"points":2,
"skills":[
{
"level":1,
"name":"gun"
}
]
},
{
"addictions":[
{
"intensity":10,
"type":"nicotine"
}
],
"description":"Everyone at work knew you as the person who always had a cigarette or two in hand. Now, you're down to a single pack, and you hope you find more soon. You start out with a strong nicotine addiction, and 10 cigarettes.",
"ident":"smoker",
"items":[
"pants",
"dress_shirt",
"dress_shoes",
"cig",
"ref_lighter"
],
"name":"Chain Smoker",
"points":-1
},
{
"description":"You would have sold your own mother for a dollar, and not felt guilty. In fact, you sold her a broken down beater right before the cataclysm. You start with bartering skills.",
"ident":"salesman",
"items":[
"suit",
"dress_shoes"
],
"name":"Used Car Salesman",
"points":1,
"skills":[
{
"level":1,
"name":"barter"
}
]
},
{
"addictions":[
{
"intensity":20,
"type":"alcohol"
}
],
"description":"You lived on the streets your whole life because you would rather have a bottle of whiskey than a roof over your head. You start with a strong alcohol addiction and a pair of pants.",
"ident":"homeless",
"items":[
"pants",
"whiskey"
],
"name":"Hobo",
"points":-4
},
{
"description":"Ever since you were a child you loved hunting, and you loved the challenge of hunting with a bow even more. You start with a level in archery and survival.",
"ident":"hunter",
"items":[
"army_top",
"boots_steel",
"jeans"
],
"name":"Bow Hunter",
"points":2,
"skills":[
{
"level":1,
"name":"archery"
},
{
"level":1,
"name":"survival"
}
]
},
{
"description":"You used to work at the home depot, and you did a lot of home renovations yourself. You start with steel toe boots, a tool belt, a hammer, and a level in construction.",
"ident":"cworker",
"items":[
"tank_top",
"boots_steel",
"jeans",
"hammer",
"tool_belt"
],
"name":"Handy Man",
"points":2,
"skills":[
{
"level":1,
"name":"carpentry"
}
]
},
{
"description":"You've worked in the woods your whole life, and start with some woodsman gear.",
"ident":"lumberjack",
"items":[
"jeans",
"boots",
"hat_hunting",
"jacket_flannel"
],
"name":"Lumberjack",
"points":1
},
{
"description":"You've traveled for a living, sightseeing here and there, and living off your parents' trust fund. But now they're gone, and the only thing between you and death is the open road and your backpack.",
"ident":"backpacker",
"items":[
"backpack_leather",
"jeans",
"sneakers",
"tshirt",
"socks"
],
"name":"Backpacker",
"points":2
},
{
"description":"You used to work at a fancy fast food joint a week ago, but now you show the meaning of \"fast\" food by running for your life. You start with a level in cooking.",
"ident":"fastfoodcook",
"items":[
"pants",
"sneakers",
"tshirt",
"socks"
],
"name":"Fast Food Cook",
"points":1,
"skills":[
{
"level":1,
"name":"cooking"
}
]
},
{
"description":"You were one of those guys who watched one too many survivalist shows. You start with a backpack, a blazer, and some survival skills.",
"ident":"survivalist",
"items":[
"shorts_cargo",
"boots",
"blazer",
"tshirt",
"socks",
"backpack"
],
"name":"Survivalist",
"points":3,
"skills":[
{
"level":1,
"name":"survival"
}
]
},
{
"description":"You used to work for some small-time business owner doing minor electrical work, and you just so happened to be working on an evac shelter when the cataclysm struck. You start with a level in electronics, and a tool belt.",
"ident":"electrician",
"items":[
"jumpsuit",
"boots",
"tool_belt"
],
"name":"Electrician",
"points":3,
"skills":[
{
"level":1,
"name":"electronics"
}
]
},
{
"description":"Caffeine pills and all-nighters in front of a computer screen have given you some basic hacking skills. You start with a level in computers.",
"ident":"hacker",
"items":[
"pants",
"tshirt",
"sneakers"
],
"name":"Computer Hacker",
"points":1,
"skills":[
{
"level":1,
"name":"computer"
}
]
},
{
"description":"You were a high school student until the teachers literally tried to pick your brains. You start with a backpack and a zombie survival guide.",
"ident":"student",
"items":[
"pants",
"tshirt",
"sneakers",
"ZSG",
"backpack"
],
"name":"Student",
"points":2
},
{
"description":"You were in the middle of a nice shower when the cataclysm struck! You start buck naked.",
"ident":"svictim",
"items":[
{
"ident": "tailor",
"name": "Tailor",
"description":
"You've made and adjusted clothing for some of the biggest names in town. Now, their undead bodies are trying to eat your brains. At least you'll be able to keep your own clothing repaired.",
"points": 1,
"items": ["polo_shirt", "blazer", "pants", "dress_shoes", "sewing_kit", "scissors", "manual_tailor"]
},
{
"ident": "labtech",
"name": "Lab Technician",
"description":
"It was your first day in the lab when the cataclysm hit. You were evacuated with all the civilians, but at least you kept your lab gear.",
"points": 1,
"items": ["dress_shirt", "pants", "boots", "coat_lab", "gloves_rubber", "glasses_safety"]
},
{
"ident": "mechanic",
"name": "Wannabe Mechanic",
"description":
"Although you never got your driver's license, you've always loved cars. You start with a wrench, a toolbelt, and some car-related reading material.",
"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? You start with cargo pants, a hoodie, \"sundries\", and one additional level of melee.",
"points": 2,
"items": ["tank_top", "hoodie", "pants_cargo", "sneakers", "weed", "picklocks"],
"skills" : [
{
"name" : "melee",
"level" : 1
}
]
},
{
"ident": "smoker",
"name": "Chain Smoker",
"description": "Everyone at work knew you as the person who always had a cigarette or two in hand. now, you're down to a single pack, and you hope you find more soon. You start out with a strong nicotine addiction, and 10 cigarettes.",
"points": -1,
"items": ["pants", "dress_shirt", "dress_shoes", "cig"],
"addictions": [
{
"type": "nicotine",
"intensity": 10
}
]
}
],
"name":"Shower Victim",
"points":-1
},
{
"description":"You spent most of your life on a Harley, and it's only natural you spend the rest of it riding one. You start with some biker clothes.",
"ident":"biker",
"items":[
"jeans",
"tank_top",
"chaps_leather",
"boots",
"bandana",
"jacket_leather"
],
"name":"Biker",
"points":2
},
{
"description":"You used to be a ballroom dancer before the cataclysm, and now you use your skills to save your life. You start with a tuxedo and a level in dodging.",
"ident":"dancer",
"items":[
"tux",
"dress_shoes"
],
"name":"Ballroom Dancer",
"points":1,
"skills":[
{
"level":1,
"name":"dodge"
}
]
},
{
"description":"You worked for a small-time security company guarding local businesses. You start with a security outfit and a flashlight.",
"ident":"security",
"items":[
"pants",
"poncho",
"boots_combat",
"flashlight"
],
"name":"Security Guard",
"points":1
},
{
"description":"You've always loved tinkering with stuff. You start with a tool belt, and know a little bit about mechanics, tailoring, electronics, and carpentry.",
"ident":"tinkerer",
"items":[
"pants",
"tshirt",
"tool_belt",
"sneakers"
],
"name":"Tinkerer",
"points":3,
"skills":[
{
"level":1,
"name":"mechanics"
},
{
"level":1,
"name":"tailor"
},
{
"level":1,
"name":"electronics"
},
{
"level":1,
"name":"carpentry"
}
]
},
{
"description":"You've worked the streets since you were a kid, and now you use your street skills to survive. You start with a Glock 19 and some of your \"goods\", but no bullets.",
"ident":"ddealer",
"items":[
"jeans",
"tshirt",
"hoodie",
"sneakers",
"glock_19",
"coke"
],
"name":"Drug Dealer",
"points":1
},
{
"description":"You were about to marry your bride before the cataclysm, now you spend you days searching for her.",
"ident":"groom",
"items":[
"tux",
"dress_shoes"
],
"name":"Groom",
"points":0
},
{
"description":"You chose a bad day for your wedding. You just barely escaped with your wedding dress intact.",
"ident":"bride",
"items":[
"dress_wedding",
"dress_shoes"
],
"name":"Bride",
"points":0
},
{
"ident": "punkgirl",
"name": "Punk Rock Girl",
"description":"The apocalypse has been your psychotic dream come true. Now that the system is dead, it's time to party among the bones of the world!",
"points": 2,
"items": ["skirt", "corset", "trenchcoat", "gloves_fingerless", "boots_combat",
"weed", "rolling_paper", "cig", "mp3", "ref_lighter"]
},
{
"ident": "junkie",
"name": "Junkie",
"description":
"Before the Apocalypse, you turned to Heroin to soothe your many problems.\nNow, your habit is your only comfort and your only drive.",
"points": -1,
"items": ["pants", "dress_shirt", "dress_shoes", "heroin","syringe"],
"addictions": [ { "type": "opiate", "intensity": 10 } ]
},
{
"ident": "chef",
"name": "Chef",
"description":
"Bork bork! Years in the kitchen have left you carrying a prodigious bulk, but you managed to escape the carnage with a butchers knife and only a small collection of stains on your uniform.",
"points": 2,
"items": ["knife_butcher", "hat_chef", "jacket_chef", "pants_checkered", "dress_shoes"],
"skills" : [ { "name" : "cooking", "level" : 3 } ]
},
{
"addictions":[
{
"intensity":20,
"type":"crack"
}
],
"description":"You were on your way to collect your check, when your pimp tried to kill you. You wish that it wasn't a common occurence. You start with a skirt, tank top, a pair of high heels, your stash, and a strong crack addiction.",
"ident":"hooker",
"items":[
"skirt",
"heels",
"tank_top",
"crackpipe",
"crack"
],
"name":"Prostitute",
"points":-4
},
{
"description":"You spent most of your life trapping with your father. Both of you made a decent living off of your catches, and trapping tutorials. You start with a skill in trapping.",
"ident":"trapper",
"items":[
"jeans",
"boots",
"hat_hunting",
"jacket_flannel",
"beartrap"
],
"name":"Trapper",
"points":1,
"skills":[
{
"level":1,
"name":"traps"
}
]
},
{
"description":"You were going through your community college's metalsmithing program when the world ended. You start with a few related tools and some skill in fabrication.",
"ident":"blacksmith",
"items":[
"jeans",
"boots",
"tank_top",
"apron_leather",
"fire_gauntlets",
"hammer"
],
"name":"Blacksmith",
"points":2,
"skills":[
{
"level":1,
"name":"fabrication"
}
]
},
{
"ident": "clown",
"name": "Clown",
"description":"All you ever wanted was to make people laugh. Dropping out of school and performing at kids' parties was a dream come true until the world ended. There's precious few balloon animals in your future now.",
"points": 0,
"items": ["clown_suit", "clownshoes"]
},
{
"ident": "lost_sub",
"name": "Lost Submissive",
"description":"Early in the rush to safety, you were separated from your master by cruel fate. Now you are on your own with nothing to your name but a suit of really kinky black leather. Unfortunately, there's no safewords in the apocalypse.",
"points": 0,
"items": ["bondage_suit", "bondage_mask", "boots"]
},
{
"ident": "senior",
"name": "Senior Citizen",
"description":"You haven't seen this much blood since the war. The whole world's gone crazy! They ate your grandkids! But dagnabbit, you'll make them all pay for what they've done. You start with a cane and your pocketwatch.",
"points": 1,
"items": ["dress_shirt", "pants_checkered", "dress_shoes", "cane", "pocketwatch"]
},
{
"description":"Being a paramedic put you in a bad spot when it all ended. You had to fight your way out of a hospital full of infected to get to the shelter. You start with a few related tools and some skill in first aid.",
"ident":"paramedic",
"items":[
"pants",
"boots",
"polo_shirt",
"gloves_medical",
"1st_aid"
],
"name":"Paramedic",
"points":2,
"skills":[
{
"level":1,
"name":"firstaid"
}
]
},
{
"ident":"cosplay",
"name":"Otaku",
"description":"Late nights with friends watching anime and eating snacks has prepared you for the premier anime convention in the Northeast. It just had to be the day of the apocalypse. At least you were ready in case your costume tore.",
"items":["shorts", "sneakers", "tank_top", "sewing_kit", "mbag", "fur_cat_ears", "fur_cat_tail", "fur_collar", "cheeseburger"],
"points":2
}
]
+13990 -9942
View File
File diff suppressed because it is too large Load Diff
+168 -162
View File
@@ -1,164 +1,170 @@
[
[
"dodge",
"dodge",
"Your skill at dodging, whether it be from an attack, a trap, or a natural occurrence. It is also used when attempting to fall gracefully, or in other acrobatic feats.",
[]
],
[
"melee",
"melee",
"Your skill at hand-to-hand combat, both with and without a weapon. At low levels this merely increases your chance to hit, but at higher levels it also increases the damage done significantly.",
[]
],
[
"unarmed",
"unarmed combat",
"Your skill at combat without a weapon. While at low levels, unarmed combat is a good way to die quickly, those skilled in it can eventually use throws and crushing blows to quickly dispatch enemies.",
[]
],
[
"bashing",
"bashing weapons",
"Your skill at combat with weapons that club or bash your enemies. This includes everything from rocks to baseball bats, and even the butt of rifles. This increases damage, and at higher levels will improve your chance to hit.",
[]
],
[
"cutting",
"cutting weapons",
"Your skill at combat with weapons that cut or slice your enemies. At first this will simply slightly increase accuracy and damage; later on it will help you bypass armor and thick hides.",
[]
],
[
"stabbing",
"piercing weapons",
"Your skill at combat that involves piercing weapons. This includes spears, which only have a stabbing attack, and things like knives, which can cut or pierce. This increases your accuracy and chance of a deadly critical.",
[]
],
[
"throw",
"throwing",
"Your skill at throwing items and getting them to go where you want. Increases both accuracy and, at higher levels, range.",
[]
],
[
"gun",
"firearms",
"Your general skill at firearms. This increases your accuracy with any gun, but not as much as the skill associated with the gun in question.",
[]
],
[
"pistol",
"handguns",
"Your skill with handguns. These have poor accuracy, but generally are fired and reloaded faster than other guns, and are good in close quarters.",
["gun_type"]
],
[
"shotgun",
"shotguns",
"Your skill with shotguns. Shot is easy to hit with, and does massive damage, but has short range. Shotguns may also be loaded with slugs, which go further and do as much damage, but are not very accurate.",
["gun_type"]
],
[
"smg",
"submachine guns",
"Your skill with submachine guns and machine pistols. Halfway between a pistol and an assault rifle, these weapons fire and reload quickly, and may fire in bursts, but they are not very accurate.",
["gun_type"]
],
[
"rifle",
"rifles",
"Your skill with rifles, both assault rifles and semi-auto hunting rifles. These have terrific range and accuracy, but are very slow to fire and reload, and are not very good in close quarters.",
["gun_type"]
],
[
"archery",
"archery",
"Your skill with all kinds of bows, from crossbows to handmade long bows. These are quiet, but require some amount of strength to use, and are not terribly accurate. They can only be deadly in skilled hands.",
[]
],
[
"launcher",
"grenade launcher",
"Your skill with grenade launchers, whether standalone or as a rifle mod. These launchers fire a variety of 40mm grenades with different uses, but they and their rounds are hard to find.",
[]
],
[
"computer",
"computers",
"Your skill with computers, both in terms of legitimate use, and hacking. This will help you use complex systems, and bypass their security.",
[]
],
[
"mechanics",
"mechanics",
"Your skill with repairs to mechanical systems, and the crafting of many items that use complex parts, but are not electronics.",
[]
],
[
"electronics",
"electronics",
"Your skill with repairs to electrical systems, and the crafting of many items that use electrical parts.",
[]
],
[
"cooking",
"cooking",
"Your skill in combining food ingredients to make other, tastier food items. This may also be used in mixing chemicals and other more esoteric tasks.",
[]
],
[
"carpentry",
"construction",
"Your general knowledge in construction. This is used primarily when building terrain, via the * screen.",
[]
],
[
"survival",
"survival",
"Your skill in wilderness survival. This helps you butcher meat from a corpse and craft various basic survival items. Also used for skinning corpses to acquire pelts.",
[]
],
[
"traps",
"traps",
"Your skill at setting and disarming traps safely and effectively. Note that this does not help you detect traps, or avoid their effects if you activate them.",
[]
],
[
"tailor",
"tailoring",
"Your skill at repairing clothing, and at higher levels, creating clothing from basic materials. Generally a sewing kit is needed. Also applies to other methods of clothing repair and textile crafting.",
[]
],
[
"firstaid",
"first aid",
"Your skill at emergency medical treatment, such as that from first aid kits and bandages. High levels of this skill may help heal more HP. Some drugs may be more effective as well.",
[]
],
[
"speech",
"speech",
"Your skill at talking to people, convincing them of things, lying, and many others. Works best in conjunction with a high intelligence.",
[]
],
[
"barter",
"barter",
"Your skill at getting a good deal when trading with others. Very high levels might even see you getting freebies.",
[]
],
[
"swimming",
"swimming",
"Your skill at swimming. This affects speed, your ability to swim while wearing clothes or carrying weights, and in-water combat.",
[]
],
[
"driving",
"driving",
"Your skill at driving. This affects how well you can control a vehicle, as well as the penalty of shooting while driving.",
[]
]
[
"barter",
"bartering",
"Your skill in bargaining, haggling, and trading with others. Higher levels increase the odds of getting the better end of a deal, and might even see you convincing others to give you free stuff.",
[]
],
[
"computer",
"computers",
"Your skill in accessing and manipulating computers. Higher levels can allow a user to navigate complex software systems and even bypass their security.",
[]
],
[
"carpentry",
"construction",
"Your general competence in building construction. This governs the complexity of structures that can be built, and the time required to build them.",
[]
],
[
"cooking",
"cooking",
"Your skill in combining food ingredients to make other, tastier food items. It may also be used in certain chemical mixtures and other, more esoteric tasks.",
[]
],
[
"driving",
"driving",
"Your skill in operating and steering a vehicle in motion. A higher level allows greater control over vehicles at higher speeds, and reduces the penalty of shooting while driving.",
[]
],
[
"electronics",
"electronics",
"Your skill in dealing with electrical systems, used in the craft and repair of objects with electrical components. This skill is an important part of installing and managing bionic implants.",
[]
],
[
"fabrication",
"fabrication",
"Your skill in working with raw materials and shaping them into useful objects. This skill plays an important role in the crafting of many objects.",
[]
],
[
"firstaid",
"first aid",
"Your skill in effecting emergency medical treatment. Higher levels allow better use of medicines and items like bandages and first aid kits, and reduce the failure and complication rates of medical procedures.",
[]
],
[
"mechanics",
"mechanics",
"Your skill in engineering, maintaining and repairing vehicles and other mechanical systems. This skill covers the craft of items with complex parts, and plays a role in the installation of bionic equipment.",
[]
],
[
"speech",
"speaking",
"Your skill in speaking to other people. Covers ability in boasting, flattery, threats, persuasion, lies, and other facets of interpersonal communication. Works best in conjunction with a high level of intelligence.",
[]
],
[
"survival",
"survival",
"Your skill in surviving the wilderness, and in crafting various basic survival items. This also covers your ability to skin and butcher animals for meat and hides.",
[]
],
[
"swimming",
"swimming",
"Your ability to stay afloat and move around in bodies of water. This skill keeps you from drowning, affects your combat effectiveness and speed in deep water, and determines the detriment of swimming with heavier gear.",
[]
],
[
"tailor",
"tailoring",
"Your skill in the craft and repair of clothing, bags, blankets and other textiles. Affects knitting, sewing, stitching, weaving, and nearly anything else involving a needle and thread.",
[]
],
[
"traps",
"trapping",
"Your skill in setting and disarming traps safely and effectively. This skill does not affect the detection of hidden traps, or the evasion of traps that are triggered.",
[]
],
[
"archery",
"archery",
"Your skill in using bow weapons, from hand-carved self bows to complex hunting crossbows. Quiet and effective, they require strength of body and sight to wield, and are not terribly accurate over a long distance.",
[]
],
[
"bashing",
"bashing weapons",
"Your skill in fighting with blunt weaponry, from rocks and sticks to baseball bats and the butts of rifles. Skill increases damage, and higher levels will improve the accuracy of an attack.",
[]
],
[
"cutting",
"cutting weapons",
"Your skill in fighting with weaponry designed to cut, hack and slash an opponent. Lower levels of skill increase accuracy and damage, while higher levels will help to bypass heavy armor and thick hides.",
[]
],
[
"dodge",
"dodging",
"Your ability to dodge an oncoming threat, be it an enemy's attack, a triggered trap, or a falling rock. This skill is also used in attempts to fall gracefully, and for other acrobatic feats.",
[]
],
[
"gun",
"firearms",
"Your overall skill in using firearms. With higher levels, this general experience increases accuracy with any gun, but is secondary to practice with the type of gun in question.",
[]
],
[
"launcher",
"launchers",
"Your skill in using heavy weapons like rocket, grenade or missile launchers. These weapons have a variety of applications and may carry immense destructive power, but they are cumbersome and hard to manage.",
[]
],
[
"melee",
"melee",
"Your skill and finesse in personal combat, both with and without a weapon. Higher levels can significantly increase the accuracy and effectiveness of your physical attacks.",
[]
],
[
"stabbing",
"piercing weapons",
"Your skill in fighting with knives, spears and other such stabbing implements. Skill increases attack accuracy as well as the chance of inflicting a deadly and critical blow.",
[]
],
[
"throw",
"throwing",
"Your skill in throwing objects over a distance. Skill increases accuracy, and at higher levels, the range of a throw.",
[]
],
[
"unarmed",
"unarmed combat",
"Your skill in hand-to-hand fighting. For the unskilled, it's a good way to get hurt, but those with enough practice can perform special blows and techniques to quickly dispatch enemies.",
[]
],
[
"pistol",
"handguns",
"Handguns have poor accuracy compared to rifles, but are usually quick to fire and reload faster than other guns. They are very effective at close quarters, though unsuited for long range engagement.",
["gun_type"]
],
[
"rifle",
"rifles",
"Rifles have terrific range and accuracy compared to other firearms, but may be slow to fire and reload, and can prove difficult to use in close quarters. Fully automatic rifles can fire rapidly, but are harder to handle properly.",
["gun_type"]
],
[
"shotgun",
"shotguns",
"Shotguns are easy to shoot and can inflict massive damage, but their effectiveness and accuracy decline rapidly with range. Slugs can be loaded into shotguns to provide greater range, though they are somewhat inaccurate.",
["gun_type"]
],
[
"smg",
"submachine guns",
"Comprised of an automatic rifle carbine designed to fire a pistol cartridge, submachine guns can reload and fire quickly, sometimes in bursts, but they are relatively inaccurate and may be prone to mechanical failures.",
["gun_type"]
]
]
+17 -1
View File
@@ -67,11 +67,27 @@
},
{
"category": "flier",
"text": "This is an advertisement for Sybil's Cyber Boutique. It shows a picture of a nerdy looking man surrounded by a group of admiring women. In the foreground a blood-drenched doctor gives an exaggerated wink and a two thumbs up. The caption reads: \"Holiday sales! Get the package deals!\""
"text": "This is an advertisement for Sybil's Cyber Boutique. It shows a picture of a nerdy looking man surrounded by a group of admiring women. In the foreground a blood-drenched doctor gives an exaggerated wink and two thumbs up. The caption reads: \"Holiday sales! Get the package deals!\""
},
{
"category": "flier",
"text": "This is an advertisement for Sybil's Cyber Boutique. It shows a picture of a man flexing shiny cybernetic arms in front of a mirror. He is flanked by two scantily clad nurses who hold bloody chainsaws and give approving thumbs up. In the background feral dogs gnaw on the man's discarded former limbs. The caption reads: \"Spring Cleaning Sale! 20% off!\""
},
{
"category": "flier",
"text": "This is an advertisement for Rivtech brand handguns. It shows a picture of a well armed couple in business suits with matching handguns facing down a legion of villainous looking characters. The caption reads: \"Protect yourself with the Rivtech caseless automagnum!\""
},
{
"category": "flier",
"text": "This is an advertisement for Rivtech brand rifles. It shows a picture of a smiling soldier with a futuristic looking rifle on her shoulder saluting the viewer. The caption reads: \"Rivtech caseless firearms proudly supports our Military.\""
},
{
"category": "flier",
"text": "This is an advertisement for Rivtech brand firearms. It shows a picture of a trio of well armed hunters. The three are each armed with different futuristic looking weapons and are shooting at a hostile crowd of approaching wildlife. The caption reads: \"Rivtech caseless firearms. Superior stopping power.\""
},
{
"category": "flier",
"text": "This is an advertisement for Rivtech brand ammunition. It shows a picture of an armored steel plate with a gaping hole blasted through the middle. Sitting beside the plate is a block of brightly colored caseless ammunition. The caption reads: \"Rivtech 8x40mm caseless. Nothing else comes close.\""
}
]
}
+3077
View File
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
+9 -5
View File
@@ -1,5 +1,10 @@
#include "debug.h"
#include <time.h>
#include <cstdlib>
#ifndef _MSC_VER
#include <sys/time.h>
#endif
#if !(defined _WIN32 || defined WINDOWS || defined __CYGWIN__)
@@ -163,13 +168,12 @@ std::ostream & operator<<(std::ostream & out, DebugClass cl)
std::ofstream & DebugFile::currentTime()
{
struct tm *current;
time_t now;
time(&now);
current = localtime(&now);
timeval tv;
gettimeofday(&tv, NULL);
current = localtime(&tv.tv_sec);
file << current->tm_hour << ":" << current->tm_min << ":" <<
current->tm_sec;
current->tm_sec << "." << int(tv.tv_usec/1000 + 0.5);
return file;
}
+5
View File
@@ -94,6 +94,11 @@ struct DebugLog
fout << t;
return *this;
}
template <class T>
DebugLog& operator<<(const T& t){
fout << t;
return *this;
}
private:
std::ofstream fout;
+123 -128
View File
@@ -79,7 +79,7 @@ bool defense_game::init(game *g)
init_to_style(DEFENSE_EASY);
setup();
g->u.cash = initial_cash;
popup_nowait("Please wait as the map generates [ 0%]");
popup_nowait(_("Please wait as the map generates [ 0%]"));
// TODO: support multiple defence games? clean up old defence game
g->cur_om = &overmap_buffer.get(g, 0, 0);
init_map(g);
@@ -98,7 +98,7 @@ void defense_game::per_turn(game *g)
if (int(g->turn) % (time_between_waves * 10) == 0) {
current_wave++;
if (current_wave > 1 && current_wave % waves_between_caravans == 0) {
popup("A caravan approaches! Press spacebar...");
popup(_("A caravan approaches! Press spacebar..."));
caravan(g);
}
spawn_wave(g);
@@ -108,11 +108,11 @@ void defense_game::per_turn(game *g)
void defense_game::pre_action(game *g, action_id &act)
{
if (act == ACTION_SLEEP && !sleep) {
g->add_msg("You don't need to sleep!");
g->add_msg(_("You don't need to sleep!"));
act = ACTION_NULL;
}
if (act == ACTION_SAVE || act == ACTION_QUICKSAVE) {
g->add_msg("You cannot save in defense mode!");
g->add_msg(_("You cannot save in defense mode!"));
act = ACTION_NULL;
}
@@ -141,7 +141,7 @@ void defense_game::pre_action(game *g, action_id &act)
g->levy <= 93) ||
(g->u.posx == SEEX * int(MAPSIZE / 2) &&
g->levx <= 93)))) {
g->add_msg("You cannot leave the %s behind!",
g->add_msg(_("You cannot leave the %s behind!"),
defense_location_name(location).c_str());
act = ACTION_NULL;
}
@@ -153,7 +153,7 @@ void defense_game::post_action(game *g, action_id act)
void defense_game::game_over(game *g)
{
popup("You managed to survive through wave %d!", current_wave);
popup(_("You managed to survive through wave %d!"), current_wave);
}
void defense_game::init_itypes(game *g)
@@ -250,8 +250,7 @@ void defense_game::init_map(game *g)
int percent = 100 * ((j / 2 + MAPSIZE * (i / 2))) /
((MAPSIZE) * (MAPSIZE + 1));
if (percent >= old_percent + 1) {
popup_nowait("Please wait as the map generates [%s%d%]",
(percent < 10 ? " " : ""), percent);
popup_nowait(_("Please wait as the map generates [%2d%]"), percent);
old_percent = percent;
}
// Round down to the nearest even number
@@ -282,7 +281,7 @@ void defense_game::init_map(game *g)
generator.spawn(p.x, p.y);
}
generator.friendly = -1;
g->z.push_back(generator);
g->add_zombie(generator);
}
void defense_game::init_to_style(defense_style new_style)
@@ -449,7 +448,7 @@ void defense_game::setup()
if (ch == 'S') {
if (!zombies && !specials && !spiders && !triffids && !robots && !subspace) {
popup("You must choose at least one monster group!");
popup(_("You must choose at least one monster group!"));
refresh_setup(w, selection);
} else
return;
@@ -466,7 +465,7 @@ void defense_game::setup()
selection--;
refresh_setup(w, selection);
} else if (ch == '!') {
std::string name = string_input_popup("Template Name:", 20);
std::string name = string_input_popup(_("Template Name:"), 20);
refresh_setup(w, selection);
} else if (ch == 'S')
return;
@@ -582,7 +581,7 @@ void defense_game::setup()
specials = false;
}
mvwprintz(w, 18, 2, (zombies ? c_ltgreen : c_yellow), "Zombies");
mvwprintz(w, 18, 14, c_yellow, "Special Zombies");
mvwprintz(w, 18, 14, c_yellow, _("Special Zombies"));
break;
case 11:
@@ -590,56 +589,56 @@ void defense_game::setup()
specials = !specials;
zombies = false;
}
mvwprintz(w, 18, 2, c_yellow, "Zombies");
mvwprintz(w, 18, 14, (specials ? c_ltgreen : c_yellow), "Special Zombies");
mvwprintz(w, 18, 2, c_yellow, _("Zombies"));
mvwprintz(w, 18, 14, (specials ? c_ltgreen : c_yellow), _("Special Zombies"));
break;
case 12:
if (ch == ' ' || ch == '\n')
spiders = !spiders;
mvwprintz(w, 18, 34, (spiders ? c_ltgreen : c_yellow), "Spiders");
mvwprintz(w, 18, 34, (spiders ? c_ltgreen : c_yellow), _("Spiders"));
break;
case 13:
if (ch == ' ' || ch == '\n')
triffids = !triffids;
mvwprintz(w, 18, 46, (triffids ? c_ltgreen : c_yellow), "Triffids");
mvwprintz(w, 18, 46, (triffids ? c_ltgreen : c_yellow), _("Triffids"));
break;
case 14:
if (ch == ' ' || ch == '\n')
robots = !robots;
mvwprintz(w, 18, 59, (robots ? c_ltgreen : c_yellow), "Robots");
mvwprintz(w, 18, 59, (robots ? c_ltgreen : c_yellow), _("Robots"));
break;
case 15:
if (ch == ' ' || ch == '\n')
subspace = !subspace;
mvwprintz(w, 18, 70, (subspace ? c_ltgreen : c_yellow), "Subspace");
mvwprintz(w, 18, 70, (subspace ? c_ltgreen : c_yellow), _("Subspace"));
break;
case 16:
if (ch == ' ' || ch == '\n')
hunger = !hunger;
mvwprintz(w, 21, 2, (hunger ? c_ltgreen : c_yellow), "Food");
mvwprintz(w, 21, 2, (hunger ? c_ltgreen : c_yellow), _("Food"));
break;
case 17:
if (ch == ' ' || ch == '\n')
thirst = !thirst;
mvwprintz(w, 21, 16, (thirst ? c_ltgreen : c_yellow), "Water");
mvwprintz(w, 21, 16, (thirst ? c_ltgreen : c_yellow), _("Water"));
break;
case 18:
if (ch == ' ' || ch == '\n')
sleep = !sleep;
mvwprintz(w, 21, 31, (sleep ? c_ltgreen : c_yellow), "Sleep");
mvwprintz(w, 21, 31, (sleep ? c_ltgreen : c_yellow), _("Sleep"));
break;
case 19:
if (ch == ' ' || ch == '\n')
mercenaries = !mercenaries;
mvwprintz(w, 21, 46, (mercenaries ? c_ltgreen : c_yellow), "Mercenaries");
mvwprintz(w, 21, 46, (mercenaries ? c_ltgreen : c_yellow), _("Mercenaries"));
break;
}
}
@@ -651,56 +650,56 @@ void defense_game::setup()
void defense_game::refresh_setup(WINDOW* w, int selection)
{
werase(w);
mvwprintz(w, 0, 1, c_ltred, "DEFENSE MODE");
mvwprintz(w, 0, 28, c_ltred, "Press +/- or >/< to cycle, spacebar to toggle");
mvwprintz(w, 1, 28, c_ltred, "Press S to start, ! to save as a template");
mvwprintz(w, 2, 2, c_ltgray, "Scenario:");
mvwprintz(w, 0, 1, c_ltred, _("DEFENSE MODE"));
mvwprintz(w, 0, 28, c_ltred, _("Press +/- or >/< to cycle, spacebar to toggle"));
mvwprintz(w, 1, 28, c_ltred, _("Press S to start, ! to save as a template"));
mvwprintz(w, 2, 2, c_ltgray, _("Scenario:"));
mvwprintz(w, 3, 2, SELCOL(1), defense_style_name(style).c_str());
mvwprintz(w, 3, 28, c_ltgray, defense_style_description(style).c_str());
mvwprintz(w, 4, 2, c_ltgray, "Location:");
mvwprintz(w, 4, 2, c_ltgray, _("Location:"));
mvwprintz(w, 5, 2, SELCOL(2), defense_location_name(location).c_str());
mvwprintz(w, 5, 28, c_ltgray, defense_location_description(location).c_str());
mvwprintz(w, 7, 2, c_ltgray, "Initial Difficulty:");
mvwprintz(w, 7, 2, c_ltgray, _("Initial Difficulty:"));
mvwprintz(w, 7, NUMALIGN(initial_difficulty), SELCOL(3), "%d",
initial_difficulty);
mvwprintz(w, 7, 28, c_ltgray, "The difficulty of the first wave.");
mvwprintz(w, 8, 2, c_ltgray, "Wave Difficulty:");
mvwprintz(w, 7, 28, c_ltgray, _("The difficulty of the first wave."));
mvwprintz(w, 8, 2, c_ltgray, _("Wave Difficulty:"));
mvwprintz(w, 8, NUMALIGN(wave_difficulty), SELCOL(4), "%d", wave_difficulty);
mvwprintz(w, 8, 28, c_ltgray, "The increase of difficulty with each wave.");
mvwprintz(w, 8, 28, c_ltgray, _("The increase of difficulty with each wave."));
mvwprintz(w, 10, 2, c_ltgray, "Time b/w Waves:");
mvwprintz(w, 10, 2, c_ltgray, _("Time b/w Waves:"));
mvwprintz(w, 10, NUMALIGN(time_between_waves), SELCOL(5), "%d",
time_between_waves);
mvwprintz(w, 10, 28, c_ltgray, "The time, in minutes, between waves.");
mvwprintz(w, 11, 2, c_ltgray, "Waves b/w Caravans:");
mvwprintz(w, 10, 28, c_ltgray, _("The time, in minutes, between waves."));
mvwprintz(w, 11, 2, c_ltgray, _("Waves b/w Caravans:"));
mvwprintz(w, 11, NUMALIGN(waves_between_caravans), SELCOL(6), "%d",
waves_between_caravans);
mvwprintz(w, 11, 28, c_ltgray, "The number of waves in between caravans.");
mvwprintz(w, 11, 28, c_ltgray, _("The number of waves in between caravans."));
mvwprintz(w, 13, 2, c_ltgray, "Initial Cash:");
mvwprintz(w, 13, 2, c_ltgray, _("Initial Cash:"));
mvwprintz(w, 13, NUMALIGN(initial_cash), SELCOL(7), "%d", initial_cash);
mvwprintz(w, 13, 28, c_ltgray, "The amount of money the player starts with.");
mvwprintz(w, 14, 2, c_ltgray, "Cash for 1st Wave:");
mvwprintz(w, 13, 28, c_ltgray, _("The amount of money the player starts with."));
mvwprintz(w, 14, 2, c_ltgray, _("Cash for 1st Wave:"));
mvwprintz(w, 14, NUMALIGN(cash_per_wave), SELCOL(8), "%d", cash_per_wave);
mvwprintz(w, 14, 28, c_ltgray, "The cash awarded for the first wave.");
mvwprintz(w, 15, 2, c_ltgray, "Cash Increase:");
mvwprintz(w, 14, 28, c_ltgray, _("The cash awarded for the first wave."));
mvwprintz(w, 15, 2, c_ltgray, _("Cash Increase:"));
mvwprintz(w, 15, NUMALIGN(cash_increase), SELCOL(9), "%d", cash_increase);
mvwprintz(w, 15, 28, c_ltgray, "The increase in the award each wave.");
mvwprintz(w, 15, 28, c_ltgray, _("The increase in the award each wave."));
mvwprintz(w, 17, 2, c_ltgray, "Enemy Selection:");
mvwprintz(w, 18, 2, TOGCOL(10, zombies), "Zombies");
mvwprintz(w, 18, 14, TOGCOL(11, specials), "Special Zombies");
mvwprintz(w, 18, 34, TOGCOL(12, spiders), "Spiders");
mvwprintz(w, 18, 46, TOGCOL(13, triffids), "Triffids");
mvwprintz(w, 18, 59, TOGCOL(14, robots), "Robots");
mvwprintz(w, 18, 70, TOGCOL(15, subspace), "Subspace");
mvwprintz(w, 17, 2, c_ltgray, _("Enemy Selection:"));
mvwprintz(w, 18, 2, TOGCOL(10, zombies), _("Zombies"));
mvwprintz(w, 18, 14, TOGCOL(11, specials), _("Special Zombies"));
mvwprintz(w, 18, 34, TOGCOL(12, spiders), _("Spiders"));
mvwprintz(w, 18, 46, TOGCOL(13, triffids), _("Triffids"));
mvwprintz(w, 18, 59, TOGCOL(14, robots), _("Robots"));
mvwprintz(w, 18, 70, TOGCOL(15, subspace), _("Subspace"));
mvwprintz(w, 20, 2, c_ltgray, "Needs:");
mvwprintz(w, 21, 2, TOGCOL(16, hunger), "Food");
mvwprintz(w, 21, 16, TOGCOL(17, thirst), "Water");
mvwprintz(w, 21, 31, TOGCOL(18, sleep), "Sleep");
mvwprintz(w, 21, 46, TOGCOL(19, mercenaries), "Mercenaries");
mvwprintz(w, 20, 2, c_ltgray, _("Needs:"));
mvwprintz(w, 21, 2, TOGCOL(16, hunger), _("Food"));
mvwprintz(w, 21, 16, TOGCOL(17, thirst), _("Water"));
mvwprintz(w, 21, 31, TOGCOL(18, sleep), _("Sleep"));
mvwprintz(w, 21, 46, TOGCOL(19, mercenaries), _("Mercenaries"));
wrefresh(w);
}
@@ -708,16 +707,16 @@ std::string defense_style_name(defense_style style)
{
// 24 Characters Max!
switch (style) {
case DEFENSE_CUSTOM: return "Custom";
case DEFENSE_EASY: return "Easy";
case DEFENSE_MEDIUM: return "Medium";
case DEFENSE_HARD: return "Hard";
case DEFENSE_SHAUN: return "Shaun of the Dead";
case DEFENSE_DAWN: return "Dawn of the Dead";
case DEFENSE_SPIDERS: return "Eight-Legged Freaks";
case DEFENSE_TRIFFIDS: return "Day of the Triffids";
case DEFENSE_SKYNET: return "Skynet";
case DEFENSE_LOVECRAFT: return "The Call of Cthulhu";
case DEFENSE_CUSTOM: return _("Custom");
case DEFENSE_EASY: return _("Easy");
case DEFENSE_MEDIUM: return _("Medium");
case DEFENSE_HARD: return _("Hard");
case DEFENSE_SHAUN: return _("Shaun of the Dead");
case DEFENSE_DAWN: return _("Dawn of the Dead");
case DEFENSE_SPIDERS: return _("Eight-Legged Freaks");
case DEFENSE_TRIFFIDS: return _("Day of the Triffids");
case DEFENSE_SKYNET: return _("Skynet");
case DEFENSE_LOVECRAFT: return _("The Call of Cthulhu");
default: return "Bug! (bug in defense.cpp:defense_style_name)";
}
}
@@ -727,25 +726,25 @@ std::string defense_style_description(defense_style style)
// 51 Characters Max!
switch (style) {
case DEFENSE_CUSTOM:
return "A custom game.";
return _("A custom game.");
case DEFENSE_EASY:
return "Easy monsters and lots of money.";
return _("Easy monsters and lots of money.");
case DEFENSE_MEDIUM:
return "Harder monsters. You have to eat.";
return _("Harder monsters. You have to eat.");
case DEFENSE_HARD:
return "All monsters. You have to eat and drink.";
return _("All monsters. You have to eat and drink.");
case DEFENSE_SHAUN:
return "Defend a bar against classic zombies. Easy and fun.";
return _("Defend a bar against classic zombies. Easy and fun.");
case DEFENSE_DAWN:
return "Classic zombies. Slower and more realistic.";
return _("Classic zombies. Slower and more realistic.");
case DEFENSE_SPIDERS:
return "Fast-paced spider-fighting fun!";
return _("Fast-paced spider-fighting fun!");
case DEFENSE_TRIFFIDS:
return "Defend your mansion against the triffids.";
return _("Defend your mansion against the triffids.");
case DEFENSE_SKYNET:
return "The robots have decided that humans are the enemy!";
return _("The robots have decided that humans are the enemy!");
case DEFENSE_LOVECRAFT:
return "Ward off legions of eldritch horrors.";
return _("Ward off legions of eldritch horrors.");
default:
return "What the heck is this I don't even know. (defense.cpp:defense_style_description)";
}
@@ -755,10 +754,10 @@ std::string defense_location_name(defense_location location)
{
switch (location) {
case DEFLOC_NULL: return "Nowhere?! (bug in defense.cpp:defense_location_name)";
case DEFLOC_HOSPITAL: return "Hospital";
case DEFLOC_MALL: return "Megastore";
case DEFLOC_BAR: return "Bar";
case DEFLOC_MANSION: return "Mansion";
case DEFLOC_HOSPITAL: return _("Hospital");
case DEFLOC_MALL: return _("Megastore");
case DEFLOC_BAR: return _("Bar");
case DEFLOC_MANSION: return _("Mansion");
default: return "a ghost's house (bug in defense.cpp:defense_location_name)";
}
}
@@ -769,13 +768,13 @@ std::string defense_location_description(defense_location location)
case DEFLOC_NULL:
return "NULL Bug. (defense.cpp:defense_location_description)";
case DEFLOC_HOSPITAL:
return "One entrance and many rooms. Some medical supplies.";
return _("One entrance and many rooms. Some medical supplies.");
case DEFLOC_MALL:
return "A large building with various supplies.";
return _("A large building with various supplies.");
case DEFLOC_BAR:
return "A small building with plenty of alcohol.";
return _("A small building with plenty of alcohol.");
case DEFLOC_MANSION:
return "A large house with many rooms and.";
return _("A large house with many rooms and.");
default:
return "Unknown data bug. (defense.cpp:defense_location_description)";
}
@@ -817,12 +816,12 @@ void defense_game::caravan(game *g)
char ch = input();
switch (ch) {
case '?':
popup_top("\
popup_top(_("\
CARAVAN:\n\
Start by selecting a category using your favorite up/down keys.\n\
Switch between category selection and item selecting by pressing Tab.\n\
Pick an item with the up/down keys, press + to buy 1 more, - to buy 1 less.\n\
Press Enter to buy everything in your cart, Esc to buy nothing.");
Press Enter to buy everything in your cart, Esc to buy nothing."));
draw_caravan_categories(w, category_selected, total_price, g->u.cash);
draw_caravan_items(w, g, &(items[category_selected]),
&(item_count[category_selected]), offset, item_selected);
@@ -963,7 +962,7 @@ Press Enter to buy everything in your cart, Esc to buy nothing.");
break;
case KEY_ESCAPE:
if (query_yn("Really buy nothing?")) {
if (query_yn(_("Really buy nothing?"))) {
cancel = true;
done = true;
} else {
@@ -976,10 +975,10 @@ Press Enter to buy everything in your cart, Esc to buy nothing.");
case '\n':
if (total_price > g->u.cash)
popup("You can't afford those items!");
else if ((items[0].empty() && query_yn("Really buy nothing?")) ||
popup(_("You can't afford those items!"));
else if ((items[0].empty() && query_yn(_("Really buy nothing?"))) ||
(!items[0].empty() &&
query_yn("Buy %d items, leaving you with $%d?", items[0].size(),
query_yn(_("Buy %d items, leaving you with $%d?"), items[0].size(),
g->u.cash - total_price)))
done = true;
if (!done) { // We canceled, so redraw everything
@@ -1000,31 +999,30 @@ Press Enter to buy everything in your cart, Esc to buy nothing.");
item tmp(g->itypes[ items[0][i] ], g->turn);
tmp = tmp.in_its_container(&(g->itypes));
for (int j = 0; j < item_count[0][i]; j++) {
if (g->u.volume_carried() + tmp.volume() <= g->u.volume_capacity() &&
g->u.weight_carried() + tmp.weight() <= g->u.weight_capacity() &&
if (g->u.can_pickVolume(tmp.volume()) && g->u.can_pickWeight(tmp.weight()) &&
g->u.inv.size() < inv_chars.size())
g->u.i_add(tmp);
else { // Could fit it in the inventory!
dropped_some = true;
g->m.add_item(g->u.posx, g->u.posy, tmp);
g->m.add_item_or_charges(g->u.posx, g->u.posy, tmp);
}
}
}
if (dropped_some)
g->add_msg("You drop some items.");
g->add_msg(_("You drop some items."));
}
}
std::string caravan_category_name(caravan_category cat)
{
switch (cat) {
case CARAVAN_CART: return "Shopping Cart";
case CARAVAN_MELEE: return "Melee Weapons";
case CARAVAN_GUNS: return "Firearms & Ammo";
case CARAVAN_COMPONENTS: return "Crafting & Construction Components";
case CARAVAN_FOOD: return "Food & Drugs";
case CARAVAN_CLOTHES: return "Clothing & Armor";
case CARAVAN_TOOLS: return "Tools, Traps & Grenades";
case CARAVAN_CART: return _("Shopping Cart");
case CARAVAN_MELEE: return _("Melee Weapons");
case CARAVAN_GUNS: return _("Firearms & Ammo");
case CARAVAN_COMPONENTS: return _("Crafting & Construction Components");
case CARAVAN_FOOD: return _("Food & Drugs");
case CARAVAN_CLOTHES: return _("Clothing & Armor");
case CARAVAN_TOOLS: return _("Tools, Traps & Grenades");
}
return "BUG (defense.cpp:caravan_category_name)";
}
@@ -1135,7 +1133,7 @@ void draw_caravan_borders(WINDOW *w, int current_window)
mvwputch(w, FULL_SCREEN_HEIGHT-1, FULL_SCREEN_WIDTH-1, col, LINE_XOOX);
// Quick reminded about help.
mvwprintz(w, FULL_SCREEN_HEIGHT-1, 2, c_red, "Press ? for help.");
mvwprintz(w, FULL_SCREEN_HEIGHT-1, 2, c_red, _("Press ? for help."));
wrefresh(w);
}
@@ -1145,9 +1143,7 @@ void draw_caravan_categories(WINDOW *w, int category_selected, int total_price,
// Clear the window
for (int i = 1; i <= 10; i++)
mvwprintz(w, i, 1, c_black, "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx");
mvwprintz(w, 1, 1, c_white, "Your Cash:%s%d",
(cash >= 10000 ? " " : (cash >= 1000 ? " " : (cash >= 100 ? " " :
(cash >= 10 ? " " : " ")))), cash);
mvwprintz(w, 1, 1, c_white, _("Your Cash:%6d"),cash);
wprintz(w, c_ltgray, " -> ");
wprintz(w, (total_price > cash ? c_red : c_green), "%d", cash - total_price);
@@ -1170,7 +1166,7 @@ void draw_caravan_items(WINDOW *w, game *g, std::vector<itype_id> *items,
// THEN print it--if item_selected is valid
if (item_selected < items->size()) {
item tmp(g->itypes[ (*items)[item_selected] ], 0); // Dummy item to get info
mvwprintz(w, 12, 0, c_white, tmp.info().c_str());
mvwprintz(w, 12, 1, c_white, tmp.info().c_str());
}
// Next, clear the item list on the right
for (int i = 1; i <= FULL_SCREEN_HEIGHT-2; i++)
@@ -1179,13 +1175,10 @@ void draw_caravan_items(WINDOW *w, game *g, std::vector<itype_id> *items,
for (int i = offset; i <= offset + FULL_SCREEN_HEIGHT-2 && i < items->size(); i++) {
mvwprintz(w, i - offset + 1, 40, (item_selected == i ? h_white : c_white),
g->itypes[ (*items)[i] ]->name.c_str());
wprintz(w, c_white, " x %s%d", ((*counts)[i] >= 10 ? "" : " "), (*counts)[i]);
wprintz(w, c_white, " x %2d", (*counts)[i]);
if ((*counts)[i] > 0) {
int price = caravan_price(g->u, g->itypes[(*items)[i]]->price *(*counts)[i]);
wprintz(w, (price > g->u.cash ? c_red : c_green),
"($%s%d)", (price >= 100000 ? "" : (price >= 10000 ? " " :
(price >= 1000 ? " " : (price >= 100 ? " " :
(price >= 10 ? " " : " "))))), price);
wprintz(w, (price > g->u.cash ? c_red : c_green), "($%6d)", price);
}
}
wrefresh(w);
@@ -1214,7 +1207,7 @@ void defense_game::spawn_wave(game *g)
}
}
if (valid.size() == 0) {
g->add_msg("Welcome to Wave %d!", current_wave);
g->add_msg(_("Welcome to Wave %d!"), current_wave);
g->add_msg("********");
return;
}
@@ -1235,7 +1228,7 @@ void defense_game::spawn_wave(game *g)
diff -= type->difficulty;
spawn_wave_monster(g, type);
}
g->add_msg("Welcome to Wave %d!", current_wave);
g->add_msg(_("Welcome to Wave %d!"), current_wave);
g->add_msg("********");
}
@@ -1271,16 +1264,16 @@ void defense_game::spawn_wave_monster(game *g, mtype *type)
{
monster tmp(type);
if (location == DEFLOC_HOSPITAL || location == DEFLOC_MALL) {
tmp.posy = SEEY; // Always spawn to the north!
tmp.posx = rng(SEEX * (MAPSIZE / 2), SEEX * (1 + MAPSIZE / 2));
// Always spawn to the north!
tmp.setpos(rng(SEEX * (MAPSIZE / 2), SEEX * (1 + MAPSIZE / 2)), SEEY);
} else if (one_in(2)) {
tmp.spawn(rng(SEEX * (MAPSIZE / 2), SEEX * (1 + MAPSIZE / 2)), rng(1, SEEY));
if (one_in(2))
tmp.posy = SEEY * MAPSIZE - 1 - tmp.posy;
tmp.setpos(tmp.posx(), SEEY * MAPSIZE - 1 - tmp.posy());
} else {
tmp.spawn(rng(1, SEEX), rng(SEEY * (MAPSIZE / 2), SEEY * (1 + MAPSIZE / 2)));
if (one_in(2))
tmp.posx = SEEX * MAPSIZE - 1 - tmp.posx;
tmp.setpos(SEEX * MAPSIZE - 1 - tmp.posx(), tmp.posy());
}
tmp.wandx = g->u.posx;
tmp.wandy = g->u.posy;
@@ -1288,30 +1281,32 @@ void defense_game::spawn_wave_monster(game *g, mtype *type)
// We wanna kill!
tmp.anger = 100;
tmp.morale = 100;
g->z.push_back(tmp);
g->add_zombie(tmp);
}
std::string defense_game::special_wave_message(std::string name)
{
std::stringstream ret;
ret << "Wave " << current_wave << ": ";
name[0] += 'A' - 'a'; // Capitalize
ret << string_format(_("Wave %d: "), current_wave);
// Capitalize
capitalize_letter(name);
for (int i = 2; i < name.size(); i++) {
if (name[i - 1] == ' ')
name[i] += 'A' - 'a';
if (name[i - 1] == ' ') {
capitalize_letter(name, i);
}
}
switch (rng(1, 6)) {
case 1: ret << name << " Invasion!"; break;
case 2: ret << "Attack of the " << name << "s!"; break;
case 3: ret << name << " Attack!"; break;
case 4: ret << name << "s from Hell!"; break;
case 5: ret << "Beware! " << name << "!"; break;
case 6: ret << "The Day of the " << name << "!"; break;
case 7: ret << name << " Party!"; break;
case 8: ret << "Revenge of the " << name << "s!"; break;
case 9: ret << "Rise of the " << name << "s!"; break;
case 1: ret << string_format(_("%s Invasion!"), name.c_str()); break;
case 2: ret << string_format(_("Attack of the %ss!"), name.c_str()); break;
case 3: ret << string_format(_("%s Attack!"), name.c_str()); break;
case 4: ret << string_format(_("%s from Hell!"), name.c_str()); break;
case 5: ret << string_format(_("Beware! %s!"), name.c_str()); break;
case 6: ret << string_format(_("The Day of the %s!"), name.c_str()); break;
case 7: ret << string_format(_("%s Party!"), name.c_str()); break;
case 8: ret << string_format(_("Revenge of the %ss!"), name.c_str()); break;
case 9: ret << string_format(_("Rise of the %ss!"), name.c_str()); break;
}
return ret.str();
+1 -272
View File
@@ -77,10 +77,6 @@ enum talk_trial
NUM_TALK_TRIALS
};
std::string talk_trial_text[NUM_TALK_TRIALS] = {
"", "LIE", "PERSUADE", "INTIMIDATE"
};
struct talk_response
{
std::string text;
@@ -151,271 +147,4 @@ struct tag_data
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
#endif // _DIALOGUE_H_
+1554 -1208
View File
File diff suppressed because it is too large Load Diff

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