Compare commits

...

2691 Commits

Author SHA1 Message Date
Kevin Granade fe75ac9bd6 Final changelog, credits, and motd updates for 0.9 release. 2013-11-14 22:05:42 -06:00
Tommy acdfe1c31e Don't translate itype_id. 2013-11-14 19:17:34 -06:00
Kevin Granade 9de0c479fe Merge final translation updates for 0.9. 2013-11-14 19:14:30 -06:00
Kevin Granade ef640ef4b5 Merge halloween json fix. 2013-11-14 19:11:07 -06:00
Tommy 06796a5e5a Prevents tactical tonfa from disappearing when used to shock an enemy.
-- removed string change for 0.9 application
2013-11-15 08:40:19 +13:00
Tommy 601a7787ea Merge launchpad translations. 2013-11-14 20:24:23 +13:00
Tommy 660496380c Revert "Death to /n"
This reverts commit 7c0ce1bf4c.
2013-11-14 20:23:36 +13:00
Tommy 3103885a76 Revert "Fixes display name of simple flamethrower."
This reverts commit dfbab48452.
2013-11-14 20:23:27 +13:00
Tommy ab0a01b669 Revert "Prevents tactical tonfa from disappearing when used to shock an enemy."
This reverts commit afd78793c1.
2013-11-14 20:23:17 +13:00
Tommy 4541ff20fb Revert "Driver's handbook"
This reverts commit c523007a36.
2013-11-14 20:23:09 +13:00
Tommy 1ff2c8a650 Revert "Fun With C++ Syntax"
This reverts commit 3a9680e535.
2013-11-14 20:22:54 +13:00
Tommy 36c9364ef5 Fix infinite loop when chopping tree into planks with full inventory. 2013-11-13 20:15:48 -06:00
Ian Strachan 54ca4f32e7 Prevent parts being installed on top of spikes/blades. 2013-11-13 20:15:48 -06:00
Thomas Kirsten a6a2685609 fix none-item on wielding nothing 2013-11-13 20:15:48 -06:00
Thomas Kirsten c5cc6b17d5 fix misspelled monster group GROUP_ice_lab 2013-11-13 20:15:48 -06:00
KA101 3a9680e535 Fun With C++ Syntax 2013-11-13 20:15:48 -06:00
KA101 c523007a36 Driver's handbook 2013-11-13 20:15:48 -06:00
Ian Strachan f07d7d41b0 Fix the "You need a wrench and jack" message not appearing when doing a tire change. 2013-11-13 20:15:47 -06:00
Rivet-the-Zombie d7e749644d Provides proper functionality to stylish sunglasses. 2013-11-13 20:15:47 -06:00
freezerbunny afd78793c1 Prevents tactical tonfa from disappearing when used to shock an enemy. 2013-11-13 20:15:47 -06:00
Tommy a8c868b0a3 Fix halloween_special.json json. 2013-11-13 20:11:02 -06:00
Rivet-the-Zombie dfbab48452 Fixes display name of simple flamethrower. 2013-11-13 20:11:02 -06:00
stuart 2d8731b458 fixed issue 4233: lumberjack should start with an axe 2013-11-13 20:11:02 -06:00
Rivet-the-Zombie c48688f1a9 Fixes typo in plant food recipe. 2013-11-13 20:11:01 -06:00
Rivet-the-Zombie ada478bdea Fixes weird -24 stim effect of cooked fruit things. 2013-11-13 20:11:01 -06:00
KA101 7c0ce1bf4c Death to /n 2013-11-13 20:11:01 -06:00
GlyphGryph d8797d09de Merge branch '0.9' of https://github.com/CleverRaven/Cataclysm-DDA into 0.9 2013-11-13 19:54:14 -05:00
freezerbunny 96d2f4e5ba Return absolute value instead.
Signed-off-by: Tommy <yobbobanana@gmx.com>
2013-11-13 19:53:45 -05:00
Tommy cbe90678d7 Fix halloween_special.json json. 2013-11-14 09:47:18 +13:00
atomicdryad f75c0f8a9c Merge pull request #4327 from yobbobanana/mergemergefix
Fix vehicle teleport bug.
2013-11-13 12:30:56 -08:00
freezerbunny 94a28f7faf Return absolute value instead.
Signed-off-by: Tommy <yobbobanana@gmx.com>
2013-11-14 09:28:15 +13:00
Octav Sandulescu 9300145383 Increment makefile version 2013-11-12 16:24:23 +00:00
freezerbunny f3aecb6bc2 Change version text to 0.9 2013-11-12 16:24:18 +00:00
Kevin Granade f25cc1ea54 Merge item flag fixes. 2013-11-09 21:02:45 -06:00
freezerbunny 32a574cdf5 Added "WATCH" flag to PDA. 2013-11-09 07:35:12 +00:00
GlyphGryph 944f93236e Generated .pot file 2013-11-08 22:25:02 -05:00
Kevin Granade d3a9697a9b Move firing mode onto same line as range display. 2013-11-08 20:42:07 -06:00
Kevin Granade 2b07044b45 Merge multitudinous bugfixes. 2013-11-08 20:40:01 -06:00
atomicdryad 2a5534de34 Merge pull request #4228 from GlyphGryph/pot_generation
Final fixes, json fixing and .pot generation.
2013-11-08 18:37:22 -08:00
GlyphGryph f6c39a8b9c Final fixes, json fixing and .pot generation. 2013-11-08 21:25:47 -05:00
Rivet-the-Zombie 468e572c8b Rewords sword bayonet description to reflect damage type. 2013-11-08 20:09:57 -06:00
Rivet-the-Zombie 1150768868 Fixes recipe category for metal rail ammo. 2013-11-08 19:54:41 -06:00
Rivet-the-Zombie f4ccef568b Fixes battery redundancy. 2013-11-08 11:05:02 -06:00
Rivet-the-Zombie c9879c99b1 Fixes steel chain's difficulty.
Because 9 was way too high.
2013-11-08 02:55:13 -06:00
Rivet-the-Zombie ca4f956553 Fixes some recipes that still lacked the CUT tool flag and removes secondary skills in a few places where they made no sense. 2013-11-08 02:11:17 -06:00
Ian Strachan 8110f3cbfa Underwater monsters you can't see are 'something' in messages instead of being named. 2013-11-08 00:51:43 -05:00
Ian Strachan c9aa7765fc Underwater monsters are now only visible if you are submerged. 2013-11-08 00:40:26 -05:00
Tommy 38dc65c4ec Display firing mode in firing window. 2013-11-08 16:49:33 +13:00
Kevin Granade 8a414e433b Merge even more content.
Conflicts:
	data/json/recipes.json
2013-11-07 21:20:56 -06:00
Kevin Granade 9570318088 Merge UI cleanup. 2013-11-07 20:56:56 -06:00
Kevin Granade 646f277af2 Merge More Mutations.
Conflicts:
	data/json/dreams.json
	data/json/item_groups.json
	data/json/items/books.json
	data/json/mutations.json
	data/json/recipes.json
	iuse.cpp
2013-11-07 20:25:09 -06:00
Kevin Granade aa4a8fbbfa Merge Mutation Madness.
Conflicts:
	data/json/mutations.json
	iuse.cpp
2013-11-07 19:33:05 -06:00
Kevin Granade 7c0d731958 Merge martial arts polishing. 2013-11-07 19:08:11 -06:00
Kevin Granade 2452b4c3ef Merge several json fixes.
Conflicts:
	data/json/item_groups.json
2013-11-07 18:42:06 -06:00
Rivet-the-Zombie f5f6eabcf8 Secondary skills fix. 2013-11-07 18:38:21 -06:00
Tommy ef70046421 Tidy style string also, as it was right there. 2013-11-08 13:11:57 +13:00
Tommy f3b57c34a9 Move weapon mode/mod display to after weapon name. 2013-11-08 13:01:47 +13:00
Tommy 951d3cfd73 Pop up the martial art description after selection and before query. 2013-11-08 12:42:59 +13:00
Rivet-the-Zombie e332c20d9b Adds recipe to draw wire at the forge. 2013-11-07 17:26:26 -06:00
Rivet-the-Zombie a5a92b6b95 Techniques. 2013-11-07 17:23:34 -06:00
MisterFelixFox 5efeb0a160 Pretend to be a cavemen with simple loincloth additions.
Adds loincloth, fur loincloth, and leather loincloth items. Made with tailoring 0 from simple materials.
2013-11-07 15:05:27 -05:00
Ian Strachan 715bb869eb Add a period. 2013-11-07 13:49:24 -05:00
Ian Strachan f8162cff63 Fix tiny typo. 2013-11-07 13:48:06 -05:00
Rivet-the-Zombie b28cd6a016 Boop. 2013-11-07 12:25:47 -06:00
Rivet-the-Zombie 4eb61984f7 Time adjustment.
Yeah, that was an oversight.
2013-11-07 12:18:37 -06:00
Rivet-the-Zombie db3e70bf93 NON_STUCK flags! 2013-11-07 12:15:31 -06:00
John Candlebury 9c02398aca Restores some zombie stats to original values 2013-11-07 12:13:12 -06:00
atomicdryad d3b2ac14cd Merge pull request #4181 from kevingranade/prevent-funnel-div0
Bail out of add_rain_to_container() if we don't actually have rain to add.
2013-11-07 09:17:18 -08:00
Kevin Granade 3a80e12ab5 Merge pull request #4197 from yobbobanana/l10n
Merge launchpad translations
2013-11-07 08:11:51 -08:00
Voker57 c1a3f52e5a Toolset for more crafting 2013-11-07 11:27:56 +04:00
Rivet-the-Zombie a9348928de Fixes sword bayonet attack flag.
Because it really should have a very low chance of getting stuck in your
target.
2013-11-07 01:27:05 -06:00
Rivet-the-Zombie 56f4f34fd6 Adds ability to disassemble rags into thread using a cutting tool. 2013-11-07 01:17:53 -06:00
Voker57 88362c8723 Cooking deluxe cooked oatmeal with dehydrated fruit 2013-11-07 10:41:16 +04:00
Rivet-the-Zombie b3b79c5504 Silly old comma. 2013-11-06 23:30:59 -06:00
Rivet-the-Zombie b35bddd0c8 Properly removes invalid item spawn. 2013-11-06 23:27:01 -06:00
Kevin Granade eebf807ac2 Merge missing item spawns. 2013-11-06 23:22:51 -06:00
Kevin Granade 6f69480e02 Merge gobag. 2013-11-06 23:22:13 -06:00
Kevin Granade 27de7610dc Merge rebar railgun.
Conflicts:
	data/json/items/ammo.json
	itypedef.cpp
2013-11-06 23:14:36 -06:00
Kevin Granade e67d6bc713 Merge early game salvageable gear.
Conflicts:
	data/json/recipes.json
2013-11-06 23:05:37 -06:00
Kevin Granade 816b0f69a9 Merge cowboy hats.
Conflicts:
	data/json/item_groups.json
2013-11-06 23:00:52 -06:00
Kevin Granade 8a1bea5d56 Merge airhorn.
Conflicts:
	data/json/item_groups.json
	data/json/items/tools.json
2013-11-06 22:57:16 -06:00
Rivet-the-Zombie e0395f71f6 Adds missing item spawns for pet foods and dog whistle. 2013-11-06 21:24:31 -06:00
Tommy dc51e9105b And again! 2013-11-07 14:54:50 +13:00
Tommy 8781a5849b Merge branch 'master' into l10n 2013-11-07 14:53:34 +13:00
Kevin Granade 703f682396 Little iuse cleanup. 2013-11-06 19:52:20 -06:00
Tommy 3bf9f8def9 Merge Launchpad translations. 2013-11-07 14:50:49 +13:00
Tommy 2c166db777 Add a translator comment for _("F") and update the .pot file. 2013-11-07 14:49:33 +13:00
Kevin Granade 14e7644ce1 Merge huge amount of new content. 2013-11-06 19:40:01 -06:00
Rivet-the-Zombie b0426eb1f9 Adds medical mutagen.
A mutagen specifically designed to augment medical treatments. Provides
some cool benefits, but comes with the risk of some very nasty side
effects.
2013-11-06 19:18:34 -06:00
Kevin Granade cc5b26a0e8 Merge extraneous % removal, firestarting fire extinguisher fix, and folding string fix. 2013-11-06 18:32:52 -06:00
Rivet-the-Zombie 5099fb304d Makes cats tamable using cat food, adds cat food recipe. 2013-11-06 17:46:33 -06:00
Tommy 14f5082755 Use fold_and_print for defense caravan item info. 2013-11-07 11:33:03 +13:00
KA101 1288b7c2c3 Should be "good"
...inasmuch as the LARGEST RECIPE IN CATA could be good.  This be a
Hack.  But hopefully it's a good starting point.
2013-11-06 02:14:08 -05:00
KA101 f23d03e37b Go-bag
Item and recipe.  (You'll want to disassemble it.  Packing, not so much,
but I suppose you could keep it in your vehicle or something.)
2013-11-06 01:56:54 -05:00
Vlasov Vitaly 696c95f8cf more double percent fixes 2013-11-06 09:38:32 +04:00
KA101 a6cba502ae Trench knife cleanup
Fixed some redundant articles and unclear wording.  ;-)
2013-11-06 00:23:07 -05:00
Greg Beck 9b50bb9320 Stop fire extinguishers from starting new fires. 2013-11-06 00:13:23 -05:00
Rivet-the-Zombie 62753979f2 Merge branch 'Chewing-tobacco' of https://github.com/Rivet-the-Zombie/Cataclysm-DDA into Chewing-tobacco 2013-11-05 23:03:00 -06:00
Rivet-the-Zombie 608784a4fa Fixed! 2013-11-05 23:02:55 -06:00
Rivet-the-Zombie c22c818da1 Fixes weird chewing gum message - 'you eat your chewing gum' 2013-11-05 23:00:38 -06:00
Rivet-the-Zombie 6b57af3d53 Merge branch 'Chewing-tobacco' of https://github.com/Rivet-the-Zombie/Cataclysm-DDA into Chewing-tobacco 2013-11-05 22:57:32 -06:00
Rivet-the-Zombie abdf8d8cd2 Caffeine gum. 2013-11-05 22:57:24 -06:00
KA101 c33ac261bf KF Techniques
OK, that should be all of 'em.
2013-11-05 23:24:43 -05:00
Kevin Granade 8edd84c52a Marge batch of typo fixes. 2013-11-05 22:19:23 -06:00
Kevin Granade a3eb3d65bf Fix typos in changelog. 2013-11-05 21:11:37 -06:00
KA101 83c80acd05 Another mixed drink
This has nothing to do with Pthalocy.  Nope.  Not a thing.
2013-11-05 22:07:48 -05:00
Kevin Granade 7c041b943c Bail out of add_rain_to_container() if we don't actually have rain to add. Fixes 4175. 2013-11-05 21:05:38 -06:00
KA101 15b256279d Deadlier Venoms
Well, more so than they would have been.  Right now Lizard's crap but
all the others ought to have some redeeming features.
2013-11-05 21:55:36 -05:00
Kevin Granade ba0de64cc2 Fix syntax in new martial arts entries. 2013-11-05 20:21:22 -06:00
Kevin Granade 8eec61e49e build fix and allow arm block OR weapon block. 2013-11-05 20:21:04 -06:00
Rivet-the-Zombie c427ea565f Missing item spawns. 2013-11-05 20:18:26 -06:00
KA101 737df4d5c8 Semicolon fix
Thanks, Kevin.  I should have guessed.
2013-11-05 20:58:47 -05:00
KA101 f4ebac453e Simplify counters
Since the JSONs don't seem to support custom counters, went to generic
and am hoping for the best.
2013-11-05 20:50:12 -05:00
Kevin Granade fa1998b064 Merge addition of old martial arts in new system. 2013-11-05 19:45:33 -06:00
KA101 c2e6d0aa6f All styles covered.
Well, kinda-sorta.  Most of the Venoms are heavily nerfed at this point.
Not sure how to give them back their specials.
2013-11-05 20:28:13 -05:00
Rivet-the-Zombie dde776a3e6 Caffeinated gum. 2013-11-05 19:04:06 -06:00
Kevin Granade 22562024f3 Merge continuing bugfixes. 2013-11-05 18:45:53 -06:00
KA101 4096202c7f Centipede
Here's hoping that's what "rapid" was supposed to do...
2013-11-05 19:05:48 -05:00
Christian Buskirk c009f7e8df Make marloss berries slightly more rare 2013-11-05 16:59:17 -07:00
KA101 4fe0d7fd5c spacing again 2013-11-05 18:43:06 -05:00
KA101 bc19cc38a1 Shaolin JSONs
OK, now for the Venoms and the connections.
2013-11-05 18:37:01 -05:00
Rivet-the-Zombie dc22070abb Fixes weird 'you eat your gum' type messages. 2013-11-05 17:11:45 -06:00
Rivet-the-Zombie 91babf778d Adds chewing tobacco. 2013-11-05 16:54:45 -06:00
Christian Buskirk ba778ed692 Add leap short-circuit 2013-11-05 15:25:09 -07:00
Christian Buskirk 68f0f3d19d Fix leap potential uninitialized 2013-11-05 15:20:03 -07:00
Christian Buskirk 180d226a9e Make fleeing use ::plan instead of wandering 2013-11-05 15:19:28 -07:00
Christian Buskirk 3e8a095770 Move monster vision range into it's own function 2013-11-05 15:18:11 -07:00
illi-kun a5763f9ee1 start printing MOTD & Credits from line 6
16 lines of MOTD currently doesn't fit in proper place and touches menu.
2013-11-05 11:41:50 -08:00
Rivet-the-Zombie c2c6bd2dda Fixes low skill message for adding gunmods. 2013-11-05 12:58:00 -06:00
Rivet-the-Zombie ecef53c208 Missing item flag. 2013-11-05 12:56:47 -06:00
Rivet-the-Zombie 3e3add9561 Another. 2013-11-05 12:51:42 -06:00
Rivet-the-Zombie fb84b85a5c Stats typo.
Matches other survivor gear now.
2013-11-05 12:35:22 -06:00
Rivet-the-Zombie 4e384ca7d1 Another book typo. 2013-11-05 12:33:47 -06:00
illi-kun f0009807f2 astyle + delete commented out code 2013-11-05 22:10:54 +04:00
Rivet-the-Zombie f11c20abec Fixes more monster typos. 2013-11-05 11:45:25 -06:00
GlyphGryph 2f63c7b679 Merge pull request #4147 from Rivet-the-Zombie/Typo-fix
Fixes simple typos in monster and book descriptions.
2013-11-05 07:59:00 -08:00
Axujen 5245d45ab3 Change Load/Help hotkeys to a/e respectively.
Addresses issue #233
2013-11-05 15:34:42 +00:00
Axujen 5ade88040b Fix throw range calcuation for item stacks
When calculating the throwing range for a stack of items, the whole
stack is taken into consideration, but we only need to throw one item.
This commit fixes that by making the range calcuation use only a single item.
2013-11-05 15:08:25 +00:00
Vlasov Vitaly 39684006ab Fix double percent sign in newchar 2013-11-05 16:57:01 +04:00
KA101 355e32b041 Death to extra space
Not sure why that didn't work, but the extra space probably didn't help.
2013-11-05 03:17:38 -05:00
KA101 efedb4834a 10-Gallon Hat
This is the Bigger and Fancier version.  Modeled it as Wool since Fur
Felt isn't in-game.  Lemme know if you've got any better ideas.
2013-11-05 03:10:47 -05:00
Voker57 27180dbbb6 Greatly reduced canister crafting time 2013-11-05 11:56:35 +04:00
Greg Beck 0370a638cb Fixes misspelling in books.json (crashes game on reading) 2013-11-05 02:56:21 -05:00
KA101 710541c9e0 Header support
Thanks, yobbo & i2amroy.
2013-11-05 02:30:20 -05:00
Rivet-the-Zombie d5c6f6a211 Stylish sunglasses. 2013-11-05 00:14:55 -06:00
Rivet-the-Zombie c509cffc0b Adds lowtop tennis shoes. 2013-11-05 00:08:15 -06:00
KA101 5f7384ce1f i2amroy's fix
Yeah, you could have typed that in yourself quicker and easier.  But
thanks for the lesson.  Much better than that library book.
2013-11-05 01:07:26 -05:00
Rivet-the-Zombie 98554330d6 Adds a sundress.
For those really hot days.
2013-11-04 23:50:34 -06:00
Kevin Granade 8bf26aa586 Bring changelog up to date. 2013-11-04 23:44:09 -06:00
GalenEvil 350c14b7c7 Merge branch 'pr/4149' 2013-11-04 23:29:27 -06:00
Rivet-the-Zombie de3f96ef82 Adds craftable ferromagnetic rail rifle. 2013-11-04 22:51:50 -06:00
KA101 7c442c2b26 WBLOCK support
As Kevin noted.
2013-11-04 23:41:19 -05:00
KA101 880c14376c Lizards now Cold-Blooded
Done!
2013-11-04 23:35:25 -05:00
KA101 568a1b7a36 WIP
DONT PULL THIS ONE
2013-11-04 23:33:29 -05:00
Kevin Granade a7c5b92c8b Silence a bunch of use-before-init warnings, some of which look actually dangerous. 2013-11-04 22:17:59 -06:00
Kevin Granade e941882a42 Merge suplicate zombear removal and fix for tile switching. 2013-11-04 21:56:15 -06:00
GalenEvil 33ef4b75f9 force check to compare strings instead of allowing it to use whatever the cOpt equivalence defaults to. 2013-11-04 21:38:45 -06:00
Kevin Granade 7332acd9ef Silence a bunch of use-before-init warnings, some of which look actually dangerous. 2013-11-04 21:29:00 -06:00
Rivet-the-Zombie 1688a184d4 Removes duplicated zombear entry. 2013-11-04 21:10:44 -06:00
KA101 ba20940301 ZQ & Crane: Understanding check
Now, I don't know where the tech-definitions are supposed to happen, nor
whether what I did for Crane makes sense.

Guidance will be appreciated.  Help me help you!
2013-11-04 22:00:12 -05:00
Rivet-the-Zombie 0e73e56737 Book typo. 2013-11-04 20:49:33 -06:00
Rivet-the-Zombie 24aea6f20c Fixes simple typo in monster description. 2013-11-04 20:48:48 -06:00
KA101 0cf21ee20f re-enable weapon blocking??
Not sure whether Nature's Witness was onto something but I was right
there and could make the change.  Unless swwu tracks arm blocking and
weapon-blocking together, I'm not sure why arm-blocking would be
necessary.

(Yes, I know this is the same methodology used by Pet-A-Kitten.  I don't
claim to be a good coder.  ;-) )
2013-11-04 21:29:29 -05:00
GlyphGryph d883d6247b Merge pull request #4145 from kevingranade/fix-explosion-crash
Remove item pointer dereference after item explosion.
2013-11-04 17:53:07 -08:00
Kevin Granade 91e4a5ce37 MErge content tweaks that don't invalidate any translations. 2013-11-04 19:10:25 -06:00
Kevin Granade d2bcf265cf Merge continuing fixes. 2013-11-04 18:59:16 -06:00
Kevin Granade d97ace60cc Remove item pointer dereference after item explosion, new items generated in tile due to destroy calls could invalidate the item pointer. 2013-11-04 18:38:38 -06:00
John-Candlebury 7781e3c833 Starter weapons 2013-11-04 16:02:34 -06:00
illi-kun cc39df8419 improved visualization of "new char" menu 2013-11-05 00:30:01 +04:00
Tommy ffe183a9cf Return current position for monster::move_target() if no plans. 2013-11-05 07:27:36 +13:00
Rivet-the-Zombie ced08dcd27 Tweak. 2013-11-04 09:41:31 -06:00
Rivet-the-Zombie c751411d86 Tweak. 2013-11-04 09:39:01 -06:00
illi-kun 5f3f47ce23 add sledgehammer 2013-11-04 03:08:15 -08:00
illi-kun 245b6ee3fd update loot in fire truck 2013-11-04 02:59:07 -08:00
Anuradha Dissanayake 4e11cc0b34 Correctly use the "initial" weather, when loading a save that hasn't had the first weather switch yet. 2013-11-04 23:15:30 +13:00
illi-kun 0dfdbf743a Fixes #4072 2013-11-04 00:59:47 -08:00
KA101 b722c1325d MYO Cowboy Hat
Recipe.
2013-11-04 03:48:00 -05:00
KA101 6ae155045f Upgraded the hat
Still not "fancy", but better material and warmer.  (Thus, heavier.)
2013-11-04 03:43:35 -05:00
KA101 e929194b90 Spawn locations
Marginally more common than the top and bowler hats, but not Fancy.
2013-11-04 03:36:52 -05:00
KA101 73ffb5da88 Cowboy hat.
As requested by Mdnthrvst on IRC.
2013-11-04 03:29:09 -05:00
KA101 1dc3f5da73 Chimera iuse
And that should do it.
2013-11-04 02:51:12 -05:00
KA101 1f529ae47d Chimera recipe
Takes longer and more power, but 4 components rather than 6.
2013-11-04 02:27:23 -05:00
KA101 5ea258c32a Chimera item-grouping
One thing I'd really like to do is get the item groups for Lab
chemistry-rooms and School chem-rooms split.  Or have another group for
Lab dorms.  Something.

Researchers absent-mindedly leaving these in the fridge is only so
funny, but I much prefer that to having classified, bleeding-edge-new
chemical formulae and protocols for their show up in a school building.
2013-11-04 02:12:59 -05:00
KA101 87a3ac4c48 Chimera dreams
Breaking up the syntax works a bit better, IMO.  Cf. the Schizophrenia
trait.
2013-11-04 01:57:54 -05:00
KA101 c8f574ae15 Chimera MutCat
Helps if there's an actual category.
2013-11-04 01:45:07 -05:00
KA101 9e2b09fa14 Chimera lab note
Special thanks to Cepheid on the IRC for volunteering to be the lead
researcher here.  It's surprisingly difficult to find people willing to
take credit for wildly dangerous and inhumane mutagens!
2013-11-04 01:25:01 -05:00
KA101 0f5c0496b2 Chimera recipe-item
Yeah, I'm trying to be Creepy here.  Lemme know if you'd rather I not
create lore for these things.
2013-11-04 00:06:40 -05:00
KA101 2c3ca2d159 Chimera mutagen
Same idea as Alpha, now with files individually committed so hopefully
it's easier to sort through.
2013-11-03 23:29:06 -05:00
GlyphGryph 02824e4bf9 Merge pull request #4120 from kevingranade/fix-partial-pickup-veh
No problems with this I can find.
2013-11-03 20:04:25 -08:00
Kevin Granade 1364d0c994 Merge ammo stack size. 2013-11-03 21:35:25 -06:00
Rivet-the-Zombie bd7d4a4210 Give welding rig recipe the option to use a crude welder. 2013-11-03 21:35:02 -06:00
Rivet-the-Zombie 2ef3fad37d Adds tactical full-face helmet. 2013-11-03 21:26:20 -06:00
Rivet-the-Zombie 22e1e0d659 Sickle. 2013-11-03 20:55:25 -06:00
Rivet-the-Zombie bc873018de War scythe. 2013-11-03 20:52:59 -06:00
Rivet-the-Zombie 01ac2c9212 Scythe. 2013-11-03 20:43:59 -06:00
Kevin Granade e98478e9f7 Merge new chararacter menu tweak and restyle, and monster leaping fix. 2013-11-03 20:18:32 -06:00
Rivet-the-Zombie 8059809246 Fixes some ammo stack sizes. 2013-11-03 20:16:43 -06:00
Rivet-the-Zombie da76f3926e Wooden tonfa. 2013-11-03 20:00:53 -06:00
Kevin Granade 31077020f9 Move insertion of leftover items in pickup() after removal to avoid stacking issues, Fixes #3822. 2013-11-03 19:58:18 -06:00
Kevin Granade a0d85e2b18 Consolidate item removal code at the end of the pickup loop. 2013-11-03 19:47:44 -06:00
Kevin Granade d0c5856be8 Restyle a chunk of game::pickup(). 2013-11-03 19:34:47 -06:00
Christian Buskirk 906ab71f63 Allow monsters to leap anywhere they want to
As opposed to just at/away from the player
2013-11-03 18:08:26 -07:00
Rivet-the-Zombie 937189b9e6 Adds compressed air horn. 2013-11-03 19:01:05 -06:00
Kevin Granade af531f3a5b Merge a bunch of small fixes. 2013-11-03 17:33:42 -06:00
Christian Buskirk 1a2d0559bf Merge PR #4022 - Don't call add_item() 2013-11-03 16:27:27 -07:00
Christian Buskirk ee77073131 Merge PR #4026 - Fix turrets (again) 2013-11-03 16:27:03 -07:00
Christian Buskirk bb4b35c238 Merge PR #4088 - Cave spawn fix 2013-11-03 16:26:39 -07:00
Christian Buskirk 694502d203 Merge PR #4112 - Splattering fix 2013-11-03 16:26:15 -07:00
Kevin Granade 6c0b8506ba Stop blood trail from shooting when it hits a wall. 2013-11-03 17:19:49 -06:00
illi-kun c51b38dc3c fixes some minor visual issues + astyle 2013-11-04 03:15:10 +04:00
Kevin Granade 77bb8f3522 Move shoot_monster() before splatter() so monsters that take no damage won't make blood trails. 2013-11-03 17:07:46 -06:00
Kevin Granade cf291a31ac Fix null dereference in splatter, and prevent splattering when no damage. 2013-11-03 17:03:28 -06:00
Christian Buskirk eaf67dd330 Remove the "GRABS" flag from wolf spiders
Because combined with their venom they are way too powerful.
2013-11-03 15:33:58 -07:00
Christian Buskirk 17eaf904ed Revert "Make hurt() always call die() if the monster is dead, rather than just returning true and making it Somebody Else's Problem."
This reverts commit 329507427b.
2013-11-03 15:17:14 -07:00
Rivet-the-Zombie 516e96f974 Scissors too! 2013-11-03 16:12:40 -06:00
Ian Strachan c056e92759 Improve recycler interaction by cancelling properly. 2013-11-03 17:11:09 -05:00
Rivet-the-Zombie 394ee65af8 Fixes missing CUT tags on a few tools. 2013-11-03 16:08:54 -06:00
Kevin Granade fa3641b0a3 Don't allow gib to splatter through walls, fixes #3684. 2013-11-03 15:43:48 -06:00
Kevin Granade 7a27f1418d Remove problematic and premature messages about missing when shooting. 2013-11-03 14:52:52 -06:00
Kevin Granade c3f6ef1e34 Restyle some of ranged.cpp. 2013-11-03 14:52:21 -06:00
illi-kun 09725b8eb2 Minor bugfix for world creation tab (two cursors) 2013-11-04 00:05:06 +04:00
Ian Strachan f0e2bb74f2 Make an enum out of the cant_do return values. 2013-11-03 15:03:29 -05:00
Kevin Granade a84c15de1e Merge continuing bugfixing endeavors. 2013-11-03 13:08:10 -06:00
StraySilverFox b5f0f27cae Bloody rags shouldn't be deleted after using a rag to stop bleeding. 2013-11-03 05:44:02 -06:00
KA101 086e157199 Extra close-paren
Fix'd.
2013-11-03 01:53:32 -04:00
Tommy e6899e6e5c Add halloween_special.json to the translation ignore list for now. 2013-11-03 18:51:16 +13:00
Kevin Granade 705a30b35c Revert "Push ifdeffery into the init_tiles method."
This reverts commit 0d6083e352.
2013-11-03 00:50:27 -05:00
Tommy 2c056df6b9 Mark some missed strings. 2013-11-03 18:39:27 +13:00
Kevin Granade 0d6083e352 Push ifdeffery into the init_tiles method. 2013-11-03 00:26:56 -05:00
Kevin Granade 385244999d Fix build, and an off-by-one bug by using bodypart enums instead of magic numbers. 2013-11-03 00:26:21 -05:00
KA101 a7bf7f5c22 IR support
Here's where IR-vision mods go.  I think.
2013-11-03 01:20:09 -04:00
Kevin Granade 1ddcbe36e1 Merge CBP project fix and tiles fix. 2013-11-03 00:17:42 -05:00
KA101 e77ea3b421 Tail Support
This makes the tail actually confer the Dodge bonus and administer the
whapping.  It's strictly better than the Long Tail; I'm open to knocking
the bonus down to 1 if people like.
2013-11-03 01:15:56 -04:00
KA101 0852dc8215 Lizard Differentiation
Lizard-y goodness: broke their eyes out into their own line and gave 'em
their own tail.  (Which is now the prereq for Club Tail, but I'm pretty
open to changing that.  Only critter to get that...will be the Chimera,
if that lands.  So far it doesn't actually have a category. )
2013-11-03 01:07:15 -04:00
Kevin Granade f0d54025ac Merge hardcore->frail, fatigue cap, vermin blood splatter fix, skeletal corpse drops and attack location override for knocked down players. 2013-11-03 00:04:06 -05:00
Rivet-the-Zombie 23c99dc2a1 Adds disassembly hint to charcoal purifier. 2013-11-03 00:01:06 -05:00
Ian Strachan 993d04bbc5 Move the butchering message so it is always shown, even if nothing is generated. 2013-11-03 00:38:31 -04:00
Ian Strachan f2b1cbcb89 Fail-safe: Unrecognized monster corpses produce nothing. 2013-11-03 00:35:29 -04:00
Kevin Granade b443c87f11 Merge some item fixes. 2013-11-02 23:25:34 -05:00
GlyphGryph 91f0471f27 Merge pull request #4076 from GalenEvil/agnostic_recipe_loading
Makes JSON loading of recipes work in an order-agnostic manner
2013-11-02 21:00:37 -07:00
fnord 340eeb326e Merge sleep dep adjustments, an--*thud* 2013-11-02 22:11:39 -05:00
GalenEvil 79176efdea Merge branch 'pr/4085' 2013-11-02 21:46:46 -05:00
GlyphGryph ed72c11dbb Made is_hostile_within private 2013-11-02 22:32:19 -04:00
GlyphGryph 41b1df47e2 Split up nearby hostile check methods to avoid passing contextless negatives to a state query 2013-11-02 22:21:03 -04:00
Rivet-the-Zombie 86bd8e5606 Aha! Fixed. 2013-11-02 21:20:51 -05:00
GalenEvil 007c4d6d21 Remove unneeded SDL dependencies from Release - Localized target
Add TILES define to Tile support Release and Debug Targets
2013-11-02 21:08:14 -05:00
Rivet-the-Zombie 8f645cd7ef Fixes aluminum bat's description text. 2013-11-02 19:49:42 -05:00
Ian Strachan 53f2e0b298 Remove 'BASHABLE' from open fence gates. 2013-11-02 20:37:30 -04:00
GlyphGryph f353ca306c Allows smaller enemies to hit any body part once a leg has been destroyed 2013-11-02 20:24:48 -04:00
KA101 366522edde Alpha mutagen
Item, mutation categories, spawn locations, recipe item, mention in the
Lab Notes, actual recipe, iuse flag, and dreams.

I *think* that should be everything?
2013-11-02 20:22:36 -04:00
Rivet-the-Zombie 40e599c8a9 Uncrafting. 2013-11-02 18:29:16 -05:00
Rivet-the-Zombie 24f3ce3dd1 Recipe fix. 2013-11-02 18:24:30 -05:00
Ian Strachan 9b7f70bf53 Skeletons revive! 2013-11-02 19:20:41 -04:00
Ian Strachan ad979f98c6 Butchering skeleton corpses produces bones. 2013-11-02 19:17:59 -04:00
Ian Strachan 6305f27187 BRACES FOR THE BRACES GOD 2013-11-02 19:14:35 -04:00
Ian Strachan ae171f1829 Vermin no longer splatter blood. 2013-11-02 19:03:42 -04:00
Anuradha Dissanayake c5fb78d48b Merge branch 'master' into MiscImprovements 2013-11-03 11:54:04 +13:00
GalenEvil 170d107074 mininuke weighs 4071, and now so does mininuke (active)! 2013-11-02 17:48:35 -05:00
Kevin Granade d21b30a6c3 Merge msvc project cleanup and menu tweaks. 2013-11-02 17:39:31 -05:00
Kevin Granade 480f25e7be Normalize cave spawn density instead of basing it on the city-centric density value. 2013-11-02 17:21:58 -05:00
Kevin Granade ddce25f244 Creatly increase spawn rates for cave items. 2013-11-02 17:21:07 -05:00
Kevin Granade 773e3b8e32 Key place_item() ongrass behavior off of flat ground rather than just grass or dirt. 2013-11-02 17:20:30 -05:00
Rivet-the-Zombie 43ad10e640 Materials swap. 2013-11-02 17:13:00 -05:00
Rivet-the-Zombie d989db884c Changes charcoal water purifier functionality. 2013-11-02 17:05:06 -05:00
GalenEvil 84d1af9889 make artifacts load as binary file 2013-11-02 17:00:11 -05:00
GalenEvil 4c8cec147b Make tilejson load as binary ifstream
Make tiles initialize AFTER curses_init is finished so that if a debug message needs to be shown it doesn't crash to game.
2013-11-02 17:00:08 -05:00
GalenEvil d31b86af21 FIX: DeonTileset - tile_config.json -- screwed up comma and multiple ammo ids as numbers and not strings 2013-11-02 17:00:05 -05:00
Henrik Bergvin 555c79273b Finished TODO of monster::print_info by adding the vLines parameter.
Prettification of look_around monster information, and list_monsters monster information by moving it slightly the text fits.
2013-11-02 22:50:28 +01:00
Anuradha Dissanayake 94c2621bf7 Protect against possibly NULL pointer being referenced 2013-11-03 10:46:59 +13:00
Anuradha Dissanayake 297d7e3643 Remove default argument from "nearby hostiles" function. Fix VS project after latest changes. 2013-11-03 10:36:47 +13:00
Henrik Bergvin a2780f75b8 Faster scrolling of look_around by pressing 'f'. Uses the option MOVE_VIEW_OFFSET to determine speed. 2013-11-02 22:36:25 +01:00
Anuradha Dissanayake 52d5edd809 Merge branch 'master' into MiscImprovements 2013-11-03 10:29:13 +13:00
Anuradha Dissanayake 7ebb4a8172 Revert accidental change to mapdata.h 2013-11-03 10:28:59 +13:00
Kevin Granade b820a2429f Merge tweaks to agression and vermin status. 2013-11-02 15:57:54 -05:00
Kevin Granade 97598af290 Merge a pile of small fixes. 2013-11-02 15:36:46 -05:00
GlyphGryph 696ffa15c3 Merge pull request #4075 from atomicdryad/i_accidentally_the_coordinate_spaghetti
Actually pr the commit that fixed stairs.
2013-11-02 13:12:30 -07:00
fnord be05e87f2d blargle map.getlocal(point blargle) 2013-11-02 15:04:25 -05:00
GlyphGryph 262fc7c618 Cap on fatigue and slightly improved messaging. 2013-11-02 15:47:43 -04:00
GlyphGryph e2b447ffd4 Added fatigue cap, and changed '2 day' sleep message to something more sensible 2013-11-02 15:08:35 -04:00
GalenEvil 33dd5573e9 Merge branch 'master' into agnostic_recipe_loading 2013-11-02 14:02:18 -05:00
illi-kun b16c97fe90 add more stuff in firetruck 2013-11-02 22:52:11 +04:00
GalenEvil b9efcfb630 Adds finalization function for recipes and moves book<->recipe interactions to it.
Adds call to recipe finalization to game::init_data()
2013-11-02 13:50:32 -05:00
fnord 60fe32b46a Merge remote-tracking branch 'origin/master' into i_accidentally_the_coordinate_spaghetti 2013-11-02 13:35:21 -05:00
fnord c5075b9e59 Actually pr the commit that fixed stairs.
Adds real_coords.begin_*() helpers for forgetful people like me
2013-11-02 13:32:07 -05:00
Tommy 67957cb009 Update the .pot file. 2013-11-03 07:11:56 +13:00
GlyphGryph 9c1f4cbeee Merge pull request #4058 from atomicdryad/i_accidentally_the_coordinate_spaghetti
[BUGFIX] Fix stairs outside 0,0 overmap
2013-11-02 11:08:54 -07:00
illi-kun cd853690ff nerf fire extinguishers 2013-11-02 11:03:08 -07:00
atomicdryad daf804ac17 Merge pull request #4070 from GlyphGryph/remove_halloween_loading
Removed loading of halloween file to prevent professions from being avai...
2013-11-02 11:02:00 -07:00
GlyphGryph 19a4a94796 Removed loading of halloween file to prevent professions from being available - short term solution for 0.9, assume will change for mod manager 2013-11-02 13:59:34 -04:00
illi-kun eabac316d9 [CR] Nerf of fire extinguishers
A small fire extinguisher looks imbalanced: it's lighter than a big one (53g per charge vs 57g per charge), and 20 charges (=20 extinguished tiles) it's too big area for this small fire extinguisher.

Actually, the big fire extinguisher should be nefred too, because it can extinguish unreasonable huge area too.

current set:
4535g / 80 = 57 g per charge
1062g / 20 = 53 g per charge

suggested set:
big one:   60 charges, unchanged mass: 4535 g / 60 = 76 g per charge
small one: 12 charges, unchanged mass: 1062 g / 12 = 89 g per charge.

Balance:
Big fire extinguisher (better volume & weight "cost" per charge);
Small fire extinguisher (just compact item).

This is only my point of view, so any comments are welcome.
2013-11-02 10:49:07 -07:00
illi-kun b0f8f954c9 Minor bugfix for description tab
1-symbol fix for correct redrawing highlighted cursor.

Bug description:
1) put 30 symbols as character name
2) erase some symbols
3) see two cursors:
2013-11-02 09:35:11 -07:00
StraySilverFox 668eba9027 Instead of pulling base item data, item damage is now show based on any
modifications it has.
2013-11-02 08:56:07 -05:00
StraySilverFox 68f288006f When consuming an item with bionics (internal furnace) that isn't ammo,
assume that the entire item is consumed including all charges.
2013-11-02 08:38:40 -05:00
StraySilverFox c89f8ed66a Changed the name of "Hardcore" to "Frail". It's just a flavor thing. 2013-11-02 07:31:10 -05:00
StraySilverFox 39b248ddda Wrapped radiation badge now isn't used up on activation, just changed to
an unwrapped radiation badge.
2013-11-02 07:12:44 -05:00
Anuradha Dissanayake aa51cebab4 Initialize some submap properties on construction 2013-11-03 01:04:49 +13:00
Anuradha Dissanayake 769bdaca8c Fix compiler initialization order warning. 2013-11-03 00:51:51 +13:00
illi-kun b79cb2d81a tweaking of stat menu 2013-11-02 04:49:01 -07:00
Andrew Dionne 2fd863b6e2 FIXED: Broken gas tanks can no longer be refilled. 2013-11-02 07:46:58 -04:00
Anuradha Dissanayake 5b3d60c6d3 Allow player to cancel activity if a monster is dangerously close. 2013-11-02 23:37:47 +13:00
StrangerState 8feb3ea52e Raise sewer rat aggression 2013-11-02 06:06:08 -04:00
StrangerState 4e3f2eb2ba Fix bobcat triggers 2013-11-02 06:02:26 -04:00
StrangerState c2f5f2a510 Set dog aggression to 2 2013-11-02 06:00:50 -04:00
StrangerState f33d31fe13 Update deer mouse description 2013-11-02 05:32:30 -04:00
StrangerState 7f6b68b898 Change shrew and deer mouse into vermin 2013-11-02 05:26:56 -04:00
fnord 6e12d32310 Variable consistency 2013-11-02 03:17:40 -05:00
fnord ed90d9ae86 Fix stairs outside 0,0 overmap
Feed coordinate subdivision helper function overmap coordinate, since it expects
absolute tile coordinate
2013-11-02 03:03:58 -05:00
Rivet-the-Zombie 8aed248091 Generalization fix. 2013-11-02 02:54:05 -05:00
Rivet-the-Zombie 0e2d6cb3f2 Adds handheld magnesium road flares. 2013-11-02 02:44:00 -05:00
illi-kun aeb8ac8b19 excluding catajson files 2013-11-02 00:29:49 -07:00
illi-kun 2165ecae38 excluding catajson files 2013-11-02 00:28:48 -07:00
illi-kun 0ef57e56e9 excluding catajson files 2013-11-02 00:27:46 -07:00
illi-kun 8fea119c90 excluding catajson files 2013-11-02 00:26:56 -07:00
illi-kun f59901bd04 excluding catajson files 2013-11-02 00:25:59 -07:00
illi-kun 8721ea222c excluding catajson files 2013-11-02 00:24:46 -07:00
StrangerState 98fedbf9e1 Several changes to shrews. 2013-11-02 03:11:33 -04:00
Rivet-the-Zombie db88b8eeeb Fixes steel spear recipe category. 2013-11-02 01:41:08 -05:00
Rivet-the-Zombie 44086b267e Adds forgotten incendiary tag. 2013-11-02 01:38:29 -05:00
Rivet-the-Zombie 67785b3a90 Adds flaregun and ammunition. 2013-11-02 01:29:00 -05:00
StrangerState 3e37accac2 Adjust morale, aggression and anger/fear triggers for various animals 2013-11-02 02:03:58 -04:00
Rivet-the-Zombie 44bf9cfd85 Quantity fix. 2013-11-02 00:17:50 -05:00
Rivet-the-Zombie 98ba7320af Recipe. 2013-11-02 00:17:31 -05:00
Rivet-the-Zombie 825d28af0a Adds teapot. 2013-11-02 00:14:39 -05:00
Rivet-the-Zombie 5183d9e5e8 Recipe tweak. 2013-11-02 00:07:03 -05:00
Rivet-the-Zombie f5da796fe1 Tweaks standard caltrops recipe. 2013-11-02 00:02:55 -05:00
Rivet-the-Zombie ebc014e76b Adds alternate recipe to craft caltrops from wire or barbed wire. 2013-11-02 00:01:32 -05:00
Rivet-the-Zombie 5bb5410db5 Flag fix. 2013-11-01 23:52:33 -05:00
Rivet-the-Zombie fadd71a1af Complete! 2013-11-01 23:51:22 -05:00
Rivet-the-Zombie e8040d561b First pass. 2013-11-01 23:31:13 -05:00
GlyphGryph 3156520fef Merge pull request #4044 from GlyphGryph/remove_halloween
Removed halloween spawns, restored old spawns.
2013-11-01 19:00:31 -07:00
GlyphGryph e225fd7fcf Removed halloween spawns, restored old spawns. 2013-11-01 20:51:38 -04:00
Kevin Granade e5de7984c7 Merge profession preening, siphoning, vehicle spawning, steel spear, and json docs. 2013-11-01 19:32:16 -05:00
Kevin Granade d16fdf2c3c Merge input polling fix, catajson removal, splatterfest fix, template selection crashfix, double corpse fix, and hotplate discharge fix.
Conflicts:
	msvc110/Cataclysm.vcxproj
2013-11-01 18:49:02 -05:00
Tommy fa6803dda5 Add documentation for JsonObject, JsonArray, JsonIn inside json.h. 2013-11-02 09:02:53 +13:00
illi-kun 8f73c9df13 is it adjacent square?
How that check was done before:
((xdiff * xdiff == 1) != (ydiff * ydiff == 1))

How it should be done:
(xdiff * xdiff + ydiff * ydiff == 1)
Test case: x = -1; y = 4.

was: [(-1 * -1 == 1) != (4 * 4 == 1)] - true but it's not an adjacent square.

It's easy to check the behavior of multi-square stuff using shutter doors in firetruck.
2013-11-01 12:27:21 -07:00
Rivet-the-Zombie be2ddaf9ea Weight fix. 2013-11-01 13:53:50 -05:00
Rivet-the-Zombie a39cd3e5df Adds craftable steel spear and recipe! 2013-11-01 13:53:04 -05:00
Ian Strachan 7f2b29abd5 Spawn vehicles that are parked properly and not abandoned in the middle of the road. 2013-11-01 13:48:10 -04:00
Ian Strachan 8ed82754a7 Fix hotplates not using charges to heat food. 2013-11-01 13:20:02 -04:00
GalenEvil a4cd9ad755 Removed duplicate place_corpse() call that automatically happens on action_suicide. 2013-11-01 02:56:51 -05:00
GalenEvil db555844ec Fixes segfault when picking between multiple templates. 2013-11-01 02:54:26 -05:00
StrangerState 8fb29e849b Clean up mdeath::normal edits 2013-11-01 03:22:49 -04:00
StrangerState b5de3159ce Clean up and move monster corpse placement to separate function 2013-11-01 02:51:01 -04:00
fnord f8f00c716e Remove redundant check, remove check for vehicles with no fuel tank 2013-11-01 00:38:39 -05:00
Tommy 4e9c6f3d69 Properly finish the JsonObject when using inside JsonIn. 2013-11-01 18:35:59 +13:00
Tommy 0cadf34bee Nicely handle errors when loading artifact and tiles json files. 2013-11-01 18:34:44 +13:00
Ian Strachan 0decefbe71 Pull semi away from road edges to avoid it clipping into buildings. 2013-11-01 01:33:27 -04:00
StrangerState e8a0da3b31 Place gib-making code in seperate function 2013-11-01 01:19:54 -04:00
fnord ea09e6c607 Siphon from vehicle to adjacent vehicle. Again.
This time needless queries are eliminated.
2013-11-01 00:17:14 -05:00
StrangerState 08b987b6ac mdeath::normal improvements, limit gibs by max hp 2013-11-01 00:58:50 -04:00
Tommy 06c5e2d3e3 Completely remove catajson. RIP catajson. 2013-11-01 17:50:24 +13:00
Tommy 18d830faa4 Use json.h in stead of catajson.h for load_tilejson(). 2013-11-01 17:49:04 +13:00
Ian Strachan 2b8d55adc8 Add pile-ups as a very rare thing that can happen.
I'm sure someone will find a way to drive one of them. Have fun with that.
2013-11-01 00:37:25 -04:00
Tommy 0e6bfa18e8 Use json.h in stead of catajson.h for load_artifacts(). 2013-11-01 17:22:49 +13:00
Kevin Granade e87375ca10 Merge caseless light machine gun. 2013-10-31 22:58:44 -05:00
Ian Strachan aa1854cf25 Checkpoint: Jackknifed semi is spawning right. 2013-10-31 23:56:01 -04:00
Kevin Granade 703a6b7a3f Merge fix to stuck-on headlights. 2013-10-31 22:22:28 -05:00
Kevin Granade a16e632661 stl-ify vehicle::can_mount() and const things. 2013-10-31 22:08:50 -05:00
Kevin Granade e654ad6243 Don't allow mounting more than one part with a CARGO flag on the same vehicle square. 2013-10-31 21:48:24 -05:00
Kevin Granade 8cfe0780f6 Re-add CARGO flag to mounted M249. 2013-10-31 21:35:52 -05:00
Kevin Granade aeceb61767 Restyle map::trans(). 2013-10-31 21:35:20 -05:00
Kevin Granade efcb8c79ac Clean up map::trans() handling of vehicle parts. 2013-10-31 21:33:57 -05:00
Kevin Granade c8dbcfda64 Stl-ize vehicle::part_with_feature. 2013-10-31 21:33:04 -05:00
Kevin Granade ba49f61542 Merge json reformat.
Conflicts:
	data/json/vehicle_parts.json
2013-10-31 20:27:11 -05:00
Axujen 1532454bf2 Fix headlights not turning off for vehicules without electricity.
The function that toggled the lights on and off checked if the lights
were off or if the vehicule has some batteries left before toggling the
lights. This allowed vehicules without batteries to turn on their lights
but are not able to turn it off.

Fixed by checking if the lights were off instead.
2013-11-01 00:58:45 +00:00
Kevin Granade d09d8e9b81 Merge some new content and a slug fix. 2013-10-31 19:57:25 -05:00
Kevin Granade 6613963683 Merge i18n update.
Conflicts:
	worldfactory.cpp
2013-10-31 19:46:50 -05:00
Kevin Granade 2ab511b326 Merge pull request #4015 from illi-kun/patch-3
MSVC projects update
2013-10-31 17:36:15 -07:00
Kevin Granade 01cf7dd97f Make map::add_item() private so other parts of the game stop calling it. 2013-10-31 19:23:57 -05:00
Kevin Granade 8deb91c79f Call map::add_item_or_charges() instead of map::add_item() to enforce rules for where items can drop. 2013-10-31 19:09:28 -05:00
Kevin Granade 4701cb78a9 Merge fixorama. 2013-10-31 17:42:37 -05:00
StrangerState 4f71292078 Remove acid attacks from small slugs, and add missing VERMIN flag 2013-10-31 18:31:44 -04:00
Naros- c7fb2ab208 Changed order to type/ident/name
Changed order to type/ident/name  rather than type/name/ident for
consistency's sake
2013-10-31 21:57:59 +01:00
phaethonfire e5db9b36a9 fix closedir segfaults (again) 2013-10-31 15:50:26 -05:00
NaturesWitness 1e7bea121c Blob drops and recipes
Adds blob glob, dropped from blobs, and recipes for mutagen, slime
mutagen, superglue, and goo canisters.
2013-10-31 15:54:22 -04:00
Tommy 04f08124c4 Restyle vehicles.json 2/3. 2013-11-01 08:37:53 +13:00
Tommy 2687d801d4 Restyle vehicle_parts.json 2/3. 2013-11-01 08:36:41 +13:00
Tommy f6d68b724e Restyle mutations.json 1/2. 2013-11-01 08:30:05 +13:00
Tommy 92c6e89db4 Restyle materials.json 1/2. 2013-11-01 08:29:03 +13:00
Tommy 0793b69200 Restyle colors.json 1/1. 2013-11-01 08:26:45 +13:00
Tommy 14582758c9 Restyle vehicle_parts.json 1/2. 2013-11-01 08:25:32 +13:00
Tommy 9bb72d03e4 Restyle vehicles.json 1/2. 2013-11-01 08:24:48 +13:00
illi-kun dfa17d8dcd Update Cataclysm.vcxproj.filters 2013-10-31 12:06:27 -07:00
Tommy d81bec2477 Restyle species.json 1/2. 2013-11-01 08:05:32 +13:00
illi-kun e7412503db Update Cataclysm.vcxproj 2013-10-31 12:04:14 -07:00
illi-kun 535b93c4b4 Update Cataclysm.vcxproj.filters 2013-10-31 12:02:12 -07:00
illi-kun 8e6e3f58fb Update Cataclysm.vcxproj 2013-10-31 12:00:09 -07:00
illi-kun 922ee3212b Update Cataclysm.vcxproj.filters
added recent files
2013-10-31 11:57:42 -07:00
Naros- f1a7ac4cb1 Standardised profession entries, fixed typos and adjusted language 2013-10-31 19:10:43 +01:00
fnord e2c3d3416f Merge worldgen fixes as well as other fixes. Especially coffee syrup 2013-10-31 09:19:00 -05:00
GalenEvil 8928afa3d1 Removed call: MAPBUFFER.save_if_dirty() from main.cpp -- redundant code considering all exits from game-space require calling MAPBUFFER.save() anyway, which is all that .save_if_dirty() does.
Added clearing of the ACTIVE_WORLD_OPTIONS to setting the active world to NULL to help prevent any potential carryovers of options between worlds.
2013-10-31 06:40:02 -05:00
GalenEvil 5e94534d7e Fixes segfault on answering no to New Game > World Create query if no worlds exist by removing the query. The player shouldn't really be answering 'No' anyway to that query and it breaks the flow of getting into the game by having that query there. 2013-10-31 06:40:00 -05:00
GalenEvil b4ef12eaff Add clear() and refresh() call to clear the MAPBUFFER.load() popupnowait message before the game::start_game popupnowait message is displayed 2013-10-31 06:37:47 -05:00
GalenEvil 584c368b48 Adds the _|_ characters at the bottom of New World Options menu 2013-10-31 06:35:02 -05:00
GalenEvil 2e373e3857 Tweaks to make things look mostly centered, probably needs more tweaking to look perfect though. 2013-10-31 06:35:00 -05:00
GalenEvil 5f5120f705 Print [W]orld menu subitems as [N]ew Game subitems are printed
Fix persistent worldname display if delete/reset query is answered "No"
2013-10-31 06:34:58 -05:00
GalenEvil 146aa1942d Moves world naming logic for Conversion Worlds and Random world names so that there is never a conflict. Should hold the random worldnaming steady until proper random worldnames can be picked. 2013-10-31 06:34:56 -05:00
GalenEvil a9e7f54519 Allow use of ESC key in world creation menus 2013-10-31 06:34:53 -05:00
GalenEvil fd836ec480 Skill rust part of OPTIONS again instead of ACTIVE_WORLD_OPTIONS
Added check to make sure that the world option being loaded is part of the "world_default" page to add compatability with ongoing changes affecting the ACTIVE_WORLD_OPTIONS
Couldn't remember what page SKILL_RUST belonged on originally, so put it in "debug" page
2013-10-31 06:29:20 -05:00
fnord 628c0d29aa Octomerge fixes 2013-10-31 05:39:53 -05:00
Vlasov Vitaly d4e9eecc20 Contaier show amount when it wielded 2013-10-31 14:38:31 +04:00
fnord 9b8b6cdf65 Fix mistaken loading of next weather on game load, fix misuse of lower_bound in weather_log debug dump. 2013-10-31 04:57:33 -05:00
Anuradha Dissanayake 9e60f4b8c3 Fix "trail to item" in List (V)iew when using tiles. 2013-10-31 22:50:29 +13:00
Anuradha Dissanayake a421afee4b Fix input polling in Linux curses mode, when weather animations are active 2013-10-31 21:01:42 +13:00
Anuradha Dissanayake 9424f92870 Fix VS compile after latest changes 2013-10-31 20:56:21 +13:00
fnord c9e2d866a2 Prevent basement-related teleportation by constraining stair searching to current
overmap tile
2013-10-31 02:27:37 -05:00
Rivet-the-Zombie 91e519a56a Fixes coffee syrup's material phase. 2013-10-31 02:12:03 -05:00
Rivet-the-Zombie 9807082e06 Fixes incorrect volume on two containers. 2013-10-31 01:58:19 -05:00
Rivet-the-Zombie d2d15f5e67 Adds caseless light machine gun and spawns. 2013-10-31 00:41:01 -05:00
Rivet-the-Zombie 5f9f73a85e Fixes wonky volumes on some headwear. 2013-10-31 00:32:58 -05:00
illi-kun 36b38cfed8 Fix up gray color of borders in vehicle menu 2013-10-30 22:21:04 -07:00
illi-kun 9ac53c508e project update 2013-10-30 22:06:36 -07:00
GalenEvil 7226841a15 Merge branch 'pr/3996' 2013-10-30 23:58:13 -05:00
GalenEvil 69353f85e6 fixed mon_zombie_vampire to mon_vampire to let them actually generate 2013-10-30 23:57:22 -05:00
GlyphGryph 7fac4a6f63 Fixed item drops by removing them, tweaked spawn odds. 2013-10-30 22:56:32 -04:00
GlyphGryph 1918d0d89e Holiday Monsters, Professions, and Equipment 2013-10-30 22:38:30 -04:00
Christian Buskirk 3b6de93bba Drop fungal fighter aggression to it's proper place 2013-10-30 18:59:13 -07:00
KA101 2ff44676b7 Halloween Mongroups
These'll need pulled for Halloween, and reverted thereafter.  Negligible
attention paid to balance, mostly focused on theme.
2013-10-30 21:53:17 -04:00
Christian Buskirk 771a12da56 Switch master upgrade function to hunters instead of dogs 2013-10-30 18:34:56 -07:00
Christian Buskirk 5432421cfa Fix missed bit of bad logic 2013-10-30 18:33:13 -07:00
Christian Buskirk cd1c40c230 Remove regeneration from zombie masters 2013-10-30 18:03:13 -07:00
Christian Buskirk 3e0011ced2 Fix the ::sound() function
Because it was badly broken, very, very, badly broken
2013-10-30 17:55:46 -07:00
Kevin Granade 34142f5678 Merge moving dissasembly check to init instead of completion, fix of template use, reinforced solar panel location, and regiantify spiders.
Conflicts:
	game.cpp
2013-10-30 18:59:23 -05:00
Kevin Granade 3afd356842 Display the configured key in view menu for new functions. 2013-10-30 18:47:13 -05:00
Kevin Granade c6e50991a7 Line wrapping sanity. 2013-10-30 18:46:37 -05:00
Kevin Granade b16df09929 Merge item and monster list menu enhancements. 2013-10-30 17:55:33 -05:00
StrangerState 15d72b348a Check for fungus, not zombies. 2013-10-30 17:45:21 -05:00
StrangerState 25dfb591fa Fix null pointer dereference in mondeath::fungus 2013-10-30 17:45:21 -05:00
Kevin Granade f382c4fa8e Merge NPC gifting fix, Smoke field warning supression, and vehicle placement fix.
Conflicts:
	field.cpp
2013-10-30 17:22:57 -05:00
Rivet-the-Zombie bc577c567c Adds throwing axes, spawns, and recipe. 2013-10-30 14:08:00 -05:00
Tommy 2ec12a1e59 Rename cOpt.getName to cOpt.getValueName for clarity. 2013-10-31 07:57:03 +13:00
Tommy 220fd55b26 Use translated option name in stead of value. 2013-10-31 07:52:52 +13:00
Tommy f35d36219e Merge Launchpad translations. 2013-10-31 07:39:29 +13:00
Tommy 8c1ee84908 Update the .pot file. 2013-10-31 07:37:52 +13:00
Tommy ee1ae8eccf Some missed i18n for worldfactory.cpp. 2013-10-31 07:36:22 +13:00
Ian Strachan 329507427b Make hurt() always call die() if the monster is dead, rather than just returning true and making it Somebody Else's Problem. 2013-10-30 14:00:57 -04:00
Ian Strachan 7037febbbb Switch back to the giant, actually threatening black widows in temple events and spider houses. 2013-10-30 13:16:07 -04:00
Ian Strachan da0d570cb7 Fix reinforced solar panels not having a location. 2013-10-30 13:06:36 -04:00
GalenEvil 704ef6145c set WORLDPTR to NULL after deleting it to hopefully deal with any doublefree-ing of the pointers on game exit 2013-10-30 03:32:45 -05:00
Rivet-the-Zombie f6db4cb11a Fixes circular logic in 2x4 recipe. 2013-10-30 03:29:37 -05:00
GalenEvil cdafc43776 Fixes template game start errors 2013-10-30 03:07:55 -05:00
Kevin Granade 0c25465edf Remove parentheses to make clang happy. 2013-10-29 23:29:07 -05:00
Kevin Granade c0c95aeaaa Merge mole removal as well as fix to vermin burrowing.
Conflicts:
	data/json/monstergroups.json
	data/json/monsters.json
2013-10-29 23:09:58 -05:00
GlyphGryph 7e0a5b5d12 Merge branch 'master' into pr/3960 2013-10-29 21:37:35 -04:00
Ian Strachan f1d9ac79ac Spread vehicles along the whole width of the road. More collision-looking wrecks, less "that motorcycle teleported into a car" wrecks. 2013-10-29 21:10:15 -04:00
Ian Strachan c271686771 Less copypasta in mapgen::rotate, and fix vehicle rotation being very wrong on horizontals.
I actually got that set-of-vehicle-pointers-iterator right on the first try? I'm shocked it compiled, let alone worked.
2013-10-29 20:55:35 -04:00
GlyphGryph 6b803a1a2e Merge pull request #3776 from GalenEvil/WorldFactory
[FINAL TESTS] World Factory -- Take 2!
2013-10-29 17:41:09 -07:00
GalenEvil 4815111217 Fix location of "can actually disassemble from charges" check to disassembly init phase; moved from disassembly action phase 2013-10-29 19:15:50 -05:00
GlyphGryph ad9f2934ad Merge pull request #3934 from kevingranade/streamline-pulping
Rework corpse smashing to smash bodies in a single action. Fixes #1857.
2013-10-29 17:11:59 -07:00
GlyphGryph be65e1ffd4 Merge pull request #3957 from ave-/fix_infinite_batterymod_etc_items
fixed non-disappearing on use roadmap and extra battery mod
2013-10-29 16:55:27 -07:00
GlyphGryph 2346dba94c Merge pull request #3954 from Rivet-the-Zombie/Fur-rollmat-fix!
Fixes fur rollmat deployment bug.
2013-10-29 16:52:35 -07:00
GalenEvil 56978b1b67 Lets toilet water be used for crafting. Cludgy, and probably doable in a better way. Uses similar logic to the iexamine::toilet to check that toilet water exists. Only will work for furnitures that have the toilet examine function. Works to fix the issue in question, so I call it a win for now. 2013-10-29 18:52:13 -05:00
GlyphGryph 4548173c2f Merge pull request #3949 from GalenEvil/fix_fusion_pack_disassembly
[Bug Fix] Fixes Fusion Pack disassembly issue
2013-10-29 16:30:06 -07:00
AVE 255d4a3200 fixed non-disappearing on use roadmap and extra battery mod 2013-10-30 02:20:12 +04:00
atomicdryad 8762477051 Merge pull request #3938 from GlyphGryph/fema_storage_fix
Fixed FEMA tents. Did NOT fix the underlying problem
2013-10-29 14:37:06 -07:00
Rivet-the-Zombie af008a05ee Fixes alpha male quarterly skill assignment. 2013-10-29 15:00:46 -05:00
Rivet-the-Zombie d0b78e148a Huzzah! It WAS a bad merge! 2013-10-29 14:35:57 -05:00
fnord 67bcb46a36 fix json comma heresy from prior pr 2013-10-29 12:10:50 -05:00
atomicdryad 23151f0fa8 Merge pull request #3950 from GlyphGryph/tweak_monsters
Made some tweaks to the new monster file.
2013-10-29 07:45:54 -07:00
GlyphGryph 24fb83c3ad Made some tweaks to the new monster file. 2013-10-29 10:07:02 -04:00
GalenEvil 7f6f7a6aba Check to see if the item being disassembled is counted by charges. If so then remove only the number of charges that are required to reverse the recipe which is equal to item->type->stack_size. 2013-10-29 05:13:39 -05:00
GalenEvil 1956f6f32d Fix newgame and special game starts 2013-10-29 03:10:40 -05:00
fnord 27d58a258b fix exit crash......maybe 2013-10-29 03:10:37 -05:00
fnord 51355c062c fix mapbuffer's passing vehicles (or more) into detached g->m caches.
pre wf ordering: artifacts -> mapbuffer -> setup ( -> menu -> load/start -> draw )
now: menu ( artifacts -> mapbuffer -> setup -> load/start -> draw )
2013-10-29 03:10:34 -05:00
GalenEvil de5a01ae82 Fix characters not being removed on suicide properly. 2013-10-29 03:10:31 -05:00
GalenEvil e912f0aa3a Allow automated checks for world names, and adds "save" as a reserved and invalid name so that the auto-conversion system will not accidentally auto-convert user created worlds. 2013-10-29 03:10:28 -05:00
GalenEvil 13ad112c7c Added automatic upgrade from old save directory into a save directory with an autogenerated world directory containing the save directory's contents. 2013-10-29 03:10:25 -05:00
GalenEvil d88c682e2a Accidentally commented out too much and ended up removing the check that the save directory exists. Return it to being functional so that the save directory is automatically created if it doesn't already when the main menu appears. 2013-10-29 03:10:23 -05:00
GalenEvil cf7e43b287 Removed ternary operation out to a separate variable so it is not evaluated inside of a function call. 2013-10-29 03:10:20 -05:00
GalenEvil 45365c5619 Sent worldfactory through the style converter 2013-10-29 03:10:17 -05:00
GalenEvil 2fff45e772 Pulled function is_char_allowed out of newcharacter.cpp and the duplicated function char_allowed from worldfactory.cpp and put the definition into char_validity_check.h, implementation into char_validity_check.cpp. 2013-10-29 03:10:14 -05:00
GalenEvil e12d273711 put game::cleanup_at_end through astyle formatter 2013-10-29 03:10:11 -05:00
GalenEvil 359dc5d2ba Removed now unused function 2013-10-29 03:10:08 -05:00
GalenEvil 906e28ad6e Fixed lack of loading artifacts. Now shows up in each of the appropriate game start procedures immediately before the MAPBUFFER.load(worldname) calls 2013-10-29 03:10:05 -05:00
fnord f726ff9b79 Both new blank worlds and old saves work. 2013-10-29 03:10:02 -05:00
fnord 293b8cbc6b Make old games work with worldfactory changes. 2013-10-29 03:09:59 -05:00
fnord 5155f1d804 make starting season a world option 2013-10-29 03:09:56 -05:00
GalenEvil 23fbaee8a9 change Black Road over to being controlled by the active world's option set 2013-10-29 03:09:53 -05:00
GalenEvil e43aee9be7 removed redundant query. reworded another query 2013-10-29 03:09:50 -05:00
GalenEvil e7d358db6c Removed some unused functions 2013-10-29 03:09:47 -05:00
GalenEvil 55d5a4e6b0 Brings up to working order, other than Defense mode which isn't testable just yet.
Now need to do code cleanup.
2013-10-29 03:09:44 -05:00
GalenEvil 2d7fcf8c51 changed catacurse include to cursesdef include.
removed awo_populated since it's not obvious yet if it will be needed.
added worldfactory *world_generator to game so it can be interacted with.
2013-10-29 03:09:39 -05:00
GalenEvil 5557ac383c changed unsigned to size_t since std::string::npos is size_t, and also is valued at -1, so unsigned file_index will always be true in comparison (file_index != std::string::npos) 2013-10-29 03:09:36 -05:00
GalenEvil b6d249487c Now compiles, so setting up commit for PR 2013-10-29 03:09:33 -05:00
GalenEvil 8124f4653e World factory files 2013-10-29 03:09:30 -05:00
GalenEvil bbe19f4e18 Add directory search/return, since it's useful for the world factory 2013-10-29 03:09:27 -05:00
StrangerState a8528527db Smoke field walk-in effect reformat 2013-10-29 02:33:06 -04:00
StrangerState 511472ad37 Prevent some warnings for gas, fixes #259 2013-10-29 01:48:19 -04:00
StrangerState 1ab59d50ce Prevent warning when entering smoke with proper mouth protection 2013-10-29 01:11:43 -04:00
Christian Buskirk ecf3a089f7 Merge to mainline
Conflicts:
	data/json/monsters.json
2013-10-28 21:33:36 -07:00
Christian Buskirk a8ac651aab Mole/shrew tweaks
Made vermin, small hp tweaks
2013-10-28 21:29:46 -07:00
Christian Buskirk 1e769fe44c Factor for vermin in dirt mound formation chance 2013-10-28 21:29:26 -07:00
GlyphGryph 4b95fcd825 Merge pull request #3937 from i2amroy/stimulant-fix
Fix stimulant effects
2013-10-28 21:20:45 -07:00
Christian Buskirk eedf0dbffa Move sludgetrail effects, remove unneeded hallucination checks 2013-10-28 21:08:55 -07:00
Christian Buskirk ebd6786309 Add dirt mound formation size chance 2013-10-28 21:07:19 -07:00
GlyphGryph ab466e40e8 Fixed upper fence right side of FEMA supply tent not displaying. 2013-10-29 00:01:02 -04:00
Christian Buskirk 8ca6126c25 Update monster::move_to() style 2013-10-28 20:48:45 -07:00
GlyphGryph 55e0988837 Removed moles, changed some monster symbols. 2013-10-28 23:47:50 -04:00
Kevin Granade 83e7e9f0ab Merge translation updates. 2013-10-28 22:46:13 -05:00
Ian Strachan 9ac87e6f7b Fix NPCs not giving you the things they said they were giving you. 2013-10-28 23:37:59 -04:00
Christian Buskirk ad29c7c640 Suppress finishing message if nutr or thirst is zero. 2013-10-28 20:36:56 -07:00
Christian Buskirk 0e25b114ba fix missing space 2013-10-28 20:31:08 -07:00
Christian Buskirk 99e23a9308 Move digging checks to a separate function 2013-10-28 20:22:08 -07:00
Kevin Granade d092f4d5ec Merge inhaler weight fix. 2013-10-28 22:14:36 -05:00
Tommy df9e0db484 Update the pot file. 2013-10-29 16:08:30 +13:00
Christian Buskirk 70a6a24b5d Lower mole size to TINY 2013-10-28 20:04:01 -07:00
GlyphGryph 7f274312be Fixed FEMA tents. Did NOT fix the underlying problem, just rebuilt them sensibly. 2013-10-28 23:02:36 -04:00
Christian Buskirk b312f5ab17 Fix stimulant effects
Move consume effects to a separate function
2013-10-28 20:01:03 -07:00
Tommy a759fccbbf Properly fold quality requirements in crafting window. 2013-10-29 15:58:49 +13:00
Kevin Granade 96f1c247fb Merge fixes to driving practice, butchering, and trap warnings. 2013-10-28 21:55:47 -05:00
Tommy e487e4cc0b Add json "tool_quality" object for translatable tool qualities. 2013-10-29 15:51:01 +13:00
Kevin Granade af492e7839 Merge item description grammar fixes.
Conflicts:
	data/json/items/tools.json
2013-10-28 21:49:34 -05:00
Tommy 5d5a9c3686 Rename quality "name" to "id". 2013-10-29 15:26:47 +13:00
GlyphGryph f94b39928b Merge pull request #3930 from i2amroy/Martial-arts-buffs
Fix invalid buff on reload
2013-10-28 18:15:43 -07:00
Kevin Granade 610748889f Rework corpse smashing to smash bodies in a single action. Fixes #1857. 2013-10-28 20:07:32 -05:00
GlyphGryph c9e2376453 Merge pull request #3931 from i2amroy/Butcher-fix
Fix butchering
2013-10-28 18:01:03 -07:00
GlyphGryph 465bd696d7 Fixed trap warnings 2013-10-28 20:56:44 -04:00
StrangerState 84f9e5a595 merge mondeath.cpp guilt malus fix 2013-10-28 20:20:51 -04:00
StrangerState 6243e9c385 mmdeath::normal tweaks for corpse damage and gib levels 2013-10-28 22:28:24 -04:00
StrangerState 10ba07b48c Raise HP values for some tiny animals 2013-10-28 21:48:39 -04:00
StrangerState b72b9138e1 Make corpses harder to pulverize 2013-10-28 21:47:27 -04:00
Christian Buskirk a829247e86 Fix butchering 2013-10-28 16:12:52 -07:00
Christian Buskirk 4f4a423538 Fix invalid buff on reload 2013-10-28 15:40:38 -07:00
Christian Buskirk b5b9aac03b Fix missing commas
My bad, fixed but forgot to commit
2013-10-28 15:32:58 -07:00
Rivet-the-Zombie 20c3df6c11 Fixes an oversight in the weight of inhalers. 2013-10-28 17:08:47 -05:00
Christian Buskirk b908e1442c Merge Rivet fixes, killing morale fix, hotkey fix, and fun basements. 2013-10-28 14:47:17 -07:00
Rivet-the-Zombie 504740ccdd Fixes typo in monsters.json. 2013-10-28 16:31:26 -05:00
Rivet-the-Zombie 9f1ce77c86 It doesn't differentiate between gunmod types, but surely this is better than what it currently has. 2013-10-28 16:20:32 -05:00
Christian Buskirk 96ce1440f7 Allow player to gain driving skill while going backwards 2013-10-28 14:15:48 -07:00
Rivet-the-Zombie 6899999471 Fixes overly long text. 2013-10-28 13:29:48 -05:00
Rivet-the-Zombie df247cc289 Minor grammar fix in books.json 2013-10-28 13:23:02 -05:00
Rivet-the-Zombie ffba32ace9 Vehicles. 2013-10-28 13:19:01 -05:00
Ian Strachan eafcbbf2f2 Fix 'guilt' increasing morale. 2013-10-28 12:59:17 -04:00
pitrdevries 66b2ee3c38 Merge branch 'master' of https://github.com/CleverRaven/Cataclysm-DDA 2013-10-28 09:19:25 -07:00
Anuradha Dissanayake 9f59bf2a17 Fix hotkey auto-generation in ui lists 2013-10-28 19:46:16 +13:00
Rivet-the-Zombie ddf2484f1d Further tweaks. 2013-10-28 01:01:35 -05:00
Rivet-the-Zombie 16d5746baa Tweakage. 2013-10-28 00:53:29 -05:00
Rivet-the-Zombie e3cd0b2614 Yay more tweaks! 2013-10-28 00:27:05 -05:00
pitrdevries 78cbfcbac9 poop
i really need to get better at this
2013-10-27 22:23:25 -07:00
pitrdevries b2028a9e4d Derp
whoops
2013-10-27 22:18:41 -07:00
pitrdevries cef03e293a Tool.json grammatical tweaks.
Hoo boy this took longer than I thought it would. I'm wide open to
suggestions for styling, if you see something you don't like.
2013-10-27 22:02:31 -07:00
Rivet-the-Zombie f54a73c88a Colors! 2013-10-27 23:53:48 -05:00
Rivet-the-Zombie b887663f65 Gunmod stuff! 2013-10-27 23:33:24 -05:00
Rivet-the-Zombie e08dcf2467 Tweaks. 2013-10-27 23:22:55 -05:00
fnord 492253b6bf list_monsters: hotkeys for shooting and lookaround, add center on target to shift view option, remember listitem or listmonster state 2013-10-27 23:04:53 -05:00
Rivet-the-Zombie f46a8ca36b Further tweaks. 2013-10-27 22:51:17 -05:00
Rivet-the-Zombie 1ef8acb445 Melee stuff! 2013-10-27 22:42:21 -05:00
Kevin Granade c405365e39 Restyle a chunk of mapgen. 2013-10-27 22:26:01 -05:00
Kevin Granade b9c1222c17 Place house basements along with other underground features so subways and sewers will route around them. 2013-10-27 22:26:01 -05:00
Kevin Granade e325a2cee1 Sometimes spawn zombies in house basements. 2013-10-27 22:26:01 -05:00
Kevin Granade e1f53e57a7 Give all house basements an alcove with locked doors. 2013-10-27 22:26:01 -05:00
Kevin Granade 669c78687d Enlarge shelter basement, give it some locked doors, and spawn way more items and some zombies one time out of 10. 2013-10-27 22:26:01 -05:00
KA101 827b56cd45 Mutation stat-up accessibility
Buffs Bird and Cephalopod categories by giving them access to
Insane-level mutations: Bird gets PE (eagles, etc) and Cephalopod gets
DX/IN (tentacles, cephalopods are smart IRL, Cthulhuoid reference).
2013-10-27 22:23:01 -05:00
Kevin Granade 61c1548a07 Merge gun and monster tweaks, PDA fix, help text fix, and ammo tweak. 2013-10-27 22:19:48 -05:00
Kevin Granade a7d4c5bfa1 Merge some vehicle fixes and a firetruck. 2013-10-27 21:47:50 -05:00
Kevin Granade 20ea5cbbed Merge an off-by-one fix and mapgen cleanup. 2013-10-27 21:27:25 -05:00
Rivet-the-Zombie c927e2e1fa Damage stuff! 2013-10-27 21:09:03 -05:00
Rivet-the-Zombie bf89e159a0 Archery file! 2013-10-27 20:09:28 -05:00
Christian Buskirk 25fc086f5e Fix array size 2013-10-27 17:48:04 -07:00
Christian Buskirk 07cf8ce1e5 Move gas station generation 2013-10-27 16:01:30 -07:00
Christian Buskirk c68293e70e Move park generation 2013-10-27 15:45:21 -07:00
Christian Buskirk 787bec59e9 Move pool generation 2013-10-27 15:37:14 -07:00
Christian Buskirk b40b325162 Move parking lot generation 2013-10-27 15:22:37 -07:00
Christian Buskirk 5abd8c6cf3 Finish moving river generation 2013-10-27 14:58:25 -07:00
Christian Buskirk 8df0898c2d Move river curved (not) generation 2013-10-27 14:49:16 -07:00
Michael 2d5d02fe9a Changed some things about the .50 BMGs (Mainly ammo count) 2013-10-27 16:34:52 -05:00
Michael 80f688e97f Increased ammo count for .50 BMGs 2013-10-27 16:31:42 -05:00
Christian Buskirk 286b2b5cfe Increase some wildlife hp amounts 2013-10-27 14:22:36 -07:00
Kevin Granade 5b6b804a50 Merge several rendering related fixes. 2013-10-27 16:10:35 -05:00
pitrdevries 5c92ae41ee Small grammatical changes; getting used to git.
I think I've got this set up now. I hope to go though all the display
text and make things a bit more consistent and correct. I was thinking
that every item description should include what is is and what it does
(at least vaguely) but I want to try and keep most of the original text
so as not to remove any personal flourishes. And this is just a tiny PR
so I can confirm I've got git configured right; in my future PR's much
more would be dense.
2013-10-27 13:20:35 -07:00
NaturesWitness 8af00c710d Armored car rebuild
Redesigned the armored car.  Spiked plating on the front ram bars,
headlights moved, quarterpanels and boards added so it actually has
walls, and removed extra steering wheel.
2013-10-27 15:55:24 -04:00
NaturesWitness 25196640bb Can find welding goggles in welding cart
Adds a chance to find welding goggles in welding carts.  I'm not quite
sure how the chance value works in these so I just guessed with 30.
Does it mean 30% chance it'll be there?
2013-10-27 15:30:03 -04:00
Christian Buskirk ffbf09d758 Remove guilt from dog, cat, and bobcat?
This might be fine later when we have varying degrees of guilt, but for
the moment I don't think killing a bobcat is going to make me as sad as
killing a child.
2013-10-27 11:22:40 -07:00
Christian Buskirk e53d540c38 Dementia small change 2013-10-27 11:20:03 -07:00
Ian Strachan 24358a71d2 Fix off-by-one error resulting in an out-of-bounds error. 2013-10-27 14:19:52 -04:00
NaturesWitness c0b8c77b5e Finish rebuilding Military truck
Finished re-armoring military truck, streamlined wheel listings, gave
ram bars on the front spiked plating because why not.
2013-10-27 14:15:39 -04:00
illi-kun de143792e2 Added fire truck 2013-10-27 21:45:33 +04:00
Ian Strachan 5ae86518a5 Move armor to its own location. 2013-10-27 13:24:27 -04:00
NaturesWitness 58a09b050f Military truck rebuild
Rebuild for military truck, removes most armor plating as it doesn't
work in current system.
2013-10-27 12:25:16 -04:00
cib a22867c857 Add input delay option for SDL. 2013-10-27 15:54:17 +01:00
cib 43e47d235c Fixed a graphical glitch appearing in Deon's tileset. 2013-10-27 15:16:52 +01:00
cib 6de3f68c19 Tiles mode map drawing now uses caching and buffer copying to avoid unnecessary draw calls.
Addresses issue #3433
2013-10-27 14:14:06 +01:00
illi-kun ec729bbe55 Customize scrollbar 2013-10-27 15:55:27 +04:00
illi-kun 8f932ce8de Replace 'firearms' by 'marksmanship'
per #3737, plus fix minor typo
2013-10-27 03:50:29 -07:00
illi-kun f34a0cb316 All borders are dark gray (no lite/dark gray mix anymore!)
See snapshots below for details.

Additionally, comparison function was a little bit simplified.
2013-10-27 03:03:03 -07:00
illi-kun 7745617fa1 Update options descriptions according to #3869
Restart isn't actually required anymore.
2013-10-27 01:14:13 -07:00
Christian Buskirk 9dccb02bb6 Move bridge and highway generation 2013-10-26 23:48:45 -07:00
Rivet-the-Zombie b13d31051b Tweaks. 2013-10-27 00:52:56 -05:00
Rivet-the-Zombie 7f9cf43604 Fixes PDA flashlight functionality. 2013-10-26 23:45:43 -05:00
Christian Buskirk 16356749be Move fungal bloom generation 2013-10-26 21:39:38 -07:00
Christian Buskirk 106d1e5130 Cat pack changes
Because while cats tend to form packs, they are solitary hunters and you
are much more likely to find on alone then in a group.
2013-10-26 21:31:06 -07:00
Christian Buskirk 25ac3ae0ef Monster name reverts 2013-10-26 21:30:41 -07:00
Christian Buskirk 039483fab2 Remove unneeded game argument 2013-10-26 21:25:23 -07:00
Rivet-the-Zombie 8ee4dfe676 Some final tweaks. 2013-10-26 23:13:46 -05:00
Rivet-the-Zombie 7fdc4b57b1 Bashing damage. 2013-10-26 23:10:48 -05:00
Rivet-the-Zombie 5e5112e42c More to-hits. 2013-10-26 23:02:36 -05:00
Rivet-the-Zombie aa8916170c Volume stuff. 2013-10-26 22:50:54 -05:00
Rivet-the-Zombie a51495ea47 Colors! 2013-10-26 22:32:47 -05:00
Christian Buskirk 4e11db9d5c Move 4-way road generation 2013-10-26 19:44:08 -07:00
Christian Buskirk a4a010f06a Merge to mainline
Conflicts:
	mapgen.cpp
2013-10-26 19:13:12 -07:00
Christian Buskirk d2dafffc4e Add diagonal mapgen support 2013-10-26 18:57:10 -07:00
Kevin Granade b30ea8b1ab Merge monster pileups, item number display, vehicle roof tweaks, lab note display, and foodco kitchen buddy. 2013-10-26 20:22:52 -05:00
Kevin Granade 61fb07fcb1 Merge item stat tweaks, build fixes, and vehicle repair fixes.
Conflicts:
	data/json/items/ammo.json
2013-10-26 20:08:30 -05:00
Anuradha Dissanayake 16869a7ee1 Fix VS compile after recent changes 2013-10-27 12:27:03 +13:00
NaturesWitness 922b85716b mounted electric forge, and kitchen buddy bug fix
Added the "mounted electric forge", which is basically a regular
electric forge that has been welded to a vehicle to use the vehicle's
storage battery.  Also altered the electric forge item description to
mention you can do this.
Fixed a bug that prevented the kitchen buddy from working, forgot to add
stuff to inventory.cpp.
2013-10-26 18:38:52 -04:00
NaturesWitness 9e6dfe83d6 kitchen buddy recipe and weldrig crafting skill adjustment 2013-10-26 17:15:21 -04:00
NaturesWitness d8961a5924 weight and volume rebalance of welding rig and kitchen buddy
I originally took the weight and volume of these items from the kitchen
unit.  After comparing some of the values on these to what the totals
for the parts themselves are, I've come to the conclusion the values on
the kitchen unit are completely insane.  Rebalancing the stuff I made to
more reflect reality, and may adjust kitchen unit in a seperate PR.
2013-10-26 17:00:45 -04:00
Ian Strachan 06722366fd Remove an incorrect change wheel check. 2013-10-26 15:11:41 -04:00
NaturesWitness d14beeb0e4 Remove quotations from kitchen buddy description
Apparently putting quotations in an item description is a no-no.
2013-10-26 14:49:29 -04:00
Ian Strachan f7a63e14e6 Lab notes no longer change each time you use a computer. 2013-10-26 14:45:21 -04:00
Ian Strachan 0f016efe43 When repairing a broken part with bigness, use the new part's bigness. 2013-10-26 14:19:58 -04:00
NaturesWitness 3d58461d7a Remove dependencies from basic release build
Managed to get the basic "release" build working again, this lets
codeblocks compile Cata without gettext or SDL.
2013-10-26 13:09:59 -04:00
illi-kun cfed9b0348 more roofs for cube van, hippie van, and ambulance 2013-10-26 12:48:55 +04:00
illi-kun 90e52524e9 restore () 2013-10-26 00:58:44 -07:00
illi-kun 6b61ee93bf restore () 2013-10-26 00:55:31 -07:00
Rivet-the-Zombie 9691ff7cff Fixing weird volumes. 2013-10-26 02:28:43 -05:00
Rivet-the-Zombie 68f2f7b02f Fixes weights on 50 caliber rounds. 2013-10-26 02:18:24 -05:00
Kevin Granade 0eaaafda20 Merge throwing knives, ammo audit, typo fix and preening vehicle definitions. 2013-10-26 01:14:42 -05:00
Kevin Granade 8338c086e4 Merge mapgen cleanup and curvy road tweaks, grapics options tab, code cleanup, instant tileset changes, off-map funnel filling and item highlighting fixes. 2013-10-26 00:37:48 -05:00
GalenEvil decca955c2 added furniture drawing section to auto-highlight if there are items on it.
removed drawing items if it would be on furniture.
2013-10-25 22:33:29 -05:00
GalenEvil 3a1768936e Adds item highlighting to ground tiles w/ items, and vehicle cargo with items in them
If there is a container at the location and there is at least 1 item at the location the highlight will be placed also.
2013-10-25 22:19:23 -05:00
Rivet-the-Zombie faf5278525 More little fixes. 2013-10-25 22:06:19 -05:00
Kevin Granade 1b65f9879a Merge shocktonfa. 2013-10-25 21:17:05 -05:00
Kevin Granade c3d0e82469 Merge big creature rework.
Conflicts:
	data/json/monstergroups.json
	data/json/monsters.json
	mongroup.h
2013-10-25 20:59:30 -05:00
Ian Strachan 539fa7e406 Highlight vehicle squares with items in them. 2013-10-25 21:08:46 -04:00
GalenEvil 6b70f9d0f3 Allows in-game dynamic switching between different tilesets and also between tiles and ASCII mode when toggling the "use tiles" option 2013-10-25 19:56:56 -05:00
Rivet-the-Zombie 891d81e77c Colors fix! 2013-10-25 19:26:50 -05:00
StrangerState 7bcf9009d0 Adjustments to zombie dodge levels, melee dice and skills 2013-10-25 20:06:01 -04:00
StrangerState e5f9eb4263 Adjusted hunter zombie tags, lowered zombie dog hp and melee cut damage 2013-10-25 19:00:58 -04:00
fnord 2ea1afb4d3 NotDyslexicHonest. Change trap::funnel_charges_per_turns to trap::funnel_turns_per_charge 2013-10-25 17:51:49 -05:00
StrangerState eef4a5d6aa Added Hunter Zombies 2013-10-25 18:45:44 -04:00
fnord 1d5c55b9aa map::loadn; make use of trap / item loops to retroactively fill the
contents of out-of-map funnels, based on actual weather history
2013-10-25 17:10:10 -05:00
fnord b3ab68db01 add retroactively_fill_from_funnel( ), ajust add_rain_to_container to work with
multiple charges, make fill_funnels work with the latter (and set timestamp)
2013-10-25 17:10:02 -05:00
fnord 6d9a734853 Move bits of funnel logic off to where it makes sense / accessible to map
item: add_rain_to_container(bool acid, int charges);
trap: funnel_charges_per_turn( int rain_depth_mm_per_hour );
2013-10-25 17:09:51 -05:00
fnord 607fa77271 fill_funnels; shift part of biggest-watertight-container-holding-water-acid-or-none check off to item 2013-10-25 17:09:39 -05:00
fnord cc025699a8 added item::is_watertight_container(). Shift part of funky funnel container detector into is_funnel_collector() 2013-10-25 17:09:11 -05:00
fnord a74dd676a0 trap::is_benign() checks trap::bool benign. added trap::funnel_radius 2013-10-25 17:08:43 -05:00
Rivet-the-Zombie 00bf4695ee To-hit shenanigans. 2013-10-25 17:05:02 -05:00
Rivet-the-Zombie 208f1345de First pass! 2013-10-25 16:21:17 -05:00
Rivet-the-Zombie b536ddd06e Volume fix! 2013-10-25 15:45:10 -05:00
StrangerState cb8807c5c7 Zombie stat rebalance 2013-10-25 15:57:46 -04:00
StrangerState 6cc1dc3e7d Revert zombie changes 2013-10-25 15:50:38 -04:00
illi-kun 76e45071bd modification of advanced inventory 2013-10-25 16:09:09 +04:00
illi-kun 01535e43fa Modification according to #2946 2013-10-25 15:57:18 +04:00
illi-kun 5bb5e7e8c6 Restore fine wheels pattern 2013-10-25 03:39:31 -07:00
illi-kun c0492021bd final fix 2013-10-25 03:15:42 -07:00
illi-kun 4c09bb8f99 even more roofs for rv 2013-10-25 03:10:10 -07:00
illi-kun 865f8d5d21 rv - roof update 2013-10-25 02:47:52 -07:00
Julian Snitow a2af97d931 fix recipe typo: incendary -> incendiary 2013-10-25 02:06:04 -07:00
StrangerState e607f46a01 mondeath edits, removed cut damage from normal zombie melee attack 2013-10-25 04:26:09 -04:00
StrangerState 91d9278d9f Tweaks to monster spawning 2013-10-25 03:21:29 -04:00
Rivet-the-Zombie c884e70171 Spelling and stuff! 2013-10-25 01:31:55 -05:00
StrangerState a4c0fa8fc7 switch for cave generation, added different item sets 2013-10-25 01:46:11 -04:00
Rivet-the-Zombie 2c43a933aa Missing flags. 2013-10-25 00:43:20 -05:00
Kevin Granade 1b24ed3446 Merge pull request #3844 from Rivet-the-Zombie/Typo-fix!
Fixes typo in new item.
2013-10-24 21:11:00 -07:00
Tsu 008552bb7b Update TsuTiles to latest version. 2013-10-24 23:07:39 -05:00
Christian Buskirk 038155d225 Fix mapgen bug 2013-10-24 20:57:44 -07:00
Kevin Granade 733409bbd7 Merge field API refactor, fungifying marloss, scrolling vehicle menu, and fungal infection fixes. 2013-10-24 22:45:45 -05:00
Christian Buskirk c0f666d8cc Style update on map::generate 2013-10-24 20:05:29 -07:00
GlyphGryph 8a1b6ad45b Merge pull request #3847 from Rivet-the-Zombie/Acid-volume!
Minor adjustments to battery recipe.
2013-10-24 19:54:20 -07:00
StrangerState af8a7e63f9 Revert bad translations macro 2013-10-24 22:48:52 -04:00
GlyphGryph d88fa05bb5 Merge pull request #3773 from kevingranade/cleanup-player-use
Cleanup player::use() and fixup iuse methods that depended on weirdnesses thereof.
2013-10-24 19:45:22 -07:00
Christian Buskirk c153e84e6b Move T-intersection road 2013-10-24 19:16:21 -07:00
Christian Buskirk 6d22f77ce6 Raise fungus chance to a reasonable amount 2013-10-24 17:44:12 -07:00
Christian Buskirk 5e778f9f80 Make fungicide actually cure the fungus disease
Also adds message when successfully used.
2013-10-24 17:43:57 -07:00
Ian Strachan 61fa40da52 Remove veh_interact::cursor_x and cursor_y, which are no longer used. 2013-10-24 17:50:31 -04:00
illi-kun 5cfa672ee4 remove commented out code 2013-10-24 14:48:50 -07:00
illi-kun ab6a3c61e6 remove commented out code 2013-10-24 14:42:50 -07:00
illi-kun 96125bac5b polishing by astyle 2013-10-25 01:39:11 +04:00
Ian Strachan 375a1ba995 The veh_interact window now scrolls when you move, rather than moving the cursor. Infinite construction space! 2013-10-24 17:32:39 -04:00
illi-kun 9e91caae57 changed tabs order 2013-10-24 13:49:19 -07:00
Christian Buskirk aa795bf830 Added sidewalked curved road 2013-10-24 13:18:57 -07:00
Christian Buskirk 5aac8503c0 Tweak curved roads
Remove edge bushes
Make slightly more circular
Improve continuity
2013-10-24 12:54:44 -07:00
Christian Buskirk fac3e64199 Move curved road generation 2013-10-24 12:45:43 -07:00
Christian Buskirk 5c29dccaa2 Move straight road generation 2013-10-24 12:08:20 -07:00
illi-kun ba6017be21 Add separate page for graphics settings
It's time for adding a new tab, isn't?

This change also updates position of the scrollbar (move it to 1 line down)
2013-10-24 11:52:41 -07:00
Christian Buskirk 91b5379f50 Move spider pit generation
+a bit more style cleanup
2013-10-24 11:04:37 -07:00
Christian Buskirk 33264648f7 Move hive generation to building_generation.cpp 2013-10-24 10:38:18 -07:00
Christian Buskirk bbe5978939 Make shrubs spawn in clumps of strawberries or blueberries 2013-10-24 10:08:40 -07:00
Christian Buskirk a5acdbe279 Update building_generation.cpp coding style 2013-10-24 09:50:39 -07:00
Christian Buskirk 11904020ee Marlossify bush spawning fix 2013-10-24 09:31:43 -07:00
NaturesWitness 18549698d3 Fix formatting
I set Astyle in codeblocks to the options listed in contributing.md, so
that makes things look the way you mentioned they should.  But when I
tried setting return to just 100, it quit working.  I tried a couple
variations, and the only way this works right is with "return
it->charges -=100;".  If this is a bug, I think it must be somewhere
else in Cata's code, because it doesn't seem to be here.
2013-10-24 12:25:42 -04:00
Christian Buskirk b82f00016f Spore spawning fix 2013-10-24 09:17:36 -07:00
Christian Buskirk efbaadc136 Fungal spire patch tweak 2013-10-24 08:46:41 -07:00
Rivet-the-Zombie 27487210e3 Recipe tweak. 2013-10-24 10:27:08 -05:00
Christian Buskirk a1a4bc91fb Marloss berries are a fungus thing, not an ooze one 2013-10-24 00:41:51 -07:00
Christian Buskirk c0b78a2d2b Adjust portal in anomaly 2013-10-24 00:00:11 -07:00
fnord 307096268b prior commit: fix json commas 2013-10-24 01:34:32 -05:00
fnord 7513e29757 Merge happy anti-materiel rifle of happiness and pew pew 2013-10-24 01:24:54 -05:00
Christian Buskirk a031c979f2 Remove last "spawn" for marloss berries 2013-10-23 23:24:39 -07:00
Christian Buskirk 32f7274df4 Make marloss berries pickable 2013-10-23 23:24:06 -07:00
fnord d0873dedeb Additional furniture door blocking: oven, washer, dryer, bathtub, sofa, dumpster. 2013-10-24 00:52:14 -05:00
fnord 3b65e3b88a Boost pallaside gate min str to match door. Admittedly I can't tell if
they're actually sturdier or not, but max str is more so...
2013-10-24 00:47:45 -05:00
fnord 67d6d71312 terrain.json: boost minimum strength levels for doors walls and fences, in light
of new bash pileup logic. A standard door will hold off 2 zeds, 3 if boarded or blocked,
4 if boarded and blocked.
2013-10-24 00:41:42 -05:00
fnord 06fa14c350 furniture.json: add BLOCKSDOOR flag to furnitures that were hardcoded into old
map::has_adjacent_furniture if statement
2013-10-24 00:40:35 -05:00
fnord 7e1e0831eb monster::bash_at:
* fix typo that doubled the strength of helpers.
* fix typo that made mobs shoulder to shoulder to main basher contribute 100%
 str. Now (as stated) only mobs BEHIND the main basher add 100% bash strength.
2013-10-24 00:37:11 -05:00
fnord bb7726d1cd map::has_adjacent_furniture checks new "BLOCKSDOOR" flag on furn_t, instead of using
a great big if or or or or or or or statement
2013-10-24 00:34:38 -05:00
StrangerState f540cc2d1b Various tweaks and fixes 2013-10-24 01:27:44 -04:00
Rivet-the-Zombie bcef976699 Recipes. 2013-10-24 00:13:49 -05:00
Rivet-the-Zombie 39071edd21 Fixes typo in new item.
This is what I get for rushing things.
2013-10-24 00:12:20 -05:00
Rivet-the-Zombie ffd63610ac Throwing knives! 2013-10-24 00:01:39 -05:00
Kevin Granade 2bacc56f06 Merge content tweaks and new items. 2013-10-23 22:31:33 -05:00
atomicdryad 133458b4a3 Merge pull request #3841 from kevingranade/monster-spam-two
Oops, fix the fix to preventing invisible monster spam.
2013-10-23 20:18:15 -07:00
Rivet-the-Zombie d8fd8df52a Recipe to make weak acid from water using electrolysis. 2013-10-23 22:14:00 -05:00
Kevin Granade b38bd1eacf Oops, fix the fix to preventing invisible monster spam. 2013-10-23 22:10:17 -05:00
fnord 3c1f24558a Merge remote-tracking branch 'origin/master' into jsonbash 2013-10-23 22:08:46 -05:00
Rivet-the-Zombie 6a633386a0 Finishing. 2013-10-23 22:08:37 -05:00
Rivet-the-Zombie eaae060ea4 Atomic coffeepot! 2013-10-23 22:03:53 -05:00
Rivet-the-Zombie 3bcf603b4d Atomic nightlight! 2013-10-23 21:56:20 -05:00
Kevin Granade 0d5264e3f2 Merge double-checking suicide, preventing invisible monster spam, and player epitahs. 2013-10-23 21:43:45 -05:00
Rivet-the-Zombie 1d59d3e542 Adjustments! 2013-10-23 21:40:19 -05:00
Ian Strachan fdffd4c1f3 You can now enter your last words. 2013-10-23 20:39:32 -04:00
NaturesWitness c7d52cce25 FOODCO kitchen buddy first part 2013-10-23 20:08:26 -04:00
Kevin Granade 82ef1fffe2 There is no dkgreen, only zuul. 2013-10-23 19:05:12 -05:00
Kevin Granade 46b9508837 Restyle new road corner code. 2013-10-23 19:03:40 -05:00
Kevin Granade 02a142608d Switch to new overmap shifting code unconditionally in map::loadn(). 2013-10-23 19:03:16 -05:00
Kevin Granade 3c8b78ea9d Restyle new footstep animation code. 2013-10-23 19:01:55 -05:00
Rivet-the-Zombie 8d26de57d3 Spelling. 2013-10-23 18:55:10 -05:00
StrangerState 66b974280f Platform specify translations macro temp fix and fix bullfrog vermin status 2013-10-23 19:46:03 -04:00
Kevin Granade 1b891d7382 Merge a big pile of features and bugfixes. 2013-10-23 18:26:22 -05:00
Christian Buskirk 5f1b525c15 Fix combat spam 2013-10-23 16:15:44 -07:00
StrangerState a579d588a1 Fix some missing vermin tags 2013-10-23 19:13:41 -04:00
Kevin Granade 928cbc11bd Merge branch 'master' of github.com:CuriousRaven/Cataclysm-DDA into dda-master 2013-10-23 18:13:25 -05:00
Rivet-the-Zombie 3c4299cdf0 Weights and such. 2013-10-23 18:13:10 -05:00
GalenEvil 6bd530951a Just adds translations.cpp to the cbp file 2013-10-23 18:10:37 -05:00
Christian Buskirk a685a75292 Add double suicide query 2013-10-23 16:03:38 -07:00
Christian Buskirk ef30ae49db Fix required skills for recipes 2013-10-23 15:57:36 -07:00
Rivet-the-Zombie 5440ec203d Minor fix. 2013-10-23 17:46:29 -05:00
StrangerState ab53033ca1 fixed ascii symbol for foxes, edits to some descriptions 2013-10-23 18:45:34 -04:00
NaturesWitness 03ae3a9d94 component and required skill fix
ruduced tactical tonfa difficulty to 6, 7 seemed too high.  Also fixed
powered quarterstaff needing wire instead of copper cable.  Finally,
removed required skill melee 1 from both, not sure if required skill
even supports multiple requirements.  Actually, can't get ANY required
skills to show up in game at ALL, are they broken right now?
2013-10-23 18:43:53 -04:00
Rivet-the-Zombie 4aebcd4432 First pass. 2013-10-23 17:40:25 -05:00
Christian Buskirk fb50621d9f Remove time references in hunger/thirst messages
Also slightly reduce message frequency
2013-10-23 15:12:55 -07:00
Christian Buskirk 09c9746e05 Make vomit hunger/thirst scale 2013-10-23 15:09:15 -07:00
atomicdryad 2bc7b763f8 Merge pull request #3792 from GalenEvil/vpart_open_damage
VPart tile fix to show Open / Broken tiles
2013-10-23 15:06:47 -07:00
StrangerState eabc74bb8d Implemented vermin, updated some spawn lists and monster type definitions 2013-10-23 17:56:46 -04:00
atomicdryad d8837433cc Merge pull request #3826 from i2amroy/Corpse-fix
Nerf corpse volumes
2013-10-23 14:34:52 -07:00
fnord b2a9ac9b62 map: add field functions to match add/remove_field style invocation, and simplify code
elsewhere.

 int get_field_age(const point p, const field_id t);
 int get_field_strength(const point p, const field_id t);
 int adjust_field_age(const point p, const field_id t, const int offset);
 int adjust_field_strength(game *g, const point p, const field_id t, const int offset);
 int set_field_age(const point p, const field_id t, const int age, bool isoffset = false);
 int set_field_strength(game *g, const point p, const field_id t, const int str, bool isoffset = false);
 field_entry * get_field( const point p, const field_id t );
as per:
 bool add_field(game *g, const point p, const field_id t, unsigned int density, const int age);
 bool add_field(game *g, const int x, const int y, const field_id t, const unsigned char density);
 void remove_field(const int x, const int y, const field_id field_to_remove);
removing the need to:
 field & usedonlyonce = m.field_at(x, y);
 if ( usedonlyonce.findField(fd_fire) ) {
    if ( usedonlyonce.findField(fd_fire).getDensity() == 1 ) {
        m.remove_field(x,y, fd_fire);
    } else {
        usedonlyonce.findField(fd_fire).setDensity(usedonlyonce.findField(fd_fire).getDensity() - 1);
    }
 }
in favor of:
 m.adjust_field_strength(x, y, fd_fire, -1);
2013-10-23 16:32:01 -05:00
fnord 3c8b38641d Fix wacky weather hijinks on new non-spring season games 2013-10-23 16:28:43 -05:00
Christian Buskirk 83078def51 Fix corpse volumes 2013-10-23 14:15:44 -07:00
Rivet-the-Zombie f94a8f6fce Adds reinforced glass sheet recipe. 2013-10-23 14:25:46 -05:00
StrangerState fb730c30c4 New animals and animal groups & rebalaces to existing animals and groups 2013-10-23 14:27:55 -04:00
Tommy cdc006a751 Better i18n for choose_adjacent(). 2013-10-24 07:17:14 +13:00
Tommy 52d1f5efc7 Mark some missed strings. 2013-10-24 07:04:05 +13:00
Rivet-the-Zombie c158120db4 Grammar fixes. 2013-10-23 12:10:50 -05:00
uzername 8b1bc8b3e2 Road turns are curvy now (still maintainig the same road width) 2013-10-23 19:22:36 +03:00
uzername b5b129aec5 Windows dependencies listed in cbp file 2013-10-23 16:22:48 +03:00
Rivet-the-Zombie 79a68a909c Vinegar tweak. 2013-10-23 02:16:12 -05:00
Rivet-the-Zombie fcb035836c Final fixes. 2013-10-23 02:05:56 -05:00
Rivet-the-Zombie 7ddd0f35bb More fixes. 2013-10-23 01:41:55 -05:00
GalenEvil 80bfe0085d Moved draw_footsteps out to the animation_curses|tiles files
Added animation functions (init, do, void) for footsteps in cata_tiles.
2013-10-22 23:38:24 -05:00
Kevin Granade 581b7d38ee Add upper thresholds for scent sensitivity, scent should only allow monsters to track the player to within a few squares. 2013-10-22 23:29:55 -05:00
Kevin Granade d77a99972c Reduce sensitivity of non-keen nosed monsters. 2013-10-22 23:23:23 -05:00
Kevin Granade 3dd987de54 Random restyling. 2013-10-22 23:22:08 -05:00
GlyphGryph 5fb8e82675 Added zombears. Bear population zombifies over time. Giant spiders become more common. 2013-10-22 23:50:17 -04:00
GlyphGryph 54ea963271 Added infrastructure for spawns beginning or ceasing after a certain point. 2013-10-22 23:49:22 -04:00
Rivet-the-Zombie 59a27598e9 Overall fixes! 2013-10-22 21:55:25 -05:00
NaturesWitness 9a50e3c16c Fix missing commas
I think I have this right, actually can recipes even have more than one
skill requirement?
2013-10-22 20:18:35 -04:00
Kevin Granade 07b171b046 Tiny tweak to powdered milk definition. 2013-10-22 19:10:08 -05:00
Ian Strachan 7451bf18d9 Update the ambulance, too. 2013-10-22 20:09:15 -04:00
Kevin Granade c3f0766535 Merge item sweaks, powdered milk, and translation update. 2013-10-22 19:00:58 -05:00
Kevin Granade 99ea8200fe Merge list monsters feature and stricter json parsing. 2013-10-22 18:34:36 -05:00
Kevin Granade d4fe66a096 Merge defense mode persistence issue and missing weapon stuck message. 2013-10-22 18:24:34 -05:00
Kevin Granade de9ddceb93 Merge fix to nonlocalized build strings.
Conflicts:
	data/json/items/armor.json
2013-10-22 18:24:24 -05:00
Rivet-the-Zombie e32adddc9e Colors! 2013-10-22 18:00:44 -05:00
Tommy a7b8d2a997 Fix typo. 2013-10-23 09:18:53 +13:00
Tommy a18a104fbb Merge Launchpad translations. 2013-10-23 09:11:30 +13:00
fnord 2051d76a6b data/json/**: cleanup sloppy json that breaks parsers 2013-10-22 15:10:53 -05:00
Tommy e1623cbe1e New languages: cs (Czech), vi (Vietnamese). 2013-10-23 09:10:53 +13:00
fnord 8b91af00ba json.cpp: whine and throw for missing or badly placed commas, to enforce portability 2013-10-22 15:09:38 -05:00
Tommy 7e40eb7ab2 Update .pot file. 2013-10-23 09:09:11 +13:00
Tommy 22d7a743da Merge json strictification from _ branch. 2013-10-23 09:06:29 +13:00
Rivet-the-Zombie 537861db6c Adds powdered milk, spawns, and recipe! 2013-10-22 15:03:30 -05:00
Ian Strachan 68da7b62ef Update the police car with car battery, quarter panels, wide windshields, and moved headlights. 2013-10-22 13:57:56 -04:00
Rivet-the-Zombie 5dcfd17628 A few fixes. 2013-10-22 12:57:18 -05:00
Ian Strachan 013ef5ef89 Fix weapon sticking not producing a message (among other things) 2013-10-22 13:43:07 -04:00
fnord 87b2775599 JsonObject, JsonArray: std::string dump_input() outputs in-context portion of input for copying and error diagnostics 2013-10-22 12:20:03 -05:00
OzoneH3 bc3570dbd6 list_monsters() Lists all visible Monsters.
Accessed through the 'V' menu with Tab, '<' or '>'.
2013-10-22 16:18:14 +02:00
GalenEvil 2b57246dc2 Fixes:
* Weirdness where defense mode changes persist over multiple defense mode games and into the normal game mode.
* Prevents stacking of defense mode changes over successive games.
2013-10-22 01:33:38 -05:00
GalenEvil 11541166bc change how the vehicle part subtile is picked so that it's not going to break as easily when other additions are made. 2013-10-22 00:09:31 -05:00
GlyphGryph cf359b3b2a Merge pull request #3788 from Rivet-the-Zombie/Armor-fix!
Balances leather armor's stats a bit better.
2013-10-21 21:40:54 -07:00
GlyphGryph 8c64ba9d6f Merge pull request #3777 from Rivet-the-Zombie/Restoring-sanity-to-clothing!
READY - Restoring sanity to the clothing file!
2013-10-21 21:39:48 -07:00
Rivet-the-Zombie 9dc67f98b2 Bags now 100% larger in-pocket. 2013-10-21 23:32:46 -05:00
Tommy d39fbcb4b4 Preemptively include <locale> for nonlocalized translations.h. 2013-10-22 17:18:12 +13:00
Tommy d88b9fb699 Tweak locale headers slightly. 2013-10-22 16:56:40 +13:00
Rivet-the-Zombie 0ddb42d9bf Sneakers. 2013-10-21 22:55:21 -05:00
Tommy ad23f4097e Move tutorial messages to json. 2013-10-22 16:43:53 +13:00
Tommy aed2e68c09 Fold popups to FULL_SCREEN_WIDTH-2 in stead of 99999. 2013-10-22 16:42:54 +13:00
Rivet-the-Zombie d73d18ad4f Proper fix! 2013-10-21 22:36:31 -05:00
Rivet-the-Zombie ce27ff80d4 Revert "Materials fix."
This reverts commit a2adb4d63c.
2013-10-21 22:35:55 -05:00
Tommy 3f514078e2 Merge branch 'master' into _ 2013-10-22 16:32:00 +13:00
Tommy 6d6c527f3f Strictify a whole lot of json. 2013-10-22 16:26:32 +13:00
Tommy 2f81f4f50a Merge branch 'master' into _ 2013-10-22 16:19:20 +13:00
Kevin Granade 10ac283d73 Add current version of TsuTiles. 2013-10-21 22:12:13 -05:00
Kevin Granade 341d7df151 Merge cargo handling fix, safemode tweak, withdrawal nerf, and broken/open vehicle component support. 2013-10-21 22:06:44 -05:00
Tommy 5721a50f8c Gettext for tutorial character name. 2013-10-22 16:01:50 +13:00
Rivet-the-Zombie e3454c63ef Weights cleanup. 2013-10-21 21:14:22 -05:00
Kevin Granade df426c3d93 Merge fix of crash when starting defense mode. 2013-10-21 19:34:56 -05:00
Rivet-the-Zombie a2adb4d63c Materials fix. 2013-10-21 19:29:36 -05:00
NaturesWitness 04d99bc96e Powered quarterstaff and generalize iuse::tazer function
Adds the powered quarterstaff, recipe for same and removes the name
"tazer" from the tazer iuse textstrings, so the function can be used by
other items.
2013-10-21 20:23:11 -04:00
GalenEvil 43af3d0592 Get defense mode init_mtypes to not reference g->mtypes anymore since it is never populated 2013-10-21 19:06:16 -05:00
NaturesWitness fd107ffa3d tactical tonfa recipe and item spawn 2013-10-21 19:53:47 -04:00
Christian Buskirk 7ade9c9327 Lower adult fungaloid frequency slightly 2013-10-21 16:50:18 -07:00
GalenEvil 7879d6c092 changed part_id_string again to accept a char &part_mod. Cleaner than working with string vectors for determining what modification tile to use. 2013-10-21 17:28:32 -05:00
GalenEvil 7378933f45 Changes the vehicle::part_id_string(int p) to return a vector that denotes the original id, and also if the part is open (for doors) or broken (for everything). If broken or open it should pick the proper subtile if it's available for that tile.
May change back from vector to string, and just have a char& argument passed in to collect the modifier.
2013-10-21 17:02:45 -05:00
GalenEvil a4958d2167 Initial Commit -- Gets rid of stupid testing DebugLog messages for a while ago 2013-10-21 16:34:34 -05:00
Christian Buskirk 6760fdbcec Remove extra parenthesis 2013-10-21 14:31:52 -07:00
Christian Buskirk eee8db0b30 Rough fix for withdrawal health bug 2013-10-21 14:30:42 -07:00
NaturesWitness 3cb2f59fbc Finish renaming, fixed warning
Turned out the warning came from me missing a line of code. D'oh.
Fixed that and renamed menu entries to tactical tonfa.
2013-10-21 16:30:40 -04:00
NaturesWitness 8b7dc674ff name changed to tactical tonfa, description tweak
Now called a tactical tonfa, thanks Petethegoat.  Does sound better than
survival tonfa, although I'm also debating going with SWAT tonfa, anyone
have an opinion?
2013-10-21 15:47:36 -04:00
NaturesWitness 904504b7b6 new iuse::tazer2 first try and formatting 2013-10-21 15:06:49 -04:00
NaturesWitness 5d1e989e48 Survival tonfa WIP
First parts of the survival tonfa.  Items and menus all work, but need
to make a new version of iuse::tazer with hardcoded energy use so
zapping things with this uses power.
2013-10-21 14:50:25 -04:00
Rivet-the-Zombie 9941588283 Gauntlets boost. 2013-10-21 13:43:19 -05:00
Rivet-the-Zombie c496e89827 Balances leather armor's stats a bit more. 2013-10-21 13:39:59 -05:00
fnord 5e5823d6da fix windows input: Revert "Tweak input polling in precipitanimation loop to consume repeated keypresses properly."
This reverts commit a0026fb21d.
2013-10-21 13:27:47 -05:00
Ian Strachan d3cf5fa97f Slide the muffler item over into the vehicle parts item file. 2013-10-21 13:18:08 -04:00
Julian Snitow 7f23441b95 Making splints is considered basic first aid. A monkey could do it. 2013-10-21 05:47:38 -07:00
fnord fa0df7007f merge crashfix, spawnstuff, season option, rain optimization, vehicle_tile_wtf fix 2013-10-21 04:09:36 -05:00
fnord 10734e219a Actually remember ignored monsters even if a tree or such puts them out
of view for a moment. Still warn if they disappear and are seen again at
half distance or less.
2013-10-21 03:54:16 -05:00
Vlasov Vitaly 4a1da34465 Fix of crash on item lookup 2013-10-21 12:33:19 +04:00
Rivet-the-Zombie 225cd95adb I've just spent my evening googling 'what's the average weight of foo?'
and seeing how many sets of shoes will fit in different sizes of
backpack. Is this normal?
2013-10-21 02:09:26 -05:00
Rivet-the-Zombie 7a4522829e Some volume fixes.
No the volume of the wedding dress is not a typo. Those things take up a
whole room unto themselves.
2013-10-21 01:21:46 -05:00
Rivet-the-Zombie 833af97460 Flag maintenance. 2013-10-21 01:09:41 -05:00
Rivet-the-Zombie e203cd2198 Finished encumbrance. 2013-10-21 00:45:37 -05:00
fnord febc6f8213 fixorcomment 2013-10-21 00:41:52 -05:00
fnord 209a638559 Revert accidental merge of unrelated not-ready-for-pr branch
This reverts commit af357efcdd.
2013-10-21 00:37:20 -05:00
fnord 08f4e64479 fix mergeclash derpage 2013-10-21 00:31:39 -05:00
Rivet-the-Zombie 85933831c1 Encumbrance and restoring a missing item spawn. 2013-10-21 00:30:47 -05:00
Rivet-the-Zombie 70d4c87157 Warmth pass. 2013-10-20 23:54:58 -05:00
Rivet-the-Zombie 5396826745 Fixing further silliness. 2013-10-20 23:28:13 -05:00
Rivet-the-Zombie e8f24687bd Fixing thickness silliness. 2013-10-20 23:21:44 -05:00
Rivet-the-Zombie e250d8f255 Coverage pass. 2013-10-20 22:51:50 -05:00
Kevin Granade 1c57c88bc8 Tensy json syntax fix. 2013-10-20 22:29:52 -05:00
Kevin Granade 299385d091 Content merge.
Conflicts:
	data/json/recipes.json
2013-10-20 22:21:22 -05:00
Kevin Granade 518d06698f Merge new starting option, vehicle component tweak, body part coloration and color code expansion. 2013-10-20 22:03:04 -05:00
Rivet-the-Zombie 4f449dd743 Colors are done! 2013-10-20 21:59:49 -05:00
Rivet-the-Zombie 9b30d03501 Fixing colors.
There's like a hundred cases where the description says 'this black
so-and-so' and the item's color is pink or something. It's ridiculous.
2013-10-20 21:47:30 -05:00
Rivet-the-Zombie f95681c2db Weight is done! 2013-10-20 21:35:36 -05:00
GlyphGryph 7b3c301eea Mosquitos now appear in forest and field locations during twilight hours. 2013-10-20 22:35:16 -04:00
Rivet-the-Zombie efa77145b9 More weight stuff. 2013-10-20 21:23:27 -05:00
Rivet-the-Zombie 256d89813c More weights! 2013-10-20 21:09:11 -05:00
Kevin Granade 0b2e3190b4 Merge action cancel harmonization, input error handling in int query, mapgen bounds fix, and hallucination serialization. 2013-10-20 20:18:46 -05:00
Rivet-the-Zombie 7a55f611c5 Boiled leather armor. 2013-10-20 20:13:12 -05:00
Rivet-the-Zombie 72d6400b00 More re-sanifications. 2013-10-20 20:05:59 -05:00
Rivet-the-Zombie d098917903 Let's start getting weights in order! 2013-10-20 19:54:54 -05:00
Rivet-the-Zombie eb21cc4331 Tag fix. 2013-10-20 17:49:47 -05:00
Ian Strachan 76be648ea5 Add remaining color pair definitions. 2013-10-20 18:49:34 -04:00
Rivet-the-Zombie 92f23e481a Tweak. 2013-10-20 17:40:47 -05:00
Rivet-the-Zombie 9acb48e5ef Fur body armor! 2013-10-20 17:39:52 -05:00
Rivet-the-Zombie e1f44bd6b5 Recipe diversification. 2013-10-20 16:57:32 -05:00
Rivet-the-Zombie f0c57b1ed8 Metal plated leather body armor! 2013-10-20 16:52:51 -05:00
Rivet-the-Zombie 2a49b5f555 Leather motorcycle armor and spawns! 2013-10-20 16:46:11 -05:00
Ian Strachan 0857f60931 Properly save/load monster hallucination state. 2013-10-20 17:43:46 -04:00
Kevin Granade 4770d65056 Cleanup player::use() and fixup iuse methods that depended on weirdnesses thereof. 2013-10-20 16:42:38 -05:00
Rivet-the-Zombie f9bbeab272 Body armor! 2013-10-20 16:38:50 -05:00
Rivet-the-Zombie 3ad57edaa1 Helmet! 2013-10-20 16:32:48 -05:00
Rivet-the-Zombie 985ad6e138 Boots! 2013-10-20 16:03:49 -05:00
Rivet-the-Zombie e0b04061b5 Craftable gauntlets! 2013-10-20 15:58:49 -05:00
Rivet-the-Zombie 65e5b129cf Disassembly fixes. 2013-10-20 15:50:22 -05:00
Rivet-the-Zombie 24f77db4e5 Category fix. 2013-10-20 15:45:15 -05:00
Rivet-the-Zombie 0c116a9b47 Plastic mold recipe. 2013-10-20 15:44:41 -05:00
fnord da53b758d7 editmap: document [o] mapgen 2013-10-20 15:31:03 -05:00
fnord 4fbc953d39 editmap:: mapgen testing and applying via 'o'. Hilight monster pathing in NSA view mode. 2013-10-20 15:27:47 -05:00
fnord 6faab161cb monster:: add editmap as friend 2013-10-20 15:27:23 -05:00
fnord 0939601e79 map::load add optional argument for implicit overmap pointer. add editmap as friend 2013-10-20 15:26:06 -05:00
fnord 8f3b6a97cf Vehicle: Fix no cargo bug with fancy rng item damage. Also add check for invalid cargo spots in .json load 2013-10-20 15:19:37 -05:00
Rivet-the-Zombie 10091af5bb Formatting. 2013-10-20 11:40:46 -05:00
Rivet-the-Zombie 516b9c8fbe Rapid attack. 2013-10-20 11:28:43 -05:00
fnord 558e512e8d array overflow: begone 2013-10-20 10:37:53 -05:00
fnord caedde05a2 string_input_popup: don't insert junk on timeout() ERR 2013-10-20 10:30:40 -05:00
GlyphGryph bbda964e7a Added docs for new mongroup rules 2013-10-20 10:21:51 -04:00
GlyphGryph 8aab2a6c9c Added support for spawn rules limiting to time of day and season of year. 2013-10-20 10:12:34 -04:00
Christian Buskirk d136723b7c Add main menu limb colors 2013-10-20 01:49:01 -07:00
Rivet-the-Zombie c6c74c62b0 Adds a recipe for the switchblade. 2013-10-20 03:37:14 -05:00
Rivet-the-Zombie 73d0ad4aee Spawn tweak. 2013-10-20 03:33:45 -05:00
Rivet-the-Zombie 31939b295f Description clarify. 2013-10-20 03:32:18 -05:00
Rivet-the-Zombie 77e837e653 Plastic cop tonfa. 2013-10-20 03:30:49 -05:00
Rivet-the-Zombie aa721ff2a6 Tweak. 2013-10-20 03:12:47 -05:00
Rivet-the-Zombie 96a33b7e0b Volume fix. 2013-10-20 03:04:57 -05:00
Rivet-the-Zombie 9484fe7a37 Tweak. 2013-10-20 03:02:48 -05:00
Rivet-the-Zombie bec9ef4369 Soup pot helmet! 2013-10-20 03:00:56 -05:00
Christian Buskirk b75b8156ea Bump up shia rarity
Easter eggs should be rarer then actual content (jabberwocks)
2013-10-20 00:37:35 -07:00
Vlasov Vitaly 5b7a1567c1 fix-read-cancel-msg 2013-10-20 11:35:56 +04:00
Vlasov Vitaly a405e2f5a8 fix-use-item-cancel-msg 2013-10-20 11:07:15 +04:00
Vlasov Vitaly 2f20507419 fix-wield-cancel-msg 2013-10-20 10:59:27 +04:00
fnord af357efcdd //nitpickery-be-gone 2013-10-20 01:56:56 -05:00
Kevin Granade 2098ae9cce Merge emergency vehicles.
Conflicts:
	data/json/vehicle_parts.json
	savegame_json.cpp
	vehicle.cpp
2013-10-20 01:54:14 -05:00
Vlasov Vitaly 561bb3745f fix-takeoff-cancel-msg 2013-10-20 10:52:59 +04:00
Vlasov Vitaly 637dd720b2 fix-eat-cancel-msg 2013-10-20 10:51:08 +04:00
Rivet-the-Zombie ff6440f72a Well, maybe not quite done. 2013-10-20 01:50:53 -05:00
Rivet-the-Zombie f4ce2c5874 I think it's done! 2013-10-20 01:42:50 -05:00
Rivet-the-Zombie 5552d22e2c It's nothing perfect, but it makes it easier to read. 2013-10-20 01:34:41 -05:00
Rivet-the-Zombie a28e753e6e This spacing stuff is for the birds. 2013-10-20 01:26:03 -05:00
Rivet-the-Zombie cd2cfbdad7 I keep thinking that there's probably software out there that could do this automatically, but this is as good as it gets for now. 2013-10-20 01:24:38 -05:00
Rivet-the-Zombie b84899a4e5 More cleanups and balancings. 2013-10-20 01:20:57 -05:00
Rivet-the-Zombie fc577e115e Spaces and such. 2013-10-20 01:05:47 -05:00
Rivet-the-Zombie f2a634523a There's like twenty styles of code in here. I cannot feasibly standardize all of them, but I can improve readability. 2013-10-20 01:04:12 -05:00
Rivet-the-Zombie b01502d1be More cleanups. 2013-10-20 00:59:50 -05:00
C0DEHERO 66b17a30b7 Added initial_season option 2013-10-19 23:59:13 -04:00
C0DEHERO 055eb4222d Added initial_season option 2013-10-19 23:57:53 -04:00
GalenEvil 55ce1c7e7f fix for fix, actually works this time! I swear!
Does not allow for open or damaged tiles. That will need to be added in a separate PR as an addendum to the tileset definition format
2013-10-19 22:37:56 -05:00
Kevin Granade 9b65b5e5a3 Yank some dead code. 2013-10-19 21:34:06 -05:00
Kevin Granade 279e74b9d6 Merge ALL of the PR. 2013-10-19 21:27:17 -05:00
Kevin Granade a0026fb21d Tweak input polling in precipitanimation loop to consume repeated keypresses properly. 2013-10-19 21:22:27 -05:00
Kevin Granade a8df0f467b Merge in some monster changes. 2013-10-19 21:20:07 -05:00
GlyphGryph 60e8ef6404 Reduced quantity based on pack size. 2013-10-19 21:41:55 -04:00
GlyphGryph ab1b11ad09 Fixed typoed pack_size as pack-size 2013-10-19 21:14:04 -04:00
GlyphGryph f7a0c8a6ba in progress 2013-10-19 21:11:32 -04:00
NaturesWitness b65a20431f RV 2013-10-19 20:13:24 -04:00
GlyphGryph 851b4088aa Merge branch 'master' into spawn_changes 2013-10-19 20:07:25 -04:00
NaturesWitness 9b03f12cc2 electric car 2013-10-19 20:05:17 -04:00
NaturesWitness b6963a1245 schoolbus redesign 2013-10-19 19:57:38 -04:00
Kevin Granade bf1ede8969 Correct merge error that was nerfing headlights. 2013-10-19 18:56:04 -05:00
NaturesWitness 49858c1363 golf cart redesign 2013-10-19 19:40:14 -04:00
NaturesWitness efa9d08b53 redesign semi-truck 2013-10-19 19:33:31 -04:00
GalenEvil fbac64127e Fix for vehicle parts not displaying properly
* Note: Will require tileset config files to be updated to the jsonized vehicle_part id values along with a "vp_" prefix to reduce potential conflicts later.
2013-10-19 18:16:18 -05:00
NaturesWitness b587d8adeb More quarterpanel shapes and big windshields
When I started on the semi-truck, I realized just putting horizontal
quarterpanels on the front would make it look really boring.  So, I made
some more quarterpanel variants to go with the decorative frame
variants.  Also gave the previously redesigned vehicles full width
windshields, per Kevingranade's suggestion.
2013-10-19 19:00:07 -04:00
Kevin Granade 48682440e0 Merge branch 'master' of github.com:CuriousRaven/Cataclysm-DDA into dda-master 2013-10-19 17:42:52 -05:00
GlyphGryph 909e15882b Merge pull request #3743 from Rivet-the-Zombie/Recaliber-rename!
Renames retool kits.
2013-10-19 15:38:36 -07:00
Kevin Granade 5b30d76cd0 Merge fix returning activate to universiality. 2013-10-19 17:34:29 -05:00
NaturesWitness d9fbd06db7 flatbed truck 2013-10-19 18:32:11 -04:00
NaturesWitness 4fb2796ce1 hippie van redesign 2013-10-19 18:21:34 -04:00
Kevin Granade fa5db3d38c Final build fix for mouse support. 2013-10-19 17:19:14 -05:00
Kevin Granade 5fb68e468b Merge basic mouse support. 2013-10-19 17:18:49 -05:00
GlyphGryph c51d5ada25 Merge pull request #3745 from ianestrachan/fix-cargo-debug-msg
Fix unnecessary debug spam about CARGO parts.
2013-10-19 15:11:27 -07:00
Anuradha Dissanayake d8d0157d5e Move input_event into a common input definitions header that can be shared with Cygwin and Linux build configurations. 2013-10-20 10:57:18 +13:00
Ian Strachan 6ee3a15ab2 Fix unnecessary debug spam about CARGO parts. 2013-10-19 17:26:41 -04:00
Rivet-the-Zombie 807f6c1afd Renames retool kits. 2013-10-19 16:13:35 -05:00
Ian Strachan d1b96fe659 Forgot about the ambulance's side door. 2013-10-19 17:13:08 -04:00
GlyphGryph e541c73b81 Merge pull request #3726 from ianestrachan/circular-craters
Craters circles instead of squares
2013-10-19 14:12:15 -07:00
Ian Strachan 1e27443762 Emergency vehicles can spawn in cities now. 2013-10-19 17:03:45 -04:00
Ian Strachan 2f9817d54f Properly save/load overhead_lights_on state, without breaking old saves. 2013-10-19 17:00:05 -04:00
Ian Strachan b7887a519d Proper initialization of overhead_lights_on. 2013-10-19 16:56:06 -04:00
Ian Strachan ca46582ecb Future-proofing for circle lights that don't flash. 2013-10-19 16:53:47 -04:00
Ian Strachan e0dc41e1d2 That's not how modulus works. 2013-10-19 16:52:06 -04:00
Ian Strachan e6babfac77 Slightly lower the power of the flasher lights. 2013-10-19 16:44:30 -04:00
Ian Strachan b0bc8ea126 Aaaaaaaaaaaambulance! 2013-10-19 16:41:20 -04:00
Kevin Granade f48f63e132 Merge tweak to continuous study activation.
Conflicts:
	game.cpp
	player.cpp
2013-10-19 15:34:55 -05:00
Ian Strachan f9cefeb657 Emergency vehicle overhead flasher lights! And a police car. 2013-10-19 16:26:55 -04:00
GlyphGryph 13c4abf56e Merge pull request #3725 from Rivet-the-Zombie/Re-adds-gallon-jug-recipe!
Re-adds gallon jug recipe.
2013-10-19 12:51:19 -07:00
Kevin Granade 14a58c83ae Fix moronic build breakage cause by yours truly. 2013-10-19 14:41:36 -05:00
GlyphGryph f791874dbc Merge pull request #3622 from kevingranade/car-batteries-mk-II
Car batteries mk ii
2013-10-19 12:24:49 -07:00
GlyphGryph 4e15e67cbe Merge pull request #3737 from The13thRonin/master
Changed the name of the 'firearms' skill to 'marksmanship'.
2013-10-19 12:23:52 -07:00
Kevin Granade 0c7b13c410 Extensive indentation and style corrections in vehicle.cpp. 2013-10-19 14:21:59 -05:00
Kevin Granade c6ea76f463 Update vehicle battery branch for merge.
Conflicts:
	data/json/items/melee.json
	vehicle.h
2013-10-19 13:42:44 -05:00
GlyphGryph 400c0d12d3 Accidently spawned more jabberwocks instead of shias. Fixed. 2013-10-19 13:49:59 -04:00
NaturesWitness ebef70a148 cube van redesign 2013-10-19 13:36:22 -04:00
NaturesWitness 148a4bfed4 car chassis design update
updates car chassis to new design
2013-10-19 13:25:14 -04:00
NaturesWitness c57c4a9743 Improve quarterpanel durability an new beetle design
doublechecked whether quarterpanel fits in the menus and it does.
Raised quarterpanel's durability to 500, 250 felt too low.  Also tweaked
design of beetle, take a look and comment your opinion.
2013-10-19 13:09:12 -04:00
GlyphGryph a57473bb72 Added Shia back to the game, gave him similar spawning to jabberwocky but rarer 2013-10-19 12:18:05 -04:00
Your Name Here 1bbaa50e2f Slightly altered description of 'marksmanship' skill. 2013-10-20 01:21:24 +11:00
Your Name Here a1bc459033 Changed 'ranged weapon' skill to 'marksmanship'. 2013-10-20 01:01:37 +11:00
GlyphGryph 7c048ce3ee Removed effect of sound on dynamic spawning. 2013-10-19 09:41:58 -04:00
The13thRonin 5c6a39f5a6 Changed the name of the 'firearms' skill to 'ranged combat'. 2013-10-20 00:24:03 +11:00
Michael 013b3d4fc6 Added a ] 2013-10-19 00:09:03 -05:00
GlyphGryph d877fb8f62 Added more pack monster spawns. 2013-10-18 21:01:24 -04:00
NaturesWitness 75b6ae1880 quarterpanel proof of concept and example design (car)
As suggested in the comments, added quarterpanels.  A quarterpanel is an
obstacle, but does not block vision.  It has 250 durability, or
one-quarter of a board.  Also, as an experiment, turned all boards on
the "car" into quarterpanels, added quarterpanels over wheels, and moved
headlights to the top two corners of the vehicle, eg. where the wheels
are.  I think this makes a more realistic looking car, putting it up so
people can comment.
2013-10-18 20:17:03 -04:00
Michael af6590ff04 added a , 2013-10-18 18:37:32 -05:00
Christian Buskirk b5a40449b8 Merge PR #3691 - Pack spawning 2013-10-18 16:00:27 -07:00
Christian Buskirk 381da2a108 Merge PR #3696 - hardcoded spawn removal 2013-10-18 16:00:01 -07:00
Michael 1cb87cdb4d Replaced a { with { 2013-10-18 17:58:13 -05:00
GlyphGryph 0f6e534aee Forgot to remove testing messages. Removed. 2013-10-18 18:56:41 -04:00
fnord e330b8c6ae prevent inventory duplication on [a]ctivate, fixes clothing activation.
[a]ctivate lists all activatables.
2013-10-18 17:55:33 -05:00
GlyphGryph 051f089ba1 Fixed a bug that made it always spawn last valid monster in list. 2013-10-18 18:55:12 -04:00
NaturesWitness 4a948f46ae vehicles.json overhaul
Courtesy of Mechanoid on the forums, here is an overhaul of
vehicles.json, fixing in a massive amount of (literal) holes in Cata's
fleet of vehicles.  Also, I replaced the last of the underbody wide
wheels with the correct normal wheels, as they were no longer needed.

Original forum thread:
http://smf.cataclysmdda.com/index.php?topic=3739.0
2013-10-18 18:40:39 -04:00
atomicdryad 1cfd58066e Merge pull request #3732 from Rivet-the-Zombie/Molotov-fix!
Merge fix for bug I made weeks ago >.>
2013-10-18 15:07:32 -07:00
Rivet-the-Zombie c34f537fa5 Makes *lit* molotov give off light, instead of the *unlit* one. 2013-10-18 17:05:25 -05:00
fnord d6fcc0368b Fix food [a]ctivate 2013-10-18 16:57:41 -05:00
fnord 5ff625daf2 fix stupid typo made in prior stupid typo correction 2013-10-18 15:10:42 -05:00
fnord 9e1339da33 Fix stupid typo leading to build error 2013-10-18 15:05:40 -05:00
fnord 021d9f1d16 monsters that are piled up combine strength(*) to bash things
*: only the primary basher (mob right infront of door) benefits
*: only monsters directly behind the primary basher add 100% str, others add 50%
*: this pools monsters up to 5 tiles behind the primary, and up to 1 tile on either side
ex: P: primary (100% str=2), 2: helper (100% str=2), 1: helper (50% str=2), 0: disqualified monster, -: wall, +: door
.0210
.021.
--21.
01P1.
--+--
.....
total = 13; 2 + (2*3) + (1*5)
2013-10-18 14:47:43 -05:00
Anuradha Dissanayake e289b221e4 Add a return statement to dummy getch_kyb_mouse definition in wincurses, in case that's causing some compilers to complain. 2013-10-19 07:40:49 +13:00
Kevin Granade 40b7314d08 Merge caseless un-ammo fix. 2013-10-18 13:27:44 -05:00
Kevin Granade 0b75880148 Merge funnel fix. 2013-10-18 13:27:02 -05:00
Kevin Granade bbc6c34d3a Pull Pickup Partial Piles. 2013-10-18 13:08:39 -05:00
Kevin Granade bc7a98d3fe Merge caltrops. 2013-10-18 13:05:34 -05:00
Ian Strachan 2d207224a5 Remove OBSTACLE flag from plating. 2013-10-18 13:56:48 -04:00
Ian Strachan 75350ae3a9 With circular distances on, make circular craters 2013-10-18 13:49:58 -04:00
Rivet-the-Zombie 872f524eb6 Further diversification. 2013-10-18 12:38:24 -05:00
Rivet-the-Zombie c19c81ab28 A little diversification. 2013-10-18 12:36:53 -05:00
Rivet-the-Zombie 7a107273b1 Reclassifying fertilizer. 2013-10-18 12:25:48 -05:00
Rivet-the-Zombie 7d64fc83b7 Reclassifying salt water. 2013-10-18 12:25:18 -05:00
Rivet-the-Zombie 4a131bec65 Re-adds gallon jug recipe. 2013-10-18 12:08:15 -05:00
Rivet-the-Zombie 432d5bd94b Fixes other ammo types. 2013-10-18 11:15:17 -05:00
Rivet-the-Zombie b8fa3d9394 Formatting and further small fixes. 2013-10-18 11:02:10 -05:00
Rivet-the-Zombie fdf1f5c828 Balancing lumber values. 2013-10-18 10:34:26 -05:00
Rivet-the-Zombie 110ac97864 Filling in the gaps. 2013-10-18 10:24:23 -05:00
fnord 046ffad3a4 Bashing boarded up doors results in damaged door instead of open door frame 2013-10-18 10:11:36 -05:00
Rivet-the-Zombie ae8c985cf1 Recipe resanification. 2013-10-18 10:06:33 -05:00
Rivet-the-Zombie e93cb8b9e1 Remove logical redundancies in some cooking recipes. 2013-10-18 09:59:25 -05:00
fnord 99a097a955 Implement has_adjacent_furniture check. Bail out early if str < min_str.
Add str_min_roll to allow optional seperation of minimal requirement
from damage roll's lower bound
2013-10-18 09:59:15 -05:00
Rivet-the-Zombie af15aa023b Fixes caseless guns suddenly dropping 'none' items all over the place. 2013-10-18 09:54:17 -05:00
fnord 2eed44d798 Minimum strength requirements; zed children cannot break down doors, zeds can
summary of important examples:
cat, zombie kid: str 3
zombie: str 5
zombie brute: str 12
wolf: str 6
-vs-
door: min str 4
..boarded: 4 (max is +10, -delays- bash-in)
..broken: 3 (+max)
log wall: min str 6
..chipped: 5
..broken: 3
window: min str 1
window, boarded: min str 2
2013-10-18 08:00:28 -05:00
fnord 74e366c855 Make better use of new json syntax 2013-10-18 07:59:57 -05:00
fnord 844ee96038 Make use of renamed json syntax 2013-10-18 05:37:45 -05:00
Anuradha Dissanayake 2251175355 Fix bug where all the water collected from all funnels tends to go to one container under one funnel. 2013-10-18 22:59:21 +13:00
fnord 819126926f Merge remote-tracking branch 'origin/master' into jsonbash 2013-10-18 04:33:55 -05:00
Rivet-the-Zombie ff950bddb1 Color fix. 2013-10-18 00:50:03 -05:00
GlyphGryph e290680df2 Merge branch 'master' into spawn_changes_up_to_date
Conflicts:
	mongroupdef.cpp
2013-10-18 01:07:20 -04:00
GlyphGryph e26a3a82d3 And some missed references in overmap.cpp adressed. 2013-10-18 00:01:06 -04:00
Kevin Granade b3d7733018 Merge fixes galore. 2013-10-17 22:47:09 -05:00
vache 2fc3715b07 Last thing missing from merge 2013-10-17 22:46:12 -05:00
Rivet-the-Zombie 5bc64bd22c Proper recipe. 2013-10-17 22:45:25 -05:00
Rivet-the-Zombie 004b3b0e55 Revert "Recipe."
This reverts commit d46390e05a.
2013-10-17 22:44:42 -05:00
vache bcd939890b Fix typo 2013-10-17 22:39:08 -05:00
vache 57efa980cc Remove numeric characters from possible item letter selection 2013-10-17 22:36:51 -05:00
vache 562c0442d5 Add partial stack pickup, similar to partial stack drop in inventory.multidrop().
On branch pickup_partial_stack
 Changes to be committed:

	modified:   game.cpp
2013-10-17 22:34:05 -05:00
vache 6c2e9c3019 Committer: vache
Add ability to specify a partial stack for pickup such as partial stack drop in multidrop

 On branch pickup_partial_stack
 Changes to be committed:

	modified:   game.cpp
2013-10-17 22:31:54 -05:00
Kevin Granade 04e2492638 Merge selective pickup in advanced inventory. 2013-10-17 22:26:48 -05:00
GlyphGryph 8221cc58ff Removed deprecated puddle references while I was in here. 2013-10-17 23:22:57 -04:00
GlyphGryph 10fdfa4b3d Removed some more traces of cougars and wolf spawn mechanics I missed. 2013-10-17 23:21:19 -04:00
Kevin Granade f6acf5b5fe Teensy fix to thug profession. 2013-10-17 22:00:21 -05:00
Kevin Granade a685f55166 Teensy fix to ammo silencing. 2013-10-17 21:56:26 -05:00
Kevin Granade eafb6ece60 Merge silent dart fix. 2013-10-17 21:53:27 -05:00
Kevin Granade 3b1b4dcd2e Merge switchblade and ancillary content.
Conflicts:
	data/json/item_groups.json
	data/json/items/tools.json
2013-10-17 21:53:06 -05:00
Kevin Granade bbac744374 Merge a big pile of content and content fixes. 2013-10-17 21:52:30 -05:00
Rivet-the-Zombie d59ce220f2 Spawn. 2013-10-17 21:41:20 -05:00
Rivet-the-Zombie d46390e05a Recipe. 2013-10-17 21:38:15 -05:00
Kevin Granade d5b71faec3 Merge string handling fixes. 2013-10-17 21:11:31 -05:00
fnord b6a8133ceb Merge remote-tracking branch 'origin/master' into jsonbash 2013-10-17 20:46:11 -05:00
Rivet-the-Zombie c8beb1a827 Finishing. 2013-10-17 20:38:16 -05:00
Rivet-the-Zombie 98ef2cb87e Fixed warmth. 2013-10-17 20:24:01 -05:00
Rivet-the-Zombie e6d6e477f5 Caltrops first pass. 2013-10-17 20:23:12 -05:00
Rivet-the-Zombie 035651dcb7 Tweak. 2013-10-17 19:48:09 -05:00
Rivet-the-Zombie da1c5fa16f Recipe! 2013-10-17 19:45:23 -05:00
Rivet-the-Zombie 20b64bef27 Adds a fur rollmat! 2013-10-17 19:41:53 -05:00
Ian Strachan b5e0157b8e Make craters destroy stuff rather than vaporizing it. 2013-10-17 20:10:01 -04:00
Rivet-the-Zombie 5d23227674 Fix'd! 2013-10-17 18:59:06 -05:00
Rivet-the-Zombie 34c2fa8edf Tweak. 2013-10-17 18:57:23 -05:00
Rivet-the-Zombie 6e4117e15f Proper. 2013-10-17 18:56:15 -05:00
Rivet-the-Zombie 3760e942bd Revert "Reduces ported barrel accuracy penalty in exchange for more noise."
This reverts commit 9ab83179c7.
2013-10-17 18:55:31 -05:00
Rivet-the-Zombie 9ab83179c7 Reduces ported barrel accuracy penalty in exchange for more noise. 2013-10-17 18:54:49 -05:00
Rivet-the-Zombie 5fe009e579 Street thug profession starts with switchblade. 2013-10-17 18:25:56 -05:00
Ian Strachan 8c61bbbd93 Fix map annotations not blinking. 2013-10-17 19:15:53 -04:00
Rivet-the-Zombie 23b50c0497 Fixes a typo. 2013-10-17 17:03:11 -05:00
Rivet-the-Zombie 9cdb6d7810 Brings automagnum magazine into the same base 5 count as the rest of the 8x40s. 2013-10-17 13:55:21 -05:00
Tommy fe46600319 Merge branch 'master' into clean
Conflicts:
	json.h
	veh_typedef.cpp
2013-10-18 07:31:06 +13:00
Anuradha Dissanayake 1ef61d0cf8 Fix 'if' block missing braces and const correctness 2013-10-18 07:25:24 +13:00
Rivet-the-Zombie 1c0d9e1a88 Recipe integration. 2013-10-17 13:24:13 -05:00
Rivet-the-Zombie 1fef4a5d16 Rehydrated foods first pass. 2013-10-17 13:21:10 -05:00
Tommy b89ea8b1c3 Copy constructors for JsonObject and JsonArray. 2013-10-18 07:17:11 +13:00
Rivet-the-Zombie b92c3daef0 Silences darts. 2013-10-17 12:54:36 -05:00
Tommy f3284616e7 Type testing for JsonArray. 2013-10-18 06:30:36 +13:00
fnord e1f44fb620 merge items-in-vehicles, memleakfixes, and items 2013-10-17 08:00:16 -05:00
GlyphGryph 7302c61870 Removed hardcoded spawning of wolves and cougars. 2013-10-17 08:48:08 -04:00
fnord 854db485ea Nerf door blocking 2013-10-17 07:38:30 -05:00
fnord e2a507bca5 replace huge map::bash case statement with json; terrain & furniture have 'bash' object 2013-10-17 06:48:13 -05:00
fnord 38dd80df0e mapdata: add map_bash_info struct which abstracts the weird map::bash
logic:

    int str_min;          // min str(*) required to bash
    int str_max;          // max str required: bash succeeds if str >= random # between str_min & str_max
    int str_min_blocked;  // same as above; alternate values for has_adjacent_furniture(...) == true
    int str_max_blocked;
    int num_tests;        // how many tests must succeed
    int chance;           // optional: must pass 1-100 chance to attempt the above tests
    std::vector<map_bash_item_drop> items; // list of items: map_bash_item_drop
    std::string sound;    // sound made on success ('You hear a "smash!"')
    std::string sound_fail; // sound  made on fail
    std::string ter_set;    // terrain to set (REQUIRED for terrain))
2013-10-17 06:45:08 -05:00
Vlasov Vitaly 6015565d3d template can be saved only if unused points equal 0 2013-10-17 13:49:32 +04:00
Anuradha Dissanayake 044fb050b1 Use input_event struct to encapsulate mouse events 2013-10-17 20:55:13 +13:00
GlyphGryph 5ebcd09562 Enabled pack spawning for static spawn. 2013-10-17 00:33:49 -04:00
GlyphGryph 29404eea07 Added pack sizes for animal spawns. 2013-10-17 00:23:39 -04:00
GlyphGryph f011e126a0 Crows were way more difficult than made sense. Difficulty reduced to zero. 2013-10-17 00:20:48 -04:00
GlyphGryph a8d21d876f Added pack size support for spawning monsters. 2013-10-17 00:17:43 -04:00
Tommy 54f57c4b6b Pass a bunch of stuff by const reference. 2013-10-17 17:03:25 +13:00
GlyphGryph f8fa766b62 Merge pull request #3516 from kevingranade/refactor-iuse
Refactor iuse methods and callers.
2013-10-16 21:00:29 -07:00
Tommy 075ef2f222 Overhaul JSON type checking, and clean some things also. 2013-10-17 16:46:32 +13:00
Julian Snitow 87ebf3b993 fix typo in exp. crossbow bolt recipe 2013-10-16 20:45:13 -07:00
Rivet-the-Zombie b0f36f17e3 Reclassifies strong acid recipes under chemicals rather than drinks. 2013-10-16 22:38:40 -05:00
Rivet-the-Zombie 539b183a44 Adds bum wine to sugar extraction recipe.
This also makes bum wine useful for something aside from slow suicide by
alcoholism.
2013-10-16 22:32:54 -05:00
Rivet-the-Zombie 5e53c0db3b Fixes primer recipe. 2013-10-16 22:08:42 -05:00
Tommy a2bb3b9ded Put JsonObject::get_object() in the correct place. 2013-10-17 15:07:29 +13:00
Rivet-the-Zombie a67178cf79 Works for me. 2013-10-16 20:39:15 -05:00
GalenEvil b79f08b794 Merge branch 'pr/3681' 2013-10-16 19:12:13 -05:00
Kevin Granade 0f1a6570f1 Merge latest from mainstream.
Conflicts:
	game.cpp
	iuse.cpp
	iuse.h
2013-10-16 18:40:39 -05:00
Rivet-the-Zombie ab8827546e Adds a switchblade knife! 2013-10-16 18:37:13 -05:00
GlyphGryph 4a00d6d3a1 Changed multiplier for spawn groups to the more descriptive cost_multiplier 2013-10-16 19:32:29 -04:00
Rivet-the-Zombie 46573fec94 Didn't realize I'd left it reversible. 2013-10-16 18:24:56 -05:00
Kevin Granade acd54b47c9 Brace yourselves 2013-10-16 18:21:54 -05:00
Kevin Granade ecc6df2a35 Use moves when consuming ammo or books. 2013-10-16 18:20:19 -05:00
Kevin Granade 551211b885 Grammar correction. 2013-10-16 18:18:36 -05:00
Ian Strachan 82322275fb Very slim (2%) chance of a unicycle in a parking lot. 2013-10-16 17:40:32 -04:00
Ian Strachan ae51064967 Make casters stable, allow making stable unicycle wheels from bicycle wheels, and add unicycles. 2013-10-16 17:33:57 -04:00
Ian Strachan cef0c638d5 Allow 1-square, 1-wheel vehicles if the wheel has the STABLE flag. 2013-10-16 17:29:42 -04:00
Tommy ffd51c5243 Add bug message for uninitialized techniques. 2013-10-17 08:55:53 +13:00
Tommy 5c85bc95a3 Automatically convert %2$s etc to %s etc for nonlocalized build. 2013-10-17 08:00:06 +13:00
Tommy c09390fed9 Tweak iuse::knife message. 2013-10-17 07:59:45 +13:00
Tommy af77cb4098 Clean output.cpp a little. 2013-10-17 07:26:14 +13:00
Tommy 31606984b7 Don't try to translate the "missing" item, it won't work anyway. 2013-10-17 07:23:16 +13:00
Tommy 07400c9337 Gettextify version string. 2013-10-17 07:21:24 +13:00
Ian Strachan 789ed15d0d Use all_parts_with_feature in vehicle::valid_wheel_config 2013-10-16 14:10:05 -04:00
Tommy e3d21f87bb Use vector in stead of array for inventory_ui CATEGORIES. 2013-10-17 06:55:48 +13:00
Ian Strachan d6b9493527 Chance of marijuana on rear hippie van seats. 2013-10-16 13:21:28 -04:00
Tommy c545772140 Use std::string in stead of const char * in iexamine::rubble. 2013-10-17 04:46:12 +13:00
Tommy d2ed735694 Style iexamine::rubble. 2013-10-17 04:43:12 +13:00
Siwen Yu 57c9a26f45 Delete unnecessary commented-out lines. 2013-10-16 16:43:59 +08:00
Siwen Yu 232161b9c2 Merge branch 'Cataclysm-DDA-master' into memory-fix 2013-10-16 14:34:16 +08:00
atomicdryad 222b5cc3a2 Merge pull request #3395 from NaturesWitness/improve-weld-rig
Merge kitchen unit / welding rig improvements.
2013-10-15 23:01:30 -07:00
Ian Strachan 75445cbacc Spawn vehicle items inside their containers, if appropriate. (No more loose beer) 2013-10-16 00:09:14 -04:00
Ian Strachan d1037d2320 Chance of 6-pack of beer in a truck box, or big tools in the flatbed area. 2013-10-16 00:07:27 -04:00
Ian Strachan 44df58d8f4 Enable spawning car items from item groups. 2013-10-16 00:00:20 -04:00
Rivet-the-Zombie 0d4f96652d Revert "Recipe to make plastic gallon jug."
This reverts commit 81c23c3065.
2013-10-15 22:50:10 -05:00
Ian Strachan 5f86897a9b Add missing windshields to back of schoolbus. 2013-10-15 23:18:36 -04:00
Rivet-the-Zombie 8921d31314 Recipe for reinforced glass panes. 2013-10-15 21:39:11 -05:00
Rivet-the-Zombie 81c23c3065 Recipe to make plastic gallon jug. 2013-10-15 20:38:20 -05:00
Rivet-the-Zombie 3c01c725ff Makes 5x50mm do in practice, what it was supposed to do in theory. 2013-10-15 20:32:35 -05:00
BDR1985 e6e6a82ed1 Update player.cpp
Removing the hack required by paper wrappers not being a formal container.
2013-10-15 19:08:43 -05:00
Rivet-the-Zombie 332eca5cbd Bone armor recipes! 2013-10-15 18:57:06 -05:00
Rivet-the-Zombie 3001f08bda Bone armor! 2013-10-15 18:49:47 -05:00
Rivet-the-Zombie e976e666b1 Fixes car seat material. 2013-10-15 18:34:34 -05:00
Rivet-the-Zombie 15eed84121 Materials fix on bone needle and adds bones to superglue recipe. 2013-10-15 18:33:38 -05:00
Michael 80df6c06dd .50 weight updates on the .50 again 2013-10-15 18:30:16 -05:00
Kevin Granade d2d1a92bbc Merge all the things. 2013-10-15 18:26:55 -05:00
Rivet-the-Zombie 1db1b2d4f5 Fixes bugged recipe for union suit. 2013-10-15 17:25:44 -05:00
Rivet-the-Zombie 81bb72e750 Small fire extinguisher tool plus spawns! 2013-10-15 17:05:26 -05:00
Kevin Granade 34efaf9927 Merge fungal overhaul.
Conflicts:
	data/json/item_groups.json
2013-10-15 16:46:25 -05:00
Siwen Yu dceb2a711c Change run_mode to int, added to default parameter. 2013-10-16 02:30:55 +08:00
Siwen Yu dc48f89f32 Fix some memory leaks(2). 2013-10-16 02:01:35 +08:00
Michael 900f18b68b Updates on the weight of the .50 BMG again. 2013-10-15 12:39:51 -05:00
Ian Strachan c86c5078bf Add a debugmsg when item_factory can't find an item. 2013-10-15 12:54:03 -04:00
Siwen Yu 7be350472a Fix some memory leaks. 2013-10-16 00:15:10 +08:00
cib 90068c265a Hearing is now "inaccurate" if the volume of the sound is low.
Tested this quickly by sneaking through the night with zombies around. The result is interesting: Zombies will come running in "roughly" your direction, but can easily miss you in the dark.
2013-10-15 13:57:43 +02:00
cib e1d634d914 Silence clang warning(with -Werror this breaks compile)
Also happens to fix one horrid mutation of code. Logically invert the integer, then compare it to 0, really?
2013-10-15 13:36:15 +02:00
BDR1985 69ae4c0c34 Removing inferior non-container wrapper
Cleaning up the other now duplicate entry.
2013-10-15 06:26:25 -05:00
BDR1985 0edfc88578 Adding the paper wrapper as a container!
Solving (my own) issue #3651 - low priority oversight fix to be sure, but not being to unload items contained in paper wrappers is silly and a long-standing annoyance for me.
2013-10-15 06:16:59 -05:00
Anuradha Dissanayake bf3768d31f Adding mouse support for SDL builds. Currently used for:
Look around:
* Left click to move cursor

Targeting:
* Left click to move cursor
* Scrollwheel to cycle targets
* Right click to fire
2013-10-15 22:51:26 +13:00
Siwen Yu 4c60ef17b1 Fix mismatch new and delete. 2013-10-15 17:35:29 +08:00
Siwen Yu a809b55417 Fix values uninitialised problemes. (2) 2013-10-15 17:18:39 +08:00
Siwen Yu 35211fb9c5 Fix value uninitialised problems 2013-10-15 17:08:27 +08:00
Izicata bc220e6eaa Prevent martial arts traits from lying to player about what they do
Switched TaeKwonDo and Capoeira to match trait descriptions
2013-10-15 03:48:58 -04:00
Izicata 35a3cdd4da Tae Kwon Do bugfixes
Fixed typo preventing side-kicks from ever being possible to use in normal gameplay.

Made TKD precision attacks actually precision attacks and not quick attacks, named them axe-kicks.
2013-10-15 03:31:52 -04:00
Octav Sandulescu fa7eb6c6f6 Correct the name of the BRUTAL strike technique.
Closes #3648.
2013-10-15 08:00:51 +01:00
Michael 2f3f2c8b0c Added an > 2013-10-14 22:59:42 -05:00
Michael 81a8c1e059 .50 BMG weight updates
I thought the new changes could be a middle ground between too heavy and too light
2013-10-14 22:53:15 -05:00
Rivet-the-Zombie c33286733c Fixes a typo in the new monster's description. 2013-10-14 22:42:56 -05:00
Michael 6e07389048 added an { 2013-10-14 22:41:49 -05:00
GlyphGryph a9f2518c3f Finished adding sludge crawlers to the game. 2013-10-14 23:02:03 -04:00
Kevin Granade 789ad5d8df Merge spawn fix. 2013-10-14 21:43:54 -05:00
GlyphGryph d137f10ec9 Fixed a bug where default monsters were never being spawned. 2013-10-14 22:31:18 -04:00
Kevin Granade 3ea64b9c91 Merge monster spawn fixes. 2013-10-14 21:22:07 -05:00
GlyphGryph 92014ad658 Display debugmsg if there is a problem finding a monster type 2013-10-14 22:02:49 -04:00
Michael fef8817bda Added recipes for other .50 BMGs 2013-10-14 21:02:22 -05:00
Kevin Granade 7c413cf570 Merge item fixes, translation updates, and trench knife. 2013-10-14 20:24:16 -05:00
Kevin Granade 0c9ed66794 sporadic style cleanups. 2013-10-14 19:02:27 -05:00
Michael 19549233be Removed a space 2013-10-14 18:45:58 -05:00
Tommy 5fdf61a0bd Add translator comments for Flammenschwert and jacqueshammer. 2013-10-15 12:39:44 +13:00
Michael b309d3c628 Just M107A1 things 2013-10-14 18:17:34 -05:00
Michael 7d83192af0 Added an ; 2013-10-14 18:13:21 -05:00
Michael 5c7d5dbe1b .50 BMg things again. 2013-10-14 17:49:52 -05:00
Michael f1d034b3bf .50 BMG again 2013-10-14 17:47:53 -05:00
Michael b00c87046a grammar 2013-10-14 17:25:58 -05:00
Ian Strachan ed25979012 Chance of flashlight, small chance of first aid in passenger's seat. 2013-10-14 18:20:11 -04:00
Ian Strachan 2e5ae40953 Tiny chance of roadmap in passenger's side seat. 2013-10-14 18:18:10 -04:00
Ian Strachan 6e3cecc5b2 Small chance of screwdriver, scissors, or crowbar in car trunk. 2013-10-14 18:16:52 -04:00
Ian Strachan 23ae4d4a51 Chance of jack+wheel in a car trunk. 2013-10-14 18:11:13 -04:00
Ian Strachan 7f033b7749 Chance of a lighter on the driver's seat of a car. 2013-10-14 18:08:49 -04:00
Ian Strachan 15f58185f5 Allow vehicle items to spawn as groups by listing them as an array. 2013-10-14 18:05:54 -04:00
Rivet-the-Zombie 7cd4da78a5 Fix'd! 2013-10-14 16:39:57 -05:00
Michael eccfd48c7a Updated some other things about the M107A1 2013-10-14 16:37:22 -05:00
Michael 9e1d6813a3 Changed name from M107A1 to Barrett M107A1 2013-10-14 16:32:28 -05:00
Michael 34c40566eb Merge pull request #5 from BlueMoonDude/patch-2
.50 recipe
2013-10-14 14:10:44 -07:00
Michael 528e651502 Added item groups for .50 bmg, m107a1, bipod 2013-10-14 16:06:20 -05:00
Rivet-the-Zombie 7d2d4c7e03 Tweak. 2013-10-14 16:00:02 -05:00
Michael ddc7b39cd6 Made recipe for .50 BMG 2013-10-14 15:59:53 -05:00
Rivet-the-Zombie dedcc9abb2 Adds a trench knife!
It's like a combat knife with slightly different stats, plus you can
block with it.
2013-10-14 15:57:18 -05:00
Ian Strachan 3a74f96023 Allow items to be spawned in vehicles. 16% chance of cigarettes in a car as a proof-of-concept. 2013-10-14 16:31:33 -04:00
Michael 6c85106619 changed .50 things again 2013-10-14 14:45:52 -05:00
Rivet-the-Zombie eadf2c36cf Empty bags now take up 10% (rounded up) of their storage capacity. 2013-10-14 14:37:31 -05:00
Michael 51687e556c Changed gunpowder & lead charges for .50 2013-10-14 14:14:58 -05:00
Tommy cb0993eb65 Update all the .po files. 2013-10-15 07:50:22 +13:00
Tommy 421455b46d Strip line numbers from .po files. 2013-10-15 07:48:52 +13:00
Tommy b27c22d977 Allow lang/strip_line_numbers.py to take multiple filenames at once. 2013-10-15 07:47:49 +13:00
Tommy 23c3aafe7d Refactor lang/strip_line_numbers.py slightly. 2013-10-15 07:45:33 +13:00
Tommy 70b2f0f3c5 Update .pot file. (lookit that you can read the diff) 2013-10-15 07:36:48 +13:00
Tommy 691bc258a9 Update lang/update.pot.sh to strip line numbers automatically. 2013-10-15 07:35:09 +13:00
Tommy 70e3cafa84 Strip line numbers from lang/po/cataclysm-dda.pot. 2013-10-15 07:34:35 +13:00
Michael 6a1e8ea635 Merge pull request #4 from BlueMoonDude/patch-6
Added a Barrett M107A1, .50 BMG, bipod
2013-10-14 11:34:17 -07:00
Michael 183a90c0dd Merge pull request #3 from BlueMoonDude/patch-4
Merged component returns with added bipod, added 50 BMG, spawns for new items, and support for .50
2013-10-14 11:30:43 -07:00
Tommy cb2164241e Add new script to strip line numbers from .pot for cleaner diffs. 2013-10-15 07:30:10 +13:00
Michael f6aaa24d8a added an } somewhere 2013-10-14 13:23:26 -05:00
Michael 7c0de0b93d Merge pull request #2 from BlueMoonDude/patch-3
Merged added .50 BMG with Added Bipod, Support for .50 bmg, and item groups for said items
2013-10-14 11:14:03 -07:00
Michael 8d705444ed Merge pull request #1 from BlueMoonDude/patch-2
Trying to figure out how to combine the branches. If I did this wrong please tell me.
2013-10-14 10:57:11 -07:00
Tommy f9a921ea43 Pedantic json commas for Python. 2013-10-15 06:53:07 +13:00
Tommy ae48e2d17d Print json-item file name when python script errors on something. 2013-10-15 06:52:12 +13:00
Tommy cfecb52849 Mark some missed strings. 2013-10-15 06:32:48 +13:00
Tommy 05bdfe0ce4 Add Japanese (ja) translation file. 2013-10-15 06:21:53 +13:00
Vlasov Vitaly 38eda5fa6b player::consume works with "MEDS"
player::consume check return value of eat.
2013-10-14 17:59:25 +04:00
Christian Buskirk 09822fd7a2 Final commits 2013-10-14 03:54:49 -07:00
Vlasov Vitaly 6f70090369 Old eat() method removed.
New consume() method is used instead of old eat().
 For food and drinks comestable items new eat() method is used.
known issues:
 consume() don't check return value of eat() method.
 consume() right now support only 'FOOD' and 'DRINK' comestible types.
2013-10-14 13:31:10 +04:00
Christian Buskirk 3dc399c521 Fix compile error 2013-10-14 02:22:08 -07:00
Christian Buskirk a5f37c125b Merge to mainline 2013-10-14 02:01:22 -07:00
Christian Buskirk ee574a38cf Add Fungal Fighter triffid and accompanying fungicide 2013-10-14 01:36:21 -07:00
Siwen Yu 4aed76c197 Fix #3620
When switching pages, set iStartPos to 0.
Remove empty page detection in input loop, because it has already been detected before entering the loop.
2013-10-14 15:55:03 +08:00
Christian Buskirk 199e486263 Upgrade/fix several disease functions 2013-10-14 00:41:50 -07:00
Vlasov Vitaly 7cdc54e645 Added player::consume() method, which is common for eating/consuming.
Added player::my_eat() method. my_eat() is temp method which
replaces only eating behavior. In future my_eat() shuld renamed to eat()
and consume shuld replace old eat().
2013-10-14 11:38:29 +04:00
Vlasov Vitaly 5355044eae Merge branches 'refactor-iuse' and 'refactor-iuse' of https://github.com/kevingranade/Cataclysm-DDA into refactor-eating 2013-10-14 10:52:07 +04:00
Michael 099e55bd7e Added sup. for .50 2013-10-14 00:19:58 -05:00
GalenEvil 45d37ef626 Fixed stupid mistake where I was switching the argument order for apply_set_to_set. Current order is (to, &from) instead of the correct (from, &to). Now species flags/triggers should get added appropriately to monster flags/triggers. 2013-10-14 00:16:21 -05:00
Christian Buskirk d160a404f8 Apply GalenEvil fix for species triggers 2013-10-13 22:16:02 -07:00
Michael 33ee62ac8d Added item groups for M107A1, bipod, and .50 BMG 2013-10-14 00:15:37 -05:00
GalenEvil 46c1c6e41f Fix process_trigger not actually using the argument (monster_trigger trig) passed into it 2013-10-14 00:13:54 -05:00
Michael 1ec64cc35c Added a Barrett M107A1 2013-10-14 00:07:24 -05:00
Michael 8a93a0fc26 Added component returns for breaking down .50 BMG 2013-10-14 00:04:52 -05:00
Christian Buskirk 8d19bd915f Fix process_trigger() bug 2013-10-13 21:08:50 -07:00
Michael b386714775 Added .50 BMG
Thanks Zaweri for the code that he said I can use
2013-10-13 23:00:38 -05:00
Michael 6c4d27a0f1 Added a bipod 2013-10-13 22:58:33 -05:00
Michael d7873db0c8 Added support for .50 BMG 2013-10-13 22:26:46 -05:00
Michael e52da693db Added support for .50 BMG 2013-10-13 22:16:22 -05:00
Christian Buskirk b023d46f17 Triffids tweaks 2013-10-13 20:13:57 -07:00
Christian Buskirk 44d1037b6d Make fungal spire not instantly regrow 2013-10-13 19:26:28 -07:00
NaturesWitness d1d9798265 Fixed welding rig menu
Figured out why the welding rig menu wasn't appearing; I forgot to add
the presence of a welding as a condition to shunt player_examine to
pickup.  With that done, this is finally complete!
2013-10-13 22:21:14 -04:00
Christian Buskirk 1803ecf28e Dermatik larva growth attack 2013-10-13 19:14:39 -07:00
Christian Buskirk cd0f9615be Merge to mainline 2013-10-13 19:08:06 -07:00
Kevin Granade 22f50ded46 Rearange player::eat to only apply effects of consuming items if the iuse didn't fail. 2013-10-13 21:04:01 -05:00
Christian Buskirk 0cb33fa443 Fix dermatiks, add new monster flag CAN_DIG 2013-10-13 19:03:54 -07:00
Kevin Granade a3f204edc3 Convert iuse return value from weird bool-like thing to returning the number of charges to deduct. 2013-10-13 19:52:07 -05:00
Kevin Granade 753f94f15d Revert iuse helper functions to returning bool. 2013-10-13 19:49:49 -05:00
Kevin Granade aa59f96c65 Add a virtual accessor for number of charges. 2013-10-13 19:43:09 -05:00
Rivet-the-Zombie 6a5442f89b Adds knife spear option to some simple cooking recipes. 2013-10-13 19:29:59 -05:00
Rivet-the-Zombie 47ae2f60e8 Fixes magazine size on DE .44 magnum. 2013-10-13 19:03:58 -05:00
Rivet-the-Zombie d02ca19dab Makes (acid) rain protection a clothing flag instead of specific to one article of clothing. 2013-10-13 18:59:22 -05:00
Rivet-the-Zombie d26e47b869 Tweaks. 2013-10-13 18:13:17 -05:00
Rivet-the-Zombie 94056158af Recipe fix. 2013-10-13 17:18:29 -05:00
Kevin Granade 31f54255c3 Merge branch 'iuse' of https://github.com/CIB/Cataclysm-DDA into refactor-iuse 2013-10-13 16:34:12 -05:00
Kevin Granade 831de06515 Bring iuse refactor up to date with mainline.
Conflicts:
	iuse.cpp
	player.cpp
2013-10-13 16:33:03 -05:00
Rivet-the-Zombie 4900ef7f06 Adds ammo type to PDA. 2013-10-13 16:30:59 -05:00
Rivet-the-Zombie 3bc323fcf1 A small selection of numerical fixes to the comestibles list. 2013-10-13 16:28:02 -05:00
Christian Buskirk 2e1afaf72d update random body part algorithm 2013-10-13 14:21:58 -07:00
Christian Buskirk a585a29c54 Some small fixes 2013-10-13 13:50:31 -07:00
Christian Buskirk 3a0e10fa03 Fungal disease refactor 2013-10-13 13:39:26 -07:00
Kevin Granade 0094f6bb81 Merge vehicle adjustments. 2013-10-13 13:55:33 -05:00
Kevin Granade b84e57f701 Merge furniture transparency fix. 2013-10-13 13:54:45 -05:00
Kevin Granade ddd5a4ddf2 Content merge. 2013-10-13 13:18:15 -05:00
Peter Lacey-Bordeaux 5fca8e84e2 fixed worm spawning code 2013-10-13 13:44:50 -04:00
Ian Strachan de8f96a20b Wrecks wreckage more to made wreckage really wrecked. 2013-10-13 13:43:37 -04:00
Peter Lacey-Bordeaux f407d6b440 fixed worm generation 2013-10-13 13:26:56 -04:00
Ian Strachan 5336285887 Split vehicle parts out of melee.json and into their own json file. 2013-10-13 13:15:26 -04:00
Peter Lacey-Bordeaux 297a478f78 possibily fixed bug in update_stair_monsters 2013-10-13 13:12:14 -04:00
Kevin Granade 827a3e323d Merge protein powder.
Conflicts:
	data/json/item_groups.json
	data/json/items/comestibles.json
2013-10-13 12:03:58 -05:00
fnord 047f67da5c furniture: not transparent unless it has transparent flag 2013-10-13 11:54:38 -05:00
fnord dc3d7f7e64 game::update_weather: Set nextweather to...the next weather deadline. >.>
game::load: put in default weather if no weather was loaded (mostly issue if save/*.weather was removed for testing).
game::debugmenu: weather log shows turn & deadline.
2013-10-13 09:52:08 -05:00
Kevin Granade 51bb22fb00 Tab removal. 2013-10-13 09:42:23 -05:00
Kevin Granade 61a1963148 Update alternator and car battery PR.
Conflicts:
	data/json/items/melee.json
	data/json/vehicle_parts.json
	data/json/vehicles.json
	lightmap.cpp
	savegame_json.cpp
	veh_typedef.cpp
	vehicle.cpp
	vehicle.h
2013-10-13 09:29:40 -05:00
Christian Buskirk 73a4fd05ad Add support for disease intensity decay 2013-10-13 03:31:59 -07:00
Christian Buskirk 6b42c662f1 Add support for permanent diseases 2013-10-13 02:40:16 -07:00
Christian Buskirk 55328d6b6e Combine some speed modifiers in the player status 2013-10-13 01:32:58 -07:00
Rivet-the-Zombie b461a944e3 Puts some fluid in the fluid sac. 2013-10-13 03:06:45 -05:00
Christian Buskirk 636544fa45 Spore refactor 2 2013-10-12 23:11:45 -07:00
Rivet-the-Zombie 57482458c1 Fixes wool beret description.
How the heck did I miss this?
2013-10-13 00:55:47 -05:00
Kevin Granade cf50bfd2bb Merge more content. 2013-10-13 00:04:43 -05:00
Kevin Granade 1d4bac11ac Merge dehydrator and associated content.
Conflicts:
	data/json/item_groups.json
	data/json/recipes.json
2013-10-12 23:51:23 -05:00
Christian Buskirk 41f633dfd9 Merge to mainline
Conflicts:
	data/json/furniture.json
	data/json/terrain.json
	monattack.cpp
	mtype.h
	mtypedef.cpp
	weather.cpp
2013-10-12 21:36:34 -07:00
Rivet-the-Zombie a20a7814ee Recipe to make your own chemical heatpacks! 2013-10-12 23:29:10 -05:00
Rivet-the-Zombie 22a0de5750 Protein shake spawns. 2013-10-12 23:23:21 -05:00
Christian Buskirk ff40512aeb Spore overhaul 1 2013-10-12 21:03:13 -07:00
Rivet-the-Zombie 8b19a34d2d Protein powder, related recipes, and beverages. 2013-10-12 22:58:10 -05:00
Rivet-the-Zombie 5dcc728c9d Protein powder and recipe and spawns. 2013-10-12 22:47:25 -05:00
Kevin Granade 00a6e65c92 Redo change from PR 3613 since the merge blew up. 2013-10-12 22:29:18 -05:00
Kevin Granade 84e968ef6f Merge entrenching tool.
Conflicts:
	data/json/item_groups.json
2013-10-12 22:24:15 -05:00
Kevin Granade 2553bce949 Merge hazmat suit.
Conflicts:
	data/json/items/armor.json
2013-10-12 22:23:01 -05:00
Kevin Granade 4a357dc47d Merge new fruits.
Conflicts:
	data/json/items/comestibles.json
2013-10-12 22:21:19 -05:00
Rivet-the-Zombie c93f415c7a Slightly warmer than the cotton one, and wool has cool properties of its own. 2013-10-12 21:53:47 -05:00
Kevin Granade 6ce1fe82c6 Merge gutted power armor.
Conflicts:
	data/json/recipes.json
2013-10-12 21:43:11 -05:00
Kevin Granade b97b43c972 Merge butchery query only when in danger, and chapters for fun books. 2013-10-12 21:12:47 -05:00
Rivet-the-Zombie 0a213eb31e Dehydrator machine recipe. 2013-10-12 21:09:59 -05:00
Rivet-the-Zombie 28947a4f66 Recipe integration for dried products. 2013-10-12 21:03:25 -05:00
Rivet-the-Zombie a13bbc9c77 Spawns. 2013-10-12 20:56:09 -05:00
Rivet-the-Zombie 0e1e3e6b6d Initial recipes. 2013-10-12 20:48:10 -05:00
Rivet-the-Zombie dc7beb2475 Dehydrated fruit! 2013-10-12 20:37:10 -05:00
Rivet-the-Zombie cc012f749e Dehydrated vegetables! 2013-10-12 20:28:03 -05:00
Kevin Granade 9c56e89050 Fix polarity of stair placement test. 2013-10-12 20:20:39 -05:00
Rivet-the-Zombie 6d69f95485 Food dehydrator and our first dehydrated food: meat! 2013-10-12 20:20:02 -05:00
Kevin Granade 92b4a30156 Merge misc fixes. 2013-10-12 19:50:22 -05:00
Rivet-the-Zombie 3deb0f00e7 Tweak. 2013-10-12 18:46:47 -05:00
Christian Buskirk 02a7750c81 Small further driving tweak 2013-10-12 16:10:20 -07:00
Christian Buskirk 285b07f52c Fast noodle fixes 2013-10-12 16:06:14 -07:00
Christian Buskirk 24720ee2b4 Make driving straight increase skill 2013-10-12 16:02:50 -07:00
Rivet-the-Zombie 60a2b76ab8 Tweak. 2013-10-12 17:46:07 -05:00
Rivet-the-Zombie 1b887918aa Tweak. 2013-10-12 17:44:58 -05:00
Christian Buskirk fa57a08669 Fix spraycan flamethrower ammo use 2013-10-12 15:31:00 -07:00
Ian Strachan b90c9c4736 Remove 'Begin cart construction' construction option, as it's not needed any more. 2013-10-12 18:21:15 -04:00
Christian Buskirk 3b7be61352 Stop turrets from targeting hallucinations 2013-10-12 15:19:09 -07:00
Rivet-the-Zombie 20287e836d Fixes a few small errors. 2013-10-12 17:08:38 -05:00
Christian Buskirk 2d9bbc5896 Raise turret stats to account for new aiming system 2013-10-12 15:06:33 -07:00
Rivet-the-Zombie 2e366fb1f1 Tweak. 2013-10-12 15:59:21 -05:00
Christian Buskirk 9a56b54bf3 Fix mislabeled variable crash 2013-10-12 13:35:12 -07:00
Kevin Granade bc1ffe4d8c Merge some bugfixes. 2013-10-12 15:03:52 -05:00
illi-kun e17c35d2b7 Update options.cpp 2013-10-12 09:06:08 -07:00
illi-kun d5ddbe1353 increase tooltip area to 4 lines
since some descriptions are really big.
2013-10-12 08:44:37 -07:00
illi-kun b44a6aaba3 minor tweaks in options.cpp 2013-10-12 08:26:12 -07:00
illi-kun b5e0bbf60b minor tweaks in options.cpp 2013-10-12 07:27:48 -07:00
Rivet-the-Zombie 50dc42bd61 Tweak. 2013-10-12 07:54:39 -05:00
RadaRadaRada 3f76fed824 Wheights and volumes tweaked 2013-10-12 15:03:54 +03:00
Rivet-the-Zombie 376c2d604f Tweak. 2013-10-12 06:22:48 -05:00
Rivet-the-Zombie 3e47b3ec20 Proper fix and recipe! 2013-10-12 06:03:55 -05:00
Rivet-the-Zombie 043261cd62 Fix. 2013-10-12 05:08:33 -05:00
Christian Buskirk 3b35a5da2c Fix extra percent signs in player window 2013-10-12 03:06:12 -07:00
Rivet-the-Zombie d442d986ca Entrenching tool! 2013-10-12 05:02:10 -05:00
Christian Buskirk 95b24bb34d Fix disease messages 2013-10-12 02:55:16 -07:00
Rivet-the-Zombie c50e079e3b Proper. 2013-10-12 04:26:21 -05:00
Christian Buskirk 314e74fed7 Fix non-sided part sides (should be -1) 2013-10-12 02:22:11 -07:00
Rivet-the-Zombie 04c7176644 ANBC recipe! 2013-10-12 04:19:06 -05:00
Rivet-the-Zombie 6c200ef0b2 Armored NBC (ANBC) suit! 2013-10-12 04:17:45 -05:00
Rivet-the-Zombie 756f66134d Spawns and such. 2013-10-12 04:07:03 -05:00
Rivet-the-Zombie 1ebec8e5f2 Proper hazmat suit and rubber boots! 2013-10-12 04:04:35 -05:00
Rivet-the-Zombie bead722a25 Tweak. 2013-10-12 03:44:39 -05:00
Rivet-the-Zombie 381ed10115 Hood on hazmat, too! 2013-10-12 03:42:54 -05:00
Rivet-the-Zombie caf5dd91cf Rename current hazmat suit to cleansuit.
Because that's what it really is.
2013-10-12 03:42:15 -05:00
Rivet-the-Zombie f5bc3958d2 Adds hoods to some clothing. 2013-10-12 03:31:30 -05:00
Rivet-the-Zombie 4546c6092c Making hoods happen! 2013-10-12 03:28:05 -05:00
Christian Buskirk c534f2d7a1 Merge PR #3547 - Children's book changes 2013-10-12 01:24:53 -07:00
Zaweri f78d001a2d Change some snacks to veggy
Changes some snacks from veggy to null, since it does not make sense for herbivores to eat milk products, and it does not make sense for carnivores to eat plant products. Realism < gameplay.
2013-10-12 11:14:10 +03:00
Christian Buskirk 740eb1291e Add missing recipe skills 2013-10-12 00:52:03 -07:00
Christian Buskirk 35ca3df79e Merge PR #3510 - More junk food
Conflicts:
	data/json/items/comestibles.json
2013-10-12 00:33:27 -07:00
Christian Buskirk 8a7bbc184f Merge more carts and armor fix. 2013-10-12 00:23:47 -07:00
Christian Buskirk c2e1aa3b8d Merge vehicle fixes and Rivet smallfixes. 2013-10-12 00:08:10 -07:00
GalenEvil 10157e7561 Changed filefinder to use a temp stack instead of pushing directly into the directories stack. This will keep the search in A->Z directory order instead of being searched in Z->A order. 2013-10-12 00:48:33 -05:00
Kevin Granade b5a962960e Merge type cleanup.
Conflicts:
	catacharset.cpp
	cursesport.cpp
	output.cpp
	sdlcurse.cpp
	sdltiles.cpp
	wincurse.cpp
2013-10-11 23:32:40 -05:00
Rivet-the-Zombie 675e6e22ca Removes weird exclusionary rule that made many storage items and armors ethereal. 2013-10-11 22:59:05 -05:00
Ian Strachan 555a3d9bb9 Notify player of fun reduction from finished books. 2013-10-11 23:51:57 -04:00
Kevin Granade 6df96f6bb3 Merge monster definition cleanup.
Conflicts:
	data/json/monsters.json
	game.cpp
2013-10-11 22:47:36 -05:00
Kevin Granade bd6937eb77 Merge refactors, cleanups, and furniture moving. 2013-10-11 22:46:37 -05:00
Kevin Granade 61208fadfa Merge activation menu rework.
Conflicts:
	inventory_ui.cpp
2013-10-11 22:46:21 -05:00
Kevin Granade b4b0e589bf Merge TERMX/Y refactor. 2013-10-11 22:45:37 -05:00
Ian Strachan dd8a5bb856 Update damage reduction check. 2013-10-11 23:06:00 -04:00
GalenEvil b9a60162a6 Merge branch 'pr/3581' 2013-10-11 22:05:18 -05:00
Ian Strachan 50d70c9461 Documentation update. 2013-10-11 23:03:27 -04:00
Ian Strachan 09a4572604 Purge all remaining uses of external_parts. 2013-10-11 22:57:33 -04:00
phaethonfire f378698cbc switch line 72 & 73 of file_finder.cpp to prevent segfault 2013-10-11 21:54:28 -05:00
phaethonfire eb7ddcbfc6 sync up 2013-10-11 21:48:22 -05:00
phaethonfire 5413a2134a switch line 72 & 73 of file_finder.cpp to prevent segfault 2013-10-11 21:45:30 -05:00
phaethonfire b73c4abac2 updating to upstream 2013-10-11 21:37:44 -05:00
Ian Strachan 399eeb0494 Remove uses of external_parts from veh_interact.cpp. 2013-10-11 22:15:48 -04:00
Ian Strachan fff0568e5a Make vehicle::part_displayed_at safely return -1 if no part instead of segfaulting. 2013-10-11 22:15:32 -04:00
NaturesWitness e267f3ae12 Added welding rig, getting weird bug
So I added in the code for the welding rig, and it kinda works.  The
problem is, it only works if you've dropped an item in the welding rig.
Otherwise, you just get the "you can't do that while onboard!" message
it gives you when you try to examine a vehicle while in it.  Also, if
you do drop an item in the welding rig, it lets you examine the vehicle
even if you're onboard.  I'm not quite sure what's causing this, I'm
probably missing a ; or a , somewhere.  I'll try and look at this again
tomorrow, but if someone could glance at this and see what boneheaded
thing I missed, it would really help.
2013-10-11 22:10:47 -04:00
Ian Strachan 87a295e31a Add all_parts_at_location function to vehicle class, and use it in mapgen.cpp to replace external_parts. 2013-10-11 20:26:40 -04:00
Anuradha Dissanayake 5f40e9d620 Support older C++ standard 2013-10-12 13:24:06 +13:00
Anuradha Dissanayake 920fbb2ee7 Remove option for butcher query, instead querying only if hostiles are around. If there are multiple corpses, show a selection list. Allows double tapping the butcher hotkey to just do the first corpse. 2013-10-12 13:11:43 +13:00
Ian Strachan ad111478c5 Replace external_parts with all_parts_with_feature in map.cpp. 2013-10-11 19:15:20 -04:00
Ian Strachan 12dace38f9 Remove redundant check, and fix broken wheels not triggering traps. 2013-10-11 18:58:03 -04:00
Ian Strachan 2eb962a323 Remove use of external_parts from npc.cpp. 2013-10-11 18:49:13 -04:00
NaturesWitness 8d8baaa643 Menu polishing
Now that the mechanics part of this works, I can focus on cleaning up
the menu part of it.  Ditched the last of the huge string of yes-no
queries from the old version, now examining the kitchen unit gives us a
nice, neat menu instead.  Also renamed the got_water bool in this
function to used_feature to avoid any confusion, and altered it's
placement in the code order to prevent the examine vehicle menu from
popping up after using the kitchen unit functions.  Now all that's left
is to add in the welding rig code, and finally vehicle-mounted equipment
will be just as useful as carried equipment!
2013-10-11 17:57:31 -04:00
Rivet-the-Zombie eb885408d7 Adds chemical stuff to a few more spawn points. 2013-10-11 16:28:54 -05:00
NaturesWitness 583105ee88 It works!!!
Thanks to the efforts of Kevin and dryad, this actually works!  Now all
that's left is to finish the welding rig part of this, which I'll try
and get committed soon.
2013-10-11 16:57:28 -04:00
Rivet-the-Zombie d13df40076 Ammo types. 2013-10-11 15:07:57 -05:00
Rivet-the-Zombie 1173432bfe Superglue fix. 2013-10-11 13:40:39 -05:00
Ian Strachan fe4129a44a Replace external_parts with all_parts_with_feature in lightmap.cpp. 2013-10-11 14:04:07 -04:00
Ian Strachan b658c44084 Use all_parts_with_feature in game.cpp. 2013-10-11 13:56:28 -04:00
Ian Strachan ddff553415 Implement all_parts_with_feature, and remove an unused function declaration.
(Why wasn't that generating a compiler error?)
2013-10-11 13:53:26 -04:00
Ian Strachan a499586cbf Clear game.cpp of references to veh->external_parts. 2013-10-11 13:23:58 -04:00
Williham Totland 4a722d32ab Resolves an issue where building might fail on Linux with LOCALIZE=0 2013-10-11 19:10:40 +02:00
cib 5ebdb7613d Wrapped iuse function pointers in iuse_function class.
This has two goals:
- Better abstraction of iuse's, making it easier to later add lua iuse's
- The ability to do some pre-/postprocessing on iuse's, including common cleanup tasks like applying used charges etc., for this iuse_function::call can be modified
2013-10-11 15:27:44 +02:00
Ian Strachan 05491d08c4 Lower penalty for re-reading old books from 75% to 50%. 2013-10-10 23:57:00 -04:00
GalenEvil c736850a0a Removed monster_species enum (no longer referenced anywhere)
Removed messy mtype declaration and implementation
2013-10-10 22:42:33 -05:00
GalenEvil f1aa4defbb Removed unused functions:
init_mtypes, default_anger, default_fears.
2013-10-10 22:39:13 -05:00
GalenEvil 3ca6146024 Adds default anger and fear triggers to species as taken from default_anger and default_fears in mtypedef.cpp 2013-10-10 22:36:47 -05:00
Kevin Granade 5a6e6b0476 MErge a plethora of bugfixes. 2013-10-10 20:40:55 -05:00
fnord 8d12212701 plmove(grabbed furniture): debuggery be gone 2013-10-10 19:16:42 -05:00
fnord 23489d7e9b construction: remove furniture movement logic. Preserved menu entry, which triggers 'G'rab 2013-10-10 19:12:20 -05:00
fnord e2b53b55c1 Fix item eating 2013-10-10 18:47:20 -05:00
NaturesWitness 2edd2760bd Almost there!
Needed to take a break from this for a few days, was getting
frustrating.  I think I almost have it, I'm just missing one value for
line 7304.  Got rid of adding the hotplate to inventory, and I think I
fixed the code for refunding the remaining charges to the battery.  I
think I'm literally 5 letters away from this working, can anyone tell me
what the last line needs to be?
2013-10-10 18:45:20 -04:00
Tommy a44f78202b Separate monster species out into new file species.json. 2013-10-11 11:07:31 +13:00
Tommy c207002d09 Print warning when autoextracting translation strings and none found. 2013-10-11 10:59:51 +13:00
Tommy 622fcb1fcd Update lang/extract_json_strings.py. 2013-10-11 10:54:53 +13:00
Tommy 5b6e3808cf Fix missing json comma (oops). 2013-10-11 10:48:38 +13:00
Tommy 67b8af8172 Rename martial arts "desc" ~> "description". 2013-10-11 10:48:00 +13:00
fnord 72da42d4cb moving furniture moves contained items, if possible. Also, fix bug where items >64 get eaten 2013-10-10 16:42:24 -05:00
Tommy 7b27c1037a Style techniques.json and martialarts.json. 2013-10-11 10:27:12 +13:00
Tommy 6687b0b163 Fix <npcname> substitution. 2013-10-11 10:04:29 +13:00
Tommy c8d7edadaa Further overhaul melee message translation system. 2013-10-11 09:50:15 +13:00
Tommy 4d9aa0c92c Add "add_msg_if_npc(p, msg, ...)" function. 2013-10-11 09:12:20 +13:00
Tommy 41074dbcb7 Greatly simplify player melee hit messages. 2013-10-11 08:15:18 +13:00
Ian Strachan ff336988f2 Fix internal furnace androids only eating one book chapter at a time. 2013-10-10 13:41:59 -04:00
Rivet-the-Zombie a2534c518b Spoilage timers restored. 2013-10-10 12:41:44 -05:00
Tommy 5f3ff56602 Replace 'verb_you' and 'verb_npc' with generic 'messages' container. 2013-10-11 06:40:54 +13:00
Ian Strachan 3a79ba8dbd Switch casters on wheelbarrow for a small wheel. 2013-10-10 13:29:41 -04:00
Tommy 6c9833a780 Remove game from places it no longer needs to be. 2013-10-11 06:24:41 +13:00
Tommy 76973a40d9 Purge style_move and it_style. 2013-10-11 05:49:45 +13:00
fnord 729468152c fix single-percent crash in mvwprintz etc 2013-10-10 11:02:38 -05:00
fnord bbe1bf75e7 mapgen: change missed instances of square to square_furn. Corrects mansions getting sidewalk tiles
instead of tables
2013-10-10 09:07:18 -05:00
fnord a152014974 construction::able_move; defer to map::can_move_furniture 2013-10-10 08:57:17 -05:00
fnord d53a7842df game::grab, game::plmove: support grabbing and moving furniture. Move keys will push,
pull, or shift furniture position (as in construction menu)
2013-10-10 08:55:30 -05:00
fnord 1329b00a53 add object_type player::grab_type. On load, defaults to OBJECT_VEHICLE if
unspecified and grab_point is set
2013-10-10 08:52:52 -05:00
fnord c4f3364a62 map::can_move_furniture(x,y,player*) returns true if player can move furniture
map::combined_movecost; add optional modifier argument to +/- result (ex simulate cost-without-furniture)
2013-10-10 08:49:02 -05:00
fnord fccb02514b add object_type enum to provide a consistent method of stating what an in-game object's class is.
add obj_type_name and obj_type_id for saving object_type as string
2013-10-10 08:07:14 -05:00
Anuradha Dissanayake 18488b5aa1 Allow a third option for butcher query mode: "Only query if hostiles are nearby" 2013-10-10 20:23:40 +13:00
Rivet-the-Zombie b1a20d8412 Also fixes broth spoil time, for the same reason. 2013-10-10 00:52:34 -05:00
Rivet-the-Zombie 4c39e9e515 Also changes spoilage time on V8.
It shouldn't be spoiling any more than the cans of soda should be
spoiling.
2013-10-10 00:14:21 -05:00
Rivet-the-Zombie 337cdbc930 Changes honey's material type to 'null' and V8's material type to 'veggy'.
If milk is 'null' and eggs are 'null' why is honey 'veggy'. Also, why
isn't V8 'veggy'? That's all it's made from!
2013-10-10 00:10:19 -05:00
Peter Lacey-Bordeaux a1c04def7a changed to clone_stack 2013-10-10 00:24:06 -04:00
Peter Lacey-Bordeaux 8ea21a2784 added a sanity check at the start of the 'A*' subroutine 2013-10-10 00:13:27 -04:00
Rivet-the-Zombie a7c1718cfe Fixes a broken item spawn. 2013-10-09 22:56:28 -05:00
Peter Lacey-Bordeaux f9b2284a85 added a circular radius to check for free space for a monster, set at 3. Added functions that take a point 2013-10-09 23:19:33 -04:00
Peter Lacey-Bordeaux a4d2807273 i instead of j mix up. Code smellz 2013-10-09 22:52:00 -04:00
Rivet-the-Zombie 34be63ed93 Apparently C:DDA's wordwrap function hates long names. 2013-10-09 21:39:24 -05:00
Tommy f2074c444a Move martialarts.json to data/json and convert to json.h. 2013-10-10 15:36:33 +13:00
KA101 d9eab6a513 OK OK
Fries are back and I think the item_groups is handled.  Now I've gotta
actually see if it works.
2013-10-09 22:19:46 -04:00
Tommy 88b6a9a82e Implement JsonObject::get_tags(name) convenience method. 2013-10-10 15:05:29 +13:00
Ian Strachan 4c94831671 Add swivel chair spawns to offices and office towers. 2013-10-09 20:53:45 -04:00
Christian Buskirk 2c04f096a0 Fungal group rebalance 2013-10-09 17:49:30 -07:00
Tommy 59ad88aff3 Completely replace VIEWX, VIEWY with POSX, POSY. 2013-10-10 13:36:07 +13:00
Tommy 88f20de23f Clarify all uses of VIEWX and VIEWY, mostly to POSX/POSY. 2013-10-10 13:31:00 +13:00
Ian Strachan 30f6765ab5 Spawn luggage carts at hotel entrance areas. 2013-10-09 20:25:31 -04:00
Ian Strachan cd335db897 Spawn wheelbarrows in and around hardware stores. 2013-10-09 20:13:08 -04:00
Ian Strachan 265ef89577 5/6 chance of a hotdog or ice cream cart in non-basketball parks. 2013-10-09 19:48:25 -04:00
Ian Strachan ecf831e7df 1/24 chance of a welding cart in a garage. 2013-10-09 19:35:36 -04:00
Ian Strachan b3695fdf19 Add a whole bunch of carts. 2013-10-09 19:35:22 -04:00
RadaRadaRada de5b4a3779 More components for sugar recipe 2013-10-10 02:24:40 +03:00
Peter Lacey-Bordeaux 05e88cc00b fixed the activatable menu 2013-10-09 19:11:58 -04:00
Tommy a5c0041f10 Remove some obsolete commented code. 2013-10-10 12:11:45 +13:00
Ian Strachan 78b7a993ea Add the small storage battery and minifridge. 2013-10-09 19:07:03 -04:00
Ian Strachan d51b262a43 Books that have run out of chapters are not as much fun any more. 2013-10-09 18:22:14 -04:00
RadaRadaRada 3ce30caab8 Fixes 2013-10-10 01:17:20 +03:00
Ian Strachan 626b00e6d8 Fun books now have charges that represent chapters. 2013-10-09 18:00:33 -04:00
Tommy bff128c640 Add POSX, POSY globals for position of '@' inside terrain window. 2013-10-10 10:44:02 +13:00
Tommy a6a53586c5 Add comments to display globals indicating usage. 2013-10-10 10:36:21 +13:00
Tommy 261c776d77 Allow VIEWX and VIEWY < 12. 2013-10-10 10:17:25 +13:00
Tommy 679051c1cb Correctly set VIEWX and VIEWY. 2013-10-10 08:12:52 +13:00
Christian Buskirk 6d44a067a7 Remove extra ::infect arguments 2013-10-09 11:50:02 -07:00
Rivet-the-Zombie a6e818b611 Changes stats on children's book. 2013-10-09 12:23:40 -05:00
Tommy d24361dcd7 Yet again, remove even/oddness constraint on TERMX and TERMY. 2013-10-10 05:08:36 +13:00
RadaRadaRada 2b79467cb8 Tweak 2013-10-09 18:20:04 +03:00
RadaRadaRada d5c14e3c4f Tweaks 2013-10-09 16:56:50 +03:00
RadaRadaRada 5922d52fb9 Merge branch 'master' of https://github.com/CleverRaven/Cataclysm-DDA into food 2013-10-09 12:54:22 +03:00
Anuradha Dissanayake e34617515b Add option to disable query on butcher 2013-10-09 22:29:42 +13:00
fnord e9096a88d7 Another NULL check, just incase an NPC has no profession 2013-10-09 00:48:46 -05:00
Rivet-the-Zombie 274eb6ed03 Fix'd. 2013-10-09 00:45:54 -05:00
Rivet-the-Zombie 0fbe5fbe52 Adds gold to two reloading recipes. 2013-10-09 00:39:55 -05:00
fnord 848c030367 npc_favor::json_save/load: NULL ptr check. 2013-10-09 00:12:24 -05:00
Kevin Granade 4ad1a662e8 Septomerge of bugfixes, cleanups, and translation update. 2013-10-08 23:16:47 -05:00
Kevin Granade 602b4b9f3c Merge some text fixes. 2013-10-08 22:36:48 -05:00
Tommy 1e7cb61ffa Remove <name> tag from .po files so translators don't have to. 2013-10-09 14:34:08 +13:00
Tommy 3c95f185cc Rename pl_PL.po to pl.po. 2013-10-09 14:22:11 +13:00
Tommy 566731736f Update all the .po files. 2013-10-09 14:18:14 +13:00
Tommy 6b7112fece Update the .pot file (farewell, 0.8). 2013-10-09 14:14:56 +13:00
Tommy b2c52e19e2 vehicles.json and vehicle_parts.json name autoextraction. 2013-10-09 14:14:11 +13:00
Tommy 4cfc15dc01 Change guidebook colour from black to dark grey for better display. 2013-10-09 14:03:30 +13:00
Tommy 7b656190c6 New book: guidebook. New profession: hitchhiker. 2013-10-09 13:56:34 +13:00
Ian Strachan bb413447a1 Fixes #3525. 2013-10-08 20:26:21 -04:00
Kevin Granade 4fbff02d57 Merge translation updates and cleanup.
Conflicts:
	data/json/furniture.json
2013-10-08 19:20:21 -05:00
Ian Strachan f3ef797451 Remove unused function. 2013-10-08 20:16:42 -04:00
Kevin Granade bb0361e58f Merge save format conversions. 2013-10-08 19:07:07 -05:00
Kevin Granade 49bdcb1a8e Merge monstergroup json conversion.
Conflicts:
	game.cpp
	init.cpp
	mongroup.h
	mongroupdef.cpp
2013-10-08 19:06:22 -05:00
RadaRadaRada f8d0859bd6 Item_groups file updated 2013-10-09 02:47:46 +03:00
Kevin Granade 29f744830a Merge vehicle json conversion.
Conflicts:
	game.cpp
2013-10-08 18:23:40 -05:00
RadaRadaRada 1f92244e36 Last of the fruit: papaya, apricot, kiwi and restored accidentally deleted item. 2013-10-09 02:11:02 +03:00
Kevin Granade e021b64a12 Merge bugfixes. 2013-10-08 17:54:23 -05:00
Tommy 5514a887bf Explicitly tell xgettext about pgettext for json/python extraction. 2013-10-09 11:00:06 +13:00
Tommy 8af85ed10e Fix non-ASCII string in iuse.cpp. 2013-10-09 10:57:57 +13:00
RadaRadaRada 49e7996d1a Embarrassing spelling mistakes fixed. 2013-10-09 00:53:15 +03:00
RadaRadaRada 110746c70f Added pomegranate, mango and rhubarb. 2013-10-09 00:42:50 +03:00
Tommy 135b44973a Add new json files to lang/extract_json_strings.py. 2013-10-09 10:40:58 +13:00
Christian Buskirk 9b78169667 Fix furniture in buildings 2013-10-08 14:40:47 -07:00
Tommy 501f503b11 Remove trailing commas from some json files. 2013-10-09 10:34:57 +13:00
Christian Buskirk 6b435778c1 Fix duplicate flag in f_rack 2013-10-08 14:31:06 -07:00
Rivet-the-Zombie 3158d630c6 Set to 500 reload time. 2013-10-08 16:30:11 -05:00
RadaRadaRada b4f08dd9b3 Remaining recipes modified 2013-10-09 00:11:54 +03:00
Rivet-the-Zombie 56a5d440e7 Alters pneumatic bolt driver's reload time to be more in-line with the other pneumatic weapon. 2013-10-08 16:10:26 -05:00
Tommy cf5aeb833a Extract strings from most json files using a common routine. 2013-10-09 10:01:29 +13:00
Tommy dfc0926f8d Update lang/extract_json_strings.py for files moved to data/json. 2013-10-09 09:41:10 +13:00
Tommy b880e64f7c Fix some minor json errors. 2013-10-09 09:35:15 +13:00
Christian Buskirk f8bf0751e3 Fix traps 2013-10-08 13:34:27 -07:00
Rivet-the-Zombie 294af3fb6e Replaces knife tool segments with 'CUT' tag segment! 2013-10-08 15:22:37 -05:00
Tommy aab3431a5f Use gettext contexts for proper names. 2013-10-09 09:10:40 +13:00
Tommy 29ab127a73 Modify pgettext() to work with dynamically loaded strings. 2013-10-09 09:10:36 +13:00
fnord 0ff8714b04 jsonize master.gsav: active missions and factions (whatever they are for, at least they're saved better now) 2013-10-08 15:00:18 -05:00
Rivet-the-Zombie cc376b6924 Removes tungsten alloy from 5x50 dart's description. 2013-10-08 13:54:00 -05:00
Anuradha Dissanayake 04d0e499c4 Add debug tiles config for VS 2013-10-09 07:25:06 +13:00
Christian Buskirk a6306ec754 Spires fling instead of teleporting 2013-10-08 11:22:20 -07:00
Ian Strachan cfd362ce10 Die, car chassis! You don't belong in this world. 2013-10-08 14:15:43 -04:00
Ian Strachan 5fb29bfb92 Pull road-based vehicle spawning into a single function 2013-10-08 14:10:23 -04:00
Christian Buskirk 8e97f77d0d Move the useful coordinate to angle function to map 2013-10-08 10:43:29 -07:00
Christian Buskirk a2f4ec57ff Some monster tweaks 2013-10-08 10:31:17 -07:00
Christian Buskirk a823181b9b Merge to mainline
Conflicts:
	data/json/items/comestibles.json
	monattack.cpp
	mondeath.cpp
	mtype.h
	mtypedef.cpp
2013-10-08 10:13:12 -07:00
RadaRadaRada ee41582582 Most of the existing recipes updated. 2013-10-08 19:31:27 +03:00
Christian Buskirk 870aa612f4 Fix zombie dog and turkey sizes 2013-10-08 09:23:50 -07:00
RadaRadaRada 505ebf4708 Generic cooked fruit, jam and juice recipes 2013-10-08 19:06:11 +03:00
RadaRadaRada e8c3d96705 Renamed Can_pineapple to avoid confusion. 2013-10-08 18:40:01 +03:00
RadaRadaRada 0789a637e9 MOAR! types fruit. 2013-10-08 18:22:36 +03:00
fnord aa54562f9b Merge remote-tracking branch 'origin/pr/3498'
Conflicts:
	itypedef.cpp
2013-10-08 05:20:36 -05:00
fnord 61bdbf395d Merge remote-tracking branch 'origin/pr/3497'
Conflicts:
	itypedef.cpp
2013-10-08 05:19:51 -05:00
fnord 8ccc6f6fe1 More wheel fixes 2013-10-08 05:19:06 -05:00
Anuradha Dissanayake 5e40239353 Get SDL Tiles config building in Visual Studio 2013-10-08 22:44:39 +13:00
fnord 6ece7bc5e9 game::save: save/name.sav: fully jsonized save for the header. Memorial log saved as save/name.log 2013-10-08 03:49:21 -05:00
Anuradha Dissanayake 17f2a6fc69 Refresh VS 2012 project with fixes from 2010 2013-10-08 20:41:57 +13:00
Anuradha Dissanayake 18d248695b Add another missing SDL lib 2013-10-08 20:31:39 +13:00
Anuradha Dissanayake 721846b882 Fix ambiguous calls to math functions in VC++ headers 2013-10-08 20:25:05 +13:00
Anuradha Dissanayake 758d7ecc96 Fix names of SDL libs 2013-10-08 20:20:53 +13:00
Anuradha Dissanayake 7edd936bfd Add missing files to VS project 2013-10-08 20:12:47 +13:00
fnord 062d1553c9 Update legacy loader for monster refactor 2013-10-08 01:42:30 -05:00
KA101 bd8c0ec926 Whoops, not my idea
Reviewed the IRC and the fries were Rivet's idea originally.  Struck
from my PR as there are far too many instances of men stealing women's
work already.
2013-10-08 02:21:27 -04:00
fnord 24fd7461ff Merge remote-tracking branch 'origin/master' into save_weather_better 2013-10-08 00:58:54 -05:00
fnord e4f821c637 savegame v10 -> v11: save scentmap with rle encoding.
Save full weather history to save/(character).weather, changing future_weather to a map.
2013-10-08 00:53:57 -05:00
fnord 594d9e5156 Merge tire changing fix and oodles of noodles (still no Pho) 2013-10-08 00:47:50 -05:00
Kevin Granade 598f369799 Refactor iuse methods and callers to return the number of charges used instead of draining charges themselves. 2013-10-07 23:46:24 -05:00
Rivet-the-Zombie 289488e0fc Fixes a text mixup in snippets.json! 2013-10-07 23:40:17 -05:00
Rivet-the-Zombie 9a656231d1 Tweak. 2013-10-07 23:30:24 -05:00
Rivet-the-Zombie 913aea50e1 Tweak. 2013-10-07 23:26:47 -05:00
Tommy 163fb5429d Merge Launchpad Translations. 2013-10-08 17:21:06 +13:00
Rivet-the-Zombie 4f09df8001 Tweak. 2013-10-07 23:18:26 -05:00
Ian Strachan e778895947 Fix changing tires under the new vehicle system. 2013-10-08 00:16:36 -04:00
Rivet-the-Zombie daab5381f5 Tweak. 2013-10-07 23:14:40 -05:00
fnord 6c1df2b8b2 Merge uber monster jsonize pr, a fletchette gun to shoot them with, and fixed wheels to squish them with 2013-10-07 23:12:02 -05:00
Rivet-the-Zombie 7f89b2f350 Winter survivor suit! 2013-10-07 23:08:45 -05:00
Rivet-the-Zombie 5d7d060512 Tweak. 2013-10-07 23:04:31 -05:00
Rivet-the-Zombie d2008ffc66 Tweak. 2013-10-07 22:58:53 -05:00
Rivet-the-Zombie 3678e048aa Tweak. 2013-10-07 22:51:30 -05:00
Rivet-the-Zombie 1d0fc3e505 Survivor gear accessories: helmet, boots, and gloves! 2013-10-07 22:49:10 -05:00
KA101 e6d1315a15 More junk food
French fries, malted milk balls, peppermint patties, and Necco wafers.
2013-10-07 21:55:45 -04:00
Rivet-the-Zombie aa359babbb Grammar alteration to make the soldering/low-batteries message more clear. 2013-10-07 20:26:28 -05:00
GalenEvil 57ad6c6bc8 Alterations to make monstergroups load using new loading system 2013-10-07 19:49:41 -05:00
GalenEvil 28dcf0f707 Moved monstergroups.json from data/raw to data/json 2013-10-07 19:03:40 -05:00
GalenEvil c1d7d96f0f Altered vehicles.json to give it type information for loading again.
Altered veh_typedef vehicle_part loading system to use new layering mechanics
2013-10-07 18:42:27 -05:00
GalenEvil ecb6da1cd5 Cleaned up unused functions 2013-10-07 18:22:14 -05:00
GalenEvil 4775ccb036 Added "type" information to vehicles and vehicle_parts.json files.
Moved initialization logic from game::game() to game::init_data() so that g will be fully initialized prior to installing vehicle parts during vehicle finalization procedure. Added JsonObject loading systems for vehicle parts and vehicles. Vehicles are cached in a temporary object so they can be finalized after itypes are initialized.
2013-10-07 18:21:12 -05:00
GalenEvil 020df19481 Moved vehicles.json and vehicle_parts.json over to data/json directory 2013-10-07 18:14:00 -05:00
Rivet-the-Zombie 4d75bbc6a4 Recipe tweak. 2013-10-07 16:39:05 -05:00
Rivet-the-Zombie 5f721002ed Ornamental armor weight is now 18 kg. 2013-10-07 16:36:43 -05:00
Rivet-the-Zombie f346f4f662 Changes names for some medieval armor things and tweaks weights a bit.
Compromise on names that don't require SCA history lessons to decipher,
plus a bit of extra internet research shows that the armor was indeed a
little on the heavy side.
2013-10-07 15:57:30 -05:00
Ian Strachan d7e3f7188d Fix the 'enough wheels' calculation to look at wheels hidden under other stuff. 2013-10-07 13:30:01 -04:00
RadaRadaRada 7f1ce6f9af A better name 2013-10-07 20:15:43 +03:00
RadaRadaRada 6e65fb5059 1. Mac 'n cheese, now with cheese.
2. Nutrition/quench changes.
3. New item: fast noodles.
4. Noodle using recipes modified.
2013-10-07 19:51:33 +03:00
fnord a8b62273f2 add_missing_frames: optimize.
* run after part insertion, within json_load/load_legacy functions
* push new frame into item list instead of using vehicle::install_part, which triggers
  find_external_parts, find_exhaust, precalc_mounts once for every frame added; load
  does this anyway.
* Only run if savegame_loading_version is v10 or below; new saves won't have vehicles
  with invalid frame config.
2013-10-07 06:00:09 -05:00
fnord 6be44cdb02 Stop vehicle missing frame check from causing crash by using typical part iteration loop. 2013-10-07 05:39:36 -05:00
Rivet-the-Zombie e86ae4a985 Tweak. 2013-10-07 04:54:44 -05:00
Rivet-the-Zombie 1222f283b2 Hull spawns. 2013-10-07 04:46:38 -05:00
Rivet-the-Zombie f559675fd3 Spawns. 2013-10-07 04:38:12 -05:00
Rivet-the-Zombie 8709a92148 Adds a default ammo type for caseless weapons. 2013-10-07 04:31:41 -05:00
Rivet-the-Zombie c45824754d Automatic flechette SMG! 2013-10-07 04:30:08 -05:00
GalenEvil ce9ba63426 Merge branch 'pr/3493' 2013-10-07 04:17:16 -05:00
GalenEvil 5ca3c144e3 fix to clear redundant inclusion of <string> and <sstream> between helper.h and helper.cpp 2013-10-07 04:16:57 -05:00
GalenEvil b4811cc766 Merge branch 'pr/3491' 2013-10-07 03:44:07 -05:00
Rivet-the-Zombie a26a6652e0 Tweak. 2013-10-07 03:42:26 -05:00
Rivet-the-Zombie 304379e252 Makes it a permanent disassembly thing. 2013-10-07 03:26:26 -05:00
Robert Sørlie dac7ab069c crashfix for wingdi version 2013-10-07 09:55:47 +02:00
Christian Buskirk b1ab4c4cb2 Movecost sanity check 2013-10-07 00:44:02 -07:00
Christian Buskirk a89f5cfe56 Fix glare 2013-10-07 00:43:51 -07:00
fnord c55fb6abf0 Speed up json_load_dir by 400% by eliminating try/catch in item_factory, and using is_array instead 2013-10-07 02:27:31 -05:00
Christian Buskirk 41c2290002 Remove unneeded double-percent signs 2013-10-07 00:07:10 -07:00
Christian Buskirk 3d60959a00 Finalize fungal spreading 2013-10-06 20:52:56 -07:00
Kevin Granade 3322529af1 Merge a plethora of cleanups.
Conflicts:
	data/json/recipes.json
2013-10-06 20:10:21 -05:00
NaturesWitness 278843393e Trying again
Okay ditched the fake NPC and figured out how to give this to the
player.  Also added the got_water = true line to prevent us going to
examine vehicle.  Problem is now that I've given the hotplate to the
player I can't figure out how to get rid of it afterword.  I tried
u.i.rem but couldn't get it working.  Also still can't figure out how to
set the values in iuse::hotplate to make it compile.
2013-10-06 20:43:06 -04:00
Kevin Granade 206345b284 Merge reworked vehicle construction system.
Conflicts:
	data/raw/vehicle_parts.json
2013-10-06 18:11:50 -05:00
Rivet-the-Zombie 1f556504a2 Fixed reversible tags. 2013-10-06 17:27:57 -05:00
Rivet-the-Zombie 29749c290e Fixes incorrect categories for three recipes. 2013-10-06 15:31:51 -05:00
Rivet-the-Zombie fd6c4cf3d8 Adds salvaged power armor and recipes!
Rip out all the cool inside bits and you get power armor with reduced
stats and "power_armor" : false.
2013-10-06 15:22:45 -05:00
Rivet-the-Zombie d12abd6a05 Moves wrapped radiation badge from armor.json to tools.json! 2013-10-06 14:45:55 -05:00
Kevin Granade ddc3ba6775 Merge editmap wall painting enhancement, cscope ignore, json fix, and construction menu enhancement. 2013-10-06 14:10:56 -05:00
Ian Strachan d20675181d Fix the issue with plating by leaving it as an obstacle but making its z-order so low it is never shown; only its color change is seen. 2013-10-06 14:59:24 -04:00
Ian Strachan bb292c3b62 Add code to insert frames into legacy vehicles. 2013-10-06 14:54:06 -04:00
C0DEHERO 1c98c8dc9b Added construction time to construction window. implements feature requested in issue #3356 2013-10-06 14:33:46 -04:00
Ian Strachan 8f3156ba76 And lo, for the cube van did have boards above its wheels! And all was good. 2013-10-06 13:54:18 -04:00
Ian Strachan 566025c5f4 Implement the BFS in can_unmount, make sure it is checked on all parts, fix seatbelt check, and remove the no-longer-needed internal_parts() function. 2013-10-06 13:51:23 -04:00
Siwen Yu a0402e04c8 Fix JSON format error in line:6400
delete a redundant square bracket in line:6399
2013-10-07 00:22:12 +08:00
Siwen Yu 6d38e89b3b add CSCOPE generated files to .gitignore 2013-10-06 22:31:48 +08:00
fnord 76d8930c11 Merge pneumatic rifle and lighter tweaks, and SCIENCE!(tm) 2013-10-06 07:39:33 -05:00
fnord a7989e5268 debug weather: dump weather list 2013-10-06 06:30:08 -05:00
fnord b92ef89202 Also, fix terrain/furniture edit window title overflow 2013-10-06 05:56:41 -05:00
fnord b66dd8a804 editmap terrain editor will automatically write horizontal or vertical terrain types in rectangle draw mode. 2013-10-06 05:44:12 -05:00
Rivet-the-Zombie f50025ffc1 Grammar cleanup. 2013-10-06 04:06:38 -05:00
Rivet-the-Zombie ae9ebe447c Tweak. 2013-10-06 04:05:29 -05:00
Rivet-the-Zombie f683141d1e Recipe diversification. 2013-10-06 04:02:36 -05:00
Rivet-the-Zombie 86d447efa1 Adds rare chemistry set spawn to science group. 2013-10-06 03:59:08 -05:00
Rivet-the-Zombie 92de488918 Grammar cleanup. 2013-10-06 03:58:01 -05:00
Rivet-the-Zombie b4a6f76ab3 Recipe diversification. 2013-10-06 03:55:53 -05:00
Rivet-the-Zombie 6f11b5d12b Fructose extraction. 2013-10-06 03:44:41 -05:00
Rivet-the-Zombie fb9cc70109 Chemistry set size fix. 2013-10-06 03:38:59 -05:00
Rivet-the-Zombie 76febc736c Adds rare chemistry set spawn to drug dealer corpses. 2013-10-06 03:34:19 -05:00
Rivet-the-Zombie 6e1f37ae13 Tweak. 2013-10-06 03:32:37 -05:00
Rivet-the-Zombie f9a50f7612 Integration. 2013-10-06 03:26:40 -05:00
Rivet-the-Zombie ac07b2c4e7 Simplified Chloralkali process salt electrolysis 2NaCl + 2H2O -> Cl2 + H2 + 2NaOH! 2013-10-06 03:20:10 -05:00
Rivet-the-Zombie 2c8591a367 Powdered caustic soda! 2013-10-06 03:15:28 -05:00
Rivet-the-Zombie 7436b3ea6d Haber process ammonia electrolysis with charcoal reagent and iron catalyst N2 + 3H2 -> 2NH3! 2013-10-06 03:08:55 -05:00
Rivet-the-Zombie 3d3f1dd1eb Hooker process bleach electrolysis Cl2 + 2NaOH -> NaCl + NaClO + H2O 2013-10-06 03:04:24 -05:00
Rivet-the-Zombie 5ccb321a0d Tweak. 2013-10-06 02:54:56 -05:00
Rivet-the-Zombie a660d8ef10 Disinfectant, iodine tablets, and water purifier tablets! 2013-10-06 02:54:19 -05:00
Rivet-the-Zombie 57394b90b1 Bootleg caseless rounds. High requirements, low yield and reduced stats. 2013-10-06 02:45:44 -05:00
Rivet-the-Zombie cc5c820b43 Adds recipe to turn scrap into lead for projectiles. 2013-10-06 02:29:16 -05:00
Rivet-the-Zombie bd7e652c6e Incendiary recipe! 2013-10-06 02:25:07 -05:00
Rivet-the-Zombie f3b44e7dc0 Primers! 2013-10-06 02:20:52 -05:00
Rivet-the-Zombie 73629f70c3 No open flame, please! 2013-10-06 01:57:57 -05:00
Rivet-the-Zombie cc536b33ef NH3+HClO4 ->NH4ClO4 so we add that ammonium perchlorate to charcoal and we get what? Gunpowder! Write that down in your copybook. 2013-10-06 01:18:24 -05:00
Rivet-the-Zombie 414a445c23 Oxidizer powder. Dangerous stuff! 2013-10-06 01:12:44 -05:00
Rivet-the-Zombie 5946c0e124 Let's give the chemistry set some real utility! 2013-10-06 01:01:18 -05:00
C0DEHERO 67fe1eba6d improved lighter bug fix 2013-10-05 23:46:53 -04:00
C0DEHERO ee0951db0e fixed lighter bug 2013-10-05 23:29:55 -04:00
Rivet-the-Zombie 30decec4f5 Tweak.
Taking into account STR_RELOAD.
2013-10-05 22:23:14 -05:00
Rivet-the-Zombie 44e5ff5a37 Tweak. 2013-10-05 22:20:59 -05:00
Rivet-the-Zombie d45b050a4c Pneumarifle reload change! 2013-10-05 21:50:18 -05:00
Kevin Granade e00d2ce31b add core, tags file to .gitignore
Conflicts:

	data/gfx.txt
2013-10-05 21:43:28 -05:00
Kevin Granade cf8e38f1b0 Remove commented out source code. 2013-10-05 21:29:16 -05:00
Kevin Granade aeee4192f7 fix sdl standard sidebarWidth
stop using use_narrow_sidebar() in curses_init(), because TERMY is not initialized at this time, so use_narrow_sidebar() always return true;
2013-10-05 21:28:52 -05:00
Kevin Granade 097e37319c Merge batch of books.
Conflicts:
	data/json/item_groups.json
2013-10-05 21:15:43 -05:00
Kevin Granade ae7fb59f68 Remove a bunch of commented out code. 2013-10-05 20:54:19 -05:00
Kevin Granade ffbbae40b2 Content and feature septmerge.
Conflicts:
	init.cpp
2013-10-05 20:21:02 -05:00
Rivet-the-Zombie 19de321bf2 Increases pneumatic assault rifle's reload time a bit.
Because "reload": 800 was still pretty fast for being a pump-up weapon.
2013-10-05 19:32:28 -05:00
Rivet-the-Zombie 2dd9de223c Tweak. 2013-10-05 19:22:25 -05:00
Kevin Granade b387c4c7fe Merge json fixes and terminal alignment temp fix. 2013-10-05 19:07:54 -05:00
Rivet-the-Zombie da3e7345d5 Adds new IED - explosive crossbow bolts!
New ammo type and recipe, does not spawn naturally.
2013-10-05 17:33:20 -05:00
Rivet-the-Zombie 3380fc4d5b Tweak. 2013-10-05 17:03:44 -05:00
Rivet-the-Zombie 76cdb5e458 Adds a recipe for normal crowbar using blacksmithing tools. 2013-10-05 17:02:14 -05:00
fnord 50b6cbbc64 remove old_ter from open_gate call 2013-10-05 16:55:14 -05:00
fnord 6ffa943116 Merge remote branch 'origin/master' into ter-furn_enum_independence 2013-10-05 16:51:43 -05:00
fnord c717ffd3d9 Fix misaligned SDL graphics and list_items pointer etc
Revert 3b3d533 which removes symmetry adjustment for TERMXY
2013-10-05 16:40:05 -05:00
Rivet-the-Zombie 9e3f432f68 Typo fixes. 2013-10-05 16:21:06 -05:00
Rivet-the-Zombie 678dc831c8 Don't feel bad, boys - lads' magazine, survival skill 0-1, same stats as the two women's magazines. 2013-10-05 16:18:54 -05:00
Rivet-the-Zombie 97671a307e Two new women's magazines, tailoring and cooking 0-1, super common.
And no I'm not perpetuating a stereotype against my own gender here.
They're common as all heck, they're as big as phonebooks, and the only
useful info a C:DDA hero could extract from one might be a little of the
cooking or tailoring skill. Maybe. And it'd take a lot of effort. So I
set their reading times much higher and made them huge, heavy  versions
of the normal skill magazines, and I think they look legit.
2013-10-05 16:08:55 -05:00
Rivet-the-Zombie bdef5b0b60 Archery book, skill 0-2, semi-rare. 2013-10-05 15:45:28 -05:00
Rivet-the-Zombie d0add25c86 Pocket gun book, skill 0-2, rare. 2013-10-05 15:38:22 -05:00
Rivet-the-Zombie 843e825865 Pocket survival guide, skill 0-2, rare. 2013-10-05 15:34:33 -05:00
fnord 4933ed7ec4 Reduce 3+ second json load to ~2 seconds by eliminating ~240000 fseeks 2013-10-05 15:15:29 -05:00
fnord 6a710c1e6d jsonload: eliminate un-needed item factory finding for new itypes 2013-10-05 15:08:00 -05:00
Ian Strachan fc59d46ef5 Update can_unmount (mostly) with new rules. Fixes being able to remove a seat before the seatbelt. 2013-10-05 15:48:18 -04:00
Ian Strachan 6f07348cb6 'o' and 'c' can open/close car doors again. 2013-10-05 15:05:04 -04:00
Ian Strachan 43f6678441 Fix the veh_interact pane not showing all parts in the examine window. 2013-10-05 14:46:39 -04:00
Ian Strachan a4161a6c2f Tidy up the part display code a little. 2013-10-05 14:39:29 -04:00
Ian Strachan a7dcace88f Fix up In/Out detection - prevents broken seats, frames etc making a square be 'outside'. 2013-10-05 14:08:50 -04:00
Ian Strachan 78de15f1f3 Add missing roof to trunk in the bubble car. 2013-10-05 13:53:00 -04:00
Ian Strachan 4b23d53932 Removed a needless void* followed by a hard cast - why wasn't this a WINDOW* already? 2013-10-05 13:38:01 -04:00
NaturesWitness bdb244f598 Add NPC to hold the hotplate
Adds an NPC to hold the hotplate, as I can't figure out how to give it
to the player.  Still don't know how to actually use the hotplate, I've
tried about everything I can think of.
2013-10-05 13:36:27 -04:00
C0DEHERO 94783510fa Signed the SIGNOFF 2013-10-05 12:54:28 -04:00
C0DEHERO ed3743984c forgot a comment 2013-10-05 12:10:14 -04:00
C0DEHERO f95f824a00 Changed tileset.tif to tileset.txt. I may reimplement this with json 2013-10-05 12:05:11 -04:00
C0DEHERO 51af914b18 Added tileset option to the option menu. The options will be populated dynamically with the tilesets in gfx/. Tilesets should be in their own folder and should have a tileset.tif. Examples of those tileset.tif are in the tileset folders in gfx/ 2013-10-05 11:34:48 -04:00
fnord 45657bcf4d picojson::parse: use LC_NUMERIC = C 2013-10-05 10:12:41 -05:00
GalenEvil 56066856de Merge branch 'pr/3466' 2013-10-05 04:58:53 -05:00
fnord 701ef0c8b7 Merge remote branch 'origin/master' into frackingjsonbooks 2013-10-05 04:40:59 -05:00
fnord ec5b3ec634 Merge 'we'll take items.json from here and put it into there' 2013-10-05 04:38:37 -05:00
fnord d6683f7e27 Cleanup style of nosuchbook carping 2013-10-05 04:34:23 -05:00
fnord 6ebf0c2c6f Load recipes -after- items 2013-10-05 04:32:18 -05:00
GalenEvil 90b2740b3a move name "type" member to end of definition to see if that makes the diff not freak out as much... 2013-10-05 04:22:57 -05:00
fnord 47710a5047 Merge remote branch 'origin/pr/3460' into frackingjsonbooks 2013-10-05 04:22:37 -05:00
fnord cb51024da1 recipe load: Add debugmsg whining for missing books 2013-10-05 04:20:34 -05:00
GalenEvil b1ba9f740b Added JsonObject loading functions for migo_speech and names to the appropriate locations. Removed now unused functions and references to those functions. Added files and function calls to init.cpp 2013-10-05 04:16:19 -05:00
GalenEvil 4ceaa6a9b2 Added "type" members 2013-10-05 04:16:18 -05:00
GalenEvil 841e9bf758 Moved names.json from data/raw to data/json. Moved and renamed parrot.json from data/raw/parrot.json to data/json/migo_speech.json 2013-10-05 04:16:18 -05:00
fnord 4925aaceff fix build warning 2013-10-05 03:26:13 -05:00
fnord 1b5083ced8 Merge json type checking 2013-10-05 03:25:37 -05:00
GalenEvil fb41ae3407 fixed missing type tag 2013-10-05 03:20:14 -05:00
GalenEvil f7c452f8bc Cleaned up Item_factory, removing unused functions: 2013-10-05 03:08:03 -05:00
GalenEvil 1424e863fc Reverted addition of file_finder call and manually added the additional filepaths that are needed to be loaded. Using file_finder messes with recipes a bit by making them load before skills that they need. 2013-10-05 03:08:01 -05:00
GalenEvil ef325320af Removed section where Item factory tries to load stuff 2013-10-05 03:08:00 -05:00
GalenEvil 61ae8d1ed2 Addition of "GENERIC" and "INSTRUMENT" tags, instrument is unused other than to make sure it doesn't freak out when trying to load.
Added "colordef" as an ignored tag, and set up init to use file_finder to get json paths.
Added load_X(JsonObject &jo) functions to item_factory and alternative functions to those that would otherwise use catajson objects.
2013-10-05 03:07:59 -05:00
GalenEvil ac1a5ea2dc Initial move of item jsons from raw/items to json/items 2013-10-05 03:03:42 -05:00
fnord 4791f23d46 Merge remote branch 'origin/master' into ter-furn_enum_independence 2013-10-05 02:21:38 -05:00
Kevin Granade ce9f140b35 Merge reinforced solar panels, chocolate covered coffee beans, hip flask, and typo fixes. 2013-10-05 00:23:24 -05:00
Rivet-the-Zombie 5811471512 Not books, but two notes for snippets.json! 2013-10-04 22:21:42 -05:00
Rivet-the-Zombie 78c4c62984 Tweak. 2013-10-04 21:38:59 -05:00
Rivet-the-Zombie 6bf9ad9a88 Family cookbook cooking skill book 1-5, fun+1, very rare. 2013-10-04 21:36:47 -05:00
Rivet-the-Zombie 08e23fdd9b Pocket first aid guide skill 0-2, rare. 2013-10-04 21:29:18 -05:00
Rivet-the-Zombie 5b148f6769 Ham radio book, electronics 4-8. 2013-10-04 21:22:24 -05:00
GalenEvil ce1047ae28 Merge branch 'pr/3457' 2013-10-04 21:15:04 -05:00
GlyphGryph c4931b1163 Hit some of the low-hanging fruit and replaced some recipe item lists with the CUT quality. 2013-10-04 22:14:15 -04:00
Rivet-the-Zombie 207e16ea32 Big book of short stories. 2013-10-04 21:13:29 -05:00
Rivet-the-Zombie 7638961cc3 Satire novel. 2013-10-04 21:10:24 -05:00
Rivet-the-Zombie 85474cd2c2 Book of philosophy. 2013-10-04 21:05:47 -05:00
Rivet-the-Zombie 4f8fc60479 Book of essays. 2013-10-04 21:02:14 -05:00
Rivet-the-Zombie 95cd86768b Pulp novel. 2013-10-04 20:51:53 -05:00
NaturesWitness 798143e27e Can disassemble reinforced glass sheet with int. toolset
Oops almost forgot this.
2013-10-04 21:50:16 -04:00
Rivet-the-Zombie 1c66be182f Book of plays. 2013-10-04 20:47:50 -05:00
Rivet-the-Zombie 01fb954c86 Tragedy novel. 2013-10-04 20:44:57 -05:00
GlyphGryph dab0e2bd53 Added information on qualities an item possesses to its description. 2013-10-04 21:42:31 -04:00
Rivet-the-Zombie 9f6b0dac23 Book of fairy tales. 2013-10-04 20:41:52 -05:00
NaturesWitness 56d8c3735e Final fixes to reinforced solar panel
Sometimes the answer is so obvious you look right past it.  Finally
remembered Cata has an "uncraft" recipe list for this EXACT situation.
D'oh.  Anyway, this is all ready to go, tested and works.  Also
remembered a small piece of glass is a "pane", not a panel.
2013-10-04 21:40:14 -04:00
Rivet-the-Zombie cd35e42338 Book of tall tales. 2013-10-04 20:37:36 -05:00
Rivet-the-Zombie d57882f6b5 Book of poetry. 2013-10-04 20:33:07 -05:00
GalenEvil 92bde130ac Merge branch 'pr/3455' 2013-10-04 19:31:25 -05:00
GlyphGryph 329aef1494 Changed tool groups label to qualities 2013-10-04 20:15:24 -04:00
GlyphGryph d600372b15 New crafting string for tool qualities is now translatable 2013-10-04 20:12:24 -04:00
Christian Buskirk 34bf8fe8ea Fungal spreading 2013-10-04 16:46:49 -07:00
Kevin Granade 98de922524 Merge reduced minimum city size. 2013-10-04 18:06:21 -05:00
Kevin Granade 47e1759fcd Fix fix. 2013-10-04 17:40:51 -05:00
Siwen Yu 2e1dd07122 add picojson.h:value(unsigned long int) 2013-10-04 17:38:38 -05:00
Rivet-the-Zombie f411c3ef18 I stand corrected. 2013-10-04 17:33:16 -05:00
Rivet-the-Zombie 6bd2df43cc Adds metal hip flask. 2013-10-04 16:29:27 -05:00
Christian Buskirk 04cf8681dc Add new "TREE" and "YOUNG" (young tree flags) 2013-10-04 14:04:08 -07:00
Christian Buskirk 01a7cbdeba Change fungal bed and marloss bush symbols 2013-10-04 13:56:37 -07:00
Christian Buskirk 20514ec6b7 Merge to mainline
Conflicts:
	mapdata.h
2013-10-04 12:54:17 -07:00
Christian Buskirk 07d670db55 Fungus spread 1 2013-10-04 12:51:39 -07:00
Rivet-the-Zombie d23d7693c2 Fixes another typo in same file. 2013-10-04 14:19:23 -05:00
Rivet-the-Zombie cd20c56bb2 Fixes typo in bionics.json 2013-10-04 14:17:45 -05:00
Peter Lacey-Bordeaux 69edfc2440 calmed clang down 2013-10-04 14:59:34 -04:00
Peter Lacey-Bordeaux 317bdfa82a more default statements for the compiler gods 2013-10-04 14:22:16 -04:00
Peter Lacey-Bordeaux 53bbf1069e switch statements now have a default, thereby being more robust 2013-10-04 14:04:24 -04:00
Ian Strachan 03761a65f7 Headshot counter added. 2013-10-04 14:01:18 -04:00
Peter Lacey-Bordeaux eb5eb65e15 changed final return value after switch without default to one with a default 2013-10-04 14:01:00 -04:00
Peter Lacey-Bordeaux d565ff0735 trying to make the switch statements in mission more robust, actually has global default now 2013-10-04 13:55:24 -04:00
NaturesWitness 6bad39c9c1 Progress made! (I think?)
Thanks to Kevin's advice this is down to just two errors!  Here's the
list:
C:\Documents and Settings\Barbara\My
Documents\GitHub\Cataclysm-DDA\game.cpp||In member function 'void
game::pickup(int, int, int)':|
C:\Documents and Settings\Barbara\My
Documents\GitHub\Cataclysm-DDA\game.cpp|7304|error: 'tmp' was not
declared in this scope|
C:\Documents and Settings\Barbara\My
Documents\GitHub\Cataclysm-DDA\game.cpp|7305|error: invalid use of
non-static member function 'void iuse::hotplate(game*, player*, item*,
bool)'|
||=== Build finished: 2 errors, 0 warnings (0 minutes, 10 seconds) ===|

The first error I think is being caused because the code is still trying
to give the tmp_hotplate item to the fake NPC "tmp", who isn't here.  I
think this needs to be given to the PLAYER, because if I add in the tmp
NPC the hotplate will looks for items inthe3 NPC's inventory, not the
players.  So now I need the command to give this to the player, which I
can't figure out.
The second error is from me not knowing how to get Cata to "use" the
fake hotplate we're generating.  so far, all my guesses are coming up
empty, and I can't find an example in the code to copy.
If we can iron these two bugs out, I think this will all work!
2013-10-04 13:52:07 -04:00
Peter Lacey-Bordeaux 9839c9d6b1 Weverything to Wall 2013-10-04 13:50:10 -04:00
Peter Lacey-Bordeaux ba6b6892da added a clang variable to the make file, default does -Weverything 2013-10-04 13:37:52 -04:00
fnord 46b1cad8e9 Merge remote branch 'origin/master' into ter-furn_enum_independence 2013-10-04 06:50:38 -05:00
Shoes01 8f552cf7c3 Tweaked a profession 2013-10-04 08:27:22 -03:00
Shoes01 469af0eb87 Added CBMs to professions 2013-10-04 08:22:58 -03:00
illi-kun 5a11bd6478 added chocolate covered coffee beans in "snacks" & "coffee_shop" 2013-10-03 23:47:39 -07:00
illi-kun b97255a5fe Update comestibles.json 2013-10-03 23:41:06 -07:00
illi-kun d65343c5b2 added chocolate covered coffee beans 2013-10-03 23:37:10 -07:00
IsaacSin 78d98e43cc Fix closing curtains 2013-10-03 23:36:09 -07:00
Rivet-the-Zombie 5d55fc8a07 Sports novel. 2013-10-03 22:36:49 -05:00
Ian Strachan 200e79c66e Allow making cities smaller than normal. 2013-10-03 23:36:06 -04:00
Rivet-the-Zombie d6c5b356da Swashbuckling novel. 2013-10-03 22:26:22 -05:00
Rivet-the-Zombie 1310dd12dd Samurai novel.
Yes I know it's almost identical to the western novel. It's intentional,
since the stories are usually interchangeable; just swap Clint Eastwood
for Toshiro Mifune and guns for swords. In other words, it's a bit of a
joke.
2013-10-03 22:19:46 -05:00
Rivet-the-Zombie e1ea210f37 Western novel. 2013-10-03 22:15:47 -05:00
Rivet-the-Zombie dc0bbcb072 War novel. 2013-10-03 22:10:54 -05:00
Rivet-the-Zombie de4f37e22c Children's book. No morale - but it might just make the @ have a sad when they see it. 2013-10-03 22:01:50 -05:00
Rivet-the-Zombie e810d9ffee Experimental novel added. Please wait for Godot. 2013-10-03 21:53:04 -05:00
Rivet-the-Zombie eb4e3f3d35 Survival book ~ rare 1-8 with -3 morale. 2013-10-03 21:44:13 -05:00
Rivet-the-Zombie 001d8cac16 Bashing manual re-text. 2013-10-03 21:37:34 -05:00
Rivet-the-Zombie d29a7ad88c Bashing magazine re-text. 2013-10-03 21:27:27 -05:00
Rivet-the-Zombie 5264818df5 Barter magazine re-text. 2013-10-03 21:19:17 -05:00
fnord 1f365b5724 Restyle iexamine::fswitch (for the love of god and all that is holy) 2013-10-03 21:12:15 -05:00
fnord ea83232533 remove switch: map::has_adjacent_furniture iexamine::fswitch 2013-10-03 21:10:28 -05:00
Rivet-the-Zombie fc65ee68b8 Adjusted for stack quantity. 2013-10-03 21:02:11 -05:00
Rivet-the-Zombie ad1184f185 Adventure novel. 2013-10-03 20:34:24 -05:00
Kevin Granade c6e6ef7b86 Merge tool groups. 2013-10-03 20:33:43 -05:00
Rivet-the-Zombie 2ec9ca2a5d Road novel. 2013-10-03 20:27:57 -05:00
Rivet-the-Zombie 2f9da87ca5 Buddy novel. 2013-10-03 20:25:18 -05:00
Rivet-the-Zombie 1050de7b2b Coming of age novel. 2013-10-03 20:20:43 -05:00
Rivet-the-Zombie 5ebc42e9ee Crime novel. 2013-10-03 20:11:20 -05:00
GlyphGryph 38a560eff5 Added cut quality to valid cutting items from the pointy stick recipe. 2013-10-03 21:08:16 -04:00
Kevin Granade 90455ae6a9 Merge new content and content adjustment. 2013-10-03 20:07:52 -05:00
Rivet-the-Zombie 644162d19b Thriller novel. 2013-10-03 20:05:35 -05:00
Rivet-the-Zombie 62a702e245 Fabrication 4-7 book. 2013-10-03 20:01:22 -05:00
GlyphGryph 4d9ed1d883 Finished a basic UI for new qualities crafting. 2013-10-03 20:56:55 -04:00
Rivet-the-Zombie 789866cb88 Erotic novel. 2013-10-03 19:54:04 -05:00
Rivet-the-Zombie 4b21760c59 Carpentry 0-2 book. 2013-10-03 19:51:19 -05:00
Kevin Granade 4a7c9f8c6e Merge big drawing refactor. 2013-10-03 19:47:47 -05:00
GalenEvil b625933eaa Removed the JVT_CHAR and associated check. Turns out it seems pretty unnecessary.
Added JsonObject::get_object, and is_object check. So now it should be possible to do "member":{object data} for a single object instead of requiring an array "member":[{object data}] for single objects.
2013-10-03 19:46:17 -05:00
GlyphGryph d67e1e79ba Crafting now successfully checks for qualities. 2013-10-03 20:33:45 -04:00
Rivet-the-Zombie 488dbb7a1c Photo album fun book. 2013-10-03 19:32:48 -05:00
Rivet-the-Zombie d6b2c248a0 Mechanics 5-8 book. 2013-10-03 19:29:27 -05:00
Kevin Granade 4e35475647 More making gcc happy. 2013-10-03 19:28:33 -05:00
Kevin Granade 92a290967b Nuke some debug code. 2013-10-03 19:27:41 -05:00
Kevin Granade 967388fac6 Random acts of restyling. 2013-10-03 19:27:23 -05:00
Rivet-the-Zombie af95fd6f39 Survival 1-3 book. 2013-10-03 19:23:47 -05:00
Kevin Granade 12a5166817 Merge terrain/furniture overhaul. 2013-10-03 19:10:37 -05:00
Kevin Granade eff738ac09 Fix json dependency that was breaking curses build. 2013-10-03 19:04:10 -05:00
Kevin Granade b72f68f0bd Manually load color json instead of running through the json loader in init because it happens before init is initialized. 2013-10-03 18:55:19 -05:00
Kevin Granade 8dd38672d4 Mage gcc happy with nested template types. 2013-10-03 18:54:30 -05:00
Tommy eb52577f32 Fix player info display for 80x24. 2013-10-04 12:18:23 +13:00
Kevin Granade a840108999 Merge configurable colors.
Conflicts:
	init.cpp
2013-10-03 18:07:04 -05:00
GalenEvil 59a0cf2761 Added type check for single character string 2013-10-03 18:04:23 -05:00
GalenEvil 829fb2edd1 Added some type checking functions, could be useful in reducing the number of errors thrown for material/flag parsing. May need to add a few more functions to make this entirely usable. "json_value_type get_value_type(std::string member)" would be a useful one. At the moment functionality is restricted to JsonObjects, I think I need to add type checking to JsonArrays as well 2013-10-03 17:54:40 -05:00
Tommy c0f6b9c934 Fix crafting menu for 80x24. 2013-10-04 11:46:27 +13:00
Tommy 655d4877ec Fix construction menu for 80x24. 2013-10-04 11:26:17 +13:00
Kevin Granade be0a23e48a Merge delete world adjustment, pgettext, and cmake fixes. 2013-10-03 17:25:46 -05:00
Tommy 2255400c20 Space main menu display a bit more evenly for 80x25. 2013-10-04 11:18:27 +13:00
Tommy 1171d6c5fd Allow FULL_SCREEN_HEIGHT to be either 24 or 25 depending on TERMY. 2013-10-04 11:17:39 +13:00
Tommy 3a08f3ec7d Don't call use_narrow_sidebar() before TERMX and TERMY are set. 2013-10-04 10:56:04 +13:00
Tommy 3b3d53328f Allow asymmetric terrain_window_width and height. 2013-10-04 10:35:22 +13:00
Tommy f2af18a58a Fix vehicle window offset for even terminal sizes. 2013-10-04 10:15:07 +13:00
Tommy 7367998917 Tweak terminal-is-too-short message a bit. 2013-10-04 08:54:09 +13:00
Tommy 0ea826af73 Use narrow sidebar style by default if terminal is too small. 2013-10-04 08:21:09 +13:00
Shoes01 f1772170c8 Added professions using CBMs 2013-10-03 16:18:41 -03:00
Tommy 33d6d0d037 Print list of active characters when preventing deletion of world. 2013-10-04 07:55:04 +13:00
Tommy 26b57a13cb Explicitly initialize n to 0 in count_saves(). 2013-10-04 07:27:28 +13:00
Ian Strachan 205d8b41c1 Replace quadratic find_external_parts implementation with a linear one, and call it whenever a part is installed. 2013-10-03 14:20:38 -04:00
fnord 36688abbfe add map::furn_at 2013-10-03 07:18:25 -05:00
fnord f26fbda860 Well aren't I just a fun bag of typos today 2013-10-03 07:08:25 -05:00
fnord f1578125f9 Correct silly typos and errors 2013-10-03 06:53:33 -05:00
fnord aa8d41f2ed removed switch( oldter .. from emp_blast and gate opening 2013-10-03 06:27:31 -05:00
fnord dc5799d97f terrain/furniture open/close: now defined in json via "open", "close" keys, and optional "OPENCLOSE_INSIDE" flag 2013-10-03 06:21:58 -05:00
cib 7b48ca1ee1 Added new makeshift crowbar, this is now the craftable one.
Makeshift crowbar has all the negative properties of the pipe(higher weight, less bash), the only advantage over the pipe being the ability to open doors, and 2 cut as opposed to 0.

This has some important balance effects on melee based characters, but overally I believe this is more realistic and fairer towards newcomers who don't have the whole tech-tree of materials in the evac shelter memorized.
2013-10-03 12:41:20 +02:00
Christian Buskirk 93038a5a34 Fix picklocks 2013-10-03 03:00:45 -07:00
fnord 4e1b782731 Cleanup commented test code 2013-10-03 03:41:39 -05:00
Christian Buskirk 0c894c9723 Stop chain lightning seg-faulting on fungal swarms 2013-10-03 00:59:19 -07:00
Christian Buskirk 5c77b98c12 Suppress "covered by spores" messages when it's fungus
They are already spore covered, after all.
2013-10-03 00:26:02 -07:00
Rivet-the-Zombie 463bc1284f Fixes missing weight value for punch dagger. 2013-10-03 02:24:08 -05:00
fnord 2a755f5ade Merge remote branch 'origin/master' into terrain_n_furniture_json_ids 2013-10-03 02:23:26 -05:00
fnord e7abdae326 Merge remote branch 'origin/master' into terrain_n_furniture_json_ids 2013-10-03 02:18:15 -05:00
fnord d3b13788b0 cata_tiles::draw_terrain/furniture: get string id via terlist[i].id / furnlist[i].id and
remove terrain_names / furniture_names arrays from tile_id_data.h
2013-10-03 02:16:53 -05:00
fnord 2e3e5ce837 editmap: show terrain string id in terrain picker 2013-10-03 02:14:12 -05:00
Christian Buskirk 3d93fe5e9c Lower fungal infection chance 2013-10-03 00:10:35 -07:00
fnord 1700bd3caa save: version 9 -> version 10.
mapbuffer saveload: continue saving terlist/furnlist int key to maps.txt, but include jsonized
list of string ids. On load, this key is used to make an int->int mapping prior to parsing the
data; this provides immunity to shuffling terrain/furniture ordering, without slowdown on load.

maps.txt v9 or below makes use of legacy_furn_id / legacy_ter_id found in savegame.h
2013-10-03 02:08:15 -05:00
fnord 1d4bfb15a8 make use of temporary old_ter_id and old_furn_id in functions that use switch 2013-10-03 02:06:50 -05:00
Christian Buskirk 04f144720a Fungaloid rebalance! 2013-10-03 00:05:22 -07:00
fnord 13d9e0af58 * mapgen: line_furn()/square_furn() created as typedef'ed int values cannot overload.
* construction: workaround for STAGE(); furniture arguments are furn_t due to inability to overload
  furn_id/ter_id & str/str
2013-10-03 02:04:38 -05:00
fnord 8708783594 * terrain, furniture:terlist/furnlist and ter_id/furn_id are now determined at runtime by load
order, not enum.
* terrain/furniture accessible via string, via termap["id"] and furnmap["id"]
* t_???? and f_???? global ints created to replace old enums, and are set to correctly match string ids.
* ter_set/furn_set/etc methods now accept string ids as well as int ter_id/furn_ids.

* TEMPORARY: old enums and t/f_ members renamed to old_.., oldter()/oldfurn() return correct equivalents.
  This is stable indefinately, but intended to be temporary until approxomately 200 case statements are rewritten.
2013-10-03 02:01:58 -05:00
Rivet-the-Zombie d390b238c5 Lowercase F on fusion blaster rifle. 2013-10-03 01:01:15 -05:00
Ian Strachan 572b143490 Calculate z-ordering of parts based on location, now that the EXTERNAL flag is no more. 2013-10-03 01:10:52 -04:00
fnord c4aec664f2 Merge fun assortment of fixes, and ball bearings. 2013-10-03 00:00:25 -05:00
GlyphGryph a9a964f01f Quality requirements are now pulled in from recipes and stored. All that remains is making recipes use them. 2013-10-03 00:16:15 -04:00
Izicata 7a8e24654b Fixed tiles that should be | but were ,
The vertical picket fence, vertical chain link fence, vertical railing, barn door rope and pulley, and palisade rope and pulley all had their tiles changed from "|" to ", ". 

Given the space after the comma and the recent jsonization changes, I'm pretty sure this was accidental and caused by using the "change all" function to save time.
2013-10-02 23:45:23 -04:00
Ian Strachan 270098a46b Move turrets to "on_roof" location so they can't overlap solar panels. 2013-10-02 23:36:24 -04:00
Ian Strachan 17044f6485 Melee weapons can't get stuck in hallucinations. 2013-10-02 21:42:32 -04:00
Rivet-the-Zombie cd6ba91cc7 Ball bearings recipe. 2013-10-02 20:36:42 -05:00
Ian Strachan d9aed47a51 My god. It's full of frames. 2013-10-02 21:32:21 -04:00
Rivet-the-Zombie adeb9f9798 Swimming manual. 2013-10-02 20:23:03 -05:00
Ian Strachan a97129e0e5 Make plating into an obstacle, since it replaces boards instead of going over them. 2013-10-02 21:19:03 -04:00
Rivet-the-Zombie e1a8bc4c51 Launcher manual. 2013-10-02 20:13:01 -05:00
Rivet-the-Zombie 9e74f293ea Bashing manual. 2013-10-02 20:05:43 -05:00
Rivet-the-Zombie 98c8946fea Dodge manual. 2013-10-02 19:57:05 -05:00
Rivet-the-Zombie a7fb7e779d Archery manual. 2013-10-02 19:46:39 -05:00
Christian Buskirk feee2c7eaf Merge to mainline 2013-10-02 17:35:18 -07:00
Christian Buskirk 3e3dcfd420 Fix compiling. My bad! 2013-10-02 17:27:19 -07:00
Tommy d939c58f69 Use pgettext for main menu options to fix ambiguous "<R>eset". 2013-10-03 12:59:53 +13:00
Tommy 510a872772 Add capability to specify message context using pgettext(ctxt, msg). 2013-10-03 12:59:42 +13:00
cib 6a292bb0ef cmake fixes
- Fixed up location if LICENSE.txt
- Adapted to new requirement of specifying both -DTILES and -DSDLTILES for tileset builds
2013-10-03 01:58:56 +02:00
Kevin Granade 47a785a203 Mass bugfix merge. 2013-10-02 18:57:15 -05:00
Rivet-the-Zombie 96fc5c43a0 Cuts cooking oil charge size in half as per IRC discussion. 2013-10-02 18:43:28 -05:00
Tommy c4fbd49903 Fix a missed FULL_SCREEN_WIDTH in main_menu.cpp. 2013-10-03 12:24:10 +13:00
Tommy d0aaa6ae2e Replace mindlessly arrogant terminal size message. 2013-10-03 12:17:31 +13:00
NaturesWitness 64f4e8f007 Try 4, now with 20% less gibberish!
This may be the first code I've added to this PR that isn't just random
scribbles.  It still doesn't work, of course, but it FEELS less moronic.
Anyway, this adds Kevin's suggestions of turning the string of prompts
into a menu and using the code from vehicle::fire_turret_internal to
create a fake hotplate that uses the vehicle's battery.  I think the
menu part of this is functional, but I still don't know how to make it
actually use the fake hotplate.  I also need to figure out how to
declare the extra functions in the menu.  Here's the list of compile
errors this generated, maybe we can get this sorted out.
C:\Documents and Settings\Mason\My
Documents\GitHub\Cataclysm-DDA\game.cpp||In member function 'void
game::pickup(int, int, int)':|
C:\Documents and Settings\Mason\My
Documents\GitHub\Cataclysm-DDA\game.cpp|7303|error: 'drain' was not
declared in this scope|
C:\Documents and Settings\Mason\My
Documents\GitHub\Cataclysm-DDA\game.cpp|7304|error: 'tmp' was not
declared in this scope|
C:\Documents and Settings\Mason\My
Documents\GitHub\Cataclysm-DDA\game.cpp|7305|error: invalid use of
non-static member function 'void iuse::hotplate(game*, player*, item*,
bool)'|
C:\Documents and Settings\Mason\My
Documents\GitHub\Cataclysm-DDA\game.cpp|7307|error: 'refill' was not
declared in this scope|
||=== Build finished: 4 errors, 0 warnings (0 minutes, 8 seconds) ===|
2013-10-02 18:39:03 -04:00
Christian Buskirk 81ff195459 Allow for ::infect to use disease intensities
Also move spores into a stacking 3 intensity disease
2013-10-02 15:31:05 -07:00
Rivet-the-Zombie 0fa25c2a74 Id fix. 2013-10-02 17:21:42 -05:00
Rivet-the-Zombie 6a93dd6687 Recipe tweak. 2013-10-02 17:09:28 -05:00
Rivet-the-Zombie cd12590611 Recipe tweak. 2013-10-02 17:07:26 -05:00
Tommy c688bdecf7 Update character creation screen for 24-line compatibility. 2013-10-03 10:59:34 +13:00
Rivet-the-Zombie ca06d98541 Damage tweak. 2013-10-02 16:52:44 -05:00
Rivet-the-Zombie c8d0225a12 Melee manual. 2013-10-02 16:50:27 -05:00
Christian Buskirk acd4158f27 Increase fungaloid spore attack frequency
Number of spores spawned is adjusted to be ~ the same.
2013-10-02 14:48:33 -07:00
Rivet-the-Zombie 8c12fb66f7 Rifle manual. 2013-10-02 16:45:06 -05:00
Rivet-the-Zombie eae2cd512d Stabbing manual. 2013-10-02 16:38:54 -05:00
Rivet-the-Zombie 1df7af06ac SMG manual. 2013-10-02 16:28:59 -05:00
Rivet-the-Zombie f3d674a1f7 Throwing manual. 2013-10-02 16:20:40 -05:00
Rivet-the-Zombie 8e7801c7b2 Shotgun manual. 2013-10-02 16:15:15 -05:00
Rivet-the-Zombie 21ed56031a Pistol manual. 2013-10-02 16:10:03 -05:00
Rivet-the-Zombie b8be76b01c Firearms manual. 2013-10-02 16:04:59 -05:00
Tommy eec6f76798 Center the version number string in the main manu display. 2013-10-03 09:56:00 +13:00
Tommy 13deb1ddd9 Rename centre ~> center because "color". 2013-10-03 09:55:06 +13:00
Tommy 1babcdac23 Add centre_print() function for centered printing. 2013-10-03 09:52:33 +13:00
Rivet-the-Zombie ad200de3a8 Robot and smithing recipe books max level restoration. 2013-10-02 15:38:13 -05:00
Rivet-the-Zombie f0631b2da0 Advanced Electronics restore, ranged electronics textbook. 2013-10-02 15:34:14 -05:00
Rivet-the-Zombie 8e9dc0446e Recipe tweak. 2013-10-02 15:26:30 -05:00
Rivet-the-Zombie 545f92e55b Restore Computer Science 301 book, computer textbook. 2013-10-02 15:24:47 -05:00
Christian Buskirk c42ea83494 Fix spitters spitting through glass walls 2013-10-02 13:19:52 -07:00
Tommy d8c79f2a23 Move a bunch of stuff from output.cpp to color.cpp. 2013-10-03 09:18:26 +13:00
Christian Buskirk b7448fc793 Fix shockers shooting through glass walls 2013-10-02 13:12:45 -07:00
Christian Buskirk cb0455448b Make tear gas blind effect based on Eyes rather then breathing. 2013-10-02 12:54:08 -07:00
Christian Buskirk 264bfed769 Clean up fungaloid mattack function
No actual changes made, simply reformatted for clarity while searching
for a bug.
2013-10-02 12:48:47 -07:00
Tommy 55ee1f941c Update main menu screen to 24-line height. 2013-10-03 08:43:38 +13:00
Tommy 9cfbd99116 Change FULL_SCREEN_HEIGHT from 25 to 24. 2013-10-03 08:41:59 +13:00
Christian Buskirk ff704ae936 Fix dermatik attack 2013-10-02 12:33:02 -07:00
Tommy a2ec7735df Change DELETE_WORLD option to only delete if no other characters. 2013-10-03 08:09:36 +13:00
Tommy e49f26091c Remove completely unused QUIT_DELETE_WORLD quit_status. 2013-10-03 07:19:16 +13:00
Ian Strachan 8a35baa302 Forgot about parts with a location of "". They can now be placed properly. 2013-10-02 13:51:10 -04:00
Ian Strachan d66c6e5ea4 Remove the wagon. 2013-10-02 13:45:02 -04:00
Ian Strachan fcbc16337c New vehicle part installation rules! See #3301 for details. 2013-10-02 13:44:07 -04:00
Izicata afa00d493f Prevent using warning options OSX does not regognize while on OSX, allowing compilation
Updated part 2 of #3405 bugfix.
2013-10-02 11:58:02 -04:00
Izicata f4d01f5913 Minor formatting fix to allow compilation without warnings on OSX
Part two of the #3405 bugfix.
2013-10-02 11:47:42 -04:00
richardyangran 32e2b4fc0b Merge remote-tracking branch 'CDDA2/master' 2013-10-02 19:34:42 +08:00
Rivet-the-Zombie 69c330a759 Tweak. 2013-10-02 05:19:14 -05:00
Rivet-the-Zombie 4672978a3d Textify! 2013-10-02 05:04:14 -05:00
Rivet-the-Zombie 3a7b5b23cb Tweak. 2013-10-02 04:59:05 -05:00
Rivet-the-Zombie 3bb01bc371 Recipe. 2013-10-02 04:57:54 -05:00
Rivet-the-Zombie 88c8aa22a9 Tweak. 2013-10-02 04:55:34 -05:00
Rivet-the-Zombie 3752e4fed4 Space fix. 2013-10-02 04:47:36 -05:00
richardyangran bf613e31d2 Blood would not cover corpse and items
The most complained bug of tiles version from chinese players
2013-10-02 17:34:13 +08:00
Christian Buskirk 8dc6c4627b Make healed bites/infections have proper recovery times 2013-10-02 02:24:40 -07:00
Christian Buskirk 105d643887 Block fix 2013-10-02 01:55:18 -07:00
Rivet-the-Zombie 413efeb714 Adds 40mm buckshot as well as flechette ammunition for several weapons. 2013-10-02 03:39:10 -05:00
Rivet-the-Zombie 069234db2a Traps advanced skill book. 2013-10-02 02:34:09 -05:00
Rivet-the-Zombie 6255731a3e Tailoring advanced skill book. 2013-10-02 02:23:13 -05:00
Rivet-the-Zombie 5b0faea043 Survival advanced skill book. 2013-10-02 02:07:33 -05:00
zfullmer9@hotmail.com 4fd73cfed8 Moves declaration of load_colors() to color.h
This should fix the double definition errors on linux builds.
2013-10-02 01:05:43 -06:00
Christian Buskirk befc9da530 Remove is_style() since styles aren't ever in the inventory 2013-10-01 23:44:42 -07:00
Rivet-the-Zombie 5683a09f8f Carpentry advanced skill book. 2013-10-02 00:39:35 -05:00
Rivet-the-Zombie e5ffb9d887 First aid advanced skill book. 2013-10-02 00:34:23 -05:00
Christian Buskirk 3b5611b165 Merge PR #3361 - Turret fixes 2013-10-01 21:58:51 -07:00
GlyphGryph c51254ef0f Added item qualities - read from jsons and stored in itypes. 2013-10-02 00:08:46 -04:00
Rivet-the-Zombie 15f63f833f Adds quarterstaff and ironshod quarterstaff, spawns, and recipes.
Seriously, we didn't have a staff. How did we miss that?
2013-10-01 22:17:51 -05:00
Kevin Granade f25782ff1e Attempt to silence some windows warnings. 2013-10-01 21:31:34 -05:00
Tommy fa0856a0f1 Fix minor problem with saving item.owned. 2013-10-02 15:17:17 +13:00
NaturesWitness b18081489a try 3
Still pretty confused, trying to implement Kevin's idea to create a fake
hotplate and use it.  Couldn't even find UPS mentioned in vehiclle.cpp,
trying code from map.cpp for other parts of kitchen unit.  I have a
feeling this attempt is just gibberish, but who knows.
2013-10-01 22:14:41 -04:00
Kevin Granade b0adc0d2a9 Restyle a bunch of turret code. 2013-10-01 20:54:57 -05:00
Kevin Granade e2db5d95ff Make pseudo player generated for turret firing a NPC instead of a player so messages display properly. 2013-10-01 20:54:26 -05:00
Kevin Granade cfdd6486e7 Bail out of turret firing sequence if we're using a turret that needs electricty and we don't have enough. 2013-10-01 20:53:12 -05:00
NaturesWitness 573e35b477 Revert "Add hotplate menu to kitchen unit try 1"
This reverts commit a09796354a.
2013-10-01 21:43:35 -04:00
NaturesWitness 590683bbd3 Revert "remove tabs, extra parameters"
This reverts commit 1991d0b497.
2013-10-01 21:43:27 -04:00
Kevin Granade 16f39905f5 Restyle input handling code. 2013-10-01 20:11:49 -05:00
Kevin Granade 29d4b6fb81 Remove unused variable. 2013-10-01 20:11:03 -05:00
NaturesWitness 1991d0b497 remove tabs, extra parameters
Trying again, still lots of errors.  I always forget how to deal with
"not declared in this scope"
2013-10-01 20:43:30 -04:00
Christian Buskirk 9cc973c43a Merge PR #3127 - Warning errors 2013-10-01 17:33:51 -07:00
Christian Buskirk fca1b20a90 Merge PR #3329 - Fix container destruction 2013-10-01 17:33:31 -07:00
Rivet-the-Zombie 58f003587f Spetsnaz knife manual restored, new standardized knife manual added. 2013-10-01 19:21:57 -05:00
Rivet-the-Zombie 5b80fb029a Restore computer and trap how-to books, adds manuals for both. 2013-10-01 19:17:59 -05:00
Rivet-the-Zombie af041ef412 Fix. 2013-10-01 18:39:19 -05:00
Kevin Granade 31c3a2304d Merge rebalance tweaks. 2013-10-01 18:34:49 -05:00
Kevin Granade 6b5a16f0bc Merge spedometer and debug crash fix. 2013-10-01 18:25:45 -05:00
NaturesWitness a09796354a Add hotplate menu to kitchen unit try 1
In my quest to make the kitchen usable as a hotplate to heat food and
cauterize, here's my first try.  Needless to say, it's a disaster,
errors out the wazoo.  Not really sure what I'm doing, just hoping
people who can actually code can tell me how to make this work :)
2013-10-01 19:12:20 -04:00
Tommy 496fbdf9ea catacurse stdscr should probably be an extern. 2013-10-02 11:58:44 +13:00
Rivet-the-Zombie 7d47f62c1b Advanced chemistry book. 2013-10-01 17:53:26 -05:00
Ian Strachan 7b676b6ddb Recategorize adrenaline as a Med instead of a Tool. 2013-10-01 18:44:52 -04:00
Tommy e768bdfe90 Fix broken windows stdscr and purge broken "window 0". 2013-10-02 11:43:25 +13:00
Christian Buskirk 13c51c02da Make fitted clothing still count as .5 for layering 2013-10-01 15:04:18 -07:00
NaturesWitness 01a4eff8c4 Reinforced solar panels take two
Rethought the solar panels a bit.  After comparing the volume of the
parts involved, decided it made more sense to have one sheet of
reinforced glass provide enough material for 4 panels.  Problem is, I
can't figure out how to have the crafting menu CREATE 4 panels when you
craft it.  Setting the "count" flag to 4 on the reinforced solar panels
in melee.json didn't seem to do it.  Anyone know how to fix this?
2013-10-01 17:04:57 -04:00
Rivet-the-Zombie 7899248bbd Adds oversize flag to mittens. 2013-10-01 15:31:21 -05:00
NaturesWitness 20049d7646 Revert "USACE repair rig"
This reverts commit 8b299c151d.
2013-10-01 16:09:46 -04:00
NaturesWitness 38c8474978 Revert "Heavy-duty kitchen unit"
This reverts commit 00b59d1f7e.
2013-10-01 16:09:35 -04:00
Rivet-the-Zombie 558f8fb138 Somehow the duffel bag's volume ended up being 50 instead of 80.
It was supposed to be a rucksack with one extra point of encumbrance.
I'm not sure how I dropped that ball.
2013-10-01 15:04:54 -05:00
illi-kun 208f83e1ec fix speed display
fix #3375
2013-10-01 12:01:12 -07:00
Ian Strachan 42fc61f4bc Add initial locations to vehicle parts. 2013-10-01 13:40:26 -04:00
zfullmer9@hotmail.com 8fb2b08b23 WHOOPS replace tabs with spaces for consistency 2013-10-01 02:56:42 -06:00
zfullmer9@hotmail.com 53e0b346ef Color definitions are now loaded from a json file 2013-10-01 02:38:09 -06:00
Rivet-the-Zombie 1add48d07b Drops top-tier books to 5-8 skill. 2013-10-01 00:12:13 -05:00
Kevin Granade e95c2038c6 Convert a missed variable. 2013-09-30 20:58:57 -05:00
Rivet-the-Zombie 8d7a24c9c4 Traps textbook. 2013-09-30 20:48:43 -05:00
Rivet-the-Zombie e9ff5eea94 Survival textbook. 2013-09-30 20:45:38 -05:00
Rivet-the-Zombie 78985d5ea4 Speech textbook. 2013-09-30 20:28:11 -05:00
Kevin Granade a743ef8b9f [insert informative merge description here]
Conflicts:
	data/json/item_groups.json
2013-09-30 20:27:56 -05:00
Rivet-the-Zombie 7eb6dc6cf4 First aid textbook. 2013-09-30 20:19:34 -05:00
Kevin Granade 5b2b7aff80 Update vehicle turret function to support turret types that normally use a UPS. 2013-09-30 20:04:12 -05:00
Kevin Granade 53cc049235 Adjust ftk93 turret definition to accept fusion cells. 2013-09-30 20:03:32 -05:00
Tommy ee0e6a391a Properly save player::activity.str_values. 2013-10-01 09:34:41 +13:00
Rivet-the-Zombie 42ad2542f7 Fixes stats, makes duffel bag spawn naturally, and adds recipe. 2013-09-30 14:30:24 -05:00
Ian Strachan 2102d1958e Make the 'You dissassemble the item' message refer to the item in question by name. 2013-09-30 13:28:44 -04:00
fnord e58dbd4b51 correct t_null 2013-09-30 09:26:11 -05:00
GlyphGryph b95a287c01 Added backer names - one out of every four names generated will be pulled from the backer list 2013-09-30 08:39:06 -04:00
GlyphGryph 9cd408968f Removed option for alliterative names - default is true, and it's poorly implemented in the wrong place and doesn't work right when single-name names are available (and makes the same backer names appear over and over again).
If someone wants to put it back in, implement it as a passed argument to the name generator or something, so those hooks can be accessed to deal with potential weirdness that comes up.
2013-09-30 08:37:59 -04:00
zfullmer9@hotmail.com e11b54a62b Git is picky about trailing newlines in files 2013-09-29 23:15:32 -06:00
zfullmer9@hotmail.com e7a766b80e Adds editable color definition file for SDL mode 2013-09-29 23:10:21 -06:00
Rivet-the-Zombie 51209afee1 Driving manual. 2013-09-29 22:43:20 -05:00
GlyphGryph 5939f216de Renames the list of active monsters from _z to _active_monsters 2013-09-29 22:49:03 -04:00
Kevin Granade 2056a809e8 Add a size property to vehicle mounted turret so it can hold ammo. Addresses #3294. 2013-09-29 21:33:01 -05:00
Rivet-the-Zombie 0485129e36 Fixes 4.6x30mm guns dropping 'none' instead of casings.
Fix for http://smf.cataclysmdda.com/index.php?topic=3505.msg50520#new
2013-09-29 20:20:51 -05:00
Kevin Granade 640d11a828 Merge fix and cleanups. 2013-09-29 19:35:31 -05:00
Tommy 46f867ac26 Remove unused variable stat_width. 2013-09-30 12:41:42 +13:00
Tommy 160d039208 Fix duplicate recipe id (38_special). 2013-09-30 12:29:21 +13:00
Tommy 53f16c93e5 Allow realDebugmsg() to print as many lines as it needs. 2013-09-30 12:28:30 +13:00
Tommy 2c1752fa96 Fix error string for recipe name collisions. 2013-09-30 12:01:22 +13:00
Kevin Granade 23500d49f9 Add spawns of copper tubing to some furniture and terrain destruction. 2013-09-29 17:33:17 -05:00
Kevin Granade 5cb2fd72d1 Minor fixups to FMJ ammo handling. 2013-09-29 17:25:00 -05:00
Kevin Granade 0bb2ab1b35 Merge jabberwock nerf, new brawling weapons, and ammo crafting. 2013-09-29 17:24:07 -05:00
Kevin Granade 7abe325875 Merge branch 'master' of github.com:CuriousRaven/Cataclysm-DDA into dda-master 2013-09-29 17:23:56 -05:00
atomicdryad aacf3425c5 Merge pull request #3357 from kevingranade/vehicle-construction-menu-rework
Vehicle construction menu rework
2013-09-29 15:04:12 -07:00
Kevin Granade 82bab57c21 Shuffle around members of vehicle construction menu to make room for everything. 2013-09-29 16:18:10 -05:00
Kevin Granade 0ec20e2431 Clarify vehicle construction menu layout code, and steal some space for the status display from the items list. 2013-09-29 16:18:10 -05:00
Kevin Granade b0ddfdc604 Grab the correct string from the units options for display. 2013-09-29 16:18:10 -05:00
illi-kun 869f5668a5 [WIP] vehicle menu tweak
Guys, that's my first experience in cpp, so all comments are really welcomed. Also, I can't compile current windows build due to some json errors, so I would ask @Cata-Jenkins to compile it before release. The main idea is to tweak code of vehicle menu, and [partially] fix the issue #3031 (even pre-defined names of some cars like military cargo Truck looks bad now).
2013-09-29 16:18:10 -05:00
fnord 3214b8fd9f terrain/furniture .json: add "id" field that matches enum name / tile lookup string 2013-09-29 15:35:41 -05:00
Rivet-the-Zombie fc5803a9b1 Name changes for two books. 2013-09-29 15:02:09 -05:00
Kevin Granade 3916d40a9c Merge last of terrain and furniture jsonization. 2013-09-29 12:13:50 -05:00
Kevin Granade f7228f23ec Merge terrain and furniture jsonization.
Conflicts:
	inventory.cpp
2013-09-29 12:03:17 -05:00
Ian Strachan 6884e4e057 s/encumberance/encumbrance 2013-09-29 12:53:31 -04:00
Ian Strachan a73af8339d Update JSON_INFO documentation for new JSONs. 2013-09-29 12:32:13 -04:00
Ian Strachan 944e95f8c2 Move the flag-setting functions for terrain and furniture to be member functions of their structs. 2013-09-29 12:21:14 -04:00
Ian Strachan efac2e0a43 Merge pull request #4 from atomicdryad/pr_to_fix_pr_broken_by_pr_i_merged_sorry
Pr to fix pr broken by pr i merged sorry
2013-09-29 09:11:58 -07:00
Ian Strachan f54dcb82bb Merge pull request #3 from atomicdryad/terrain_lightmap_performance
Terrain lightmap performance
2013-09-29 09:11:44 -07:00
Kevin Granade f4c89709bf Merge bugfix and project file update. 2013-09-29 11:06:11 -05:00
Rivet-the-Zombie 8556549d47 Tweak. 2013-09-29 07:03:46 -05:00
Olteanu Costin 4eeca0baf5 Added option to spawn zombies at shelter 2013-09-29 14:06:20 +03:00
fnord d228e41cac Merge remote branch 'origin/master' and fix change to init 2013-09-29 03:10:33 -05:00
fnord d5453e60b5 Merge remote branch 'origin/pr/3164'
Conflicts:
	init.cpp: added lab_note and hint
2013-09-29 03:02:23 -05:00
zfullmer9@hotmail.com 9b35ce5647 Updates vc110 project with newly added files 2013-09-29 01:41:05 -06:00
fnord 0c9e86fe1a Implement ter_t and furn_t .transparent boolean. This is speeds up
rapid lookups, and is implemented via (ter|furn)_set_flag_variable
functions which will come in handy for future fire optimization.
2013-09-29 02:38:04 -05:00
Ian Strachan 6644a8419d Whoops. 2013-09-29 03:25:23 -04:00
fnord 6fc30d1777 Crafting LOS check includes player location. 2013-09-29 02:23:21 -05:00
GalenEvil 204ce27814 forgot to add to mechanics group 2013-09-29 02:08:24 -05:00
GalenEvil 5f47fde6b1 Added places for copper tubing ("cu_pipe") to spawn 2013-09-29 02:03:20 -05:00
GalenEvil 9657466644 Zaweri's ammunition recipes: Adds copper tubing ("cu_pipe") item to use as component 2013-09-29 01:50:14 -05:00
atomicdryad a4515ef8b8 Merge pull request #3347 from CIB/monster_savegame_fix
Merge fix for bugged legacy_mon_id.
2013-09-28 22:53:09 -07:00
cib 31a20f0893 Fix for savegame compatability breakage relating to monster IDs.
Committing for AtomicDryad
2013-09-29 09:32:10 +02:00
Rivet-the-Zombie 60f58b0cf3 Back alley brawler profession. 2013-09-29 00:49:10 -05:00
Rivet-the-Zombie 59e5d2f119 Size tweak. 2013-09-29 00:06:56 -05:00
Ian Strachan b7719b36d2 Fix a has_flag in one of the tiles files. 2013-09-29 01:06:36 -04:00
Rivet-the-Zombie ae8cd8b404 Tweak. 2013-09-29 00:06:11 -05:00
Rivet-the-Zombie 3a96a0ff58 Tweak. 2013-09-29 00:05:09 -05:00
Rivet-the-Zombie 140c8d2efa Tweak. 2013-09-29 00:04:22 -05:00
Rivet-the-Zombie ad38bcc02b Brass knuckles, too! 2013-09-29 00:02:19 -05:00
Ian Strachan 069f04b173 Merge branch 'upstream/master'
Conflicts:
	inventory.cpp
2013-09-29 00:55:31 -04:00
Rivet-the-Zombie c23215d0e7 Tweak. 2013-09-28 23:41:47 -05:00
Ian Strachan a99bc8f917 Removed enum that no longer exists from ENUMS.md. 2013-09-29 00:40:58 -04:00
Ian Strachan fe669b818c Replace hideous function-that-returns-a-function-pointer declaration with a typedef. 2013-09-29 00:34:37 -04:00
Rivet-the-Zombie 5d48ec7a8b Tweak. 2013-09-28 23:33:37 -05:00
Rivet-the-Zombie 0437297d5b A big steel mitten-thing to make your fists hit super hard! 2013-09-28 23:31:54 -05:00
Rivet-the-Zombie 2e4d74b5a8 Changes Jabberwock's special attack frequency to 5. 2013-09-28 23:22:47 -05:00
Ian Strachan 4173200aa2 Make furn_t and ter_t load from JSON, and use string flags instead of enum flags. 2013-09-29 00:18:02 -04:00
Ian Strachan 81a2ccdced Add some missing colors to color.cpp's color conversion functions. 2013-09-29 00:13:25 -04:00
Ian Strachan d21781f855 Correct an overzealous find-and-replace. 2013-09-29 00:08:26 -04:00
Rivet-the-Zombie e13da19350 Tweak. 2013-09-28 23:00:11 -05:00
Rivet-the-Zombie de146216f7 SMG magazine. 2013-09-28 22:59:45 -05:00
Rivet-the-Zombie bccb2a7742 Shotgun magazine. 2013-09-28 22:56:39 -05:00
Rivet-the-Zombie e8fea9412d Rifle magazine. 2013-09-28 22:54:09 -05:00
Rivet-the-Zombie c4e5cf7a87 Pistol magazine. 2013-09-28 22:48:00 -05:00
Rivet-the-Zombie 8709029053 Launcher magazine. 2013-09-28 22:44:31 -05:00
Rivet-the-Zombie 2890bcd73a Unarmed magazine. 2013-09-28 22:21:56 -05:00
Rivet-the-Zombie 33bb1c385b Stabbing magazine. 2013-09-28 22:08:13 -05:00
Rivet-the-Zombie 30057e8170 Melee magazine. 2013-09-28 22:01:17 -05:00
Kevin Granade 62f3caebad Remove trailing whitespace in recipes.json. 2013-09-28 21:20:38 -05:00
Kevin Granade a9b6b07f5b Remove tabs from recipes.json. 2013-09-28 21:19:31 -05:00
Rivet-the-Zombie f7424e0d0b Cutting magazine. 2013-09-28 21:12:51 -05:00
Kevin Granade d9b64ab9de Merge batch of content.
Conflicts:
	data/json/recipes.json
2013-09-28 21:12:21 -05:00
Rivet-the-Zombie 3ad1de566a Bashing magazine. 2013-09-28 21:00:44 -05:00
Rivet-the-Zombie 5206e75658 Traps magazine. 2013-09-28 20:54:22 -05:00
Rivet-the-Zombie 03a6c7d64a Tweak. 2013-09-28 20:48:09 -05:00
Rivet-the-Zombie e3da638e74 Tweak. 2013-09-28 20:47:30 -05:00
Rivet-the-Zombie 1c28461c28 Survival magazine. 2013-09-28 20:47:04 -05:00
Rivet-the-Zombie 947ec6ff67 Mechanics magazine. 2013-09-28 20:22:45 -05:00
Rivet-the-Zombie e7e4fafd85 Long sleeve shirt. 2013-09-28 20:15:21 -05:00
Rivet-the-Zombie da0995279e Electronics magazine. 2013-09-28 20:08:40 -05:00
Ian Strachan 7298788802 Uppercase all the terrain flags. 2013-09-28 21:06:14 -04:00
Rivet-the-Zombie 99228aa4e3 Computer magazine. 2013-09-28 20:04:11 -05:00
Rivet-the-Zombie 031b6adf90 Also adding unarmed_weapon tags to weapons that should have them. 2013-09-28 19:59:07 -05:00
Rivet-the-Zombie ef9f679f3a Punch dagger, spawns, recipe. 2013-09-28 19:50:09 -05:00
Rivet-the-Zombie e83aeec0f4 Rain hood recipe. 2013-09-28 19:36:11 -05:00
Rivet-the-Zombie 4d2ec4d1db Barter magazine. 2013-09-28 19:31:48 -05:00
Rivet-the-Zombie f7fb02521d Balancing.
Gets everything onto a standard.
2013-09-28 19:29:49 -05:00
Kevin Granade 577a108b0d Merge monster save stabilization and input harmonization. 2013-09-28 19:23:51 -05:00
Ian Strachan 68157d163d Fix some terrain that should have been ' but was accidentally ", and restored some comments. 2013-09-28 20:23:23 -04:00
Rivet-the-Zombie 33f2a5473c First pass.
Pistol bayonet, recipe, spawns, and enables spawning of vanilla bayonet.
2013-09-28 19:01:51 -05:00
Ian Strachan 52d1242ac9 Add type fields to furniture.json and terrain.json. 2013-09-28 19:20:51 -04:00
Ian Strachan 9f97fefed0 Initial terrain.json.
Because it turns out I can't do one without doing the other, as they use the same set of flags.
2013-09-28 19:15:20 -04:00
Rivet-the-Zombie 235643b486 Fix'd! 2013-09-28 17:37:40 -05:00
Rivet-the-Zombie 0dc5ed4d51 Arm warmer tweak. 2013-09-28 17:14:20 -05:00
Rivet-the-Zombie 6ec0e2a941 Tweak. 2013-09-28 17:06:15 -05:00
Rivet-the-Zombie 6a0e4151c2 Tweak. 2013-09-28 16:58:31 -05:00
Rivet-the-Zombie f918570512 Tweak. 2013-09-28 16:55:11 -05:00
Rivet-the-Zombie bcf800dd1d Enhanced fingerless gloves. 2013-09-28 16:53:56 -05:00
Rivet-the-Zombie 2f318ac8e5 Vanilla sleeping bag recipe. 2013-09-28 16:47:00 -05:00
Rivet-the-Zombie b0b3787d9e One more recipe. 2013-09-28 16:44:18 -05:00
Rivet-the-Zombie f48c1a990e Recipes. 2013-09-28 16:42:54 -05:00
Rivet-the-Zombie a809f30cbd Arm warmers, leg warmers, and the associated spawns. 2013-09-28 16:39:37 -05:00
Rivet-the-Zombie 3e64476dda Rain hood and spawns. 2013-09-28 16:32:07 -05:00
Rivet-the-Zombie 312f0d43f2 Gives the rattlesnake its rattle! 2013-09-28 16:24:59 -05:00
Ian Strachan 9ccc84eafb Add spawn points for the hippie van. 2013-09-28 17:03:04 -04:00
Ian Strachan 7b904b8af9 Add the Volkswagen Type 2. Sort of. 2013-09-28 16:56:40 -04:00
Rivet-the-Zombie 341ad0a18e Spawns. 2013-09-28 15:33:04 -05:00
Rivet-the-Zombie e1835be0ed Tights! 2013-09-28 15:29:25 -05:00
Rivet-the-Zombie 21e7d76832 Spawns. 2013-09-28 15:23:03 -05:00
Rivet-the-Zombie d9ec2e0a69 Union suit! 2013-09-28 15:22:02 -05:00
Rivet-the-Zombie 441b512056 Spawns. 2013-09-28 15:19:27 -05:00
Rivet-the-Zombie 9c9910699b Long underwear top, slight renaming of vanilla long underwear. 2013-09-28 15:18:09 -05:00
Rivet-the-Zombie 933c673a1c Tweak. 2013-09-28 15:12:52 -05:00
Rivet-the-Zombie c404243761 New blacksmithing recipe: cooking pot 2013-09-28 15:06:18 -05:00
Kevin Granade 81953d1db7 Only count or use a container if it's empty. 2013-09-28 14:52:47 -05:00
Kevin Granade f5f08bcc22 Restyle some crafting and inventory methods. 2013-09-28 14:51:06 -05:00
Ian Strachan f5822d1482 Why was this a char? Everywhere it's used thinks it's an int. 2013-09-28 15:50:34 -04:00
Ian Strachan 155efd073e Add a function to color.cpp that converts strings to i_xxxx colors. 2013-09-28 15:43:05 -04:00
fnord 8deb7ca789 Fix laws of physics (again, this time rregarding walls), make ductape with broadsword. Also, sammich 2013-09-28 14:41:49 -05:00
fnord 29324fcb92 Fix reversed NPAGE/PPAGE
Make up/dn/left/right = k/j/h/l, to match rest of game
Make upleft/upright/downright/downleft = y/u/n/b, to match rest of game
2013-09-28 14:32:22 -05:00
Ian Strachan 67bd7fe33f Remove c_ from colors, and use 'bgcolor' property for i_ colors. 2013-09-28 15:30:25 -04:00
Ian Strachan a7bbd35636 Initial furniture.json file. 2013-09-28 15:10:16 -04:00
Rivet-the-Zombie bea1bd0a99 Minor diversification. 2013-09-28 12:54:43 -05:00
Rivet-the-Zombie 7e956f80fc Adds thread to recipe. 2013-09-28 12:52:43 -05:00
Rivet-the-Zombie 8407118f6e Recipe improvement. 2013-09-28 12:40:29 -05:00
fnord 2489548322 Killcounts are json with string ids 2013-09-28 10:32:10 -05:00
Kevin Granade e3f9db95a1 Merge fixes to recently merged PRs. 2013-09-28 08:47:09 -05:00
fnord 7224329a66 monster::save/load: save save/load monsters as strings. Tis makes
use of tile_id_data.h on save and on load, which is temporary until
monsters are jsonized.

Everything before this (int mon_id) is translated from int to str
via legacy_monster_id.
2013-09-28 07:33:19 -05:00
fnord 398dd9579e create savegame.h, add legacy_monster_id to future-proof enum/json shuffling 2013-09-28 07:32:48 -05:00
cib 0073b83ef0 Minor cosmetic fix: Use "," instead of "or" in input lists. 2013-09-28 10:56:29 +02:00
cib 5cd5a6c9bb Fixes to keybindings.json
- Adds missing numpad bindings for directions.
- Remove duplicate QUIT binding.
2013-09-28 10:47:20 +02:00
cib 1c5b9245e4 Only show gamepad keys when a gamepad is plugged in. 2013-09-28 10:37:33 +02:00
fnord 8160c99c83 deshift recent monster enum shift 2013-09-28 02:54:35 -05:00
Rivet-the-Zombie 9195382451 Adds plastic to recipe. 2013-09-28 00:11:59 -05:00
Kevin Granade 736f138507 Prevent spent shell casings from spawning on walls, which sometimes caused them to tunnel to the other side. Fixes #733. 2013-09-27 23:37:54 -05:00
Kevin Granade 921822c07f Prevent NPCs from targeting player through walls. Fixes #58. 2013-09-27 23:21:10 -05:00
Kevin Granade 546631e076 Prevent smokers from generating smoke on the other side of walls. Fixes #849. 2013-09-27 23:19:41 -05:00
Kevin Granade e4ab638f93 Only add items to crafting options when we have a line of effect to them. Fixes #995. 2013-09-27 23:19:01 -05:00
Rivet-the-Zombie 53f3bb62a8 Duct tape recipe! 2013-09-27 23:17:16 -05:00
zfullmer9@hotmail.com e0de385a28 Adds craftable blts 2013-09-27 21:30:26 -06:00
Kevin Granade 4cfee5bd58 Adjusted descriptions of wood and metal crossbow bolt to stand on their own. 2013-09-27 22:29:35 -05:00
zfullmer9@hotmail.com dbd24a5a1e Adds lettuce to the game [prereq] 2013-09-27 21:02:39 -06:00
Kevin Granade 12b3f3e930 Merge some content. 2013-09-27 21:28:45 -05:00
Kevin Granade 512778013f Fix another windows name collision. 2013-09-27 21:12:11 -05:00
Kevin Granade aa0832d3ba Merge pull request #3316 from CIB/master
Fixes naming conflict with windows.h
2013-09-27 18:52:15 -07:00
cib 83745aa012 Fixes naming conflict with windows.h
Also fixes a small warning about an unused variable.
2013-09-28 05:32:21 +02:00
Rivet-the-Zombie dc5aa1b4a7 Simple cornmeal recipe. 2013-09-27 20:47:52 -05:00
Kevin Granade b30b77431c Merge input layer refactor.
Conflicts:
	overmap.cpp
2013-09-27 20:16:16 -05:00
mina`kitty 5b56ca08bd Hobo now starts with whiskey and a can of beans. Traditional street fare. 2013-09-27 16:45:16 -07:00
Kevin Granade b667b78faa Merge new monsters and survivor suits. 2013-09-27 18:13:04 -05:00
Kevin Granade 8e5c8d2aaa Octomerge of balance fixes. 2013-09-27 17:50:56 -05:00
Kevin Granade 40f7e0bb47 Merge future-proofing of legacy item numbering. 2013-09-27 17:47:04 -05:00
Rivet-the-Zombie 7ea68e4d98 Tweak. 2013-09-27 17:13:52 -05:00
Rivet-the-Zombie 7993fd3183 Tweak. 2013-09-27 17:11:51 -05:00
Rivet-the-Zombie 2391fef067 Grape drink! 2013-09-27 17:10:30 -05:00
Rivet-the-Zombie 9811f485d2 Tweak! 2013-09-27 17:02:50 -05:00
Rivet-the-Zombie bb08c7ec98 Enables extant wines.
They were already in the files, but it looks like they never got added
to the spawn lists.
2013-09-27 16:57:49 -05:00
Rivet-the-Zombie 2f77cb0e39 Putting chocolate drink in cans. 2013-09-27 16:41:03 -05:00
Rivet-the-Zombie 722cb630c4 Tweak. 2013-09-27 16:40:03 -05:00
Rivet-the-Zombie a0d27c1eba Yoo-Hoo! 2013-09-27 16:38:55 -05:00
Rivet-the-Zombie 2268184b13 What's the word?
Thunderbird!
2013-09-27 16:33:11 -05:00
Rivet-the-Zombie 684b9faad0 Recipe tweak. 2013-09-27 16:20:52 -05:00
Rivet-the-Zombie c989c258c4 Yet another tweak. 2013-09-27 16:16:34 -05:00
Rivet-the-Zombie e6cba9b879 Tweak. 2013-09-27 16:10:07 -05:00
Rivet-the-Zombie 4bc84223ee Tweaking the arthropod brain. 2013-09-27 16:05:57 -05:00
Rivet-the-Zombie 941728adad Giant crayfish! 2013-09-27 16:04:03 -05:00
Rivet-the-Zombie b75fcde24d Minor tweaks. 2013-09-27 14:46:11 -05:00
Rivet-the-Zombie 09d7aa75b7 Survivor vest recipe! 2013-09-27 14:38:52 -05:00
Rivet-the-Zombie 8ba414adec Survivor mask recipe! 2013-09-27 14:35:23 -05:00
Rivet-the-Zombie ea6b96239a AEP suit recipe. 2013-09-27 14:30:19 -05:00
Rivet-the-Zombie 814be42213 Chest rig coverage reduction.
Seriously, a set of straps and pouches should not cover seventy percent
of your torso.
2013-09-27 14:26:08 -05:00
Rivet-the-Zombie 2e786f9bd3 Survivor vest!
A custom-built light carrying harness for your gear.
Sort of an improved chest rig/sleeveless jacket thing.
2013-09-27 14:25:05 -05:00
Rivet-the-Zombie affca093fc Survivor mask!
A customized, armored gas mask.
Craftable only.
2013-09-27 14:18:12 -05:00
Rivet-the-Zombie 8d761b4bf8 SEVA - I mean, AEP suit.
Something to protect you from radiation that is neither a flimsy hazmat
suit, nor giant-walking-metal-thing power armor.
Craftable only.
2013-09-27 14:13:07 -05:00
Ian Strachan 790204ef51 Change crowbar material to steel. 2013-09-27 15:10:21 -04:00
Rivet-the-Zombie 233169cfea Reduces bone needle crafting difficulty.
Seriously, how hard is it to slice off a thin sliver of bone?
If you can't get it right, just keep trying until you do.
2013-09-27 13:55:12 -05:00
Rivet-the-Zombie eb93040427 Dropped warmth of survivor suits a bit. 2013-09-27 13:52:12 -05:00
Rivet-the-Zombie 787c97d830 A few more AI tweaks. 2013-09-27 13:37:18 -05:00
Rivet-the-Zombie 4640ddeaea Grammar fix. 2013-09-27 13:14:04 -05:00
Rivet-the-Zombie 49efc02641 Size tweaks.
Seriously, socks should not be one size fits all.
2013-09-27 13:08:18 -05:00
Rivet-the-Zombie 63222fc107 Encumbrance tweaks. 2013-09-27 13:00:24 -05:00
Rivet-the-Zombie 2e9f9cef98 Tweak item spawns. 2013-09-27 12:51:29 -05:00
Rivet-the-Zombie 184411f7b5 Caught by the typo police! 2013-09-27 12:49:54 -05:00
Rivet-the-Zombie 58ed13bbc0 Materials fix.
15th century swords were well past the iron age.
All of these should be made of steel.
2013-09-27 12:43:15 -05:00
Rivet-the-Zombie 4710db4abf Sword punctuation fix. 2013-09-27 12:40:39 -05:00
Rivet-the-Zombie 23b794d591 Gives katana the same volume as a baseball bat.
On further consideration, and after some internet research, a katana
size that's a bit closer to a baseball bat seems best.
2013-09-27 12:37:04 -05:00
Rivet-the-Zombie 8bdaff5901 Reordering. 2013-09-27 12:19:14 -05:00
Rivet-the-Zombie b573f3080e Increases charcoal yield, slightly modifies weight.
People complained quite a bit that it was really inefficient.
This addresses that without going crazy with it.
2013-09-27 11:22:35 -05:00
Rivet-the-Zombie 65237a1dce Sports drink! 2013-09-27 11:13:38 -05:00
Rivet-the-Zombie 5af2402bbd Dropped Irish coffee charges to one and reduced quench a bit. 2013-09-27 10:47:48 -05:00
Rivet-the-Zombie 7aa7059704 Adjusts katana and fire katana volume.
Katana was 16, while the broadsword was 7.
This brings the katana down to the same volume as the broadsword and
makes the fire katana match as appropriate.
2013-09-27 10:42:47 -05:00
Rivet-the-Zombie ec96a6bb68 Moved to end of enum list. 2013-09-27 10:39:09 -05:00
Voker57 9ae27231d0 Added metal crossbow bolt and balanced steel ones for it 2013-09-27 19:18:52 +04:00
Voker57 a4bb5e62ec Changed kompot ingredients to match 3l jar recipe 2013-09-27 19:14:19 +04:00
fnord f809b3d850 merge deconstruct ovens, nerf jocks and misc armor/size adjustments 2013-09-27 08:27:03 -05:00
fnord 4f25198848 Ensure stringstream-saved vehicles have correct in->vpart mapping regardless of json order 2013-09-27 07:43:45 -05:00
Olteanu Costin 84d056cee7 Corrected behavior on wearing with bad input 2013-09-27 10:11:07 +00:00
Rivet-the-Zombie 1429fd5e64 Reduces barbute helmet's thickness a bit as well. 2013-09-27 02:40:53 -05:00
Rivet-the-Zombie f9c27d6e98 Adds eastern timber rattlers. 2013-09-27 02:33:31 -05:00
Rivet-the-Zombie 7838139edc Adds opossums! 2013-09-27 02:18:10 -05:00
Rivet-the-Zombie c279021d04 Raccoon AI edit. 2013-09-27 02:13:24 -05:00
Rivet-the-Zombie 04d08a885e Adds raccoons. 2013-09-27 02:11:47 -05:00
Rivet-the-Zombie 2fdf1110f7 Adds wild turkeys. 2013-09-27 02:04:34 -05:00
Rivet-the-Zombie 257448039d Reduces pneumatic rifle size from 25 to 20.
In retrospect, 25 is excessive.
Seriously, a flamethrower has volume 20.
2013-09-27 01:30:59 -05:00
Rivet-the-Zombie 4797add8dd Reduces light plate armor's thickness a bit.
Oddly enough, it was providing protection equivalent to the heavier
plate armor.
2013-09-27 01:29:09 -05:00
Rivet-the-Zombie e46861761e Makes ovens destructible, and adds pilot lights to their composition. 2013-09-27 01:26:58 -05:00
Rivet-the-Zombie d90363bab4 Altered as per kevingranade's description. 2013-09-27 00:25:19 -05:00
Rivet-the-Zombie c1b9b1e720 Reduces football helmet's unintentionally amazing stats. 2013-09-26 23:31:57 -05:00
Kevin Granade b64288c86a Merge pull request #3286 from CIB/master
Fix unresolved conflict in init.cpp
Crap, forgot to commit after resolving locally.
2013-09-26 20:05:44 -07:00
cib b18cf53e81 Fix unresolved conflict in init.cpp
Fixes build error.
2013-09-27 06:56:32 +02:00
zfullmer9@hotmail.com 6ba2f5a11f Merges master branch changes to vehicle parts 2013-09-26 20:34:37 -06:00
Kevin Granade 175ebe2845 Merge initial polish translations, spelling fixes, vehicle construction tweak, electronics recipe rework, computer and lab note cleanup, help() refactor and lab notes jsonification and profession restyle and cleanup.
Conflicts:
	init.cpp
2013-09-26 20:44:13 -05:00
Kevin Granade 4ef59d4439 Mergeorama. 2013-09-26 18:53:59 -05:00
Ian Strachan 65423809fa Added roofs to cube van storage areas. 2013-09-26 18:56:38 -04:00
cib d382d1d159 Fixed problems with CONFIRM action.
- "RETURN" special keycode wasn't exposed to JSON.
- Overmap input loop was only checking for QUIT, not for CONFIRM to exit loop.
2013-09-27 00:43:42 +02:00
cib c8e6edbda1 Fixed keybinding naming convention for diagonal directions to match SDL. 2013-09-27 00:43:42 +02:00
cib a500b721a2 Fixed a problem with gamepad button descriptors not showing up properly. 2013-09-27 00:43:42 +02:00
cib b644f64737 Converted overmap::draw to always expect an input context.
Fixes duplicate code issue.
2013-09-27 00:43:42 +02:00
cib 81f13e4e22 Implemented d-pad diagonals and continuous movement. 2013-09-27 00:43:42 +02:00
cib cfe917374e Implemented gamepad support.
Only one gamepad at a time. Still has some rough edges.
2013-09-27 00:42:56 +02:00
cib 9b1df7c720 Polish of the input abstraction classes.
- There are now input categories, if no binding is found in the context's category, the "default" one will be used instead.
- Changed JSON file syntax, the different bindings are now in a sub-array of the action JSON object
- Properly configured all overmap key bindings to be the same as before.
2013-09-27 00:30:00 +02:00
cib cad0ed56a2 Added a context-specific help menu for input_context 2013-09-27 00:30:00 +02:00
cib 48ac5f3aff Implemented special keycodes. 2013-09-27 00:30:00 +02:00
cib 61a0e34a57 Allow multiple alternative keybindings for an action.
In JSON this is implemented simply by allowing several definitions of the same action. That way, you can freely intermix keyboard and gamepad events without hassle.
2013-09-27 00:30:00 +02:00
cib 6724bcaf5c Refactored input_event definition.
Instead of having separate data structures for gamepad and keyboard, use the same structures and assume that both gamepad keys and keyboard keys will fit into a `long`.

Key sequences are loaded from JSON now(but not handled).
2013-09-27 00:30:00 +02:00
cib 6fc8473933 Renamed input_instance to input_event 2013-09-27 00:30:00 +02:00
cib 505951489d Improvements to new input classes.
- Separated out registering input from getting a key description.
- The help text on the bottom right of the map screen now prints the actually configured keys, rather than the previous hardcoded ones.
2013-09-27 00:30:00 +02:00
cib 2314b686b0 Started implementing input context and manager classes.
These classes are meant to improve abstraction of input. With them, it should be possible to retain 100% convenience of using the keyboard, while being able to fine-tune input layouts for other input methods(e.g. gamepad). They also make configuration easier, by adding the ability to easily add new input events by specifying a string name.

TODO:
- Key-combos(with keys reserved for combos, e.g. 'a)
- Multiple keys assigned to one action(alternatives rather than combos)
- System to reconfigure keys for the "current context" in-game(e.g. hit a special key in overmap view, get to redefine keys related to navigating overmap, can also serve as "help")
2013-09-27 00:30:00 +02:00
Ian Strachan e08033b887 Expand some still-folded objects, and adjust a few more profession costs. 2013-09-26 14:06:34 -04:00
Ian Strachan 6dc72c982c Fix style and descriptions of professions. 2013-09-26 13:37:05 -04:00
Ian Strachan 4febc76384 Fix funky materials for skeletons and sludge crawlers. 2013-09-26 13:13:26 -04:00
Tommy 84cab2b651 Convert data/NPC_HINTS to data/json/hints.json. 2013-09-27 03:05:21 +12:00
zfullmer9@hotmail.com f697a5a2a0 Adds vehicle alternators and car battery spawns 2013-09-26 08:53:45 -06:00
Tommy 5d1dfc40fe Disentangle help() from game. 2013-09-27 02:46:11 +12:00
fnord 775a97ee72 [crashfix] despawn: don't feed map absolute sub until it's ready.
>.> I blame lack of sleep.
2013-09-26 06:05:56 -05:00
zfullmer9@hotmail.com f8e5779466 Adds power requirement for headlights 2013-09-26 01:50:29 -06:00
Rivet-the-Zombie b4443d5212 Fixes charcoal water purifier message using the most ridiculously simple fix ever.
Instead of coding our way around the problem, why not just alter the
message slightly so that it applies to any given water purification
apparatus?
2013-09-26 01:49:20 -05:00
Tommy 4122fd6978 Implement getcurx and getcury for tiles. 2013-09-26 15:47:34 +12:00
Tommy 2fd2134361 Use newwin not subwin as catacurse doesn't have subwin. 2013-09-26 15:37:40 +12:00
Tommy be238df9e5 computer.h/.cpp: align comments with text for scanability. 2013-09-26 15:14:01 +12:00
Tommy 39a380d6e2 Clear the terminal before displaying the amigara logs. 2013-09-26 15:03:23 +12:00
Tommy c901b13ffe Add function to computer.cpp to fold_and_print a block of text. 2013-09-26 15:02:32 +12:00
Tommy 120ff4fd5e Cleaner handling of newlines and borders in computer.cpp. 2013-09-26 14:30:19 +12:00
Tommy cbdc0cbd7f Convert data/LAB_NOTES to data/json/lab_notes.json. 2013-09-26 13:58:26 +12:00
Rivet-the-Zombie 0a4220be7c Recipes! 2013-09-25 20:32:18 -05:00
Christian Buskirk 4b4c4374bf Fix broken if statement 2013-09-25 18:21:11 -07:00
Ian Strachan 8cb096fe63 Fix various issues involving hallucinations vs. vehicles 2013-09-25 20:56:45 -04:00
Ian Strachan 98b98ca072 Fix water tanks being emptied if container filling is cancelled. 2013-09-25 20:17:28 -04:00
Rivet-the-Zombie 73b5c5c838 Electronic scraps! 2013-09-25 19:06:19 -05:00
Ian Strachan df05a5c8fa Fix being able to get water from kitchen units with 0% water in the tanks 2013-09-25 20:04:00 -04:00
Tommy b584c6e1d4 Properly add "faulty" tag to bio_stiff. 2013-09-26 11:25:40 +12:00
Rivet-the-Zombie 7925a9af28 Printed circuit boards! 2013-09-25 18:14:03 -05:00
Kevin Granade f69f9968f9 Merge leftovers of bodypart-specific conditions. 2013-09-25 17:51:00 -05:00
NaturesWitness 225782f07d Make "variable size" stackable
In my quest to build a functional, 1-tile vehicle, I discovered you
can't install a wheel and an engine on the same square, because they
both have "VARIABLE SIZE" flags.  I don't see why this flag shouldn't be
stackable, so I added it to the can_stack_vpart_flag list.
2013-09-25 18:18:46 -04:00
Christian Buskirk bc96ed650e Make antibiotics function properly 2013-09-25 14:52:58 -07:00
Christian Buskirk 75d1d958b5 Fix infection transition 2013-09-25 14:28:39 -07:00
Christian Buskirk 92254a1f11 Rename "disease_level" to "disease_duration" 2013-09-25 14:27:27 -07:00
fnord 4d20640389 Merge stuff and things; roll your own shopping cart! Enjoy body-part specific infections! Enjoy a cozy campfire in your native language! (may cause burns) 2013-09-25 16:06:48 -05:00
Christian Buskirk bae3f5574e Remove dead "side == 3" code 2013-09-25 13:10:05 -07:00
NaturesWitness 21ed1cdf15 Fix spelling on Louisville Slaughterer
Just realized I spelled this wrong.  D'oh.
2013-09-25 12:55:43 -04:00
NaturesWitness 8b299c151d USACE repair rig
A heavy-duty, milspec version of the welding rig.
2013-09-25 12:39:45 -04:00
NaturesWitness 00b59d1f7e Heavy-duty kitchen unit
A kitchen unit reinforced with steel framing.
2013-09-25 12:29:47 -04:00
NaturesWitness f78fb303d3 Reinforced solar panels
Basically a solar panel with a piece of reinforced glass to protect it.
2013-09-25 12:19:37 -04:00
NaturesWitness 8915a1da71 Build your own carts! (and fixes C::B build)
Adds option to start building vehicles with casters, so you can build
your own carts.  Also fixes C::B build, since I couldn't build this
without it.
2013-09-25 11:11:47 -04:00
olteanu Costin 783fac82b7 Fixed "Putting on a none would be tricky" 2013-09-25 15:08:49 +00:00
Christian Buskirk 27090139da Fix cauterizing for fun 2013-09-25 03:35:41 -07:00
Christian Buskirk 2c689c7569 More tweaks/updates
Move player::cauterize to an iuse function
Give first aid a PKILL effect (from the recipe aspirin)
Make further bites on an infected/bitten limb increase effects
Cauterizing now will either remove a bite wound or greatly increase it's
effects
Cauterizing now causes 2 damage to the cauterized limb
Added some new player::functions to convert from hp_part to bp_part and
back again
2013-09-25 03:08:59 -07:00
fnord 64fb0be61c FixNinjaDesc 2013-09-25 04:39:15 -05:00
fnord 68b554db11 Merge martiall arts restore, multi-square vehicle doors, cube vans, armored cars, and a big heap of translations 2013-09-25 04:33:19 -05:00
Christian Buskirk ce6f83123f Add damaging "healing item" support 2013-09-24 23:28:46 -07:00
Ian Strachan 337dc4c9d7 Spawn cube van in a few places. 2013-09-25 02:18:16 -04:00
Ian Strachan a4f2850da5 Added shutter doors for vehicles, and a cube van. 2013-09-25 02:03:14 -04:00
Christian Buskirk d4b1f68504 Update to match mainline 2013-09-24 22:15:42 -07:00
Christian Buskirk 7ba5abeff7 Break body part usage window into its own function 2013-09-24 22:12:01 -07:00
Ian Strachan ff8d97d388 Added support for multi-square doors, and converted trunks on cars and electric cars to use trunk doors. 2013-09-25 01:10:43 -04:00
zfullmer9@hotmail.com 37102c00b6 [WIP] Framework for determining part power usage 2013-09-24 22:56:46 -06:00
Tommy 4d940e53f8 I18n for imaginary items, such as "nearby fire". 2013-09-25 16:02:10 +12:00
Tommy 8a6e85b966 Merge current state of translations: de fr ru zh_CN zh_TW and new ko. 2013-09-25 15:15:51 +12:00
Christian Buskirk 243a8b0e32 Message Cleanup/CBM: Nanobots stop bleeding 2013-09-24 18:55:37 -07:00
Kevin Granade 8015d65b01 Merge color tags enhancement, tab removal, headlights being left on, and ammo crafting fix.
Conflicts:
	output.cpp
2013-09-24 20:39:59 -05:00
Tommy fbabffb529 Merge branch 'master' into tabpocalypse
Conflicts:
	iuse.cpp
	iuse.h
	mapgen.cpp
2013-09-25 13:05:39 +12:00
Tommy 6d16a6b9c5 Fuck tabs. 2013-09-25 12:56:37 +12:00
Ian Strachan e6888a4505 Remove mention of old vpart_id enum from code documentation. 2013-09-24 19:49:17 -04:00
Ian Strachan 9dd992febf Add the blueprint for the armored car. 2013-09-24 19:46:45 -04:00
Kevin Granade 1a706bb703 Merge fixes of bugs. 2013-09-24 17:58:45 -05:00
AnderHammer e5bdc398a9 explosive slug crafting takes proper # of slugs 2013-09-24 17:17:55 -05:00
Christian Buskirk ceca10e677 Final color updates/Add status cures 2013-09-24 15:05:01 -07:00
Rivet-the-Zombie 29a2730198 Fixes jam sedative effect. 2013-09-24 17:04:40 -05:00
Steven Wu 5ad399dabe Update martialarts.json
Accidentally deleted capoeira, added it back in
2013-09-24 14:18:36 -07:00
Tommy dba502ad58 Make cancel_activity query more easily translatable. 2013-09-25 09:09:17 +12:00
Michał Walczak dddcc1ebd9 2% PL translation 2013-09-24 21:51:45 +02:00
Tommy 73ca9f2bfe I18n for mapgen.cpp. 2013-09-25 07:49:42 +12:00
Steven Wu 2c3ff472bc Merge branch 'master' into martial_arts 2013-09-24 12:43:08 -07:00
Steven Wu cdbfac352b added 4 more styles and self-defense training trait back in 2013-09-24 12:42:06 -07:00
Christian Buskirk fcaf8fd2fa Further merge fixes 2013-09-24 12:35:58 -07:00
Tommy c816e98135 Add spaces: "land mine", "booby trap", "bubble wrap". 2013-09-25 07:11:37 +12:00
Christian Buskirk 1137accc96 Update to match mainline 2013-09-24 12:02:02 -07:00
Christian Buskirk 47c76052ef Limb color framework 2013-09-24 11:48:41 -07:00
Ian Strachan 6943b60759 Make cancelling with a hotplate actually cancel. 2013-09-24 14:09:26 -04:00
Ian Strachan 43d5e889d0 Allow hotplates to heat food, and condense food-heating code. 2013-09-24 14:05:21 -04:00
fnord 0bec53b59d Merge end of anti-motorist campaign of terror by shrubbery. 2013-09-24 09:28:29 -05:00
Kevin Granade 66c1ba5f2d Repeat vcehicle collision against an obstacle with increasing damage until either the obstacle breaks or the car runs out of momentum. 2013-09-24 07:41:51 -05:00
fnord 83b707c01f inventory_ui and player memorial: first restack inventory, -then- sort it.
This corrects the 'drank bottle of water and half drunk bottle disappears / moves to "other"' bug
in 'E'at / 'a'ctivate, 'i'nv
2013-09-24 05:38:21 -05:00
fnord ff3589917b inventory::clone_stack(const std::list<item> & stack); This is like inventory::add_stack, but
it does -not- use inventory::add_item(). This is because inventory::filter_by_category()
(which is only used in game::inv_type()) is essentially a display filter, exact stack copies
are needed, and invlets do not require -any- changes.

This is a temporary bugfix as game::inv* will be rewritten.
2013-09-24 05:30:21 -05:00
Ian Strachan 72b55771b0 Some vehicles will now be created with their lights running. 2013-09-24 01:49:57 -04:00
Rivet-the-Zombie 46d2ef3384 Biscuit fix. 2013-09-24 00:33:08 -05:00
Rivet-the-Zombie cd518fc59a Fixes fruit leather quench value. 2013-09-24 00:23:28 -05:00
Tommy 75411b6783 Clean up veh_interact i18n using new inline colour tags. 2013-09-24 16:42:45 +12:00
Kevin Granade 08e3f5e81f Restype part_collision. 2013-09-23 20:55:01 -05:00
Kevin Granade d1b04e85b3 With a flag, fail placing a vehicle with add_vehicle() instead of simulating collisions. 2013-09-23 20:11:05 -05:00
Tommy 5fa20b73fe Also allow shorthand colour names for json and colour tags. 2013-09-24 12:35:53 +12:00
Kevin Granade 7f4f56975c Initialize all the things. 2013-09-23 19:34:47 -05:00
Tommy ac8cf2f494 Implement inline <color> tags for fold_and_print(). 2013-09-24 12:19:23 +12:00
Kevin Granade 2262bafe22 Merge warning cleanup, not-bio-blaster, name fixes, and recipe fix. 2013-09-23 18:58:20 -05:00
Tommy 73c4484848 Publicize get_tag_positions() and make its argument const. 2013-09-24 11:13:09 +12:00
Tommy 7d1b69c01d Ignore <color> tags when wrapping lines. 2013-09-24 10:33:47 +12:00
Tommy b531d12ebb Purge tabs from output.cpp. 2013-09-24 09:49:02 +12:00
fnord a695a219fa Merge elimination of vpart_id enum, completing full jsonization of vparts. And player_activity.str_value
remote branch 'origin/pr/3173'
2013-09-23 14:57:00 -05:00
Rivet-the-Zombie 62f2d9beac Changes item_group 'kevlar_patch' to proper 'kevlar_plate' listing. 2013-09-23 14:03:33 -05:00
Ian Strachan d3d43df442 Fix tiles to use the new map of vehicle part types. 2013-09-23 13:25:48 -04:00
Ian Strachan f62f2131ec Merge pull request #1 from atomicdryad/veh-interact-pr
Merge to latest, rewrite save/load code to new json save/load & legacy sstream loader, using autogenerated legacy_vpart_id vector where needed.
2013-09-23 10:12:31 -07:00
Rivet-the-Zombie ab191e9464 Properly adds integrated toolset to candlestick un-crafting recipe. 2013-09-23 11:58:51 -05:00
Tommy 277b65f172 Properly pass item->name to use_healing_item(). 2013-09-24 01:02:30 +12:00
Tommy b6f5ee9711 Rename "first aid" item to "first aid kit". 2013-09-24 00:51:56 +12:00
fnord 0f158852f0 RFI: Take a perfectly good fusion emitter, and make a rifle out of it. Keep both arms. 2013-09-23 07:00:06 -05:00
fnord b426e3900c Merge damage taken/healed stats
remote branch 'origin/pr/3203'
2013-09-23 05:14:51 -05:00
fnord 6c790db7fe Merge RPG-7, distance-from-collision-vpart-damage-cushion(tm), file_finder, misc warning/segv fixes
remote branches 'origin/pr/3109', 'origin/pr/3134', 'origin/pr/3133', 'origin/pr/3202' and 'origin/pr/3204'
2013-09-23 04:20:54 -05:00
fnord 99e97cfe17 str vpart.id: Rewrite save/load code to new json save/load & legacy sstream loader, using autogenerated legacy_vpart_id vector where needed. 2013-09-23 01:15:29 -05:00
zfullmer9@hotmail.com 97ccdfc1ea Merge remote-tracking branch 'upstream/master' 2013-09-22 23:40:43 -06:00
fnord 5bf57d1426 Merge remote branch 'origin/master' into veh-interact-pr
fixed Conflicts:
	pldata.h
	veh_interact.cpp
	veh_type.h
	veh_typedef.cpp
	vehicle.cpp
2013-09-23 00:38:49 -05:00
zfullmer9@hotmail.com 79a16cc155 Fixed overkill damage count removal 2013-09-22 22:21:12 -06:00
Fergus Dall 85e07e740f Fix the narrowing warnings that were appearing on windows tiles builds 2013-09-23 13:02:14 +09:30
Fergus Dall b016b2f26b Fix a bunch of warnings with item.h
Fixes #3189
2013-09-23 12:18:17 +09:30
zfullmer9@hotmail.com 87eff6c892 Adds total damage taken/healed to memorial file 2013-09-22 19:36:36 -06:00
Kevin Granade 1d33076c88 Initialize lastrecipe so it won't segfault if you trigger it without crafting something first. Thanks Nickboom for reporting. 2013-09-22 20:04:12 -05:00
Kevin Granade 4e622e5bb1 Fix the fur crafting fix. Right idea, wrong direction. 2013-09-22 19:48:14 -05:00
Kevin Granade 45b7c5eaf5 Merge syntax fix making fur-lined items only require fur or other material instead of both. 2013-09-22 19:39:12 -05:00
Kevin Granade 99d4aaec95 Fix typo. 2013-09-22 19:32:56 -05:00
Kevin Granade 0cbc427de4 Merge content additions and fixes. 2013-09-22 19:24:19 -05:00
NaturesWitness 2ccba5f4e8 Fix recipes for Fur boots and Fur pants
Fixes #3150, now fur boots require leather AND fur, and fur pants
require rags AND fur.  Previously both recipes required only one or the
other, which seems like an oversight.
2013-09-22 20:21:19 -04:00
Kevin Granade 745a03ae75 Merge blood splattered cars and blood decay rework, and absolute coordinate calculation cleanup. 2013-09-22 18:39:47 -05:00
Kevin Granade fe4d2fa19d Merge some fixes. 2013-09-22 18:19:17 -05:00
Kevin Granade d1cfc76a0e Restyle overmap save/load code since it's all new anyway. 2013-09-22 18:02:54 -05:00
Costin Olteanu 56b772d142 Reformatted totals 2013-09-22 23:57:14 +03:00
Costin Olteanu b3b3449a5f Tabless aligning 2013-09-22 23:51:42 +03:00
Rivet-the-Zombie 84d5a71cff Fixes tent materials.
Currently the tent is made of iron.
This changes it to be plastic, then iron.
2013-09-22 15:31:22 -05:00
Rivet-the-Zombie c95bbdd081 A few more item spawns. 2013-09-22 15:16:53 -05:00
Rivet-the-Zombie 5bd4722089 More un-crafting recipes! 2013-09-22 15:14:28 -05:00
Rivet-the-Zombie b83a038840 More domestic item spawns. 2013-09-22 15:08:57 -05:00
Rivet-the-Zombie 7743c35f35 Added spoon and a bunch of missing spawns. 2013-09-22 15:06:01 -05:00
Ian Strachan 82194cd861 Fix odd messages when picking bar doors. 2013-09-22 15:30:01 -04:00
fnord 09397f86b8 Dropped redundant function 2013-09-22 10:51:33 -05:00
fnord a7ef8a5206 Better documentation, better variable names 2013-09-22 10:26:39 -05:00
fnord 854509d17e Merge remote branch 'origin/master' into coordinate_sanity 2013-09-22 09:57:13 -05:00
Steven Wu 05778d3836 Fixed it_gun constructor to properly initialize pierce
Fixes #3145
2013-09-22 06:38:02 -07:00
Fergus Dall 81dd2059c9 Make sure that the player is considered as able to see themselves
Fixes #3179
2013-09-22 19:06:33 +09:30
fnord 8cb733e336 legacy player load: populate 'ma_styles' instead of styles. FIXME (?) informative message regarding yanked (?) ma styles 2013-09-22 02:39:47 -05:00
fnord 87be5ae921 Compatibility update: playernpc json_load: check for old 'styles' as well as renamed 'ma_styles' 2013-09-22 02:10:17 -05:00
fnord 4db45a4f96 Merge remote branch 'origin/master' into save_sanity_3-return_of_the_json
Conflicts: npc.cpp, player.cpp: changes to load_legacy unimplemented (old saves made prior to ma_style changes)
2013-09-22 02:03:43 -05:00
fnord 3457dd6ae3 overmap: move save (and load) to gamesave.cpp. For great justice (and easy diffs) 2013-09-22 01:53:59 -05:00
Ian Strachan 7567d416d9 Hallucinatory acid-trail leaving monsters don't leave trails. 2013-09-21 23:29:43 -04:00
Ian Strachan 3e7dd6e3d3 Hallucinatory sludge crawlers don't leave trails. 2013-09-21 23:18:57 -04:00
Ian Strachan 99f78152f0 Blood only disappears from vehicle parts that are a) outside, and b) in the rain. 2013-09-21 22:56:02 -04:00
Ian Strachan 1e61ad0454 Remove outdated comment, and use a flag over a hardcoded vpart id for lights. 2013-09-21 21:44:41 -04:00
Kevin Granade fe534efa97 Merge water extraction sanity and content enhancements. 2013-09-21 20:02:56 -05:00
Rivet-the-Zombie f0113bb609 Removed from 'consumer electronics' spawn list. 2013-09-21 18:50:14 -05:00
Kevin Granade 6be0f7bdd5 Remove unused variable. 2013-09-21 17:53:28 -05:00
Kevin Granade 2b31800e2f Nuke a bunch of commented out martial arts and technique code. 2013-09-21 17:48:17 -05:00
Kevin Granade 65875f1e9b Make disease handlers static. 2013-09-21 17:19:26 -05:00
Kevin Granade d3bfb671d4 Don't pass pointers to game object to disease helpers, game is a global. 2013-09-21 17:10:53 -05:00
Kevin Granade 6024ec4159 Merge martial arts rework. 2013-09-21 16:20:09 -05:00
Livingstone 2bfc609dbe Fix irish coffee, remove last recipes '}' 2013-09-22 00:08:07 +03:00
Kevin Granade 691ecb3ce5 Merge type and typo cleanups. 2013-09-21 15:50:15 -05:00
Steven Wu b1437a0da0 Flaming technique works again, fixed infinite blocking 2013-09-21 13:39:10 -07:00
Steven Wu df2658cb7b Merge branch 'master' into martial_arts
Conflicts:
	data/json/mutations.json
	disease.cpp
	game.cpp
	npc.cpp
	player.cpp
2013-09-21 13:34:59 -07:00
Kevin Granade 74a1d6bacf Update project files to remove references to sdlcurses.cpp. 2013-09-21 15:27:40 -05:00
Ian Strachan c2efa67ddd Remove unused mfb definition. 2013-09-21 16:03:14 -04:00
Kevin Granade b09f8e3e7e Merge merge of sdlcurse and sdltiles. 2013-09-21 14:52:59 -05:00
Gatleos 9d4a223369 Merge pull request #1 from CIB/test
Fixed makefile to define both SDLTILES and TILES for make TILES=1
2013-09-21 09:07:11 -07:00
zfullmer9@hotmail.com e22dbfe966 Merge remote-tracking branch 'origin/imagefonts' 2013-09-21 10:05:49 -06:00
Kevin Granade 93b0e29937 Add spawns for RPG-7. 2013-09-21 11:05:17 -05:00
Kevin Granade fa8b5327f8 Fixup definiton of RPG-7. 2013-09-21 11:05:04 -05:00
fnord c0d4128e58 monster/item/inventory: move json_save/load functions to savegame_json.cpp to join the rest 2013-09-21 10:02:57 -05:00
Arseny Tolmachev d46938c380 fixed include guards
courtesy of clang++, llvm guys rock
2013-09-21 20:56:33 +06:00
fnord 0bfd7a364f move all load_legacy class functions to savegame_legacy.cpp 2013-09-21 09:55:42 -05:00
fnord 3e9a443ae6 vehicle: split off legacy loader 2013-09-21 09:08:08 -05:00
fnord f643d494e1 monster/item: split off old loading into *::load_legacy 2013-09-21 08:40:46 -05:00
fnord 4de8b801fc player/npc/related classes; split off old loading into *::load_legacy,
pure old stringstream saves
2013-09-21 08:11:57 -05:00
fnord 4a00ff5720 player: carve off old save stringstream loader into load_legacy 2013-09-21 06:00:34 -05:00
fnord cd1580f56c inventory: purge unused methods, fix invcache load 2013-09-21 05:51:47 -05:00
Rivet-the-Zombie d0e2ec299b Changes rope material to cotton.
For some odd reason rope is currently made of wood.
2013-09-21 05:26:40 -05:00
illi-kun d8d84ce15d changes charges of kompot (from 5 to 12) 2013-09-21 03:04:28 -07:00
GalenEvil b15355cec2 Addition of Functor to encapsulate static and non-static class member JsonObject loading functions
-- May need moving of Functor definitions to new file?
2013-09-21 04:50:05 -05:00
illi-kun 7f6c325c98 Fix jar_kompot 2013-09-21 02:41:53 -07:00
illi-kun ba96ee01e7 Fix kompot components
12 portions of water instead of 5.
2013-09-21 02:34:29 -07:00
illi-kun f5d263f3a8 Cleanup commented out code 2013-09-21 00:20:16 -07:00
fnord 1fd23420a4 CBM water extraction unit provides up to half a corpse's volume, closing loophole ( and obeying law of conservation of mass ) 2013-09-21 01:53:20 -05:00
illi-kun 59fca82af1 Minor type mismatch fixes in game.cpp 2013-09-20 23:47:25 -07:00
Rivet-the-Zombie fa1201a553 Cordless drill. 2013-09-21 01:24:18 -05:00
Ian Strachan 9758d947c7 Remove the vpart_id enum and replace it with a map<string, vpart_info>.
This entire branch was created solely for this commit to be possible.

Also allows the ability to pass strings (without spaces in them) via player_activities.
2013-09-21 02:20:07 -04:00
illi-kun 97508d9af2 Update faction.cpp 2013-09-20 23:14:50 -07:00
illi-kun 1dbf7b6083 float/int mismatch fix 2013-09-20 23:11:43 -07:00
illi-kun 55366b520e float/int mismatch fix 2013-09-20 23:10:19 -07:00
Rivet-the-Zombie 59eed6e8eb Tactical dump pouches - the military version of the fanny pack! 2013-09-21 01:09:43 -05:00
Rivet-the-Zombie 16438f7380 Chef clothes spawns. 2013-09-21 01:03:32 -05:00
Rivet-the-Zombie a93a4bc761 Firearm conversion kits. 2013-09-21 00:56:44 -05:00
Rivet-the-Zombie 9f8af65d42 Gave hazmat suits a few more spawn points.
Seriously, these things should be all over in the aftermath of a zombie
apocalypse.
2013-09-21 00:54:37 -05:00
illi-kun 776a028c4d double/float mismatch fix 2013-09-20 22:54:12 -07:00
Rivet-the-Zombie 5022717145 Gave kevlar patches a few spawn locations as well as adding leather patches to the 'trash' spawn group. 2013-09-21 00:52:38 -05:00
illi-kun 7eb9edd0b4 long input-to-char 2013-09-20 22:52:32 -07:00
Rivet-the-Zombie 5e1919098a Gives spawn data to the extra battery mod TOOL item. 2013-09-21 00:48:44 -05:00
illi-kun 593fc03d52 minor mismatch fixes 2013-09-20 22:48:42 -07:00
Fergus Dall 4fb88622f8 Make wcwidth.c use uint32_t instead of wchar_t 2013-09-21 14:51:00 +09:30
fnord 040bb4e5e0 game::(un)serialize version 9: everything json except killcount/weather/scentmap 2013-09-21 00:02:21 -05:00
fnord 7eabb2f6a9 activate game::unserialize_legacy for v7 (and put in code for load not save >.>) 2013-09-20 23:52:43 -05:00
fnord a0aea9d498 monster::save_info save inventory by default 2013-09-20 23:51:45 -05:00
fnord febafeb8a0 editmap: json-specific string folder folds on ',' 2013-09-20 23:50:47 -05:00
Kevin Granade e683a00d90 Fix json bracketing. 2013-09-20 22:17:34 -05:00
Kevin Granade d13d4d720d Merge a go go. 2013-09-20 21:48:36 -05:00
Kevin Granade 0651a4ead6 Silence a warning. 2013-09-20 21:33:57 -05:00
Kevin Granade 1fe3029df4 Nuke unused defines. 2013-09-20 21:33:42 -05:00
Rivet-the-Zombie 41d94ba4bf USB drive, too. 2013-09-20 21:17:48 -05:00
Rivet-the-Zombie 6b9af06365 Fixing a typo. 2013-09-20 21:07:38 -05:00
Rivet-the-Zombie fd8079a076 Minor uncrafting tweaks. 2013-09-20 21:05:11 -05:00
Rivet-the-Zombie d1c002b79b More uncrafting and some minor reformatting. 2013-09-20 21:03:55 -05:00
Rivet-the-Zombie 7a97dfd1c9 More missing item spawns. 2013-09-20 20:58:18 -05:00
Rivet-the-Zombie 9cb5555ecb More missing spawns and uncrafting 2013-09-20 20:56:13 -05:00
Kevin Granade 2bd0118211 Merge player and overmap jsonification. 2013-09-20 20:53:25 -05:00
Ian Strachan 3e6d5ed3de Fix #3148. 2013-09-20 21:50:36 -04:00
Rivet-the-Zombie 9f05b50f39 Adds more missing item spawns as well as more uncrafting. 2013-09-20 20:49:25 -05:00
Rivet-the-Zombie 202378b48e Adds uncrafting recipes for some electronics and fills in some missing item spawns. 2013-09-20 20:45:02 -05:00
Kevin Granade 8d74790a2e Merge mysterious opened vehicle doors, overmap predicate cleanups, and leather patch volume harmonization. 2013-09-20 20:31:20 -05:00
Rivet-the-Zombie 911a1cda9e Makes methacola into a liquid.
All signs point to it being a liquid, except for the symbol and the
phase.
This changes them to match.
2013-09-20 20:28:35 -05:00
GalenEvil 45043f72ec Altered CBP to include file_finder cpp/h, as well as a Tile support debug release target 2013-09-20 20:21:47 -05:00
GalenEvil 5080642b2b Added some documentation, not sure why the merge-build is failing so didn't try to fix it for now. 2013-09-20 20:20:44 -05:00
Rivet-the-Zombie 62b450deb8 Canned clams, clam chowder recipe. 2013-09-20 19:44:37 -05:00
Rivet-the-Zombie 9f4bb76d62 Cranberry juice, coffee syrup, and Irish coffee, Oh my! 2013-09-20 19:37:45 -05:00
Rivet-the-Zombie 96566ad744 Changed leather patch volume to 1.
Currently rags are volume 1, fur is volume 1, plastic chunks are 1,
scrap metal is 1, kevlar plates are 1, yet leather patches are volume 2.
When you cut a volume 1 fur into leather it becomes a volume 2 object,
so this fixes that and makes leather consistent with the other basic
crafting resources.
2013-09-20 16:40:56 -05:00
cib d2c19459e0 Fixed makefile to define both SDLTILES and TILES for make TILES=1 2013-09-20 23:13:29 +02:00
Rivet-the-Zombie a1bfb5ed59 Reduced volume of both kits to one point. 2013-09-20 15:44:42 -05:00
illi-kun f8a12622c2 Minor update of overmap.cpp
easier bool functions, reduced number of type mismatch warnings
2013-09-20 13:07:10 -07:00
Rivet-the-Zombie 639ac3df20 Added bone needle to sheet recipe. 2013-09-20 13:14:34 -05:00
fnord 65d12e04e0 correct disease catch-up 2013-09-20 06:12:43 -05:00
fnord f7818481ab update to work with more merged changes........... 2013-09-20 05:50:41 -05:00
zfullmer9@hotmail.com 076185abb4 Fixed preprocessor defs in cursesport.cpp 2013-09-20 04:01:58 -06:00
fnord d96f76a9eb make has_disease and rem_disease work as advertised. Fixes cauterize and more 2013-09-20 02:55:05 -05:00
GalenEvil 8e43ef2da8 Removed unused includes and removed the recursive structure of the algorithm. Now it uses a stack to push and pop directories during processing. 2013-09-20 02:24:15 -05:00
zfullmer9@hotmail.com 36b3e6c367 Merged sdlcurse.cpp and sdltiles.cpp 2013-09-20 00:25:17 -06:00
Kevin Granade 63eb0dd47a Merge RPG-7.
Conflicts:
	data/raw/items/ranged.json
2013-09-19 23:02:17 -05:00
Kevin Granade 1501eb5040 Merge RPG-7 ammo.
Conflicts:
	data/raw/items/ammo.json
2013-09-19 22:59:23 -05:00
GalenEvil b633c20ff9 Clean up and remove CTOR, as it is not needed! 2013-09-19 22:58:59 -05:00
Ian Strachan e77d6af167 Random cars will be generated with bloodsplatters on the front. 2013-09-19 23:57:51 -04:00
GalenEvil 07cf3c024e initial commit, works as intended as far as I know. 2013-09-19 22:42:53 -05:00
Ian Strachan 6c31297bbf Make vehicle car doors generate open instead of closed 25% of the time. 2013-09-19 23:26:24 -04:00
Kevin Granade e219320f49 Add -Wno-stuff to silence remaining warnings, and -Werror to cause build failures if any warning types resurface. 2013-09-19 22:12:43 -05:00
Rivet-the-Zombie 508cfeade3 Bone needle fix!
Now it's got the same weight/volume as the standard kit.
2013-09-19 22:05:40 -05:00
Kevin Granade 529a989936 Merge string extraction scripts. 2013-09-19 21:48:56 -05:00
Kevin Granade 967d869367 Restyle new code. 2013-09-19 21:41:11 -05:00
Kevin Granade 9402025f32 Merge several misc cleanups.
Conflicts:
	data/raw/items/tools.json
2013-09-19 21:29:41 -05:00
Tommy 3cbb0a71c7 Update lang/extract_json_strings.py for files moved to data/json. 2013-09-20 14:21:08 +12:00
Kevin Granade ac5c2d8b47 Warning cleanup. 2013-09-19 21:21:04 -05:00
Tommy 34424f28b1 Merge PR #3117 into stringstraction 2013-09-20 14:11:08 +12:00
Kevin Granade e53e232975 Merge car horns.
Conflicts:
	data/raw/vehicle_parts.json
	veh_type.h
2013-09-19 20:44:24 -05:00
Kevin Granade be09b4d207 Merge armored vehicle, chitin butchering, and alliterative naming option.
Conflicts:
	data/raw/item_groups.json
2013-09-19 19:23:28 -05:00
Kevin Granade 8695a575ea Merge conversion of json to internal json module, and new england comestables expansion.
Conflicts:
	data/json/recipes.json
2013-09-19 18:42:11 -05:00
Kevin Granade 0963d0e9de Call cleanup code when exiting normally too. 2013-09-19 18:26:22 -05:00
Ian Strachan 7535d16d34 Rename vpart_list (which will soon no longer be a list) to vehicle_part_types. 2013-09-19 19:19:24 -04:00
Ian Strachan ba9f6a322c Convert sel_vpart_info from an int into a vpart_info pointer.
I will refactor this entire file even if it kills me.
2013-09-19 19:11:04 -04:00
Kevin Granade ed190c3586 Merge some fixes. 2013-09-19 17:44:55 -05:00
Livingstone cca3ab34ea Option for generated name alliteration and a wasteful implementation 2013-09-19 22:46:34 +03:00
illi-kun c9294ba3af Update inventory_ui.cpp 2013-09-19 11:34:47 -07:00
illi-kun 63aec62e07 Pedantic microfix
be consistent!
2013-09-19 11:20:46 -07:00
Ian Strachan 7863ea0914 Make sel_vehicle_part, ptank, and wheel into vehicle_part pointers instead of generic ints. 2013-09-19 13:57:00 -04:00
NaturesWitness 5566c01e1e Finally fixed! Hooray!
I finally got this working.  Turns out the vehicle blueprint was
screwing it up, weird.  Anyway here it is, all ready to go.
2013-09-19 13:24:42 -04:00
rivet-the-zombie d51d60e4dc Rock in a sock fix! 2013-09-19 11:29:56 -05:00
Kevin Granade 3e999261ce Fix merge error causing bees to kill game instead of player. 2013-09-19 08:26:52 -05:00
Steven Wu 54b92d2510 Merge branch 'master' into martial_arts
Conflicts:
	item.cpp
	itype.h
	melee.cpp
	pldata.h
2013-09-19 03:40:49 -07:00
Vlasov Vitaly 690dad8ece Fix json extractor. This is affect only skill.json file. 2013-09-19 14:30:42 +04:00
Vlasov Vitaly ea23788124 fix commas in description. Now parser is happy. 2013-09-19 14:28:25 +04:00
fnord 07a31aaf12 ui: Fix inexplicable reversal of default behavior made by game-wide automated code mangling... 2013-09-19 01:18:16 -05:00
Ian Strachan b57deb756d Correction to activity values size check. 2013-09-19 00:58:18 -04:00
Ian Strachan 8fdf51b852 Remove an unused local variable. 2013-09-19 00:56:49 -04:00
Ian Strachan 020e059779 Split the sel_part variable into two variables.
Because one generic int variable should not have different meanings depending on where it is used!
2013-09-19 00:47:57 -04:00
illi-kun c9262b1fda Double/int mismatches fixed in disease.cpp 2013-09-18 21:47:14 -07:00
illi-kun 7bcddf5894 Double/int mismatches fixed in bionics.cpp
Just for reduce number of warnings
2013-09-18 21:22:15 -07:00
Tommy a5cdb59574 Merge branch 'master' into json_mut
Conflicts:
	crafting.cpp
2013-09-19 16:12:00 +12:00
Kevin Granade 048f503ec3 Merge latest russian translations, Hoder tileset, and C::B project file fix. 2013-09-18 23:04:05 -05:00
Kevin Granade 39f8955f1d Merge gigantic warning fix patchset.
Conflicts:
	item.cpp
	pldata.h
2013-09-18 22:59:45 -05:00
NaturesWitness 2932d21521 Make parts face right directions
When I finally got this to display in-game (by pasting it into another
vehicle's slot, Cata refuses to let me add a new vehicle entry), this
looked like Vincent Van Goh designed it. D'oh.  Anyway, now everything
faces the right way.  Also changed the single third-row seat to an
aisle, because I felt bad for the poor soldier who got wedged in the
tiny space in back; also now someone in the vehicle could more easily
walk back to get gear out of the trunks or reload the rear turret.
2013-09-18 21:44:44 -04:00
AnderHammer 884c2bcd56 bottle-eating stills firmly chastised. 2013-09-18 19:59:07 -05:00
NaturesWitness 1fb63b5e7f added armored car to mapgen.cpp 2013-09-18 20:03:25 -04:00
Kevin Granade 22bea2fb2f Make impact damage fall off based on distance from the epicenter of the vehicle collision. 2013-09-18 18:36:46 -05:00
Kevin Granade 90bb61d0ed Restyle vehmove and vehproceed. 2013-09-18 18:36:46 -05:00
NaturesWitness a248670163 Add missing files to C::B project
Thanks to kevingranade for spotting this so I can compile again.  Saw
nobody had pulled a fix for this yet so thought I might as well do it.
2013-09-18 19:19:41 -04:00
Steven Wu 7524245e81 electroshock/heat drain bionics now properly display text again 2013-09-18 11:05:33 -07:00
Ian Strachan 057c743540 Move definition of jack to tools.json. 2013-09-18 13:58:07 -04:00
Steven Wu 44c2e7d3de moved burstfire mode text to not overlap with hunger text 2013-09-18 10:44:26 -07:00
Steven Wu 47dde3c5d0 new character creation now properly gives capoeira and not taekwondo 2013-09-18 10:10:03 -07:00
Steven Wu 6413b26edf added more weapon techniques 2013-09-18 09:31:12 -07:00
Steven Wu eff6a7fd32 Merge branch 'master' into martial_arts
Conflicts:
	game.h
	monmove.cpp
	player.cpp
	pldata.h

Also added martial arts/techniques json data + character creation
2013-09-18 09:08:23 -07:00
Tommy 91edc7e162 Merge branch 'master' into json_mut 2013-09-19 03:37:12 +12:00
Steven Wu bf4ff1e991 more ma-related changes 2013-09-18 06:43:06 -07:00
Fergus Dall f06cb49e57 Prevent game::update_zombie_pos from being called when moving monsters between levels
Fixes #3102
2013-09-18 23:05:56 +09:30
Christian Buskirk 928978ebba Make chitin function the same as fur/leather 2013-09-18 01:05:32 -07:00
Ian Strachan 4e05894f91 Expand some abbreviations. 2013-09-18 02:25:00 -04:00
Christian Buskirk 71057d03eb Fix glass jar container size.
1->2
2013-09-17 22:37:38 -07:00
Christian Buskirk 9e5236eb7b Merge Small fixes 2013-09-17 22:34:47 -07:00
Tommy 49bd9d48e7 Merge PR #3096 into json_mut.
Conflicts:
	data/json/recipes.json
2013-09-18 17:06:16 +12:00
Ian Strachan 440bb707bd Remove commented-out code. 2013-09-18 00:36:36 -04:00
Ian Strachan 551b9d3632 Brace ALL the blocks! 2013-09-18 00:26:37 -04:00
Ian Strachan 452d51f45b Treat a bool like a bool, not an int. 2013-09-18 00:09:55 -04:00
Ian Strachan fbbf0eed47 These variables are unused. 2013-09-18 00:04:12 -04:00
Ian Strachan c65da14706 Reconnaisance. 2013-09-17 23:58:54 -04:00
rivet-the-zombie cb365d21a3 Fruit leather recipe tweak. 2013-09-17 21:54:26 -05:00
rivet-the-zombie b532ee7abb Final touches. 2013-09-17 21:22:54 -05:00
rivet-the-zombie 7feffc9467 Recipe touchup. 2013-09-17 21:20:05 -05:00
rivet-the-zombie d4ddd0447e Fruit leather! 2013-09-17 21:16:55 -05:00
rivet-the-zombie ea3fcd3e20 Bacon bag, 2013-09-17 21:11:14 -05:00
zfullmer9@hotmail.com c55767203a Added large truck horns and updated item lists 2013-09-17 19:39:40 -06:00
Kevin Granade d66962b61b Remove action cancellation from drug cravings. 2013-09-17 20:09:25 -05:00
rivet-the-zombie dcb4817b28 Grill recipe reversal! 2013-09-17 19:46:06 -05:00
rivet-the-zombie 5c58c8e51d Clam chowder. 2013-09-17 19:35:40 -05:00
rivet-the-zombie b9769d83e3 Baaaaaaaaaaaaaaacon! 2013-09-17 19:27:35 -05:00
rivet-the-zombie 2757fe3ba4 Autolearn fixes. 2013-09-17 19:15:41 -05:00
rivet-the-zombie 3a35a02122 Editing and cleanup. 2013-09-17 18:59:19 -05:00
rivet-the-zombie 6aa9442830 Powdered eggs and scrambled eggs! 2013-09-17 18:56:26 -05:00
rivet-the-zombie 451205c5a3 Canned salmon and herring and black pepper! 2013-09-17 18:40:10 -05:00
Kevin Granade d337c3d986 Merge critical bugfixes. 2013-09-17 18:26:33 -05:00
rivet-the-zombie 1e3a11a3bd Cookies and their recipe. 2013-09-17 17:46:47 -05:00
rivet-the-zombie 28a54b75f7 More recipe fixes. 2013-09-17 17:35:59 -05:00
rivet-the-zombie 92b346d6f5 Recipes pass. 2013-09-17 17:24:55 -05:00
rivet-the-zombie f869fe3f58 Sausages and seasoned salt. 2013-09-17 17:21:57 -05:00
rivet-the-zombie d1ea57cc6b Oatmeal and various recipes which pertain to its consumption. Also cornbread. 2013-09-17 17:03:21 -05:00
rivet-the-zombie c6e9c16056 Minor adjustments. 2013-09-17 16:40:00 -05:00
rivet-the-zombie 817e8d3f11 Fruit pancakes! 2013-09-17 16:35:30 -05:00
rivet-the-zombie 223528455c Pancakes! 2013-09-17 16:31:07 -05:00
rivet-the-zombie 99dc31d6e5 Maple syrup! 2013-09-17 16:26:37 -05:00
rivet-the-zombie 640e8590dc Cooking oil, cornmeal, and johnnycakes, oh my! 2013-09-17 16:25:59 -05:00
rivet-the-zombie 78d451fa9f Crackers! 2013-09-17 16:08:52 -05:00
rivet-the-zombie a7ce0c2395 Smoked meat recipes! 2013-09-17 15:57:16 -05:00
rivet-the-zombie e21c9a3e1f Smoked meat first pass. 2013-09-17 15:48:32 -05:00
rivet-the-zombie 90e8c98822 Charcoal smoker!
A semi-efficient way of cooking food.
2013-09-17 15:40:47 -05:00
Peter Lacey-Bordeaux 0605de6997 hotfix for gunmods that can shoot 2013-09-17 16:31:38 -04:00
rivet-the-zombie e3b7f4fddf Hardtack and biscuits! 2013-09-17 15:15:56 -05:00
rivet-the-zombie 6fcf43d06b Condensed milk! 2013-09-17 14:55:01 -05:00
Ian Strachan c9baed3300 Add missing space on fully modded gun message. 2013-09-17 13:40:53 -04:00
Vlasov Vitaly 67897747c8 Update of Russian Translation from launchpad.net 2013-09-17 21:37:03 +04:00
Ian Strachan 9d55036b25 Look at the portions, now back to me. The portions are now 12. 2013-09-17 13:21:24 -04:00
fnord c056d97ee1 vehicle::(save|load)_json: use vpart_info.id, not enum.
init_vparts: generate reverse lookup map (likely temporary)
2013-09-17 12:03:41 -05:00
NaturesWitness 0747a3c017 Armored car .json style
The armored car, in all it's json-y glory!
2013-09-17 12:56:31 -04:00
fnord 8065ca1458 Purge old stringstream class save methods 2013-09-17 10:45:18 -05:00
SirHoder f0405aeef1 Updating live tileset to version .012 2013-09-17 08:43:40 -07:00
fnord 807437c152 Fix mass vpart enum shift from reenforced windshield 2013-09-17 09:24:21 -05:00
fnord 1e598a9992 Merge remote branch 'origin/master' into save_sanity_2-the_reckoning 2013-09-17 07:54:45 -05:00
Tommy b4115e12de Better access protection for JsonArray. 2013-09-18 00:23:17 +12:00
Tommy 17c48ffbbf Dynamic loading for recipes.json. 2013-09-18 00:22:46 +12:00
Christian Buskirk fab539292f Destroyed limbs can't be infected. 2013-09-17 03:33:08 -07:00
Christian Buskirk 4c6ed9f0b9 Allow add_disease to redirect onto nearby main part 2013-09-17 03:30:14 -07:00
Christian Buskirk e2ce76cb04 Made multiple bites not decrease their effects 2013-09-17 03:15:26 -07:00
fnord a5e371f0e7 Elaborate comments, reserve spots for overmap / mapbuffer deserializers and .sav format
which I'll break when the rest of it is jsonized
2013-09-17 04:28:05 -05:00
Christian Buskirk 1f0d5b0319 Remove unused break's that were making Cygwin mad 2013-09-17 02:10:56 -07:00
Christian Buskirk a1f059abc0 Update memorial messages 2013-09-17 02:03:45 -07:00
Tommy 0a0d1ccc46 Dynamic loading for item_groups.json. 2013-09-17 20:56:04 +12:00
Christian Buskirk cc625eac0c Add disease names and fix recovery messages 2013-09-17 01:54:15 -07:00
Christian Buskirk 516e317034 Update bite/infection disease effects 2013-09-17 01:02:17 -07:00
Tommy d76e4f1a46 Add has_member method to JsonObject. 2013-09-17 19:10:45 +12:00
Tommy 96bd7d8fd9 Convert snippets.json to dynamic loading. 2013-09-17 19:10:29 +12:00
zfullmer9@hotmail.com a401d21d46 Added framework for vehicle horns 2013-09-16 23:30:53 -06:00
rivet-the-zombie 8cbceada88 Typo fix for medieval helmet. 2013-09-16 23:03:23 -05:00
Ian Strachan eda3969b6f Remove survival requirement from bows and arrows. Addresses #3060. 2013-09-16 23:49:02 -04:00
Tommy d1f3242358 Merge branch 'master' into json_mut
Conflicts:
	data/json/mutations.json
2013-09-17 15:28:56 +12:00
Ian Strachan 130955e8e9 Make 3L jar hold 6 instead of 5 portions. Fixes #3074. 2013-09-16 23:15:20 -04:00
Kevin Granade 3306526b0c Revert unintended indentation change in armor.json. 2013-09-16 22:03:13 -05:00
Kevin Granade f7b682a4d8 Merge replacing cross-dresser with fancy, and osx make fix. 2013-09-16 22:02:56 -05:00
Tommy 4146917d58 Fix trait.visiblity ~> trait.visibility even if nothing uses it. 2013-09-17 14:57:56 +12:00
Tommy 4df292837a Change dream.message ~> dream.messages as it's a vector. 2013-09-17 14:52:32 +12:00
Peter Lacey-Bordeaux 7aaaf7ca88 made clang stop complaining about auto_pickup ui stuff 2013-09-16 22:38:35 -04:00
Tommy 5af612915d Convert mutations.json to dynamic loading. 2013-09-17 14:36:06 +12:00
Peter Lacey-Bordeaux 6eebc6a306 more changes in game.cpp 2013-09-16 21:59:57 -04:00
Kevin Granade 59103d9ef4 Merge sunglasses CBM.
Conflicts:
	data/raw/bionics.json
2013-09-16 20:56:13 -05:00
Kevin Granade 4dd4c42a58 Merge content backlog from release.
Conflicts:
	data/raw/professions.json
2013-09-16 20:48:33 -05:00
Tommy 2567630c84 Add a stub to init.cpp for initializing data structures if needed. 2013-09-17 13:18:15 +12:00
Tommy 5a228ba0eb Violate style guidelines for readability. 2013-09-17 13:11:09 +12:00
Tommy 5844f2e49b Convert dreams.json to JsonObject loading (and restyle). 2013-09-17 13:03:43 +12:00
Christian Buskirk f18e13ec27 Update makefile for OSX 2013-09-16 17:48:25 -07:00
Tommy 166ea890dd Move files loaded by init.cpp to new directory "data/json". 2013-09-17 12:45:45 +12:00
Kevin Granade 64688ae66f Merge bodypart-specific conditions.
Conflicts:
	monmove.cpp
2013-09-16 19:11:05 -05:00
Tommy 822a2fbbd6 JsonIn: change stream->beg to std::istream::beg for explicitness. 2013-09-17 11:53:20 +12:00
Kevin Granade 865e59290b Merge remote-tracking branch 'dda/pr/2874' into dda-master 2013-09-16 18:42:35 -05:00
Rivet-the-Zombie 954c6fe0dc Added log to charcoal recipe.
It's inefficient as all heck, but flexibility is what the charcoal forge
system is all about.
2013-09-16 18:39:28 -05:00
Tommy 3c2af05ed6 JsonIn: use peek() in stead of stream->peek() for simplicity. 2013-09-17 11:38:42 +12:00
Tommy 4e1c2d8be6 Better JsonIn error messages when EOF reached prematurely. 2013-09-17 11:32:27 +12:00
Kevin Granade 442c51d302 Merge options cleanup and CBM fix. 2013-09-16 18:30:34 -05:00
Kevin Granade e30befc3ed Merge charge rifle rework.
Conflicts:
	player.cpp
	ranged.cpp
2013-09-16 18:25:49 -05:00
Tommy 1bd4ee12a2 Fix JsonIn::line_number to work correctly on all platforms. 2013-09-17 10:31:27 +12:00
Peter Lacey-Bordeaux 230de6036f removed unused variables 2013-09-16 16:38:46 -04:00
Peter Lacey-Bordeaux 784373a597 selectivily ran astyle through item.cpp, sorry to the haters, it was really annoying for it to be so mixed 2013-09-16 16:37:05 -04:00
Peter Lacey-Bordeaux 0b377672f9 removed unused assignment 2013-09-16 16:19:16 -04:00
Peter Lacey-Bordeaux 759858a290 changed [vector.size() - 1] to .back 2013-09-16 16:17:51 -04:00
Peter Lacey-Bordeaux 285b89048c small logic change 2013-09-16 16:11:08 -04:00
Peter Lacey-Bordeaux f8eef1e46b sensible default value 2013-09-16 16:05:03 -04:00
Peter Lacey-Bordeaux c188bf0014 small code clean ups 2013-09-16 15:30:12 -04:00
Peter Lacey-Bordeaux 31b1b88136 Merge branch 'master' into static-analysis 2013-09-16 15:25:00 -04:00
Tommy 50d6f16dcf Merge branch 'master' into json
Conflicts:
	data/raw/skills.json
	game.cpp
2013-09-16 22:37:22 +12:00
Tommy f02ef9bd48 Apply illi-kun's spelling fix to the refactored skills.json. 2013-09-16 22:34:43 +12:00
fnord 2ace39a9e4 actually add required header 2013-09-16 03:38:54 -05:00
Izicata 6ea64f9abd Increase Cougar Hitpoints
Cougars always seem to die way too quickly, so I increased their HP to 40 from 15. I think they should have more health than a domestic dog, don't you?
2013-09-16 03:30:21 -04:00
fnord c5d8c56019 savegame_json: trailing space cleanup, added /* code for pr #2911 */ 2013-09-16 02:26:08 -05:00
fnord 5d8311e418 Sync version # 2013-09-16 02:25:55 -05:00
fnord feb5738ed9 Revert temporary commenting out of item save test 2013-09-16 02:09:09 -05:00
fnord e1d68c0349 Temporary comment 2013-09-16 01:59:17 -05:00
fnord e813be9e4a player::json_load: carp about non-existent bionics.id and discard. 2013-09-16 01:59:17 -05:00
fnord 757de86c1a Fixed typo causing 'p' segv 2013-09-16 01:59:16 -05:00
fnord e0f01b73ae editmap: cleanup, vehicle edit, item adding 2013-09-16 01:59:16 -05:00
fnord f7d32eb6db Catamobile(tm): Built JSON though. (jsonized save/load) 2013-09-16 01:59:14 -05:00
fnord c358d67b0e editmap: hitting 'm' over monster or npc, or selecting savetest in edit item will pull up a
json dumper / reloader / editor / tester
2013-09-16 01:59:13 -05:00
fnord 75d0a14c1b Temporary #defines for testing which controls what is jsonized on save 2013-09-16 01:59:13 -05:00
fnord c37846894b player, npc, skill, npc_* and pldata structs/classes: json_save, json_load.
Declared in class files, defined in savegame_json.cpp for easier tracking
2013-09-16 01:59:12 -05:00
fnord 736a121e7a inventory: json save/load items, invcache 2013-09-16 01:59:12 -05:00
fnord 687fa84630 monster: save/ load inventory, additional json_load(data, game) method to
match item/player/npc
2013-09-16 01:59:12 -05:00
fnord a21e2aa66d item jsonsave/load: contents, syntax adjust 2013-09-16 01:59:11 -05:00
fnord a210665f60 extra save/load helper functions 2013-09-16 01:59:11 -05:00
fnord 45babf5e9b savegame_legacy: initial stub functions for deprecated format loaders 2013-09-16 01:59:10 -05:00
fnord 1a4fb4849d versioning and support for attempting an alternate loader. Split load into load and unserialize 2013-09-16 01:59:10 -05:00
fnord 38c04841b0 mapbuffer: versioning and support for attempting an alternate loader. Split load into load and serialize 2013-09-16 01:59:10 -05:00
fnord 6ba9bd4d18 cleanup 2013-09-16 01:59:09 -05:00
fnord c4497fbb7d Remove test 2013-09-16 01:59:09 -05:00
fnord b28aea39ec overmap: split open into open/unserialize/unserialize_legacy
mapbuffer: add load_legacy
2013-09-16 01:59:08 -05:00
fnord 28da8a75c8 Split off code for loading old formats into game::unserialize_legacy, located in savegame_legacy.cpp 2013-09-16 01:59:08 -05:00
fnord 7157b5d503 Revert "Add version headers to submap buffer and overmaps. Bump version to 5 for 0.8"
This reverts commit fac3f16f29.
2013-09-16 01:58:08 -05:00
fnord 655c72ccf3 Merge, and compensate for definition of itype.volume that is completely geschtonkenflapped:
Merge item::volume precision and unit arguments with
 item-with-charges-volume-scale-defined-by-max-charges-which-is-named-stack-size
behavior. precise_value now returns multiple of 1000, since the current maximum item::max_charges() / stack_size(.json)
is 200.
2013-09-16 01:35:47 -05:00
Ian Strachan 5a75ae3876 Make the reinforced glass item color match the vehicle part color. 2013-09-16 01:50:22 -04:00
Ian Strachan 208e0e8f52 New vehicle part: reinforced glass. 2013-09-16 01:47:40 -04:00
Fergus Dall 23b8bf5272 Prevent CBM Probability Travel from activating if the player has less than 10 power
Fixes #3056
2013-09-16 13:44:20 +09:30
Tommy d47399762a Use binary mode for ifstream (thanks Galen). 2013-09-16 15:33:11 +12:00
GlyphGryph de786dd13a Removed crossdresser trait, added stylish trait
Clothes can now be FANCY or SUPER_FANCY and can no longer be MALE or FEMALE typed.
2013-09-15 22:37:23 -04:00
Tommy 29ba1945ca Remove unnecessary "throw (std::string)". 2013-09-16 14:24:02 +12:00
Rivet-the-Zombie 4651671071 Adds the option to use rebar to produce steel chunks. 2013-09-15 20:23:08 -05:00
Ian Strachan f23295495d Give first aid a stack size of 6. 2013-09-15 21:09:42 -04:00
NaturesWitness bd4ad142ac Louieville Slaughterer and more bugfixes
Per the suggestion in #2704, I give you the Louieville Slaughterer.
Essentially a bigger, beefier, and in general more
suitable-for-clubbing-things version of the torch.  Also added
heatblades to the use_fire entry in player.cpp as it looks like they
belong there
2013-09-15 21:01:18 -04:00
Rivet-the-Zombie 0fbb3def9d Adds option to use kevlar plates when making survivor suits.
Since they're 90% scrap anyways, why not add the option to use scrap
armor bits too?
2013-09-15 18:48:48 -05:00
NaturesWitness 4daa689ecb Spelling fixes for flammenschwert
Fixes spelling for flammenschwert, also adds item descriptions (thanks
KA101 and OzoneH3)
2013-09-15 19:29:27 -04:00
Peter Lacey-Bordeaux 9415654234 small style changes to editmap.h 2013-09-15 15:29:55 -04:00
Peter Lacey-Bordeaux 42ce71322d small style changes in disease 2013-09-15 15:21:04 -04:00
Peter Lacey-Bordeaux 0a99a7f0cc small variable scope change, removed commented out code 2013-09-15 15:14:36 -04:00
Peter Lacey-Bordeaux 982d41dd48 removing unused variables 2013-09-15 15:11:05 -04:00
fnord f22bfd5afe No point in asking if you can't pickup a single charge. 2013-09-15 07:11:14 -05:00
fnord 3b542c6492 advanced_inventory: choose amount of charges on pickup. item.charges(): 2 optional arguments for output precision. 2013-09-15 07:04:03 -05:00
fnord 74d387b001 Merge remote branch 'origin/master' into coordinate_sanity
Conflicts:
	game.cpp
2013-09-15 03:29:57 -05:00
Tommy d9bf749484 Use tell() in stead of stream->tellg() for JsonIn, while i'm at it. 2013-09-15 20:13:22 +12:00
Tommy 56c563de07 Explicitly seek from the beginning of a JsonIn stream. 2013-09-15 20:10:50 +12:00
Rivet-the-Zombie 80135ecdea Towel Recipe! 2013-09-15 01:24:19 -05:00
Rivet-the-Zombie 93ab8a63f6 Fix'd 2013-09-15 01:23:40 -05:00
Rivet-the-Zombie 4fa42a16f9 Merge branch 'master' of https://github.com/CleverRaven/Cataclysm-DDA 2013-09-15 01:22:56 -05:00
Rivet-the-Zombie a981350a71 Merge branch 'master' of https://github.com/CleverRaven/Cataclysm-DDA 2013-09-15 01:18:38 -05:00
Rivet-the-Zombie 7b6afdb696 Towel recipe! 2013-09-15 01:15:19 -05:00
Christian Buskirk 4641d49d95 Add flashbang visual 2013-09-14 22:03:58 -07:00
Christian Buskirk c81cf9eafd Add CBM: Transition lenses spawn groups 2013-09-14 22:03:48 -07:00
Christian Buskirk c1ae3ecf8b Add some safety logic and restyle code 2013-09-14 21:52:55 -07:00
Christian Buskirk 1c82c0fffe Add CBM: Transition Lenses
Also remove "cost" of a bionic that was actually free
2013-09-14 21:52:35 -07:00
NaturesWitness 1e1f926a2f Add heatblade menu to lit torch (fixes #2857)
I know the torch isn't a heatblade, but the menu is the same and it's a
tiny fix anyway so I thought I'd stick it here.  Also set charges per
use on torch to 0 so it didn't screw up the iuse menu, the torch losing
a charge from being extinguished was already covered in the iuse entry
and was essentially double-billing people.
2013-09-14 19:47:48 -04:00
Peter Lacey-Bordeaux a636174d88 small overmap style fixes 2013-09-14 19:38:32 -04:00
Tommy f6977e889e Rename Jsobj, Jsarr, Jsin to JsonObject, JsonArray, JsonIn. 2013-09-15 11:30:53 +12:00
Peter Lacey-Bordeaux 1f4fc9b769 more style/constructor stuff 2013-09-14 19:24:57 -04:00
illi-kun 459b72a444 Update options.cpp
2 fixes:
1) questions 'use metric something' expect answers yes or no, so that's the reason of changes.
2) Options with excessive Capitalization are updated.
2013-09-14 16:20:21 -07:00
Peter Lacey-Bordeaux 590f6c2a7f some style changes 2013-09-14 19:09:36 -04:00
Peter Lacey-Bordeaux df7592088f more constructor work 2013-09-14 19:05:32 -04:00
NaturesWitness d6826a11d8 Added feature (heatblades are fire source when turned on)
Finally got around to fixing a lingering bug.  When switched on,
heatblades can be used for any task that requires a source of flame
(lighting a cigar, pipebomb fuse, etc.), and consumes no additional fuel
in doing so (the thing is already glowing hot, and using fuel
constantly).
2013-09-14 18:59:14 -04:00
Peter Lacey-Bordeaux fd24946449 small constructor changes 2013-09-14 18:56:24 -04:00
NaturesWitness 45711a61f9 Flammenschwert (Zweihander heatblade)
Adds the flammenschwert (flame bladed sword)  Item descriptions are
placeholders until I think of better ones, and the menu text is in
german, as translated by babelfish.  If there's anyone out there who
actually reads german, I would really appreciate it if someone
double-checked the spelling, as I'd prefer to avoid any chinglish-esque
"Beware sharp turn where lurks the skid demon" type screwups.
2013-09-14 17:54:51 -04:00
Peter Lacey-Bordeaux 91691284c6 removed an unused variable 2013-09-14 16:38:41 -04:00
Peter Lacey-Bordeaux 13a478aa1b merged with latest changes 2013-09-14 16:17:15 -04:00
Ian Strachan 9e76a6df96 Lemonade spawns with AJ and OJ. 2013-09-14 13:01:51 -04:00
Ian Strachan b349ee53ec Added lemonade. 2013-09-14 12:59:37 -04:00
fnord 983004ee27 despawn_monsters: correct inaccuracies at negative coordinates via
real_coordinates: refactored to return correct subdivisions for any coordinate, when provided absolute coordinate
map: provide absolute xy for map xy, via point getabs(mx, my).
map: Provide local xy for absolute with point getlocal(ax, ay)
map: Provide local and absolute inbound checks via bool inbounds(mx, my) and bool inboundsabs(ax, ay)
map: record submap x,y,z for grid[0] in 'abs_sub' and 'worldz' via set_abs_sub() on load/shift
overmap: show overmap and overmap point coordinates of cursor
2013-09-14 10:54:53 -05:00
Tommy 6ce1a59544 Implement static access for JSON arrays. 2013-09-14 15:11:49 +12:00
Tommy 905869823f Make some variable names more consistent. 2013-09-14 15:01:22 +12:00
Tommy 9a9a4f52bf Update json.cpp documentation. 2013-09-14 14:15:31 +12:00
Tommy e69d6dda2c Choke on unrecognized JSON objects, and give slightly better errors. 2013-09-13 23:26:00 +12:00
Tommy 211bef5dbf Improve line offset accuracy for JSON debugging. 2013-09-13 22:53:18 +12:00
Ian Strachan 68a1d3b0bc Add golf clubs and footballs to spawn lists. 2013-09-12 23:11:35 -04:00
Ian Strachan 841657321a Added golfers. 2013-09-12 23:07:57 -04:00
Ian Strachan a0e2be14a7 Added cleats and a Football Player profession. 2013-09-12 23:05:25 -04:00
Tommy d3130f5416 Restore old dout() initial-newline behaviour. 2013-09-13 14:45:46 +12:00
Tommy 75059219a7 Purge some more dout() and retore some to debugmsg(). 2013-09-13 14:42:41 +12:00
Tommy 869a2667a8 Warn on unrecognised JSON object type. 2013-09-13 14:42:06 +12:00
Tommy 6569960212 Purge dout() from json.cpp. Throw exceptions in stead. 2013-09-13 14:30:00 +12:00
Ian Strachan 0afbef41ba Pucks can now be used as hammers; footballs and baseballs can be taken apart. 2013-09-12 22:23:00 -04:00
Ian Strachan 9f6f27f4d1 Added footballs. (The american kind) 2013-09-12 22:15:50 -04:00
Ian Strachan 78dc32e028 Nerf baseball+puck damage, buff to-hit. 2013-09-12 22:08:26 -04:00
Ian Strachan 0bd073bb35 Based hockey puck weight off of rubber pucks, not steel ones.
(Whoops.)
2013-09-12 18:33:43 -04:00
Ian Strachan 93e2337a14 Add baseballs+pucks to spawn lists. 2013-09-12 14:11:33 -04:00
Ian Strachan 81d33b35c8 Added baseballs and hockey pucks. 2013-09-12 14:07:04 -04:00
Ian Strachan eb58efe3ff Add a baseball player profession. 2013-09-12 13:50:30 -04:00
Ian Strachan d28e8fe64a Add a hockey player profession. 2013-09-12 13:46:53 -04:00
Tommy 79a9dbd5e5 Convert skills.json to Jsobj loading. 2013-09-11 22:26:34 +12:00
Steven Wu 2ceb336ee3 Merge branch 'master' into martial_arts
Conflicts:
	itype.h
2013-09-11 02:09:14 -07:00
Tommy cf3f52d09f Update JSON_INFO.md for changed bionics.json format. 2013-09-11 20:59:49 +12:00
Tommy 95349ef191 Add type to otaku profession. 2013-09-11 19:50:26 +12:00
Tommy 61a86b492d Determine and print line number and offset for JSON errors. 2013-09-11 19:49:00 +12:00
Steven Wu 2ed7258efb non-flaming offensive techniques work 2013-09-10 23:40:33 -07:00
Tommy 31af7b6bca Merge branch 'master' into json
Conflicts:
	data/raw/bionics.json
	game.cpp
	newcharacter.cpp
2013-09-11 16:11:38 +12:00
Tommy 6bc3f71b2f Add Jsobj and Jsarr classes, and use those to load data from Jsin. 2013-09-11 14:22:09 +12:00
Tommy dc3d0ebfe0 Remove initial newline from dout(), calls must now provide their own. 2013-09-11 14:02:40 +12:00
Peter Lacey-Bordeaux 3172a4a56f reduced scope, simplified if statement 2013-09-10 16:02:01 -04:00
Peter Lacey-Bordeaux e9be741086 small parenthsis opps 2013-09-10 16:01:24 -04:00
Peter Lacey-Bordeaux 13ed1a9bd7 mostly constructor optimizations 2013-09-10 16:00:08 -04:00
Peter Lacey-Bordeaux 16c1419b36 small fixes in vehicle 2013-09-09 16:19:33 -04:00
Peter Lacey-Bordeaux c37f2938c4 removed needless variables in melee 2013-09-09 14:38:31 -04:00
Peter Lacey-Bordeaux df0b6d4d9e possible speed-ups and memory leak fixes 2013-09-09 14:30:02 -04:00
Peter Lacey-Bordeaux d8a04d025e small computer fixes 2013-09-09 14:26:21 -04:00
Peter Lacey-Bordeaux 300ce179ff small improvments to game.cpp 2013-09-09 14:16:32 -04:00
Peter Lacey-Bordeaux 5b2f0f44c5 small improvments to item.cpp 2013-09-09 14:11:58 -04:00
Peter Lacey-Bordeaux f004dafbfe fixed small bug, pre instead of post 2013-09-09 13:54:48 -04:00
Peter Lacey-Bordeaux 7667aebf62 might have fixed inventory invet cache bug, could lead to a memory leak though... 2013-09-09 13:50:42 -04:00
Peter Lacey-Bordeaux c1c28974ee small variable clean-ups 2013-09-09 13:31:26 -04:00
Peter Lacey-Bordeaux a54a49f753 various changes to game.cpp, still needs lots of work 2013-09-09 13:29:46 -04:00
Peter Lacey-Bordeaux 904cdd5a36 small changes to field 2013-09-09 13:16:01 -04:00
Peter Lacey-Bordeaux e13926e051 moved and removed some variables 2013-09-09 13:12:00 -04:00
Peter Lacey-Bordeaux ddeb6fefd3 now tripping NPC's talk about it, also use empty instead of size 2013-09-09 13:07:56 -04:00
Peter Lacey-Bordeaux 6635370d82 small fixes in defense, ! doesn't save 2013-09-09 13:04:16 -04:00
Peter Lacey-Bordeaux 3587c0982f refactored some small logic, changed size to empty 2013-09-09 12:58:42 -04:00
Peter Lacey-Bordeaux bfd3e56e49 added player::pos which returns a point 2013-09-09 12:54:03 -04:00
Peter Lacey-Bordeaux d57f4596c3 removed unused variables. init_construction should really be jsonified 2013-09-09 12:38:33 -04:00
Peter Lacey-Bordeaux 7ff8638b1d unused variable and USE EMPTY() 2013-09-09 12:35:06 -04:00
Peter Lacey-Bordeaux 969fd973c7 removed unused variable 2013-09-09 12:34:06 -04:00
Peter Lacey-Bordeaux 21b0808c10 various clean ups of bionics.cpp 2013-09-09 12:31:57 -04:00
Peter Lacey-Bordeaux 560e5852b2 removed two unused variables 2013-09-09 12:15:22 -04:00
Peter Lacey-Bordeaux 098cd4c013 removed unused variable 2013-09-09 12:14:40 -04:00
Peter Lacey-Bordeaux e0fced0693 removed unused err in picojson 2013-09-09 12:13:21 -04:00
Peter Lacey-Bordeaux d6c3935b80 use prefix instead of postfix for non primatives 2013-09-09 12:09:18 -04:00
Peter Lacey-Bordeaux f9a239fa77 use empty 2013-09-09 12:08:09 -04:00
Peter Lacey-Bordeaux fcd5d3a651 fixed some complains in cata_tiles 2013-09-09 12:06:01 -04:00
Steven Wu a23207e40b stopping point, still doing techniques 2013-09-09 03:27:58 -07:00
Peter Lacey-Bordeaux e2c189a558 fixed some comiple errors 2013-09-09 02:18:41 -04:00
Peter Lacey-Bordeaux 59f066c3f5 some improvements to player, will need plenty more 2013-09-09 02:16:11 -04:00
Peter Lacey-Bordeaux 69b78c5e28 dropped var, .empty, prefix instead of postfix 2013-09-09 02:05:53 -04:00
Peter Lacey-Bordeaux 6ec37de330 use empty over size 2013-09-09 02:03:02 -04:00
Peter Lacey-Bordeaux cca1c4779c prefer empty over size < 1 2013-09-09 02:01:46 -04:00
Peter Lacey-Bordeaux 677b49ff8e fixed C-style pointer casting 2013-09-09 01:59:50 -04:00
Peter Lacey-Bordeaux 443488a1fa removed unused variable 2013-09-09 01:54:43 -04:00
Peter Lacey-Bordeaux c02769d654 prefer .empty() over size() < 1 2013-09-09 01:51:56 -04:00
Peter Lacey-Bordeaux 704cc8f0ba prefer prefix to postfix for interators 2013-09-09 01:48:30 -04:00
Peter Lacey-Bordeaux 40fbd2c9a8 put strings in the initalization list instead of constructor 2013-09-09 01:46:54 -04:00
Peter Lacey-Bordeaux d5e6e83d66 styled up map::shift 2013-09-09 01:44:11 -04:00
Peter Lacey-Bordeaux 90490429fe removed non-functional code 2013-09-09 01:38:35 -04:00
Peter Lacey-Bordeaux 1c46170a40 simplified some code, not sure what the meaning of it was, but it was non-functional. anyone know? 2013-09-09 01:34:11 -04:00
Peter Lacey-Bordeaux 17b6ead4cc simplified exit_handler 2013-09-09 01:32:49 -04:00
Peter Lacey-Bordeaux b9bcf5fd43 don't need to pass string_format c strings 2013-09-09 01:26:02 -04:00
Peter Lacey-Bordeaux 8296dc7a5a setting more defaults in constructors 2013-09-09 01:19:55 -04:00
Fergus Dall 60f3ff6136 Make saving and loading body-part targeted diseases work 2013-09-08 21:39:08 +09:30
Fergus Dall da14de174d Make medical consumables heal bleeding for each body-part individually 2013-09-08 21:35:00 +09:30
Fergus Dall 61e644b0a1 Fix debug message 2013-09-08 21:34:54 +09:30
Fergus Dall d68909fc8f Make bleeding use multiple intensity levels and be body-part specific 2013-09-08 20:45:22 +09:30
Fergus Dall ba1595dcff Fix some compiler errors 2013-09-08 20:19:54 +09:30
Fergus Dall eb3bd915fc Re-wrote dis_effect, disease_speed_boost, dis_name and dis_description
to use new body-part specific diseases
2013-09-08 19:14:45 +09:30
Fergus Dall 2b8125c29f Let -1 be used to indicate that side of body is irrelevant 2013-09-08 18:06:01 +09:30
Fergus Dall 72bd5674ff Remove disease_for_body_part and change temperature disease code to match 2013-09-08 17:54:51 +09:30
Fergus Dall 77b919ef8c Astyle player disease functions 2013-09-08 17:23:25 +09:30
Fergus Dall feff2004da Modify player disease functions to take body-part information if needed 2013-09-08 17:22:10 +09:30
Fergus Dall a6f0133b7c Modify disease struct to store body-part information 2013-09-08 17:19:01 +09:30
Steven Wu 742e879ee1 Merge branch 'master' into martial_arts 2013-09-07 23:38:54 -07:00
Steven Wu 60ac55fd07 started breaking out techniques 2013-09-07 23:38:34 -07:00
Tommy a0c069839b Convert profession to dynamic loading, and remove numeric id. 2013-09-06 21:31:33 +12:00
Tommy f90874ed29 Add some members to Jsin for fetching values by name. 2013-09-06 21:30:18 +12:00
Tommy 4296365370 Raise unrecognized JSON object members from INFO to WARNING. 2013-09-06 21:27:15 +12:00
Tommy 16aa8075e1 Add types to professions.json. 2013-09-06 21:23:11 +12:00
Tommy 9637475f9f Condense some wrappers. 2013-09-06 18:25:57 +12:00
Tommy 2986972eec Convert bionics to load using Jsin, and fix associated errors. 2013-09-06 18:21:19 +12:00
Tommy 852b5686bb Give default material an empty ident string, in stead of "null". 2013-09-06 16:33:12 +12:00
Tommy 8f401ba08c Properly set _ident when initializing material_type from ident. 2013-09-06 16:31:42 +12:00
Tommy d191dc4169 Remove old integer id from material_type. 2013-09-06 16:30:40 +12:00
Tommy 31b3e1f432 Completely switch to new JSON loading system for materials. 2013-09-06 16:25:44 +12:00
Tommy 9110b5f747 Clean material.cpp includes, and use dout() not debugmsg(). 2013-09-06 16:22:57 +12:00
Tommy 381b389256 Add "type" members to data/raw/materials.json. 2013-09-06 16:09:59 +12:00
Tommy 733d2095dd Add a method to material_type to load a material from JSON. 2013-09-06 16:09:20 +12:00
Tommy ad57073cbe Add some new functions for loading arbitrary data from JSON. 2013-09-06 15:58:12 +12:00
Tommy 4b5b9ca026 Add a new Jsin class for reading JSON from a stream. 2013-09-06 15:42:40 +12:00
Steven Wu 2e23470005 added krav maga 2013-09-05 07:57:07 -07:00
Steven Wu 62446983cd More martial arts changes
* added capoeira, judo, tai chi
* added "throw_immune", "block", "block_<stat>" as buff effects
* buffs can now depend on other buffs via "req_buffs"
2013-09-05 00:51:54 -07:00
Steven Wu 40ada9c030 small json bugfix 2013-09-03 23:14:18 -07:00
Steven Wu 72c8d7e699 Merge branch 'master' into martial_arts 2013-09-03 22:46:17 -07:00
Steven Wu ba2c2cb763 Fully functional martial arts framework v1
* techniques work
* technique restrictions work
* technique custom strings work
* added two "demo" styles, coward and berserker
* Martial Arts Training now gives all implemented styles (karate, aikido, demo
styles). Other martial arts traits won't do anything because they still give you the
old martial arts items which are no longer accessible.
2013-09-03 22:19:08 -07:00
Steven Wu 3b7d6459e8 Merge branch 'master' into martial_arts 2013-09-03 18:49:31 -07:00
Steven Wu db1caf3624 basic martial arts functionality.
* added martial arts as first-class objects instead of items, stored in
player::ma_styles
  - martial arts attach diseases to player representing buffs (see ma_buff),
    restricted by skills and current weapon-wielding status
  - can attach buffs on-hit or "statically" (on player::reset)
  - buffs can stack based on their max_stacks trait, and last for buff_duration
    turns
  - martial arts data stored in data/raw/martialarts.json, all
    buffs/conditions/etc are editable
* implemented karate in new JSON system
* added a "test_karate" style, will remove later
2013-09-03 18:48:23 -07:00
beefoni 7cb9b6bf58 Fix of issue #2657: NX-17 charge rifles now work (more) properly. 2013-08-26 20:06:05 +02:00
Redstonize 894db02078 Added RPG-7 Ammo 2013-08-23 14:08:14 -04:00
Redstonize ccfc7091bc Added RPG-7. Need review & testing. 2013-08-23 13:55:13 -04:00
phaethonfire b4bec633de use adjusted_skill to calculate failure_level 2013-08-07 13:19:16 -05:00
phaethonfire 21c554335b new bionics_install chance of success & skill calculation
discussion here: http://smf.cataclysmdda.com/index.php?topic=2687.0
2013-08-05 11:41:25 -05:00
phaethonfire 267d5c0f17 Update bionics.cpp
updated failure mechanics.  discussion here: http://smf.cataclysmdda.com/index.php?topic=2687.0
2013-08-05 11:07:14 -05:00
MacrosBlackD e402f1ac3a Choosing not to study still reads the book for one step 2013-06-29 22:30:11 -05:00
MacrosBlackD 5aa1a6e15b Addresses issue #1667 2013-06-29 22:30:11 -05:00
280 changed files with 878648 additions and 414510 deletions
+4 -1
View File
@@ -31,9 +31,12 @@ Debug*/
\#*
*.bak
*.cbTemp
*.swp
*.sw?
gmon.out
# System Files
Thumbs.db
.DS_Store
core
tags
cscope.*
+2 -2
View File
@@ -39,7 +39,7 @@ ADD_EXECUTABLE(cataclysm ${CataclysmDDA_SRCS} ${CataclysmDDA_HDRS})
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 :)
COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_SOURCE_DIR}/LICENSE.txt $<TARGET_FILE_DIR:cataclysm> # Don't forget the license :)
)
IF(MINGW)
@@ -75,7 +75,7 @@ IF(SDL OR TILES)
Include(FindSDL_image)
TARGET_LINK_LIBRARIES(cataclysm ${SDLIMAGE_LIBRARY})
ADD_DEFINITIONS(-DSDLTILES)
ADD_DEFINITIONS(-DSDLTILES -DTILES)
ELSE()
ADD_DEFINITIONS(-DTILES)
ENDIF()
+80 -15
View File
@@ -8,23 +8,25 @@
<Build>
<Target title="Release">
<Option output="Cataclysm" prefix_auto="1" extension_auto="1" />
<Option object_output="obj/Release/" />
<Option object_output="obj\Release\" />
<Option type="0" />
<Option compiler="gcc" />
<Compiler>
<Add option="-Os" />
<Add option="-O2" />
<Add option="-DRELEASE=1" />
</Compiler>
</Target>
<Target title="Release - Localized">
<Option output="Cataclysm" prefix_auto="1" extension_auto="1" />
<Option object_output="obj/Release/" />
<Option object_output="obj\Release\" />
<Option type="0" />
<Option compiler="gcc" />
<Compiler>
<Add option="-Os" />
<Add option="-O2" />
<Add option="-DLOCALIZE" />
<Add option="-DRELEASE=1" />
</Compiler>
<Linker>
<Add library="intl" />
@@ -33,22 +35,34 @@
</Target>
<Target title="Release -SDL">
<Option output="Cataclysm" prefix_auto="1" extension_auto="1" />
<Option object_output="obj/Release/" />
<Option object_output="obj\Release\" />
<Option type="0" />
<Option compiler="gcc" />
<Compiler>
<Add option="-Os" />
<Add option="-O2" />
<Add option="-DTILES" />
<Add option="-DRELEASE=1" />
<Add directory="WinDepend\SDLttf\SDL_ttf-2.0.11\include" />
<Add directory="WinDepend\SDL-1.2.15\include\SDL" />
<Add directory="WinDepend\SDLImg_binVC\SDL_image-1.2.12\include" />
</Compiler>
<Linker>
<Add library="libSDL.dll" />
<Add library="SDL_ttf" />
<Add library="WinDepend\SDLttf\SDL_ttf-2.0.11\lib\x86\SDL_ttf.lib" />
<Add library="WinDepend\SDL-1.2.15\lib\libSDL.dll.a" />
<Add library="WinDepend\SDL-1.2.15\lib\libSDLmain.a" />
<Add library="WinDepend\SDLImg_binVC\SDL_image-1.2.12\lib\x86\SDL_image.lib" />
<Add directory="WinDepend\SDL-1.2.15\lib" />
<Add directory="WinDepend\SDLttf\SDL_ttf-2.0.11\lib\x86" />
<Add directory="WinDepend\libiconv\lib" />
<Add directory="WinDepend\SDLImg_binVC\SDL_image-1.2.12\lib\x86" />
</Linker>
</Target>
<Target title="Release -SDL -Localized">
<Option output="Cataclysm" prefix_auto="1" extension_auto="1" />
<Option object_output="obj/Release/" />
<Option object_output="obj\Release\" />
<Option type="0" />
<Option compiler="gcc" />
<Compiler>
@@ -56,17 +70,28 @@
<Add option="-O2" />
<Add option="-DLOCALIZE" />
<Add option="-DTILES" />
<Add option="-DSDLTILES" />
<Add option="-DRELEASE=1" />
<Add directory="WinDepend\SDLttf\SDL_ttf-2.0.11\include" />
<Add directory="WinDepend\SDL-1.2.15\include\SDL" />
<Add directory="WinDepend\SDLImg_binVC\SDL_image-1.2.12\include" />
</Compiler>
<Linker>
<Add library="intl" />
<Add library="iconv" />
<Add library="libSDL.dll" />
<Add library="SDL_ttf" />
<Add library="WinDepend\SDLttf\SDL_ttf-2.0.11\lib\x86\SDL_ttf.lib" />
<Add library="WinDepend\SDL-1.2.15\lib\libSDL.dll.a" />
<Add library="WinDepend\SDL-1.2.15\lib\libSDLmain.a" />
<Add library="WinDepend\SDLImg_binVC\SDL_image-1.2.12\lib\x86\SDL_image.lib" />
<Add directory="WinDepend\SDL-1.2.15\lib" />
<Add directory="WinDepend\SDLttf\SDL_ttf-2.0.11\lib\x86" />
<Add directory="WinDepend\libiconv\lib" />
<Add directory="WinDepend\SDLImg_binVC\SDL_image-1.2.12\lib\x86" />
</Linker>
</Target>
<Target title="Debug">
<Option output="Cataclysm" prefix_auto="1" extension_auto="1" />
<Option object_output="obj/Debug/" />
<Option object_output="obj\Debug\" />
<Option type="0" />
<Option compiler="gcc" />
<Compiler>
@@ -79,7 +104,7 @@
</Target>
<Target title="Debug - Localized">
<Option output="Cataclysm" prefix_auto="1" extension_auto="1" />
<Option object_output="obj/Debug/" />
<Option object_output="obj\Debug\" />
<Option type="0" />
<Option compiler="gcc" />
<Compiler>
@@ -95,7 +120,7 @@
</Target>
<Target title="Release - Tile Support">
<Option output="Cataclysm-Tiles" prefix_auto="1" extension_auto="1" />
<Option object_output="obj/TilesRelease/" />
<Option object_output="obj\TilesRelease\" />
<Option type="0" />
<Option compiler="gcc" />
<Compiler>
@@ -103,6 +128,7 @@
<Add option="-O2" />
<Add option="-pg" />
<Add option="-DSDLTILES" />
<Add option="-DTILES" />
<Add directory="3rdparty/include/SDL" />
</Compiler>
<Linker>
@@ -111,8 +137,32 @@
<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" />
<Add directory="3rdparty\lib" />
<Add directory="3rdparty\lib\x86" />
</Linker>
</Target>
<Target title="Debug - 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="-g" />
<Add option="-DSDLTILES" />
<Add option="-DTILES" />
<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>
@@ -156,14 +206,15 @@
<Unit filename="catacharset.cpp" />
<Unit filename="catacharset.h" />
<Unit filename="catacurse.h" />
<Unit filename="catajson.cpp" />
<Unit filename="catajson.h" />
<Unit filename="char_validity_check.cpp" />
<Unit filename="char_validity_check.h" />
<Unit filename="color.cpp" />
<Unit filename="color.h" />
<Unit filename="computer.cpp" />
<Unit filename="computer.h" />
<Unit filename="construction.cpp" />
<Unit filename="construction.h" />
<Unit filename="coordinates.h" />
<Unit filename="crafting.cpp" />
<Unit filename="crafting.h" />
<Unit filename="cursesdef.h" />
@@ -183,6 +234,8 @@
<Unit filename="faction.h" />
<Unit filename="field.cpp" />
<Unit filename="field.h" />
<Unit filename="file_finder.cpp" />
<Unit filename="file_finder.h" />
<Unit filename="game.cpp" />
<Unit filename="game.h" />
<Unit filename="gamemode.cpp" />
@@ -196,6 +249,8 @@
<Unit filename="helper.h" />
<Unit filename="iexamine.cpp" />
<Unit filename="iexamine.h" />
<Unit filename="init.cpp" />
<Unit filename="init.h" />
<Unit filename="input.cpp" />
<Unit filename="input.h" />
<Unit filename="inventory.cpp" />
@@ -219,6 +274,8 @@
<Unit filename="iuse_software_snake.h" />
<Unit filename="iuse_software_sokoban.cpp" />
<Unit filename="iuse_software_sokoban.h" />
<Unit filename="json.cpp" />
<Unit filename="json.h" />
<Unit filename="keypress.cpp" />
<Unit filename="keypress.h" />
<Unit filename="lightmap.cpp" />
@@ -237,6 +294,8 @@
<Unit filename="mapgenformat.cpp" />
<Unit filename="mapgenformat.h" />
<Unit filename="mapitems.h" />
<Unit filename="martialarts.cpp" />
<Unit filename="martialarts.h" />
<Unit filename="material.cpp" />
<Unit filename="material.h" />
<Unit filename="melee.cpp" />
@@ -247,6 +306,7 @@
<Unit filename="mission_place.cpp" />
<Unit filename="mission_start.cpp" />
<Unit filename="missiondef.cpp" />
<Unit filename="mod_factory.h" />
<Unit filename="monattack.cpp" />
<Unit filename="monattack.h" />
<Unit filename="mondeath.cpp" />
@@ -257,6 +317,8 @@
<Unit filename="monmove.cpp" />
<Unit filename="monster.cpp" />
<Unit filename="monster.h" />
<Unit filename="monstergenerator.cpp" />
<Unit filename="monstergenerator.h" />
<Unit filename="morale.h" />
<Unit filename="moraledata.h" />
<Unit filename="mtype.h" />
@@ -296,7 +358,8 @@
</Unit>
<Unit filename="rng.cpp" />
<Unit filename="rng.h" />
<Unit filename="sdlcurse.cpp" />
<Unit filename="savegame_json.cpp" />
<Unit filename="savegame_legacy.cpp" />
<Unit filename="sdltiles.cpp" />
<Unit filename="settlement.cpp" />
<Unit filename="settlement.h" />
@@ -309,6 +372,7 @@
<Unit filename="tile_id_data.h" />
<Unit filename="tileray.cpp" />
<Unit filename="tileray.h" />
<Unit filename="translations.cpp" />
<Unit filename="translations.h" />
<Unit filename="trap.h" />
<Unit filename="trapdef.cpp" />
@@ -325,7 +389,6 @@
<Unit filename="vehicle.cpp" />
<Unit filename="vehicle.h" />
<Unit filename="version.cpp" />
<Unit filename="version.h" />
<Unit filename="wcwidth.c">
<Option compilerVar="CC" />
</Unit>
@@ -335,6 +398,8 @@
<Unit filename="weather_data.cpp" />
<Unit filename="wincurse.cpp" />
<Unit filename="wish.cpp" />
<Unit filename="worldfactory.cpp" />
<Unit filename="worldfactory.h" />
<Extensions>
<code_completion />
<debugger />
+16 -6
View File
@@ -29,10 +29,9 @@
# (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
# 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
WARNINGS = -Werror -Wall -Wextra -Wno-switch -Wno-sign-compare -Wno-missing-braces -Wno-unused-parameter -Wno-narrowing -Wno-maybe-uninitialized
# Uncomment below to disable warnings
#WARNINGS = -w
DEBUG = -g
@@ -55,7 +54,7 @@ DEBUG = -g
#DEFINES += -DDEBUG_ENABLE_MAP_GEN
#DEFINES += -DDEBUG_ENABLE_GAME
VERSION = 0.8
VERSION = 0.9
TARGET = cataclysm
@@ -85,6 +84,13 @@ ifdef RELEASE
DEBUG =
endif
ifdef CLANG
CXX = $(CROSS)clang++
LD = $(CROSS)clang++
OTHERS = --std=c++98 --analyze -fixit
WARNINGS = -Wall -Wextra -Wno-switch -Wno-sign-compare -Wno-missing-braces -Wno-unused-parameter -Wno-type-limits -Wno-narrowing
endif
CXXFLAGS += $(WARNINGS) $(DEBUG) $(PROFILE) $(OTHERS) -MMD
BINDIST_EXTRAS = README.md data
@@ -127,6 +133,7 @@ ifeq ($(NATIVE), osx)
OSX_MIN = 10.5
DEFINES += -DMACOSX
CXXFLAGS += -mmacosx-version-min=$(OSX_MIN)
WARNINGS = -Werror -Wall -Wextra -Wno-switch -Wno-sign-compare -Wno-missing-braces -Wno-unused-parameter
ifeq ($(LOCALIZE), 1)
LDFLAGS += -lintl
endif
@@ -200,9 +207,8 @@ ifdef SDL
endif
ifdef TILES
DEFINES += -DSDLTILES
else
DEFINES += -DTILES
endif
DEFINES += -DTILES
ifeq ($(TARGETSYSTEM),WINDOWS)
LDFLAGS += -lgdi32 -ldxguid -lwinmm -ljpeg -lpng
TARGET = $(W32TILESTARGET)
@@ -218,7 +224,11 @@ else
ifeq ($(shell sh -c 'uname -o 2>/dev/null || echo not'),Darwin)
LDFLAGS += -lncurses
else
LDFLAGS += -lncursesw
ifeq ($(NATIVE), osx)
LDFLAGS += -lncurses
else
LDFLAGS += -lncursesw
endif
endif
# Work around Cygwin not including gettext support in glibc
ifeq ($(shell sh -c 'uname -o 2>/dev/null || echo not'),Cygwin)
+1
View File
@@ -33,3 +33,4 @@ Angela Graves <Rivet.the.Zombie@gmail.com>
Ian Strachan <ian_e_strachan@hotmail.com>
Greg McNew <gmcnew@gmail.com>
NaturesWitness <natureswitness@gmail.com>
CodeHero <codehero@nerdpol.ch>
+303 -14
View File
@@ -1,13 +1,16 @@
#include "game.h"
#include "action.h"
#include "keypress.h"
#include "output.h"
#include <istream>
#include <sstream>
#include <fstream>
std::map<char, action_id> keymap;
std::map<char, action_id> default_keymap;
void parse_keymap(std::istream &keymap_txt, std::map<char, action_id> &kmap);
void game::load_keyboard_settings()
void load_keyboard_settings()
{
// Load the default keymap
std::istringstream sin;
@@ -34,11 +37,10 @@ void game::load_keyboard_settings()
// 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;
for (d_it = default_keymap.begin(); d_it != default_keymap.end(); ++d_it) {
bool found = false;
std::map<char, action_id>::iterator k_it;
for (k_it = keymap.begin(); k_it != keymap.end(); k_it++) {
for (k_it = keymap.begin(); k_it != keymap.end(); ++k_it) {
if (d_it->second == k_it->second) {
found = true;
break;
@@ -87,7 +89,7 @@ Fix data/keymap.txt at your next chance!", ch, id.c_str());
}
}
void game::save_keymap()
void save_keymap()
{
std::ofstream fout;
fout.open("data/keymap.txt");
@@ -97,17 +99,17 @@ void game::save_keymap()
return;
}
std::map<char, action_id>::iterator it;
for (it = keymap.begin(); it != keymap.end(); it++)
for (it = keymap.begin(); it != keymap.end(); ++it)
fout << action_ident( (*it).second ) << " " << (*it).first << std::endl;
fout.close();
}
std::vector<char> game::keys_bound_to(action_id act)
std::vector<char> keys_bound_to(action_id act)
{
std::vector<char> ret;
std::map<char, action_id>::iterator it;
for (it = keymap.begin(); it != keymap.end(); it++) {
for (it = keymap.begin(); it != keymap.end(); ++it) {
if ( (*it).second == act )
ret.push_back( (*it).first );
}
@@ -115,10 +117,10 @@ std::vector<char> game::keys_bound_to(action_id act)
return ret;
}
void game::clear_bindings(action_id act)
void clear_bindings(action_id act)
{
std::map<char, action_id>::iterator it;
for (it = keymap.begin(); it != keymap.end(); it++) {
for (it = keymap.begin(); it != keymap.end(); ++it) {
if ( (*it).second == act ) {
keymap.erase(it);
it = keymap.begin();
@@ -287,8 +289,9 @@ std::string action_ident(action_id act)
return "debug_mode";
case ACTION_NULL:
return "null";
default:
return "unkown";
}
return "unknown";
}
action_id look_up_action(std::string ident)
@@ -465,7 +468,293 @@ std::string action_name(action_id act)
return _("Toggle Debug Messages");
case ACTION_NULL:
return _("No Action");
default:
return "Someone forgot to name an action.";
}
}
void get_direction(int &x, int &y, char ch)
{
x = 0;
y = 0;
action_id act;
if (keymap.find(ch) == keymap.end()) {
act = ACTION_NULL;
} else {
act = keymap[ch];
}
switch (act) {
case ACTION_MOVE_NW:
x = -1;
y = -1;
return;
case ACTION_MOVE_NE:
x = 1;
y = -1;
return;
case ACTION_MOVE_W:
x = -1;
return;
case ACTION_MOVE_S:
y = 1;
return;
case ACTION_MOVE_N:
y = -1;
return;
case ACTION_MOVE_E:
x = 1;
return;
case ACTION_MOVE_SW:
x = -1;
y = 1;
return;
case ACTION_MOVE_SE:
x = 1;
y = 1;
return;
case ACTION_PAUSE:
case ACTION_PICKUP:
x = 0;
y = 0;
return;
default:
x = -2;
y = -2;
}
}
std::string default_keymap_txt()
{
return "\
# This is the keymapping for Cataclysm.\n\
# You can start a line with # to make it a comment--it will be ignored.\n\
# Blank lines are ignored too.\n\
# Extra whitespace, including tab, is ignored, so format things how you like.\n\
# If you wish to restore defaults, simply remove this file.\n\
\n\
# The format for each line is an action identifier, followed by several\n\
# keys. Any action may have an unlimited number of keys bound to it.\n\
# If you bind the same key to multiple actions, the second and subsequent\n\
# bindings will be ignored--and you'll get a warning when the game starts.\n\
# Keys are case-sensitive, of course; c and C are different.\n\
\n\
# WARNING: If you skip an action identifier, there will be no key bound to\n\
# that action! You will be NOT be warned of this when the game starts.\n\
# If you're going to mess with stuff, maybe you should back this file up?\n\
\n\
# It is okay to split commands across lines.\n\
# pause . 5 is equivalent to:\n\
# pause .\n\
# pause 5\n\
\n\
# Note that movement keybindings ONLY apply to movement (for now).\n\
# That is, binding w to move_n will let you use w to move north, but you\n\
# cannot use w to smash north, examine to the north, etc.\n\
# For now, you must use vikeys, the numpad, or arrow keys for those actions.\n\
# This is planned to change in the future.\n\
\n\
# Finally, there is no support for special keys, like spacebar, Home, and\n\
# so on. This is not a planned feature, but if it's important to you, please\n\
# let me know.\n\
\n\
# MOVEMENT:\n\
pause . 5\n\
move_n k 8\n\
move_ne u 9\n\
move_e l 6\n\
move_se n 3\n\
move_s j 2\n\
move_sw b 1\n\
move_w h 4\n\
move_nw y 7\n\
move_down >\n\
move_up <\n\
\n\
# MOVEMENT:\n\
center :\n\
shift_n K\n\
shift_e L\n\
shift_s J\n\
shift_w H\n\
\n\
# ENVIRONMENT INTERACTION\n\
open o\n\
close c\n\
smash s\n\
examine e\n\
advinv /\n\
pickup , g\n\
grab G\n\
butcher B\n\
chat C\n\
look ; x\n\
peek X\n\
listitems V\n\
\n\
# INVENTORY & QUASI-INVENTORY INTERACTION\n\
inventory i\n\
compare I\n\
organize =\n\
apply a\n\
apply_wielded A\n\
wear W\n\
take_off T\n\
eat E\n\
read R\n\
wield w\n\
pick_style _\n\
reload r\n\
unload U\n\
throw t\n\
fire f\n\
#fire_burst F\n\
select_fire_mode F\n\
drop d\n\
drop_adj D\n\
bionics p\n\
sort_armor +\n\
\n\
# LONG TERM & SPECIAL ACTIONS\n\
wait |\n\
craft &\n\
recraft -\n\
construct *\n\
disassemble (\n\
sleep $\n\
control_vehicle ^\n\
safemode !\n\
autosafe \"\n\
ignore_enemy '\n\
save S\n\
quit Q\n\
\n\
# INFO SCREENS\n\
player_data @\n\
map m\n\
missions M\n\
factions #\n\
kills )\n\
morale v\n\
messages P\n\
help ?\n\
\n\
# DEBUG FUNCTIONS\n\
debug_mode ~\n\
# debug Z\n\
# debug_scent -\n\
";
}
// (Press X (or Y)|Try) to Z
std::string press_x(action_id act)
{
return press_x(act,_("Press "),"",_("Try"));
}
std::string press_x(action_id act, std::string key_bound, std::string key_unbound)
{
return press_x(act,key_bound,"",key_unbound);
}
std::string press_x(action_id act, std::string key_bound_pre, std::string key_bound_suf, std::string key_unbound)
{
std::vector<char> keys = keys_bound_to( action_id(act) );
if (keys.empty()) {
return key_unbound;
} else {
std::string keyed = key_bound_pre.append("");
for (int j = 0; j < keys.size(); j++) {
if (keys[j] == '\'' || keys[j] == '"'){
if (j < keys.size() - 1) {
keyed += keys[j]; keyed += _(" or ");
} else {
keyed += keys[j];
}
} else {
if (j < keys.size() - 1) {
keyed += "'"; keyed += keys[j]; keyed += _("' or ");
} else {
if (keys[j] == '_') {
keyed += _("'_' (underscore)");
} else {
keyed += "'"; keyed += keys[j]; keyed += "'";
}
}
}
}
return keyed.append(key_bound_suf.c_str());
}
}
// ('Z'ing|zing) (\(X( or Y))\))
std::string press_x(action_id act, std::string act_desc)
{
bool key_after=false;
bool z_ing=false;
char zing = tolower(act_desc.at(0));
std::vector<char> keys = keys_bound_to( action_id(act) );
if (keys.empty()) {
return act_desc;
} else {
std::string keyed = ("");
for (int j = 0; j < keys.size(); j++) {
if (tolower(keys[j])==zing) {
if (z_ing) {
keyed.replace(1,1,1,act_desc.at(0));
if (key_after) {
keyed += _(" or '");
keyed += (islower(act_desc.at(0)) ? toupper(act_desc.at(0))
: tolower(act_desc.at(0)));
keyed += "'";
} else {
keyed +=" ('";
keyed += (islower(act_desc.at(0)) ? toupper(act_desc.at(0))
: tolower(act_desc.at(0)));
keyed += "'";
key_after=true;
}
} else {
std::string uhh="";
if (keys[j] == '\'' || keys[j] == '"'){
uhh+="("; uhh+=keys[j]; uhh+=")";
} else {
uhh+="'"; uhh+=keys[j]; uhh+="'";
}
if(act_desc.length()>1) {
uhh+=act_desc.substr(1);
}
if (keys[j] == '_') {
uhh += _(" (underscore)");
}
keyed.insert(0,uhh);
z_ing=true;
}
} else {
if (key_after) {
if (keys[j] == '\'' || keys[j] == '"'){
keyed += _(" or "); keyed += keys[j];
} else if (keys[j] == '_') {
keyed += _("or '_' (underscore)");
} else {
keyed+=_(" or '"); keyed+=keys[j]; keyed+="'";
}
} else {
if (keys[j] == '\'' || keys[j] == '"'){
keyed += " ("; keyed += keys[j];
} else if (keys[j] == '_') {
keyed += _(" ('_' (underscore)");
} else {
keyed += " ('"; keyed+=keys[j]; keyed+="'";
}
key_after=true;
}
}
}
if (!z_ing) {
keyed.insert(0,act_desc);
}
if (key_after) {
keyed+=")";
}
return keyed;
}
return "Someone forgot to name an action.";
}
+26
View File
@@ -1,6 +1,10 @@
#ifndef _ACTION_H_
#define _ACTION_H_
#include <vector>
#include <map>
#include <string>
enum action_id {
ACTION_NULL = 0,
// Movement
@@ -91,8 +95,30 @@ ACTION_TOGGLE_DEBUGMON,
NUM_ACTIONS
};
extern std::map<char, action_id> keymap;
// Load keybindings from disk
void load_keyboard_settings();
std::string default_keymap_txt();
// Save keybindings to disk
void save_keymap();
// All keys bound to act
std::vector<char> keys_bound_to(action_id act);
// Delete all keys bound to act
void clear_bindings(action_id act);
action_id look_up_action(std::string ident);
std::string action_ident(action_id);
std::string action_name(action_id);
// Use the keymap to figure out direction properly
void get_direction(int &x, int &y, char ch);
// (Press X (or Y)|Try) to Z
std::string press_x(action_id act);
std::string press_x(action_id act, std::string key_bound,
std::string key_unbound);
std::string press_x(action_id act, std::string key_bound_pre,
std::string key_bound_suf, std::string key_unbound);
// ('Z'ing|zing) (X( or Y)))
std::string press_x(action_id act, std::string act_desc);
#endif
+34 -46
View File
@@ -8,7 +8,6 @@ void addict_effect(game *g, addiction &add)
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++;
@@ -23,7 +22,6 @@ void addict_effect(game *g, addiction &add)
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--;
@@ -38,16 +36,14 @@ void addict_effect(game *g, addiction &add)
case ADD_ALCOHOL:
g->u.per_cur--;
g->u.int_cur--;
if (rng(40, 1200) <= in * 10) {
if (rng(40, 1200) <= in * 10 && g->u.health > -100) {
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) {
@@ -76,18 +72,16 @@ void addict_effect(game *g, addiction &add)
if (g->u.pain < in * 3) {
g->u.pain++;
}
if (in >= 40 || one_in((1200 - 30 * in))) {
if ((in >= 40 || one_in(1200 - 30 * in)) && g->u.health > -100) {
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."));
@@ -107,16 +101,14 @@ void addict_effect(game *g, addiction &add)
if (g->u.stim > -100 && (in >= 20 || int(g->turn) % (100 - in * 5) == 0)) {
g->u.stim--;
}
if (rng(0, 150) <= in) {
if (rng(0, 150) <= in && g->u.health > -100) {
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) {
@@ -133,12 +125,10 @@ void addict_effect(game *g, addiction &add)
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;
@@ -151,12 +141,10 @@ void addict_effect(game *g, addiction &add)
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;
@@ -172,32 +160,32 @@ void addict_effect(game *g, addiction &add)
*/
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";
}
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";
}
}
std::string addiction_name(addiction cur)
{
switch (cur.type) {
case ADD_CIG: return _("Nicotine Withdrawal");
case ADD_CAFFEINE: return _("Caffeine Withdrawal");
case ADD_ALCOHOL: return _("Alcohol Withdrawal");
case ADD_SLEEP: return _("Sleeping Pill Dependance");
case ADD_PKILLER: return _("Opiate Withdrawal");
case ADD_SPEED: return _("Amphetamine Withdrawal");
case ADD_COKE: return _("Cocaine Withdrawal");
case ADD_CRACK: return _("Crack Cocaine Withdrawal");
default: return "Erroneous addiction";
}
switch (cur.type) {
case ADD_CIG: return _("Nicotine Withdrawal");
case ADD_CAFFEINE: return _("Caffeine Withdrawal");
case ADD_ALCOHOL: return _("Alcohol Withdrawal");
case ADD_SLEEP: return _("Sleeping Pill Dependance");
case ADD_PKILLER: return _("Opiate Withdrawal");
case ADD_SPEED: return _("Amphetamine Withdrawal");
case ADD_COKE: return _("Cocaine Withdrawal");
case ADD_CRACK: return _("Crack Cocaine Withdrawal");
default: return "Erroneous addiction";
}
}
morale_type addiction_craving(add_type cur)
@@ -217,23 +205,23 @@ morale_type addiction_craving(add_type cur)
add_type addiction_type(std::string name)
{
if (name == "nicotine")
return ADD_CIG;
return ADD_CIG;
else if (name == "caffeine")
return ADD_CAFFEINE;
return ADD_CAFFEINE;
else if (name == "alcohol")
return ADD_ALCOHOL;
return ADD_ALCOHOL;
else if (name == "sleeping pill")
return ADD_SLEEP;
return ADD_SLEEP;
else if (name == "opiate")
return ADD_PKILLER;
return ADD_PKILLER;
else if (name == "amphetamine")
return ADD_SPEED;
return ADD_SPEED;
else if (name == "cocaine")
return ADD_COKE;
return ADD_COKE;
else if (name == "crack")
return ADD_CRACK;
return ADD_CRACK;
else
return ADD_NULL;
return ADD_NULL;
}
std::string addiction_text(addiction cur)
+78 -25
View File
@@ -183,7 +183,7 @@ void advanced_inventory::print_items(advanced_inventory_pane &pane, bool active)
}
if( isinventory && items[i].stacks > 1 ) {
mvwprintz(window, 6 + x, amount_column, thiscolor, "[%d]", items[i].stacks);
mvwprintz(window, 6 + x, amount_column, thiscolor, "x %d", items[i].stacks);
} else if ( isall ) {
mvwprintz(window, 6 + x, amount_column, thiscolor, "%s", squares[items[i].area].shortname.c_str());
}
@@ -324,7 +324,7 @@ void advanced_inv_update_area( advanced_inv_area &area, game *g ) {
area.max_size = MAX_ITEM_IN_VEHICLE_STORAGE;
area.max_volume = area.veh->max_volume(area.vstor);
} else {
area.canputitems=(!(g->m.has_flag(noitem,u.posx+area.offx,u.posy+area.offy)) && !(g->m.has_flag(sealed,u.posx+area.offx,u.posy+area.offy) ));
area.canputitems=(!(g->m.has_flag("NOITEM",u.posx+area.offx,u.posy+area.offy)) && !(g->m.has_flag("SEALED",u.posx+area.offx,u.posy+area.offy) ));
area.size = g->m.i_at(u.posx+area.offx,u.posy+area.offy).size();
area.max_size = MAX_ITEM_IN_SQUARE;
area.max_volume = g->m.max_volume(u.posx+area.offx,u.posy+area.offy);
@@ -433,7 +433,7 @@ void advanced_inventory::init(game *gp, player *pp)
src = left; // the active screen , 0 for left , 1 for right.
dest = right;
max_inv = inv_chars.size() - p->worn.size() - ( p->is_armed() || p->weapon.is_style() ? 1 : 0 );
max_inv = inv_chars.size() - p->worn.size() - ( p->is_armed() ? 1 : 0 );
examineScroll = false;
filter_edit = false;
}
@@ -468,7 +468,6 @@ void advanced_inventory::recalc_pane(int i)
int aweight = 0;
if(panes[i].area == isinventory) {
const invslice & stacks = u.inv.slice(0, u.inv.size());
for( int x = 0; x < stacks.size(); ++x ) {
item &item = stacks[x]->front();
@@ -712,7 +711,7 @@ void advanced_inventory::display(game * gp, player * pp) {
if(redraw || panes[0].redraw || panes[1].redraw ) // any redraw = redraw everything except opposite
{
max_inv = inv_chars.size() - u.worn.size() - ( u.is_armed() || u.weapon.is_style() ? 1 : 0 );
max_inv = inv_chars.size() - u.worn.size() - ( u.is_armed() ? 1 : 0 );
for (int i = 0; i < 2; i++) {
if ( redraw || panes[i].redraw ) {
redraw_pane( i );
@@ -858,30 +857,29 @@ void advanced_inventory::display(game * gp, player * pp) {
if(panes[src].area == isinventory) {
int max = (squares[destarea].max_size - squares[destarea].size);
int volmax = max;
int free_volume = ( squares[ destarea ].vstor >= 0 ?
squares[ destarea ].veh->free_volume( squares[ destarea ].vstor ) :
m.free_volume ( squares[ destarea ].x, squares[ destarea ].y )
) * 100;
) * 1000;
// TODO figure out a better way to get the item. Without invlets.
item* it = &u.inv.slice(item_pos, 1).front()->front();
std::list<item>& stack = u.inv.stack_by_letter(it->invlet);
int amount = 1;
int volume = it->volume() * 100; // sigh
// int volume = it->volume() * 100; // sigh
int volume = it->precise_unit_volume();
bool askamount = false;
if ( stack.size() > 1) {
amount = stack.size();
askamount = true;
} else if ( it->count_by_charges() ) {
amount = it->charges;
volume = it->type->volume;
// volume = it->type->volume;
askamount = true;
}
if ( volume > 0 && volume * amount > free_volume ) {
volmax = int( free_volume / volume );
int volmax = int( free_volume / volume );
if ( volmax == 0 ) {
popup(_("Destination area is full. Remove some items first."));
continue;
@@ -1004,39 +1002,91 @@ void advanced_inventory::display(game * gp, player * pp) {
popup(_("Source area is the same as destination (%s)."),squares[destarea].name.c_str());
continue;
}
item *it = panes[src].items[list_pos].it;
std::vector<item> src_items = squares[s].vstor >= 0 ?
/* std::vector<item> src_items = squares[s].vstor >= 0 ?
squares[s].veh->parts[squares[s].vstor].items :
m.i_at(squares[s].x,squares[s].y);
if(src_items[item_pos].made_of(LIQUID))
*/
if ( it->made_of(LIQUID) )
{
popup(_("You can't pick up a liquid."));
continue;
}
else // from veh/map
{
int trycharges = -1;
if ( destarea == isinventory ) // if destination is inventory
{
if(!u.can_pickVolume(src_items[item_pos].volume()))
if(squares[destarea].size >= max_inv) {
popup(_("Too many items."));
continue;
}
int tryvolume = it->volume();
int tryweight = it->weight();
int amount = 1;
if ( it->count_by_charges() && it->charges > 1 ) {
amount = it->charges;
int unitvolume = it->precise_unit_volume();
int unitweight = ( tryweight * 1000 ) / it->charges;
int max_vol = u.volume_capacity() - u.volume_carried();
int max_weight = ( u.weight_capacity() * 4 ) - u.weight_carried();
max_vol *= 1000;
max_weight *= 1000;
int max = amount;
if ( unitvolume > 0 && unitvolume * amount > max_vol ) {
max = int( max_vol / unitvolume );
}
if ( unitweight > 0 && unitweight * amount > max_weight ) {
max = int( max_weight / unitweight );
}
// popup("uvol: %d amt: %d mvol: %d mamt: %d", unitvolume, amount, max_vol, max);
if ( max != 0 ) {
std::string popupmsg=_("How many do you want to move? (0 to cancel)");
if(amount > max) {
popupmsg=string_format(_("Destination can only hold %d! Move how many? (0 to cancel) "), max);
}
// fixme / todo make popup take numbers only (m = accept, q = cancel)
amount = helper::to_int(
string_input_popup( popupmsg, 20,
helper::to_string(
( amount > max ? max : amount )
)
)
);
if ( amount > max ) amount = max;
if ( amount != it->charges ) {
tryvolume = ( unitvolume * amount ) / 1000;
tryweight = ( unitweight * amount ) / 1000;
trycharges = amount;
}
if ( trycharges == 0 ) continue;
} else {
continue;
}
}
// ...not even going to think about checking for stack
// at this time...
if(!u.can_pickVolume(tryvolume))
{
popup(_("There's no room in your inventory."));
continue;
}
else if(!u.can_pickWeight(src_items[item_pos].weight(), false))
else if(!u.can_pickWeight(tryweight, false))
{
popup(_("This is too heavy!"));
continue;
}
else if(squares[destarea].size >= max_inv)
{
popup(_("Too many itens"));
continue;
}
}
recalc=true;
item new_item = src_items[item_pos];
item new_item = (*it);
if ( trycharges > 0 ) {
new_item.charges = trycharges;
}
if(destarea == isinventory) {
new_item.invlet = g->nextinv;
g->advance_nextinv();
@@ -1053,10 +1103,14 @@ void advanced_inventory::display(game * gp, player * pp) {
continue;
}
}
if(panes[src].vstor>=0) {
panes[src].veh->remove_item (panes[src].vstor, item_pos);
if( trycharges > 0 ) {
it->charges -= trycharges;
} else {
m.i_rem(u.posx+panes[src].offx,u.posy+panes[src].offy, item_pos);
if(panes[src].vstor>=0) {
panes[src].veh->remove_item (panes[src].vstor, item_pos);
} else {
m.i_rem(u.posx+panes[src].offx,u.posy+panes[src].offy, item_pos);
}
}
}
}
@@ -1089,7 +1143,6 @@ void advanced_inventory::display(game * gp, player * pp) {
long key = 0;
int spos = -1;
std::string filter=panes[src].filter;
std::string origfilter = filter;
filter_edit = true;
do {
@@ -1136,7 +1189,7 @@ void advanced_inventory::display(game * gp, player * pp) {
recalc=true;
checkshowmsg=true;
} else {
std::vector<iteminfo> vThisItem, vDummy, vMenu;
std::vector<iteminfo> vThisItem, vDummy;
it->info(true, &vThisItem, g);
int rightWidth = w_width / 2 - 2;
vThisItem.push_back(iteminfo(_("DESCRIPTION"), "\n"));
+2 -2
View File
@@ -1,4 +1,4 @@
#ifndef _ADVANCED_INV_H
#ifndef _ADVANCED_INV_H_
#define _ADVANCED_INV_H_
#include "output.h"
#include "game.h"
@@ -96,7 +96,7 @@ class advanced_inventory
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 );
int max_inv;// = inv_chars.size() - u.worn.size() - ( u.is_armed() ? 1 : 0 );
bool examineScroll;// = false;
bool filter_edit;
+50 -32
View File
@@ -7,24 +7,18 @@ 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;
const int ypos = POSY + (y - (u.posy + u.view_offset_y));
const int xpos = POSX + (x - (u.posx + u.view_offset_x));
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, '/');
mvwputch(w_terrain, ypos - i, xpos - i, col, '/');
mvwputch(w_terrain, ypos - i, xpos + i, col,'\\');
mvwputch(w_terrain, ypos + i, xpos - i, col,'\\');
mvwputch(w_terrain, ypos + i, xpos + i, 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,'|');
mvwputch(w_terrain, ypos - i, xpos + j, col,'-');
mvwputch(w_terrain, ypos + i, xpos + j, col,'-');
mvwputch(w_terrain, ypos + j, xpos - i, col,'|');
mvwputch(w_terrain, ypos + j, xpos + i, col,'|');
}
wrefresh(w_terrain);
nanosleep(&ts, NULL);
@@ -44,8 +38,8 @@ void game::draw_bullet(player &p, int tx, int ty, int i, std::vector<point> traj
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);
mvwputch(w_terrain, POSY + (ty - (u.posy + u.view_offset_y)),
POSX + (tx - (u.posx + u.view_offset_x)), c_red, bullet);
wrefresh(w_terrain);
if (&p == &u)
nanosleep(&ts, NULL);
@@ -54,22 +48,18 @@ void game::draw_bullet(player &p, int tx, int ty, int i, std::vector<point> traj
/* 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,
hit_animation(POSX + (x - (u.posx + u.view_offset_x)),
POSY + (y - (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,
hit_animation(POSX + (p->posx - (u.posx + u.view_offset_x)),
POSY + (p->posy - (u.posy + u.view_offset_y)),
red_background(p->color()), '@');
}
/* Line drawing code, not really an animation but should be separated anyway */
@@ -84,9 +74,9 @@ void game::draw_line(const int x, const int y, const point center_point, std::ve
npcdex = npc_at(ret[i].x, ret[i].y);
// NPCs and monsters get drawn with inverted colors
if (mondex != -1 && u_see(&(_z[mondex])))
if (mondex != -1 && u_see(&(_active_monsters[mondex])))
{
_z[mondex].draw(w_terrain, center_point.x, center_point.y, true);
_active_monsters[mondex].draw(w_terrain, center_point.x, center_point.y, true);
}
else if (npcdex != -1)
{
@@ -106,8 +96,8 @@ void game::draw_line(const int x, const int y, std::vector<point> vPoint)
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');
mvwputch(w_terrain, POSY + (vPoint[vPoint.size()-1].y - (u.posy + u.view_offset_y)),
POSX + (vPoint[vPoint.size()-1].x - (u.posx + u.view_offset_x)), c_white, 'X');
}
//*/
void game::draw_weather(weather_printable wPrint)
@@ -118,7 +108,35 @@ void game::draw_weather(weather_printable wPrint)
{
mvwputch(w_terrain, weather_iterator->second, weather_iterator->first, wPrint.colGlyph, wPrint.cGlyph);
}
//mvwputch(w_terrain, iRandY, iRandX, colGlyph, cGlyph);
}
// draws footsteps that have been created by monsters moving about
void game::draw_footsteps()
{
for (int i = 0; i < footsteps.size(); i++) {
if (!u_see(footsteps_source[i]->posx(),footsteps_source[i]->posy())) {
std::vector<point> unseen_points;
for (int j = 0; j < footsteps[i].size(); j++) {
if (!u_see(footsteps[i][j].x,footsteps[i][j].y)) {
unseen_points.push_back(point(footsteps[i][j].x,
footsteps[i][j].y));
}
}
if (unseen_points.size() > 0) {
point selected = unseen_points[ rng(0, unseen_points.size() - 1) ];
mvwputch(w_terrain,
POSY + (selected.y - (u.posy + u.view_offset_y)),
POSX + (selected.x - (u.posx + u.view_offset_x)),
c_yellow, '?');
}
}
}
footsteps.clear();
footsteps_source.clear();
wrefresh(w_terrain);
return;
}
#endif
+66 -58
View File
@@ -15,27 +15,19 @@ void game::draw_explosion(int x, int y, int radius, nc_color col)
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;
const int ypos = POSY + (y - (u.posy + u.view_offset_y));
const int xpos = POSX + (x - (u.posx + u.view_offset_x));
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, '/');
mvwputch(w_terrain, ypos - i, xpos - i, col, '/');
mvwputch(w_terrain, ypos - i, xpos + i, col,'\\');
mvwputch(w_terrain, ypos + i, xpos - i, col,'\\');
mvwputch(w_terrain, ypos + i, xpos + i, 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,'|');
mvwputch(w_terrain, ypos - i, xpos + j, col,'-');
mvwputch(w_terrain, ypos + i, xpos + j, col,'-');
mvwputch(w_terrain, ypos + j, xpos - i, col,'|');
mvwputch(w_terrain, ypos + j, xpos + i, col,'|');
}
tilecontext->init_explosion(x, y, i);
//tilecontext->draw_explosion_frame(x, y, radius, offset_x, offset_y);
@@ -58,8 +50,8 @@ void game::draw_bullet(player &p, int tx, int ty, int i, std::vector<point> traj
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);
mvwputch(w_terrain, POSY + (ty - (u.posy + u.view_offset_y)),
POSX + (tx - (u.posx + u.view_offset_x)), c_red, bullet_char);
// pass to tilecontext
tilecontext->init_draw_bullet(tx, ty, bullet);
wrefresh(w_terrain);
@@ -74,7 +66,7 @@ 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]);
tilecontext->init_draw_hit(x, y, m.type->id);
wrefresh(w_terrain);
timespec tspec;
@@ -82,20 +74,10 @@ void game::draw_hit_mon(int x, int y, monster m, bool dead)
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,
POSX + (x - (u.posx + u.view_offset_x)),
POSY + (y - (u.posy + u.view_offset_y)),
c_white, ' ');
wrefresh(w_terrain);
}
@@ -104,9 +86,9 @@ void game::draw_hit_mon(int x, int y, monster m, bool dead)
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);
hit_animation(POSX + (x - (u.posx + u.view_offset_x)),
POSY + (y - (u.posy + u.view_offset_y)),
red_background(cMonColor), dead ? '%' : sMonSym);
}
}
/* Player hit animation */
@@ -127,30 +109,17 @@ void game::draw_hit_player(player *p, bool dead)
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,
POSX + (p->posx - (u.posx + u.view_offset_x)),
POSY + (p->posy - (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,
hit_animation(POSX + (p->posx - (u.posx + u.view_offset_x)),
POSY + (p->posy - (u.posy + u.view_offset_y)),
red_background(p->color()), '@');
}
}
@@ -167,9 +136,9 @@ void game::draw_line(const int x, const int y, const point center_point, std::ve
npcdex = npc_at(ret[i].x, ret[i].y);
// NPCs and monsters get drawn with inverted colors
if (mondex != -1 && u_see(&(_z[mondex])))
if (mondex != -1 && u_see(&(_active_monsters[mondex])))
{
_z[mondex].draw(w_terrain, center_point.x, center_point.y, true);
_active_monsters[mondex].draw(w_terrain, center_point.x, center_point.y, true);
}
else if (npcdex != -1)
{
@@ -191,8 +160,8 @@ void game::draw_line(const int x, const int y, std::vector<point> vPoint)
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');
mvwputch(w_terrain, POSY + (vPoint[vPoint.size()-1].y - (u.posy + u.view_offset_y)),
POSX + (vPoint[vPoint.size()-1].x - (u.posx + u.view_offset_x)), c_white, 'X');
tilecontext->init_draw_line(x,y,vPoint,"line_trail", false);
}
@@ -243,4 +212,43 @@ void game::draw_weather(weather_printable wPrint)
}
}
}
// draws footsteps that have been created by monsters moving about
void game::draw_footsteps()
{
std::queue<point> step_tiles;
for (int i = 0; i < footsteps.size(); i++) {
if (!u_see(footsteps_source[i]->posx(),footsteps_source[i]->posy())){
std::vector<point> unseen_points;
for (int j = 0; j < footsteps[i].size(); j++){
if (!u_see(footsteps[i][j].x,footsteps[i][j].y)){
unseen_points.push_back(point(footsteps[i][j].x,
footsteps[i][j].y));
}
}
if (use_tiles){
if (unseen_points.size() > 0){
step_tiles.push(unseen_points[rng(0, unseen_points.size()-1)]);
}
}else{
if (unseen_points.size() > 0){
point selected = unseen_points[rng(0,unseen_points.size() - 1)];
mvwputch(w_terrain,
POSY + (selected.y - (u.posy + u.view_offset_y)),
POSX + (selected.x - (u.posx + u.view_offset_x)),
c_yellow, '?');
}
}
}
}
if (use_tiles){
tilecontext->init_draw_footsteps(step_tiles);
}
footsteps.clear();
footsteps_source.clear();
wrefresh(w_terrain);
return;
}
#endif
+47 -59
View File
@@ -10,47 +10,47 @@ std::vector<art_effect_active> fill_good_active();
std::vector<art_effect_active> fill_bad_active();
int passive_effect_cost[NUM_AEPS] = {
0, // AEP_NULL
0, // AEP_NULL
3, // AEP_STR_UP
3, // AEP_DEX_UP
3, // AEP_PER_UP
3, // AEP_INT_UP
5, // AEP_ALL_UP
4, // AEP_SPEED_UP
2, // AEP_IODINE
4, // AEP_SNAKES
7, // AEP_INVISIBLE
5, // AEP_CLAIRVOYANCE
50, // AEP_SUPER_CLAIRVOYANCE
2, // AEP_STEALTH
2, // AEP_EXTINGUISH
1, // AEP_GLOW
1, // AEP_PSYSHIELD
3, // AEP_RESIST_ELECTRICITY
3, // AEP_CARRY_MORE
5, // AEP_SAP_LIFE
3, // AEP_STR_UP
3, // AEP_DEX_UP
3, // AEP_PER_UP
3, // AEP_INT_UP
5, // AEP_ALL_UP
4, // AEP_SPEED_UP
2, // AEP_IODINE
4, // AEP_SNAKES
7, // AEP_INVISIBLE
5, // AEP_CLAIRVOYANCE
50,// AEP_SUPER_CLAIRVOYANCE
2, // AEP_STEALTH
2, // AEP_EXTINGUISH
1, // AEP_GLOW
1, // AEP_PSYSHIELD
3, // AEP_RESIST_ELECTRICITY
3, // AEP_CARRY_MORE
5, // AEP_SAP_LIFE
0, // AEP_SPLIT
0, // AEP_SPLIT
-2, // AEP_HUNGER
-2, // AEP_THIRST
-1, // AEP_SMOKE
-5, // AEP_EVIL
-3, // AEP_SCHIZO
-5, // AEP_RADIOACTIVE
-3, // AEP_MUTAGENIC
-5, // AEP_ATTENTION
-2, // AEP_STR_DOWN
-2, // AEP_DEX_DOWN
-2, // AEP_PER_DOWN
-2, // AEP_INT_DOWN
-5, // AEP_ALL_DOWN
-4, // AEP_SPEED_DOWN
-5, // AEP_FORCE_TELEPORT
-3, // AEP_MOVEMENT_NOISE
-2, // AEP_BAD_WEATHER
-1 // AEP_SICK
-2, // AEP_HUNGER
-2, // AEP_THIRST
-1, // AEP_SMOKE
-5, // AEP_EVIL
-3, // AEP_SCHIZO
-5, // AEP_RADIOACTIVE
-3, // AEP_MUTAGENIC
-5, // AEP_ATTENTION
-2, // AEP_STR_DOWN
-2, // AEP_DEX_DOWN
-2, // AEP_PER_DOWN
-2, // AEP_INT_DOWN
-5, // AEP_ALL_DOWN
-4, // AEP_SPEED_DOWN
-5, // AEP_FORCE_TELEPORT
-3, // AEP_MOVEMENT_NOISE
-2, // AEP_BAD_WEATHER
-1 // AEP_SICK
};
int active_effect_cost[NUM_AEAS] = {
@@ -261,18 +261,13 @@ void game::init_artifacts()
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"}
{"", 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];}
@@ -770,7 +765,7 @@ std::string artifact_name(std::string type)
const char *fmtstr = _("<artifact_name>%1$s of %2$s");
std::string noun = artifact_noun[rng(0, NUM_ART_NOUNS - 1)];
std::string adj = artifact_adj[rng(0, NUM_ART_ADJS - 1)];
ret = string_format(noun.c_str(), adj.c_str());
ret = string_format(noun, adj.c_str());
ret = rmp_format(fmtstr, type.c_str(),ret.c_str());
return ret;
}
@@ -861,14 +856,7 @@ 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++) {
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);
}
}
m.adjust_field_age(point(x,y), fd_fire, -1);
}
}
-26
View File
@@ -54,17 +54,6 @@ struct artifact_tool_form_datum
int weight_min, weight_max;
artifact_weapon_type base_weapon;
artifact_weapon_type extra_weapons[3];
/*
artifact_tool_form_datum
(std::string Name, char Sym, nc_color Color, std::string M1, std::string M2,
int Volmin, int Volmax, int Wgtmin, int Wgtmax, artifact_weapon_type Base,
artifact_weapon_type extra[3])
: name (Name), sym (Sym), color (Color), m1 (M1), m2 (M2),
volume_min (Volmin), volume_max (Volmax), weight_min (Wgtmin),
weight_max (Wgtmax), base_weapon (Base), extra_weapons (extra) { };
*/
};
enum artifact_tool_form
@@ -121,21 +110,6 @@ struct artifact_armor_form_datum
unsigned char covers;
bool plural;
artifact_armor_mod available_mods[5];
/*
// Constructor
artifact_armor_form_datum
(std::string Name, nc_color Color, std::string M1, std::string M2, int Volume,
int Weight, int Encumb, int Dmg_res, int Cut_res, int Env_res,
int Warmth, int Storage, int Bash, int Cut, int Hit, unsigned char Covers,
bool Plural, artifact_armor_mod Mods[5])
: name (Name), color (Color), m1 (M1), m2 (M2), volume (Volume),
weight (Weight), encumb (Encumb), coverage (Coverage),
thickness (thickness), env_resist (Env_res), warmth (Warmth),
storage (Storage), melee_bash (Bash), melee_cut (Cut), melee_hit (Hit),
covers (Covers), plural (Plural), available_mods (Mods) { };
*/
};
enum artifact_armor_form
+12 -20
View File
@@ -5,15 +5,17 @@
#include "keypress.h"
#include "item_factory.h"
#include "catacharset.h"
#include "translations.h"
#include <stdlib.h>
#include <fstream>
#include <string>
#include <locale>
std::map<std::string, std::string> mapAutoPickupItems;
std::vector<cPickupRules> vAutoPickupRules[5];
void game::show_auto_pickup()
void show_auto_pickup()
{
save_reset_changes(false);
@@ -27,8 +29,6 @@ void game::show_auto_pickup()
mapLines[3] = true;
mapLines[50] = true;
mapLines[54] = true;
//mapLines[61] = true;
//mapLines[68] = true;
const int iTotalCols = mapLines.size()-1;
@@ -57,11 +57,11 @@ void game::show_auto_pickup()
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;
shortcut_print(w_auto_pickup_header, 0, tmpx, c_white, c_ltgreen, _("<T>est"));
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;
shortcut_print(w_auto_pickup_header, 1, tmpx, c_white, c_ltgreen, _("<Tab>-Switch Page"));
for (int i = 0; i < 78; i++) {
if (mapLines[i]) {
@@ -75,8 +75,6 @@ void game::show_auto_pickup()
mvwprintz(w_auto_pickup_header, 3, 0, c_white, "#");
mvwprintz(w_auto_pickup_header, 3, 7, c_white, _("Rules"));
mvwprintz(w_auto_pickup_header, 3, 51, c_white, _("I/E"));
//mvwprintz(w_auto_pickup_header, 3, 55, c_white, "Volume");
//mvwprintz(w_auto_pickup_header, 3, 62, c_white, "Weight");
wrefresh(w_auto_pickup_header);
@@ -92,13 +90,7 @@ void game::show_auto_pickup()
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, "]");
*/
shortcut_print(w_auto_pickup_header, 2, locx, c_white, (iCurrentPage == 2) ? hilite(c_white) : c_white, _("[<Character>]"));
wrefresh(w_auto_pickup_header);
@@ -157,7 +149,7 @@ void game::show_auto_pickup()
wrefresh(w_auto_pickup_options);
}
ch = input();
ch = (char)input();
if (iCurrentPage == 3) {
switch(ch) {
@@ -390,7 +382,7 @@ void test_pattern(int iCurrentPage, int iCurrentLine)
wrefresh(w_test_rule_content);
ch = input();
ch = (char)input();
switch(ch) {
case 'j': //move down
@@ -418,7 +410,7 @@ void load_auto_pickup(bool bCharacter)
std::string sFile = "data/auto_pickup.txt";
if (bCharacter) {
sFile = "save/" + base64_encode(g->u.name) + ".apu.txt";
sFile = world_generator->active_world->world_path + "/" + base64_encode(g->u.name) + ".apu.txt";
}
fin.open(sFile.c_str());
@@ -619,10 +611,10 @@ void save_auto_pickup(bool bCharacter)
std::string sFile = "data/auto_pickup.txt";
if (bCharacter) {
sFile = "save/" + base64_encode(g->u.name) + ".apu.txt";
sFile = world_generator->active_world->world_path + "/" + base64_encode(g->u.name) + ".apu.txt";
std::ifstream fin;
fin.open(("save/" + base64_encode(g->u.name) + ".sav").c_str());
fin.open((world_generator->active_world->world_path + "/" + base64_encode(g->u.name) + ".sav").c_str());
if(!fin.is_open()) {
return;
}
@@ -655,7 +647,7 @@ void create_default_auto_pickup(bool bCharacter)
std::string sFile = "data/auto_pickup.txt";
if (bCharacter) {
sFile = "save/" + base64_encode(g->u.name) + ".apu.txt";
sFile = world_generator->active_world->world_path + "/" + base64_encode(g->u.name) + ".apu.txt";
}
fout.open(sFile.c_str());
+1
View File
@@ -41,6 +41,7 @@ void save_reset_changes(bool bReset);
void show_auto_pickup();
void load_auto_pickup(bool bCharacter);
void save_auto_pickup(bool bCharacter);
void show_auto_pickup();
std::string auto_pickup_header(bool bCharacter);
void create_default_auto_pickup(bool bCharacter);
bool auto_pickup_match(std::string sText, std::string sPattern);
+14 -18
View File
@@ -4,42 +4,38 @@
#include "basecamp.h"
basecamp::basecamp()
: name()
, posx(0), posy(0)
: name(), posx(0), posy(0)
{
}
basecamp::basecamp(std::string const& name_, int const posx_, int const posy_)
: name(name_)
, posx(posx_), posy(posy_)
: name(name_), posx(posx_), posy(posy_)
{
}
std::string basecamp::board_name() const
{
return name + " Board";
return name + " Board";
}
std::string basecamp::save_data() const
{
std::stringstream data;
std::stringstream data;
// TODO: This will lose underscores, is that a problem?
// strip spaces from name
std::string savename = name;
replace(savename.begin(), savename.end(), ' ', '_');
// TODO: This will lose underscores, is that a problem?
// strip spaces from name
std::string savename = name;
replace(savename.begin(), savename.end(), ' ', '_');
data << savename << " " << posx << " " << posy;
return data.str();
data << savename << " " << posx << " " << posy;
return data.str();
}
void basecamp::load_data(std::string const& data)
{
std::stringstream stream(data);
stream >> name >> posx >> posy;
std::stringstream stream(data);
stream >> name >> posx >> posy;
// add space to name
replace(name.begin(), name.end(), '_', ' ');
// add space to name
replace(name.begin(), name.end(), '_', ' ');
}
+12 -12
View File
@@ -6,23 +6,23 @@
class basecamp
{
public:
basecamp();
basecamp(std::string const& name_, int const posx_, int const posy_);
basecamp();
basecamp(std::string const& name_, int const posx_, int const posy_);
inline bool is_valid() const { return !name.empty(); }
inline int board_x() const { return posx; }
inline int board_y() const { return posy; }
inline std::string const& camp_name() const { return name; }
inline bool is_valid() const { return !name.empty(); }
inline int board_x() const { return posx; }
inline int board_y() const { return posy; }
inline std::string const& camp_name() const { return name; }
std::string board_name() const;
std::string board_name() const;
// Save/load
std::string save_data() const;
void load_data(std::string const& data);
// Save/load
std::string save_data() const;
void load_data(std::string const& data);
private:
std::string name;
int posx, posy; // location of associated bulletin board
std::string name;
int posx, posy; // location of associated bulletin board
};
+66 -93
View File
@@ -6,7 +6,7 @@
#include "item.h"
#include "bionics.h"
#include "line.h"
#include "catajson.h"
#include "json.h"
#include <math.h> //sqrt
#include <algorithm> //std::min
@@ -20,13 +20,12 @@ std::vector<bionic_id> unpowered_bionics;
void bionics_install_failure(game *g, player *u, it_bionic* type, int success);
bionic_data::bionic_data(std::string new_name, bool new_power_source, bool new_activated,
int new_power_cost, int new_charge_time, std::string new_description, bool new_faulty){
int new_power_cost, int new_charge_time, std::string new_description, bool new_faulty) : description(new_description){
name = new_name;
power_source = new_power_source;
activated = new_activated;
power_cost = new_power_cost;
charge_time = new_charge_time;
description = new_description;
faulty = new_faulty;
}
@@ -38,6 +37,7 @@ bionic_id game::random_good_bionic() const
random_bionic = bionics.begin();
std::advance(random_bionic,rng(0,bionics.size()-1));
} while (random_bionic->first == "bio_null" || random_bionic->second->faulty);
// TODO: remove bio_null
return random_bionic->first;
}
@@ -92,7 +92,7 @@ void player::power_bionics(game *g)
active.push_back(my_bionics[i]);
}
nc_color type;
if (passive.size() > 0) {
if (!passive.empty()) {
mvwprintz(wBio, 3, 1, c_ltblue, _("Passive:"));
for (int i = 0; i < passive.size(); i++) {
if (bionics[passive[i].id]->power_source)
@@ -103,7 +103,7 @@ void player::power_bionics(game *g)
mvwprintz(wBio, 4 + i, 3, type, bionics[passive[i].id]->name.c_str());
}
}
if (active.size() > 0) {
if (!active.empty()) {
mvwprintz(wBio, 3, 33, c_ltblue, _("Active:"));
for (int i = 0; i < active.size(); i++) {
if (active[i].powered && !bionics[active[i].id]->power_source)
@@ -162,7 +162,7 @@ void player::power_bionics(game *g)
You can not activate %s! To read a description of \
%s, press '!', then '%c'."), bionics[tmp->id]->name.c_str(),
bionics[tmp->id]->name.c_str(), tmp->invlet);
} else { // Describing bionics, not activating them!
} else { // Describing bionics, not activating them!
// Clear the lines first
ch = 0;
werase(w_description);
@@ -215,8 +215,7 @@ void player::activate_bionic(int b, game *g)
std::vector<point> traj;
std::vector<std::string> good;
std::vector<std::string> bad;
WINDOW* w;
int dirx, diry, t, l, index;
int dirx, diry;
item tmp_item;
if(bio.id == "bio_painkiller"){
@@ -225,7 +224,8 @@ void player::activate_bionic(int b, game *g)
if (pkill > pain)
pkill = pain;
} else if (bio.id == "bio_nanobots"){
healall(4);
rem_disease("bleed");
healall(4);
} else if (bio.id == "bio_night"){
if (g->turn % 5)
g->add_msg(_("Artificial night generator active!"));
@@ -234,7 +234,7 @@ void player::activate_bionic(int b, game *g)
for (int i = posx - 1; i <= posx + 1; i++) {
for (int j = posy - 1; j <= posy + 1; j++) {
g->m.bash(i, j, 40, junk);
g->m.bash(i, j, 40, junk); // Multibash effect, so that doors &c will fall
g->m.bash(i, j, 40, junk); // Multibash effect, so that doors &c will fall
g->m.bash(i, j, 40, junk);
if (g->m.is_destructable(i, j) && rng(1, 10) >= 4)
g->m.ter_set(i, j, t_rubble);
@@ -250,7 +250,7 @@ void player::activate_bionic(int b, game *g)
hurt(g, bp_arms, 1, rng(5, 10));
hurt(g, bp_legs, 0, rng(7, 12));
hurt(g, bp_legs, 1, rng(7, 12));
hurt(g, bp_torso, 0, rng(5, 15));
hurt(g, bp_torso, -1, rng(5, 15));
}
if (one_in(5))
add_disease("teleglow", rng(50, 400));
@@ -260,7 +260,7 @@ void player::activate_bionic(int b, game *g)
}
// TODO: More stuff here (and bio_blood_filter)
else if(bio.id == "bio_blood_anal"){
w = newwin(20, 40, 3 + ((TERMY > 25) ? (TERMY-25)/2 : 0), 10+((TERMX > 80) ? (TERMX-80)/2 : 0));
WINDOW* w = newwin(20, 40, 3 + ((TERMY > 25) ? (TERMY-25)/2 : 0), 10+((TERMX > 80) ? (TERMX-80)/2 : 0));
wborder(w, LINE_XOXO, LINE_XOXO, LINE_OXOX, LINE_OXOX,
LINE_OXXO, LINE_OOXX, LINE_XXOO, LINE_XOOX );
if (has_disease("fungus"))
@@ -301,7 +301,7 @@ void player::activate_bionic(int b, game *g)
good.push_back(_("Antihistamines"));
if (has_disease("adrenaline"))
good.push_back(_("Adrenaline Spike"));
if (good.size() == 0 && bad.size() == 0)
if (good.empty() && bad.empty())
mvwprintz(w, 1, 1, c_white, _("No effects."));
else {
for (int line = 1; line < 39 && line <= good.size() + bad.size(); line++) {
@@ -345,7 +345,7 @@ void player::activate_bionic(int b, game *g)
{
inv.push_back(water);
water = inv.item_by_type(water.typeId());
eat(g, water.invlet);
consume(g, water.invlet);
moves -= 350;
}
else
@@ -353,7 +353,7 @@ void player::activate_bionic(int b, game *g)
power_level += bionics["bio_evap"]->power_cost;
}
} else if(bio.id == "bio_lighter"){
if(!g->choose_adjacent(_("Start a fire"), dirx, diry) ||
if(!g->choose_adjacent(_("Start a fire where?"), dirx, diry) ||
(!g->m.add_field(g, dirx, diry, fd_fire, 1))){
g->add_msg_if_player(this,_("You can't light a fire there."));
power_level += bionics["bio_lighter"]->power_cost;
@@ -362,7 +362,7 @@ void player::activate_bionic(int b, game *g)
} else if(bio.id == "bio_claws"){
if (weapon.type->id == "bio_claws_weapon") {
g->add_msg(_("You withdraw your claws."));
weapon = get_combat_style();
weapon = ret_null;
} else if(weapon.type->id != "null"){
g->add_msg(_("Your claws extend, forcing you to drop your %s."),
weapon.tname().c_str());
@@ -391,7 +391,7 @@ void player::activate_bionic(int b, game *g)
g->plfire(false);
weapon = tmp_item;
} else if (bio.id == "bio_emp"){
if(g->choose_adjacent(_("create an EMP"), dirx, diry))
if(g->choose_adjacent(_("Create an EMP where?"), dirx, diry))
g->emp_blast(dirx, diry);
else{
power_level += bionics["bio_emp"]->power_cost;
@@ -402,24 +402,30 @@ void player::activate_bionic(int b, game *g)
} else if (bio.id == "bio_water_extractor"){
bool extracted = false;
for (int i = 0; i < g->m.i_at(posx, posy).size(); i++) {
item tmp = g->m.i_at(posx, posy)[i];
if (tmp.type->id == "corpse" && query_yn(_("Extract water from the %s"),
tmp.tname().c_str())) {
item water = item(g->itypes["water_clean"], 0);
if (g->handle_liquid(water, true, true))
{
moves -= 100;
}
else if (query_yn(_("Drink directly from the condensor?")))
{
inv.push_back(water);
water = inv.item_by_type(water.typeId());
eat(g, water.invlet);
moves -= 350;
}
extracted = true;
break;
}
item & tmp = g->m.i_at(posx, posy)[i];
if (tmp.type->id == "corpse" ) {
int avail=0;
if ( tmp.item_vars.find("remaining_water") != tmp.item_vars.end() ) {
avail = atoi ( tmp.item_vars["remaining_water"].c_str() );
} else {
avail = tmp.volume() / 2;
}
if(avail > 0 && query_yn(_("Extract water from the %s"), tmp.tname().c_str())) {
item water = item(g->itypes["water_clean"], 0);
if (g->handle_liquid(water, true, true)) {
moves -= 100;
} else if (query_yn(_("Drink directly from the condensor?"))) {
inv.push_back(water);
water = inv.item_by_type(water.typeId());
consume(g, water.invlet);
moves -= 350;
}
extracted = true;
avail--;
tmp.item_vars["remaining_water"] = string_format("%d",avail);
break;
}
}
}
if (!extracted)
power_level += bionics["bio_water_extractor"]->power_cost;
@@ -427,6 +433,7 @@ void player::activate_bionic(int b, game *g)
for (int i = posx - 10; i <= posx + 10; i++) {
for (int j = posy - 10; j <= posy + 10; j++) {
if (g->m.i_at(i, j).size() > 0) {
int t; //not sure why map:sees really needs this, but w/e
if (g->m.sees(i, j, posx, posy, -1, t))
traj = line_to(i, j, posx, posy, t);
else
@@ -435,10 +442,11 @@ void player::activate_bionic(int b, game *g)
traj.insert(traj.begin(), point(i, j));
for (int k = 0; k < g->m.i_at(i, j).size(); k++) {
if (g->m.i_at(i, j)[k].made_of("iron") || g->m.i_at(i, j)[k].made_of("steel")){
int l = 0;
tmp_item = g->m.i_at(i, j)[k];
g->m.i_rem(i, j, k);
for (l = 0; l < traj.size(); l++) {
index = g->mon_at(traj[l].x, traj[l].y);
int index = g->mon_at(traj[l].x, traj[l].y);
if (index != -1) {
if (g->zombie(index).hurt(tmp_item.weight() / 225))
g->kill_mon(index, true);
@@ -460,7 +468,7 @@ void player::activate_bionic(int b, game *g)
}
}
} else if(bio.id == "bio_lockpick"){
if(!g->choose_adjacent(_("Activate your bio lockpick"), dirx, diry)){
if(!g->choose_adjacent(_("Activate your bio lockpick where?"), dirx, diry)){
power_level += bionics["bio_lockpick"]->power_cost;
return;
}
@@ -511,7 +519,7 @@ bool player::install_bionics(game *g, it_bionic* type)
// we will base chance_of_success on a ratio of skill and difficulty
// when skill=difficulty, this gives us 1. skill < difficulty gives a fraction.
float skill_difficulty_parameter = adjusted_skill / (4.0 * type->difficulty);
float skill_difficulty_parameter = float(adjusted_skill / (4.0 * type->difficulty));
// when skill == difficulty, chance_of_success is 50%. Chance of success drops quickly below that
// to reserve bionics for characters with the appropriate skill. For more difficult bionics, the
@@ -529,9 +537,9 @@ bool player::install_bionics(game *g, it_bionic* type)
}
}
practice(g->turn, "electronics", (100 - chance_of_success) * 1.5);
practice(g->turn, "firstaid", (100 - chance_of_success) * 1.0);
practice(g->turn, "mechanics", (100 - chance_of_success) * 0.5);
practice(g->turn, "electronics", int((100 - chance_of_success) * 1.5));
practice(g->turn, "firstaid", int((100 - chance_of_success) * 1.0));
practice(g->turn, "mechanics", int((100 - chance_of_success) * 0.5));
int success = chance_of_success - rng(1, 100);
if (success > 0) {
g->u.add_memorial_log(_("Installed bionic: %s."), bionics[type->id]->name.c_str());
@@ -571,7 +579,7 @@ void bionics_install_failure(game *g, player *u, it_bionic* type, int success)
// this is scaled up or down by the ratio of difficulty/skill. At high skill levels (or low
// difficulties), only minor consequences occur. At low skill levels, severe consequences
// are more likely.
int failure_level = sqrt(success * 4.0 * type->difficulty / float (adjusted_skill));
int failure_level = int(sqrt(success * 4.0 * type->difficulty / float (adjusted_skill)));
int fail_type = (failure_level > 5 ? 5 : failure_level);
if (fail_type <= 0) {
@@ -608,7 +616,7 @@ void bionics_install_failure(game *g, player *u, it_bionic* type, int success)
} else {
g->add_msg(_("Some of your existing bionics are lost!"));
}
for (int i = 0; i < failure_level && u->remove_random_bionic(); i++);
for (int i = 0; i < failure_level && u->remove_random_bionic(); i++) ;
break;
case 4:
@@ -628,7 +636,7 @@ void bionics_install_failure(game *g, player *u, it_bionic* type, int success)
valid.push_back(*it);
}
}
if (valid.size() == 0) { // We've got all the bad bionics!
if (valid.empty()) { // We've got all the bad bionics!
if (u->max_power_level > 0) {
int old_power = u->max_power_level;
g->add_msg(_("You lose power capacity!"));
@@ -646,57 +654,22 @@ void bionics_install_failure(game *g, player *u, it_bionic* type, int success)
}
}
void game::init_bionics() throw (std::string)
void load_bionic(JsonObject &jsobj)
{
catajson bionics_file("data/raw/bionics.json");
std::string id = jsobj.get_string("id");
std::string name = _(jsobj.get_string("name").c_str());
std::string description = _(jsobj.get_string("description").c_str());
int cost = jsobj.get_int("cost", 0);
int time = jsobj.get_int("time", 0);
bool faulty = jsobj.get_bool("faulty", false);
bool power_source = jsobj.get_bool("power_source", false);
bool active = jsobj.get_bool("active", false);
if(!json_good())
{
throw (std::string)"data/raw/bionics.json was not found";
}
if (faulty) { faulty_bionics.push_back(id); }
if (power_source) { power_source_bionics.push_back(id); }
if (!active && id != "bio_null") { unpowered_bionics.push_back(id); }
for(bionics_file.set_begin(); bionics_file.has_curr(); bionics_file.next())
{
catajson bio = bionics_file.curr();
std::set<std::string> tags;
if(bio.has("flags"))
{
tags = bio.get("flags").as_tags();
}
// set up all the bionic parameters
std::string id = bio.get("id").as_string();
std::string name = _(bio.get("name").as_string().c_str());
int cost = bio.get("cost").as_int();
int time = bio.get("time").as_int();
std::string description = _(bio.get("description").as_string().c_str());
bool faulty = (tags.find("FAULTY") != tags.end());
bool powersource = (tags.find("POWER") != tags.end());
bool active = (tags.find("ACTIVE") != tags.end());
bionics[id] = new bionic_data(name, powersource, active, cost, time, description, faulty);
// Don't add bio_null to any vectors.
if(id != "bio_null")
{
if(faulty)
{
faulty_bionics.push_back(id);
}
else if(powersource)
{
power_source_bionics.push_back(id);
}
else if(!active)
{
unpowered_bionics.push_back(id);
}
}
}
if(!json_good())
throw (std::string)"There was an error reading data/raw/bionics.json";
bionics[id] = new bionic_data(name, power_source, active, cost, time, description, faulty);
//dout(D_INFO) << "Loaded bionic: " << name << "\n";
}
+9 -7
View File
@@ -1,5 +1,6 @@
#ifndef _BIONICS_H_
#define _BIONICS_H_
#include "json.h"
#include <string>
#include <map>
@@ -15,11 +16,11 @@ public:
std::string name;
bool power_source;
bool activated; // If true, then the below function only happens when
// activated; otherwise, it happens every turn
bool activated; // If true, then the below function only happens when
// activated; otherwise, it happens every turn
int power_cost;
int charge_time; // How long, when activated, between drawing power_cost
// If 0, it draws power once
int charge_time; // How long, when activated, between drawing power_cost
// If 0, it draws power once
std::string description;
bool faulty; // Whether or not the bionic is faulty
};
@@ -29,13 +30,12 @@ struct bionic {
char invlet;
bool powered;
int charge;
bionic() {
id = "bio_batteries";
bionic() : id("bio_batteries") {
invlet = 'a';
powered = false;
charge = 0;
}
bionic(bionic_id pid, char pinvlet) {
bionic(bionic_id pid, char pinvlet) : id(pid) {
id = pid;
invlet = pinvlet;
powered = false;
@@ -48,4 +48,6 @@ extern std::vector<bionic_id> faulty_bionics;
extern std::vector<bionic_id> power_source_bionics;
extern std::vector<bionic_id> unpowered_bionics;
void load_bionic(JsonObject &jsobj); // load a bionic from JSON
#endif
+45 -13
View File
@@ -57,18 +57,50 @@ std::string encumb_text(body_part bp)
}
}
body_part random_body_part()
body_part random_body_part(bool main_parts_only)
{
int rn = rng(0, 100);
if (rn == 0)
return bp_eyes;
if (rn <= 1)
return bp_mouth;
if (rn <= 7)
return bp_head;
if (rn <= 28)
return bp_legs;
if (rn <= 50)
return bp_arms;
return bp_torso;
int rn = rng(0, 100);
if (!main_parts_only) {
if (rn == 0)
return bp_eyes;
if (rn <= 1)
return bp_mouth;
if (rn <= 7)
return bp_head;
if (rn <= 24)
return bp_legs;
if (rn <= 30)
return bp_feet;
if (rn <= 47)
return bp_arms;
if (rn <= 53)
return bp_hands;
return bp_torso;
} else {
if (rn <= 7)
return bp_head;
if (rn <= 30)
return bp_legs;
if (rn <= 53)
return bp_arms;
return bp_torso;
}
}
int random_side(body_part bp)
{
switch (bp) {
case bp_torso:
case bp_head:
case bp_eyes:
case bp_mouth:
return -1;
case bp_arms:
case bp_hands:
case bp_legs:
case bp_feet:
return rng(0, 1);
default:
return rng(0, 1);
}
}
+2 -1
View File
@@ -18,6 +18,7 @@ enum body_part {
std::string body_part_name(body_part bp, int side);
std::string encumb_text(body_part bp);
body_part random_body_part();
body_part random_body_part(bool main_parts_only = false);
int random_side(body_part);
#endif
+1083 -203
View File
File diff suppressed because it is too large Load Diff
+25 -3
View File
@@ -7,13 +7,18 @@
struct mapgendata
{
public:
oter_id t_nesw[4];
oter_id t_nesw[8];
int n_fac; // dir == 0
int e_fac; // dir == 1
int s_fac; // dir == 2
int w_fac; // dir == 3
int ne_fac; // dir == 4
int se_fac; // dir == 5
int nw_fac; // dir == 6
int sw_fac; // dir == 7
mapgendata(oter_id north, oter_id east, oter_id south, oter_id west);
mapgendata(oter_id t_north, oter_id t_east, oter_id t_south, oter_id t_west, oter_id t_neast,
oter_id t_seast, oter_id t_nwest, oter_id t_swest);
void set_dir(int dir_in, int val);
void fill(int val);
int& dir(int dir_in);
@@ -26,7 +31,24 @@ ter_id dirt_or_pile();
void mapgen_null(map *m);
void mapgen_crater(map *m, mapgendata dat);
void mapgen_field(map *m, int turn);
void mapgen_dirtlot(map *m, game *g);
void mapgen_dirtlot(map *m);
void mapgen_forest_general(map *m, oter_id terrain_type, mapgendata dat, int turn);
void mapgen_hive(map *m, mapgendata dat, int turn);
void mapgen_spider_pit(map *m, mapgendata dat, int turn);
void mapgen_fungal_bloom(map *m);
void mapgen_road_straight(map *m, oter_id terrain_type, mapgendata dat, int turn, float density);
void mapgen_road_curved(map *m, oter_id terrain_type, mapgendata dat, int turn, float density);
void mapgen_road_tee(map *m, oter_id terrain_type, mapgendata dat, int turn, float density);
void mapgen_road_four_way(map *m, oter_id terrain_type, mapgendata dat, int turn, float density);
void mapgen_field(map *m, int turn);
void mapgen_bridge(map *m, oter_id terrain_type, int turn);
void mapgen_highway(map *m, oter_id terrain_type, int turn);
void mapgen_river_curved_not(map *m, oter_id terrain_type);
void mapgen_river_straight(map *m, oter_id terrain_type);
void mapgen_river_curved(map *m, oter_id terrain_type);
void mapgen_parking_lot(map *m, oter_id terrain_type, mapgendata dat, int turn);
void mapgen_pool(map *m);
void mapgen_park(map *m);
void mapgen_gas_station(map *m, oter_id terrain_type, int turn, float density);
#endif
+4 -4
View File
@@ -39,7 +39,7 @@ 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["SEASON_LENGTH"];
int season_param = int(day_param / OPTIONS["SEASON_LENGTH"]);
second = 6 * (turn % 10);
minute = minute_param % 60;
hour = hour_param % 24;
@@ -90,7 +90,7 @@ 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["SEASON_LENGTH"];
int season_param = int(day_param / OPTIONS["SEASON_LENGTH"]);
second = 6 * (rhs % 10);
minute = minute_param % 60;
hour = hour_param % 24;
@@ -220,7 +220,7 @@ void calendar::standardize()
}
int tmpseason = int(season);
if (day >= OPTIONS["SEASON_LENGTH"]) {
tmpseason += day / OPTIONS["SEASON_LENGTH"];
tmpseason += int(day / OPTIONS["SEASON_LENGTH"]);
day %= (int)OPTIONS["SEASON_LENGTH"];
}
if (tmpseason >= 4) {
@@ -239,7 +239,7 @@ int calendar::minutes_past_midnight() const
moon_phase calendar::moon() const
{
int phase = day / (OPTIONS["SEASON_LENGTH"] / 4);
int phase = int(day / (OPTIONS["SEASON_LENGTH"] / 4));
//phase %= 4; Redundant?
if (phase == 3)
return MOON_HALF;
+412 -349
View File
File diff suppressed because it is too large Load Diff
+72 -14
View File
@@ -19,10 +19,10 @@
#include "game.h"
#include "options.h"
#include "catajson.h"
#include "mapdata.h"
#include "tile_id_data.h"
#include "enums.h"
#include "file_finder.h"
@@ -61,16 +61,6 @@ struct tile
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
@@ -90,6 +80,8 @@ enum MULTITILE_TYPE
t_connection,
end_piece,
unconnected,
open_,
broken,
num_multitile_types
};
@@ -100,6 +92,40 @@ typedef std::map<std::string, tile_type*> tile_id_map;
typedef tile_map::iterator tile_iterator;
typedef tile_id_map::iterator tile_id_iterator;
// Cache of a single tile, used to avoid redrawing what didn't change.
struct tile_drawing_cache {
tile_drawing_cache() { };
// Sprite indices drawn on this tile.
// The same indices in a different order need to be drawn differently!
std::vector<tile_type*> sprites;
std::vector<int> rotations;
bool operator==(const tile_drawing_cache& other) const {
if(sprites.size() != other.sprites.size()) {
return false;
} else {
for(int i=0; i<sprites.size(); i++) {
if(sprites[i] != other.sprites[i] || rotations[i] != other.rotations[i]) {
return false;
}
}
}
return true;
}
bool operator!=(const tile_drawing_cache& other) const {
return !(this->operator==(other));
}
void operator=(const tile_drawing_cache& other) {
this->sprites = other.sprites;
this->rotations = other.rotations;
}
};
class cata_tiles
{
public:
@@ -111,15 +137,25 @@ class cata_tiles
void load_tileset(std::string path);
/** Load tileset config file */
void load_tilejson(std::string path);
void load_tilejson_from_file(std::ifstream *f);
/* 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);
/** How many rows and columns of tiles fit into given dimensions **/
void get_window_tile_counts(const int width, const int height, int &columns, int &rows) const;
int get_tile_width() const;
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);
/**
* Redraws all the tiles that have changed since the last frame.
*/
void apply_changes();
/** 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);
@@ -142,6 +178,8 @@ class cata_tiles
bool draw_vpart(int x, int y);
bool draw_entity(int x, int y);
bool draw_item_highlight(int x, int y);
// Animation layers
bool draw_hit(int x, int y);
@@ -157,6 +195,10 @@ class cata_tiles
void draw_hit_frame(int destx, int desty, int centerx, int centery, int width, int height);
void void_hit();
void init_draw_footsteps(std::queue<point> steps);
void draw_footsteps_frame(int destx, int desty, int centerx, int centery, int width, int height);
void void_footsteps();
// 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);
@@ -169,11 +211,23 @@ class cata_tiles
/** Overmap Layer : Not used for now, do later*/
bool draw_omap();
/**
* Scroll the map widget by (x, y)
*
* scroll(1, 1) would move the view one to the right and one down.
*
* Useful for keeping part of the previous "frame" and redrawing
* only what changed.
*/
void scroll(int x, int y);
/** 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);
/* Reinitializes the tile context using the original screen information */
void reinit(std::string load_file_path);
void get_tile_information(std::string dir_path, std::string &json_path, std::string &tileset_path);
/** Lighting */
void init_light();
LIGHTING light_at(int x, int y);
@@ -197,6 +251,7 @@ class cata_tiles
bool do_draw_hit;
bool do_draw_line;
bool do_draw_weather;
bool do_draw_footsteps;
int exp_pos_x, exp_pos_y, exp_rad;
@@ -214,6 +269,10 @@ class cata_tiles
weather_printable anim_weather;
std::string weather_name;
std::queue<point> footsteps;
std::map<point, tile_drawing_cache> cache;
std::map<point, tile_drawing_cache> tiles_to_draw_this_frame;
// offset values
int o_x, o_y;
@@ -231,9 +290,8 @@ class cata_tiles
boomered,
sight_impaired,
bionight_bionic_active;
int last_pos_x, last_pos_y;
tile_rotation *tile_rotations;
};
#endif // CATA_TILES_H
+33 -32
View File
@@ -133,7 +133,7 @@ int utf8_width(const char* s)
{
unsigned ch = UTF8_getch(&ptr, &len);
if(ch!=UNKNOWN_UNICODE) {
w += mk_wcwidth((wchar_t)ch);
w += mk_wcwidth(ch);
} else {
continue;
}
@@ -148,23 +148,24 @@ int utf8_width(const char* s)
// 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;
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(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;
i+=len;
if(cw<=0) cw=1;
c+=cw;
if(c<=cursorx) *p = i;
}
return i;
}
//Erase character by unicode char width.
@@ -176,15 +177,16 @@ int erease_utf8_by_cw( char* t, int cw, int clen, int maxlen)
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;
const char* utf8str = t+i;
int len = ANY_LENGTH;
unsigned ch = UTF8_getch(&utf8str, &len);
int cw = mk_wcwidth(ch);
len = ANY_LENGTH-len;
if(len<=0) len=1;
i+=len;
if(cw<=0) cw=1;
c+=cw;
i+=len;
if(cw<=0) cw=1;
c+=cw;
}
if(cw==c && clen==i)
{
@@ -215,12 +217,11 @@ std::string utf8_substr(std::string s, int start, int size)
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;
const char* ts = buf+pos;
int l = ANY_LENGTH;
unsigned tc = UTF8_getch(&ts, &l);
int tw = mk_wcwidth(tc);
erease_utf8_by_cw(buf+pos, tw, tw, len-pos-1);
}
if(size>0)
@@ -231,7 +232,7 @@ std::string utf8_substr(std::string s, int start, int size)
const char* ts = buf+pos;
int l = ANY_LENGTH;
unsigned tc = UTF8_getch(&ts, &l);
int tw = mk_wcwidth((wchar_t)tc);
int tw = mk_wcwidth(tc);
erease_utf8_by_cw(buf+pos, tw, tw, len-pos-1);
end = pos+tw-1;
}
+2 -2
View File
@@ -1,6 +1,6 @@
#ifndef CATACHARSET_H
#define CATACHARSET_H
#include <wchar.h>
#include <stdint.h>
#include <string>
#define ANY_LENGTH 5
#define UNKNOWN_UNICODE 0xFFFD
@@ -8,7 +8,7 @@
// 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);
int mk_wcwidth(uint32_t ucs);
// convert cursorx value to byte position
int cursorx_to_position(const char* line, int cursorx, int* prevppos=NULL);
//erease for characters insertion
+57 -43
View File
@@ -11,24 +11,32 @@
#include "mmsystem.h"
#endif
#include <stdio.h>
typedef int chtype;
typedef unsigned short attr_t;
#include <map>
#include <vector>
#include "json.h"
#include "input_defs.h"
typedef int chtype;
typedef unsigned short attr_t;
typedef unsigned int u_int32_t;
#define __CHARTEXT 0x000000ff /* bits for 8-bit characters */ //<---------not used
#define __NORMAL 0x00000000 /* Added characters are normal. */ //<---------not used
#define __STANDOUT 0x00000100 /* Added characters are standout. */ //<---------not used
#define __UNDERSCORE 0x00000200 /* Added characters are underscored. */ //<---------not used
#define __REVERSE 0x00000400 /* Added characters are reverse //<---------not used
video. */
#define __BLINK 0x00000800 /* Added characters are blinking. */
#define __DIM 0x00001000 /* Added characters are dim. */ //<---------not used
#define __BOLD 0x00002000 /* Added characters are bold. */
#define __BLANK 0x00004000 /* Added characters are blanked. */ //<---------not used
#define __PROTECT 0x00008000 /* Added characters are protected. */ //<---------not used
#define __ALTCHARSET 0x00010000 /* Added characters are ACS */ //<---------not used
#define __COLOR 0x03fe0000 /* Color bits */
#define __ATTRIBUTES 0x03ffff00 /* All 8-bit attribute bits */ //<---------not used
// TODO: remove unused stuff
#define __CHARTEXT 0x000000ff /* bits for 8-bit characters */ //<---------not used
#define __NORMAL 0x00000000 /* Added characters are normal. */ //<---------not used
#define __STANDOUT 0x00000100 /* Added characters are standout. */ //<---------not used
#define __UNDERSCORE 0x00000200 /* Added characters are underscored. */ //<---------not used
#define __REVERSE 0x00000400 /* Added characters are reverse //<---------not used
video. */
#define __BLINK 0x00000800 /* Added characters are blinking. */
#define __DIM 0x00001000 /* Added characters are dim. */ //<---------not used
#define __BOLD 0x00002000 /* Added characters are bold. */
#define __BLANK 0x00004000 /* Added characters are blanked. */ //<---------not used
#define __PROTECT 0x00008000 /* Added characters are protected. */ //<---------not used
#define __ALTCHARSET 0x00010000 /* Added characters are ACS */ //<---------not used
#define __COLOR 0x03fe0000 /* Color bits */
#define __ATTRIBUTES 0x03ffff00 /* All 8-bit attribute bits */ //<---------not used
//a pair of colors[] indexes, foreground and background
typedef struct
@@ -70,31 +78,31 @@ typedef struct {
} WINDOW;
#define A_NORMAL __NORMAL
#define A_STANDOUT __STANDOUT
#define A_UNDERLINE __UNDERSCORE
#define A_REVERSE __REVERSE
#define A_BLINK __BLINK
#define A_DIM __DIM
#define A_BOLD __BOLD
#define A_BLANK __BLANK
#define A_PROTECT __PROTECT
#define A_ALTCHARSET __ALTCHARSET
#define A_ATTRIBUTES __ATTRIBUTES
#define A_CHARTEXT __CHARTEXT
#define A_COLOR __COLOR
#define A_NORMAL __NORMAL
#define A_STANDOUT __STANDOUT
#define A_UNDERLINE __UNDERSCORE
#define A_REVERSE __REVERSE
#define A_BLINK __BLINK
#define A_DIM __DIM
#define A_BOLD __BOLD
#define A_BLANK __BLANK
#define A_PROTECT __PROTECT
#define A_ALTCHARSET __ALTCHARSET
#define A_ATTRIBUTES __ATTRIBUTES
#define A_CHARTEXT __CHARTEXT
#define A_COLOR __COLOR
#define COLOR_BLACK 0x00 //RGB{0,0,0}
#define COLOR_RED 0x01 //RGB{196, 0, 0}
#define COLOR_GREEN 0x02 //RGB{0,196,0}
#define COLOR_YELLOW 0x03 //RGB{196,180,30}
#define COLOR_BLUE 0x04 //RGB{0, 0, 196}
#define COLOR_MAGENTA 0x05 //RGB{196, 0, 180}
#define COLOR_CYAN 0x06 //RGB{0, 170, 200}
#define COLOR_WHITE 0x07 //RGB{196, 196, 196}
#define COLOR_BLACK 0x00 //RGB{0,0,0}
#define COLOR_RED 0x01 //RGB{196, 0, 0}
#define COLOR_GREEN 0x02 //RGB{0,196,0}
#define COLOR_YELLOW 0x03 //RGB{196,180,30}
#define COLOR_BLUE 0x04 //RGB{0, 0, 196}
#define COLOR_MAGENTA 0x05 //RGB{196, 0, 180}
#define COLOR_CYAN 0x06 //RGB{0, 170, 200}
#define COLOR_WHITE 0x07 //RGB{196, 196, 196}
#define COLOR_PAIR(n) ((((u_int32_t)n) << 17) & A_COLOR)
//#define PAIR_NUMBER(n) ((((u_int32_t)n) & A_COLOR) >> 17)
#define COLOR_PAIR(n) ((((u_int32_t)n) << 17) & A_COLOR)
//#define PAIR_NUMBER(n) ((((u_int32_t)n) & A_COLOR) >> 17)
#define KEY_MIN 0x101 /* minimum extended key value */ //<---------not used
#define KEY_BREAK 0x101 /* break key */ //<---------not used
@@ -111,14 +119,13 @@ typedef struct {
/* Curses external declarations. */
#define stdscr 0
//WINDOW *stdscr; //Define this for portability, strscr will basically be window[0] anyways
extern WINDOW *stdscr;
#define getmaxyx(w, y, x) (y = getmaxy(w), x = getmaxx(w))
//Curses Functions
#define ERR (-1) /* Error return. */
#define OK (0) /* Success return. */
#define ERR (-1) // Error return.
#define OK (0) // Success return.
WINDOW *newwin(int nlines, int ncols, int begin_y, int begin_x);
int delwin(WINDOW *win);
int wborder(WINDOW *win, chtype ls, chtype rs, chtype ts, chtype bs, chtype tl, chtype tr, chtype bl, chtype br);
@@ -167,6 +174,8 @@ int getmaxx(WINDOW *win);
int getmaxy(WINDOW *win);
int getbegx(WINDOW *win);
int getbegy(WINDOW *win);
int getcurx(WINDOW *win);
int getcury(WINDOW *win);
int move(int y, int x);
void timeout(int delay);//PORTABILITY, DUMMY FUNCTION
void set_escdelay(int delay);//PORTABILITY, DUMMY FUNCTION
@@ -175,11 +184,16 @@ int noecho(void);
//non-curses functions, Do not call these in the main game code
extern WINDOW* mainwin;
extern pairs *colorpairs;
extern std::map< std::string,std::vector<int> > consolecolors;
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);
input_event getch_kyb_mouse(WINDOW* capture_win = NULL);
int curses_start_color();
#ifdef SDLTILES
void init_tiles();
#endif
#endif
-322
View File
@@ -1,322 +0,0 @@
#include "catajson.h"
#include "output.h"
#include <string>
#include <iostream>
#include <fstream>
#include <sstream>
catajson::catajson()
{
path_msg = "";
}
catajson::catajson(std::string path, bool is_static)
{
std::ifstream file;
file.open(path.c_str());
file >> val;
file.close();
path_msg = path;
std::string err = picojson::get_last_error();
if (! err.empty()) {
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());
}
}
catajson::catajson(picojson::value val_in, std::string path_msg_in)
{
val = val_in;
path_msg = path_msg_in;
}
char catajson::as_char() const
{
std::string temp = as_string();
if (temp.size() != 1)
{
debugmsg("JSON warning at %s: value requested as char, string length is not 1", path_msg.c_str());
}
return temp[0];
}
std::string catajson::as_string() const
{
if (val.is<std::string>())
{
return val.get<std::string>();
}
else
{
debugmsg("JSON error at %s: value is not a string", path_msg.c_str());
}
return "";
}
int catajson::as_int() const
{
double temp = as_double();
int ret = static_cast<int>(temp);
if (ret != temp)
{
debugmsg("JSON warning at %s: value was requested as int, provided as double", path_msg.c_str());
}
return ret;
}
bool catajson::as_bool() const
{
if (val.is<bool>())
{
return val.get<bool>();
}
else
{
debugmsg("JSON error at %s: value is not a boolean", path_msg.c_str());
}
return val.evaluate_as_boolean();
}
double catajson::as_double() const
{
if (val.is<double>())
{
return val.get<double>();
}
else
{
debugmsg("JSON error at %s: value is not numeric", path_msg.c_str());
}
return 0;
}
std::set<std::string> catajson::as_tags()
{
std::set<std::string> tags;
if (is_array())
{
for (set_begin(); has_curr(); next())
{
tags.insert( curr().as_string() );
}
}
else
{
// We should have gotten a string, if not an array.
tags.insert( as_string() );
}
return tags;
}
catajson catajson::get(std::string key) const
{
if (val.is<picojson::object>())
{
if (has(key))
{
return catajson(val.get(key), path_msg + "[" + key + "]");
}
else
{
debugmsg("JSON error at %s[%s]: value does not exist", path_msg.c_str(), key.c_str());
}
}
else
{
debugmsg("JSON error at %s: value is not an object", path_msg.c_str());
}
return catajson();
}
catajson catajson::get(int index) const
{
if (val.is<picojson::array>())
{
if (has(index))
{
std::stringstream text;
text << path_msg << "[" << index << "]";
return catajson(val.get(index), text.str());
}
else
{
debugmsg("JSON error at %s[%d]: value does not exist", path_msg.c_str(), index);
}
}
else
{
debugmsg("JSON error at %s: value is not an array", path_msg.c_str());
}
return catajson();
}
bool catajson::has(std::string key) const
{
if (val.is<picojson::object>())
{
return val.contains(key);
}
else
{
debugmsg("JSON error at %s: value is not an object", path_msg.c_str());
}
return false;
}
bool catajson::has(int index) const
{
if (val.is<picojson::array>())
{
return val.contains(index);
}
else
{
debugmsg("JSON error at %s: value is not an array", path_msg.c_str());
}
return false;
}
bool catajson::is_char() const
{
return is_string() && as_string().size() == 1;
}
bool catajson::is_string() const
{
return val.is<std::string>();
}
bool catajson::is_number() const
{
return val.is<double>();
}
bool catajson::is_bool() const
{
return val.is<bool>();
}
bool catajson::is_object() const
{
return val.is<picojson::object>();
}
bool catajson::is_array() const
{
return val.is<picojson::array>();
}
void catajson::set_begin()
{
if (val.is<picojson::array>())
{
ar_iter = val.get<picojson::array>().begin();
}
else if (val.is<picojson::object>())
{
obj_iter = val.get<picojson::object>().begin();
}
else
{
debugmsg("JSON error at %s: cannot call set_begin(), value is not an array or object", path_msg.c_str());
}
}
void catajson::set_end()
{
if (val.is<picojson::array>())
{
ar_iter = val.get<picojson::array>().end();
}
else if (val.is<picojson::object>())
{
obj_iter = val.get<picojson::object>().end();
}
else
{
debugmsg("JSON error at %s: cannot call set_end(), value is not an array or object", path_msg.c_str());
}
}
void catajson::next()
{
if (val.is<picojson::array>())
{
++ar_iter;
}
else if (val.is<picojson::object>())
{
++obj_iter;
}
else
{
debugmsg("JSON error at %s: tried to iterate an invalid value", path_msg.c_str());
}
}
void catajson::prev()
{
if (val.is<picojson::array>())
{
--ar_iter;
}
else if (val.is<picojson::object>())
{
--obj_iter;
}
else
{
debugmsg("JSON error at %s: tried to iterate an invalid value", path_msg.c_str());
}
}
bool catajson::has_curr() const
{
if (val.is<picojson::array>())
{
if (ar_iter >= val.get<picojson::array>().begin() && ar_iter < val.get<picojson::array>().end())
{
return true;
}
}
else if (val.is<picojson::object>())
{
return has(obj_iter->first);
}
else
{
debugmsg("JSON error at %s: not an array or object", path_msg.c_str());
}
return false;
}
catajson catajson::curr() const
{
if (val.is<picojson::array>())
{
const int count = val.get<picojson::array>().size();
for (int i = 0; i < count; ++i)
{
if (val.get(i) == *ar_iter)
{
return get(i);
}
}
}
else if (val.is<picojson::object>())
{
return get(obj_iter->first);
}
else
{
debugmsg("JSON error at %s: not an array or object", path_msg.c_str());
}
return catajson();
}
-55
View File
@@ -1,55 +0,0 @@
#ifndef _CATAJSON_H_
#define _CATAJSON_H_
#include "picojson.h"
#include <set>
class catajson
{
public:
catajson();
catajson(std::string path, bool is_static = false);
catajson(picojson::value val, std::string path_msg);
// accessors for picojson values containing simple types
char as_char() const;
std::string as_string() const;
int as_int() const;
bool as_bool() const;
double as_double() const;
// accessor for not-so-simple type
std::set<std::string> as_tags();
// accessors in the case of array or object values
catajson get(std::string key) const;
catajson get(int index) const;
//these check whether a given key/index is valid
bool has(std::string key) const;
bool has(int index) const;
bool is_char() const;
bool is_string() const;
bool is_number() const; // double OR int
bool is_bool() const;
bool is_object() const; // string-value pairs
bool is_array() const;
// these are intended for use in iteration
// STL-style iterators are acceptable too, if anyone wants to add them
void set_begin(); // start iterating from the beginning
void set_end(); // start iterating from the end
void next(); // caller's responsibility to init first
void prev(); // caller's responsibility to init first
bool has_curr() const; // would curr() be valid?
catajson curr() const; // get the current element
private:
picojson::value val;
picojson::array::const_iterator ar_iter;
picojson::object::const_iterator obj_iter;
std::string path_msg; // used for error messages
};
#define json_good() picojson::get_last_error().empty()
#endif
+23
View File
@@ -0,0 +1,23 @@
#include "char_validity_check.h"
/**
* Returns whether or not the given (ASCII) character is usable.
* Called to check player name validity and world name validity.
* Only printable symbols not reserved by the filesystem are
* permitted.
* @param ch The char to check.
* @return true if the char is allowed in a name, false if not.
*/
bool is_char_allowed(char ch) {
//Allow everything EXCEPT the following reserved characters:
return (ch > 31 //0-31 are control characters
&& ch < 127 //DEL character
&& ch != '/' && ch != '\\' //Path separators
&& ch != '?' && ch != '*' && ch != '%' //Wildcards
&& ch != ':' //Mount point/drive marker
&& ch != '|' //Output pipe
&& ch != '"' //Filename (with spaces) marker
&& ch != '>' && ch != '<'); //Input/output redirection
}
+6
View File
@@ -0,0 +1,6 @@
#ifndef _CHAR_VALIDITY_CHECK_H
#define _CHAR_VALIDITY_CHECK_H
bool is_char_allowed(char ch);
#endif // _CHAR_VALIDITY_CHECK_H
-2
View File
@@ -51,7 +51,6 @@ Format: File with definition : Name of enum
* 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
@@ -90,7 +89,6 @@ Format: File with definition : Name of enum
* 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
+76 -33
View File
@@ -27,28 +27,36 @@
* melee.json - anything that doesn't go in the other item jsons, melee weapons
* mods.json - gunmods
##json
* furniture.json - furniture, and features treated like furniture
* terrain.json - terrain types and definitions
#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
"id" : "bio_batteries", // Unique ID. Must be one continuous word,
// use underscores if necessary.
"name" : "Battery System", // In-game name displayed
"active" : false, // Whether the bionic is active or passive (default: passive)
"power_source" : false, // Whether the bionic provides power (default: false)
"faulty" : false, // Whether it is a faulty type (default: false)
"cost" : 0, // How many PUs it costs to use the bionic. (default: 0)
"time" : 0, // How long, when activated, between drawing cost.
// If 0, it draws power once. (default: 0)
"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." // 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+
"messages" : [ // 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++
@@ -60,7 +68,8 @@
["mushroom_poison", 3],
["mushroom_magic", 1],
["blueberries", 3]
]
],
"groups":[] // ?
```
###MATERIALS
```C++
@@ -80,11 +89,16 @@
```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)
"monsters" : [ // To choose monster spawned game creates 1000 entries and picks one.
{ "monster" : "mon_ant_larva", "freq" : 40, "multiplier" : 0 }, // Each monster will have a number of entries equal to it's "freq" and
{ "monster" : "mon_ant_soldier", "freq" : 90, "multiplier" : 5 }, // the default monster will fill in the remaining. "multiplier" increases
{ "monster" : "mon_ant_queen", "freq" : 0, "multiplier" : 0 } // how much each monster counts for in a spawn group (i.e. will spawn 5 larva or 1 soldier)
{ "monster" : "mon_thing", // Monsters id
"freq" : 100, // Chance of occurence, out of a thousand
"multiplier" : 0, // How many monsters each monster in this definition should count as, if spawning a limited number of monsters
"pack_size" : [3,5], // The minimum and maximum number of monsters in this group that should spawn together. Optional, defaults [1,1]
"conditions" : ["TWILIGHT","SUMMER"] // Conditions limiting when monsters spawn. Valid options: SUMMER, WINTER, AUTUMN, SPRING, DAY, NIGHT, DUSK, DAWN, TWILIGHT
}
```
###NAMES
```C++
@@ -123,7 +137,7 @@
"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
"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.
@@ -141,9 +155,8 @@
[ "toolset", -1 ]
],
[
[ "fire", -1 ]
]
],
[ "fire", -1 ]
]],
"components": [ // Equivalent components are surrounded by a single set of brackets
[
[ "spear_wood", 1 ], // Number of charges/items required
@@ -164,10 +177,10 @@
```
###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 "[]"
"ident" : "smg", // Unique ID. Must be one continuous word, use underscores if necessary
"name" : "submachine guns", // In-game name displayed
"description" : "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
"tags" : ["gun_type"] // Special flags (default: none)
```
###SNIPPETS
```C++
@@ -179,15 +192,16 @@
"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
"visibility": 0, // Visibility of the trait for purposes of NPC interaction (default: 0)
"ugliness": 0, // Ugliness of the trait for purposes of NPC interaction (default: 0)
"description": "Nothing gets you down!" // In-game description
"starting_trait": true, // Can be selected at character creation
"valid": false, // Can be mutated ingame
"starting_trait": true, // Can be selected at character creation (default: false)
"valid": false, // Can be mutated ingame (default: true)
"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
"leads_to": [], // Mutations that add to this one
"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
```
@@ -420,3 +434,32 @@
"revert_to": "torch_done", // Transforms into item when charges are expended
"use_action": "TORCH_LIT" // Action performed when tool is used
```
#json jsons
###FURNITURE
```C++
"type": "furniture", //Must always be 'furniture'
"name": "toilet", //Displayed name of the furniture
"symbol": "&", //Symbol displayed
"color": "white", //Glyph color. Alternately use 'bgcolor' to use a solid background color.
//You must use EXACTLY ONE of 'color' or 'bgcolor'.
"move_cost_mod": 2, //Movement cost modifier (-10 = impassable, 0 = no change)
"required_str": 18, //Strength required to move past the terrain easily
"flags": ["TRANSPARENT", "BASHABLE", "FLAMMABLE_HARD"], //Furniture flags
"examine_action": "toilet" //(OPTIONAL) Function called when examined, see iexamine.cpp.
//If omitted, defaults to iexamine::none.
```
###TERRAIN
```C++
"type": "terrain", //Must always be 'terrain'
"name": "spiked pit", //Displayed name of the terrain
"symbol": "0", //Symbol used
"color": "ltred", //Color of the symbol
"move_cost": 10, //Move cost to move through. 2 = normal speed, 0 = impassable
"trap": "spike_pit", //(OPTIONAL) trap_id minus the tr_ prefix of the trap type.
//If omitted, defaults to tr_null.
"flags": ["TRANSPARENT", "DIGGABLE"], //Terrain flags
"examine_action": "pit" //(OPTIONAL) Function called when examined, see iexamine.cpp.
//If omitted, defaults to iexamine::none.
```
+321 -8
View File
@@ -1,5 +1,7 @@
#include "color.h"
#include "output.h"
#include "cursesdef.h"
#include "options.h"
#include "rng.h"
#define HILIGHT COLOR_BLUE
void init_colors()
@@ -410,6 +412,226 @@ nc_color int_to_color(int key)
return c_black;
}
nc_color hilite(nc_color c)
{
switch (c) {
case c_white: return h_white;
case c_ltgray: return h_ltgray;
case c_dkgray: return h_dkgray;
case c_red: return h_red;
case c_green: return h_green;
case c_blue: return h_blue;
case c_cyan: return h_cyan;
case c_magenta: return h_magenta;
case c_brown: return h_brown;
case c_ltred: return h_ltred;
case c_ltgreen: return h_ltgreen;
case c_ltblue: return h_ltblue;
case c_ltcyan: return h_ltcyan;
case c_pink: return h_pink;
case c_yellow: return h_yellow;
}
return h_white;
}
nc_color invert_color(nc_color c)
{
if (OPTIONS["NO_BRIGHT_BACKGROUNDS"]) {
switch (c) {
case c_white:
case c_ltgray:
case c_dkgray: return i_ltgray;
case c_red:
case c_ltred: return i_red;
case c_green:
case c_ltgreen: return i_green;
case c_blue:
case c_ltblue: return i_blue;
case c_cyan:
case c_ltcyan: return i_cyan;
case c_magenta:
case c_pink: return i_magenta;
case c_brown:
case c_yellow: return i_brown;
}
}
switch (c) {
case c_white: return i_white;
case c_ltgray: return i_ltgray;
case c_dkgray: return i_dkgray;
case c_red: return i_red;
case c_green: return i_green;
case c_blue: return i_blue;
case c_cyan: return i_cyan;
case c_magenta: return i_magenta;
case c_brown: return i_brown;
case c_yellow: return i_yellow;
case c_ltred: return i_ltred;
case c_ltgreen: return i_ltgreen;
case c_ltblue: return i_ltblue;
case c_ltcyan: return i_ltcyan;
case c_pink: return i_pink;
}
return c_pink;
}
nc_color red_background(nc_color c)
{
switch (c) {
case c_white: return c_white_red;
case c_ltgray: return c_ltgray_red;
case c_dkgray: return c_dkgray_red;
case c_red: return c_red_red;
case c_green: return c_green_red;
case c_blue: return c_blue_red;
case c_cyan: return c_cyan_red;
case c_magenta: return c_magenta_red;
case c_brown: return c_brown_red;
case c_ltred: return c_ltred_red;
case c_ltgreen: return c_ltgreen_red;
case c_ltblue: return c_ltblue_red;
case c_ltcyan: return c_ltcyan_red;
case c_pink: return c_pink_red;
case c_yellow: return c_yellow_red;
}
return c_white_red;
}
/// colors need to be totally redone, really..
nc_color white_background(nc_color c)
{
switch (c) {
case c_black: return c_black_white;
case c_dkgray: return c_dkgray_white;
case c_ltgray: return c_ltgray_white;
case c_white: return c_white_white;
case c_red: return c_red_white;
case c_ltred: return c_ltred_white;
case c_green: return c_green_white;
case c_ltgreen: return c_ltgreen_white;
case c_brown: return c_brown_white;
case c_yellow: return c_yellow_white;
case c_blue: return c_blue_white;
case c_ltblue: return c_ltblue_white;
case c_magenta: return c_magenta_white;
case c_pink: return c_pink_white;
case c_cyan: return c_cyan_white;
case c_ltcyan: return c_ltcyan_white;
default: return c_black_white;
}
}
nc_color green_background(nc_color c)
{
switch (c) {
case c_black: return c_black_green;
case c_dkgray: return c_dkgray_green;
case c_ltgray: return c_ltgray_green;
case c_white: return c_white_green;
case c_red: return c_red_green;
case c_ltred: return c_ltred_green;
case c_green: return c_green_green;
case c_ltgreen: return c_ltgreen_green;
case c_brown: return c_brown_green;
case c_yellow: return c_yellow_green;
case c_blue: return c_blue_green;
case c_ltblue: return c_ltblue_green;
case c_magenta: return c_magenta_green;
case c_pink: return c_pink_green;
case c_cyan: return c_cyan_green;
case c_ltcyan: return c_ltcyan_green;
default: return c_black_green;
}
}
nc_color yellow_background(nc_color c)
{
switch (c) {
case c_black: return c_black_yellow;
case c_dkgray: return c_dkgray_yellow;
case c_ltgray: return c_ltgray_yellow;
case c_white: return c_white_yellow;
case c_red: return c_red_yellow;
case c_ltred: return c_ltred_yellow;
case c_green: return c_green_yellow;
case c_ltgreen: return c_ltgreen_yellow;
case c_brown: return c_brown_yellow;
case c_yellow: return c_yellow_yellow;
case c_blue: return c_blue_yellow;
case c_ltblue: return c_ltblue_yellow;
case c_magenta: return c_magenta_yellow;
case c_pink: return c_pink_yellow;
case c_cyan: return c_cyan_yellow;
case c_ltcyan: return c_ltcyan_yellow;
default: return c_black_yellow;
}
}
nc_color magenta_background(nc_color c)
{
switch (c) {
case c_black: return c_black_magenta;
case c_dkgray: return c_dkgray_magenta;
case c_ltgray: return c_ltgray_magenta;
case c_white: return c_white_magenta;
case c_red: return c_red_magenta;
case c_ltred: return c_ltred_magenta;
case c_green: return c_green_magenta;
case c_ltgreen: return c_ltgreen_magenta;
case c_brown: return c_brown_magenta;
case c_yellow: return c_yellow_magenta;
case c_blue: return c_blue_magenta;
case c_ltblue: return c_ltblue_magenta;
case c_magenta: return c_magenta_magenta;
case c_pink: return c_pink_magenta;
case c_cyan: return c_cyan_magenta;
case c_ltcyan: return c_ltcyan_magenta;
default: return c_black_magenta;
}
}
nc_color cyan_background(nc_color c)
{
switch (c) {
case c_black: return c_black_cyan;
case c_dkgray: return c_dkgray_cyan;
case c_ltgray: return c_ltgray_cyan;
case c_white: return c_white_cyan;
case c_red: return c_red_cyan;
case c_ltred: return c_ltred_cyan;
case c_green: return c_green_cyan;
case c_ltgreen: return c_ltgreen_cyan;
case c_brown: return c_brown_cyan;
case c_yellow: return c_yellow_cyan;
case c_blue: return c_blue_cyan;
case c_ltblue: return c_ltblue_cyan;
case c_magenta: return c_magenta_cyan;
case c_pink: return c_pink_cyan;
case c_cyan: return c_cyan_cyan;
case c_ltcyan: return c_ltcyan_cyan;
default: return c_black_cyan;
}
}
nc_color rand_color()
{
switch (rng(0, 9)) {
case 0: return c_white;
case 1: return c_ltgray;
case 2: return c_green;
case 3: return c_red;
case 4: return c_yellow;
case 5: return c_blue;
case 6: return c_ltblue;
case 7: return c_pink;
case 8: return c_magenta;
case 9: return c_brown;
}
return c_dkgray;
}
/**
* Given the name of a color, returns the nc_color constant that matches. If
* no match is found, c_white is returned.
@@ -423,15 +645,17 @@ nc_color color_from_string(std::string new_color){
return c_blue;
} else if("green"==new_color){
return c_green;
} else if("light_cyan"==new_color){
} else if("light_cyan"==new_color || "ltcyan"==new_color){
return c_ltcyan;
} else if("brown"==new_color){
return c_brown;
} else if("light_red"==new_color){
} else if("light_red"==new_color || "ltred"==new_color){
return c_ltred;
} else if("white"==new_color){
return c_white;
} else if("light_blue"==new_color){
} else if("black"==new_color){
return c_black;
} else if("light_blue"==new_color || "ltblue"==new_color){
return c_ltblue;
} else if("yellow"==new_color){
return c_yellow;
@@ -439,16 +663,105 @@ nc_color color_from_string(std::string new_color){
return c_magenta;
} else if("cyan"==new_color){
return c_cyan;
} else if("light_gray"==new_color){
} else if("light_gray"==new_color || "ltgray"==new_color){
return c_ltgray;
} else if("dark_gray"==new_color){
} else if("dark_gray"==new_color || "dkgray"==new_color){
return c_dkgray;
} else if("light_green"==new_color){
} else if("light_green"==new_color || "ltgreen"==new_color){
return c_ltgreen;
} else if("pink"==new_color){
return c_pink;
} else if("white_red"==new_color){
return c_white_red;
} else if("ltgray_red"==new_color || "light_gray_red"==new_color){
return c_ltgray_red;
} else if("dkgray_red"==new_color || "dark_gray_red"==new_color){
return c_dkgray_red;
} else if("red_red"==new_color){
return c_red_red;
} else if("green_red"==new_color){
return c_green_red;
} else if("blue_red"==new_color){
return c_blue_red;
} else if("cyan_red"==new_color){
return c_cyan_red;
} else if("magenta_red"==new_color){
return c_magenta_red;
} else if("brown_red"==new_color){
return c_brown_red;
} else if("ltred_red"==new_color || "light_red_red"==new_color){
return c_ltred_red;
} else if("ltgreen_red"==new_color || "light_green_red"==new_color){
return c_ltgreen_red;
} else if("ltblue_red"==new_color || "light_blue_red"==new_color){
return c_ltblue_red;
} else if("ltcyan_red"==new_color || "light_cyan_red"==new_color){
return c_ltcyan_red;
} else if("pink_red"==new_color){
return c_pink_red;
} else if("yellow_red"==new_color){
return c_yellow_red;
} else {
debugmsg("Received invalid color property %s. Color is required.", new_color.c_str());
return c_white;
}
}
/**
* Given the name of a background color (that is, one of the i_xxxxx colors),
* returns the nc_color constant that matches. If no match is found, i_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 bgcolor_from_string(std::string new_color) {
if("black" == new_color) {
return i_black;
} else if("white" == new_color) {
return i_white;
} else if("light_gray" == new_color || "ltgray" == new_color) {
return i_ltgray;
} else if("dark_gray" == new_color || "dkgray" == new_color) {
return i_dkgray;
} else if("red" == new_color) {
return i_red;
} else if("green" == new_color) {
return i_green;
} else if("blue" == new_color) {
return i_blue;
} else if("cyan" == new_color) {
return i_cyan;
} else if("magenta" == new_color) {
return i_magenta;
} else if("brown" == new_color) {
return i_brown;
} else if("light_red" == new_color || "ltred" == new_color) {
return i_ltred;
} else if("light_blue" == new_color || "ltblue" == new_color) {
return i_ltblue;
} else if("light_cyan" == new_color || "ltcyan" == new_color) {
return i_ltcyan;
} else if("pink" == new_color) {
return i_pink;
} else if("yellow" == new_color) {
return i_yellow;
} else {
return i_white;
}
}
nc_color get_color_from_tag(const std::string &s, const nc_color base_color)
{
if (s.empty() || s[0] != '<' || s.substr(0,8) == "</color>") {
return base_color;
}
if (s.substr(0,7) != "<color_") {
return base_color;
}
size_t tag_close = s.find('>');
if (tag_close == std::string::npos) {
return base_color;
}
std::string color_name = s.substr(7,tag_close-7);
return color_from_string(color_name);
}
+16 -1
View File
@@ -1,9 +1,10 @@
#ifndef _COLOR_H_
#define _COLOR_H
#define _COLOR_H_
#ifndef _COLOR_LIST_
#define _COLOR_LIST_
#include "json.h"
#include "cursesdef.h"
#include <string>
@@ -170,9 +171,23 @@ c_unset = COLOR_PAIR(31),
int color_to_int(nc_color col);
nc_color int_to_color(int key);
nc_color hilite(nc_color c);
nc_color invert_color(nc_color c);
nc_color red_background(nc_color c);
nc_color white_background(nc_color c);
nc_color green_background(nc_color c);
nc_color yellow_background(nc_color c);
nc_color magenta_background(nc_color c);
nc_color cyan_background(nc_color c);
nc_color rand_color();
nc_color color_from_string(std::string color);
nc_color bgcolor_from_string(std::string color);
nc_color get_color_from_tag(const std::string &s, const nc_color base_color);
void setattr(nc_color &col, col_attribute attr);
void load_colors(JsonObject &jo);
#endif
+103 -117
View File
@@ -3,32 +3,38 @@
#include "monster.h"
#include "overmap.h"
#include "output.h"
#include "json.h"
#include "monstergenerator.h"
#include <fstream>
#include <string>
#include <sstream>
computer::computer()
std::vector<std::string> computer::lab_notes;
computer::computer(): name(DEFAULT_COMPUTER_NAME)
{
security = 0;
name = DEFAULT_COMPUTER_NAME;
w_terminal = NULL;
w_border = NULL;
mission_id = -1;
}
computer::computer(std::string Name, int Security)
computer::computer(std::string Name, int Security): name(Name)
{
security = Security;
name = Name;
w_terminal = NULL;
w_border = NULL;
mission_id = -1;
}
computer::~computer()
{
if (w_terminal != NULL)
{
if (w_terminal != NULL) {
delwin(w_terminal);
}
if (w_border != NULL) {
delwin(w_border);
}
}
computer& computer::operator=(const computer &rhs)
@@ -37,16 +43,15 @@ computer& computer::operator=(const computer &rhs)
name = rhs.name;
mission_id = rhs.mission_id;
options.clear();
for (int i = 0; i < rhs.options.size(); i++)
{
for (int i = 0; i < rhs.options.size(); i++) {
options.push_back(rhs.options[i]);
}
failures.clear();
for (int i = 0; i < rhs.failures.size(); i++)
{
for (int i = 0; i < rhs.failures.size(); i++) {
failures.push_back(rhs.failures[i]);
}
w_terminal = NULL;
w_border = NULL;
return *this;
}
@@ -71,16 +76,25 @@ void computer::shutdown_terminal()
werase(w_terminal);
delwin(w_terminal);
w_terminal = NULL;
werase(w_border);
delwin(w_border);
w_border = NULL;
}
void computer::use(game *g)
{
if (w_terminal == NULL)
w_terminal = newwin(FULL_SCREEN_HEIGHT, FULL_SCREEN_WIDTH,
if (w_border == NULL) {
w_border = newwin(FULL_SCREEN_HEIGHT, FULL_SCREEN_WIDTH,
(TERMY > FULL_SCREEN_HEIGHT) ? (TERMY-FULL_SCREEN_HEIGHT)/2 : 0,
(TERMX > FULL_SCREEN_WIDTH) ? (TERMX-FULL_SCREEN_WIDTH)/2 : 0);
wborder(w_terminal, LINE_XOXO, LINE_XOXO, LINE_OXOX, LINE_OXOX,
}
if (w_terminal == NULL) {
w_terminal = newwin(getmaxy(w_border)-2, getmaxx(w_border)-2,
getbegy(w_border)+1, getbegx(w_border)+1);
}
wborder(w_border, LINE_XOXO, LINE_XOXO, LINE_OXOX, LINE_OXOX,
LINE_OXXO, LINE_OOXX, LINE_XXOO, LINE_XOOX );
wrefresh(w_border);
// Login
print_line(_("Logging into %s..."), name.c_str());
@@ -104,7 +118,7 @@ void computer::use(game *g)
case 'Y':
if (!hack_attempt(g, &(g->u)))
{
if (failures.size() == 0)
if (failures.empty())
{
query_any(_("Maximum login attempts exceeded. Press any key..."));
shutdown_terminal();
@@ -132,14 +146,14 @@ void computer::use(game *g)
for (bool InUse = true; InUse; )
{
//reset_terminal();
print_line("");
print_newline();
print_line("%s - %s", name.c_str(), _("Root Menu"));
for (int i = 0; i < options.size(); i++)
{
print_line("%d - %s", i + 1, options[i].name.c_str());
}
print_line("Q - %s", _("Quit and shut down"));
print_line("");
print_newline();
char ch;
do
@@ -241,7 +255,6 @@ void computer::load_data(std::string data)
options.clear();
failures.clear();
std::stringstream dump;
std::string buffer;
dump << data;
// Pull in name and security
@@ -293,9 +306,11 @@ void computer::activate_function(game *g, computer_action action)
query_any(_("Doors opened. Press any key..."));
break;
//LOCK AND UNLOCK are used to build more complex buildings that can have multiple doors that can be locked and
//unlocked by different computers. Simply uses translate_radius which take a given radius and player position
//to determine which terrain tiles to edit.
//LOCK AND UNLOCK are used to build more complex buildings
// that can have multiple doors that can be locked and be
// unlocked by different computers.
//Simply uses translate_radius which take a given radius and
// player position to determine which terrain tiles to edit.
case COMPACT_LOCK:
g->m.translate_radius(t_door_metal_c, t_door_metal_locked, 8.0, g->u.posx, g->u.posy);
query_any(_("Lock enabled. Press any key..."));
@@ -354,7 +369,7 @@ void computer::activate_function(game *g, computer_action action)
if (!found_item)
{
item sewage(g->itypes["sewage"], g->turn);
g->m.add_item(x1, y1, sewage);
g->m.add_item_or_charges(x1, y1, sewage);
}
}
}
@@ -442,7 +457,7 @@ void computer::activate_function(game *g, computer_action action)
}
}
}
if (cascade_points.size() == 0)
if (cascade_points.empty())
{
g->resonance_cascade(g->u.posx, g->u.posy);
}
@@ -456,52 +471,14 @@ void computer::activate_function(game *g, computer_action action)
case COMPACT_RESEARCH:
{
int lines = 0, notes = 0;
std::string log, tmp;
int ch;
std::ifstream fin;
fin.open("data/LAB_NOTES");
if (!fin.is_open())
{
debugmsg("Couldn't open ./data/LAB_NOTES for reading");
return;
}
while (fin.good())
{
ch = fin.get();
if (ch == '%')
{
notes++;
}
std::string log;
if (lab_notes.empty()) {
log = _("No data found.");
} else {
log = lab_notes[(g->levx + g->levy + g->levz) % lab_notes.size()];
}
while (lines < 10)
{
fin.clear();
fin.seekg(0, std::ios::beg);
fin.clear();
int choice = rng(1, notes);
while (choice > 0)
{
getline(fin, tmp);
if (tmp.find_first_of('%') == 0)
{
choice--;
}
}
getline(fin, tmp);
do
{
lines++;
if (lines < 15 && tmp.find_first_of('%') != 0)
{
log.append(tmp);
log.append("\n");
}
}
while(tmp.find_first_of('%') != 0 && getline(fin, tmp));
}
print_line(" %s", log.c_str());
print_text(log.c_str());
query_any(_("Press any key..."));
}
break;
@@ -685,9 +662,9 @@ void computer::activate_function(game *g, computer_action action)
reset_terminal();
print_line("");
print_newline();
print_line(_("Bionic access - Manifest:"));
print_line("");
print_newline();
for (int i = 0; i < names.size(); i++)
{
@@ -698,7 +675,7 @@ void computer::activate_function(game *g, computer_action action)
print_line(_("%d OTHERS FOUND..."), more);
}
print_line("");
print_newline();
query_any(_("Press any key..."));
}
break;
@@ -718,6 +695,7 @@ void computer::activate_function(game *g, computer_action action)
break;
case COMPACT_AMIGARA_LOG: // TODO: This is static, move to data file?
reset_terminal();
print_line(_("NEPower Mine(%d:%d) Log"), g->levx, g->levy);
print_line(_("\
ENTRY 47:\n\
@@ -780,12 +758,12 @@ know that's sort of a big deal, but come on, these guys can't handle it?\n"));
{
print_gibberish_line();
}
print_line("");
print_line("");
print_line("");
print_newline();
print_newline();
print_newline();
print_line(_("AMIGARA PROJECT"));
print_line("");
print_line("");
print_newline();
print_newline();
if (!query_bool(_("Continue reading?")))
{
return;
@@ -806,7 +784,7 @@ QUALITIY OF FAULTLINE NOT COMPROMISED\n\
INITIATING STANDARD TREMOR TEST..."));
print_gibberish_line();
print_gibberish_line();
print_line("");
print_newline();
print_error(_("FILE CORRUPTED, PRESS ANY KEY..."));
getch();
reset_terminal();
@@ -881,7 +859,7 @@ of pureed bone & LSD."));
else // Success!
{
item *blood = &(g->m.i_at(x, y)[0].contents[0]);
if (blood->corpse == NULL || blood->corpse->id == mon_null)
if (blood->corpse == NULL || blood->corpse->id == "mon_null")
{
print_line(_("Result: Human blood, no pathogens found."));
}
@@ -950,7 +928,7 @@ of pureed bone & LSD."));
{
print_line(_("Memory Bank: Military Hexron Encryption\nPrinting Transcript\n"));
item transcript(g->itypes["black_box_transcript"], g->turn);
g->m.add_item(g->u.posx, g->u.posy, transcript);
g->m.add_item_or_charges(g->u.posx, g->u.posy, transcript);
}
else
{
@@ -1268,7 +1246,7 @@ void computer::activate_failure(game *g, computer_failure fail)
{
for (int y = 0; y < SEEY * MAPSIZE; y++)
{
if (g->m.has_flag(console, x, y))
if (g->m.has_flag("CONSOLE", x, y))
{
g->m.ter_set(x, y, t_console_broken);
}
@@ -1301,7 +1279,7 @@ void computer::activate_failure(game *g, computer_failure fail)
if (tries != 10)
{
g->add_msg(_("Manhacks drop from compartments in the ceiling."));
monster robot(g->mtypes[mon_manhack]);
monster robot(GetMType("mon_manhack"));
robot.spawn(mx, my);
g->add_zombie(robot);
}
@@ -1325,7 +1303,7 @@ void computer::activate_failure(game *g, computer_failure fail)
if (tries != 10)
{
g->add_msg(_("Secubots emerge from compartments in the floor."));
monster robot(g->mtypes[mon_secubot]);
monster robot(GetMType("mon_secubot"));
robot.spawn(mx, my);
g->add_zombie(robot);
}
@@ -1490,16 +1468,16 @@ void computer::activate_failure(game *g, computer_failure fail)
bool computer::query_bool(const char *mes, ...)
{
// Translate the printf flags
// Translate the printf flags
va_list ap;
va_start(ap, mes);
char buff[6000];
vsprintf(buff, mes, ap);
va_end(ap);
// Append with (Y/N/Q)
// Append with (Y/N/Q)
std::string full_line = buff;
full_line += " (Y/N/Q)";
// Print the resulting text
// Print the resulting text
print_line(full_line.c_str());
char ret;
do
@@ -1513,14 +1491,14 @@ bool computer::query_bool(const char *mes, ...)
bool computer::query_any(const char *mes, ...)
{
// Translate the printf flags
// Translate the printf flags
va_list ap;
va_start(ap, mes);
char buff[6000];
vsprintf(buff, mes, ap);
va_end(ap);
std::string full_line = buff;
// Print the resulting text
// Print the resulting text
print_line(full_line.c_str());
getch();
return true;
@@ -1528,16 +1506,16 @@ bool computer::query_any(const char *mes, ...)
char computer::query_ynq(const char *mes, ...)
{
// Translate the printf flags
// Translate the printf flags
va_list ap;
va_start(ap, mes);
char buff[6000];
vsprintf(buff, mes, ap);
va_end(ap);
// Append with (Y/N/Q)
// Append with (Y/N/Q)
std::string full_line = buff;
full_line += " (Y/N/Q)";
// Print the resulting text
// Print the resulting text
print_line(full_line.c_str());
char ret;
do
@@ -1551,45 +1529,46 @@ char computer::query_ynq(const char *mes, ...)
void computer::print_line(const char *mes, ...)
{
// Translate the printf flags
// Translate the printf flags
va_list ap;
va_start(ap, mes);
char buff[6000];
vsprintf(buff, mes, ap);
va_end(ap);
// Replace any '\n' with "\n " to allow for the border
std::string message = buff;
size_t pos = 0;
while (pos != std::string::npos)
{
pos = message.find("\n", pos);
if (pos != std::string::npos)
{
message.replace(pos, 1, "\n ");
pos += 2;
}
}
// Print the line.
wprintz(w_terminal, c_green, " %s\n", message.c_str());
// Reprint the border, in case we pushed a line over it
wborder(w_terminal, LINE_XOXO, LINE_XOXO, LINE_OXOX, LINE_OXOX,
LINE_OXXO, LINE_OOXX, LINE_XXOO, LINE_XOOX );
// Print the line.
wprintz(w_terminal, c_green, buff);
print_newline();
wrefresh(w_terminal);
}
void computer::print_error(const char *mes, ...)
{
// Translate the printf flags
// Translate the printf flags
va_list ap;
va_start(ap, mes);
char buff[6000];
vsprintf(buff, mes, ap);
va_end(ap);
// Print the line.
wprintz(w_terminal, c_red, " %s%s", buff, "\n");
// Reprint the border, in case we pushed a line over it
wborder(w_terminal, LINE_XOXO, LINE_XOXO, LINE_OXOX, LINE_OXOX,
LINE_OXXO, LINE_OOXX, LINE_XXOO, LINE_XOOX );
// Print the line.
wprintz(w_terminal, c_red, buff);
print_newline();
wrefresh(w_terminal);
}
void computer::print_text(const char *mes, ...)
{
// Translate the printf flags
va_list ap;
va_start(ap, mes);
char buff[6000];
vsprintf(buff, mes, ap);
va_end(ap);
// Print the text.
int y = getcury(w_terminal);
int w = getmaxx(w_terminal) - 2;
fold_and_print(w_terminal, y, 1, w, c_green, buff);
print_newline();
print_newline();
wrefresh(w_terminal);
}
@@ -1615,17 +1594,24 @@ void computer::print_gibberish_line()
}
}
wprintz(w_terminal, c_yellow, gibberish.c_str());
wborder(w_terminal, LINE_XOXO, LINE_XOXO, LINE_OXOX, LINE_OXOX,
LINE_OXXO, LINE_OOXX, LINE_XXOO, LINE_XOOX );
print_newline();
wrefresh(w_terminal);
}
void computer::reset_terminal()
{
werase(w_terminal);
wborder(w_terminal, LINE_XOXO, LINE_XOXO, LINE_OXOX, LINE_OXOX,
LINE_OXXO, LINE_OOXX, LINE_XXOO, LINE_XOOX );
wmove(w_terminal, 1, 1);
wmove(w_terminal, 0, 0);
wrefresh(w_terminal);
}
void computer::print_newline()
{
wprintz(w_terminal, c_green, "\n");
}
void computer::load_lab_note(JsonObject &jsobj)
{
lab_notes.push_back(_(jsobj.get_string("text").c_str()));
}
+35 -19
View File
@@ -2,6 +2,7 @@
#define _COMPUTER_H_
#include "output.h"
#include "json.h"
#include <vector>
#include <string>
@@ -89,49 +90,64 @@ public:
~computer();
computer & operator=(const computer &rhs);
// Initialization
// Initialization
void set_security(int Security);
void add_option(std::string opt_name, computer_action action, int Security);
void add_failure(computer_failure failure);
// Basic usage
// Basic usage
void shutdown_terminal(); // Shutdown (free w_terminal, etc)
void use(game *g);
bool hack_attempt(game *g, player *p, int Security = -1);// -1 defaults to main security
// Save/load
// Save/load
std::string save_data();
void load_data(std::string data);
std::string name; // "Jon's Computer", "Lab 6E77-B Terminal Omega"
int mission_id; // Linked to a mission?
private:
int security; // Difficulty of simply logging in
std::vector<computer_option> options; // Things we can do
std::vector<computer_failure> failures; // Things that happen if we fail a hack
WINDOW *w_terminal; // Output window
static void load_lab_note(JsonObject &jsobj);
// Called by use()
private:
// Difficulty of simply logging in
int security;
// Things we can do
std::vector<computer_option> options;
// Things that happen if we fail a hack
std::vector<computer_failure> failures;
// Output window
WINDOW *w_terminal;
// Pretty border
WINDOW *w_border;
// Misc research notes from json
static std::vector<std::string> lab_notes;
// Called by use()
void activate_function (game *g, computer_action action);
// Generally called when we fail a hack attempt
// Generally called when we fail a hack attempt
void activate_random_failure(game *g);
// ...but we can also choose a specific failure.
// ...but we can also choose a specific failure.
void activate_failure (game *g, computer_failure fail);
// OUTPUT/INPUT
// Reset to a blank terminal (e.g. at start of usage loop)
// OUTPUT/INPUT:
// Reset to a blank terminal (e.g. at start of usage loop)
void reset_terminal();
// Prints a line to the terminal (with printf flags)
// Prints a line to the terminal (with printf flags)
void print_line(const char *text, ...);
// For now, the same as print_line but in red (TODO: change this?)
// For now, the same as print_line but in red (TODO: change this?)
void print_error(const char *text, ...);
// Prints code-looking gibberish
// Wraps and prints a block of text with a 1-space indent
void print_text(const char* text, ...);
// Prints code-looking gibberish
void print_gibberish_line();
// Prints a line and waits for Y/N/Q
// Prints a line and waits for Y/N/Q
char query_ynq(const char *text, ...);
// Same as query_ynq, but returns true for y or Y
// Same as query_ynq, but returns true for y or Y
bool query_bool(const char *text, ...);
// Simply wait for any key, returns True
// Simply wait for any key, returns True
bool query_any(const char *text, ...);
// Move the cursor to the beginning of the next line
void print_newline();
};
#endif
+119 -127
View File
@@ -9,6 +9,7 @@
#include "crafting.h" // For the use_comps use_tools functions
#include "item_factory.h"
#include "catacharset.h"
#include "action.h"
#include <algorithm>
bool will_flood_stop(map *m, bool (&fill)[SEEX * MAPSIZE][SEEY * MAPSIZE],
@@ -46,10 +47,12 @@ void game::init_construction()
CONSTRUCT(_("Dig Pit"), 0, &construct::able_dig, &construct::done_nothing);
STAGE(t_pit_shallow, 10);
TOOL("shovel");
TOOLCONT("e_tool");
TOOLCONT("primitive_shovel");
TOOLCONT("digging_stick");
STAGE(t_pit, 10);
TOOL("shovel");
TOOLCONT("e_tool");
TOOLCONT("primitive_shovel");
CONSTRUCT(_("Spike Pit"), 0, &construct::able_pit, &construct::done_nothing);
@@ -60,9 +63,11 @@ void game::init_construction()
CONSTRUCT(_("Fill Pit"), 0, &construct::able_pit, &construct::done_nothing);
STAGE(t_pit_shallow, 5);
TOOL("shovel");
TOOLCONT("e_tool");
TOOLCONT("primitive_shovel");
STAGE(t_dirt, 5);
TOOL("shovel");
TOOLCONT("e_tool");
TOOLCONT("primitive_shovel");
CONSTRUCT(_("Chop Down Tree"), 0, &construct::able_tree, &construct::done_tree);
@@ -153,19 +158,23 @@ void game::init_construction()
CONSTRUCT(_("Build Log Wall"), 2, &construct::able_dig, &construct::done_nothing);
STAGE(t_pit_shallow, 10);
TOOL("shovel");
TOOLCONT("e_tool");
TOOLCONT("primitive_shovel");
TOOLCONT("digging_stick");
STAGE(t_pit, 10);
TOOL("shovel");
TOOLCONT("e_tool");
TOOLCONT("primitive_shovel");
STAGE(t_wall_log_half, 20);
TOOL("shovel");
TOOLCONT("e_tool");
TOOLCONT("primitive_shovel");
COMP("log", 2);
COMP("stick", 3);
COMPCONT("2x4", 6);
STAGE(t_wall_log, 20);
TOOL("shovel");
TOOLCONT("e_tool");
TOOLCONT("primitive_shovel");
COMP("log", 2);
COMP("stick", 3);
@@ -174,13 +183,16 @@ void game::init_construction()
CONSTRUCT(_("Build Palisade Wall"), 2, &construct::able_dig, &construct::done_nothing);
STAGE(t_pit_shallow, 10);
TOOL("shovel");
TOOLCONT("e_tool");
TOOLCONT("primitive_shovel");
TOOLCONT("digging_stick");
STAGE(t_pit, 10);
TOOL("shovel");
TOOLCONT("e_tool");
TOOLCONT("primitive_shovel");
STAGE(t_palisade, 20);
TOOL("shovel");
TOOLCONT("e_tool");
TOOLCONT("primitive_shovel");
COMP("log", 3);
COMP("rope_6", 2);
@@ -194,13 +206,16 @@ void game::init_construction()
CONSTRUCT(_("Build Palisade Gate"), 2, &construct::able_dig, &construct::done_nothing);
STAGE(t_pit_shallow, 10);
TOOL("shovel");
TOOLCONT("e_tool");
TOOLCONT("primitive_shovel");
TOOLCONT("digging_stick");
STAGE(t_pit, 10);
TOOL("shovel");
TOOLCONT("e_tool");
TOOLCONT("primitive_shovel");
STAGE(t_palisade_gate, 20);
TOOL("shovel");
TOOLCONT("e_tool");
TOOLCONT("primitive_shovel");
COMP("log", 2);
COMP("2x4", 3);
@@ -295,6 +310,7 @@ void game::init_construction()
TOOLCONT("primitive_hammer");
TOOLCONT("hatchet");
TOOL("shovel");
TOOLCONT("e_tool");
TOOLCONT("primitive_shovel");
COMP("log", 2);
COMP("stick", 4);
@@ -303,8 +319,8 @@ void game::init_construction()
// Base stuff
CONSTRUCT(_("Build Bulletin Board"), 0, &construct::able_empty,
&construct::done_nothing);
STAGE(f_bulletin, 10)
&construct::done_nothing);
STAGE(furnlist[f_bulletin], 10)
TOOL("saw");
TOOL("hammer");
TOOLCONT("hatchet");
@@ -315,7 +331,7 @@ void game::init_construction()
// Household stuff
CONSTRUCT(_("Build Dresser"), 1, &construct::able_empty,
&construct::done_nothing);
STAGE(f_dresser, 20);
STAGE(furnlist[f_dresser], 20);
TOOL("saw");
TOOL("hammer");
TOOLCONT("primitive_hammer");
@@ -326,7 +342,7 @@ void game::init_construction()
CONSTRUCT(_("Build Bookcase"), 1, &construct::able_empty,
&construct::done_nothing);
STAGE(f_bookcase, 20);
STAGE(furnlist[f_bookcase], 20);
TOOL("saw");
TOOL("hammer");
TOOLCONT("primitive_hammer");
@@ -337,26 +353,28 @@ void game::init_construction()
CONSTRUCT(_("Build Locker"), 1, &construct::able_empty,
&construct::done_nothing);
STAGE(f_locker, 20);
STAGE(furnlist[f_locker], 20);
TOOL("hammer");
TOOLCONT("primitive_hammer");
TOOLCONT("hatchet");
TOOL("wrench");
TOOLCONT("toolset");
COMP("sheet_metal", 2);
COMP("pipe", 8);
CONSTRUCT(_("Build Metal Rack"), 1, &construct::able_empty,
&construct::done_nothing);
STAGE(f_rack, 20);
STAGE(furnlist[f_rack], 20);
TOOL("hammer");
TOOLCONT("primitive_hammer");
TOOLCONT("hatchet");
TOOL("wrench");
TOOLCONT("toolset");
COMP("pipe", 12);
CONSTRUCT(_("Build Counter"), 0, &construct::able_empty,
&construct::done_nothing);
STAGE(f_counter, 20);
STAGE(furnlist[f_counter], 20);
TOOL("hammer");
TOOLCONT("primitive_hammer");
TOOLCONT("hatchet");
@@ -366,7 +384,7 @@ void game::init_construction()
CONSTRUCT(_("Build Makeshift Bed"), 0, &construct::able_empty,
&construct::done_nothing);
STAGE(f_makeshift_bed, 20);
STAGE(furnlist[f_makeshift_bed], 20);
TOOL("hammer");
TOOLCONT("primitive_hammer");
TOOLCONT("hatchet");
@@ -400,6 +418,7 @@ void game::init_construction()
TOOL("hammer");
TOOLCONT("primitive_hammer");
TOOLCONT("shovel");
TOOLCONT("e_tool");
TOOLCONT("primitive_shovel");
TOOLCONT("rock");
TOOLCONT("hatchet");
@@ -409,43 +428,47 @@ void game::init_construction()
COMPCONT("spear_wood", 2);
CONSTRUCT(_("Build Wood Stove"), 0, &construct::able_empty,
&construct::done_nothing);
STAGE(f_woodstove, 10);
&construct::done_nothing);
STAGE(furnlist[f_woodstove], 10);
TOOL("hacksaw");
COMP("metal_tank", 1);
COMP("pipe", 1);
CONSTRUCT(_("Build Stone Fireplace"), 0, &construct::able_empty,
&construct::done_nothing);
STAGE(f_fireplace, 40);
&construct::done_nothing);
STAGE(furnlist[f_fireplace], 40);
TOOL("hammer");
TOOLCONT("primitive_hammer");
TOOLCONT("shovel");
TOOLCONT("e_tool");
TOOLCONT("primitive_shovel");
COMP("rock", 40);
}
void game::construction_menu()
{
int iMaxY = TERMY;
if (constructions.size()+2 < iMaxY)
iMaxY = constructions.size()+2;
if (iMaxY < 25)
iMaxY = 25;
int iMaxY = TERMY;
if (constructions.size()+2 < iMaxY) {
iMaxY = constructions.size()+2;
}
if (iMaxY < FULL_SCREEN_HEIGHT) {
iMaxY = FULL_SCREEN_HEIGHT;
}
WINDOW *w_con = newwin(iMaxY, 80, (TERMY > iMaxY) ? (TERMY-iMaxY)/2 : 0, (TERMX > 80) ? (TERMX-80)/2 : 0);
wborder(w_con, LINE_XOXO, LINE_XOXO, LINE_OXOX, LINE_OXOX,
LINE_OXXO, LINE_OOXX, LINE_XXOO, LINE_XOOX );
mvwprintz(w_con, 0, 8, c_ltred, _(" Construction "));
WINDOW *w_con = newwin(iMaxY, FULL_SCREEN_WIDTH, (TERMY > iMaxY) ? (TERMY-iMaxY)/2 : 0, (TERMX > FULL_SCREEN_WIDTH) ? (TERMX-FULL_SCREEN_WIDTH)/2 : 0);
wborder(w_con, LINE_XOXO, LINE_XOXO, LINE_OXOX, LINE_OXOX,
LINE_OXXO, LINE_OOXX, LINE_XXOO, LINE_XOOX );
mvwprintz(w_con, 0, 8, c_ltred, _(" Construction "));
mvwputch(w_con, 0, 30, c_ltgray, LINE_OXXX);
mvwputch(w_con, iMaxY-1, 30, c_ltgray, LINE_XXOX);
for (int i = 1; i < iMaxY-1; i++)
mvwputch(w_con, i, 30, c_ltgray, LINE_XOXO);
mvwputch(w_con, 0, 30, c_ltgray, LINE_OXXX);
mvwputch(w_con, iMaxY-1, 30, c_ltgray, LINE_XXOX);
for (int i = 1; i < iMaxY-1; ++i) {
mvwputch(w_con, i, 30, c_ltgray, LINE_XOXO);
}
mvwprintz(w_con, 1, 31, c_white, _("Difficulty:"));
mvwprintz(w_con, 1, 31, c_white, _("Difficulty:"));
wrefresh(w_con);
wrefresh(w_con);
bool update_info = true;
int select = 0;
@@ -501,7 +524,7 @@ void game::construction_menu()
int posx = 33, posy = 2;
for (int n = 0; n < current_con->stages.size(); n++) {
nc_color color_stage = (player_can_build(u, total_inv, current_con, n,
false, true) ? c_white : c_dkgray);
false, true) ? c_white : c_dkgray);
const char* mes;
if (current_con->stages[n].terrain != t_null)
@@ -512,6 +535,8 @@ void game::construction_menu()
mes = "";
posy++;
mvwprintz(w_con, posy, 31, color_stage, _("Stage %1$d: %2$s"), n + 1, mes);
posy++;
mvwprintz(w_con, posy, 31, color_stage, _("Time: %1d minutes"), current_con->stages[n].time);
// Print tools
construction_stage stage = current_con->stages[n];
bool has_tool[10] = {stage.tools[0].empty(),
@@ -536,14 +561,14 @@ void game::construction_menu()
col = c_green;
}
int length = utf8_width(item_controller->find_template(tool)->name.c_str());
if (posx + length > 79) {
if (posx + length > FULL_SCREEN_WIDTH-1) {
posy++;
posx = 33;
}
mvwprintz(w_con, posy, posx, col, item_controller->find_template(tool)->name.c_str());
posx += length + 1; // + 1 for an empty space
if (j < stage.tools[i].size() - 1) { // "OR" if there's more
if (posx > 77) {
if (posx > FULL_SCREEN_WIDTH-3) {
posy++;
posx = 33;
}
@@ -581,7 +606,7 @@ void game::construction_menu()
col = c_green;
}
int length = utf8_width(item_controller->find_template(comp.type)->name.c_str());
if (posx + length > 79) {
if (posx + length > FULL_SCREEN_WIDTH-1) {
posy++;
posx = 33;
}
@@ -597,7 +622,7 @@ void game::construction_menu()
posx += 3;
if (j < stage.components[i].size() - 1) { // "OR" if there's more
if (posx > 77) {
if (posx > FULL_SCREEN_WIDTH-3) {
posy++;
posx = 33;
}
@@ -661,10 +686,11 @@ void game::construction_menu()
}
} while (!exit);
for (int i = iMaxY-25; i < iMaxY+1; i++) {
for (int j = TERRAIN_WINDOW_WIDTH; j < 81; j++)
mvwputch(w_con, i, j, c_black, ' ');
}
for (int i = iMaxY-FULL_SCREEN_HEIGHT; i <= iMaxY; ++i) {
for (int j = TERRAIN_WINDOW_WIDTH; j <= FULL_SCREEN_WIDTH; ++j) {
mvwputch(w_con, i, j, c_black, ' ');
}
}
wrefresh(w_con);
refresh_all();
@@ -718,8 +744,8 @@ bool game::player_can_build(player &p, inventory pinv, constructable* con,
has_component = false;
for (int k = 0; k < stage->components[j].size(); k++) {
if (( item_controller->find_template(stage->components[j][k].type)->is_ammo() &&
pinv.has_charges(stage->components[j][k].type,
stage->components[j][k].count) ) ||
pinv.has_charges(stage->components[j][k].type,
stage->components[j][k].count) ) ||
(!item_controller->find_template(stage->components[j][k].type)->is_ammo() &&
pinv.has_amount (stage->components[j][k].type,
stage->components[j][k].count) ))
@@ -741,7 +767,7 @@ bool game::player_can_build(player &p, inventory pinv, constructable* con,
(has_tool || !tools_required);
if (exact_level && (i == level)) {
return ((has_component || !components_required) &&
(has_tool || !tools_required));
(has_tool || !tools_required));
}
} // stage[i]
return can_build_any;
@@ -795,8 +821,14 @@ void game::place_construction(constructable *con)
}
}
}
// snip snip
if (con->name == _("Move Furniture") ) {
grab();
return;
}
//
int dirx, diry;
if (!choose_adjacent(_("Contruct"), dirx, diry))
if (!choose_adjacent(_("Contruct where?"), dirx, diry))
return;
bool point_is_okay = false;
for (int i = 0; i < valid.size() && !point_is_okay; i++) {
@@ -804,16 +836,8 @@ void game::place_construction(constructable *con)
point_is_okay = true;
}
if (!point_is_okay) {
construct test;
if (con->name == _("Move Furniture") && !(test.*(con->able))(this, point(dirx, diry)))
{
add_msg(_("You're not strong enough!"));
}
else
{
add_msg(_("You cannot build there!"));
}
return;
return;
}
// Figure out what stage to start at, and what stage is the maximum
@@ -846,8 +870,6 @@ void game::complete_construction()
int stage_num = u.activity.values[0];
constructable *built = constructions[u.activity.index];
construction_stage stage = built->stages[stage_num];
std::vector<component> player_use;
std::vector<component> map_use;
u.practice(turn, "carpentry", std::max(built->difficulty, 1) * 10);
for (int i = 0; i < 10; i++) {
@@ -879,7 +901,7 @@ void game::complete_construction()
bool construct::able_empty(game *g, point p)
{
return (g->m.has_flag(flat, p.x, p.y) && !g->m.has_furn(p.x, p.y) &&
return (g->m.has_flag("FLAT", p.x, p.y) && !g->m.has_furn(p.x, p.y) &&
g->is_empty(p.x, p.y) && g->m.tr_at(p.x, p.y) == tr_null);
}
@@ -895,15 +917,7 @@ bool construct::able_trunk(game *g, point p)
bool construct::able_move(game *g, point p)
{
furn_t furniture_type = furnlist[g->m.furn(p.x, p.y)];
int required_str = furniture_type.move_str_req;
// Object can not be moved
if (required_str < 0) { return false; }
if( g->u.str_cur < required_str ) { return false; }
return true;
return g->m.can_move_furniture( p.x, p.y, &(g->u) );
}
bool construct::able_window(game *g, point p)
@@ -961,7 +975,7 @@ bool construct::able_wall_wood(game *g, point p)
bool construct::able_dig(game *g, point p)
{
return (g->m.has_flag(diggable, p.x, p.y));
return (g->m.has_flag("DIGGABLE", p.x, p.y));
}
bool construct::able_chainlink(game *g, point p)
@@ -981,7 +995,7 @@ bool construct::able_between_walls(game *g, point p)
for (int dx = -1; dx <= 1; dx++) {
for (int dy = -1; dy <= 1; dy++) {
if (((dx == 0) ^ (dy == 0))
&& g->m.has_flag(supports_roof, p.x + dx, p.y + dy)) {
&& g->m.has_flag("SUPPORTS_ROOF", p.x + dx, p.y + dy)) {
num_supports++;
}
}
@@ -992,7 +1006,7 @@ bool construct::able_between_walls(game *g, point p)
bool construct::able_deconstruct(game *g, point p)
{
return (g->m.has_flag(deconstruct, p.x, p.y));
return (g->m.has_flag("DECONSTRUCT", p.x, p.y));
}
void construct::done_window_pane(game *g, point p)
@@ -1002,40 +1016,14 @@ void construct::done_window_pane(game *g, point p)
void construct::done_move(game *g, point p)
{
mvprintz(0, 0, c_red, _("Press a direction for the furniture to move (. to cancel):"));
int x = 0, y = 0;
//Keep looping until we get a valid direction or a cancel.
while (true) {
do get_direction(g, x, y, input());
while (x == -2 || y == -2);
if (x == 0 && y == 0) { return; }
x += p.x;
y += p.y;
if (able_empty(g, point(x, y))) {
break;
} else {
mvprintz(0, 0, c_red, _("Can't move furniture there! Choose a direction with open floor."));
}
}
g->sound(x, y, furnlist[g->m.furn(p.x, p.y)].move_str_req * 2, _("a scraping noise"));
g->m.furn_set(x, y, g->m.furn(p.x, p.y));
g->m.furn_set(p.x, p.y, f_null);
//Move all Items within a container
std::vector <item> vItemMove = g->m.i_at(p.x, p.y);
for (int i=0; i < vItemMove.size(); i++) {
g->m.add_item(x, y, vItemMove[i]);
}
g->m.i_clear(p.x, p.y);
return; // stub
}
void construct::done_tree(game *g, point p)
{
mvprintz(0, 0, c_red, _("Press a direction for the tree to fall in:"));
int x = 0, y = 0;
do get_direction(g, x, y, input());
do get_direction(x, y, input());
while (x == -2 || y == -2);
x = p.x + x * 3 + rng(-1, 1);
y = p.y + y * 3 + rng(-1, 1);
@@ -1085,15 +1073,15 @@ void construct::done_vehicle(game *g, point p)
void construct::done_tape(game *g, point p)
{
g->add_msg(_("You tape up the %s."), g->m.tername(p.x, p.y).c_str());
switch (g->m.ter(p.x, p.y))
switch ( g->m.oldter(p.x, p.y) )
{
case t_window_alarm:
case old_t_window_alarm:
g->m.ter_set(p.x, p.y, t_window_alarm_taped);
case t_window_domestic:
case old_t_window_domestic:
g->m.ter_set(p.x, p.y, t_window_domestic_taped);
case t_window:
case old_t_window:
g->m.ter_set(p.x, p.y, t_window_taped);
}
@@ -1103,66 +1091,70 @@ void construct::done_deconstruct(game *g, point p)
{
if (g->m.has_furn(p.x, p.y)) {
g->add_msg(_("You disassemble the %s."), g->m.furnname(p.x, p.y).c_str());
switch (g->m.furn(p.x, p.y)){
case f_makeshift_bed:
case f_bed:
case f_armchair:
switch (g->m.oldfurn(p.x, p.y)){
case old_f_makeshift_bed:
case old_f_bed:
case old_f_armchair:
g->m.spawn_item(p.x, p.y, "2x4", 0, 10);
g->m.spawn_item(p.x, p.y, "rag", 0, rng(10,15));
g->m.spawn_item(p.x, p.y, "nail", 0, 0, rng(6,8));
g->m.furn_set(p.x, p.y, f_null);
case f_bench:
case f_crate_o:
case f_crate_c:
case f_chair:
case f_cupboard:
case f_desk:
case f_bulletin:
case old_f_bench:
case old_f_crate_o:
case old_f_crate_c:
case old_f_chair:
case old_f_cupboard:
case old_f_desk:
case old_f_bulletin:
g->m.spawn_item(p.x, p.y, "2x4", 0, 4);
g->m.spawn_item(p.x, p.y, "nail", 0, 0, rng(6,10));
g->m.furn_set(p.x, p.y, f_null);
break;
case f_locker:
case old_f_locker:
g->m.spawn_item(p.x, p.y, "sheet_metal", 0, rng(1,2));
g->m.spawn_item(p.x, p.y, "pipe", 0, rng(4,8));
g->m.furn_set(p.x, p.y, f_null);
break;
case f_rack:
case old_f_rack:
g->m.spawn_item(p.x, p.y, "pipe", 0, rng(6,12));
g->m.furn_set(p.x, p.y, f_null);
break;
case f_oven:
case old_f_oven:
g->m.spawn_item(p.x, p.y, "scrap", 0, rng(2,6));
g->m.spawn_item(p.x, p.y, "steel_chunk", 0, rng(2,3));
g->m.spawn_item(p.x, p.y, "element", 0, rng(1,4));
g->m.spawn_item(p.x, p.y, "pilot_light", 0, 1);
g->m.furn_set(p.x, p.y, f_null);
case f_fridge:
case old_f_fridge:
g->m.spawn_item(p.x, p.y, "scrap", 0, rng(2,6));
g->m.spawn_item(p.x, p.y, "steel_chunk", 0, rng(2,3));
g->m.spawn_item(p.x, p.y, "hose", 0, 1);
g->m.spawn_item(p.x, p.y, "cu_pipe", 0, rng(3, 6));
g->m.furn_set(p.x, p.y, f_null);
break;
case f_glass_fridge:
case old_f_glass_fridge:
g->m.spawn_item(p.x, p.y, "scrap", 0, rng(2,6));
g->m.spawn_item(p.x, p.y, "steel_chunk", 0, rng(2,3));
g->m.spawn_item(p.x, p.y, "hose", 0, 1);
g->m.spawn_item(p.x, p.y, "glass_sheet", 0, 1);
g->m.spawn_item(p.x, p.y, "cu_pipe", 0, rng(3, 6));
g->m.furn_set(p.x, p.y, f_null);
break;
case f_counter:
case f_dresser:
case f_table:
case old_f_counter:
case old_f_dresser:
case old_f_table:
g->m.spawn_item(p.x, p.y, "2x4", 0, 6);
g->m.spawn_item(p.x, p.y, "nail", 0, 0, rng(6,8));
g->m.furn_set(p.x, p.y, f_null);
break;
case f_pool_table:
case old_f_pool_table:
g->m.spawn_item(p.x, p.y, "2x4", 0, 4);
g->m.spawn_item(p.x, p.y, "rag", 0, 4);
g->m.spawn_item(p.x, p.y, "nail", 0, 0, rng(6,10));
g->m.furn_set(p.x, p.y, f_null);
break;
case f_bookcase:
case old_f_bookcase:
g->m.spawn_item(p.x, p.y, "2x4", 0, 12);
g->m.spawn_item(p.x, p.y, "nail", 0, 0, rng(12,16));
g->m.furn_set(p.x, p.y, f_null);
@@ -1173,16 +1165,16 @@ void construct::done_deconstruct(game *g, point p)
}
} else {
g->add_msg(_("You disassemble the %s."), g->m.tername(p.x, p.y).c_str());
switch (g->m.ter(p.x, p.y))
switch (g->m.oldter(p.x, p.y))
{
case t_door_c:
case t_door_o:
case old_t_door_c:
case old_t_door_o:
g->m.spawn_item(p.x, p.y, "2x4", 0, 4);
g->m.spawn_item(p.x, p.y, "nail", 0, 0, rng(6,12));
g->m.ter_set(p.x, p.y, t_door_frame);
break;
case t_curtains:
case t_window_domestic:
case old_t_curtains:
case old_t_window_domestic:
g->m.spawn_item(g->u.posx, g->u.posy, "stick", 0);
g->m.spawn_item(g->u.posx, g->u.posy, "sheet", 0, 2);
g->m.spawn_item(g->u.posx, g->u.posy, "glass_sheet", 0);
@@ -1190,26 +1182,26 @@ void construct::done_deconstruct(game *g, point p)
g->m.spawn_item(g->u.posx, g->u.posy, "string_36", 0, 0, 1);
g->m.ter_set(p.x, p.y, t_window_empty);
break;
case t_window:
case old_t_window:
g->m.spawn_item(p.x, p.y, "glass_sheet", 0);
g->m.ter_set(p.x, p.y, t_window_empty);
break;
case t_backboard:
case old_t_backboard:
g->m.spawn_item(p.x, p.y, "2x4", 0, 4);
g->m.spawn_item(p.x, p.y, "nail", 0, 0, rng(6,10));
g->m.ter_set(p.x, p.y, t_pavement);
break;
case t_sandbox:
case old_t_sandbox:
g->m.spawn_item(p.x, p.y, "2x4", 0, 4);
g->m.spawn_item(p.x, p.y, "nail", 0, 0, rng(6,10));
g->m.ter_set(p.x, p.y, t_floor);
break;
case t_slide:
case old_t_slide:
g->m.spawn_item(p.x, p.y, "sheet_metal", 0);
g->m.spawn_item(p.x, p.y, "pipe", 0, rng(4,8));
g->m.ter_set(p.x, p.y, t_grass);
break;
case t_monkey_bars:
case old_t_monkey_bars:
g->m.spawn_item(p.x, p.y, "pipe", 0, rng(6,12));
g->m.ter_set(p.x, p.y, t_grass);
break;
+3 -3
View File
@@ -1,7 +1,6 @@
bool able_window(game *, point); // Any window tile#include <vector>
#include <string>
#include "crafting.h"
struct construct;
struct construction_stage
@@ -14,8 +13,8 @@ struct construction_stage
construction_stage(ter_id Terrain, int Time) :
terrain (Terrain), furniture(f_null), time (Time) { };
construction_stage(furn_id Furniture, int Time) :
terrain (t_null), furniture (Furniture), time (Time) { };
construction_stage(furn_t Furniture, int Time) :
terrain (t_null), furniture (Furniture.loadid), time (Time) { };
construction_stage(int Time) :
terrain (t_null), furniture (f_null), time (Time) { };
};
@@ -74,6 +73,7 @@ struct construct // Construction functions.
void done_nothing(game *, point) { }
void done_window_pane(game *, point);
void done_vehicle(game *, point);
void done_cart(game *, point);
void done_tree(game *, point);
void done_trunk_log(game *, point);
void done_trunk_plank(game *, point);
+100
View File
@@ -0,0 +1,100 @@
#ifndef _COORDINATES_H_
#define _COORDINATES_H_
#include <stdlib.h>
#include <vector>
#include <string>
#include <set>
#include <map>
#include "mapdata.h"
#include "overmap.h"
/* find appropriate subdivided coordinates for absolute tile coordinate.
* This is less obvious than one might think, for negative coordinates, so this
* was created to give a definitive answer.
*
* 'absolute' is defined as the -actual- submap x,y * 12 + position in submap, and
* can be obtained from map.getabs(x, y);
* usage:
* real_coords rc( g->m.getabs(g->u.posx, g->u.posy ) );
*/
struct real_coords {
static const int tiles_in_sub = SEEX;
static const int tiles_in_sub_n = tiles_in_sub - 1;
static const int subs_in_om = OMAPX * 2;
static const int subs_in_om_n = subs_in_om - 1;
point abs_pos; // 1 per tile, starting from tile 0,0 of submap 0,0 of overmap 0,0
point abs_sub; // submap: 12 tiles.
point abs_om; // overmap: 360 submaps.
point sub_pos; // coordinate (0-11) in submap / abs_pos constrained to % 12.
point om_pos; // overmap tile: 2x2 submaps.
point om_sub; // submap (0-359) in overmap / abs_sub constrained to % 360. equivalent to g->levx
real_coords() {
}
real_coords(point ap) {
fromabs( ap.x, ap.y );
}
void fromabs(const int absx, const int absy) {
const int normx = abs(absx);
const int normy = abs(absy);
abs_pos = point(absx, absy);
if ( absx < 0 ) {
abs_sub.x = (absx-11)/12;
sub_pos.x = 11-((normx-1) % 12);
abs_om.x = (abs_sub.x-subs_in_om_n)/subs_in_om;
om_sub.x = subs_in_om_n-(((normx-1)/12) % subs_in_om);
} else {
abs_sub.x = normx/12;
sub_pos.x = absx % 12;
abs_om.x = abs_sub.x/subs_in_om;
om_sub.x = abs_sub.x % subs_in_om;
}
om_pos.x = om_sub.x / 2;
if ( absy < 0 ) {
abs_sub.y = (absy-11)/12;
sub_pos.y = 11-((normy-1) % 12);
abs_om.y = (abs_sub.y-subs_in_om_n)/subs_in_om;
om_sub.y = subs_in_om_n-(((normy-1)/12) % subs_in_om);
} else {
abs_sub.y = normy/12;
sub_pos.y = absy % 12;
abs_om.y = abs_sub.y/subs_in_om;
om_sub.y = abs_sub.y % subs_in_om;
}
om_pos.y = om_sub.y / 2;
}
void fromabs(point absolute) {
fromabs(absolute.x, absolute.y);
}
// specifically for the subjective position returned by overmap::draw
void fromomap( int rel_omx, int rel_omy, int rel_om_posx, int rel_om_posy ) {
int ax=(rel_omx*OMAPX) + rel_om_posx;
int ay=(rel_omy*OMAPY) + rel_om_posy;
fromabs(ax*24, ay*24);
}
// helper functions to return abs_pos of submap/overmap tile/overmap's start
point begin_sub() {
return point( abs_sub.x * tiles_in_sub, abs_sub.y * tiles_in_sub );
}
point begin_om_pos() {
return point( (abs_om.x * subs_in_om * tiles_in_sub) + ( om_pos.x * 2 * tiles_in_sub ),
(abs_om.y * subs_in_om * tiles_in_sub) + ( om_pos.y * 2 * tiles_in_sub ) );
}
point begin_om() {
return point( abs_om.x * subs_in_om * tiles_in_sub, abs_om.y * subs_in_om * tiles_in_sub);
}
};
#endif
+293 -283
View File
@@ -2,7 +2,7 @@
#include <iostream>
#include <fstream>
#include <sstream>
#include "catajson.h"
#include "json.h"
#include "input.h"
#include "game.h"
#include "options.h"
@@ -11,161 +11,149 @@
#include "inventory.h"
#include "item_factory.h"
#include "catacharset.h"
#include <queue>
//apparently we can't declare this in crafting.h? Complained about multiple definition.
std::vector<craft_cat> craft_cat_list;
std::vector<std::string> recipe_names;
recipe_map recipes;
std::map<std::string,quality> qualities;
std::map<std::string, std::queue<std::pair<recipe*, int> > > recipe_booksets;
void draw_recipe_tabs(WINDOW *w, craft_cat tab,bool filtered=false);
// This function just defines the recipes used throughout the game.
void game::init_recipes() throw (std::string)
void load_recipe_category(JsonObject &jsobj)
{
int id = -1;
int tl, cl;
recipe* last_rec = NULL;
craft_cat_list.push_back(jsobj.get_string("id"));
}
catajson recipeRaw("data/raw/recipes.json");
void load_recipe(JsonObject &jsobj)
{
JsonArray jsarr;
if(!json_good())
throw (std::string)"data/raw/recipes.json could not be read";
// required
std::string result = jsobj.get_string("result");
std::string category = jsobj.get_string("category");
int difficulty = jsobj.get_int("difficulty");
int time = jsobj.get_int("time");
bool autolearn = jsobj.get_bool("autolearn");
// optional
bool reversible = jsobj.get_bool("reversible", false);
std::string skill_used = jsobj.get_string("skill_used", "");
std::string id_suffix = jsobj.get_string("id_suffix", "");
int learn_by_disassembly = jsobj.get_int("decomp_learn", -1);
catajson craftCats = recipeRaw.get("categories");
for (craftCats.set_begin(); craftCats.has_curr(); craftCats.next())
{
craft_cat_list.push_back(craftCats.curr().as_string());
std::map<std::string, int> requires_skills;
jsarr = jsobj.get_array("skills_required");
if (jsarr.size() > 0) {
// could be a single requirement, or multiple
try {
// try to parse as single requirement
requires_skills[jsarr.get_string(0)] = jsarr.get_int(1);
} catch (std::string e) {
// get_string or get_int failed, so assume array of arrays
while (jsarr.has_more()) {
JsonArray ja = jsarr.next_array();
requires_skills[ja.get_string(0)] = ja.get_int(1);
}
}
}
catajson recipeList = recipeRaw.get("recipes");
std::vector<std::string> recipeNames;
for (recipeList.set_begin(); recipeList.has_curr(); recipeList.next())
std::string rec_name = result + id_suffix;
for (std::vector<std::string>::iterator name_iter = recipe_names.begin();
name_iter != recipe_names.end();
++name_iter)
{
catajson curr = recipeList.curr();
// required fields
std::string result = curr.get("result").as_string();
std::string category = curr.get("category").as_string();
int difficulty = curr.get("difficulty").as_int();
int time = curr.get("time").as_int();
bool autolearn = curr.get("autolearn").as_bool();
// optional fields
bool reversible = curr.has("reversible") ? curr.get("reversible").as_bool() : false;
std::string skill_used = curr.has("skill_used") ? curr.get("skill_used").as_string() : "";
std::map<std::string, int> requires_skills;
//Find skill requirements, if any exist
if(curr.has("requires_skills")){
catajson skill_list = curr.get("requires_skills");
// The json could contain the data for a single requirement, or multiple, but either way its an array
if(skill_list.is_array()){
skill_list.set_begin();
if(skill_list.curr().is_array()){
// If the first element is an array, we have a list of requirements
for(skill_list.set_begin(); skill_list.has_curr(); skill_list.next()){
catajson sub_list = skill_list.curr();
sub_list.set_begin();
std::string skill_name = sub_list.curr().as_string();
sub_list.next();
int skill_level = sub_list.curr().as_int();
requires_skills[skill_name]=skill_level;
}
} else {
// If the first element is not an array, we just have a single requirement
std::string skill_name = skill_list.curr().as_string();
skill_list.next();
int skill_level = skill_list.curr().as_int();
requires_skills[skill_name]=skill_level;
}
}
else {
debugmsg("Invalid skill requirements: %s", result.c_str());
}
if ((*name_iter) == rec_name) {
throw jsobj.line_number() + ": Recipe name collision (set a unique value for the id_suffix field to fix): " + rec_name;
}
std::string id_suffix = curr.has("id_suffix") ? curr.get("id_suffix").as_string() : "";
int learn_by_disassembly = curr.has("decomp_learn") ? curr.get("decomp_learn").as_int() : -1;
tl = -1;
cl = -1;
++id;
std::string rec_name = result + id_suffix;
last_rec = new recipe(rec_name, id, result, category, skill_used, requires_skills,
difficulty, time, reversible, autolearn,
learn_by_disassembly);
for (std::vector<std::string>::iterator name_iter = recipeNames.begin();
name_iter != recipeNames.end();
++name_iter)
{
if ((*name_iter) == rec_name)
{
debugmsg("Recipe name collision (set a unique value for the id_suffix field to fix): %s", rec_name.c_str());
}
}
recipeNames.push_back(rec_name);
catajson compList = curr.get("components");
for (compList.set_begin(); compList.has_curr(); compList.next())
{
++cl;
std::vector<component> component_choices;
catajson comp = compList.curr();
// interchangable components
for (comp.set_begin(); comp.has_curr(); comp.next())
{
std::string name = comp.curr().get(0).as_string();
int quant = comp.curr().get(1).as_int();
component_choices.push_back(component(name, quant));
}
last_rec->components.push_back(component_choices);
}
if (curr.has("tools"))
{
catajson toolList = curr.get("tools");
for (toolList.set_begin(); toolList.has_curr(); toolList.next())
{
++tl;
std::vector<component> tool_choices;
catajson tool = toolList.curr();
// interchangable tools
for (tool.set_begin(); tool.has_curr(); tool.next())
{
std::string name = tool.curr().get(0).as_string();
int quant = tool.curr().get(1).as_int();
tool_choices.push_back(component(name, quant));
}
last_rec->tools.push_back(tool_choices);
}
}
if (curr.has("book_learn"))
{
catajson book_list = curr.get("book_learn");
for (book_list.set_begin(); book_list.has_curr(); book_list.next())
{
catajson book = book_list.curr();
std::string book_name = book.get(0).as_string();
int book_level = book.get(1).as_int();
if (item_controller->find_template(book_name)->is_book())
{
it_book *book_def = dynamic_cast<it_book*>(item_controller->find_template(book_name));
book_def->recipes[last_rec] = book_level;
}
}
}
recipes[category].push_back(last_rec);
}
if(!json_good())
throw (std::string)"There was an error reading data/raw/recipes.json";
recipe_names.push_back(rec_name);
int id = recipe_names.size();
recipe* rec = new recipe(rec_name, id, result, category, skill_used,
requires_skills, difficulty, time, reversible,
autolearn, learn_by_disassembly);
jsarr = jsobj.get_array("components");
while (jsarr.has_more()) {
std::vector<component> component_choices;
JsonArray ja = jsarr.next_array();
while (ja.has_more()) {
JsonArray comp = ja.next_array();
std::string name = comp.get_string(0);
int quant = comp.get_int(1);
component_choices.push_back(component(name, quant));
}
rec->components.push_back(component_choices);
}
jsarr = jsobj.get_array("qualities");
while(jsarr.has_more()){
JsonObject quality_data = jsarr.next_object();
std::string ident = quality_data.get_string("id");
int level = quality_data.get_int("level", 1);
int amount = quality_data.get_int("amount", 1);
rec->qualities.push_back(quality_requirement(ident, level, amount));
}
jsarr = jsobj.get_array("tools");
while (jsarr.has_more()) {
std::vector<component> tool_choices;
JsonArray ja = jsarr.next_array();
while (ja.has_more()) {
JsonArray comp = ja.next_array();
std::string name = comp.get_string(0);
int quant = comp.get_int(1);
tool_choices.push_back(component(name, quant));
}
rec->tools.push_back(tool_choices);
}
jsarr = jsobj.get_array("book_learn");
while (jsarr.has_more()) {
JsonArray ja = jsarr.next_array();
std::string book_name = ja.get_string(0);
int book_level = ja.get_int(1);
std::pair<recipe*, int> temp_pair(rec, book_level);
if (recipe_booksets.find(book_name) == recipe_booksets.end()){
recipe_booksets[book_name] = std::queue<std::pair<recipe*, int> >();
}
recipe_booksets[book_name].push(temp_pair);
}
recipes[category].push_back(rec);
}
void finalize_recipes()
{
for (std::map<std::string, std::queue<std::pair<recipe*, int> > >::iterator book_ref_it = recipe_booksets.begin();
book_ref_it != recipe_booksets.end(); ++book_ref_it){
if (!book_ref_it->second.empty() && item_controller->find_template(book_ref_it->first)->is_book()){
it_book *book_def = dynamic_cast<it_book*>(item_controller->find_template(book_ref_it->first));
while (!book_ref_it->second.empty()){
std::pair<recipe*, int> rec_pair = book_ref_it->second.front();
book_ref_it->second.pop();
book_def->recipes[rec_pair.first] = rec_pair.second;
}
}
}
}
void load_quality(JsonObject &jo)
{
quality qual;
qual.id = jo.get_string("id");
qual.name = _(jo.get_string("name").c_str());
qualities[qual.id] = qual;
}
bool game::crafting_allowed()
{
if (u.morale_level() < MIN_MORALE_CRAFT)
{ // See morale.h
{ // See morale.h
add_msg(_("Your morale is too low to craft..."));
return false;
}
@@ -188,17 +176,14 @@ void game::recraft()
//TODO clean up this function to give better status messages (e.g., "no fire available")
bool game::making_would_work(recipe *making)
{
if (!crafting_allowed())
{
return false;
if (!crafting_allowed()) {
return false;
}
if(can_make(making))
{
if (item_controller->find_template((making->result))->phase == LIQUID)
{
if (u.has_watertight_container() || u.has_matching_liquid(item_controller->find_template(making->result)->id))
{
if(can_make(making)) {
if (item_controller->find_template((making->result))->phase == LIQUID) {
if (u.has_watertight_container() ||
u.has_matching_liquid(item_controller->find_template(making->result)->id)) {
return true;
}
else
@@ -226,7 +211,26 @@ bool game::can_make(recipe *r)
{
return false;
}
// under the assumption that all comp and tool's array contains all the required stuffs at the start of the array
// under the assumption that all comp and tool's array contains
// all the required stuffs at the start of the array
// check all tool_quality requirements
// this is an alternate method of checking for tools by using the tools qualities instead of the specific tool
// You can specify the amount of tools with this quality required, but it does not work for consumed charges.
std::vector<quality_requirement> &qualities = r->qualities;
std::vector<quality_requirement>::iterator quality_iter = qualities.begin();
while(quality_iter != qualities.end()){
std::string id = quality_iter->id;
int amount = quality_iter->count;
int level = quality_iter->level;
if(crafting_inv.has_items_with_quality(id, level, amount)){
quality_iter->available = true;
} else {
quality_iter->available = false;
RET_VAL = false;
}
++quality_iter;
}
// check all tools
std::vector<std::vector<component> > &tools = r->tools;
@@ -235,7 +239,7 @@ bool game::can_make(recipe *r)
{
std::vector<component> &set_of_tools = *tool_set_it;
// if current tool is null(size 0), assume that there is no more after it.
if(set_of_tools.size()==0)
if(set_of_tools.empty())
{
break;
}
@@ -246,7 +250,8 @@ bool game::can_make(recipe *r)
component &tool = *tool_it;
itype_id type = tool.type;
int req = tool.count;
if((req<= 0 && crafting_inv.has_amount(type,1)) || (req > 0 && crafting_inv.has_charges(type,req)))
if((req<= 0 && crafting_inv.has_amount(type, 1)) ||
(req > 0 && crafting_inv.has_charges(type, req)))
{
has_tool_in_set = true;
tool.available = 1;
@@ -269,7 +274,7 @@ bool game::can_make(recipe *r)
while (comp_set_it != components.end())
{
std::vector<component> &set_of_components = *comp_set_it;
if(set_of_components.size() == 0)
if(set_of_components.empty())
{
break;
}
@@ -485,7 +490,7 @@ void game::craft()
{
if (!crafting_allowed())
{
return;
return;
}
recipe *rec = select_crafting_recipe();
@@ -499,7 +504,7 @@ void game::long_craft()
{
if (!crafting_allowed())
{
return;
return;
}
recipe *rec = select_crafting_recipe();
@@ -539,12 +544,14 @@ craft_cat game::prev_craft_cat(craft_cat cat)
recipe* game::select_crafting_recipe()
{
const int dataHalfLines=(int)((TERMY-3-4)/2);
const int dataLines=(int)(dataHalfLines*2); // old: 18
const int dataHeight=dataLines+4; // old: 22
const int headHeight = 3;
const int tailHeight = 4;
const int dataLines = TERMY - headHeight - tailHeight;
const int dataHalfLines = dataLines / 2;
const int dataHeight = TERMY - headHeight;
WINDOW *w_head = newwin( 3, FULL_SCREEN_WIDTH, 0, (TERMX > FULL_SCREEN_WIDTH) ? (TERMX-FULL_SCREEN_WIDTH)/2 : 0);
WINDOW *w_data = newwin(dataHeight, FULL_SCREEN_WIDTH, 3, (TERMX > FULL_SCREEN_WIDTH) ? (TERMX -FULL_SCREEN_WIDTH)/2 : 0);
WINDOW *w_head = newwin(headHeight, FULL_SCREEN_WIDTH, 0, (TERMX > FULL_SCREEN_WIDTH) ? (TERMX-FULL_SCREEN_WIDTH)/2 : 0);
WINDOW *w_data = newwin(dataHeight, FULL_SCREEN_WIDTH, headHeight, (TERMX > FULL_SCREEN_WIDTH) ? (TERMX-FULL_SCREEN_WIDTH)/2 : 0);
craft_cat tab = "CC_WEAPON";
@@ -578,100 +585,72 @@ recipe* game::select_crafting_recipe()
// Clear the screen of recipe data, and draw it anew
werase(w_data);
if(filterstring != "")
{
if (filterstring != "") {
mvwprintz(w_data, dataLines+1, 5, c_white, _("[?/E]: Describe, [F]ind , [R]eset"));
}
else
{
} else {
mvwprintz(w_data, dataLines+1, 5, c_white, _("[?/E]: Describe, [F]ind"));
}
mvwprintz(w_data, dataLines+2, 5, c_white, _("Press <ENTER> to attempt to craft object."));
for (int i = 0; i < FULL_SCREEN_WIDTH; i++)
{
mvwputch(w_data, dataHeight-1, i, c_ltgray, LINE_OXOX);
if (i < dataHeight-1)
{
mvwputch(w_data, i, 0, c_ltgray, LINE_XOXO);
mvwputch(w_data, i, FULL_SCREEN_WIDTH-1, c_ltgray, LINE_XOXO);
}
}
// Draw borders
for (int i = 1; i < FULL_SCREEN_WIDTH-1; ++i) { // _
mvwputch(w_data, dataHeight-1, i, c_ltgray, LINE_OXOX);
}
for (int i = 1; i < dataHeight-1; ++i) { // |
mvwputch(w_data, i, 0, c_ltgray, LINE_XOXO);
mvwputch(w_data, i, FULL_SCREEN_WIDTH-1, c_ltgray, LINE_XOXO);
}
mvwputch(w_data, dataHeight-1, 0, c_ltgray, LINE_XXOO); // _|
mvwputch(w_data, dataHeight-1, FULL_SCREEN_WIDTH-1, c_ltgray, LINE_XOOX); // |_
int recmin = 0, recmax = current.size();
if(recmax > dataLines)
{
if (line <= recmin + dataHalfLines)
{
for (int i = recmin; i < recmin + dataLines; i++)
{
mvwprintz(w_data, i - recmin, 2, c_dkgray, ""); // Clear the line
if (i == line)
{
if (recmax > dataLines) {
if (line <= recmin + dataHalfLines) {
for (int i = recmin; i < recmin + dataLines; ++i) {
mvwprintz(w_data, i - recmin, 2, c_dkgray, ""); // Clear the line
if (i == line) {
mvwprintz(w_data, i - recmin, 2, (available[i] ? h_white : h_dkgray),
item_controller->find_template(current[i]->result)->name.c_str());
}
else
{
} else {
mvwprintz(w_data, i - recmin, 2, (available[i] ? c_white : c_dkgray),
item_controller->find_template(current[i]->result)->name.c_str());
}
}
}
else if (line >= recmax - dataHalfLines)
{
for (int i = recmax - dataLines; i < recmax; i++)
{
mvwprintz(w_data, dataLines + i - recmax, 2, c_ltgray, ""); // Clear the line
if (i == line)
{
} else if (line >= recmax - dataHalfLines) {
for (int i = recmax - dataLines; i < recmax; ++i) {
mvwprintz(w_data, dataLines + i - recmax, 2, c_ltgray, ""); // Clear the line
if (i == line) {
mvwprintz(w_data, dataLines + i - recmax, 2, (available[i] ? h_white : h_dkgray),
item_controller->find_template(current[i]->result)->name.c_str());
}
else
{
} else {
mvwprintz(w_data, dataLines + i - recmax, 2, (available[i] ? c_white : c_dkgray),
item_controller->find_template(current[i]->result)->name.c_str());
}
}
}
else
{
for (int i = line - dataHalfLines; i < line + dataHalfLines; i++)
{
mvwprintz(w_data, dataHalfLines + i - line, 2, c_ltgray, ""); // Clear the line
if (i == line)
{
} else {
for (int i = line - dataHalfLines; i < line - dataHalfLines + dataLines; ++i) {
mvwprintz(w_data, dataHalfLines + i - line, 2, c_ltgray, ""); // Clear the line
if (i == line) {
mvwprintz(w_data, dataHalfLines + i - line, 2, (available[i] ? h_white : h_dkgray),
item_controller->find_template(current[i]->result)->name.c_str());
}
else
{
} else {
mvwprintz(w_data, dataHalfLines + i - line, 2, (available[i] ? c_white : c_dkgray),
item_controller->find_template(current[i]->result)->name.c_str());
}
}
}
}
else
{
for (int i = 0; i < current.size() && i < dataHeight+1; i++)
{
if (i == line)
{
} else {
for (int i = 0; i < current.size() && i < dataHeight+1; ++i) {
if (i == line) {
mvwprintz(w_data, i, 2, (available[i] ? h_white : h_dkgray),
item_controller->find_template(current[i]->result)->name.c_str());
}
else
{
} else {
mvwprintz(w_data, i, 2, (available[i] ? c_white : c_dkgray),
item_controller->find_template(current[i]->result)->name.c_str());
}
}
}
if (current.size() > 0)
if (!current.empty())
{
nc_color col = (available[line] ? c_white : c_dkgray);
mvwprintz(w_data, 0, 30, col, _("Skills used: %s"),
@@ -702,7 +681,7 @@ recipe* game::select_crafting_recipe()
int(current[line]->time / 100));
}
mvwprintz(w_data, 5, 30, col, _("Tools required:"));
if (current[line]->tools.size() == 0)
if (current[line]->tools.size() == 0 && current[line]->qualities.size() == 0)
{
mvwputch(w_data, 6, 30, col, '>');
mvwprintz(w_data, 6, 32, c_green, _("NONE"));
@@ -710,7 +689,22 @@ recipe* game::select_crafting_recipe()
}
else
{
ypos = 5;
ypos = 6;
// Loop to print the required tool qualities
for(std::vector<quality_requirement>::const_iterator iter = current[line]->qualities.begin();
iter != current[line]->qualities.end(); ++iter){
xpos = 32;
mvwputch(w_data, ypos, 30, col, '>');
nc_color toolcol = c_red;
if(iter->available){
toolcol = c_green;
}
std::stringstream qualinfo;
qualinfo << string_format(_("Requires %d tools with %s of %d or more."), iter->count, qualities[iter->id].name.c_str(), iter->level);
ypos += fold_and_print(w_data, ypos, xpos, getmaxx(w_data)-xpos-1, toolcol, qualinfo.str().c_str());
}
ypos--;
// Loop to print the required tools
for (int i = 0; i < current[line]->tools.size() && current[line]->tools[i].size() > 0; i++)
{
@@ -1059,7 +1053,7 @@ void game::complete_craft()
int skill_sides = 16 + u.int_cur;
int diff_dice = making->difficulty * 4; // Since skill level is * 4 also
int diff_sides = 24; // 16 + 8 (default intelligence)
int diff_sides = 24; // 16 + 8 (default intelligence)
int skill_roll = dice(skill_dice, skill_sides);
int diff_roll = dice(diff_dice, diff_sides);
@@ -1127,20 +1121,20 @@ void game::complete_craft()
}
if (used_age_count > 0 && newit.goes_bad())
{
const int average_used_age = (used_age_tally / used_age_count) * dynamic_cast<it_comest*>(newit.type)->spoils;
const int average_used_age = int((used_age_tally / used_age_count) * dynamic_cast<it_comest*>(newit.type)->spoils);
newit.bday = newit.bday - average_used_age;
}
// for food items
if (newit.is_food())
{
int bday_tmp = newit.bday % 3600; // fuzzy birthday for stacking reasons
int bday_tmp = newit.bday % 3600; // fuzzy birthday for stacking reasons
newit.bday = int(newit.bday) + 3600 - bday_tmp;
if (newit.has_flag("EATEN_HOT")) { // hot foods generated
newit.item_tags.insert("HOT");
newit.active = true;
newit.item_counter = 600;
}
if (newit.has_flag("EATEN_HOT")) { // hot foods generated
newit.item_tags.insert("HOT");
newit.active = true;
newit.item_counter = 600;
}
}
if (!newit.craft_has_charges())
newit.charges = 0;
@@ -1268,7 +1262,7 @@ std::list<item> game::consume_items(player *p, std::vector<component> components
}
// unlike with tools, it's a bad thing if there aren't any components available
if (options.size() == 0)
if (options.empty())
{
debugmsg("Attempted a recipe with no available components!");
return ret;
@@ -1379,12 +1373,13 @@ void game::consume_tools(player *p, std::vector<component> tools, bool force_ava
if (found_nocharge)
return; // Default to using a tool that doesn't require charges
if (player_has.size() == 1 && map_has.size() == 0)
p->use_charges(player_has[0].type, player_has[0].count);
else if (map_has.size() == 1 && player_has.size() == 0)
m.use_charges(point(p->posx, p->posy), PICKUP_RANGE,
map_has[0].type, map_has[0].count);
else { // Variety of options, list them and pick one
if (player_has.size() + map_has.size() == 1){
if(map_has.empty()){
p->use_charges(player_has[0].type, player_has[0].count);
} else {
m.use_charges(p->pos(), PICKUP_RANGE, map_has[0].type, map_has[0].count);
}
} else { // Variety of options, list them and pick one
// Populate the list
std::vector<std::string> options;
for (int i = 0; i < map_has.size(); i++) {
@@ -1394,7 +1389,7 @@ void game::consume_tools(player *p, std::vector<component> tools, bool force_ava
for (int i = 0; i < player_has.size(); i++)
options.push_back(item_controller->find_template(player_has[i].type)->name);
if (options.size() == 0) // This SHOULD only happen if cooking with a fire,
if (options.empty()) // This SHOULD only happen if cooking with a fire,
return; // and the fire goes out.
// Get selection via a popup menu
@@ -1446,59 +1441,55 @@ void game::disassemble(char ch)
bool have_all_tools = true;
for (int j = 0; j < cur_recipe->tools.size(); j++)
{
bool have_this_tool = false;
if (cur_recipe->tools[j].size() == 0) // no tools required, may change this
{
have_this_tool = true;
continue;
}
else
bool have_this_tool = false;
for (int k = 0; k < cur_recipe->tools[j].size(); k++)
{
for (int k = 0; k < cur_recipe->tools[j].size(); k++)
{
itype_id type = cur_recipe->tools[j][k].type;
int req = cur_recipe->tools[j][k].count; // -1 => 1
itype_id type = cur_recipe->tools[j][k].type;
int req = cur_recipe->tools[j][k].count; // -1 => 1
if ((req <= 0 && crafting_inv.has_amount (type, 1)) ||
(req > 0 && crafting_inv.has_charges(type, req)))
if ((req <= 0 && crafting_inv.has_amount (type, 1)) ||
(req > 0 && crafting_inv.has_charges(type, req)))
{
have_this_tool = true;
k = cur_recipe->tools[j].size();
}
// if crafting recipe required a welder, disassembly requires a hacksaw or super toolkit
if (type == "welder")
{
if (crafting_inv.has_amount("hacksaw", 1) ||
crafting_inv.has_amount("toolset", 1))
{
have_this_tool = true;
k = cur_recipe->tools[j].size();
}
// if crafting recipe required a welder, disassembly requires a hacksaw or super toolkit
if (type == "welder")
{
if (crafting_inv.has_amount("hacksaw", 1) ||
crafting_inv.has_amount("toolset", 1))
{
have_this_tool = true;
}
else
{
have_this_tool = false;
}
}
}
if (!have_this_tool)
{
have_all_tools = false;
int req = cur_recipe->tools[j][0].count;
if (cur_recipe->tools[j][0].type == "welder")
{
add_msg(_("You need a hacksaw to disassemble this."));
}
else
{
if (req <= 0)
{
add_msg(_("You need a %s to disassemble this."),
item_controller->find_template(cur_recipe->tools[j][0].type)->name.c_str());
}
else
{
add_msg(_("You need a %s with %d charges to disassemble this."),
item_controller->find_template(cur_recipe->tools[j][0].type)->name.c_str(), req);
}
have_this_tool = false;
}
}
}
if (!have_this_tool)
{
have_all_tools = false;
int req = cur_recipe->tools[j][0].count;
if (cur_recipe->tools[j][0].type == "welder")
{
add_msg(_("You need a hacksaw to disassemble this."));
}
else
{
if (req <= 0)
{
add_msg(_("You need a %s to disassemble this."),
item_controller->find_template(cur_recipe->tools[j][0].type)->name.c_str());
}
else
{
add_msg(_("You need a %s with %d charges to disassemble this."),
item_controller->find_template(cur_recipe->tools[j][0].type)->name.c_str(), req);
}
}
}
@@ -1506,7 +1497,18 @@ void game::disassemble(char ch)
// all tools present, so assign the activity
if (have_all_tools)
{
// check to see if it's even possible to disassemble if it happens to be a count_by_charge item
// (num_charges / charges_required) > 0
// done before query because it doesn't make sense to query and then say "woops, can't do that!"
if (dis_item->count_by_charges()){
// required number of item in inventory for disassembly to succeed
int num_disassemblies_available = dis_item->charges / dis_item->type->stack_size;;
if (num_disassemblies_available == 0){
add_msg(_("You cannot disassemble the %s into its components, too few items."), dis_item->name.c_str());
return;
}
}
if (OPTIONS["QUERY_DISASSEMBLE"] && !(query_yn(_("Really disassemble your %s?"), dis_item->tname(this).c_str())))
{
return;
@@ -1547,7 +1549,7 @@ void game::complete_disassemble()
recipe* dis = recipe_by_index(u.activity.index); // Which recipe is it?
item* dis_item = &u.i_at(u.activity.values[0]);
add_msg(_("You disassemble the item into its components."));
add_msg(_("You disassemble the %s into its components."), dis_item->name.c_str());
// remove any batteries or ammo first
if (dis_item->is_gun() && dis_item->curammo != NULL && dis_item->ammo_type() != "NULL")
{
@@ -1572,13 +1574,21 @@ void game::complete_disassemble()
else
m.add_item_or_charges(u.posx, u.posy, ammodrop);
}
u.i_rem(u.activity.values[0]); // remove the item
if (dis_item->count_by_charges()){
dis_item->charges -= dis_item->type->stack_size;
if (dis_item->charges == 0){
u.i_rem(u.activity.values[0]);
}
}else{
u.i_rem(u.activity.values[0]); // remove the item
}
// consume tool charges
for (int j = 0; j < dis->tools.size(); j++)
{
if (dis->tools[j].size() > 0)
consume_tools(&u, dis->tools[j], false);
consume_tools(&u, dis->tools[j], false);
}
// add the components to the map
@@ -1591,7 +1601,7 @@ void game::complete_disassemble()
int skill_sides = 16 + u.int_cur;
int diff_dice = dis->difficulty;
int diff_sides = 24; // 16 + 8 (default intelligence)
int diff_sides = 24; // 16 + 8 (default intelligence)
// disassembly only nets a bit of practice
if (dis->skill_used)
@@ -1621,7 +1631,7 @@ void game::complete_disassemble()
} else
{
if (dis->difficulty == 0 || comp_success)
m.add_item(u.posx, u.posy, newit, MAX_ITEM_IN_SQUARE);
m.add_item_or_charges(u.posx, u.posy, newit);
else
add_msg(_("You fail to recover a component."));
compcount--;
@@ -1667,7 +1677,7 @@ recipe* game::recipe_by_index(int index)
return NULL;
}
recipe* game::recipe_by_name(std::string name)
recipe* recipe_by_name(std::string name)
{
for (recipe_map::iterator map_iter = recipes.begin(); map_iter != recipes.end(); ++map_iter)
{
+37 -3
View File
@@ -7,6 +7,7 @@
#include "itype.h"
#include "skill.h"
#include "rng.h"
#include "json.h"
#define MAX_DISPLAYED_RECIPES 18
@@ -22,6 +23,28 @@ struct component
component(itype_id TYPE, int COUNT) : type (TYPE), count (COUNT), available(-1) {}
};
struct quality_requirement
{
std::string id;
int count;
bool available;
int level;
quality_requirement() { id = "UNKNOWN"; count = 0; available = false; level = 0;}
quality_requirement(std::string new_id, int new_count, int new_level){
id = new_id;
count = new_count;
level = new_level;
available = false;
}
};
struct quality
{
std::string id;
std::string name;
};
struct recipe {
std::string ident;
int id;
@@ -36,13 +59,14 @@ struct recipe {
int learn_by_disassembly; // what level (if any) do we learn it by disassembly?
std::vector<std::vector<component> > tools;
std::vector<quality_requirement> qualities;
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()){
if(!required_skills.empty()){
for(std::map<Skill*,int>::iterator iter=required_skills.begin(); iter!=required_skills.end();){
skills_as_stream << iter->first->name() << "(" << iter->second << ")";
++iter;
@@ -65,6 +89,7 @@ struct recipe {
time = 0;
reversible = false;
autolearn = false;
learn_by_disassembly = -1;
}
recipe(std::string pident, int pid, itype_id pres, craft_cat pcat, std::string &to_use,
@@ -73,7 +98,7 @@ recipe(std::string pident, int pid, itype_id pres, craft_cat pcat, std::string &
ident (pident), id (pid), result (pres), cat(pcat), difficulty (pdiff), time (ptime),
reversible (preversible), autolearn (pautolearn), learn_by_disassembly (plearn_dis) {
skill_used = to_use.size()?Skill::skill(to_use):NULL;
if(to_require.size()){
if(!to_require.empty()){
for(std::map<std::string,int>::iterator iter=to_require.begin(); iter!=to_require.end(); ++iter){
required_skills[Skill::skill(iter->first)] = iter->second;
}
@@ -81,8 +106,17 @@ recipe(std::string pident, int pid, itype_id pres, craft_cat pcat, std::string &
}
};
typedef std::vector<recipe*> recipe_list;
typedef std::map<craft_cat, recipe_list> recipe_map;
void load_recipe_category(JsonObject &jsobj);
void load_recipe(JsonObject &jsobj);
recipe* recipe_by_name(std::string name);
void finalize_recipes();
extern recipe_map recipes; // The list of valid recipes
void load_quality(JsonObject &jo);
extern std::map<std::string,quality> qualities;
#endif
+2
View File
@@ -4,8 +4,10 @@
#if (defined TILES || defined SDLTILES || defined _WIN32 || defined WINDOWS)
#include "catacurse.h"
#elif (defined __CYGWIN__)
#include "input_defs.h"
#include "ncurses/curses.h"
#else
#include "input_defs.h"
#include <curses.h>
#endif
+296 -268
View File
@@ -1,4 +1,4 @@
#if ((defined TILES ^ defined SDLTILES) || defined _WIN32 || defined WINDOWS)
#if (defined TILES || defined _WIN32 || defined WINDOWS)
#include "catacurse.h"
#include "output.h"
#include "color.h"
@@ -9,17 +9,19 @@
//***********************************
WINDOW *mainwin;
WINDOW *stdscr;
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 *
//Pseudo-Curses Functions *
//***********************************
//Basic Init, create the font, backbuffer, etc
WINDOW *initscr(void)
{
return curses_init();
stdscr = curses_init();
return stdscr;
}
WINDOW *newwin(int nlines, int ncols, int begin_y, int begin_x)
@@ -29,48 +31,42 @@ WINDOW *newwin(int nlines, int ncols, int begin_y, int begin_x)
}
// default values
if (ncols == 0)
{
if (ncols == 0) {
ncols = TERMX - begin_x;
}
if (nlines == 0)
{
if (nlines == 0) {
nlines = TERMY - begin_y;
}
int i,j;
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->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 !?
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;
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;
}
@@ -78,101 +74,116 @@ WINDOW *newwin(int nlines, int ncols, int begin_y, int begin_x)
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;
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){
inline int newline(WINDOW *win)
{
if (win->cursory < win->height - 1) {
win->cursory++;
win->cursorx=0;
win->cursorx = 0;
return 1;
}
return 0;
return 0;
}
inline void addedchar(WINDOW *win){
inline void addedchar(WINDOW *win)
{
win->cursorx++;
win->line[win->cursory].touched=true;
if (win->cursorx > win->width)
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)
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);
*/
/*
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!
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++)
for (j = 1; j < win->height - 1; j++) {
mvwaddch(win, j, 0, ls);
}
} else {
for (j=1; j<win->height-1; j++)
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);
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);
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++)
for (i = 1; i < win->width - 1; i++) {
mvwaddch(win, 0, i, ts);
}
} else {
for (i=1; i<win->width-1; i++)
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);
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);
for (i = 1; i < win->width - 1; i++) {
mvwaddch(win, win->height - 1, i, LINE_OXOX);
}
}
if (tl)
if (tl) {
mvwaddch(win, 0, 0, tl);
else
} 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 (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 (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);
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);
//methods above move the cursor, put it back
wmove(win, oldy, oldx);
wattroff(win, c_white);
return 1;
}
@@ -209,12 +220,14 @@ int mvvline(int y, int x, chtype ch, int n)
int mvwhline(WINDOW *win, int y, int x, chtype ch, int n)
{
if (ch){
for (int i=0; i<n; i++)
if (ch) {
for (int i = 0; i < n; i++) {
mvwaddch(win, y, x + i, ch);
}
} else {
for (int i=0; i<n; i++)
for (int i = 0; i < n; i++) {
mvwaddch(win, y, x + i, LINE_OXOX);
}
}
return 0;
@@ -222,12 +235,14 @@ int mvwhline(WINDOW *win, int y, int x, chtype ch, int n)
int mvwvline(WINDOW *win, int y, int x, chtype ch, int n)
{
if (ch){
for (int j=0; j<n; j++)
if (ch) {
for (int j = 0; j < n; j++) {
mvwaddch(win, y + j, x, ch);
}
} else {
for (int j=0; j<n; j++)
for (int j = 0; j < n; j++) {
mvwaddch(win, y + j, x, LINE_XOXO);
}
}
return 0;
@@ -236,13 +251,13 @@ int mvwvline(WINDOW *win, int y, int x, chtype ch, int n)
//Refreshes a window, causing it to redraw on top.
int wrefresh(WINDOW *win)
{
if (win==0) win=mainwin;
if (win->draw)
if (win->draw) {
curses_drawwindow(win);
}
return 1;
}
//Refreshes window 0 (stdscr), causing it to redraw on top.
//Refreshes the main window, causing it to redraw on top.
int refresh(void)
{
return wrefresh(mainwin);
@@ -253,18 +268,18 @@ int getch(void)
return wgetch(mainwin);
}
int wgetch(WINDOW* win)
int wgetch(WINDOW *win)
{
return curses_getch(win);
return curses_getch(win);
}
int mvgetch(int y, int x)
{
move(y,x);
move(y, x);
return getch();
}
int mvwgetch(WINDOW* win, int y, int x)
int mvwgetch(WINDOW *win, int y, int x)
{
move(y, x);
return wgetch(win);
@@ -275,34 +290,31 @@ int getnstr(char *str, int size)
int startX = mainwin->cursorx;
int count = 0;
char input;
while(true)
{
while(true) {
input = getch();
// Carriage return, Line feed and End of File terminate the input.
if( input == '\r' || input == '\n' || input == '\x04' )
{
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
} 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)
{
if(echoOn == 1) {
move(mainwin->cursory, startX + count);
mvaddch(mainwin->cursory, startX + count, input);
}
@@ -315,60 +327,60 @@ int getnstr(char *str, int size)
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(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;
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(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(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.
} 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;
}
@@ -380,7 +392,7 @@ int wprintw(WINDOW *win, const char *fmt, ...)
char printbuf[2048];
vsnprintf(printbuf, 2047, fmt, args);
va_end(args);
return printstring(win,printbuf);
return printstring(win, printbuf);
}
//Prints a formatted string to a window, moves the cursor
@@ -391,11 +403,13 @@ int mvwprintw(WINDOW *win, int y, int x, const char *fmt, ...)
char printbuf[2048];
vsnprintf(printbuf, 2047, fmt, args);
va_end(args);
if (wmove(win,y,x)==0) return 0;
return printstring(win,printbuf);
if (wmove(win, y, x) == 0) {
return 0;
}
return printstring(win, printbuf);
}
//Prints a formatted string to window 0 (stdscr), moves the cursor
//Prints a formatted string to the main window, moves the cursor
int mvprintw(int y, int x, const char *fmt, ...)
{
va_list args;
@@ -403,11 +417,13 @@ int mvprintw(int y, int x, const char *fmt, ...)
char printbuf[2048];
vsnprintf(printbuf, 2047, fmt, args);
va_end(args);
if (move(y,x)==0) return 0;
return printstring(mainwin,printbuf);
if (move(y, x) == 0) {
return 0;
}
return printstring(mainwin, printbuf);
}
//Prints a formatted string to window 0 (stdscr) at the current cursor
//Prints a formatted string to the main window at the current cursor
int printw(const char *fmt, ...)
{
va_list args;
@@ -415,33 +431,32 @@ int printw(const char *fmt, ...)
char printbuf[2078];
vsnprintf(printbuf, 2047, fmt, args);
va_end(args);
return printstring(mainwin,printbuf);
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;
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);
win->draw = true;
wmove(win, 0, 0);
// wrefresh(win);
return 1;
}
//erases window 0 (stdscr) of all text and attributes
//erases the main window of all text and attributes
int erase(void)
{
return werase(mainwin);
@@ -450,28 +465,32 @@ int erase(void)
//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;
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;
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?
//Clears the main window I'm not sure if its suppose to do this?
int clear(void)
{
return wclear(mainwin);
@@ -480,14 +499,16 @@ int clear(void)
//Ends the terminal, destroy everything
int endwin(void)
{
return curses_destroy();
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);
if (wmove(win, y, x) == 0) {
return 0;
}
return waddch(win, ch);
}
//clears a window
@@ -500,8 +521,7 @@ int wclear(WINDOW *win)
int clearok(WINDOW *win)
{
for (int i=0; i<win->y; i++)
{
for (int i = 0; i < win->y; i++) {
win->line[i].touched = true;
}
return 1;
@@ -510,39 +530,47 @@ int clearok(WINDOW *win)
//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;
}
//gets the current cursor x position in a window
int getcurx(WINDOW *win)
{
return win->cursorx;
}
//gets the current cursor y position in a window
int getcury(WINDOW *win)
{
return win->cursory;
}
int start_color(void)
{
return curses_start_color();
return curses_start_color();
}
int keypad(WINDOW *faux, bool bf)
{
return 1;
return 1;
}
int cbreak(void)
@@ -560,7 +588,7 @@ int curs_set(int visibility)
int mvaddch(int y, int x, const chtype ch)
{
return mvwaddch(mainwin,y,x,ch);
return mvwaddch(mainwin, y, x, ch);
}
int wattron(WINDOW *win, int attrs)
@@ -568,16 +596,20 @@ 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;
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
win->FG = 8; //reset to white
win->BG = 0; //reset to black
return 1;
}
int attron(int attrs)
@@ -586,89 +618,85 @@ int attron(int attrs)
}
int attroff(int attrs)
{
return wattroff(mainwin,attrs);
return wattroff(mainwin, attrs);
}
int waddch(WINDOW *win, const chtype ch)
{
char charcode;
charcode=ch;
charcode = ch;
switch (ch){ //LINE_NESW - X for on, O for off
switch (ch) { //LINE_NESW - X for on, O for off
case LINE_XOXO: //#define LINE_XOXO 4194424
charcode=LINE_XOXO_C;
charcode = LINE_XOXO_C;
break;
case LINE_OXOX: //#define LINE_OXOX 4194417
charcode=LINE_OXOX_C;
charcode = LINE_OXOX_C;
break;
case LINE_XXOO: //#define LINE_XXOO 4194413
charcode=LINE_XXOO_C;
charcode = LINE_XXOO_C;
break;
case LINE_OXXO: //#define LINE_OXXO 4194412
charcode=LINE_OXXO_C;
charcode = LINE_OXXO_C;
break;
case LINE_OOXX: //#define LINE_OOXX 4194411
charcode=LINE_OOXX_C;
charcode = LINE_OOXX_C;
break;
case LINE_XOOX: //#define LINE_XOOX 4194410
charcode=LINE_XOOX_C;
charcode = LINE_XOOX_C;
break;
case LINE_XXOX: //#define LINE_XXOX 4194422
charcode=LINE_XXOX_C;
charcode = LINE_XXOX_C;
break;
case LINE_XXXO: //#define LINE_XXXO 4194420
charcode=LINE_XXXO_C;
charcode = LINE_XXXO_C;
break;
case LINE_XOXX: //#define LINE_XOXX 4194421
charcode=LINE_XOXX_C;
charcode = LINE_XOXX_C;
break;
case LINE_OXXX: //#define LINE_OXXX 4194423
charcode=LINE_OXXX_C;
charcode = LINE_OXXX_C;
break;
case LINE_XXXX: //#define LINE_XXXX 4194414
charcode=LINE_XXXX_C;
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);
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(curx != p) {
const char *ts = win->line[cury].chars + p;
int len = ANY_LENGTH;
unsigned tc = UTF8_getch(&ts, &len);
int tw = mk_wcwidth(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->line[cury].chars[curx] = charcode;
win->line[cury].FG[win->cursorx] = win->FG;
win->line[cury].BG[win->cursorx] = win->BG;
win->draw=true;
win->draw = true;
addedchar(win);
return 1;
// else{
// win2=win2+1;
}
//Move the cursor of windows 0 (stdscr)
//Move the cursor of the main window
int move(int y, int x)
{
return wmove(mainwin,y,x);
return wmove(mainwin, y, x);
}
//Set the amount of time getch waits for input
-251
View File
@@ -1,251 +0,0 @@
%
Our chemical department has made great strides in the production of a
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
even cure congenital defects. This substance has been denoted PE018.
%
Both PE012 and PE018 show great stability. A subject was exposed to both
substances, alternating between the mutagen and the purifier. Ultimately, the
subject returned to baseline state with no apparent side effects.
%
We have made a fascinating discovery; by creating a miniature portal with
low stability and high power, one can transpose into the 4th dimension and
return immediately, but shifted by several meters. Our subjects oscillated so
quickly that none were even aware that they had visited lower planes.
%
Our research on teleportation has ground to a halt. For some reason, the
creation of a long-range transportation device eludes us, and one can transfer
no further than 30 meters.
%
I don't know how it happened, but a janitor managed to activate the portal
while cleaning the lab, shifting in an assortment of prehistoric fauna.
Security was called in immediately but was unable to save the janitor from
being torn apart. By the time the confusion settled, all the fauna had been
terminated.
%
Tests on the prehistoric fauna show extremely close genetic relationships
with extant and extinct terranian animals. It might be that the portal had
performed a transposition in time, unfortunately the portal device was
destroyed when security put down the fauna.
%
An incident occurred in the teleportation lab, wherein a subject managed to
teleport into another subject. The latter was completely destroyed from the
inside out, while the former sustained little damage. I would like to explore
the phenomenon further, but subjects are expensive.
%
Test subjects in the teleportation department are showing alarming
symptoms. It seems prolonged rapid transposition along the 4th dimension
weakens the forces holding one on this plane.
%
Catastrophe struck in our teleportation department yesterday. It seems
that our test subjects are so detached from this plane that they create
occasional tunnels along the 4th dimension, allowing life forms to transfer to
this plane. All subjects with prolonged exposure have been terminated.
%
Our lifeform extraction program continues to produce samples of specimen
XE037. It seems to be a kind of living, semi-sentient primordial ooze, and is
the basis of much of the life we have found.
%
Specimen XE037, jokingly referred to as "the blob", has been observed
entering a kind of dormant state, forming a depression in the floor. Hendelson
stepped into one of these pits yesterday, and was immediately coated and
attacked.
%
XE037 shows promise as a catalyst for both cloning and treatments that
mimic stem cells. This is further evidence supporting Hendelson's theory of a
near universal symbiotic relationship involving XE037.
%
Several of the more advanced specimens we have retrieved show stunning
similarity to XE037. XE142 and XE157 in particular show the same amorphous,
slime-like structure as XE037, suggesting a close genetic relationship.
%
Today we tested weaponry against XE142 and XE157, two amorphous subprime
samples. Their form proved to be nearly invulnerable to projectile based
weaponry, but they were susceptible to directed energy weapons and flagration.
%
Our cloning department has failed to produce results. In vats containing
stem cell treatments, XE037, and control vats, the subjects simple
disintegrated. This suggests that XE037, while compatible with subprime
lifeforms, shows only destructive effects on prime plane lifeforms.
%
The vivisection program has shown mixed results, revealing an incredible
degree of variation in subplane lifeforms. Certain specimens have an internal
structure that is amazingly similar to that of mammals, while others seem to
have no internal structure at all.
%
Our security department has identified several key flaws. Though our
surface entrance is quite secure, there are several possible points of entry
below the surface, particularly in the sewage systems.
%
Today we applied a very small sample of XE037, suspended in water, to
subject TP92, prior to necessary termination. During the postmortem
examination, the subject went through a revivification progress, but displayed
next to no human intelligence.
%
Mendelson shows a dismaying lack of organization and security
consciousness. Containment of all samples of XE037 is of critical importance,
as shown by contamination experiments.
%
Mendelson has been terminated following an incident with XE037. A
substantial mobile sample departed his lab and encountered our security
forces. Before the sample was destroyed, it managed to kill two men.
Alarmingly, their corpses displayed mobility and extreme aggression.
%
We have created a new department to investigate the effects of XE037 on the
human body, specifically to examine the revivification effect observed on two
prior occasions. Sadly, our human subject pool is dwindling due to the short
lifespan of subjects in this program. More will be acquired soon.
%
Testing XE037 on non-human mammal subjects does not appear to display the
same revivifying effect, oddly enough. Acquiring non-human subjects, sadly,
is a long and costly process, and research into this area is lacking.
%
After our curious results with testing XE037 on non-human mammals, we
decided to introduce the substance to some of the insects which have found
their way into the lab. Horrifyingly, XE037 caused near-instant mutation
and gigantism in the insects, and security intervention was required.
%
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.
%
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.
%
Jakobson insists that S37ZBE must continue, despite the extreme security
and safety risks. Nearly half of our security forces have been redirected
to the S37ZBE project, simply to deal with the occasional escape of a subject.
%
Jakobson was killed today by one of S37ZBE's subjects; ironic considering
how hard he fought to keep the project active. Alarmingly, his corpse
revivified immediately. This suggests that XE037 may have contaminated the
lab at large.
%
Termination of a subject which was never a part of S37ZBE has confirmed my
fears. XE037 has contaminated most, if not all of the laboratory, most
likely via the water supply. Research has started immediately into a process
to destroy XE037 within the human body.
%
Despite a wide variety of treatments, we have been completely unsuccessful
in removing XE037 from human subjects. Every individual displayed
revivification post termination. Interestingly, XE037 seems to be completely
inert prior to termination.
%
We have finally found success in S37BEP, our emergency investigation into
the destruction of XE037 in living subjects. 8 of 10 of the subjects showed no
revivification, despite confirmed dosages of XE037.
%
PE062, our "cure" for XE037 contamination, has neared perfection. Sadly,
the production of PE062 is a costly and time-consuming process. What is more,
the substance shows no effect on postmortem subjects whatsoever; a substance
which renders XE037 inert after it has activated would be immensely useful in
the case of an outbreak.
%
An alarming discovery has been made. A colony of XE037 has formed nearly a
half mile from the laboratory. It is unclear how it escaped; it is quite
possible that it is in the ground water now.
%
An emergency meeting was held today to discuss the possible implications of
widespread XE037 contamination. It was agreed that neutralization must be
instated immediately to prevent a catastrophic event.
%
It has begun. The XE037 contamination has spread for miles, and those who
have since deceased have revivified. It is my fear that extremely large
populations will be decimated by this pandemic. We must find a way to remove
XE037 from revivified bodies.
%
We have even more distressing news than the widespread XE037
contamination, there are reports of the XE037 mutating into various new
variants. See data files on XE037a - XE037f. Research on the effects of these
variants is ongoing. We do know that XE037d shows signs of PE062 immunity, and
XE037b can revive various breeds of canines. However, revival is not
as guaranteed as standard XE037 humanoid infection. Canine body size seems
to influence the chances. See experiment tXE037b_c.
%
Today we found our solution, quite by accident. It was found that XE037 is
completely removed from a revivified body following a series of extremely-high
energy 4th dimensional transpositions. Unfortunately, this invariably allows
subplane life forms to pass into the prime plan. The cure is worse than the
disease.
%
-186
View File
@@ -1,186 +0,0 @@
Squirrels are pretty yummy, but if you shoot them with a high-powered gun you'll probably be left with no meat! Use a BB gun or maybe a .22 rifle.
Ever run into those big worm things? If you see trails of churned-up dirt, you can be sure they're around.
I got chased last week by some big digging creature. I couldn't see it, but I could tell where it was by the trail of churned-up earth.
Try to stay on the roads as much as you can. Giant worms can't cross them!
Don't relax after killing a giant worm. Little bits of them can break off and still attack!
If you see a big mob of zombies coming, RUN! Trying to fight them all is suicide unless you have a big tactical advantage.
Watch out for those zombies that shriek; they'll let other zombies know where you are, and will attract them from all over.
Those acid-spitting zombies are pretty nasty, but if you're smart, you can get other zombies to wade through the acid.
If there's a pool of acid blocking your way, trying tossing a junk item into it. Eating up items will help neutralize the acid faster.
There's this type of zombie that can shoot bolts of lightning! Stay away from walls and stuff when they do... the electricity can travel along solid surfaces.
Zombie hulks are NASTY, but they're easy to outsmart. If there's other monsters between you and them, they'll kill the monster for you!
If you run into a zombie hulk, it's probably a good idea to run. They're fast as hell, but pretty dumb; they'll try to smash through obstacles rather than going around, and that slows them down a lot.
Zombie brutes and hulks have really tough hide. Don't bother shooting at them with lower-caliber guns, the bullet will bounce right off!
Try not to kill a boomer if it's standing right next to you. They tend to explode when they die, and that pink goop will get all over you.
Skeletons are a tough target. They're so skinny and full of holes that bullets fired at them will usually just fly right past.
Skeletons are too delicate to smash through doors or windows. They also can't smell you, unlike zombies, so if you turn your light off at night you can sneak right past.
Don't try to take on a skeleton with a bladed weapon... you'll just leave scratch marks. You've got to shatter those bones with a hammer or something.
It's a good idea to butcher corpses if you have the time, even if you don't plan on eating them. I've seen these weird zombies bring their friends back from the dead!
Triffids are tough. They've got natural armor, and it takes a lot to bring them down. I don't recommend getting into a fight with them.
Triffids can't see! They figure out where you are by your smell, but if you mask it with smoke or something, you're as good as invisible.
I figured out how to take care of those triffids! Let me just say this: they're made of wood, and wood and fire don't mix.
Have you heard about those queen triffids? You gotta keep your distance from them, unless you like having a tree grow right through your chest.
I have a buddy who was sleeping in this cabin way out in the woods, when he suddenly woke up to trees and vines growing right up through the floor and walls! He said it was some kind of huge triffid making it happen...
Oh man, have you gone down into the old subway systems? I'd be careful... there's these things down there that're like zombies, but tougher.
There's snakes down in most of the old sewer systems. They're slow on land, but boy, those suckers can swim fast!
If you're planning on wandering around the sewers--not that you'd have a reason too--watch out for those fish. Those suckers are fast, and vicious too!
Have you seen those eyebots flying around? It's hard to say, but some faction's controlling them--maybe the military. All I know is, I don't want them taking my picture...
Ever go toe-to-toe with a manhack? Tiny little helicopters covered in knives. Best be packing a shotgun!
They're rare, but molebots are nasty things. They bore through the ground, then pop up to stab ya. Still, you're safe from them if you stay on pavement...
Don't fire your gun if you can help it--the noise attracts monsters!
Standing behind a window is a good tactic. It takes zombies a long time to crawl through, giving you lots of opportunities to hit them.
Zombies are pretty dumb... heck, most monsters are! If you can get a fire going between you and them, they'll just run straight through it.
I know it's tempting to just go full-auto and unload as many bullets as possible, but don't except as a last resort. It's inaccurate and wastes ammo.
If there's a bunch of zombies in a straight line, try unloading a burst from your gun. Be sure to aim at the zombie furthest away; you'll hit more of them that way.
If you shoot a zombie, but don't quite kill it, try to finish it off with a punch or something instead of wasting a bullet.
If you're in a corridor or something, and there's a bunch of zombies chasing you down it, try to wound the guy in front badly. He'll start moving slow and cause a serious traffic jam!
Here's a trick for taking care of a huge swarm of zombies chasing you: head into a liquor store, shoot out as many bottles as you can, then light the alcohol on fire. Then duck out the back door, and watch the zombies run into a burning building!
Sledge hammers may seem like a great weapon, but swinging them is really slow, and you won't do much damage unless you're really strong.
For a good melee weapon, you can't beat a machete. I've seen a guy take down a zombie brute with one! Of course, if you can find a katana, that might be even better...
You know, a glass bottle can make a good weapon in a pinch. If you break it over someone's head, the shattering glass will hurt them extra. Of course, it might hurt your hands, too...
You know what makes a nice weapon? Take a two by four, or a baseball bat or something, and stick a bunch of nails through the end!
BB guns may seem like a joke, but they've got their uses. They're good for hunting small game, or getting to know the basics of rifles.
Crossbows are a great weapon for long term use. Most of the time, you can retrieve the bolt after shooting it, so running out of ammo is less of a concern.
It's good to keep a pistol handy, in case your main gun runs out of ammo or something. They're also better than most guns at short range.
Shotguns are nice; you can take out lots of baddies with a single shot. Just remember that they're noisy as hell, and you might end up attracting more than you kill.
A good submachine gun can't be beat. Most of them use common ammo, they're good at short and long range, and you can burst-fire if you need to!
Hunting rifles are great at long range, but suck close up. Plus, most of them don't carry many rounds. Keep a pistol as a sidearm if you use a rifle.
You know, you don't have to go full auto with an assault rifle. Firing single shots is more accurate and efficient!
I've seen a couple guys running around with laser pistols. They seem like the perfect weapon... quiet, accurate, and deadly. But I've never found one, and I bet ammo is wicked scarce...
When it comes to footwear, you've got two basic choices as far as I see it; sneakers, for running extra fast, or boots for durability. Depends on your style, I guess.
You don't really need to wear gloves most of the time, but once in a while they'll really come in handy.
It's good to keep a filter mask or gas mask handy. You never know when you'll have to go into a smoke-filled room or something.
There's basically no reason not to wear safety glasses... nothing's worse than taking a hit to the eyes and getting blinded for a few seconds.
Ski goggles are a great choice if you're worried about getting stuff in your eyes. Perfect for dealing with boomers!
If you get a pair of night vision goggles, hold on to them! A flashlight will give you away, but with goggles you can be sneaky.
I know they look dumb, but wearing a fanny pack gives you that extra bit of storage without encumbering you.
Backpacks let you carry lots of stuff, but they limit your movement a lot. If you're an unarmed fighter, don't wear one!
Don't underestimate a good book. Not only will it keep you company on lonely nights, but you can learn a hell of a lot from some of them.
It's a good idea to carry around a couple of empty bottles. You can fill them up with water, gasoline, or whatever!
If you need a bunch of rags for making molotov cocktails, take a pair of scissors to an old t-shirt or something.
Carrying a lighter is something all veterans do. It takes up almost no space, and can easily save your life.
If you can spare the space, you might want to carry a fire extinguisher along. Nothing's worse than being trapped in a burning building!
Crowbars not only make a pretty good weapon, they're also useful for opening locked doors and lifting manhole covers.
If you're spending the night in a dangerous area, grab a shovel and dig pits all around your camp.
A chainsaw may seem like a great weapon, but remember that they're slow, unwieldy, and very noisy.
Bubblewrap is pretty harmless, but setting it up around you before going to sleep will keep you from waking up to a zombie punching you.
Beartraps are a nice way to cover an escape. If you place one in a doorway, the first zombie through will get stuck, and the rest won't be able to get past!
Smoke grenades aren't really offensive weapons, but they'll cover up your scent and hide you from view--perfect for making a quick escape.
Don't use molotovs indoors. Especially in a liquor store.
If you're going to be playing with molotov cocktails around a gas station, just make sure you're a long way from those pumps.
I once knew a guy who figured he'd survive a night in the subway by setting fires blocking off the tunnel in both directions and sleeping between them. He wound up asphyxiating on the smoke.
Don't light a molotov until you're ready to throw it. Not only can they go out, but if you accidentally drop it or something, you're in trouble.
If you're weak or clumsy, it might be a good idea not to mess with molotovs or grenades. Accidentally dropping them when you meant to throw them could be deadly.
If you're wandering in the wilderness, or following a road, keep an eye out for wild strawberries or blueberries.
Be careful eating wild mushrooms. Some are poisonous, and others can make you hallucinate.
Try to go around swamps, if you can. Some of them have sinkholes that can pull you right underground.
I heard about this group that raided a bee hive a while ago. Everyone got massacred but one, and he came home with this weird, magic honey stuff.
If you need to, you can swim across a river to escape; most monsters can't swim. Just make sure you drop as much stuff as possible first, and maybe strip naked, or you'll sink like a rock.
Houses can be a surprisingly good resource for all kinds of stuff; clothing, medication, food, books, and more.
While there's not much to loot, gas stations are a good source for gasoline, to power tools or to make molotov cocktails.
It's not like in the movies--shooting a gas pump won't make it explode. But it WILL make it leak all over the place, which is a definite fire hazard.
I know grocery stores and stuff are full of fruit, but be careful, it's probably rotten.
Next time you visit a grocery store, load up on canned goods. They never go bad!
I've found more good weapons in hardware stores than anywhere else. Except gun stores, of course.
Liquor stores are a great place to pick up non-alcoholic beverages, too. Not that I mind alcohol!
Most gun stores follow pretty similar layouts. The restricted stuff--SMGs, assault rifles, and most importantly ammo--are always behind the counter.
I've spent many nights in the changing rooms at the back of clothing stores. Walls on four sides, far from the store's entrance, a corridor for easy defense... it's perfect!
If you're getting chased by a hoard of zombies, try ducking into the subways and traveling a block or two, then coming back up.
Have you seen those weird science labs out in the middle of nowhere? I think you need some kind of special ID card to get in.
I've thought about raiding an ant hill before, but I realized it wasn't worth the risk. I doubt they have any loot beyond some scraps of food, you know?
This guy I know was walking through the subway when he came across a giant rift in the earth, with lava far below. Weird, huh?
In a lot of places, there's little hallways connecting the subways with the sewers, with heavy metal doors on both ends. It's a perfect place to sleep!
Be careful of drinking water from rivers and stuff, it's a good way to get sick. But if you have a water purifier, it'll make it safe.
+97 -3
View File
@@ -1,3 +1,97 @@
0.9
Highlights:
---
World Factory: Multiple worlds managed at once.
New mutation categories.
TsuTiles.
Basic mouse support in SDL builds.
Vehicle constructon system rework.
Backward compatability with 0.8 saves.
Unbielievable amount of new content.
Features:
---
New mutation categories.
Blob drops are semi-useful.
World Factory: Multiple worlds managed at once.
Single keypress pulping.
Better Basements.
Dynamically swap between text and tiles, and amoung tilesets.
Funnels catch water when the player is far away.
TsuTiles.
Curvy roads.
Zombears.
V menu now lists monsters too.
Emergency vehicles.
Shia's back.
Doors tougher, but zombies can pile on when trying to bash through them.
Spawning monsters in packs.
Shopping carts are driveable.
Basic mouse support in SDL builds.
Food dehydrator.
Some clothes have hoods that are used automaticlly if there's no hat in the way.
Only prompt to confirm butchering if there are hostiles nearby.
Books have chapters.
Better furniture dragging interface with 'G'rab.
More cart types, hot dog, welding, luggage; swivel chairs.
Track more stuff for memorial file.
Basic tool quality support for more streamlined crafting recipes.
Fungaloid rework.
Vehicle workbench like components act like tools.
Huge pile o books.
Furniture and terrain definitions moved to json.
Survivor armor.
Large numbers of wild animals.
Power system for vehicles and battery components.
Reinforced vehicle components.
Vehicle constructon system rework.
Multi-square vehicle doors.
Make vehicles more resilient to damage and better able to smash through obstacles.
Vehicle spawns have personality added in various ways.
Removed action interruption from drug cravings.
Ludricrous numbers of new foods.
Vehicle horns.
Backward compatability with 0.8 saves.
Stylish trait.
Pickup partial stacks.
Flaming weapons.
Too many new professions to list.
Diseases can now be bodypart specific (bleeding, bites).
Reworked martial arts framework. Arts are no longer pseudo-items, and can be mostly defined in json.
RPG-7.
Reworked and streamlined bionics failure chance and install UI.
Streamlined continuous reading.
Bugfixes:
---
Monsters that don't take damage no longer leave blood trails.
Broken gas tanks act broken.
Highlighting lines in tiles mode.
Show all sounds made by player.
Dissasemble items with charges properly.
Supress smoke warning when you have a gas mask.
Stims work again.
Menu cleanups all over.
Better in-city detection for roads.
Funnel filling.
Step on visible trap warning.
Vomiting lethality nerfed.
Better ignore monster for now feature.
Massive audit of item values by Rivet.
Prevent input overbuffering when it's raining.
Eating related bugs.
Hallucination fixes.
Vehicle mounted turrets.
Crafting conuming containers with contents.
Prevents many actions from passing through walls.
Weird handling of cancelled item use.
Gunmods with firing modes.
Stabilized monster coordinates.
Many fixes in defense mode.
Charge rifle charging.
0.8
Highlights:
@@ -570,7 +664,7 @@ The player now spawns with a pocket knife and lighter.
Sledge hammer is usable to board windows and doors up.
Heartless trait has been removed, replaced with the Cannibal trait, which allows you to eat human meat with no morale penalty.
Braziers are now craftable. They contain fire and can be set up indoors.
Bulletin Boards can be built to set an area as your home base. NPCs can
Bulletin Boards can be built to set an area as your home base. NPCs can
be told to wait there and will defend the area.
Bear traps have been increased in weight and volume.
Carboys have been renamed to Gallon jugs.
@@ -581,7 +675,7 @@ Kills can now be accessed from in-game. Default key is ).
The game now accepts wielded items when checking for containers.
Sunny and Clear weather now provide warmth.
Internal Climate Control bionic consumes power to cool or warm you.
Crash bug caused by the screen being larger than the loaded overmap has
Crash bug caused by the screen being larger than the loaded overmap has
been fixed.
Crash bug when going down stairs near cities has been fixed.
Hunger now affects body temperature.
@@ -592,7 +686,7 @@ Added a digging stick. Can be used to dig shallow pits, and level construction e
Got angry at other developers for not updating changelog.
0.2
Reworked spawning option which places zombies at world generation
Reworked spawning option which places zombies at world generation
rather than generating them dynamically in play.
Implementation of a context menu when examining inventory items.
Machine added to hospitals to regrow limbs.
+3 -2
View File
@@ -2,15 +2,16 @@
# Max length of a line is 68 characters; the following line is for reference
####################################################################
Original author: Project Manager: Website/Forum:
Whales (retired) Kevingranade GlyphGryph
Whales (retired) KevinGranade GlyphGryph
Current Main Developers/Github Managers:
Kevingranade, GalenEvil, i2amroy, AtomicDryad, Ozone
KevinGranade, GalenEvil, i2amroy, AtomicDryad, Ianestrachan
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
Angela 'Rivet' Graves, Constant Creator of Cataclysmic Content
For a full list of contributors please see:
https://github.com/CleverRaven/Cataclysm-DDA/contributors
-17
View File
@@ -1,17 +0,0 @@
#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
+145 -145
View File
@@ -1,588 +1,588 @@
[
{
"type" : "bionic",
"id" : "bio_null",
"name" : "NULL bionics",
"cost" : 0,
"time" : 0,
"description": "If you're seeing this, it's a bug. (game::init_bionics)"
},
{
"type" : "bionic",
"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."
},
{
"type" : "bionic",
"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."
"description": "Compact Bionics Module developed at DoubleTech Industries as a replacement for the highly successful CBM: Power Storage. Increases your power capacity by 10 units."
},
{
"type" : "bionic",
"id" : "bio_batteries",
"name" : "Battery System",
"cost" : 0,
"time" : 0,
"flags" : ["POWER"],
"power_source" : true,
"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."
},
{
"type" : "bionic",
"id" : "bio_metabolics",
"name" : "Metabolic Interchange",
"cost" : 0,
"power_source" : true,
"active" : true,
"time" : 100,
"flags" : ["POWER", "ACTIVE"],
"description": "Your digestive system and power supply are interconnected. Any drain on energy instead increases your hunger."
},
{
"type" : "bionic",
"id" : "bio_solar",
"name" : "Solar Panels",
"cost" : 0,
"time" : 0,
"flags" : ["POWER"],
"power_source" : true,
"description": "You have a few solar panels installed. While in direct sunlight, your power level will slowly recharge."
},
{
"type" : "bionic",
"id" : "bio_torsionratchet",
"name" : "Joint Torsion Ratchet",
"cost" : 0,
"time" : 0,
"flags" : ["POWER"],
"power_source" : true,
"description": "Your joints have been equipped with torsion ratchets that generate power slowly when you move."
},
{
"type" : "bionic",
"id" : "bio_furnace",
"name" : "Internal Furnace",
"cost" : 0,
"time" : 0,
"flags" : ["POWER"],
"power_source" : true,
"description": "You can burn nearly any organic material as fuel (use 'E'), recharging your power level. Some materials will burn better than others."
},
{
"type" : "bionic",
"id" : "bio_ethanol",
"name" : "Ethanol Burner",
"cost" : 0,
"time" : 0,
"flags" : ["POWER"],
"power_source" : true,
"description": "You burn alcohol as fuel in an extremely efficient reaction. However, you will still suffer the inebriating effects of the substance."
},
{
"type" : "bionic",
"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."
"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 power."
},
{
"type" : "bionic",
"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."
},
{
"type" : "bionic",
"id" : "bio_eye_enhancer",
"name" : "Diamond Cornea",
"cost" : 0,
"time" : 0,
"description": "Your vision is greatly enhanced, giving you a +2 bonus to perception."
},
{
"type" : "bionic",
"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."
},
{
"type" : "bionic",
"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."
},
{
"type" : "bionic",
"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."
},
{
"type" : "bionic",
"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",
"type" : "bionic",
"id" : "bio_sunglasses",
"name" : "Transition lenses",
"cost" : 0,
"time" : 0,
"description": "Your eyes have quick-reacting transition lenses installed over them, negating any glare penalties and partially protecting you from bright flashes."
},
{
"type" : "bionic",
"id" : "bio_targeting",
"name" : "Targeting System",
"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."
},
{
"type" : "bionic",
"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."
},
{
"type" : "bionic",
"id" : "bio_purifier",
"name" : "Air Filtration System",
"cost" : 1,
"cost" : 0,
"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."
},
{
"type" : "bionic",
"id" : "bio_climate",
"name" : "Internal Climate Control",
"active" : true,
"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."
},
{
"type" : "bionic",
"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."
},
{
"type" : "bionic",
"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."
},
{
"type" : "bionic",
"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."
},
{
"type" : "bionic",
"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."
},
{
"type" : "bionic",
"id" : "bio_shock",
"name" : "Electroshock Unit",
"cost" : 0,
"active" : true,
"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."
},
{
"type" : "bionic",
"id" : "bio_heat_absorb",
"name" : "Heat Drain",
"cost" : 0,
"active" : true,
"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."
},
{
"type" : "bionic",
"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."
},
{
"type" : "bionic",
"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."
},
{
"type" : "bionic",
"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."
},
{
"type" : "bionic",
"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."
},
{
"type" : "bionic",
"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."
},
{
"type" : "bionic",
"id" : "bio_flashlight",
"name" : "Cranial Flashlight",
"active" : true,
"cost" : 1,
"time" : 30,
"flags" : ["ACTIVE"],
"description": "Mounted between your eyes is a small but powerful LED flashlight."
},
{
"type" : "bionic",
"id" : "bio_night_vision",
"name" : "Implanted Night Vision",
"active" : true,
"cost" : 1,
"time" : 20,
"flags" : ["ACTIVE"],
"description": "Your eyes have been modified to amplify existing light, allowing you to see in the dark."
},
{
"type" : "bionic",
"id" : "bio_infrared",
"name" : "Infrared Vision",
"active" : true,
"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."
},
{
"type" : "bionic",
"id" : "bio_face_mask",
"name" : "Facial Distortion",
"active" : true,
"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."
},
{
"type" : "bionic",
"id" : "bio_ads",
"name" : "Active Defense System",
"active" : true,
"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."
},
{
"type" : "bionic",
"id" : "bio_ods",
"name" : "Offensive Defense System",
"active" : true,
"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."
},
{
"type" : "bionic",
"id" : "bio_scent_mask",
"name" : "Olfactory Mask",
"active" : true,
"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."
},
{
"type" : "bionic",
"id" : "bio_scent_vision",
"name" : "Scent Vision",
"active" : true,
"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."
},
{
"type" : "bionic",
"id" : "bio_cloak",
"name" : "Cloaking System",
"active" : true,
"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."
},
{
"type" : "bionic",
"id" : "bio_painkiller",
"name" : "Sensory Dulling",
"active" : true,
"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."
},
{
"type" : "bionic",
"id" : "bio_nanobots",
"name" : "Repair Nanobots",
"active" : true,
"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."
"description": "Inside your body is a fleet of tiny dormant robots. Once charged from your energy banks, they will flit about your body, repairing damage and stopping bleeding."
},
{
"type" : "bionic",
"id" : "bio_heatsink",
"name" : "Thermal Dissipation",
"active" : true,
"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."
"description": "Powerful heatsinks and 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."
},
{
"type" : "bionic",
"id" : "bio_resonator",
"name" : "Sonic Resonator",
"active" : true,
"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."
"description": "Your entire body may resonate at very high power, creating a short-range shockwave. While it will not do much damage to flexible creatures, stiff items such as walls, doors, and even robots will be severely damaged."
},
{
"type" : "bionic",
"id" : "bio_time_freeze",
"name" : "Time Dilation",
"active" : true,
"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."
},
{
"type" : "bionic",
"id" : "bio_teleport",
"name" : "Teleportation Unit",
"active" : true,
"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."
},
{
"type" : "bionic",
"id" : "bio_blood_anal",
"name" : "Blood Analysis",
"active" : true,
"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."
},
{
"type" : "bionic",
"id" : "bio_blood_filter",
"name" : "Blood Filter",
"active" : true,
"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."
},
{
"type" : "bionic",
"id" : "bio_alarm",
"name" : "Alarm System",
"active" : true,
"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."
},
{
"type" : "bionic",
"id" : "bio_evap",
"name" : "Aero-Evaporator",
"active" : true,
"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."
},
{
"type" : "bionic",
"id" : "bio_lighter",
"name" : "Mini-Flamethrower",
"active" : true,
"cost" : 3,
"time" : 0,
"flags" : ["ACTIVE"],
"description": "The index fingers of both hands have powerful fire starters which extend from the tip."
},
{
"type" : "bionic",
"id" : "bio_claws",
"name" : "Adamantium Claws",
"active" : true,
"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."
},
{
"type" : "bionic",
"id" : "bio_blaster",
"name" : "Fusion Blaster Arm",
"active" : true,
"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."
},
{
"type" : "bionic",
"id" : "bio_laser",
"name" : "Finger-Mounted Laser",
"active" : true,
"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."
},
{
"type" : "bionic",
"id" : "bio_emp",
"name" : "Directional EMP",
"active" : true,
"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."
},
{
"type" : "bionic",
"id" : "bio_hydraulics",
"name" : "Hydraulic Muscles",
"active" : true,
"cost" : 1,
"time" : 3,
"flags" : ["ACTIVE"],
"description": "While activated, the muscles in your arms will be greatly enhanced, increasing your strength by 20."
},
{
"type" : "bionic",
"id" : "bio_water_extractor",
"name" : "Water Extraction Unit",
"active" : true,
"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."
},
{
"type" : "bionic",
"id" : "bio_magnet",
"name" : "Electromagnetic Unit",
"active" : true,
"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."
},
{
"type" : "bionic",
"id" : "bio_fingerhack",
"name" : "Fingerhack",
"active" : true,
"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."
},
{
"type" : "bionic",
"id" : "bio_lockpick",
"name" : "Fingerpick",
"active" : true,
"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."
},
{
"type" : "bionic",
"id" : "bio_ground_sonar",
"name" : "Terranian Sonar",
"active" : true,
"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."
},
{
"type" : "bionic",
"id" : "bio_power_armor_interface",
"name" : "Power Armor Interface",
"active" : true,
"cost" : 1,
"time" : 10,
"flags" : ["ACTIVE"],
"description": "Interfaces your power system with the internal charging port on suits of power armor."
},
{
"type" : "bionic",
"id" : "bio_power_armor_interface_mkII",
"name" : "Power Armor Interface Mk. II",
"active" : true,
"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."
},
{
"type" : "bionic",
"id" : "bio_flashbang",
"name" : "Flashbang Generator",
"active" : true,
"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."
},
{
"type" : "bionic",
"id" : "bio_railgun",
"name" : "Railgun",
"active" : true,
"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."
},
{
"type" : "bionic",
"id" : "bio_probability_travel",
"name" : "Probability Travel",
"active" : true,
"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."
},
{
"type" : "bionic",
"id" : "bio_shockwave",
"name" : "Shockwave Generator",
"active" : true,
"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."
},
{
"type" : "bionic",
"id" : "bio_chain_lightning",
"name" : "Chain Lightning",
"active" : true,
"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."
},
{
"type" : "bionic",
"id" : "bio_night",
"name" : "Artificial Night Generator",
"active" : true,
"cost" : 1,
"time" : 2,
"flags" : ["ACTIVE"],
"description": "Destructive interference eliminates all light within a 15 tile radius."
},
{
"type" : "bionic",
"id" : "bio_uncanny_dodge",
"name" : "Uncanny Dodge",
"active" : true,
"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."
},
{
"type" : "bionic",
"id" : "bio_dis_shock",
"name" : "Electrical Discharge",
"cost" : 0,
"time" : 0,
"flags" : ["FAULTY"],
"faulty" : true,
"description": "A malfunctioning bionic which occasionally discharges electricity through your body, causing pain and brief paralysis but no damage."
},
{
"type" : "bionic",
"id" : "bio_dis_acid",
"name" : "Acidic Discharge",
"cost" : 0,
"time" : 0,
"flags" : ["FAULTY"],
"faulty" : true,
"description": "A malfunctioning bionic which occasionally discharges acid into your muscles, causing sharp pain and minor damage."
},
{
"type" : "bionic",
"id" : "bio_drain",
"name" : "Electrical Drain",
"cost" : 0,
"time" : 0,
"flags" : ["FAULTY"],
"faulty" : true,
"description": "A malfunctioning bionic. It doesn't perform any useful function, but will occasionally draw power from your batteries."
},
{
"type" : "bionic",
"id" : "bio_noise",
"name" : "Noisemaker",
"cost" : 0,
"time" : 0,
"flags" : ["FAULTY"],
"faulty" : true,
"description": "A malfunctioning bionic. It will occasionally emit a loud burst of noise."
},
{
"type" : "bionic",
"id" : "bio_power_weakness",
"name" : "Power Overload",
"cost" : 0,
"time" : 0,
"flags" : ["FAULTY"],
"faulty" : true,
"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."
},
{
"type" : "bionic",
"id" : "bio_stiff",
"name" : "Wire-induced Stiffness",
"cost" : 0,
"time" : 0,
"flags" : ["FAULTY"],
"faulty" : true,
"description": "Improperly installed wires cause a physical stiffness in most of your body, causing increased encumbrance."
}
]
+21
View File
@@ -0,0 +1,21 @@
[
{
"type" : "colordef",
"BLACK" : [0,0,0],
"RED" : [255,0,0],
"GREEN" : [0,110,0],
"BROWN" : [92,51,23],
"BLUE" : [0,0,200],
"MAGENTA" : [139,58,98],
"CYAN" : [0,150,180],
"GRAY" : [150,150,150],
"DGRAY" : [99,99,99],
"LRED" : [255,150,150],
"LGREEN" : [0,255,0],
"YELLOW" : [255,255,0],
"LBLUE" : [100,100,255],
"LMAGENTA" : [255,0,255],
"LCYAN" : [0,240,255],
"WHITE" : [255,255,255]
}
]
+363
View File
@@ -0,0 +1,363 @@
[
{
"type" : "dream",
"messages" : [
"You have a strange dream about lizards.",
"Your dreams give you a strange scaly feeling."
],
"category" : "MUTCAT_LIZARD",
"strength" : 1
},{
"type" : "dream",
"messages" : [
"You have a strange dream about being a patient in a frightening hospital.",
"Your dreams give you an oddly medicated feeling."
],
"category" : "MUTCAT_MEDICAL",
"strength" : 1
},{
"type" : "dream",
"messages" : [
"You have a strange dream about birds.",
"Your dreams give you a strange feathered feeling."
],
"category" : "MUTCAT_BIRD",
"strength" : 1
},{
"type" : "dream",
"messages" : [
"You have a strange dream about fish.",
"Your dreams give you a strange wet, scaly feeling."
],
"category" : "MUTCAT_FISH",
"strength" : 1
},{
"type" : "dream",
"messages" : [
"You have a strange dream about animals.",
"Your dreams give you a strange furry feeling."
],
"category" : "MUTCAT_BEAST",
"strength" : 1
},{
"type" : "dream",
"messages" : [
"You have a strange dream about cattle.",
"Your dreams give you a strange content, furry feeling."
],
"category" : "MUTCAT_CATTLE",
"strength" : 1
},{
"type" : "dream",
"messages" : [
"You have a strange dream about insects.",
"Your dreams give you a strange chitinous feeling."
],
"category" : "MUTCAT_INSECT",
"strength" : 1
},{
"type" : "dream",
"messages" : [
"You have a strange dream about plants.",
"Your dreams give you a strange plantlike feeling."
],
"category" : "MUTCAT_PLANT",
"strength" : 1
},{
"type" : "dream",
"messages" : [
"You have a strange dream about slime.",
"Your dreams give you a strange slimy feeling."
],
"category" : "MUTCAT_SLIME",
"strength" : 1
},{
"type" : "dream",
"messages" : [
"You have a strange dream about living in a cave.",
"Your dreams give a strange reclusive feeling."
],
"category" : "MUTCAT_TROGLO",
"strength" : 1
},{
"type" : "dream",
"messages" : [
"You have a strange dream about sea creatures.",
"Your dreams give you a strange wet feeling."
],
"category" : "MUTCAT_CEPHALOPOD",
"strength" : 1
},{
"type" : "dream",
"messages" : [
"You have a strange dream about spiders.",
"Your dreams give you a strange webbed feeling."
],
"category" : "MUTCAT_SPIDER",
"strength" : 1
},{
"type" : "dream",
"messages" : [
"You have a strange dream about rats.",
"Your dreams give you a strange fuzzy feeling."
],
"category" : "MUTCAT_RAT",
"strength" : 1
},{
"type" : "dream",
"messages" : [
"You have a strange dream.",
"You feel...OK."
],
"category" : "MUTCAT_ALPHA",
"strength" : 1
},{
"type" : "dream",
"messages" : [
"You dream about the zoo, for some reason.",
"Your dreams...are complex and multifaceted."
],
"category" : "MUTCAT_CHIMERA",
"strength" : 1
},{
"type" : "dream",
"messages" : [
"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
},{
"type" : "dream",
"messages" : [
"You have a disturbing dream of undergoing strange medical procedures.",
"While dreaming, you see yourself dressed in a hospital gown, receiving treatment."
],
"category" : "MUTCAT_MEDICAL",
"strength" : 2
},{
"type" : "dream",
"messages" : [
"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
},{
"type" : "dream",
"messages" : [
"You dream of swimming in the open ocean",
"In your dream, you see a strangely fishlike image of yourself."
],
"category" : "MUTCAT_FISH",
"strength" : 2
},{
"type" : "dream",
"messages" : [
"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
},{
"type" : "dream",
"messages" : [
"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
},{
"type" : "dream",
"messages" : [
"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
},{
"type" : "dream",
"messages" : [
"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
},{
"type" : "dream",
"messages" : [
"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
},{
"type" : "dream",
"messages" : [
"You dream of living deep inside a dark cave.",
"You dream of being a primitive cave dweller."
],
"category" : "MUTCAT_TROGLO",
"strength" : 2
},{
"type" : "dream",
"messages" : [
"You dream of living on the ocean floor.",
"While dreaming, a reflection of yourself appears almost like an octopus."
],
"category" : "MUTCAT_CEPHALOPOD",
"strength" : 2
},{
"type" : "dream",
"messages" : [
"You have a strange dream of spinning webs",
"In your dream you see a very spiderlike version of yourself."
],
"category" : "MUTCAT_SPIDER",
"strength" : 2
},{
"type" : "dream",
"messages" : [
"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
},{
"type" : "dream",
"messages" : [
"You dream of having that success you knew you deserved, back before all this.",
"Your dream-self looks competent and in control."
],
"category" : "MUTCAT_ALPHA",
"strength" : 2
},{
"type" : "dream",
"messages" : [
"You can't quite work out what the dream is about...it just keeps changing.",
"Your dream is filled with creatures, and yet all seem like you."
],
"category" : "MUTCAT_CHIMERA",
"strength" : 2
},{
"type" : "dream",
"messages" : [
"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
},{
"type" : "dream",
"messages" : [
"You have a dream of doctors and nurses doing unnatural things to your body, which brings you perverse pleasure.",
"You have a vivid dream of being a medical anomaly, as your heartbeat syncs with the steady drip of an IV line."
],
"category" : "MUTCAT_MEDICAL",
"strength" : 3
},{
"type" : "dream",
"messages" : [
"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
},{
"type" : "dream",
"messages" : [
"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
},{
"type" : "dream",
"messages" : [
"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
},{
"type" : "dream",
"messages" : [
"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
},{
"type" : "dream",
"messages" : [
"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
},{
"type" : "dream",
"messages" : [
"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
},{
"type" : "dream",
"messages" : [
"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
},{
"type" : "dream",
"messages" : [
"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
},{
"type" : "dream",
"messages" : [
"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
},{
"type" : "dream",
"messages" : [
"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
},{
"type" : "dream",
"messages" : [
"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
},{
"type" : "dream",
"messages" : [
"You see yourself, five years from now, as the leader of a successful city.",
"Your success in restoring civilization was only a dream. For now."
],
"category" : "MUTCAT_ALPHA",
"strength" : 3
},{
"type" : "dream",
"messages" : [
"You are many animals, and yet one.",
"Hoof. Talon. Tooth. Fight. Feed. Forward."
],
"category" : "MUTCAT_CHIMERA",
"strength" : 3
}
]
+769
View File
@@ -0,0 +1,769 @@
[
{
"type": "furniture",
"id": "f_null",
"name": "nothing",
"symbol": " ",
"color": "white",
"move_cost_mod": 0,
"required_str": -1,
"flags": ["TRANSPARENT"]
},
{
"type": "furniture",
"id": "f_hay",
"name": "hay",
"symbol": "#",
"bgcolor": "brown",
"move_cost_mod": 3,
"required_str": 6,
"flags": ["TRANSPARENT", "CONTAINER", "FLAMMABLE_ASH", "ORGANIC"]
},
{
"type": "furniture",
"id": "f_bulletin",
"name": "bulletin board",
"symbol": "6",
"color": "blue",
"move_cost_mod": -1,
"required_str": -1,
"flags": ["BASHABLE", "FLAMMABLE", "NOITEM", "DECONSTRUCT", "ORGANIC"],
"examine_action": "bulletin_board",
"bash": {
"str_min": 3, "str_max": 45,
"sound": "smash!",
"sound_fail": "whump.",
"items": [
{ "item": "2x4", "amount": 6, "minamount": 2},
{ "item": "nail", "amount": 12, "minamount": 4},
{ "item": "splinter", "amount": 1 }
]
}
},
{
"type": "furniture",
"id": "f_indoor_plant",
"name": "indoor plant",
"symbol": "^",
"color": "green",
"move_cost_mod": 2,
"required_str": 5,
"flags": ["CONTAINER", "BASHABLE", "PLACE_ITEM", "ORGANIC"]
},
{
"type": "furniture",
"id": "f_bed",
"name": "bed",
"symbol": "#",
"color": "magenta",
"move_cost_mod": 3,
"required_str": -1,
"flags": ["TRANSPARENT", "CONTAINER", "FLAMMABLE_ASH", "DECONSTRUCT", "PLACE_ITEM", "ORGANIC"]
},
{
"type": "furniture",
"id": "f_toilet",
"name": "toilet",
"symbol": "&",
"color": "white",
"move_cost_mod": 2,
"required_str": 18,
"flags": ["TRANSPARENT", "BASHABLE", "FLAMMABLE_HARD"],
"examine_action": "toilet",
"bash": {
"str_min": 2, "str_max": 30,
"comment": "originally result = dice(8, 4) - 8;",
"sound": "porcelain breaking!",
"sound_fail": "whunk!",
"items": [
{ "item": "cu_pipe", "amount": 1, "minamount": 0 }
]
}
},
{
"type": "furniture",
"id": "f_makeshift_bed",
"name": "makeshift bed",
"symbol": "#",
"color": "magenta",
"move_cost_mod": 3,
"required_str": 12,
"flags": ["TRANSPARENT", "BASHABLE", "FLAMMABLE_ASH", "DECONSTRUCT", "ORGANIC"]
},
{
"type": "furniture",
"id": "f_sink",
"name": "sink",
"symbol": "&",
"color": "white",
"move_cost_mod": 2,
"required_str": 18,
"flags": ["TRANSPARENT", "BASHABLE", "FLAMMABLE_HARD", "CONTAINER", "PLACE_ITEM"],
"bash": {
"str_min": 2, "str_max": 30,
"comment": "originally result = dice(8, 4) - 8;",
"sound": "porcelain breaking!",
"sound_fail": "whunk!",
"items": [
{ "item": "cu_pipe", "amount": 1, "minamount": 0 }
]
}
},
{
"type": "furniture",
"id": "f_oven",
"name": "oven",
"symbol": "#",
"color": "dkgray",
"move_cost_mod": 2,
"required_str": 10,
"flags": ["BASHABLE", "DECONSTRUCT", "PLACE_ITEM", "TRANSPARENT", "FIRE_CONTAINER", "CONTAINER", "BLOCKSDOOR"],
"bash": {
"str_min": 2, "str_max": 30,
"sound": "metal screeching!",
"sound_fail": "clang!",
"items": [
{ "item": "scrap", "amount": 6, "minamount": 0},
{ "item": "steel_chunk", "amount": 3, "minamount": 0},
{ "item": "element", "amount": 3, "minamount": 1},
{ "item": "sheet_metal", "amount": 6, "minamount": 2},
{ "item": "cable", "amount": 3, "minamount": 1},
{ "item": "pilot_light", "amount": 1 }
]
}
},
{
"type": "furniture",
"id": "f_woodstove",
"name": "wood stove",
"symbol": "#",
"bgcolor": "red",
"move_cost_mod": 2,
"required_str": 10,
"flags": ["TRANSPARENT", "CONTAINER", "FIRE_CONTAINER", "SUPPRESS_SMOKE", "PLACE_ITEM"]
},
{
"type": "furniture",
"id": "f_fireplace",
"name": "fireplace",
"symbol": "#",
"bgcolor": "white",
"move_cost_mod": 2,
"required_str": -1,
"flags": ["TRANSPARENT", "CONTAINER", "FIRE_CONTAINER", "SUPPRESS_SMOKE", "PLACE_ITEM"]
},
{
"type": "furniture",
"id": "f_bathtub",
"name": "bathtub",
"symbol": "~",
"color": "white",
"move_cost_mod": 2,
"required_str": 10,
"flags": ["TRANSPARENT", "BASHABLE", "FLAMMABLE_HARD", "CONTAINER", "PLACE_ITEM", "BLOCKSDOOR"],
"bash": {
"str_min": 2, "str_max": 30,
"comment": "originally result = dice(8, 4) - 8;",
"sound": "porcelain breaking!",
"sound_fail": "whunk!",
"items": [
{ "item": "cu_pipe", "amount": 1, "minamount": 0 }
]
}
},
{
"type": "furniture",
"id": "f_chair",
"name": "chair",
"symbol": "#",
"color": "brown",
"move_cost_mod": 1,
"required_str": 6,
"flags": ["TRANSPARENT", "FLAMMABLE_ASH", "DECONSTRUCT", "ORGANIC"],
"bash": {
"str_min": 2, "str_max": 30,
"sound": "smash!",
"sound_fail": "whump.",
"items": [
{ "item": "2x4", "amount": 3, "minamount": 1},
{ "item": "nail", "amount": 6, "minamount": 2},
{ "item": "splinter", "amount": 1 }
]
}
},
{
"type": "furniture",
"id": "f_armchair",
"name": "arm chair",
"symbol": "H",
"color": "green",
"move_cost_mod": 1,
"required_str": 7,
"flags": ["TRANSPARENT", "FLAMMABLE_ASH", "DECONSTRUCT", "ORGANIC"]
},
{
"type": "furniture",
"id": "f_sofa",
"name": "sofa",
"symbol": "H",
"bgcolor": "red",
"move_cost_mod": 1,
"required_str": 10,
"flags": ["TRANSPARENT", "FLAMMABLE_ASH", "DECONSTRUCT", "ORGANIC", "BLOCKSDOOR"]
},
{
"type": "furniture",
"id": "f_cupboard",
"name": "cupboard",
"symbol": "#",
"color": "blue",
"move_cost_mod": 1,
"required_str": 8,
"flags": ["TRANSPARENT", "FLAMMABLE_ASH", "DECONSTRUCT", "CONTAINER", "PLACE_ITEM", "ORGANIC"],
"bash": {
"str_min": 2, "str_max": 30,
"sound": "smash!",
"sound_fail": "whump.",
"items": [
{ "item": "2x4", "amount": 3, "minamount": 1},
{ "item": "nail", "amount": 6, "minamount": 2},
{ "item": "splinter", "amount": 1 }
]
}
},
{
"type": "furniture",
"id": "f_trashcan",
"name": "trash can",
"symbol": "&",
"color": "ltcyan",
"move_cost_mod": 1,
"required_str": 5,
"flags": ["TRANSPARENT", "FLAMMABLE_ASH", "CONTAINER", "PLACE_ITEM"]
},
{
"type": "furniture",
"id": "f_desk",
"name": "desk",
"symbol": "#",
"color": "ltred",
"move_cost_mod": 1,
"required_str": 8,
"flags": ["TRANSPARENT", "FLAMMABLE_ASH", "DECONSTRUCT", "CONTAINER", "PLACE_ITEM", "ORGANIC"],
"bash": {
"str_min": 2, "str_max": 30,
"sound": "smash!",
"sound_fail": "whump.",
"items": [
{ "item": "2x4", "amount": 3, "minamount": 1},
{ "item": "nail", "amount": 6, "minamount": 2},
{ "item": "splinter", "amount": 1 }
]
}
},
{
"type": "furniture",
"id": "f_exercise",
"name": "exercise machine",
"symbol": "T",
"color": "dkgray",
"move_cost_mod": 1,
"required_str": 8,
"flags": ["TRANSPARENT", "DECONSTRUCT"]
},
{
"type": "furniture",
"id": "f_bench",
"name": "bench",
"symbol": "#",
"color": "brown",
"move_cost_mod": 1,
"required_str": 8,
"flags": ["TRANSPARENT", "FLAMMABLE_ASH", "DECONSTRUCT", "ORGANIC"],
"bash": {
"str_min": 2, "str_max": 30,
"sound": "smash!",
"sound_fail": "whump.",
"items": [
{ "item": "2x4", "amount": 3, "minamount": 1},
{ "item": "nail", "amount": 6, "minamount": 2},
{ "item": "splinter", "amount": 1 }
]
}
},
{
"type": "furniture",
"id": "f_table",
"name": "table",
"symbol": "#",
"color": "red",
"move_cost_mod": 2,
"required_str": 9,
"flags": ["TRANSPARENT", "FLAMMABLE", "DECONSTRUCT", "ORGANIC"],
"bash": {
"str_min": 3, "str_max": 45,
"sound": "smash!",
"sound_fail": "whump.",
"items": [
{ "item": "2x4", "amount": 6, "minamount": 2},
{ "item": "nail", "amount": 12, "minamount": 4},
{ "item": "splinter", "amount": 1 }
]
}
},
{
"type": "furniture",
"id": "f_pool_table",
"name": "pool table",
"symbol": "#",
"color": "green",
"move_cost_mod": 2,
"required_str": -1,
"flags": ["TRANSPARENT", "FLAMMABLE", "DECONSTRUCT", "ORGANIC"],
"bash": {
"str_min": 3, "str_max": 45,
"sound": "smash!",
"sound_fail": "whump.",
"items": [
{ "item": "2x4", "amount": 6, "minamount": 2},
{ "item": "nail", "amount": 12, "minamount": 4},
{ "item": "splinter", "amount": 1 }
]
}
},
{
"type": "furniture",
"id": "f_counter",
"name": "counter",
"symbol": "#",
"color": "blue",
"move_cost_mod": 2,
"required_str": 10,
"flags": ["TRANSPARENT", "FLAMMABLE", "DECONSTRUCT", "ORGANIC"],
"bash": {
"str_min": 3, "str_max": 45,
"sound": "smash!",
"sound_fail": "whump.",
"items": [
{ "item": "2x4", "amount": 6, "minamount": 2},
{ "item": "nail", "amount": 12, "minamount": 4},
{ "item": "splinter", "amount": 1 }
]
}
},
{
"type": "furniture",
"id": "f_fridge",
"name": "refrigerator",
"symbol": "{",
"color": "ltcyan",
"move_cost_mod": -1,
"required_str": 10,
"flags": ["CONTAINER", "BASHABLE", "DECONSTRUCT", "PLACE_ITEM", "BLOCKSDOOR"],
"bash": {
"str_min": 2, "str_max": 30,
"sound": "metal screeching!",
"sound_fail": "clang!",
"items": [
{ "item": "scrap", "amount": 8, "minamount": 2},
{ "item": "steel_chunk", "amount": 3, "minamount": 0},
{ "item": "hose", "amount": 1},
{ "item": "cu_pipe", "amount": 5, "minamount": 2 }
]
}
},
{
"type": "furniture",
"id": "f_glass_fridge",
"name": "glass door fridge",
"symbol": "{",
"color": "ltcyan",
"move_cost_mod": -1,
"required_str": 10,
"flags": ["BASHABLE", "DECONSTRUCT", "PLACE_ITEM", "BLOCKSDOOR"],
"bash": {
"str_min": 2, "str_max": 30,
"sound": "metal screeching!",
"sound_fail": "clang!",
"items": [
{ "item": "scrap", "amount": 8, "minamount": 2},
{ "item": "steel_chunk", "amount": 3, "minamount": 0},
{ "item": "hose", "amount": 1},
{ "item": "cu_pipe", "amount": 5, "minamount": 2 }
]
}
},
{
"type": "furniture",
"id": "f_dresser",
"name": "dresser",
"symbol": "{",
"color": "brown",
"move_cost_mod": -1,
"required_str": 8,
"flags": ["TRANSPARENT", "CONTAINER", "FLAMMABLE", "BASHABLE", "DECONSTRUCT", "PLACE_ITEM", "ORGANIC", "BLOCKSDOOR"],
"bash": {
"str_min": 3, "str_max": 45,
"sound": "smash!",
"sound_fail": "whump.",
"items": [
{ "item": "2x4", "amount": 6, "minamount": 2},
{ "item": "nail", "amount": 12, "minamount": 4},
{ "item": "splinter", "amount": 1 }
]
}
},
{
"type": "furniture",
"id": "f_locker",
"name": "locker",
"symbol": "{",
"color": "ltgray",
"move_cost_mod": -1,
"required_str": 9,
"flags": ["CONTAINER", "BASHABLE", "PLACE_ITEM", "DECONSTRUCT", "BLOCKSDOOR"],
"bash": {
"str_min": 2, "str_max": 30,
"sound": "metal screeching!",
"sound_fail": "clang!",
"items": [
{ "item": "scrap", "amount": 8, "minamount": 2},
{ "item": "steel_chunk", "amount": 3, "minamount": 0},
{ "item": "pipe", "amount": 1 }
]
}
},
{
"type": "furniture",
"id": "f_rack",
"name": "display rack",
"symbol": "{",
"color": "ltgray",
"move_cost_mod": -1,
"required_str": 8,
"flags": ["TRANSPARENT", "FLAMMABLE_HARD", "BASHABLE", "PLACE_ITEM", "DECONSTRUCT", "BLOCKSDOOR"],
"bash": {
"str_min": 2, "str_max": 30,
"sound": "metal screeching!",
"sound_fail": "clang!",
"items": [
{ "item": "scrap", "amount": 8, "minamount": 2},
{ "item": "steel_chunk", "amount": 3, "minamount": 0},
{ "item": "pipe", "amount": 1 }
]
}
},
{
"type": "furniture",
"id": "f_bookcase",
"name": "book case",
"symbol": "{",
"color": "brown",
"move_cost_mod": -1,
"required_str": 9,
"flags": ["FLAMMABLE", "BASHABLE", "DECONSTRUCT", "PLACE_ITEM", "ORGANIC", "BLOCKSDOR"],
"bash": {
"str_min": 3, "str_max": 45,
"sound": "smash!",
"sound_fail": "whump.",
"items": [
{ "item": "2x4", "amount": 6, "minamount": 2},
{ "item": "nail", "amount": 12, "minamount": 4},
{ "item": "splinter", "amount": 1 }
]
}
},
{
"type": "furniture",
"id": "f_washer",
"name": "washing machine",
"symbol": "{",
"bgcolor": "white",
"move_cost_mod": -1,
"required_str": 16,
"flags": ["CONTAINER", "BASHABLE", "PLACE_ITEM", "BLOCKSDOOR"]
},
{
"type": "furniture",
"id": "f_dryer",
"name": "dryer",
"symbol": "{",
"bgcolor": "white",
"move_cost_mod": -1,
"required_str": 16,
"flags": ["CONTAINER", "BASHABLE", "PLACE_ITEM", "BLOCKSDOOR"]
},
{
"type": "furniture",
"id": "f_dumpster",
"name": "dumpster",
"symbol": "{",
"color": "green",
"move_cost_mod": -1,
"required_str": 16,
"flags": ["CONTAINER", "BASHABLE", "PLACE_ITEM", "BLOCKSDOOR"]
},
{
"type": "furniture",
"id": "f_dive_block",
"name": "diving block",
"symbol": "O",
"color": "ltgray",
"move_cost_mod": -1,
"required_str": 16,
"flags": ["TRANSPARENT"]
},
{
"type": "furniture",
"id": "f_crate_c",
"name": "crate",
"symbol": "X",
"bgcolor": "brown",
"move_cost_mod": -1,
"required_str": 14,
"flags": ["TRANSPARENT", "BASHABLE", "CONTAINER", "SEALED", "FLAMMABLE", "DECONSTRUCT", "PLACE_ITEM", "ORGANIC"],
"bash": {
"str_min": 1, "str_max": 20,
"sound": "smash!",
"sound_fail": "wham!",
"items": [
{ "item": "2x4", "amount": 5, "minamount": 1},
{ "item": "nail", "amount": 10, "minamount": 2 }
]
}
},
{
"type": "furniture",
"id": "f_crate_o",
"name": "open crate",
"symbol": "O",
"bgcolor": "brown",
"move_cost_mod": -1,
"required_str": 12,
"flags": ["TRANSPARENT", "BASHABLE", "CONTAINER", "FLAMMABLE", "PLACE_ITEM", "ORGANIC"],
"bash": {
"str_min": 1, "str_max": 20,
"sound": "smash!",
"sound_fail": "wham!",
"items": [
{ "item": "2x4", "amount": 5, "minamount": 1},
{ "item": "nail", "amount": 10, "minamount": 2 }
]
}
},
{
"type": "furniture",
"id": "f_canvas_wall",
"name": "canvas wall",
"symbol": "#",
"color": "blue",
"move_cost_mod": -1,
"required_str": -1,
"flags": ["FLAMMABLE_HARD", "BASHABLE", "NOITEM"]
},
{
"type": "furniture",
"id": "f_canvas_door",
"name": "canvas flap",
"symbol": "+",
"color": "blue",
"move_cost_mod": -1,
"required_str": -1,
"flags": ["FLAMMABLE_HARD", "BASHABLE", "NOITEM"],
"open": "f_canvas_door_o"
},
{
"type": "furniture",
"id": "f_canvas_door_o",
"name": "open canvas flap",
"symbol": ".",
"color": "blue",
"move_cost_mod": 0,
"required_str": -1,
"flags": ["TRANSPARENT"],
"close": "f_canvas_door"
},
{
"type": "furniture",
"id": "f_groundsheet",
"name": "groundsheet",
"symbol": ";",
"color": "green",
"move_cost_mod": 0,
"required_str": -1,
"flags": ["TRANSPARENT", "INDOORS"],
"examine_action": "tent"
},
{
"type": "furniture",
"id": "f_fema_groundsheet",
"name": "groundsheet",
"symbol": ";",
"color": "green",
"move_cost_mod": 0,
"required_str": -1,
"flags": ["TRANSPARENT", "INDOORS", "ORGANIC"]
},
{
"type": "furniture",
"id": "f_skin_wall",
"name": "animalskin wall",
"symbol": "#",
"color": "brown",
"move_cost_mod": -1,
"required_str": -1,
"flags": ["FLAMMABLE_HARD", "BASHABLE", "NOITEM"]
},
{
"type": "furniture",
"id": "f_skin_door",
"name": "animalskin flap",
"symbol": "+",
"color": "white",
"move_cost_mod": -1,
"required_str": -1,
"flags": ["FLAMMABLE_HARD", "BASHABLE", "NOITEM"],
"open": "f_skin_door_o"
},
{
"type": "furniture",
"id": "f_skin_door_o",
"name": "open animalskin flap",
"symbol": ".",
"color": "white",
"move_cost_mod": 0,
"required_str": -1,
"flags": ["TRANSPARENT"],
"close": "f_skin_door"
},
{
"type": "furniture",
"id": "f_skin_groundsheet",
"name": "animalskin floor",
"symbol": ";",
"color": "brown",
"move_cost_mod": 0,
"required_str": -1,
"flags": ["TRANSPARENT", "INDOORS"],
"examine_action": "shelter"
},
{
"type": "furniture",
"id": "f_mutpoppy",
"name": "mutated poppy flower",
"symbol": "f",
"color": "red",
"move_cost_mod": 1,
"required_str": -1,
"flags": ["TRANSPARENT"],
"examine_action": "flower_poppy"
},
{
"type": "furniture",
"id": "f_flower_fungal",
"name": "fungal flower",
"symbol": "f",
"color": "dkgray",
"move_cost_mod": 1,
"required_str": -1,
"flags": ["TRANSPARENT", "FLOWER", "FUNGUS"],
"examine_action": "fungus"
},
{
"type": "furniture",
"id": "f_fungal_mass",
"name": "fungal mass",
"symbol": "O",
"bgcolor": "dkgray",
"move_cost_mod": -10,
"required_str": -1,
"flags": ["BASHABLE", "CONTAINER", "SEALED", "FLAMMABLE_ASH", "FUNGUS"]
},
{
"type": "furniture",
"id": "f_fungal_clump",
"name": "fungal clump",
"symbol": "#",
"bgcolor": "ltgray",
"move_cost_mod": 3,
"required_str": -1,
"flags": ["TRANSPARENT", "BASHABLE", "CONTAINER", "SEALED", "FLAMMABLE_ASH", "FUNGUS"]
},
{
"type": "furniture",
"id": "f_safe_c",
"name": "safe",
"symbol": "X",
"color": "ltgray",
"move_cost_mod": -1,
"required_str": 14,
"flags": ["TRANSPARENT", "BASHABLE", "CONTAINER", "SEALED", "PLACE_ITEM"],
"open": "f_safe"
},
{
"type": "furniture",
"id": "f_safe_l",
"name": "safe",
"symbol": "X",
"color": "ltgray",
"move_cost_mod": -1,
"required_str": 14,
"flags": ["TRANSPARENT", "BASHABLE", "CONTAINER", "SEALED", "PLACE_ITEM"],
"examine_action": "safe"
},
{
"type": "furniture",
"id": "f_safe_o",
"name": "open safe",
"symbol": "O",
"color": "ltgray",
"move_cost_mod": -1,
"required_str": 14,
"flags": ["TRANSPARENT", "BASHABLE", "CONTAINER", "PLACE_ITEM"],
"close": "f_safe"
},
{
"type": "furniture",
"id": "f_plant_seed",
"name": "seed",
"symbol": "^",
"color": "brown",
"move_cost_mod": 0,
"required_str": -1,
"flags": ["PLANT", "SEALED", "TRANSPARENT", "CONTAINER", "NOITEM"],
"examine_action": "aggie_plant"
},
{
"type": "furniture",
"id": "f_plant_seedling",
"name": "seedling",
"symbol": "^",
"color": "green",
"move_cost_mod": 0,
"required_str": -1,
"flags": ["PLANT", "SEALED", "TRANSPARENT", "CONTAINER", "NOITEM"],
"examine_action": "aggie_plant"
},
{
"type": "furniture",
"id": "f_plant_mature",
"name": "mature plant",
"symbol": "#",
"color": "green",
"move_cost_mod": 0,
"required_str": -1,
"flags": ["PLANT", "SEALED", "TRANSPARENT", "CONTAINER", "NOITEM"],
"examine_action": "aggie_plant"
},
{
"type": "furniture",
"id": "f_plant_harvest",
"name": "harvestable plant",
"symbol": "#",
"color": "ltgreen",
"move_cost_mod": 0,
"required_str": -1,
"flags": ["PLANT", "SEALED", "TRANSPARENT", "CONTAINER", "NOITEM"],
"examine_action": "aggie_plant"
}
]
+478
View File
@@ -0,0 +1,478 @@
[
{
"type": "profession",
"description": "You are the bringer of nightmares, terror to children and adults everywhere.",
"ident": "nightmare",
"items": [
"haunted_sweater",
"haunted_pants",
"knife_gloves",
"boots_steel"
],
"name": "Dream Stalker",
"points": 0,
"skills": [
{
"level": 8,
"name": "melee"
},
{
"level": 8,
"name": "dodge"
}
]
},
{
"type" : "profession",
"ident": "agent",
"name": "Agent",
"description": "You look entirely too put together for the situation, with a spotless suit and sunglasses.",
"items":[
"dress_shoes",
"rm99_pistol",
"8mm_inc",
"8mm_inc",
"8mm_inc",
"advanced_suit",
"sunglasses"
],
"CBMs":[
"bio_torsionratchet",
"bio_furnace",
"bio_ears",
"bio_eye_enhancer",
"bio_dex_enhancer",
"bio_str_enhancer",
"bio_int_enhancer",
"bio_probability_travel",
"bio_ethanol",
"bio_power_storage_mkII",
"bio_power_storage_mkII"
],
"points": 0,
"skills": [
{
"level": 8,
"name": "gun"
},
{
"level": 8,
"name": "dodge"
}
]
},
{
"type" : "profession",
"ident": "terminator",
"name": "Terminator",
"description": "YOUR MISSION IS TO FIND AND PROTECT <ERROR: DATA EXPUNGED>.",
"items":[
"rm51_assault_rifle",
"8mm_inc",
"8mm_inc",
"8mm_inc"
],
"CBMs":[
"bio_torsionratchet",
"bio_furnace",
"bio_flashbang",
"bio_ods",
"bio_armor_legs",
"bio_armor_arms",
"bio_armor_torso",
"bio_armor_head",
"bio_carbon",
"bio_chain_lightning",
"bio_hydraulics",
"bio_nanobots",
"bio_eye_enhancer",
"bio_dex_enhancer",
"bio_str_enhancer",
"bio_power_storage_mkII",
"bio_power_storage_mkII",
"bio_power_storage_mkII",
"bio_power_storage_mkII"
],
"points": 0,
"skills": [
{
"level": 4,
"name": "gun"
},
{
"level": 12,
"name": "melee"
}
]
},
{
"type": "profession",
"ident": "killer_clown",
"name": "Killer Clown",
"description": "THEY FLOAT, THEY ALL FLOAT.",
"points": 0,
"items": [
"clown_suit",
"clownshoes",
"lethal_balloon"
],
"skills": [
{
"level": 4,
"name": "dodge"
},
{
"level": 5,
"name": "melee"
}
]
},
{
"type": "profession",
"ident": "ghost",
"name": "Ghost",
"description": "You are a spooky ghost. The spookiest.",
"points": 0,
"items": [
"ghost_sheet"
],
"skills": [
{
"level": 30,
"name": "dodge"
}
]
},
{
"type" : "ARMOR",
"id" : "haunted_sweater",
"name" : "haunted sweater",
"weight" : 1450,
"color" : "dark_gray",
"covers" : ["TORSO", "ARMS"],
"to_hit" : 1,
"storage" : 8,
"symbol" : "[",
"description" : "A simple striped sweater, it awakens disturbing feelings deep within you.",
"price" : 150,
"material" : ["leather", "null"],
"volume" : 18,
"cutting" : 0,
"warmth" : 30,
"phase" : "solid",
"enviromental_protection" : 2,
"encumbrance" : 1,
"bashing" : -2,
"flags" : ["VARSIZE"],
"coverage" : 100,
"material_thickness" : 8
},
{
"type" : "ARMOR",
"id" : "haunted_pants",
"name" : "haunted leather pants",
"weight" : 980,
"color" : "dark_gray",
"covers" : ["LEGS"],
"to_hit" : 1,
"storage" : 4,
"symbol" : "[",
"description" : "A pair of black leather pants, they remind you of traumas you experienced as a child.",
"price" : 210,
"material" : ["leather", "null"],
"volume" : 10,
"cutting" : 0,
"warmth" : 25,
"phase" : "solid",
"enviromental_protection" : 0,
"encumbrance" : 1,
"bashing" : -2,
"flags" : ["VARSIZE"],
"coverage" : 95,
"material_thickness" : 8
},
{
"type" : "ARMOR",
"id" : "advanced_suit",
"name" : "agency suit",
"weight" : 1587,
"color" : "light_gray",
"covers" : ["LEGS", "TORSO", "ARMS"],
"to_hit" : -5,
"storage" : 20,
"symbol" : "[",
"description" : "A professional outfit, for a professional man.",
"price" : 180,
"material" : ["cotton", "null"],
"volume" : 19,
"cutting" : 0,
"warmth" : 25,
"phase" : "solid",
"enviromental_protection" : 1,
"encumbrance" : 1,
"bashing" : -5,
"flags" : ["VARSIZE", "FANCY", "POCKETS"],
"coverage" : 95,
"material_thickness" : 4
},
{
"type" : "ARMOR",
"id" : "ghost_sheet",
"name" : "ghost sheet",
"weight" : 1587,
"color" : "light_gray",
"covers" : ["TORSO", "ARMS"],
"to_hit" : -5,
"storage" : 20,
"symbol" : "[",
"description" : "A normal white sheet with three eyeholes cut out of it. It can be worn over your head to make you look like a ghost. Spooky!",
"price" : 180,
"material" : ["cotton", "null"],
"volume" : 19,
"cutting" : 0,
"warmth" : 25,
"phase" : "solid",
"enviromental_protection" : 0,
"encumbrance" : 2,
"bashing" : -5,
"coverage" : 100,
"material_thickness" : 1
},
{
"type":"GENERIC",
"id" : "lethal_balloon",
"name" : "lead balloon",
"description" : "Despite being solid, heavy, and filled with a terrifying energy, this balloon still floats.",
"weight" : 168,
"to_hit" : 2,
"color" : "red",
"symbol" : "O",
"material" : ["plastic", "null"],
"volume" : 8,
"bashing" : 50,
"cutting" : 0,
"price" : 0
},
{
"id": "haunted_machete",
"type": "TOOL",
"symbol": "/",
"color": "blue",
"name": "machete",
"description": "This weapon whispers sweet compliments into your ear, mixed with encouraging you to kill and murder lest it, in it's unsated bloodlust, decide to kill and murder you instead.",
"price": 280,
"material": "iron",
"techniques": ["RAPID", "WBLOCK_2"],
"weight": 538,
"volume": 8,
"bashing": 16,
"cutting": 56,
"flags" : ["CHOP"],
"to_hit": 8,
"max_charges": 0,
"initial_charges": 0,
"charges_per_use": 0,
"turns_per_charge": 0,
"ammo": "NULL",
"revert_to": "null",
"use_action": "KNIFE",
"qualities": [["CUT", 1]]
},
{
"id": "knife_gloves",
"type": "TOOL",
"symbol": "/",
"color": "blue",
"name": "knife gloves",
"description": "With these strapped to your hands, you're sure you could take on the entire world, images and memories of burning and flames be damned.",
"price": 280,
"material": "iron",
"techniques": "RAPID",
"weight": 200,
"volume": 3,
"bashing": 10,
"cutting": 30,
"flags" : ["CHOP"],
"to_hit": 10,
"max_charges": 0,
"initial_charges": 0,
"charges_per_use": 0,
"turns_per_charge": 0,
"ammo": "NULL",
"revert_to": "null",
"use_action": "KNIFE",
"qualities": [["CUT", 1]]
},
{
"type":"MONSTER",
"id":"mon_werewolf",
"name": "Werewolf",
"species":"mammal",
"symbol":"W",
"color":"brown",
"size":"MEDIUM",
"material":"flesh",
"diff":15,
"aggression":70,
"morale":100,
"speed":130,
"melee_skill":10,
"melee_dice":2,
"melee_dice_sides":6,
"melee_cut":7,
"dodge":7,
"armor_bash":7,
"armor_cut":10,
"item_chance":0,
"luminance":0,
"hp":60,
"death_function":"NORMAL",
"description": "Shaggy fur, sharp teeth, hunched posture and broad shoulders. Not a wolf, no longer a man, and now very, very dangerous.",
"flags":["SEES", "HEARS", "WARM", "BASHES", "BLEED", "REGENERATES_10", "NO_BREATHE", "VIS50"],
"anger_triggers":["STALK", "PLAYER_WEAK", "HURT"],
"fear_triggers":["FIRE"]
},
{
"type":"MONSTER",
"id":"mon_vampire",
"name": "Vampire",
"species":"ZOMBIE",
"symbol":"V",
"color":"dkgray",
"size":"MEDIUM",
"material":"flesh",
"diff":3,
"aggression":50,
"morale":100,
"speed":110,
"melee_skill":11,
"melee_dice":1,
"melee_dice_sides":6,
"melee_cut":4,
"dodge":8,
"armor_bash":5,
"armor_cut":0,
"item_chance":0,
"luminance":0,
"hp":80,
"death_function":"NORMAL",
"description":"With pale skin, a penetrating gaze, an an unnatural aura, this graceful hunter of the night will not be easy to kill.",
"flags":["SEES", "HEARS", "WARM", "BASHES", "REGENERATES_10", "NO_BREATHE", "VIS30"],
"anger_triggers":["PLAYER_CLOSE", "PLAYER_WEAK", "HURT"],
"fear_triggers":["FIRE"]
},
{
"type":"MONSTER",
"id":"mon_doll",
"name": "Possessed Doll",
"species":"ZOMBIE",
"symbol":"|",
"color":"white",
"size":"SMALL",
"material":"plastic",
"diff":3,
"aggression":100,
"morale":100,
"speed":150,
"melee_skill":12,
"melee_dice":3,
"melee_dice_sides":4,
"melee_cut":4,
"dodge":10,
"armor_bash":5,
"armor_cut":25,
"item_chance":0,
"luminance":0,
"hp":90,
"death_function":"NORMAL",
"description":"It's cracked plastic face locked into a devilish grin, it wouldn't be nearly so bad if it wasn't carrying a knife half the size of it's body.",
"flags":["SEES", "HEARS", "WARM", "BASHES", "NO_BREATHE", "VIS30"]
},
{
"type":"MONSTER",
"id":"mon_frankenstein",
"name": "Frankenstein",
"species":"ZOMBIE",
"symbol":"Z",
"color":"black",
"size":"LARGE",
"material":"flesh",
"diff":3,
"aggression":0,
"morale":100,
"speed":50,
"melee_skill":4,
"melee_dice":3,
"melee_dice_sides":15,
"melee_cut":0,
"dodge":0,
"armor_bash":10,
"armor_cut":10,
"item_chance":0,
"luminance":0,
"hp":460,
"death_function":"NORMAL",
"description":"A product of the most advanced sort of mad science, this patchwork product of dozens of worked over corpses is truly a sight to behold. Far stronger and more durable than it appears at first glance.",
"flags":["SEES", "HEARS", "WARM", "BASHES", "NO_BREATHE", "VIS30", "DESTROYS"],
"anger_triggers":["PLAYER_CLOSE", "PLAYER_WEAK", "HURT"],
"fear_triggers":["FIRE"]
},
{
"type":"MONSTER",
"id":"mon_terminator",
"name": "Terminator",
"species":"ROBOT",
"symbol":"T",
"color":"ltgray",
"size":"LARGE",
"material":"steel",
"diff":15,
"aggression":100,
"morale":100,
"speed":100,
"melee_skill":10,
"melee_dice":1,
"melee_dice_sides":20,
"melee_cut":0,
"dodge":0,
"armor_bash":10,
"armor_cut":10,
"item_chance":0,
"luminance":0,
"hp":120,
"death_function":"NORMAL",
"description":"A metallic human skeleton, blades for hands, and bright red eyes, there is no humanity behind the eyes of this vaguely human form - just orders to kill.",
"flags":["SEES", "HEARS", "ELECTRONIC", "BASHES", "NO_BREATHE", "VIS50", "REGENERATES_10", "DESTROYS"],
"anger_triggers":["PLAYER_CLOSE", "PLAYER_WEAK", "HURT"],
"fear_triggers":["FIRE"]
},
{
"type":"MONSTER",
"id":"mon_gremlin",
"name": "Gremlin",
"species":"UNKNOWN",
"symbol":"g",
"color":"green",
"size":"TINY",
"material":"flesh",
"diff":3,
"aggression":100,
"morale":80,
"speed":120,
"melee_skill":4,
"melee_dice":1,
"melee_dice_sides":4,
"melee_cut":3,
"dodge":5,
"armor_bash":2,
"armor_cut":0,
"item_chance":0,
"luminance":0,
"hp":20,
"death_function":"NORMAL",
"description":"Big ears, big eyes, big mouth, big sharp teeth, and a small body. These gibbering creatures, often adorned in stolen human scraps, find the idea of tearing you to pieces absolutely gleeful.",
"flags":["SEES", "HEARS", "WARM", "BASHES", "VIS50"],
"anger_triggers":["STALK", "PLAYER_WEAK"],
"fear_triggers":["HURT", "FRIEND_DIED"]
}
]
+279
View File
@@ -0,0 +1,279 @@
[
{
"type" : "hint",
"text" : "Squirrels are pretty yummy, but if you shoot them with a high-powered gun you'll probably be left with no meat! Use a BB gun or maybe a .22 rifle."
},{
"type" : "hint",
"text" : "Ever run into those big worm things? If you see trails of churned-up dirt, you can be sure they're around."
},{
"type" : "hint",
"text" : "Try to stay on the roads as much as you can. Giant worms can't cross them!"
},{
"type" : "hint",
"text" : "Don't relax after killing a giant worm. Little bits of them can break off and still attack!"
},{
"type" : "hint",
"text" : "If you see a big mob of zombies coming, RUN! Trying to fight them all is suicide unless you have a big tactical advantage."
},{
"type" : "hint",
"text" : "Watch out for those zombies that shriek; they'll let other zombies know where you are, and will attract them from all over."
},{
"type" : "hint",
"text" : "Those acid-spitting zombies are pretty nasty, but if you're smart, you can get other zombies to wade through the acid."
},{
"type" : "hint",
"text" : "If there's a pool of acid blocking your way, trying tossing a junk item into it. Eating up items will help neutralize the acid faster."
},{
"type" : "hint",
"text" : "There's this type of zombie that can shoot bolts of lightning! Stay away from walls and stuff when they do... the electricity can travel along solid surfaces."
},{
"type" : "hint",
"text" : "Zombie hulks are NASTY, but they're easy to outsmart. If there's other monsters between you and them, they'll kill the monster for you!"
},{
"type" : "hint",
"text" : "If you run into a zombie hulk, it's probably a good idea to run. They're fast as hell, but pretty dumb; they'll try to smash through obstacles rather than going around, and that slows them down a lot."
},{
"type" : "hint",
"text" : "Zombie brutes and hulks have really tough hide. Don't bother shooting at them with lower-caliber guns, the bullet will bounce right off!"
},{
"type" : "hint",
"text" : "Try not to kill a boomer if it's standing right next to you. They tend to explode when they die, and that pink goop will get all over you."
},{
"type" : "hint",
"text" : "Skeletons are a tough target. They're so skinny and full of holes that bullets fired at them will usually just fly right past."
},{
"type" : "hint",
"text" : "Skeletons are too delicate to smash through doors or windows. They also can't smell you, unlike zombies, so if you turn your light off at night you can sneak right past."
},{
"type" : "hint",
"text" : "Don't try to take on a skeleton with a bladed weapon... you'll just leave scratch marks. You've got to shatter those bones with a hammer or something."
},{
"type" : "hint",
"text" : "It's a good idea to butcher corpses if you have the time, even if you don't plan on eating them. I've seen these weird zombies bring their friends back from the dead!"
},{
"type" : "hint",
"text" : "Triffids are tough. They've got natural armor, and it takes a lot to bring them down. I don't recommend getting into a fight with them."
},{
"type" : "hint",
"text" : "Triffids can't see! They figure out where you are by your smell, but if you mask it with smoke or something, you're as good as invisible."
},{
"type" : "hint",
"text" : "I figured out how to take care of those triffids! Let me just say this: they're made of wood, and wood and fire don't mix."
},{
"type" : "hint",
"text" : "Have you heard about those queen triffids? You gotta keep your distance from them, unless you like having a tree grow right through your chest."
},{
"type" : "hint",
"text" : "I have a buddy who was sleeping in this cabin way out in the woods, when he suddenly woke up to trees and vines growing right up through the floor and walls! He said it was some kind of huge triffid making it happen..."
},{
"type" : "hint",
"text" : "Oh man, have you gone down into the old subway systems? I'd be careful... there's these things down there that're like zombies, but tougher."
},{
"type" : "hint",
"text" : "There's snakes down in most of the old sewer systems. They're slow on land, but boy, those suckers can swim fast!"
},{
"type" : "hint",
"text" : "If you're planning on wandering around the sewers--not that you'd have a reason too--watch out for those fish. Those suckers are fast, and vicious too!"
},{
"type" : "hint",
"text" : "Have you seen those eyebots flying around? It's hard to say, but some faction's controlling them--maybe the military. All I know is, I don't want them taking my picture..."
},{
"type" : "hint",
"text" : "Ever go toe-to-toe with a manhack? Tiny little helicopters covered in knives. Best be packing a shotgun!"
},{
"type" : "hint",
"text" : "They're rare, but molebots are nasty things. They bore through the ground, then pop up to stab ya. Still, you're safe from them if you stay on pavement..."
},{
"type" : "hint",
"text" : "Don't fire your gun if you can help it--the noise attracts monsters!"
},{
"type" : "hint",
"text" : "Standing behind a window is a good tactic. It takes zombies a long time to crawl through, giving you lots of opportunities to hit them."
},{
"type" : "hint",
"text" : "Zombies are pretty dumb... heck, most monsters are! If you can get a fire going between you and them, they'll just run straight through it."
},{
"type" : "hint",
"text" : "I know it's tempting to just go full-auto and unload as many bullets as possible, but don't except as a last resort. It's inaccurate and wastes ammo."
},{
"type" : "hint",
"text" : "If there's a bunch of zombies in a straight line, try unloading a burst from your gun. Be sure to aim at the zombie furthest away; you'll hit more of them that way."
},{
"type" : "hint",
"text" : "If you shoot a zombie, but don't quite kill it, try to finish it off with a punch or something instead of wasting a bullet."
},{
"type" : "hint",
"text" : "If you're in a corridor or something, and there's a bunch of zombies chasing you down it, try to wound the guy in front badly. He'll start moving slow and cause a serious traffic jam!"
},{
"type" : "hint",
"text" : "Here's a trick for taking care of a huge swarm of zombies chasing you: head into a liquor store, shoot out as many bottles as you can, then light the alcohol on fire. Then duck out the back door, and watch the zombies run into a burning building!"
},{
"type" : "hint",
"text" : "Sledge hammers may seem like a great weapon, but swinging them is really slow, and you won't do much damage unless you're really strong."
},{
"type" : "hint",
"text" : "For a good melee weapon, you can't beat a machete. I've seen a guy take down a zombie brute with one! Of course, if you can find a katana, that might be even better..."
},{
"type" : "hint",
"text" : "You know, a glass bottle can make a good weapon in a pinch. If you break it over someone's head, the shattering glass will hurt them extra. Of course, it might hurt your hands, too..."
},{
"type" : "hint",
"text" : "You know what makes a nice weapon? Take a two by four, or a baseball bat or something, and stick a bunch of nails through the end!"
},{
"type" : "hint",
"text" : "BB guns may seem like a joke, but they've got their uses. They're good for hunting small game, or getting to know the basics of rifles."
},{
"type" : "hint",
"text" : "Crossbows are a great weapon for long term use. Most of the time, you can retrieve the bolt after shooting it, so running out of ammo is less of a concern."
},{
"type" : "hint",
"text" : "It's good to keep a pistol handy, in case your main gun runs out of ammo or something. They're also better than most guns at short range."
},{
"type" : "hint",
"text" : "Shotguns are nice; you can take out lots of baddies with a single shot. Just remember that they're noisy as hell, and you might end up attracting more than you kill."
},{
"type" : "hint",
"text" : "A good submachine gun can't be beat. Most of them use common ammo, they're good at short and long range, and you can burst-fire if you need to!"
},{
"type" : "hint",
"text" : "Hunting rifles are great at long range, but suck close up. Plus, most of them don't carry many rounds. Keep a pistol as a sidearm if you use a rifle."
},{
"type" : "hint",
"text" : "You know, you don't have to go full auto with an assault rifle. Firing single shots is more accurate and efficient!"
},{
"type" : "hint",
"text" : "I've seen a couple guys running around with laser pistols. They seem like the perfect weapon... quiet, accurate, and deadly. But I've never found one, and I bet ammo is wicked scarce..."
},{
"type" : "hint",
"text" : "When it comes to footwear, you've got two basic choices as far as I see it; sneakers, for running extra fast, or boots for durability. Depends on your style, I guess."
},{
"type" : "hint",
"text" : "You don't really need to wear gloves most of the time, but once in a while they'll really come in handy."
},{
"type" : "hint",
"text" : "It's good to keep a filter mask or gas mask handy. You never know when you'll have to go into a smoke-filled room or something."
},{
"type" : "hint",
"text" : "There's basically no reason not to wear safety glasses... nothing's worse than taking a hit to the eyes and getting blinded for a few seconds."
},{
"type" : "hint",
"text" : "Ski goggles are a great choice if you're worried about getting stuff in your eyes. Perfect for dealing with boomers!"
},{
"type" : "hint",
"text" : "If you get a pair of night vision goggles, hold on to them! A flashlight will give you away, but with goggles you can be sneaky."
},{
"type" : "hint",
"text" : "I know they look dumb, but wearing a fanny pack gives you that extra bit of storage without encumbering you."
},{
"type" : "hint",
"text" : "Backpacks let you carry lots of stuff, but they limit your movement a lot. If you're an unarmed fighter, don't wear one!"
},{
"type" : "hint",
"text" : "Don't underestimate a good book. Not only will it keep you company on lonely nights, but you can learn a hell of a lot from some of them."
},{
"type" : "hint",
"text" : "It's a good idea to carry around a couple of empty bottles. You can fill them up with water, gasoline, or whatever!"
},{
"type" : "hint",
"text" : "If you need a bunch of rags for making molotov cocktails, take a pair of scissors to an old t-shirt or something."
},{
"type" : "hint",
"text" : "Carrying a lighter is something all veterans do. It takes up almost no space, and can easily save your life."
},{
"type" : "hint",
"text" : "If you can spare the space, you might want to carry a fire extinguisher along. Nothing's worse than being trapped in a burning building!"
},{
"type" : "hint",
"text" : "Crowbars not only make a pretty good weapon, they're also useful for opening locked doors and lifting manhole covers."
},{
"type" : "hint",
"text" : "If you're spending the night in a dangerous area, grab a shovel and dig pits all around your camp."
},{
"type" : "hint",
"text" : "A chainsaw may seem like a great weapon, but remember that they're slow, unwieldy, and very noisy."
},{
"type" : "hint",
"text" : "Bubblewrap is pretty harmless, but setting it up around you before going to sleep will keep you from waking up to a zombie punching you."
},{
"type" : "hint",
"text" : "Beartraps are a nice way to cover an escape. If you place one in a doorway, the first zombie through will get stuck, and the rest won't be able to get past!"
},{
"type" : "hint",
"text" : "Smoke grenades aren't really offensive weapons, but they'll cover up your scent and hide you from view--perfect for making a quick escape."
},{
"type" : "hint",
"text" : "Don't use molotovs indoors. Especially in a liquor store."
},{
"type" : "hint",
"text" : "If you're going to be playing with molotov cocktails around a gas station, just make sure you're a long way from those pumps."
},{
"type" : "hint",
"text" : "I once knew a guy who figured he'd survive a night in the subway by setting fires blocking off the tunnel in both directions and sleeping between them. He wound up asphyxiating on the smoke."
},{
"type" : "hint",
"text" : "Don't light a molotov until you're ready to throw it. Not only can they go out, but if you accidentally drop it or something, you're in trouble."
},{
"type" : "hint",
"text" : "If you're weak or clumsy, it might be a good idea not to mess with molotovs or grenades. Accidentally dropping them when you meant to throw them could be deadly."
},{
"type" : "hint",
"text" : "If you're wandering in the wilderness, or following a road, keep an eye out for wild strawberries or blueberries."
},{
"type" : "hint",
"text" : "Be careful eating wild mushrooms. Some are poisonous, and others can make you hallucinate."
},{
"type" : "hint",
"text" : "Try to go around swamps, if you can. Some of them have sinkholes that can pull you right underground."
},{
"type" : "hint",
"text" : "I heard about this group that raided a bee hive a while ago. Everyone got massacred but one, and he came home with this weird, magic honey stuff."
},{
"type" : "hint",
"text" : "If you need to, you can swim across a river to escape; most monsters can't swim. Just make sure you drop as much stuff as possible first, and maybe strip naked, or you'll sink like a rock."
},{
"type" : "hint",
"text" : "Houses can be a surprisingly good resource for all kinds of stuff; clothing, medication, food, books, and more."
},{
"type" : "hint",
"text" : "While there's not much to loot, gas stations are a good source for gasoline, to power tools or to make molotov cocktails."
},{
"type" : "hint",
"text" : "It's not like in the movies--shooting a gas pump won't make it explode. But it WILL make it leak all over the place, which is a definite fire hazard."
},{
"type" : "hint",
"text" : "I know grocery stores and stuff are full of fruit, but be careful, it's probably rotten."
},{
"type" : "hint",
"text" : "Next time you visit a grocery store, load up on canned goods. They never go bad!"
},{
"type" : "hint",
"text" : "I've found more good weapons in hardware stores than anywhere else. Except gun stores, of course."
},{
"type" : "hint",
"text" : "Liquor stores are a great place to pick up non-alcoholic beverages, too. Not that I mind alcohol!"
},{
"type" : "hint",
"text" : "Most gun stores follow pretty similar layouts. The restricted stuff--SMGs, assault rifles, and most importantly ammo--are always behind the counter."
},{
"type" : "hint",
"text" : "I've spent many nights in the changing rooms at the back of clothing stores. Walls on four sides, far from the store's entrance, a corridor for easy defense... it's perfect!"
},{
"type" : "hint",
"text" : "If you're getting chased by a hoard of zombies, try ducking into the subways and traveling a block or two, then coming back up."
},{
"type" : "hint",
"text" : "Have you seen those weird science labs out in the middle of nowhere? I think you need some kind of special ID card to get in."
},{
"type" : "hint",
"text" : "I've thought about raiding an ant hill before, but I realized it wasn't worth the risk. I doubt they have any loot beyond some scraps of food, you know?"
},{
"type" : "hint",
"text" : "This guy I know was walking through the subway when he came across a giant rift in the earth, with lava far below. Weird, huh?"
},{
"type" : "hint",
"text" : "In a lot of places, there's little hallways connecting the subways with the sewers, with heavy metal doors on both ends. It's a perfect place to sleep!"
},{
"type" : "hint",
"text" : "Be careful of drinking water from rivers and stuff, it's a good way to get sick. But if you have a water purifier, it'll make it safe."
}
]
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
@@ -14,12 +14,14 @@
"cutting" : 0,
"to_hit" : 0,
"ammo_type" : "components",
"casing" : "NULL",
"damage" : 0,
"pierce" : 0,
"range" : 0,
"dispersion" : 0,
"recoil" : 0,
"count" : 10
"count" : 10,
"stack_size" : 20
},
{
"type" : "AMMO",
@@ -36,12 +38,14 @@
"cutting" : 0,
"to_hit" : 0,
"ammo_type" : "components",
"casing" : "NULL",
"damage" : 0,
"pierce" : 0,
"range" : 0,
"dispersion" : 0,
"recoil" : 0,
"count" : 10
"count" : 10,
"stack_size" : 100
},
{
"type" : "AMMO",
@@ -58,6 +62,7 @@
"cutting" : 0,
"to_hit" : 0,
"ammo_type" : "arrow",
"casing" : "NULL",
"damage" : 0,
"pierce" : 0,
"range" : 0,
@@ -75,11 +80,12 @@
"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,
"weight" : 48,
"bashing" : 2,
"cutting" : 0,
"to_hit" : 0,
"ammo_type" : "arrow",
"casing" : "NULL",
"damage" : 2,
"pierce" : 0,
"range" : 1,
@@ -97,11 +103,12 @@
"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,
"weight" : 54,
"bashing" : 3,
"cutting" : 0,
"to_hit" : 0,
"ammo_type" : "arrow",
"casing" : "NULL",
"damage" : 3,
"pierce" : 0,
"range" : 3,
@@ -124,6 +131,7 @@
"cutting" : 0,
"to_hit" : 0,
"ammo_type" : "arrow",
"casing" : "NULL",
"damage" : 3,
"pierce" : 0,
"range" : 2,
@@ -141,11 +149,12 @@
"description" : "A simple arrow shaft that has a crude arrow head. Useful for hunting small woodland creatures.",
"material" : "wood",
"volume" : 1,
"weight" : 48,
"weight" : 44,
"bashing" : 3,
"cutting" : 0,
"to_hit" : 0,
"ammo_type" : "arrow",
"casing" : "NULL",
"damage" : 6,
"pierce" : 1,
"range" : 2,
@@ -163,11 +172,12 @@
"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,
"weight" : 44,
"bashing" : 4,
"cutting" : 0,
"to_hit" : 0,
"ammo_type" : "arrow",
"casing" : "NULL",
"damage" : 2,
"pierce" : 0,
"range" : 2,
@@ -191,6 +201,7 @@
"cutting" : 0,
"to_hit" : 0,
"ammo_type" : "arrow",
"casing" : "NULL",
"damage" : 4,
"pierce" : 0,
"range" : 6,
@@ -208,11 +219,12 @@
"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,
"weight" : 46,
"bashing" : 3,
"cutting" : 0,
"to_hit" : 0,
"ammo_type" : "arrow",
"casing" : "NULL",
"damage" : 7,
"pierce" : 2,
"range" : 6,
@@ -235,6 +247,7 @@
"cutting" : 1,
"to_hit" : 0,
"ammo_type" : "arrow",
"casing" : "NULL",
"damage" : 10,
"pierce" : 3,
"range" : 7,
@@ -257,6 +270,7 @@
"cutting" : 0,
"to_hit" : 0,
"ammo_type" : "arrow",
"casing" : "NULL",
"damage" : 5,
"pierce" : 2,
"range" : 7,
@@ -279,6 +293,7 @@
"cutting" : 0,
"to_hit" : 0,
"ammo_type" : "arrow",
"casing" : "NULL",
"damage" : 6,
"pierce" : 3,
"range" : 7,
@@ -301,6 +316,7 @@
"cutting" : 2,
"to_hit" : 0,
"ammo_type" : "arrow",
"casing" : "NULL",
"damage" : 12,
"pierce" : 5,
"range" : 8,
@@ -323,6 +339,7 @@
"cutting" : 0,
"to_hit" : 0,
"ammo_type" : "arrow",
"casing" : "NULL",
"damage" : 5,
"pierce" : 3,
"range" : 5,
@@ -345,6 +362,7 @@
"cutting" : 2,
"to_hit" : 0,
"ammo_type" : "arrow",
"casing" : "NULL",
"damage" : 14,
"pierce" : 7,
"range" : 10,
@@ -367,12 +385,14 @@
"cutting" : 0,
"to_hit" : 0,
"ammo_type" : "arrow",
"casing" : "NULL",
"damage" : 10,
"pierce" : 5,
"range" : 8,
"dispersion" : 9,
"recoil" : 0,
"count" : 8
"count" : 8,
"stack_size" : 10
},
{
"type" : "AMMO",
@@ -384,11 +404,12 @@
"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,
"weight" : 633,
"bashing" : 2,
"cutting" : 0,
"to_hit" : 0,
"ammo_type" : "arrow",
"casing" : "NULL",
"damage" : 15,
"pierce" : 9,
"range" : 5,
@@ -398,6 +419,7 @@
"effects" : ["EXPLOSIVE"]
},
{
"type":"GENERIC",
"id" : "exploding_arrow_warhead",
"symbol" : "=",
"color" : "green",
@@ -405,7 +427,7 @@
"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,
"weight" : 562,
"volume" : 1,
"bashing" : 10,
"cutting" : 0,
@@ -428,6 +450,7 @@
"cutting" : 0,
"to_hit" : 0,
"ammo_type" : "arrow",
"casing" : "NULL",
"damage" : 15,
"pierce" : 9,
"range" : 5,
@@ -443,7 +466,7 @@
"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.",
"description" : "A sharpened bolt carved from wood. It's very light, but doesn't do much damage and isn't particularly accurate. Stands a good chance of remaining intact once fired.",
"material" : "wood",
"volume" : 1,
"weight" : 31,
@@ -451,6 +474,7 @@
"cutting" : 0,
"to_hit" : 0,
"ammo_type" : "bolt",
"casing" : "NULL",
"damage" : 10,
"pierce" : 1,
"range" : 0,
@@ -458,10 +482,34 @@
"recoil" : 0,
"count" : 15
},
{
"type" : "AMMO",
"id" : "bolt_metal",
"rarity" : 7,
"price" : 130,
"name" : "metal crossbow bolt",
"symbol" : "=",
"color" : "green",
"description" : "A sharpened bolt made from metal of some kind. It's heavy and unwieldy, providing moderate damage and accuracy. Stands a good chance of remaining intact once fired.",
"material" : "iron",
"volume" : 1,
"weight" : 250,
"bashing" : 1,
"cutting" : 0,
"to_hit" : 0,
"ammo_type" : "bolt",
"casing" : "NULL",
"damage" : 15,
"pierce" : 5,
"range" : 3,
"dispersion" : 9,
"recoil" : 0,
"count" : 10
},
{
"type" : "AMMO",
"id" : "bolt_steel",
"price" : 400,
"price" : 160,
"name" : "steel crossbow bolt",
"symbol" : "=",
"color" : "green",
@@ -473,13 +521,40 @@
"cutting" : 0,
"to_hit" : 0,
"ammo_type" : "bolt",
"casing" : "NULL",
"damage" : 20,
"pierce" : 10,
"range" : 6,
"dispersion" : 9,
"dispersion" : 8,
"recoil" : 0,
"count" : 10
},
{
"type" : "AMMO",
"id" : "bolt_explosive",
"rarity" : 7,
"price" : 200,
"name" : "explosive crossbow bolt",
"symbol" : "=",
"color" : "green",
"description" : "A sharpened bolt made from metal of some kind. It's light but unwieldy, providing moderate accuracy, because it's been filled with explosives and fitted with an impact trigger.",
"material" : "iron",
"volume" : 1,
"weight" : 620,
"bashing" : 1,
"cutting" : 0,
"to_hit" : 0,
"ammo_type" : "bolt",
"casing" : "NULL",
"damage" : 12,
"pierce" : 2,
"range" : 8,
"dispersion" : 9,
"recoil" : 0,
"count" : 1,
"stack_size" : 10,
"effects" : ["COOKOFF", "EXPLOSIVE"]
},
{
"id" : "selfbow",
"type" : "GUN",
@@ -493,7 +568,7 @@
"skill" : "archery",
"ammo" : "arrow",
"weight" : 1360,
"volume" : 12,
"volume" : 10,
"bashing" : 6,
"cutting" : 0,
"to_hit" : 0,
@@ -649,7 +724,7 @@
"skill" : "archery",
"ammo" : "arrow",
"weight" : 680,
"volume" : 8,
"volume" : 14,
"bashing" : 10,
"cutting" : 0,
"to_hit" : 0,
@@ -701,7 +776,7 @@
"skill" : "archery",
"ammo" : "bolt",
"weight" : 900,
"volume" : 4,
"volume" : 2,
"bashing" : 4,
"cutting" : 0,
"to_hit" : -0,
@@ -753,7 +828,7 @@
"skill" : "archery",
"ammo" : "bolt",
"weight" : 6803,
"volume" : 40,
"volume" : 20,
"bashing" : 20,
"cutting" : 0,
"to_hit" : -1,
@@ -836,6 +911,50 @@
"dispersion":0,
"count":10
},
{ "type" : "AMMO",
"id" : "throwing_knife",
"price" : 100,
"name" : "throwing knife",
"symbol" : ";",
"color" : "light_gray",
"description" : "A thin and flat knife made for throwing. Its ineffective cutting edge and odd shape makes it unsuitable for use as a tool.",
"material" : "steel",
"volume" : 1,
"weight" : 268,
"bashing" : 1,
"cutting" : 12,
"to_hit" : 0,
"ammo_type" : "NULL",
"casing" : "NULL",
"damage" : 0,
"pierce" : 0,
"range" : 0,
"dispersion" : 0,
"recoil" : 0,
"count" : 5
},
{ "type" : "AMMO",
"id" : "throwing_axe",
"price" : 110,
"name" : "throwing axe",
"symbol" : ";",
"color" : "light_gray",
"description" : "A lightweight hatchet made for throwing. Its ineffective cutting edge and light weight makes it unsuitable for use as a tool.",
"material" : ["iron", "wood"],
"volume" : 3,
"weight" : 792,
"bashing" : 6,
"cutting" : 16,
"to_hit" : 0,
"ammo_type" : "NULL",
"casing" : "NULL",
"damage" : 0,
"pierce" : 0,
"range" : 0,
"dispersion" : 0,
"recoil" : 0,
"count" : 3
},
{
"id":"arrow_plastic",
"type":"AMMO",
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
@@ -228,12 +228,12 @@
"description": "A half-litre glass jar with a metal screw top lid, used for canning.",
"price": 2500,
"weight": 264,
"volume": 1,
"volume": 2,
"bashing": 8,
"cutting": 0,
"to_hit": 1,
"material": "glass",
"contains": 1,
"contains": 2,
"flags": ["RIGID", "SEALS", "WATERTIGHT"]
},
{
@@ -245,12 +245,29 @@
"description": "A three-litre glass jar with a metal screw top lid, used for canning.",
"price": 3000,
"weight": 365,
"volume": 3,
"volume": 12,
"bashing": 10,
"cutting": 0,
"to_hit": 1,
"material": "glass",
"contains": 5,
"contains": 12,
"flags": ["RIGID", "SEALS", "WATERTIGHT"]
},
{
"id": "flask_hip",
"type": "CONTAINER",
"symbol": ")",
"color": "light_gray",
"name": "hip flask",
"description": "A 250 ml metal flask with a hinged screw-on lid, commonly used to discreetly transport alcohol.",
"price": 2500,
"weight": 120,
"volume": 1,
"bashing": 8,
"cutting": 0,
"to_hit": 1,
"material": "steel",
"contains": 1,
"flags": ["RIGID", "SEALS", "WATERTIGHT"]
},
{
@@ -270,5 +287,21 @@
"material":"plastic",
"contains":1,
"flags":[ "RIGID" ]
},
{
"id": "wrapper",
"type": "CONTAINER",
"symbol": ",",
"color": "light_gray",
"name": "paper wrapper",
"description": "Just a piece of butcher's paper. Good for starting fires.",
"price": 1,
"weight": 3,
"volume": 1,
"bashing": -8,
"cutting": 0,
"to_hit": -2,
"contains": 10,
"material": "paper"
}
]
@@ -1,5 +1,6 @@
[
{ "id":"GUITAR",
{ "type":"INSTRUMENT",
"id":"GUITAR",
"symbol": "$",
"color": "red",
"name":"Guitar",
@@ -16,7 +17,8 @@
}
]
},
{ "id":"DRUM",
{ "type":"INSTRUMENT",
"id":"DRUM",
"symbol": "o",
"color": "green",
"name":"Bongo",
File diff suppressed because it is too large Load Diff
@@ -3,12 +3,12 @@
"type": "GUNMOD",
"symbol": ":",
"color": "green",
"name":".45 caliber retool",
"name":".45 caliber conversion kit",
"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.",
"price": 480,
"material": "steel",
"weight": 226,
"volume": 2,
"volume": 1,
"bashing": 3,
"cutting": 0,
"to_hit": -1,
@@ -32,7 +32,7 @@
"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" : 510,
"to_hit" : 2,
"to_hit" : 1,
"color" : "dark_gray",
"symbol" : ":",
"material" : ["steel", "plastic"],
@@ -267,7 +267,7 @@
"symbol" : ":",
"material" : ["steel", "plastic"],
"mod_targets" : ["smg", "rifle"],
"volume" : 0,
"volume" : 1,
"bashing" : 0,
"cutting" : 0,
"burst_modifier" : 6,
@@ -302,7 +302,7 @@
{
"type" : "GUNMOD",
"id" : "retool_9mm",
"name" : "9mm caliber retool",
"name" : "9mm caliber conversion kit",
"weight" : 114,
"color" : "green",
"burst_modifier" : 0,
@@ -326,7 +326,7 @@
{
"type" : "GUNMOD",
"id" : "retool_22",
"name" : ".22 caliber retool",
"name" : ".22 caliber conversion kit",
"weight" : 114,
"color" : "green",
"burst_modifier" : 0,
@@ -350,7 +350,7 @@
{
"type" : "GUNMOD",
"id" : "retool_57",
"name" : "5.7mm caliber retool",
"name" : "5.7mm caliber conversion kit",
"weight" : 114,
"color" : "green",
"burst_modifier" : 0,
@@ -374,7 +374,7 @@
{
"type" : "GUNMOD",
"id" : "retool_46",
"name" : "4.6mm caliber retool",
"name" : "4.6mm caliber conversion kit",
"weight" : 114,
"color" : "green",
"burst_modifier" : 0,
@@ -398,7 +398,7 @@
{
"type" : "GUNMOD",
"id" : "retool_308",
"name" : ".308 caliber retool",
"name" : ".308 caliber conversion kit",
"weight" : 114,
"color" : "green",
"burst_modifier" : 0,
@@ -422,7 +422,7 @@
{
"type" : "GUNMOD",
"id" : "retool_223",
"name" : ".223 caliber retool",
"name" : ".223 caliber conversion kit",
"weight" : 114,
"color" : "green",
"burst_modifier" : 0,
@@ -458,7 +458,7 @@
"symbol" : ":",
"material" : ["steel", "null"],
"mod_targets" : ["rifle"],
"volume" : 4,
"volume" : 2,
"bashing" : 6,
"cutting" : 0,
"burst_modifier" : 4,
@@ -481,7 +481,7 @@
"symbol" : ":",
"material" : ["steel", "null"],
"mod_targets" : ["rifle"],
"volume" : 1,
"volume" : 2,
"bashing" : 0,
"cutting" : 0,
"burst_modifier" : -99,
@@ -528,7 +528,7 @@
"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,
"volume" : 3,
"cutting" : 0,
"recoil_modifier" : 0,
"damage_modifier" : 0,
@@ -542,10 +542,10 @@
"id" : "bayonet",
"name" : "bayonet",
"weight" : 387,
"color" : "light_cyan",
"color" : "light_gray",
"burst_modifier" : 0,
"loudness_modifier" : 0,
"to_hit" : -3,
"to_hit" : -1,
"dispersion_modifier" : 0,
"price" : 400,
"clip_size_modifier" : 0,
@@ -553,11 +553,59 @@
"symbol" : ":",
"material" : ["steel", "null"],
"volume" : 2,
"cutting" : 16,
"cutting" : 12,
"flags" : ["NON_STUCK", "SPEAR"],
"recoil_modifier" : 3,
"damage_modifier" : 0,
"mod_targets" : ["shotgun", "smg", "rifle"],
"bashing" : 0,
"ammo_modifier" : "NULL"
},
{
"type" : "GUNMOD",
"id" : "sword_bayonet",
"name" : "sword bayonet",
"weight" : 923,
"color" : "dark_gray",
"burst_modifier" : 0,
"loudness_modifier" : 0,
"to_hit" : 0,
"dispersion_modifier" : 0,
"price" : 500,
"clip_size_modifier" : 0,
"description" : "A sword bayonet is a large slashing weapon that can be attached to the front of a shotgun or rifle, allowing a melee attack to deal cutting damage. The added length increases recoil substantially.",
"symbol" : ":",
"material" : ["steel", "null"],
"volume" : 3,
"cutting" : 18,
"flags" : ["NON_STUCK", "CHOP"],
"recoil_modifier" : 7,
"damage_modifier" : 0,
"mod_targets" : ["shotgun", "rifle"],
"bashing" : 0,
"ammo_modifier" : "NULL"
},
{
"type" : "GUNMOD",
"id" : "pistol_bayonet",
"name" : "pistol bayonet",
"weight" : 122,
"color" : "light_gray",
"burst_modifier" : 0,
"loudness_modifier" : 0,
"to_hit" : -4,
"dispersion_modifier" : 1,
"price" : 400,
"clip_size_modifier" : 0,
"description" : "A pistol bayonet is a stabbing weapon that can be attached to the front of a handgun, allowing a melee attack to deal piercing damage. The added length reduces the gun's overall handling somewhat.",
"symbol" : ":",
"material" : ["steel", "null"],
"volume" : 1,
"cutting" : 6,
"recoil_modifier" : 3,
"damage_modifier" : 0,
"mod_targets" : ["pistol"],
"bashing" : 0,
"flags" : ["STAB"],
"ammo_modifier" : "NULL"
},
@@ -576,7 +624,7 @@
"description" : "A miniaturized shotgun with 2 barrels, which can be mounted under the barrel of many rifles. It allows two shotgun shells to be loaded and fired.",
"symbol" : ":",
"material" : ["steel", "null"],
"volume" : 2,
"volume" : 3,
"cutting" : 0,
"recoil_modifier" : 0,
"damage_modifier" : 0,
@@ -717,7 +765,7 @@
"symbol" : ":",
"material" : ["plastic", "steel"],
"mod_targets" : ["smg", "rifle","shotgun"],
"volume" : 2,
"volume" : 1,
"bashing" : 0,
"cutting" : 0,
"burst_modifier" : 0,
@@ -740,7 +788,7 @@
"symbol" : ":",
"material" : ["plastic", "steel"],
"mod_targets" : ["rifle"],
"volume" : 3,
"volume" : 2,
"bashing" : 0,
"cutting" : 0,
"burst_modifier" : 0,
@@ -758,18 +806,18 @@
"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,
"to_hit" : -1,
"color" : "light_gray",
"symbol" : ":",
"material" : ["steel", "null"],
"mod_targets" : ["smg", "rifle", "pistol", "shotgun"],
"volume" : 2,
"volume" : 0,
"bashing" : 0,
"cutting" : 0,
"burst_modifier" : 0,
"recoil_modifier" : -4,
"price" : 720,
"loudness_modifier" : 6
"loudness_modifier" : 8
},
{
"type" : "GUNMOD",
@@ -839,6 +887,28 @@
"recoil_modifier" : -5,
"price" : 380,
"loudness_modifier" : 0
},
{
"type" : "GUNMOD",
"id" : "bipod",
"name" : "bipod",
"clip_size_modifier" : 0,
"damage_modifier" : 0,
"ammo_modifier" : "NULL",
"description" : "Bipods are commonly used on rifles and machine guns to provide a forward rest and reduce motion. Aside from increased weight, there are no drawbacks.",
"weight" : 400,
"to_hit" : -1,
"color" : "brown",
"symbol" : ":",
"material" : "steel",
"mod_targets" : "rifle",
"volume" : 2,
"bashing" : 10,
"cutting" : 0,
"burst_modifier" : 0,
"recoil_modifier" : -1,
"dispersion_modifier" : -3,
"price" : 680,
"loudness_modifier" : 0
}
]
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
+470
View File
@@ -0,0 +1,470 @@
[
{
"type":"GENERIC",
"id" : "frame",
"name" : "steel frame",
"description" : "A large frame made of steel. Useful for crafting.",
"weight" : 13607,
"to_hit" : -5,
"color" : "cyan",
"symbol" : "]",
"material" : ["steel", "null"],
"techniques" : ["DEF_DISARM"],
"volume" : 60,
"bashing" : 20,
"cutting" : 0,
"price" : 55
},
{
"type":"GENERIC",
"id" : "seat",
"name" : "seat",
"description" : "A soft car seat covered with leather.",
"weight" : 9071,
"to_hit" : -4,
"color" : "red",
"symbol" : "0",
"material" : ["leather", "null"],
"volume" : 30,
"bashing" : 4,
"cutting" : 0,
"price" : 250
},
{
"type":"GENERIC",
"id" : "saddle",
"name" : "saddle",
"description" : "A leather-covered seat designed to be straddled.",
"weight" : 300,
"to_hit" : -4,
"color" : "red",
"symbol" : "0",
"material" : ["plastic", "null"],
"volume" : 5,
"bashing" : 2,
"cutting" : 0,
"price" : 25
},
{
"type":"GENERIC",
"id" : "muffler",
"name" : "muffler",
"description" : "A muffler from a car. Very unwieldy as a weapon. Useful in a few crafting recipes.",
"weight" : 9525,
"to_hit" : -10,
"color" : "light_gray",
"symbol" : "/",
"material" : ["iron", "null"],
"techniques" : ["WBLOCK_2"],
"volume" : 14,
"bashing" : 19,
"cutting" : 0,
"price" : 30
},
{
"type":"GENERIC",
"id" : "vehicle_controls",
"name" : "vehicle controls",
"description" : "A set of various vehicle controls. Useful for crafting.",
"weight" : 2721,
"to_hit" : -4,
"color" : "light_cyan",
"symbol" : "$",
"material" : ["plastic", "steel"],
"volume" : 12,
"bashing" : 2,
"cutting" : 0,
"price" : 400
},
{
"type":"GENERIC",
"id" : "motor",
"name" : "electric motor",
"description" : "A powerful electric motor. Useful for crafting.",
"weight" : 9071,
"to_hit" : 0,
"color" : "light_cyan",
"symbol" : ",",
"material" : ["iron", "null"],
"volume" : 6,
"bashing" : 4,
"cutting" : 0,
"price" : 120
},
{
"type":"GENERIC",
"id" : "motor_large",
"name" : "large electric motor",
"description" : "A large and very powerful electric motor. Useful for crafting.",
"weight" : 73708,
"to_hit" : -3,
"color" : "light_cyan",
"symbol" : ":",
"material" : ["iron", "null"],
"volume" : 15,
"bashing" : 9,
"cutting" : 0,
"price" : 220
},
{
"type":"GENERIC",
"id" : "plasma_engine",
"name" : "plasma engine",
"description" : "High technology engine, working on hydrogen fuel.",
"weight" : 39689,
"to_hit" : -2,
"color" : "light_cyan",
"symbol" : ":",
"material" : ["steel", "null"],
"volume" : 12,
"bashing" : 7,
"cutting" : 0,
"price" : 900
},
{
"type":"GENERIC",
"id" : "foot_crank",
"name" : "foot crank",
"description" : "The pedal and gear assembly from a bicycle.",
"weight" : 816,
"to_hit" : -1,
"color" : "light_gray",
"symbol" : ":",
"material" : ["iron", "null"],
"volume" : 2,
"bashing" : 10,
"cutting" : 0,
"price" : 90
},
{
"type":"GENERIC",
"id" : "metal_tank",
"name" : "metal tank",
"description" : "A metal tank for holding liquids. Useful for crafting.",
"weight" : 2834,
"to_hit" : -2,
"color" : "light_cyan",
"symbol" : "}",
"material" : ["steel", "null"],
"volume" : 18,
"bashing" : 3,
"cutting" : 0,
"price" : 40
},
{
"type":"GENERIC",
"id" : "small_storage_battery",
"name" : "small storage battery",
"description" : "A small storage battery. Useful for crafting.",
"weight" : 230,
"to_hit" : -2,
"color" : "light_cyan",
"symbol" : ":",
"material" : ["iron", "null"],
"volume" : 2,
"bashing" : 1,
"cutting" : 0,
"price" : 50
},
{
"type":"GENERIC",
"id" : "battery_motorbike",
"name" : "motorbike battery",
"description" : "A 12v lead-acid battery used to power smaller vehicles' electrical systems.",
"weight" : 13250,
"to_hit" : -2,
"color" : "light_cyan",
"symbol" : ":",
"material" : ["iron", "null"],
"volume" : 3,
"bashing" : 2,
"cutting" : 0,
"price" : 20
},
{
"type":"GENERIC",
"id" : "battery_car",
"name" : "car battery",
"description" : "A 12v lead-acid battery used to power car electrical systems.",
"weight" : 17640,
"to_hit" : -2,
"color" : "light_cyan",
"symbol" : ":",
"material" : ["iron", "null"],
"volume" : 4,
"bashing" : 3,
"cutting" : 0,
"price" : 40
},
{
"type":"GENERIC",
"id" : "battery_truck",
"name" : "truck battery",
"description" : "A large 12v lead-acid battery used to power truck electrical systems.",
"weight" : 20000,
"to_hit" : -2,
"color" : "light_cyan",
"symbol" : ":",
"material" : ["iron", "null"],
"volume" : 6,
"bashing" : 5,
"cutting" : 0,
"price" : 60
},
{
"type":"GENERIC",
"id" : "storage_battery",
"name" : "storage battery",
"description" : "A large storage battery. Useful for crafting.",
"weight" : 22679,
"to_hit" : -2,
"color" : "light_cyan",
"symbol" : ":",
"material" : ["iron", "null"],
"volume" : 8,
"bashing" : 6,
"cutting" : 0,
"price" : 80
},
{
"type":"GENERIC",
"id" : "minireactor",
"name" : "minireactor",
"description" : "A small portable plutonium reactor. Handle with great care!",
"weight" : 27215,
"to_hit" : -4,
"color" : "light_cyan",
"symbol" : ":",
"material" : ["steel", "null"],
"volume" : 6,
"bashing" : 7,
"cutting" : 0,
"price" : 900
},
{
"type":"GENERIC",
"id" : "solar_panel",
"name" : "solar panel",
"description" : "Electronic device that can convert solar radiation into electric power. Useful for crafting.",
"weight" : 14000,
"to_hit" : -4,
"color" : "yellow",
"symbol" : "]",
"material" : ["glass", "null"],
"volume" : 12,
"bashing" : 1,
"cutting" : 0,
"price" : 900
},
{
"type":"GENERIC",
"id" : "reinforced_solar_panel",
"name" : "reinforced solar panel",
"description" : "A solar panel that has been covered with a pane of reinforced glass to protect the delicate solar cells from zombies or errant baseballs. Useful for crafting.",
"weight" : 24143,
"to_hit" : -4,
"color" : "light_blue",
"symbol" : "]",
"material" : ["glass", "steel"],
"volume" : 26,
"bashing" : 1,
"cutting" : 0,
"price" : 900
},
{
"type": "GENERIC",
"id": "minifridge",
"name": "minifridge",
"description": "A very small fridge for keeping food cool, but without electricity it's just a very heavy box with shelves inside.",
"weight": 31752,
"to_hit": -8,
"color": "light_blue",
"symbol": "]",
"material": "steel",
"volume": 20,
"bashing": 8,
"cutting": 0,
"price": 600
},
{
"type":"GENERIC",
"id" : "solar_cell",
"name" : "solar cell",
"description" : "A small electronic device that can convert solar radiation into electric power. Useful for crafting.",
"weight" : 1000,
"to_hit" : -4,
"color" : "yellow",
"symbol" : ";",
"material" : ["glass", "null"],
"volume" : 1,
"bashing" : 1,
"cutting" : 0,
"price" : 50
},
{
"type":"GENERIC",
"id" : "sheet_metal",
"name" : "sheet metal",
"description" : "A thin sheet of metal.",
"weight" : 1000,
"to_hit" : -2,
"color" : "light_cyan",
"symbol" : "]",
"material" : ["steel", "null"],
"volume" : 4,
"bashing" : 5,
"cutting" : 0,
"price" : 60
},
{
"type":"GENERIC",
"id" : "steel_plate",
"name" : "steel plating",
"description" : "A piece of armor plating made of steel.",
"weight" : 12880,
"to_hit" : -1,
"color" : "light_cyan",
"symbol" : "]",
"material" : ["steel", "null"],
"volume" : 12,
"bashing" : 6,
"cutting" : 0,
"price" : 120
},
{
"type":"GENERIC",
"id" : "alloy_plate",
"name" : "superalloy plating",
"description" : "A piece of armor plating made of sturdy superalloy.",
"weight" : 10800,
"to_hit" : -1,
"color" : "light_cyan",
"symbol" : "]",
"material" : ["steel", "null"],
"volume" : 12,
"bashing" : 6,
"cutting" : 0,
"price" : 185
},
{
"type":"GENERIC",
"id" : "alloy_sheet",
"name" : "superalloy sheet",
"description" : "A sheet sturdy superalloy, incredibly hard, yet incredibly malleable.",
"weight" : 900,
"to_hit" : -2,
"color" : "light_cyan",
"symbol" : ",",
"material" : ["steel", "null"],
"volume" : 2,
"bashing" : -2,
"cutting" : 0,
"price" : 85
},
{
"type":"GENERIC",
"id" : "spiked_plate",
"name" : "spiked plating",
"description" : "A piece of armor plating made of steel. It is covered by menacing spikes.",
"weight" : 12240,
"to_hit" : -1,
"color" : "light_cyan",
"symbol" : "]",
"material" : ["steel", "null"],
"volume" : 14,
"bashing" : 6,
"cutting" : 3,
"flags" : ["STAB"],
"price" : 185
},
{
"type":"GENERIC",
"id" : "hard_plate",
"name" : "hard plating",
"description" : "A piece of very thick armor plating made of steel.",
"weight" : 32640,
"to_hit" : -1,
"color" : "light_cyan",
"symbol" : "]",
"material" : ["steel", "null"],
"volume" : 12,
"bashing" : 6,
"cutting" : 0,
"price" : 160
},
{
"type":"GENERIC",
"id" : "kitchen_unit",
"name" : "RV kitchen unit",
"description" : "A vehicle mountable electric range and sink unit with integrated tool storage for cooking utensils.",
"weight" : 102058,
"to_hit" : -2,
"color" : "light_cyan",
"symbol" : "&",
"material" : ["steel", "null"],
"volume" : 80,
"bashing" : 0,
"cutting" : 0,
"price" : 400
},
{
"type":"GENERIC",
"id" : "weldrig",
"name" : "vehicle welding rig",
"description" : "A welding rig made to run off a vehicle's storage battery. It has a soldering iron attachment for delicate work, and a compartment to store your extra tools in.",
"weight" : 16789,
"to_hit" : -2,
"color" : "light_red",
"symbol" : "&",
"material" : ["steel", "null"],
"volume" : 80,
"bashing" : 0,
"cutting" : 0,
"price" : 400
},
{
"type":"GENERIC",
"id" : "craftrig",
"name" : "FOODCO kitchen buddy",
"description" : "Assembled from a set of instructions you found in an old book of DIY projects, the *FOODCO kitchen buddy* claims to be *the perfect solution to all your home-cooking needs!*. While it is surprisingly handy for vacuum-sealing as well as dehydrating food, the cheery sales pitch neglected to mention A - how awkward the damn thing is, and B - how it doesn't take batteries. You're going to have to weld it to a vehicle, or something else with a supply of electricity, if you want to use it. In addition to the cooking features, it also has a water-purification system, a drawer for holding extra tools, and for some insane reason, a press and die set for hand-loading ammunition.",
"weight" : 27976,
"to_hit" : -2,
"color" : "light_green",
"symbol" : "&",
"material" : ["steel", "null"],
"volume" : 111,
"bashing" : 0,
"cutting" : 0,
"price" : 400
},
{
"type":"GENERIC",
"id": "light_emergency_red",
"name": "emergency vehicle light (red)",
"description": "One of the red-colored lights from the top of an emergency services vehicle. When turned on, the lights rotate to shine in all directions.",
"weight": 500,
"to_hit": 1,
"color": "red",
"symbol": ";",
"material": ["plastic", "iron"],
"volume": 4,
"bashing": 1,
"cutting": 0,
"price": 400
},
{
"type":"GENERIC",
"id": "light_emergency_blue",
"name": "emergency vehicle light (blue)",
"description": "One of the blue-colored lights from the top of an emergency services vehicle. When turned on, the lights rotate to shine in all directions.",
"weight": 500,
"to_hit": 1,
"color": "blue",
"symbol": ";",
"material": ["plastic", "iron"],
"volume": 4,
"bashing": 1,
"cutting": 0,
"price": 400
}
]
+171
View File
@@ -0,0 +1,171 @@
[
{
"type" : "lab_note",
"text" : "Our chemical department has made great strides in the production of a concentrated mutagen, derived from samples of PE012."
},{
"type" : "lab_note",
"text" : "Our chemical department has perfected an untargeted stem cell treatment. Consumption of the treatment will reverse the effects of mutation, and may even cure congenital defects. This substance has been denoted PE018."
},{
"type" : "lab_note",
"text" : "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."
},{
"type" : "lab_note",
"text" : "The chemical department has come through with a stable mutagen cocktail. PE050 shows promise as an all-around genetic enhancement, with the worst side effect being digestive upset. The lack of macro-scale physical changes makes it ideal for both military and civilian applications."
},{
"type" : "lab_note",
"text" : "Dr. Dionne's team has come up with an ambitious mutagenic cocktail, dubbed PE065. Though its effects are wildly polymorphic and unstable, to say the least, he suggests that several such mutants could effectively check the spread of reanimated XE037 infectees. We are looking into implementation methodology."
},{
"type" : "lab_note",
"text" : "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."
},{
"type" : "lab_note",
"text" : "The research team headed by Dr. Isha has produced a concentrated form of mutagen that shows promising results for the treatment of many forms of disease. Testing reveals that it inhibits the body's pain responses while bolstering the immune system and natural regenerative capabilities, though a few troubling behavioral side effects have been reported."
},{
"type" : "lab_note",
"text" : "Our research on teleportation has ground to a halt. For some reason, the creation of a long-range transportation device eludes us, and one can transfer no further than 30 meters."
},{
"type" : "lab_note",
"text" : "I don't know how it happened, but a janitor managed to activate the portal while cleaning the lab, shifting in an assortment of prehistoric fauna. Security was called in immediately but was unable to save the janitor from being torn apart. By the time the confusion settled, all the fauna had been terminated."
},{
"type" : "lab_note",
"text" : "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."
},{
"type" : "lab_note",
"text" : "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."
},{
"type" : "lab_note",
"text" : "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."
},{
"type" : "lab_note",
"text" : "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."
},{
"type" : "lab_note",
"text" : "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."
},{
"type" : "lab_note",
"text" : "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."
},{
"type" : "lab_note",
"text" : "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."
},{
"type" : "lab_note",
"text" : "Several of the more advanced specimens we have retrieved show stunning similarity to XE037. XE142 and XE157 in particular show the same amorphous, slime-like structure as XE037, suggesting a close genetic relationship."
},{
"type" : "lab_note",
"text" : "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."
},{
"type" : "lab_note",
"text" : "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."
},{
"type" : "lab_note",
"text" : "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."
},{
"type" : "lab_note",
"text" : "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."
},{
"type" : "lab_note",
"text" : "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."
},{
"type" : "lab_note",
"text" : "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."
},{
"type" : "lab_note",
"text" : "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."
},{
"type" : "lab_note",
"text" : "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."
},{
"type" : "lab_note",
"text" : "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."
},{
"type" : "lab_note",
"text" : "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."
},{
"type" : "lab_note",
"text" : "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."
},{
"type" : "lab_note",
"text" : "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."
},{
"type" : "lab_note",
"text" : "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."
},{
"type" : "lab_note",
"text" : "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."
},{
"type" : "lab_note",
"text" : "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."
},{
"type" : "lab_note",
"text" : "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."
},{
"type" : "lab_note",
"text" : "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."
},{
"type" : "lab_note",
"text" : "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."
},{
"type" : "lab_note",
"text" : "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."
},{
"type" : "lab_note",
"text" : "Exposure to radiation of test subject T3D indicates stimulation of internal XE037 deposits and a temporary lifting of the mammalian stasis condition."
},{
"type" : "lab_note",
"text" : "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."
},{
"type" : "lab_note",
"text" : "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."
},{
"type" : "lab_note",
"text" : "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."
},{
"type" : "lab_note",
"text" : "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."
},{
"type" : "lab_note",
"text" : "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."
},{
"type" : "lab_note",
"text" : "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."
},{
"type" : "lab_note",
"text" : "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."
},{
"type" : "lab_note",
"text" : "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."
},{
"type" : "lab_note",
"text" : "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."
},{
"type" : "lab_note",
"text" : "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."
},{
"type" : "lab_note",
"text" : "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."
},{
"type" : "lab_note",
"text" : "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."
},{
"type" : "lab_note",
"text" : "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."
},{
"type" : "lab_note",
"text" : "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."
},{
"type" : "lab_note",
"text" : "An alarming discovery has been made. A colony of XE037 has formed nearly a half mile from the laboratory. It is unclear how it escaped; it is quite possible that it is in the ground water now."
},{
"type" : "lab_note",
"text" : "An emergency meeting was held today to discuss the possible implications of widespread XE037 contamination. It was agreed that neutralization must be instated immediately to prevent a catastrophic event."
},{
"type" : "lab_note",
"text" : "It has begun. The XE037 contamination has spread for miles, and those who have since deceased have revivified. It is my fear that extremely large populations will be decimated by this pandemic. We must find a way to remove XE037 from revivified bodies."
},{
"type" : "lab_note",
"text" : "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."
},{
"type" : "lab_note",
"text" : "Today we found our solution, quite by accident. It was found that XE037 is completely removed from a revivified body following a series of extremely-high energy 4th dimensional transpositions. Unfortunately, this invariably allows subplane life forms to pass into the prime plan. The cure is worse than the disease."
}
]
+445
View File
@@ -0,0 +1,445 @@
[
{
"type" : "martial_art",
"id" : "style_none",
"name" : "No style",
"description" : "Not a martial art, this is just plain old punching and kicking.",
"arm_block" : -1,
"leg_block" : -1
},{
"type" : "martial_art",
"id" : "style_karate",
"name" : "Karate",
"description" : "Karate is a popular martial art, originating from Japan. It focuses on rapid, precise attacks, blocks, and fluid movement. A successful hit allows you an extra dodge and two extra blocks on the following round.",
"arm_block" : 2,
"onhit_buffs" : [
{
"id" : "karate_hit_buff",
"name" : "Karate Hit",
"unarmed_allowed" : true,
"min_unarmed" : 0,
"buff_duration" : 3,
"description" : "+1 Dodges, +2 Blocks",
"bonus_dodges" : 1,
"bonus_blocks" : 2
}
],
"techniques" : ["tec_karate_rapid", "tec_karate_precise"]
},{
"type" : "martial_art",
"id" : "style_aikido",
"name" : "Aikido",
"description" : "Aikido is a Japanese martial art focused on self-defense, while minimizing injury to the attacker. It uses defensive throws and disarms. Damage done while using this technique is halved, but pain inflicted is doubled.",
"static_buffs" : [
{
"id" : "aikido_half_damage",
"name" : "Aikido",
"unarmed_allowed" : true,
"bash_mult" : 0.5,
"min_unarmed" : 0,
"buff_duration" : 2,
"description" : "Half damage to enemies"
}
],
"techniques" : [
"tec_aikido_feint",
"tec_aikido_disarm",
"tec_aikido_throw"
]
},{
"type" : "martial_art",
"id" : "style_judo",
"name" : "Judo",
"description" : "Judo is a martial art that focuses on grabs and throws, both defensive and offensive. It also focuses on recovering from throws; while using judo, you will not lose any turns to being thrown or knocked down.",
"static_buffs" : [
{
"id" : "judo_recovery",
"name" : "Judo",
"unarmed_allowed" : true,
"min_unarmed" : 0,
"buff_duration" : 2,
"throw_immune" : true,
"description" : "Immune to throws and knockdowns"
}
],
"techniques" : ["tec_judo_grab", "tec_judo_throw"]
},{
"type" : "martial_art",
"id" : "style_tai_chi",
"name" : "Tai Chi",
"description" : "Though tai chi is often seen as a form of mental and physical exercise, it is a legitimate martial art, focused on self-defense. Its ability to absorb the force of an attack makes your Perception decrease damage further on a block.",
"arm_block" : 1,
"static_buffs" : [
{
"id" : "tai_chi_block",
"name" : "Tai Chi",
"unarmed_allowed" : true,
"min_unarmed" : 0,
"buff_duration" : 2,
"block_per" : 0.8,
"description" : "Perception decreases damage when blocking"
}
],
"techniques" : ["tec_taichi_disarm", "tec_taichi_precise"]
},{
"type" : "martial_art",
"id" : "style_capoeira",
"name" : "Capoeira",
"description" : "A dance-like style with its roots in Brazilian slavery, capoeira is focused on fluid movement and sweeping kicks. Moving a tile will boost attack and damage and attacking boosts dodge. These bonuses stack up to three times each.",
"onhit_buffs" : [
{
"id" : "capoeira_hit_buff",
"name" : "Capoeira Tempo",
"description" : "+1 dodge and +1 blocks per stack",
"unarmed_allowed" : true,
"min_unarmed" : 3,
"buff_duration" : 5,
"max_stacks" : 3,
"bonus_blocks" : 1,
"dodge" : 1
}
],
"onmove_buffs" : [
{
"id" : "capoeira_move_buff",
"name" : "Capoeira Momentum",
"description" : "+2 bash and +1 hit per stack",
"unarmed_allowed" : true,
"min_unarmed" : 2,
"buff_duration" : 3,
"max_stacks" : 3,
"bash" : 2,
"hit" : 1
}
],
"techniques" : ["tec_capoeira_feint"]
},{
"type" : "martial_art",
"id" : "style_krav_maga",
"name" : "Krav Maga",
"description" : "Originating in Israel, Krav Maga is based on taking down an enemy quickly and effectively. It focuses on applicable attacks rather than showy or complex moves. Popular among police and armed forces everywhere.",
"arm_block" : 2,
"leg_block" : 4,
"static_buffs" : [
{
"id" : "krav_maga_static",
"name" : "Krav Maga",
"unarmed_allowed" : true,
"min_unarmed" : 0,
"buff_duration" : 2,
"bash_str" : 0.15,
"description" : "Slightly increased unarmed damage"
}
],
"techniques" : [
"tec_krav_maga_rapid",
"tec_krav_maga_feint",
"tec_krav_maga_precise",
"tec_krav_maga_disarm",
"tec_krav_maga_grab"
]
},{
"type" : "martial_art",
"id" : "style_muay_thai",
"name" : "Muay Thai",
"description" : "Also referred to as the \"Art of 8 Limbs,\" Muay Thai is a popular fighting technique from Thailand that uses powerful strikes. Your strikes are more powerful with high strength and weaker with low strength, and can momentarily disorient enemies.",
"arm_block" : 3,
"leg_block" : 4,
"static_buffs" : [
{
"id" : "muay_thai_static",
"name" : "Muay Thai",
"unarmed_allowed" : true,
"bash" : -5,
"bash_str" : 0.5,
"description" : "Attacks scale better with strength"
}
],
"techniques" : [
"tec_muay_thai_elbow",
"tec_muay_thai_kick",
"tec_muay_thai_knee"
]
},{
"type" : "martial_art",
"id" : "style_ninjutsu",
"name" : "Ninjutsu",
"description" : "Ninjutsu is a martial art and set of tactics used by ninja in feudal Japan. It focuses on rapid, precise, silent strikes. Ninjutsu is entirely silent. It also provides small combat bonuses the turn after moving a tile.",
"arm_block" : 3,
"static_buffs" : [
{
"id" : "ninjutsu_static",
"name" : "Ninjutsu",
"unarmed_allowed" : true,
"melee_allowed" : true,
"quiet" : true,
"description" : "Silent melee attacks"
}
],
"techniques" : ["tec_ninjutsu_precise"]
},{
"type" : "martial_art",
"id" : "style_taekwondo",
"name" : "Taekwondo",
"description" : "Taekwondo is the national sport of Korea, and was used by the South Korean army in the 20th century. Focused on kicks and punches, it also includes strength training; your blocks absorb extra damage the stronger you are.",
"arm_block" : 2,
"leg_block" : 3,
"static_buffs" : [
{
"id" : "taekwondo_static",
"name" : "Taekwondo",
"unarmed_allowed" : true,
"block_str" : 0.8,
"description" : "Strength decreases damage when blocking"
}
],
"techniques" : [
"tec_taekwondo_precise",
"tec_taekwondo_push",
"tec_taekwondo_sweep"
]
},{
"type" : "martial_art",
"id" : "style_zui_quan",
"name" : "Zui Quan",
"description": "AKA \"drunken boxing,\" Zui Quan imitates the movement of a drunk to confuse the enemy. The turn after you successfully attack, you may dodge any number of attacks with no penalty.",
"onhit_buffs" : [
{
"id" : "zuiquan_hit_buff",
"name" : "Drunk Dodging",
"description" : "Unlimited dodges after successful hit",
"unarmed_allowed" : true,
"dodges_bonus" : 50
}
],
"techniques" : [
"tec_zuiquan_feint",
"tec_counter"
]
},{
"type" : "martial_art",
"id" : "style_crane",
"name" : "Crane Kung Fu",
"description": "One of the five Shaolin animal styles. The Crane uses intricate hand techniques and jumping dodges. Dexterity determines the majority of your damage, rather than Strength; you also receive a dodge bonus the turn after moving a tile.",
"arm_block" : 3,
"static_buffs" : [
{
"id" : "crane_static",
"name" : "Crane Precision",
"description" : "Damage bonus from dexterity at the cost of damage from strength.",
"unarmed_allowed" : true,
"bash_str" : -0.2,
"bash_dex" : 0.8
}
],
"onmove_buffs" : [
{
"id" : "crane_move_buff",
"name" : "Crane Flight",
"description" : "+2 Dodge",
"unarmed_allowed" : true,
"min_unarmed" : 2,
"buff_duration" : 1,
"dodge" : 2
}
],
"techniques" : [
"tec_crane_feint",
"tec_crane_break",
"tec_crane_precise"
]
},{
"type" : "martial_art",
"id" : "style_dragon",
"name" : "Dragon Kung Fu",
"description": "One of the five Shaolin animal styles. The Dragon uses fluid movements and hard strikes. Intelligence improves your accuracy and damage dealt, as does moving.",
"arm_block" : 2,
"static_buffs" : [
{
"id" : "dragon_static",
"name" : "Dragon Intelligence",
"description" : "Bonus damage from intelligence.",
"unarmed_allowed" : true,
"bash_int" : 0.8
}
],
"onmove_buffs" : [
{
"id" : "dragon_move_buff",
"name" : "Dragon Flight",
"description" : "+2 Acc/Dam",
"unarmed_allowed" : true,
"min_unarmed" : 2,
"buff_duration" : 1,
"hit" : 2,
"bash" : 2
}
],
"techniques" : [
"tec_dragon_grab",
"tec_counter",
"tec_dragon_sweep",
"tec_dragon_brutal"
]
},{
"type" : "martial_art",
"id" : "style_leopard",
"name" : "Leopard Kung Fu",
"description": "One of the five Shaolin animal styles. The Leopard focuses on rapid, strategically planned strikes. Perception and Inteligence both boost accuracy, and moving further boosts your accuracy.",
"static_buffs" : [
{
"id" : "leopard_static",
"name" : "Leopard Strategy",
"description" : "Perception and intelligence provide a bonus to hit.",
"unarmed_allowed" : true,
"hit_per" : 0.2,
"hit_int" : 0.2
}
],
"onmove_buffs" : [
{
"id" : "leopard_move_buff",
"name" : "Leopard Stalk",
"description" : "+2 Accuracy",
"unarmed_allowed" : true,
"min_unarmed" : 2,
"buff_duration" : 1,
"hit" : 2
}
],
"techniques" : [
"tec_leopard_rapid",
"tec_counter",
"tec_leopard_precise"
]
},{
"type" : "martial_art",
"id" : "style_tiger",
"name" : "Tiger Kung Fu",
"description": "One of the five Shaolin animal styles. The Tiger focuses on relentless attacks above all else. Your Strength determines your accuracy, and your attacks do increasing damage as you continue attacking.",
"static_buffs" : [
{
"id" : "tiger_static",
"name" : "Tiger Strength",
"description" : "Strength provides additional damage bonus.",
"unarmed_allowed" : true,
"hit_str" : 0.8
}
],
"onhit_buffs" : [
{
"id" : "tiger_hit_buff",
"name" : "Tiger Fury",
"description" : "+3 Bash/atk",
"unarmed_allowed" : true,
"min_unarmed" : 2,
"buff_duration" : 3,
"max_stacks" : 8,
"bash" : 3
}
],
"techniques" : [
"tec_tiger_grab"
]
},{
"type" : "martial_art",
"id" : "style_snake",
"name" : "Snake Kung Fu",
"description": "One of the five Shaolin animal styles. The Snake focuses on sinuous movement and precision strikes. Your Perception iproves yur accuracy and your damage.",
"static_buffs" : [
{
"id" : "snake_static",
"name" : "Snake Sight",
"description" : "Perception provides a bonus to hit.",
"unarmed_allowed" : true,
"hit_per" : 0.8
}
],
"techniques" : [
"tec_snake_rapid",
"tec_snake_feint",
"tec_snake_break",
"tec_snake_precise"
]
},{
"type" : "martial_art",
"id" : "style_centipede",
"name" : "Centipede Kung Fu",
"description": "One of the Five Deadly Venoms. Centipede Style uses an onslaught of rapid strikes. Each attack you land reduces the cost of attacking by 4.",
"arm_block" : 3,
"onhit_buffs" : [
{
"id" : "centipede_hit_buff",
"name" : "Hundred-Hitter",
"description" : "+4 Atk Speed",
"unarmed_allowed" : true,
"min_unarmed" : 1,
"buff_duration" : 3,
"max_stacks" : 8,
"rapid" : 4
}
],
"techniques" : [
"tec_centipede_rapid"
]
},{
"type" : "martial_art",
"id" : "style_scorpion",
"name" : "Scorpion Kung Fu",
"description": "One of the Five Deadly Venoms. Scorpion Style is a mysterious art which uses pincer-like hands and a stinger kick. Critical hits should do massive damage and knock your target back, and we'll fix that as soon as we can.",
"arm_block" : 3,
"static_buffs" : [
{
"id" : "scorpion_static",
"name" : "Scorpion Venom",
"description" : "Flat bonus to damage.",
"unarmed_allowed" : true,
"bash" : 2
}
],
"techniques" : [
"tec_scorpion_precise",
"tec_scorpion_brutal"
]
},{
"type" : "martial_art",
"id" : "style_toad",
"name" : "Toad Kung Fu",
"description": "One of the Five Deadly Venoms. Toad Style will be immensely powerful through its immunity to nearly any weapon, once we get the connection rebuilt. Until then, best not meditate by pausing, though it used to give you armor proportional to your Intelligence and Perception.",
"arm_block" : 3,
"static_buffs" : [
{
"id" : "toad_static",
"name" : "Toad Armor",
"description" : "Perception and intelligence provide a bonus to block.",
"unarmed_allowed" : true,
"block_per" : 0.8,
"block_int" : 0.8
}
],
"techniques" : [
"tec_toad_grab"
]
},{
"type" : "martial_art",
"id" : "style_lizard",
"name" : "Lizard Kung Fu",
"description": "One of the Five Deadly Venoms, and likely to be refactored to a mutation at the next save-compatibility breaker. Lizard Style docuses on using walls to your advantage.",
"arm_block" : 2,
"techniques" : [
"tec_counter"
]
},{
"type" : "martial_art",
"id" : "style_venom_snake",
"name" : "Viper Kung Fu",
"description": "One of the Five Deadly Venoms. Viper Style has a uniqe three-part combo, ehich is supposed to initiate on a critical strike, then chain into piercing damage and a two-handed Viper Strike.",
"techniques" : [
"tec_venom_snake_rapid",
"tec_venom_snake_feint",
"tec_venom_snake_break"
]
}
]
@@ -1,6 +1,7 @@
[
{
"ident" : "null",
"type" : "material",
"ident" : "null",
"name" : "Null",
"bash_resist" : 0,
"cut_resist" : 0,
@@ -11,9 +12,9 @@
"elec_resist" : 0,
"fire_resist" : 0,
"density" : 1
},
{
"ident" : "veggy",
},{
"type" : "material",
"ident" : "veggy",
"name" : "Plant Matter",
"bash_resist" : 1,
"cut_resist" : 1,
@@ -24,9 +25,9 @@
"elec_resist" : 1,
"fire_resist" : 0,
"density" : 4
},
{
"ident" : "flesh",
},{
"type" : "material",
"ident" : "flesh",
"name" : "Flesh",
"bash_resist" : 1,
"cut_resist" : 1,
@@ -37,9 +38,9 @@
"elec_resist" : 1,
"fire_resist" : 0,
"density" : 5
},
{
"ident" : "powder",
},{
"type" : "material",
"ident" : "powder",
"name" : "Powder",
"bash_resist" : 1,
"cut_resist" : 1,
@@ -50,9 +51,9 @@
"elec_resist" : 2,
"fire_resist" : 0,
"density" : 1
},
{
"ident" : "hflesh",
},{
"type" : "material",
"ident" : "hflesh",
"name" : "Human Flesh",
"bash_resist" : 1,
"cut_resist" : 1,
@@ -63,9 +64,9 @@
"elec_resist" : 1,
"fire_resist" : 0,
"density" : 5
},
{
"ident" : "cotton",
},{
"type" : "material",
"ident" : "cotton",
"name" : "Cotton",
"bash_resist" : 1,
"cut_resist" : 1,
@@ -76,9 +77,9 @@
"elec_resist" : 2,
"fire_resist" : 0,
"density" : 3
},
{
"ident" : "wool",
},{
"type" : "material",
"ident" : "wool",
"name" : "Wool",
"bash_resist" : 1,
"cut_resist" : 1,
@@ -89,9 +90,9 @@
"elec_resist" : 2,
"fire_resist" : 0,
"density" : 9
},
{
"ident" : "leather",
},{
"type" : "material",
"ident" : "leather",
"name" : "Leather",
"bash_resist" : 2,
"cut_resist" : 2,
@@ -102,9 +103,9 @@
"elec_resist" : 2,
"fire_resist" : 1,
"density" : 6
},
{
"ident" : "kevlar",
},{
"type" : "material",
"ident" : "kevlar",
"name" : "Kevlar",
"bash_resist" : 2,
"cut_resist" : 4,
@@ -115,9 +116,9 @@
"elec_resist" : 2,
"fire_resist" : 1,
"density" : 10
},
{
"ident" : "fur",
},{
"type" : "material",
"ident" : "fur",
"name" : "Fur",
"bash_resist" : 2,
"cut_resist" : 2,
@@ -128,9 +129,9 @@
"elec_resist" : 2,
"fire_resist" : 0,
"density" : 9
},
{
"ident" : "chitin",
},{
"type" : "material",
"ident" : "chitin",
"name" : "Chitin",
"bash_resist" : 3,
"cut_resist" : 4,
@@ -141,9 +142,9 @@
"elec_resist" : 2,
"fire_resist" : 2,
"density" : 10
},
{
"ident" : "bone",
},{
"type" : "material",
"ident" : "bone",
"name" : "Bone",
"bash_resist" : 2,
"cut_resist" : 3,
@@ -154,9 +155,9 @@
"elec_resist" : 2,
"fire_resist" : 4,
"density" : 7
},
{
"ident" : "stone",
},{
"type" : "material",
"ident" : "stone",
"name" : "Stone",
"bash_resist" : 6,
"cut_resist" : 6,
@@ -167,9 +168,9 @@
"elec_resist" : 2,
"fire_resist" : 2,
"density" : 17
},
{
"ident" : "paper",
},{
"type" : "material",
"ident" : "paper",
"name" : "Paper",
"bash_resist" : 1,
"cut_resist" : 1,
@@ -180,9 +181,9 @@
"elec_resist" : 2,
"fire_resist" : 0,
"density" : 4
},
{
"ident" : "wood",
},{
"type" : "material",
"ident" : "wood",
"name" : "Wood",
"bash_resist" : 3,
"cut_resist" : 2,
@@ -193,9 +194,9 @@
"elec_resist" : 2,
"fire_resist" : 0,
"density" : 4
},
{
"ident" : "plastic",
},{
"type" : "material",
"ident" : "plastic",
"name" : "Plastic",
"bash_resist" : 2,
"cut_resist" : 2,
@@ -206,9 +207,9 @@
"elec_resist" : 2,
"fire_resist" : 0,
"density" : 8
},
{
"ident" : "glass",
},{
"type" : "material",
"ident" : "glass",
"name" : "Glass",
"bash_resist" : 3,
"cut_resist" : 4,
@@ -219,9 +220,9 @@
"elec_resist" : 2,
"fire_resist" : 2,
"density" : 14
},
{
"ident" : "iron",
},{
"type" : "material",
"ident" : "iron",
"name" : "Iron",
"bash_resist" : 4,
"cut_resist" : 4,
@@ -232,9 +233,9 @@
"elec_resist" : 0,
"fire_resist" : 2,
"density" : 52
},
{
"ident" : "steel",
},{
"type" : "material",
"ident" : "steel",
"name" : "Steel",
"bash_resist" : 6,
"cut_resist" : 6,
@@ -245,9 +246,9 @@
"elec_resist" : 0,
"fire_resist" : 2,
"density" : 52
},
{
"ident" : "silver",
},{
"type" : "material",
"ident" : "silver",
"name" : "Silver",
"bash_resist" : 2,
"cut_resist" : 3,
@@ -258,9 +259,9 @@
"elec_resist" : 0,
"fire_resist" : 2,
"density" : 70
},
{
"ident" : "gold",
},{
"type" : "material",
"ident" : "gold",
"name" : "Gold",
"bash_resist" : 1,
"cut_resist" : 1,
File diff suppressed because it is too large Load Diff
+488
View File
@@ -0,0 +1,488 @@
[
{
"type":"monstergroup",
"name" : "GROUP_FOREST",
"default" : "mon_squirrel",
"monsters" : [
{ "monster" : "mon_bat", "freq" : 10, "cost_multiplier" : 2, "pack_size" : [1,8] },
{ "monster" : "mon_bear", "freq" : 4, "cost_multiplier" : 10, "ends" : 72 },
{ "monster" : "mon_bear", "freq" : 4, "cost_multiplier" : 10, "ends" : 168 },
{ "monster" : "mon_bear", "freq" : 4, "cost_multiplier" : 10, "ends" : 672 },
{ "monster" : "mon_bear", "freq" : 4, "cost_multiplier" : 10, "ends" : 2160 },
{ "monster" : "mon_bear", "freq" : 4, "cost_multiplier" : 10 },
{ "monster" : "mon_bobcat", "freq" : 20, "cost_multiplier" : 2 },
{ "monster" : "mon_cat", "freq" : 20, "cost_multiplier" : 10},
{ "monster" : "mon_cat", "freq" : 10, "cost_multiplier" : 10, "pack_size" : [1,8] },
{ "monster" : "mon_chicken", "freq" : 50, "cost_multiplier" : 10, "pack_size" : [1,16] },
{ "monster" : "mon_chipmunk", "freq" : 100, "cost_multiplier" : 0, "pack_size" : [1,2] },
{ "monster" : "mon_cougar", "freq" : 10, "cost_multiplier" : 5 },
{ "monster" : "mon_crow", "freq" : 30, "cost_multiplier" : 0, "pack_size" : [1,14] },
{ "monster" : "mon_deer", "freq" : 20, "cost_multiplier" : 2, "pack_size" : [1,5] },
{ "monster" : "mon_dog", "freq" : 50, "cost_multiplier" : 25, "pack_size" : [1,12] },
{ "monster" : "mon_fox_gray", "freq" : 20, "cost_multiplier" : 0 },
{ "monster" : "mon_fox_red", "freq" : 25, "cost_multiplier" : 0 },
{ "monster" : "mon_groundhog", "freq" : 10, "cost_multiplier" : 5, "pack_size" : [1,6] },
{ "monster" : "mon_hare", "freq" : 30, "cost_multiplier" : 2, "pack_size" : [1,6] },
{ "monster" : "mon_moose", "freq" : 10, "cost_multiplier" : 3 },
{ "monster" : "mon_mosquito", "freq" : 100, "cost_multiplier" : 0, "conditions" : ["TWILIGHT"] },
{ "monster" : "mon_mosquito", "freq" : 50, "cost_multiplier" : 0, "pack_size" : [1,14], "conditions" : ["TWILIGHT"] },
{ "monster" : "mon_rabbit", "freq" : 25, "cost_multiplier" : 0, "pack_size" : [1,5] },
{ "monster" : "mon_shrew", "freq" : 15, "cost_multiplier" : 0 },
{ "monster" : "mon_squirrel_red", "freq" : 35, "cost_multiplier" : 0, "pack_size" : [1,2] },
{ "monster" : "mon_weasel", "freq" : 15, "cost_multiplier" : 5 },
{ "monster" : "mon_wolf", "freq" : 15, "cost_multiplier" : 2, "pack_size" : [2,5] },
{ "monster" : "mon_coyote", "freq" : 30, "cost_multiplier" : 2, "pack_size" : [1,6] },
{ "monster" : "mon_coyote_wolf", "freq" : 15, "cost_multiplier" : 2, "pack_size" : [1,8] },
{ "monster" : "mon_turkey", "freq" : 10, "cost_multiplier" : 2, "pack_size" : [1,18] },
{ "monster" : "mon_raccoon", "freq" : 20, "cost_multiplier" : 0, "pack_size" : [1,3] },
{ "monster" : "mon_opossum", "freq" : 20, "cost_multiplier" : 0, "pack_size" : [1,3] },
{ "monster" : "mon_deer_mouse", "freq" : 20, "cost_multiplier" : 0, "pack_size" : [1,2] },
{ "monster" : "mon_sewer_rat", "freq" : 20, "cost_multiplier" : 0, "pack_size" : [1,3] },
{ "monster" : "mon_black_rat", "freq" : 20, "cost_multiplier" : 0, "pack_size" : [1,5] },
{ "monster" : "mon_rattlesnake", "freq" : 15, "cost_multiplier" : 5 },
{ "monster" : "mon_spider_wolf", "freq" : 15, "cost_multiplier" : 2 },
{ "monster" : "mon_spider_wolf_giant", "freq" : 15, "cost_multiplier" : 5 },
{ "monster" : "mon_spider_jumping", "freq" : 15, "cost_multiplier" : 2 },
{ "monster" : "mon_spider_jumping_giant", "freq" : 15, "cost_multiplier" : 5 },
{ "monster" : "mon_zombear", "freq" : 4, "cost_multiplier" : 10, "starts" : 72 },
{ "monster" : "mon_zombear", "freq" : 4, "cost_multiplier" : 10, "starts" : 168 },
{ "monster" : "mon_zombear", "freq" : 4, "cost_multiplier" : 10, "starts" : 672 },
{ "monster" : "mon_zombear", "freq" : 4, "cost_multiplier" : 10, "starts" : 2160 }
]
},
{
"type":"monstergroup",
"name" : "GROUP_DOMESTIC",
"default" : "mon_dog",
"monsters" : [
{ "monster" : "mon_cat", "freq" : 100, "cost_multiplier" : 0 },
{ "monster" : "mon_cat", "freq" : 20, "cost_multiplier" : 10, "pack_size" : [2,8] },
{ "monster" : "mon_dog", "freq" : 50, "cost_multiplier" : 25, "pack_size" : [1,12] },
{ "monster" : "mon_chicken", "freq" : 50, "cost_multiplier" : 10, "pack_size" : [1,16] },
{ "monster" : "mon_cow", "freq" : 50, "cost_multiplier" : 25, "pack_size" : [1,8] },
{ "monster" : "mon_horse", "freq" : 50, "cost_multiplier" : 25, "pack_size" : [1,4] },
{ "monster" : "mon_pig", "freq" : 50, "cost_multiplier" : 25, "pack_size" : [1,6] },
{ "monster" : "mon_sheep", "freq" : 50, "cost_multiplier" : 25, "pack_size" : [1,12] }
]
},
{
"type":"monstergroup",
"name" : "GROUP_RIVER",
"default" : "mon_frog",
"monsters" : [
{ "monster" : "mon_beaver", "freq" : 30, "cost_multiplier" : 10, "pack_size" : [1,3] },
{ "monster" : "mon_mink", "freq" : 10, "cost_multiplier" : 20, "pack_size" : [1,2] },
{ "monster" : "mon_muskrat", "freq" : 30, "cost_multiplier" : 5, "pack_size" : [1,5] },
{ "monster" : "mon_otter", "freq" : 10, "cost_multiplier" : 5, "pack_size" : [1,8] },
{ "monster" : "mon_sludge_crawler", "freq" : 15, "cost_multiplier" : 50 }
]
},
{
"type":"monstergroup",
"name" : "GROUP_CAVE",
"default" : "mon_null",
"monsters" : [
{ "monster" : "mon_bat", "freq" : 600, "cost_multiplier" : 5, "pack_size" : [6,32] },
{ "monster" : "mon_bear", "freq" : 100, "cost_multiplier" : 10, "pack_size" : [1,3] },
{ "monster" : "mon_cougar", "freq" : 100, "cost_multiplier" : 20, "pack_size" : [1,2] }
]
},
{
"type":"monstergroup",
"name" : "GROUP_ANT",
"default" : "mon_ant",
"monsters" : [
{ "monster" : "mon_ant_larva", "freq" : 40, "cost_multiplier" : 0 },
{ "monster" : "mon_ant_soldier", "freq" : 90, "cost_multiplier" : 5 },
{ "monster" : "mon_ant_queen", "freq" : 0, "cost_multiplier" : 0 }
]
},
{
"type":"monstergroup",
"name" : "GROUP_BEE",
"default" : "mon_bee",
"monsters" : [
]
},
{
"type":"monstergroup",
"name" : "GROUP_WORM",
"default" : "mon_worm",
"monsters" : [
{ "monster" : "mon_graboid", "freq" : 30, "cost_multiplier" : 20 },
{ "monster" : "mon_halfworm", "freq" : 0, "cost_multiplier" : 0 }
]
},
{
"type":"monstergroup",
"name" : "GROUP_ZOMBIE",
"default" : "mon_zombie",
"monsters" : [
{ "monster" : "mon_zombie", "freq" : 1, "cost_multiplier": 7, "pack_size": [5,10]},
{ "monster" : "mon_zombie", "freq" : 1, "cost_multiplier": 13, "pack_size": [15,20]},
{ "monster" : "mon_zombie", "freq" : 1, "cost_multiplier": 20, "pack_size": [25,30]},
{ "monster" : "mon_zombie_fast", "freq" : 40, "cost_multiplier" : 2 },
{ "monster" : "mon_zombie_fast", "freq" : 1, "cost_multiplier" : 4, "pack_size": [3,5]},
{ "monster" : "mon_zombie_fast", "freq" : 1, "cost_multiplier" : 16, "pack_size": [5,8]},
{ "monster" : "mon_zombie_fast", "freq" : 1, "cost_multiplier" : 24, "pack_size": [8,12]},
{ "monster" : "mon_zombie_child", "freq" : 20, "cost_multiplier" : 1 },
{ "monster" : "mon_zombie_soldier", "freq" : 10, "cost_multiplier" : 2 },
{ "monster" : "mon_zombie_cop", "freq" : 20, "cost_multiplier" : 3 },
{ "monster" : "mon_zombie_grabber", "freq" : 30, "cost_multiplier" : 5 },
{ "monster" : "mon_zombie_hunter", "freq" : 20, "cost_multiplier" : 5 },
{ "monster" : "mon_skeleton", "freq" : 30, "cost_multiplier" : 5 },
{ "monster" : "mon_zombie_smoker", "freq" : 10, "cost_multiplier" : 5 },
{ "monster" : "mon_zombie_swimmer", "freq" : 10, "cost_multiplier" : 5 },
{ "monster" : "mon_zombie_shrieker", "freq" : 30, "cost_multiplier" : 5 },
{ "monster" : "mon_zombie_spitter", "freq" : 30, "cost_multiplier" : 5 },
{ "monster" : "mon_zombie_electric", "freq" : 10, "cost_multiplier" : 5 },
{ "monster" : "mon_zombie_necro", "freq" : 5, "cost_multiplier" : 25 },
{ "monster" : "mon_boomer", "freq" : 30, "cost_multiplier" : 5 },
{ "monster" : "mon_zombie_brute", "freq" : 10, "cost_multiplier" : 15 },
{ "monster" : "mon_zombie_hulk", "freq" : 1, "cost_multiplier" : 50 },
{ "monster" : "mon_zombie_master", "freq" : 1, "cost_multiplier" : 30 },
{ "monster" : "mon_beekeeper", "freq" : 1, "cost_multiplier" : 5 }
]
},
{
"type":"monstergroup",
"name" : "GROUP_TRIFFID",
"default" : "mon_triffid",
"monsters" : [
{ "monster" : "mon_triffid_young", "freq" : 300, "cost_multiplier" : 0 },
{ "monster" : "mon_fungal_fighter", "freq" : 160, "cost_multiplier" : 0 },
{ "monster" : "mon_vinebeast", "freq" : 160, "cost_multiplier" : 10 },
{ "monster" : "mon_triffid_queen", "freq" : 60, "cost_multiplier" : 0 },
{ "monster" : "mon_triffid_heart", "freq" : 0, "cost_multiplier" : 0 }
]
},
{
"type":"monstergroup",
"name" : "GROUP_FUNGI",
"default" : "mon_spore",
"monsters" : [
{ "monster" : "mon_fungaloid", "freq" : 300, "cost_multiplier" : 0 },
{ "monster" : "mon_fungaloid_young", "freq" : 100, "cost_multiplier" : 0 },
{ "monster" : "mon_zombie_fungus", "freq" : 0, "cost_multiplier" : 0 },
{ "monster" : "mon_boomer_fungus", "freq" : 0, "cost_multiplier" : 0 },
{ "monster" : "mon_fungal_wall", "freq" : 0, "cost_multiplier" : 0 },
{ "monster" : "mon_fungaloid_queen", "freq" : 0, "cost_multiplier" : 0 }
]
},
{
"type":"monstergroup",
"name" : "GROUP_GOO",
"default" : "mon_blob",
"monsters" : [
{ "monster" : "mon_blob_small", "freq" : 200, "cost_multiplier" : 0 },
{ "monster" : "mon_blob_small", "freq" : 100, "cost_multiplier" : 0, "pack_size" : [2,12] },
{ "monster" : "mon_blob", "freq" : 10, "cost_multiplier" : 0, "pack_size" : [5,10] }
]
},
{
"type":"monstergroup",
"name" : "GROUP_CHUD",
"default" : "mon_chud",
"monsters" : [
{ "monster" : "mon_one_eye", "freq" : 90, "cost_multiplier" : 0 },
{ "monster" : "mon_crawler", "freq" : 35, "cost_multiplier" : 0 }
]
},
{
"type":"monstergroup",
"name" : "GROUP_SEWER",
"default" : "mon_sewer_rat",
"monsters" : [
{ "monster" : "mon_sewer_fish", "freq" : 300, "cost_multiplier" : 0, "pack_size" : [2,6] },
{ "monster" : "mon_sewer_snake", "freq" : 240, "cost_multiplier" : 0 },
{ "monster" : "mon_sewer_rat", "freq" : 100, "cost_multiplier" : 0, "pack_size" : [3,12] }
]
},
{
"type":"monstergroup",
"name" : "GROUP_SWAMP",
"default" : "mon_frog",
"monsters" : [
{ "monster" : "mon_mosquito", "freq" : 100, "cost_multiplier" : 0, "pack_size" : [3,16] },
{ "monster" : "mon_mosquito_giant", "freq" : 20, "cost_multiplier" : 0 },
{ "monster" : "mon_dragonfly", "freq" : 100, "cost_multiplier" : 0, "pack_size" : [3,16] },
{ "monster" : "mon_dragonfly_giant", "freq" : 20, "cost_multiplier" : 0 },
{ "monster" : "mon_centipede", "freq" : 100, "cost_multiplier" : 0, "pack_size" : [1,4] },
{ "monster" : "mon_centipede_giant", "freq" : 20, "cost_multiplier" : 0 },
{ "monster" : "mon_lemming", "freq" : 100, "cost_multiplier" : 0, "pack_size" : [1,7] },
{ "monster" : "mon_frog_giant", "freq" : 25, "cost_multiplier" : 0 },
{ "monster" : "mon_slug", "freq" : 50, "cost_multiplier" : 0 },
{ "monster" : "mon_slug_giant", "freq" : 25, "cost_multiplier" : 2 },
{ "monster" : "mon_dermatik_larva", "freq" : 1, "cost_multiplier" : 2 },
{ "monster" : "mon_dermatik", "freq" : 20, "cost_multiplier" : 2 },
{ "monster" : "mon_giant_crayfish", "freq" : 20, "cost_multiplier" : 0 }
]
},
{
"type":"monstergroup",
"name" : "GROUP_LAB",
"default" : "mon_zombie_scientist",
"monsters" : [
{ "monster" : "mon_blob_small", "freq" : 25, "cost_multiplier" : 0, "pack_size" : [1,4] },
{ "monster" : "mon_manhack", "freq" : 200, "cost_multiplier" : 0 },
{ "monster" : "mon_manhack", "freq" : 45, "cost_multiplier" : 0, "pack_size" : [2,3] },
{ "monster" : "mon_skitterbot", "freq" : 85, "cost_multiplier" : 0 },
{ "monster" : "mon_skitterbot", "freq" : 85, "cost_multiplier" : 0, "pack_size" : [2,3] },
{ "monster" : "mon_skitterbot", "freq" : 1, "cost_multiplier" : 0, "pack_size" : [8,12] }
]
},
{
"type":"monstergroup",
"name" : "GROUP_ICE_LAB",
"default" : "mon_zombie_scientist",
"monsters" : [
{ "monster" : "mon_blob_small", "freq" : 25, "cost_multiplier" : 0, "pack_size" : [1,4] },
{ "monster" : "mon_manhack", "freq" : 200, "cost_multiplier" : 0 },
{ "monster" : "mon_manhack", "freq" : 45, "cost_multiplier" : 0, "pack_size" : [2,3] },
{ "monster" : "mon_skitterbot", "freq" : 100, "cost_multiplier" : 0 },
{ "monster" : "mon_skitterbot", "freq" : 145, "cost_multiplier" : 0, "pack_size" : [2,3] }
]
},
{
"type":"monstergroup",
"name" : "GROUP_NETHER",
"default" : "mon_blank",
"monsters" : [
{ "monster" : "mon_flying_polyp", "freq" : 25, "cost_multiplier" : 0 },
{ "monster" : "mon_hunting_horror", "freq" : 240, "cost_multiplier" : 0 },
{ "monster" : "mon_mi_go", "freq" : 120, "cost_multiplier" : 0 },
{ "monster" : "mon_yugg", "freq" : 70, "cost_multiplier" : 0 },
{ "monster" : "mon_gelatin", "freq" : 120, "cost_multiplier" : 0 },
{ "monster" : "mon_flaming_eye", "freq" : 120, "cost_multiplier" : 0 },
{ "monster" : "mon_kreck", "freq" : 210, "cost_multiplier" : 0 },
{ "monster" : "mon_gozu", "freq" : 25, "cost_multiplier" : 0 }
]
},
{
"type":"monstergroup",
"name" : "GROUP_SPIRAL",
"default" : "mon_human_snail",
"monsters" : [
{ "monster" : "mon_twisted_body", "freq" : 180, "cost_multiplier" : 0 },
{ "monster" : "mon_vortex", "freq" : 80, "cost_multiplier" : 0 }
]
},
{
"type":"monstergroup",
"name" : "GROUP_VANILLA",
"default" : "mon_zombie",
"monsters" : [
{ "monster" : "mon_zombie_fast", "freq" : 40, "cost_multiplier" : 0 }
]
},
{
"type":"monstergroup",
"name" : "GROUP_SPIDER",
"default" : "mon_spider_wolf",
"monsters" : [
{ "monster" : "mon_spider_web", "freq" : 200, "cost_multiplier" : 0 },
{ "monster" : "mon_spider_jumping", "freq" : 400, "cost_multiplier" : 0 },
{ "monster" : "mon_spider_widow", "freq" : 200, "cost_multiplier" : 0 }
]
},
{
"type":"monstergroup",
"name" : "GROUP_ROBOT",
"default" : "mon_manhack",
"monsters" : [
{ "monster" : "mon_skitterbot", "freq" : 220, "cost_multiplier" : 0 },
{ "monster" : "mon_secubot", "freq" : 150, "cost_multiplier" : 0 },
{ "monster" : "mon_copbot", "freq" : 0, "cost_multiplier" : 0 },
{ "monster" : "mon_molebot", "freq" : 40, "cost_multiplier" : 0 },
{ "monster" : "mon_tripod", "freq" : 110, "cost_multiplier" : 0 },
{ "monster" : "mon_chickenbot", "freq" : 60, "cost_multiplier" : 0 },
{ "monster" : "mon_tankbot", "freq" : 20, "cost_multiplier" : 0 }
]
},
{
"type":"monstergroup",
"name" : "GROUP_POLICE", "_comment" : "+30% cops",
"default" : "mon_zombie",
"monsters" : [
{ "monster" : "mon_zombie_cop", "freq" : 320, "cost_multiplier" : 3 },
{ "monster" : "mon_zombie_fast", "freq" : 70, "cost_multiplier" : 2 },
{ "monster" : "mon_zombie_grabber", "freq" : 70, "cost_multiplier" : 1 },
{ "monster" : "mon_skeleton", "freq" : 30, "cost_multiplier" : 2 },
{ "monster" : "mon_zombie_smoker", "freq" : 30, "cost_multiplier" : 5 },
{ "monster" : "mon_zombie_swimmer", "freq" : 20, "cost_multiplier" : 2 },
{ "monster" : "mon_zombie_shrieker", "freq" : 30, "cost_multiplier" : 5 },
{ "monster" : "mon_zombie_spitter", "freq" : 30, "cost_multiplier" : 5 },
{ "monster" : "mon_zombie_electric", "freq" : 30, "cost_multiplier" : 5 },
{ "monster" : "mon_zombie_necro", "freq" : 1, "cost_multiplier" : 25 },
{ "monster" : "mon_boomer", "freq" : 30, "cost_multiplier" : 7 },
{ "monster" : "mon_zombie_brute", "freq" : 10, "cost_multiplier" : 15 },
{ "monster" : "mon_zombie_hulk", "freq" : 1, "cost_multiplier" : 50 },
{ "monster" : "mon_zombie_master", "freq" : 1, "cost_multiplier" : 25 }
]
},
{
"type":"monstergroup",
"name" : "GROUP_HOUSE", "_comment" : "+15% child",
"default" : "mon_zombie",
"monsters" : [
{ "monster" : "mon_zombie_child", "freq" : 150, "cost_multiplier" : 2 },
{ "monster" : "mon_zombie_cop", "freq" : 20, "cost_multiplier" : 2 },
{ "monster" : "mon_zombie_fast", "freq" : 70, "cost_multiplier" : 2 },
{ "monster" : "mon_zombie_grabber", "freq" : 70, "cost_multiplier" : 1 },
{ "monster" : "mon_skeleton", "freq" : 30, "cost_multiplier" : 2 },
{ "monster" : "mon_zombie_smoker", "freq" : 30, "cost_multiplier" : 5 },
{ "monster" : "mon_zombie_swimmer", "freq" : 20, "cost_multiplier" : 2 },
{ "monster" : "mon_zombie_shrieker", "freq" : 30, "cost_multiplier" : 5 },
{ "monster" : "mon_zombie_spitter", "freq" : 30, "cost_multiplier" : 5 },
{ "monster" : "mon_zombie_electric", "freq" : 30, "cost_multiplier" : 5 },
{ "monster" : "mon_zombie_necro", "freq" : 1, "cost_multiplier" : 25 },
{ "monster" : "mon_boomer", "freq" : 30, "cost_multiplier" : 7 },
{ "monster" : "mon_zombie_brute", "freq" : 10, "cost_multiplier" : 15 },
{ "monster" : "mon_zombie_hulk", "freq" : 1, "cost_multiplier" : 50 },
{ "monster" : "mon_zombie_master", "freq" : 1, "cost_multiplier" : 25 }
]
},
{
"type":"monstergroup",
"name" : "GROUP_PHARM", "_comment" : "+15% fast",
"default" : "mon_zombie",
"monsters" : [
{ "monster" : "mon_zombie_cop", "freq" : 20, "cost_multiplier" : 2 },
{ "monster" : "mon_zombie_fast", "freq" : 220, "cost_multiplier" : 2 },
{ "monster" : "mon_zombie_grabber", "freq" : 70, "cost_multiplier" : 1 },
{ "monster" : "mon_skeleton", "freq" : 30, "cost_multiplier" : 2 },
{ "monster" : "mon_zombie_smoker", "freq" : 30, "cost_multiplier" : 5 },
{ "monster" : "mon_zombie_swimmer", "freq" : 20, "cost_multiplier" : 2 },
{ "monster" : "mon_zombie_shrieker", "freq" : 30, "cost_multiplier" : 5 },
{ "monster" : "mon_zombie_spitter", "freq" : 30, "cost_multiplier" : 5 },
{ "monster" : "mon_zombie_electric", "freq" : 30, "cost_multiplier" : 5 },
{ "monster" : "mon_zombie_necro", "freq" : 1, "cost_multiplier" : 25 },
{ "monster" : "mon_boomer", "freq" : 30, "cost_multiplier" : 7 },
{ "monster" : "mon_zombie_brute", "freq" : 10, "cost_multiplier" : 15 },
{ "monster" : "mon_zombie_hulk", "freq" : 1, "cost_multiplier" : 50 },
{ "monster" : "mon_zombie_master", "freq" : 1, "cost_multiplier" : 25 }
]
},
{
"type":"monstergroup",
"name" : "GROUP_ELECTRO", "_comment" : "+15% electric",
"default" : "mon_zombie",
"monsters" : [
{ "monster" : "mon_zombie_cop", "freq" : 20, "cost_multiplier" : 2 },
{ "monster" : "mon_zombie_fast", "freq" : 70, "cost_multiplier" : 2 },
{ "monster" : "mon_zombie_grabber", "freq" : 70, "cost_multiplier" : 1 },
{ "monster" : "mon_skeleton", "freq" : 30, "cost_multiplier" : 2 },
{ "monster" : "mon_zombie_smoker", "freq" : 30, "cost_multiplier" : 5 },
{ "monster" : "mon_zombie_swimmer", "freq" : 20, "cost_multiplier" : 2 },
{ "monster" : "mon_zombie_shrieker", "freq" : 30, "cost_multiplier" : 5 },
{ "monster" : "mon_zombie_spitter", "freq" : 30, "cost_multiplier" : 5 },
{ "monster" : "mon_zombie_electric", "freq" : 180, "cost_multiplier" : 5 },
{ "monster" : "mon_zombie_necro", "freq" : 1, "cost_multiplier" : 25 },
{ "monster" : "mon_boomer", "freq" : 30, "cost_multiplier" : 7 },
{ "monster" : "mon_zombie_brute", "freq" : 10, "cost_multiplier" : 15 },
{ "monster" : "mon_zombie_hulk", "freq" : 1, "cost_multiplier" : 50 },
{ "monster" : "mon_zombie_master", "freq" : 1, "cost_multiplier" : 25 }
]
},
{
"type":"monstergroup",
"name" : "GROUP_GROCERY", "_comment" : "+15% bommers",
"default" : "mon_zombie",
"monsters" : [
{ "monster" : "mon_zombie_cop", "freq" : 20, "cost_multiplier" : 2 },
{ "monster" : "mon_zombie_fast", "freq" : 70, "cost_multiplier" : 2 },
{ "monster" : "mon_zombie_grabber", "freq" : 70, "cost_multiplier" : 1 },
{ "monster" : "mon_skeleton", "freq" : 30, "cost_multiplier" : 2 },
{ "monster" : "mon_zombie_smoker", "freq" : 30, "cost_multiplier" : 5 },
{ "monster" : "mon_zombie_swimmer", "freq" : 20, "cost_multiplier" : 2 },
{ "monster" : "mon_zombie_shrieker", "freq" : 30, "cost_multiplier" : 5 },
{ "monster" : "mon_zombie_spitter", "freq" : 30, "cost_multiplier" : 5 },
{ "monster" : "mon_zombie_electric", "freq" : 30, "cost_multiplier" : 5 },
{ "monster" : "mon_zombie_necro", "freq" : 1, "cost_multiplier" : 25 },
{ "monster" : "mon_boomer", "freq" : 180, "cost_multiplier" : 7 },
{ "monster" : "mon_zombie_brute", "freq" : 10, "cost_multiplier" : 15 },
{ "monster" : "mon_zombie_hulk", "freq" : 1, "cost_multiplier" : 50 },
{ "monster" : "mon_zombie_master", "freq" : 1, "cost_multiplier" : 25 }
]
},
{
"type":"monstergroup",
"name" : "GROUP_MAYBE_MIL", "_comment" : "50% chance military zombie",
"default" : "mon_null",
"monsters" : [
{ "monster" : "mon_zombie_soldier", "freq" : 50, "cost_multiplier" : 0 }
]
},
{
"type":"monstergroup",
"name" : "GROUP_PUBLICWORKERS",
"default" : "mon_zombie_electric",
"monsters" : [
{ "monster" : "mon_zombie_grabber", "freq" : 100, "cost_multiplier" : 1 },
{ "monster" : "mon_zombie_smoker", "freq" : 100, "cost_multiplier" : 5 },
{ "monster" : "mon_zombie_shrieker", "freq" : 100, "cost_multiplier" : 5 },
{ "monster" : "mon_zombie_spitter", "freq" : 100, "cost_multiplier" : 5 },
{ "monster" : "mon_zombie", "freq" : 100, "cost_multiplier" : 5 },
{ "monster" : "mon_zombie_brute", "freq" : 20, "cost_multiplier" : 15 },
{ "monster" : "mon_zombie_hulk", "freq" : 1, "cost_multiplier" : 50 },
{ "monster" : "mon_zombie_master", "freq" : 1, "cost_multiplier" : 25 }
]
},
{
"type":"monstergroup",
"name" : "GROUP_MAYBE_ZOMBIE", "_comment" : "10% chance of a zombie",
"default" : "mon_null",
"monsters" : [
{ "monster" : "mon_zombie", "freq" : 60, "cost_multiplier": 0, "pack_size": [1,5] },
{ "monster" : "mon_zombie_fast", "freq" : 10, "cost_multiplier" : 0 },
{ "monster" : "mon_zombie_child", "freq" : 10, "cost_multiplier" : 0 },
{ "monster" : "mon_skeleton", "freq" : 10, "cost_multiplier" : 5 },
{ "monster" : "mon_zombie_shrieker", "freq" : 10, "cost_multiplier" : 5 }
]
},
{
"type":"monstergroup",
"name" : "GROUP_SAFE", "_comment" : "used by mongroup::is_safe()",
"default" : "mon_null",
"monsters" : [
{ "monster" : "mon_bat", "freq" : 1, "cost_multiplier" : 1 },
{ "monster" : "mon_bobcat", "freq" : 1, "cost_multiplier" : 1 },
{ "monster" : "mon_cat", "freq" : 1, "cost_multiplier" : 1 },
{ "monster" : "mon_chicken", "freq" : 1, "cost_multiplier" : 1 },
{ "monster" : "mon_chipmunk", "freq" : 1, "cost_multiplier" : 1 },
{ "monster" : "mon_crow", "freq" : 1, "cost_multiplier" : 1 },
{ "monster" : "mon_deer", "freq" : 1, "cost_multiplier" : 1 },
{ "monster" : "mon_dog", "freq" : 1, "cost_multiplier" : 1 },
{ "monster" : "mon_fox_gray", "freq" : 1, "cost_multiplier" : 1 },
{ "monster" : "mon_fox_red", "freq" : 1, "cost_multiplier" : 1 },
{ "monster" : "mon_groundhog", "freq" : 1, "cost_multiplier" : 1 },
{ "monster" : "mon_hare", "freq" : 1, "cost_multiplier" : 1 },
{ "monster" : "mon_mosquito", "freq" : 1, "cost_multiplier" : 1 },
{ "monster" : "mon_rabbit", "freq" : 1, "cost_multiplier" : 1 },
{ "monster" : "mon_shrew", "freq" : 1, "cost_multiplier" : 1 },
{ "monster" : "mon_squirrel_red", "freq" : 1, "cost_multiplier" : 1 },
{ "monster" : "mon_weasel", "freq" : 1, "cost_multiplier" : 1 },
{ "monster" : "mon_turkey", "freq" : 1, "cost_multiplier" : 1 },
{ "monster" : "mon_raccoon", "freq" : 1, "cost_multiplier" : 1 },
{ "monster" : "mon_opossum", "freq" : 1, "cost_multiplier" : 1 },
{ "monster" : "mon_deer_mouse", "freq" : 1, "cost_multiplier" : 1 },
{ "monster" : "mon_sewer_rat", "freq" : 1, "cost_multiplier" : 1 },
{ "monster" : "mon_black_rat", "freq" : 1, "cost_multiplier" : 1 },
{ "monster" : "mon_rattlesnake", "freq" : 1, "cost_multiplier" : 1 },
{ "monster" : "mon_spider_wolf", "freq" : 1, "cost_multiplier" : 1 },
{ "monster" : "mon_spider_jumping", "freq" : 1, "cost_multiplier" : 1 },
{ "monster" : "mon_cow", "freq" : 1, "cost_multiplier" : 1 },
{ "monster" : "mon_horse", "freq" : 1, "cost_multiplier" : 1 },
{ "monster" : "mon_pig", "freq" : 1, "cost_multiplier" : 1 },
{ "monster" : "mon_sheep", "freq" : 1, "cost_multiplier" : 1 },
{ "monster" : "mon_mosquito", "freq" : 1, "cost_multiplier" : 1 },
{ "monster" : "mon_dragonfly", "freq" : 1, "cost_multiplier" : 1 },
{ "monster" : "mon_centipede", "freq" : 1, "cost_multiplier" : 1 },
{ "monster" : "mon_lemming", "freq" : 1, "cost_multiplier" : 1 },
{ "monster" : "mon_slug", "freq" : 1, "cost_multiplier" : 1 }
]
}
]
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
+1611
View File
File diff suppressed because it is too large Load Diff
+903
View File
@@ -0,0 +1,903 @@
[
{
"type": "profession",
"ident": "unemployed",
"name": "Unemployed",
"description": "They say you don't have any \"useful skills\", but at least your clothes fit well.",
"points": 0,
"items": [
"jeans",
"tshirt",
"sneakers"
]
},
{
"type": "profession",
"ident": "tailor",
"name": "Tailor",
"description": "You've made and adjusted clothing for some of the biggest names in town. Now, their undead bodies are trying to eat your brains. At least you'll be able to keep your own clothing repaired.",
"points": 1,
"skills": [
{
"level": 1,
"name": "tailor"
}
],
"items": [
"polo_shirt",
"blazer",
"pants",
"dress_shoes",
"sewing_kit",
"scissors"
]
},
{
"type": "profession",
"ident": "labtech",
"name": "Lab Technician",
"description": "It was your first day in the lab when the cataclysm hit. You were evacuated with all the civilians, but at least you kept your lab gear.",
"points": 1,
"items": [
"dress_shirt",
"pants",
"boots",
"coat_lab",
"gloves_rubber",
"glasses_safety"
]
},
{
"type": "profession",
"ident": "mechanic",
"name": "Wannabe Mechanic",
"description": "Although you never got your driver's license, you've always loved cars. At least now you'll never be wanting for materials.",
"points": 2,
"skills": [
{
"level": 1,
"name": "mechanics"
}
],
"items": [
"tank_top",
"jeans",
"boots",
"chestrig",
"wrench",
"mag_cars"
]
},
{
"type": "profession",
"ident": "scoundrel",
"name": "Scoundrel",
"description": "Your flexible outlook on law has ensured your survival, but now what? You have some of your \"sundries\", and one additional level of melee.",
"points": 2,
"skills": [
{
"level": 1,
"name": "melee"
}
],
"items": [
"tank_top",
"hoodie",
"pants_cargo",
"sneakers",
"weed",
"rolling_paper",
"picklocks"
]
},
{
"type": "profession",
"ident": "brawler",
"name": "Back Alley Brawler",
"description": "Your time spent fighting in back-alley brawls just might serve you well in the rough-and-tumble world left behind after the apocalypse.",
"points": 2,
"skills": [
{
"level": 1,
"name": "unarmed"
},
{
"level": 1,
"name": "dodge"
}
],
"items": [
"tank_top",
"pants_cargo",
"boots",
"knuckle_brass"
]
},
{
"type": "profession",
"ident": "soldier",
"name": "Military Recruit",
"description": "You were 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.",
"points": 3,
"skills": [
{
"level": 1,
"name": "survival"
},
{
"level": 1,
"name": "gun"
}
],
"items": [
"pants_army",
"army_top",
"boots_combat",
"knife_combat",
"binoculars"
]
},
{
"type": "profession",
"ident": "medic",
"name": "Pre-Med Student",
"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.",
"points": 1,
"skills": [
{
"level": 1,
"name": "firstaid"
}
],
"items": [
"pants",
"dress_shirt",
"dress_shoes",
"water_clean",
"bandages",
"bandages"
]
},
{
"type": "profession",
"ident": "thug",
"name": "Mafia Enforcer",
"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.",
"points": 2,
"skills": [
{
"level": 1,
"name": "unarmed"
}
],
"items": [
"suit",
"bowhat",
"dress_shoes",
"cig",
"mag_porn"
]
},
{
"type": "profession",
"ident": "sheriff",
"name": "Local Sheriff",
"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.",
"points": 2,
"skills": [
{
"level": 1,
"name": "gun"
}
],
"items": [
"pants_army",
"socks",
"badge_deputy",
"sheriffshirt",
"boots",
"holster"
]
},
{
"type": "profession",
"ident": "smoker",
"name": "Chain Smoker",
"description": "Everyone at work knew you as the person who always had a cigarette or two in hand. Now, you're down to a single pack, and you hope you find more soon. You start out with a strong nicotine addiction.",
"points": -1,
"items": [
"pants",
"dress_shirt",
"dress_shoes",
"cig",
"ref_lighter"
],
"addictions": [
{
"intensity": 10,
"type": "nicotine"
}
]
},
{
"type": "profession",
"ident": "salesman",
"name": "Used Car Salesman",
"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.",
"points": 1,
"skills": [
{
"level": 1,
"name": "barter"
}
],
"items": [
"suit",
"dress_shoes"
]
},
{
"type": "profession",
"ident": "homeless",
"name": "Hobo",
"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.",
"points": -4,
"items": [
"pants",
"whiskey",
"can_beans"
],
"addictions": [
{
"intensity": 20,
"type": "alcohol"
}
]
},
{
"type": "profession",
"ident": "hunter",
"name": "Bow Hunter",
"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.",
"points": 2,
"skills": [
{
"level": 1,
"name": "archery"
},
{
"level": 1,
"name": "survival"
}
],
"items": [
"army_top",
"boots_steel",
"jeans"
]
},
{
"type": "profession",
"ident": "cworker",
"name": "Handy Man",
"description": "You used to work at a local hardware store, and you did a lot of home renovations yourself. You start with a level in construction.",
"points": 2,
"skills": [
{
"level": 1,
"name": "carpentry"
}
],
"items": [
"tank_top",
"boots_steel",
"jeans",
"hammer",
"tool_belt"
]
},
{
"type": "profession",
"ident": "lumberjack",
"name": "Lumberjack",
"description": "You've worked in the woods your whole life, and start with some woodsman gear.",
"points": 1,
"items": [
"jeans",
"boots",
"hat_hunting",
"jacket_flannel",
"ax"
]
},
{
"type": "profession",
"ident": "backpacker",
"name": "Backpacker",
"description": "You've travelled 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.",
"points": 2,
"items": [
"backpack_leather",
"jeans",
"sneakers",
"tshirt",
"socks"
]
},
{
"type": "profession",
"ident": "fastfoodcook",
"name": "Fast Food Cook",
"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.",
"points": 1,
"skills": [
{
"level": 1,
"name": "cooking"
}
],
"items": [
"pants",
"sneakers",
"tshirt",
"socks"
]
},
{
"type": "profession",
"ident": "survivalist",
"name": "Survivalist",
"description": "You were one of those guys who watched one too many survivalist shows. At least you're well-equipped for surviving on your own.",
"points": 3,
"skills": [
{
"level": 1,
"name": "survival"
}
],
"items": [
"shorts_cargo",
"boots",
"blazer",
"tshirt",
"socks",
"backpack"
]
},
{
"type": "profession",
"ident": "electrician",
"name": "Electrician",
"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.",
"points": 2,
"skills": [
{
"level": 1,
"name": "electronics"
}
],
"items": [
"jumpsuit",
"boots",
"tool_belt"
]
},
{
"type": "profession",
"ident": "hacker",
"name": "Computer Hacker",
"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.",
"points": 1,
"skills": [
{
"level": 1,
"name": "computer"
}
],
"items": [
"pants",
"tshirt",
"sneakers"
]
},
{
"type": "profession",
"ident": "student",
"name": "Student",
"description": "You were a high school student until the teachers literally tried to pick your brains. But on the bright side, you'll never have to write a test again.",
"points": 2,
"items": [
"pants",
"tshirt",
"sneakers",
"ZSG",
"backpack"
]
},
{
"type": "profession",
"ident": "svictim",
"name": "Shower Victim",
"description": "You were in the middle of a nice shower when the cataclysm struck! You fled without so much as a towel.",
"points": -1,
"items": [
]
},
{
"type": "profession",
"ident": "biker",
"name": "Biker",
"description": "You spent most of your life on a Harley, and it's only natural you spend the rest of it riding one.",
"points": 2,
"items": [
"jeans",
"tank_top",
"chaps_leather",
"boots",
"bandana",
"jacket_leather"
]
},
{
"type": "profession",
"ident": "dancer",
"name": "Ballroom Dancer",
"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 level in dodging.",
"points": 1,
"skills": [
{
"level": 1,
"name": "dodge"
}
],
"items": [
"tux",
"dress_shoes"
]
},
{
"type": "profession",
"ident": "security",
"name": "Security Guard",
"description": "You worked for a small-time security company guarding local businesses, but there's nothing in the company policy for dealing with zombies.",
"points": 1,
"items": [
"pants",
"poncho",
"boots_combat",
"flashlight"
]
},
{
"type": "profession",
"ident": "tinkerer",
"name": "Tinkerer",
"description": "You've always loved tinkering with stuff. You know a little bit about mechanics, tailoring, electronics, and carpentry.",
"points": 3,
"skills": [
{
"level": 1,
"name": "mechanics"
},
{
"level": 1,
"name": "tailor"
},
{
"level": 1,
"name": "electronics"
},
{
"level": 1,
"name": "carpentry"
}
],
"items": [
"pants",
"tshirt",
"tool_belt",
"sneakers"
]
},
{
"type": "profession",
"ident": "ddealer",
"name": "Drug Dealer",
"description": "You've worked the streets since you were a kid, and now you use your street skills to survive. You kept your gun, but fired the last bullet during your escape.",
"points": 2,
"items": [
"jeans",
"tshirt",
"hoodie",
"sneakers",
"glock_19",
"coke"
]
},
{
"type": "profession",
"ident": "thug",
"name": "Street Thug",
"description": "You've worked the streets since you were a kid, and now you use your street skills to survive. You've got your trusty switchblade, and the skill to use it.",
"points": 2,
"skills": [
{
"name": "cutting",
"level": 1
}
],
"items": [
"jeans",
"tshirt",
"hoodie",
"sneakers",
"gloves_fingerless",
"switchblade"
]
},
{
"type": "profession",
"ident": "groom",
"name": "Groom",
"description": "You were about to marry your bride before the cataclysm, now you spend your days searching for her.",
"points": 0,
"items": [
"tux",
"dress_shoes"
]
},
{
"type": "profession",
"ident": "bride",
"name": "Bride",
"description": "You chose a bad day for your wedding. You just barely escaped with your wedding dress intact.",
"points": 0,
"items": [
"dress_wedding",
"dress_shoes"
]
},
{
"type": "profession",
"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": 4,
"items": [
"skirt",
"corset",
"trenchcoat",
"gloves_fingerless",
"boots_combat",
"weed",
"rolling_paper",
"cig",
"mp3",
"ref_lighter"
]
},
{
"type": "profession",
"ident": "junkie",
"name": "Junkie",
"description": "Before the apocalypse, you turned to Heroin to soothe your many problems. Now, your habit is your only comfort and your only drive.",
"points": -2,
"items": [
"pants",
"dress_shirt",
"dress_shoes",
"heroin",
"syringe"
],
"addictions": [
{
"type": "opiate",
"intensity": 10
}
]
},
{
"type": "profession",
"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": 3,
"skills": [
{
"name": "cooking",
"level": 3
}
],
"items": [
"knife_butcher",
"hat_chef",
"jacket_chef",
"pants_checkered",
"dress_shoes"
]
},
{
"type": "profession",
"ident": "hooker",
"name": "Prostitute",
"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 occurrence. You start with the last of your stash and a strong crack addiction.",
"points": -4,
"items": [
"skirt",
"heels",
"tank_top",
"crackpipe",
"crack"
],
"addictions": [
{
"intensity": 20,
"type": "crack"
}
]
},
{
"type": "profession",
"ident": "trapper",
"name": "Trapper",
"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.",
"points": 1,
"skills": [
{
"level": 1,
"name": "traps"
}
],
"items": [
"jeans",
"boots",
"hat_hunting",
"jacket_flannel",
"beartrap"
]
},
{
"type": "profession",
"ident": "blacksmith",
"name": "Blacksmith",
"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.",
"points": 2,
"skills": [
{
"level": 1,
"name": "fabrication"
}
],
"items": [
"jeans",
"boots",
"tank_top",
"apron_leather",
"fire_gauntlets",
"hammer"
]
},
{
"type": "profession",
"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"
]
},
{
"type": "profession",
"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"
]
},
{
"type": "profession",
"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.",
"points": 1,
"items": [
"dress_shirt",
"pants_checkered",
"dress_shoes",
"cane",
"pocketwatch"
]
},
{
"type": "profession",
"ident": "paramedic",
"name": "Paramedic",
"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 some skill in first aid.",
"points": 2,
"skills": [
{
"level": 1,
"name": "firstaid"
}
],
"items": [
"pants",
"boots",
"polo_shirt",
"gloves_medical",
"1st_aid"
]
},
{
"type": "profession",
"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.",
"points": 4,
"items": [
"shorts",
"sneakers",
"tank_top",
"sewing_kit",
"mbag",
"fur_cat_ears",
"fur_cat_tail",
"fur_collar",
"cheeseburger"
]
},
{
"type": "profession",
"ident": "goalie",
"name": "Hockey Player",
"description": "You were a minor-league hockey goalie before the rest of your team became zombies. It's just you and your hockey equipment versus the undead, but at least you can cross-check them now.",
"points": 2,
"items": [
"mask_hockey",
"hockey_stick",
"jersey",
"pants",
"sneakers",
"puck"
]
},
{
"type": "profession",
"ident": "batter",
"name": "Baseball Player",
"description": "You were a batter on a local minor league team before the cataclysm. You escaped with your equipment, but how long can you survive until your innings are up?",
"points": 2,
"items": [
"bat",
"helmet_ball",
"dress_shirt",
"pants",
"cleats",
"baseball"
]
},
{
"type": "profession",
"ident": "linebacker",
"name": "Football Player",
"description": "You were the star player for the local football team, adored by teammates and fans alike. Now they just adore your brains. You've still got your bulky football gear on.",
"points": 4,
"items": [
"football_armor",
"tank_top",
"helmet_football",
"pants",
"cleats",
"football"
]
},
{
"type": "profession",
"ident": "golfer",
"name": "Golfer",
"description": "A birdie is 1 under par, but how much is a zombie? Your clubhouse was overrun by the undead, and you fled with your trusty driving wedge.",
"points": 1,
"items": [
"hat_ball",
"dress_shirt",
"pants",
"sneakers",
"golf_club"
]
},
{
"type" : "profession",
"ident": "bionic_thief",
"name": "Bionic Thief",
"description": "You have done many high profile heists, but your gains mean nothing in this world. All you have left is your bionic lockpick that you keep powered via batteries.",
"points": 4,
"CBMs":[
"bio_batteries",
"bio_lockpick",
"bio_power_storage_mkII"
],
"items":[
"sunglasses",
"jeans",
"dress_shirt",
"dress_shoes"
]
},
{
"type" : "profession",
"ident": "bionic_patient",
"name": "Bionic Patient",
"description": "Medical advances have saved your body from certain death. You are augmented with bionic muscles and sensors monitoring your blood powered by your own metabolism. Make the most of your second chance at life.",
"points": 4,
"CBMs":[
"bio_metabolics",
"bio_hydraulics",
"bio_blood_anal",
"bio_power_storage_mkII"
],
"items":[
"jeans",
"tshirt",
"sneakers"
]
},
{
"type" : "profession",
"ident": "bionic_spy",
"name": "Bionic Spy",
"description": "Your body has several bionics worth millions of dollars, paid for by public taxes. The government employed you as a spy: you have night vision, an alarm and a hacking module powered by your own metabolism.",
"points": 6,
"CBMs":[
"bio_fingerhack",
"bio_alarm",
"bio_night_vision",
"bio_batteries",
"bio_power_storage_mkII"
],
"items":[
"boots",
"pants_army",
"jacket_army",
"mask_bal"
]
},
{
"type" : "profession",
"ident": "faulty_bionic",
"name": "Failed Android",
"description": "Your body is a wreck of bionic parts. You have a large capacity for power, but are filled with broken bionics. At least your ethanol power supply still works.",
"points": 0,
"CBMs":[
"bio_drain",
"bio_noise",
"bio_dis_acid",
"bio_dis_shock",
"bio_ethanol",
"bio_power_storage_mkII",
"bio_power_storage_mkII"
],
"items":[
"sneakers",
"jeans",
"tshirt"
]
},
{
"type" : "profession",
"ident" : "hitchhiker",
"name" : "Hitchhiker",
"description" : "Your house has been demolished and your planet destroyed, but at least you still have your towel.",
"points" : 0,
"items" : [
"house_coat",
"towel",
"guidebook"
]
}
]
File diff suppressed because it is too large Load Diff
+147
View File
@@ -0,0 +1,147 @@
[
{
"type" : "skill",
"ident" : "barter",
"name" : "bartering",
"description" : "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."
},{
"type" : "skill",
"ident" : "computer",
"name" : "computers",
"description" : "Your skill in accessing and manipulating computers. Higher levels can allow a user to navigate complex software systems and even bypass their security."
},{
"type" : "skill",
"ident" : "carpentry",
"name" : "construction",
"description" : "Your general competence in building construction. This governs the complexity of structures that can be built, and the time required to build them."
},{
"type" : "skill",
"ident" : "cooking",
"name" : "cooking",
"description" : "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."
},{
"type" : "skill",
"ident" : "driving",
"name" : "driving",
"description" : "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."
},{
"type" : "skill",
"ident" : "electronics",
"name" : "electronics",
"description" : "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."
},{
"type" : "skill",
"ident" : "fabrication",
"name" : "fabrication",
"description" : "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."
},{
"type" : "skill",
"ident" : "firstaid",
"name" : "first aid",
"description" : "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."
},{
"type" : "skill",
"ident" : "mechanics",
"name" : "mechanics",
"description" : "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."
},{
"type" : "skill",
"ident" : "speech",
"name" : "speaking",
"description" : "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."
},{
"type" : "skill",
"ident" : "survival",
"name" : "survival",
"description" : "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."
},{
"type" : "skill",
"ident" : "swimming",
"name" : "swimming",
"description" : "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."
},{
"type" : "skill",
"ident" : "tailor",
"name" : "tailoring",
"description" : "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."
},{
"type" : "skill",
"ident" : "traps",
"name" : "trapping",
"description" : "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."
},{
"type" : "skill",
"ident" : "archery",
"name" : "archery",
"description" : "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."
},{
"type" : "skill",
"ident" : "bashing",
"name" : "bashing weapons",
"description" : "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."
},{
"type" : "skill",
"ident" : "cutting",
"name" : "cutting weapons",
"description" : "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."
},{
"type" : "skill",
"ident" : "dodge",
"name" : "dodging",
"description" : "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."
},{
"type" : "skill",
"ident" : "gun",
"name" : "marksmanship",
"description" : "Your overall skill in using bows and firearms. With higher levels, this general experience increases accuracy with any bows or firearms, but is secondary to practice with the type of ranged weapon in question."
},{
"type" : "skill",
"ident" : "launcher",
"name" : "launchers",
"description" : "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."
},{
"type" : "skill",
"ident" : "melee",
"name" : "melee",
"description" : "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."
},{
"type" : "skill",
"ident" : "stabbing",
"name" : "piercing weapons",
"description" : "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."
},{
"type" : "skill",
"ident" : "throw",
"name" : "throwing",
"description" : "Your skill in throwing objects over a distance. Skill increases accuracy, and at higher levels, the range of a throw."
},{
"type" : "skill",
"ident" : "unarmed",
"name" : "unarmed combat",
"description" : "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."
},{
"type" : "skill",
"ident" : "pistol",
"name" : "handguns",
"description" : "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.",
"tags" : ["gun_type"]
},{
"type" : "skill",
"ident" : "rifle",
"name" : "rifles",
"description" : "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.",
"tags" : ["gun_type"]
},{
"type" : "skill",
"ident" : "shotgun",
"name" : "shotguns",
"description" : "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.",
"tags" : ["gun_type"]
},{
"type" : "skill",
"ident" : "smg",
"name" : "submachine guns",
"description" : "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.",
"tags" : ["gun_type"]
}
]
+99
View File
@@ -0,0 +1,99 @@
[
{
"type" : "snippet",
"category" : "flier",
"text": "This is an advertisement for the Diet Devil brand Metabolic Exchange CBM. It shows a picture of a tiny obese devil sitting on a woman's shoulder. The woman stares intently at a gigantic wedding cake covered with bacon and candybars. The caption reads: \"Burn calories! Burn!\""
},{
"type" : "snippet",
"category" : "flier",
"text" : "This is an advertisement for the Diet Devil brand Internal Furnace CBM. It shows a picture of a tiny obese devil sitting on a man's shoulder. The man is about to bite into a frosting-covered baby. The caption reads: \"Eat What You Want! How You Want! Who You Want!\""
},{
"type" : "snippet",
"category" : "flier",
"text" : "This is an advertisement for the Diet Devil brand Ethanol Burner CBM. It shows a picture of a teenaged boy driving a car while chugging a bottle of whiskey. A tiny obese devil sits on his shoulder and drinks a martini. The caption reads: \"Drink like there's no tomorrow!\""
},{
"type" : "snippet",
"category" : "flier",
"text" : "This is an advertisement for the Twenty8 brand Diamond Cornea CBM. It shows a picture of the cyber-module being clutched by an eagle in flight. The captions read: \"Get the new Model 28.bx Eagle-Eye!\" and \"Twenty8. See what you've been missing.\""
},{
"type" : "snippet",
"category" : "flier",
"text" : "This is an advertisement for the Twenty8 brand Night Vision CBM. It shows a picture of an owl swooping down on a the cyber-module. The captions read: \"Get the new Model 28.hx Night-Owl!\" and \"Twenty8. See what you've been missing.\""
},{
"type" : "snippet",
"category" : "flier",
"text" : "This is an advertisement for the Twenty8 brand Diamond Cornea CBM. It shows a picture of a flying hawk carrying the cyber-module in its beak. The captions read: \"Get the new Model 28.xx Hawk-Eye!\" and \"Twenty8. See what you've been missing.\""
},{
"type" : "snippet",
"category" : "flier",
"text" : "This is an advertisement for the Twenty8 brand Scent Vision CBM. It shows a picture of a vulture perched on a pile of skulls and cyber-modules. The captions read: \"Get the new Model 28.vx Vulture today!\" and \"Twenty8. See what you've been missing.\""
},{
"type" : "snippet",
"category" : "flier",
"text" : "This is an ad for a Twenty8 brand Infrared Vision CBM. It shows a picture of a robotic phoenix covered in flames. The captions read: \"Get the new Model 28.tx Phoenix today!\" and \"Twenty8. See what you've been missing.\""
},{
"type" : "snippet",
"category" : "flier",
"text" : "This is an advertisement for DoubleTech brand law enforcement robots. It shows a picture of copbot and an eyebot boldly emerging from a cloud of teargas and flame. The caption reads: \"DoubleTech Industries. Built to Protect. Programmed to Serve.\""
},{
"type" : "snippet",
"category" : "flier",
"text" : "This is an advertisement for DoubleTech brand law enforcement robots. It shows a picture of an eyebot flying alongside a bald eagle and a Stealth bomber painted as an American flag. The caption reads: \"Built to Protect. Programmed to Serve.\""
},{
"type" : "snippet",
"category" : "flier",
"text" : "This is an advertisement for DoubleTech brand law enforcement robots. It shows a picture of a dozen eyebots floating over a woman as she jogs through a park. The captions read: \"Built to Protect. Programmed to Serve.\""
},{
"type" : "snippet",
"category" : "flier",
"text" : "This is an advertisement for DoubleTech brand law enforcement robots. It shows a picture of copbot pepper-spraying a handcuffed rioter. In the background a troop of boy scouts salutes the robot. The caption reads: \"Built to Protect. Programmed to Serve.\""
},{
"type" : "snippet",
"category" : "flier",
"text" : "This is an advertisement for Robert's Universal Robotics brand law enforcement robots. It shows a picture of tripod robot incinerating a mob of looters and stepping over charred and smoking corpses. The caption reads: \"R.U.R. Technology you can Trust.\""
},{
"type" : "snippet",
"category" : "flier",
"text" : "This is an advertisement for Robert's Universal Robots brand labor-bots. It shows a picture of a robot carrying a heavy pallet of bricks. In the background a human foreman is sleeping on the job, with his hardhat pulled down over his eyes. The captions read: \"It's a tough job, so why should you have to do it?\" and \"R.U.R. Technology you can Trust.\""
},{
"type" : "snippet",
"category" : "flier",
"text" : "This is an advertisement for Robert's Universal Robots brand labor-bots. It shows a picture of a factory floor run entirely by robots. In the background a man in a suit reads a newspaper that shows soaring stock prices. The caption reads: \"R.U.R. Technology you can Trust.\""
},{
"type" : "snippet",
"category" : "flier",
"text" : "This is an advertisement for Sybil's Cyber Boutique. It shows a picture of several bikini-clad female doctors removing the skin from man's face. The patient is strapped to a chair but cheerfully gives two thumbs up. The caption reads: \"Free Plastic Surgery While You Wait!\""
},{
"type" : "snippet",
"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 two thumbs up. The caption reads: \"Holiday sales! Get the package deals!\""
},{
"type" : "snippet",
"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!\""
},{
"type" : "snippet",
"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!\""
},{
"type" : "snippet",
"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.\""
},{
"type" : "snippet",
"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.\""
},{
"type" : "snippet",
"category" : "flier",
"text" : "This is an advertisement for the Rivtech brand Muscle Augmentation CBM. It shows a picture of an athlete engaged in weight lifting. The weights are absurdly large, but the smiling athlete appears to be lifting them with ease. The caption reads: \"Rivtech neuroreactive myomer bionics. Unlock the Olympian inside.\" and \"Rivtech Bionics, guaranteed for life.\""
},{
"type" : "snippet",
"category" : "flier",
"text" : "This is an advertisement for the Rivtech brand Wired Reflexes CBM. It shows a picture of a stylized, snarling black cat against a red background. The caption reads: \"Rivtech neuroelectric stimulation bionics. The next level in quantum inductive piezochemical nerve stimulation technology.\" and \"Rivtech Bionics, guaranteed for life.\""
},{
"type" : "snippet",
"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.\""
}
]
+75
View File
@@ -0,0 +1,75 @@
[
{
"type" : "SPECIES",
"id":"MAMMAL",
"fear_triggers":["HURT", "FIRE", "FRIEND_DIED"]
},{
"type" : "SPECIES",
"id":"AMPHIBIAN",
"fear_triggers":["HURT", "FIRE"]
},{
"type" : "SPECIES",
"id":"BIRD",
"fear_triggers":["HURT", "SOUND"]
},{
"type" : "SPECIES",
"id":"REPTILE",
"fear_triggers":["HURT", "FIRE"]
},{
"type" : "SPECIES",
"id":"FISH",
"fear_triggers":["HURT", "FRIEND_ATTACKED"]
},{
"type" : "SPECIES",
"id":"MUTANT",
"fear_triggers":["FIRE"]
},{
"type" : "SPECIES",
"id":"NETHER",
"fear_triggers":["HURT"]
},{
"type" : "SPECIES",
"id":"FUNGUS",
"fear_triggers":["HURT", "FIRE"]
},{
"type" : "SPECIES",
"id":"INSECT",
"anger_triggers":["FRIEND_DIED"],
"fear_triggers":["HURT", "FIRE"]
},{
"type" : "SPECIES",
"id":"SPIDER",
"anger_triggers":["FRIEND_DIED"],
"fear_triggers":["HURT", "FIRE"]
},{
"type" : "SPECIES",
"id":"PLANT",
"fear_triggers":["HURT", "FIRE"]
},{
"type" : "SPECIES",
"id":"MOLLUSK",
"fear_triggers":["HURT", "FIRE"]
},{
"type" : "SPECIES",
"id":"WORM",
"fear_triggers":["HURT"]
},{
"type" : "SPECIES",
"id":"ZOMBIE"
},{
"type" : "SPECIES",
"id":"ROBOT"
},{
"type" : "SPECIES",
"id":"HORROR"
},{
"type" : "SPECIES",
"id":"ABBERATION"
},{
"type" : "SPECIES",
"id":"HALLUCINATION"
},{
"type" : "SPECIES",
"id":"UNKNOWN"
}
]
+604
View File
@@ -0,0 +1,604 @@
[
{
"type" : "technique",
"id" : "WIDE",
"name" : "Wide Strike",
"unarmed_allowed": true,
"melee_allowed": true,
"messages" : [
"You swing in a wide arc through %s",
"<npcname> swings in a wide arc through %s"
],
"aoe" : "wide",
"quick": true
},{
"type" : "technique",
"id" : "BRUTAL",
"name" : "Brutal Strike",
"unarmed_allowed": true,
"melee_allowed": true,
"crit_tec": true,
"stun_dur": 1,
"knockback_dist": 1,
"messages" : [
"You send %s reeling",
"<npcname> sends %s reeling"
]
},{
"type" : "technique",
"id" : "RAPID",
"name" : "Rapid Strike",
"min_unarmed": 0,
"unarmed_allowed": true,
"quick": true,
"messages" : [
"You quickly strike %s",
"<npcname> quickly strikes %s"
]
},{
"type" : "technique",
"id" : "WRAP",
"name" : "Wrap attack",
"min_unarmed": 0,
"unarmed_allowed": true,
"stun_dur": 2,
"messages" : [
"You wrap up %s",
"<npcname> wraps up %s"
]
},{
"type" : "technique",
"id" : "SWEEP",
"name" : "Sweep Attack",
"min_unarmed": 0,
"unarmed_allowed": true,
"down_dur": 2,
"messages" : [
"You sweep %s",
"<npcname> sweeps %s"
]
},{
"type" : "technique",
"id" : "tec_feint",
"name" : "Feint",
"unarmed_allowed": true,
"melee_allowed": true,
"defensive": true,
"miss_recovery": true
},{
"type" : "technique",
"id" : "tec_break",
"name" : "Grab Break",
"unarmed_allowed": true,
"melee_allowed": true,
"defensive": true,
"grab_break": true
},{
"type" : "technique",
"id" : "tec_precise",
"name" : "Precise Strike",
"min_unarmed": 0,
"unarmed_allowed": true,
"melee_allowed": true,
"crit_tec": true,
"messages" : [
"You jab deftly at %s",
"<npcname> jabs deftly at %s"
],
"stun_dur": 2
},{
"type" : "technique",
"id" : "tec_karate_rapid",
"name" : "quick punch",
"min_unarmed": 0,
"unarmed_allowed": true,
"messages" : [
"You quickly punch %s",
"<npcname> quickly punches %s"
],
"quick": true
},{
"type" : "technique",
"id" : "tec_karate_precise",
"name" : "karate chop",
"min_unarmed": 4,
"unarmed_allowed": true,
"crit_tec": true,
"messages" : [
"You karate chop %s",
"<npcname> karate chops %s"
],
"stun_dur": 2
},{
"type" : "technique",
"id" : "tec_aikido_throw",
"name" : "throw",
"min_unarmed": 2,
"unarmed_allowed": true,
"down_dur": 1,
"knockback_dist": 1,
"knockback_spread": 1,
"messages" : [
"You throw %s",
"<npcname> throws %s"
]
},{
"type" : "technique",
"id" : "tec_aikido_feint",
"name" : "feint at",
"min_unarmed": 2,
"unarmed_allowed": true,
"defensive": true,
"miss_recovery": true,
"messages" : [
"You feint at %s",
"<npcname> feints at %s"
]
},{
"type" : "technique",
"id" : "tec_aikido_disarm",
"name" : "disarm",
"min_unarmed": 3,
"unarmed_allowed": true,
"disarms": true,
"messages" : [
"You disarm %s",
"<npcname> disarms %s"
]
},{
"type" : "technique",
"id" : "tec_judo_throw",
"name" : "throw",
"min_unarmed": 3,
"unarmed_allowed": true,
"down_dur": 1,
"knockback_dist": 1,
"knockback_spread": 1,
"messages" : [
"You throw %s",
"<npcname> throws %s"
]
},{
"type" : "technique",
"id" : "tec_judo_grab",
"name" : "grab",
"min_unarmed": 2,
"unarmed_allowed": true,
"down_dur": 1,
"messages" : [
"You grab %s",
"<npcname> grabs %s"
]
},{
"type" : "technique",
"id" : "tec_taichi_disarm",
"name" : "disarm",
"min_unarmed": 3,
"unarmed_allowed": true,
"disarms": true,
"messages" : [
"You disarm %s",
"<npcname> disarms %s"
]
},{
"type" : "technique",
"id" : "tec_taichi_precise",
"name" : "precise strike",
"min_unarmed": 4,
"unarmed_allowed": true,
"crit_tec": true,
"stun_dur": 2,
"messages" : [
"You strike %s",
"<npcname> strikes %s"
]
},{
"type" : "technique",
"id" : "tec_capoeira_feint",
"name" : "feint at",
"min_unarmed": 1,
"unarmed_allowed": true,
"defensive": true,
"miss_recovery": true,
"messages" : [
"You feint at %s",
"<npcname> feints at %s"
]
},{
"type" : "technique",
"id" : "tec_muay_thai_elbow",
"name" : "elbow",
"min_unarmed": 2,
"unarmed_allowed": true,
"messages" : [
"You elbow %s",
"<npcname> elbows %s"
],
"quick": true,
"stun_dur": 1
},{
"type" : "technique",
"id" : "tec_muay_thai_kick",
"name" : "kick",
"min_unarmed": 3,
"unarmed_allowed": true,
"messages" : [
"You power-kick %s",
"<npcname> power-kicks %s"
],
"stun_dur": 1
},{
"type" : "technique",
"id" : "tec_muay_thai_knee",
"name" : "flying knee",
"min_unarmed": 4,
"unarmed_allowed": true,
"crit_tec": true,
"messages" : [
"You flying knee %s",
"<npcname> flying knees %s"
],
"stun_dur": 1
},{
"type" : "technique",
"id" : "tec_krav_maga_rapid",
"name" : "quick punch",
"min_unarmed": 2,
"unarmed_allowed": true,
"messages" : [
"You quickly punch %s",
"<npcname> quickly punches %s"
],
"quick": true
},{
"type" : "technique",
"id" : "tec_krav_maga_feint",
"name" : "feint at",
"min_unarmed": 2,
"unarmed_allowed": true,
"defensive": true,
"miss_recovery": true,
"messages" : [
"You feint at %s",
"<npcname> feints at %s"
]
},{
"type" : "technique",
"id" : "tec_krav_maga_precise",
"name" : "precise strike",
"min_unarmed": 3,
"unarmed_allowed": true,
"crit_tec": true,
"messages" : [
"You jab %s",
"<npcname> jabs %s"
],
"stun_dur": 2
},{
"type" : "technique",
"id" : "tec_krav_maga_disarm",
"name" : "disarm",
"min_unarmed": 3,
"unarmed_allowed": true,
"disarms": true,
"messages" : [
"You disarm %s",
"<npcname> disarms %s"
]
},{
"type" : "technique",
"id" : "tec_krav_maga_grab",
"name" : "grab",
"min_unarmed": 4,
"unarmed_allowed": true,
"down_dur": 1,
"messages" : [
"You grab %s",
"<npcname> grabs %s"
]
},{
"type" : "technique",
"id" : "tec_krav_maga_break",
"name" : "grab break",
"min_unarmed": 4,
"unarmed_allowed": true,
"melee_allowed": true,
"defensive": true,
"grab_break": true
},{
"type" : "technique",
"id" : "tec_ninjutsu_precise",
"name" : "surprise attack",
"min_unarmed": 3,
"min_melee": 3,
"unarmed_allowed": true,
"melee_allowed": true,
"crit_tec": true,
"messages" : [
"You surprise attack %s",
"<npcname> surprise attacks %s"
],
"stun_dur": 2,
"bash_mult": 1.4,
"cut_mult": 2
},{
"type" : "technique",
"id" : "tec_taekwondo_precise",
"name" : "axe-kick",
"min_unarmed": 2,
"unarmed_allowed": true,
"crit_tec": true,
"stun_dur": 2,
"messages" : [
"You axe-kick %s",
"<npcname> axe-kicks %s"
]
},{
"type" : "technique",
"id" : "tec_taekwondo_push",
"name" : "side kick",
"min_unarmed":3,
"unarmed_allowed": true,
"messages" : [
"You side-kick %s",
"<npcname> side-kicks %s"
],
"stun_dur": 1,
"knockback_dist": 1
},{
"type" : "technique",
"id" : "tec_taekwondo_sweep",
"name" : "sweep kick",
"min_unarmed": 4,
"unarmed_allowed": true,
"messages" : [
"You sweep-kick %s",
"<npcname> sweep-kicks %s"
],
"down_dur": 2
},{
"type" : "technique",
"id" : "tec_zuiquan_feint",
"name" : "Drunk feint",
"min_unarmed": 3,
"unarmed_allowed": true,
"defensive": true,
"miss_recovery": true,
"messages" : [
"You stumble and leer at %s",
"<npcname> stumbles and leers at %s"
]
},{
"type" : "technique",
"id" : "tec_venom_snake_feint",
"name" : "Viper Hiss",
"unarmed_allowed": true,
"melee_allowed": true,
"defensive": true,
"miss_recovery": true,
"messages" : [
"You hiss threateningly at %s",
"<npcname> hisses threateningly at %s"
]
},{
"type" : "technique",
"id" : "tec_venom_snake_rapid",
"name" : "Viper Bite",
"min_unarmed": 0,
"unarmed_allowed": true,
"quick": true,
"messages" : [
"You Snakebite %s",
"<npcname> Snakebites %s"
],
"bash_mult" : 2
},{
"type" : "technique",
"id" : "tec_venom_snake_break",
"name" : "Viper Writhe",
"unarmed_allowed": true,
"melee_allowed": true,
"defensive": true,
"grab_break": true
},{
"type" : "technique",
"id" : "tec_scorpion_brutal",
"name" : "Stinger Strike",
"unarmed_allowed": true,
"crit_tec": true,
"stun_dur": 3,
"knockback_dist": 3,
"messages" : [
"Your Stinger Kick sends %s flying!",
"<npcname>'s Stinger Kick sends %s flying!"
],
"bash_mult": 2
},{
"type" : "technique",
"id" : "tec_scorpion_precise",
"name" : "Pincer Strike",
"min_unarmed": 0,
"unarmed_allowed": true,
"messages" : [
"You punch %s with your Pincer Fist!",
"<npcname> jabs %s with a Pincer Fist!"
],
"stun_dur": 2,
"bash_mult": 1.25
},{
"type" : "technique",
"id" : "tec_toad_grab",
"name" : "Toad's Tongue",
"min_unarmed": 4,
"unarmed_allowed": true,
"quick": true,
"down_dur": 3,
"messages" : [
"You snatch and clobber %s",
"<npcname> snatches and clobbers %s"
],
"bash_mult": 1.5
},{
"type" : "technique",
"id" : "tec_centipede_rapid",
"name" : "Rapid Strike",
"min_unarmed": 2,
"unarmed_allowed": true,
"quick": true,
"messages" : [
"You swiftly hit %s",
"<npcname> swiftly hits %s"
]
},{
"type" : "technique",
"id" : "tec_snake_rapid",
"name" : "Snake Snap",
"min_unarmed": 2,
"unarmed_allowed": true,
"quick": true,
"messages" : [
"You swiftly jab %s",
"<npcname> swiftly jabs %s"
]
},{
"type" : "technique",
"id" : "tec_snake_feint",
"name" : "Snake Slide",
"min_unarmed": 3,
"unarmed_allowed": true,
"defensive": true,
"miss_recovery": true,
"messages" : [
"You make serpentine hand motions at %s",
"<npcname> makes serpentine hand motions at %s"
]
},{
"type" : "technique",
"id" : "tec_snake_break",
"name" : "Snake Slither",
"min_unarmed": 4,
"unarmed_allowed": true,
"defensive": true,
"grab_break": true,
"messages" : [
"You slither free!",
"<npcname slithers free!"
]
},{
"type" : "technique",
"id" : "tec_snake_precise",
"name" : "Snake Strike",
"min_unarmed": 4,
"unarmed_allowed": true,
"crit_tec": true,
"messages" : [
"You strike out at %s",
"<npcname> strikes out at %s"
],
"stun_dur": 2
},{
"type" : "technique",
"id" : "tec_tiger_grab",
"name" : "Tiger Takedown",
"min_unarmed": 4,
"unarmed_allowed": true,
"down_dur": 1,
"messages" : [
"You grab and ground %s!",
"<npcname> grabs and grounds %s!"
]
},{
"type" : "technique",
"id" : "tec_leopard_precise",
"name" : "Leopard Fist",
"min_unarmed": 5,
"unarmed_allowed": true,
"crit_tec": true,
"messages" : [
"You strike out at %s with your Leopard Fist!",
"<npcname> strikes out at %s with a Leopard Fist!"
],
"stun_dur": 2
},{
"type" : "technique",
"id" : "tec_leopard_rapid",
"name" : "Leopard Swipe",
"min_unarmed": 2,
"unarmed_allowed": true,
"quick": true,
"messages" : [
"You quickly swipe at %s",
"<npcname> quickly swipes at %s"
]
},{
"type" : "technique",
"id" : "tec_dragon_grab",
"name" : "Dragon Snatch",
"min_unarmed": 4,
"unarmed_allowed": true,
"messages" : [
"You grab and knee %s!",
"<npcname> grabs and knees %s!"
]
},{
"type" : "technique",
"id" : "tec_dragon_sweep",
"name" : "Dragon Sweeper",
"min_unarmed": 5,
"unarmed_allowed": true,
"down_dur": 2,
"messages" : [
"You low-roundhouse %s 's legs!",
"<npcname> low-roundhouses %s 's legs!"
]
},{
"type" : "technique",
"id" : "tec_dragon_brutal",
"name" : "Dragon Strike",
"min_unarmed": 6,
"unarmed_allowed": true,
"crit_tec": true,
"stun_dur": 1,
"knockback_dist": 1,
"messages" : [
"You send %s reeling with a Dragon Strike!",
"<npcname> sends %s reeling with a Dragon Strike!"
]
},{
"type" : "technique",
"id" : "tec_crane_feint",
"name" : "Crane Wing",
"min_unarmed": 2,
"unarmed_allowed": true,
"defensive": true,
"miss_recovery": true,
"messages": [
"You raise your arms intimidatingly!",
"<npcname> performs the Crane Wing!"
]
},{
"type" : "technique",
"id" : "tec_crane_break",
"name" : "Crane Flap",
"min_unarmed": 3,
"unarmed_allowed": true,
"defensive": true,
"grab_break": true,
"messages": [
"You swing your arms and break free!",
"<npcname> flaps free!"
]
},{
"type" : "technique",
"id" : "tec_crane_precise",
"name" : "Crane Strike",
"min_unarmed": 4,
"unarmed_allowed": true,
"crit_tec": true,
"messages" : [
"You hand-peck %s",
"<npcname> hand-pecks %s"
],
"stun_dur": 2
}
]
File diff suppressed because it is too large Load Diff
+7
View File
@@ -0,0 +1,7 @@
[
{
"type" : "tool_quality",
"id" : "CUT",
"name" : "cutting quality"
}
]
+47
View File
@@ -0,0 +1,47 @@
[
{
"type" : "tutorial_messages",
"messages" : [
"Welcome to the Cataclysm tutorial! As you play, pop-ups like this one will appear to guide you through the basic game actions. Pressing spacebar will close the pop-up.",
"The '@' character in the center of the screen represents you. To move, you can use the numpad, the vikeys (hjklyubn), or the arrow keys. To have your character wait in place, press '.'",
"To see what the symbols around you mean, press ';'. You'll be able to scroll around and get information on the terrain, monsters, and items in the world around you.",
"That brown '+' next to you is a closed door. To open it, either simply walk into it, or press 'o' and then a movement key.",
"You can close an opened door by pressing 'c' and then a movement key. Closing doors behind you can often slow down throngs of monsters greatly.",
"Most monsters will have to smash their way through a closed door. If a door is locked or stuck, you can smash it by pressing 's' and then a movement key.",
"You can smash through windows by pressing 's' and then a movement key. A smashed window takes a long time to climb through, and it's possible to hurt yourself on the broken glass, but it's a good last-ditch escape route. You can smash through other things, too; use the ';' command and look for things that are \"Smashable.\"",
"You just stepped on a space with one or more items. If you wish to pick it up, press ',' or 'g'.",
"The nearby { is a display rack, and the blue background indicates that there are items there. If you examine the square by pressing 'e', you can pick up items without moving to the square.",
"The Examine command is useful for grabbing items off window frames, around corners, etc. It's also used for interacting with a few terrain types. Interactive terrain is usually designated with a '6' symbol.",
"You don't have space in your inventory to store the item you just tried to pick up. You need to wear something with storage space, like a backpace or cargo pants, to gain more storage space.",
"The item you just picked up has been wielded as a weapon automatically. This happened because you do not have space in your inventory to stash the item, and so you must carry it in your hand. To expand your inventory space, try wearing clothing with a lot of storage space, like a backpack, or cargo pants.",
"The item you just picked up has been wielded as a weapon automatically. This happened because it is a good melee weapon, and you were empty-handed. This usually is faster than than picking it up, then wielding it.",
"The item you just picked up went into your inventory, the shared storage space of all the clothing you're wearing. To view your inventory, press 'i'. You can then press the letter of any item to get more information about it.",
"The item you just picked up is a type of clothing! To wear clothing, press W and then select an item. To take off clothing, press T, or simply take it off and drop it in one action by pressing d.",
"The item you just picked up is a good weapon! To wield a weapon, press w, then pick what to wield. To wield nothing, either drop your weapon with d, or press 'w-' to put it away. A zombie has spawned nearby. To attack it, simply move into it.",
"The item you just picked up is a comestible! To eat a comestible, press 'E'. Comestibles are items you can use up, like food, drink, pills, etc. Most food expires eventually, so be careful. Some comestibles, especially drugs, can cause subtle, long-term effects.",
"The item you just picked up is a tool! To activate a tool, press 'a'. Some tools have a set charge, which can be reloaded once depleted. Other are single-use items, and still others are reusable.",
"The item you just picked up is a firearm! Guns are very powerful weapons but they require ammunition. Firearms have many special attributes. Most modify the damage done by their ammunition. They also have dispersion, which affects their chance to hit. Some guns are semi-automatic, while others can fire a burst. Some firearms (mainly bows and other muscle-powered weapons) have a range, which is added on top of the ammo's range when firing.",
"The item you just picked up is ammunition, used with a gun. It has many special attributes. The damage value is the maximum done on a standard hit; a critical hit or headshot will do much more damage. Some monsters or NPCs will wear armor which reduces the damage from gunfire; a high Armor-pierce value will reduce this effect. The Range is the maximum range the ammo can achieve, and the dispersion affects its chance to hit.",
"You just put on an article of clothing that provides physical protection. There are two types of damage that clothing defends against, bashing, and cutting. Most monsters deal bashing damage, but cutting is often the more deadly of the two. Bullets are considered cutting damage.",
"You just put on an article of clothing that provides ample storage space. This will allow you to carry much more stuff, but be aware that there is also a limit on the weight you can carry which depends on strength. The item you put on also encumbered your torso. This will make combat a little more difficult. To check encumbrance, press @.",
"You just put on an article of clothing that protects against the environment. The most common and imporant are respiratory devices, which will protect you against smoke, air-born toxins or organisms, and other common hazards. However, they also make it a little harder to breath when running, so you'll move more slowly. To check encumbrance, press @.",
"If you press 'i' and then the letter of your weapon, you'll see its combat stats. Bashing damage ignores most armor, but varies greatly and requires strength. Cutting damage is a fixed amount, but is blocked by armor. The To-hit bonus affects your chances of hitting. The amount of time it takes to swing your melee weapon depends on both its size and weight; small, compact weapons are the fastest.",
"Hitting a monster will stun it briefly, allowing you to escape or get in another attack. Your dexterity and melee skills are used to determine whether an attack hits, while strength affects damage.",
"Taking damage often causes pain. Small amounts of pain are tolerable, but as it gets worse your stats will drop and you will move much slower. To reduce pain, take painkillers like codeine, or simply wait it out.",
"When you kill a monster it will often leave behind a corpse. Corpses can be important sources of food, but you must Butcher them by standing on the corpse and pressing 'B'. You'll need a bladed weapon in your inventory, preferably a small, very sharp one. An unskilled butcher may only get a few pieces of meat, or none at all. Note that many monsters, such as zombies, leave tainted meat, unsuitable for consumption.",
"That drug you just took is a painkiller. Painkillers are very important to keep on hand, as pain both penalizes your stats and makes you slower. Be careful, as the stronger painkillers can make you woozy, and some are even addictive.",
"That drug you just took placed an effect on you. To check your effects, press '@'. Most only last a short while, while others, like chronic disease, last until cured by some other means.",
"You just drank a bottle of water, reducing your thirst level and reducing the water level in the bottle. You'll probably want to drop empty bottles, or you might want to save them to refill from a water source later.",
"You just activated a grenade! You probably want to throw it. To throw an item, press 't' and then select the item to throw. The maximum range depends on your strength and the object's weight and size. Throwing isn't very good in most combat situations, but if you've got some fire power...",
"You just placed a trap. Traps are permanent until set off, and can be an important defensive tactic, particularly when sleeping in unsafe territory. Try stepping on that _ -- don't worry, it's a harmless bubblewrap trap.",
"You're carrying more volume than you have storage for, which means you are carrying some stuff in the crook of your arm or in some other awkward manner. While overloaded like this, you will suffer SEVERE encumberment penalties, making combat dangerous. Either drop an item, or possibly wield something-- the object you are wielding does not take up inventory space.",
"To use a gun, first wield it with the 'w' key. Next you need to reload using the 'r' key, assuming you have the proper ammo. If you wish to unload your gun, possibly to change ammunition types, press 'U'.",
"Once you have a loaded gun wielded, you can fire it. Press the 'f' key to fire a single shot. With many guns, you can fire a burst by pressing 'F'. You'll automatically target the last monster you shot at, or the closest monster to you. You can change your target with the movement keys, or cycle through monsters with '<' and '>'. To fire, press 'f' or '.'; to cancel, hit the escape key.",
"After firing your gun, you will probably notice a Recoil alert in the lower right. Generally speaking, the more damaging the ammo, the worse the recoil. Recoil severely reduces your chance to hit, but you can eliminate recoil by pausing ('.') for a turn or moving normally. High strength reduces recoil, so weak characters might want to stick to .22 or 9mm guns.",
"That yellow > next to you is a staircase leading down. To go downtairs, step onto the staircase and press the '>' key. Similarly, a yellow < is stairs leading up, and can be followed with the '<' key.",
"It's dark down here! Without a source of light, you'll be limited to seeing only one space in any direction. You'll encounter darkness while underground or at night. Press '<' to go back upstairs, and look around for a flashlight.",
"It's dark down here! Fortunately, you have a flashlight. Press 'a' and then select your flashlight to turn it on.",
"~ is a terrain symbol that indicates water. From a water source like this, you can fill any containers you might have. Step onto the water, then press the pickup key (',' or 'g'), then select a watertight container to put the water into."
]
}
]
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
+8 -8
View File
@@ -1,14 +1,14 @@
# This message may be 16 lines long at maximum.
# Max length of a line is 68 characters; the following line is for reference
####################################################################
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.
Major features v0.9 Ma:
* World Factory: Multiple worlds managed at once.
* New mutation categories.
* TsuTiles.
* Basic mouse support in SDL builds.
* Vehicle constructon system rework.
* Backward compatability with 0.8 saves.
* Unbielievable amount of new content.
For latest discussions and news on Cataclysm DDA, please visit:
Homepage: http://www.cataclysmdda.com/
-325
View File
@@ -1,325 +0,0 @@
[
{
"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
}
]
File diff suppressed because it is too large Load Diff
+291
View File
@@ -0,0 +1,291 @@
[
{
"id":"UP",
"name":"Pan up",
"bindings":[
{
"input_method":"keyboard",
"key":"k"
},
{
"input_method":"keyboard",
"key":"8"
},
{
"input_method":"keyboard",
"key":"UP"
},
{
"input_method":"gamepad",
"key":"JOY_UP"
}
]
},
{
"id":"DOWN",
"name":"Pan down",
"bindings":[
{
"input_method":"keyboard",
"key":"j"
},
{
"input_method":"keyboard",
"key":"DOWN"
},
{
"input_method":"keyboard",
"key":"2"
},
{
"input_method":"gamepad",
"key":"JOY_DOWN"
}
]
},
{
"id":"LEFT",
"name":"Pan left",
"bindings":[
{
"input_method":"keyboard",
"key":"h"
},
{
"input_method":"keyboard",
"key":"LEFT"
},
{
"input_method":"keyboard",
"key":"4"
},
{
"input_method":"gamepad",
"key":"JOY_LEFT"
}
]
},
{
"id":"RIGHT",
"name":"Pan right",
"bindings":[
{
"input_method":"keyboard",
"key":"l"
},
{
"input_method":"keyboard",
"key":"RIGHT"
},
{
"input_method":"keyboard",
"key":"6"
},
{
"input_method":"gamepad",
"key":"JOY_RIGHT"
}
]
},
{
"id":"LEFTUP",
"name":"Pan up-left",
"bindings":[
{
"input_method":"keyboard",
"key":"y"
},
{
"input_method":"keyboard",
"key":"7"
},
{
"input_method":"gamepad",
"key":"JOY_LEFTUP"
}
]
},
{
"id":"RIGHTUP",
"name":"Pan up-right",
"bindings":[
{
"input_method":"keyboard",
"key":"u"
},
{
"input_method":"keyboard",
"key":"9"
},
{
"input_method":"gamepad",
"key":"JOY_RIGHTUP"
}
]
},
{
"id":"LEFTDOWN",
"name":"Pan down-left",
"bindings":[
{
"input_method":"keyboard",
"key":"b"
},
{
"input_method":"keyboard",
"key":"1"
},
{
"input_method":"gamepad",
"key":"JOY_LEFTDOWN"
}
]
},
{
"id":"RIGHTDOWN",
"name":"Pan down-right",
"bindings":[
{
"input_method":"keyboard",
"key":"n"
},
{
"input_method":"keyboard",
"key":"3"
},
{
"input_method":"gamepad",
"key":"JOY_RIGHTDOWN"
}
]
},
{
"id":"HELP_KEYBINDINGS",
"name":"Display Help",
"bindings":[
{
"input_method":"keyboard",
"key":"?"
}
]
},
{
"id":"CENTER",
"category":"OVERMAP",
"name":"Center On Character",
"bindings":[
{
"input_method":"keyboard",
"key":"0"
}
]
},
{
"id":"LEVEL_UP",
"name":"Go Up",
"bindings":[
{
"input_method":"keyboard",
"key":"PPAGE"
},
{
"input_method":"keyboard",
"key":"<"
}
]
},
{
"id":"LEVEL_DOWN",
"name":"Go Down",
"bindings":[
{
"input_method":"keyboard",
"key":"NPAGE"
},
{
"input_method":"keyboard",
"key":">"
}
]
},
{
"id":"CONFIRM",
"name":"Confirm Choice",
"bindings":[
{
"input_method":"keyboard",
"key":"RETURN"
}
]
},
{
"id":"DELETE_NOTE",
"category":"OVERMAP",
"name":"Delete Note",
"bindings":[
{
"input_method":"keyboard",
"key":"D"
}
]
},
{
"id":"CREATE_NOTE",
"category":"OVERMAP",
"name":"Create/Edit Note",
"bindings":[
{
"input_method":"keyboard",
"key":"N"
}
]
},
{
"id":"LIST_NOTES",
"category":"OVERMAP",
"name":"List Notes",
"bindings":[
{
"input_method":"keyboard",
"key":"L"
}
]
},
{
"id":"SEARCH",
"name":"Search",
"bindings":[
{
"input_method":"keyboard",
"key":"/"
}
]
},
{
"id":"QUIT",
"category":"OVERMAP",
"name":"Exit Screen",
"bindings":[
{
"input_method":"keyboard",
"key":"ESC"
},
{
"input_method":"keyboard",
"key":"q"
},
{
"input_method":"keyboard",
"key":"Q"
},
{
"input_method":"keyboard",
"key":" "
},
{
"input_method":"gamepad",
"key":"JOY_3"
}
]
}
]
-319
View File
@@ -1,319 +0,0 @@
[
{
"name" : "GROUP_FOREST",
"default" : "mon_squirrel",
"monsters" : [
{ "monster" : "mon_rabbit", "freq" : 150, "multiplier" : 0 },
{ "monster" : "mon_deer", "freq" : 30, "multiplier" : 3 },
{ "monster" : "mon_moose", "freq" : 10, "multiplier" : 3 },
{ "monster" : "mon_wolf", "freq" : 30, "multiplier" : 5 },
{ "monster" : "mon_coyote", "freq" : 30, "multiplier" : 5 },
{ "monster" : "mon_bear", "freq" : 20, "multiplier" : 10 },
{ "monster" : "mon_cougar", "freq" : 20, "multiplier" : 10 },
{ "monster" : "mon_spider_wolf", "freq" : 30, "multiplier" : 10 },
{ "monster" : "mon_spider_jumping", "freq" : 30, "multiplier" : 10 },
{ "monster" : "mon_dog", "freq" : 10, "multiplier" : 0 },
{ "monster" : "mon_cat", "freq" : 10, "multiplier" : 0 },
{ "monster" : "mon_crow", "freq" : 30, "multiplier" : 0 }
]
},
{
"name" : "GROUP_ANT",
"default" : "mon_ant",
"monsters" : [
{ "monster" : "mon_ant_larva", "freq" : 40, "multiplier" : 0 },
{ "monster" : "mon_ant_soldier", "freq" : 90, "multiplier" : 5 },
{ "monster" : "mon_ant_queen", "freq" : 0, "multiplier" : 0 }
]
},
{
"name" : "GROUP_BEE",
"default" : "mon_bee",
"monsters" : [
]
},
{
"name" : "GROUP_WORM",
"default" : "mon_worm",
"monsters" : [
{ "monster" : "mon_graboid", "freq" : 30, "multiplier" : 20 },
{ "monster" : "mon_halfworm", "freq" : 0, "multiplier" : 0 }
]
},
{
"name" : "GROUP_ZOMBIE",
"default" : "mon_zombie",
"monsters" : [
{ "monster" : "mon_zombie_cop", "freq" : 20, "multiplier" : 3 },
{ "monster" : "mon_zombie_fast", "freq" : 70, "multiplier" : 2 },
{ "monster" : "mon_zombie_grabber", "freq" : 70, "multiplier" : 1 },
{ "monster" : "mon_skeleton", "freq" : 30, "multiplier" : 2 },
{ "monster" : "mon_zombie_smoker", "freq" : 30, "multiplier" : 5 },
{ "monster" : "mon_zombie_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 },
{ "monster" : "mon_zombie_necro", "freq" : 1, "multiplier" : 25 },
{ "monster" : "mon_boomer", "freq" : 30, "multiplier" : 7 },
{ "monster" : "mon_zombie_brute", "freq" : 10, "multiplier" : 15 },
{ "monster" : "mon_zombie_hulk", "freq" : 1, "multiplier" : 50 },
{ "monster" : "mon_zombie_master", "freq" : 1, "multiplier" : 25 },
{ "monster" : "mon_crow", "freq" : 1, "multiplier" : 0 }
]
},
{
"name" : "GROUP_TRIFFID",
"default" : "mon_triffid",
"monsters" : [
{ "monster" : "mon_triffid_young", "freq" : 300, "multiplier" : 0 },
{ "monster" : "mon_vinebeast", "freq" : 160, "multiplier" : 10 },
{ "monster" : "mon_triffid_queen", "freq" : 60, "multiplier" : 0 },
{ "monster" : "mon_triffid_heart", "freq" : 0, "multiplier" : 0 }
]
},
{
"name" : "GROUP_FUNGI",
"default" : "mon_fungaloid",
"monsters" : [
{ "monster" : "mon_fungaloid_dormant", "freq" : 0, "multiplier" : 0 },
{ "monster" : "mon_ant_fungus", "freq" : 0, "multiplier" : 0 },
{ "monster" : "mon_zombie_fungus", "freq" : 300, "multiplier" : 0 },
{ "monster" : "mon_boomer_fungus", "freq" : 30, "multiplier" : 0 },
{ "monster" : "mon_spore", "freq" : 0, "multiplier" : 0 },
{ "monster" : "mon_fungal_wall", "freq" : 0, "multiplier" : 0 },
{ "monster" : "mon_fungaloid_queen", "freq" : 0, "multiplier" : 0 }
]
},
{
"name" : "GROUP_GOO",
"default" : "mon_blob",
"monsters" : [
{ "monster" : "mon_blob_small", "freq" : 200, "multiplier" : 0 }
]
},
{
"name" : "GROUP_CHUD",
"default" : "mon_chud",
"monsters" : [
{ "monster" : "mon_one_eye", "freq" : 90, "multiplier" : 0 },
{ "monster" : "mon_crawler", "freq" : 35, "multiplier" : 0 }
]
},
{
"name" : "GROUP_SEWER",
"default" : "mon_sewer_rat",
"monsters" : [
{ "monster" : "mon_sewer_fish", "freq" : 470, "multiplier" : 0 },
{ "monster" : "mon_sewer_snake", "freq" : 240, "multiplier" : 0 }
]
},
{
"name" : "GROUP_SWAMP",
"default" : "mon_mosquito",
"monsters" : [
{ "monster" : "mon_dragonfly", "freq" : 130, "multiplier" : 0 },
{ "monster" : "mon_centipede", "freq" : 150, "multiplier" : 0 },
{ "monster" : "mon_frog", "freq" : 100, "multiplier" : 0 },
{ "monster" : "mon_slug", "freq" : 85, "multiplier" : 0 },
{ "monster" : "mon_dermatik_larva", "freq" : 0, "multiplier" : 0 },
{ "monster" : "mon_dermatik", "freq" : 65, "multiplier" : 0 }
]
},
{
"name" : "GROUP_LAB",
"default" : "mon_zombie_scientist",
"monsters" : [
{ "monster" : "mon_blob_small", "freq" : 25, "multiplier" : 0 },
{ "monster" : "mon_manhack", "freq" : 245, "multiplier" : 0 },
{ "monster" : "mon_skitterbot", "freq" : 245, "multiplier" : 0 }
]
},
{
"name" : "GROUP_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",
"monsters" : [
{ "monster" : "mon_flying_polyp", "freq" : 25, "multiplier" : 0 },
{ "monster" : "mon_hunting_horror", "freq" : 240, "multiplier" : 0 },
{ "monster" : "mon_mi_go", "freq" : 120, "multiplier" : 0 },
{ "monster" : "mon_yugg", "freq" : 70, "multiplier" : 0 },
{ "monster" : "mon_gelatin", "freq" : 120, "multiplier" : 0 },
{ "monster" : "mon_flaming_eye", "freq" : 120, "multiplier" : 0 },
{ "monster" : "mon_kreck", "freq" : 210, "multiplier" : 0 },
{ "monster" : "mon_gozu", "freq" : 25, "multiplier" : 0 }
]
},
{
"name" : "GROUP_SPIRAL",
"default" : "mon_human_snail",
"monsters" : [
{ "monster" : "mon_twisted_body", "freq" : 180, "multiplier" : 0 },
{ "monster" : "mon_vortex", "freq" : 80, "multiplier" : 0 }
]
},
{
"name" : "GROUP_VANILLA",
"default" : "mon_zombie",
"monsters" : [
]
},
{
"name" : "GROUP_SPIDER",
"default" : "mon_spider_wolf",
"monsters" : [
{ "monster" : "mon_spider_web", "freq" : 200, "multiplier" : 0 },
{ "monster" : "mon_spider_jumping", "freq" : 400, "multiplier" : 0 },
{ "monster" : "mon_spider_widow", "freq" : 200, "multiplier" : 0 }
]
},
{
"name" : "GROUP_ROBOT",
"default" : "mon_manhack",
"monsters" : [
{ "monster" : "mon_skitterbot", "freq" : 220, "multiplier" : 0 },
{ "monster" : "mon_secubot", "freq" : 150, "multiplier" : 0 },
{ "monster" : "mon_copbot", "freq" : 0, "multiplier" : 0 },
{ "monster" : "mon_molebot", "freq" : 40, "multiplier" : 0 },
{ "monster" : "mon_tripod", "freq" : 110, "multiplier" : 0 },
{ "monster" : "mon_chickenbot", "freq" : 60, "multiplier" : 0 },
{ "monster" : "mon_tankbot", "freq" : 20, "multiplier" : 0 }
]
},
{
"name" : "GROUP_POLICE", "_comment" : "+30% cops",
"default" : "mon_zombie",
"monsters" : [
{ "monster" : "mon_zombie_cop", "freq" : 320, "multiplier" : 3 },
{ "monster" : "mon_zombie_fast", "freq" : 70, "multiplier" : 2 },
{ "monster" : "mon_zombie_grabber", "freq" : 70, "multiplier" : 1 },
{ "monster" : "mon_skeleton", "freq" : 30, "multiplier" : 2 },
{ "monster" : "mon_zombie_smoker", "freq" : 30, "multiplier" : 5 },
{ "monster" : "mon_zombie_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 },
{ "monster" : "mon_zombie_necro", "freq" : 1, "multiplier" : 25 },
{ "monster" : "mon_boomer", "freq" : 30, "multiplier" : 7 },
{ "monster" : "mon_zombie_brute", "freq" : 10, "multiplier" : 15 },
{ "monster" : "mon_zombie_hulk", "freq" : 1, "multiplier" : 50 },
{ "monster" : "mon_zombie_master", "freq" : 1, "multiplier" : 25 },
{ "monster" : "mon_crow", "freq" : 1, "multiplier" : 0 }
]
},
{
"name" : "GROUP_HOUSE", "_comment" : "+15% child",
"default" : "mon_zombie",
"monsters" : [
{ "monster" : "mon_zombie_child", "freq" : 150, "multiplier" : 2 },
{ "monster" : "mon_zombie_cop", "freq" : 20, "multiplier" : 2 },
{ "monster" : "mon_zombie_fast", "freq" : 70, "multiplier" : 2 },
{ "monster" : "mon_zombie_grabber", "freq" : 70, "multiplier" : 1 },
{ "monster" : "mon_skeleton", "freq" : 30, "multiplier" : 2 },
{ "monster" : "mon_zombie_smoker", "freq" : 30, "multiplier" : 5 },
{ "monster" : "mon_zombie_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 },
{ "monster" : "mon_zombie_necro", "freq" : 1, "multiplier" : 25 },
{ "monster" : "mon_boomer", "freq" : 30, "multiplier" : 7 },
{ "monster" : "mon_zombie_brute", "freq" : 10, "multiplier" : 15 },
{ "monster" : "mon_zombie_hulk", "freq" : 1, "multiplier" : 50 },
{ "monster" : "mon_zombie_master", "freq" : 1, "multiplier" : 25 },
{ "monster" : "mon_crow", "freq" : 1, "multiplier" : 0 }
]
},
{
"name" : "GROUP_PHARM", "_comment" : "+15% fast",
"default" : "mon_zombie",
"monsters" : [
{ "monster" : "mon_zombie_cop", "freq" : 20, "multiplier" : 2 },
{ "monster" : "mon_zombie_fast", "freq" : 220, "multiplier" : 2 },
{ "monster" : "mon_zombie_grabber", "freq" : 70, "multiplier" : 1 },
{ "monster" : "mon_skeleton", "freq" : 30, "multiplier" : 2 },
{ "monster" : "mon_zombie_smoker", "freq" : 30, "multiplier" : 5 },
{ "monster" : "mon_zombie_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 },
{ "monster" : "mon_zombie_necro", "freq" : 1, "multiplier" : 25 },
{ "monster" : "mon_boomer", "freq" : 30, "multiplier" : 7 },
{ "monster" : "mon_zombie_brute", "freq" : 10, "multiplier" : 15 },
{ "monster" : "mon_zombie_hulk", "freq" : 1, "multiplier" : 50 },
{ "monster" : "mon_zombie_master", "freq" : 1, "multiplier" : 25 },
{ "monster" : "mon_crow", "freq" : 1, "multiplier" : 0 }
]
},
{
"name" : "GROUP_ELECTRO", "_comment" : "+15% electric",
"default" : "mon_zombie",
"monsters" : [
{ "monster" : "mon_zombie_cop", "freq" : 20, "multiplier" : 2 },
{ "monster" : "mon_zombie_fast", "freq" : 70, "multiplier" : 2 },
{ "monster" : "mon_zombie_grabber", "freq" : 70, "multiplier" : 1 },
{ "monster" : "mon_skeleton", "freq" : 30, "multiplier" : 2 },
{ "monster" : "mon_zombie_smoker", "freq" : 30, "multiplier" : 5 },
{ "monster" : "mon_zombie_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 },
{ "monster" : "mon_zombie_necro", "freq" : 1, "multiplier" : 25 },
{ "monster" : "mon_boomer", "freq" : 30, "multiplier" : 7 },
{ "monster" : "mon_zombie_brute", "freq" : 10, "multiplier" : 15 },
{ "monster" : "mon_zombie_hulk", "freq" : 1, "multiplier" : 50 },
{ "monster" : "mon_zombie_master", "freq" : 1, "multiplier" : 25 },
{ "monster" : "mon_crow", "freq" : 1, "multiplier" : 0 }
]
},
{
"name" : "GROUP_GROCERY", "_comment" : "+15% bommers",
"default" : "mon_zombie",
"monsters" : [
{ "monster" : "mon_zombie_cop", "freq" : 20, "multiplier" : 2 },
{ "monster" : "mon_zombie_fast", "freq" : 70, "multiplier" : 2 },
{ "monster" : "mon_zombie_grabber", "freq" : 70, "multiplier" : 1 },
{ "monster" : "mon_skeleton", "freq" : 30, "multiplier" : 2 },
{ "monster" : "mon_zombie_smoker", "freq" : 30, "multiplier" : 5 },
{ "monster" : "mon_zombie_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 },
{ "monster" : "mon_zombie_necro", "freq" : 1, "multiplier" : 25 },
{ "monster" : "mon_boomer", "freq" : 180, "multiplier" : 7 },
{ "monster" : "mon_zombie_brute", "freq" : 10, "multiplier" : 15 },
{ "monster" : "mon_zombie_hulk", "freq" : 1, "multiplier" : 50 },
{ "monster" : "mon_zombie_master", "freq" : 1, "multiplier" : 25 },
{ "monster" : "mon_crow", "freq" : 1, "multiplier" : 0 }
]
},
{
"name" : "GROUP_MAYBE_MIL", "_comment" : "50% chance military zombie",
"default" : "mon_null",
"monsters" : [
{ "monster" : "mon_zombie_soldier", "freq" : 50, "multiplier" : 0 }
]
},
{
"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 }
]
}
]
-1473
View File
File diff suppressed because it is too large Load Diff
-607
View File
@@ -1,607 +0,0 @@
[
{
"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":[
],
"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
}
]
-170
View File
@@ -1,170 +0,0 @@
[
[
"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"]
]
]
-93
View File
@@ -1,93 +0,0 @@
{
"snippets":
[
{
"category": "flier",
"text": "This is an advertisement for the Diet Devil brand Metabolic Exchange CBM. It shows a picture of a tiny obese devil sitting on a woman's shoulder. The woman stares intently at a gigantic wedding cake covered with bacon and candybars. The caption reads: \"Burn calories! Burn!\""
},
{
"category": "flier",
"text": "This is an advertisement for the Diet Devil brand Internal Furnace CBM. It shows a picture of a tiny obese devil sitting on a man's shoulder. The man is about to bite into a frosting-covered baby. The caption reads: \"Eat What You Want! How You Want! Who You Want!\""
},
{
"category": "flier",
"text": "This is an advertisement for the Diet Devil brand Ethanol Burner CBM. It shows a picture of a teenaged boy driving a car while chugging a bottle of whiskey. A tiny obese devil sits on his shoulder and drinks a martini. The caption reads: \"Drink like there's no tomorrow!\""
},
{
"category": "flier",
"text": "This is an advertisement for the Twenty8 brand Diamond Cornea CBM. It shows a picture of the cyber-module being clutched by an eagle in flight. The captions read: \"Get the new Model 28.bx Eagle-Eye!\" and \"Twenty8. See what you've been missing.\""
},
{
"category": "flier",
"text": "This is an advertisement for the Twenty8 brand Night Vision CBM. It shows a picture of an owl swooping down on a the cyber-module. The captions read: \"Get the new Model 28.hx Night-Owl!\" and \"Twenty8. See what you've been missing.\""
},
{
"category": "flier",
"text": "This is an advertisement for the Twenty8 brand Diamond Cornea CBM. It shows a picture of a flying hawk carrying the cyber-module in its beak. The captions read: \"Get the new Model 28.xx Hawk-Eye!\" and \"Twenty8. See what you've been missing.\""
},
{
"category": "flier",
"text": "This is an advertisement for the Twenty8 brand Scent Vision CBM. It shows a picture of a vulture perched on a pile of skulls and cyber-modules. The captions read: \"Get the new Model 28.vx Vulture today!\" and \"Twenty8. See what you've been missing.\""
},
{
"category": "flier",
"text": "This is an ad for a Twenty8 brand Infrared Vision CBM. It shows a picture of a robotic phoenix covered in flames. The captions read: \"Get the new Model 28.tx Phoenix today!\" and \"Twenty8. See what you've been missing.\""
},
{
"category": "flier",
"text": "This is an advertisement for DoubleTech brand law enforcement robots. It shows a picture of copbot and an eyebot boldly emerging from a cloud of teargas and flame. The caption reads: \"DoubleTech Industries. Built to Protect. Programmed to Serve.\""
},
{
"category": "flier",
"text": "This is an advertisement for DoubleTech brand law enforcement robots. It shows a picture of an eyebot flying alongside a bald eagle and a Stealth bomber painted as an American flag. The caption reads: \"Built to Protect. Programmed to Serve.\""
},
{
"category": "flier",
"text": "This is an advertisement for DoubleTech brand law enforcement robots. It shows a picture of a dozen eyebots floating over a woman as she jogs through a park. The captions read: \"Built to Protect. Programmed to Serve.\""
},
{
"category": "flier",
"text": "This is an advertisement for DoubleTech brand law enforcement robots. It shows a picture of copbot pepper-spraying a handcuffed rioter. In the background a troop of boy scouts salutes the robot. The caption reads: \"Built to Protect. Programmed to Serve.\""
},
{
"category": "flier",
"text": "This is an advertisement for Robert's Universal Robotics brand law enforcement robots. It shows a picture of tripod robot incinerating a mob of looters and stepping over charred and smoking corpses. The caption reads: \"Built to Protect. Programmed to Serve.\""
},
{
"category": "flier",
"text": "This is an advertisement for Robert's Universal Robots brand labor-bots. It shows a picture of a robot carrying a heavy pallet of bricks. In the background a human foreman is sleeping on the job, with his hardhat pulled down over his eyes. The captions read: \"It's a tough job, so why should you have to do it?\" and \"R.U.R. Technology you can Trust.\""
},
{
"category": "flier",
"text": "This is an advertisement for Robert's Universal Robots brand labor-bots. It shows a picture of a factory floor run entirely by robots. In the background a man in a suit reads a newspaper that shows soaring stock prices. The caption reads: \"R.U.R. Technology you can Trust.\""
},
{
"category": "flier",
"text": "This is an advertisement for Sybil's Cyber Boutique. It shows a picture of several bikini-clad female doctors removing the skin from man's face. The patient is strapped to a chair but cheerfully gives two thumbs up. The caption reads: \"Free Plastic Surgery While You Wait!\""
},
{
"category": "flier",
"text": "This is an advertisement for Sybil's Cyber Boutique. It shows a picture of a nerdy looking man surrounded by a group of admiring women. In the foreground a blood-drenched doctor gives an exaggerated wink and 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.\""
}
]
}
File diff suppressed because it is too large Load Diff

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