Compare commits

...

1565 Commits

Author SHA1 Message Date
Maleclypse 6b7d3263c8 Cabin item spawn adjustments (#48825) 2021-05-11 18:06:06 -07:00
LaVeyanFiend 644178b618 Higher Aim speed is good (#48839) 2021-05-11 17:56:51 -07:00
Angela Graves faf045d8c2 Merge pull request #48795 from BrettDong/i18n
Routine i18n updates on 8 May 2021
2021-05-11 00:20:30 -05:00
Binrui Dong e886e0ec62 Install lit 0.11.1 in clang-tidy check (#48802) 2021-05-10 16:22:02 -07:00
Angela Graves 272a1d4244 Merge pull request #48811 from Salty-Panda/fix_holo_scope
Adjust a few gunmods' volume
2021-05-10 03:46:30 -05:00
Salty Panda 7c2942d8e6 Increase rifle scope's volume 2021-05-09 15:33:59 +02:00
Salty Panda 593aa05730 Set volume using ImageJ 2021-05-09 15:08:12 +02:00
Angela Graves 03019f7e19 Merge pull request #48796 from Fris0uman/fixRD
Fix accidentally deleted overlay_ordering info in RretroDays
2021-05-09 06:00:32 -05:00
Fris0uman 9af61d82ee Fix accidentally deleted overlay_ordering info 2021-05-08 19:40:32 +02:00
Binrui Dong e8e03fa711 Routine i18n updates on 8 May 2021 2021-05-08 13:12:53 -04:00
Angela Graves 90f9945d36 Merge pull request #48790 from John-Candlebury/afs_tanker_fix
Aftershock: Remove obsolete vehicles from spawn list
2021-05-08 04:09:39 -05:00
Kevin Granade df08e8d32e Add osx build to release workflow (#48784) 2021-05-07 21:08:34 -07:00
John Candlebury 9faa0538b7 Remove obsolete vehicles from spawn list 2021-05-07 20:42:21 -06:00
Maleclypse 17c44e4784 [Magiclysm] Endless Whiskey adjustment (#48789)
* magic whiskey
2021-05-07 19:27:04 -07:00
LaVeyanFiend 94c1904fe5 No charcoal alchemy (#48788) 2021-05-07 19:20:30 -07:00
Kevin Granade 551cdfc891 Merge pull request #48783 from BrettDong/dmgdist
Fix "make dmgdist" error on native macOS
2021-05-07 19:12:39 -07:00
Binrui Dong fa32e5e489 Update dmgback.png path in dmgsettings.py 2021-05-07 20:18:51 -04:00
Binrui Dong 83bd11a2ff Convert Info.plist to binary format when making dmg on macOS 2021-05-07 20:18:51 -04:00
Angela Graves 7485857311 Merge pull request #48769 from Saicchi/cappills
Cap duration of more effects
2021-05-07 03:47:26 -05:00
Zhilkin Serg a5242e0a81 Merge pull request #48760 from LyleSY/patch-14
thorny moose shambler fix
2021-05-07 10:28:52 +03:00
Zhilkin Serg cd13fdb4a0 Merge pull request #48776 from int-ua/patch-2
compose.py: use the default values when none provided in config
2021-05-07 10:27:31 +03:00
Zhilkin Serg f962680b25 Merge pull request #48762 from Zeropol/trident-looks-like-something
[Aftershock] make trident looks like pitchfork
2021-05-07 10:27:07 +03:00
Zhilkin Serg 9f738755aa Merge pull request #48773 from akirashirosawa/fix-bowl_plastic-category
change bowl_plastic category to container
2021-05-07 10:26:51 +03:00
Serhiy Zahoriya 29881a2bd8 compose.py: actually use the default values 2021-05-06 23:54:18 +03:00
Kevin Granade e4d05ed858 Update release.yml (#48775) 2021-05-06 12:31:48 -07:00
akirashirosawa 09a911b5a9 change bowl_plastic category to container 2021-05-06 15:03:23 +03:00
Angela Graves 594c79a132 Merge pull request #48759 from LyleSY/patch-12
fix boneplate wolf bug
2021-05-06 04:14:32 -05:00
Saicchi 347ca1a35f cap duration of more effects 2021-05-06 05:03:53 -03:00
casswedson e8e203b06c fix guns penetrating vehicle walls (#48764)
slings and some acidic monster attacks
2021-05-05 22:07:00 -07:00
Alex Aubuchon 5e8e3727b9 Add LANGUAGES=all to windows experimental release build (#48763) 2021-05-05 22:05:44 -07:00
zeropol e11276f351 make trident looks like pitchfork
Trident had only a symbol, and at the time of this commit had no sprite.
2021-05-05 22:09:44 +02:00
LyleSY 023fa5d1a0 thorny moose shambler fix 2021-05-05 14:50:48 -04:00
LyleSY 8b77a0ef86 fix boneplate wolf bug
change melee_dice from 0 to 2
2021-05-05 14:44:57 -04:00
Angela Graves 7c20c92f7e Merge pull request #48748 from Zeropol/Fixes-freshwater-door-and-floor-(-can-deploy-furniture,-can-haul-items-)
Make minor fixe to Freshwater station door and floor
2021-05-05 02:31:41 -05:00
Alex Aubuchon 07c58d9b5d Add windows experimental release action (#48705) 2021-05-04 17:23:35 -07:00
Kevin Granade de00cc47dc Json diff for release. (#48687)
* Add script and documentation for generating a json diff for releases, and add the 0.E to 0.F diff
* Apply suggestions from code review
Co-authored-by: actual-nh <74678550+actual-nh@users.noreply.github.com>
2021-05-04 17:21:43 -07:00
zeropol 754a6ce2ab Make furniture draggable through bulkhead doors
Added "ROAD" and "FLAT" flag to the opened bulkhead door.
2021-05-05 00:56:46 +02:00
zeropol 8a1972853c Make minor fixe to Freshwater station door and floor
We were unable to drop/haul items on the doors tiles.
( Because of NOITEM flag )
Credits to Saicchi for the fixe.

We were unable to deploy furniture on any floor tile.
( Because move cost was > 3 )
2021-05-04 15:56:50 +02:00
Angela Graves 67105a9d8f Merge pull request #48712 from Zeropol/shatter_item_dont_destroy
Remove items that shatter instead of dropping them intact
2021-05-04 03:46:06 -05:00
Salty Panda 935b5c80e4 Flu vaccine expires based on creation time, not start of cataclysm (#48742) 2021-05-03 12:23:53 -07:00
Zhilkin Serg 850039f00e Merge pull request #48706 from l29ah/dissolve-lye
Allow dissolving lye powder back into lye
2021-05-03 17:41:07 +03:00
Binrui Dong 6f2d1fff04 Add a tool to check printf style format string in translations (#48530)
* Add script to check printf format string in translation

* Coloured output and highlighted diagnostic message

* Add GitHub Action workflow to check printf format string in translations
2021-05-03 17:38:40 +03:00
Angela Graves b7b8f77a87 Merge pull request #48733 from LyleSY/patch-12
Fix zombie animal upgrades
2021-05-03 00:09:05 -05:00
LyleSY 5207757d2c Update data/json/monstergroups/zanimal_upgrades.json
Co-authored-by: actual-nh <74678550+actual-nh@users.noreply.github.com>
2021-05-02 23:56:59 -04:00
LyleSY bb7528614a Fix zombie animal upgrades 2021-05-02 06:18:37 -04:00
Serhiy Zahoriya 75ca82a7ca Infrastructure "compose.py: Don't warn about unused fillters matching IDs in tile entries from main sheets" (#48723)
* Don't warn about unused fillers matching other IDs

* warn with --obsolete-fillers
2021-05-02 10:59:42 +03:00
Angela Graves bc3692ba35 Merge pull request #48722 from RoyBerube/window_deconstruct
Allow deconstruction of most windows, and adjust window deconstruction material.
2021-05-02 00:11:43 -05:00
RoyBerube 3033d1a15a Allow deconstruction of most windows and balance pass for window deconstruction materials. 2021-05-01 07:55:11 -06:00
Angela Graves 1ae66c97a0 Merge pull request #48717 from actual-nh/patch-11
Update JSON_INHERITANCE.md on what types copy-from works with
2021-05-01 05:29:01 -05:00
actual-nh f6a3c56925 Update what types copy-from works with 2021-04-30 20:35:22 -04:00
zeropol 8c2deb467b Update ballistics.cpp 2021-04-30 17:53:31 +02:00
Angela Graves 245065a1ef Merge pull request #48656 from RoyBerube/wash_filter
Change filter without crash when washing items
2021-04-30 03:39:32 -05:00
Sergey Alirzaev 45529e047b Allow dissolving lye powder back into lye 2021-04-30 07:20:14 +03:00
Angela Graves 0bb7886a58 Merge pull request #48685 from Saicchi/pgolemfix
[Magiclysm] Reduce plastic golem regeneration and armour
2021-04-29 07:08:24 -05:00
eltank 42f242f33a Fix the crafting success formula when crafter is missing proficiencies. (#48673) 2021-04-28 16:56:41 -07:00
Angela Graves f17115a89e Merge pull request #48678 from Clock00Smith/fix-hood_rain-recipe
reduce crafting time and modify proficiencies require to craft rain hood
2021-04-28 00:17:35 -05:00
Saicchi 290fc5d6d2 reduce plastic golem regeneration and armour 2021-04-27 22:12:21 -03:00
clock 692bc03d1d fix json style 2021-04-27 21:41:08 +08:00
clock 160377eeb4 reduce crafting time and proficiencies 2021-04-27 20:37:27 +08:00
Angela Graves e21c1bdbf9 Merge pull request #48663 from LyleSY/patch-6
[DinoMod] Laser Spinosaurus Laser Nap
2021-04-27 00:23:17 -05:00
Salty Panda a0c16c2068 Fix ramming at low speed (#48666)
* Fix ramming at low speed
Co-authored-by: mqrause <38702195+mqrause@users.noreply.github.com>
2021-04-26 19:22:05 -07:00
mqrause c5bb1d2e18 Fix insert message for partial item stacks (#48652)
Co-authored-by: mqrause <martin@qrause.de>
2021-04-26 18:16:06 -07:00
Salty Panda 3106be4659 Nerf Moodswing (#48635)
* Reduce those ridiculous values
Co-authored-by: actual-nh <74678550+actual-nh@users.noreply.github.com>
2021-04-26 18:06:49 -07:00
stubkan 8c5f26250a Changed the city size rng (#48627)
// 33% tiny
1 in 3 cities were being set to size of 1, which was dispropriate and not taking in consideration city scaling
Changed it to set the number 1/3 instead of straight to 1
in line with the other lines (2/3 3/2, etc)
2021-04-26 16:06:51 -07:00
Venera3 93bd05bf8e Fix trap-avoiding monsters freezing in place (#48588) 2021-04-26 15:56:38 -07:00
krulunio 16bcba84db Add missing info about expansions (#48583)
* Add missing info about expansions
* Add more missing info about expansions
2021-04-26 12:48:55 -07:00
LyleSY 5fbc182da2 [DinoMod] Laser Spinosaurus Laser Nap 2021-04-26 09:25:08 -04:00
Fris0uman 5d2c3fb4f5 Update MSX, Ultica and Chibi-Ultica 2021-04-26 (#48659)
* Update MSX

* Update ChibiUltica

* Update Ultica
2021-04-26 12:19:53 +03:00
Angela Graves 61cc75df78 Merge pull request #48638 from Salty-Panda/Fix_rams
Removes PROTRUSION flag, so rams can ram more things
2021-04-26 00:11:41 -05:00
RoyBerube 2350fbe1c0 appease clang 2021-04-25 21:21:09 -06:00
RoyBerube 9ef9fe31c6 Change filter without crash when washing items 2021-04-25 19:14:55 -06:00
Zhilkin Serg e6ad91695d Merge pull request #48644 from BrettDong/i18n
Routine i18n updates on 25 Apr 2021
2021-04-25 10:14:56 +03:00
Binrui Dong 87d2273403 Routine i18n updates on 25 Apr 2021 2021-04-25 01:30:17 -04:00
Angela Graves 243f3ead43 Merge pull request #48640 from mqrause/cargo_jacking_fix
Allow using jacking tools from vehicle cargo
2021-04-25 00:18:36 -05:00
mqrause d69b0def30 vehicle_cursor can ignore the part but check the contents 2021-04-24 22:46:56 +02:00
Salty Panda 5939da0604 Removes PROTRUSION flag, so rams can ram more things 2021-04-24 21:13:48 +02:00
Zhilkin Serg 5594c87b21 Merge pull request #48636 from BrettDong/concurrency
Prevent concurrent "Push translation template" workflow running
2021-04-24 20:20:25 +03:00
Binrui Dong 4609540239 Prevent concurrent "Push translation template" workflow running 2021-04-24 11:21:40 -04:00
Angela Graves 30306f9be7 Merge pull request #48580 from RoyBerube/insert_nullptr
Prevent duplicate selection of same item when inserting into a container
2021-04-24 00:49:33 -05:00
Zhilkin Serg 894af59cb8 Merge pull request #48598 from Clock00Smith/fix_glass_deconstruction
Fix deconstruction of some glass get more glass_shard then making them
2021-04-24 00:09:43 +03:00
Zhilkin Serg 276272d325 Merge pull request #48618 from AlexMooney/fix_mojocycle_duration
Fix up mojocycle duration
2021-04-24 00:06:38 +03:00
Zhilkin Serg 512b6d9487 Merge pull request #48609 from jbytheway/point_serialization_backport
Ensure classic locale when serializing (tri)points
2021-04-24 00:04:25 +03:00
Angela Graves 74ba358058 Merge pull request #48619 from leemuar/fix-cufflinks-fanciness
Make all cufflinks with gems and intricate cufflink fancy
2021-04-23 01:22:28 -05:00
Тимур Кашафутдинов f787d9c3d7 fix tab character 2021-04-23 03:00:45 +03:00
Тимур Кашафутдинов dad837fba7 fixes #48510 made all cufflinks with gems fancy 2021-04-23 02:51:40 +03:00
Alex Mooney daee899ba7 Fix up mojocycle duration 2021-04-22 13:41:30 -07:00
John Bytheway b7fc129663 Make iteminfo tests more flexible to localization
One integer formatted as part of the iteminfo tests can appear in
different formats depending on localization.  This caused a CI test
failure.  Allow either format to avoid that failure.
2021-04-22 10:29:41 -04:00
Angela Graves bc56e1bb81 Merge pull request #48605 from Hirmuolio/blackout
Fix .300 conversion mod
2021-04-22 06:53:33 -05:00
John Bytheway 230c4035dd Ensure classic locale when deserializing points 2021-04-21 20:18:17 -04:00
John Bytheway 10b0cbc81a Ensure classic locale when serializing (tri)points
When investigating a savegame corruption issue, it transpired that digit
separators were being inserted into the integer coordinates of point and
tripoint objects when converted to string.  This caused non-UTF-8
characters to appear in a log message, which corrupted the savegame.

Luckily, it only affected saves where the player had travelled more than
1000 submaps from the origin, so it hasn't been a huge issue.

Fix this and add tests to point_test.cpp.
2021-04-21 19:43:32 -04:00
Hirmuolio d83aebfa4d fix 300 kit 2021-04-21 20:57:13 +03:00
Hirmuolio 207a94de84 Add missing NO_RELOAD flags (#48592) 2021-04-21 18:02:36 +03:00
Angela Graves 84be480a2f Merge pull request #48593 from Salty-Panda/fix_torch
Fix torch disappearing
2021-04-21 05:47:19 -05:00
RoyBerube 1d47dc425b Prevent selecting same item twice 2021-04-20 22:29:53 -06:00
clock 120252a635 [fix] deconstrution of some glass get more glass_shard then making them 2021-04-21 10:56:51 +08:00
Salty Panda e0bfd2c24e Fix torch disappearing 2021-04-20 19:21:34 +02:00
Angela Graves 469f2ab384 Merge pull request #48567 from kevingranade/changelog-20210415
Out of jokes changelog update
2021-04-20 04:14:34 -05:00
Zhilkin Serg a64ca7d730 Merge pull request #48575 from Salty-Panda/do_not_display_racipe_makes_if_not_needed
Do not display "Recipe makes: xxx" if not needed
2021-04-20 10:35:26 +03:00
Zhilkin Serg 1d0f27a04f Merge pull request #48576 from Salty-Panda/remove_battery_charges_being_stored_directly_in_items
Remove charges from items that use charges from loaded battery
2021-04-20 10:34:44 +03:00
Serhiy Zahoriya 8ef271f791 Improving pyvips instructions (#48543) 2021-04-20 10:34:09 +03:00
Zhilkin Serg 9d71f81e7a Merge pull request #48565 from int-ua/patch-3
Infrastructure "compose.py: Fix --use-all when there are no filler sheets"
2021-04-20 10:33:28 +03:00
Zhilkin Serg d0bb2d8630 Merge pull request #48582 from Maleclypse/Uplift-vs-Migo-Uplift
[Aftershock] Bugfix Migo Uplifted int is now different id
2021-04-20 10:26:39 +03:00
Zhilkin Serg 6895b5be36 Merge pull request #48591 from tim77/tim77-1
fix: GCC 11 build failures
2021-04-20 09:25:11 +03:00
Artem Polishchuk 1f37238c38 fix: GCC 11 build failures
https://gcc.gnu.org/gcc-11/changes.html
2021-04-20 03:02:27 +03:00
Angela Graves e7643a5faa Merge pull request #48570 from Salty-Panda/recipes_properly_remove_raw_penalty
If the result item of a recipe doesn't have RAW flag add COOKED flag
2021-04-19 01:45:08 -05:00
Kevin Granade 017dd1ca44 Apply suggestions from code review
Co-authored-by: actual-nh <74678550+actual-nh@users.noreply.github.com>
2021-04-18 23:21:50 -07:00
Maleclypse 1483eab66c Migo Uplifted int is now different id
From the uplifted Animal starting trait
2021-04-19 00:22:11 -05:00
Roy Berube 9be249b17c Disable turning on ramp - bugfix (#48561) 2021-04-18 18:15:54 -07:00
Salty Panda f6957029fe Remove charges from items that use charges from loaded battery 2021-04-18 21:55:15 +02:00
Salty Panda 91a73f1ab6 Do not display "Recipe makes: xxx" if json has specified initial_charges if not needed 2021-04-18 21:21:07 +02:00
Salty Panda 25fca7554e If result item doesn't have RAW flag consider it processing too 2021-04-18 12:35:44 +02:00
Angela Graves 24c0489c76 Merge pull request #48558 from Salty-Panda/fix_canned_liver_recipe
Canning liver takes as much as canning anything else
2021-04-18 02:18:24 -05:00
Binrui Dong 1fde8043b0 Force redraw if pixel minimap is turned on (#48415)
* Force redraw if pixel minimap is turned on
Co-authored-by: Binrui Dong <brett.browning.dong@gmail.com>
2021-04-17 20:02:46 -07:00
ephemeralstoryteller d1dfcb6e35 [Dark Skies] Fixes faction relationships (#48445)
* allows dogs to counterattack bileworms
* changes lurker base faction, makes sure gators can retaliate
* lurkers in turn counterattack gators
Co-authored-by: actual-nh <74678550+actual-nh@users.noreply.github.com>
2021-04-17 19:47:25 -07:00
Roy Berube 7e39a6044c Improved multi cooker activation (#48425)
* Improved multicooker activation
2021-04-17 19:44:08 -07:00
Kevin Granade 44ddd2fbd8 Copyedit changelog 2021-04-17 18:35:35 -07:00
Kevin Granade 0af40de105 Prune summaries for post-0.F PRs 2021-04-17 18:35:35 -07:00
Kevin Granade add775a79c Import PR summaries up to mid-April 2021-04-17 18:35:35 -07:00
Serhiy Zahoriya 7a1ab9cb2d Do not require filler sheets for proper --use-all 2021-04-18 00:01:20 +03:00
Salty Panda 77215b862b Canning liver takes as much as canning anything else 2021-04-17 13:11:50 +02:00
Hirmuolio ecc3de3224 Fix not-spring eternal season (#48557) 2021-04-17 13:49:46 +03:00
connorpmartin 54ee66e0fe Vehicle part length update (#48551) 2021-04-17 13:49:03 +03:00
Angela Graves 2f98083a86 Merge pull request #48549 from connorpmartin/gunsmith_repair_kit_fix
fix repair kits having poor chiseling
2021-04-17 00:31:47 -05:00
Anton Burmistrov 0469910665 Added check for an open air (#48552) 2021-04-16 16:48:29 -07:00
Binrui Dong 5ac071b656 Updated bagh_nakha expected DPS value (#48555) 2021-04-16 16:47:13 -07:00
souricelle 3ccda91764 Remove hardcoded burrowing effect (#48553) 2021-04-16 16:27:08 -07:00
connorpmartin 915f0b8b08 fix repair kits having poor chiseling 2021-04-16 10:58:25 -04:00
Angela Graves 1e6f1f46a7 Merge pull request #48541 from actual-nh/patch-11
Remove BMG_TUR and SMG from JSON_FLAGS.md
2021-04-16 04:29:03 -05:00
actual-nh c0e0e3a443 Remove BMG_TUR and SMG from JSON_FLAGS.md
Closes #42711; flags are no longer usable.
2021-04-15 17:47:03 -04:00
Oren Audeles 4525b4f419 Remove unnecessary casting and branch from Character::mod_power_level 2021-04-15 12:35:41 -07:00
Angela Graves bcd020ed13 Merge pull request #48481 from Saicchi/speedrating
Adjust formula for monster speed description
2021-04-15 00:18:48 -05:00
Angela Graves f5b093bda9 Merge pull request #48491 from Saicchi/capantibio
Cap duration of some effects
2021-04-14 01:14:41 -05:00
souricelle 4a67b7ccc0 Remove Unarmed Weapon flags from bladed weapons (#48503)
* Remove Unarmed Weapon flags
* Tweak expected DPS for adjusted weapons
Co-authored-by: Kevin Granade <kevin.granade@gmail.com>
2021-04-13 19:29:39 -07:00
Zhilkin Serg 7a5cf864d9 Merge pull request #48509 from int-ua/patch-2
Infrastructure "pixelscale support in compose.py"
2021-04-14 00:35:29 +03:00
Serhiy Zahoriya ba33c7a789 pixelscale support in compose.py 2021-04-13 13:39:15 +03:00
Angela Graves 2ff8d14d4c Merge pull request #48504 from Fris0uman/RetroFern
Add a sprite for ferns to RetroDays
2021-04-13 00:59:24 -05:00
Fris0uman a0d768b76b Try not to break pixelscale again 2021-04-12 23:03:30 +02:00
Fris0uman 1df26cdbaf Add a sprite for ferns to RetroDays 2021-04-12 22:57:19 +02:00
Saicchi e366d0e856 cap other effects 2021-04-12 05:21:36 -03:00
Angela Graves ad91f6abaa Merge pull request #48487 from Fris0uman/Towerupdate
Update tilesets 2021-04-11
2021-04-12 01:00:52 -05:00
Saicchi 888ebc2062 cap antibiotics 2021-04-12 02:17:31 -03:00
Fris0uman 0b2930044a Update MSXotto+ 2021-04-11 2021-04-11 23:39:31 +02:00
Fris0uman 234feedca9 Update Chibi Ultica 2021-04-11 2021-04-11 23:38:57 +02:00
Fris0uman 9f1997a0ae Update Ultica 2021-04-11 2021-04-11 23:38:11 +02:00
Saicchi d7df87ed86 adjusted monster speed description rating 2021-04-11 12:40:37 -03:00
Zhilkin Serg 0f86226edf Merge pull request #48334 from BrettDong/sys-lang
Clean up system language detection code
2021-04-11 12:16:09 +03:00
Angela Graves 3860b0e859 Merge pull request #48474 from casswedson/patch-1
Remove obsolete item from itemgroups
2021-04-11 01:37:45 -05:00
Zhilkin Serg fdf87cd134 Merge pull request #48472 from BrettDong/android-i18n
Updated Android translations
2021-04-11 09:34:41 +03:00
casswedson c380d97e5a remove obsolete item from itemgroups 2021-04-10 20:58:44 -05:00
Binrui Dong 57775df251 Clean up system language detection code 2021-04-10 18:36:56 -04:00
Binrui Dong 4d1bd349b2 Updated Android translations 2021-04-10 16:01:19 -04:00
Zhilkin Serg df1789f946 Merge pull request #48471 from BrettDong/mag
Prevent crash if no magazine with enough ammo capacity is found
2021-04-10 22:55:35 +03:00
Zhilkin Serg f9649ce6f4 Merge pull request #48470 from BrettDong/profession
Report duplicate profession ID in scenario
2021-04-10 22:55:16 +03:00
Binrui Dong 1b9eacb748 Prevent crash if no magazine with enough ammo capacity is found 2021-04-10 14:12:30 -04:00
Binrui Dong 40ff6b3f61 Report duplicate profession ID in scenario 2021-04-10 13:55:51 -04:00
Angela Graves fc272e002f Merge pull request #48243 from OromisElf/black_dragon_historical_group
[Magiclysm]add second dragon book to dragon_books
2021-04-10 05:54:37 -05:00
Zhilkin Serg 47c925037f Merge pull request #48315 from casswedson/itemgroup-randomization
More randomized amounts in itemgroups
2021-04-10 10:22:51 +03:00
Zhilkin Serg 5f09092ef9 Merge pull request #48442 from Stephen2/sp-fix-gloves
Tweak extra long white gloves stats
2021-04-10 01:07:23 +03:00
Angela Graves a5f219e4d8 Merge pull request #48437 from casswedson/fix-archer-id
[Magiclysm] Fix misspelled item id
2021-04-09 06:41:46 -05:00
Stephen Pittman e75fa4d8e7 Tweak extra long white gloves stats 2021-04-09 20:53:13 +10:00
casswedson 5b541b5eb6 fix invalid item id 2021-04-08 17:28:35 -05:00
casswedson 41a74564fb more randomized amounts in itemgroups 2021-04-08 14:44:38 -05:00
Angela Graves fa0b7d6b03 Merge pull request #48250 from casswedson/pricier-tools
[Magiclysm] make magical tools more expensive
2021-04-08 06:48:42 -05:00
Zhilkin Serg 89a9480e68 Merge pull request #48427 from slitherrr/patch-1
Include raw milk in curdled milk requirements
2021-04-08 12:07:24 +03:00
Venera3 0ae7de3c97 Update hardcoded monster attack documentation (#48416)
Co-authored-by: Anton Burmistrov <Night_Pryanik@mail.ru>
2021-04-08 12:06:57 +03:00
Zhilkin Serg fb46c95d0f Merge pull request #48429 from LaVeyanFiend/KnifeSpearFields
Remove redundant fields from knife spear
2021-04-08 12:06:07 +03:00
Kevin Granade b1c2ade4fa Changelog O—G (#48393)
* Import PR summaries up to April 1

* Copyedit changelog

Co-authored-by: actual-nh <74678550+actual-nh@users.noreply.github.com>
2021-04-08 12:05:29 +03:00
Zhilkin Serg 5ba8567614 Merge pull request #48423 from LaVeyanFiend/Watches
Fancy wristwatches have alarms too
2021-04-08 12:04:07 +03:00
stubkan 697fc47dd6 Bugfix: Improve road system expansion across multiple overmaps (#48328)
* Update overmap.cpp

    // Ideally we should have at least two exit points for roads, on different sides
    if( roads_out.size() < 2 ) {  <- Made this 3 (also changed     if( roads_out.size() < 2 ) { to 3 also.

The roadgen does make at least 2 road connections at the edges, but it seems to always stop there.  Making it 3, tells it to not stop there.  This makes world gen roads more guaranteed to link with other overmap cities, especially with large city spacing worldgen, making extended roadtrips possible.  Roads leading out of cities also increase.
2021-04-07 23:04:38 -07:00
zeropol 554323b895 Make UNMOUNT_ON_DAMAGE drop damaged items, fixes #48212 (#48316)
* Make UNMOUNT_ON_DAMAGE drop damaged items

Vehicle parts with the UNMOUNT_ON_DAMAGE flag drop their base item when destroyed.
But the base item was in pristine condition.
Issue is flagged "exploit" on github.

This commit make the destroyed vehicle parts drop damaged items.
Damage = max item damage -1.
2021-04-07 23:00:59 -07:00
Jamuro-g 9d779625cb cap asthma attacks & give inhaler antiasthmatic effect (#47989) 2021-04-07 22:58:33 -07:00
Nate Hayes 0c98d9e324 Added uncraft recipes for Generic_Guns ammo (#47883)
* Added uncraft recipes for Generic_Guns ammo
2021-04-07 22:51:50 -07:00
LaVeyanFiend d95bad71de Remove redundant fields 2021-04-08 01:34:24 -04:00
slitherrr 183b20944e Include raw milk in curdled milk requirements
Cheeses all around the world are made (safely) with raw milk. I considered making a new class that was milk_standard_raw, but without UHT, because UHT treatment actually makes it much harder to develop a curd, but this was easier, and it is still _possible_ to make a curd with UHT milk, just harder.
2021-04-08 04:25:43 +00:00
LaVeyanFiend 708b1b46d4 Fancy watches have alarms too 2021-04-07 21:29:34 -04:00
Sergey Alirzaev f91462104f Link to the git repo for a list of contributors (#45887)
as github no longer shows them all
2021-04-07 18:27:35 -07:00
Zhilkin Serg 29dacadf50 Merge pull request #48412 from ANickelN/patch-1
Correct Pocket Data in Workshop.json
2021-04-07 23:40:54 +03:00
Zhilkin Serg 50fff6ad74 Merge pull request #48414 from BrettDong/android
Hide write_demangled_frame() for Android build
2021-04-07 23:40:05 +03:00
Binrui Dong ae0b5b14c0 Hide write_demangled_frame() for Android build 2021-04-07 14:21:30 -04:00
ANickelN 1f6c86c65c Correct Pocket Data in Workshop.json 2021-04-07 09:01:11 -07:00
Angela Graves 8286e1d783 Merge pull request #48383 from ANickelN/patch-1
Add Longest Sides: Workshop.json
2021-04-07 05:32:52 -05:00
MarlossCDDA bbe44c00f1 Make Arsonist NPC spawn with way fewer items so they fit in inventory (#48339) 2021-04-07 11:47:20 +03:00
MarlossCDDA 9de452dc2f [Magiclysm] Bugfix: Fake spells should not trigger achievements (#48341) 2021-04-07 11:46:39 +03:00
actual-nh a728b7c398 Reduce weariness instability (includes tests); clarified (#47653)
Co-authored-by: anothersimulacrum <anothersimulacrum@gmail.com>
2021-04-07 11:44:59 +03:00
Zhilkin Serg 6c29c71b44 Merge pull request #48347 from actual-nh/fix_cone_spells
Partially fix cone-shaped AoE for spells
2021-04-07 11:42:57 +03:00
Zhilkin Serg e6c7b74626 Merge pull request #48390 from MarlossCDDA/marloss/toilet-paper-bag
make toilet paper spawn in a plastic bag, not a 50L box
2021-04-07 11:35:34 +03:00
Zhilkin Serg 02a7502144 Merge pull request #48371 from BrettDong/android-crash
Generate crash report on Android
2021-04-07 11:34:37 +03:00
Zhilkin Serg e5e0d8fa97 Merge pull request #48398 from BrettDong/deps
Remove prebuilt libintl-lite.so binary from deps_debug.zip for Android
2021-04-07 11:31:47 +03:00
Binrui Dong a1d925c3f7 Remove prebuilt libintl-lite.so binary from deps_debug.zip for Android 2021-04-07 00:06:50 -04:00
MarlossCDDA a329af6b2d make toilet paper (0.25L) spawn in a plastic bag, not a 50L cardboard box 2021-04-06 12:07:50 -04:00
Angela Graves 4e706d9cc9 Merge pull request #48373 from shacknetisp/blaze-rig-recipies
[Blaze] Move recipes for Blaze vehicle crafting rigs from Aftershock to Blaze.
2021-04-06 03:57:15 -05:00
MarlossCDDA b9b0a9765c When harvesting crops, drop the result on player's square (#48367)
* When harvesting, drop the result on player's square not the plant
2021-04-05 23:32:09 -07:00
Salty Panda 11b1e1ade7 Fix wheat cereals (#48359)
* Fix wheat cereals

Reduce charges, weight and volume in line with other cereals, reduce vitamins that don't appear in those grains, remove nutrient override

* Fix wheat cereals recipe

Reduce time: it's rougher than flour, less time needed
charges: keep ingredients' mass and Calories
add food processor version
2021-04-05 23:31:39 -07:00
souricelle cda77c2450 Update bionics.cpp (#48356) 2021-04-05 23:30:54 -07:00
souricelle b8c49c1a2c Window Scent Block Review (#48323)
* Window Scent Block Review
2021-04-05 23:28:17 -07:00
Zhilkin Serg 49983fcc5e Do not do character body updates more than once per turn (#48319)
* Move last_updated field up to Creature class

Everyone would benefit from it one way or another

* Do not do character body updates more than once per turn
2021-04-05 22:30:11 -07:00
ANickelN 5f859ae6b3 Fix X-Acto Knife 2021-04-05 21:11:41 -07:00
Someoneman fe6e50c245 Update hooded hard hat recipe (#48285)
* Update hooded hard hat recipe

The recipe for the hooded hard hat takes two hours and requires plastic working proficiency, which makes no sense since it's just putting some cloth inside the hat. Presumably, someone misread the components list and assumed that you were actually making a plastic hard hat from scratch instead of using a pre-made one. I removed the proficiency requirement and shortened the craft time to 30 seconds to more accurately reflect the actual process of putting some rags inside a helmet.

* Bump duration to 5 minutes.

Co-authored-by: Kevin Granade <kevin.granade@gmail.com>
2021-04-05 19:17:01 -07:00
actual-nh fb1d0ade24 Fix z-level melee attack difference problems (with testing code) (#48245)
* added sees check and debugmsg

(cherry picked from commit 752f0c444b)

* Update src/monster.cpp

Co-authored-by: anothersimulacrum <anothersimulacrum@gmail.com>
(cherry picked from commit da7c76072f)

* excempt stairs&ramps from vision check

(cherry picked from commit 152980e928)

* monster::melee_attack returns false for zlvl violations

(cherry picked from commit cc7b3b7a5d)

* Require daytime for sees in monster_attack test.

Make sure there should be enough light for things to be visible;
weather might also need checking.

(cherry picked from commit 6d253c9f75)

* Set time to daytime.

It wasn't previously (see results of REQUIRE).

(cherry picked from commit 321404f26c)

* Move forward by 2 hours.

It gets set to daytime, but isn't?

(cherry picked from commit 592d0c1f43)

* See if can get info on hour of day.

(cherry picked from commit ea65b7e9bc)

* Try again on checking hour of day.

(cherry picked from commit 874bccf2f4)

* Blasted parenthesis.

In case you're wondering why I don't seem to be compiling locally
before sending things - even with everything else already present
as an object file, the version+ar+compiling the test+putting together
the test executable still takes something like 5-10 minutes...

(cherry picked from commit 23e1394c23)

* Template problem

I'm still learning my way around C++ where it differs from C.

(cherry picked from commit 1282f44ae3)

* Set weather, update sight limits

If this doesn't work, I'll try the steps in vision_test.cpp.

(cherry picked from commit 2062bbc71d)

* Wipe visibility, map caches in monster_attack

This is in case something is left over in one of these caches that's
causing problems.

(cherry picked from commit ce394e20c0)

* Set WEATHER_NULL for weather_override in tests

This sets weather_override to WEATHER_NULL in two places, namely after
(if no exceptions occur!) the monster_attack test and before the
weather realism test. The former should be replaced by
scoped_weather_override (#48227) after that's been merged.

(cherry picked from commit dcacb3d11e)

* Use scoped_weather_override in monster_attack test

Simply doing get_weather().weather_override = WEATHER_NULL at the end
is not sufficient, since it will not be run in the event of an
exception, such as from Catch2.

(cherry picked from commit 49d5f2473b)

* Wrong syntax for scoped_weather_override.

As mentioned before, I'm still learning regarding C++ differences
from C.

(cherry picked from commit c90ae42aa5)

* Start on unifying sees requirement with testing

This is a unification of most of #47993 with most of #48202, in an
attempt to remove problems (seen in #42845, which this hopefully
will fix) with players unable to see monsters on different z-levels
(and, as it turns out, the other way around) but they are still able
to attack the player. This is additionally complicated by that,
when fov_3d is enabled, the player can see the monsters and vice-versa,
and they should be able to attack each other (when at an appropriate
distance).

* Use is_adjacent with fov_3d for melee attacks

This changes the melee_attack code in melee.cpp for
Character::melee_attack to consider non-adjacent anything across
z-levels when fov_3d is false. (It is possible that an actual sees
check will be needed, but let's see how this does - no pun intended.)
reach_attack may be a problem still.

Co-authored-by: Jamuro-g <toenli.e@gmail.com>
Co-authored-by: Jamuro-g <76928284+Jamuro-g@users.noreply.github.com>
Co-authored-by: actual-nh <actual-nh@users.noreply.github.com>
2021-04-05 19:12:48 -07:00
ANickelN dbf2c12753 Revert electronics.json due to errors 2021-04-05 19:02:43 -07:00
ANickelN f5a1f8b455 Longest Side: Electronics.json 2021-04-05 18:50:52 -07:00
ANickelN 2fb977e438 Fix the Insanity 2021-04-05 17:47:33 -07:00
ANickelN a455a6d9ad Update Pallet and Try to Fix Sanity 2021-04-05 17:33:13 -07:00
ANickelN 640e2069f2 Try to fix Hose Insanity Check 2021-04-05 15:31:15 -07:00
ANickelN d769a95a6a Longest Sides: Workshop.json 2021-04-05 14:33:37 -07:00
Anton Burmistrov a81b500826 Turrets will be removed only if player actually uses his id card on cardreader (#48365)
* Turrets will be removed only if player actually uses his id card

* Swiping id card will despawn turrets no matter if doors are opened
2021-04-05 22:16:30 +03:00
Zhilkin Serg 538c1f59ae Merge pull request #48361 from Salty-Panda/fix_helmet
[CRIT] Fix helmet disappearing on deactivation
2021-04-05 22:16:00 +03:00
Zhilkin Serg 8482439292 Merge pull request #48353 from actual-nh/avoid_invisible_diggers
Make diggers on undiggable terrain visible
2021-04-05 22:12:59 +03:00
Zhilkin Serg 8c2e0cfa3f Merge pull request #48348 from Night-Pryanik/ants_fix
Fix for acidic ant queens and acidic ant larvae spawning in ordinary ant tunnels
2021-04-05 22:12:46 +03:00
Zhilkin Serg ce1860d376 Merge pull request #48354 from BrettDong/android
Fix C++ exception handling on Android
2021-04-05 22:08:08 +03:00
Zhilkin Serg ac685177e3 Merge pull request #48350 from AlexMooney/headlight_recipes
Bring electronic light craft times in line
2021-04-05 22:07:51 +03:00
Anton Burmistrov 183f8d78fc After eating marloss berry, don't spawn fungal terrain in the air (#48358)
* Added check for terrains with NO_FLOOR flag

* Added several checks for terrain unfit for spawning bushes
2021-04-05 22:06:03 +03:00
Zhilkin Serg a00b7fb13d Merge pull request #48382 from Salty-Panda/fix_circular_saw
Fix circular saw disappearing on activation
2021-04-05 22:05:28 +03:00
Zhilkin Serg 6f2c72c10e Merge pull request #48366 from Night-Pryanik/fix-emp-blast-not-working-on-unseen-targets
Fixed emp blast not working on unseen targets
2021-04-05 22:04:51 +03:00
Zhilkin Serg 2f332c6716 Merge pull request #48369 from casswedson/writing-paths-sucks
Clean up JSON_STYLE.md
2021-04-05 22:04:28 +03:00
Salty Panda bddfed1210 Fix item activation 2021-04-05 21:00:39 +02:00
Angela Graves 5b3c6ce980 Merge pull request #48357 from meelock/master
Remove salted fish from pemmican recipe, add salted meat to a number of recipes
2021-04-05 04:33:32 -05:00
Meelock 19536e93f8 FIxed one missed account of double salted meat
Looking at the recipe for vacuum packed meat, the conversion is actually 2 meat for 1 salted meat, but maybe I'm just reading the ingredients wrong.
2021-04-04 21:04:19 -07:00
Beha f449311664 Move recipes for Blaze vehicle crafting rigs from Aftershock to Blaze. 2021-04-05 00:00:33 -04:00
Meelock 60d5ce676b Hopefully fix linting
Again.
2021-04-04 20:51:53 -07:00
Meelock 94a75a9fd9 Lowered ammount of salted meat and fish required and removed duplicate entries
Hopefully this fixes the linting issues, woops.
2021-04-04 20:46:08 -07:00
Meelock 88f4e785ea Remove salted meat and salted fish from pemmican
Need to lint
2021-04-04 20:30:25 -07:00
Binrui Dong 12b2673dcb Workaround to crash on exit on Android 2021-04-04 21:29:51 -04:00
Binrui Dong 4698f6c8b5 Show a message box at next launch after crash on Android 2021-04-04 21:29:51 -04:00
Binrui Dong 58faa5d9ac Backtrace on Android 2021-04-04 21:29:51 -04:00
Anton Burmistrov 1b9d246978 Fixed emp blast not working on unseen targets 2021-04-04 21:47:16 +04:00
Salty Panda 57b4fd3233 Fix helmet disappearing on deactivation
Item action transform would try to consume charges as per charges_per_use, read 0 and consume item
2021-04-04 17:14:11 +02:00
Angela Graves db26310b57 Merge pull request #48352 from souricelle/Minor-Tool-Fixes
Minor tool fixes
2021-04-04 01:20:58 -05:00
Meelock 410e6eed3f Added salted meat slices and salted fish slices to recipe lists
Hopefully I didn't mess up any stylistic formatting.
2021-04-03 21:42:32 -07:00
Eric Pierce f22beb8074 Ensure float is parsed before int in saved activity (#48355)
When parsing a save game with avatar activity levels, `[ 0.000000, 1 ]`
was being incorrectly parsed by this one-liner, which apparently
evaluates `ja.next_int()` before evaluating `ja.next_float()` on some
environments, while it was the other way around on other environments.

Explicitly getting the floating-point activity level into a variable
allows ensuring these parsing operations occur in the correct order,
avoiding the bug leading to the "Integers cannot have a decimal point"
error when loading a fresh saved game.
2021-04-03 18:34:37 -07:00
casswedson 41f4886b7d clean JSON_STYLE.md 2021-04-03 19:56:46 -05:00
Binrui Dong f38356ae87 Fix crash on Android when trying to display shortcuts before g is initialized 2021-04-03 19:12:51 -04:00
Binrui Dong 48969c7e5f Mainline libintl-lite soure code 2021-04-03 19:12:46 -04:00
actual-nh c071e61132 Make diggers on undiggable terrain visible
Currently, even if a digger can't actually dig someplace, it's still
treated as invisble from more than 1 space away.
2021-04-03 17:52:27 -04:00
souricelle 2a2ab13a58 decimal fixes 2021-04-03 14:46:13 -07:00
souricelle 40087baea1 Minor Tool Fixes 2021-04-03 14:31:11 -07:00
Alex Mooney 71dfe056df Bring electronic light craft times in line 2021-04-03 12:28:43 -07:00
Valiant 35aa0b5933 Added dedicated mapgen functions to spawn acid ant queen and acid ant larvae chambers
Also removed duplicate code snippet in generic ant tunnels mapgen so there won't be two ant queens in one chamber anymore.
2021-04-03 22:36:03 +04:00
Valiant 8d655b1053 Check for type of anthill on the ground level to determine type of queen and larvae to spawn 2021-04-03 22:34:19 +04:00
Valiant f72ff15fcc Created two new OMTs for acid ant queen chamber and acid ant larvae chamber 2021-04-03 22:32:38 +04:00
actual-nh 3aa35f66c8 Partially fix cone-shaped AoE spells
Cone-shaped AoE spells have some gaps and extra boxes when done at a
diagonal in particular; see #46792 and #48320. This tries to
fix at least the former problem, using an adapted version of @Aivean's
suggestion (in #46792).
2021-04-03 14:17:08 -04:00
Angela Graves e365124429 Merge pull request #48335 from ANickelN/patch-1
Correct Volume and Weight of Oxygen Containers
2021-04-03 06:02:17 -05:00
Zhilkin Serg f207d3ab93 Merge pull request #48329 from Night-Pryanik/cot-placement-fix
Fixed cot spawning on open air
2021-04-03 11:33:31 +03:00
actual-nh 36111c7189 Remove nonexistent INSTALL file mention from CMake messages (#48333) 2021-04-03 11:33:19 +03:00
Binrui Dong 0174ddbf36 Translated 0.F credits (#48332) 2021-04-03 11:33:11 +03:00
Zhilkin Serg 62983aa8fd Merge pull request #48331 from BrettDong/i18n
Routine i18n updates on 2 Apr 2021
2021-04-03 11:31:34 +03:00
ANickelN cc60d24ce1 Update science.json 2021-04-02 22:12:20 -07:00
ANickelN 7ad0f538ec Correct Volume and Weight of Oxygen Containers
Changed Oxygen Tank to the standard M15 Size
-3750ml Volume
-Weight Slightly increased to 2721g
Longest side is now corrected from the default, no more oxygen tanks in your pockets!

Changed Emergency Oxygen to standard M4 Size
-Volume changed to 1100mL
-Weight decreased a fair bit down to 800g
Longest side is now corrected from the default
2021-04-02 21:34:53 -07:00
Binrui Dong 5ad87c9c20 Routine i18n updates on 2 Apr 2021 2021-04-02 17:30:45 -04:00
Zhilkin Serg 38a368d22e Fix saving of player data (#48308)
* Fix save/load of activity levels
2021-04-02 13:51:32 -07:00
Valiant 4066e9d2cc Fixed cot spawning on open air 2021-04-03 00:41:00 +04:00
Zhilkin Serg 2efb70ec65 Merge pull request #48302 from souricelle/Add-Venomous-to-Cephalopod-Mutations
Add Venomous (and its prereq) to Cephalopod Mutations
2021-04-02 21:52:10 +03:00
Zhilkin Serg 417fc59535 Merge pull request #48303 from souricelle/Reduce-Sludge-Trail-Spam
Reduce Sludge Trail Spam
2021-04-02 21:51:53 +03:00
Zhilkin Serg 3494e9cfc2 Merge pull request #48304 from souricelle/Minor-Spider-Mutation-Fixes
Fix Spider Antennae and Persistent Mouth Flaps
2021-04-02 21:51:36 +03:00
Zhilkin Serg 6d7c2294e8 Merge pull request #48325 from casswedson/fix-uyen-mission
Fix Unyen's antidepressant mission
2021-04-02 21:50:44 +03:00
casswedson c8003178e0 fix unyen's antidepressant mission 2021-04-02 11:46:41 -05:00
Angela Graves 7c4d41985d Merge pull request #48317 from Night-Pryanik/mass-grave-fix
Fixed mass grave map extra not spawning
2021-04-02 06:25:03 -05:00
Valiant 881a3d7b4e Updated syntax 2021-04-02 09:10:01 +04:00
Zhilkin Serg d7a5298084 Merge pull request #48310 from BrettDong/gh-action
Manually install GCC 7 and GCC 8 on GitHub Action workflow
2021-04-01 20:05:59 +03:00
Binrui Dong 458e99c5b0 Manually install GCC 7 and GCC 8 on GitHub Action workflow 2021-04-01 12:26:42 -04:00
Zhilkin Serg 3980f86142 Merge pull request #48290 from actual-nh/bulletproof_weather_test
Make sure no weather_override for weather test
2021-04-01 15:35:54 +03:00
Angela Graves 679297ff57 Merge pull request #48301 from souricelle/Fix-dogs-evolving-into-juggernauts
Fix dogs evolving into Skeletal Juggernauts
2021-04-01 06:27:23 -05:00
souricelle 38bbf18e21 Update mutations.json 2021-03-31 23:42:14 -07:00
souricelle b858ab6d34 Reduce Sludge Trail Spam 2021-03-31 23:07:05 -07:00
souricelle ce86221d2f Add Venomous (and prereq) to Cephalopod 2021-03-31 22:18:14 -07:00
souricelle ebd43a0869 Removed upgrade line 2021-03-31 22:08:09 -07:00
actual-nh 4537a34a7d Make sure no weather_override for weather test
It is possible for an earlier test to set weather_override, which could
interfere with weather_test.cpp's weather generation test. This patch
prevents this. (It was previously part of #48245.)
2021-03-31 10:12:35 -04:00
Angela Graves 6b8dd0058f Merge pull request #48249 from OromisElf/remove_looks_like_from_magical_weapons
[Magiclysm] remove looks_like from magical weapons
2021-03-31 07:15:42 -05:00
Jamuro-g 5715a33d4c added sees check and debugmsg (#47993)
Co-authored-by: anothersimulacrum <anothersimulacrum@gmail.com>
2021-03-31 11:43:38 +03:00
Zhilkin Serg 33332ce52e Merge pull request #48116 from MarlossCDDA/marloss/no-carrion-spawn-rate
Remove the "Carrion spawn rate scaling factor" world config option
2021-03-31 11:41:10 +03:00
Kevin Granade 8bc8877fc4 Increase granularity of activity tracking to per turn. (#45316)
* Extract activity and weariness tracking to a helper class.

Co-authored-by: Alex Mooney <alexmooney@fastmail.com>
2021-03-31 11:35:31 +03:00
Zhilkin Serg abc4d94f33 Merge pull request #48273 from zeropol/Krav-maga-m38dmr-#48263-
Make m38DMR usable with krav maga. Fixes #48263
2021-03-31 10:01:18 +03:00
Zhilkin Serg 93a65a5d9a Merge pull request #48278 from zeropol/fixe-shooter-earmufs
Add charges_per_use to powered_earmuffs_on
2021-03-31 09:59:56 +03:00
Kevin Granade 8a8f80fb64 Penultimations of the changelog kind (#48264)
* Import PR summaries up to 2021-03-01

* Changelog copyediting

Co-authored-by: actual-nh <74678550+actual-nh@users.noreply.github.com>
Co-authored-by: Anton Burmistrov <Night_Pryanik@mail.ru>
2021-03-31 09:59:47 +03:00
Binrui Dong 9cc1c836b3 Translate Android installation UI (#48265)
* Move hardcoded UI strings to res/values/strings.xml

* Add Traditional Chinese translation of Android UI

* Add Russian translation of Android UI

* Add Spanish (Spain) translation of Android UI

* Add Spanish (Argentina) translation of Android UI

* Add Japanese translation of Android UI
2021-03-31 09:59:06 +03:00
Zhilkin Serg 4c36d1c02b Merge pull request #48283 from LaVeyanFiend/FireWoodRepairChisel
Conserve wood sawing + chiseling quality in firearm repair kits
2021-03-31 09:57:23 +03:00
John Bytheway 23c1bf91f0 Triage Flake8 E265 (#48284)
* Triage Flake8 E265

Decide not to enable Flake8 E265 because it prevents us keeping
commented-out debug print messages.

Co-authored-by: Binrui Dong <brett.browning.dong@gmail.com>
2021-03-31 09:56:36 +03:00
LaVeyanFiend 0a80ec475a Quality check on firearm/gunsmith repair kits 2021-03-30 19:27:38 -04:00
Zhilkin Serg 7617633db6 Update WEATHER_TYPE.md (#45249) 2021-03-30 12:25:50 -07:00
zeropol 92967550d2 Add charges_per_use to powered_earmuffs_on
Powered_earmuff consumme the charges in powered_earmuffs_on on activation.

Quick fix #48261
See #47887
See #47870
2021-03-30 16:31:20 +02:00
Angela Graves dc8bba64b2 Merge pull request #48268 from LaVeyanFiend/NoPipe556
Obsolete recipe for already-obsolete 5.56 pipe rifle
2021-03-30 04:12:00 -05:00
zeropol 6d93ad84d0 Make m38DMR usable with krav maga. Fixe #48263 2021-03-29 23:46:43 +02:00
LaVeyanFiend d391b63e48 Obsolete recipe for obsolete pipe rifle 2021-03-29 10:20:04 -04:00
Angela Graves a8cf0e3289 Merge pull request #48262 from souricelle/Fix-Refugee-Center-Hub-Quest
Fix Refugee Center Hub 01 Delivery Quest
2021-03-29 07:50:54 -05:00
souricelle ec881d7dad Reduce Seed Spam from Foraging (#48128) 2021-03-29 10:16:54 +03:00
souricelle de20d2f4f1 Update Refugee Center Merchant Quest 2021-03-28 15:56:12 -07:00
Zhilkin Serg 06724d12dc Add missing preprocessor definition to VS project 2021-03-29 01:34:07 +03:00
alef 678cf6afcd Fix string formatter test in MSVC >= 16.2 (#48236) 2021-03-29 00:10:20 +03:00
Zhilkin Serg bb07f809b8 Merge pull request #48260 from actual-nh/fix_doc_file_names
Make command-line use of doc directory easier - fix file/directory names
2021-03-29 00:07:54 +03:00
Zhilkin Serg 2ea4c4b890 Merge pull request #48254 from curstwist/fix-lab-doors
fix lab doors
2021-03-29 00:07:22 +03:00
Zhilkin Serg 413f850b33 Merge pull request #48256 from BrettDong/i18n
Routine i18n updates on 28 Mar 2021
2021-03-29 00:07:04 +03:00
Zhilkin Serg 1821c299d0 Merge pull request #48257 from Fris0uman/Update_Ultica2803
Update Ultica 2021-03-28
2021-03-29 00:06:47 +03:00
Zhilkin Serg f77e0b7bb1 Merge pull request #48259 from Fris0uman/updates_Chibi
Update Chibi Ultica, 2021-03-28
2021-03-29 00:06:38 +03:00
Zhilkin Serg 35088ac7fe Merge pull request #48258 from Fris0uman/update_MSX_21-03-28
Update MSXotto+ 21-03-28
2021-03-29 00:06:26 +03:00
actual-nh f73a7fcc46 Make command-line use of doc directory easier
The names of some files and one directory (JSON Mapping Guides) in or
below the doc directory were named such that they were very annoying
to work with on the command line, due to having spaces. Correct names
and one document's link - this was only one found using fgrep -ri over
the entire repository.
2021-03-28 16:07:14 -04:00
Fris0uman 2583861e59 Updates Chibi Ultica, 2021-03-28 2021-03-28 21:06:09 +02:00
Fris0uman 592a4fb618 Update MSXotto+ 21-03-28 2021-03-28 20:56:17 +02:00
Fris0uman 353a78f23d Update Ultica 2021-03-28 2021-03-28 20:52:57 +02:00
Binrui Dong 8296488b4d Routine i18n updates on 28 Mar 2021 2021-03-28 13:38:08 -04:00
curstwist 97c00ed4cc fix lab doors 2021-03-28 12:07:00 -04:00
Zhilkin Serg 65515b1185 Merge pull request #48251 from kevingranade/dexsanguination
Replace hunger and thirst costs for blood draw with actual blood loss.
2021-03-28 10:46:08 +03:00
Zhilkin Serg 7d2b9a4c42 Merge pull request #48246 from BrettDong/corpse
Disallow corpses with different names to stack together
2021-03-28 10:45:44 +03:00
Angela Graves 45af439a90 Merge pull request #48252 from RoyBerube/multi-cooker
Reload fix for multi cooker
2021-03-28 00:52:29 -05:00
RoyBerube a6739a5f77 Reload fix for multi cooker 2021-03-27 19:39:39 -06:00
Kevin Granade df1f197796 Replace hunger and thirst costs for blood draw with actual blood loss. 2021-03-27 18:11:34 -07:00
casswedson 2844761abf make magical tools more expensive 2021-03-27 20:01:06 -05:00
Angela Graves a70b7d0869 Merge pull request #48247 from John-Candlebury/afs-driveable-snow
Aftershock: Remove vehicle collisions with  afs-snow
2021-03-27 19:57:00 -05:00
OromisElf 28cf9e56ae remove looks_like from magical weapons 2021-03-28 01:26:39 +01:00
John Candlebury 36fa269bae Remove vehicle collisions with afs-snow 2021-03-27 17:51:06 -06:00
Binrui Dong 80e2e51dc1 Disallow corpses with different names to stack together 2021-03-27 19:33:23 -04:00
OromisElf 9bd2c78931 add second dragon book to dragon_books 2021-03-27 22:49:06 +01:00
Zhilkin Serg b725af3336 Merge pull request #48230 from BrettDong/leak
Fix memory leak in symbol demangling
2021-03-27 09:26:14 +03:00
Binrui Dong 57ba734258 Fix memory leak in demangle() 2021-03-26 22:34:54 -04:00
Zhilkin Serg eedb52d5e3 Merge pull request #48231 from jbytheway/sdl_sound_use_after_free_fix
Backport Cataclysm-BN #355 to fix use-after-free in SDL sound code
2021-03-27 05:31:52 +03:00
Zhilkin Serg c3e38705b3 Merge pull request #48226 from John-Candlebury/t_rock-floating
Fix t_rock's floating roof
2021-03-27 05:29:40 +03:00
Zhilkin Serg 828b34abdf Merge pull request #48227 from jbytheway/weather_override_helper
Weather override helper
2021-03-27 05:29:28 +03:00
John Bytheway 3cf216f29b Backport Cataclysm-BN #355 to fix use-after-free
Original fix by olanti-p.

See https://github.com/cataclysmbnteam/Cataclysm-BN/pull/355

From the PR comments:

What I [olanti-p] believe happens is:

1. The pitch-shifted chunk is created from the original sound, and
   queued to play via Mix_PlayChannel()
2. Mix_RegisterEffect() successfully registers hook for de-allocating
   the chunk once it's done playing
3. Mix_SetPosition() fails for some reason with Unsupported audio
   channels error
4. play_variant_sound() reacts to this failure by instantly
   de-allocating the chunk it just allocated
5. SDL tries to play the sound, and dereferences a dangling pointer
6. Since we don't have debug symbols in SDL, backtrace looks all kinds
   of weird.

Solution:

* Don't deallocate the chunk if failed to set sound position
* If failed to register the de-allocator, halt playback before de-allocating
2021-03-26 21:17:31 -04:00
Eric Pierce cf500cf16e Rebalance turnout gear thickness (#48205) 2021-03-26 10:53:00 -07:00
John Bytheway 5d258bb836 Improve tests-must-restore-global-state
This check would not check properly in the event that two functions
changed the same global variable in the same translation unit.  Now we
verify that each function has its own restoration code.
2021-03-26 11:22:53 -04:00
John Bytheway 92b501fea4 Add RAII helper for weather overrides
Also, expand clang-tidy check to enforce its use.
2021-03-26 11:22:08 -04:00
John Candlebury c5311c1b15 Fix t_rock's floating rroof 2021-03-26 09:18:19 -06:00
Angela Graves 56a34c1719 Merge pull request #48222 from casswedson/obsoletion-time
Obsolete deconstruction recipes of IFAK and first aid kit
2021-03-26 05:18:59 -05:00
casswedson 34fbc5cfa7 obsolete recipes of IFAK and FAK 2021-03-25 18:28:50 -05:00
Zhilkin Serg 082dcf3495 Merge pull request #48220 from BrettDong/mingw
Fix C++ symbol demangling on cross-compile MinGW
2021-03-26 02:16:56 +03:00
Zhilkin Serg 944ef4c953 Merge pull request #48218 from jbytheway/improve_new_character_test
Improve starting_items test and fix albino umbrella issues
2021-03-26 02:16:43 +03:00
Zhilkin Serg 97ec3c90ec Merge pull request #48217 from jbytheway/force_tests_to_restore_options
Force tests to safely restore global values they change
2021-03-26 02:16:17 +03:00
Binrui Dong 0ff6bf705f Fix C++ symbol demangling on cross-compile MinGW 2021-03-25 16:27:12 -04:00
John Bytheway 6d7bb82978 Better feedback on starting_items test
When the test fails, report the scenario and the traits used by it.
2021-03-25 13:57:49 -04:00
John Bytheway cb6bf8a3c2 Include albinism in starting_items test
Albinism adds a telescoping umbrella, so it affects starting items.  And
in particular it has been causing test failures.
2021-03-25 13:57:49 -04:00
John Bytheway 1c87eadd49 Telescoping umbrella wearable on wrist or belt
The albino trait adds a telescoping umbrella to starting equipment, but
many professions had no space for it.  Make it wearable on your wrist,
and able to be clipped to a belt.  This should mean that any character
can have it in their starting inventory without difficulty.
2021-03-25 13:57:49 -04:00
John Bytheway 02019b30b9 Better error when inventory too small
The error message in migrate_items_to_storage indicates that the
Character's profession is probably the issue, but doesn't actually say
what the profession is.  Expand the message to provide the profession id
and item id.
2021-03-25 13:57:49 -04:00
John Bytheway 30e72522eb Fix issues found by new check
Run clang-tidy and fix or suppress all the issues it found.  This
includes a few of the type of issue intended to be found, and one issue
in the check code itself.
2021-03-25 09:53:44 -04:00
John Bytheway 5fde93dfcb Restrict enforcement to test files only 2021-03-25 09:08:22 -04:00
John Bytheway af3ebcde27 Limit warnings to only global variables 2021-03-25 08:54:13 -04:00
John Bytheway 6f1a5ffa95 Initial version of check for tests & global vars
We want to ensure that any test that alters the value of a global
variable restores it to its original state.  We even have a helper class
to ensure that happens, even in the case of exceptions.

This is a first draft of a clang-tidy check intended to verify that
tests follow this rule.
2021-03-25 08:42:52 -04:00
Angela Graves d02fc13f17 Merge pull request #48216 from OromisElf/light_bones_mixed
light bones is classified as mixed mutation now
2021-03-25 07:01:11 -05:00
OromisElf 8df74eb61f light bones is classified as mixed mutation now 2021-03-25 12:35:01 +01:00
Zhilkin Serg 1de2c9d30f Merge pull request #48028 from OromisElf/skeletal_fix
switch skeletal brute and zombie bullet armor
2021-03-25 10:40:42 +03:00
Zhilkin Serg 2b701f117f Merge pull request #47870 from Salty-Panda/fix_charge_consumption_for_iuse
Make iuse_transform properly report charges it should consume
2021-03-25 10:31:09 +03:00
s7eampunk 40e93dc0f5 manual labour doesn't make you sleepy (#47512)
Co-authored-by: actual-nh <74678550+actual-nh@users.noreply.github.com>
2021-03-25 09:41:44 +03:00
Zhilkin Serg b73618e1e5 Merge pull request #48207 from BrettDong/charges
Check charges by item->units_remaining in has_item_with_flag
2021-03-25 09:38:42 +03:00
Binrui Dong a3575e8dbc Check charges by item->units_remaining in has_item_with_flag 2021-03-24 12:43:10 -04:00
Angela Graves 1e09f2fc73 Merge pull request #48185 from kevingranade/changelog_20210201
The Changelog at the end of the tunnel
2021-03-24 06:36:30 -05:00
Zhilkin Serg bdfe7b5f22 Merge pull request #48197 from casswedson/fuji-prof-fix
Fix fuji's mil professions errors
2021-03-24 10:15:06 +03:00
casswedson 6bc2b6d41c fuji prof fix 2021-03-23 12:52:35 -05:00
Angela Graves b991a1bab2 Merge pull request #48186 from kevingranade/obsolete-bio-shock-absorber
Obsolete shock absorber CBM
2021-03-23 06:48:06 -05:00
Zhilkin Serg b73d4c44d6 Apply suggestions from code review
Co-authored-by: actual-nh <74678550+actual-nh@users.noreply.github.com>
2021-03-23 11:27:51 +03:00
Zhilkin Serg df29a77704 Merge pull request #48133 from MarlossCDDA/marloss/sort-by-dps
"sort by damage" in advanced item management should use dps
2021-03-23 11:24:19 +03:00
Zhilkin Serg 814ff4a937 Merge pull request #48138 from OromisElf/hatches_have_windows
hatches have windows
2021-03-23 11:23:48 +03:00
Zhilkin Serg 0838325e1c Merge pull request #48173 from OromisElf/forge_harvest_stuff
[Magiclysm] added monster stuff to forge trader
2021-03-23 11:22:02 +03:00
Zhilkin Serg 6dbfb73fc8 Merge pull request #48170 from OromisElf/magiclysm_prices
[Magiclysm] add prices to some magiclysm animal harvests
2021-03-23 11:21:27 +03:00
Zhilkin Serg 62e48e3ba9 Merge pull request #48175 from ama0/fix-windows
fix tearing down curtian on open window
2021-03-23 11:21:07 +03:00
actual-nh ed291cad9e Remove different behavior for debug_mode in Creature::sees() (#48048)
* Remove different behavior for debug_mode in Creature::sees()

Creature::sees(), if its parameter was a creature, was ignoring
a false fov_3d combined with different z-levels if debug_mode was
true. This is not true for Creature::sees() for a specific tripoint,
which is inconsistent, and having debug mode result in significantly
different in-game behavior is undesirable.

* Remove debug_mode check from monster attack test

This PR removes the relevance of `debug` to `sees`. Thus, capturing
its value is no longer needed.

Co-authored-by: actual-nh <actual-nh@users.noreply.github.com>
2021-03-23 11:20:43 +03:00
Zhilkin Serg a1a3d24abf Merge pull request #48143 from wapcaplet/w-no-harm-no-foul
Allow stacking guns with different shot counters or dirt levels
2021-03-23 11:19:20 +03:00
Faalagorn 309f0ffbd6 Rephrase comment in en.credits file (#48165) 2021-03-23 11:18:44 +03:00
Zhilkin Serg 4509ca0dc7 Do not use borderless window on MSVC by default (#48159) 2021-03-23 11:15:06 +03:00
Zhilkin Serg 9e7d8975f1 Merge pull request #48189 from RoyBerube/reload_recharge
Avoid migrating saves when not needed
2021-03-23 11:14:46 +03:00
Zhilkin Serg 5f47435072 Merge pull request #48190 from DarkDaskin/text-performance-fix
Fixed bad performance on large screens with lots of text.
2021-03-23 11:14:19 +03:00
Dark Daskin 1487a7bcf9 Fixed bad performance on large screens with lots of text.
Closes #48179.
2021-03-23 06:52:45 +03:00
RoyBerube 4a0d6203da Avoid migrating saves when not needed 2021-03-22 21:10:53 -06:00
Kevin Granade d50a002d26 Obsolete shock absorber CBM 2021-03-22 18:10:35 -07:00
Kevin Granade 894002bd18 Revert #46455, crit thresholds scaling with monster HP increases is intentional. 2021-03-22 16:39:38 -07:00
Kevin Granade 91992c89fa Prune and copyedit changelog 2021-03-22 16:20:17 -07:00
Kevin Granade ab0069837d Import PR summaries up to 2021-01-01 2021-03-22 16:20:17 -07:00
Zhilkin Serg 0e06ab14a7 Merge pull request #48180 from OromisElf/pre_special_documentation
Update JSON_INFO.md to include pre_special
2021-03-22 20:58:45 +03:00
Zhilkin Serg 657ae8c118 Merge pull request #48181 from LaVeyanFiend/SalvageRecipe
[Aftershock] Fix training rifles/archery by crafting salvage weapons
2021-03-22 20:58:28 +03:00
LaVeyanFiend 5dc3f09725 Fix training rifles/archery by crafting salvage weapons 2021-03-22 10:35:13 -04:00
OromisElf 7a72f1c2bc Update JSON_INFO.md 2021-03-22 09:24:20 +01:00
Angela Graves 68ae0abd0a Merge pull request #48162 from DanielVartanov/make-roasted-cattail-rhizome-millable
Make roasted cattail rhizome millable.
2021-03-22 03:08:03 -05:00
Zhilkin Serg 9c8c3f32cc Merge pull request #48176 from BrettDong/windows
Fix translations not working on Windows for some Windows languages
2021-03-22 02:22:49 +03:00
Serhiy Zahoriya 0d05f69555 Infrastructure "compose.py --use-all now works with filler sheets separately" (#48125)
* Refactor Tileset.referenced_pngnames

* split unreferenced filenames list

* Remember IDs for autogenerated entries as used

* remove outdated comment

* Don't create tile entries for processed IDs

* Warn about unused sprites matching processed IDs
2021-03-22 02:22:15 +03:00
Zhilkin Serg 14dfd25a95 Merge pull request #48166 from Fris0uman/msxupdates2103
MSxotto+ update 2021-03-21
2021-03-22 02:18:42 +03:00
Zhilkin Serg 25ede4d7a7 Merge pull request #48167 from Fris0uman/chibiupdate2103
Update ChibiUltica 2021-03-21
2021-03-22 02:17:13 +03:00
Binrui Dong 0bb9f7cced Set LANG environment variable on Windows 2021-03-21 17:22:44 -04:00
Binrui Dong fe978d5213 Get system UI language on Windows 2021-03-21 17:22:38 -04:00
ama0 0c34266253 fix tearing down curtian on open window 2021-03-21 22:06:35 +01:00
OromisElf 65cb434beb added harvest stuff to forge guy 2021-03-21 19:45:21 +01:00
OromisElf 6c95e3c93d Update alchemy_items.json 2021-03-21 19:32:14 +01:00
Fris0uman f8246add4d MSxotto+ update 2021-03-21 2021-03-21 17:35:28 +01:00
Fris0uman 4adb2d6093 Update ChibiUltica 2021-03-21 2021-03-21 17:27:05 +01:00
Daniel Vartanov e8df265e1f Make roasted cattail rhizome millable.
It makes no sense for them not to be millable in a wind mill.
2021-03-21 10:36:29 +00:00
Angela Graves 9b256f63cd Merge pull request #48112 from souricelle/parrot-frequency-and-volume
Reduce parrot spam and standardize volume
2021-03-21 03:48:58 -05:00
actual-nh 446f13c73a Radioactive fields test allows equality (#48121)
* Use <= instead of < in one field test

The radioactive field test is repeatedly failing due to the test being
for less-than instead of less-than-or-equal (300 vs 300 turns). Due to
test logs not being searchable on either Github or Travis, I am not
able to locate some past cases I have seen, but I can locate
https://travis-ci.org/github/CleverRaven/Cataclysm-DDA/jobs/763202025
and
https://github.com/CleverRaven/Cataclysm-DDA/pull/48119/checks?check_run_id=2143797637.
(I am grateful to wapcaplet for the PR enabling actually seeing what
the numbers were.)

* Remove 2 unneeded changes.

I had been thinking of making all of the less-than turns into
less-than-or-equal turns, but decided against it. Some edits were left
over; this commit removes them.

Co-authored-by: actual-nh <actual-nh@users.noreply.github.com>
2021-03-21 09:03:25 +03:00
Zhilkin Serg 32dc89bcca Merge pull request #48136 from mlangsdorf/debug_all_map_extras
debug menu: put all map extra in the debug menu
2021-03-21 09:02:29 +03:00
Zhilkin Serg 10325ab016 Merge pull request #48144 from UmbralReaper/Fix-bug-lungs
Fix mutant bug lungs not inheriting toxins
2021-03-21 09:00:53 +03:00
Zhilkin Serg 3437b53b6b Merge pull request #48142 from UmbralReaper/Fix-aura
Fixes graphical bug with auras of protection
2021-03-21 09:00:43 +03:00
Zhilkin Serg f4c88c34e9 Merge pull request #48152 from BrettDong/demangle-bsd
Implement C++ symbol demangling on FreeBSD and OpenBSD
2021-03-21 08:59:33 +03:00
Eric Pierce f240af9465 Add test case for map_without_keys 2021-03-20 12:43:59 -06:00
Eric Pierce ff83d1ec79 Ignore dirt and shot_counter when stacking items
Similar guns that have fired a different number of bullets can still be
stacked together in the inventory, unless:

- One gun has never been fired (has no `faults`), while the other has
- OR the fouling is different enough to have different `dirt_symbol`s
2021-03-20 12:43:59 -06:00
Eric Pierce 32d279d976 Add map_without_keys function to cata_utility 2021-03-20 12:43:54 -06:00
Binrui Dong 7a4fea5eed Implement C++ symbol demangling on FreeBSD and OpenBSD
The pattern of backtrace on FreeBSD and OpenBSD are almost the same, the
only difference is that on FreeBSD the offset is heximal but on OpenBSD
the offset is decimal. So I write 0?x?[a-f0-9]* in the reguluar
expression to accommodate both formats.
2021-03-20 14:32:33 -04:00
Angela Graves 3a8df30748 Merge pull request #48126 from Zlorthishen/patch-3
Update lighthouse to prevent phantom roofs from appearing after save/load.
2021-03-20 05:22:24 -05:00
UmbralReaper ca765e4ec1 Fix mutant bug lungs not inheriting toxins. 2021-03-20 13:15:24 +10:00
UmbralReaper 469488bbcf Workaround graphical bug. 2021-03-20 12:22:04 +10:00
Eric Pierce 005231167d Factor out item::dirt_symbol from item::tname 2021-03-19 16:52:36 -06:00
Zhilkin Serg 4338567d94 Merge pull request #48135 from John-Candlebury/afs-elebug
Aftershock: Fix electroshock grenade spawning a none
2021-03-20 00:55:24 +03:00
Zhilkin Serg 15e3c49fdd Merge pull request #48132 from mlangsdorf/dsa_revived
mods: Dark Skies Above reborn!
2021-03-20 00:54:59 +03:00
OromisElf b72fec5f8f hatches have windows 2021-03-19 21:18:42 +01:00
Mark Langsdorf 78faadb970 debug menu: put all map extra in the debug menu
Now that map extras can be built in or update_mapgen, the debug
menu is less useful because it doesn't allow selecting the update
mapgen options.

Rewrite the logic to use a vector of strings that are the map extra
names/generator_ids, so it is now possible to use the debug menu to
spawn any valid update_mapgen.
2021-03-19 13:55:29 -05:00
John Candlebury 1e1bf9996f Fix electroshock grenade spawning a none 2021-03-19 10:40:46 -06:00
MarlossCDDA da501e5ae9 "sort by damage" in advanced item inv should use dps 2021-03-19 11:27:59 -04:00
Mark Langsdorf 720e0be92c mods: Dark Skies Above reborn!
ephemeral_storyteller and mlangsdorf are reviving the original
Dark Skies Above total conversion alien invasion mod.

Adjust the DESIGN.md and modinfo.json to reflect the new status,
and add a TODO.md to keep us on track and focused on small,
achievable goals.

Delete the bionics professions from the scenario overrides.
2021-03-19 09:39:38 -05:00
Angela Graves d55d4a1eb7 Merge pull request #48065 from casswedson/charged-prof
Fix profession smartphones spawning with no charges
2021-03-19 05:53:56 -05:00
Zlorthishen a255c44538 Update lighthouse.json
removes some 'Q' terrain which causes phantom roofs to appear
2021-03-19 02:11:40 -05:00
souricelle 6596e606ce Update data/json/speech.json
Co-authored-by: actual-nh <74678550+actual-nh@users.noreply.github.com>
2021-03-18 23:15:06 -07:00
souricelle 34a92239c1 Update data/json/speech.json
Co-authored-by: actual-nh <74678550+actual-nh@users.noreply.github.com>
2021-03-18 23:15:00 -07:00
casswedson 85c320e4a4 Update professions.json 2021-03-18 15:37:44 -05:00
John Candlebury 5ca62e7404 Aftershock: Formless ruins (#47767) 2021-03-18 23:26:50 +03:00
souricelle b6192279b2 Fix chitin and biosil chitin armor kit install/uninstall requirements (#47969) 2021-03-18 23:21:16 +03:00
Zhilkin Serg c14ec1d194 Merge pull request #48046 from Jamuro-g/stretch_attack-only-checks-players-for-uncanny-dodge
fix stretch attacks uncanny dodge target
2021-03-18 23:18:11 +03:00
Fris0uman 967510fb8f Obsolete zombie pheromone (#48059)
* Obsolete zombie pheromones

* Remove pheromone from source code

* Remove pheromone from mods
2021-03-18 23:11:41 +03:00
Zhilkin Serg 7ecc05393c Merge pull request #48070 from Saint-of-Grey/kcal-to-calorie
Fix insane plant mutation calorie production
2021-03-18 23:08:53 +03:00
actual-nh cebcc044f8 Check reverse attitudes for monfactions_test matrix (#48069)
* Check reverse attitudes for monfactions_test matrix

It is desirable for attitudes and reverse attitudes between monster
factions to be congruent. Most troublesome is when one has
MFA_FRIENDLY or MFA_NEUTRAL and the other has MFA_BY_MOOD or
MFA_HOSTILE, whereupon the second will attack the first but the
first does not retaliate.
2021-03-18 23:03:46 +03:00
Dekker3D 9b14c88cf6 Added calories to coffee syrup (#48093)
* Added calories to coffee syrup (made with sugar), removed nutrient_override from coffee, added nutrient_override to coffee powder and set kcal to 2, to keep existing behaviour when making coffee from powder.

* Also removed nutrient_override from atomic coffee.

* Adjust coffee syrup recipe and portions to match calories with ingredients.
2021-03-18 23:01:44 +03:00
MarlossCDDA c5f07f41c3 Remove the CARRION_SPAWNRATE world config option 2021-03-18 15:54:07 -04:00
casswedson 15bebba6c4 Include gfx folder in json validation test (#48101) 2021-03-18 22:51:38 +03:00
Zhilkin Serg 9f303de37c Merge pull request #48104 from BrettDong/ios-lang
Detect iOS system language
2021-03-18 15:16:03 +03:00
Zhilkin Serg e2cbfda6e6 Merge pull request #48102 from casswedson/fix-gfx-formatting
Fix formatting in gfx folder
2021-03-18 15:15:11 +03:00
souricelle 628603d21f Updated Shoggoth Parrot 2021-03-18 04:43:49 -07:00
Angela Graves a6ea00196c Merge pull request #48098 from HenrySATX/gator_harvest_fix
Change sewer gator harvest attribute to mammal_large_leather
2021-03-18 05:50:57 -05:00
souricelle 3cc5ca72d8 Change parrot volume and frequency 2021-03-18 02:53:21 -07:00
Binrui Dong 9c4cc22033 Detect iOS system language 2021-03-17 18:05:33 -04:00
casswedson 84d42d5366 fix formatting in gfx folder 2021-03-17 15:24:21 -05:00
HenrySATX b1848621fe Change sewer gator harvest attribute to mammal_large_leather
Harvesting an alligator should yield skin to make leather

resolves #47879
2021-03-17 14:10:16 -05:00
Zhilkin Serg 9a1187f549 Merge pull request #48043 from wapcaplet/w-saner-json-errors
Make JSON loading and assignment errors clearer
2021-03-17 21:56:31 +03:00
John Candlebury 62c238006d Cuteclysm: Begin (#48054)
* Cuteclysm: Begin

* Now with BLB filler items-vehicle sprites thanks to Fris0uman
2021-03-17 21:54:26 +03:00
Fris0uman b1a8fa754b Fix Offset of zombie_ears (#48057)
* Fix Offset of zombie_ear

* Fix useless mon_zombie_ear
2021-03-17 21:53:38 +03:00
Kevin Granade 4dad4ecbe9 no changelog no cry (#48049)
* Import PR summaries up to January 2021

* Prune and copyedit new changelog entries

Co-authored-by: actual-nh <74678550+actual-nh@users.noreply.github.com>
2021-03-17 21:52:59 +03:00
Zhilkin Serg 5b4060ff6a Merge pull request #48094 from anothersimulacrum/trait-opt
Don't copy mutation branches unecessarily
2021-03-17 21:51:48 +03:00
anothersimulacrum d73fec3f6c Don't copy mutation branches unecessarily 2021-03-17 09:48:22 -07:00
Angela Graves 74e26ace01 Merge pull request #48056 from Tairesh/nerf_luxury_rv_spawn_on_groundcamps
nerf luxury RV spawn and make it damaged in the campgrounds
2021-03-17 05:58:58 -05:00
Zhilkin Serg 5d00644e37 Merge pull request #48087 from CleverRaven/revert-47995-filterlevel
Revert "Allow filtering by level in the recipe craft menu"
2021-03-17 00:31:05 +03:00
Zhilkin Serg f776d86eb3 Revert "Allow filtering by level in the recipe craft menu (#47995)"
This reverts commit f6a55f750b.
2021-03-17 00:29:24 +03:00
ToxiClay a28ef5c8d3 Catch the JsonError about multi-tile more gracefully (#47448) 2021-03-16 09:59:14 +03:00
RadHazard f0a7714c69 Update difficulty rating for TALON UGV and the gasoline/burner zombies (#47580) 2021-03-16 09:57:06 +03:00
Saicchi f6a55f750b Allow filtering by level in the recipe craft menu (#47995) 2021-03-16 09:37:58 +03:00
Zhilkin Serg 8cef617026 Merge pull request #48061 from anothersimulacrum/mbi
Ignore weariness for calorie fueled bionics
2021-03-16 09:34:26 +03:00
Zhilkin Serg 6045612442 Merge pull request #48068 from nornagon/fix-leather_armor_horse
remove extraneous LIST in leather_armor_horse using
2021-03-16 09:32:07 +03:00
Zhilkin Serg ff3a80b577 Merge pull request #48039 from tsulh/bugfix_for_48037
balance ingredients required for reinforced and default plastic window
2021-03-16 09:29:53 +03:00
actual-nh 6cb9c7f2c7 Fix mis-setting of 3d fov in tests; check for status for monster attack test (#48040) 2021-03-16 09:29:18 +03:00
Jamuro-g 173515e41b fix uncanny dodge seatbelt & passenger flag issue (#48036) 2021-03-16 09:28:33 +03:00
Zhilkin Serg 907b769770 Merge pull request #48050 from OromisElf/more_doc
update mapgen.md
2021-03-16 09:26:59 +03:00
Fris0uman d8438de1a8 Remove leftover mention of zlave from the code (#48058) 2021-03-16 09:25:11 +03:00
Zhilkin Serg bcd4c6c983 Merge pull request #48066 from nornagon/patch-8
fix recipe for sleeveless_duster_faux_fur
2021-03-16 09:23:30 +03:00
Zhilkin Serg 15e54c995f Merge pull request #48075 from BrettDong/ios-keyboard
Fix key input on iOS
2021-03-16 09:23:03 +03:00
Zhilkin Serg 4ff64272c8 Merge pull request #48063 from BrettDong/ios-cmp
Use localized string comparator on iOS
2021-03-16 09:22:49 +03:00
Saint of Grey 9b81f9e9d5 Removes plant calorie production 2021-03-15 22:36:23 -07:00
Angela Graves ea47c126af Merge pull request #48030 from souricelle/fix-rock-and-bb-damage-types
Fix Rock and BB Damage Types
2021-03-16 00:26:52 -05:00
Binrui Dong 1e82a687e7 Fix key input on iOS 2021-03-16 00:26:42 -04:00
Fris0uman fe432c16f9 Remove unecessary harvest entries from Magiclysm 2021-03-15 21:45:23 -04:00
Jeremy Rose f6e344e539 remove extraneous LIST in leather_armor_horse using 2021-03-15 17:12:21 -07:00
Jeremy Rose f19b105dd8 fix recipe for sleeveless_duster_faux_fur 2021-03-15 17:07:14 -07:00
casswedson 6729343d9d charge profession items 2021-03-15 18:55:33 -05:00
Eric Pierce e7ab6e4826 Make JSON loading and assignment errors clearer 2021-03-15 16:29:34 -06:00
Binrui Dong 683e4737aa Use localized string comparator on iOS 2021-03-15 17:09:56 -04:00
anothersimulacrum 57512969f1 Ignore weariness for calorie fueled bionics
These should probably have some effect, but the current effect is pretty
overtuned.
2021-03-15 10:00:17 -07:00
Ilya Agafonov afd98e7a51 nerf luxury RV spawn and make it damaged 2021-03-15 12:47:42 +05:00
Angela Graves b7e1cd5cd9 Merge pull request #48044 from Paperbell/master
Changed length of staff sling to length of quarterstaff.
2021-03-15 00:26:04 -05:00
OromisElf 78eaef5cac update mapgen.md 2021-03-15 01:49:41 +01:00
Jamuro-g 6f2497a6cd fix stretch attack 2021-03-15 00:34:22 +01:00
Paperbell 0db9eaca7d Changed length of staff sling to length of quarterstaff. 2021-03-14 16:37:48 -05:00
souricelle 39e8050092 Update ammo.json
Re-added rock melee damage.
2021-03-14 14:14:50 -07:00
aerrant 8419da6ffa Misc terrain fixes, extra terrain verification (#47629) 2021-03-14 23:59:24 +03:00
Jeremy Rose f5670fdd86 jsonify bow tags (#47975) 2021-03-14 23:56:17 +03:00
Zhilkin Serg a515b4ca77 Merge pull request #47997 from OromisElf/more_launcher_range
increased range of 40x46mm grenades from 24 to 60
2021-03-14 23:51:20 +03:00
Zhilkin Serg 5790499249 Merge pull request #48005 from OromisElf/itemgroup_fix
[Magiclysm] Remove Manatricity from Kelvinist itemgroup
2021-03-14 23:50:55 +03:00
Zhilkin Serg aea97ed858 Merge pull request #48006 from nornagon/patch-7
remove extraneous numbers from vitamin disease arrays
2021-03-14 23:50:30 +03:00
Zhilkin Serg 1c4fbf1fdd Merge pull request #48038 from anothersimulacrum/variantDef
Extract vehicle part variants with vehicleDef.py
2021-03-14 23:46:34 +03:00
Zhilkin Serg f2de89d5f9 Merge pull request #48027 from akirashirosawa/fix-reward_count-alternative
format_tokenized_description for mission name
2021-03-14 23:35:56 +03:00
Zhilkin Serg f89dfa749f Merge pull request #48035 from actual-nh/patch-11
Resort dancer should have dodge
2021-03-14 23:34:14 +03:00
Zhilkin Serg b43409d63c Merge pull request #47977 from BrettDong/android-lang
Retrieve system language on Android
2021-03-14 23:34:01 +03:00
tsulh 749e3e2642 balance ingredients required for reinforced and default plastic window
currently, reinforced plastic window requires less material than plastic window

closes #48037
2021-03-14 21:02:47 +01:00
anothersimulacrum e6e66035dc Extract vehicle part variants with vehicleDef.py 2021-03-14 12:57:47 -07:00
actual-nh b6e6a649d2 Resort dancer should have dodge 1
Given that dancing helps with dodge in the game, and zombies (such as the tough zombie and resort bouncer zombies) can have dodge, resort dancer zombies should have dodge.
2021-03-14 12:33:17 -04:00
souricelle d4f1ca0ccd Update ammo.json 2021-03-14 03:46:51 -07:00
souricelle 83355a74c0 Update ammo.json
Change damage types on rocks and BBs from stab to bash/bullet respectively.
2021-03-14 03:41:49 -07:00
souricelle b7e99fb7ea Merge branch 'master' into fix-rock-and-bb-damage-types 2021-03-14 03:40:24 -07:00
OromisElf 0816ad6c0d switch skeletal brute and zombie bullet armor 2021-03-14 10:07:28 +01:00
MarlossCDDA 2fe59a1f14 Allow constructing makeshift beds with a wider variety of blankets (#47750) 2021-03-14 11:24:55 +03:00
Zhilkin Serg 329fb980aa Merge pull request #47892 from chrispikula/Five_Liter_Bucket
Change bucket to contain 5L from 4990 mL, increased volume of bucket to 5.5L
2021-03-14 11:24:02 +03:00
Zhilkin Serg 42d4addd0d Merge pull request #48018 from Fris0uman/fire_engine
Fix middle front seat of fire engine
2021-03-14 11:23:24 +03:00
Zhilkin Serg 240ba62bd4 Merge pull request #48022 from anothersimulacrum/train_ub
Fix potential UB when practicing combat skills with large amounts of practice
2021-03-14 11:23:03 +03:00
akirashirosawa b060ace41c format_tokenized_description for mission name 2021-03-14 11:14:28 +03:00
Angela Graves f20e8c7adc Merge pull request #48023 from anothersimulacrum/more_recipe_migration
Migrate more recipes
2021-03-14 01:02:47 -06:00
Binrui Dong 1388c059ac Retrieve system language on Android 2021-03-13 23:54:58 -05:00
MarlossCDDA 45f883c7d9 [Magiclysm] Incremental spellcrafting skill gain (and focus loss) in spell study (#48021)
* Incremental spellcrafting skill gain (and focus loss) in spell study

* oh this is already in scope
2021-03-13 23:52:39 -05:00
anothersimulacrum 4f76c76845 Migrate more recipes
Glass jars and their recipes were removed, but the recipes weren't
obsoleted.

The four winds shotgun changed during experimental, but also did not
receive an obsolete entry.
2021-03-13 17:01:49 -08:00
anothersimulacrum 5d5509b8f4 Add test ensuring no UB on practicing combat skill 2021-03-13 15:55:53 -08:00
anothersimulacrum e7a8936c83 Prevent UB w/ training combat skills for long time
Normally combat skills don't have a way to recieve massive all-at-once
chunks of practice, which is probably why this went undiscovered.

However, learning spellcraft from studying spells can provide large
chunks of experience all at once in combat skills, triggering the UB
fixed here.
2021-03-13 15:55:53 -08:00
Fris0uman 1223b67a25 Fix middle front seat of fire engine 2021-03-13 23:24:26 +01:00
Fris0uman fb7f80eb04 Various fix to MSx and ChibiUltica (#48014) 2021-03-13 15:23:31 +03:00
Angela Graves 577194e299 Merge pull request #47988 from MarlossCDDA/marloss/cleanup-remove-unnecessary-3000
[cleanup] Remove no-op <3000 check in butcher_time_to_cut
2021-03-13 05:41:41 -06:00
Zhilkin Serg 1208f2798d Merge pull request #47998 from actual-nh/patch-11
Correct mattack::dermatik boolean logic bug
2021-03-13 08:36:31 +03:00
Kevin Granade 823231f4e8 Mo changelog mo problem (#47978)
* Import PR summaries up to December 2020

* Copyedit changelog
2021-03-13 08:34:49 +03:00
Zhilkin Serg e465350e7e Merge pull request #47985 from BrettDong/plutonium
Fix plutonium duplication when unloading minireactor
2021-03-13 08:33:16 +03:00
Zhilkin Serg f118293101 Merge pull request #48002 from BrettDong/osx-ver
Automatically detect OSX version in Makefile
2021-03-13 08:32:41 +03:00
Zhilkin Serg 9eb995a7d5 Merge pull request #48013 from BrettDong/i18n
Routine i18n updates on 12 Mar 2021
2021-03-13 08:31:53 +03:00
Zhilkin Serg 9789ecdcb2 Merge pull request #48004 from wapcaplet/w-field-test-to-turns
Compare turns instead of time_durations in field_test
2021-03-13 08:31:38 +03:00
Binrui Dong e9f0f174ff Routine i18n updates on 12 Mar 2021 2021-03-12 23:29:09 -05:00
Binrui Dong acb41a11b8 Update compiling documentation for macOS 2021-03-12 22:56:19 -05:00
Jeremy Rose 1e71608c6f remove extraneous numbers from vitamin disease arrays 2021-03-12 15:52:21 -08:00
OromisElf a406004454 Update itemgroups.json 2021-03-13 00:31:26 +01:00
Eric Pierce fc3b949281 Compare turns instead of time_durations
Using CHECK with a time_duration yields unhelpful messages like:

    CHECK( fields_test_duration() < time_limit )
    {?} < {?}

Converting the compared values to an integer number of turns allows the
messages (for both success and failure) to be more intelligible, like:

    CHECK( fields_test_turns() < time_limit_turns )
    113 < 3600 (0xe10)
2021-03-12 13:26:23 -07:00
Binrui Dong 12001f6fd1 Simplify Mac CI build script 2021-03-12 14:06:09 -05:00
Binrui Dong b154ae4841 Auto detect macOS version if compiling natively on Mac 2021-03-12 14:05:51 -05:00
actual-nh 19c3a2aa76 Correct mattack::dermatik boolean logic
It should not require both Parasite Immunity and Acid Blood to be immune.
2021-03-12 10:02:17 -05:00
OromisElf 5196c851a7 increased range from 24 to 60 2021-03-12 15:56:26 +01:00
Angela Graves d821da4ea4 Merge pull request #47991 from MarlossCDDA/marloss/time-limits
Pump up time limit on field_test
2021-03-12 05:25:36 -06:00
MarlossCDDA cb107ae7db Pump up time limit on field_test
The comment explicitly says that there's no basis for choosing 5 minutes
and it's fine to bump it, so that's what I'm doing
2021-03-11 18:28:50 -05:00
MarlossCDDA f338b7308f [cleanup] Remove no-op <3000 check 2021-03-11 16:44:29 -05:00
Binrui Dong 8826a2926a Fix plutonium duplication when unloading minireactor 2021-03-11 13:20:56 -05:00
Angela Graves ed4b3c1b04 Merge pull request #47964 from actual-nh/rubber_glove_fix
Make rubber gloves more realistic in stats
2021-03-11 06:16:09 -06:00
Jamuro-g c84234f9c1 fix paper shotgun ammo (#47966)
* fix paper shotgun ammo
2021-03-10 19:16:25 -08:00
souricelle 68d41e5489 Fix sex with Alonso causing instant death (#47894)
* Update NPC_Alonso_Lautrec.json
Co-authored-by: anothersimulacrum <anothersimulacrum@gmail.com>
2021-03-10 19:14:57 -08:00
Angela Graves 48f45e88a7 Merge pull request #47967 from Jamuro-g/Fix-don't-drop-liquids-in-vehicle-cargo-spaces
fix drop liquid action
2021-03-10 05:23:39 -06:00
Zhilkin Serg 16d21b185d Merge pull request #47968 from tsulh/bugfix_for_45240 2021-03-10 09:37:27 +03:00
tsulh a543700b4b fix an apparent typo in src/map.cpp
map "has_nearby_table" was not working properly for vehicles,
this caused Rigid Table Manners trait not working as described

closes #45240, resolves #47949, resolves #45440
2021-03-10 04:48:02 +01:00
Jamuro-g e1455ac132 fix drop liquid action 2021-03-10 04:07:10 +01:00
actual-nh a9b6853b84 Adjust volume to 250 ml
I forgot to adjust the volume, which was 1 L; putting equal to 250 ml,
that of, e.g., wool and work gloves.
2021-03-09 19:38:16 -05:00
actual-nh dac95d57f2 Make rubber gloves more realistic in stats
Fixes #47900.

Currently, rubber gloves are 3 mm thick, which is almost 8x the
thickness of "extra-thick" rubber gloves (see the issue), and results
in them having bash resistance of 15. Adjust to be more realistic;
see the issue for more on the exact numbers chosen.
2021-03-09 19:10:32 -05:00
TheMrMomo aac9170e5e Add lycra to enchanted Tailor's kit. (#47955) 2021-03-09 18:39:47 +03:00
Kevin Granade 018a1b884c Make crafting practice occur every turn instead of occasionally. (#47186) 2021-03-09 14:52:53 +03:00
Zhilkin Serg 192a475996 Merge pull request #47923 from OromisElf/mattresses_contain_springs
more things with springs
2021-03-09 14:02:59 +03:00
Angela Graves 4d3b96b033 Merge pull request #47898 from kevingranade/changelog_20201101
Changelog November 2020 update
2021-03-09 03:42:31 -06:00
Zhilkin Serg 6547fc0ade Merge pull request #47944 from Light-Wave/fix_flesh_pouch_on_ground
Fix hide bag decaying on ground
2021-03-08 23:28:16 +03:00
Jamuro-g dbd23b903c Fix restore targeted bayonet usage for guns (#47857) 2021-03-08 23:26:52 +03:00
Zhilkin Serg d636840cbd Merge pull request #47902 from Lamandus/fixhali
Halligan fits in Fireaxe
2021-03-08 23:25:32 +03:00
Fris0uman 36b9376843 Setup tests of the various type of automatic trigger for mutations (#47873) 2021-03-08 23:24:35 +03:00
Fosheze e436f78e3f Update E-Tool Dimensions (#47891) 2021-03-08 23:23:41 +03:00
Zhilkin Serg 917879b926 Merge pull request #47885 from Jamuro-g/Fix-aim-item-duplication
Fix aim item duplication
2021-03-08 23:23:23 +03:00
Serhiy Zahoriya c9f91aaebe Infrastructure "compose.py: fix sheet ranges calculation" (#47882)
* compose.py: rework sheet ranges calculation

* Move 'tiles' object to the end of tilesheet conf
2021-03-08 23:22:48 +03:00
Zhilkin Serg 706e8b8382 Merge pull request #47896 from nornagon/cleanup-ammo-type-info
clean up ammo_type info code
2021-03-08 23:19:19 +03:00
Jianxiang Wang (王健翔) 4c32ad11b8 Use sed to conditionally add tag strings to parallel execution (#47905) 2021-03-08 23:16:51 +03:00
Zhilkin Serg 2adc2c1866 Merge pull request #47931 from nornagon/patch-6
normalize probabilities in wallets.json
2021-03-08 23:15:15 +03:00
moxian 1492639076 Fix crash in disassembling everything. (#47926)
* Fix crash in disassembling everything.

Prevents iterator invalidation issues by collecting the stable item
locations to a temporary vector, instead of using the raw references to
the items on the map.
2021-03-08 23:15:00 +03:00
Zhilkin Serg 6425fc431b Merge pull request #47930 from Fris0uman/cibi3007
Chibi-Ultica Update 2021-03-07
2021-03-08 19:42:15 +03:00
Zhilkin Serg 25c7acdbe0 Merge pull request #47929 from Fris0uman/msx0703
MSXotto+ Update 2021-03-07
2021-03-08 19:41:54 +03:00
Zhilkin Serg 0a05877f8e Merge pull request #47936 from BrettDong/mac-ubsan
Fix false positive sanitizer error on Mac
2021-03-08 19:41:24 +03:00
Zhilkin Serg 319b369a85 Merge pull request #47937 from BrettDong/i18n
Routine i18n updates on 7 Mar 2021
2021-03-08 19:40:53 +03:00
Zhilkin Serg d8dc8eccea Merge pull request #47938 from wapcaplet/w-harvest-reset
Reset harvests to avoid otherworldly errors
2021-03-08 19:39:53 +03:00
Light-Wave d8e0372472 Fix hide bag decaying on ground
Makes hide bag and ethereal items not delete their content when they decay on the ground outside of any inventory.
2021-03-08 14:25:23 +01:00
Angela Graves d517b51c43 Merge pull request #47934 from Ramza13/fix_smoking
Fix smoking taking time to not work.
2021-03-08 01:38:33 -06:00
Ramza13 859d66a413 Fix still taking a second when activating from inventory screen 2021-03-07 20:02:53 -05:00
Eric 490e7983f0 Update src/iuse.cpp
Co-authored-by: Binrui Dong <brett.browning.dong@gmail.com>
2021-03-07 19:49:53 -05:00
Eric Pierce 24ae52054f Reset harvest data in unload_data
Harvest data from the previously loaded world was not reset, leading to
a bunch of errors from unrelated mods in a different world.

Add a harvest_list::reset() method to clear the previously loaded
harvest list, and call it from unload_data().

Fix #47932
2021-03-07 17:20:05 -07:00
Binrui Dong 7b67d2e2ff Routine i18n updates on 7 Mar 2021 2021-03-07 18:44:38 -05:00
Binrui Dong 6e3d9b9ddc Fix false positive sanitizer error on Mac
UndefinedBehaviorSanitizer does not function properly when
-mmacosx-version-min is set to a value lower than 10.9.
2021-03-07 18:30:05 -05:00
Ramza13 ce7ca4d6c7 Fix smoking time 2021-03-07 17:11:33 -05:00
Jeremy Rose ec4c51e850 normalize probabilities in wallets.json 2021-03-07 10:05:00 -08:00
Fris0uman 40b521c4df ChibiUltica Update 2021-03-07 2021-03-07 18:58:00 +01:00
Fris0uman e694accb48 MSXotto+ Update 2021-03-07 2021-03-07 18:52:03 +01:00
MarlossCDDA f6f104a441 Warn when crafting an item you can't wear (#47911)
* Warn when crafting an item you can't wear
* update wool allergy text
* fix test i didn't fix before, remove unneeded _()
2021-03-07 08:08:34 -08:00
Angela Graves 425255a59e Merge pull request #47899 from Night-Pryanik/fix-autodoc-splint-limbs
Fixed autodoc bonesetting doesn't work
2021-03-07 01:41:33 -06:00
OromisElf 5992bd4913 more things with springs 2021-03-07 06:34:29 +01:00
Kevin Granade e7b7935f9c Update data/changelog.txt
Co-authored-by: actual-nh <74678550+actual-nh@users.noreply.github.com>
2021-03-06 17:24:28 -08:00
Kevin Granade b46ae297f3 Copyediting from review.
Co-authored-by: actual-nh <74678550+actual-nh@users.noreply.github.com>
2021-03-06 17:21:41 -08:00
Angela Graves 6b8695ff16 Merge pull request #47878 from Xenomorph-III/1st_aid_fix
Add scissors to the First Aid Kit
2021-03-06 05:56:54 -06:00
Lamandus b357e1b4fe Halligan fits in Fireaxe 2021-03-06 08:58:52 +01:00
souricelle ab1c1af077 Update NPC_Alonso_Lautrec.json 2021-03-05 23:18:55 -08:00
Valiant 5e0d58b04c Fixed erroneous negations 2021-03-06 10:17:13 +04:00
Kevin Granade 856f026a99 Copyediting 2021-03-05 21:56:47 -08:00
Kevin Granade c1bafa66ae Import PR summaries up to November 2020. 2021-03-05 21:56:47 -08:00
Kevin Granade befd95274c Add missing return statement. 2021-03-05 21:56:47 -08:00
Kevin Granade 0c4ee9a434 Copyediting from review 2021-03-05 21:56:47 -08:00
Kevin Granade 1a7a176d83 Copyediting 2021-03-05 21:56:47 -08:00
Kevin Granade 7d33539383 Import PR summaries up to October 2020. 2021-03-05 21:56:47 -08:00
Jeremy Rose bf0e49979c clean up ammo_type info code 2021-03-05 21:54:11 -08:00
Xenomorph-III b96a958391 increase box dimensions of 1st aid kit box 2021-03-06 17:31:44 +13:00
Xenomorph-III 7779b3e650 delete useless tests 2021-03-06 17:06:47 +13:00
souricelle d197ff4fb8 Update data/json/npcs/refugee_center/surface_refugees/NPC_Alonso_Lautrec.json
Co-authored-by: anothersimulacrum <anothersimulacrum@gmail.com>
2021-03-05 18:55:45 -08:00
Xenomorph-III 1e120515ab Merge pull request #20 from actual-nh/patch-9
Change scissor volume to 145 mL
2021-03-06 14:44:12 +13:00
chrispikula 9cac10ea4a Update containers.json 2021-03-05 18:25:45 -06:00
souricelle a709f43663 Update NPC_Alonso_Lautrec.json 2021-03-05 14:04:29 -08:00
actual-nh 5f81fd80df Change scissor volume to 145 mL 2021-03-05 14:20:36 -05:00
Jamuro-g ba2d19d8af restore original code and move owner check to prevent charge, count manipulation for stolen goods 2021-03-05 18:30:20 +01:00
Angela Graves 5960368a33 Merge pull request #47869 from Jamuro-g/Fix-disassembly-component-display
fix disassembly component display
2021-03-05 06:41:44 -06:00
Xenomorph-III 7741dfdf31 fixed formating 2021-03-05 18:31:43 +13:00
Xenomorph-III db3f53b85f fixed tests for first aid kit 2021-03-05 17:54:51 +13:00
Fris0uman 74a732f373 Remove downed effect form stepping on mechanical_fluid field (#47851) 2021-03-04 20:32:50 -08:00
Light-Wave 91aadfd327 Make flesh pouch not delete content when it disappears (#47843)
Makes flesh pouch from Magiclysm spell flesh pouch drop its content on the ground when the duration runs out, instead of letting all stored items be deleted. Also fixes hide bag deleting items when it rots away, in the same manner.
2021-03-04 20:15:20 -08:00
Jamuro-g 65870869ad fix multi-cooker (#47805)
* fix multi-cooker
* prevent multi-cooker from being deleted by iuse
* added move cost to cookers meal pocket
Co-authored-by: Jianxiang Wang (王健翔) <qrox@sina.com>
2021-03-04 20:13:13 -08:00
Xenomorph-III 1a09bb2e87 add scissors to the FAK 2021-03-05 17:02:00 +13:00
Kevin Granade d4884b9148 Merge pull request #47751 from Jamuro-g/Fix-pushing-furniture-over-a-ledge
Fix pushing furniture over a ledge
2021-03-04 20:00:54 -08:00
RadHazard c0f9193756 feed NPCs via a fake food object rather than modifying stored kcal directly (#47720) 2021-03-04 19:48:00 -08:00
Salty Panda 1803fb398d Make iuse_transform properly report charges it should consume 2021-03-04 19:52:15 +01:00
Anton Burmistrov 6a05977673 Get random number of rebars instead of pipes after cutting up metal from windows with bars with hacksaw and oxytorch (#47701)
* Get random number of rebars instead of pipes after cutting up metal with hacksaw and oxytorch

Also allowed cutting metal from windows with bars and closed and open curtains.

* Added ability to cut metal from windows with metal grating
2021-03-04 10:46:18 -08:00
Jamuro-g 580a56194c only block toplvl items from insert ui (#47627) 2021-03-04 10:44:01 -08:00
Jamuro-g fd076b9115 fixed vehicle racking menu (#47374)
* fix vehicle menu
* no more recursion
* changed validate_carried_vehicles() void
* iterator update after erase
2021-03-04 09:37:46 -08:00
Jamuro-g 68daf0dbcf astyle 2021-03-04 18:20:39 +01:00
Jamuro-g c82eab498b fix disassembly component display 2021-03-04 18:08:47 +01:00
Zhilkin Serg c6eec92c2e Merge pull request #47867 from CleverRaven/revert-47826-JustOneWordPlastics
Revert "Added plastic mold to more recipe books."
2021-03-04 18:47:39 +03:00
Kevin Granade 2521748a3e Revert "Added plastic mold to more recipe books." 2021-03-04 07:39:40 -08:00
Angela Graves e08ed144f6 Merge pull request #47826 from Kelenius/JustOneWordPlastics
Added plastic mold to more recipe books.
2021-03-04 05:26:55 -06:00
Zhilkin Serg eea7e65650 Merge pull request #47862 from Xenomorph-III/legguard_cat
add ARMOR category to the paper leg guards
2021-03-04 09:36:26 +03:00
Zhilkin Serg b05ee809c8 Merge pull request #47861 from jagoly/balloon-category
remove category from balloon (use copy-from)
2021-03-04 09:35:39 +03:00
Xenomorph-III 04decd5a54 add ARMOR category to legguard_paper 2021-03-04 19:01:36 +13:00
James Gangur 0e6a2f85d4 remove category from balloon (use copy-from) 2021-03-04 16:50:23 +11:00
Eric fe380d551b Prevent items taking time when canceled. (#46838)
* Add handling for canceling
Co-authored-by: Anton Burmistrov <Night_Pryanik@mail.ru>
2021-03-03 18:57:30 -08:00
Zhilkin Serg 3a548fd8ad Merge pull request #47845 from Xenomorph-III/papaer_armor
Bring the paper leg guard recipe in line with the paper arm guards.
2021-03-04 02:25:04 +03:00
Zhilkin Serg bf40faac70 Merge pull request #47756 from MarlossCDDA/marloss/food-check
[bugfix] Not having auto-eatable food shouldn't slow down your auto-drinking
2021-03-04 02:01:30 +03:00
LaVeyanFiend f6bb991ceb Give misc repair kit butcher and length of its components (#47759)
* Give misc repair kit butcher quality of its component knife

* Inherit longest_side of the wood saw
2021-03-04 01:59:43 +03:00
aerrant 6ea866ffb2 Stop offering non-comestible liquids for consumption (#47782)
* Stop offering inappropriate liquids for consumption

* Fix regression in Character::can_consume()
2021-03-04 01:59:18 +03:00
casswedson 72fa7b5b7c Add more documentation on json formatting (#47854) 2021-03-04 01:58:02 +03:00
Zhilkin Serg 2f7fb9de93 Merge pull request #47818 from Jamuro-g/Fix-ups-modded-autoclave
fix autoclave ups usage
2021-03-04 01:56:54 +03:00
Zhilkin Serg 36946ebd79 Merge pull request #47830 from Jamuro-g/Fix-gun-ranged-damage-overview
Added gun condition penalty to damage to overview
2021-03-04 01:56:22 +03:00
Zhilkin Serg bd3217d208 Merge pull request #47853 from Jamuro-g/Fix-repair-clothing-missing-components-message
fix missing components msg
2021-03-04 01:55:47 +03:00
Zhilkin Serg ca86103a4e Merge pull request #47802 from Jamuro-g/Fix-integral-magazine-charge-consumption
Fix electric_jackhammer
2021-03-04 01:54:47 +03:00
Zhilkin Serg 305d99189e Merge pull request #47815 from Jamuro-g/Fix-prevent-tailors-kit-from-using-filthy-components
fix tailors kit modify action no longer accepts filthy components
2021-03-04 01:54:32 +03:00
Zhilkin Serg 0c1a9fdbce Merge pull request #47796 from Jamuro-g/Fix-crash-when-trying-to-move-stolen-items
fix crash when trying to move stolen items
2021-03-04 01:54:00 +03:00
Zhilkin Serg 0176b0e42f Merge pull request #47763 from Jamuro-g/Prevent-segfault-from-modifying-gunmods
prevent modify action on gunmods
2021-03-04 01:53:40 +03:00
Zhilkin Serg 594786af86 Merge pull request #47781 from Jamuro-g/Fix-ups-converted-shock-tonfa
fix ups converted shock tonfas
2021-03-04 01:53:16 +03:00
Zhilkin Serg 7d93c740c6 Merge pull request #47798 from Maleclypse/Forge-Elf-Worker-Spawn-Bugfix
[Magiclysm] Remove elf spawn in forge
2021-03-04 01:52:44 +03:00
Zhilkin Serg d30a4fc521 Merge pull request #47823 from OmniscientQ/master
Do not list companions who are already on a mission
2021-03-04 01:50:21 +03:00
Zhilkin Serg 00615a10e4 Merge pull request #47837 from Jamuro-g/Fix-preserve-window-state-when-tearing-down-curtains
open windows stay open when tearing down curtains
2021-03-04 01:49:50 +03:00
Zhilkin Serg 44fbb04079 Merge pull request #47828 from Lamandus/Firefight
Tweaks for Halligen bar and NY hook
2021-03-04 01:49:18 +03:00
Zhilkin Serg ff8ca8d29d Merge pull request #47833 from chrispikula/HatsGoOnHead
Correctly catagorize chaplet recipe
2021-03-04 01:48:46 +03:00
Zhilkin Serg f081ac7cdb Merge pull request #47841 from Maleclypse/Red-Sauce-Sealed
Sealed Red Sauce
2021-03-04 01:48:21 +03:00
Jamuro-g c7d9e9b696 fix missing components msg 2021-03-03 19:48:50 +01:00
Angela Graves fa86903ebb Merge pull request #47846 from Jamuro-g/Fix-fuel-bunker
fix allow fuel bunker to use all ammo of charcoal type
2021-03-03 05:32:42 -06:00
Jamuro-g 60ac83bcce fix allow fuel bunker to use all ammo of charcoal type 2021-03-03 02:52:54 +01:00
Xenomorph-III 4e6b6fab2a leg guard recipe now in line with arm guards 2021-03-03 14:23:29 +13:00
Kevin Granade ebd48a0f80 Nerf Life Conversion a little bit to close the gap between it and cure light wounds 2021-03-02 18:36:00 -05:00
Maleclypse 82026279c2 Update drink_other.json 2021-03-02 16:25:24 -06:00
Jamuro-g 4c886bee4b open windows stay open when tearing down curtains 2021-03-02 20:14:33 +01:00
chrispikula d6142e8dc1 Update head.json 2021-03-02 12:10:49 -06:00
Jamuro-g 0b378c0d57 added gun condition penalty to damage to overview 2021-03-02 16:11:15 +01:00
Kelenius cc786dfbd0 Add plastic mold recipe to more books. 2021-03-02 14:08:56 +03:00
Lamandus 5172bb5b4d Tweaks for Halligen bar and NY Hook 2021-03-02 11:59:03 +01:00
Kelenius 73336c2c28 Made plastic mold autolearlable. 2021-03-02 12:42:11 +03:00
Angela Graves 2f0f0585b4 Merge pull request #47550 from LaVeyanFiend/TakeAKnap
Add usage of knapping to more tools, survival requirement to chopper
2021-03-02 02:03:40 -06:00
OmniscientQ 2ee9a67bf3 Do not list companions who are already on a mission 2021-03-01 20:44:55 -07:00
Jamuro-g 256baddeb1 fix autoclave ups usage 2021-03-01 23:41:19 +01:00
Jamuro-g 94fe3529a0 fix tailors kit modify action no longer accepts filthy components 2021-03-01 20:27:08 +01:00
LaVeyanFiend 040d9a8e41 Add survival requirement to chopper 2021-03-01 13:04:13 -05:00
LaVeyanFiend d13602af09 Take a knap 2021-03-01 13:04:13 -05:00
Zhilkin Serg ca94f8ebd8 Merge pull request #47778 from OromisElf/more_hot_sauce
added hot sauce to broth ingredients and seasoning
2021-03-01 12:46:38 +03:00
Zhilkin Serg a0c79d25b2 Merge pull request #47775 from Mom-Bun/grenadefix
Fix Cryo Grenade
2021-03-01 12:45:36 +03:00
actual-nh 58b6b42100 Copyediting (mostly) on Aftershock's README.md (#47785) 2021-03-01 12:43:11 +03:00
Zhilkin Serg b58bfeab76 Merge pull request #47768 from wapcaplet/w-spell-energy
Fix Not Enough Energy indicator in spell info
2021-03-01 12:42:40 +03:00
Zhilkin Serg 64a9290cde Merge pull request #47804 from wapcaplet/w-suck-fuel
Avoid error when siphoning from vehicle with an empty tank
2021-03-01 12:41:43 +03:00
Zhilkin Serg cc56648ecc Run Appveyor on tests code changes too 2021-03-01 12:39:40 +03:00
Zhilkin Serg def6f92170 Merge pull request #47809 from Qrox/compbow
Fix compound bow category in defense mode
2021-03-01 12:38:39 +03:00
Qrox 04bbb78900 Fix compound bow category in defense mode 2021-03-01 17:16:48 +08:00
Angela Graves adceb7bc44 Merge pull request #47797 from LaVeyanFiend/OuterSamghati
Make samghati OUTER gear
2021-03-01 00:12:53 -06:00
Eric Pierce d89f96e162 Factor out vehicle tank liquid contents check
Vehicles having an empty fuel tank or other tank were getting a debug
message from contents.legacy_front() since they did not check for
emptiness first.

Add vehicle_part::contains_liquid() to check for emptiness before
calling only_item(), and use that function in act_vehicle_siphon().

Fix #47803
2021-02-28 18:38:48 -07:00
Jamuro-g ee16459248 Fix electric_jackhammer 2021-02-28 19:58:11 +01:00
Maleclypse 8d0b665280 remove elf spawn in forge 2021-02-28 10:41:01 -06:00
LaVeyanFiend cd2d058ab4 Make samghati OUTER gear 2021-02-28 10:39:27 -05:00
Jamuro-g 2204d61ac1 fix crash when trying to move stolen items 2021-02-28 16:10:18 +01:00
Zhilkin Serg 0c24435c6b Merge pull request #47789 from Qrox/wield
Always list wielded item in AIM worn panel
2021-02-28 10:43:32 +03:00
Zhilkin Serg e6f6ee5f84 Merge pull request #47788 from Qrox/info
Convert PREDATOR_FUN info into comment
2021-02-28 10:43:15 +03:00
Angela Graves 7fa9d4b723 Merge pull request #47779 from nornagon/deconstruct-prescription-sunglasses
deconstruct prescription sunglasses to tinted glass
2021-02-28 00:30:22 -06:00
Qrox 96d25fd927 Always list wielded item in AIM worn panel 2021-02-28 10:27:16 +08:00
Qrox afe134985a Convert PREDATOR_FUN info into comment 2021-02-28 10:27:10 +08:00
Jamuro-g 8a7d6e2a4d fix ups converted shock tonfas 2021-02-27 21:15:02 +01:00
Jeremy Rose 51884c4fb8 deconstruct prescription sunglasses to tinted glass 2021-02-27 11:41:08 -08:00
OromisElf f4792cd9b0 added hot sauce to broth ingredients and seasoning 2021-02-27 20:27:51 +01:00
Bella 8dcba62ec9 fix cryo grenade 2021-02-27 12:17:09 -06:00
Angela Graves 661c6271fd Merge pull request #47754 from aerrant/fix-feral-humans-ammo
Limit feral humans ammo
2021-02-27 05:44:29 -06:00
Jamuro-g ae920a4120 fix vehicle drop 2021-02-27 06:26:01 +01:00
Eric Pierce c74781c896 Use has_enough_energy for spell energy info
The spell info was displaying red "Not Enough Energy" text for spells
that had enough energy, due to `can_cast` not having enough components.
Instead, use `has_enough_energy` to check for sufficient energy.

Fix #47755
2021-02-26 20:37:03 -07:00
Eric Pierce 3f91ee7809 Factor out player_character variable 2021-02-26 20:33:29 -07:00
Eric Pierce d39d7f2760 Refactor can_cast to use has_enough_energy 2021-02-26 20:29:29 -07:00
Jamuro-g 9537dcbdca prevent modify action on gunmods 2021-02-27 01:52:38 +01:00
MarlossCDDA a3038c4b5f [bugfix] Not having auto-eatable food shouldn't slow down your auto-drinking 2021-02-26 17:01:46 -05:00
Asshole Errant 128d91bf00 Limit feral humans ammo 2021-02-26 23:42:10 +03:00
Jamuro-g bf812d34b7 prevent suicide by levitating furniture 2021-02-26 17:32:01 +01:00
Angela Graves f77f179d0c Merge pull request #47742 from Malorn-Deslor/Disassembly
Added disassembly options for some basic undergarments and socks.
2021-02-26 05:23:43 -06:00
Malorn ac59f0ca0a Added disassembly options for some basic undergarmits and socks. 2021-02-25 19:49:37 -05:00
Zhilkin Serg fa9b27e30e Merge pull request #47733 from Tairesh/add_wood_chiseling_quality_to_steel_chisel
CHISEL_WOOD 3 added to chisel
2021-02-25 19:32:25 +03:00
Ilya Agafonov 3f177163e2 CHISEL_WOOD 3 added to chisel 2021-02-25 19:12:24 +05:00
Angela Graves f6e6071cf9 Merge pull request #47695 from OmniscientQ/master
Fixed Roots mutations not providing Thirst
2021-02-25 05:31:26 -06:00
Zhilkin Serg 539dc74a60 Merge pull request #47703 from Night-Pryanik/apply-trap-effects-after-jumping
Apply terrain/furniture flag effects after jumping over the ledge
2021-02-25 10:35:01 +03:00
OromisElf 79f3b106bf Craftable wheat cereal (#47729) 2021-02-25 10:33:29 +03:00
Maleclypse 39bfb463e2 [Aftershock] Fix Monster faction cryo (#47731) 2021-02-25 10:33:10 +03:00
Zhilkin Serg 2458ed406b Merge pull request #47730 from anothersimulacrum/tinyrotate
Allow skipping NPC rotation for tinymaps
2021-02-25 10:32:47 +03:00
anothersimulacrum 549a73f580 Allow skipping NPC rotation for tinymaps
See https://github.com/CleverRaven/Cataclysm-DDA/issues/44978 for
context.

When farm_json in faction_camp.cpp calls generate(), it rotates to match
the actual map it is supposed to correspond to. However, in doing this
it shifts NPCs (e.g. from (62,67,0) to (9,4,0)), when it not actually
having an effect on the map. This can cause NPCs to vanish when the
description strings for faction camp missions are generated, as they
generate the tinymap.

As a quick fix for 0.F, skip the rotation. In the future, we should be
looking at replacing the insane faction camp farming thing with a zone
based system.
2021-02-24 17:21:00 -08:00
RadHazard 99a90ed822 Stop NPCs assigned to faction camps from randomly following you (#47721) 2021-02-24 15:41:55 +03:00
Angela Graves 0e81265220 Merge pull request #47715 from OromisElf/craftable_body_pillow
makes body pillows craftable
2021-02-24 05:30:20 -06:00
Zhilkin Serg 9f2b34f135 Only build master branch 2021-02-24 13:30:05 +03:00
Zhilkin Serg 829d9040e7 Merge pull request #47710 from aerrant/fix-furn-mining
Properly use furniture name when mining
2021-02-24 12:58:58 +03:00
Zhilkin Serg 6166bfe0eb Merge pull request #47719 from kevingranade/fix-electric-bicycle-double-dip
Fix electric bicycle double dip
2021-02-24 12:53:25 +03:00
Zhilkin Serg 4fb9a1ce6d Merge pull request #47723 from kevingranade/obsolete-usas-12
Obsolete USAS-12, it's way too rare to appear in-game.
2021-02-24 12:44:30 +03:00
Zhilkin Serg 4ee9dd49ce Merge pull request #47556 from Qrox/aim-item-location
Fix "fail to obtain item" error when activating inventory items in AIM
2021-02-24 12:37:55 +03:00
Zhilkin Serg 8c20a70aa7 Merge pull request #47702 from Qrox/pump
Show pump location when selecting gas pumps
2021-02-24 12:37:28 +03:00
Zhilkin Serg 9a82417da3 Merge pull request #47717 from Qrox/swap
Do not move into monsters that we cannot displace
2021-02-24 12:36:57 +03:00
Zhilkin Serg 289d1deb83 Only run Appveyor builds on relevant changes 2021-02-24 12:34:35 +03:00
Zhilkin Serg 645e4cc6e7 Merge pull request #47718 from Qrox/fold
Clear map memory of folded vehicles
2021-02-24 12:21:03 +03:00
Kevin Granade 8b20fb26b8 Obsolete USAS-12, it's way too rare to appear in-game. 2021-02-24 00:55:16 -08:00
Zhilkin Serg e9dcefbec7 Return tests back to MSVC solution 2021-02-24 09:41:35 +03:00
Kevin Granade 65184c9d69 Skip processing muscle power when consume_fuel() is called from idle() 2021-02-23 21:06:10 -08:00
Kevin Granade 557f96e6e9 Remove non-functional alternator from electric bicycle 2021-02-23 21:06:10 -08:00
Anton Burmistrov 246be76b24 Added check for clear path (#47700) 2021-02-23 21:02:08 -08:00
OromisElf 3a71595404 made carts useable on migo resin floor (#47684) 2021-02-23 21:00:41 -08:00
Zhilkin Serg ac6c55c415 Appveyor disable tests (#47711)
* Disable tests on Appveyor
2021-02-23 20:42:03 -08:00
Qrox 23099d6e08 Do not move into monsters that we cannot displace 2021-02-24 12:16:11 +08:00
Qrox 18c87e132e Clear map memory of folded vehicles 2021-02-24 12:16:05 +08:00
OromisElf 5846d1a863 added red pen to requirements 2021-02-24 04:44:12 +01:00
OromisElf 673d2ada01 linted toolsets.json 2021-02-24 04:00:58 +01:00
OromisElf 780c87ade7 makes body pillows craftable 2021-02-24 03:51:09 +01:00
Eric 373c780cf9 Fix syringe json error (#47690)
* Update to use logic similar to comest->tool
* Use drug iuse actor code
2021-02-23 14:59:16 -08:00
actual-nh 306e34fb7a Fix item_info_str( test_belt, pockets ) test error (#47706)
* Modify test_tool_belt instead.

Modify test_tool_belt instead of the testing code.
2021-02-23 13:43:04 -08:00
Asshole Errant d0ee312258 Properly use furniture name when mining 2021-02-23 22:43:50 +03:00
Zhilkin Serg 1d2d147d9f Merge pull request #47707 from BrettDong/compile-mo
Fix syntax error in lang/compile_mo.sh
2021-02-23 20:48:43 +03:00
Binrui Dong 431b5ecc48 Fix syntax error in lang/compile_mo.sh 2021-02-23 11:01:59 -05:00
Anton Burmistrov 0015566911 Apply trap effects after jumping over the ledge 2021-02-23 14:54:02 +04:00
Qrox 32ce92f205 Show pump location when selecting gas pumps 2021-02-23 17:37:30 +08:00
KingApep e819fbbf42 Zeindeer fix nightvision and spawn date (#47371) 2021-02-23 10:59:34 +03:00
Zhilkin Serg ea7d666d01 Merge pull request #47605 from Lamandus/toolbelt
max_item_lengh changes to (survivor) tool belt
2021-02-23 10:41:07 +03:00
Zhilkin Serg efdb620705 Merge pull request #47666 from wapcaplet/w-no-autolock-doors
Do not auto-lock bar doors when closing them twice
2021-02-23 10:32:39 +03:00
Anton Burmistrov 859191b532 Island prison safe contents fix (#47698) 2021-02-23 10:32:02 +03:00
Anton Burmistrov a78a0a32fb Fix funnel set over downspout in fortified house (#47699)
* Moved funnel trap away from downspout

* Fixed typo
2021-02-23 10:31:01 +03:00
Angela Graves c546c3b995 Merge pull request #47691 from RadHazard/fix-army-winter-pants-repair
Fix Army Winter Pants repair difficulty
2021-02-23 00:12:24 -06:00
OmniscientQ 3d8eefddd2 Fixed Roots mutations not providing Thirst 2021-02-22 21:50:47 -07:00
Eric Pierce 93e9973f10 Do not auto-lock bar doors when closing them twice
Fix #47658
2021-02-22 19:51:06 -07:00
Pausbrak 480123503b give Army Winter Pants a repairs_like method similar to regular army pants 2021-02-22 20:39:49 -05:00
actual-nh 10ba62cb47 Prevent 0.F String Freeze from being stale
This adds `0.F String Freeze` to the tags exempt from being considered stale.
2021-02-22 16:18:46 -08:00
Binrui Dong 5150a4b764 Update expected dps of heavy flashlight in unit test 2021-02-22 15:56:08 -08:00
Zhilkin Serg bc7931f5a0 Merge pull request #47681 from Fris0uman/blb0222
BrownLikeBears Update 2021-02-22
2021-02-23 00:26:57 +03:00
Zhilkin Serg dbc7acb96a Merge pull request #47680 from Fris0uman/chibi0222
Chibi Ultica 2021-02-22
2021-02-23 00:26:47 +03:00
Zhilkin Serg 647521fb19 Merge pull request #47678 from Fris0uman/MSx0222
MshockXotto+ Update 2021-02-22
2021-02-23 00:26:39 +03:00
Zhilkin Serg a6e44889c6 Merge pull request #47679 from Fris0uman/ultica22
Update Ultica 2021-02-22
2021-02-23 00:26:25 +03:00
Fris0uman 1c6716367e BrownLikeBears Update 2021-02-22 2021-02-22 21:32:18 +01:00
Fris0uman d51b853445 MshockXotto+ Update 2021-02-22 2021-02-22 21:31:06 +01:00
Fris0uman 5e3da9a093 Chibi Ultica 2021-02-22 2021-02-22 21:30:03 +01:00
Fris0uman 4b488e268b Update Ultica 2021-02-22 2021-02-22 21:28:58 +01:00
Lamandus 4b13e4bdff Tweaking values of (heavy) flashlight, also giving longest side (#47638)
* Tweaking values of (heavy) flashlight, also giving max lengh
* give belt_clip to flashlight and belts to security_guards
2021-02-22 11:25:55 -08:00
Meelock f1fd8b6a2d Add disassembly recipe for cargo space, cargo aisle (#47643)
* Add cargo asile to disassembly recipes 
* Make cargo aisle weight consistant
* Change to be reversible recipes
* Update cargo space weight, hopefully fixes the check
Co-authored-by: anothersimulacrum <anothersimulacrum@gmail.com>
2021-02-22 10:45:11 -08:00
Binrui Dong 78772ab79f Fix uninitialized member variable UBSan error in field_type struct (#47675) 2021-02-22 10:26:43 -08:00
anothersimulacrum d5eb4c2e1b Fix JSON style error (#47669) 2021-02-22 10:25:30 -08:00
Zhilkin Serg 0731d85177 Merge pull request #47652 from wapcaplet/w-doc-magic
Fix magic documentation for aoe and dot
2021-02-22 10:57:43 +03:00
Zhilkin Serg b241110d87 Merge pull request #47650 from wapcaplet/w-no-bloody-rag
Remove rag recipe using obsolete bloody rag
2021-02-22 10:57:31 +03:00
aerrant fc055d67c8 Make crafting menu display stats for fit items (#47657) 2021-02-21 23:49:49 -08:00
Binrui Dong 9cffd04e5e Fix coffee tree harvest cherries (#47646)
* Fix coffee tree harvest cherries

Co-authored-by: Kevin Granade <kevin.granade@gmail.com>
2021-02-21 23:48:42 -08:00
James Gangur 294c768879 make attempting but failing to change zlevel take time (#47645) 2021-02-21 23:35:02 -08:00
Jamuro-g a7c250d238 msg log entry added to insert activity (#47624)
* msg log entry added to insert activity

Co-authored-by: Anton Burmistrov <Night_Pryanik@mail.ru>
Co-authored-by: actual-nh <74678550+actual-nh@users.noreply.github.com>
Co-authored-by: Eric Pierce <wapcaplet88@gmail.com>
2021-02-21 23:33:29 -08:00
RadHazard 3827938f5b Make NPCs only complain about an empty larder if the larder is actually empty (#47599) 2021-02-21 23:31:53 -08:00
Alayn Arambula ec72d457cb Added trait conflict check when choosing profession. (#47582)
* Added trait conflict check when choosing profession.
* Added popup message and astyle formatting.

Co-authored-by: actual-nh <74678550+actual-nh@users.noreply.github.com>
Co-authored-by: BuildTools <unconfigured@null.spigotmc.org>
2021-02-21 23:30:51 -08:00
Venera3 c40065e03d Overmap/mission adjustments (#47510) 2021-02-21 23:28:33 -08:00
Hirmuolio de328b9247 Quick fix for starting date (#47352)
* quick fix for the date

* add spawn delay later
2021-02-21 23:25:54 -08:00
Curtis Merrill 063b61b5df only do item charge migration once (#47613)
* only do item charge migration once
* change submap test loading version
2021-02-21 23:22:56 -08:00
RoyBerube 113f6355d9 Don't try to wield if already wielding 2021-02-21 23:20:49 -08:00
Angela Graves ddb9e36c7e Merge pull request #47655 from Venera3/Fishy
Calm down the fish
2021-02-22 00:23:10 -06:00
Venera3 fb22946b49 Update fish.json 2021-02-21 22:21:33 +01:00
Venera3 f0056982c2 Update fish.json 2021-02-21 22:10:13 +01:00
Maleclypse c020c68eff Some fixes to help save migration (#47597) 2021-02-21 16:02:40 -05:00
Binrui Dong f8be3dc6cb Fix typo in the description of 'Ancient Draconic Strength' (#47654) 2021-02-21 15:48:33 -05:00
Eric Pierce b7ff72b848 Fix magic documentation for aoe and dot 2021-02-21 13:00:34 -07:00
Eric Pierce 68bc5f3cb3 Remove rag recipe using obsolete bloody rag 2021-02-21 11:51:52 -07:00
Zhilkin Serg b3f2f0ed0b Merge pull request #47642 from BrettDong/translation-h
Fix compile error when localisation is disabled
2021-02-21 13:04:21 +03:00
Zhilkin Serg 34c5529a96 Merge pull request #47631 from BrettDong/i18n
Routine i18n updates on 20 Feb 2021
2021-02-21 13:03:58 +03:00
Angela Graves f5e0e6c051 Merge pull request #47634 from strburst/strburst-swimmer-desc
Add note to description that swimmer zombies can't swim
2021-02-21 00:16:07 -06:00
Binrui Dong 8657707e61 Add IWYU pragma to keep <locale> in translations.h
3110160 fixes compile error when localization is disabled as our own
ngettext macro defined in translations.h collides with ngettext function
declared in <libintl.h>, by including <locale>, which then includes
<libintl.h> on some systems, before our macro definition overrides ngettext.

This commit adds IWYU keep pragma to prevent <locale> being pruned by
IWYU.
2021-02-20 22:52:44 -05:00
Tommy 31101601b9 Preemptively include <locale> for nonlocalized translations.h. 2021-02-20 22:39:01 -05:00
Allen Zheng 61238bbf17 Add note that swimmer zombies can't swim
'Swimmer zombie' used to refer to the evolved version, but now they refer
to an unevolved variant. Add a note to their description about how they
can't swim very well to clear up confusion/add a small amount of flavor.

Could be considered a followup to #46783.
2021-02-20 16:27:12 -05:00
casswedson c7db49ced6 [Magiclysm] misc typographical fixes (#47433)
* misc typographical fixes

* Apply suggestions from code review

Co-authored-by: actual-nh <74678550+actual-nh@users.noreply.github.com>

* Apply suggestions from code review

Co-authored-by: Curtis Merrill <curtis.r.merrill@gmail.com>

Co-authored-by: actual-nh <74678550+actual-nh@users.noreply.github.com>
Co-authored-by: Curtis Merrill <curtis.r.merrill@gmail.com>
2021-02-20 15:24:58 -05:00
OromisElf 0b5ca93e95 Gravitymage graviton polarization (#47365)
* added Graviton Polarization to the Gravity Mage

* fixed damage

* fixed json style

* added second smaller damage explosion in center

* added a space to description because it made the first test fail
2021-02-20 15:22:49 -05:00
Binrui Dong 8306b4747a Routine i18n updates on 20 Feb 2021 2021-02-20 12:42:33 -05:00
Zhilkin Serg 6c9a8dd84f Merge pull request #47626 from Lamandus/bundle
make bundle making (rag, leather, wool) not dependent on skill
2021-02-20 18:45:39 +03:00
Anton Burmistrov 8f707de21b Don't open pickup menu when examining tile if there's a NO_PICKUP_ON_EXAMINE flag (#47612) 2021-02-20 18:44:52 +03:00
Lamandus 6798b4daee make bundle making not dependent on skill 2021-02-20 16:12:12 +01:00
Angela Graves f89a9f4162 Merge pull request #47622 from LaVeyanFiend/DishKit
Allow dish towel as washing kit component
2021-02-20 05:35:31 -06:00
Zhilkin Serg 85f815d7e4 Merge pull request #47618 from wapcaplet/w-no-survivors
Remove obsolete tools from wire-cutter requirement
2021-02-20 13:07:09 +03:00
Zhilkin Serg f7905b87b4 Merge pull request #47581 from KorGgenT/fix-npc-teaching-spells
[Magiclysm] Fix npcs teaching you dragon breath
2021-02-20 13:03:55 +03:00
Lamandus 291662eee5 Lowering volume drastically of the pike pole (#47604) 2021-02-20 13:02:47 +03:00
Zhilkin Serg 0895221860 Merge pull request #47621 from BrettDong/demangle
Implement C++ symbol demangling on Linux
2021-02-20 13:01:57 +03:00
Zhilkin Serg 055d564b85 Merge pull request #47623 from Maleclypse/canned-goods-sealed
Make several canned goods default to sealed
2021-02-20 13:00:49 +03:00
Zhilkin Serg 1460d28b4e Merge pull request #47602 from Qrox/aim-exit
Fix AIM needs to be closed multiple times when moving all inventory/worn items to ground
2021-02-20 12:57:28 +03:00
Zhilkin Serg c191d6d243 Merge pull request #47594 from Qrox/mushy
Fix non-mushy food shown as mushy in item info
2021-02-20 12:57:00 +03:00
Zhilkin Serg 57524bf65e Merge pull request #47585 from Qrox/crafting-gui-recp-info
Implement scrolling for recipe info in crafting gui
2021-02-20 12:56:46 +03:00
Zhilkin Serg e031036beb Merge pull request #47584 from Qrox/crafting-gui-keybind
Display actual bound keys in crafting gui
2021-02-20 12:56:16 +03:00
Zhilkin Serg bc7fa3e084 Merge pull request #47607 from Qrox/rice
Fix rice nutrients
2021-02-20 12:56:05 +03:00
Maleclypse 14cf0d6b88 trying to fix some weird events 2021-02-20 01:01:27 -06:00
LaVeyanFiend db0b73ca38 Dish towel can be used for washing kit 2021-02-20 00:03:51 -05:00
LaVeyanFiend e6b076a4f1 Merge remote-tracking branch 'origin/master' 2021-02-20 00:01:13 -05:00
Binrui Dong 0de78355b0 Implement C++ symbol demangling on Linux 2021-02-19 23:46:43 -05:00
Eric Pierce daffa5e2fa Remove obsolete tools from wire-cutter requirement
The "toolbox", "toolbox_workshop", and "survivor_belt" tools are all
obsolete, replaced by their container-ified versions. They can no longer
serve the `cutting_wire_standard` requirement on their own.

This effectively prevents the obsolete tool names from appearing in the
crafting menu for recipes needing wire-cutting.
2021-02-19 21:25:16 -07:00
Qrox 38839a1553 Fix rice nutrients 2021-02-19 21:33:34 +08:00
Qrox 40f7e8e514 Implement scrolling for recipe info in crafting gui 2021-02-19 20:03:04 +08:00
Angela Graves 44d04c5c27 Merge pull request #47589 from RadHazard/toolbox-fix
Fix toolbox category
2021-02-19 05:36:38 -06:00
Lamandus db6fecffbb max_item_lengh changes to (survivor) tool belt 2021-02-19 12:03:06 +01:00
Qrox dcf5149945 Fix AIM needs to be closed multiple times when moving all from inventory/worn items to ground 2021-02-19 16:40:20 +08:00
Qrox 1c19d7d396 Fix non-mushy food shown as mushy in item info 2021-02-19 10:22:55 +08:00
Pausbrak b3d9cd1bb9 fix toolbox categories 2021-02-18 15:13:26 -05:00
Angela Graves 511ddcb179 Merge pull request #47579 from topherclay/pickup-cost
switched pick_up_one()'s cost from hardcoded 100 cost to obtain_cost()
2021-02-18 05:42:50 -06:00
Qrox 2a5f21204d Display actual bound keys in crafting gui 2021-02-18 18:31:41 +08:00
KorGgenT 80d00fb660 [Magiclysm] Fix npcs teaching you dragon breath 2021-02-18 02:53:00 -05:00
Venera3 681e80c5bb Adjust monster immunities to venoms, being downed (#46156) 2021-02-18 10:46:23 +03:00
Maleclypse bbd1a4f9fb [Aftershock] Move non scifi vehicle parts to Blaze Industries (#47279) 2021-02-18 10:21:55 +03:00
Zhilkin Serg a4df73fe29 Merge pull request #47567 from Qrox/ammo
Fix ammo proportional/relative member assignment
2021-02-18 10:14:43 +03:00
Saicchi 8d4b293a32 Fix insert into pockets no move cost (#47547) 2021-02-18 10:12:36 +03:00
Eric 0dfd99b41f Fix drug tool usage (#47535) 2021-02-18 10:12:10 +03:00
Jamuro-g c259b99e33 Fix power armor didn't show contained items (#47573)
* Fix power armor didn't show contained items

* changed toolboxes to generic type
2021-02-18 10:11:43 +03:00
topherclay b071344b86 swtiched from hardcode cost to obtain_cost 2021-02-17 22:55:56 -08:00
kevingranade 49c1a39465 Update the table of contents 2021-02-17 17:14:27 -08:00
Andrey Bienkowski fc5b70245d Touch JSON_INFO.md to trigger the workflow 2021-02-17 12:49:24 -08:00
Valiant 7fecc1517d Fixed a bug allowing safe contents to spill 2021-02-17 12:48:58 -08:00
Tamiore f2b20bbe68 add down feather to birds 2021-02-17 12:06:09 -08:00
Eric 66a38fa978 Handle broken arms with mech (#47314) 2021-02-17 14:29:38 +03:00
Anton Burmistrov c05a668323 Limited amount of splints in autodoc (#47379) 2021-02-17 14:28:15 +03:00
Curtis Merrill 4809f37dbd Fix magazine migration issues from 0.E to 0.F (#47436) 2021-02-17 14:27:11 +03:00
Zhilkin Serg 63a438e87e Merge pull request #47534 from ektoplazm/biotek-dodge-fix
Fix stamina costs for uncanny dodge
2021-02-17 14:24:28 +03:00
Ali-Anomma 5177c1ee3a now yeast culture recipe can be made with glass jar (#47526) 2021-02-17 14:24:14 +03:00
Allen Zheng f83934db0e Fix formatting in a couple docs (#47523) 2021-02-17 14:23:20 +03:00
Zhilkin Serg 96f8d80f41 Merge pull request #47546 from BrettDong/gcc
Workaround to self move assign error with _GLIBCXX_DEBUG
2021-02-17 14:21:56 +03:00
Zhilkin Serg 1ea2a5215d Merge pull request #47560 from Aivean/fix-gas-spread
Fix #47479: gas spreading to the neighbor tiles when target field was removed in this turn
2021-02-17 14:20:44 +03:00
Zhilkin Serg df2975bcc5 Merge pull request #47517 from BrettDong/demangle
C++ demangling on MinGW
2021-02-17 14:19:51 +03:00
Zhilkin Serg 4990aec9f5 Merge pull request #47536 from BrettDong/compatibility
Remove old compiler workaround in src/compatibility.h
2021-02-17 14:19:32 +03:00
Qrox 21f2bb92a5 Revert to using assign in islot_ammo::load. 2021-02-17 18:43:45 +08:00
Zhilkin Serg dfcdc69797 Merge pull request #47554 from wapcaplet/w-failed-to-explain
Make 'Failed to visit member' error more readable
2021-02-17 10:05:15 +03:00
Angela Graves e5e5c57efb Merge pull request #47552 from bitstupser/fix_typo
Fix typo, learn github workflow
2021-02-17 00:18:38 -06:00
LaVeyanFiend cbe6ac32f4 Duct tape + Chainsaw = No 2021-02-16 19:57:28 -08:00
Aivean 885813aa47 fix #47479: gas spreading to the neighbour tiles in the case when target intensity is zero (field was removed in the same turn)
* added param `alive_only` to `field::find_field` methods. By default "removed" fields are not returned
* all field-related methods in `map` treat fields with zero intensity as non-existing
2021-02-16 17:43:28 -08:00
Eric Pierce dd11d2762b Make 'Failed to visit member' error more readable
Co-authored-by: anothersimulacrum <anothersimulacrum@gmail.com>
2021-02-16 14:18:17 -07:00
Qrox b61e19f46b Use item locations instead of item pointers in AIM 2021-02-16 21:46:16 +08:00
bitstupser 649f652e0a Fixed typo just to learn github workflow 2021-02-16 12:20:34 +01:00
Angela Graves dc4167363d Merge pull request #47524 from Ramza13/bio_syringe
Unhardcode bio syringe
2021-02-16 04:39:50 -06:00
Zhilkin Serg bb90c18564 Merge pull request #47533 from BrettDong/npc
Unload NPCs who are outside reality bubble
2021-02-16 10:14:23 +03:00
LaVeyanFiend 09f127148f Conservation of mass for nailboard trap (#47543)
* Conservation of mass for nailboard trap

* Fix change to cut damage
2021-02-16 10:11:04 +03:00
Zhilkin Serg 8945bed954 Merge pull request #47548 from BrettDong/can
Make canned beans and canned tomatoes sealed by default
2021-02-16 10:10:00 +03:00
Serhiy Zahoriya 57a0ef9041 Infrastructure "compose.py palette arguments" (#47531)
* compose.py palette option

* Document compose.py palette argument

* palette and palette-copies arguments

* Reflect changes in the TILESET.md

* Ignore --palette-copies with --palette

* Update TILESET.md
2021-02-16 09:12:45 +03:00
Zhilkin Serg ca38812784 Merge pull request #47540 from Fris0uman/Ultica15
Update Ultica 21-02-15
2021-02-16 09:11:39 +03:00
Zhilkin Serg 99c067d06d Merge pull request #47541 from Fris0uman/msx15
Update MSXotto+ 21-02-15
2021-02-16 09:11:02 +03:00
Zhilkin Serg 06d4fcea23 Merge pull request #47542 from Fris0uman/Chibi15
Update Chibi Ultica 21-02-15
2021-02-16 09:10:27 +03:00
Zhilkin Serg c093cd79cf Merge pull request #47538 from anothersimulacrum/ana
Improve message when omap terrain lacks rotation
2021-02-16 09:10:03 +03:00
Binrui Dong 6c8779950b Make canned beans and canned tomatoes sealed by default 2021-02-16 00:31:04 -05:00
Binrui Dong d4f072a3a7 Remove src/compatibility.h 2021-02-15 22:52:45 -05:00
Binrui Dong 0f4094aaea Demangle symbol names on MinGW 2021-02-15 22:52:13 -05:00
Binrui Dong e5bdc93960 Workaround to self move assign error with _GLIBCXX_DEBUG 2021-02-15 22:50:57 -05:00
Zhilkin Serg 9a27d7fe3e Merge pull request #47532 from BrettDong/whack!
Fix missing I18N in "whack!" sound description
2021-02-16 02:00:48 +03:00
Fris0uman 7b8a70df17 Update MSXotto+ 21-02-15 2021-02-15 23:30:12 +01:00
Fris0uman ac4c0619e4 Update Chibi Ultica 21-02-15 2021-02-15 23:28:39 +01:00
Fris0uman f3945d0196 Update Ultica 21-02-15 2021-02-15 23:26:33 +01:00
anothersimulacrum 04f6110ff7 Improve message when omap terrain lacks rotation
Specifying a terrain that rotates without a direction is a relatively
simple error to make, but also way harder to debug than it should be.
Let's fix that.

Convert invalid_terrains to use str_ids, because having it do the extra
conversion to an invalid int id did nothing but trigger another error
message.

Remove auto for readability.

Add a check for if the terrain with a direction suffix is valid, and
then specify if the terrain is invalid because it lacks a rotation or
because it simply is invalid.
2021-02-15 13:43:32 -08:00
Binrui Dong 353661dd2f Extract symbol demangling to a separate function 2021-02-15 14:50:00 -05:00
Binrui Dong 930a939d4f Use std::to_string() from standard library where applicable 2021-02-15 14:32:25 -05:00
ektoplazm 45eea6da8f fix stamina costs for uncanny dodge
lowering mutation dodge cost to 300, mutation+cbm cost to 150
2021-02-15 22:07:14 +03:00
Binrui Dong f34e49f0af Unload NPCs who are outside reality bubble 2021-02-15 12:11:24 -05:00
Zhilkin Serg f672590371 Merge pull request #47528 from Qrox/explode
Fix explosion resulting in plant furnitures without seeds
2021-02-15 19:38:01 +03:00
Binrui Dong 78f9ceeb51 Fix missing I18N in "whack!" sound description 2021-02-15 11:31:38 -05:00
Qrox 0087f295b7 Fix explosion resulting in plant furnitures without seeds 2021-02-15 18:28:23 +08:00
Angela Graves 2cca4d658c Merge pull request #47509 from Lamandus/bolts
Longer bolts
2021-02-15 02:52:17 -06:00
Zhilkin Serg f9fcf555ca Merge pull request #47382 from Fris0uman/mannequin
Add mannequin hallu monster
2021-02-15 09:55:29 +03:00
Zhilkin Serg 566011ef27 Merge pull request #47521 from wapcaplet/w-turns-to-moves
Fix actions that were 100 times too fast
2021-02-15 09:52:16 +03:00
Zhilkin Serg b3da58f048 Merge pull request #47503 from BrettDong/homebrew
Automatically locate gettext from Homebrew on Mac
2021-02-15 09:51:44 +03:00
Zhilkin Serg ddb9af54bd Merge pull request #47358 from BrettDong/mo
Compile English .mo only on MinGW or CYGWIN
2021-02-15 09:51:32 +03:00
Zhilkin Serg e938fa367f Merge pull request #47519 from int-ua/patch-2
compose.py: Add filter argument to pngsave
2021-02-15 09:51:20 +03:00
Zhilkin Serg d233a07f38 Merge pull request #47525 from BrettDong/npc-speech
Fix I18N in NPC warn message
2021-02-15 09:48:25 +03:00
Binrui Dong 77a8ffaafd Fix I18N in NPC warn message 2021-02-15 00:44:07 -05:00
Ramza13 8462e0e048 Unhardcode bio_toolset 2021-02-14 23:29:40 -05:00
Ramza13 27b8407d03 Unhardcode bio syringe 2021-02-14 22:48:30 -05:00
Eric Pierce 9af5092413 Fix iexamine actions with timing off by 100x
Several of the actions in `iexamine` and `iuse` were incorrectly
subtracting the number of "turns" instead of the number of "moves",
making several actions roughly 100 times faster than intended.

When using `mod_moves` or subtracting from `u.moves`, convert time
durations to *moves* instead of *turns*.
2021-02-14 18:35:12 -07:00
Binrui Dong 8885db2359 Compile English .mo only on MinGW 2021-02-14 19:41:02 -05:00
Binrui Dong 20fffb39a5 Simplify Travis CI Mac build parameters
* NATIVE=osx is now automatically set on Mac
* BREWGETTEXT=1 is no longer needed because Makefile automatically
  probes for gettext from two possible Homebrew installation locations
2021-02-14 19:40:50 -05:00
Serhiy Zahoriya 3978fa1c9b compose.py: Add filter=8 to pngsave 2021-02-15 01:51:20 +02:00
Zhilkin Serg ecae00229b Merge pull request #47511 from wapcaplet/w-skellington
Change monster name "skeleton" to "skeletal zombie"
2021-02-15 01:53:30 +03:00
Zhilkin Serg 5607271d2b Merge pull request #47507 from Saicchi/barterfix
Fix obsoleted skills showing in NPC train menu
2021-02-15 01:52:52 +03:00
Zhilkin Serg 57f291c41d Merge pull request #47486 from BrettDong/demangle-mac
Implement C++ symbol demangling on macOS
2021-02-15 01:52:03 +03:00
Zhilkin Serg 05a58cb9a7 Merge pull request #47504 from BrettDong/clean-pch
Add a 'clean-pch' target to Makefile that cleans PCH
2021-02-15 01:51:39 +03:00
Zhilkin Serg b9857129ba Merge pull request #47505 from BrettDong/lgtm
Fix several LGTM.com warnings
2021-02-15 01:51:24 +03:00
Zhilkin Serg a291fe55b4 Merge pull request #47506 from BrettDong/libcxx
Use libc++ by default if using clang on BSD
2021-02-15 01:50:50 +03:00
Zhilkin Serg 3e4b13bd04 Merge pull request #47508 from BrettDong/reload
Fix crash when reloading container on the ground and canceling equipment
2021-02-15 01:50:26 +03:00
Eric Pierce 9db6c7f88b Change "skeleton" to "skeletal zombie"
The name "skeleton" has been misleading players for a long time into
thinking this zombie is just a literal animated skeleton made of nothing
but bones.

Change its name to agree with its description, and to be consistent with
its evolved forms "skeletal brute", "skeletal juggernaut" etc.
2021-02-14 13:38:56 -07:00
Lamandus 7e754e51ca Longer bolts 2021-02-14 20:52:33 +01:00
Binrui Dong b89e776cad Fix crash when reloading container on the ground and canceling equipment 2021-02-14 14:25:51 -05:00
Binrui Dong 28936291cf Use libc++ by default if using clang on BSD 2021-02-14 13:48:04 -05:00
Saicchi 52f14fd5f6 check obsolete 2021-02-14 15:47:02 -03:00
Binrui Dong 0206b908f2 Fix several LGTM.com warnings 2021-02-14 13:43:41 -05:00
Binrui Dong 9a3b65e7de Add a 'clean-pch' target to Makefile that cleans PCH 2021-02-14 13:29:06 -05:00
Binrui Dong 0707f460a3 Automatically locate gettext from Homebrew on Mac 2021-02-14 13:22:41 -05:00
Binrui Dong 53f3a15a2f Implement C++ symbol demangling on macOS
Match function symbol names by a regular expression designed
specifically for the stack trace pattern returned from
backtrace_symbols() on macOS, and then try to demangle the symbol by
abi::__cxa_demangle(). If demangling succeeds, then output the demangled
symbol name, otherwise output the original raw symbol name.

References:
[1] https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man3/backtrace_symbols.3.html
[2] https://gcc.gnu.org/onlinedocs/libstdc++/libstdc++-html-USERS-4.3/a01696.html
2021-02-14 11:49:04 -05:00
Saicchi 1e40b428c6 Fix furniture being "destroyed" when grab-moving (#47457) 2021-02-14 12:27:42 +03:00
Anton Burmistrov b198aa9a6d Fix 'n' tweaks for island prison (#47446)
* Added roof to boat shed and chapel

* Made outer walls higher on the second floor

* Added guaranteed spawn of pliers and hammer as a little help in making the lockpicks

Also added a set of electronic tools to the lockers in the reactor room.

* Replaced wood benches with metal ones

* Replaced locked door to the mess hall with boarded up door

Also added a destroyed table in the mess hall to explain how they managed to board the door.
Also removed one of the dumpsters to help players find out that there is a door to the mess hall behind them.

* Go straight to the mission offer instead of mission list

* Filled up the northwestern guard tower with bookcases to prevent player from spawning in there

* Changed the location of secret slope down to the eastern wing

* Restrict seweranha to sewers, and sewer snakes to murky water so they don't fight with each other

Also increased their chance to spawn.

* Lint
2021-02-14 12:25:47 +03:00
Zhilkin Serg 392af35e44 Merge pull request #47476 from Jamuro-g/fix-W]ear-screen-didn't-show-new-decimals-for-protection
show protection values as decimals for armor_inventory_preset
2021-02-14 12:23:25 +03:00
Zhilkin Serg 51840635e1 Merge pull request #47489 from BrettDong/wield
Only list solid items in wield menu
2021-02-14 12:21:35 +03:00
Zhilkin Serg c20b7d47c8 Merge pull request #47263 from Qrox/paste
Allow pasting into input popup on tiles build
2021-02-14 12:08:30 +03:00
Zhilkin Serg 3a8ec4a4fd Merge pull request #47490 from BrettDong/read
Fix crash when read a book on the ground with broken arms
2021-02-14 12:00:00 +03:00
Binrui Dong e87ee49dba Only list solid items in wield menu
This fixes #41628 and #47488, where liquids are listed in wield menu,
but in fact the player can never wield any liquid. The UI display here
was confusing.
2021-02-14 01:30:10 -05:00
Angela Graves 62c448421d Merge pull request #47460 from LaVeyanFiend/MoreLengths
Longest_side for woodworking.json
2021-02-14 00:14:19 -06:00
Zhilkin Serg 79ccf33a0a Merge pull request #47482 from wapcaplet/w-kill-calories
Convert stored_calories on character template load
2021-02-14 08:48:10 +03:00
Binrui Dong 6d620b88d8 Fix crash when read a book on the ground with broken arms 2021-02-14 00:00:23 -05:00
Zhilkin Serg 7197d9e865 Merge pull request #47480 from Jamuro-g/Fix-wrong-check-caused-non-ups-modded-players-to-not-work
Fix accidently caused mp3 player to only work with ups mods
2021-02-14 02:16:16 +03:00
LaVeyanFiend 9e440f7b71 Woodworking lengths 2021-02-13 16:49:04 -05:00
Eric Pierce 7a65161afd Convert stored_calories on character template load
Before #46906, character templates were saved with stored_calories equal
to total kilocalories (55,000 being the "healthy" baseline).

Now, stored_calories is in units of small-c calories, being 55,000,000
for the healthy baseline. This led to a bug #46995 where new characters
created from older-version templates would spawn with too few calories,
by a factor of 1,000.

Detect this when templates are loaded, and multiply stored_calories if
its value appears to be way too small.
2021-02-13 14:29:49 -07:00
Jamuro-g df56f1a83f fix switched || to && 2021-02-13 19:55:33 +01:00
Jamuro-g 0ffab540a7 fix show protection in decimals for armor_inventory_preset 2021-02-13 15:33:29 +01:00
Jamuro-g da7c0c6011 added ups check to iuse action for music & radios (#47364) 2021-02-13 14:47:21 +03:00
Zhilkin Serg f059a7aa81 Merge pull request #47432 from KorGgenT/bleed-spell
[Magiclysm] new animist spell 'bleed"
2021-02-13 14:46:17 +03:00
Benjamin Mauer a5219112e3 Normalize chocolate waffle recipe (#47434) 2021-02-13 14:45:52 +03:00
Zhilkin Serg 141205f5e1 Merge pull request #47474 from int-ua/patch-2
Infrastructure "Revert quantizing to palette from pngsave"
2021-02-13 14:45:04 +03:00
Serhiy Zahoriya 1274b46b9d Revert quantizing from pngsave
as it becomes lossy on large files
2021-02-13 13:37:54 +02:00
Angela Graves ebff420a6e Merge pull request #47455 from Fosheze/butcheringfix
Add butchering quality to everything with cutting quality
2021-02-13 05:36:18 -06:00
Serhiy Zahoriya c252c86174 Infrastructure "compose.py: reduce composed tilesheet file size" (#47453) 2021-02-13 13:56:14 +03:00
Zhilkin Serg 359ed612e7 Merge pull request #47441 from Maleclypse/Jenny-Forcette-Missing-text
Jenny Forcette Missing text
2021-02-13 13:38:22 +03:00
Zhilkin Serg 0b51371626 Merge pull request #47456 from anothersimulacrum/nore
Migrate vehicle turret ammo spawns
2021-02-13 13:37:42 +03:00
Zhilkin Serg 151e34c5cd Merge pull request #47468 from BrettDong/bsd-patch
Add /usr/local to header/library search path on BSD
2021-02-13 13:35:20 +03:00
Zhilkin Serg a6ac8a4798 Merge pull request #47464 from BrettDong/i18n
Routine i18n updates on 13 Feb 2021
2021-02-13 13:33:59 +03:00
Zhilkin Serg abdc652f23 Merge pull request #47465 from BrettDong/sh
Use POSIX single bracket in lang/update_pot.sh
2021-02-13 13:33:53 +03:00
Zhilkin Serg 54f9326bb5 Merge pull request #47466 from BrettDong/lang
Fix L10N not working when env var LANG is unset
2021-02-13 13:33:20 +03:00
Zhilkin Serg bfd74f3c21 Merge pull request #47469 from BrettDong/ports-patch
Mainline patch on locale path from FreeBSD and OpenBSD ports
2021-02-13 13:32:58 +03:00
Zhilkin Serg 7992aa75b8 Merge pull request #47467 from BrettDong/native-osx
Automatically detect and set NATIVE=osx on Mac and use clang compiler by default
2021-02-13 13:32:52 +03:00
Zhilkin Serg fdc07db9a0 Merge pull request #47449 from BrettDong/validate-pr
Remove unused "validate_pr_in_jenkins" script
2021-02-13 13:32:24 +03:00
Binrui Dong 9138ce5a32 Mainline patch on locale path from FreeBSD and OpenBSD ports
This is both patched in FreeBSD ports [1] and OpenBSD ports [2].

[1] https://svnweb.freebsd.org/ports/head/games/cataclysm-dda/files/patch-src-translations.cpp?revision=536283&view=markup

[2] http://cvsweb.openbsd.org/cgi-bin/cvsweb/ports/games/cataclysm-dda/patches/patch-src_translations_cpp?rev=1.5&content-type=text/x-cvsweb-markup
2021-02-13 01:12:38 -05:00
Binrui Dong e54ae76af9 Add /usr/local to header/library search path on BSD
libexecinfo and libintl are located in /usr/local on FreeBSD and
OpenBSD, and possibly on other BSD systems I haven't tested as well.
Makefile currently doesn't add /usr/local/include and /usr/local/lib to
header and library search paths, so users will have to manually specify
by prepending

CPLUS_INCLUDE_PATH=/usr/local/include LIBRARY_PATH=/usr/local/lib

before gmake command to compile.
2021-02-13 00:58:48 -05:00
Binrui Dong 3bc9174b5a Use clang as default compiler on Mac 2021-02-13 00:48:25 -05:00
Binrui Dong 1fd231649a Automatically detect and set NATIVE=osx on Mac 2021-02-13 00:48:12 -05:00
Binrui Dong 0303fbb804 Fix L10N not working when env var LANG is unset
GNU gettext documentation [1] says that environment variable
"LANGUAGE" will be ignored if the locale is set to "C". I tested
on Ubuntu Linux and OpenBSD that when environment variable "LANG"
is unset or set to "C", in-game UI will be all in English although
a non-English language has been selected in options menu and
translations are compiled and present in lang/mo.

This fix adds a check in the UNIX code path in set_language(). When
"LANG" environment variable is unset or "C", we manually set "LANG"
to the language user selected in game.

[1] https://www.gnu.org/software/gettext/manual/html_node/The-LANGUAGE-variable.html#The-LANGUAGE-variable
2021-02-13 00:41:40 -05:00
Binrui Dong b534e11208 Use POSIX single bracket in lang/update_pot.sh
This fixes execution error of lang/update_pot.sh, and lang/compile_mo.sh
which invokes the former one, on systems without bash, eg. a fresh
FreeBSD or OpenBSD install.

By using portable single bracket instead of double brackets in the if
statement, lang/update_pot.sh can run on shells other than bash and
shells that does not support double brackets.

I tested this on OpenBSD 6.8 with ksh and FreeBSD 12.2 with tcsh.
2021-02-13 00:25:47 -05:00
Binrui Dong c58ac1b0e8 Routine i18n updates on 13 Feb 2021 2021-02-13 00:20:06 -05:00
LyleSY abc9b1407c [DinoMod] giant indoor zombie dino bugfix 2021-02-12 19:30:34 -08:00
Anton Burmistrov 85a8ef4c82 Updated monsters that could spawn in land and island prisons with new zombie prisoners variants (#47412)
* Updated monsters that could spawn in land and island prisons
Co-authored-by: actual-nh <74678550+actual-nh@users.noreply.github.com>
2021-02-12 19:24:34 -08:00
Jamuro-g c53a9fb453 Added no_thirst flag to metabolic rehydration (#47403) 2021-02-12 19:21:49 -08:00
anothersimulacrum 1e68829d2f Migrate vehicle ammo spawns
These weren't migrated, and some hacks existed to ease this in generic
guns.
Remove those hacks, and migrate ammo spawns in vehicle turrets.

See
https://github.com/CleverRaven/Cataclysm-DDA/pull/36839#issuecomment-575954094
for more details on why these hacks existed.
2021-02-12 16:18:23 -08:00
casswedson 42468f6cab helps you join the mycus 2021-02-12 15:55:57 -08:00
Binrui Dong 88a9446598 Use /bin/sh compatible single bracket when determining version string 2021-02-12 15:50:35 -08:00
maspri a86129e017 Fixes scuba tanks (#47376)
When activating a (small) scuba tank it was converting to undefined item type.
fixes #46303

Co-authored-by: maspri <maspri@user.noreply.github.com>
2021-02-12 15:47:45 -08:00
mqrause f8eed07a7d Extract frostbite logic from Character::update_bodytemp (#47345)
* move frostbite logic from update_bodytemp to new method update_frostbite
Co-authored-by: mqrause <martin@qrause.de>
Co-authored-by: Binrui Dong <brett.browning.dong@gmail.com>
2021-02-12 15:28:58 -08:00
Fosheze bfc5d81628 Add butchering quality to everything with cutting quality
Add butchering quality to cutting items which were missing it. Items are "pair of scissors", "x-acto knife", "shears", "scalpel", "boxcutter knife", "simple knife spear", and "knife spear".
2021-02-12 17:24:16 -06:00
Zhilkin Serg 0696e96a0d Fix looks_like for vehicle parts 2021-02-12 15:22:14 -08:00
Ramza13 da44f2f8eb Update game.cpp 2021-02-12 14:57:26 -08:00
Cyrano7 c7a4637b34 Add basket weaving proficiency to wicker sieve recipe 2021-02-12 14:47:53 -08:00
Kevin Granade 78a910829d Merge pull request #47045 from ZhilkinSerg/sa-2021-01-26
Code optimizations reported by static code analysis (2021-01-26)
2021-02-12 14:13:57 -08:00
aerrant b7fbc2164e Optimize item migrations to decrease load times (#46980)
* Batch item replacing to decrease load times
Co-authored-by: John Bytheway <jbytheway@gmail.com>
2021-02-12 14:09:25 -08:00
Andrey Bienkowski a4ad0ae79d Fix the toc generator (#47302)
* Fix the toc generator
2021-02-12 14:02:13 -08:00
Binrui Dong 85c7d245d4 Remove unused "validate_pr_in_jenkins" script
* Removed "validate-pr" target from Makefile
* Removed the section in COMPILING.md that mentions this script
* Removed the script itself

This script is no longer used anymore, but is still part of "make all".
It causes "make all" to fail on my OpenBSD setup because this script
requires bash. Therefore I delete it for good.
2021-02-12 10:51:38 -05:00
Angela Graves cbcfab179d Merge pull request #47435 from Salty-Panda/stop_necromancy_in_hospital
[Magiclysm] No more "Necromancy for Dummies" in hospital beds
2021-02-12 05:40:13 -06:00
Zhilkin Serg e7ff8ced9f Merge pull request #47430 from LyleSY/patch-5
[DinoMod] tyrant mutagen bugfix
2021-02-12 14:23:49 +03:00
Zhilkin Serg 6f2949aa65 Merge pull request #47440 from BrettDong/bsd
Fix BSD macro in src/debug.cpp
2021-02-12 14:23:39 +03:00
Maleclypse 5a79d9282e Update NPC_Jenny_Forcette.json 2021-02-11 23:18:11 -06:00
Binrui Dong 5779218dac Fix BSD macro in src/debug.cpp 2021-02-11 22:06:01 -05:00
Salty Panda 0f5e9a6a24 Remove from item group 2021-02-11 23:08:27 +01:00
KorGgenT 623a40ef0a [Magiclysm] new animist spell "bleed" 2021-02-11 16:00:22 -05:00
LyleSY 064d34f570 space check 2021-02-11 15:20:57 -05:00
Zhilkin Serg 483cd09a89 Merge pull request #47411 from Jamuro-g/body-temp
clamped warmth loss from fatigue
2021-02-11 20:35:21 +03:00
Angela Graves b09447e2ce Merge pull request #47405 from Jamuro-g/funnel
fix funnel weight to limit plastic chunks from butchery
2021-02-11 05:21:36 -06:00
Maleclypse 36b121053c Add NOT_HALLUCINATION to JSON_FLAGS.md (#47419) 2021-02-11 09:41:55 +03:00
Zhilkin Serg 4989190241 Merge pull request #47404 from Jamuro-g/wallet
large wallet > wallet
2021-02-11 09:41:40 +03:00
Zhilkin Serg f0ae1ec0b9 Merge pull request #47359 from Maleclypse/Magiclysm-Harvests
[Magiclysm] fix races missing demihuman harvests
2021-02-11 09:41:04 +03:00
LyleSY 84bcc82e3d [DinoMod] fix Red missions (#47410) 2021-02-11 09:40:37 +03:00
casswedson 1f8f7f8cdf [Aftershock] misc typographical fixes (#47415) 2021-02-11 09:40:20 +03:00
Zhilkin Serg c9516c0b9a Merge pull request #47420 from Maleclypse/Whately-LMOE-Stair-Bugfix
[Aftershock] Whately LMOE Stair Fix
2021-02-11 09:39:49 +03:00
Zhilkin Serg 48a3a7ce38 Merge pull request #47418 from wapcaplet/w-see-help
Prevent help text overlap in world options
2021-02-11 09:39:38 +03:00
Maleclypse 57383f708e isherwood farms zombie cows fix (#47421)
* isherwood farms zombie cows fix

* Update overmap_terrain_agricultural.json
2021-02-10 19:34:06 -08:00
Maleclypse 156a08b67e Update whately_lmoe.json 2021-02-10 20:17:56 -06:00
Eric Pierce 4ec6dc663b Prevent help text overlap in world options
Add another line to the help text area in the options menu, and move the
special note in world options down a line to mitigate overlapping text.
2021-02-10 17:51:34 -07:00
eso 53bf98ba90 [Magiclysm] add shocking lash spell to stormshaper, revise novice stormshaper profession (#47369)
* add shocking lash spell to stormshaper

also adjust novice starting spells, add book, etc

* lint json
2021-02-10 18:10:54 -05:00
Jamuro-g 35ddb517d3 clamped warmth loss from fatigue 2021-02-10 17:16:52 +01:00
Angela Graves fe798ae4c8 Merge pull request #47348 from aerrant/fix-containers-washing
Fix water and detergent consumption when cleaning items
2021-02-10 05:38:57 -06:00
Jamuro-g 087e3280c0 fix funnel weight to limit plastic chunks from butchery 2021-02-10 11:19:25 +01:00
Jamuro-g 161cd0bfc8 large wallet > wallet 2021-02-10 10:54:04 +01:00
Zhilkin Serg 7b6987edf3 Merge pull request #47396 from BrettDong/armor
Fix crash when exiting equip armor in sort armor UI
2021-02-10 10:33:47 +03:00
Zhilkin Serg e8e36c8916 Merge pull request #47395 from casswedson/zow-smash
Make zombie cow bash terrain
2021-02-10 10:30:43 +03:00
Zhilkin Serg 8c354ede1e Merge pull request #47392 from casswedson/dino-tape
Fix Dino Dave's duct tape mission
2021-02-10 10:29:54 +03:00
Zhilkin Serg 820cbd6bde Merge pull request #47383 from Chirynnn/Chirynnn-patch-1
Add "TRANSPARENT" flag to birdbaths
2021-02-10 10:28:46 +03:00
Binrui Dong 0d569cd97c Fix crash when exiting equip armor in sort armor UI 2021-02-09 20:18:24 -05:00
casswedson 81fff67374 make zow smash 2021-02-09 20:11:50 -05:00
casswedson 1db56735ad fix dino dave tape mission 2021-02-09 19:35:06 -05:00
Fris0uman 8a06015247 Add mannequin hallu monster 2021-02-09 21:09:18 +01:00
Chirynnn 202a0060b1 Update furniture-decorative.json
Makes birdbaths transparent, since they're not see-through.
2021-02-09 22:08:51 +02:00
Radosław Stanulewicz 034ac1589c Fix NPC followers being blind after waking up (#47281) 2021-02-09 22:14:44 +03:00
Zhilkin Serg 87c2575db6 Merge pull request #47360 from anothersimulacrum/wam
Slow down weariness messaging
2021-02-09 22:13:58 +03:00
Zhilkin Serg 0ba4506293 Merge pull request #47354 from Jamuro-g/fixed-index-for-worn-items-in-AIM
fixed index issue for aims worn items tab
2021-02-09 22:13:43 +03:00
Zhilkin Serg 6bfee84df2 Merge pull request #47347 from ToxiClay/revert-polearm
Reverts ill-informed spear behavior, annotates melee.cpp
2021-02-09 22:12:28 +03:00
Benjamin Mauer e2235c8cb9 Fix Wooden Bead Curtain Deconstruction Yields (#47350) 2021-02-09 22:11:50 +03:00
Mom-Bun 4806faedb3 [AFTERSHOCK] Add vehicle part for xm34 and A7 turret mount in Aftershock (#47373) 2021-02-09 22:08:06 +03:00
Mom-Bun 50bba6cecd [AFTERSHOCK] Fix the new line in the Udarnik's description (#47375) 2021-02-09 22:06:59 +03:00
Angela Graves 1ffe34c23a Merge pull request #47357 from wapcaplet/w-density-wut
Document density a little better
2021-02-09 03:12:51 -06:00
Curtis Merrill 8cad4da7d9 [magiclysm] fix seeker bolts (#47363) 2021-02-08 23:47:33 -08:00
anothersimulacrum f3b43361d3 Slow down weariness messaging
We have a sidebar display, let's talk about it in the log a bit less.
2021-02-08 22:01:06 -08:00
Maleclypse 275089c5ac fix races missing demihuman harvests 2021-02-08 23:24:16 -06:00
Eric Pierce 8896eb1490 Document density a little better.
At present, this field only appears to affect vehicle part damage in
collisions, and has no other purpose. Document it as such.
2021-02-08 19:59:18 -07:00
Jamuro-g 363fa9f94d fixed index issue for aims worn items tab 2021-02-09 03:31:44 +01:00
ToxiClay 056724edda Reverts ill-informed spear behavior, annotates melee.cpp 2021-02-08 17:29:51 -05:00
Zhilkin Serg 57d594e813 Merge pull request #47344 from BrettDong/div
Fix zero divides zero error when drinking water
2021-02-09 00:32:47 +03:00
Zhilkin Serg 8bde748470 Merge pull request #47342 from Night-Pryanik/prisoners-stay-inside
Restrict prisoners eagerness to investigate the courtyard
2021-02-09 00:31:41 +03:00
Zhilkin Serg b8c3b484bb Merge pull request #47340 from LaVeyanFiend/ScrapWarmth
Scrap armor isn't insulating
2021-02-09 00:31:17 +03:00
Asshole Errant 84a56dd3d2 Fix item volume calculation when washing 2021-02-09 00:24:23 +03:00
Binrui Dong ae40c21aad Fix zero divides zero error when drinking water 2021-02-08 16:19:30 -05:00
Valiant d85d77db0b Restrict prisoners eagerness to investigate the courtyard 2021-02-08 22:04:43 +04:00
LaVeyanFiend 98332afe9b Scrap isn't insulating 2021-02-08 12:37:21 -05:00
Hirmuolio 599c1eabb0 Show itype_id in debug info (#47336)
* show type id

* show decimals
2021-02-08 17:00:12 +03:00
Zhilkin Serg bb16a12c87 Remove duplicate json entry 2021-02-08 12:46:38 +03:00
Angela Graves cf5ec5ba2e Merge pull request #47312 from BrettDong/newspaper
Updated BrettDong easteregg
2021-02-08 03:46:36 -06:00
Eric 99d8ecd184 Unhardcode eating spoiled food and parasite immunitity (#47276) 2021-02-08 11:58:50 +03:00
Eric c82048213e Unhardcode bionic social modifiers (#47268) 2021-02-08 11:56:51 +03:00
Zhilkin Serg 3bcb766bf1 Merge pull request #47323 from Sirbab/signal_tree_butcher_fix_sirbab
Correct Signal Tree Butcher Products
2021-02-08 11:45:33 +03:00
Zhilkin Serg 0081b750a6 Merge pull request #47272 from COOLVAPE/modcraft
Add firearm repair kit to suppressor muzzle brake and ported barrel recipes
2021-02-08 11:44:56 +03:00
Zhilkin Serg 2398854c18 Merge pull request #47301 from Night-Pryanik/tweak-to-dialogue-with-prisoners-leader
Added a dialogue line in which player can resent about tiny reward for completing the mission
2021-02-08 11:44:01 +03:00
Zhilkin Serg c709a2b231 Merge pull request #47307 from ToxiClay/assign-polearm-flag
Assigned the POLEARM flag to weapons that logically needed it
2021-02-08 11:43:18 +03:00
Jamuro-g 0caee8c26c added gun length fixes (cut barrel & muzzle attachments) (#46927) 2021-02-08 11:40:17 +03:00
Jamuro-g 694060aca6 added volume column when unloading liquids (#47209) 2021-02-08 11:36:29 +03:00
acepleiades 5a639cf312 [Infrastructure] Add scooter vehicle parts for spriting (#47100) 2021-02-08 11:34:37 +03:00
Zhilkin Serg 8dd27ee1ab Merge pull request #47280 from kevingranade/fix-software-spawning
Fix software spawning in its container and add a test for it
2021-02-08 10:31:23 +03:00
Curtis Merrill 65e75f40da Allow tilesets to define explosions for spells (#47277)
Co-authored-by: actual-nh <74678550+actual-nh@users.noreply.github.com>
2021-02-08 10:29:15 +03:00
Zhilkin Serg 4d3e8e3f51 Merge pull request #47309 from Djinn247/fix-clean-water-flags
Fix clean water losing water flags
2021-02-08 10:28:25 +03:00
Zhilkin Serg 05dc5d91e7 Merge pull request #47283 from BrettDong/warning
Fix 'loop increment never executed' warning in Xcode
2021-02-08 10:27:31 +03:00
Zhilkin Serg 23d8443cff Merge pull request #47329 from Aivean/fix-remove-field-crash
Fix crash in  `map::player_in_field` caused by iterator invalidation
2021-02-08 10:24:47 +03:00
akirashirosawa 846f95cb1f fix: Cannot buy some items from merchants (#47206) 2021-02-08 10:23:09 +03:00
Zhilkin Serg f4c116110b Merge pull request #47300 from akirashirosawa/add-translation-context
Add translation context
2021-02-08 10:22:10 +03:00
Zhilkin Serg 5d30e7e5cf Merge pull request #47330 from Aivean/fungus-speedup
Speedup fungus processing by 30%+
2021-02-08 10:21:33 +03:00
akirashirosawa 60c59447b9 add translation context 2021-02-08 10:02:16 +03:00
Fris0uman f8f4a9175d Fix discrepancies between pontoon and rvierbridge (#47261)
Co-authored-by: actual-nh <74678550+actual-nh@users.noreply.github.com>
2021-02-08 09:53:38 +03:00
Curtis Merrill 811ab17e01 fix item duping on wear (#47331)
Co-authored-by: anothersimulacrum <anothersimulacrum@gmail.com>
2021-02-08 09:46:07 +03:00
Zhilkin Serg 7f6df3419e Merge pull request #47325 from BrettDong/newchar
Fix translation in scenario tab when creating new character
2021-02-08 09:45:47 +03:00
Kenshkrix 7e63fc89f9 [Magiclysm] learn_spell when reading (#47322)
Co-authored-by: Curtis Merrill <curtis.r.merrill@gmail.com>
2021-02-08 09:45:33 +03:00
Zhilkin Serg a360f47e41 Merge pull request #47315 from wapcaplet/w-unspill-panel
Make sidebar panel configuration window taller
2021-02-08 09:45:16 +03:00
Aivean 3bb438ff82 change map::remove_field to mark fields as "not alive" deferring their actual removal to the map::process_fields_in_submap
fixes crash in  map::player_in_field (#47308)
2021-02-07 21:31:05 -08:00
Aivean 6a65b38669 speedup fungus processing by:
* changing terflag "FUNGUS" to bitflag
* replacing some terflags by (existing) bitflags in `monster::move_to`
* fast path for fire check in `monster::process_triggers`
2021-02-07 20:45:42 -08:00
ToxiClay b6b83ccf3b Fixes regression introduced in previous PR concerning gunmods 2021-02-07 19:22:25 -08:00
Binrui Dong deee4a8089 Fix translation in scenario tab when creating new character 2021-02-07 20:43:42 -05:00
Sirbab 6c7d2cffed Update power_leech.json 2021-02-07 19:46:10 -05:00
Jamuro-g c1d3e85136 Replacing broken vehicle parts now checks for lift&jacking requirements (#47234) 2021-02-08 03:20:41 +03:00
Zhilkin Serg 18e909e860 Merge pull request #47278 from Jamuro-g/display-protection-values-as-decimals
switched tailoring and armor layer ui to show decimals
2021-02-08 03:20:27 +03:00
Zhilkin Serg 58dac07dbb Merge pull request #47271 from LaVeyanFiend/LargeCardboard
Make the furniture version of large cardboard box hold the same as item form
2021-02-08 03:19:36 +03:00
Zhilkin Serg 3c8657ae49 Merge pull request #47297 from kevingranade/fix-container-overflow
Fix container overflow
2021-02-08 03:16:43 +03:00
Zhilkin Serg 048304d50d Merge pull request #47316 from Fris0uman/msx0207
Update MSX 2021-02-07
2021-02-08 03:16:06 +03:00
Fris0uman 280d125387 Update BrownLikeBears 2021-02-07 (#47317) 2021-02-08 03:15:53 +03:00
Zhilkin Serg e080a1f684 Merge pull request #47318 from Fris0uman/Ultimate0207
Update Ultica 2021-02-07
2021-02-08 03:15:34 +03:00
Fris0uman e568e68fec Update Ultica 2021-02-07 2021-02-07 23:49:19 +01:00
Fris0uman 2906f5d4d8 Update MSX 2021-02-07 2021-02-07 23:34:14 +01:00
Eric Pierce 1506687c95 Make sidebar panel configuration window taller
The list of available sidebar panels in "labels" layout was too long,
spilling onto the border of the panel configuration window.

Make the window taller, and use a const popup_height so the vertical
separator heights can derive from this height instead of using hardcoded
magic numbers.
2021-02-07 13:26:11 -07:00
Theawesomeboophis ff0649c5d2 [Magiclysm]: Holiday Monsters Part II (#46460)
* Magiclysm: Holiday Monsters Part II

* Update data/mods/Magiclysm/monsters/holiday_magiclysm.json

Co-authored-by: Maleclypse <54345792+Maleclypse@users.noreply.github.com>

* Update data/mods/Magiclysm/monsters/holiday_magiclysm.json

Co-authored-by: Maleclypse <54345792+Maleclypse@users.noreply.github.com>

* Update data/mods/Magiclysm/monsters/holiday_magiclysm.json

Co-authored-by: Maleclypse <54345792+Maleclypse@users.noreply.github.com>

* Fix leprechaun aggression

Co-authored-by: Maleclypse <54345792+Maleclypse@users.noreply.github.com>
2021-02-07 13:46:29 -05:00
Binrui Dong ad7b324d16 Updated BrettDong easteregg 2021-02-07 12:44:04 -05:00
Zhilkin Serg 83b084339c Merge pull request #47269 from jbytheway/acidchitin_piece_charges
Add acidchitin_piece to charge_removal_blacklist
2021-02-07 20:40:53 +03:00
Zhilkin Serg 0a8ca03af0 Merge pull request #47299 from Qrox/field-warn
Do not warn about field that won't be triggered
2021-02-07 20:39:37 +03:00
Binrui Dong d20c3861b8 Fix 'loop increment never executed' warning in Xcode 2021-02-07 12:37:19 -05:00
I-am-Erk 5b628c1d0d Magiclysm Attunements: add frozen winds, auroral wave, and immolate spells. (#45094)
Co-authored-by: Curtis Merrill <curtis.r.merrill@gmail.com>
2021-02-07 20:35:28 +03:00
Zhilkin Serg 2c5546f9f0 Merge pull request #47310 from BrettDong/i18n
Routine i18n updates on 7 Feb 2021
2021-02-07 20:34:55 +03:00
Anas Bakhsh 8895fc70d9 wrap clean water flags in extend
using extend to preserve the copied water flags
2021-02-07 20:10:48 +03:00
Binrui Dong 5a0e997f44 Routine i18n updates on 7 Feb 2021 2021-02-07 11:57:58 -05:00
ToxiClay 4a357c4821 Assigned the POLEARM flag to weapons that logically needed it 2021-02-07 08:58:42 -05:00
Anton Burmistrov 84531ddf15 Added a dialogue line in which player can resent about tiny reward for completing the mission
Also added a few more sentences to get_lost talk tag.
2021-02-07 13:46:59 +04:00
Ryan7251 0638fba7a9 [Magiclysm] New freezing touch spell (#47115)
* New freezeing touch spell

This new spell is a upgraded version of the chilling touch spell it not only deals more damage but will also slow down your foes.

* Update kelvinist.json

* Update effects.json

* Update spell_scrolls.json

* Update kelvinist.json

* Update kelvinist.json

* ran lint tool

* Update kelvinist.json

* Update kelvinist.json
2021-02-07 02:40:35 -05:00
Qrox 2129b6ba3f Do not warn about field that won't be triggered 2021-02-07 15:06:06 +08:00
ToxiClay bbda3822cc Add a Shadow Field spell to the Magus class' repertoire (#46910)
Creating this spell required the creation of a new field, fd_darkness, which is patterned off of the base game's fd_shadow.
2021-02-07 01:59:28 -05:00
Zhilkin Serg f026a67a1a Merge pull request #47287 from BrettDong/mission
Fix game freeze when player cannot contain mission reward
2021-02-07 09:40:00 +03:00
Zhilkin Serg 99a19ed138 Merge pull request #47284 from BrettDong/mission-ui
Respect language when drawing tabs in mission UI
2021-02-07 09:39:45 +03:00
Zhilkin Serg 77b9c45064 Merge pull request #47294 from BrettDong/tow
Fix crash when towing over a bridge
2021-02-07 09:37:19 +03:00
Zhilkin Serg 6514b9bf3e Merge pull request #47290 from anothersimulacrum/annoyed
Allow enabling string_id debugging on any build
2021-02-07 09:36:09 +03:00
akirashirosawa 5dc8f42be4 Change monster description speed colors (#47252)
* change monster description speed colors

* remove brown add light red
2021-02-07 09:35:19 +03:00
Curtis Merrill 92ebbc72c2 check all nearby omts for lab tunnels (#47235) 2021-02-07 09:35:06 +03:00
Zhilkin Serg c143277f3f Merge pull request #47259 from kevingranade/fix-grab-break
Fix grabbed furniture/vehicle destruction feature and tests for same
2021-02-07 09:34:51 +03:00
Jamuro-g b21d423db7 fix gun encumbrance ui (#47292) 2021-02-07 09:34:37 +03:00
Qrox 0f6db38cb3 Do not clear candidate text unless requested by system 2021-02-07 14:28:11 +08:00
Kevin Granade 9d258137fa Don't try to stick overflow items into mod pockets 2021-02-06 22:25:39 -08:00
Kevin Granade 89196c2a66 Add container overflow tests 2021-02-06 22:25:39 -08:00
Angela Graves 2fb49d34cd Merge pull request #47267 from Night-Pryanik/refactor-AID
Refactor autodoc installation programs mechanics
2021-02-07 00:21:54 -06:00
Qrox d4472f5592 Unify _max_length to mean maximum displayed width 2021-02-07 14:15:04 +08:00
Qrox db9c7d8700 Allow pasting into input popup on tiles build 2021-02-07 14:15:01 +08:00
Venera3 14d298988d Magiclysm golem tweaks (#47270)
* species+faction

* sigh
2021-02-07 00:54:10 -05:00
Binrui Dong c8b8a4e61f Fix crash when towing over a bridge 2021-02-07 00:26:03 -05:00
Binrui Dong d302d43464 Fix game freeze upon completing MISSION_PRISONER_LEADER_GET_ID_CARD 2021-02-06 23:03:23 -05:00
Binrui Dong 4938d9630a Respect language when drawing tabs in mission UI 2021-02-06 21:52:04 -05:00
mqrause 4eb4e8ff76 add method to item_location to get the item_location::type of the topmost parent (#46939)
Co-authored-by: mqrause <martin@qrause.de>
2021-02-06 16:23:44 -08:00
anothersimulacrum 8b957669fe Allow enabling string_id debugging on any build
I got annoyed at having to build with RELEASE=0 to use this, so allow
using it without that.
2021-02-06 16:12:22 -08:00
Kevin Granade aee56e31f2 Fix software spawning in its container and add a test for it 2021-02-06 15:55:52 -08:00
Jamuro-g c9a6d64fb7 switched tailoring and armor layer ui to decimals for protection values 2021-02-06 23:58:36 +01:00
COOLVAPE 3905886f06 Update mods.json 2021-02-06 15:36:03 -05:00
LaVeyanFiend 42caf2e7d5 Make the furniture version of cardboard box hold the same as item 2021-02-06 15:14:43 -05:00
Valiant 602e61b65a Update JSON_INFO.md 2021-02-06 23:23:53 +04:00
John Bytheway 7fc3275783 Add acidchitin_piece to charge_removal_blacklist
Fixes #45326.

chitin_piece was already listed, so this is consistent with that change.

This is because acidchitin_piece used to be an item with charges, but is
no longer.
2021-02-06 14:22:39 -05:00
Valiant 888580a431 Instead of iterating over all AIDs, always use the first element of the vector as it always be _the_ AID for bionic player wants to install 2021-02-06 22:42:38 +04:00
Valiant 1f3d16b83e Remove unneeded comment 2021-02-06 22:24:47 +04:00
Valiant b646e070f5 Replace string hack with check for AID nearby 2021-02-06 22:24:28 +04:00
Valiant 316540120e Added new field to all bionics with difficulty of 1-3 (except for fingerpick and electrohack) 2021-02-06 22:22:24 +04:00
Valiant e7bfea9d3a Added installation_data field 2021-02-06 22:20:53 +04:00
ZhilkinSerg 7c1c18f5b0 Remove redundant whitespaces 2021-02-06 21:17:51 +03:00
ZhilkinSerg 04cd5ee11b Fix variable type 2021-02-06 21:17:51 +03:00
ZhilkinSerg 1fd8d5efb8 Fix logic (add missing parentheses) 2021-02-06 21:17:51 +03:00
ZhilkinSerg 2cd8d0fedc Removed redundant member initializers 2021-02-06 21:17:51 +03:00
ZhilkinSerg d027dea990 Removed redundant c_str call 2021-02-06 21:17:51 +03:00
ZhilkinSerg 7b44bce5cd Use constant references in function parameters 2021-02-06 21:17:51 +03:00
ZhilkinSerg baf36bdb35 clang-tidy: readability-qualified-auto 2021-02-06 21:17:51 +03:00
ZhilkinSerg bac6a6859b clang-tidy: readability-redundant-string-cstr 2021-02-06 21:17:51 +03:00
ZhilkinSerg 15ec0a945f clang-tidy: readability-redundant-string-init 2021-02-06 21:17:51 +03:00
ZhilkinSerg 92db7cd7d6 Do not use C-style casts 2021-02-06 21:17:51 +03:00
ZhilkinSerg db46653715 Initialize variable with explicit value 2021-02-06 21:17:50 +03:00
ZhilkinSerg ca5e5a1d8a Remove redundant empty statements 2021-02-06 21:17:44 +03:00
ZhilkinSerg 107c2b2ecb Remove unused declarators 2021-02-06 21:17:24 +03:00
ZhilkinSerg bd7e5ea410 Remove unused variables 2021-02-06 21:17:24 +03:00
ZhilkinSerg 2fea3fef3f Remove excessive empty lines 2021-02-06 21:17:24 +03:00
Fris0uman e9e4d3327e [Magiclysm] Buff magic light and magic lamp (#47194)
* Explicit unit of duration in magic doc

* Lower mana cost and increase duration gain per level for Magic light

* Magic light is bright as a candle

* magic lamp is as bright as a flashlight

* Increase duration gain per level for magic lamp
2021-02-06 12:07:12 -05:00
Zhilkin Serg 5cc608ccea Merge pull request #47239 from BrettDong/iwyu
Run IWYU
2021-02-06 19:26:54 +03:00
Angela Graves 1e8a075abd Merge pull request #47214 from nornagon/patch-4
Show flammability of terrain
2021-02-06 05:40:35 -06:00
Kevin Granade a5db697aed Fix grabded furniture/vehicle destruction feature and tests for same 2021-02-06 00:39:19 -08:00
ToxiClay 0c1ca59954 Updates name of active makeshift gas canister for consistency (#47256) 2021-02-06 00:37:31 -08:00
LyleSY 29d68f9c46 [Aftershock] Billy upgrade fix for Sadie's quest (#47147) 2021-02-06 11:04:55 +03:00
Zhilkin Serg 34ec2f02a8 Merge pull request #47254 from LaVeyanFiend/InfiniCrack
Fix supersupply of heroin or double baggies for professions
2021-02-06 11:02:47 +03:00
akirashirosawa 81a0c5bcf1 extract palette.signs and repeat_responses (#47246) 2021-02-05 22:59:49 -08:00
Anton Burmistrov 3c0a6ea729 Changed text order in Check Opinion menu (#47245) 2021-02-05 22:59:13 -08:00
John Candlebury 30d86f57aa Add a UI display for "Ammunition consumed per shot" (#47242) 2021-02-05 22:33:05 -08:00
Anton Burmistrov 598dba008d If distracted by attack, show attacker's name only if it's visible to player (#47240)
* Show attacker's name only if it's visible to player
* Split into two checks
2021-02-05 22:32:36 -08:00
Jamuro-g 675cac1bfb applied from_moves (#47237)
* applied from_moves

* resolved 1_turns casts
2021-02-05 22:32:02 -08:00
Curtis Merrill 5db7942087 disable turning vehicles on ramps (#47236) 2021-02-05 22:31:10 -08:00
Jianxiang Wang (王健翔) 055490a60b Display vehicle interaction UI keybindings according to settings (#47229) 2021-02-05 22:29:08 -08:00
Tamior 267be5fcd7 Update to still recipe (issue #47201) (#47226)
* Undate to still recipe
Co-authored-by: Tamiore <61312205+Tamiore@users.noreply.github.com>
Co-authored-by: actual-nh <74678550+actual-nh@users.noreply.github.com>
2021-02-05 22:25:24 -08:00
Kevin Granade 5c04414c03 Merge pull request #47222 from Qrox/stop-hauling
Stop hauling when all haulable items in the current square are moved out
2021-02-05 22:10:56 -08:00
Anas Bakhsh cae3e27252 Added new insect eggs to crafting recipe (#47213)
Grouped up all the insect eggs as a cooking requirement group with id: eggs_insect
component weights are based on the difference between eggs requirement for the powder_eggs recipe
changed powder eggs recipe to use the new component group
2021-02-05 21:55:03 -08:00
Binrui Dong 3c2da38009 Fix 'harvest_by_season' error in Aftershock Mod (#47258) 2021-02-05 21:27:28 -08:00
Binrui Dong 9fdb7ef59c Run IWYU
* Change _ctype.h and __locale to cctype and clocale

* Change _wctype.h to cwctype in game.cpp

* Change __functional_base to functional

* Remove libcxx internal headers

* Remove UNIX system headers

* Fix clang-tidy error with -nostdinc++
2021-02-06 00:18:41 -05:00
Saicchi 5146b8f10d Add filter and sorting in choose trait screen. (#47203)
* filtering and sorting
2021-02-05 19:07:32 -08:00
ToxiClay 9cdb21a86d Removed requirement to clear weapon before installing external gunmods (#47200)
* Removed extraneous conditions from item::is_gunmod_compatible()

Realistically speaking, you should not be required to clear your weapon to attach, say, a shoulder strap or an ACOG.
You should, however, be required to do so to modify the magazine well or install internal components.
Removing these conditions makes the game match this reality.

Co-authored-by: Binrui Dong <brett.browning.dong@gmail.com>
2021-02-05 18:54:14 -08:00
John Candlebury 4050af68f6 Gunmods can modify a gun's "ammo to fire" (#47196)
* Allow gunmods to affect ammo-to-fire
Co-authored-by: actual-nh <74678550+actual-nh@users.noreply.github.com>
2021-02-05 18:49:34 -08:00
Ivan Zaitsev 6ee435af3c Split map::process_fields_in_submap into field processors (#47076)
* extract "field processors" from `map::process_fields_in_submap`
simplify `field_type` and `field_entry` interfaces
* rewrite field_processor_fd_shock_vent using points (fixes clang-tidy warnings)
Co-authored-by: Binrui Dong <brett.browning.dong@gmail.com>
2021-02-05 18:48:37 -08:00
Jamuro-g 353f2e2bd6 fix to ensure filled bike racks cannot be used in racking tasks (#47026)
* fix to ensure filled bike racks cannot be used in racking tasks
2021-02-05 18:42:58 -08:00
Salty Panda 3ccddc6f4b Make ported barrel more realistic (#47021)
* Remove volume increase when installing ported barrel
* Make irremovable, reduce weight
* Game say it's not allowed, so no reduction here
2021-02-05 18:40:49 -08:00
Eric 61a24cfd41 Add support for flags to enhance unhardcoding mutations and bionics (#46984)
* Add methods to find flags
* Convert flags over to flag_id
* Migrate trait flags to char flags
* Change from flag_id to new type
2021-02-05 18:29:00 -08:00
actual-nh 2f8f32f1a3 Set stored kcal to healthy kcal for testing (#46941)
* Set stored kcal to healthy kcal for testing

Randomizing test orders reveals that one type of problematic
interference is due to variable stored calories from prior activity.

(cherry picked from commit 306bfb4cbd817d4db60e92807025549050a576ff)

* Match (some) weary testing to kcal resetting

Previous weary testing was distored by variable incoming kcal
stored, with the current default test order giving more kcal
than the expected 55,000.

* Update numbers to match consensus test results

At least currently, two different sources (Github General build g++-7
and Appveyor) are giving the same numbers for the 24-hour digging
weary test. This updates the target test numbers to match these,
with a bit of wiggle room in the direction of the earlier results
(partially since Travis hasn't given any results yet).

* Clear_avatar before initial debug_weary_info

Variable initial heights and weights is making having debug_weary_info
before do_activity not useful. This adds a clear_avatar before them;
unless do_activity is modified to take a flag as to whether to clear
the avatar itself, this is likely temporary.

* Change the last target for the vehicle weary test

See comments in #46941 - most specifically issuecomment-770297143.

Co-authored-by: actual-nh <actual-nh@users.noreply.github.com>
2021-02-05 18:26:21 -08:00
Maleclypse c6ebb07687 Update charges on some junkfoods and breads. Randomize spawns (#46885)
* add charges and random counts to item groups
2021-02-05 18:13:03 -08:00
Andrey Bienkowski 5a0df98b8f Replace all fuel that spawns in military bases with jp8 (#46824)
* Replace all fuel that spawns in mil bases with jp8
* Update mapgen.cpp to allow jp8 fuel in pumps
* Fix jp8 missing pump_terrain
Co-authored-by: actual-nh <74678550+actual-nh@users.noreply.github.com>
2021-02-05 18:08:06 -08:00
Anton Burmistrov e987eba454 Autodoc installation program which almost guarantees flawless installation of basic-tier bionics (#46808)
* Added autodoc installation data item with 'bionic installation' quality of 3
* Added installation data spawn to 'elecsto_stor' item group
* Added installation item spawn to electronic store, two types of hospital, private doctor's office, and zombie scientist drop list
* Increased available lines in the header of bionic installation menu from 2 to 3
* Made second line of hint fold
* Mark affected CBM's failure chance with an asterisk
* Apply 10 level of skills for calculation of success when using installation data
* Show hint about found installation data only if autodoc actually found it
* Created lots of AIDs for lots of 1-3 levels of difficulty
* Created item group with AIDs
* Replaced old autodoc software spawn with AIDs spawn
2021-02-05 17:56:16 -08:00
Anton Burmistrov 7a5f7e7ca0 New island prison layout (#46726)
* Tweaked some things in mapgen palette
* Added "prisoner" variants for three zombie types
* Added a new "get_lost" talk tag
* Added a new "prisoners" faction
* Added new NPC class, NPC types with this new class, and a whole lot of talking
* Added a new island prison layout and the required stuff for it
* Added a new start location in a new prison
* Added a case when player already has the id card at the time when he meets the leader of prisoners
* Added a small church with a named zombie
Co-authored-by: LaVeyanFiend <51099123+LaVeyanFiend@users.noreply.github.com>
Co-authored-by: actual-nh <74678550+actual-nh@users.noreply.github.com>
Co-authored-by: matskuman5 <selinmatias5@gmail.com>
2021-02-05 17:51:19 -08:00
Kevin Granade 29e4a5faed Merge pull request #46340 from anothersimulacrum/wanel
Add weariness and activity sidebar display and panels, display effects on weariness in effect description
2021-02-05 17:49:57 -08:00
Fris0uman 3776894cfb Move harvest to generic factory (#42616)
* Move harvest to generic factory
* fix seasonal harvest, and default values
* update chamomille drop
2021-02-05 17:34:09 -08:00
Trioct c0af04b133 Change how item groups are spawned (#42211)
* Change how item_groups spawn
* Apply spawn rate to vehicle items
* Unbreak high spawn rates
* Fix some item spawns with rate > 1
* Fix place_items for 3d
2021-02-05 17:31:55 -08:00
LaVeyanFiend 8f38ed39e4 No more infinite drugs in professions 2021-02-05 20:17:14 -05:00
ToxiClay 6582277533 Update to compilation workflows (#46830)
* Update and confirm compilation workflows for various environments:

-Ubuntu 20.04, native and cross-compilation
-Windows, compilation using MSYS2, Cygwin, and Visual Studio

* Include warning message about whitespace
2021-02-05 17:04:18 -08:00
Saicchi b4ab3dff7b [Magiclysm] Fix plus_one and plus_two weapons barter price (#47238)
Co-authored-by: Saicchi <Saicchi@users.noreply.github.com>
2021-02-05 11:36:13 -05:00
Angela Graves 93a9c8d2cf Merge pull request #47231 from Daved27hundred/bulkpemmicanbranch
pemmican now has batch time savings
2021-02-05 03:06:04 -06:00
Zhilkin Serg 45c46ababd Merge pull request #47230 from Venera3/faction_obsolete
Obsolete deleted factions
2021-02-05 03:17:41 +03:00
Zhilkin Serg ffacfec4dd Merge pull request #47106 from CleverRaven/clothing-thickness-audit
Huge clothing thickness audit and guidelines
2021-02-05 03:17:10 +03:00
Zhilkin Serg 0d768e7328 Merge pull request #47157 from bombasticSlacks/chairRotateFix
Fixed Chairs and Fridges Not Rotating Correctly
2021-02-05 03:16:31 +03:00
Zhilkin Serg 0223c54c93 Merge pull request #47216 from BrettDong/npc-test
Fix random npc-movement unit test failure
2021-02-05 03:15:57 +03:00
Zhilkin Serg 2b78cdf451 Merge pull request #46937 from BrettDong/dirty
Suppress dirty flag on changes in lang/po
2021-02-05 03:14:10 +03:00
ZigVert e2fad3fd9b added batch time savings to pemmican
making pemmican in bulk now saves time
2021-02-04 14:22:22 -05:00
Venera3 89b1ca6a22 Update obsolete.json 2021-02-04 19:46:35 +01:00
Kevin Granade 553520093f Merge pull request #47108 from BrettDong/odr
Capture ODR violations
2021-02-04 09:23:56 -08:00
Binrui Dong 41611f5449 Install GNU Parallel on Travis CI (#47227) 2021-02-04 09:20:25 -08:00
Binrui Dong 7fa83e21f9 Use t_wall_metal in npc-movement test for determinism 2021-02-04 09:16:37 -05:00
Angela Graves 6f67e98f6d Merge pull request #47219 from Jamuro-g/armguard_metal-warmth
added missing warmth value to armguard_metal
2021-02-04 06:25:26 -06:00
Qrox 044cbccde7 Check for haulable items when starting and stopping hauling 2021-02-04 18:25:14 +08:00
Qrox 4a06b93606 Stop hauling when moving items on the ground 2021-02-04 17:04:18 +08:00
Jamuro-g ff5d7bf769 added missing warmth value to armguard_metal 2021-02-04 06:47:22 +01:00
Binrui Dong 658162c43b Only consider tiles with floor when NPC avoids explosives (#47113) 2021-02-03 21:41:31 -08:00
Venera3 7c4c07043d Adjust monster factions (#47152)
Co-authored-by: actual-nh <74678550+actual-nh@users.noreply.github.com>
2021-02-03 21:40:37 -08:00
Jamuro-g 38981c0a6c added stack count check to is_container_eligible_for_crafting 2021-02-03 21:32:03 -08:00
Binrui Dong 2d8d5efaad Use GNU Parallel to run tests concurrently 2021-02-03 20:30:43 -08:00
Saicchi 616ab70d74 Add speed to monster description (#47153)
Co-authored-by: Saicchi <Saicchi@users.noreply.github.com>
Co-authored-by: Binrui Dong <brett.browning.dong@gmail.com>
2021-02-03 19:34:58 -08:00
Benjamin Mauer f2bb834771 Update tailoring.json (#47158) 2021-02-03 18:58:02 -08:00
Benjamin Mauer b85352ce76 Update recipe_medsandchemicals.json (#47159) 2021-02-03 18:57:00 -08:00
Jamuro-g 10e4cbbdba fixed lockpicking prof exploit (#47174) 2021-02-03 18:56:28 -08:00
ToxiClay 6c59bb3156 Corrects minor typography in kiln message (#47178) 2021-02-03 18:55:16 -08:00
Jamuro-g 4b86beb090 racking vehicles now removes passenger flags (#47181) 2021-02-03 18:54:56 -08:00
Jianxiang Wang (王健翔) 9457601569 Fix dragged vehicle/furniture leaves a trail of memorized tiles in darkness (#47189) 2021-02-03 18:49:00 -08:00
Kevin Granade 0ed23c4fcd Merge pull request #47212 from BrettDong/lang
Update /lang "CODEOWNER"
2021-02-03 18:41:09 -08:00
Kevin Granade 98f0100076 Merge pull request #47195 from int-ua/patch-4
Infrastructure "Make compose.Tileset useful as an imported module"
2021-02-03 18:40:08 -08:00
Anton Burmistrov efd88ea60c Tweaked pull metal weapon attack (#47192)
* Use existing code of activating bio_magnet bionics to create a real projectile instead of magically teleporting pulled weapon to technician's location
* Allowed pulling items made of hard steel and budget steel by Electromagnet CBM
2021-02-03 18:37:48 -08:00
Jamuro-g b5779f0a44 prevent negative focus total (except in debug cases) (#47191)
* prevent negative focus total (except in debug cases)
Co-authored-by: anothersimulacrum <anothersimulacrum@gmail.com>
2021-02-03 18:36:45 -08:00
Jeremy Rose d270ed45df Update src/map.cpp
Co-authored-by: Binrui Dong <brett.browning.dong@gmail.com>
2021-02-03 18:20:25 -08:00
Jeremy Rose 6c9a10a2a4 Show flammability of terrain 2021-02-03 17:57:12 -08:00
Binrui Dong ee6f07cce0 Update /lang "CODEOWNER" 2021-02-03 19:59:42 -05:00
Binrui Dong 0aaa0181bd Suppress dirty flag on changes in lang/po 2021-02-03 15:26:27 -05:00
Zhilkin Serg bd7758f8b4 Merge pull request #47197 from wapcaplet/w-retro-neo-scale
Scale NeoDays to match RetroDays
2021-02-03 20:26:55 +03:00
Serhiy Zahoriya 913853d7a5 Remove redundant comment 2021-02-03 16:55:40 +02:00
Serhiy Zahoriya a43a973dd5 Make entry parameter of TileEntry.convert optional 2021-02-03 16:53:43 +02:00
Angela Graves 203e8c942c Merge pull request #47198 from anothersimulacrum/i24n
[i18n] extract targeting_sound and no_ammo_sound
2021-02-03 05:38:03 -06:00
anothersimulacrum 75b22913b4 [i18n] extract targeting_sound and no_ammo_sound 2021-02-02 21:16:04 -08:00
Kevin Granade 96a264e3f3 Markdown the clothing thickness guidelines
Co-authored-by: actual-nh <74678550+actual-nh@users.noreply.github.com>
2021-02-02 20:13:55 -08:00
Eric Pierce 86d743b419 Scale NeoDays tileset the same as RetroDays 2021-02-02 20:51:49 -07:00
Serhiy Zahoriya 6f0e582530 Move ` in the PR summary validator (#47190) 2021-02-03 01:33:17 +03:00
Zhilkin Serg 69d2efe8ea Merge pull request #47188 from Qrox/pixel-minimap
Check texture pointer is not null before putting it back to pixel minimap texture pool
2021-02-03 01:32:06 +03:00
Serhiy Zahoriya 99d97466f8 Replace sys.exit with ComposingException 2021-02-03 00:26:10 +02:00
Serhiy Zahoriya d6ce022e00 Make Tileset useful as an imported module
Move globals into the Tileset class
2021-02-02 23:51:25 +02:00
Qrox ee6766eadd Check texture pointer is not null before putting it back to texture pool 2021-02-02 20:44:48 +08:00
Zhilkin Serg c05830fc57 Merge pull request #47184 from Fris0uman/chibi210202
Update ChibiUltica 2021-02-02
2021-02-02 11:30:17 +03:00
Angela Graves a547fa3d52 Merge pull request #47177 from Saicchi/renameclair
Rename Debug Clairvoyance to better fit what it does
2021-02-02 02:07:22 -06:00
Fris0uman 8e140c8e96 Update ChibiUltica 2021-02-02 2021-02-02 08:57:56 +01:00
Binrui Dong d314841c20 Use GOLD linker and enable LTO in g++-9 workflow 2021-02-01 22:01:58 -05:00
Binrui Dong dfb7969119 Enable '-Wodr' in LTO 2021-02-01 22:01:58 -05:00
Binrui Dong dbab7105f2 Add '-detect-odr-violations' to GOLD linker 2021-02-01 21:56:17 -05:00
Binrui Dong 3bbbccad96 Add 'detect_odr_violation=1' ASAN option 2021-02-01 21:56:17 -05:00
Saicchi 20e949fa2d rename traits 2021-02-01 15:21:58 -03:00
Zhilkin Serg e8758fc8b5 Merge pull request #47162 from BrettDong/explicit
Add explicit specifier to WORLD::WORLD(string) constructor, Fix clang-tidy error
2021-02-01 20:25:19 +03:00
Zhilkin Serg 62aa3bac4c Merge pull request #47165 from Trioct/fix-pixel-minimap
Fix empty pixel minimap
2021-02-01 20:24:59 +03:00
John Candlebury 26a8bbda7c Aftershock: New Energy pistols (#47131) 2021-02-01 20:24:13 +03:00
Maleclypse 9e2cf1facc [DinoMod] Mutation Trees (#46111) 2021-02-01 20:23:40 +03:00
Zhilkin Serg 2b0a1a6e0e Merge pull request #47156 from Mom-Bun/updatecodeowner
Update Aftershock CODEOWNERS
2021-02-01 20:22:17 +03:00
Angela Graves f1a1af3056 Merge pull request #47170 from Cyrano7/competition
Fix spelling of competition
2021-02-01 05:20:54 -06:00
Cyrano7 25dff1b69e Fix spelling of competition 2021-02-01 02:02:13 -08:00
Zhilkin Serg dfd58b5939 Merge pull request #47160 from Fris0uman/sewage
Fix slime mutagen recipe
2021-02-01 12:15:03 +03:00
trioct 8898baf8ba Fix empty pixel minimap 2021-01-31 23:29:27 -06:00
Williham Williham Totland cebff34972 Fix partial container spawning (#46970)
* Resolves an issue where containers for spawned liquids would only be partially full if charges were not specified.

* Resolves astyle issue.

* Modifies the change to strictly apply to liquids only.

* Makes UHT milk appear opened in fridges.
2021-01-31 18:55:07 -08:00
Binrui Dong 4edb1ea8f0 Add explicit specifier to WORLD::WORLD(string) constructor 2021-01-31 19:22:25 -05:00
Fris0uman cc31cea9c2 Sewage is just sewage 2021-02-01 00:46:53 +01:00
bombasticslacks 6c2ef4d07a fixed furniture rendering so things can specify not to connect to adjacent versions of themselves 2021-01-31 18:39:11 -04:00
Bella 2ff8ef54a2 adding myself to codeowners 2021-01-31 16:31:31 -06:00
Zhilkin Serg be8dec36dd Merge pull request #47123 from jbytheway/invert_stat_calculation
Return new statistic value when adding statistic watcher
2021-02-01 00:13:46 +03:00
Zhilkin Serg 13db97764b Merge pull request #47125 from jbytheway/google-explicit-constructor
Enable clang-tidy check google-explicit-constructor looking for constructs that allow implicit conversions
2021-02-01 00:12:48 +03:00
Zhilkin Serg de1e7968f2 Merge pull request #47144 from jbytheway/avoid_ub_when_no_labs_generated
Don't access back of empty vector of lab train stops
2021-02-01 00:07:04 +03:00
Zhilkin Serg c41e49afc4 Merge pull request #47151 from Fris0uman/blb210131
Update BrownLikeBears 2021-01-31
2021-02-01 00:06:19 +03:00
Zhilkin Serg 09bfe65cc0 Merge pull request #47150 from Fris0uman/msx210131
MshockXotto+ Update 2021-01-31
2021-02-01 00:05:47 +03:00
Zhilkin Serg 9132081661 Merge pull request #47149 from Fris0uman/ultica310121
Update Ultica 2021-01-31
2021-02-01 00:05:29 +03:00
Fris0uman 09c52ba44b Update BrownLikeBears 2021-01-31 2021-01-31 21:34:43 +01:00
Fris0uman 30d5c41b7e MshockXotto+ Update 21-01-31 2021-01-31 21:26:24 +01:00
Fris0uman 6c04c7e958 Update Ultica 2021-01-31 2021-01-31 21:01:16 +01:00
John Bytheway e9ff43c8a1 Don't access back of empty vector of labs
Until #46701, it was safe to assume that every overmap had labs.  Now
that is no longer true.

The lab subway code assumed that there always existed a lab to connect
the central lab to.  This could cause access into an empty vector when
no labs existed, as seen in Travis CI.

Moreover, it turns out that the code causing this invalid access didn't
actually do anything (it used to, but changes in #30540 meant that it no
longer had any effect, and the connection between central and other labs
was achieved by other means.

So, I just removed the offending code.
2021-01-31 12:24:21 -05:00
Zhilkin Serg 7f32dfbde0 Merge pull request #47099 from BrettDong/math
Workaround for linking error with clang and glibc 2.31+
2021-01-31 17:56:12 +03:00
Zhilkin Serg 23bbc772c1 Merge pull request #47134 from BrettDong/world-name
Fix unit test randomly fails to launch on Mac CI check
2021-01-31 17:53:45 +03:00
Angela Graves a17d18f136 Merge pull request #47127 from curstwist/taco-truck
add a taco truck and item groups
2021-01-31 02:16:55 -06:00
Binrui Dong b9e0d8297b Fix unit test randomly fails to launch on Mac CI check 2021-01-30 22:35:53 -05:00
Zhilkin Serg c4139e05d5 Merge pull request #47132 from John-Candlebury/afs-fix-astolab-scrap
Aftershock: Fix invalid itemgroup spawn in astrobiology lab
2021-01-31 04:24:25 +03:00
John Candlebury 3970e35701 Fix invalid itemgroup spawn 2021-01-30 19:11:00 -06:00
Zhilkin Serg 28a776b519 Merge pull request #47098 from Ramza13/veh_seg
Prevent auto drive seg_fault
2021-01-31 00:15:07 +03:00
Jamuro-g 18fa760994 vehicle construction now informs about adjusted strength values (#47067) 2021-01-31 00:14:49 +03:00
Zhilkin Serg 49555011d7 Merge pull request #47077 from BrettDong/mac-ci
Add macOS 10.15 target to GitHub Action build matrix
2021-01-31 00:14:36 +03:00
curstwist 07223c70d1 change container 2021-01-30 15:42:48 -05:00
curstwist 4b080dbd5d add a taco truck and item groups
also update ice cream truck to have ice cream.
2021-01-30 14:09:08 -05:00
John Bytheway 1e16bda44a Enable google-explicit-constructor 2021-01-30 11:12:41 -05:00
John Bytheway c90ec0edcb Remove implicit constructors and update code 2021-01-30 11:12:41 -05:00
Binrui Dong e8937b1d5c Better CI job name 2021-01-30 10:10:40 -05:00
Binrui Dong 2ed667272c Add macOS 10.15 target to GitHub Action build matrix 2021-01-30 10:10:15 -05:00
Zhilkin Serg b8b74c3d86 Merge pull request #47101 from BrettDong/clang
Fix struct name collision
2021-01-30 17:39:10 +03:00
Zhilkin Serg ba0ca5afc4 Merge pull request #47025 from BrettDong/asan
Fix bad memory access in drop_activity_actor::do_turn()
2021-01-30 17:38:45 +03:00
topherclay a2a2491fc9 Removed outdated messages. (#47033) 2021-01-30 17:36:26 +03:00
Serhiy Zahoriya 979018a919 PR Summary regex to match both formats (#47105)
* Summary regex to match both formats

* typo fix

* Make colon optional

* PR Validator regex update

* Add "Brief description" as known example
2021-01-30 17:32:30 +03:00
Serhiy Zahoriya ed63ac0758 Minor TILESET.md edits (#47109) 2021-01-30 17:32:03 +03:00
Zhilkin Serg 62ee9625ed Merge pull request #47114 from int-ua/patch-5
Infrastructure "compose.py now detects unused PNG names that match referenced IDs"
2021-01-30 17:31:34 +03:00
Zhilkin Serg b389d09213 Merge pull request #47121 from BrettDong/veh
Fix message overlap in vehicle interact menu
2021-01-30 17:31:09 +03:00
Zhilkin Serg fda536297a Merge pull request #47120 from BrettDong/elec
Fix duplicate crafting menu tab entries
2021-01-30 17:31:00 +03:00
Zhilkin Serg a3c086c344 Merge pull request #47074 from BrettDong/parent
Implement is_recursive_parent() without recursion
2021-01-30 17:30:35 +03:00
John Bytheway 82fda67cc4 Mark function override instead of final
Some of our compilers insist on override with final, and others insist
that the two must not be used together, so we can't easily use this
keyword.  Since this function should never actually be called, I'm not
going to worry about it for now.
2021-01-30 07:17:58 -05:00
John Bytheway 9257d1e86c Don't recompute value for is_satisfied
requirement_watcher::is_satisfied was recomputing the statistic value
every time, even though it already had a value cached in a member
variable!  Use that one instead.
2021-01-30 07:11:10 -05:00
John Bytheway 447f6934f0 New watchers now return value watched
When setting up a watcher for an event_statistic, it needs to compute
the current value.  But there's a good chance that whoever set up the
watcher also cares about the current stat value, so the watcher can now
return that new value and remove the need to compute it twice.
2021-01-30 07:11:09 -05:00
Angela Graves b42ab9d79f Merge pull request #47103 from Jamuro-g/protection-values-in-item-display-are-now-shown-as-decimals
protection values in item display are now shown as decimals
2021-01-30 05:22:55 -06:00
Binrui Dong 29a197de28 Fix message overlap in vehicle interact menu 2021-01-30 02:15:06 -05:00
Binrui Dong 1dd52f2902 Fix duplicate crafting menu tab entries 2021-01-30 01:11:00 -05:00
Serhiy Zahoriya 348683aa57 detect when unused PNG name was mentioned as ID 2021-01-30 01:50:31 +02:00
Jamuro-g e5666399df changed test case values to decimal 2021-01-29 17:42:35 +01:00
Angela Graves 0ec694873a Merge pull request #47066 from Night-Pryanik/pull_metal_weapon_tweak
Zombie technician pull metal weapon attack tweak
2021-01-29 06:04:41 -06:00
Kevin Granade 492c18fc67 Huge clothing thickness audit and guidelines 2021-01-29 01:57:42 -08:00
Jamuro-g 425ddde883 protection values in item display are now shown as decimals 2021-01-29 05:29:47 +01:00
Binrui Dong 9e9d726e3f Fix struct name collision 2021-01-28 23:04:35 -05:00
Binrui Dong 942f1efca7 Workaround for linking error w/ clang & glibc 2.31+ 2021-01-28 22:37:44 -05:00
Ramza13 4e0fd1f329 Prevent seg_fault 2021-01-28 21:32:42 -05:00
Serhiy Zahoriya 0c167aed8a Make all gibs fields liquid (#46851)
for them to be cleanable by mop. Solid leftovers are already covered by the butchery refuse item.
2021-01-28 17:48:28 -08:00
Eric Pierce 302ba1a704 Fix falsely flipped fire feeding (#47092)
Rename the negated boolean variable `no_fire` to `have_fire` and
un-negate its usage.

Make `have_fire` default true, so `player_activity::do_turn` will check
for the presence of fire at least once.
2021-01-28 17:14:09 -08:00
Maleclypse 6dd0a5d8e9 [Aftershock] Design Doc Draft (#46666)
* Aftershock Design Doc Draft

* Apply suggestions from code review

Co-authored-by: actual-nh <74678550+actual-nh@users.noreply.github.com>

* table of contents updates

* Update README.md

* Update README.md

* Update data/mods/Aftershock/README.md

Co-authored-by: actual-nh <74678550+actual-nh@users.noreply.github.com>

* Update data/mods/Aftershock/README.md

Co-authored-by: actual-nh <74678550+actual-nh@users.noreply.github.com>

* Update data/mods/Aftershock/README.md

Co-authored-by: actual-nh <74678550+actual-nh@users.noreply.github.com>

* Update data/mods/Aftershock/README.md

Co-authored-by: actual-nh <74678550+actual-nh@users.noreply.github.com>

* Update README.md

* Update README.md

* Update data/mods/Aftershock/README.md

Co-authored-by: actual-nh <74678550+actual-nh@users.noreply.github.com>

* Update data/mods/Aftershock/README.md

Co-authored-by: actual-nh <74678550+actual-nh@users.noreply.github.com>

* Update data/mods/Aftershock/README.md

Co-authored-by: John Candlebury <johncandlebury@gmail.com>

Co-authored-by: actual-nh <74678550+actual-nh@users.noreply.github.com>
Co-authored-by: John Candlebury <johncandlebury@gmail.com>
2021-01-28 16:26:28 -05:00
Venera3 9dde4db36b Overmap bugfixes (#47071) 2021-01-28 22:34:52 +03:00
Zhilkin Serg adc031fc05 Merge pull request #47088 from BrettDong/comment
Improve item name presentation in comments for translators
2021-01-28 22:33:35 +03:00
Zhilkin Serg ddd97519f8 Merge pull request #47087 from BrettDong/use_action
Extract use_action of GUN items for translation
2021-01-28 22:33:15 +03:00
Binrui Dong acabf845bc Improve item name presentation in comments for translators 2021-01-28 13:25:41 -05:00
Binrui Dong fae87acbc3 Extract use_action of GUN items for translation 2021-01-28 13:06:32 -05:00
Binrui Dong 48439d4286 Move recursive contain check to a member function of item_location 2021-01-28 10:47:37 -05:00
Angela Graves 9987370ebe Merge pull request #47073 from Sirbab/Tainted_meat_nerf_sirbab
Reduce enjoyability of dehydrated tainted meat
2021-01-28 05:35:30 -06:00
Zhilkin Serg 2ff55f2451 Merge pull request #47082 from Trioct/fix-clang-build
Fix clang 10 build
2021-01-28 13:45:33 +03:00
trioct c025b76d31 fix clang 10 build 2021-01-28 04:33:58 -06:00
Zhilkin Serg 854f10d0c1 Merge pull request #46932 from kevingranade/fix-clothing-protection-values
Fix clothing protection values
2021-01-28 01:51:04 +03:00
Zhilkin Serg 703dd607ee Merge pull request #46996 from ToxiClay/mdeath-necro-boomer
Correct pluralization of log message for boomer explosion
2021-01-28 01:47:15 +03:00
Serhiy Zahoriya 4e9a75944f Infrastructure "Do not require repetition of the SUMMARY word in the PR template" (#46993)
* Do not require repetition of the SUMMARY word

* Change pr-validator regexp

* Split summary regex into two lines

* Another edit to pr-validator.yml regex

* Using \s in JS regexp

* shorten the PR template

To reduce amount of scrolling required to fill it

* None category

Further reduce amount of scrolling required

* Update CONTRIBUTING.md

* Newlines where necessary

 for filling in without hitting enter

less _unnecessary_ spaces and newlines

* Unification of PR template newlines for filling in

To match the Summary section

* GitHub capitalization
2021-01-28 01:47:05 +03:00
TheGoatGod c83a5a10ed turn all the remaining bare name strings into name objects (#46964) 2021-01-28 01:46:11 +03:00
Zhilkin Serg 86e901a834 Merge pull request #47061 from Aivean/field_tests
Add bunch of unit tests for fields
2021-01-28 01:44:02 +03:00
Zhilkin Serg 2f6f3878b1 Merge pull request #47054 from Aivean/acid-test-increase-margin
Increase error margin for the acid decay test to reduce flakiness
2021-01-28 01:42:07 +03:00
Zhilkin Serg 596ebfe64d Merge pull request #47034 from kevingranade/streamline-skill-crafting
Base crafting skill practice on turns taken directly instead of using an inpenetrable formula.
2021-01-28 01:41:42 +03:00
LaVeyanFiend c0addc74ef Allow rollerskates to work on gym floors (#47039) 2021-01-28 01:41:10 +03:00
Zhilkin Serg 19dc8ceb2c Merge pull request #47059 from BrettDong/cxx
Use correct compilers in GitHub Action build matrix workflows
2021-01-28 01:39:41 +03:00
Zhilkin Serg 772b6cbaa2 Merge pull request #47058 from BrettDong/ubsan
Print stack trace in case UBSan detects an error
2021-01-28 01:39:02 +03:00
Zhilkin Serg e54c6396e3 Merge pull request #47057 from BrettDong/faction
Align NPC skills display in faction UI
2021-01-28 01:38:45 +03:00
Binrui Dong 4f9322e46a Fix unit test case filter (#47053) 2021-01-28 01:38:34 +03:00
Zhilkin Serg c374054e17 Merge pull request #47052 from BrettDong/color
Fix colorization in tailor kit UI
2021-01-28 01:36:45 +03:00
Zhilkin Serg 4cb05600d7 Merge pull request #47050 from BrettDong/wait
Fix 'wait -n' error in CI build script on Mac targets
2021-01-28 01:36:10 +03:00
Saicchi e56b4b9360 Toggle enable only active in Debug Traits (#47063) 2021-01-28 01:35:42 +03:00
Zhilkin Serg 083ff14d91 Merge pull request #47056 from Jamuro-g/throwing-bugfix
Replaced is_wearing check with is_worn when an item is thrown
2021-01-28 01:35:31 +03:00
Zhilkin Serg 22d5661995 Merge pull request #47062 from COOLVAPE/touristbattery
ensure tourist camera is charged
2021-01-28 01:35:21 +03:00
Zhilkin Serg b15b40bad0 Merge pull request #47072 from topherclay/patch-1
bad '.org' link fixed to '.com'
2021-01-28 01:34:58 +03:00
topherclay e959b714d5 Update TESTING.md 2021-01-27 14:06:34 -08:00
Sirbab 970b1466dd Update meat_dishes.json 2021-01-27 16:50:27 -05:00
Valiant e01f78307c Replaced adding pulled weapon to monster inventory with pulling it to monster location
Also slightly reworded the text ("katana is pulled from your hands" -> "The katana is pulled from your hands").
2021-01-27 20:58:37 +04:00
Angela Graves d995f4760e Merge pull request #47060 from Jamuro-g/gas-pump
added permeable flag to t_gas_pump_a
2021-01-27 05:40:54 -06:00
Binrui Dong fef8b2392b Fix bad memory access in drop_activity_actor::do_turn() 2021-01-27 00:01:10 -05:00
Binrui Dong 937f91fa75 Respect $(COMPILER) in Makefile 2021-01-26 23:22:48 -05:00
COOLVAPE e5fe9d715e Update professions.json 2021-01-26 23:18:10 -05:00
Binrui Dong 17c8a91b6a Print stack trace in case UBSan detects an error 2021-01-26 23:12:13 -05:00
Aivean ab52ccb646 fix fd_flame_burst intensity (required by fd_fire_vent)
add new unit tests for fields
2021-01-26 19:34:46 -08:00
Jamuro-g e546817f44 added permeable flag to t_gas_pump_a 2021-01-27 04:11:12 +01:00
Jamuro-g 0c85c6105f force push attempt to clean up 2021-01-27 02:58:44 +01:00
Jamuro-g f71c029961 moved npc check into the food related methods (#47030)
* moved npc check into the food related methods

* removed avatar check for log_activity
2021-01-27 01:52:15 +03:00
Zhilkin Serg b95aa93825 Merge pull request #47055 from BrettDong/gitignore
Add '/tests/obj' to .gitignore
2021-01-27 01:49:38 +03:00
Kevin Granade f68a356391 Audit of clothing thicknesses 2021-01-26 13:47:45 -08:00
Kevin Granade d3f1209b77 Add a few assertions about clothing protection values 2021-01-26 13:46:09 -08:00
Kevin Granade 836668bf4e Make armor thickness and dependent values a floating point number 2021-01-26 13:46:09 -08:00
Binrui Dong ad7c8f51b1 Align NPC skills display in faction UI 2021-01-26 16:21:50 -05:00
Binrui Dong 8150c718fb Add '/tests/obj' to .gitignore 2021-01-26 16:17:00 -05:00
Aivean 2af99d0a39 increase error margin for the acid decay test to reduce flakiness 2021-01-26 12:53:44 -08:00
Binrui Dong eced8ccca1 Fix colorization in tailor kit UI 2021-01-26 14:07:26 -05:00
Binrui Dong 0a689a5cdb Fix 'wait -n' error in CI build script on Mac targets 2021-01-26 13:42:53 -05:00
lopho a149ceb008 CMake linting (#47043)
* format cmake files to adhere to linting rules

* cmake linting workflow/action

* cmake clang-tidy: wrap include dir var in quotation
2021-01-26 15:27:50 +03:00
Angela Graves 2f36cd9590 Merge pull request #47020 from bombasticSlacks/egg-carton
Egg carton
2021-01-26 01:57:26 -06:00
Kevin Granade cb62738f68 Base crafting skill practice on turns taken directly instead of using an impenetrable formula. 2021-01-25 18:50:05 -08:00
Salty Panda 6902525471 Allow for excluding words in recipes filter (#46985) 2021-01-25 14:16:02 -08:00
Zhilkin Serg 83bac488b9 Merge pull request #47022 from BrettDong/seat
Fix unknown requirements "vehicle_bolt" error
2021-01-25 21:54:57 +03:00
Binrui Dong 751f88a171 Fix unknown requirements "vehicle_bolt" error 2021-01-25 12:57:40 -05:00
Kevin Granade dacb3e3b0d Merge pull request #46973 from Qrox/inv-cat
Do not mix items around the player with inventory items under detailed categories
2021-01-25 09:19:31 -08:00
bombasticSlacks c1a6636623 Changed to cardboard material 2021-01-25 12:30:31 -04:00
Zhilkin Serg 313c70cf26 Merge pull request #46378 from ToxiClay/ported-barrel
Switch ported barrel location from muzzle to barrel
2021-01-25 19:30:20 +03:00
Zhilkin Serg e22721ff91 Merge pull request #46998 from LaVeyanFiend/CBMTab
Remove empty CBM recipe tab from vanilla, move to Aftershock
2021-01-25 19:29:44 +03:00
Binrui Dong e49828610d Fix use-after-free error in sounds::process_sound_markers(player) (#47016) 2021-01-25 19:28:13 +03:00
Hirmuolio 909b6646cf Tighten temperature tests (#46979) 2021-01-25 19:27:35 +03:00
Zhilkin Serg 971055338c Merge pull request #46818 from lopho/cmake_minimal
CMake: unify code style, remove unneeded statements
2021-01-25 19:26:38 +03:00
Zhilkin Serg f74d61ec03 Merge pull request #47002 from casswedson/steal-your-bacon
Give food vendor carts custom itemgroups
2021-01-25 19:26:15 +03:00
COOLVAPE 4c699c8e0c fix historical reenactor proficiencies + make the professions cleaner (#46990) 2021-01-25 19:25:39 +03:00
Zhilkin Serg 43e9a57845 Merge pull request #47005 from COOLVAPE/crazypartybuff
bring crazy party start in line with similar scenarios
2021-01-25 19:24:58 +03:00
Anton L 0f2a648dd0 add vacuum-packed bag as component to vacuum sealer recipes (#46969) 2021-01-25 19:24:10 +03:00
El-Jekozo e9352ad289 New side story: Pizzaiolo (#46101) 2021-01-25 19:23:48 +03:00
Zhilkin Serg 19c02a1bbd Merge pull request #46986 from Mrzjadacz/NPC-fights-back-while-guarding
NPC fight back while guarding
2021-01-25 19:23:35 +03:00
Jamuro-g dd08df5712 deprecated towel_soiled and replaced it with filthy tag (#46878) 2021-01-25 19:23:21 +03:00
RadHazard b602f76ded First-aid menu now shows health bars and max HP in addition to current HP when self-aware (#46968) 2021-01-25 19:23:08 +03:00
Pupsi Mupsi 031093ead2 Content: Add vehicle back seats (#45696) 2021-01-25 19:21:59 +03:00
Zhilkin Serg 0b1c97a3ef Merge pull request #46934 from kevingranade/test-batching
Batch test executions by default
2021-01-25 19:21:20 +03:00
bombasticSlacks 72d6631a1e Added Egg Cartons 2021-01-25 12:17:46 -04:00
Venera3 a19c382742 Update OVERMAP.md (#46981) 2021-01-25 19:10:37 +03:00
Eric c0f600de63 Add debug function to list effects on player (#46975) 2021-01-25 19:08:51 +03:00
Zhilkin Serg 382a3ae4e0 Merge pull request #47011 from langp11/master
Find antibiotics mission to accept variants
2021-01-25 19:08:13 +03:00
Ryan7251 4dab7bc345 [Magiclysm] New spell Nova Flare (#46901) 2021-01-25 19:06:57 +03:00
Salty Panda 4156653968 [Magiclyms] Buff Holy Blade and Spiritual Armor spells (#46950) 2021-01-25 19:06:30 +03:00
Zhilkin Serg 4d029913e7 Merge pull request #47012 from LyleSY/patch-5
[DinoMod] Hulkasaurus weight loss tips
2021-01-25 19:05:00 +03:00
Qrox 06bba1c7d7 Fix ordering of container stacks in alternative inventory mode 2021-01-25 19:53:59 +08:00
Angela Graves ca9abdbdd5 Merge pull request #47003 from COOLVAPE/boots_wsurvivor
xl winter survivor boots fix
2021-01-25 01:54:42 -06:00
LyleSY 29cfbb46ec [DinoMod] Hulkasaurus weight loss tips 2021-01-24 21:09:41 -05:00
langp11 3dff1d4550 Find antibiotics mission to accept variants 2021-01-25 12:49:39 +11:00
Binrui Dong d2f3109dbc Fix division by zero error when examining racked vehicle with fuel tanks 2021-01-24 14:55:26 -08:00
Qrox 5e13bda4b3 Select the first sorted entry when opening inventory ui 2021-01-24 14:54:42 -08:00
COOLVAPE 4b2bd15059 Update scenarios.json 2021-01-24 17:52:33 -05:00
COOLVAPE 15f6cf7afd Update boots.json 2021-01-24 17:10:41 -05:00
langp11 72383246a4 Target item doesn't spawn when accepting prison visionary mission (#46961)
* Target item doesn't spawn when accepting prision visionary mission
2021-01-24 13:42:02 -08:00
Jamuro-g bab9408777 added check for parent in insertion menu (no more bagception) (#46913)
* added check for parent in insertion menu
* made check recursive
2021-01-24 13:41:34 -08:00
casswedson ec956c7716 *steals your bacon and cheese* 2021-01-24 16:41:06 -05:00
LaVeyanFiend 8bb8bfcce0 Remove empty CBM tab from vanilla 2021-01-24 13:27:53 -05:00
Eric Pierce 85a23edc64 Include book name in mission name
After accepting this mission, there was no way to tell what the name of
the desired book was. Only one specific book will do; include that book
title in the name of the mission.
2021-01-24 12:02:54 -05:00
ToxiClay 02c43dd20f Correct pluralization of log message for boomer explosion 2021-01-24 11:06:39 -05:00
Qrox 410dd9eebf Fix clang-tidy warning 2021-01-24 22:49:53 +08:00
Angela Graves 308bec1612 Merge pull request #46331 from slimeboy460/master
Name Change (Steel Knuckles to Scrap Knuckles)
2021-01-24 04:41:40 -06:00
Qrox 13190733f1 Only stop hauling when all hauled items are picked up 2021-01-23 21:45:37 -08:00
Qrox d46d2b6706 Fix message log width with small screen size 2021-01-23 21:45:11 -08:00
Qrox 23077070a7 Exit from batch selection when filtering in crafting ui 2021-01-23 21:43:17 -08:00
Serhiy Zahoriya dc4564327d compose.py: skip fillers by JSON ID, error on duplicate JSON IDs (#46914)
* compose.py: do not include fillers with --use-all
make "bg" optional
warn about IDs encountered multiple times
* Elevate severity of duplicate IDs
* Do not warn about duplicates on fillers
* Do not warn about skipping images in filler sheets
* change obsolete-fillers error message
* Move obsolete_fillers to Tileset
* Elevate severity of duplicate sprite names
* Change severity of --obsolete-fillers to warning
* Try catching the UnicodeDecodeError
2021-01-23 21:42:18 -08:00
TheRoyalAssassin 5276dde1a7 tastier carrots and roasted carrots (#46951)
* made carrots tasty
* added roasted carrots
* added a recipe for roasted carrots
2021-01-23 19:28:39 -08:00
Jamuro-g a5297456a8 Add wielded containers to AIM (#46915)
* add wielded containers to AIM
* items inside wielded containers now show up in [I]
* wielded container now shows up in AIM [w]ear screen
2021-01-23 19:27:02 -08:00
COOLVAPE 25dfd12d15 Add a "Kitchen Towel" item (#46912)
Co-authored-by: Binrui Dong <brett.browning.dong@gmail.com>
Co-authored-by: actual-nh <74678550+actual-nh@users.noreply.github.com>
Co-authored-by: Kevin Granade <kevin.granade@gmail.com>
2021-01-23 18:51:39 -08:00
slimeboy460 db30316325 Update recipe_obsolete.json 2021-01-23 21:46:53 -05:00
slimeboy460 6d59eccbac Update recipe_obsolete.json 2021-01-23 21:46:22 -05:00
Kevin Granade 3e71b9d030 Merge pull request #46906 from anothersimulacrum/west
Remove randomness from metabolism
2021-01-23 18:46:03 -08:00
slimeboy460 035b97c6d8 Final 2021-01-23 21:45:22 -05:00
slimeboy460 6d399c86af part something 2021-01-23 21:44:36 -05:00
slimeboy460 5f7f23f980 Update mod_tileset.json 2021-01-23 21:41:35 -05:00
slimeboy460 50da1e0f65 P4 2021-01-23 21:40:43 -05:00
slimeboy460 46ab1ec968 p3 2021-01-23 21:39:43 -05:00
slimeboy460 78f80afc63 P2 2021-01-23 21:38:51 -05:00
slimeboy460 01733d0593 Removal of ID change P1 2021-01-23 21:37:18 -05:00
moxian c4e657293c Reformat presentation of the bandage usage window. (#46853)
* Reformat presentation of the bandage usage window.
* Bleed color fix.
Co-authored-by: Binrui Dong <brett.browning.dong@gmail.com>
2021-01-23 18:16:10 -08:00
KorGgenT f8fdeca1a6 Refactor Creature::deal_projectile_attack into smaller parts 2021-01-23 18:13:41 -08:00
Salty Panda fd3eaa9531 NPC fight back while guarding 2021-01-24 00:48:25 +01:00
talltitanicc dc59dbd7db Adding American 180 Magazines (#46905)
Co-authored-by: Kevin Granade <kevin.granade@gmail.com>
2021-01-23 14:26:10 -08:00
Qrox e991f15195 Keep order of items of the same type when toggling inventory mode 2021-01-23 23:43:25 +08:00
Qrox 679e521e76 Keep cursor position when toggling inventory mode 2021-01-23 23:43:25 +08:00
Qrox 3a684d06e5 Fix inventory_column::order_by_parent so inventory items are listed first in alternative inventory mode 2021-01-23 23:43:24 +08:00
Qrox dbfc230eb6 Only list inventory items in item categories 2021-01-23 23:43:24 +08:00
Angela Graves edd42fc022 Merge pull request #46943 from Jamuro-g/prevent-comestible-powders-from-freezing
prevent certain powdered comestible items from freezing
2021-01-23 06:51:20 -06:00
Zhilkin Serg 1c164600d1 Merge pull request #46963 from BrettDong/i18n
Routine i18n updates on 23 Jan 2021
2021-01-23 12:01:17 +03:00
Curtis Merrill 59340d6944 fix magic casting xp (#46949) 2021-01-23 00:32:37 -08:00
talltitanicc 759ff6aea1 Added new recipe to steel awl (#46938) 2021-01-23 00:31:41 -08:00
Xaleth 71532e8dbb Typography change in crafting_gui.cpp (#46900) 2021-01-23 00:28:57 -08:00
acepleiades 4496736c20 Add rear motorbike wheels (#46889) 2021-01-23 00:28:28 -08:00
Maleclypse e9124aa4fe acetone and apex (#46886) 2021-01-23 00:26:29 -08:00
Jamuro-g 299565417d Added pocket size check to sheaths/holsters (#46867)
* switched to can_contain instead
Co-authored-by: mqrause <38702195+mqrause@users.noreply.github.com>
2021-01-23 00:25:15 -08:00
Jamuro-g 4430344dc3 sheath_knife tag added to throwing knifes (#46864) 2021-01-23 00:23:39 -08:00
Foxtrot_Uniform 9795ad8166 Changed "skill rust" mentions in game to "skill rust delay" (#46859) 2021-01-23 00:22:58 -08:00
Hirmuolio 72fee2f6f1 Fix masticated_volume calc (#46855)
* fix satiety shown
* moved water_weight to its own
2021-01-23 00:22:27 -08:00
sulyi 448e094d55 Fix launcher rename
Variable assignment is not an expression in shell
2021-01-23 00:18:17 -08:00
Venera3 6f56901c61 Infection and recovery 2021-01-23 00:15:38 -08:00
Saicchi ac417ccb91 Mycus Fireproofing gives immunity to heat (#46715)
* mycus heatproof
* heatproof flag
* morale heat
Co-authored-by: Saicchi <Saicchi@users.noreply.github.com>
2021-01-23 00:09:50 -08:00
Venera3 f19c325ac4 Map special rebalance (#46701)
* 1-1

Most 1 max occurence -> UNIQUE

* 2-1

First pass occurrences,  without labs

* 2-2

Lab spawn

* 1-2

Lab stuff freq higher

* 2-3

Vent, surf unique

* 3-1

Locations first pass

* Terrain name adjustments

* 2-4

Bandit stuff occurences

* 4-1

Distances

* 4-2

Distance categories

* 5-1

Sizes

* Tweaks

* Tweaks2

* Symbol

* 6-1

Connections

* Occurrence tuning 1

* Test, revert!

* Final(ish)

* Map

240 range

* Cabin location

* Update overmap.cpp

* Military base

* Map spawn

* Lint

+LMOE without trail

* Lint2

* Huh?

* Industry from, Airport tweaks

* Isherwood tweaks

* Worms, meet can

* Final
2021-01-23 00:04:55 -08:00
Jamuro-g 6366ed1a5a sharp rock description adjusted (#46639)
Co-authored-by: actual-nh <74678550+actual-nh@users.noreply.github.com>
2021-01-22 23:24:18 -08:00
Salty Panda b3827154f7 Rework tail hook, add butt hook (#46504)
* Remove butt hook from CRIT
* Add butt hook
* Add tail hook and full-size butt hook
* Add spawn of folding butt hook to crit
2021-01-22 23:23:31 -08:00
Binrui Dong c3e79334d2 Routine i18n updates on 23 Jan 2021 2021-01-23 02:21:31 -05:00
pcnut ecf0348346 Tire irons and tires redux (#46466)
* Tool and quality introduction.
Create the tire iron in added Wheel Fastening quality to all items that also have the Wrenching quality.
* Added tire iron to proper itemgroup
* Item pool additions
* Blazemod updating
2021-01-22 23:19:51 -08:00
Venera3 1c0f2c1ff6 Redesigning Arthropods 2.5: Add large dermatik nest, some dermatweaks (#46448)
Co-authored-by: Jianxiang Wang (王健翔) <qrox@sina.com>
2021-01-22 23:15:01 -08:00
Ali-Anomma 4f8278e1cf now wooden bead recipe gives 100 bead instead of 1 (#46417)
* now wooden bead recipe gives 100 bead instead of 1
Co-authored-by: Zhilkin Serg <ZhilkinSerg@users.noreply.github.com>
2021-01-22 18:41:36 -08:00
Andrey Bienkowski 4dba86eb81 Update JSON_INFO.md 2021-01-22 15:52:18 -08:00
Askethil 4d828a397c Missing damage type for mana seeker bolt & sun mage blinding (#46709) 2021-01-22 15:31:20 -05:00
Maleclypse 9f43baa208 [ Magiclysm ] Fortifying the forge (#46039)
* oversight corrections

* traps

* changes to forge

* Update forge_of_wonders.json

* reprice rings

* adding some price differences

* Update forge_of_wonders.json

* Update forge_of_wonders.json

* Update enchanted_misc.json

* lint

* Update forge_of_wonders.json

* tr not trap

* minimum charges to start these items

* Update forge_of_wonders.json

* Update traps.json

* Update traps.json

* can't get npc defense trap to work

* trap updates

* Apply suggestions from code review

* rethought traps

* lint

* argh

* eureka

* Apply suggestions from code review
2021-01-22 14:24:37 -05:00
anothersimulacrum c0a7b9ee3e Remove randomness in metabolism
With more precision now, we can drop rng based rounding!

Adjust the two places where this occurs, then adjust all tests to fit.
The weariness tests actually pass with margins of 0, but margin of 5 is
more safe for extenuating circumstances (e.g. unordered tests).
2021-01-22 11:21:53 -08:00
anothersimulacrum 085b4e376f Convert character to use calories internally
Having more precision enables removing rng from metabolism, without
losing detail (the rng was introduced through roll_remainder).

Calorie precision is only available privately - nothing outside of the
metabolism needs that level of precision.
2021-01-22 11:21:53 -08:00
anothersimulacrum 5a522981a6 Use calories instead of kcal in nutrients
calorie precision is only used internally, all external methods should
be dealing with kcal.

Having calorie precision just enables removing rng-based rounding from
metabolism functions, without losing detail.

There was a very minor change in the Calories of some crafted items, as
is caught in the tests.
2021-01-22 11:21:53 -08:00
Jamuro-g 9fe553d7e7 absolute zero is absolute 2021-01-22 19:23:37 +01:00
Jamuro-g 96aaf90517 set freezing point for certain comestible items 2021-01-22 17:43:36 +01:00
anothersimulacrum b0bffd504c Change assert to require
We don't need to crash here, we can just abort the test with REQUIRE
2021-01-22 07:38:54 -08:00
Angela Graves 43dfb22529 Merge pull request #46924 from Kelenius/LetMeEatThisFetusLater
Cloning vats now stop spoiling
2021-01-22 05:25:37 -06:00
Hirmuolio d1e702b64f remove bad bool 2021-01-22 00:17:43 -08:00
Pär Karlsson 8486c4944a Fix the case where the name of an item is not a dict (#46898)
* Fix the case where the name of an item is not a dict

* Produce warnings to stderr for suspicious items

Items whose names are not dicts now produce a warning
to stderr when they are encountered.

* Make pyflake less grumpy
2021-01-22 00:17:06 -08:00
Kevin Granade 7db2c8032a Parallelize CI invocation of unit tests 2021-01-21 19:58:03 -08:00
Kevin Granade df2deed81e Fix exercise level serialization 2021-01-21 19:20:57 -08:00
Foxtrot_Uniform 8a5a5d19c3 Revert "Reverses subtraction in character.cpp to correct skill rust calculation"
This reverts commit 638126cce8.
2021-01-21 17:43:43 -08:00
Kevin Granade 9cd2a0355f Merge pull request #46820 from hexagonrecursion/master
Add a github action to keep doc/JSON_INFO.md table of contents up to date
2021-01-21 17:42:25 -08:00
Kevin Granade 2b2a3e9938 Batch test executons by default
Improves build speed when invoked with parallellism.
2021-01-21 17:24:14 -08:00
Zhilkin Serg 25377436ed Merge pull request #46796 from Qrox/string-input-popup
Fix cursor movement of string input popup
2021-01-22 03:25:50 +03:00
Zhilkin Serg ae312656c9 Merge pull request #46908 from Jamuro-g/book-reading-skillgain-fix
Skillgain from reading books fixed
2021-01-22 03:25:06 +03:00
Zhilkin Serg 0c1ebdb7c0 Merge pull request #46923 from Mrzjadacz/fix-Summon-Floating-Disk-duration-increments-
[Magiclym] Fix Summon Floating Disk duration increment on lvl-up
2021-01-22 03:24:01 +03:00
Zhilkin Serg 3471e005af Merge pull request #46925 from Mrzjadacz/Add-longest-side-to-staff-of-magi
[Magiclysm] Add longest side to Staff of the Magi
2021-01-22 03:23:41 +03:00
Serhiy Zahoriya 2074281fd5 compose.py --obsolete-fillers option docs (#46883) 2021-01-22 03:22:45 +03:00
Altair d22bfc066d Fix npc will run into nearby shelter after being assigned to a camp (#46894) 2021-01-22 03:22:09 +03:00
Zhilkin Serg 3ca62f62a6 Merge pull request #46872 from BrettDong/trap
Fix trap's trigger_weight being ignored if less than 500g
2021-01-22 03:21:28 +03:00
Zhilkin Serg f29270c0e6 Merge pull request #46918 from BrettDong/bionic
Fix NPC name duplication in withdrawing bionic weapon message
2021-01-22 03:21:11 +03:00
Maleclypse e9c50345d2 Add Find Isherwood Farm mission (#46821) 2021-01-21 18:55:21 +03:00
Zhilkin Serg dde61179fa Merge pull request #46919 from BrettDong/laser
Fix NPC dropping laser finger pseudo item
2021-01-21 18:46:09 +03:00
Fris0uman d2e0d4c365 Update Ultica 21-01-20 (#46911)
* Update Ultica 21-01-20

* Small tweak
2021-01-21 18:44:31 +03:00
Zhilkin Serg 11cc79dfe2 Merge pull request #46909 from Fris0uman/mscmsc
Update MSXotto+ 21-01-20
2021-01-21 18:44:12 +03:00
Zhilkin Serg e7f08a9e11 Merge pull request #46903 from Fris0uman/chibiFix
Update Chibi Ultica 2021-01-20
2021-01-21 18:44:05 +03:00
akirashirosawa 43e6df87c6 json extract item[extend] (#46899) 2021-01-21 18:43:50 +03:00
Angela Graves 1bb53ba39e Merge pull request #46882 from Mrzjadacz/add-missing-flags-to-RM13-combat-armor
Add missing flags to RM13 combat armor
2021-01-21 05:32:06 -06:00
Qrox a6abe9c8a5 Starts scrolling at a distance from the edge of text area 2021-01-21 19:15:03 +08:00
Salty Panda e804f188ef Remove redundant flag 2021-01-21 11:30:13 +01:00
Kelenius e4db7cf7a9 Merge branch 'master' into LetMeEatThisFetusLater 2021-01-21 13:22:40 +03:00
Salty Panda f2b7f7cce7 Add longest side to Staff od the Magi 2021-01-21 11:21:41 +01:00
Kelenius d98df6c88f Cloning vats now stop spoiling 2021-01-21 13:14:11 +03:00
Salty Panda 885bb181e5 fix Floating Disk duration increment on lvl-up 2021-01-21 10:47:34 +01:00
Binrui Dong 47123382c4 Fix NPC dropping laser finger pseudo item 2021-01-21 00:23:03 -05:00
Binrui Dong a4ba80dbf6 Fix NPC name duplication in withdrawing bionic weapon message 2021-01-21 00:19:45 -05:00
Fris0uman d7f2574e92 Update MSXotto+ 21-01-20 2021-01-20 22:35:09 +01:00
Jamuro-g a9f28bca04 Update skill.cpp 2021-01-20 21:41:44 +01:00
Fris0uman a1dbfe6bbf Update Chibi Ultica 2021-01-20 2021-01-20 18:53:32 +01:00
Ryan7251 1d7609a42e [Magiclysm] Summon wolf druid spell (#46860)
* Files for wolf summon

* Delete recipe_books.json

* Delete spellbooks.json

* Delete itemgroups.json

* druid.json file for wolf summon

* spell scroll for wolf summon

* spellbook table for wolf summon

* Update data/mods/Magiclysm/Spells/druid.json

Co-authored-by: Binrui Dong <brett.browning.dong@gmail.com>

* Update data/mods/Magiclysm/Spells/druid.json

Co-authored-by: Binrui Dong <brett.browning.dong@gmail.com>

* Update data/mods/Magiclysm/Spells/druid.json

Co-authored-by: Binrui Dong <brett.browning.dong@gmail.com>

* Update data/mods/Magiclysm/Spells/druid.json

changed the word wolfs to wolves

Co-authored-by: actual-nh <74678550+actual-nh@users.noreply.github.com>

* Update data/mods/Magiclysm/Spells/druid.json

Made damage_increment 0.08

Co-authored-by: actual-nh <74678550+actual-nh@users.noreply.github.com>

* Update data/mods/Magiclysm/items/spell_scrolls.json

Changed wolfs to wolves

Co-authored-by: actual-nh <74678550+actual-nh@users.noreply.github.com>

* Update druid.json

Changed base cost and base casting time.

* Update data/mods/Magiclysm/Spells/druid.json

Co-authored-by: Binrui Dong <brett.browning.dong@gmail.com>

* Update data/mods/Magiclysm/items/spell_scrolls.json

Co-authored-by: Binrui Dong <brett.browning.dong@gmail.com>

* Update spellbooks.json

After some testing seems the spell needed to go up in tier i feel tier 2 is a good fit.

* Update druid.json

Changed difficulty to 6 to make spell a little harder to cast

Co-authored-by: Binrui Dong <brett.browning.dong@gmail.com>
Co-authored-by: actual-nh <74678550+actual-nh@users.noreply.github.com>
2021-01-20 12:15:12 -05:00
Zhilkin Serg 37892a8736 Merge pull request #46892 from BrettDong/chess
Fix crash when playing board games
2021-01-20 18:06:46 +03:00
Zhilkin Serg 3acf508393 Merge pull request #46884 from akirashirosawa/translation-items-wont-spoil
added missing translation of string
2021-01-20 18:05:43 +03:00
Zhilkin Serg 858c1ad603 Merge pull request #46893 from BrettDong/minesweeper
Fix minesweeper game revealing wrong blocks
2021-01-20 18:05:26 +03:00
Angela Graves 4d8f8a4df1 Merge pull request #46896 from ToxiClay/reset-factory-state
Add period to CBM reset message
2021-01-20 05:44:07 -06:00
ToxiClay cf2fa00213 Add period to CBM reset message 2021-01-20 05:03:35 -05:00
Salty Panda f7cf6353e7 Removed unnnecessary flag 2021-01-20 09:35:48 +01:00
Binrui Dong 6f2c02c214 Fix minesweeper game revealing wrong blocks 2021-01-20 01:00:30 -05:00
Binrui Dong e02f285e4a Fix crash when playing board games 2021-01-20 00:37:33 -05:00
akirashirosawa a1c1cee1bb added missing translation 2021-01-20 02:15:10 +03:00
Salty Panda 1ac0ee7e65 Add flags according to logic and in-game context 2021-01-19 19:55:56 +01:00
Zhilkin Serg bc739fd304 Merge pull request #46596 from kevingranade/fix-skill-gain-from-crafting
Fix skill gain from crafting
2021-01-19 13:46:01 +03:00
Ivan Zaitsev 6c4a9ebf6b Add RLE compression for json ser/deser of colony<item> (#46837)
* add RLE compression for json ser/deser of colony<item>

Co-authored-by: Jianxiang Wang (王健翔) <qrox@sina.com>
2021-01-19 13:45:22 +03:00
Zhilkin Serg b880d41181 Merge pull request #46843 from Aivean/simplify-submap-rotation
Refactoring: simplify submap rotation logic
2021-01-19 13:44:27 +03:00
Zhilkin Serg 0610476fdb Merge pull request #46829 from Night-Pryanik/spiked_trap_bandits_ambush
Nailboard/caltrops bandits ambush variant
2021-01-19 13:42:41 +03:00
Binrui Dong c0f271e366 Allow selection of more languages (#46865)
* Add new languages in options_manager::get_lang_options()

* Adjust options UI to accommodate longer languages list

* Updated locales in options_manager::update_global_locale()

Reference: https://docs.moodle.org/dev/Table_of_locales
2021-01-19 13:39:30 +03:00
Zhilkin Serg d3cfe1f7b1 Merge pull request #46863 from BrettDong/lcid
Updated Windows Language Code Identifier (LCID) list
2021-01-19 13:39:07 +03:00
Zhilkin Serg ef342cdb62 Merge pull request #46784 from Qrox/damage
Do not show damage info for non-combat AMMO items
2021-01-19 13:38:41 +03:00
Zhilkin Serg 8261e232f6 Merge pull request #46871 from Qrox/hp-bar
Fix monster hp bar turning empty before becoming ':'
2021-01-19 13:37:57 +03:00
Hiram Anderson 2e212b9f7e New England Foods (#45748) 2021-01-19 13:35:40 +03:00
Jamuro-g 057d033ec9 bike racked vehicle fixes (#46625) 2021-01-19 13:35:24 +03:00
Jamuro-g de13514039 Warning added to tailoring jobs with no chance for success (#46858) 2021-01-19 13:35:03 +03:00
Zhilkin Serg 9a759cffd0 Merge pull request #46862 from Ramza13/dis_seg_fault
Fix disassembly seg fault
2021-01-19 13:34:40 +03:00
Zhilkin Serg 2681bd0efb Merge pull request #46868 from wapcaplet/w-gate-pick-log
Add success message when lockpicking a chainlink gate
2021-01-19 13:34:16 +03:00
Angela Graves 785f240fe4 Merge pull request #46869 from Mrzjadacz/Fix-Lighting-Blast
Fix Lighting Blast's range progression
2021-01-19 01:07:25 -06:00
anothersimulacrum 30fc49bc2f Show effects of weariness in effect description
Now that activity levels are publicly shown, these can explain their
effects in detail.
2021-01-18 21:24:09 -08:00
anothersimulacrum fbede0bd66 Add weariness and activity panel displays
Add weariness and activity level display to the stat panel (in all
layouts except the classic one), and a separate weariness panel showing
distance from weariness transition as well as the malus to the current
activity level.

I should rewrite this code to be more generic and reduce duplication.

The basic info is included in the stats panel because it is fairly vital
to know, but the transition and extent of the malus are more reasonable
to not know if you want more space in the sidebar panels.

The names and contextualization for the data could probably use some
work.
2021-01-18 21:24:09 -08:00
anothersimulacrum caf1702a87 Add weariness transition information function
This can be used to create a hp_bar or similar showing how far away the
character is from the next weariness level.
2021-01-18 21:22:21 -08:00
anothersimulacrum 79e8b37c80 Add instantaneous activity tracking to Character
This tracks the highest activity level of the Character for the current
turn and the last turn.

Add hack for cases (such as diagonal moves with circular distances)
to keep the last activity taken in the cache and not clear it.

All of this commit will become obsolete when we have turn-granularity
activity tracking.

This is a little spotty, but it work wells enough.
2021-01-18 21:22:21 -08:00
Binrui Dong fa8cb35257 Fix trap's trigger_weight being ignored if less than 500g 2021-01-18 23:08:24 -05:00
Qrox 412fc4ebec Fix monster hp bar turning empty before becoming ":" 2021-01-19 11:21:11 +08:00
Salty Panda 736cbc7c16 Fix Lighting Blast's range progression 2021-01-18 22:24:16 +01:00
Eric Pierce e5d8a50224 Show success when lockpicking a chainlink gate
Tell the player when a chainlink gate is successfully lockpicked.
2021-01-18 14:13:39 -07:00
Binrui Dong f441ae1b54 Updated Windows Language Code Identifier (LCID) list 2021-01-18 14:55:07 -05:00
Ramza13 0b02ee2c80 Update crafting.cpp 2021-01-18 14:51:09 -05:00
Hirmuolio 59c9b3eeb5 fix reload 2021-01-17 23:12:27 -08:00
actual-nh 7408423738 Make x_chance_bot work right 2021-01-17 23:11:12 -08:00
moxian 4c500a28dc Add a Y/N prompt to picking locks. 2021-01-17 23:08:16 -08:00
Angela Graves 3a731f33bb Merge pull request #46845 from BrettDong/i18n
Routine i18n updates on 18 Jan 2021
2021-01-18 00:19:04 -06:00
Binrui Dong 6e19188afe Routine i18n updates on 18 Jan 2021 2021-01-18 00:58:54 -05:00
Aivean 6bb591b8b7 simplify submap rotation logic (use three swaps without temporary submap), remove obsolete method 2021-01-17 19:03:24 -08:00
Anton Burmistrov 130c8086eb Added nailboard/caltrops bandits ambush variant 2021-01-17 14:54:44 +04:00
Angela Graves ac88c03ac0 Merge pull request #46813 from ToxiClay/seat-material
Replace reference to 'aluminum' in seat and leather seat
2021-01-17 02:41:45 -06:00
RoyBerube b915e10b3e Spelling in Foie Gras description 2021-01-16 23:37:39 -08:00
Andrey Bienkowski d911374ed3 Clarify documentation for "prereqs" and "prereqs2" (#46798)
Co-authored-by: Anton Burmistrov <Night_Pryanik@mail.ru>
2021-01-16 23:37:11 -08:00
Zhilkin Serg 2e8022e818 Merge pull request #46799 from Qrox/vp-cat-ctxt
Properly add context to vehicle part category names
2021-01-17 10:20:25 +03:00
Zhilkin Serg 8b0f80dcfd Merge pull request #46804 from casswedson/sneaky-inhaler
Fix inhalers spawning empty
2021-01-17 10:20:00 +03:00
Jianxiang Wang (王健翔) ec3a3c2282 Fix unwielding charged items does nothing (#46793) 2021-01-16 22:53:58 -08:00
Jianxiang Wang (王健翔) e602a2ad78 Show capacity only once for tools with magazine pockets (#46787) 2021-01-16 22:38:55 -08:00
TOC Generator 20589a3a94 docs: update TOC 2021-01-17 05:27:29 +00:00
Andrey Bienkowski b724486d90 Delete TOC 2021-01-17 05:23:57 +00:00
Andrey Bienkowski c3cc655b21 Optimize TOC generator: only run when needed 2021-01-17 05:23:01 +00:00
TOC Generator f2281d26f7 docs: update TOC 2021-01-17 05:14:11 +00:00
Andrey Bienkowski 79c33ee1fb Update JSON_INFO.md 2021-01-17 04:59:46 +00:00
Andrey Bienkowski 624c3e7acd Add START/END doctoc 2021-01-17 04:55:46 +00:00
Andrey Bienkowski cb8ecf48df Add a github action to update the table of contents 2021-01-17 04:54:30 +00:00
lopho 155256fec0 unify code style, remove unneeded statements 2021-01-17 05:49:57 +01:00
Xenomorph-III 941d5fdfcc Add the basic swimmer zombie to the game (#46783)
* Added the un-mutated swimmer zombie.
* added the base swimmer to monstergroups, linting
* added classic category to basic swimmer zombie
For Dark Days Of The Dead.
Also, this guy shouldn't swim well.
2021-01-16 20:24:00 -08:00
ToxiClay 0813a94bd9 Updates descriptions and adds longest_side to a couple entries 2021-01-16 19:40:31 -08:00
Kevin Granade 3c04baa253 Merge pull request #46756 from int-ua/patch-4
compose.py: sort os.walk, print failing file path
2021-01-16 19:39:50 -08:00
Miloš Rašić 4f0ff330b7 Prevent fire source usage from bailing when a firestarter is found but has no charges (#46735)
* Prevent fire source usage from bailing when a firestarter is found but has no charges

Co-authored-by: Kevin Granade <kevin.granade@gmail.com>
2021-01-16 19:15:32 -08:00
slimeboy460 cfeae38cc3 Merge branch 'master' into master 2021-01-16 15:43:42 -10:00
moxian a0709b67cd Enhance pocket white/blacklist logic. (#46716)
Now you can have
- Whitelist this category + those few items from other categories
- Blacklist this category, except these few items; allow everything else
in addition to what was possible before
2021-01-16 16:12:05 -08:00
ToxiClay c007472a0c Replace reference to 'aluminum' in seat and leather seat 2021-01-16 18:56:27 -05:00
actual-nh 8f6b4611a3 Fix pluralization of ammo. (#46664)
* Fix pluralization of ammo.

A number of the ammo entries had incorrect pluralization, such as
"##mm FMJ" being pluralized as "##mm FMJs" (when FMJ is essentially
acting as an adjective) or "buckshot" to "buckshots" when each round
has multiple pieces of buckshot.

Based off of #46628 by @BrettDong. Hopefully will, as intended in that
PR, reduce translator workload at least a bit.

Co-authored-by: actual-nh <actual-nh@users.noreply.github.com>
Co-authored-by: ToxiClay <ToxiClay@users.noreply.github.com>
2021-01-16 15:23:49 -08:00
casswedson 42654dbfc9 fix inhalers spawning empty (again) 2021-01-16 13:19:55 -05:00
Qrox 2eba84a11a Properly add context to vehicle part category names 2021-01-17 00:53:34 +08:00
Qrox 0dc601b788 Cleanup string input popup code 2021-01-16 22:31:56 +08:00
Qrox 118a3227e6 Clear non-custom string input popup window because IME preview can be printed outside of text area 2021-01-16 22:31:56 +08:00
Qrox a5a93df6a9 Fix cursor movement in overmap note string input popup 2021-01-16 22:31:56 +08:00
Qrox 8808cd1914 Fix cursor movement of string input popup 2021-01-16 22:31:55 +08:00
Angela Graves 0d85973a3b Merge pull request #46754 from int-ua/patch-3
Bugfixes "Fix oxyacetylene being impossible to craft"
2021-01-16 06:13:53 -06:00
Zhilkin Serg 36d1b3e076 Merge pull request #46763 from Aivean/dont-serialize-empty-pockets
Reduce save size by skipping serialization of some item pockets and relic_data
2021-01-16 14:33:42 +03:00
Zhilkin Serg 562f4af16c Merge pull request #46790 from Jamuro-g/removed-contain-lvl1-from-kiddie-spoon
removed containlvl from kiddie spoon
2021-01-16 14:32:05 +03:00
El-Jekozo ef3b08f307 Update for Lighthouse family (#46747) 2021-01-16 14:30:36 +03:00
Zhilkin Serg 36b35159b1 Merge pull request #46791 from Qrox/mapgen-pallete
Reset mapgen palettes when unloading
2021-01-16 12:52:14 +03:00
Qrox 25f9776ef5 Reset mapgen pallete when unloading 2021-01-16 17:37:22 +08:00
Jackledead 0df18e0765 [DinoMod] Adds laser spino and zpino to DinoMod (#46713) 2021-01-16 12:00:12 +03:00
actual-nh 1582f28675 Expand weary (debugging) info (#46757) 2021-01-16 11:58:42 +03:00
Zhilkin Serg 89a68d7c54 Merge pull request #46771 from BrettDong/blood
Random blood type follows real world distribution
2021-01-16 11:57:33 +03:00
Zhilkin Serg 088950fcea Merge pull request #46774 from kevingranade/totally-radical
Clean up some radiation effects
2021-01-16 11:56:51 +03:00
Zhilkin Serg 816ed0a1af Merge pull request #46776 from BrettDong/init-ub
Fix undefined behaviour warning on start up
2021-01-16 11:54:45 +03:00
Zhilkin Serg 53d911f227 Merge pull request #46762 from Jamuro-g/button-exploit
fixed plastic chunk creation exploit
2021-01-16 11:53:29 +03:00
Zhilkin Serg 2e0b71fd4e Merge pull request #46785 from Qrox/align
Correctly align proficiency percentage in player display menu
2021-01-16 11:52:10 +03:00
Zhilkin Serg dd3df1b3af Merge pull request #46778 from mqrause/tool_selection_slowdown_fix
Faster tool selection dialog with lots of items nearby
2021-01-16 11:50:33 +03:00
Jianxiang Wang (王健翔) 281316a173 Prevent debug message when modifying overmap note containing color tags (#46768)
* Prevent debug message when modifying overmap note with color tags

* Fix overmap UI not redrawing correctly after slight resizing

* Replace std::bind with lambda to satisfy clang-tidy
2021-01-16 11:49:32 +03:00
Zhilkin Serg 89911613e0 Merge pull request #46777 from BrettDong/lightmap-ub
Fix out-of-bound access to lightmap array
2021-01-16 11:48:31 +03:00
Jamuro-g 39a4b3295b removed contaninlvl from kiddie spoon 2021-01-16 09:38:07 +01:00
Qrox 68c30b1476 Correctly align proficiency percentage in player display menu 2021-01-16 15:24:31 +08:00
Qrox 0585bbf155 Do not show damage info for non-combat AMMO items 2021-01-16 13:56:11 +08:00
Binrui Dong 70416a10db Random blood type follows real world distribution 2021-01-15 20:47:13 -05:00
mqrause ac3a3899cd move condition so cached crafting inventory can be used 2021-01-15 22:33:42 +01:00
Binrui Dong 74ad6d03f7 Fix out-of-bound access to lightmap array 2021-01-15 15:37:35 -05:00
Kevin Granade be19817830 Clean up some radiation effects 2021-01-15 11:13:20 -08:00
Binrui Dong e22f2bd6cb Fix undefined behaviour warning on start up
src/field_type.cpp:154:28: runtime error: member call on address 0x000120756100 which does not point to an object of type 'generic_factory<field_type>'
0x000120756100: note: object has invalid vptr
 00 00 00 00  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  00 00 00 00
              ^~~~~~~~~~~~~~~~~~~~~~~
              invalid vptr
SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior src/field_type.cpp:154:28 in
src/generic_factory.h:461:17: runtime error: member call on address 0x000120756100 which does not point to an object of type 'generic_factory<field_type>'
0x000120756100: note: object has invalid vptr
 00 00 00 00  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  00 00 00 00
              ^~~~~~~~~~~~~~~~~~~~~~~
              invalid vptr
SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior src/generic_factory.h:461:17 in
src/generic_factory.h:147:32: runtime error: member access within address 0x000120756100 which does not point to an object of type 'const generic_factory<field_type>'
0x000120756100: note: object has invalid vptr
 00 00 00 00  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  00 00 00 00
              ^~~~~~~~~~~~~~~~~~~~~~~
              invalid vptr
SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior src/generic_factory.h:147:32 in
src/generic_factory.h:149:24: runtime error: member call on address 0x000120756100 which does not point to an object of type 'generic_factory<field_type>'
0x000120756100: note: object has invalid vptr
 00 00 00 00  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  00 00 00 00
              ^~~~~~~~~~~~~~~~~~~~~~~
              invalid vptr
SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior src/generic_factory.h:149:24 in
src/generic_factory.h:444:73: runtime error: member access within address 0x000120756100 which does not point to an object of type 'const generic_factory<field_type>'
0x000120756100: note: object has invalid vptr
 00 00 00 00  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  00 00 00 00
              ^~~~~~~~~~~~~~~~~~~~~~~
              invalid vptr
SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior src/generic_factory.h:444:73 in
2021-01-15 13:57:01 -05:00
anothersimulacrum 8041d14b7d Display proficiencies contained in book (#46706)
Maybe it could use some color, but I'm fine without adding that.
2021-01-15 10:31:42 -08:00
Fris0uman fa8e28d4d6 Add bleeding butchery action (#45830)
* Add various blood and give it to creatures
* Droop blood without prompt if you're not actually bleeding the animal
* Show "no blood", "no skin" and "no organs" when they have been removed
Co-authored-by: actual-nh <74678550+actual-nh@users.noreply.github.com>
2021-01-15 10:30:59 -08:00
Serhiy Zahoriya 3a3a063152 Don't sort dirnames as it's not used 2021-01-15 17:46:15 +02:00
Angela Graves 4c417895df Merge pull request #46729 from Ramza13/dis_fix
Fix disassemble
2021-01-15 05:41:53 -06:00
Altair ad3141d465 Add a way to quickly check NPC's stats when assign workers to a camp or update workers jobs (#46718) 2021-01-15 09:59:01 +03:00
NoddingCrow 63e93e4848 Allow Amorphous characters to pass through barred window frames (#46721) 2021-01-15 09:58:41 +03:00
Aivean 0f48f1c555 don't serialize pockets that are empty and whose state was not modified since the creation 2021-01-14 22:48:18 -08:00
Jamuro-g b454ad91a9 fixed plastic chunk creation exploit 2021-01-15 07:46:08 +01:00
OlderMoldberg b50cc33965 Grammar fix in crafting.cpp (#46761)
Quick typo fix
2021-01-15 01:32:14 -05:00
Serhiy Zahoriya 6b36a0705e compose.py: sorted os.walk
Print image filename on failure to load it with Vips
2021-01-15 05:10:31 +02:00
Serhiy Zahoriya 8401f1efca lint 2021-01-15 04:38:51 +02:00
Serhiy Zahoriya 2339c05535 Fix oxyacetylene being impossible to craft 2021-01-15 04:28:35 +02:00
Kevin Granade eba1c36e59 Add more crafting test cases 2021-01-14 16:46:34 -08:00
Kevin Granade 8da59a131c add testing for crafting with proficiencies pre-granted
Also fix tests that were leaking gained proficiencies between tests
2021-01-14 16:46:34 -08:00
Kevin Granade 635fcfb97e Supress crafting failures for fully deterministic crafting tests 2021-01-14 16:46:34 -08:00
Kevin Granade 20923b2df8 Automatically determine tools and components to use for crafting skill levelling test 2021-01-14 16:45:26 -08:00
Kevin Granade bb7701dd1f Cache craft item weight and volume 2021-01-14 16:45:26 -08:00
Kevin Granade 3571afe593 Cache that there are no fires to maintain to avoid pointless re-checking 2021-01-14 16:45:26 -08:00
Kevin Granade f1fdf61cd0 Cache crafting continuation requirements 2021-01-14 16:45:26 -08:00
Kevin Granade 448f6032df Scale focus_pool by 1000 fold and remove random elements of focus drain and recovery 2021-01-14 16:45:26 -08:00
Kevin Granade 239ac1f09b Hide focus_pool behind setters and getters 2021-01-14 16:45:26 -08:00
Kevin Granade f67b7817a8 Elinate rng roll from Character::adjust_for_focus() 2021-01-14 16:45:26 -08:00
Kevin Granade 126fc30ae5 Scale skill train() and _exercise values by 100x 2021-01-14 16:45:26 -08:00
Kevin Granade d04aa16c7d Adjust how skill gain from crafting is calculated
This splits the difference between basing the calculation on the actual time to complete the craft
and the nominal time to complete the craft without factoring in proficiency bonuses and helpers and batching.
2021-01-14 16:45:26 -08:00
Kevin Granade 0e78d4b120 Reduce focus pool proportionally to amount of practice performed 2021-01-14 16:45:26 -08:00
Kevin Granade 0261ddb03c Add tests with assertions about skill gain from crafting 2021-01-14 16:45:26 -08:00
Kevin Granade 93e997dcb6 Add tests around focus handling 2021-01-14 16:45:26 -08:00
Zhilkin Serg ad0e7ae601 Merge pull request #46743 from Qrox/veh-fill
Prevent debug message when filling vehicle tank
2021-01-14 20:50:43 +03:00
Zhilkin Serg 6ec6cd88db Merge pull request #46741 from Qrox/protrude
Fix incorrectly used word in fused monster description
2021-01-14 20:49:22 +03:00
Angela Graves 9483769064 Merge pull request #46731 from mqrause/cosmetic_randomization
Randomize cosmetic traits when creating random characters
2021-01-14 05:48:25 -06:00
Qrox 7baa3a78ef Use a more appropriate word 2021-01-14 19:34:50 +08:00
Qrox 1102c7726e Prevent debug message when filling vehicle tank 2021-01-14 19:34:41 +08:00
mqrause e827a0d5d3 randomize cosmetic traits independent of good traits when creating random characters 2021-01-14 00:42:50 +01:00
Ramza13 19b2919388 Fix disassemble 2021-01-13 17:50:57 -05:00
slimeboy460 48699d218c Update migration.json 2021-01-06 01:22:21 -05:00
slimeboy460 92f589c6ed Merge branch 'master' into master 2021-01-05 19:05:15 -10:00
slimeboy460 59c4140d30 Update data/json/obsolete.json
Co-authored-by: Jianxiang Wang (王健翔) <qrox@sina.com>
2021-01-03 13:32:11 -10:00
slimeboy460 f76caebbc4 Update data/json/recipes/recipe_obsolete.json
Co-authored-by: Jianxiang Wang (王健翔) <qrox@sina.com>
2021-01-02 18:16:50 -10:00
slimeboy460 11f8eacc24 Recipe Obsolete 2021-01-02 23:10:17 -05:00
slimeboy460 409d51d27f Recipe instead of item 2021-01-02 22:28:40 -05:00
slimeboy460 a851fceb48 Obsolete steel knuckles 2021-01-02 21:58:50 -05:00
slimeboy460 7ba1e2cd6d Update data/json/items/migration.json
Co-authored-by: Jianxiang Wang (王健翔) <qrox@sina.com>
2021-01-02 16:44:58 -10:00
slimeboy460 1c5d64ba45 Update data/json/items/migration.json
Co-authored-by: Jianxiang Wang (王健翔) <qrox@sina.com>
2021-01-02 16:44:50 -10:00
slimeboy460 75a1429ce9 Damage per second test 2021-01-02 00:16:10 -05:00
ToxiClay b0c57fca88 Switch ported barrel location from muzzle to barrel 2020-12-28 18:27:39 -05:00
slimeboy460 d6d3e22655 Migration Entry 2020-12-27 00:34:29 -05:00
slimeboy460 c737aa0c2f I have no idea if this will work 2020-12-27 00:28:14 -05:00
slimeboy460 7f8af0e7de Update martialarts.json 2020-12-25 20:01:45 -05:00
slimeboy460 355ba7ec67 Update bashing.json 2020-12-25 19:52:42 -05:00
slimeboy460 536ea1343c Update unarmed_weapons.json 2020-12-25 19:49:24 -05:00
1494 changed files with 746403 additions and 437823 deletions
+14 -7
View File
@@ -7,15 +7,22 @@ clone_folder: C:\Projects\Cataclysm-DDA
cache:
- c:\tools\vcpkg\installed
- c:\Users\appveyor\AppData\Local\vcpkg\
install:
- cmd: cd c:\tools\vcpkg\
- cmd: git pull
- cmd: bootstrap-vcpkg.bat -disableMetrics
- cmd: vcpkg --triplet %PLATFORM%-windows-static install sdl2 sdl2-image sdl2-mixer[dynamic-load,libflac,mpg123,libmodplug,libvorbis] sdl2-ttf gettext --recurse
build:
project: /msvc-full-features/Cataclysm-vcpkg-static.sln
parallel: true
verbosity: minimal
test_script:
- cmd: Cataclysm-test-vcpkg-static-Release-Win32.exe --rng-seed time --min-duration 0.2
skip_commits:
only_commits:
files:
- 'doc/**'
- 'lgtm/**'
- 'tools/**'
- '.github/**'
- '.appveyor.yml'
- 'msvc-full-features/**'
- 'src/**'
- 'tests/**'
branches:
only:
- master
+1
View File
@@ -13,6 +13,7 @@ cert-*,\
-cert-err58-cpp,\
clang-diagnostic-*,\
cppcoreguidelines-slicing,\
google-explicit-constructor,\
llvm-namespace-comment,\
misc-*,\
modernize-*,\
+43
View File
@@ -0,0 +1,43 @@
# options affecting formatting
format:
# how wide to allow formatted cmake files
line_width: 100
# how many spaces to tab for indent
tab_size: 4
# if true, separate flow control names from their parentheses
separate_ctrl_name_with_space: true # currently ignored by cmake-lint
# if true, separate function names from parentheses with a
separate_fn_name_with_space: false # currently ignored by cmake-lint
# if a statement is wrapped to more than one line, than dangle
# the closing parenthesis on its own line.
dangle_parens: false # currently ignored by cmake-lint
# Format command names consistently as 'lower' or 'upper' case
# 'canonical': like in official documentation
command_case: 'canonical' # currently ignored by cmake-lint
# Format keywords consistently as 'lower' or 'upper' case
keyword_case: 'upper' # currently ignored by cmake-lint
# options affecting comment reflow and formatting
markup:
# enable comment markup parsing and reflow
enable_markup: false
# options affecting linter
lint:
# list of lint codes to disable
# C0113: Missing COMMENT in statement which allows it
disabled_codes: ['C0113']
# regular expression pattern describing valid function names
function_pattern: '[a-z_]+'
# regular expression pattern describing valid names for private variables
# WEIRD: strangely named "directory variable name" in lint output
private_var_pattern: '_[0-9A-Z_]+'
# regular expression pattern describing valid names for public variables (strangely named "directories"?)
# WEIRD: strangely named "directory variable name" in lint output
public_var_pattern: '[0-9A-Z]+'
# regular expression pattern describing valid macro names
macro_pattern: '[a-z_]+'
# regular expression pattern describing valid names for function/macro
# arguments and loop variables
argument_var_pattern: '[A-Z][A-Z0-9_]+'
# require no more than this many newlines between statements
max_statement_spacing: 2
+4 -3
View File
@@ -1,9 +1,10 @@
[flake8]
exclude = .git,__pycache__,lang/json
ignore =
# The following errors were present when starting to use flake8; they need
# to be triaged to determine which we should fix and which we should leave
# permanently ignored
# E265 forces comments to have a space after the '#'. We have a bunch of
# optional debugging code commented out this way, and not having a space is
# a convenient way to distinguish it from proper comments. Maybe we should
# delete that code, but unless that happens leaving E265 disabled.
E265,
# W503 and W504 require line breaks after or before binary operators; you
# can only have one enabled
+2 -1
View File
@@ -3,7 +3,7 @@
#In fact, the code "owners" designation is meant to encourage third party
#individuals to contribute to the mod, with the curators notified for reviews.
/data/mods/Aftershock/ @Maleclypse @John-Candlebury
/data/mods/Aftershock/ @Maleclypse @John-Candlebury @Mom-Bun
/data/mods/DinoMod/ @ephemeralstoryteller @damien @LyleSY
/data/mods/Graphical_Overmap/ @Kilvoctu @Larwck
/data/mods/MMA/ @Hymore246
@@ -28,3 +28,4 @@ magic*.h @KorGgenT
/data/json/snippets/ @I-am-Erk
/gfx/ @I-am-Erk
/tools/ @int-ua
/lang/ @BrettDong
+15 -4
View File
@@ -165,16 +165,27 @@ If you are also looking for suggestions then add a [CR] before the title text
It is not required to solve or reference an open issue to file a PR, however, if you do so, you need to explain the problem your PR is solving in full detail.
### All PRs should have a "Summary" line
### All PRs should have a "Summary" section with one line
Summary is a one-line description of your change that will be extracted and added to [the project changelog](../data/changelog.txt).
The format is: ```SUMMARY: Category "description"```
The format is:
```
#### Summary
Category "description"
```
The categories to choose from are: Features, Content, Interface, Mods, Balance, Bugfixes, Performance, Infrastructure, Build, I18N.
Example: ```SUMMARY: Content "Adds new mutation category 'Mouse'"```
Example:
```
#### Summary
Content "Adds new mutation category 'Mouse'"
```
Or, if you want it treated as a minor tweak that doesn't appear in the changelog:
```SUMMARY: None```
```
#### Summary
None
```
See [the Changelog Guidelines](../doc/CHANGELOG_GUIDELINES.md) for explanations of the categories.
+10 -31
View File
@@ -1,45 +1,24 @@
<!-- HOW TO USE: Under each "#### Heading" below, enter information relevant to your pull request.
Leave the headings unless they don't apply to your PR, and remove the comment blocks (surrounded with <!–– and ––>) when you are done.
NOTE: Please grant permission for repository maintainers to edit your PR. It is EXTREMELY common for PRs to be held up due to trivial changes being requested and the author being unavailable to make them.
-->
NOTE: Please grant permission for repository maintainers to edit your PR. It is EXTREMELY common for PRs to be held up due to trivial changes being requested and the author being unavailable to make them. -->
#### Summary
<!-- This section should consist of exactly one line, formatted like this:
SUMMARY: [Category] "[Briefly describe the change in these quotation marks]"
Do not enter the square brackets []. Category must be one of these:
- Features
- Content
- Interface
- Mods
- Balance
- Bugfixes
- Performance
- Infrastructure
- Build
- I18N
Category "Brief description"
<!-- This section should consist of exactly one line, edit the one above.
Category must be one of these: Features, Content, Interface, Mods, Balance, Bugfixes, Performance, Infrastructure, Build, I18N. Or replace the whole line with just the word None for no changelog entry.
For more on the meaning of each category, see:
https://github.com/CleverRaven/Cataclysm-DDA/blob/master/doc/CHANGELOG_GUIDELINES.md
If approved and merged, your summary will be added to the project changelog:
https://github.com/CleverRaven/Cataclysm-DDA/blob/master/data/changelog.txt
-->
https://github.com/CleverRaven/Cataclysm-DDA/blob/master/data/changelog.txt -->
#### Purpose of change
<!-- With a few sentences, describe your reasons for making this change. If it relates to an existing issue, you can link it with a # followed by the Github issue number, like #1234. If your pull request *fully* resolves an issue, include the word "Fix" or "Fixes" before the issue number, like: Fixes #1234.
If there is no related issue, explain here what issue, feature, or other concern you are addressing. If this is a bugfix, include steps to reproduce the original bug, so your fix can be verified.
-->
<!-- With a few sentences, describe your reasons for making this change. If it relates to an existing issue, you can link it with a # followed by the GitHub issue number, like #1234. If your pull request *fully* resolves an issue, include the word "Fix" or "Fixes" before the issue number, like: Fixes #1234.
If there is no related issue, explain here what issue, feature, or other concern you are addressing. If this is a bugfix, include steps to reproduce the original bug, so your fix can be verified. -->
#### Describe the solution
<!-- How does the feature work, or how does this fix a bug? The easier you make your solution to understand, the faster it can get merged. -->
<!-- How does the feature work, or how does this fix a bug? The easier you make your solution to understand, the faster it can get merged. -->
#### Describe alternatives you've considered
@@ -47,8 +26,8 @@ If there is no related issue, explain here what issue, feature, or other concern
#### Testing
<!-- Describe what steps you took to test that this PR resolved the bug or added the feature, and what tests you performed to make sure it didn't cause any regressions. Also include testing suggestions for reviewers and maintainers. -->
<!-- Describe what steps you took to test that this PR resolved the bug or added the feature, and what tests you performed to make sure it didn't cause any regressions. Also include testing suggestions for reviewers and maintainers. -->
#### Additional context
<!-- Add any other context (such as mock-ups, proof of concepts or screenshots) about the feature or bugfix here. -->
<!-- Add any other context (such as mock-ups, proof of concepts or screenshots) about the feature or bugfix here. -->
+1
View File
@@ -26,6 +26,7 @@ exemptLabels:
- "0.E Content Freeze"
- "0.F Feature Freeze"
- "0.F Content Freeze"
- "0.F String Freeze"
# Set to true to ignore issues in a project (defaults to false)
exemptProjects: true
+21
View File
@@ -0,0 +1,21 @@
name: Check printf format string in translations
on:
pull_request:
paths:
- 'lang/po/*.po'
- 'tools/check_po_printf_format.py'
jobs:
check-po-printf:
runs-on: ubuntu-20.04
steps:
- name: "Install dependencies"
run: |
sudo apt-get update
sudo apt-get install python3-pip
sudo pip3 install polib
- name: "Checkout"
uses: actions/checkout@v2
- name: "Check printf format string in translations"
run: ./tools/check_po_printf_format.py
+31
View File
@@ -0,0 +1,31 @@
name: cmake-format linting
on:
push:
branches:
- master
paths:
- '**/CMakeLists.txt'
- '**.cmake'
- '**.cmake.in'
pull_request:
branches:
- master
paths:
- '**/CMakeLists.txt'
- '**.cmake'
- '**.cmake.in'
jobs:
check:
runs-on: ubuntu-latest
steps:
- name: checkout repository
uses: actions/checkout@v1
with:
fetch-depth: 1
- name: install cmakelang
run: python3 -m pip install -U cmakelang
- name: run cmake-lint
run: python3 -m cmakelang.lint CMakeLists.txt src/CMakeLists.txt data/CMakeLists.txt lang/CMakeLists.txt src/chkjson/CMakeLists.txt tools/format/CMakeLists.txt tools/clang-tidy-plugin/CMakeLists.txt cmake_uninstall.cmake.in -c .cmake-format.yml
+49 -7
View File
@@ -37,40 +37,74 @@ jobs:
matrix:
include:
- compiler: g++-9
os: ubuntu-latest
cmake: 0
tiles: 0
test-stage: 1
native: linux64
gold: 1
lto: 1
title: GCC 9, Ubuntu, Curses, LTO
- compiler: g++-7
os: ubuntu-latest
cmake: 1
tiles: 1
native: linux64
title: GCC 7, Ubuntu, Tiles, CMake
- compiler: g++-8
os: ubuntu-latest
cmake: 0
tiles: 1
sanitize: address
native: linux64
title: GCC 8, Ubuntu, Tiles, ASan
- compiler: clang++-9
os: ubuntu-latest
cmake: 0
tiles: 1
sanitize: address,undefined
runs-on: ubuntu-latest
native: linux64
title: Clang 9, Ubuntu, Tiles, ASan, UBSan
- compiler: clang++
os: macos-10.15
cmake: 0
tiles: 1
native: osx
title: Clang 12, macOS 10.15, Tiles
name: ${{ matrix.title }}
runs-on: ${{ matrix.os }}
env:
CMAKE: ${{ matrix.cmake }}
COMPILER: ${{ matrix.compiler }}
OS: ${{ matrix.os }}
TILES: ${{ matrix.tiles }}
SOUND: ${{ matrix.tiles }}
SANITIZE: ${{ matrix.sanitize }}
TEST_STAGE: ${{ matrix.test-stage }}
EXTRA_TEST_OPTS: --error-format=github-action
NATIVE: ${{ matrix.native }}
GOLD: ${{ matrix.gold }}
LTO: ${{ matrix.lto }}
RELEASE: 1
steps:
- name: checkout repository
uses: actions/checkout@v1
with:
fetch-depth: 1
- name: install dependencies
- name: install dependencies (ubuntu)
if: runner.os == 'Linux'
run: |
sudo apt-get update
sudo apt-get install libncursesw5-dev libsdl2-dev libsdl2-ttf-dev libsdl2-image-dev \
libsdl2-mixer-dev libpulse-dev ccache gettext
libsdl2-mixer-dev libpulse-dev ccache gettext parallel
- name: install old GCC (ubuntu)
if: runner.os == 'Linux' && (matrix.compiler == 'g++-7' || matrix.compiler == 'g++-8')
run: |
sudo apt-get install g++-7 g++-8
- name: install dependencies (mac)
if: runner.os == 'macOS'
run: |
HOMEBREW_NO_AUTO_UPDATE=yes HOMEBREW_NO_INSTALL_CLEANUP=yes brew install sdl2 sdl2_image sdl2_ttf sdl2_mixer gettext ccache parallel
- name: prepare
run: bash ./build-scripts/requirements.sh
- name: Get Date
@@ -78,14 +112,22 @@ jobs:
run: |
echo "::set-output name=date::$(/bin/date -u "+%Y%m%d%H%M")"
shell: bash
- name: ccache cache files
- name: ccache cache files (ubuntu)
if: runner.os == 'Linux'
uses: actions/cache@v2
with:
path: ~/.ccache
key: ccache-${{ matrix.compiler }}-${{ steps.get-date.outputs.date }}
key: ccache-linux-${{ matrix.compiler }}-${{ steps.get-date.outputs.date }}
restore-keys: |
ccache-${{ matrix.compiler }}-
ccache-
ccache-linux-${{ matrix.compiler }}-
- name: ccache cache files (mac)
if: runner.os == 'macOS'
uses: actions/cache@v2
with:
path: /Users/runner/Library/Caches/ccache
key: ccache-mac-${{ matrix.compiler }}-${{ steps.get-date.outputs.date }}
restore-keys: |
ccache-mac-${{ matrix.compiler }}-
- uses: ammaraskar/gcc-problem-matcher@master
- name: build and test
run: bash ./build-scripts/build.sh
+1 -1
View File
@@ -12,5 +12,5 @@ jobs:
- name: "Validate SUMMARY"
uses: CleverRaven/pr-validator@master
with:
description-regex: '(\n|^)\s*`{0,3}SUMMARY: +(None|((Features|Content|Interface|Mods|Balance|Bugfixes|Performance|Infrastructure|Build|I18N) +".*"))`{0,3}\s*(\n|$)'
description-regex: '(\n|^)#### Summary\s+`{0,3}(SUMMARY:\s+)?(None|((Features|Content|Interface|Mods|Balance|Bugfixes|Performance|Infrastructure|Build|I18N) +".*"))`{0,3}\s*(\n|$)'
description-regex-flags: 'i'
+151
View File
@@ -0,0 +1,151 @@
name: "Experimental Release"
on:
push:
branches:
- master
jobs:
release:
name: Create Release
runs-on: ubuntu-latest
outputs:
upload_url: ${{ steps.create_release.outputs.upload_url }}
steps:
- uses: actions/checkout@v2
- name: Push tag
id: tag_version
uses: mathieudutour/github-tag-action@v5.5
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
custom_tag: ${{ github.run_number }}
tag_prefix: experimental-
- name: Create release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ steps.tag_version.outputs.new_tag }}
release_name: "Experimental Build #${{ github.run_number }}"
body: |
These are the outputs for the experimental build of commit [${{ github.sha }}](https://github.com/${{ github.repository }}/commit/${{ github.sha }})
draft: false
prerelease: true
builds:
needs: release
strategy:
matrix:
include:
- name: Windows Tiles x64
mxe: x86_64
artifact: windows-tiles-x64
os: ubuntu-latest
ext: zip
content: application/zip
- name: Windows Tiles x32
mxe: i686
artifact: windows-tiles-x32
os: ubuntu-latest
ext: zip
content: application/zip
- name: Linux Tiles x64
os: ubuntu-latest
mxe: none
tiles: 1
artifact: linux-tiles-x64
ext: tar.gz
content: application/gzip
- name: linux-curses-x64
os: ubuntu-latest
mxe: none
tiles: 0
artifact: linux-curses-x64
ext: tar.gz
content: application/gzip
- name: osx-curses-x64
os: macos-10.15
mxe: none
tiles: 0
artifact: osx-curses-x64
ext: dmg
content: application/x-apple-diskimage
- name: osx-tiles-x64
os: macos-10.15
mxe: none
tiles: 1
artifact: osx-tiles-x64
ext: dmg
content: application/x-apple-diskimage
name: ${{ matrix.name }}
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- name: Install dependencies (windows)
if: matrix.mxe != 'none'
run: |
sudo apt install astyle autoconf automake autopoint bash bison bzip2 cmake flex gettext git g++ gperf intltool \
libffi-dev libgdk-pixbuf2.0-dev libtool libltdl-dev libssl-dev libxml-parser-perl lzip make mingw-w64 openssl \
p7zip-full patch perl pkg-config python ruby scons sed unzip wget xz-utils g++-multilib libc6-dev-i386 libtool-bin
- name: Install MXE
if: matrix.mxe != 'none'
run: |
sudo apt install software-properties-common lsb-release
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 86B72ED9
sudo add-apt-repository "deb [arch=amd64] https://pkg.mxe.cc/repos/apt `lsb_release -sc` main"
sudo apt update
sudo apt install mxe-{i686,x86-64}-w64-mingw32.static-{sdl2,sdl2-ttf,sdl2-image,sdl2-mixer,gettext}
- name: Install dependencies (Linux)
if: runner.os == 'Linux' && matrix.mxe == 'none'
run: |
sudo apt-get update
sudo apt-get install libncursesw5-dev libsdl2-dev libsdl2-ttf-dev libsdl2-image-dev \
libsdl2-mixer-dev libpulse-dev ccache gettext parallel
- name: Install dependencies (mac)
if: runner.os == 'macOS'
run: |
HOMEBREW_NO_AUTO_UPDATE=yes HOMEBREW_NO_INSTALL_CLEANUP=yes brew install sdl2 sdl2_image sdl2_ttf sdl2_mixer gettext ccache parallel
pip3 install dmgbuild biplist
- name: Build CDDA (linux)
if: runner.os == 'Linux' && matrix.mxe == 'none'
run: |
cat >VERSION.txt <<EOL
build type: ${{ matrix.artifact }}
build number: ${{ github.run_number }}
commit sha: ${{ github.sha }}
commit url: https://github.com/${{ github.repository }}/commit/${{ github.sha }}
EOL
make -j$((`nproc`+0)) TILES=${{ matrix.tiles }} SOUND=${{ matrix.tiles }} RELEASE=1 LOCALIZE=1 LANGUAGES=all BACKTRACE=0 PCH=0 bindist
mv cataclysmdda-0.E.tar.gz cdda-${{ matrix.artifact }}-b${{ github.run_number }}.tar.gz
- name: Build CDDA (windows)
if: matrix.mxe != 'none'
env:
PLATFORM: /usr/lib/mxe/usr/bin/${{ matrix.mxe }}-w64-mingw32.static-
run: |
cat >VERSION.txt <<EOL
build type: ${{ matrix.artifact }}
build number: ${{ github.run_number }}
commit sha: ${{ github.sha }}
commit url: https://github.com/${{ github.repository }}/commit/${{ github.sha }}
EOL
make -j$((`nproc`+0)) CROSS="${PLATFORM}" TILES=1 SOUND=1 RELEASE=1 LOCALIZE=1 LANGUAGES=all BACKTRACE=0 PCH=0 bindist
mv cataclysmdda-0.E.zip cdda-${{ matrix.artifact }}-b${{ github.run_number }}.zip
- name: Build CDDA (osx)
if: runner.os == 'macOS'
run: |
cat >VERSION.txt <<EOL
build type: ${{ matrix.artifact }}
build number: ${{ github.run_number }}
commit sha: ${{ github.sha }}
commit url: https://github.com/${{ github.repository }}/commit/${{ github.sha }}
EOL
make -j3 TILES=${{ matrix.tiles }} SOUND=${{ matrix.tiles }} RELEASE=1 LOCALIZE=1 LANGUAGES=all BACKTRACE=0 PCH=0 dmgdist
mv Cataclysm.dmg cdda-${{ matrix.artifact }}-b${{ github.run_number }}.dmg
- name: Upload release asset
id: upload-release-asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ needs.release.outputs.upload_url }}
asset_path: cdda-${{ matrix.artifact }}-b${{ github.run_number }}.${{ matrix.ext }}
asset_name: cdda-${{ matrix.artifact }}-b${{ github.run_number }}.${{ matrix.ext }}
asset_content_type: ${{ matrix.content }}
+25
View File
@@ -0,0 +1,25 @@
on:
push:
branches:
- master
paths:
- 'doc/JSON_INFO.md'
name: TOC Generator
jobs:
generateTOC:
if: github.repository == 'CleverRaven/Cataclysm-DDA'
name: Update the table of contents
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: npx doctoc doc/JSON_INFO.md --github
- name: Create Pull Request
uses: peter-evans/create-pull-request@v3
with:
commit-message: Update the table of contents
branch: update-toc
title: Update the table of contents in doc/JSON_INFO.md
body: |
```sh
npx doctoc doc/JSON_INFO.md --github
```
+2
View File
@@ -1,5 +1,7 @@
name: "Push translation template"
concurrency: push_transifex
on:
push:
branches:
+1
View File
@@ -134,6 +134,7 @@ Cataclysm.dmg
.idea/
# test executables and generated data
/tests/obj
/tests/cata_test
/tests/line_test
/tests/map_iterator_test
+1 -1
View File
@@ -118,7 +118,7 @@ jobs:
directories:
- $HOME/.ccache
- env: CLANG=clang++ NATIVE=osx OSX_MIN=10.13 TILES=1 SOUND=1 BREWGETTEXT=1
- env: CLANG=clang++ OSX_MIN=10.13 TILES=1 SOUND=1
name: "Xcode 10.2 Make build with Tiles and sound (macOS)"
os: osx
osx_image: xcode10.2
+295 -307
View File
@@ -1,82 +1,68 @@
# Main project build script
cmake_minimum_required(VERSION 3.1.4)
PROJECT(CataclysmDDA)
project(CataclysmDDA)
SET(CMAKE_MODULE_PATH
${CMAKE_MODULE_PATH}
${CMAKE_SOURCE_DIR}/CMakeModules
)
set(CMAKE_MODULE_PATH
${CMAKE_MODULE_PATH}
${CMAKE_SOURCE_DIR}/CMakeModules)
SET(CMAKE_TLS_VERIFY ON)
set(CMAKE_TLS_VERIFY ON)
# Build options
option(TILES "Build graphical tileset version." "OFF")
option(CURSES "Build curses version." "ON")
option(SOUND "Support for in-game sounds & music." "OFF")
option(BACKTRACE "Support for printing stack backtraces on crash" "ON")
option(LIBBACKTRACE "Print backtrace with libbacktrace." "OFF")
option(USE_HOME_DIR "Use user's home directory for save files." "ON")
option(LOCALIZE "Support for language localizations. Also enable UTF support." "ON")
option(LANGUAGES "Compile localization files for specified languages." "")
option(DYNAMIC_LINKING "Use dynamic linking. Or use static to remove MinGW dependency instead." "ON")
option(JSON_FORMAT "Build JSON formatter" "OFF")
option(CATA_CCACHE "Try to find and build with ccache" "ON")
option(TILES "Build graphical tileset version." "OFF")
option(CURSES "Build curses version." "ON")
option(SOUND "Support for in-game sounds & music." "OFF")
option(BACKTRACE "Support for printing stack backtraces on crash" "ON")
option(LIBBACKTRACE "Print backtrace with libbacktrace." "OFF")
option(USE_HOME_DIR "Use user's home directory for save files." "ON")
option(LOCALIZE "Support for language localizations. Also enable UTF support." "ON")
option(LANGUAGES "Compile localization files for specified languages." "")
option(DYNAMIC_LINKING
"Use dynamic linking. Or use static to remove MinGW dependency instead." "ON")
option(JSON_FORMAT "Build JSON formatter" "OFF")
option(CATA_CCACHE "Try to find and build with ccache" "ON")
option(CATA_CLANG_TIDY_PLUGIN "Build Cata's custom clang-tidy plugin" "OFF")
set(CATA_CLANG_TIDY_INCLUDE_DIR "" CACHE STRING "Path to internal clang-tidy headers required for plugin (e.g. ClangTidy.h)")
set(CATA_CLANG_TIDY_INCLUDE_DIR "" CACHE STRING
"Path to internal clang-tidy headers required for plugin (e.g. ClangTidy.h)")
set(CATA_CHECK_CLANG_TIDY "" CACHE STRING "Path to check_clang_tidy.py for plugin tests")
set(GIT_BINARY "" CACHE STRING "Git binary name or path.")
set(PREFIX "" CACHE STRING "Location of Data & GFX directories")
set(GIT_BINARY "" CACHE STRING "Git binary name or path.")
set(PREFIX "" CACHE STRING "Location of Data & GFX directories")
include(CTest)
message(STATUS "${PROJECT} build environment --")
message(STATUS "Build realm is: ${CMAKE_SYSTEM_NAME} ${CMAKE_HOST_SYSTEM_PROCESSOR}")
if (NOT CMAKE_BUILD_TYPE)
set(CMAKE_BUILD_TYPE Debug)
endif ()
add_definitions(-DCMAKE)
include(GetGitRevisionDescription)
git_describe(GIT_VERSION --tags --always --match "[0-9A-Z]*.[0-9A-Z]*")
MESSAGE("\n * Cataclysm: Dark Days Ahead is a turn-based survival game set in a post-apocalyptic world.")
MESSAGE(" _________ __ .__ ")
MESSAGE(" \\_ ___ \\ _____ _/ |_ _____ ____ | | ___.__ ______ _____ ")
MESSAGE(" / \\ \\/ \\__ \\ \\ __\\\\__ \\ _/ ___\\ | | < | | / ___/ / \\ ")
MESSAGE(" \\ \\____ / __ \\_ | | / __ \\_\\ \\___ | |__ \\___ | \\___ \\ | Y Y \\ ")
MESSAGE(" \\______ /\(____ / |__| \(____ / \\___ >|____/ / ____|/____ >|__|_| / ")
MESSAGE(" \\/ \\/ \\/ \\/ \\/ \\/ \\/ ")
MESSAGE(" --= Dark Days Ahead =--")
MESSAGE("\n * https://cataclysmdda.org/\n")
MESSAGE(STATUS "${PROJECT} build environment -- \n")
MESSAGE(STATUS "Build realm is : ${CMAKE_SYSTEM_NAME} ${CMAKE_HOST_SYSTEM_PROCESSOR}")
IF(NOT CMAKE_BUILD_TYPE)
set(CMAKE_BUILD_TYPE Debug)
ENDIF(NOT CMAKE_BUILD_TYPE)
ADD_DEFINITIONS(-DCMAKE)
if (NOT ${GIT_VERSION} MATCHES GIT-NOTFOUND)
string(REPLACE "-NOTFOUND" "" GIT_VERSION ${GIT_VERSION})
FILE(WRITE ${CMAKE_SOURCE_DIR}/src/version.h
"// NOLINT(cata-header-guard)\n\#define VERSION \"${GIT_VERSION}\"\n")
MESSAGE(STATUS "${PROJECT_NAME} build version is : ${GIT_VERSION}\n")
ADD_DEFINITIONS(-DGIT_VERSION)
ELSE (NOT ${GIT_VERSION} MATCHES GIT-NOTFOUND)
MESSAGE("")
ENDIF(NOT ${GIT_VERSION} MATCHES GIT-NOTFOUND)
file(WRITE ${CMAKE_SOURCE_DIR}/src/version.h
"// NOLINT(cata-header-guard)\n\#define VERSION \"${GIT_VERSION}\"\n")
message(STATUS "${PROJECT_NAME} build version is: ${GIT_VERSION}")
add_definitions(-DGIT_VERSION)
endif ()
#OS Check Placeholders. Will be used for BINDIST
IF (${CMAKE_SYSTEM_NAME} MATCHES Linux)
SET(_OS_LINUX_ 1)
ENDIF (${CMAKE_SYSTEM_NAME} MATCHES Linux)
if (${CMAKE_SYSTEM_NAME} MATCHES Linux)
set(_OS_LINUX_ 1)
endif ()
IF (${CMAKE_SYSTEM_NAME} MATCHES FreeBSD)
SET(_OS_FREEBSD_ 1)
ENDIF (${CMAKE_SYSTEM_NAME} MATCHES FreeBSD)
if (${CMAKE_SYSTEM_NAME} MATCHES FreeBSD)
set(_OS_FREEBSD_ 1)
endif ()
IF(${CMAKE_SYSTEM_NAME} MATCHES Darwin)
SET(_OS_DARWIN_ 1)
SET(LOCALIZE OFF)
MESSAGE(STATUS "Disable internationalization on Darwin as it is not supported")
ENDIF(${CMAKE_SYSTEM_NAME} MATCHES Darwin)
if (${CMAKE_SYSTEM_NAME} MATCHES Darwin)
set(_OS_DARWIN_ 1)
set(LOCALIZE OFF)
message(STATUS "Internationalization on Darwin is not supported")
endif ()
include(CheckCXXCompilerFlag)
@@ -87,286 +73,291 @@ include(CheckCXXCompilerFlag)
#SET(CMAKE_SHARED_LIBRARY_C_FLAGS "${CMAKE_SHARED_LIBRARY_C_FLAGS} -m32")
#SET(CMAKE_SHARED_LIBRARY_CXX_FLAGS "${CMAKE_SHARED_LIBRARY_CXX_FLAGS} -m32")
IF (NOT DYNAMIC_LINKING)
SET(CMAKE_FIND_LIBRARY_SUFFIXES ".a;.dll.a")
SET(BUILD_SHARED_LIBRARIES OFF)
if (NOT DYNAMIC_LINKING)
set(CMAKE_FIND_LIBRARY_SUFFIXES ".a;.dll.a")
set(BUILD_SHARED_LIBRARIES OFF)
check_cxx_compiler_flag (-static HAVE_STATIC_FLAG)
IF(HAVE_STATIC_FLAG)
SET(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -static")
ENDIF(HAVE_STATIC_FLAG)
if (HAVE_STATIC_FLAG)
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -static")
endif ()
# Workaround for cmake link library guesser
SET(CMAKE_EXE_LINK_DYNAMIC_C_FLAGS) # remove -Wl,-Bdynamic
SET(CMAKE_EXE_LINK_DYNAMIC_CXX_FLAGS)
SET(CMAKE_SHARED_LIBRARY_C_FLAGS) # remove -fPIC
SET(CMAKE_SHARED_LIBRARY_CXX_FLAGS)
SET(CMAKE_SHARED_LIBRARY_LINK_C_FLAGS) # remove -rdynamic
SET(CMAKE_SHARED_LIBRARY_LINK_CXX_FLAGS)
ELSE (NOT DYNAMIC_LINKING)
IF(MINGW AND NOT CMAKE_CXX_COMPILER_ID MATCHES "Clang")
# Avoid depending on MinGW runtime DLLs
SET(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -static-libgcc -static-libstdc++")
ENDIF(MINGW AND NOT CMAKE_CXX_COMPILER_ID MATCHES "Clang")
ENDIF (NOT DYNAMIC_LINKING)
set(CMAKE_EXE_LINK_DYNAMIC_C_FLAGS) # remove -Wl,-Bdynamic
set(CMAKE_EXE_LINK_DYNAMIC_CXX_FLAGS)
set(CMAKE_SHARED_LIBRARY_C_FLAGS) # remove -fPIC
set(CMAKE_SHARED_LIBRARY_CXX_FLAGS)
set(CMAKE_SHARED_LIBRARY_LINK_C_FLAGS) # remove -rdynamic
set(CMAKE_SHARED_LIBRARY_LINK_CXX_FLAGS)
else ()
if (MINGW AND NOT CMAKE_CXX_COMPILER_ID MATCHES "Clang")
# Avoid depending on MinGW runtime DLLs
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -static-libgcc -static-libstdc++")
endif ()
endif ()
# System specific actions
IF (${CMAKE_SYSTEM_NAME} MATCHES Linux OR ${CMAKE_SYSTEM_NAME} MATCHES FreeBSD)
IF(NOT DATA_PREFIX)
SET( DATA_PREFIX ${CMAKE_INSTALL_PREFIX}/share/cataclysm-dda)
ENDIF(NOT DATA_PREFIX)
IF(NOT LOCALE_DIR)
SET( LOCALE_DIR ${CMAKE_INSTALL_PREFIX}/share/locale)
ENDIF(NOT LOCALE_DIR)
IF(NOT BIN_PREFIX)
SET( BIN_PREFIX ${CMAKE_INSTALL_PREFIX}/bin)
ENDIF(NOT BIN_PREFIX)
IF(NOT DESKTOP_ENTRY_PATH)
SET( DESKTOP_ENTRY_PATH ${CMAKE_INSTALL_PREFIX}/share/applications)
ENDIF(NOT DESKTOP_ENTRY_PATH)
IF(NOT PIXMAPS_ENTRY_PATH)
SET( PIXMAPS_ENTRY_PATH ${CMAKE_INSTALL_PREFIX}/share/icons/hicolor)
ENDIF(NOT PIXMAPS_ENTRY_PATH)
IF(NOT PIXMAPS_UNITY_ENTRY_PATH)
SET( PIXMAPS_UNITY_ENTRY_PATH ${CMAKE_INSTALL_PREFIX}/share/icons/ubuntu-mono-dark)
ENDIF(NOT PIXMAPS_UNITY_ENTRY_PATH)
IF(NOT MANPAGE_ENTRY_PATH)
SET( MANPAGE_ENTRY_PATH ${CMAKE_INSTALL_PREFIX}/share/man)
ENDIF(NOT MANPAGE_ENTRY_PATH)
ENDIF (${CMAKE_SYSTEM_NAME} MATCHES Linux OR ${CMAKE_SYSTEM_NAME} MATCHES FreeBSD)
if (${CMAKE_SYSTEM_NAME} MATCHES Linux OR ${CMAKE_SYSTEM_NAME} MATCHES FreeBSD)
if (NOT DATA_PREFIX)
set(DATA_PREFIX ${CMAKE_INSTALL_PREFIX}/share/cataclysm-dda)
endif ()
if (NOT LOCALE_DIR)
set(LOCALE_DIR ${CMAKE_INSTALL_PREFIX}/share/locale)
endif ()
if (NOT BIN_PREFIX)
set(BIN_PREFIX ${CMAKE_INSTALL_PREFIX}/bin)
endif ()
if (NOT DESKTOP_ENTRY_PATH)
set(DESKTOP_ENTRY_PATH ${CMAKE_INSTALL_PREFIX}/share/applications)
endif ()
if (NOT PIXMAPS_ENTRY_PATH)
set(PIXMAPS_ENTRY_PATH ${CMAKE_INSTALL_PREFIX}/share/icons/hicolor)
endif ()
if (NOT PIXMAPS_UNITY_ENTRY_PATH)
set(PIXMAPS_UNITY_ENTRY_PATH ${CMAKE_INSTALL_PREFIX}/share/icons/ubuntu-mono-dark)
endif ()
if (NOT MANPAGE_ENTRY_PATH)
set(MANPAGE_ENTRY_PATH ${CMAKE_INSTALL_PREFIX}/share/man)
endif ()
endif ()
IF (${CMAKE_SYSTEM_NAME} MATCHES Windows)
IF(NOT DATA_PREFIX)
SET(DATA_PREFIX ${CMAKE_INSTALL_PREFIX})
ENDIF(NOT DATA_PREFIX)
IF(NOT LOCALE_DIR)
SET(LOCALE_DIR ${CMAKE_INSTALL_PREFIX})
ENDIF(NOT LOCALE_DIR)
IF(NOT BIN_PREFIX)
SET(BIN_PREFIX ${CMAKE_INSTALL_PREFIX})
ENDIF(NOT BIN_PREFIX)
ENDIF (${CMAKE_SYSTEM_NAME} MATCHES Windows)
if (${CMAKE_SYSTEM_NAME} MATCHES Windows)
if (NOT DATA_PREFIX)
set(DATA_PREFIX ${CMAKE_INSTALL_PREFIX})
endif ()
if (NOT LOCALE_DIR)
set(LOCALE_DIR ${CMAKE_INSTALL_PREFIX})
endif ()
if (NOT BIN_PREFIX)
set(BIN_PREFIX ${CMAKE_INSTALL_PREFIX})
endif ()
endif ()
MESSAGE(STATUS "${PROJECT_NAME} build options --\n")
message(STATUS "${PROJECT_NAME} build options --")
# Preset variables
IF(NOT LANGUAGES)
if (NOT LANGUAGES)
# English is included to workaround a libintl bug that affects performance
# on MinGW targets. See lang/CMakeList.txt for more information.
SET (LANGUAGES en de es_AR es_ES fr it_IT ja ko pt_BR ru zh_CN zh_TW)
ENDIF(NOT LANGUAGES)
set(LANGUAGES en de es_AR es_ES fr it_IT ja ko pt_BR ru zh_CN zh_TW)
endif ()
IF (GIT_BINARY)
SET(GIT_EXECUTABLE ${GIT_BINARY})
ELSE (GIT_BINARY)
FIND_PACKAGE(Git)
IF (NOT GIT_FOUND)
MESSAGE(WARNING "Git binary not found. Build version will be set to NULL. Install Git package or use -DGIT_BINARY to set path to git binary.")
ENDIF (NOT GIT_FOUND)
ENDIF (GIT_BINARY)
if (GIT_BINARY)
set(GIT_EXECUTABLE ${GIT_BINARY})
else ()
find_package(Git)
if (NOT GIT_FOUND)
message(WARNING
"Git binary not found. Build version will be set to NULL. \
Install Git package or use -DGIT_BINARY to set path to git binary.")
endif ()
endif ()
IF (PREFIX)
ADD_DEFINITIONS(-DPREFIX=${PREFIX})
ENDIF (PREFIX)
if (PREFIX)
add_definitions(-DPREFIX=${PREFIX})
endif ()
# Can't compile curses and tiles build's at same time
IF(TILES)
SET(CURSES OFF)
ENDIF(TILES)
if (TILES)
set(CURSES OFF)
endif ()
# Set build types and display info
IF(CMAKE_BUILD_TYPE STREQUAL Debug)
MESSAGE("\n")
MESSAGE(STATUS "Build ${PROJECT} in development mode --\n")
MESSAGE(STATUS "Binaries will be located in: " ${CMAKE_SOURCE_DIR})
SET(CMAKE_VERBOSE_MAKEFILE ON)
if (CMAKE_BUILD_TYPE STREQUAL Debug)
message(STATUS "Build ${PROJECT} in development mode --")
message(STATUS "Binaries will be located in: " ${CMAKE_SOURCE_DIR})
set(CMAKE_VERBOSE_MAKEFILE ON)
# Since CataclysmDDA does not respect PREFIX for development builds
# and has funny path handlers, we should create resulting Binaries
# in the source directory
SET(CMAKE_RUNTIME_OUTPUT_DIRECTORY
${CMAKE_SOURCE_DIR}
CACHE PATH "Single Directory for all Executables."
)
SET(BIN_PREFIX ${CMAKE_SOURCE_DIR})
ELSE (CMAKE_BUILD_TYPE STREQUAL Debug)
MESSAGE(STATUS "CMAKE_INSTALL_PREFIX : ${CMAKE_INSTALL_PREFIX}")
MESSAGE(STATUS "BIN_PREFIX : ${BIN_PREFIX}")
MESSAGE(STATUS "DATA_PREFIX : ${DATA_PREFIX}")
IF(LOCALIZE)
MESSAGE(STATUS "LOCALE_PATH : ${LOCALE_DIR}")
ENDIF(LOCALIZE)
MESSAGE(STATUS "DESKTOP_ENTRY_PATH : ${DESKTOP_ENTRY_PATH}")
MESSAGE(STATUS "PIXMAPS_ENTRY_PATH : ${PIXMAPS_ENTRY_PATH}")
MESSAGE(STATUS "PIXMAPS_UNITY_ENTRY_PATH : ${PIXMAPS_UNITY_ENTRY_PATH}")
MESSAGE(STATUS "MANPAGE_ENTRY_PATH : ${MANPAGE_ENTRY_PATH}\n")
ADD_DEFINITIONS(-DRELEASE)
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_SOURCE_DIR} CACHE PATH
"Single Directory for all Executables.")
set(BIN_PREFIX ${CMAKE_SOURCE_DIR})
else ()
message(STATUS "CMAKE_INSTALL_PREFIX : ${CMAKE_INSTALL_PREFIX}")
message(STATUS "BIN_PREFIX : ${BIN_PREFIX}")
message(STATUS "DATA_PREFIX : ${DATA_PREFIX}")
if (LOCALIZE)
message(STATUS "LOCALE_PATH : ${LOCALE_DIR}")
endif ()
message(STATUS "DESKTOP_ENTRY_PATH : ${DESKTOP_ENTRY_PATH}")
message(STATUS "PIXMAPS_ENTRY_PATH : ${PIXMAPS_ENTRY_PATH}")
message(STATUS "PIXMAPS_UNITY_ENTRY_PATH : ${PIXMAPS_UNITY_ENTRY_PATH}")
message(STATUS "MANPAGE_ENTRY_PATH : ${MANPAGE_ENTRY_PATH}")
add_definitions(-DRELEASE)
# Use PREFIX as storage of data,gfx, etc.. Useful only on *nix OS.
IF (PREFIX AND NOT WIN32)
ADD_DEFINITIONS(-DDATA_DIR_PREFIX)
ENDIF (PREFIX AND NOT WIN32)
ENDIF (CMAKE_BUILD_TYPE STREQUAL Debug)
if (PREFIX AND NOT WIN32)
add_definitions(-DDATA_DIR_PREFIX)
endif ()
endif ()
MESSAGE(STATUS "GIT_BINARY : ${GIT_EXECUTABLE}")
MESSAGE(STATUS "DYNAMIC_LINKING : ${DYNAMIC_LINKING}")
MESSAGE(STATUS "TILES : ${TILES}")
MESSAGE(STATUS "CURSES : ${CURSES}")
MESSAGE(STATUS "SOUND : ${SOUND}")
MESSAGE(STATUS "BACKTRACE : ${BACKTRACE}")
MESSAGE(STATUS "LOCALIZE : ${LOCALIZE}")
MESSAGE(STATUS "USE_HOME_DIR : ${USE_HOME_DIR}\n")
message(STATUS "GIT_BINARY : ${GIT_EXECUTABLE}")
message(STATUS "DYNAMIC_LINKING : ${DYNAMIC_LINKING}")
message(STATUS "TILES : ${TILES}")
message(STATUS "CURSES : ${CURSES}")
message(STATUS "SOUND : ${SOUND}")
message(STATUS "BACKTRACE : ${BACKTRACE}")
message(STATUS "LOCALIZE : ${LOCALIZE}")
message(STATUS "USE_HOME_DIR : ${USE_HOME_DIR}")
message(STATUS "LANGUAGES : ${LANGUAGES}")
message(STATUS "See doc/COMPILING/COMPILING-CMAKE.md for details and more info --")
MESSAGE(STATUS "LANGUAGES : ${LANGUAGES}\n")
MESSAGE(STATUS "See INSTALL file for details and more info --\n")
IF(MSVC)
if(CMAKE_SIZEOF_VOID_P EQUAL 8)
add_definitions(-D_AMD64_)
else()
add_definitions(-D_X86_)
endif()
ELSE()
SET(CATA_WARNINGS
"-Werror -Wall -Wextra \
-Wformat-signedness \
-Wlogical-op \
-Wmissing-declarations \
-Wmissing-noreturn \
-Wnon-virtual-dtor \
-Wold-style-cast \
-Woverloaded-virtual \
-Wpedantic \
-Wsuggest-override \
-Wunused-macros \
-Wzero-as-null-pointer-constant \
-Wno-unknown-warning-option")
IF (NOT ${CMAKE_SYSTEM_NAME} MATCHES Windows)
SET(CATA_WARNINGS "${CATA_WARNINGS} -Wredundant-decls")
ENDIF()
SET(CATA_OTHER_FLAGS "${CATA_OTHER_FLAGS} -fsigned-char")
if (MSVC)
if (CMAKE_SIZEOF_VOID_P EQUAL 8)
add_definitions(-D_AMD64_)
else ()
add_definitions(-D_X86_)
endif ()
else (MSVC)
set(CATA_WARNINGS
"-Werror -Wall -Wextra \
-Wformat-signedness \
-Wlogical-op \
-Wmissing-declarations \
-Wmissing-noreturn \
-Wnon-virtual-dtor \
-Wold-style-cast \
-Woverloaded-virtual \
-Wpedantic \
-Wsuggest-override \
-Wunused-macros \
-Wzero-as-null-pointer-constant \
-Wno-unknown-warning-option")
if (NOT ${CMAKE_SYSTEM_NAME} MATCHES Windows)
set(CATA_WARNINGS "${CATA_WARNINGS} -Wredundant-decls")
endif ()
set(CATA_OTHER_FLAGS "${CATA_OTHER_FLAGS} -fsigned-char")
# Compact the whitespace in the warning string
string(REGEX REPLACE "[\t ]+" " " CATA_WARNINGS "${CATA_WARNINGS}")
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${CATA_WARNINGS} ${CATA_OTHER_FLAGS}")
SET(CMAKE_CXX_FLAGS_DEBUG "-Og -g")
ENDIF()
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${CATA_WARNINGS} ${CATA_OTHER_FLAGS}")
set(CMAKE_CXX_FLAGS_DEBUG "-Og -g")
endif ()
SET(CMAKE_CXX_STANDARD 14)
set(CMAKE_CXX_STANDARD 14)
# Force out-of-source build
IF(${CMAKE_SOURCE_DIR} STREQUAL ${CMAKE_BINARY_DIR})
MESSAGE(FATAL_ERROR
"This project requires an out of source build. Remove the file 'CMakeCache.txt' found in this directory before continuing, create a separate build
directory and run 'cmake [options] <srcs>' from there.\nSee INSTALL file for details and more info\n"
)
ENDIF(${CMAKE_SOURCE_DIR} STREQUAL ${CMAKE_BINARY_DIR})
if (${CMAKE_SOURCE_DIR} STREQUAL ${CMAKE_BINARY_DIR})
message(FATAL_ERROR
"This project requires an out of source build. \
Remove the file 'CMakeCache.txt' found in this directory before continuing; \
create a separate build directory and run 'cmake [options] <srcs>' from there. \
See doc/COMPILING/COMPILING-CMAKE.md for details and more info.")
endif ()
#SET(THREADS_USE_PTHREADS_WIN32 True)
SET(CMAKE_THREAD_PREFER_PTHREAD True)
FIND_PACKAGE(Threads REQUIRED)
#set(THREADS_USE_PTHREADS_WIN32 True)
set(CMAKE_THREAD_PREFER_PTHREAD True)
find_package(Threads REQUIRED)
# Check for build types and libraries
IF(TILES)
if (TILES)
# Find SDL, SDL_ttf & SDL_image for graphical install
MESSAGE(STATUS "Searching for SDL2 library --")
FIND_PACKAGE(SDL2)
IF(NOT SDL2_FOUND)
MESSAGE(FATAL_ERROR
"This project requires SDL2 to be installed to be compiled in graphical mode. Please install the SDL2 development libraries, or try compiling
without the -DTILES=1 for a text only compilation.\nSee INSTALL file for details and more info\n"
)
ENDIF(NOT SDL2_FOUND)
message(STATUS "Searching for SDL2 library --")
find_package(SDL2)
if (NOT SDL2_FOUND)
message(FATAL_ERROR
"This project requires SDL2 to be installed to compile in graphical mode. \
Please install the SDL2 development libraries, \
or try compiling without -DTILES=1 for a text-only compilation. \
See doc/COMPILING/COMPILING-CMAKE.md for details and more info.")
endif ()
IF (NOT DYNAMIC_LINKING)
# SDL, SDL_Image, SDL_ttf deps are required for static build
MESSAGE(STATUS "Searching for SDL deps libraries --")
FIND_PACKAGE(Freetype REQUIRED)
FIND_PACKAGE(PNG REQUIRED)
FIND_PACKAGE(JPEG REQUIRED)
FIND_PACKAGE(ZLIB REQUIRED)
FIND_PACKAGE(BZip2 REQUIRED)
ENDIF (NOT DYNAMIC_LINKING)
if (NOT DYNAMIC_LINKING)
# SDL, SDL_Image, SDL_ttf deps are required for static build
message(STATUS "Searching for SDL deps libraries --")
find_package(Freetype REQUIRED)
find_package(PNG REQUIRED)
find_package(JPEG REQUIRED)
find_package(ZLIB REQUIRED)
find_package(BZip2 REQUIRED)
endif ()
MESSAGE(STATUS "Searching for SDL2_TTF library --")
FIND_PACKAGE(SDL2_ttf)
IF(NOT SDL2_TTF_FOUND)
MESSAGE(FATAL_ERROR
"This project requires SDL2_ttf to be installed to be compiled in graphical mode. Please install the SDL2_ttf development libraries, or try
compiling without the -DTILES=1 for a text only compilation.\nSee INSTALL file for details and moreinfo\n"
)
ENDIF(NOT SDL2_TTF_FOUND)
message(STATUS "Searching for SDL2_TTF library --")
find_package(SDL2_ttf)
if (NOT SDL2_TTF_FOUND)
message(FATAL_ERROR
"This project requires SDL2_ttf to be installed to compile in graphical mode. \
Please install the SDL2_ttf development libraries, \
or try compiling without -DTILES=1 for a text-only compilation. \
See doc/COMPILING/COMPILING-CMAKE.md for details and more info.")
endif ()
MESSAGE(STATUS "Searching for SDL2_image library --\n")
FIND_PACKAGE(SDL2_image)
IF(NOT SDL2_IMAGE_FOUND)
MESSAGE(FATAL_ERROR
"This project requires SDL2_image to be installed to be compiled in graphical mode. Please install the SDL2_image development libraries, or try
compiling without the -DTILES=1 for a text only compilation.\nSee INSTALL file for details and more info\n"
)
ENDIF(NOT SDL2_IMAGE_FOUND)
ADD_DEFINITIONS(-DTILES)
ENDIF(TILES)
message(STATUS "Searching for SDL2_image library --")
find_package(SDL2_image)
if (NOT SDL2_IMAGE_FOUND)
message(FATAL_ERROR
"This project requires SDL2_image to be installed to compile in graphical mode. \
Please install the SDL2_image development libraries, \
or try compiling without -DTILES=1 for a text-only compilation. \
See doc/COMPILING/COMPILING-CMAKE.md for details and more info.")
endif ()
add_definitions(-DTILES)
endif ()
IF(CURSES)
if (CURSES)
# Find the ncurses library for a text based compile
MESSAGE(STATUS "Searching for Curses library --\n")
SET(CURSES_NEED_NCURSES TRUE)
SET(CURSES_NEED_WIDE TRUE)
FIND_PACKAGE(Curses)
IF(NOT CURSES_FOUND)
MESSAGE(FATAL_ERROR
"This project requires ncurses to be installed to be compiled in text only mode. Please install the ncurses development libraries, or try compiling
with the -DTILES=1 for a graphical compilation.\nSee INSTALL file for details and more info\n"
)
ENDIF(NOT CURSES_FOUND)
ENDIF(CURSES)
message(STATUS "Searching for Curses library --")
set(CURSES_NEED_NCURSES TRUE)
set(CURSES_NEED_WIDE TRUE)
find_package(Curses)
if (NOT CURSES_FOUND)
message(FATAL_ERROR
"This project requires ncurses to be installed to be compiled in text-only mode. \
Please install the ncurses development libraries, \
or try compiling with -DTILES=1 for a graphical compilation. \
See doc/COMPILING/COMPILING-CMAKE.md for details and more info")
endif ()
endif ()
IF(SOUND)
if (SOUND)
# You need TILES to be able to use SOUND
IF(NOT TILES)
MESSAGE(FATAL_ERROR
"You must enable graphical support with -DTILES=1 to be able to enable sound support.\nSee INSTALL file for details and more info\n"
)
ENDIF(NOT TILES)
if (NOT TILES)
message(FATAL_ERROR
"You must enable graphical support with -DTILES=1 \
to be able to enable sound support. \
See doc/COMPILING/COMPILING-CMAKE.md for details and more info.")
endif ()
# Sound requires SDL_mixer library
MESSAGE(STATUS "Searching for SDL2_mixer library --\n")
FIND_PACKAGE(SDL2_mixer)
IF(NOT SDL2_MIXER_FOUND)
MESSAGE(FATAL_ERROR
"You need the SDL2_mixer development library to be able to compile with sound enabled.\nSee INSTALL file for details and more info\n"
)
ENDIF(NOT SDL2_MIXER_FOUND)
ENDIF(SOUND)
message(STATUS "Searching for SDL2_mixer library --")
find_package(SDL2_mixer)
if (NOT SDL2_MIXER_FOUND)
message(FATAL_ERROR
"You need the SDL2_mixer development library \
to be able to compile with sound enabled. \
See doc/COMPILING/COMPILING-CMAKE.md for details and more info.")
endif ()
endif ()
IF(BACKTRACE)
ADD_DEFINITIONS(-DBACKTRACE)
IF(LIBBACKTRACE)
ADD_DEFINITIONS(-DLIBBACKTRACE)
ENDIF(LIBBACKTRACE)
ENDIF(BACKTRACE)
if (BACKTRACE)
add_definitions(-DBACKTRACE)
if (LIBBACKTRACE)
add_definitions(-DLIBBACKTRACE)
endif (LIBBACKTRACE)
endif (BACKTRACE)
# Ok. Now create build and install recipes
IF(LOCALIZE)
IF(WIN32)
FIND_PACKAGE(Libintl)
IF(NOT LIBINTL_FOUND)
MESSAGE(FATAL_ERROR
"You need the libintl development library to be able to compile with Localize support.\nSee INSTALL file for details and more info\n"
)
ENDIF(NOT LIBINTL_FOUND)
FIND_PACKAGE(Iconv)
IF(NOT ICONV_FOUND)
MESSAGE(FATAL_ERROr
"You need the iconv development library to be able to compile with Localize support.\nSee INSTALL file for details and more info\n"
)
ENDIF(NOT ICONV_FOUND)
ENDIF(WIN32)
if (LOCALIZE)
if (WIN32)
find_package(Libintl)
if (NOT LIBINTL_FOUND)
message(FATAL_ERROR
"You need the libintl development library \
to be able to compile with LOCALIZE support. \
See doc/COMPILING/COMPILING-CMAKE.md for details and more info.")
endif ()
find_package(Iconv)
if (NOT ICONV_FOUND)
message(FATAL_ERROR
"You need the iconv development library \
to be able to compile with LOCALIZE support. \
See doc/COMPILING/COMPILING-CMAKE.md for details and more info.")
endif ()
endif ()
add_subdirectory(lang)
ADD_DEFINITIONS(-DLOCALIZE)
ENDIF(LOCALIZE)
add_definitions(-DLOCALIZE)
endif ()
IF(USE_HOME_DIR)
ADD_DEFINITIONS(-DUSE_HOME_DIR)
ENDIF(USE_HOME_DIR)
if (USE_HOME_DIR)
add_definitions(-DUSE_HOME_DIR)
endif ()
add_subdirectory(src)
add_subdirectory(data)
@@ -381,21 +372,18 @@ if (CATA_CLANG_TIDY_PLUGIN)
add_subdirectory(tools/clang-tidy-plugin)
endif()
CONFIGURE_FILE(
"${CMAKE_CURRENT_SOURCE_DIR}/cmake_uninstall.cmake.in"
"${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake"
IMMEDIATE @ONLY
)
configure_file(
"${CMAKE_CURRENT_SOURCE_DIR}/cmake_uninstall.cmake.in"
"${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake"
IMMEDIATE @ONLY)
ADD_CUSTOM_TARGET(uninstall
"${CMAKE_COMMAND}"
-P "${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake"
)
add_custom_target(uninstall
"${CMAKE_COMMAND}"
-P "${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake")
find_program(CCACHE_FOUND ccache)
if(CCACHE_FOUND AND CATA_CCACHE)
if (CCACHE_FOUND AND CATA_CCACHE)
set_property(GLOBAL PROPERTY RULE_LAUNCH_COMPILE ccache)
set_property(GLOBAL PROPERTY RULE_LAUNCH_LINK ccache)
endif()
endif ()
# vim:noet
+2
View File
@@ -10,6 +10,8 @@ PLF List and PLF Colony (src/list.h, src/colony.h) are licensed under the zLib l
getpost (tools/json_tools/format/getpost.h) is licensed under the MIT license, see file for text of license.
libintl-lite is licensed under Boost Software License 1.0. Visit https://www.boost.org/users/license.html to read the license.
libbacktrace is licensed under a BSD license (https://github.com/ianlancetaylor/libbacktrace/blob/master/LICENSE). The full license text is as follows:
# Copyright (C) 2012-2016 Free Software Foundation, Inc.
+80 -32
View File
@@ -55,6 +55,8 @@
# make SANITIZE=address
# Change mapsize (reality bubble size)
# make MAPSIZE=<size>
# Enable the string id debugging helper
# make STRING_ID_DEBUG=1
# Adjust names of build artifacts (for example to allow easily toggling between build types).
# make BUILD_PREFIX="release-"
# Generate a build artifact prefix from the other build flags.
@@ -186,6 +188,21 @@ ifdef MSYSTEM
MSYS2 = 1
endif
ifneq (,$(findstring clang,$(COMPILER)))
CLANG = $(COMPILER)
endif
OS = $(shell uname -s)
ifneq ($(findstring Darwin,$(OS)),)
ifndef NATIVE
NATIVE = osx
endif
ifndef CLANG
CLANG = 1
endif
endif
# Default to disabling clang
ifndef CLANG
CLANG = 0
@@ -235,8 +252,6 @@ ifdef AUTO_BUILD_PREFIX
export BUILD_PREFIX
endif
OS = $(shell uname -s)
# if $(OS) contains 'BSD'
ifneq ($(findstring BSD,$(OS)),)
BSD = 1
@@ -248,6 +263,10 @@ else
CCACHEBIN = ccache
endif
ifeq ($(STRING_ID_DEBUG), 1)
DEFINES += -DCATA_STRING_ID_DEBUGGING
endif
# This sets CXX and so must be up here
ifneq ($(CLANG), 0)
# Allow setting specific CLANG version
@@ -259,9 +278,18 @@ ifneq ($(CLANG), 0)
ifeq ($(NATIVE), osx)
USE_LIBCXX = 1
endif
ifeq ($(BSD), 1)
ifndef USE_LIBCXX
USE_LIBCXX = 1
endif
endif
ifdef USE_LIBCXX
OTHERS += -stdlib=libc++
LDFLAGS += -stdlib=libc++
else
# clang with glibc 2.31+ will cause linking error on math functions
# this is a workaround (see https://github.com/google/filament/issues/2146)
CXXFLAGS += -fno-builtin
endif
ifeq ($(CCACHE), 1)
CXX = CCACHE_CPP2=1 $(CCACHEBIN) $(CROSS)$(CLANGCMD)
@@ -278,9 +306,14 @@ else
endif
# Expand at reference time to avoid recursive reference
OS_COMPILER := $(CXX)
ifneq ($(COMPILER),)
OS_COMPILER := $(COMPILER)
OS_LINKER := $(COMPILER)
else
OS_COMPILER := $(CXX)
OS_LINKER := $(CXX)
endif
# Appears that the default value of $LD is unsuitable on most systems
OS_LINKER := $(CXX)
ifeq ($(CCACHE), 1)
CXX = $(CCACHEBIN) $(CROSS)$(OS_COMPILER)
LD = $(CCACHEBIN) $(CROSS)$(OS_LINKER)
@@ -299,7 +332,7 @@ CXXFLAGS += -ffast-math
LDFLAGS += $(PROFILE)
ifneq ($(SANITIZE),)
SANITIZE_FLAGS := -fsanitize=$(SANITIZE) -fno-sanitize-recover=all
SANITIZE_FLAGS := -fsanitize=$(SANITIZE) -fno-sanitize-recover=all -fno-omit-frame-pointer
CXXFLAGS += $(SANITIZE_FLAGS)
LDFLAGS += $(SANITIZE_FLAGS)
endif
@@ -346,6 +379,7 @@ ifeq ($(RELEASE), 1)
LTOFLAGS += -flto=jobserver -flto-odr-type-merging
endif
endif
LTOFLAGS += -Wodr
CXXFLAGS += $(LTOFLAGS)
# OTHERS += -mmmx -m3dnow -msse -msse2 -msse3 -mfpmath=sse -mtune=native
@@ -450,7 +484,7 @@ ifeq ($(NATIVE), linux64)
TARGETSYSTEM=LINUX
ifdef GOLD
CXXFLAGS += -fuse-ld=gold
LDFLAGS += -fuse-ld=gold
LDFLAGS += -fuse-ld=gold -Wl,--detect-odr-violations
endif
else
# Linux 32-bit
@@ -460,17 +494,29 @@ else
TARGETSYSTEM=LINUX
ifdef GOLD
CXXFLAGS += -fuse-ld=gold
LDFLAGS += -fuse-ld=gold
LDFLAGS += -fuse-ld=gold -Wl,--detect-odr-violations
endif
endif
endif
# OSX
ifeq ($(NATIVE), osx)
ifneq ($(CLANG), 0)
OSX_MIN = 10.7
else
OSX_MIN = 10.5
ifeq ($(OSX_MIN),)
ifneq ($(findstring Darwin,$(OS)),)
OSX_MIN = $(shell sw_vers -productVersion | awk -F '.' '{print $$1 "." $$2}')
else
ifneq ($(CLANG), 0)
ifneq ($(SANITIZE),)
# sanitizers does not function properly (e.g. false positive errors) if OSX_MIN < 10.9
# https://github.com/llvm/llvm-project/blob/release/11.x/compiler-rt/CMakeLists.txt#L183
OSX_MIN = 10.9
else
OSX_MIN = 10.7
endif
else
OSX_MIN = 10.5
endif
endif
endif
DEFINES += -DMACOSX
CXXFLAGS += -mmacosx-version-min=$(OSX_MIN)
@@ -495,15 +541,15 @@ ifeq ($(NATIVE), osx)
LDFLAGS += -L$(LIBSDIR)/gettext/lib
CXXFLAGS += -I$(LIBSDIR)/gettext/include
endif
# recent versions of brew will not allow you to link
ifeq ($(BREWGETTEXT), 1)
# native ARM Homebrew is installed to /opt/homebrew
ifneq ("$(wildcard /opt/homebrew)", "")
LDFLAGS += -L/opt/homebrew/lib
CXXFLAGS += -I/opt/homebrew/include
else
LDFLAGS += -L/usr/local/opt/gettext/lib
CXXFLAGS += -I/usr/local/opt/gettext/include
# link to gettext from Homebrew if it exists
# Homebrew may be installed in /usr/local or /opt/homebrew
ifneq ("$(wildcard /usr/local/opt/gettext)", "")
LDFLAGS += -L/usr/local/opt/gettext/lib
CXXFLAGS += -I/usr/local/opt/gettext/include
else
ifneq ("$(wildcard /opt/homebrew/opt/gettext)", "")
LDFLAGS += -L/opt/homebrew/opt/gettext/lib
CXXFLAGS += -I/opt/homebrew/opt/gettext/include
endif
endif
ifeq ($(MACPORTS), 1)
@@ -754,6 +800,10 @@ ifeq ($(BSD), 1)
ifeq ($(LOCALIZE),1)
LDFLAGS += -lintl -liconv
endif
# libexecinfo, libintl and libiconv may be located in /usr/local on BSD
CXXFLAGS += -I/usr/local/include
LDFLAGS += -L/usr/local/lib
endif
# Global settings for Windows targets (at end)
@@ -878,7 +928,7 @@ ifeq ($(LTO), 1)
endif
endif
all: version $(CHECKS) $(TARGET) $(L10N) $(TESTS) validate-pr
all: version $(CHECKS) $(TARGET) $(L10N) $(TESTS)
@
$(TARGET): $(OBJS)
@@ -900,7 +950,7 @@ $(BUILD_PREFIX)$(TARGET_NAME).a: $(OBJS)
.PHONY: version
version:
@( VERSION_STRING=$(VERSION) ; \
[ -e ".git" ] && GITVERSION=$$( git describe --tags --always --dirty --match "[0-9A-Z]*.[0-9A-Z]*" ) && VERSION_STRING=$$GITVERSION ; \
[ -e ".git" ] && GITVERSION=$$( git describe --tags --always --match "[0-9A-Z]*.[0-9A-Z]*" ) && DIRTYFLAG=$$( [ -z "$$(git diff --numstat | grep -v lang/po/)" ] || echo "-dirty") && VERSION_STRING=$$GITVERSION$$DIRTYFLAG ; \
[ -e "$(SRC_DIR)/version.h" ] && OLDVERSION=$$(grep VERSION $(SRC_DIR)/version.h|cut -d '"' -f2) ; \
if [ "x$$VERSION_STRING" != "x$$OLDVERSION" ]; then printf '// NOLINT(cata-header-guard)\n#define VERSION "%s"\n' "$$VERSION_STRING" | tee $(SRC_DIR)/version.h ; fi \
)
@@ -927,16 +977,13 @@ $(CHKJSON_BIN): $(CHKJSON_SOURCES)
json-check: $(CHKJSON_BIN)
./$(CHKJSON_BIN)
clean: clean-tests clean-object_creator
clean: clean-tests clean-object_creator clean-pch
rm -rf *$(TARGET_NAME) *$(TILES_TARGET_NAME)
rm -rf *$(TILES_TARGET_NAME).exe *$(TARGET_NAME).exe *$(TARGET_NAME).a
rm -rf *obj *objwin
rm -rf *$(BINDIST_DIR) *cataclysmdda-*.tar.gz *cataclysmdda-*.zip
rm -f $(SRC_DIR)/version.h
rm -f $(CHKJSON_BIN)
rm -f pch/*pch.hpp.gch
rm -f pch/*pch.hpp.pch
rm -f pch/*pch.hpp.d
distclean:
rm -rf *$(BINDIST_DIR)
@@ -1107,6 +1154,7 @@ ifdef OSXCROSS
dmg dmg Cataclysm-uncompressed.dmg Cataclysm.dmg
rm Cataclysm-uncompressed.dmg
else
plutil -convert binary1 Cataclysm.app/Contents/Info.plist
dmgbuild -s build-data/osx/dmgsettings.py "Cataclysm DDA" Cataclysm.dmg
endif
@@ -1149,7 +1197,7 @@ endif
style-json: json_blacklist $(JSON_FORMATTER_BIN)
ifndef CROSS
find data -name "*.json" -print0 | grep -v -z -F -f json_blacklist | \
find data gfx -name "*.json" -print0 | grep -v -z -F -f json_blacklist | \
xargs -0 -L 1 $(JSON_FORMATTER_BIN)
else
@echo Cannot run json formatter in cross compiles.
@@ -1180,12 +1228,12 @@ object_creator: version $(BUILD_PREFIX)cataclysm.a
clean-object_creator:
$(MAKE) -C object_creator clean
validate-pr:
ifneq ($(CYGWIN),1)
@build-scripts/validate_pr_in_jenkins
endif
clean-pch:
rm -f pch/*pch.hpp.gch
rm -f pch/*pch.hpp.pch
rm -f pch/*pch.hpp.d
.PHONY: tests check ctags etags clean-tests install lint validate-pr
.PHONY: tests check ctags etags clean-tests clean-object_creator clean-pch install lint
-include $(SOURCES:$(SRC_DIR)/%.cpp=$(DEPDIR)/%.P)
-include ${OBJS:.o=.d}
-1
View File
@@ -12,7 +12,6 @@
/app/jni/SDL2_mixer
/app/jni/SDL2_ttf
/app/jni/libhidapi
/app/jni/libintl-lite
/app/jni/lua
/app/jni/mpg-123
/app/build
Binary file not shown.
Binary file not shown.
+23
View File
@@ -0,0 +1,23 @@
LOCAL_PATH := $(call my-dir)
###########################
#
# libintl-lite shared library
#
###########################
include $(CLEAR_VARS)
LOCAL_MODULE := libintl-lite
LOCAL_C_INCLUDES := $(LOCAL_PATH)
LOCAL_EXPORT_C_INCLUDES := $(LOCAL_C_INCLUDES)
LOCAL_SRC_FILES := libintl.cpp
LOCAL_CPP_FEATURES := exceptions rtti
LOCAL_LDLIBS := -llog
include $(BUILD_SHARED_LIBRARY)
+23
View File
@@ -0,0 +1,23 @@
Boost Software License - Version 1.0 - August 17th, 2003
Permission is hereby granted, free of charge, to any person or organization
obtaining a copy of the software and accompanying documentation covered by
this license (the "Software") to use, reproduce, display, distribute,
execute, and transmit the Software, and to prepare derivative works of the
Software, and to permit third-parties to whom the Software is furnished to
do so, all subject to the following:
The copyright notices in the Software and this entire statement, including
the above license grant, this restriction and the following disclaimer,
must be included in all copies of the Software, in whole or in part, and
all derivative works of the Software, unless such copies or derivative
works are solely in the form of machine-executable object code generated by
a source language processor.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT
SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE
FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE,
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
DEALINGS IN THE SOFTWARE.
@@ -0,0 +1,98 @@
/*
Boost Software License - Version 1.0 - August 17th, 2003
Permission is hereby granted, free of charge, to any person or organization
obtaining a copy of the software and accompanying documentation covered by
this license (the "Software") to use, reproduce, display, distribute,
execute, and transmit the Software, and to prepare derivative works of the
Software, and to permit third-parties to whom the Software is furnished to
do so, all subject to the following:
The copyright notices in the Software and this entire statement, including
the above license grant, this restriction and the following disclaimer,
must be included in all copies of the Software, in whole or in part, and
all derivative works of the Software, unless such copies or derivative
works are solely in the form of machine-executable object code generated by
a source language processor.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT
SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE
FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE,
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
DEALINGS IN THE SOFTWARE.
*/
#ifndef LIBINTL_INTERNAL_MESSAGECATALOG_HPP_
#define LIBINTL_INTERNAL_MESSAGECATALOG_HPP_
#include <algorithm>
#include <string>
namespace libintllite
{
namespace internal
{
class MessageCatalog
{
private:
MessageCatalog( const MessageCatalog & );
MessageCatalog &operator=( const MessageCatalog & );
uint32_t numberOfStrings;
const std::string *sortedOrigStringsArray;
const std::string *translatedStringsArray;
public:
// The ownership of these arrays is transfered to the created message
// catalog object!
// Does not throw exceptions!
MessageCatalog( uint32_t numberOfStrings,
const std::string *sortedOrigStringsArray,
const std::string *translatedStringsArray ) :
numberOfStrings( numberOfStrings ),
sortedOrigStringsArray( sortedOrigStringsArray ),
translatedStringsArray( translatedStringsArray ) {
}
~MessageCatalog() {
delete[] this->sortedOrigStringsArray;
delete[] this->translatedStringsArray;
}
// Returns NULL, if the original string was not found.
// Does not throw exceptions!
const std::string *getTranslatedStrPtr( const std::string &orig ) const {
const std::string *lastSortedOrigStringEndIter
= this->sortedOrigStringsArray + this->numberOfStrings;
const std::string *origStrPtr = std::lower_bound( this->sortedOrigStringsArray,
lastSortedOrigStringEndIter,
orig );
#ifdef __ANDROID__
// Bugfix from j-jorge's branch of libintl-lite: https://github.com/j-jorge/libintl-lite/commit/40e5a41e9b19e3252d348e0548f85e66fa44a79e
// However, libintl-lite does not seem to support plural form strings + translations properly, so I've had to modify the fix further.
// Plural strings are stored as "<singular>NUL<plural>NUL<plural>..." for as many plurals are in the language, eg. Russian has 4, French has 2, Japanese has 1.
// So we only compare the first singular string as per gettext MO files spec here: https://www.gnu.org/software/gettext/manual/html_node/MO-Files.html
// We do this via c_str() which clamps at the first NUL character.
// Later on once we have a match, we will dig out the proper plural translation from this megastring.
if( !origStrPtr || ( origStrPtr == lastSortedOrigStringEndIter ) ||
( std::string( ( *origStrPtr ).c_str() ) != std::string( orig.c_str() ) ) )
#else
if( !origStrPtr || ( origStrPtr == lastSortedOrigStringEndIter ) )
#endif
{
return NULL;
} else {
return &this->translatedStringsArray[origStrPtr - this->sortedOrigStringsArray];
}
}
};
} // namespace internal
} // namespace libintllite
#endif // LIBINTL_INTERNAL_MESSAGECATALOG_HPP_
+222
View File
@@ -0,0 +1,222 @@
/*
Boost Software License - Version 1.0 - August 17th, 2003
Permission is hereby granted, free of charge, to any person or organization
obtaining a copy of the software and accompanying documentation covered by
this license (the "Software") to use, reproduce, display, distribute,
execute, and transmit the Software, and to prepare derivative works of the
Software, and to permit third-parties to whom the Software is furnished to
do so, all subject to the following:
The copyright notices in the Software and this entire statement, including
the above license grant, this restriction and the following disclaimer,
must be included in all copies of the Software, in whole or in part, and
all derivative works of the Software, unless such copies or derivative
works are solely in the form of machine-executable object code generated by
a source language processor.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT
SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE
FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE,
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
DEALINGS IN THE SOFTWARE.
*/
#ifndef LIBINTL_INTERNAL_UTIL_HPP_
#define LIBINTL_INTERNAL_UTIL_HPP_
#if defined(WIN32) || defined(WINCE)
typedef unsigned int uint32_t;
#else
#include <stdint.h>
#endif
namespace libintllite
{
namespace internal
{
// Helper functions for handling numbers and char array conversions:
static inline bool isBigEndian()
{
uint32_t checkNumber = 0x1100;
return ( *reinterpret_cast<const char *>( &checkNumber ) != 0 );
}
static inline uint32_t swapUInt32Bytes( uint32_t number )
{
const char *numberAsCharArray = reinterpret_cast<const char *>( &number );
uint32_t swappedNumber;
char *swappedNumberAsCharArray = reinterpret_cast<char *>( &swappedNumber );
swappedNumberAsCharArray[0] = numberAsCharArray[3];
swappedNumberAsCharArray[1] = numberAsCharArray[2];
swappedNumberAsCharArray[2] = numberAsCharArray[1];
swappedNumberAsCharArray[3] = numberAsCharArray[0];
return swappedNumber;
}
static inline uint32_t charArrayToUInt32( const char uint32CharArray[4] )
{
return *reinterpret_cast<const uint32_t *>( uint32CharArray );
}
static inline bool readUIn32FromFile( FILE *fileHandle, bool needsBeToLeConversion,
uint32_t &outReadUInt32 )
{
char uint32CharArray[4];
if( ( fread( uint32CharArray, 1, 4, fileHandle ) ) != 4 ) {
return false;
}
if( needsBeToLeConversion ) {
outReadUInt32 = swapUInt32Bytes( charArrayToUInt32( uint32CharArray ) );
return true;
} else {
outReadUInt32 = charArrayToUInt32( uint32CharArray );
return true;
}
}
// RAII classes:
template <class T>
class ArrayGurard
{
private:
ArrayGurard( const ArrayGurard & );
ArrayGurard &operator=( const ArrayGurard & );
T *&arrayRef;
bool released;
public:
explicit ArrayGurard( T *&arrayRef ) :
arrayRef( arrayRef ),
released( false ) {
}
~ArrayGurard() {
if( !this->released ) {
delete[] this->arrayRef;
}
}
const T *release() {
this->released = true;
return this->arrayRef;
}
};
class CloseFileHandleGuard
{
private:
CloseFileHandleGuard( const CloseFileHandleGuard & );
CloseFileHandleGuard &operator=( const CloseFileHandleGuard & );
FILE *&fileHandleRef;
public:
explicit CloseFileHandleGuard( FILE *&fileHandleRef ) :
fileHandleRef( fileHandleRef ) {
}
~CloseFileHandleGuard() {
if( this->fileHandleRef ) {
fclose( this->fileHandleRef );
}
}
};
// Helper function to load strings from a .mo file and stores them in a given array
static bool loadMoFileStringsToArray( FILE *moFile,
uint32_t numberOfStrings,
uint32_t stringsTableOffsetFromFileBegin,
bool needsBeToLeConversion,
std::string *outStringsFromMoFileArray )
{
if( fseek( moFile, stringsTableOffsetFromFileBegin, SEEK_SET ) != 0 ) {
return false;
}
uint32_t *stringsLengthsArray = NULL;
ArrayGurard<uint32_t> stringsLengthsArrayGuard( stringsLengthsArray );
stringsLengthsArray = new uint32_t[numberOfStrings];
if( !stringsLengthsArray ) {
return false;
}
uint32_t firstStringOffset;
uint32_t lastStringOffset;
{
uint32_t currentStringLength;
uint32_t currentStringOffset;
for( uint32_t i = 0; i < numberOfStrings; i++ ) {
if( !readUIn32FromFile( moFile, needsBeToLeConversion, currentStringLength ) ) {
return false;
}
if( !readUIn32FromFile( moFile, needsBeToLeConversion, currentStringOffset ) ) {
return false;
}
stringsLengthsArray[i] = currentStringLength;
if( i == 0 ) {
firstStringOffset = currentStringOffset;
}
if( i == ( numberOfStrings - 1 ) ) {
lastStringOffset = currentStringOffset;
}
}
}
{
char *stringCharsArray = NULL;
ArrayGurard<char> stringCharsArrayGuard( stringCharsArray );
uint32_t stringCharsArraySize = lastStringOffset + stringsLengthsArray[numberOfStrings - 1] + 1 -
firstStringOffset;
if( stringCharsArraySize == 0 ) {
return false;
}
if( fseek( moFile, firstStringOffset, SEEK_SET ) != 0 ) {
return false;
}
stringCharsArray = new char[stringCharsArraySize];
if( !stringCharsArray ) {
return false;
}
if( fread( stringCharsArray, 1, stringCharsArraySize, moFile ) != stringCharsArraySize ) {
return false;
}
const char *stringsCharsArrayIter = stringCharsArray;
for( uint32_t i = 0; i < numberOfStrings; i++ ) {
#ifdef __ANDROID__
// Bugfix from j-jorge's branch of libintl-lite: https://github.com/j-jorge/libintl-lite/commit/240f38c005ba9afce9c3c3629d624d904cb09403
const char *currentStrEndIter = stringsCharsArrayIter + stringsLengthsArray[i];
outStringsFromMoFileArray[i] = std::string( stringsCharsArrayIter, currentStrEndIter );
stringsCharsArrayIter = currentStrEndIter + 1 /* skip the NULL char at the end of the string */ ;
#else
const char *currentStrEndIter = stringsCharsArrayIter + stringsLengthsArray[i] + 1;
outStringsFromMoFileArray[i] = std::string( stringsCharsArrayIter, currentStrEndIter );
stringsCharsArrayIter = currentStrEndIter;
#endif
}
}
return true;
}
} // namespace internal
} // namespace libintllite
#endif // LIBINTL_INTERNAL_UTIL_HPP_
+360
View File
@@ -0,0 +1,360 @@
/*
Boost Software License - Version 1.0 - August 17th, 2003
Permission is hereby granted, free of charge, to any person or organization
obtaining a copy of the software and accompanying documentation covered by
this license (the "Software") to use, reproduce, display, distribute,
execute, and transmit the Software, and to prepare derivative works of the
Software, and to permit third-parties to whom the Software is furnished to
do so, all subject to the following:
The copyright notices in the Software and this entire statement, including
the above license grant, this restriction and the following disclaimer,
must be included in all copies of the Software, in whole or in part, and
all derivative works of the Software, unless such copies or derivative
works are solely in the form of machine-executable object code generated by
a source language processor.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT
SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE
FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE,
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
DEALINGS IN THE SOFTWARE.
*/
#include "libintl.h"
#include <map>
#include <string>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#if defined(WIN32) || defined(WINCE)
typedef unsigned int uint32_t;
#else
#include <stdint.h>
#endif
#ifdef __ANDROID__
#include <iostream>
#endif
#include "MessageCatalog.hpp"
#include "Util.hpp"
using namespace std;
using namespace libintllite;
using namespace libintllite::internal;
static char *currentDefaultDomain = NULL;
static map<char *, MessageCatalog *> loadedMessageCatalogPtrsByDomain;
libintl_lite_bool_t loadMessageCatalog( const char *domain, const char *moFilePath )
{
try {
if( sizeof( uint32_t ) != 4 ) {
return LIBINTL_LITE_BOOL_FALSE;
}
if( !moFilePath || !domain ) {
return LIBINTL_LITE_BOOL_FALSE;
}
FILE *moFile = NULL;
CloseFileHandleGuard closeFileHandleGuard( moFile );
moFile = fopen( moFilePath, "rb" );
if( !moFile ) {
return LIBINTL_LITE_BOOL_FALSE;
}
uint32_t magicNumber;
if( !readUIn32FromFile( moFile, false, magicNumber ) ) {
return LIBINTL_LITE_BOOL_FALSE;
}
if( ( magicNumber != 0x950412de ) && ( magicNumber != 0xde120495 ) ) {
return LIBINTL_LITE_BOOL_FALSE;
}
uint32_t fileFormatRevision;
if( !readUIn32FromFile( moFile, false, fileFormatRevision ) ) {
return LIBINTL_LITE_BOOL_FALSE;
}
if( fileFormatRevision != 0 ) {
return LIBINTL_LITE_BOOL_FALSE;
}
bool needsBeToLeConversion = isBigEndian();
uint32_t numberOfStrings;
if( !readUIn32FromFile( moFile, needsBeToLeConversion, numberOfStrings ) ) {
return false;
}
if( numberOfStrings == 0 ) {
return LIBINTL_LITE_BOOL_TRUE;
}
uint32_t offsetOrigTable;
if( !readUIn32FromFile( moFile, needsBeToLeConversion, offsetOrigTable ) ) {
return LIBINTL_LITE_BOOL_FALSE;
}
uint32_t offsetTransTable;
if( !readUIn32FromFile( moFile, needsBeToLeConversion, offsetTransTable ) ) {
return LIBINTL_LITE_BOOL_FALSE;
}
string *sortedOrigStringsArray = NULL;
ArrayGurard<string> sortedOrigStringsArrayGuard( sortedOrigStringsArray );
sortedOrigStringsArray = new string[numberOfStrings];
if( !sortedOrigStringsArray ) {
return LIBINTL_LITE_BOOL_FALSE;
}
if( !loadMoFileStringsToArray( moFile,
numberOfStrings,
offsetOrigTable,
needsBeToLeConversion,
sortedOrigStringsArray ) ) {
return LIBINTL_LITE_BOOL_FALSE;
}
string *translatedStringsArray = NULL;
ArrayGurard<string> translatedStringsArrayGuard( translatedStringsArray );
translatedStringsArray = new string[numberOfStrings];
if( !translatedStringsArray ) {
return LIBINTL_LITE_BOOL_FALSE;
}
if( !loadMoFileStringsToArray( moFile,
numberOfStrings,
offsetTransTable,
needsBeToLeConversion,
translatedStringsArray ) ) {
return LIBINTL_LITE_BOOL_FALSE;
}
MessageCatalog *newMessageCatalogPtr = new MessageCatalog( numberOfStrings,
sortedOrigStringsArray,
translatedStringsArray );
if( !newMessageCatalogPtr ) {
return LIBINTL_LITE_BOOL_FALSE;
}
sortedOrigStringsArrayGuard.release();
translatedStringsArrayGuard.release();
char *domainDup = strdup( domain );
if( !domainDup ) {
return LIBINTL_LITE_BOOL_FALSE;
}
closeLoadedMessageCatalog( domain );
loadedMessageCatalogPtrsByDomain[domainDup] = newMessageCatalogPtr;
return LIBINTL_LITE_BOOL_TRUE;
} catch( ... ) {
return LIBINTL_LITE_BOOL_FALSE;
}
}
void closeLoadedMessageCatalog( const char *domain )
{
if( domain ) {
for( map<char *, MessageCatalog *>::iterator i = loadedMessageCatalogPtrsByDomain.begin();
i != loadedMessageCatalogPtrsByDomain.end();
i++ ) {
if( strcmp( i->first, domain ) == 0 ) {
free( i->first );
delete i->second;
loadedMessageCatalogPtrsByDomain.erase( i );
return;
}
}
}
}
void closeAllLoadedMessageCatalogs()
{
for( map<char *, MessageCatalog *>::iterator i = loadedMessageCatalogPtrsByDomain.begin();
i != loadedMessageCatalogPtrsByDomain.end();
i++ ) {
free( i->first );
delete i->second;
}
loadedMessageCatalogPtrsByDomain.clear();
free( currentDefaultDomain );
currentDefaultDomain = NULL;
}
const char *textdomain( const char *domain )
{
if( domain ) {
char *newDefaultDomain = strdup( domain );
if( !newDefaultDomain ) {
return NULL;
}
free( currentDefaultDomain );
currentDefaultDomain = newDefaultDomain;
return newDefaultDomain;
} else {
return NULL;
}
}
const char *gettext( const char *origStr )
{
return dgettext( NULL, origStr );
}
const char *dgettext( const char *domain, const char *origStr )
{
if( !origStr ) {
return NULL;
}
if( !domain ) {
if( currentDefaultDomain ) {
domain = currentDefaultDomain;
} else {
return origStr;
}
}
const MessageCatalog *msgCat = NULL;
for( map<char *, MessageCatalog *>::iterator i = loadedMessageCatalogPtrsByDomain.begin();
!msgCat && ( i != loadedMessageCatalogPtrsByDomain.end() );
i++ ) {
if( strcmp( i->first, domain ) == 0 ) {
msgCat = i->second;
}
}
if( !msgCat ) {
return origStr;
}
const string *translatedStrPtr = msgCat->getTranslatedStrPtr( origStr );
if( translatedStrPtr ) {
return translatedStrPtr->c_str();
} else {
return origStr;
}
}
const char *ngettext( const char *origStr, const char *origStrPlural, unsigned long n )
{
#ifdef __ANDROID__
try {
// First let's get the translated megastring that contains all the plural translations separated by NUL chars
const char *translatedStr = gettext( origStr );
// Now determine correct plural form to use. This data is described in .PO files "Plural-Forms" metadata.
const char *language = getenv( "LANGUAGE" );
// Bail out if we don't have data, or the result of gettext is the exact same pointer to the source string (so we don't have a translated megastring to look at)
if( !translatedStr || !language || translatedStr == origStr ) {
if( n == 1 ) {
return origStr;
} else {
return origStrPlural;
}
}
int nplurals = 2;
int plural = n != 1;
if( strcmp( language, "en" ) == 0 ) {
nplurals = 2;
plural = ( n != 1 );
} else if( strcmp( language, "fr" ) == 0 ) {
nplurals = 2;
plural = ( n > 1 );
} else if( strcmp( language, "de" ) == 0 ) {
nplurals = 2;
plural = ( n != 1 );
} else if( strcmp( language, "it_IT" ) == 0 ) {
nplurals = 2;
plural = ( n != 1 );
} else if( strcmp( language, "es_AR" ) == 0 ) {
nplurals = 2;
plural = ( n != 1 );
} else if( strcmp( language, "es_ES" ) == 0 ) {
nplurals = 2;
plural = ( n != 1 );
} else if( strcmp( language, "ja" ) == 0 ) {
nplurals = 1;
plural = 0;
} else if( strcmp( language, "ko" ) == 0 ) {
nplurals = 1;
plural = 0;
} else if( strcmp( language, "pt_BR" ) == 0 ) {
nplurals = 2;
plural = ( n > 1 );
} else if( strcmp( language, "pt_PT" ) == 0 ) {
nplurals = 2;
plural = n != 1;
} else if( strcmp( language, "ru" ) == 0 ) {
nplurals = 4;
plural = ( n % 10 == 1 && n % 100 != 11 ? 0 : n % 10 >= 2 && n % 10 <= 4 && ( n % 100 < 12 ||
n % 100 > 14 ) ? 1 : n % 10 == 0 || ( n % 10 >= 5 && n % 10 <= 9 ) || ( n % 100 >= 11 &&
n % 100 <= 14 ) ? 2 : 3 );
} else if( strcmp( language, "zh_CN" ) == 0 ) {
nplurals = 1;
plural = 0;
} else if( strcmp( language, "zh_TW" ) == 0 ) {
nplurals = 1;
plural = 0;
}
// Now we know which plural form to use, move the string pointer past the appropriate # of NUL characters.
// This is a bit scary because it relies on the .MO file always storing the correct number of plurals,
// otherwise we could overrun the string buffer. Seems to work fine though... (nervous laughter)
for( int i = 0; i < plural; ++i ) {
translatedStr += strlen( translatedStr ) + 1; // advance to the start of the next string
}
return translatedStr;
} catch( const std::exception &err ) {
std::cerr << "Error in libintl-lite ngettext(): " << err.what() << std::endl;
if( n == 1 ) {
return origStr;
} else {
return origStrPlural;
}
}
#else
if( n == 1 ) {
return gettext( origStr );
} else {
return gettext( origStrPlural );
}
#endif
}
const char *dngettext( const char *domain, const char *origStr, const char *origStrPlural,
unsigned long n )
{
#ifdef __ANDROID__
// not implemented yet
return NULL;
#else
if( n == 1 ) {
return dgettext( domain, origStr );
} else {
return dgettext( domain, origStrPlural );
}
#endif
}
#ifdef __ANDROID__
libintl_lite_bool_t bindtextdomain( const char *domain, const char *moFilePath )
{
return loadMessageCatalog( domain, moFilePath );
}
libintl_lite_bool_t bind_textdomain_codeset( const char *domain, const char *oFilePath )
{
return LIBINTL_LITE_BOOL_FALSE;
}
#endif
+127
View File
@@ -0,0 +1,127 @@
/*
Boost Software License - Version 1.0 - August 17th, 2003
Permission is hereby granted, free of charge, to any person or organization
obtaining a copy of the software and accompanying documentation covered by
this license (the "Software") to use, reproduce, display, distribute,
execute, and transmit the Software, and to prepare derivative works of the
Software, and to permit third-parties to whom the Software is furnished to
do so, all subject to the following:
The copyright notices in the Software and this entire statement, including
the above license grant, this restriction and the following disclaimer,
must be included in all copies of the Software, in whole or in part, and
all derivative works of the Software, unless such copies or derivative
works are solely in the form of machine-executable object code generated by
a source language processor.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT
SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE
FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE,
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
DEALINGS IN THE SOFTWARE.
*/
#ifndef LIBINTL_HPP_
#define LIBINTL_HPP_
#define LIBINTL_LITE_API
#if (defined(WIN32) || defined(WINCE)) && defined(LIBINTL_LITE_WIN32_SHARED)
#undef LIBINTL_LITE_API
#ifdef LIBINTL_LITE_EXPORTS
#define LIBINTL_LITE_API __declspec(dllexport)
#else
#define LIBINTL_LITE_API __declspec(dllimport)
#endif
#endif
#ifdef __cplusplus
extern "C"
{
#endif
typedef int libintl_lite_bool_t;
#define LIBINTL_LITE_BOOL_TRUE 1
#define LIBINTL_LITE_BOOL_FALSE 0
/**
* Loads a message catalog from a given (GNU-compatible) .mo file.
* Returns true, if the message catalog was loaded successfully and
* false otherwise.
* This function is specific to libintl-lite and serves as a simple
* replacement for bindtextdomain() function of GNU gettext.
* The parameter "domain" must not be NULL!
* This function is NOT thread safe!
* Pay attention to the thread safety remarks of the gettext() function!
*/
LIBINTL_LITE_API libintl_lite_bool_t loadMessageCatalog( const char *domain,
const char *moFilePath );
/**
* Closes a message catalog for the specified domain and releases its obtained resources.
* This function is NOT thread safe!
* Pay attention to the thread safety remarks of the gettext() function!
*/
LIBINTL_LITE_API void closeLoadedMessageCatalog( const char *domain );
/**
* Closes all loaded message catalogs releases their obtained resources.
* This function is NOT thread safe!
* Pay attention to the thread safety remarks of the gettext() function!
*/
LIBINTL_LITE_API void closeAllLoadedMessageCatalogs();
/**
* Sets the default text domain for gettext() / ngettext() calls.
* This function is NOT thread safe!
*/
LIBINTL_LITE_API const char *textdomain( const char *domain );
/**
* Returns a pointer to the NULL-terminated string in the loaded for the default
* message catalog, or origString if origStr is NULL, textdomain() was not called,
* no message catalog for the specified domain is loaded or no translated message
* could be found.
* This function is thread-safe, but loadMessageCatalog(), textdomain(),
* closeLoadedMessageCatalog() or closeAllLoadedMessageCatalogs()
* must not be called at the same time! A returned string in the current
* loaded message catalog will be deleted, if loadMessageCatalog() or
* closeLoadedMessageCatalog() is called for the used domain afterwards!
* Does not perform any character set conversion!
*/
LIBINTL_LITE_API const char *gettext( const char *origStr );
/**
* Works like the gettext() function, but uses the message catalog for a specified domain.
*/
LIBINTL_LITE_API const char *dgettext( const char *domain, const char *origStr );
/**
* Works like the gettext() function, but distinguishes between singular
* and plural form of a message.
* Always returns the suitable singular string, if n == 1, and the plural string
* otherwise, regardless of the language.
*/
LIBINTL_LITE_API const char *ngettext( const char *origStr, const char *origStrPlural,
unsigned long n );
/**
* Works like the ngettext() function, but uses the message catalog for a specified domain.
*/
LIBINTL_LITE_API const char *dngettext( const char *domain, const char *origStr,
const char *origStrPlural, unsigned long n );
#ifdef __ANDROID__
// Two extra signatures required as per: http://blog.stuff-o-matic.com/post/2013/09/07/Porting-a-C-game-to-Android,-the-case-of-Andy-s-Super-Great-Park
LIBINTL_LITE_API libintl_lite_bool_t bindtextdomain( const char *domain, const char *moFilePath );
LIBINTL_LITE_API libintl_lite_bool_t bind_textdomain_codeset( const char *domain,
const char *moFilePath );
#endif
#ifdef __cplusplus
} // extern "C"
#endif
#endif // LIBINTL_HPP_
+1 -5
View File
@@ -4,10 +4,6 @@ include $(CLEAR_VARS)
LOCAL_MODULE := main
SDL_PATH := ../SDL2
LOCAL_C_INCLUDES := $(SDL_PATH)/include
LOCAL_CPP_FEATURES := exceptions rtti
# Add your application source files here...
@@ -18,7 +14,7 @@ LOCAL_SHARED_LIBRARIES := libhidapi SDL2 SDL2_mixer SDL2_image SDL2_ttf libintl-
LOCAL_LDLIBS := -lGLESv1_CM -lGLESv2 -llog
LOCAL_CFLAGS += -DTILES=1 -DSDL_SOUND=1 -DCATA_NO_CPP11_STRING_CONVERSIONS=1 -DLOCALIZE=1 -Wextra -Wall -fsigned-char -ffast-math
LOCAL_CFLAGS += -DTILES=1 -DSDL_SOUND=1 -DBACKTRACE=1 -DLOCALIZE=1 -Wextra -Wall -fsigned-char -ffast-math
LOCAL_LDFLAGS += $(LOCAL_CFLAGS)
@@ -57,4 +57,8 @@ public class CataclysmDDA extends SDLActivity {
public boolean getDefaultSetting(final String settingsName, boolean defaultValue) {
return PreferenceManager.getDefaultSharedPreferences(getApplicationContext()).getBoolean(settingsName, defaultValue);
}
public String getSystemLang() {
return getResources().getConfiguration().locale.toLanguageTag().replace('-', '_');
}
}
@@ -1,6 +1,8 @@
package com.cleverraven.cataclysmdda;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileReader;
import java.io.FileOutputStream;
import java.io.InputStream;
import java.io.IOException;
@@ -14,11 +16,13 @@ import android.app.Activity;
import android.app.Dialog;
import android.app.ProgressDialog;
import android.app.AlertDialog;
import android.content.ContentResolver;
import android.content.Context;
import android.content.Intent;
import android.content.DialogInterface;
import android.content.pm.PackageInfo;
import android.content.res.AssetManager;
import android.net.Uri;
import android.os.*;
import android.preference.PreferenceManager;
import android.util.Log;
@@ -28,7 +32,7 @@ public class SplashScreen extends Activity {
private static final int INSTALL_DIALOG_ID = 0;
private ProgressDialog installDialog;
public CharSequence[] mSettingsNames = { "Software rendering", "Force fullscreen", "Trap Back button" };
public CharSequence[] mSettingsNames;
public boolean[] mSettingsValues = { false, false, true };
private String getVersionName() {
@@ -42,6 +46,49 @@ public class SplashScreen extends Activity {
}
}
private void showCrashAlert() {
String externalFilesDir = getExternalFilesDir(null).getPath();
File crashAlertPrompt = new File(externalFilesDir + "/config/crash.log.prompt");
try {
crashAlertPrompt.delete();
if(crashAlertPrompt.exists()) { // Sometimes .delete() doesn't really delete the file and I don't know why
crashAlertPrompt.getCanonicalFile().delete();
}
} catch(IOException e) {
return;
}
File crashLog = new File(externalFilesDir + "/config/crash.log");
StringBuilder text = new StringBuilder();
text.append(getString(R.string.crashMessage));
text.append("\n\n");
try {
BufferedReader br = new BufferedReader(new FileReader(crashLog));
String line;
while((line = br.readLine()) != null) {
text.append(line);
text.append("\n");
}
br.close();
} catch (IOException e) {
return;
}
final String message = text.toString();
this.runOnUiThread(new Runnable() {
public void run() {
AlertDialog errorAlert = new AlertDialog.Builder(SplashScreen.this)
.setTitle(getString(R.string.crashAlert))
.setCancelable(false)
.setMessage(message)
.setPositiveButton("OK", new DialogInterface.OnClickListener() {
public void onClick(DialogInterface dialog, int id) {
SplashScreen.this.startGameActivity(false);
}
}).create();
errorAlert.show();
}
});
}
@Override
protected void onCreate(Bundle savedInstanceState) {
Log.e(TAG, "onCreate()");
@@ -49,7 +96,14 @@ public class SplashScreen extends Activity {
// Start the game if already installed, otherwise start installing...
if (getVersionName().equals(PreferenceManager.getDefaultSharedPreferences(getApplicationContext()).getString("installed", ""))) {
startGameActivity(false);
// Show an alert box if the game crashed last time
String externalFilesDir = getExternalFilesDir(null).getPath();
File crashAlertPrompt = new File(externalFilesDir + "/config/crash.log.prompt");
if(crashAlertPrompt.exists()) {
showCrashAlert();
} else {
startGameActivity(false);
}
}
else {
new InstallProgramTask().execute();
@@ -145,23 +199,30 @@ public class SplashScreen extends Activity {
}
}).create();
mSettingsNames = new CharSequence[] {
getString(R.string.softwareRendering),
getString(R.string.forceFullscreen),
getString(R.string.trapBackButton)
};
settingsAlert = new AlertDialog.Builder(SplashScreen.this)
.setTitle("Settings")
.setTitle(getString(R.string.settings))
.setMultiChoiceItems(SplashScreen.this.mSettingsNames, SplashScreen.this.mSettingsValues, new DialogInterface.OnMultiChoiceClickListener() {
@Override
public void onClick(DialogInterface dialog, int which, boolean isChecked) {
SplashScreen.this.mSettingsValues[which] = isChecked;
}})
.setCancelable(false)
.setPositiveButton("Start game", new DialogInterface.OnClickListener() {
.setPositiveButton(getString(R.string.startGame), new DialogInterface.OnClickListener() {
public void onClick(DialogInterface dialog, int id) {
for (int i = 0; i < mSettingsNames.length; ++i)
PreferenceManager.getDefaultSharedPreferences(getApplicationContext()).edit().putBoolean(SplashScreen.this.mSettingsNames[i].toString(), SplashScreen.this.mSettingsValues[i]).commit();
PreferenceManager.getDefaultSharedPreferences(getApplicationContext()).edit().putBoolean("Software rendering", SplashScreen.this.mSettingsValues[0]).commit();
PreferenceManager.getDefaultSharedPreferences(getApplicationContext()).edit().putBoolean("Force fullscreen", SplashScreen.this.mSettingsValues[1]).commit();
PreferenceManager.getDefaultSharedPreferences(getApplicationContext()).edit().putBoolean("Trap Back button", SplashScreen.this.mSettingsValues[2]).commit();
SplashScreen.this.startGameActivity(false);
return;
}
})
.setNeutralButton("Show help", new DialogInterface.OnClickListener() {
.setNeutralButton(getString(R.string.showHelp), new DialogInterface.OnClickListener() {
public void onClick(DialogInterface dialog, int id) {
helpAlert.show();
return;
@@ -0,0 +1,15 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="installTitle">Instalando información de juego…</string>
<string name="upgradeTitle">Actualizando información de juego…</string>
<string name="helpTitle">Ayuda y Controles</string>
<string name="helpMessage">\"Deslizar\" para moverse (si tenés apretado aparece el joystick virtual). \"Click\" para confirmar la selección en el menú o Pausar un turno en el juego (mantené apretado para Pausar varios turnos). \"Doble click\" para cancelar o volver en el menú (funciona como la tecla Escape). \"Pellizcar\" para hacer zoom (en el juego). Usá el botón físico \"Volver\" para activar el teclado virtual (mantené apretado para los atajos de teclado).</string>
<string name="softwareRendering">Render por software</string>
<string name="forceFullscreen">Forzar pantalla completa</string>
<string name="trapBackButton">Fijar botón Volver</string>
<string name="settings">Configuración</string>
<string name="startGame">Empezar juego</string>
<string name="showHelp">Mostrar ayuda</string>
<string name="crashAlert">El juego no fue cerrado correctamente la última vez</string>
<string name="crashMessage">El registro del error localizado en ./config/crash.log puede ayudar a los desarrolladores a solucionar errores.</string>
</resources>
@@ -0,0 +1,15 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="installTitle">Instalando los datos del juego...</string>
<string name="upgradeTitle">Actualizando los datos del juego...</string>
<string name="helpTitle">Ayuda &amp; Controles</string>
<string name="helpMessage">\"Deslizar\" para el movimiento direccional (mantenlo presionado para el joystick virtual). \"Toque\" para confirmar la selección en el menú o Pausar un turno en-juego (mantenlo presionado para varios turnos en-juego). \"Toque doble\" para cancelar o ir hacia atrás en los menús (funciona como la tecla Escape). \"Pellizcar\" para zoom dentro/fuera (en-juego). Usa el botón \"Atrás\" físico para mostrar/ocultar el teclado virtual (mantenlo pulsado para alternar los atajos de teclado).</string>
<string name="softwareRendering">Render por software</string>
<string name="forceFullscreen">Forzar pantalla completa</string>
<string name="trapBackButton">Capturar Botón de atrás</string>
<string name="settings">Opciones</string>
<string name="startGame">Comenzar el juego</string>
<string name="showHelp">Mostrar ayuda</string>
<string name="crashAlert">El juego no finalizó correctamente la última vez</string>
<string name="crashMessage">El informe de fallos que se encuentra en ./config/crash.log puede ayudar a los desarrolladores a solucionar los errores del programa. </string>
</resources>
@@ -0,0 +1,15 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="installTitle">ゲームデータをインストール中...</string>
<string name="upgradeTitle">ゲームデータをアップグレード中...</string>
<string name="helpTitle">ヘルプ &amp; 操作</string>
<string name="helpMessage">特定方向にスワイプ(仮想ジョイスティックの場合は長押し)で移動。タップで選択項目の決定と1ターンその場で静止(長押しで数ターン静止)。ダブルタップでキャンセルとメニューに戻る(Escキー機能)。ピンチでズームイン/アウト(ゲーム内画面)。戻るボタンで仮想キーボード切替(長押しでキーボードショートカット切替)。</string>
<string name="softwareRendering">ソフトウェアレンダリング</string>
<string name="forceFullscreen">強制フルスクリーン</string>
<string name="trapBackButton">戻るボタン例外処理</string>
<string name="settings">設定</string>
<string name="startGame">ゲーム開始</string>
<string name="showHelp">ヘルプ表示</string>
<string name="crashAlert">前回のプレイ時にゲームが正常に終了しませんでした</string>
<string name="crashMessage">configフォルダ内のcrash.logに記録されるクラッシュレポートは、開発者がプログラムエラーを解決する役に立つ場合があります。</string>
</resources>
@@ -0,0 +1,15 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="installTitle">Instalowanie danych gry...</string>
<string name="upgradeTitle">Aktualizowanie danych gry...</string>
<string name="helpTitle">Pomoc &amp; sterowanie</string>
<string name="helpMessage">"Przesuń" by sterować w boku (przytrzymaj do wirtualnego joysticka). "Stuknij" by potwierdzić wybór w menu albo spauzować jedną turę w grze (trzymaj by spauzować kilka tur w grze). "Stuknij dwa razy" by anulować albo wrócić do menu (działa jak przycisk Escape). "Szczypnij" by zbliżyć/oddalić (w grze). Użyj fizycznego przycisku "wstecz" by włączyć wirtualną klawiaturę (przytrzymaj by przełączyć skróty klawiszowe).</string>
<string name="softwareRendering">Renderowanie programowe</string>
<string name="forceFullscreen">Wymuś pełny ekran</string>
<string name="trapBackButton">Zablokuj przycisk wstecz</string>
<string name="settings">Ustawienia</string>
<string name="startGame">Zacznij grę</string>
<string name="showHelp">Pokaż pomoc</string>
<string name="crashAlert">Gra nie zamknęła się poprawnie ostatnim razem</string>
<string name="crashMessage">Raport crashu zlokalizowany w ./config/crash.log może pomóc twórcom naprawić błędy programu.</string>
</resources>
@@ -0,0 +1,15 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="installTitle">Установка игровых данных...</string>
<string name="upgradeTitle">Обновление игровых данных...</string>
<string name="helpTitle">Помощь и управление</string>
<string name="helpMessage">Свайп для движения в выбранном направлении (зажать для показа виртуального джойстика). Одно нажатие для подтверждения выбора в меню или паузы на один ход (зажать для паузы на несколько ходов). Двойное нажатие для отмены или выхода из меню (работает как кнопка Escape). Растяните или сведите пальцы на экране для увеличения/уменьшения (в игре). Используйте кнопку \"Назад\" для показа виртуальной клавиатуры (зажмите для отображения «горячих клавиш»).</string>
<string name="softwareRendering">Программный рендеринг</string>
<string name="forceFullscreen">Полный экран</string>
<string name="trapBackButton">Перехват функций кнопки «Назад»</string>
<string name="settings">Настройки</string>
<string name="startGame">Начать игру</string>
<string name="showHelp">Показать подсказки</string>
<string name="crashAlert">В прошлый раз игра завершилась некорректно</string>
<string name="crashMessage">Отчёт об остановке приложения находится в папке ./config/crash.log. Он может помочь разработчикам устранить ошибки в игре.</string>
</resources>
@@ -0,0 +1,24 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="installTitle">正在解压游戏数据…</string>
<string name="upgradeTitle">正在合并游戏数据…</string>
<string name="helpTitle">游戏控制帮助</string>
<string name="helpMessage">[屏幕上滑动]可定向移动([按住]可显示虚拟操纵杆,可在设置中选择关闭)。
[轻触屏幕]可确认菜单中的选项\'或\'在游戏中等待一个回合([长按]可等待几个回合)。
[双击屏幕]可取消当前操作\'或\'返回菜单(类似于Escape键)。
游戏中[双指并拢手势]可放大/缩小视图当前分辨率(仅限开启贴图包状态下)。
[点击系统后退键(手机上的小于号键,在菜单键旁边)]可切出虚拟键盘,按住直至弹窗出现可隐藏/显示下方快捷键栏。
*设置中可绑定四个双指方向滑动快捷键;例双指向下滑动绑定键为\"i\",即可游戏内双指向下滑动打开物品栏。</string>
<string name="softwareRendering">软件渲染
(不可开启)</string>
<string name="forceFullscreen">强制全屏
(开启后不显示通知栏与虚拟键)</string>
<string name="trapBackButton">限制返回
(禁止返回按键退出APP)</string>
<string name="settings">预设
(进入游戏后请到 设置-图形 中修改终端宽高比)</string>
<string name="startGame">载入游戏</string>
<string name="showHelp">查看帮助</string>
<string name="crashAlert">上一次游戏遇到错误异常退出</string>
<string name="crashMessage">日志文件位于Android/data/CataclysmDDA/files/config/crash.log,可有助于开发者解决程序错误。</string>
</resources>
@@ -0,0 +1,13 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="installTitle">正在安裝遊戲資料...</string>
<string name="upgradeTitle">正在更新遊戲資料...</string>
<string name="helpTitle">幫助與控制</string>
<string name="helpMessage">滑動屏幕移動遊戲角色或菜單選項。點擊屏幕確認選擇或在遊戲中休息一回合。雙擊屏幕取消菜單或回退。雙指縮放畫面遠近。點擊系統回退鍵打開虛擬鍵盤。</string>
<string name="softwareRendering">軟件渲染</string>
<string name="forceFullscreen">強制全屏</string>
<string name="trapBackButton">捕捉返回鍵</string>
<string name="settings">設定</string>
<string name="startGame">開始遊戲</string>
<string name="showHelp">顯示幫助</string>
</resources>
@@ -4,4 +4,12 @@
<string name="upgradeTitle">Upgrading game data...</string>
<string name="helpTitle">Help &amp; Controls</string>
<string name="helpMessage">"Swipe" for directional movement (hold for virtual joystick). "Tap" to confirm selection in menu or Pause one turn in-game (hold to Pause several turns in-game). "Double tap" to cancel or go back in menus (works like Escape key). "Pinch" to zoom in/out (in-game). Use hardware "Back" button to toggle virtual keyboard (hold to toggle keyboard shortcuts).</string>
<string name="softwareRendering">Software rendering</string>
<string name="forceFullscreen">Force fullscreen</string>
<string name="trapBackButton">Trap Back button</string>
<string name="settings">Settings</string>
<string name="startGame">Start game</string>
<string name="showHelp">Show help</string>
<string name="crashAlert">The game did not quit properly last time</string>
<string name="crashMessage">The crash report located in ./config/crash.log may help developers troubleshoot program errors.</string>
</resources>
+1 -1
View File
@@ -82,7 +82,7 @@ icon_locations = {
#
# Other color components may be expressed either in the range 0 to 1, or
# as percentages (e.g. 60% is equivalent to 0.6).
background = 'data/osx/dmgback.png'
background = 'build-data/osx/dmgback.png'
show_status_bar = False
show_tab_view = False
+29 -20
View File
@@ -2,16 +2,11 @@
# Build script intended for use in Travis CI and Github workflow
echo "Using bash version $BASH_VERSION"
set -exo pipefail
num_jobs=3
function run_tests
{
# --min-duration shows timing lines for tests with a duration of at least that many seconds.
$WINE "$@" --min-duration 0.2 --use-colour yes --rng-seed time $EXTRA_TEST_OPTS
}
# We might need binaries installed via pip, so ensure that our personal bin dir is on the PATH
export PATH=$HOME/.local/bin:$PATH
@@ -39,6 +34,25 @@ ccache --zero-stats
ccache -M 5G
ccache --show-stats
function run_test
{
set -eo pipefail
test_exit_code=0 sed_exit_code=0 exit_code=0
$WINE $1 --min-duration 0.2 --use-colour yes --rng-seed time $EXTRA_TEST_OPTS "$2" 2>&1 | sed -E 's/^(::(warning|error|debug)[^:]*::)?/\1'"$3"'/' || test_exit_code="${PIPESTATUS[0]}" sed_exit_code="${PIPESTATUS[1]}"
if [ "$test_exit_code" -ne "0" ]
then
echo "$3test exited with code $test_exit_code"
exit_code=1
fi
if [ "$sed_exit_code" -ne "0" ]
then
echo "$3sed exited with code $sed_exit_code"
exit_code=1
fi
return $exit_code
}
export -f run_test
if [ "$CMAKE" = "1" ]
then
bin_path="./"
@@ -151,8 +165,8 @@ then
make -j$num_jobs
cd ..
# Run regular tests
[ -f "${bin_path}cata_test" ] && run_tests "${bin_path}cata_test"
[ -f "${bin_path}cata_test-tiles" ] && run_tests "${bin_path}cata_test-tiles"
[ -f "${bin_path}cata_test" ] && parallel --verbose --linebuffer "run_test $(printf %q "${bin_path}")'/cata_test' {} '('{}')=> '" ::: "crafting_skill_gain" "[slow] ~crafting_skill_gain" "~[slow] ~[.]"
[ -f "${bin_path}cata_test-tiles" ] && parallel --verbose --linebuffer "run_test $(printf %q "${bin_path}")'/cata_test-tiles' {} '('{}')=> '" ::: "crafting_skill_gain" "[slow] ~crafting_skill_gain" "~[slow] ~[.]"
fi
elif [ "$NATIVE" == "android" ]
then
@@ -169,19 +183,14 @@ then
# fills the log with nonsense.
TERM=dumb ./gradlew assembleExperimentalRelease -Pj=$num_jobs -Plocalize=false -Pabi_arm_32=false -Pabi_arm_64=true -Pdeps=/home/travis/build/CleverRaven/Cataclysm-DDA/android/app/deps.zip
else
make -j "$num_jobs" RELEASE=1 CCACHE=1 BACKTRACE=1 CROSS="$CROSS_COMPILATION" LINTJSON=0
make -j "$num_jobs" RELEASE=1 CCACHE=1 CROSS="$CROSS_COMPILATION" LINTJSON=0
if [ "$TRAVIS_OS_NAME" == "osx" ]
export ASAN_OPTIONS=detect_odr_violation=1
export UBSAN_OPTIONS=print_stacktrace=1
parallel --verbose --linebuffer "run_test './tests/cata_test' {} '('{}')=> '" ::: "crafting_skill_gain" "[slow] ~crafting_skill_gain" "~[slow] ~[.]"
if [ -n "$MODS" ]
then
run_tests ./tests/cata_test
else
run_tests ./tests/cata_test &
if [ -n "$MODS" ]
then
run_tests ./tests/cata_test --user-dir=modded $MODS 2>&1 | sed 's/^/MOD> /' &
wait -n
fi
wait -n
parallel --verbose --linebuffer "run_test './tests/cata_test --user-dir=modded '$(printf %q "${MODS}") {} 'Mods-('{}')=> '" ::: "crafting_skill_gain" "[slow] ~crafting_skill_gain" "~[slow] ~[.]"
fi
if [ -n "$TEST_STAGE" ]
@@ -190,7 +199,7 @@ else
# the mod data can be successfully loaded
mods="$(./build-scripts/get_all_mods.py)"
run_tests ./tests/cata_test --user-dir=all_modded --mods="$mods" '~*'
run_test './tests/cata_test --user-dir=all_modded --mods='"${mods}" '~*' ''
fi
fi
ccache --show-stats
+4 -4
View File
@@ -4,19 +4,19 @@
"owner": "cata-catch2",
"pattern": [
{
"regexp": "^(?:.\\[[0-9;]+m)*(?:\\.\\./)*([^:]*):(\\d+): .*FAILED:.*$",
"regexp": "(?:\\(.*\\)=>[\\s\\t]*)(?:.\\[[0-9;]+m)*[\\s\\t]*(?:\\.\\./)*([^:]*):(\\d+): .*FAILED:.*$",
"file": 1,
"line": 2
},
{
"regexp": "^(?:.\\[[0-9;]+m)* (.+)$",
"regexp": "(?:\\(.*\\)=>[\\s\\t]*)(?:.\\[[0-9;]+m)*[\\s\\t]*(.+)$",
"code": 1
},
{
"regexp": "^(?:.\\[[0-9;]+m)*(with expansion|due to a fatal error condition):$"
"regexp": "(?:\\(.*\\)=>[\\s\\t]*)(?:.\\[[0-9;]+m)*[\\s\\t]*(with expansion|due to a fatal error condition):$"
},
{
"regexp": "^(?:.\\[[0-9;]+m)* (.+)$",
"regexp": "(?:\\(.*\\)=>[\\s\\t]*)(?:.\\[[0-9;]+m)*[\\s\\t]*(.+)$",
"message": 1
}
]
+5 -2
View File
@@ -36,6 +36,9 @@ if [[ "$TRAVIS_EVENT_TYPE" == "pull_request" ]]; then
fi
set -x
if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
$travis_retry sudo apt-get --yes install parallel
fi
if [ -n "${CODE_COVERAGE}" ]; then
$travis_retry pip install --user wheel --upgrade
@@ -46,7 +49,7 @@ fi
if [ -n "$CATA_CLANG_TIDY" ]; then
$travis_retry pip install --user wheel --upgrade
$travis_retry pip install --user compiledb lit
$travis_retry pip install --user compiledb 'lit==0.11.1'
fi
# Influenced by https://github.com/zer0main/battleship/blob/master/build/windows/requirements.sh
@@ -87,7 +90,7 @@ if [ -n "${MXE_TARGET}" ]; then
fi
if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
HOMEBREW_NO_AUTO_UPDATE=yes HOMEBREW_NO_INSTALL_CLEANUP=yes brew install sdl2 sdl2_image sdl2_ttf sdl2_mixer gettext ncurses ccache
HOMEBREW_NO_AUTO_UPDATE=yes HOMEBREW_NO_INSTALL_CLEANUP=yes brew install sdl2 sdl2_image sdl2_ttf sdl2_mixer gettext ncurses ccache parallel
fi
if [[ "$NATIVE" == "android" ]]; then
-16
View File
@@ -1,16 +0,0 @@
#!/usr/bin/env bash
if [ -z "$ghprbPullId" ]; then exit 0; fi
allowed_section_titles='Features|Content|Interface|Mods|Balance|Bugfixes|Performance|Infrastructure|Build|I18N'
echo 'Validating Summary line from pull request.'
echo "$ghprbPullLongDescription" | grep -Pi '(^|(\\r)?\\n)\s*`{0,3}SUMMARY: +(None|(('"${allowed_section_titles}"') +\\?".*?\\?"))`{0,3}\s*((\\r)?\\n|$)'
if [ $? -eq 0 ]; then
echo 'Summary looks good.'
exit 0
else
echo 'Invalid Summary line, please provide a summary similar to the following:'
echo 'SUMMARY: Features "Added ability to fly."'
exit 1
fi
+1 -1
View File
@@ -39,7 +39,7 @@ then
BIN=
for bin in cataclysm-tiles cataclysm
do
[ -f "$bin" ] && BIN="$bin" && break
[ -f "$bin" ] && BIN="$bin" break
done
fi
+22 -21
View File
@@ -1,22 +1,23 @@
IF(NOT EXISTS "@CMAKE_CURRENT_BINARY_DIR@/install_manifest.txt")
MESSAGE(FATAL_ERROR "Cannot find install manifest: \"@CMAKE_CURRENT_BINARY_DIR@/install_manifest.txt\"")
ENDIF(NOT EXISTS "@CMAKE_CURRENT_BINARY_DIR@/install_manifest.txt")
if (NOT EXISTS "@CMAKE_CURRENT_BINARY_DIR@/install_manifest.txt")
message(FATAL_ERROR
"Cannot find install manifest: \"@CMAKE_CURRENT_BINARY_DIR@/install_manifest.txt\"")
endif ()
file(READ "@CMAKE_CURRENT_BINARY_DIR@/install_manifest.txt" FILE_LIST)
string(REGEX REPLACE "\n" ";" FILE_LIST "${FILE_LIST}")
foreach (FILE_NAME ${FILE_LIST})
message(STATUS "Uninstalling \"$ENV{DESTDIR}${FILE_NAME}\"")
if (EXISTS "$ENV{DESTDIR}${FILE_NAME}")
exec_program(
"@CMAKE_COMMAND@" ARGS "-E remove \"$ENV{DESTDIR}${FILE_NAME}\""
OUTPUT_VARIABLE RM_OUT
RETURN_VALUE RM_RETVAL)
if ("${RM_RETVAL}" STREQUAL 0)
else ()
message(FATAL_ERROR "Problem when removing \"$ENV{DESTDIR}${FILE_NAME}\"")
endif ()
else ()
message(STATUS "File \"$ENV{DESTDIR}${FILE_NAME}\" does not exist.")
endif ()
endforeach ()
FILE(READ "@CMAKE_CURRENT_BINARY_DIR@/install_manifest.txt" files)
STRING(REGEX REPLACE "\n" ";" files "${files}")
FOREACH(file ${files})
MESSAGE(STATUS "Uninstalling \"$ENV{DESTDIR}${file}\"")
IF(EXISTS "$ENV{DESTDIR}${file}")
EXEC_PROGRAM(
"@CMAKE_COMMAND@" ARGS "-E remove \"$ENV{DESTDIR}${file}\""
OUTPUT_VARIABLE rm_out
RETURN_VALUE rm_retval
)
IF("${rm_retval}" STREQUAL 0)
ELSE("${rm_retval}" STREQUAL 0)
MESSAGE(FATAL_ERROR "Problem when removing \"$ENV{DESTDIR}${file}\"")
ENDIF("${rm_retval}" STREQUAL 0)
ELSE(EXISTS "$ENV{DESTDIR}${file}")
MESSAGE(STATUS "File \"$ENV{DESTDIR}${file}\" does not exist.")
ENDIF(EXISTS "$ENV{DESTDIR}${file}")
ENDFOREACH(file)
+26 -31
View File
@@ -1,39 +1,34 @@
# Cataclysm data files
cmake_minimum_required(VERSION 3.1.4)
SET(CATACLYSM_DATA_DIRS
${CMAKE_SOURCE_DIR}/data/font
${CMAKE_SOURCE_DIR}/data/json
${CMAKE_SOURCE_DIR}/data/mods
${CMAKE_SOURCE_DIR}/data/names
${CMAKE_SOURCE_DIR}/data/raw
${CMAKE_SOURCE_DIR}/data/motd
${CMAKE_SOURCE_DIR}/data/credits
${CMAKE_SOURCE_DIR}/data/title
)
set(CATACLYSM_DATA_DIRS
${CMAKE_SOURCE_DIR}/data/font
${CMAKE_SOURCE_DIR}/data/json
${CMAKE_SOURCE_DIR}/data/mods
${CMAKE_SOURCE_DIR}/data/names
${CMAKE_SOURCE_DIR}/data/raw
${CMAKE_SOURCE_DIR}/data/motd
${CMAKE_SOURCE_DIR}/data/credits
${CMAKE_SOURCE_DIR}/data/title)
IF(SOUND)
SET(CATACLYSM_DATA_DIRS
${CATACLYSM_DATA_DIRS}
${CMAKE_SOURCE_DIR}/data/sound
)
ENDIF(SOUND)
if (SOUND)
set(CATACLYSM_DATA_DIRS
${CATACLYSM_DATA_DIRS}
${CMAKE_SOURCE_DIR}/data/sound)
endif ()
IF(TILES)
SET(CATACLYSM_DATA_DIRS
${CATACLYSM_DATA_DIRS}
${CMAKE_SOURCE_DIR}/gfx
)
ENDIF(TILES)
if (TILES)
set(CATACLYSM_DATA_DIRS
${CATACLYSM_DATA_DIRS}
${CMAKE_SOURCE_DIR}/gfx)
endif ()
SET(CATACLYSM_DATA_FILES
${CMAKE_SOURCE_DIR}/data/changelog.txt
${CMAKE_SOURCE_DIR}/data/cataicon.ico
${CMAKE_SOURCE_DIR}/data/fontdata.json
${CMAKE_SOURCE_DIR}/LICENSE.txt
)
set(CATACLYSM_DATA_FILES
${CMAKE_SOURCE_DIR}/data/changelog.txt
${CMAKE_SOURCE_DIR}/data/cataicon.ico
${CMAKE_SOURCE_DIR}/data/fontdata.json
${CMAKE_SOURCE_DIR}/LICENSE.txt)
IF(RELEASE)
if (RELEASE)
install(DIRECTORY ${CATACLYSM_DATA_DIRS} DESTINATION ${DATA_PREFIX})
install(FILES ${CATACLYSM_DATA_FILES} DESTINATION ${DATA_PREFIX})
ENDIF(RELEASE)
endif ()
+396 -139
View File
@@ -1,7 +1,72 @@
# 0.F (2020-09-01)
# 0.F (2021-04-15)
3974 files changed, 5440251 insertions(+), 3904330 deletions(-)
10,463 commits
~454 contributors
New game entities (core): 4510
Items: 987
228 misc items, 199 books, 196 articles of clothing, 161 guns and gun related items,
151 comestibles, 99 tools, 53 ammunition types
Mapgen: 778
424 overmap terrains, 198 palettes, 62 start locations, 41 city buildings, 25 map extras,
20 overmap specials, 5 overmap locations, 3 region setting
Crafting: 562
223 construction groups, 201 requirements, 60 proficiencies, 50 constructions,
17 recipe groups, 10 recipe categories, 1 construction category
Achievements: 363
115 achievements, 107 event statistics, 100 event transformations, 26 score entries, 15 conducts
Item Traits: 325
171 item groups, 97 materials, 20 ammunition types, 18 ammo effects, 13 tool qualities,
2 vitamins, 3 item actions, 1 fault
Player Traits: 263
144 professions, 41 effect types, 28 skills, 17 mutations, 14 activity types,
4 skill display types, 3 behaviors, 3 movement modes, 3 scent types, 2 morale types,
1 butchery requirement, 1 disease type, 1 mutation types, 1 trait group
NPCs and NPC interactions: 237
255 talk topics, 29 missions, 29 scenarios, 15 npcs, 6 npc classes, 3 factions
Map Traits: 234
149 terrains, 12 weather types, 64 furnitures, 5 gates, 3 field types, 1 terrain transformation
Monsters: 228
151 monster types, 72 harvest entries, 4 species, 1 anatomy entry
Vehicles: 140
80 vehicle parts, 41 vehicles, 12 vehicle part categories, 7 vehicle groups
Magic: 40
23 spells, 7 enchantments, 6 emit definitions, 4 relic definitions
Misc: 363
258 json flags, 104 ascii art, 1 loot zone
New game entities (mods): 3231
Items: 773
179 misc items, 172 books, 161 comestibles, 85 tools, 83 articles of clothing,
65 guns and gun-related items, 21 ammunition types, 7 compact bionic modules
Player traits: 749
273 mutations, 214 trait groups, 96 professions, 64 techniques, 47 scenarios, 21 effect types,
9 martial arts, 8 bionics, 8 start locations, 6 mutation categories, 2 proficiencies, 1 skill
Mapgen: 430
154 item groups, 202 overmap terrains, 39 palettes, 30 overmap specials,
5 city buildings, 2 map extras
Monsters: 406
360 monster types, 32 harvest entries, 11 species, 3 monster attacks
NPCs and NPC interactions: 234
144 talk topics, 59 npc classes, 15 mission definitions, 13 npcs, 3 factions
Map traits: 190
103 terrains, 56 furnitures, 10 terrain transformations,
9 gates, 6 field types, 4 traps, 2 emit definitions
Vehicles: 185
141 vehicle parts, 27 vehicle groups, 17 vehicles
Magic: 155
132 spells, 23 enchantments
Crafting: 48
32 requirements, 7 tool qualities, 5 construction groups, 2 constructions,
1 recipe category, 1 recipe group
Item Traits: 39
20 materials, 11 ammunition types, 8 ammo effects
Achievements: 22
14 achievements, 3 event statistics, 3 event transformations, 2 score entries
## Features:
Added option to randomize INITIAL_DAY.
Adds option to randomize INITIAL_DAY.
Allow vehicles with autopilot to follow you.
Monster factions can unconditionally hate other factions.
Allows mutations to cast spells via enchantments.
@@ -11,42 +76,51 @@ Auto eat and drink from auto-zones during long activities/waiting.
Flyable Helicopters.
Towing vehicles.
User defined height and age.
Add support for json-defined achievements to provide more goals to strive for.
Lock picking overhaul.
Rot items away in reality bubble.
Display holiday on main menu screen based on system time.
Separate bullet damage type from cut/stab.
Adds support for json-defined achievements to provide more goals to strive for.
Overhauls lock picking.
Appropriate items can now rot away when in the reality bubble.
Displays holidays on main menu screen based on system time.
Separates bullet damage type from cut/stab.
Makes consuming items take time.
Implement damage over time spell infrastructure.
Nested Container system.
Add support for conducts (self-imposed play constraints tracked by the game).
Enables damage over time for spells.
Enables nested containers.
Adds support for conducts (self-imposed play constraints tracked by the game).
Custom achievement/conduct requirement descriptions.
[Magiclysm] Add spell level and number of spells known achievements.
Allow event_statistic to be defined as first and last events in an event stream.
Enable mouse input for inventory.
[Magiclysm] Adds spell level and number of spells known achievements.
Enables mouse input for inventory.
Worn gloves count as unarmed weapons when no weapon is held.
Any corpse can rise again as a zombie.
Added ability to stop bleeding, disinfect wounds, and inject antibiotics in case of infected wounds or tetanus to an autodoc.
Added to autodocs the ability to stop bleeding, disinfect wounds, and inject antibiotics in case of infected wounds or tetanus.
Allow randomizing scenario and profession in new character menu.
Workout and exercise.
Vehicles: ground vehicle z-level transitions and z+1 bridges.
Remove static/random NPC options, adjust random NPC rates.
Blood and blood loss overhaul.
Overhauls blood and blood loss.
Artifact procgen - artifacts that spawn use the new relic data.
Grappling hooks can be deployed for climbing, just like ladders.
Add proficiencies, representing specific knowledge in a certain area not covered by normal skills.
Add facing to vehicle parts and tiles for better vehicle rendering.
Add activation abilities and charges to relics.
Adds proficiencies, representing specific knowledge in particular areas more precisely than by normal skills.
Adds facing to vehicle parts and tiles for better vehicle rendering.
Adds activation abilities and charges to relics.
Tiles: improve furniture rotation and connections.
Show which achievements have been completed in past games.
Artifacts regenerate ammo option.
Shows which achievements have been completed in past games.
Artifacts may now regenerate ammo.
Adds ACTIVE enchantment condition.
Allows recipes to specify individual activity levels.
Adds weariness, a sort of long term stamina that limits characters' ability to be extremely active 24/7.
Reports faction camp build sites and improves faction camp tutorial.
Allows customizing initial date in scenarios.
Allows nanofabricator templates to contain recipes from any item group.
Adds different bleeding types for different species.
Adds bleeding butchery action.
Autodoc installation programs added that almost guarantee flawless installation of supported bionics.
Removes the obsolete 'carrion spawn rate scaling factor' world configuration option.
## Content:
Gun volume and weight audit.
Move most urban development houses to vanilla.
Add Survivor RV and car.
Populate rooftops with monsters.
Large addition of chemicals, chemistry tools and recipes.
Moves most urban development houses from a mod to vanilla.
Adds Survivor RV and car.
Populates appropriate rooftops with monsters.
Adds many chemicals, chemistry tools, and recipes.
Mi-go, masters, and necromancers can open doors.
Adds a bulk shipping crate possibility to the supplydrop map extra.
New zombie: necro-boomer.
@@ -56,30 +130,91 @@ Make bugs much more mutated.
Reformats the 'chat with a friend' feature in NPCs to be more flexible, and to provide some more lore insights.
Adds 'What the hell happened' stories to NPCs, keyed off backgrounds.
Feral Humans with blob psychosis.
Allow plank and branch bundles to be made from cordage, vines, or wire.
Allows plank and branch bundles to be made from cordage, vines, or wire.
Microlabs can contain artifacts in containment.
Add NPC_class and NPC json templates and instructions.
Adapts almost all vehicle definitions to use directional parts (most of the work by Curstwist).
Adds NPC_class and NPC json templates and instructions.
Adapts almost all vehicle definitions to use directional parts.
Update UltiCa tileset and make it default.
Add a number of flying zombies.
Adds a number of flying zombies.
Adds a new alternate needs panel to the label mode.
Added many proficiencies and uses for them.
Adds frog mother monster.
Adds mega mutant monsters.
Adds a selection of mutated woodland creatures.
New 'phase skulker' zombies teleport and haunt between the hallways of microlabs.
Make mutant organs and lungs contain toxins.
Adds streetlights to sidewalks; also adds traffic lights, stop lines, and pedestrian crossings to intersections.
Adds Rust Zombies.
Diversifies venom sources and effects.
Adds a star fort with working cannon and zombie reenactors.
Adds Hot Springs location.
Adds a terrain flag 'NO_SHOOT' to prevent projectiles from striking or going through that tile type.
Enables using a rope to carry large items.
Adds large dermatik nest and tweaks dermatiks.
Adds a new layout for the island prison challenge scenario.
Adds tazer drones.
Adds a demo of the Cuteclysm tileset, which is loosely inspired by the aesthetics of 16-bit Japanese RPGs.
## Interface:
Introduce and migrate most windows to ui_adaptor, which handles redrawing windows when others are closed and the game is resized.
Crafting GUI - Highlight hidden recipe info.
Overhaul target selection and aiming UI.
Display missing and obsolete mods for current world.
Require grenades and other explosives to be wielded before activation.
Add bigger mini-maps to all sidebar layouts.
Add keycode support to uilist.
Introduces, and migrates most windows to, ui_adaptor, which handles redrawing windows when others are closed and the game is resized.
Highlights hidden recipe info in the crafting GUI.
Overhauls target selection and aiming UI.
Displays missing and obsolete mods for current world.
Requires grenades and other explosives to be wielded before activation.
Adds bigger mini-maps to all sidebar layouts.
Adds keycode support to uilist.
Allows attempting to disable robots by 'e'xamining them.
Warns if a friendly creature or non-hostile NPC enters the line of fire.
Replaces the CAL/kg column of the (E)at menu with a more meaningful Satiety column.
Adds a Mod to use MSX characters and monsters with the Ultica tileset.
Shows crafting failure rates due to missing proficiencies.
Displays contained items like 'water (plastic bottle)' instead of as 'plastic bottle of water'.
Keeps track of preferred aiming mode.
Makes Chibi Ultica a stand-alone tileset.
Brings back MSX+.
Adds item length and pocket volume entries to menus.
Adds fast scrolling to many menus with long lists.
Adds responsive screen behavior to the new character menu for small terminal sizes.
Shows weariness and activity levels in sidebar panels.
Warns before crafting armor or clothing you won't be able to wear.
## Mods:
[Magiclysm] Manatouched mutation tree.
Add Dark Skies Above, a partial conversion mod based around an alien invasion rather than a zombie apocalypse.
Overhaul Blazemod and split into seperate mods.
[MMA] Add Ki Strike trait.
Polymorph spells to transform your foes.
Spells using components system.
Aftershock: Add autodoc tiers and augmentation clinics.
Overhauls Blazemod and splits it into separate mods.
[MMA] Adds Ki Strike trait.
[Magiclysm] Adds polymorph spells so you can transform your foes.
[Magiclysm] Adds a spell component system and more-powerful spells to use it.
Aftershock: Adds autodoc tiers and augmentation clinics.
[DinoMod] Adds location variants with dinosaurs.
Aftershock: Megacity-oriented overmap generation adjustments
Aftershock: Adds new Melee oriented bionics.
[DinoMod] Adds Acrocanthosaurus and overhauls dino baby code.
[Magiclysm] Adds a new mutation line: Black Dragon.
Adjusts fog frequency in black dragon lair plus other (minor) map adjustments.
Adds monsters 'Scutellosaurus', 'Maiasaura', and 'Coelophysis'.
[Magiclysm] Attunements - Special abilities gained by mastering two schools of magic.
Adds monsters 'Pachyrhinosaurus', 'Pentaceratops', and 'Torosaurus'.
[DinoMod] Organizes dinos into three main factions with defined inter-faction behavior.
[DinoMod] Rebalances Jurassic spawns and monsters for realism and fixes predator in-fighting.
Cap monsters at 1000 kg so butchering kind of works.
[Magiclysm] implement summonable motorcycle
[Magiclysm] Adds a new house with technomancer-themed loot.
[Aftershock] Replaces Vanilla autodocs with Aftershock Average Autodocs.
[DinoMod] Adds monsters 'Brontosaurus', 'Alamosaurus', and 'Brachiosaurus'.
[Magiclysm] Rings of wizardry and mojocycle tweaks
[Magiclysm] Adds bullet armor to magic rings and bracers of protection.
[DinoMod] Converts 'dinoexhibit' to use templates, adds a roof, and adds a baby dino variant.
[DinoMod] Ankylosaurs Abound: Adds Dyoplosaurus, Nodosaurus, and Edmontonia.
[Aftershock] Adds an astrobiology lab.
[DinoMod] Adds Amargasaurus and Kosmoceratops as well as variants.
[Magiclysm] Adds Orcs and Ogres.
[Aftershock] Adds a design document.
[DinoMod] Adds mod-specific mutation trees Stego and Tyrant.
[Aftershock] Adds new laser and plasma pistols.
[Magiclysm] Adds three new Attunement spells (Frozen Winds, Auroral wave, and Immolate).
[Magiclysm] Adds Workshop Elves, Yule Cats, and Leprechauns.
[Aftershock] Adds Formless Ruins - a new aboveground, low-risk dungeon type.
[Dark Skies Above] DSA is reborn as an actively-developed, total-conversion mod.
## Balance:
Large item price audit.
@@ -90,103 +225,196 @@ More complex satiety calculations.
NPCs to use ranged weapons against all enemies, and automatic fire against dangerous enemies.
Antifungal drugs work over time.
Don't damage hands when smashing but use your most armored part instead.
Guarantee at least one transversable path in the collapsed tower basement.
Make Solar Sensitivity mutation respect clothing coverage, precious.
Unlock NPC recruiting when you build the faction camp radio console.
Fixed clean_water recipes with purification tablets and charcoal water purifier.
Brings reloading components closer to reality, make brass casings spawn in packs, and makes gunpowder units 100 mg.
Missed scenario starts without a random NPC.
Monsters with larger eyes see farther than smaller variants.
Ankle storage items don't affect feet-related mutations anymore.
Gives the default Survivor profession more weather-appropriate clothes for the default start.
Eating raw meat does not hurt your morale as much if you have traits like Hunter or Predator.
Very-fast-moving zombie animals only attack once per turn.
Spawns anesthesia supplies in autodocs.
Rebalances spawn rates for overmap specials.
Mycus Fireproofing now also gives heat immunity.
Tweaks Infection impact by lowering fatigue drain and removing pain.
Adjusts ordinary clothing to not meaningfully contribute to protection values.
## Bugfixes:
Prevents possible negative damage from explosions.
Removes scent diffusion over water by implementing NO_SCENT flag.
Give electric motors equal power in both forward and reverse.
Fix wield action costing double than it should.
Fix spells not gaining levels on cast.
Fix for light sources rendering player invisible at certain ranges.
Fix crash when NPC gives player equipment.
Fix "Unable to find and assign mission target" message when accepting mission.
Gives electric motors equal power in forward and reverse.
Fixes wield action costing double what it should have.
Fixes spells not gaining levels on cast.
Fixes light sources rendering the player invisible at certain ranges.
Fixes a crash when an NPC gives the player equipment.
Fixes "Unable to find and assign mission target" messages when accepting a mission.
No more floor items when trading with follower NPCs.
Fix crash by not accessing null basecamp.
Helicopters: Allow descending into open air while moving, and disallow roof teleporting.
Fix cold item rotting in freezer and add more rotting tests.
Place cursor at highlighted item name in construction and crafting menus as expected by screen readers.
Spawn regular ants under regular anthills.
melee: Make sure that melee weapon accuracy improves hit rates.
Reduce level of vehicle heater/cooler as its now too much after 1-second turns.
Wake up player if too cold due to hypothermia.
Fixes crashes from trying to access a nonexistant basecamp.
Helicopters: Allows descending into open air while moving, and disallows roof teleporting.
Fixes cold items rotting in a freezer and adds more rotting tests.
Spawns regular ants under regular anthills.
Melee: Makes sure that melee weapon accuracy improves hit rates.
Adjusts vehicle heater/cooler for 1-second turns.
Wakes up the player if about to go into hypothermia.
Fixes a segfault during initializing crafts.
fixes segfault when attempting to siphon from vehicle with multiple tanks.
Fix creatures blocking descend even if they can be displaced.
Fix OnGetHit effects not triggering if player cannot block.
Refactor monster spawning code to avoid crash.
Reset game mode before loading normal saves.
Minimize UI flickering on curses.
Fix crash upon examining vehicles containing minireactor.
Fix segfault on harvest.
Fix loading of legacy characters without bodies.
Fix explosions not affecting terrain.
Do not process held item twice.
Fix crash when trying to reloading item inside advanced inventory
Blobs are slimes. name them such.
Fix freezing to death when wet.
Fix weapon techniques not triggering.
Prevent some obscure crashes by adding nullptr checks to unsafe pointer accesses.
Fixes a segfault from attempting to siphon from vehicle with multiple tanks.
Fixes creatures blocking descent even if they can be displaced.
Fixes OnGetHit effects not triggering if the player cannot block.
Refactors the monster spawning code to avoid crashes.
Resets the game mode before loading normal saves.
Minimizes UI flickering in curses mode.
Fixes crash upon examining vehicles containing minireactor.
Fixes segfault on harvest.
Fixes loading of legacy characters without bodies.
Fixes explosions not affecting terrain.
Avoids processing held items twice.
Fixes a crash when trying to reload an item inside of advanced inventory
Renames (when appropriate) blobs as slimes.
Fixes massive, unrealistic temperature drops when wet.
Fixes weapon techniques not triggering.
Prevents some obscure crashes by adding nullptr checks to unsafe pointer accesses.
Vehicles: make sure going in reverse isn't more efficient than going forward.
Fix doubled artifact effects on stats.
Containers can't hold too large items contained in other containers.
Prevent temperature being 0 after loading a save.
Consume components in nested containers when crafting.
Fix stuck joystick on Android.
Adjust sunlight casting to illuminate exterior walls.
Fixed limb blocking not triggering.
Vehicles: make shock absorbers actually absorb shock damage.
Fix NPC dying immediately on accepting inhaler mission
Fix crash when attempting to butcher a corpse.
Fix gear getting damaged when weather has no damaging effects.
Fixes doubled artifact effects on stats.
Containers can't hold too-large items, even when contained in other containers.
Prevents temperature being 0 after loading a save.
Consumes components in nested containers when crafting.
Fixes stuck joystick on Android.
Adjusts sunlight casting to properly illuminate exterior walls.
Fixes limb blocking not triggering.
Vehicles: shock absorbers actually now absorb shock damage.
Fixes NPC dying immediately on accepting inhaler mission
Fixes crash when attempting to butcher a corpse.
Fixes gear getting damaged by weather when weather has no damaging effects.
Improves invalidation of max_populated_zlev cache, fixing lighting in some teleportation scenarios.
Prevents dodging or blocking while insensible.
Fixes apparent light asymmetry when the sun shines through a single-tile hole in the roof.
Makes installation time mandatory for gunmods.
Makes tents and vehicles block sunlight.
Prevents scent map from being saved with an invalid utf8 sequence.
Monsters no longer bash obstacles based on sound. This prevents groups of monsters from getting stuck in a loop of bashing based on the sound of other monsters bashing.
Picking up an item stack fills up your pockets if it doesn't fit into one pocket.
Wielding combines item stacks if possible.
Robots can no longer be disabled by a single melee hit.
Fixes auto-consume zones in vehicles.
Fixes monster special attack range-limiting code.
Falling vehicles: prevents bouncing after the first collision with the ground.
Fixes issues with sound (walking on boats, sound triggering twice).
Ensures that casings are stackable, fixing pickup performance issues.
Allows quartering organ-less corpses without field dressing.
Triggers explosions only after processing all items.
Fixes scenarios having wildly different start dates and potentially crashing the game.
Allows fire to spread to adjecent tiles with items.
Prevents log spam from a broken bone.
Makes reachability cache fully consistent with map::sees, fixing some problems with mirrors.
Fixes NPC-assisted time-cost calculation.
Killing a monster that fused with a mission kill target now successfully completes the mission.
Bashes that do zero damage now can't stun.
Fixes a crash due to dereferencing a null carrier pointer in item::process_tool.
Prevents a seg fault in auto-consume.
Vehicles: Fixes towed vehicle drag by unsetting their parking brakes.
Fixes sarcophagus elevator reactivation.
Fixes doors that NPCs could not pass without intervention.
Prevents disassemblies on a workbench from vanishing.
Fixes errors from crashes between a towed vehicle and its towing vehicle.
Bases returned materials from salvaging on mass instead of volume.
Fixes unable to run message when mounted - allows a mount to run when your legs are broken.
Fixes errors from abandoning a faction camp.
Makes NPCs able to fight back while guarding or patrolling.
Fixes use-after-free error in sounds::process_sound_markers(player).
Makes the Zombie technician's pull metal weapon attack drop items at the technician's feet.
Fixes errors due to a bad memory access in drop_activity_actor::do_turn().
Resolves a partial item spawn issue.
Prevents xp 'underflow' due to negative focus.
Dragged vehicles and furniture no longer leave a trail of memorized tiles in darkness.
Prevents a crash by disallowing turning vehicles on ramps.
Fixes crashes from towing cables snapping or trying to stretch between z-levels.
Fixes a game freeze from happening when the player cannot carry a mission reward.
Fixes crashes in `map::player_in_field` caused by iterator invalidation.
Fixes a division by zero error when drinking water.
Fixes NPC followers being blind after waking up.
Fixes looks_like for vehicle parts.
Fixes Roots and Metabolic rehydration mutations so they actually relieve/eliminate the need for water.
Fixes localization not working if the LANG environmental variable is not set.
Avoids creating starving characters from older templates.
Fixes furniture being 'destroyed' when grab-moving.
Fixes crashes from canceling reloading a container that is on the ground.
Fixes NPCs still being hungry - and unhappy about it - after eating from faction camp stores.
Reins in the plant mutation category's photosynthesis ability to be more representative of real photosynthesis.
Prevents cross-z-level melee attacks when the target is not actually visible.
Avoids doing character body updates more than once per turn
When harvesting crops, drops the result on the player's square.
Improves road system connectivity across overmaps.
## Performance:
Add option to enable batching when it is available in SDL.
Adds an option to enable batching when it is available in SDL.
Skip unnecessary weather calculations for root cellar.
Cache drop_invalid_inventory and weight_carried.
Check for safemode emptiness before calling monster check.
Cache clairvoyance field.
Performance improvements related to map::process_fields.
Overhaul shadowcasting to be iterative instead of recursive.
Use plf linked list impl for shadowcasting.
Improve string_id comparison performance, add unit test and benchmarks.
Improves rendering speed by optimizing find_tile_looks_like method (FPS improved ~15%)
Greatly reduces overhead from processing idle vehicles.
Optimizes Creature::has_effect (performance improved ~9.5%)
Adds a specialization for static/interned string_ids (performance improved ~30%))
Improve performance of builds with enabled localization by ≈20% by caching translations.
Major optimization of field processing.
Adds reachability cache/filter that can reject bresenham-based LOS checks in O(1) time.
Uses field_cache in map::get_field to speedup fire check in npc::assess_danger.
Speeds up quicksave by limiting ui redraw rate.
Prevents slow processing of NPC overmap travel when `goal` is unreachable.
Fixes the performance bug caused by `verify_vehicle_cache` recalculation.
Adds lightweight crafting inventory cache to improve NPC construction processing time.
Reduces save size by skipping serialization of some item pockets and relic data.
Adds RLE compression for JSON serialization/deserializations of data on items, reducing savefile size.
Improves performance of initializing the achievements tracker.
When NPCs are fleeing from explosions, skips considering routing through tiles without a floor.
Speeds up fungus-related code processing by 30%+.
Optimizes item migrations to decrease load times.
Restores graphics speed for large screens with lots of text.
## Infrastructure:
Add basic infrastructure for diseases.
Allow for specialization of activity parameters.
Improved event transformations and statistic tracking.
Jsonize Autodoc quality.
Add tests for character BMI / kcal / weight.
Jsonize body parts.
Jsonize mood modifier from bodyparts.
Allow multiple overmap terrains in start location.
Make test failures from other platforms more easily reproducible.
Enforce a standard header guard format.
Add clang-tidy check to catch incorrect use of RNGs.
Adds guide to pricing items to doc folder.
Add enchantments to bionics.
Add test for health effect on healing rate.
Add tests for BMI effect on speed.
Update Catch2 to v2.12.0 (from 2.9.1).
Adds basic infrastructure for diseases.
Allows for specialization of activity parameters.
Jsonizes Autodoc quality.
Adds tests for character BMI / kcal / weight.
Jsonizes body parts.
Jsonizes mood modifier from body part conditions (e.g., wet).
Allows multiple different overmap terrains for start locations.
Makes test failures from other platforms more easily reproducible.
Adds clang-tidy check to catch incorrect use of RNGs.
Adds a guide to pricing items (see the doc folder).
Adds enchantments to bionics.
Adds test for health effect on healing rate.
Adds tests for BMI effect on speed.
Updates Catch2 (for running tests) to v2.13.0 (from 2.9.1).
Achievements have better up-front checking to detect definition errors.
Tests use a different config directory by default.
Migrate ACT_PICKUP to the activity actor system.
Integrate behavior tree implementation into monster AI.
Move ascii arts to their own file to avoid bloat.
Enforce that functions should not have separate x, y parameters.
Add tests for sun-related functions.
Jsonize Anatomy: replace enum body_part with bodypart_id.
Implement installation requirement for CBMs.
Migrates ACT_PICKUP to the activity actor system.
Integrates a behavior tree implementation into monster AI.
Moves ascii art to its own file to avoid bloat.
Enforces that functions should not have separate x, y parameters.
Adds tests for sun-related functions.
Implements installation requirements for CBMs.
Fields can now override local light levels.
Convert itype_id to string_id<itype>.
Test and refactor item info display functions.
Converted itype_id to string_id<itype> for better internal code consistency.
Tests refactored item info display functions.
Milling products can be defined in JSON.
Add a Clang Build Analyzer build step to CI.
Refactor rectangle and box types.
Adds a Clang Build Analyzer build step to CI.
Refactored rectangle and box types.
Mutations can be reflexively triggered without player input.
Enforce use of points as local variables.
Add table.py to make tables of JSON data.
Add a guide for intermediate mapgen help.
Options: remove the option to not use z-levels.
Provide point types with coordinate system type safety.
Move weather from being hardcoded into json.
Update Catch2 to 2.13.0.
Enforces the use of points as local variables.
Adds table.py to make tables of JSON data.
Adds a guide for intermediate mapgen help.
Options: removes the option to not use z-levels at all (3d vision is still experimental)
Provides point types with coordinate system type safety.
Moves weather from being hardcoded into json.
Changes some awkward terrains into furnitures for better layering.
Create a machine-readable memorial file at game over.
Creates a machine-readable memorial file at game over.
Dialogue: create an talker API for speakers in a dialogue.
Make rectangle and cuboid generic with respect to point type.
Configure GitHub build matrix to permit more C++ build testing to happen there.
@@ -194,37 +422,66 @@ Check for zero weight items.
All .py scripts ported to Python 3 and checked with PEP8 on moderate settings.
table.py partial object-oriented redesign.
Script to list what IDs are present in a tileset.
Revamp vehicle parts shapes to allow chirality - left/right/front/rear.
Remove old artifact code.
Script that generates a list of possible overlay ids.
Add error-checking of recipe (sub)categories.
Unblacklist most remaining blacklisted mods for automated consistency checking.
Report log messages for failed tests.
Reinstate blueprint autocalc.
Add a compiler error problem matcher.
Revamps vehicle parts shapes to allow chirality - left/right/front/rear.
Removes old artifact code.
Adds a script that generates a list of possible overlay ids.
Adds error-checking of recipe (sub)categories.
Unblacklists most remaining blacklisted mods, enabling more automated consistency checking.
Reports log messages for failed tests.
Reinstates blueprint autocalc.
Refactored vision_test; introduces a map_test_case framework to make building similar tests easier.
Adds tests for better_pocket and best_pocket.
Renames skills in preparation for some future improvements; merges speech & barter.
Merges trapping and lockpicking skills into a new 'devices' skill, and expands its scope somewhat.
Adds default time and fail multipliers to proficiencies for easier JSON entry.
Introduces a STATIC( ) macro that can make the definition of static constants easier to type and read.
Adds typesafe angle type.
Adds check that Generic Guns migrates all guns, magazines, and ammo.
Enables JSON member visitation checks outside of tests (better consistency checking).
Displays multi-line JSON error messages correctly when building on Github.
Python tool added to easily translate map coordinates.
Enables a JSON check for mods in the Github build matrix.
Uses (and checks for using) the correct season length for tests.
Uses GNU Parallel to run tests concurrently, enabling concurrent tests in MacOS builds.
Improves scooter tile representation by adding scooter vehicle parts, which scooters spawn with.
Reduces file size of composed tilesheets from compose.py.
Implements C++ symbol demangling in crash reports on MacOS, MinGW, and Linux.
Adds tests of automatic triggers for mutations.
Generates a crash report on Android.
## Build:
Create a GitHub workflow for running clang-tidy.
Remove Travis clang-tidy job.
Add -fsigned-char to CMakeLists.txt.
Moves clang-tidy runs from Travis to GitHub.
Adds -fsigned-char to CMakeLists.txt.
Makes json linter feedback more readable.
Fix clang-tidy header guard check on Windows.
Progress feedback for JSON formatting script.
Fixes clang-tidy header guard checks on Windows.
Gives progress feedback while running the JSON formatting script.
Set 'disable MS telemetry' flag in VCPKG setup guide.
Automatic handling of vcpkg dependencies.
Vehicles: Update doc/JSON_INFO.md for all fields in vehicle_part.
Improve use of precompiled headers.
compose.py: allow default sized tilesheets to specify offsets.
Enable compiling an Android build under Windows.
Tools: add a Python script to reformat vehicles to use parts arrays.
Tools: adds a Python script to reformat vehicles to use parts arrays.
Suppresses Homebrew update for faster Mac OS builds.
Adds problem matchers for json errors, compiler errors, DebugLog emissions, and Catch2 errors.
Adds check enforcing almost-never-auto convention.
Adds a GitHub workflow running flake8 to check the Python scripts.
Consistently styles code in CMakeLists.txt files.
Adds CMake linting.
Captures ODR violations using GOLD linker, ASAN, or LTO.
## I18N and A11Y:
Fix translation of martial art initate message and computer translation.
Add support for specifying identical singular and plural forms using `str_sp`.
Remove name_plural and replace it with str_pl.
Add helper for localized sorting.
Record locales in debug.log to assist with i18n debugging.
Add translator glossary and explain etymology of Exodii.
Fixes translations of martial art initiate and computer terminal messages.
Adds support for specifying identical singular and plural forms using `str_sp`.
Removes name_plural and replaces it with str_pl (matching `str_sp` and basic singular `str`).
Adds a helper for localized sorting.
Records locales in debug.log to assist i18n debugging.
Adds the start of a translator glossary and explains the etymology of Exodii.
Uses class translation in many more places for more flexible translation support.
Infrastructure: Automates translation template push.
Enables using additional languages (Arabic, Czech, Danish, Dutch, Greek, Indonesian, Icelandic, Italian, Norwegian, Serbian, Turkish, and Ukrainian) with the game.
Places cursor at highlighted item name in construction and crafting menus, as expected by screen readers.
Adds translations of the Android installation interface.
# 0.E (Ellison)
+5 -5
View File
@@ -1,5 +1,5 @@
# Max length of a line is 78 characters; the following line is for reference
# Longer lines will be automatically folded
# Lines longer than 78 characters will be wrapped automatically
# The following line is for reference
##############################################################################
<color_white>Original author:</color> <color_white>Project Manager:</color>
<color_yellow>Whales</color> (<color_dark_gray>retired</color>) <color_yellow>KevinGranade</color>
@@ -21,8 +21,8 @@
<color_yellow>Qrox</color> - For readable backtraces in Windows builds.
<color_yellow>ZhilkinSerg</color> - For mergetesting.
<color_white>For a full list of contributors please see:</color>
<color_cyan>https://github.com/CleverRaven/Cataclysm-DDA/contributors</color>
<color_white>For a full list of contributors please see the git repo:</color>
<color_cyan>https://github.com/CleverRaven/Cataclysm-DDA</color>
<color_light_cyan>Cataclysm</color>: <color_light_blue>Dark Days Ahead</color> is released under <color_white>CC-BY-SA 3.0</color>:
<color_cyan>https://creativecommons.org/licenses/by-sa/3.0/</color>
<color_cyan>https://creativecommons.org/licenses/by-sa/3.0/</color>
+27
View File
@@ -0,0 +1,27 @@
# El largo máximo de una línea es 78 caracteres; la siguiente línea es de referencia
# Las líneas más largas serán abreviadas
##############################################################################
<color_white>Autor original:</color> <color_white>Director del proyecto:</color>
<color_yellow>Whales</color> (<color_dark_gray>retirado</color>) <color_yellow>KevinGranade</color>
<color_white>Desarrolladores actuales:</color>
<color_yellow>mlangsdorf</color> - Vehículos, botes, campamentos y guías para mods.
<color_yellow>I-am-Erk</color> - El legado de Ultica continúa.
<color_yellow>KorGgenT</color> - No me deja saber dónde poner mis tablas de madera.
<color_white>Agradecimientos especiales:</color>
<color_yellow>Aivean</color> - Por un desempeño asombroso.
<color_yellow>anothersimulacrum </color> - Por fatigarme.
<color_yellow>jbytheway</color> - Por reducir el flakiness, los problemas de matching y consolidar los requisitos de Python.
<color_yellow>BrettDong</color> - Por las traducciones y otras cosas.
<color_yellow>Qrox</color> - Por mostrar la locación de los mensajes de error.
<color_yellow>LyleSY</color> - Por los dinosaurios.
<color_white>Agradecimientos especiales por contribución artística:</color>
<color_yellow>acepleiades</color>, <color_yellow>barsoosayque</color>, <color_yellow>Fris0uman</color>, <color_yellow>int-ua</color> y muchos más.
<color_white>Para ver la lista completa de colaboradores, por favor, visitá:</color>
<color_cyan>https://github.com/CleverRaven/Cataclysm-DDA/contributors</color>
<color_light_cyan>Cataclysm</color>: <color_light_blue>Dark Days Ahead</color> is released under <color_white>CC-BY-SA 3.0</color>:
<color_cyan>https://creativecommons.org/licenses/by-sa/3.0/</color>
+27
View File
@@ -0,0 +1,27 @@
# Longitud Max de la linea es 75 caracteres; sigue la linea de referencia
# Las lineas largas serán automáticamente plegadas
##############################################################################
<color_white>Autor original:</color> <color_white>Jefe de Proyecto:</color>
<color_yellow>Whales</color> (<color_dark_gray>retirado</color>) <color_yellow>KevinGranade</color>
<color_white>Actuales Desarrolladores Principales:</color>
<color_yellow>mlangsdorf</color> - Vehículos, botes, campos base y guías de modding.
<color_yellow>I-am-Erk</color> - Legado Ultica vive.
<color_yellow>KorGgenT</color> - No me dejan saber donde poner mis dos por cuatro.
<color_white>Agradecimientos especiales a:</color>
<color_yellow>Aivean </color> - Por su sobresaliente rendimiento.
<color_yellow>anothersimulacrum </color> - Por hacerme sentir cansado.
<color_yellow>jbytheway </color> - Por reducir la flaqueza de Python, el emparejamiento de problemas y la consolidación de los requisitos de los planos.
<color_yellow>BrettDong</color> - Por las traducciones y mas.
<color_yellow>Qrox</color> - Por mostrar la ubicación de los mensajes de error.
<color_yellow>LyleSY</color> - Por los dinosaurrss.
<color_white>Especialmente gracias a los contribuidores de arte:</color>
<color_yellow>acepleiades</color>, <color_yellow>barsoosayque</color>, <color_yellow>Fris0uman</color>, <color_yellow>int-ua</color>, y muchos mas.
<color_white>Por favor para ver la lista completa de contribuidores:</color>
<color_cyan>https://github.com/CleverRaven/Cataclysm-DDA/contributors</color>
<color_light_cyan>Cataclysm</color>: <color_light_blue>Dark Days Ahead</color> esta liberado como <color_white>CC-BY-SA 3.0</color>:
<color_cyan>https://creativecommons.org/licenses/by-sa/3.0/</color>
+27
View File
@@ -0,0 +1,27 @@
# 一行当たりの最大文字数は78文字です。次の行を参考にしてください。
# 長い行は自動的に折り返されます
##############################################################################
<color_white>オリジナルの作者:</color> <color_white>プロジェクト管理者:</color>
<color_yellow>Whales</color> (<color_dark_gray>引退</color>) <color_yellow>KevinGranade</color>
<color_white>現在の主要な開発者:</color>
<color_yellow>mlangsdorf</color> - 車両、ボート、拠点、MOD作成ガイド
<color_yellow>I-am-Erk</color> - Ulticaタイルセット保守管理
<color_yellow>KorGgenT</color> - その他の細々とした作業
<color_white>スペシャルサンクス:</color>
<color_yellow>Aivean</color> - 大幅なパフォーマンス向上への尽力
<color_yellow>anothersimulacrum </color> - 心配事の増加
<color_yellow>jbytheway</color> - Pythonの不安定性の軽減、問題の整合性とブループリント要件の統合
<color_yellow>BrettDong</color> - 翻訳など
<color_yellow>Qrox</color> - エラーメッセージのロケーション表示
<color_yellow>LyleSY</color> - 恐竜
<color_white>技術に関するスペシャルサンクス:</color>
<color_yellow>acepleiades</color>、<color_yellow>barsoosayque</color>、<color_yellow>Fris0uman</color>、<color_yellow>int-ua</color>、その他たくさんの方々
<color_white>全貢献者リスト:</color>
<color_cyan>https://github.com/CleverRaven/Cataclysm-DDA/contributors</color>
<color_light_cyan>Cataclysm</color>: <color_light_blue>Dark Days Ahead</color>は<color_white>CC-BY-SA 3.0</color>の下にリリースされています:
<color_cyan>https://creativecommons.org/licenses/by-sa/3.0/</color>
+27
View File
@@ -0,0 +1,27 @@
# Maksymalna długość linii to 78 znaków; poniższa linia jest dla przykładu
# Dłuższe linie zostaną automatycznie zawinięte
##############################################################################
<color_white>Oryginalny autor:</color> <color_white>Menedżer projektu:</color>
<color_yellow>Whales</color> (<color_dark_gray>na emeryturze</color>) <color_yellow>KevinGranade</color>
<color_white>Obecni główni programiści:</color>
<color_yellow>mlangsdorf</color> - pojazdy, łódki, bazy i poradniki modowania.
<color_yellow>I-am-Erk</color> - dziedzictwo Ultica żyje dalej.
<color_yellow>KorGgenT</color> - nie mówienie mi gdzie kłaść moje deski.
<color_white>Specjalne podziękowania dla:</color>
<color_yellow>Aivean</color> - za wyjątkową wydajność.
<color_yellow>anothersimulacrum </color> - za zmęczenie mnie.
<color_yellow>jbytheway</color> - za ograniczenie dziwactw Pythona, dopasowanie problemów i połączenie wymogów schematów.
<color_yellow>BrettDong</color> - za tłumaczenia i więcej.
<color_yellow>Qrox</color> - za pokazanie miejsca wiadomości z błędami.
<color_yellow>LyleSY</color> - za dinozaurrry.
<color_white>Specjalne podziękowania za kontrybucje grafik:</color>
<color_yellow>acepleiades</color>, <color_yellow>barsoosayque</color>, <color_yellow>Fris0uman</color>, <color_yellow>int-ua</color> i wielu innych.
<color_white>Pełna lista kontrybutorów dostępna na:</color>
<color_cyan>https://github.com/CleverRaven/Cataclysm-DDA/contributors</color>
<color_light_cyan>Cataclysm</color>: <color_light_blue>Dark Days Ahead</color> jest wydany na licencji <color_white>CC-BY-SA 3.0</color>:
<color_cyan>https://creativecommons.org/licenses/by-sa/3.0/</color>
+19 -20
View File
@@ -1,28 +1,27 @@
# Max length of a line is 78 characters; the following line is for reference
# Longer lines will be automatically folded
# Максимальная длина строки - 78 символов; следующая строка для справки
# Длинные строки будут автоматически перенесены
##############################################################################
<color_white>Оригинальный автор:</color> <color_white>Менеджер проекта:</color>
<color_yellow>Whales</color> (<color_dark_gray>не активен</color>) <color_yellow>KevinGranade</color>
<color_white>Автор идеи:</color> <color_white>Руководитель проекта:</color>
<color_yellow>Whales</color>(<color_dark_gray>отошел от разработки</color>) <color_yellow>KevinGranade</color>
<color_white>Текущие основные разработчики:</color>
<color_yellow>mlangsdorf</color> - Машины, лодки, лагеря и гайды по моддингу.
<color_yellow>I-am-Erk</color> - Ultica, диалоги, NPC и хлам в шкафах.
<color_yellow>KorGgenT</color> - Колдоклизм и кишечные колики.
<color_white>Главные разработчики:</color>
<color_yellow>mlangsdorf</color> - транспорт, лодки, лагеря и руководства по созданию модификаций.
<color_yellow>I-am-Erk</color> - Наследие Ultica живёт.
<color_yellow>KorGgenT</color> - Не даёт подсказок, куда класть доски.
<color_white>Особая благодарность:</color>
<color_yellow>Narc</color> - За поддержку автоматической системы сборки Jenkins.
<color_yellow>Rivet-the-Zombie</color> - За PR в день (и как ей не лень?).
<color_yellow>BevapDin</color> - За обзоры и рефакторинг кода.
<color_yellow>BrettDong</color> - За переводы.
<color_yellow>curstwist</color> - За крышевание зданий, NPC и чейнжлоги.
<color_yellow>davidpwbrown</color> - За авто-перемещения и авто-езду. Ну и за коневодство тоже.
<color_yellow>jbytheway</color> - За работу над CI и умение отстаивать свою точку зрения.
<color_yellow>Hymore246</color> - За переработку боевых искусств.
<color_yellow>Qrox</color> - За читабельную трассировку в Windows-билдах.
<color_yellow>ZhilkinSerg</color> - За тестирование и слияние изменений.
<color_yellow>Aivean</color> - За выдающуюся производительность.
<color_yellow>anothersimulacrum </color> - За приятную усталость.
<color_yellow>jbytheway</color> - За разбор проблем Python, сопоставление проблем и консолидацию требований к чертежам.
<color_yellow>BrettDong</color> - За переводы и многое другое.
<color_yellow>Qrox</color> - За показ места, вызывающего сообщения об ошибках.
<color_yellow>LyleSY</color> - За динозаврррров.
<color_white>Полный список участников находится здесь:</color>
<color_white>Особая благодарность за художественный вклад:</color>
<color_yellow>acepleiades</color>, <color_yellow>barsoosayque</color>, <color_yellow>Fris0uman</color>, <color_yellow>int-ua</color>, и многим другим.
<color_white>Полный список участников разработки доступен здесь:</color>
<color_cyan>https://github.com/CleverRaven/Cataclysm-DDA/contributors</color>
<color_light_cyan>Катаклизм</color>: <color_light_blue>Тёмные дни впереди</color> выпущен под лицензией <color_white>CC-BY-SA 3.0</color>:
<color_light_cyan>Cataclysm</color>: <color_light_blue>Dark Days Ahead</color> выпускается по лицензии <color_white>CC-BY-SA 3.0</color>:
<color_cyan>https://creativecommons.org/licenses/by-sa/3.0/</color>
+27
View File
@@ -0,0 +1,27 @@
# 单行字数 <= 78,如下例
# 超长的行会自动折叠
##############################################################################
<color_white>原作者:</color> <color_white>项目管理员:</color>
<color_yellow>Whales</color>(<color_dark_gray>不再参与</color>) <color_yellow>KevinGranade</color>
<color_white>当前主要开发者:</color>
<color_yellow>mlangsdorf</color> - 载具,船只,营地和mod制作的教程。
<color_yellow>I-am-Erk</color> - 维护Ultica贴图包
<color_yellow>KorGgenT</color> - 口袋系统与大魔法
<color_white>特别感谢:</color>
<color_yellow>Aivean</color> - 程序优化
<color_yellow>anothersimulacrum </color> - 疲劳系统
<color_yellow>jbytheway</color> - Python程序修正、错误信息定位以及营地建造蓝图。
<color_yellow>BrettD</color> - 翻译管理以及其他程序修正。
<color_yellow>Qrox</color> - 定位并显示游戏程序错误信息
<color_yellow>LyleSY</color> - 恐龙
<color_white>特别鸣谢艺术贡献者:</color>
<color_yellow>acepleiades</color>, <color_yellow>barsoosayque</color>, <color_yellow>Fris0uman</color>, <color_yellow>int-ua</color>,以及其他贡献者。
<color_white>完整贡献者列表请见:</color>
<color_cyan>https://github.com/CleverRaven/Cataclysm-DDA/contributors</color>
《<color_light_cyan>大灾变</color>·<color_light_blue>劫后余生</color>》按<color_white> CC-BY-SA 3.0 </color> 授权协议发布:
<color_cyan>https://creativecommons.org/licenses/by-sa/3.0/</color>
@@ -40,7 +40,7 @@
{
"id": "AO_FORCE_PULL",
"type": "SPELL",
"name": "Artifact Force Pull",
"name": { "str": "Artifact Force Pull" },
"description": "Pull objects.",
"effect": "area_pull",
"shape": "blast",
@@ -55,7 +55,7 @@
{
"id": "AO_TELEPORTITIS",
"type": "SPELL",
"name": "Artifact Teleportitis",
"name": { "str": "Artifact Teleportitis" },
"description": "Causes you to teleport uncontrollably.",
"message": "The world loses coherence, with images of nearby places forming and disappearing around you.",
"valid_targets": [ "self" ],
@@ -69,7 +69,7 @@
{
"id": "AO_SLOW",
"type": "SPELL",
"name": "Artifact Slow",
"name": { "str": "Artifact Slow" },
"description": "Slows you for a few turns.",
"message": "The world shifts blue, and reality accelerates around you.",
"valid_targets": [ "self" ],
@@ -83,7 +83,7 @@
{
"id": "AO_TIME_STOP",
"type": "SPELL",
"name": "Artifact Time Stop",
"name": { "str": "Artifact Time Stop" },
"description": "Grants you a few turns of super speed.",
"message": "Stale golden light floods the world, and reality stands still.",
"valid_targets": [ "self" ],
@@ -81,7 +81,7 @@
{
"type": "SPELL",
"id": "AEP_EVIL_SPELL",
"name": "EEEEEEVVVVVIIIIILLLL!",
"name": { "str": "EEEEEEVVVVVIIIIILLLL!" },
"description": "You debugged in this spell! It makes you evil for 30 minutes.",
"valid_targets": [ "hostile", "ally", "self" ],
"effect": "attack",
+27 -21
View File
@@ -58,7 +58,8 @@
"bash_protec": [ [ "eyes", 3 ] ],
"cut_protec": [ [ "eyes", 3 ] ],
"bullet_protec": [ [ "eyes", 3 ] ],
"flags": [ "BIONIC_NPC_USABLE", "BIONIC_SHOCKPROOF" ]
"flags": [ "BIONIC_NPC_USABLE", "BIONIC_SHOCKPROOF" ],
"social_modifiers": { "intimidate": 10 }
},
{
"id": "bio_armor_head",
@@ -132,7 +133,8 @@
"name": { "str": "Optical Dampers" },
"description": "The lenses surgically installed over your eyes can be tinted to block out incoming light.",
"included": true,
"flags": [ "BIONIC_TOGGLED" ]
"flags": [ "BIONIC_TOGGLED" ],
"active_flags": [ "BLIND" ]
},
{
"id": "bio_blood_anal",
@@ -298,7 +300,8 @@
"name": { "str": "Bionic-Induced Deformity" },
"description": "A combination of poor surgical installation and unpleasant scarring has lead to the malfunctioning bionic catastrophe you call your face. People who mind that you look like a dime-store Frankenstein will react poorly to your appearance.",
"occupied_bodyparts": [ [ "head", 4 ], [ "mouth", 1 ] ],
"flags": [ "BIONIC_FAULTY" ]
"flags": [ "BIONIC_FAULTY" ],
"social_modifiers": { "persuade": -50, "intimidate": 20 }
},
{
"id": "bio_dex_enhancer",
@@ -316,7 +319,7 @@
"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.",
"occupied_bodyparts": [ [ "torso", 20 ] ],
"vitamin_absorb_mod": 1.5,
"flags": [ "BIONIC_NPC_USABLE", "BIONIC_SHOCKPROOF" ]
"flags": [ "BIONIC_NPC_USABLE", "BIONIC_SHOCKPROOF", "PARAIMMUNE", "IMMUNE_SPOIL" ]
},
{
"id": "bio_dis_acid",
@@ -346,9 +349,10 @@
"id": "bio_earplugs",
"type": "bionic",
"name": { "str": "Sound Dampeners" },
"description": "When this bionic is active, you can block hearing completely (with Enhanced Hearing deactivated) or dampen sound slightly (with Enhanced Hearing activated).",
"description": "When this bionic is active, you can block hearing completely.",
"included": true,
"flags": [ "BIONIC_TOGGLED" ]
"flags": [ "BIONIC_TOGGLED" ],
"active_flags": [ "DEAF" ]
},
{
"id": "bio_ears",
@@ -356,7 +360,7 @@
"name": { "str": "Enhanced Hearing" },
"description": "When this bionic is active, your hearing will be 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.",
"occupied_bodyparts": [ [ "head", 3 ] ],
"flags": [ "BIONIC_TOGGLED" ],
"flags": [ "BIONIC_TOGGLED", "IMMUNE_HEARING_DAMAGE", "SUPER_HEARING" ],
"included_bionics": [ "bio_earplugs" ]
},
{
@@ -415,6 +419,7 @@
"name": { "str": "Telescopic Eyes" },
"description": "Much of the material in your inner eye has been surgically removed and replaced with an array of high-powered, auto-focusing lenses. They function as integrated binoculars, letting you see much farther than before, and any vision problems you might have had are now gone.",
"occupied_bodyparts": [ [ "eyes", 2 ] ],
"flags": [ "ENHANCED_VISION" ],
"canceled_mutations": [
"HYPEROPIC",
"MYOPIC",
@@ -443,7 +448,8 @@
"type": "bionic",
"name": { "str": "Facial Distortion" },
"description": "Through controlled application of electrochemical impulses, you are capable of altering your facial structure so as to subtly affect the reactions of others. This grants a bonus to all social interactions.",
"occupied_bodyparts": [ [ "head", 3 ], [ "mouth", 1 ] ]
"occupied_bodyparts": [ [ "head", 3 ], [ "mouth", 1 ] ],
"social_modifiers": { "persuade": 10, "lie": 20, "intimidate": 10 }
},
{
"id": "bio_faraday",
@@ -463,6 +469,7 @@
[ "foot_r", 1 ]
],
"flags": [ "BIONIC_TOGGLED", "BIONIC_NPC_USABLE", "BIONIC_SHOCKPROOF" ],
"active_flags": [ "ELECTRIC_IMMUNE" ],
"act_cost": "5 J",
"react_cost": "5 J",
"time": 1
@@ -596,6 +603,7 @@
"description": "Your range of vision extends into the infrared, allowing you to see warm-blooded creatures in the dark or through smoke.",
"occupied_bodyparts": [ [ "eyes", 1 ] ],
"flags": [ "BIONIC_TOGGLED" ],
"active_flags": [ "INFRARED" ],
"act_cost": "5 J",
"react_cost": "5 J",
"time": 1
@@ -677,7 +685,7 @@
"name": { "str": "Nictating Membrane" },
"description": "Your eyes have a thin membrane that closes over your eyes while underwater, negating any vision penalties.",
"occupied_bodyparts": [ [ "eyes", 1 ] ],
"flags": [ "BIONIC_NPC_USABLE" ]
"flags": [ "BIONIC_NPC_USABLE", "EYE_MEMBRANE" ]
},
{
"id": "bio_memory",
@@ -739,6 +747,7 @@
"description": "When active, this bionic will amplify existing light, allowing you to see in the dark.",
"occupied_bodyparts": [ [ "eyes", 1 ] ],
"flags": [ "BIONIC_TOGGLED" ],
"active_flags": [ "NIGHT_VISION" ],
"act_cost": "10 J",
"react_cost": "10 J",
"time": 1
@@ -914,6 +923,7 @@
"description": "While this system is powered, your body will produce very little odor, making it nearly impossible for creatures to track you by scent.",
"occupied_bodyparts": [ [ "torso", 3 ], [ "head", 1 ], [ "arm_l", 1 ], [ "arm_r", 1 ], [ "leg_l", 1 ], [ "leg_r", 1 ] ],
"flags": [ "BIONIC_TOGGLED" ],
"active_flags": [ "NO_SCENT" ],
"act_cost": 1,
"react_cost": 1,
"time": 60
@@ -932,6 +942,7 @@
"name": { "str": "Synaptic Regeneration System" },
"description": "An electromagnetic stimulator has been surgically implanted on the back of your head and along your spine, continually draining power. As long as it's active, you won't become sleep deprived; and if you're sleep deprived already, it will boost the rate of recovery while you sleep.",
"flags": [ "BIONIC_TOGGLED" ],
"active_flags": [ "STOP_SLEEP_DEPRIVATION" ],
"occupied_bodyparts": [ [ "head", 1 ], [ "torso", 1 ] ],
"act_cost": 0,
"react_cost": "1 kJ",
@@ -1029,7 +1040,7 @@
"description": "Your eyes have quick-reacting transition lenses surgically installed over them. They negate glare penalties, partially protect you from bright flashes, and protect your eyes when welding.",
"occupied_bodyparts": [ [ "eyes", 1 ] ],
"included_bionics": [ "bio_blindfold" ],
"flags": [ "BIONIC_NPC_USABLE" ],
"flags": [ "BIONIC_NPC_USABLE", "GLARE_RESIST" ],
"fake_item": "fake_goggles"
},
{
@@ -1147,14 +1158,16 @@
"name": { "str": "Voice Remodulator" },
"description": "You will likely spend the rest of your days serving as a walking testament to why you don't opt for the Autodoc's 'Cyborg Identity Package'. A remodulator unit jammed down your throat has given you a creepy robot voice.",
"occupied_bodyparts": [ [ "torso", 2 ], [ "mouth", 1 ] ],
"flags": [ "BIONIC_FAULTY" ]
"flags": [ "BIONIC_FAULTY" ],
"social_modifiers": { "persuade": -20, "lie": 10, "intimidate": 20 }
},
{
"id": "bio_watch",
"type": "bionic",
"name": { "str": "Internal Chronometer" },
"description": "You have been equipped with an internal atomic clock, ensuring that you will always know the current time. Additionally, it includes a silent alarm clock function.",
"occupied_bodyparts": [ [ "head", 1 ] ]
"occupied_bodyparts": [ [ "head", 1 ] ],
"flags": [ "WATCH", "ALARMCLOCK" ]
},
{
"id": "bio_water_extractor",
@@ -1183,7 +1196,8 @@
"type": "bionic",
"name": { "str": "Intravenous Needletip" },
"description": "The flesh of the inside of your middle finger has been replaced with a tube leading into your arteries, with a retractable needle extending out of the tip of the finger when clenched. This lets you pump intravenous drugs like morphine directly into your bloodstream without needing to carry a syringe.",
"occupied_bodyparts": [ [ "hand_l", 1 ] ]
"occupied_bodyparts": [ [ "hand_l", 1 ] ],
"fake_item": "syringe"
},
{
"id": "bio_weight",
@@ -1194,14 +1208,6 @@
"weight_capacity_bonus": "20 kg",
"flags": [ "BIONIC_NPC_USABLE", "BIONIC_SHOCKPROOF" ]
},
{
"id": "bio_shock_absorber",
"type": "bionic",
"name": { "str": "Kinetic Shock Absorbers" },
"description": "Most of the flesh in your arms, legs, and upper torso has been replaced with industrial-strength springs and protective padding. Clenching your fist allows you to fold and unfold this padding; while active, the hydraulic absorbers will prevent damage to your body from severe impacts, at the cost of impaired movement.",
"occupied_bodyparts": [ [ "torso", 1 ], [ "arm_l", 1 ], [ "arm_r", 1 ], [ "leg_l", 1 ], [ "leg_r", 1 ] ],
"flags": [ "BIONIC_TOGGLED" ]
},
{
"id": "bio_taste_blocker",
"type": "bionic",
+20 -10
View File
@@ -11,7 +11,8 @@
"DISMEMBER": "field_dress",
"DISSECT": "dissect_small",
"FULL": "butchery_small",
"QUICK": "butchery_small"
"QUICK": "butchery_small",
"BLEED": "bleed_small"
},
{
"FIELD_DRESS": "field_dress",
@@ -20,7 +21,8 @@
"DISMEMBER": "field_dress",
"DISSECT": "dissect_small",
"FULL": "butchery_small",
"QUICK": "butchery_small"
"QUICK": "butchery_small",
"BLEED": "bleed_small"
},
{
"FIELD_DRESS": "field_dress",
@@ -29,7 +31,8 @@
"DISMEMBER": "field_dress",
"DISSECT": "dissect_small",
"FULL": "butchery_small",
"QUICK": "butchery_small"
"QUICK": "butchery_small",
"BLEED": "bleed_small"
},
{
"FIELD_DRESS": "field_dress",
@@ -38,7 +41,8 @@
"DISMEMBER": "field_dress",
"DISSECT": "dissect_large",
"FULL": "full_butchery_large",
"QUICK": "butchery_large"
"QUICK": "butchery_large",
"BLEED": "bleed_large"
},
{
"FIELD_DRESS": "field_dress",
@@ -47,7 +51,8 @@
"DISMEMBER": "field_dress",
"DISSECT": "dissect_large",
"FULL": "full_butchery_large",
"QUICK": "butchery_large"
"QUICK": "butchery_large",
"BLEED": "bleed_large"
}
],
"1.2": [
@@ -58,7 +63,8 @@
"DISMEMBER": "field_dress_no_surface",
"DISSECT": "dissect_small_no_surface",
"FULL": "butchery_small_no_surface",
"QUICK": "butchery_small_no_surface"
"QUICK": "butchery_small_no_surface",
"BLEED": "bleed_small"
},
{
"FIELD_DRESS": "field_dress_no_surface",
@@ -67,7 +73,8 @@
"DISMEMBER": "field_dress_no_surface",
"DISSECT": "dissect_small_no_surface",
"FULL": "butchery_small_no_surface",
"QUICK": "butchery_small_no_surface"
"QUICK": "butchery_small_no_surface",
"BLEED": "bleed_small"
},
{
"FIELD_DRESS": "field_dress_no_surface",
@@ -76,7 +83,8 @@
"DISMEMBER": "field_dress_no_surface",
"DISSECT": "dissect_small_no_surface",
"FULL": "butchery_small_no_surface",
"QUICK": "butchery_small_no_surface"
"QUICK": "butchery_small_no_surface",
"BLEED": "bleed_small"
},
{
"FIELD_DRESS": "field_dress_no_surface",
@@ -85,7 +93,8 @@
"DISMEMBER": "field_dress_no_surface",
"DISSECT": "dissect_large_no_surface",
"FULL": "full_butchery_large_no_surface",
"QUICK": "butchery_large_no_surface"
"QUICK": "butchery_large_no_surface",
"BLEED": "bleed_large"
},
{
"FIELD_DRESS": "field_dress_no_surface",
@@ -94,7 +103,8 @@
"DISMEMBER": "field_dress_no_surface",
"DISSECT": "dissect_large_no_surface",
"FULL": "full_butchery_large_no_surface",
"QUICK": "butchery_large_no_surface"
"QUICK": "butchery_large_no_surface",
"BLEED": "bleed_large"
}
]
}
+18 -4
View File
@@ -483,6 +483,7 @@
"required_skills": [ [ "fabrication", 0 ] ],
"time": "2 m",
"qualities": [ [ { "id": "CUT", "level": 1 } ] ],
"byproducts": [ { "item": "duct_tape", "charges": [ 15, 25 ] } ],
"pre_terrain": "t_window_taped",
"post_terrain": "t_window"
},
@@ -495,6 +496,7 @@
"required_skills": [ [ "fabrication", 0 ] ],
"time": "2 m",
"qualities": [ [ { "id": "CUT", "level": 1 } ] ],
"byproducts": [ { "item": "duct_tape", "charges": [ 15, 25 ] } ],
"pre_terrain": "t_window_domestic_taped",
"post_terrain": "t_window_domestic"
},
@@ -507,6 +509,7 @@
"required_skills": [ [ "fabrication", 0 ] ],
"time": "2 m",
"qualities": [ [ { "id": "CUT", "level": 1 } ] ],
"byproducts": [ { "item": "duct_tape", "charges": [ 15, 25 ] } ],
"pre_terrain": "t_window_alarm_taped",
"post_terrain": "t_window_alarm"
},
@@ -519,6 +522,7 @@
"required_skills": [ [ "fabrication", 0 ] ],
"time": "2 m",
"qualities": [ [ { "id": "CUT", "level": 1 } ] ],
"byproducts": [ { "item": "duct_tape", "charges": [ 15, 25 ] } ],
"pre_terrain": "t_window_no_curtains_taped",
"post_terrain": "t_window_no_curtains"
},
@@ -1844,7 +1848,16 @@
"components": [
[ [ "2x4", 4 ] ],
[ [ "nail", 6 ] ],
[ [ "sheet", 2 ], [ "blanket", 1 ], [ "down_blanket", 1 ], [ "fur_blanket", 1 ] ]
[
[ "sheet", 2 ],
[ "blanket", 1 ],
[ "down_blanket", 1 ],
[ "fur_blanket", 1 ],
[ "quilt", 1 ],
[ "quilt_patchwork", 1 ],
[ "sleeping_bag", 1 ],
[ "sleeping_bag_fur", 1 ]
]
],
"pre_special": "check_empty",
"post_terrain": "f_makeshift_bed"
@@ -2712,7 +2725,8 @@
"time": "40 m",
"qualities": [ [ { "id": "HAMMER", "level": 2 } ], [ { "id": "SAW_W", "level": 2 } ] ],
"components": [
[ [ "2x4", 8 ] ],
[ [ "2x4", 4 ] ],
[ [ "2x4", 4 ], [ "wood_sheet", 1 ], [ "wood_panel", 2 ] ],
[ [ "rope_makeshift_30", 1 ], [ "rope_30", 1 ], [ "vine_30", 1 ] ],
[ [ "55gal_drum", 2 ], [ "30gal_drum", 2 ], [ "wooden_barrel", 2 ] ]
],
@@ -4063,7 +4077,7 @@
"required_skills": [ [ "fabrication", 2 ] ],
"time": "40 m",
"qualities": [ [ { "id": "HAMMER", "level": 2 } ], [ { "id": "SAW_M", "level": 1 } ] ],
"components": [ [ [ "rigid_plastic_sheet", 2 ] ], [ [ "nail", 16 ] ], [ [ "2x4", 4 ] ] ],
"components": [ [ [ "rigid_plastic_sheet", 1 ] ], [ [ "nail", 16 ] ], [ [ "2x4", 4 ] ] ],
"pre_terrain": "t_window_empty",
"post_terrain": "t_plastic_window"
},
@@ -4089,7 +4103,7 @@
"required_skills": [ [ "fabrication", 2 ] ],
"time": "40 m",
"qualities": [ [ { "id": "HAMMER", "level": 2 } ], [ { "id": "SAW_M", "level": 1 } ] ],
"components": [ [ [ "rigid_plastic_sheet", 1 ] ], [ [ "nail", 16 ] ], [ [ "2x4", 4 ] ] ],
"components": [ [ [ "rigid_plastic_sheet", 3 ] ], [ [ "nail", 16 ] ], [ [ "2x4", 4 ] ] ],
"pre_terrain": "t_window_empty",
"post_terrain": "t_reinforced_plastic_window"
},
+150 -46
View File
@@ -244,6 +244,24 @@
"name": [ "Pushed" ],
"desc": [ "AI tag used for monsters pushing each other. This is a bug if you have it." ]
},
{
"type": "effect_type",
"id": "venom_player1",
"name": [ "Weak Player Venom" ],
"desc": [ "Don't worry, you shouldn't get this." ],
"max_duration": 120,
"base_mods": { "hurt_amount": [ 10 ], "hurt_min": [ 1 ], "hurt_chance": [ 2 ] },
"//": "10+0,5/s dmg, from max duration avg 70 (range 10-130)"
},
{
"type": "effect_type",
"id": "venom_player2",
"name": [ "Strong Player Venom" ],
"desc": [ "Don't worry, you really shouldn't get this." ],
"max_duration": 120,
"base_mods": { "hurt_amount": [ 20 ], "hurt_min": [ 4 ], "hurt_chance": [ 2 ], "speed_mod": [ -50 ] },
"//": "20+2/s dmg, from max duration avg 260 (range 20-480)"
},
{
"type": "effect_type",
"id": "dripping_mechanical_fluid",
@@ -518,6 +536,7 @@
"rating": "bad",
"resist_traits": [ "POISRESIST" ],
"blood_analysis_description": "Systemic Inflammatory Agents",
"speed_name": "Poisoned",
"resist_effects": [ "prophylactic_antivenom" ],
"max_intensity": 125,
"max_effective_intensity": 100,
@@ -631,6 +650,8 @@
"id": "melatonin",
"name": [ "Melatonin Supplements" ],
"desc": [ "You took some melatonin supplements. These will help with sleep deprivation." ],
"max_duration": 100800,
"dur_add_perc": 60,
"rating": "good",
"blood_analysis_description": "Melatonin"
},
@@ -732,11 +753,14 @@
"type": "effect_type",
"id": "took_flumed",
"rating": "good",
"blood_analysis_description": "Antihistamines"
"blood_analysis_description": "Antihistamines",
"max_duration": 57600,
"dur_add_perc": 30
},
{
"type": "effect_type",
"id": "took_xanax",
"max_duration": 14400,
"dur_add_perc": 22,
"base_mods": { "stim_tick": [ 150 ], "stim_min": [ -1 ], "stim_min_val": [ -1 ] },
"rating": "good",
@@ -746,13 +770,17 @@
"type": "effect_type",
"id": "took_xanax_visible",
"name": [ "Took fast-acting sedative" ],
"desc": [ "You took a fast-acting sedative some time ago and you might still be under its influence." ]
"desc": [ "You took a fast-acting sedative some time ago and you might still be under its influence." ],
"max_duration": 18000,
"dur_add_perc": 20
},
{
"type": "effect_type",
"id": "took_prozac",
"rating": "good",
"blood_analysis_description": "Antidepressants"
"blood_analysis_description": "Antidepressants",
"max_duration": 64800,
"dur_add_perc": 40
},
{
"type": "effect_type",
@@ -762,7 +790,9 @@
"type": "effect_type",
"id": "took_prozac_visible",
"name": [ "Took antidepressant" ],
"desc": [ "You took an antidepressant some time ago and you might still be under its influence." ]
"desc": [ "You took an antidepressant some time ago and you might still be under its influence." ],
"max_duration": 72000,
"dur_add_perc": 35
},
{
"type": "effect_type",
@@ -775,7 +805,9 @@
"type": "effect_type",
"id": "took_thorazine",
"rating": "good",
"blood_analysis_description": "Antipsychotics"
"blood_analysis_description": "Antipsychotics",
"max_duration": 64800,
"dur_add_perc": 50
},
{
"type": "effect_type",
@@ -785,7 +817,9 @@
"type": "effect_type",
"id": "took_thorazine_visible",
"name": [ "Took antipsychotic" ],
"desc": [ "You took an antipsychotic some time ago and you might still be under its influence." ]
"desc": [ "You took an antipsychotic some time ago and you might still be under its influence." ],
"max_duration": 72000,
"dur_add_perc": 35
},
{
"type": "effect_type",
@@ -886,23 +920,37 @@
"int_dur_factor": "8 h",
"max_intensity": 3,
"base_mods": {
"pain_chance": [ 2, 1 ],
"pain_chance_bot": [ 200 ],
"pain_min": [ 1 ],
"pain_max_val": [ 30, 20 ],
"str_mod": [ -1 ],
"dex_mod": [ -1 ],
"vomit_chance": [ 1000, 1200 ],
"fatigue_min": [ 360, 180 ],
"fatigue_chance": [ -102 ]
"str_mod": [ -2 ],
"dex_mod": [ -3 ],
"int_mod": [ -2 ],
"vomit_chance": [ 900, 1200 ],
"vomit_tick": [ 180 ],
"thirst_min": [ 2 ],
"thirst_chance": [ 10, 100 ],
"thirst_tick": [ 30 ],
"speed_mod": [ -10, 0 ],
"stamina_min": [ -8, -4 ],
"stamina_max": [ -50, -20 ],
"stamina_chance": [ 3, 10 ],
"fatigue_min": [ 2, 0 ],
"fatigue_max": [ 10, 5 ],
"fatigue_chance": [ 110 ],
"fatigue_max_val": [ 700, 250 ],
"healing_rate": [ 0.01, 1 ]
},
"scaling_mods": {
"pain_max_val": [ 30, 20 ],
"str_mod": [ -1, -0.5 ],
"dex_mod": [ -1, -0.5 ],
"int_mod": [ -3, -1 ],
"vomit_chance": [ -400 ],
"fatigue_chance": [ 101 ]
"speed_mod": [ -10, -5 ],
"stamina_min": [ -6, -4 ],
"stamina_max": [ 15, 4 ],
"stamina_chance": [ -1, -2.5 ],
"fatigue_chance": [ -50 ],
"fatigue_tick": [ 0.5 ]
},
"//": "Stamina regen stops completely at int 3, but no stamina loss from then on",
"blood_analysis_description": "Bacterial Infection"
},
{
@@ -911,22 +959,38 @@
"name": [ "Recovering From Infection" ],
"desc": [ "You are recovering from an infection." ],
"rating": "bad",
"resist_traits": [ "INFRESIST" ],
"max_intensity": 3,
"int_dur_factor": "32 h",
"base_mods": {
"pain_chance": [ 100 ],
"pain_min": [ 1 ],
"pain_max_val": [ 30 ],
"str_mod": [ -1 ],
"dex_mod": [ -1 ],
"vomit_chance": [ 1000 ],
"fatigue_min": [ 360 ],
"fatigue_chance": [ -102 ],
"fatigue_tick": [ 6 ],
"pain_tick": [ 6 ],
"vomit_tick": [ 6 ]
"int_mod": [ -1 ],
"vomit_chance": [ 1200, 1800 ],
"vomit_tick": [ 180 ],
"thirst_min": [ 1, 0 ],
"thirst_max": [ 3, 2 ],
"thirst_chance": [ 10, 100 ],
"thirst_tick": [ 60 ],
"speed_mod": [ -5, 0 ],
"stamina_min": [ -8 ],
"stamina_chance": [ 10, 20 ],
"fatigue_min": [ 1, 0 ],
"fatigue_max": [ 5, 3 ],
"fatigue_chance": [ 210 ],
"fatigue_max_val": [ 500, 125 ],
"healing_rate": [ 0.5 ]
},
"scaling_mods": { "pain_max_val": [ 30 ], "str_mod": [ -1 ], "dex_mod": [ -1 ], "vomit_chance": [ -400 ], "fatigue_chance": [ 101 ] }
"scaling_mods": {
"str_mod": [ -1, -0.5 ],
"dex_mod": [ -1, -0.5 ],
"int_mod": [ -2, -1 ],
"vomit_chance": [ -500 ],
"speed_mod": [ -5, -4 ],
"stamina_min": [ -6, -3 ],
"stamina_chance": [ -1, -2.5 ],
"fatigue_chance": [ -60 ]
}
},
{
"type": "effect_type",
@@ -1034,6 +1098,8 @@
"type": "effect_type",
"id": "pblue",
"base_mods": { "rad_chance": [ 600 ], "rad_min": [ -1 ] },
"max_duration": 10800,
"dur_add_perc": 35,
"blood_analysis_description": "Prussian Blue",
"rating": "good"
},
@@ -1351,7 +1417,9 @@
"desc": [ "You have been vaccinated for the flu recently." ],
"blocks_effects": [ "flu" ],
"rating": "good",
"blood_analysis_description": "Antivirals"
"blood_analysis_description": "Antivirals",
"max_duration": 14515200,
"dur_add_perc": 50
},
{
"type": "effect_type",
@@ -1646,7 +1714,9 @@
"removes_effects": [ "shakes" ],
"base_mods": { "stim_tick": [ 150 ], "stim_chance": [ 2 ], "stim_min": [ 1 ], "stim_min_val": [ -1 ] },
"rating": "good",
"blood_analysis_description": "Benzodiazepines"
"blood_analysis_description": "Benzodiazepines",
"max_duration": 64800,
"dur_add_perc": 45
},
{
"type": "effect_type",
@@ -1656,7 +1726,9 @@
"You took anticonvulsant drugs some time ago and you might still be under its influence.\nPrescription note says its effect duration may vary, so your estimate may be inaccurate."
],
"rating": "good",
"blood_analysis_description": "Anticonvulsants"
"blood_analysis_description": "Anticonvulsants",
"max_duration": 64800,
"dur_add_perc": 40
},
{
"type": "effect_type",
@@ -2174,7 +2246,9 @@
"name": [ "Took weak antibiotic" ],
"desc": [
"You consumed mild antibiotic some time ago to fight off infection.\nIf you don't recover you may want to take another dose, but beware overdosage."
]
],
"max_duration": 54000,
"dur_add_perc": 35
},
{
"type": "effect_type",
@@ -2182,7 +2256,9 @@
"name": [ "Took antibiotic" ],
"desc": [
"You consumed antibiotic some time ago to fight off infection.\nIf you don't recover you may want to take another dose, but beware overdosage."
]
],
"max_duration": 54000,
"dur_add_perc": 25
},
{
"type": "effect_type",
@@ -2190,25 +2266,33 @@
"name": [ "Took strong antibiotic" ],
"desc": [
"You consumed prescription-grade antibiotic some time ago to fight off infection.\nIf you don't recover you may want to take another dose, but beware overdosage."
]
],
"max_duration": 54000,
"dur_add_perc": 25
},
{
"type": "effect_type",
"id": "weak_antibiotic",
"rating": "good",
"blood_analysis_description": "Antibiotics"
"blood_analysis_description": "Antibiotics",
"max_duration": 43200,
"dur_add_perc": 25
},
{
"type": "effect_type",
"id": "antibiotic",
"rating": "good",
"blood_analysis_description": "Antibiotics"
"blood_analysis_description": "Antibiotics",
"max_duration": 43200,
"dur_add_perc": 25
},
{
"type": "effect_type",
"id": "strong_antibiotic",
"rating": "good",
"blood_analysis_description": "Antibiotics"
"blood_analysis_description": "Antibiotics",
"max_duration": 43200,
"dur_add_perc": 25
},
{
"type": "effect_type",
@@ -2226,7 +2310,9 @@
"int_add_val": 1,
"max_intensity": 3,
"base_mods": { "vomit_tick": [ 60 ], "health_chance": [ 1500 ], "health_min": [ 1 ] },
"scaling_mods": { "health_min": [ -1.5 ], "health_min_val": [ -2 ], "vomit_tick": [ 120 ] }
"scaling_mods": { "health_min": [ -1.5 ], "health_min_val": [ -2 ], "vomit_tick": [ 120 ] },
"max_duration": 14400,
"dur_add_perc": 70
},
{
"type": "effect_type",
@@ -2234,7 +2320,9 @@
"name": [ "Antifungals" ],
"desc": [ "You are under the effects of an antifungal medicine or chemicals." ],
"rating": "good",
"blood_analysis_description": "Antifungals"
"blood_analysis_description": "Antifungals",
"max_duration": 28800,
"dur_add_perc": 50
},
{
"//": "This effect is a dummy effect for disabling certain things for a few turns after an electromagnetic pulse and does nothing on its own",
@@ -2355,49 +2443,65 @@
"type": "effect_type",
"id": "weary_1",
"name": [ "Lightly Weary" ],
"desc": [ "You've been pretty active for a while; operating at the highest levels of activity will be impaired." ]
"desc": [
"You've been pretty active for a while; operating at the highest levels of activity will be impaired.\nThe following move penalties are applied for the following activity levels:\nExtreme: 1.25x"
]
},
{
"type": "effect_type",
"id": "weary_2",
"name": [ "Moderately Weary" ],
"desc": [ "You've been quite active for a while; operating at higher levels of activity will be impaired." ]
"desc": [
"You've been quite active for a while; operating at higher levels of activity will be impaired.\nThe following move penalties are applied for the following activity levels:\nExtreme: 1.67x, Active: 1.33x"
]
},
{
"type": "effect_type",
"id": "weary_3",
"name": [ "Weary" ],
"desc": [ "You've been very active for a while, and need to slow down for a bit." ]
"desc": [
"You've been very active for a while, and need to slow down for a bit.\nThe following move penalties are applied for the following activity levels:\nExtreme: 2.5x, Active: 2x, Brisk: 1.5x"
]
},
{
"type": "effect_type",
"id": "weary_4",
"name": [ "Very Weary" ],
"desc": [ "You've been extremely active for a while, and need to slow down." ]
"desc": [
"You've been extremely active for a while, and need to slow down.\nThe following move penalties are applied for the following activity levels:\nExtreme: 5x, Active: 4x, Brisk: 3x, Moderate: 2x"
]
},
{
"type": "effect_type",
"id": "weary_5",
"name": [ "Extremely Weary" ],
"desc": [ "You've been extremely active for a while, and can't take much more activity." ]
"desc": [
"You've been extremely active for a while, and can't take much more activity.\nThe following move penalties are applied for the following activity levels:\nExtreme: 10x, Active: 8x, Brisk: 6x, Moderate: 4x, Light: 2x"
]
},
{
"type": "effect_type",
"id": "weary_6",
"name": [ "Extremely Weary" ],
"desc": [ "You've been extremely active for a while, and really need to get some rest." ]
"desc": [
"You've been extremely active for a while, and really need to get some rest.\nThe following move penalties are applied for the following activity levels:\nExtreme: 10x, Active: 8x, Brisk: 6x, Moderate: 4x, Light: 2x"
]
},
{
"type": "effect_type",
"id": "weary_7",
"name": [ "Extremely Weary" ],
"desc": [ "You've been extremely active for a while; it's time to stop." ]
"desc": [
"You've been extremely active for a while; it's time to stop.\nThe following move penalties are applied for the following activity levels:\nExtreme: 10x, Active: 8x, Brisk: 6x, Moderate: 4x, Light: 2x"
]
},
{
"type": "effect_type",
"id": "weary_8",
"name": [ "Extremely Weary" ],
"desc": [ "You've been extremely active for a while, and can no longer keep pushing." ]
"desc": [
"You've been extremely active for a while, and can no longer keep pushing.\nThe following move penalties are applied for the following activity levels:\nExtreme: 10x, Active: 8x, Brisk: 6x, Moderate: 4x, Light: 2x"
]
},
{
"type": "effect_type",
+10 -6
View File
@@ -42,7 +42,7 @@
"decay_amount_factor": 2,
"is_splattering": true,
"half_life": "2 days",
"phase": "solid",
"phase": "liquid",
"accelerated_decay": true,
"display_field": true,
"looks_like": "fd_blood"
@@ -61,7 +61,7 @@
"decay_amount_factor": 2,
"is_splattering": true,
"half_life": "2 days",
"phase": "solid",
"phase": "liquid",
"accelerated_decay": true,
"display_field": true,
"looks_like": "fd_blood_veggy"
@@ -238,7 +238,7 @@
"description_affix": "covered_in",
"is_splattering": true,
"priority": 2,
"half_life": "6 hours",
"half_life": "30 minutes",
"phase": "liquid",
"display_field": true,
"looks_like": "fd_sap"
@@ -647,7 +647,11 @@
"id": "fd_flame_burst",
"type": "field_type",
"legacy_enum_id": 18,
"intensity_levels": [ { "name": { "ctxt": "noun", "str": "fire" }, "sym": "5", "color": "red", "dangerous": true, "light_emitted": 20 } ],
"intensity_levels": [
{ "name": { "ctxt": "noun", "str": "fire" }, "sym": "5", "color": "red", "dangerous": true, "light_emitted": 20 },
{ "//": "repeat last entry" },
{ "//": "repeat last entry" }
],
"description_affix": "on",
"has_fire": true,
"priority": 4,
@@ -909,7 +913,7 @@
"decay_amount_factor": 2,
"is_splattering": true,
"half_life": "2 days",
"phase": "solid",
"phase": "liquid",
"accelerated_decay": true,
"display_field": true,
"looks_like": "fd_blood_insect"
@@ -928,7 +932,7 @@
"decay_amount_factor": 2,
"is_splattering": true,
"half_life": "2 days",
"phase": "solid",
"phase": "liquid",
"accelerated_decay": true,
"display_field": true,
"looks_like": "fd_blood_invertebrate"
+14 -5
View File
@@ -62,6 +62,12 @@
"info": "This gear is <info>strapped</info> onto you.",
"conflicts": [ "OUTER", "SKINTIGHT", "WAIST", "PERSONAL", "AURA" ]
},
{
"id": "BIONIC_INSTALLATION_DATA",
"type": "json_flag",
"context": [ "GENERIC" ],
"info": "This item <info>provides</info> instructions and other required data for several bionics, allowing installation of them with <good>minimal failure chance</good>."
},
{
"id": "BIONIC_NPC_USABLE",
"type": "json_flag",
@@ -151,6 +157,11 @@
"type": "json_flag",
"context": [ "GENERIC" ]
},
{
"id": "BLED",
"type": "json_flag",
"context": [ "GENERIC" ]
},
{
"id": "CANT_HEAL_EVERYONE",
"type": "json_flag",
@@ -449,7 +460,7 @@
"id": "PREDATOR_FUN",
"type": "json_flag",
"context": [ "COMESTIBLE" ],
"info": "Designates a food that is usually undesirable but gives a morale bonus to characters with predator mutations."
"//": "Designates a food that is usually undesirable but gives a morale bonus to characters with predator mutations."
},
{
"id": "STAB",
@@ -569,14 +580,12 @@
{
"id": "MUSHY",
"type": "json_flag",
"context": [ "COMESTIBLE" ],
"info": "This food was frozen and is now <bad>mushy</bad> and tasteless and <bad>will go bad</bad> after freezing again."
"context": [ "COMESTIBLE" ]
},
{
"id": "FREEZERBURN",
"type": "json_flag",
"context": [ "COMESTIBLE" ],
"info": "This food was frozen and is now <bad>mushy</bad> and tasteless and <bad>will go bad</bad> after freezing again."
"context": [ "COMESTIBLE" ]
},
{
"id": "PSYSHIELD_PARTIAL",
@@ -180,7 +180,7 @@
"move_cost_mod": -1,
"coverage": 90,
"required_str": 10,
"flags": [ "CONTAINER", "PLACE_ITEM", "BLOCKSDOOR", "MINEABLE" ],
"flags": [ "CONTAINER", "PLACE_ITEM", "BLOCKSDOOR", "MINEABLE", "NO_SELF_CONNECT" ],
"deconstruct": {
"items": [
{ "item": "sheet_metal", "count": [ 2, 6 ] },
@@ -407,7 +407,7 @@
"items": [
{ "item": "tanned_hide", "count": [ 1, 2 ] },
{ "item": "2x4", "count": [ 2, 4 ] },
{ "item": "scrap", "count": [ 2, 6 ] },
{ "item": "spring", "count": [ 1, 2 ] },
{ "item": "wire", "count": [ 1, 4 ] }
]
},
@@ -143,7 +143,7 @@
"color": "light_gray",
"move_cost_mod": -1,
"required_str": 10,
"flags": [ "PLACE_ITEM", "BLOCKSDOOR", "MINEABLE", "LIQUIDCONT" ],
"flags": [ "PLACE_ITEM", "BLOCKSDOOR", "MINEABLE", "LIQUIDCONT", "TRANSPARENT" ],
"bash": {
"str_min": 16,
"str_max": 40,
@@ -24,7 +24,7 @@
"required_str": -1,
"flags": [ "TRANSPARENT", "TINY", "FLAMMABLE_ASH", "NOCOLLIDE", "FLOWER" ],
"examine_action": "harvest_furn_nectar",
"harvest_by_season": [ { "seasons": [ "spring", "summer", "autumn" ], "entries": [ { "drop": "raw_dandelion", "base_num": [ 1, 4 ] } ] } ],
"harvest_by_season": [ { "seasons": [ "spring", "summer", "autumn" ], "id": "dandelion_harv" } ],
"bash": { "str_min": 2, "str_max": 6, "sound": "crunch.", "sound_fail": "whish." }
},
{
@@ -39,7 +39,7 @@
"required_str": -1,
"flags": [ "TRANSPARENT", "TINY", "FLAMMABLE_ASH", "NOCOLLIDE", "FLOWER" ],
"examine_action": "harvest_furn_nectar",
"harvest_by_season": [ { "seasons": [ "spring", "summer", "autumn" ], "entries": [ { "drop": "raw_burdock", "base_num": [ 1, 4 ] } ] } ],
"harvest_by_season": [ { "seasons": [ "spring", "summer", "autumn" ], "id": "burdoc_harv" } ],
"bash": { "str_min": 2, "str_max": 6, "sound": "crunch.", "sound_fail": "whish." }
},
{
@@ -54,7 +54,7 @@
"required_str": -1,
"flags": [ "TRANSPARENT", "TINY", "FLAMMABLE_ASH", "NOCOLLIDE", "FLOWER" ],
"examine_action": "harvest_furn",
"harvest_by_season": [ { "seasons": [ "summer", "autumn" ], "entries": [ { "drop": "chamomile", "base_num": [ 4, 8 ] } ] } ],
"harvest_by_season": [ { "seasons": [ "summer", "autumn" ], "id": "chamomille_harv" } ],
"bash": { "str_min": 2, "str_max": 6, "sound": "crunch.", "sound_fail": "whish." }
},
{
@@ -69,12 +69,7 @@
"required_str": -1,
"flags": [ "TRANSPARENT", "TINY", "FLAMMABLE_ASH", "NOCOLLIDE", "FLOWER" ],
"examine_action": "harvest_furn_nectar",
"harvest_by_season": [
{
"seasons": [ "spring", "summer", "autumn" ],
"entries": [ { "drop": "withered", "base_num": [ 1, 2 ] }, { "drop": "seed_flower", "base_num": [ 1, 2 ] } ]
}
],
"harvest_by_season": [ { "seasons": [ "spring", "summer", "autumn" ], "id": "tulip_harv" } ],
"bash": { "str_min": 2, "str_max": 6, "sound": "crunch.", "sound_fail": "whish." }
},
{
@@ -89,16 +84,7 @@
"required_str": -1,
"flags": [ "TRANSPARENT", "TINY", "FLAMMABLE_ASH", "NOCOLLIDE", "FLOWER" ],
"examine_action": "harvest_furn_nectar",
"harvest_by_season": [
{
"seasons": [ "spring", "summer", "autumn" ],
"entries": [
{ "drop": "withered", "base_num": [ 1, 2 ] },
{ "drop": "seed_spurge", "base_num": [ 1, 2 ] },
{ "drop": "spurge", "base_num": [ 1, 4 ] }
]
}
],
"harvest_by_season": [ { "seasons": [ "spring", "summer", "autumn" ], "id": "spurge_harv" } ],
"bash": { "str_min": 2, "str_max": 6, "sound": "crunch.", "sound_fail": "whish." }
},
{
@@ -113,11 +99,8 @@
"flags": [ "TRANSPARENT", "TINY", "FLAMMABLE_ASH", "NOCOLLIDE", "ORGANIC" ],
"examine_action": "harvest_furn",
"harvest_by_season": [
{ "seasons": [ "winter" ], "entries": [ { "drop": "cattail_rhizome" } ] },
{
"seasons": [ "spring", "summer", "autumn" ],
"entries": [ { "drop": "cattail_rhizome" }, { "drop": "cattail_stalk", "base_num": [ 1, 4 ] } ]
}
{ "seasons": [ "winter" ], "id": "cattails_winter_harv" },
{ "seasons": [ "spring", "summer", "autumn" ], "id": "cattails_summer_harv" }
],
"bash": { "str_min": 2, "str_max": 6, "sound": "crunch.", "sound_fail": "whish." }
},
@@ -133,12 +116,7 @@
"required_str": -1,
"flags": [ "TRANSPARENT", "TINY", "FLAMMABLE_ASH", "NOCOLLIDE", "FLOWER" ],
"examine_action": "harvest_furn_nectar",
"harvest_by_season": [
{
"seasons": [ "spring", "summer", "autumn" ],
"entries": [ { "drop": "withered", "base_num": [ 1, 2 ] }, { "drop": "seed_flower", "base_num": [ 1, 2 ] } ]
}
],
"harvest_by_season": [ { "seasons": [ "spring", "summer", "autumn" ], "id": "black_eyed_susan_harv" } ],
"//": "Add flower and bud spawns once useful.",
"bash": { "str_min": 2, "str_max": 6, "sound": "crunch.", "sound_fail": "whish." }
},
@@ -154,12 +132,7 @@
"required_str": -1,
"flags": [ "TRANSPARENT", "TINY", "FLAMMABLE_ASH", "NOCOLLIDE", "ORGANIC" ],
"examine_action": "harvest_furn_nectar",
"harvest_by_season": [
{
"seasons": [ "spring", "summer", "autumn" ],
"entries": [ { "drop": "withered", "base_num": [ 1, 2 ] }, { "drop": "seed_flower", "base_num": [ 1, 2 ] } ]
}
],
"harvest_by_season": [ { "seasons": [ "spring", "summer", "autumn" ], "id": "lily_harv" } ],
"//": "Add flower and bud spawns once useful.",
"bash": { "str_min": 2, "str_max": 6, "sound": "crunch.", "sound_fail": "whish." }
},
@@ -175,12 +148,7 @@
"required_str": -1,
"flags": [ "TRANSPARENT", "TINY", "FLAMMABLE_ASH", "ORGANIC" ],
"examine_action": "harvest_furn_nectar",
"harvest_by_season": [
{
"seasons": [ "spring", "summer", "autumn" ],
"entries": [ { "drop": "withered", "base_num": [ 1, 2 ] }, { "drop": "lotus", "base_num": [ 1, 2 ] } ]
}
],
"harvest_by_season": [ { "seasons": [ "spring", "summer", "autumn" ], "id": "lotus_harv" } ],
"//": "Add flower and bud spawns once useful.",
"bash": { "str_min": 2, "str_max": 6, "sound": "crunch.", "sound_fail": "whish." }
},
@@ -196,7 +164,7 @@
"required_str": -1,
"flags": [ "TRANSPARENT", "TINY", "FLAMMABLE_ASH", "NOCOLLIDE", "FLOWER" ],
"examine_action": "harvest_furn_nectar",
"harvest_by_season": [ { "seasons": [ "summer" ], "entries": [ { "drop": "sunflower" } ] } ],
"harvest_by_season": [ { "seasons": [ "summer" ], "id": "sunflower_harv" } ],
"bash": { "str_min": 2, "str_max": 6, "sound": "crunch.", "sound_fail": "whish." }
},
{
@@ -210,7 +178,7 @@
"required_str": -1,
"flags": [ "TRANSPARENT", "TINY", "FLAMMABLE_ASH", "NOCOLLIDE", "FLOWER" ],
"examine_action": "harvest_furn",
"harvest_by_season": [ { "seasons": [ "spring", "summer", "autumn" ], "entries": [ { "drop": "withered", "base_num": [ 1, 2 ] } ] } ],
"harvest_by_season": [ { "seasons": [ "spring", "summer", "autumn" ], "id": "lilypad_harv" } ],
"bash": { "str_min": 2, "str_max": 6, "sound": "crunch.", "sound_fail": "whish." }
},
{
@@ -225,12 +193,7 @@
"required_str": -1,
"flags": [ "TRANSPARENT", "TINY", "FLAMMABLE_ASH", "NOCOLLIDE", "FLOWER" ],
"examine_action": "harvest_furn_nectar",
"harvest_by_season": [
{
"seasons": [ "spring", "summer", "autumn" ],
"entries": [ { "drop": "withered", "base_num": [ 1, 2 ] }, { "drop": "seed_flower", "base_num": [ 1, 2 ] } ]
}
],
"harvest_by_season": [ { "seasons": [ "spring", "summer", "autumn" ], "id": "bluebell_harv" } ],
"bash": { "str_min": 2, "str_max": 6, "sound": "crunch.", "sound_fail": "whish." }
},
{
@@ -259,7 +222,7 @@
"required_str": -1,
"flags": [ "TRANSPARENT", "TINY", "FLAMMABLE_ASH", "NOCOLLIDE", "FLOWER" ],
"examine_action": "harvest_furn_nectar",
"harvest_by_season": [ { "seasons": [ "spring", "summer", "autumn" ], "entries": [ { "drop": "chicory_raw", "base_num": [ 1, 2 ] } ] } ],
"harvest_by_season": [ { "seasons": [ "spring", "summer", "autumn" ], "id": "chicory_harv" } ],
"bash": { "str_min": 2, "str_max": 6, "sound": "crunch.", "sound_fail": "whish." }
},
{
@@ -274,12 +237,7 @@
"required_str": -1,
"flags": [ "TRANSPARENT", "TINY", "FLAMMABLE_ASH", "NOCOLLIDE", "ORGANIC" ],
"examine_action": "harvest_furn_nectar",
"harvest_by_season": [
{
"seasons": [ "spring", "summer", "autumn" ],
"entries": [ { "drop": "datura_seed", "base_num": [ 2, 6 ] }, { "drop": "withered", "base_num": [ 1, 2 ] } ]
}
],
"harvest_by_season": [ { "seasons": [ "spring", "summer", "autumn" ], "id": "datura_harv" } ],
"bash": { "str_min": 2, "str_max": 6, "sound": "crunch.", "sound_fail": "whish." }
},
{
@@ -317,7 +275,7 @@
"required_str": -1,
"flags": [ "TRANSPARENT", "TINY", "FLAMMABLE_ASH", "NOCOLLIDE", "FLOWER" ],
"examine_action": "harvest_furn",
"harvest_by_season": [ { "seasons": [ "summer", "autumn" ], "entries": [ { "drop": "seed_mustard", "base_num": [ 2, 6 ] } ] } ],
"harvest_by_season": [ { "seasons": [ "summer", "autumn" ], "id": "mustard_harv" } ],
"bash": { "str_min": 2, "str_max": 6, "sound": "crunch.", "sound_fail": "whish." }
},
{
@@ -333,12 +291,7 @@
"transforms_into": "t_tree_alder_harvested",
"examine_action": "harvest_ter",
"looks_like": "t_tree_hickory",
"harvest_by_season": [
{
"seasons": [ "spring", "autumn" ],
"entries": [ { "drop": "alder_bark", "base_num": [ 2, 5 ], "scale_num": [ 0, 1 ] } ]
}
],
"harvest_by_season": [ { "seasons": [ "spring", "autumn" ], "id": "alder_harv" } ],
"bash": {
"str_min": 80,
"str_max": 180,
@@ -10,7 +10,7 @@
"move_cost_mod": -1,
"coverage": 35,
"required_str": -1,
"flags": [ "TRANSPARENT", "AUTODOC", "CONTAINER" ],
"flags": [ "TRANSPARENT", "AUTODOC", "CONTAINER", "NO_PICKUP_ON_EXAMINE" ],
"examine_action": "autodoc",
"surgery_skill_multiplier": 1.0,
"deconstruct": {
@@ -172,7 +172,7 @@
"flags": [ "BLOCKSDOOR", "TRANSPARENT" ],
"deconstruct": {
"items": [
{ "item": "scrap", "count": [ 4, 6 ] },
{ "item": "spring", "count": [ 4, 6 ] },
{ "item": "plastic_chunk", "count": [ 3, 5 ] },
{ "item": "circuit", "count": 1 },
{ "item": "2x4", "count": 4 },
@@ -67,7 +67,14 @@
"floor_bedding_warmth": 500,
"bonus_fire_warmth_feet": 1000,
"required_str": 7,
"deconstruct": { "items": [ { "item": "pipe", "count": 10 }, { "item": "rag", "count": [ 30, 33 ] }, { "item": "rope_6" } ] },
"deconstruct": {
"items": [
{ "item": "pipe", "count": 10 },
{ "item": "rag", "count": [ 30, 33 ] },
{ "item": "rope_6" },
{ "item": "spring", "count": [ 2, 3 ] }
]
},
"flags": [ "TRANSPARENT", "FLAMMABLE_ASH", "ORGANIC", "MOUNTABLE", "CAN_SIT" ],
"bash": {
"str_min": 12,
@@ -118,7 +125,12 @@
"floor_bedding_warmth": 500,
"required_str": 10,
"deconstruct": {
"items": [ { "item": "2x4", "count": 12 }, { "item": "rag", "count": [ 30, 33 ] }, { "item": "nail", "charges": [ 8, 10 ] } ]
"items": [
{ "item": "2x4", "count": 12 },
{ "item": "rag", "count": [ 30, 33 ] },
{ "item": "nail", "charges": [ 8, 10 ] },
{ "item": "spring", "charges": [ 2, 3 ] }
]
},
"flags": [ "TRANSPARENT", "FLAMMABLE_ASH", "ORGANIC", "BLOCKSDOOR", "MOUNTABLE", "CAN_SIT" ],
"bash": {
@@ -130,6 +142,7 @@
{ "item": "2x4", "count": [ 2, 5 ] },
{ "item": "nail", "charges": [ 3, 8 ] },
{ "item": "splinter", "count": [ 1, 2 ] },
{ "item": "scrap", "count": [ 0, 5 ] },
{ "item": "rag", "count": [ 20, 30 ] }
]
}
@@ -201,7 +201,7 @@
"floor_bedding_warmth": 200,
"required_str": 3,
"deconstruct": { "items": [ { "item": "box_large", "count": 1 } ] },
"max_volume": "1500 L",
"max_volume": "324 L",
"deployed_item": "box_large",
"examine_action": "deployed_furniture",
"flags": [
@@ -147,7 +147,11 @@
"flags": [ "NOITEM", "DOOR", "PERMEABLE", "FLAMMABLE_ASH", "MOUNTABLE" ],
"open": "f_beaded_door_o",
"deconstruct": {
"items": [ { "item": "stick_long", "count": 1 }, { "item": "string_36", "count": 20 }, { "item": "wooden_bead", "count": 2000 } ]
"items": [
{ "item": "stick_long", "count": 1 },
{ "item": "string_36", "count": 20 },
{ "item": "wooden_bead", "charges": 2000 }
]
},
"bash": {
"str_min": 1,
@@ -158,7 +162,7 @@
"items": [
{ "item": "string_36", "count": [ 3, 15 ] },
{ "item": "stick_long", "count": 1 },
{ "item": "wooden_bead", "count": [ 200, 500 ] }
{ "item": "wooden_bead", "charges": [ 200, 500 ] }
]
}
},
@@ -175,7 +179,11 @@
"flags": [ "TRANSPARENT", "FLAMMABLE_ASH", "FLAT" ],
"close": "f_beaded_door",
"deconstruct": {
"items": [ { "item": "stick_long", "count": 1 }, { "item": "string_36", "count": 20 }, { "item": "wooden_bead", "count": 2000 } ]
"items": [
{ "item": "stick_long", "count": 1 },
{ "item": "string_36", "count": 20 },
{ "item": "wooden_bead", "charges": 2000 }
]
},
"bash": {
"str_min": 1,
@@ -186,7 +194,7 @@
"items": [
{ "item": "string_36", "count": [ 3, 15 ] },
{ "item": "stick_long", "count": 1 },
{ "item": "wooden_bead", "count": [ 200, 500 ] }
{ "item": "wooden_bead", "charges": [ 200, 500 ] }
]
}
},
@@ -118,7 +118,7 @@
"type": "terrain",
"id": "t_pontoon_dp",
"name": "pontoon bridge",
"description": "A floating temporary bridge, like the ones army used to make to cross rivers.",
"description": "A floating temporary bridge over still water, like the ones armies used to make to cross lakes.",
"looks_like": "t_pontoon",
"symbol": "8",
"color": "brown",
@@ -141,7 +141,7 @@
"type": "terrain",
"id": "t_riverbridge_dp",
"name": "river bridge",
"description": "A floating temporary bridge, like the ones army used to make to cross rivers.",
"description": "A floating temporary bridge over flowing water, like the ones armies used to make to cross rivers.",
"looks_like": "t_pontoon",
"symbol": "8",
"color": "brown",
@@ -156,7 +156,7 @@
"str_max": 80,
"sound": "smash!",
"sound_fail": "whump!",
"ter_set": "t_water_dp",
"ter_set": "t_water_moving_dp",
"items": [ { "item": "2x4", "count": 2, "prob": 25 }, { "item": "splinter", "count": [ 2, 4 ] } ]
}
},
@@ -2206,7 +2206,6 @@
"roof": "t_flat_roof",
"flags": [ "TRANSPARENT", "NOITEM", "PERMEABLE", "CONNECT_TO_WALL", "THIN_OBSTACLE" ],
"open": "t_door_bar_o",
"close": "t_door_bar_locked",
"bash": {
"str_min": 30,
"str_max": 210,
@@ -2454,7 +2453,7 @@
"move_cost": 1,
"coverage": 95,
"roof": "t_metal_flat_roof",
"flags": [ "NOITEM", "CONNECT_TO_WALL", "BLOCK_WIND" ],
"flags": [ "CONNECT_TO_WALL", "FLAT", "ROAD" ],
"close": "t_door_metal_bulkhead_c",
"bash": {
"str_min": 80,
@@ -305,7 +305,7 @@
"color": "light_red",
"move_cost": 2,
"roof": "t_flat_roof",
"flags": [ "TRANSPARENT", "FLAMMABLE_HARD", "SUPPORTS_ROOF", "COLLAPSES", "INDOORS", "FLAT" ],
"flags": [ "TRANSPARENT", "FLAMMABLE_HARD", "SUPPORTS_ROOF", "COLLAPSES", "INDOORS", "FLAT", "ROAD" ],
"bash": {
"sound": "SMASH!",
"ter_set": "t_null",
@@ -703,7 +703,7 @@
"sound": "SMASH!",
"items": [ { "item": "wax", "count": [ 1, 3 ] } ]
},
"flags": [ "TRANSPARENT", "FLAMMABLE_HARD", "SUPPORTS_ROOF", "COLLAPSES", "INDOORS", "FLAT" ]
"flags": [ "TRANSPARENT", "FLAMMABLE_HARD", "SUPPORTS_ROOF", "COLLAPSES", "INDOORS", "FLAT", "ROAD" ]
},
{
"type": "terrain",
@@ -12,7 +12,7 @@
"transforms_into": "t_tree_walnut_harvested",
"examine_action": "harvest_ter",
"looks_like": "t_tree_hickory",
"harvest_by_season": [ { "seasons": [ "autumn" ], "entries": [ { "drop": "walnut", "base_num": [ 5, 12 ], "scale_num": [ 0, 0.5 ] } ] } ],
"harvest_by_season": [ { "seasons": [ "autumn" ], "id": "walnut_harv" } ],
"bash": {
"str_min": 80,
"str_max": 180,
@@ -56,9 +56,7 @@
"flags": [ "FLAMMABLE_ASH", "NOITEM", "SUPPORTS_ROOF", "TREE", "REDUCE_SCENT" ],
"transforms_into": "t_tree_blackjack_harvested",
"examine_action": "harvest_ter",
"harvest_by_season": [
{ "seasons": [ "spring", "summer", "autumn", "winter" ], "entries": [ { "drop": "tanbark", "base_num": [ 1, 2 ] } ] }
],
"harvest_by_season": [ { "seasons": [ "spring", "summer", "autumn", "winter" ], "id": "blackjack_harv" } ],
"bash": {
"str_min": 80,
"str_max": 180,
@@ -102,7 +100,7 @@
"transforms_into": "t_tree_chestnut_harvested",
"examine_action": "harvest_ter",
"looks_like": "t_tree_hickory",
"harvest_by_season": [ { "seasons": [ "autumn" ], "entries": [ { "drop": "chestnut", "base_num": [ 5, 12 ], "scale_num": [ 0, 0.5 ] } ] } ],
"harvest_by_season": [ { "seasons": [ "autumn" ], "id": "chestnut_harv" } ],
"bash": {
"str_min": 80,
"str_max": 180,
@@ -146,7 +144,7 @@
"transforms_into": "t_tree_beech_harvested",
"examine_action": "harvest_ter",
"looks_like": "t_tree_hickory",
"harvest_by_season": [ { "seasons": [ "autumn" ], "entries": [ { "drop": "beech_nuts", "base_num": [ 5, 12 ], "scale_num": [ 0, 0.5 ] } ] } ],
"harvest_by_season": [ { "seasons": [ "autumn" ], "id": "beech_harv" } ],
"bash": {
"str_min": 80,
"str_max": 180,
@@ -190,7 +188,7 @@
"transforms_into": "t_tree_hazelnut_harvested",
"examine_action": "harvest_ter",
"looks_like": "t_tree_hickory",
"harvest_by_season": [ { "seasons": [ "autumn" ], "entries": [ { "drop": "hazelnut", "base_num": [ 5, 12 ], "scale_num": [ 0, 0.5 ] } ] } ],
"harvest_by_season": [ { "seasons": [ "autumn" ], "id": "hazelnut_harv" } ],
"bash": {
"str_min": 80,
"str_max": 180,
@@ -234,7 +232,7 @@
"flags": [ "FLAMMABLE_ASH", "NOITEM", "SUPPORTS_ROOF", "TREE", "REDUCE_SCENT" ],
"transforms_into": "t_tree_harvested",
"examine_action": "harvest_ter",
"harvest_by_season": [ { "seasons": [ "autumn" ], "entries": [ { "drop": "acorns", "base_num": [ 5, 12 ], "scale_num": [ 0, 0.5 ] } ] } ],
"harvest_by_season": [ { "seasons": [ "autumn" ], "id": "oak_harv" } ],
"bash": {
"str_min": 80,
"str_max": 180,
@@ -360,7 +358,7 @@
"flags": [ "FLAMMABLE_ASH", "NOITEM", "SUPPORTS_ROOF", "TREE", "REDUCE_SCENT" ],
"transforms_into": "t_tree_apple_harvested",
"examine_action": "harvest_ter_nectar",
"harvest_by_season": [ { "seasons": [ "autumn" ], "entries": [ { "drop": "apple", "base_num": [ 2, 5 ], "scale_num": [ 0, 0.5 ] } ] } ],
"harvest_by_season": [ { "seasons": [ "autumn" ], "id": "apple_harv" } ],
"bash": {
"str_min": 80,
"str_max": 180,
@@ -407,7 +405,7 @@
"flags": [ "FLAMMABLE_ASH", "NOITEM", "SUPPORTS_ROOF", "TREE", "REDUCE_SCENT" ],
"transforms_into": "t_tree_pear_harvested",
"examine_action": "harvest_ter_nectar",
"harvest_by_season": [ { "seasons": [ "autumn" ], "entries": [ { "drop": "pear", "base_num": [ 2, 5 ], "scale_num": [ 0, 0.5 ] } ] } ],
"harvest_by_season": [ { "seasons": [ "autumn" ], "id": "pear_harv" } ],
"bash": {
"str_min": 80,
"str_max": 180,
@@ -454,15 +452,7 @@
"transforms_into": "t_tree_coffee_harvested",
"looks_like": "t_tree_plum",
"examine_action": "harvest_ter_nectar",
"harvest_by_season": [
{
"seasons": [ "autumn" ],
"entries": [
{ "drop": "coffee_pod", "base_num": [ 4, 10 ], "scale_num": [ 0, 0.5 ] },
{ "drop": "tea_raw", "base_num": [ 1, 3 ], "scale_num": [ 0, 0.5 ] }
]
}
],
"harvest_by_season": [ { "seasons": [ "autumn" ], "id": "coffee_harv" } ],
"bash": {
"str_min": 80,
"str_max": 180,
@@ -509,7 +499,7 @@
"flags": [ "FLAMMABLE_ASH", "NOITEM", "SUPPORTS_ROOF", "TREE", "REDUCE_SCENT" ],
"transforms_into": "t_tree_cherry_harvested",
"examine_action": "harvest_ter_nectar",
"harvest_by_season": [ { "seasons": [ "summer" ], "entries": [ { "drop": "cherries", "base_num": [ 6, 18 ], "scale_num": [ 0, 0.5 ] } ] } ],
"harvest_by_season": [ { "seasons": [ "summer" ], "id": "cherry_harv" } ],
"bash": {
"str_min": 80,
"str_max": 180,
@@ -556,7 +546,7 @@
"flags": [ "FLAMMABLE_ASH", "NOITEM", "SUPPORTS_ROOF", "TREE", "REDUCE_SCENT" ],
"transforms_into": "t_tree_juniper_harvested",
"examine_action": "harvest_ter_nectar",
"harvest_by_season": [ { "seasons": [ "autumn" ], "entries": [ { "drop": "juniper", "base_num": [ 12, 24 ], "scale_num": [ 0, 0.5 ] } ] } ],
"harvest_by_season": [ { "seasons": [ "autumn" ], "id": "juniper_harv" } ],
"bash": {
"str_min": 80,
"str_max": 180,
@@ -603,7 +593,7 @@
"flags": [ "FLAMMABLE_ASH", "NOITEM", "SUPPORTS_ROOF", "TREE", "REDUCE_SCENT" ],
"transforms_into": "t_tree_peach_harvested",
"examine_action": "harvest_ter_nectar",
"harvest_by_season": [ { "seasons": [ "summer" ], "entries": [ { "drop": "peach", "base_num": [ 2, 5 ], "scale_num": [ 0, 0.5 ] } ] } ],
"harvest_by_season": [ { "seasons": [ "summer" ], "id": "peach_harv" } ],
"bash": {
"str_min": 80,
"str_max": 180,
@@ -650,7 +640,7 @@
"flags": [ "FLAMMABLE_ASH", "NOITEM", "SUPPORTS_ROOF", "TREE", "REDUCE_SCENT" ],
"transforms_into": "t_tree_apricot_harvested",
"examine_action": "harvest_ter_nectar",
"harvest_by_season": [ { "seasons": [ "summer" ], "entries": [ { "drop": "apricot", "base_num": [ 2, 5 ], "scale_num": [ 0, 0.5 ] } ] } ],
"harvest_by_season": [ { "seasons": [ "summer" ], "id": "apricot_harv" } ],
"bash": {
"str_min": 80,
"str_max": 180,
@@ -697,7 +687,7 @@
"flags": [ "FLAMMABLE_ASH", "NOITEM", "SUPPORTS_ROOF", "TREE", "REDUCE_SCENT" ],
"transforms_into": "t_tree_plum_harvested",
"examine_action": "harvest_ter_nectar",
"harvest_by_season": [ { "seasons": [ "summer" ], "entries": [ { "drop": "plums", "base_num": [ 2, 5 ], "scale_num": [ 0, 0.5 ] } ] } ],
"harvest_by_season": [ { "seasons": [ "summer" ], "id": "plum_harv" } ],
"bash": {
"str_min": 80,
"str_max": 180,
@@ -744,15 +734,7 @@
"transforms_into": "t_tree_mulberry_harvested",
"examine_action": "harvest_ter_nectar",
"looks_like": "t_tree_apple",
"harvest_by_season": [
{
"seasons": [ "summer" ],
"entries": [
{ "drop": "mulberries", "base_num": [ 8, 20 ], "scale_num": [ 0, 0.5 ] },
{ "drop": "seed_mulberries", "base_num": [ 3, 5 ], "scale_num": [ 0, 0.25 ] }
]
}
],
"harvest_by_season": [ { "seasons": [ "summer" ], "id": "mulberry_harv" } ],
"bash": {
"str_min": 80,
"str_max": 180,
@@ -799,15 +781,7 @@
"transforms_into": "t_tree_elderberry_harvested",
"examine_action": "harvest_ter_nectar",
"looks_like": "t_tree_plum",
"harvest_by_season": [
{
"seasons": [ "summer" ],
"entries": [
{ "drop": "elderberries", "base_num": [ 8, 20 ], "scale_num": [ 0, 0.5 ] },
{ "drop": "seed_elderberries", "base_num": [ 3, 5 ], "scale_num": [ 0, 0.25 ] }
]
}
],
"harvest_by_season": [ { "seasons": [ "summer" ], "id": "elderberry_harv" } ],
"bash": {
"str_min": 80,
"str_max": 180,
@@ -853,12 +827,7 @@
"flags": [ "FLAMMABLE_ASH", "NOITEM", "SUPPORTS_ROOF", "TREE", "REDUCE_SCENT" ],
"transforms_into": "t_tree_pine_harvested",
"examine_action": "harvest_ter",
"harvest_by_season": [
{
"seasons": [ "spring", "summer", "autumn", "winter" ],
"entries": [ { "drop": "pine_bough", "base_num": [ 2, 8 ] }, { "drop": "pinecone", "base_num": [ 1, 4 ] } ]
}
],
"harvest_by_season": [ { "seasons": [ "spring", "summer", "autumn", "winter" ], "id": "pine_harv" } ],
"bash": {
"str_min": 80,
"str_max": 180,
@@ -914,9 +883,7 @@
"flags": [ "FLAMMABLE_ASH", "NOITEM", "SUPPORTS_ROOF", "TREE", "REDUCE_SCENT" ],
"examine_action": "harvest_ter",
"transforms_into": "t_tree_birch_harvested",
"harvest_by_season": [
{ "seasons": [ "spring", "summer", "autumn", "winter" ], "entries": [ { "drop": "birchbark", "base_num": [ 2, 8 ] } ] }
],
"harvest_by_season": [ { "seasons": [ "spring", "summer", "autumn", "winter" ], "id": "birch_harv" } ],
"bash": {
"str_min": 80,
"str_max": 180,
@@ -961,9 +928,7 @@
"flags": [ "FLAMMABLE_ASH", "NOITEM", "SUPPORTS_ROOF", "TREE", "REDUCE_SCENT" ],
"examine_action": "harvest_ter",
"transforms_into": "t_tree_willow_harvested",
"harvest_by_season": [
{ "seasons": [ "spring", "summer", "autumn", "winter" ], "entries": [ { "drop": "willowbark", "base_num": [ 2, 8 ] } ] }
],
"harvest_by_season": [ { "seasons": [ "spring", "summer", "autumn", "winter" ], "id": "willow_harv" } ],
"bash": {
"str_min": 80,
"str_max": 180,
@@ -1049,9 +1014,7 @@
"coverage": 80,
"flags": [ "FLAMMABLE_ASH", "NOITEM", "SUPPORTS_ROOF", "TREE", "REDUCE_SCENT" ],
"examine_action": "tree_hickory",
"harvest_by_season": [
{ "seasons": [ "autumn" ], "entries": [ { "drop": "hickory_nut", "base_num": [ 5, 12 ], "scale_num": [ 0, 0.5 ] } ] }
],
"harvest_by_season": [ { "seasons": [ "autumn" ], "id": "hickory_harv" } ],
"transforms_into": "t_tree_hickory_harvested",
"bash": {
"str_min": 80,
@@ -1098,7 +1061,7 @@
"coverage": 80,
"flags": [ "FLAMMABLE_ASH", "NOITEM", "SUPPORTS_ROOF", "TREE", "REDUCE_SCENT" ],
"examine_action": "harvest_ter",
"harvest_by_season": [ { "seasons": [ "autumn" ], "entries": [ { "drop": "pistachio", "base_num": [ 5, 12 ], "scale_num": [ 0, 0.5 ] } ] } ],
"harvest_by_season": [ { "seasons": [ "autumn" ], "id": "pistachio_harv" } ],
"transforms_into": "t_tree_pistachio_harvested",
"bash": {
"str_min": 80,
@@ -1144,7 +1107,7 @@
"coverage": 80,
"flags": [ "FLAMMABLE_ASH", "NOITEM", "SUPPORTS_ROOF", "TREE", "REDUCE_SCENT" ],
"examine_action": "harvest_ter",
"harvest_by_season": [ { "seasons": [ "autumn" ], "entries": [ { "drop": "almond", "base_num": [ 5, 12 ], "scale_num": [ 0, 0.5 ] } ] } ],
"harvest_by_season": [ { "seasons": [ "autumn" ], "id": "almond_harv" } ],
"transforms_into": "t_tree_almond_harvested",
"bash": {
"str_min": 80,
@@ -1190,7 +1153,7 @@
"coverage": 80,
"flags": [ "FLAMMABLE_ASH", "NOITEM", "SUPPORTS_ROOF", "TREE", "REDUCE_SCENT" ],
"examine_action": "harvest_ter",
"harvest_by_season": [ { "seasons": [ "autumn" ], "entries": [ { "drop": "pecan", "base_num": [ 5, 12 ], "scale_num": [ 0, 0.5 ] } ] } ],
"harvest_by_season": [ { "seasons": [ "autumn" ], "id": "pecan_harv" } ],
"transforms_into": "t_tree_pecan_harvested",
"bash": {
"str_min": 80,
@@ -1422,7 +1385,7 @@
"flags": [ "TRANSPARENT", "CONTAINER", "FLAMMABLE_ASH", "THIN_OBSTACLE", "SHRUB", "SHORT" ],
"transforms_into": "t_shrub_peanut_harvested",
"examine_action": "harvest_ter_nectar",
"harvest_by_season": [ { "seasons": [ "autumn" ], "entries": [ { "drop": "peanut", "base_num": [ 5, 10 ], "scale_num": [ 0, 0.5 ] } ] } ],
"harvest_by_season": [ { "seasons": [ "autumn" ], "id": "shrub_peanut_harv" } ],
"bash": {
"str_min": 4,
"str_max": 60,
@@ -1467,15 +1430,7 @@
"flags": [ "TRANSPARENT", "CONTAINER", "FLAMMABLE_ASH", "THIN_OBSTACLE", "SHRUB", "SHORT" ],
"transforms_into": "t_shrub_blueberry_harvested",
"examine_action": "harvest_ter_nectar",
"harvest_by_season": [
{
"seasons": [ "summer" ],
"entries": [
{ "drop": "blueberries", "base_num": [ 2, 5 ], "scale_num": [ 0, 0.5 ] },
{ "drop": "seed_blueberries", "base_num": [ 1, 2 ], "scale_num": [ 0, 0.25 ] }
]
}
],
"harvest_by_season": [ { "seasons": [ "summer" ], "id": "shrub_blueberry_harv" } ],
"bash": {
"str_min": 4,
"str_max": 60,
@@ -1520,15 +1475,7 @@
"flags": [ "TRANSPARENT", "CONTAINER", "FLAMMABLE_ASH", "THIN_OBSTACLE", "SHRUB", "SHORT" ],
"transforms_into": "t_shrub_strawberry_harvested",
"examine_action": "harvest_ter_nectar",
"harvest_by_season": [
{
"seasons": [ "summer" ],
"entries": [
{ "drop": "strawberries", "base_num": [ 2, 5 ], "scale_num": [ 0, 0.5 ] },
{ "drop": "seed_strawberries", "base_num": [ 1, 2 ], "scale_num": [ 0, 0.25 ] }
]
}
],
"harvest_by_season": [ { "seasons": [ "summer" ], "id": "shrub_strawberry_harv" } ],
"bash": {
"str_min": 4,
"str_max": 60,
@@ -1573,15 +1520,7 @@
"transforms_into": "t_shrub_blackberry_harvested",
"examine_action": "harvest_ter_nectar",
"looks_like": "t_shrub_blueberry",
"harvest_by_season": [
{
"seasons": [ "summer" ],
"entries": [
{ "drop": "blackberries", "base_num": [ 2, 5 ], "scale_num": [ 0, 0.5 ] },
{ "drop": "seed_blackberries", "base_num": [ 1, 2 ], "scale_num": [ 0, 0.25 ] }
]
}
],
"harvest_by_season": [ { "seasons": [ "summer" ], "id": "shrub_blackberry_harv" } ],
"bash": {
"str_min": 4,
"str_max": 60,
@@ -1626,15 +1565,7 @@
"transforms_into": "t_shrub_huckleberry_harvested",
"examine_action": "harvest_ter_nectar",
"looks_like": "t_shrub_blueberry",
"harvest_by_season": [
{
"seasons": [ "summer" ],
"entries": [
{ "drop": "huckleberries", "base_num": [ 2, 5 ], "scale_num": [ 0, 0.5 ] },
{ "drop": "seed_huckleberries", "base_num": [ 1, 2 ], "scale_num": [ 0, 0.25 ] }
]
}
],
"harvest_by_season": [ { "seasons": [ "summer" ], "id": "shrub_huckleberry_harv" } ],
"bash": {
"str_min": 4,
"str_max": 60,
@@ -1679,15 +1610,7 @@
"transforms_into": "t_shrub_raspberry_harvested",
"examine_action": "harvest_ter_nectar",
"looks_like": "t_shrub_strawberry",
"harvest_by_season": [
{
"seasons": [ "summer" ],
"entries": [
{ "drop": "raspberries", "base_num": [ 2, 5 ], "scale_num": [ 0, 0.5 ] },
{ "drop": "seed_raspberries", "base_num": [ 1, 2 ], "scale_num": [ 0, 0.25 ] }
]
}
],
"harvest_by_season": [ { "seasons": [ "summer" ], "id": "shrub_raspberry_harv" } ],
"bash": {
"str_min": 4,
"str_max": 60,
@@ -1732,15 +1655,7 @@
"transforms_into": "t_shrub_grape_harvested",
"examine_action": "harvest_ter_nectar",
"looks_like": "t_shrub_blueberry",
"harvest_by_season": [
{
"seasons": [ "summer" ],
"entries": [
{ "drop": "grapes", "base_num": [ 2, 5 ], "scale_num": [ 0, 0.5 ] },
{ "drop": "seed_grapes", "base_num": [ 1, 2 ], "scale_num": [ 0, 0.25 ] }
]
}
],
"harvest_by_season": [ { "seasons": [ "summer" ], "id": "shrub_grape_harv" } ],
"bash": {
"str_min": 4,
"str_max": 60,
@@ -1785,7 +1700,7 @@
"transforms_into": "t_shrub_rose_harvested",
"examine_action": "harvest_ter_nectar",
"looks_like": "t_shrub_strawberry",
"harvest_by_season": [ { "seasons": [ "autumn" ], "entries": [ { "drop": "rose_hips", "base_num": [ 2, 5 ], "scale_num": [ 0, 0.5 ] } ] } ],
"harvest_by_season": [ { "seasons": [ "autumn" ], "id": "shrub_rose_harv" } ],
"//": "Insert rose (flower) harvest in summer once flowers have a use (same for other generic flowers).",
"bash": {
"str_min": 4,
@@ -2067,7 +1982,7 @@
"coverage": 20,
"flags": [ "TRANSPARENT", "FLAMMABLE_ASH", "DIGGABLE", "FLAT", "THIN_OBSTACLE", "SHRUB" ],
"examine_action": "harvest_ter_nectar",
"harvest_by_season": [ { "seasons": [ "spring" ], "entries": [ { "drop": "fiddlehead_raw", "base_num": [ 1, 4 ] } ] } ],
"harvest_by_season": [ { "seasons": [ "spring" ], "id": "fern_harv" } ],
"transforms_into": "t_fern_harvested",
"bash": {
"str_min": 2,
@@ -336,7 +336,7 @@
"symbol": "#",
"looks_like": "t_metal_floor",
"color": "light_gray",
"move_cost": 8,
"move_cost": 3,
"flags": [ "TRANSPARENT", "SUPPORTS_ROOF", "INDOORS", "FLAT", "ROAD", "MINEABLE" ],
"bash": {
"sound": "thump",
@@ -56,7 +56,7 @@
"color": "yellow_red",
"move_cost": 0,
"coverage": 65,
"flags": [ "TRANSPARENT", "FLAMMABLE", "NOITEM", "SEALED", "CONTAINER", "REDUCE_SCENT", "LIQUIDCONT" ],
"flags": [ "TRANSPARENT", "FLAMMABLE", "NOITEM", "SEALED", "CONTAINER", "REDUCE_SCENT", "PERMEABLE", "LIQUIDCONT" ],
"examine_action": "gaspump"
},
{
@@ -156,6 +156,54 @@
]
}
},
{
"type": "terrain",
"id": "t_jp8_pump",
"name": "JP8 pump",
"looks_like": "t_gas_pump",
"description": "This pump is filled with JP8. If this gas dispenser doesn't give up the goods for free, you may have to pay at a nearby terminal.",
"symbol": "&",
"color": "red",
"move_cost": 0,
"coverage": 65,
"flags": [ "TRANSPARENT", "FLAMMABLE", "NOITEM", "SEALED", "CONTAINER", "REDUCE_SCENT", "PERMEABLE", "LIQUIDCONT" ],
"examine_action": "gaspump",
"bash": {
"str_min": 8,
"str_max": 150,
"sound": "crunch!",
"sound_fail": "clang!",
"ter_set": "t_jp8_pump_smashed",
"items": [ { "item": "scrap", "count": 1 } ]
}
},
{
"type": "terrain",
"id": "t_jp8_pump_smashed",
"name": "smashed JP8 pump",
"description": "You're not getting any JP8 out of this pump any time soon. Some barbarian decided to take their frustration out on it.",
"symbol": "&",
"color": "light_green",
"looks_like": "t_diesel_pump_smashed",
"move_cost": 0,
"coverage": 55,
"flags": [ "TRANSPARENT", "NOITEM", "REDUCE_SCENT", "PERMEABLE" ],
"bash": {
"str_min": 20,
"str_max": 150,
"explosive": 40,
"sound": "metal screeching!",
"sound_fail": "clang!",
"ter_set": "t_pavement",
"items": [
{ "item": "steel_lump", "prob": 50 },
{ "item": "steel_chunk", "count": [ 1, 4 ] },
{ "item": "pipe_fittings", "count": [ 2, 6 ] },
{ "item": "pipe", "count": [ 4, 8 ] },
{ "item": "scrap", "count": [ 3, 7 ] }
]
}
},
{
"type": "terrain",
"id": "t_atm",
@@ -519,7 +567,7 @@
"move_cost": 0,
"coverage": 40,
"roof": "t_flat_roof",
"flags": [ "TRANSPARENT", "SEALED", "PLACE_ITEM", "WALL" ],
"flags": [ "TRANSPARENT", "SEALED", "PLACE_ITEM", "WALL", "NO_SPOIL" ],
"bash": {
"str_min": 2,
"str_max": 80,
@@ -48,7 +48,7 @@
"color": "dark_gray",
"move_cost": 1,
"roof": "t_resin_roof",
"flags": [ "TRANSPARENT", "SUPPORTS_ROOF", "COLLAPSES", "INDOORS", "FLAT", "ROAD", "NONFLAMMABLE" ],
"flags": [ "TRANSPARENT", "SUPPORTS_ROOF", "COLLAPSES", "INDOORS", "FLAT", "ROAD", "NONFLAMMABLE", "NOCOLLIDE" ],
"bash": {
"str_min": 250,
"str_max": 700,
@@ -216,6 +216,7 @@
"color": "pink",
"move_cost": 0,
"coverage": 100,
"roof": "t_flat_roof",
"flags": [ "FLAMMABLE", "NOITEM", "SUPPORTS_ROOF", "WALL", "NO_SCENT", "CHIP", "AUTO_WALL_SYMBOL", "MINEABLE", "BLOCK_WIND" ],
"bash": {
"str_min": 30,
@@ -385,6 +386,7 @@
"looks_like": "t_brick_wall",
"move_cost": 0,
"coverage": 100,
"roof": "t_flat_roof",
"flags": [ "NOITEM", "SUPPORTS_ROOF", "WALL", "NO_SCENT", "AUTO_WALL_SYMBOL", "MINEABLE", "BLOCK_WIND" ],
"connects_to": "WALL",
"bash": {
@@ -428,7 +430,7 @@
"color": "cyan",
"move_cost": 0,
"coverage": 100,
"roof": "t_flat_roof",
"roof": "t_metal_flat_roof",
"flags": [ "NOITEM", "SUPPORTS_ROOF", "WALL", "NO_SCENT", "AUTO_WALL_SYMBOL", "MINEABLE", "BLOCK_WIND" ],
"bash": {
"str_min": 200,
@@ -583,7 +585,7 @@
"color": "dark_gray",
"move_cost": 0,
"coverage": 100,
"roof": "t_flat_roof",
"roof": "t_metal_flat_roof",
"flags": [ "NOITEM", "SUPPORTS_ROOF", "WALL", "REDUCE_SCENT", "AUTO_WALL_SYMBOL", "MINEABLE", "BLOCK_WIND" ],
"connects_to": "WALL",
"bash": {
@@ -652,6 +654,7 @@
"color": "light_red",
"move_cost": 0,
"coverage": 100,
"roof": "t_flat_roof",
"flags": [ "FLAMMABLE", "NOITEM", "SUPPORTS_ROOF", "WALL", "REDUCE_SCENT", "AUTO_WALL_SYMBOL", "BLOCK_WIND" ],
"connects_to": "WALL",
"bash": {
@@ -746,6 +749,7 @@
"color": "brown",
"move_cost": 0,
"coverage": 100,
"roof": "t_flat_roof",
"flags": [ "FLAMMABLE", "NOITEM", "SUPPORTS_ROOF", "WALL", "REDUCE_SCENT", "AUTO_WALL_SYMBOL", "MINEABLE", "BLOCK_WIND" ],
"connects_to": "WALL",
"bash": {
@@ -892,6 +896,7 @@
"color": "brown",
"move_cost": 0,
"coverage": 100,
"roof": "t_dirt",
"flags": [ "NOITEM", "SUPPORTS_ROOF", "WALL", "NO_SCENT", "AUTO_WALL_SYMBOL", "MINEABLE", "BLOCK_WIND" ],
"connects_to": "WALL",
"bash": {
@@ -903,6 +908,28 @@
"items": [ { "item": "material_soil", "count": [ 100, 150 ] } ]
}
},
{
"type": "terrain",
"id": "t_wall_dirt",
"name": "smooth dirt wall",
"looks_like": "t_wall_rammed_earth",
"description": "A solid wall of compressed dirt, mixed with… something to keep it stable. Its surface glistens slightly, and it smells like rotten milk.",
"symbol": "LINE_OXOX",
"color": "brown",
"move_cost": 0,
"coverage": 100,
"roof": "t_dirt",
"flags": [ "NOITEM", "SUPPORTS_ROOF", "WALL", "NO_SCENT", "AUTO_WALL_SYMBOL", "MINEABLE", "BLOCK_WIND" ],
"connects_to": "WALL",
"bash": {
"str_min": 30,
"str_max": 200,
"sound": "heavy rumbling!",
"sound_fail": "thump",
"ter_set": "t_mud_underground",
"items": [ { "item": "material_soil", "count": [ 50, 100 ] } ]
}
},
{
"type": "terrain",
"id": "t_junk_palisade",
@@ -1187,7 +1214,7 @@
"move_cost": 0,
"coverage": 100,
"flags": [ "NOITEM", "SUPPORTS_ROOF", "WALL", "NO_SCENT", "MINEABLE", "BLOCK_WIND" ],
"roof": "t_rock_floor",
"roof": "t_rock_floor_no_roof",
"bash": {
"str_min": 100,
"str_max": 400,
@@ -1335,7 +1362,7 @@
"color": "light_gray",
"move_cost": 0,
"coverage": 80,
"roof": "t_flat_roof",
"roof": "t_metal_flat_roof",
"flags": [ "NOITEM", "WALL", "REDUCE_SCENT", "SUPPORTS_ROOF", "MINEABLE" ],
"bash": {
"str_min": 40,
@@ -1369,7 +1396,7 @@
"color": "light_gray",
"move_cost": 0,
"coverage": 55,
"roof": "t_flat_roof",
"roof": "t_metal_flat_roof",
"flags": [ "NOITEM", "WALL", "PERMEABLE", "SUPPORTS_ROOF", "MINEABLE" ],
"bash": {
"str_min": 20,
File diff suppressed because it is too large Load Diff
+334 -11
View File
@@ -9,11 +9,261 @@
"type": "harvest",
"entries": [ ]
},
{
"id": "dandelion_harv",
"type": "harvest",
"entries": [ { "drop": "raw_dandelion", "base_num": [ 1, 4 ] } ]
},
{
"id": "burdoc_harv",
"type": "harvest",
"entries": [ { "drop": "raw_burdock", "base_num": [ 1, 4 ] } ]
},
{
"id": "chamomille_harv",
"type": "harvest",
"entries": [ { "drop": "chamomile", "base_num": [ 4, 8 ] } ]
},
{
"id": "tulip_harv",
"type": "harvest",
"entries": [ { "drop": "withered", "base_num": [ 1, 2 ] }, { "drop": "seed_flower", "base_num": [ 1, 2 ] } ]
},
{
"id": "spurge_harv",
"type": "harvest",
"entries": [
{ "drop": "withered", "base_num": [ 1, 2 ] },
{ "drop": "seed_spurge", "base_num": [ 1, 2 ] },
{ "drop": "spurge", "base_num": [ 1, 4 ] }
]
},
{
"id": "black_eyed_susan_harv",
"type": "harvest",
"entries": [ { "drop": "withered", "base_num": [ 1, 2 ] }, { "drop": "seed_flower", "base_num": [ 1, 2 ] } ]
},
{
"id": "lily_harv",
"type": "harvest",
"entries": [ { "drop": "withered", "base_num": [ 1, 2 ] }, { "drop": "seed_flower", "base_num": [ 1, 2 ] } ]
},
{
"id": "sunflower_harv",
"type": "harvest",
"entries": [ { "drop": "sunflower" } ]
},
{
"id": "lilypad_harv",
"type": "harvest",
"entries": [ { "drop": "withered", "base_num": [ 1, 2 ] } ]
},
{
"id": "cattails_winter_harv",
"type": "harvest",
"entries": [ { "drop": "cattail_rhizome" } ]
},
{
"id": "cattails_summer_harv",
"type": "harvest",
"entries": [ { "drop": "cattail_rhizome" }, { "drop": "cattail_stalk", "base_num": [ 1, 4 ] } ]
},
{
"id": "lotus_harv",
"type": "harvest",
"entries": [ { "drop": "withered", "base_num": [ 1, 2 ] }, { "drop": "lotus", "base_num": [ 1, 2 ] } ]
},
{
"id": "bluebell_harv",
"type": "harvest",
"entries": [ { "drop": "withered", "base_num": [ 1, 2 ] }, { "drop": "seed_flower", "base_num": [ 1, 2 ] } ]
},
{
"id": "chicory_harv",
"type": "harvest",
"entries": [ { "drop": "chicory_raw", "base_num": [ 1, 2 ] } ]
},
{
"id": "datura_harv",
"type": "harvest",
"entries": [ { "drop": "datura_seed", "base_num": [ 2, 6 ] }, { "drop": "withered", "base_num": [ 1, 2 ] } ]
},
{
"id": "mustard_harv",
"type": "harvest",
"entries": [ { "drop": "seed_mustard", "base_num": [ 2, 6 ] } ]
},
{
"id": "walnut_harv",
"type": "harvest",
"entries": [ { "drop": "walnut", "base_num": [ 5, 12 ], "scale_num": [ 0, 0.5 ] } ]
},
{
"id": "fern_harv",
"type": "harvest",
"entries": [ { "drop": "fiddlehead_raw", "base_num": [ 1, 4 ] } ]
},
{
"id": "shrub_rose_harv",
"type": "harvest",
"entries": [ { "drop": "rose_hips", "base_num": [ 2, 5 ], "scale_num": [ 0, 0.5 ] } ]
},
{
"id": "shrub_grape_harv",
"type": "harvest",
"entries": [ { "drop": "grapes", "base_num": [ 2, 5 ], "scale_num": [ 0, 0.5 ] } ]
},
{
"id": "shrub_raspberry_harv",
"type": "harvest",
"entries": [ { "drop": "raspberries", "base_num": [ 2, 5 ], "scale_num": [ 0, 0.5 ] } ]
},
{
"id": "shrub_huckleberry_harv",
"type": "harvest",
"entries": [ { "drop": "huckleberries", "base_num": [ 2, 5 ], "scale_num": [ 0, 0.5 ] } ]
},
{
"id": "shrub_blackberry_harv",
"type": "harvest",
"entries": [ { "drop": "blackberries", "base_num": [ 2, 5 ], "scale_num": [ 0, 0.5 ] } ]
},
{
"id": "shrub_strawberry_harv",
"type": "harvest",
"entries": [ { "drop": "strawberries", "base_num": [ 2, 5 ], "scale_num": [ 0, 0.5 ] } ]
},
{
"id": "shrub_blueberry_harv",
"type": "harvest",
"entries": [ { "drop": "blueberries", "base_num": [ 2, 5 ], "scale_num": [ 0, 0.5 ] } ]
},
{
"id": "shrub_peanut_harv",
"type": "harvest",
"entries": [ { "drop": "peanut", "base_num": [ 5, 10 ], "scale_num": [ 0, 0.5 ] } ]
},
{
"id": "pecan_harv",
"type": "harvest",
"entries": [ { "drop": "pecan", "base_num": [ 5, 12 ], "scale_num": [ 0, 0.5 ] } ]
},
{
"id": "almond_harv",
"type": "harvest",
"entries": [ { "drop": "almond", "base_num": [ 5, 12 ], "scale_num": [ 0, 0.5 ] } ]
},
{
"id": "pistachio_harv",
"type": "harvest",
"entries": [ { "drop": "pistachio", "base_num": [ 5, 12 ], "scale_num": [ 0, 0.5 ] } ]
},
{
"id": "hickory_harv",
"type": "harvest",
"entries": [ { "drop": "hickory_nut", "base_num": [ 5, 12 ], "scale_num": [ 0, 0.5 ] } ]
},
{
"id": "willow_harv",
"type": "harvest",
"entries": [ { "drop": "willowbark", "base_num": [ 2, 8 ] } ]
},
{
"id": "birch_harv",
"type": "harvest",
"entries": [ { "drop": "birchbark", "base_num": [ 2, 8 ] } ]
},
{
"id": "pine_harv",
"type": "harvest",
"entries": [ { "drop": "pine_bough", "base_num": [ 2, 8 ] }, { "drop": "pinecone", "base_num": [ 1, 4 ] } ]
},
{
"id": "elderberry_harv",
"type": "harvest",
"entries": [ { "drop": "elderberries", "base_num": [ 8, 20 ], "scale_num": [ 0, 0.5 ] } ]
},
{
"id": "mulberry_harv",
"type": "harvest",
"entries": [ { "drop": "mulberries", "base_num": [ 8, 20 ], "scale_num": [ 0, 0.5 ] } ]
},
{
"id": "plum_harv",
"type": "harvest",
"entries": [ { "drop": "plums", "base_num": [ 2, 5 ], "scale_num": [ 0, 0.5 ] } ]
},
{
"id": "apricot_harv",
"type": "harvest",
"entries": [ { "drop": "apricot", "base_num": [ 2, 5 ], "scale_num": [ 0, 0.5 ] } ]
},
{
"id": "peach_harv",
"type": "harvest",
"entries": [ { "drop": "peach", "base_num": [ 2, 5 ], "scale_num": [ 0, 0.5 ] } ]
},
{
"id": "juniper_harv",
"type": "harvest",
"entries": [ { "drop": "juniper", "base_num": [ 12, 24 ], "scale_num": [ 0, 0.5 ] } ]
},
{
"id": "cherry_harv",
"type": "harvest",
"entries": [ { "drop": "cherries", "base_num": [ 6, 18 ], "scale_num": [ 0, 0.5 ] } ]
},
{
"id": "coffee_harv",
"type": "harvest",
"entries": [ { "drop": "coffee_pod", "base_num": [ 4, 10 ], "scale_num": [ 0, 0.5 ] } ]
},
{
"id": "pear_harv",
"type": "harvest",
"entries": [ { "drop": "pear", "base_num": [ 2, 5 ], "scale_num": [ 0, 0.5 ] } ]
},
{
"id": "apple_harv",
"type": "harvest",
"entries": [ { "drop": "apple", "base_num": [ 2, 5 ], "scale_num": [ 0, 0.5 ] } ]
},
{
"id": "oak_harv",
"type": "harvest",
"entries": [ { "drop": "acorns", "base_num": [ 5, 12 ], "scale_num": [ 0, 0.5 ] } ]
},
{
"id": "beech_harv",
"type": "harvest",
"entries": [ { "drop": "beech_nuts", "base_num": [ 5, 12 ], "scale_num": [ 0, 0.5 ] } ]
},
{
"id": "hazelnut_harv",
"type": "harvest",
"entries": [ { "drop": "hazelnut", "base_num": [ 5, 12 ], "scale_num": [ 0, 0.5 ] } ]
},
{
"id": "chestnut_harv",
"type": "harvest",
"entries": [ { "drop": "chestnut", "base_num": [ 5, 12 ], "scale_num": [ 0, 0.5 ] } ]
},
{
"id": "blackjack_harv",
"type": "harvest",
"entries": [ { "drop": "tanbark", "base_num": [ 1, 2 ] } ]
},
{
"id": "alder_harv",
"type": "harvest",
"entries": [ { "drop": "alder_bark", "base_num": [ 2, 5 ], "scale_num": [ 0, 1 ] } ]
},
{
"id": "fish_tiny",
"type": "harvest",
"entries": [
{ "drop": "fish", "type": "flesh", "mass_ratio": 0.32 },
{ "drop": "animal_blood", "type": "blood", "mass_ratio": 0.1 },
{ "drop": "meat_scrap", "type": "flesh", "mass_ratio": 0.08 }
]
},
@@ -22,6 +272,7 @@
"type": "harvest",
"entries": [
{ "drop": "fish", "type": "flesh", "mass_ratio": 0.32 },
{ "drop": "animal_blood", "type": "blood", "mass_ratio": 0.1 },
{ "drop": "meat_scrap", "type": "flesh", "mass_ratio": 0.08 },
{ "drop": "bone", "type": "bone", "mass_ratio": 0.1 }
]
@@ -32,6 +283,7 @@
"message": "You gut and fillet the fish",
"entries": [
{ "drop": "fish", "type": "flesh", "mass_ratio": 0.38 },
{ "drop": "animal_blood", "type": "blood", "mass_ratio": 0.1 },
{ "drop": "meat_scrap", "type": "flesh", "mass_ratio": 0.02 },
{ "drop": "liver", "type": "offal", "mass_ratio": 0.01 },
{ "drop": "bone", "type": "bone", "mass_ratio": 0.1 }
@@ -42,6 +294,7 @@
"type": "harvest",
"entries": [
{ "drop": "mutant_meat", "type": "flesh", "mass_ratio": 0.38 },
{ "drop": "mutant_blood", "type": "blood", "mass_ratio": 0.1 },
{ "drop": "liver", "type": "offal", "mass_ratio": 0.01 },
{ "drop": "bone", "type": "bone", "mass_ratio": 0.1 }
]
@@ -62,6 +315,7 @@
"message": "You carefully crack open its exoskeleton to get at the flesh beneath",
"entries": [
{ "drop": "mutant_meat", "type": "flesh", "mass_ratio": 0.32 },
{ "drop": "mutant_blood", "type": "blood", "mass_ratio": 0.1 },
{ "drop": "chitin_piece", "type": "skin", "mass_ratio": 0.1 }
]
},
@@ -85,6 +339,7 @@
{ "drop": "sinew", "type": "bone", "mass_ratio": 0.001 },
{ "drop": "cable", "base_num": [ 1, 3 ], "scale_num": [ 0.2, 0.6 ], "max": 8, "type": "flesh" },
{ "drop": "bone_human", "base_num": [ 1, 2 ], "scale_num": [ 0.4, 0.7 ], "max": 10, "type": "bone" },
{ "drop": "blood", "mass_ratio": 0.1, "type": "blood" },
{ "drop": "scrap", "base_num": [ 1, 5 ], "scale_num": [ 0.3, 0.7 ], "max": 12, "type": "bone" }
]
},
@@ -113,6 +368,7 @@
"base_num": [ 0, 1 ]
},
{ "drop": "meat_tainted", "type": "flesh", "mass_ratio": 0.1 },
{ "drop": "blood_tainted", "type": "blood", "mass_ratio": 0.1 },
{ "drop": "fat_tainted", "type": "flesh", "mass_ratio": 0.04 },
{ "drop": "bone_tainted", "type": "bone", "mass_ratio": 0.05 },
{ "drop": "sinew", "type": "bone", "mass_ratio": 0.001 },
@@ -125,7 +381,10 @@
"id": "mammal_tiny",
"//": "animals so tiny they don't drop chunks of meat",
"type": "harvest",
"entries": [ { "drop": "meat_scrap", "type": "flesh", "mass_ratio": 0.5 } ]
"entries": [
{ "drop": "meat_scrap", "type": "flesh", "mass_ratio": 0.5 },
{ "drop": "animal_blood", "type": "blood", "mass_ratio": 0.1 }
]
},
{
"id": "mammal_small_fur",
@@ -138,6 +397,7 @@
{ "drop": "liver", "type": "offal", "mass_ratio": 0.01 },
{ "drop": "brain", "type": "flesh", "mass_ratio": 0.005 },
{ "drop": "bone", "type": "bone", "mass_ratio": 0.15 },
{ "drop": "animal_blood", "type": "blood", "mass_ratio": 0.1 },
{ "drop": "sinew", "type": "bone", "mass_ratio": 0.00035 },
{ "drop": "raw_fur", "type": "skin", "mass_ratio": 0.02 },
{ "drop": "fat", "type": "flesh", "mass_ratio": 0.07 }
@@ -150,6 +410,7 @@
"entries": [
{ "drop": "mutant_meat", "type": "flesh", "mass_ratio": 0.28 },
{ "drop": "mutant_meat_scrap", "type": "flesh", "mass_ratio": 0.05 },
{ "drop": "mutant_blood", "type": "blood", "mass_ratio": 0.1 },
{ "drop": "lung", "type": "flesh", "mass_ratio": 0.0035 },
{ "drop": "liver", "type": "offal", "mass_ratio": 0.01 },
{ "drop": "brain", "type": "flesh", "mass_ratio": 0.005 },
@@ -167,6 +428,7 @@
{ "drop": "meat", "type": "flesh", "mass_ratio": 0.3 },
{ "drop": "meat_scrap", "type": "flesh", "mass_ratio": 0.03 },
{ "drop": "lung", "type": "flesh", "mass_ratio": 0.0035 },
{ "drop": "animal_blood", "type": "blood", "mass_ratio": 0.1 },
{ "drop": "liver", "type": "offal", "mass_ratio": 0.01 },
{ "drop": "brain", "type": "flesh", "mass_ratio": 0.005 },
{ "drop": "sweetbread", "type": "flesh", "mass_ratio": 0.002 },
@@ -185,6 +447,7 @@
"entries": [
{ "drop": "mutant_meat", "type": "flesh", "mass_ratio": 0.3 },
{ "drop": "mutant_meat_scrap", "type": "flesh", "mass_ratio": 0.03 },
{ "drop": "mutant_blood", "type": "blood", "mass_ratio": 0.1 },
{ "drop": "lung", "type": "flesh", "mass_ratio": 0.0035 },
{ "drop": "liver", "type": "offal", "mass_ratio": 0.01 },
{ "drop": "brain", "type": "flesh", "mass_ratio": 0.05 },
@@ -206,6 +469,7 @@
{ "drop": "meat_scrap", "type": "flesh", "mass_ratio": 0.01 },
{ "drop": "lung", "type": "flesh", "mass_ratio": 0.0035 },
{ "drop": "liver", "type": "offal", "mass_ratio": 0.01 },
{ "drop": "animal_blood", "type": "blood", "mass_ratio": 0.1 },
{ "drop": "brain", "type": "flesh", "mass_ratio": 0.005 },
{ "drop": "sweetbread", "type": "flesh", "mass_ratio": 0.002 },
{ "drop": "kidney", "type": "offal", "mass_ratio": 0.002 },
@@ -225,6 +489,7 @@
{ "drop": "meat_scrap", "type": "flesh", "mass_ratio": 0.01 },
{ "drop": "lung", "type": "flesh", "mass_ratio": 0.0035 },
{ "drop": "liver", "type": "offal", "mass_ratio": 0.01 },
{ "drop": "animal_blood", "type": "blood", "mass_ratio": 0.1 },
{ "drop": "brain", "type": "flesh", "mass_ratio": 0.005 },
{ "drop": "sweetbread", "type": "flesh", "mass_ratio": 0.002 },
{ "drop": "kidney", "type": "offal", "mass_ratio": 0.002 },
@@ -245,6 +510,7 @@
{ "drop": "meat_scrap", "type": "flesh", "mass_ratio": 0.01 },
{ "drop": "lung", "type": "flesh", "mass_ratio": 0.0035 },
{ "drop": "liver", "type": "offal", "mass_ratio": 0.01 },
{ "drop": "animal_blood", "type": "blood", "mass_ratio": 0.1 },
{ "drop": "brain", "type": "flesh", "mass_ratio": 0.005 },
{ "drop": "sweetbread", "type": "flesh", "mass_ratio": 0.002 },
{ "drop": "kidney", "type": "offal", "mass_ratio": 0.002 },
@@ -264,6 +530,7 @@
{ "drop": "meat", "type": "flesh", "mass_ratio": 0.26 },
{ "drop": "meat_scrap", "type": "flesh", "mass_ratio": 0.05 },
{ "drop": "lung", "type": "flesh", "mass_ratio": 0.0035 },
{ "drop": "animal_blood", "type": "blood", "mass_ratio": 0.1 },
{ "drop": "liver", "type": "offal", "mass_ratio": 0.01 },
{ "drop": "brain", "type": "flesh", "mass_ratio": 0.005 },
{ "drop": "bone", "type": "bone", "mass_ratio": 0.15 },
@@ -281,6 +548,7 @@
{ "drop": "meat", "type": "flesh", "mass_ratio": 0.26 },
{ "drop": "meat_scrap", "type": "flesh", "mass_ratio": 0.05 },
{ "drop": "lung", "type": "flesh", "mass_ratio": 0.0035 },
{ "drop": "animal_blood", "type": "blood", "mass_ratio": 0.1 },
{ "drop": "liver", "type": "offal", "mass_ratio": 0.01 },
{ "drop": "brain", "type": "flesh", "mass_ratio": 0.005 },
{ "drop": "bone", "type": "bone", "mass_ratio": 0.15 },
@@ -298,6 +566,7 @@
{ "drop": "mutant_meat", "type": "flesh", "mass_ratio": 0.32 },
{ "drop": "mutant_meat_scrap", "type": "flesh", "mass_ratio": 0.01 },
{ "drop": "lung", "type": "flesh", "mass_ratio": 0.0035 },
{ "drop": "mutant_blood", "type": "blood", "mass_ratio": 0.1 },
{ "drop": "liver", "type": "offal", "mass_ratio": 0.01 },
{ "drop": "brain", "type": "flesh", "mass_ratio": 0.005 },
{ "drop": "sweetbread", "type": "flesh", "mass_ratio": 0.002 },
@@ -316,6 +585,7 @@
"entries": [
{ "drop": "mutant_human_flesh", "type": "flesh", "mass_ratio": 0.34 },
{ "drop": "hstomach", "scale_num": [ 1, 1 ], "max": 1, "type": "offal" },
{ "drop": "mutant_human_blood", "type": "blood", "mass_ratio": 0.1 },
{ "drop": "bone", "type": "bone", "mass_ratio": 0.15 },
{ "drop": "sinew", "type": "bone", "mass_ratio": 0.00035 },
{ "drop": "raw_hfur", "type": "skin", "mass_ratio": 0.02 },
@@ -330,6 +600,7 @@
{ "drop": "mutant_human_flesh", "type": "flesh", "mass_ratio": 0.34 },
{ "drop": "hstomach_large", "scale_num": [ 1, 1 ], "max": 1, "type": "offal" },
{ "drop": "bone", "type": "bone", "mass_ratio": 0.15 },
{ "drop": "mutant_human_blood", "type": "blood", "mass_ratio": 0.1 },
{ "drop": "sinew", "type": "bone", "mass_ratio": 0.00035 },
{ "drop": "raw_hfur", "type": "skin", "mass_ratio": 0.02 },
{ "drop": "mutant_human_fat", "type": "flesh", "mass_ratio": 0.07 }
@@ -341,6 +612,7 @@
"type": "harvest",
"entries": [
{ "drop": "demihuman_flesh", "type": "flesh", "mass_ratio": 0.34 },
{ "drop": "demihuman_blood", "type": "blood", "mass_ratio": 0.1 },
{ "drop": "demihuman_stomach", "scale_num": [ 1, 1 ], "max": 1, "type": "offal" },
{ "drop": "bone", "type": "bone", "mass_ratio": 0.15 },
{ "drop": "sinew", "type": "bone", "mass_ratio": 0.00035 },
@@ -356,6 +628,7 @@
{ "drop": "demihuman_flesh", "type": "flesh", "mass_ratio": 0.34 },
{ "drop": "demihuman_stomach_large", "scale_num": [ 1, 1 ], "max": 1, "type": "offal" },
{ "drop": "bone", "type": "bone", "mass_ratio": 0.15 },
{ "drop": "demihuman_blood", "type": "blood", "mass_ratio": 0.1 },
{ "drop": "sinew", "type": "bone", "mass_ratio": 0.00035 },
{ "drop": "raw_hfur", "type": "skin", "mass_ratio": 0.02 },
{ "drop": "demihuman_fat", "type": "flesh", "mass_ratio": 0.07 }
@@ -369,6 +642,7 @@
{ "drop": "meat", "type": "flesh", "mass_ratio": 0.28 },
{ "drop": "meat_scrap", "type": "flesh", "mass_ratio": 0.05 },
{ "drop": "lung", "type": "flesh", "mass_ratio": 0.0035 },
{ "drop": "animal_blood", "type": "blood", "mass_ratio": 0.1 },
{ "drop": "liver", "type": "offal", "mass_ratio": 0.01 },
{ "drop": "brain", "type": "flesh", "mass_ratio": 0.005 },
{ "drop": "bone", "type": "bone", "mass_ratio": 0.15 },
@@ -386,6 +660,7 @@
{ "drop": "meat_scrap", "type": "flesh", "mass_ratio": 0.03 },
{ "drop": "lung", "type": "flesh", "mass_ratio": 0.0035 },
{ "drop": "liver", "type": "offal", "mass_ratio": 0.01 },
{ "drop": "animal_blood", "type": "blood", "mass_ratio": 0.1 },
{ "drop": "brain", "type": "flesh", "mass_ratio": 0.005 },
{ "drop": "sweetbread", "type": "flesh", "mass_ratio": 0.002 },
{ "drop": "kidney", "type": "offal", "mass_ratio": 0.002 },
@@ -404,6 +679,7 @@
{ "drop": "mutant_meat", "type": "flesh", "mass_ratio": 0.3 },
{ "drop": "mutant_meat_scrap", "type": "flesh", "mass_ratio": 0.03 },
{ "drop": "lung", "type": "flesh", "mass_ratio": 0.0035 },
{ "drop": "mutant_blood", "type": "blood", "mass_ratio": 0.1 },
{ "drop": "liver", "type": "offal", "mass_ratio": 0.01 },
{ "drop": "brain", "type": "flesh", "mass_ratio": 0.005 },
{ "drop": "sweetbread", "type": "flesh", "mass_ratio": 0.002 },
@@ -424,6 +700,7 @@
{ "drop": "meat_scrap", "type": "flesh", "mass_ratio": 0.01 },
{ "drop": "lung", "type": "flesh", "mass_ratio": 0.0035 },
{ "drop": "liver", "type": "offal", "mass_ratio": 0.01 },
{ "drop": "animal_blood", "type": "blood", "mass_ratio": 0.1 },
{ "drop": "brain", "type": "flesh", "mass_ratio": 0.005 },
{ "drop": "sweetbread", "type": "flesh", "mass_ratio": 0.002 },
{ "drop": "kidney", "type": "offal", "mass_ratio": 0.002 },
@@ -443,6 +720,7 @@
{ "drop": "mutant_meat_scrap", "type": "flesh", "mass_ratio": 0.01 },
{ "drop": "lung", "type": "flesh", "mass_ratio": 0.0035 },
{ "drop": "liver", "type": "offal", "mass_ratio": 0.01 },
{ "drop": "mutant_blood", "type": "blood", "mass_ratio": 0.1 },
{ "drop": "brain", "type": "flesh", "mass_ratio": 0.005 },
{ "drop": "sweetbread", "type": "flesh", "mass_ratio": 0.002 },
{ "drop": "kidney", "type": "offal", "mass_ratio": 0.002 },
@@ -461,6 +739,7 @@
{ "drop": "meat", "type": "flesh", "mass_ratio": 0.28 },
{ "drop": "meat_scrap", "type": "flesh", "mass_ratio": 0.05 },
{ "drop": "lung", "type": "flesh", "mass_ratio": 0.0035 },
{ "drop": "animal_blood", "type": "blood", "mass_ratio": 0.1 },
{ "drop": "liver", "type": "offal", "mass_ratio": 0.01 },
{ "drop": "brain", "type": "flesh", "mass_ratio": 0.005 },
{ "drop": "bone", "type": "bone", "mass_ratio": 0.15 },
@@ -478,6 +757,7 @@
{ "drop": "meat_scrap", "type": "flesh", "mass_ratio": 0.01 },
{ "drop": "lung", "type": "flesh", "mass_ratio": 0.0035 },
{ "drop": "liver", "type": "offal", "mass_ratio": 0.01 },
{ "drop": "animal_blood", "type": "blood", "mass_ratio": 0.1 },
{ "drop": "brain", "type": "flesh", "mass_ratio": 0.005 },
{ "drop": "sweetbread", "type": "flesh", "mass_ratio": 0.002 },
{ "drop": "kidney", "type": "offal", "mass_ratio": 0.002 },
@@ -497,6 +777,7 @@
{ "drop": "meat_scrap", "type": "flesh", "mass_ratio": 0.03 },
{ "drop": "lung", "type": "flesh", "mass_ratio": 0.0035 },
{ "drop": "liver", "type": "offal", "mass_ratio": 0.01 },
{ "drop": "animal_blood", "type": "blood", "mass_ratio": 0.1 },
{ "drop": "brain", "type": "flesh", "mass_ratio": 0.005 },
{ "drop": "sweetbread", "type": "flesh", "mass_ratio": 0.002 },
{ "drop": "kidney", "type": "offal", "mass_ratio": 0.002 },
@@ -515,6 +796,7 @@
{ "drop": "meat_scrap", "type": "flesh", "mass_ratio": 0.01 },
{ "drop": "lung", "type": "flesh", "mass_ratio": 0.0035 },
{ "drop": "liver", "type": "offal", "mass_ratio": 0.01 },
{ "drop": "animal_blood", "type": "blood", "mass_ratio": 0.1 },
{ "drop": "brain", "type": "flesh", "mass_ratio": 0.005 },
{ "drop": "sweetbread", "type": "flesh", "mass_ratio": 0.002 },
{ "drop": "kidney", "type": "offal", "mass_ratio": 0.002 },
@@ -533,6 +815,7 @@
{ "drop": "mutant_meat_scrap", "type": "flesh", "mass_ratio": 0.01 },
{ "drop": "lung", "type": "flesh", "mass_ratio": 0.0035 },
{ "drop": "liver", "type": "offal", "mass_ratio": 0.01 },
{ "drop": "mutant_blood", "type": "blood", "mass_ratio": 0.1 },
{ "drop": "brain", "type": "flesh", "mass_ratio": 0.005 },
{ "drop": "sweetbread", "type": "flesh", "mass_ratio": 0.002 },
{ "drop": "kidney", "type": "offal", "mass_ratio": 0.002 },
@@ -558,6 +841,7 @@
"type": "harvest",
"entries": [
{ "drop": "mutant_meat", "type": "flesh", "mass_ratio": 0.4 },
{ "drop": "mutant_blood", "type": "blood", "mass_ratio": 0.1 },
{ "drop": "mutant_fat", "type": "flesh", "mass_ratio": 0.1 },
{ "drop": "mutant_fat", "type": "offal", "mass_ratio": 0.1 }
]
@@ -567,7 +851,9 @@
"type": "harvest",
"entries": [
{ "drop": "meat_scrap", "type": "flesh", "mass_ratio": 0.4 },
{ "drop": "feather", "type": "skin", "mass_ratio": 0.01 }
{ "drop": "animal_blood", "type": "blood", "mass_ratio": 0.1 },
{ "drop": "feather", "type": "skin", "mass_ratio": 0.01 },
{ "drop": "down_feather", "type": "skin", "mass_ratio": 0.005 }
]
},
{
@@ -575,9 +861,11 @@
"type": "harvest",
"entries": [
{ "drop": "meat", "type": "flesh", "mass_ratio": 0.3 },
{ "drop": "animal_blood", "type": "blood", "mass_ratio": 0.1 },
{ "drop": "meat_scrap", "type": "flesh", "mass_ratio": 0.05 },
{ "drop": "liver", "type": "offal", "mass_ratio": 0.01 },
{ "drop": "feather", "type": "skin", "mass_ratio": 0.01 }
{ "drop": "feather", "type": "skin", "mass_ratio": 0.01 },
{ "drop": "down_feather", "type": "skin", "mass_ratio": 0.005 }
]
},
{
@@ -585,9 +873,11 @@
"type": "harvest",
"entries": [
{ "drop": "mutant_meat", "type": "flesh", "mass_ratio": 0.3 },
{ "drop": "animal_blood", "type": "blood", "mass_ratio": 0.1 },
{ "drop": "mutant_meat_scrap", "type": "flesh", "mass_ratio": 0.03 },
{ "drop": "mutant_fat", "type": "flesh", "mass_ratio": 0.18 },
{ "drop": "feather", "type": "skin", "mass_ratio": 0.02 },
{ "drop": "down_feather", "type": "skin", "mass_ratio": 0.01 },
{ "drop": "bone", "type": "bone", "mass_ratio": 0.1 }
]
},
@@ -597,6 +887,7 @@
"message": "You messily hack apart the hulking mass of fused, rancid flesh, taking note of anything that stands out.",
"entries": [
{ "drop": "meat_tainted", "type": "flesh", "mass_ratio": 0.33 },
{ "drop": "blood_tainted", "type": "blood", "mass_ratio": 0.1 },
{ "drop": "fat_tainted", "type": "flesh", "mass_ratio": 0.1 },
{ "drop": "flesh_golem_heart", "base_num": [ 0, 1 ], "scale_num": [ 0.6, 0.9 ], "max": 3, "type": "offal" }
]
@@ -607,6 +898,7 @@
"message": "You messily hack apart the colossal mass of fused, rancid flesh, taking note of anything that stands out.",
"entries": [
{ "drop": "meat_tainted", "type": "flesh", "mass_ratio": 0.33 },
{ "drop": "blood_tainted", "type": "blood", "mass_ratio": 0.1 },
{ "drop": "fat_tainted", "type": "flesh", "mass_ratio": 0.1 },
{ "drop": "jabberwock_heart", "base_num": [ 0, 1 ], "scale_num": [ 0.6, 0.9 ], "max": 3, "type": "offal" }
],
@@ -617,6 +909,7 @@
"type": "harvest",
"message": "<arachnid_harvest>",
"entries": [
{ "drop": "mutant_blood", "type": "blood", "mass_ratio": 0.1 },
{ "drop": "mutant_meat", "type": "flesh", "mass_ratio": 0.33 },
{ "drop": "mutant_fat", "type": "flesh", "mass_ratio": 0.04 },
{ "drop": "sinew", "type": "bone", "mass_ratio": 0.01 },
@@ -631,6 +924,7 @@
"type": "harvest",
"message": "<acidant_harvest>",
"entries": [
{ "drop": "mutant_blood", "type": "blood", "mass_ratio": 0.1 },
{ "drop": "mutant_meat", "type": "flesh", "mass_ratio": 0.33 },
{ "drop": "mutant_fat", "type": "flesh", "mass_ratio": 0.04 },
{ "drop": "sinew", "type": "bone", "mass_ratio": 0.01 },
@@ -645,6 +939,7 @@
"entries": [
{ "drop": "mutant_meat", "base_num": [ 40, 55 ], "scale_num": [ 0.5, 0.7 ], "max": 80, "type": "flesh" },
{ "drop": "acidchitin_piece", "base_num": [ 2, 6 ], "scale_num": [ 0.3, 0.6 ], "max": 10, "type": "bone" },
{ "drop": "mutant_blood", "type": "blood", "mass_ratio": 0.1 },
{ "drop": "endochitin", "type": "bone", "mass_ratio": 0.1 },
{ "drop": "mutant_fat", "base_num": [ 5, 8 ], "scale_num": [ 0.6, 0.8 ], "max": 18, "type": "flesh" }
]
@@ -655,6 +950,7 @@
"message": "<centipede_harvest>",
"//": "More legs = more sinew, more endochitin, less rest",
"entries": [
{ "drop": "mutant_blood", "type": "blood", "mass_ratio": 0.1 },
{ "drop": "mutant_meat", "type": "flesh", "mass_ratio": 0.2 },
{ "drop": "mutant_fat", "type": "flesh", "mass_ratio": 0.01 },
{ "drop": "sinew", "type": "bone", "mass_ratio": 0.05 },
@@ -669,6 +965,7 @@
"type": "harvest",
"message": "<centipede_mom_harvest>",
"entries": [
{ "drop": "mutant_blood", "type": "blood", "mass_ratio": 0.1 },
{ "drop": "mutant_meat", "type": "flesh", "mass_ratio": 0.2 },
{ "drop": "mutant_fat", "type": "flesh", "mass_ratio": 0.01 },
{ "drop": "sinew", "type": "bone", "mass_ratio": 0.05 },
@@ -687,6 +984,7 @@
"entries": [
{ "drop": "mutant_meat", "type": "flesh", "mass_ratio": 0.4 },
{ "drop": "mutant_fat", "type": "flesh", "mass_ratio": 0.015 },
{ "drop": "mutant_blood", "type": "blood", "mass_ratio": 0.1 },
{ "drop": "sinew", "type": "bone", "mass_ratio": 0.05 },
{ "drop": "endochitin", "type": "bone", "mass_ratio": 0.2 },
{ "drop": "mutant_bug_lungs", "type": "flesh", "mass_ratio": 0.0035 },
@@ -701,6 +999,7 @@
"message": "<arachnid_flying_harvest>",
"entries": [
{ "drop": "mutant_meat", "type": "flesh", "mass_ratio": 0.1 },
{ "drop": "mutant_blood", "type": "blood", "mass_ratio": 0.1 },
{ "drop": "sinew", "type": "bone", "mass_ratio": 0.01 },
{ "drop": "endochitin", "type": "bone", "mass_ratio": 0.01 },
{ "drop": "mutant_bug_hydrogen_sacs", "type": "flesh", "mass_ratio": 0.2 },
@@ -715,6 +1014,7 @@
"message": "What appeared to be insect hairs on the chitin of this creature look more like tiny feathers as you pare them back. Inside is a bundle of bubble-like tissue sacs that appear to be floating, which doesn't fit with what you know about real bees.",
"entries": [
{ "drop": "mutant_meat", "type": "flesh", "mass_ratio": 0.23 },
{ "drop": "mutant_blood", "type": "blood", "mass_ratio": 0.1 },
{ "drop": "sinew", "type": "bone", "mass_ratio": 0.01 },
{ "drop": "endochitin", "type": "bone", "mass_ratio": 0.1 },
{ "drop": "mutant_bug_hydrogen_sacs", "type": "flesh", "mass_ratio": 0.1 },
@@ -732,6 +1032,7 @@
"entries": [
{ "drop": "mutant_meat", "type": "flesh", "mass_ratio": 0.2 },
{ "drop": "mutant_fat", "type": "flesh", "mass_ratio": 0.04 },
{ "drop": "mutant_blood", "type": "blood", "mass_ratio": 0.1 },
{ "drop": "sinew", "type": "bone", "mass_ratio": 0.01 },
{ "drop": "endochitin", "type": "bone", "mass_ratio": 0.1 },
{ "drop": "mutant_bug_lungs", "type": "flesh", "mass_ratio": 0.0035 },
@@ -749,6 +1050,7 @@
{ "drop": "mutant_meat", "type": "flesh", "mass_ratio": 0.1 },
{ "drop": "sinew", "type": "bone", "mass_ratio": 0.01 },
{ "drop": "endochitin", "type": "bone", "mass_ratio": 0.01 },
{ "drop": "mutant_blood", "type": "blood", "mass_ratio": 0.1 },
{ "drop": "mutant_bug_hydrogen_sacs", "type": "flesh", "mass_ratio": 0.2 },
{ "drop": "mutant_bug_lungs", "type": "flesh", "mass_ratio": 0.0035 },
{ "drop": "mutant_bug_organs", "type": "offal", "mass_ratio": 0.015 },
@@ -784,6 +1086,20 @@
{ "drop": "venom_wasp", "type": "offal", "mass_ratio": 0.005 }
]
},
{
"id": "incubator_mammal",
"//": "the larvae ate a lot of the good stuff, mutant meat represents the grubs",
"type": "harvest",
"message": "<incubator_mammal>",
"entries": [
{ "drop": "meat", "type": "flesh", "mass_ratio": 0.05 },
{ "drop": "mutant_meat", "type": "flesh", "mass_ratio": 0.2 },
{ "drop": "meat_scrap", "type": "flesh", "mass_ratio": 0.1 },
{ "drop": "stomach", "scale_num": [ 0, 1 ], "max": 1, "type": "offal" },
{ "drop": "bone", "type": "bone", "mass_ratio": 0.15 },
{ "drop": "sinew", "type": "bone", "mass_ratio": 0.00035 }
]
},
{
"id": "zombie_leather",
"//": "any zombie that might drop leather. mostly animals.",
@@ -791,9 +1107,9 @@
"entries": [
{ "drop": "meat_tainted", "type": "flesh", "mass_ratio": 0.25 },
{ "drop": "fat_tainted", "type": "flesh", "mass_ratio": 0.08 },
{ "drop": "blood_tainted", "type": "blood", "mass_ratio": 0.1 },
{ "drop": "bone_tainted", "type": "bone", "mass_ratio": 0.1 },
{ "drop": "raw_tainted_leather", "type": "skin", "mass_ratio": 0.02 },
{ "drop": "pheromone", "type": "bionic", "max": 1 }
{ "drop": "raw_tainted_leather", "type": "skin", "mass_ratio": 0.02 }
]
},
{
@@ -803,9 +1119,9 @@
"entries": [
{ "drop": "meat_tainted", "type": "flesh", "mass_ratio": 0.25 },
{ "drop": "fat_tainted", "type": "flesh", "mass_ratio": 0.08 },
{ "drop": "blood_tainted", "type": "blood", "mass_ratio": 0.1 },
{ "drop": "bone_tainted", "type": "bone", "mass_ratio": 0.1 },
{ "drop": "raw_tainted_fur", "type": "skin", "mass_ratio": 0.02 },
{ "drop": "pheromone", "type": "bionic", "max": 1 }
{ "drop": "raw_tainted_fur", "type": "skin", "mass_ratio": 0.02 }
]
},
{
@@ -814,6 +1130,7 @@
"type": "harvest",
"entries": [
{ "drop": "meat_tainted", "type": "flesh", "mass_ratio": 0.4 },
{ "drop": "blood_tainted", "type": "blood", "mass_ratio": 0.1 },
{ "drop": "fat_tainted", "type": "flesh", "mass_ratio": 0.1 },
{ "drop": "fat_tainted", "type": "offal", "mass_ratio": 0.1 }
]
@@ -824,9 +1141,9 @@
"type": "harvest",
"entries": [
{ "drop": "meat_tainted", "type": "flesh", "mass_ratio": 0.25 },
{ "drop": "blood_tainted", "type": "blood", "mass_ratio": 0.1 },
{ "drop": "fat_tainted", "type": "flesh", "mass_ratio": 0.08 },
{ "drop": "bone_tainted", "type": "bone", "mass_ratio": 0.1 },
{ "drop": "pheromone", "type": "bionic", "max": 1 }
{ "drop": "bone_tainted", "type": "bone", "mass_ratio": 0.1 }
]
},
{
@@ -849,9 +1166,9 @@
{ "drop": "meat_tainted", "type": "flesh", "mass_ratio": 0.25 },
{ "drop": "fat_tainted", "type": "flesh", "mass_ratio": 0.08 },
{ "drop": "bone_tainted", "type": "bone", "mass_ratio": 0.1 },
{ "drop": "blood_tainted", "type": "blood", "mass_ratio": 0.1 },
{ "drop": "sheet_kevlar", "type": "skin", "mass_ratio": 0.04 },
{ "drop": "raw_tainted_leather", "type": "skin", "mass_ratio": 0.04 },
{ "drop": "pheromone", "type": "bionic", "max": 1 }
{ "drop": "raw_tainted_leather", "type": "skin", "mass_ratio": 0.04 }
]
},
{
@@ -860,6 +1177,7 @@
"type": "harvest",
"entries": [
{ "drop": "bone_tainted", "type": "flesh", "mass_ratio": 0.5 },
{ "drop": "blood_tainted", "type": "blood", "mass_ratio": 0.01 },
{ "drop": "sinew", "type": "bone", "mass_ratio": 0.001 }
]
},
@@ -871,6 +1189,7 @@
{ "drop": "human_flesh", "type": "flesh", "mass_ratio": 0.2 },
{ "drop": "hstomach", "scale_num": [ 1, 1 ], "max": 1, "type": "offal" },
{ "drop": "human_fat", "type": "flesh", "mass_ratio": 0.1 },
{ "drop": "blood", "type": "blood", "mass_ratio": 0.1 },
{ "drop": "bone_human", "type": "bone", "mass_ratio": 0.12 },
{ "drop": "sinew", "type": "bone", "mass_ratio": 0.001 },
{ "drop": "raw_hleather", "type": "skin", "mass_ratio": 0.01 }
@@ -882,6 +1201,7 @@
"type": "harvest",
"entries": [
{ "drop": "demihuman_flesh", "type": "flesh", "mass_ratio": 0.2 },
{ "drop": "demihuman_blood", "type": "blood", "mass_ratio": 0.1 },
{ "drop": "demihuman_stomach", "scale_num": [ 1, 1 ], "max": 1, "type": "offal" },
{ "drop": "demihuman_fat", "type": "flesh", "mass_ratio": 0.1 },
{ "drop": "bone_human", "type": "bone", "mass_ratio": 0.12 },
@@ -894,6 +1214,7 @@
"type": "harvest",
"entries": [
{ "drop": "mutant_human_flesh", "type": "flesh", "mass_ratio": 0.2 },
{ "drop": "mutant_human_blood", "type": "blood", "mass_ratio": 0.1 },
{ "drop": "hstomach", "scale_num": [ 1, 1 ], "max": 1, "type": "offal" },
{ "drop": "mutant_human_fat", "type": "flesh", "mass_ratio": 0.1 },
{ "drop": "bone_human", "type": "bone", "mass_ratio": 0.12 },
@@ -906,9 +1227,11 @@
"type": "harvest",
"entries": [
{ "drop": "human_flesh", "type": "flesh", "mass_ratio": 0.18 },
{ "drop": "blood", "type": "blood", "mass_ratio": 0.1 },
{ "drop": "meat", "type": "flesh", "mass_ratio": 0.4 },
{ "drop": "hstomach", "scale_num": [ 1, 1 ], "max": 1, "type": "offal" },
{ "drop": "human_fat", "type": "flesh", "mass_ratio": 0.1 },
{ "drop": "blood", "type": "blood", "mass_ratio": 0.1 },
{ "drop": "bone_human", "type": "bone", "mass_ratio": 0.12 },
{ "drop": "sinew", "type": "bone", "mass_ratio": 0.001 },
{ "drop": "raw_leather", "type": "skin", "mass_ratio": 0.01 },
+1 -11
View File
@@ -59,11 +59,6 @@
"id": "PACK_CBM",
"name": { "str": "Pack CBM in pouch" }
},
{
"type": "item_action",
"id": "BURROW",
"name": { "str": "Burrow through rock" }
},
{
"type": "item_action",
"id": "GEIGER",
@@ -719,11 +714,6 @@
"id": "PACK_ITEM",
"name": { "str": "Pack an item" }
},
{
"type": "item_action",
"id": "PHEROMONE",
"name": { "str": "Squeeze" }
},
{
"type": "item_action",
"id": "PLANTBLECH",
@@ -742,7 +732,7 @@
{
"type": "item_action",
"id": "FITNESS_CHECK",
"name": "Check health metrics"
"name": { "str": "Check health metrics" }
},
{
"type": "item_action",
+1 -1
View File
@@ -42,7 +42,7 @@
{
"id": "fog_machine",
"type": "SPELL",
"name": "fog ex machina",
"name": { "str": "fog ex machina" },
"description": "You see fog bubbling out of the device.",
"effect": "attack",
"shape": "cone",
@@ -482,7 +482,7 @@
[ "boots_steel", 40 ],
[ "hat_hard", 40 ],
[ "mask_dust", 30 ],
[ "mask_filter", 30 ],
{ "item": "mask_filter", "prob": 30, "charges": [ 0, 100 ] },
[ "glasses_safety", 30 ],
[ "ear_plugs", 35 ],
[ "apron_cut_resistant", 5 ],
@@ -1937,7 +1937,7 @@
[ "optical_cloak", 1 ],
[ "holo_cloak", 1 ],
[ "backpack", 38 ],
[ "UPS_off", 5 ],
{ "item": "UPS_off", "prob": 5, "charges": [ 0, 1000 ] },
[ "adv_UPS_off", 3 ],
[ "tacvest", 10 ],
[ "molle_pack", 8 ],
@@ -1968,17 +1968,17 @@
"type": "item_group",
"id": "mil_accessories",
"items": [
[ "mask_gas", 10 ],
{ "item": "mask_gas", "prob": 10, "charges": [ 0, 100 ] },
[ "duffelbag", 15 ],
{ "item": "goggles_nv", "prob": 1, "charges": [ 0, 100 ] },
{ "item": "goggles_ir", "prob": 1, "charges": [ 0, 100 ] },
[ "optical_cloak", 1 ],
[ "holo_cloak", 1 ],
{ "item": "holo_cloak", "prob": 1, "charges": [ 0, 1000 ] },
{ "item": "mess_kit", "prob": 9, "charges": [ 0, 500 ] },
{ "item": "mil_mess_kit", "prob": 1, "charges": [ 0, 500 ] },
[ "backpack", 38 ],
[ "briefcase", 10 ],
[ "UPS_off", 5 ],
{ "item": "UPS_off", "prob": 5, "charges": [ 0, 1000 ] },
[ "adv_UPS_off", 3 ],
[ "chestguard_hard", 20 ],
[ "armguard_hard", 20 ],
@@ -1999,7 +1999,7 @@
[ "torso_bandolier_grenade", 8 ],
[ "solarpack", 5 ],
[ "chem_hexamine", 3 ],
[ "esbit_stove", 6 ],
{ "item": "esbit_stove", "prob": 6, "charges": [ 0, 50 ] },
[ "mess_tin", 4 ],
{ "group": "full_survival_kit", "prob": 4 }
]
@@ -2075,8 +2075,8 @@
[ "glasses_bal", 20 ],
[ "elbow_pads", 40 ],
[ "knee_pads", 40 ],
[ "mask_filter", 30 ],
[ "mask_gas", 10 ],
{ "item": "mask_filter", "prob": 30, "charges": [ 0, 100 ] },
{ "item": "mask_gas", "prob": 10, "charges": [ 0, 100 ] },
[ "goggles_ski", 30 ],
[ "helmet_skid", 30 ],
[ "chestguard_hard", 20 ],
@@ -2100,7 +2100,7 @@
[ "legpouch_large", 6 ],
[ "chestpouch", 9 ],
[ "ammo_satchel", 4 ],
[ "UPS_off", 5 ],
{ "item": "UPS_off", "prob": 5, "charges": [ 0, 1000 ] },
[ "adv_UPS_off", 3 ],
[ "tacvest", 10 ],
[ "molle_pack", 8 ],
@@ -2136,7 +2136,7 @@
{ "item": "glasses_safety", "prob": 40 },
{ "item": "hat_hard", "prob": 50 },
{ "item": "hat_hard_hooded", "prob": 25 },
{ "item": "wearable_light", "prob": 5 },
{ "item": "wearable_light", "prob": 5, "charges": [ 0, 100 ] },
{ "item": "ear_plugs", "prob": 50 },
{ "group": "ammo_any_batteries_full", "prob": 50 },
{ "item": "flashlight", "prob": 40, "charges": [ 0, 300 ] },
@@ -2418,8 +2418,8 @@
[ "mask_h20survivor", 1 ],
[ "mask_bal", 14 ],
[ "mask_hockey", 26 ],
[ "mask_gas", 24 ],
[ "mask_filter", 12 ],
{ "item": "mask_gas", "prob": 24, "charges": [ 0, 100 ] },
{ "item": "mask_filter", "prob": 12, "charges": [ 0, 100 ] },
[ "mask_bunker", 2 ],
[ "mask_wsurvivor", 4 ],
[ "mask_fsurvivor", 2 ],
@@ -2448,7 +2448,7 @@
[ "bandana", 18 ],
[ "scarf", 26 ],
[ "long_knit_scarf", 15 ],
[ "mask_gas_xl", 4 ],
{ "item": "mask_gas_xl", "prob": 4, "charges": [ 0, 100 ] },
[ "hat_boonie", 16 ],
[ "beret", 18 ],
[ "beret_wool", 14 ],
@@ -2462,11 +2462,11 @@
[ "machete_gimmick", 3 ],
[ "fungicide", 10 ],
[ "insecticide", 10 ],
[ "antifungal", 1 ],
[ "antiparasitic", 5 ],
[ "diazepam", 1 ],
{ "item": "antifungal", "prob": 1, "charges": [ 0, 10 ] },
{ "item": "antiparasitic", "prob": 5, "charges": [ 0, 10 ] },
{ "item": "diazepam", "prob": 1, "charges": [ 0, 10 ] },
[ "throw_extinguisher", 2 ],
[ "small_repairkit", 14 ],
{ "item": "small_repairkit", "prob": 14, "charges": [ 0, 500 ] },
[ "grapnel", 6 ],
{ "item": "misc_repairkit", "prob": 8, "charges-min": 0 },
{ "distribution": [ { "group": "full_survival_kit" }, { "group": "used_survival_kit" } ], "prob": 3 },
@@ -2782,7 +2782,7 @@
{ "item": "mask_guy_fawkes", "prob": 10 },
{ "item": "mask_hockey", "prob": 15 },
{ "item": "mouthpiece", "prob": 5 },
{ "item": "mask_filter", "prob": 5 }
{ "item": "mask_filter", "prob": 5, "charges": [ 0, 100 ] }
]
},
{
+6 -6
View File
@@ -26,7 +26,7 @@
[ "knife_combat", 10 ],
[ "legpouch_large", 5 ],
[ "mask_bal", 10 ],
[ "mask_gas", 10 ],
{ "item": "mask_gas", "prob": 10, "charges": [ 0, 100 ] },
[ "ballistic_vest_esapi", 15 ],
[ "smokebomb", 5 ],
[ "suppressor", 25 ],
@@ -126,12 +126,12 @@
[ "knee_pads", 5 ],
[ "elbow_pads", 5 ],
[ "legrig", 5 ],
[ "UPS_off", 5 ],
{ "item": "UPS_off", "prob": 5, "charges": [ 0, 1000 ] },
[ "adv_UPS_off", 2 ],
[ "emer_blanket", 5 ],
{ "group": "ammo_pocket_batteries_full", "prob": 50 },
[ "tool_belt", 5 ],
[ "oxygen_tank", 15 ],
{ "item": "oxygen_tank", "prob": 15, "charges-min": 0 },
[ "fireman_belt", 15 ],
[ "jack", 5 ],
[ "throw_extinguisher", 10 ],
@@ -140,7 +140,7 @@
{ "group": "tools_toolbox", "prob": 1 },
{ "item": "smoxygen_tank", "prob": 35, "charges-min": 0 },
{ "item": "watercannon", "prob": 10, "charges-min": 0 },
[ "l-stick", 1 ],
{ "item": "l-stick", "prob": 1, "charges": [ 0, 500 ] },
[ "solarpack", 2 ],
[ "bag_body_bag", 5 ]
]
@@ -155,8 +155,8 @@
{ "item": "oxygen_tank", "prob": 10, "charges-min": 0 },
{ "item": "smoxygen_tank", "prob": 15, "charges-min": 0 },
[ "adv_UPS_off", 2 ],
[ "prussian_blue", 25 ],
[ "iodine", 50 ]
{ "item": "prussian_blue", "prob": 25, "charges": [ 1, 10 ] },
{ "item": "iodine", "prob": 50, "charges": [ 1, 10 ] }
]
},
{
@@ -26,8 +26,8 @@
[ "machete_gimmick", 5 ],
[ "teleumbrella", 20 ],
[ "umbrella", 20 ],
[ "aspirin", 100 ],
[ "vitamins", 100 ],
{ "item": "aspirin", "prob": 100, "charges": [ 1, 20 ] },
{ "item": "vitamins", "prob": 100, "charges": [ 1, 20 ] },
[ "eyedrops", 50 ],
{ "item": "inhaler", "prob": 50, "charges-min": 10, "charges-max": 100 },
{ "item": "flashlight", "prob": 50, "charges": [ 0, 300 ] },
@@ -41,7 +41,7 @@
{ "item": "mp3", "prob": 20, "charges": [ 0, 100 ] },
{ "item": "portable_game", "prob": 50, "charges": [ 0, 100 ] },
{ "item": "vibrator", "prob": 5, "charges": [ 0, 100 ] },
[ "gum", 50 ],
{ "item": "gum", "prob": 50, "charges": [ 0, 10 ] },
{ "group": "ammo_pocket_batteries", "prob": 50 },
[ "wrapper", 50 ],
[ "string_6", 50 ],
@@ -78,12 +78,12 @@
"id": "child_items",
"items": [
{ "group": "candy_chocolate", "prob": 360 },
[ "toastem", 10 ],
[ "toastem2", 10 ],
[ "toastem3", 12 ],
[ "cookies", 80 ],
[ "crack", 8 ],
[ "licorice", 10 ],
{ "item": "toastem", "prob": 10, "charges": [ 1, 8 ] },
{ "item": "toastem2", "prob": 10, "charges": [ 1, 8 ] },
{ "item": "toastem3", "prob": 12, "charges": [ 1, 8 ] },
{ "item": "cookies", "prob": 80, "charges": [ 1, 4 ] },
{ "item": "crack", "prob": 8, "charges": [ 1, 4 ] },
{ "item": "licorice", "prob": 10, "charges": [ 1, 4 ] },
[ "bat", 60 ],
{ "group": "softdrinks_canned", "prob": 55 },
{ "item": "cola", "prob": 6, "container-item": "bottle_plastic", "sealed": false },
@@ -175,7 +175,7 @@
[ "trailmap", 6 ],
[ "touristmap", 4 ],
{ "item": "lighter", "prob": 60, "charges-min": 0 },
[ "cig", 40 ],
{ "item": "cig", "prob": 40, "charges": [ 1, 20 ] },
[ "blazer", 15 ],
[ "jeans", 90 ],
[ "under_armor", 15 ],
@@ -227,8 +227,8 @@
[ "kilt", 4 ],
[ "hobo_stove", 1 ],
[ "tinder", 1 ],
[ "tinderbox", 1 ],
[ "l-stick", 1 ],
{ "item": "tinderbox", "prob": 1, "charges": [ 0, 100 ] },
{ "item": "l-stick", "prob": 1, "charges": [ 0, 500 ] },
[ "flint_steel", 5 ],
[ "bottle_metal", 5 ],
[ "wallet_travel", 10 ]
@@ -8,7 +8,7 @@
{ "item": "mask_gas", "prob": 60, "charges-min": 0 },
{ "item": "gasfilter_m", "prob": 60, "charges-min": 0 },
{ "item": "rad_monitor", "prob": 33, "charges": [ 0, 100 ] },
{ "item": "iodine", "prob": 33 },
{ "item": "iodine", "prob": 33, "charges": [ 1, 10 ] },
{ "group": "full_1st_aid", "prob": 15 },
{ "item": "geiger_off", "prob": 15, "charges": [ 0, 100 ] }
]
+37 -34
View File
@@ -36,8 +36,8 @@
"subtype": "collection",
"container-item": "wallet",
"items": [
{ "item": "cash_card", "prob": 1600, "charges-min": 0, "charges-max": 50000 },
{ "item": "money_ten", "prob": 1600, "count": [ 5, 10 ] },
{ "item": "cash_card", "prob": 100, "charges-min": 0, "charges-max": 50000 },
{ "item": "money_ten", "prob": 100, "count": [ 5, 10 ] },
{ "item": "coin_quarter", "prob": 10, "count": [ 1, 2 ] },
{ "item": "coin_nickel", "prob": 10, "count": [ 1, 2 ] },
{ "group": "discount_cards", "prob": 40, "count": [ 1, 3 ] },
@@ -52,8 +52,8 @@
"container-item": "wallet_leather",
"//": "copy-from: wallet_full ",
"items": [
{ "item": "cash_card", "prob": 1600, "charges-min": 0, "charges-max": 50000 },
{ "item": "money_ten", "prob": 1600, "count": [ 5, 10 ] },
{ "item": "cash_card", "prob": 100, "charges-min": 0, "charges-max": 50000 },
{ "item": "money_ten", "prob": 100, "count": [ 5, 10 ] },
{ "item": "coin_quarter", "prob": 10, "count": [ 1, 2 ] },
{ "item": "coin_nickel", "prob": 10, "count": [ 1, 2 ] },
{ "group": "discount_cards", "prob": 40, "count": [ 1, 3 ] },
@@ -68,8 +68,8 @@
"//": "copy-from: wallet_full ",
"container-item": "wallet_large",
"items": [
{ "item": "cash_card", "prob": 1600, "charges-min": 0, "charges-max": 50000 },
{ "item": "money_ten", "prob": 1600, "count": [ 5, 10 ] },
{ "item": "cash_card", "prob": 100, "charges-min": 0, "charges-max": 50000 },
{ "item": "money_ten", "prob": 100, "count": [ 5, 10 ] },
{ "item": "coin_quarter", "prob": 10, "count": [ 1, 2 ] },
{ "item": "coin_nickel", "prob": 10, "count": [ 1, 2 ] },
{ "group": "discount_cards", "prob": 40, "count": [ 1, 3 ] },
@@ -84,7 +84,7 @@
"container-item": "wallet_duct_tape",
"items": [
{ "item": "cash_card", "prob": 50, "charges-min": 0, "charges-max": 500 },
{ "item": "money_one", "prob": 1600, "count": [ 5, 10 ] },
{ "item": "money_one", "prob": 100, "count": [ 5, 10 ] },
{ "item": "coin_quarter", "prob": 50, "count": [ 2, 5 ] },
{ "item": "coin_nickel", "prob": 0, "count": [ 1, 6 ] },
{ "group": "discount_cards", "prob": 10 },
@@ -98,10 +98,10 @@
"subtype": "collection",
"container-item": "wallet_stylish",
"items": [
{ "item": "cash_card", "prob": 1600, "charges-min": 10000, "charges-max": 50000 },
{ "item": "money_one", "prob": 1600, "count": [ 10, 20 ] },
{ "item": "money_ten", "prob": 1600, "count": [ 5, 10 ] },
{ "item": "money_twenty", "prob": 1600, "count": [ 5, 10 ] },
{ "item": "cash_card", "prob": 100, "charges-min": 10000, "charges-max": 50000 },
{ "item": "money_one", "prob": 100, "count": [ 10, 20 ] },
{ "item": "money_ten", "prob": 100, "count": [ 5, 10 ] },
{ "item": "money_twenty", "prob": 100, "count": [ 5, 10 ] },
{ "group": "discount_cards", "prob": 60, "count": [ 2, 5 ] },
{ "item": "condom", "prob": 1 },
[ "scorecard", 5 ]
@@ -114,9 +114,9 @@
"//": "copy-from: wallet_leather_full ",
"container-item": "wallet_leather",
"items": [
{ "item": "cash_card", "prob": 1600, "charges-min": 0, "charges-max": 50000 },
{ "item": "id_military", "prob": 1600 },
{ "item": "money_ten", "prob": 1600, "count": [ 5, 10 ] },
{ "item": "cash_card", "prob": 100, "charges-min": 0, "charges-max": 50000 },
{ "item": "id_military", "prob": 100 },
{ "item": "money_ten", "prob": 100, "count": [ 5, 10 ] },
{ "item": "coin_quarter", "prob": 10, "count": [ 1, 2 ] },
{ "item": "coin_nickel", "prob": 10, "count": [ 1, 2 ] },
{ "group": "discount_cards", "prob": 40, "count": [ 1, 3 ] },
@@ -131,9 +131,9 @@
"//": "copy-from: wallet_full ",
"container-item": "wallet",
"items": [
{ "item": "cash_card", "prob": 1600, "charges-min": 0, "charges-max": 50000 },
{ "item": "id_military", "prob": 1600 },
{ "item": "money_ten", "prob": 1600, "count": [ 5, 10 ] },
{ "item": "cash_card", "prob": 100, "charges-min": 0, "charges-max": 50000 },
{ "item": "id_military", "prob": 100 },
{ "item": "money_ten", "prob": 100, "count": [ 5, 10 ] },
{ "item": "coin_quarter", "prob": 10, "count": [ 1, 2 ] },
{ "item": "coin_nickel", "prob": 10, "count": [ 1, 2 ] },
{ "group": "discount_cards", "prob": 40, "count": [ 1, 3 ] },
@@ -148,13 +148,14 @@
"//": "copy-from: wallet_leather_full ",
"container-item": "wallet_leather",
"items": [
{ "item": "cash_card", "prob": 1600, "charges-min": 0, "charges-max": 50000 },
{ "item": "id_science", "prob": 1600 },
{ "item": "money_ten", "prob": 1600, "count": [ 5, 10 ] },
{ "item": "cash_card", "prob": 100, "charges-min": 0, "charges-max": 50000 },
{ "item": "id_science", "prob": 100 },
{ "item": "money_ten", "prob": 100, "count": [ 5, 10 ] },
{ "item": "coin_quarter", "prob": 10, "count": [ 1, 2 ] },
{ "item": "coin_nickel", "prob": 10, "count": [ 1, 2 ] },
{ "group": "discount_cards", "prob": 40, "count": [ 1, 3 ] },
{ "item": "condom", "prob": 1 },
{ "item": "labmap", "prob": 20 },
[ "scorecard", 20 ]
]
},
@@ -165,13 +166,14 @@
"//": "copy-from: wallet_full ",
"container-item": "wallet",
"items": [
{ "item": "cash_card", "prob": 1600, "charges-min": 0, "charges-max": 50000 },
{ "item": "id_science", "prob": 1600 },
{ "item": "money_ten", "prob": 1600, "count": [ 5, 10 ] },
{ "item": "cash_card", "prob": 100, "charges-min": 0, "charges-max": 50000 },
{ "item": "id_science", "prob": 100 },
{ "item": "money_ten", "prob": 100, "count": [ 5, 10 ] },
{ "item": "coin_quarter", "prob": 10, "count": [ 1, 2 ] },
{ "item": "coin_nickel", "prob": 10, "count": [ 1, 2 ] },
{ "group": "discount_cards", "prob": 40, "count": [ 1, 3 ] },
{ "item": "condom", "prob": 1 },
{ "item": "labmap", "prob": 20 },
[ "scorecard", 20 ]
]
},
@@ -182,13 +184,14 @@
"//": "copy-from: wallet_stylish_full ",
"container-item": "wallet_stylish",
"items": [
{ "item": "id_science", "prob": 1600 },
{ "item": "cash_card", "prob": 1600, "charges-min": 10000, "charges-max": 50000 },
{ "item": "money_one", "prob": 1600, "count": [ 10, 20 ] },
{ "item": "money_ten", "prob": 1600, "count": [ 5, 10 ] },
{ "item": "money_twenty", "prob": 1600, "count": [ 5, 10 ] },
{ "item": "id_science", "prob": 100 },
{ "item": "cash_card", "prob": 100, "charges-min": 10000, "charges-max": 50000 },
{ "item": "money_one", "prob": 100, "count": [ 10, 20 ] },
{ "item": "money_ten", "prob": 100, "count": [ 5, 10 ] },
{ "item": "money_twenty", "prob": 100, "count": [ 5, 10 ] },
{ "group": "discount_cards", "prob": 60, "count": [ 2, 5 ] },
{ "item": "condom", "prob": 1 },
{ "item": "labmap", "prob": 20 },
[ "scorecard", 5 ]
]
},
@@ -199,9 +202,9 @@
"//": "copy-from: wallet_leather_full ",
"container-item": "wallet_leather",
"items": [
{ "item": "cash_card", "prob": 1600, "charges-min": 0, "charges-max": 50000 },
{ "item": "id_industrial", "prob": 1600 },
{ "item": "money_ten", "prob": 1600, "count": [ 5, 10 ] },
{ "item": "cash_card", "prob": 100, "charges-min": 0, "charges-max": 50000 },
{ "item": "id_industrial", "prob": 100 },
{ "item": "money_ten", "prob": 100, "count": [ 5, 10 ] },
{ "item": "coin_quarter", "prob": 10, "count": [ 1, 2 ] },
{ "item": "coin_nickel", "prob": 10, "count": [ 1, 2 ] },
{ "group": "discount_cards", "prob": 40, "count": [ 1, 3 ] },
@@ -216,9 +219,9 @@
"//": "copy-from: wallet_full ",
"container-item": "wallet",
"items": [
{ "item": "cash_card", "prob": 1600, "charges-min": 0, "charges-max": 50000 },
{ "item": "id_industrial", "prob": 1600 },
{ "item": "money_ten", "prob": 1600, "count": [ 5, 10 ] },
{ "item": "cash_card", "prob": 100, "charges-min": 0, "charges-max": 50000 },
{ "item": "id_industrial", "prob": 100 },
{ "item": "money_ten", "prob": 100, "count": [ 5, 10 ] },
{ "item": "coin_quarter", "prob": 10, "count": [ 1, 2 ] },
{ "item": "coin_nickel", "prob": 10, "count": [ 1, 2 ] },
{ "group": "discount_cards", "prob": 40, "count": [ 1, 3 ] },
@@ -45,11 +45,11 @@
{
"id": "drugs_emergency",
"type": "item_group",
"//": "Medical consumables for emergency use excluduing painkillers",
"//": "Medical consumables for emergency use excluding painkillers",
"items": [
[ "adrenaline_injector", 50 ],
{ "item": "inhaler", "prob": 100, "charges-min": 10, "charges-max": 100 },
[ "quikclot", 50 ],
{ "item": "quikclot", "prob": 50, "charges": [ 1, 6 ] },
{ "item": "smoxygen_tank", "prob": 70, "charges": [ 0, 12 ] },
{ "distribution": [ { "group": "full_ifak" }, { "group": "used_ifak" } ], "prob": 40 }
]
@@ -97,12 +97,12 @@
"//": "Healing items appropriate for soldiers and other paramilitary forces",
"entries": [
{ "distribution": [ { "group": "full_ifak" }, { "group": "used_ifak" } ], "prob": 50 },
{ "item": "antibiotics", "prob": 20 },
{ "item": "bandages", "prob": 100 },
{ "item": "morphine", "prob": 20 },
{ "item": "quikclot", "prob": 20 },
{ "item": "antibiotics", "prob": 20, "charges": [ 1, 15 ] },
{ "item": "bandages", "prob": 100, "charges": [ 1, 3 ] },
{ "item": "morphine", "prob": 20, "charges": [ 1, 4 ] },
{ "item": "quikclot", "prob": 20, "charges": [ 1, 6 ] },
{ "item": "smoxygen_tank", "prob": 20, "charges": [ 0, 12 ] },
{ "item": "tramadol", "prob": 20 }
{ "item": "tramadol", "prob": 20, "charges": [ 1, 10 ] }
]
},
{
@@ -140,25 +140,25 @@
"type": "item_group",
"id": "softdrugs",
"items": [
[ "bandages", 30 ],
{ "item": "bandages", "prob": 30, "charges": [ 1, 3 ] },
[ "adhesive_bandages", 30 ],
[ "cotton_ball", 50 ],
{ "item": "cotton_ball", "prob": 50, "charges": [ 1, 10 ] },
{ "group": "used_1st_aid", "prob": 35 },
[ "saline", 25 ],
{ "item": "saline", "prob": 25, "charges": [ 1, 5 ] },
[ "contacts", 10 ],
[ "vitamins", 75 ],
[ "gummy_vitamins", 25 ],
[ "calcium_tablet", 75 ],
[ "aspirin", 85 ],
[ "caffeine", 25 ],
[ "pills_sleep", 15 ],
[ "iodine", 5 ],
[ "prussian_blue", 5 ],
[ "dayquil", 70 ],
[ "nyquil", 70 ],
[ "disinfectant", 35 ],
{ "item": "vitamins", "prob": 75, "charges": [ 1, 20 ] },
{ "item": "gummy_vitamins", "prob": 25, "charges": [ 1, 10 ] },
{ "item": "calcium_tablet", "prob": 75, "charges": [ 1, 20 ] },
{ "item": "aspirin", "prob": 85, "charges": [ 1, 20 ] },
{ "item": "caffeine", "prob": 25, "charges": [ 1, 10 ] },
{ "item": "pills_sleep", "prob": 15, "charges": [ 1, 10 ] },
{ "item": "iodine", "prob": 5, "charges": [ 1, 10 ] },
{ "item": "prussian_blue", "prob": 5, "charges": [ 1, 10 ] },
{ "item": "dayquil", "prob": 70, "charges": [ 1, 5 ] },
{ "item": "nyquil", "prob": 70, "charges": [ 1, 5 ] },
{ "item": "disinfectant", "prob": 35, "charges": [ 1, 10 ] },
[ "vaccine_shot", 10 ],
[ "homeopathic_pills", 10 ],
{ "item": "homeopathic_pills", "prob": 10, "charges": [ 1, 20 ] },
{
"item": "protein_powder",
"prob": 12,
@@ -166,14 +166,14 @@
"charges-min": 1,
"charges-max": 9
},
[ "caff_gum", 10 ],
{ "item": "caff_gum", "prob": 10, "charges": [ 1, 10 ] },
{ "item": "oxygen_tank", "prob": 20, "charges": [ 0, 24 ] },
{ "item": "smoxygen_tank", "prob": 5, "charges": [ 0, 12 ] },
[ "eyedrops", 35 ],
{ "item": "shavingkit", "prob": 5, "charges": [ 0, 10 ] },
{ "item": "elec_hairtrimmer", "prob": 2, "charges": [ 0, 50 ] },
[ "nic_gum", 25 ],
[ "weak_antibiotic", 30 ]
{ "item": "nic_gum", "prob": 25, "charges": [ 1, 10 ] },
{ "item": "weak_antibiotic", "prob": 30, "charges": [ 1, 5 ] }
]
},
{
@@ -181,20 +181,20 @@
"id": "harddrugs",
"items": [
{ "item": "inhaler", "prob": 14, "charges-min": 10, "charges-max": 100 },
[ "codeine", 15 ],
[ "oxycodone", 4 ],
[ "morphine", 4 ],
[ "tramadol", 11 ],
[ "xanax", 10 ],
[ "adderall", 10 ],
[ "thorazine", 7 ],
[ "prozac", 10 ],
[ "antibiotics", 25 ],
[ "strong_antibiotic", 5 ],
[ "antifungal", 2 ],
[ "antiparasitic", 3 ],
{ "item": "codeine", "prob": 15, "charges": [ 1, 10 ] },
{ "item": "oxycodone", "prob": 4, "charges": [ 1, 10 ] },
{ "item": "morphine", "prob": 4, "charges": [ 1, 4 ] },
{ "item": "tramadol", "prob": 11, "charges": [ 1, 10 ] },
{ "item": "xanax", "prob": 10, "charges": [ 1, 10 ] },
{ "item": "adderall", "prob": 10, "charges": [ 1, 10 ] },
{ "item": "thorazine", "prob": 7, "charges": [ 1, 10 ] },
{ "item": "prozac", "prob": 10, "charges": [ 1, 15 ] },
{ "item": "antibiotics", "prob": 25, "charges": [ 1, 15 ] },
{ "item": "strong_antibiotic", "prob": 5, "charges": [ 1, 5 ] },
{ "item": "antifungal", "prob": 2, "charges": [ 1, 5 ] },
{ "item": "antiparasitic", "prob": 3, "charges": [ 1, 10 ] },
[ "survnote", 1 ],
[ "diazepam", 4 ],
{ "item": "diazepam", "prob": 4, "charges": [ 1, 10 ] },
[ "flu_shot", 5 ],
[ "syringe", 8 ]
]
@@ -202,6 +202,12 @@
{
"type": "item_group",
"id": "meth_ingredients",
"items": [ [ "dayquil", 2 ], [ "aspirin", 40 ], [ "adderall", 5 ], [ "energy_drink", 2 ], [ "caffeine", 20 ] ]
"items": [
{ "item": "dayquil", "prob": 2, "charges": [ 1, 5 ] },
{ "item": "aspirin", "prob": 40, "charges": [ 1, 20 ] },
{ "item": "adderall", "prob": 5, "charges": [ 1, 10 ] },
[ "energy_drink", 2 ],
{ "item": "caffeine", "prob": 20, "charges": [ 1, 10 ] }
]
}
]
+47 -2
View File
@@ -107,7 +107,8 @@
{ "item": "horseradish", "prob": 15 },
{ "item": "spread_peanutbutter", "prob": 10 },
{ "item": "honey_bottled", "prob": 35 },
{ "item": "honey_glassed", "prob": 35 }
{ "item": "honey_glassed", "prob": 35 },
{ "item": "oyster_crackers", "prob": 15 }
]
},
{
@@ -187,6 +188,7 @@
{ "item": "can_chicken", "prob": 40 },
{ "item": "broth", "prob": 15 },
{ "item": "crackers", "prob": 10 },
{ "item": "oyster_crackers", "prob": 10 },
{ "item": "grahmcrackers", "prob": 10 },
{ "item": "marshmallow", "prob": 10 },
{ "item": "syrup", "prob": 15 },
@@ -288,6 +290,7 @@
{ "item": "cornbread", "prob": 7 },
{ "item": "flatbread", "prob": 7 },
{ "item": "crackers", "prob": 20 },
{ "item": "oyster_crackers", "prob": 15 },
{ "item": "grahmcrackers", "prob": 20 },
{ "item": "marshmallow", "prob": 20 },
{ "item": "biscuit", "prob": 12 },
@@ -429,7 +432,8 @@
{ "item": "neccowafers", "prob": 55 },
{ "item": "powder_candy", "prob": 50 },
{ "item": "candycigarette", "prob": 15 },
{ "item": "maple_candy", "prob": 10 }
{ "item": "maple_candy", "prob": 10 },
{ "item": "candy_coated_peanuts", "prob": 50 }
]
},
{
@@ -560,6 +564,8 @@
{ "item": "milkshake", "prob": 15 },
{ "item": "milkshake_deluxe", "prob": 5 },
{ "item": "icecream", "prob": 10 },
{ "item": "sundae_cup", "prob": 10 },
{ "item": "frozen_lemonade", "prob": 5 },
{ "item": "milkshake_choc", "prob": 7 },
{ "item": "milkshake_deluxe_choc", "prob": 2 },
{ "item": "icecream_choc", "prob": 5 },
@@ -720,11 +726,14 @@
{ "item": "glazed_tenderloin", "prob": 55 },
{ "item": "fish", "prob": 10 },
{ "item": "fish_smoked", "prob": 5 },
{ "item": "crab_cakes", "prob": 10 },
{ "item": "stuffed_clams", "prob": 5 },
{ "item": "meat_smoked", "prob": 60 },
{ "item": "sausage", "prob": 35 },
{ "item": "bratwurst_sausage", "prob": 30 },
{ "item": "hotdogs_frozen", "prob": 65 },
{ "item": "hotdogs_cooked", "prob": 65 },
{ "item": "hotdogs_newyork", "prob": 45 },
{ "item": "chilidogs", "prob": 30 },
{ "item": "currywurst", "prob": 15 },
{ "item": "lettuce", "prob": 45 },
@@ -751,6 +760,39 @@
{ "item": "tongs", "prob": 60 }
]
},
{
"type": "item_group",
"id": "food_vendor_cart_kitchen",
"subtype": "collection",
"entries": [
{ "item": "cheeseburger", "count": [ 0, 3 ] },
{ "item": "hamburger", "count": [ 0, 3 ] },
{ "item": "hamburger", "count": [ 0, 3 ] },
{ "item": "sloppyjoe", "count": [ 0, 3 ] },
{ "item": "fries", "count": [ 0, 3 ] },
{ "item": "bacon", "count": [ 0, 3 ] }
]
},
{
"type": "item_group",
"id": "food_vendor_cart_fridge",
"subtype": "collection",
"entries": [
{ "item": "lemonade", "count": [ 0, 3 ] },
{ "item": "cola", "count": [ 0, 3 ] },
{ "item": "sports_drink", "count": [ 0, 3 ] },
{ "item": "rootbeer", "count": [ 0, 3 ] },
{ "item": "pickle", "count": [ 0, 3 ] },
{ "item": "ketchup", "count": [ 0, 3 ], "charges": [ 10, 16 ] },
{ "item": "mustard", "count": [ 0, 3 ], "charges": [ 10, 48 ] },
{ "item": "mayonnaise", "count": [ 0, 3 ], "charges": [ 10, 16 ] },
{ "item": "onion", "count": [ 0, 3 ] },
{ "item": "chili_pepper", "count": [ 0, 3 ], "charges": [ 1, 3 ] },
{ "item": "lettuce", "count": [ 0, 3 ], "charges": [ 5, 10 ] },
{ "item": "tomato", "count": [ 0, 3 ] },
{ "item": "cheese", "count": [ 0, 3 ], "charges": [ 4, 8 ] }
]
},
{
"type": "item_group",
"id": "fast_food",
@@ -793,12 +835,15 @@
{ "item": "foodplace_food", "prob": 8 },
{ "item": "chili", "prob": 20 },
{ "item": "chilidogs", "prob": 20 },
{ "item": "hotdogs_newyork", "prob": 15 },
{ "item": "fries", "prob": 80 },
{ "item": "cheese_fries", "prob": 70 },
{ "item": "onion_rings", "prob": 80 },
{ "item": "hamburger", "prob": 30 },
{ "item": "fish_fried", "prob": 8 },
{ "item": "fish_sandwich", "prob": 8 },
{ "item": "crab_cakes", "prob": 6 },
{ "item": "stuffed_clams", "prob": 4 },
{ "item": "tofu_rice", "prob": 4 },
{ "item": "sloppyjoe", "prob": 8 },
{ "item": "bacon", "prob": 25 },
@@ -4,12 +4,14 @@
"id": "NC_ARSONIST_STOCK",
"subtype": "collection",
"items": [
{ "item": "molotov", "count": 50 },
{ "item": "improvised_pipebomb", "count": 50 },
{ "item": "fuse", "count": 20 },
{ "item": "molotov", "count": 5 },
{ "item": "rag", "count": 25 },
{ "item": "gasoline", "count": 1 },
{ "item": "improvised_pipebomb", "count": 25 },
{ "item": "fuse", "count": 5 },
{ "item": "FMCNote", "count": 3 },
{ "item": "nail", "count": 5 },
{ "item": "rebar_rail", "count": 5 },
{ "item": "nail", "count": 5, "charges": [ 1, 100 ] },
{ "item": "rebar", "count": 5 },
{ "item": "textbook_anarch", "count": 1 },
{ "item": "fertilizer_commercial", "count": 1 }
]
@@ -49,7 +49,7 @@
{
"id": "vfw_tools",
"type": "item_group",
"items": [ [ "glock_19", 1 ], [ "boots_steel", 50 ], [ "boots_hiking", 10 ] ]
"items": [ { "item": "glock_19", "prob": 1, "charges": [ 0, 15 ] }, [ "boots_steel", 50 ], [ "boots_hiking", 10 ] ]
},
{
"id": "vfw_books",
@@ -83,7 +83,7 @@
"items": [
{ "group": "guns_energy", "prob": 20 },
{ "group": "gunmod_energy", "prob": 40 },
[ "plut_cell", 30 ],
{ "item": "plut_cell", "prob": 30, "charges": [ 1, 5 ] },
[ "plasma", 30 ],
[ "adv_UPS_off", 20 ]
]
@@ -127,9 +127,9 @@
{ "group": "guns_shotgun_common", "prob": 50 },
{ "group": "guns_survival", "prob": 100 },
{ "item": "flaregun", "prob": 25 },
{ "item": "large_repairkit", "prob": 5 },
{ "item": "large_repairkit", "prob": 5, "charges": [ 0, 500 ] },
{ "item": "signal_flare", "prob": 20 },
{ "item": "small_repairkit", "prob": 5 }
{ "item": "small_repairkit", "prob": 5, "charges": [ 0, 500 ] }
]
},
{
@@ -237,8 +237,8 @@
[ "tailor_portfolio", 3 ],
[ "house_coat", 20 ],
[ "gloves_medical", 50 ],
[ "disinfectant", 35 ],
[ "aspirin", 40 ],
{ "item": "disinfectant", "prob": 35, "charges": [ 1, 10 ] },
{ "item": "aspirin", "prob": 40, "charges": [ 1, 20 ] },
[ "vaccine_shot", 5 ],
[ "flu_shot", 2 ],
[ "blanket", 50 ],
@@ -247,7 +247,7 @@
[ "down_pillow", 15 ],
{ "item": "smoxygen_tank", "prob": 10, "charges": [ 0, 12 ] },
[ "antiparasitic", 3 ],
[ "diazepam", 3 ],
{ "item": "diazepam", "prob": 3, "charges": [ 1, 10 ] },
[ "recipe_augs", 3 ],
{ "group": "religious_books", "prob": 54 },
[ "recipe_medicalmut", 1 ],
@@ -279,16 +279,16 @@
"type": "item_group",
"subtype": "distribution",
"entries": [
{ "item": "aspirin", "prob": 50 },
{ "item": "aspirin", "prob": 50, "charges": [ 1, 20 ] },
{ "group": "full_1st_aid", "prob": 40 },
{ "item": "bandages", "prob": 15 },
{ "item": "bandages", "prob": 15, "charges": [ 1, 3 ] },
{ "item": "adhesive_bandages", "prob": 15 },
{ "item": "duct_tape", "prob": 20 },
{ "item": "duct_tape", "prob": 20, "charges": [ 50, 200 ] },
{ "item": "sewing_kit", "prob": 10, "charges-min": 0 },
{ "item": "mouthpiece", "prob": 10 },
{ "item": "cigar", "prob": 20 },
{ "item": "cig", "prob": 15 },
{ "item": "matches", "prob": 10 }
{ "item": "cigar", "prob": 20, "charges": [ 1, 5 ] },
{ "item": "cig", "prob": 15, "charges": [ 1, 20 ] },
{ "item": "matches", "prob": 10, "charges": [ 1, 20 ] }
]
},
{
@@ -861,13 +861,13 @@
[ "crowbar", 18 ],
[ "halligan", 1 ],
[ "fire_ax", 2 ],
[ "spray_can", 50 ],
{ "item": "spray_can", "prob": 50, "charges": [ 0, 10 ] },
[ "jar_glass_sealed", 10 ],
[ "jar_3l_glass_sealed", 8 ],
[ "flyer", 10 ],
[ "gasoline_lantern", 10 ],
{ "item": "gasoline_lantern", "prob": 10, "charges": [ 0, 500 ] },
{ "item": "electric_lantern", "prob": 8, "charges": [ 0, 100 ] },
[ "oil_lamp", 5 ],
{ "item": "oil_lamp", "prob": 5, "charges": [ 0, 750 ] },
[ "lamp_oil", 1 ],
[ "child_book", 4 ],
[ "hairpin", 3 ],
@@ -880,8 +880,8 @@
[ "pocketwatch", 1 ],
[ "survnote", 1 ],
[ "tinder", 1 ],
[ "hobo_stove", 1 ],
[ "l-stick", 1 ],
{ "item": "hobo_stove", "prob": 1, "charges": [ 0, 100 ] },
{ "item": "l-stick", "prob": 1, "charges": [ 0, 500 ] },
[ "eclipse_glasses", 1 ],
{ "group": "writing_utensils", "prob": 5 }
]
@@ -900,8 +900,8 @@
[ "flyer", 10 ],
[ "file", 10 ],
[ "child_book", 2 ],
[ "lsd", 1 ],
[ "foodperson_mask", 1 ],
{ "item": "lsd", "prob": 1, "charges": [ 1, 5 ] },
{ "item": "foodperson_mask", "prob": 1, "charges": [ 0, 500 ] },
[ "55gal_drum", 10 ],
[ "30gal_drum", 15 ],
{ "group": "tools_toolbox", "prob": 1 },
@@ -916,11 +916,11 @@
{ "item": "rock", "prob": 40 },
{ "item": "rock_flaking", "prob": 15 },
{ "item": "rock_large", "prob": 10 },
{ "item": "jackhammer", "prob": 2 },
{ "item": "jackhammer", "prob": 2, "charges": [ 0, 400 ] },
{ "item": "elec_jackhammer", "prob": 1 },
{ "item": "flashlight", "prob": 40, "charges": [ 0, 300 ] },
{ "item": "dynamite", "prob": 5 },
{ "item": "matches", "prob": 60 },
{ "item": "matches", "prob": 60, "charges": [ 1, 20 ] },
{ "item": "55gal_drum", "prob": 10 },
{ "item": "30gal_drum", "prob": 15 },
{ "item": "grapnel", "prob": 1 },
@@ -1119,14 +1119,14 @@
"type": "item_group",
"id": "methlab",
"items": [
[ "bandages", 25 ],
[ "adhesive_bandages", 25 ],
[ "cotton_ball", 50 ],
{ "item": "bandages", "prob": 25, "charges": [ 1, 3 ] },
{ "item": "adhesive_bandages", "prob": 25, "charges": [ 1, 10 ] },
{ "item": "cotton_ball", "prob": 50, "charges": [ 1, 10 ] },
[ "pan", 60 ],
[ "coke", 10 ],
[ "meth", 90 ],
{ "item": "coke", "prob": 10, "charges": [ 1, 8 ] },
{ "item": "meth", "prob": 90, "charges": [ 1, 6 ] },
[ "jar_glass_sealed", 80 ],
[ "heroin", 1 ],
{ "item": "heroin", "prob": 1, "charges": [ 1, 4 ] },
{ "item": "bleach", "prob": 60, "charges-min": 10 },
{ "item": "ammonia", "prob": 60, "charges-min": 10 },
[ "syringe", 30 ],
@@ -1139,9 +1139,9 @@
{ "item": "matches", "prob": 60, "charges": [ 0, 20 ] },
[ "sewage", 60 ],
[ "improvised_pipebomb", 4 ],
[ "crack", 8 ],
{ "item": "crack", "prob": 8, "charges": [ 1, 4 ] },
[ "crackpipe", 37 ],
[ "lsd", 10 ],
{ "item": "lsd", "prob": 10, "charges": [ 1, 5 ] },
{ "item": "chemistry_set", "prob": 50, "charges": [ 0, 500 ] },
{ "group": "ammo_pocket_batteries_full", "prob": 70 },
{ "item": "flashlight", "prob": 40, "charges": [ 0, 300 ] },
@@ -1248,10 +1248,10 @@
{ "item": "flashlight", "prob": 40, "charges": [ 0, 300 ] },
{ "item": "heavy_flashlight", "prob": 10, "charges": [ 0, 300 ] },
[ "pickaxe", 1 ],
[ "jackhammer", 2 ],
[ "elec_jackhammer", 1 ],
{ "item": "jackhammer", "prob": 2, "charges": [ 0, 400 ] },
{ "item": "elec_jackhammer", "prob": 1, "charges": [ 0, 7000 ] },
[ "dynamite", 5 ],
[ "UPS_off", 5 ],
{ "item": "UPS_off", "prob": 5, "charges": [ 0, 1000 ] },
[ "bio_tools", 10 ],
[ "bio_flashlight", 10 ],
[ "bio_lighter", 10 ],
@@ -1259,12 +1259,11 @@
[ "bio_resonator", 10 ],
[ "bio_hydraulics", 10 ],
[ "bio_weight", 12 ],
[ "bio_shock_absorber", 10 ],
[ "jerrycan", 10 ],
[ "jerrycan_big", 10 ],
[ "gasoline_lantern", 5 ],
{ "item": "gasoline_lantern", "prob": 5, "charges": [ 0, 500 ] },
{ "item": "electric_lantern", "prob": 8, "charges": [ 0, 100 ] },
[ "oil_lamp", 5 ],
{ "item": "oil_lamp", "prob": 5, "charges": [ 0, 750 ] },
[ "lamp_oil", 5 ],
[ "shovel", 10 ],
[ "e_tool", 5 ],
@@ -1274,7 +1273,7 @@
{ "group": "tools_toolbox", "prob": 1 },
[ "apron_leather", 10 ],
[ "tool_anfo_charge", 1 ],
[ "remotevehcontrol", 10 ]
{ "item": "remotevehcontrol", "prob": 10, "charges": [ 0, 100 ] }
]
},
{
@@ -1373,7 +1372,7 @@
[ "flyer", 10 ],
[ "one_year_old_newspaper", 2 ],
{ "group": "newspaper_recent", "prob": 15 },
[ "foodperson_mask", 1 ],
{ "item": "foodperson_mask", "prob": 1, "charges": [ 0, 500 ] },
[ "survnote", 1 ]
]
},
@@ -1386,18 +1385,18 @@
[ "blackjack", 50 ],
{ "item": "shocktonfa_off", "prob": 25, "charges": [ 0, 500 ] },
{ "item": "tazer", "prob": 25, "charges": [ 0, 500 ] },
[ "remington_700", 5 ],
[ "3006", 5 ],
[ "ksg", 8 ],
[ "remington_870_express", 8 ],
[ "mossberg_500_security", 8 ],
[ "shot_beanbag", 25 ],
[ "rm120c", 2 ],
[ "rm20", 1 ],
[ "20x66_beanbag", 10 ],
[ "m79", 8 ],
[ "40x46mm_m651", 20 ],
[ "40x46mm_m1006", 10 ]
{ "item": "remington_700", "prob": 5, "charges": [ 0, 4 ] },
{ "item": "3006", "prob": 5, "charges": [ 1, 20 ] },
{ "item": "ksg", "prob": 8, "charges": [ 0, 7 ] },
{ "item": "remington_870_express", "prob": 8, "charges": [ 0, 7 ] },
{ "item": "mossberg_500_security", "prob": 8, "charges": [ 0, 6 ] },
{ "item": "shot_beanbag", "prob": 25, "charges": [ 1, 10 ] },
{ "item": "rm120c", "prob": 2, "charges": [ 0, 5 ] },
{ "item": "rm20", "prob": 1, "charges": [ 0, 20 ] },
{ "item": "20x66_beanbag", "prob": 10, "charges": [ 1, 10 ] },
{ "item": "m79", "prob": 8, "charges-max": 0 },
{ "item": "40x46mm_m651", "prob": 20, "charges": [ 1, 6 ] },
{ "item": "40x46mm_m1006", "prob": 10, "charges": [ 1, 6 ] }
]
},
{
@@ -1419,17 +1418,17 @@
"subtype": "distribution",
"entries": [
{ "item": "crackpipe", "prob": 8 },
{ "item": "weed", "prob": 10 },
{ "item": "weed", "prob": 10, "charges": [ 1, 5 ] },
{ "item": "joint", "prob": 10 },
{ "item": "seed_weed", "prob": 15 },
{ "item": "seed_tobacco", "prob": 5 },
{ "item": "rolling_paper", "prob": 5 },
{ "item": "pipe_glass", "prob": 15 },
{ "item": "coke", "prob": 8 },
{ "item": "meth", "prob": 2 },
{ "item": "heroin", "prob": 1 },
{ "item": "coke", "prob": 8, "charges": [ 1, 8 ] },
{ "item": "meth", "prob": 2, "charges": [ 1, 6 ] },
{ "item": "heroin", "prob": 1, "charges": [ 1, 4 ] },
{ "item": "syringe", "prob": 8 },
{ "item": "electrohack", "prob": 3 },
{ "item": "electrohack", "prob": 3, "charges": [ 0, 100 ] },
{ "item": "textbook_gaswarfare", "prob": 1 },
{ "item": "textbook_anarch", "prob": 3 },
{ "item": "brewing_cookbook", "prob": 3 },
@@ -1444,10 +1443,10 @@
{ "item": "punch_dagger", "prob": 12 },
{ "item": "claw_bar", "prob": 3 },
{ "item": "crowbar", "prob": 18 },
{ "item": "tazer", "prob": 3 },
{ "item": "tazer", "prob": 3, "charges": [ 0, 500 ] },
{ "item": "software_hacking", "prob": 10 },
{ "item": "spray_can", "prob": 50 },
{ "item": "lsd", "prob": 2 },
{ "item": "spray_can", "prob": 50, "charges": [ 0, 10 ] },
{ "item": "lsd", "prob": 2, "charges": [ 1, 5 ] },
{ "item": "pocketwatch", "prob": 5 },
{ "item": "sf_watch", "prob": 5 },
{ "item": "platinum_watch", "prob": 1 },
@@ -1474,21 +1473,21 @@
"//": "concealable items only plz",
"subtype": "distribution",
"entries": [
{ "item": "caffeine", "prob": 25 },
{ "item": "oxycodone", "prob": 4 },
{ "item": "morphine", "prob": 4 },
{ "item": "adderall", "prob": 10 },
{ "item": "xanax", "prob": 10 },
{ "item": "caffeine", "prob": 25, "charges": [ 1, 10 ] },
{ "item": "oxycodone", "prob": 4, "charges": [ 1, 10 ] },
{ "item": "morphine", "prob": 4, "charges": [ 1, 4 ] },
{ "item": "adderall", "prob": 10, "charges": [ 1, 10 ] },
{ "item": "xanax", "prob": 10, "charges": [ 1, 10 ] },
{ "item": "adrenaline_injector", "prob": 2 },
{ "item": "crack", "prob": 2 },
{ "item": "crack", "prob": 2, "charges": [ 1, 4 ] },
{ "item": "crackpipe", "prob": 2 },
{ "item": "lighter", "prob": 20, "charges": [ 0, 100 ] },
{ "item": "caff_gum", "prob": 10 },
{ "item": "nic_gum", "prob": 10 },
{ "item": "lsd", "prob": 2 },
{ "item": "caff_gum", "prob": 10, "charges": [ 1, 10 ] },
{ "item": "nic_gum", "prob": 10, "charges": [ 1, 10 ] },
{ "item": "lsd", "prob": 2, "charges": [ 1, 5 ] },
{ "item": "joint", "prob": 10 },
{ "item": "rolling_paper", "prob": 5 },
{ "item": "heroin", "prob": 2 },
{ "item": "heroin", "prob": 2, "charges": [ 1, 4 ] },
{ "item": "syringe", "prob": 2 },
{ "item": "mag_porn", "prob": 30 },
{ "item": "mag_survival", "prob": 20 },
@@ -1519,19 +1518,19 @@
{ "item": "switchblade", "prob": 4 },
{ "item": "throwing_knife", "prob": 5 },
{ "item": "tazer", "prob": 1, "charges": [ 0, 100 ] },
{ "item": "cig", "prob": 30 },
{ "item": "cig", "prob": 30, "charges": [ 0, 10 ] },
{ "item": "rope_6", "prob": 5 },
{ "item": "rope_30", "prob": 2 },
{ "item": "duct_tape", "prob": 10 },
{ "item": "duct_tape", "prob": 10, "charges": [ 50, 200 ] },
{ "group": "ammo_pocket_batteries_full", "prob": 15 },
{ "item": "matches", "prob": 10 },
{ "item": "gum", "prob": 10 },
{ "item": "matches", "prob": 10, "charges": [ 0, 20 ] },
{ "item": "gum", "prob": 10, "charges": [ 1, 10 ] },
{ "item": "cable", "prob": 5 },
{ "item": "panties", "prob": 2 },
{ "item": "sharp_toothbrush", "prob": 10 },
{ "item": "razor_blade", "prob": 20 },
{ "item": "soap", "prob": 5 },
{ "item": "detergent", "prob": 5 },
{ "item": "soap", "prob": 5, "charges": [ 1, 10 ] },
{ "item": "detergent", "prob": 5, "charges": [ 1, 20 ] },
{ "item": "knitting_needles", "prob": 1 },
{ "item": "survnote", "prob": 2 }
]
@@ -1543,7 +1542,7 @@
"entries": [
{ "group": "tools_medical", "prob": 100 },
{ "group": "drugs_emergency", "prob": 50 },
{ "item": "quikclot", "prob": 10 },
{ "item": "quikclot", "prob": 10, "charges": [ 1, 6 ] },
{ "item": "badge_doctor", "prob": 2 }
]
},
@@ -1588,8 +1587,8 @@
"id": "toxic_dump_equipment",
"items": [
{ "group": "used_1st_aid", "prob": 35 },
[ "iodine", 5 ],
[ "prussian_blue", 5 ],
{ "item": "iodine", "prob": 5, "charges": [ 1, 10 ] },
{ "item": "prussian_blue", "prob": 5, "charges": [ 1, 10 ] },
[ "canister_empty", 5 ],
[ "boots_steel", 50 ],
[ "wrapped_rad_badge", 15 ],
@@ -1605,7 +1604,7 @@
{ "item": "radio", "prob": 20, "charges": [ 0, 100 ] },
{ "item": "geiger_off", "prob": 8, "charges": [ 0, 100 ] },
{ "item": "rad_monitor", "prob": 4, "charges": [ 0, 50 ] },
[ "UPS_off", 5 ],
{ "item": "UPS_off", "prob": 5, "charges": [ 0, 1000 ] },
[ "flyer", 10 ],
[ "bio_purifier", 10 ],
[ "bio_climate", 10 ],
@@ -1620,7 +1619,7 @@
[ "steam_triple_medium", 1 ],
{ "item": "wearable_light", "prob": 10, "charges": [ 0, 100 ] },
[ "antiparasitic", 5 ],
[ "diazepam", 5 ],
{ "item": "diazepam", "prob": 5, "charges": [ 1, 10 ] },
{ "item": "misc_repairkit", "prob": 5, "charges-min": 0 },
{ "group": "tools_toolbox", "prob": 2 },
[ "apron_leather", 10 ],
@@ -1628,7 +1627,7 @@
[ "thermometer", 3 ],
[ "hygrometer", 3 ],
[ "barometer", 3 ],
[ "remotevehcontrol", 10 ]
{ "item": "remotevehcontrol", "prob": 10, "charges": [ 0, 100 ] }
]
},
{
@@ -1641,15 +1640,15 @@
[ "eyedrops", 20 ],
[ "clock", 10 ],
{ "group": "tobacco_products", "prob": 151 },
[ "weed", 10 ],
{ "item": "weed", "prob": 10, "charges": [ 1, 5 ] },
[ "joint", 10 ],
[ "seed_weed", 15 ],
[ "seed_tobacco", 5 ],
[ "rolling_paper", 5 ],
{ "item": "rolling_paper", "prob": 5, "charges": [ 1, 30 ] },
[ "pipe_glass", 5 ],
[ "coke", 8 ],
[ "meth", 2 ],
[ "heroin", 1 ],
{ "item": "coke", "prob": 8, "charges": [ 1, 8 ] },
{ "item": "meth", "prob": 2, "charges": [ 1, 6 ] },
{ "item": "heroin", "prob": 1, "charges": [ 1, 4 ] },
[ "sneakers", 40 ],
[ "mask_hockey", 5 ],
[ "mask_guy_fawkes", 5 ],
@@ -1669,8 +1668,8 @@
[ "mbag", 20 ],
[ "fanny", 10 ],
{ "group": "ammo_pocket_batteries_full", "prob": 50 },
[ "bb", 8 ],
[ "bbgun", 10 ],
{ "item": "bb", "prob": 8, "charges": [ 1, 500 ] },
{ "item": "bbgun", "prob": 10, "charges": [ 0, 150 ] },
[ "fan", 10 ],
[ "file", 30 ],
[ "photo_album", 5 ],
@@ -1725,7 +1724,7 @@
[ "chips", 65 ],
{ "group": "softdrinks_canned", "prob": 90 },
[ "choco_coffee_beans", 20 ],
[ "caffeine", 20 ],
{ "item": "caffeine", "prob": 20, "charges": [ 1, 10 ] },
[ "cola_meth", 1 ],
[ "picklocks", 10 ],
[ "wolfsuit", 4 ],
@@ -1735,15 +1734,15 @@
[ "blanket", 10 ],
[ "house_coat", 25 ],
{ "item": "talking_doll", "prob": 5, "charges": [ 0, 100 ] },
[ "marble", 5 ],
{ "item": "marble", "prob": 5, "charges": [ 1, 20 ] },
{ "item": "creepy_doll", "prob": 1, "charges": [ 0, 100 ] },
[ "straw_doll", 1 ],
[ "wristwatch", 15 ],
[ "pocketwatch", 5 ],
[ "lsd", 1 ],
[ "gum", 30 ],
[ "caff_gum", 20 ],
[ "nic_gum", 5 ],
{ "item": "lsd", "prob": 1, "charges": [ 1, 5 ] },
{ "item": "gum", "prob": 30, "charges": [ 1, 10 ] },
{ "item": "caff_gum", "prob": 20, "charges": [ 1, 10 ] },
{ "item": "nic_gum", "prob": 5, "charges": [ 1, 10 ] },
[ "hairpin", 5 ],
[ "barrette", 3 ],
[ "clown_suit", 1 ],
@@ -1850,8 +1849,8 @@
"subtype": "distribution",
"entries": [
{ "item": "balance_small", "prob": 5 },
{ "item": "ph_meter", "prob": 5 },
{ "item": "voltmeter", "prob": 5 },
{ "item": "ph_meter", "prob": 5, "charges": [ 0, 100 ] },
{ "item": "voltmeter", "prob": 5, "charges": [ 0, 100 ] },
{ "item": "thermometer", "prob": 5 },
{ "item": "melting_point", "prob": 5 },
{ "item": "vortex", "prob": 5 },
@@ -1867,8 +1866,8 @@
{ "item": "stand_ring", "prob": 5 },
{ "item": "stand_ring_clamps", "prob": 5 },
{ "item": "ether", "prob": 5, "charges-min": 100 },
{ "item": "iodine", "prob": 5 },
{ "item": "prussian_blue", "prob": 5 },
{ "item": "iodine", "prob": 5, "charges": [ 1, 10 ] },
{ "item": "prussian_blue", "prob": 5, "charges": [ 1, 10 ] },
{ "item": "pocket_firstaid", "prob": 2 },
{ "item": "file", "prob": 5 },
{ "item": "textbook_chemistry", "prob": 10 },
@@ -1889,28 +1888,28 @@
{ "group": "used_1st_aid", "prob": 5 },
{ "item": "saline", "prob": 1 },
{ "item": "extinguisher", "prob": 25, "charges": 100 },
{ "item": "hotplate", "prob": 15 },
{ "item": "hotplate", "prob": 15, "charges": [ 0, 500 ] },
{ "item": "funnel", "prob": 50 },
{ "item": "jar_glass_sealed", "prob": 20 },
{ "item": "jar_3l_glass_sealed", "prob": 15 },
{ "item": "apron_leather", "prob": 6 },
{ "item": "pur_tablets", "prob": 15 },
{ "item": "lye_powder", "prob": 10 },
{ "item": "oxy_powder", "prob": 12 },
{ "item": "chemistry_set", "prob": 8 },
{ "item": "pur_tablets", "prob": 15, "charges": [ 1, 15 ] },
{ "item": "lye_powder", "prob": 10, "charges": [ 1, 200 ] },
{ "item": "oxy_powder", "prob": 12, "charges": [ 1, 200 ] },
{ "item": "chemistry_set", "prob": 8, "charges": [ 0, 500 ] },
{ "item": "sm_extinguisher", "prob": 20, "charges": 10 },
{ "item": "eyedrops", "prob": 15 },
{ "item": "charcoal", "prob": 10 },
{ "item": "magnesium", "prob": 10 },
{ "item": "tin", "prob": 10 },
{ "item": "eyedrops", "prob": 15, "charges": [ 1, 10 ] },
{ "item": "charcoal", "prob": 10, "charges": [ 25, 50 ] },
{ "item": "magnesium", "prob": 10, "charges": [ 1, 100 ] },
{ "item": "tin", "prob": 10, "charges": [ 1, 100 ] },
{ "item": "chem_hydrogen_peroxide", "prob": 10, "charges-min": 1 },
{ "item": "chem_muriatic_acid", "prob": 5, "charges-min": 1 },
{ "item": "chem_sulphur", "prob": 10, "charges-min": 100 },
{ "item": "chem_aluminium_powder", "prob": 5 },
{ "item": "chem_aluminium_powder", "prob": 5, "charges": [ 1, 100 ] },
{ "item": "chem_zinc_powder", "prob": 10, "charges-min": 100 },
{ "item": "chem_zinc", "prob": 5, "charges-min": 100 },
{ "item": "chem_manganese_dioxide", "prob": 10, "charges-min": 100 },
{ "item": "chem_saltpetre", "prob": 10 },
{ "item": "chem_saltpetre", "prob": 10, "charges": [ 1, 50 ] },
{ "item": "chem_carbide", "prob": 10, "charges-min": 100 },
{ "item": "denat_alcohol", "prob": 10, "charges-min": 250 }
]
@@ -1929,7 +1928,7 @@
[ "howto_traps", 10 ],
[ "decoy_anarch", 8 ],
[ "recipe_augs", 8 ],
[ "aspirin", 85 ],
{ "item": "aspirin", "prob": 85, "charges": [ 1, 20 ] },
[ "junk_burrito", 25 ],
{ "group": "tobacco_products", "prob": 31 },
[ "contacts", 15 ],
@@ -1955,9 +1954,9 @@
[ "software_electronics_reference", 2 ],
[ "umbrella", 5 ],
[ "teleumbrella", 2 ],
[ "gum", 10 ],
[ "caff_gum", 6 ],
[ "nic_gum", 4 ],
{ "item": "gum", "prob": 10, "charges": [ 1, 10 ] },
{ "item": "caff_gum", "prob": 6, "charges": [ 1, 10 ] },
{ "item": "nic_gum", "prob": 4, "charges": [ 1, 10 ] },
[ "fan", 10 ],
{ "item": "sm_extinguisher", "prob": 10, "charges": 10 },
[ "pocketwatch", 2 ],
@@ -1987,7 +1986,7 @@
{ "item": "fun_survival", "prob": 10 },
{ "item": "recipe_augs", "prob": 1 },
{ "item": "decoy_anarch", "prob": 10 },
{ "item": "aspirin", "prob": 85 },
{ "item": "aspirin", "prob": 85, "charges": [ 1, 20 ] },
{ "item": "maltballs", "prob": 30 },
{ "group": "tobacco_products", "prob": 151 },
{ "item": "contacts", "prob": 15 },
@@ -2004,7 +2003,7 @@
{ "item": "textbook_computer", "prob": 8 },
{ "item": "computer_science", "prob": 8 },
{ "item": "howto_computer", "prob": 6 },
{ "item": "matches", "prob": 60 },
{ "item": "matches", "prob": 60, "charges": [ 1, 20 ] },
{ "item": "extinguisher", "prob": 20, "charges": 100 },
{ "item": "flashlight", "prob": 40, "charges": [ 0, 300 ] },
{ "item": "radio", "prob": 20, "charges": [ 0, 100 ] },
@@ -2025,9 +2024,9 @@
{ "item": "umbrella", "prob": 5 },
{ "item": "teleumbrella", "prob": 2 },
{ "item": "mag_tailor", "prob": 5 },
{ "item": "gum", "prob": 20 },
{ "item": "caff_gum", "prob": 7 },
{ "item": "nic_gum", "prob": 5 },
{ "item": "gum", "prob": 20, "charges": [ 1, 10 ] },
{ "item": "caff_gum", "prob": 7, "charges": [ 1, 10 ] },
{ "item": "nic_gum", "prob": 5, "charges": [ 1, 10 ] },
{ "item": "sm_extinguisher", "prob": 10, "charges": 10 },
{ "item": "pocketwatch", "prob": 2 },
{ "item": "knitting_needles", "prob": 1 },
@@ -2046,15 +2045,15 @@
[ "brownie", 60 ],
[ "aspirin", 40 ],
{ "group": "tobacco_products", "prob": 150 },
[ "gum", 100 ],
[ "caff_gum", 20 ],
[ "nic_gum", 20 ],
{ "item": "gum", "prob": 100, "charges": [ 1, 10 ] },
{ "item": "caff_gum", "prob": 20, "charges": [ 1, 10 ] },
{ "item": "nic_gum", "prob": 20, "charges": [ 1, 10 ] },
[ "instant_coffee", 130 ],
[ "coffee_syrup", 80 ],
[ "coffee_raw", 80 ],
[ "weed", 10 ],
{ "item": "weed", "prob": 10, "charges": [ 1, 5 ] },
[ "joint", 10 ],
[ "matches", 50 ],
{ "item": "matches", "prob": 50, "charges": [ 1, 20 ] },
{ "item": "lighter", "prob": 50, "charges": [ 0, 100 ] },
{ "group": "clothing_glasses", "prob": 30 },
[ "contacts", 30 ],
@@ -2159,20 +2158,20 @@
[ "coffee_raw", 15 ],
[ "instant_coffee", 25 ],
[ "cheese_hard", 5 ],
[ "bandages", 50 ],
[ "adhesive_bandages", 50 ],
[ "cotton_ball", 50 ],
{ "item": "bandages", "prob": 50, "charges": [ 1, 3 ] },
{ "item": "adhesive_bandages", "prob": 50, "charges": [ 1, 10 ] },
{ "item": "cotton_ball", "prob": 50, "charges": [ 1, 10 ] },
{ "group": "used_1st_aid", "prob": 35 },
{ "distribution": [ { "group": "full_ifak" }, { "group": "used_ifak" } ], "prob": 35 },
{ "distribution": [ { "group": "full_survival_kit" }, { "group": "used_survival_kit" } ], "prob": 35 },
{ "group": "premium_contents", "prob": 8 },
[ "saline", 10 ],
[ "vitamins", 75 ],
[ "gummy_vitamins", 25 ],
[ "calcium_tablet", 75 ],
[ "iodine", 5 ],
[ "prussian_blue", 5 ],
[ "dayquil", 70 ],
{ "item": "saline", "prob": 10, "charges": [ 1, 5 ] },
{ "item": "vitamins", "prob": 75, "charges": [ 1, 20 ] },
{ "item": "gummy_vitamins", "prob": 25, "charges": [ 1, 10 ] },
{ "item": "calcium_tablet", "prob": 75, "charges": [ 1, 20 ] },
{ "item": "iodine", "prob": 5, "charges": [ 1, 10 ] },
{ "item": "prussian_blue", "prob": 5, "charges": [ 1, 10 ] },
{ "item": "dayquil", "prob": 70, "charges": [ 1, 5 ] },
[ "screwdriver", 40 ],
[ "screwdriver_set", 10 ],
[ "boots", 70 ],
@@ -2223,14 +2222,14 @@
{ "item": "matches", "prob": 60, "charges": [ 0, 20 ] },
{ "item": "sewing_kit", "prob": 47, "charges-min": 0 },
{ "item": "tailors_kit", "prob": 3, "charges-min": 0 },
[ "thread", 40 ],
{ "item": "thread", "prob": 40, "charges": [ 1, 50 ] },
[ "hammer", 35 ],
{ "item": "extinguisher", "prob": 20, "charges": 100 },
{ "item": "flashlight", "prob": 40, "charges": [ 0, 300 ] },
{ "item": "heavy_flashlight", "prob": 5, "charges": [ 0, 300 ] },
{ "item": "mess_kit", "prob": 10, "charges": [ 0, 500 ] },
{ "item": "hotplate", "prob": 10, "charges": [ 0, 500 ] },
[ "popcan_stove", 5 ],
{ "item": "popcan_stove", "prob": 5, "charges": [ 0, 500 ] },
{ "item": "denat_alcohol", "prob": 10, "charges-min": 250 },
{ "item": "water_purifier", "prob": 5, "charges": [ 0, 100 ] },
{ "item": "radio", "prob": 20, "charges": [ 0, 100 ] },
@@ -2250,9 +2249,9 @@
[ "down_pillow", 15 ],
[ "emer_blanket", 20 ],
[ "flyer", 10 ],
[ "gasoline_lantern", 5 ],
{ "item": "gasoline_lantern", "prob": 5, "charges": [ 0, 500 ] },
{ "item": "electric_lantern", "prob": 8, "charges": [ 0, 100 ] },
[ "oil_lamp", 5 ],
{ "item": "oil_lamp", "prob": 5, "charges": [ 0, 750 ] },
[ "lamp_oil", 5 ],
[ "flotation_vest", 1 ],
[ "vaccine_shot", 10 ],
@@ -2268,7 +2267,7 @@
[ "flaregun", 5 ],
[ "signal_flare", 10 ],
[ "survivormap", 1 ],
[ "pur_tablets", 5 ],
{ "item": "pur_tablets", "prob": 5, "charges": [ 1, 15 ] },
[ "razor_blade", 5 ],
[ "sheath", 5 ],
[ "bootsheath", 5 ],
@@ -2279,12 +2278,12 @@
[ "bodypillow", 1 ],
[ "flint_steel", 6 ],
[ "bottle_metal", 2 ],
[ "hobo_stove", 3 ],
{ "item": "hobo_stove", "prob": 3, "charges": [ 0, 100 ] },
[ "tinder", 3 ],
[ "tinderbox", 2 ],
{ "item": "tinderbox", "prob": 2, "charges": [ 0, 100 ] },
[ "tarp", 15 ],
[ "chem_hexamine", 4 ],
[ "esbit_stove", 8 ],
{ "item": "esbit_stove", "prob": 8, "charges": [ 0, 50 ] },
[ "bottle_folding", 6 ],
[ "mess_tin", 8 ],
[ "metal_file", 5 ],
@@ -2458,7 +2457,7 @@
[ "arm", 5 ],
[ "leg", 5 ],
[ "fetus", 5 ],
[ "foodperson_mask", 1 ],
{ "item": "foodperson_mask", "prob": 1, "charges": [ 0, 500 ] },
[ "human_brain_embalmed", 5 ],
{ "group": "newspaper_old", "prob": 8 },
[ "months_old_newspaper", 2 ]
@@ -6,8 +6,8 @@
"magazine": 100,
"subtype": "distribution",
"entries": [
{ "item": "aspirin", "prob": 85 },
{ "item": "caffeine", "prob": 25 },
{ "item": "aspirin", "prob": 85, "charges": [ 1, 10 ] },
{ "item": "caffeine", "prob": 25, "charges": [ 1, 10 ] },
{ "group": "tobacco_products", "prob": 161 },
{ "item": "sponge", "prob": 10 },
{ "group": "ammo_pocket_batteries_full", "prob": 50 },
@@ -34,10 +34,10 @@
{ "item": "money_bundle", "prob": 55 },
{ "item": "gold_watch", "prob": 5 },
{ "item": "silver_watch", "prob": 10 },
{ "item": "gum", "prob": 30 },
{ "item": "caff_gum", "prob": 10 },
{ "item": "gum", "prob": 30, "charges": [ 1, 10 ] },
{ "item": "caff_gum", "prob": 10, "charges": [ 1, 10 ] },
{ "item": "sm_extinguisher", "prob": 10, "charges": 10 },
{ "item": "nic_gum", "prob": 2 },
{ "item": "nic_gum", "prob": 2, "charges": [ 1, 10 ] },
{ "item": "razor_blade", "prob": 3 },
{ "item": "knitting_needles", "prob": 1 },
{ "group": "newspaper_recent", "prob": 15 },
@@ -742,7 +742,7 @@
[ "water_clean", 30 ],
[ "water_mineral", 15 ],
{ "group": "softdrinks_canned", "prob": 121 },
[ "milk_UHT", 10 ],
{ "item": "milk_UHT", "prob": 10, "charges": [ 1, 6 ], "sealed": false },
[ "juice", 31 ],
[ "pie", 40 ],
[ "pie_meat", 28 ],
@@ -978,9 +978,9 @@
"type": "item_group",
"subtype": "distribution",
"entries": [
{ "item": "cig", "prob": 50 },
{ "item": "matches", "prob": 45 },
{ "item": "rolling_paper", "prob": 10 },
{ "item": "cig", "prob": 50, "charges": [ 1, 20 ] },
{ "item": "matches", "prob": 45, "charges": [ 1, 20 ] },
{ "item": "rolling_paper", "prob": 10, "charges": [ 1, 30 ] },
{ "item": "bottle_glass", "prob": 50 },
{ "item": "bottle_plastic", "prob": 70 },
{ "item": "can_drink", "prob": 65 },
@@ -997,13 +997,13 @@
"type": "item_group",
"subtype": "distribution",
"entries": [
{ "item": "weed", "prob": 30 },
{ "item": "coke", "prob": 30 },
{ "item": "aspirin", "prob": 40 },
{ "item": "cig", "prob": 20 },
{ "item": "weed", "prob": 30, "charges": [ 1, 5 ] },
{ "item": "coke", "prob": 30, "charges": [ 1, 8 ] },
{ "item": "aspirin", "prob": 40, "charges": [ 1, 20 ] },
{ "item": "cig", "prob": 20, "charges": [ 1, 20 ] },
{ "item": "syringe", "prob": 20 },
{ "item": "meth", "prob": 10 },
{ "item": "heroin", "prob": 5 },
{ "item": "meth", "prob": 10, "charges": [ 1, 6 ] },
{ "item": "heroin", "prob": 5, "charges": [ 1, 4 ] },
{ "item": "mag_porn", "prob": 35 },
{ "item": "hairpin", "prob": 5 },
{ "item": "purse", "prob": 15 }
@@ -1066,7 +1066,7 @@
{ "item": "mask_dust", "prob": 15 },
{ "item": "manual_mechanics", "prob": 35 },
{ "item": "manual_fabrication", "prob": 20 },
{ "item": "duct_tape", "prob": 70 },
{ "item": "duct_tape", "prob": 70, "charges": [ 50, 200 ] },
{ "item": "misc_repairkit", "prob": 15, "charges-min": 0 },
{ "group": "tools_toolbox", "prob": 2 }
]
@@ -1122,7 +1122,7 @@
{ "item": "wrench", "prob": 20 },
{ "item": "multitool", "prob": 30 },
{ "item": "screwdriver_set", "prob": 20 },
{ "item": "duct_tape", "prob": 50 },
{ "item": "duct_tape", "prob": 50, "charges": [ 50, 200 ] },
{ "item": "misc_repairkit", "prob": 25, "charges": 200 },
{ "group": "tools_toolbox", "prob": 2 }
]
@@ -1167,7 +1167,7 @@
[ "flour", 30 ],
[ "milk_powder", 30 ],
[ "powder_eggs", 10 ],
[ "egg_bird_unfert", 10 ],
{ "item": "egg_bird_unfert", "charges": 10, "container-item": "carton_egg" },
[ "cooking_oil", 20 ],
[ "irradiated_apple", 5 ],
[ "irradiated_banana", 5 ],
@@ -1190,7 +1190,7 @@
{ "item": "cordless_drill", "prob": 70, "charges": [ 0, 500 ] },
[ "thermometer", 60 ],
[ "saw", 90 ],
[ "chainsaw_off", 10 ],
{ "item": "chainsaw_off", "prob": 10, "charges": [ 0, 450 ] },
[ "bucket", 100 ],
[ "tree_spile", 100 ],
[ "pot", 100 ]
@@ -1244,8 +1244,8 @@
"//": "For cs_car_showroom",
"items": [
{ "group": "ammo_pocket_batteries_full", "prob": 30 },
[ "radio", 10 ],
[ "eyedrops", 10 ],
{ "item": "radio", "prob": 10, "charges": [ 1, 100 ] },
{ "item": "eyedrops", "prob": 10, "charges": [ 1, 10 ] },
[ "rag", 30 ],
[ "paper", 30 ],
[ "foon", 30 ],
@@ -1293,7 +1293,7 @@
"items": [
{ "group": "ammo_pocket_batteries_full", "prob": 30 },
{ "item": "radio", "prob": 10, "charges": [ 0, 100 ] },
[ "eyedrops", 10 ],
{ "item": "eyedrops", "prob": 10, "charges": [ 1, 10 ] },
[ "rag", 30 ],
[ "paper", 30 ],
[ "foon", 30 ],
@@ -1333,7 +1333,7 @@
[ "solar_cell", 10 ],
[ "screwdriver", 15 ],
[ "superglue", 5 ],
[ "polisher", 15 ],
{ "item": "polisher", "prob": 15, "charges": [ 0, 100 ] },
[ "solar_panel", 15 ]
]
},
@@ -1361,7 +1361,7 @@
[ "solar_cell", 10 ],
[ "screwdriver", 15 ],
[ "superglue", 5 ],
[ "polisher", 15 ],
{ "item": "polisher", "prob": 15, "charges": [ 0, 100 ] },
[ "solar_panel", 15 ]
]
},
@@ -1424,7 +1424,7 @@
[ "solar_cell", 10 ],
[ "screwdriver", 15 ],
[ "superglue", 5 ],
[ "polisher", 15 ],
{ "item": "polisher", "prob": 15, "charges": [ 0, 100 ] },
[ "solar_panel", 15 ],
[ "spare_tire_carrier", 10 ],
[ "mounted_spare_tire", 10 ]
@@ -1454,7 +1454,7 @@
[ "solar_cell", 10 ],
[ "screwdriver", 15 ],
[ "superglue", 5 ],
[ "polisher", 15 ],
{ "item": "polisher", "prob": 15, "charges": [ 0, 100 ] },
[ "solar_panel", 15 ],
[ "spare_tire_carrier", 10 ],
[ "mounted_spare_tire", 10 ]
@@ -1508,10 +1508,10 @@
"//": "for cs_sex_shop",
"subtype": "distribution",
"entries": [
{ "item": "weed", "prob": 10 },
{ "item": "coke", "prob": 10 },
{ "item": "meth", "prob": 10 },
{ "item": "aspirin", "prob": 10 },
{ "item": "weed", "prob": 10, "charges": [ 1, 5 ] },
{ "item": "coke", "prob": 10, "charges": [ 1, 8 ] },
{ "item": "meth", "prob": 10, "charges": [ 1, 6 ] },
{ "item": "aspirin", "prob": 10, "charges": [ 1, 20 ] },
{ "item": "mag_porn", "prob": 10 },
{ "item": "purse", "prob": 10 },
{ "item": "hairpin", "prob": 5 },
@@ -1528,10 +1528,10 @@
[ "magnifying_glass", 5 ],
{ "item": "sewing_kit", "prob": 15, "charges-min": 0 },
[ "scissors", 10 ],
[ "gasoline_lantern", 7 ],
{ "item": "gasoline_lantern", "prob": 7, "charges": [ 0, 500 ] },
{ "item": "flashlight", "prob": 25, "charges": [ 0, 300 ] },
[ "hotplate", 20 ],
[ "coffeemaker", 25 ],
{ "item": "hotplate", "prob": 20, "charges": [ 0, 500 ] },
{ "item": "coffeemaker", "prob": 25, "charges": [ 0, 500 ] },
[ "textbook_firstaid", 2 ],
[ "pocket_firearms", 1 ],
[ "mag_archery", 4 ]
@@ -1738,18 +1738,18 @@
"//": "for veterinarian",
"type": "item_group",
"items": [
[ "bandages", 30 ],
[ "adhesive_bandages", 30 ],
{ "item": "bandages", "prob": 30, "charges": [ 1, 3 ] },
{ "item": "adhesive_bandages", "prob": 30, "charges": [ 1, 10 ] },
{ "group": "full_1st_aid", "prob": 10 },
[ "saline", 20 ],
[ "vitamins", 15 ],
[ "calcium_tablet", 15 ],
[ "nyquil", 5 ],
[ "disinfectant", 15 ],
{ "item": "saline", "prob": 20, "charges": [ 1, 5 ] },
{ "item": "vitamins", "prob": 15, "charges": [ 1, 20 ] },
{ "item": "calcium_tablet", "prob": 15, "charges": [ 1, 20 ] },
{ "item": "nyquil", "prob": 5, "charges": [ 1, 5 ] },
{ "item": "disinfectant", "prob": 15, "charges": [ 1, 10 ] },
[ "vaccine_shot", 10 ],
[ "protein_powder", 15 ],
[ "smoxygen_tank", 20 ],
[ "elec_hairtrimmer", 15 ],
{ "item": "smoxygen_tank", "prob": 20, "charges": [ 0, 12 ] },
{ "item": "elec_hairtrimmer", "prob": 15, "charges": [ 0, 50 ] },
[ "survnote", 5 ],
[ "mask_dust", 65 ],
[ "glasses_safety", 10 ],
@@ -1757,14 +1757,14 @@
[ "scissors", 50 ],
[ "fungicide", 10 ],
[ "insecticide", 10 ],
[ "soap", 20 ],
[ "chem_hydrogen_peroxide", 10 ],
{ "item": "soap", "prob": 20, "charges": [ 1, 10 ] },
{ "item": "chem_hydrogen_peroxide", "prob": 10, "charges": [ 1, 10 ] },
[ "canister_empty", 5 ],
[ "stethoscope", 50 ],
[ "scalpel", 50 ],
[ "gloves_medical", 50 ],
[ "medical_gauze", 25 ],
[ "quikclot", 10 ],
{ "item": "quikclot", "prob": 10, "charges": [ 1, 6 ] },
[ "hacksaw", 5 ],
[ "gloves_rubber", 25 ],
{ "item": "rag", "prob": 10, "custom-flags": [ "FILTHY" ] },
@@ -1784,7 +1784,7 @@
{ "item": "catfood", "prob": 20, "container-item": "can_food" },
[ "birdfood", 10 ],
[ "towel", 20 ],
[ "soap", 10 ],
{ "item": "soap", "prob": 10, "charges": [ 1, 10 ] },
[ "gloves_medical", 20 ],
[ "rag", 15 ],
{ "item": "rag", "prob": 2, "custom-flags": [ "FILTHY" ] },
@@ -1798,15 +1798,15 @@
"type": "item_group",
"items": [
[ "syringe", 10 ],
[ "diazepam", 10 ],
[ "antifungal", 30 ],
[ "antiparasitic", 30 ],
[ "antibiotics", 20 ],
[ "thorazine", 7 ],
[ "morphine", 10 ],
[ "codeine", 15 ],
[ "saline", 15 ],
[ "smoxygen_tank", 10 ],
{ "item": "diazepam", "prob": 10, "charges": [ 1, 10 ] },
{ "item": "antifungal", "prob": 30, "charges": [ 1, 10 ] },
{ "item": "antiparasitic", "prob": 30, "charges": [ 1, 10 ] },
{ "item": "antibiotics", "prob": 20, "charges": [ 1, 15 ] },
{ "item": "thorazine", "prob": 7, "charges": [ 1, 10 ] },
{ "item": "morphine", "prob": 10, "charges": [ 1, 4 ] },
{ "item": "codeine", "prob": 15, "charges": [ 1, 10 ] },
{ "item": "saline", "prob": 15, "charges": [ 1, 5 ] },
{ "item": "smoxygen_tank", "prob": 10, "charges": [ 0, 12 ] },
{ "group": "full_1st_aid", "prob": 30 },
[ "medical_tape", 35 ],
[ "blood", 5 ],
@@ -1851,17 +1851,17 @@
[ "undershirt", 30 ],
[ "hoodie", 20 ],
[ "shorts", 30 ],
[ "coke", 3 ],
{ "item": "coke", "prob": 3, "charges": [ 1, 8 ] },
[ "longshirt", 30 ],
[ "adhesive_bandages", 10 ],
{ "item": "adhesive_bandages", "prob": 10, "charges": [ 1, 10 ] },
[ "heatpack", 10 ],
[ "gum", 12 ],
[ "soap", 10 ],
{ "item": "gum", "prob": 12, "charges": [ 1, 10 ] },
{ "item": "soap", "prob": 10, "charges": [ 1, 10 ] },
[ "sports_bra", 30 ],
[ "briefs", 30 ],
[ "yoghurt", 12 ],
[ "vitamins", 10 ],
[ "aspirin", 10 ],
{ "item": "vitamins", "prob": 10, "charges": [ 1, 20 ] },
{ "item": "aspirin", "prob": 10, "charges": [ 1, 20 ] },
[ "fitness_band", 10 ]
]
},
@@ -1923,6 +1923,6 @@
{
"type": "item_group",
"id": "gunshop_accessories",
"items": [ [ "powered_earmuffs", 50 ], [ "ear_plugs", 80 ] ]
"items": [ { "item": "powered_earmuffs", "prob": 50, "charges": [ 0, 50 ] }, [ "ear_plugs", 80 ] ]
}
]
@@ -15,27 +15,27 @@
[ "mag_melee", 30 ],
{ "group": "liquor_and_spirits", "prob": 16 },
[ "bum_wine", 10 ],
[ "chem_ethanol", 12 ],
{ "item": "chem_ethanol", "prob": 12, "charges": [ 1, 200 ] },
{ "group": "salty_snacks", "prob": 135 },
[ "bandages", 25 ],
[ "adhesive_bandages", 25 ],
[ "cotton_ball", 50 ],
[ "caffeine", 25 ],
[ "oxycodone", 7 ],
[ "morphine", 3 ],
[ "adderall", 10 ],
[ "cig", 60 ],
[ "tobacco", 30 ],
[ "chaw", 20 ],
[ "weed", 20 ],
{ "item": "bandages", "prob": 25, "charges": [ 1, 3 ] },
{ "item": "adhesive_bandages", "prob": 25, "charges": [ 1, 10 ] },
{ "item": "cotton_ball", "prob": 50, "charges": [ 1, 10 ] },
{ "item": "caffeine", "prob": 25, "charges": [ 1, 10 ] },
{ "item": "oxycodone", "prob": 7, "charges": [ 1, 10 ] },
{ "item": "morphine", "prob": 3, "charges": [ 1, 4 ] },
{ "item": "adderall", "prob": 10, "charges": [ 1, 10 ] },
{ "item": "cig", "prob": 60, "charges": [ 1, 20 ] },
{ "item": "tobacco", "prob": 30, "charges": [ 1, 20 ] },
{ "item": "chaw", "prob": 20, "charges": [ 1, 20 ] },
{ "item": "weed", "prob": 20, "charges": [ 1, 5 ] },
[ "joint", 20 ],
[ "seed_weed", 20 ],
[ "seed_tobacco", 5 ],
[ "coke", 8 ],
[ "meth", 2 ],
[ "heroin", 1 ],
{ "item": "coke", "prob": 8, "charges": [ 1, 8 ] },
{ "item": "meth", "prob": 2, "charges": [ 1, 6 ] },
{ "item": "heroin", "prob": 1, "charges": [ 1, 4 ] },
[ "syringe", 8 ],
[ "electrohack", 3 ],
{ "item": "electrohack", "prob": 3, "charges": [ 0, 100 ] },
[ "hatchet", 10 ],
[ "nailboard", 5 ],
[ "caltrops", 3 ],
@@ -63,24 +63,24 @@
[ "chestguard_hard", 20 ],
[ "armguard_hard", 20 ],
[ "legguard_hard", 15 ],
[ "shot_00", 8 ],
[ "9mm", 8 ],
[ "45_acp", 7 ],
[ "223", 2 ],
[ "20x66_shot", 2 ],
[ "glock_19", 5 ],
[ "uzi", 8 ],
[ "tec9", 10 ],
[ "cx4", 2 ],
[ "ksub2000", 10 ],
[ "mac_10", 7 ],
[ "mac_11", 10 ],
[ "j22", 13 ],
[ "kp32", 3 ],
[ "kpf9", 6 ],
[ "kp3at", 8 ],
[ "rugerlcp", 10 ],
[ "rm228", 1 ],
{ "item": "shot_00", "prob": 8, "charges": [ 1, 20 ] },
{ "item": "9mm", "prob": 8, "charges": [ 1, 50 ] },
{ "item": "45_acp", "prob": 7, "charges": [ 1, 30 ] },
{ "item": "223", "prob": 2, "charges": [ 1, 30 ] },
{ "item": "20x66_shot", "prob": 2, "charges": [ 1, 20 ] },
{ "item": "glock_19", "prob": 5, "charges": [ 0, 15 ] },
{ "item": "uzi", "prob": 8, "charges": [ 0, 32 ] },
{ "item": "tec9", "prob": 10, "charges": [ 0, 32 ] },
{ "item": "cx4", "prob": 2, "charges": [ 0, 32 ] },
{ "item": "ksub2000", "prob": 10, "charges": [ 0, 15 ] },
{ "item": "mac_10", "prob": 7, "charges": [ 0, 30 ] },
{ "item": "mac_11", "prob": 10, "charges": [ 0, 32 ] },
{ "item": "j22", "prob": 13, "charges": [ 0, 6 ] },
{ "item": "kp32", "prob": 3, "charges": [ 0, 7 ] },
{ "item": "kpf9", "prob": 6, "charges": [ 0, 7 ] },
{ "item": "kp3at", "prob": 8, "charges": [ 0, 7 ] },
{ "item": "rugerlcp", "prob": 10, "charges": [ 0, 6 ] },
{ "item": "rm228", "prob": 1, "charges": [ 0, 10 ] },
[ "suppressor", 15 ],
[ "shot_suppressor", 1 ],
[ "mag_porn", 20 ],
@@ -93,14 +93,14 @@
[ "grenade", 3 ],
[ "grenade_inc", 1 ],
[ "mininuke", 1 ],
[ "crack", 8 ],
{ "item": "crack", "prob": 8, "charges": [ 1, 4 ] },
[ "crackpipe", 37 ],
[ "laser_sight", 15 ],
[ "rail_laser_sight", 10 ],
[ "lsd", 10 ],
[ "gum", 60 ],
[ "caff_gum", 7 ],
[ "nic_gum", 1 ],
{ "item": "lsd", "prob": 10, "charges": [ 1, 5 ] },
{ "item": "gum", "prob": 60, "charges": [ 1, 10 ] },
{ "item": "caff_gum", "prob": 7, "charges": [ 1, 10 ] },
{ "item": "nic_gum", "prob": 1, "charges": [ 1, 10 ] },
[ "improve_sights", 10 ],
[ "waterproof_gunmod", 4 ],
[ "u_shotgun", 4 ],
@@ -110,7 +110,7 @@
[ "RPG-7_tbg7v", 1 ],
[ "RPG-7_pg7vr", 1 ],
[ "flask_hip", 10 ],
[ "chemistry_set", 2 ],
{ "item": "chemistry_set", "prob": 2, "charges": [ 0, 500 ] },
[ "knife_trench", 7 ],
[ "switchblade", 4 ],
[ "gold_watch", 5 ],
@@ -143,7 +143,7 @@
[ "binoculars", 30 ],
[ "firecracker_pack", 20 ],
[ "knife_hunting", 50 ],
[ "glock_19", 5 ],
{ "item": "glock_19", "prob": 5, "charges": [ 0, 15 ] },
[ "backpack", 100 ],
[ "backpack_leather", 50 ],
{ "item": "lighter", "prob": 100, "charges": [ 0, 100 ] },
@@ -167,19 +167,19 @@
{ "item": "oil_lamp", "prob": 40, "charges-min": 0 },
[ "popcan_stove", 10 ],
[ "denat_alcohol", 10 ],
[ "pur_tablets", 10 ],
{ "item": "pur_tablets", "prob": 10, "charges": [ 1, 15 ] },
[ "water_clean", 50 ],
[ "granola", 60 ],
[ "fruit_leather", 50 ],
{ "item": "licorice", "prob": 15 },
{ "group": "salty_snacks", "prob": 130 },
[ "aspirin", 80 ],
{ "item": "aspirin", "prob": 80, "charges": [ 1, 20 ] },
{ "item": "inhaler", "prob": 30, "charges-min": 0 },
{ "group": "beer", "prob": 80 },
[ "vodka", 60 ],
[ "cig", 20 ],
{ "item": "cig", "prob": 20, "charges": [ 1, 20 ] },
[ "crackpipe", 10 ],
[ "weed", 10 ],
{ "item": "weed", "prob": 10, "charges": [ 1, 5 ] },
[ "joint", 10 ],
{ "item": "smart_phone", "prob": 20, "charges-min": 0 },
{ "item": "camera", "prob": 20, "charges": [ 0, 150 ] },
@@ -215,13 +215,13 @@
[ "knee_pads", 80 ],
[ "roller_blades", 40 ],
[ "rollerskates", 10 ],
[ "aspirin", 80 ],
{ "item": "aspirin", "prob": 80, "charges": [ 1, 20 ] },
{ "item": "inhaler", "prob": 30, "charges-min": 10, "charges-max": 100 },
{ "group": "beer", "prob": 180 },
[ "sports_drink", 80 ],
[ "energy_drink", 30 ],
[ "cig", 20 ],
[ "weed", 10 ],
{ "item": "cig", "prob": 20, "charges": [ 1, 20 ] },
{ "item": "weed", "prob": 10, "charges": [ 1, 5 ] },
[ "joint", 10 ],
{ "item": "smart_phone", "prob": 50, "charges-min": 0 }
]
@@ -252,12 +252,12 @@
[ "silver_bracelet", 20 ],
[ "silver_locket", 20 ],
{ "item": "radio", "prob": 20, "charges": [ 0, 100 ] },
[ "aspirin", 80 ],
{ "item": "aspirin", "prob": 80, "charges": [ 1, 20 ] },
{ "item": "inhaler", "prob": 30, "charges-min": 10, "charges-max": 100 },
[ "beer", 80 ],
[ "wine_barley", 20 ],
[ "cig", 20 ],
[ "weed", 10 ],
{ "item": "cig", "prob": 20, "charges": [ 1, 20 ] },
{ "item": "weed", "prob": 10, "charges": [ 1, 5 ] },
[ "joint", 10 ],
{ "item": "smart_phone", "prob": 50, "charges-min": 0 }
]
@@ -118,12 +118,12 @@
{ "item": "mp3", "prob": 40, "charges": 100 },
[ "wolfsuit", 5 ],
[ "dinosuit", 5 ],
[ "gum", 10 ],
{ "item": "gum", "prob": 10, "charges": [ 1, 10 ] },
[ "baseball", 40 ],
[ "football", 40 ],
[ "basketball", 50 ],
{ "item": "talking_doll", "prob": 50, "charges": 100 },
[ "marble", 60 ],
{ "item": "marble", "prob": 60, "charges": [ 1, 20 ] },
{ "item": "creepy_doll", "prob": 1, "charges": 100 },
[ "jedi_cloak", 5 ],
[ "clown_suit", 5 ],
@@ -284,10 +284,10 @@
"ammo": 75,
"magazine": 100,
"items": [
[ "portable_game", 20 ],
{ "item": "portable_game", "prob": 20, "charges": 100 },
[ "antenna", 25 ],
{ "group": "ammo_any_batteries_full", "prob": 50 },
[ "mp3", 40 ],
{ "item": "mp3", "prob": 40, "charges": 100 },
[ "usb_drive", 10 ],
[ "manual_electronics", 20 ],
[ "cable", 60 ],
@@ -661,7 +661,7 @@
"subtype": "distribution",
"items": [
[ "bat_nerf", 70 ],
[ "marble", 50 ],
{ "item": "marble", "prob": 50, "charges": [ 1, 20 ] },
[ "talking_doll", 50 ],
[ "basketball", 30 ],
[ "fc_hairpin", 30 ],
@@ -871,7 +871,7 @@
[ "bottle_plastic", 30 ],
[ "bag_plastic", 30 ],
[ "paper", 30 ],
[ "rolling_paper", 20 ],
{ "item": "rolling_paper", "prob": 20, "charges": [ 1, 30 ] },
{ "item": "rag", "prob": 20, "custom-flags": [ "FILTHY" ] },
{ "item": "flashlight", "prob": 20, "charges": [ 0, 300 ] },
[ "9mm_casing", 20 ],
@@ -941,7 +941,7 @@
{ "item": "inhaler", "prob": 20, "charges-min": 10, "charges-max": 100 },
[ "hairpin", 20 ],
{ "item": "lighter", "prob": 20, "charges": [ 0, 100 ] },
[ "matches", 20 ],
{ "item": "matches", "prob": 20, "charges": [ 1, 20 ] },
[ "jersey", 20 ],
[ "fanny", 20 ],
[ "straw_fedora", 10 ],
@@ -955,7 +955,7 @@
[ "flask_hip", 5 ],
[ "snuggie", 5 ],
[ "tieclip", 5 ],
[ "bb", 5 ],
{ "item": "bb", "prob": 5, "charges": [ 1, 500 ] },
[ "bone_tainted", 1 ],
{ "group": "corpse_mansion", "prob": 1 }
]
@@ -1029,14 +1029,14 @@
[ "tank_top", 5 ],
[ "towel", 20 ],
[ "protein_shake", 8 ],
[ "coke", 3 ],
[ "bandages", 5 ],
[ "adhesive_bandages", 5 ],
{ "item": "coke", "prob": 3, "charges": [ 1, 8 ] },
{ "item": "bandages", "prob": 5, "charges": [ 1, 3 ] },
{ "item": "adhesive_bandages", "prob": 5, "charges": [ 1, 10 ] },
[ "heatpack", 10 ],
[ "gum", 12 ],
[ "yoghurt", 12 ],
[ "vitamins", 10 ],
[ "aspirin", 15 ],
{ "item": "vitamins", "prob": 10, "charges": [ 1, 20 ] },
{ "item": "aspirin", "prob": 15, "charges": [ 1, 20 ] },
{ "group": "corpse_mansion", "prob": 1 },
[ "fitness_band", 3 ]
]
@@ -1110,15 +1110,15 @@
[ "hoodie", 50 ],
[ "shorts", 60 ],
[ "longshirt", 60 ],
[ "bandages", 5 ],
[ "adhesive_bandages", 5 ],
{ "item": "bandages", "prob": 5, "charges": [ 1, 3 ] },
{ "item": "adhesive_bandages", "prob": 5, "charges": [ 1, 10 ] },
[ "heatpack", 10 ],
[ "gum", 12 ],
[ "soap", 10 ],
{ "item": "gum", "prob": 12, "charges": [ 1, 10 ] },
{ "item": "soap", "prob": 10, "charges": [ 1, 10 ] },
[ "sports_bra", 60 ],
[ "briefs", 60 ],
[ "vitamins", 10 ],
[ "aspirin", 10 ],
{ "item": "vitamins", "prob": 10, "charges": [ 1, 10 ] },
{ "item": "aspirin", "prob": 10, "charges": [ 1, 10 ] },
[ "karate_gi", 10 ],
[ "judo_gi", 5 ],
[ "fitness_band", 5 ]
@@ -1177,7 +1177,7 @@
{ "group": "book_mag_gen", "prob": 120 },
{ "group": "tobacco_products", "prob": 50 },
[ "novel_pulp", 30 ],
[ "gum", 30 ],
{ "item": "gum", "prob": 30, "charges": [ 1, 10 ] },
[ "glass", 20 ],
[ "bandana", 10 ],
{ "item": "mp3", "prob": 10, "charges": [ 0, 100 ] },
@@ -1217,8 +1217,8 @@
{ "group": "beer_selection", "prob": 40 },
{ "group": "glass_of_wine", "prob": 40 },
[ "glass", 40 ],
[ "cig", 30 ],
[ "cigar", 20 ],
{ "item": "cig", "prob": 30, "charges": [ 1, 20 ] },
{ "item": "cigar", "prob": 20, "charges": [ 1, 10 ] },
[ "towel", 5 ]
]
},
@@ -1535,7 +1535,7 @@
{ "group": "tools_lighting", "prob": 30 },
{ "group": "softdrugs", "prob": 30 },
{ "item": "lighter", "prob": 20, "charges": [ 0, 100 ] },
[ "matches", 20 ],
{ "item": "matches", "prob": 20, "charges": [ 1, 20 ] },
[ "pocket_survival", 5 ]
]
},
@@ -148,9 +148,9 @@
"type": "item_group",
"items": [
{ "item": "cup_plastic", "prob": 50 },
{ "item": "cig", "prob": 50 },
{ "item": "matches", "prob": 50 },
{ "item": "rolling_paper", "prob": 50 },
{ "item": "cig", "prob": 50, "charges": [ 1, 20 ] },
{ "item": "matches", "prob": 50, "charges": [ 1, 20 ] },
{ "item": "rolling_paper", "prob": 50, "charges": [ 1, 30 ] },
{ "item": "wrapper", "prob": 50 },
{ "item": "news_regional", "prob": 50 },
{ "item": "mag_news", "prob": 50 },
@@ -19,7 +19,7 @@
{ "item": "ceramic_armor", "prob": 15 },
{ "item": "motor", "prob": 2 },
{ "group": "ammo_heavy_batteries_full", "prob": 50 },
{ "item": "plut_cell", "prob": 10 }
{ "item": "plut_cell", "prob": 10, "charges": [ 1, 5 ] }
]
},
{
@@ -109,7 +109,7 @@
"subtype": "distribution",
"entries": [
{ "item": "jumpsuit", "prob": 90 },
{ "item": "mask_filter", "prob": 10 },
{ "item": "mask_filter", "prob": 10, "charges": [ 0, 100 ] },
{ "group": "ammo_pocket_batteries_full", "prob": 10 },
{ "item": "radio", "prob": 10, "charges-min": 10, "charges-max": 95 },
{ "item": "boots_combat", "prob": 20 },
@@ -118,8 +118,8 @@
{ "item": "knife_combat", "prob": 10 },
{ "item": "vest", "prob": 15 },
{ "item": "glasses_safety", "prob": 15 },
{ "item": "9mm", "prob": 15 },
{ "item": "m9", "prob": 10 },
{ "item": "9mm", "prob": 15, "charges": [ 1, 50 ] },
{ "item": "m9", "prob": 10, "charges": [ 0, 15 ] },
{ "item": "water_clean", "prob": 10 },
{ "item": "eyedrops", "prob": 10, "charges-min": 1, "charges-max": 10 },
{ "item": "screwdriver", "prob": 10 },
@@ -217,7 +217,6 @@
{ "item": "savage_111f", "prob": 10 },
{ "item": "ak47", "prob": 16 },
{ "item": "ak74", "prob": 4 },
{ "item": "an94", "prob": 1 },
{ "item": "m4a1", "prob": 7 },
{ "item": "m16a4", "prob": 6 },
{ "item": "h&k416a5", "prob": 3 },
@@ -301,11 +300,11 @@
{ "item": "caffeine", "prob": 25 },
{ "item": "maltballs", "prob": 30 },
{ "group": "tobacco_products", "prob": 141 },
{ "item": "weed", "prob": 10 },
{ "item": "weed", "prob": 10, "charges": [ 1, 5 ] },
{ "item": "joint", "prob": 10 },
{ "item": "seed_weed", "prob": 15 },
{ "item": "seed_tobacco", "prob": 5 },
{ "item": "rolling_paper", "prob": 5 },
{ "item": "rolling_paper", "prob": 5, "charges": [ 1, 30 ] },
{ "item": "pipe_glass", "prob": 5 },
{ "item": "amplifier", "prob": 8 },
{ "item": "transponder", "prob": 5 },
@@ -326,18 +325,18 @@
{ "item": "lighter", "prob": 60, "charges": [ 0, 100 ] },
{ "item": "ref_lighter", "prob": 1, "charges": [ 0, 50 ] },
{ "item": "flashlight", "prob": 40, "charges": [ 0, 300 ] },
{ "item": "radio", "prob": 20, "charges": [ 0, 500 ] },
{ "item": "mp3", "prob": 18, "charges": [ 0, 500 ] },
{ "item": "radio", "prob": 20, "charges": [ 0, 100 ] },
{ "item": "mp3", "prob": 18, "charges": [ 0, 100 ] },
{ "item": "solar_cell", "prob": 5 },
{ "item": "flyer", "prob": 10 },
{ "item": "usb_drive", "prob": 5 },
{ "item": "lsd", "prob": 1 },
{ "item": "gum", "prob": 20 },
{ "item": "caff_gum", "prob": 8 },
{ "item": "lsd", "prob": 1, "charges": [ 1, 5 ] },
{ "item": "gum", "prob": 20, "charges": [ 1, 10 ] },
{ "item": "caff_gum", "prob": 8, "charges": [ 1, 10 ] },
{ "group": "tools_toolbox", "prob": 1 },
{ "item": "nic_gum", "prob": 5 },
{ "item": "nic_gum", "prob": 5, "charges": [ 1, 10 ] },
{ "group": "toy_radio_car", "prob": 2 },
{ "item": "radiocontrol", "prob": 15 },
{ "item": "radiocontrol", "prob": 15, "charges": [ 0, 100 ] },
{ "item": "thermometer", "prob": 10 },
{ "item": "hygrometer", "prob": 10 },
{ "item": "barometer", "prob": 10 },

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