Compare commits

...

3094 Commits

Author SHA1 Message Date
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
Kevin Granade 7f7b54571b Final updates for 0.7 release. 2013-07-16 22:11:59 -05:00
Christian Buskirk ce89fe960d Merge PR #2078 - Autosave option fix 2013-07-16 19:31:13 -07:00
Christian Buskirk 66261402ff Merge PR #2080 - Vehicle saving 2013-07-16 19:30:17 -07:00
Christian Buskirk 7f46a542fe Merge PR #2077 - Folding bike improvements 2013-07-16 19:29:09 -07:00
Kevin Granade 40e85b0353 Allow saving while in a vehicle. Fixes #2064 2013-07-16 20:58:22 -05:00
Kevin Granade c00cd7b9bb Serialize flags and passenger_id members of vehicle components. 2013-07-16 20:57:40 -05: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
Kevin Granade a9e420dc61 Set minimum number of turns between autosave to 1 to prevent div/0 error. Fixes #1922. 2013-07-16 20:07:46 -05:00
Kevin Granade f0271b1cec Convert a manual check for watch flag to use a handy helper method. 2013-07-16 20:03:27 -05:00
Eric 7b71c4882a ignore benign traps when dodging 2013-07-16 17:50:48 -07:00
Kevin Granade 824b10ea1d Merge remote-tracking branch 'dda/pr/2076' into dda-master 2013-07-16 19:41:19 -05:00
Kevin Granade 4e7d34e05e Merge Accuracy rebalance, AltGr fix, and Blade trap placement fix. 2013-07-16 19:25:35 -05:00
Kevin Granade 38d2a07c65 Drop folding bicycle box items on ground when folding bicycle. 2013-07-16 19:12:54 -05:00
Kevin Granade b2a08ee4e1 Add construction recipe for folding bicycle. 2013-07-16 19:12:01 -05:00
Kevin Granade f772977184 Add folding bicycle to a few spawn groups. 2013-07-16 19:11:33 -05:00
OzoneH3 d0c4519b0d Added wristwatch to itemgroups. 2013-07-16 21:08:01 +02:00
OzoneH3 9cac01cd22 Added a wristwatch. If worn show exact time, otherwise only show the current position of the sun/moon. 2013-07-16 20:59:16 +02:00
Peter Lacey-Bordeaux 7458ef8655 fixed blade trap problem 2013-07-16 12:24:43 -04:00
OzoneH3 8580f7f78f Sun/Moon position instead of precise time for people without a watch. 2013-07-16 17:13:07 +02: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
utunnels 2d200f5af7 Now use left alt to input alt+number because AltGr is right alt in sdl. 2013-07-16 16:17:06 +08: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 3ae6a1a8de Extend rebalance to new weapons/ammo 2013-07-15 23:35:19 -07:00
Christian Buskirk 0667b20125 Solve merge conflicts 2013-07-15 23:32:19 -07:00
Christian Buskirk ff57ac89f5 Syntax fix 2013-07-15 22:52:37 -07:00
Christian Buskirk e09af5d70c Update NPC targeting confidence function 2013-07-15 22:27:38 -07:00
Christian Buskirk 5a689e44c8 Made perception and Dexterity no longer display 0 as a "bonus" 2013-07-15 21:57:20 -07:00
Christian Buskirk 682174ce74 Overall dispersion reduction
Total ammo+gun reduction of 14
2013-07-15 20:59:54 -07:00
Kevin Granade d2a3acd821 Catch up changelog to current feature list. 2013-07-15 22:51:46 -05: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
Stevensonz e91193ee04 New Revolvers Ammo, Recipe
Some Revolver love
2013-07-15 21:49:16 -05: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
Kevin Granade 9f03f153da Fix bad material labels, addresses #2028. 2013-07-15 19:29:01 -05: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
Kevin Granade c24c775694 Merge too much stuff to list. 2013-07-15 18:21:24 -05:00
Peter Lacey-Bordeaux 37fd1058cc removed unused variable 2013-07-15 13:27:15 -04:00
Peter Lacey-Bordeaux 8e4b775338 changed get_direction in bionics to choose_adjacent 2013-07-15 13:24:20 -04:00
Christian Buskirk 2218ca1009 Fix typo
Thanks to OzoneH3 for catching that.
2013-07-15 05:05:10 -07:00
Christian Buskirk a39dfc3ab4 Fix Advanced UPS plutonium cell duplication
Closes issue #1780
2013-07-15 04:55:23 -07:00
Christian Buskirk 95abc56e14 Unify painkiller usage
Closes issue #1880
2013-07-15 04:31:31 -07:00
Christian Buskirk 5ea66d8bdf Clean outside cache logic 2013-07-15 03:23:40 -07:00
Christian Buskirk 00e5091d61 Clean pocket logic 2013-07-15 03:23:31 -07:00
OzoneH3 9e32ac83d4 Fixed list items compare feature 2013-07-15 12:22:46 +02:00
OzoneH3 3c23b7dadb Added option to enable/disable zombie revival 2013-07-15 11:25:06 +02:00
utunnels 31899327e2 Quick fix to missing popup printf parameters. 2013-07-15 17:13:16 +08:00
carnie 94f93110b5 Split game::autosave() into two - quicksave() handles the vehicle, movement and item checks (i.e. anything that could potentially lead to problems by saving rapidly or due to bugs) and then handles the saving. autosave() handles the time-delay checks and then calls quicksave()
Removed some copypasta'd autosave() code and replaced it with quicksave().

keymap not updated, I'd recommend 'q' as the quicksave key.
2013-07-15 10:10:56 +01:00
Christian Buskirk 7081984ab4 Merge PR#1998 - Ammotype to std::string
Conflicts:
	data/raw/items/ammo.json
	veh_interact.cpp
	vehicle.cpp
2013-07-15 02:02:15 -07:00
OzoneH3 49448b0f54 Added Auto Pickup Safemode 2013-07-15 10:59:17 +02:00
Christian Buskirk cfa8ac17e3 Merge PR#2058 - Fix NPC item give crash 2013-07-15 01:42:00 -07:00
Christian Buskirk f14d24ec56 Mrege PR#2038 - Remove inside dynamic spawns 2013-07-15 01:32:45 -07:00
Christian Buskirk f5a8fe533b Merge PR#2056 - Turret drop nerf 2013-07-15 01:19:20 -07:00
Christian Buskirk 9ac3e63f0a Merge PR#2051 - Vehicle fling fix 2013-07-15 01:16:22 -07:00
Christian Buskirk 392ca258c0 Merge PR#2054 - Power armor/Mutation interaction 2013-07-15 01:10:22 -07:00
Christian Buskirk 0bac7ba12b Merge PR#2046 - Classic monster fix 2013-07-15 01:02:05 -07:00
OzoneH3 8b3eb919aa Added a border to the vehicle menu and centered it. 2013-07-15 10:01:49 +02:00
GalenEvil 12f57e1871 Fiddled with the popup message for when an NPC gives the player something to avert a segfault. 2013-07-15 01:18:33 -05:00
Kevin Granade eb37236a3a Merge text wrap and key entry fix, increased food ingredient spawns, destructable and stocked ovens, and a fix to a friendly monster movement induced hang. 2013-07-14 22:35:32 -05:00
Kevin Granade c5ecb9b2b5 Reduce volume of items dropped by turrets, and ratio of junk parts to ammo. 2013-07-14 14:31:09 -05:00
TireExaminer 82772439ba Fixes friendly monster movements. 2013-07-14 15:27:15 -04:00
Kevin Granade 16ae0f2ba0 Use player::takeoff() to handle shedding armor due to mutation. 2013-07-14 13:17:51 -05:00
Kevin Granade ad76ca8fea Auto-drop power-armor components if power armor is removed. 2013-07-14 13:17:20 -05:00
Kevin Granade 7ad9c75e7f Clear controlling_vehicle flag when dismounting a player from a vehicle. 2013-07-14 10:51:55 -05:00
somerandomlogin 4729e4ac69 Cleaning up. 2013-07-14 18:22:27 +04:00
somerandomlogin 441a6ee6ee Ovens and cupboards fixes. 2013-07-14 18:01:29 +04: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
utunnels 23a1d95d18 Merge branch 'master' of github.com:CleverRaven/Cataclysm-DDA into wwfix 2013-07-14 10:58:59 +08:00
utunnels fb09d161e0 Fix % format string bug for @ menu info window. 2013-07-14 10:58:01 +08:00
Kevin Granade 0b4f01b5ee Disable monster spawn generation of non classic monsters in classic zombie mode. 2013-07-13 20:23:18 -05:00
Kevin Granade 4edd31d66c Make counterattacks a free action to avoid counter-locking the player. 2013-07-13 18:38:49 -05:00
cib be968a9dff Made salt more common. 2013-07-14 00:27:03 +02:00
Kevin Granade d7577cbae6 Prevent dynamic spawning creatures inside houses. 2013-07-13 17:05:57 -05:00
Vollch 1ea95529a8 Intelligence dependent skill rust 2013-07-14 01:00:37 +04:00
Christian Buskirk 44507e7a24 Merge PR#2034 - Examine crash fix 2013-07-13 13:56:58 -07:00
Christian Buskirk f399387738 Merge PR#1962 - No negative divergence 2013-07-13 13:48:50 -07:00
Christian Buskirk 39a2073959 Merge PR#2014 - FMJ cleanup 2013-07-13 13:24:22 -07:00
Christian Buskirk ff7d545aa3 Merge PR#2032 - new recipes 2013-07-13 13:03:53 -07:00
Christian Buskirk ac460114c5 Further merge fixes 2013-07-13 12:31:32 -07:00
Christian Buskirk e623d9285e Merge PR#1890 - Folding bicycles
Conflicts:
	data/raw/items/tools.json
	item_factory.cpp
	iuse.cpp
	iuse.h
2013-07-13 12:18:46 -07:00
somerandomlogin 0ddd311674 Bugfix: crash when listing items around the player 2013-07-13 22:49:45 +04:00
utunnels 020534ef18 Use only right alt key to input alt+number combinations. 2013-07-13 23:53:24 +08:00
utunnels 2a70cc6231 Merge branch 'wwfix' of github.com:utunnels/Cataclysm-DDA into wwfix 2013-07-13 23:51:20 +08:00
RexWolf163ru 27615c07b0 Some new crafting recipes. 2013-07-13 01:57:14 -05:00
Kevin Granade 6bb5133271 Rejigger towel effect to remove wet morale penalty instead of trying to counteract it. Spelling change. 2013-07-13 01:28:42 -05:00
Kevin Granade 755587c7ba Cleanup missing brackets and NPC skullsplosions (TM Nickboom). 2013-07-13 01:28:42 -05:00
Kevin Granade 6454dd6936 Merge towels, NPC vehicle interactions, cap smoke damage, and consumable accounting. 2013-07-13 01:26:12 -05:00
utunnels dd992ef821 Fix player info menu word wrapping. 2013-07-13 13:30:54 +08:00
Christian Buskirk 9ffd98c43b Merge PR#1833 - translation.h file addition 2013-07-12 21:57:32 -07:00
Kevin Granade b1289f2f0c Fix logic fail preventing removal of parts on mount points. 2013-07-12 22:12:54 -05:00
Kevin Granade a5d360858d Fix a typo. 2013-07-12 21:11:05 -05:00
Kevin Granade 6c2a0abc71 Move tire change operation to its own menu item. 2013-07-12 21:02:54 -05:00
cib 8d56d5fb94 Fix issue #2000
Only go into the new item use case for boots, not for any item that has an iuse.
2013-07-12 19:23:13 +02:00
cib be8e2a50dc Put a cap on the duration of smoke effect.
Losing the torso health bar 5x over fully because you spent a while in an underground cellar with fire, trying to wait for it to go out is ridiculous.
2013-07-12 15:39:02 +02:00
GalenEvil dd5a9aad31 Added missing iuse_function_list value for Towels so they can actually be used. 2013-07-11 21:07:47 -05: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
Kevin Granade 5cb0826632 Merge pull request #2015 from bxshi/fix_contributing_link_in_readme
change link of CONTRIBUTING.md to CleverRaven's repo
2013-07-11 16:56:10 -07:00
Kevin Granade 7a265293f9 Merge bionic menu simplification. 2013-07-11 18:55:23 -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
Costin Olteanu df871a1446 NPC checks path before attempting to leave vehicle 2013-07-11 10:22:37 +03:00
Christian Buskirk 44eaf8e4e9 Merge PR#2008 - Solar panel fix 2013-07-11 00:13:29 -07:00
Costin Olteanu f37a8d1feb NPCs no longer enter moving vehicles 2013-07-11 10:06:18 +03:00
Baoxu Shi ba33cf8704 change link of CONTRIBUTING.md to CleverRaven's repo 2013-07-11 14:01:44 +08:00
Kevin Granade d2978b2c19 Change ammo type identifiers to lower case. 2013-07-10 23:44:45 -05:00
Christian Buskirk 27b71c7703 Merge PR#2011 - Add skewers to food recipes 2013-07-10 20:29:56 -07:00
Christian Buskirk 1f4603ba26 Merge PR#2010 - Fix quest book materials 2013-07-10 20:29:12 -07:00
Kevin Granade f724c9da04 Remove some redundant FMJ variants, and make the descriptions clearer that FMJ isn't armor piercing. 2013-07-10 22:25:57 -05:00
Peter Lacey-Bordeaux e7b444debb fixed typo 2013-07-10 22:29:04 -04:00
Peter Lacey-Bordeaux fe37756898 fixed battery error 2013-07-10 22:15:12 -04:00
Peter Lacey-Bordeaux e64767b28c removed legacy bionics code 2013-07-10 22:08:06 -04:00
Kevin Granade 835e098b09 Add skewer to cooking recipes. 2013-07-10 21:04:33 -05:00
Kevin Granade 71b8df3f4b Fix incorrect material labels on quest targets. 2013-07-10 20:57:12 -05:00
Kevin Granade dc7ce68266 Remove redundant default argument assignment to make Clang happy. 2013-07-10 20:47:21 -05:00
Kevin Granade 8fe6aee088 Merge autopickup improvements. 2013-07-10 19:24:56 -05:00
Peter Lacey-Bordeaux 58e1a7dfc3 Merge branch 'master' of https://github.com/CleverRaven/Cataclysm-DDA 2013-07-10 20:22:26 -04:00
Kevin Granade efb547710a Towel function, typo corrections, container JSONification, and MAC compile fixes. 2013-07-10 18:58:18 -05:00
Kevin Granade 9d30a62045 Base power production from solar panels on sunlight at the panel's location instead of the vehicle origin, and ignore vehicle roof. 2013-07-10 17:47:35 -05:00
cib 90c6469c19 JSONize container templates. 2013-07-10 21:40:38 +02:00
Joseph C af817c6b6a Gihub, the best site for all your gi needs 2013-07-10 14:23:03 -05:00
OzoneH3 f7171fe70d Autopickup rules are now case insensitive. 2013-07-10 11:48:55 +02:00
mattbrk eaf93728ff Merge branch 'osx' of https://github.com/mattkelr/Cataclysm-DDA into osx 2013-07-10 02:07:37 -04:00
mattbrk 346f78da6b edit 2013-07-10 02:05:36 -04:00
Matt Keller f0bd034cb2 Update COMPILING_osx.md 2013-07-10 01:59:29 -04:00
Matt Keller 34ba3160d2 Update COMPILING_osx.md 2013-07-10 01:56:14 -04:00
mattbrk 482f33f92b tighten up howto 2013-07-10 01:52:28 -04:00
Kevin Granade b716753531 Convert ammotype from an enum to a std::string to allow more values. 2013-07-09 22:47:29 -05:00
GalenEvil 1ee77c56fd ... and left off the c_str() on the messages. Fixed now. 2013-07-09 19:17:30 -05:00
GalenEvil 50cb9acbec typo in morale modifier name 2013-07-09 19:14:58 -05:00
GalenEvil 640571556c Added iuse function for absorbant materials, namely towels, so that the player can dry themself. Adds morale bonus for going from wet->dry 2013-07-09 19:12:44 -05:00
OzoneH3 0fa471a267 Added funktion to test all items against a rule and see the matching results. 2013-07-09 20:30:38 +02:00
Peter Lacey-Bordeaux c31d362b05 Merge branch 'master' of https://github.com/CleverRaven/Cataclysm-DDA 2013-07-09 11:17:03 -04:00
Peter Lacey-Bordeaux 2684d3ad99 fixed small bug 2013-07-09 11:07:09 -04:00
OzoneH3 7c480131a3 Merge branch 'autopickup' of https://github.com/OzoneH3/Cataclysm-DDA into autopickup 2013-07-09 17:03:54 +02:00
OzoneH3 5d64700e69 Auto pickup with characterspecific rules. Advanced rules matching with * wildcard. 2013-07-09 17:03:21 +02: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
GalenEvil 8922640a45 Stupid additional typo... 2013-07-09 02:31:19 -05:00
GalenEvil ea27ba067f Fixed typos for floatation_vest armor id/name
Fixed typos for floatation_vest tag "FLOATATION" and references to it in game::vertical_move(...) and player::swim_speed(...)
2013-07-09 02:07:41 -05:00
mattbrk 510cdd5ec1 edit 2013-07-09 02:28:19 -04:00
mattbrk 8ce5a3a28a use -lSDL, -lSDL_ttf or frameworks for osx 2013-07-09 02:16:09 -04:00
Peter Lacey-Bordeaux 9c7cc37aa5 part way through changing player.cpp to add_msg_action 2013-07-09 01:05:41 -04:00
GalenEvil 501cc69330 Signed SIGNOFF file 2013-07-08 23:43:20 -05:00
GalenEvil 280a27c422 Merge remote-tracking branch 'origin/pr/1979' 2013-07-08 22:34:51 -05:00
GlyphGryph 4e6bd58d2e Merge remote-tracking branch 'core/pr/1920'
Conflicts:
	data/raw/items/ammo.json
2013-07-08 22:37:01 -04:00
Kevin Granade 2f6895476c Merge code cleanups, performance enhancements, and pickles.
Conflicts:
	data/raw/item_groups.json
	data/raw/items/comestibles.json
2013-07-08 20:38:34 -05:00
Kevin Granade e2029587f0 Add floatation vest and associated logic. 2013-07-08 19:38:40 -05:00
OzoneH3 b6d8cd5978 Merge branch 'autopickup' of https://github.com/OzoneH3/Cataclysm-DDA into autopickup 2013-07-08 18:31:11 +02:00
OzoneH3 f76074b8bc Auto pickup preparations for characterspecific rules and options 2013-07-08 17:16:02 +02:00
Darth Servo 6d741ccb52 Directional Antenna fix 2013-07-08 10:55:54 -04:00
Peter Lacey-Bordeaux 94c06e68f2 Merge branch 'master' of https://github.com/CleverRaven/Cataclysm-DDA 2013-07-08 08:48:56 -04:00
utunnels 5ad6920325 Minor fix to waddch to avoid extra erease_utf8_by_cw call. 2013-07-08 11:43:49 +08:00
utunnels ab2d34ea01 Try to reduce cursorx_to_position call for map window. Move cursor options after sdl window is created to prevent random segfaults. 2013-07-08 11:32:13 +08:00
RJ Costanzo a738de0474 Pickles 2013-07-07 21:35:46 -04:00
Zaweri Runewright 9cc2d5ccd6 Add new fmj rounds to item spawn lists. 2013-07-07 18:12:59 -05:00
Zaweri Runewright caaea1f0f2 Add gold as a crafting material and add it to ammunition crafting recipes. 2013-07-07 18:12:58 -05:00
Zaweri Runewright 8cf7fada84 Add FMJ versions of many ammunition types. 2013-07-07 18:12:58 -05:00
Kevin Granade a022c908bd Merge pull request #1967 from narc0tiq/osx-cross-detect
Compiling OSX doesn't automatically imply OSX tar.
2013-07-07 16:12:17 -07:00
Octav Sandulescu 85e5683d46 Compiling OSX doesn't automatically imply OSX tar.
Hopefully, detecting the underlying OS will help there.
2013-07-08 00:02:04 +01:00
Peter Lacey-Bordeaux dec0d7a7e2 Merge branch 'master' of https://github.com/CleverRaven/Cataclysm-DDA 2013-07-07 16:12:04 -04:00
Kevin Granade e519a0fe77 Add entries for auto_pickup files to windows project files. 2013-07-07 15:06:48 -05:00
cib 811c412200 Removed game argument from player::add_disease 2013-07-07 21:59:46 +02:00
Kevin Granade 32c4ea9e54 Merge autopickup option menu. 2013-07-07 14:37:53 -05:00
Peter Lacey-Bordeaux a6ea4f7941 Merge remote-tracking branch 'myfork/master' into choose_adjacent 2013-07-07 15:22:00 -04:00
Peter Lacey-Bordeaux b19df88301 finished changing over getting direction inputs to choose_adjacent 2013-07-07 15:20:14 -04:00
Kevin Granade 186a5aa954 Remove unused variables. 2013-07-07 13:52:14 -05:00
Kevin Granade 9301114316 Merge a batch of small fixes. 2013-07-07 13:46:52 -05:00
Kevin Granade c0cfc62e10 Merge more i18n and disease identifier change. 2013-07-07 13:43:47 -05:00
Kevin Granade a15abe7185 Fix a typo in ranged.json. 2013-07-07 13:43:39 -05:00
Kevin Granade b802684082 Merge a pile of new items.
Conflicts:
	data/raw/recipes.json
2013-07-07 13:19:26 -05:00
Peter Lacey-Bordeaux 2bed854469 debugging direction changes 2013-07-07 13:55:10 -04:00
Peter Lacey-Bordeaux e60739392e Changed iuse and iexamine to use choose_adjacent 2013-07-07 13:25:41 -04:00
Kevin Granade 615feebe5f floor divergence contributed from skills and stats at 0, no negative divergence. 2013-07-07 11:31:48 -05:00
Peter Lacey-Bordeaux 4b29d396f3 Merge branch 'master' of https://github.com/CleverRaven/Cataclysm-DDA 2013-07-07 11:37:39 -04:00
mattbrk d1889b2061 Merge branch 'osx' of https://github.com/mattbrk/Cataclysm-DDA into osx 2013-07-07 10:47:07 -04:00
mattbrk 0c51a373da remove unneeded osx var, tar -s for osx bindist
use command line/env variables for osx CXXFLAGS, LDFLAGS.
`make bindist' works for osx build:
`tar --transform' doesn't work on osx, use `tar -s' instead.
add all targets/obj dirs to 'clean' target
2013-07-07 10:45:46 -04:00
Matt K 7433e4f552 Update COMPILING_osx.md 2013-07-07 10:43:31 -04:00
Matt K 0f8e60b717 Update COMPILING_osx.md 2013-07-07 09:50:42 -04:00
mattbrk 892cdb6237 remove unneeded osx var, tar -s for osx bindist
use command line/env variables for osx CXXFLAGS, LDFLAGS.
`make bindist' works for osx build:
`tar --transform' doesn't work on osx, use `tar -s' instead.
2013-07-07 09:29:54 -04:00
Voker57 35fc6ddd90 Make glass jars more common 2013-07-07 13:49:00 +04:00
Voker57 a48dda91dc Buffed wood burning to compensate for field code changes 2013-07-07 13:47:31 +04:00
Voker57 f4f411937a Added woods soup 2013-07-07 13:47:10 +04:00
Voker57 1bdcda2a7c Added kompot 2013-07-07 13:46:49 +04:00
OzoneH3 13847fb6a0 Merge branch 'master' of https://github.com/CleverRaven/Cataclysm-DDA into autopickup 2013-07-07 10:45:59 +02:00
RJ Costanzo 89ffbe1b8f Pipe shotgun+sawn version 2013-07-06 23:01:43 -04:00
Jonathan Frederick 5660c816e9 Fix spelling error in 'code_doc/GAME_BALANCE' 2013-07-06 18:50:10 -07:00
Vollch 0de109a437 Size check 2013-07-07 03:45:26 +04:00
Eric 5f4416c10a Monsters killed by bio_ods or quills/spines mutation drop corpses/loot 2013-07-06 16:26:03 -07:00
Kevin Granade 923db00ead Revert conditional setting of CXX and removal of CSSFLAGS from linker line. 2013-07-06 18:22:47 -05:00
Kevin Granade f8000e1438 Revert conditional assignment of LD, which is not working as expected. 2013-07-06 17:50:37 -05:00
Kevin Granade 472a993be6 New items, item name fix, clang build fix and sweep attack fix. 2013-07-06 17:42:00 -05:00
RJ Costanzo 4a111367d8 Nail rifle 2013-07-06 18:35:49 -04:00
Vollch 75cb306055 A bit cleaner and name fix 2013-07-07 01:17:29 +04:00
Kevin Granade ab10751ee6 Add folding bicycle and associated logic. 2013-07-06 15:28:01 -05:00
Kevin Granade 41426c2c99 Add vehicle tags field to hold vehicle metadata. 2013-07-06 15:22:03 -05:00
Kevin Granade 710c77fcb6 Cleanup veh_interact::cant_do() and fix tire change requirement checking. 2013-07-06 15:22:03 -05:00
Kevin Granade aaf4af0d8a Remove game *g parameter from palyer::i_rem(). 2013-07-06 15:15:57 -05:00
RJ Costanzo 1e410d8de1 Useful stuff final hopefully 2013-07-06 13:46:35 -04:00
Vollch 76642f5e89 Boot knife 2013-07-06 21:16:34 +04:00
cib fa893b308f Removed non-existing file from windows code::blocks project. 2013-07-06 17:44:43 +02:00
Eric 55c06c8802 Monsters killed by wide attacks drop corpses/loot 2013-07-06 08:34:58 -07:00
cib 8ef9408864 Merge remote-tracking branch 'main/master' into disease_as_string 2013-07-06 17:14:42 +02:00
OzoneH3 d27a45675d Remove Codeblocks file 2013-07-06 16:32:47 +02:00
OzoneH3 ca2f4f52bd Missing Files .. 2013-07-06 16:28:04 +02:00
OzoneH3 895ac666bd Added Auto Pickup Rules Manager in help menu ?3
Fixed an itemcompare Bug.
2013-07-06 16:26:42 +02:00
cib bf73d905c4 Converted disease identifiers from enum to string. 2013-07-06 15:21:58 +02:00
Tommy a59d6883ca Fix minor spacing issue and convert a couple missed strings. 2013-07-06 23:20:25 +12:00
cib b6bd2f3ea7 Make cataclysm compile in clang.
1. clang didn't like `point look_debug(point point=point(-256,-256));`
2. CXX is now set with ?= so if you have CXX=clang++ set in your environment, it won't be overriden.
3. Even though $(LD) was used to compile the cataclysm executable, it was passed arguments that only gcc and not ld accepts. Thus changed it from $(LD) to $(CXX)
2013-07-06 13:16:50 +02:00
cib a8c83640c4 item.name is now initialized from itype in constructor 2013-07-06 12:50:29 +02:00
Tommy 5f5a5c82a0 Update lang/po/cataclysm-dda.pot. 2013-07-06 18:05:50 +12:00
Tommy 2c5685be49 Finish i18n for newcharacter.cpp. 2013-07-06 18:04:24 +12:00
Tommy 71d8814b4a newcharacter.cpp: description tab i18n. 2013-07-06 17:52:31 +12:00
Tommy a416764149 newcharacter.cpp: skills tab i18n. 2013-07-06 17:28:56 +12:00
Tommy 6968084578 Remove unnecessary \n's from data/raw/skills.json. 2013-07-06 17:28:36 +12:00
Tommy 3ce1b2009a newcharacter.cpp: professions tab i18n. 2013-07-06 17:21:36 +12:00
Tommy 0543803a10 Remove unnecesary \n's from data/raw/professions.json. 2013-07-06 17:21:01 +12:00
Tommy 43e7c09cba newcharacter.cpp: traits tab i18n. 2013-07-06 17:12:17 +12:00
Tommy 0394870246 Getextify traits and mutations. 2013-07-06 17:03:26 +12:00
Tommy 180faffc65 newcharacter.cpp: stats tab i18n. 2013-07-06 16:42:59 +12:00
Tommy f925d544c5 Add skills, professions and bionics to lang/extract_json_strings.py. 2013-07-06 16:22:43 +12:00
Tommy 6814c82b4a utf8_width(): Try to continue parsing even when unknown character is found. 2013-07-06 14:54:47 +12:00
Tommy bad2f57b94 Fix utf8_getch incorrectly identifying some obscure characters as overlong. 2013-07-06 14:53:41 +12:00
Kevin Granade 13b3711822 Fix auto_pickup typo. 2013-07-05 21:42:04 -05:00
Kevin Granade 5286878d8a Merge autopickup, bionic cleanup, sludge crawler, new professions, fix monster group decay, and limit teleportation distance.
Conflicts:
	mapdata.h
2013-07-05 21:36:51 -05:00
Kevin Granade c43bfe41fd Merge removal of map::itypes. 2013-07-05 18:23:03 -05:00
Darth Servo 546a8a4a13 Recipes for Plastic and Steel Jerrycans 2013-07-05 15:17:39 -04:00
Eric 8565b77409 Woops, forgot to cancel the tunnel. Also, add different error message. 2013-07-05 11:57:48 -07:00
Eric d84bccd7aa Limit max probability travel distance 2013-07-05 11:49:04 -07:00
Octav Sandulescu 3625b660e4 Remove unused map.itypes; use g->itypes where needed.
It was only two places.
2013-07-05 19:21:20 +01:00
OzoneH3 7a37eb14e5 Merge pull request #1927 from yobbobanana/german
Add raw translation file for de_DE.
2013-07-05 11:00:34 -07:00
Tommy 58a1c6d486 Add raw translation file for de_DE. 2013-07-06 04:28:58 +12:00
Kevin Granade 75b5e97d7b Merge pull request #1897 from GlyphGryph/remove_fourth
Removed 4th of July profession.  Bit late, maybe no one will notice.
2013-07-05 08:31:56 -07:00
Fergus Dall c6499013f1 Make mongroups die propperly, even if the queen dies at a distance 2013-07-05 15:02:58 +09:30
Fergus Dall d50a0a3a8b Save/load monster group dying status properly 2013-07-05 15:02:57 +09:30
Fergus Dall f48fff8f42 Add triffid hearts and fungal spires to the appropriate monster groups 2013-07-05 15:02:48 +09:30
utunnels e2dab3aaaf Bind textdomain with UTF-8. 2013-07-05 11:47:45 +08:00
Kevin Granade 8c464145e7 Convert ammo_effects field to a tags set instead of a binary flag field. 2013-07-04 18:46:15 -05:00
Kevin Granade 829275266e Add tags_from_json() method to load a list of strings into a set. 2013-07-04 18:46:15 -05:00
Kevin Granade 3a1b75af35 Move final few ammo definitions to JSON. 2013-07-04 18:46:15 -05:00
GlyphGryph f360bb1195 Removed the speed penalty from the sludge field until the sludge crawler can ignore it. 2013-07-04 18:42:52 -04:00
GlyphGryph 3d48f8b209 Moved field definitions to their own header file. 2013-07-04 18:27:47 -04:00
GlyphGryph 78db4ecb9c Included logic for reducing moves based on fields.
Unfortunately, this logic leads to some making it extremely dfficult to track move penalty exclusions, so the sludge crawler currently slows himself to a standstill with his slime.
2013-07-04 18:06:15 -04:00
NicholasDV 7d11865807 Fix of syntax error in recipes.json
Closes #1911

First aid kit had a small syntax error in the form of a comma at
a place where a comma should not be. This fixes it.
2013-07-04 17:47:35 -04:00
Peter Lacey-Bordeaux 26a04f918f Merge branch 'master' of https://github.com/CleverRaven/Cataclysm-DDA 2013-07-04 16:59:43 -04:00
Peter Lacey-Bordeaux ba03815a81 moved +powerlvl outside of the for loop 2013-07-04 16:46:28 -04:00
Peter Lacey-Bordeaux 23d459606b fixed small bug with water extractor 2013-07-04 16:35:39 -04:00
Peter Lacey-Bordeaux 63ace3b7f6 simplified both of the bionics that handle water, now uses g->handle_liquid 2013-07-04 16:33:23 -04:00
OzoneH3 a05431eeab Auto Pickup all items with 0 Volume and Weight 2013-07-04 21:55:57 +02:00
Kevin Granade fbcd715536 Merge first aid recipe, opsolete code cleanup, monster property fixes, armor menu reformat, utf8 handling fixes, building positioning fix, and furniture handling fix. 2013-07-04 14:45:34 -05:00
GlyphGryph 98c812aae8 Added basic sludge crawler monster
Monster exists, drops fields appropriately, fields do nothing at the moment
2013-07-04 14:48:48 -04:00
Christian Buskirk 6f4e4a9332 Fix FEMA tents 2013-07-04 11:41:03 -07:00
Christian Buskirk 71333c8f9c Fix tents not counting as indoors 2013-07-04 11:40:56 -07:00
Vollch 9bc2402b22 Correct placement of big buildings 2013-07-04 20:58:50 +04:00
OzoneH3 2a6821ff56 Merge branch 'autopickup' of https://github.com/OzoneH3/Cataclysm-DDA into autopickup 2013-07-04 18:30:20 +02:00
utunnels 7f91455cf5 Merge branch 'patch-1' of github.com:utunnels/Cataclysm-DDA into test 2013-07-04 23:56:07 +08:00
utunnels ca2c33abbf Merge branch 'alt-code' of github.com:utunnels/Cataclysm-DDA into test 2013-07-04 23:53:48 +08:00
utunnels 68f25feb5f Misc fixes. 2013-07-04 23:44:49 +08:00
OzoneH3 4c7713ad20 Autopickup 0 Volume Items 2013-07-04 17:18:45 +02:00
utunnels eaf15056cf Misc fixes. New utf_substr function to cut utf8 string. Rewrite many scattered string wrapping code using functions from output.cpp. 2013-07-04 23:14:23 +08:00
OzoneH3 8281db69c4 Small Inventory menu display enahncement. 2013-07-04 12:28:12 +02:00
OzoneH3 12d061aaa1 Reworked sort_armor (+) page to fit on 80x25 and centered it. 2013-07-04 11:56:52 +02:00
cib 155b363140 Removed the mapitems global and all references to it.
This global has been superceded by data/raw/item_groups.json
2013-07-04 10:05:40 +02:00
NicholasDV fdee5ee937 Merge branch 'master' into smallFixes 2013-07-04 01:09:41 -04:00
GlyphGryph ad6b1aea7e Removed 4th of July profession 2013-07-04 00:39:05 -04:00
utunnels 6982c8eeb7 Terminus!
Since sdlcurse changes its font scanning order, fixedsys should be renamed to fixedsysTTF because there are system fonts called Fixedsys as well. Besides wincurse uses data/termfont as the default font, SDL can just use the same one to avoid troubles.
2013-07-04 12:33:38 +08:00
Christian Buskirk 5a7ec3edb1 Merge 4th of July Effects 2013-07-03 21:26:18 -07:00
NicholasDV 4b67092933 Fixes a few flag issues on monsters
Closes #1878
Closes #1879

Specifically deals with 1878 by making the moose aggressive to those that are
near it, and to those that harm it. Deals with 1879 by giving the jabberwock
the MF_POISON flag, so that when it is butchered it will give tainted flesh
rather than regular flesh.

Note: The fix to 1878 might need small balancing changes, and feel free to tell
me if it does so that I may fix it.
2013-07-04 00:15:56 -04:00
utunnels 8208cc6c3c Bug fix. 2013-07-04 11:50:27 +08:00
utunnels c1f2c34695 Simulate alt+number input for SDL version. 2013-07-04 11:17:07 +08:00
Kevin Granade 02e4099bb5 Merge too many fixes to name. 2013-07-03 21:40:56 -05:00
cib 1ca7f2a6c8 Generated item_groups.json weights based on item rarities. 2013-07-04 02:22:59 +02:00
utunnels 380b52643f Merge branch 'master' of github.com:CleverRaven/Cataclysm-DDA into utf8 2013-07-04 08:18:37 +08:00
cib 3725fbc9e0 Completely converted over all item spawns to item_groups.json
This includes:
- Map spawn functions
- NPC random gear
- Monster clothing drops

Furthermore this commit includes:
- Replaced all mi_ enum instances with strings
- Added a helper function to check if an item is in a group
- Removed the mi_ enum itself
- Emptied mapitemsdef.cpp (will remove later)
2013-07-04 00:26:01 +02:00
Vollch 4dfd730eb2 Fixes #1884 2013-07-04 01:03:00 +04:00
GlyphGryph 40f73f671b Fixed accidently changing the chain smoker profession. 2013-07-03 16:38:56 -04:00
cib 9763d53e5f Monster drops now use item_groups.json
This requires several changes:
- monitemsdef.cpp to use strings for item groups instead of mi_foobar
- the spawn code in monster.cpp to use the new item_controller->id_from random item selection function instead of manually selecting an item
2013-07-03 22:22:27 +02:00
cib 7b7c95eedc Ported all the item groups from mapitemsdef.cpp to item_groups.json
Script used for conversion.
2013-07-03 22:17:43 +02:00
Voker57 ecae49a0c2 Restored burning wood yield buff, lost in merge 2013-07-04 00:15:19 +04:00
Darth Servo 4f66ede64a Recipe for First Aid 2013-07-03 14:51:15 -04:00
Voker57 f54ad1a0f5 150% more heat from fires
Because standing close to a raging fire at 18C shouldn't leave you chilly
2013-07-03 22:08:01 +04:00
Christian Buskirk f38fdeed58 Merge PR #1866 - Further recipe fixes
Conflicts:
	data/raw/recipes.json
2013-07-03 10:50:10 -07:00
Christian Buskirk 51c27dadbf Merge PR #1875 - Small Fixes 2013-07-03 10:31:44 -07:00
utunnels aabbec53b7 Filter out '\0' for wincurse, because unprintable characters causes deadly slowdown. 2013-07-03 23:51:49 +08:00
utunnels dc396fe954 Fix curses and cursesport conflict. 2013-07-03 23:28:19 +08:00
utunnels 7ba00561e8 Add missing cursesport.cpp. Remove unused headers in sdlcurse.cpp. 2013-07-03 21:28:19 +08:00
Tommy dec2dc7bf0 Tweak the curses header. 2013-07-03 23:10:21 +12:00
NicholasDV 46be778aee Added primitive_hammer as a possible tool for certain recipes
Recipes altered: stone hammer, brazier, metal tank, crowbar. Each of these
were capable of being built already by a regular 'hammer' object or by a
'rock'. As a result, the rock hammer (primitive_hammer) is completely reasonable
to be a possible tool as well.
2013-07-03 03:38:46 -04:00
utunnels eb8e823b66 Merge branch 'master' of github.com:CleverRaven/Cataclysm-DDA into utf8 2013-07-03 15:22:50 +08:00
NicholasDV dbf295d0e2 Small fix to last commit
Specifically, forgot a few commas that led to syntax errors. My fault,
but fixed up in this small commit.
2013-07-03 03:06:31 -04:00
utunnels 64bf5e2306 GDI version can now print utf8 characters normally. 2013-07-03 14:54:22 +08:00
utunnels 12128cc347 Move shared code in wincurse.cpp and sdlcurse.cpp to cursesport.cpp. Let SDL version use same font file as GDI version. 2013-07-03 14:51:03 +08:00
NicholasDV c5132d553f Allows the Integrated Toolset to be used in a few newer crafting recipes
Fixes #1734

Specifically, adds it as an available tool in the chainsaw recipe, as well
as the three crossbow recipes to replace common tools.
2013-07-03 02:18:57 -04:00
NicholasDV d1d96ef1d0 Small correction to 'Survival' skill description
Closes #1751

Specifically removes the line about being able to 'clean' tainted meat
when you have a high survival skill, due to the fact that this is not
true. Easier (and frankly, makes more sense) to correct that small
detail than it is to add in a system of cleaning the tainted meat due
to it. If anyone does so, feel free to re-add the line, as it is only
a tiny change.
2013-07-03 01:55:26 -04:00
NicholasDV 26565dbef6 Small spelling error fixes
Closes #1853 by changing all instances of, "oepn_sarcophogus" with "open_sarcophogus",
thereby fixing the typo.
2013-07-03 01:45:08 -04:00
GlyphGryph 3f13bd6bc1 Added wine, a new shirt, and the patriot profession. The last bit should be removed after the 4th of July has passed, the wine can stay. 2013-07-03 00:30:31 -04:00
Kevin Granade 3d931cd9ab Merge pull request #1862 from yobbobanana/po_files_2
Commit raw translation files for fr_FR, ru_RU, zh_CN, pt_PT.
2013-07-02 21:01:20 -07:00
mattbrk 3c1251c366 edit 2013-07-02 23:06:00 -04:00
mattbrk 1b5d082db5 edit 2013-07-02 23:03:27 -04:00
mattbrk 001849272f edit 2013-07-02 23:02:48 -04:00
mattbrk 7d0983c839 edit 2013-07-02 22:59:16 -04:00
mattbrk 89d2f9893c learnin' markdown... 2013-07-02 22:53:28 -04:00
mattbrk 66a61e239f edit 2013-07-02 22:41:39 -04:00
mattbrk 51b7cef821 edit 2013-07-02 22:24:58 -04:00
mattbrk 07bd0879e9 edit 2013-07-02 22:23:39 -04:00
mattbrk 1b23bde3af edit 2013-07-02 22:21:26 -04:00
mattbrk 419db6875c edit 2013-07-02 22:15:09 -04:00
mattbrk db2c8526f6 edit 2013-07-02 22:03:19 -04:00
mattbrk 86f6857dd0 edit 2013-07-02 21:59:16 -04:00
mattbrk a397e1ea4a handle osx/sdl/libs 2013-07-02 21:46:04 -04:00
mattbrk 9a61b00dc1 edit howto 2013-07-02 21:44:14 -04:00
mattbrk ae64a3f61f rename 2013-07-02 21:42:22 -04:00
Vollch 468b3db3b7 Fixes #1864 2013-07-03 01:49:38 +04:00
Vollch 115252a149 Underground fix 2013-07-03 01:04:34 +04:00
Vollch d3e965ef1a Reworked road placement 2013-07-02 22:24:58 +04:00
Darth Servo 9fe6feb52f Edited recipes requiring hammers to be consistent. 2013-07-02 11:14:49 -04:00
utunnels 9b058378bf Bug fix. 2013-07-02 22:10:43 +08:00
utunnels 5e85552377 Merge branch 'master' of github.com:CleverRaven/Cataclysm-DDA into utf8
Conflicts:
	output.cpp
2013-07-02 20:59:24 +08:00
Tommy a89185e056 Commit raw translation files for fr_FR, ru_RU, zh_CN, pt_PT.
Now with less FAIL.
2013-07-02 18:56:37 +12:00
Kevin Granade 4445f7f06f Merge a SDL OSX target and font size adjustment. 2013-07-01 20:02:14 -05:00
Kevin Granade f6bafa573b Merge some unification to text wrapping. 2013-07-01 19:32:13 -05:00
Kevin Granade 0c66a3db76 Merge more gettext annotation, soldering charge fix, phup/pgdown support for menus, URL fix, gibbing fix, and drawing fix. 2013-07-01 19:11:04 -05:00
Oddbjørn Olsen 98a51dfaab Made items draw infront of blood splatter
Fixes issue #1844.

The bug was introduced in f176e82253.
2013-07-02 02:01:49 +02:00
Kevin Granade b9220e7d8b Fixup get_combat_style() to no longer pass a game reference. 2013-07-01 18:46:15 -05:00
Goron 2c6ec43e1f remember combat style after cjaracter creation 2013-07-01 18:29:30 -05:00
Goron 3b21826b6a TODO comment to refactor handling of styles 2013-07-01 18:29:30 -05:00
Goron 317ba1c34c remove_weapon uses selected combat style 2013-07-01 18:29:30 -05:00
Goron 95808abc28 Use selected comat style when bio_claws are deactivated and processing active items 2013-07-01 18:29:30 -05:00
Goron 520b90e371 Let i_rem use selected combat style
this catches most cases of freeing hands
2013-07-01 18:29:30 -05:00
Goron b0c5eefee0 Use selected combat style after eating your weapon 2013-07-01 18:29:29 -05:00
Kevin Granade c915ec3af6 Use selected combat style after wearing or throwing your weapon
Conflicts:

	player.cpp
2013-07-01 18:29:20 -05:00
Kevin Granade dd3ea43ee3 Make g a global. 2013-07-01 18:21:10 -05:00
TireExaminer 5a667408f4 Fixed giblet spawning.
Monsters would gib only in respect to the x axis due to a typo.
2013-07-01 17:43:12 -04:00
lethosor be320a8540 Fix link to issue tracker 2013-07-01 11:48:25 -04:00
fnord 76c7519e11 uimenu: page up / page down support for large scrolling lists 2013-07-01 10:09:23 -05:00
Tommy adccca67f9 Gettextify main interface and inventory. 2013-07-02 00:10:56 +12:00
Tommy 470d948fe5 Add some missing full-stops and make some spacing more consistent. 2013-07-01 20:34:04 +12:00
Vollch 0755f6f8b3 Soldering iron fix 2013-07-01 12:29:02 +04:00
Tommy 36347ba62b Reindent dis_name() because i touched all of it. 2013-07-01 19:48:46 +12:00
Tommy 4577cceb9e Make disease descriptions much easier to translate. 2013-07-01 19:48:35 +12:00
Tommy 2f10f7907a Change dis_description() to 4-space indent because i touched most of it. 2013-07-01 18:54:40 +12:00
Tommy eee9970065 disease.cpp: Remove indent on some multiline strings. 2013-07-01 18:41:43 +12:00
Tommy d19c6cf1ab Add missing break statement to case DI_BOULDERING in dis_msg(). 2013-07-01 18:37:59 +12:00
Tommy 5cbe278548 Change dis_msg to 4-space indent because i touched so much of it anyway. 2013-07-01 18:37:04 +12:00
Tommy f44cd9e3d9 Gettextify the rest of disease.cpp. 2013-07-01 18:31:19 +12:00
utunnels 5232c34161 Merge branch 'utf8' of github.com:utunnels/Cataclysm-DDA into utf8
Conflicts:
	crafting.cpp
2013-07-01 12:51:08 +08:00
utunnels 0ed81e758a Merge branch 'master' of github.com:CleverRaven/Cataclysm-DDA into utf8
Conflicts:
	output.cpp
2013-07-01 12:46:27 +08:00
mattbrk 83da2d8b1d SDL.h 2013-07-01 00:41:15 -04:00
mattbrk 3fbb690d76 edit readme 2013-07-01 00:13:46 -04:00
Tommy 158950e71d Gettextify most of disease.cpp. 2013-07-01 15:28:26 +12:00
utunnels c5b3f9e1ec Font size hack for bitmap fonts (.fon). Also make the font list shorter. 2013-07-01 10:57:10 +08:00
Kevin Granade 150d916981 Merge fire fixes. 2013-06-30 21:40:39 -05:00
TireExaminer 86db34bdf9 Webs burn away. 2013-06-30 22:38:54 -04:00
TireExaminer 51b8b40b68 More Fire Fixes 2013-06-30 22:28:51 -04:00
TireExaminer f27390f53a Gasoline adds to fires. 2013-06-30 20:02:22 -04:00
TireExaminer 1fc7546e96 Fixes Gasoline exploding and Furniture Burning 2013-06-30 20:00:15 -04:00
Kevin Granade 7d91d4f358 Merge furniture updates. 2013-06-30 15:39:19 -05:00
David Holmes 248f8a64f7 Allow deconstruction of refrigerators
...because when you think about it, smashing a refrigerator with the
screwdriver in your hand is not the most sensible way of getting a rubber
tube out of it.

Also enabled deconstruction of glass door refrigerators, in which case you
also get a pane of glass for your effort.
2013-06-30 20:06:33 +01:00
Kevin Granade a9512b5b4c Remove unused includes that might break windows builds. 2013-06-30 12:17:37 -05:00
Kevin Granade 1fcae4b4ef Switch to posix test for whether a path is a directory. 2013-06-30 12:07:18 -05:00
Vollch e6b98ee733 Limited fuel in gas pumps 2013-06-30 20:58:38 +04:00
Kevin Granade f459dabf9d Merge permissions fix, font handling, more i18n, and a vehicle fix. 2013-06-30 11:30:09 -05:00
utunnels a49b02060c Fix crafting menu position under utf8. 2013-06-30 23:00:14 +08:00
utunnels 8d667baf3c Bug fix. 2013-06-30 22:37:43 +08:00
Kevin Granade ad8fdd4819 Merge pull request #1843 from narc0tiq/osx-cross-jenkins
LDFLAGS, not CXXFLAGS
2013-06-30 06:55:01 -07:00
Octav Sandulescu 434ea30026 LDFLAGS, not CXXFLAGS 2013-06-30 14:53:11 +01:00
Kevin Granade 81ce7c6e9a Merge pull request #1842 from narc0tiq/osx-cross-jenkins
Change minimum OSX to 10.5 and add libintl to the Mac builds
2013-06-30 06:47:38 -07:00
Octav Sandulescu b4871d49d7 Change minimum OSX to 10.5 and add libintl to the Mac builds
This is what was necessary to get Cataclysm cross-compiling to OSX in my build environment.
2013-06-30 14:46:07 +01:00
Tommy 17e2380abf Don't let the player drive a vehicle if they won't be carried with it. 2013-07-01 01:29:45 +12:00
Tommy 5749a320bd Someone has been mixing line endings >:(. 2013-07-01 01:27:52 +12:00
Goron 0ecdc3891a added fold_and_print to reduce dublicated code 2013-06-30 15:00:07 +02:00
utunnels 5868686f9d Cache font list in data/fontlist.txt, delete it to rescan all font directories. 2013-06-30 20:09:26 +08:00
Tommy 3108e44fe0 Change en_UK to en_NZ in TRANSLATING.md, and add '-p' to the mkdir line. 2013-06-30 23:57:02 +12:00
Tommy aa50085573 Allow translating of JSON item names and descriptions. 2013-06-30 23:02:58 +12:00
utunnels 959f10e80b Add font blending option for data/FONTDATA 2013-06-30 17:06:30 +08:00
utunnels 4b30f55a72 Scan system font folder first before check font file names. 2013-06-30 16:34:49 +08:00
Tommy 4f0bf666cd Fix some file permissions (775 -> 664). 2013-06-30 20:00:31 +12:00
Kevin Granade 2f9e8e5c52 Work around Cygwin's lack of gettext support in glibc. 2013-06-30 00:28:06 -05:00
Kevin Granade a7f543d60a Merge the rest of new character invlet cleanup. 2013-06-29 22:47:11 -05:00
Kevin Granade f382badf7d Merge pull request #1835 from FunnyMan3595/win_load_gettext
Moved the -l flags for gettext on Windows to a better position.
2013-06-29 19:10:32 -07:00
Charlie Nolan (FunnyMan3595) a2993e3cd8 Moved the -l flags for gettext on Windows to a better position.
... and this should fix the OTHER build.
2013-06-29 20:57:54 -05:00
Kevin Granade da04c902e7 Merge pull request #1834 from FunnyMan3595/win_load_gettext
Added gettext -l flags for Windows builds.
2013-06-29 18:36:30 -07:00
Charlie Nolan (FunnyMan3595) 4059e16396 Added gettext -l flags for Windows builds. 2013-06-29 20:34:28 -05:00
Kevin Granade a47a920a02 Add new translations.h header to windows project files. 2013-06-29 20:17:47 -05:00
Kevin Granade 8600085be3 Merge new character invlet assignment fix, magic number removal, and a start at gettext support. 2013-06-29 19:52:13 -05:00
Kevin Granade aec5108fe9 Merge multi-field per tile support.
Conflicts:
	field.cpp
	game.cpp
	inventory.cpp
	mapdata.h
	npc.cpp
2013-06-29 19:28:54 -05:00
Charlie Nolan (FunnyMan3595) 930b4cf3a3 Merged PRs together (no new ones).
Conflicts:
	newcharacter.cpp
2013-06-29 17:56:38 -05:00
Charlie Nolan (FunnyMan3595) 84b9f4411f Merge PRs #1830 and #1832 2013-06-29 17:45:39 -05:00
Goron cc8006a2b0 replace magic numbers 80, 25 and related with FULL_SCREEN_WIDTH, FULL_SCREEN_HEIGHT 2013-06-29 23:39:34 +02:00
Tommy 5eb8e1ab41 oops 2013-06-30 08:28:45 +12:00
TireExaminer c909a0f713 Fixes NPC Morale Penalty 2013-06-29 14:53:46 -04:00
Tommy 377bac95d8 Gettext support!
For starters, the main menu is now translatable.

More strings may be made translatable by including "translations.h",
then surrounding strings to translate with _().
For example: add_msg("my message") becomes add_msg(_("my message")).

Instructions for translating, and maintaining translation files,
can be found in TRANSLATING.md.
2013-06-30 06:49:54 +12:00
Goron 8a17c9a0d3 Fix allignment of list_items output 2013-06-29 20:48:03 +02:00
Oddbjørn Olsen e6c3168956 Made advanced inventory sort items
Adresses issue #1826.
2013-06-29 20:43:38 +02:00
Oddbjørn Olsen 39292d183d Made player::create armor equip more robust
Now, the player's profession might give him 10 pairs of pants, but he
can't wear them all at character creation.
2013-06-29 20:25:32 +02:00
Oddbjørn Olsen 1099f6b527 Added non-interactive mode to player::wear
Now, we can use player::wear to "force" the player to wear stuff without
alerting him. Will be useful during character creation.
2013-06-29 20:11:55 +02:00
Oddbjørn Olsen 73a86971ac Converted player::wear to Allman style
Just making it easier for me to modify.
2013-06-29 19:49:23 +02:00
Oddbjørn Olsen 79debd29db Converted player::wear_item to Allman style
For future commits.
2013-06-29 19:44:16 +02:00
Goron ac3a92c219 Added newline befor style technique in itme::info 2013-06-29 19:29:46 +02:00
Goron 3bf8fda4df Removed leading space from item::info
leading space will be broken on line wrap, so lets output handle the placement
of the text
2013-06-29 19:29:46 +02:00
Goron 0086715750 Removed word_rewrap as it is not used anymore 2013-06-29 19:29:46 +02:00
Goron 8bba59aa72 remove word_rewrap from bio itypedef
is the only itypedef that used word_rewrap. Word_wrapping is done when
we know the width
2013-06-29 19:29:46 +02:00
Goron 8cabe87199 full_screen_popup and popup uses foldstring to wordwrap long lines
moved foldsring from ui.cpp to output.cpp
removed word_rewrap from item::info as we don't know the width and have to rewrap again
2013-06-29 19:29:24 +02:00
Kevin Granade 5604434130 Merge variable morale decay, probabilistic teleport fix, use ncursesw, and mapgen fixes. 2013-06-29 11:42:19 -05:00
Charlie Nolan (FunnyMan3595) 66d42195a9 Merge PR #1826 2013-06-29 10:55:41 -05:00
utunnels 4d55dc6fe0 More fix to half utf8 character. 2013-06-29 23:50:03 +08:00
Oddbjørn Olsen 69d48fe953 Corrected faulty invlet assignment in startup
There were some collisions between items in inv and items in worn. I
fixed this by prepopulating inv with every single item from character
creation, and then moving them to worn AFTER all the invlets had been
assigned by inv.
2013-06-29 17:48:24 +02:00
Vollch 10421d4fdc Fix broken parts of mapgen 2013-06-29 18:59:04 +04:00
Tommy 4d99cc7d20 Preliminary Linux unicode support? 2013-06-30 01:44:36 +12:00
Eric b38be2e57f Fix probability travel ending in tile with monster, fix typo in coords 2013-06-29 00:03:31 -07:00
Charlie Nolan (FunnyMan3595) 112e7a7239 Merge PR #1805 2013-06-28 23:31:40 -05:00
TireExaminer 6544b1911e Comments and monster field changes
If a field spawns ontop of you you will now be hit by it immediately.
Also commented things.
2013-06-29 00:25:40 -04:00
Vollch 195350b8af Added comments to quadrants house generator 2013-06-29 07:48:54 +04:00
Charlie Nolan (FunnyMan3595) 0a22d34b4b Merge PR #1816 2013-06-28 20:10:23 -05:00
TireExaminer be52063100 Fixed some weird spreading behavior with smoke and fire.
Smoke now lasts longer and generates faster indoors, but small fires are
much less likely to destroy a building (density 1 fires). Fire will last
a more reasonable length of time.
2013-06-28 20:54:54 -04:00
NaturesWitness 6ef1e6d68d Pistol Crossbow Recipe Skill Fix
Changed pistol crossbow recipe to use archery as secondary skill.
Didn't seem to make much sense that it required firearms skill and all
other bows required archery skill. Even if it's called a pistol crossbow
it's still a crossbow, not a pistol.   Unless there's some other reason
I'm not seeing in which case disregard this pull request.
2013-06-28 20:26:26 -04:00
Charlie Nolan (FunnyMan3595) 2d1c67cbd5 Merge PR #1813. 2013-06-28 15:04:14 -05:00
Peter Lacey-Bordeaux 9a74914720 updated how to start a new world with the option on the main menu. 2013-06-28 14:51:32 -04:00
Charlie Nolan (FunnyMan3595) be6de66c8a Merged PRs #1810, #1806, #1804, #1799, #1766. 2013-06-28 12:38:31 -05:00
TireExaminer 82f39cb588 Refactored fields to support any # of fields.
The field class is now a wrapper that contains a vector of any number of
fields at once. So now you can choke on smoke, burn in fire, and melt in
acid all at the same time. Fields now propagate additively... so if
something is spewing smoke instead of overwriting the old smoke, it adds
to its density.
2013-06-28 13:33:39 -04:00
Oddbjørn Olsen a6c5fb497e Made morale items load correctly 2013-06-28 17:28:24 +02:00
utunnels 79157104e0 Merge branch 'master' of github.com:CleverRaven/Cataclysm-DDA into utf8 2013-06-28 23:18:41 +08:00
utunnels 4fcd90bb37 Revert two unrelated test changes. 2013-06-28 23:15:13 +08:00
utunnels 670135cf86 Fix font y/n window size. 2013-06-28 21:30:31 +08:00
utunnels 26e650d0ab Reuse word_rewrap in compare_split_screen_popup. 2013-06-28 20:58:21 +08:00
Oddbjørn Olsen 142f42c903 Made bionics manifest show correctly 2013-06-28 14:13:51 +02:00
Vollch 3c31a662de Some fixes and improvements to quadrants house generator 2013-06-28 15:12:12 +04:00
Oddbjørn Olsen 2e69cf70bd mp3 player won't be audible if we're deaf. 2013-06-28 12:03:03 +02:00
utunnels 1e204fb105 Update draw_tab to support utf8 string width. 2013-06-28 15:42:44 +08:00
utunnels e6e9feb586 Fix a bug that '\0' is ignored while copying utf8 lines. 2013-06-28 15:22:02 +08:00
mattbrk a4f2cb4972 add cataclysm-tiles to .gitignore 2013-06-28 01:44:39 -04:00
mattbrk 84767fb60c add files for os x/sdl build 2013-06-28 01:42:33 -04:00
mattbrk 695fc87f55 how to build on os x with sdl/sdl_ttf frameworks 2013-06-28 01:41:11 -04:00
mattbrk f1632bd090 update for macosx and tiles with sdl frameworks 2013-06-28 01:37:37 -04:00
mattbrk df837f15d8 update for macosx and tiles with sdl frameworks 2013-06-28 01:36:54 -04:00
mattbrk f01a835d47 update for macosx and tiles with sdl frameworks 2013-06-28 01:36:02 -04:00
Vollch e649f43dd5 Fixes #1798 2013-06-28 06:20:42 +04:00
Kevin Granade d1d6525bbf Merged seperate furniture layer, vehicle caching and interaction fixes, and extension to fire duration. 2013-06-27 18:43:23 -05:00
Charlie Nolan (FunnyMan3595) 570d0b6f72 Beginning to read now reinforces any existing reading morale.
Closes #1198
2013-06-27 16:15:04 -05:00
Peter Lacey-Bordeaux c6cb0b4930 changed add_item in veh_interact so it does not ignore weight/volume checks, overflow radius of 1 atm 2013-06-27 17:04:24 -04:00
Charlie Nolan (FunnyMan3595) 4a0964bd91 Fixed focus gain display when negative. 2013-06-27 15:55:13 -05:00
Charlie Nolan (FunnyMan3595) a9bf334674 Applied custom mood durations and decays.
They've all been looked at now, but a fair number were left at the
default.
2013-06-27 15:44:50 -05:00
Charlie Nolan (FunnyMan3595) 21e377356c Moved item_type to the end of add_morale's prameters.
Also corrected the "new entry" case to include the full moodlet details.
2013-06-27 15:44:50 -05:00
Charlie Nolan (FunnyMan3595) 4bd36d5407 Moodlets now last 60m and decay after 30m by default.
The previous intended behaviour was 30m with instant decay, but
it was actually set to 5h with instant decay.  Oops.
2013-06-27 14:31:31 -05:00
Charlie Nolan (FunnyMan3595) 1819060a76 Extracted the logistic function cutoff, reduced it to 4. 2013-06-27 14:12:22 -05:00
Charlie Nolan (FunnyMan3595) 0e6a8be822 Extended add_morale to support the new decay model. 2013-06-27 14:09:58 -05:00
Charlie Nolan (FunnyMan3595) 7a7e3ebc1a Apply persistent morale effects more aggressively.
Optimist wasn't showing up immediately on game start, and Hoarder
wasn't updating when you examined your morale.
2013-06-27 13:47:02 -05:00
Charlie Nolan (FunnyMan3595) f480c13d25 Save/load alterations for the new morale structure. 2013-06-27 13:38:45 -05:00
utunnels f23a086603 Experimental word_rewrap function with utf8 support (still buggy). 2013-06-28 01:24:31 +08:00
Voker57 91649fe933 Tweaked the fuel consumption code to make wood yield more 2013-06-27 20:32:10 +04:00
Oddbjørn Olsen ff7c2a81f2 Added *.cbTemp and gmon.out to .gitignore 2013-06-27 16:41:48 +02:00
Oddbjørn Olsen 1e4137c847 Made vehicle actually show up when constructing
The vehicle cache wasn't being updated. Fixes bug in issue #976.

Also, made a default vehicle name in case player leaves it blank.
2013-06-27 16:39:06 +02:00
utunnels 0d101e51b8 Move utf8 related functions to catacharset.cpp 2013-06-27 20:40:07 +08:00
Vollch f176e82253 Separate furniture and territory 2013-06-27 12:28:07 +04:00
utunnels 04955a421f Fix a bug utf8 line has an old byte limit. Limit key repeat rate, too fast. 2013-06-27 16:10:17 +08:00
Charlie Nolan (FunnyMan3595) fd59fba0d5 Added logistic-scaled morale decay. 2013-06-26 22:27:43 -05:00
Charlie Nolan (FunnyMan3595) e53e8de76a Comments for player::add_morale. 2013-06-26 22:27:43 -05:00
Charlie Nolan (FunnyMan3595) 8ea78461af Ran player::add_morale through astyle 2013-06-26 22:27:43 -05:00
Charlie Nolan (FunnyMan3595) b55fcbcea1 Extended morale_point structure. 2013-06-26 22:27:43 -05:00
Charlie Nolan (FunnyMan3595) 67d0317a87 Passed morale_point through astyle 2013-06-26 22:27:42 -05:00
utunnels f19762c67d Utf8 support. 2013-06-27 11:09:49 +08:00
Kevin Granade 4fc91e9207 Mergorama.
Conflicts:
	bionics.cpp
2013-06-26 20:15:05 -05:00
cib bb25bebac7 Fix bug with item group loading.
The loader was copying the group, and then adding the items to the copy(which would never be used again anywhere).
2013-06-27 00:26:11 +02:00
Charlie Nolan (FunnyMan3595) 8f439ac7e8 Changed Optimist to be more thematic and balanced.
Instead of a flat +20 to morale, Optimist now gives:

* All positive morale effects get a 25% boost.
* All negative morale effects are reduced by 25%.
* Permanent +4 morale (+5 after the boost)

This represents that optimism is less about always being happier and more
about focusing on good things while disregarding bad things.

Mechanically, the smaller flat boost means that you won't get a free 20%
boost to focus anymore.  This should give Optimist a distinct feel compared
to Fast Learner, rather than being a bigger boost under average conditions.
2013-06-26 16:01:29 -05:00
Charlie Nolan (FunnyMan3595) 51556b70a5 Added a couple coments to morale_level 2013-06-26 15:03:46 -05:00
Charlie Nolan (FunnyMan3595) 6ff073e8f3 Moved persistent morale effects to update_morale 2013-06-26 14:53:49 -05:00
Charlie Nolan (FunnyMan3595) 4c346ab6e3 Ran update_morale through astyle 2013-06-26 14:49:52 -05:00
Charlie Nolan (FunnyMan3595) 7d9b420d93 Removed an unused variable, fixed first morale_level call. 2013-06-26 14:46:18 -05:00
Charlie Nolan (FunnyMan3595) a2a2377a21 Passed player::morale_level through astyle 2013-06-26 14:38:35 -05:00
Charlie Nolan (FunnyMan3595) d7cdeb112c Simplified player::disp_morale, tweaked focus alignment. 2013-06-26 14:17:06 -05:00
Charlie Nolan (FunnyMan3595) a7df33c79c Added comments to player::disp_morale. 2013-06-26 13:51:42 -05:00
Charlie Nolan (FunnyMan3595) 2059b0eac4 Passed player::disp_morale through astyle. 2013-06-26 13:35:50 -05:00
fnord a510ada95e Also scroll if entries won't fit implicitly set w_height 2013-06-26 06:43:11 -05:00
fnord 32e29c9edf uimenu: scroll through entries if they exceed screen height. Title option makes use of the top border. 2013-06-26 06:14:25 -05:00
fnord 532c9f0096 Merge remote branch 'origin/master' into better_menu 2013-06-26 06:12:14 -05:00
Xommers 887338c198 Merge pull request #1 from atomicdryad/fix_cr_and_whitespace
fix cr and whitespace
2013-06-26 02:15:00 -07:00
Eric fc8b8170f7 save space by changing old flashbang() to just call flashbang(x,y,false) 2013-06-26 02:04:28 -07:00
fnord 55a7f31d1d fix cr and whitespace 2013-06-26 04:03:55 -05:00
Eric faa6e0a41f Fix CBM flashbang erroneous deafened message 2013-06-26 01:55:17 -07:00
Xommers c61b0ed4a8 Toggled Metabolic Interchange bionic, active power sources 2013-06-26 04:37:19 -04:00
Christian Buskirk 8531e1149b Nerf fluffy/long tail mutations. 2013-06-25 22:50:55 -07:00
Eric 42dcb1b529 Remove duplicate drowning messages by checking if target is dead 2013-06-25 19:33:09 -07:00
Christian Buskirk 8b3a6d8ce1 Merge PR #1730 - Overkill cap 2013-06-25 18:51:48 -07:00
Stevensonz b6beaa3f8e Display FLAMING TEC
removes A BUG and shows FLAMING TEC
2013-06-26 09:40:13 +08:00
Christian Buskirk d4198865f7 Merge PR #1693 - Streamline lumberjacking 2013-06-25 18:36:07 -07:00
MacrosBlackD b8f57d9bec Updated recipe for heavy field point arrow to require bone, rock, scrap or nails. 2013-06-25 20:16:24 -05:00
Kevin Granade fa9ce18623 So... many... PRs... 2013-06-25 20:00:25 -05:00
Oddbjørn Olsen 5dc2f67c66 Allow rng to accept parameters in swapped order 2013-06-26 02:35:29 +02:00
MacrosBlackD d4043c546b Updated difficulty of Heavy Wood Arrow. Fixes issue #1752 2013-06-25 19:16:25 -05:00
Oddbjørn Olsen a2b6b30794 Support chatting to more than 10 NPCS
Using menu_vec. menu_vec (and probably menu too) needs some work though,
it doesn't scroll if contents go beyond terminal size.
2013-06-26 02:08:53 +02:00
Eric c63088f288 Moved lightmap changes into one loop at end 2013-06-25 17:00:40 -07:00
Eric 682542ec45 Add active message to CBM artificial night 2013-06-25 16:47:20 -07:00
MacrosBlackD f1004a5e4e Added bone material to fix issue #1743 2013-06-25 18:41:19 -05:00
Oddbjørn Olsen f73fb793ff Allow player to cancel options/keybindings
As it was, the new settings were kept in memory (though not written to
disk) even if the player canceled out of options/keybindings.

Fixes issue #385.
2013-06-26 01:34:20 +02:00
Oddbjørn Olsen 7083594e96 Fixes infinite waiting when canceling wait menu
Fixes issue #1738.
2013-06-26 00:56:57 +02:00
Oddbjørn Olsen c0fdab7ce6 Crafting/disassembly now respects MAX_ITEM_IN_SQUARE
Crafting functions were calling map::add_item with default item limit,
which is still 64.

Fixes issue #1737.
2013-06-26 00:05:41 +02:00
Oddbjørn Olsen d63144b7e1 Fix item descriptions flowing off terminal
Fixes issues #1745 and #650.
2013-06-25 23:46:12 +02:00
Oddbjørn Olsen 9ab335dc82 Fixed inconsistent steel requirements in metal arrow shaft recipe
Fixed bug described in issue #1735.
2013-06-25 21:48:28 +02:00
Oddbjørn Olsen 346ea8583a tagging/inscribing no longer wastes charge when canceled.
Fixes bug described in issue #1728.
2013-06-25 21:39:37 +02:00
Hourousha 0759718bd8 Initial skeleton of a guide for editing features of the game that do NOT
require a recompilation of the source code.
2013-06-25 09:52:26 -05:00
zeroDivisible 39a49bbf37 reverted #188 as the flag introduced there is not supported on older versions of GCC (doesn't compile on OSX 10.7.5 and few others 2013-06-25 15:03:24 +01:00
Eric eb4cdbe904 Bio Night v2 2013-06-25 03:56:36 -07:00
Kevin Granade 2c126e7bf5 Cap overkill damage at base damage of attack, preventing gibbing from low-damage sources. 2013-06-25 00:02:49 -05:00
Kevin Granade ca2d29a024 Merge flaming weapons 2013-06-24 21:08:00 -05:00
Kevin Granade 729e9eda04 Merge CBM enhancements, butchering enhancements, drug craving abatement and flaming weapons.
Conflicts:
	bionics.cpp
2013-06-24 20:43:18 -05:00
MacrosBlackD ac24e389b3 Added advanced UPS that runs on plutonium at a rate of 1 plutonium per 500 charges. Doesn't allow the character to unload partially depleted plutonium and won't over fill the device if it can't fit a full plutonium. So no cheesing and no wasting materials :) 2013-06-24 18:49:04 -05:00
Vollch 0036a235ed Drugs remove craving when used 2013-06-25 02:50:14 +04:00
Stevensonz 2d39261a1e FIX #560
Fixes #560
2013-06-25 03:15:48 +08:00
Eric e9f030e164 Add CBM Artificial Night 2013-06-24 12:11:31 -07:00
fnord 2c87aec44a butcher: preserve mtype on meat. iteminfo: "Smells like <original mobtype>", for
players with carnivore, or scentmap, or cheating bastards
2013-06-24 14:09:30 -05:00
Oddbjørn Olsen c77c4d0b2d Updated code documentation for bionics
Why is the documentation stored both in DEVELOPER_FAQ.txt and in
EDITING? These two files should probably be consolidated.
2013-06-24 18:06:30 +02:00
Oddbjørn Olsen 926fdadd32 Made init_bionics() read from bionics.json 2013-06-24 18:06:29 +02:00
Oddbjørn Olsen bd4dc179b8 Added bionics.json 2013-06-24 18:06:29 +02:00
Eric 7f7a779825 minor fix to scentmap, added more colors to scentmap 2013-06-24 04:40:02 -07:00
Eric 23ba3c646b check remaining momentum before calling plswim() 2013-06-24 03:54:20 -07:00
Eric df51e0a4a7 Add check for water tiles in shockwave/knockback 2013-06-24 03:45:02 -07:00
Eric a700541abb Add flaming effect to wide technique attacks 2013-06-24 02:56:14 -07:00
Eric 2c4117cc50 Lit torches set enemies on fire 2013-06-24 02:38:38 -07:00
Eric e97af6b7a1 Add new ammo effects to item factory 2013-06-24 01:44:29 -07:00
Eric 3f1f5f6072 Add CBM Chain Lightning and related ammo effects 2013-06-23 23:48:08 -07:00
Kevin Granade 308f599683 Re-add carving a note into an item with a knife. 2013-06-23 22:00:08 -05:00
Kevin Granade 20577ba42b Extract code to add a note to an item to a helper function. 2013-06-23 21:59:45 -05:00
Kevin Granade c6831b3ea0 Merge converting note code to use marker instead of knife. 2013-06-23 19:57:47 -05:00
Kevin Granade 41aeb9aede Light refactoring on new spoiled food removal code. 2013-06-23 19:25:09 -05:00
Kevin Granade e9081452d5 Merge temperature conversion refactor, small-game arrows, shockwave improvements, and disappearing spoiled food. 2013-06-23 18:46:45 -05:00
MacrosBlackD 38151c4a45 Spoiled (rotten) items will now be removed from the map after twice the time it takes to spoil 2013-06-23 18:04:29 -05:00
fnord 1aff0cbe39 itemvars["carved_note"] > item_vars["item_note"], use marker instead 2013-06-23 17:06:58 -05:00
Eric 10c8928039 add blue shockwave() explosion, add player-victim collision messages 2013-06-23 14:55:04 -07:00
Kevin Granade f0600e428b Append carved message to the end of item description if present. 2013-06-23 16:47:30 -05:00
MacrosBlackD e170b54f9b Added small game arrow and NOGIB tag that caps damage at mon.HP + 10 2013-06-23 16:45:28 -05:00
Kevin Granade c6f4201fc0 Persistent item state tags. 2013-06-23 16:08:28 -05:00
fnord 1f1ac4be07 item_var comment cleanup 2013-06-23 16:06:53 -05:00
Kevin Granade 2afcd12df9 Fix merge error. 2013-06-23 15:11:44 -05:00
MacrosBlackD 6a31d3e093 Added missing check on STR12_DRAW to determine whether or not the player could actually use the bow 2013-06-23 15:10:43 -05:00
Kevin Granade 45266b3f63 Merge long-term healing, teleporting monsters fix, CBM recovery, shockwave generator, and viewport option bounds checking.
Conflicts:
	bionics.cpp
2013-06-23 15:02:08 -05:00
Oddbjørn Olsen 3f20273e38 Implemented print_temperature for conversions 2013-06-23 19:19:16 +02:00
Oddbjørn Olsen 515d7f0906 Added error-checking to load_options() ...
... and minimum values to VIEWPORT_X and VIEWPORT_Y
2013-06-23 17:02:29 +02:00
Eric 13eb8447ac Add CBM shockwave generator, add knockback() to implement it 2013-06-23 04:59:21 -07:00
Vollch df698e66cf Recover CBMs from butchered player corpses 2013-06-23 15:44:04 +04:00
fnord c817d06261 move real_coords to map.h, verbosely comment 2013-06-23 05:15:34 -05:00
Kevin Granade 3ec50c35c1 Adjust real_coords struct to handle arbitrarally negative values. 2013-06-23 05:15:12 -05:00
fnord 67c297c615 Fix: teleporting turrets, and static respawn inaccuracies. Add: real_coords()
to perform the voodoo required to figure out what the shifting player
centric coordinates actually mean in terms of submap & tile in submap
(in or out of bounds)
2013-06-23 05:14:59 -05:00
Julian Snitow d2266eef08 Merge branch 'master' into physician-heal-thyself 2013-06-22 23:15:54 -07:00
Julian Snitow 48d7715b21 Splints are now craftable and (slowly!) heal broken limbs. 2013-06-22 23:06:09 -07:00
Kevin Granade 399d3995c5 Adjust real_coords struct to handle arbitrarally negative values. 2013-06-23 00:02:57 -05:00
Kevin Granade efb83c5d9d Merge fix to longstanding turret and other monster migration bug. 2013-06-22 20:41:44 -05:00
Kevin Granade 0a6f9b3548 Merge improvised lockpick functionality into existing picklock method. 2013-06-22 20:19:58 -05:00
fnord 2befb7106c Fix: teleporting turrets, and static respawn inaccuracies. Add: real_coords()
to perform the voodoo required to figure out what the shifting player
centric coordinates actually mean in terms of submap & tile in submap
(in or out of bounds)
2013-06-22 16:56:29 -05:00
Kevin Granade a94a88d331 Merge remote-tracking branches 'dda/pr/1676', 'dda/pr/1677', 'dda/pr/1678', 'dda/pr/1679', 'dda/pr/1683', 'dda/pr/1684', 'dda/pr/1686', 'dda/pr/1689', 'dda/pr/1690', 'dda/pr/1691' and 'dda/pr/1692' into dda-master 2013-06-22 16:23:43 -05:00
Kevin Granade 2e1e4be90b Fix typo, thanks i2amroy. 2013-06-22 15:26:39 -05:00
Kevin Granade 1f8d32165e Add construction recipe for cutting tree trunk sections into planks in a single step. 2013-06-22 15:16:17 -05:00
Kevin Granade 946489a181 Extract code for cutting logs into planks into a seperate method. 2013-06-22 15:15:39 -05:00
Kevin Granade 7ee01d317d Replace t_log with t_trunk. 2013-06-22 15:10:35 -05:00
David Holmes de09ced18c Re-enable bulletin board base designation 2013-06-22 21:09:38 +01:00
David Holmes 303f6cf569 Update SIGNOFF 2013-06-22 21:09:38 +01:00
Oddbjørn Olsen 9a5694933b Updated Repo Paths in CONTRIBUTING.md
It was erronously referencing TheDarklingWolf's repo, even though the
master is now CleverRaven.
2013-06-22 21:46:59 +02:00
Christian Buskirk 64c61a4f43 Made wild Jabberwocks much more rare 2013-06-22 12:41:07 -07:00
Eric 656a72fb71 add CBM flashbang 2013-06-22 10:20:32 -07:00
Eric f95a2060df add penalty to CBM probability travel 2013-06-22 08:08:49 -07:00
Eric ccbbaeddd6 add CBM railgun 2013-06-22 07:58:53 -07:00
Eric 12b6415e78 check if cursor hidden before hiding in case there's overhead,start cursor hidden for options 1 & 2 2013-06-22 03:32:24 -07:00
Eric e0c988f550 fix saving of mouse options 2013-06-22 00:29:35 -07:00
Octav Sandulescu 73c398015e Set trig_dist to *not* be the default. 2013-06-22 07:53:29 +01:00
Eric a01e32f67b Add SDL mouse hiding options 2013-06-21 21:42:49 -07:00
Kevin Granade 8e898bd2de Final update to motd and makefile for v0.6. 2013-06-21 22:50:51 -05:00
Eric 77b8783db2 added probability travel bionic 2013-06-21 19:50:08 -07:00
Kevin Granade cf80a547ce Add description for stemcell treatment condition. Thanks to Slax for reporting. 2013-06-21 21:30:18 -05:00
Stevensonz 727cbaffa7 Typo Fix 2013-06-22 08:43:57 +08:00
Stevensonz d53896ab9b Lock Pick Changes and some noise balance
New Improvised lockpick! (Hard and slower to use unless skilled but has
benefit of lower alarms activation when picking alarmed doors)

Lockpick sets are now rarer but they now easier to use and more
resistant to
breaking. (Still set's off alarms though)

*Fun Fact*  3000 lockpicks and 5000 improvised lockpicks was used to
test this.

Changed crowbar recipe requirement to 0 as crafting improvised lock pick
is 0 in recipe. (Kind of gives you the path to choose between str or
dex)

added some additional noise to alarm and actions that involves crowbar
usage on prying also general actions regarding normal smashing of
windows.
(Generates a little more noise, fast and easy to use but not preferable
if you want stealth use lock picks) Based on that you are alone in the
game means the area is dead quiet and thus noise is easier to pick up.
2013-06-22 08:35:30 +08:00
Tommy 6dbcaeeeb0 Fix ranged_dex_mod() penalty for dex under 4. 2013-06-22 01:38:27 +12:00
Tommy bf186bf7c2 Don't return negative numbers for dispersion. 2013-06-22 01:34:59 +12:00
Vollch d519b1891b Fixes #1663, multiple gates near one handle work correctly 2013-06-21 17:08:46 +04:00
Tommy 47493be741 s/accuracy/dispersion/g because accuracy is not what it is. 2013-06-22 00:56:26 +12:00
Kevin Granade eb831f79c1 Nerf nailgun accuracy. 2013-06-20 22:04:46 -05:00
Kevin Granade 52cd8a9821 Correct description of static spawn option. 2013-06-20 21:57:08 -05:00
Kevin Granade 2ae4511c0c Update changelog for 0.6. 2013-06-20 21:28:56 -05:00
Kevin Granade 8954fa0d16 Don't target monsters we can't see when burst firing. 2013-06-20 20:22:00 -05:00
Kevin Granade 2a3a171ca3 Misc fixes. 2013-06-20 19:52:24 -05:00
Christian Buskirk 1fc6fc205b Merge PR #1647 - Fix drop query
Conflicts:
	player.cpp
	player.h
2013-06-20 17:43:45 -07:00
Kevin Granade 9f74a26b1f Make auto-drop in takeoff and wield always succeed regardless of volume. 2013-06-20 17:32:50 -05:00
fnord dbda99eb07 turret saftey: increase angle when player is close to compensate for increased fuzziness 2013-06-20 17:13:32 -05:00
Vollch f82e3df79f Fixes #1072 2013-06-21 01:59:22 +04:00
Stevensonz b514501496 Sign Off 2013-06-21 05:43:01 +08:00
Christian Buskirk cdc092218f Small grammar fix to innate trait message 2013-06-20 12:16:00 -07:00
Christian Buskirk e2d52fe785 Merge PR #1657 - Mutation/Purifier Fixes 2013-06-20 11:50:20 -07:00
Christian Buskirk a8a3fca9a0 Typo fix merge 2013-06-20 11:48:21 -07:00
Christian Buskirk 113dd51ea3 Merge PR #1648 - Filter hit notifications 2013-06-20 11:01:44 -07:00
fnord 4443556d2e turn off debug && cleanup 2013-06-20 07:16:08 -05:00
fnord ec0b4e53be Localized missed-so-lets-shoot-randomly x,y variables, which were resetting
burst
2013-06-20 07:15:58 -05:00
fnord f5fa8cbc5c ranged burst: did not properly aquire new target as it iterated from
shooter position, and limited range to 2+gun skill
2013-06-20 07:15:51 -05:00
fnord 1e5e0ca303 Add debug output to player::fire's burst retargeting code. Provves burst retargeting is completely broken 2013-06-20 07:15:10 -05:00
fnord c48b2ae0c9 uimenu wordwrap: Correct '\n' handling for strings < textwidth 2013-06-20 01:46:56 -05:00
Alex Casey d802fc9458 Fixed bug with traits cancelled by mutation 2013-06-20 15:14:37 +10:00
Kevin Granade 500539f9c8 Merge pull request #1642 from Stevensonz/Bow-Balance+Fixes
Bow Rebalances
2013-06-19 19:15:29 -07:00
Kevin Granade eba91edabb Streamline serialization of burnt item member since it's an int now. 2013-06-19 19:51:43 -05:00
Kevin Granade 7c274113eb Octomerge. 2013-06-19 19:29:50 -05:00
Fergus Dall 939d18d323 Make item::burnt int insread of char to prevent overflow
Fixes #1662
2013-06-20 08:07:46 +09:30
fnord 57057593e9 item.item_vars["lets_you_save"] = "arbritrary stringified data";
This uses item tags: on load, any tag starting with ascii 001 (^A) is instead
used to populate std::map<std::string, std::string> item_vars, as so:
"^AvariableName=string" => item.item_vars["variableName"] = "string";
Spaces, line feeds, and tabs are escaped as ^A + hex: ^A0D, ^A20, etc.

e are saved and loaded as special item tags that begin with ascii 001 (^A)
2013-06-19 12:23:16 -05:00
Alex Casey b5c8fc8be2 Reworked the trait/mutation system a bit more and fixed some bugs 2013-06-19 22:56:06 +10:00
Fergus Dall abd3c0174f Make lava count as a fire for crafting purposes
Fixes #801
2013-06-19 22:24:47 +09:30
Fergus Dall 67597003cf Highlight container tiles when the cursor is placed on them 2013-06-19 21:36:07 +09:30
fnord 826e865708 When deactivating a turret, add_item using x,y, not the z[mondex].x/y of the .erased() mob. 2013-06-19 07:04:15 -05:00
Fergus Dall bc48353cc5 Make cursor appear of player initially 2013-06-19 21:32:04 +09:30
Fergus Dall c9cc125a73 Draw player properly when cursor is ontop of them 2013-06-19 21:27:55 +09:30
Fergus Dall 6c59ecddd6 Stop player from building roofs ontop on impassable tiles 2013-06-19 19:17:22 +09:30
Alex Casey ea83616dde Fixes to mutation system, separates base traits and mutations 2013-06-19 19:33:44 +10:00
Fergus Dall b0ce537eb6 Replace "char" with "signed char" in several places to fix warnings on ARM
Fixes #156
2013-06-19 18:54:03 +09:30
Fergus Dall 48866df182 Suppress warning about va_list mangling in gcc 4.4
Fixes #188
2013-06-19 18:36:36 +09:30
Fergus Dall 2b0dadc3fb Stop giant ants and goo pit monsters from spawning hundreds of tiles away
Fixes #861
2013-06-19 18:24:02 +09:30
Julian Snitow 646b69e35e Two-by-fours no longer evaporate when unboarding doors and windows. 2013-06-19 01:21:33 -07:00
Kevin Granade 2ac080cb19 Supress melee messages when you can't see the target. 2013-06-18 23:16:07 -05:00
Kevin Granade 3956f65bd0 Clean up some commented out code. 2013-06-18 23:16:00 -05:00
Kevin Granade b1ea7ab8d7 Supress melee messages when you can't see the target. 2013-06-18 23:15:49 -05:00
Kevin Granade 50b3f2e38f Expand autodrop fix to include dropping weapon. 2013-06-18 22:00:25 -05:00
Stevensonz 92237f7634 Merge branch 'Bow-Balance+Fixes' of https://github.com/Stevensonz/Cataclysm-DDA into Bow-Balance+Fixes 2013-06-19 10:18:08 +08:00
Stevensonz b06c682cd5 Flaming and Explosive Arrow Fix
Fixes re-usability issue of arrows with special effects
2013-06-19 10:18:01 +08:00
Stevensonz bf52e6f7a9 Flaming and Explosive Ammo Fix
Fixes issue about being re-usable and not applying 1 shot use of special
effects
2013-06-19 10:17:04 +08:00
Kevin Granade caa0fa6e20 Fix name of recurve reflex bow, pointed out by Dunker. 2013-06-18 21:15:22 -05:00
Kevin Granade 4b91513410 Merge some menu enhancements 2013-06-18 21:00:42 -05:00
fnord 426fe81e54 updated uimenu: additional constructors, text word wrap, additional width options 2013-06-18 20:36:00 -05:00
Stevensonz cce7d4f63e No to Wolverine wannabe NPC's
Fixes Issue #1644
2013-06-18 20:10:25 -05:00
Christian Buskirk e76f73eb52 Merge PR #1563 - Vehicle spawning fix 2013-06-18 17:44:04 -07:00
Kevin Granade 17dd9f2e51 Remove only-used-once intermediate variables and const some stuff. 2013-06-18 19:37:57 -05:00
Kevin Granade 543381ffd7 Introduce intermediate variables for tile-local coordinates, leaving original x and y alone to correct collision calculation. 2013-06-18 19:35:00 -05:00
Christian Buskirk c5816a06c2 Merge PR #1626 - Profession skill support 2013-06-18 14:25:58 -07:00
Stevensonz c3743345ee New Ammo Effect Ignite!
Now you can set that monster on fire (normal burnable monsters that is)
and not have everything burn :)
2013-06-19 05:21:14 +08:00
Stevensonz 5b2530d6b2 Removed typo 2013-06-19 01:58:39 +08:00
Stevensonz 32bb1fada6 Bow Rebalances
Dmg Reduction on new arrows with Flaming and Explosion, Slight recipe
cost increase, moved Flammable arrow to Tools with new function that
will produce flaming arrows.
2013-06-19 01:49:35 +08:00
Leonid Vasilev 1df574a033 Fix newcharacter traits list
Both part of traits list (advantages, and disadvantages) scrolling
separatly
2013-06-18 16:59:57 +04:00
Leonid Vasilev a6191c6047 Fix inv and adv_inv UI text 2013-06-18 15:06:37 +04:00
fnord f3c582131f vehicle menu: more intuitive hotkeys, "let go" hilighted by default 2013-06-18 05:30:44 -05:00
Kevin Granade 92daf7bd16 Identifier typo and whitespace cleanup. 2013-06-17 23:32:18 -05:00
Kevin Granade 93c1bf4aee Fix a typo, reported by Dunker. 2013-06-17 23:31:43 -05:00
Kevin Granade 9a0d253c2c Complete merging archery additions. 2013-06-17 23:25:57 -05:00
fnord 95db5af92c what it says on the tin 2013-06-17 22:38:21 -05:00
Kevin Granade 081e3858cd Merge NPC recruit mission.
Conflicts:
	mission.h
	mission_start.cpp
2013-06-17 20:33:29 -05:00
Kevin Granade 50e7c00cac Merge fur and plastic repair enhancement.
Conflicts:
	iuse.cpp
2013-06-17 19:44:11 -05:00
Kevin Granade 3220c75c4e Merge archery items, crafting segfault fix, martial art trait rename, vaccine, and advanced inventory fix. 2013-06-17 19:09:36 -05:00
MacrosBlackD c5727c8437 More balancing on arrows, fixed some descriptions 2013-06-17 18:21:59 -05:00
fnord f05d52ccb1 Allow advanced_inv usage in vehicle 2013-06-17 15:33:00 -05:00
Stevensonz d24a6213a6 Vaccine Shots!
Long duration Health Booster
2013-06-18 04:25:51 +08:00
NaturesWitness 14e1163651 Martial Arts Traits Text Fix
Renamed specialized combat instruction to self-defense classes to fix
text overflow. Also cleaned up wording and grammer on other martial arts
traits.
2013-06-17 13:27:44 -04:00
Tommy 4c6b0aa0c8 Fix segfault when crafting uses up all of the first itemstack it checks. 2013-06-17 18:54:38 +12:00
Kevin Granade 04921b9b8f Merge foraging practice and vitamin balance fixes. 2013-06-16 21:14:21 -05:00
MacrosBlackD ee269b9ad5 Fixed merge fubar and moved crossbow items to archery.json. added *.opensdf to ingore
Fixed the arrowhead recipe cost, 1 steel_lump added up to 12 scrap. This has been changed to 1 steel_chunk which is equivalent to 3 scrap.
changed feathers to fletching and fixed the name of the exploding arrowhead.
Added 2 new bows and rebalanced a couple of stats.
Added Fletching item recipe and Fletching item
Merging and balancing archery mods from Flare and Isylwin
Broke out most archery related items into the archery.json file
Added a STR12_Draw flag for the new top tier bow.
2013-06-16 20:53:01 -05:00
acidia 359aca85de Added recruit NPC success dialogue 2013-06-16 19:46:34 -05:00
Hourousha 76f8f95769 Added skill support into professions; this moves professions toward being a class. 2013-06-16 16:49:31 -05:00
Flare 99e7891705 Added arrows from Flare's Archery mod 2013-06-16 12:14:27 -05:00
acidia acbc71f94b Removed testing values from new missions 2013-06-16 12:49:50 -04:00
acidia c683b3567a Added Recruit Tracker Mission, UPDATE NPC GENERATION 2013-06-16 11:47:14 -05:00
Christian Buskirk 010049efd4 Removed remnant of old vitamin code 2013-06-16 08:32:29 -07:00
Tommy 83fd08ec5d Picking underbrush trains, but has a 50% chance of destroying the bush. 2013-06-17 01:31:28 +12:00
Tommy 9b668a85e9 Picking underbrush only trains survival if you find something. 2013-06-17 00:12:17 +12:00
Tommy 07277e7107 Picking berry bushes trains survival (at low levels). 2013-06-17 00:07:21 +12:00
Kevin Granade 9d8fdc485e Stop shooting yourselves turrets. Remove spurrious prompt when simultaneously disrobing and dropping clothes. 2013-06-16 02:31:44 -05:00
Fergus Dall fab0754115 Suppress pop-up when dropping worn items
Fixes #1616
2013-06-16 16:35:55 +09:30
Kevin Granade 35b13f9927 New missions, leg guards, recalculate HP, and increase item stacking limits.
Conflicts:
	game.cpp
2013-06-16 01:48:40 -05:00
fnord 807bfc889d burst: eliminate redundant checks and suicidal turrets 2013-06-16 01:33:12 -05:00
acidia 9449806628 Fixed Small Typo 2013-06-15 21:45:55 -05:00
acidia 87af2671eb Added Basic Support for Recruit Missions 2013-06-15 21:29:18 -05:00
PiCroft 946bc3e75d sewing/repairing fixes 2013-06-16 03:28:37 +01:00
acidia 1f52a16ef1 Added Recruit Tracker Mission 2013-06-15 21:26:10 -05:00
acidia 444c73d6a5 Added Recruit Tracker Mission 2013-06-15 22:21:57 -04:00
PiCroft 899979491b metal and plural fix 2013-06-16 03:21:36 +01:00
acidia ed5088f49a Added Recruit Tracker Mission 2013-06-15 21:20:03 -05:00
acidia 0a1f8af4e0 Added Recruit Tracker Mission Dialogue 2013-06-15 21:17:55 -05:00
acidia cf2d0681a9 Added Recruit Tracker Mission Dialogue 2013-06-15 21:16:04 -05:00
Fergus Dall ec5d9bc7ef Make tough, glass jaw and hardcore traits trigger a recalculation of HP 2013-06-16 11:35:13 +09:30
Fergus Dall 2fabab8822 Update max and current HP when max strength changes 2013-06-16 11:28:53 +09:30
PiCroft 41409252da changed plastic/kevlar to soldering iron, added fur repair
general improvement of sewing to take into account secondary materials
2013-06-16 02:52:10 +01:00
origamiwolf c35132b2a9 remove item damage from gibbing 2013-06-16 08:10:35 +08:00
NaturesWitness 91810fd9ef Plastic/Kevlar Repair Fix
Fixed missing underscore preventing plastic chunks and kevlar plates
from being usable to repair or reinforce items.
2013-06-15 18:13:14 -04:00
Stevensonz e6ffa8171d Leg Guard Addition
Featuring Hard Leg Guards and Metal Leg guards (Metal Leg Guard recipe
Included)
2013-06-16 04:42:11 +08:00
fnord cfde4c9e52 Use 'add_item_or_charges' in drop, drop_in_direction, pickup ("drop
weapon?" prompt, unload (inventory full), and handle_liquid
2013-06-15 15:26:42 -05:00
fnord 736fd2a200 pickup: support huge item lists in legacy letter-selection via
extended 2 letter sequences for 64th item and beyond ( ie, `gY )
2013-06-15 14:41:08 -05:00
fnord a4a5a954e7 advanced_inv: support volume limitations in map tiles and vstorage,
refactor item movement, add safeguards against item loss, support
stupidly large numbers for headers and weight/volume columns.
2013-06-15 14:35:31 -05:00
fnord 1329d43de0 map::add_item_or_charges returns bool, checks maximum volume, handles
spillover if 4th arg is set.
add_item has optional max items argument (still defaults to 64)
add max_volume, free_volume, stored_volume, and is_full functions
2013-06-15 14:24:57 -05:00
fnord 7166f291b7 vehicle: add max_volume, free_volume, stored_volume, and is_full functions 2013-06-15 14:22:26 -05:00
acidia 7d5c4275c2 Added Martyr Mission 3 & 4 2013-06-15 13:31:38 -05:00
acidia 2f902d7390 Added Martyr Mission 3 & 4 2013-06-15 13:27:26 -05:00
acidia 6283dd2635 Added Martyr Mission 3 & 4 2013-06-15 13:25:52 -05:00
acidia 69be6a3f07 Added dialogue for Martyr Mission 3 & 4 2013-06-15 13:24:43 -05:00
acidia beb0c5ef09 Added 'Visions in Solitude' for martyr mission 2013-06-15 13:22:09 -05:00
acidia 7fa9422485 Added etched human skull for martyr mission 2013-06-15 13:21:07 -05:00
acidia 262ca3a99b Added Cult Monsters 2013-06-15 13:19:24 -05:00
acidia ee4d81fdea Added Cult Monsters 2013-06-15 13:16:15 -05:00
acidia 569dc15f4f Added cabin spawn 2013-06-15 13:08:29 -05:00
acidia a0500ee0d4 Added Cabin basement 2013-06-15 13:03:13 -05:00
acidia 10b39e1301 Added cabin and update to prison 2013-06-15 13:54:06 -04:00
Kevin Granade d69d9de4c6 Merge streamlining of save on sleep and power armor handling fix. 2013-06-15 10:34:43 -05:00
Kevin Granade d6c94ed314 Merge the tail end of pull request 1591. 2013-06-15 10:31:47 -05:00
Kevin Granade b7f3fb5deb Merge remote-tracking branches 'dda/pr/1591', 'dda/pr/1592', 'dda/pr/1597' and 'dda/pr/1581' into dda-master
Conflicts:
	mapitemsdef.cpp
2013-06-15 09:51:50 -05:00
Tommy 8c58dd00b5 Fix item factory to correctly store item birthdays. 2013-06-15 21:25:19 +12:00
Fergus Dall 12b145050f Make dropping armor go through player::takeoff first 2013-06-15 15:48:07 +09:30
Fergus Dall 34a44cefc4 Prevent player::takeoff from removing power armor when other components are worn 2013-06-15 14:43:04 +09:30
Tommy 8ff6ce2ff2 Spawn the correct number of sheets when smashing windows. 2013-06-15 14:28:08 +12:00
D Lue Choy dfdf8322d2 Save /on/ sleep
Unintentional easy saving was breaking my emmersion in the game, and may encourage savescumming.
Changed to make sleeping manditory, with saving optional.
Adjusted vehicle controlls message.
2013-06-14 21:21:25 -04:00
PiCroft 01e041efd6 kevlar and plastic items are now repairable. Use a knife to cut plastic
from plastic objects and ditto for kevlar and use a sewing kit/bone needle
to repair items
2013-06-15 00:58:31 +01:00
Stevensonz 1cbec25e35 Recipe missing ] fix
Recipes now working
2013-06-15 02:19:47 +08:00
Stevensonz e38daf8467 Recipe missing , fix 2013-06-15 02:17:21 +08:00
Stevensonz 40ff084785 was missing ,
sorry editing so late here
2013-06-15 01:57:17 +08:00
Stevensonz af83dee486 Removed typo again 2013-06-15 01:53:57 +08:00
Stevensonz 2081d3b18c some type fixing 2013-06-15 01:48:15 +08:00
Stevensonz 443b3fff0d Remove repeating crossbow spawn 2013-06-15 01:43:47 +08:00
Stevensonz ab3a2e704b Buffed Huge Crossbow
Okay everything should be set.
2013-06-15 01:17:07 +08:00
Tommy 590de892e6 Use new spawn_item() for feathers. 2013-06-15 02:44:38 +12:00
Tommy 06ece44d22 Merge branch 'master' into counter_disassembly 2013-06-15 02:41:15 +12:00
Tommy 224a3e35f2 Ensure PF_FLEET helps even if your legs are damaged. 2013-06-15 02:13:34 +12:00
Tommy 2013d93521 Fix diagonal movement cost for PF_FLEET and/or PF_PARKOUR. 2013-06-15 01:48:35 +12:00
Stevensonz d6083f3017 Merge branch 'Crossbow-Additions' of https://github.com/Stevensonz/Cataclysm-DDA into Crossbow-Additions 2013-06-14 21:43:37 +08:00
Stevensonz df86abf313 Crossbow Recipes!
Last Step for crossbows
2013-06-14 21:43:25 +08:00
Tommy 22a0e38fbb Fix run_cost() for diagonal moves. 2013-06-15 01:34:15 +12:00
fnord b183d5f141 vehicle::add_item limits volume per MAX_VOLUME_IN_VEHICLE_STORAGE (500),
items per MAX_VOLUME_IN_VEHICLE_STORAGE (1024)
2013-06-14 06:54:26 -05:00
Tommy 87a0cafd24 Spawn the correct number of items when deconstructing etc. Fixes #909. 2013-06-14 21:29:55 +12:00
fnord a6c20a66ed Change MAX_ITEMS_PER_TILE from 64 to 1024 2013-06-14 04:24:08 -05:00
Tommy edbb25441f Remove deprecated map::spawn_item(). 2013-06-14 20:52:11 +12:00
Kevin Granade 38922b9860 Power armor bugfix and new types of archery items.
Conflicts:
	game.cpp
2013-06-14 01:53:01 -05:00
Fergus Dall e5a5302284 Only stop the player from putting on power armor if it covers the same slot as other gear
Fixes #1588
2013-06-14 15:07:21 +09:30
Stevensonz b9dc7f9b81 Huge crossbow fix 2013-06-14 12:57:46 +08:00
Stevensonz 204aa7b154 Removed rep crossbow spawn 2013-06-14 12:16:08 +08:00
Kevin Granade 36b52dc240 Compilation fix. 2013-06-13 20:52:47 -05:00
Kevin Granade e3530fb537 Merge remote-tracking branch 'dda/master' into dda-master 2013-06-13 20:51:11 -05:00
Kevin Granade cbbcb0ebdd Merge pull request #1586 from acidia/difficulty-pat
Small tweaks to prison monsters
2013-06-13 18:50:09 -07:00
Kevin Granade e8789745aa Merge remote-tracking branch 'dda/pr/1570' into dda-master 2013-06-13 19:13:30 -05:00
Kevin Granade bd15789c4c Neat-o enhancements. 2013-06-13 18:53:34 -05:00
Kevin Granade 003b7670cb Merge remote-tracking branch 'dda/pr/1560' into dda-master 2013-06-13 18:41:08 -05:00
NaturesWitness 7d2efa2aa0 More Flamethrower Spawns
Added flamethrowers to military spawn list.  Cause, you know it seems
kind of silly that spider lairs are the only place they show up.
2013-06-13 18:06:33 -04:00
fnord ed58320403 rl_dist(point, point) - used once - calls rl_dist(int, int, int, int). 2013-06-13 14:23:26 -05:00
Stevensonz 0e983a2b62 changed huge crossbow weight and volume 2013-06-14 01:34:10 +09:00
utunnels 28c0732fd4 Limit sdl screen update rate if DrawWindow is called multiple times without a break. 2013-06-13 21:43:09 +08:00
Stevensonz 6170c8c5c6 Spawn for New Crossbows 2013-06-13 18:43:17 +08:00
Stevensonz ef4ef8a8b6 Crossbow- Additions
Featuring Pistol crossbow, Huge Crossbow and Repeating Crossbow
2013-06-13 17:28:29 +08:00
utunnels 2734a17368 Calculate font baseline offset manually. This should fix most font bugs. 2013-06-13 16:31:50 +08:00
Fergus Dall e5b892f37a Fix warning in output.cpp
Fixes #1579
2013-06-13 17:36:28 +09:30
utunnels 64e37e180a Merge branch 'master' of github.com:CleverRaven/Cataclysm-DDA into sdl-font-fix 2013-06-13 13:15:26 +08:00
Kevin Granade 2993a9d7c8 Merge remote-tracking branch 'dda/pr/1570' into dda-master 2013-06-12 21:12:47 -05:00
acidia 05dbf9a83f increase difficulty of prison, typo fix 2013-06-12 20:30:13 -05:00
acidia bfda82c6f9 increase difficulty of prison 2013-06-12 20:24:13 -05:00
Kevin Granade f70437892a Print message about vehicle menu when boarding a vehicle. 2013-06-12 20:08:34 -05:00
acidia 036f8f2cf3 added rare jabberwock spawn to various forest types 2013-06-12 21:02:59 -04:00
Kevin Granade 98b146394f Display actual keybinding instead of the default. 2013-06-12 19:38:22 -05:00
Kevin Granade 549a46ffcc Death to trailing whitespace\! 2013-06-12 19:34:10 -05:00
Kevin Granade bb133844e4 Merge batch of the day.
Conflicts:
	game.cpp
2013-06-12 19:21:58 -05:00
origamiwolf 679398ab2a Missed out corpse drop check for non fles or veggy critters 2013-06-13 07:55:20 +08:00
Isylwin 5a1fc5d5ad ammo.json line 276, 298, 320
Made the weights of arrows and sorts more like real-life.
2013-06-13 01:28:10 +02:00
NaturesWitness 106bd6e1c3 Expanded Martial Arts Traits
Traits to make all martial arts styles selectable in-game.
Stopgap until NPCs are fixed.
2013-06-12 17:12:31 -04:00
NaturesWitness df72c2ccd4 Revert "Expanded Martial Arts Traits"
This reverts commit eb57f41857.
2013-06-12 17:02:16 -04:00
NaturesWitness eb57f41857 Expanded Martial Arts Traits
traits to make all martial arts usable in-game.
temporary fix until NPCs are working.
2013-06-12 17:01:18 -04:00
Isylwin 739af21685 Recipes.json line 1350-1352
Made the recipe for wooden arrows less harsh for you softcore people :P
2013-06-12 22:08:05 +02:00
Isylwin 739b802d0f Game.cpp line 8737 change
Made the amount of feather lost smaller.
2013-06-12 21:09:10 +02:00
Octav Sandulescu 19a60bcf7c Fix the 'Whoa.' text in ncurses.
Now it actually prints the first time around, instead of waiting until
you press a key or whatnot.
2013-06-12 17:57:25 +01:00
Isylwin 391df20a46 Bug fix ranged.json line 262
I'm stooopid
2013-06-12 18:48:02 +02:00
Isylwin f25f315639 Bug fix game.cpp line 8737
I'm stooopid
2013-06-12 18:35:26 +02:00
Isylwin 1c2e5d7d39 Additions of Fletching
Adds:
Arrowheads
Wooden Shafts
Feathers

Changes:
Crows now drop feathers
Wooden arrows have to be made from feathers, arrowheads and shafts

This has NOT been tested i.e compiled to see if the changes work.
2013-06-12 18:05:01 +02:00
utunnels 12c83f4a6f Try to fix a sdl font offset bug. Also update DrawWindow. 2013-06-12 23:31:23 +08:00
origamiwolf 17a2dd8e7a Added new fields for gibs, and only tiny and small critters are completely gibbed at high damage 2013-06-12 22:15:11 +08:00
Isylwin d8ecbb828f Test commit for myself
Just checking something
2013-06-12 14:45:42 +02:00
Isylwin de1c12786b Merge remote-tracking branch 'origin/master' into Archery 2013-06-12 14:29:08 +02:00
Octav Sandulescu e863e14093 Fucking underscore. 2013-06-12 13:02:53 +01:00
Octav Sandulescu dedb21de65 Okay, I basically rewrote the whole thing. May it be useful. 2013-06-12 12:53:21 +01:00
Octav Sandulescu 7fd77130b5 Fix the rest of the instructions, while I'm at it. 2013-06-12 09:56:15 +01:00
Octav Sandulescu 19ed69e870 Slight correction to cross-compiling instructions.
From the git-clone(1) manpage: "The 'humanish' part of the source
repository is used **if no directory is explicitly given**[...]". Since
we are explicitly giving it a directory, we need to give it the humanish
part, too.
2013-06-12 09:51:51 +01:00
Tommy 3729c5bb3f Make sure player is properly boarded when debug-spawning vehicles. 2013-06-12 20:45:10 +12:00
Tommy 9bceba1d9d Fix car doors magically closing behind the player. 2013-06-12 20:45:10 +12:00
Tommy b45a2a532a Automatically board and unboard vehicles.
* Separates the idea of vehicle control from being inside.
* No more "Board Y/N" prompt.
* Players can clamber around inside moving vehicles if they want.
* Boardable parts include seats, beds, boxes, aisles and doors.
  If the player is on any of these, they will be carried with the vehicle.
* Player can dismount by walking out of the vehicle.
* Suicidally moving onto moving frames etc is disallowed.
2013-06-12 20:45:10 +12:00
fnord 7c125f2aa8 fix fixes lost in hdd holocaust 2013-06-11 22:55:28 -05:00
Kevin Granade 8b9a842521 end 2013-06-11 22:46:42 -05:00
Kevin Granade f376787c57 Prisons\! 2013-06-11 21:46:12 -05:00
acidia 39e0e173bf Added Jail Bar Door Logic 2013-06-11 21:19:29 -05:00
Kevin Granade 319f13bf92 Another day, another huge batch of bugfixes from awesome people. 2013-06-11 21:16:13 -05:00
D Lue Choy 9132f5b057 from_sentance_case
I do not fully understand source of "17fe mode disabled".
cleaner method of changing case.
2013-06-11 20:13:23 -04:00
Kevin Granade 78b1dd3f88 Fix coordinate handling when avoiding spawning vehicles on top of each other. 2013-06-11 17:57:03 -05:00
D Lue Choy 285bcb5d5c ...
I don't know why this one file was not commited with the other. I built with it /before/ committing.
2013-06-11 18:15:36 -04:00
D Lue Choy b662d9ae12 ('Z'ing|zing) (\(X( or Y)\))
Additional press_x variant to handle 'w'ords that are words.
2013-06-11 17:55:23 -04:00
fnord fdc7b2c193 Burst fire will never populate new_targets[] with monsters at shooter coordinates 2013-06-11 16:30:56 -05:00
fnord 19b739e614 turrets no longer load 9mm_blanks 2013-06-11 15:35:07 -05:00
fnord 1bc5708920 Instead of helpfully shooting their owners in the face, friendly
turrets will hold their fire if player is within a 30 degree cone
of potential friendly fire 'mistakes'.
2013-06-11 15:19:07 -05:00
Shoes01 99703bfc7d Update changelog 2013-06-11 16:31:18 -03:00
Shoes01 1cf6a385a0 Merge branch 'master' into bug-fixes 2013-06-11 16:29:19 -03:00
D Lue Choy 6461427870 Merge branch 'upstream/master' 2013-06-11 14:44:51 -04:00
Isylwin 96b5ed86e8 Merge remote-tracking branch 'origin/master' into Archery 2013-06-11 16:37:03 +02:00
Shoes01 45025d7b5f Diseases no longer pile onto eachothers speed bonuses in the @ menu 2013-06-11 11:17:38 -03:00
Shoes01 cb7cd8ec71 Merge branch 'load-temp-fix' into bug-fixes 2013-06-11 10:42:52 -03:00
Shoes01 2a8688d39c Merge branch 'blister-fix' into bug-fixes 2013-06-11 10:42:44 -03:00
Shoes01 d014321afd Merge branch 'thirst-fix' into bug-fixes 2013-06-11 10:42:33 -03:00
Shoes01 f3e0581ac5 Save/load disease intensity, fixed blisters bug and breaks save 2013-06-11 09:44:05 -03:00
Shoes01 8db49bd998 temp_conv now saved to avoid strange behaviours on load 2013-06-11 09:14:54 -03:00
Fergus Dall 02df95256e Ensure that the player is always considered to be able to see themselves 2013-06-11 21:03:27 +09:30
Fergus Dall 25f9c3884a Add sound indicator
See #1543
2013-06-11 18:35:30 +09:30
Fergus Dall 8d5e6edd84 Make several types of light source respect OPT_CIRCLEDIST, including player held lightsources. 2013-06-11 17:50:04 +09:30
Williham Totland de0969d1de Brings back the code styling of building_generation.cpp. 2013-06-11 06:02:06 +02:00
Christian Buskirk 26879c46fc Added reasoning comments 2013-06-10 20:11:35 -07:00
Kevin Granade 2916482f8c Merge pull request #1548 from KA101/Mutation-proofreading
Effect-proofreading (You Feel X)
2013-06-10 19:51:36 -07:00
Kevin Granade f8a79ab175 Smaller enhancements make the project go round. 2013-06-10 21:46:16 -05:00
KA101 885ed7b51d Effect-proofreading
Mostly the new Mutagen flavors, but one or two other things cropped up.
Changed the Troglodyte message entirely.
2013-06-10 22:42:28 -04:00
acidia fa42b57dd3 Added Jail Bar Door Logic 2013-06-10 20:33:00 -05:00
acidia 064328b92e Added Jail Bar Door Logic 2013-06-10 20:27:50 -05:00
acidia d64370541e Added Jail Bar Door Logic 2013-06-10 20:25:00 -05:00
Kevin Granade f96d802182 Stop unnecessaraly saving adjacent overmaps every time they are potentially dirtied. 2013-06-10 20:24:53 -05:00
acidia fefa233d9c Added Prison Spawn 2013-06-10 20:18:33 -05:00
acidia 6fea0b6683 Added Prison Spawn 2013-06-10 20:15:46 -05:00
acidia 5290c2fc09 Added Prison 2013-06-10 20:09:05 -05:00
Kevin Granade 653190fa6e Merge Magnificent Mission Modifications. 2013-06-10 19:57:20 -05:00
Ethan "Soron" Kaminski fb089b9a71 Merge PR #1522 - category sorting in advanced inventory 2013-06-11 12:31:23 +12:00
Ethan "Soron" Kaminski 522960a2c0 Merge PR #1518 - coalesce some UI code 2013-06-11 12:30:02 +12:00
Ethan "Soron" Kaminski 705c202ba9 Merge PR #1524 - olfactory mask is no longer a scent sink 2013-06-11 12:26:29 +12:00
Ethan "Soron" Kaminski ef358767e0 Merge PR #1532 - neutral trait coloring 2013-06-11 12:15:47 +12:00
Quietust 9771340ba2 Add missing bits 2013-06-10 18:46:07 -05:00
Ethan "Soron" Kaminski d6b2f156ff Merge PR #1513 - radiation badges 2013-06-11 11:43:38 +12:00
teh-sam 1ce228614d Signoff 2013-06-10 17:53:04 -05:00
fnord c4ec82ecc6 Stop mutation from removing starting traits (such as optimist, robust
genetics, android)
2013-06-10 17:39:08 -05:00
Ethan "Soron" Kaminski f51c5f698f Merge PR #1526 - minor lightmap optimization 2013-06-11 10:01:35 +12:00
Ethan "Soron" Kaminski c9fed93159 Merge PR #1531 - obsolete function decl. cleanup 2013-06-11 09:59:28 +12:00
fnord e24c4655c7 fix silly enum assumptions 2013-06-10 16:46:47 -05:00
fnord a783d1b713 More descriptive name 2013-06-10 15:37:36 -05:00
fnord 46063018fe Cleanup 2013-06-10 15:35:02 -05:00
fnord d52baca0cb Merge remote branch 'origin/master' into map_editor 2013-06-10 15:31:23 -05:00
Quietust f3cfe0e2ab Display neutral traits in yellow instead of red 2013-06-10 13:39:49 -05:00
Quietust 909fce3119 Cleanup from mutation refactor 2013-06-10 12:15:13 -05:00
origamiwolf b0b0b5e839 Gibs 2013-06-10 22:16:14 +08:00
Isylwin 77028f2c29 Isy's Archery Addition
I've posted this earlier today on the forums but Williham pointed out to
me that I should be using github. I have no idea if I'm missing
something, so if you are reading this I'm probably a retard and should
ask first do later.
2013-06-10 15:53:16 +02:00
Quietust f6c6db2597 Minor optimization to lightmap generation 2013-06-10 08:36:34 -05:00
Quietust f697e55a95 Add ui.cpp/ui.h to MSVC build project files 2013-06-10 07:48:25 -05:00
D Lue Choy b6be7ae1ae Minor spelling changes. 2013-06-10 03:42:51 -04:00
Fergus Dall 12377e8f9e Stop olfactory mask from removing scent
Fixes #1512
2013-06-10 17:03:54 +09:30
Fergus Dall d816ee2b5d Fix seg-fault in mutation wish menu 2013-06-10 16:39:49 +09:30
Fergus Dall 16194ce2c3 Before removing a mutation, remove its dependencies
Fixes #1509
2013-06-10 16:39:02 +09:30
fnord 6a99d5629d ui.* now conforms to cataclysmic indentation and spacing convention 2013-06-10 02:00:18 -05:00
fnord dd8b9592e0 game.h: Remove #include "ui.h" as it piggybacks output.h 2013-06-10 01:59:19 -05:00
fnord 7526a3b16c Advanced inventory: Add [c]ategory sort 2013-06-10 01:57:41 -05:00
Fergus Dall 9da3a9a7cb Guarantee at least 5 bionics in lab finale
Fixes #1510
2013-06-10 16:01:55 +09:30
D Lue Choy 49dc280805 help texts now use current key config.
help text not updated to reflect new action options.
some help text reflowed.
helper function for unsentance casing.
helper function 'press_x' returns a string for message building.
2013-06-10 02:23:32 -04:00
fnord 16d8d18c0d Merge remote branch 'origin/master' into better_menu 2013-06-10 01:20:42 -05:00
Williham Totland 18eee8f2f9 Adds strawberry bushes. 2013-06-10 08:08:10 +02:00
fnord dfeea3184e Replace menu and menu_vec with calls to uimenu equivalents 2013-06-10 01:00:34 -05:00
Williham Totland f182b22b76 Significantly reduces the number of giant worms. 2013-06-10 07:34:07 +02:00
fnord 5f1e3b467e Leave KEY_LEFT unused for now 2013-06-10 00:25:38 -05:00
Williham Totland b41d35f05b Adds some new, useful entries to .gitignore 2013-06-10 07:21:26 +02:00
Ethan "Soron" Kaminski b69c583d22 Fix catacurse.h compilation with the new ui.cpp 2013-06-10 17:08:29 +12:00
Williham Totland bb99ae7e03 Resolves an issue where game::game_quit was hilariously redundant. 2013-06-10 07:07:29 +02:00
Williham Totland a126213ed5 Resolved an issue where mattack::bite would give the wrong message 2013-06-10 07:04:17 +02:00
Ethan "Soron" Kaminski d13ab0b992 Merge PR #1497 - monster save/load bugfix 2013-06-10 16:41:16 +12:00
Ethan "Soron" Kaminski f0d205b9f6 Merge PR #1504 - mutagen refactor 2013-06-10 16:34:45 +12:00
Tommy 0659912848 Automagically add new keybindings, so long as they don't conflict. 2013-06-10 16:33:57 +12:00
Ethan "Soron" Kaminski 5e7d36ab98 Merge PR #1488 - AtomicDryad's new UI menu 2013-06-10 16:22:55 +12:00
Kevin Granade e3b9b707e5 Add some consistency to JSON syntax of new mutagen types. 2013-06-09 21:28:40 -05:00
Kevin Granade c79768b2e0 Add radiation badge item and associated infrastructure. 2013-06-09 20:59:40 -05:00
Christian Buskirk 8dbec5230f Throwing bug-fix
Style updated as part of the bug-solving process.
2013-06-09 18:58:37 -07:00
Kevin Granade 51281e1850 Return pointers to items in player:inv_dump() and inventory::dump() instead of copies of items. 2013-06-09 19:57:59 -05:00
fnord 9f11df4d30 100% compatibility with menu() and menu_vec() 2013-06-09 17:15:28 -05:00
Christian Buskirk b102f5e622 Fixed copy/paste mishap 2013-06-09 15:03:26 -07:00
Christian Buskirk cbcd451dbd Made smashing sounds trigger on smash location instead of player's 2013-06-09 14:55:30 -07:00
Christian Buskirk f2f8474495 Made shooting interactions more realistic
Added some missing cases
Alarms sound at terrain location instead of players
Destroying things by shooting/throwing makes sound
Extremely high damage weapons can go through/destroy reinforced glass
Throwing no longer always breaks windows - Fixes issue #1122
Windows now drop items - Fixes issue #1240
2013-06-09 14:38:20 -07:00
Christian Buskirk 1588e8128d Fixed a few missing semicolons 2013-06-09 12:39:34 -07:00
Christian Buskirk 2222b28fdd Reduced number of item value checks in steel recycler function 2013-06-09 12:22:17 -07:00
Kevin Granade eb859cb53c Merge Misc aMendments. 2013-06-09 11:53:13 -05:00
Kevin Granade 4231e1bba5 Description tweak. 2013-06-09 11:17:46 -05:00
Kevin Granade 6ee6bc05b0 Streamline special mutagen type handling by routing them theough a single iuse function. 2013-06-09 11:09:08 -05:00
Kevin Granade 25666a1895 Clean plans member of monster object when loading from file.
Prevents pathological corner-case where
save -> exit -> start -> load -> repeat, with no intervening
player actions causes geometric growth of <player name>.sav
and the resulting monster array size.
2013-06-09 10:32:15 -05:00
origamiwolf c24e5b5cc3 Bugfix for incorrect item spawn location in mansion bedrooms 2013-06-09 21:35:11 +08:00
Fergus Dall 4fb09287b6 Changed M72 LAW description to be more accurate
Closes #1499
Closes #800
2013-06-09 19:58:17 +09:30
Tommy f6986c1bac Convert some more stuff to using choose_adjacent(). 2013-06-09 21:16:17 +12:00
Christian Buskirk 0e86cf801b Made gasoline pumps only break when used
Fixes issue #1427
2013-06-09 00:28:36 -07:00
Christian Buskirk 8355f3d3b4 Made high strength characters on meth not break the disease duration 2013-06-09 00:22:00 -07:00
Kevin Granade 8c4f5dbfd8 Don't despawn monsters when exiting the game, they're already saved elsewhere. 2013-06-09 01:58:27 -05:00
fnord c1b1055c1b Comment typo fixes 2013-06-09 00:19:06 -05:00
fnord 9a892424d3 Merge branch 'better_menu' into advanced_inv_better_popups 2013-06-09 00:17:32 -05:00
fnord 244aa81d1a Warning for (startx,width,starty,title,ents) constructor removed: tested ok. -1024 changed to UIMENU_INVALID in init(); 2013-06-09 00:16:39 -05:00
Kevin Granade 539afb5773 Merge enhancements to mutation system. 2013-06-08 23:16:36 -05:00
Kevin Granade 90c17258c2 Merge remote-tracking branch 'dda/master' into dda-master 2013-06-08 23:15:44 -05:00
Kevin Granade 2909795958 Merge pull request #1495 from yobbobanana/movecost_update
Oops.
2013-06-08 21:10:20 -07:00
Kevin Granade 87517c8247 Merge MK II power armor. 2013-06-08 23:05:02 -05:00
Tommy 015dd91cd8 Fix silly mistake. 2013-06-09 16:03:32 +12:00
Tommy 01d6fdacc0 Use calc_movecost() for path length estimation. 2013-06-09 15:59:11 +12:00
Tommy 2e62753e4d Move monster movecost calculation to its own function for consistency. 2013-06-09 15:19:19 +12:00
Tommy 962ed6ebf8 Also use combined_movecost() for NPC moves, and path length calculation. 2013-06-09 15:19:19 +12:00
Tommy 8641bee38a Make movement take half the cost of both the beginning and end tiles,
in stead of just taking the cost of the end tile.
2013-06-09 15:19:19 +12:00
acidia c9e5aad704 Re-Added Zombie Spawn to Sarcophagus Basement 2013-06-08 21:14:25 -04:00
Ethan "Soron" Kaminski d4cc36fbe8 Merge PR #1491 - brass catcher (collects spent ammo shells)
Conflicts:
	mapitemsdef.cpp
2013-06-09 12:47:23 +12:00
Ethan "Soron" Kaminski 42a38ba8d0 Merge PR #1486 - CBM crafting/disassembly 2013-06-09 12:34:05 +12:00
Ethan "Soron" Kaminski 483a1c3277 Merge PR #1492 - stop crashing with human flesh, couple other things 2013-06-09 12:32:43 +12:00
Ethan "Soron" Kaminski b132383344 Merge PR #1421 - elevators made more sane 2013-06-09 12:12:27 +12:00
Williham Totland 480ba538fa Only checks for radiation gear if the ground is irradiated 2013-06-09 01:36:24 +02:00
Ethan "Soron" Kaminski 896ebeccd0 Const a few more (required) item methods 2013-06-09 11:29:21 +12:00
Williham Totland 90b4a261f6 Brings disassembly in line with crafts 2013-06-09 01:16:51 +02:00
Ethan "Soron" Kaminski 23e05440cd Merge PRs #1474, #1470, #1467 - drawing efficiency boosts 2013-06-09 11:11:23 +12:00
Williham Totland 104c85ab84 Fixed minor spelling error, thanks to kevingranade 2013-06-09 01:05:15 +02:00
Williham Totland 1eeaf4e881 Adds Mk. II power armor to spawn lists 2013-06-09 00:36:24 +02:00
Williham Totland 63ec2d48c6 Adds power armor Mk. II; makes power armor impervious to radiation 2013-06-09 00:27:53 +02:00
Williham Totland fcbb998d72 Updates poppy picking to properly ponder infection resistance (see note in comments) 2013-06-09 00:24:53 +02:00
Williham Totland 24b674f99d Updates name of "canned cad" to "soylent slices" to properly fit the theme of To Serve Man 2013-06-09 00:24:00 +02:00
Williham Totland 22a1cbbf7e Resolves an issue where interacting with human flesh would crash the game 2013-06-09 00:23:01 +02:00
Williham Totland 1ba2641b5b Slight rebalancing, adds Power Armor Interface Mk. II 2013-06-09 00:18:03 +02:00
Kevin Granade 561f372e20 Merge remote-tracking branch 'CR/pr/1480' into dda-master 2013-06-08 15:57:22 -05:00
Kevin Granade 8fe7a5408c Duodecimerge\! 2013-06-08 15:18:07 -05:00
Kevin Granade 0c30276a39 Replace some of the melee weapons in gun nut basement with gun extras. 2013-06-08 14:43:54 -05:00
Kevin Granade e614dba6ba Add brass catcher item, functionality, craft recipe, and spawn locations. 2013-06-08 14:43:25 -05:00
Williham Totland c8ecb7b7c7 Blood Filter disassembly added 2013-06-08 19:35:02 +02:00
Tommy f58c769ce2 Fix some mindless copy-paste. 2013-06-09 05:15:00 +12:00
Tommy cbc4f65a43 Allow players to board the vehicle they are standing in/on with '^'. 2013-06-09 05:05:43 +12:00
fnord 0a12c9f43b Now using 'uimenu' class to query for sorting, or destination when moving
to an 'a'll area. Depends on pull 1487
2013-06-08 10:34:59 -05:00
fnord 98100189ec Add ui.cpp and ui.h to windows .cbp thingie 2013-06-08 10:23:48 -05:00
acidia 93120acbcf Commented out zombies for Sarcophagus basement till elevator bug fixed 2013-06-08 10:17:59 -05:00
fnord 244dfaf245 New uimenu class with options for colors, size, positioning, behavior, preselection, and per entry definitions for hotkey, disabling, etc.
Also supports quick and dirty invokation like menu();
2013-06-08 10:15:55 -05:00
Williham Totland 25b77cbf2a Assembly and disassembly recipes for a number of CBMs 2013-06-08 15:47:45 +02:00
Fergus Dall d6e359b460 Refund move points when aborting firing a bow 2013-06-08 22:51:24 +09:30
Fergus Dall 80e396ba67 Stop player from shooting themselves
Fixes #1482
2013-06-08 22:38:16 +09:30
Fergus Dall b6738b9e15 Replace OPTIONS[OPT_CIRCLEDIST] with trigdist 2013-06-08 22:26:54 +09:30
Fergus Dall fdddeb2e33 Use rl_dist to limit range on burst fired weapons 2013-06-08 22:23:09 +09:30
Fergus Dall 94953e6ce1 Merge remote-tracking branch 'atomicdryad/correcting_headlight_mangling' into headlight 2013-06-08 22:01:16 +09:30
fnord e3c3f7e2ad Fixed trig light arc ends 2013-06-08 07:22:38 -05:00
Fergus Dall ea842fdcd4 Stop burst-fire weapons from targeting things out of range
Fixes #1464
2013-06-08 21:39:33 +09:30
Fergus Dall 6bd2be6c19 Stop inverting lightrays in the wrong places in map::apply_light_arc 2013-06-08 21:23:14 +09:30
Fergus Dall 7ee5220010 Use sqrt instead of trig_dist, as trig_dist returns int 2013-06-08 21:01:20 +09:30
Fergus Dall e5188abc04 Re-write map::apply_light_arc to respond to circleLOS option
Fixes #1476
2013-06-08 20:50:07 +09:30
fnord 7db953b341 multidrop: only pad to screen width 2013-06-08 06:02:41 -05:00
fnord 29d91ec83b fix missing declartion 2013-06-08 06:01:41 -05:00
Octav Sandulescu e8af406e8c Return to the build dir after making win32 bindist. 2013-06-08 10:27:01 +01:00
Octav Sandulescu 66f85fd665 Clean up the bindist. 2013-06-08 10:22:23 +01:00
fnord b14e56e7ed trap and field editing 2013-06-08 03:56:29 -05:00
fnord 11917efbb1 Merge remote branch 'origin/master' into map_editor 2013-06-08 03:49:25 -05:00
Tommy c8a51d5272 Properly draw bullets when firing with a shifted viewport. 2013-06-08 19:42:05 +12:00
Kevin Granade 9d02380e5d Merge limiter to ranged targeting in trig distance mode. 2013-06-07 23:54:17 -05:00
Kevin Granade 346d3fc13c Add invalidation hook to player that is called every action. 2013-06-07 23:42:06 -05:00
Kevin Granade 6bda614fce Use new accessor to test for presence of nightvision tech. 2013-06-07 22:50:52 -05:00
Kevin Granade cbb79103d9 Add a caching accessor for whether the player has active night vision. 2013-06-07 22:45:50 -05:00
Fergus Dall 049e2dad48 Disable spawning and crafting of two-way radios
Fixes #1430
2013-06-08 12:18:11 +09:30
Fergus Dall 0c20b9e0e0 Make lava destroy any items placed on it
Fixes #1154
2013-06-08 11:55:23 +09:30
Tommy f4ec56896c Sign SIGNOFF. 2013-06-08 14:19:43 +12:00
Kevin Granade 7bb826d024 Marshall info about the current square at the start of drawsq() instead of calling the same methods multiple times. 2013-06-07 21:11:39 -05:00
Tommy c20a6d656b Display the number of movement points the player's last action used. 2013-06-08 13:51:27 +12:00
Fergus Dall 03a1ddb767 Don't clear the npc list while saving
Fixes #1336
2013-06-08 11:06:44 +09:30
Kevin Granade 3ff2841600 Nest trig_dist() in rl_dist() instead of replicating the implementation. 2013-06-07 20:06:03 -05:00
Kevin Granade a61050d0b7 Batch of bugfixes.
Conflicts:
	SIGNOFF
2013-06-07 19:07:59 -05:00
Kevin Granade 273cb19123 Despawn monsters when we change z-levels, and handle sticking them in the stair queue properly. 2013-06-07 18:57:20 -05:00
D Lue Choy 78598fc848 Save on sleep?
Option to save game before sleeping.
Sets values for autosave.
options.cpp styled using current ruleset.

Signed-off-by: D Lue Choy <dluechoy@>
2013-06-07 19:16:11 -04:00
Voker57 f5d43cbefd Signed off. 2013-06-08 02:32:24 +04:00
Ethan "Soron" Kaminski bdc508ca30 Merge PR #1455 - view centering while aiming 2013-06-08 10:11:38 +12:00
Christian Buskirk 6c7c5c92cd Merge PR #1456 - Cooking with Javelins 2013-06-07 14:21:00 -07:00
fnord cba216eea6 Add missing semicolon 2013-06-07 15:14:20 -05:00
fnord 9efd9c6cb1 ranged.cpp: target: Players can no longer aim horizontally beyond
the weapon's range if circular geometry is enabled.
2013-06-07 15:00:28 -05:00
Izicata db05859538 Changed trig_dist to rl_dist for range calculations
This should ensure both circular distances and roguelike distances use proper range calculations.
2013-06-07 16:50:06 -03:00
Izicata ec32cf4399 Use absolute-value based range calculation when circular distances is turned off.
If circular distances is on, use the old trig-based range calculation. 

If circular distances is off, use either the distance along the x axis or the distance along the y axis as the range value (whichever is bigger), because that's how non-Euclidean square-tile based systems work.
2013-06-07 16:39:37 -03:00
Christian Buskirk 569017d4b5 Merge pull request #1459 from fergus-dall/flamethrower 2013-06-07 11:23:03 -07:00
Shoes01 578b776f50 Thirst now occurs less frequently when hot 2013-06-07 14:29:45 -03:00
Fergus Dall 5bd3dd5389 Check AMMO_FLAME correctly in game::fire
Fixes #1457
2013-06-07 23:14:57 +09:30
Stevensonz c29f251e0c Cooking with Javelins Issue #1438 FIX
Add Javelins again which was lost due to oversight.
(Re--added Javelin to Cooked Meat ,Cooked Human Meat and Cooked Veggy
Recipe)
2013-06-07 20:47:29 +08:00
Tommy 7486b13eef Don't snap the view to the player when targeting. Fixes #90. 2013-06-08 00:10:50 +12:00
Ethan "Soron" Kaminski 7dca418f8f Remove the unused (and unlikely to be used) OutputText function 2013-06-07 23:52:15 +12:00
Ethan "Soron" Kaminski 43edb6e28e Use an explicitly unsigned char variable for array access 2013-06-07 23:50:57 +12:00
Ethan "Soron" Kaminski c87a4eb985 Use the prescribed method for converting from a string literal to a char* 2013-06-07 23:46:10 +12:00
utunnels f3bec68606 Wrap contents of case statements in braces. 2013-06-07 19:32:34 +08:00
utunnels d778c96f24 Merge branch 'master' of github.com:CleverRaven/Cataclysm-DDA into sdl-window-fix 2013-06-07 19:31:26 +08:00
utunnels 5238680f4e Try to fix cross initialization issue which certain compilers complain about. 2013-06-07 19:27:46 +08:00
Fergus Dall c582ec1f00 Change X-Acto knife description
Closes #1451
2013-06-07 18:48:14 +09:30
utunnels d403dee27f Code/comment clean up. 2013-06-07 17:13:49 +08:00
utunnels 033c674821 sdl version now reads fontsize from FONTDATA instead of using fontheight directly. The default value is fontheight-1, if it is not provided. 2013-06-07 16:18:00 +08:00
Tommy 6b47b3ed04 Replace pl_choose_vehicle() with generic choose_adjacent(). 2013-06-07 19:53:48 +12:00
Tommy 20448bbb9f Move all the which-direction queries into a single function. 2013-06-07 19:32:08 +12:00
utunnels 99be2add0d Alt+F4 support for sdl version (old sdl version doesn't support that directly). Also center the window when start up. 2013-06-07 14:58:46 +08:00
Ethan "Soron" Kaminski 329879b152 Merge PR #1441 - more vehicle controls tweaks 2013-06-07 16:27:25 +12:00
Ethan "Soron" Kaminski 567a0cf048 Fix font paths 2013-06-07 16:14:42 +12:00
Ethan "Soron" Kaminski 241666ab45 Merge PR #1445 - updates to SDL font stuff 2013-06-07 16:06:23 +12:00
Izicata eb51a46b07 Signed off.
I am not going to include my email address, because reasons.
2013-06-06 23:56:53 -04:00
Kevin Granade 60bc5c0d01 Merge signoff from AtomicDryad.
Conflicts:
	SIGNOFF
2013-06-06 22:49:18 -05:00
utunnels 82c369f341 Merge branch 'master' of github.com:CleverRaven/Cataclysm-DDA into sdl-font-fix 2013-06-07 11:43:44 +08:00
Kevin Granade f237dfbc7c Merge damaging radiation and optional mutations from rads. 2013-06-06 22:42:36 -05:00
utunnels fe5cd58192 Remove unnecessary fontpath from sdlcurse code. 2013-06-07 11:42:33 +08:00
Ethan "Soron" Kaminski 62dc4a0d3e Merge PR #1442 - lightmap fixes 2013-06-07 15:32:09 +12:00
utunnels 04c6035e79 Merge branch 'master' of github.com:CleverRaven/Cataclysm-DDA into sdl-font-fix 2013-06-07 11:14:45 +08:00
Kevin Granade 70be4e63a9 Stupid error is stupid. 2013-06-06 22:14:42 -05:00
utunnels 12bfcf4363 Re-commit unsaved file last time. 2013-06-07 11:13:27 +08:00
utunnels b0a2691a9b Make sdl FONDATA compatible with its gdi counterpart. Cache glyph data for sdl font to speed up DrawWindow. Filter shift, alt and ctrl keys. 2013-06-07 11:03:43 +08:00
Kevin Granade 7b043b8aad Batch of small fixes. 2013-06-06 21:38:53 -05:00
Kevin Granade 23fb52737b Apply transparency effects on horizontal-dominant rays as well. 2013-06-06 21:36:23 -05:00
Kevin Granade c1e849a701 Sanity check for map::apply_light_ray() to avoid lightmap hangs. 2013-06-06 21:36:12 -05:00
Kevin Granade 75bc1c5015 Merge pull request #1424 from ethankaminski/acid-resist-returnval
Actually return the ret value in item::acid_resist
2013-06-06 19:16:48 -07:00
Tommy 8a975d9829 Merge external vehicle control with new '^' key. Fixes #1395. 2013-06-07 14:05:15 +12:00
Ethan "Soron" Kaminski c26fb969c3 Merge PR #1432 - multidrop UI shows list of dropped items 2013-06-07 13:49:17 +12:00
Ethan "Soron" Kaminski 4544c029bf Merge PR #1411 - make max traits optional 2013-06-07 13:40:02 +12:00
Ethan "Soron" Kaminski af7eac439c Merge PR #1380 - Windows makefile gives the app an icon 2013-06-07 13:39:32 +12:00
Ethan "Soron" Kaminski 76bb7b8a60 Merge PR #1394 - catacurse wclear change 2013-06-07 13:12:44 +12:00
Ethan "Soron" Kaminski 8c1b90ac2a Catch a lingering reference to the old skill data structure
Should fix #1436.
2013-06-07 12:43:20 +12:00
Ethan "Soron" Kaminski 2242dc0558 Merge PR #1416 - unusing liquids (disinfectant) 2013-06-07 12:31:21 +12:00
Ethan "Soron" Kaminski efc9851ece Merge PR #1412 - fix blade trap disarming 2013-06-07 12:28:20 +12:00
Ethan "Soron" Kaminski d8da557343 Merge PR #1400 - vehicle updates 2013-06-07 12:15:20 +12:00
Ethan "Soron" Kaminski ca566baee7 Sort inventory by item charges, use low-charge items first
FINALLY got it so that low-charge items will consistently be used in favor of high-charge items.

Doesn't do anything for matches vs. lighter use, though (since it also sorts by item ID).
2013-06-07 12:01:10 +12:00
MacrosBlackD 6cfe4927ee Fixed loading of max trait points from options 2013-06-06 16:36:31 -05:00
Quietust 2f86ddf54d don't do pow(int, 2.0) - (int * int) is all but guaranteed to be faster 2013-06-06 13:59:36 -05:00
D Lue Choy 4efd4a1fbd Multidrop screen now shows a summary of what is about to be dropped
Wielded items highlighted in lightblue, and worn items are highlighted in cyan.
Partial quantities are shown with { } braces.
Redraw not optimized; does not interfere with 80 column display on Windows.

Signed-off-by: D Lue Choy <dluechoy@>
2013-06-06 14:37:11 -04:00
MacrosBlackD bfa463f427 Removed int& from set_traits 2013-06-06 08:57:07 -05:00
MacrosBlackD c36e1390eb Added max trait points to the options menu. Addresses issue #1410 2013-06-06 08:57:06 -05:00
Ethan "Soron" Kaminski d1bd12b0e2 Actually return the ret value in item::acid_resist 2013-06-06 19:02:40 +12:00
Ethan "Soron" Kaminski 9d9fec4c62 Merge PR #1422 - update .gitignore 2013-06-06 18:48:28 +12:00
Ethan "Soron" Kaminski dbc0eea563 Remove an extraneous close brace 2013-06-06 18:47:01 +12:00
Izicata 97d8766dc6 Dropped items no longer dissappear.
The directional drop code was substantively different from the regular drop code; directional drops do not duplicate items when dropping into full vehicle trunks, even on builds pre-#1401. Since the directional drop code actually works, I copy-pasted the relevant parts over the regular drop code, changed dirx/diry to u.posx/u.posy, and the result doesn't duplicate items and actually drops dropped items.

Hopefully I haven't horribly broken anything this time.
2013-06-06 02:07:20 -03:00
MacrosBlackD 0d95cb99fd Updated .gitignore to exlude user settings and artifacts from the visual studio build 2013-06-05 23:33:38 -05:00
Kevin Granade 06ebe00ed3 Call game::vertical_move() from iexamine::elevator() instead of trying to shift levels manually. 2013-06-05 23:19:38 -05:00
Kevin Granade a5eddf5e9a Add support for elevators to game::nertical_move(). 2013-06-05 23:18:45 -05:00
Ethan "Soron" Kaminski 5e8a75e6f4 Make SDL play nice with CPU usage while listening for events 2013-06-06 15:09:40 +12:00
Ethan "Soron" Kaminski 3061d2a15f Stop hiding the mouse cursor with SDL 2013-06-06 15:07:46 +12:00
Ethan "Soron" Kaminski a6359ab812 Merge PR #1417 - more SDL adjustments for MSVC 2013-06-06 15:01:12 +12:00
Quietust b767b19a22 Get SDL compile actually working this time - helps to include the libs 2013-06-05 21:56:16 -05:00
Tommy 9e7160f4e0 Roll backwards when exiting a reversing vehicle. 2013-06-06 14:38:14 +12:00
Kevin Granade 90b1454d3f Hackishly special case liquid un-use handling in iuse.cpp. 2013-06-05 21:28:51 -05:00
Tommy 0247a68bb2 Don't roll player if diving from a vehicle into water. 2013-06-06 14:16:42 +12:00
Tommy 55c5c9fb3d Safely hop from slow-moving vehicles, get hurt from quick ones. 2013-06-06 14:12:16 +12:00
Ethan "Soron" Kaminski 6791b36b20 Made font paths work for both SDL and wincurse.cpp 2013-06-06 13:32:24 +12:00
Kevin Granade a78d4ab6a5 Fix disarming blade trap as per issue #1403. 2013-06-05 19:29:32 -05:00
MacrosBlackD 8561b882d6 signed-off ;) 2013-06-05 19:27:47 -05:00
Kevin Granade 34ce78ca92 Merge fix to vehicle trunk duplication bug. 2013-06-05 18:55:50 -05:00
Kevin Granade bf96a523bf Merge blood analysis and filtering extensions. 2013-06-05 18:52:45 -05:00
Kevin Granade ea6fc565da Merge trig based distance option.
Conflicts:
	game.h
	lightmap.cpp
	map.h
2013-06-05 18:36:52 -05:00
Kevin Granade 0626768b17 Misc mergeomainia. 2013-06-05 18:07:17 -05:00
Ethan "Soron" Kaminski aebb05a22d Merge PR #1402 - fix cataclysm-launcher script 2013-06-06 10:48:19 +12:00
MacrosBlackD b4f69b80a6 Replaced electric motor on the chainsaw recipe with the 1 cylinder engine. This addresses issue 1405. 2013-06-05 17:34:45 -05:00
Ethan "Soron" Kaminski 1a28044b91 Merge PR #1396 - no more single-tile highways 2013-06-06 10:33:20 +12:00
Ethan "Soron" Kaminski ed9b4fd905 Merge PR #1393 - assorted fixes 2013-06-06 10:32:07 +12:00
Ethan "Soron" Kaminski b067ca460f Merge PR #1408 - make nights dark again 2013-06-06 10:29:38 +12:00
Ethan "Soron" Kaminski e3b897ced2 Merge PR #1407 - WinMain for MSVC builds 2013-06-06 10:26:56 +12:00
Ethan "Soron" Kaminski 6b59ed084a Merge PR #1397 - human meat fixes 2013-06-06 10:26:35 +12:00
MacrosBlackD 398dd3c5d4 Fix issue 1381; readded if check on light level return value 2013-06-05 17:11:31 -05:00
Quietust 64dd8e0466 Add USE_WINMAIN define for MSVC so it can run without creating a console window 2013-06-05 16:30:25 -05:00
Christian Buskirk fc497729fd Stopped bleeding and poison from applying when stopped by armor 2013-06-05 11:42:36 -07:00
Octav Sandulescu b2d5e59da0 Make the 'launcher' do things without spawning _two_ subshells. 2013-06-05 19:14:34 +01:00
Izicata 1d8aed0c37 Fixed #1088
When dropping vehicle trunk overflow items to ground, don't start dropping all of the items again. Only drop items that haven't already been dropped to the trunk.

Somebody please look this over to make sure I haven't broken anything.
2013-06-05 13:27:25 -03:00
Tommy 41f080ea36 Missed a return statement. 2013-06-06 03:18:20 +12:00
fnord 9ae0c84205 Graffiti written on the current ground square will now display below
the status line (on displays supporting 27 lines or more).
2013-06-05 09:58:54 -05:00
origamiwolf f2002aa178 Used materials acid resistance to determine how items react to acid fields 2013-06-05 22:26:58 +08:00
Tommy 62a497b1a3 Properly fling player when exiting a moving vehicle. 2013-06-06 02:14:28 +12:00
Tommy dd9ae34c02 * Split vehicle disembarking out of game::examine().
* Split vehicle control out of ACTION_SLEEP.
* Add new default keybinding for vehicle control: '^'.
* Allow vehicle disembark from vehicle control menu.
* Only query for disembarking moving vehicles.
2013-06-06 01:51:54 +12:00
origamiwolf b16960015e Fixed typo in mapitemsdef that prevented human cookbook from spawning 2013-06-05 21:29:39 +08:00
origamiwolf d7bbf9d357 Fixed order of material checks in complete_butcher 2013-06-05 21:28:21 +08:00
Fergus Dall 8f086dcd8a Don't attempt to make a highway if start and end points are the same
Fixes #1119
2013-06-05 21:08:57 +09:30
Fergus Dall 688e0c7506 Remove unnecessary check in SkillLevel::rust 2013-06-05 20:32:06 +09:30
Fergus Dall b34d1e275c Change wclear to call clearok instead of wrefresh
Fixes #1149
2013-06-05 20:28:17 +09:30
fnord 43036fb7fe Make sharpie markers write and spraycans spray 2013-06-05 05:57:32 -05:00
fnord 09eb756bc6 Behold, sharpie markers 2013-06-05 05:54:10 -05:00
Fergus Dall 570bc23f02 Make quench and nutrition of cooked foods more inline with their components.
See #1181
2013-06-05 20:19:20 +09:30
Fergus Dall 832e230cd8 Stop partially trained skills from rusting down a level when OPT_SKILL_RUST = 1
Fixes #1224
2013-06-05 19:51:39 +09:30
Fergus Dall 80ef38459c Make blood analysis detect all drugs 2013-06-05 19:32:21 +09:30
Fergus Dall a0ecb15c19 Make blood filter remove all other drug based diseases 2013-06-05 19:27:20 +09:30
Fergus Dall 02f1626fb8 Make blood analysis detect meth, and blood filter remove "High on meth" effect 2013-06-05 19:23:54 +09:30
Fergus Dall 5800c1d74d Make blood filter remove painkiller and stimulatnt totals 2013-06-05 19:23:22 +09:30
Christian Buskirk b95ed0f2dd Fixed cloak materials
Addresses issue #1359
2013-06-05 02:22:51 -07:00
Christian Buskirk 1293a4a327 Made bites no longer infect when canceled by armor
Also made bite infection chance based on damage dealt.
2013-06-05 02:14:00 -07:00
Christian Buskirk 18fc805a0f Made Gradual night light on by default
We have a fancy realistic light effect, lets use it (I'm not even sure
why this is even an option, the false version is horribly unrealistic).
2013-06-05 00:54:51 -07:00
Christian Buskirk 540a19cfaa Increased Auto Safe Mode max duration to 100 2013-06-05 00:30:08 -07:00
Quietust 218bfd1323 Add custom build step for MSVC to generate version.h 2013-06-04 23:12:42 -05:00
Quietust ca482d88d2 Add MSVC build targets for SDL version 2013-06-04 23:11:33 -05:00
fnord b50433ca19 avoid use of pow() in distance calculation, speeding them up an order of magnitude (thanks quietus!) 2013-06-04 22:06:49 -05:00
Ethan "Soron" Kaminski 2314c2c63f Blood splatter from pulping is possible with *any* non-zero damage level 2013-06-05 15:04:15 +12:00
Ethan "Soron" Kaminski 3de1a7f2c2 Merge PR #1382 - corpse smashing splatter 2013-06-05 14:37:23 +12:00
Ethan "Soron" Kaminski a6fad03602 Merge PR #1383 - GlyphGryph's signoff 2013-06-05 14:37:09 +12:00
GlyphGryph 5e8bce8c51 Merge branch 'master' of https://github.com/TheDarklingWolf/Cataclysm-DDA
Conflicts:
	SIGNOFF
2013-06-04 21:15:23 -04:00
GlyphGryph 85733dfa3c Signed off. 2013-06-04 21:09:24 -04:00
Kevin Granade c062c0f857 Splatter blood around when pulping corpses. Thanks to Wrath for the idea. 2013-06-04 19:44:00 -05:00
Kevin Granade 190cdee153 Fix some crazy indention. 2013-06-04 19:25:38 -05:00
RJ Costanzo 7107433dcd Chunk of steel recipe
See issue #1170

Conflicts:

	data/raw/recipes.json
2013-06-04 19:22:13 -05:00
Kevin Granade d1c9b8dbbe Today's small fixes and enhancements. 2013-06-04 18:57:26 -05:00
Justice- ed26c90816 Updated to attach resources to executable 2013-06-04 17:47:47 -05:00
Kevin Granade 0960f63f03 Merge SDL text support. 2013-06-04 17:24:29 -05:00
Justice- 2f3e4fc8c2 Added leather vest item and crafting recipe 2013-06-04 16:17:36 -05:00
Quietust c27e89a85c Don't recalculate sight range for every tile 2013-06-04 15:36:21 -05:00
Quietust 8f0077396e Don't decrement iterators pointing at the end of an empty list 2013-06-04 15:28:27 -05:00
fnord 35250f7334 +signoff 2013-06-04 02:20:32 -05:00
Ethan "Soron" Kaminski 2f4a211065 Merge PR #1363 - adv. inv. examining 2013-06-04 19:18:26 +12:00
fnord 2ae1f65705 Fitting screen now shows storage and encumbrance in item columns 2013-06-04 02:17:59 -05:00
Ethan "Soron" Kaminski 79654065b4 Merge PR #1367 - minor radiation tweak 2013-06-04 19:16:03 +12:00
Ethan "Soron" Kaminski 6a672affcd Bows are not ever one-handable.
Closes #665.
2013-06-04 18:52:57 +12:00
fnord 6094e56112 Performance enhanced 253% via #ifdef and comment cleanup =^.^= 2013-06-04 01:40:30 -05:00
Ethan "Soron" Kaminski fa4a3bf606 Fix swimming encumbrance penalty sign, displayed formula
Closes #1369
2013-06-04 18:31:40 +12:00
Ethan "Soron" Kaminski 7202b9da7a Make indents match surrounding code 2013-06-04 18:20:49 +12:00
Ethan "Soron" Kaminski 3bcd65bcb5 Remove obsolete/inactive "map legend" stuff 2013-06-04 18:19:22 +12:00
Ethan "Soron" Kaminski 39581a1d09 Remove another unused enum from game.h 2013-06-04 17:47:08 +12:00
Ethan "Soron" Kaminski 8627293874 Remove an unused tutorial-related enum 2013-06-04 17:34:53 +12:00
Ethan "Soron" Kaminski 82b6211c50 Make the windows in the tutorial room curtained 2013-06-04 17:26:23 +12:00
Ethan "Soron" Kaminski eac93274e6 Merge PR #1344 - apply circular lighting globally 2013-06-04 15:31:58 +12:00
Ethan "Soron" Kaminski 1345baa885 Fix a segfault with the material rewrite
Need to use <= instead of < on that bounds check
2013-06-04 15:19:00 +12:00
Kevin Granade b8f66b69e1 Eliminate radiation dosage saturation, halving dosage rate to compensate. 2013-06-03 21:25:22 -05:00
Quietust 4be8d6647d Tweak sqrt() usage to make MSVC be quiet (since it replaces <math.h> with <cmath> when compiling C++) 2013-06-03 20:43:39 -05:00
Ethan "Soron" Kaminski 9428f23d63 Use standard "!" for negation, not gcc "not" extension 2013-06-04 13:39:25 +12:00
Kevin Granade 38e261b283 Scale stuck cost based on a weapon's ratio of cutting to bashing damage. 2013-06-03 19:51:19 -05:00
Ethan "Soron" Kaminski c0fbf32c8f Update a few new items to the new lowercase materials 2013-06-04 12:40:07 +12:00
Ethan "Soron" Kaminski 1d5d5666fb Merge PR #1315 - material refactor (pushed to data files)
Conflicts:
	data/raw/items/tools.json
	game.cpp
	item.cpp
	mtypedef.cpp
2013-06-04 12:31:16 +12:00
Kevin Granade 16b9a17adc Merge corpse pulping. 2013-06-03 18:53:05 -05:00
Ethan "Soron" Kaminski 69f869ca16 Merge PR #1351 - sort skill list by level 2013-06-04 11:30:20 +12:00
Ethan "Soron" Kaminski eb8ff64592 Change how pulping works with damaged corpses and multiple corpses 2013-06-04 11:24:50 +12:00
Ethan "Soron" Kaminski 63afbe6d05 Make smash time depend on the player's weapon 2013-06-04 11:12:50 +12:00
Ethan "Soron" Kaminski 7db767b36c Merge PR #1358 - correct invlet displayed after crafting 2013-06-04 10:35:35 +12:00
Ethan "Soron" Kaminski 34ba91f8df Merge small fixes - PRs #1353, #1354, #1357, #1362 2013-06-04 09:56:02 +12:00
fnord 2849eb539c remove silly #ifdef that broke "e" for non-inv items 2013-06-03 16:47:59 -05:00
fnord 62db60c36f no unused has. Indeed. 2013-06-03 16:30:49 -05:00
fnord 9c343b5b58 Inventory: remembers last highlighted item 2013-06-03 16:15:55 -05:00
fnord 0e075582c6 Advanced inv: "e" pulls up inventory item menu. Help window displays feedback messages for actions taken. "?" toggles between help and msg viewer. 2013-06-03 16:12:30 -05:00
Quietust 6557b37f44 Fix hang in 64-bit builds when filtering [V] item list 2013-06-03 14:49:41 -05:00
fnord 4b30bb41a3 fix build error 2013-06-03 13:12:19 -05:00
fnord a59e0f6a84 Nuked #debug-ifs. Restored lightarc shape. Make lightsource downgrade less cpu intensive squares within huge-assed lava fields 2013-06-03 12:35:06 -05:00
fnord c7f727d974 Merge remote branch 'origin/master' into opt_circledist-wip 2013-06-03 10:23:22 -05:00
Tommy 77fefd9123 Display the correct inventory letter when crafting adds to a stack. 2013-06-04 02:04:27 +12:00
Quietust e65588ab65 South is "S", not "W" 2013-06-03 08:43:42 -05:00
origamiwolf 5d024eb583 Added density field, for use in vortex attacks 2013-06-03 21:24:23 +08:00
Christian Buskirk 10e323f80b Small typo fix for my updated FAQ. 2013-06-03 04:02:20 -07:00
Christian Buskirk 41a432a88a Fixed hacksaw name (was "hack saw", should be "hacksaw"). 2013-06-03 03:39:34 -07:00
Christian Buskirk e116197137 Added tiny pain effect to Acid Drizzle, raincoats now offer a bit of protection to acid rain/drizzle.
Raincoats give a 1/3rd chance of canceling the drizzle effect and a
1/10th for the rain one.
Also updated raincoat description.

This addresses issue #1161.
2013-06-03 03:25:13 -07:00
Christian Buskirk 89b769ec11 Fixed old mutation effect removal when upgrading mutations
Also fixes the permanent stat gain part of issue #1259.
2013-06-03 02:54:21 -07:00
Octav Sandulescu 9bcd254e1f Catch the other copy/paste, too 2013-06-03 10:49:34 +01:00
Octav Sandulescu 6e02f37876 Bugfixes 'cannot put %s over your tentacles' 2013-06-03 10:45:40 +01:00
Christian Buskirk 17064f496c Made multiple gasoline tanks drain properly.
Fixes issue #1084
2013-06-03 02:02:14 -07:00
Christian Buskirk 0b2a39755f Made vitamins have an effect again
Optimal dose is approximately twice a day (~13.8 hours per dose).
Also fixes issue #1136
2013-06-03 01:43:29 -07:00
Christian Buskirk c12bab5ede Remove old TODO comment 2013-06-02 23:51:14 -07:00
Ethan "Soron" Kaminski a90f8beca3 Make key handling work for non-ASCII characters 2013-06-03 18:40:36 +12:00
Christian Buskirk 417c2235f3 Updated FAQ 2013-06-02 23:27:02 -07:00
Ethan "Soron" Kaminski a6b43ca28e Make it possible to apply multiple damage levels to a corpse in one attempt
Can't believe I didn't code it this way to begin with >_>.
2013-06-03 18:24:02 +12:00
Ethan "Soron" Kaminski 252c3977f5 Move the corpse damage descriptors to the default case
Because for implementation reasons, corpses are made_of(FLESH) even though type->m1 == MNULL.
2013-06-03 18:09:07 +12:00
Ethan "Soron" Kaminski 583e94f8ca Don't drain mental focus if the amount to train is 0 2013-06-03 18:01:15 +12:00
Ethan "Soron" Kaminski a16b870c3c Don't bother targeting pulped corpses 2013-06-03 18:00:36 +12:00
Ethan "Soron" Kaminski 48f09cbda3 Apply a time penalty for smashing corpses 2013-06-03 18:00:10 +12:00
Ethan "Soron" Kaminski ccdbae085d Re-indent game::smash() 2013-06-03 17:59:13 +12:00
Tommy 1fa4cab410 Consistently display rusting skills. 2013-06-03 17:54:57 +12:00
Ethan "Soron" Kaminski 32a5b96f89 Smashing a corpse-containing tile now targets the corpse first 2013-06-03 17:53:14 +12:00
Tommy f5ccf0d0ef Sort the skills list by skill level. 2013-06-03 17:38:16 +12:00
Christian Buskirk c22cc8dd4a Stopped players from leaving slime trails or webs while in a vehicle. 2013-06-02 22:34:54 -07:00
Ethan "Soron" Kaminski 6dcd020977 Clean up a little of the smash code 2013-06-03 16:49:40 +12:00
Ethan "Soron" Kaminski 40cd3dec1a Make corpse damage impair revivification 2013-06-03 16:37:04 +12:00
Ethan "Soron" Kaminski ef5981e752 Add more damage descriptors for corpses 2013-06-03 16:31:14 +12:00
Kevin Granade 67c99cdff5 Merge medical item integration and small fixes. 2013-06-02 22:35:28 -05:00
Ethan "Soron" Kaminski e44c295ad8 Update the Windows project files to point to the new wincurse.cpp 2013-06-03 15:22:04 +12:00
Ethan "Soron" Kaminski edca8f0f33 Tweak how the makefile treats the obj directories 2013-06-03 15:10:50 +12:00
Ethan "Soron" Kaminski 7e5960c637 Merge remote-tracking branch 'origin/pr/3' into sdlcurses 2013-06-03 15:04:17 +12:00
Ethan "Soron" Kaminski 65ef0ffe81 Fix font sizing 2013-06-03 15:03:48 +12:00
Ethan "Soron" Kaminski 92758ac2aa Merge PR #1300 - remove an NPC deletion outside of the desiginated cleanup function 2013-06-03 14:48:33 +12:00
Kevin Granade 651d8779a8 Remove call to remove_npc() from npc::die().
It should only be called from cleanup_dead().
npc::die() merely marks the NPC as dead.
2013-06-02 21:45:44 -05:00
Ethan "Soron" Kaminski 5e80ca8573 Merge PR #1348 - ranged perception mod tweak 2013-06-03 14:43:32 +12:00
Kevin Granade 623a331ef5 Slight nerf to perception skill's effect on ranged accuracy. 2013-06-02 21:29:08 -05:00
Ethan "Soron" Kaminski 23b449951a Merge PR #1337 - weapon sticking rework 2013-06-03 14:24:56 +12:00
Ethan "Soron" Kaminski e638e812e2 Show driving skill again in the '@' screen
Closes #1343.
2013-06-03 14:14:40 +12:00
Ethan "Soron" Kaminski d113871810 Fix misfire message for turrets (turrets now considered "NPC"s, rather than "player"s) 2013-06-03 13:57:09 +12:00
Kevin Granade df4f271a7f Merge Herbert Jones' signoff.
Conflicts:
	SIGNOFF
2013-06-02 20:54:44 -05:00
Kevin Granade 0873d4ab8d A little cleanup of debug and prototype code I missed when merging the lighting rework. 2013-06-02 20:41:09 -05:00
Kevin Granade 28b1bb51ec Remove globally setting light level based on items the player is holding. 2013-06-02 20:38:21 -05:00
Kevin Granade 910215c7a2 Make circular lighting pattern the way lighting works. 2013-06-02 20:37:47 -05:00
Ethan "Soron" Kaminski 045fb50ac6 Add an iuse for disinfectant 2013-06-03 12:59:16 +12:00
Ethan "Soron" Kaminski 02d5cd9023 Only print new HP totals if the body part is damaged 2013-06-03 12:36:18 +12:00
Ethan "Soron" Kaminski 7a03540af7 There's code to print the new HP totals? Well, let's use it! 2013-06-03 12:35:28 +12:00
Ethan "Soron" Kaminski 6d2bc37c82 Clean up medical iuse, extract common bandage/first aid logic 2013-06-03 12:21:11 +12:00
Kevin Granade 662a977f2a Merge lightmap refactor to use trig functions instead of iterative methods. 2013-06-02 19:01:20 -05:00
Ethan "Soron" Kaminski 8e81ad1091 Add new medical items to spawn lists, fix some typos in descriptions 2013-06-03 11:46:41 +12:00
Ethan "Soron" Kaminski fb709da465 Merge PR #1339 - no misfires from muscle-powered firearms 2013-06-03 11:33:13 +12:00
Kevin Granade 8b2e421f59 Exempt archery and throwing-based weapons from misfire chance. 2013-06-02 18:24:36 -05:00
Ethan "Soron" Kaminski c40a5b413c Merge PR #1326 - Nickboom's medical items 2013-06-03 11:20:55 +12:00
Kevin Granade 1d89346337 Batch o fixes and enhancements. 2013-06-02 18:03:34 -05:00
Ethan "Soron" Kaminski abd5432247 Make the misfire message smart about player vs. non-player 2013-06-03 10:54:31 +12:00
Kevin Granade 6d60d22ee1 Rework how stuck chances is caclculated.
It's now based on weapon attack speed, weapon attack type, and player skill.
2013-06-02 17:50:36 -05:00
Kevin Granade fb4cbb0cd2 Remove redundant code penalizing cutting weapons for getting stuck. 2013-06-02 17:49:36 -05:00
Kevin Granade 01e4ab3c1c Serialize monster inventories so they don't evaporate across a save/load.
They still disappear when the monster goes off-map since it's saved as a spawn point, which doesn't contain the monster instance.
2013-06-02 17:49:07 -05:00
Kevin Granade b60b6933c6 Annotate various cuting weapons with their default attack mode. 2013-06-02 17:48:20 -05:00
Kevin Granade 971d5b79c5 Random cleanup of indentation in monster save method. 2013-06-02 16:36:09 -05:00
fnord a55c42808d Option documented 2013-06-02 16:31:54 -05:00
fnord a554eb6b75 advanced inventory: display graffiti label, misc ui shuffling 2013-06-02 16:16:34 -05:00
Quietust 9705ca763e Make zombie hulks a bit more visually distinctive 2013-06-02 13:56:35 -05:00
Philipp Grosenick 4790d40f22 Fixed typo. 2013-06-02 20:22:57 +02:00
fnord 5499eb30af Add 'bundle of 10 plastic bags' + recipe: 6 inches of string and (obviously) 10 bags. 2013-06-02 12:49:48 -05:00
fnord 342bebfd40 look debug menu look derivative: hit g to change a tiles ter_id 2013-06-02 12:40:56 -05:00
RJ Costanzo a643b5a0bf Medical items updated
This is the medical items updated to have some more uses gauzes act like
rags when used, disinfectant is now basically first aid (made a little
rarer).
2013-06-02 13:39:36 -04:00
fnord ab44abd652 advanced inventory secondary sorts by name, so the item list doesn't jump around when moving stuff 2013-06-02 12:36:02 -05:00
fnord ae20a06ce9 Merge branch 'mo_betta_headlights' into opt_circledist-wip 2013-06-02 12:28:45 -05:00
fnord b29e9f6dfc Option added 2013-06-02 11:31:39 -05:00
fnord ea288e8f9a circularize light sources, apply diagonal cost adjustment to npc movement 2013-06-02 08:25:42 -05:00
Philipp Grosenick da975c6b42 Added option to allow/disallow mutation by radiation.
Also some rebalancing and formatting.
2013-06-02 14:37:50 +02:00
Philipp Grosenick f711f996ef Added the remaining specific mutagens.
For now they use very general recipies.
2013-06-02 13:07:42 +02:00
RJ Costanzo ff69111bd2 New medical items
These are a few new medical items. A few Issues, I ment for medical tape
and gauzes to serve as a replacement for duct tape and rags
respectively. Disinfectant currently heals like bandages and doesnt
remove infection. None of these items have spawning thingys for them
yet, if any one could solve these problems I would really be thankful.
2013-06-02 03:02:26 -04:00
Ethan "Soron" Kaminski 155095b32a Fix viewport sizing with SDL-based Linux builds 2013-06-02 17:41:21 +12:00
acidia 989b9f37b6 Added a place holder for HWS basement mission 2013-06-02 00:14:52 -05:00
Ethan "Soron" Kaminski e1512a8825 Filter shift, etc., from getch() in sdlcurse.cpp 2013-06-02 17:05:33 +12:00
acidia 0f44c4ae13 Fixed Basement Level for HWS 2013-06-01 23:52:59 -05:00
acidia 2152f08eae Added Command to Activate Elevator in HWS 2013-06-01 23:51:08 -05:00
acidia 6874ae57b9 Added Command to Activate Elevator in HWS 2013-06-02 00:49:13 -04:00
acidia f8884ef1d2 Added HWS Basement Core 2013-06-01 23:47:43 -05:00
Ethan "Soron" Kaminski e1444d40da Update a few tutorial messages 2013-06-02 16:42:17 +12:00
fnord 45e8e6c391 circular distance pt1: plmove & monmove & rl_dist 2013-06-01 21:48:04 -05:00
acidia 716ec49d32 Added core chamber for Hazardous Waste Sarcophagus basement 2013-06-01 22:41:15 -04:00
acidia f4af0c831f Added hazardous waste sarcophagus basement 2013-06-01 21:38:13 -05:00
acidia 720317931e Added Patriot Mission 4, "Follow Sarcophagus Team" 2013-06-01 21:30:34 -05:00
acidia 323872c503 Added Patriot Mission 4, "Follow Sarcophagus Team" 2013-06-01 22:27:55 -04:00
acidia bdc66f1f7a Added open_sarcophagus for Patriot Mission 4, "Follow Sarcophagus Team" 2013-06-01 22:25:46 -04:00
acidia 0819b2cc67 Added dialogue for Patriot Mission 4, "Follow Sarcophagus Team" 2013-06-01 21:23:04 -05:00
acidia ddf15c3e67 Added sarcophagus_access_code for Patriot 4, "Follow Sarcophagus Team" 2013-06-01 21:19:31 -05:00
Kevin Granade cbed9f4de0 Today's batch of bugfixes and improvements. 2013-06-01 19:33:30 -05:00
Philipp Grosenick e650629cb6 Mutagens that cause mutation only in specific categories.
There are still a lot missing.
2013-06-02 01:25:32 +02:00
RJ Costanzo fd6f5e24ea Arm and Leg Splints
More or less a place holder for when Medical Treatment is expanded.
2013-06-01 17:09:57 -04:00
fnord 0858c1c06a apply_light_ray: trig_brightcalc argument (optional, default false)
apply_light_arc: use light rays with the above option = true
2013-06-01 14:04:01 -05:00
Philipp Grosenick 84b716bb81 Fixed Issue #999, wearing anything over Arm or Leg tentacles. 2013-06-01 20:51:16 +02:00
Octav Sandulescu b4c2a2240c First aid actually is not an antibiotic. 2013-06-01 19:09:26 +01:00
fnord 0d0c1f0303 Remove old code, set defaults to original "best looking" 2013-06-01 12:56:00 -05:00
fnord 382f779114 Merge remote branch 'origin/master' into mo_betta_headlights 2013-06-01 12:55:08 -05:00
Philipp Grosenick 336fd7ff39 Added more severe consequences of radioactivity.
A very high amount of radioactivity can actually kill you.
2013-06-01 19:13:25 +02:00
Philipp Grosenick cdc6107715 Made mutation categories actually matter.
The primary mutation category now has significant influence. Traits from
other categories have a high chance of being removed. It is now very
difficult to end up with every single trait in the entire game.
2013-06-01 17:57:10 +02:00
Octav Sandulescu e4b1dba228 Make the awesome version string work on Windows (when cross-compiling) 2013-06-01 14:03:18 +01:00
origamiwolf dbc97fb205 Materials refactoring 2013-06-01 20:44:17 +08:00
fnord 5eaebe59d2 Fixed erronious "destination area full" 2013-06-01 07:17:21 -05:00
Octav Sandulescu 8abd247968 These were needed for cross-compile.
It's possible they'd also be needed for a native compile, but someone else will have to test that.
2013-06-01 12:59:38 +01:00
Fergus Dall b8b9b1d8e2 Set known_down on ot_slimepit_down, and unset it on ot_slimepit 2013-06-01 20:26:04 +09:30
Fergus Dall 0df23b1b25 Stop ot_slimepit_down from appearing on the lowest z-level 2013-06-01 20:24:07 +09:30
Fergus Dall 089cb1582f Make surface slime pits ot_slimepit_down, as was presumably intended originally 2013-06-01 20:23:06 +09:30
Ethan "Soron" Kaminski 1259f07dbb Let the player see recent messages on death
Closes #1303.
2013-06-01 17:35:04 +12:00
acidia cb2a8e250d Added reference for kill_count 2013-06-01 00:26:50 -05:00
acidia 3f928b8be6 Added functions needed to reference kill counts for missions 2013-06-01 00:24:37 -05:00
acidia 690a76bcde Added Deputy Badge Spawn 2013-06-01 00:16:07 -05:00
acidia 691954f517 Added Vigilante Mission 3, "Find Deputy Badge" 2013-06-01 00:03:56 -05:00
acidia 0a9a69eb92 Added Vigilante Mission 3, "Find Deputy Badge" 2013-06-01 00:59:56 -04:00
Ethan "Soron" Kaminski d1cfc04f51 Fix components for fur blanket and fur sleeping bag
Closes #1271.
2013-06-01 16:59:42 +12:00
acidia 553acf35ca Added deposit_box for Vigilante Mission 2, "Retrieve Deposit Box" 2013-05-31 23:57:08 -05:00
acidia 41ba156fe4 Added Vigilante Mission 3, "Find Deputy Badge" 2013-05-31 23:55:58 -05:00
acidia 8283f207dc Added badge_deputy 2013-06-01 00:10:47 -04:00
acidia b7bacb74f7 Added place_deposit_box for Vigilante Mission 2, "Retrieve Deposit Box" 2013-05-31 22:58:09 -05:00
acidia 9628eb5902 Fixing Typos 2013-05-31 22:53:19 -05:00
acidia 7f758eb8c7 Added Vigilante Mission 2, "Retrieve Deposit Box" 2013-05-31 23:17:40 -04:00
acidia 9ab367b32d Added dialogue for Vigilante Mission 2, "Retrieve Safe Box" 2013-05-31 22:12:23 -05:00
acidia cb498936a1 Adding Safe Deposit Box for Vigilante Mission 2, "Retrieve Deposit Box" 2013-05-31 21:55:45 -05:00
acidia b26f0c3b53 Added place_priest_diary for Martyr Mission 2, "Recover Priest's Diary" 2013-05-31 22:24:21 -04:00
acidia 8bedbd1406 Fixed Small Typo 2013-05-31 22:15:56 -04:00
acidia a5ef4ff627 Fixed Small Typo 2013-05-31 21:14:58 -05:00
acidia 397deb2b2a Added Priest's Diary for Martyr Mission 2, "Recover Priest's Diary" 2013-05-31 20:48:48 -05:00
acidia ff35d368b3 Added Martyr Mission 2, "Recover Priest's Diary" 2013-05-31 20:44:00 -05:00
acidia e0a4cfd0a5 Added Martyr Mission 2, "Recover Priest's Diary" Dialogue 2013-05-31 20:41:03 -05:00
acidia c1c44af54d Added Martyr Mission 2, "Recover Priest's Diary" 2013-05-31 20:39:06 -05:00
Ethan "Soron" Kaminski f4166a796c Fix Windows cross-compilation from Linux 2013-06-01 13:35:00 +12:00
acidia c178b7f81e Added Kill Horde Master Mission Dialogue 2013-05-31 21:27:29 -04:00
acidia 6496b6b417 Added Kill Horde Master Mission 2013-05-31 20:23:58 -05:00
acidia 5d3067c98f Added Kill Horde Master Mission Start 2013-05-31 21:22:09 -04:00
acidia 50fe2024ec Added Kill Horde Master Mission 2013-05-31 20:19:05 -05:00
Ethan "Soron" Kaminski c84b0fcba7 Make the SDL version compatible with Linux, etc. 2013-06-01 12:23:28 +12:00
acidia 2c096cff92 Added the values needed to make "kill x of monster y" missions 2013-05-31 19:55:24 -04:00
acidia 540419ac5f adding demon slayer mission 2 def 2013-05-31 19:48:30 -04:00
acidia 42f7f3863e Added Zombie Sweep Mission Start Command 2013-05-31 18:45:07 -05:00
acidia 922c242c00 Added demon slayer mission 2 dialogue and numerous fixes 2013-05-31 18:43:07 -05:00
Ethan "Soron" Kaminski 6846b798ba SDL-based ASCII/pseudo-curses version by utunnels (forum user) 2013-06-01 11:27:12 +12:00
Ethan "Soron" Kaminski 36e02742b1 Copy catacurse.cpp to sdlcurse.cpp for history purposes 2013-06-01 11:24:17 +12:00
Kevin Granade e47e711cfa Merge string handling bugfixes. 2013-05-31 17:10:31 -05:00
Kevin Granade b57def4763 Merge notification that contents of containers aren't visible. 2013-05-31 17:05:55 -05:00
Kevin Granade e7d2913f33 Merge pull request #1302 from ethankaminski/delwin-adding-1
Stop some newwin memory leaks by adding delwin calls
2013-05-31 14:54:39 -07:00
Quietust f20118fed9 Fix recipe parsing - in MSVC, catajson.as_string().c_str() becomes invalid too soon 2013-05-31 10:37:38 -05:00
fnord 4bbf660067 Remove deprecated debugging vars, luminance multiplier 4=>3 2013-05-31 06:12:32 -05:00
atomicdryad ce5a1b4521 Merge pull request #3 from kevingranade/light_artifacts
Remove possibly premature optimization that is causing artifacts in light raytracing.
2013-05-31 04:08:01 -07:00
Fergus Dall afede12c04 Show a message when looking at container tiles 2013-05-31 19:13:04 +09:30
Ethan "Soron" Kaminski b03dff09b4 Stop some newwin memory leaks by adding delwin calls 2013-05-31 19:27:27 +12:00
Ethan "Soron" Kaminski 49217b652e Fix a chatbin save bug that got introduced 2013-05-31 19:01:34 +12:00
Ethan "Soron" Kaminski b0afac60ad Fix saving of null strings in player_activity 2013-05-31 18:41:24 +12:00
Ethan "Soron" Kaminski bee9f9c7c2 Add a debugmsg about null itypes in a constructor 2013-05-31 18:24:40 +12:00
Ethan "Soron" Kaminski 171f312097 Remove the old method of handling skills 2013-05-31 18:16:46 +12:00
Kevin Granade 9944213436 Remove turn cost for adjusting cruise control speed. 2013-05-30 22:01:12 -05:00
Kevin Granade 919b0c316c Remove possibly premature optimization that is causing artifacts in light raytracing. 2013-05-30 21:35:45 -05:00
Kevin Granade 1d1c1311a7 Merge mission and mapgen enhancements. 2013-05-30 20:02:44 -05:00
Kevin Granade fd30c6b272 Merge conforming monster density to nearby building type. 2013-05-30 19:59:46 -05:00
acidia 5ddceb2116 Fix PT. 2 2013-05-30 19:27:11 -05:00
acidia 27c494d808 MGOAL_GO_TO_TYPE Fix PT. 1 2013-05-30 19:23:21 -05:00
Kevin Granade 7d771106a1 Merge hands in pockets warmth boost. 2013-05-30 19:16:43 -05:00
Shoes01 3a2a94f637 Moved power_armor into in_climate_control for warmth control, also formatted stuff 2013-05-30 19:02:58 -07:00
Shoes01 2589f6b642 Merge branch 'master' of github.com:Shoes01/Cataclysm-DDA into pockets 2013-05-30 18:20:08 -07:00
Fergus Dall 6489762fa6 Move monster spawn radius to a #define 2013-05-31 08:52:18 +09:30
Kevin Granade 569c17eb59 Merge a ridiculously huge pile of bugfixes. 2013-05-30 18:12:07 -05:00
fnord b47167bffa Remove redundant redundancy. 2013-05-30 16:16:24 -05:00
fnord 117eb69d00 Advanced inv remembers areas and scroll position (until player moves).
Move trivial UI specific data to uistate struct.
2013-05-30 16:08:58 -05:00
fnord ca83dfed82 Segv fix 2013-05-30 15:56:53 -05:00
Quietust 90e6bdb34e Fix advanced_inv in MSVC - store item pointers instead of copying them 2013-05-30 13:18:19 -05:00
Quietust 9895370291 Add snprintf wrapper to game.cpp as well; also properly handle error condition 2013-05-30 11:27:26 -05:00
Julian Snitow b28ea74582 Fix advanced inventory 'East' square.
An error in commit 2eb0ad444e transposed
the x,y coordinates on the 'East' square in the advanced inventory
interface, making it a second 'South' square instead.
2013-05-30 07:11:18 -07:00
Fergus Dall e3f9ce548d Make burnt zombie corpses take longer, and be less likely, to revive
See #1144
2013-05-30 21:57:54 +09:30
Fergus Dall 93c6927326 Stop warning the player about monsters that are no longer in LOS
Fixes #664
2013-05-30 21:32:31 +09:30
Fergus Dall 41f0d9e2d7 Fixed unused variable warning 2013-05-30 21:05:25 +09:30
Fergus Dall f179a72a10 Make monster density depend on nearby buildings 2013-05-30 21:04:28 +09:30
Fergus Dall 6442e69bb5 Add options to controll autosave frequency
Closes #677
2013-05-30 20:14:03 +09:30
fnord b0769ed94b Car headlights cumulative. apply_light_arc: Optional 4th beam-width argument, cleanup, more experiments 2013-05-30 05:32:50 -05:00
Fergus Dall 0e7d333f88 Make cooked food's rotteness an average of the rotteness of the components
Fixes #1229
2013-05-30 19:29:14 +09:30
Ethan "Soron" Kaminski a7499b4002 Moving vehicle code also applies for reversing vehicles 2013-05-30 19:24:18 +12:00
D Lue Choy 3de8d970af Examine vehicle controls without boarding.
Allows 'vehicles' to be used as lighting and turret platforms without a
seat.
Also in the future could be used with cruise control to add
car-missiles?

Signed-off-by: D Lue Choy <dluechoy@>
2013-05-30 02:21:49 -04:00
Shoes01 4e65569bb0 Added description to items with POCKETS flag 2013-05-29 22:25:32 -07:00
Shoes01 be94cf3714 Warmth values in @ menu looks at warmth function, not encumb function 2013-05-29 22:25:32 -07:00
Shoes01 87c33c7616 Pockets can now be used, and power armor warmth calculated in warmth function 2013-05-29 22:25:32 -07:00
Shoes01 a449ab6310 Added POCKETS flags to certain items 2013-05-29 22:25:32 -07:00
Tommy 492054b243 Display the correct inventory letter when picking up stacking items. 2013-05-30 16:20:43 +12:00
Herbert Jones 040ff92099 Signing off on my patches to the code.
This covers all my patches to the Cataclysm/Cataclysm-DDA codebase.

Signed-off-by: Herbert Jones <jones.herbert@gmail.com>
2013-05-29 20:56:17 -05:00
fnord 6557b4e7f5 apply_light_arc: now using fancy math(tm) && adjustable beam width. Also, visual artifacts (this is a feature>.>) 2013-05-29 18:29:12 -05:00
acidia 445b576a58 Added t_gates_control_concrete 2013-05-28 21:26:44 -04:00
acidia 1ab05985ed Added t_gates_control_concrete 2013-05-28 21:24:46 -04:00
acidia c170f7bc6a Added Concrete Gate Control to fix bug in utility room for labs 2013-05-28 20:22:58 -05:00
acidia 56c820fb49 Removed testing values from new missions 2013-05-27 21:34:44 -05:00
acidia 66999b48f5 Rewrite Farms to allow for easier manipulate to turn into base 2013-05-27 19:46:36 -05:00
acidia c892792209 Added support for MGOAL_GO_TO_TYPE 2013-05-27 19:40:05 -05:00
acidia 2d70b5c477 Added support for DESTINATION, MGOAL_GO_TO_TYPE 2013-05-27 19:38:29 -05:00
acidia f7af08ba42 Added support for DESTINATION and filling in humanitarian 2 and 3 2013-05-27 19:35:35 -05:00
acidia 6da3697f9f Added humanitarian missions 2 and 3 and DESTINATION() 2013-05-27 19:29:42 -05:00
acidia 0e93b1b696 Added dialogue for humanitarian missions 2 and 3 2013-05-27 20:26:53 -04:00
acidia dd444125ab Added JOIN for NPC's joining your party for the mission 2013-05-27 19:24:55 -05:00
acidia 5d5a1d0960 Added NPC leaving at the end of mission 2013-05-27 19:22:43 -05:00
Herbert Jones e066f83cda Added license. 2013-05-14 09:13:47 -05:00
291 changed files with 590056 additions and 47146 deletions
+27 -2
View File
@@ -1,14 +1,39 @@
cataclysm
cataclysm-tiles
data/*.template
save/
graveyard/
memorial/
obj/
debug.log
logg.txt
bindist/
cataclysmdda-*
objwin/
cataclysm.exe
version.h
Cataclysm.exe
CataclysmWin.cscope_file_list
CataclysmWin.depend
CataclysmWin.layout
*.exe
*.dll
# Visual Studio files
*.suo
*.sdf
*.pdb
*.ilk
Release*/
Debug*/
*.opensdf
# Temporary and backup files
*~
\#*
*.bak
*.cbTemp
*.swp
gmon.out
# System Files
Thumbs.db
.DS_Store
+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
-20
View File
@@ -1,20 +0,0 @@
Instructions for compiling on a Debian-based system. The package names here are for Ubuntu 12.10
Dependencies: libncurses
# Native build on current platform
sudo apt-get install libncurses5-dev
make
# Cross-compile to linux 32-bit from linux 64-bit
sudo apt-get install libc6-dev-i386 lib32ncurses5-dev lib32stdc++-dev g++-multilib
make NATIVE=linux32
# Cross-compile for Windows
sudo apt-get install autoconf bison flex cmake git automake intltool libtool scons yasm
mkdir -p ~/src
git clone -b stable https://github.com/mxe/mxe.git ~/src
cd ~/src/mxe
make gcc
PATH=${PATH}:~/src/mxe/usr/bin
make CROSS=win32
+84
View File
@@ -0,0 +1,84 @@
Instructions for compiling on a Debian-based system. The package names here are
valid for Ubuntu 12.10 and may or may not work on your system.
Building instructions, below, always assume you are running them from the
Cataclysm:DDA source directory.
## Linux (native) ncurses builds ##
Dependencies:
* ncurses
* build essentials
```
sudo apt-get install libncurses5-dev build-essential
```
### Building ###
```
make
```
## Cross-compiling to linux 32-bit from linux 64-bit ##
Dependencies:
* 32-bit toolchain
* 32-bit ncurses
```
sudo apt-get install libc6-dev-i386 lib32stdc++-dev g++-multilib lib32ncurses5-dev
```
### Building ###
```
make NATIVE=linux32
```
## Cross-compile to Windows from Linux ##
Dependencies:
* [mxe](http://mxe.cc)
```
sudo apt-get install autoconf bison flex cmake git automake intltool libtool scons yasm
mkdir -p ~/src/mxe
git clone -b stable https://github.com/mxe/mxe.git ~/src/mxe
cd ~/src/mxe
make gcc glib
```
### Building ###
```
PATH="${PATH}:~/src/mxe/usr/bin"
make CROSS=i686-pc-mingw32-
```
## Linux (native) SDL builds ##
Dependencies:
* SDL
* SDL_ttf
* build essentials
```
sudo apt-get install libsdl1.2-dev libsdl-ttf2.0-dev build-essential
```
### Building ###
```
make TILES=1
```
## Cross-compile to Windows SDL from Linux ##
Dependencies:
* [mxe](http://mxe.cc)
```
sudo apt-get install autoconf bison flex cmake git automake intltool libtool scons yasm
mkdir -p ~/src/mxe
git clone -b stable https://github.com/mxe/mxe.git ~/src/mxe
cd ~/src/mxe
make sdl sdl_ttf
```
### Building ###
```
PATH="${PATH}:~/src/mxe/usr/bin"
make TILES=1 CROSS=i686-pc-mingw32-
```
+83
View File
@@ -0,0 +1,83 @@
# Building Cataclysm-DDA on Mac OS X
Tested with OS X 10.8.4, Xcode 4.6.2.
I haven't played it extensively but it builds and runs.
Not sure if it compiles with older OS/XCode versions.
This worked for me, your mileage may vary.
### SDL
SDL, SDL\_image, and SDL\_ttf are needed for the tiles build.
[**SDL framework**](http://www.libsdl.org/download-1.2.php)
http://www.libsdl.org/release/SDL-1.2.15.dmg
[**SDL\_image framework**](http://www.libsdl.org/projects/SDL_image/)
http://www.libsdl.org/projects/SDL_image/release/SDL_image-1.2.12.dmg
[**SDL\_ttf framework**](http://www.libsdl.org/projects/SDL_ttf/)
http://www.libsdl.org/projects/SDL_ttf/release/SDL_ttf-2.0.11.dmg
Copy `SDL.framework`, `SDL_image.framework`, and `SDL_ttf.framework`
to `/Library/Frameworks` or `/Users/name/Library/Frameworks`.
Alternately, shared libraries (libsdl, libsdl\_image, libsdl\_ttf) can be used
instead of frameworks. Install with a package manager (Fink, MacPorts,
Homebrew, pkgsrc) or build and install from source.
### ncurses, gettext
ncurses and gettext are needed for localization.
Install with a package manager, or build from source and install.
* ncurses needs wide character support enabled.
## Build
From the Cataclysm-DDA source folder:
The easiest way to try it out is the console version without localization:
$ make NATIVE=osx LOCALIZED=0 OSX_MIN=10.6
For localization support and/or to use libsdl (not frameworks):
$ export CXXFLAGS="-I/path/to/include" LDFLAGS="-L/path/to/lib"
This adds paths to find shared libraries outside of /usr and /usr/local.
Multiple `-I/...` or `-L/...` paths can be specified.
### Example builds:
Build a release version with SDL graphical tiles:
$ make FRAMEWORK=1 NATIVE=osx OSX_MIN=10.6 RELEASE=1 TILES=1 LOCALIZE=0
Build a debug version with SDL ASCII:
$ make FRAMEWORK=1 NATIVE=osx OSX_MIN=10.6 SDL=1 LOCALIZE=0
## Run
$ ./cataclysm
or
$ ./cataclysm-tiles
### Make Options
`FRAMEWORK=1` use frameworks; omit to use libsdl, libsdl\_image, libsdl\_ttf.
`LOCALIZED=0` disable localization; enabled by default (requires gettext and ncurses with wide character support).
`NATIVE=osx` build for OS X.
`OSX_MIN=version` set `-mmacosx-version-min=` (for OS X > 10.5 set it to 10.6 or higher); omit for 10.5.
`RELEASE=1` build an optimized 'release' version.
`SDL=1` build the SDL version with ASCII characters.
`TILES=1` build the SDL version with graphical tiles.
+59 -6
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
@@ -39,7 +88,7 @@ For example, from vi, set marks a and b around the block, then:
$ cd Cataclysm-DDA
# Changes the active directory in the prompt to the newly cloned "Cataclysm-DDA" directory
$ git remote add -f upstream https://github.com/TheDarklingWolf/Cataclysm-DDA.git
$ git remote add -f upstream https://github.com/CleverRaven/Cataclysm-DDA.git
# Assigns the original repository to a remote called "upstream"
#### Update your `master` branch
@@ -76,6 +125,10 @@ For example, from vi, set marks a and b around the block, then:
* Note: any new commits to the `new_feature` branch on GitHub will automatically be included in the pull request, so make sure to only commit related changes to the same branch.
## Pull Request Notes
* Mark pull requests that are still being worked on with [WIP] at the end of the title
* When a pull request is ready to be reviewed remove the [WIP]
* Mark pull requests that need commenting/testing by others with [CR]
## Advanced Techniques
@@ -113,7 +166,7 @@ You can also set the tracking information at the same time as creating the branc
* Note: Although this makes it easier to pull from `upstream/master`, it doesn't change anything with regards to pushing. `git push` fails because you don't have permission to push to `upstream/master`.
$ git push
error: The requested URL returned error: 403 while accessing https://github.com/TheDarklingWolf/Cataclysm-DDA.git
error: The requested URL returned error: 403 while accessing https://github.com/CleverRaven/Cataclysm-DDA.git
fatal: HTTP request failed
$ git push origin
....
@@ -128,7 +181,7 @@ You can also set the tracking information at the same time as creating the branc
If `git pull --ff-only` shows an error, it means that you've committed directly to your local `master` branch. To fix this, we create a new branch with these commits, find the point at which we diverged from `upstream/master`, and then reset `master` to that point.
$ git pull --ff-only upstream master
From https://github.com/TheDarklingWolf/Cataclysm-DDA
From https://github.com/CleverRaven/Cataclysm-DDA
* branch master -> FETCH_HEAD
fatal: Not possible to fast-forward, aborting.
$ git branch new_branch master # mark the current commit with a tmp branch
Executable → Regular
+149 -6
View File
@@ -13,20 +13,134 @@
<Option compiler="gcc" />
<Compiler>
<Add option="-Os" />
<Add option="-O2" />
</Compiler>
</Target>
<Target title="Release - Localized">
<Option output="Cataclysm" prefix_auto="1" extension_auto="1" />
<Option object_output="obj/Release/" />
<Option type="0" />
<Option compiler="gcc" />
<Compiler>
<Add option="-Os" />
<Add option="-O2" />
<Add option="-DLOCALIZE" />
</Compiler>
<Linker>
<Add option="-Wl,-stack,12000000,-subsystem,windows" />
<Add option="-static -lgdi32" />
<Add library="intl" />
<Add library="iconv" />
</Linker>
</Target>
<Target title="Release -SDL">
<Option output="Cataclysm" prefix_auto="1" extension_auto="1" />
<Option object_output="obj/Release/" />
<Option type="0" />
<Option compiler="gcc" />
<Compiler>
<Add option="-Os" />
<Add option="-O2" />
<Add option="-DTILES" />
</Compiler>
<Linker>
<Add library="libSDL.dll" />
<Add library="SDL_ttf" />
</Linker>
</Target>
<Target title="Release -SDL -Localized">
<Option output="Cataclysm" prefix_auto="1" extension_auto="1" />
<Option object_output="obj/Release/" />
<Option type="0" />
<Option compiler="gcc" />
<Compiler>
<Add option="-Os" />
<Add option="-O2" />
<Add option="-DLOCALIZE" />
<Add option="-DTILES" />
</Compiler>
<Linker>
<Add library="intl" />
<Add library="iconv" />
<Add library="libSDL.dll" />
<Add library="SDL_ttf" />
</Linker>
</Target>
<Target title="Debug">
<Option output="Cataclysm" prefix_auto="1" extension_auto="1" />
<Option object_output="obj/Debug/" />
<Option type="0" />
<Option compiler="gcc" />
<Compiler>
<Add option="-pg" />
<Add option="-g" />
</Compiler>
<Linker>
<Add option="-pg -lgmon" />
</Linker>
</Target>
<Target title="Debug - Localized">
<Option output="Cataclysm" prefix_auto="1" extension_auto="1" />
<Option object_output="obj/Debug/" />
<Option type="0" />
<Option compiler="gcc" />
<Compiler>
<Add option="-pg" />
<Add option="-g" />
<Add option="-DLOCALIZE" />
</Compiler>
<Linker>
<Add option="-pg -lgmon" />
<Add library="intl" />
<Add library="iconv" />
</Linker>
</Target>
<Target title="Release - Tile Support">
<Option output="Cataclysm-Tiles" prefix_auto="1" extension_auto="1" />
<Option object_output="obj/TilesRelease/" />
<Option type="0" />
<Option compiler="gcc" />
<Compiler>
<Add option="-Os" />
<Add option="-O2" />
<Add option="-pg" />
<Add option="-DSDLTILES" />
<Add directory="3rdparty/include/SDL" />
</Compiler>
<Linker>
<Add option="-pg -lgmon" />
<Add library="3rdparty\lib\libSDL.dll.a" />
<Add library="3rdparty\lib\libSDLmain.a" />
<Add library="3rdparty\lib\x86\SDL_image.lib" />
<Add library="3rdparty\lib\x86\SDL_ttf.lib" />
<Add directory="3rdparty/lib" />
<Add directory="3rdparty/lib/x86" />
</Linker>
</Target>
</Build>
<Compiler>
<Add option="-Wextra" />
<Add option="-Wall" />
<Add option="-Wno-switch -Wno-sign-compare -Wno-missing-braces -Wno-unused-parameter" />
</Compiler>
<Linker>
<Add option="-Wl,-stack,12000000,-subsystem,windows" />
<Add option="-static" />
<Add library="gdi32" />
<Add library="winmm" />
</Linker>
<Unit filename="SDLMain.h" />
<Unit filename="action.cpp" />
<Unit filename="action.h" />
<Unit filename="addiction.cpp" />
<Unit filename="addiction.h" />
<Unit filename="advanced_inv.cpp" />
<Unit filename="advanced_inv.h" />
<Unit filename="animation_curses.cpp" />
<Unit filename="animation_tiles.cpp" />
<Unit filename="artifact.cpp" />
<Unit filename="artifact.h" />
<Unit filename="artifactdata.h" />
<Unit filename="auto_pickup.cpp" />
<Unit filename="auto_pickup.h" />
<Unit filename="basecamp.cpp" />
<Unit filename="basecamp.h" />
<Unit filename="bionics.cpp" />
@@ -37,7 +151,10 @@
<Unit filename="building_generation.h" />
<Unit filename="calendar.cpp" />
<Unit filename="calendar.h" />
<Unit filename="catacurse.cpp" />
<Unit filename="cata_tiles.cpp" />
<Unit filename="cata_tiles.h" />
<Unit filename="catacharset.cpp" />
<Unit filename="catacharset.h" />
<Unit filename="catacurse.h" />
<Unit filename="catajson.cpp" />
<Unit filename="catajson.h" />
@@ -50,23 +167,28 @@
<Unit filename="crafting.cpp" />
<Unit filename="crafting.h" />
<Unit filename="cursesdef.h" />
<Unit filename="cursesport.cpp" />
<Unit filename="debug.cpp" />
<Unit filename="debug.h" />
<Unit filename="defense.cpp" />
<Unit filename="dialogue.h" />
<Unit filename="disease.cpp" />
<Unit filename="disease.h" />
<Unit filename="editmap.cpp" />
<Unit filename="editmap.h" />
<Unit filename="enums.h" />
<Unit filename="event.cpp" />
<Unit filename="event.h" />
<Unit filename="facdata.h" />
<Unit filename="faction.cpp" />
<Unit filename="faction.h" />
<Unit filename="field.cpp" />
<Unit filename="field.h" />
<Unit filename="game.cpp" />
<Unit filename="game.h" />
<Unit filename="gamemode.cpp" />
<Unit filename="gamemode.h" />
<Unit filename="gamesave.cpp" />
<Unit filename="get_version.h" />
<Unit filename="graffiti.cpp" />
<Unit filename="graffiti.h" />
<Unit filename="help.cpp" />
@@ -89,6 +211,14 @@
<Unit filename="itypedef.cpp" />
<Unit filename="iuse.cpp" />
<Unit filename="iuse.h" />
<Unit filename="iuse_software.cpp" />
<Unit filename="iuse_software.h" />
<Unit filename="iuse_software_kitten.cpp" />
<Unit filename="iuse_software_kitten.h" />
<Unit filename="iuse_software_snake.cpp" />
<Unit filename="iuse_software_snake.h" />
<Unit filename="iuse_software_sokoban.cpp" />
<Unit filename="iuse_software_sokoban.h" />
<Unit filename="keypress.cpp" />
<Unit filename="keypress.h" />
<Unit filename="lightmap.cpp" />
@@ -107,9 +237,8 @@
<Unit filename="mapgenformat.cpp" />
<Unit filename="mapgenformat.h" />
<Unit filename="mapitems.h" />
<Unit filename="mapitemsdef.cpp" />
<Unit filename="material.h" />
<Unit filename="material.cpp" />
<Unit filename="material.h" />
<Unit filename="melee.cpp" />
<Unit filename="mission.cpp" />
<Unit filename="mission.h" />
@@ -151,6 +280,8 @@
<Unit filename="overmap.h" />
<Unit filename="overmapbuffer.cpp" />
<Unit filename="overmapbuffer.h" />
<Unit filename="picofunc.cpp" />
<Unit filename="picofunc.h" />
<Unit filename="picojson.h" />
<Unit filename="player.cpp" />
<Unit filename="player.h" />
@@ -165,6 +296,8 @@
</Unit>
<Unit filename="rng.cpp" />
<Unit filename="rng.h" />
<Unit filename="sdlcurse.cpp" />
<Unit filename="sdltiles.cpp" />
<Unit filename="settlement.cpp" />
<Unit filename="settlement.h" />
<Unit filename="setvector.cpp" />
@@ -173,13 +306,18 @@
<Unit filename="skill.h" />
<Unit filename="text_snippets.cpp" />
<Unit filename="text_snippets.h" />
<Unit filename="tile_id_data.h" />
<Unit filename="tileray.cpp" />
<Unit filename="tileray.h" />
<Unit filename="translations.h" />
<Unit filename="trap.h" />
<Unit filename="trapdef.cpp" />
<Unit filename="trapfunc.cpp" />
<Unit filename="tutorial.cpp" />
<Unit filename="tutorial.h" />
<Unit filename="ui.cpp" />
<Unit filename="ui.h" />
<Unit filename="uistate.h" />
<Unit filename="veh_interact.cpp" />
<Unit filename="veh_interact.h" />
<Unit filename="veh_type.h" />
@@ -188,9 +326,14 @@
<Unit filename="vehicle.h" />
<Unit filename="version.cpp" />
<Unit filename="version.h" />
<Unit filename="wcwidth.c">
<Option compilerVar="CC" />
</Unit>
<Unit filename="wdirent.h" />
<Unit filename="weather.cpp" />
<Unit filename="weather.h" />
<Unit filename="weather_data.cpp" />
<Unit filename="wincurse.cpp" />
<Unit filename="wish.cpp" />
<Extensions>
<code_completion />
-120
View File
@@ -1,120 +0,0 @@
1.1 Adding an item
1) Edit itype.h. Change the enum item_id and insert a unique identifier for
your new item type. Be sure to put it among similar items.
2) Edit itypedef.cpp. Macros are used for all item types, and they are pretty
self-explanatory. Be ABSOLUTELY sure that you insert the macro at the same
point in the list as you inserted the identifier in item_id!
3) Your item type is now valid, but won't be spawned. If you want it to be
spawned among similar items, edit mapitemsdef.cpp. Find the appropriate
array(s), and insert the identifier for your item (e.g. itm_aspirin). Make
sure it comes in before the NULL at the end of the list.
5) Some items, like tools or food, also take an iuse::function reference.
Edit iuse.h and include the function in the class declaration; then edit
iuse.cpp and define your function. Functions may be shared among different
item types.
6) If you do not want NPCs to carry the item, add it to the list called
mapitems[mi_trader_avoid] in mapitemsdef.cpp.
1.2 Adding a monster
1) Edit mtype.h. Change the enum mon_id and insert a unique identifier for
your new monster type. Be sure to put it among similar monsters.
2) Edit montypedef.cpp. A macro is used for monsters and it is pretty
straightforward (Any of this ring a bell?). Be ABSOLUTELY sure that you
insert the macro at the same point in the list as your inserted the
identifier in mon_id!
3) Your monster type is now valid, but won't be spawned. If you want it to be
spawned among similar monsters, edit mongroupdef.cpp. Find the appropriate
array, and insert the identifier for your monster (e.g, mon_zombie). Make
sure it comes in before the NULL at the end of the list.
4) If you want your monster to drop items, edit monitemsdef.cpp. Make a new
array for your monster type with all the map item groups it may carry, and a
chance value for each.
5) Your monster may have a special attack, a monattack::function reference.
Edit monattack.h and include the function in the class definition; then
edit monattack.cpp and define your function. Functions may be shared among
different monster types. Be aware that the function should contain a
statement that the monster uses to decide whether or not to use the attack,
and if they do, should reset the monster's attack timer.
7) Just like attacks, some monsters may have a special function called when
they die. This works the same as attacks, but the relevent files are
mondeath.h and mondeath.cpp.
1.3 Adding structures to the map
Most "regular" buildings are spawned in cities (large clusters of buildings which are located rather close to each other).
In file omdata.h in the enum oter_id structure define names (code identifiers) for your building.
If you want your building to be displayed at overmap in different orientations, you should add 4 identifiers for each orientation (south, east, west and north correspondingly).
In the same file in structure const oter_t oterlist[num_ter_types]
we should define how these buildings will be displayed, how much they obscure vision and which extras set they have. For example:
{"mil. surplus", '^', c_white, 5, build_extras, false, false},
{"mil. surplus", '>', c_white, 5, build_extras, false, false},
{"mil. surplus", 'v', c_white, 5, build_extras, false, false},
{"mil. surplus", '<', c_white, 5, build_extras, false, false}
Comments at the beginning of this structure are rather useful.
In the file mapgen.cpp find the subroutine called draw_map(...);
there you should find a huge variant operator ("switch")
where you should put your code defining the new building by adding new case-statement.
This should be mentioned that most buildings are built on the square SEEX*2 x SEEY*2 tiles.
If you want your building to be spawned not only in city limits
you should refer to structures in file omdata.h
(starting from the line #define OMSPEC_FREQ 7).
These structures are commented in source code. Add new identifier in enum omspec_id structure before
NUM_OMSPECS and then add a record in const overmap_special overmap_specials[NUM_OMSPECS] array. For example:
{ot_toxic_dump, 0, 5, 15, -1, mcat_null, 0, 0, 0, 0, &omspec_place::wilderness,0}
The comments given in source code to structure struct overmap_special explains the meaning of these constants in the example above.
1.4 Adding/editing armour and how armour protection is calculated
1) Edit armor.json and add your armor item near similar types.
2) The fields are:
"type" : "ARMOR", // this must be ARMOR
"id" : "socks", // the identifier used by the game. Must be one continuous word, use underscores if necessary
"name" : "socks", // the name appearing in the examine box. Can be more than one word separated by spaces
"weight" : 1, // weight of armour
"color" : "blue", // ascii character colour
"covers" : ["FEET"], // where it covers. Possible options are TORSO, HEAD, EYES, MOUTH, ARMS, HANDS, LEGS, FEET
"to_hit" : 0, // bonus if using it as a melee weapon (whatever for?)
"storage" : 0, // how many volume storage slots it adds
"symbol" : "[", // ascii character
"description" : "Socks. Put 'em on your feet.", // description of armour
"price" : 100, // price of armour, used when bartering with NPCs
"material" : ["COTTON", "NULL"], // material types. See materials.json for possible options
"volume" : 1, // volume occupied
"cutting" : 0, // cutting damage caused by using it as a melee weapon
"warmth" : 10, // how much warmth clothing provides
"phase" : "solid", // what phase it is
"enviromental_protection" : 0, // how much environmental protection it affords
"rarity" : 70, // determines how often it spawns
"encumberance" : 0, // base encumbrance (unfitted value)
"bashing" : -5, // bashing damage caused by using it as a melee weapon
"flags" : ["VARSIZE"] // used to indicate clothing type which can be fitted. Leave out the flags field entirely if clothing cannot be fitted
"coverage" : 80, // what percentage of body part
"material_thickness" : 1 // thickness of material, in millimetre units (approximately). Generally ranges between 1 - 5, more unusual armour types go up to 10 or more
3) When the player is hit at a specific body part, armour coverage determines whether the armour is hit, or an uncovered part of the player is hit (roll 1d100 against coverage)
4) If the above roll fails (ie roll value is above coverage), then the armour does not absorb any damage from the blow, neither does it become damaged
5) If the above roll succeeds, the armour is hit, possibly absorbing some damage and possibly getting damaged in the process
6) The above steps are repeated for each layer of armour on the body part
7) Armour protects against bash and cut damage. These are determined by multiplying the armour thickness by the material bash/cut resistance factor respectively, given in materials.json
8) If the armour is made from 2 materials types, then it takes a weighted average of the primary material (66%) and secondary material (33%).
9) Materials resistance factors are given relative to PAPER as a material (this probably needs some fine-tuning for balance).
FAQ
Q: What the heck is up with the map objects?
A: The pertinent map objects are submap, mapbuffer, map, and overmap.
The submap contains the actual map data, in SEEXxSEEY chunks.
Vehicles and Spawns are stored in vectors because they're relatively sparse.
Submaps live in the single global mapbuffer, MAPBUFFER.
Map encapsulates the area around the player that is currently active.
It contains an array of MAPSIZE * MAPSIZE submap pointers called grid.
This is a 2D array, but is mapped to a 1D array for (questionable) indexing purposes.
When the player moves from one submap to another, map::shift() is called.
It moves the pointers in grid to keep the player centered.
The leading edge of grid is populated by map::load()
If the submap has been visited before, it's loaded from MAPBUFFER
Otherwise a 2x2 chunk of submaps is generated based on the corresponding overmap square type.
An overmap encapsulates the large-scale structure of a map
Such as location and layout of cities, forests, rivers, roads, etc...
There are an arbitrary number of overmaps
Additional overmaps are generated as the player enters new areas.
FAQ
Q: what is the relation of NPCS/Monsters vs maps. How are they stored, where are they stored? Are they stored?
A: All npcs are now stored in the overmap. Active npcs only contain the currently active npcs. There is a difference between npc active npc coordinates, and overmap coordinates. So these will need to be changed when saving the npcs. Or else the npcs will be saved at the wrong location. And yes they are stored.
View File
+154 -21
View File
@@ -20,7 +20,13 @@
# Default
# Release (turn on optimizations)
# make RELEASE=1
# Tiles (uses SDL rather than ncurses)
# make TILES=1
# Disable gettext, on some platforms the dependencies are hard to wrangle.
# make LOCALIZE=0
# Compile localization files for specified languages
# make LANGUAGES="<lang_id_1>[ lang_id_2][ ...]"
# (for example: make LANGUAGES="zh_CN zh_TW" for Chinese)
# comment these to toggle them as one sees fit.
# WARNINGS will spam hundreds of warnings, mostly safe, if turned on
@@ -49,21 +55,29 @@ DEBUG = -g
#DEFINES += -DDEBUG_ENABLE_MAP_GEN
#DEFINES += -DDEBUG_ENABLE_GAME
VERSION = 0.5
VERSION = 0.8
TARGET = cataclysm
TILESTARGET = cataclysm-tiles
W32TILESTARGET = cataclysm-tiles.exe
W32TARGET = cataclysm.exe
BINDIST_DIR = bindist
BUILD_DIR = $(CURDIR)
LOCALIZE = 1
# tiles object directories are because gcc gets confused
# when preprocessor defines change, but the source doesn't
ODIR = obj
ODIRTILES = obj/tiles
W32ODIR = objwin
W32ODIRTILES = objwin/tiles
DDIR = .deps
OS = $(shell uname -o)
CXX = $(CROSS)g++
LD = $(CROSS)g++
RC = $(CROSS)windres
# enable optimizations. slow to build
ifdef RELEASE
@@ -73,11 +87,11 @@ endif
CXXFLAGS += $(WARNINGS) $(DEBUG) $(PROFILE) $(OTHERS) -MMD
BINDIST_EXTRAS = README data cataclysm-launcher
BINDIST_EXTRAS = README.md data
BINDIST = cataclysmdda-$(VERSION).tar.gz
W32BINDIST = cataclysmdda-$(VERSION).zip
BINDIST_CMD = tar -czvf $(BINDIST) $(BINDIST_DIR)
W32BINDIST_CMD = zip -r $(W32BINDIST) $(BINDIST_DIR)
BINDIST_CMD = tar --transform=s@^$(BINDIST_DIR)@cataclysmdda-$(VERSION)@ -czvf $(BINDIST) $(BINDIST_DIR)
W32BINDIST_CMD = cd $(BINDIST_DIR) && zip -r ../$(W32BINDIST) * && cd $(BUILD_DIR)
# is this section even being used anymore?
# SOMEBODY PLEASE CHECK
@@ -97,19 +111,29 @@ endif
# Linux 64-bit
ifeq ($(NATIVE), linux64)
CXXFLAGS += -m64
LDFLAGS += -m64
TARGETSYSTEM=LINUX
else
# Linux 32-bit
ifeq ($(NATIVE), linux32)
CXXFLAGS += -m32
LDFLAGS += -m32
TARGETSYSTEM=LINUX
endif
endif
# OSX
ifeq ($(NATIVE), osx)
CXXFLAGS += -mmacosx-version-min=10.6
OSX_MIN = 10.5
DEFINES += -DMACOSX
CXXFLAGS += -mmacosx-version-min=$(OSX_MIN)
ifeq ($(LOCALIZE), 1)
LDFLAGS += -lintl
endif
TARGETSYSTEM=LINUX
ifneq ($(OS), GNU/Linux)
BINDIST_CMD = tar -s"@^$(BINDIST_DIR)@cataclysmdda-$(VERSION)@" -czvf $(BINDIST) $(BINDIST_DIR)
endif
endif
# Win32 (mingw32?)
@@ -119,30 +143,122 @@ endif
# MXE cross-compile to win32
ifneq (,$(findstring mingw32,$(CROSS)))
DEFINES += -DCROSS_LINUX
TARGETSYSTEM=WINDOWS
endif
# Global settings for Linux targets
ifeq ($(TARGETSYSTEM),LINUX)
LDFLAGS += -lncurses
endif
# Global settings for Windows targets
ifeq ($(TARGETSYSTEM),WINDOWS)
TARGET = $(W32TARGET)
BINDIST = $(W32BINDIST)
BINDIST_CMD = $(W32BINDIST_CMD)
ODIR = $(W32ODIR)
LDFLAGS += -static -lgdi32
LDFLAGS += -static -lgdi32 -lwinmm
ifeq ($(LOCALIZE), 1)
LDFLAGS += -lintl -liconv
endif
W32FLAGS += -Wl,-stack,12000000,-subsystem,windows
RFLAGS = -J rc -O coff
endif
ifdef TILES
SDL = 1
BINDIST_EXTRAS += gfx
endif
ifdef SDL
ifeq ($(NATIVE),osx)
ifdef FRAMEWORK
DEFINES += -DOSX_SDL_FW
OSX_INC = -F/Library/Frameworks \
-F$(HOME)/Library/Frameworks \
-I/Library/Frameworks/SDL.framework/Headers \
-I$(HOME)/Library/Frameworks/SDL.framework/Headers \
-I/Library/Frameworks/SDL_image.framework/Headers \
-I$(HOME)/Library/Frameworks/SDL_image.framework/Headers \
-I/Library/Frameworks/SDL_ttf.framework/Headers \
-I$(HOME)/Library/Frameworks/SDL_ttf.framework/Headers
LDFLAGS += -F/Library/Frameworks \
-F$(HOME)/Library/Frameworks \
-framework SDL -framework SDL_image -framework SDL_ttf -framework Cocoa
CXXFLAGS += $(OSX_INC)
else # libsdl build
DEFINES += -DOSX_SDL_LIBS
# handle #include "SDL/SDL.h" and "SDL.h"
CXXFLAGS += $(shell sdl-config --cflags) \
-I$(shell dirname $(shell sdl-config --cflags | sed 's/-I\(.[^ ]*\) .*/\1/'))
LDFLAGS += $(shell sdl-config --libs) -lSDL_ttf
ifdef TILES
LDFLAGS += -lSDL_image
endif
endif
else # not osx
LDFLAGS += -lSDL -lSDL_ttf -lfreetype -lz
ifdef TILES
LDFLAGS += -lSDL_image
endif
endif
ifdef TILES
DEFINES += -DSDLTILES
else
DEFINES += -DTILES
endif
ifeq ($(TARGETSYSTEM),WINDOWS)
LDFLAGS += -lgdi32 -ldxguid -lwinmm -ljpeg -lpng
TARGET = $(W32TILESTARGET)
ODIR = $(W32ODIRTILES)
else
TARGET = $(TILESTARGET)
ODIR = $(ODIRTILES)
endif
else
# Link to ncurses if we're using a non-tiles, Linux build
ifeq ($(TARGETSYSTEM),LINUX)
ifeq ($(LOCALIZE),1)
ifeq ($(shell sh -c 'uname -o 2>/dev/null || echo not'),Darwin)
LDFLAGS += -lncurses
else
LDFLAGS += -lncursesw
endif
# Work around Cygwin not including gettext support in glibc
ifeq ($(shell sh -c 'uname -o 2>/dev/null || echo not'),Cygwin)
LDFLAGS += -lintl -liconv
endif
else
LDFLAGS += -lncurses
endif
endif
endif
ifeq ($(LOCALIZE),1)
DEFINES += -DLOCALIZE
endif
ifeq ($(TARGETSYSTEM),LINUX)
BINDIST_EXTRAS += cataclysm-launcher
endif
SOURCES = $(wildcard *.cpp)
HEADERS = $(wildcard *.h)
_OBJS = $(SOURCES:.cpp=.o)
ifeq ($(TARGETSYSTEM),WINDOWS)
RSRC = $(wildcard *.rc)
_OBJS += $(RSRC:.rc=.o)
endif
OBJS = $(patsubst %,$(ODIR)/%,$(_OBJS))
all: version $(TARGET)
ifdef SDL
ifeq ($(NATIVE),osx)
OBJS += $(ODIR)/SDLMain.o
endif
endif
ifdef LANGUAGES
L10N = localization
BINDIST_EXTRAS += lang/mo
endif
all: version $(TARGET) $(L10N)
@
$(TARGET): $(ODIR) $(DDIR) $(OBJS)
@@ -158,7 +274,7 @@ version:
)
$(ODIR):
mkdir $(ODIR)
mkdir -p $(ODIR)
$(DDIR):
@mkdir $(DDIR)
@@ -166,20 +282,37 @@ $(DDIR):
$(ODIR)/%.o: %.cpp
$(CXX) $(DEFINES) $(CXXFLAGS) -c $< -o $@
$(ODIR)/%.o: %.rc
$(RC) $(RFLAGS) $< -o $@
$(ODIR)/SDLMain.o: SDLMain.m
$(CC) -c $(OSX_INC) $< -o $@
version.cpp: version
localization:
lang/compile_mo.sh $(LANGUAGES)
clean: clean-tests
rm -f $(TARGET) $(W32TARGET) $(ODIR)/*.o $(ODIR)/*.d $(W32ODIR)/*.o $(W32BINDIST) \
$(BINDIST)
rm -rf $(BINDIST_DIR)
rm -rf $(TARGET) $(TILESTARGET) $(W32TILESTARGET) $(W32TARGET)
rm -rf $(ODIR) $(W32ODIR) $(W32ODIRTILES)
rm -rf $(BINDIST) $(W32BINDIST) $(BINDIST_DIR)
rm -f version.h
distclean:
rm -rf $(BINDIST_DIR)
rm -rf save
rm -rf lang/mo
rm -f data/options.txt
rm -f data/keymap.txt
rm -f data/auto_pickup.txt
rm -f data/fontlist.txt
bindist: $(BINDIST)
$(BINDIST): $(TARGET) $(BINDIST_EXTRAS)
rm -rf $(BINDIST_DIR)
$(BINDIST): distclean $(TARGET) $(L10N) $(BINDIST_EXTRAS)
mkdir -p $(BINDIST_DIR)
cp -R $(TARGET) $(BINDIST_EXTRAS) $(BINDIST_DIR)
cp -R --parents $(TARGET) $(BINDIST_EXTRAS) $(BINDIST_DIR)
$(BINDIST_CMD)
export ODIR _OBJS LDFLAGS CXX W32FLAGS DEFINES CXXFLAGS
-52
View File
@@ -1,52 +0,0 @@
# comment these to toggle them as one sees fit.
# WARNINGS will spam hundreds of warnings, mostly safe, if turned on
# DEBUG is best turned on if you plan to debug in gdb -- please do!
# PROFILE is for use with gprof or a similar program -- don't bother generally
#WARNINGS = -Wall -Wextra -Wno-switch -Wno-sign-compare -Wno-missing-braces -Wno-unused-parameter -Wno-char-subscripts
DEBUG = -g
#PROFILE = -pg
OTHERS = -O3
ODIR = objwin
DDIR = .deps
TARGET = cataclysm.exe
CXX = g++
LINKER = i486-mingw32-ld
LINKERFLAGS = -Wl,-stack,12000000,-subsystem,windows
CFLAGS = $(WARNINGS) $(DEBUG) $(PROFILE) $(OTHERS)
LDFLAGS = -static -lgdi32
#ifeq ($(OS), Msys)
#LDFLAGS = -static -lpdcurses
#else
#LDFLAGS = -lncurses
#endif
SOURCES = $(wildcard *.cpp)
_OBJS = $(SOURCES:.cpp=.o)
OBJS = $(patsubst %,$(ODIR)/%,$(_OBJS))
all: $(TARGET)
@
$(TARGET): $(ODIR) $(DDIR) $(OBJS)
$(CXX) $(LINKERFLAGS) -o $(TARGET) $(CFLAGS) $(OBJS) $(LDFLAGS) -DMINGW
$(ODIR):
mkdir $(ODIR)
$(DDIR):
@mkdir $(DDIR)
$(ODIR)/%.o: %.cpp
$(CXX) $(CFLAGS) -c $< -o $@
clean:
rm -f $(TARGET) $(ODIR)/*.o
-include $(SOURCES:%.cpp=$(DEPDIR)/%.P)
-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!
+6 -9
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
@@ -20,7 +17,7 @@ The latest instructions on how to compile can be found on [our wiki](http://www.
## Contribute
Please see [CONTRIBUTING.md](https://github.com/TheDarklingWolf/Cataclysm-DDA/blob/master/CONTRIBUTING.md) for details.
Please see [CONTRIBUTING.md](https://github.com/CleverRaven/Cataclysm-DDA/blob/master/CONTRIBUTING.md) for details.
## Frequently Asked Questions
@@ -35,8 +32,8 @@ Press the `?` key, followed by the `1` key to see the full list of key commands.
#### How can I start a new world?
Simply delete the **save** folder, which can be found in the same directory as the executable.
**Reset** on the main menu will generate a fresh world for you.
#### I've found a bug / I would like to make a suggestion. What should I do?
Please submit an issue on [our GitHub page](https://github.com/TheDarklingWolf/Cataclysm-DDA/issues/). If you're not able to, send an email to `TheDarklingWolf@gmail.com`.
Please submit an issue on [our GitHub page](https://github.com/CleverRaven/Cataclysm-DDA/issues/). If you're not able to, send an email to `kevin.granade@gmail.com`.
+35
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`.
+16
View File
@@ -0,0 +1,16 @@
/* SDLMain.m - main entry point for our Cocoa-ized SDL app
Initial Version: Darrell Walisser <dwaliss1@purdue.edu>
Non-NIB-Code & other changes: Max Horn <max@quendi.de>
Feel free to customize this file to suit your needs
*/
#ifndef _SDLMain_h_
#define _SDLMain_h_
#import <Cocoa/Cocoa.h>
@interface SDLMain : NSObject
@end
#endif /* _SDLMain_h_ */
+385
View File
@@ -0,0 +1,385 @@
/* SDLMain.m - main entry point for our Cocoa-ized SDL app
Initial Version: Darrell Walisser <dwaliss1@purdue.edu>
Non-NIB-Code & other changes: Max Horn <max@quendi.de>
Feel free to customize this file to suit your needs
*/
#if (defined OSX_SDL_FW)
#include "SDL.h"
#else
#include "SDL/SDL.h"
#endif
#include "SDLMain.h"
#include <sys/param.h> /* for MAXPATHLEN */
#include <unistd.h>
/* For some reaon, Apple removed setAppleMenu from the headers in 10.4,
but the method still is there and works. To avoid warnings, we declare
it ourselves here. */
@interface NSApplication(SDL_Missing_Methods)
- (void)setAppleMenu:(NSMenu *)menu;
@end
/* Use this flag to determine whether we use SDLMain.nib or not */
#define SDL_USE_NIB_FILE 0
/* Use this flag to determine whether we use CPS (docking) or not */
#define SDL_USE_CPS 1
#ifdef SDL_USE_CPS
/* Portions of CPS.h */
typedef struct CPSProcessSerNum
{
UInt32 lo;
UInt32 hi;
} CPSProcessSerNum;
extern OSErr CPSGetCurrentProcess( CPSProcessSerNum *psn);
extern OSErr CPSEnableForegroundOperation( CPSProcessSerNum *psn, UInt32 _arg2, UInt32 _arg3, UInt32 _arg4, UInt32 _arg5);
extern OSErr CPSSetFrontProcess( CPSProcessSerNum *psn);
#endif /* SDL_USE_CPS */
static int gArgc;
static char **gArgv;
static BOOL gFinderLaunch;
static BOOL gCalledAppMainline = FALSE;
static NSString *getApplicationName(void)
{
const NSDictionary *dict;
NSString *appName = 0;
/* Determine the application name */
dict = (const NSDictionary *)CFBundleGetInfoDictionary(CFBundleGetMainBundle());
if (dict)
appName = [dict objectForKey: @"CFBundleName"];
if (![appName length])
appName = [[NSProcessInfo processInfo] processName];
return appName;
}
#if SDL_USE_NIB_FILE
/* A helper category for NSString */
@interface NSString (ReplaceSubString)
- (NSString *)stringByReplacingRange:(NSRange)aRange with:(NSString *)aString;
@end
#endif
@interface NSApplication (SDLApplication)
@end
@implementation NSApplication (SDLApplication)
/* Invoked from the Quit menu item */
- (void)terminate:(id)sender
{
/* Post a SDL_QUIT event */
SDL_Event event;
event.type = SDL_QUIT;
SDL_PushEvent(&event);
}
@end
/* The main class of the application, the application's delegate */
@implementation SDLMain
/* Set the working directory to the .app's parent directory */
- (void) setupWorkingDirectory:(BOOL)shouldChdir
{
if (shouldChdir)
{
char parentdir[MAXPATHLEN];
CFURLRef url = CFBundleCopyBundleURL(CFBundleGetMainBundle());
CFURLRef url2 = CFURLCreateCopyDeletingLastPathComponent(0, url);
if (CFURLGetFileSystemRepresentation(url2, 1, (UInt8 *)parentdir, MAXPATHLEN)) {
chdir(parentdir); /* chdir to the binary app's parent */
}
CFRelease(url);
CFRelease(url2);
}
}
#if SDL_USE_NIB_FILE
/* Fix menu to contain the real app name instead of "SDL App" */
- (void)fixMenu:(NSMenu *)aMenu withAppName:(NSString *)appName
{
NSRange aRange;
NSEnumerator *enumerator;
NSMenuItem *menuItem;
aRange = [[aMenu title] rangeOfString:@"SDL App"];
if (aRange.length != 0)
[aMenu setTitle: [[aMenu title] stringByReplacingRange:aRange with:appName]];
enumerator = [[aMenu itemArray] objectEnumerator];
while ((menuItem = [enumerator nextObject]))
{
aRange = [[menuItem title] rangeOfString:@"SDL App"];
if (aRange.length != 0)
[menuItem setTitle: [[menuItem title] stringByReplacingRange:aRange with:appName]];
if ([menuItem hasSubmenu])
[self fixMenu:[menuItem submenu] withAppName:appName];
}
}
#else
static void setApplicationMenu(void)
{
/* warning: this code is very odd */
NSMenu *appleMenu;
NSMenuItem *menuItem;
NSString *title;
NSString *appName;
appName = getApplicationName();
appleMenu = [[NSMenu alloc] initWithTitle:@""];
/* Add menu items */
title = [@"About " stringByAppendingString:appName];
[appleMenu addItemWithTitle:title action:@selector(orderFrontStandardAboutPanel:) keyEquivalent:@""];
[appleMenu addItem:[NSMenuItem separatorItem]];
title = [@"Hide " stringByAppendingString:appName];
[appleMenu addItemWithTitle:title action:@selector(hide:) keyEquivalent:@"h"];
menuItem = (NSMenuItem *)[appleMenu addItemWithTitle:@"Hide Others" action:@selector(hideOtherApplications:) keyEquivalent:@"h"];
[menuItem setKeyEquivalentModifierMask:(NSAlternateKeyMask|NSCommandKeyMask)];
[appleMenu addItemWithTitle:@"Show All" action:@selector(unhideAllApplications:) keyEquivalent:@""];
[appleMenu addItem:[NSMenuItem separatorItem]];
title = [@"Quit " stringByAppendingString:appName];
[appleMenu addItemWithTitle:title action:@selector(terminate:) keyEquivalent:@"q"];
/* Put menu into the menubar */
menuItem = [[NSMenuItem alloc] initWithTitle:@"" action:nil keyEquivalent:@""];
[menuItem setSubmenu:appleMenu];
[[NSApp mainMenu] addItem:menuItem];
/* Tell the application object that this is now the application menu */
[NSApp setAppleMenu:appleMenu];
/* Finally give up our references to the objects */
[appleMenu release];
[menuItem release];
}
/* Create a window menu */
static void setupWindowMenu(void)
{
NSMenu *windowMenu;
NSMenuItem *windowMenuItem;
NSMenuItem *menuItem;
windowMenu = [[NSMenu alloc] initWithTitle:@"Window"];
/* "Minimize" item */
menuItem = [[NSMenuItem alloc] initWithTitle:@"Minimize" action:@selector(performMiniaturize:) keyEquivalent:@"m"];
[windowMenu addItem:menuItem];
[menuItem release];
/* Put menu into the menubar */
windowMenuItem = [[NSMenuItem alloc] initWithTitle:@"Window" action:nil keyEquivalent:@""];
[windowMenuItem setSubmenu:windowMenu];
[[NSApp mainMenu] addItem:windowMenuItem];
/* Tell the application object that this is now the window menu */
[NSApp setWindowsMenu:windowMenu];
/* Finally give up our references to the objects */
[windowMenu release];
[windowMenuItem release];
}
/* Replacement for NSApplicationMain */
static void CustomApplicationMain (int argc, char **argv)
{
NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
SDLMain *sdlMain;
/* Ensure the application object is initialised */
[NSApplication sharedApplication];
#ifdef SDL_USE_CPS
{
CPSProcessSerNum PSN;
/* Tell the dock about us */
if (!CPSGetCurrentProcess(&PSN))
if (!CPSEnableForegroundOperation(&PSN,0x03,0x3C,0x2C,0x1103))
if (!CPSSetFrontProcess(&PSN))
[NSApplication sharedApplication];
}
#endif /* SDL_USE_CPS */
/* Set up the menubar */
[NSApp setMainMenu:[[NSMenu alloc] init]];
setApplicationMenu();
setupWindowMenu();
/* Create SDLMain and make it the app delegate */
sdlMain = [[SDLMain alloc] init];
[NSApp setDelegate:sdlMain];
/* Start the main event loop */
[NSApp run];
[sdlMain release];
[pool release];
}
#endif
/*
* Catch document open requests...this lets us notice files when the app
* was launched by double-clicking a document, or when a document was
* dragged/dropped on the app's icon. You need to have a
* CFBundleDocumentsType section in your Info.plist to get this message,
* apparently.
*
* Files are added to gArgv, so to the app, they'll look like command line
* arguments. Previously, apps launched from the finder had nothing but
* an argv[0].
*
* This message may be received multiple times to open several docs on launch.
*
* This message is ignored once the app's mainline has been called.
*/
- (BOOL)application:(NSApplication *)theApplication openFile:(NSString *)filename
{
const char *temparg;
size_t arglen;
char *arg;
char **newargv;
if (!gFinderLaunch) /* MacOS is passing command line args. */
return FALSE;
if (gCalledAppMainline) /* app has started, ignore this document. */
return FALSE;
temparg = [filename UTF8String];
arglen = SDL_strlen(temparg) + 1;
arg = (char *) SDL_malloc(arglen);
if (arg == NULL)
return FALSE;
newargv = (char **) realloc(gArgv, sizeof (char *) * (gArgc + 2));
if (newargv == NULL)
{
SDL_free(arg);
return FALSE;
}
gArgv = newargv;
SDL_strlcpy(arg, temparg, arglen);
gArgv[gArgc++] = arg;
gArgv[gArgc] = NULL;
return TRUE;
}
/* Called when the internal event loop has just started running */
- (void) applicationDidFinishLaunching: (NSNotification *) note
{
int status;
/* Set the working directory to the .app's parent directory */
[self setupWorkingDirectory:gFinderLaunch];
#if SDL_USE_NIB_FILE
/* Set the main menu to contain the real app name instead of "SDL App" */
[self fixMenu:[NSApp mainMenu] withAppName:getApplicationName()];
#endif
/* Hand off to main application code */
gCalledAppMainline = TRUE;
status = SDL_main (gArgc, gArgv);
/* We're done, thank you for playing */
exit(status);
}
@end
@implementation NSString (ReplaceSubString)
- (NSString *)stringByReplacingRange:(NSRange)aRange with:(NSString *)aString
{
unsigned int bufferSize;
unsigned int selfLen = [self length];
unsigned int aStringLen = [aString length];
unichar *buffer;
NSRange localRange;
NSString *result;
bufferSize = selfLen + aStringLen - aRange.length;
buffer = (unichar *)NSAllocateMemoryPages(bufferSize*sizeof(unichar));
/* Get first part into buffer */
localRange.location = 0;
localRange.length = aRange.location;
[self getCharacters:buffer range:localRange];
/* Get middle part into buffer */
localRange.location = 0;
localRange.length = aStringLen;
[aString getCharacters:(buffer+aRange.location) range:localRange];
/* Get last part into buffer */
localRange.location = aRange.location + aRange.length;
localRange.length = selfLen - localRange.location;
[self getCharacters:(buffer+aRange.location+aStringLen) range:localRange];
/* Build output string */
result = [NSString stringWithCharacters:buffer length:bufferSize];
NSDeallocateMemoryPages(buffer, bufferSize);
return result;
}
@end
#ifdef main
# undef main
#endif
/* Main entry point to executable - should *not* be SDL_main! */
int main (int argc, char **argv)
{
/* Copy the arguments into a global variable */
/* This is passed if we are launched by double-clicking */
if ( argc >= 2 && strncmp (argv[1], "-psn", 4) == 0 ) {
gArgv = (char **) SDL_malloc(sizeof (char *) * 2);
gArgv[0] = argv[0];
gArgv[1] = NULL;
gArgc = 1;
gFinderLaunch = YES;
} else {
int i;
gArgc = argc;
gArgv = (char **) SDL_malloc(sizeof (char *) * (argc+1));
for (i = 0; i <= argc; i++)
gArgv[i] = argv[i];
gFinderLaunch = NO;
}
#if SDL_USE_NIB_FILE
NSApplicationMain (argc, argv);
#else
CustomApplicationMain (argc, argv);
#endif
return 0;
}
+17
View File
@@ -15,4 +15,21 @@ Jason Gilbert <0jason.gilbert@gmail.com>
Charlie Nolan (FunnyMan3595) <funnyman3595@gmail.com>
uzername (some_name) <ivanpost777@gmail.com>
Christian Buskirk (i2amroy) <i2amroy@gmail.com>
Kevin McKayven (GlyphGryph) <glyphgryph@gmail.com>
Ozone <satori.jj@gmail.com>
Herbert Jones <jones.herbert@gmail.com>
Justin "MacrosBlackD" Drury <macrosblackd@gmail.com>
AtomicDryad <fnord@fnord> / <atomicdryad@gmail.com>
Izicata
Voker57 <voker57@gmail.com>
Tommy <yobbobanana@gmx.com>
teh-sam
Alex Casey (Tamunshin) <tamunshin@hotmail.com>
Stevensonz <money3030@yahoo.com.>
David Holmes <dholmes@dholmes.us>
Sean McLaughlin <galenevil@hotmail.com> / <galenevil.eve@gmail.com>
Robert Sørlie (1942rob) <1942rob@gmail.com>
Angela Graves <Rivet.the.Zombie@gmail.com>
Ian Strachan <ian_e_strachan@hotmail.com>
Greg McNew <gmcnew@gmail.com>
NaturesWitness <natureswitness@gmail.com>
+134 -86
View File
@@ -1,9 +1,20 @@
#include "game.h"
#include "keypress.h"
#include "output.h"
#include <istream>
#include <sstream>
#include <fstream>
void parse_keymap(std::istream &keymap_txt, std::map<char, action_id> &kmap);
void game::load_keyboard_settings()
{
// Load the default keymap
std::istringstream sin;
sin.str(default_keymap_txt());
parse_keymap(sin, default_keymap);
// Load the player's actual keymap
std::ifstream fin;
fin.open("data/keymap.txt");
if (!fin) { // It doesn't exist
@@ -15,13 +26,37 @@ void game::load_keyboard_settings()
}
if (!fin) { // Still can't open it--probably bad permissions
debugmsg("Can't open data/keymap.txt. This may be a permissions issue.");
keymap = default_keymap;
return;
} else {
parse_keymap(fin, keymap);
}
while (!fin.eof()) {
// Check for new defaults, and automatically bind them if possible
std::map<char, action_id>::iterator d_it;
bool found;
for (d_it = default_keymap.begin(); d_it != default_keymap.end(); d_it++) {
found = false;
std::map<char, action_id>::iterator k_it;
for (k_it = keymap.begin(); k_it != keymap.end(); k_it++) {
if (d_it->second == k_it->second) {
found = true;
break;
}
}
if (!found && !keymap.count(d_it->first)) {
keymap[d_it->first] = d_it->second;
}
}
}
void parse_keymap(std::istream &keymap_txt, std::map<char, action_id> &kmap)
{
while (!keymap_txt.eof()) {
std::string id;
fin >> id;
keymap_txt >> id;
if (id == "")
getline(fin, id); // Empty line, chomp it
getline(keymap_txt, id); // Empty line, chomp it
else if (id[0] != '#') {
action_id act = look_up_action(id);
if (act == ACTION_NULL)
@@ -29,25 +64,25 @@ void game::load_keyboard_settings()
Warning! data/keymap.txt contains an unknown action, \"%s\"\n\
Fix data/keymap.txt at your next chance!", id.c_str());
else {
while (!fin.eof()) {
while (!keymap_txt.eof()) {
char ch;
fin >> std::noskipws >> ch >> std::skipws;
keymap_txt >> std::noskipws >> ch >> std::skipws;
if (ch == '\n') {
break;
} else if (ch != ' ' || fin.peek() == '\n') {
if (keymap.find(ch) != keymap.end()) {
} else if (ch != ' ' || keymap_txt.peek() == '\n') {
if (kmap.find(ch) != kmap.end()) {
debugmsg("\
Warning! '%c' assigned twice in the keymap!\n\
%s is being ignored.\n\
Fix data/keymap.txt at your next chance!", ch, id.c_str());
} else {
keymap[ ch ] = act;
kmap[ ch ] = act;
}
}
}
}
} else {
getline(fin, id); // Clear the whole line
getline(keymap_txt, id); // Clear the whole line
}
}
}
@@ -146,6 +181,8 @@ std::string action_ident(action_id act)
return "advinv";
case ACTION_PICKUP:
return "pickup";
case ACTION_GRAB:
return "grab";
case ACTION_BUTCHER:
return "butcher";
case ACTION_CHAT:
@@ -197,7 +234,7 @@ std::string action_ident(action_id act)
case ACTION_BIONICS:
return "bionics";
case ACTION_SORT_ARMOR:
return "sort_armor";
return "sort_armor";
case ACTION_WAIT:
return "wait";
case ACTION_CRAFT:
@@ -212,6 +249,8 @@ std::string action_ident(action_id act)
return "disassemble";
case ACTION_SLEEP:
return "sleep";
case ACTION_CONTROL_VEHICLE:
return "control_vehicle";
case ACTION_TOGGLE_SAFEMODE:
return "safemode";
case ACTION_TOGGLE_AUTOSAFE:
@@ -220,6 +259,8 @@ std::string action_ident(action_id act)
return "ignore_enemy";
case ACTION_SAVE:
return "save";
case ACTION_QUICKSAVE:
return "quicksave";
case ACTION_QUIT:
return "quit";
case ACTION_PL_INFO:
@@ -267,157 +308,164 @@ std::string action_name(action_id act)
switch (act)
{
case ACTION_PAUSE:
return "Pause";
return _("Pause");
case ACTION_MOVE_N:
return "Move North";
return _("Move North");
case ACTION_MOVE_NE:
return "Move Northeast";
return _("Move Northeast");
case ACTION_MOVE_E:
return "Move East";
return _("Move East");
case ACTION_MOVE_SE:
return "Move Southeast";
return _("Move Southeast");
case ACTION_MOVE_S:
return "Move South";
return _("Move South");
case ACTION_MOVE_SW:
return "Move Southwest";
return _("Move Southwest");
case ACTION_MOVE_W:
return "Move West";
return _("Move West");
case ACTION_MOVE_NW:
return "Move Northwest";
return _("Move Northwest");
case ACTION_MOVE_DOWN:
return "Descend Stairs";
return _("Descend Stairs");
case ACTION_MOVE_UP:
return "Ascend Stairs";
return _("Ascend Stairs");
case ACTION_CENTER:
return "Center View";
return _("Center View");
case ACTION_SHIFT_N:
return "Move View North";
return _("Move View North");
case ACTION_SHIFT_NE:
return "Move View Northeast";
return _("Move View Northeast");
case ACTION_SHIFT_E:
return "Move View East";
return _("Move View East");
case ACTION_SHIFT_SE:
return "Move View Southeast";
return _("Move View Southeast");
case ACTION_SHIFT_S:
return "Move View South";
return _("Move View South");
case ACTION_SHIFT_SW:
return "Move View Southwest";
return _("Move View Southwest");
case ACTION_SHIFT_W:
return "Move View West";
return _("Move View West");
case ACTION_SHIFT_NW:
return "Move View Northwest";
return _("Move View Northwest");
case ACTION_OPEN:
return "Open Door";
return _("Open Door");
case ACTION_CLOSE:
return "Close Door";
return _("Close Door");
case ACTION_SMASH:
return "Smash Nearby Terrain";
return _("Smash Nearby Terrain");
case ACTION_EXAMINE:
return "Examine Nearby Terrain";
return _("Examine Nearby Terrain");
case ACTION_PICKUP:
return "Pick Item(s) Up";
return _("Pick Item(s) Up");
case ACTION_GRAB:
return _("Grab a nearby vehicle");
case ACTION_BUTCHER:
return "Butcher";
return _("Butcher");
case ACTION_CHAT:
return "Chat with NPC";
return _("Chat with NPC");
case ACTION_LOOK:
return "Look Around";
return _("Look Around");
case ACTION_PEEK:
return "Peek Around Corners";
return _("Peek Around Corners");
case ACTION_LIST_ITEMS:
return "List all items around the player";
return _("List all items around the player");
case ACTION_INVENTORY:
return "Open Inventory";
return _("Open Inventory");
case ACTION_ADVANCEDINV:
return "Advanced Inventory management";
return _("Advanced Inventory management");
case ACTION_COMPARE:
return "Compare two Items";
return _("Compare two Items");
case ACTION_ORGANIZE:
return "Swap Inventory Letters";
return _("Swap Inventory Letters");
case ACTION_USE:
return "Apply or Use Item";
return _("Apply or Use Item");
case ACTION_USE_WIELDED:
return "Apply or Use Wielded Item";
return _("Apply or Use Wielded Item");
case ACTION_WEAR:
return "Wear Item";
return _("Wear Item");
case ACTION_TAKE_OFF:
return "Take Off Worn Item";
return _("Take Off Worn Item");
case ACTION_EAT:
return "Eat";
return _("Eat");
case ACTION_READ:
return "Read";
return _("Read");
case ACTION_WIELD:
return "Wield";
return _("Wield");
case ACTION_PICK_STYLE:
return "Select Unarmed Style";
return _("Select Unarmed Style");
case ACTION_RELOAD:
return "Reload Wielded Item";
return _("Reload Wielded Item");
case ACTION_UNLOAD:
return "Unload or Empty Wielded Item";
return _("Unload or Empty Wielded Item");
case ACTION_THROW:
return "Throw Item";
return _("Throw Item");
case ACTION_FIRE:
return "Fire Wielded Item";
return _("Fire Wielded Item");
case ACTION_FIRE_BURST:
return "Burst-Fire Wielded Item";
return _("Burst-Fire Wielded Item");
case ACTION_SELECT_FIRE_MODE:
return "Toggle attack mode of Wielded Item";
return _("Toggle attack mode of Wielded Item");
case ACTION_DROP:
return "Drop Item";
return _("Drop Item");
case ACTION_DIR_DROP:
return "Drop Item to Adjacent Tile";
return _("Drop Item to Adjacent Tile");
case ACTION_BIONICS:
return "View/Activate Bionics";
return _("View/Activate Bionics");
case ACTION_SORT_ARMOR:
return "Re-layer armour/clothing";
return _("Re-layer armour/clothing");
case ACTION_WAIT:
return "Wait for Several Minutes";
return _("Wait for Several Minutes");
case ACTION_CRAFT:
return "Craft Items";
return _("Craft Items");
case ACTION_RECRAFT:
return "Recraft last recipe";
return _("Recraft last recipe");
case ACTION_LONGCRAFT:
return "Craft as long as possible";
return _("Craft as long as possible");
case ACTION_CONSTRUCT:
return "Construct Terrain";
return _("Construct Terrain");
case ACTION_DISASSEMBLE:
return "Disassemble items";
return _("Disassemble items");
case ACTION_SLEEP:
return "Sleep";
return _("Sleep");
case ACTION_CONTROL_VEHICLE:
return _("Control Vehicle");
case ACTION_TOGGLE_SAFEMODE:
return "Toggle Safemode";
return _("Toggle Safemode");
case ACTION_TOGGLE_AUTOSAFE:
return "Toggle Auto-Safemode";
return _("Toggle Auto-Safemode");
case ACTION_IGNORE_ENEMY:
return "Ignore Nearby Enemy";
return _("Ignore Nearby Enemy");
case ACTION_SAVE:
return "Save and Quit";
return _("Save and Quit");
case ACTION_QUICKSAVE:
return _("Quicksave");
case ACTION_QUIT:
return "Commit Suicide";
return _("Commit Suicide");
case ACTION_PL_INFO:
return "View Player Info";
return _("View Player Info");
case ACTION_MAP:
return "View Map";
return _("View Map");
case ACTION_MISSIONS:
return "View Missions";
return _("View Missions");
case ACTION_FACTIONS:
return "View Factions";
return _("View Factions");
case ACTION_KILLS:
return "View Kills";
return _("View Kills");
case ACTION_MORALE:
return "View Morale";
return _("View Morale");
case ACTION_MESSAGES:
return "View Message Log";
return _("View Message Log");
case ACTION_HELP:
return "View Help";
return _("View Help");
case ACTION_DEBUG:
return "Debug Menu";
return _("Debug Menu");
case ACTION_DISPLAY_SCENT:
return "View Scentmap";
return _("View Scentmap");
case ACTION_TOGGLE_DEBUGMON:
return "Toggle Debug Messages";
return _("Toggle Debug Messages");
case ACTION_NULL:
return "No Action";
return _("No Action");
}
return "Someone forgot to name an action.";
}
+3
View File
@@ -31,6 +31,7 @@ ACTION_CLOSE,
ACTION_SMASH,
ACTION_EXAMINE,
ACTION_PICKUP,
ACTION_GRAB,
ACTION_BUTCHER,
ACTION_CHAT,
ACTION_LOOK,
@@ -67,10 +68,12 @@ ACTION_LONGCRAFT,
ACTION_CONSTRUCT,
ACTION_DISASSEMBLE,
ACTION_SLEEP,
ACTION_CONTROL_VEHICLE,
ACTION_TOGGLE_SAFEMODE,
ACTION_TOGGLE_AUTOSAFE,
ACTION_IGNORE_ENEMY,
ACTION_SAVE,
ACTION_QUICKSAVE,
ACTION_QUIT,
// Info Screens
ACTION_PL_INFO,
+209 -160
View File
@@ -2,169 +2,218 @@
void addict_effect(game *g, addiction &add)
{
int in = add.intensity;
int in = add.intensity;
switch (add.type) {
case ADD_CIG:
if (in > 20 || one_in((500 - 20 * in))) {
g->add_msg("You %s a cigarette.",
rng(0, 6) < in ? "need" : "could use");
g->cancel_activity_query("You have a nicotine craving.");
g->u.add_morale(MORALE_CRAVING_NICOTINE, -15, -50);
if (one_in(800 - 50 * in))
g->u.fatigue++;
if (one_in(400 - 20 * in))
g->u.stim--;
}
break;
switch (add.type) {
case ADD_CIG:
if (in > 20 || one_in((500 - 20 * in))) {
g->add_msg(rng(0, 6) < in ? _("You need a cigarette.") : _("You could use a cigarette."));
g->cancel_activity_query(_("You have a nicotine craving."));
g->u.add_morale(MORALE_CRAVING_NICOTINE, -15, -50);
if (one_in(800 - 50 * in)) {
g->u.fatigue++;
}
if (g->u.stim > -50 && one_in(400 - 20 * in)) {
g->u.stim--;
}
}
break;
case ADD_CAFFEINE:
g->u.moves -= 2;
if (in > 20 || one_in((500 - 20 * in))) {
g->add_msg("You want some caffeine.");
g->cancel_activity_query("You have a caffeine craving.");
g->u.add_morale(MORALE_CRAVING_CAFFEINE, -5, -30);
if (rng(0, 10) < in)
g->u.stim--;
if (rng(8, 400) < in) {
g->add_msg("Your hands start shaking... you need it bad!");
g->u.add_disease(DI_SHAKES, 20, g);
}
}
break;
case ADD_CAFFEINE:
g->u.moves -= 2;
if (in > 20 || one_in((500 - 20 * in))) {
g->add_msg(_("You want some caffeine."));
g->cancel_activity_query(_("You have a caffeine craving."));
g->u.add_morale(MORALE_CRAVING_CAFFEINE, -5, -30);
if (g->u.stim > -150 && rng(0, 10) < in) {
g->u.stim--;
}
if (rng(8, 400) < in) {
g->add_msg(_("Your hands start shaking... you need it bad!"));
g->u.add_disease("shakes", 20);
}
}
break;
case ADD_ALCOHOL:
g->u.per_cur--;
g->u.int_cur--;
if (rng(40, 1200) <= in * 10)
g->u.health--;
if (one_in(20) && rng(0, 20) < in) {
g->add_msg("You could use a drink.");
g->cancel_activity_query("You have an alcohol craving.");
g->u.add_morale(MORALE_CRAVING_ALCOHOL, -35, -120);
} else if (rng(8, 300) < in) {
g->add_msg("Your hands start shaking... you need a drink bad!");
g->cancel_activity_query("You have an alcohol craving.");
g->u.add_morale(MORALE_CRAVING_ALCOHOL, -35, -120);
g->u.add_disease(DI_SHAKES, 50, g);
} else if (!g->u.has_disease(DI_HALLU) && rng(10, 1600) < in)
g->u.add_disease(DI_HALLU, 3600, g);
break;
case ADD_ALCOHOL:
g->u.per_cur--;
g->u.int_cur--;
if (rng(40, 1200) <= in * 10) {
g->u.health--;
}
if (one_in(20) && rng(0, 20) < in) {
g->add_msg(_("You could use a drink."));
g->cancel_activity_query(_("You have an alcohol craving."));
g->u.add_morale(MORALE_CRAVING_ALCOHOL, -35, -120);
} else if (rng(8, 300) < in) {
g->add_msg(_("Your hands start shaking... you need a drink bad!"));
g->cancel_activity_query(_("You have an alcohol craving."));
g->u.add_morale(MORALE_CRAVING_ALCOHOL, -35, -120);
g->u.add_disease("shakes", 50);
} else if (!g->u.has_disease("hallu") && rng(10, 1600) < in) {
g->u.add_disease("hallu", 3600);
}
break;
case ADD_SLEEP:
// No effects here--just in player::can_sleep()
// EXCEPT! Prolong this addiction longer than usual.
if (one_in(2) && add.sated < 0)
add.sated++;
break;
case ADD_SLEEP:
// No effects here--just in player::can_sleep()
// EXCEPT! Prolong this addiction longer than usual.
if (one_in(2) && add.sated < 0) {
add.sated++;
}
break;
case ADD_PKILLER:
if ((in >= 25 || int(g->turn) % (100 - in * 4) == 0) && g->u.pkill > 0)
g->u.pkill--; // Tolerance increases!
if (g->u.pkill >= 35) // No further effects if we're doped up.
add.sated = 0;
else {
g->u.str_cur -= 1 + int(in / 7);
g->u.per_cur--;
g->u.dex_cur--;
if (g->u.pain < in * 3)
g->u.pain++;
if (in >= 40 || one_in((1200 - 30 * in)))
g->u.health--;
if (one_in(20) && dice(2, 20) < in) {
g->add_msg("Your hands start shaking... you need some painkillers.");
g->cancel_activity_query("You have an opiate craving.");
g->u.add_morale(MORALE_CRAVING_OPIATE, -40, -200);
g->u.add_disease(DI_SHAKES, 20 + in * 5, g);
} else if (one_in(20) && dice(2, 30) < in) {
g->add_msg("You feel anxious. You need your painkillers!");
g->u.add_morale(MORALE_CRAVING_OPIATE, -30, -200);
g->cancel_activity_query("You have a craving.");
} else if (one_in(50) && dice(3, 50) < in) {
g->add_msg("You throw up heavily!");
g->cancel_activity_query("Throwing up.");
g->u.vomit(g);
}
}
break;
case ADD_PKILLER:
if ((in >= 25 || int(g->turn) % (100 - in * 4) == 0) && g->u.pkill > 0) {
g->u.pkill--; // Tolerance increases!
}
if (g->u.pkill >= 35) { // No further effects if we're doped up.
add.sated = 0;
} else {
g->u.str_cur -= 1 + int(in / 7);
g->u.per_cur--;
g->u.dex_cur--;
if (g->u.pain < in * 3) {
g->u.pain++;
}
if (in >= 40 || one_in((1200 - 30 * in))) {
g->u.health--;
}
if (one_in(20) && dice(2, 20) < in) {
g->add_msg(_("Your hands start shaking... you need some painkillers."));
g->cancel_activity_query(_("You have an opiate craving."));
g->u.add_morale(MORALE_CRAVING_OPIATE, -40, -200);
g->u.add_disease("shakes", 20 + in * 5);
} else if (one_in(20) && dice(2, 30) < in) {
g->add_msg(_("You feel anxious. You need your painkillers!"));
g->u.add_morale(MORALE_CRAVING_OPIATE, -30, -200);
g->cancel_activity_query(_("You have a craving."));
} else if (one_in(50) && dice(3, 50) < in) {
g->add_msg(_("You throw up heavily!"));
g->cancel_activity_query(_("Throwing up."));
g->u.vomit(g);
}
}
break;
case ADD_SPEED: {
int move_pen = in * 5;
if (move_pen > 30)
move_pen = 30;
g->u.moves -= move_pen;
g->u.int_cur--;
g->u.str_cur--;
if (g->u.stim > -100 && (in >= 20 || int(g->turn) % (100 - in * 5) == 0))
g->u.stim--;
if (rng(0, 150) <= in)
g->u.health--;
if (dice(2, 100) < in) {
g->add_msg("You feel depressed. Speed would help.");
g->cancel_activity_query("You have a speed craving.");
g->u.add_morale(MORALE_CRAVING_SPEED, -25, -200);
} else if (one_in(10) && dice(2, 80) < in) {
g->add_msg("Your hands start shaking... you need a pick-me-up.");
g->cancel_activity_query("You have a speed craving.");
g->u.add_morale(MORALE_CRAVING_SPEED, -25, -200);
g->u.add_disease(DI_SHAKES, in * 20, g);
} else if (one_in(50) && dice(2, 100) < in) {
g->add_msg("You stop suddenly, feeling bewildered.");
g->cancel_activity();
g->u.moves -= 300;
} else if (!g->u.has_disease(DI_HALLU) && one_in(20) &&
8 + dice(2, 80) < in)
g->u.add_disease(DI_HALLU, 3600, g);
} break;
case ADD_SPEED: {
int move_pen = in * 5;
if (move_pen > 30) {
move_pen = 30;
}
g->u.moves -= move_pen;
g->u.int_cur--;
g->u.str_cur--;
if (g->u.stim > -100 && (in >= 20 || int(g->turn) % (100 - in * 5) == 0)) {
g->u.stim--;
}
if (rng(0, 150) <= in) {
g->u.health--;
}
if (dice(2, 100) < in) {
g->add_msg(_("You feel depressed. Speed would help."));
g->cancel_activity_query(_("You have a speed craving."));
g->u.add_morale(MORALE_CRAVING_SPEED, -25, -200);
} else if (one_in(10) && dice(2, 80) < in) {
g->add_msg(_("Your hands start shaking... you need a pick-me-up."));
g->cancel_activity_query(_("You have a speed craving."));
g->u.add_morale(MORALE_CRAVING_SPEED, -25, -200);
g->u.add_disease("shakes", in * 20);
} else if (one_in(50) && dice(2, 100) < in) {
g->add_msg(_("You stop suddenly, feeling bewildered."));
g->cancel_activity();
g->u.moves -= 300;
} else if (!g->u.has_disease("hallu") && one_in(20) && 8 + dice(2, 80) < in)
g->u.add_disease("hallu", 3600);
}
break;
case ADD_COKE:
g->u.int_cur--;
g->u.per_cur--;
if (in >= 30 || one_in((900 - 30 * in))) {
g->add_msg("You feel like you need a bump.");
g->cancel_activity_query("You have a craving for cocaine.");
g->u.add_morale(MORALE_CRAVING_COCAINE, -20, -250);
case ADD_COKE:
g->u.int_cur--;
g->u.per_cur--;
if (in >= 30 || one_in((900 - 30 * in))) {
g->add_msg(_("You feel like you need a bump."));
g->cancel_activity_query(_("You have a craving for cocaine."));
g->u.add_morale(MORALE_CRAVING_COCAINE, -20, -250);
}
if (dice(2, 80) <= in) {
g->add_msg(_("You feel like you need a bump."));
g->cancel_activity_query(_("You have a craving for cocaine."));
g->u.add_morale(MORALE_CRAVING_COCAINE, -20, -250);
if (g->u.stim > -150) {
g->u.stim -= 3;
}
}
break;
case ADD_CRACK:
g->u.int_cur--;
g->u.per_cur--;
if (in >= 30 || one_in((900 - 30 * in))) {
g->add_msg(_("You're shivering, you need some crack."));
g->cancel_activity_query(_("You have a craving for crack."));
g->u.add_morale(MORALE_CRAVING_CRACK, -80, -250);
}
if (dice(2, 80) <= in) {
g->add_msg(_("You're shivering, you need some crack."));
g->cancel_activity_query(_("You have a craving for crack."));
g->u.add_morale(MORALE_CRAVING_CRACK, -80, -250);
if (g->u.stim > -150) {
g->u.stim -= 3;
}
}
break;
}
}
/**
* Returns the name of an addiction. It should be able to finish the sentence
* "Became addicted to ______".
*/
std::string addiction_type_name(add_type cur)
{
switch(cur) {
case ADD_CIG: return _("nicotine");
case ADD_CAFFEINE: return _("caffeine");
case ADD_ALCOHOL: return _("alcohol");
case ADD_SLEEP: return _("sleeping pills");
case ADD_PKILLER: return _("opiates");
case ADD_SPEED: return _("amphetamine");
case ADD_COKE: return _("cocaine");
case ADD_CRACK: return _("crack cocaine");
default: return "bugs in addiction.cpp";
}
if (dice(2, 80) <= in) {
g->add_msg("You feel like you need a bump.");
g->cancel_activity_query("You have a craving for cocaine.");
g->u.add_morale(MORALE_CRAVING_COCAINE, -20, -250);
g->u.stim -= 3;
}
break;
case ADD_CRACK:
g->u.int_cur--;
g->u.per_cur--;
if (in >= 30 || one_in((900 - 30 * in))) {
g->add_msg("You're shivering, you need some crack.");
g->cancel_activity_query("You have a craving for crack.");
g->u.add_morale(MORALE_CRAVING_CRACK, -80, -250);
}
if (dice(2, 80) <= in) {
g->add_msg("You're shivering, you need some crack.");
g->cancel_activity_query("You have a craving for crack.");
g->u.add_morale(MORALE_CRAVING_CRACK, -80, -250);
g->u.stim -= 3;
}
break;
}
}
std::string addiction_name(addiction cur)
{
switch (cur.type) {
case ADD_CIG: return "Nicotine Withdrawal";
case ADD_CAFFEINE: return "Caffeine Withdrawal";
case ADD_ALCOHOL: return "Alcohol Withdrawal";
case ADD_SLEEP: return "Sleeping Pill Dependance";
case ADD_PKILLER: return "Opiate Withdrawal";
case ADD_SPEED: return "Amphetamine Withdrawal";
case ADD_COKE: return "Cocaine Withdrawal";
case ADD_CRACK: return "Crack Cocaine Withdrawal";
case ADD_CIG: return _("Nicotine Withdrawal");
case ADD_CAFFEINE: return _("Caffeine Withdrawal");
case ADD_ALCOHOL: return _("Alcohol Withdrawal");
case ADD_SLEEP: return _("Sleeping Pill Dependance");
case ADD_PKILLER: return _("Opiate Withdrawal");
case ADD_SPEED: return _("Amphetamine Withdrawal");
case ADD_COKE: return _("Cocaine Withdrawal");
case ADD_CRACK: return _("Crack Cocaine Withdrawal");
default: return "Erroneous addiction";
}
}
morale_type addiction_craving(add_type cur)
{
switch (cur) {
case ADD_CIG: return MORALE_CRAVING_NICOTINE;
case ADD_CAFFEINE: return MORALE_CRAVING_CAFFEINE;
case ADD_ALCOHOL: return MORALE_CRAVING_ALCOHOL;
case ADD_PKILLER: return MORALE_CRAVING_OPIATE;
case ADD_SPEED: return MORALE_CRAVING_SPEED;
case ADD_COKE: return MORALE_CRAVING_COCAINE;
case ADD_CRACK: return MORALE_CRAVING_CRACK;
default: return MORALE_NULL;
}
}
add_type addiction_type(std::string name)
{
if (name == "nicotine")
@@ -189,38 +238,38 @@ add_type addiction_type(std::string name)
std::string addiction_text(addiction cur)
{
std::stringstream dump;
int strpen = 1 + int(cur.intensity / 7);
switch (cur.type) {
case ADD_CIG:
return "Intelligence - 1; Occasional cravings";
return _("Intelligence - 1; Occasional cravings");
case ADD_CAFFEINE:
return "Strength - 1; Slight sluggishness; Occasional cravings";
return _("Strength - 1; Slight sluggishness; Occasional cravings");
case ADD_ALCOHOL:
return "\
return _("\
Perception - 1; Intelligence - 1; Occasional Cravings;\n\
Risk of delirium tremens";
Risk of delirium tremens");
case ADD_SLEEP:
return "You may find it difficult to sleep without medication.";
return _("You may find it difficult to sleep without medication.");
case ADD_PKILLER:
dump << "Strength -" << strpen << "; Perception - 1; Dexterity - 1;" <<
std::endl <<
"Depression and physical pain to some degree. Frequent cravings. Vomiting.";
return dump.str();
{
return string_format(_(
"Strength - %d; Perception - 1; Dexterity - 1;\n"
"Depression and physical pain to some degree. Frequent cravings. Vomiting."), strpen);
}
case ADD_SPEED:
return "Strength - 1; Intelligence - 1;\n\
Movement rate reduction. Depression. Weak immune system. Frequent cravings.";
return _("Strength - 1; Intelligence - 1;\n\
Movement rate reduction. Depression. Weak immune system. Frequent cravings.");
case ADD_COKE:
return "Perception - 1; Intelligence - 1; Frequent cravings.";
return _("Perception - 1; Intelligence - 1; Frequent cravings.");
case ADD_CRACK:
return "Perception - 2; Intelligence - 2; Frequent cravings.";
return _("Perception - 2; Intelligence - 2; Frequent cravings.");
default:
return "";
}
+4
View File
@@ -10,8 +10,12 @@
void addict_effect(game *g, addiction &add);
std::string addiction_type_name(add_type cur);
std::string addiction_name(addiction cur);
morale_type addiction_craving(add_type cur);
add_type addiction_type(std::string name);
std::string addiction_text(addiction cur);
+1254
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
+358 -334
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, MNULL, MNULL, 0, 0, 0, 0, ARTWEAP_BULK,
{ARTWEAP_NULL, ARTWEAP_NULL, ARTWEAP_NULL}},
{"Harp", ';', c_yellow, WOOD, MNULL, 20, 30, 10, 18, ARTWEAP_BULK,
{ARTWEAP_SPEAR, ARTWEAP_SWORD, ARTWEAP_KNIFE}},
{"Staff", '/', c_brown, WOOD, MNULL, 6, 12, 4, 10, ARTWEAP_CLUB,
{ARTWEAP_BULK, ARTWEAP_SPEAR, ARTWEAP_KNIFE}},
{"Sword", '/', c_ltblue, STEEL, MNULL, 8, 14, 8, 28, ARTWEAP_SWORD,
{ARTWEAP_BULK, ARTWEAP_NULL, ARTWEAP_NULL}},
{"Dagger", ';', c_ltblue, STEEL, MNULL, 1, 4, 1, 6, ARTWEAP_KNIFE,
{ARTWEAP_NULL, ARTWEAP_NULL, ARTWEAP_NULL}},
{"Cube", '*', c_white, STEEL, MNULL, 1, 3, 1, 20, ARTWEAP_BULK,
{ARTWEAP_SPEAR, ARTWEAP_NULL, ARTWEAP_NULL}}
};
artifact_weapon_datum artifact_weapon_data[NUM_ARTWEAPS] = {
{"", 0, 0, 0, 0, 0, 0, 0, 0, ""},
// Adjective Vol,wgt Bash Cut To-Hit
{"Heavy", 0, 12, 10, 20, 0, 0, -2, 0,
""},
{"Knobbed", 1, 2, 14, 30, 0, 0, -1, 1,
""},
{"Spiked", 1, 1, 0, 0, 20, 40, -1, 1,
"SPEAR"},
{"Edged", 2, 4, 0, 0, 20, 50, -1, 2,
""},
{"Bladed", 1, 2, 0, 0, 12, 30, -1, 1,
"STAB"}
};
artifact_armor_form_datum artifact_armor_form_data[NUM_ARTARMFORMS] = {
{"", c_white, MNULL, MNULL, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, false,
{ARMORMOD_NULL, ARMORMOD_NULL, ARMORMOD_NULL, ARMORMOD_NULL, ARMORMOD_NULL}},
// Name color Materials Vol Wgt Enc Cov Thk Env Wrm Sto Bsh Cut Hit
{"Robe", c_red, WOOL, MNULL, 6, 6, 1, 3, 3, 0, 2, 0, -8, 0, -3,
mfb(bp_torso)|mfb(bp_legs), false,
{ARMORMOD_LIGHT, ARMORMOD_BULKY, ARMORMOD_POCKETED, ARMORMOD_FURRED,
ARMORMOD_PADDED}},
{"Coat", c_brown,LEATHER,MNULL, 14, 14, 2, 3, 2, 1, 4, 4, -6, 0, -3,
mfb(bp_torso), false,
{ARMORMOD_LIGHT, ARMORMOD_POCKETED, ARMORMOD_FURRED, ARMORMOD_PADDED,
ARMORMOD_PLATED}},
{"Mask", c_white, WOOD, MNULL, 4, 1, 2, 2, 2, 1, 2, 0, 2, 0, -2,
mfb(bp_eyes)|mfb(bp_mouth), false,
{ARMORMOD_FURRED, ARMORMOD_FURRED, ARMORMOD_NULL, ARMORMOD_NULL,
ARMORMOD_NULL}},
// Name color Materials Vol Wgt Enc Cov Thk Env Wrm Sto Bsh Cut Hit
{"Helm", c_dkgray,SILVER, MNULL, 6, 6, 2, 3, 3, 0, 1, 0, 8, 0, -2,
mfb(bp_head), false,
{ARMORMOD_BULKY, ARMORMOD_FURRED, ARMORMOD_PADDED, ARMORMOD_PLATED,
ARMORMOD_NULL}},
{"Gloves", c_ltblue,LEATHER,MNULL, 2, 1, 1, 3, 3, 1, 2, 0, -4, 0, -2,
mfb(bp_hands), true,
{ARMORMOD_BULKY, ARMORMOD_FURRED, ARMORMOD_PADDED, ARMORMOD_PLATED,
ARMORMOD_NULL}},
// Name color Materials Vol Wgt Enc Cov Thk Env Wrm Sto Bsh Cut Hit
{"Boots", c_blue, LEATHER, MNULL, 6, 2, 1, 3, 3, 1, 3, 0, 4, 0, -1,
mfb(bp_feet), true,
{ARMORMOD_LIGHT, ARMORMOD_BULKY, ARMORMOD_PADDED, ARMORMOD_PLATED,
ARMORMOD_NULL}},
{"Ring", c_ltgreen, SILVER, MNULL, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, true,
{ARMORMOD_NULL, ARMORMOD_NULL, ARMORMOD_NULL, ARMORMOD_NULL, ARMORMOD_NULL}}
};
artifact_armor_form_datum artifact_armor_mod_data[NUM_ARMORMODS] = {
{"", c_white, MNULL, MNULL, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, false,
{ARMORMOD_NULL, ARMORMOD_NULL, ARMORMOD_NULL, ARMORMOD_NULL, ARMORMOD_NULL}},
// Description; "It is ..." or "They are ..."
{"very thin and light.", c_white, MNULL, MNULL,
// Vol Wgt Enc Cov Thk Env Wrm Sto
-4, -8, -2, -1, -1, -1, -1, 0, 0, 0, 0, 0, false,
{ARMORMOD_NULL, ARMORMOD_NULL, ARMORMOD_NULL, ARMORMOD_NULL, ARMORMOD_NULL}},
{"extremely bulky.", c_white, MNULL, MNULL,
8, 10, 2, 1, 1, 0, 1, 0, 0, 0, 0, 0, false,
{ARMORMOD_NULL, ARMORMOD_NULL, ARMORMOD_NULL, ARMORMOD_NULL, ARMORMOD_NULL}},
{"covered in pockets.", c_white, MNULL, MNULL,
1, 1, 1, 0, 0, 0, 0, 16, 0, 0, 0, 0, false,
{ARMORMOD_NULL, ARMORMOD_NULL, ARMORMOD_NULL, ARMORMOD_NULL, ARMORMOD_NULL}},
{"disgustingly furry.", c_white, WOOL, MNULL,
// Vol Wgt Enc Dmg Cut Env Wrm Sto
4, 2, 1, 1, 1, 1, 3, 0, 0, 0, 0, 0, false,
{ARMORMOD_NULL, ARMORMOD_NULL, ARMORMOD_NULL, ARMORMOD_NULL, ARMORMOD_NULL}},
{"leather-padded.", c_white, LEATHER, MNULL,
4, 4, 1, 1, 1, 0, 1, -3, 0, 0, 0, 0, false,
{ARMORMOD_NULL, ARMORMOD_NULL, ARMORMOD_NULL, ARMORMOD_NULL, ARMORMOD_NULL}},
{"plated in iron.", c_white, IRON, MNULL,
4, 12, 3, 2, 2, 0, 1, -4, 0, 0, 0, 0, false,
{ARMORMOD_NULL, ARMORMOD_NULL, ARMORMOD_NULL, ARMORMOD_NULL, ARMORMOD_NULL}},
};
std::string artifact_adj[NUM_ART_ADJS] = {
"Forbidden", "Unknown", "Forgotten", "Hideous", "Eldritch",
"Gelatinous", "Ancient", "Cursed", "Bloody", "Undying",
"Shadowy", "Silent", "Cyclopean", "Fungal", "Unspeakable",
"Grotesque", "Frigid", "Shattered", "Sleeping", "Repellent"
};
// Prepending + makes it proper, e.g. "The Forbidden Abyss"
std::string artifact_noun[NUM_ART_NOUNS] = {
"Technique", "Dreams", "Beasts", "Evil", "Miasma",
"+Abyss", "+City", "Shadows", "Shade", "Illusion",
"Justice", "+Necropolis", "Ichor", "+Monolith", "Aeons",
"Graves", "Horrors", "Suffering", "Death", "Horror"
};
//see below, move them so gettext and be applied properly
artifact_shape_datum artifact_shape_data[ARTSHAPE_MAX];
artifact_property_datum artifact_property_data[ARTPROP_MAX];
artifact_tool_form_datum artifact_tool_form_data[NUM_ARTTOOLFORMS];
artifact_weapon_datum artifact_weapon_data[NUM_ARTWEAPS];
artifact_armor_form_datum artifact_armor_form_data[NUM_ARTARMFORMS];
artifact_armor_form_datum artifact_armor_mod_data[NUM_ARMORMODS];
std::string artifact_adj[NUM_ART_ADJS];
std::string artifact_noun[NUM_ART_NOUNS];
std::string artifact_name(std::string type);
void game::init_artifacts()
{
artifact_shape_datum tmp_artifact_shape_data[ARTSHAPE_MAX] = {
{"BUG", "BUG", 0, 0, 0, 0},
{_("sphere"), _("smooth sphere"), 2, 4, 1, 1150},
{_("rod"), _("tapered rod"), 1, 7, 1, 800},
{_("teardrop"), _("teardrop-shaped stone"), 2, 6, 1, 950},
{_("lamp"), _("hollow, transparent cube"), 4, 9, 1, 350},
{_("snake"), _("winding, flexible rod"), 0, 8, 1, 950},
{_("disc"), _("smooth disc"), 4, 6, 200, 400},
{_("beads"), _("string of beads"), 3, 7, 1, 700},
{_("napkin"), _("very thin sheet"), 0, 3, 1, 350},
{_("urchin"), _("spiked sphere"), 3, 5, 200, 700},
{_("jelly"), _("malleable blob"), 2, 8, 200, 450},
{_("spiral"), _("spiraling rod"), 5, 6, 200, 350},
{_("pin"), _("pointed rod"), 1, 5, 100, 1050},
{_("tube"), _("hollow tube"), 2, 5, 350, 700},
{_("pyramid"), _("regular tetrahedron"), 3, 7, 200, 450},
{_("crystal"), _("translucent crystal"), 1, 6, 200, 800},
{_("knot"), _("twisted, knotted cord"), 2, 6, 100, 800},
{_("crescent"), _("crescent-shaped stone"), 2, 6, 200, 700}
};
for(int i=0;i<ARTSHAPE_MAX;i++) {artifact_shape_data[i]=tmp_artifact_shape_data[i];}
artifact_property_datum tmp_artifact_property_data[ARTPROP_MAX] = {
{"BUG", "BUG",
{AEP_NULL, AEP_NULL, AEP_NULL, AEP_NULL},
{AEP_NULL, AEP_NULL, AEP_NULL, AEP_NULL},
{AEA_NULL, AEA_NULL, AEA_NULL, AEA_NULL},
{AEA_NULL, AEA_NULL, AEA_NULL, AEA_NULL}
},
{_("wriggling"), _("is constantly wriggling"),
{AEP_SPEED_UP, AEP_SNAKES, AEP_NULL, AEP_NULL},
{AEP_DEX_DOWN, AEP_FORCE_TELEPORT, AEP_SICK, AEP_NULL},
{AEA_TELEPORT, AEA_ADRENALINE, AEA_NULL, AEA_NULL},
{AEA_MUTATE, AEA_ATTENTION, AEA_VOMIT, AEA_NULL}
},
{_("glowing"), _("glows faintly"),
{AEP_INT_UP, AEP_GLOW, AEP_CLAIRVOYANCE, AEP_NULL},
{AEP_RADIOACTIVE, AEP_MUTAGENIC, AEP_ATTENTION, AEP_NULL},
{AEA_LIGHT, AEA_LIGHT, AEA_LIGHT, AEA_NULL},
{AEA_ATTENTION, AEA_TELEGLOW, AEA_FLASH, AEA_SHADOWS}
},
{_("humming"), _("hums very quietly"),
{AEP_ALL_UP, AEP_PSYSHIELD, AEP_NULL, AEP_NULL},
{AEP_SCHIZO, AEP_PER_DOWN, AEP_INT_DOWN, AEP_NULL},
{AEA_PULSE, AEA_ENTRANCE, AEA_NULL, AEA_NULL},
{AEA_NOISE, AEA_NOISE, AEA_SCREAM, AEA_NULL}
},
{_("moving"), _("shifts from side to side slowly"),
{AEP_STR_UP, AEP_DEX_UP, AEP_SPEED_UP, AEP_NULL},
{AEP_HUNGER, AEP_PER_DOWN, AEP_FORCE_TELEPORT, AEP_NULL},
{AEA_TELEPORT, AEA_TELEPORT, AEA_MAP, AEA_NULL},
{AEA_PARALYZE, AEA_VOMIT, AEA_VOMIT, AEA_NULL}
},
{_("whispering"), _("makes very faint whispering sounds"),
{AEP_CLAIRVOYANCE, AEP_EXTINGUISH, AEP_STEALTH, AEP_NULL},
{AEP_EVIL, AEP_SCHIZO, AEP_ATTENTION, AEP_NULL},
{AEA_FATIGUE, AEA_ENTRANCE, AEA_ENTRANCE, AEA_NULL},
{AEA_ATTENTION, AEA_SCREAM, AEA_SCREAM, AEA_SHADOWS}
},
{_("breathing"),
_("shrinks and grows very slightly with a regular pulse, as if breathing"),
{AEP_SAP_LIFE, AEP_ALL_UP, AEP_SPEED_UP, AEP_CARRY_MORE},
{AEP_HUNGER, AEP_THIRST, AEP_SICK, AEP_BAD_WEATHER},
{AEA_ADRENALINE, AEA_HEAL, AEA_ENTRANCE, AEA_GROWTH},
{AEA_MUTATE, AEA_ATTENTION, AEA_SHADOWS, AEA_NULL}
},
{_("dead"), _("is icy cold to the touch"),
{AEP_INVISIBLE, AEP_CLAIRVOYANCE, AEP_EXTINGUISH, AEP_SAP_LIFE},
{AEP_HUNGER, AEP_EVIL, AEP_ALL_DOWN, AEP_SICK},
{AEA_BLOOD, AEA_HURTALL, AEA_NULL, AEA_NULL},
{AEA_PAIN, AEA_SHADOWS, AEA_DIM, AEA_VOMIT}
},
{_("itchy"), _("makes your skin itch slightly when it is close"),
{AEP_DEX_UP, AEP_SPEED_UP, AEP_PSYSHIELD, AEP_NULL},
{AEP_RADIOACTIVE, AEP_MUTAGENIC, AEP_SICK, AEP_NULL},
{AEA_ADRENALINE, AEA_BLOOD, AEA_HEAL, AEA_BUGS},
{AEA_RADIATION, AEA_PAIN, AEA_PAIN, AEA_VOMIT}
},
{_("glittering"), _("glitters faintly under direct light"),
{AEP_INT_UP, AEP_EXTINGUISH, AEP_GLOW, AEP_NULL},
{AEP_SMOKE, AEP_ATTENTION, AEP_NULL, AEP_NULL},
{AEA_MAP, AEA_LIGHT, AEA_CONFUSED, AEA_ENTRANCE},
{AEA_RADIATION, AEA_MUTATE, AEA_ATTENTION, AEA_FLASH}
},
{_("electric"), _("very weakly shocks you when touched"),
{AEP_RESIST_ELECTRICITY, AEP_DEX_UP, AEP_SPEED_UP, AEP_PSYSHIELD},
{AEP_THIRST, AEP_SMOKE, AEP_STR_DOWN, AEP_BAD_WEATHER},
{AEA_STORM, AEA_ADRENALINE, AEA_LIGHT, AEA_NULL},
{AEA_PAIN, AEA_PARALYZE, AEA_FLASH, AEA_FLASH}
},
{_("slimy"), _("feels slimy"),
{AEP_SNAKES, AEP_STEALTH, AEP_EXTINGUISH, AEP_SAP_LIFE},
{AEP_THIRST, AEP_DEX_DOWN, AEP_SPEED_DOWN, AEP_SICK},
{AEA_BLOOD, AEA_ACIDBALL, AEA_GROWTH, AEA_ACIDBALL},
{AEA_MUTATE, AEA_MUTATE, AEA_VOMIT, AEA_VOMIT}
},
{_("engraved"), _("is covered with odd etchings"),
{AEP_CLAIRVOYANCE, AEP_INVISIBLE, AEP_PSYSHIELD, AEP_SAP_LIFE},
{AEP_EVIL, AEP_ATTENTION, AEP_NULL, AEP_NULL},
{AEA_FATIGUE, AEA_TELEPORT, AEA_HEAL, AEA_FATIGUE},
{AEA_ATTENTION, AEA_ATTENTION, AEA_TELEGLOW, AEA_DIM}
},
{_("crackling"), _("occasionally makes a soft crackling sound"),
{AEP_EXTINGUISH, AEP_RESIST_ELECTRICITY, AEP_NULL, AEP_NULL},
{AEP_SMOKE, AEP_RADIOACTIVE, AEP_MOVEMENT_NOISE, AEP_NULL},
{AEA_STORM, AEA_FIREBALL, AEA_PULSE, AEA_NULL},
{AEA_PAIN, AEA_PARALYZE, AEA_NOISE, AEA_NOISE}
},
{_("warm"), _("is warm to the touch"),
{AEP_STR_UP, AEP_EXTINGUISH, AEP_GLOW, AEP_NULL},
{AEP_SMOKE, AEP_RADIOACTIVE, AEP_NULL, AEP_NULL},
{AEA_FIREBALL, AEA_FIREBALL, AEA_FIREBALL, AEA_LIGHT},
{AEA_FIRESTORM, AEA_FIRESTORM, AEA_TELEGLOW, AEA_NULL}
},
{_("rattling"), _("makes a rattling sound when moved"),
{AEP_DEX_UP, AEP_SPEED_UP, AEP_SNAKES, AEP_CARRY_MORE},
{AEP_ATTENTION, AEP_INT_DOWN, AEP_MOVEMENT_NOISE, AEP_MOVEMENT_NOISE},
{AEA_BLOOD, AEA_PULSE, AEA_BUGS, AEA_NULL},
{AEA_PAIN, AEA_ATTENTION, AEA_NOISE, AEA_NULL}
},
{_("scaled"), _("has a surface reminiscent of reptile scales"),
{AEP_SNAKES, AEP_SNAKES, AEP_SNAKES, AEP_STEALTH},
{AEP_THIRST, AEP_MUTAGENIC, AEP_SPEED_DOWN, AEP_NULL},
{AEA_ADRENALINE, AEA_BUGS, AEA_GROWTH, AEA_NULL},
{AEA_MUTATE, AEA_SCREAM, AEA_DIM, AEA_NULL}
},
{_("fractal"),
_("has a self-similar pattern which repeats until it is too small for you to see"),
{AEP_ALL_UP, AEP_ALL_UP, AEP_CLAIRVOYANCE, AEP_PSYSHIELD},
{AEP_SCHIZO, AEP_ATTENTION, AEP_FORCE_TELEPORT, AEP_BAD_WEATHER},
{AEA_STORM, AEA_FATIGUE, AEA_TELEPORT, AEA_NULL},
{AEA_RADIATION, AEA_MUTATE, AEA_TELEGLOW, AEA_TELEGLOW}
}
};
for(int i=0;i<ARTPROP_MAX;i++) {artifact_property_data[i]=tmp_artifact_property_data[i];}
artifact_tool_form_datum tmp_artifact_tool_form_data[NUM_ARTTOOLFORMS] = {
{"", '*', c_white, "null", "null", 0, 0, 0, 0, ARTWEAP_BULK,
{ARTWEAP_NULL, ARTWEAP_NULL, ARTWEAP_NULL}},
{_("Harp"), ';', c_yellow, "wood", "null", 20, 30, 1150, 2100, ARTWEAP_BULK,
{ARTWEAP_SPEAR, ARTWEAP_SWORD, ARTWEAP_KNIFE}},
{_("Staff"), '/', c_brown, "wood", "null", 6, 12, 450, 1150, ARTWEAP_CLUB,
{ARTWEAP_BULK, ARTWEAP_SPEAR, ARTWEAP_KNIFE}},
{_("Sword"), '/', c_ltblue, "steel", "null", 8, 14, 900, 3259, ARTWEAP_SWORD,
{ARTWEAP_BULK, ARTWEAP_NULL, ARTWEAP_NULL}},
{_("Dagger"), ';', c_ltblue, "steel", "null", 1, 4, 100, 700, ARTWEAP_KNIFE,
{ARTWEAP_NULL, ARTWEAP_NULL, ARTWEAP_NULL}},
{_("Cube"), '*', c_white, "steel", "null", 1, 3, 100, 2300, ARTWEAP_BULK,
{ARTWEAP_SPEAR, ARTWEAP_NULL, ARTWEAP_NULL}}
};
for(int i=0;i<NUM_ARTTOOLFORMS;i++) {artifact_tool_form_data[i]=tmp_artifact_tool_form_data[i];}
artifact_weapon_datum tmp_artifact_weapon_data[NUM_ARTWEAPS] = {
{"", 0, 0, 0, 0, 0, 0, 0, 0, ""},
// Adjective Vol,wgt Bash Cut To-Hit tags
{_("Heavy"), 0,1400, 10, 20, 0, 0, -2, 0,
""},
{_("Knobbed"), 1,250, 14, 30, 0, 0, -1, 1,
""},
{_("Spiked"), 1,100, 0, 0, 20, 40, -1, 1,
"SPEAR"},
{_("Edged"), 2,450, 0, 0, 20, 50, -1, 2,
""},
{_("Bladed"), 1,2250, 0, 0, 12, 30, -1, 1,
"STAB"}
};
for(int i=0;i<NUM_ARTWEAPS;i++) {artifact_weapon_data[i]=tmp_artifact_weapon_data[i];}
artifact_armor_form_datum tmp_artifact_armor_form_data[NUM_ARTARMFORMS] = {
{"", c_white, "null", "null", 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, false,
{ARMORMOD_NULL, ARMORMOD_NULL, ARMORMOD_NULL, ARMORMOD_NULL, ARMORMOD_NULL}},
// Name color Materials Vol Wgt Enc Cov Thk Env Wrm Sto Bsh Cut Hit
{_("Robe"), c_red, "wool", "null", 6, 700, 1, 3, 3, 0, 2, 0, -8, 0, -3,
mfb(bp_torso)|mfb(bp_legs), false,
{ARMORMOD_LIGHT, ARMORMOD_BULKY, ARMORMOD_POCKETED, ARMORMOD_FURRED,
ARMORMOD_PADDED}},
{_("Coat"), c_brown,"leather","null", 14, 1600, 2, 3, 2, 1, 4, 4, -6, 0, -3,
mfb(bp_torso), false,
{ARMORMOD_LIGHT, ARMORMOD_POCKETED, ARMORMOD_FURRED, ARMORMOD_PADDED,
ARMORMOD_PLATED}},
{_("Mask"), c_white, "wood", "null", 4, 100, 2, 2, 2, 1, 2, 0, 2, 0, -2,
mfb(bp_eyes)|mfb(bp_mouth), false,
{ARMORMOD_FURRED, ARMORMOD_FURRED, ARMORMOD_NULL, ARMORMOD_NULL,
ARMORMOD_NULL}},
// Name color Materials Vol Wgt Enc Cov Thk Env Wrm Sto Bsh Cut Hit
{_("Helm"), c_dkgray, "silver", "null", 6, 700, 2, 3, 3, 0, 1, 0, 8, 0, -2,
mfb(bp_head), false,
{ARMORMOD_BULKY, ARMORMOD_FURRED, ARMORMOD_PADDED, ARMORMOD_PLATED,
ARMORMOD_NULL}},
{_("Gloves"), c_ltblue,"leather","null", 2, 100, 1, 3, 3, 1, 2, 0, -4, 0, -2,
mfb(bp_hands), true,
{ARMORMOD_BULKY, ARMORMOD_FURRED, ARMORMOD_PADDED, ARMORMOD_PLATED,
ARMORMOD_NULL}},
// Name color Materials Vol Wgt Enc Cov Thk Env Wrm Sto Bsh Cut Hit
{_("Boots"), c_blue, "leather", "null", 6, 250, 1, 3, 3, 1, 3, 0, 4, 0, -1,
mfb(bp_feet), true,
{ARMORMOD_LIGHT, ARMORMOD_BULKY, ARMORMOD_PADDED, ARMORMOD_PLATED,
ARMORMOD_NULL}},
{_("Ring"), c_ltgreen, "silver", "null", 0, 4, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, true,
{ARMORMOD_NULL, ARMORMOD_NULL, ARMORMOD_NULL, ARMORMOD_NULL, ARMORMOD_NULL}}
};
for(int i=0;i<NUM_ARTARMFORMS;i++) {artifact_armor_form_data[i]=tmp_artifact_armor_form_data[i];}
artifact_armor_form_datum tmp_artifact_armor_mod_data[NUM_ARMORMODS] = {
{"", c_white, "null", "null", 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, false,
{ARMORMOD_NULL, ARMORMOD_NULL, ARMORMOD_NULL, ARMORMOD_NULL, ARMORMOD_NULL}},
// Description; "It is ..." or "They are ..."
{_("very thin and light."), c_white, "null", "null",
// Vol Wgt Enc Cov Thk Env Wrm Sto
-4, -950, -2, -1, -1, -1, -1, 0, 0, 0, 0, 0, false,
{ARMORMOD_NULL, ARMORMOD_NULL, ARMORMOD_NULL, ARMORMOD_NULL, ARMORMOD_NULL}},
{_("extremely bulky."), c_white, "null", "null",
8, 1150, 2, 1, 1, 0, 1, 0, 0, 0, 0, 0, false,
{ARMORMOD_NULL, ARMORMOD_NULL, ARMORMOD_NULL, ARMORMOD_NULL, ARMORMOD_NULL}},
{_("covered in pockets."), c_white, "null", "null",
1, 150, 1, 0, 0, 0, 0, 16, 0, 0, 0, 0, false,
{ARMORMOD_NULL, ARMORMOD_NULL, ARMORMOD_NULL, ARMORMOD_NULL, ARMORMOD_NULL}},
{_("disgustingly furry."), c_white, "wool", "null",
// Vol Wgt Enc Dmg Cut Env Wrm Sto
4, 250, 1, 1, 1, 1, 3, 0, 0, 0, 0, 0, false,
{ARMORMOD_NULL, ARMORMOD_NULL, ARMORMOD_NULL, ARMORMOD_NULL, ARMORMOD_NULL}},
{_("leather-padded."), c_white, "leather", "null",
4, 450, 1, 1, 1, 0, 1, -3, 0, 0, 0, 0, false,
{ARMORMOD_NULL, ARMORMOD_NULL, ARMORMOD_NULL, ARMORMOD_NULL, ARMORMOD_NULL}},
{_("plated in iron."), c_white, "iron", "null",
4, 1400, 3, 2, 2, 0, 1, -4, 0, 0, 0, 0, false,
{ARMORMOD_NULL, ARMORMOD_NULL, ARMORMOD_NULL, ARMORMOD_NULL, ARMORMOD_NULL}},
};
for(int i=0;i<NUM_ARMORMODS;i++) {artifact_armor_mod_data[i]=tmp_artifact_armor_mod_data[i];}
std::string tmp_artifact_adj[NUM_ART_ADJS] = {
_("Forbidden"), _("Unknown"), _("Forgotten"), _("Hideous"), _("Eldritch"),
_("Gelatinous"), _("Ancient"), _("Cursed"), _("Bloody"), _("Undying"),
_("Shadowy"), _("Silent"), _("Cyclopean"), _("Fungal"), _("Unspeakable"),
_("Grotesque"), _("Frigid"), _("Shattered"), _("Sleeping"), _("Repellent")
};
for(int i=0;i<NUM_ART_ADJS;i++) {artifact_adj[i]=tmp_artifact_adj[i];}
std::string tmp_artifact_noun[NUM_ART_NOUNS] = {
_("%s Technique"), _("%s Dreams"), _("%s Beasts"), _("%s Evil"), _("%s Miasma"),
_("the %s Abyss"), _("the %s City"), _("%s Shadows"), _("%s Shade"), _("%s Illusion"),
_("%s Justice"), _("the %s Necropolis"), _("%s Ichor"), _("the %s Monolith"), _("%s Aeons"),
_("%s Graves"), _("%s Horrors"), _("%s Suffering"), _("%s Death"), _("%s Horror")
};
for(int i=0;i<NUM_ART_NOUNS;i++) {artifact_noun[i]=tmp_artifact_noun[i];}
}
itype* game::new_artifact()
{
if (one_in(2)) { // Generate a "tool" artifact
@@ -393,12 +413,7 @@ itype* game::new_artifact()
art->name = artifact_name(newname.str());
}
}
std::stringstream description;
description << "This is the " << art->name << ".\n\
It is the only one of its kind.\n\
It may have unknown powers; use 'a' to activate them.";
art->description = description.str();
art->description = string_format(_("This is the %s.\nIt is the only one of its kind.\nIt may have unknown powers; use 'a' to activate them."), art->name.c_str());
// Finally, pick some powers
art_effect_passive passive_tmp = AEP_NULL;
@@ -515,9 +530,10 @@ It may have unknown powers; use 'a' to activate them.";
art->warmth = info->warmth;
art->storage = info->storage;
std::stringstream description;
description << "This is the " << art->name << ".\n" <<
(info->plural ? "They are the only ones of their kind." :
"It is the only one of its kind.");
description << string_format(info->plural?
_("This is the %s.\nThey are the only ones of their kind.") :
_("This is the %s.\nIt is the only one of its kind."),
art->name.c_str());
// Modify the armor further
if (!one_in(4)) {
@@ -558,8 +574,10 @@ It may have unknown powers; use 'a' to activate them.";
else
art->storage = 0;
description << "\n" << (info->plural ? "They are " : "It is ") <<
modinfo->name;
description << string_format(info->plural?
_("\nThey are %s") :
_("\nIt is %s"),
modinfo->name.c_str());
}
}
@@ -590,8 +608,10 @@ It may have unknown powers; use 'a' to activate them.";
art->effects_worn.push_back(passive_tmp);
}
art->id = itypes.size();
itypes[art->id]=art;
std::stringstream artid;
artid << "artifact" << artifact_itype_ids.size();
art->id = artid.str();
itypes[art->id] = art;
artifact_itype_ids.push_back(art->id);
return art;
}
@@ -612,19 +632,19 @@ itype* game::new_natural_artifact(artifact_natural_property prop)
art->sym = ':';
art->color = c_yellow;
art->m1 = STONE;
art->m2 = MNULL;
art->m1 = "stone";
art->m2 = "null";
art->volume = rng(shape_data->volume_min, shape_data->volume_max);
art->weight = rng(shape_data->weight_min, shape_data->weight_max);
art->melee_dam = 0;
art->melee_cut = 0;
art->m_to_hit = 0;
art->name = property_data->name + " " + shape_data->name;
std::stringstream desc;
desc << "This " << shape_data->desc << " " << property_data->desc << ".";
art->description = desc.str();
art->name = rmp_format(_("<artifact_name>%1$s %2$s"), property_data->name.c_str(), shape_data->name.c_str());
art->description = rmp_format(_("<artifact_desc>This %1$s %2$s."), shape_data->desc.c_str(), property_data->desc.c_str());
// Add line breaks to the description as necessary
/*
size_t pos = 76;
while (art->description.length() - pos >= 76) {
pos = art->description.find_last_of(' ', pos);
@@ -634,7 +654,7 @@ itype* game::new_natural_artifact(artifact_natural_property prop)
art->description[pos] = '\n';
pos += 76;
}
}
}*/
// Three possibilities: good passive + bad passive, good active + bad active,
// and bad passive + good active
@@ -704,9 +724,11 @@ itype* game::new_natural_artifact(artifact_natural_property prop)
art->charge_type = art_charge( rng(ARTC_NULL + 1, NUM_ARTCS - 1) );
}
art->id = itypes.size();
std::stringstream artid;
artid << "artifact" << artifact_itype_ids.size();
art->id = artid.str();
artifact_itype_ids.push_back(art->id);
itypes[art->id]=art;
itypes[art->id] = art;
return art;
}
@@ -744,15 +766,13 @@ std::vector<art_effect_active> fill_bad_active()
std::string artifact_name(std::string type)
{
std::stringstream ret;
ret << type << " of ";
std::string ret;
const char *fmtstr = _("<artifact_name>%1$s of %2$s");
std::string noun = artifact_noun[rng(0, NUM_ART_NOUNS - 1)];
if (noun[0] == '+') {
ret << "the ";
noun = noun.substr(1); // Chop off '+'
}
ret << artifact_adj[rng(0, NUM_ART_ADJS - 1)] << " " << noun;
return ret.str();
std::string adj = artifact_adj[rng(0, NUM_ART_ADJS - 1)];
ret = string_format(noun.c_str(), adj.c_str());
ret = rmp_format(fmtstr, type.c_str(),ret.c_str());
return ret;
}
@@ -783,14 +803,14 @@ void game::process_artifact(item *it, player *p, bool wielded)
break;
case ARTC_PAIN:
if (turn.seconds() == 0) {
add_msg("You suddenly feel sharp pain for no reason.");
add_msg(_("You suddenly feel sharp pain for no reason."));
p->pain += 3 * rng(1, 3);
it->charges++;
}
break;
case ARTC_HP:
if (turn.seconds() == 0) {
add_msg("You feel your body decaying.");
add_msg(_("You feel your body decaying."));
p->hurtall(1);
it->charges++;
}
@@ -831,7 +851,7 @@ void game::process_artifact(item *it, player *p, bool wielded)
if (one_in(10)) {
int x = p->posx + rng(-1, 1), y = p->posy + rng(-1, 1);
if (m.add_field(this, x, y, fd_smoke, rng(1, 3)))
add_msg("The %s emits some smoke.", it->tname().c_str());
add_msg(_("The %s emits some smoke."), it->tname().c_str());
}
break;
@@ -841,15 +861,16 @@ void game::process_artifact(item *it, player *p, bool wielded)
case AEP_EXTINGUISH:
for (int x = p->posx - 1; x <= p->posx + 1; x++) {
for (int y = p->posy - 1; y <= p->posy + 1; y++) {
if (m.field_at(x, y).type == fd_fire) {
if (m.field_at(x, y).density == 0)
m.remove_field(x, y);
else
m.field_at(x, y).density--;
}
field &fire_field = m.field_at(x, y);
if (fire_field.findField(fd_fire)) {
if (fire_field.findField(fd_fire)->getFieldDensity() == 0) {
m.remove_field(x, y, fd_fire);
} else {
fire_field.findField(fd_fire)->setFieldDensity(fire_field.findField(fd_fire)->getFieldDensity() - 1);
}
}
}
}
break;
case AEP_HUNGER:
if (one_in(100))
@@ -863,10 +884,9 @@ void game::process_artifact(item *it, player *p, bool wielded)
case AEP_EVIL:
if (one_in(150)) { // Once every 15 minutes, on average
p->add_disease(DI_EVIL, 300, this);
p->add_disease("evil", 300);
if (!wielded && !it->is_armor())
add_msg("You have an urge to %s the %s.",
(it->is_armor() ? "wear" : "wield"), it->tname().c_str());
add_msg((it->is_armor() ? _("You have an urge to wear the %s.") : _("You have an urge to wield the %s.")), it->tname().c_str());
}
break;
@@ -936,96 +956,100 @@ void game::add_artifact_messages(std::vector<art_effect_passive> effects)
break; // No message
case AEP_SNAKES:
add_msg("Your skin feels slithery.");
add_msg(_("Your skin feels slithery."));
break;
case AEP_INVISIBLE:
add_msg("You fade into invisibility!");
add_msg(_("You fade into invisibility!"));
break;
case AEP_CLAIRVOYANCE:
add_msg("You can see through walls!");
add_msg(_("You can see through walls!"));
break;
case AEP_SUPER_CLAIRVOYANCE:
add_msg("You can see through everything!");
add_msg(_("You can see through everything!"));
break;
case AEP_STEALTH:
add_msg("Your steps stop making noise.");
add_msg(_("Your steps stop making noise."));
break;
case AEP_GLOW:
add_msg("A glow of light forms around you.");
add_msg(_("A glow of light forms around you."));
break;
case AEP_PSYSHIELD:
add_msg("Your mental state feels protected.");
add_msg(_("Your mental state feels protected."));
break;
case AEP_RESIST_ELECTRICITY:
add_msg("You feel insulated.");
add_msg(_("You feel insulated."));
break;
case AEP_CARRY_MORE:
add_msg("Your back feels strengthened.");
add_msg(_("Your back feels strengthened."));
break;
case AEP_HUNGER:
add_msg("You feel hungry.");
add_msg(_("You feel hungry."));
break;
case AEP_THIRST:
add_msg("You feel thirsty.");
add_msg(_("You feel thirsty."));
break;
case AEP_EVIL:
add_msg("You feel an evil presence...");
add_msg(_("You feel an evil presence..."));
break;
case AEP_SCHIZO:
add_msg("You feel a tickle of insanity.");
add_msg(_("You feel a tickle of insanity."));
break;
case AEP_RADIOACTIVE:
add_msg("Your skin prickles with radiation.");
add_msg(_("Your skin prickles with radiation."));
break;
case AEP_MUTAGENIC:
add_msg("You feel your genetic makeup degrading.");
add_msg(_("You feel your genetic makeup degrading."));
break;
case AEP_ATTENTION:
add_msg("You feel an otherworldly attention upon you...");
add_msg(_("You feel an otherworldly attention upon you..."));
break;
case AEP_FORCE_TELEPORT:
add_msg("You feel a force pulling you inwards.");
add_msg(_("You feel a force pulling you inwards."));
break;
case AEP_MOVEMENT_NOISE:
add_msg("You hear a rattling noise coming from inside yourself.");
add_msg(_("You hear a rattling noise coming from inside yourself."));
break;
case AEP_BAD_WEATHER:
add_msg("You feel storms coming.");
add_msg(_("You feel storms coming."));
break;
}
}
std::stringstream stat_info;
if (net_str != 0)
stat_info << "Str " << (net_str > 0 ? "+" : "") << net_str << "! ";
if (net_dex != 0)
stat_info << "Dex " << (net_dex > 0 ? "+" : "") << net_dex << "! ";
if (net_int != 0)
stat_info << "Int " << (net_int > 0 ? "+" : "") << net_int << "! ";
if (net_per != 0)
stat_info << "Per " << (net_per > 0 ? "+" : "") << net_per << "! ";
std::string stat_info = "";
if (net_str != 0) {
stat_info += string_format(_("Str %s%d! "), (net_str > 0 ? "+" : ""), net_str);
}
if (net_dex != 0) {
stat_info += string_format( _("Dex %s%d! "), (net_dex > 0 ? "+" : ""), net_dex);
}
if (net_int != 0) {
stat_info += string_format(_("Int %s%d! "), (net_int > 0 ? "+" : ""), net_int);
}
if (net_per != 0) {
stat_info += string_format(_("Per %s%d! "), (net_per > 0 ? "+" : ""), net_per);
}
if (stat_info.str().length() > 0)
add_msg(stat_info.str().c_str());
if (stat_info.length() > 0)
add_msg(stat_info.c_str());
if (net_speed != 0)
add_msg("Speed %s%d", (net_speed > 0 ? "+" : ""), net_speed);
add_msg(_("Speed %s%d! "), (net_speed > 0 ? "+" : ""), net_speed);
}
+7 -7
View File
@@ -48,8 +48,8 @@ struct artifact_tool_form_datum
std::string name;
char sym;
nc_color color;
material m1;
material m2;
std::string m1;
std::string m2;
int volume_min, volume_max;
int weight_min, weight_max;
artifact_weapon_type base_weapon;
@@ -57,7 +57,7 @@ struct artifact_tool_form_datum
/*
artifact_tool_form_datum
(std::string Name, char Sym, nc_color Color, material M1, material M2,
(std::string Name, char Sym, nc_color Color, std::string M1, std::string M2,
int Volmin, int Volmax, int Wgtmin, int Wgtmax, artifact_weapon_type Base,
artifact_weapon_type extra[3])
: name (Name), sym (Sym), color (Color), m1 (M1), m2 (M2),
@@ -108,8 +108,8 @@ struct artifact_armor_form_datum
{
std::string name;
nc_color color;
material m1;
material m2;
std::string m1;
std::string m2;
int volume, weight;
int encumb;
int coverage;
@@ -125,7 +125,7 @@ struct artifact_armor_form_datum
/*
// Constructor
artifact_armor_form_datum
(std::string Name, nc_color Color, material M1, material M2, int Volume,
(std::string Name, nc_color Color, std::string M1, std::string M2, int Volume,
int Weight, int Encumb, int Dmg_res, int Cut_res, int Env_res,
int Warmth, int Storage, int Bash, int Cut, int Hit, unsigned char Covers,
bool Plural, artifact_armor_mod Mods[5])
@@ -154,7 +154,7 @@ enum artifact_armor_form
extern artifact_armor_form_datum artifact_armor_form_data[NUM_ARTARMFORMS];
/* Armor mods alter the normal values of armor.
* If the basic armor type has MNULL as its second material, and the mod has a
* If the basic armor type has "null" as its second material, and the mod has a
* material attached, the second material will be changed.
*/
extern artifact_armor_form_datum artifact_armor_mod_data[NUM_ARMORMODS];
+796
View File
@@ -0,0 +1,796 @@
#include "game.h"
#include "auto_pickup.h"
#include "output.h"
#include "debug.h"
#include "keypress.h"
#include "item_factory.h"
#include "catacharset.h"
#include <stdlib.h>
#include <fstream>
#include <string>
std::map<std::string, std::string> mapAutoPickupItems;
std::vector<cPickupRules> vAutoPickupRules[5];
void game::show_auto_pickup()
{
save_reset_changes(false);
const int iHeaderHeight = 4;
const int iContentHeight = FULL_SCREEN_HEIGHT-2-iHeaderHeight;
const int iOffsetX = (TERMX > FULL_SCREEN_WIDTH) ? (TERMX-FULL_SCREEN_WIDTH)/2 : 0;
const int iOffsetY = (TERMY > FULL_SCREEN_HEIGHT) ? (TERMY-FULL_SCREEN_HEIGHT)/2 : 0;
std::map<int, bool> mapLines;
mapLines[3] = true;
mapLines[50] = true;
mapLines[54] = true;
//mapLines[61] = true;
//mapLines[68] = true;
const int iTotalCols = mapLines.size()-1;
WINDOW* w_auto_pickup_options = newwin(FULL_SCREEN_HEIGHT/2, FULL_SCREEN_WIDTH/2, iOffsetY + (FULL_SCREEN_HEIGHT/2)/2, iOffsetX + (FULL_SCREEN_WIDTH/2)/2);
WINDOW* w_auto_pickup_help = newwin((FULL_SCREEN_HEIGHT/2)-2, FULL_SCREEN_WIDTH * 3/4, 8 + iOffsetY + (FULL_SCREEN_HEIGHT/2)/2, iOffsetX + 19/2);
WINDOW* w_auto_pickup_border = newwin(FULL_SCREEN_HEIGHT, FULL_SCREEN_WIDTH, iOffsetY, iOffsetX);
WINDOW* w_auto_pickup_header = newwin(iHeaderHeight, FULL_SCREEN_WIDTH - 2, 1 + iOffsetY, 1 + iOffsetX);
WINDOW* w_auto_pickup = newwin(iContentHeight, FULL_SCREEN_WIDTH - 2, iHeaderHeight + 1 + iOffsetY, 1 + iOffsetX);
wborder(w_auto_pickup_border, LINE_XOXO, LINE_XOXO, LINE_OXOX, LINE_OXOX, LINE_OXXO, LINE_OOXX, LINE_XXOO, LINE_XOOX);
mvwputch(w_auto_pickup_border, 3, 0, c_ltgray, LINE_XXXO); // |-
mvwputch(w_auto_pickup_border, 3, 79, c_ltgray, LINE_XOXX); // -|
for (std::map<int, bool>::iterator iter = mapLines.begin(); iter != mapLines.end(); ++iter) {
mvwputch(w_auto_pickup_border, FULL_SCREEN_HEIGHT-1, iter->first + 1, c_ltgray, LINE_XXOX); // _|_
}
mvwprintz(w_auto_pickup_border, 0, 29, c_ltred, _(" AUTO PICKUP MANAGER "));
wrefresh(w_auto_pickup_border);
int tmpx = 0;
tmpx += shortcut_print(w_auto_pickup_header, 0, tmpx, c_white, c_ltgreen, _("<A>dd"))+2;
tmpx += shortcut_print(w_auto_pickup_header, 0, tmpx, c_white, c_ltgreen, _("<R>emove"))+2;
tmpx += shortcut_print(w_auto_pickup_header, 0, tmpx, c_white, c_ltgreen, _("<C>opy"))+2;
tmpx += shortcut_print(w_auto_pickup_header, 0, tmpx, c_white, c_ltgreen, _("<M>ove"))+2;
tmpx += shortcut_print(w_auto_pickup_header, 0, tmpx, c_white, c_ltgreen, _("<E>nable"))+2;
tmpx += shortcut_print(w_auto_pickup_header, 0, tmpx, c_white, c_ltgreen, _("<D>isable"))+2;
tmpx += shortcut_print(w_auto_pickup_header, 0, tmpx, c_white, c_ltgreen, _("<T>est"))+2;
tmpx = 0;
tmpx += shortcut_print(w_auto_pickup_header, 1, tmpx, c_white, c_ltgreen, _("<+-> Move up/down"))+2;
tmpx += shortcut_print(w_auto_pickup_header, 1, tmpx, c_white, c_ltgreen, _("<Enter>-Edit"))+2;
tmpx += shortcut_print(w_auto_pickup_header, 1, tmpx, c_white, c_ltgreen, _("<Tab>-Switch Page"))+2;
for (int i = 0; i < 78; i++) {
if (mapLines[i]) {
mvwputch(w_auto_pickup_header, 2, i, c_ltgray, LINE_OXXX);
mvwputch(w_auto_pickup_header, 3, i, c_ltgray, LINE_XOXO);
} else {
mvwputch(w_auto_pickup_header, 2, i, c_ltgray, LINE_OXOX); // Draw line under header
}
}
mvwprintz(w_auto_pickup_header, 3, 0, c_white, "#");
mvwprintz(w_auto_pickup_header, 3, 7, c_white, _("Rules"));
mvwprintz(w_auto_pickup_header, 3, 51, c_white, _("I/E"));
//mvwprintz(w_auto_pickup_header, 3, 55, c_white, "Volume");
//mvwprintz(w_auto_pickup_header, 3, 62, c_white, "Weight");
wrefresh(w_auto_pickup_header);
int iCurrentPage = 1;
int iCurrentLine = 0;
int iCurrentCol = 1;
int iStartPos = 0;
bool bStuffChanged = false;
char ch = ' ';
std::stringstream sTemp;
do {
int locx = 17;
locx += shortcut_print(w_auto_pickup_header, 2, locx, c_white, (iCurrentPage == 1) ? hilite(c_white) : c_white, _("[<Global>]"))+1;
locx = shortcut_print(w_auto_pickup_header, 2, locx, c_white, (iCurrentPage == 2) ? hilite(c_white) : c_white, _("[<Character>]"))+1;
/*
mvwprintz(w_auto_pickup_header, 2, 12 + 21, c_white, "[");
wprintz(w_auto_pickup_header, (iCurrentPage == 3) ? hilite(c_white) : c_white, "Options");
wprintz(w_auto_pickup_header, c_white, "]");
*/
wrefresh(w_auto_pickup_header);
// Clear the lines
for (int i = 0; i < iContentHeight; i++) {
for (int j = 0; j < 79; j++) {
if (mapLines[j]) {
mvwputch(w_auto_pickup, i, j, c_ltgray, LINE_XOXO);
} else {
mvwputch(w_auto_pickup, i, j, c_black, ' ');
}
}
}
if (iCurrentPage == 1 || iCurrentPage == 2) {
if (iCurrentPage == 2 && g->u.name == "") {
vAutoPickupRules[2].clear();
mvwprintz(w_auto_pickup, 8, 15, c_white, _("Please load a character first to use this page!"));
}
//Draw Scrollbar
draw_scrollbar(w_auto_pickup_border, iCurrentLine, iContentHeight, vAutoPickupRules[iCurrentPage].size(), 5);
calcStartPos(iStartPos, iCurrentLine, iContentHeight, vAutoPickupRules[iCurrentPage].size());
// display auto pickup
for (int i = iStartPos; i < vAutoPickupRules[iCurrentPage].size(); i++) {
if (i >= iStartPos && i < iStartPos + ((iContentHeight > vAutoPickupRules[iCurrentPage].size()) ? vAutoPickupRules[iCurrentPage].size() : iContentHeight)) {
nc_color cLineColor = (vAutoPickupRules[iCurrentPage][i].bActive) ? c_white : c_ltgray;
sTemp.str("");
sTemp << i + 1;
mvwprintz(w_auto_pickup, i - iStartPos, 0, cLineColor, sTemp.str().c_str());
mvwprintz(w_auto_pickup, i - iStartPos, 4, cLineColor, "");
if (iCurrentLine == i) {
wprintz(w_auto_pickup, c_yellow, ">> ");
} else {
wprintz(w_auto_pickup, c_yellow, " ");
}
wprintz(w_auto_pickup, (iCurrentLine == i && iCurrentCol == 1) ? hilite(cLineColor) : cLineColor, "%s", ((vAutoPickupRules[iCurrentPage][i].sRule == "") ? _("<empty rule>") : vAutoPickupRules[iCurrentPage][i].sRule).c_str());
mvwprintz(w_auto_pickup, i - iStartPos, 52, (iCurrentLine == i && iCurrentCol == 2) ? hilite(cLineColor) : cLineColor, "%s", ((vAutoPickupRules[iCurrentPage][i].bExclude) ? rm_prefix(_("<Exclude>E")).c_str() : rm_prefix(_("<Include>I")).c_str()));
}
}
wrefresh(w_auto_pickup);
} else if (iCurrentPage == 3) {
wborder(w_auto_pickup_options, LINE_XOXO, LINE_XOXO, LINE_OXOX, LINE_OXOX, LINE_OXXO, LINE_OOXX, LINE_XXOO, LINE_XOOX);
mvwprintz(w_auto_pickup_options, 5, 10, c_white, _("Under construction!"));
wrefresh(w_auto_pickup);
wrefresh(w_auto_pickup_options);
}
ch = input();
if (iCurrentPage == 3) {
switch(ch) {
case '\t': //Switch to next Page
iCurrentPage++;
if (iCurrentPage > 3) {
iCurrentPage = 1;
iCurrentLine = 0;
}
break;
}
} else if (iCurrentPage == 1 || iCurrentPage == 2) {
if (iCurrentPage == 2 && g->u.name == "" && ch != '\t') {
//Only allow loaded games to use the char sheet
} else if (vAutoPickupRules[iCurrentPage].size() > 0 || ch == 'a' || ch == '\t') {
switch(ch) {
case 'j': //move down
iCurrentLine++;
iCurrentCol = 1;
if (iCurrentLine >= vAutoPickupRules[iCurrentPage].size()) {
iCurrentLine = 0;
}
break;
case 'k': //move up
iCurrentLine--;
iCurrentCol = 1;
if (iCurrentLine < 0) {
iCurrentLine = vAutoPickupRules[iCurrentPage].size()-1;
}
break;
case 'a': //add new rule
case 'A':
bStuffChanged = true;
vAutoPickupRules[iCurrentPage].push_back(cPickupRules("", true, false));
iCurrentLine = vAutoPickupRules[iCurrentPage].size()-1;
break;
case 'r': //remove rule
case 'R':
bStuffChanged = true;
vAutoPickupRules[iCurrentPage].erase(vAutoPickupRules[iCurrentPage].begin() + iCurrentLine);
if (iCurrentLine > vAutoPickupRules[iCurrentPage].size()-1) {
iCurrentLine--;
}
break;
case 'c': //copy rule
case 'C':
bStuffChanged = true;
vAutoPickupRules[iCurrentPage].push_back(cPickupRules(vAutoPickupRules[iCurrentPage][iCurrentLine].sRule, vAutoPickupRules[iCurrentPage][iCurrentLine].bActive, vAutoPickupRules[iCurrentPage][iCurrentLine].bExclude));
iCurrentLine = vAutoPickupRules[iCurrentPage].size()-1;
break;
case 'm': //move rule global <-> character
case 'M':
if ((iCurrentPage == 1 && g->u.name != "") || iCurrentPage == 2) {
bStuffChanged = true;
//copy over
vAutoPickupRules[(iCurrentPage == 1) ? 2 : 1].push_back(cPickupRules(vAutoPickupRules[iCurrentPage][iCurrentLine].sRule, vAutoPickupRules[iCurrentPage][iCurrentLine].bActive, vAutoPickupRules[iCurrentPage][iCurrentLine].bExclude));
//remove old
vAutoPickupRules[iCurrentPage].erase(vAutoPickupRules[iCurrentPage].begin() + iCurrentLine);
iCurrentLine = vAutoPickupRules[(iCurrentPage == 1) ? 2 : 1].size()-1;
iCurrentPage = (iCurrentPage == 1) ? 2 : 1;
}
break;
case '\t': //Switch to next Page
iCurrentPage++;
if (iCurrentPage > 2) {
iCurrentPage = 1;
iCurrentLine = 0;
}
break;
case '\n': //Edit Col in current line
bStuffChanged = true;
if (iCurrentCol == 1) {
fold_and_print(w_auto_pickup_help, 1, 1, 999, c_white,
_(
"* is used as a Wildcard. A few Examples:\n"
"\n"
"wood arrow matches the itemname exactly\n"
"wood ar* matches items beginning with wood ar\n"
"*rrow matches items ending with rrow\n"
"*avy fle*fi*arrow multible * are allowed\n"
"heAVY*woOD*arrOW case insesitive search\n"
"")
);
wborder(w_auto_pickup_help, LINE_XOXO, LINE_XOXO, LINE_OXOX, LINE_OXOX, LINE_OXXO, LINE_OOXX, LINE_XXOO, LINE_XOOX);
wrefresh(w_auto_pickup_help);
vAutoPickupRules[iCurrentPage][iCurrentLine].sRule = trim_rule(string_input_popup(_("Pickup Rule:"), 30, vAutoPickupRules[iCurrentPage][iCurrentLine].sRule));
} else if (iCurrentCol == 2) {
vAutoPickupRules[iCurrentPage][iCurrentLine].bExclude = !vAutoPickupRules[iCurrentPage][iCurrentLine].bExclude;
}
break;
case 'e': //enable rule
case 'E':
bStuffChanged = true;
vAutoPickupRules[iCurrentPage][iCurrentLine].bActive = true;
break;
case 'd': //disable rule
case 'D':
bStuffChanged = true;
vAutoPickupRules[iCurrentPage][iCurrentLine].bActive = false;
break;
case 'h': //move left
iCurrentCol--;
if (iCurrentCol < 1) {
iCurrentCol = iTotalCols;
}
break;
case 'l': //move right
iCurrentCol++;
if (iCurrentCol > iTotalCols) {
iCurrentCol = 1;
}
break;
case '+': //move rule up
bStuffChanged = true;
if (iCurrentLine < vAutoPickupRules[iCurrentPage].size()-1) {
std::swap(vAutoPickupRules[iCurrentPage][iCurrentLine], vAutoPickupRules[iCurrentPage][iCurrentLine+1]);
iCurrentLine++;
iCurrentCol = 1;
}
break;
case '-': //move rule down
bStuffChanged = true;
if (iCurrentLine > 0) {
std::swap(vAutoPickupRules[iCurrentPage][iCurrentLine], vAutoPickupRules[iCurrentPage][iCurrentLine-1]);
iCurrentLine--;
iCurrentCol = 1;
}
break;
case 't': //test rule
case 'T':
test_pattern(iCurrentPage, iCurrentLine);
break;
}
}
}
} while(ch != 'q' && ch != 'Q' && ch != KEY_ESCAPE);
if (bStuffChanged) {
if(query_yn(_("Save changes?"))) {
save_auto_pickup(false);
if (g->u.name != "") {
save_auto_pickup(true);
}
} else {
save_reset_changes(true);
}
}
werase(w_auto_pickup);
werase(w_auto_pickup_border);
werase(w_auto_pickup_header);
werase(w_auto_pickup_options);
werase(w_auto_pickup_help);
}
void test_pattern(int iCurrentPage, int iCurrentLine)
{
std::vector<std::string> vMatchingItems;
std::string sItemName = "";
if (vAutoPickupRules[iCurrentPage][iCurrentLine].sRule == "") {
return;
}
//Loop through all itemfactory items
//TODO: somehow generate damaged, fitting or container items
for (int i = 0; i < standard_itype_ids.size(); i++) {
sItemName = item_controller->find_template(standard_itype_ids[i])->name;
if (vAutoPickupRules[iCurrentPage][iCurrentLine].bActive && auto_pickup_match(sItemName, vAutoPickupRules[iCurrentPage][iCurrentLine].sRule)) {
vMatchingItems.push_back(sItemName);
}
}
const int iOffsetX = 15 + ((TERMX > FULL_SCREEN_WIDTH) ? (TERMX-FULL_SCREEN_WIDTH)/2 : 0);
const int iOffsetY = 5 + ((TERMY > FULL_SCREEN_HEIGHT) ? (TERMY-FULL_SCREEN_HEIGHT)/2 : 0);
int iStartPos = 0;
const int iContentHeight = FULL_SCREEN_HEIGHT - 8;
const int iContentWidth = FULL_SCREEN_WIDTH - 30;
char ch;
std::stringstream sTemp;
WINDOW* w_test_rule_border = newwin(iContentHeight + 2, iContentWidth, iOffsetY, iOffsetX);
WINDOW* w_test_rule_content = newwin(iContentHeight, iContentWidth - 2, 1 + iOffsetY, 1 + iOffsetX);
wborder(w_test_rule_border, LINE_XOXO, LINE_XOXO, LINE_OXOX, LINE_OXOX, LINE_OXXO, LINE_OOXX, LINE_XXOO, LINE_XOOX);
int nmatch = vMatchingItems.size();
std::string buf = string_format(ngettext("%1$d item matches: %2$s", "%1$d items match: %2$s", nmatch), nmatch, vAutoPickupRules[iCurrentPage][iCurrentLine].sRule.c_str());
mvwprintz(w_test_rule_border, 0, iContentWidth/2 - utf8_width(buf.c_str())/2, hilite(c_white), buf.c_str());
mvwprintz(w_test_rule_border, iContentHeight + 1, 1, red_background(c_white), _("Won't display damaged, fits and can/bottle items"));
wrefresh(w_test_rule_border);
iCurrentLine = 0;
do {
// Clear the lines
for (int i = 0; i < iContentHeight; i++) {
for (int j = 0; j < 79; j++) {
mvwputch(w_test_rule_content, i, j, c_black, ' ');
}
}
calcStartPos(iStartPos, iCurrentLine, iContentHeight, vMatchingItems.size());
// display auto pickup
for (int i = iStartPos; i < vMatchingItems.size(); i++) {
if (i >= iStartPos && i < iStartPos + ((iContentHeight > vMatchingItems.size()) ? vMatchingItems.size() : iContentHeight)) {
nc_color cLineColor = c_white;
sTemp.str("");
sTemp << i + 1;
mvwprintz(w_test_rule_content, i - iStartPos, 0, cLineColor, sTemp.str().c_str());
mvwprintz(w_test_rule_content, i - iStartPos, 4, cLineColor, "");
if (iCurrentLine == i) {
wprintz(w_test_rule_content, c_yellow, ">> ");
} else {
wprintz(w_test_rule_content, c_yellow, " ");
}
wprintz(w_test_rule_content, (iCurrentLine == i) ? hilite(cLineColor) : cLineColor, vMatchingItems[i].c_str());
}
}
wrefresh(w_test_rule_content);
ch = input();
switch(ch) {
case 'j': //move down
iCurrentLine++;
if (iCurrentLine >= vMatchingItems.size()) {
iCurrentLine = 0;
}
break;
case 'k': //move up
iCurrentLine--;
if (iCurrentLine < 0) {
iCurrentLine = vMatchingItems.size()-1;
}
break;
}
} while(ch == 'j' || ch == 'k');
werase(w_test_rule_border);
werase(w_test_rule_content);
}
void load_auto_pickup(bool bCharacter)
{
std::ifstream fin;
std::string sFile = "data/auto_pickup.txt";
if (bCharacter) {
sFile = "save/" + base64_encode(g->u.name) + ".apu.txt";
}
fin.open(sFile.c_str());
if(!fin.is_open()) {
fin.close();
create_default_auto_pickup(bCharacter);
fin.open(sFile.c_str());
if(!fin.is_open()) {
DebugLog() << "Could neither read nor create " << sFile << "\n";
return;
}
}
vAutoPickupRules[(bCharacter) ? 2 : 1].clear();
std::string sLine;
while(!fin.eof()) {
getline(fin, sLine);
if(sLine != "" && sLine[0] != '#') {
int iNum = std::count(sLine.begin(), sLine.end(), ';');
if(iNum != 2) {
/*int iNum = std::count(sLine.begin(), sLine.end(), ' ');
if(iNum == 1) { //its an option! hurray
} else {*/
DebugLog() << "Bad Rule: " << sLine << "\n";
//}
} else {
std::string sRule = "";
bool bActive = true;
bool bExclude = false;
size_t iPos = 0;
int iCol = 1;
do {
iPos = sLine.find(";");
std::string sTemp = (iPos == std::string::npos) ? sLine : sLine.substr(0, iPos);
if (iCol == 1) {
sRule = sTemp;
} else if (iCol == 2) {
bActive = (sTemp == "T" || sTemp == "True") ? true : false;
} else if (iCol == 3) {
bExclude = (sTemp == "T" || sTemp == "True") ? true : false;
}
iCol++;
if (iPos != std::string::npos) {
sLine = sLine.substr(iPos+1, sLine.size());
}
} while(iPos != std::string::npos);
vAutoPickupRules[(bCharacter) ? 2 : 1].push_back(cPickupRules(sRule, bActive, bExclude));
}
}
}
fin.close();
merge_vector();
createPickupRules();
}
void merge_vector()
{
vAutoPickupRules[0].clear();
for (int i=1; i <= 2; i++) { //Loop through global 1 and character 2
for (int j=0; j < vAutoPickupRules[i].size(); j++) {
if (vAutoPickupRules[i][j].sRule != "") {
vAutoPickupRules[0].push_back(cPickupRules(vAutoPickupRules[i][j].sRule, vAutoPickupRules[i][j].bActive, vAutoPickupRules[i][j].bExclude));
}
}
}
}
bool hasPickupRule(std::string sRule)
{
for (int i = 0; i < vAutoPickupRules[2].size(); i++) {
if (sRule.length() == (vAutoPickupRules[2][i].sRule).length() && ci_find_substr(sRule, vAutoPickupRules[2][i].sRule) != -1) {
return true;
}
}
return false;
}
void addPickupRule(std::string sRule)
{
vAutoPickupRules[2].push_back(cPickupRules(sRule, true, false));
merge_vector();
createPickupRules();
}
void removePickupRule(std::string sRule)
{
for (int i = 0; i < vAutoPickupRules[2].size(); i++) {
if (sRule.length() == (vAutoPickupRules[2][i].sRule).length() && ci_find_substr(sRule, vAutoPickupRules[2][i].sRule) != -1) {
vAutoPickupRules[2].erase(vAutoPickupRules[2].begin() + i);
merge_vector();
createPickupRules();
break;
}
}
}
void createPickupRules(const std::string sItemNameIn)
{
if (sItemNameIn == "") {
mapAutoPickupItems.clear();
}
std::string sItemName = "";
for (int iPattern = 0; iPattern < vAutoPickupRules[0].size(); iPattern++) { //Includes only
if (!vAutoPickupRules[0][iPattern].bExclude) {
if (sItemNameIn != "") {
if (vAutoPickupRules[0][iPattern].bActive && auto_pickup_match(sItemNameIn, vAutoPickupRules[0][iPattern].sRule)) {
mapAutoPickupItems[sItemNameIn] = "true";
break;
}
} else {
//Check include paterns against all itemfactory items
for (int i = 0; i < standard_itype_ids.size(); i++) {
sItemName = item_controller->find_template(standard_itype_ids[i])->name;
if (vAutoPickupRules[0][iPattern].bActive && auto_pickup_match(sItemName, vAutoPickupRules[0][iPattern].sRule)) {
mapAutoPickupItems[sItemName] = "true";
}
}
}
}
}
for (int iPattern = 0; iPattern < vAutoPickupRules[0].size(); iPattern++) { //Excludes only
if (vAutoPickupRules[0][iPattern].bExclude) {
if (sItemNameIn != "") {
if (vAutoPickupRules[0][iPattern].bActive && auto_pickup_match(sItemNameIn, vAutoPickupRules[0][iPattern].sRule)) {
mapAutoPickupItems[sItemNameIn] = "false";
return;
}
} else {
//Check exclude paterns against all included items
for (std::map<std::string, std::string>::iterator iter = mapAutoPickupItems.begin(); iter != mapAutoPickupItems.end(); ++iter) {
if (vAutoPickupRules[0][iPattern].bActive && auto_pickup_match(iter->first, vAutoPickupRules[0][iPattern].sRule)) {
mapAutoPickupItems[iter->first] = "false";
}
}
}
}
}
}
void save_reset_changes(bool bReset)
{
for (int i=1; i <= 2; i++) { //Loop through global 1 and character 2
vAutoPickupRules[i + ((bReset) ? 0: 2)].clear();
for (int j=0; j < vAutoPickupRules[i + ((bReset) ? 2: 0)].size(); j++) {
if (vAutoPickupRules[i + ((bReset) ? 2: 0)][j].sRule != "") {
vAutoPickupRules[i + ((bReset) ? 0: 2)].push_back(cPickupRules(vAutoPickupRules[i + ((bReset) ? 2: 0)][j].sRule, vAutoPickupRules[i + ((bReset) ? 2: 0)][j].bActive, vAutoPickupRules[i + ((bReset) ? 2: 0)][j].bExclude));
}
}
}
merge_vector();
}
std::string auto_pickup_header(bool bCharacter)
{
std::string sTemp = (bCharacter) ? "character": "global";
return "# This is the " + sTemp + " auto pickup rules file. The format is\n\
# <pickup rule>;<dis/enabled>;<in/exclude>\n\n\
# <pickup rule> Simple text. No other special characters except spaces and *\n\
# <dis/enabled> Can be T(rue) of F(alse)\n\
# <in/exclude> Can be T(rue) of F(alse)\n\
#\n\
# If # is at the start of a line, it is considered a comment and is ignored.\n\
# In-line commenting is not allowed. I think.\n\
#\n\
# If you want to restore the default auto pickup rules file, simply delete this file.\n\
# A new auto_pickup.txt will be created next time you play.\
\n\n";
}
void save_auto_pickup(bool bCharacter)
{
std::ofstream fout;
std::string sFile = "data/auto_pickup.txt";
if (bCharacter) {
sFile = "save/" + base64_encode(g->u.name) + ".apu.txt";
std::ifstream fin;
fin.open(("save/" + base64_encode(g->u.name) + ".sav").c_str());
if(!fin.is_open()) {
return;
}
fin.close();
}
fout.open(sFile.c_str());
if(!fout.is_open()) {
return;
}
fout << auto_pickup_header(bCharacter) << std::endl;
for(int i = 0; i < vAutoPickupRules[(bCharacter) ? 2 : 1].size(); i++) {
fout << vAutoPickupRules[(bCharacter) ? 2 : 1][i].sRule << ";";
fout << (vAutoPickupRules[(bCharacter) ? 2 : 1][i].bActive ? "T" : "F") << ";";
fout << (vAutoPickupRules[(bCharacter) ? 2 : 1][i].bExclude ? "T" : "F");
fout << "\n";
}
if (!bCharacter) {
merge_vector();
createPickupRules();
}
}
void create_default_auto_pickup(bool bCharacter)
{
std::ofstream fout;
std::string sFile = "data/auto_pickup.txt";
if (bCharacter) {
sFile = "save/" + base64_encode(g->u.name) + ".apu.txt";
}
fout.open(sFile.c_str());
if(!fout.is_open()) {
return;
}
fout << auto_pickup_header(bCharacter);
fout.close();
}
std::string trim_rule(std::string sPattern)
{
size_t iPos = 0;
//Remove all double ** in pattern
while((iPos = sPattern.find("**")) != std::string::npos) {
sPattern = sPattern.substr(0, iPos) + sPattern.substr(iPos+1, sPattern.length()-iPos-1);
}
return sPattern;
}
bool auto_pickup_match(std::string sText, std::string sPattern)
{
//case insenitive search
/* Possible patterns
*
wooD
wood*
*wood
Wood*aRrOW
wood*arrow*
*wood*arrow
*wood*hard* *x*y*z*arrow*
*/
if (sText == "") {
return false;
} else if (sText == "*") {
return true;
}
size_t iPos;
std::vector<std::string> vPattern;
sPattern = trim_rule(sPattern);
split(sPattern, '*', vPattern);
size_t iNum = vPattern.size();
if (iNum == 0) { //should never happen
return false;
} else if (iNum == 1) { // no * found
if (sText.length() == vPattern[0].length() && ci_find_substr(sText, vPattern[0]) != -1) {
return true;
}
return false;
}
for (int i=0; i < vPattern.size(); i++) {
if (i==0 && vPattern[i] != "") { //beginning: ^vPat[i]
if (sText.length() < vPattern[i].length() || ci_find_substr(sText.substr(0, vPattern[i].length()), vPattern[i]) == -1) {
//debugmsg(("1: sText: " + sText + " | sPattern: ^" + vPattern[i] + " | no match").c_str());
return false;
}
sText = sText.substr(vPattern[i].length(), sText.length()-vPattern[i].length());
} else if (i==vPattern.size()-1 && vPattern[i] != "") { //linenend: vPat[i]$
if (sText.length() < vPattern[i].length() || ci_find_substr(sText.substr(sText.length()-vPattern[i].length(), vPattern[i].length()), vPattern[i]) == -1) {
//debugmsg(("2: sText: " + sText + " | sPattern: " + vPattern[i] + "$ | no match").c_str());
return false;
}
} else { //inbetween: vPat[i]
if (vPattern[i] != "") {
if ((iPos = ci_find_substr(sText, vPattern[i])) == -1) {
//debugmsg(("3: sText: " + sText + " | sPattern: " + vPattern[i] + " | no match").c_str());
return false;
}
sText = sText.substr(iPos+vPattern[i].length(), sText.length()-iPos);
}
}
}
return true;
}
std::vector<std::string> &split(const std::string &s, char delim, std::vector<std::string> &elems) {
std::stringstream ss(s);
std::string item;
elems.clear();
while (std::getline(ss, item, delim)) {
elems.push_back(item);
}
if ( s.substr(s.length()-1, 1) == "*") {
elems.push_back("");
}
return elems;
}
/*
// string test
std::string str1 = "FIRST HELLO";
std::string str2 = "hello";
int f1 = ci_find_substr( str1, str2 );
// wstring test
std::wstring wstr1 = L"ОПЯТЬ ПРИВЕТ";
std::wstring wstr2 = L"привет";
int f2 = ci_find_substr( wstr1, wstr2 );
*/
// templated version of my_equal so it could work with both char and wchar_t
template<typename charT>
struct my_equal {
public:
my_equal( const std::locale& loc ) : loc_(loc) {}
bool operator()(charT ch1, charT ch2) {
return std::toupper(ch1, loc_) == std::toupper(ch2, loc_);
}
private:
const std::locale& loc_;
};
// find substring (case insensitive)
template<typename charT>
int ci_find_substr( const charT& str1, const charT& str2, const std::locale& loc )
{
typename charT::const_iterator it = std::search( str1.begin(), str1.end(), str2.begin(), str2.end(), my_equal<typename charT::value_type>(loc) );
if ( it != str1.end() ) return it - str1.begin();
else return -1; // not found
}
+51
View File
@@ -0,0 +1,51 @@
#ifndef _AUTO_PICKUP_H_
#define _AUTO_PICKUP_H_
#include <string>
#include <vector>
#include <locale>
#include <algorithm>
class cPickupRules {
public:
std::string sRule;
bool bActive;
bool bExclude;
cPickupRules() {
this->sRule = "";
this->bActive = false;
this->bExclude = false;
}
cPickupRules(std::string sRuleIn, bool bActiveIn, bool bExcludeIn) {
this->sRule = sRuleIn;
this->bActive = bActiveIn;
this->bExclude = bExcludeIn;
}
~cPickupRules() {};
};
extern std::map<std::string, std::string> mapAutoPickupItems;
extern std::vector<cPickupRules> vAutoPickupRules[5];
void test_pattern(int iCurrentPage, int iCurrentLine);
std::string trim_rule(std::string sPattern);
void merge_vector();
bool hasPickupRule(std::string sRule);
void addPickupRule(std::string sRule);
void removePickupRule(std::string sRule);
void createPickupRules(const std::string sItemNameIn = "");
void save_reset_changes(bool bReset);
void show_auto_pickup();
void load_auto_pickup(bool bCharacter);
void save_auto_pickup(bool bCharacter);
std::string auto_pickup_header(bool bCharacter);
void create_default_auto_pickup(bool bCharacter);
bool auto_pickup_match(std::string sText, std::string sPattern);
std::vector<std::string> &split(const std::string &s, char delim, std::vector<std::string> &elems);
template<typename charT>
int ci_find_substr( const charT& str1, const charT& str2, const std::locale& loc = std::locale() );
#endif
+702 -1020
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.");
}
}
+41 -18
View File
@@ -124,34 +124,46 @@ void mapgen_crater(map *m, mapgendata dat)
}
}
}
m->place_items(mi_wreckage, 83, 0, 0, SEEX * 2 - 1, SEEY * 2 - 1, true, 0);
m->place_items("wreckage", 83, 0, 0, SEEX * 2 - 1, SEEY * 2 - 1, true, 0);
}
void mapgen_field(map *m, int turn)
{
// There's a chance this field will be thick with strawberry
// and blueberry bushes.
int berry_bush_factor = 200;
int bush_factor = 120;
if(one_in(120)) {
berry_bush_factor = 2;
bush_factor = 40;
}
for (int i = 0; i < SEEX * 2; i++)
{
for (int j = 0; j < SEEY * 2; j++)
{
m->ter_set(i, j, grass_or_dirt());
//------Jovan's-----
if (one_in(120))
if (one_in(bush_factor))
{
if (one_in(30))
if (one_in(berry_bush_factor))
{
m->ter_set(i, j, t_shrub_blueberry);
}
else
if (one_in(berry_bush_factor))
{
m->ter_set(i, j, t_shrub_strawberry);
}
else
{
m->ter_set(i, j, t_shrub);
}
}
else
if (one_in(1000)) { m->ter_set(i,j, t_mutpoppy); }
//------------------
if (one_in(1000)) { m->furn_set(i,j, f_mutpoppy); }
}
}
m->place_items(mi_field, 60, 0, 0, SEEX * 2 - 1, SEEY * 2 - 1, true, turn);
m->place_items("field", 60, 0, 0, SEEX * 2 - 1, SEEY * 2 - 1, true, turn);
}
void mapgen_dirtlot(map *m, game *g)
@@ -173,7 +185,7 @@ void mapgen_dirtlot(map *m, game *g)
}
if (one_in(4))
{
m->add_vehicle (g, veh_truck, 12, 12, 90, -1, -1);
m->add_vehicle (g, "flatbed_truck", 12, 12, 90, -1, -1);
}
}
@@ -237,7 +249,7 @@ void mapgen_forest_general(map *m, oter_id terrain_type, mapgendata dat, int tur
if (one_in(250))
{
m->ter_set(i, j, t_tree_apple);
m->spawn_item(i, j, item_controller->find_template("apple"), turn);
m->spawn_item(i, j, "apple", turn);
}
else
{
@@ -261,11 +273,11 @@ void mapgen_forest_general(map *m, oter_id terrain_type, mapgendata dat, int tur
}
else
{
m->ter_set(i, j, t_dirt);
m->ter_set(i, j, grass_or_dirt());
}
}
}
m->place_items(mi_forest, 60, 0, 0, SEEX * 2 - 1, SEEY * 2 - 1, true, turn);
m->place_items("forest", 60, 0, 0, SEEX * 2 - 1, SEEY * 2 - 1, true, turn);
if (terrain_type == ot_forest_water)
{
@@ -298,7 +310,8 @@ void mapgen_forest_general(map *m, oter_id terrain_type, mapgendata dat, int tur
{
m->ter_set(x, y, t_water_dp);
}
else if (m->ter(x, y) == t_dirt || m->ter(x, y) == t_underbrush)
else if (m->ter(x, y) == t_dirt || m->ter(x, y) == t_grass ||
m->ter(x, y) == t_underbrush)
{
m->ter_set(x, y, t_water_sh);
}
@@ -320,7 +333,8 @@ void mapgen_forest_general(map *m, oter_id terrain_type, mapgendata dat, int tur
for (int j = 0; j < dat.n_fac; j++)
{
int wx = rng(0, SEEX * 2 -1), wy = rng(0, SEEY - 1);
if (m->ter(wx, wy) == t_dirt || m->ter(wx, wy) == t_underbrush)
if (m->ter(wx, wy) == t_dirt || m->ter(wx, wy) == t_grass ||
m->ter(wx, wy) == t_underbrush)
{
m->ter_set(wx, wy, t_water_sh);
}
@@ -328,7 +342,8 @@ void mapgen_forest_general(map *m, oter_id terrain_type, mapgendata dat, int tur
for (int j = 0; j < dat.e_fac; j++)
{
int wx = rng(SEEX, SEEX * 2 - 1), wy = rng(0, SEEY * 2 - 1);
if (m->ter(wx, wy) == t_dirt || m->ter(wx, wy) == t_underbrush)
if (m->ter(wx, wy) == t_dirt || m->ter(wx, wy) == t_grass ||
m->ter(wx, wy) == t_underbrush)
{
m->ter_set(wx, wy, t_water_sh);
}
@@ -336,7 +351,8 @@ void mapgen_forest_general(map *m, oter_id terrain_type, mapgendata dat, int tur
for (int j = 0; j < dat.s_fac; j++)
{
int wx = rng(0, SEEX * 2 - 1), wy = rng(SEEY, SEEY * 2 - 1);
if (m->ter(wx, wy) == t_dirt || m->ter(wx, wy) == t_underbrush)
if (m->ter(wx, wy) == t_dirt || m->ter(wx, wy) == t_grass ||
m->ter(wx, wy) == t_underbrush)
{
m->ter_set(wx, wy, t_water_sh);
}
@@ -344,7 +360,8 @@ void mapgen_forest_general(map *m, oter_id terrain_type, mapgendata dat, int tur
for (int j = 0; j < dat.w_fac; j++)
{
int wx = rng(0, SEEX - 1), wy = rng(0, SEEY * 2 - 1);
if (m->ter(wx, wy) == t_dirt || m->ter(wx, wy) == t_underbrush)
if (m->ter(wx, wy) == t_dirt || m->ter(wx, wy) == t_grass ||
m->ter(wx, wy) == t_underbrush)
{
m->ter_set(wx, wy, t_water_sh);
}
@@ -358,18 +375,24 @@ void mapgen_forest_general(map *m, oter_id terrain_type, mapgendata dat, int tur
m->add_trap(x, y, tr_sinkhole);
if (m->ter(x, y) != t_water_sh)
{
m->ter_set(x, y, t_dirt);
m->ter_set(x, y, grass_or_dirt());
}
}
}
if (one_in(10000)) { //1-2 per overmap, very bad day for low level characters
m->add_spawn(mon_jabberwock, 1, SEEX, SEEY);
}
if (one_in(100)) // One in 100 forests has a spider living in it :o
{
for (int i = 0; i < SEEX * 2; i++)
{
for (int j = 0; j < SEEX * 2; j++)
{
if ((m->ter(i, j) == t_dirt || m->ter(i, j) == t_underbrush) && !one_in(3))
if ((m->ter(i, j) == t_dirt || m->ter(i, j) == t_grass ||
m->ter(i, j) == t_underbrush) && !one_in(3))
{
m->add_field(NULL, i, j, fd_web, rng(1, 3));
}
+57 -71
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;
@@ -198,6 +199,11 @@ void calendar::increment()
standardize();
}
int calendar::getHour()
{
return hour;
}
void calendar::standardize()
{
if (second >= 60) {
@@ -213,9 +219,9 @@ void calendar::standardize()
hour %= 24;
}
int tmpseason = int(season);
if (day >= OPTIONS[OPT_SEASON_LENGTH]) {
tmpseason += day / OPTIONS[OPT_SEASON_LENGTH];
day %= (int)OPTIONS[OPT_SEASON_LENGTH];
if (day >= OPTIONS["SEASON_LENGTH"]) {
tmpseason += day / OPTIONS["SEASON_LENGTH"];
day %= (int)OPTIONS["SEASON_LENGTH"];
}
if (tmpseason >= 4) {
year += tmpseason / 4;
@@ -233,7 +239,7 @@ int calendar::minutes_past_midnight() const
moon_phase calendar::moon() const
{
int phase = day / (OPTIONS[OPT_SEASON_LENGTH] / 4);
int phase = day / (OPTIONS["SEASON_LENGTH"] / 4);
//phase %= 4; Redundant?
if (phase == 3)
return MOON_HALF;
@@ -263,7 +269,7 @@ calendar calendar::sunrise() const
end_hour = SUNRISE_SOLSTICE;
break;
}
double percent = double(double(day) / OPTIONS[OPT_SEASON_LENGTH]);
double percent = double(double(day) / OPTIONS["SEASON_LENGTH"]);
double time = double(start_hour) * (1.- percent) + double(end_hour) * percent;
ret.hour = int(time);
@@ -295,7 +301,7 @@ calendar calendar::sunset() const
end_hour = SUNSET_SOLSTICE;
break;
}
double percent = double(double(day) / OPTIONS[OPT_SEASON_LENGTH]);
double percent = double(double(day) / OPTIONS["SEASON_LENGTH"]);
double time = double(start_hour) * (1.- percent) + double(end_hour) * percent;
ret.hour = int(time);
@@ -351,49 +357,32 @@ int calendar::sunlight() const
std::string calendar::print_time(bool just_hour) const
{
std::stringstream time_string;
int hour_param;
if (OPTIONS[OPT_24_HOUR] == 1)
{
int hour_param = hour % 24;
if (hour_param < 10)
{
time_string << "0";
if (OPTIONS["24_HOUR"] == "military") {
hour_param = hour % 24;
time_string << string_format("%02d%02d", hour_param, minute);
} else if (OPTIONS["24_HOUR"] == "24h") {
hour_param = hour % 24;
if (just_hour) {
time_string << hour_param;
} else {
//~ hour:minute (24hr time display)
time_string << string_format(_("%02d:%02d"), hour_param, minute);
}
time_string << hour_param;
}
else if (OPTIONS[OPT_24_HOUR] == 2)
{
int hour_param = hour % 24;
time_string << hour_param;
if (!just_hour) time_string << ":";
}
else
{
int hour_param = hour % 12;
if (hour_param == 0)
{
} else {
hour_param = hour % 12;
if (hour_param == 0) {
hour_param = 12;
}
time_string << hour_param;
if (!just_hour) time_string << ":";
}
if(!just_hour)
{
if (minute < 10)
{
time_string << "0";
}
time_string << minute;
}
if (OPTIONS[OPT_24_HOUR] == 0)
{
if (hour < 12)
{
time_string << " AM";
}
else
{
time_string << " PM";
if (just_hour && hour < 12) {
time_string << string_format(_("%d AM"), hour_param);
} else if (just_hour) {
time_string << string_format(_("%d PM"), hour_param);
} else if (hour < 12) {
time_string << string_format(_("%d:%02d AM"), hour_param, minute);
} else {
time_string << string_format(_("%d:%02d PM"), hour_param, minute);
}
}
@@ -403,33 +392,30 @@ std::string calendar::print_time(bool just_hour) const
std::string calendar::textify_period()
{
standardize();
std::stringstream ret;
int am;
std::string tx;
const char* tx;
// Describe the biggest time period, as "<am> <tx>s", am = amount, tx = name
if (year > 0) {
am = year;
tx = "year";
tx = ngettext("%d year", "%d years", am);
} else if (season > 0) {
am = season;
tx = "season";
tx = ngettext("%d season", "%d seasons", am);
} else if (day > 0) {
am = day;
tx = "day";
tx = ngettext("%d day", "%d days", am);
} else if (hour > 0) {
am = hour;
tx = "hour";
tx = ngettext("%d hour", "%d hours", am);
} else if (minute >= 5) {
am = minute;
tx = "minute";
tx = ngettext("%d minute", "%d minutes", am);
} else {
am = second / 6 + minute * 10;
tx = "turn";
tx = ngettext("%d turn", "%d turns", am);
}
ret << am << " " << tx << (am > 1 ? "s" : "");
return ret.str();
return string_format(tx, am);
}
std::string calendar::day_of_week() const
@@ -475,25 +461,25 @@ std::string calendar::day_of_week() const
switch (current_day)
{
case SUNDAY:
day_string = "Sunday";
day_string = _("Sunday");
break;
case MONDAY:
day_string = "Monday";
day_string = _("Monday");
break;
case TUESDAY:
day_string = "Tuesday";
day_string = _("Tuesday");
break;
case WEDNESDAY:
day_string = "Wendsday";
day_string = _("Wendsday");
break;
case THURSDAY:
day_string = "Thursday";
day_string = _("Thursday");
break;
case FRIDAY:
day_string = "Friday";
day_string = _("Friday");
break;
case SATURDAY:
day_string = "Saturday";
day_string = _("Saturday");
break;
}
+2
View File
@@ -75,6 +75,8 @@ public:
void standardize(); // Ensure minutes <= 59, hour <= 23, etc.
int getHour(); // return hour
// Sunlight and day/night calcuations
int minutes_past_midnight() const; // Useful for sunrise/set calculations
moon_phase moon() const; // Find phase of moon
+1387
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
+358
View File
@@ -0,0 +1,358 @@
#include "catacharset.h"
#include <string.h>
#include "debug.h"
#include "wcwidth.c"
//copied from SDL2_ttf code
unsigned UTF8_getch(const char **src, int *srclen)
{
const unsigned char *p = *(const unsigned char**)src;
int left = 0;
bool overlong = false;
bool underflow = false;
unsigned ch = UNKNOWN_UNICODE;
if (*srclen == 0) {
return UNKNOWN_UNICODE;
}
if (p[0] >= 0xFC) {
if ((p[0] & 0xFE) == 0xFC) {
if (p[0] == 0xFC && (p[1] & 0xFC) == 0x80) {
overlong = true;
}
ch = (unsigned) (p[0] & 0x01);
left = 5;
}
} else if (p[0] >= 0xF8) {
if ((p[0] & 0xFC) == 0xF8) {
if (p[0] == 0xF8 && (p[1] & 0xF8) == 0x80) {
overlong = true;
}
ch = (unsigned) (p[0] & 0x03);
left = 4;
}
} else if (p[0] >= 0xF0) {
if ((p[0] & 0xF8) == 0xF0) {
if (p[0] == 0xF0 && (p[1] & 0xF0) == 0x80) {
overlong = true;
}
ch = (unsigned) (p[0] & 0x07);
left = 3;
}
} else if (p[0] >= 0xE0) {
if ((p[0] & 0xF0) == 0xE0) {
if (p[0] == 0xE0 && (p[1] & 0xE0) == 0x80) {
overlong = true;
}
ch = (unsigned) (p[0] & 0x0F);
left = 2;
}
} else if (p[0] >= 0xC0) {
if ((p[0] & 0xE0) == 0xC0) {
if ((p[0] & 0xDE) == 0xC0) {
overlong = true;
}
ch = (unsigned) (p[0] & 0x1F);
left = 1;
}
} else {
if ((p[0] & 0x80) == 0x00) {
ch = (unsigned) p[0];
}
}
++*src;
--*srclen;
while (left > 0 && *srclen > 0) {
++p;
if ((p[0] & 0xC0) != 0x80) {
ch = UNKNOWN_UNICODE;
break;
}
ch <<= 6;
ch |= (p[0] & 0x3F);
++*src;
--*srclen;
--left;
}
if (left > 0) {
underflow = true;
}
if (overlong || underflow ||
(ch >= 0xD800 && ch <= 0xDFFF) ||
(ch == 0xFFFE || ch == 0xFFFF) || ch > 0x10FFFF) {
ch = UNKNOWN_UNICODE;
}
return ch;
}
std::string utf32_to_utf8(unsigned ch) {
char out[5];
char* buf = out;
static const unsigned char utf8FirstByte[7] = { 0x00, 0x00, 0xC0, 0xE0, 0xF0, 0xF8, 0xFC };
int utf8Bytes;
if (ch < 0x80) {
utf8Bytes = 1;
} else if (ch < 0x800) {
utf8Bytes = 2;
} else if (ch < 0x10000) {
utf8Bytes = 3;
} else if (ch <= 0x10FFFF) {
utf8Bytes = 4;
} else {
utf8Bytes = 3;
ch = UNKNOWN_UNICODE;
}
buf += utf8Bytes;
switch (utf8Bytes) {
case 4:
*--buf = (ch|0x80)&0xBF;
ch >>= 6;
case 3:
*--buf = (ch|0x80)&0xBF;
ch >>= 6;
case 2:
*--buf = (ch|0x80)&0xBF;
ch >>= 6;
case 1:
*--buf = ch|utf8FirstByte[utf8Bytes];
}
out[utf8Bytes] = '\0';
return out;
}
//Calculate width of a unicode string
//Latin characters have a width of 1
//CJK characters have a width of 2, etc
int utf8_width(const char* s)
{
int len = strlen(s);
const char* ptr = s;
int w = 0;
while(len>0)
{
unsigned ch = UTF8_getch(&ptr, &len);
if(ch!=UNKNOWN_UNICODE) {
w += mk_wcwidth((wchar_t)ch);
} else {
continue;
}
}
return w;
}
//Convert cursor position to byte offset
//returns the first character position in bytes behind the cursor position.
//If the cursor is not on the first half of the character,
//prevpos (which points to the first byte of the cursor located char)
// should be a different value.
int cursorx_to_position(const char* line, int cursorx, int* prevpos)
{
int dummy;
int i=0, c=0, *p=prevpos?prevpos:&dummy;
*p = 0;
while(c<cursorx)
{
const char* utf8str = line+i;
int len = ANY_LENGTH;
unsigned ch = UTF8_getch(&utf8str, &len);
int cw = mk_wcwidth((wchar_t)ch);
len = ANY_LENGTH-len;
if(len<=0) len=1;
i+=len;
if(cw<=0) cw=1;
c+=cw;
if(c<=cursorx) *p = i;
}
return i;
}
//Erase character by unicode char width.
//Fill the characters with spaces.
//returns length modified
int erease_utf8_by_cw( char* t, int cw, int clen, int maxlen)
{
static char buf[8000]; //LOL
int c=0,i=0;
while(c<cw)
{
const char* utf8str = t+i;
int len = ANY_LENGTH;
unsigned ch = UTF8_getch(&utf8str, &len);
int cw = mk_wcwidth((wchar_t)ch);
len = ANY_LENGTH-len;
if(len<=0) len=1;
i+=len;
if(cw<=0) cw=1;
c+=cw;
}
if(cw==c && clen==i)
{
memset(t, ' ', clen);
return 0;
}
else
{
int filled = clen+c-cw;
memcpy(buf, t+i, maxlen-i);
memset(t, ' ', filled);
memcpy(t+filled, buf, maxlen-filled);
return filled-i;
}
}
//cut ut8 string by character size
//utf8_substr("正正正正", 1, 4) returns
// " 正 "
// Broken characters will be filled with space
std::string utf8_substr(std::string s, int start, int size)
{
static char buf[8000];
int len = strlen(s.c_str());
int pos;
strcpy(buf, s.c_str());
int begin = cursorx_to_position(buf, start, &pos);
if(begin!=pos)
{
const char* ts = buf+pos;
int l = ANY_LENGTH;
unsigned tc = UTF8_getch(&ts, &l);
int tw = mk_wcwidth((wchar_t)tc);
erease_utf8_by_cw(buf+pos, tw, tw, len-pos-1);
begin = pos+tw-1;
}
if(size>0)
{
int end = cursorx_to_position(buf, start+size-1, &pos);
if(end!=pos)
{
const char* ts = buf+pos;
int l = ANY_LENGTH;
unsigned tc = UTF8_getch(&ts, &l);
int tw = mk_wcwidth((wchar_t)tc);
erease_utf8_by_cw(buf+pos, tw, tw, len-pos-1);
end = pos+tw-1;
}
buf[end+1] = '\0';
}
return std::string(buf+start);
}
static const char base64_encoding_table[] =
{'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H',
'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P',
'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X',
'Y', 'Z', 'a', 'b', 'c', 'd', 'e', 'f',
'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n',
'o', 'p', 'q', 'r', 's', 't', 'u', 'v',
'w', 'x', 'y', 'z', '0', '1', '2', '3',
'4', '5', '6', '7', '8', '9', '+', '-'};
static char base64_decoding_table[256];
static const int mod_table[] = {0, 2, 1};
static void build_base64_decoding_table() {
static bool built = false;
if(!built) {
for (int i = 0; i < 64; i++) {
base64_decoding_table[(unsigned char) base64_encoding_table[i]] = i;
}
built = true;
}
}
std::string base64_encode(std::string str) {
//assume it is already encoded
if(str.length()>0 && str[0]=='#') {
return str;
}
int input_length = str.length();
int output_length = 4 * ((input_length + 2) / 3);
char *encoded_data = new char[output_length+1];
const unsigned char* data = (const unsigned char*)str.c_str();
for (int i = 0, j = 0; i < input_length;) {
unsigned octet_a = i < input_length ? data[i++] : 0;
unsigned octet_b = i < input_length ? data[i++] : 0;
unsigned octet_c = i < input_length ? data[i++] : 0;
unsigned triple = (octet_a << 0x10) + (octet_b << 0x08) + octet_c;
encoded_data[j++] = base64_encoding_table[(triple >> 3 * 6) & 0x3F];
encoded_data[j++] = base64_encoding_table[(triple >> 2 * 6) & 0x3F];
encoded_data[j++] = base64_encoding_table[(triple >> 1 * 6) & 0x3F];
encoded_data[j++] = base64_encoding_table[(triple >> 0 * 6) & 0x3F];
}
for (int i = 0; i < mod_table[input_length % 3]; i++)
encoded_data[output_length - 1 - i] = '=';
encoded_data[output_length] = '\0';
std::string ret = "#";
ret += encoded_data;
delete[] encoded_data;
//DebugLog()<<"base64 encoded: \n"<<str<<"\n"<<ret<<"\n";
return ret;
}
std::string base64_decode(std::string str) {
// do not decode if it is not base64
if(str.length()==0 || str[0]!='#') {
return str;
}
build_base64_decoding_table();
std::string instr = str.substr(1);
int input_length = instr.length();
if (input_length % 4 != 0) {
return str;
}
int output_length = input_length / 4 * 3;
const char* data = (const char*)instr.c_str();
if (data[input_length - 1] == '=') output_length--;
if (data[input_length - 2] == '=') output_length--;
unsigned char *decoded_data = new unsigned char[output_length+1];
for (int i = 0, j = 0; i < input_length;) {
unsigned sextet_a = data[i] == '=' ? 0 & i++ : base64_decoding_table[(unsigned char)data[i++]];
unsigned sextet_b = data[i] == '=' ? 0 & i++ : base64_decoding_table[(unsigned char)data[i++]];
unsigned sextet_c = data[i] == '=' ? 0 & i++ : base64_decoding_table[(unsigned char)data[i++]];
unsigned sextet_d = data[i] == '=' ? 0 & i++ : base64_decoding_table[(unsigned char)data[i++]];
unsigned triple = (sextet_a << 3 * 6)
+ (sextet_b << 2 * 6)
+ (sextet_c << 1 * 6)
+ (sextet_d << 0 * 6);
if (j < output_length) decoded_data[j++] = (triple >> 2 * 8) & 0xFF;
if (j < output_length) decoded_data[j++] = (triple >> 1 * 8) & 0xFF;
if (j < output_length) decoded_data[j++] = (triple >> 0 * 8) & 0xFF;
}
decoded_data[output_length] = 0;
std::string ret = (char*)decoded_data;
delete[] decoded_data;
//DebugLog()<<"base64 decoded: \n"<<str<<"\n"<<ret<<"\n";
return ret;
}
+22
View File
@@ -0,0 +1,22 @@
#ifndef CATACHARSET_H
#define CATACHARSET_H
#include <wchar.h>
#include <string>
#define ANY_LENGTH 5
#define UNKNOWN_UNICODE 0xFFFD
// get a unicode character from a utf8 string
unsigned UTF8_getch(const char **src, int *srclen);
// from wcwidth.c, return "cell" width of a unicode char
int mk_wcwidth(wchar_t ucs);
// convert cursorx value to byte position
int cursorx_to_position(const char* line, int cursorx, int* prevppos=NULL);
//erease for characters insertion
int erease_utf8_by_cw( char* t, int cw, int len, int maxlen);
int utf8_width(const char* s);
std::string utf8_substr(std::string s, int start, int size=-1);
std::string utf32_to_utf8(unsigned ch);
std::string base64_encode(std::string str);
std::string base64_decode(std::string str);
#endif
+2 -2
View File
@@ -1,3 +1,3 @@
#!/usr/bin/env sh
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
#!/bin/sh
DIR=`dirname "$0"`
cd $DIR && ./cataclysm
-938
View File
@@ -1,938 +0,0 @@
#if (defined _WIN32 || defined WINDOWS)
#include "catacurse.h"
#include "options.h"
#include "output.h"
#include "color.h"
#include <cstdlib>
#include <fstream>
//***********************************
//Globals *
//***********************************
WINDOW *mainwin;
const WCHAR *szWindowClass = (L"CataCurseWindow"); //Class name :D
HINSTANCE WindowINST; //the instance of the window
HWND WindowHandle; //the handle of the window
HDC WindowDC; //Device Context of the window, used for backbuffer
int WindowX; //X pos of the actual window, not the curses window
int WindowY; //Y pos of the actual window, not the curses window
int WindowWidth; //Width of the actual window, not the curses window
int WindowHeight; //Height of the actual window, not the curses window
int lastchar; //the last character that was pressed, resets in getch
int inputdelay; //How long getch will wait for a character to be typed
//WINDOW *_windows; //Probably need to change this to dynamic at some point
//int WindowCount; //The number of curses windows currently in use
HDC backbuffer; //an off-screen DC to prevent flickering, lower cpu
HBITMAP backbit; //the bitmap that is used in conjunction wth the above
int fontwidth; //the width of the font, background is always this size
int fontheight; //the height of the font, background is always this size
int halfwidth; //half of the font width, used for centering lines
int halfheight; //half of the font height, used for centering lines
HFONT font; //Handle to the font created by CreateFont
RGBQUAD *windowsPalette; //The coor palette, 16 colors emulates a terminal
pairs *colorpairs; //storage for pair'ed colored, should be dynamic, meh
unsigned char *dcbits; //the bits of the screen image, for direct access
char szDirectory[MAX_PATH] = "";
int echoOn; //1 = getnstr shows input, 0 = doesn't show. needed for echo()-ncurses compatibility.
//***********************************
//Non-curses, Window functions *
//***********************************
//Registers, creates, and shows the Window!!
bool WinCreate()
{
int success;
WNDCLASSEXW WindowClassType;
int WinBorderHeight;
int WinBorderWidth;
int WinTitleSize;
unsigned int WindowStyle;
const WCHAR *szTitle= (L"Cataclysm: Dark Days Ahead - 0.6git");
WinTitleSize = GetSystemMetrics(SM_CYCAPTION); //These lines ensure
WinBorderWidth = GetSystemMetrics(SM_CXDLGFRAME) * 2; //that our window will
WinBorderHeight = GetSystemMetrics(SM_CYDLGFRAME) * 2; // be a perfect size
WindowClassType.cbSize = sizeof(WNDCLASSEXW);
WindowClassType.style = 0;//No point in having a custom style, no mouse, etc
WindowClassType.lpfnWndProc = ProcessMessages;//the procedure that gets msgs
WindowClassType.cbClsExtra = 0;
WindowClassType.cbWndExtra = 0;
WindowClassType.hInstance = WindowINST;// hInstance
WindowClassType.hIcon = LoadIcon(WindowINST, IDI_APPLICATION);//Default Icon
WindowClassType.hIconSm = LoadIcon(WindowINST, IDI_APPLICATION);//Default Icon
WindowClassType.hCursor = LoadCursor(NULL, IDC_ARROW);//Default Pointer
WindowClassType.lpszMenuName = NULL;
WindowClassType.hbrBackground = 0;//Thanks jday! Remove background brush
WindowClassType.lpszClassName = szWindowClass;
success = RegisterClassExW(&WindowClassType);
if ( success== 0){
return false;
}
WindowStyle = WS_OVERLAPPEDWINDOW & ~(WS_THICKFRAME) & ~(WS_MAXIMIZEBOX);
WindowHandle = CreateWindowExW(WS_EX_APPWINDOW || WS_EX_TOPMOST * 0,
szWindowClass , szTitle,WindowStyle, WindowX,
WindowY, WindowWidth + (WinBorderWidth) * 1,
WindowHeight + (WinBorderHeight +
WinTitleSize) * 1, 0, 0, WindowINST, NULL);
if (WindowHandle == 0){
return false;
}
ShowWindow(WindowHandle,5);
return true;
};
//Unregisters, releases the DC if needed, and destroys the window.
void WinDestroy()
{
if ((WindowDC > 0) && (ReleaseDC(WindowHandle, WindowDC) == 0)){
WindowDC = 0;
}
if ((!WindowHandle == 0) && (!(DestroyWindow(WindowHandle)))){
WindowHandle = 0;
}
if (!(UnregisterClassW(szWindowClass, WindowINST))){
WindowINST = 0;
}
};
//This function processes any Windows messages we get. Keyboard, OnClose, etc
LRESULT CALLBACK ProcessMessages(HWND__ *hWnd,unsigned int Msg,
WPARAM wParam, LPARAM lParam)
{
switch (Msg){
case WM_CHAR: //This handles most key presses
lastchar=(int)wParam;
switch (lastchar){
case 13: //Reroute ENTER key for compatilbity purposes
lastchar=10;
break;
case 8: //Reroute BACKSPACE key for compatilbity purposes
lastchar=127;
break;
};
break;
case WM_KEYDOWN: //Here we handle non-character input
switch (wParam){
case VK_LEFT:
lastchar = KEY_LEFT;
break;
case VK_RIGHT:
lastchar = KEY_RIGHT;
break;
case VK_UP:
lastchar = KEY_UP;
break;
case VK_DOWN:
lastchar = KEY_DOWN;
break;
case VK_NEXT:
lastchar = KEY_NPAGE;
break;
case VK_PRIOR:
lastchar = KEY_PPAGE;
break;
default:
break;
};
case WM_ERASEBKGND:
return 1; //We don't want to erase our background
case WM_PAINT: //Pull from our backbuffer, onto the screen
BitBlt(WindowDC, 0, 0, WindowWidth, WindowHeight, backbuffer, 0, 0,SRCCOPY);
ValidateRect(WindowHandle,NULL);
break;
case WM_DESTROY:
exit(0);//A messy exit, but easy way to escape game loop
default://If we didnt process a message, return the default value for it
return DefWindowProcW(hWnd, Msg, wParam, lParam);
};
return 0;
};
//The following 3 methods use mem functions for fast drawing
inline void VertLineDIB(int x, int y, int y2,int thickness, unsigned char color)
{
int j;
for (j=y; j<y2; j++)
memset(&dcbits[x+j*WindowWidth],color,thickness);
};
inline void HorzLineDIB(int x, int y, int x2,int thickness, unsigned char color)
{
int j;
for (j=y; j<y+thickness; j++)
memset(&dcbits[x+j*WindowWidth],color,x2-x);
};
inline void FillRectDIB(int x, int y, int width, int height, unsigned char color)
{
int j;
for (j=y; j<y+height; j++)
//NOTE TO FUTURE: this breaks if j is negative. Apparently it doesn't break if j is too large, though?
memset(&dcbits[x+j*WindowWidth],color,width);
};
void DrawWindow(WINDOW *win)
{
int i,j,drawx,drawy;
char tmp;
RECT update = {win->x * fontwidth, -1,
(win->x + win->width) * fontwidth, -1};
for (j=0; j<win->height; j++){
if (win->line[j].touched)
{
update.bottom = (win->y+j+1)*fontheight;
if (update.top == -1)
{
update.top = update.bottom - fontheight;
}
win->line[j].touched=false;
for (i=0; i<win->width; i++){
drawx=((win->x+i)*fontwidth);
drawy=((win->y+j)*fontheight);//-j;
if (((drawx+fontwidth)<=WindowWidth) && ((drawy+fontheight)<=WindowHeight)){
tmp = win->line[j].chars[i];
int FG = win->line[j].FG[i];
int BG = win->line[j].BG[i];
FillRectDIB(drawx,drawy,fontwidth,fontheight,BG);
if ( tmp > 0){
//if (tmp==95){//If your font doesnt draw underscores..uncomment
// HorzLineDIB(drawx,drawy+fontheight-2,drawx+fontwidth,1,FG);
// } else { // all the wa to here
int color = RGB(windowsPalette[FG].rgbRed,windowsPalette[FG].rgbGreen,windowsPalette[FG].rgbBlue);
SetTextColor(backbuffer,color);
ExtTextOut(backbuffer,drawx,drawy,0,NULL,&tmp,1,NULL);
// } //and this line too.
} else if ( tmp < 0 ) {
switch (tmp) {
case -60://box bottom/top side (horizontal line)
HorzLineDIB(drawx,drawy+halfheight,drawx+fontwidth,1,FG);
break;
case -77://box left/right side (vertical line)
VertLineDIB(drawx+halfwidth,drawy,drawy+fontheight,2,FG);
break;
case -38://box top left
HorzLineDIB(drawx+halfwidth,drawy+halfheight,drawx+fontwidth,1,FG);
VertLineDIB(drawx+halfwidth,drawy+halfheight,drawy+fontheight,2,FG);
break;
case -65://box top right
HorzLineDIB(drawx,drawy+halfheight,drawx+halfwidth,1,FG);
VertLineDIB(drawx+halfwidth,drawy+halfheight,drawy+fontheight,2,FG);
break;
case -39://box bottom right
HorzLineDIB(drawx,drawy+halfheight,drawx+halfwidth,1,FG);
VertLineDIB(drawx+halfwidth,drawy,drawy+halfheight+1,2,FG);
break;
case -64://box bottom left
HorzLineDIB(drawx+halfwidth,drawy+halfheight,drawx+fontwidth,1,FG);
VertLineDIB(drawx+halfwidth,drawy,drawy+halfheight+1,2,FG);
break;
case -63://box bottom north T (left, right, up)
HorzLineDIB(drawx,drawy+halfheight,drawx+fontwidth,1,FG);
VertLineDIB(drawx+halfwidth,drawy,drawy+halfheight,2,FG);
break;
case -61://box bottom east T (up, right, down)
VertLineDIB(drawx+halfwidth,drawy,drawy+fontheight,2,FG);
HorzLineDIB(drawx+halfwidth,drawy+halfheight,drawx+fontwidth,1,FG);
break;
case -62://box bottom south T (left, right, down)
HorzLineDIB(drawx,drawy+halfheight,drawx+fontwidth,1,FG);
VertLineDIB(drawx+halfwidth,drawy+halfheight,drawy+fontheight,2,FG);
break;
case -59://box X (left down up right)
HorzLineDIB(drawx,drawy+halfheight,drawx+fontwidth,1,FG);
VertLineDIB(drawx+halfwidth,drawy,drawy+fontheight,2,FG);
break;
case -76://box bottom east T (left, down, up)
VertLineDIB(drawx+halfwidth,drawy,drawy+fontheight,2,FG);
HorzLineDIB(drawx,drawy+halfheight,drawx+halfwidth,1,FG);
break;
default:
// SetTextColor(DC,_windows[w].line[j].chars[i].color.FG);
// TextOut(DC,drawx,drawy,&tmp,1);
break;
}
};//switch (tmp)
}//(tmp < 0)
};//for (i=0;i<_windows[w].width;i++)
}
};// for (j=0;j<_windows[w].height;j++)
win->draw=false; //We drew the window, mark it as so
if (update.top != -1)
{
RedrawWindow(WindowHandle, &update, NULL, RDW_INVALIDATE | RDW_UPDATENOW);
}
};
//Check for any window messages (keypress, paint, mousemove, etc)
void CheckMessages()
{
MSG msg;
while (PeekMessage(&msg, 0 , 0, 0, PM_REMOVE)){
TranslateMessage(&msg);
DispatchMessage(&msg);
}
};
//***********************************
//Psuedo-Curses Functions *
//***********************************
//Basic Init, create the font, backbuffer, etc
WINDOW *initscr(void)
{
// _windows = new WINDOW[20]; //initialize all of our variables
BITMAPINFO bmi;
lastchar=-1;
inputdelay=-1;
std::string typeface;
char * typeface_c;
std::ifstream fin;
fin.open("data\\FONTDATA");
if (!fin.is_open()){
MessageBox(WindowHandle, "Failed to open FONTDATA, loading defaults.",
NULL, 0);
fontheight=16;
fontwidth=8;
} else {
getline(fin, typeface);
typeface_c= new char [typeface.size()+1];
strcpy (typeface_c, typeface.c_str());
fin >> fontwidth;
fin >> fontheight;
if ((fontwidth <= 4) || (fontheight <=4)){
MessageBox(WindowHandle, "Invalid font size specified!",
NULL, 0);
fontheight=16;
fontwidth=8;
}
}
halfwidth=fontwidth / 2;
halfheight=fontheight / 2;
WindowWidth= (55 + (OPTIONS[OPT_VIEWPORT_X] * 2 + 1)) * fontwidth;
WindowHeight= (OPTIONS[OPT_VIEWPORT_Y] * 2 + 1) *fontheight;
WindowX=(GetSystemMetrics(SM_CXSCREEN) / 2)-WindowWidth/2; //center this
WindowY=(GetSystemMetrics(SM_CYSCREEN) / 2)-WindowHeight/2; //sucker
WinCreate(); //Create the actual window, register it, etc
CheckMessages(); //Let the message queue handle setting up the window
WindowDC = GetDC(WindowHandle);
backbuffer = CreateCompatibleDC(WindowDC);
ZeroMemory(&bmi, sizeof(BITMAPINFO));
bmi.bmiHeader.biSize = sizeof(BITMAPINFOHEADER);
bmi.bmiHeader.biWidth = WindowWidth;
bmi.bmiHeader.biHeight = -WindowHeight;
bmi.bmiHeader.biPlanes = 1;
bmi.bmiHeader.biBitCount=8;
bmi.bmiHeader.biCompression = BI_RGB; //store it in uncompressed bytes
bmi.bmiHeader.biSizeImage = WindowWidth * WindowHeight * 1;
bmi.bmiHeader.biClrUsed=16; //the number of colors in our palette
bmi.bmiHeader.biClrImportant=16; //the number of colors in our palette
backbit = CreateDIBSection(0, &bmi, DIB_RGB_COLORS, (void**)&dcbits, NULL, 0);
DeleteObject(SelectObject(backbuffer, backbit));//load the buffer into DC
int nResults = AddFontResourceExA("data\\termfont",FR_PRIVATE,NULL);
if (nResults>0){
font = CreateFont(fontheight, fontwidth, 0, 0, FW_NORMAL, FALSE, FALSE, FALSE,
ANSI_CHARSET, OUT_DEFAULT_PRECIS,CLIP_DEFAULT_PRECIS,
PROOF_QUALITY, FF_MODERN, typeface_c); //Create our font
} else {
MessageBox(WindowHandle, "Failed to load default font, using FixedSys.",
NULL, 0);
font = CreateFont(fontheight, fontwidth, 0, 0, FW_NORMAL, FALSE, FALSE, FALSE,
ANSI_CHARSET, OUT_DEFAULT_PRECIS,CLIP_DEFAULT_PRECIS,
PROOF_QUALITY, FF_MODERN, "FixedSys"); //Create our font
}
//FixedSys will be user-changable at some point in time??
SetBkMode(backbuffer, TRANSPARENT);//Transparent font backgrounds
SelectObject(backbuffer, font);//Load our font into the DC
// WindowCount=0;
delete typeface_c;
mainwin = newwin((OPTIONS[OPT_VIEWPORT_Y] * 2 + 1),(55 + (OPTIONS[OPT_VIEWPORT_Y] * 2 + 1)),0,0);
return mainwin; //create the 'stdscr' window and return its ref
};
WINDOW *newwin(int nlines, int ncols, int begin_y, int begin_x)
{
if (begin_y < 0 || begin_x < 0) {
return NULL; //it's the caller's problem now (since they have logging functions declared)
}
// default values
if (ncols == 0)
{
ncols = TERMX - begin_x;
}
if (nlines == 0)
{
nlines = TERMY - begin_y;
}
int i,j;
WINDOW *newwindow = new WINDOW;
//newwindow=&_windows[WindowCount];
newwindow->x=begin_x;
newwindow->y=begin_y;
newwindow->width=ncols;
newwindow->height=nlines;
newwindow->inuse=true;
newwindow->draw=false;
newwindow->BG=0;
newwindow->FG=8;
newwindow->cursorx=0;
newwindow->cursory=0;
newwindow->line = new curseline[nlines];
for (j=0; j<nlines; j++)
{
newwindow->line[j].chars= new char[ncols];
newwindow->line[j].FG= new char[ncols];
newwindow->line[j].BG= new char[ncols];
newwindow->line[j].touched=true;//Touch them all !?
for (i=0; i<ncols; i++)
{
newwindow->line[j].chars[i]=0;
newwindow->line[j].FG[i]=0;
newwindow->line[j].BG[i]=0;
}
}
//WindowCount++;
return newwindow;
};
//Deletes the window and marks it as free. Clears it just in case.
int delwin(WINDOW *win)
{
int j;
win->inuse=false;
win->draw=false;
for (j=0; j<win->height; j++){
delete win->line[j].chars;
delete win->line[j].FG;
delete win->line[j].BG;
}
delete win->line;
delete win;
return 1;
};
inline int newline(WINDOW *win){
if (win->cursory < win->height - 1){
win->cursory++;
win->cursorx=0;
return 1;
}
return 0;
};
inline void addedchar(WINDOW *win){
win->cursorx++;
win->line[win->cursory].touched=true;
if (win->cursorx > win->width)
newline(win);
};
//Borders the window with fancy lines!
int wborder(WINDOW *win, chtype ls, chtype rs, chtype ts, chtype bs, chtype tl, chtype tr, chtype bl, chtype br)
{
/*
ncurses does not do this, and this prevents: wattron(win, c_customBordercolor); wborder(win, ...); wattroff(win, c_customBorderColor);
wattron(win, c_white);
*/
int i, j;
int oldx=win->cursorx;//methods below move the cursor, save the value!
int oldy=win->cursory;//methods below move the cursor, save the value!
if (ls>0)
for (j=1; j<win->height-1; j++)
mvwaddch(win, j, 0, 179);
if (rs>0)
for (j=1; j<win->height-1; j++)
mvwaddch(win, j, win->width-1, 179);
if (ts>0)
for (i=1; i<win->width-1; i++)
mvwaddch(win, 0, i, 196);
if (bs>0)
for (i=1; i<win->width-1; i++)
mvwaddch(win, win->height-1, i, 196);
if (tl>0)
mvwaddch(win,0, 0, 218);
if (tr>0)
mvwaddch(win,0, win->width-1, 191);
if (bl>0)
mvwaddch(win,win->height-1, 0, 192);
if (br>0)
mvwaddch(win,win->height-1, win->width-1, 217);
//_windows[w].cursorx=oldx;//methods above move the cursor, put it back
//_windows[w].cursory=oldy;//methods above move the cursor, put it back
wmove(win,oldy,oldx);
wattroff(win, c_white);
return 1;
};
//Refreshes a window, causing it to redraw on top.
int wrefresh(WINDOW *win)
{
if (win==0) win=mainwin;
if (win->draw)
DrawWindow(win);
return 1;
};
//Refreshes window 0 (stdscr), causing it to redraw on top.
int refresh(void)
{
return wrefresh(mainwin);
};
int getch(void)
{
return wgetch(mainwin);
}
//Not terribly sure how this function is suppose to work,
//but jday helped to figure most of it out
int wgetch(WINDOW* win)
{
// standards note: getch is sometimes required to call refresh
// see, e.g., http://linux.die.net/man/3/getch
// so although it's non-obvious, that refresh() call (and maybe InvalidateRect?) IS supposed to be there
wrefresh(win);
InvalidateRect(WindowHandle,NULL,true);
lastchar=ERR;//ERR=-1
if (inputdelay < 0)
{
do
{
CheckMessages();
if (lastchar!=ERR) break;
MsgWaitForMultipleObjects(0, NULL, FALSE, 50, QS_ALLEVENTS);//low cpu wait!
}
while (lastchar==ERR);
}
else if (inputdelay > 0)
{
unsigned long starttime=GetTickCount();
unsigned long endtime;
do
{
CheckMessages(); //MsgWaitForMultipleObjects won't work very good here
endtime=GetTickCount(); //it responds to mouse movement, and WM_PAINT, not good
if (lastchar!=ERR) break;
Sleep(2);
}
while (endtime<(starttime+inputdelay));
}
else
{
CheckMessages();
};
Sleep(25);
return lastchar;
};
int mvgetch(int y, int x)
{
move(y,x);
return getch();
}
int mvwgetch(WINDOW* win, int y, int x)
{
move(y, x);
return wgetch(win);
}
int getnstr(char *str, int size)
{
int startX = mainwin->cursorx;
int count = 0;
char input;
while(true)
{
input = getch();
// Carriage return, Line feed and End of File terminate the input.
if( input == '\r' || input == '\n' || input == '\x04' )
{
str[count] = '\x00';
return count;
}
else if( input == 127 ) // Backspace, remapped from \x8 in ProcessMessages()
{
if( count == 0 )
continue;
str[count] = '\x00';
if(echoOn == 1)
mvaddch(mainwin->cursory, startX + count, ' ');
--count;
if(echoOn == 1)
move(mainwin->cursory, startX + count);
}
else
{
if( count >= size - 1 ) // Still need space for trailing 0x00
continue;
str[count] = input;
++count;
if(echoOn == 1)
{
move(mainwin->cursory, startX + count);
mvaddch(mainwin->cursory, startX + count, input);
}
}
}
return count;
}
//The core printing function, prints characters to the array, and sets colors
inline int printstring(WINDOW *win, char *fmt)
{
int size = strlen(fmt);
int j;
for (j=0; j<size; j++){
if (!(fmt[j]==10)){//check that this isnt a newline char
if (win->cursorx <= win->width - 1 && win->cursory <= win->height - 1) {
win->line[win->cursory].chars[win->cursorx]=fmt[j];
win->line[win->cursory].FG[win->cursorx]=win->FG;
win->line[win->cursory].BG[win->cursorx]=win->BG;
win->line[win->cursory].touched=true;
addedchar(win);
} else
return 0; //if we try and write anything outside the window, abort completely
} else // if the character is a newline, make sure to move down a line
if (newline(win)==0){
return 0;
}
}
win->draw=true;
return 1;
}
//Prints a formatted string to a window at the current cursor, base function
int wprintw(WINDOW *win, const char *fmt, ...)
{
va_list args;
va_start(args, fmt);
char printbuf[2048];
vsnprintf(printbuf, 2047, fmt, args);
va_end(args);
return printstring(win,printbuf);
};
//Prints a formatted string to a window, moves the cursor
int mvwprintw(WINDOW *win, int y, int x, const char *fmt, ...)
{
va_list args;
va_start(args, fmt);
char printbuf[2048];
vsnprintf(printbuf, 2047, fmt, args);
va_end(args);
if (wmove(win,y,x)==0) return 0;
return printstring(win,printbuf);
};
//Prints a formatted string to window 0 (stdscr), moves the cursor
int mvprintw(int y, int x, const char *fmt, ...)
{
va_list args;
va_start(args, fmt);
char printbuf[2048];
vsnprintf(printbuf, 2047, fmt, args);
va_end(args);
if (move(y,x)==0) return 0;
return printstring(mainwin,printbuf);
};
//Prints a formatted string to window 0 (stdscr) at the current cursor
int printw(const char *fmt, ...)
{
va_list args;
va_start(args, fmt);
char printbuf[2078];
vsnprintf(printbuf, 2047, fmt, args);
va_end(args);
return printstring(mainwin,printbuf);
};
//erases a window of all text and attributes
int werase(WINDOW *win)
{
int j,i;
for (j=0; j<win->height; j++)
{
for (i=0; i<win->width; i++) {
win->line[j].chars[i]=0;
win->line[j].FG[i]=0;
win->line[j].BG[i]=0;
}
win->line[j].touched=true;
}
win->draw=true;
wmove(win,0,0);
// wrefresh(win);
return 1;
};
//erases window 0 (stdscr) of all text and attributes
int erase(void)
{
return werase(mainwin);
};
//pairs up a foreground and background color and puts it into the array of pairs
int init_pair(short pair, short f, short b)
{
colorpairs[pair].FG=f;
colorpairs[pair].BG=b;
return 1;
};
//moves the cursor in a window
int wmove(WINDOW *win, int y, int x)
{
if (x>=win->width)
{return 0;}//FIXES MAP CRASH -> >= vs > only
if (y>=win->height)
{return 0;}// > crashes?
if (y<0)
{return 0;}
if (x<0)
{return 0;}
win->cursorx=x;
win->cursory=y;
return 1;
};
//Clears windows 0 (stdscr) I'm not sure if its suppose to do this?
int clear(void)
{
return wclear(mainwin);
};
//Ends the terminal, destroy everything
int endwin(void)
{
DeleteObject(font);
WinDestroy();
RemoveFontResourceExA("data\\termfont",FR_PRIVATE,NULL);//Unload it
return 1;
};
//adds a character to the window
int mvwaddch(WINDOW *win, int y, int x, const chtype ch)
{
if (wmove(win,y,x)==0) return 0;
return waddch(win, ch);
};
//clears a window
int wclear(WINDOW *win)
{
werase(win);
wrefresh(win);
return 1;
};
//gets the max x of a window (the width)
int getmaxx(WINDOW *win)
{
if (win==0) return mainwin->width; //StdScr
return win->width;
};
//gets the max y of a window (the height)
int getmaxy(WINDOW *win)
{
if (win==0) return mainwin->height; //StdScr
return win->height;
};
//gets the beginning x of a window (the x pos)
int getbegx(WINDOW *win)
{
if (win==0) return mainwin->x; //StdScr
return win->x;
};
//gets the beginning y of a window (the y pos)
int getbegy(WINDOW *win)
{
if (win==0) return mainwin->y; //StdScr
return win->y;
};
inline RGBQUAD BGR(int b, int g, int r)
{
RGBQUAD result;
result.rgbBlue=b; //Blue
result.rgbGreen=g; //Green
result.rgbRed=r; //Red
result.rgbReserved=0;//The Alpha, isnt used, so just set it to 0
return result;
};
int start_color(void)
{
colorpairs=new pairs[50];
windowsPalette=new RGBQUAD[16]; //Colors in the struct are BGR!! not RGB!!
windowsPalette[0]= BGR(0,0,0); // Black
windowsPalette[1]= BGR(0, 0, 255); // Red
windowsPalette[2]= BGR(0,110,0); // Green
windowsPalette[3]= BGR(23,51,92); // Brown???
windowsPalette[4]= BGR(200, 0, 0); // Blue
windowsPalette[5]= BGR(98, 58, 139); // Purple
windowsPalette[6]= BGR(180, 150, 0); // Cyan
windowsPalette[7]= BGR(150, 150, 150);// Gray
windowsPalette[8]= BGR(99, 99, 99);// Dark Gray
windowsPalette[9]= BGR(150, 150, 255); // Light Red/Salmon?
windowsPalette[10]= BGR(0, 255, 0); // Bright Green
windowsPalette[11]= BGR(0, 255, 255); // Yellow
windowsPalette[12]= BGR(255, 100, 100); // Light Blue
windowsPalette[13]= BGR(240, 0, 255); // Pink
windowsPalette[14]= BGR(255, 240, 0); // Light Cyan?
windowsPalette[15]= BGR(255, 255, 255); //White
return SetDIBColorTable(backbuffer, 0, 16, windowsPalette);
};
int keypad(WINDOW *faux, bool bf)
{
return 1;
};
int cbreak(void)
{
return 1;
};
int keypad(int faux, bool bf)
{
return 1;
};
int curs_set(int visibility)
{
return 1;
};
int mvaddch(int y, int x, const chtype ch)
{
return mvwaddch(mainwin,y,x,ch);
};
int wattron(WINDOW *win, int attrs)
{
bool isBold = !!(attrs & A_BOLD);
bool isBlink = !!(attrs & A_BLINK);
int pairNumber = (attrs & A_COLOR) >> 17;
win->FG=colorpairs[pairNumber].FG;
win->BG=colorpairs[pairNumber].BG;
if (isBold) win->FG += 8;
if (isBlink) win->BG += 8;
return 1;
};
int wattroff(WINDOW *win, int attrs)
{
win->FG=8; //reset to white
win->BG=0; //reset to black
return 1;
};
int attron(int attrs)
{
return wattron(mainwin, attrs);
};
int attroff(int attrs)
{
return wattroff(mainwin,attrs);
};
int waddch(WINDOW *win, const chtype ch)
{
char charcode;
charcode=ch;
switch (ch){ //LINE_NESW - X for on, O for off
case 4194424: //#define LINE_XOXO 4194424
charcode=179;
break;
case 4194417: //#define LINE_OXOX 4194417
charcode=196;
break;
case 4194413: //#define LINE_XXOO 4194413
charcode=192;
break;
case 4194412: //#define LINE_OXXO 4194412
charcode=218;
break;
case 4194411: //#define LINE_OOXX 4194411
charcode=191;
break;
case 4194410: //#define LINE_XOOX 4194410
charcode=217;
break;
case 4194422: //#define LINE_XXOX 4194422
charcode=193;
break;
case 4194420: //#define LINE_XXXO 4194420
charcode=195;
break;
case 4194421: //#define LINE_XOXX 4194421
charcode=180;
break;
case 4194423: //#define LINE_OXXX 4194423
charcode=194;
break;
case 4194414: //#define LINE_XXXX 4194414
charcode=197;
break;
default:
charcode = (char)ch;
break;
}
int curx=win->cursorx;
int cury=win->cursory;
//if (win2 > -1){
win->line[cury].chars[curx]=charcode;
win->line[cury].FG[curx]=win->FG;
win->line[cury].BG[curx]=win->BG;
win->draw=true;
addedchar(win);
return 1;
// else{
// win2=win2+1;
};
//Move the cursor of windows 0 (stdscr)
int move(int y, int x)
{
return wmove(mainwin,y,x);
};
//Set the amount of time getch waits for input
void timeout(int delay)
{
inputdelay=delay;
};
void set_escdelay(int delay) { } //PORTABILITY, DUMMY FUNCTION
int echo()
{
echoOn = 1;
return 0; // 0 = OK, -1 = ERR
}
int noecho()
{
echoOn = 0;
return 0;
}
#endif
+31 -7
View File
@@ -1,9 +1,15 @@
#ifndef __CATACURSE__
#define __CATACURSE__
#if (defined _WIN32 || defined WINDOWS)
#define _WIN32_WINNT 0x0500
#define WIN32_LEAN_AND_MEAN
#ifndef NOMINMAX
#define NOMINMAX
#endif
//#define VC_EXTRALEAN
#include <windows.h>
#include "windows.h"
#include "mmsystem.h"
#endif
#include <stdio.h>
typedef int chtype;
typedef unsigned short attr_t;
@@ -43,6 +49,7 @@ typedef struct
typedef struct{
bool touched;
char *chars;
int width_in_bytes;
char *FG;
char *BG;
//cursechar chars [80];
@@ -97,8 +104,10 @@ typedef struct {
#define KEY_RIGHT 0x105 /* right arrow*/
#define KEY_HOME 0x106 /* home key */ //<---------not used
#define KEY_BACKSPACE 0x107 /* Backspace */ //<---------not used
#define KEY_F(n) (0x108+n) /* F1, F2, etc*/
#define KEY_NPAGE 0x152 /* page down */
#define KEY_PPAGE 0x153 /* page up */
#define KEY_ENTER 0x157 /* enter */
/* Curses external declarations. */
@@ -113,6 +122,16 @@ typedef struct {
WINDOW *newwin(int nlines, int ncols, int begin_y, int begin_x);
int delwin(WINDOW *win);
int wborder(WINDOW *win, chtype ls, chtype rs, chtype ts, chtype bs, chtype tl, chtype tr, chtype bl, chtype br);
int hline(chtype ch, int n);
int vline(chtype ch, int n);
int whline(WINDOW *win, chtype ch, int n);
int wvline(WINDOW *win, chtype ch, int n);
int mvhline(int y, int x, chtype ch, int n);
int mvvline(int y, int x, chtype ch, int n);
int mvwhline(WINDOW *win, int y, int x, chtype ch, int n);
int mvwvline(WINDOW *win, int y, int x, chtype ch, int n);
int wrefresh(WINDOW *win);
int refresh(void);
int getch(void);
@@ -127,6 +146,7 @@ int init_pair(short pair, short f, short b);
int wmove(WINDOW *win, int y, int x);
int getnstr(char *str, int size);
int clear(void);
int clearok(WINDOW *win);
int erase(void);
int endwin(void);
int mvwaddch(WINDOW *win, int y, int x, const chtype ch);
@@ -152,10 +172,14 @@ void timeout(int delay);//PORTABILITY, DUMMY FUNCTION
void set_escdelay(int delay);//PORTABILITY, DUMMY FUNCTION
int echo(void);
int noecho(void);
//Window Functions, Do not call these outside of catacurse.cpp
void WinDestroy();
bool WinCreate(bool initgl);
void CheckMessages();
int FindWin(WINDOW *wnd);
LRESULT CALLBACK ProcessMessages(HWND__ *hWnd,u_int32_t Msg,WPARAM wParam, LPARAM lParam);
//non-curses functions, Do not call these in the main game code
extern WINDOW* mainwin;
extern pairs *colorpairs;
WINDOW* curses_init();
int curses_destroy();
void curses_drawwindow(WINDOW* win);
void curses_delay(int delay);
void curses_timeout(int t);
int curses_getch(WINDOW* win);
int curses_start_color();
#endif
+8 -2
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.
-85
View File
@@ -1,85 +0,0 @@
ADDITIONS
1.1 Adding an item
1) Edit itype.h. Change the enum item_id and insert a unique identifier for
your new item type. Be sure to put it among similar items.
2) Edit itypedef.cpp. Macros are used for all item types, and they are pretty
self-explanatory. Be ABSOLUTELY sure that you insert the macro at the same
point in the list as you inserted the identifier in item_id!
3) Your item type is now valid, but won't be spawned. If you want it to be
spawned among similar items, edit mapitemsdef.cpp. Find the appropriate
array(s), and insert the identifier for your item (e.g. itm_aspirin). Make
sure it comes in before the NULL at the end of the list.
5) Some items, like tools or food, also take an iuse::function reference.
Edit iuse.h and include the function in the class declaration; then edit
iuse.cpp and define your function. Functions may be shared among different
item types.
1.2 Adding a monster
1) Edit mtype.h. Change the enum mon_id and insert a unique identifier for
your new monster type. Be sure to put it among similar monsters.
2) Edit mtypedef.cpp. A macro is used for monsters and it is pretty
straightforward (Any of this ring a bell?). Be ABSOLUTELY sure that you
insert the macro at the same point in the list as your inserted the
identifier in mon_id!
3) Your monster type is now valid, but won't be spawned. If you want it to be
spawned among similar monsters, edit mongroupdef.cpp. Find the appropriate
array, and insert the identifier for your monster (e.g, mon_zombie). Make
sure it comes in before the NULL at the end of the list.
4) If you want your monster to drop items, edit monitemsdef.cpp. Make a new
array for your monster type with all the map item groups it may carry, and a
chance value for each.
5) Your monster may have a special attack, a monattack::function reference.
Edit monattack.h and include the function in the class definition; then
edit monattack.cpp and define your function. Functions may be shared among
different monster types. Be aware that the function should contain a
statement that the monster uses to decide whether or not to use the attack,
and if they do, should reset the monster's attack timer.
7) Just like attacks, some monsters may have a special function called when
they die. This works the same as attacks, but the relevent files are
mondeath.h and mondeath.cpp.
1.3 Adding a recipe
1) Edit recipes.json. Add your recipe among similar recipes. Required fields
are "result", "category", "difficulty", "time", "autolearn", "components".
Optional fields are "reversible" (defaults to false), "tools" (defaults to
none), "skill_pri" (primary skill, defaults to none), "skill_sec" (defaults
to none), "id_suffix" (disambiguates recipes with the same result, must be
unique among the set of such recipes), "decomp_learn" (the level (if any)
when you can learn it from disassembly), "book_learn" (a list of books that
teach the recipe, and the level they teach it at).
1.4 Adding/editing armour and how armour protection is calculated
1) Edit armor.json and add your armor item near similar types.
2) The fields are:
"type" : "ARMOR", // this must be ARMOR
"id" : "socks", // the identifier used by the game. Must be one continuous word, use underscores if necessary
"name" : "socks", // the name appearing in the examine box. Can be more than one word separated by spaces
"weight" : 1, // weight of armour
"color" : "blue", // ascii character colour
"covers" : ["FEET"], // where it covers. Possible options are TORSO, HEAD, EYES, MOUTH, ARMS, HANDS, LEGS, FEET
"to_hit" : 0, // to-hit bonus if using it as a melee weapon (whatever for?)
"storage" : 0, // how many volume storage slots it adds
"symbol" : "[", // ascii character
"description" : "Socks. Put 'em on your feet.", // description of armour
"price" : 100, // price of armour, used when bartering with NPCs
"material" : ["COTTON", "NULL"], // material types. See materials.json for possible options
"volume" : 1, // volume occupied
"cutting" : 0, // cutting damage caused by using it as a melee weapon
"warmth" : 10, // how much warmth clothing provides
"phase" : "solid", // what phase it is
"enviromental_protection" : 0, // how much environmental protection it affords
"rarity" : 70, // determines how often it spawns
"encumberance" : 0, // base encumbrance (unfitted value)
"bashing" : -5, // bashing damage caused by using it as a melee weapon
"flags" : ["VARSIZE"] // used to indicate clothing type which can be fitted. Leave out the flags field entirely if clothing cannot be fitted
"coverage" : 80, // what percentage of body part
"material_thickness" : 1 // thickness of material, in millimetre units (approximately). Generally ranges between 1 - 5, more unusual armour types go up to 10 or more
3) When the player is hit at a specific body part, armour coverage determines whether the armour is hit, or an uncovered part of the player is hit (roll 1d100 against coverage)
4) If the above roll fails (ie roll value is above coverage), then the armour does not absorb any damage from the blow, neither does it become damaged
5) If the above roll succeeds, the armour is hit, possibly absorbing some damage and possibly getting damaged in the process
6) The above steps are repeated for each layer of armour on the body part
7) Armour protects against bash and cut damage. These are determined by multiplying the armour thickness by the material bash/cut resistance factor respectively, given in materials.json
8) If the armour is made from 2 materials types, then it takes a weighted average of the primary material (66%) and secondary material (33%).
9) Materials resistance factors are given relative to PAPER as a material (this probably needs some fine-tuning for balance).
-84
View File
@@ -1,84 +0,0 @@
ENUMS
This is a guide to all the enumerations in the game. If you encounter a flag
you don't understand, grep it here. Likewise if a function accepts an m_flags
tag, grep this document for 'm_flags'. Enums are also labeled with the file in
which they are defined.
Format:
<File with definition> : <Name of enum>
<List of values...>
<Related classes, files, notes...>
----------------------------------------
bionics.h : bionic_id
bio_null, bio_batteries, bio_metabolics, bio_solar, bio_furnace, bio_ethanol,
bio_memory, bio_ears, bio_eye_enhancer, bio_membrane, bio_targeting, bio_gills,
bio_purifier, bio_climate, bio_storage, bio_recycler, bio_digestion, bio_tools,
bio_shock, bio_heat_absorb, bio_carbon, bio_armor_head, bio_armor_torso,
bio_armor_arms, bio_armor_legs, bio_flashlight, bio_night_vision, bio_infrared,
bio_face_mask, bio_ads, bio_ods, bio_scent_mask, bio_cloak, bio_painkiller,
bio_nanobots, bio_heatsink, bio_resonator, bio_time_freeze, bio_teleport,
bio_blood_anal, bio_blood_filter, bio_alarm, bio_evap, bio_lighter, bio_claws,
bio_blaster, bio_laser, bio_emp, bio_hydraulics, bio_water_extractor,
bio_magnet, bio_fingerhack, bio_lockpick, bio_ground_sonar, max_bio_start,
bio_banish, bio_gate_out, bio_gate_in, bio_nightfall, bio_drilldown,
bio_heatwave, bio_lightning, bio_tremor, bio_flashflood, max_bio_good,
bio_dis_shock, bio_dis_acid, bio_drain, bio_noise, bio_power_weakness,
bio_stiff, max_bio
bodypart.h : body_part
color.h : col_attribute
color.h : nc_color
crafting.h : craft_cat
dialogue.h : talk_topic
enums.h : material
event.h : event_type
faction.h : faction_goal
faction.h : faction_job
faction.h : faction_value
game.h : tut_type
itype.h : itype_id
itype.h : item_cat
itype.h : ammotype
itype.h : weapon_flag
itype.h : container_flags
line.h : direction
map.cpp : astar_list
mapdata.h : t_flag
mapdata.h : ter_id
mapdata.h : map_extra
mapdata.h : field_id
mapgen.cpp : room_type
mapitems.h : items_location
mission.h : mission_id
mission.h : mission_origin
mission.h : mission_goal
mongroup.h : moncat_id
monster.h : monster_effect_type
morale.h:enum morale_type
mtype.h : mon_id
mtype.h : m_size
mtype.h : m_flags
npc.h : npc_attitude
npc.h : npc_mission
npc.h : npc_class
npc.h : npc_action
npc.h : npc_need
npc.h : npc_flag
omdata.h : oter_id
omdata.h:// Order MUST match enum oter_id above!
overmap.h:#include "enums.h"
pldata.h : character_type
pldata.h : dis_type
pldata.h : add_type
pldata.h : activity_type
pldata.h : pl_flag
pldata.h : hp_part
skill.h : skill
trap.h : trap_id
tutorial.h : tut_lesson
weather.h : season_type
weather.h : weather_type
+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.
@@ -18,15 +21,14 @@ Successful dodges negate the attack and impose a cumulative penalty on dodges wi
Dodge Use Cases:
An individual with no skill and nominal stats in ideal circumstances against a basic opponent should occasionally be able to dodge.
An individual with no skill and nominal stats in ideal corcumstances against a skilled opponent should rarely if ever be able to dodge.
An individual with no skill and nominal stats in ideal circumstances against a skilled opponent should rarely if ever be able to dodge.
An individual with world-class dodging ability, in ideal circumstances against a basic opponent should have a negligible chance of failure.
An individual with world-class dodging ability, in ideal circumstances against a skilled opponent should have a moderate chance of failure.
The effect of increasing dodge skill has a growth rate with diminishing returns that accelerates sharply at the point where you move beyond the dodge a "regular" character is likely to achieve (7 and above)
The effect of increasing dodge skill has a growth rate with diminishing returns that accelerates sharply at the point where you move beyond the dodge a "regular" character is likely to achieve (7 and above)
The balance of melee versus dodge should favour dodge which, after all, isn't effective against a wide variety of other types of attacks.
Even a world class dodger should not be able to dodge continuously when attacked many times a turn.
+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);
+1221 -884
View File
File diff suppressed because it is too large Load Diff
+86 -82
View File
@@ -12,122 +12,126 @@ class player;
enum computer_action
{
COMPACT_NULL = 0,
COMPACT_OPEN,
COMPACT_LOCK,
COMPACT_UNLOCK,
COMPACT_TOLL,
COMPACT_SAMPLE,
COMPACT_RELEASE,
COMPACT_TERMINATE,
COMPACT_PORTAL,
COMPACT_CASCADE,
COMPACT_RESEARCH,
COMPACT_MAPS,
COMPACT_MAP_SEWER,
COMPACT_MISS_LAUNCH,
COMPACT_MISS_DISARM,
COMPACT_LIST_BIONICS,
COMPACT_ELEVATOR_ON,
COMPACT_AMIGARA_LOG,
COMPACT_AMIGARA_START,
COMPACT_DOWNLOAD_SOFTWARE,
COMPACT_BLOOD_ANAL,
COMPACT_DATA_ANAL,
COMPACT_DISCONNECT,
COMPACT_STEMCELL_TREATMENT,
COMPACT_EMERG_MESS,
COMPACT_TOWER_UNRESPONSIVE,
COMPACT_SR1_MESS, //Security Reminders for Hazardous Waste Sarcophagus (SRCF)
COMPACT_SR2_MESS,
COMPACT_SR3_MESS,
COMPACT_SR4_MESS,
COMPACT_SRCF_1_MESS,
COMPACT_SRCF_2_MESS,
COMPACT_SRCF_3_MESS,
COMPACT_SRCF_SEAL_ORDER,
COMPACT_SRCF_SEAL,
NUM_COMPUTER_ACTIONS
COMPACT_NULL = 0,
COMPACT_OPEN,
COMPACT_LOCK,
COMPACT_UNLOCK,
COMPACT_TOLL,
COMPACT_SAMPLE,
COMPACT_RELEASE,
COMPACT_TERMINATE,
COMPACT_PORTAL,
COMPACT_CASCADE,
COMPACT_RESEARCH,
COMPACT_MAPS,
COMPACT_MAP_SEWER,
COMPACT_MISS_LAUNCH,
COMPACT_MISS_DISARM,
COMPACT_LIST_BIONICS,
COMPACT_ELEVATOR_ON,
COMPACT_AMIGARA_LOG,
COMPACT_AMIGARA_START,
COMPACT_DOWNLOAD_SOFTWARE,
COMPACT_BLOOD_ANAL,
COMPACT_DATA_ANAL,
COMPACT_DISCONNECT,
COMPACT_STEMCELL_TREATMENT,
COMPACT_EMERG_MESS,
COMPACT_TOWER_UNRESPONSIVE,
COMPACT_SR1_MESS, //Security Reminders for Hazardous Waste Sarcophagus (SRCF)
COMPACT_SR2_MESS,
COMPACT_SR3_MESS,
COMPACT_SR4_MESS,
COMPACT_SRCF_1_MESS,
COMPACT_SRCF_2_MESS,
COMPACT_SRCF_3_MESS,
COMPACT_SRCF_SEAL_ORDER,
COMPACT_SRCF_SEAL,
COMPACT_SRCF_ELEVATOR,
NUM_COMPUTER_ACTIONS
};
enum computer_failure
{
COMPFAIL_NULL = 0,
COMPFAIL_SHUTDOWN,
COMPFAIL_ALARM,
COMPFAIL_MANHACKS,
COMPFAIL_SECUBOTS,
COMPFAIL_DAMAGE,
COMPFAIL_PUMP_EXPLODE,
COMPFAIL_PUMP_LEAK,
COMPFAIL_AMIGARA,
COMPFAIL_DESTROY_BLOOD,
COMPFAIL_DESTROY_DATA,
NUM_COMPUTER_FAILURES
COMPFAIL_NULL = 0,
COMPFAIL_SHUTDOWN,
COMPFAIL_ALARM,
COMPFAIL_MANHACKS,
COMPFAIL_SECUBOTS,
COMPFAIL_DAMAGE,
COMPFAIL_PUMP_EXPLODE,
COMPFAIL_PUMP_LEAK,
COMPFAIL_AMIGARA,
COMPFAIL_DESTROY_BLOOD,
COMPFAIL_DESTROY_DATA,
NUM_COMPUTER_FAILURES
};
struct computer_option
{
std::string name;
computer_action action;
int security;
std::string name;
computer_action action;
int security;
computer_option() { name = "Unknown", action = COMPACT_NULL, security = 0; };
computer_option(std::string N, computer_action A, int S) :
name (N), action (A), security (S) {};
computer_option()
{
name = "Unknown", action = COMPACT_NULL, security = 0;
};
computer_option(std::string N, computer_action A, int S) :
name (N), action (A), security (S) {};
};
class computer
{
public:
computer();
computer(std::string Name, int Security);
~computer();
computer();
computer(std::string Name, int Security);
~computer();
computer & operator=(const computer &rhs);
computer & operator=(const computer &rhs);
// Initialization
void set_security(int Security);
void add_option(std::string opt_name, computer_action action, int Security);
void add_failure(computer_failure failure);
void set_security(int Security);
void add_option(std::string opt_name, computer_action action, int Security);
void add_failure(computer_failure failure);
// Basic usage
void shutdown_terminal(); // Shutdown (free w_terminal, etc)
void use(game *g);
bool hack_attempt(game *g, player *p, int Security = -1);// -1 defaults to main security
void shutdown_terminal(); // Shutdown (free w_terminal, etc)
void use(game *g);
bool hack_attempt(game *g, player *p, int Security = -1);// -1 defaults to main security
// Save/load
std::string save_data();
void load_data(std::string data);
std::string save_data();
void load_data(std::string data);
std::string name; // "Jon's Computer", "Lab 6E77-B Terminal Omega"
int mission_id; // Linked to a mission?
std::string name; // "Jon's Computer", "Lab 6E77-B Terminal Omega"
int mission_id; // Linked to a mission?
private:
int security; // Difficulty of simply logging in
std::vector<computer_option> options; // Things we can do
std::vector<computer_failure> failures; // Things that happen if we fail a hack
WINDOW *w_terminal; // Output window
int security; // Difficulty of simply logging in
std::vector<computer_option> options; // Things we can do
std::vector<computer_failure> failures; // Things that happen if we fail a hack
WINDOW *w_terminal; // Output window
// Called by use()
void activate_function (game *g, computer_action action);
void activate_function (game *g, computer_action action);
// Generally called when we fail a hack attempt
void activate_random_failure(game *g);
void activate_random_failure(game *g);
// ...but we can also choose a specific failure.
void activate_failure (game *g, computer_failure fail);
void activate_failure (game *g, computer_failure fail);
// OUTPUT/INPUT
// Reset to a blank terminal (e.g. at start of usage loop)
void reset_terminal();
void reset_terminal();
// Prints a line to the terminal (with printf flags)
void print_line(const char *text, ...);
void print_line(const char *text, ...);
// For now, the same as print_line but in red (TODO: change this?)
void print_error(const char *text, ...);
void print_error(const char *text, ...);
// Prints code-looking gibberish
void print_gibberish_line();
void print_gibberish_line();
// Prints a line and waits for Y/N/Q
char query_ynq(const char *text, ...);
char query_ynq(const char *text, ...);
// Same as query_ynq, but returns true for y or Y
bool query_bool(const char *text, ...);
bool query_bool(const char *text, ...);
// Simply wait for any key, returns True
bool query_any(const char *text, ...);
bool query_any(const char *text, ...);
};
#endif
+1218 -1172
View File
File diff suppressed because it is too large Load Diff
+15 -8
View File
@@ -7,12 +7,17 @@ struct construct;
struct construction_stage
{
ter_id terrain;
furn_id furniture;
int time; // In minutes, i.e. 10 turns
std::vector<component> tools[10];
std::vector<component> components[10];
construction_stage(ter_id Terrain, int Time) :
terrain (Terrain), time (Time) { };
terrain (Terrain), furniture(f_null), time (Time) { };
construction_stage(furn_id Furniture, int Time) :
terrain (t_null), furniture (Furniture), time (Time) { };
construction_stage(int Time) :
terrain (t_null), furniture (f_null), time (Time) { };
};
struct constructable
@@ -20,14 +25,16 @@ struct constructable
int id;
std::string name; // Name as displayed
int difficulty; // Carpentry skill level required
bool loopstages;
std::vector<construction_stage> stages;
bool (construct::*able) (game *, point);
void (construct::*done) (game *, point);
constructable(int Id, std::string Name, int Diff,
bool (construct::*Able) (game *, point),
void (construct::*Done) (game *, point)) :
id (Id), name (Name), difficulty (Diff), able (Able), done (Done) {};
void (construct::*Done) (game *, point),
bool LoopStages = false) :
id (Id), name (Name), difficulty (Diff), loopstages (LoopStages), able (Able), done (Done) {};
};
struct construct // Construction functions.
@@ -49,7 +56,6 @@ struct construct // Construction functions.
bool able_wall (game *, point); // Able if tile is wall
bool able_wall_wood(game *g, point); // Only player-built walls
bool able_indoors(game *g, point); // Able on floors
bool able_between_walls(game *, point); // Flood-fill contained by walls
@@ -58,9 +64,9 @@ struct construct // Construction functions.
bool able_pit(game *, point); // Able only on pits
bool able_tree(game *, point); // Able on trees
bool able_log(game *, point); // Able on logs
bool able_trunk(game *, point); // Able on tree trunks
bool able_furniture(game *, point); // Able on furniture
bool able_move(game *, point); // Able on furniture
bool able_deconstruct(game *, point);
@@ -69,8 +75,9 @@ struct construct // Construction functions.
void done_window_pane(game *, point);
void done_vehicle(game *, point);
void done_tree(game *, point);
void done_log(game *, point);
void done_furniture(game *, point);
void done_trunk_log(game *, point);
void done_trunk_plank(game *, point);
void done_move(game *, point);
void done_tape(game *, point);
void done_deconstruct(game *, point);
+1683 -1633
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, const char *p1,
const char *p2, int pdiff, int ptime, bool preversible, bool pautolearn,
recipe(std::string pident, int pid, itype_id pres, craft_cat pcat, std::string &to_use,
std::map<std::string,int> &to_require, int pdiff, int ptime, bool preversible, bool pautolearn,
int plearn_dis) :
ident (pident), id (pid), result (pres), cat(pcat), difficulty (pdiff), time (ptime),
reversible (preversible), autolearn (pautolearn), learn_by_disassembly (plearn_dis)
{
sk_primary = p1?Skill::skill(p1):NULL;
sk_secondary = p2?Skill::skill(p2):NULL;
reversible (preversible), autolearn (pautolearn), learn_by_disassembly (plearn_dis) {
skill_used = to_use.size()?Skill::skill(to_use):NULL;
if(to_require.size()){
for(std::map<std::string,int>::iterator iter=to_require.begin(); iter!=to_require.end(); ++iter){
required_skills[Skill::skill(iter->first)] = iter->second;
}
}
}
};
+4 -4
View File
@@ -1,12 +1,12 @@
#ifndef _CURSES_DEF_H_
#define _CURSES_DEF_H_
#if (defined _WIN32 || defined WINDOWS)
#include "catacurse.h"
#if (defined TILES || defined SDLTILES || defined _WIN32 || defined WINDOWS)
#include "catacurse.h"
#elif (defined __CYGWIN__)
#include "ncurses/curses.h"
#include "ncurses/curses.h"
#else
#include <curses.h>
#include <curses.h>
#endif
#endif // CURSES_DEF_H
+693
View File
@@ -0,0 +1,693 @@
#if ((defined TILES ^ defined SDLTILES) || defined _WIN32 || defined WINDOWS)
#include "catacurse.h"
#include "output.h"
#include "color.h"
#include "catacharset.h"
//***********************************
//Globals *
//***********************************
WINDOW *mainwin;
pairs *colorpairs; //storage for pair'ed colored, should be dynamic, meh
int echoOn; //1 = getnstr shows input, 0 = doesn't show. needed for echo()-ncurses compatibility.
//***********************************
//Psuedo-Curses Functions *
//***********************************
//Basic Init, create the font, backbuffer, etc
WINDOW *initscr(void)
{
return curses_init();
}
WINDOW *newwin(int nlines, int ncols, int begin_y, int begin_x)
{
if (begin_y < 0 || begin_x < 0) {
return NULL; //it's the caller's problem now (since they have logging functions declared)
}
// default values
if (ncols == 0)
{
ncols = TERMX - begin_x;
}
if (nlines == 0)
{
nlines = TERMY - begin_y;
}
int i,j;
WINDOW *newwindow = new WINDOW;
//newwindow=&_windows[WindowCount];
newwindow->x=begin_x;
newwindow->y=begin_y;
newwindow->width=ncols;
newwindow->height=nlines;
newwindow->inuse=true;
newwindow->draw=false;
newwindow->BG=0;
newwindow->FG=8;
newwindow->cursorx=0;
newwindow->cursory=0;
newwindow->line = new curseline[nlines];
for (j=0; j<nlines; j++)
{
newwindow->line[j].chars= new char[ncols*4];
newwindow->line[j].FG= new char[ncols];
newwindow->line[j].BG= new char[ncols];
newwindow->line[j].touched=true;//Touch them all !?
newwindow->line[j].width_in_bytes = ncols;
for (i=0; i<ncols; i++)
{
newwindow->line[j].chars[i]=0;
newwindow->line[j].chars[i+1]=0;
newwindow->line[j].chars[i+2]=0;
newwindow->line[j].chars[i+3]=0;
newwindow->line[j].FG[i]=0;
newwindow->line[j].BG[i]=0;
}
}
//WindowCount++;
return newwindow;
}
//Deletes the window and marks it as free. Clears it just in case.
int delwin(WINDOW *win)
{
int j;
win->inuse=false;
win->draw=false;
for (j=0; j<win->height; j++){
delete win->line[j].chars;
delete win->line[j].FG;
delete win->line[j].BG;
}
delete win->line;
delete win;
return 1;
}
inline int newline(WINDOW *win){
if (win->cursory < win->height - 1){
win->cursory++;
win->cursorx=0;
return 1;
}
return 0;
}
inline void addedchar(WINDOW *win){
win->cursorx++;
win->line[win->cursory].touched=true;
if (win->cursorx > win->width)
newline(win);
}
//Borders the window with fancy lines!
int wborder(WINDOW *win, chtype ls, chtype rs, chtype ts, chtype bs, chtype tl, chtype tr, chtype bl, chtype br)
{
/*
ncurses does not do this, and this prevents: wattron(win, c_customBordercolor); wborder(win, ...); wattroff(win, c_customBorderColor);
wattron(win, c_white);
*/
int i, j;
int oldx=win->cursorx;//methods below move the cursor, save the value!
int oldy=win->cursory;//methods below move the cursor, save the value!
if (ls) {
for (j=1; j<win->height-1; j++)
mvwaddch(win, j, 0, ls);
} else {
for (j=1; j<win->height-1; j++)
mvwaddch(win, j, 0, LINE_XOXO);
}
if (rs) {
for (j=1; j<win->height-1; j++)
mvwaddch(win, j, win->width-1, rs);
} else {
for (j=1; j<win->height-1; j++)
mvwaddch(win, j, win->width-1, LINE_XOXO);
}
if (ts) {
for (i=1; i<win->width-1; i++)
mvwaddch(win, 0, i, ts);
} else {
for (i=1; i<win->width-1; i++)
mvwaddch(win, 0, i, LINE_OXOX);
}
if (bs) {
for (i=1; i<win->width-1; i++)
mvwaddch(win, win->height-1, i, bs);
} else {
for (i=1; i<win->width-1; i++)
mvwaddch(win, win->height-1, i, LINE_OXOX);
}
if (tl)
mvwaddch(win, 0, 0, tl);
else
mvwaddch(win, 0, 0, LINE_OXXO);
if (tr)
mvwaddch(win, 0, win->width-1, tr);
else
mvwaddch(win, 0, win->width-1, LINE_OOXX);
if (bl)
mvwaddch(win, win->height-1, 0, bl);
else
mvwaddch(win, win->height-1, 0, LINE_XXOO);
if (br)
mvwaddch(win, win->height-1, win->width-1, br);
else
mvwaddch(win, win->height-1, win->width-1, LINE_XOOX);
//_windows[w].cursorx=oldx;//methods above move the cursor, put it back
//_windows[w].cursory=oldy;//methods above move the cursor, put it back
wmove(win,oldy,oldx);
wattroff(win, c_white);
return 1;
}
int hline(chtype ch, int n)
{
return whline(mainwin, ch, n);
}
int vline(chtype ch, int n)
{
return wvline(mainwin, ch, n);
}
int whline(WINDOW *win, chtype ch, int n)
{
return mvwvline(mainwin, win->cursory, win->cursorx, ch, n);
}
int wvline(WINDOW *win, chtype ch, int n)
{
return mvwvline(mainwin, win->cursory, win->cursorx, ch, n);
}
int mvhline(int y, int x, chtype ch, int n)
{
return mvwhline(mainwin, y, x, ch, n);
}
int mvvline(int y, int x, chtype ch, int n)
{
return mvwvline(mainwin, y, x, ch, n);
}
int mvwhline(WINDOW *win, int y, int x, chtype ch, int n)
{
if (ch){
for (int i=0; i<n; i++)
mvwaddch(win, y, x + i, ch);
} else {
for (int i=0; i<n; i++)
mvwaddch(win, y, x + i, LINE_OXOX);
}
return 0;
}
int mvwvline(WINDOW *win, int y, int x, chtype ch, int n)
{
if (ch){
for (int j=0; j<n; j++)
mvwaddch(win, y + j, x, ch);
} else {
for (int j=0; j<n; j++)
mvwaddch(win, y + j, x, LINE_XOXO);
}
return 0;
}
//Refreshes a window, causing it to redraw on top.
int wrefresh(WINDOW *win)
{
if (win==0) win=mainwin;
if (win->draw)
curses_drawwindow(win);
return 1;
}
//Refreshes window 0 (stdscr), causing it to redraw on top.
int refresh(void)
{
return wrefresh(mainwin);
}
int getch(void)
{
return wgetch(mainwin);
}
int wgetch(WINDOW* win)
{
return curses_getch(win);
}
int mvgetch(int y, int x)
{
move(y,x);
return getch();
}
int mvwgetch(WINDOW* win, int y, int x)
{
move(y, x);
return wgetch(win);
}
int getnstr(char *str, int size)
{
int startX = mainwin->cursorx;
int count = 0;
char input;
while(true)
{
input = getch();
// Carriage return, Line feed and End of File terminate the input.
if( input == '\r' || input == '\n' || input == '\x04' )
{
str[count] = '\x00';
return count;
}
else if( input == 127 ) // Backspace, remapped from \x8 in ProcessMessages()
{
if( count == 0 )
continue;
str[count] = '\x00';
if(echoOn == 1)
mvaddch(mainwin->cursory, startX + count, ' ');
--count;
if(echoOn == 1)
move(mainwin->cursory, startX + count);
}
else
{
if( count >= size - 1 ) // Still need space for trailing 0x00
continue;
str[count] = input;
++count;
if(echoOn == 1)
{
move(mainwin->cursory, startX + count);
mvaddch(mainwin->cursory, startX + count, input);
}
}
}
return count;
}
//The core printing function, prints characters to the array, and sets colors
inline int printstring(WINDOW *win, char *fmt)
{
int size = strlen(fmt);
if(size>0)
{
int j, i, p=win->cursorx;
int x = (win->line[win->cursory].width_in_bytes==win->width)?win->cursorx:cursorx_to_position(win->line[win->cursory].chars, win->cursorx, &p);
if(p!=x)//so we start inside a wide character, erase it for good
{
const char* ts = win->line[win->cursory].chars+p;
int len = ANY_LENGTH;
unsigned tc = UTF8_getch(&ts, &len);
int tw = mk_wcwidth((wchar_t)tc);
erease_utf8_by_cw(win->line[win->cursory].chars+p, tw, tw, win->width*4-p-1);
x = p+tw-1;
}
for (j=0; j<size; j++){
if (!(fmt[j]==10)){//check that this isnt a newline char
const char* utf8str = fmt+j;
int len = ANY_LENGTH;
unsigned ch = UTF8_getch(&utf8str, &len);
int cw = mk_wcwidth((wchar_t)ch);
len = ANY_LENGTH-len;
if(cw<1) cw = 1;
if(len<1) len = 1;
if (win->cursorx+cw <= win->width && win->cursory <= win->height - 1) {
win->line[win->cursory].width_in_bytes += erease_utf8_by_cw(win->line[win->cursory].chars+x, cw, len, win->width*4-x-1);
for(i=0; i<len; i++)
{
win->line[win->cursory].chars[x+i]=fmt[j+i];
}
for(i=0; i<cw; i++)
{
win->line[win->cursory].FG[win->cursorx]=win->FG;
win->line[win->cursory].BG[win->cursorx]=win->BG;
addedchar(win);
}
win->line[win->cursory].touched=true;
j += len-1;
x+=len;
} else if (win->cursory <= win->height - 1) {
// don't write outside the window, but don't abort if there are still lines to write.
//j += len-1;
//x+=len;
} else {
return 0; //if we try and write anything outside the window, abort completely
}
} else {// if the character is a newline, make sure to move down a line
if (newline(win)==0){
return 0;
}
x = 0;
}
}
}
win->draw=true;
return 1;
}
//Prints a formatted string to a window at the current cursor, base function
int wprintw(WINDOW *win, const char *fmt, ...)
{
va_list args;
va_start(args, fmt);
char printbuf[2048];
vsnprintf(printbuf, 2047, fmt, args);
va_end(args);
return printstring(win,printbuf);
}
//Prints a formatted string to a window, moves the cursor
int mvwprintw(WINDOW *win, int y, int x, const char *fmt, ...)
{
va_list args;
va_start(args, fmt);
char printbuf[2048];
vsnprintf(printbuf, 2047, fmt, args);
va_end(args);
if (wmove(win,y,x)==0) return 0;
return printstring(win,printbuf);
}
//Prints a formatted string to window 0 (stdscr), moves the cursor
int mvprintw(int y, int x, const char *fmt, ...)
{
va_list args;
va_start(args, fmt);
char printbuf[2048];
vsnprintf(printbuf, 2047, fmt, args);
va_end(args);
if (move(y,x)==0) return 0;
return printstring(mainwin,printbuf);
}
//Prints a formatted string to window 0 (stdscr) at the current cursor
int printw(const char *fmt, ...)
{
va_list args;
va_start(args, fmt);
char printbuf[2078];
vsnprintf(printbuf, 2047, fmt, args);
va_end(args);
return printstring(mainwin,printbuf);
}
//erases a window of all text and attributes
int werase(WINDOW *win)
{
int j,i;
for (j=0; j<win->height; j++)
{
for (i=0; i<win->width; i++) {
win->line[j].chars[i]=0;
win->line[j].chars[i+1]=0;
win->line[j].chars[i+2]=0;
win->line[j].chars[i+3]=0;
win->line[j].FG[i]=0;
win->line[j].BG[i]=0;
}
win->line[j].touched=true;
win->line[j].width_in_bytes = win->width;
}
win->draw=true;
wmove(win,0,0);
// wrefresh(win);
return 1;
}
//erases window 0 (stdscr) of all text and attributes
int erase(void)
{
return werase(mainwin);
}
//pairs up a foreground and background color and puts it into the array of pairs
int init_pair(short pair, short f, short b)
{
colorpairs[pair].FG=f;
colorpairs[pair].BG=b;
return 1;
}
//moves the cursor in a window
int wmove(WINDOW *win, int y, int x)
{
if (x>=win->width)
{return 0;}//FIXES MAP CRASH -> >= vs > only
if (y>=win->height)
{return 0;}// > crashes?
if (y<0)
{return 0;}
if (x<0)
{return 0;}
win->cursorx=x;
win->cursory=y;
return 1;
}
//Clears windows 0 (stdscr) I'm not sure if its suppose to do this?
int clear(void)
{
return wclear(mainwin);
}
//Ends the terminal, destroy everything
int endwin(void)
{
return curses_destroy();
}
//adds a character to the window
int mvwaddch(WINDOW *win, int y, int x, const chtype ch)
{
if (wmove(win,y,x)==0) return 0;
return waddch(win, ch);
}
//clears a window
int wclear(WINDOW *win)
{
werase(win);
clearok(win);
return 1;
}
int clearok(WINDOW *win)
{
for (int i=0; i<win->y; i++)
{
win->line[i].touched = true;
}
return 1;
}
//gets the max x of a window (the width)
int getmaxx(WINDOW *win)
{
if (win==0) return mainwin->width; //StdScr
return win->width;
}
//gets the max y of a window (the height)
int getmaxy(WINDOW *win)
{
if (win==0) return mainwin->height; //StdScr
return win->height;
}
//gets the beginning x of a window (the x pos)
int getbegx(WINDOW *win)
{
if (win==0) return mainwin->x; //StdScr
return win->x;
}
//gets the beginning y of a window (the y pos)
int getbegy(WINDOW *win)
{
if (win==0) return mainwin->y; //StdScr
return win->y;
}
int start_color(void)
{
return curses_start_color();
}
int keypad(WINDOW *faux, bool bf)
{
return 1;
}
int cbreak(void)
{
return 1;
}
int keypad(int faux, bool bf)
{
return 1;
}
int curs_set(int visibility)
{
return 1;
}
int mvaddch(int y, int x, const chtype ch)
{
return mvwaddch(mainwin,y,x,ch);
}
int wattron(WINDOW *win, int attrs)
{
bool isBold = !!(attrs & A_BOLD);
bool isBlink = !!(attrs & A_BLINK);
int pairNumber = (attrs & A_COLOR) >> 17;
win->FG=colorpairs[pairNumber].FG;
win->BG=colorpairs[pairNumber].BG;
if (isBold) win->FG += 8;
if (isBlink) win->BG += 8;
return 1;
}
int wattroff(WINDOW *win, int attrs)
{
win->FG=8; //reset to white
win->BG=0; //reset to black
return 1;
}
int attron(int attrs)
{
return wattron(mainwin, attrs);
}
int attroff(int attrs)
{
return wattroff(mainwin,attrs);
}
int waddch(WINDOW *win, const chtype ch)
{
char charcode;
charcode=ch;
switch (ch){ //LINE_NESW - X for on, O for off
case LINE_XOXO: //#define LINE_XOXO 4194424
charcode=LINE_XOXO_C;
break;
case LINE_OXOX: //#define LINE_OXOX 4194417
charcode=LINE_OXOX_C;
break;
case LINE_XXOO: //#define LINE_XXOO 4194413
charcode=LINE_XXOO_C;
break;
case LINE_OXXO: //#define LINE_OXXO 4194412
charcode=LINE_OXXO_C;
break;
case LINE_OOXX: //#define LINE_OOXX 4194411
charcode=LINE_OOXX_C;
break;
case LINE_XOOX: //#define LINE_XOOX 4194410
charcode=LINE_XOOX_C;
break;
case LINE_XXOX: //#define LINE_XXOX 4194422
charcode=LINE_XXOX_C;
break;
case LINE_XXXO: //#define LINE_XXXO 4194420
charcode=LINE_XXXO_C;
break;
case LINE_XOXX: //#define LINE_XOXX 4194421
charcode=LINE_XOXX_C;
break;
case LINE_OXXX: //#define LINE_OXXX 4194423
charcode=LINE_OXXX_C;
break;
case LINE_XXXX: //#define LINE_XXXX 4194414
charcode=LINE_XXXX_C;
break;
default:
charcode = (char)ch;
break;
}
int cury=win->cursory;
int p = win->cursorx;
int curx=(win->line[cury].width_in_bytes==win->width)?win->cursorx:cursorx_to_position(win->line[cury].chars, win->cursorx, &p);
if(curx!=p)
{
const char* ts = win->line[cury].chars+p;
int len = ANY_LENGTH;
unsigned tc = UTF8_getch(&ts, &len);
int tw = mk_wcwidth((wchar_t)tc);
win->line[cury].width_in_bytes += erease_utf8_by_cw(win->line[cury].chars+p, tw, tw, win->width*4-p-1);
curx = p+tw-1;
}
else if(win->line[cury].width_in_bytes!=win->width)
{
win->line[cury].width_in_bytes += erease_utf8_by_cw(win->line[cury].chars+p, 1, 1, win->width*4-p-1);
}
//if (win2 > -1){
win->line[cury].chars[curx]=charcode;
win->line[cury].FG[win->cursorx]=win->FG;
win->line[cury].BG[win->cursorx]=win->BG;
win->draw=true;
addedchar(win);
return 1;
// else{
// win2=win2+1;
}
//Move the cursor of windows 0 (stdscr)
int move(int y, int x)
{
return wmove(mainwin,y,x);
}
//Set the amount of time getch waits for input
void timeout(int delay)
{
curses_timeout(delay);
}
void set_escdelay(int delay) { } //PORTABILITY, DUMMY FUNCTION
int echo()
{
echoOn = 1;
return 0; // 0 = OK, -1 = ERR
}
int noecho()
{
echoOn = 0;
return 0;
}
#endif
+4 -2
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
+3 -3
View File
@@ -1,3 +1,3 @@
Terminus
8
16
Terminus
8
16
+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.
Executable → Regular
View File

Before

Width:  |  Height:  |  Size: 66 KiB

After

Width:  |  Height:  |  Size: 66 KiB

Executable → Regular
+246 -6
View File
@@ -1,22 +1,209 @@
Changelog will be a little light for the early entries due to me being really bad at documenting things.
0.8
Highlights:
---
Releasing with Russian, Chinese, and bla translations.
Draggable vhicles, e.g. shopping carts.
Memorial file listing player history.
Tiles!
Basic farming support.
Support for save backwards compatability.
Option to adjust city size, make a whole map metropolis!
Option to adjust monster density, walls of zombies!
Features:
---
Intelligence dependent skill rust option.
Uncanny Dodge CBM
Weight management rework, weight now in grams.
If the player is overloaded, the strain causes pain.
Display option for metric vs imperial vehicle speed.
Beanbag rounds for shotguns and grenade launchers.
Added headlights that can be aimed at installation time.
Active bionics.
Throw single items from stacks instead of whole stack.
Updated many menus to updated menu system that provides acrolling, filtering and more unified hotkeys.
Crafting overhaul, crafting no longer trains combat skills and vice versa.
Reworked rain protection, items now have waterproof flags.
Crafting recipes you can actually perform bubble to the top of the list.
New laser weapons.
Pneumatic weapons.
Narrow sidebar option.
Support unicode character names.
Aim-related gunmods.
Automatically adjust aim path if the default path is blocked by something.
Play Now game start for one-click game initiation.
Rework encumbrance to remove nonsensical negative encumbrance.
Loosen strictness of encumbrance in general.
Heated melee weapons.
Plastic item crafting.
Option overhaul with new tabbed menu.
Swimming now makes you wet.
Wetness can be a good thing when it's hot and you're properly attired.
Wetness effects asjusted by some mutations.
Portable Game system now usable, has playable games snake, sokoban, and robotfindskitten.
Vehicle components, vehicles, mutations and traits are moddable in json.
fruit bushes spawn in groups.
Significant rebalance of fire, emits less smoke, and small fires should burn longer.
Basic farming support.
Welding rig vehicle component.
When in a square with clothes and bedding, sleeping players will use them for warmth.
Corpse-filled pits cause less or no damage.
Adrenaline shot item.
Nerfed Adrenaline rush effect, no more bullettime.
Small vehicles are draggable and pushable. Added shopping carts.
Funnel now directs rain into container in the same square during rain.
Mutation dreams.
Siphon water out of vehicles with water tanks.
Ice labs.
Vehicle collisions based on SCIENCE!
Streamlined selecting same ammo over and over again.
Blacksmithing.
Pickling and other food preservation techniques.
Re-enabled mouth encumbrance.
Caseless ammunition and guns.
New heavy weapons.
More features spawning in houses.
Significantly reduced map save size.
Lots of professions.
Many many items and crafting recipes.
Energy weapon special effects.
Scrollbars in many list menus.
Vehicles can spawn smashed into each other.
Bugfixes:
---
Mouse cursor hiding.
Terminal text display fixes.
Very significant performance improvements.
Removed input delay.
Allow exiting from long-term activities like wait.
All titlebars should use the correct version number.
Remove busywaitin WinGDI build. (caused 100% CPU usage)
No more "nothing" map tiles.
Hand out letters to bionics so more than a few are usable.
Monsters no longer attack themselves.
Fatal hunger/thirst/fatigue detected correctly.
Major monster handling performance improvements to make 50x zombies work.
Nerfed smoke inhalation.
Major performance increase in mapgen to make huge cities generate before the heat death of the universe.
Rain and acid rain doesn't bother you when underwater.
Batched raycasting optimization.
Fixed old inventory letter overlapping bug.
Use shadowcasting algorithm for fast and accurate fov calculation.
Vehicles no longer spawn floating above water.
Loaded ammo, such as nails in a nailgun can be used for crafting.
Light from items more consistent.
======
0.7.1 (bugfix point release)
Vehicle bed sleepiness fix.
Made coughing from smoke wake you up.
Update version for MSVC project builds.
Remove coverage property from wristwatch to prevent ensumberance.
Supress pickup from vehicle when doing autopickup.
Fix typo in spawn list.
Don't draw item glyphs on top of furniture glyphs.
Strip out references to a removed ammunition in spawn lists.
Change in how Vehicle Examination window is displayed so it works in 12x12 View Screens
Fix for weapon mods with no ammo types.
0.7
Highlights:
---
Use ncursesw and gettext for i18n support and expanded character palette.
Configurable Autopickup feature.
Configurable item spawning lists, now with more configurable spawn frequencies.
New advanced bionics.
Features:
---
Use ncursesw and gettext for i18n support and expanded character palette.
Configurable Autopickup feature.
Configurable item spawning lists, now with more configurable spawn frequencies.
Probability Travel Bionic (walk through walls!)
Railgun Bionic (throw metal items at the speed of electricity!)
Flashbang bionic.
Shockwave Generator bionic.
Chain Lightning bionic.
Artificial Night bionic.
Streamlined lumberjacking tasks.
Splints are now craftable and (slowly!) heal broken limbs.
Recover CBMs from butchered player corpses
Small game arrow.
Spoiled (rotten) items will now be removed from the map after twice the time it takes to spoil.
Lit torches set enemies on fire.
Toggled Metabolic Interchange bionic, active power sources.
Changed Optimist to be more thematic and balanced.
Morale effects have more flexible durations.
Extensively reworked fire handling, e.g. campfires should last a more reasonable duration.
Preserve martial art style selection across wielding/unwielding weapons.
Simulate alt+number input for SDL version.
Quicksave command.
Added basic sludge crawler monster
More crafting recipes.
Stash knives in your boots.
Folding bicycle you can stash in a trunk.
New improvised guns.
More survival-ish foods.
Added some more heavy pistols and ammunition.
New Improvised lockpick!
Floatation Vest.
Added wine and a new shirt.
Towels.
Fuzzy time display, and precise time with wristwatch item.
Bugfixes:
---
Multiple gates near one handle work correctly.
Made wild Jabberwocks much more rare.
Fix turrets shuffing around when off map.
Prevent gibbing from low-damage sources.
House generation fixes.
Allow deconstruction of refrigerators.
More consistent road placement.
Make mongroups die propperly, even if the queen dies at a distance
Monsters killed by wide attacks drop corpses/loot
Fix solar panel power production on vehicles.
Cleanup tire changing activity.
Fix stunlock caused by counterattacks.
Keep Jabberwocks from spawning in classic mode.
Fix turret drops.
Extensive text handling fixes.
Menu beautification.
Allow saving while in a vehicle.
Fix div0 on bad option setting.
======
0.6
Highlights:
---
* Some work to make vehicle collisions sane.
* Zombies will revive after a time, if not butchered (or otherwise dealt with).
* The Android trait now behaves the way that the description indicates.
* Gasoline can be siphoned from vehicles. Requires a rubber hose for now - these are easier to acquire.
* Sewing requires materials other than thread - rags for cloth, leather patches for leather.
* Leather repair/reinforcement actually possible!
* Sewing requires materials other than thread - rags for cloth, leather patches for leather, kevlar bricks, plastic chunks.
* Leather/Kevlar/plastic/fur repair/reinforcement actually possible!
* Inventory management UI improvements, and a new screen to organize worn items.
* NPCs continue to be less buggy, but are still prone to crashes.
* Weapon firing code reworked a bit. UI improvements, and you should now be able to fire at anything within range.
* Reworked the armor/protection code.
* Reworked the learning system: replaced XP with Focus. See the relevant help text.
* Added a bunch of new missions, for those who play with the shelter NPC turned on.
* Added a *bunch* of new multi-stage missions, for those who play with the shelter NPC turned on.
* Many new buildings (See full changelong list)
* Vehicle collision physics are now based on *actual* physics! Reduces collision insanity.
* Option to use triginometric distance instead of roguelike distance. In other words light, line of sight are circular instead of square.
* Zombie density in towns is based on nearby buildings instead of distance from town center.
* Higher-performance (on windows) SDL-based rendering as an optional build type.
* Movement on and around vehicles greatly streamlined.
* Sound indicator lets you know how much noise you're making.
* Turn cost indicator lets you know how long actions take.
* Overkilled monsters now spray gibs around instead of disapearing.
* Mostly remove limits on how many items fit in a tile of ground.
* As usual, many bugfixes.
Full list:
@@ -45,7 +232,7 @@ Optimized scentmap updates, hopefully this speeds up certain activities.
Pit-requiring constructions have pit digging as their first two stages, to make it more obvious what the prereqs are.
Some menus (notably, inventory) can be navigated with arrow keys and enter.
Allowing sewing of leather items, make sewing require rags/patches.
Cooking rotten food does not make it magically fresh any more (but it does make it slightly less rotten).
Cooking rotten food does not make it magically fresh any more.
Resolves an issue where destroying an item while tailoring would crash the game.
New UI to sort clothing and automatically assign special characters to clothing (accessed via +)
Footwear warmth values tweaked to be more flexible.
@@ -112,6 +299,59 @@ Fixed some lab mapgen bugs.
Mansions got a little love.
Having too little intelligence for a book is more of a penalty.
Vehicle headlight state is persistent after save-load.
Being hot no longer increases thirst by an unreasonable amount
Minor : temp_conv and dis.intensity are saved, fixing strange on-load inconsistencies
Minor : Diseases that affect speed no longer overwrite eachother in the @ menu
Clothing with pockets provides a bonus to hand warmth when not wielding a weapon.
New large building with basement: Prison
Basement level for hazardous waste sarcophagus.
New building with basement: musterious cabin.
Display recent log messages on player death.
Radiation exposure is now more dangerous
Mutations from radiation can be disabled.
Mutation categories now more dominant.
Added themed mutagens with recipes.
New medical items.
Bundle of plastic bags item for stowing bags.
Rebalance chance of cutting weapons getting stuck, much less likely now.
Smashing corpses prevents them from reviving.
Burning corpses prevents them from reviving.
Stopped players from leaving slime trails or webs while in a vehicle.
Made vitamins have an effect again.
Made multiple gasoline tanks drain properly.
Added tiny pain effect to Acid Drizzle, raincoats now offer a bit of protection to acid rain/drizzle.
Advanced inv: "e" pulls up inventory item menu. Help window displays feedback messages for actions taken. "?" toggles between help and msg viewer.
Eliminate radiation dosage saturation, halving dosage rate to compensate. (radiation is slower, but more implacable)
Fitting screen now shows storage and encumbrance in item columns.
Added leather vest item and crafting recipe.
avoid use of pow() in distance calculation, speeding them up an order of magnitude.
Make blood filter remove all other drug based diseases.
Make blood analysis detect all drugs.
Behold, sharpie markers.
Display actual keymapping instead of default one in most help text.
Stopped bleeding, bites, and poison from applying when stopped by armor.
Safely hop from slow-moving vehicles, get hurt from quick ones.
Multidrop screen now shows a summary of what is about to be dropped.
Sort inventory by item charges, use low-charge items first.
Option to auto-save before sleep.
Lava burns things and can be used for crafting.
Multiple fixes to burst-fire targeting.
Prevent turrets from shooting themselves.
Prevent friendly turrets from trying to shoot through the player.
Brasas catcher item to catch your brass for recrafting.
More power armor variants.
Make movement take half the cost of both the beginning and end tiles, instead of just taking the cost of the end tile.
Made shooting interactions more realistic.
Add radiation badge item and associated infrastructure.
Automagically add new keybindings, so long as they don't conflict.
Significantly reduces the number of giant worms.
Adds strawberry bushes.
Advanced inventory: Add [c]ategory sort.
Large number of added archery items: Wide range of bows crossbows, and arrows, and a multitude of crafting recipes.
Stop unnecessaraly saving adjacent overmaps every time they are potentially dirtied. (prevents periodic pauses!)
Hard Leg Guards and Metal Leg guards.
Picking berry bushes trains survival (at low levels).
Added skill support into professions.
======
+9 -9
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/Gihub Managers:
Kevingranade, Ozone, TheDarklingWolf, zpmorgan
Current Main Developers/Github Managers:
Kevingranade, GalenEvil, i2amroy, AtomicDryad, Ozone
Active Contributors:
BurnZeZ, Oddzball, Shades, Shoes01, Tase, GalenEvil
Special thanks to:
TheDarklingWolf - For creating Cataclysm:DDA as we know it
Narc - For setting up the automatic Jenkins build-bot
yobbobanana - For working as liason between translators and github
Contributors:
AkrionXxarr, Benjamg, Creidieki, Daftfad, Elricsfate, Gim,
GlyphGryph, Gremour, HerbertJones, hovatterz, Origamiwolf,
Soron, Uzername, Voker57, Wito, i2amroy
For a full list of contributors please see:
https://github.com/CleverRaven/Cataclysm-DDA/contributors
Binary file not shown.
+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
+10 -9
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.5:
* Todo
* Fixes, fixes and more fixes.
Major features v0.8 Romero:
* Tiles!
* Optional huge cities packed with zombies!
* Player memorial file.
* Save compatability moving forward.
* Russian and Chinese translations.
* Farming.
* Shopping carts.
For latest discussions and news on Cataclysm DDA, please visit:
Homepage: http://www.cataclysmdda.com/
Forum: http://www.cataclysmdda.com/smf/
Forum: http://smf.cataclysmdda.com/
Wiki: http://wiki.cataclysmdda.com/
The game now has new configurable options:
Customizeable Viewport, Spawntype: Classic/Static, Starting time
Static NPCs, Randomly spawning NPCs, Seasons
Source: https://github.com/CleverRaven/Cataclysm-DDA
Ingame you can access the options via the help menu (?2).
+588
View File
@@ -0,0 +1,588 @@
[
{
"id" : "bio_null",
"name" : "NULL bionics",
"cost" : 0,
"time" : 0,
"description": "If you're seeing this, it's a bug. (game::init_bionics)"
},
{
"id" : "bio_power_storage",
"name" : "Power Storage",
"cost" : 0,
"time" : 0,
"description": "Compact Bionics Module that upgrades your power capacity by 4 units. Having at least one of these is a prerequisite to using powered bionics. You will also need a power supply, found in another CBM."
},
{
"id" : "bio_power_storage_mkII",
"name" : "Power Storage Mk. II",
"cost" : 0,
"time" : 0,
"description": "Compact Bionics Module developed at DoubleTech Industries as a replacement for the highly successful CBM: Power Storage. Increases you power capacity by 10 units."
},
{
"id" : "bio_batteries",
"name" : "Battery System",
"cost" : 0,
"time" : 0,
"flags" : ["POWER"],
"description": "You have a battery draining attachment, and thus can make use of the energy contained in normal, everyday batteries. Use 'E' to consume batteries."
},
{
"id" : "bio_metabolics",
"name" : "Metabolic Interchange",
"cost" : 0,
"time" : 100,
"flags" : ["POWER", "ACTIVE"],
"description": "Your digestive system and power supply are interconnected. Any drain on energy instead increases your hunger."
},
{
"id" : "bio_solar",
"name" : "Solar Panels",
"cost" : 0,
"time" : 0,
"flags" : ["POWER"],
"description": "You have a few solar panels installed. While in direct sunlight, your power level will slowly recharge."
},
{
"id" : "bio_torsionratchet",
"name" : "Joint Torsion Ratchet",
"cost" : 0,
"time" : 0,
"flags" : ["POWER"],
"description": "Your joints have been equipped with torsion ratchets that generate power slowly when you move."
},
{
"id" : "bio_furnace",
"name" : "Internal Furnace",
"cost" : 0,
"time" : 0,
"flags" : ["POWER"],
"description": "You can burn nearly any organic material as fuel (use 'E'), recharging your power level. Some materials will burn better than others."
},
{
"id" : "bio_ethanol",
"name" : "Ethanol Burner",
"cost" : 0,
"time" : 0,
"flags" : ["POWER"],
"description": "You burn alcohol as fuel in an extremely efficient reaction. However, you will still suffer the inebriating effects of the substance."
},
{
"id" : "bio_memory",
"name" : "Enhanced Memory Banks",
"cost" : 1,
"time" : 0,
"description": "Your memory has been enhanced with small quantum storage drives. Any time you start to forget a skill, you have a chance at retaining all knowledge, at the cost of a small amount of poweron."
},
{
"id" : "bio_ears",
"name" : "Enhanced Hearing",
"cost" : 0,
"time" : 0,
"description": "Your hearing has been drastically improved, allowing you to hear ten times better than the average person. Additionally, high-intensity sounds will be automatically dampened before they can damage your hearing."
},
{
"id" : "bio_eye_enhancer",
"name" : "Diamond Cornea",
"cost" : 0,
"time" : 0,
"description": "Your vision is greatly enhanced, giving you a +2 bonus to perception."
},
{
"id" : "bio_dex_enhancer",
"name" : "Wired Reflexes",
"cost" : 0,
"time" : 0,
"description": "Your reaction time has been greatly enhanced with bionic nerve stimulators, giving you a +2 bonus to dexterity."
},
{
"id" : "bio_str_enhancer",
"name" : "Muscle Augmentation",
"cost" : 0,
"time" : 0,
"description": "Your muscular system has been enhanced with myomer fibers, giving you a +2 bonus to strength."
},
{
"id" : "bio_int_enhancer",
"name" : "Cerebral Booster",
"cost" : 0,
"time" : 0,
"description": "Your brain has been enhanced with bionic coprocessors, giving you a +2 bonus to intelligence."
},
{
"id" : "bio_membrane",
"name" : "Nictating Membrane",
"cost" : 0,
"time" : 0,
"description": "Your eyes have a thin membrane that closes over your eyes while underwater, negating any vision penalties."
},
{
"id" : "bio_targeting",
"name" : "Targeting System",
"cost" : 0,
"time" : 0,
"description": "Your eyes are equipped with range finders, and their movement is synced with that of your arms, to a degree. Shots you fire will be much more accurate, particularly at long range."
},
{
"id" : "bio_gills",
"name" : "Membrane Oxygenator",
"cost" : 1,
"time" : 0,
"description": "An oxygen interchange system automatically switches on while underwater, slowly draining your energy reserves but providing oxygen."
},
{
"id" : "bio_purifier",
"name" : "Air Filtration System",
"cost" : 1,
"time" : 0,
"description": "Implanted in your trachea is an advanced filtration system. If toxins find their way into your windpipe, the filter will attempt to remove them."
},
{
"id" : "bio_climate",
"name" : "Internal Climate Control",
"cost" : 1,
"time" : 30,
"flags" : ["ACTIVE"],
"description": "Throughout your body lies a network of thermal piping which eases the effects of high and low ambient temperatures."
},
{
"id" : "bio_storage",
"name" : "Internal Storage",
"cost" : 0,
"time" : 0,
"description": "Space inside your chest cavity has been converted into a storage area. You may carry an extra 8 units of volume."
},
{
"id" : "bio_recycler",
"name" : "Recycler Unit",
"cost" : 0,
"time" : 0,
"description": "Your digestive system has been outfitted with a series of filters and processors, allowing you to reclaim waste liquid and, to a lesser degree, nutrients. The net effect is a greatly reduced need to eat and drink."
},
{
"id" : "bio_digestion",
"name" : "Expanded Digestive System",
"cost" : 0,
"time" : 0,
"description": "You have been outfitted with three synthetic stomachs and industrial-grade intestines. Not only can you extract much more nutrition from food, but you are highly resistant to foodborne illness, and can sometimes eat rotten food."
},
{
"id" : "bio_tools",
"name" : "Integrated Toolset",
"cost" : 0,
"time" : 0,
"description": "Implanted in your hands and fingers is a complete tool set - screwdriver, hammer, wrench, and heating elements. You can use this in place of many tools when crafting."
},
{
"id" : "bio_shock",
"name" : "Electroshock Unit",
"cost" : 0,
"time" : 1,
"flags" : ["ACTIVE"],
"description": "While fighting unarmed, or with a weapon that conducts electricity, there is a chance that a successful hit will shock your opponent, inflicting extra damage and disabling them temporarily at the cost of some energy."
},
{
"id" : "bio_heat_absorb",
"name" : "Heat Drain",
"cost" : 0,
"time" : 1,
"flags" : ["ACTIVE"],
"description": "While fighting unarmed against a warm-blooded opponent, there is a chance that a successful hit will drain body heat, inflicting a small amount of extra damage, and increasing your power reserves slightly."
},
{
"id" : "bio_carbon",
"name" : "Subdermal Carbon Filament",
"cost" : 0,
"time" : 0,
"description": "Lying just beneath your skin is a thin armor made of carbon nanotubes. This reduces bashing damage by 2 and cutting damage by 4."
},
{
"id" : "bio_armor_head",
"name" : "Alloy Plating - Head",
"cost" : 0,
"time" : 0,
"description": "The flesh on your head has been replaced by a strong armor, protecting both your head and jaw regions."
},
{
"id" : "bio_armor_torso",
"name" : "Alloy Plating - Torso",
"cost" : 0,
"time" : 0,
"description": "The flesh on your torso has been replaced by a strong armor, protecting you greatly."
},
{
"id" : "bio_armor_arms",
"name" : "Alloy Plating - Arms",
"cost" : 0,
"time" : 0,
"description": "The flesh on your arms has been replaced by a strong armor, protecting you greatly."
},
{
"id" : "bio_armor_legs",
"name" : "Alloy Plating - Legs",
"cost" : 0,
"time" : 0,
"description": "The flesh on your legs has been replaced by a strong armor, protecting you greatly."
},
{
"id" : "bio_flashlight",
"name" : "Cranial Flashlight",
"cost" : 1,
"time" : 30,
"flags" : ["ACTIVE"],
"description": "Mounted between your eyes is a small but powerful LED flashlight."
},
{
"id" : "bio_night_vision",
"name" : "Implanted Night Vision",
"cost" : 1,
"time" : 20,
"flags" : ["ACTIVE"],
"description": "Your eyes have been modified to amplify existing light, allowing you to see in the dark."
},
{
"id" : "bio_infrared",
"name" : "Infrared Vision",
"cost" : 1,
"time" : 4,
"flags" : ["ACTIVE"],
"description": "Your range of vision extends into the infrared, allowing you to see warm-blooded creatures in the dark, and even through walls."
},
{
"id" : "bio_face_mask",
"name" : "Facial Distortion",
"cost" : 1,
"time" : 10,
"flags" : ["ACTIVE"],
"description": "Your face is actually made of a compound which may be molded by electrical impulses, making you impossible to recognize. While not powered, however, the compound reverts to its default shape."
},
{
"id" : "bio_ads",
"name" : "Active Defense System",
"cost" : 1,
"time" : 7,
"flags" : ["ACTIVE"],
"description": "A thin forcefield surrounds your body, continually draining power. Anything attempting to penetrate this field has a chance of being deflected at the cost of more energy. Melee attacks will be stopped more often than bullets."
},
{
"id" : "bio_ods",
"name" : "Offensive Defense System",
"cost" : 1,
"time" : 6,
"flags" : ["ACTIVE"],
"description": "A thin forcefield surrounds your body, continually draining power. This field does not deflect penetration, but rather delivers a very strong shock, damaging unarmed attackers and those with a conductive weapon."
},
{
"id" : "bio_scent_mask",
"name" : "Olfactory Mask",
"cost" : 1,
"time" : 8,
"flags" : ["ACTIVE"],
"description": "While this system is powered, your body will produce very little odor, making it nearly impossible for creatures to track you by scent."
},
{
"id" : "bio_scent_vision",
"name" : "Scent Vision",
"cost" : 1,
"time" : 30,
"flags" : ["ACTIVE"],
"description": "While this system is powered, you're able to visually sense your own scent, making it possible for you to recognize your surroundings even if you can't see it."
},
{
"id" : "bio_cloak",
"name" : "Cloaking System",
"cost" : 2,
"time" : 1,
"flags" : ["ACTIVE"],
"description": "This high-power system uses a set of cameras and LEDs to make you blend into your background, rendering you fully invisible to normal vision. However, you may be detected by infrared, sonar, etc."
},
{
"id" : "bio_painkiller",
"name" : "Sensory Dulling",
"cost" : 2,
"time" : 0,
"flags" : ["ACTIVE"],
"description": "Your nervous system is wired to allow you to inhibit the signals of pain, allowing you to dull your senses at will. However, the use of this system may cause delayed reaction time and drowsiness."
},
{
"id" : "bio_nanobots",
"name" : "Repair Nanobots",
"cost" : 5,
"time" : 0,
"flags" : ["ACTIVE"],
"description": "Inside your body is a fleet of tiny dormant robots. Once charged from your energy banks, they will flit about your body, repairing any damage."
},
{
"id" : "bio_heatsink",
"name" : "Thermal Dissipation",
"cost" : 1,
"time" : 6,
"flags" : ["ACTIVE"],
"description": "Powerful heatsinks supermaterials are woven into your flesh. While powered, this system will prevent heat damage up to 2000 degrees fahrenheit. Note that this does not affect your internal temperature."
},
{
"id" : "bio_resonator",
"name" : "Sonic Resonator",
"cost" : 4,
"time" : 0,
"flags" : ["ACTIVE"],
"description": "Your entire body may resonate at very high power, creating a short-range shockwave. While it will not too much damage to flexible creatures, stiff items such as walls, doors, and even robots will be severely damaged."
},
{
"id" : "bio_time_freeze",
"name" : "Time Dilation",
"cost" : 3,
"time" : 0,
"flags" : ["ACTIVE"],
"description": "At an immense cost of power, you may increase your body speed and reactions dramatically, essentially freezing time. You are still delicate, however, and violent or rapid movements may damage you due to friction."
},
{
"id" : "bio_teleport",
"name" : "Teleportation Unit",
"cost" : 10,
"time" : 0,
"flags" : ["ACTIVE"],
"description": "This highly experimental unit folds space over short distances, instantly transporting your body up to 25 feet at the cost of much power. Note that prolonged or frequent use may have dangerous side effects."
},
{
"id" : "bio_blood_anal",
"name" : "Blood Analysis",
"cost" : 1,
"time" : 0,
"flags" : ["ACTIVE"],
"description": "Small sensors have been implanted in your heart, allowing you to analyse your blood. This will detect many illnesses, drugs, and other conditions."
},
{
"id" : "bio_blood_filter",
"name" : "Blood Filter",
"cost" : 3,
"time" : 0,
"flags" : ["ACTIVE"],
"description": "A filtration system in your heart allows you to actively filter out chemical impurities, primarily drugs. It will have limited impact on viruses. Note that it is not a targeted filter; ALL drugs in your system will be affected."
},
{
"id" : "bio_alarm",
"name" : "Alarm System",
"cost" : 1,
"time" : 400,
"flags" : ["ACTIVE"],
"description": "A motion-detecting alarm system will notice almost all movement within a fifteen-foot radius, and will silently alert you. This is very useful during sleep, or if you suspect a cloaked pursuer."
},
{
"id" : "bio_evap",
"name" : "Aero-Evaporator",
"cost" : 8,
"time" : 0,
"flags" : ["ACTIVE"],
"description": "This unit draws moisture from the surrounding air, which then is poured from a fingertip in the form of water. It may fail in very dry environments."
},
{
"id" : "bio_lighter",
"name" : "Mini-Flamethrower",
"cost" : 3,
"time" : 0,
"flags" : ["ACTIVE"],
"description": "The index fingers of both hands have powerful fire starters which extend from the tip."
},
{
"id" : "bio_claws",
"name" : "Adamantium Claws",
"cost" : 3,
"time" : 0,
"flags" : ["ACTIVE"],
"description": "Your fingers can withdraw into your hands, allowing a set of vicious claws to extend. These do considerable cutting damage, but prevent you from holding anything else."
},
{
"id" : "bio_blaster",
"name" : "Fusion Blaster Arm",
"cost" : 2,
"time" : 0,
"flags" : ["ACTIVE"],
"description": "Your left arm has been replaced by a heavy-duty fusion blaster! You may use your energy banks to fire a damaging heat ray; however, you are unable to use or carry two-handed items, and may only fire handguns."
},
{
"id" : "bio_laser",
"name" : "Finger-Mounted Laser",
"cost" : 2,
"time" : 0,
"flags" : ["ACTIVE"],
"description": "One of your fingers has a small high-powered laser embedded in it. This long range weapon is not incredibly damaging, but is very accurate, and has the potential to start fires."
},
{
"id" : "bio_emp",
"name" : "Directional EMP",
"cost" : 4,
"time" : 0,
"flags" : ["ACTIVE"],
"description": "Mounted in the palms of your hand are small parabolic EMP field generators. You may use power to fire a short-ranged blast which will disable electronics and robots."
},
{
"id" : "bio_hydraulics",
"name" : "Hydraulic Muscles",
"cost" : 1,
"time" : 3,
"flags" : ["ACTIVE"],
"description": "While activated, the muscles in your arms will be greatly enhanced, increasing your strength by 20."
},
{
"id" : "bio_water_extractor",
"name" : "Water Extraction Unit",
"cost" : 2,
"time" : 0,
"flags" : ["ACTIVE"],
"description": "Nanotubes embedded in the palm of your hand will pump any available fluid out of a dead body, cleanse it of impurities and convert it into drinkable water. You must, however, have a container to store the water in."
},
{
"id" : "bio_magnet",
"name" : "Electromagnetic Unit",
"cost" : 2,
"time" : 0,
"flags" : ["ACTIVE"],
"description": "Embedded in your hand is a powerful electromagnet, allowing you to pull items made of iron over short distances."
},
{
"id" : "bio_fingerhack",
"name" : "Fingerhack",
"cost" : 1,
"time" : 0,
"flags" : ["ACTIVE"],
"description": "One of your fingers has an electrohack embedded in it; an all-purpose hacking unit used to override control panels and the like (but not computers). Skill in computers is important, and a failed use may damage your circuits."
},
{
"id" : "bio_lockpick",
"name" : "Fingerpick",
"cost" : 1,
"time" : 0,
"flags" : ["ACTIVE"],
"description": "One of your fingers has an electronic lockpick embedded in it. This automatic system will quickly unlock all but the most advanced key locks without any skill required on the part of the user."
},
{
"id" : "bio_ground_sonar",
"name" : "Terranian Sonar",
"cost" : 1,
"time" : 5,
"flags" : ["ACTIVE"],
"description": "Your feet are equipped with precision sonar equipment, allowing you to detect the movements of creatures below the ground."
},
{
"id" : "bio_power_armor_interface",
"name" : "Power Armor Interface",
"cost" : 1,
"time" : 10,
"flags" : ["ACTIVE"],
"description": "Interfaces your power system with the internal charging port on suits of power armor."
},
{
"id" : "bio_power_armor_interface_mkII",
"name" : "Power Armor Interface Mk. II",
"cost" : 1,
"time" : 50,
"flags" : ["ACTIVE"],
"description": "Interfaces your power system with the internal charging port on suits of power armor. The Mk. II was designed by DoubleTech Inc., to meet the popularity of the Mk. II power armor series."
},
{
"id" : "bio_flashbang",
"name" : "Flashbang Generator",
"cost" : 5,
"time" : 0,
"flags" : ["ACTIVE"],
"description": "Light emitting diodes integrated into your skin can release a flash comparable to a flashbang grenade, blinding nearby enemies. Speakers integrated into your body mimic the loud sound, deafening those nearby."
},
{
"id" : "bio_railgun",
"name" : "Railgun",
"cost" : 1,
"time" : 100,
"flags" : ["ACTIVE"],
"description": "EM field generators in your arms double the range and damage of thrown iron and steel objects at a cost of 1 power per throw, causing them to leave a trail of electricity that can cause additional damage."
},
{
"id" : "bio_probability_travel",
"name" : "Probability Travel",
"cost" : 1,
"time" : 100,
"flags" : ["ACTIVE"],
"description": "Increases your body's wavelength, allowing you to quantum tunnel through walls, reappearing on the other side. Power drain in standby is minimal, but each tile tunneled through costs 10 bionic power."
},
{
"id" : "bio_shockwave",
"name" : "Shockwave Generator",
"cost" : 10,
"time" : 0,
"flags" : ["ACTIVE"],
"description": "You generate a powerful shockwave, knocking back all nearby creatures. Targets are stunned briefly, take damage and additional stun upon impact with impassable terrain, and knockback any creatures they collide with."
},
{
"id" : "bio_chain_lightning",
"name" : "Chain Lightning",
"cost" : 5,
"time" : 0,
"flags" : ["ACTIVE"],
"description": "Your body is equipped with a chain lightning generator, allowing you to emit a blast of lightning at a target, leaving a trail of lightning in its wake, jumping to additional targets within 4 tiles of the previous target."
},
{
"id" : "bio_night",
"name" : "Artificial Night Generator",
"cost" : 1,
"time" : 2,
"flags" : ["ACTIVE"],
"description": "Destructive interference eliminates all light within a 15 tile radius."
},
{
"id" : "bio_uncanny_dodge",
"name" : "Uncanny Dodge",
"cost" : 1,
"time" : 10,
"flags" : ["ACTIVE"],
"description": "Your nervous system has been augmented with bionic processors, allowing you to dodge attacks beyond normal human capability, including bullets."
},
{
"id" : "bio_dis_shock",
"name" : "Electrical Discharge",
"cost" : 0,
"time" : 0,
"flags" : ["FAULTY"],
"description": "A malfunctioning bionic which occasionally discharges electricity through your body, causing pain and brief paralysis but no damage."
},
{
"id" : "bio_dis_acid",
"name" : "Acidic Discharge",
"cost" : 0,
"time" : 0,
"flags" : ["FAULTY"],
"description": "A malfunctioning bionic which occasionally discharges acid into your muscles, causing sharp pain and minor damage."
},
{
"id" : "bio_drain",
"name" : "Electrical Drain",
"cost" : 0,
"time" : 0,
"flags" : ["FAULTY"],
"description": "A malfunctioning bionic. It doesn't perform any useful function, but will occasionally draw power from your batteries."
},
{
"id" : "bio_noise",
"name" : "Noisemaker",
"cost" : 0,
"time" : 0,
"flags" : ["FAULTY"],
"description": "A malfunctioning bionic. It will occasionally emit a loud burst of noise."
},
{
"id" : "bio_power_weakness",
"name" : "Power Overload",
"cost" : 0,
"time" : 0,
"flags" : ["FAULTY"],
"description": "Damaged power circuits cause short-circuiting inside your muscles when your batteries are above 75%%%% capacity, causing greatly reduced strength. This has no effect if you have no internal batteries."
},
{
"id" : "bio_stiff",
"name" : "Wire-induced Stiffness",
"cost" : 0,
"time" : 0,
"flags" : ["FAULTY"],
"description": "Improperly installed wires cause a physical stiffness in most of your body, causing increased encumbrance."
}
]
+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
}
]
+3669 -10
View File
File diff suppressed because it is too large Load Diff
+949 -477
View File
File diff suppressed because it is too large Load Diff
+861
View File
@@ -0,0 +1,861 @@
[
{
"type" : "AMMO",
"id" : "arrowhead",
"price" : 30,
"name" : "arrowhead",
"symbol" : "=",
"color" : "light_gray",
"description" : "Heads for an arrow. Placing these on an arrow will make the arrow more damaging and piercing.",
"material" : "steel",
"volume" : 1,
"weight" : 8,
"bashing" : 1,
"cutting" : 0,
"to_hit" : 0,
"ammo_type" : "components",
"damage" : 0,
"pierce" : 0,
"range" : 0,
"dispersion" : 0,
"recoil" : 0,
"count" : 10
},
{
"type" : "AMMO",
"id" : "fletching",
"price" : 30,
"name" : "fletching",
"symbol" : "=",
"color" : "white",
"description" : "Also known as a flight, this item provides aerodynamic stabilization of arrows.",
"material" : "leather",
"volume" : 1,
"weight" : 1,
"bashing" : 1,
"cutting" : 0,
"to_hit" : 0,
"ammo_type" : "components",
"damage" : 0,
"pierce" : 0,
"range" : 0,
"dispersion" : 0,
"recoil" : 0,
"count" : 10
},
{
"type" : "AMMO",
"id" : "shaft_wood",
"price" : 20,
"name" : "wood arrow shaft",
"symbol" : "=",
"color" : "green",
"description" : "A crude shaft made from wood. It needs arrowheads and fletching to become a functional arrow. You can, however, fire it from a bow.",
"material" : "wood",
"volume" : 1,
"weight" : 42,
"bashing" : 1,
"cutting" : 0,
"to_hit" : 0,
"ammo_type" : "arrow",
"damage" : 0,
"pierce" : 0,
"range" : 0,
"dispersion" : 34,
"recoil" : 0,
"count" : 10
},
{
"type" : "AMMO",
"id" : "shaft_wood_heavy",
"price" : 20,
"name" : "heavy wood arrow shaft",
"symbol" : "=",
"color" : "green",
"description" : "A heavy shaft made from wood. It needs arrowheads and fletching to become a functional arrow. You can, however, fire it from a bow.",
"material" : "wood",
"volume" : 1,
"weight" : 63,
"bashing" : 2,
"cutting" : 0,
"to_hit" : 0,
"ammo_type" : "arrow",
"damage" : 2,
"pierce" : 0,
"range" : 1,
"dispersion" : 29,
"recoil" : 0,
"count" : 10
},
{
"type" : "AMMO",
"id" : "shaft_metal",
"price" : 20,
"name" : "metal arrow shaft",
"symbol" : "=",
"color" : "green",
"description" : "A heavy shaft made from scrap metal. It needs arrowheads and fletching to become a functional arrow. You can, however, fire it from a bow.",
"material" : "steel",
"volume" : 1,
"weight" : 441,
"bashing" : 3,
"cutting" : 0,
"to_hit" : 0,
"ammo_type" : "arrow",
"damage" : 3,
"pierce" : 0,
"range" : 3,
"dispersion" : 24,
"recoil" : 0,
"count" : 10
},
{
"type" : "AMMO",
"id" : "arrow_fire_hardened",
"price" : 25,
"name" : "fire hardened wood arrow",
"symbol" : "=",
"color" : "green",
"description" : "A simple arrow shaft that has had a point carved into it and then fire hardened.",
"material" : "wood",
"volume" : 1,
"weight" : 42,
"bashing" : 2,
"cutting" : 0,
"to_hit" : 0,
"ammo_type" : "arrow",
"damage" : 3,
"pierce" : 0,
"range" : 2,
"dispersion" : 29,
"recoil" : 0,
"count" : 10
},
{
"type" : "AMMO",
"id" : "arrow_field_point",
"price" : 30,
"name" : "field point wood arrow",
"symbol" : "=",
"color" : "green",
"description" : "A simple arrow shaft that has a crude arrow head. Useful for hunting small woodland creatures.",
"material" : "wood",
"volume" : 1,
"weight" : 48,
"bashing" : 3,
"cutting" : 0,
"to_hit" : 0,
"ammo_type" : "arrow",
"damage" : 6,
"pierce" : 1,
"range" : 2,
"dispersion" : 29,
"recoil" : 0,
"count" : 10
},
{
"type" : "AMMO",
"id" : "arrow_small_game",
"price" : 30,
"name" : "small game arrow",
"symbol" : "=",
"color" : "green",
"description" : "A simple arrow shaft that has a wide blunt head. Useful for hunting small woodland creatures without splattering them all over the ground.",
"material" : "wood",
"volume" : 1,
"weight" : 50,
"bashing" : 4,
"cutting" : 0,
"to_hit" : 0,
"ammo_type" : "arrow",
"damage" : 2,
"pierce" : 0,
"range" : 2,
"dispersion" : 29,
"recoil" : 0,
"count" : 10,
"flags" : ["NOGIB"]
},
{
"type" : "AMMO",
"id" : "arrow_fire_hardened_fletched",
"price" : 35,
"name" : "fletched fire hardened wood arrow",
"symbol" : "=",
"color" : "green",
"description" : "This simple arrow has a fire hardened point and some fletchings.",
"material" : "wood",
"volume" : 1,
"weight" : 43,
"bashing" : 3,
"cutting" : 0,
"to_hit" : 0,
"ammo_type" : "arrow",
"damage" : 4,
"pierce" : 0,
"range" : 6,
"dispersion" : 14,
"recoil" : 0,
"count" : 10
},
{
"type" : "AMMO",
"id" : "arrow_field_point_fletched",
"price" : 40,
"name" : "fletched field point wood arrow",
"symbol" : "=",
"color" : "green",
"description" : "A simple arrow shaft that has a crude arrow head and some fletchings. Useful for hunting small woodland creatures or as a last ditch defense against zombies.",
"material" : "wood",
"volume" : 1,
"weight" : 49,
"bashing" : 3,
"cutting" : 0,
"to_hit" : 0,
"ammo_type" : "arrow",
"damage" : 7,
"pierce" : 2,
"range" : 6,
"dispersion" : 14,
"recoil" : 0,
"count" : 10
},
{
"type" : "AMMO",
"id" : "arrow_wood",
"price" : 75,
"name" : "wood arrow",
"symbol" : "=",
"color" : "green",
"description" : "A basic wooden arrow, it has a metal arrow head and some fletchings. It's light-weight, does some damage, and is so-so on accuracy. Stands a good chance of remaining intact once fired.",
"material" : "wood",
"volume" : 1,
"weight" : 51,
"bashing" : 2,
"cutting" : 1,
"to_hit" : 0,
"ammo_type" : "arrow",
"damage" : 10,
"pierce" : 3,
"range" : 7,
"dispersion" : 9,
"recoil" : 0,
"count" : 10
},
{
"type" : "AMMO",
"id" : "arrow_heavy_fire_hardened_fletched",
"price" : 75,
"name" : "heavy fletched fire hardened arrow",
"symbol" : "=",
"color" : "green",
"description" : "This arrow is significantly sturdier than other wooden arrows. It has a firehardened point and some fletchings.",
"material" : "plastic",
"volume" : 1,
"weight" : 64,
"bashing" : 4,
"cutting" : 0,
"to_hit" : 0,
"ammo_type" : "arrow",
"damage" : 5,
"pierce" : 2,
"range" : 7,
"dispersion" : 9,
"recoil" : 0,
"count" : 10
},
{
"type" : "AMMO",
"id" : "arrow_heavy_field_point_fletched",
"price" : 70,
"name" : "heavy fletched field point arrow",
"symbol" : "=",
"color" : "green",
"description" : "This arrow is significantly sturdier than other wooden arrows. It has a crude field point head and some fletchings.",
"material" : "plastic",
"volume" : 1,
"weight" : 67,
"bashing" : 4,
"cutting" : 0,
"to_hit" : 0,
"ammo_type" : "arrow",
"damage" : 6,
"pierce" : 3,
"range" : 7,
"dispersion" : 9,
"recoil" : 0,
"count" : 10
},
{
"type" : "AMMO",
"id" : "arrow_wood_heavy",
"price" : 75,
"name" : "heavy wood arrow",
"symbol" : "=",
"color" : "green",
"description" : "A heavy wooden arrow, it has a metal arrow head and some fletchings. It's much heavier than other wooden arrows, as a result it does more damage and is more stable in flight, resulting in better accuracy over a longer range. Stands a very good chance of remaining intact once fired.",
"material" : "plastic",
"volume" : 1,
"weight" : 71,
"bashing" : 6,
"cutting" : 2,
"to_hit" : 0,
"ammo_type" : "arrow",
"damage" : 12,
"pierce" : 5,
"range" : 8,
"dispersion" : 4,
"recoil" : 0,
"count" : 10
},
{
"type" : "AMMO",
"id" : "arrow_metal_sharpened",
"price" : 50,
"name" : "sharpened metal arrow",
"symbol" : "=",
"color" : "green",
"description" : "This metal shaft has been carefully sharpened so that it has a crude point at the end.",
"material" : "steel",
"volume" : 1,
"weight" : 441,
"bashing" : 2,
"cutting" : 0,
"to_hit" : 0,
"ammo_type" : "arrow",
"damage" : 5,
"pierce" : 3,
"range" : 5,
"dispersion" : 19,
"recoil" : 0,
"count" : 10
},
{
"type" : "AMMO",
"id" : "arrow_metal",
"price" : 100,
"name" : "metal arrow",
"symbol" : "=",
"color" : "green",
"description" : "This metal arrow has a steel arrow head and some fletchings.",
"material" : "steel",
"volume" : 1,
"weight" : 442,
"bashing" : 3,
"cutting" : 2,
"to_hit" : 0,
"ammo_type" : "arrow",
"damage" : 14,
"pierce" : 7,
"range" : 10,
"dispersion" : 4,
"recoil" : 0,
"count" : 10
},
{
"type" : "AMMO",
"id" : "arrow_cf",
"price" : 150,
"name" : "carbon fiber arrow",
"symbol" : "=",
"color" : "green",
"description" : "High-tech carbon fiber shafts and 100 grain broadheads. Very light weight, fast, and notoriously fragile.",
"material" : "plastic",
"volume" : 2,
"weight" : 8,
"bashing" : 1,
"cutting" : 0,
"to_hit" : 0,
"ammo_type" : "arrow",
"damage" : 10,
"pierce" : 5,
"range" : 8,
"dispersion" : 9,
"recoil" : 0,
"count" : 8
},
{
"type" : "AMMO",
"id" : "arrow_exploding",
"price" : 350,
"name" : "exploding arrow",
"symbol" : "=",
"color" : "green",
"description" : "This arrow has a small IED strapped to its tip. Horribly inaccurate, heavy, and bulky, not only does this contraption require expert hands to pull off a shot, it requires one to loose this with a small measure of confidence the shooter won't be caught in the blast radius.",
"material" : "steel",
"volume" : 2,
"weight" : 833,
"bashing" : 2,
"cutting" : 0,
"to_hit" : 0,
"ammo_type" : "arrow",
"damage" : 15,
"pierce" : 9,
"range" : 5,
"dispersion" : 19,
"recoil" : 0,
"count" : 5,
"effects" : ["EXPLOSIVE"]
},
{
"id" : "exploding_arrow_warhead",
"symbol" : "=",
"color" : "green",
"name" : "exploding arrowhead",
"description" : "This simple IED is designed to be attached to an arrow and detonate on impact. Theoretically you could throw it but who would want to do that?",
"price" : 400,
"material" : "iron",
"weight" : 762,
"volume" : 1,
"bashing" : 10,
"cutting" : 0,
"to_hit" : -1,
"count" : 5,
"effects" : ["EXPLOSIVE"]
},
{
"type" : "AMMO",
"id" : "arrow_flamming",
"price" : 350,
"name" : "flaming arrow",
"symbol" : "=",
"color" : "green",
"description" : "This arrow has a flaming rag wrapped around the shaft near the head. You should shoot it soon before it burns your bow.",
"material" : "steel",
"volume" : 2,
"weight" : 150,
"bashing" : 2,
"cutting" : 0,
"to_hit" : 0,
"ammo_type" : "arrow",
"damage" : 15,
"pierce" : 9,
"range" : 5,
"dispersion" : 19,
"recoil" : 0,
"count" : 5,
"effects" : ["IGNITE"]
},
{
"type" : "AMMO",
"id" : "bolt_wood",
"price" : 100,
"name" : "wood crossbow bolt",
"symbol" : "=",
"color" : "green",
"description" : "A sharpened bolt carved from wood. It's lighter than a steel bolt, but does less damage and is less accurate. Stands a good chance of remaining intact once fired.",
"material" : "wood",
"volume" : 1,
"weight" : 31,
"bashing" : 1,
"cutting" : 0,
"to_hit" : 0,
"ammo_type" : "bolt",
"damage" : 10,
"pierce" : 1,
"range" : 0,
"dispersion" : 10,
"recoil" : 0,
"count" : 15
},
{
"type" : "AMMO",
"id" : "bolt_steel",
"price" : 400,
"name" : "steel crossbow bolt",
"symbol" : "=",
"color" : "green",
"description" : "A sharp bolt made from steel. Deadly in skilled hands. Stands an excellent chance of remaining intact once fired.",
"material" : "steel",
"volume" : 1,
"weight" : 217,
"bashing" : 5,
"cutting" : 0,
"to_hit" : 0,
"ammo_type" : "bolt",
"damage" : 20,
"pierce" : 10,
"range" : 6,
"dispersion" : 9,
"recoil" : 0,
"count" : 10
},
{
"id" : "selfbow",
"type" : "GUN",
"symbol" : "(",
"color" : "yellow",
"name" : "self bow",
"description" : "A bow made from a single piece of wood. It is made specifically for the person using it.",
"price" : 400,
"material" : "wood",
"flags" : ["ALWAYS_TWOHAND", "RELOAD_AND_SHOOT"],
"skill" : "archery",
"ammo" : "arrow",
"weight" : 1360,
"volume" : 12,
"bashing" : 6,
"cutting" : 0,
"to_hit" : 0,
"ranged_damage" : 4,
"range" : 5,
"dispersion" : 20,
"recoil" : 0,
"durability" : 6,
"burst" : 0,
"clip_size" : 1,
"reload" : 70
},
{
"id" : "shortbow",
"type" : "GUN",
"symbol" : "(",
"color" : "yellow",
"name" : "short bow",
"description" : "A shorter bow than the longbow, easier to draw than the longbow but sacrifices power. Arrows fired from this weapon have a good chance of remaining intact for re-use. It requires 8 strength to fire",
"price" : 800,
"material" : "wood",
"flags" : ["ALWAYS_TWOHAND", "STR8_DRAW", "RELOAD_AND_SHOOT"],
"skill" : "archery",
"ammo" : "arrow",
"weight" : 340,
"volume" : 6,
"bashing" : 6,
"cutting" : 0,
"to_hit" : 0,
"ranged_damage" : 3,
"range" : 6,
"dispersion" : 14,
"recoil" : 0,
"durability" : 6,
"burst" : 0,
"clip_size" : 1,
"reload" : 60
},
{
"id" : "compbow",
"type" : "GUN",
"symbol" : "(",
"color" : "yellow",
"name" : "compound bow",
"description" : "A bow with cams that fires high velocity arrows. Weaker people can use compound bows more easily. Arrows fired from this weapon have a good chance of remaining intact for re-use. It requires 8 strength to fire",
"price" : 700,
"material" : ["steel", "plastic"],
"flags" : ["ALWAYS_TWOHAND", "STR8_DRAW", "RELOAD_AND_SHOOT"],
"skill" : "archery",
"ammo" : "arrow",
"weight" : 907,
"volume" : 8,
"bashing" : 8,
"cutting" : 0,
"to_hit" : 1,
"ranged_damage" : 5,
"range" : 10,
"dispersion" : 12,
"recoil" : 0,
"durability" : 6,
"burst" : 0,
"clip_size" : 1,
"reload" : 100
},
{
"id" : "compositebow",
"type" : "GUN",
"symbol" : "(",
"color" : "yellow",
"name" : "composite bow",
"description" : "A bow made from more than one material so it is able to store more energy. Arrows fired from this weapon have a good chance of remaining intact for re-use. It requires 10 strength to fire",
"price" : 1200,
"material" : ["wood", "plastic"],
"flags" : ["ALWAYS_TWOHAND", "STR10_DRAW", "RELOAD_AND_SHOOT"],
"skill" : "archery",
"ammo" : "arrow",
"weight" : 540,
"volume" : 10,
"bashing" : 8,
"cutting" : 0,
"to_hit" : 0,
"ranged_damage" : 7,
"range" : 12,
"dispersion" : 10,
"recoil" : 0,
"durability" : 6,
"burst" : 0,
"clip_size" : 1,
"reload" : 110
},
{
"id" : "recurbow",
"type" : "GUN",
"symbol" : "(",
"color" : "yellow",
"name" : "recurve bow",
"description" : "A bow that curves away from the archer at the tips allowing more power to be stored in the bow. Arrows fired from this weapon have a good chance of remaining intact for re-use. It requires 10 strength to fire",
"price" : 1200,
"material" : ["steel", "plastic"],
"flags" : ["ALWAYS_TWOHAND", "STR10_DRAW", "RELOAD_AND_SHOOT"],
"skill" : "archery",
"ammo" : "arrow",
"weight" : 540,
"volume" : 10,
"bashing" : 12,
"cutting" : 0,
"to_hit" : 0,
"ranged_damage" : 9,
"range" : 14,
"dispersion" : 8,
"recoil" : 0,
"durability" : 6,
"burst" : 0,
"clip_size" : 1,
"reload" : 100
},
{
"id" : "reflexbow",
"type" : "GUN",
"symbol" : "(",
"color" : "yellow",
"name" : "reflex bow",
"description" : "A bow that has limbs which curve away from the archer sacrificing accuracy for power. Arrows fired from this weapon have a good chance of remaining intact for re-use. It requires 10 strength to fire",
"price" : 1200,
"material" : ["steel", "plastic"],
"flags" : ["ALWAYS_TWOHAND", "STR10_DRAW", "RELOAD_AND_SHOOT"],
"skill" : "archery",
"ammo" : "arrow",
"weight" : 540,
"volume" : 10,
"bashing" : 12,
"cutting" : 0,
"to_hit" : 0,
"ranged_damage" : 11,
"range" : 16,
"dispersion" : 6,
"recoil" : 0,
"durability" : 6,
"burst" : 0,
"clip_size" : 1,
"reload" : 100
},
{
"id" : "longbow",
"type" : "GUN",
"symbol" : "(",
"color" : "yellow",
"name" : "longbow",
"description" : "A six-foot wooden bow that fires arrows. This takes a fair amount of strength to draw. Arrows fired from this weapon have a good chance of remaining intact for re-use. It requires 10 strength to fire",
"price" : 800,
"material" : "wood",
"flags" : ["ALWAYS_TWOHAND", "STR10_DRAW", "RELOAD_AND_SHOOT"],
"skill" : "archery",
"ammo" : "arrow",
"weight" : 680,
"volume" : 8,
"bashing" : 10,
"cutting" : 0,
"to_hit" : 0,
"ranged_damage" : 7,
"range" : 20,
"dispersion" : 18,
"recoil" : 0,
"durability" : 6,
"burst" : 0,
"clip_size" : 1,
"reload" : 80
},
{
"id" : "reflexrecurvebow",
"type" : "GUN",
"symbol" : "(",
"color" : "yellow",
"name" : "reflex recurve bow",
"description" : "A bow that combines the traits from both the reflex and the recurve bows. Both the limbs and the tips curve away from the archer. This dramatically increases the power while increasing the strength to draw the bow significantly. It requires 12 strength to fire efficiently.",
"price" : 1200,
"material" : ["wood", "bone"],
"flags" : ["ALWAYS_TWOHAND", "STR12_DRAW", "RELOAD_AND_SHOOT"],
"skill" : "archery",
"ammo" : "arrow",
"weight" : 540,
"volume" : 5,
"bashing" : 12,
"cutting" : 0,
"to_hit" : 0,
"ranged_damage" : 15,
"range" : 18,
"dispersion" : 8,
"recoil" : 0,
"durability" : 6,
"burst" : 0,
"clip_size" : 1,
"reload" : 80
},
{
"id" : "hand_crossbow",
"type" : "GUN",
"symbol" : "(",
"color" : "green",
"name" : "pistol crossbow",
"description" : "A small concealable pistol like crossbow. It is weak due to it's small size and draw, good for hunting small game. Bolts fired from this weapon have a good chance of remaining intact for re-use.",
"price" : 1000,
"material" : ["iron", "wood"],
"flags" : "none",
"skill" : "archery",
"ammo" : "bolt",
"weight" : 900,
"volume" : 4,
"bashing" : 4,
"cutting" : 0,
"to_hit" : -0,
"ranged_damage" : 7,
"range" : 6,
"dispersion" : 12,
"recoil" : 0,
"durability" : 6,
"burst" : 0,
"clip_size" : 1,
"reload" : 100
},
{
"id" : "crossbow",
"type" : "GUN",
"symbol" : "(",
"color" : "green",
"name" : "crossbow",
"description" : "A slow-loading hand weapon that launches bolts. Stronger people can reload it much faster. Bolts fired from this weapon have a good chance of remaining intact for re-use.",
"price" : 1000,
"material" : ["iron", "wood"],
"flags" : "STR_RELOAD",
"skill" : "archery",
"ammo" : "bolt",
"weight" : 2728,
"volume" : 6,
"bashing" : 11,
"cutting" : 0,
"to_hit" : 1,
"ranged_damage" : 13,
"range" : 10,
"dispersion" : 10,
"recoil" : 0,
"durability" : 6,
"burst" : 0,
"clip_size" : 1,
"reload" : 800
},
{
"id" : "huge_crossbow",
"type" : "GUN",
"symbol" : "(",
"color" : "green",
"name" : "Ganz-Rustung",
"description" : "A HUGE very slow-loading medieval crossbow from Germany. It's tension is so powerful that you feel it shake after firing. Un-skilled users will find it very hard to reload. Bolts fired from this weapon have a good chance of remaining intact for re-use.",
"price" : 1000,
"material" : ["iron", "wood"],
"flags" : ["ALWAYS_TWOHAND", "STR_RELOAD"],
"skill" : "archery",
"ammo" : "bolt",
"weight" : 6803,
"volume" : 40,
"bashing" : 20,
"cutting" : 0,
"to_hit" : -1,
"ranged_damage" : 30,
"range" : 30,
"dispersion" : 22,
"recoil" : 30,
"durability" : 6,
"burst" : 0,
"clip_size" : 1,
"reload" : 6000
},
{
"id" : "rep_crossbow",
"type" : "GUN",
"symbol" : "(",
"color" : "green",
"name" : "repeating crossbow",
"description" : "A custom made mechanical large crossbow, with a wooden magazine that holds 10 bolts. Single bolt reload. Bolts fired from this weapon have a good chance of remaining intact for re-use.",
"price" : 1000,
"material" : ["iron", "wood"],
"flags" : ["ALWAYS_TWOHAND", "RELOAD_ONE", "MODE_BURST"],
"skill" : "archery",
"ammo" : "bolt",
"weight" : 3628,
"volume" : 10,
"bashing" : 13,
"cutting" : 0,
"to_hit" : -1,
"ranged_damage" : 10,
"range" : 8,
"dispersion" : 22,
"recoil" : 15,
"durability" : 6,
"burst" : 3,
"clip_size" : 10,
"reload" : 100
},
{
"id":"shaft_plastic",
"type":"AMMO",
"symbol":"=",
"color":"green",
"name":"plastic shaft",
"description":"A crude shaft made from plastic. It needs arrowheads and fletching to become a functional arrow. You can, however, fire it from a bow.",
"to_hit":0,
"price":0,
"material":"plastic",
"bashing":1,
"cutting":0,
"weight":6,
"volume":1,
"ammo_type":"arrow",
"range":0,
"pierce":0,
"damage":0,
"recoil":0,
"dispersion":40,
"count":10
},
{
"id":"arrowhead_plastic",
"type":"AMMO",
"color":"green",
"symbol":"=",
"name":"plastic arrowhead",
"description":"Plastic heads for an arrow. Placing these on an arrow will make the arrow more damaging and piercing.",
"price":0,
"material":"plastic",
"to_hit":0,
"cutting":0,
"bashing":1,
"weight":1,
"volume":1,
"ammo_type":"components",
"range":0,
"pierce":0,
"damage":0,
"recoil":0,
"dispersion":0,
"count":10
},
{
"id":"arrow_plastic",
"type":"AMMO",
"symbol":"=",
"color":"green",
"name":"plastic arrow",
"description":"This plastic arrow has a plastic arrow head and some fletchings.",
"price":20,
"material":"plastic",
"volume":1,
"weight":8,
"bashing":2,
"cutting":1,
"to_hit":0,
"ammo_type":"arrow",
"damage":8,
"pierce":1,
"range":12,
"dispersion":15,
"recoil":0,
"count":10
}
]
+2249 -435
View File
File diff suppressed because it is too large Load Diff
+352 -148
View File
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
+274
View File
@@ -0,0 +1,274 @@
[
{
"id": "bag_plastic",
"type": "CONTAINER",
"symbol": ")",
"color": "light_gray",
"name": "plastic bag",
"description": "A small, open plastic bag. Essentially trash.",
"price": 1,
"weight": 2,
"volume": 1,
"bashing": -4,
"cutting": 0,
"to_hit": -8,
"contains": 24,
"material": "plastic"
},
{
"id": "bottle_plastic",
"type": "CONTAINER",
"symbol": ")",
"color": "light_cyan",
"name": "plastic bottle",
"description": "A resealable plastic bottle, holds 500 ml of liquid.",
"price": 8,
"weight": 13,
"volume": 2,
"bashing": -8,
"cutting": 0,
"to_hit": 1,
"material": "plastic",
"contains": 2,
"flags": ["RIGID", "WATERTIGHT", "SEALS"]
},
{
"id": "bottle_glass",
"type": "CONTAINER",
"symbol": ")",
"color": "cyan",
"name": "glass bottle",
"description": "A resealable glass bottle, holds 750 ml of liquid.",
"price": 1,
"weight": 200,
"volume": 3,
"bashing": -8,
"cutting": 0,
"to_hit": 1,
"material": "glass",
"contains": 3,
"flags": ["RIGID", "WATERTIGHT", "SEALS"]
},
{
"id": "can_drink",
"type": "CONTAINER",
"symbol": ")",
"color": "light_blue",
"name": "aluminum can",
"description": "An aluminum can, like what soda comes in.",
"price": 1,
"weight": 13,
"volume": 1,
"bashing": 0,
"cutting": 0,
"to_hit": 0,
"material": "steel",
"contains": 1,
"flags": ["RIGID", "WATERTIGHT"]
},
{
"id": "can_food",
"type": "CONTAINER",
"symbol": ")",
"color": "blue",
"name": "tin can",
"description": "A tin can, like what beans come in.",
"price": 2,
"weight": 400,
"volume": 1,
"bashing": -1,
"cutting": 0,
"to_hit": 1,
"material": "iron",
"contains": 1,
"flags": ["RIGID", "WATERTIGHT"]
},
{
"id": "box_small",
"type": "CONTAINER",
"symbol": ")",
"color": "brown",
"name": "sm. cardboard box",
"description": "A small cardboard box. No bigger than a foot in dimension.",
"price": 0,
"weight": 151,
"volume": 4,
"bashing": -5,
"cutting": 0,
"to_hit": 1,
"material": "paper",
"contains": 4,
"flags": ["RIGID"]
},
{
"id": "canteen",
"type": "CONTAINER",
"symbol": ")",
"color": "green",
"name": "plastic canteen",
"description": "A large military-style water canteen, with a 1.5 liter capacity and strap.",
"price": 1000,
"weight": 155,
"volume": 6,
"bashing": -8,
"cutting": 0,
"to_hit": 1,
"material": "plastic",
"contains": 6,
"flags": ["RIGID", "SEALS", "WATERTIGHT"]
},
{
"id": "jerrycan",
"type": "CONTAINER",
"symbol": ")",
"color": "green",
"name": "plastic jerrycan",
"description": "A bulky plastic jerrycan, meant to carry fuel, but can carry other liquids\nin a pinch. It has a capacity of 10 liters.",
"price": 2500,
"weight": 1587,
"volume": 40,
"bashing": -2,
"cutting": 0,
"to_hit": -2,
"material": "plastic",
"contains": 40,
"flags": ["RIGID", "SEALS", "WATERTIGHT"]
},
{
"id": "jug_plastic",
"type": "CONTAINER",
"symbol": ")",
"color": "light_cyan",
"name": "gallon jug",
"description": "A standard plastic jug used for household cleaning chemicals.",
"price": 2500,
"weight": 190,
"volume": 10,
"bashing": -8,
"cutting": 0,
"to_hit": 1,
"material": "plastic",
"contains": 10,
"flags": ["RIGID", "SEALS", "WATERTIGHT"]
},
{
"id": "flask_glass",
"type": "CONTAINER",
"symbol": ")",
"color": "light_cyan",
"name": "glass flask",
"description": "A 250 ml laboratory conical flask, with a rubber bung.",
"price": 2500,
"weight": 48,
"volume": 1,
"bashing": 8,
"cutting": 0,
"to_hit": 1,
"material": "glass",
"contains": 1,
"flags": ["RIGID", "SEALS", "WATERTIGHT"]
},
{
"id": "waterskin",
"type": "CONTAINER",
"symbol": ")",
"color": "brown",
"name": "waterskin",
"description": "A watertight leather bag, can hold 1.5 liters of water.",
"price": 0,
"weight": 453,
"volume": 6,
"bashing": -8,
"cutting": 0,
"to_hit": -5,
"material": "leather",
"contains": 6,
"flags": ["SEALS", "WATERTIGHT"]
},
{
"id": "jerrycan_big",
"type": "CONTAINER",
"symbol": ")",
"color": "green",
"name": "steel jerrycan",
"description": "A steel jerrycan, meant to carry fuel, but can carry other liquids\nin a pinch. It has a capacity of 25 liters.",
"price": 5000,
"weight": 4815,
"volume": 100,
"bashing": -3,
"cutting": 0,
"to_hit": -3,
"material": "steel",
"contains": 100,
"flags": ["RIGID", "SEALS", "WATERTIGHT"]
},
{
"id": "keg",
"type": "CONTAINER",
"symbol": ")",
"color": "light_cyan",
"name": "aluminum keg",
"description": "A reusable aluminum keg, used for shipping beer.\nIt has a capacity of 50 liters.",
"price": 6000,
"weight": 13500,
"volume": 200,
"bashing": -4,
"cutting": 0,
"to_hit": -4,
"material": "steel",
"contains": 200,
"flags": ["RIGID", "SEALS", "WATERTIGHT"]
},
{
"id": "jar_glass",
"type": "CONTAINER",
"symbol": ")",
"color": "light_cyan",
"name": "glass jar",
"description": "A half-litre glass jar with a metal screw top lid, used for canning.",
"price": 2500,
"weight": 264,
"volume": 1,
"bashing": 8,
"cutting": 0,
"to_hit": 1,
"material": "glass",
"contains": 1,
"flags": ["RIGID", "SEALS", "WATERTIGHT"]
},
{
"id": "jar_3l_glass",
"type": "CONTAINER",
"symbol": ")",
"color": "light_cyan",
"name": "3l glass jar",
"description": "A three-litre glass jar with a metal screw top lid, used for canning.",
"price": 3000,
"weight": 365,
"volume": 3,
"bashing": 10,
"cutting": 0,
"to_hit": 1,
"material": "glass",
"contains": 5,
"flags": ["RIGID", "SEALS", "WATERTIGHT"]
},
{
"id":"bowl_plastic",
"type":"CONTAINER",
"color":"light_cyan",
"symbol":")","to_hit":1,
"name":"plastic bowl",
"description":"A plastic bowl. Can be used as a container or as a tool. Holds 250 ml of liquid.",
"cutting":0,
"price":1,
"weight":0,
"volume":1,
"bashing":2,
"cutting":0,
"to_hit":1,
"material":"plastic",
"contains":1,
"flags":[ "RIGID" ]
}
]
+4 -6
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,
"material": "wood",
"weight": 2766,
"volume": 24,
"damage": 14,
"to_hit": 1,
@@ -22,9 +21,8 @@
"color": "green",
"name":"Bongo",
"description": "A handheld drum. Suitable for making loud noises into all hours of the night.",
"rarity": 60,
"material": ["WOOD", "STEEL"],
"weight": 10,
"material": ["wood", "steel"],
"weight": 400,
"volume": 10,
"damage": 11,
"to_hit": 1,
+540 -379
View File
File diff suppressed because it is too large Load Diff
+379 -124
View File
@@ -5,45 +5,43 @@
"color": "green",
"name":".45 caliber retool",
"description":"Replacing several key parts of a 9mm, .38, .40 or .44 firearm converts it to a .45 firearm. The conversion results in reduced accuracy and increased recoil.",
"rarity": 3,
"price": 480,
"material": "STEEL",
"weight": 2,
"material": "steel",
"weight": 226,
"volume": 2,
"bashing": 3,
"cutting": 0,
"to_hit": -1,
"accuracy_modifier": 2,
"dispersion_modifier": 2,
"damage_modifier": 0,
"loudness_modifier": 0,
"ammo_modifier": ".45",
"ammo_modifier": "45",
"recoil_modifier": 2,
"burst_modifier": 0,
"clip_size_modifier": 0,
"mod_targets": ["pistol", "smg"],
"acceptable_ammo": ["9MM", "38", "40", "44"]
"acceptable_ammo": ["9mm", "38", "40", "44"]
},
{
"type" : "GUNMOD",
"id" : "suppressor",
"name" : "suppressor",
"clip_size_modifier" : 0,
"accuracy_modifier" : -1,
"dispersion_modifier" : 1,
"damage_modifier" : -4,
"ammo_modifier" : "none",
"ammo_modifier" : "NULL",
"description" : "Using a suppressor is almost an imperative in zombie-infested regions. Gunfire is very noisy, and will attract predators. Its only drawback is a reduced muzzle velocity, resulting in less accuracy and damage.",
"weight" : 1,
"weight" : 510,
"to_hit" : 2,
"color" : "dark_gray",
"symbol" : ":",
"material" : ["STEEL", "PLASTIC"],
"material" : ["steel", "plastic"],
"mod_targets" : ["pistol", "smg", "rifle"],
"volume" : 2,
"bashing" : 3,
"cutting" : 0,
"burst_modifier" : 0,
"recoil_modifier" : 0,
"rarity" : 15,
"price" : 480,
"loudness_modifier" : -25
},
@@ -52,22 +50,21 @@
"id" : "grip",
"name" : "enhanced grip",
"clip_size_modifier" : 0,
"accuracy_modifier" : 2,
"dispersion_modifier" : -2,
"damage_modifier" : 0,
"ammo_modifier" : "none",
"ammo_modifier" : "NULL",
"description" : "A grip placed forward on the barrel allows for greater control and accuracy. Aside from increased weight, there are no drawbacks.",
"weight" : 1,
"weight" : 113,
"to_hit" : -1,
"color" : "brown",
"symbol" : ":",
"material" : ["STEEL", "PLASTIC"],
"material" : ["steel", "plastic"],
"mod_targets" : ["shotgun", "smg", "rifle"],
"volume" : 1,
"bashing" : 0,
"cutting" : 0,
"burst_modifier" : 0,
"recoil_modifier" : -2,
"rarity" : 12,
"price" : 280,
"loudness_modifier" : 0
},
@@ -76,22 +73,21 @@
"id" : "barrel_big",
"name" : "barrel extension",
"clip_size_modifier" : 0,
"accuracy_modifier" : 6,
"dispersion_modifier" : -6,
"damage_modifier" : 1,
"ammo_modifier" : "none",
"ammo_modifier" : "NULL",
"description" : "A longer barrel increases the muzzle velocity of a firearm, contributing to both accuracy and damage. However, the longer barrel tends to vibrate after firing, greatly increasing recoil.",
"weight" : 1,
"weight" : 226,
"to_hit" : 2,
"color" : "light_gray",
"symbol" : ":",
"material" : ["STEEL", "NULL"],
"material" : ["steel", "null"],
"mod_targets" : ["smg", "rifle"],
"volume" : 4,
"bashing" : 5,
"cutting" : 0,
"burst_modifier" : 0,
"recoil_modifier" : 5,
"rarity" : 10,
"price" : 400,
"loudness_modifier" : 0
},
@@ -100,22 +96,21 @@
"id" : "barrel_small",
"name" : "shortened barrel",
"clip_size_modifier" : 0,
"accuracy_modifier" : -5,
"dispersion_modifier" : 5,
"damage_modifier" : 0,
"ammo_modifier" : "none",
"description" : "A shortened barrel results in markedly reduced accuracy, and a minor increase in noise, but also reduces recoil greatly as a result of the improved managability of the firearm.",
"weight" : 1,
"ammo_modifier" : "NULL",
"description" : "A shortened barrel results in markedly reduced accuracy, and a minor increase in noise, but also reduces recoil greatly as a result of the improved manageability of the firearm.",
"weight" : 113,
"to_hit" : -1,
"color" : "light_gray",
"symbol" : ":",
"material" : ["STEEL", "NULL"],
"material" : ["steel", "null"],
"mod_targets" : ["smg", "rifle"],
"volume" : 1,
"bashing" : -2,
"cutting" : 0,
"burst_modifier" : 0,
"recoil_modifier" : -6,
"rarity" : 6,
"price" : 320,
"loudness_modifier" : 2
},
@@ -124,22 +119,21 @@
"id" : "barrel_rifled",
"name" : "rifled barrel",
"clip_size_modifier" : 0,
"accuracy_modifier" : 10,
"dispersion_modifier" : -10,
"damage_modifier" : -20,
"ammo_modifier" : "none",
"ammo_modifier" : "NULL",
"description" : "Rifling a shotgun barrel is mainly done in order to improve its accuracy when firing slugs. The rifling makes the gun less suitable for shot, however.",
"weight" : 1,
"weight" : 226,
"to_hit" : 1,
"color" : "light_gray",
"symbol" : ":",
"material" : ["STEEL", "NULL"],
"material" : ["steel", "null"],
"mod_targets" : ["shotgun"],
"volume" : 2,
"bashing" : 3,
"cutting" : 0,
"burst_modifier" : -1,
"recoil_modifier" : 0,
"rarity" : 5,
"price" : 220,
"loudness_modifier" : 0
},
@@ -148,22 +142,21 @@
"id" : "clip",
"name" : "extended magazine",
"clip_size_modifier" : 50,
"accuracy_modifier" : -1,
"dispersion_modifier" : 1,
"damage_modifier" : 0,
"ammo_modifier" : "none",
"ammo_modifier" : "NULL",
"description" : "Increases the ammunition capacity of your firearm by 50%, but the added bulk reduces accuracy slightly.",
"weight" : 1,
"weight" : 495,
"to_hit" : -1,
"color" : "light_gray",
"symbol" : ":",
"material" : ["STEEL", "PLASTIC"],
"material" : ["steel", "plastic"],
"mod_targets" : ["pistol", "shotgun", "smg", "rifle"],
"volume" : 1,
"bashing" : -2,
"cutting" : 0,
"burst_modifier" : 0,
"recoil_modifier" : 0,
"rarity" : 8,
"price" : 560,
"loudness_modifier" : 0
},
@@ -172,22 +165,21 @@
"id" : "clip2",
"name" : "double magazine",
"clip_size_modifier" : 100,
"accuracy_modifier" : -2,
"dispersion_modifier" : 2,
"damage_modifier" : 0,
"ammo_modifier" : "none",
"ammo_modifier" : "NULL",
"description" : "Completely doubles the ammunition capacity of your firearm, but the added bulk reduces accuracy and increases recoil.",
"weight" : 2,
"weight" : 660,
"to_hit" : 0,
"color" : "light_gray",
"symbol" : ":",
"material" : ["STEEL", "PLASTIC"],
"material" : ["steel", "plastic"],
"mod_targets" : ["shotgun", "smg", "rifle"],
"volume" : 2,
"bashing" : 0,
"cutting" : 0,
"burst_modifier" : 0,
"recoil_modifier" : 2,
"rarity" : 4,
"price" : 720,
"loudness_modifier" : 0
},
@@ -196,22 +188,44 @@
"id" : "spare_mag",
"name" : "spare magazine",
"clip_size_modifier" : 0,
"accuracy_modifier" : 0,
"dispersion_modifier" : 0,
"damage_modifier" : 0,
"ammo_modifier" : "none",
"ammo_modifier" : "NULL",
"description" : "A spare magazine you can keep on hand to make reloads faster, but must itself be reloaded before it can be used again.",
"weight" : 1,
"weight" : 330,
"to_hit" : 0,
"color" : "light_gray",
"symbol" : ":",
"material" : ["STEEL", "PLASTIC"],
"material" : ["steel", "plastic"],
"mod_targets" : ["pistol", "shotgun", "smg", "rifle"],
"volume" : 1,
"bashing" : 0,
"cutting" : 0,
"burst_modifier" : 0,
"recoil_modifier" : 0,
"rarity" : 15,
"price" : 200,
"loudness_modifier" : 0
},
{
"type" : "GUNMOD",
"id" : "brass_catcher",
"name" : "brass catcher",
"clip_size_modifier" : 0,
"dispersion_modifier" : 0,
"damage_modifier" : 0,
"ammo_modifier" : "NULL",
"description" : "A bag that hangs off the side of your gun and catches ejected casings so you don't have to pick them up.",
"weight" : 114,
"to_hit" : 0,
"color" : "light_gray",
"symbol" : ":",
"material" : ["cotton", "null"],
"mod_targets" : ["shotgun", "smg", "rifle"],
"volume" : 1,
"bashing" : 0,
"cutting" : 0,
"burst_modifier" : 0,
"recoil_modifier" : 0,
"price" : 200,
"loudness_modifier" : 0
},
@@ -220,22 +234,21 @@
"id" : "stabilizer",
"name" : "gyroscopic stabilizer",
"clip_size_modifier" : -10,
"accuracy_modifier" : 2,
"dispersion_modifier" : -2,
"damage_modifier" : -2,
"ammo_modifier" : "none",
"ammo_modifier" : "NULL",
"description" : "An advanced unit that straps onto the side of your firearm and reduces vibration, greatly reducing recoil and increasing accuracy. However, it also takes up space in the magazine slot, reducing ammo capacity.",
"weight" : 2,
"weight" : 286,
"to_hit" : -3,
"color" : "blue",
"symbol" : ":",
"material" : ["STEEL", "PLASTIC"],
"material" : ["steel", "plastic"],
"mod_targets" : ["smg", "rifle"],
"volume" : 3,
"bashing" : 0,
"cutting" : 0,
"burst_modifier" : 0,
"recoil_modifier" : -8,
"rarity" : 4,
"price" : 680,
"loudness_modifier" : 0
},
@@ -244,22 +257,21 @@
"id" : "blowback",
"name" : "rapid blowback",
"clip_size_modifier" : 0,
"accuracy_modifier" : -3,
"dispersion_modifier" : 3,
"damage_modifier" : 0,
"ammo_modifier" : "none",
"ammo_modifier" : "NULL",
"description" : "An improved blowback mechanism makes your firearm's automatic fire faster, at the cost of reduced accuracy and increased noise.",
"weight" : 1,
"weight" : 114,
"to_hit" : 0,
"color" : "red",
"symbol" : ":",
"material" : ["STEEL", "PLASTIC"],
"material" : ["steel", "plastic"],
"mod_targets" : ["smg", "rifle"],
"volume" : 0,
"bashing" : 0,
"cutting" : 0,
"burst_modifier" : 6,
"recoil_modifier" : 0,
"rarity" : 3,
"price" : 700,
"loudness_modifier" : 4
},
@@ -267,49 +279,47 @@
"type" : "GUNMOD",
"id" : "autofire",
"name" : "auto-fire mechanism",
"weight" : 2,
"weight" : 226,
"color" : "red",
"burst_modifier" : 3,
"loudness_modifier" : 2,
"to_hit" : -1,
"accuracy_modifier" : -2,
"dispersion_modifier" : 2,
"price" : 650,
"clip_size_modifier" : 0,
"description" : "A simple mechanism that converts a pistol to a fully-automatic weapon, with a burst size of three rounds. However, it reduces accuracy, and increases noise and recoil.",
"symbol" : ":",
"material" : ["STEEL", "PLASTIC"],
"material" : ["steel", "plastic"],
"volume" : 1,
"cutting" : 0,
"recoil_modifier" : 2,
"damage_modifier" : 0,
"acceptable_ammo" : ["22", "9MM", "38", "40", "57", "46"],
"acceptable_ammo" : ["22", "9mm", "38", "40", "57", "46"],
"mod_targets" : ["pistol"],
"rarity" : 2,
"bashing" : 2,
"ammo_modifier" : "none"
"ammo_modifier" : "NULL"
},
{
"type" : "GUNMOD",
"id" : "retool_9mm",
"name" : "9mm caliber retool",
"weight" : 1,
"weight" : 114,
"color" : "green",
"burst_modifier" : 0,
"loudness_modifier" : 0,
"to_hit" : -1,
"accuracy_modifier" : -1,
"dispersion_modifier" : 1,
"price" : 420,
"clip_size_modifier" : 0,
"description" : "Replacing several key parts of a .38, .40, .44 or .45 firearm converts it to a 9mm firearm. The conversion results in a slight reduction in accuracy.",
"symbol" : ":",
"material" : ["STEEL", "NULL"],
"material" : ["steel", "null"],
"volume" : 1,
"cutting" : 0,
"recoil_modifier" : 0,
"damage_modifier" : 0,
"acceptable_ammo" : ["38", "40", "44", "45"],
"mod_targets" : ["pistol", "smg"],
"rarity" : 3,
"bashing" : 0,
"ammo_modifier" : "9mm"
},
@@ -317,148 +327,142 @@
"type" : "GUNMOD",
"id" : "retool_22",
"name" : ".22 caliber retool",
"weight" : 1,
"weight" : 114,
"color" : "green",
"burst_modifier" : 0,
"loudness_modifier" : 0,
"to_hit" : -1,
"accuracy_modifier" : -1,
"dispersion_modifier" : 1,
"price" : 320,
"clip_size_modifier" : 0,
"description" : "Replacing several key parts of a 9mm, .38, .40, 5.7mm, 4.6mm, 7.62mm or .223 firearm converts it to a .22 firearm. The conversion results in a slight reduction in accuracy.",
"symbol" : ":",
"material" : ["STEEL", "NULL"],
"material" : ["steel", "null"],
"volume" : 1,
"cutting" : 0,
"recoil_modifier" : 0,
"damage_modifier" : 0,
"acceptable_ammo" : ["9MM", "38", "40", "57", "46", "762", "223"],
"acceptable_ammo" : ["9mm", "38", "40", "57", "46", "762", "223"],
"mod_targets" : ["pistol", "smg", "rifle"],
"rarity" : 2,
"bashing" : -2,
"ammo_modifier" : ".22"
"ammo_modifier" : "22"
},
{
"type" : "GUNMOD",
"id" : "retool_57",
"name" : "5.7mm caliber retool",
"weight" : 1,
"weight" : 114,
"color" : "green",
"burst_modifier" : 0,
"loudness_modifier" : 0,
"to_hit" : -1,
"accuracy_modifier" : -1,
"dispersion_modifier" : 1,
"price" : 460,
"clip_size_modifier" : 0,
"description" : "FN Hestal sells a conversion kit, used to convert .22, 9mm, or .38 firearms to their proprietary 5.7x28mm, a round designed for accuracy and armor penetration.",
"symbol" : ":",
"material" : ["STEEL", "NULL"],
"material" : ["steel", "null"],
"volume" : 1,
"cutting" : 0,
"recoil_modifier" : 0,
"damage_modifier" : 0,
"acceptable_ammo" : ["22", "9MM", "38"],
"acceptable_ammo" : ["22", "9mm", "38"],
"mod_targets" : ["pistol", "smg"],
"rarity" : 1,
"bashing" : -3,
"ammo_modifier" : "5.7mm"
"ammo_modifier" : "57"
},
{
"type" : "GUNMOD",
"id" : "retool_46",
"name" : "4.6mm caliber retool",
"weight" : 1,
"weight" : 114,
"color" : "green",
"burst_modifier" : 0,
"loudness_modifier" : 0,
"to_hit" : -1,
"accuracy_modifier" : -1,
"dispersion_modifier" : 1,
"price" : 460,
"clip_size_modifier" : 0,
"description" : "Heckler and Koch sells a conversion kit, used to convert .22, 9mm, or .38 firearms to their proprietary 4.6x30mm, a round designed for accuracy and armor penetration.",
"symbol" : ":",
"material" : ["STEEL", "NULL"],
"material" : ["steel", "null"],
"volume" : 1,
"cutting" : 0,
"recoil_modifier" : 0,
"damage_modifier" : 0,
"acceptable_ammo" : ["22", "9MM", "38"],
"acceptable_ammo" : ["22", "9mm", "38"],
"mod_targets" : ["pistol", "smg"],
"rarity" : 1,
"bashing" : -3,
"ammo_modifier" : "4.6mm"
"ammo_modifier" : "46"
},
{
"type" : "GUNMOD",
"id" : "retool_308",
"name" : ".308 caliber retool",
"weight" : 1,
"weight" : 114,
"color" : "green",
"burst_modifier" : 0,
"loudness_modifier" : 0,
"to_hit" : 1,
"accuracy_modifier" : -2,
"dispersion_modifier" : 2,
"price" : 520,
"clip_size_modifier" : -20,
"description" : "This kit is used to convert a shotgun or 7.62mm, .223 or .30-06 rifle to the popular and powerful .308 caliber. The conversion results in reduced ammo capacity and a slight reduction in accuracy.",
"symbol" : ":",
"material" : ["STEEL", "NULL"],
"material" : ["steel", "null"],
"volume" : 2,
"cutting" : 0,
"recoil_modifier" : 0,
"damage_modifier" : 0,
"acceptable_ammo" : ["SHOT", "762", "223", "3006"],
"acceptable_ammo" : ["shot", "762", "223", "3006"],
"mod_targets" : ["shotgun", "rifle"],
"rarity" : 2,
"bashing" : 4,
"ammo_modifier" : ".308"
"ammo_modifier" : "308"
},
{
"type" : "GUNMOD",
"id" : "retool_223",
"name" : ".223 caliber retool",
"weight" : 1,
"weight" : 114,
"color" : "green",
"burst_modifier" : 0,
"loudness_modifier" : 0,
"to_hit" : 1,
"accuracy_modifier" : -2,
"dispersion_modifier" : 2,
"price" : 500,
"clip_size_modifier" : -10,
"description" : "This kit is used to convert a shotgun or 7.62mm, .30-06, or .308 rifle to the popular, accurate, and damaging .223 caliber. The conversion results in slight reductions in both accuracy and ammo capacity.",
"symbol" : ":",
"material" : ["STEEL", "NULL"],
"material" : ["steel", "null"],
"volume" : 2,
"cutting" : 0,
"recoil_modifier" : 0,
"damage_modifier" : 0,
"acceptable_ammo" : ["SHOT", "762", "3006", "308"],
"acceptable_ammo" : ["shot", "762", "3006", "308"],
"mod_targets" : ["shotgun", "rifle"],
"rarity" : 2,
"bashing" : 4,
"ammo_modifier" : ".223"
"ammo_modifier" : "223"
},
{
"type" : "GUNMOD",
"id" : "conversion_battle",
"name" : "battle rifle conversion",
"clip_size_modifier" : 20,
"accuracy_modifier" : -6,
"dispersion_modifier" : 6,
"damage_modifier" : 6,
"ammo_modifier" : "none",
"ammo_modifier" : "NULL",
"description" : "This is a complete conversion kit, designed to turn a rifle into a powerful battle rifle. It reduces accuracy, and increases noise and recoil, but also increases damage, ammo capacity, and fire rate.",
"weight" : 3,
"weight" : 589,
"to_hit" : -1,
"color" : "magenta",
"symbol" : ":",
"material" : ["STEEL", "NULL"],
"material" : ["steel", "null"],
"mod_targets" : ["rifle"],
"volume" : 4,
"bashing" : 6,
"cutting" : 0,
"burst_modifier" : 4,
"recoil_modifier" : 4,
"rarity" : 1,
"price" : 680,
"loudness_modifier" : 4
},
@@ -467,22 +471,21 @@
"id" : "conversion_sniper",
"name" : "sniper conversion",
"clip_size_modifier" : -15,
"accuracy_modifier" : 10,
"dispersion_modifier" : -10,
"damage_modifier" : 8,
"ammo_modifier" : "none",
"ammo_modifier" : "NULL",
"description" : "This is a complete conversion kit, designed to turn a rifle into a deadly sniper rifle. It decreases ammo capacity, and removes any automatic fire capabilities, but also increases accuracy and damage.",
"weight" : 2,
"weight" : 589,
"to_hit" : -1,
"color" : "green",
"symbol" : ":",
"material" : ["STEEL", "NULL"],
"material" : ["steel", "null"],
"mod_targets" : ["rifle"],
"volume" : 1,
"bashing" : 0,
"cutting" : 0,
"burst_modifier" : -99,
"recoil_modifier" : 0,
"rarity" : 1,
"price" : 660,
"loudness_modifier" : 3
},
@@ -490,73 +493,118 @@
"type" : "GUNMOD",
"id" : "m203",
"name" : "M203",
"weight" : 1,
"weight" : 1360,
"color" : "light_red",
"burst_modifier" : 0,
"loudness_modifier" : 0,
"to_hit" : -1,
"accuracy_modifier" : -2,
"dispersion_modifier" : 2,
"price" : 650,
"clip_size_modifier" : 1,
"description" : "The M203 was originally designed for use with M16 variants but today can be attached to almost any rifle. It allows a single 40mm grenade to be loaded and fired.",
"symbol" : ":",
"material" : ["STEEL", "NULL"],
"material" : ["steel", "null"],
"volume" : 2,
"cutting" : 0,
"recoil_modifier" : 0,
"damage_modifier" : 0,
"mod_targets" : ["rifle"],
"rarity" : 2,
"bashing" : 2,
"flags" : ["MODE_AUX"],
"ammo_modifier" : "40mm"
},
{
"type" : "GUNMOD",
"id" : "pipe_launcher40mm",
"name" : "40mm pipe launcher",
"weight" : 2080,
"color" : "light_gray",
"burst_modifier" : 0,
"loudness_modifier" : 0,
"to_hit" : -1,
"dispersion_modifier" : 4,
"price" : 250,
"clip_size_modifier" : 1,
"description" : "This is a home built launcher tube that can be attached to almost any rifle. It allows a single 40mm grenade to be loaded and fired.",
"symbol" : ":",
"material" : ["steel", "plastic"],
"volume" : 5,
"cutting" : 0,
"recoil_modifier" : 0,
"damage_modifier" : 0,
"mod_targets" : ["rifle"],
"bashing" : 4,
"flags" : ["MODE_AUX"],
"ammo_modifier" : "40mm"
},
{
"type" : "GUNMOD",
"id" : "bayonet",
"name" : "bayonet",
"weight" : 2,
"weight" : 387,
"color" : "light_cyan",
"burst_modifier" : 0,
"loudness_modifier" : 0,
"to_hit" : -3,
"accuracy_modifier" : 0,
"dispersion_modifier" : 0,
"price" : 400,
"clip_size_modifier" : 0,
"description" : "A bayonet is a stabbing weapon that can be attached to the front of a shotgun, sub-machinegun or rifle, allowing a melee attack to deal piercing damage. The added length increases recoil slightly.",
"symbol" : ":",
"material" : ["STEEL", "NULL"],
"material" : ["steel", "null"],
"volume" : 2,
"cutting" : 16,
"recoil_modifier" : 3,
"damage_modifier" : 0,
"mod_targets" : ["shotgun", "smg", "rifle"],
"rarity" : 6,
"bashing" : 0,
"flags" : ["STAB"],
"ammo_modifier" : "none"
"ammo_modifier" : "NULL"
},
{
"type" : "GUNMOD",
"id" : "u_shotgun",
"name" : "underslung shotgun",
"weight" : 1,
"weight" : 1500,
"color" : "light_red",
"burst_modifier" : 0,
"loudness_modifier" : 0,
"to_hit" : -1,
"accuracy_modifier" : -2,
"dispersion_modifier" : 2,
"price" : 650,
"clip_size_modifier" : 2,
"description" : "A miniaturized shotgun with 2 barrels, which can be mounted under the barrel of many rifles. It allows two shotgun shells to be loaded and fired.",
"symbol" : ":",
"material" : ["STEEL", "NULL"],
"material" : ["steel", "null"],
"volume" : 2,
"cutting" : 0,
"recoil_modifier" : 0,
"damage_modifier" : 0,
"mod_targets" : ["rifle"],
"bashing" : 2,
"flags" : ["MODE_AUX"],
"ammo_modifier" : "shot"
},
{
"type" : "GUNMOD",
"id" : "masterkey",
"name" : "masterkey shotgun",
"weight" : 2600,
"color" : "light_red",
"burst_modifier" : 0,
"loudness_modifier" : 0,
"to_hit" : -1,
"dispersion_modifier" : 1,
"price" : 950,
"clip_size_modifier" : 4,
"description" : "A minimalist pump action shotgun, which can be mounted under the barrel of many rifles. It allows a total of four shotgun shells to be loaded and fired.",
"symbol" : ":",
"material" : ["steel", "null"],
"volume" : 2,
"cutting" : 0,
"recoil_modifier" : 0,
"damage_modifier" : 0,
"mod_targets" : ["rifle"],
"rarity" : 2,
"bashing" : 2,
"flags" : ["MODE_AUX"],
"ammo_modifier" : "shot"
@@ -565,25 +613,232 @@
"type" : "GUNMOD",
"id" : "gun_crossbow",
"name" : "rail-mounted crossbow",
"weight" : 1,
"weight" : 1450,
"color" : "light_red",
"burst_modifier" : 0,
"loudness_modifier" : 0,
"to_hit" : -1,
"accuracy_modifier" : 0,
"dispersion_modifier" : 0,
"price" : 500,
"clip_size_modifier" : 1,
"description" : "A kit to attach a pair of crossbow arms and a firing rail to the barrel of a long firearm. It allows crossbow bolts to be fired.",
"symbol" : ":",
"material" : ["STEEL", "WOOD"],
"material" : ["steel", "wood"],
"volume" : 2,
"cutting" : 0,
"recoil_modifier" : 0,
"damage_modifier" : 0,
"mod_targets" : ["shotgun", "rifle"],
"rarity" : 2,
"bashing" : 2,
"flags" : ["MODE_AUX", "STR_RELOAD"],
"ammo_modifier" : "bolt"
},
{
"type" : "GUNMOD",
"id" : "laser_sight",
"name" : "laser sight",
"clip_size_modifier" : 0,
"dispersion_modifier" : -4,
"damage_modifier" : 0,
"ammo_modifier" : "NULL",
"description" : "A small visible-light laser that mounts on a firearm to enhance ease and speed of target acquisition. Aside from increased weight, there are no drawbacks.",
"weight" : 100,
"to_hit" : -1,
"color" : "dark_gray",
"symbol" : ":",
"material" : ["plastic", "steel"],
"mod_targets" : ["smg", "rifle", "pistol", "shotgun"],
"volume" : 1,
"bashing" : 0,
"cutting" : 0,
"burst_modifier" : 0,
"recoil_modifier" : 0,
"price" : 680,
"loudness_modifier" : 0
},
{
"type" : "GUNMOD",
"id" : "improve_sights",
"name" : "improved iron sights",
"clip_size_modifier" : 0,
"dispersion_modifier" : -2,
"damage_modifier" : 0,
"ammo_modifier" : "NULL",
"description" : "Improves the weapon's ironsights, increasing accuracy. No drawbacks.",
"weight" : 60,
"to_hit" : -1,
"color" : "dark_gray",
"symbol" : ":",
"material" : ["plastic", "steel"],
"mod_targets" : ["smg", "rifle", "pistol", "shotgun"],
"volume" : 0,
"bashing" : 0,
"cutting" : 0,
"burst_modifier" : 0,
"recoil_modifier" : 0,
"price" : 720,
"loudness_modifier" : 0
},
{
"type" : "GUNMOD",
"id" : "red_dot_sight",
"name" : "red dot sight",
"clip_size_modifier" : 0,
"dispersion_modifier" : -5,
"damage_modifier" : 0,
"ammo_modifier" : "NULL",
"description" : "Adds a red dot optic to the top of your gun, replacing the iron sights. Increases accuracy and weight.",
"weight" : 300,
"to_hit" : -1,
"color" : "dark_gray",
"symbol" : ":",
"material" : ["plastic", "steel"],
"mod_targets" : ["smg", "rifle", "shotgun"],
"volume" : 1,
"bashing" : 0,
"cutting" : 0,
"burst_modifier" : 0,
"recoil_modifier" : 0,
"price" : 680,
"loudness_modifier" : 0
},
{
"type" : "GUNMOD",
"id" : "holo_sight",
"name" : "holographic sight",
"clip_size_modifier" : 0,
"dispersion_modifier" : -6,
"damage_modifier" : 0,
"ammo_modifier" : "NULL",
"description" : "Adds a holographic sight. Used extensively by military forces, it increases accuracy and weight but is a step up from a red dot sight.",
"weight" : 400,
"to_hit" : -2,
"color" : "dark_gray",
"symbol" : ":",
"material" : ["plastic", "steel"],
"mod_targets" : ["smg", "rifle","shotgun"],
"volume" : 2,
"bashing" : 0,
"cutting" : 0,
"burst_modifier" : 0,
"recoil_modifier" : 0,
"price" : 680,
"loudness_modifier" : 0
},
{
"type" : "GUNMOD",
"id" : "rifle_scope",
"name" : "rifle scope",
"clip_size_modifier" : 0,
"dispersion_modifier" : -8,
"damage_modifier" : 0,
"ammo_modifier" : "NULL",
"description" : "A long ranged rifle scope used by civilians and military alike, increases weight but improves accuracy greatly.",
"weight" : 450,
"to_hit" : -3,
"color" : "dark_gray",
"symbol" : ":",
"material" : ["plastic", "steel"],
"mod_targets" : ["rifle"],
"volume" : 3,
"bashing" : 0,
"cutting" : 0,
"burst_modifier" : 0,
"recoil_modifier" : 0,
"price" : 680,
"loudness_modifier" : 0
},
{
"type" : "GUNMOD",
"id" : "barrel_ported",
"name" : "ported barrel",
"clip_size_modifier" : 0,
"dispersion_modifier" : 1,
"damage_modifier" : 0,
"ammo_modifier" : "NULL",
"description" : "A ported barrel redirects exhaust gases to compensate for muzzle climb, improves recoil but increases noise and reduces accuracy slightly.",
"weight" : 225,
"to_hit" : -3,
"color" : "light_gray",
"symbol" : ":",
"material" : ["steel", "null"],
"mod_targets" : ["smg", "rifle", "pistol", "shotgun"],
"volume" : 2,
"bashing" : 0,
"cutting" : 0,
"burst_modifier" : 0,
"recoil_modifier" : -4,
"price" : 720,
"loudness_modifier" : 6
},
{
"type" : "GUNMOD",
"id" : "pistol_grip",
"name" : "ergonomic grip",
"clip_size_modifier" : 0,
"dispersion_modifier" : -2,
"damage_modifier" : 0,
"ammo_modifier" : "NULL",
"description" : "A set of ergonomic replacement furniture for a pistol, improves recoil and accuracy. Aside from increased weight, there are no drawbacks.",
"weight" : 125,
"to_hit" : -3,
"color" : "dark_gray",
"symbol" : ":",
"material" : ["steel", "null"],
"mod_targets" : ["pistol"],
"volume" : 1,
"bashing" : 0,
"cutting" : 0,
"burst_modifier" : 0,
"recoil_modifier" : -2,
"price" : 380,
"loudness_modifier" : 0
},
{
"type" : "GUNMOD",
"id" : "adjustable_stock",
"name" : "adjustable stock",
"clip_size_modifier" : 0,
"dispersion_modifier" : -2,
"damage_modifier" : 0,
"ammo_modifier" : "NULL",
"description" : "An adjustable replacement stock, improves recoil and accuracy. Aside from increased weight, there are no drawbacks.",
"weight" : 350,
"to_hit" : -3,
"color" : "dark_gray",
"symbol" : ":",
"material" : ["plastic", "steel"],
"mod_targets" : ["smg", "rifle", "shotgun"],
"volume" : 2,
"bashing" : 0,
"cutting" : 0,
"burst_modifier" : 0,
"recoil_modifier" : -2,
"price" : 380,
"loudness_modifier" : 0
},
{
"type" : "GUNMOD",
"id" : "pistol_stock",
"name" : "pistol stock",
"clip_size_modifier" : 0,
"dispersion_modifier" : -1,
"damage_modifier" : 0,
"ammo_modifier" : "NULL",
"description" : "An add on stock for handguns, improves recoil and accuracy. Aside from increased weight, there are no drawbacks.",
"weight" : 350,
"to_hit" : -3,
"color" : "dark_gray",
"symbol" : ":",
"material" : ["plastic", "steel"],
"mod_targets" : ["pistol"],
"volume" : 2,
"bashing" : 0,
"cutting" : 0,
"burst_modifier" : 0,
"recoil_modifier" : -5,
"price" : 380,
"loudness_modifier" : 0
}
]
+816 -418
View File
File diff suppressed because it is too large Load Diff
+1747 -630
View File
File diff suppressed because it is too large Load Diff
+99 -35
View File
@@ -6,9 +6,11 @@
"cut_resist" : 0,
"bash_dmg_verb" : "damaged",
"cut_dmg_verb" : "damaged",
"dmg_adj" : ["lightly damaged", "damaged", "very damaged", "thoroughly damaged"],
"acid_resist" : 0,
"elec_resist" : 0,
"fire_resist" : 0
"fire_resist" : 0,
"density" : 1
},
{
"ident" : "veggy",
@@ -17,9 +19,11 @@
"cut_resist" : 1,
"bash_dmg_verb" : "ripped",
"cut_dmg_verb" : "cut",
"acid_resist" : 0,
"dmg_adj" : ["lightly damaged", "damaged", "very damaged", "thoroughly damaged"],
"acid_resist" : 1,
"elec_resist" : 1,
"fire_resist" : 0
"fire_resist" : 0,
"density" : 4
},
{
"ident" : "flesh",
@@ -28,9 +32,11 @@
"cut_resist" : 1,
"bash_dmg_verb" : "bruised",
"cut_dmg_verb" : "sliced",
"acid_resist" : 0,
"dmg_adj" : ["bruised", "mutilated", "badly mutilated", "thoroughly mutilated"],
"acid_resist" : 1,
"elec_resist" : 1,
"fire_resist" : 0
"fire_resist" : 0,
"density" : 5
},
{
"ident" : "powder",
@@ -39,9 +45,11 @@
"cut_resist" : 1,
"bash_dmg_verb" : "damaged",
"cut_dmg_verb" : "damaged",
"dmg_adj" : ["lightly damaged", "damaged", "very damaged", "thoroughly damaged"],
"acid_resist" : 0,
"elec_resist" : 2,
"fire_resist" : 0
"fire_resist" : 0,
"density" : 1
},
{
"ident" : "hflesh",
@@ -50,9 +58,11 @@
"cut_resist" : 1,
"bash_dmg_verb" : "bruised",
"cut_dmg_verb" : "sliced",
"acid_resist" : 0,
"dmg_adj" : ["bruised", "mutilated", "badly mutilated", "thoroughly mutilated"],
"acid_resist" : 1,
"elec_resist" : 1,
"fire_resist" : 0
"fire_resist" : 0,
"density" : 5
},
{
"ident" : "cotton",
@@ -61,9 +71,11 @@
"cut_resist" : 1,
"bash_dmg_verb" : "ripped",
"cut_dmg_verb" : "cut",
"acid_resist" : 0,
"dmg_adj" : ["ripped", "torn", "shredded", "tattered"],
"acid_resist" : 1,
"elec_resist" : 2,
"fire_resist" : 0
"fire_resist" : 0,
"density" : 3
},
{
"ident" : "wool",
@@ -72,9 +84,11 @@
"cut_resist" : 1,
"bash_dmg_verb" : "torn",
"cut_dmg_verb" : "cut",
"acid_resist" : 0,
"dmg_adj" : ["ripped", "torn", "shredded", "tattered"],
"acid_resist" : 1,
"elec_resist" : 2,
"fire_resist" : 0
"fire_resist" : 0,
"density" : 9
},
{
"ident" : "leather",
@@ -83,9 +97,11 @@
"cut_resist" : 2,
"bash_dmg_verb" : "ripped",
"cut_dmg_verb" : "sliced",
"acid_resist" : 0,
"dmg_adj" : ["scratched", "cut", "shredded", "tattered"],
"acid_resist" : 1,
"elec_resist" : 2,
"fire_resist" : 1
"fire_resist" : 1,
"density" : 6
},
{
"ident" : "kevlar",
@@ -94,9 +110,11 @@
"cut_resist" : 4,
"bash_dmg_verb" : "ripped",
"cut_dmg_verb" : "cut",
"acid_resist" : 0,
"dmg_adj" : ["marked", "dented", "scarred", "broken"],
"acid_resist" : 2,
"elec_resist" : 2,
"fire_resist" : 1
"fire_resist" : 1,
"density" : 10
},
{
"ident" : "fur",
@@ -105,9 +123,11 @@
"cut_resist" : 2,
"bash_dmg_verb" : "ripped",
"cut_dmg_verb" : "sliced",
"acid_resist" : 0,
"dmg_adj" : ["ripped", "torn", "shredded", "tattered"],
"acid_resist" : 1,
"elec_resist" : 2,
"fire_resist" : 0
"fire_resist" : 0,
"density" : 9
},
{
"ident" : "chitin",
@@ -116,9 +136,24 @@
"cut_resist" : 4,
"bash_dmg_verb" : "cracked",
"cut_dmg_verb" : "chipped",
"acid_resist" : 0,
"dmg_adj" : ["scratched", "cut", "cracked", "shattered"],
"acid_resist" : 1,
"elec_resist" : 2,
"fire_resist" : 2
"fire_resist" : 2,
"density" : 10
},
{
"ident" : "bone",
"name" : "Bone",
"bash_resist" : 2,
"cut_resist" : 3,
"bash_dmg_verb" : "cracked",
"cut_dmg_verb" : "chipped",
"dmg_adj" : ["scratched", "cut", "cracked", "shattered"],
"acid_resist" : 1,
"elec_resist" : 2,
"fire_resist" : 4,
"density" : 7
},
{
"ident" : "stone",
@@ -127,9 +162,11 @@
"cut_resist" : 6,
"bash_dmg_verb" : "cracked",
"cut_dmg_verb" : "chipped",
"acid_resist" : 2,
"dmg_adj" : ["scratched", "cut", "cracked", "shattered"],
"acid_resist" : 3,
"elec_resist" : 2,
"fire_resist" : 2
"fire_resist" : 2,
"density" : 17
},
{
"ident" : "paper",
@@ -138,9 +175,11 @@
"cut_resist" : 1,
"bash_dmg_verb" : "ripped",
"cut_dmg_verb" : "cut",
"acid_resist" : 0,
"dmg_adj" : ["ripped", "torn", "shredded", "tattered"],
"acid_resist" : 1,
"elec_resist" : 2,
"fire_resist" : 0
"fire_resist" : 0,
"density" : 4
},
{
"ident" : "wood",
@@ -149,9 +188,11 @@
"cut_resist" : 2,
"bash_dmg_verb" : "splintered",
"cut_dmg_verb" : "gouged",
"acid_resist" : 1,
"dmg_adj" : ["scratched", "chipped", "cracked", "splintered"],
"acid_resist" : 2,
"elec_resist" : 2,
"fire_resist" : 0
"fire_resist" : 0,
"density" : 4
},
{
"ident" : "plastic",
@@ -160,20 +201,24 @@
"cut_resist" : 2,
"bash_dmg_verb" : "dented",
"cut_dmg_verb" : "gouged",
"acid_resist" : 1,
"dmg_adj" : ["scratched", "cut", "cracked", "shattered"],
"acid_resist" : 2,
"elec_resist" : 2,
"fire_resist" : 0
"fire_resist" : 0,
"density" : 8
},
{
"ident" : "glass",
"name" : "Glass",
"bash_resist" : 1,
"bash_resist" : 3,
"cut_resist" : 4,
"bash_dmg_verb" : "cracked",
"cut_dmg_verb" : "scratched",
"acid_resist" : 2,
"dmg_adj" : ["scratched", "cut", "cracked", "shattered"],
"acid_resist" : 3,
"elec_resist" : 2,
"fire_resist" : 2
"fire_resist" : 2,
"density" : 14
},
{
"ident" : "iron",
@@ -182,9 +227,11 @@
"cut_resist" : 4,
"bash_dmg_verb" : "dented",
"cut_dmg_verb" : "scratched",
"dmg_adj" : ["marked", "dented", "smashed", "shattered"],
"acid_resist" : 0,
"elec_resist" : 0,
"fire_resist" : 2
"fire_resist" : 2,
"density" : 52
},
{
"ident" : "steel",
@@ -193,9 +240,11 @@
"cut_resist" : 6,
"bash_dmg_verb" : "dented",
"cut_dmg_verb" : "scratched",
"dmg_adj" : ["marked", "dented", "smashed", "shattered"],
"acid_resist" : 0,
"elec_resist" : 0,
"fire_resist" : 2
"fire_resist" : 2,
"density" : 52
},
{
"ident" : "silver",
@@ -204,8 +253,23 @@
"cut_resist" : 3,
"bash_dmg_verb" : "dented",
"cut_dmg_verb" : "scratched",
"acid_resist" : 0,
"dmg_adj" : ["marked", "dented", "smashed", "shattered"],
"acid_resist" : 2,
"elec_resist" : 0,
"fire_resist" : 2
"fire_resist" : 2,
"density" : 70
},
{
"ident" : "gold",
"name" : "Gold",
"bash_resist" : 1,
"cut_resist" : 1,
"bash_dmg_verb" : "dented",
"cut_dmg_verb" : "scratched",
"dmg_adj" : ["marked", "dented", "smashed", "shattered"],
"acid_resist" : 3,
"elec_resist" : 0,
"fire_resist" : 1,
"density" : 130
}
]
+34 -2
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 },
@@ -66,7 +67,8 @@
"monsters" : [
{ "monster" : "mon_triffid_young", "freq" : 300, "multiplier" : 0 },
{ "monster" : "mon_vinebeast", "freq" : 160, "multiplier" : 10 },
{ "monster" : "mon_triffid_queen", "freq" : 60, "multiplier" : 0 }
{ "monster" : "mon_triffid_queen", "freq" : 60, "multiplier" : 0 },
{ "monster" : "mon_triffid_heart", "freq" : 0, "multiplier" : 0 }
]
},
{
@@ -78,7 +80,8 @@
{ "monster" : "mon_zombie_fungus", "freq" : 300, "multiplier" : 0 },
{ "monster" : "mon_boomer_fungus", "freq" : 30, "multiplier" : 0 },
{ "monster" : "mon_spore", "freq" : 0, "multiplier" : 0 },
{ "monster" : "mon_fungal_wall", "freq" : 0, "multiplier" : 0 }
{ "monster" : "mon_fungal_wall", "freq" : 0, "multiplier" : 0 },
{ "monster" : "mon_fungaloid_queen", "freq" : 0, "multiplier" : 0 }
]
},
@@ -126,6 +129,15 @@
{ "monster" : "mon_skitterbot", "freq" : 245, "multiplier" : 0 }
]
},
{
"name" : "GROUP_ICE_LAB",
"default" : "mon_zombie_scientist",
"monsters" : [
{ "monster" : "mon_blob_small", "freq" : 25, "multiplier" : 0 },
{ "monster" : "mon_manhack", "freq" : 245, "multiplier" : 0 },
{ "monster" : "mon_skitterbot", "freq" : 245, "multiplier" : 0 }
]
},
{
"name" : "GROUP_NETHER",
"default" : "mon_blank",
@@ -185,6 +197,7 @@
{ "monster" : "mon_zombie_grabber", "freq" : 70, "multiplier" : 1 },
{ "monster" : "mon_skeleton", "freq" : 30, "multiplier" : 2 },
{ "monster" : "mon_zombie_smoker", "freq" : 30, "multiplier" : 5 },
{ "monster" : "mon_zombie_swimmer", "freq" : 20, "multiplier" : 2 },
{ "monster" : "mon_zombie_shrieker", "freq" : 30, "multiplier" : 5 },
{ "monster" : "mon_zombie_spitter", "freq" : 30, "multiplier" : 5 },
{ "monster" : "mon_zombie_electric", "freq" : 30, "multiplier" : 5 },
@@ -206,6 +219,7 @@
{ "monster" : "mon_zombie_grabber", "freq" : 70, "multiplier" : 1 },
{ "monster" : "mon_skeleton", "freq" : 30, "multiplier" : 2 },
{ "monster" : "mon_zombie_smoker", "freq" : 30, "multiplier" : 5 },
{ "monster" : "mon_zombie_swimmer", "freq" : 20, "multiplier" : 2 },
{ "monster" : "mon_zombie_shrieker", "freq" : 30, "multiplier" : 5 },
{ "monster" : "mon_zombie_spitter", "freq" : 30, "multiplier" : 5 },
{ "monster" : "mon_zombie_electric", "freq" : 30, "multiplier" : 5 },
@@ -226,6 +240,7 @@
{ "monster" : "mon_zombie_grabber", "freq" : 70, "multiplier" : 1 },
{ "monster" : "mon_skeleton", "freq" : 30, "multiplier" : 2 },
{ "monster" : "mon_zombie_smoker", "freq" : 30, "multiplier" : 5 },
{ "monster" : "mon_zombie_swimmer", "freq" : 20, "multiplier" : 2 },
{ "monster" : "mon_zombie_shrieker", "freq" : 30, "multiplier" : 5 },
{ "monster" : "mon_zombie_spitter", "freq" : 30, "multiplier" : 5 },
{ "monster" : "mon_zombie_electric", "freq" : 30, "multiplier" : 5 },
@@ -246,6 +261,7 @@
{ "monster" : "mon_zombie_grabber", "freq" : 70, "multiplier" : 1 },
{ "monster" : "mon_skeleton", "freq" : 30, "multiplier" : 2 },
{ "monster" : "mon_zombie_smoker", "freq" : 30, "multiplier" : 5 },
{ "monster" : "mon_zombie_swimmer", "freq" : 20, "multiplier" : 2 },
{ "monster" : "mon_zombie_shrieker", "freq" : 30, "multiplier" : 5 },
{ "monster" : "mon_zombie_spitter", "freq" : 30, "multiplier" : 5 },
{ "monster" : "mon_zombie_electric", "freq" : 180, "multiplier" : 5 },
@@ -266,6 +282,7 @@
{ "monster" : "mon_zombie_grabber", "freq" : 70, "multiplier" : 1 },
{ "monster" : "mon_skeleton", "freq" : 30, "multiplier" : 2 },
{ "monster" : "mon_zombie_smoker", "freq" : 30, "multiplier" : 5 },
{ "monster" : "mon_zombie_swimmer", "freq" : 20, "multiplier" : 2 },
{ "monster" : "mon_zombie_shrieker", "freq" : 30, "multiplier" : 5 },
{ "monster" : "mon_zombie_spitter", "freq" : 30, "multiplier" : 5 },
{ "monster" : "mon_zombie_electric", "freq" : 30, "multiplier" : 5 },
@@ -283,5 +300,20 @@
"monsters" : [
{ "monster" : "mon_zombie_soldier", "freq" : 50, "multiplier" : 0 }
]
},
{
"name" : "GROUP_PUBLICWORKERS",
"default" : "mon_zombie_electric",
"monsters" : [
{ "monster" : "mon_zombie_grabber", "freq" : 100, "multiplier" : 1 },
{ "monster" : "mon_zombie_smoker", "freq" : 100, "multiplier" : 5 },
{ "monster" : "mon_zombie_shrieker", "freq" : 100, "multiplier" : 5 },
{ "monster" : "mon_zombie_spitter", "freq" : 100, "multiplier" : 5 },
{ "monster" : "mon_zombie", "freq" : 100, "multiplier" : 5 },
{ "monster" : "mon_zombie_brute", "freq" : 20, "multiplier" : 15 },
{ "monster" : "mon_zombie_hulk", "freq" : 1, "multiplier" : 50 },
{ "monster" : "mon_zombie_master", "freq" : 1, "multiplier" : 25 },
{ "monster" : "mon_crow", "freq" : 1, "multiplier" : 0 }
]
}
]
File diff suppressed because it is too large Load Diff
+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 -58
View File
@@ -1,61 +1,607 @@
[
{
"ident": "unemployed",
"name": "Unemployed",
"description":
"They say you don't have any 'useful skills', but at least your clothes fit\nwell.",
"points": 0,
"items": ["jeans", "tshirt", "sneakers"]
},
{
"description":"They say you don't have any \"useful skills\", but at least your clothes fit well.",
"ident":"unemployed",
"items":[
"jeans",
"tshirt",
"sneakers"
],
"name":"Unemployed",
"points":0
},
{
"description":"You've made and adjusted clothing for some of the biggest names in town. Now, their undead bodies are trying to eat your brains. At least you'll be able to keep your own clothing repaired.",
"ident":"tailor",
"items":[
"polo_shirt",
"blazer",
"pants",
"dress_shoes",
"sewing_kit",
"scissors",
"manual_tailor"
],
"name":"Tailor",
"points":1
},
{
"description":"It was your first day in the lab when the cataclysm hit. You were evacuated with all the civilians, but at least you kept your lab gear.",
"ident":"labtech",
"items":[
"dress_shirt",
"pants",
"boots",
"coat_lab",
"gloves_rubber",
"glasses_safety"
],
"name":"Lab Technician",
"points":1
},
{
"description":"Although you never got your driver's license, you've always loved cars. You start with a wrench, a toolbelt, and some car-related reading material.",
"ident":"mechanic",
"items":[
"tank_top",
"jeans",
"boots",
"chestrig",
"wrench",
"mag_cars",
"manual_mechanics"
],
"name":"Wannabe Mechanic",
"points":2
},
{
"description":"Your flexible outlook on law has ensured your survival, but now what? You start with cargo pants, a hoodie, \"sundries\", and one additional level of melee.",
"ident":"scoundrel",
"items":[
"tank_top",
"hoodie",
"pants_cargo",
"sneakers",
"weed",
"rolling_paper",
"picklocks"
],
"name":"Scoundrel",
"points":2,
"skills":[
{
"level":1,
"name":"melee"
}
]
},
{
"description":"You're a high school drop-out with one goal in mind: to join the military. You finally got in, and now it's hell on Earth in cataclysmic proportions. You start out with some military gear, and a level in survival and firearms.",
"ident":"soldier",
"items":[
"pants_army",
"army_top",
"boots_combat",
"knife_combat",
"binoculars"
],
"name":"Military Recruit",
"points":3,
"skills":[
{
"level":1,
"name":"survival"
},
{
"level":1,
"name":"gun"
}
]
},
{
"description":"You were a pre-med student just starting out in your medical career. You start with some bandages and a level in first aid.",
"ident":"medic",
"items":[
"pants",
"dress_shirt",
"dress_shoes",
"water_clean",
"bandages",
"bandages"
],
"name":"Pre-Med Student",
"points":1,
"skills":[
{
"level":1,
"name":"firstaid"
}
]
},
{
"description":"When it came to getting dirty, the boss knew you could be trusted to get the job done. From performing hits to \"attitude adjustment\", you were the best. Now, at the end of the world, you've finally found your place in society.",
"ident":"thug",
"items":[
"suit",
"bowhat",
"dress_shoes",
"cig",
"mag_porn"
],
"name":"Mafia Enforcer",
"points":2,
"skills":[
{
"level":1,
"name":"unarmed"
}
]
},
{
"description":"When you got the call about the disturbances, you came to the rescue only to realize you were in over your head, and needed rescuing yourself. You start with a level in firearms.",
"ident":"sheriff",
"items":[
"pants_army",
"socks",
"badge_deputy",
"sheriffshirt",
"boots",
"holster"
],
"name":"Local Sheriff",
"points":2,
"skills":[
{
"level":1,
"name":"gun"
}
]
},
{
"addictions":[
{
"intensity":10,
"type":"nicotine"
}
],
"description":"Everyone at work knew you as the person who always had a cigarette or two in hand. Now, you're down to a single pack, and you hope you find more soon. You start out with a strong nicotine addiction, and 10 cigarettes.",
"ident":"smoker",
"items":[
"pants",
"dress_shirt",
"dress_shoes",
"cig",
"ref_lighter"
],
"name":"Chain Smoker",
"points":-1
},
{
"description":"You would have sold your own mother for a dollar, and not felt guilty. In fact, you sold her a broken down beater right before the cataclysm. You start with bartering skills.",
"ident":"salesman",
"items":[
"suit",
"dress_shoes"
],
"name":"Used Car Salesman",
"points":1,
"skills":[
{
"level":1,
"name":"barter"
}
]
},
{
"addictions":[
{
"intensity":20,
"type":"alcohol"
}
],
"description":"You lived on the streets your whole life because you would rather have a bottle of whiskey than a roof over your head. You start with a strong alcohol addiction and a pair of pants.",
"ident":"homeless",
"items":[
"pants",
"whiskey"
],
"name":"Hobo",
"points":-4
},
{
"description":"Ever since you were a child you loved hunting, and you loved the challenge of hunting with a bow even more. You start with a level in archery and survival.",
"ident":"hunter",
"items":[
"army_top",
"boots_steel",
"jeans"
],
"name":"Bow Hunter",
"points":2,
"skills":[
{
"level":1,
"name":"archery"
},
{
"level":1,
"name":"survival"
}
]
},
{
"description":"You used to work at the home depot, and you did a lot of home renovations yourself. You start with steel toe boots, a tool belt, a hammer, and a level in construction.",
"ident":"cworker",
"items":[
"tank_top",
"boots_steel",
"jeans",
"hammer",
"tool_belt"
],
"name":"Handy Man",
"points":2,
"skills":[
{
"level":1,
"name":"carpentry"
}
]
},
{
"description":"You've worked in the woods your whole life, and start with some woodsman gear.",
"ident":"lumberjack",
"items":[
"jeans",
"boots",
"hat_hunting",
"jacket_flannel"
],
"name":"Lumberjack",
"points":1
},
{
"description":"You've traveled for a living, sightseeing here and there, and living off your parents' trust fund. But now they're gone, and the only thing between you and death is the open road and your backpack.",
"ident":"backpacker",
"items":[
"backpack_leather",
"jeans",
"sneakers",
"tshirt",
"socks"
],
"name":"Backpacker",
"points":2
},
{
"description":"You used to work at a fancy fast food joint a week ago, but now you show the meaning of \"fast\" food by running for your life. You start with a level in cooking.",
"ident":"fastfoodcook",
"items":[
"pants",
"sneakers",
"tshirt",
"socks"
],
"name":"Fast Food Cook",
"points":1,
"skills":[
{
"level":1,
"name":"cooking"
}
]
},
{
"description":"You were one of those guys who watched one too many survivalist shows. You start with a backpack, a blazer, and some survival skills.",
"ident":"survivalist",
"items":[
"shorts_cargo",
"boots",
"blazer",
"tshirt",
"socks",
"backpack"
],
"name":"Survivalist",
"points":3,
"skills":[
{
"level":1,
"name":"survival"
}
]
},
{
"description":"You used to work for some small-time business owner doing minor electrical work, and you just so happened to be working on an evac shelter when the cataclysm struck. You start with a level in electronics, and a tool belt.",
"ident":"electrician",
"items":[
"jumpsuit",
"boots",
"tool_belt"
],
"name":"Electrician",
"points":3,
"skills":[
{
"level":1,
"name":"electronics"
}
]
},
{
"description":"Caffeine pills and all-nighters in front of a computer screen have given you some basic hacking skills. You start with a level in computers.",
"ident":"hacker",
"items":[
"pants",
"tshirt",
"sneakers"
],
"name":"Computer Hacker",
"points":1,
"skills":[
{
"level":1,
"name":"computer"
}
]
},
{
"description":"You were a high school student until the teachers literally tried to pick your brains. You start with a backpack and a zombie survival guide.",
"ident":"student",
"items":[
"pants",
"tshirt",
"sneakers",
"ZSG",
"backpack"
],
"name":"Student",
"points":2
},
{
"description":"You were in the middle of a nice shower when the cataclysm struck! You start buck naked.",
"ident":"svictim",
"items":[
{
"ident": "tailor",
"name": "Tailor",
"description":
"You've made and adjusted clothing for some of the biggest names in town.\nNow, their undead bodies are trying to eat your brains. At least you'll be\nable to keep your own clothing repaired.",
"points": 1,
"items": ["polo_shirt", "blazer", "pants", "dress_shoes", "sewing_kit", "scissors", "manual_tailor"]
},
{
"ident": "labtech",
"name": "Lab Technician",
"description":
"It was your first day in the lab when the cataclysm hit. You were evacuated\nwith all the civilians, but at least you kept your lab gear.",
"points": 1,
"items": ["dress_shirt", "pants", "boots", "coat_lab", "gloves_rubber", "glasses_safety"]
},
{
"ident": "mechanic",
"name": "Wannabe Mechanic",
"description":
"Although you never got your driver's license, you've always loved cars.\nYou start with a wrench, a toolbelt, and some car-related reading material.",
"points": 2,
"items": ["tank_top", "jeans", "boots", "beltrig", "wrench", "mag_cars", "manual_mechanics"]
},
{
"ident": "scoundrel",
"name": "Scoundrel",
"description":
"Your flexible outlook on law has ensured your survival, but now what?\nYou start with cargo pants, a hoodie, and \"sundries\".",
"points": 2,
"items": ["tank_top", "hoodie", "pants_cargo", "sneakers", "weed", "picklocks"]
},
{
"ident": "smoker",
"name": "Chain Smoker",
"description":
"Everyone at work knew you as the person who always had a cigarette or two\nin hand. Now, you're down to a single pack, and you hope you find more soon.\nYou start out with a strong nicotine addiction, and 10 cigarettes.",
"points": -1,
"items": ["pants", "dress_shirt", "dress_shoes", "cig"],
"addictions": [
{
"type": "nicotine",
"intensity": 10
}
]
}
],
"name":"Shower Victim",
"points":-1
},
{
"description":"You spent most of your life on a Harley, and it's only natural you spend the rest of it riding one. You start with some biker clothes.",
"ident":"biker",
"items":[
"jeans",
"tank_top",
"chaps_leather",
"boots",
"bandana",
"jacket_leather"
],
"name":"Biker",
"points":2
},
{
"description":"You used to be a ballroom dancer before the cataclysm, and now you use your skills to save your life. You start with a tuxedo and a level in dodging.",
"ident":"dancer",
"items":[
"tux",
"dress_shoes"
],
"name":"Ballroom Dancer",
"points":1,
"skills":[
{
"level":1,
"name":"dodge"
}
]
},
{
"description":"You worked for a small-time security company guarding local businesses. You start with a security outfit and a flashlight.",
"ident":"security",
"items":[
"pants",
"poncho",
"boots_combat",
"flashlight"
],
"name":"Security Guard",
"points":1
},
{
"description":"You've always loved tinkering with stuff. You start with a tool belt, and know a little bit about mechanics, tailoring, electronics, and carpentry.",
"ident":"tinkerer",
"items":[
"pants",
"tshirt",
"tool_belt",
"sneakers"
],
"name":"Tinkerer",
"points":3,
"skills":[
{
"level":1,
"name":"mechanics"
},
{
"level":1,
"name":"tailor"
},
{
"level":1,
"name":"electronics"
},
{
"level":1,
"name":"carpentry"
}
]
},
{
"description":"You've worked the streets since you were a kid, and now you use your street skills to survive. You start with a Glock 19 and some of your \"goods\", but no bullets.",
"ident":"ddealer",
"items":[
"jeans",
"tshirt",
"hoodie",
"sneakers",
"glock_19",
"coke"
],
"name":"Drug Dealer",
"points":1
},
{
"description":"You were about to marry your bride before the cataclysm, now you spend you days searching for her.",
"ident":"groom",
"items":[
"tux",
"dress_shoes"
],
"name":"Groom",
"points":0
},
{
"description":"You chose a bad day for your wedding. You just barely escaped with your wedding dress intact.",
"ident":"bride",
"items":[
"dress_wedding",
"dress_shoes"
],
"name":"Bride",
"points":0
},
{
"ident": "punkgirl",
"name": "Punk Rock Girl",
"description":"The apocalypse has been your psychotic dream come true. Now that the system is dead, it's time to party among the bones of the world!",
"points": 2,
"items": ["skirt", "corset", "trenchcoat", "gloves_fingerless", "boots_combat",
"weed", "rolling_paper", "cig", "mp3", "ref_lighter"]
},
{
"ident": "junkie",
"name": "Junkie",
"description":
"Before the Apocalypse, you turned to Heroin to soothe your many problems.\nNow, your habit is your only comfort and your only drive.",
"points": -1,
"items": ["pants", "dress_shirt", "dress_shoes", "heroin","syringe"],
"addictions": [ { "type": "opiate", "intensity": 10 } ]
},
{
"ident": "chef",
"name": "Chef",
"description":
"Bork bork! Years in the kitchen have left you carrying a prodigious bulk, but you managed to escape the carnage with a butchers knife and only a small collection of stains on your uniform.",
"points": 2,
"items": ["knife_butcher", "hat_chef", "jacket_chef", "pants_checkered", "dress_shoes"],
"skills" : [ { "name" : "cooking", "level" : 3 } ]
},
{
"addictions":[
{
"intensity":20,
"type":"crack"
}
],
"description":"You were on your way to collect your check, when your pimp tried to kill you. You wish that it wasn't a common occurence. You start with a skirt, tank top, a pair of high heels, your stash, and a strong crack addiction.",
"ident":"hooker",
"items":[
"skirt",
"heels",
"tank_top",
"crackpipe",
"crack"
],
"name":"Prostitute",
"points":-4
},
{
"description":"You spent most of your life trapping with your father. Both of you made a decent living off of your catches, and trapping tutorials. You start with a skill in trapping.",
"ident":"trapper",
"items":[
"jeans",
"boots",
"hat_hunting",
"jacket_flannel",
"beartrap"
],
"name":"Trapper",
"points":1,
"skills":[
{
"level":1,
"name":"traps"
}
]
},
{
"description":"You were going through your community college's metalsmithing program when the world ended. You start with a few related tools and some skill in fabrication.",
"ident":"blacksmith",
"items":[
"jeans",
"boots",
"tank_top",
"apron_leather",
"fire_gauntlets",
"hammer"
],
"name":"Blacksmith",
"points":2,
"skills":[
{
"level":1,
"name":"fabrication"
}
]
},
{
"ident": "clown",
"name": "Clown",
"description":"All you ever wanted was to make people laugh. Dropping out of school and performing at kids' parties was a dream come true until the world ended. There's precious few balloon animals in your future now.",
"points": 0,
"items": ["clown_suit", "clownshoes"]
},
{
"ident": "lost_sub",
"name": "Lost Submissive",
"description":"Early in the rush to safety, you were separated from your master by cruel fate. Now you are on your own with nothing to your name but a suit of really kinky black leather. Unfortunately, there's no safewords in the apocalypse.",
"points": 0,
"items": ["bondage_suit", "bondage_mask", "boots"]
},
{
"ident": "senior",
"name": "Senior Citizen",
"description":"You haven't seen this much blood since the war. The whole world's gone crazy! They ate your grandkids! But dagnabbit, you'll make them all pay for what they've done. You start with a cane and your pocketwatch.",
"points": 1,
"items": ["dress_shirt", "pants_checkered", "dress_shoes", "cane", "pocketwatch"]
},
{
"description":"Being a paramedic put you in a bad spot when it all ended. You had to fight your way out of a hospital full of infected to get to the shelter. You start with a few related tools and some skill in first aid.",
"ident":"paramedic",
"items":[
"pants",
"boots",
"polo_shirt",
"gloves_medical",
"1st_aid"
],
"name":"Paramedic",
"points":2,
"skills":[
{
"level":1,
"name":"firstaid"
}
]
},
{
"ident":"cosplay",
"name":"Otaku",
"description":"Late nights with friends watching anime and eating snacks has prepared you for the premier anime convention in the Northeast. It just had to be the day of the apocalypse. At least you were ready in case your costume tore.",
"items":["shorts", "sneakers", "tank_top", "sewing_kit", "mbag", "fur_cat_ears", "fur_cat_tail", "fur_collar", "cheeseburger"],
"points":2
}
]
+13990 -7399
View File
File diff suppressed because it is too large Load Diff
+168 -135
View File
@@ -1,137 +1,170 @@
[
[
"dodge",
"dodge",
"Your skill at dodging, whether it be from an attack, a trap, or a natural\noccurrence. It is also used when attempting to fall gracefully, or in other\nacrobatic feats."
],
[
"melee",
"melee",
"Your skill at hand-to-hand combat, both with and without a weapon. At low\nlevels this merely increases your chance to hit, but at higher levels it also\nincreases the damage done significantly."
],
[
"unarmed",
"unarmed combat",
"Your skill at combat without a weapon. While at low levels, unarmed combat is\na good way to die quickly, those skilled in it can eventually use throws and\ncrushing blows to quickly dispatch enemies."
],
[
"bashing",
"bashing weapons",
"Your skill at combat with weapons that club or bash your enemies. This\nincludes everything from rocks to baseball bats, and even the butt of rifles.\nThis increases damage, and at higher levels will improve your chance to hit."
],
[
"cutting",
"cutting weapons",
"Your skill at combat with weapons that cut or slice your enemies. At first\nthis will simply slightly increase accuracy and damage; later on it will\nhelp you bypass armor and thick hides."
],
[
"stabbing",
"piercing weapons",
"Your skill at combat that involves piercing weapons. This includes spears,\nwhich only have a stabbing attack, and things like knives, which can cut or\npierce. This increases your accuracy and chance of a deadly critical."
],
[
"throw",
"throwing",
"Your skill at throwing items and getting them to go where you want. Increases\nboth accuracy and, at higher levels, range."
],
[
"gun",
"firearms",
"Your general skill at firearms. This increases your accuracy with any gun,\nbut not as much as the skill associated with the gun in question."
],
[
"pistol",
"handguns",
"Your skill with handguns. These have poor accuracy, but generally are fired\nand reloaded faster than other guns, and are good in close quarters."
],
[
"shotgun",
"shotguns",
"Your skill with shotguns. Shot is easy to hit with, and does massive damage,\nbut has short range. Shotguns may also be loaded with slugs, which go further\nand do as much damage, but are not very accurate."
],
[
"smg",
"submachine guns",
"Your skill with submachine guns and machine pistols. Halfway between a pistol\nand an assault rifle, these weapons fire and reload quickly, and may fire in\nbursts, but they are not very accurate."
],
[
"rifle",
"rifles",
"Your skill with rifles, both assault rifles and semi-auto hunting rifles.\nThese have terrific range and accuracy, but are very slow to fire and reload,\nand are not very good in close quarters."
],
[
"archery",
"archery",
"Your skill with all kinds of bows, from crossbows to handmade long bows.\nThese are quiet, but require some amount of strength to use, and are not\nterribly accurate. They can only be deadly in skilled hands."
],
[
"launcher",
"grenade launcher",
"Your skill with grenade launchers, whether standalone or as a rifle mod.\nThese launchers fire a variety of 40mm grenades with different uses,\nbut they and their rounds are hard to find."
],
[
"computer",
"computers",
"Your skill with computers, both in terms of legitimate use, and hacking. This\nwill help you use complex systems, and bypass their security."
],
[
"mechanics",
"mechanics",
"Your skill with repairs to mechanical systems, and the crafting of many items\nthat use complex parts, but are not electronics."
],
[
"electronics",
"electronics",
"Your skill with repairs to electrical systems, and the crafting of many items\nthat use electrical parts."
],
[
"cooking",
"cooking",
"Your skill in combining food ingredients to make other, tastier food items.\nThis may also be used in mixing chemicals and other more esoteric tasks."
],
[
"carpentry",
"construction",
"Your general knowledge in construction. This is used primarily when building\nterrain, via the * screen."
],
[
"survival",
"survival",
"Your skill in wilderness survival. This helps you butcher meat from a corpse\nand craft various basic survival items. High levels may allow you to remove\npoison from tainted meat. Also used for skinning corpses to acquire pelts."
],
[
"traps",
"traps",
"Your skill at setting and disarming traps safely and effectively. Note that\nthis does not help you detect traps, or avoid their effects if you activate\nthem."
],
[
"tailor",
"tailoring",
"Your skill at repairing clothing, and at higher levels, creating clothing\nfrom basic materials. Generally a sewing kit is needed. Also applies to\nother methods of clothing repair and textile crafting."
],
[
"firstaid",
"first aid",
"Your skill at emergency medical treatment, such as that from first aid kits\nand bandages. High levels of this skill may help heal more HP. Some drugs\nmay be more effective as well."
],
[
"speech",
"speech",
"Your skill at talking to people, convincing them of things, lying, and many\nothers. Works best in conjunction with a high intelligence."
],
[
"barter",
"barter",
"Your skill at getting a good deal when trading with others. Very high levels\nmight even see you getting freebies."
],
[
"swimming",
"swimming",
"Your skill at swimming. This affects speed, your ability to swim while\nwearing clothes or carrying weights, and in-water combat."
],
[
"driving",
"driving",
"Your skill at driving. This affects how well you can control a vehicle,\nas well as the penalty of shooting while driving."
]
[
"barter",
"bartering",
"Your skill in bargaining, haggling, and trading with others. Higher levels increase the odds of getting the better end of a deal, and might even see you convincing others to give you free stuff.",
[]
],
[
"computer",
"computers",
"Your skill in accessing and manipulating computers. Higher levels can allow a user to navigate complex software systems and even bypass their security.",
[]
],
[
"carpentry",
"construction",
"Your general competence in building construction. This governs the complexity of structures that can be built, and the time required to build them.",
[]
],
[
"cooking",
"cooking",
"Your skill in combining food ingredients to make other, tastier food items. It may also be used in certain chemical mixtures and other, more esoteric tasks.",
[]
],
[
"driving",
"driving",
"Your skill in operating and steering a vehicle in motion. A higher level allows greater control over vehicles at higher speeds, and reduces the penalty of shooting while driving.",
[]
],
[
"electronics",
"electronics",
"Your skill in dealing with electrical systems, used in the craft and repair of objects with electrical components. This skill is an important part of installing and managing bionic implants.",
[]
],
[
"fabrication",
"fabrication",
"Your skill in working with raw materials and shaping them into useful objects. This skill plays an important role in the crafting of many objects.",
[]
],
[
"firstaid",
"first aid",
"Your skill in effecting emergency medical treatment. Higher levels allow better use of medicines and items like bandages and first aid kits, and reduce the failure and complication rates of medical procedures.",
[]
],
[
"mechanics",
"mechanics",
"Your skill in engineering, maintaining and repairing vehicles and other mechanical systems. This skill covers the craft of items with complex parts, and plays a role in the installation of bionic equipment.",
[]
],
[
"speech",
"speaking",
"Your skill in speaking to other people. Covers ability in boasting, flattery, threats, persuasion, lies, and other facets of interpersonal communication. Works best in conjunction with a high level of intelligence.",
[]
],
[
"survival",
"survival",
"Your skill in surviving the wilderness, and in crafting various basic survival items. This also covers your ability to skin and butcher animals for meat and hides.",
[]
],
[
"swimming",
"swimming",
"Your ability to stay afloat and move around in bodies of water. This skill keeps you from drowning, affects your combat effectiveness and speed in deep water, and determines the detriment of swimming with heavier gear.",
[]
],
[
"tailor",
"tailoring",
"Your skill in the craft and repair of clothing, bags, blankets and other textiles. Affects knitting, sewing, stitching, weaving, and nearly anything else involving a needle and thread.",
[]
],
[
"traps",
"trapping",
"Your skill in setting and disarming traps safely and effectively. This skill does not affect the detection of hidden traps, or the evasion of traps that are triggered.",
[]
],
[
"archery",
"archery",
"Your skill in using bow weapons, from hand-carved self bows to complex hunting crossbows. Quiet and effective, they require strength of body and sight to wield, and are not terribly accurate over a long distance.",
[]
],
[
"bashing",
"bashing weapons",
"Your skill in fighting with blunt weaponry, from rocks and sticks to baseball bats and the butts of rifles. Skill increases damage, and higher levels will improve the accuracy of an attack.",
[]
],
[
"cutting",
"cutting weapons",
"Your skill in fighting with weaponry designed to cut, hack and slash an opponent. Lower levels of skill increase accuracy and damage, while higher levels will help to bypass heavy armor and thick hides.",
[]
],
[
"dodge",
"dodging",
"Your ability to dodge an oncoming threat, be it an enemy's attack, a triggered trap, or a falling rock. This skill is also used in attempts to fall gracefully, and for other acrobatic feats.",
[]
],
[
"gun",
"firearms",
"Your overall skill in using firearms. With higher levels, this general experience increases accuracy with any gun, but is secondary to practice with the type of gun in question.",
[]
],
[
"launcher",
"launchers",
"Your skill in using heavy weapons like rocket, grenade or missile launchers. These weapons have a variety of applications and may carry immense destructive power, but they are cumbersome and hard to manage.",
[]
],
[
"melee",
"melee",
"Your skill and finesse in personal combat, both with and without a weapon. Higher levels can significantly increase the accuracy and effectiveness of your physical attacks.",
[]
],
[
"stabbing",
"piercing weapons",
"Your skill in fighting with knives, spears and other such stabbing implements. Skill increases attack accuracy as well as the chance of inflicting a deadly and critical blow.",
[]
],
[
"throw",
"throwing",
"Your skill in throwing objects over a distance. Skill increases accuracy, and at higher levels, the range of a throw.",
[]
],
[
"unarmed",
"unarmed combat",
"Your skill in hand-to-hand fighting. For the unskilled, it's a good way to get hurt, but those with enough practice can perform special blows and techniques to quickly dispatch enemies.",
[]
],
[
"pistol",
"handguns",
"Handguns have poor accuracy compared to rifles, but are usually quick to fire and reload faster than other guns. They are very effective at close quarters, though unsuited for long range engagement.",
["gun_type"]
],
[
"rifle",
"rifles",
"Rifles have terrific range and accuracy compared to other firearms, but may be slow to fire and reload, and can prove difficult to use in close quarters. Fully automatic rifles can fire rapidly, but are harder to handle properly.",
["gun_type"]
],
[
"shotgun",
"shotguns",
"Shotguns are easy to shoot and can inflict massive damage, but their effectiveness and accuracy decline rapidly with range. Slugs can be loaded into shotguns to provide greater range, though they are somewhat inaccurate.",
["gun_type"]
],
[
"smg",
"submachine guns",
"Comprised of an automatic rifle carbine designed to fire a pistol cartridge, submachine guns can reload and fire quickly, sometimes in bursts, but they are relatively inaccurate and may be prone to mechanical failures.",
["gun_type"]
]
]
+17 -1
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.\""
}
]
}

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