Compare commits

...

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

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

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

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

* Document compose.py palette argument

* palette and palette-copies arguments

* Reflect changes in the TILESET.md

* Ignore --palette-copies with --palette

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

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

Remove auto for readability.

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

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

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

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

* Made outer walls higher on the second floor

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

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

* Replaced wood benches with metal ones

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

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

* Go straight to the mission offer instead of mission list

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

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

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

Also increased their chance to spawn.

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

also adjust novice starting spells, add book, etc

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

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

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

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

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

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

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

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

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

* Fix leprechaun aggression

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

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

* Update kelvinist.json

* Update effects.json

* Update spell_scrolls.json

* Update kelvinist.json

* Update kelvinist.json

* ran lint tool

* Update kelvinist.json

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

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

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

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

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

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

* Magic light is bright as a candle

* magic lamp is as bright as a flashlight

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

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

* Change _wctype.h to cwctype in game.cpp

* Change __functional_base to functional

* Remove libcxx internal headers

* Remove UNIX system headers

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

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

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

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

(cherry picked from commit 306bfb4cbd817d4db60e92807025549050a576ff)

* Match (some) weary testing to kcal resetting

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

* Update numbers to match consensus test results

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

* Clear_avatar before initial debug_weary_info

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

* Change the last target for the vehicle weary test

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

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

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

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

* Resolves astyle issue.

* Modifies the change to strictly apply to liquids only.

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

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

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

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

* typo fix

* Make colon optional

* PR Validator regex update

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

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

* Apply suggestions from code review

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

* table of contents updates

* Update README.md

* Update README.md

* Update data/mods/Aftershock/README.md

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

* Update data/mods/Aftershock/README.md

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

* Update data/mods/Aftershock/README.md

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

* Update data/mods/Aftershock/README.md

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

* Update README.md

* Update README.md

* Update data/mods/Aftershock/README.md

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

* Update data/mods/Aftershock/README.md

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

* Update data/mods/Aftershock/README.md

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

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

* Change pr-validator regexp

* Split summary regex into two lines

* Another edit to pr-validator.yml regex

* Using \s in JS regexp

* shorten the PR template

To reduce amount of scrolling required to fill it

* None category

Further reduce amount of scrolling required

* Update CONTRIBUTING.md

* Newlines where necessary

 for filling in without hitting enter

less _unnecessary_ spaces and newlines

* Unification of PR template newlines for filling in

To match the Summary section

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

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

* cmake linting workflow/action

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

Most 1 max occurence -> UNIQUE

* 2-1

First pass occurrences,  without labs

* 2-2

Lab spawn

* 1-2

Lab stuff freq higher

* 2-3

Vent, surf unique

* 3-1

Locations first pass

* Terrain name adjustments

* 2-4

Bandit stuff occurences

* 4-1

Distances

* 4-2

Distance categories

* 5-1

Sizes

* Tweaks

* Tweaks2

* Symbol

* 6-1

Connections

* Occurrence tuning 1

* Test, revert!

* Final(ish)

* Map

240 range

* Cabin location

* Update overmap.cpp

* Military base

* Map spawn

* Lint

+LMOE without trail

* Lint2

* Huh?

* Industry from, Airport tweaks

* Isherwood tweaks

* Worms, meet can

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

* traps

* changes to forge

* Update forge_of_wonders.json

* reprice rings

* adding some price differences

* Update forge_of_wonders.json

* Update forge_of_wonders.json

* Update enchanted_misc.json

* lint

* Update forge_of_wonders.json

* tr not trap

* minimum charges to start these items

* Update forge_of_wonders.json

* Update traps.json

* Update traps.json

* can't get npc defense trap to work

* trap updates

* Apply suggestions from code review

* rethought traps

* lint

* argh

* eureka

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

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

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

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

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

* Produce warnings to stderr for suspicious items

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

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

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

* Delete recipe_books.json

* Delete spellbooks.json

* Delete itemgroups.json

* druid.json file for wolf summon

* spell scroll for wolf summon

* spellbook table for wolf summon

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

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

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

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

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

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

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

changed the word wolfs to wolves

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

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

Made damage_increment 0.08

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

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

Changed wolfs to wolves

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

* Update druid.json

Changed base cost and base casting time.

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

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

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

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

* Update spellbooks.json

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

* Update druid.json

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

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

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

* Adjust options UI to accommodate longer languages list

* Updated locales in options_manager::update_global_locale()

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

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

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

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

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

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

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

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

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

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

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

* Fix overmap UI not redrawing correctly after slight resizing

* Replace std::bind with lambda to satisfy clang-tidy
2021-01-16 11:49:32 +03:00
Zhilkin Serg 89911613e0 Merge pull request #46777 from BrettDong/lightmap-ub
Fix out-of-bound access to lightmap array
2021-01-16 11:48:31 +03:00
Jamuro-g 39a4b3295b removed contaninlvl from kiddie spoon 2021-01-16 09:38:07 +01:00
Qrox 68c30b1476 Correctly align proficiency percentage in player display menu 2021-01-16 15:24:31 +08:00
Qrox 0585bbf155 Do not show damage info for non-combat AMMO items 2021-01-16 13:56:11 +08:00
Binrui Dong 70416a10db Random blood type follows real world distribution 2021-01-15 20:47:13 -05:00
mqrause ac3a3899cd move condition so cached crafting inventory can be used 2021-01-15 22:33:42 +01:00
Binrui Dong 74ad6d03f7 Fix out-of-bound access to lightmap array 2021-01-15 15:37:35 -05:00
Kevin Granade be19817830 Clean up some radiation effects 2021-01-15 11:13:20 -08:00
Binrui Dong e22f2bd6cb Fix undefined behaviour warning on start up
src/field_type.cpp:154:28: runtime error: member call on address 0x000120756100 which does not point to an object of type 'generic_factory<field_type>'
0x000120756100: note: object has invalid vptr
 00 00 00 00  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  00 00 00 00
              ^~~~~~~~~~~~~~~~~~~~~~~
              invalid vptr
SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior src/field_type.cpp:154:28 in
src/generic_factory.h:461:17: runtime error: member call on address 0x000120756100 which does not point to an object of type 'generic_factory<field_type>'
0x000120756100: note: object has invalid vptr
 00 00 00 00  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  00 00 00 00
              ^~~~~~~~~~~~~~~~~~~~~~~
              invalid vptr
SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior src/generic_factory.h:461:17 in
src/generic_factory.h:147:32: runtime error: member access within address 0x000120756100 which does not point to an object of type 'const generic_factory<field_type>'
0x000120756100: note: object has invalid vptr
 00 00 00 00  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  00 00 00 00
              ^~~~~~~~~~~~~~~~~~~~~~~
              invalid vptr
SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior src/generic_factory.h:147:32 in
src/generic_factory.h:149:24: runtime error: member call on address 0x000120756100 which does not point to an object of type 'generic_factory<field_type>'
0x000120756100: note: object has invalid vptr
 00 00 00 00  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  00 00 00 00
              ^~~~~~~~~~~~~~~~~~~~~~~
              invalid vptr
SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior src/generic_factory.h:149:24 in
src/generic_factory.h:444:73: runtime error: member access within address 0x000120756100 which does not point to an object of type 'const generic_factory<field_type>'
0x000120756100: note: object has invalid vptr
 00 00 00 00  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  00 00 00 00
              ^~~~~~~~~~~~~~~~~~~~~~~
              invalid vptr
SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior src/generic_factory.h:444:73 in
2021-01-15 13:57:01 -05:00
anothersimulacrum 8041d14b7d Display proficiencies contained in book (#46706)
Maybe it could use some color, but I'm fine without adding that.
2021-01-15 10:31:42 -08:00
Fris0uman fa8e28d4d6 Add bleeding butchery action (#45830)
* Add various blood and give it to creatures
* Droop blood without prompt if you're not actually bleeding the animal
* Show "no blood", "no skin" and "no organs" when they have been removed
Co-authored-by: actual-nh <74678550+actual-nh@users.noreply.github.com>
2021-01-15 10:30:59 -08:00
Serhiy Zahoriya 3a3a063152 Don't sort dirnames as it's not used 2021-01-15 17:46:15 +02:00
Angela Graves 4c417895df Merge pull request #46729 from Ramza13/dis_fix
Fix disassemble
2021-01-15 05:41:53 -06:00
Altair ad3141d465 Add a way to quickly check NPC's stats when assign workers to a camp or update workers jobs (#46718) 2021-01-15 09:59:01 +03:00
NoddingCrow 63e93e4848 Allow Amorphous characters to pass through barred window frames (#46721) 2021-01-15 09:58:41 +03:00
Aivean 0f48f1c555 don't serialize pockets that are empty and whose state was not modified since the creation 2021-01-14 22:48:18 -08:00
Jamuro-g b454ad91a9 fixed plastic chunk creation exploit 2021-01-15 07:46:08 +01:00
OlderMoldberg b50cc33965 Grammar fix in crafting.cpp (#46761)
Quick typo fix
2021-01-15 01:32:14 -05:00
Serhiy Zahoriya 6b36a0705e compose.py: sorted os.walk
Print image filename on failure to load it with Vips
2021-01-15 05:10:31 +02:00
Serhiy Zahoriya 8401f1efca lint 2021-01-15 04:38:51 +02:00
Serhiy Zahoriya 2339c05535 Fix oxyacetylene being impossible to craft 2021-01-15 04:28:35 +02:00
Kevin Granade eba1c36e59 Add more crafting test cases 2021-01-14 16:46:34 -08:00
Kevin Granade 8da59a131c add testing for crafting with proficiencies pre-granted
Also fix tests that were leaking gained proficiencies between tests
2021-01-14 16:46:34 -08:00
Kevin Granade 635fcfb97e Supress crafting failures for fully deterministic crafting tests 2021-01-14 16:46:34 -08:00
Kevin Granade 20923b2df8 Automatically determine tools and components to use for crafting skill levelling test 2021-01-14 16:45:26 -08:00
Kevin Granade bb7701dd1f Cache craft item weight and volume 2021-01-14 16:45:26 -08:00
Kevin Granade 3571afe593 Cache that there are no fires to maintain to avoid pointless re-checking 2021-01-14 16:45:26 -08:00
Kevin Granade f1fdf61cd0 Cache crafting continuation requirements 2021-01-14 16:45:26 -08:00
Kevin Granade 448f6032df Scale focus_pool by 1000 fold and remove random elements of focus drain and recovery 2021-01-14 16:45:26 -08:00
Kevin Granade 239ac1f09b Hide focus_pool behind setters and getters 2021-01-14 16:45:26 -08:00
Kevin Granade f67b7817a8 Elinate rng roll from Character::adjust_for_focus() 2021-01-14 16:45:26 -08:00
Kevin Granade 126fc30ae5 Scale skill train() and _exercise values by 100x 2021-01-14 16:45:26 -08:00
Kevin Granade d04aa16c7d Adjust how skill gain from crafting is calculated
This splits the difference between basing the calculation on the actual time to complete the craft
and the nominal time to complete the craft without factoring in proficiency bonuses and helpers and batching.
2021-01-14 16:45:26 -08:00
Kevin Granade 0e78d4b120 Reduce focus pool proportionally to amount of practice performed 2021-01-14 16:45:26 -08:00
Kevin Granade 0261ddb03c Add tests with assertions about skill gain from crafting 2021-01-14 16:45:26 -08:00
Kevin Granade 93e997dcb6 Add tests around focus handling 2021-01-14 16:45:26 -08:00
Zhilkin Serg ad0e7ae601 Merge pull request #46743 from Qrox/veh-fill
Prevent debug message when filling vehicle tank
2021-01-14 20:50:43 +03:00
Zhilkin Serg 6ec6cd88db Merge pull request #46741 from Qrox/protrude
Fix incorrectly used word in fused monster description
2021-01-14 20:49:22 +03:00
Angela Graves 9483769064 Merge pull request #46731 from mqrause/cosmetic_randomization
Randomize cosmetic traits when creating random characters
2021-01-14 05:48:25 -06:00
Qrox 7baa3a78ef Use a more appropriate word 2021-01-14 19:34:50 +08:00
Qrox 1102c7726e Prevent debug message when filling vehicle tank 2021-01-14 19:34:41 +08:00
mqrause e827a0d5d3 randomize cosmetic traits independent of good traits when creating random characters 2021-01-14 00:42:50 +01:00
Ramza13 19b2919388 Fix disassemble 2021-01-13 17:50:57 -05:00
slimeboy460 48699d218c Update migration.json 2021-01-06 01:22:21 -05:00
slimeboy460 92f589c6ed Merge branch 'master' into master 2021-01-05 19:05:15 -10:00
slimeboy460 59c4140d30 Update data/json/obsolete.json
Co-authored-by: Jianxiang Wang (王健翔) <qrox@sina.com>
2021-01-03 13:32:11 -10:00
slimeboy460 f76caebbc4 Update data/json/recipes/recipe_obsolete.json
Co-authored-by: Jianxiang Wang (王健翔) <qrox@sina.com>
2021-01-02 18:16:50 -10:00
slimeboy460 11f8eacc24 Recipe Obsolete 2021-01-02 23:10:17 -05:00
slimeboy460 409d51d27f Recipe instead of item 2021-01-02 22:28:40 -05:00
slimeboy460 a851fceb48 Obsolete steel knuckles 2021-01-02 21:58:50 -05:00
slimeboy460 7ba1e2cd6d Update data/json/items/migration.json
Co-authored-by: Jianxiang Wang (王健翔) <qrox@sina.com>
2021-01-02 16:44:58 -10:00
slimeboy460 1c5d64ba45 Update data/json/items/migration.json
Co-authored-by: Jianxiang Wang (王健翔) <qrox@sina.com>
2021-01-02 16:44:50 -10:00
slimeboy460 75a1429ce9 Damage per second test 2021-01-02 00:16:10 -05:00
ToxiClay b0c57fca88 Switch ported barrel location from muzzle to barrel 2020-12-28 18:27:39 -05:00
slimeboy460 d6d3e22655 Migration Entry 2020-12-27 00:34:29 -05:00
slimeboy460 c737aa0c2f I have no idea if this will work 2020-12-27 00:28:14 -05:00
slimeboy460 7f8af0e7de Update martialarts.json 2020-12-25 20:01:45 -05:00
slimeboy460 355ba7ec67 Update bashing.json 2020-12-25 19:52:42 -05:00
slimeboy460 536ea1343c Update unarmed_weapons.json 2020-12-25 19:49:24 -05:00
2030 changed files with 801853 additions and 478255 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
+54 -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-*,\
@@ -13,6 +37,7 @@ cert-*,\
-cert-err58-cpp,\
clang-diagnostic-*,\
cppcoreguidelines-slicing,\
google-explicit-constructor,\
llvm-namespace-comment,\
misc-*,\
modernize-*,\
@@ -20,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).*'
+43
View File
@@ -0,0 +1,43 @@
# options affecting formatting
format:
# how wide to allow formatted cmake files
line_width: 100
# how many spaces to tab for indent
tab_size: 4
# if true, separate flow control names from their parentheses
separate_ctrl_name_with_space: true # currently ignored by cmake-lint
# if true, separate function names from parentheses with a
separate_fn_name_with_space: false # currently ignored by cmake-lint
# if a statement is wrapped to more than one line, than dangle
# the closing parenthesis on its own line.
dangle_parens: false # currently ignored by cmake-lint
# Format command names consistently as 'lower' or 'upper' case
# 'canonical': like in official documentation
command_case: 'canonical' # currently ignored by cmake-lint
# Format keywords consistently as 'lower' or 'upper' case
keyword_case: 'upper' # currently ignored by cmake-lint
# options affecting comment reflow and formatting
markup:
# enable comment markup parsing and reflow
enable_markup: false
# options affecting linter
lint:
# list of lint codes to disable
# C0113: Missing COMMENT in statement which allows it
disabled_codes: ['C0113']
# regular expression pattern describing valid function names
function_pattern: '[a-z_]+'
# regular expression pattern describing valid names for private variables
# WEIRD: strangely named "directory variable name" in lint output
private_var_pattern: '_[0-9A-Z_]+'
# regular expression pattern describing valid names for public variables (strangely named "directories"?)
# WEIRD: strangely named "directory variable name" in lint output
public_var_pattern: '[0-9A-Z]+'
# regular expression pattern describing valid macro names
macro_pattern: '[a-z_]+'
# regular expression pattern describing valid names for function/macro
# arguments and loop variables
argument_var_pattern: '[A-Z][A-Z0-9_]+'
# require no more than this many newlines between statements
max_statement_spacing: 2
+4 -3
View File
@@ -1,9 +1,10 @@
[flake8]
exclude = .git,__pycache__,lang/json
ignore =
# The following errors were present when starting to use flake8; they need
# to be triaged to determine which we should fix and which we should leave
# permanently ignored
# E265 forces comments to have a space after the '#'. We have a bunch of
# optional debugging code commented out this way, and not having a space is
# a convenient way to distinguish it from proper comments. Maybe we should
# delete that code, but unless that happens leaving E265 disabled.
E265,
# W503 and W504 require line breaks after or before binary operators; you
# can only have one enabled
+2 -1
View File
@@ -3,7 +3,7 @@
#In fact, the code "owners" designation is meant to encourage third party
#individuals to contribute to the mod, with the curators notified for reviews.
/data/mods/Aftershock/ @Maleclypse @John-Candlebury
/data/mods/Aftershock/ @Maleclypse @John-Candlebury @Mom-Bun
/data/mods/DinoMod/ @ephemeralstoryteller @damien @LyleSY
/data/mods/Graphical_Overmap/ @Kilvoctu @Larwck
/data/mods/MMA/ @Hymore246
@@ -28,3 +28,4 @@ magic*.h @KorGgenT
/data/json/snippets/ @I-am-Erk
/gfx/ @I-am-Erk
/tools/ @int-ua
/lang/ @BrettDong
+33 -6
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:
@@ -165,16 +181,27 @@ If you are also looking for suggestions then add a [CR] before the title text
It is not required to solve or reference an open issue to file a PR, however, if you do so, you need to explain the problem your PR is solving in full detail.
### All PRs should have a "Summary" line
### All PRs should have a "Summary" section with one line
Summary is a one-line description of your change that will be extracted and added to [the project changelog](../data/changelog.txt).
The format is: ```SUMMARY: Category "description"```
The format is:
```
#### Summary
Category "description"
```
The categories to choose from are: Features, Content, Interface, Mods, Balance, Bugfixes, Performance, Infrastructure, Build, I18N.
Example: ```SUMMARY: Content "Adds new mutation category 'Mouse'"```
Example:
```
#### Summary
Content "Adds new mutation category 'Mouse'"
```
Or, if you want it treated as a minor tweak that doesn't appear in the changelog:
```SUMMARY: None```
```
#### Summary
None
```
See [the Changelog Guidelines](../doc/CHANGELOG_GUIDELINES.md) for explanations of the categories.
+10 -31
View File
@@ -1,45 +1,24 @@
<!-- HOW TO USE: Under each "#### Heading" below, enter information relevant to your pull request.
Leave the headings unless they don't apply to your PR, and remove the comment blocks (surrounded with <!–– and ––>) when you are done.
NOTE: Please grant permission for repository maintainers to edit your PR. It is EXTREMELY common for PRs to be held up due to trivial changes being requested and the author being unavailable to make them.
-->
NOTE: Please grant permission for repository maintainers to edit your PR. It is EXTREMELY common for PRs to be held up due to trivial changes being requested and the author being unavailable to make them. -->
#### Summary
<!-- This section should consist of exactly one line, formatted like this:
SUMMARY: [Category] "[Briefly describe the change in these quotation marks]"
Do not enter the square brackets []. Category must be one of these:
- Features
- Content
- Interface
- Mods
- Balance
- Bugfixes
- Performance
- Infrastructure
- Build
- I18N
Category "Brief description"
<!-- This section should consist of exactly one line, edit the one above.
Category must be one of these: Features, Content, Interface, Mods, Balance, Bugfixes, Performance, Infrastructure, Build, I18N. Or replace the whole line with just the word None for no changelog entry.
For more on the meaning of each category, see:
https://github.com/CleverRaven/Cataclysm-DDA/blob/master/doc/CHANGELOG_GUIDELINES.md
If approved and merged, your summary will be added to the project changelog:
https://github.com/CleverRaven/Cataclysm-DDA/blob/master/data/changelog.txt
-->
https://github.com/CleverRaven/Cataclysm-DDA/blob/master/data/changelog.txt -->
#### Purpose of change
<!-- With a few sentences, describe your reasons for making this change. If it relates to an existing issue, you can link it with a # followed by the Github issue number, like #1234. If your pull request *fully* resolves an issue, include the word "Fix" or "Fixes" before the issue number, like: Fixes #1234.
If there is no related issue, explain here what issue, feature, or other concern you are addressing. If this is a bugfix, include steps to reproduce the original bug, so your fix can be verified.
-->
<!-- With a few sentences, describe your reasons for making this change. If it relates to an existing issue, you can link it with a # followed by the GitHub issue number, like #1234. If your pull request *fully* resolves an issue, include the word "Fix" or "Fixes" before the issue number, like: Fixes #1234.
If there is no related issue, explain here what issue, feature, or other concern you are addressing. If this is a bugfix, include steps to reproduce the original bug, so your fix can be verified. -->
#### Describe the solution
<!-- How does the feature work, or how does this fix a bug? The easier you make your solution to understand, the faster it can get merged. -->
<!-- How does the feature work, or how does this fix a bug? The easier you make your solution to understand, the faster it can get merged. -->
#### Describe alternatives you've considered
@@ -47,8 +26,8 @@ If there is no related issue, explain here what issue, feature, or other concern
#### Testing
<!-- Describe what steps you took to test that this PR resolved the bug or added the feature, and what tests you performed to make sure it didn't cause any regressions. Also include testing suggestions for reviewers and maintainers. -->
<!-- Describe what steps you took to test that this PR resolved the bug or added the feature, and what tests you performed to make sure it didn't cause any regressions. Also include testing suggestions for reviewers and maintainers. -->
#### Additional context
<!-- Add any other context (such as mock-ups, proof of concepts or screenshots) about the feature or bugfix here. -->
<!-- Add any other context (such as mock-ups, proof of concepts or screenshots) about the feature or bugfix here. -->
+1
View File
@@ -26,6 +26,7 @@ exemptLabels:
- "0.E Content Freeze"
- "0.F Feature Freeze"
- "0.F Content Freeze"
- "0.F String Freeze"
# Set to true to ignore issues in a project (defaults to false)
exemptProjects: true
+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
+33
View File
@@ -0,0 +1,33 @@
name: cmake-format linting
on:
push:
branches:
- master
- 0.F-dev
paths:
- '**/CMakeLists.txt'
- '**.cmake'
- '**.cmake.in'
pull_request:
branches:
- master
- 0.F-dev
paths:
- '**/CMakeLists.txt'
- '**.cmake'
- '**.cmake.in'
jobs:
check:
runs-on: ubuntu-latest
steps:
- name: checkout repository
uses: actions/checkout@v1
with:
fetch-depth: 1
- name: install cmakelang
run: python3 -m pip install -U cmakelang
- name: run cmake-lint
run: python3 -m cmakelang.lint CMakeLists.txt src/CMakeLists.txt data/CMakeLists.txt lang/CMakeLists.txt src/chkjson/CMakeLists.txt tools/format/CMakeLists.txt tools/clang-tidy-plugin/CMakeLists.txt cmake_uninstall.cmake.in -c .cmake-format.yml
+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'
+65 -9
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/**'
@@ -37,40 +39,85 @@ jobs:
matrix:
include:
- compiler: g++-9
os: ubuntu-latest
cmake: 0
tiles: 0
test-stage: 1
native: linux64
gold: 1
lto: 1
title: GCC 9, Ubuntu, Curses, LTO
- compiler: g++-7
os: ubuntu-latest
cmake: 1
tiles: 1
native: linux64
title: GCC 7, Ubuntu, Tiles, CMake
- compiler: g++-8
os: ubuntu-latest
cmake: 0
tiles: 1
sanitize: address
- compiler: clang++-9
native: linux64
title: GCC 8, Ubuntu, Tiles, ASan
- compiler: clang++-12
os: ubuntu-latest
cmake: 0
tiles: 1
sanitize: address,undefined
runs-on: ubuntu-latest
native: linux64
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 }}
LTO: ${{ matrix.lto }}
RELEASE: 1
steps:
- name: checkout repository
uses: actions/checkout@v1
with:
fetch-depth: 1
- name: install dependencies
- name: install dependencies (ubuntu)
if: runner.os == 'Linux'
run: |
sudo apt-get update
sudo apt-get install libncursesw5-dev libsdl2-dev libsdl2-ttf-dev libsdl2-image-dev \
libsdl2-mixer-dev libpulse-dev ccache gettext
libsdl2-mixer-dev libpulse-dev ccache gettext parallel
- name: install old GCC (ubuntu)
if: runner.os == 'Linux' && (matrix.compiler == 'g++-7' || matrix.compiler == 'g++-8')
run: |
sudo apt-get install g++-7 g++-8
- name: install dependencies (mac)
if: runner.os == 'macOS'
run: |
HOMEBREW_NO_AUTO_UPDATE=yes HOMEBREW_NO_INSTALL_CLEANUP=yes brew install sdl2 sdl2_image sdl2_ttf sdl2_mixer gettext ccache parallel
- name: prepare
run: bash ./build-scripts/requirements.sh
- name: Get Date
@@ -78,20 +125,29 @@ jobs:
run: |
echo "::set-output name=date::$(/bin/date -u "+%Y%m%d%H%M")"
shell: bash
- name: ccache cache files
- name: ccache cache files (ubuntu)
if: runner.os == 'Linux'
uses: actions/cache@v2
with:
path: ~/.ccache
key: ccache-${{ matrix.compiler }}-${{ steps.get-date.outputs.date }}
key: ccache-linux-${{ matrix.compiler }}-${{ steps.get-date.outputs.date }}
restore-keys: |
ccache-${{ matrix.compiler }}-
ccache-
ccache-linux-${{ matrix.compiler }}-
- name: ccache cache files (mac)
if: runner.os == 'macOS'
uses: actions/cache@v2
with:
path: /Users/runner/Library/Caches/ccache
key: ccache-mac-${{ matrix.compiler }}-${{ steps.get-date.outputs.date }}
restore-keys: |
ccache-mac-${{ matrix.compiler }}-
- uses: ammaraskar/gcc-problem-matcher@master
- name: build and test
run: bash ./build-scripts/build.sh
- 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
+2 -1
View File
@@ -3,6 +3,7 @@ on:
pull_request:
branches:
- master
- 0.F-dev
types: [opened, edited, synchronize]
jobs:
validate:
@@ -12,5 +13,5 @@ jobs:
- name: "Validate SUMMARY"
uses: CleverRaven/pr-validator@master
with:
description-regex: '(\n|^)\s*`{0,3}SUMMARY: +(None|((Features|Content|Interface|Mods|Balance|Bugfixes|Performance|Infrastructure|Build|I18N) +".*"))`{0,3}\s*(\n|$)'
description-regex: '(\n|^)#### Summary\s+`{0,3}(SUMMARY:\s+)?(None|((Features|Content|Interface|Mods|Balance|Bugfixes|Performance|Infrastructure|Build|I18N) +".*"))`{0,3}\s*(\n|$)'
description-regex-flags: 'i'
+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"
+25
View File
@@ -0,0 +1,25 @@
on:
push:
branches:
- master
paths:
- 'doc/JSON_INFO.md'
name: TOC Generator
jobs:
generateTOC:
if: github.repository == 'CleverRaven/Cataclysm-DDA'
name: Update the table of contents
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: npx doctoc doc/JSON_INFO.md --github
- name: Create Pull Request
uses: peter-evans/create-pull-request@v3
with:
commit-message: Update the table of contents
branch: update-toc
title: Update the table of contents in doc/JSON_INFO.md
body: |
```sh
npx doctoc doc/JSON_INFO.md --github
```
+2
View File
@@ -1,5 +1,7 @@
name: "Push translation template"
concurrency: push_transifex
on:
push:
branches:
+2
View File
@@ -134,12 +134,14 @@ Cataclysm.dmg
.idea/
# test executables and generated data
/tests/obj
/tests/cata_test
/tests/line_test
/tests/map_iterator_test
/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
+7 -4
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,14 +112,13 @@ 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.
directories:
- $HOME/.ccache
- env: CLANG=clang++ NATIVE=osx OSX_MIN=10.13 TILES=1 SOUND=1 BREWGETTEXT=1
- env: CLANG=clang++ OSX_MIN=10.13 TILES=1 SOUND=1
name: "Xcode 10.2 Make build with Tiles and sound (macOS)"
os: osx
osx_image: xcode10.2
@@ -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
+297 -307
View File
@@ -1,82 +1,70 @@
# Main project build script
cmake_minimum_required(VERSION 3.1.4)
PROJECT(CataclysmDDA)
project(CataclysmDDA)
SET(CMAKE_MODULE_PATH
${CMAKE_MODULE_PATH}
${CMAKE_SOURCE_DIR}/CMakeModules
)
set(CMAKE_MODULE_PATH
${CMAKE_MODULE_PATH}
${CMAKE_SOURCE_DIR}/CMakeModules)
SET(CMAKE_TLS_VERIFY ON)
set(CMAKE_TLS_VERIFY ON)
# Build options
option(TILES "Build graphical tileset version." "OFF")
option(CURSES "Build curses version." "ON")
option(SOUND "Support for in-game sounds & music." "OFF")
option(BACKTRACE "Support for printing stack backtraces on crash" "ON")
option(LIBBACKTRACE "Print backtrace with libbacktrace." "OFF")
option(USE_HOME_DIR "Use user's home directory for save files." "ON")
option(LOCALIZE "Support for language localizations. Also enable UTF support." "ON")
option(LANGUAGES "Compile localization files for specified languages." "")
option(DYNAMIC_LINKING "Use dynamic linking. Or use static to remove MinGW dependency instead." "ON")
option(JSON_FORMAT "Build JSON formatter" "OFF")
option(CATA_CCACHE "Try to find and build with ccache" "ON")
option(TILES "Build graphical tileset version." "OFF")
option(CURSES "Build curses version." "ON")
option(SOUND "Support for in-game sounds & music." "OFF")
option(BACKTRACE "Support for printing stack backtraces on crash" "ON")
option(LIBBACKTRACE "Print backtrace with libbacktrace." "OFF")
option(USE_HOME_DIR "Use user's home directory for save files." "ON")
option(LOCALIZE "Support for language localizations. Also enable UTF support." "ON")
option(LANGUAGES "Compile localization files for specified languages." "")
option(DYNAMIC_LINKING
"Use dynamic linking. Or use static to remove MinGW dependency instead." "ON")
option(JSON_FORMAT "Build JSON formatter" "OFF")
option(CATA_CCACHE "Try to find and build with ccache" "ON")
option(CATA_CLANG_TIDY_PLUGIN "Build Cata's custom clang-tidy plugin" "OFF")
set(CATA_CLANG_TIDY_INCLUDE_DIR "" CACHE STRING "Path to internal clang-tidy headers required for plugin (e.g. ClangTidy.h)")
set(CATA_CLANG_TIDY_INCLUDE_DIR "" CACHE STRING
"Path to internal clang-tidy headers required for plugin (e.g. ClangTidy.h)")
set(CATA_CHECK_CLANG_TIDY "" CACHE STRING "Path to check_clang_tidy.py for plugin tests")
set(GIT_BINARY "" CACHE STRING "Git binary name or path.")
set(PREFIX "" CACHE STRING "Location of Data & GFX directories")
set(GIT_BINARY "" CACHE STRING "Git binary name or path.")
set(PREFIX "" CACHE STRING "Location of Data & GFX directories")
include(CTest)
message(STATUS "${PROJECT} build environment --")
message(STATUS "Build realm is: ${CMAKE_SYSTEM_NAME} ${CMAKE_HOST_SYSTEM_PROCESSOR}")
if (NOT CMAKE_BUILD_TYPE)
set(CMAKE_BUILD_TYPE Debug)
endif ()
add_definitions(-DCMAKE)
include(GetGitRevisionDescription)
git_describe(GIT_VERSION --tags --always --match "[0-9A-Z]*.[0-9A-Z]*")
MESSAGE("\n * Cataclysm: Dark Days Ahead is a turn-based survival game set in a post-apocalyptic world.")
MESSAGE(" _________ __ .__ ")
MESSAGE(" \\_ ___ \\ _____ _/ |_ _____ ____ | | ___.__ ______ _____ ")
MESSAGE(" / \\ \\/ \\__ \\ \\ __\\\\__ \\ _/ ___\\ | | < | | / ___/ / \\ ")
MESSAGE(" \\ \\____ / __ \\_ | | / __ \\_\\ \\___ | |__ \\___ | \\___ \\ | Y Y \\ ")
MESSAGE(" \\______ /\(____ / |__| \(____ / \\___ >|____/ / ____|/____ >|__|_| / ")
MESSAGE(" \\/ \\/ \\/ \\/ \\/ \\/ \\/ ")
MESSAGE(" --= Dark Days Ahead =--")
MESSAGE("\n * https://cataclysmdda.org/\n")
MESSAGE(STATUS "${PROJECT} build environment -- \n")
MESSAGE(STATUS "Build realm is : ${CMAKE_SYSTEM_NAME} ${CMAKE_HOST_SYSTEM_PROCESSOR}")
IF(NOT CMAKE_BUILD_TYPE)
set(CMAKE_BUILD_TYPE Debug)
ENDIF(NOT CMAKE_BUILD_TYPE)
ADD_DEFINITIONS(-DCMAKE)
if (NOT ${GIT_VERSION} MATCHES GIT-NOTFOUND)
string(REPLACE "-NOTFOUND" "" GIT_VERSION ${GIT_VERSION})
FILE(WRITE ${CMAKE_SOURCE_DIR}/src/version.h
"// NOLINT(cata-header-guard)\n\#define VERSION \"${GIT_VERSION}\"\n")
MESSAGE(STATUS "${PROJECT_NAME} build version is : ${GIT_VERSION}\n")
ADD_DEFINITIONS(-DGIT_VERSION)
ELSE (NOT ${GIT_VERSION} MATCHES GIT-NOTFOUND)
MESSAGE("")
ENDIF(NOT ${GIT_VERSION} MATCHES GIT-NOTFOUND)
file(WRITE ${CMAKE_SOURCE_DIR}/src/version.h
"// NOLINT(cata-header-guard)\n\#define VERSION \"${GIT_VERSION}\"\n")
message(STATUS "${PROJECT_NAME} build version is: ${GIT_VERSION}")
add_definitions(-DGIT_VERSION)
endif ()
#OS Check Placeholders. Will be used for BINDIST
IF (${CMAKE_SYSTEM_NAME} MATCHES Linux)
SET(_OS_LINUX_ 1)
ENDIF (${CMAKE_SYSTEM_NAME} MATCHES Linux)
if (${CMAKE_SYSTEM_NAME} MATCHES Linux)
set(_OS_LINUX_ 1)
endif ()
IF (${CMAKE_SYSTEM_NAME} MATCHES FreeBSD)
SET(_OS_FREEBSD_ 1)
ENDIF (${CMAKE_SYSTEM_NAME} MATCHES FreeBSD)
if (${CMAKE_SYSTEM_NAME} MATCHES FreeBSD)
set(_OS_FREEBSD_ 1)
endif ()
IF(${CMAKE_SYSTEM_NAME} MATCHES Darwin)
SET(_OS_DARWIN_ 1)
SET(LOCALIZE OFF)
MESSAGE(STATUS "Disable internationalization on Darwin as it is not supported")
ENDIF(${CMAKE_SYSTEM_NAME} MATCHES Darwin)
if (${CMAKE_SYSTEM_NAME} MATCHES Darwin)
set(_OS_DARWIN_ 1)
add_definitions(-DMACOSX)
if (${TILES})
add_definitions(-DOSX_SDL2_LIBS)
endif ()
endif ()
include(CheckCXXCompilerFlag)
@@ -87,286 +75,291 @@ include(CheckCXXCompilerFlag)
#SET(CMAKE_SHARED_LIBRARY_C_FLAGS "${CMAKE_SHARED_LIBRARY_C_FLAGS} -m32")
#SET(CMAKE_SHARED_LIBRARY_CXX_FLAGS "${CMAKE_SHARED_LIBRARY_CXX_FLAGS} -m32")
IF (NOT DYNAMIC_LINKING)
SET(CMAKE_FIND_LIBRARY_SUFFIXES ".a;.dll.a")
SET(BUILD_SHARED_LIBRARIES OFF)
if (NOT DYNAMIC_LINKING)
set(CMAKE_FIND_LIBRARY_SUFFIXES ".a;.dll.a")
set(BUILD_SHARED_LIBRARIES OFF)
check_cxx_compiler_flag (-static HAVE_STATIC_FLAG)
IF(HAVE_STATIC_FLAG)
SET(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -static")
ENDIF(HAVE_STATIC_FLAG)
if (HAVE_STATIC_FLAG)
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -static")
endif ()
# Workaround for cmake link library guesser
SET(CMAKE_EXE_LINK_DYNAMIC_C_FLAGS) # remove -Wl,-Bdynamic
SET(CMAKE_EXE_LINK_DYNAMIC_CXX_FLAGS)
SET(CMAKE_SHARED_LIBRARY_C_FLAGS) # remove -fPIC
SET(CMAKE_SHARED_LIBRARY_CXX_FLAGS)
SET(CMAKE_SHARED_LIBRARY_LINK_C_FLAGS) # remove -rdynamic
SET(CMAKE_SHARED_LIBRARY_LINK_CXX_FLAGS)
ELSE (NOT DYNAMIC_LINKING)
IF(MINGW AND NOT CMAKE_CXX_COMPILER_ID MATCHES "Clang")
# Avoid depending on MinGW runtime DLLs
SET(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -static-libgcc -static-libstdc++")
ENDIF(MINGW AND NOT CMAKE_CXX_COMPILER_ID MATCHES "Clang")
ENDIF (NOT DYNAMIC_LINKING)
set(CMAKE_EXE_LINK_DYNAMIC_C_FLAGS) # remove -Wl,-Bdynamic
set(CMAKE_EXE_LINK_DYNAMIC_CXX_FLAGS)
set(CMAKE_SHARED_LIBRARY_C_FLAGS) # remove -fPIC
set(CMAKE_SHARED_LIBRARY_CXX_FLAGS)
set(CMAKE_SHARED_LIBRARY_LINK_C_FLAGS) # remove -rdynamic
set(CMAKE_SHARED_LIBRARY_LINK_CXX_FLAGS)
else ()
if (MINGW AND NOT CMAKE_CXX_COMPILER_ID MATCHES "Clang")
# Avoid depending on MinGW runtime DLLs
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -static-libgcc -static-libstdc++")
endif ()
endif ()
# System specific actions
IF (${CMAKE_SYSTEM_NAME} MATCHES Linux OR ${CMAKE_SYSTEM_NAME} MATCHES FreeBSD)
IF(NOT DATA_PREFIX)
SET( DATA_PREFIX ${CMAKE_INSTALL_PREFIX}/share/cataclysm-dda)
ENDIF(NOT DATA_PREFIX)
IF(NOT LOCALE_DIR)
SET( LOCALE_DIR ${CMAKE_INSTALL_PREFIX}/share/locale)
ENDIF(NOT LOCALE_DIR)
IF(NOT BIN_PREFIX)
SET( BIN_PREFIX ${CMAKE_INSTALL_PREFIX}/bin)
ENDIF(NOT BIN_PREFIX)
IF(NOT DESKTOP_ENTRY_PATH)
SET( DESKTOP_ENTRY_PATH ${CMAKE_INSTALL_PREFIX}/share/applications)
ENDIF(NOT DESKTOP_ENTRY_PATH)
IF(NOT PIXMAPS_ENTRY_PATH)
SET( PIXMAPS_ENTRY_PATH ${CMAKE_INSTALL_PREFIX}/share/icons/hicolor)
ENDIF(NOT PIXMAPS_ENTRY_PATH)
IF(NOT PIXMAPS_UNITY_ENTRY_PATH)
SET( PIXMAPS_UNITY_ENTRY_PATH ${CMAKE_INSTALL_PREFIX}/share/icons/ubuntu-mono-dark)
ENDIF(NOT PIXMAPS_UNITY_ENTRY_PATH)
IF(NOT MANPAGE_ENTRY_PATH)
SET( MANPAGE_ENTRY_PATH ${CMAKE_INSTALL_PREFIX}/share/man)
ENDIF(NOT MANPAGE_ENTRY_PATH)
ENDIF (${CMAKE_SYSTEM_NAME} MATCHES Linux OR ${CMAKE_SYSTEM_NAME} MATCHES FreeBSD)
if (${CMAKE_SYSTEM_NAME} MATCHES Linux OR ${CMAKE_SYSTEM_NAME} MATCHES FreeBSD)
if (NOT DATA_PREFIX)
set(DATA_PREFIX ${CMAKE_INSTALL_PREFIX}/share/cataclysm-dda)
endif ()
if (NOT LOCALE_DIR)
set(LOCALE_DIR ${CMAKE_INSTALL_PREFIX}/share/locale)
endif ()
if (NOT BIN_PREFIX)
set(BIN_PREFIX ${CMAKE_INSTALL_PREFIX}/bin)
endif ()
if (NOT DESKTOP_ENTRY_PATH)
set(DESKTOP_ENTRY_PATH ${CMAKE_INSTALL_PREFIX}/share/applications)
endif ()
if (NOT PIXMAPS_ENTRY_PATH)
set(PIXMAPS_ENTRY_PATH ${CMAKE_INSTALL_PREFIX}/share/icons/hicolor)
endif ()
if (NOT PIXMAPS_UNITY_ENTRY_PATH)
set(PIXMAPS_UNITY_ENTRY_PATH ${CMAKE_INSTALL_PREFIX}/share/icons/ubuntu-mono-dark)
endif ()
if (NOT MANPAGE_ENTRY_PATH)
set(MANPAGE_ENTRY_PATH ${CMAKE_INSTALL_PREFIX}/share/man)
endif ()
endif ()
IF (${CMAKE_SYSTEM_NAME} MATCHES Windows)
IF(NOT DATA_PREFIX)
SET(DATA_PREFIX ${CMAKE_INSTALL_PREFIX})
ENDIF(NOT DATA_PREFIX)
IF(NOT LOCALE_DIR)
SET(LOCALE_DIR ${CMAKE_INSTALL_PREFIX})
ENDIF(NOT LOCALE_DIR)
IF(NOT BIN_PREFIX)
SET(BIN_PREFIX ${CMAKE_INSTALL_PREFIX})
ENDIF(NOT BIN_PREFIX)
ENDIF (${CMAKE_SYSTEM_NAME} MATCHES Windows)
if (${CMAKE_SYSTEM_NAME} MATCHES Windows)
if (NOT DATA_PREFIX)
set(DATA_PREFIX ${CMAKE_INSTALL_PREFIX})
endif ()
if (NOT LOCALE_DIR)
set(LOCALE_DIR ${CMAKE_INSTALL_PREFIX})
endif ()
if (NOT BIN_PREFIX)
set(BIN_PREFIX ${CMAKE_INSTALL_PREFIX})
endif ()
endif ()
MESSAGE(STATUS "${PROJECT_NAME} build options --\n")
message(STATUS "${PROJECT_NAME} build options --")
# Preset variables
IF(NOT LANGUAGES)
if (NOT LANGUAGES)
# English is included to workaround a libintl bug that affects performance
# on MinGW targets. See lang/CMakeList.txt for more information.
SET (LANGUAGES en de es_AR es_ES fr it_IT ja ko pt_BR ru zh_CN zh_TW)
ENDIF(NOT LANGUAGES)
set(LANGUAGES en de es_AR es_ES fr it_IT ja ko pt_BR ru zh_CN zh_TW)
endif ()
IF (GIT_BINARY)
SET(GIT_EXECUTABLE ${GIT_BINARY})
ELSE (GIT_BINARY)
FIND_PACKAGE(Git)
IF (NOT GIT_FOUND)
MESSAGE(WARNING "Git binary not found. Build version will be set to NULL. Install Git package or use -DGIT_BINARY to set path to git binary.")
ENDIF (NOT GIT_FOUND)
ENDIF (GIT_BINARY)
if (GIT_BINARY)
set(GIT_EXECUTABLE ${GIT_BINARY})
else ()
find_package(Git)
if (NOT GIT_FOUND)
message(WARNING
"Git binary not found. Build version will be set to NULL. \
Install Git package or use -DGIT_BINARY to set path to git binary.")
endif ()
endif ()
IF (PREFIX)
ADD_DEFINITIONS(-DPREFIX=${PREFIX})
ENDIF (PREFIX)
if (PREFIX)
add_definitions(-DPREFIX=${PREFIX})
endif ()
# Can't compile curses and tiles build's at same time
IF(TILES)
SET(CURSES OFF)
ENDIF(TILES)
if (TILES)
set(CURSES OFF)
endif ()
# Set build types and display info
IF(CMAKE_BUILD_TYPE STREQUAL Debug)
MESSAGE("\n")
MESSAGE(STATUS "Build ${PROJECT} in development mode --\n")
MESSAGE(STATUS "Binaries will be located in: " ${CMAKE_SOURCE_DIR})
SET(CMAKE_VERBOSE_MAKEFILE ON)
if (CMAKE_BUILD_TYPE STREQUAL Debug)
message(STATUS "Build ${PROJECT} in development mode --")
message(STATUS "Binaries will be located in: " ${CMAKE_SOURCE_DIR})
set(CMAKE_VERBOSE_MAKEFILE ON)
# Since CataclysmDDA does not respect PREFIX for development builds
# and has funny path handlers, we should create resulting Binaries
# in the source directory
SET(CMAKE_RUNTIME_OUTPUT_DIRECTORY
${CMAKE_SOURCE_DIR}
CACHE PATH "Single Directory for all Executables."
)
SET(BIN_PREFIX ${CMAKE_SOURCE_DIR})
ELSE (CMAKE_BUILD_TYPE STREQUAL Debug)
MESSAGE(STATUS "CMAKE_INSTALL_PREFIX : ${CMAKE_INSTALL_PREFIX}")
MESSAGE(STATUS "BIN_PREFIX : ${BIN_PREFIX}")
MESSAGE(STATUS "DATA_PREFIX : ${DATA_PREFIX}")
IF(LOCALIZE)
MESSAGE(STATUS "LOCALE_PATH : ${LOCALE_DIR}")
ENDIF(LOCALIZE)
MESSAGE(STATUS "DESKTOP_ENTRY_PATH : ${DESKTOP_ENTRY_PATH}")
MESSAGE(STATUS "PIXMAPS_ENTRY_PATH : ${PIXMAPS_ENTRY_PATH}")
MESSAGE(STATUS "PIXMAPS_UNITY_ENTRY_PATH : ${PIXMAPS_UNITY_ENTRY_PATH}")
MESSAGE(STATUS "MANPAGE_ENTRY_PATH : ${MANPAGE_ENTRY_PATH}\n")
ADD_DEFINITIONS(-DRELEASE)
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_SOURCE_DIR} CACHE PATH
"Single Directory for all Executables.")
set(BIN_PREFIX ${CMAKE_SOURCE_DIR})
else ()
message(STATUS "CMAKE_INSTALL_PREFIX : ${CMAKE_INSTALL_PREFIX}")
message(STATUS "BIN_PREFIX : ${BIN_PREFIX}")
message(STATUS "DATA_PREFIX : ${DATA_PREFIX}")
if (LOCALIZE)
message(STATUS "LOCALE_PATH : ${LOCALE_DIR}")
endif ()
message(STATUS "DESKTOP_ENTRY_PATH : ${DESKTOP_ENTRY_PATH}")
message(STATUS "PIXMAPS_ENTRY_PATH : ${PIXMAPS_ENTRY_PATH}")
message(STATUS "PIXMAPS_UNITY_ENTRY_PATH : ${PIXMAPS_UNITY_ENTRY_PATH}")
message(STATUS "MANPAGE_ENTRY_PATH : ${MANPAGE_ENTRY_PATH}")
add_definitions(-DRELEASE)
# Use PREFIX as storage of data,gfx, etc.. Useful only on *nix OS.
IF (PREFIX AND NOT WIN32)
ADD_DEFINITIONS(-DDATA_DIR_PREFIX)
ENDIF (PREFIX AND NOT WIN32)
ENDIF (CMAKE_BUILD_TYPE STREQUAL Debug)
if (PREFIX AND NOT WIN32)
add_definitions(-DDATA_DIR_PREFIX)
endif ()
endif ()
MESSAGE(STATUS "GIT_BINARY : ${GIT_EXECUTABLE}")
MESSAGE(STATUS "DYNAMIC_LINKING : ${DYNAMIC_LINKING}")
MESSAGE(STATUS "TILES : ${TILES}")
MESSAGE(STATUS "CURSES : ${CURSES}")
MESSAGE(STATUS "SOUND : ${SOUND}")
MESSAGE(STATUS "BACKTRACE : ${BACKTRACE}")
MESSAGE(STATUS "LOCALIZE : ${LOCALIZE}")
MESSAGE(STATUS "USE_HOME_DIR : ${USE_HOME_DIR}\n")
message(STATUS "GIT_BINARY : ${GIT_EXECUTABLE}")
message(STATUS "DYNAMIC_LINKING : ${DYNAMIC_LINKING}")
message(STATUS "TILES : ${TILES}")
message(STATUS "CURSES : ${CURSES}")
message(STATUS "SOUND : ${SOUND}")
message(STATUS "BACKTRACE : ${BACKTRACE}")
message(STATUS "LOCALIZE : ${LOCALIZE}")
message(STATUS "USE_HOME_DIR : ${USE_HOME_DIR}")
message(STATUS "LANGUAGES : ${LANGUAGES}")
message(STATUS "See doc/COMPILING/COMPILING-CMAKE.md for details and more info --")
MESSAGE(STATUS "LANGUAGES : ${LANGUAGES}\n")
MESSAGE(STATUS "See INSTALL file for details and more info --\n")
IF(MSVC)
if(CMAKE_SIZEOF_VOID_P EQUAL 8)
add_definitions(-D_AMD64_)
else()
add_definitions(-D_X86_)
endif()
ELSE()
SET(CATA_WARNINGS
"-Werror -Wall -Wextra \
-Wformat-signedness \
-Wlogical-op \
-Wmissing-declarations \
-Wmissing-noreturn \
-Wnon-virtual-dtor \
-Wold-style-cast \
-Woverloaded-virtual \
-Wpedantic \
-Wsuggest-override \
-Wunused-macros \
-Wzero-as-null-pointer-constant \
-Wno-unknown-warning-option")
IF (NOT ${CMAKE_SYSTEM_NAME} MATCHES Windows)
SET(CATA_WARNINGS "${CATA_WARNINGS} -Wredundant-decls")
ENDIF()
SET(CATA_OTHER_FLAGS "${CATA_OTHER_FLAGS} -fsigned-char")
if (MSVC)
if (CMAKE_SIZEOF_VOID_P EQUAL 8)
add_definitions(-D_AMD64_)
else ()
add_definitions(-D_X86_)
endif ()
else (MSVC)
set(CATA_WARNINGS
"-Werror -Wall -Wextra \
-Wformat-signedness \
-Wlogical-op \
-Wmissing-declarations \
-Wmissing-noreturn \
-Wnon-virtual-dtor \
-Wold-style-cast \
-Woverloaded-virtual \
-Wpedantic \
-Wsuggest-override \
-Wunused-macros \
-Wzero-as-null-pointer-constant \
-Wno-unknown-warning-option")
if (NOT ${CMAKE_SYSTEM_NAME} MATCHES Windows)
set(CATA_WARNINGS "${CATA_WARNINGS} -Wredundant-decls")
endif ()
set(CATA_OTHER_FLAGS "${CATA_OTHER_FLAGS} -fsigned-char")
# Compact the whitespace in the warning string
string(REGEX REPLACE "[\t ]+" " " CATA_WARNINGS "${CATA_WARNINGS}")
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${CATA_WARNINGS} ${CATA_OTHER_FLAGS}")
SET(CMAKE_CXX_FLAGS_DEBUG "-Og -g")
ENDIF()
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${CATA_WARNINGS} ${CATA_OTHER_FLAGS}")
set(CMAKE_CXX_FLAGS_DEBUG "-Og -g")
endif ()
SET(CMAKE_CXX_STANDARD 14)
set(CMAKE_CXX_STANDARD 14)
# Force out-of-source build
IF(${CMAKE_SOURCE_DIR} STREQUAL ${CMAKE_BINARY_DIR})
MESSAGE(FATAL_ERROR
"This project requires an out of source build. Remove the file 'CMakeCache.txt' found in this directory before continuing, create a separate build
directory and run 'cmake [options] <srcs>' from there.\nSee INSTALL file for details and more info\n"
)
ENDIF(${CMAKE_SOURCE_DIR} STREQUAL ${CMAKE_BINARY_DIR})
if (${CMAKE_SOURCE_DIR} STREQUAL ${CMAKE_BINARY_DIR})
message(FATAL_ERROR
"This project requires an out of source build. \
Remove the file 'CMakeCache.txt' found in this directory before continuing; \
create a separate build directory and run 'cmake [options] <srcs>' from there. \
See doc/COMPILING/COMPILING-CMAKE.md for details and more info.")
endif ()
#SET(THREADS_USE_PTHREADS_WIN32 True)
SET(CMAKE_THREAD_PREFER_PTHREAD True)
FIND_PACKAGE(Threads REQUIRED)
#set(THREADS_USE_PTHREADS_WIN32 True)
set(CMAKE_THREAD_PREFER_PTHREAD True)
find_package(Threads REQUIRED)
# Check for build types and libraries
IF(TILES)
if (TILES)
# Find SDL, SDL_ttf & SDL_image for graphical install
MESSAGE(STATUS "Searching for SDL2 library --")
FIND_PACKAGE(SDL2)
IF(NOT SDL2_FOUND)
MESSAGE(FATAL_ERROR
"This project requires SDL2 to be installed to be compiled in graphical mode. Please install the SDL2 development libraries, or try compiling
without the -DTILES=1 for a text only compilation.\nSee INSTALL file for details and more info\n"
)
ENDIF(NOT SDL2_FOUND)
message(STATUS "Searching for SDL2 library --")
find_package(SDL2)
if (NOT SDL2_FOUND)
message(FATAL_ERROR
"This project requires SDL2 to be installed to compile in graphical mode. \
Please install the SDL2 development libraries, \
or try compiling without -DTILES=1 for a text-only compilation. \
See doc/COMPILING/COMPILING-CMAKE.md for details and more info.")
endif ()
IF (NOT DYNAMIC_LINKING)
# SDL, SDL_Image, SDL_ttf deps are required for static build
MESSAGE(STATUS "Searching for SDL deps libraries --")
FIND_PACKAGE(Freetype REQUIRED)
FIND_PACKAGE(PNG REQUIRED)
FIND_PACKAGE(JPEG REQUIRED)
FIND_PACKAGE(ZLIB REQUIRED)
FIND_PACKAGE(BZip2 REQUIRED)
ENDIF (NOT DYNAMIC_LINKING)
if (NOT DYNAMIC_LINKING)
# SDL, SDL_Image, SDL_ttf deps are required for static build
message(STATUS "Searching for SDL deps libraries --")
find_package(Freetype REQUIRED)
find_package(PNG REQUIRED)
find_package(JPEG REQUIRED)
find_package(ZLIB REQUIRED)
find_package(BZip2 REQUIRED)
endif ()
MESSAGE(STATUS "Searching for SDL2_TTF library --")
FIND_PACKAGE(SDL2_ttf)
IF(NOT SDL2_TTF_FOUND)
MESSAGE(FATAL_ERROR
"This project requires SDL2_ttf to be installed to be compiled in graphical mode. Please install the SDL2_ttf development libraries, or try
compiling without the -DTILES=1 for a text only compilation.\nSee INSTALL file for details and moreinfo\n"
)
ENDIF(NOT SDL2_TTF_FOUND)
message(STATUS "Searching for SDL2_TTF library --")
find_package(SDL2_ttf)
if (NOT SDL2_TTF_FOUND)
message(FATAL_ERROR
"This project requires SDL2_ttf to be installed to compile in graphical mode. \
Please install the SDL2_ttf development libraries, \
or try compiling without -DTILES=1 for a text-only compilation. \
See doc/COMPILING/COMPILING-CMAKE.md for details and more info.")
endif ()
MESSAGE(STATUS "Searching for SDL2_image library --\n")
FIND_PACKAGE(SDL2_image)
IF(NOT SDL2_IMAGE_FOUND)
MESSAGE(FATAL_ERROR
"This project requires SDL2_image to be installed to be compiled in graphical mode. Please install the SDL2_image development libraries, or try
compiling without the -DTILES=1 for a text only compilation.\nSee INSTALL file for details and more info\n"
)
ENDIF(NOT SDL2_IMAGE_FOUND)
ADD_DEFINITIONS(-DTILES)
ENDIF(TILES)
message(STATUS "Searching for SDL2_image library --")
find_package(SDL2_image)
if (NOT SDL2_IMAGE_FOUND)
message(FATAL_ERROR
"This project requires SDL2_image to be installed to compile in graphical mode. \
Please install the SDL2_image development libraries, \
or try compiling without -DTILES=1 for a text-only compilation. \
See doc/COMPILING/COMPILING-CMAKE.md for details and more info.")
endif ()
add_definitions(-DTILES)
endif ()
IF(CURSES)
if (CURSES)
# Find the ncurses library for a text based compile
MESSAGE(STATUS "Searching for Curses library --\n")
SET(CURSES_NEED_NCURSES TRUE)
SET(CURSES_NEED_WIDE TRUE)
FIND_PACKAGE(Curses)
IF(NOT CURSES_FOUND)
MESSAGE(FATAL_ERROR
"This project requires ncurses to be installed to be compiled in text only mode. Please install the ncurses development libraries, or try compiling
with the -DTILES=1 for a graphical compilation.\nSee INSTALL file for details and more info\n"
)
ENDIF(NOT CURSES_FOUND)
ENDIF(CURSES)
message(STATUS "Searching for Curses library --")
set(CURSES_NEED_NCURSES TRUE)
set(CURSES_NEED_WIDE TRUE)
find_package(Curses)
if (NOT CURSES_FOUND)
message(FATAL_ERROR
"This project requires ncurses to be installed to be compiled in text-only mode. \
Please install the ncurses development libraries, \
or try compiling with -DTILES=1 for a graphical compilation. \
See doc/COMPILING/COMPILING-CMAKE.md for details and more info")
endif ()
endif ()
IF(SOUND)
if (SOUND)
# You need TILES to be able to use SOUND
IF(NOT TILES)
MESSAGE(FATAL_ERROR
"You must enable graphical support with -DTILES=1 to be able to enable sound support.\nSee INSTALL file for details and more info\n"
)
ENDIF(NOT TILES)
if (NOT TILES)
message(FATAL_ERROR
"You must enable graphical support with -DTILES=1 \
to be able to enable sound support. \
See doc/COMPILING/COMPILING-CMAKE.md for details and more info.")
endif ()
# Sound requires SDL_mixer library
MESSAGE(STATUS "Searching for SDL2_mixer library --\n")
FIND_PACKAGE(SDL2_mixer)
IF(NOT SDL2_MIXER_FOUND)
MESSAGE(FATAL_ERROR
"You need the SDL2_mixer development library to be able to compile with sound enabled.\nSee INSTALL file for details and more info\n"
)
ENDIF(NOT SDL2_MIXER_FOUND)
ENDIF(SOUND)
message(STATUS "Searching for SDL2_mixer library --")
find_package(SDL2_mixer)
if (NOT SDL2_MIXER_FOUND)
message(FATAL_ERROR
"You need the SDL2_mixer development library \
to be able to compile with sound enabled. \
See doc/COMPILING/COMPILING-CMAKE.md for details and more info.")
endif ()
endif ()
IF(BACKTRACE)
ADD_DEFINITIONS(-DBACKTRACE)
IF(LIBBACKTRACE)
ADD_DEFINITIONS(-DLIBBACKTRACE)
ENDIF(LIBBACKTRACE)
ENDIF(BACKTRACE)
if (BACKTRACE)
add_definitions(-DBACKTRACE)
if (LIBBACKTRACE)
add_definitions(-DLIBBACKTRACE)
endif (LIBBACKTRACE)
endif (BACKTRACE)
# Ok. Now create build and install recipes
IF(LOCALIZE)
IF(WIN32)
FIND_PACKAGE(Libintl)
IF(NOT LIBINTL_FOUND)
MESSAGE(FATAL_ERROR
"You need the libintl development library to be able to compile with Localize support.\nSee INSTALL file for details and more info\n"
)
ENDIF(NOT LIBINTL_FOUND)
FIND_PACKAGE(Iconv)
IF(NOT ICONV_FOUND)
MESSAGE(FATAL_ERROr
"You need the iconv development library to be able to compile with Localize support.\nSee INSTALL file for details and more info\n"
)
ENDIF(NOT ICONV_FOUND)
ENDIF(WIN32)
if (LOCALIZE)
if (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 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)
ENDIF(LOCALIZE)
add_definitions(-DLOCALIZE)
endif ()
IF(USE_HOME_DIR)
ADD_DEFINITIONS(-DUSE_HOME_DIR)
ENDIF(USE_HOME_DIR)
if (USE_HOME_DIR)
add_definitions(-DUSE_HOME_DIR)
endif ()
add_subdirectory(src)
add_subdirectory(data)
@@ -381,21 +374,18 @@ if (CATA_CLANG_TIDY_PLUGIN)
add_subdirectory(tools/clang-tidy-plugin)
endif()
CONFIGURE_FILE(
"${CMAKE_CURRENT_SOURCE_DIR}/cmake_uninstall.cmake.in"
"${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake"
IMMEDIATE @ONLY
)
configure_file(
"${CMAKE_CURRENT_SOURCE_DIR}/cmake_uninstall.cmake.in"
"${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake"
IMMEDIATE @ONLY)
ADD_CUSTOM_TARGET(uninstall
"${CMAKE_COMMAND}"
-P "${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake"
)
add_custom_target(uninstall
"${CMAKE_COMMAND}"
-P "${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake")
find_program(CCACHE_FOUND ccache)
if(CCACHE_FOUND AND CATA_CCACHE)
if (CCACHE_FOUND AND CATA_CCACHE)
set_property(GLOBAL PROPERTY RULE_LAUNCH_COMPILE ccache)
set_property(GLOBAL PROPERTY RULE_LAUNCH_LINK ccache)
endif()
endif ()
# vim:noet
+2
View File
@@ -10,6 +10,8 @@ PLF List and PLF Colony (src/list.h, src/colony.h) are licensed under the zLib l
getpost (tools/json_tools/format/getpost.h) is licensed under the MIT license, see file for text of license.
libintl-lite is licensed under Boost Software License 1.0. Visit https://www.boost.org/users/license.html to read the license.
libbacktrace is licensed under a BSD license (https://github.com/ianlancetaylor/libbacktrace/blob/master/LICENSE). The full license text is as follows:
# Copyright (C) 2012-2016 Free Software Foundation, Inc.
+89 -33
View File
@@ -55,6 +55,8 @@
# make SANITIZE=address
# Change mapsize (reality bubble size)
# make MAPSIZE=<size>
# Enable the string id debugging helper
# make STRING_ID_DEBUG=1
# Adjust names of build artifacts (for example to allow easily toggling between build types).
# make BUILD_PREFIX="release-"
# Generate a build artifact prefix from the other build flags.
@@ -136,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
@@ -186,6 +188,21 @@ ifdef MSYSTEM
MSYS2 = 1
endif
ifneq (,$(findstring clang,$(COMPILER)))
CLANG = $(COMPILER)
endif
OS = $(shell uname -s)
ifneq ($(findstring Darwin,$(OS)),)
ifndef NATIVE
NATIVE = osx
endif
ifndef CLANG
CLANG = 1
endif
endif
# Default to disabling clang
ifndef CLANG
CLANG = 0
@@ -235,8 +252,6 @@ ifdef AUTO_BUILD_PREFIX
export BUILD_PREFIX
endif
OS = $(shell uname -s)
# if $(OS) contains 'BSD'
ifneq ($(findstring BSD,$(OS)),)
BSD = 1
@@ -248,6 +263,10 @@ else
CCACHEBIN = ccache
endif
ifeq ($(STRING_ID_DEBUG), 1)
DEFINES += -DCATA_STRING_ID_DEBUGGING
endif
# This sets CXX and so must be up here
ifneq ($(CLANG), 0)
# Allow setting specific CLANG version
@@ -259,9 +278,18 @@ ifneq ($(CLANG), 0)
ifeq ($(NATIVE), osx)
USE_LIBCXX = 1
endif
ifeq ($(BSD), 1)
ifndef USE_LIBCXX
USE_LIBCXX = 1
endif
endif
ifdef USE_LIBCXX
OTHERS += -stdlib=libc++
LDFLAGS += -stdlib=libc++
else
# clang with glibc 2.31+ will cause linking error on math functions
# this is a workaround (see https://github.com/google/filament/issues/2146)
CXXFLAGS += -fno-builtin
endif
ifeq ($(CCACHE), 1)
CXX = CCACHE_CPP2=1 $(CCACHEBIN) $(CROSS)$(CLANGCMD)
@@ -278,9 +306,14 @@ else
endif
# Expand at reference time to avoid recursive reference
OS_COMPILER := $(CXX)
ifneq ($(COMPILER),)
OS_COMPILER := $(COMPILER)
OS_LINKER := $(COMPILER)
else
OS_COMPILER := $(CXX)
OS_LINKER := $(CXX)
endif
# Appears that the default value of $LD is unsuitable on most systems
OS_LINKER := $(CXX)
ifeq ($(CCACHE), 1)
CXX = $(CCACHEBIN) $(CROSS)$(OS_COMPILER)
LD = $(CCACHEBIN) $(CROSS)$(OS_LINKER)
@@ -299,7 +332,7 @@ CXXFLAGS += -ffast-math
LDFLAGS += $(PROFILE)
ifneq ($(SANITIZE),)
SANITIZE_FLAGS := -fsanitize=$(SANITIZE) -fno-sanitize-recover=all
SANITIZE_FLAGS := -fsanitize=$(SANITIZE) -fno-sanitize-recover=all -fno-omit-frame-pointer
CXXFLAGS += $(SANITIZE_FLAGS)
LDFLAGS += $(SANITIZE_FLAGS)
endif
@@ -346,6 +379,7 @@ ifeq ($(RELEASE), 1)
LTOFLAGS += -flto=jobserver -flto-odr-type-merging
endif
endif
LTOFLAGS += -Wodr
CXXFLAGS += $(LTOFLAGS)
# OTHERS += -mmmx -m3dnow -msse -msse2 -msse3 -mfpmath=sse -mtune=native
@@ -450,7 +484,7 @@ ifeq ($(NATIVE), linux64)
TARGETSYSTEM=LINUX
ifdef GOLD
CXXFLAGS += -fuse-ld=gold
LDFLAGS += -fuse-ld=gold
LDFLAGS += -fuse-ld=gold -Wl,--detect-odr-violations
endif
else
# Linux 32-bit
@@ -460,17 +494,29 @@ else
TARGETSYSTEM=LINUX
ifdef GOLD
CXXFLAGS += -fuse-ld=gold
LDFLAGS += -fuse-ld=gold
LDFLAGS += -fuse-ld=gold -Wl,--detect-odr-violations
endif
endif
endif
# OSX
ifeq ($(NATIVE), osx)
ifneq ($(CLANG), 0)
OSX_MIN = 10.7
else
OSX_MIN = 10.5
ifeq ($(OSX_MIN),)
ifneq ($(findstring Darwin,$(OS)),)
OSX_MIN = $(shell sw_vers -productVersion | awk -F '.' '{print $$1 "." $$2}')
else
ifneq ($(CLANG), 0)
ifneq ($(SANITIZE),)
# sanitizers does not function properly (e.g. false positive errors) if OSX_MIN < 10.9
# https://github.com/llvm/llvm-project/blob/release/11.x/compiler-rt/CMakeLists.txt#L183
OSX_MIN = 10.9
else
OSX_MIN = 10.7
endif
else
OSX_MIN = 10.5
endif
endif
endif
DEFINES += -DMACOSX
CXXFLAGS += -mmacosx-version-min=$(OSX_MIN)
@@ -495,15 +541,15 @@ ifeq ($(NATIVE), osx)
LDFLAGS += -L$(LIBSDIR)/gettext/lib
CXXFLAGS += -I$(LIBSDIR)/gettext/include
endif
# recent versions of brew will not allow you to link
ifeq ($(BREWGETTEXT), 1)
# native ARM Homebrew is installed to /opt/homebrew
ifneq ("$(wildcard /opt/homebrew)", "")
LDFLAGS += -L/opt/homebrew/lib
CXXFLAGS += -I/opt/homebrew/include
else
LDFLAGS += -L/usr/local/opt/gettext/lib
CXXFLAGS += -I/usr/local/opt/gettext/include
# link to gettext from Homebrew if it exists
# Homebrew may be installed in /usr/local or /opt/homebrew
ifneq ("$(wildcard /usr/local/opt/gettext)", "")
LDFLAGS += -L/usr/local/opt/gettext/lib
CXXFLAGS += -I/usr/local/opt/gettext/include
else
ifneq ("$(wildcard /opt/homebrew/opt/gettext)", "")
LDFLAGS += -L/opt/homebrew/opt/gettext/lib
CXXFLAGS += -I/opt/homebrew/opt/gettext/include
endif
endif
ifeq ($(MACPORTS), 1)
@@ -754,6 +800,10 @@ ifeq ($(BSD), 1)
ifeq ($(LOCALIZE),1)
LDFLAGS += -lintl -liconv
endif
# libexecinfo, libintl and libiconv may be located in /usr/local on BSD
CXXFLAGS += -I/usr/local/include
LDFLAGS += -L/usr/local/lib
endif
# Global settings for Windows targets (at end)
@@ -878,7 +928,7 @@ ifeq ($(LTO), 1)
endif
endif
all: version $(CHECKS) $(TARGET) $(L10N) $(TESTS) validate-pr
all: version $(CHECKS) $(TARGET) $(L10N) $(TESTS)
@
$(TARGET): $(OBJS)
@@ -900,7 +950,7 @@ $(BUILD_PREFIX)$(TARGET_NAME).a: $(OBJS)
.PHONY: version
version:
@( VERSION_STRING=$(VERSION) ; \
[ -e ".git" ] && GITVERSION=$$( git describe --tags --always --dirty --match "[0-9A-Z]*.[0-9A-Z]*" ) && VERSION_STRING=$$GITVERSION ; \
[ -e ".git" ] && GITVERSION=$$( git describe --tags --always --match "[0-9A-Z]*.[0-9A-Z]*" ) && DIRTYFLAG=$$( [ -z "$$(git diff --numstat | grep -v lang/po/)" ] || echo "-dirty") && VERSION_STRING=$$GITVERSION$$DIRTYFLAG ; \
[ -e "$(SRC_DIR)/version.h" ] && OLDVERSION=$$(grep VERSION $(SRC_DIR)/version.h|cut -d '"' -f2) ; \
if [ "x$$VERSION_STRING" != "x$$OLDVERSION" ]; then printf '// NOLINT(cata-header-guard)\n#define VERSION "%s"\n' "$$VERSION_STRING" | tee $(SRC_DIR)/version.h ; fi \
)
@@ -927,16 +977,13 @@ $(CHKJSON_BIN): $(CHKJSON_SOURCES)
json-check: $(CHKJSON_BIN)
./$(CHKJSON_BIN)
clean: clean-tests clean-object_creator
clean: clean-tests clean-object_creator clean-pch
rm -rf *$(TARGET_NAME) *$(TILES_TARGET_NAME)
rm -rf *$(TILES_TARGET_NAME).exe *$(TARGET_NAME).exe *$(TARGET_NAME).a
rm -rf *obj *objwin
rm -rf *$(BINDIST_DIR) *cataclysmdda-*.tar.gz *cataclysmdda-*.zip
rm -f $(SRC_DIR)/version.h
rm -f $(CHKJSON_BIN)
rm -f pch/*pch.hpp.gch
rm -f pch/*pch.hpp.pch
rm -f pch/*pch.hpp.d
distclean:
rm -rf *$(BINDIST_DIR)
@@ -953,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)
@@ -969,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)
@@ -985,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)
@@ -1001,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)
@@ -1107,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
@@ -1149,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.
@@ -1180,12 +1236,12 @@ object_creator: version $(BUILD_PREFIX)cataclysm.a
clean-object_creator:
$(MAKE) -C object_creator clean
validate-pr:
ifneq ($(CYGWIN),1)
@build-scripts/validate_pr_in_jenkins
endif
clean-pch:
rm -f pch/*pch.hpp.gch
rm -f pch/*pch.hpp.pch
rm -f pch/*pch.hpp.d
.PHONY: tests check ctags etags clean-tests install lint validate-pr
.PHONY: tests check ctags etags clean-tests clean-object_creator clean-pch install lint
-include $(SOURCES:$(SRC_DIR)/%.cpp=$(DEPDIR)/%.P)
-include ${OBJS:.o=.d}
+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
+40 -27
View File
@@ -2,16 +2,11 @@
# Build script intended for use in Travis CI and Github workflow
echo "Using bash version $BASH_VERSION"
set -exo pipefail
num_jobs=3
function run_tests
{
# --min-duration shows timing lines for tests with a duration of at least that many seconds.
$WINE "$@" --min-duration 0.2 --use-colour yes --rng-seed time $EXTRA_TEST_OPTS
}
# We might need binaries installed via pip, so ensure that our personal bin dir is on the PATH
export PATH=$HOME/.local/bin:$PATH
@@ -39,6 +34,25 @@ ccache --zero-stats
ccache -M 5G
ccache --show-stats
function run_test
{
set -eo pipefail
test_exit_code=0 sed_exit_code=0 exit_code=0
$WINE $1 --min-duration 0.2 --use-colour yes --rng-seed time $EXTRA_TEST_OPTS "$2" 2>&1 | sed -E 's/^(::(warning|error|debug)[^:]*::)?/\1'"$3"'/' || test_exit_code="${PIPESTATUS[0]}" sed_exit_code="${PIPESTATUS[1]}"
if [ "$test_exit_code" -ne "0" ]
then
echo "$3test exited with code $test_exit_code"
exit_code=1
fi
if [ "$sed_exit_code" -ne "0" ]
then
echo "$3sed exited with code $sed_exit_code"
exit_code=1
fi
return $exit_code
}
export -f run_test
if [ "$CMAKE" = "1" ]
then
bin_path="./"
@@ -57,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
@@ -151,8 +165,8 @@ then
make -j$num_jobs
cd ..
# Run regular tests
[ -f "${bin_path}cata_test" ] && run_tests "${bin_path}cata_test"
[ -f "${bin_path}cata_test-tiles" ] && run_tests "${bin_path}cata_test-tiles"
[ -f "${bin_path}cata_test" ] && parallel --verbose --linebuffer "run_test $(printf %q "${bin_path}")'/cata_test' {} '('{}')=> '" ::: "crafting_skill_gain" "[slow] ~crafting_skill_gain" "~[slow] ~[.]"
[ -f "${bin_path}cata_test-tiles" ] && parallel --verbose --linebuffer "run_test $(printf %q "${bin_path}")'/cata_test-tiles' {} '('{}')=> '" ::: "crafting_skill_gain" "[slow] ~crafting_skill_gain" "~[slow] ~[.]"
fi
elif [ "$NATIVE" == "android" ]
then
@@ -169,28 +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
make -j "$num_jobs" RELEASE=1 CCACHE=1 BACKTRACE=1 CROSS="$CROSS_COMPILATION" LINTJSON=0
make -j "$num_jobs" RELEASE=1 CCACHE=1 CROSS="$CROSS_COMPILATION" LINTJSON=0
if [ "$TRAVIS_OS_NAME" == "osx" ]
export ASAN_OPTIONS=detect_odr_violation=1
export UBSAN_OPTIONS=print_stacktrace=1
parallel --verbose --linebuffer "run_test './tests/cata_test' {} '('{}')=> '" ::: "crafting_skill_gain" "[slow] ~crafting_skill_gain" "~[slow] ~[.]"
if [ -n "$MODS" ]
then
run_tests ./tests/cata_test
else
run_tests ./tests/cata_test &
if [ -n "$MODS" ]
then
run_tests ./tests/cata_test --user-dir=modded $MODS 2>&1 | sed 's/^/MOD> /' &
wait -n
fi
wait -n
parallel --verbose --linebuffer "run_test './tests/cata_test --user-dir=modded '$(printf %q "${MODS}") {} 'Mods-('{}')=> '" ::: "crafting_skill_gain" "[slow] ~crafting_skill_gain" "~[slow] ~[.]"
fi
if [ -n "$TEST_STAGE" ]
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)"
run_tests ./tests/cata_test --user-dir=all_modded --mods="$mods" '~*'
./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 = []
+4 -4
View File
@@ -4,19 +4,19 @@
"owner": "cata-catch2",
"pattern": [
{
"regexp": "^(?:.\\[[0-9;]+m)*(?:\\.\\./)*([^:]*):(\\d+): .*FAILED:.*$",
"regexp": "(?:\\(.*\\)=>[\\s\\t]*)(?:.\\[[0-9;]+m)*[\\s\\t]*(?:\\.\\./)*([^:]*):(\\d+): .*FAILED:.*$",
"file": 1,
"line": 2
},
{
"regexp": "^(?:.\\[[0-9;]+m)* (.+)$",
"regexp": "(?:\\(.*\\)=>[\\s\\t]*)(?:.\\[[0-9;]+m)*[\\s\\t]*(.+)$",
"code": 1
},
{
"regexp": "^(?:.\\[[0-9;]+m)*(with expansion|due to a fatal error condition):$"
"regexp": "(?:\\(.*\\)=>[\\s\\t]*)(?:.\\[[0-9;]+m)*[\\s\\t]*(with expansion|due to a fatal error condition):$"
},
{
"regexp": "^(?:.\\[[0-9;]+m)* (.+)$",
"regexp": "(?:\\(.*\\)=>[\\s\\t]*)(?:.\\[[0-9;]+m)*[\\s\\t]*(.+)$",
"message": 1
}
]
+40 -5
View File
@@ -36,6 +36,9 @@ if [[ "$TRAVIS_EVENT_TYPE" == "pull_request" ]]; then
fi
set -x
if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
$travis_retry sudo apt-get --yes install parallel
fi
if [ -n "${CODE_COVERAGE}" ]; then
$travis_retry pip install --user wheel --upgrade
@@ -51,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/
@@ -63,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
@@ -87,11 +100,33 @@ if [ -n "${MXE_TARGET}" ]; then
fi
if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
HOMEBREW_NO_AUTO_UPDATE=yes HOMEBREW_NO_INSTALL_CLEANUP=yes brew install sdl2 sdl2_image sdl2_ttf sdl2_mixer gettext ncurses ccache
HOMEBREW_NO_AUTO_UPDATE=yes HOMEBREW_NO_INSTALL_CLEANUP=yes brew install sdl2 sdl2_image sdl2_ttf sdl2_mixer gettext ncurses ccache parallel
fi
if [[ "$NATIVE" == "android" ]]; then
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
-16
View File
@@ -1,16 +0,0 @@
#!/usr/bin/env bash
if [ -z "$ghprbPullId" ]; then exit 0; fi
allowed_section_titles='Features|Content|Interface|Mods|Balance|Bugfixes|Performance|Infrastructure|Build|I18N'
echo 'Validating Summary line from pull request.'
echo "$ghprbPullLongDescription" | grep -Pi '(^|(\\r)?\\n)\s*`{0,3}SUMMARY: +(None|(('"${allowed_section_titles}"') +\\?".*?\\?"))`{0,3}\s*((\\r)?\\n|$)'
if [ $? -eq 0 ]; then
echo 'Summary looks good.'
exit 0
else
echo 'Invalid Summary line, please provide a summary similar to the following:'
echo 'SUMMARY: Features "Added ability to fly."'
exit 1
fi
+1 -1
View File
@@ -39,7 +39,7 @@ then
BIN=
for bin in cataclysm-tiles cataclysm
do
[ -f "$bin" ] && BIN="$bin" && break
[ -f "$bin" ] && BIN="$bin" break
done
fi
+22 -21
View File
@@ -1,22 +1,23 @@
IF(NOT EXISTS "@CMAKE_CURRENT_BINARY_DIR@/install_manifest.txt")
MESSAGE(FATAL_ERROR "Cannot find install manifest: \"@CMAKE_CURRENT_BINARY_DIR@/install_manifest.txt\"")
ENDIF(NOT EXISTS "@CMAKE_CURRENT_BINARY_DIR@/install_manifest.txt")
if (NOT EXISTS "@CMAKE_CURRENT_BINARY_DIR@/install_manifest.txt")
message(FATAL_ERROR
"Cannot find install manifest: \"@CMAKE_CURRENT_BINARY_DIR@/install_manifest.txt\"")
endif ()
file(READ "@CMAKE_CURRENT_BINARY_DIR@/install_manifest.txt" FILE_LIST)
string(REGEX REPLACE "\n" ";" FILE_LIST "${FILE_LIST}")
foreach (FILE_NAME ${FILE_LIST})
message(STATUS "Uninstalling \"$ENV{DESTDIR}${FILE_NAME}\"")
if (EXISTS "$ENV{DESTDIR}${FILE_NAME}")
exec_program(
"@CMAKE_COMMAND@" ARGS "-E remove \"$ENV{DESTDIR}${FILE_NAME}\""
OUTPUT_VARIABLE RM_OUT
RETURN_VALUE RM_RETVAL)
if ("${RM_RETVAL}" STREQUAL 0)
else ()
message(FATAL_ERROR "Problem when removing \"$ENV{DESTDIR}${FILE_NAME}\"")
endif ()
else ()
message(STATUS "File \"$ENV{DESTDIR}${FILE_NAME}\" does not exist.")
endif ()
endforeach ()
FILE(READ "@CMAKE_CURRENT_BINARY_DIR@/install_manifest.txt" files)
STRING(REGEX REPLACE "\n" ";" files "${files}")
FOREACH(file ${files})
MESSAGE(STATUS "Uninstalling \"$ENV{DESTDIR}${file}\"")
IF(EXISTS "$ENV{DESTDIR}${file}")
EXEC_PROGRAM(
"@CMAKE_COMMAND@" ARGS "-E remove \"$ENV{DESTDIR}${file}\""
OUTPUT_VARIABLE rm_out
RETURN_VALUE rm_retval
)
IF("${rm_retval}" STREQUAL 0)
ELSE("${rm_retval}" STREQUAL 0)
MESSAGE(FATAL_ERROR "Problem when removing \"$ENV{DESTDIR}${file}\"")
ENDIF("${rm_retval}" STREQUAL 0)
ELSE(EXISTS "$ENV{DESTDIR}${file}")
MESSAGE(STATUS "File \"$ENV{DESTDIR}${file}\" does not exist.")
ENDIF(EXISTS "$ENV{DESTDIR}${file}")
ENDFOREACH(file)
+26 -31
View File
@@ -1,39 +1,34 @@
# Cataclysm data files
cmake_minimum_required(VERSION 3.1.4)
SET(CATACLYSM_DATA_DIRS
${CMAKE_SOURCE_DIR}/data/font
${CMAKE_SOURCE_DIR}/data/json
${CMAKE_SOURCE_DIR}/data/mods
${CMAKE_SOURCE_DIR}/data/names
${CMAKE_SOURCE_DIR}/data/raw
${CMAKE_SOURCE_DIR}/data/motd
${CMAKE_SOURCE_DIR}/data/credits
${CMAKE_SOURCE_DIR}/data/title
)
set(CATACLYSM_DATA_DIRS
${CMAKE_SOURCE_DIR}/data/font
${CMAKE_SOURCE_DIR}/data/json
${CMAKE_SOURCE_DIR}/data/mods
${CMAKE_SOURCE_DIR}/data/names
${CMAKE_SOURCE_DIR}/data/raw
${CMAKE_SOURCE_DIR}/data/motd
${CMAKE_SOURCE_DIR}/data/credits
${CMAKE_SOURCE_DIR}/data/title)
IF(SOUND)
SET(CATACLYSM_DATA_DIRS
${CATACLYSM_DATA_DIRS}
${CMAKE_SOURCE_DIR}/data/sound
)
ENDIF(SOUND)
if (SOUND)
set(CATACLYSM_DATA_DIRS
${CATACLYSM_DATA_DIRS}
${CMAKE_SOURCE_DIR}/data/sound)
endif ()
IF(TILES)
SET(CATACLYSM_DATA_DIRS
${CATACLYSM_DATA_DIRS}
${CMAKE_SOURCE_DIR}/gfx
)
ENDIF(TILES)
if (TILES)
set(CATACLYSM_DATA_DIRS
${CATACLYSM_DATA_DIRS}
${CMAKE_SOURCE_DIR}/gfx)
endif ()
SET(CATACLYSM_DATA_FILES
${CMAKE_SOURCE_DIR}/data/changelog.txt
${CMAKE_SOURCE_DIR}/data/cataicon.ico
${CMAKE_SOURCE_DIR}/data/fontdata.json
${CMAKE_SOURCE_DIR}/LICENSE.txt
)
set(CATACLYSM_DATA_FILES
${CMAKE_SOURCE_DIR}/data/changelog.txt
${CMAKE_SOURCE_DIR}/data/cataicon.ico
${CMAKE_SOURCE_DIR}/data/fontdata.json
${CMAKE_SOURCE_DIR}/LICENSE.txt)
IF(RELEASE)
if (RELEASE)
install(DIRECTORY ${CATACLYSM_DATA_DIRS} DESTINATION ${DATA_PREFIX})
install(FILES ${CATACLYSM_DATA_FILES} DESTINATION ${DATA_PREFIX})
ENDIF(RELEASE)
endif ()
+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.",
@@ -40,7 +40,7 @@
{
"id": "AO_FORCE_PULL",
"type": "SPELL",
"name": "Artifact Force Pull",
"name": { "str": "Artifact Force Pull" },
"description": "Pull objects.",
"effect": "area_pull",
"shape": "blast",
@@ -55,7 +55,7 @@
{
"id": "AO_TELEPORTITIS",
"type": "SPELL",
"name": "Artifact Teleportitis",
"name": { "str": "Artifact Teleportitis" },
"description": "Causes you to teleport uncontrollably.",
"message": "The world loses coherence, with images of nearby places forming and disappearing around you.",
"valid_targets": [ "self" ],
@@ -69,7 +69,7 @@
{
"id": "AO_SLOW",
"type": "SPELL",
"name": "Artifact Slow",
"name": { "str": "Artifact Slow" },
"description": "Slows you for a few turns.",
"message": "The world shifts blue, and reality accelerates around you.",
"valid_targets": [ "self" ],
@@ -83,7 +83,7 @@
{
"id": "AO_TIME_STOP",
"type": "SPELL",
"name": "Artifact Time Stop",
"name": { "str": "Artifact Time Stop" },
"description": "Grants you a few turns of super speed.",
"message": "Stale golden light floods the world, and reality stands still.",
"valid_targets": [ "self" ],
@@ -81,7 +81,7 @@
{
"type": "SPELL",
"id": "AEP_EVIL_SPELL",
"name": "EEEEEEVVVVVIIIIILLLL!",
"name": { "str": "EEEEEEVVVVVIIIIILLLL!" },
"description": "You debugged in this spell! It makes you evil for 30 minutes.",
"valid_targets": [ "hostile", "ally", "self" ],
"effect": "attack",
+347 -33
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,8 @@
"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 }
},
{
"id": "bio_armor_head",
@@ -69,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",
@@ -80,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",
@@ -91,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",
@@ -132,7 +417,8 @@
"name": { "str": "Optical Dampers" },
"description": "The lenses surgically installed over your eyes can be tinted to block out incoming light.",
"included": true,
"flags": [ "BIONIC_TOGGLED" ]
"flags": [ "BIONIC_TOGGLED" ],
"active_flags": [ "BLIND" ]
},
{
"id": "bio_blood_anal",
@@ -256,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",
@@ -278,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" ]
},
{
@@ -298,7 +585,8 @@
"name": { "str": "Bionic-Induced Deformity" },
"description": "A combination of poor surgical installation and unpleasant scarring has lead to the malfunctioning bionic catastrophe you call your face. People who mind that you look like a dime-store Frankenstein will react poorly to your appearance.",
"occupied_bodyparts": [ [ "head", 4 ], [ "mouth", 1 ] ],
"flags": [ "BIONIC_FAULTY" ]
"flags": [ "BIONIC_FAULTY" ],
"social_modifiers": { "persuade": -50, "intimidate": 20 }
},
{
"id": "bio_dex_enhancer",
@@ -316,7 +604,7 @@
"description": "You have been outfitted with three synthetic stomachs and industrial-grade intestines. Not only can you extract much more nutrition from food, but you are highly resistant to foodborne illness, and can sometimes eat rotten food.",
"occupied_bodyparts": [ [ "torso", 20 ] ],
"vitamin_absorb_mod": 1.5,
"flags": [ "BIONIC_NPC_USABLE", "BIONIC_SHOCKPROOF" ]
"flags": [ "BIONIC_NPC_USABLE", "BIONIC_SHOCKPROOF", "PARAIMMUNE", "IMMUNE_SPOIL" ]
},
{
"id": "bio_dis_acid",
@@ -346,9 +634,10 @@
"id": "bio_earplugs",
"type": "bionic",
"name": { "str": "Sound Dampeners" },
"description": "When this bionic is active, you can block hearing completely (with Enhanced Hearing deactivated) or dampen sound slightly (with Enhanced Hearing activated).",
"description": "When this bionic is active, you can block hearing completely.",
"included": true,
"flags": [ "BIONIC_TOGGLED" ]
"flags": [ "BIONIC_TOGGLED" ],
"active_flags": [ "DEAF" ]
},
{
"id": "bio_ears",
@@ -356,7 +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" ],
"flags": [ "BIONIC_TOGGLED", "IMMUNE_HEARING_DAMAGE" ],
"active_flags": [ "SUPER_HEARING" ],
"included_bionics": [ "bio_earplugs" ]
},
{
@@ -415,6 +705,7 @@
"name": { "str": "Telescopic Eyes" },
"description": "Much of the material in your inner eye has been surgically removed and replaced with an array of high-powered, auto-focusing lenses. They function as integrated binoculars, letting you see much farther than before, and any vision problems you might have had are now gone.",
"occupied_bodyparts": [ [ "eyes", 2 ] ],
"flags": [ "ENHANCED_VISION" ],
"canceled_mutations": [
"HYPEROPIC",
"MYOPIC",
@@ -443,7 +734,8 @@
"type": "bionic",
"name": { "str": "Facial Distortion" },
"description": "Through controlled application of electrochemical impulses, you are capable of altering your facial structure so as to subtly affect the reactions of others. This grants a bonus to all social interactions.",
"occupied_bodyparts": [ [ "head", 3 ], [ "mouth", 1 ] ]
"occupied_bodyparts": [ [ "head", 3 ], [ "mouth", 1 ] ],
"social_modifiers": { "persuade": 10, "lie": 20, "intimidate": 10 }
},
{
"id": "bio_faraday",
@@ -463,6 +755,7 @@
[ "foot_r", 1 ]
],
"flags": [ "BIONIC_TOGGLED", "BIONIC_NPC_USABLE", "BIONIC_SHOCKPROOF" ],
"active_flags": [ "ELECTRIC_IMMUNE" ],
"act_cost": "5 J",
"react_cost": "5 J",
"time": 1
@@ -472,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",
@@ -574,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
@@ -596,6 +892,7 @@
"description": "Your range of vision extends into the infrared, allowing you to see warm-blooded creatures in the dark or through smoke.",
"occupied_bodyparts": [ [ "eyes", 1 ] ],
"flags": [ "BIONIC_TOGGLED" ],
"active_flags": [ "INFRARED" ],
"act_cost": "5 J",
"react_cost": "5 J",
"time": 1
@@ -653,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",
@@ -677,7 +974,7 @@
"name": { "str": "Nictating Membrane" },
"description": "Your eyes have a thin membrane that closes over your eyes while underwater, negating any vision penalties.",
"occupied_bodyparts": [ [ "eyes", 1 ] ],
"flags": [ "BIONIC_NPC_USABLE" ]
"flags": [ "BIONIC_NPC_USABLE", "EYE_MEMBRANE" ]
},
{
"id": "bio_memory",
@@ -727,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
@@ -739,6 +1042,7 @@
"description": "When active, this bionic will amplify existing light, allowing you to see in the dark.",
"occupied_bodyparts": [ [ "eyes", 1 ] ],
"flags": [ "BIONIC_TOGGLED" ],
"active_flags": [ "NIGHT_VISION" ],
"act_cost": "10 J",
"react_cost": "10 J",
"time": 1
@@ -887,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",
@@ -914,6 +1228,7 @@
"description": "While this system is powered, your body will produce very little odor, making it nearly impossible for creatures to track you by scent.",
"occupied_bodyparts": [ [ "torso", 3 ], [ "head", 1 ], [ "arm_l", 1 ], [ "arm_r", 1 ], [ "leg_l", 1 ], [ "leg_r", 1 ] ],
"flags": [ "BIONIC_TOGGLED" ],
"active_flags": [ "NO_SCENT" ],
"act_cost": 1,
"react_cost": 1,
"time": 60
@@ -932,6 +1247,7 @@
"name": { "str": "Synaptic Regeneration System" },
"description": "An electromagnetic stimulator has been surgically implanted on the back of your head and along your spine, continually draining power. As long as it's active, you won't become sleep deprived; and if you're sleep deprived already, it will boost the rate of recovery while you sleep.",
"flags": [ "BIONIC_TOGGLED" ],
"active_flags": [ "STOP_SLEEP_DEPRIVATION" ],
"occupied_bodyparts": [ [ "head", 1 ], [ "torso", 1 ] ],
"act_cost": 0,
"react_cost": "1 kJ",
@@ -1029,7 +1345,7 @@
"description": "Your eyes have quick-reacting transition lenses surgically installed over them. They negate glare penalties, partially protect you from bright flashes, and protect your eyes when welding.",
"occupied_bodyparts": [ [ "eyes", 1 ] ],
"included_bionics": [ "bio_blindfold" ],
"flags": [ "BIONIC_NPC_USABLE" ],
"flags": [ "BIONIC_NPC_USABLE", "GLARE_RESIST" ],
"fake_item": "fake_goggles"
},
{
@@ -1112,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",
@@ -1147,14 +1464,17 @@
"name": { "str": "Voice Remodulator" },
"description": "You will likely spend the rest of your days serving as a walking testament to why you don't opt for the Autodoc's 'Cyborg Identity Package'. A remodulator unit jammed down your throat has given you a creepy robot voice.",
"occupied_bodyparts": [ [ "torso", 2 ], [ "mouth", 1 ] ],
"flags": [ "BIONIC_FAULTY" ]
"flags": [ "BIONIC_FAULTY" ],
"social_modifiers": { "persuade": -20, "lie": 10, "intimidate": 20 },
"canceled_mutations": [ "GROWL", "SNARL", "HISS" ]
},
{
"id": "bio_watch",
"type": "bionic",
"name": { "str": "Internal Chronometer" },
"description": "You have been equipped with an internal atomic clock, ensuring that you will always know the current time. Additionally, it includes a silent alarm clock function.",
"occupied_bodyparts": [ [ "head", 1 ] ]
"occupied_bodyparts": [ [ "head", 1 ] ],
"flags": [ "WATCH", "ALARMCLOCK" ]
},
{
"id": "bio_water_extractor",
@@ -1183,7 +1503,8 @@
"type": "bionic",
"name": { "str": "Intravenous Needletip" },
"description": "The flesh of the inside of your middle finger has been replaced with a tube leading into your arteries, with a retractable needle extending out of the tip of the finger when clenched. This lets you pump intravenous drugs like morphine directly into your bloodstream without needing to carry a syringe.",
"occupied_bodyparts": [ [ "hand_l", 1 ] ]
"occupied_bodyparts": [ [ "hand_l", 1 ] ],
"fake_item": "syringe"
},
{
"id": "bio_weight",
@@ -1194,14 +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",
@@ -1216,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 } ] } ]
}
]
+20 -10
View File
@@ -11,7 +11,8 @@
"DISMEMBER": "field_dress",
"DISSECT": "dissect_small",
"FULL": "butchery_small",
"QUICK": "butchery_small"
"QUICK": "butchery_small",
"BLEED": "bleed_small"
},
{
"FIELD_DRESS": "field_dress",
@@ -20,7 +21,8 @@
"DISMEMBER": "field_dress",
"DISSECT": "dissect_small",
"FULL": "butchery_small",
"QUICK": "butchery_small"
"QUICK": "butchery_small",
"BLEED": "bleed_small"
},
{
"FIELD_DRESS": "field_dress",
@@ -29,7 +31,8 @@
"DISMEMBER": "field_dress",
"DISSECT": "dissect_small",
"FULL": "butchery_small",
"QUICK": "butchery_small"
"QUICK": "butchery_small",
"BLEED": "bleed_small"
},
{
"FIELD_DRESS": "field_dress",
@@ -38,7 +41,8 @@
"DISMEMBER": "field_dress",
"DISSECT": "dissect_large",
"FULL": "full_butchery_large",
"QUICK": "butchery_large"
"QUICK": "butchery_large",
"BLEED": "bleed_large"
},
{
"FIELD_DRESS": "field_dress",
@@ -47,7 +51,8 @@
"DISMEMBER": "field_dress",
"DISSECT": "dissect_large",
"FULL": "full_butchery_large",
"QUICK": "butchery_large"
"QUICK": "butchery_large",
"BLEED": "bleed_large"
}
],
"1.2": [
@@ -58,7 +63,8 @@
"DISMEMBER": "field_dress_no_surface",
"DISSECT": "dissect_small_no_surface",
"FULL": "butchery_small_no_surface",
"QUICK": "butchery_small_no_surface"
"QUICK": "butchery_small_no_surface",
"BLEED": "bleed_small"
},
{
"FIELD_DRESS": "field_dress_no_surface",
@@ -67,7 +73,8 @@
"DISMEMBER": "field_dress_no_surface",
"DISSECT": "dissect_small_no_surface",
"FULL": "butchery_small_no_surface",
"QUICK": "butchery_small_no_surface"
"QUICK": "butchery_small_no_surface",
"BLEED": "bleed_small"
},
{
"FIELD_DRESS": "field_dress_no_surface",
@@ -76,7 +83,8 @@
"DISMEMBER": "field_dress_no_surface",
"DISSECT": "dissect_small_no_surface",
"FULL": "butchery_small_no_surface",
"QUICK": "butchery_small_no_surface"
"QUICK": "butchery_small_no_surface",
"BLEED": "bleed_small"
},
{
"FIELD_DRESS": "field_dress_no_surface",
@@ -85,7 +93,8 @@
"DISMEMBER": "field_dress_no_surface",
"DISSECT": "dissect_large_no_surface",
"FULL": "full_butchery_large_no_surface",
"QUICK": "butchery_large_no_surface"
"QUICK": "butchery_large_no_surface",
"BLEED": "bleed_large"
},
{
"FIELD_DRESS": "field_dress_no_surface",
@@ -94,7 +103,8 @@
"DISMEMBER": "field_dress_no_surface",
"DISSECT": "dissect_large_no_surface",
"FULL": "full_butchery_large_no_surface",
"QUICK": "butchery_large_no_surface"
"QUICK": "butchery_large_no_surface",
"BLEED": "bleed_large"
}
]
}
+211 -9
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"
@@ -2712,7 +2805,8 @@
"time": "40 m",
"qualities": [ [ { "id": "HAMMER", "level": 2 } ], [ { "id": "SAW_W", "level": 2 } ] ],
"components": [
[ [ "2x4", 8 ] ],
[ [ "2x4", 4 ] ],
[ [ "2x4", 4 ], [ "wood_sheet", 1 ], [ "wood_panel", 2 ] ],
[ [ "rope_makeshift_30", 1 ], [ "rope_30", 1 ], [ "vine_30", 1 ] ],
[ [ "55gal_drum", 2 ], [ "30gal_drum", 2 ], [ "wooden_barrel", 2 ] ]
],
@@ -4063,7 +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"
},
@@ -4089,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"
},
@@ -4258,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" }
]
}
]
+152 -48
View File
@@ -244,6 +244,24 @@
"name": [ "Pushed" ],
"desc": [ "AI tag used for monsters pushing each other. This is a bug if you have it." ]
},
{
"type": "effect_type",
"id": "venom_player1",
"name": [ "Weak Player Venom" ],
"desc": [ "Don't worry, you shouldn't get this." ],
"max_duration": 120,
"base_mods": { "hurt_amount": [ 10 ], "hurt_min": [ 1 ], "hurt_chance": [ 2 ] },
"//": "10+0,5/s dmg, from max duration avg 70 (range 10-130)"
},
{
"type": "effect_type",
"id": "venom_player2",
"name": [ "Strong Player Venom" ],
"desc": [ "Don't worry, you really shouldn't get this." ],
"max_duration": 120,
"base_mods": { "hurt_amount": [ 20 ], "hurt_min": [ 4 ], "hurt_chance": [ 2 ], "speed_mod": [ -50 ] },
"//": "20+2/s dmg, from max duration avg 260 (range 20-480)"
},
{
"type": "effect_type",
"id": "dripping_mechanical_fluid",
@@ -518,6 +536,7 @@
"rating": "bad",
"resist_traits": [ "POISRESIST" ],
"blood_analysis_description": "Systemic Inflammatory Agents",
"speed_name": "Poisoned",
"resist_effects": [ "prophylactic_antivenom" ],
"max_intensity": 125,
"max_effective_intensity": 100,
@@ -631,6 +650,8 @@
"id": "melatonin",
"name": [ "Melatonin Supplements" ],
"desc": [ "You took some melatonin supplements. These will help with sleep deprivation." ],
"max_duration": 100800,
"dur_add_perc": 60,
"rating": "good",
"blood_analysis_description": "Melatonin"
},
@@ -726,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",
@@ -746,13 +770,17 @@
"type": "effect_type",
"id": "took_xanax_visible",
"name": [ "Took fast-acting sedative" ],
"desc": [ "You took a fast-acting sedative some time ago and you might still be under its influence." ]
"desc": [ "You took a fast-acting sedative some time ago and you might still be under its influence." ],
"max_duration": 18000,
"dur_add_perc": 20
},
{
"type": "effect_type",
"id": "took_prozac",
"rating": "good",
"blood_analysis_description": "Antidepressants"
"blood_analysis_description": "Antidepressants",
"max_duration": 64800,
"dur_add_perc": 40
},
{
"type": "effect_type",
@@ -762,7 +790,9 @@
"type": "effect_type",
"id": "took_prozac_visible",
"name": [ "Took antidepressant" ],
"desc": [ "You took an antidepressant some time ago and you might still be under its influence." ]
"desc": [ "You took an antidepressant some time ago and you might still be under its influence." ],
"max_duration": 72000,
"dur_add_perc": 35
},
{
"type": "effect_type",
@@ -775,7 +805,9 @@
"type": "effect_type",
"id": "took_thorazine",
"rating": "good",
"blood_analysis_description": "Antipsychotics"
"blood_analysis_description": "Antipsychotics",
"max_duration": 64800,
"dur_add_perc": 50
},
{
"type": "effect_type",
@@ -785,7 +817,9 @@
"type": "effect_type",
"id": "took_thorazine_visible",
"name": [ "Took antipsychotic" ],
"desc": [ "You took an antipsychotic some time ago and you might still be under its influence." ]
"desc": [ "You took an antipsychotic some time ago and you might still be under its influence." ],
"max_duration": 72000,
"dur_add_perc": 35
},
{
"type": "effect_type",
@@ -886,23 +920,37 @@
"int_dur_factor": "8 h",
"max_intensity": 3,
"base_mods": {
"pain_chance": [ 2, 1 ],
"pain_chance_bot": [ 200 ],
"pain_min": [ 1 ],
"pain_max_val": [ 30, 20 ],
"str_mod": [ -1 ],
"dex_mod": [ -1 ],
"vomit_chance": [ 1000, 1200 ],
"fatigue_min": [ 360, 180 ],
"fatigue_chance": [ -102 ]
"str_mod": [ -2 ],
"dex_mod": [ -3 ],
"int_mod": [ -2 ],
"vomit_chance": [ 900, 1200 ],
"vomit_tick": [ 180 ],
"thirst_min": [ 2 ],
"thirst_chance": [ 10, 100 ],
"thirst_tick": [ 30 ],
"speed_mod": [ -10, 0 ],
"stamina_min": [ -8, -4 ],
"stamina_max": [ -50, -20 ],
"stamina_chance": [ 3, 10 ],
"fatigue_min": [ 2, 0 ],
"fatigue_max": [ 10, 5 ],
"fatigue_chance": [ 110 ],
"fatigue_max_val": [ 700, 250 ],
"healing_rate": [ 0.01, 1 ]
},
"scaling_mods": {
"pain_max_val": [ 30, 20 ],
"str_mod": [ -1, -0.5 ],
"dex_mod": [ -1, -0.5 ],
"int_mod": [ -3, -1 ],
"vomit_chance": [ -400 ],
"fatigue_chance": [ 101 ]
"speed_mod": [ -10, -5 ],
"stamina_min": [ -6, -4 ],
"stamina_max": [ 15, 4 ],
"stamina_chance": [ -1, -2.5 ],
"fatigue_chance": [ -50 ],
"fatigue_tick": [ 0.5 ]
},
"//": "Stamina regen stops completely at int 3, but no stamina loss from then on",
"blood_analysis_description": "Bacterial Infection"
},
{
@@ -911,22 +959,38 @@
"name": [ "Recovering From Infection" ],
"desc": [ "You are recovering from an infection." ],
"rating": "bad",
"resist_traits": [ "INFRESIST" ],
"max_intensity": 3,
"int_dur_factor": "32 h",
"base_mods": {
"pain_chance": [ 100 ],
"pain_min": [ 1 ],
"pain_max_val": [ 30 ],
"str_mod": [ -1 ],
"dex_mod": [ -1 ],
"vomit_chance": [ 1000 ],
"fatigue_min": [ 360 ],
"fatigue_chance": [ -102 ],
"fatigue_tick": [ 6 ],
"pain_tick": [ 6 ],
"vomit_tick": [ 6 ]
"int_mod": [ -1 ],
"vomit_chance": [ 1200, 1800 ],
"vomit_tick": [ 180 ],
"thirst_min": [ 1, 0 ],
"thirst_max": [ 3, 2 ],
"thirst_chance": [ 10, 100 ],
"thirst_tick": [ 60 ],
"speed_mod": [ -5, 0 ],
"stamina_min": [ -8 ],
"stamina_chance": [ 10, 20 ],
"fatigue_min": [ 1, 0 ],
"fatigue_max": [ 5, 3 ],
"fatigue_chance": [ 210 ],
"fatigue_max_val": [ 500, 125 ],
"healing_rate": [ 0.5 ]
},
"scaling_mods": { "pain_max_val": [ 30 ], "str_mod": [ -1 ], "dex_mod": [ -1 ], "vomit_chance": [ -400 ], "fatigue_chance": [ 101 ] }
"scaling_mods": {
"str_mod": [ -1, -0.5 ],
"dex_mod": [ -1, -0.5 ],
"int_mod": [ -2, -1 ],
"vomit_chance": [ -500 ],
"speed_mod": [ -5, -4 ],
"stamina_min": [ -6, -3 ],
"stamina_chance": [ -1, -2.5 ],
"fatigue_chance": [ -60 ]
}
},
{
"type": "effect_type",
@@ -1034,6 +1098,8 @@
"type": "effect_type",
"id": "pblue",
"base_mods": { "rad_chance": [ 600 ], "rad_min": [ -1 ] },
"max_duration": 10800,
"dur_add_perc": 35,
"blood_analysis_description": "Prussian Blue",
"rating": "good"
},
@@ -1351,7 +1417,9 @@
"desc": [ "You have been vaccinated for the flu recently." ],
"blocks_effects": [ "flu" ],
"rating": "good",
"blood_analysis_description": "Antivirals"
"blood_analysis_description": "Antivirals",
"max_duration": 14515200,
"dur_add_perc": 50
},
{
"type": "effect_type",
@@ -1646,7 +1714,9 @@
"removes_effects": [ "shakes" ],
"base_mods": { "stim_tick": [ 150 ], "stim_chance": [ 2 ], "stim_min": [ 1 ], "stim_min_val": [ -1 ] },
"rating": "good",
"blood_analysis_description": "Benzodiazepines"
"blood_analysis_description": "Benzodiazepines",
"max_duration": 64800,
"dur_add_perc": 45
},
{
"type": "effect_type",
@@ -1656,7 +1726,9 @@
"You took anticonvulsant drugs some time ago and you might still be under its influence.\nPrescription note says its effect duration may vary, so your estimate may be inaccurate."
],
"rating": "good",
"blood_analysis_description": "Anticonvulsants"
"blood_analysis_description": "Anticonvulsants",
"max_duration": 64800,
"dur_add_perc": 40
},
{
"type": "effect_type",
@@ -2174,7 +2246,9 @@
"name": [ "Took weak antibiotic" ],
"desc": [
"You consumed mild antibiotic some time ago to fight off infection.\nIf you don't recover you may want to take another dose, but beware overdosage."
]
],
"max_duration": 54000,
"dur_add_perc": 35
},
{
"type": "effect_type",
@@ -2182,7 +2256,9 @@
"name": [ "Took antibiotic" ],
"desc": [
"You consumed antibiotic some time ago to fight off infection.\nIf you don't recover you may want to take another dose, but beware overdosage."
]
],
"max_duration": 54000,
"dur_add_perc": 25
},
{
"type": "effect_type",
@@ -2190,25 +2266,33 @@
"name": [ "Took strong antibiotic" ],
"desc": [
"You consumed prescription-grade antibiotic some time ago to fight off infection.\nIf you don't recover you may want to take another dose, but beware overdosage."
]
],
"max_duration": 54000,
"dur_add_perc": 25
},
{
"type": "effect_type",
"id": "weak_antibiotic",
"rating": "good",
"blood_analysis_description": "Antibiotics"
"blood_analysis_description": "Antibiotics",
"max_duration": 43200,
"dur_add_perc": 25
},
{
"type": "effect_type",
"id": "antibiotic",
"rating": "good",
"blood_analysis_description": "Antibiotics"
"blood_analysis_description": "Antibiotics",
"max_duration": 43200,
"dur_add_perc": 25
},
{
"type": "effect_type",
"id": "strong_antibiotic",
"rating": "good",
"blood_analysis_description": "Antibiotics"
"blood_analysis_description": "Antibiotics",
"max_duration": 43200,
"dur_add_perc": 25
},
{
"type": "effect_type",
@@ -2226,7 +2310,9 @@
"int_add_val": 1,
"max_intensity": 3,
"base_mods": { "vomit_tick": [ 60 ], "health_chance": [ 1500 ], "health_min": [ 1 ] },
"scaling_mods": { "health_min": [ -1.5 ], "health_min_val": [ -2 ], "vomit_tick": [ 120 ] }
"scaling_mods": { "health_min": [ -1.5 ], "health_min_val": [ -2 ], "vomit_tick": [ 120 ] },
"max_duration": 14400,
"dur_add_perc": 70
},
{
"type": "effect_type",
@@ -2234,7 +2320,9 @@
"name": [ "Antifungals" ],
"desc": [ "You are under the effects of an antifungal medicine or chemicals." ],
"rating": "good",
"blood_analysis_description": "Antifungals"
"blood_analysis_description": "Antifungals",
"max_duration": 28800,
"dur_add_perc": 50
},
{
"//": "This effect is a dummy effect for disabling certain things for a few turns after an electromagnetic pulse and does nothing on its own",
@@ -2345,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",
@@ -2355,49 +2443,65 @@
"type": "effect_type",
"id": "weary_1",
"name": [ "Lightly Weary" ],
"desc": [ "You've been pretty active for a while; operating at the highest levels of activity will be impaired." ]
"desc": [
"You've been pretty active for a while; operating at the highest levels of activity will be impaired.\nThe following move penalties are applied for the following activity levels:\nExtreme: 1.25x"
]
},
{
"type": "effect_type",
"id": "weary_2",
"name": [ "Moderately Weary" ],
"desc": [ "You've been quite active for a while; operating at higher levels of activity will be impaired." ]
"desc": [
"You've been quite active for a while; operating at higher levels of activity will be impaired.\nThe following move penalties are applied for the following activity levels:\nExtreme: 1.67x, Active: 1.33x"
]
},
{
"type": "effect_type",
"id": "weary_3",
"name": [ "Weary" ],
"desc": [ "You've been very active for a while, and need to slow down for a bit." ]
"desc": [
"You've been very active for a while, and need to slow down for a bit.\nThe following move penalties are applied for the following activity levels:\nExtreme: 2.5x, Active: 2x, Brisk: 1.5x"
]
},
{
"type": "effect_type",
"id": "weary_4",
"name": [ "Very Weary" ],
"desc": [ "You've been extremely active for a while, and need to slow down." ]
"desc": [
"You've been extremely active for a while, and need to slow down.\nThe following move penalties are applied for the following activity levels:\nExtreme: 5x, Active: 4x, Brisk: 3x, Moderate: 2x"
]
},
{
"type": "effect_type",
"id": "weary_5",
"name": [ "Extremely Weary" ],
"desc": [ "You've been extremely active for a while, and can't take much more activity." ]
"desc": [
"You've been extremely active for a while, and can't take much more activity.\nThe following move penalties are applied for the following activity levels:\nExtreme: 10x, Active: 8x, Brisk: 6x, Moderate: 4x, Light: 2x"
]
},
{
"type": "effect_type",
"id": "weary_6",
"name": [ "Extremely Weary" ],
"desc": [ "You've been extremely active for a while, and really need to get some rest." ]
"desc": [
"You've been extremely active for a while, and really need to get some rest.\nThe following move penalties are applied for the following activity levels:\nExtreme: 10x, Active: 8x, Brisk: 6x, Moderate: 4x, Light: 2x"
]
},
{
"type": "effect_type",
"id": "weary_7",
"name": [ "Extremely Weary" ],
"desc": [ "You've been extremely active for a while; it's time to stop." ]
"desc": [
"You've been extremely active for a while; it's time to stop.\nThe following move penalties are applied for the following activity levels:\nExtreme: 10x, Active: 8x, Brisk: 6x, Moderate: 4x, Light: 2x"
]
},
{
"type": "effect_type",
"id": "weary_8",
"name": [ "Extremely Weary" ],
"desc": [ "You've been extremely active for a while, and can no longer keep pushing." ]
"desc": [
"You've been extremely active for a while, and can no longer keep pushing.\nThe following move penalties are applied for the following activity levels:\nExtreme: 10x, Active: 8x, Brisk: 6x, Moderate: 4x, Light: 2x"
]
},
{
"type": "effect_type",
+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"
}
]
+10 -6
View File
@@ -42,7 +42,7 @@
"decay_amount_factor": 2,
"is_splattering": true,
"half_life": "2 days",
"phase": "solid",
"phase": "liquid",
"accelerated_decay": true,
"display_field": true,
"looks_like": "fd_blood"
@@ -61,7 +61,7 @@
"decay_amount_factor": 2,
"is_splattering": true,
"half_life": "2 days",
"phase": "solid",
"phase": "liquid",
"accelerated_decay": true,
"display_field": true,
"looks_like": "fd_blood_veggy"
@@ -238,7 +238,7 @@
"description_affix": "covered_in",
"is_splattering": true,
"priority": 2,
"half_life": "6 hours",
"half_life": "30 minutes",
"phase": "liquid",
"display_field": true,
"looks_like": "fd_sap"
@@ -647,7 +647,11 @@
"id": "fd_flame_burst",
"type": "field_type",
"legacy_enum_id": 18,
"intensity_levels": [ { "name": { "ctxt": "noun", "str": "fire" }, "sym": "5", "color": "red", "dangerous": true, "light_emitted": 20 } ],
"intensity_levels": [
{ "name": { "ctxt": "noun", "str": "fire" }, "sym": "5", "color": "red", "dangerous": true, "light_emitted": 20 },
{ "//": "repeat last entry" },
{ "//": "repeat last entry" }
],
"description_affix": "on",
"has_fire": true,
"priority": 4,
@@ -909,7 +913,7 @@
"decay_amount_factor": 2,
"is_splattering": true,
"half_life": "2 days",
"phase": "solid",
"phase": "liquid",
"accelerated_decay": true,
"display_field": true,
"looks_like": "fd_blood_insect"
@@ -928,7 +932,7 @@
"decay_amount_factor": 2,
"is_splattering": true,
"half_life": "2 days",
"phase": "solid",
"phase": "liquid",
"accelerated_decay": true,
"display_field": true,
"looks_like": "fd_blood_invertebrate"
+44 -65
View File
@@ -10,11 +10,6 @@
"type": "json_flag",
"context": [ ]
},
{
"id": "EFFECT_INVISIBLE",
"context": [ ],
"type": "json_flag"
},
{
"id": "ALARMCLOCK",
"type": "json_flag",
@@ -62,6 +57,12 @@
"info": "This gear is <info>strapped</info> onto you.",
"conflicts": [ "OUTER", "SKINTIGHT", "WAIST", "PERSONAL", "AURA" ]
},
{
"id": "BIONIC_INSTALLATION_DATA",
"type": "json_flag",
"context": [ "GENERIC" ],
"info": "This item <info>provides</info> instructions and other required data for several bionics, allowing installation of them with <good>minimal failure chance</good>."
},
{
"id": "BIONIC_NPC_USABLE",
"type": "json_flag",
@@ -75,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",
@@ -146,11 +142,34 @@
"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",
"context": [ "GENERIC" ]
},
{
"id": "BLED",
"type": "json_flag",
"context": [ "GENERIC" ]
},
{
"id": "CANT_HEAL_EVERYONE",
"type": "json_flag",
@@ -239,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",
@@ -449,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",
@@ -569,14 +594,12 @@
{
"id": "MUSHY",
"type": "json_flag",
"context": [ "COMESTIBLE" ],
"info": "This food was frozen and is now <bad>mushy</bad> and tasteless and <bad>will go bad</bad> after freezing again."
"context": [ "COMESTIBLE" ]
},
{
"id": "FREEZERBURN",
"type": "json_flag",
"context": [ "COMESTIBLE" ],
"info": "This food was frozen and is now <bad>mushy</bad> and tasteless and <bad>will go bad</bad> after freezing again."
"context": [ "COMESTIBLE" ]
},
{
"id": "PSYSHIELD_PARTIAL",
@@ -1003,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",
@@ -1871,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": [ ]
}
]
@@ -180,7 +180,7 @@
"move_cost_mod": -1,
"coverage": 90,
"required_str": 10,
"flags": [ "CONTAINER", "PLACE_ITEM", "BLOCKSDOOR", "MINEABLE" ],
"flags": [ "CONTAINER", "PLACE_ITEM", "BLOCKSDOOR", "MINEABLE", "NO_SELF_CONNECT" ],
"deconstruct": {
"items": [
{ "item": "sheet_metal", "count": [ 2, 6 ] },
@@ -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",
@@ -143,7 +143,7 @@
"color": "light_gray",
"move_cost_mod": -1,
"required_str": 10,
"flags": [ "PLACE_ITEM", "BLOCKSDOOR", "MINEABLE", "LIQUIDCONT" ],
"flags": [ "PLACE_ITEM", "BLOCKSDOOR", "MINEABLE", "LIQUIDCONT", "TRANSPARENT" ],
"bash": {
"str_min": 16,
"str_max": 40,
@@ -24,7 +24,7 @@
"required_str": -1,
"flags": [ "TRANSPARENT", "TINY", "FLAMMABLE_ASH", "NOCOLLIDE", "FLOWER" ],
"examine_action": "harvest_furn_nectar",
"harvest_by_season": [ { "seasons": [ "spring", "summer", "autumn" ], "entries": [ { "drop": "raw_dandelion", "base_num": [ 1, 4 ] } ] } ],
"harvest_by_season": [ { "seasons": [ "spring", "summer", "autumn" ], "id": "dandelion_harv" } ],
"bash": { "str_min": 2, "str_max": 6, "sound": "crunch.", "sound_fail": "whish." }
},
{
@@ -39,7 +39,7 @@
"required_str": -1,
"flags": [ "TRANSPARENT", "TINY", "FLAMMABLE_ASH", "NOCOLLIDE", "FLOWER" ],
"examine_action": "harvest_furn_nectar",
"harvest_by_season": [ { "seasons": [ "spring", "summer", "autumn" ], "entries": [ { "drop": "raw_burdock", "base_num": [ 1, 4 ] } ] } ],
"harvest_by_season": [ { "seasons": [ "spring", "summer", "autumn" ], "id": "burdoc_harv" } ],
"bash": { "str_min": 2, "str_max": 6, "sound": "crunch.", "sound_fail": "whish." }
},
{
@@ -54,7 +54,7 @@
"required_str": -1,
"flags": [ "TRANSPARENT", "TINY", "FLAMMABLE_ASH", "NOCOLLIDE", "FLOWER" ],
"examine_action": "harvest_furn",
"harvest_by_season": [ { "seasons": [ "summer", "autumn" ], "entries": [ { "drop": "chamomile", "base_num": [ 4, 8 ] } ] } ],
"harvest_by_season": [ { "seasons": [ "summer", "autumn" ], "id": "chamomille_harv" } ],
"bash": { "str_min": 2, "str_max": 6, "sound": "crunch.", "sound_fail": "whish." }
},
{
@@ -69,12 +69,7 @@
"required_str": -1,
"flags": [ "TRANSPARENT", "TINY", "FLAMMABLE_ASH", "NOCOLLIDE", "FLOWER" ],
"examine_action": "harvest_furn_nectar",
"harvest_by_season": [
{
"seasons": [ "spring", "summer", "autumn" ],
"entries": [ { "drop": "withered", "base_num": [ 1, 2 ] }, { "drop": "seed_flower", "base_num": [ 1, 2 ] } ]
}
],
"harvest_by_season": [ { "seasons": [ "spring", "summer", "autumn" ], "id": "tulip_harv" } ],
"bash": { "str_min": 2, "str_max": 6, "sound": "crunch.", "sound_fail": "whish." }
},
{
@@ -89,16 +84,7 @@
"required_str": -1,
"flags": [ "TRANSPARENT", "TINY", "FLAMMABLE_ASH", "NOCOLLIDE", "FLOWER" ],
"examine_action": "harvest_furn_nectar",
"harvest_by_season": [
{
"seasons": [ "spring", "summer", "autumn" ],
"entries": [
{ "drop": "withered", "base_num": [ 1, 2 ] },
{ "drop": "seed_spurge", "base_num": [ 1, 2 ] },
{ "drop": "spurge", "base_num": [ 1, 4 ] }
]
}
],
"harvest_by_season": [ { "seasons": [ "spring", "summer", "autumn" ], "id": "spurge_harv" } ],
"bash": { "str_min": 2, "str_max": 6, "sound": "crunch.", "sound_fail": "whish." }
},
{
@@ -113,11 +99,8 @@
"flags": [ "TRANSPARENT", "TINY", "FLAMMABLE_ASH", "NOCOLLIDE", "ORGANIC" ],
"examine_action": "harvest_furn",
"harvest_by_season": [
{ "seasons": [ "winter" ], "entries": [ { "drop": "cattail_rhizome" } ] },
{
"seasons": [ "spring", "summer", "autumn" ],
"entries": [ { "drop": "cattail_rhizome" }, { "drop": "cattail_stalk", "base_num": [ 1, 4 ] } ]
}
{ "seasons": [ "winter" ], "id": "cattails_winter_harv" },
{ "seasons": [ "spring", "summer", "autumn" ], "id": "cattails_summer_harv" }
],
"bash": { "str_min": 2, "str_max": 6, "sound": "crunch.", "sound_fail": "whish." }
},
@@ -133,12 +116,7 @@
"required_str": -1,
"flags": [ "TRANSPARENT", "TINY", "FLAMMABLE_ASH", "NOCOLLIDE", "FLOWER" ],
"examine_action": "harvest_furn_nectar",
"harvest_by_season": [
{
"seasons": [ "spring", "summer", "autumn" ],
"entries": [ { "drop": "withered", "base_num": [ 1, 2 ] }, { "drop": "seed_flower", "base_num": [ 1, 2 ] } ]
}
],
"harvest_by_season": [ { "seasons": [ "spring", "summer", "autumn" ], "id": "black_eyed_susan_harv" } ],
"//": "Add flower and bud spawns once useful.",
"bash": { "str_min": 2, "str_max": 6, "sound": "crunch.", "sound_fail": "whish." }
},
@@ -154,12 +132,7 @@
"required_str": -1,
"flags": [ "TRANSPARENT", "TINY", "FLAMMABLE_ASH", "NOCOLLIDE", "ORGANIC" ],
"examine_action": "harvest_furn_nectar",
"harvest_by_season": [
{
"seasons": [ "spring", "summer", "autumn" ],
"entries": [ { "drop": "withered", "base_num": [ 1, 2 ] }, { "drop": "seed_flower", "base_num": [ 1, 2 ] } ]
}
],
"harvest_by_season": [ { "seasons": [ "spring", "summer", "autumn" ], "id": "lily_harv" } ],
"//": "Add flower and bud spawns once useful.",
"bash": { "str_min": 2, "str_max": 6, "sound": "crunch.", "sound_fail": "whish." }
},
@@ -175,12 +148,7 @@
"required_str": -1,
"flags": [ "TRANSPARENT", "TINY", "FLAMMABLE_ASH", "ORGANIC" ],
"examine_action": "harvest_furn_nectar",
"harvest_by_season": [
{
"seasons": [ "spring", "summer", "autumn" ],
"entries": [ { "drop": "withered", "base_num": [ 1, 2 ] }, { "drop": "lotus", "base_num": [ 1, 2 ] } ]
}
],
"harvest_by_season": [ { "seasons": [ "spring", "summer", "autumn" ], "id": "lotus_harv" } ],
"//": "Add flower and bud spawns once useful.",
"bash": { "str_min": 2, "str_max": 6, "sound": "crunch.", "sound_fail": "whish." }
},
@@ -196,7 +164,7 @@
"required_str": -1,
"flags": [ "TRANSPARENT", "TINY", "FLAMMABLE_ASH", "NOCOLLIDE", "FLOWER" ],
"examine_action": "harvest_furn_nectar",
"harvest_by_season": [ { "seasons": [ "summer" ], "entries": [ { "drop": "sunflower" } ] } ],
"harvest_by_season": [ { "seasons": [ "summer" ], "id": "sunflower_harv" } ],
"bash": { "str_min": 2, "str_max": 6, "sound": "crunch.", "sound_fail": "whish." }
},
{
@@ -210,7 +178,7 @@
"required_str": -1,
"flags": [ "TRANSPARENT", "TINY", "FLAMMABLE_ASH", "NOCOLLIDE", "FLOWER" ],
"examine_action": "harvest_furn",
"harvest_by_season": [ { "seasons": [ "spring", "summer", "autumn" ], "entries": [ { "drop": "withered", "base_num": [ 1, 2 ] } ] } ],
"harvest_by_season": [ { "seasons": [ "spring", "summer", "autumn" ], "id": "lilypad_harv" } ],
"bash": { "str_min": 2, "str_max": 6, "sound": "crunch.", "sound_fail": "whish." }
},
{
@@ -225,12 +193,7 @@
"required_str": -1,
"flags": [ "TRANSPARENT", "TINY", "FLAMMABLE_ASH", "NOCOLLIDE", "FLOWER" ],
"examine_action": "harvest_furn_nectar",
"harvest_by_season": [
{
"seasons": [ "spring", "summer", "autumn" ],
"entries": [ { "drop": "withered", "base_num": [ 1, 2 ] }, { "drop": "seed_flower", "base_num": [ 1, 2 ] } ]
}
],
"harvest_by_season": [ { "seasons": [ "spring", "summer", "autumn" ], "id": "bluebell_harv" } ],
"bash": { "str_min": 2, "str_max": 6, "sound": "crunch.", "sound_fail": "whish." }
},
{
@@ -259,7 +222,7 @@
"required_str": -1,
"flags": [ "TRANSPARENT", "TINY", "FLAMMABLE_ASH", "NOCOLLIDE", "FLOWER" ],
"examine_action": "harvest_furn_nectar",
"harvest_by_season": [ { "seasons": [ "spring", "summer", "autumn" ], "entries": [ { "drop": "chicory_raw", "base_num": [ 1, 2 ] } ] } ],
"harvest_by_season": [ { "seasons": [ "spring", "summer", "autumn" ], "id": "chicory_harv" } ],
"bash": { "str_min": 2, "str_max": 6, "sound": "crunch.", "sound_fail": "whish." }
},
{
@@ -274,12 +237,7 @@
"required_str": -1,
"flags": [ "TRANSPARENT", "TINY", "FLAMMABLE_ASH", "NOCOLLIDE", "ORGANIC" ],
"examine_action": "harvest_furn_nectar",
"harvest_by_season": [
{
"seasons": [ "spring", "summer", "autumn" ],
"entries": [ { "drop": "datura_seed", "base_num": [ 2, 6 ] }, { "drop": "withered", "base_num": [ 1, 2 ] } ]
}
],
"harvest_by_season": [ { "seasons": [ "spring", "summer", "autumn" ], "id": "datura_harv" } ],
"bash": { "str_min": 2, "str_max": 6, "sound": "crunch.", "sound_fail": "whish." }
},
{
@@ -317,7 +275,7 @@
"required_str": -1,
"flags": [ "TRANSPARENT", "TINY", "FLAMMABLE_ASH", "NOCOLLIDE", "FLOWER" ],
"examine_action": "harvest_furn",
"harvest_by_season": [ { "seasons": [ "summer", "autumn" ], "entries": [ { "drop": "seed_mustard", "base_num": [ 2, 6 ] } ] } ],
"harvest_by_season": [ { "seasons": [ "summer", "autumn" ], "id": "mustard_harv" } ],
"bash": { "str_min": 2, "str_max": 6, "sound": "crunch.", "sound_fail": "whish." }
},
{
@@ -333,12 +291,7 @@
"transforms_into": "t_tree_alder_harvested",
"examine_action": "harvest_ter",
"looks_like": "t_tree_hickory",
"harvest_by_season": [
{
"seasons": [ "spring", "autumn" ],
"entries": [ { "drop": "alder_bark", "base_num": [ 2, 5 ], "scale_num": [ 0, 1 ] } ]
}
],
"harvest_by_season": [ { "seasons": [ "spring", "autumn" ], "id": "alder_harv" } ],
"bash": {
"str_min": 80,
"str_max": 180,
@@ -10,7 +10,7 @@
"move_cost_mod": -1,
"coverage": 35,
"required_str": -1,
"flags": [ "TRANSPARENT", "AUTODOC", "CONTAINER" ],
"flags": [ "TRANSPARENT", "AUTODOC", "CONTAINER", "NO_PICKUP_ON_EXAMINE" ],
"examine_action": "autodoc",
"surgery_skill_multiplier": 1.0,
"deconstruct": {
@@ -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 ] }
]
}
@@ -201,7 +201,7 @@
"floor_bedding_warmth": 200,
"required_str": 3,
"deconstruct": { "items": [ { "item": "box_large", "count": 1 } ] },
"max_volume": "1500 L",
"max_volume": "324 L",
"deployed_item": "box_large",
"examine_action": "deployed_furniture",
"flags": [
@@ -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,
@@ -147,7 +147,11 @@
"flags": [ "NOITEM", "DOOR", "PERMEABLE", "FLAMMABLE_ASH", "MOUNTABLE" ],
"open": "f_beaded_door_o",
"deconstruct": {
"items": [ { "item": "stick_long", "count": 1 }, { "item": "string_36", "count": 20 }, { "item": "wooden_bead", "count": 2000 } ]
"items": [
{ "item": "stick_long", "count": 1 },
{ "item": "string_36", "count": 20 },
{ "item": "wooden_bead", "charges": 2000 }
]
},
"bash": {
"str_min": 1,
@@ -158,7 +162,7 @@
"items": [
{ "item": "string_36", "count": [ 3, 15 ] },
{ "item": "stick_long", "count": 1 },
{ "item": "wooden_bead", "count": [ 200, 500 ] }
{ "item": "wooden_bead", "charges": [ 200, 500 ] }
]
}
},
@@ -175,7 +179,11 @@
"flags": [ "TRANSPARENT", "FLAMMABLE_ASH", "FLAT" ],
"close": "f_beaded_door",
"deconstruct": {
"items": [ { "item": "stick_long", "count": 1 }, { "item": "string_36", "count": 20 }, { "item": "wooden_bead", "count": 2000 } ]
"items": [
{ "item": "stick_long", "count": 1 },
{ "item": "string_36", "count": 20 },
{ "item": "wooden_bead", "charges": 2000 }
]
},
"bash": {
"str_min": 1,
@@ -186,7 +194,7 @@
"items": [
{ "item": "string_36", "count": [ 3, 15 ] },
{ "item": "stick_long", "count": 1 },
{ "item": "wooden_bead", "count": [ 200, 500 ] }
{ "item": "wooden_bead", "charges": [ 200, 500 ] }
]
}
},
@@ -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",
@@ -118,7 +118,7 @@
"type": "terrain",
"id": "t_pontoon_dp",
"name": "pontoon bridge",
"description": "A floating temporary bridge, like the ones army used to make to cross rivers.",
"description": "A floating temporary bridge over still water, like the ones armies used to make to cross lakes.",
"looks_like": "t_pontoon",
"symbol": "8",
"color": "brown",
@@ -141,7 +141,7 @@
"type": "terrain",
"id": "t_riverbridge_dp",
"name": "river bridge",
"description": "A floating temporary bridge, like the ones army used to make to cross rivers.",
"description": "A floating temporary bridge over flowing water, like the ones armies used to make to cross rivers.",
"looks_like": "t_pontoon",
"symbol": "8",
"color": "brown",
@@ -156,7 +156,7 @@
"str_max": 80,
"sound": "smash!",
"sound_fail": "whump!",
"ter_set": "t_water_dp",
"ter_set": "t_water_moving_dp",
"items": [ { "item": "2x4", "count": 2, "prob": 25 }, { "item": "splinter", "count": [ 2, 4 ] } ]
}
},
@@ -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",
@@ -305,7 +317,7 @@
"color": "light_red",
"move_cost": 2,
"roof": "t_flat_roof",
"flags": [ "TRANSPARENT", "FLAMMABLE_HARD", "SUPPORTS_ROOF", "COLLAPSES", "INDOORS", "FLAT" ],
"flags": [ "TRANSPARENT", "FLAMMABLE_HARD", "SUPPORTS_ROOF", "COLLAPSES", "INDOORS", "FLAT", "ROAD" ],
"bash": {
"sound": "SMASH!",
"ter_set": "t_null",
@@ -703,7 +715,7 @@
"sound": "SMASH!",
"items": [ { "item": "wax", "count": [ 1, 3 ] } ]
},
"flags": [ "TRANSPARENT", "FLAMMABLE_HARD", "SUPPORTS_ROOF", "COLLAPSES", "INDOORS", "FLAT" ]
"flags": [ "TRANSPARENT", "FLAMMABLE_HARD", "SUPPORTS_ROOF", "COLLAPSES", "INDOORS", "FLAT", "ROAD" ]
},
{
"type": "terrain",
@@ -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"
}
]

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