Compare commits

...

1454 Commits

Author SHA1 Message Date
Xaleth 188d38cbc1 Content: More Sokoban levels (#45863)
* Content: Add NetHack sokoban levels to minigame
2021-07-04 12:53:30 -07:00
krulunio df0439fac9 Add lighthouse basecamp (#49336) 2021-07-03 10:45:17 +03:00
John Bytheway e5fa0b0863 Mark various statistics functions const (#49406)
The clang-tidy unsequenced calls warning highlighted some functions that
should have been const but weren't.  Make them so.
2021-07-03 10:45:17 +03:00
krulunio 164965d218 Add pottery cottage basecamp (#49333) 2021-07-03 10:45:17 +03:00
krulunio 0811316449 Add radio tower basecamp (#49249) 2021-07-03 10:45:17 +03:00
krulunio 87510d109f Add fire lookout tower basecamp (#49247) 2021-07-03 10:45:17 +03:00
Zhilkin Serg d206d30458 Revert "Revert "Add mansion basecamp (#49241)" (#49356)"
This reverts commit d621b66080.
2021-07-03 10:45:17 +03:00
LaVeyanFiend d95b02d295 10mm adheres to GAME_BALANCE.md (#49380) 2021-07-03 10:45:17 +03:00
John Bytheway 8833708e02 Fix classic_zombies map_extras
Classic zombies was setting the weight of various map_extras to zero.
This makes sense, but it was also setting the chance of map extras on
certain extras types for every region.  This is problematic because some
regions' extras types lacked any map extras, so setting the chance
non-zero led to errors.

Change the classic zombies mod to just set the extras weights and not
set the chance, so that the regions with no extras would remain at the
default chance of zero and no errors would arise.

As a side-effect, this dramatically increases the chance of field map
extras for the classic zombies mod which had become out of sync with the
base game, which is probably an improvement.
2021-07-03 10:45:17 +03:00
John Bytheway 91c33b2be4 Check for invalid map_extras at validation time
If map extras are specified with invalid weights, this can cause a
runtime error when an extra needs to be selected.  Bring that error
forwards to validation time to make it more reliable.
2021-07-03 10:45:17 +03:00
anothersimulacrum ffa5647901 Add python script to convert armor to use portions
Based on adjust_values.py

I want to make changes to armor_portion_data (add more stuff to it), so
I don't want to maintain two separate JSON interfaces for it.

Add a python script to ease conversion from the old format to
armor_portion_data.
2021-07-03 10:45:17 +03:00
anothersimulacrum bb6ed2fe17 Clear enchantment factory
It isn't currently possible to load a world more than once without
restarting the game, because the enchantment factory isn't being
cleared, and Inline enchantments complain if one with the same name
already exists.
2021-07-03 10:45:17 +03:00
Curtis Merrill ac0cf40ad7 Fix VS compile error with move constructor noexcept (#49347) 2021-07-03 10:45:17 +03:00
faefux 391022f6c0 Add some extra descs for leg clothing (#49218) 2021-07-03 10:45:17 +03:00
Delta 32eacced92 Add wattle fences (#49156) 2021-07-03 10:45:17 +03:00
LyleSY e2869e7b84 [DinoMod] Implements rideable zombie T Rex via missions (#45273) 2021-07-03 10:45:17 +03:00
Binrui Dong 96f5cd4058 Content: Flight suit and helmet (#49246)
* Flight gear
Co-authored-by: Binrui Dong <brett.browning.dong@gmail.com>
Added Two-Way Radio to the helmet when on, in-built radio was a common functionality with the helmets I researched.
Co-authored-by: fae <faefux@tutanota.com>
Co-authored-by: faefux <49350286+faefux@users.noreply.github.com>
Co-authored-by: Anton Burmistrov <Night_Pryanik@mail.ru>
Co-authored-by: chaohedgehogs <46550455+chaohedgehogs@users.noreply.github.com>
2021-07-03 10:45:17 +03:00
John Bytheway d92e7c85b3 Provide documentation and support for llama builds (#49161)
* llama support files

Some helpful files for anyone who wants to build CDDA using llama, a
tool for outsourcing builds to Amazon Lambda.

* Link to llama guide from COMPILING.md
2021-07-03 10:45:16 +03:00
krulunio e7eecb7acc Split military outposts and bunkers (#48697) 2021-07-03 10:45:16 +03:00
ToxiClay b631ae6e59 Typographical/clarity changes 2021-07-03 10:45:16 +03:00
pehamm ffdd38aa8e Fixed spelling of sterilizing 2021-07-03 10:45:16 +03:00
John Bytheway e47e105c9c get_all_mods can return multiple sets of mods
Rewrite get_all_mods to return multiple lines of output.  Two total
conversions should not be in the same line.  The expectation is that we
run the tests loading all the mods in each line.
2021-07-03 10:45:16 +03:00
John Bytheway 1535a2a343 Introduce Total Conversion mod category
Add a new category of mods for Total Conversions.  Reclassify the
Aftershock Exoplanet mod and Dark Skies Above to this new category.
2021-07-03 10:45:16 +03:00
John Bytheway eab2bb42c0 Clang tidy cata combine locals into point (#49130)
* Re-enable cata-combine-locals-into-point

As part of the LLVM 12 port, various changes were made to our
cata-combine-locals-into-point check.  This made it better at detecting
more cases, so it had to be disabled.  This re-enables it, and makes all
the corresponding changes.
2021-07-03 10:45:16 +03:00
John Bytheway b510b509f0 Mark constructor explicit (#49131) 2021-07-03 10:45:16 +03:00
Maleclypse 0f985f0b5c [AFS] Update Schwarz Walder Description (#49099) 2021-07-03 10:45:16 +03:00
Aloxaf 24624b521d Extract mutation.transform and mutation.triggers for translation 2021-07-03 10:45:16 +03:00
Zhilkin Serg 05bb0fe22c Revert #48802 and #49000 2021-07-03 10:45:16 +03:00
anothersimulacrum 6803a17697 Add iexamine actors, replace cardreader actor
Terrain/furniture examination has long need a system where, instead of a
hardcoded action, the changes are performed based on data specified in
the terrain entry. This adds that system.

Add a virtual iexamine_actor, from which subclasses inherit, depending
on the type. This is in large part based on the iuse_actor
infrastructure.
This contains a string informing what type the actor is, for querying
whether a terrain or furniture has this actor and for determining what
subactor to load.

As an example here, the carder iexamine function is converted to be an
examine actor.
2021-07-03 10:45:16 +03:00
John Bytheway db8344bfd3 Capitalize LLVM consistently 2021-07-03 10:45:16 +03:00
John Bytheway 3c35a0c157 Minor grammar/style fixes
Co-authored-by: actual-nh <74678550+actual-nh@users.noreply.github.com>
2021-07-03 10:45:16 +03:00
John Bytheway b746e25676 Update clang-tidy-scripts.patch link
Now that this patch is merged to master, we need no longer refer to a
PR.
2021-07-03 10:45:16 +03:00
John Bytheway 646e3dcc1c Bump CTPS version to llvm-12.0.0-r3 2021-07-03 10:45:16 +03:00
Qrox cb27458319 Update clang-tidy plugin docs for Windows 2021-07-03 10:45:16 +03:00
John Bytheway 458c532164 Update DEVELOPER_TOOLING for LLVM 12 2021-07-03 10:45:16 +03:00
John Bytheway 29f7f81e71 Add version sanity check to module
Strange errors can arise if the plugin is loaded into the wrong clang
version.  Add a check to verify that the versions match.
2021-07-03 10:45:16 +03:00
John Bytheway 546d8206b6 Disable new warnings from LLVM 12 2021-07-03 10:45:16 +03:00
John Bytheway 3ef02959e5 Update build script and workflow for LLVM 12 2021-07-03 10:45:16 +03:00
John Bytheway cbe6265b95 Port clang-tidy-plugin to LLVM 12 2021-07-03 10:45:16 +03:00
John Bytheway 0eb23c3102 GitHub CI: ignore upload failure after build fails
We have the GitHub CI set up to upload the binaries generated by a
failed build.  This is intended to help people debug test failures, but
when the compilation fails there is no binary to upload.  In that case,
GitHub gets distracted by the upload failure and doesn't automatically
jump to the relevant failure.

Reconfigure the upload step to ignore errors due to file not found.
2021-07-03 10:45:16 +03:00
John Bytheway e6aff72cdf Suppress a clang-tidy warning 2021-07-03 10:45:16 +03:00
John Bytheway 36bffa208f Add missing header 2021-07-03 10:45:16 +03:00
John Bytheway e42cf0f88b Remove unused static variables 2021-07-03 10:45:15 +03:00
John Bytheway 011f67b9ff Lint Aftershock json file (#49062) 2021-07-03 10:45:15 +03:00
RelMayers c87a751a23 Update soy milk and almond milk to fix carnivores having no problems with them. (#48918) 2021-07-03 10:45:15 +03:00
OromisElf ce08088bee added mechanical winch and metal gate to construction menu (#47919) 2021-07-03 10:45:15 +03:00
SenpaiSlime e493bf2112 Addition of Gravel Material and according recipes, stone fixes (#49043) 2021-07-03 10:45:15 +03:00
Curtis Merrill f25300bf93 [Magiclysm] Fix ring stacking by adding ONE_PER_LAYER flag (#47518) 2021-07-03 10:45:15 +03:00
Venera3 9dc3fc52c5 Add proper wasp nests (#48161) 2021-07-03 10:45:15 +03:00
Anton Burmistrov 6e45c89e1a New "Bordered" scenario (#48514) 2021-07-03 10:45:15 +03:00
Anton Burmistrov e4cff70f1c Avgas fuel pump (#48458) 2021-07-03 10:45:15 +03:00
Maleclypse 3767fa1dbd Faux Fur survivor gear and recipes (#47424) 2021-07-03 10:45:15 +03:00
Maleclypse a4f3e1888c [Magiclysm] Forge Floor and Wall improvements (#48234) 2021-07-03 10:45:15 +03:00
stubkan 8a477bad9e Placing specials around cities now scales with city size (#48628) 2021-07-03 10:45:15 +03:00
Albert Islamov dbcd56ccb5 Fix woods soup being treated as a meat material when eggs were used (#48499) 2021-07-03 10:45:15 +03:00
Nbane522 db81a996da Update wood.json (#48515) 2021-07-03 10:45:15 +03:00
FayFlightee 0477d601d3 adding steel knuckles (#48535) 2021-07-03 10:45:15 +03:00
Clay Caviness 2bbcb046b2 Fix found->find typo (#48624) 2021-07-03 10:45:15 +03:00
ToxiClay ee9b44b595 Replace comma with semicolon (#48869) 2021-07-03 10:45:15 +03:00
Venera3 6241b3ff6d Redesigning Arthropods Part 3: Wasps! (#47960) 2021-07-03 10:45:15 +03:00
ToxiClay ae3360882e Adding lard to hallula recipe (#48728) 2021-07-03 10:45:15 +03:00
John Candlebury 9774b81d7b Aftershock: Basic Exoplanet Region (#48206) 2021-07-03 10:45:15 +03:00
John Candlebury 7d35730dbd Bases for the first four Hub01 basement npcs (#48719) 2021-07-03 10:45:15 +03:00
Fris0uman 9e05033d06 Jsonize fungalization (#48479) 2021-07-03 10:45:14 +03:00
Fris0uman 9b78c9859e Add Eye colors cosmetic traits (#48726)
* Add the 6 main eye colors

* Make some approximate trait groups

* Randomize eye color for random character at chargen
2021-07-03 10:45:14 +03:00
Fris0uman ff234eaaca Remove "burst" from the code for good (#48856) 2021-07-03 10:45:14 +03:00
Fris0uman 8a733e604e [MSC] Make sugar comestible to sugarkin (#48967) 2021-07-03 10:45:14 +03:00
Zeropol 02df33188c Add a few epitaphs (#48752)
We had only 13 epitaphs, this commit adds 16.
Most are from https://stoneletters.com and I created a few.
I let the reviewer(s) decide which one are OK.
2021-07-03 10:45:14 +03:00
John Bytheway d557a442b7 clang-tidy modernize-use-emplace (#48661)
* Port code to emplace_back

This is clang-tidy making automated changes to convert push_back into
emplace_back whenever the argument to push_back is either a constructor
call for the type in question of an expression of a type implicitly
convertible to the type in question.

This should eliminate one move-construction of the inserted object for
each call.

* Enable clang-tidy modernize-use-emplace
2021-07-03 10:45:14 +03:00
Qrox 1542dc0338 Fix json formatter build and string extraction script 2021-07-03 10:45:14 +03:00
John Bytheway bcbafff90a Fix StringMaker ODR violations in tests
Catch2 provides a customization point for converting our types to
strings by specializing the StringMaker template.

We have some specializations in stringmaker.h, but this feature was only
working intermittently.  I finally figured out that was due to an ODR
violation.  The test files that didn't include stringmaker.h were
compiling a different specialization than the ones that did.

Re-jig the test includes so that any file including catch.hpp also
includes stringmaker.h, thereby ensuring that the custom
specializations are used everywhere and there is no ODR violation.

I achieved this by adding a new cata_catch.h header and making all
existing headers include catch.hpp via the new header.
2021-07-03 10:45:14 +03:00
John Bytheway 6b009a3ad8 New clang-tidy check for static int_ids (#48688)
* Initial check for static int_ids

int_ids with static storage duration are dangerous because they can
start to refer to the wrong thing when game data reloads.  This has
caused problems in the past.

Add a check for such variables, and some tests.

* Remove some static int_ids

Fix issues detected by new check by replacing some static int_ids with
their respective string_ids.

Some were just unused, so got deleted instead.

Some cases suppressed, including the furniture and terrain ids, since
they were the most numerous and widely used, so that seemed the riskiest
change.
2021-07-03 10:45:14 +03:00
John Bytheway 27a9e56d8a Enable clang-tidy readability-isolate-declaration (#48629)
* Enable clang-tidy readability-isolate-declaration

Enable this clang-tidy check and apply the changes it suggests.

Perform some minor refactoring on the result to move some declarations
to first use.

* Refactor some point code

These changes were suggested by clang-tidy as a result of the earlier
tweaks to isolate declarations.
2021-07-03 10:45:14 +03:00
John Bytheway 1aa69807bd Check for unused static variables
We have a lot of global static string_ids.  We want to be able to detect
when they are no longer used.  This check tries to do this.
2021-07-03 10:45:14 +03:00
John Bytheway c5e625d258 Remove unused global statics 2021-07-03 10:45:14 +03:00
John Bytheway 34dc10a0b6 Enable performance-type-promotion-in-math-fn
Enable this clang-tidy check that has no associated warnings.
2021-07-03 10:45:13 +03:00
actual-nh 13c8bce6d0 Correct description of epidemiologist in newspaper (#48684)
He's not a correspondent unless he's a reporter.
2021-07-03 10:45:13 +03:00
John Bytheway 2858982846 Triage clang-tidy readability-braces-around-statements (#48653)
* Triage readability-braces-around-statements

I tried running this clang-tidy check.  It caught only one debatably
useful case and had two false-positives due to a bug.  This is mostly
because this situation is already covered by astyle.

I decided to take the opportunity to add comments for each of the
disabled checks where we've decided we don't want to enable them.  This
one could be enabled once we're using a newer version of clang-tidy.

Co-authored-by: actual-nh <74678550+actual-nh@users.noreply.github.com>
Co-authored-by: Kevin Granade <kevin.granade@gmail.com>
2021-07-03 10:45:13 +03:00
John Bytheway 4e11273098 Omit tests that are failing on Mingw (#48622)
* Omit tests that are failing on Mingw

These string_formatter tests fail on Mingw and it looks like it's simply
a bug in the standard library there.  I don't know that we can
reasonably fix them (short of implementing printf ourselves) and they're
showing up in the GitHub UI for every PR, which is potentially confusing
for contributors.

* Remove !mayfail marking on string_formatter test

This should no longer be expected to fail, with the troublesome tests
excised.
2021-07-03 10:45:13 +03:00
John Bytheway f3a45b72ac Improve messages for some JSON errors
Several of the top-level save files were not providing filenames with
their JSON error messages, because the filename was never passed to the
JsonIn constructor.  Arrange for it to be so passed, to improve those
errors and assist with debugging.
2021-07-03 10:45:13 +03:00
John Bytheway b8c7bf3a69 Improve tripoint formatting in debug messages (#48611) 2021-07-03 10:45:13 +03:00
John Bytheway 4efbfb1770 Improve error message for JSON files with a BOM (#48595)
* Improve error message for JSON files with a BOM

Previously, JSON files starting with a BOM would have a strange and
unhelpful error message that could easily confuse new contributors who
had edited a file in Notepad.

Add a check for this case and try to provide a more helpful error.

Also, expand on this issue in CONTRIBUTING.md, and add some more links
to the wiki guide for first time contributors.

Co-authored-by: Binrui Dong <brett.browning.dong@gmail.com>
2021-07-03 10:45:13 +03:00
John Bytheway b443115f2a Enable clang-tidy check cert-flp30-c
This is just an alias for clang-analyzer-security.FloatLoopCounter which
we're already running, so it just required suppressions in the same
places.
2021-07-03 10:45:13 +03:00
John Bytheway cbeb4fbc96 Enable performance-inefficient-string-concatenation 2021-07-03 10:45:13 +03:00
John Bytheway fa9af09196 Fix inefficient string concatenations
Fix all the warnings triggered by the clang-tidy check
performance-inefficient-string-concatenation.  This highlights two
things: concatenation of a bunch of strings using operator+, and
appending to a string using 'a = a + b' rather than 'a += b'.  In both
cases it only highlights the issue in a loop.

Some of these cases were pretty benign, some looked more serious.  Even
the more serious cases were not, as far as I could tell, in
performance-critical code, but some were probably changing O(n) loops
into O(n^2) loops, so they are good to fix.

To help remediate these issues, added two new helped functions: str_cat
and str_append, inspired by Abseil's StrCat and StrAppend.
2021-07-03 10:45:13 +03:00
John Bytheway 6c6e7a2942 Improve UnsequencedCallsCheck
Previously this check triggered false warnings on expressions in
different elements of an initializer list expression.  Prevent that, and
add some test cases.
2021-07-03 10:45:13 +03:00
Eric 2e8532c91b Unhardcode bio recycler, add hunger enchantment (#47637) 2021-07-03 10:45:13 +03:00
Maleclypse 7f15c214c7 [Aftershock] Greeting Card snippets (#48209) 2021-07-03 10:45:13 +03:00
Maleclypse 1b8fe5c7e7 CRT filenames, fixes and Lore Background (#48506) 2021-07-03 10:45:13 +03:00
LyleSY 32763a38c4 [DinoMod] Dinosaur Jr. bugfix (#48585) 2021-07-03 10:45:13 +03:00
John Bytheway 7f467c4335 Enable clang-tidy check bugprone-unused-return-value (#48546)
* Fix bugprone-unused-return-value

Biggest change here was to mapbuffer, which now stores submaps via
unique_ptr rather than raw pointers, simplifying the destructor.

Unfortunately, we have to retain the strange pointer-based API for
mapbuffer, because the submap ownership logic in map is so convoluted.
That can be fixed another day.

Also, renamed mapbuffer::reset() to clear(), for consistency.

In trait_group, removed a couple of calls to reset() that this warning
was highlighting.  They didn't do anything anyway.

* Enable clang-tidy bugprone-unused-return-value
2021-07-03 10:45:13 +03:00
John Bytheway 9a9321cfcb More robust sunburn tests; better burn feedback. (#48527)
* Translator notes on sunburn suffer strings

These strings were wrong; they had punctuation that they shouldn't have.
Remove that punctuation and add translator note to clarify why it
shouldn't have been there in the first place.

* Remove redundant escapes

These '%' should not have been escaped.  Un-escape them.

* List all burned bodyparts in message

Previously only the most exposed bodypart would be listed in the message
regarding sunburn / irritation.  Instead, list all parts.

* Switch sunburn test to IsBinomialObservation

This test relied on some arbitrary constants, so it was difficult to
know how reasonable failures were.  Switch it to a more statistically
well-founded approach.

* Make IsBinomialObservation more lenient by default

This was calibrated to a false positive rate of one in ten thousand.
That's too high for the rate at which we run tests.  Default to one in
one hundred thousand instead.

* Improve translatability of sunburn messaging

The "%s your %s" string was surely basically impossible to translate.
Incorporate the first part into the string to make that easier, and
provide the number of bodyparts for languages where that matters.
2021-07-03 10:45:13 +03:00
Binrui Dong 3aa5e1d9a6 Enable ClangBuildAnalyzer on PRs to 0.F-dev (#48586) 2021-07-03 10:45:13 +03:00
John Bytheway b8338cc988 Move Mingw CI build to GitHub actions (#48572)
* Move Mingw CI build to GitHub actions

The Mingw cross-compile on Travis has been consistently exceeding the 50
minute time limit for jobs, and causing all PRs to have failed checks.
This is not helpful.

Try to recreate an equivalent job on GitHub actions in the general build
matrix, and disable the Travis version on PRs (leaving it enabled for
master).

* Fetch key before adding mxe repo

* Convey some variables from requirements to build

GitHub doesn't retain environment by default between steps.  We need to
explicitly save the variables we want transferred from requirements.sh
to build.sh.

* Install wine for Mingw build

Looks like wine was installed by default on Travis, but not GitHub, so
we explicitly install it in requirements.sh.

* Pre-run wine in requirements.sh

I think there might be race conditions associated with launching three
wine processes simultaneously.  Try to avoid that by running one in
advance.
2021-07-03 10:45:13 +03:00
John Candlebury 4bde56db00 Add cold resistance gear to escape pod 2021-07-03 10:45:13 +03:00
John Bytheway cecdfc9745 Enable performance-implicit-conversion-in-loop 2021-07-03 10:45:13 +03:00
John Bytheway e4dc7057cc Enable clang-tidy cert-msc{30,32,50,51}-cpp
These all relate to pseudorandom number generators.
2021-07-03 10:45:13 +03:00
John Bytheway badd670c44 Work around Mac OS parsing issues
Simply always set the classic locale on those platforms.
2021-07-03 10:45:13 +03:00
John Bytheway 836970fcc3 Enable cert-err34-c 2021-07-03 10:45:13 +03:00
John Bytheway b72b0519d3 Disable some tests on Apple platforms
It looks like the Mac OS tests show that it doesn't support localized
integer parsing.  Just disable those tests there; the feature is not
super important.
2021-07-03 10:45:13 +03:00
John Bytheway 1b3fbafb6f Stop using atoi/atof in item.cpp
Port to try_parse_integer and strtod.
2021-07-03 10:45:12 +03:00
John Bytheway b0ea1239b2 Stop using sscanf in item_factory.cpp
Port to try_parse_integer.cpp
2021-07-03 10:45:12 +03:00
John Bytheway 9089618e92 Stop using atoi in iuse.cpp
Port to new try_parse_integer API, via a new helper function.
2021-07-03 10:45:12 +03:00
John Bytheway d3dfbcdbf7 Stop using sscanf in iexamine.cpp
Port to new try_parse_integer API.
2021-07-03 10:45:12 +03:00
John Bytheway 6881db5a9a Stop using atoi in options.cpp
Port to new try_parse_integer API.
2021-07-03 10:45:12 +03:00
John Bytheway f011be86df Stop using sscanf in ranged.cpp
Port to new try_parse_integer API.
2021-07-03 10:45:12 +03:00
John Bytheway 50a2965848 Stop using atoi in debug_menu.cpp
Port one use to string_input_popup::query_int, the others to
try_parse_integer.
2021-07-03 10:45:12 +03:00
John Bytheway b7f2902876 Stop using atoi in output.cpp
This was using it to convert the result of a string_input_popup, but
that functionality is already built in to that class, so just use it.
2021-07-03 10:45:12 +03:00
John Bytheway 44663db804 Stop using atoi in safemode_ui
It was only being used to convert an option value, and that
functionality is already built into options.
2021-07-03 10:45:12 +03:00
John Bytheway 881b73be70 Improve cata-no-long check
We need to suppress warnings nested arbitrarily deep in template
specializations; previously we were only suppressing warnings where the
immediate context was a template specialization.
2021-07-03 10:45:12 +03:00
John Bytheway c2349d7d86 Port string_input_popup to try_parse_integer
Stop using atoi in favour of the new API.
2021-07-03 10:45:12 +03:00
John Bytheway f34cc1d46f Add new try_parse_integer API
All the existing ways to parse strings to integers are pretty terrible
for one reason or another.  They offer poor error handling, are verbose,
and/or don't make it obvious whether they are influenced by the current
locale.

Introduce a new API to attempt to simplify the conversion of strings to
ints, using a ret_val for error handling, and with explicit control over
locale.

Also add unit tests.
2021-07-03 10:45:12 +03:00
John Bytheway 6d40fffc33 Fix warnings discovered by UnsequencesCallsCheck
These are mostly just member functions which should have been const but
weren't.  There were a few places where I chose to refactor the code and
one place got a suppression.

I don't think any of these were actual bugs, but in some cases they
could have become bugs in the right corner cases.
2021-07-03 10:45:12 +03:00
John Bytheway 508aa24b44 Know that list initialization is sequenced
To avoid one more class of false positives in UnsequencedCallsCheck,
note that the subexpressions of a list initialization are sequenced.
2021-07-03 10:45:12 +03:00
John Bytheway d2074a4c18 Provide class name in UnsequencedCallsCheck
It's useful for the warning message to also provide the type name of the
thing on which the member function calls are being made.
2021-07-03 10:45:12 +03:00
John Bytheway 58f9ba6c6e Better identification of effectively const methods
Any method with an overload which is const can be treated as effectively
const for the purposes of this check (ideally we'd also see whether the
resulting use was const, but that's probably more complication than
necessary).
2021-07-03 10:45:12 +03:00
John Bytheway f9c01f1724 Treat logical operators as sequencing
Most false-positives for UnsequencedCallsCheck were related to logical
operators.  Handle those properly.
2021-07-03 10:45:12 +03:00
John Bytheway c4d67b5eea Treat nested calls as sequenced
Previously the UnsequencedCallsCheck was giving false positives for
calls where one was nested within the other; prevent that.
2021-07-03 10:45:12 +03:00
John Bytheway e0818e048e Exempt more things from unsequenced calls check
Treat member functions called begin, end, find as special and
effectively const.

Treat the ternary operator as sequencing its args.
2021-07-03 10:45:12 +03:00
John Bytheway a91f191d48 Add initial UnsequencedCallsCheck
This check is intended to look for cases where code is calling multiple
member functions of the same object, at least one of which is non-const,
without an intervening sequence point.  This has been the source of some
bugs, primarily in JSON parsing, where objects might be extracted from
JSON in an unexpected order.
2021-07-03 10:45:12 +03:00
John Bytheway 5463452a5c Move HashCombine to clang-tidy-plugin/Utils.h
Expecting this to be needed in multiple places now, so move to shared
code.
2021-07-03 10:45:12 +03:00
casswedson a7bcda1aef fix typo (#48505) 2021-07-03 10:45:12 +03:00
John Bytheway 06a002d98f Simplify mapgen logic
Previously there were separate dedicated components for terrain and
furniture mapgen.  But these are also supported in the more general
format_placings so it simplifies the code to get rid of the special
cases for terrain and furniture.

(There's some performance cost here, but I don't think it's
significant).
2021-07-03 10:45:12 +03:00
John Bytheway 83065093bc Enable performance-inefficient-vector-operation (#48480)
* Add a collection of `vector::reserve` calls.

All changes done automatically by clang-tidy.

* Enable performance-inefficient-vector-operation
2021-07-03 10:45:11 +03:00
John Bytheway 3f58af8fdd Work around issues with STL move assignments (#48482) 2021-07-03 10:17:08 +03:00
John Bytheway 4ea591ca95 Fix missing harvest entry introduced in #48228 2021-07-03 10:17:08 +03:00
Maleclypse 9cd9215ff4 Retractable security gates (#48336) 2021-07-03 10:17:08 +03:00
John Bytheway 614d23f1bd Enable clang-tidy check for noexcept move constructors (#48467)
* Mark many things noexcept

Mark all our move constructors and move assignment operators noexcept.

* Enable performance-noexcept-move-constructors

This clang-tidy check looks for mone constructors which were are not
noexcept, which can cause poor performance when those classes are e.g.
used in a std::vector.
2021-07-03 10:17:08 +03:00
Alexey Mostovoy 3320cfc72b Mark string for translation 2021-07-03 10:17:08 +03:00
Brian-Otten f66788d151 simple makeshift glaive (#48386) 2021-07-03 10:17:08 +03:00
Mark Langsdorf 48a304f454 Dark Skies Above: Surveillance drone scan and reinforcements (#48228) 2021-07-03 10:17:08 +03:00
ANickelN 0d12c09d0e Fix glass weights, lengths and volumes (#48449) 2021-07-03 10:17:08 +03:00
ANickelN 855ee3ef35 Audit Pocket Length/Volume/Weight Clothing (#48420) 2021-07-03 10:17:08 +03:00
ephemeralstoryteller 22b67ba730 [Dark Skies] Adds ballistic armor to aliens (#48446) 2021-07-03 10:17:08 +03:00
ephemeralstoryteller 5ed81fe133 [Dark Skies] Lore and JSON Cleanup, Blacklists Mutant Wildlife (#48448) 2021-07-03 10:17:08 +03:00
MitztheKat ee35894883 Clarify Wood Saw's log-to-plank ability in its description (#48444) 2021-07-03 10:17:08 +03:00
slitherrr 4f67537206 Fix some dialog in refugee trees
Add an escape for the Jenny Forcette training tree to prevent an
unescapable loop when the avatar is too skilled, and also add a bit of
prologue to Boris's ask for the Ash's Laptop quest.
2021-07-03 10:17:08 +03:00
John Candlebury 1e49f91700 Aftershock: Cold Suits (#48428) 2021-07-03 10:17:08 +03:00
John Bytheway 1a9f7ce69b Enable clang-tidy readability-function-size (#48407)
* Enable readability-function-size

Suppress the remaining cases for functions I don't care to refactor.

* Typo in iteminfo_test
2021-07-03 10:17:08 +03:00
John Bytheway 8188dfd4bc Fix compilation of magic.cpp (#48430)
This got broken by #47946 because exp_for_level was made a member
function but one call to it was not updated.  Fix that.
2021-07-03 10:17:08 +03:00
John Bytheway b43de6ac39 Refactor iteminfo_test coverage and encumbrance
Pull out a bunch of repeated REQUIRES commands into two new helper
functions.

This dramatically reduces the number of statements in the function,
allowing it to pass the clang-tidy check for function size, and I think
it also improves readability.
2021-07-03 10:17:08 +03:00
John Bytheway a50fca1522 Split ammo_set_test function
Split this large function to reduce its size.
2021-07-03 10:17:07 +03:00
John Bytheway ad4061ef45 Refactor Character::hardcoded_effects
Split some more effects out into their own specific functions to reduce
the size of this very large function.
2021-07-03 10:17:07 +03:00
John Bytheway 5cc35b20a8 Split game::handle_action
Make this large function smaller by factoring out two parts of it into
new functions.
2021-07-03 10:17:07 +03:00
John Bytheway 224ab58944 Split debug_menu function
Extract three cases from the giant switch statement into new, separate,
functions.
2021-07-03 10:17:07 +03:00
souricelle d9d480598a Add feral scientists and lab security (#47996) 2021-07-03 10:17:07 +03:00
Xenomorph-III e864f77299 Reword student description (#48370) 2021-07-03 10:17:07 +03:00
actual-nh c05dd4f9f2 [Magiclysm] Fix orc archer not spawning with ammo (#46780) 2021-07-03 10:17:07 +03:00
casswedson eb1689a932 Misc typographical fixes (#48346)
* misc typographical fixes

Co-authored-by: actual-nh <74678550+actual-nh@users.noreply.github.com>
2021-07-03 10:17:07 +03:00
Shadestyle 8ef53356cc Add Underground Pit Digging (#47943) 2021-07-03 10:17:07 +03:00
LaVeyanFiend 1961a898d7 Mutations + Bionics: The Cancelling (#47117) 2021-07-03 10:17:07 +03:00
Eric de94ec61bf Unhardcode bio_drain bionic faults (#48295) 2021-07-03 10:17:07 +03:00
Eric cdfb37f013 Allows defining enchantments inline in bionics/mutations (#48151) 2021-07-03 10:17:07 +03:00
Anton Burmistrov 50854965f0 Jsonify drug dealer map extra (#48327)
* Added json-version of drug dealers map extra

* Made game use json-version instead of hardcoded one

* Updated item group to contain drugs

Also increased damage level of corpses to pulped state so they don't revive

* Removed hardcoded generation
2021-07-03 10:17:07 +03:00
Mark Ponti 636fd0de5f meatballs (#48124)
* Update meat_dishes.json

* Update meat_dishes.json

* Update meat_dishes.json

* Update meat_dishes.json

* Update recipe_food.json

* Update recipe_food.json

* Update recipe_food.json

* Update recipe_food.json

* Update recipe_food.json

* Update data/json/recipes/recipe_food.json

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

Co-authored-by: Binrui Dong <brett.browning.dong@gmail.com>
2021-07-03 10:17:07 +03:00
Jamuro-g a5cdf3c723 Added warning to excessive long attack times (#47835)
* added warning to excessive long attack times

* restore code

* astyle fix

* removed unused code

* Update src/melee.cpp

Co-authored-by: Jianxiang Wang (王健翔) <qrox@sina.com>

* Update src/melee.cpp

Co-authored-by: Jianxiang Wang (王健翔) <qrox@sina.com>

* switch message block

Co-authored-by: Jianxiang Wang (王健翔) <qrox@sina.com>
2021-07-03 10:17:07 +03:00
MarlossCDDA 332fb1c602 Replace "two-by-four" with "plank" in user-facing strings (#47709)
* s/two by four/plank

there are still some translations that refer to "two by" "four" across
two lines, leaving those alone for now because I'm lazy

* fix id in doc/VEHICLES_JSON.md, revert translation changes
2021-07-03 10:17:07 +03:00
zeropol 8033e1f9e0 Filter items by book skill ( V, e, / ), fixes #47530 (#48275)
* Add a filter to search books by skills they teach

* Hide books not skimmed when filtering items

The player was able to know which skill a book tech without first skim it.

* Fix typographic error

* Check non-skill by ID

name() is i18n-dependent and it may return something other than "nothing" in different languages.

Co-authored-by: Binrui Dong <brett.browning.dong@gmail.com>
2021-07-03 10:17:07 +03:00
Alexey Mostovoy 2b9515f147 Fix typo 2021-07-03 10:17:07 +03:00
Maleclypse 743e07d8e0 Add Red Concrete (#48242)
Co-authored-by: Binrui Dong <brett.browning.dong@gmail.com>
2021-07-03 10:17:06 +03:00
zeropol bc21b71d38 Make gym furniture constructible (#48271) 2021-07-03 10:17:06 +03:00
Mark Langsdorf b7dd00c23d monsters: Monsters on patrol (#48155)
* mapgen: clean up jmapgen_monster formatting

Add some whitespace and relocate some single line comments so
the jmapgen_monster class looks nice on a 100 character wide
screen.

* monsters: pass a patrol route to a monster

Add the ability to define a patrol route when placing a monster.
The patrol route is defined as a series of relative mapsquare points
to the original overmap terrain tile's (0,0) mapsquare and is part
of the "spawn_data" structure.  Patrol routes and progress along the
route are saved as part of the monster's data structure.

Monsters on a patrol route move on the patrol if they have nothing
better to do: patrol movement takes precedence over wandering and
stabling, but any valid target overrides the patrol.  Monsters on
a patrol will move to the next patrol point in the list.  As a
work-around for impassible destination points, patrol points are
considered reached when the monster gets within 2 tiles of them.

* monsters: document spawn_data and add patrol in mapgen.doc

Document the existing spawn_data field and its ammo subfield, and
add the new patrol subfield. patrol is a list of points that the
monster will move between, when it would otherwise move idly.
2021-07-03 10:17:06 +03:00
Saint-of-Grey caf6eb1e6f Update description of LEAVES mutation line (#48215) 2021-07-03 10:17:06 +03:00
Dekker3D c20d62adfb Material volume fixes (#48194) 2021-07-03 10:17:06 +03:00
Eric e3d862fc02 Change weather to use effect_on_conditions (#48178)
* Move weather into effect_on_conditions

* Update effect_on_condition.json

* LGTM issue
2021-07-03 10:17:06 +03:00
John Bytheway 50e201260d Detect duplicate values in json definitions of sets (#48225) 2021-07-03 10:17:06 +03:00
Light-Wave 76d644b350 [Magiclysm] New spell: Jar of Force (#47952)
* Adds Jar of Force spell for magus

Adds Jar of Force, a magus spell that summons a jar of force that acts as a 3l jar. It can store liquids and be used to boil things in.

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

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

Co-authored-by: actual-nh <74678550+actual-nh@users.noreply.github.com>
2021-07-03 10:17:06 +03:00
Salty Panda 9ccd59aa31 [Magiclysm] Overhaul and balance dragon items (#47499)
* Overhaul dragon items

* Fixes

* Small balance fixes after testing, make crafting costs more linear

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

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

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

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

* Make xl visor the same thickness as normal one to avoid error, specify in description that dragon hide/scale is very durable, fix gloves description mentioning Kevlar, add XL backpack

* lint

* fix xl backpack

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

Co-authored-by: actual-nh <74678550+actual-nh@users.noreply.github.com>
Co-authored-by: Curtis Merrill <curtis.r.merrill@gmail.com>
2021-07-03 10:17:06 +03:00
OromisElf 94579b72f1 new druid spell: seed of growth (#47912)
* new druid spell: seed of growth

* added comment for future json workers
2021-07-03 10:17:06 +03:00
OromisElf 288867f074 added golem core, summon golem spell and ways to find golem core (#47500)
* added golem core, summon golem spell and ways to find golem core

golemancer can summon a clay golem with a golem core as a focus; golem cores aren't crafteable YET

* linted attunements

forgot to do that >.>

* added a recipe for golem core and a basic golemancy proficiency
2021-07-03 10:17:06 +03:00
Salty Panda c42287de21 [Magiclysm] Add spellcraft skillbook (#47431)
* add spellcraft skillbook

* Spawning too

* Change spawns
2021-07-03 10:17:06 +03:00
Eric 643c4dbae2 Adds effect_on_condition, allowing json scriptable events to happen at any time. (#48042)
Co-authored-by: actual-nh <74678550+actual-nh@users.noreply.github.com>
2021-07-03 10:17:06 +03:00
Saicchi f365a59bac Improve naming of uilist single letter parameters (#47722) 2021-07-03 10:17:06 +03:00
adamkad1 85f6491a5e Deluxe scrambled eggs from human meats (#47866) 2021-07-03 10:17:06 +03:00
chrispikula bc91db244b Moved Scourge and Lobotomizer to weapon category in inventory (#47893) 2021-07-03 10:17:06 +03:00
Matthew S. Klosak c750d29361 Migrate some activities to activity actor system (#47913) 2021-07-03 10:17:06 +03:00
Eric e0551278b5 Get bionic tools to use power as charges (#47694) 2021-07-03 10:17:06 +03:00
Jamuro-g 9d5f3992d2 Added vehicle racking activity (#47557) 2021-07-03 10:17:05 +03:00
Jamuro-g 6164fc1007 Added warning when removing gunmods (#47816) 2021-07-03 10:17:05 +03:00
LordMadness b3442dbfad NPC Interaction Tweak (#47819) 2021-07-03 10:17:05 +03:00
Bella b8f817aa2d Turbine CBM Obsoletion (#47774) 2021-07-03 10:17:05 +03:00
anothersimulacrum c1dc179cf4 Add gun variants, allowing to specify multiple guns with the same stat block (#46814)
* Add gun variant support

This allows genericizing our massive variety of very similar guns into
one statblock, without removing the flavor.
If a gun or magazine is specified to spawn without a variant, it will
pick from the variants available to it, based on their assigned weight.

Gun variants can specify an alternate name, description and ascii art
for a gun, and variants can be toggled through an option.

Add support for migrations to express variants.

Add explicit extraction for magazines to handle variants.

ASCII art for a variant will fall back to that of the base gun
automatically if not specified or invalid.

Maybe the naming could better express these are for both guns and
magazines, but I think it is fine as is.

item::gun_variant makes the assumption you check it has a variant first,
so make sure to do that.

Move the ammo at the end of gun names option to be next to the gun
variant option.

item::is_magazine doesn't tell us if type->magazine is safe to use, so
!!type->magazine must be used instead of that before accessing
type->magazine.

* Add hacks to Archive::io to load/save gun variants

I couldn't figure out how to specify the lambdas correctly, so I give
up, this works.

Problem is as follows:
In item, I have
```
const gun_variant_data *_gun_variant;
...
struct gun_variant_data
{
    std::string id;
    // other info that doesn't matter
}
```
I want to save this as `_gun_variant->id;`, and on load, load the string
that was saved and call `item::set_gun_variant(loaded_string);`.
This, and many variations of it don't work.
```
// In item:: scope
const auto load = [this](const std::string &variant) {
                      set_gun_variant( variant );
                  };
const auto save = [](const gun_variant_data *gv) {
                      return gv->id;
                  };
```

Someone who know what's they're doing here may want to fix my laziness.

* Add spawning support for gun variants

Allow specifying variatns in item groups, mapgen
(Item_group::add_item_entry), and in vehicles.

* Add documentation for gun variants

* Genericize NATO assault rifles

Information lost:
acr - 250ml barrel volume, folding stock
m38dmr - 125 dispersion

Move everything using an old rifle into the new generic rifles.

The m38dmr is debatable, but I figure it's fine to be generic.

Only m4a1s will spawn from unspecified variants at the moment, someone
else can figure out what the proper chances should be.

* Genericize other 5.56 assault rifles

These ones are unique enough to not be simple variants of the NATO
assault rifle, but they also don't need a full enumeration of stats.

Move the brand-specific information to be a variant, genericize name and
descriptions, and make all non-unique stats identical to those of the
NATO assault rifle.

I'm not sure of a good name for the sig generic version, but I want it
to be distinct from the AUTO only or BURST only NATO rifles.

* Genericize .45 ACP firearms

There may be some consideration needed on collapsing the stat blocks for
the pistols/smgs into a single one with copy-from, but this is simply
the highest level genericization changes.
2021-07-03 10:17:05 +03:00
Jamuro-g 546c8c5767 fixed power armor ui (#47475) 2021-07-03 10:17:05 +03:00
Jamuro-g b610f7bab3 fix color coding of container stat summary (#47409) 2021-07-03 10:17:05 +03:00
Xenomorph-III 3d9e5f089d Give the sports drink positive enjoyment value (#47617) 2021-07-03 10:17:05 +03:00
Saicchi b45581f673 Allow filtering debug messages by type (#47619) 2021-07-03 10:17:05 +03:00
Jamuro-g 2f1ca4b61a Fix allows siphon action to transfer tank contents inside same vehicle (#47647) 2021-07-03 10:17:05 +03:00
Jamuro-g b97d3921de cap pain gain from hauling heavy furniture (#47586) 2021-07-03 10:17:05 +03:00
OromisElf bc6079ee99 [Magiclysm] bundles (#48118) 2021-07-03 10:17:05 +03:00
John Candlebury 2cf9275f08 Blacklist/Whitelist monsters by species (#48203)
* Blacklist/Whitelist monsters by species

* Document new blacklist feature
2021-07-03 10:17:04 +03:00
Maleclypse 3ed2ac8338 Valentine Card Spawn (#48210) 2021-07-03 10:17:04 +03:00
Mark Langsdorf 9fc19b5df3 Dark Skies Above: spellcheck the descriptions (#48164)
Run the descriptive JSON through Fedora32's spellcheck and fix
a couple of typoes.
2021-07-03 10:17:04 +03:00
Jamuro-g 10b2bf030c food_containers get colored with their foods colortag (#47426) 2021-07-03 10:17:04 +03:00
Mark Langsdorf 259eb443ef mapgen: allow placing active bomb items for better craters in Dark Skies Above (#48137)
* mapgen: allow activated items to be placed on the map

Add the new item flag "ACTIVATE_ON_PLACE".  Items placed during
mapgen with this flag will be activated immediately after they
are placed on the map.

* Dark Skies Above: use active bombs to create large bomb craters

Use the new ACTIVATE_ON_PLACE flag with active bombs with 1 second
count-downs in a new map special that randomly wrecks buildings
across multiple z-levels.  The bombs have max_noise = 0 and explode
silently to preserve the avatar's hearing.

Co-authored-by: actual-nh <74678550+actual-nh@users.noreply.github.com>
2021-07-03 10:17:04 +03:00
ephemeralstoryteller 2bbd0c32ca [Dark Skies Above] Plague Emissary Fix, Harvest Tweak (#48150) 2021-07-03 10:17:04 +03:00
Kevin Granade 3e4856bac2 Remove recycler and associated infrastructure (#48096) 2021-07-03 10:17:04 +03:00
tsulh 4afca487af fix a typo (#48131) 2021-07-03 10:17:04 +03:00
Maleclypse a7722aa21d Update Aftershock README.md (#48123) 2021-07-03 10:17:04 +03:00
RadHazard 6c862ccb36 Add more nutrition debug (#47716)
* add stomach and gut kCal to the debug menu

* Add detailed stomach and gut data to the needs menu

* add debug command to edit the faction camp larder

* Add debug command to empty a character's stomach & guts

* Add stored & total kCal view to the info box
2021-07-03 10:17:04 +03:00
Venera3 74750ed431 Add a new anger/fear trigger (#47792) 2021-07-03 10:17:04 +03:00
Viss Valdyr 43d12f2586 Tweaks for crowbar and makeshift crowbar (#47827) 2021-07-03 10:17:04 +03:00
Michael Macha b6f55e824e Update 40x46mm.json (#47859) 2021-07-03 10:17:04 +03:00
Xenomorph-III cea2b37819 Add MRE chocolate to the game (#47935) 2021-07-03 10:17:04 +03:00
Saicchi e27e278dc1 Better debug learn spell menu (#47946)
Co-authored-by: Jianxiang Wang (王健翔) <qrox@sina.com>
2021-07-03 10:17:04 +03:00
OromisElf 3c79e52063 updated talk_tags to contain more swears (#47215) 2021-07-03 10:17:04 +03:00
souricelle fd0037fb48 Feral Human Damage/Description Tweak (#48032) 2021-07-03 10:17:04 +03:00
OromisElf c4fa986f0f Electrical train (#48033) 2021-07-03 10:17:04 +03:00
anothersimulacrum 710db23f61 Show in vpart info when a wheel needs other wheels (#48088)
This flag is purely cosmetic, but is required to show this info.
2021-07-03 10:17:04 +03:00
John Candlebury 058e66a546 Unhardcode default Scenario/Profession & Make random starts respect Scenario Blacklists (#47918)
* Unhardcode default profession/scenario

* Random starts respect scenario blacklist
2021-07-03 10:17:04 +03:00
Maleclypse 9b31497637 Zombie Pig upgrades (#47860) 2021-07-03 10:17:04 +03:00
Maleclypse 6d462c394e Ki strike scroll (#47962) 2021-07-03 10:17:04 +03:00
Termineitor244 3d0bdc5b02 [Magiclysm] Less HP consumed at higher levels of Sacrificial Healing (#48097) 2021-07-03 10:17:04 +03:00
Termineitor244 af0e34d821 Increased the probability of condoms in wallets (#48100) 2021-07-03 10:17:03 +03:00
Termineitor244 b20423dc89 A livelier Zoo (#48108) 2021-07-03 10:17:03 +03:00
LaVeyanFiend f84df7a359 Fix MSC Typo (#48115) 2021-07-03 10:17:03 +03:00
Saicchi b8ac774074 Allow filtering by level in the recipe craft menu (#47995) 2021-07-03 10:17:03 +03:00
OromisElf 5cdd3cd6f5 added electric train engine (#48012) 2021-07-03 10:17:03 +03:00
Eric 2bc2ecbc85 Merge most effect flags and character flags (#47633) 2021-07-03 10:17:03 +03:00
Xenomorph-III 3c150f2b92 Add Faction Endings to Hub 01 (#48007) 2021-07-03 10:17:03 +03:00
Maleclypse e76c82c1a1 Flag Fix for Bollards for 0.F Dev (#48052) 2021-07-03 10:17:03 +03:00
Ramza13 19c9a592fd Unhardcode ease of sleep (#48010) 2021-07-03 10:17:03 +03:00
Jeremy Rose f1bf11fdad Note that vat is required for fermentation in vinegar brewing (#47651) 2021-07-03 10:17:03 +03:00
Jamuro-g 4503deb12f prevent bell spam (#47987) 2021-07-03 10:17:03 +03:00
Anton Burmistrov 1436fa7283 Spiral mine jsonify (#48003) 2021-07-03 10:17:03 +03:00
anothersimulacrum ea01f64da3 Allow CBMs to specify mutations that prevent installation. (#47822)
* Move CBM installation checks to Character

Reduce code duplication, encapsulate things better, and make this
available outside of the inventory menus.

* Allow mutations to prevent installing CBMs

Bionics can currently cancel mutations when installed, but can't have
mutations prevent installation.
2021-07-03 10:17:03 +03:00
anothersimulacrum 5a20f41283 Clean up character mutation gain a bit (#47821)
Reduce duplicated code.
I presume there's a reason that set_mutations didn't just call
set_mutation, and the only difference is that it doesn't do the cache
updates till the end, so preserve that behaviour.
2021-07-03 10:17:03 +03:00
anothersimulacrum c9c7f4b8d8 JSONize some trap features, replace trap int_id externs with string_ids (#47933)
* JSONize trap sonar detectibility

Add trap flags - just the same as normal flags, but for traps! Stick
them in their own separate file to avoid confusion.

* JSONize trap memorial messages

light_snare and heavy_snare seem to no longer exist, or I couldn't find
any reference to them but this and tilesets.

Updated dissector trap message, and added a trap message to some traps
(the hallway ones, one or two of the similar-but-not-the-same variants
of existing traps).

* JSONize trap temperature convection

Not quite sure how to describe it, went the lazy route.

* Move traps externs from int to string ids

When loading the game without this content, these will now only give an
error on the use of these, instead of at the end data loading for traps.

Previously there were performance concerns with this, but this should be
fine since #44261 - see #44500.

tr_null must remain an int id, as it used in the string to int id
conversion. This is fine, as it will always be loaded (it's in
data/core).

Move the ledge trap over to data/core as well, because everything will
need the 'open space' trap.
2021-07-03 10:17:03 +03:00
akirashirosawa bbc715b077 add description for Uyen's missions (#48026) 2021-07-03 10:17:03 +03:00
Maleclypse 69101a63b4 Traffic Bollards and an example of deployment (#48017) 2021-07-03 10:17:03 +03:00
OromisElf 31a0bcc5e8 body pillow recipe makes makeshift body pillow now (#47917) 2021-07-03 10:17:03 +03:00
casswedson 0ad73d9129 misc typograpical fixes (#47953) 2021-07-03 10:17:02 +03:00
LyleSY 10a0970da0 [DinoMod] Mushroom Madness (#47907) 2021-07-03 10:17:02 +03:00
Anton Burmistrov 1562560f47 Mine entrance expand (#47928)
* Added mine_materials item group

* Added Trolley vehicle

* Expanded and tweaked above-ground and underground levels of mine entrance
2021-07-03 10:17:02 +03:00
actual-nh 12e0882b81 Alter brown bread recipe to match canned version (#47915)
Fixes #47874.
2021-07-03 10:17:02 +03:00
actual-nh e208564be7 0.F-dev workflows (#47875) 2021-07-03 10:17:02 +03:00
actual-nh a7a22cd209 Add 0.F-dev to matrix.yml (#47875)
(Getting 0.F-dev working with Travis appears to require additional settings by someone with permissions.) This change enables both pushes and pull requests of 0.F-dev to get checked by the General Matrix. As it is, if one bases a PR off of 0.F-dev, it doesn't get checked by Github.
2021-07-03 10:17:02 +03:00
Anton Burmistrov b17c11fc4b Partial mine jsonify; new zombie miner (#47790)
* Moved mine_entrance OMT from the list of hardcoded locations to industial locations

Also removed mine_shaft OMT and replaced it with mine_shaft_middle and mine_shaft_lower OMTs.
Also added mine_entrance_roof OMT.

* Added mine_entrance and mine_shaft to the list of obsoleted terrains

* Added a zombie miner and its death drops

* Created a json-version of mine entrance and its roof

* Created a json-version of mine shaft (middle and lower variants)

* Changed overmap special definition of a mine to include new json chunks

* Applied migration of hardcoded mine_entrance and mine_shaft OMTs to new json variants

* Made hardcoded mine chunks generate to the west of lower section of new mine shaft OMT

Also removed mine_entrance and mine_shaft from the list of hardocoded mapgen.

* Completely removed build_mine_room function as all mine rooms are now defined in json

Also removed hardcoded generation of mine entrance and mine shaft.

* Removed mentions of mine rooms from mapgen.h

* Updated alt_map_key mod

* Updated graphical overmap mod

* Added missing harvest

* Appease clang and constify

* Quickfix

* Appease clang one more time
2021-07-03 10:17:02 +03:00
FuelType-Memes 06af0b5e0c Add book strap carrier (#47665) 2021-07-03 10:17:02 +03:00
LyleSY 89fb130218 fungal evolution (#47247) 2021-07-03 10:17:02 +03:00
Maleclypse 1205582081 Hunting lodge Location (#44378) 2021-07-03 10:17:02 +03:00
Ramza13 9a17cb93be Unhardcode bio_heatsink and bio_climate (#47713) 2021-07-03 10:17:02 +03:00
Curtis Merrill c47901f7d3 [Magiclysm] add lesser banishment spell, buff greater banishment (#47537) 2021-07-03 10:17:02 +03:00
Curtis Merrill 47f995f384 [Magiclysm] add owlbear origin snippet (#47752) 2021-07-03 10:17:02 +03:00
Fris0uman 051eb105cb Remove unused FATIGUE energy source from spells (#47852) 2021-07-03 10:17:02 +03:00
Fris0uman 80ed32aafa [My Sweet Cataclysm] Chocolate Cows don't drop "cow pies" (#47609) 2021-07-03 10:17:02 +03:00
Maleclypse 4b3ba728c3 Homemade toastems, buttercream frosting and recipes (#47696) 2021-07-03 10:17:02 +03:00
Maleclypse 6d1de464b5 Fried eggs deluxe, sandwiches, and condiment list (#47786) 2021-07-03 10:17:02 +03:00
Lamandus 616214d6d8 Tweakes to copper and metal pipes. (#47825) 2021-07-03 10:17:02 +03:00
actual-nh b7c10389c9 Have travis run for 0.F-dev (#47844)
Currently, .travis.yml has a 'development' branch specified as one to run tests for; the current equivalent is the 0.F-dev branch.
2021-07-03 10:17:02 +03:00
Lamandus 3ebaba31ae Tweaks for teas (#47848) 2021-07-03 10:17:02 +03:00
casswedson 22a5f08e8a [Aftershock] misc typograpical fixes (#47783) 2021-07-03 10:17:01 +03:00
Maleclypse d93f64febb Crackers as bread and jam&cheese sandwich (#47649) 2021-07-03 10:17:01 +03:00
OromisElf b2350d3adb makes glass walls and glass doors constructable (#47692) 2021-07-03 10:17:01 +03:00
Mom-Bun b10f676cd1 [AFTERSHOCK] Basic Ballistic Weapons (#47559) 2021-07-03 10:17:01 +03:00
Charlie Gardai fd6f47bde3 Stand up peek (#47257) 2021-07-03 10:17:01 +03:00
Hirmuolio 4d71bd863f Celsius temperature for freezing point (#47028) 2021-07-03 10:17:01 +03:00
Karol1223 c8e60a3e3e Added disassembly recipes for several items (#46316) 2021-07-03 10:17:01 +03:00
NeviNovat 1b269e2748 Make acetylene torch cut metal walls. (#46255) 2021-07-03 10:17:01 +03:00
Curtis Merrill 47b2019f90 Prepare npc, spell, character, and item for new ai (#47207) 2021-07-03 10:17:01 +03:00
Lamandus 436295ef80 Add duct tape blindfold for old reciepe plus tweaks for reciepe (#47527) 2021-07-03 10:17:01 +03:00
Fosheze 7f519fea0e Mealgurb (#47685) 2021-07-03 10:17:01 +03:00
SariusSkelrets 5100475a17 (CrazyCataclysm) Crazy Hallucinations (#47386) 2021-07-03 10:17:01 +03:00
UmbralReaper 63d806cce3 Fix typo in Valentines Card (#47583) 2021-07-03 10:17:01 +03:00
klorpa fa47598b63 Talk Tag Additions (#47010) 2021-07-03 10:17:01 +03:00
Zukulini fcaaa73734 Milleable corn (#46254) 2021-07-03 10:17:01 +03:00
RobertoVGoulart 7ad75dbcd2 Mycus fruit Juice (#44952) 2021-07-03 10:17:01 +03:00
El-Jekozo 31200b58ed New random mission (#44999) 2021-07-03 10:17:01 +03:00
Xaleth 08c4c2dcc8 Content: bread in a can (#45680) 2021-07-03 10:17:00 +03:00
grawprog d99c83ac93 Added Gelatin and Several Gelatin Based Recipes (#47080) 2021-07-03 10:17:00 +03:00
Xenomorph-III fb104e86d7 Tazer drone iii (#47353) 2021-07-03 10:17:00 +03:00
Jamuro-g bd30579206 Arm mounted pouch (#46946) 2021-07-03 10:17:00 +03:00
ToxiClay c3816918a1 Add hallula bread (#46282) 2021-07-03 10:17:00 +03:00
slimeboy460 c7b9d42ea8 Drug Dealer Profession (#47255) 2021-07-03 10:17:00 +03:00
LaVeyanFiend cd798d0ce5 Add a proficiency for handloading, and a new profession (#47244) 2021-07-03 10:17:00 +03:00
Maleclypse 5185ae2c09 Valentine Cards (#47438) 2021-07-03 10:17:00 +03:00
Binrui Dong bc28921102 Import 0.F translations on 3 Jul 2021 (#49536) 2021-07-02 22:00:06 -07:00
Kevin Granade 9aff71d700 Apply new release name throughout project. 2021-07-02 20:46:16 -07:00
Curtis Merrill b4e01258ab fix enchantment saving code (#49528)
Co-authored-by: olanti-p <olanti-p@yandex.ru>

Co-authored-by: olanti-p <olanti-p@yandex.ru>
2021-07-02 20:46:00 -07:00
Kevin Granade 76522d1f1a Trenchcoat thickness consistency to match recent overhaul.
Fixes #49385
2021-07-02 16:56:40 -07:00
Fris0uman 9894f033fc Update Ultica 2021-7-02 (#49521)
* Update Ultica 2021-07-02

* Update Chibi Ultica 2021-07-02
2021-07-02 11:17:26 -07:00
Angela Graves 68b8751a10 Merge pull request #49502 from LilyElisha/master
[BLAZE] Add Electrolysis kit to kitchen and cooking rigs
2021-07-02 00:53:41 -05:00
Kevin Granade 6361d74dab Streamline token handling 2021-07-01 18:46:12 -07:00
Kevin Granade 1686915efb Add a highlights section to changelog. (#49501)
* Add a highlights section to changelog.

* Apply suggestions from code review
Co-authored-by: actual-nh <74678550+actual-nh@users.noreply.github.com>
Co-authored-by: anothersimulacrum <anothersimulacrum@gmail.com>
Co-authored-by: Anton Burmistrov <Night_Pryanik@mail.ru>
2021-07-01 17:39:26 -07:00
anothersimulacrum 525188723a Nerf baselard and bone shiv damage (#49514)
The baselard and bone shiv, when plugged into the effective DPS test,
produced expected values of 22.5 - 3.5 points above any conventional
knife. Drop the damage of the baselard to match other knives, and drop
the damage of bone knive to roughly 75% of that, as per GAME_BALANCE.md
on makeshift weapons. (I overshot a bit, but I think where it is is
fine).

Also, move the combat knife to sort the effective dps test knife section
again.
2021-07-01 17:38:51 -07:00
Zhilkin Serg b584d7d6bb Fix map extras debug menu (#49508) 2021-07-01 17:36:49 -07:00
Kevin Granade a0b7c27cc2 Merge pull request #49519 from KorGgenT/fix-battery-cbms
fix battery cbms
2021-07-01 17:07:44 -07:00
KorGgenT 1fb5fa9d26 fix battery cbms 2021-07-01 14:39:55 -04:00
Xpyder 67bc16a361 balance point cost of mana traits (#49515)
adjust starting availability and point costs of the mana traits

previously the (arguably) strongest trait (flat increase that triples starting mana) was half the point cost of the others, and was available in strongest form at character creation.

Now point costs have parity (flat might still be the strongest for normal int levels but it's at least not also the cheapest) and made greaters always require mutation (i.e. max level not available at creation)
2021-07-01 12:59:42 -04:00
Fris0uman 6da1e0d034 Forgot two files in the last Tileset update (#49516) 2021-07-01 08:51:39 -07:00
Angela Graves 9749161ea4 Merge pull request #49511 from anothersimulacrum/very-confusing
Fix some incorrect weapon recipe categories
2021-07-01 03:42:54 -05:00
anothersimulacrum 60dadb3a1c Fix some incorrect weapon recipe categories 2021-06-30 16:50:11 -07:00
Zhilkin Serg 5861984305 Merge pull request #49503 from Fris0uman/tile
Update tilesets 2021-06-30
2021-06-30 19:05:02 +03:00
Meelock 50a5035738 woops
I don't know how I missed that.
2021-06-30 00:40:45 -07:00
Fris0uman 01c56d8dad Update Ultica 2021-06-30 2021-06-30 08:33:31 +02:00
Fris0uman f6c3722d78 Update ChibiUltica 2021-06-30 2021-06-30 08:32:44 +02:00
Fris0uman e6aa355d49 Update MSX 2021-06-30 2021-06-30 08:31:37 +02:00
Angela Graves e58a9fd9a8 Merge pull request #49496 from ashGlaw/Add-New-Apartment-Tower-to-Large-Building-Start
Adding new apartment tower to large building start
2021-06-30 01:04:15 -05:00
Meelock d45b2622fe Add the electrolysis kit to the break chance list 2021-06-29 23:01:51 -07:00
Meelock 4c65e8846f Add Electrolysis kit to kitchen and cooking rigs
This fixes an exploit.
2021-06-29 22:47:35 -07:00
casswedson e8a47945d4 Increase animated blade's armor (#49481)
It's a steel sword
2021-06-29 23:15:52 -04:00
Kevin Granade ff6be1daf3 Merge pull request #49491 from ZhilkinSerg/windows-direct3d11-default
Use DX3D11 renderer by default if it is available
2021-06-29 19:05:55 -07:00
Kevin Granade a4cf9e7393 Merge pull request #49499 from KorGgenT/fix-blood-powered-cbm
make it possible for cbms to be fueled by non-fuel items
2021-06-29 19:04:22 -07:00
I-am-Erk 8e3a8da410 Fix proficiency fail rates in magiclysm (#49498)
* Update proficiencies.json

* Update blacksmithing.json

* Update magic_tools.json
2021-06-29 20:43:03 -04:00
KorGgenT ef7e4f0dec add human blood as an option to fuel the blood power generator cbm 2021-06-29 20:36:23 -04:00
Fris0uman 84ffd113d7 Migrate tainted_blood to blood_tainted 2021-06-29 20:33:24 -04:00
KorGgenT 6eb026210b make it possible for cbms to be fueled by non-fuel items 2021-06-29 20:22:59 -04:00
Paul Fenwick 9b5b534201 Salt extraction using lye or rocksalt now uses applied science, not cooking (#49497) 2021-06-29 15:58:46 -07:00
ashGlaw 02635a9618 Adding new apartment tower to large building start 2021-06-29 08:59:51 -04:00
Angela Graves ddf05972e6 Merge pull request #49454 from Qrox/pocket-whitelist
Allow removing items in pocket whitelist/blacklist but not nearby
2021-06-29 00:02:44 -05:00
ZhilkinSerg 76b846cffd Use DX3D11 renderer by default if it is available 2021-06-29 02:26:45 +03:00
Paul Fenwick ba7ebad827 Allow NPCs to accept exact trades. (#49470)
This solves issues where an NPC offers to train you for (say) $10, but
actually insists on $10.01 or more in value.
2021-06-28 13:42:29 -07:00
Curtis Merrill 0d9e284594 fix biotek canceling force mage (#49484) 2021-06-28 13:40:25 -07:00
I-am-Erk d93117689c adjust proficiency ratios (#49486)
* adjust proficiency ratios

* Apply suggestions from code review

Left some as they were because I don't want to edit books themselves and because some of the variation from book to book was intentional

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

Co-authored-by: actual-nh <74678550+actual-nh@users.noreply.github.com>
2021-06-28 13:40:12 -07:00
Cyrano7 212b6d872d Change toolbox crafting category (#49489) 2021-06-28 13:39:20 -07:00
Zhilkin Serg 19c4b2fcb7 Change default SDK version for Android builds 2021-06-28 22:12:07 +03:00
Angela Graves 2cc3f48e8b Merge pull request #49467 from casswedson/remove-that-one-wall
Small fix to house mapgen
2021-06-28 04:35:59 -05:00
Zhilkin Serg 48d1c4f5d8 Merge pull request #49476 from anothersimulacrum/fix-glowstick-charges
Don't complain about glowsticks having charges
2021-06-27 23:56:28 +03:00
anothersimulacrum 1161e5f10d Don't complain about glowsticks having charges 2021-06-27 11:52:54 -07:00
Angela Graves a5c3b7fa70 Merge pull request #49465 from pjf/turtleneck_price
Make turtlenecks no longer unreasonably valuable
2021-06-27 04:46:52 -05:00
zngurj ed007eea57 Don't waste XP on known proficiencies (#49466) 2021-06-26 22:42:14 -06:00
casswedson a2268dec34 Small fix to house mapgen 2021-06-26 21:34:53 -05:00
Binrui Dong 5c2e5fb0d9 Import 0.F translations as of 27 Jun 2021 (#49463) 2021-06-26 18:02:46 -07:00
casswedson 7b67f3138c small items category fixes (#49459) 2021-06-26 17:46:27 -07:00
Paul Fenwick 99a8c1adf5 Turtlenecks are no longer unreasonably valuable
Turtlenecks did not previously have a post-apoc price, which made them
extremely valuable.

This change brings them in-line with other stylish-but-not-high-utility
clothing.
2021-06-27 09:47:11 +10:00
Kevin Granade a9b5796f38 Merge pull request #49453 from anothersimulacrum/copyedit
Minor changelog copyediting
2021-06-26 15:54:18 -07:00
Paul Fenwick abff172b11 npctrade: Skip vehicle inventories when trading with an ally (#49452)
Previously, trades with allies would also show nearby vehicle
inventories, which could result in some very long trade lists.

Worse still, these would show up for both the player and the NPC,
resulting in identical items on both sides.

This change restricts trade with allies to only use player and NPC
inventories, not nearby vehicle containers.
2021-06-26 15:11:24 -07:00
venum4k 6458175d7e Update 10mm.json (#49451)
Glock 40 MOS sight dispersion was set the same as its dispersion, resulting in a very inaccurate handgun with the default iron-sights. Set it to 40 so it's more inline with other pistols.
2021-06-26 15:07:12 -07:00
Angela Graves ca5e700356 Merge pull request #49460 from casswedson/long-wand-long
[Magiclysm] give magic wands a longest side
2021-06-26 04:32:11 -05:00
casswedson 44d61923f4 give magic wands a longest side 2021-06-25 23:21:05 -05:00
anothersimulacrum 703246852e Fix tenses for adjusted changelog lines
Co-authored-by: actual-nh <74678550+actual-nh@users.noreply.github.com>
2021-06-25 20:19:36 -07:00
Qrox 1c44ad7dab Allow removing items in pocket whitelist/blacklist but not nearby 2021-06-26 09:42:30 +08:00
anothersimulacrum 4bc32211cd Make some changelog entries more readable
Change the phrasing to state a little better that is being added in this
update.

Also move a line about Magiclysm from features to mods.
2021-06-25 17:51:28 -07:00
anothersimulacrum 9429c5b780 Sort mod changelog entries
Also, expand on the behaviour of the Ki Strike trait in MMA.
2021-06-25 17:35:34 -07:00
anothersimulacrum 833babb2ff Slight changelog copyediting
These reference features not in 0.E, so clean them up to mark them more
as differences against 0.E
2021-06-25 17:35:13 -07:00
Stephane Chauveau a0a4318582 Move the zome_manager reset to the cleanup at end. (#49443)
In the previous implementation for the zones reset, the static
zone_manager object can be created before loagind the global
json file thus causing the list of zone types to be incomplete.
Should fix #49438
2021-06-25 16:21:29 -07:00
Angela Graves 4a3fa7c71b Merge pull request #49441 from Maleclypse/Rural-House-SUS
Bugfixes "Add slightly more stuff to houses that feel empty"
2021-06-25 03:05:44 -05:00
Maleclypse 182f5b2243 linting 2021-06-24 22:42:14 -05:00
Maleclypse f3f8df7c69 typo 2021-06-24 22:26:57 -05:00
Maleclypse 05c71ee40a adding additional house goods 2021-06-24 22:02:30 -05:00
anothersimulacrum f1cf556061 Fix 'unvisited member' in tilesets & mod tilesets (#49436)
porter's note:
Removed some (unecessary) ifdef(TILES) guards, and rearrangement of
various things to do with that to avoid extra churn.

Also removed old code fixing failed-to-vist errors for mod tilesets,
that is now unecessary.

Compiles and runs with both tiles and curses.

Co-authored-by: olanti-p <olanti-p@yandex.ru>
2021-06-24 17:33:57 -07:00
Binrui Dong 2fe73281bb Use Win32 API to retrieve current time (#49407)
* Use Win32 API to retrieve current time

* Fix compile error in get_time() on MinGW cross-compile

* Unsuppress potentially-dangerous-function warning in LGTM check
2021-06-24 23:10:49 +03:00
Stephane Chauveau 134c7d6364 add reset of zone_manager (#49423) 2021-06-24 22:42:59 +03:00
Angela Graves 2401964cf2 Merge pull request #49427 from jumjummju/ghee-fix
Fix ghee triggering lactose intolerant allergies
2021-06-24 01:50:21 -05:00
Fris0uman bc77f0b46c Tileset update 2021-06-24 (#49431)
* Update MSXotto 2021-06-24

* Update Chibi Ultica 2021-06-24
2021-06-23 23:40:45 -07:00
I-am-Erk 64afab68a5 Fix some map extras that didn't spawn. (#49429) 2021-06-23 22:44:27 -07:00
I-am-Erk b2e46e103d Fix gravel construction inconsistencies etc (#49415)
* gravel balance

* lint
2021-06-23 22:25:02 -07:00
I-am-Erk 133230b22d update ultica for stable (#49430) 2021-06-23 22:20:33 -07:00
jumjummju e4fee0ef58 Update dairy.json 2021-06-23 23:22:25 -04:00
jumjummju a3448ff26e Update dairy.json 2021-06-23 22:29:44 -04:00
Kevin Granade 2d8d6e0b5a Changelog 06192021 (#49403)
* Import changelog entries up to 06-19-2021

* Copyedit changelog

* Apply suggestions from code review

Co-authored-by: anothersimulacrum <anothersimulacrum@gmail.com>

* Apply suggestions from code review

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

* remove redundant line

Co-authored-by: anothersimulacrum <anothersimulacrum@gmail.com>
Co-authored-by: actual-nh <74678550+actual-nh@users.noreply.github.com>
Co-authored-by: pehamm <76401419+pehamm@users.noreply.github.com>
Co-authored-by: I-am-Erk <45136638+I-am-Erk@users.noreply.github.com>
2021-06-23 10:05:03 -07:00
Angela Graves 125cd18212 Merge pull request #49409 from Maleclypse/Remove-Fusion-Blaster-Arms
[Aftershock]  Remove bio_blaster cbm spawns
2021-06-23 04:25:49 -05:00
eltank 7826b14abd Disable the refugee center navigation mission (#49410) 2021-06-22 18:56:54 -07:00
eltank 27c15c9d6d Remove inappropriate specials from classic_zombies (#49413) 2021-06-22 18:55:17 -07:00
Maleclypse 3fef5701fa Remove bio_blaster cbm spawns 2021-06-22 14:07:57 -05:00
Angela Graves 84f7d8a22c Merge pull request #49344 from casswedson/spawn-plagues
Make plague cockroaches spawn
2021-06-22 01:05:25 -05:00
Hirmuolio 1990779944 do not set acid temperature (#49399) 2021-06-21 17:11:53 -07:00
Zhilkin Serg 0dfb7548a8 Merge pull request #49364 from AccountAlias/bad-knees
fix bug applying bad knees multiplier when moving diagonally with bad knees
2021-06-22 01:20:22 +03:00
Zhilkin Serg dc1a4dbef6 Merge pull request #49372 from chrispikula/Mexican-Hot-Chocolate
Mexican Hot Chocolate
2021-06-22 01:19:10 +03:00
Zhilkin Serg abe43b3a57 Merge pull request #49400 from Zeropol/halu-npc-will-not-trade
Fix friendly hallu NPC were able to trade
2021-06-22 01:18:08 +03:00
Zhilkin Serg b74938cbd3 Merge pull request #49378 from BrettDong/localtime
Fix thread safety warning on localtime()
2021-06-22 01:17:25 +03:00
zeropol e700cdd463 Fix hallu NPC were able to trade
There was no check that the NPC were not an  hallucination.
2021-06-21 22:37:15 +02:00
Zhilkin Serg 41b5faddfa Remove unused static variables (#49351) 2021-06-21 15:45:39 -04:00
Angela Graves 92e150734c Merge pull request #49386 from eltank/light_industry_z
Add zombies to light industry complex
2021-06-21 00:13:10 -05:00
eltank e5511ea4d2 Add zombies to light industry complex 2021-06-20 16:02:29 -07:00
Binrui Dong 51452d1659 Fix thread safety warning on localtime() 2021-06-20 17:11:05 +08:00
Angela Graves f963525854 Merge pull request #49371 from RenechCDDA/fix_judo_belts
Make judo belts reasonably repairable, about equivalent to a scarf
2021-06-20 01:14:07 -05:00
Kevin Granade 5900e0bca2 reset dodges_left on_dodge test (#49370)
* reset dodges_left on_dodge test

Only broke with LTO?

* bail out of animation function in test mode.
2021-06-19 17:40:52 -07:00
chrispikula 4c47483de6 Update recipe_food.json 2021-06-19 12:40:25 -06:00
RenechCDDA f78d0ef246 Make judo belts reasonably repairable, about equivalent to a scarf 2021-06-19 13:23:31 -04:00
Angela Graves 1d56719c5e Merge pull request #49366 from Maleclypse/neural-io-to-harvests
[Aftershock] Adds neural io drops to harvests
2021-06-19 08:21:05 -05:00
Maleclypse ba301f4588 neural IO to harvests 2021-06-19 00:00:00 -05:00
Kevin Granade 7deffeed87 Reduce feral rock damage slightly to bring it in line with players throwing rocks 2021-06-18 17:17:43 -07:00
casswedson 72094cfede don't add extra damage to feral human throw attack 2021-06-18 17:17:43 -07:00
Kevin Granade c044e5d2f7 Add test characterizing how much damage feral humans deal with their thrown rock attack. 2021-06-18 17:17:43 -07:00
AccountAlias 808e7172a1 fix diagonals on bad knees 2021-06-18 19:34:55 -04:00
John Candlebury 7fa964e28d Cuteclysm: Update (#49355)
* Cuteclysm Update

* Style cuteclysm tile_config file
2021-06-18 09:10:58 -07:00
anothersimulacrum d621b66080 Revert "Add mansion basecamp (#49241)" (#49356)
This reverts commit 989bcb8feb.
2021-06-18 08:17:38 -07:00
krulunio 989bcb8feb Add mansion basecamp (#49241) 2021-06-18 11:09:33 +03:00
Extension-Driver c328ed9072 Add right wing mirror to the Low-End Cube Van (#49335)
* Add right wing mirror to the Low-End Cube Van

* Update vehicle drag tests

The cube_van_cheap additional mirror caused these to fail, so let's
update the test.

Co-authored-by: anothersimulacrum <anothersimulacrum@gmail.com>
2021-06-18 11:02:56 +03:00
Zhilkin Serg a0194ed1fe Merge pull request #48887 from emomicrowave/bugfix/npc_trade_charges
Fix item duplication exploit when trading items with charges with NPCs
2021-06-18 11:02:11 +03:00
Zhilkin Serg a8857c8d86 Merge pull request #49350 from Fris0uman/tilesetUpdate
Tileset update 2021-06-18
2021-06-18 11:01:38 +03:00
Fris0uman 923685663a Update Ultica 2021-06-18 09:44:39 +02:00
Fris0uman a74317e434 Update Chibi Ultica 2021-06-18 09:43:25 +02:00
Fris0uman 6245b21c4a Update MSXotto+ 2021-06-18 09:41:58 +02:00
Zhilkin Serg 1233dae3f1 Merge pull request #49349 from BrettDong/android-i18n
Remove '?' from German Android UI translation
2021-06-18 08:55:09 +03:00
Angela Graves f75db2fb48 Merge pull request #49317 from YoungBlood01/window-curtain-fix
open windows do not close when tearing down curtains
2021-06-18 00:21:39 -05:00
Binrui Dong 0bfd844ab6 Remove '?' from German Android UI translation 2021-06-18 12:59:06 +08:00
Zhilkin Serg 1fdd48b832 Update credits for 0.F (#48119)
Co-authored-by: Kevin Granade <kevin.granade@gmail.com>
2021-06-17 18:36:14 -07:00
Kevin Granade ba1e9ad56f Remove arbitrary doubling of monster melee skill in special attacks 2021-06-17 18:24:08 -07:00
Kevin Granade 502985754f Audit FANCY flag use, remove from questionable articles (#49078)
* Audit FANCY flag use, remove from questionable articles

* Tweak morale test to match adjustments from FANCY audit

* astyle
2021-06-17 18:19:46 -07:00
rohanlean ebf4fa8709 update some freedesktop metadata files and install them when appropriate (#49108) 2021-06-17 18:17:47 -07:00
Lance Finfrock b602d8e715 Fixing muscle engines failing to start randomly (#49166)
* removing muscle engines from failing to start randomly

Signed-off-by: Lance Finfrock <lancewf@gmail.com>

* Fixing vehicle_split_test tests

Signed-off-by: Lance Finfrock <lancewf@gmail.com>
2021-06-17 18:12:06 -07:00
pehamm 917a4a9a48 Ensure atomic coffee is brewed hot (#49061)
* Added atomic coffee to hot_result

* Update should_heat

Co-authored-by: pehamm <peter.hamm@m-chair.de>
2021-06-17 16:33:28 -07:00
I-am-Erk 81ea503124 brettdong workaround (#49339) 2021-06-17 16:29:03 -07:00
Kevin Granade ffbd76c51c Enforce dodges_left tracking (#49330)
* Enforce dodges_left tracking

* Removed obsolete dodge test

* update comments

Co-authored-by: I-am-Erk <45136638+I-am-Erk@users.noreply.github.com>
2021-06-17 16:27:41 -07:00
Ilya Agafonov 11a8ab42ac removed medical gloves from combat medic items (#49174) 2021-06-17 16:20:05 -07:00
natsirt721 a9699963c6 Rearrange brewing and distillation recipies across books (#49220) 2021-06-17 16:18:01 -07:00
Binrui Dong 48158971d8 Updated Android UI translations (#49342) 2021-06-17 16:15:29 -07:00
casswedson 0704bcd15b Make plague roaches spawn 2021-06-17 16:12:48 -05:00
Delta af4b28f409 prevent_climbling_mesh_screens (#49325) 2021-06-17 13:21:08 -07:00
David Backeus 50b234567f Remove Welding proficiency requirement for Makeshift Arc Welder (#49311)
* Remove welding proficiency requirements for makeshift arc welder

Avoids catch 22 for getting into welding since it’s practically impossible to craft a makeshift welder without having the proficiencies, which you can’t get without a welder.

* Restore “Principles of Welding” proficiency req for Makeshift Arc Welder

Based on feedback in Pull Request making the point that, since the Makeshift Arc Welder is learnt automatically, it might make sense to increase the probability of successful assembly based on proficiency with welding fundamentals.

* Update data/json/recipes/tools/tools_electronic.json

Co-authored-by: I-am-Erk <45136638+I-am-Erk@users.noreply.github.com>

* Update data/json/recipes/tools/tools_electronic.json

Lint fix

Co-authored-by: pehamm <76401419+pehamm@users.noreply.github.com>

Co-authored-by: I-am-Erk <45136638+I-am-Erk@users.noreply.github.com>
Co-authored-by: pehamm <76401419+pehamm@users.noreply.github.com>
2021-06-17 13:16:52 -07:00
Binrui Dong d7fc0b50e6 Import 0.F translations as of 18 Jun 2021 (#49341) 2021-06-17 13:05:27 -07:00
Angela Graves 2c1eab23f7 Merge pull request #49328 from Tairesh/fix_window_bars_deconstruct
Deconstruction of windows in gun store removed
2021-06-17 00:59:55 -05:00
Ilya Agafonov b9653add78 deconstrution of windows with metal bars removed 2021-06-16 21:37:58 +05:00
Zhilkin Serg 47a2b01aa1 Rollback to USER_TOKEN 2021-06-16 11:30:34 +03:00
Kevin Granade 59e76c2643 Switch to manual build for C++ (#49319)
* Switch to manual build for C++

Autobuild was picking up tests, but ended up running out of disk space, maybe it will have enough space if we just build the exe

Actually refrain from building tests.

Co-authored-by: anothersimulacrum <anothersimulacrum@gmail.com>
2021-06-16 10:31:23 +03:00
Zhilkin Serg 0ee2bd7e70 Try a different secret 2021-06-16 10:28:24 +03:00
Angela Graves 08e0b64437 Merge pull request #49305 from CleverRaven/fix-missing-bp-for-random-char
Set body for random character earlier
2021-06-16 02:28:06 -05:00
YoungBlood af560fced2 fixedWindowClosing 2021-06-16 05:14:09 +08:00
Kevin Granade 8a22b9d8bd Fine, we don't want Java checks anyway 2021-06-15 13:16:24 -07:00
Kevin Granade fe6189b9c0 Enable auto-generated CodeQL workflow 2021-06-15 09:42:25 -07:00
Angela Graves 9a81a10903 Merge pull request #49306 from casswedson/restore-food
Restore corn dogs and hot dogs in food vendor carts
2021-06-15 00:54:24 -05:00
casswedson 88869fc140 restore hotdogs and corndogs in food vendor cart 2021-06-14 17:08:12 -05:00
Zhilkin Serg 8f2971fb27 Set body for random character earlier 2021-06-14 22:41:30 +03:00
Zhilkin Serg be78312a94 Add github api v3 header 2021-06-14 20:17:42 +03:00
Zhilkin Serg cf8099c579 Fix package name 2021-06-14 18:04:35 +03:00
Zhilkin Serg fd83277f2f Merge pull request #49300 from ZhilkinSerg/msvc-object-creator-vcpkg-qt5-fix
Update object creator for latest qt5 vcpkg changes
2021-06-14 18:00:34 +03:00
Zhilkin Serg 7c63cb2c5c Update object creator for latest qt5 vcpkg changes 2021-06-14 17:59:08 +03:00
eltank e2ef8b8737 Fix the hidden lab basement mapgen (#49230) 2021-06-14 17:27:49 +03:00
SenpaiSlime 7d5f6ba8f9 Replace ATTACKMON in all monster entries (#48942) 2021-06-14 17:25:10 +03:00
Zhilkin Serg 251ebda3d0 Merge pull request #49268 from Tairesh/fix_medevac_wrecks
Fixed tanks in Medevac wrecks
2021-06-14 17:22:28 +03:00
Zhilkin Serg 078df5dbb6 Merge pull request #49283 from CleverRaven/kevingranade-rebuild-releases-page
add a stage to trigger a Jekyll rebuild on release
2021-06-14 17:22:14 +03:00
Zhilkin Serg 167528898b Merge pull request #49286 from connorpmartin/armored_car_fix
removed spiked plating from pre-cataclysm vehicles
2021-06-14 17:22:01 +03:00
Zhilkin Serg ba07ba2d50 Merge pull request #49288 from casswedson/clean-dirt
Small fix to church mapgen
2021-06-14 17:21:24 +03:00
Zhilkin Serg 38e4f95587 Merge pull request #49293 from anothersimulacrum/handle_liquid_ub
Prevent UB in handle_liquid.cpp
2021-06-14 17:21:12 +03:00
Zhilkin Serg 817307edec Merge pull request #49298 from linonetwo/patch-3
Provide USE_HOME_DIR=1 in MacOS build
2021-06-14 17:19:57 +03:00
lin onetwo e5bf5648dc Provide USE_HOME_DIR=1 in MacOS build
fixes #49297
2021-06-14 21:33:47 +08:00
Angela Graves ca3589f2d2 Merge pull request #49290 from Maleclypse/Look-at-Dirt-Roads-in-farms-and-cabins
Remove Shrubs from Dirt roads
2021-06-14 00:42:33 -05:00
anothersimulacrum 6fc4978329 Prevent UB in handle_liquid.cpp
Perhaps we could use a helper to return a null range in this sort of
case, but it's a bit overkill for a single case.
2021-06-13 21:47:04 -07:00
Maleclypse 7ac913c883 remove shrubs 2021-06-13 14:02:06 -05:00
casswedson d6a3a0884c small fix to church mapgen 2021-06-13 11:49:45 -05:00
Connor Martin 255b71e527 removed spiked plating from pre-cataclysm vehicles 2021-06-13 11:33:10 -04:00
Kevin Granade 6f4bb5c8c6 add a stage to trigger a Jekyll rebuild on release 2021-06-12 22:52:14 -07:00
Angela Graves 033a568472 Merge pull request #49277 from connorpmartin/science_ID_card_fix
Add science ID card to portal lab finale
2021-06-13 00:22:36 -05:00
AccountAlias 4637dd8284 factor unarmed in blocks (#49258) 2021-06-12 20:24:21 -07:00
Ilya Agafonov 0e318aae58 Fix building ramps and stairs (#49251)
* ramps checks fixed

* add new checks to JSON_INFO.md

* use flag NO_FLOOR instead of hardcoded t_open_air

* fix spelling

* fixed wood stairs exploit
2021-06-12 17:55:38 -07:00
Fris0uman 484fb6942f Add overlay_ordering entry for black dragon mutations (#49256)
* Add overlay_ordering entry for black dragon mutations

* tweak order
2021-06-12 17:51:11 -07:00
connorpmartin 58dcfbd4b3 Update data/json/mapgen/lab/lab_floorplans_finale1level.json
Co-authored-by: pehamm <76401419+pehamm@users.noreply.github.com>
2021-06-12 19:52:57 -04:00
Connor Martin 7a40d067a6 added science id card 2021-06-12 18:19:32 -04:00
Ilya Agafonov f636c6f4b8 fix_medevac_wrecks 2021-06-12 15:33:31 +05:00
anothersimulacrum a76f7e8ef8 Remove vitamin deficiency effects on load (#49265)
After #49083, effects will no longer be applied for most vitamin
deficiencies... or lost when no longer valid. Since they don't do
anything, let's remove them on load and not leave saves with an effect
that does nothing sticking around.
2021-06-11 23:22:11 -07:00
Angela Graves 0593801155 Merge pull request #49264 from natsirt721/fix-double-knitting
Remove duplicate knitting tool requirements from recipes
2021-06-12 00:40:23 -05:00
TheFurTrapper 89b881d712 Remove duplicate knitting tool requirements from recipes 2021-06-11 22:29:49 -04:00
Ilya Agafonov 7beb868f9d Build linux releases on ubuntu-18.04 (#49261) 2021-06-11 18:53:56 -07:00
eso 280c9fd44a partial vehicle damage reduction hotfix (#49080)
* partial vehicle damage reduction hotfix

trying to make vehicles less immortal. also removed ridiculous recipe for "hard plating"

* rescale rams to 1.25* durability/dr of their respective plates

* add a small amount of dr to some otherwise fragile components

* linting

* fix explosion damage test to look at total vehicle hp

also added additional test cases

* car stereos shouldn't do the star trek console explosion thing either
2021-06-11 10:19:19 -07:00
Angela Graves b030323b35 Merge pull request #49228 from Tairesh/build_roofs_simple_fix
Fix building roofs
2021-06-11 00:43:34 -05:00
Angela Graves 25abf78a60 Merge pull request #48972 from Hirmuolio/blood
set extracted blood temp
2021-06-10 01:15:04 -05:00
Angela Graves c821798a50 Merge pull request #49231 from SenpaiSlime/Fixing-Kel-Tec-2000-bug
Fixing the Kel Tec 2000
2021-06-09 00:27:52 -05:00
SenpaiSlime b3b68be3ee Gave the needed stock attachment slot
Gun now has the slot it needs to use its innate folding stock
2021-06-08 15:28:00 -07:00
Ilya Agafonov ec7e1d63f4 check if we need roof after construction 2021-06-08 16:53:57 +05:00
Angela Graves 876e779cbd Merge pull request #49187 from Tairesh/nerf_isherwoods_spawn
Isherwoods spawn nerfed to 35%
2021-06-08 04:28:23 -05:00
actual-nh 226bebc04f Fix float-keying activity level problem (#49179)
* Activity diary test now detects float-keying problem

avatar::log_activity_level is now getting fed (floating-point) numbers
that don't match the exact activity levels, due to #45316 making the
activity level per-turn then averaging activity over each 5-minute
period. The activity diary test (in tests/char_biometrics_test.cpp)
was not spotting this since it was still using times in multiples
of 5 minutes. This commit moves around 1 minute of NO_EXERCISE,
keeping the same total number of minutes of each activity level.
Currently, this results in a test failure in which 1 5-minute interval
is missing from each of the activity levels in the diary, since those
5-minute intervals were at intermediate (averaged) levels of activity.

* Process intermediate activity levels for debug output

This "buckets" activity levels that aren't exactly the predefined
set of levels (due to averaging over 5 minutes) into the closest
predefined level in avatar::total_daily_calories_string. Note that
saving of levels will not be bucketed. This, while useful for close
inspection of intermediate levels via looking at the save file, will
make the file slightly larger, slower to input/output, and (even)
harder to read manually. However, this has been true since #45316 was
merged and nobody seems to have noticed it.

* Correct logic error in attempted fix.

I forgot to add the number of 5-minute intervals and was instead adding
just one. It still doesn't quite work right (and I'll need to adjust
the expected gained/spent/total caloric values), but it's a lot closer.

* Adjust expected numbers for mixed intervals

The new results in terms of minutes are actually now correct; the
difference is because the last 5 minutes are 4 minutes of
EXTRA_EXERCISE and 1 minute of NO_EXERCISE, which averages out to
ACTIVE_EXERCISE (410 + 11 = 41; /5 = 8.2, and ACTIVE_EXERCISE = 8.0).
The rest is likely roundoff error, although it still bothers me a bit.

Co-authored-by: actual-nh <actual-nh@users.noreply.github.com>
2021-06-08 09:55:04 +03:00
Inglonias 88b16d4526 School is an option for "Large Building" start (#49207) 2021-06-08 09:53:33 +03:00
Zhilkin Serg 94c85e4a6e Merge pull request #49219 from Fris0uman/7-6-21
Tileset Update 2021-06-07
2021-06-08 09:53:16 +03:00
Fris0uman 689f32cce9 Update ChibiUltica 2021-06-07 2021-06-07 23:22:49 +02:00
Fris0uman 0102598f7d Update MshockXotto+ 2021-06-07 2021-06-07 23:22:18 +02:00
Fris0uman 790891287a Update UltimateCataclysm 2021-06-07 2021-06-07 23:21:30 +02:00
Angela Graves 31837e968d Merge pull request #49208 from SenpaiSlime/Fix-SWAT-CQC-Start-bug
Fix CQC SWAT start having two magazine attachments
2021-06-07 00:08:04 -05:00
SenpaiSlime 6f7bc37db2 Linting the file
i am an actual lintlet
2021-06-06 17:41:55 -07:00
SenpaiSlime 87f2f51052 Removed the redundant attachment
fixes a few problems, and the attachment is innate to the gun already
2021-06-06 17:26:52 -07:00
Stadler76 40fa40d012 Allow size flags for custom size changing mutations (#48850) 2021-06-07 01:11:51 +03:00
Zhilkin Serg 9535c99a63 Merge pull request #49144 from Delta5861/fix_turbine_weights
Reduce weight of the medium and large turbine engines.
2021-06-07 01:10:10 +03:00
Zhilkin Serg e968ca646a Merge pull request #49180 from RenechCDDA/Camp_Charcoal_Fix
Re-add byproducts to faction camp charcoal recipe
2021-06-07 01:09:33 +03:00
Zhilkin Serg 568832dcc4 Merge pull request #49193 from CalKerethi/vpart_flag_check
Check flags on vehicle parts during loading
2021-06-07 01:07:51 +03:00
Zhilkin Serg d57faed930 Merge pull request #49175 from Tairesh/add_medicine_to_combat_medic
Added aspirin, antibiotics, disinfectant, pepto to Combat Medic items
2021-06-07 01:05:46 +03:00
Ilya Agafonov 4b40b34725 Fixed eating containers with items inside (#49200)
* added check for containers to character::can_eat

* food.split_contents() when food is eaten, check in can_eat() removed
2021-06-07 01:05:25 +03:00
Ilya Agafonov 56e93a957c Melatonin tablet added to various itemgroups for spawn (#49202) 2021-06-07 01:04:47 +03:00
Zhilkin Serg 732df8a645 Merge pull request #49203 from Tairesh/fix_overfilled_kegs
Fixed overfilled kegs
2021-06-07 01:04:22 +03:00
Zhilkin Serg edd1d917f5 Merge pull request #49204 from casswedson/placeholder-prices
[Magiclysm] Add placeholder prices to spellbooks
2021-06-07 01:04:08 +03:00
Zhilkin Serg ce7ddb8cea Merge pull request #49201 from Fris0uman/like
Make all variant of memory cards look like a memory card
2021-06-07 01:03:53 +03:00
casswedson 8ed5cd3885 add placeholder prices to spellbooks 2021-06-06 10:45:30 -05:00
Ilya Agafonov 858f51bb58 fixed all overfilled kegs 2021-06-06 15:41:52 +05:00
Ilya Agafonov cefd754452 isherwoods occurencies changed to 35% 2021-06-06 14:53:05 +05:00
Fris0uman 6231b7580b Make all variant of memory cards look like a memory card 2021-06-06 11:28:53 +02:00
Angela Graves 6b9918a874 Merge pull request #49190 from Tairesh/fixed_altmapkey_isherwoods
[Alternative Map Key] Overrided special forest tile to make it same as regular forest
2021-06-06 00:26:10 -05:00
John Candlebury b03c725dcb Update Cuteclysm tileset (#49195)
* Update Cuteclysm

* Properly format cuteclysm's tile_config file
2021-06-05 18:38:08 -07:00
xerenogan 17b03b8dc3 Fixes slime duplication by adding "slime" material. (#49192)
Fixes #49186

Co-authored-by: Xerenogan <xerenogan@gmail.com>
2021-06-05 16:01:38 -07:00
CalKerethi 6b5a999477 Check flags on vehicle parts during loading 2021-06-05 18:07:12 -04:00
Ilya Agafonov 9cbea1d413 overrided special forest tile to make it same as regular forest 2021-06-05 23:10:30 +05:00
Ilya Agafonov b89007d79a isherwoods spawn nerfed to [ 10, 100 ] 2021-06-05 20:49:40 +05:00
CalKerethi d3b1ed2cb6 Define all flags used by vehicle parts (#49168) 2021-06-05 11:05:35 +03:00
Zhilkin Serg 6d94b0a996 Merge pull request #49182 from Maleclypse/Rope-recipe-fix
Removes String component from Making Long Rope from Short Rope recipe
2021-06-05 11:04:28 +03:00
Ilya Agafonov 818360174c Plastic canteen with clean water added to military (#49142) 2021-06-05 11:03:31 +03:00
RenechCDDA d13a1d7f49 Make faction camp recipes generate byproducts (#49143) 2021-06-05 11:03:17 +03:00
Zhilkin Serg 8a5a78eac6 Demon forges fix to be reloadable in forge of wonder (#48908) 2021-06-05 11:03:04 +03:00
Zhilkin Serg 5a651faaa1 Merge pull request #49158 from GoLoT/available_components_first
Show available materials/tools/requirements first
2021-06-05 11:02:19 +03:00
OldFriendEr 16a190407e Div by zero crash when drinking last charge of liquid fertilizer (#49163) 2021-06-05 11:02:04 +03:00
Zhilkin Serg 71356b5bf4 Merge pull request #49167 from Inglonias/biomonitor_fix
Radiation biomonitors take ultralight disposable batteries
2021-06-05 11:01:09 +03:00
Zhilkin Serg 0b65939307 Merge pull request #49173 from Tairesh/fix_splitrail_fencegate
Fix open wooden split rail gate
2021-06-05 10:59:19 +03:00
Angela Graves 32d77e649c Merge pull request #49177 from Tairesh/disallow_place_ladder_on_vehicle_tiles
Disallow placing stepladder if a vehicle in tile
2021-06-05 00:34:05 -05:00
Maleclypse 65d31be62e Move Dairy Farm Cube Van 1 tile away from house (#49153) 2021-06-04 17:30:51 -07:00
gisaku33 4f7f433885 Make cocaine topical cream a liquid (#49147) 2021-06-04 17:30:15 -07:00
Maleclypse 77953fc6e4 Update cords_and_ropes.json 2021-06-04 16:24:38 -05:00
RenechCDDA 7413397078 Re-add byproducts to charcoal recipe
The 'byproducts' were accidentally removed when most of the faction camp recipes were rebased onto normal player recipes. Since charcoal is special, it still gets its own little recipe. Only now it makes the amount it was always intended to make.
2021-06-04 13:14:46 -04:00
Ilya Agafonov 3249eb723c disallow placing stepladder when vehicle in tile
fixes #45784
2021-06-04 21:18:14 +05:00
Ilya Agafonov 61cbded3aa added aspirin, antibiotics, disinfectant, pepto to Combat Medic items 2021-06-04 17:47:27 +05:00
Ilya Agafonov b3bff62afe added transparent flag to open wooden split rail gate and maked it
destroyable
2021-06-04 16:50:51 +05:00
Angela Graves aa9ed437b6 Merge pull request #49159 from LyleSY/patch-14
kevlar armor horse recipe bugfix
2021-06-04 00:25:53 -05:00
LyleSY 1f12e6e947 kevlar armor horse recipe bugfix 2021-06-04 13:15:30 +08:00
Álvaro Muñoz 161042ddc6 Show available materials/tools/requirements first 2021-06-04 12:50:06 +08:00
eltank 6ddf008739 Fix proficiency books' effect on crafting (#48650)
* Fix proficiency books' effect on crafting

* Cache recipe batch time in craft_activity_actor::do_turn()

* Make crafting time functions const and/or operate on const Character.

Also makes Character::crafting_inventory() const.

* add a unit test

* also check that proficiency mitigation is not as good as having prof

* use a struct to encapsulate the crafting inventory cache

* clean up one hack

* Add TODO for getting rid of const_cast
2021-06-03 18:41:30 -07:00
Inglonias 43b8773992 Radiation biomonitors take ultralight disposable batteries 2021-06-03 21:06:02 -04:00
Angela Graves fc3689cd6b Merge pull request #49091 from natsirt721/remove-musclepower-fatigue
Fix muscle-powered vehicles causing fatigue and thirst
2021-06-02 13:29:05 -05:00
Delta 7adcded6d2 Reduce weight of the medium and large turbine engines.
#### Summary
Bugfixes "Fixes incorrect weights of medium/large turbine engines"

Description:
The medium turbine engine (aka the T700/CT7 turboshaft/gas turbine engine) weighs around 200kg realistically. The weight is bumped up to 400kg to account for parts not accounted for in real life, such as transmission, cooling, et cetera. The large turbine engine (aka the Rolls-Royce T406) weighs around 450kg in real life, which has been doubled in-game for the same reasons as above.
2021-06-02 23:27:32 +10:00
faefux cb88af73d7 Added buckles to belts. Changed recipies to include buckle. (#48946) 2021-06-02 12:05:35 +03:00
Zhilkin Serg 29edc95ee6 Merge pull request #48987 from Tairesh/add_allows_remote_use_flag_to_pot_makeshift
added flag ALLOW_REMOTE_USE to makeshift pot and makeshift copper pot
2021-06-02 12:04:56 +03:00
Zhilkin Serg e17c9b7844 Merge pull request #49137 from CleverRaven/kevingranade-blackops-fix
Add NIGHT_INVISIBILITY to black-ops zombie
2021-06-02 11:56:33 +03:00
Kevin Granade 7209828c37 Add NIGHT_INVISIBILITY to black-ops zombie
Seems to have been overlooked when it was first added.
2021-06-01 13:49:50 -07:00
LaVeyanFiend bd4c4195be Nerf the turtlecheese (#49135) 2021-06-01 12:54:43 -07:00
connorpmartin 0f965c0184 expanded sheet options for tourniquet / makeshift sling (#49084) 2021-06-01 21:00:10 +03:00
Waylon Cude 2ddfe08bef Fix segfault when starting fire and losing item (#49112)
* Fix segfault when starting fire and losing item

Sometimes, when losing your firestarter while starting a fire, the game
will segfault. This appears to be caused by the item* in the item_location
for the firestarter getting set to null.

This patch adds a check to see if the pointer is null before using it,
and cancels the firestarting process if it is null.

Fixes #49100

* Update src/activity_handlers.cpp

Co-authored-by: Binrui Dong <brett.browning.dong@gmail.com>
2021-06-01 20:59:39 +03:00
Zhilkin Serg 2d6b981c6d Merge pull request #49124 from Saicchi/quickspeeddesc
Speed description when looking over monster
2021-06-01 20:58:47 +03:00
Zhilkin Serg 5cc32e9e07 Merge pull request #49134 from Maleclypse/Demihuman-harvests-in-vanilla
Add demihuman harvest where applicable
2021-06-01 20:58:30 +03:00
Álvaro f056fef00a Fix NPC antiseptic application (#49129) 2021-06-01 20:57:24 +03:00
Mom-Bun 424efcc6bf [AFTERSHOCK] Fix Infinite Ammo (#49133) 2021-06-01 20:56:44 +03:00
Zhilkin Serg ef519ef94d Merge pull request #49123 from BrettDong/flamethrower
Fix crash with cigarettes nearby and flamethrower equipped
2021-06-01 20:56:11 +03:00
Zhilkin Serg 98270cee27 Merge pull request #49122 from BrettDong/npcmove
Avoid illegal memory access in game::overmap_npc_move()
2021-06-01 20:55:48 +03:00
Zhilkin Serg b1439c2424 Merge pull request #49125 from BrettDong/corpse
Fix crash when killing monsters without "material"
2021-06-01 20:55:30 +03:00
Zhilkin Serg 597492c05e Merge pull request #49116 from BrettDong/osx-release
Install dmgbuild 1.4.2 in OSX release GHA workflow
2021-06-01 20:55:18 +03:00
Maleclypse fba2b5f8d0 Add demihuman harvest where applicable 2021-06-01 12:18:09 -05:00
Binrui Dong 53de093077 Let monsters have a default "flesh" material if they don't have one 2021-06-01 14:28:34 +08:00
Saicchi 04759e8b96 speed description in look over monster 2021-06-01 03:18:55 -03:00
Angela Graves fe42098287 Merge pull request #48816 from kevingranade/fix-monster-over-reach
Fix monster over reach
2021-06-01 00:49:38 -05:00
Binrui Dong 57af449bf6 Fix crash with cigarettes nearby and flamethrower equipped 2021-06-01 13:42:46 +08:00
Binrui Dong a83aa30113 Avoid illegal memory access in game::overmap_npc_move() 2021-06-01 13:08:04 +08:00
Binrui Dong 825155cfbb Install dmgbuild 1.4.2 in OSX release GHA workflow 2021-06-01 08:14:31 +08:00
I-am-Erk bdc9d52822 Adjust failure multipliers in proficiencies (#49046)
* Update chemistry.json

* Update electronics.json

* Update gunsmithing.json

* Update metalwork.json

* Update misc.json

note - adjusted fletching to match other second-tier proficiencies

* Update tailoring.json

* Update wilderness.json

* Update woodworking.json

* Update traps.json

* fix fail mults in recipes
2021-05-31 16:20:36 -07:00
Kevin Granade e433ebe74d Apply suggestions from code review
Co-authored-by: Binrui Dong <brett.browning.dong@gmail.com>
2021-05-31 13:12:57 -07:00
Zhilkin Serg 73ec74f208 Merge pull request #49103 from Fris0uman/msxfillers
Add fillers from Ultica for missing monsters to MSXotto+
2021-05-31 21:11:36 +03:00
Zhilkin Serg 582e03b5ed Merge pull request #49107 from BrettDong/i18n
Routine i18n updates on 31 May 2021
2021-05-31 21:11:23 +03:00
Venera3 69fef90d3f Remove deficiencies (#49083) 2021-05-31 10:00:40 -07:00
Binrui Dong 360f55d56f Routine i18n updates on 31 May 2021 2021-05-31 19:48:15 +08:00
Fris0uman e4461af63b Add fillers from Ultica for missing monsters 2021-05-31 09:58:38 +02:00
Ilya Agafonov 221b79312b Camera can take a photo of NPC (#49067) 2021-05-31 10:35:49 +03:00
Anton Burmistrov fa74ec77da Fix for placement of consoles in 'Retrieve Software' quest (#49065)
* Added f_console to the list of furniture types in mapdata

* Replaced spawning of obsolete t_console with f_console

Also added s_pharm_1 to the list of possible locations for doctor's quest. Also cleared all items on the location of f_console.
2021-05-31 10:20:29 +03:00
Ali-Anomma 7ffb0dc8e0 replace dentisy with intensity (#49054) 2021-05-31 10:14:43 +03:00
Zhilkin Serg 3df7cb0f72 Merge pull request #49052 from shacknetisp/spawn-vehicle-tracking
Correctly update the player's spawn vehicle overmap tracking.
2021-05-31 10:12:31 +03:00
Zhilkin Serg 14d3a9e8bd Merge pull request #49098 from Mom-Bun/schwarz
[AFTERSHOCK] Fix Schwarz Walders inability to fire
2021-05-31 10:08:38 +03:00
Angela Graves af8d197541 Merge pull request #49086 from Inglonias/park-monsters
Cut the number of monsters spawning in parks in half
2021-05-31 00:48:09 -05:00
U-LAPTOP-BJ9IBM1T\Surre f4ab0b355a make the bear gun go pewpew 2021-05-30 20:27:57 -05:00
TheFurTrapper 848aa80aae Remove fatigue and thirst penalties from muscle-powered vehicles 2021-05-30 15:31:24 -04:00
Inglonias 754c3cb285 Reduced child pack size for GROUP_PARK_PLAYGROUND 2021-05-30 14:21:52 -04:00
Inglonias adfe07bd83 Fixed where I quartered spawns instead of halving 2021-05-30 14:04:14 -04:00
Inglonias 65bdd212c3 No, really - cut the number of spawns in half. 2021-05-30 13:09:37 -04:00
Inglonias 275f9a3aa5 Cut number of monsters spawning in parks in half 2021-05-30 12:54:47 -04:00
Angela Graves 7bd98499ab Merge pull request #49072 from Mom-Bun/ruins
[AFTERSHOCK] Cut formless ruins spawn rate in half
2021-05-30 00:15:46 -05:00
eltank 9c0588012b Fix book proficiency mitigation formulas. (#48658)
* Fix book proficiency mitigation formulas.

* Re-add sum-of-squares diminishing returns for book prof mitigation

* Implement sum-of-squared-logs algorithm for combining prof mitigations

Co-authored-by: John Bytheway <jbytheway@gmail.com>

* Add checks for out-of-bounds mitigation factors in the json

* use throw_error in json validation

* astyle

Co-authored-by: John Bytheway <jbytheway@gmail.com>
2021-05-29 21:33:03 -07:00
Lance Finfrock ce412c88da Fixing error thrown when unloading gun when there is no inventory available (#48999)
* Adding unloaded gun to avoid
* Added unit test
* Unload partial ammo of wielded item without duplication

Signed-off-by: Lance Finfrock <lancewf@gmail.com>
Co-authored-by: actual-nh <74678550+actual-nh@users.noreply.github.com>
Co-authored-by: RoyBerube <royberube1965@gmail.com>
2021-05-29 15:07:42 -07:00
U-LAPTOP-BJ9IBM1T\Surre 868933d918 cut both in half 2021-05-29 12:40:07 -05:00
Angela Graves 9e12cf51f4 Merge pull request #49005 from Night-Pryanik/dont-reveal-invisible-grabbing-monster
Show message about grab only if player sees the grab
2021-05-29 02:33:11 -05:00
Zhilkin Serg deb761881f Fix crash when dropping items (#49055) 2021-05-28 16:48:53 -07:00
Beha 73542a2e2d Let the player's spawn vehicle know it is being tracked.
This allows correctly updating the tracked position and later toggling tracking.
2021-05-28 14:18:37 -04:00
Zhilkin Serg 099e4a5368 Merge pull request #49053 from CleverRaven/revert-46734-paid
Revert "Add iexamine actors, move iexamine::cardreader to actor"
2021-05-28 21:07:21 +03:00
Zhilkin Serg d4d21b00cc Revert "Add iexamine actors, move iexamine::cardreader to actor (#46734)"
This reverts commit 3ab0505339.
2021-05-28 21:05:06 +03:00
anothersimulacrum 3ab0505339 Add iexamine actors, move iexamine::cardreader to actor (#46734) 2021-05-28 13:50:17 +03:00
Zhilkin Serg 1fa4518558 Merge pull request #48983 from BrettDong/check-printf
Improve printf format checking script
2021-05-28 13:43:36 +03:00
Zhilkin Serg aee7c2eed1 Merge pull request #48984 from BrettDong/printf
Avoid mix use of positional and non-positional printf format arguments
2021-05-28 13:43:12 +03:00
Maleclypse 3dc01bab04 Fixing Felt Recipe (#48982) 2021-05-28 13:34:57 +03:00
Zhilkin Serg 454652eafb Merge pull request #48484 from stubkan/stubkan-master-crane-suspending-butchering
Features - Gave cranes suspending ability for butchering
2021-05-28 13:32:48 +03:00
Zhilkin Serg 20a7f63457 Merge pull request #48954 from LaVeyanFiend/BackHolsterLength
Increase back holster length to match rifle cases
2021-05-28 13:22:46 +03:00
Zhilkin Serg 4c821c9456 Merge pull request #48943 from John-Candlebury/afs-ups-unload
Aftershock: Forbid manual unloading of UPS and tweak recipe to imply an integral power storage system.
2021-05-28 13:16:52 +03:00
RenechCDDA 023dbe43da Fix duping of shotgun hull for scrap loaded shot (#48991) 2021-05-28 13:16:04 +03:00
Brett 607e07b542 Adds Android Build to release workflow & fail-fast: false (#48809) 2021-05-28 13:14:14 +03:00
Zhilkin Serg bac47488d4 Merge pull request #48976 from BrettDong/cmake
[Ready] Improve CMake build script for macOS
2021-05-28 13:13:41 +03:00
Zhilkin Serg d1797d93bb Merge pull request #48990 from Fris0uman/sweetheal
[MSC] Caramel ointment instant heal up to 5 hit point
2021-05-28 12:51:47 +03:00
Zhilkin Serg a2756e1ca7 Merge pull request #48895 from RoyBerube/magazine-unload-duplication
Unload partial ammo of wielded item without duplication
2021-05-28 12:51:12 +03:00
Zhilkin Serg e8a6f56df0 Merge pull request #48904 from RoyBerube/cbm-sterilize-exploit
Prevent adding or removing from activated cleaning machines
2021-05-28 12:50:44 +03:00
Zhilkin Serg 7abe941214 Merge pull request #48996 from RoyBerube/bridge-view
Add z level when setting map cache dirty flags while in a vehicle
2021-05-28 12:49:49 +03:00
Loregret 85a7e559f6 Removed BLIND flag from welding mask (#48992) 2021-05-28 12:49:20 +03:00
Zeropol ba96c3020f Make thrown glass items drop glass shards when shattered (#48727)
* Make thrown glass items drop glass shard when thrown

Because some of the shards should be usable.

The item has to weight at least 2 times a glass shard.
There is some randomness involved.

Does NOT affect smashed items.

* Comment not-that-useful msg_debug

It is a shamy attempt to avoid string freeze.
2021-05-28 12:48:36 +03:00
Zhilkin Serg 26410ad4b1 Merge pull request #48998 from NorseFTX/saltwater-recipe-chemistry
Primary skill for Salt Water recipe -> Applied Science
2021-05-28 12:45:57 +03:00
Zhilkin Serg 72ffb5b2be Merge pull request #49014 from Zeropol/fix-blind-throw-while-going-upstairs-or-down
Fix blind throw while peeking up/downstairs
2021-05-28 12:44:46 +03:00
Zhilkin Serg edef7768ed Merge pull request #49040 from AdamChirnside/pillowfix
Changed pillowcase checking function to re-enable them to work as sleep aid
2021-05-28 12:43:52 +03:00
Zhilkin Serg 97ee88497a Merge pull request #49045 from Salty-Panda/fix_titanium_bat
[AFS] Add length and postapo price to titanium bat
2021-05-28 12:43:30 +03:00
Angela Graves a40d493ca7 Merge pull request #49024 from Salty-Panda/fix_cooking_flags
Fix bug with crafted food always being hot
2021-05-28 00:41:17 -05:00
pehamm b17a24ae6e Adjust scaling of failure points (#48924)
Co-authored-by: Peter Hamm <peter.hamm@m-chair.de>
2021-05-27 21:44:20 -07:00
Salty Panda e81c44ef47 Add length and postapo price to titanium bat 2021-05-27 20:19:51 +02:00
Angela Graves 901e4d47c1 Merge pull request #49023 from connorpmartin/integrated_toolset_wheel_fastening
add wheel fastening to integrated toolset
2021-05-27 00:12:20 -05:00
Kevin Granade ba504651dd Freenode is dead, long live libera. (#49041)
* Update README.md
* Update en.motd
* Update zh_CN.motd
* Update ru.motd
* Update de.motd
2021-05-26 12:17:18 -07:00
LaVeyanFiend e9b1185723 Increase back holster length to match rifle cases 2021-05-26 14:36:48 -04:00
Adam Chirnside a1f0ee949b Update character.cpp
Changed pillowcase checking function to re-enable them to work as sleep aid
2021-05-26 12:48:04 -04:00
Angela Graves a83d0fdbb2 Merge pull request #49027 from Xerxius/master
gave foam rubber bat 1 bashing
2021-05-26 01:06:46 -05:00
Angela Graves 39074bae5c Merge pull request #49025 from ZhilkinSerg/fix-wind
Fix wind update
2021-05-25 10:59:24 -05:00
Xerxius 58e2b52905 gave foam rubber bat 1 bashing 2021-05-25 15:25:25 +02:00
ZhilkinSerg 0a130e4393 Fix wind update 2021-05-25 11:12:07 +03:00
Salty Panda af81c9eec8 Fix bug with crafted food always being hot 2021-05-25 09:47:59 +02:00
connorpmartin 3e90d07531 add wheel fastening to integrated toolset 2021-05-24 18:08:55 -04:00
zeropol 37dd0f7668 Fix ability to blind throw while peeking up/downstairs
We were only able to look around when peeking upstairs or downstairs because peek() did not called peek(tripoint) when a z lvl move was detected.
2021-05-24 14:24:11 +02:00
Angela Graves b6c4ce535e Merge pull request #49007 from MarlossCDDA/marloss/fix-rot-spawn-chance
[bugfix] Respect rot_spawn_chance so unfertilized eggs don't hatch
2021-05-24 01:02:47 -05:00
MarlossCDDA b3bf231e07 [bugfix] Respect rot_spawn_chance
I broke it in https://github.com/CleverRaven/Cataclysm-DDA/pull/48116,
made it treat everything as if it had rot_spawn_chance = 100. Was most
noticable for unfertilized eggs, which really shouldn't hatch.
2021-05-23 13:55:30 -04:00
Anton Burmistrov 0a990a63d2 Changed message type to info 2021-05-23 20:51:29 +04:00
Anton Burmistrov b9056064fc Show message about grab only if player sees the grab 2021-05-23 20:46:15 +04:00
Hirmuolio 0dd07a25ff negative default
default should never get through. In case it gets through it ends up being invalid.
2021-05-23 16:40:41 +03:00
Hirmuolio 7d2e03f27f default value to supress warning
Co-authored-by: Binrui Dong <brett.browning.dong@gmail.com>
2021-05-23 16:32:07 +03:00
Hirmuolio aed107abd1 f
Co-authored-by: Binrui Dong <brett.browning.dong@gmail.com>
2021-05-23 16:31:50 +03:00
Hirmuolio 3bcdf4626d float instead of int 2021-05-23 14:28:22 +03:00
pehamm b533bda05d Do not announce crafting progress loss when none happened (#48985) 2021-05-23 10:33:33 +03:00
Zhilkin Serg 3446d6cf8a Merge pull request #49000 from BrettDong/clang-tidy-fix
Fix recent clang-tidy check launch failure
2021-05-23 10:32:50 +03:00
Zhilkin Serg 32f7fafc5f Merge pull request #48997 from BrettDong/osx-build
Fix compile error on macOS with l10n disabled
2021-05-23 10:32:37 +03:00
Angela Graves 47b0658754 Merge pull request #48958 from eltank/no_leatherworking
Remove leatherworking proficiency from recipes that shouldn't need it
2021-05-23 00:27:17 -05:00
eltank 1e7a8060a9 update unit test for crafting helmet_scavenger 2021-05-22 16:08:45 -07:00
Binrui Dong 15b5149a51 Install click 7.1.2 in clang-tidy check 2021-05-22 18:55:24 -04:00
Binrui Dong 84165ee535 Improve CMake build script for macOS 2021-05-22 18:37:55 -04:00
NorseFTX 21ebdf9e8d Primary skill for Salt Water recipe -> "chemistry" instead of "food handling" 2021-05-22 13:13:42 -07:00
Binrui Dong dedfbe980c Fix compile error on macOS with l10n disabled 2021-05-22 15:59:46 -04:00
RoyBerube 5185c86789 Add z level to map caching when in a vehicle 2021-05-22 11:11:48 -06:00
Fris0uman 38e0cd0616 [MSC] Caramel ointment instant heal up to 5 hit point 2021-05-22 11:11:59 +02:00
Ilya Agafonov 3174b555b0 added flag ALLOW_REMOTE_USE to makeshift pot and makeshift copper pot
makeshift pots will stop jumping into my backpack
2021-05-22 12:26:51 +05:00
Fris0uman b05c219c70 Change symbols of variants vehicle parts to increase ascii readability (#48896) 2021-05-22 10:12:05 +03:00
Zhilkin Serg 687b686289 Merge pull request #48944 from John-Candlebury/ags-harvest-list-bloodfix
Aftershock: Add blood to harvest lists
2021-05-22 10:10:27 +03:00
Zhilkin Serg 820adadc48 Merge pull request #48966 from Fris0uman/msc_craft
Fix impossibility to resume craft in MSC
2021-05-22 10:09:51 +03:00
Binrui Dong 9f4f731435 Bump clang version to 12 in GHA build matrix (#48977)
* Bump clang version to 12 in GHA build matrix

* Bump clang version to 10 in ClangBuildAnalyzer check

I am not sure if ClangBuildAnalyzer will function properly and
accurately with Clang 10 and above, because I see the following issue:

https://github.com/aras-p/ClangBuildAnalyzer/issues/56

* Trigger ClangBuildAnalyzer on changes in CBA.yml itself
2021-05-22 10:08:23 +03:00
Angela Graves 99cd2bc8bb Merge pull request #48973 from Fris0uman/CMES
Remove looks_like from the Mech guns
2021-05-22 00:46:24 -05:00
Binrui Dong 861a516773 Avoid mix use of positional and non-positional printf format arguments 2021-05-21 19:37:44 -04:00
Binrui Dong e660885efe Improve printf format checking script 2021-05-21 19:18:59 -04:00
Fris0uman f17aeaa441 Remove looks_like from the Mech guns 2021-05-21 19:30:42 +02:00
Hirmuolio b3386b531b remove debug print 2021-05-21 18:44:18 +03:00
Hirmuolio 499738118a set blood temp 2021-05-21 18:42:13 +03:00
Angela Graves 3c13759cc4 Merge pull request #48968 from Fris0uman/tilesets
Update Tilesets 2021-05-21
2021-05-21 10:08:33 -05:00
Fris0uman fb2635ab53 fix RD json 2021-05-21 13:59:56 +02:00
Fris0uman 759cbb6cb9 Update RetroDays 2021-05-21 13:35:24 +02:00
Fris0uman 44ee55d6c5 Update NeoDays 2021-05-21 13:33:14 +02:00
Fris0uman 76e5ad5250 Update MSXotto+ 2021-05-21 13:31:08 +02:00
Fris0uman 5af75bd133 Update Chibi_Ultica 2021-05-21 13:30:28 +02:00
Fris0uman 99115da9d7 Update BrownLikeBears 2021-05-21 13:29:27 +02:00
Fris0uman 31a9e961c4 Fix impossibility to resume craft in MSC 2021-05-21 12:05:16 +02:00
eltank f2f07b93e6 Remove leatherworking proficiency from recipes that shouldn't need it 2021-05-20 22:20:12 -07:00
eso 2da75692de remove watertight flag from body bags (#48947) 2021-05-20 20:02:26 -07:00
Jamuro-g 418b45d41d Fix removed depressant&stim cap (#47831)
* removed depressant&stim cap
2021-05-20 13:04:44 -07:00
Roy Berube a58f2b6c31 wash multiselect - fix unselect (#48863) 2021-05-20 12:14:10 -07:00
eltank 3560737d78 Fix remote activation for radio-controlled items (#48801)
* Fix remote activation for radio-controlled items
* Don't display detonation message for things that aren't bombs
2021-05-20 12:01:43 -07:00
leemuar 23dd2c45e2 Fixes #48686 (#48778)
Filling container does not change amount of materials required for modification any more

Co-authored-by: Тимур Кашафутдинов <leemuar@yandex-team.ru>
2021-05-20 12:00:22 -07:00
Eric 5c8034ee57 Fix auto drinking unclean water (#48738)
Co-authored-by: actual-nh <74678550+actual-nh@users.noreply.github.com>
2021-05-20 11:34:49 -07:00
mqrause 4d990fd8ed don't ask for shape selection when there's only one shape (#48734)
Co-authored-by: mqrause <martin@qrause.de>
2021-05-20 11:32:04 -07:00
actual-nh d103a0c7a3 [READY] Adjust problematic monster faction relationships (possible attack without counterattack) (#48077)
* 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.

* Eliminate monster faction contradictions

Fixes #48071.

* Make fish and most others neutral vs each other

This removes land-based animals from being potential attackers of fish,
and vice-versa, avoiding possible problems due to their visibility as
pointed out by Venera3.

* Fix more fish faction relationships.

Limit non-neutral by/vs fish further to prevent either too much fish
death or fish attacking without retaliation.

* Adjust small_animal<->animal

Should default to neutral, as per the test.

* Take care of otter, razorclaw, exodii

Otters (and all other factions in obsolete.json) still show up on the
listing (can an "obsolete" flag or something be checked for?); removed
by_mood for them vs fish. Razorclaws are now neutral toward fish (and
vice-versa). Exodi are now by_mood vs (other) humans (and vice-versa).

* Fix test; bear/big_cat to by_mood vs fish

Swapped out dog for bear in monfactions_attitude test - has the same
pattern. I also changed bear and big_cat to by_mood vs fish.

* Fix infighting by human snails, amigara horrors

Amigara horrors and human snails were down as of the "mutant" faction,
which has by_mood toward itself, resulting in fighting within the
spawned groups. Changed amigara horror to mutant-derived faction
"amigara"; since human snails spawn with vortices and twisted bodies,
changed human snails and twisted bodies to "vortex". As a precaution,
also put shadows (including mon_darkman) and breathers (both) into
their own (nether-derived) factions.

* Remove unneeded breather and shadow factions.

I got mixed up; not needed, just "nether" does fine.

* Move slime back to neutral vs nether; cleanup

* Make mi-go/slime/nether NEUTRAL vs each other

Because they all spawn in the same groups (monstergroups/nether.json);
previously, they were NEUTRAL one-way and BY_MOOD the other in some
pairings, and I had put them as BY_MOOD both ways.

* Put human snail, twisted body in own faction

This prevents infighting between them when they appear together
(spiral) and they are made NEUTRAL to vortex and vice-versa.

* Fix Aftershock monster factions

Some Aftershock monster factions had BY_MOOD|HATE versus other factions
that had NEUTRAL/FRIENDLY toward them. This, upon an encounter, would
result in the first potentially (or definitely) attacking the latter,
while the latter would not retaliate. See #48077 for further
information.

* Hevel as herbivore, venandi as wolf

Also changes hevel, herbivore so NEUTRAL instead of friendly to other
one.

* Aftershock cryo adjustments; bloated corvid fix

* As per @Maleclypse, BY_MOOD changes for cryo

Changed cryo to BY_MOOD for herbivore/carnivore (which essentially
means just having "animal" in "by_mood"). Currently, insects are still
in HATE; I don't know if this is preferable or not.

* Change beavers from small_animal to herbivore.

One distinction between small_animal and larger is that the former are
not of interest to zombies, because they can't zombify. Beavers can,
and at ~20 kg are above the weight of the largest creature that can't
zombify (chonker cats).

* Start on fixing DinoMod factions

This has some example age-divided factions, various sizes of
predator, and no potential attacks without counterattack.

* Added monfactions.txt to .gitignore

Avoid accidental upload of a test-result file.

* Split up mosasaurus by ages

This splits up mosasaurus into mosasaurus and mosasaurus_young. THe
latter has both hatchlings and juveniles. (One problem I noticed with
the hatchlings - they have fins, and are AQUATIC... but are said to
be indistinguishable from others. That will need to be fixed in
0.F-dev (the description would need translating).

* Use copy-from for modifying base monster factions

From testing, it is possible for two mods that are both changing
the same base/vanilla monster factions to both work, provided both are
using copy-from. Change Aftershock to do so.

* Use copy-from in DinoMod vanilla faction changes

Mods that need to make changes in the same vanilla factions, generally
due to base_faction's copying of the base faction's attitude toward
itself, need to use "copy-from" in order not to conflict.

* Behavioral adjustments to dinosaurs.

Remove ATTACKMON - should not be needed with fixes to factions. Have
added PUSH_MON to some (the ones of very large size and/or DESTROYS),
to represent that they may push other monsters aside. I have also
removed STALK from the anger triggers for those not expected to be
berserk; this is partially to compensate for the MEAT pacification
trigger no longer being functional.

* Remove WARM from hatchling/juvenile mosasaurus.

They aren't large enough to have significant warmth retained without
specific mechanisms promoting this, and that would not be advantageous
in swimming - see <https://scholar.google.com/scholar_lookup?journal=Nature+Ecology+&+Evolution&title=A+general+scaling+law+reveals+why+the+largest+animals+are+not+the+fastest&author=MR+Hirt&author=W+Jetz&author=BC+Rall&author=U+Brose&volume=1&publication_year=2017&pages=1116-22&pmid=29046579&>.

* Adjust abilities of some tyranids + deinonychus

Adjusted abilities of tyrannids to take into account faster turning
speed. Also gave deinonychus max_dist for pathing of 10 (may need to
be higher), to allow for more intelligent routing.

* Adjust hadrosaurs, juvenile tyrannids, sauropods

Juvenile tyrannids: Dodge increased to reflect greater agility; still
not as high as adult (need to check on why "STUMBLES" is there).
Juvenile sauropods: Massive ones should not be quite as nervous as
other juveniles, particularly in a group (all appear in monstergroups
with a pack_size); gave GROUP_MORALE.
Hadrosaurs: Decreased agility -> decreased melee skill (dodge already
zero); see <https://www.ncbi.nlm.nih.gov/pmc/articles/PMC6387760/>.

* DOGFOOD vs CATFOOD

Co-authored-by: LyleSY <lyle.sollayates@Gmail.com>

* Remove "STUMBLES"

Co-authored-by: LyleSY <lyle.sollayates@Gmail.com>

* Remove remainder of STUMBLES from juveniles

* Remove plpaceholder monsters for obsolete factions

* Make Moxies concentrate on humans, etc if they're around.

* Implement fix from #48588 for Deinonychus

I had added PATH_AVOID_DANGER_2 to Deinonychus, to be more appropriate
to their capabilities; there turns out to be a bug in it - this is
a fix (although it can be improved once there's something for avoiding
obvious fields).

Co-authored-by: actual-nh <actual-nh@users.noreply.github.com>
Co-authored-by: LyleSY <lyle.sollayates@Gmail.com>
2021-05-20 10:58:59 -07:00
Kevin Granade 9c72d88ae8 Dismantle unused legacy migration feature. (#48871) 2021-05-20 10:53:46 -07:00
Angela Graves 2024939bc5 Merge pull request #48941 from casswedson/prison-fix
small fix to prison mapgen
2021-05-20 01:09:21 -05:00
John Candlebury 91c0efef22 Add blood to AFS harvest lists 2021-05-19 20:54:02 -06:00
John Candlebury 13b928da74 Forbid manual unloading of AFS UPS and tweak recipe 2021-05-19 20:37:16 -06:00
casswedson 0e4451f86a small fix to prison mapgen 2021-05-19 17:06:57 -05:00
Zhilkin Serg d750b25b37 Merge pull request #48901 from casswedson/thickness-fix
Fix thermal electric suit thickness
2021-05-19 23:15:31 +03:00
Maleclypse 338ff1d07a [Aftershock] Small fixes (#48931) 2021-05-19 23:14:45 +03:00
Zhilkin Serg e8e768b8bd Merge pull request #48934 from BrettDong/lang
Remove data/legacy from lang/extract_json_strings.py
2021-05-19 23:14:28 +03:00
Angela Graves cae2be18c4 Merge pull request #48914 from linonetwo/patch-2
Update textbook_biodiesel to teach chemistry
2021-05-19 01:30:00 -05:00
Binrui Dong d68c966cff Remove data/legacy from lang/extract_json_strings.py 2021-05-18 23:33:52 -04:00
mGuv 0c961b66cf Remove Fletching from Crude Wooden Arrows and Crude Wooden Bolts as they do not have Fletchings (#48910) 2021-05-18 12:27:39 -07:00
Angela Graves ad632eb560 Merge pull request #48920 from casswedson/nerf-manhack
Reduce manhack melee skill
2021-05-18 09:54:41 -05:00
eso 56c78d6bdb Revert "Removes PROTRUSION flag, so rams can ram more things" (#48913) 2021-05-17 22:55:31 -07:00
casswedson 9428db957e reduce manhack melee skill 2021-05-17 18:43:59 -05:00
lin onetwo cc53934e59 refactor: move chemistry version of textbook_biodiesel to chemistry.json 2021-05-17 21:45:55 +08:00
lin onetwo 29774b76be refactor: remove chem fuel from mechanics.json 2021-05-17 21:42:46 +08:00
Angela Graves 0ced41fd6b Merge pull request #48900 from casswedson/fix-meth-duplication
Prevent meth duplication
2021-05-17 02:54:39 -05:00
RoyBerube 086f5dfb7f Prevent adding or removing from activated cleaning machines 2021-05-16 20:28:40 -06:00
casswedson 96247d6303 fix thermal electric suit thickness
same as the thermal electric outfit
2021-05-16 15:46:34 -05:00
casswedson a94dbdfc12 prevent meth duplication 2021-05-16 13:56:06 -05:00
Angela Graves 12fcd38fd3 Merge pull request #48893 from Maleclypse/Buses-can't-leave-bus-stations
Make Bus Stations driveable
2021-05-16 00:14:41 -05:00
Angela Graves d613cd230d Merge pull request #48888 from OldFriendEr/bug_deaf_scream_daze
Bugfix: Deaf mutation protect from getting dazed by the screams
2021-05-16 00:10:02 -05:00
Maleclypse 6951749f52 Update bus_station.json 2021-05-15 21:58:36 -05:00
RoyBerube b7a1541ea4 Unload partial ammo of wielded item without duplication 2021-05-15 20:21:32 -06:00
Maleclypse d089d1d3cf Update bus_station.json 2021-05-15 16:15:21 -05:00
Angela Graves 227b45b9e3 Merge pull request #48877 from LaVeyanFiend/TantoMaga
Add non-magic tanto to Krav Maga
2021-05-15 10:06:37 -05:00
OldFriendEr 06b2b359d2 Deaf mutation will protect from scream daze
There was a mistake in the is_immune_effect function, json_flag_DEAF was
skipped

fixes #48835
2021-05-15 16:49:57 +03:00
Emil Milanov e54376be9b Correctly calculate charges when trading with NPCs 2021-05-15 15:14:43 +02:00
John Bytheway b4db09430a Check for NPC dialogue leading directly to TALK_MISSION_OFFER (#48813)
* Check for dialogues leading to TALK_MISSION_OFFER

Inspired by Cataclysm-BN#494, this checks for dialogues that lead
directly to TALK_MISSION_OFFER when they should instead go via
TALK_MISSION_LIST.

* Fix NPCs with respond direct to TALK_MISSION_OFFER

The just-added check found these three examples of NPCs whose initial
dialogue option has an unconditional response leading to
TALK_MISSION_OFFER.  This can cause problems once the mission is
complete.  Fix the three.
2021-05-14 21:41:49 +03:00
Zhilkin Serg 925954ec05 Merge pull request #48808 from Fris0uman/magicQuest
Pick Magiclysm NPC mission dialogue fix from BN
2021-05-14 21:40:16 +03:00
Zhilkin Serg 96dd14b32d Merge pull request #48852 from Fris0uman/bionic_spells
Spell cost is displayed in kJ when it uses bionic power
2021-05-14 21:40:02 +03:00
Zhilkin Serg ef302427c8 Merge pull request #48853 from Fris0uman/save_the_milk
Add missing "spoil_multiplier": 0.5 to sealed milk carton
2021-05-14 21:39:34 +03:00
Zhilkin Serg e62d21dd5f Merge pull request #48868 from RoyBerube/privacy-fence
Privacy fence deconstruct - item balance
2021-05-14 21:38:55 +03:00
Roy Berube 6e372eea2b Bionic enhanced hearing takes effect only when activated (#48870) 2021-05-14 21:38:02 +03:00
LaVeyanFiend 58bc14a77f Add non-magic tanto to Krav Maga 2021-05-14 14:27:42 -04:00
Zhilkin Serg 4c24098082 Use YYYY-MM-DD-HHmm for build number; do not start matrix if tag exists (#48849) 2021-05-14 09:41:24 -07:00
Angela Graves 9488256452 Merge pull request #48867 from RoyBerube/raw-jerky
Remove raw flag from jerky
2021-05-14 08:23:15 -05:00
Fris0uman 8fe1fb755f Remove the legacy folder for good since it's useless (#48857) 2021-05-13 22:27:13 -07:00
RoyBerube bfabe56ad9 privacy fence deconstruct - item balance 2021-05-13 19:53:54 -06:00
RoyBerube c90368385c Remove raw flag from jerky 2021-05-13 19:25:51 -06:00
Fris0uman 062a554194 Add missing "spoil_multiplier": 0.5 to sealed milk carton 2021-05-13 18:04:11 +02:00
Fris0uman 2191cd8c38 Spell cost is displayed in kJ when it uses bionic power 2021-05-13 17:52:46 +02:00
Angela Graves 3d0463f8bd Merge pull request #48815 from lancewf/40761/disassembling_one_explosive_arrow
Allows crafting one explosive arrows fixes disassemling one arrow
2021-05-13 05:30:20 -05:00
Venera3 3cd92bed7f Update mongroup documentation, fix vanilla groups' start/end times and overloaded groups (#48737) 2021-05-13 01:05:10 +03:00
Zhilkin Serg 45083a95a8 Merge pull request #48793 from Saicchi/bandageblindfold
Blindfold from makeshift bandages
2021-05-13 01:01:44 +03:00
Kevin Granade 6cc4110115 Work around failing android SDK installation (#48840) 2021-05-13 01:01:03 +03:00
RelMayers 9786c3c9f7 Adding combat skill tag to dodging (#48847)
dodging in my opinon should be combat skill
2021-05-12 14:09:47 -07:00
Kelenius 0b16e18a1e Allowed reading maps underground (#48845) 2021-05-12 14:08:11 -07:00
connorpmartin 11d9d92b53 Give military helipads jp8 pumps (#48814)
* made military helipad pumps jp8 pumps
2021-05-12 14:07:19 -07:00
Zhilkin Serg 4d2adf0794 Enable concurrency for release workflow (#48848) 2021-05-12 14:04:15 -07:00
Angela Graves 4b3bc5eea3 Merge pull request #48844 from gisaku33/master
Adjust minimum volume for the Survivor Harness
2021-05-12 00:15:30 -05:00
gisaku33 e795654bc6 Adjust minimum length for the Survivor Harness
Currently, the 1887 bootleg shotgun can't fit into any holsters or the survivor harness due to having a 27in. length and a 1.13L volume, this change reduces the minimum volume required for something to fit in the sling of a Survivor Harness from 1.25L to 1L to allow it to fit.
2021-05-11 22:43:10 -04:00
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
Kevin Granade 5af23b6a40 Only allow monster reach attacks across z-levels if the target is adjacent. 2021-05-10 00:53:38 -07:00
Kevin Granade 421cefdea5 Add test for monster reach attacks 2021-05-10 00:53:38 -07:00
Kevin Granade 658212aa29 DRY up the vision reset code 2021-05-10 00:53:37 -07:00
Lance Finfrock 8ac871c038 Allows crafting one explosive arrows fixes disassemling one arrow
This fixes the problem when disassembling one explosive arrow yields
components for five arrows. The solution was to update the crafting
recipe to allow building one arrow appose to 5. The volume and prices
were decreased by 5 times.

closes #40761
2021-05-09 19:54:04 -07: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
CV514 c54a89a88c Magiclysm NPC mission dialogue fix
NPC were assigned TALK_MISSION_OFFER instead of TALK_MISSION_LIST, and while it works for accepting their jobs, it doesn't provide necessary function for them to say that they don't have any more jobs for the player, resulting in `assign_mission: mission_selected == nullptr`

Except for old magus, who has necessary checks, but I've changed them too in case of future updates with more quests added.
2021-05-09 09:48:14 +02: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
Saicchi c7f4fe16ef blindfold from makeshift bandages 2021-05-08 11:54:58 -03: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
stubkan 9b9668388c Gave cranes suspending ability for butchering
Added crane butcher_rack pseudo item to Large to Small crane types and Forklift Forks, so they can be used to suspend creatures that require suspending for butchering.
2021-04-11 21:16:13 +01: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
Lamandus db6fecffbb max_item_lengh changes to (survivor) tool belt 2021-02-19 12:03:06 +01:00
Qrox b61e19f46b Use item locations instead of item pointers in AIM 2021-02-16 21:46:16 +08:00
1480 changed files with 477735 additions and 224689 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
+53 -16
View File
@@ -4,6 +4,30 @@
# this codebase and we do not intend to fix. The disabled checks appearing
# thereafter in a separate alphabetical list have yet to be triaged. We may
# fix their errors or recategorise them as checks we don't care about.
#
# Comments on the checks we have decided are not worthwhile:
#
# * cert-dcl21-cpp (postfix operator++ and operator-- should return const objects)
# This is an unconventional code style, and conflicts with
# readability-const-return-type.
#
# * cert-env33-c (calls to system, popen)
# Unlikely to catch bugs, and using system is convenient for portability.
#
# * cert-err58-cpp (exceptions from static variable declarations)
# We have lots of memory allocations in static variable declarations, and
# that's fine.
#
# * modernize-use-auto
# We prefer an almost-always-avoid-auto style.
#
# * modernize-use-trailing-return-type
# An arbitrary style convention we haven't adopted.
#
# * readability-braces-around-statements
# Covered by astyle and buggy in clang-tidy 8. Can enable once we have a newer
# clang-tidy.
Checks: "\
bugprone-*,\
cata-*,\
@@ -21,34 +45,47 @@ modernize-*,\
-modernize-use-trailing-return-type,\
performance-*,\
readability-*,\
-readability-braces-around-statements,\
-bugprone-branch-clone,\
-bugprone-infinite-loop,\
-bugprone-misplaced-widening-cast,\
-bugprone-narrowing-conversions,\
-bugprone-unused-return-value,\
-cert-err34-c,\
-cert-flp30-c,\
-cert-msc30-c,\
-cert-msc32-c,\
-cert-msc50-cpp,\
-cert-msc51-cpp,\
-bugprone-redundant-branch-condition,\
-bugprone-reserved-identifier,\
-bugprone-signed-char-misuse,\
-bugprone-sizeof-expression,\
-bugprone-unhandled-self-assignment,\
-cert-dcl37-c,\
-cert-dcl51-cpp,\
-cert-oop54-cpp,\
-cert-str34-c,\
-clang-analyzer-core.CallAndMessage,\
-clang-analyzer-deadcode.DeadStores,\
-misc-misplaced-const,\
-misc-no-recursion,\
-misc-non-private-member-variables-in-classes,\
-misc-redundant-expression,\
-modernize-avoid-bind,\
-modernize-avoid-c-arrays,\
-modernize-loop-convert,\
-modernize-pass-by-value,\
-modernize-return-braced-init-list,\
-modernize-use-default-member-init,\
-modernize-use-emplace,\
-performance-inefficient-vector-operation,\
-performance-noexcept-move-constructor,\
-performance-implicit-conversion-in-loop,\
-performance-inefficient-string-concatenation,\
-performance-type-promotion-in-math-fn,\
-modernize-use-override,\
-performance-no-automatic-move,\
-performance-trivially-destructible,\
-performance-unnecessary-value-param,\
-readability-braces-around-statements,\
-readability-avoid-const-params-in-decls,\
-readability-convert-member-functions-to-static,\
-readability-else-after-return,\
-readability-function-size,\
-readability-function-cognitive-complexity,\
-readability-implicit-bool-conversion,\
-readability-isolate-declaration,\
-readability-magic-numbers,\
-readability-make-member-function-const,\
-readability-named-parameter,\
-readability-qualified-auto,\
-readability-redundant-access-specifiers,\
-readability-use-anyofallof,\
"
WarningsAsErrors: '*'
HeaderFilterRegex: '(src|test|tools).*'
+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
+18 -2
View File
@@ -2,12 +2,28 @@
**Opening a new issue?** Please read [ISSUES.md](../ISSUES.md) first.
Contributing to Cataclysm: Dark Days Ahead is easy — simply fork the repository here on GitHub, make your changes, and then send us a pull request.
**Want an introductory guide for creating game content?** You might want to
read the [Guide to adding new content to CDDA for first time
contributors](https://github.com/CleverRaven/Cataclysm-DDA/wiki/Guide-to-adding-new-content-to-CDDA-for-first-time-contributors)
on the CDDA wiki.
Cataclysm:Dark Days Ahead is released under the Creative Commons Attribution ShareAlike 3.0 license. The code and content of the game is free to use, modify, and redistribute for any purpose whatsoever. See http://creativecommons.org/licenses/by-sa/3.0/ for details.
This means any contribution you make to the project will also be covered by the same license, and this license is irrevocable.
## Guidelines
## Using a good text editor
Most of the Cataclysm: Dark Days Ahead game data is defined in JSON files.
These files are intended to be easy for you to edit, but there are some
pitfalls. Using Windows Notepad can get you into trouble, because it likes to
insert a special character called a BOM at the start of the file, which CDDA
does not want.
If you're going to be editing JSON files consider getting a more fully-featured
editor such as [Notepad++](https://notepad-plus-plus.org/).
## Contributing to GitHub
Contributing to Cataclysm: Dark Days Ahead is easy — simply fork the repository here on GitHub, make your changes, and then send us a pull request.
There are a couple of guidelines we suggest sticking to:
+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
+5 -1
View File
@@ -4,6 +4,7 @@ on:
push:
branches:
- master
- 0.F-dev
paths:
- '**.cpp'
- '**.h'
@@ -12,9 +13,11 @@ on:
- '**/Makefile'
- '**.hpp'
- '**.cmake'
- '.github/workflows/CBA.yml'
pull_request:
branches:
- master
- 0.F-dev
paths:
- '**.cpp'
- '**.h'
@@ -23,6 +26,7 @@ on:
- '**/Makefile'
- '**.hpp'
- '**.cmake'
- '.github/workflows/CBA.yml'
jobs:
@@ -51,7 +55,7 @@ jobs:
- name: make
run: |
ClangBuildAnalyzer --start .
CLANG=clang++-9 CXXFLAGS=-ftime-trace make
CLANG=clang++-10 CXXFLAGS=-ftime-trace make
ClangBuildAnalyzer --stop . buildAnalysis
- name: Analyze
run: ClangBuildAnalyzer --analyze buildAnalysis
+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
+9 -6
View File
@@ -1,9 +1,10 @@
name: Clang-tidy (clang-8, tiles)
name: Clang-tidy (clang-12, tiles)
on:
push:
branches:
- master
- 0.F-dev
paths:
- '**.cpp'
- '**.h'
@@ -15,6 +16,7 @@ on:
pull_request:
branches:
- master
- 0.F-dev
paths:
- '**.cpp'
- '**.h'
@@ -26,11 +28,11 @@ on:
jobs:
build:
runs-on: ubuntu-16.04
runs-on: ubuntu-20.04
env:
CMAKE: 1
CLANG: clang++-8
COMPILER: clang++-8
CLANG: clang++-12
COMPILER: clang++-12
CATA_CLANG_TIDY: plugin
TILES: 1
SOUND: 1
@@ -41,9 +43,10 @@ jobs:
fetch-depth: 1
- name: install dependencies
run: |
#sudo apt-add-repository "deb http://apt.llvm.org/bionic/ llvm-toolchain-bionic-8 main"
wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add -
sudo apt-add-repository "deb http://apt.llvm.org/focal/ llvm-toolchain-focal-12 main"
sudo apt-get update
sudo apt-get install libncursesw5-dev clang-8 libclang-8-dev llvm-8-dev llvm-8-tools \
sudo apt-get install libncursesw5-dev clang-12 libclang-12-dev llvm-12-dev llvm-12-tools \
libsdl2-dev libsdl2-ttf-dev libsdl2-image-dev libsdl2-mixer-dev libpulse-dev ccache \
gettext
- name: prepare
+2
View File
@@ -4,6 +4,7 @@ on:
push:
branches:
- master
- 0.F-dev
paths:
- '**/CMakeLists.txt'
- '**.cmake'
@@ -11,6 +12,7 @@ on:
pull_request:
branches:
- master
- 0.F-dev
paths:
- '**/CMakeLists.txt'
- '**.cmake'
+70
View File
@@ -0,0 +1,70 @@
# For most projects, this workflow file will not need changing; you simply need
# to commit it to your repository.
#
# You may wish to alter this file to override the set of languages analyzed,
# or to provide custom queries or build logic.
#
# ******** NOTE ********
# We have attempted to detect the languages in your repository. Please check
# the `language` matrix defined below to confirm you have the correct set of
# supported CodeQL languages.
#
name: "CodeQL"
on:
push:
branches: [ master, 0.8-branch, 0.9-branch, 0.A-branch, 0.B-branch, 0.C-branch, 0.D-branch, 0.E-branch, gh-pages ]
pull_request:
# The branches below must be a subset of the branches above
branches: [ master ]
schedule:
- cron: '31 12 * * 6'
jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write
strategy:
fail-fast: false
matrix:
language: [ 'cpp', 'javascript', 'python' ]
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python' ]
# Learn more:
# https://docs.github.com/en/free-pro-team@latest/github/finding-security-vulnerabilities-and-errors-in-your-code/configuring-code-scanning#changing-the-languages-that-are-analyzed
steps:
- name: Checkout repository
uses: actions/checkout@v2
# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v1
with:
languages: ${{ matrix.language }}
# If you wish to specify custom queries, you can do so here or in a config file.
# By default, queries listed here will override any specified in a config file.
# Prefix the list here with "+" to use these queries and those in the config file.
# queries: ./path/to/local/query, your-org/your-repo/queries@main
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
# If this step fails, then you should remove it and run the build manually (see below)
#- name: Autobuild
# uses: github/codeql-action/autobuild@v1
# ℹ️ Command-line programs to run using the OS shell.
# 📚 https://git.io/JvXDl
# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
# and modify them (or add more) to build your code if your project
# uses a compiled language
- run: |
make RELEASE=1 RUNTESTS=0
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v1
+2
View File
@@ -4,11 +4,13 @@ on:
push:
branches:
- master
- 0.F-dev
paths:
- '**.py'
pull_request:
branches:
- master
- 0.F-dev
paths:
- '**.py'
+21 -3
View File
@@ -4,6 +4,7 @@ on:
push:
branches:
- master
- 0.F-dev
paths-ignore:
- 'android/**'
- 'build-data/osx/**'
@@ -18,6 +19,7 @@ on:
pull_request:
branches:
- master
- 0.F-dev
paths-ignore:
- 'android/**'
- 'build-data/osx/**'
@@ -58,29 +60,40 @@ jobs:
sanitize: address
native: linux64
title: GCC 8, Ubuntu, Tiles, ASan
- compiler: clang++-9
- compiler: clang++-12
os: ubuntu-latest
cmake: 0
tiles: 1
sanitize: address,undefined
native: linux64
title: Clang 9, Ubuntu, Tiles, ASan, UBSan
title: Clang 12, Ubuntu, Tiles, ASan, UBSan
- compiler: clang++
os: macos-10.15
cmake: 0
tiles: 1
native: osx
title: Clang 12, macOS 10.15, Tiles
- compiler: g++
os: ubuntu-latest
cmake: 0
tiles: 1
title: GCC, Ubuntu cross-compile to MinGW-Win64, Tiles
ldflags: -static-libgcc -static-libstdc++
mxe_target: i686-w64-mingw32.static
wine: wine
name: ${{ matrix.title }}
runs-on: ${{ matrix.os }}
env:
CMAKE: ${{ matrix.cmake }}
COMPILER: ${{ matrix.compiler }}
MXE_TARGET: ${{ matrix.mxe_target }}
WINE: ${{ matrix.wine }}
OS: ${{ matrix.os }}
TILES: ${{ matrix.tiles }}
SOUND: ${{ matrix.tiles }}
SANITIZE: ${{ matrix.sanitize }}
TEST_STAGE: ${{ matrix.test-stage }}
LDFLAGS: ${{ matrix.ldflags }}
EXTRA_TEST_OPTS: --error-format=github-action
NATIVE: ${{ matrix.native }}
GOLD: ${{ matrix.gold }}
@@ -97,6 +110,10 @@ jobs:
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 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: |
@@ -128,8 +145,9 @@ jobs:
- name: build and test
run: bash ./build-scripts/build.sh
- name: upload artifacts if failed
uses: actions/upload-artifact@v1
uses: actions/upload-artifact@v2
if: failure()
with:
name: cata_test
path: tests/cata_test
if-no-files-found: ignore
+1
View File
@@ -3,6 +3,7 @@ on:
pull_request:
branches:
- master
- 0.F-dev
types: [opened, edited, synchronize]
jobs:
validate:
+247
View File
@@ -0,0 +1,247 @@
name: "Experimental Release"
concurrency: release
on:
push:
branches:
- master
jobs:
release:
name: Create Release
runs-on: ubuntu-latest
outputs:
upload_url: ${{ steps.create_release.outputs.upload_url }}
timestamp: ${{ steps.get-timestamp.outputs.time }}
release_already_exists: ${{ steps.tag_check.outputs.exists }}
steps:
- name: Get build timestamp
id: get-timestamp
uses: nanzm/get-time-action@v1.1
with:
timeZone: 0
format: 'YYYY-MM-DD-HHmm'
- name: Generate environmental variables
id: generate_env_vars
run: |
echo "::set-output name=tag_name::cdda-experimental-${{ steps.get-timestamp.outputs.time }}"
echo "::set-output name=release_name::Cataclysm-DDA experimental build ${{ steps.get-timestamp.outputs.time }}"
- name: Check if there is existing git tag
id: tag_check
uses: mukunku/tag-exists-action@v1.0.0
with:
tag: ${{ steps.generate_env_vars.outputs.tag_name }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/checkout@v2
- name: Push tag
id: tag_version
uses: mathieudutour/github-tag-action@v5.5
if: ${{ steps.tag_check.outputs.exists == 'false' }}
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
custom_tag: ${{ steps.generate_env_vars.outputs.tag_name }}
tag_prefix: ""
- name: Create release
id: create_release
uses: actions/create-release@v1
if: ${{ steps.tag_check.outputs.exists == 'false' }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ steps.generate_env_vars.outputs.tag_name }}
release_name: ${{ steps.generate_env_vars.outputs.release_name }}
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
if: ${{ needs.release.outputs.release_already_exists == 'false' }}
strategy:
fail-fast: false
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-18.04
mxe: none
android: none
tiles: 1
artifact: linux-tiles-x64
ext: tar.gz
content: application/gzip
- name: linux-curses-x64
os: ubuntu-18.04
mxe: none
android: 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: Android x64
os: ubuntu-latest
mxe: none
android: arm64
artifact: android-x64
ext: apk
content: application/apk
- name: Android x32
os: ubuntu-latest
mxe: none
android: arm32
artifact: android-x32
ext: apk
content: application/apk
- name: Android Bundle
os: ubuntu-latest
mxe: none
android: bundle
artifact: android-bundle
ext: aab
content: application/aap
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' && matrix.android == '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==1.4.2 biplist
- name: Build CDDA (linux)
if: runner.os == 'Linux' && matrix.mxe == 'none' && matrix.android == 'none'
run: |
cat >VERSION.txt <<EOL
build type: ${{ matrix.artifact }}
build number: ${{ needs.release.outputs.timestamp }}
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.F.tar.gz cdda-${{ matrix.artifact }}-${{ needs.release.outputs.timestamp }}.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: ${{ needs.release.outputs.timestamp }}
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.F.zip cdda-${{ matrix.artifact }}-${{ needs.release.outputs.timestamp }}.zip
- name: Build CDDA (osx)
if: runner.os == 'macOS'
env:
USE_HOME_DIR: 1
run: |
cat >VERSION.txt <<EOL
build type: ${{ matrix.artifact }}
build number: ${{ needs.release.outputs.timestamp }}
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 }}-${{ needs.release.outputs.timestamp }}.dmg
- name: Set up JDK 8 (android)
if: runner.os == 'Linux' && matrix.android != 'none' && matrix.mxe == 'none'
uses: actions/setup-java@v2
with:
java-version: '8'
distribution: 'adopt'
- name: Setup Build and Dependencies (android)
if: runner.os == 'Linux' && matrix.android != 'none' && matrix.mxe == 'none'
run: |
cat >VERSION.txt <<EOL
build type: ${{ matrix.artifact }}
build number: ${{ needs.release.outputs.timestamp }}
commit sha: ${{ github.sha }}
commit url: https://github.com/${{ github.repository }}/commit/${{ github.sha }}
EOL
sudo apt-get update
sudo apt-get install gettext
- name: Build CDDA (android)
if: runner.os == 'Linux' && matrix.android != 'none' && matrix.mxe == 'none'
working-directory: ./android
run: |
echo "${{ secrets.KEYSTORE }}" > release.keystore.asc
gpg -d --passphrase "${{ secrets.KEYSTORE_PASSWORD }}" --batch release.keystore.asc > app/release.keystore
echo "${{ secrets.KEYSTORE_PROPERTIES }}" > keystore.properties.asc
gpg -d --passphrase "${{ secrets.KEYSTORE_PASSWORD }}" --batch keystore.properties.asc > keystore.properties
export UPSTREAM_BUILD_NUMBER="$((11581 + ${{ github.run_number }}))"
chmod +x gradlew
if [ ${{ matrix.android }} = arm64 ]
then
./gradlew -Pj=$((`nproc`+0)) -Pabi_arm_32=false assembleExperimentalRelease
mv ./app/build/outputs/apk/experimental/release/*.apk ../cdda-${{ matrix.artifact }}-${{ needs.release.outputs.timestamp }}.apk
elif [ ${{ matrix.android }} = arm32 ]
then
./gradlew -Pj=$((`nproc`+0)) -Pabi_arm_64=false assembleExperimentalRelease
mv ./app/build/outputs/apk/experimental/release/*.apk ../cdda-${{ matrix.artifact }}-${{ needs.release.outputs.timestamp }}.apk
elif [ ${{ matrix.android }} = bundle ]
then
./gradlew -Pj=$((`nproc`+0)) bundleExperimentalRelease
mv ./app/build/outputs/bundle/experimentalRelease/*.aab ../cdda-${{ matrix.artifact }}-${{ needs.release.outputs.timestamp }}.aab
fi
- 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 }}-${{ needs.release.outputs.timestamp }}.${{ matrix.ext }}
asset_name: cdda-${{ matrix.artifact }}-${{ needs.release.outputs.timestamp }}.${{ matrix.ext }}
asset_content_type: ${{ matrix.content }}
- name: Trigger GitHub pages rebuild
run: |
curl --fail --request POST \
--url https://api.github.com/repos/${{ github.repository }}/pages/builds \
--header "Authorization: Bearer ${{ secrets.USER_TOKEN }}" \
--header "Accept: application/vnd.github.v3+json"
+2
View File
@@ -1,5 +1,7 @@
name: "Push translation template"
concurrency: push_transifex
on:
push:
branches:
+1
View File
@@ -141,6 +141,7 @@ Cataclysm.dmg
/tests/shadowcasting_test
/tests/data/jsionized_overmap.sav
/test_user_dir
monfactions.txt
# temporary files generated by tools/reduce_tests.sh
/list_of_tests
-2
View File
@@ -1,5 +1,3 @@
# Disable FIXME query, in DDA it is as likely to be a future feature as a bug.
# Disable "potentially dangerous function" warning like localtime, there is no good alternative and we aren't multithreaded.
queries:
- exclude: cpp/fixme-comment
- exclude: cpp/potentially-dangerous-function
+6 -3
View File
@@ -27,7 +27,7 @@ os: linux
branches:
only:
- master
- development
- 0.F-dev
# Overall strategy for what sorts of builds to include:
# We want a build for each compiler and each platform.
@@ -99,7 +99,8 @@ jobs:
- stage: "Platforms and Tidy"
# MXE variant using alternate repository http://mirror.mxe.cc/repos/apt
env: COMPILER=g++ LDFLAGS="-static-libgcc -static-libstdc++" MXE_TARGET="i686-w64-mingw32.static" WINE="wine" TILES=1 SOUND=1
name: "Mingw-w64 Make cross-compile to Windows with Tiles and Sound"
name: "MinGW-Win64 Make cross-compile to Windows with Tiles and Sound"
if: type != pull_request
compiler: gcc
addons: &gcc
apt:
@@ -111,7 +112,6 @@ jobs:
android:
components:
- build-tools-28.0.1
- android-28
cache:
# The ccache feature in Travis doesn't work for language: android, so
# do it ourselves.
@@ -217,6 +217,9 @@ jobs:
- sourceline: "deb http://apt.llvm.org/bionic/ llvm-toolchain-bionic-9 main"
key_url: "https://apt.llvm.org/llvm-snapshot.gpg.key"
before_install:
- if [ "${NATIVE}" == "android" ]; then yes | sdkmanager "platforms;android-28"; fi
before_script:
- if [ -n "${CLANG}" ]; then COMPILER="$CLANG"; fi
- ${COMPILER} --version
+28 -26
View File
@@ -60,8 +60,10 @@ 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")
add_definitions(-DMACOSX)
if (${TILES})
add_definitions(-DOSX_SDL2_LIBS)
endif ()
endif ()
include(CheckCXXCompilerFlag)
@@ -198,7 +200,7 @@ message(STATUS "BACKTRACE : ${BACKTRACE}")
message(STATUS "LOCALIZE : ${LOCALIZE}")
message(STATUS "USE_HOME_DIR : ${USE_HOME_DIR}")
message(STATUS "LANGUAGES : ${LANGUAGES}")
message(STATUS "See INSTALL file for details and more info --")
message(STATUS "See doc/COMPILING/COMPILING-CMAKE.md for details and more info --")
if (MSVC)
if (CMAKE_SIZEOF_VOID_P EQUAL 8)
@@ -237,9 +239,9 @@ set(CMAKE_CXX_STANDARD 14)
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, \
Remove the file 'CMakeCache.txt' found in this directory before continuing; \
create a separate build directory and run 'cmake [options] <srcs>' from there. \
See INSTALL file for details and more info.")
See doc/COMPILING/COMPILING-CMAKE.md for details and more info.")
endif ()
#set(THREADS_USE_PTHREADS_WIN32 True)
@@ -255,8 +257,8 @@ if (TILES)
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 the -DTILES=1 for a text only compilation. \
See INSTALL file for details and more info.")
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)
@@ -275,8 +277,8 @@ if (TILES)
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 the -DTILES=1 for a text only compilation. \
See INSTALL file for details and more info.")
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 --")
@@ -285,8 +287,8 @@ if (TILES)
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 the -DTILES=1 for a text only compilation. \
See INSTALL file for details and more info.")
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 ()
@@ -299,10 +301,10 @@ if (CURSES)
find_package(Curses)
if (NOT CURSES_FOUND)
message(FATAL_ERROR
"This project requires ncurses to be installed to be compiled in text only mode. \
"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. \
See INSTALL file for details and more info")
or try compiling with -DTILES=1 for a graphical compilation. \
See doc/COMPILING/COMPILING-CMAKE.md for details and more info")
endif ()
endif ()
@@ -312,7 +314,7 @@ if (SOUND)
message(FATAL_ERROR
"You must enable graphical support with -DTILES=1 \
to be able to enable sound support. \
See INSTALL file for details and more info.")
See doc/COMPILING/COMPILING-CMAKE.md for details and more info.")
endif ()
# Sound requires SDL_mixer library
@@ -322,7 +324,7 @@ if (SOUND)
message(FATAL_ERROR
"You need the SDL2_mixer development library \
to be able to compile with sound enabled. \
See INSTALL file for details and more info.")
See doc/COMPILING/COMPILING-CMAKE.md for details and more info.")
endif ()
endif ()
@@ -335,21 +337,21 @@ endif (BACKTRACE)
# Ok. Now create build and install recipes
if (LOCALIZE)
if (WIN32)
if (NOT _OS_LINUX_) # on Linux with glibc, libintl is not required
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 INSTALL file 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 INSTALL file for details and more info.")
to be able to compile with LOCALIZE support. \
See doc/COMPILING/COMPILING-CMAKE.md for details and more info.")
endif ()
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 ()
add_subdirectory(lang)
add_definitions(-DLOCALIZE)
+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.
+24 -5
View File
@@ -138,7 +138,7 @@ export CCACHE_COMMENTS=1
# Explicitly let 'char' to be 'signed char' to fix #18776
OTHERS += -fsigned-char
VERSION = 0.E
VERSION = 0.F
TARGET_NAME = cataclysm
TILES_TARGET_NAME = $(TARGET_NAME)-tiles
@@ -502,10 +502,20 @@ endif
# OSX
ifeq ($(NATIVE), osx)
ifeq ($(OSX_MIN),)
ifneq ($(CLANG), 0)
OSX_MIN = 10.7
ifneq ($(findstring Darwin,$(OS)),)
OSX_MIN = $(shell sw_vers -productVersion | awk -F '.' '{print $$1 "." $$2}')
else
OSX_MIN = 10.5
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
@@ -990,6 +1000,7 @@ ifeq ($(TARGETSYSTEM), LINUX)
DATA_PREFIX=$(DESTDIR)$(PREFIX)/share/cataclysm-dda/
BIN_PREFIX=$(DESTDIR)$(PREFIX)/bin
LOCALE_DIR=$(DESTDIR)$(PREFIX)/share/locale
SHARE_DIR=$(DESTDIR)$(PREFIX)/share
install: version $(TARGET)
mkdir -p $(DATA_PREFIX)
mkdir -p $(BIN_PREFIX)
@@ -1006,6 +1017,9 @@ install: version $(TARGET)
cp -R --no-preserve=ownership data/help $(DATA_PREFIX)
ifeq ($(TILES), 1)
cp -R --no-preserve=ownership gfx $(DATA_PREFIX)
install -Dm755 -t $(SHARE_DIR)/applications/ data/xdg/org.cataclysmdda.CataclysmDDA.desktop
install -Dm644 -t $(SHARE_DIR)/metainfo/ data/xdg/org.cataclysmdda.CataclysmDDA.appdata.xml
install -Dm644 -t $(SHARE_DIR)/icons/hicolor/scalable/apps/ data/xdg/org.cataclysmdda.CataclysmDDA.svg
endif
ifeq ($(SOUND), 1)
cp -R --no-preserve=ownership data/sound $(DATA_PREFIX)
@@ -1022,6 +1036,7 @@ ifeq ($(TARGETSYSTEM), CYGWIN)
DATA_PREFIX=$(DESTDIR)$(PREFIX)/share/cataclysm-dda/
BIN_PREFIX=$(DESTDIR)$(PREFIX)/bin
LOCALE_DIR=$(DESTDIR)$(PREFIX)/share/locale
SHARE_DIR=$(DESTDIR)$(PREFIX)/share
install: version $(TARGET)
mkdir -p $(DATA_PREFIX)
mkdir -p $(BIN_PREFIX)
@@ -1038,6 +1053,9 @@ install: version $(TARGET)
cp -R --no-preserve=ownership data/help $(DATA_PREFIX)
ifeq ($(TILES), 1)
cp -R --no-preserve=ownership gfx $(DATA_PREFIX)
install -Dm755 -t $(SHARE_DIR)/applications/ data/xdg/org.cataclysmdda.CataclysmDDA.desktop
install -Dm644 -t $(SHARE_DIR)/metainfo/ data/xdg/org.cataclysmdda.CataclysmDDA.appdata.xml
install -Dm644 -t $(SHARE_DIR)/icons/hicolor/scalable/apps/ data/xdg/org.cataclysmdda.CataclysmDDA.svg
endif
ifeq ($(SOUND), 1)
cp -R --no-preserve=ownership data/sound $(DATA_PREFIX)
@@ -1144,6 +1162,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
@@ -1186,7 +1205,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.
+2 -2
View File
@@ -69,8 +69,8 @@ GitHub repo:
https://github.com/CleverRaven/Cataclysm-DDA
IRC:
`irc.freenode.net` ; `#CataclysmDDA`
http://webchat.freenode.net/?channels=#CataclysmDDA
`irc.libera.chat` ; `#CataclysmDDA`
https://kiwiirc.com/nextclient/irc.libera.chat#CataclysmDDA
Official Discord:
https://discord.gg/jFEc7Yp
-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">Installiere Spieldaten...</string>
<string name="upgradeTitle">Aktualisiere Spieldaten...</string>
<string name="helpTitle">Hilfe &amp; Steuerung</string>
<string name="helpMessage">\"Wischen\" für Richtungsbewegung (Halten für virtuellen Joystick). \"Tippen\" um Auswahl in Menüs zu bestätigen oder pausiere einen Zug In-Game (Halten zum pausieren mehrerer Züge). \"Doppel Tippen\" zum Abbrechen oder Zurück in Menüs (Wie ESC auf Tastatur). \"Zusammenkneifen\" zum Rein/Raus zoomen (In-Game). Drücke Hardware \"Zurück\" Knopf fürs Umschalten der virtuellen Tastaur (Halten zum Umschalten der Tastatur Shortcuts).</string>
<string name="softwareRendering">Software-Rendering</string>
<string name="forceFullscreen">Erwzinge Vollbild</string>
<string name="trapBackButton">Verstecke Zurück Knopf</string>
<string name="settings">Einstellungen</string>
<string name="startGame">Starte Spiel</string>
<string name="showHelp">Zeige Hilfe</string>
<string name="crashAlert">Das Spiel wurde beim letzten Mal nicht richtig beendet</string>
<string name="crashMessage">Der Crash Report der sich in ./config/crash.log befindet könnten den Entwicklern helfen Programmfehler zu beheben.</string>
</resources>
@@ -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">Sto installando i dati di gioco...</string>
<string name="upgradeTitle">Sto aggiornando i dati di gioco...</string>
<string name="helpTitle">Aiuto &amp; Controlli</string>
<string name="helpMessage">Fai \"swipe\" per il controllo direzionale (tieni premuto per il joystick virtuale). Tocca lo schermo per dare conferma nei menù contestuali o per passare un turno nel gioco (tieni premuto per passare più turni). Tocca due volte lo schermo per annullare o tornare indietro nei menù (funziona come il tasto ESC). Fai un \"pinch\" per zoommare vicino o lontano (dentro al gioco). Usa il tasto \"Indietro\" del tuo dispositivo per attivare la tastiera virtuale (tieni premuto per attivare le scorciatoie della tastiera).</string>
<string name="softwareRendering">Modalità software</string>
<string name="forceFullscreen">Forza schermo intero</string>
<string name="trapBackButton">Blocca il tasto Indietro</string>
<string name="settings">Impostazioni</string>
<string name="startGame">Avvia gioco</string>
<string name="showHelp">Mostra aiuto</string>
<string name="crashAlert">Il gioco non è stato chiuso correttamente l\'ultima volta</string>
<string name="crashMessage">Il crash report localizzato in ./config/crash.log può aiutare gli sviluppatori a comprendere gli errori di programmazione.</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">Instalando dados do jogo...</string>
<string name="upgradeTitle">Melhorando dados do jogo...</string>
<string name="helpTitle">Controles</string>
<string name="helpMessage">\"Deslize\" para movimento direcional (mantenha pressionado para joystick virtual). \"Toque\" para confirmar a seleção no menu, ou Pausar um turno em jogo (mantenha pressionado para Pausar diversos turnos em jogo). \"Toque duas vezes\" para cancelar, ou voltar em menus (funciona como tecla Esc). \"Pince\" para aumentar e diminuir o zoom (em jogo). Use o botão de \"Voltar\" do dispositivo para ativar o teclado virtual (mantenha pressionado para alternar atalhos de teclado).</string>
<string name="softwareRendering">Renderização de software</string>
<string name="forceFullscreen">Forçar tela cheia</string>
<string name="trapBackButton">Manter botão de voltar </string>
<string name="settings">Configurações</string>
<string name="startGame">Iniciar jogo</string>
<string name="showHelp">Mostrar ajuda</string>
<string name="crashAlert">O jogo não foi encerrado corretamente na última vez</string>
<string name="crashMessage">O relatório de erro localizado em ./config/crash.log pode ajudar desenvolvedores a solucionarem erros no 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">Помощь и управление</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,15 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="installTitle">Oyun verileri yükleniyor...</string>
<string name="upgradeTitle">Oyun verileri güncelleniyor...</string>
<string name="helpTitle">Yardım &amp; Kontroller</string>
<string name="helpMessage">Yönlü hareket için \"Kaydırın\" (sanal joystick için basılı tutun). Menüde seçimi onaylamak veya oyunda bir turu atlamak için \"Dokunun\" (birkaç Tur Atlamak için basılı tutun). İptal etmek veya menülere geri dönmek için \"Çift dokunun\" (ESC tuşu gibi çalışır). (Oyun İçinde) yakınlaştırmak/uzaklaştırmak için \"Sıkıştırın\". Sanal klavyeyi açmak için telefonun \"Geri\" tuşunu kullanın (klavye kısayollarını değiştirmek için basılı tutun).</string>
<string name="softwareRendering">Software rendering</string>
<string name="forceFullscreen">Tam ekrana zorla</string>
<string name="trapBackButton">Geri düğmesi</string>
<string name="settings">Ayarlar</string>
<string name="startGame">Oyunu başlat</string>
<string name="showHelp">Yardımı göster</string>
<string name="crashAlert">Oyun geçen sefer düzgün şekilde kapatılmadı</string>
<string name="crashMessage">\"./config/crash.log\" \'taki çökme raporu geliştiricilerin program hatalarını gidermelerine yardımcı olabilir.</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">[滑动] 按方向移动([长按] 显示虚拟手柄)。
[短按] 确认菜单选项 或 等待一回合([长按] 等待多回合)。
[双击] 取消当前操作 或 返回菜单 (等同于 Esc 键)。
[双指内缩] 放大/缩小视野(游戏中)。
[系统返回键] 切出虚拟键盘([长按] 隐藏/显示快捷键栏)。
*设置中可设置四个双指方向滑动快捷键;例:[双指向下滑动] 设置为 \"i\",即可游戏内双指向下滑动打开物品栏。</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/debug.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>
+2 -2
View File
@@ -54,7 +54,7 @@ version_header_path=./../src/version.h
# This property controls which compileSdkVersion should be used
# You can override this from the command line by passing "-Poverride_compileSdkVersion=#"
override_compileSdkVersion=28
override_compileSdkVersion=29
# This property controls which minSdkVersion should be used
# You can override this from the command line by passing "-Poverride_minSdkVersion=#"
@@ -62,7 +62,7 @@ override_minSdkVersion=14
# This property controls which targetSdkVersion should be used
# You can override this from the command line by passing "-Poverride_targetSdkVersion=#"
override_targetSdkVersion=28
override_targetSdkVersion=29
# This property controls which ndkBuildAppPlatform should be used
# You can override this from the command line by passing "-Poverride_ndkBuildAppPlatform=#"
+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
+36 -21
View File
@@ -2,6 +2,7 @@
# Build script intended for use in Travis CI and Github workflow
echo "Using bash version $BASH_VERSION"
set -exo pipefail
num_jobs=3
@@ -33,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="./"
@@ -51,16 +71,16 @@ then
cmake_extra_opts+=("-DCATA_CLANG_TIDY_PLUGIN=ON")
# Need to specify the particular LLVM / Clang versions to use, lest it
# use the llvm-7 that comes by default on the Travis Xenial image.
cmake_extra_opts+=("-DLLVM_DIR=/usr/lib/llvm-8/lib/cmake/llvm")
cmake_extra_opts+=("-DClang_DIR=/usr/lib/llvm-8/lib/cmake/clang")
cmake_extra_opts+=("-DLLVM_DIR=/usr/lib/llvm-12/lib/cmake/llvm")
cmake_extra_opts+=("-DClang_DIR=/usr/lib/llvm-12/lib/cmake/clang")
fi
if [ "$COMPILER" = "clang++-8" -a -n "$GITHUB_WORKFLOW" -a -n "$CATA_CLANG_TIDY" ]
if [ "$COMPILER" = "clang++-12" -a -n "$GITHUB_WORKFLOW" -a -n "$CATA_CLANG_TIDY" ]
then
# This is a hacky workaround for the fact that the custom clang-tidy we are
# using is built for Travis CI, so it's not using the correct include directories
# for GitHub workflows.
cmake_extra_opts+=("-DCMAKE_CXX_FLAGS=-isystem /usr/include/clang/8.0.0/include")
cmake_extra_opts+=("-DCMAKE_CXX_FLAGS=-isystem /usr/include/clang/12.0.0/include")
fi
mkdir build
@@ -145,8 +165,8 @@ then
make -j$num_jobs
cd ..
# Run regular tests
[ -f "${bin_path}cata_test" ] && parallel --verbose --tagstring "({})=>" --linebuffer $WINE ${bin_path}/cata_test --min-duration 0.2 --use-colour yes --rng-seed time $EXTRA_TEST_OPTS ::: "crafting_skill_gain" "[slow] ~crafting_skill_gain" "~[slow] ~[.]"
[ -f "${bin_path}cata_test-tiles" ] && parallel --verbose --tagstring "({})=>" --linebuffer $WINE ${bin_path}/cata_test-tiles --min-duration 0.2 --use-colour yes --rng-seed time $EXTRA_TEST_OPTS ::: "crafting_skill_gain" "[slow] ~crafting_skill_gain" "~[slow] ~[.]"
[ -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
@@ -163,32 +183,27 @@ 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
if [ "$OS" == "macos-10.15" ]
then
# if OSX_MIN we specify here is lower than 10.15 then linker is going
# to throw warnings because SDL and gettext libraries installed from
# Homebrew are built with minimum target osx version 10.15
export OSX_MIN=10.15
else
export BACKTRACE=1
fi
make -j "$num_jobs" RELEASE=1 CCACHE=1 CROSS="$CROSS_COMPILATION" LINTJSON=0
export ASAN_OPTIONS=detect_odr_violation=1
export UBSAN_OPTIONS=print_stacktrace=1
parallel --verbose --tagstring "({})=>" --linebuffer $WINE ./tests/cata_test --min-duration 0.2 --use-colour yes --rng-seed time $EXTRA_TEST_OPTS ::: "crafting_skill_gain" "[slow] ~crafting_skill_gain" "~[slow] ~[.]"
parallel --verbose --linebuffer "run_test './tests/cata_test' {} '('{}')=> '" ::: "crafting_skill_gain" "[slow] ~crafting_skill_gain" "~[slow] ~[.]"
if [ -n "$MODS" ]
then
parallel --verbose --tagstring "(Mods-{})=>" --linebuffer $WINE ./tests/cata_test --user-dir=modded $MODS --min-duration 0.2 --use-colour yes --rng-seed time $EXTRA_TEST_OPTS ::: "crafting_skill_gain" "[slow] ~crafting_skill_gain" "~[slow] ~[.]"
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" ]
then
# Run the tests one more time, without actually running any tests, just to verify that all
# the mod data can be successfully loaded
# Run the tests with all the mods, without actually running any tests,
# just to verify that all the mod data can be successfully loaded.
# Because some mods might be mutually incompatible we might need to run a few times.
mods="$(./build-scripts/get_all_mods.py)"
$WINE ./tests/cata_test --user-dir=all_modded --mods="$mods" --min-duration 0.2 --use-colour yes --rng-seed time $EXTRA_TEST_OPTS "~*"
./build-scripts/get_all_mods.py | \
while read mods
do
run_test './tests/cata_test --user-dir=all_modded --mods='"${mods}" '~*' ''
done
fi
fi
ccache --show-stats
+31 -8
View File
@@ -1,10 +1,20 @@
#!/usr/bin/env python3
# The goal of this script is to print out sets of mods for testing. Each line
# of output is a comma-separated list of mods. Together the lines should cover
# all in-repo mods, in as few lines as possible. Each line must contain only
# mods which are mutually compatible.
import glob
import json
mods_this_time = []
mods_to_keep = []
def compatible_with(mod, existing_mods):
if mod in total_conversions and total_conversions & set(existing_mods):
return False
return True
def add_mods(mods):
@@ -13,12 +23,16 @@ def add_mods(mods):
# Either an invalid mod id, or blacklisted.
return False
for mod in mods:
if mod not in mods_to_keep:
mods_to_keep.append(mod)
if mod not in mods_this_time and compatible_with(mod, mods_this_time):
if add_mods(all_mod_dependencies[mod]):
mods_this_time.append(mod)
else:
return False
return True
all_mod_dependencies = {}
total_conversions = set()
for info in glob.glob('data/mods/*/modinfo.json'):
mod_info = json.load(open(info))
@@ -26,10 +40,19 @@ for info in glob.glob('data/mods/*/modinfo.json'):
if e["type"] == "MOD_INFO":
ident = e["id"]
all_mod_dependencies[ident] = e.get("dependencies", [])
if e["category"] == "total_conversion":
total_conversions.add(ident)
for mod in all_mod_dependencies:
if mod not in mods_to_keep:
if add_mods(all_mod_dependencies[mod]):
mods_to_keep.append(mod)
mods_remaining = set(all_mod_dependencies)
print(','.join(mods_to_keep))
while mods_remaining:
for mod in mods_remaining:
if mod not in mods_this_time:
add_mods([mod])
if not mods_remaining & set(mods_this_time):
raise RuntimeError(
'mods remain ({}) but none could be added'.format(mods_remaining))
print(','.join(mods_this_time))
mods_remaining = mods_remaining - set(mods_this_time)
mods_this_time = []
+36 -4
View File
@@ -54,8 +54,9 @@ fi
# Influenced by https://github.com/zer0main/battleship/blob/master/build/windows/requirements.sh
if [ -n "${MXE_TARGET}" ]; then
sudo add-apt-repository 'deb [arch=amd64] https://mirror.mxe.cc/repos/apt xenial main'
$travis_retry sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 84C7C89FC632241A6999ED0A580873F586B72ED9
$travis_retry sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 84C7C89FC632241A6999ED0A580873F586B72ED9
sudo add-apt-repository 'deb [arch=amd64] https://mirror.mxe.cc/repos/apt xenial main'
sudo dpkg --add-architecture i386
# We need to treat apt-get update warnings as errors for which the exit code
# is not sufficient. The following workaround inspired by
# https://unix.stackexchange.com/questions/175146/apt-get-update-exit-status/
@@ -66,9 +67,18 @@ if [ -n "${MXE_TARGET}" ]; then
MXE2_TARGET=$(echo "$MXE_TARGET" | sed 's/_/-/g')
export MXE_DIR=/usr/lib/mxe/usr/bin
$travis_retry sudo apt-get --yes install mxe-${MXE2_TARGET}-gcc mxe-${MXE2_TARGET}-gettext mxe-${MXE2_TARGET}-glib mxe-${MXE2_TARGET}-sdl2 mxe-${MXE2_TARGET}-sdl2-ttf mxe-${MXE2_TARGET}-sdl2-image mxe-${MXE2_TARGET}-sdl2-mixer
$travis_retry sudo apt-get --yes install \
mxe-${MXE2_TARGET}-gcc \
mxe-${MXE2_TARGET}-gettext \
mxe-${MXE2_TARGET}-glib \
mxe-${MXE2_TARGET}-sdl2 \
mxe-${MXE2_TARGET}-sdl2-ttf \
mxe-${MXE2_TARGET}-sdl2-image \
mxe-${MXE2_TARGET}-sdl2-mixer \
wine \
wine32
export PLATFORM='i686-w64-mingw32.static'
export CROSS_COMPILATION='${MXE_DIR}/${PLATFORM}-'
export CROSS_COMPILATION="${MXE_DIR}/${PLATFORM}-"
# Need to overwrite CXX to make the Makefile $CROSS logic work right.
export CXX="$COMPILER"
export CCACHE=1
@@ -97,4 +107,26 @@ if [[ "$NATIVE" == "android" ]]; then
yes | sdkmanager "ndk-bundle"
fi
if [ -n "$WINE" ]
then
# The build script will try to run things under wine in parallel, and I
# think there are race conditions that can cause that to break. So, run
# something benign under wine in advance to trigger it to configure all the
# one-time init stuff
wine hostname
fi
# On GitHub actions environment variables are not saved between steps by
# default, so we need to explicitly save the ones that we care about
if [ -n "$GITHUB_ENV" ]
then
for v in CROSS_COMPILATION CXX
do
if [ -n "${!v}" ]
then
printf "%s='%s'\n" "$v" "${!v}" >> "$GITHUB_ENV"
fi
done
fi
set +x
+439 -145
View File
@@ -1,52 +1,145 @@
# 0.F (2020-09-01)
# 0.F (Frank)
## Highlights
Nested Containers rationalize inventory management and enable dropping and retrieving go-bags during fights.
Achievements track your deeds and misdeeds across games.
Proficiencies better represent deeper knowledge required for various endeavors, mostly crafting.
Bleeding added to both the player and monsters as the first step toward a more comprehensive wound and wound treatment system.
Weariness tracking added to represent longer-term physical exhaustion.
Elevated bridges over navigable rivers added, allowing better navigability while using boats.
Large-scale audit of weapon and armor values for better representativeness and consistency.
Improved armor handling by separating ballistic damage into its own damage type.
Pervasive performance enhancements throughout the game.
Tileset vehicle support for more cohesive vehicle rendering.
Aftershock changes direction to a total conversion mod with a new far-future setting on a frozen world.
Dinomod added 238 dinosaurs, pterosaurs, mosasaurs, and dino-related NPCs with missions and dino locations.
Added many dino features, including zombie, fungal, evolved, bionic, baby, and mutant dino variants.
Dinomod added many dino interactions, including farming, riding, butchering, cooking, and special attacks.
Magiclysm added a huge content update including many new traits called Attunements that switch up gameplay at the endgame.
## Statistics
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.
Mining multi-activity for NPCs and players.
Add mining multi-activity for NPCs and players.
Basecamp job rework - wandering/sitting/job priorities.
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.
Auto eat and drink from auto-zones during long activities or while waiting.
Adds flyable helicopters.
Allows towing vehicles.
Allows specifying height and age in character creation.
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.
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.
Adds actions to workout and do exercises.
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.
Adds autodoc installation programs that almost guarantee flawless installation of supported bionics.
Removes the obsolete 'carrion spawn rate scaling factor' world configuration option.
Makes thrown glass items drop glass shards when shattered.
Adds suspension for butchering using cranes (except tiny ones) and forklift arms.
## 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 +149,92 @@ 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.
Adds a satiety column to the eat menu, showing how many calories the food will have for how filling it is.
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.
Adds the Chibi Ultica tileset, a mix of MSX character and monster sprites with Ultica terrain, vehicles, and items.
Brings back the MSX+ Tileset.
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:
[Aftershock] Adds autodoc tiers and augmentation clinics.
[Aftershock] Megacity-oriented overmap generation adjustments
[Aftershock] Adds new Melee oriented bionics.
[Aftershock] Replaces Vanilla autodocs with Aftershock Average Autodocs.
[Aftershock] Adds an astrobiology lab.
[Aftershock] Adds a design document.
[Aftershock] Adds new laser and plasma pistols.
[Aftershock] Adds Formless Ruins - a new aboveground, low-risk dungeon type.
[Blazemod] Overhauls Blazemod and splits it into separate mods.
[Dark Skies Above] DSA is reborn as an actively-developed, total-conversion mod.
[DinoMod] Adds location variants with dinosaurs.
[DinoMod] Adds Acrocanthosaurus and overhauls dino baby code.
[DinoMod] Adds monsters 'Scutellosaurus', 'Maiasaura', and 'Coelophysis'.
[DinoMod] 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.
[DinoMod] Caps monsters at 1000 kg so butchering kind of works.
[DinoMod] Adds monsters 'Brontosaurus', 'Alamosaurus', and 'Brachiosaurus'.
[DinoMod] Converts 'dinoexhibit' to use templates, adds a roof, and adds a baby dino variant.
[DinoMod] Ankylosaurs Abound: Adds Dyoplosaurus, Nodosaurus, and Edmontonia.
[DinoMod] Adds Amargasaurus and Kosmoceratops as well as variants.
[DinoMod] Adds mod-specific mutation trees Stego and Tyrant.
[Magiclysm] Adds spell level and number of spells known achievements.
[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.
[Magiclysm] Adds polymorph spells so you can transform your foes.
[Magiclysm] Adds a spell component system and more-powerful spells to use it.
[Magiclysm] Adds a new mutation line: Black Dragon.
[Magiclysm] Adjusts fog frequency in black dragon lair plus other (minor) map adjustments.
[Magiclysm] Attunements - Special abilities gained by mastering two schools of magic.
[Magiclysm] implement summonable motorcycle
[Magiclysm] Adds a new house with technomancer-themed loot.
[Magiclysm] Rings of wizardry and mojocycle tweaks
[Magiclysm] Adds bullet armor to magic rings and bracers of protection.
[Magiclysm] Adds Orcs and Ogres.
[Magiclysm] Adds three new Attunement spells (Frozen Winds, Auroral wave, and Immolate).
[Magiclysm] Adds Workshop Elves, Yule Cats, and Leprechauns.
[MMA] Adds Ki Strike trait, buffing unarmed to make it more competitive with other weapons.
[Vanilla + Many Mods] Fixes problematic faction relationships (one-way aggression).
## Balance:
Large item price audit.
@@ -90,103 +245,207 @@ 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.
Stops crafting failures from clustering at high completion percentages.
Fixes non-spring eternal seasons.
Stops unreloadable items from being reloadable.
Fixes savegame corruption causing teleporting to very distant submaps
Unfreezes trap-avoiding monsters.
Fixes ramming at low speed.
Placing specials around cities now scales with city size.
Fixes proficiency books' effect on crafting.
Construction of roofs actually makes the tile above the construction a roof.
Partial fix for vehicle damage reduction inconsistencies.
Fixes building ramps and stairs.
## 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 +453,72 @@ 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.
Moves Mingw cross-compile CI job from Travis to GitHub.
compose.py: Fixes --use-all when there are no filler sheets.
compose.py: Don't warn about unused fillers matching IDs in tile entries from main sheets.
Adds a tool to check printf style format string in translations.
## 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.
Adds a CI action to build and release for Windows.
Adds android builds to Github actions.
## 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)
+14
View File
@@ -188,6 +188,20 @@
"stype": "int",
"value": 5
},
{
"type": "EXTERNAL_OPTION",
"name": "GENERIC_PROFESSION_ID",
"info": "The profession selected by default in the character creator menu.",
"stype": "string_input",
"value": "unemployed"
},
{
"type": "EXTERNAL_OPTION",
"name": "GENERIC_SCENARIO_ID",
"info": "The scenario selected by default in the character creator menu.",
"stype": "string_input",
"value": "evacuee"
},
{
"type": "EXTERNAL_OPTION",
"name": "WORKBENCH_ALL_OPTIONS",
+17
View File
@@ -0,0 +1,17 @@
[
{
"//": "We're always going to need a 'nothing here' tile, we currently use traps for this.",
"type": "trap",
"id": "tr_ledge",
"name": "ledge",
"color": "i_cyan",
"memorial_male": { "ctxt": "memorial_female", "str": "Fell down a ledge." },
"memorial_female": { "ctxt": "memorial_female", "str": "Fell down a ledge." },
"symbol": " ",
"visibility": 0,
"avoidance": 99999,
"difficulty": 99,
"action": "ledge",
"vehicle_data": { "is_falling": true }
}
]
+95 -7
View File
@@ -1,15 +1,39 @@
# 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>
<color_white>Current Main Developers:</color>
<color_yellow>mlangsdorf</color> - Vehicles, boats, basecamps and modding guides.
<color_yellow>I-am-Erk</color> - Ultica legacy lives on.
<color_yellow>KorGgenT</color> - Not letting me know where to put my two-by-fours.
<color_white>Special thanks to:</color>
<color_yellow>Aivean</color> - For outstanding performance.
<color_yellow>anothersimulacrum</color> - For making me weary.
<color_yellow>jbytheway</color> - For making me achieve things.
<color_yellow>BrettDong</color> - For translations and more.
<color_yellow>Qrox</color> - For showing location of error messages.
<color_yellow>LyleSY</color> - For dinosaurrrs.
<color_white>Special thanks for art contributions:</color>
<color_yellow>acepleiades</color>, <color_yellow>barsoosayque</color>, <color_yellow>Fris0uman</color>, <color_yellow>int-ua</color>, and many more.
<color_white>For a full list of contributors please see:</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>
******************************************************************************
<color_white>Main Developers (<color_cyan>0.E</color>):</color>
<color_yellow>mlangsdorf</color> - Vehicles, boats, basecamps and modding guides.
<color_yellow>I-am-Erk</color> - Ultica, dialogs, NPCs and clutter in the kitchens.
<color_yellow>KorGgenT</color> - Magiclysm and stomach aches.
<color_white>Special thanks to:</color>
<color_white>Special thanks to (<color_cyan>0.E</color>):</color>
<color_yellow>Narc</color> - For maintaining the automatic Jenkins build-bot.
<color_yellow>Rivet-the-Zombie</color> - For merging a PR a day.
<color_yellow>BevapDin</color> - For code reviews and refactoring efforts.
@@ -21,8 +45,72 @@
<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_white>Main Developers (<color_cyan>0.D</color>):</color>
<color_yellow>KevinGranade</color>, <color_yellow>Rivet-the-Zombie</color>, <color_yellow>BevapDin</color>, <color_yellow>Coolthulu</color>, <color_yellow>i2amroy</color>
<color_white>Special thanks to:</color>
<color_yellow>Narc</color> - For setting up the automatic Jenkins build-bot.
<color_yellow>Acidia</color> - For wonderful NPC, Quest and Location contributions.
<color_yellow>Wuzzy</color> and <color_yellow>VlasovVitaly</color> - For herculean translation efforts.
<color_yellow>HuXTUS</color> - For a huge amount of amazing content.
******************************************************************************
<color_white>Main Developers (<color_cyan>0.C</color>):</color>
<color_yellow>KevinGranade</color>, <color_yellow>Rivet-the-Zombie</color>, <color_yellow>KA101</color>, <color_yellow>BevapDin</color>, <color_yellow>Coolthulu</color>, <color_yellow>i2amroy</color>
<color_white>Special thanks to (<color_cyan>0.C</color>):</color>
<color_yellow>Narc</color> - For setting up the automatic Jenkins build-bot.
<color_yellow>Acidia</color> - For wonderful NPC, Quest and Location contributions.
<color_yellow>Wuzzy</color> and <color_yellow>VlasovVitaly</color> - For herculean translation efforts.
<color_yellow>HuXTUS</color> - For a huge amount of amazing content.
******************************************************************************
<color_white>Main Developers (<color_cyan>0.B</color>):</color>
<color_yellow>KevinGranade</color>, <color_yellow>Rivet-the-Zombie</color>, <color_yellow>KA101</color>, <color_yellow>BevapDin</color>
<color_white>Special thanks to (<color_cyan>0.B</color>):</color>
<color_yellow>Narc</color> - For setting up the automatic Jenkins build-bot.
<color_yellow>Acidia</color> - For wonderful NPC, Quest and Location contributions.
<color_yellow>Wuzzy</color> and <color_yellow>VlasovVitaly</color> - For herculean translation efforts.
<color_yellow>i2amroy</color> - For several large infrastructural overhauls.
<color_yellow>HuXTUS</color> - For a huge amount of amazing content.
******************************************************************************
<color_white>Main Developers (<color_cyan>0.A</color>):</color>
<color_yellow>KevinGranade</color>, <color_yellow>i2amroy</color>, <color_yellow>Rivet-the-Zombie</color>, <color_yellow>KA101</color>, <color_yellow>BevapDin</color>
<color_white>Special thanks to (<color_cyan>0.A</color>):</color>
<color_yellow>TheDarklingWolf</color> - For creating Cataclysm:DDA as we know it.
<color_yellow>Narc</color> - For setting up the automatic Jenkins build-bot.
<color_yellow>BevapDin</color> - For tireless bugfixing efforts.
<color_yellow>dwarfkoala</color> - For a plethora of bug triage.
<color_yellow>Ill-kun</color> - For countless UI cleanups.
******************************************************************************
<color_white>Main Developers (<color_cyan>0.9</color>):</color>
<color_yellow>KevinGranade</color>, <color_yellow>GalenEvil</color>, <color_yellow>i2amroy</color>, <color_yellow>AtomicDryad</color>, <color_yellow>Ianestrachan</color>
<color_white>Special thanks to (<color_cyan>0.9</color>):</color>
<color_yellow>TheDarklingWolf</color> - For creating Cataclysm:DDA as we know it
<color_yellow>Narc</color> - For setting up the automatic Jenkins build-bot
<color_yellow>yobbobanana</color> - For working as liason between translators and github
<color_yellow>Angela 'Rivet' Graves</color>, Constant Creator of Cataclysmic Content
******************************************************************************
<color_white>Main Developers (<color_cyan>0.8</color>):</color>
<color_yellow>Kevingranade</color>, <color_yellow>GalenEvil</color>, <color_yellow>i2amroy</color>, <color_yellow>AtomicDryad</color>, <color_yellow>Ozone</color>
<color_white>Special thanks to (<color_cyan>0.8</color>):</color>
<color_yellow>TheDarklingWolf</color> - For creating Cataclysm:DDA as we know it
<color_yellow>Narc</color> - For setting up the automatic Jenkins build-bot
<color_yellow>yobbobanana</color> - For working as liason between translators and github
+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>
+96 -11
View File
@@ -1,28 +1,113 @@
# 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_white>Главные разработчики:</color>
<color_yellow>mlangsdorf</color> - транспорт, лодки, лагеря и руководства по созданию модификаций.
<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>
******************************************************************************
<color_white>Основные разработчики (<color_cyan>0.E</color>):</color>
<color_yellow>mlangsdorf</color> - Машины, лодки, лагеря и гайды по моддингу.
<color_yellow>I-am-Erk</color> - Ultica, диалоги, NPC и хлам в шкафах.
<color_yellow>KorGgenT</color> - Колдоклизм и кишечные колики.
<color_white>Особая благодарность:</color>
<color_white>Особая благодарность (<color_cyan>0.E</color>):</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>jbytheway</color> - За работу над CI и умение остаивать свою точку зрения.
<color_yellow>Hymore246</color> - За переработку боевых искусств.
<color_yellow>Qrox</color> - За читабельную трассировку в Windows-билдах.
<color_yellow>ZhilkinSerg</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>
<color_white>Основные разработчики (<color_cyan>0.D</color>):</color>
<color_yellow>KevinGranade</color>, <color_yellow>Rivet-the-Zombie</color>, <color_yellow>BevapDin</color>, <color_yellow>Coolthulu</color>, <color_yellow>i2amroy</color>
<color_white>Особая благодарность (<color_cyan>0.D</color>):</color>
<color_yellow>Narc</color> - за настройку Jenkins, автоматической системы сборки.
<color_yellow>Acidia</color> - за замечательный вклад в NPC, квесты и локации.
<color_yellow>Wuzzy</color> and <color_yellow>VlasovVitaly</color> - за титанический труд по переводу.
<color_yellow>HuXTUS</color> - за огромное количество потрясающего контента.
******************************************************************************
<color_white>Основные разработчики (<color_cyan>0.C</color>):</color>
<color_yellow>KevinGranade</color>, <color_yellow>Rivet-the-Zombie</color>, <color_yellow>KA101</color>, <color_yellow>BevapDin</color>, <color_yellow>Coolthulu</color>, <color_yellow>i2amroy</color>
<color_white>Особая благодарность (<color_cyan>0.C</color>):</color>
<color_yellow>Narc</color> - за настройку Jenkins, автоматической системы сборки.
<color_yellow>Acidia</color> - за замечательный вклад в NPC, квесты и локации.
<color_yellow>Wuzzy</color> and <color_yellow>VlasovVitaly</color> - за титанический труд по переводу.
<color_yellow>HuXTUS</color> - за огромное количество потрясающего контента.
******************************************************************************
<color_white>Основные разработчики (<color_cyan>0.B</color>):</color>
<color_yellow>KevinGranade</color>, <color_yellow>Rivet-the-Zombie</color>, <color_yellow>KA101</color>, <color_yellow>BevapDin</color>
<color_white>Особая благодарность (<color_cyan>0.B</color>):</color>
<color_yellow>Narc</color> - за настройку Jenkins, автоматической системы сборки.
<color_yellow>Acidia</color> - за замечательный вклад в NPC, квесты и локации.
<color_yellow>Wuzzy</color> and <color_yellow>VlasovVitaly</color> - за титанический труд по переводу.
<color_yellow>i2amroy</color> - For several large infrastructural overhauls.
<color_yellow>HuXTUS</color> - за огромное количество потрясающего контента.
******************************************************************************
<color_white>Основные разработчики (<color_cyan>0.A</color>):</color>
<color_yellow>KevinGranade</color>, <color_yellow>i2amroy</color>, <color_yellow>Rivet-the-Zombie</color>, <color_yellow>KA101</color>, <color_yellow>BevapDin</color>
<color_white>Особая благодарность (<color_cyan>0.A</color>):</color>
<color_yellow>TheDarklingWolf</color> - For creating Cataclysm:DDA as we know it.
<color_yellow>Narc</color> - For setting up the automatic Jenkins build-bot.
<color_yellow>BevapDin</color> - For tireless bugfixing efforts.
<color_yellow>dwarfkoala</color> - For a plethora of bug triage.
<color_yellow>Ill-kun</color> - For countless UI cleanups.
******************************************************************************
<color_white>Main Developers (<color_cyan>0.9</color>):</color>
<color_yellow>KevinGranade</color>, <color_yellow>GalenEvil</color>, <color_yellow>i2amroy</color>, <color_yellow>AtomicDryad</color>, <color_yellow>Ianestrachan</color>
<color_white>Special thanks to (<color_cyan>0.9</color>):</color>
<color_yellow>TheDarklingWolf</color> - For creating Cataclysm:DDA as we know it
<color_yellow>Narc</color> - For setting up the automatic Jenkins build-bot
<color_yellow>yobbobanana</color> - For working as liason between translators and github
<color_yellow>Angela 'Rivet' Graves</color>, Constant Creator of Cataclysmic Content
******************************************************************************
<color_white>Main Developers (<color_cyan>0.8</color>):</color>
<color_yellow>Kevingranade</color>, <color_yellow>GalenEvil</color>, <color_yellow>i2amroy</color>, <color_yellow>AtomicDryad</color>, <color_yellow>Ozone</color>
<color_white>Special thanks to (<color_cyan>0.8</color>):</color>
<color_yellow>TheDarklingWolf</color> - For creating Cataclysm:DDA as we know it
<color_yellow>Narc</color> - For setting up the automatic Jenkins build-bot
<color_yellow>yobbobanana</color> - For working as liason between translators and github
+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>
+28 -28
View File
@@ -6,7 +6,7 @@
"messages": [
"Cataclysm: Dark Days Ahead is a turn-based survival game set in a post-apocalyptic world. You have survived the original onslaught, but the future looks pretty grim.",
"You must prepare to face the many hardships to come, including dwindling supplies, hostile creatures, and harmful weather. Even among fellow survivors you must stay alert, since someone may be plotting behind your back to take your hard-earned loot.",
"Though one might think of Cataclysm: Dark Days Ahead as a roguelike, it vastly differs from the traditional roguelikes in several ways. Rather than exploring an underground dungeon, with a limited area on each level, you are exploring a truly infinite world, stretching in all four cardinal directions. In this survival game, you will have to find food; you also need to keep yourself hydrated and sleep periodically. It's based on the principle of realism, so expect all hardships you'd expect in life in a survival situation, and at least a dozen more from the eldritch and sci-fi nature of the Cataclysm itself.",
"Though one might think of Cataclysm: Dark Days Ahead as a roguelike, it differs from the traditional roguelikes in several crucial ways. Rather than exploring an underground dungeon, with a limited area on each level, you are exploring a truly infinite world, stretching in all four cardinal directions. In this survival game, you will have to find food, keep yourself hydrated, and also sleep periodically. It's based on the principle of realism, so expect all of the hardships you'd expect in a real-life survival situation, and at least a dozen more from the eldritch and sci-fi nature of the Cataclysm itself.",
"While Cataclysm: Dark Days Ahead has more tasks to keep track of than many other games, the modern setting of the game makes some tasks easier. Firearms, medications, and a wide variety of tools are all available to help you survive."
]
},
@@ -15,12 +15,12 @@
"order": 1,
"name": "<b|B>: Movement",
"messages": [
"Movement is performed using the numpad, or vikeys.",
"Movement is performed using the numpad, the arrow keys, or vikeys.",
"<HELP_DRAW_DIRECTIONS>",
"Each step will take 100 movement points (or more, depending on the terrain); you will then replenish a variable amount of movement points, depending on many factors (press <press_player_data> to see the exact amount).",
"To attempt to hit a monster with your weapon, simply move into it.",
"You may find doors, ('+'); these may be opened with <press_open> or closed with <press_close>. Some doors are locked. Locked doors, windows, and some other obstacles can be destroyed by smashing them (<press_smash>, then choose a direction). Smashing down obstacles is much easier with a good weapon or a strong character.",
"There may be times when you want to move more quickly by holding down a movement key. However, fast movement in this fashion may lead to the player getting into a dangerous situation or even killed before they have a chance to react. Pressing <press_safemode> will toggle \"Safe Mode\". While this is on, any movement will be ignored if new monsters enter the player's view."
"There may be times when you want to move more quickly by holding down a movement key. However, fast movement in this fashion may lead to the player getting into a dangerous situation or even killed before they have a chance to react. Pressing <press_safemode> will toggle \"Safe Mode.\" While this is on, any movement will be ignored if new monsters enter the player's view."
]
},
{
@@ -28,8 +28,8 @@
"order": 2,
"name": "<c|C>: Viewing",
"messages": [
"The player can often see more than can be displayed on the screen at a time. Pressing <press_look> enters \"look around mode\", which allows you to scroll around using the movement keys and view items on the map as well as monsters and their stance toward the character. Pressing <press_listitems> provides a list of nearby visible items, though items shut away in crates, cupboards, refrigerators and the like won't be displayed until you are close enough. Pressing Shift+vikeys (h,j,k,l,y,u,b,n) will scroll the view persistently, allowing you to keep an eye on things as you move around.",
"Places outside of your view but seen previously and still memorized can be visualized, but they will be covered by the \"fog of war\"."
"The player can often see more than can be displayed on the screen at a time. Pressing <press_look> enters \"look around mode,\" which allows you to scroll around using the movement keys and view items on the map as well as monsters and their stance toward the character. Pressing <press_listitems> provides a list of nearby visible items, though items shut away in crates, cupboards, refrigerators and the like won't be displayed until you are close enough. Pressing Shift+vikeys (h,j,k,l,y,u,b,n) will scroll the view persistently, allowing you to keep an eye on things as you move around.",
"Places outside of your view but seen previously and still memorized can be visualized, but they will be covered by the \"fog of war.\""
]
},
{
@@ -37,9 +37,9 @@
"order": 3,
"name": "<d|D>: Hunger, thirst, and sleep",
"messages": [
"As time passes, you will begin to feel hunger and thirst, and your stomach will remind you of that. When this happens, status information will appear in the sidebar. Don't get confused - depending on your condition it will display both how full your stomach is, as well as hunger intensity in relation to your nutrition status. Your body nutrition level is distinct from your current hunger; for example, you may feel full after a big meal, while still being malnourished. And you will still get hungry while being overweight. With regular meals, you may even never get hungry and yet become malnourished, if your caloric intake is too low. In other words, you need to track both your immediate hunger/fullness and the overall nutrition of your whole body.",
"Food takes some time to digest, and water travels faster through your digestive system than does solid food. Sudden overeating and overdrinking may make you feel excessively full, so split your meals. If you starved before, it will take some time to recover your body mass by building up stored calories through regular eating. Overeating for a prolonged period of time leads to obesity. Both sides of the spectrum are penalized. When hunger and thirst progress to severe levels, you will also suffer penalties. Thirst will kill you faster then hunger.",
"You can develop various vitamin deficiencies if you eat poorly. These deficiencies come in stages; for example, you won't go from perfectly good health into a full-blown scurvy in an instant. Any developing and ongoing deficiencies will be reported in the character sheet. Deficiencies will inflict various penalties, but luckily, they are always reversible, and multivitamin pills can help you to correct these deficiencies. You can also ingest too much of any particular vitamin, however, and that can create problems as well. Be sure to have a balanced diet, or at least not a completely atrocious one. You can, and should, examine food items (by pressing <press_examine>) to view their nutritional information.",
"As time passes, you will begin to feel hunger and thirst, and your stomach will remind you of that. When this happens, status information will appear in the sidebar. Don't get confused - depending on your condition, it will display both how full your stomach is, as well as hunger intensity in relation to your nutrition status. Your body nutrition level is distinct from your current hunger: for example, you may feel full after a big meal while still being malnourished, and you will still get hungry while being overweight. With regular meals, you may even never get hungry and yet become malnourished, if your caloric intake is too low. In other words, you need to track both your immediate hunger/fullness and the overall nutrition of your whole body.",
"Food takes some time to digest, and water travels faster through your digestive system than does solid food. Sudden overeating and overdrinking may make you feel excessively full, so split your meals. If you had been starved before, it will take some time to recover your body mass by building up stored calories through regular eating. Overeating for a prolonged period of time leads to obesity. Both sides of the spectrum are penalized. When hunger and thirst progress to severe levels, you will also suffer penalties. Thirst will kill you faster than hunger.",
"You can develop various vitamin deficiencies if you eat poorly. These deficiencies come in stages; for example, you won't go from perfectly good health into full-blown scurvy in an instant. Any developing and ongoing deficiencies will be reported in the character sheet. Deficiencies will inflict various penalties, but luckily, they are always reversible, and multivitamin pills can help you to correct these deficiencies. You can also ingest too much of any particular vitamin, however, and that can create problems as well. Be sure to have a balanced diet, or at least not a completely atrocious one. You can, and should, examine food items (by pressing <press_examine>) to view their nutritional information.",
"Eating and drinking poorly will affect your health. Fast foods, quick snacks and sweet drinks are high in calories, but are a poor choice for a sustainable food source, if you don't want your health to get worse. On the other hand, vegetables, herbal teas, and many other self-prepared meals are good for your health, and should be welcome additions to your diet.",
"Finding food in a city is usually easy; outside of a city, you may have to hunt or forage. After killing an animal, stand over the animal's corpse and butcher it into small chunks of meat by pressing <press_butcher>. You might also be able to forage for edible fruit or vegetables; to do this, find a promising plant and examine it. Likewise, you may have to drink water from a river or another natural source. To collect it, stand in shallow water and press <press_pickup>. You'll need a watertight container to store it. Be forewarned that most sources of water aren't trustworthy, and may yield disease-carrying water. To make sure it's healthy, purify the water by boiling it or using a water purifier before drinking.",
"Every dozen or so hours, you'll find yourself growing sleepy. If you do not sleep by pressing <press_sleep>, you'll start suffering stat and movement penalties. You may not always fall asleep right away. Sleeping indoors, especially on a bed, will help. If that's not enough, sleeping pills may be of use. While sleeping, you'll slowly replenish lost hit points. You'll also be vulnerable to attack, so try to find a safe place to sleep, or set traps for unwary intruders."
@@ -50,7 +50,7 @@
"order": 4,
"name": "<e|E>: Pain and stimulants",
"messages": [
"When you take damage from almost any source, you'll start to feel pain. Pain slows you down and reduces your stats, and finding a way to manage pain is an early imperative. The most common is drugs: aspirin, codeine, tramadol, oxycodone, and more are all great options. Be aware that while under the influence of many painkillers, the physiological side effects may slow you or reduce your stats.",
"When you take damage from almost any source, you'll start to feel pain. Pain slows you down and reduces your stats, and finding a way to manage pain is an early imperative. The most common is drugs: aspirin, codeine, tramadol, oxycodone, and more are all great options. Be aware that while under the influence of many painkillers, the physiological side effects may slow you down or reduce your stats.",
"Note that most painkillers take a little while to kick in. If you take some oxycodone and don't notice the effects right away, don't start taking more - you may overdose and die!",
"Pain will also disappear with time, so if drugs aren't available and you're in a lot of pain, it may be wise to find a safe spot and simply rest for an extended period of time.",
"Stimulants are another common class of drugs. Stimulants provide you with a temporary rush of energy, increasing your movement speed and many stats (most notably intelligence), making them useful study aids. There are two drawbacks to stimulants: they make it more difficult to sleep and, more importantly, most are highly addictive. Stimulants range from the caffeine rush of cola to the more intense high of Adderall and methamphetamine.",
@@ -65,10 +65,10 @@
"messages": [
"When you take damage, it will change the status of the affected body part, as shown in the sidebar. Its overall wellness is represented by a series of bars that will deplete and change color the more damage you take. If the accumulated damage is more than the body part can suffer, it will break. If that happens to a critical body part (i.e., your torso or head), you will die. For other body parts, it means broken bones, significant penalties, and a long process of healing - after placing the affected limb in a splint.",
"Normal damage heals with time. You heal more during a good sleep, but wounds also heal a bit while you are awake.",
"You need to treat your wounds properly, because untreated wounds heal very slowly. First, you need to bandage your wounds, and, if possible, disinfect them as well. This will set conditions for proper healing and will result in faster recovery. You can make makeshift bandages if you have the skill, and there are a few options to replenish your stock of disinfectant. But remember to always treat your wounds as much as you can, as this is the proper way to get them healed.",
"You can get bitten if a zombie grabs you. Bite wounds can be deep and infected. If that happens, the status bar of affected body part will change color to blue. This means you need to disinfect it as soon as possible to clean the wound and prevent serious infection. If there is no chance of getting disinfectant in the immediate aftermath, you may try the more drastic method of cauterizing the wound, but it often worsens its state instead of helping. If you leave it be, the affected body part will develop a serious infection, and its status bar color will change to green. At this stage, it is too late to disinfect the wound, and you need antibiotics to fight it. Your body will fight the infection by itself, and regular antibiotic intake may keep you alive long enough for that to happen. You have to wait it out, in the hope that you will not die in the process.",
"You need to treat your wounds properly, because untreated wounds heal very slowly. First, you need to bandage your wounds, and, if possible, disinfect them as well. This will set conditions for proper healing and will result in faster recovery. You can make makeshift bandages if you have the skill, and there are a few options to replenish your stock of disinfectant. Remember to always treat your wounds as much as you can, as this is the proper way to get them healed.",
"You can get bitten if a zombie grabs you. Bite wounds can be deep; this means that it is infected. If that happens, the status bar of affected body part will change color to blue. This means you need to disinfect it as soon as possible to clean the wound and prevent serious infection. If there is no chance of getting disinfectant in the immediate aftermath, you may try the more drastic method of cauterizing the wound, but it often worsens its state instead of helping. If you leave it be, the affected body part will develop a serious infection, and its status bar color will change to green. At this stage, it is too late to disinfect the wound, and you need antibiotics to fight it. Your body will fight the infection by itself, and regular antibiotic intake may keep you alive long enough for that to happen. You have to wait it out, in the hope that you will not die in the process.",
"If you are bleeding, the status bar of the wounded part turns red. The affected body part takes damage as long as it bleeding. The simplest way to stop bleeding is to use a bandage, and there are additional medical items dedicated to stopping hemorrhage.",
"You may be affected by one of many medical conditions and maladies throughout the game. In that case, you may want to seek proper medication, if one exists for the affliction you suffer. There are many medications beside the ones already mentioned, some of which have some extra effects that you might utilize even in a way not originally intended. With some skill you can also try natural medicine, as many herbs have more or less beneficial effects, and if you are a seasoned chemist you can synthesize your own drugs."
"You may be affected by one of many additional medical conditions and maladies throughout the game. In that case, you may want to seek proper medication, if one exists for the affliction you suffer. There are many medications beside the ones already mentioned, some of which have some extra effects that you might utilize even in a way not originally intended. With some skill you can also try natural medicine, as many herbs have more or less beneficial effects, and if you are a seasoned chemist you can synthesize your own drugs."
]
},
{
@@ -89,7 +89,7 @@
"There are lots of options for increasing morale: reading an entertaining book, eating delicious food, listening to music, and taking recreational drugs are but a few options. However, most morale-boosting activities can only elevate your mood to a certain level before they grow boring.",
"There are also lots of ways for your morale to decrease, beyond its natural decay toward its normal level. Eating disgusting food, reading a boring technical book, killing a friendly NPC, or going through drug withdrawal are some prominent examples.",
"Low morale will make you sluggish and unmotivated. If your morale drops very low, you won't be able to perform crafting at all. If you become sufficiently depressed, you will suffer stat penalties. Very high morale fills you with gusto and energy, and you will find yourself moving faster. At extremely high levels, you will receive stat bonuses.",
"Morale is also responsible for ensuring you can learn effectively, via a mechanic referred to as 'focus'. Your focus level is a measure of how effectively you can learn. The natural level is 100, which indicates normal learning potential. Higher or lower focus levels make it easier or harder to learn from practical experience.",
"Morale is also responsible for ensuring you can learn effectively, via a mechanic referred to as 'focus.' Your focus level is a measure of how effectively you can learn. The natural level is 100, which indicates normal learning potential. Higher or lower focus levels make it easier or harder to learn from practical experience.",
"Your focus level has a natural set point that it will trend toward. When your focus is much lower - or higher - than this set point, it will change faster than when it is near the set point. Having high morale will raise the set point, and having low morale will lower the set point. Pain is also factored into the set point calculation - it's harder to learn when you're in pain.",
"Your focus is also lowered by certain activities. Training your skills through real-world practice lowers your focus gradually, by an amount that depends on your current level of focus (higher focus means larger decreases, as well as improved learning). Training your skills by reading books decreases your focus rapidly, by giving a significant penalty to the set point of your focus.",
"You can disable a skill in the Player Info Menu (press <press_player_data>) if you don't want to practice it, and it will prevent focus drain while performing relevant actions, but you will not progress in that skill while it's disabled."
@@ -100,7 +100,7 @@
"order": 8,
"name": "<i|I>: Radioactivity and mutation",
"messages": [
"Though it is relatively rare, certain areas of the world may be contaminated with radiation. It will gradually accumulate in your body, weakening you more and more. While in radiation-free areas, your radiation level will slowly decrease; taking Prussian blue tablets will help speed this process. Get yourself a measuring device, as radiation is invisible and you may not know that you are under its influence until it results in radiation sickness.",
"Though it is relatively rare, certain areas of the world may be contaminated with radiation. It will gradually accumulate in your body, weakening you more and more. While in radiation-free areas, your radiation level will slowly decrease; taking Prussian blue tablets will help speed this process. Get yourself a measuring device, as radiation is invisible, and you may not know that you are under its influence until it results in radiation sickness.",
"If you become very irradiated, you may develop mutations. Most of the time, these mutations will be negative; however, many are beneficial, and others have both positive and negative effects. Your mutations may change your play style considerably. It is possible to find substances that will remove mutations, though these are extremely rare.",
"There are various mutagenic substances, and consuming (or injecting) them will grant mutations. However, the process taxes your body significantly, and can be addictive. With enough mutations and certain conditions being met, you will permanently transcend your humanity into a wholly different life-form."
]
@@ -112,9 +112,9 @@
"messages": [
"Bionics are biomechanical upgrades to your body. While many are simply 'built-in' versions of items you would otherwise have to carry, some bionics have unique effects that are otherwise unobtainable. Some bionics are constantly working, whereas others need to be toggled on and off as needed.",
"Most bionics require a source of power, and you will need an internal battery to store energy for them. Your current amount of energy is displayed in the sidebar right below your health. Replenishing energy can be done in a variety of ways, but all require the installation of a special bionic just for that purpose.",
"Installation of a bionic is only possible using a specialized medical apparatus, ideally operated by a trained professional. Using machinery to manipulate bionics requires high levels of Intelligence, first aid, computers, and electronics. Beware, though: a failure may cripple you! Many bionic modules are difficult to find, but may be purchased from certain wandering vagabonds for a very high price, or acquired by skillful dissection of corpses of deceased bionic users (including zombies). Bionic modules obtained this way may require extra preparation to become more safely usable.",
"Installation of a bionic is only possible using a specialized medical apparatus, ideally operated by a trained professional. Using machinery to manipulate bionics requires high levels of Intelligence, first aid, computers, and electronics. Beware, though: a failure may cripple you! Many bionic modules are difficult to find, but may be purchased from certain wandering vagabonds for a very high price, or acquired by skillful dissection of corpses of deceased bionic users (including zombies). Bionic modules obtained this way may require extra preparation to become safely usable.",
"Any bionic can be removed from your body, but this process may be even harder - and thus riskier - than the initial installation. Both installation and removal are non-trivial surgical procedures, and therefore require anesthesia.",
"For lone survivors, the standard choice for installing or uninstalling bionics is an Autodoc. Usually, you can find one in a hospital or clinic. All Autodoc procedures require an anesthetic kit. However, you can bypass this restriction if you find a way to completely negate pain. Don't even try without proper anesthesia - normal drugs won't help.",
"For lone survivors, the standard choice for installing or uninstalling bionics is an Autodoc. Usually, you can find one in a hospital or clinic. All Autodoc procedures require an anesthetic kit. Don't even try without proper anesthesia - normal drugs won't help. However, you can bypass this restriction if you find a way to completely negate pain.",
"Take note that bionic installation or removal require narcosis, immobilization of the patient, and only then the operation - which may take hours. So you have to make sure that you will be safe during this process."
]
},
@@ -133,8 +133,8 @@
"-> Electronics lets you make a wide variety of tools with intricate uses.",
"In addition to the primary crafting skills, other skills may be necessary to create certain items. Traps, Marksmanship, and First Aid are all required for certain items.",
"Crafting an item with high difficulty may fail and possibly waste some materials. You should gather and prepare spare material, just in case.",
"Crafting very large/heavy items or batches of items is best done at a workbench of some kind. You could use any ordinary table, or build your own out of metal to handle heavier loads. Using a workbench or other furniture for crafting is beneficial for the added comfort, thus making the process faster.",
"If for any reason the crafting process is interrupted, the progress is wrapped in a special item representing the craft in making. You may use it to resume crafting at any point.",
"Crafting very large/heavy items or batches of items is best done at a workbench of some kind. You could use any ordinary table, or build your own out of metal to handle heavier loads. Using a workbench or other furniture for crafting is more comfortable; therefore, crafting is faster.",
"If the crafting process is interrupted for any reason, the progress is wrapped in a special item representing the craft being made. You may use it to resume crafting at any point.",
"Batch crafting in most cases means saved time, and your companions can also help if they know the ropes."
]
},
@@ -157,8 +157,8 @@
"messages": [
"There is a wide variety of items available for your use. You may find them lying on the ground; if so, simply press <press_pickup> to pick up items on the same tile. Some items are found inside a container, which may be drawn as a { with a blue background. Pressing <press_examine>, then a direction key, will allow you to examine these containers and loot their contents.",
"Pressing <press_compare> opens a comparison menu, where you can see two items side-by-side with their attributes color-coded to indicate which is superior. You can also access the item comparison menu by pressing C after <press_listitems> to open the \"View Nearby Items\" menu and selecting an item.",
"Almost any item may be used as a melee weapon, though some are better than others. You can check the melee attributes of an item you're carrying by pressing <press_inventory> to enter your inventory, then pressing the letter of the item. There are 5 melee values: to-hit bonus (or penalty), moves per attack, and bash, cut, and pierce damage. The to-hit bonus increases the chance of an attack connecting with a monster and the chance of a successful attack becoming a critical hit. Moves per attack represents how many moves it takes to attack with the weapon, with 100 moves passing every second. Bash damage can stun a monster, preventing it from counter-attacking, but is governed by your strength. Cut damage is usually greater than bash damage, but many monsters have natural armor against it. Pierce damage usually penetrates armor better than cut damage, but does less damage overall, especially if you do not have a lot of skill in piercing weapons. It, too, may be reduced by a monster's natural armor. The typical damage per second values are for your survivor and account for moves per attack, encumbrance, missed strikes, weapon skill, critical hits, and target armor. The 'Best' value is against an unarmored target with no Dodge skill. The 'Vs. Agile' value is against an unarmored target with a high Dodge skill. The 'Vs. Armored' value is against a target with more than 15 Bash and 20 Cut resistance but no Dodge skill. These are typical values to let you assess the effectiveness of weapons; the amount of damage you actually inflict will vary depending on the situation.",
"To wield an item as a weapon, press <press_wield>, then the appropriate letter. Wielding the item you are currently wielding will unwield it, leaving your hands empty. A wielded weapon will not contribute to your volume carried, so holding a large item in your hands may be a good option for travel. When unwielding your weapon, it will go back in your inventory, or may be dropped on the ground if there is no space.",
"Almost any item may be used as a melee weapon, though some are better than others. You can check the melee attributes of an item you're carrying by pressing <press_inventory> to enter your inventory, then pressing the letter of the item. There are 5 melee values: to-hit bonus (or penalty), moves per attack, and bash, cut, and pierce damage. The to-hit bonus adjusts the chance of an attack connecting with a monster and the chance of a successful attack becoming a critical hit. Moves per attack represents how many moves it takes to attack with the weapon, with 100 moves equaling one second. Bash damage can stun a monster, preventing it from counter-attacking, but is governed by your strength. Cut damage is usually greater than bash damage, but many monsters have natural armor against it. Pierce damage usually penetrates armor better than cut damage, but does less damage overall, especially if you do not have a lot of skill in piercing weapons. It, too, may be reduced by a monster's natural armor. The typical damage per second values are for your survivor and account for moves per attack, encumbrance, missed strikes, weapon skill, critical hits, and target armor. The 'Best' value is against an unarmored target with no Dodge skill. The 'Vs. Agile' value is against an unarmored target with a high Dodge skill. The 'Vs. Armored' value is against a target with more than 15 Bash and 20 Cut resistance but no Dodge skill. These are typical values to let you assess the effectiveness of weapons; the amount of damage you actually inflict will vary depending on the situation.",
"To wield an item as a weapon, press <press_wield>, then the appropriate letter. Wielding the item you are currently wielding will unwield it, leaving your hands empty. A wielded weapon will not contribute to your volume carried, so holding a large item in your hands may be a good option for travel. When unwielding your weapon, you will be given a choice of what to do with it.",
"To wear a piece of clothing, press <press_wear>, then the appropriate letter. Armor reduces damage, and can help you resist things like smoke. To take off an item, press <press_take_off>, then the appropriate letter. Clothing and armor are worn in distinct layers, and provide different coverage, protection and warmth. Each piece has its own encumbrance, and wearing too much on any given layer can significantly hamper your movement and other abilities, especially during combat. You can view and sort worn items by pressing <press_sort_armor>.",
"Your clothing can sit in one of five layers on your body: next-to-skin, standard, waist, over, and belted. You can wear one item from each layer on a body part without incurring an encumbrance penalty for too many worn items. Any items beyond the first on each layer add the encumbrance of the additional article(s) of clothing to the body part's encumbrance. The layering penalty applies a minimum of 2 and a maximum of 10 encumbrance per article of clothing.",
"For example, on her torso, a character might wear a leather corset (next-to-skin), a leather touring suit (standard), a trenchcoat (over), and a survivor's runner pack (belted). Her encumbrance penalty is 0. If she put on a tank top it would conflict with the leather touring suit and add the minimum encumbrance penalty of 2.",
@@ -201,15 +201,15 @@
"order": 15,
"name": "<p|P>: Survival tips",
"messages": [
"THe hierarchy of needs for survival in most cases is as follows: shelter, fire, water, food. The rest is the process of trying to answer a question: What would you do in a survival situation?",
"The first thing to do, when you are out of immediate danger, is checking your starting location for useful items. Your initial storage is limited, and a backpack, trenchcoat, or other storage medium will let you carry a lot more. Finding a weapon is important, but not a first priority; frying pans, butcher knives, and more are common in houses, and hardware stores may have others, as well as useful tools. Initially, save any guns you find as a last resort: ammo is scarce, while zombies are plenty, and unwanted attention may be more you can handle.",
"The hierarchy of needs for survival in most cases is as follows: shelter, fire, water, food. The rest is the process of trying to answer a question: What would you do in a survival situation?",
"The first thing to do, when you are out of immediate danger, is to check your starting location for useful items. Your initial storage is limited, and a backpack, trenchcoat, or other storage medium will let you carry a lot more. Finding a weapon is important, but not a first priority; frying pans, butcher knives, and more are common in houses, and hardware stores may have others, as well as useful tools. Initially, save any guns you find as a last resort: ammo is scarce, while zombies are plenty, and unwanted attention may be more than you can handle.",
"It's also important to carry a few medications; painkillers are a must-have, and drugs such as cigarettes will make your life easier (but beware of addiction). Leave the city as soon as you have a good stockpile of equipment: while their population density makes cities important places to find food, ammunition, and many other goods, the high concentration of zombies makes them a deathtrap for the unprepared survivor.",
"Avoid combat whenever you can. Run if you have to; but control your stamina, as zombies, unlike yourself, are inexhaustible. Combat is always risky, and sometimes, one wrong step may be your last. Therefore, in most cases you gain nothing from combat unless you are equipped for it and killing your enemy will help you achieve something.",
"Avoid combat whenever you can. Run if you have to, but mind your stamina; zombies, unlike yourself, are inexhaustible. Combat is always risky, and sometimes, one wrong step may be your last. Therefore, in most cases you gain nothing from combat unless you are equipped for it and killing your enemy will help you achieve something.",
"Combat is much easier if you can fight just one monster at a time. You can sometimes kite singled-out zombies, drawing them to a place of your choosing. Use doorways as a choke point or stand behind a window and strike as the zombies slowly climb through. Be wary - in numbers, they will push through anyway. Never be afraid to just run if you can outpace your enemies. Irregular terrain, like forests, may help you lose monsters.",
"Using firearms is the easiest way to kill an enemy, but the sound will attract unwanted attention. Save the guns for emergencies, and melee when you can.",
"If you need to protect yourself from acid, look for clothing made of plastic, Kevlar, leather, or cloth, in decreasing order of effectiveness. So, while leather and Kevlar will protect you from active enemies, a hazmat suit and rubber boots will make you nigh immune to acid damage. Items made of glass, ceramics, diamond, or precious metals will be totally immune to acid.",
"When looting, try to fill your inventory as much as possible without being overloaded. You never know when you might need an item, most are good to sell, and you can easily drop unwanted items on the floor. But don't go looting empty-handed; you never know what might happen, so have your most crucial survival items with you.",
"Keep an eye on the weather. Wind and humidity will exacerbate dire conditions, so seek shelter if you're unable to withstand them. Staying dry is important, especially if temperatures are so low that they would cause frostbite. Use a towel to dry yourself if you are wet from the rain. If you're having trouble staying warm overnight, make a pile of clothing on the floor to sleep on. Finding a pillow and a blanket for your bed is always good for the quality of your sleep. If you can't find those, improvise; even a chair in a basement is better then a patch of wet ground in a field. Finding or making a shelter with a place to sleep is very important for your survival.",
"Keep an eye on the weather. Wind and humidity will exacerbate dire conditions, so seek shelter if you're unable to withstand them. Staying dry is important, especially if temperatures are so low that they might cause frostbite. Use a towel to dry yourself if you are wet from the rain. If you're having trouble staying warm overnight, make a pile of clothing on the floor to sleep on. Finding a pillow and a blanket for your bed is always good for the quality of your sleep. If you can't find those, improvise; even a chair in a basement is better then a patch of wet ground in a field. Finding or making a shelter with a place to sleep is very important for your survival.",
"Winter is harsh. Liquids and food may freeze, and you may need to defrost them using a cooking appliance. Placing them by a lit fire might also help. Basements are warmer in winter and cooler in summer, so they are frequently good places to store your excess food. Most food decays with time, and that process can be sped up or slowed down by the temperature. Frozen food will not rot. It you are able to bring a freezer or a fridge back to life, it will help you in the long run. If these are out of your reach, think about constructing a root cellar.",
"You may preserve food in many other ways, as well; for example, by using a smoking rack, or cooking it into a meal that has a longer shelf life."
]
@@ -221,7 +221,7 @@
"messages": [
"You control vehicles using the numpad, or vikeys. Note, however, that you control the vehicle's controls, rather than controlling the vehicle directly.",
"<HELP_DRAW_DIRECTIONS>",
"In order to assume control of a vehicle, get to a location with working \"vehicle controls\" and a \"seat\", then press <press_control_vehicle>. Once you are in control, <press_UP> accelerates, <press_DOWN> slows or reverses, & <press_LEFT> & <press_RIGHT> turn left or right. Diagonals adjust course and speed. You default to cruise control, so the gas/brake adjust the speed which the vehicle will attempt to maintain.",
"In order to assume control of a vehicle, get to a location with working \"vehicle controls\" and a \"seat,\" then press <press_control_vehicle>. Once you are in control, <press_UP> accelerates, <press_DOWN> slows or reverses, & <press_LEFT> & <press_RIGHT> turn left or right. Diagonals adjust course and speed. You default to cruise control, so the gas/brake adjust the speed which the vehicle will attempt to maintain.",
"10-30 MPH, or 16-48 KPH, is a good speed for beginning drivers, who tend to fumble the controls. As your Driving skill improves, you will fumble less and less. To simply maintain course and speed, hit <press_pause>.",
"It's a good idea to pull the handbrake - \"s\" - when parking, just to be safe. If you want to get out, hit the lights, toggle cruise control, turn the engine on or off, or otherwise use the vehicle controls, press <press_control_vehicle> to bring up the \"Vehicle Controls\" menu, which has options for things you'd do from the driver's seat.",
"Examining (<press_examine>) a vehicle brings up the vehicle interaction window. The left pane shows a top-down view of your vehicle and each part of it. The middle pane shows a summary of the vehicle's engines, batteries, storage tanks, weapons, and seating. The right panel is context-sensitive, but normally has descriptions of the vehicle parts in the tile highlighted in the vehicle view on the left.",
@@ -236,7 +236,7 @@
"BOATS AND AMPHIBIOUS VEHICLES",
"You can use boat hull parts to create boats or amphibious vehicles that can move between water and land.",
"Each boat hull you add to your vehicle increases the height of the vehicle's watertight hull. If the height of the watertight hull is less than the vehicle's draft, then water will flow into your vehicle, and it will sink and be destroyed if it goes into deep water. If your vehicle's draft is less than the height of the watertight hull, your vehicle will not take on water and will not sink in deep water.",
"Draft is determined by the length and width of your vehicle, the mass of your vehicle, and the percentage of the vehicle's underbody covered in boat hulls. In general, a vehicle should be able to float if its mass in tons is less than a quarter of the product of its length and width, provided that the watertight hull is high enough. A boat that is 5 tiles wide and 9 tiles long has a good chance of floating if all of its underbody is covered in boat boards and it weighs less than 10 tons.",
"Draft is determined by the length and width of your vehicle, the mass of your vehicle, and the percentage of the vehicle's underbody covered in boat hulls. In general, a vehicle should be able to float if its mass in tons is less than a quarter of the product of its length and width, provided that the watertight hull is high enough. A boat that is 5 tiles wide and 9 tiles long has a good chance of floating if its entire underbody is covered in boat boards and it weighs less than 10 tons.",
"Increased draft increases water drag, and water drag reduces a vehicle's speed in water. If you want your boat to go fast, make it as light as possible.",
"Amphibious vehicles have both wheels and boat hulls. As long as your amphibious vehicle has enough wheels on land and enough boat hulls to not sink in deep water, you can freely transition from land to water. However, most amphibious vehicles are much slower in water than they are on land, so be careful when entering water to not leave your cruise control speed above your vehicle's safe water speed or you can burn out your engine!"
]
@@ -248,7 +248,7 @@
"messages": [
"~ Liquid\n%% Food\n! Medication\nThese are all consumed by using <press_eat>. They may provide a certain amount of nutrition, may quench your thirst, may be a stimulant or a depressant, and may provide (or reduce!) morale. There may also be more subtle effects.",
"/ Large weapon\n; Small weapon or tool\n, Tiny item\nThese are all generic items, useful only to be wielded as a weapon. However, some have special uses; they will show up under the TOOLS section in your inventory. Press <press_apply> to use these.",
") Container\nThese items may hold other items. Some are passable weapons. Many will be listed with their contents, e.g. \"plastic bottle > water\". Those containing comestibles may be eaten with <press_eat>; this may leave an empty container.",
") Container\nThese items may hold other items. Some are passable weapons. Many will be listed with their contents, e.g. \"plastic bottle > water.\" Those containing comestibles may be eaten with <press_eat>; this may leave an empty container.",
"[ Clothing\nThis may be worn with the <press_wear> key or removed with the <press_take_off> key. It may cover one or more body parts; you can wear multiple articles of clothing on any given body part, but this will encumber you severely. Each article of clothing may provide storage space, warmth, encumbrance, and resistance to bashing and/or cutting attacks. Some may protect against environmental effects.",
"( Firearm\nThis weapon may be loaded with ammunition with <press_reload>, unloaded with <press_unload>, and fired with <press_fire>. Some have automatic fire, which may be used with <press_select_fire_mode> at a penalty to accuracy. The color corresponds to the type; handguns are gray, shotguns are red, submachine guns are cyan, rifles are brown, assault rifles are blue, and heavy machine guns are light red. Each has a dispersion rating, a bonus to damage, a rate of fire, and a maximum load. Note that, while most firearms load fully in one action, shotguns must be loaded one shell at a time.",
"= Ammunition\nAmmunition is worthless without a gun to load it into. Generally, there are several variants for any particular caliber. Ammunition has damage, dispersion, and range ratings, as well as an armor-piercing value.",
@@ -308,7 +308,7 @@
"Q: What is Safe Mode, and why does it prevent me from moving?\nA: Safe Mode is a way to guarantee that you won't die by holding a movement key down. When a monster comes into view, your movement will be ignored until Safe Mode is turned off with the <press_safemode> key. This ensures that the sudden appearance of a monster won't catch you off guard.",
"Q: It seems like everything I eat makes me sick! What's wrong?\nA: Lots of the food found in towns is perishable and will only last a few days after the start of a new game. The electricity went out several days ago, so fruit, milk, and similar foods are the first to go bad. After the first couple of days, you should switch to canned food, jerky, and hunting. Also, you should make sure to cook any food and purify any water you come across, as it may contain parasites or otherwise be unsafe.",
"Q: How can I remove boards from boarded-up windows and doors?\nA: Use a hammer and choose the direction of the boarded-up window or door to remove the boards.",
"Q: The game just told me to quit, and other weird stuff is happening.\nA: You have the Schizophrenic trait, which might make the game seem buggy.",
"Q: The game just told me to quit, and other weird stuff is happening.\nA: You have the \"Kaluptic Psychosis\" trait, which might make the game seem buggy.",
"Q: How can I prevent monsters from attacking me while I sleep?\nA: Find a safe place to sleep; for example, in a cleared building far from the front door. Set traps if you have them, or build a fire to scare off wild animals.",
"Q: Why do I always sink when I try to swim?\nA: Your swimming ability is reduced greatly by the weight you are carrying, and is also adversely affected by most clothing you wear. Until you reach a high level of the swimming skill, you'll need to drop your equipment and remove your clothing to swim, making it a last-ditch escape plan. Diving gear may significantly help you in swimming and diving.",
"Q: How can I cure a fungal infection?\nA: The Blood Filter bionic and some antifungal chemicals can cure fungal infection. Antifungal chemicals to cure the fungal infection can either be found as random loot or made from other ingredients.",
+323 -23
View File
@@ -46,7 +46,78 @@
"bash_protec": [ [ "arm_l", 3 ], [ "arm_r", 3 ] ],
"cut_protec": [ [ "arm_l", 3 ], [ "arm_r", 3 ] ],
"bullet_protec": [ [ "arm_l", 3 ], [ "arm_r", 3 ] ],
"flags": [ "BIONIC_NPC_USABLE", "BIONIC_SHOCKPROOF" ]
"flags": [ "BIONIC_NPC_USABLE", "BIONIC_SHOCKPROOF" ],
"mutation_conflicts": [
"THICKSKIN",
"THINSKIN",
"ALBINO",
"SKIN_ROUGH",
"M_SKIN",
"M_SKIN2",
"M_SKIN3",
"SCALES",
"THICK_SCALES",
"SLEEK_SCALES",
"FEATHERS",
"DOWN",
"LIGHTFUR",
"FUR",
"URSINE_FUR",
"LUPINE_FUR",
"FELINE_FUR",
"LYNX_FUR",
"CHITIN",
"CHITIN2",
"CHITIN3",
"CHITIN_FUR",
"CHITIN_FUR2",
"CHITIN_FUR3",
"CF_HAIR",
"SPINES",
"QUILLS",
"BARBS",
"PLANTSKIN",
"BARK",
"THORNS",
"LEAVES",
"LEAVES2",
"LEAVES3",
"SLIMY",
"VISCOUS",
"AMORPHOUS",
"BENDY1",
"BENDY2",
"BENDY3",
"WINGS_BIRD",
"WINGS_INSECT",
"LARGE",
"LARGE_OK",
"HUGE",
"HUGE_OK",
"SMALL",
"SMALL2",
"SMALL_OK",
"WINGS_STUB",
"WINGS_BAT",
"WINGS_BUTTERFLY",
"PALE",
"SPOTS",
"SUNBURN",
"SORES",
"CHLOROMORPH",
"ARM_FEATHERS",
"INSECT_ARMS",
"INSECT_ARMS_OK",
"ARACHNID_ARMS",
"ARACHNID_ARMS_OK",
"ARM_TENTACLES",
"ARM_TENTACLES_4",
"ARM_TENTACLES_8",
"CLAWS_TENTACLES",
"ACIDPROOF",
"TOXICFLESH",
"FRESHWATEROSMOSIS"
]
},
{
"id": "bio_armor_eyes",
@@ -58,7 +129,7 @@
"bash_protec": [ [ "eyes", 3 ] ],
"cut_protec": [ [ "eyes", 3 ] ],
"bullet_protec": [ [ "eyes", 3 ] ],
"flags": [ "BIONIC_NPC_USABLE", "BIONIC_SHOCKPROOF" ],
"mutation_conflicts": [ "COMPOUND_EYES", "CEPH_VISION", "CEPH_EYES", "EYEBULGE" ],
"social_modifiers": { "intimidate": 10 }
},
{
@@ -70,7 +141,85 @@
"bash_protec": [ [ "head", 3 ] ],
"cut_protec": [ [ "head", 3 ] ],
"bullet_protec": [ [ "head", 3 ] ],
"flags": [ "BIONIC_NPC_USABLE", "BIONIC_SHOCKPROOF" ]
"flags": [ "BIONIC_NPC_USABLE", "BIONIC_SHOCKPROOF" ],
"mutation_conflicts": [
"THICKSKIN",
"THINSKIN",
"ALBINO",
"SKIN_ROUGH",
"M_SKIN",
"M_SKIN2",
"M_SKIN3",
"SCALES",
"THICK_SCALES",
"SLEEK_SCALES",
"FEATHERS",
"DOWN",
"LIGHTFUR",
"FUR",
"URSINE_FUR",
"LUPINE_FUR",
"FELINE_FUR",
"LYNX_FUR",
"CHITIN",
"CHITIN2",
"CHITIN3",
"CHITIN_FUR",
"CHITIN_FUR2",
"CHITIN_FUR3",
"CF_HAIR",
"SPINES",
"QUILLS",
"BARBS",
"PLANTSKIN",
"BARK",
"THORNS",
"LEAVES",
"LEAVES2",
"LEAVES3",
"SLIMY",
"VISCOUS",
"AMORPHOUS",
"LARGE",
"LARGE_OK",
"HUGE",
"HUGE_OK",
"SMALL",
"SMALL2",
"SMALL_OK",
"PALE",
"SPOTS",
"SUNBURN",
"SORES",
"CHLOROMORPH",
"ACIDPROOF",
"TOXICFLESH",
"FRESHWATEROSMOSIS",
"BIOLUM0",
"BIOLUM0_active",
"BIOLUM1",
"BIOLUM1_active",
"BIOLUM2",
"BIOLUM2_active",
"GILLS",
"GILLS_CEPH",
"FLOWERS",
"ROSEBUDS",
"HORNS",
"HORNS_CURLED",
"HORNS_POINTED",
"ANTLERS",
"ANTENNAE",
"HEADBUMPS",
"HAIRROOTS",
"SNOUT",
"MINOTAUR",
"MUZZLE",
"MUZZLE_BEAR",
"MUZZLE_RAT",
"MUZZLE_LONG",
"PROBISCIS"
]
},
{
"id": "bio_armor_legs",
@@ -81,7 +230,76 @@
"bash_protec": [ [ "leg_l", 3 ], [ "leg_r", 3 ] ],
"cut_protec": [ [ "leg_l", 3 ], [ "leg_r", 3 ] ],
"bullet_protec": [ [ "leg_l", 3 ], [ "leg_r", 3 ] ],
"flags": [ "BIONIC_NPC_USABLE", "BIONIC_SHOCKPROOF" ]
"flags": [ "BIONIC_NPC_USABLE", "BIONIC_SHOCKPROOF" ],
"mutation_conflicts": [
"THICKSKIN",
"THINSKIN",
"ALBINO",
"SKIN_ROUGH",
"M_SKIN",
"M_SKIN2",
"M_SKIN3",
"SCALES",
"THICK_SCALES",
"SLEEK_SCALES",
"FEATHERS",
"DOWN",
"LIGHTFUR",
"FUR",
"URSINE_FUR",
"LUPINE_FUR",
"FELINE_FUR",
"LYNX_FUR",
"CHITIN",
"CHITIN2",
"CHITIN3",
"CHITIN_FUR",
"CHITIN_FUR2",
"CHITIN_FUR3",
"CF_HAIR",
"SPINES",
"QUILLS",
"BARBS",
"PLANTSKIN",
"BARK",
"THORNS",
"LEAVES",
"LEAVES2",
"LEAVES3",
"SLIMY",
"VISCOUS",
"AMORPHOUS",
"BENDY1",
"BENDY2",
"BENDY3",
"LARGE",
"LARGE_OK",
"HUGE",
"HUGE_OK",
"SMALL",
"SMALL2",
"SMALL_OK",
"PALE",
"SPOTS",
"SUNBURN",
"SORES",
"CHLOROMORPH",
"ACIDPROOF",
"TOXICFLESH",
"FRESHWATEROSMOSIS",
"TAIL_STUB",
"TAIL_FIN",
"TAIL_LONG",
"TAIL_CATTLE",
"TAIL_RAT",
"TAIL_THICK",
"TAIL_RAPTOR",
"TAIL_FLUFFY",
"TAIL_STING",
"TAIL_CLUB",
"LEG_TENTACLES",
"LEG_TENT_BRACE"
]
},
{
"id": "bio_armor_torso",
@@ -92,7 +310,73 @@
"bash_protec": [ [ "torso", 3 ] ],
"cut_protec": [ [ "torso", 3 ] ],
"bullet_protec": [ [ "torso", 3 ] ],
"flags": [ "BIONIC_NPC_USABLE", "BIONIC_SHOCKPROOF" ]
"flags": [ "BIONIC_NPC_USABLE", "BIONIC_SHOCKPROOF" ],
"canceled_mutations": [ "VINES1", "VINES2", "VINES3" ],
"mutation_conflicts": [
"THICKSKIN",
"THINSKIN",
"ALBINO",
"SKIN_ROUGH",
"M_SKIN",
"M_SKIN2",
"M_SKIN3",
"SCALES",
"THICK_SCALES",
"SLEEK_SCALES",
"FEATHERS",
"DOWN",
"LIGHTFUR",
"FUR",
"URSINE_FUR",
"LUPINE_FUR",
"FELINE_FUR",
"LYNX_FUR",
"CHITIN",
"CHITIN2",
"CHITIN3",
"CHITIN_FUR",
"CHITIN_FUR2",
"CHITIN_FUR3",
"CF_HAIR",
"SPINES",
"QUILLS",
"BARBS",
"PLANTSKIN",
"BARK",
"THORNS",
"LEAVES",
"LEAVES2",
"LEAVES3",
"SLIMY",
"VISCOUS",
"AMORPHOUS",
"BENDY1",
"BENDY2",
"BENDY3",
"LARGE",
"LARGE_OK",
"HUGE",
"HUGE_OK",
"SMALL",
"SMALL2",
"SMALL_OK",
"PALE",
"SPOTS",
"SUNBURN",
"SORES",
"CHLOROMORPH",
"ACIDPROOF",
"TOXICFLESH",
"FRESHWATEROSMOSIS",
"INK_GLANDS",
"INSECT_ARMS",
"INSECT_ARMS_OK",
"ARACHNID_ARMS",
"ARACHNID_ARMS_OK",
"CLAWS_TENTACLES",
"SHELL",
"SHELL2"
]
},
{
"id": "bio_batteries",
@@ -258,7 +542,8 @@
"act_cost": "100 J",
"react_cost": "100 J",
"time": 1,
"flags": [ "BIONIC_TOGGLED" ]
"flags": [ "BIONIC_TOGGLED" ],
"active_flags": [ "CLIMATE_CONTROL" ]
},
{
"id": "bio_cloak",
@@ -280,7 +565,7 @@
"act_cost": "30 kJ",
"react_cost": "30 kJ",
"time": 1,
"enchantments": [ "ENCH_INVISIBILITY" ],
"enchantments": [ { "condition": "ACTIVE", "ench_effects": [ { "effect": "invisibility", "intensity": 1 } ] } ],
"flags": [ "BIONIC_TOGGLED" ]
},
{
@@ -360,7 +645,8 @@
"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", "IMMUNE_HEARING_DAMAGE", "SUPER_HEARING" ],
"flags": [ "BIONIC_TOGGLED", "IMMUNE_HEARING_DAMAGE" ],
"active_flags": [ "SUPER_HEARING" ],
"included_bionics": [ "bio_earplugs" ]
},
{
@@ -479,7 +765,9 @@
"type": "bionic",
"name": { "str": "Fingerhack" },
"description": "One of your fingers has an electrohack surgically embedded in it; an all-purpose hacking unit used to override control panels and the like (but not computers). Skill in computers is important, and a failed use may damage your circuits.",
"occupied_bodyparts": [ [ "hand_r", 2 ] ]
"occupied_bodyparts": [ [ "hand_r", 2 ] ],
"fake_item": "electrohack",
"flags": [ "BIONIC_TOGGLED" ]
},
{
"id": "bio_flashbang",
@@ -581,6 +869,7 @@
[ "foot_r", 1 ]
],
"flags": [ "BIONIC_TOGGLED", "BIONIC_NPC_USABLE" ],
"active_flags": [ "HEATSINK" ],
"act_cost": "1 kJ",
"react_cost": "1 kJ",
"time": 1
@@ -661,7 +950,7 @@
"description": "The index fingers of both hands have powerful fire starters which extend from the tip.",
"occupied_bodyparts": [ [ "hand_l", 1 ], [ "hand_r", 1 ] ],
"fake_item": "fake_firestarter",
"act_cost": "3 kJ"
"act_cost": "5 kJ"
},
{
"id": "bio_lockpick",
@@ -735,7 +1024,13 @@
"description": "When active, this bionic eliminates all light within a 2 tile radius through destructive interference.",
"occupied_bodyparts": [ [ "torso", 16 ] ],
"flags": [ "BIONIC_TOGGLED" ],
"enchantments": [ "ENCH_SHADOW_CLOUD" ],
"enchantments": [
{
"condition": "ACTIVE",
"ench_effects": [ { "effect": "invisibility", "intensity": 1 } ],
"emitter": "emit_shadow_field"
}
],
"act_cost": "9 kJ",
"react_cost": "9 kJ",
"time": 1
@@ -896,7 +1191,17 @@
"name": { "str": "Recycler Unit" },
"description": "Your digestive system has been outfitted with a series of filters and processors, allowing you to reclaim waste liquid and, to a lesser degree, nutrients. The net effect is a greatly reduced need to eat and drink.",
"occupied_bodyparts": [ [ "torso", 15 ] ],
"flags": [ "BIONIC_NPC_USABLE" ]
"flags": [ "BIONIC_NPC_USABLE" ],
"enchantments": [
{
"condition": "ALWAYS",
"values": [
{ "value": "HUNGER", "multiply": -0.5 },
{ "value": "THIRST", "multiply": -0.5 },
{ "value": "METABOLISM", "multiply": -0.5 }
]
}
]
},
{
"id": "bio_remote",
@@ -1123,7 +1428,8 @@
"name": { "str": "Joint Servo" },
"description": "Your leg joints have been equipped with servomotors that provide power-assisted movement. They are optimized for running, but walking also requires less effort when this bionic is online. However, when it's offline it will hamper your movement, as you struggle against its moving parts.",
"occupied_bodyparts": [ [ "leg_l", 12 ], [ "leg_r", 12 ] ],
"flags": [ "BIONIC_TOGGLED" ]
"flags": [ "BIONIC_TOGGLED" ],
"mutation_conflicts": [ "LEG_TENTACLES", "LEG_TENT_BRACE" ]
},
{
"id": "bio_trip",
@@ -1159,7 +1465,8 @@
"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" ],
"social_modifiers": { "persuade": -20, "lie": 10, "intimidate": 20 }
"social_modifiers": { "persuade": -20, "lie": 10, "intimidate": 20 },
"canceled_mutations": [ "GROWL", "SNARL", "HISS" ]
},
{
"id": "bio_watch",
@@ -1208,14 +1515,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",
@@ -1230,6 +1529,7 @@
"name": { "str": "Soporific Induction" },
"description": "An electrode has been implanted into your brain's ventrolateral preoptic nucleus. It turns on whenever you're trying to fall asleep, creating an artificial but effective sensation of fatigue.",
"occupied_bodyparts": [ [ "head", 1 ] ],
"flags": [ "BIONIC_TOGGLED" ]
"flags": [ "BIONIC_TOGGLED" ],
"enchantments": [ { "condition": "ACTIVE", "values": [ { "value": "SLEEPY", "add": 30 } ] } ]
}
]
+209 -8
View File
@@ -59,6 +59,18 @@
"pre_terrain": "t_pit",
"post_terrain": "t_pit_glass"
},
{
"type": "construction",
"id": "constr_pit_underground",
"group": "underground_pit",
"category": "DIG",
"qualities": [ [ { "id": "DIG", "level": 2 } ] ],
"required_skills": [ [ "survival", 3 ] ],
"time": "300 m",
"tools": [ [ [ "pickaxe", -1 ], [ "jackhammer", 140 ], [ "elec_jackhammer", 7000 ] ] ],
"pre_terrain": "t_rock_floor",
"post_terrain": "t_pit"
},
{
"type": "construction",
"id": "constr_chop_trunk",
@@ -483,6 +495,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 +508,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 +521,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 +534,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"
},
@@ -640,6 +656,31 @@
"pre_terrain": "t_floor",
"post_terrain": "t_bars"
},
{
"type": "construction",
"id": "constr_wall_wattle_post",
"group": "build_woven_wattle_fence",
"//": "Step 1: narrow fence posts for a woven wattle wall",
"category": "CONSTRUCT",
"required_skills": [ [ "fabrication", 0 ], [ "survival", 1 ] ],
"time": "20 m",
"qualities": [ [ { "id": "CUT", "level": 1 } ], [ { "id": "HAMMER", "level": 1 } ], [ { "id": "DIG", "level": 1 } ] ],
"components": [ [ [ "stick", 4 ], [ "pointy_stick", 4 ] ] ],
"pre_flags": "DIGGABLE",
"post_terrain": "t_wattle_fence_posts"
},
{
"type": "construction",
"id": "constr_wall_wattle_woven",
"group": "build_woven_wattle_fence",
"category": "CONSTRUCT",
"required_skills": [ [ "fabrication", 2 ], [ "survival", 2 ] ],
"time": "50 m",
"qualities": [ [ { "id": "CUT", "level": 1 } ], [ { "id": "HAMMER", "level": 1 } ] ],
"components": [ [ [ "stick", 10 ] ] ],
"pre_terrain": "t_wattle_fence_posts",
"post_terrain": "t_wattle_fence"
},
{
"type": "construction",
"id": "constr_wall_wattle_half",
@@ -678,6 +719,25 @@
"pre_terrain": "t_wall_wattle_half",
"post_terrain": "t_wall_wattle"
},
{
"type": "construction",
"id": "constr_wall_wattle_from_fence",
"group": "build_wattle_and_daub_wall",
"//": "Upgrade a woven wattle fence to a full wall",
"category": "CONSTRUCT",
"required_skills": [ [ "fabrication", 3 ], [ "survival", 3 ] ],
"time": "60 m",
"qualities": [ [ { "id": "CUT", "level": 1 } ], [ { "id": "HAMMER", "level": 1 } ] ],
"components": [
[ [ "2x4", 5 ], [ "stick", 10 ] ],
[ [ "material_quicklime", 8 ], [ "material_limestone", 8 ], [ "clay_lump", 8 ] ],
[ [ "pebble", 10 ], [ "material_sand", 10 ] ],
[ [ "straw_pile", 8 ], [ "cattail_stalk", 8 ], [ "dogbane", 8 ], [ "pine_bough", 8 ] ],
[ [ "water", 10 ], [ "water_clean", 10 ] ]
],
"pre_terrain": "t_wattle_fence",
"post_terrain": "t_wall_wattle"
},
{
"type": "construction",
"id": "constr_repair_wall_wattle",
@@ -839,6 +899,30 @@
"pre_terrain": "f_sandbag_half",
"post_terrain": "f_sandbag_wall"
},
{
"type": "construction",
"id": "constr_gravelbag_half",
"group": "build_gravelbag_wall",
"category": "CONSTRUCT",
"required_skills": [ [ "fabrication", 0 ] ],
"time": "16 m",
"components": [ [ [ "gravelbag", 16 ] ] ],
"pre_note": "Can be deconstructed without tools.",
"pre_special": "check_empty",
"post_terrain": "f_gravelbag_half"
},
{
"type": "construction",
"id": "constr_gravelbag_wall",
"group": "build_gravelbag_wall",
"category": "CONSTRUCT",
"required_skills": [ [ "fabrication", 0 ] ],
"time": "20 m",
"components": [ [ [ "gravelbag", 20 ] ] ],
"pre_note": "Can be deconstructed without tools.",
"pre_terrain": "f_gravelbag_half",
"post_terrain": "f_gravelbag_wall"
},
{
"type": "construction",
"id": "constr_earthbag_half",
@@ -962,11 +1046,11 @@
"type": "construction",
"id": "constr_railroad_rubble",
"group": "make_gravel_floor",
"//": "Covers the floor with pebbles. Used for constructing railroads.",
"//": "Covers the floor with gravel. Used for constructing railroads.",
"category": "CONSTRUCT",
"required_skills": [ [ "fabrication", 1 ] ],
"time": "40 m",
"components": [ [ [ "pebble", 100 ] ] ],
"components": [ [ [ "material_gravel", 500 ] ] ],
"pre_special": "check_empty",
"post_terrain": "t_railroad_rubble"
},
@@ -1844,7 +1928,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"
@@ -2580,6 +2673,7 @@
"time": "60 m",
"qualities": [ [ { "id": "HAMMER", "level": 2 } ] ],
"components": [ [ [ "2x4", 6 ] ], [ [ "nail", 20 ] ], [ [ "wood_panel", 3 ] ] ],
"pre_special": "check_nofloor_above",
"pre_terrain": "t_wood_stairs_up_broken",
"post_terrain": "t_wood_stairs_up",
"post_special": "done_wood_stairs"
@@ -2607,6 +2701,7 @@
"time": "360 m",
"qualities": [ [ { "id": "HAMMER", "level": 2 } ], [ { "id": "SAW_W", "level": 2 } ] ],
"components": [ [ [ "wood_panel", 4 ] ], [ [ "nail", 30 ] ] ],
"pre_special": "check_nofloor_above",
"pre_terrain": "t_wood_stairs_up_half",
"post_terrain": "t_wood_stairs_up",
"post_special": "done_wood_stairs"
@@ -2655,7 +2750,6 @@
"tools": [ [ [ "con_mix", 125 ] ] ],
"qualities": [ [ { "id": "SMOOTH", "level": 1 } ] ],
"components": [ [ [ "concrete", 5 ] ], [ [ "water", 5 ] ] ],
"pre_terrain": "t_pit_shallow",
"pre_special": "check_ramp_low",
"post_terrain": "t_ramp_up_low",
"post_special": "done_ramp_low"
@@ -2672,7 +2766,6 @@
"tools": [ [ [ "con_mix", 125 ] ] ],
"qualities": [ [ { "id": "SMOOTH", "level": 1 } ] ],
"components": [ [ [ "concrete", 5 ] ], [ [ "water", 5 ] ] ],
"pre_terrain": "t_pit_shallow",
"pre_special": "check_ramp_high",
"post_terrain": "t_ramp_up_high",
"post_special": "done_ramp_high"
@@ -4064,7 +4157,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"
},
@@ -4090,7 +4183,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"
},
@@ -4259,8 +4352,116 @@
"required_skills": [ [ "survival", 0 ] ],
"time": "60 m",
"qualities": [ [ { "id": "DIG", "level": 1 } ] ],
"byproducts": [ { "item": "pebble", "count": [ 70, 100 ] } ],
"byproducts": [ { "item": "material_gravel", "count": [ 350, 500 ] } ],
"pre_terrain": "t_railroad_rubble",
"post_terrain": "t_dirt"
},
{
"type": "construction",
"id": "constr_mechanical_winch",
"group": "build_mechanical_winch",
"category": "CONSTRUCT",
"required_skills": [ [ "fabrication", 5 ], [ "mechanics", 6 ] ],
"time": "60 m",
"tools": [ [ [ "oxy_torch", 4 ], [ "welder", 20 ], [ "welder_crude", 30 ], [ "toolset", 30 ] ] ],
"qualities": [ [ { "id": "SAW_M", "level": 1 } ], [ { "id": "GLARE", "level": 2 } ] ],
"components": [ [ [ "chain", 16 ] ], [ [ "wheel_metal", 2 ] ], [ [ "pipe", 4 ] ] ],
"pre_note": "Must be adjacent to a reinforced concrete wall that is itself adjacent to a metal gate in order to open said gate.",
"pre_special": "check_empty",
"post_terrain": "t_gates_mech_control_lab"
},
{
"type": "construction",
"id": "constr_metal_gate",
"group": "build_metal_gate",
"category": "CONSTRUCT",
"required_skills": [ [ "fabrication", 4 ], [ "mechanics", 4 ] ],
"time": "120 m",
"tools": [ [ [ "oxy_torch", 10 ], [ "welder", 50 ], [ "welder_crude", 75 ], [ "toolset", 75 ] ] ],
"qualities": [ [ { "id": "SAW_M", "level": 2 } ], [ { "id": "GLARE", "level": 2 } ] ],
"components": [
[ [ "steel_lump", 8 ], [ "steel_chunk", 24 ], [ "scrap", 72 ] ],
[ [ "sheet_metal", 16 ] ],
[ [ "frame", 4 ], [ "spike", 24 ] ]
],
"pre_note": "Must be between reinforced concrete walls to function, and at least one wall must have an adjacent mechanical winch.",
"pre_special": "check_empty",
"post_terrain": "t_door_metal_locked"
},
{
"type": "construction",
"id": "constr_exercise_machine",
"group": "build_exercise_machine",
"category": "FURN",
"required_skills": [ [ "fabrication", 3 ] ],
"time": "180 m",
"qualities": [ [ { "id": "HAMMER", "level": 2 } ], [ { "id": "SCREW", "level": 1 } ] ],
"components": [ [ [ "pipe", 1 ] ], [ [ "steel_chunk", 1 ] ], [ [ "scrap", 6 ] ], [ [ "lead", 2000 ] ] ],
"pre_special": "check_empty",
"post_terrain": "f_exercise"
},
{
"type": "construction",
"id": "constr_ergometer_mechanical",
"group": "build_ergometer_mechanical",
"category": "FURN",
"required_skills": [ [ "fabrication", 4 ] ],
"time": "240 m",
"qualities": [ [ { "id": "HAMMER", "level": 2 } ], [ { "id": "SCREW", "level": 1 } ], [ { "id": "WRENCH", "level": 1 } ] ],
"components": [
[ [ "foot_crank", 1 ] ],
[ [ "plastic_chunk", 10 ] ],
[ [ "scrap", 4 ] ],
[ [ "chain", 1 ] ],
[ [ "pipe", 5 ] ],
[ [ "saddle", 1 ] ],
[ [ "wheel_small", 1 ] ],
[ [ "nail", 8 ] ]
],
"pre_special": "check_empty",
"post_terrain": "f_ergometer_mechanical"
},
{
"type": "construction",
"id": "constr_treadmill_mechanical",
"group": "build_treadmill_mechanical",
"category": "FURN",
"required_skills": [ [ "fabrication", 4 ] ],
"time": "240 m",
"qualities": [ [ { "id": "HAMMER", "level": 2 } ], [ { "id": "SCREW", "level": 1 } ], [ { "id": "WRENCH", "level": 1 } ] ],
"components": [ [ [ "plastic_chunk", 14 ] ], [ [ "scrap", 10 ] ], [ [ "pipe", 6 ] ], [ [ "nail", 8 ] ] ],
"pre_special": "check_empty",
"post_terrain": "f_treadmill_mechanical"
},
{
"type": "construction",
"id": "constr_glass_wall",
"group": "build_glass_wall",
"category": "CONSTRUCT",
"required_skills": [ [ "fabrication", 3 ] ],
"time": "60 m",
"qualities": [ [ { "id": "HAMMER_SOFT", "level": 1 } ] ],
"components": [
[ [ "frame_wood", 1 ] ],
[ [ "chunk_rubber", 16 ] ],
[ [ "glass_sheet", 2 ] ],
[ [ "superglue", 2 ], [ "duct_tape", 10 ] ]
],
"pre_note": "Must be supported on at least two sides.",
"pre_special": "check_support",
"post_terrain": "t_wall_glass"
},
{
"type": "construction",
"id": "constr_glass_wall_door",
"group": "build_glass_door",
"category": "CONSTRUCT",
"required_skills": [ [ "fabrication", 3 ] ],
"time": "60 m",
"qualities": [ [ { "id": "HAMMER_SOFT", "level": 1 } ] ],
"components": [ [ [ "frame_wood", 1 ] ], [ [ "chunk_rubber", 16 ] ], [ [ "glass_sheet", 2 ] ], [ [ "rag", 8 ] ] ],
"pre_note": "Must be supported on at least two sides.",
"pre_special": "check_support",
"post_terrain": "t_door_glass_c"
}
]
+50
View File
@@ -249,6 +249,11 @@
"id": "build_dumpster",
"name": "Build Dumpster"
},
{
"type": "construction_group",
"id": "build_gravelbag_wall",
"name": "Build Gravelbag Wall"
},
{
"type": "construction_group",
"id": "build_earthbag_wall",
@@ -259,6 +264,11 @@
"id": "build_entertainment_center",
"name": "Build Entertainment Center"
},
{
"type": "construction_group",
"id": "build_exercise_machine",
"name": "Build Exercise Machine"
},
{
"type": "construction_group",
"id": "build_fence",
@@ -284,6 +294,21 @@
"id": "build_fire_ring",
"name": "Build Fire Ring"
},
{
"type": "construction_group",
"id": "build_treadmill_mechanical",
"name": "Build Gravity Treadmill"
},
{
"type": "construction_group",
"id": "build_glass_door",
"name": "Build Glass Door"
},
{
"type": "construction_group",
"id": "build_glass_wall",
"name": "Build Glass Wall"
},
{
"type": "construction_group",
"id": "build_high_end_of_a_concrete_ramp",
@@ -349,6 +374,16 @@
"id": "build_makeshift_door",
"name": "Build Makeshift Door"
},
{
"type": "construction_group",
"id": "build_mechanical_winch",
"name": "Build Mechanical Winch"
},
{
"type": "construction_group",
"id": "build_ergometer_mechanical",
"name": "Build Mechanical Ergometer"
},
{
"type": "construction_group",
"id": "build_metal_bars",
@@ -364,6 +399,11 @@
"id": "build_metal_door",
"name": "Build Metal Door"
},
{
"type": "construction_group",
"id": "build_metal_gate",
"name": "Build Metal Gate"
},
{
"type": "construction_group",
"id": "build_metal_grate_over_a_window",
@@ -764,6 +804,11 @@
"id": "build_workbench",
"name": "Build Workbench"
},
{
"type": "construction_group",
"id": "build_woven_wattle_fence",
"name": "Build Woven Wattle Fence"
},
{
"type": "construction_group",
"id": "carpet_floor_green",
@@ -819,6 +864,11 @@
"id": "dig_a_deep_pit",
"name": "Dig a Deep Pit"
},
{
"type": "construction_group",
"id": "underground_pit",
"name": "Dig a Deep Pit Underground"
},
{
"type": "construction_group",
"id": "dig_a_shallow_pit",
+91
View File
@@ -0,0 +1,91 @@
[
{
"type": "effect_on_condition",
"id": "thunder",
"recurrence_min": 1,
"recurrence_max": 1,
"condition": {
"and": [
{ "or": [ { "is_weather": "thunder" }, { "is_weather": "lightning" } ] },
{ "one_in_chance": 50 },
{ "u_is_height": 0 }
]
},
"deactivate_condition": { "not": { "or": [ { "is_weather": "thunder" }, { "is_weather": "lightning" } ] } },
"effect": [
{ "message": "You hear a distant rumble of thunder.", "sound": true },
{ "sound_effect": "thunder_far", "outdoor_event": true, "id": "environment" }
]
},
{
"type": "effect_on_condition",
"id": "lightning",
"recurrence_min": 1,
"recurrence_max": 1,
"condition": { "and": [ { "is_weather": "lightning" }, { "one_in_chance": 600 }, { "u_is_height": 0 } ] },
"deactivate_condition": { "not": { "is_weather": "lightning" } },
"effect": [
{ "message": "A flash of lightning illuminates your surroundings!" },
{ "sound_effect": "thunder_near", "id": "environment" },
"lightning"
]
},
{
"type": "effect_on_condition",
"id": "acid_drizzle",
"recurrence_min": 1,
"recurrence_max": 1,
"condition": { "and": [ { "is_weather": "acid_drizzle" }, "u_is_outside", { "not": { "u_has_pain": 30 } } ] },
"deactivate_condition": { "not": { "is_weather": "acid_drizzle" } },
"effect": [ { "message": "The acid rain stings, but is mostly harmless for now…" }, { "u_mod_pain": 1 } ]
},
{
"type": "effect_on_condition",
"id": "acid_rain",
"recurrence_min": 1,
"recurrence_max": 1,
"condition": {
"and": [
{ "is_weather": "acid_rain" },
"u_is_outside",
{ "not": { "u_has_pain": 100 } },
{
"not": { "or": [ { "u_has_wielded_with_flag": "RAIN_PROTECT" }, { "u_has_worn_with_flag": "RAINPROOF" } ] }
}
]
},
"deactivate_condition": { "not": { "is_weather": "acid_rain" } },
"effect": [ { "message": "The acid rain burns!" }, { "u_mod_pain": 3 } ]
},
{
"type": "effect_on_condition",
"id": "snow",
"recurrence_min": 6,
"recurrence_max": 6,
"condition": { "and": [ { "is_weather": "snowing" }, "u_is_outside" ] },
"deactivate_condition": { "not": { "is_weather": "snowing" } },
"effect": [ { "u_add_wet": 10 } ]
},
{
"type": "effect_on_condition",
"id": "snowstorm",
"recurrence_min": 6,
"recurrence_max": 6,
"condition": { "and": [ { "is_weather": "snowstorm" }, "u_is_outside" ] },
"deactivate_condition": { "not": { "is_weather": "snowstorm" } },
"effect": [ { "u_add_wet": 40 } ]
},
{
"type": "effect_on_condition",
"id": "bio_drain",
"recurrence_min": "30 minutes",
"recurrence_max": "1 hours 30 minutes",
"condition": { "and": [ { "u_has_bionics": "bio_drain" }, { "u_has_power": "24 kJ" } ] },
"deactivate_condition": { "not": { "u_has_bionics": "bio_drain" } },
"effect": [
{ "message": "Your batteries discharge slightly.", "type": "bad" },
{ "sound_effect": "elec_crackle_low", "id": "bionics", "volume": 100 },
{ "u_add_power": "-25kJ" }
]
}
]
+58 -19
View File
@@ -650,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"
},
@@ -745,17 +747,20 @@
"id": "invisibility",
"name": [ "Invisible" ],
"desc": [ "You are invisible." ],
"flags": [ "EFFECT_INVISIBLE" ]
"flags": [ "INVISIBLE" ]
},
{
"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",
@@ -765,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",
@@ -781,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",
@@ -794,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",
@@ -804,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",
@@ -1083,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"
},
@@ -1400,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",
@@ -1695,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",
@@ -1705,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",
@@ -2223,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",
@@ -2231,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",
@@ -2239,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",
@@ -2275,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",
@@ -2283,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",
@@ -2394,7 +2433,7 @@
"type": "effect_type",
"id": "ignore_fall_damage",
"//": "Used for translocation via teleporter_list as a way to avoid fall damage by teleporting Z levels",
"flags": [ "EFFECT_FEATHER_FALL" ]
"flags": [ "FEATHER_FALL" ]
},
{
"type": "effect_type",
+8
View File
@@ -72,6 +72,14 @@
"intensity": 3,
"qty": 18
},
{
"id": "emit_tear_gas_blast",
"type": "emit",
"//": "Large blast of tear gas (example: tear gas canister)",
"field": "fd_tear_gas",
"intensity": 3,
"qty": 200
},
{
"id": "emit_toxic_blast",
"type": "emit",
-15
View File
@@ -1,15 +0,0 @@
[
{
"type": "enchantment",
"id": "ENCH_INVISIBILITY",
"condition": "ACTIVE",
"ench_effects": [ { "effect": "invisibility", "intensity": 1 } ]
},
{
"type": "enchantment",
"id": "ENCH_SHADOW_CLOUD",
"condition": "ACTIVE",
"ench_effects": [ { "effect": "invisibility", "intensity": 1 } ],
"emitter": "emit_shadow_field"
}
]
+1 -1
View File
@@ -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"
+31 -61
View File
@@ -10,11 +10,6 @@
"type": "json_flag",
"context": [ ]
},
{
"id": "EFFECT_INVISIBLE",
"context": [ ],
"type": "json_flag"
},
{
"id": "ALARMCLOCK",
"type": "json_flag",
@@ -81,11 +76,6 @@
"//": "Blinds the wearer while worn, and provides nominal protection vs flashbang flashes.",
"info": "This gear <bad>prevents</bad> you from <info>seeing</info> anything."
},
{
"id": "EFFECT_NIGHT_VISION",
"context": [ ],
"type": "json_flag"
},
{
"id": "BLOCK_WHILE_WORN",
"type": "json_flag",
@@ -152,6 +142,24 @@
"type": "json_flag",
"context": [ "GENERIC" ]
},
{
"id": "SCIENCE_CARD",
"type": "json_flag",
"context": [ "GENERIC" ],
"info": "You could probably use this to get into a secure science facility."
},
{
"id": "MILITARY_CARD",
"type": "json_flag",
"context": [ "GENERIC" ],
"info": "You could probably use this to get into a secure military facility."
},
{
"id": "INDUSTRIAL_CARD",
"type": "json_flag",
"context": [ "GENERIC" ],
"info": "You could probably use this to get into a secure industrial facility."
},
{
"id": "SKINNED",
"type": "json_flag",
@@ -250,6 +258,12 @@
"context": [ "ARMOR", "TOOL_ARMOR" ],
"info": "You can wear <info>only one</info>."
},
{
"id": "ONE_PER_LAYER",
"type": "json_flag",
"context": [ "ARMOR", "TOOL_ARMOR" ],
"info": "<info>Only one</info> item can be worn on this clothing layer."
},
{
"id": "FANCY",
"type": "json_flag",
@@ -460,7 +474,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",
@@ -1012,56 +1026,6 @@
"context": [ "mutation" ],
"//": "This mutation does not count toward thresholds at all."
},
{
"id": "EFFECT_FEATHER_FALL",
"context": [ ],
"type": "json_flag"
},
{
"id": "EFFECT_BIO_IMMUNE",
"context": [ ],
"type": "json_flag"
},
{
"id": "EFFECT_BASH_IMMUNE",
"context": [ ],
"type": "json_flag"
},
{
"id": "EFFECT_CUT_IMMUNE",
"context": [ ],
"type": "json_flag"
},
{
"id": "EFFECT_BULLET_IMMUNE",
"context": [ ],
"type": "json_flag"
},
{
"id": "EFFECT_ACID_IMMUNE",
"context": [ ],
"type": "json_flag"
},
{
"id": "EFFECT_STAB_IMMUNE",
"context": [ ],
"type": "json_flag"
},
{
"id": "EFFECT_HEAT_IMMUNE",
"context": [ ],
"type": "json_flag"
},
{
"id": "EFFECT_COLD_IMMUNE",
"context": [ ],
"type": "json_flag"
},
{
"id": "EFFECT_ELECTRIC_IMMUNE",
"context": [ ],
"type": "json_flag"
},
{
"id": "HIDDEN_HALLU",
"type": "json_flag",
@@ -1880,6 +1844,12 @@
"type": "json_flag",
"context": [ "AMMO", "CONSUMABLE" ]
},
{
"id": "ACTIVATE_ON_PLACE",
"type": "json_flag",
"context": [ ],
"info": "This item will be activated when it is placed in mapgen."
},
{
"id": "ACT_IN_FIRE",
"type": "json_flag",
+12
View File
@@ -0,0 +1,12 @@
[
{
"type": "json_flag",
"id": "SONAR_DETECTABLE",
"context": [ ]
},
{
"type": "json_flag",
"id": "CONVECTS_TEMPERATURE",
"context": [ ]
}
]
@@ -389,7 +389,8 @@
{ "item": "cable", "charges": [ 1, 3 ] },
{ "item": "pilot_light", "count": 1 }
]
}
},
"crafting_pseudo_item": "fake_oven"
},
{
"type": "furniture",
@@ -407,7 +408,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 ] }
]
},
@@ -546,7 +547,7 @@
"id": "f_satellite",
"name": "large satellite dish",
"looks_like": "t_radio_tower",
"description": "A large concave metal panel with simple electronics used to receive signals from sattelites. While the hundreds of expensive machines orbitting the planet will likely continue to function indefinately, their various purposes have all been lost.",
"description": "A large, concave metal panel with simple electronics used to receive signals from satellites. While the hundreds of expensive machines orbiting the planet will likely continue to function indefinitely, their various purposes have all been lost.",
"symbol": ")",
"color": "white_green",
"move_cost_mod": -1,
@@ -20,6 +20,60 @@
"items": [ { "item": "2x4", "count": [ 2, 6 ] }, { "item": "nail", "charges": [ 4, 8 ] }, { "item": "splinter", "count": 1 } ]
}
},
{
"type": "furniture",
"id": "f_gravelbag_half",
"name": "gravelbag barricade",
"symbol": "#",
"looks_like": "f_sandbag_half",
"bgcolor": "brown",
"description": "A low wall made of stacked gravelbags, uncommonly used to catch bullets and block flooding.",
"move_cost_mod": -1,
"coverage": 60,
"required_str": -1,
"flags": [
"CLIMB_SIMPLE",
"TRANSPARENT",
"MOUNTABLE",
"BLOCKSDOOR",
"SHORT",
"EASY_DECONSTRUCT",
"THIN_OBSTACLE",
"CLIMBABLE",
"PERMEABLE"
],
"examine_action": "chainfence",
"deconstruct": { "items": [ { "item": "gravelbag", "count": 16 } ] },
"bash": {
"str_min": 12,
"str_max": 60,
"sound": "rrrip!",
"sound_fail": "whump.",
"items": [ { "item": "bag_canvas", "count": [ 10, 16 ] }, { "item": "material_gravel", "charges": [ 40, 48 ] } ]
}
},
{
"type": "furniture",
"id": "f_gravelbag_wall",
"name": "gravelbag wall",
"symbol": "#",
"looks_like": "f_sandbag_wall",
"bgcolor": "brown",
"move_cost_mod": -1,
"coverage": 95,
"description": "A wall of stacked gravelbags, a bit taller than an average adult.",
"required_str": -1,
"flags": [ "NOITEM", "BLOCKSDOOR", "EASY_DECONSTRUCT", "MINEABLE", "BLOCK_WIND" ],
"deconstruct": { "items": [ { "item": "gravelbag", "count": 20 } ], "furn_set": "f_gravelbag_half" },
"bash": {
"str_min": 24,
"str_max": 80,
"sound": "rrrip!",
"sound_fail": "whump.",
"furn_set": "f_gravelbag_half",
"items": [ { "item": "bag_canvas", "count": [ 15, 20 ] }, { "item": "material_gravel", "charges": [ 50, 60 ] } ]
}
},
{
"type": "furniture",
"id": "f_earthbag_half",
@@ -186,6 +186,7 @@
{ "item": "plastic_chunk", "count": [ 0, 2 ] },
{ "item": "cu_pipe", "count": [ 1, 3 ] }
]
}
},
"crafting_pseudo_item": "fake_water_purifier"
}
]
@@ -123,7 +123,7 @@
"type": "furniture",
"id": "f_arcade_machine",
"name": "arcade machine",
"description": "A bulky upright arcade cabinet, brightly painted and slightyly worn with age. Useless for its intended purpose, it's bound to have valuable parts.",
"description": "A bulky upright arcade cabinet, brightly painted and slightly worn with age. Useless for its intended purpose, it's bound to have valuable parts.",
"symbol": "6",
"color": "red",
"move_cost_mod": -1,
@@ -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 },
@@ -211,7 +211,7 @@
"type": "furniture",
"id": "f_ergometer",
"name": "ergometer",
"description": "An exercise machine with a set of handles and plates meant to emulate rowing a boat. Without power it can't be operated, but it might have useful parts to be scavanged.",
"description": "An exercise machine with a set of handles and plates meant to emulate rowing a boat. Without power it can't be operated, but it might have useful parts to be scavenged.",
"symbol": "5",
"color": "dark_gray",
"move_cost_mod": 2,
@@ -123,7 +123,7 @@
"type": "furniture",
"id": "f_roof_turbine_vent",
"name": "roof turbine vent",
"description": "A rotary wind turbine that will catch the wind and pull out air from inside. It is most commonly used for improving air cicrulation, particularly in poorly-ventilated areas like attics.",
"description": "A rotary wind turbine that will catch the wind and pull out air from inside. It is most commonly used for improving air circulation, particularly in poorly-ventilated areas like attics.",
"symbol": "&",
"color": "light_gray",
"move_cost_mod": 2,
@@ -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 ] }
]
}
@@ -1128,7 +1128,7 @@
"type": "furniture",
"id": "f_foot_locker",
"name": "metal foot locker",
"description": "An metal stoarge box, capable of holding any number of things. The lid has has a small lock.",
"description": "A metal storage box, capable of holding any number of things. The lid has a small lock.",
"symbol": "O",
"color": "white",
"move_cost_mod": -1,
@@ -497,7 +497,8 @@
{ "item": "element", "count": [ 10, 25 ] },
{ "item": "scrap", "count": [ 12, 16 ] }
]
}
},
"crafting_pseudo_item": "fake_arc_furnace"
},
{
"type": "furniture",
@@ -534,7 +535,8 @@
{ "item": "plastic_chunk", "count": [ 4, 14 ] },
{ "item": "motor_small", "count": 1 }
]
}
},
"crafting_pseudo_item": "fake_drill_press"
},
{
"type": "furniture",
@@ -572,7 +574,8 @@
{ "item": "plastic_chunk", "count": [ 4, 14 ] },
{ "item": "motor_small", "count": 1 }
]
}
},
"crafting_pseudo_item": "fake_tablesaw"
},
{
"type": "furniture",
@@ -610,7 +613,8 @@
{ "item": "plastic_chunk", "count": [ 4, 14 ] },
{ "item": "motor_small", "count": 1 }
]
}
},
"crafting_pseudo_item": "fake_mitresaw"
},
{
"type": "furniture",
@@ -647,7 +651,8 @@
{ "item": "plastic_chunk", "count": [ 4, 14 ] },
{ "item": "motor_small", "count": 1 }
]
}
},
"crafting_pseudo_item": "fake_bandsaw"
},
{
"type": "furniture",
@@ -684,7 +689,8 @@
{ "item": "plastic_chunk", "count": [ 4, 14 ] },
{ "item": "motor_small", "count": 1 }
]
}
},
"crafting_pseudo_item": "fake_router_table"
},
{
"type": "furniture",
@@ -721,7 +727,8 @@
{ "item": "plastic_chunk", "count": [ 4, 14 ] },
{ "item": "motor_small", "count": 1 }
]
}
},
"crafting_pseudo_item": "fake_planer"
},
{
"type": "furniture",
@@ -758,7 +765,8 @@
{ "item": "plastic_chunk", "count": [ 4, 14 ] },
{ "item": "motor_small", "count": 1 }
]
}
},
"crafting_pseudo_item": "fake_jointer"
},
{
"type": "furniture",
@@ -795,7 +803,8 @@
{ "item": "chain", "count": [ 0, 1 ] },
{ "item": "motor_small", "count": 1 }
]
}
},
"crafting_pseudo_item": "fake_hydraulic_press"
},
{
"type": "furniture",
@@ -829,7 +838,8 @@
{ "item": "pipe", "count": [ 0, 4 ] },
{ "item": "motor_small", "count": 1 }
]
}
},
"crafting_pseudo_item": "fake_power_lathe"
},
{
"type": "furniture",
@@ -872,7 +882,8 @@
{ "item": "e_scrap", "count": [ 5, 10 ] },
{ "item": "plastic_chunk", "count": [ 0, 2 ] }
]
}
},
"crafting_pseudo_item": "fake_air_compressor"
},
{
"type": "furniture",
@@ -578,7 +578,7 @@
"type": "terrain",
"id": "t_door_white_b",
"name": "damaged wood door",
"description": "A trashed wooden door, that is more of an obstacle than a door. Also, you can see right through it. It could be boarded up with a few two by fours.",
"description": "A trashed wooden door, that is more of an obstacle than a door. Also, you can see right through it. It could be boarded up with a few planks.",
"symbol": "&",
"looks_like": "t_door_b",
"color": "brown",
@@ -614,7 +614,7 @@
"type": "terrain",
"id": "t_door_gray_b",
"name": "damaged wood door",
"description": "A trashed wooden door, that is more of an obstacle than a door. Also, you can see right through it. It could be boarded up with a few two by fours.",
"description": "A trashed wooden door, that is more of an obstacle than a door. Also, you can see right through it. It could be boarded up with a few planks.",
"symbol": "&",
"looks_like": "t_door_b",
"color": "brown",
@@ -650,7 +650,7 @@
"type": "terrain",
"id": "t_door_red_b",
"name": "damaged wood door",
"description": "A trashed wooden door, that is more of an obstacle than a door. Also, you can see right through it. It could be boarded up with a few two by fours.",
"description": "A trashed wooden door, that is more of an obstacle than a door. Also, you can see right through it. It could be boarded up with a few planks.",
"symbol": "&",
"looks_like": "t_door_b",
"color": "brown",
@@ -686,7 +686,7 @@
"type": "terrain",
"id": "t_door_green_b",
"name": "damaged wood door",
"description": "A trashed wooden door, that is more of an obstacle than a door. Also, you can see right through it. It could be boarded up with a few two by fours.",
"description": "A trashed wooden door, that is more of an obstacle than a door. Also, you can see right through it. It could be boarded up with a few planks.",
"symbol": "&",
"looks_like": "t_door_b",
"color": "brown",
@@ -722,7 +722,7 @@
"type": "terrain",
"id": "t_door_white_frame",
"name": "empty door frame",
"description": "An empty door frame made from two by fours and nails. A variety of doors could be constructed here.",
"description": "An empty door frame made from planks and nails. A variety of doors could be constructed here.",
"symbol": ".",
"looks_like": "t_door_frame",
"color": "brown",
@@ -747,7 +747,7 @@
"type": "terrain",
"id": "t_door_gray_frame",
"name": "empty door frame",
"description": "An empty door frame made from two by fours and nails. A variety of doors could be constructed here.",
"description": "An empty door frame made from planks and nails. A variety of doors could be constructed here.",
"symbol": ".",
"looks_like": "t_door_frame",
"color": "brown",
@@ -772,7 +772,7 @@
"type": "terrain",
"id": "t_door_red_frame",
"name": "empty door frame",
"description": "An empty door frame made from two by fours and nails. A variety of doors could be constructed here.",
"description": "An empty door frame made from planks and nails. A variety of doors could be constructed here.",
"symbol": ".",
"looks_like": "t_door_frame",
"color": "brown",
@@ -797,7 +797,7 @@
"type": "terrain",
"id": "t_door_green_frame",
"name": "empty door frame",
"description": "An empty door frame made from two by fours and nails. A variety of doors could be constructed here.",
"description": "An empty door frame made from planks and nails. A variety of doors could be constructed here.",
"symbol": ".",
"looks_like": "t_door_frame",
"color": "brown",
@@ -1053,7 +1053,7 @@
"type": "terrain",
"id": "t_door_b",
"name": "damaged wood door",
"description": "A trashed wooden door, that is more of an obstacle than a door. Also, you can see right through it. It could be boarded up with a few two by fours.",
"description": "A trashed wooden door, that is more of an obstacle than a door. Also, you can see right through it. It could be boarded up with a few planks.",
"symbol": "&",
"looks_like": "t_door_c",
"color": "brown",
@@ -1089,7 +1089,7 @@
"type": "terrain",
"id": "t_door_lab_b",
"name": "damaged wood door",
"description": "A trashed wooden door, that is more of an obstacle than a door. Also, you can see right through it. It could be boarded up with a few two by fours.",
"description": "A trashed wooden door, that is more of an obstacle than a door. Also, you can see right through it. It could be boarded up with a few planks.",
"symbol": "&",
"looks_like": "t_door_b",
"color": "brown",
@@ -1274,7 +1274,7 @@
"type": "terrain",
"id": "t_rdoor_c",
"name": "closed reinforced wood door",
"description": "Just like other wooden doors, except this one has layers of nailed in two by fours and additional hinge for reinforcement. It might be barricaded, but still susceptible to fire.",
"description": "Just like other wooden doors, except this one has layers of nailed in planks and additional hinge for reinforcement. It might be barricaded, but still susceptible to fire.",
"symbol": "+",
"looks_like": "t_door_c",
"color": "red",
@@ -1347,7 +1347,7 @@
"type": "terrain",
"id": "t_rdoor_o",
"name": "open reinforced wood door",
"description": "Just like other wooden doors, except this one has layers of nailed in two by fours for reinforcement. It might be fortified, but still susceptible to fire. It's open so it's not stopping anything right now.",
"description": "Just like other wooden doors, except this one has layers of nailed in planks for reinforcement. It might be fortified, but still susceptible to fire. It's open so it's not stopping anything right now.",
"symbol": "'",
"looks_like": "t_door_o",
"color": "red",
@@ -1574,7 +1574,7 @@
"type": "terrain",
"id": "t_door_makeshift_c",
"name": "closed makeshift door",
"description": "A makeshift screen consisting of two by fours bound together with vertical rope hanging from the top of the doorway. Could be easily taken down and re-purposed.",
"description": "A makeshift screen consisting of planks bound together with vertical rope hanging from the top of the doorway. Could be easily taken down and re-purposed.",
"symbol": "+",
"looks_like": "t_door_c",
"color": "brown",
@@ -1636,7 +1636,7 @@
"type": "terrain",
"id": "t_door_makeshift_o",
"name": "open makeshift door",
"description": "A makeshift screen consisting of two by fours bound together with rope hanging from the top of the doorway. Could be easily taken down and re-purposed. The planks have been rolled up and attached to the top of the doorway, allowing free movement through.",
"description": "A makeshift screen consisting of planks bound together with rope hanging from the top of the doorway. Could be easily taken down and re-purposed. The planks have been rolled up and attached to the top of the doorway, allowing free movement through.",
"symbol": "'",
"looks_like": "t_door_o",
"color": "brown",
@@ -1665,7 +1665,7 @@
"type": "terrain",
"id": "t_door_frame",
"name": "empty door frame",
"description": "An empty door frame made from two by fours and nails. A variety of doors could be constructed here.",
"description": "An empty door frame made from planks and nails. A variety of doors could be constructed here.",
"symbol": ".",
"looks_like": "t_floor",
"color": "brown",
@@ -1690,7 +1690,7 @@
"type": "terrain",
"id": "t_door_lab_frame",
"name": "empty door frame",
"description": "An empty door frame made from two by fours and nails. A variety of doors could be constructed here.",
"description": "An empty door frame made from planks and nails. A variety of doors could be constructed here.",
"symbol": ".",
"looks_like": "t_door_frame",
"color": "brown",
@@ -1859,7 +1859,7 @@
"type": "terrain",
"id": "t_rdoor_boarded",
"name": "boarded up reinforced door",
"description": "An additionally reinforced door of layered two by fours that has been boarded up with more wood to prevent it from opening. Still susceptible to fire.",
"description": "An additionally reinforced door of layered planks that has been boarded up with more wood to prevent it from opening. Still susceptible to fire.",
"symbol": "#",
"looks_like": "t_door_boarded",
"color": "brown",
@@ -1887,7 +1887,7 @@
"type": "terrain",
"id": "t_rdoor_boarded_damaged",
"name": "boarded up damaged reinforced door",
"description": "A battered and torn reinforced door with planks bursting from the joints. The boarded up two by fours are fragmented and in pieces, this doesn't look like an easy repair.",
"description": "A battered and torn reinforced door with planks bursting from the joints. The boarded up planks are fragmented and in pieces, this doesn't look like an easy repair.",
"symbol": "#",
"looks_like": "t_door_b",
"color": "brown",
@@ -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,
@@ -128,6 +128,82 @@
]
}
},
{
"type": "terrain",
"id": "t_retractable_gate_l",
"name": "locked retractable gate",
"description": "A retractable security gate. The latch on this one is locked. With the right tools, you could cut the metal fence or disable the lock.",
"symbol": "+",
"color": "cyan",
"move_cost": 0,
"flags": [ "TRANSPARENT", "PERMEABLE", "LOCKED", "PICKABLE", "THIN_OBSTACLE" ],
"connects_to": "WALL",
"examine_action": "locked_object_pickable",
"bash": {
"str_min": 17,
"str_max": 175,
"str_min_blocked": 15,
"str_max_blocked": 175,
"sound": "metal screeching!",
"sound_fail": "clang!",
"ter_set": "t_null",
"items": [
{ "item": "wire", "count": [ 8, 20 ] },
{ "item": "chain", "count": [ 1, 2 ] },
{ "item": "scrap", "count": [ 0, 12 ] }
]
}
},
{
"type": "terrain",
"id": "t_retractable_gate_c",
"name": "closed retractable gate",
"description": "A retractable security gate with a latch system to stay closed.",
"symbol": "+",
"color": "cyan",
"move_cost": 0,
"flags": [ "TRANSPARENT", "DOOR", "PERMEABLE", "THIN_OBSTACLE" ],
"connects_to": "WALL",
"open": "t_retractable_gate_o",
"bash": {
"str_min": 17,
"str_max": 175,
"str_min_blocked": 20,
"str_max_blocked": 100,
"sound": "metal screeching!",
"sound_fail": "clang!",
"ter_set": "t_null",
"items": [
{ "item": "wire", "count": [ 6, 15 ] },
{ "item": "chain", "count": [ 1, 2 ] },
{ "item": "scrap", "count": [ 0, 12 ] }
]
}
},
{
"type": "terrain",
"id": "t_retractable_gate_o",
"name": "open retractable gate",
"description": "A retractable security gate with a latch system to stay closed. The latch is undone, so the gate has retracted up.",
"symbol": ".",
"color": "cyan",
"move_cost": 2,
"flags": [ "TRANSPARENT", "FLAT", "ROAD" ],
"connects_to": "WALL",
"close": "t_retractable_gate_c",
"bash": {
"str_min": 5,
"str_max": 150,
"sound": "metal screeching!",
"sound_fail": "clang!",
"ter_set": "t_null",
"items": [
{ "item": "wire", "count": [ 6, 15 ] },
{ "item": "pipe", "count": [ 6, 15 ] },
{ "item": "scrap", "count": [ 0, 12 ] }
]
}
},
{
"type": "terrain",
"id": "t_fencegate_c",
@@ -363,6 +439,60 @@
"items": [ { "item": "2x4", "count": [ 1, 3 ] }, { "item": "nail", "charges": [ 2, 6 ] }, { "item": "splinter", "count": 1 } ]
}
},
{
"type": "terrain",
"id": "t_wattle_fence",
"alias": [ "t_wattle_fence_h", "t_wattle_fence_v" ],
"name": "woven wattle fence",
"description": "A flimsy barrier made of woven sticks. Suitable for small animals.",
"symbol": "LINE_OXOX",
"color": "brown",
"looks_like": "t_fence",
"move_cost": 0,
"examine_action": "chainfence",
"flags": [
"TRANSPARENT",
"DIGGABLE",
"FLAMMABLE_ASH",
"THIN_OBSTACLE",
"SHORT",
"NOITEM",
"PERMEABLE",
"UNSTABLE",
"CLIMBABLE",
"AUTO_WALL_SYMBOL",
"BURROWABLE"
],
"connects_to": "WOODFENCE",
"deconstruct": { "ter_set": "t_fence_post", "items": [ { "item": "splinter", "count": 20 } ] },
"bash": {
"str_min": 4,
"str_max": 20,
"sound": "crack.",
"sound_fail": "wham.",
"ter_set": "t_null",
"items": [ { "item": "pointy_stick", "count": [ 0, 2 ] }, { "item": "splinter", "count": [ 5, 15 ] } ]
}
},
{
"type": "terrain",
"id": "t_wattle_fence_posts",
"name": "narrow fence posts",
"description": "A set of narrow wooden posts for a woven wattle fence.",
"symbol": "#",
"color": "brown",
"looks_like": "t_fence_post",
"move_cost": 2,
"flags": [ "TRANSPARENT", "THIN_OBSTACLE", "SHORT" ],
"bash": {
"str_min": 4,
"str_max": 20,
"sound": "crack.",
"sound_fail": "wham.",
"ter_set": "t_null",
"items": [ { "item": "stick", "count": [ 1, 4 ] } ]
}
},
{
"type": "terrain",
"id": "t_chainfence",
@@ -442,7 +572,6 @@
"looks_like": "t_chickenwire_fence",
"move_cost": 0,
"flags": [ "TRANSPARENT", "NOITEM", "PERMEABLE", "AUTO_WALL_SYMBOL", "BURROWABLE", "AUTO_WALL_SYMBOL" ],
"examine_action": "chainfence",
"deconstruct": {
"ter_set": "t_floor",
"items": [ { "item": "screen_mesh", "count": 1 }, { "item": "nail", "charges": 10 }, { "item": "2x4", "charges": 4 } ]
@@ -650,6 +779,21 @@
{ "item": "nail", "charges": 12 },
{ "item": "hinge", "count": [ 1, 2 ] }
]
},
"bash": {
"str_min": 4,
"str_max": 20,
"str_min_blocked": 6,
"str_max_blocked": 30,
"sound": "crack.",
"sound_fail": "wham.",
"ter_set": "t_null",
"items": [
{ "item": "2x4", "count": [ 1, 4 ] },
{ "item": "nail", "charges": [ 2, 8 ] },
{ "item": "splinter", "count": [ 1, 2 ] },
{ "item": "hinge", "count": [ 1, 2 ] }
]
}
},
{
@@ -778,17 +922,14 @@
"examine_action": "chainfence",
"flags": [ "NOITEM", "CLIMBABLE", "PERMEABLE", "AUTO_WALL_SYMBOL", "FLAMMABLE_ASH", "THIN_OBSTACLE", "BURROWABLE" ],
"connects_to": "WOODFENCE",
"deconstruct": {
"ter_set": "t_fence_post",
"items": [ { "item": "2x4", "count": 10 }, { "item": "nail", "charges": 20 }, { "item": "hinge", "count": [ 1, 2 ] } ]
},
"deconstruct": { "ter_set": "t_fence_post", "items": [ { "item": "2x4", "count": 8 }, { "item": "nail", "charges": 20 } ] },
"bash": {
"str_min": 5,
"str_max": 12,
"sound": "whump!",
"sound_fail": "whack!",
"ter_set": "t_fence_post",
"items": [ { "item": "2x4", "count": [ 4, 10 ] } ]
"items": [ { "item": "2x4", "count": [ 4, 8 ] } ]
}
},
{
@@ -838,7 +979,7 @@
"color": "brown",
"looks_like": "t_fencegate_o",
"move_cost": 1,
"flags": [ "FLAMMABLE_ASH", "FLAT", "ROAD", "BURROWABLE" ],
"flags": [ "FLAMMABLE_ASH", "FLAT", "ROAD", "BURROWABLE", "TRANSPARENT" ],
"connects_to": "WOODFENCE",
"close": "t_privacy_fencegate_c",
"deconstruct": {
@@ -849,6 +990,21 @@
{ "item": "nail", "charges": 20 },
{ "item": "hinge", "count": [ 1, 2 ] }
]
},
"bash": {
"str_min": 4,
"str_max": 20,
"str_min_blocked": 6,
"str_max_blocked": 30,
"sound": "crack.",
"sound_fail": "wham.",
"ter_set": "t_null",
"items": [
{ "item": "2x4", "count": [ 4, 8 ] },
{ "item": "nail", "charges": [ 10, 20 ] },
{ "item": "splinter", "count": [ 4, 6 ] },
{ "item": "hinge", "count": [ 1, 2 ] }
]
}
},
{
@@ -46,6 +46,18 @@
]
}
},
{
"type": "terrain",
"id": "t_thconc_r",
"name": "concrete floor",
"description": "A bare and cold concrete floor with a streak of red paint, could still insulate from the outdoors but roof collapse is possible if supporting walls are broken down.",
"symbol": ".",
"color": "red",
"looks_like": "t_floor_red",
"move_cost": 2,
"roof": "t_flat_roof",
"copy-from": "t_thconc_floor"
},
{
"type": "terrain",
"id": "t_thconc_floor_olight",
@@ -865,7 +877,82 @@
"sound_fail": "slap!",
"sound_vol": 8,
"sound_fail_vol": 4,
"ter_set": "t_dirt"
"ter_set": "t_null"
}
},
{
"type": "terrain",
"id": "t_floor_paper_noroof",
"name": "paper floor",
"description": "Floor made of pulpy mass, covered in sticky wasp saliva.",
"symbol": ".",
"looks_like": "t_dirt",
"color": "white",
"move_cost": 2,
"flags": [ "TRANSPARENT", "FLAMMABLE_ASH", "INDOORS", "FLAT", "ROAD" ],
"bash": {
"str_min": 1,
"str_max": 6,
"sound": "rrrrip!",
"sound_fail": "slap!",
"sound_vol": 8,
"sound_fail_vol": 4,
"ter_set": "t_open_air"
}
},
{
"type": "terrain",
"id": "t_floor_paper_hard",
"name": "hard paper floor",
"description": "Hardened cardboard floor made of chewed up trees and resin mixed with wasp saliva.",
"symbol": ".",
"looks_like": "t_floor_paper",
"color": "light_gray",
"move_cost": 2,
"flags": [ "TRANSPARENT", "FLAMMABLE_HARD", "INDOORS", "FLAT" ],
"bash": {
"str_min": 15,
"str_max": 150,
"str_min_supported": 30,
"sound": "rrrrip!",
"sound_fail": "slap!",
"sound_vol": 10,
"sound_fail_vol": 6,
"ter_set": "t_open_air"
}
},
{
"type": "terrain",
"id": "t_floor_brood_wasp",
"name": "paper brood cap",
"description": "A thin paper floor, protecting the pupatig wasp larva until it's ready to emerge.",
"looks_like": "t_floor_paper",
"symbol": ".",
"color": "white",
"move_cost": 2,
"flags": [ "TRANSPARENT", "FLAMMABLE_ASH", "INDOORS", "NO_FLOOR" ],
"bash": {
"str_min": 1,
"str_max": 6,
"sound": "rrrrip!",
"sound_fail": "slap!",
"sound_vol": 8,
"sound_fail_vol": 4,
"ter_set": "t_open_air"
}
},
{
"type": "terrain",
"id": "t_floor_brood_fake",
"name": "open air",
"description": "This is open air.",
"//": "Actually, this is a thin membrane of bullshit to keep wasp eggs levitating.",
"symbol": " ",
"looks_like": "t_open_air",
"color": "i_cyan",
"move_cost": 2,
"trap": "tr_ledge",
"flags": [ "TRANSPARENT" ],
"examine_action": "ledge"
}
]
@@ -452,7 +452,7 @@
"transforms_into": "t_tree_coffee_harvested",
"looks_like": "t_tree_plum",
"examine_action": "harvest_ter_nectar",
"harvest_by_season": [ { "seasons": [ "autumn" ], "id": "cherry_harv" } ],
"harvest_by_season": [ { "seasons": [ "autumn" ], "id": "coffee_harv" } ],
"bash": {
"str_min": 80,
"str_max": 180,
@@ -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",
@@ -377,7 +377,7 @@
"id": "t_lake_bed_concrete_yellow",
"//": "for eventual use with water z levels. Currently non-functional. Cement on the lake floor.",
"name": "submerged concrete",
"description": "You are standing at the bottom of a body of fresh water on a pad of concrete with yelllow paint. With a watertight container, you could gather fresh water from here. Not safe to drink as is.",
"description": "You are standing at the bottom of a body of fresh water on a pad of yellow-painted concrete. With a watertight container, you could gather fresh water from here. Not safe to drink as is.",
"symbol": "#",
"looks_like": "t_pavement_y",
"color": "yellow",
@@ -397,7 +397,7 @@
"type": "terrain",
"id": "t_water_hot",
"name": "hot spring water",
"description": "Scalding hot water, not particulary safe for swimming. With a watertight container, you could gather fresh water from here. Not safe to drink as is.",
"description": "Scalding hot water, not particularly safe for swimming. With a watertight container, you could gather fresh water from here. Not safe to drink as is.",
"symbol": "~",
"color": "light_blue",
"move_cost": 5,
@@ -3,14 +3,13 @@
"type": "terrain",
"id": "t_recycler",
"name": "metal compactor",
"description": "A hydraulic compactor that can accept items made of various metals, and press them into basic shapes, ready for further crafting.",
"description": "A hydraulic machine for squeezing scrap into more compact chunks. Useless now that there's no power.",
"looks_like": "f_machinery_heavy",
"symbol": "&",
"color": "green",
"move_cost": 0,
"max_volume": "2000 L",
"flags": [ "TRANSPARENT", "REDUCE_SCENT", "PERMEABLE" ],
"examine_action": "recycle_compactor",
"bash": {
"str_min": 20,
"str_max": 150,
@@ -204,6 +203,54 @@
]
}
},
{
"type": "terrain",
"id": "t_avgas_pump",
"name": "avgas pump",
"looks_like": "t_gas_pump",
"description": "This pump is filled with avgas. 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_avgas_pump_smashed",
"items": [ { "item": "scrap", "count": 1 } ]
}
},
{
"type": "terrain",
"id": "t_avgas_pump_smashed",
"name": "smashed avgas pump",
"description": "You're not getting any avgas out of this pump any time soon. Some barbarian decided to take their frustration out on it.",
"symbol": "&",
"color": "light_green",
"looks_like": "t_gas_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",
@@ -249,7 +249,14 @@
"color": "pink",
"move_cost": 0,
"flags": [ "NOITEM", "CONNECT_TO_WALL" ],
"examine_action": "cardreader",
"examine_action": {
"type": "cardreader",
"flags": [ "SCIENCE_CARD" ],
"terrain_changes": { "t_door_metal_locked": "t_door_metal_c" },
"query_msg": "Swipe your ID card?",
"success_msg": "You insert your ID card.\n<color_light_green>The nearby doors unlock.</color>",
"redundant_msg": "The nearby doors are already opened."
},
"bash": {
"str_min": 18,
"str_max": 180,
@@ -269,7 +276,14 @@
"color": "pink",
"move_cost": 0,
"flags": [ "NOITEM", "CONNECT_TO_WALL" ],
"examine_action": "cardreader",
"examine_action": {
"type": "cardreader",
"flags": [ "MILITARY_CARD" ],
"terrain_changes": { "t_door_metal_locked": "t_door_metal_c" },
"query_msg": "Swipe your ID card?",
"success_msg": "You insert your ID card.\n<color_light_green>The nearby doors unlock.</color>",
"redundant_msg": "The nearby doors are already opened."
},
"bash": {
"str_min": 18,
"str_max": 180,
@@ -290,7 +304,14 @@
"color": "pink",
"move_cost": 0,
"flags": [ "NOITEM", "CONNECT_TO_WALL" ],
"examine_action": "cardreader",
"examine_action": {
"type": "cardreader",
"flags": [ "INDUSTRIAL_CARD" ],
"terrain_changes": { "t_door_metal_locked": "t_door_metal_c" },
"query_msg": "Swipe your ID card?",
"success_msg": "You insert your ID card.\n<color_light_green>The nearby doors unlock.</color>",
"redundant_msg": "The nearby doors are already opened."
},
"bash": {
"str_min": 18,
"str_max": 180,
@@ -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,
@@ -8,22 +8,23 @@
"color": "light_gray",
"move_cost": 2,
"bash": {
"str_min": 30,
"str_max": 40,
"str_min": 100,
"str_max": 200,
"ter_set": "t_null",
"sound": "crunch!",
"sound_fail": "whump!",
"items": [ { "item": "pebble", "count": [ 1, 3 ] }, { "item": "sharp_rock", "count": [ 0, 1 ] } ]
"items": [ { "item": "material_gravel", "count": [ 5, 15 ] }, { "item": "sharp_rock", "count": [ 0, 1 ] } ],
"bash_below": true
},
"deconstruct": {
"ter_set": "t_pit_shallow",
"items": [
{ "item": "pebble", "count": [ 75, 100 ] },
{ "item": "material_gravel", "count": [ 350, 500 ] },
{ "item": "sharp_rock", "count": [ 0, 2 ] },
{ "item": "rock", "count": [ 4, 12 ] }
]
},
"flags": [ "BASHABLE", "TRANSPARENT" ]
"flags": [ "TRANSPARENT", "DIGGABLE", "FLAT" ]
},
{
"id": "t_railroad_track",
@@ -354,5 +354,27 @@
"ter_set": "t_open_air",
"bash_below": true
}
},
{
"type": "terrain",
"id": "t_roof_paper_hard",
"name": "flat roof",
"description": "A flat surface made of hardened pulpy mass, covered in sticky wasp saliva.",
"symbol": ".",
"looks_like": "t_paper",
"color": "white",
"move_cost": 2,
"flags": [ "TRANSPARENT", "FLAMMABLE_HARD", "FLAT" ],
"bash": {
"str_min": 25,
"str_max": 150,
"str_min_supported": 40,
"sound": "rrrrip!",
"sound_fail": "slap!",
"sound_vol": 15,
"sound_fail_vol": 10,
"ter_set": "t_open_air",
"bash_below": true
}
}
]
@@ -50,7 +50,7 @@
"type": "terrain",
"id": "t_pit_covered",
"name": "covered pit",
"description": "A deep pit with a two by four placed across it, looks sturdy enough to cross safely or the plank could be removed to turn it back into trap fall.",
"description": "A deep pit with a plank placed across it, looks sturdy enough to cross safely or the plank could be removed to turn it back into trap fall.",
"symbol": "#",
"color": "light_red",
"move_cost": 2,
@@ -75,7 +75,7 @@
"type": "terrain",
"id": "t_pit_spiked_covered",
"name": "covered spiked pit",
"description": "Menacing with sharp spears along the bottom, this pit has a plank across it to allow someone or something to cross safely. The two by four could be removed to revert it back into a trap.",
"description": "Menacing with sharp spears along the bottom, this pit has a plank across it to allow someone or something to cross safely. The plank could be removed to revert it back into a trap.",
"symbol": "#",
"color": "light_red",
"move_cost": 2,
@@ -100,7 +100,7 @@
"type": "terrain",
"id": "t_pit_glass_covered",
"name": "covered glass pit",
"description": "A two by four has been placed carefully to allow traversal over this ditch full of large glass shards. The wooden board could be removed so it couldn't be safely crossed.",
"description": "A plank has been placed carefully to allow traversal over this ditch full of large glass shards. The wooden board could be removed so it couldn't be safely crossed.",
"symbol": "#",
"color": "light_cyan",
"move_cost": 2,
@@ -40,7 +40,7 @@
"id": "t_wall_half",
"name": "half-built wall",
"looks_like": "t_wall",
"description": "An incomplete wall of refined wood, dotted with carefully placed nails to provide proper support. It requires some more two by fours and nails before it'd be considered a suitable wall.",
"description": "An incomplete wall of refined wood, dotted with carefully placed nails to provide proper support. It requires some more planks and nails before it'd be considered a suitable wall.",
"symbol": "#",
"color": "light_red",
"move_cost": 4,
@@ -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": {
@@ -647,11 +649,12 @@
"id": "t_wall_wood_chipped",
"name": "chipped wood wall",
"looks_like": "t_wall_wood",
"description": "A wall of aligned two by fours that's starting to crack and break open. Some cut wood and a number of nails could patch this up quick.",
"description": "A wall of aligned planks that's starting to crack and break open. Some cut wood and a number of nails could patch this up quick.",
"symbol": "LINE_OXOX",
"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": {
@@ -913,6 +918,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": {
@@ -1154,7 +1160,44 @@
"sound_fail": "slap!",
"sound_vol": 8,
"sound_fail_vol": 4,
"ter_set": "t_null"
"ter_set": "t_floor_paper"
}
},
{
"type": "terrain",
"id": "t_paper_brood",
"copy-from": "t_paper",
"symbol": "#",
"color": "white",
"flags": [ "FLAMMABLE_ASH", "NOITEM", "WALL", "NO_SCENT" ],
"bash": {
"str_min": 1,
"str_max": 6,
"sound": "rrrrip!",
"sound_fail": "slap!",
"sound_vol": 8,
"sound_fail_vol": 4,
"ter_set": "t_floor_paper_noroof"
}
},
{
"type": "terrain",
"id": "t_paper_hard",
"name": "layered paper wall",
"description": "A thick wall of layered tree pulp and wasp saliva, hardened to withstand the elements. You could break through this, but it won't be easy.",
"symbol": "#",
"color": "dark_gray",
"move_cost": 0,
"coverage": 100,
"flags": [ "FLAMMABLE_HARD", "NOITEM", "MINEABLE", "WALL", "NO_SCENT" ],
"bash": {
"str_min": 30,
"str_max": 150,
"sound": "rrrrip!",
"sound_fail": "slap!",
"sound_vol": 20,
"sound_fail_vol": 10,
"ter_set": "t_floor_paper_hard"
}
},
{
@@ -1208,7 +1251,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,
@@ -1346,6 +1389,26 @@
"items": [ { "item": "rock", "count": [ 10, 22 ] } ]
}
},
{
"type": "terrain",
"id": "t_bollard",
"name": "bollard",
"looks_like": "t_fence_post",
"description": "A set of concrete and steel bollards designed to harden areas against vehicle ram attacks. It requires a few more steps to walk in between the bollards sticking up out of the ground.",
"symbol": "1",
"color": "light_gray",
"move_cost": 6,
"coverage": 20,
"flags": [ "TRANSPARENT", "WALL", "SHORT", "PERMEABLE" ],
"bash": {
"str_min": 350,
"str_max": 650,
"sound": "crash!",
"sound_fail": "whump!",
"ter_set": "t_sidewalk",
"items": [ { "item": "rock", "count": [ 6, 13 ] }, { "item": "steel_chunk", "count": [ 1, 3 ] } ]
}
},
{
"type": "terrain",
"id": "t_support_l",
@@ -1356,7 +1419,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,
@@ -1390,7 +1453,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,
@@ -1456,5 +1519,25 @@
"ter_set": "t_null",
"items": [ { "item": "rock", "count": [ 3, 8 ] }, { "item": "pebble", "count": [ 20, 38 ] } ]
}
},
{
"type": "terrain",
"id": "t_pillar",
"name": "pillar",
"looks_like": "t_column",
"description": "A concrete column that helps keep the mine's ceiling and walls from collapsing.",
"symbol": "1",
"color": "light_gray",
"move_cost": 0,
"coverage": 80,
"flags": [ "WALL", "PERMEABLE", "MINEABLE" ],
"bash": {
"str_min": 120,
"str_max": 200,
"sound": "crash!",
"sound_fail": "whump!",
"ter_set": "t_reb_cage",
"items": [ { "item": "rock", "count": [ 10, 22 ] } ]
}
}
]
File diff suppressed because it is too large Load Diff
+68 -53
View File
@@ -111,50 +111,32 @@
{
"id": "shrub_grape_harv",
"type": "harvest",
"entries": [
{ "drop": "grapes", "base_num": [ 2, 5 ], "scale_num": [ 0, 0.5 ] },
{ "drop": "seed_grapes", "base_num": [ 1, 2 ], "scale_num": [ 0, 0.25 ] }
]
"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 ] },
{ "drop": "seed_raspberries", "base_num": [ 1, 2 ], "scale_num": [ 0, 0.25 ] }
]
"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 ] },
{ "drop": "seed_huckleberries", "base_num": [ 1, 2 ], "scale_num": [ 0, 0.25 ] }
]
"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 ] },
{ "drop": "seed_blackberries", "base_num": [ 1, 2 ], "scale_num": [ 0, 0.25 ] }
]
"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 ] },
{ "drop": "seed_strawberries", "base_num": [ 1, 2 ], "scale_num": [ 0, 0.25 ] }
]
"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 ] },
{ "drop": "seed_blueberries", "base_num": [ 1, 2 ], "scale_num": [ 0, 0.25 ] }
]
"entries": [ { "drop": "blueberries", "base_num": [ 2, 5 ], "scale_num": [ 0, 0.5 ] } ]
},
{
"id": "shrub_peanut_harv",
@@ -199,18 +181,12 @@
{
"id": "elderberry_harv",
"type": "harvest",
"entries": [
{ "drop": "elderberries", "base_num": [ 8, 20 ], "scale_num": [ 0, 0.5 ] },
{ "drop": "seed_elderberries", "base_num": [ 3, 5 ], "scale_num": [ 0, 0.25 ] }
]
"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 ] },
{ "drop": "seed_mulberries", "base_num": [ 3, 5 ], "scale_num": [ 0, 0.25 ] }
]
"entries": [ { "drop": "mulberries", "base_num": [ 8, 20 ], "scale_num": [ 0, 0.5 ] } ]
},
{
"id": "plum_harv",
@@ -237,6 +213,11 @@
"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",
@@ -1017,14 +998,14 @@
"type": "harvest",
"message": "<arachnid_flying_harvest>",
"entries": [
{ "drop": "mutant_meat", "type": "flesh", "mass_ratio": 0.1 },
{ "drop": "mutant_meat", "type": "flesh", "mass_ratio": 0.3 },
{ "drop": "mutant_blood", "type": "blood", "mass_ratio": 0.1 },
{ "drop": "sinew", "type": "bone", "mass_ratio": 0.01 },
{ "drop": "sinew", "type": "bone", "mass_ratio": 0.003 },
{ "drop": "endochitin", "type": "bone", "mass_ratio": 0.01 },
{ "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 },
{ "drop": "chitin_piece", "type": "bone", "mass_ratio": 0.01 }
{ "drop": "mutant_bug_hydrogen_sacs", "type": "flesh", "mass_ratio": 0.1 },
{ "drop": "mutant_bug_lungs", "type": "flesh", "mass_ratio": 0.01 },
{ "drop": "mutant_bug_organs", "type": "offal", "mass_ratio": 0.03 },
{ "drop": "chitin_piece", "type": "bone", "mass_ratio": 0.1 }
]
},
{
@@ -1092,17 +1073,36 @@
{
"id": "arachnid_wasp",
"type": "harvest",
"message": "There's a faintly hairy, skin-like membrane, covered in blood vessels, beneath the chitin of this creature. Inside it is a bundle of bubble-like tissue sacs that appear to be floating, which doesn't fit with what you know about pre-Cataclysm wasps.",
"message": "<wasp_harvest>",
"entries": [
{ "drop": "mutant_meat", "type": "flesh", "mass_ratio": 0.33 },
{ "drop": "sinew", "type": "bone", "mass_ratio": 0.01 },
{ "drop": "endochitin", "type": "bone", "mass_ratio": 0.1 },
{ "drop": "mutant_meat", "type": "flesh", "mass_ratio": 0.3 },
{ "drop": "mutant_blood", "type": "blood", "mass_ratio": 0.1 },
{ "drop": "sinew", "type": "bone", "mass_ratio": 0.003 },
{ "drop": "endochitin", "type": "bone", "mass_ratio": 0.01 },
{ "drop": "mutant_bug_hydrogen_sacs", "type": "flesh", "mass_ratio": 0.1 },
{ "drop": "mutant_bug_lungs", "type": "flesh", "mass_ratio": 0.0035 },
{ "drop": "mutant_bug_organs", "type": "offal", "mass_ratio": 0.015 },
{ "drop": "mutant_bug_lungs", "type": "flesh", "mass_ratio": 0.01 },
{ "drop": "mutant_bug_organs", "type": "offal", "mass_ratio": 0.03 },
{ "drop": "wasp_sting", "base_num": [ 0, 1 ], "type": "bone" },
{ "drop": "chitin_piece", "type": "bone", "mass_ratio": 0.1 },
{ "drop": "venom_wasp", "type": "offal", "mass_ratio": 0.005 }
{ "drop": "venom_wasp", "type": "offal", "base_num": [ 0, 3 ], "scale_num": [ 0, 2 ] }
]
},
{
"id": "arachnid_wasp_queen",
"type": "harvest",
"message": "<wasp_queen_harvest>",
"entries": [
{ "drop": "mutant_meat", "type": "flesh", "mass_ratio": 0.2 },
{ "drop": "mutant_blood", "type": "blood", "mass_ratio": 0.1 },
{ "drop": "sinew", "type": "bone", "mass_ratio": 0.003 },
{ "drop": "endochitin", "type": "bone", "mass_ratio": 0.01 },
{ "drop": "mutant_bug_hydrogen_sacs", "type": "flesh", "mass_ratio": 0.1 },
{ "drop": "mutant_bug_lungs", "type": "flesh", "mass_ratio": 0.01 },
{ "drop": "mutant_bug_organs", "type": "offal", "mass_ratio": 0.03 },
{ "drop": "wasp_sting", "base_num": [ 0, 1 ], "type": "bone" },
{ "drop": "chitin_piece", "type": "bone", "mass_ratio": 0.1 },
{ "drop": "egg_wasp", "type": "offal", "base_num": [ 10, 30 ], "scale_num": [ 5, 5 ] },
{ "drop": "venom_wasp", "type": "offal", "base_num": [ 5, 25 ], "scale_num": [ 5, 2 ] }
]
},
{
@@ -1128,8 +1128,7 @@
{ "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 }
]
},
{
@@ -1141,8 +1140,7 @@
{ "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 }
]
},
{
@@ -1164,8 +1162,7 @@
{ "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 }
]
},
{
@@ -1190,8 +1187,7 @@
{ "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 }
]
},
{
@@ -1317,6 +1313,25 @@
{ "drop": "bone_tainted", "type": "bone", "mass_ratio": 0.1 }
]
},
{
"id": "CBM_SCI_FERAL",
"type": "harvest",
"entries": [
{
"drop": "bionics_sci",
"type": "bionic_group",
"flags": [ "NO_STERILE", "NO_PACKED" ],
"faults": [ "fault_bionic_salvaged" ]
},
{ "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 }
]
},
{
"id": "CBM_TECH",
"type": "harvest",
-10
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",
@@ -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 ] }
]
},
{
@@ -3015,6 +3015,7 @@
{
"distribution": [
{ "item": "case_violin", "prob": 5 },
{ "item": "bookstrap", "prob": 5 },
{ "item": "quiver", "prob": 20 },
{ "item": "quiver_large", "prob": 15 },
{ "item": "solarpack", "prob": 5 },
+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 },
@@ -100,6 +100,7 @@
[ "slingpack", 19 ],
[ "travelpack", 10 ],
[ "petpack", 1 ],
[ "bookstrap", 1 ],
[ "pockknife", 14 ],
[ "roller_shoes_off", 10 ],
[ "knife_swissarmy", 10 ],
@@ -175,7 +176,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 +228,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 ] }
]
+46 -46
View File
@@ -36,12 +36,12 @@
"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 ] },
{ "item": "condom", "prob": 1 },
{ "item": "condom", "prob": 10 },
[ "scorecard", 20 ]
]
},
@@ -52,12 +52,12 @@
"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 ] },
{ "item": "condom", "prob": 1 },
{ "item": "condom", "prob": 10 },
[ "scorecard", 20 ]
]
},
@@ -68,12 +68,12 @@
"//": "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 ] },
{ "item": "condom", "prob": 1 },
{ "item": "condom", "prob": 10 },
[ "scorecard", 20 ]
]
},
@@ -84,11 +84,11 @@
"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 },
{ "item": "condom", "prob": 1 },
{ "item": "condom", "prob": 10 },
[ "scorecard", 40 ]
]
},
@@ -98,12 +98,12 @@
"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 },
{ "item": "condom", "prob": 10 },
[ "scorecard", 5 ]
]
},
@@ -114,13 +114,13 @@
"//": "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 ] },
{ "item": "condom", "prob": 1 },
{ "item": "condom", "prob": 10 },
[ "scorecard", 20 ]
]
},
@@ -131,13 +131,13 @@
"//": "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 ] },
{ "item": "condom", "prob": 1 },
{ "item": "condom", "prob": 10 },
[ "scorecard", 20 ]
]
},
@@ -148,13 +148,13 @@
"//": "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": "condom", "prob": 10 },
{ "item": "labmap", "prob": 20 },
[ "scorecard", 20 ]
]
@@ -166,13 +166,13 @@
"//": "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": "condom", "prob": 10 },
{ "item": "labmap", "prob": 20 },
[ "scorecard", 20 ]
]
@@ -184,13 +184,13 @@
"//": "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": "condom", "prob": 10 },
{ "item": "labmap", "prob": 20 },
[ "scorecard", 5 ]
]
@@ -202,13 +202,13 @@
"//": "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 ] },
{ "item": "condom", "prob": 1 },
{ "item": "condom", "prob": 10 },
[ "scorecard", 20 ]
]
},
@@ -219,13 +219,13 @@
"//": "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 ] },
{ "item": "condom", "prob": 1 },
{ "item": "condom", "prob": 10 },
[ "scorecard", 20 ]
]
},

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