Compare commits

..

275 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
2600 changed files with 742697 additions and 1635850 deletions
+1 -1
View File
@@ -11,7 +11,7 @@ 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[libflac,mpg123,libmodplug,libvorbis] sdl2-ttf gettext --recurse
- 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
+1
View File
@@ -46,6 +46,7 @@ modernize-*,\
performance-*,\
readability-*,\
-readability-braces-around-statements,\
-bugprone-branch-clone,\
-bugprone-infinite-loop,\
-bugprone-misplaced-widening-cast,\
-bugprone-narrowing-conversions,\
-1
View File
@@ -19,7 +19,6 @@
/data/mods/speedydex/ @KorGgenT
/data/mods/stats_through_kills/ @KorGgenT
/data/mods/Dark-Skies-Above/ @ephemeralstoryteller
/data/mods/No_Hope/ @Night-Pryanik
magic*.cpp @KorGgenT
magic*.h @KorGgenT
+2 -3
View File
@@ -111,13 +111,12 @@ Helpful pages:
3. Set commit message template.
$ cd Cataclysm-DDA
# Changes the active directory in the prompt to the newly cloned "Cataclysm-DDA" directory
$ git config --local commit.template .gitmessage
# Set commit message template to the custom one in the repo
4. Add this repository as a remote.
$ cd Cataclysm-DDA
# Changes the active directory in the prompt to the newly cloned "Cataclysm-DDA" directory
$ git remote add -f upstream https://github.com/CleverRaven/Cataclysm-DDA.git
# Assigns the original repository to a remote called "upstream"
+59
View File
@@ -0,0 +1,59 @@
---
name: Bug report
about: Create a report to help us improve
---
<!-- Please follow the template below -->
# Describe the bug
<!-- A clear and concise description of what the bug is. -->
# Steps To Reproduce
<!-- Steps to reproduce the behavior:
1. Make a player with a gun, magazine, and some ammo.
2. Try to aim at a wall.
3. There's no way to increase aim level. -->
# Expected behavior
<!-- A clear and concise description of what you expected to happen.
Ideally also describe *why* you expect it to happen. -->
# Screenshots
<!-- **If applicable**, add screenshots to help explain your problem.
Do not take a screenshot of the crashing window. Please provide the crash logs in the "Additional context" -->
# Versions and configuration
<!-- Please complete the following information; you can now go to:
- "Main menu (ESC) > Debug Menu > Info > Generate game report" to generate this report.
- Please update your OS version with a more precise version.
- OS: [e.g. iOS 8 or Windows 10 or Ubuntu 18.04]
- Game Version: [from the main menu, e.g. 0.C-29938-g90f5268437]
- Graphics version: [Tiles or Terminal]
- Ingame language: [Arabic or Bulgarian or Chinese (Simplified) or Chinese (Traditional) or Dutch or Esperanto or French or German or Italian (Italy) or Japanese or Korean or Polish or Portuguese (Brazil) or Russian or Serbian or Spanish (Argentina) or Spanish (Spain) or Turkish]
- Mods loaded: [e.g.dda, boats, hacktheplanet, StatsThroughSkills]
-->
# Additional context
<!-- Add any other context about the problem here.
Crash: if your problem refers to a crash, please add the following files to the "Additional Context" paragraph:
- From the /config folder (you can zip them both together):
- crash.log file.
- debug.log file.
- Your save file (zipped)
- note #1: you can drag and drop files in this issue post!
- note #2: it is very important for us that you provide a save file in case of a crash. It really helps the developers
to reproduce the bug and fix it. If possible, try to provide a save file that occurs in the right conditions, just
before the crash happens. -->
-88
View File
@@ -1,88 +0,0 @@
name: Bug Report 🐛
description: Create a report to help us improve
body:
- type: markdown
attributes:
value: |
Please take the time to fill out all the fields below.
- type: textarea
id: description-of-bug
attributes:
label: Describe the bug
description: A clear and concise description of what the bug is.
placeholder: There is no way for aim level to increase.
validations:
required: true
- type: textarea
id: steps-to-reproduce
attributes:
label: Steps To Reproduce
description: Steps to reproduce the behavior.
placeholder: |
1. Make a player with a gun, magazine, and some ammo.
2. Try to aim at a wall.
3. There's no way to increase aim level.
validations:
required: true
- type: textarea
id: expected-behavior
attributes:
label: Expected behavior
description: |
A clear and concise description of what you expected to happen.
Ideally also describe *why* you expect it to happen.
placeholder: |
I expected that aim level would increase, because all other skills can increase in level.
validations:
required: true
- type: textarea
id: screenshots
attributes:
label: Screenshots
description: |
**If applicable**, add screenshots to help explain your problem.
Do not take a screenshot of the crashing window. Please provide the crash logs in the "Additional context"
validations:
required: false
- type: textarea
id: versions-and-config
attributes:
label: Versions and configuration
description: |
The following information should consist only of the automated game report generated by the game; please put further information below.
To generate a report: "Main menu (ESC) > Debug Menu > Info > Generate game report".
placeholder: |
- OS: [e.g. iOS 8 or Windows 10 or Ubuntu 18.04]
- Game Version: [e.g. 0.C-29938-g90f5268437]
- Graphics version: [Tiles or Terminal]
- Ingame language: [Arabic or Bulgarian or Chinese (Simplified) or Chinese (Traditional) or Dutch or Esperanto or French or German or Italian (Italy) or Japanese or Korean or Polish or Portuguese (Brazil) or Russian or Serbian or Spanish (Argentina) or Spanish (Spain) or Turkish]
- Mods loaded: [e.g. dda, boats, hacktheplanet, StatsThroughSkills]
validations:
required: true
- type: textarea
id: additional-context
attributes:
label: Additional context
description: |
Add any other context about the problem here.
placeholder: |
Crash: if your problem refers to a crash, please add the following files to the "Additional Context" paragraph:
- From the /config folder (you can zip them both together):
- crash.log file.
- debug.log file.
- Your save file (zipped)
- note #1: you can drag and drop files in this issue post!
- note #2: it is very important for us that you provide a save file in case of a crash. It really helps the developers
to reproduce the bug and fix it. If possible, try to provide a save file that occurs in the right conditions, just
before the crash happens.
validations:
required: false
+1 -6
View File
@@ -1,10 +1,5 @@
<!-- 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.
Please read carefully and don't delete the comments delimited by "< !--" and "-- >"
Once a pull request is submitted automatic stylistic and consistency checks will be performed on the PR's changes.
The results of these can be either seen under the "Files changed" section of a PR or in the check's details.
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. -->
#### Summary
@@ -1,5 +0,0 @@
set(VCPKG_TARGET_ARCHITECTURE x64)
set(VCPKG_CRT_LINKAGE static)
set(VCPKG_LIBRARY_LINKAGE static)
set(VCPKG_BUILD_TYPE release)
-5
View File
@@ -1,5 +0,0 @@
set(VCPKG_TARGET_ARCHITECTURE x64)
set(VCPKG_CRT_LINKAGE dynamic)
set(VCPKG_LIBRARY_LINKAGE dynamic)
set(VCPKG_BUILD_TYPE release)
@@ -1,5 +0,0 @@
set(VCPKG_TARGET_ARCHITECTURE x86)
set(VCPKG_CRT_LINKAGE static)
set(VCPKG_LIBRARY_LINKAGE static)
set(VCPKG_BUILD_TYPE release)
-5
View File
@@ -1,5 +0,0 @@
set(VCPKG_TARGET_ARCHITECTURE x86)
set(VCPKG_CRT_LINKAGE dynamic)
set(VCPKG_LIBRARY_LINKAGE dynamic)
set(VCPKG_BUILD_TYPE release)
+27 -5
View File
@@ -4,21 +4,43 @@ on:
push:
branches:
- master
workflow_dispatch:
- 0.F-dev
paths:
- '**.cpp'
- '**.h'
- '**.c'
- '**/CMakeLists.txt'
- '**/Makefile'
- '**.hpp'
- '**.cmake'
- '.github/workflows/CBA.yml'
pull_request:
branches:
- master
- 0.F-dev
paths:
- '**.cpp'
- '**.h'
- '**.c'
- '**/CMakeLists.txt'
- '**/Makefile'
- '**.hpp'
- '**.cmake'
- '.github/workflows/CBA.yml'
# Mixing in event_name so that a master push and a workflow dispatch can run at the same time.
concurrency: clang_build_analyzer-${{ github.event_name }}
jobs:
build:
runs-on: ubuntu-latest
runs-on: ubuntu-latest
steps:
- name: checkout repository
uses: actions/checkout@v1
with:
fetch-depth: 1
- name: install dependencies
run: sudo apt-get install libncursesw5-dev gettext
run: sudo apt-get install libncursesw5-dev
- name: Prepare Build Analyzer
run: |
cd
+6 -15
View File
@@ -1,24 +1,15 @@
name: astyle
on: pull_request
on:
pull_request:
paths:
- '**.cpp'
- '**.h'
- '**.c'
jobs:
skip-duplicates:
continue-on-error: true
runs-on: ubuntu-latest
# Map a step output to a job output
outputs:
should_skip: ${{ steps.skip_check.outputs.should_skip }}
steps:
- id: skip_check
uses: fkirc/skip-duplicate-actions@master
with:
cancel_others: 'true'
paths: '[".github/workflows/astyle.yml", "Makefile", ".astylerc", "**.cpp", "**.h", "**.c"]'
astyle-code:
name: astyle check
needs: skip-duplicates
if: ${{ needs.skip-duplicates.outputs.should_skip != 'true' }}
runs-on: ubuntu-latest
-72
View File
@@ -1,72 +0,0 @@
name: Basic Build
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
skip-duplicates:
continue-on-error: true
runs-on: ubuntu-latest
# Map a step output to a job output
outputs:
should_skip: ${{ steps.skip_check.outputs.should_skip }}
steps:
- id: skip_check
uses: fkirc/skip-duplicate-actions@master
with:
cancel_others: 'true'
paths_ignore: '["android/**", "build-data/osx/**", "doc/**", "doxygen_doc/**", "lgtm/**", "msvc-**", "object_creator/**", "tools/**", "utilities/**"]'
basic-build:
needs: skip-duplicates
if: ${{ needs.skip-duplicates.outputs.should_skip != 'true' }}
name: Basic Build and Test (GCC 9, Curses, LTO)
runs-on: ubuntu-latest
env:
COMPILER: g++-9
TEST_STAGE: 1
EXTRA_TEST_OPTS: --error-format=github-action
NATIVE: linux64
GOLD: 1
LTO: 1
RELEASE: 1
steps:
- name: checkout repository
uses: actions/checkout@v1
with:
fetch-depth: 1
- name: install dependencies (ubuntu)
if: runner.os == 'Linux'
run: |
sudo apt-get update
sudo apt-get install libncursesw5-dev ccache gettext parallel
- name: prepare
run: bash ./build-scripts/requirements.sh
- name: Get Date
id: get-date
run: |
echo "::set-output name=date::$(/bin/date -u "+%Y%m%d%H%M")"
shell: bash
- name: ccache cache files (ubuntu)
if: runner.os == 'Linux'
uses: actions/cache@v2
with:
path: ~/.ccache
key: ccache-linux-g++-9-${{ steps.get-date.outputs.date }}
restore-keys: |
ccache-linux-g++-9-
- 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@v2
if: failure()
with:
name: cata_test
path: tests/cata_test
if-no-files-found: ignore
+18 -16
View File
@@ -4,28 +4,30 @@ on:
push:
branches:
- master
- 0.F-dev
paths:
- '**.cpp'
- '**.h'
- '**.c'
- '**/CMakeLists.txt'
- '**/Makefile'
- '**.hpp'
- '**.cmake'
pull_request:
branches:
- master
- 0.F-dev
paths:
- '**.cpp'
- '**.h'
- '**.c'
- '**/CMakeLists.txt'
- '**/Makefile'
- '**.hpp'
- '**.cmake'
jobs:
skip-duplicates:
continue-on-error: true
runs-on: ubuntu-latest
# Map a step output to a job output
outputs:
should_skip: ${{ steps.skip_check.outputs.should_skip }}
steps:
- id: skip_check
uses: fkirc/skip-duplicate-actions@master
with:
cancel_others: 'true'
paths: '[ "**.cpp", "**.h", "**.c", "**/CMakeLists.txt", "**/Makefile", "**.hpp", "**.cmake" ]'
build:
needs: skip-duplicates
if: ${{ needs.skip-duplicates.outputs.should_skip != 'true' }}
runs-on: ubuntu-20.04
env:
CMAKE: 1
+2
View File
@@ -4,6 +4,7 @@ on:
push:
branches:
- master
- 0.F-dev
paths:
- '**/CMakeLists.txt'
- '**.cmake'
@@ -11,6 +12,7 @@ on:
pull_request:
branches:
- master
- 0.F-dev
paths:
- '**/CMakeLists.txt'
- '**.cmake'
+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'
+4 -15
View File
@@ -1,26 +1,15 @@
name: JSON Validation
on: pull_request
on:
pull_request:
paths:
- '**.json'
jobs:
skip-duplicates:
continue-on-error: true
runs-on: ubuntu-latest
# Map a step output to a job output
outputs:
should_skip: ${{ steps.skip_check.outputs.should_skip }}
steps:
- id: skip_check
uses: fkirc/skip-duplicate-actions@master
with:
cancel_others: 'true'
paths: '["**.json"]'
style-json:
name: JSON style check
runs-on: ubuntu-latest
needs: skip-duplicates
if: ${{ needs.skip-duplicates.outputs.should_skip != 'true' }}
steps:
- uses: actions/checkout@v1
+70 -118
View File
@@ -4,113 +4,83 @@ on:
push:
branches:
- master
- 0.F-dev
paths-ignore:
- 'android/**'
- 'build-data/osx/**'
- 'doc/**'
- 'doxygen_doc/**'
- 'lgtm/**'
- 'msvc-full-features/**'
- 'msvc-object_creator/**'
- 'object_creator/**'
- 'tools/**'
- 'utilities/**'
pull_request:
branches:
- master
- 0.F-dev
paths-ignore:
- 'android/**'
- 'build-data/osx/**'
- 'doc/**'
- 'doxygen_doc/**'
- 'lgtm/**'
- 'msvc-full-features/**'
- 'msvc-object_creator/**'
- 'object_creator/**'
- 'tools/**'
- 'utilities/**'
# Overall strategy for what sorts of builds to include:
# We want a build for the newest and oldest supported version of each compiler.
# We want a build for each platform.
# We also want to ensure that each of the following tweaks are covered in at
# least one PR build:
# - TILES=1
# - SOUND=1
# - RELEASE=1
# - CMAKE=1
# - LOCALIZE=0
# - LTO=1
# - Tests with important mods enabled (Magiclysm)
# - A clang-tidy run
# - SANITIZE=address,undefined
# We try to minimize the number of builds subject to those constraints.
#
# To see what toolchains are available, the following may be useful:
# https://launchpad.net/%7Eubuntu-toolchain-r/+archive/ubuntu/test/+index
# https://apt.llvm.org/
jobs:
skip-duplicates:
continue-on-error: true
runs-on: ubuntu-latest
# Map a step output to a job output
outputs:
should_skip: ${{ steps.skip_check.outputs.should_skip }}
steps:
- id: skip_check
uses: fkirc/skip-duplicate-actions@master
with:
cancel_others: 'true'
paths_ignore: '["android/**", "build-data/osx/**", "doc/**", "doxygen_doc/**", "lgtm/**", "msvc-**", "object_creator/**", "tools/**", "utilities/**", "data/**"]'
skip-duplicates-mods:
continue-on-error: true
runs-on: ubuntu-latest
# Map a step output to a job output
outputs:
should_skip_mods: ${{ steps.skip_check.outputs.should_skip }}
steps:
- id: skip_check
uses: fkirc/skip-duplicate-actions@master
with:
cancel_others: 'true'
paths_ignore: '["android/**", "build-data/osx/**", "doc/**", "doxygen_doc/**", "lgtm/**", "msvc-**", "object_creator/**", "tools/**", "utilities/**"]'
varied_builds:
needs: skip-duplicates
strategy:
max-parallel: 1
matrix:
release: [0]
cmake: [0]
tiles: [1]
sound: [0]
localize: [1]
native: [linux64]
include:
- compiler: clang++-12
os: ubuntu-latest
sanitize: address
mods: --mods=magiclysm
title: Clang 12, Ubuntu, Tiles, ASan
- compiler: g++-11
- compiler: g++-9
os: ubuntu-latest
cmake: 0
tiles: 0
sanitize: address
title: GCC 11, Ubuntu, Curses, ASan
- compiler: clang++
os: macos-10.15
native: osx
sanitize: undefined
tiles: 1
sound: 1
title: Clang 12, macOS 10.15, Tiles, Sound, UBSan
- compiler: g++
os: ubuntu-latest
native:
tiles: 1
sound: 1
test-stage: 1
title: GCC 11, Ubuntu cross-compile to MinGW-Win64, Tiles, Sound
ldflags: -static-libgcc -static-libstdc++
mxe_target: i686-w64-mingw32.static.gcc11
wine: wine
- compiler: clang++-6.0
os: ubuntu-18.04
tiles: 0
release: 1
title: Clang 6, Ubuntu, Curses, Release
native: linux64
gold: 1
lto: 1
title: GCC 9, Ubuntu, Curses, LTO
- compiler: g++-7
os: ubuntu-18.04
os: ubuntu-latest
cmake: 1
tiles: 1
sound: 1
localize: 0
title: GCC 7, Ubuntu, Tiles, Sound, CMake
native: linux64
title: GCC 7, Ubuntu, Tiles, CMake
- compiler: g++-8
os: ubuntu-latest
cmake: 0
tiles: 1
sanitize: address
native: linux64
title: GCC 8, Ubuntu, Tiles, ASan
- compiler: clang++-12
os: ubuntu-latest
cmake: 0
tiles: 1
sanitize: address,undefined
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:
@@ -120,60 +90,43 @@ jobs:
WINE: ${{ matrix.wine }}
OS: ${{ matrix.os }}
TILES: ${{ matrix.tiles }}
SOUND: ${{ matrix.sound }}
LOCALIZE: ${{ matrix.localize }}
MODS: ${{ matrix.mods }}
SOUND: ${{ matrix.tiles }}
SANITIZE: ${{ matrix.sanitize }}
TEST_STAGE: ${{ matrix.test-stage }}
LDFLAGS: ${{ matrix.ldflags }}
EXTRA_TEST_OPTS: --error-format=github-action
NUM_TEST_JOBS: ${{ matrix.num_test_jobs }}
NATIVE: ${{ matrix.native }}
GOLD: ${{ matrix.gold }}
LTO: ${{ matrix.lto }}
RELEASE: ${{ matrix.release }}
SKIP: ${{ needs.skip-duplicates.outputs.should_skip == 'true' || ( matrix.mods != 0 && needs.skip-duplicates-mods.outputs.should_skip_mods == 'true' ) }}
RELEASE: 1
steps:
- name: checkout repository
if: ${{ env.SKIP == 'false' }}
uses: actions/checkout@v1
with:
fetch-depth: 1
- name: install dependencies (ubuntu)
if: ${{ env.SKIP == 'false' && runner.os == 'Linux' }}
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 parallel
- name: install old GCC (Ubuntu)
if: ${{ env.SKIP == 'false' && runner.os == 'Linux' && (matrix.compiler == 'g++-7' || matrix.compiler == 'g++-8') }}
- 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 new GCC (Ubuntu)
if: ${{ env.SKIP == 'false' && runner.os == 'Linux' && (matrix.compiler == 'g++-11') }}
run: |
sudo add-apt-repository ppa:ubuntu-toolchain-r/test
sudo apt-get update
sudo apt-get install g++-11
- name: install old Clang (Ubuntu)
if: ${{ env.SKIP == 'false' && runner.os == 'Linux' && (matrix.compiler == 'clang++-6.0') }}
run: |
sudo apt-get install clang-6.0
- name: install dependencies (mac)
if: ${{ env.SKIP == 'false' && runner.os == 'macOS' }}
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
if: ${{ env.SKIP == 'false' }}
run: bash ./build-scripts/requirements.sh
- name: Get Date
id: get-date
if: ${{ env.SKIP == 'false' }}
run: |
echo "::set-output name=date::$(/bin/date -u "+%Y%m%d%H%M")"
shell: bash
- name: ccache cache files (ubuntu)
if: ${{ env.SKIP == 'false' && runner.os == 'Linux' }}
if: runner.os == 'Linux'
uses: actions/cache@v2
with:
path: ~/.ccache
@@ -181,7 +134,7 @@ jobs:
restore-keys: |
ccache-linux-${{ matrix.compiler }}-
- name: ccache cache files (mac)
if: ${{ env.SKIP == 'false' && runner.os == 'macOS' }}
if: runner.os == 'macOS'
uses: actions/cache@v2
with:
path: /Users/runner/Library/Caches/ccache
@@ -190,12 +143,11 @@ jobs:
ccache-mac-${{ matrix.compiler }}-
- uses: ammaraskar/gcc-problem-matcher@master
- name: build and test
if: ${{ env.SKIP == 'false' }}
run: bash ./build-scripts/build.sh
- name: upload artifacts if failed
uses: actions/upload-artifact@v2
if: failure()
with:
name: cata_test
path: tests/cata_test*
path: tests/cata_test
if-no-files-found: ignore
-114
View File
@@ -1,114 +0,0 @@
name: Cataclysm Windows build
on:
push:
branches:
- master
paths-ignore:
- 'android/**'
- 'build-data/osx/**'
- 'doc/**'
- 'doxygen_doc/**'
- 'gfx/**'
- 'lang/**'
- 'lgtm/**'
- 'msvc-object_creator/**'
- 'object_creator/**'
- 'tools/**'
- '!tools/format/**'
- 'utilities/**'
pull_request:
branches:
- master
paths-ignore:
- 'android/**'
- 'build-data/osx/**'
- 'doc/**'
- 'doxygen_doc/**'
- 'gfx/**'
- 'lang/**'
- 'lgtm/**'
- 'msvc-object_creator/**'
- 'object_creator/**'
- 'tools/**'
- '!tools/format/**'
- 'utilities/**'
env:
# There's not enough disk space to build both release and debug versions of
# our dependencies, so we hack the triplet file to build only release versions
# Have to use github.workspace because runner namespace isn't available yet.
VCPKG_OVERLAY_TRIPLETS: ${{ github.workspace }}\.github\vcpkg_triplets
jobs:
build_catatclysm:
name: Build
runs-on: windows-2019
steps:
- name: checkout repository
uses: actions/checkout@v2
with:
fetch-depth: 1
- name: Add msbuild to PATH
uses: microsoft/setup-msbuild@v1.0.2
- name: Restore artifacts, or run vcpkg, build and cache artifacts
uses: lukka/run-vcpkg@main
id: runvcpkg
with:
additionalCachedPaths: '${{ runner.workspace }}/Cataclysm-DDA/msvc-full-features/vcpkg_installed'
appendedCacheKey: ${{ hashFiles( 'msvc-full-features/vcpkg.json', '.github/vcpkg_triplets/**' ) }}-x64
setupOnly: true
vcpkgDirectory: '${{ runner.workspace }}/b/vcpkg'
# We have to use at least this version of vcpkg to include fixes for yasm-tool's
# availability only as an x86 host tool. Keep it in sync with the builtin-baseline
# field in vcpkg.json. Caching happens as a post-action which runs at the end of
# the whole workflow, after vcpkg install happens during msbuild run.
vcpkgGitCommitId: '49b67d9cb856424ff69f10e7721aec5299624268'
- name: Integrate vcpkg
run: |
vcpkg integrate install
- name: Build
run: |
cd msvc-full-features
msbuild -m -p:Configuration=Release -p:Platform=x64 "-target:Cataclysm-vcpkg-static;Cataclysm-test-vcpkg-static;JsonFormatter-vcpkg-static" Cataclysm-vcpkg-static.sln
- name: Dump logs if build failed
if: failure()
run: |
echo =================================================
Get-ChildItem "${{ runner.workspace }}/Cataclysm-DDA/msvc-full-features/vcpkg_installed" -Recurse
echo =================================================
Get-ChildItem "${{ runner.workspace }}/b/vcpkg/buildtrees" |
Foreach-Object {
Get-ChildItem $_.FullName -Filter *.log |
Foreach-Object {
echo =================================================
echo $_.FullName
echo =================================================
type $_.FullName
}
}
- name: Compile .mo files for localization
run: |
& "C:\msys64\mingw64\bin\mingw32-make" -C lang -j2
mkdir -p ./data/mods/TEST_DATA/lang/mo/ru/LC_MESSAGES -ErrorAction SilentlyContinue
msgfmt -f -o ./data/mods/TEST_DATA/lang/mo/ru/LC_MESSAGES/TEST_DATA.mo ./data/mods/TEST_DATA/lang/po/ru.po
- name: Enable GitHub Actions problem matchers
run: |
Write-Output "::add-matcher::build-scripts/problem-matchers/catch2.json"
Write-Output "::add-matcher::build-scripts/problem-matchers/debugmsg.json"
- name: Run tests
run: |
.\Cataclysm-test-vcpkg-static-Release-x64.exe --min-duration 0.2 --rng-seed time
- name: Clean
run: |
Get-ChildItem -Path Cataclysm-lib-vcpkg-static-Release-x64.* | Foreach-Object { rm $_.FullName }
-101
View File
@@ -1,101 +0,0 @@
name: ObjectCreator Windows build
on:
push:
branches:
- master
paths-ignore:
- 'android/**'
- 'build-data/osx/**'
- 'data/**'
- 'doc/**'
- 'doxygen_doc/**'
- 'gfx/**'
- 'lang/**'
- 'lgtm/**'
- 'tests/**'
- 'tools/**'
- 'utilities/**'
pull_request:
branches:
- master
paths-ignore:
- 'android/**'
- 'build-data/osx/**'
- 'data/**'
- 'doc/**'
- 'doxygen_doc/**'
- 'gfx/**'
- 'lang/**'
- 'lgtm/**'
- 'src/**'
- '!src/messages.*'
- 'tests/**'
- 'tools/**'
- 'utilities/**'
env:
# There's not enough disk space to build both release and debug versions of
# our dependencies, so we hack the triplet file to build only release versions
# Have to use github.workspace because runner namespace isn't available yet.
VCPKG_OVERLAY_TRIPLETS: ${{ github.workspace }}\.github\vcpkg_triplets
jobs:
build_object_creator:
name: Build
runs-on: windows-2019
steps:
- name: checkout repository
uses: actions/checkout@v2
with:
fetch-depth: 1
- name: Add msbuild to PATH
uses: microsoft/setup-msbuild@v1.0.2
- name: Restore artifacts, or run vcpkg, build and cache artifacts
uses: lukka/run-vcpkg@main
id: runvcpkg
with:
additionalCachedPaths: '${{ runner.workspace }}/Cataclysm-DDA/msvc-full-features/vcpkg_installed;${{ runner.workspace }}/Cataclysm-DDA/msvc-object_creator/vcpkg_installed'
appendedCacheKey: ${{ hashFiles( '$msvc-full-features/vcpkg.json', 'msvc-object_creator/vcpkg.json', '.github/vcpkg_triplets/**' ) }}-x64
setupOnly: true
vcpkgDirectory: '${{ runner.workspace }}/b/vcpkg'
# We have to use at least this version of vcpkg to include fixes for yasm-tool's
# availability only as an x86 host tool. Keep it in sync with the builtin-baseline
# field in vcpkg.json. Caching happens as a post-action which runs at the end of
# the whole workflow, after vcpkg install happens during msbuild run.
vcpkgGitCommitId: '49b67d9cb856424ff69f10e7721aec5299624268'
- name: Integrate vcpkg
run: |
vcpkg integrate install
- name: Build
run: |
cd msvc-object_creator
msbuild -m -p:Configuration=Release -p:Platform=x64 ObjectCreator-vcpkg-static.sln
- name: Dump logs if build failed
if: failure()
run: |
echo =================================================
Get-ChildItem "${{ runner.workspace }}/Cataclysm-DDA/msvc-full-features/vcpkg_installed" -Recurse
echo =================================================
Get-ChildItem "${{ runner.workspace }}/Cataclysm-DDA/msvc-object_creator/vcpkg_installed" -Recurse
echo =================================================
Get-ChildItem "${{ runner.workspace }}/b/vcpkg/buildtrees" |
Foreach-Object {
Get-ChildItem $_.FullName -Filter *.log |
Foreach-Object {
echo =================================================
echo $_.FullName
echo =================================================
type $_.FullName
}
}
- name: Clean
run: |
Get-ChildItem -Path Cataclysm-lib-vcpkg-static-Release-x64.*,ObjectCreator-vcpkg-static-Release-x64.* | Foreach-Object { rm $_.FullName }
+1
View File
@@ -3,6 +3,7 @@ on:
pull_request:
branches:
- master
- 0.F-dev
types: [opened, edited, synchronize]
jobs:
validate:
-50
View File
@@ -1,50 +0,0 @@
name: "Pull translations from Transifex"
on:
schedule:
- cron: "42 1 * * 6"
jobs:
pull-translations:
if: github.repository == 'CleverRaven/Cataclysm-DDA'
runs-on: ubuntu-20.04
steps:
- name: "Install dependencies"
run: |
sudo apt-get update
sudo apt-get install gettext python3-pip
sudo pip3 install transifex-client
- name: "Checkout"
uses: actions/checkout@v2
with:
ref: master
fetch-depth: 0
- name: "Get current date"
uses: 1466587594/get-current-time@v2
id: current-date
with:
format: 'DD MMMM YYYY'
- name: "Pull translations"
env:
TOKEN: ${{ secrets.TX_TOKEN }}
run: |
export TX_TOKEN=$TOKEN
rm lang/po/*.po
until tx pull -a
do
echo "Retry in 10 seconds..."
sleep 10
done
- name: Create Pull Request
uses: peter-evans/create-pull-request@v3.10.0
with:
commit-message: Routine i18n updates on ${{ steps.current-date.outputs.formattedTime }}
committer: Brett Dong (BOT) <brett.browning.dong@gmail.com>
author: Brett Dong (BOT) <brett.browning.dong@gmail.com>
token: ${{ secrets.TX_PR_CREATOR }}
branch: i18n
delete-branch: true
base: master
title: Routine i18n updates on ${{ steps.current-date.outputs.formattedTime }}
body: "#### Summary\nNone"
labels: Translation
@@ -1,55 +0,0 @@
name: "Push translation template"
concurrency: push_transifex
on:
push:
branches:
- master
paths:
- '**.json'
- 'src/**.cpp'
- 'src/**.h'
- 'lang/extract_json_strings.py'
- 'lang/strip_line_numbers.py'
- 'lang/update_pot.sh'
- 'lang/unicode_check.py'
jobs:
push-template:
if: github.repository == 'CleverRaven/Cataclysm-DDA'
runs-on: ubuntu-20.04
steps:
- name: "Install dependencies"
run: |
sudo apt-get update
sudo apt-get install gettext python3-pip
sudo pip3 install transifex-client
- name: "Checkout"
uses: actions/checkout@v2
- name: "Generate translation template"
run: |
lang/update_pot.sh
- name: "Set up Transifex token"
env:
TX_TOKEN: ${{ secrets.TX_TOKEN }}
run: |
cat << EOF > ~/.transifexrc
[https://www.transifex.com]
api_hostname = https://api.transifex.com
hostname = https://www.transifex.com
password = $TX_TOKEN
username = api
EOF
- name: "Push translation template to Transifex server"
uses: nick-invision/retry@v2
with:
timeout_minutes: 10
max_attempts: 5
retry_on: error
command: |
tx push --source --no-interactive --resource cataclysm-dda.master-cataclysm-dda
- name: Sleep for 5 minutes
run: sleep 5m
shell: bash
+32 -66
View File
@@ -60,20 +60,6 @@ jobs:
fail-fast: false
matrix:
include:
- name: Windows Tiles x64 MSVC
artifact: windows-tiles-x64-msvc
arch: x64
os: windows-2019
mxe: none
ext: zip
content: application/zip
- name: Windows Tiles x32 MSVC
artifact: windows-tiles-x32-msvc
arch: x86
os: windows-2019
mxe: none
ext: zip
content: application/zip
- name: Windows Tiles x64
mxe: x86_64
artifact: windows-tiles-x64
@@ -141,28 +127,7 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- name: Install dependencies (windows msvc) (1/3)
if: runner.os == 'Windows'
uses: microsoft/setup-msbuild@v1.0.2
- name: Install dependencies (windows msvc) (2/3)
if: runner.os == 'Windows'
uses: lukka/run-vcpkg@main
id: runvcpkg
with:
additionalCachedPaths: '${{ runner.workspace }}/Cataclysm-DDA/msvc-full-features/vcpkg_installed'
appendedCacheKey: ${{ hashFiles( 'msvc-full-features/vcpkg.json', '.github/vcpkg_triplets/**' ) }}-${{ matrix.arch }}
setupOnly: true
vcpkgDirectory: '${{ runner.workspace }}/b/vcpkg'
# We have to use at least this version of vcpkg to include fixes for yasm-tool's
# availability only as an x86 host tool. Keep it in sync with the builtin-baseline
# field in vcpkg.json. Caching happens as a post-action which runs at the end of
# the whole workflow, after vcpkg install happens during msbuild run.
vcpkgGitCommitId: '49b67d9cb856424ff69f10e7721aec5299624268'
- name: Install dependencies (windows msvc) (3/3)
if: runner.os == 'Windows'
run: |
vcpkg integrate install
- name: Install dependencies (windows mxe)
- 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 \
@@ -171,13 +136,11 @@ jobs:
- name: Install MXE
if: matrix.mxe != 'none'
run: |
curl -L -o mxe-${{ matrix.mxe }}.tar.xz https://github.com/BrettDong/MXE-GCC/releases/download/mxe-gcc-11.2/mxe-${{ matrix.mxe }}.tar.xz
curl -L -o mxe-${{ matrix.mxe }}.tar.xz.sha256 https://github.com/BrettDong/MXE-GCC/releases/download/mxe-gcc-11.2/mxe-${{ matrix.mxe }}.tar.xz.sha256
shasum -a 256 -c ./mxe-${{ matrix.mxe }}.tar.xz.sha256
sudo tar xJf mxe-${{ matrix.mxe }}.tar.xz -C /opt
curl -L -o libbacktrace-${{ matrix.mxe }}-w64-mingw32.tar.gz https://github.com/Qrox/libbacktrace/releases/download/2020-01-03/libbacktrace-${{ matrix.mxe }}-w64-mingw32.tar.gz
shasum -a 256 -c ./build-scripts/libbacktrace-${{ matrix.mxe }}-w64-mingw32-sha256
sudo tar -xzf libbacktrace-${{ matrix.mxe }}-w64-mingw32.tar.gz --exclude=LICENSE -C /opt/mxe/usr/${{ matrix.mxe }}-w64-mingw32.static.gcc11
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: |
@@ -189,8 +152,8 @@ jobs:
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: Create VERSION.TXT
shell: bash
- name: Build CDDA (linux)
if: runner.os == 'Linux' && matrix.mxe == 'none' && matrix.android == 'none'
run: |
cat >VERSION.txt <<EOL
build type: ${{ matrix.artifact }}
@@ -198,35 +161,33 @@ jobs:
commit sha: ${{ github.sha }}
commit url: https://github.com/${{ github.repository }}/commit/${{ github.sha }}
EOL
- name: Compile translations (windows)
if: runner.os == 'Windows'
shell: bash
run: |
lang/compile_mo.sh all
- name: Build CDDA (linux)
if: runner.os == 'Linux' && matrix.mxe == 'none' && matrix.android == 'none'
run: |
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 mxe)
- name: Build CDDA (windows)
if: matrix.mxe != 'none'
env:
PLATFORM: /opt/mxe/usr/bin/${{ matrix.mxe }}-w64-mingw32.static.gcc11-
PLATFORM: /usr/lib/mxe/usr/bin/${{ matrix.mxe }}-w64-mingw32.static-
run: |
make -j$((`nproc`+0)) CROSS="${PLATFORM}" TILES=1 SOUND=1 RELEASE=1 LOCALIZE=1 LANGUAGES=all BACKTRACE=1 PCH=0 bindist
mv cataclysmdda-0.F.zip cdda-${{ matrix.artifact }}-${{ needs.release.outputs.timestamp }}.zip
- name: Build CDDA (windows msvc)
if: runner.os == 'Windows'
env:
VCPKG_OVERLAY_TRIPLETS: ${{ github.workspace }}\.github\vcpkg_triplets
run: |
msbuild -m -p:Configuration=Release -p:Platform=${{ matrix.arch }} "-target:Cataclysm-vcpkg-static;JsonFormatter-vcpkg-static" msvc-full-features\Cataclysm-vcpkg-static.sln
.\build-scripts\windist.ps1
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: |
make -j3 TILES=${{ matrix.tiles }} SOUND=${{ matrix.tiles }} RELEASE=1 LOCALIZE=1 LANGUAGES=all BACKTRACE=0 PCH=0 USE_HOME_DIR=1 OSX_MIN=10.12 dmgdist
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'
@@ -237,6 +198,12 @@ jobs:
- 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)
@@ -273,7 +240,6 @@ jobs:
asset_name: cdda-${{ matrix.artifact }}-${{ needs.release.outputs.timestamp }}.${{ matrix.ext }}
asset_content_type: ${{ matrix.content }}
- name: Trigger GitHub pages rebuild
shell: bash
run: |
curl --fail --request POST \
--url https://api.github.com/repos/${{ github.repository }}/pages/builds \
@@ -1,45 +0,0 @@
name: Text Changes Analyzer
on:
pull_request:
branches:
- master
paths:
- '.github/workflows/text-changes-analyzer.yml'
- 'tools/pot_diff.py'
- 'src/*.h'
- 'src/*.cpp'
- '**.json'
jobs:
analyze-text-changes:
runs-on: ubuntu-20.04
steps:
- name: "Install dependencies"
run: |
sudo apt-get update
sudo apt-get install python3-pip gettext
sudo pip3 install polib
- name: "Checkout base commit"
uses: actions/checkout@v2
with:
ref: ${{ github.event.pull_request.base.sha }}
- name: "Generate translation template of base commit"
run: |
rm -f lang/po/cataclysm-dda.pot
./lang/update_pot.sh
cp lang/po/cataclysm-dda.pot ~/base.pot
- name: "Checkout head commit"
uses: actions/checkout@v2
with:
ref: ${{ github.event.pull_request.head.sha }}
- name: "Generate translation template of head commit"
run: |
rm -f lang/po/cataclysm-dda.pot
./lang/update_pot.sh
cp lang/po/cataclysm-dda.pot ~/head.pot
- name: "List text changes"
run: |
python3 ./tools/pot_diff.py ~/base.pot ~/head.pot
-3
View File
@@ -18,11 +18,8 @@ jobs:
with:
commit-message: Update the table of contents
branch: update-toc
token: ${{ secrets.TX_PR_CREATOR }}
title: Update the table of contents in doc/JSON_INFO.md
body: |
```sh
#### Summary
None
npx doctoc doc/JSON_INFO.md --github
```
+40
View File
@@ -0,0 +1,40 @@
name: "Push translation template"
concurrency: push_transifex
on:
push:
branches:
- master
paths:
- '**.json'
- 'src/**.cpp'
- 'src/**.h'
- 'lang/extract_json_strings.py'
- 'lang/strip_line_numbers.py'
- 'lang/update_pot.sh'
- 'lang/unicode_check.py'
jobs:
push-template:
runs-on: ubuntu-20.04
steps:
- name: "Install dependencies"
run: |
sudo apt-get update
sudo apt-get install gettext python3-pip
sudo pip3 install transifex-client
- name: "Checkout"
uses: actions/checkout@v2
- name: "Generate translation template"
run: |
lang/update_pot.sh
- name: "Push translation template"
env:
TOKEN: ${{ secrets.TX_TOKEN }}
run: |
export TX_TOKEN=$TOKEN
tx push --source --no-interactive --resource cataclysm-dda.master-cataclysm-dda
unset TX_TOKEN
unset TOKEN
-13
View File
@@ -7,7 +7,6 @@
*.o
*.tmp
*.zip
*.apk
/WinDepend/
/bindist/
/build/
@@ -101,9 +100,6 @@ tags
# Compiled binary translations
/lang/mo/
# Stampfile for binary translations
/lang/mo_built.stamp
# Directory for translatable strings
/lang/json/*
!/lang/json/README
@@ -208,12 +204,3 @@ Xcode/
/tests/pch/tests-pch.hpp.pch
/tests/catch/catch.hpp.gch
/tests/catch/catch.hpp.pch
weather.output
# bundler local directories and files for jekyll site
/.bundle/
/_site/
/vendor/
.sass-cache
.jekyll-metadata
Gemfile.lock
-1
View File
@@ -1,4 +1,3 @@
# Disable FIXME query, in DDA it is as likely to be a future feature as a bug.
queries:
- exclude: cpp/fixme-comment
- exclude: cpp/non-constant-format
+234
View File
@@ -0,0 +1,234 @@
# this file is HEAVILY influenced by https://github.com/boostorg/hana/blob/master/.travis.yml
dist: xenial
language: c++
cache: ccache
notifications:
email: false
git:
depth: 5
addons:
# these apt sources will be referenced later (by using *name)
apt:
sources: &apt_sources
- ubuntu-toolchain-r-test
config:
retries: true
compiler: gcc
os: linux
# We have branch builds disabled globally to prevent double-builds of PRs.
# This re-enables just the master branch.
branches:
only:
- master
- 0.F-dev
# Overall strategy for what sorts of builds to include:
# We want a build for each compiler and each platform.
# For PRs, we lessen the "each compiler" requirement to just covering the newest
# and oldest relevant version of each compiler.
# We also want to ensure that each of the following tweaks are covered in at
# least one PR build:
# - TILES=1
# - SOUND=1
# - RELEASE=1
# - CMAKE=1
# - LOCALIZE=0
# - Tests with important mods enabled (Magiclysm)
# We try to minimize the number of builds subject to those constraints.
#
# The following used to be here but became too slow to run on Travis and have
# been moved to GitHub Actions:
# - A clang-tidy run
# - SANITIZE=address,undefined
# To see what toolchains are available, consult the following:
# https://github.com/travis-ci/apt-source-safelist/blob/master/ubuntu.json
# https://launchpad.net/%7Eubuntu-toolchain-r/+archive/ubuntu/test/+index
jobs:
include:
# Initial test stage, if this fails everything else is canceled.
- stage: Test
# Clang is consistently the fastest to build, so use it for the initial test.
env: CLANG=clang++-3.8 TEST_STAGE=1 CXXFLAGS="-Wno-error=unused-command-line-argument -D__extern_always_inline='extern __always_inline'"
name: "Clang 3.8 Make build with curses and style check"
compiler: clang
addons: &clang38
apt:
packages: ["clang-3.8"]
sources: [*apt_sources]
# Then build different configurations and targets in parallel.
- stage: "Main Compilers"
env: COMPILER=g++ MODS=--mods=magiclysm LOCALIZE=0
name: "GCC 5.3 Make build with curses, Magiclysm, and no Localization"
compiler: gcc
addons: &gcc53
apt:
packages: ["g++-5=5.3.1-14ubuntu2", "libstdc++-5-dev=5.3.1-14ubuntu2", "gcc-5=5.3.1-14ubuntu2", "gcc-5-base=5.3.1-14ubuntu2", "cpp-5=5.3.1-14ubuntu2", "libgcc-5-dev=5.3.1-14ubuntu2", "libasan2=5.3.1-14ubuntu2", "libmpx0=5.3.1-14ubuntu2"]
sources: [*apt_sources]
- env: COMPILER=g++-8 CXXFLAGS="-Wno-implicit-fallthrough" TILES=1 SOUND=1
name: "GCC 8 Make build with Tiles, Sound"
dist: bionic
compiler: gcc
addons: &gcc8
apt:
packages: ["g++-8", "g++-8-multilib", "libc6-dbg", "libc6-dbg:i386", "libsdl2-dev", "libsdl2-ttf-dev", "libsdl2-image-dev", "libsdl2-mixer-dev"]
sources: *apt_sources
- env: CLANG=clang++-10
name: "Clang 10 Make build"
compiler: clang
dist: bionic
addons: &clang10
apt:
packages:
- clang-10
sources:
- sourceline: "deb http://apt.llvm.org/bionic/ llvm-toolchain-bionic-10 main"
key_url: "https://apt.llvm.org/llvm-snapshot.gpg.key"
- 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-Win64 Make cross-compile to Windows with Tiles and Sound"
if: type != pull_request
compiler: gcc
addons: &gcc
apt:
packages: ["wine"]
- env: NATIVE=android COMPILER=gcc
name: "Android build"
language: android
android:
components:
- build-tools-28.0.1
cache:
# The ccache feature in Travis doesn't work for language: android, so
# do it ourselves.
directories:
- $HOME/.ccache
- 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
compiler: clang
# Finally check the compiler variants
- stage: compilers
# GCC 5.4 is default on Xenial
env: COMPILER=g++
name: "GCC 5.4 Make build with Curses"
if: type != pull_request
- env: COMPILER=g++-6 CODE_COVERAGE=true
name: "GCC 6 Make build with Curses and Code Coverage"
if: type != pull_request
compiler: gcc
addons: &gcc6
apt:
packages: ["g++-6", "g++-6-multilib", "libc6-dbg", "libc6-dbg:i386"]
sources: *apt_sources
- env: COMPILER=g++-7 CXXFLAGS='-Wno-implicit-fallthrough -D_GLIBCXX_DEBUG'
name: "GCC 7 Make build with Curses and GLIBCXX_DEBUG"
if: type != pull_request
compiler: gcc
addons: &gcc7
apt:
packages: ["g++-7", "g++-7-multilib", "libc6-dbg", "libc6-dbg:i386", "lcov"]
sources: *apt_sources
- env: CLANG=clang++-3.9 CXXFLAGS='-Wno-error=unused-command-line-argument -D__extern_always_inline="extern __always_inline"'
name: "Clang 3.9 Make build with Curses"
if: type != pull_request
compiler: clang
addons: &clang39
apt:
packages: ["clang-3.9"]
sources: *apt_sources
- env: CLANG=clang++-4.0 CXXFLAGS=-Wno-error=unused-command-line-argument
name: "Clang 4 Make build with Curses"
if: type != pull_request
compiler: clang
addons: &clang40
apt:
packages: ["clang-4.0"]
# Luckily the Trusty install Just Works on Xenial
sources: [*apt_sources, llvm-toolchain-trusty-4.0]
- env: CLANG=clang++-5.0 CXXFLAGS=-Wno-error=unused-command-line-argument
name: "Clang 5 Make build with Curses"
if: type != pull_request
compiler: clang
addons: &clang50
apt:
packages: ["clang-5.0"]
sources: [*apt_sources, llvm-toolchain-xenial-5.0]
- env: CLANG=clang++-6.0 TILES=1 SOUND=1 CXXFLAGS=-Wno-error=unused-command-line-argument CMAKE=1 RELEASE=1
name: "Clang 6 CMake build with tiles and sound"
if: type != pull_request
compiler: clang
addons: &clang60
apt:
packages: ["clang-6.0", "libsdl2-dev", "libsdl2-ttf-dev", "libsdl2-image-dev", "libsdl2-mixer-dev"]
sources: [*apt_sources, llvm-toolchain-xenial-6.0]
- env: CLANG=clang++-7
name: "Clang 7 Make build with Curses"
if: type != pull_request
compiler: clang
addons: &clang7
apt:
packages: ["clang-7"]
sources: [*apt_sources, llvm-toolchain-xenial-7]
- env: CLANG=clang++-8
name: "Clang 8 Make build with Curses"
if: type != pull_request
compiler: clang
addons: &clang8
apt:
packages: ["clang-8"]
sources: [*apt_sources, llvm-toolchain-xenial-8]
- env: CLANG=clang++-9
name: "Clang 9 Make build with Curses"
if: type != pull_request
compiler: clang
dist: bionic
addons: &clang9
apt:
packages:
- clang-9
sources:
- 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
- CXX="$COMPILER"
- source build-scripts/requirements.sh
script:
- build-scripts/build.sh
after_success:
- if [ -n "${CODE_COVERAGE}" ]; then coveralls -b . -i src -e tests --gcov /usr/bin/gcov-6; fi
- if [ -n "${CODE_COVERAGE}" ]; then bash <(curl -s https://codecov.io/bash); fi
+27 -10
View File
@@ -26,6 +26,7 @@ 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")
include(CTest)
@@ -96,8 +97,7 @@ else ()
endif ()
# System specific actions
if (${CMAKE_SYSTEM_NAME} MATCHES Linux OR ${CMAKE_SYSTEM_NAME} MATCHES FreeBSD
OR ${CMAKE_SYSTEM_NAME} MATCHES Darwin)
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 ()
@@ -137,7 +137,9 @@ message(STATUS "${PROJECT_NAME} build options --")
# Preset variables
if (NOT LANGUAGES)
set(LANGUAGES de es_AR es_ES fr it_IT ja ko pt_BR ru zh_CN zh_TW)
# 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 ()
if (GIT_BINARY)
@@ -151,6 +153,10 @@ else ()
endif ()
endif ()
if (PREFIX)
add_definitions(-DPREFIX=${PREFIX})
endif ()
# Can't compile curses and tiles build's at same time
if (TILES)
set(CURSES OFF)
@@ -158,7 +164,6 @@ endif ()
# Set build types and display info
if (CMAKE_BUILD_TYPE STREQUAL Debug)
set(RELEASE 0)
message(STATUS "Build ${PROJECT} in development mode --")
message(STATUS "Binaries will be located in: " ${CMAKE_SOURCE_DIR})
set(CMAKE_VERBOSE_MAKEFILE ON)
@@ -169,7 +174,6 @@ if (CMAKE_BUILD_TYPE STREQUAL Debug)
"Single Directory for all Executables.")
set(BIN_PREFIX ${CMAKE_SOURCE_DIR})
else ()
set(RELEASE 1)
message(STATUS "CMAKE_INSTALL_PREFIX : ${CMAKE_INSTALL_PREFIX}")
message(STATUS "BIN_PREFIX : ${BIN_PREFIX}")
message(STATUS "DATA_PREFIX : ${DATA_PREFIX}")
@@ -181,9 +185,8 @@ else ()
message(STATUS "PIXMAPS_UNITY_ENTRY_PATH : ${PIXMAPS_UNITY_ENTRY_PATH}")
message(STATUS "MANPAGE_ENTRY_PATH : ${MANPAGE_ENTRY_PATH}")
add_definitions(-DRELEASE)
# Use CMAKE_INSTALL_PREFIX as storage of data,gfx, etc.. Useful only on *nix OS.
if (CMAKE_INSTALL_PREFIX AND NOT WIN32)
add_definitions(-DPREFIX=${CMAKE_INSTALL_PREFIX})
# Use PREFIX as storage of data,gfx, etc.. Useful only on *nix OS.
if (PREFIX AND NOT WIN32)
add_definitions(-DDATA_DIR_PREFIX)
endif ()
endif ()
@@ -245,8 +248,6 @@ endif ()
set(CMAKE_THREAD_PREFER_PTHREAD True)
find_package(Threads REQUIRED)
FIND_PACKAGE(ZLIB REQUIRED)
# Check for build types and libraries
if (TILES)
# Find SDL, SDL_ttf & SDL_image for graphical install
@@ -336,6 +337,22 @@ endif (BACKTRACE)
# Ok. Now create build and install recipes
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 ()
-3
View File
@@ -1,9 +1,6 @@
Copyright (c) 2019 Dimitar Toshkov Zhekov,
with Reserved Font Name "Terminus Font".
Copyright (c) 2017 tisimst
with Reserved Font Name "Vecterminus"
Copyright (c) 2011 Tilman Blumenbach,
with Reserved Font Name "Terminus (TTF)".
+1 -3
View File
@@ -4,15 +4,13 @@ GNU Unifont (data/font/unifont.ttf) is licensed under GNU General Public License
Terminus Font (data/font/terminus.ttf) is licensed under the SIL Open Font License (see LICENSE-OFL-Terminus-Font.txt).
Vecterminus Font (data/font/VecTerminus12Medium.otf) is licensed under the SIL Open Font License (see LICENSE-OFL-Terminus-Font.txt).
CATCH unit-test framework (tests/catch/catch.hpp) is licensed under the Boost Software License. Visit https://github.com/philsquared/Catch/blob/master/LICENSE.txt to read the license.
PLF List and PLF Colony (src/list.h, src/colony.h) are licensed under the zLib license (https://www.zlib.net/zlib_license.html).
getpost (tools/json_tools/format/getpost.h) is licensed under the MIT license, see file for text of license.
gulrak filesystem (src/third-party/ghc/*) 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:
+68 -76
View File
@@ -47,6 +47,10 @@
# (for example: make LANGUAGES="zh_CN zh_TW" for Chinese)
# make localization LANGUAGES=all
# (for every .po file in lang/po)
# Special note for MinGW: due to a libintl bug (https://savannah.gnu.org/bugs/index.php?58006),
# using English without a `.mo` file would cause significant slow down on MinGW
# targets. In such case you can compile a `.mo` file for English using `make LANGUAGES="en"`.
# `make LANGUAGE="all"` also compiles a `.mo` file for English in addition to other languages.
# Enable sanitizer (address, undefined, etc.)
# make SANITIZE=address
# Change mapsize (reality bubble size)
@@ -188,13 +192,6 @@ ifneq (,$(findstring clang,$(COMPILER)))
CLANG = $(COMPILER)
endif
# Windows sets the OS environment variable so we can cheaply test for it.
ifneq (,$(findstring Windows_NT,$(OS)))
IS_WINDOWS_HOST = 1
else
IS_WINDOWS_HOST = 0
endif
OS = $(shell uname -s)
ifneq ($(findstring Darwin,$(OS)),)
@@ -330,6 +327,8 @@ STRIP = $(CROSS)strip
RC = $(CROSS)windres
AR = $(CROSS)ar
# We don't need scientific precision for our math functions, this lets them run much faster.
CXXFLAGS += -ffast-math
LDFLAGS += $(PROFILE)
ifneq ($(SANITIZE),)
@@ -456,7 +455,6 @@ ifeq ($(PCH), 1)
endif
endif
CPPFLAGS += -isystem ${SRC_DIR}/third-party
CXXFLAGS += $(WARNINGS) $(DEBUG) $(DEBUGSYMS) $(PROFILE) $(OTHERS) -MMD -MP
TOOL_CXXFLAGS = -DCATA_IN_TOOL
@@ -522,7 +520,7 @@ ifeq ($(NATIVE), osx)
endif
DEFINES += -DMACOSX
CXXFLAGS += -mmacosx-version-min=$(OSX_MIN)
LDFLAGS += -mmacosx-version-min=$(OSX_MIN) -framework CoreFoundation -Wl,-headerpad_max_install_names
LDFLAGS += -mmacosx-version-min=$(OSX_MIN) -framework CoreFoundation
ifdef FRAMEWORK
ifeq ($(FRAMEWORKSDIR),)
FRAMEWORKSDIR := $(strip $(if $(shell [ -d $(HOME)/Library/Frameworks ] && echo 1), \
@@ -538,6 +536,22 @@ ifeq ($(NATIVE), osx)
endif
endif
ifeq ($(LOCALIZE), 1)
LDFLAGS += -lintl
ifdef OSXCROSS
LDFLAGS += -L$(LIBSDIR)/gettext/lib
CXXFLAGS += -I$(LIBSDIR)/gettext/include
endif
# 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)
ifneq ($(TILES), 1)
CXXFLAGS += -I$(shell ncursesw6-config --includedir)
@@ -586,7 +600,6 @@ endif
# Global settings for Windows targets
ifeq ($(TARGETSYSTEM),WINDOWS)
DEFINES += -DWIN32_LEAN_AND_MEAN
CHKJSON_BIN = chkjson.exe
TARGET = $(W32TARGET)
BINDIST = $(W32BINDIST)
@@ -598,6 +611,9 @@ ifeq ($(TARGETSYSTEM),WINDOWS)
else
LDFLAGS += -static
endif
ifeq ($(LOCALIZE), 1)
LDFLAGS += -lintl -liconv
endif
W32FLAGS += -Wl,-stack,12000000,-subsystem,windows
RFLAGS = -J rc -O coff
ifeq ($(NATIVE), win64)
@@ -706,7 +722,7 @@ ifeq ($(TILES), 1)
LDFLAGS += $(shell $(PKG_CONFIG) --libs SDL2_image SDL2_ttf)
else
ifeq ($(MSYS2),1)
LDFLAGS += -Wl,--start-group -lharfbuzz -lfreetype -Wl,--end-group -lgraphite2 -lpng -lz -ltiff -lbz2 -lglib-2.0 -llzma -lws2_32 -lwebp -ljpeg -luuid
LDFLAGS += -Wl,--start-group -lharfbuzz -lfreetype -Wl,--end-group -lgraphite2 -lpng -lz -ltiff -lbz2 -lglib-2.0 -llzma -lws2_32 -lintl -liconv -lwebp -ljpeg -luuid
else
LDFLAGS += -lfreetype -lpng -lz -ljpeg -lbz2
endif
@@ -765,6 +781,13 @@ else
endif # HAVE_PKGCONFIG
endif # TILES
ifeq ($(TARGETSYSTEM),CYGWIN)
ifeq ($(LOCALIZE),1)
# Work around Cygwin not including gettext support in glibc
LDFLAGS += -lintl -liconv
endif
endif
ifeq ($(BSD), 1)
# BSDs have backtrace() and friends in a separate library
ifeq ($(BACKTRACE), 1)
@@ -773,7 +796,12 @@ ifeq ($(BSD), 1)
CXXFLAGS += -fno-omit-frame-pointer
endif
# libexecinfo may be located in /usr/local on BSD
# And similarly, their libcs don't have gettext built in
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
@@ -798,7 +826,6 @@ endif
ifeq ($(LOCALIZE),1)
DEFINES += -DLOCALIZE
LOCALIZE_TEST_DEPS = localization $(TEST_MO)
endif
ifeq ($(TARGETSYSTEM),LINUX)
@@ -824,13 +851,11 @@ SOURCES := $(wildcard $(SRC_DIR)/*.cpp)
HEADERS := $(wildcard $(SRC_DIR)/*.h)
TESTSRC := $(wildcard tests/*.cpp)
TESTHDR := $(wildcard tests/*.h)
JSON_FORMATTER_SOURCES := $(wildcard tools/format/*.cpp) src/json.cpp
JSON_FORMATTER_HEADERS := $(wildcard tools/format/*.h)
CHKJSON_SOURCES := $(wildcard src/chkjson/*.cpp) src/json.cpp
JSON_FORMATTER_SOURCES := tools/format/format.cpp tools/format/format_main.cpp src/json.cpp
CHKJSON_SOURCES := src/chkjson/chkjson.cpp src/json.cpp
CLANG_TIDY_PLUGIN_SOURCES := \
$(wildcard tools/clang-tidy-plugin/*.cpp tools/clang-tidy-plugin/*/*.cpp)
CLANG_TIDY_PLUGIN_HEADERS := \
$(wildcard tools/clang-tidy-plugin/*.h tools/clang-tidy-plugin/*/*.h)
TOOLHDR := $(wildcard tools/*/*.h)
# Using sort here because it has the side-effect of deduplicating the list
ASTYLE_SOURCES := $(sort \
$(SOURCES) \
@@ -838,10 +863,9 @@ ASTYLE_SOURCES := $(sort \
$(TESTSRC) \
$(TESTHDR) \
$(JSON_FORMATTER_SOURCES) \
$(JSON_FORMATTER_HEADERS) \
$(CHKJSON_SOURCES) \
$(CLANG_TIDY_PLUGIN_SOURCES) \
$(CLANG_TIDY_PLUGIN_HEADERS))
$(TOOLHDR))
_OBJS = $(SOURCES:$(SRC_DIR)/%.cpp=%.o)
ifeq ($(TARGETSYSTEM),WINDOWS)
@@ -904,8 +928,6 @@ ifeq ($(LTO), 1)
endif
endif
LDFLAGS += -lz
all: version $(CHECKS) $(TARGET) $(L10N) $(TESTS)
@
@@ -942,27 +964,12 @@ $(ODIR)/%.o: $(SRC_DIR)/%.cpp $(PCH_P)
$(ODIR)/%.o: $(SRC_DIR)/%.rc
$(RC) $(RFLAGS) $< -o $@
$(ODIR)/resource.o: data/cataicon.ico data/application_manifest.xml
src/version.h: version
src/version.cpp: src/version.h
TEST_MO := data/mods/TEST_DATA/lang/mo/ru/LC_MESSAGES/TEST_DATA.mo
$(TEST_MO): data/mods/TEST_DATA/lang/po/ru.po
mkdir -p $(dir $@)
msgfmt -f -o $@ $<
MO_DEPS := \
$(wildcard lang/*.sh lang/*.py src/*.cpp src/*.h) \
$(shell find data/{raw,json,mods,core,help} -type f -name '*.json')
lang/mo_built.stamp: $(MO_DEPS)
$(MAKE) -C lang
touch $@
localization: lang/mo_built.stamp
localization:
lang/compile_mo.sh $(LANGUAGES)
$(CHKJSON_BIN): $(CHKJSON_SOURCES)
$(CXX) $(CXXFLAGS) $(TOOL_CXXFLAGS) -Isrc/chkjson -Isrc $(CHKJSON_SOURCES) -o $(CHKJSON_BIN)
@@ -977,12 +984,11 @@ clean: clean-tests clean-object_creator clean-pch
rm -rf *$(BINDIST_DIR) *cataclysmdda-*.tar.gz *cataclysmdda-*.zip
rm -f $(SRC_DIR)/version.h
rm -f $(CHKJSON_BIN)
rm -f $(TEST_MO)
distclean:
rm -rf *$(BINDIST_DIR)
rm -rf save
rm -rf lang/mo lang/mo_built.stamp
rm -rf lang/mo
rm -f data/options.txt
rm -f data/keymap.txt
rm -f data/auto_pickup.txt
@@ -1022,7 +1028,7 @@ endif
LICENSE.txt LICENSE-OFL-Terminus-Font.txt -t $(DATA_PREFIX)
mkdir -p $(LOCALE_DIR)
ifdef LANGUAGES
$(MAKE) -C lang
LOCALE_DIR=$(LOCALE_DIR) lang/compile_mo.sh $(LANGUAGES)
endif
endif
@@ -1058,7 +1064,7 @@ endif
LICENSE.txt LICENSE-OFL-Terminus-Font.txt -t $(DATA_PREFIX)
mkdir -p $(LOCALE_DIR)
ifdef LANGUAGES
$(MAKE) -C lang
LOCALE_DIR=$(LOCALE_DIR) lang/compile_mo.sh $(LANGUAGES)
endif
endif
@@ -1106,10 +1112,14 @@ endif
cp -R data/title $(APPDATADIR)
cp -R data/help $(APPDATADIR)
ifdef LANGUAGES
$(MAKE) -C lang
lang/compile_mo.sh $(LANGUAGES)
mkdir -p $(APPRESOURCESDIR)/lang/mo/
cp -pR lang/mo/* $(APPRESOURCESDIR)/lang/mo/
endif
ifeq ($(LOCALIZE), 1)
LIBINTL=$$($(CROSS)otool -L $(APPTARGET) | grep libintl | sed -n 's/\(.*\.dylib\).*/\1/p') && if [ -f $$LIBINTL ]; then cp $$LIBINTL $(APPRESOURCESDIR)/; fi; \
if [ ! -z "$$OSXCROSS" ]; then LIBINTL=$$(basename $$LIBINTL) && if [ ! -z "$$LIBINTL" ]; then cp $(LIBSDIR)/gettext/lib/$$LIBINTL $(APPRESOURCESDIR)/; fi; fi
endif
ifeq ($(TILES), 1)
ifeq ($(SOUND), 1)
cp -R data/sound $(APPDATADIR)
@@ -1125,14 +1135,17 @@ ifeq ($(SOUND), 1)
cd $(APPRESOURCESDIR)/ && ln -s SDL2_mixer.framework/Frameworks/Ogg.framework Ogg.framework
cd $(APPRESOURCESDIR)/SDL2_mixer.framework/Frameworks && find . -maxdepth 1 -type d -not -name '*Vorbis.framework' -not -name '*Ogg.framework' -not -name '.' | xargs rm -rf
endif # ifdef SOUND
else # libsdl build
cp $(SDLLIBSDIR)/libSDL2.dylib $(APPRESOURCESDIR)/
cp $(SDLLIBSDIR)/libSDL2_image.dylib $(APPRESOURCESDIR)/
cp $(SDLLIBSDIR)/libSDL2_ttf.dylib $(APPRESOURCESDIR)/
ifeq ($(SOUND), 1)
cp $(SDLLIBSDIR)/libSDL2_mixer.dylib $(APPRESOURCESDIR)/
endif # ifdef SOUND
endif # ifdef FRAMEWORK
endif # ifdef TILES
ifndef FRAMEWORK
python3 ./tools/copy_mac_libs.py $(APPRESOURCESDIR)/$(APPTARGET)
endif # ifndef FRAMEWORK
dmgdistclean:
rm -rf Cataclysm
rm -f Cataclysm.dmg
@@ -1173,27 +1186,8 @@ etags: $(ASTYLE_SOURCES)
etags $^
./tools/json_tools/cddatags.py
ifneq ($(IS_WINDOWS_HOST),1)
# Parallel astyle for posix hosts where fork and filesystem are cheap.
ASTYLE_CHECK_STAMPS = $(sort $(patsubst %,$(ODIR)/%.astyle-check-stamp,$(ASTYLE_SOURCES)))
astyle: $(ASTYLE_CHECK_STAMPS)
$(ASTYLE_CHECK_STAMPS): $(ODIR)/%.astyle-check-stamp : %
$(ASTYLE_BINARY) --options=.astylerc -n $< && mkdir -p $(@D) && touch $@
else
# Serial astyle for Windows hosts which processes all files in one invocation.
astyle: $(ODIR)/.astyle-check-stamp
$(ODIR)/.astyle-check-stamp: $(ASTYLE_SOURCES)
$(ASTYLE_BINARY) --options=.astylerc -n $?
mkdir -p $(@D) && touch $@
endif
astyle-all: $(ASTYLE_SOURCES)
astyle: $(ASTYLE_SOURCES)
$(ASTYLE_BINARY) --options=.astylerc -n $(ASTYLE_SOURCES)
mkdir -p $(ODIR) && touch $(ODIR)/.astyle-check-stamp
# Test whether the system has a version of astyle that supports --dry-run
ifeq ($(shell if $(ASTYLE_BINARY) -Q -X --dry-run src/game.h > /dev/null; then echo foo; fi),foo)
@@ -1209,12 +1203,10 @@ else
@echo Cannot run an astyle check, your system either does not have astyle, or it is too old.
endif
JSON_SOURCES := $(shell find data -name '* *' -prune -o -name "*.json" -print)
JSON_CHECK_STAMPS = $(sort $(patsubst %,$(ODIR)/%,$(JSON_SOURCES:.json=.jstyle-check-stamp)))
style-json : $(JSON_CHECK_STAMPS) $(JSON_FORMATTER_BIN)
$(JSON_CHECK_STAMPS) : $(ODIR)/%.jstyle-check-stamp : %.json $(JSON_FORMATTER_BIN)
style-json: json_blacklist $(JSON_FORMATTER_BIN)
ifndef CROSS
$(JSON_FORMATTER_BIN) $< && mkdir -p $(@D) && touch $@
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.
endif
@@ -1229,10 +1221,10 @@ $(JSON_FORMATTER_BIN): $(JSON_FORMATTER_SOURCES)
python-check:
flake8
tests: version $(BUILD_PREFIX)cataclysm.a $(LOCALIZE_TEST_DEPS)
tests: version $(BUILD_PREFIX)cataclysm.a
$(MAKE) -C tests
check: version $(BUILD_PREFIX)cataclysm.a $(LOCALIZE_TEST_DEPS)
check: version $(BUILD_PREFIX)cataclysm.a
$(MAKE) -C tests check
clean-tests:
+2 -1
View File
@@ -69,7 +69,8 @@ GitHub repo:
https://github.com/CleverRaven/Cataclysm-DDA
IRC:
`#CataclysmDDA` on [Libera Chat](https://libera.chat), https://web.libera.chat/#CataclysmDDA
`irc.libera.chat` ; `#CataclysmDDA`
https://kiwiirc.com/nextclient/irc.libera.chat#CataclysmDDA
Official Discord:
https://discord.gg/jFEc7Yp
+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_
+3 -5
View File
@@ -2,8 +2,6 @@ LOCAL_PATH := $(call my-dir)/../../../../src
include $(CLEAR_VARS)
LOCAL_C_INCLUDES := $(LOCAL_PATH)/third-party
LOCAL_MODULE := main
LOCAL_CPP_FEATURES := exceptions rtti
@@ -12,11 +10,11 @@ LOCAL_CPP_FEATURES := exceptions rtti
FILE_LIST := $(sort $(wildcard $(LOCAL_PATH)/*.cpp))
LOCAL_SRC_FILES := $(sort $(FILE_LIST:$(LOCAL_PATH)/%=%))
LOCAL_SHARED_LIBRARIES := libhidapi SDL2 SDL2_mixer SDL2_image SDL2_ttf mpg123
LOCAL_SHARED_LIBRARIES := libhidapi SDL2 SDL2_mixer SDL2_image SDL2_ttf libintl-lite mpg123
LOCAL_LDLIBS := -lGLESv1_CM -lGLESv2 -llog -lz
LOCAL_LDLIBS := -lGLESv1_CM -lGLESv2 -llog
LOCAL_CFLAGS += -DTILES=1 -DSDL_SOUND=1 -DBACKTRACE=1 -DLOCALIZE=1 -Wextra -Wall -fsigned-char
LOCAL_CFLAGS += -DTILES=1 -DSDL_SOUND=1 -DBACKTRACE=1 -DLOCALIZE=1 -Wextra -Wall -fsigned-char -ffast-math
LOCAL_LDFLAGS += $(LOCAL_CFLAGS)
@@ -53,12 +53,7 @@ class HIDDeviceUSB implements HIDDevice {
public String getSerialNumber() {
String result = null;
if (Build.VERSION.SDK_INT >= 21) {
try {
result = mDevice.getSerialNumber();
}
catch (SecurityException exception) {
//Log.w(TAG, "App permissions mean we cannot get serial number for device " + getDeviceName() + " message: " + exception.getMessage());
}
result = mDevice.getSerialNumber();
}
if (result == null) {
result = "";
@@ -146,6 +146,7 @@ public class SDLActivity extends Activity implements View.OnSystemUiVisibilityCh
"SDL2_mixer",
// "SDL2_net",
"SDL2_ttf",
"intl-lite",
"main"
};
}
+9 -31
View File
@@ -6,17 +6,10 @@ echo "Using bash version $BASH_VERSION"
set -exo pipefail
num_jobs=3
[ -z $NUM_TEST_JOBS ] && num_test_jobs=3 || num_test_jobs=$NUM_TEST_JOBS
# We might need binaries installed via pip, so ensure that our personal bin dir is on the PATH
export PATH=$HOME/.local/bin:$PATH
$COMPILER --version
if [ -n "$CROSS_COMPILATION" ]
then
"$CROSS_COMPILATION$COMPILER" --version
fi
if [ -n "$TEST_STAGE" ]
then
build-scripts/lint-json.sh
@@ -45,11 +38,7 @@ function run_test
{
set -eo pipefail
test_exit_code=0 sed_exit_code=0 exit_code=0
test_bin=$1
prefix=$2
shift 2
$WINE "$test_bin" --min-duration 0.2 --use-colour yes --rng-seed time $EXTRA_TEST_OPTS "$@" 2>&1 | sed -E 's/^(::(warning|error|debug)[^:]*::)?/\1'"$prefix"'/' || test_exit_code="${PIPESTATUS[0]}" sed_exit_code="${PIPESTATUS[1]}"
$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"
@@ -138,17 +127,14 @@ then
cd ..
ln -s build/compile_commands.json
./build-scripts/files_changed || echo 'Unable to determine changed files'
# We want to first analyze all files that changed in this PR, then as
# many others as possible, in a random order.
set +x
all_cpp_files="$( \
grep '"file": "' build/compile_commands.json | \
sed "s+.*$PWD/++;s+\"$++")"
changed_files="$( ./build-scripts/files_changed || echo unknown )"
changed_cpp_files="$( \
echo "$changed_files" | grep -F "$all_cpp_files" || true )"
./build-scripts/files_changed | grep -F "$all_cpp_files" || true )"
if [ -n "$changed_cpp_files" ]
then
remaining_cpp_files="$( \
@@ -171,24 +157,16 @@ then
echo "Analyzing changed files"
analyze_files_in_random_order "$changed_cpp_files"
# Check for changes to any files that would require us to run clang-tidy across everything
changed_global_files="$( \
echo "$changed_files" | \
egrep -i "\.h$|clang-tidy|build-scripts|cmake|unknown" || true )"
if [ -n "$changed_global_files" ]
then
first_changed_file="$(echo "$changed_global_files" | head -n 1)"
echo "Analyzing remaining files because $first_changed_file was changed"
analyze_files_in_random_order "$remaining_cpp_files"
fi
echo "Analyzing remaining files"
analyze_files_in_random_order "$remaining_cpp_files"
set -x
else
# Regular build
make -j$num_jobs
cd ..
# Run regular tests
[ -f "${bin_path}cata_test" ] && parallel --verbose --linebuffer "run_test $(printf %q "${bin_path}")'/cata_test' '('{}')=> ' --user-dir=test_user_dir_{#} {}" ::: "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' '('{}')=> ' --user-dir=test_user_dir_{#} {}" ::: "crafting_skill_gain" "[slow] ~crafting_skill_gain" "~[slow] ~[.]"
[ -f "${bin_path}cata_test" ] && parallel --verbose --linebuffer "run_test $(printf %q "${bin_path}")'/cata_test' {} '('{}')=> '" ::: "crafting_skill_gain" "[slow] ~crafting_skill_gain" "~[slow] ~[.]"
[ -f "${bin_path}cata_test-tiles" ] && parallel --verbose --linebuffer "run_test $(printf %q "${bin_path}")'/cata_test-tiles' {} '('{}')=> '" ::: "crafting_skill_gain" "[slow] ~crafting_skill_gain" "~[slow] ~[.]"
fi
elif [ "$NATIVE" == "android" ]
then
@@ -209,10 +187,10 @@ else
export ASAN_OPTIONS=detect_odr_violation=1
export UBSAN_OPTIONS=print_stacktrace=1
parallel -j "$num_test_jobs" --verbose --linebuffer "run_test './tests/cata_test' '('{}')=> ' --user-dir=test_user_dir_{#} {}" ::: "crafting_skill_gain" "[slow] ~crafting_skill_gain" "~[slow] ~[.]"
parallel --verbose --linebuffer "run_test './tests/cata_test' {} '('{}')=> '" ::: "crafting_skill_gain" "[slow] ~crafting_skill_gain" "~[slow] ~[.]"
if [ -n "$MODS" ]
then
parallel -j "$num_test_jobs" --verbose --linebuffer "run_test './tests/cata_test' 'Mods-('{}')=> ' $(printf %q "${MODS}") --user-dir=modded_{#} {}" ::: "crafting_skill_gain" "[slow] ~crafting_skill_gain" "~[slow] ~[.]"
parallel --verbose --linebuffer "run_test './tests/cata_test --user-dir=modded '$(printf %q "${MODS}") {} 'Mods-('{}')=> '" ::: "crafting_skill_gain" "[slow] ~crafting_skill_gain" "~[slow] ~[.]"
fi
if [ -n "$TEST_STAGE" ]
@@ -224,7 +202,7 @@ else
./build-scripts/get_all_mods.py | \
while read mods
do
run_test ./tests/cata_test '(all_mods)=> ' '~*' --user-dir=all_modded --mods="${mods}"
run_test './tests/cata_test --user-dir=all_modded --mods='"${mods}" '~*' ''
done
fi
fi
+8 -40
View File
@@ -3,47 +3,15 @@
# Helper script to get the list of changed files for this build.
# If a PR it lists the changes from the target branch.
# If a 'regular' branch build the changes since the last build.
# https://docs.travis-ci.com/user/environment-variables/
set -e
function files_list
{
git diff --name-only --diff-filter ACMRT "$@"
}
if [ "$TRAVIS" = "true" ]
if [ -n $TRAVIS_COMMIT_RANGE ]
then
# https://docs.travis-ci.com/user/environment-variables/
if [ -n $TRAVIS_COMMIT_RANGE ]
then
# If this string is populated, it should work.
# But it mught fail, due to e.g. the shallow clone depth missing the
# relevant commit, in which case we fail
files_list $TRAVIS_COMMIT_RANGE || exit 1
else
# The only time it isn't populated is on a new PR branch, where THIS will work.
files_list $TRAVIS_BRANCH
fi
elif [ -n "$GITHUB_BASE_REF" ]
then
base="origin/$GITHUB_BASE_REF"
# We need to fetch enough commits to be able to compute the merge-base
# between this PR and master
commits_to_fetch=10
fetch_limit=10000
while [ -z "$( git merge-base "$base" HEAD^2 2>/dev/null )" ]
do
git fetch -q --deepen=$commits_to_fetch origin "$GITHUB_BASE_REF" HEAD
(( commits_to_fetch *= 2 ))
if [ "$commits_to_fetch" -gt "$fetch_limit" ]
then
printf '%s\n' "Already fetched over $fetch_limit commits" \
'Giving up on trying to find merge-base' >&2
exit 1
fi
done
files_list "$( git merge-base "$base" HEAD^2 )..HEAD^2"
# If this string is populated, it should work.
# But it mught fail, due to e.g. the shallow clone depth missing the
# relevant commit, in which case we fail
git diff --name-only $TRAVIS_COMMIT_RANGE || exit 1
else
echo 'Neither $TRAVIS nor $GITHUB_BASE_REF was defined' >&2
exit 1
# The only time it isn't populated is on a new PR branch, where THIS will work.
git diff --name-only $TRAVIS_BRANCH
fi
@@ -1 +0,0 @@
f658456bb32db1d4fe694eee02459f63b7044ab71009730c3828374a35a8f750 *libbacktrace-x86_64-w64-mingw32.tar.gz
+25 -21
View File
@@ -54,27 +54,31 @@ fi
# Influenced by https://github.com/zer0main/battleship/blob/master/build/windows/requirements.sh
if [ -n "${MXE_TARGET}" ]; then
$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
sudo apt update
$travis_retry sudo apt-get --yes install wine wine32
# 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/
exec {fd}>&2
$travis_retry bash -o pipefail -c \
"sudo apt-get update 2>&1 | tee /dev/fd/$fd | ( ! grep -q -e '^Err:' -e '^[WE]:' )"
exec {fd}>&-
set +e
retry=0
until [[ "$retry" -ge 5 ]]; do
curl -L -o mxe-i686.tar.xz https://github.com/BrettDong/MXE-GCC/releases/download/mxe-gcc-11.2/mxe-i686.tar.xz && curl -L -o mxe-i686.tar.xz.sha256 https://github.com/BrettDong/MXE-GCC/releases/download/mxe-gcc-11.2/mxe-i686.tar.xz.sha256 && shasum -a 256 -c ./mxe-i686.tar.xz.sha256 && break
retry=$((retry+1))
rm -f mxe-i686.tar.xz mxe-i686.tar.xz.sha256
sleep 10
done
if [[ "$retry" -ge 5 ]]; then
echo "Error downloading or checksum failed for MXE i686"
exit 1
fi
set -e
sudo tar xJf mxe-i686.tar.xz -C /opt
export MXE_DIR=/opt/mxe
export CROSS_COMPILATION="${MXE_DIR}/usr/bin/${MXE_TARGET}-"
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 \
wine \
wine32
export PLATFORM='i686-w64-mingw32.static'
export CROSS_COMPILATION="${MXE_DIR}/${PLATFORM}-"
# Need to overwrite CXX to make the Makefile $CROSS logic work right.
export CXX="$COMPILER"
export CCACHE=1
@@ -92,7 +96,7 @@ if [ -n "${MXE_TARGET}" ]; then
exit 1
fi
set -e
sudo tar -xzf libbacktrace-i686-w64-mingw32.tar.gz --exclude=LICENSE -C ${MXE_DIR}/usr/${MXE_TARGET}
sudo tar -xzf libbacktrace-i686-w64-mingw32.tar.gz --exclude=LICENSE -C ${MXE_DIR}/../${PLATFORM}
fi
if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
@@ -120,7 +124,7 @@ then
do
if [ -n "${!v}" ]
then
printf "%s=%s\n" "$v" "${!v}" >> "$GITHUB_ENV"
printf "%s='%s'\n" "$v" "${!v}" >> "$GITHUB_ENV"
fi
done
fi
-16
View File
@@ -1,16 +0,0 @@
if (Test-path bindist) {
rm -Force -Recurse bindist
}
mkdir bindist
cp cataclysm-tiles.exe bindist/cataclysm-tiles.exe
cp tools/format/json_formatter.exe bindist/json_formatter.exe
mkdir bindist/lang
cp -r lang/mo bindist/lang
$extras = "data", "doc", "gfx", "LICENSE.txt", "LICENSE-OFL-Terminus-Font.txt", "README.md", "VERSION.txt"
ForEach ($extra in $extras) {
cp -r $extra bindist
}
Compress-Archive -Force -Path bindist/* -DestinationPath "cataclysmdda-0.F.zip"
+1 -3
View File
@@ -8,9 +8,7 @@ set(CATACLYSM_DATA_DIRS
${CMAKE_SOURCE_DIR}/data/raw
${CMAKE_SOURCE_DIR}/data/motd
${CMAKE_SOURCE_DIR}/data/credits
${CMAKE_SOURCE_DIR}/data/title
${CMAKE_SOURCE_DIR}/data/core
${CMAKE_SOURCE_DIR}/data/help)
${CMAKE_SOURCE_DIR}/data/title)
if (SOUND)
set(CATACLYSM_DATA_DIRS
-21
View File
@@ -1,21 +0,0 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly manifestVersion="1.0" xmlns="urn:schemas-microsoft-com:asm.v1" xmlns:asmv3="urn:schemas-microsoft-com:asm.v3">
<assemblyIdentity type="win32" name="com.cleverraven.cataclysmdda" version="0.0.0.0"/>
<asmv3:application>
<asmv3:windowsSettings xmlns="http://schemas.microsoft.com/SMI/2019/WindowsSettings">
<activeCodePage>UTF-8</activeCodePage>
</asmv3:windowsSettings>
</asmv3:application>
<dependency>
<dependentAssembly>
<assemblyIdentity
type="win32"
name="Microsoft.Windows.Common-Controls"
version="6.0.0.0"
processorArchitecture="*"
publicKeyToken="6595b64144ccf1df"
language="*"
/>
</dependentAssembly>
</dependency>
</assembly>
-1
View File
@@ -10,7 +10,6 @@
"main_part": "bp_null",
"connected_to": "bp_null",
"opposite_part": "bp_null",
"limb_type": "other",
"hit_size": 0,
"hit_size_relative": [ 0, 0, 0 ],
"hit_difficulty": 0,
Binary file not shown.
Binary file not shown.
+3 -19
View File
@@ -244,22 +244,6 @@
{
"type": "help",
"order": 17,
"name": "<s|S>: Skills and proficiencies",
"messages": [
"SKILLS",
"Each character has a collection of skills they may learn over time. These are grouped into four categories: Melee, Ranged, Crafting, and Interaction. Each skill begins at level 0 and increases with study and practice up to a maximum of level 10. Each level is harder to attain than the one before, but each level also increases the character's ability to do things using that skill, and may unlock crafting recipes or other actions gated by skill level. Reaching level 10 in any skill represents true mastery, near the limit of human capability.",
"The lower left column of the <press_player_data> screen displays all skills and their current levels, along with percentage progress toward the next level. Skills highlighted in light red represent those where the character's knowledge has exceeded their practical experience. This may occur when learning skills primarily from books, without practicing activities or crafts that also exercise those skills.",
"Combat skills in the Melee and Ranged categories are quite specialized, focused on specific damage types and firearm flavors. The Crafting and Interaction categories are more general, each covering a potentially wide range of techniques and abilities.",
"PROFICIENCIES",
"Separate from Skills, Proficiencies represent a more granular level of character talents. They are generally mastered over a shorter time span, and their names and purviews tend to be more concrete and specific than those of skills.",
"Proficiencies are often defined as a tree of knowledge, where beginners must first master the basic principles before moving onto more advanced topics. For instance, before a character learns \"Blacksmithing\", they must first acquire \"Principles of Metalworking\". Once they have learned \"Blacksmithing\", they may dive deeper into \"Armorsmithing\", \"Bladesmithing\", or \"Manual Tooling\".",
"The lower right column of the <press_player_data> screen shows each Proficiency, starting in white with those fully learned, followed in grey by those partially learned, and their current progress. Partially learned proficiencies give some benefit, gradually reducing penalties until they are fully learned. Once fully learned, proficiencies are considered mastered, and are not forgotten.",
"Many crafting recipes involve one or more proficiencies. Trying to craft these recipes without the necessary skill set is a long and arduous process with a high rate of failure. Learning the missing proficiencies offers a bonus to time and to chance of success. The effect of missing proficiencies are multiplied when several proficiencies are involved, making some advanced recipes extremely time-consuming and error-prone without appropriate knowledge. For this reason, it's recommended to learn at least some of the proficiencies with easier recipes before moving onto more advanced multiple-proficiency recipes. Books may also grant a portion of the proficiency bonus."
]
},
{
"type": "help",
"order": 18,
"name": "<1>: List of item types and data",
"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.",
@@ -274,7 +258,7 @@
},
{
"type": "help",
"order": 19,
"order": 18,
"name": "<2>: Description of map symbols",
"messages": [
"MAP SYMBOLS:",
@@ -302,7 +286,7 @@
},
{
"type": "help",
"order": 20,
"order": 19,
"name": "<3>: Description of gun types",
"messages": [
"<color_light_gray>( Handguns</color>\nHandguns are small weapons held in one or both hands. They are much more difficult to aim and control than larger firearms, and this is reflected in their poor accuracy. However, their small size makes them appropriate for short-range combat. They are also relatively quick to reload and use a very wide variety of ammunition. Their small size and low weight make it possible to carry several loaded handguns, switching from one to the next as their ammo is spent.",
@@ -318,7 +302,7 @@
},
{
"type": "help",
"order": 21,
"order": 20,
"name": "<4>: FAQ (contains spoilers!)",
"messages": [
"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.",
+1 -43
View File
@@ -343,20 +343,6 @@
}
]
},
{
"id": "achievement_mutation_threshold_rabbit",
"type": "achievement",
"name": "Finally beat the tortoise",
"requirements": [
{
"event_statistic": "avatar_last_crosses_mutation_threshold",
"is": "==",
"target": [ "mutation_category_id", "RABBIT" ],
"description": "crossed rabbit mutation threshold",
"visible": "when_achievement_completed"
}
]
},
{
"id": "achievement_mutation_threshold_insect",
"type": "achievement",
@@ -553,34 +539,6 @@
}
]
},
{
"id": "achievement_mutation_threshold_gastropod",
"type": "achievement",
"name": "Carrying your home on your back",
"requirements": [
{
"event_statistic": "avatar_last_crosses_mutation_threshold",
"is": "==",
"target": [ "mutation_category_id", "GASTROPOD" ],
"description": "crossed gastropod mutation threshold",
"visible": "when_achievement_completed"
}
]
},
{
"id": "achievement_mutation_threshold_batrachian",
"type": "achievement",
"name": "Leaping forward in life",
"requirements": [
{
"event_statistic": "avatar_last_crosses_mutation_threshold",
"is": "==",
"target": [ "mutation_category_id", "BATRACHIAN" ],
"description": "crossed batrachian mutation threshold",
"visible": "when_achievement_completed"
}
]
},
{
"id": "achievement_mutation_threshold_alpha",
"type": "achievement",
@@ -823,7 +781,7 @@
"id": "achievement_lvl_10_tailor",
"type": "achievement",
"name": "Fashion Designer",
"description": "From catwalk to cataclysm.",
"description": "Male, female, and mutant fashion alike.",
"requirements": [ { "event_statistic": "num_gains_tailor_level_10", "is": ">=", "target": 1 } ],
"hidden_by": [ "achievement_lvl_7_tailor" ]
},
+16 -16
View File
@@ -18,7 +18,7 @@
"power": 0,
"distance_factor": 0.8,
"fire": false,
"shrapnel": { "casing_mass": 0, "fragment_mass": 0.0025, "recovery": 0, "drop": "null" }
"shrapnel": { "casing_mass": 0, "fragment_mass": 0.005, "recovery": 0, "drop": "null" }
},
"do_flashbang": false,
"do_emp_blast": false
@@ -125,17 +125,17 @@
{
"id": "EXPLOSIVE_RAUFOSS",
"type": "ammo_effect",
"explosion": { "power": 2.4, "shrapnel": { "casing_mass": 28, "fragment_mass": 7 } }
"explosion": { "power": 2.4, "shrapnel": { "casing_mass": 28, "fragment_mass": 14 } }
},
{
"id": "FRAG",
"type": "ammo_effect",
"explosion": { "power": 185, "shrapnel": { "casing_mass": 212, "fragment_mass": 0.025 } }
"explosion": { "power": 185, "shrapnel": { "casing_mass": 212, "fragment_mass": 0.05 } }
},
{
"id": "FRAG_20x66",
"type": "ammo_effect",
"explosion": { "power": 40, "shrapnel": { "casing_mass": 15, "fragment_mass": 0.08 } }
"explosion": { "power": 40, "shrapnel": { "casing_mass": 15, "fragment_mass": 0.15 } }
},
{
"id": "EXPLOSIVE_20x66",
@@ -150,62 +150,62 @@
{
"id": "EXPLOSIVE_m430a1",
"type": "ammo_effect",
"explosion": { "power": 72, "shrapnel": { "casing_mass": 250, "fragment_mass": 0.08 } }
"explosion": { "power": 72, "shrapnel": { "casing_mass": 250, "fragment_mass": 0.15 } }
},
{
"id": "EXPLOSIVE_m433",
"type": "ammo_effect",
"explosion": { "power": 42, "shrapnel": { "casing_mass": 198, "fragment_mass": 0.08 } }
"explosion": { "power": 42, "shrapnel": { "casing_mass": 198, "fragment_mass": 0.15 } }
},
{
"id": "EXPLOSIVE_HOMEMADE",
"type": "ammo_effect",
"explosion": { "power": 400, "shrapnel": { "casing_mass": 680, "fragment_mass": 0.15 } }
"explosion": { "power": 400, "shrapnel": { "casing_mass": 680, "fragment_mass": 0.3 } }
},
{
"id": "EXPLOSIVE_66mmHEAT",
"type": "ammo_effect",
"explosion": { "power": 400, "shrapnel": { "casing_mass": 680, "fragment_mass": 0.15 } }
"explosion": { "power": 400, "shrapnel": { "casing_mass": 680, "fragment_mass": 0.3 } }
},
{
"id": "EXPLOSIVE_OG7V",
"type": "ammo_effect",
"explosion": { "power": 266, "shrapnel": { "casing_mass": 1500, "fragment_mass": 0.08 } }
"explosion": { "power": 266, "shrapnel": { "casing_mass": 1500, "fragment_mass": 0.15 } }
},
{
"id": "EXPLOSIVE_PG7VL",
"type": "ammo_effect",
"explosion": { "power": 598, "shrapnel": { "casing_mass": 1500, "fragment_mass": 0.15 } }
"explosion": { "power": 598, "shrapnel": { "casing_mass": 1500, "fragment_mass": 0.3 } }
},
{
"id": "EXPLOSIVE_PG7VR",
"type": "ammo_effect",
"explosion": { "power": 1995, "shrapnel": { "casing_mass": 2500, "fragment_mass": 0.15 } }
"explosion": { "power": 1995, "shrapnel": { "casing_mass": 2500, "fragment_mass": 0.3 } }
},
{
"id": "EXPLOSIVE_TBG7V",
"type": "ammo_effect",
"explosion": { "power": 66, "shrapnel": { "casing_mass": 2500, "fragment_mass": 0.15 } }
"explosion": { "power": 66, "shrapnel": { "casing_mass": 2500, "fragment_mass": 0.3 } }
},
{
"id": "EXPLOSIVE_84x246HE",
"type": "ammo_effect",
"explosion": { "power": 665, "shrapnel": { "casing_mass": 1500, "fragment_mass": 0.08 } }
"explosion": { "power": 665, "shrapnel": { "casing_mass": 1500, "fragment_mass": 0.15 } }
},
{
"id": "EXPLOSIVE_84x246HEDP",
"type": "ammo_effect",
"explosion": { "power": 798, "shrapnel": { "casing_mass": 1500, "fragment_mass": 0.15 } }
"explosion": { "power": 798, "shrapnel": { "casing_mass": 1500, "fragment_mass": 0.3 } }
},
{
"id": "EXPLOSIVE_ATGMHEAT",
"type": "ammo_effect",
"explosion": { "power": 5985, "shrapnel": { "casing_mass": 18000, "fragment_mass": 0.5 } }
"explosion": { "power": 5985, "shrapnel": { "casing_mass": 18000, "fragment_mass": 1.0 } }
},
{
"id": "EXPLOSIVE_120mmHEAT",
"type": "ammo_effect",
"explosion": { "power": 7980, "shrapnel": { "casing_mass": 8725, "fragment_mass": 0.5 } }
"explosion": { "power": 7980, "shrapnel": { "casing_mass": 8725, "fragment_mass": 1.0 } }
},
{
"id": "MININUKE_MOD",
@@ -85,7 +85,7 @@
"id": "AEA_TELEPORT",
"name": { "str": "Artifact Teleport" },
"description": "Randomly teleports you a short distance.",
"effect": "short_range_teleport",
"effect": "teleport_random",
"shape": "blast",
"valid_targets": [ "self" ],
"flags": [ "NO_HANDS", "SILENT", "NO_LEGS", "UNSAFE_TELEPORT" ],
+119 -258
View File
@@ -4,7 +4,7 @@
"type": "bionic",
"name": { "str": "Adrenaline Pump" },
"description": "A stimulator system has been surgically implanted alongside your adrenal glands, allowing you to trigger your body's adrenaline response at the cost of some bionic power.",
"occupied_bodyparts": [ [ "torso", 4 ] ],
"occupied_bodyparts": [ [ "torso", 6 ] ],
"act_cost": "5 J"
},
{
@@ -16,7 +16,6 @@
"flags": [ "BIONIC_TOGGLED", "BIONIC_NPC_USABLE" ],
"act_cost": 10,
"react_cost": 10,
"trigger_cost": "25kJ",
"time": 1
},
{
@@ -28,7 +27,6 @@
"flags": [ "BIONIC_TOGGLED", "BIONIC_SLEEP_FRIENDLY" ],
"act_cost": "1 J",
"react_cost": "1 J",
"trigger_cost": "25 kJ",
"time": 1
},
{
@@ -42,14 +40,12 @@
{
"id": "bio_armor_arms",
"type": "bionic",
"name": { "str": "Intradermal Alloy - Arms" },
"description": "An advanced protective meshwork has been woven into the flesh on your arms and hands, protecting them from physical trauma.",
"occupied_bodyparts": [ [ "arm_l", 4 ], [ "arm_r", 4 ], [ "hand_l", 1 ], [ "hand_r", 1 ] ],
"bash_protec": [ [ "arm_l", 3 ], [ "arm_r", 3 ], [ "hand_l", 3 ], [ "hand_r", 3 ] ],
"cut_protec": [ [ "arm_l", 3 ], [ "arm_r", 3 ], [ "hand_l", 3 ], [ "hand_r", 3 ] ],
"bullet_protec": [ [ "arm_l", 3 ], [ "arm_r", 3 ], [ "hand_l", 3 ], [ "hand_r", 3 ] ],
"encumbrance": [ [ "arm_l", 1 ], [ "arm_r", 1 ], [ "hand_l", 1 ], [ "hand_r", 1 ] ],
"cant_remove_reason": "The Intradermal Alloy is too thoroughly entwined with %1$s to be removed safely.",
"name": { "str": "Alloy Plating - Arms" },
"description": "The flesh on your arms has been surgically replaced by alloy plating. Provides passive protection and can be used in conjunction with bionic martial arts.",
"occupied_bodyparts": [ [ "arm_l", 4 ], [ "arm_r", 4 ] ],
"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" ],
"mutation_conflicts": [
"THICKSKIN",
@@ -120,26 +116,7 @@
"CLAWS_TENTACLES",
"ACIDPROOF",
"TOXICFLESH",
"FRESHWATEROSMOSIS",
"PAWS",
"PAWS_LARGE",
"NAILS",
"TALONS",
"CLAWS",
"CLAWS_RETRACT",
"CLAWS_RAT",
"CLAWS_ST",
"WEBBED",
"PATCHSKIN1",
"PATCHSKIN2",
"RABBIT_FUR",
"PAWS_LITTLE",
"BOVINE_BULK",
"BOVINE_BULK2",
"FAT",
"SLIME_SPRAY",
"MUCUS_SECRETION",
"MUCUS_SECRETION2"
"FRESHWATEROSMOSIS"
]
},
{
@@ -152,22 +129,18 @@
"bash_protec": [ [ "eyes", 3 ] ],
"cut_protec": [ [ "eyes", 3 ] ],
"bullet_protec": [ [ "eyes", 3 ] ],
"encumbrance": [ [ "eyes", 1 ] ],
"mutation_conflicts": [ "COMPOUND_EYES", "CEPH_VISION", "CEPH_EYES", "EYEBULGE", "EYESTALKS1", "EYESTALKS2" ],
"cant_remove_reason": "The Intradermal Plating is too thoroughly entwined with %1$s to be removed safely.",
"mutation_conflicts": [ "COMPOUND_EYES", "CEPH_VISION", "CEPH_EYES", "EYEBULGE" ],
"social_modifiers": { "intimidate": 10 }
},
{
"id": "bio_armor_head",
"type": "bionic",
"name": { "str": "Intradermal Alloy - head" },
"description": "An advanced protective meshwork has been woven into the flesh on your head and jaw region, protecting your skull from physical trauma.",
"occupied_bodyparts": [ [ "head", 3 ], [ "mouth", 1 ] ],
"bash_protec": [ [ "head", 3 ], [ "mouth", 3 ] ],
"cut_protec": [ [ "head", 3 ], [ "mouth", 3 ] ],
"bullet_protec": [ [ "head", 3 ], [ "mouth", 3 ] ],
"encumbrance": [ [ "head", 1 ] ],
"cant_remove_reason": "The Intradermal Alloy is too thoroughly entwined with %1$s to be removed safely.",
"name": { "str": "Alloy Plating - head" },
"description": "The flesh on your head has been surgically replaced by alloy plating, protecting both your head and jaw regions.",
"occupied_bodyparts": [ [ "head", 5 ], [ "mouth", 1 ] ],
"bash_protec": [ [ "head", 3 ] ],
"cut_protec": [ [ "head", 3 ] ],
"bullet_protec": [ [ "head", 3 ] ],
"flags": [ "BIONIC_NPC_USABLE", "BIONIC_SHOCKPROOF" ],
"mutation_conflicts": [
"THICKSKIN",
@@ -245,48 +218,18 @@
"MUZZLE_BEAR",
"MUZZLE_RAT",
"MUZZLE_LONG",
"PROBISCIS",
"MOUTH_FLAPS",
"MOUTH_TENTACLES",
"MANDIBLES",
"FANGS_SPIDER",
"BEAK",
"BEAK_PECK",
"BEAK_HUM",
"GIZZARD",
"FELINE_EARS",
"CANINE_EARS",
"LUPINE_EARS",
"RABBIT_EARS",
"MOUSE_EARS",
"PATCHSKIN1",
"PATCHSKIN2",
"RABBIT_FUR",
"RABBIT_NOSE",
"SLIT_NOSTRILS",
"WHISKERS",
"WHISKERS_RAT",
"PAWS_LITTLE",
"BOVINE_BULK",
"BOVINE_BULK2",
"FAT",
"SLIME_SPRAY",
"MUCUS_SECRETION",
"MUCUS_SECRETION2",
"WIDE_MOUTH"
"PROBISCIS"
]
},
{
"id": "bio_armor_legs",
"type": "bionic",
"name": { "str": "Intradermal Alloy - Legs" },
"description": "An advanced protective meshwork has been woven into the flesh on your legs and feet, protecting them from physical trauma.",
"occupied_bodyparts": [ [ "leg_l", 6 ], [ "leg_r", 6 ], [ "foot_l", 1 ], [ "foot_r", 1 ] ],
"bash_protec": [ [ "leg_l", 3 ], [ "leg_r", 3 ], [ "foot_l", 3 ], [ "foot_r", 3 ] ],
"cut_protec": [ [ "leg_l", 3 ], [ "leg_r", 3 ], [ "foot_l", 3 ], [ "foot_r", 3 ] ],
"bullet_protec": [ [ "leg_l", 3 ], [ "leg_r", 3 ], [ "foot_l", 3 ], [ "foot_r", 3 ] ],
"encumbrance": [ [ "leg_l", 1 ], [ "leg_r", 1 ], [ "foot_l", 1 ], [ "foot_r", 1 ] ],
"cant_remove_reason": "The Intradermal Alloy is too thoroughly entwined with %1$s to be removed safely.",
"name": { "str": "Alloy Plating - Legs" },
"description": "The flesh on your legs has been surgically replaced by alloy plating. Provides passive protection and can be used in conjunction with bionic martial arts.",
"occupied_bodyparts": [ [ "leg_l", 6 ], [ "leg_r", 6 ] ],
"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" ],
"mutation_conflicts": [
"THICKSKIN",
@@ -355,38 +298,19 @@
"TAIL_STING",
"TAIL_CLUB",
"LEG_TENTACLES",
"LEG_TENT_BRACE",
"RAP_TALONS",
"HOOVES",
"PADDED_FEET",
"PATCHSKIN1",
"PATCHSKIN2",
"RABBIT_FUR",
"TAIL_RABBIT",
"RABBIT_FEET",
"PAWS_LITTLE",
"BOVINE_BULK",
"BOVINE_BULK2",
"FAT",
"SLIME_SPRAY",
"GASTROPOD_FOOT",
"GASTROPOD_BALANCE",
"MUCUS_SECRETION",
"MUCUS_SECRETION2"
"LEG_TENT_BRACE"
]
},
{
"id": "bio_armor_torso",
"type": "bionic",
"name": { "str": "Intradermal Alloy - torso" },
"description": "An advanced protective meshwork has been woven into the flesh on your torso, protecting it from physical trauma.",
"name": { "str": "Alloy Plating - torso" },
"description": "The flesh on your torso has been surgically replaced by alloy plating, protecting it from physical trauma.",
"occupied_bodyparts": [ [ "torso", 10 ] ],
"bash_protec": [ [ "torso", 3 ] ],
"cut_protec": [ [ "torso", 3 ] ],
"bullet_protec": [ [ "torso", 3 ] ],
"encumbrance": [ [ "torso", 3 ] ],
"flags": [ "BIONIC_NPC_USABLE", "BIONIC_SHOCKPROOF" ],
"cant_remove_reason": "The Intradermal Alloy is too thoroughly entwined with %1$s to be removed safely.",
"canceled_mutations": [ "VINES1", "VINES2", "VINES3" ],
"mutation_conflicts": [
"THICKSKIN",
@@ -451,27 +375,15 @@
"ARACHNID_ARMS_OK",
"CLAWS_TENTACLES",
"SHELL",
"SHELL2",
"PATCHSKIN1",
"PATCHSKIN2",
"RABBIT_FUR",
"PAWS_LITTLE",
"BOVINE_BULK",
"BOVINE_BULK2",
"FAT",
"SLIME_SPRAY",
"INSECT_RESEVOIR",
"MUCUS_SECRETION",
"MUCUS_SECRETION2",
"SHELL3"
"SHELL2"
]
},
{
"id": "bio_batteries",
"type": "bionic",
"name": { "str": "Battery System" },
"description": "You have a battery draining attachment, and thus can make use of the energy contained in normal, everyday batteries. Use bionic menu to drain charge from a battery. Can be toggled on and off at will.",
"occupied_bodyparts": [ [ "torso", 20 ] ],
"description": "You have a battery draining attachment, and thus can make use of the energy contained in normal, everyday batteries. Use 'E' to drain charge from a battery. Can be toggled on and off at will.",
"occupied_bodyparts": [ [ "torso", 25 ] ],
"fuel_options": [ "battery" ],
"fuel_efficiency": 1,
"fuel_capacity": 2000,
@@ -483,21 +395,20 @@
"type": "bionic",
"name": { "str": "Monomolecular Blade" },
"description": "A deadly foot-long blade made of advanced material now resides inside your forearm, capable of being extended through the back of your wrist at the cost of a small amount of power. Though exceptionally sharp, it will prevent you from holding anything else while extended.",
"occupied_bodyparts": [ [ "arm_r", 7 ], [ "hand_r", 1 ] ],
"encumbrance": [ [ "arm_r", 2 ] ],
"occupied_bodyparts": [ [ "arm_r", 5 ], [ "hand_r", 2 ] ],
"act_cost": "50 J",
"fake_weapon": "bio_blade_weapon",
"flags": [ "BIONIC_TOGGLED", "BIONIC_WEAPON", "BIONIC_NPC_USABLE", "USES_BIONIC_POWER" ]
"fake_item": "bio_blade_weapon",
"flags": [ "BIONIC_TOGGLED", "BIONIC_WEAPON", "BIONIC_NPC_USABLE" ]
},
{
"id": "bio_shotgun",
"type": "bionic",
"name": { "str": "Shotgun Arm" },
"description": "Concealed in your left arm is a single shot 12 gauge shotgun. Activate the bionic to fire and reload the shotgun.",
"occupied_bodyparts": [ [ "arm_l", 12 ] ],
"occupied_bodyparts": [ [ "arm_l", 15 ] ],
"encumbrance": [ [ "arm_l", 5 ] ],
"act_cost": "50 J",
"fake_weapon": "bio_shotgun_gun",
"fake_item": "bio_shotgun_gun",
"flags": [ "BIONIC_TOGGLED", "BIONIC_WEAPON", "NO_UNWIELD" ]
},
{
@@ -514,15 +425,15 @@
"type": "bionic",
"name": { "str": "Blood Analysis" },
"description": "Small sensors have been surgically implanted in your heart, allowing you to analyze your blood. This will detect many illnesses, drugs, and other conditions.",
"occupied_bodyparts": [ [ "torso", 4 ] ],
"occupied_bodyparts": [ [ "torso", 5 ] ],
"act_cost": "100 J"
},
{
"id": "bio_blood_filter",
"type": "bionic",
"name": { "str": "Blood Filter" },
"description": "A filtration system near your heart allows you to actively filter out chemical impurities, primarily drugs. It will have limited impact on viruses. Note that it is not a targeted filter; ALL drugs in your system will be affected.",
"occupied_bodyparts": [ [ "torso", 5 ] ],
"description": "A filtration system in your heart allows you to actively filter out chemical impurities, primarily drugs. It will have limited impact on viruses. Note that it is not a targeted filter; ALL drugs in your system will be affected.",
"occupied_bodyparts": [ [ "torso", 10 ] ],
"act_cost": "600 J"
},
{
@@ -530,7 +441,7 @@
"type": "bionic",
"name": { "str": "Cable Charger System" },
"description": "You have a complex port surgically mounted above your hip. While active, it will recharge bionic power when connected to a power source via jumper cable.",
"occupied_bodyparts": [ [ "torso", 7 ] ],
"occupied_bodyparts": [ [ "torso", 10 ] ],
"is_remote_fueled": true,
"time": 1,
"fuel_efficiency": 1,
@@ -542,52 +453,52 @@
"name": { "str": "Subdermal Carbon Filament" },
"description": "Lying just beneath your skin is a thin armor made of carbon nanotubes. This reduces bashing damage by 2 and cutting damage by 4.",
"occupied_bodyparts": [
[ "torso", 6 ],
[ "torso", 5 ],
[ "head", 2 ],
[ "arm_l", 2 ],
[ "arm_r", 2 ],
[ "hand_l", 1 ],
[ "hand_r", 1 ],
[ "leg_l", 3 ],
[ "leg_r", 3 ],
[ "foot_l", 1 ],
[ "foot_r", 1 ],
[ "hand_l", 1 ],
[ "hand_r", 1 ]
[ "foot_r", 1 ]
],
"bash_protec": [
[ "torso", 2 ],
[ "head", 2 ],
[ "arm_l", 2 ],
[ "arm_r", 2 ],
[ "hand_l", 2 ],
[ "hand_r", 2 ],
[ "leg_l", 2 ],
[ "leg_r", 2 ],
[ "foot_l", 2 ],
[ "foot_r", 2 ],
[ "hand_l", 2 ],
[ "hand_r", 2 ]
[ "foot_r", 2 ]
],
"cut_protec": [
[ "torso", 4 ],
[ "head", 4 ],
[ "arm_l", 4 ],
[ "arm_r", 4 ],
[ "hand_l", 4 ],
[ "hand_r", 4 ],
[ "leg_l", 4 ],
[ "leg_r", 4 ],
[ "foot_l", 4 ],
[ "foot_r", 4 ],
[ "hand_l", 4 ],
[ "hand_r", 4 ]
[ "foot_r", 4 ]
],
"bullet_protec": [
[ "torso", 4 ],
[ "head", 4 ],
[ "arm_l", 4 ],
[ "arm_r", 4 ],
[ "hand_l", 4 ],
[ "hand_r", 4 ],
[ "leg_l", 4 ],
[ "leg_r", 4 ],
[ "foot_l", 4 ],
[ "foot_r", 4 ],
[ "hand_l", 4 ],
[ "hand_r", 4 ]
[ "foot_r", 4 ]
],
"flags": [ "BIONIC_NPC_USABLE", "BIONIC_SHOCKPROOF" ]
},
@@ -596,9 +507,9 @@
"type": "bionic",
"name": { "str": "Chain Lightning" },
"description": "Your body is equipped with a chain lightning generator, allowing you to emit a blast of lightning at a target, leaving a trail of lightning in its wake, jumping to additional targets within 4 tiles of the previous target.",
"occupied_bodyparts": [ [ "torso", 16 ], [ "arm_l", 4 ] ],
"occupied_bodyparts": [ [ "torso", 16 ], [ "arm_l", 4 ], [ "arm_r", 4 ] ],
"act_cost": "100 kJ",
"fake_weapon": "bio_lightning",
"fake_item": "bio_lightning",
"flags": [ "BIONIC_GUN", "BIONIC_NPC_USABLE" ]
},
{
@@ -606,10 +517,9 @@
"type": "bionic",
"name": { "str": "Bionic Claws" },
"description": "Vicious claws have been surgically installed inside your fingers, allowing you to extend and retract them at the cost of a small amount of power. These do considerable cutting damage, but prevent you from holding anything else while extended.",
"occupied_bodyparts": [ [ "hand_l", 4 ], [ "hand_r", 4 ] ],
"encumbrance": [ [ "hand_l", 3 ], [ "hand_r", 3 ] ],
"occupied_bodyparts": [ [ "hand_l", 5 ], [ "hand_r", 5 ] ],
"act_cost": "25 J",
"fake_weapon": "bio_claws_weapon",
"fake_item": "bio_claws_weapon",
"flags": [ "BIONIC_TOGGLED", "BIONIC_WEAPON", "BIONIC_NPC_USABLE" ]
},
{
@@ -641,7 +551,7 @@
"name": { "str": "Cloaking System" },
"description": "This high-power system uses a set of cameras and LEDs to make you blend into your background, rendering you fully invisible to normal vision. However, you may be detected by infrared, sonar, etc.",
"occupied_bodyparts": [
[ "torso", 8 ],
[ "torso", 15 ],
[ "head", 2 ],
[ "arm_l", 3 ],
[ "arm_r", 3 ],
@@ -663,7 +573,7 @@
"type": "bionic",
"name": { "str": "Close Quarters Battle" },
"description": "Bionic processors and databanks, loaded with martial arts combat programs, are surgically integrated into your nervous system. Whilst active, the CQB module will improve your hand-to-hand combat skills, but prevents you from improving them through combat experience.",
"occupied_bodyparts": [ [ "head", 3 ] ],
"occupied_bodyparts": [ [ "head", 4 ] ],
"act_cost": "20 J",
"react_cost": "20 J",
"time": 1,
@@ -683,7 +593,7 @@
"type": "bionic",
"name": { "str": "Wired Reflexes" },
"description": "Your reaction time has been greatly enhanced with bionic nerve stimulators, giving you a +2 bonus to dexterity.",
"occupied_bodyparts": [ [ "head", 3 ], [ "torso", 6 ], [ "arm_l", 3 ], [ "arm_r", 3 ], [ "leg_l", 7 ], [ "leg_r", 7 ] ],
"occupied_bodyparts": [ [ "torso", 6 ], [ "arm_l", 4 ], [ "arm_r", 4 ], [ "leg_l", 8 ], [ "leg_r", 8 ] ],
"stat_bonus": [ [ "DEX", 2 ] ],
"flags": [ "BIONIC_NPC_USABLE" ]
},
@@ -710,8 +620,7 @@
"name": { "str": "Electrical Discharge" },
"description": "A malfunctioning bionic which occasionally discharges electricity through your body, causing pain and brief paralysis but no damage.",
"occupied_bodyparts": [ [ "torso", 6 ] ],
"flags": [ "BIONIC_FAULTY" ],
"trigger_cost": "10 kJ"
"flags": [ "BIONIC_FAULTY" ]
},
{
"id": "bio_drain",
@@ -728,36 +637,34 @@
"description": "When this bionic is active, you can block hearing completely.",
"included": true,
"flags": [ "BIONIC_TOGGLED" ],
"active_flags": [ "DEAF" ],
"auto_deactivates": [ "bio_ears" ]
"active_flags": [ "DEAF" ]
},
{
"id": "bio_ears",
"type": "bionic",
"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", 2 ] ],
"occupied_bodyparts": [ [ "head", 3 ] ],
"flags": [ "BIONIC_TOGGLED", "IMMUNE_HEARING_DAMAGE" ],
"active_flags": [ "SUPER_HEARING" ],
"auto_deactivates": [ "bio_earplugs" ],
"included_bionics": [ "bio_earplugs" ]
},
{
"id": "bio_emp",
"type": "bionic",
"name": { "str": "Directional EMP" },
"description": "Surgically mounted in your left arm and the palm of your left hand are small parabolic EMP field generators. You may use power to fire a wide but short-ranged blast that will disable electronics and robots.",
"occupied_bodyparts": [ [ "arm_l", 6 ], [ "hand_l", 1 ] ],
"description": "Surgically mounted in the palm of your hand are small parabolic EMP field generators. You may use power to fire a wide, but short-ranged blast which will disable electronics and robots.",
"occupied_bodyparts": [ [ "arm_r", 1 ], [ "hand_r", 2 ] ],
"act_cost": "50 kJ"
},
{
"type": "bionic",
"id": "bio_emp_armgun",
"name": { "str": "EMP Projector" },
"description": "A ranged EMP generator system is implanted in your right arm and the palm of your right hand. The system fires precise, single-target pulses that require time to aim. Extremely effective against electronic targets but mostly useless otherwise.",
"occupied_bodyparts": [ [ "arm_r", 8 ], [ "hand_r", 2 ] ],
"description": "A ranged EMP generator system is implanted on the palm of your right hand and arm. The system fires precise, single-target pulses that require time to aim. Extremely effective against electronic targets but mostly useless otherwise.",
"occupied_bodyparts": [ [ "arm_r", 10 ], [ "hand_r", 5 ] ],
"act_cost": "50 kJ",
"fake_weapon": "bio_emp_gun",
"fake_item": "bio_emp_gun",
"flags": [ "BIONIC_GUN" ]
},
{
@@ -765,9 +672,9 @@
"type": "bionic",
"name": { "str": "Ethanol Burner" },
"description": "You burn alcohol as fuel in an extremely efficient reaction.",
"occupied_bodyparts": [ [ "torso", 20 ] ],
"occupied_bodyparts": [ [ "torso", 26 ] ],
"fuel_options": [ "alcohol" ],
"fuel_capacity": 400,
"fuel_capacity": 500,
"fuel_efficiency": 0.5,
"exothermic_power_gen": true,
"time": 1,
@@ -799,7 +706,6 @@
"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" ],
"cant_remove_reason": "The Telescopic Lenses are part of %1$s eyes now. Removing them would leave %2$s blind.",
"canceled_mutations": [
"HYPEROPIC",
"MYOPIC",
@@ -859,16 +765,16 @@
"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_l", 1 ] ],
"toggled_pseudo_items": [ "electrohack" ],
"flags": [ "BIONIC_TOGGLED", "USES_BIONIC_POWER" ]
"occupied_bodyparts": [ [ "hand_r", 2 ] ],
"fake_item": "electrohack",
"flags": [ "BIONIC_TOGGLED" ]
},
{
"id": "bio_flashbang",
"type": "bionic",
"name": { "str": "Flashbang Generator" },
"description": "Light emitting diodes surgically integrated into your skin can release a flash comparable to a flashbang grenade, blinding nearby enemies. Speakers integrated into your body mimic the loud sound, deafening those nearby.",
"occupied_bodyparts": [ [ "torso", 18 ], [ "arm_l", 2 ], [ "arm_r", 2 ], [ "leg_l", 3 ], [ "leg_r", 3 ] ],
"occupied_bodyparts": [ [ "torso", 20 ], [ "arm_l", 2 ], [ "arm_r", 2 ], [ "leg_l", 3 ], [ "leg_r", 3 ] ],
"act_cost": "10 kJ"
},
{
@@ -876,12 +782,11 @@
"type": "bionic",
"name": { "str": "Cranial Flashlight" },
"description": "Surgically mounted between your eyes is a small but powerful LED flashlight.",
"occupied_bodyparts": [ [ "head", 1 ] ],
"occupied_bodyparts": [ [ "eyes", 1 ] ],
"act_cost": "3 J",
"react_cost": "3 J",
"time": 1,
"flags": [ "BIONIC_TOGGLED" ],
"enchantments": [ { "condition": "ACTIVE", "values": [ { "value": "LUMINATION", "add": 60 } ] } ]
"flags": [ "BIONIC_TOGGLED" ]
},
{
"id": "bio_tattoo_led",
@@ -891,16 +796,14 @@
"act_cost": "1 J",
"react_cost": "1 J",
"time": 1,
"flags": [ "BIONIC_TOGGLED" ],
"enchantments": [ { "condition": "ACTIVE", "values": [ { "value": "LUMINATION", "add": 5 } ] } ]
"flags": [ "BIONIC_TOGGLED" ]
},
{
"id": "bio_glowy",
"type": "bionic",
"name": { "str": "Glowy Thing" },
"description": "You don't think that capacitor is *meant* to glow, but it does, and usually at bad times. A malfunctioning bionic randomly turns on and off, causing you to glow and making you visible in the dark without improving how much you can see in the slightest.",
"flags": [ "BIONIC_FAULTY" ],
"trigger_cost": "1 kJ"
"flags": [ "BIONIC_FAULTY" ]
},
{
"id": "bio_geiger",
@@ -916,8 +819,7 @@
"name": { "str": "Respirator" },
"description": "A complex respiration augmentation system. Improves respiration ability in air and allows breathing water. Will automatically turn on when drowning. Turn on to recharge stamina faster, at moderate power cost. Asthmatics may also use it to stop asthma attacks.",
"occupied_bodyparts": [ [ "torso", 8 ], [ "head", 2 ], [ "mouth", 2 ] ],
"flags": [ "BIONIC_TOGGLED" ],
"trigger_cost": "25 kJ"
"flags": [ "BIONIC_TOGGLED" ]
},
{
"id": "bio_ground_sonar",
@@ -936,7 +838,7 @@
"name": { "str": "Heat Drain" },
"description": "While fighting unarmed against a warm-blooded opponent, there is a chance that a successful hit will drain body heat, inflicting a small amount of extra damage, and increasing your power reserves slightly.",
"occupied_bodyparts": [
[ "torso", 6 ],
[ "torso", 12 ],
[ "head", 3 ],
[ "arm_l", 3 ],
[ "arm_r", 3 ],
@@ -947,8 +849,7 @@
[ "foot_l", 2 ],
[ "foot_r", 2 ]
],
"flags": [ "BIONIC_TOGGLED", "BIONIC_NPC_USABLE" ],
"trigger_cost": "3 kJ"
"flags": [ "BIONIC_TOGGLED", "BIONIC_NPC_USABLE" ]
},
{
"id": "bio_heatsink",
@@ -978,7 +879,7 @@
"type": "bionic",
"name": { "str": "Hydraulic Muscles" },
"description": "While activated, your muscles will be greatly enhanced, increasing your strength by 20.",
"occupied_bodyparts": [ [ "torso", 10 ], [ "arm_l", 8 ], [ "arm_r", 8 ], [ "leg_l", 10 ], [ "leg_r", 10 ] ],
"occupied_bodyparts": [ [ "torso", 4 ], [ "arm_l", 8 ], [ "arm_r", 8 ], [ "leg_l", 14 ], [ "leg_r", 14 ] ],
"flags": [ "BIONIC_TOGGLED", "BIONIC_NPC_USABLE" ],
"act_cost": "10 kJ",
"react_cost": "10 kJ",
@@ -1001,7 +902,7 @@
"type": "bionic",
"name": { "str": "Cerebral Booster" },
"description": "Your brain has been enhanced with bionic coprocessors, giving you a +2 bonus to intelligence.",
"occupied_bodyparts": [ [ "head", 6 ] ],
"occupied_bodyparts": [ [ "head", 7 ] ],
"stat_bonus": [ [ "INT", 2 ] ],
"flags": [ "BIONIC_NPC_USABLE" ]
},
@@ -1010,7 +911,7 @@
"type": "bionic",
"name": { "str": "Itchy Metal Thing" },
"description": "A bionic of some sort, so badly installed that you cannot even tell what it was originally supposed to be. Sometimes it itches horribly.",
"occupied_bodyparts": [ [ "torso", 3 ], [ "head", 2 ] ],
"occupied_bodyparts": [ [ "torso", 3 ], [ "head", 2 ], [ "hand_l", 1 ], [ "hand_r", 1 ] ],
"flags": [ "BIONIC_FAULTY" ]
},
{
@@ -1020,7 +921,7 @@
"description": "One of your fingers has a small high-powered laser surgically embedded in it. This long range weapon is not incredibly damaging, but is very accurate, and has the potential to start fires.",
"occupied_bodyparts": [ [ "hand_r", 1 ] ],
"act_cost": "30 kJ",
"fake_weapon": "bio_laser_gun",
"fake_item": "bio_laser_gun",
"flags": [ "BIONIC_GUN", "BIONIC_NPC_USABLE" ]
},
{
@@ -1040,43 +941,32 @@
"flags": [ "BIONIC_TOGGLED", "BIONIC_SLEEP_FRIENDLY", "BIONIC_NPC_USABLE" ],
"act_cost": "5 J",
"react_cost": "5 J",
"time": 1,
"enchantments": [
{
"condition": "ACTIVE",
"values": [
{ "value": "EFFECTIVE_HEALTH_MOD", "add": 100 },
{ "value": "MOD_HEALTH", "add": -50 },
{ "value": "MOD_HEALTH_CAP", "add": -200 }
]
}
]
"time": 1
},
{
"id": "bio_lighter",
"type": "bionic",
"name": { "str": "Finger Lighter" },
"description": "The index finger of your left hand has a fire starter that can extend from the tip.",
"occupied_bodyparts": [ [ "hand_l", 1 ] ],
"flags": [ "USES_BIONIC_POWER" ],
"passive_pseudo_items": [ "crude_firestarter" ],
"act_cost": "1500 J"
"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": "5 kJ"
},
{
"id": "bio_lockpick",
"type": "bionic",
"name": { "str": "Fingerpick" },
"description": "One of your fingers has an electronic lockpick surgically embedded in it. This automatic system will quickly unlock all but the most advanced key locks without any skill required on the part of the user.",
"occupied_bodyparts": [ [ "hand_l", 2 ] ],
"occupied_bodyparts": [ [ "hand_r", 2 ] ],
"act_cost": "50 J"
},
{
"id": "bio_magnet",
"type": "bionic",
"name": { "str": "Electromagnetic Unit" },
"description": "Surgically embedded in your left arm is a powerful electromagnet, allowing you to use your own strength to pull all nearby magnetic objects towards you. Unlucky bystanders might be injured or killed by flying objects.",
"occupied_bodyparts": [ [ "arm_l", 9 ] ],
"act_cost": "15 kJ"
"description": "Surgically embedded in your right hand is a powerful electromagnet, allowing you to use your own strength to pull all nearby magnetic objects towards you. Unlucky bystanders might be injured or killed by flying objects.",
"occupied_bodyparts": [ [ "hand_r", 3 ] ],
"act_cost": "10 kJ"
},
{
"id": "bio_membrane",
@@ -1093,29 +983,16 @@
"description": "Your memory has been enhanced with small quantum storage drives. While active, you learn - both through reading and practice - more quickly. Additionally, you can't forget skills you've already learned, and the layout of terrain you've explored will remain in your memory for an incredibly long time.",
"occupied_bodyparts": [ [ "head", 3 ] ],
"flags": [ "BIONIC_TOGGLED", "BIONIC_SLEEP_FRIENDLY" ],
"active_flags": [ "CBQ_LEARN_BONUS" ],
"act_cost": "2 J",
"react_cost": "2 J",
"trigger_cost": "25 J",
"time": 1,
"enchantments": [
{
"condition": "ACTIVE",
"values": [
{ "value": "MAP_MEMORY", "add": 49 },
{ "value": "READING_EXP", "add": 2 },
{ "value": "SKILL_RUST_RESIST", "add": 20 },
{ "value": "LEARNING_FOCUS", "add": 10 }
]
}
]
"time": 1
},
{
"id": "bio_metabolics",
"type": "bionic",
"name": { "str": "Metabolic Interchange" },
"description": "Your digestive system and power supply are interconnected; bionic energy is replenished by burning calories. Can be toggled on and off at will.",
"occupied_bodyparts": [ [ "torso", 20 ] ],
"occupied_bodyparts": [ [ "torso", 25 ] ],
"fuel_options": [ "metabolism" ],
"fuel_efficiency": 0.25,
"time": 1,
@@ -1127,15 +1004,14 @@
"name": { "str": "Weather Reader" },
"description": "A multitude of scientific instruments and sensors collect environmental data. The data is compiled and presented as a simple readout of the current weather. It also passively tells you the local air temperature.",
"occupied_bodyparts": [ [ "torso", 1 ], [ "head", 1 ] ],
"act_cost": "10 J",
"flags": [ "THERMOMETER" ]
"act_cost": "10 J"
},
{
"id": "bio_nanobots",
"type": "bionic",
"name": { "str": "Repair Nanobots" },
"description": "Inside your body is a fleet of tiny dormant robots. While activated they will flit about your body, repairing damage at 1 HP per minute and stopping bleeding at the cost of extra power and stored calories. No power is consumed if there is nothing to heal.",
"occupied_bodyparts": [ [ "torso", 12 ] ],
"occupied_bodyparts": [ [ "torso", 10 ] ],
"flags": [ "BIONIC_TOGGLED", "BIONIC_NPC_USABLE" ],
"act_cost": "80 J",
"react_cost": "40 J",
@@ -1197,7 +1073,6 @@
"flags": [ "BIONIC_TOGGLED", "BIONIC_NPC_USABLE" ],
"act_cost": "10 kJ",
"react_cost": "10 kJ",
"trigger_cost": "1 kJ",
"time": 1
},
{
@@ -1206,8 +1081,7 @@
"name": { "str": "Sensory Dulling" },
"description": "Your nervous system is wired to allow you to inhibit the signals of pain, allowing you to dull your senses at will. However, the use of this system may cause delayed reaction time and drowsiness.",
"occupied_bodyparts": [ [ "head", 2 ] ],
"flags": [ "BIONIC_TOGGLED", "BIONIC_NPC_USABLE" ],
"trigger_cost": "2 kJ"
"flags": [ "BIONIC_TOGGLED", "BIONIC_NPC_USABLE" ]
},
{
"id": "bio_pokedeye",
@@ -1243,7 +1117,6 @@
"type": "bionic",
"name": { "str": "Power Storage" },
"capacity": "100 kJ",
"dupes_allowed": true,
"description": "A Compact Bionics Module that increases your power capacity by 100 kJ. Having at least one of these is a prerequisite to using powered bionics. You will also need a power supply, found in various CBMs.",
"flags": [ "BIONIC_NPC_USABLE" ]
},
@@ -1252,7 +1125,6 @@
"type": "bionic",
"name": { "str": "Power Storage Mk. II" },
"capacity": "250 kJ",
"dupes_allowed": true,
"description": "A Compact Bionics Module that increases your power capacity by 250 kJ.",
"flags": [ "BIONIC_NPC_USABLE" ]
},
@@ -1273,16 +1145,15 @@
"flags": [ "BIONIC_TOGGLED" ],
"act_cost": "3 J",
"react_cost": "3 J",
"trigger_cost": "250 kJ",
"time": 1
},
{
"id": "bio_purifier",
"type": "bionic",
"name": { "str": "Air Filtration System" },
"description": "Surgically implanted in your trachea is an advanced filtration system. If toxins or airborne diseases find their way into your windpipe, the filter will attempt to remove them.",
"occupied_bodyparts": [ [ "torso", 5 ], [ "mouth", 1 ] ],
"env_protec": [ [ "mouth", 9 ] ],
"description": "Surgically implanted in your trachea is an advanced filtration system. If toxins, or airborne diseases find their way into your windpipe, the filter will attempt to remove them.",
"occupied_bodyparts": [ [ "torso", 4 ], [ "mouth", 2 ] ],
"env_protec": [ [ "mouth", 7 ] ],
"flags": [ "BIONIC_NPC_USABLE" ]
},
{
@@ -1310,8 +1181,8 @@
"type": "bionic",
"name": { "str": "Fingertip Razors" },
"description": "You possess razor-sharp claws underneath your fingernails that do a small amount of unarmed slashing damage whenever your fingertips are uncovered.",
"occupied_bodyparts": [ [ "hand_l", 1 ], [ "hand_r", 1 ] ],
"passive_pseudo_items": [ "fake_razor" ],
"occupied_bodyparts": [ [ "hand_l", 2 ], [ "hand_r", 2 ] ],
"fake_item": "fake_razor",
"flags": [ "BIONIC_NPC_USABLE" ]
},
{
@@ -1368,8 +1239,7 @@
"name": { "str": "Bionic Short Circuit" },
"description": "A poorly-wired bionic which fails to serve its intended purpose, this malfunctioning device periodically short-circuits, causing systemic muscle tremors.",
"occupied_bodyparts": [ [ "torso", 1 ], [ "arm_l", 2 ], [ "arm_r", 2 ], [ "leg_l", 3 ], [ "leg_r", 3 ] ],
"flags": [ "BIONIC_FAULTY" ],
"trigger_cost": "25 kJ"
"flags": [ "BIONIC_FAULTY" ]
},
{
"id": "bio_synaptic_regen",
@@ -1389,8 +1259,7 @@
"name": { "str": "Electroshock Unit" },
"description": "While fighting unarmed, or with a weapon that conducts electricity, there is a chance that a successful hit will shock your opponent, inflicting extra damage and disabling them temporarily at the cost of some energy.",
"occupied_bodyparts": [ [ "torso", 8 ], [ "arm_l", 3 ], [ "arm_r", 3 ], [ "hand_l", 1 ], [ "hand_r", 1 ] ],
"flags": [ "BIONIC_TOGGLED", "BIONIC_NPC_USABLE" ],
"trigger_cost": "2 kJ"
"flags": [ "BIONIC_TOGGLED", "BIONIC_NPC_USABLE" ]
},
{
"id": "bio_shockwave",
@@ -1422,7 +1291,7 @@
"name": { "str": "Synaptic Accelerator" },
"description": "Your nervous system has been enhanced with bionic stimulators, giving you a 10% boost to your speed.",
"occupied_bodyparts": [
[ "torso", 8 ],
[ "torso", 12 ],
[ "arm_l", 3 ],
[ "arm_r", 3 ],
[ "hand_l", 1 ],
@@ -1432,7 +1301,6 @@
[ "foot_l", 2 ],
[ "foot_r", 2 ]
],
"enchantments": [ { "condition": "ALWAYS", "values": [ { "value": "SPEED", "multiply": 0.1 } ] } ],
"flags": [ "BIONIC_NPC_USABLE" ]
},
{
@@ -1465,9 +1333,9 @@
"id": "bio_surgical_razor",
"type": "bionic",
"name": { "str": "Autonomous Surgical Scalpels" },
"description": "A system of surgical grade scalpels is implanted in your forearms, extending from just above your wrists. They allow you to make automated precise cuts and can also be used as a high-quality butchering tool.",
"occupied_bodyparts": [ [ "arm_r", 2 ], [ "arm_l", 2 ] ],
"fake_weapon": "bio_scalpel",
"description": "A system of surgical grade scalpels is implanted on your fingers. They allow you to make automated precise cuts and can also be used as a high-quality butchering tool.",
"occupied_bodyparts": [ [ "arm_r", 1 ], [ "arm_l", 1 ] ],
"fake_item": "bio_scalpel",
"flags": [ "BIONIC_TOGGLED", "BIONIC_WEAPON" ]
},
{
@@ -1478,7 +1346,7 @@
"occupied_bodyparts": [ [ "eyes", 1 ] ],
"included_bionics": [ "bio_blindfold" ],
"flags": [ "BIONIC_NPC_USABLE", "GLARE_RESIST" ],
"passive_pseudo_items": [ "fake_goggles" ]
"fake_item": "fake_goggles"
},
{
"id": "bio_targeting",
@@ -1486,8 +1354,7 @@
"name": { "str": "Targeting System" },
"description": "Your eyes are surgically equipped with range finders, and their movement is synced with that of your arms, to a degree. Shots you fire will be much more accurate, particularly at long range.",
"occupied_bodyparts": [ [ "eyes", 1 ], [ "arm_l", 3 ], [ "arm_r", 3 ], [ "hand_l", 1 ], [ "hand_r", 1 ] ],
"flags": [ "BIONIC_NPC_USABLE" ],
"enchantments": [ { "condition": "ALWAYS", "values": [ { "value": "WEAPON_DISPERSION", "multiply": -0.25 } ] } ]
"flags": [ "BIONIC_NPC_USABLE" ]
},
{
"id": "bio_teleport",
@@ -1529,20 +1396,20 @@
"id": "bio_tools",
"type": "bionic",
"name": { "str": "Integrated Toolset" },
"description": "Surgically implanted in your hands and forearms is a set of tools - screwdriver, hammer, wrench, hacksaw, drill, heating elements, and others. You can use this in place of many tools when crafting.",
"occupied_bodyparts": [ [ "hand_l", 1 ], [ "hand_r", 1 ], [ "arm_l", 3 ], [ "arm_r", 3 ] ],
"toggled_pseudo_items": [ "toolset" ],
"description": "Surgically implanted in your hands and fingers is a set of tools - screwdriver, hammer, wrench, hacksaw, drill, welder, and heating elements. You can use this in place of many tools when crafting.",
"occupied_bodyparts": [ [ "hand_l", 3 ], [ "hand_r", 3 ] ],
"fake_item": "toolset",
"included_bionics": [ "bio_tools_extend" ],
"flags": [ "BIONIC_TOGGLED", "BIONIC_NPC_USABLE", "USES_BIONIC_POWER" ]
"flags": [ "BIONIC_TOGGLED", "BIONIC_NPC_USABLE" ]
},
{
"id": "bio_tools_extend",
"type": "bionic",
"name": { "str": "Extended Toolset" },
"description": "Extend or withdraw your integrated toolset to cut metal, pry things, or other stuff. This takes up your hands.",
"fake_weapon": "toolset_extended",
"fake_item": "toolset_extended",
"included": true,
"flags": [ "BIONIC_TOGGLED", "BIONIC_WEAPON", "USES_BIONIC_POWER" ]
"flags": [ "BIONIC_TOGGLED", "BIONIC_WEAPON" ]
},
{
"id": "bio_torsionratchet",
@@ -1559,15 +1426,10 @@
"id": "bio_jointservo",
"type": "bionic",
"name": { "str": "Joint Servo" },
"description": "Your leg joints have been equipped with servomotors that provide power-assisted movement. Movement takes less effort when this bionic is online. However, when it's offline it will hamper your movement, as you struggle against its moving parts.",
"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" ],
"mutation_conflicts": [ "LEG_TENTACLES", "LEG_TENT_BRACE", "GASTROPOD_FOOT", "GASTROPOD_BALANCE" ],
"enchantments": [
{ "condition": "ACTIVE", "values": [ { "value": "MOVE_COST", "multiply": -0.1 } ] },
{ "condition": "INACTIVE", "values": [ { "value": "MOVE_COST", "multiply": 0.1 } ] }
],
"trigger_cost": "35 J"
"mutation_conflicts": [ "LEG_TENTACLES", "LEG_TENT_BRACE" ]
},
{
"id": "bio_trip",
@@ -1586,7 +1448,6 @@
"flags": [ "BIONIC_TOGGLED" ],
"act_cost": "6 J",
"react_cost": "6 J",
"trigger_cost": "75 kJ",
"time": 1
},
{
@@ -1620,7 +1481,7 @@
"type": "bionic",
"name": { "str": "Water Extraction Unit" },
"description": "Nanotubes surgically embedded in the palm of your hand will pump any available fluid out of a dead body, cleanse it of impurities and convert it into drinkable water. You must, however, have a container to store the water in.",
"occupied_bodyparts": [ [ "arm_l", 3 ], [ "hand_l", 1 ] ],
"occupied_bodyparts": [ [ "arm_r", 1 ], [ "hand_r", 2 ] ],
"act_cost": "20 kJ"
},
{
@@ -1643,7 +1504,7 @@
"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 ] ],
"passive_pseudo_items": [ "syringe" ]
"fake_item": "syringe"
},
{
"id": "bio_weight",
-75
View File
@@ -11,8 +11,6 @@
"main_part": "torso",
"connected_to": "head",
"opposite_part": "torso",
"limb_type": "torso",
"is_vital": true,
"hit_size": 45,
"hit_size_relative": [ 20, 33.33, 36.57 ],
"hit_difficulty": 1,
@@ -40,8 +38,6 @@
"main_part": "head",
"connected_to": "head",
"opposite_part": "head",
"limb_type": "head",
"is_vital": true,
"hit_size": 6,
"hit_size_relative": [ 0, 2.33, 5.71 ],
"hit_difficulty": 1.35,
@@ -71,8 +67,6 @@
"hit_size": 1,
"hit_size_relative": [ 0, 0.33, 0.57 ],
"hit_difficulty": 1.15,
"limb_type": "sensor",
"vision_score": 1.0,
"side": "both",
"legacy_id": "EYES",
"stylish_bonus": 2,
@@ -97,10 +91,6 @@
"hit_size": 1,
"hit_size_relative": [ 0, 0, 0 ],
"hit_difficulty": 1.15,
"limb_type": "mouth",
"breathing_score": 1.0,
"manipulator_score": 0.05,
"manipulator_max": 0.2,
"side": "both",
"legacy_id": "MOUTH",
"stylish_bonus": 2,
@@ -131,12 +121,6 @@
"hit_size": 9,
"hit_size_relative": [ 15, 20, 22.86 ],
"hit_difficulty": 0.95,
"limb_type": "arm",
"manipulator_score": 0.1,
"manipulator_max": 0.2,
"lifting_score": 0.5,
"blocking_score": 1,
"swim_score": 0.1,
"side": "left",
"legacy_id": "ARM_L",
"hot_morale_mod": 0.5,
@@ -166,12 +150,6 @@
"hit_size": 9,
"hit_size_relative": [ 15, 20, 22.86 ],
"hit_difficulty": 0.95,
"limb_type": "arm",
"manipulator_score": 0.1,
"manipulator_max": 0.2,
"lifting_score": 0.5,
"blocking_score": 1,
"swim_score": 0.1,
"side": "right",
"legacy_id": "ARM_R",
"hot_morale_mod": 0.5,
@@ -199,10 +177,6 @@
"hit_size": 3,
"hit_size_relative": [ 0, 0, 0 ],
"hit_difficulty": 1.1,
"limb_type": "hand",
"manipulator_score": 0.5,
"manipulator_max": 1,
"swim_score": 0.15,
"side": "left",
"legacy_id": "HAND_L",
"stylish_bonus": 0.5,
@@ -230,10 +204,6 @@
"hit_size": 3,
"hit_size_relative": [ 0, 0, 0 ],
"hit_difficulty": 1.1,
"limb_type": "hand",
"manipulator_score": 0.5,
"manipulator_max": 1,
"swim_score": 0.15,
"side": "right",
"legacy_id": "HAND_R",
"stylish_bonus": 0.5,
@@ -263,11 +233,6 @@
"hit_size": 9,
"hit_size_relative": [ 25, 12, 5.71 ],
"hit_difficulty": 0.975,
"limb_type": "leg",
"manipulator_score": 0.1,
"manipulator_max": 0.2,
"movement_speed_score": 0.5,
"swim_score": 0.15,
"side": "left",
"legacy_id": "LEG_L",
"stylish_bonus": 1,
@@ -298,11 +263,6 @@
"hit_size": 9,
"hit_size_relative": [ 25, 12, 5.71 ],
"hit_difficulty": 0.975,
"limb_type": "leg",
"manipulator_score": 0.1,
"manipulator_max": 0.2,
"movement_speed_score": 0.5,
"swim_score": 0.15,
"side": "right",
"legacy_id": "LEG_R",
"stylish_bonus": 1,
@@ -331,11 +291,6 @@
"hit_size": 3,
"hit_size_relative": [ 0, 0, 0 ],
"hit_difficulty": 0.8,
"limb_type": "foot",
"manipulator_score": 0.1,
"manipulator_max": 0.2,
"balance_score": 0.5,
"swim_score": 0.1,
"side": "left",
"legacy_id": "FOOT_L",
"stylish_bonus": 0.5,
@@ -363,11 +318,6 @@
"hit_size": 3,
"hit_size_relative": [ 0, 0, 0 ],
"hit_difficulty": 0.8,
"limb_type": "foot",
"manipulator_score": 0.1,
"manipulator_max": 0.2,
"balance_score": 0.5,
"swim_score": 0.1,
"side": "right",
"legacy_id": "FOOT_R",
"stylish_bonus": 0.5,
@@ -379,30 +329,5 @@
"drench_capacity": 3,
"smash_message": "You kick down the %s, smashing it.",
"bionic_slots": 7
},
{
"id": "debug_tail",
"type": "body_part",
"name": "debug tail",
"name_multiple": "debug tails",
"heading": "DBG Tail",
"heading_multiple": "Tails",
"encumbrance_text": "Your debug tail feels heavy",
"hit_size": 1,
"hit_size_relative": [ 0, 0, 0 ],
"drench_capacity": 4,
"main_part": "debug_tail",
"hit_difficulty": 0.8,
"limb_type": "tail",
"manipulator_score": 0.5,
"manipulator_max": 1,
"balance_score": 1,
"swim_score": 0.15,
"opposite_part": "debug_tail",
"side": "both",
"connected_to": "torso",
"accusative": { "ctxt": "bodypart_accusative", "str": "debug tail" },
"hp_bar_ui_text": "DBG TAIL",
"base_hp": 20
}
]
+31 -54
View File
@@ -44,7 +44,7 @@
"category": "DIG",
"required_skills": [ [ "survival", 1 ] ],
"time": "5 m",
"components": [ [ [ "spear_wood", 4 ], [ "pointy_stick", 4 ], [ "pointy_stick_long", 4 ] ] ],
"components": [ [ [ "spear_wood", 4 ], [ "pointy_stick", 4 ] ] ],
"pre_terrain": "t_pit",
"post_terrain": "t_pit_spiked"
},
@@ -651,7 +651,7 @@
"required_skills": [ [ "fabrication", 5 ] ],
"time": "60 m",
"tools": [ [ [ "oxy_torch", 4 ], [ "welder", 20 ], [ "welder_crude", 30 ], [ "toolset", 30 ] ] ],
"qualities": [ [ { "id": "SAW_M", "level": 1 } ], [ { "id": "GLARE", "level": 1 } ] ],
"qualities": [ [ { "id": "SAW_M", "level": 1 } ], [ { "id": "GLARE", "level": 2 } ] ],
"components": [ [ [ "pipe", 6 ] ], [ [ "sheet_metal", 2 ] ] ],
"pre_terrain": "t_floor",
"post_terrain": "t_bars"
@@ -957,7 +957,7 @@
"category": "CONSTRUCT",
"required_skills": [ [ "fabrication", 4 ] ],
"time": "90 m",
"qualities": [ { "id": "GLARE", "level": 1 } ],
"qualities": [ { "id": "GLARE", "level": 2 } ],
"tools": [ [ [ "oxy_torch", 10 ], [ "welder", 50 ], [ "welder_crude", 75 ], [ "toolset", 75 ] ] ],
"components": [ [ [ "steel_plate", 2 ] ] ],
"pre_terrain": "t_pit_shallow",
@@ -971,7 +971,7 @@
"category": "CONSTRUCT",
"required_skills": [ [ "fabrication", 4 ] ],
"time": "90 m",
"qualities": [ { "id": "GLARE", "level": 1 } ],
"qualities": [ { "id": "GLARE", "level": 2 } ],
"tools": [ [ [ "oxy_torch", 10 ], [ "welder", 50 ], [ "welder_crude", 75 ], [ "toolset", 75 ] ] ],
"components": [ [ [ "steel_plate", 2 ] ] ],
"pre_terrain": "t_scrap_wall_halfway",
@@ -1127,7 +1127,7 @@
"category": "CONSTRUCT",
"required_skills": [ [ "fabrication", 6 ] ],
"time": "120 m",
"using": [ [ "welding_standard", 2 ] ],
"qualities": [ [ { "id": "WELD", "level": 2 } ], [ { "id": "GLARE", "level": 2 } ] ],
"components": [ [ [ "rebar", 16 ] ] ],
"pre_terrain": "t_pit",
"post_terrain": "t_reb_cage"
@@ -1168,7 +1168,7 @@
"category": "CONSTRUCT",
"required_skills": [ [ "fabrication", 6 ] ],
"time": "120 m",
"using": [ [ "welding_standard", 2 ] ],
"qualities": [ [ { "id": "WELD", "level": 2 } ], [ { "id": "GLARE", "level": 2 } ] ],
"components": [ [ [ "rebar", 16 ] ] ],
"pre_terrain": "t_pit",
"post_terrain": "t_reb_cage"
@@ -1208,7 +1208,7 @@
"category": "CONSTRUCT",
"required_skills": [ [ "fabrication", 5 ] ],
"time": "90 m",
"qualities": [ { "id": "GLARE", "level": 1 } ],
"qualities": [ { "id": "GLARE", "level": 2 } ],
"tools": [ [ [ "oxy_torch", 10 ], [ "welder", 50 ], [ "welder_crude", 75 ], [ "toolset", 75 ] ] ],
"components": [ [ [ "steel_plate", 2 ] ] ],
"pre_note": "Must be supported on at least two sides.",
@@ -1223,7 +1223,7 @@
"category": "CONSTRUCT",
"required_skills": [ [ "fabrication", 5 ] ],
"time": "120 m",
"using": [ [ "welding_standard", 2 ] ],
"qualities": [ [ { "id": "WELD", "level": 2 } ], [ { "id": "GLARE", "level": 2 } ] ],
"components": [ [ [ "rebar", 8 ] ], [ [ "2x4", 12 ] ], [ [ "pipe", 4 ] ] ],
"pre_terrain": "t_pit_shallow",
"post_terrain": "t_ov_smreb_cage"
@@ -1250,7 +1250,7 @@
"category": "CONSTRUCT",
"required_skills": [ [ "fabrication", 6 ] ],
"time": "180 m",
"using": [ [ "welding_standard", 2 ] ],
"qualities": [ [ { "id": "WELD", "level": 2 } ], [ { "id": "GLARE", "level": 2 } ] ],
"components": [ [ [ "rebar", 12 ] ], [ [ "2x4", 12 ] ], [ [ "pipe", 4 ] ] ],
"pre_terrain": "t_pit",
"post_terrain": "t_ov_reb_cage"
@@ -1459,7 +1459,7 @@
"required_skills": [ [ "fabrication", 0 ], [ "survival", 0 ] ],
"time": "15 m",
"qualities": [ [ { "id": "HAMMER", "level": 2 } ], [ { "id": "DIG", "level": 2 } ] ],
"components": [ [ [ "pointy_stick", 2 ], [ "spear_wood", 2 ], [ "pointy_stick_long", 2 ] ] ],
"components": [ [ [ "pointy_stick", 2 ], [ "spear_wood", 2 ] ] ],
"pre_flags": "DIGGABLE",
"post_terrain": "t_fence_post"
},
@@ -1483,12 +1483,7 @@
"required_skills": [ [ "fabrication", 2 ], [ "survival", 1 ] ],
"time": "30 m",
"qualities": [ [ { "id": "HAMMER", "level": 2 } ], [ { "id": "DIG", "level": 2 } ] ],
"components": [
[ [ "pointy_stick", 2 ], [ "spear_wood", 2 ], [ "pointy_stick_long", 2 ] ],
[ [ "2x4", 5 ] ],
[ [ "nail", 12 ] ],
[ [ "hinge", 2 ] ]
],
"components": [ [ [ "pointy_stick", 2 ], [ "spear_wood", 2 ] ], [ [ "2x4", 5 ] ], [ [ "nail", 12 ] ], [ [ "hinge", 2 ] ] ],
"pre_flags": "DIGGABLE",
"post_terrain": "t_fencegate_c"
},
@@ -1534,7 +1529,7 @@
"required_skills": [ [ "fabrication", 3 ] ],
"time": "30 m",
"qualities": [ [ { "id": "HAMMER", "level": 2 } ] ],
"components": [ [ [ "pipe", 6 ] ], [ [ "pipe_fittings", 3 ] ], [ [ "scrap", 8 ] ] ],
"components": [ [ [ "pipe", 6 ] ], [ [ "scrap", 8 ] ] ],
"pre_flags": "DIGGABLE",
"post_terrain": "t_chainfence_posts"
},
@@ -2115,8 +2110,12 @@
"category": "FURN",
"required_skills": [ [ "fabrication", 2 ], [ "cooking", 1 ] ],
"time": "180 m",
"qualities": [ [ { "id": "HAMMER", "level": 2 } ], [ { "id": "SAW_M", "level": 1 } ] ],
"using": [ [ "welding_standard", 2 ] ],
"qualities": [
[ { "id": "HAMMER", "level": 2 } ],
[ { "id": "SAW_M", "level": 1 } ],
[ { "id": "WELD", "level": 2 } ],
[ { "id": "GLARE", "level": 2 } ]
],
"components": [ [ [ "metal_tank", 4 ] ], [ [ "water_faucet", 1 ] ] ],
"pre_special": "check_empty",
"post_terrain": "f_standing_tank"
@@ -2240,18 +2239,6 @@
"pre_special": "check_empty",
"post_terrain": "f_dumpster"
},
{
"type": "construction",
"id": "constr_metal_trashcan",
"group": "build_metal_trashcan",
"category": "CONSTRUCT",
"required_skills": [ [ "fabrication", 2 ] ],
"time": "30 m",
"qualities": [ [ { "id": "HAMMER", "level": 2 } ], [ { "id": "SAW_M", "level": 2 } ] ],
"components": [ [ [ "sheet_metal", 2 ] ] ],
"pre_special": "check_empty",
"post_terrain": "f_metal_trashcan"
},
{
"type": "construction",
"id": "constr_mailbox",
@@ -3440,7 +3427,7 @@
"time": "15 m",
"pre_special": "check_empty",
"components": [
[ [ "pillow", 19 ], [ "down_pillow", 19 ], [ "makeshift_pillow", 19 ], [ "mattress", 4 ] ],
[ [ "pillow", 19 ], [ "down_pillow", 19 ], [ "mattress", 4 ] ],
[ [ "down_blanket", 3 ], [ "blanket", 3 ], [ "fur_blanket", 3 ] ]
],
"pre_terrain": "t_floor",
@@ -3455,7 +3442,7 @@
"time": "15 m",
"pre_special": "check_empty",
"components": [
[ [ "pillow", 4 ], [ "down_pillow", 4 ], [ "makeshift_pillow", 4 ] ],
[ [ "pillow", 4 ], [ "down_pillow", 4 ] ],
[ [ "down_blanket", 2 ], [ "blanket", 2 ], [ "fur_blanket", 2 ] ],
[ [ "box_large", 1 ] ],
[ [ "plastic_sheet", 1 ] ],
@@ -3536,12 +3523,7 @@
"required_skills": [ [ "fabrication", 2 ], [ "survival", 1 ] ],
"time": "30 m",
"qualities": [ [ { "id": "HAMMER", "level": 2 } ], [ { "id": "DIG", "level": 2 } ] ],
"components": [
[ [ "pointy_stick", 2 ], [ "spear_wood", 2 ], [ "pointy_stick_long", 2 ] ],
[ [ "2x4", 5 ] ],
[ [ "nail", 12 ] ],
[ [ "hinge", 2 ] ]
],
"components": [ [ [ "pointy_stick", 2 ], [ "spear_wood", 2 ] ], [ [ "2x4", 5 ] ], [ [ "nail", 12 ] ], [ [ "hinge", 2 ] ] ],
"pre_flags": "DIGGABLE",
"post_terrain": "t_splitrail_fencegate_c"
},
@@ -3553,12 +3535,7 @@
"required_skills": [ [ "fabrication", 2 ], [ "survival", 1 ] ],
"time": "30 m",
"qualities": [ [ { "id": "HAMMER", "level": 2 } ], [ { "id": "DIG", "level": 2 } ] ],
"components": [
[ [ "pointy_stick", 2 ], [ "spear_wood", 2 ], [ "pointy_stick_long", 2 ] ],
[ [ "2x4", 8 ] ],
[ [ "nail", 20 ] ],
[ [ "hinge", 2 ] ]
],
"components": [ [ [ "pointy_stick", 2 ], [ "spear_wood", 2 ] ], [ [ "2x4", 8 ] ], [ [ "nail", 20 ] ], [ [ "hinge", 2 ] ] ],
"pre_flags": "DIGGABLE",
"post_terrain": "t_privacy_fencegate_c"
},
@@ -3571,7 +3548,7 @@
"required_skills": [ [ "fabrication", 2 ], [ "survival", 1 ] ],
"time": "30 m",
"qualities": [ [ { "id": "HAMMER", "level": 2 } ], [ { "id": "DIG", "level": 2 } ] ],
"components": [ [ [ "pointy_stick", 2 ], [ "spear_wood", 2 ], [ "pointy_stick_long", 2 ] ], [ [ "2x4", 4 ] ], [ [ "nail", 20 ] ] ],
"components": [ [ [ "pointy_stick", 2 ], [ "spear_wood", 2 ] ], [ [ "2x4", 4 ] ], [ [ "nail", 20 ] ] ],
"pre_flags": "DIGGABLE",
"post_terrain": "t_splitrail_fence"
},
@@ -3597,7 +3574,7 @@
"required_skills": [ [ "fabrication", 2 ], [ "survival", 1 ] ],
"time": "30 m",
"qualities": [ [ { "id": "HAMMER", "level": 2 } ], [ { "id": "DIG", "level": 2 } ] ],
"components": [ [ [ "pointy_stick", 2 ], [ "spear_wood", 2 ], [ "pointy_stick_long", 2 ] ], [ [ "2x4", 8 ] ], [ [ "nail", 20 ] ] ],
"components": [ [ [ "pointy_stick", 2 ], [ "spear_wood", 2 ] ], [ [ "2x4", 8 ] ], [ [ "nail", 20 ] ] ],
"pre_flags": "DIGGABLE",
"post_terrain": "t_privacy_fence"
},
@@ -3777,10 +3754,10 @@
"qualities": [
[ { "id": "HAMMER", "level": 2 } ],
[ { "id": "SAW_M", "level": 1 } ],
[ { "id": "WELD", "level": 2 } ],
[ { "id": "DRILL", "level": 3 } ],
[ { "id": "WRENCH", "level": 2 } ]
],
"using": [ [ "welding_standard", 2 ] ],
"components": [
[ [ "fire_brick", 40 ] ],
[ [ "cu_pipe", 4 ] ],
@@ -3916,7 +3893,7 @@
"required_skills": [ [ "fabrication", 5 ] ],
"time": "90 m",
"tools": [ [ [ "oxy_torch", 4 ], [ "welder", 20 ], [ "welder_crude", 30 ], [ "toolset", 30 ] ] ],
"qualities": [ [ { "id": "SAW_M", "level": 1 } ], [ { "id": "GLARE", "level": 1 } ] ],
"qualities": [ [ { "id": "SAW_M", "level": 1 } ], [ { "id": "GLARE", "level": 2 } ] ],
"components": [ [ [ "pipe", 12 ] ], [ [ "sheet_metal", 4 ] ] ],
"pre_terrain": "t_window_reinforced",
"post_terrain": "t_metal_grate_window"
@@ -3930,7 +3907,7 @@
"required_skills": [ [ "fabrication", 5 ] ],
"time": "90 m",
"tools": [ [ [ "oxy_torch", 4 ], [ "welder", 20 ], [ "welder_crude", 30 ], [ "toolset", 30 ] ] ],
"qualities": [ [ { "id": "SAW_M", "level": 1 } ], [ { "id": "GLARE", "level": 1 } ] ],
"qualities": [ [ { "id": "SAW_M", "level": 1 } ], [ { "id": "GLARE", "level": 2 } ] ],
"components": [ [ [ "pipe", 12 ] ], [ [ "sheet_metal", 4 ] ] ],
"pre_terrain": "t_window_reinforced_noglass",
"post_terrain": "t_metal_grate_window"
@@ -3944,7 +3921,7 @@
"required_skills": [ [ "fabrication", 2 ] ],
"time": "30 m",
"tools": [ [ [ "oxy_torch", 4 ], [ "welder", 20 ], [ "welder_crude", 30 ], [ "toolset", 30 ] ] ],
"qualities": [ [ { "id": "SAW_M", "level": 1 } ], [ { "id": "GLARE", "level": 1 } ] ],
"qualities": [ [ { "id": "SAW_M", "level": 1 } ], [ { "id": "GLARE", "level": 2 } ] ],
"components": [ [ [ "nail", 4 ] ], [ [ "sheet", 2 ] ], [ [ "stick", 1 ] ], [ [ "string_36", 1 ] ] ],
"pre_terrain": "t_metal_grate_window",
"post_terrain": "t_metal_grate_window_with_curtain"
@@ -3958,7 +3935,7 @@
"required_skills": [ [ "fabrication", 2 ] ],
"time": "30 m",
"tools": [ [ [ "oxy_torch", 4 ], [ "welder", 20 ], [ "welder_crude", 30 ], [ "toolset", 30 ] ] ],
"qualities": [ [ { "id": "SAW_M", "level": 1 } ], [ { "id": "GLARE", "level": 1 } ] ],
"qualities": [ [ { "id": "SAW_M", "level": 1 } ], [ { "id": "GLARE", "level": 2 } ] ],
"components": [ [ [ "nail", 4 ] ], [ [ "sheet", 2 ] ], [ [ "stick", 1 ] ], [ [ "string_36", 1 ] ] ],
"pre_terrain": "t_metal_grate_window",
"post_terrain": "t_metal_grate_window_with_curtain"
@@ -4387,7 +4364,7 @@
"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": 1 } ] ],
"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",
@@ -4401,7 +4378,7 @@
"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": 1 } ] ],
"qualities": [ [ { "id": "SAW_M", "level": 2 } ], [ { "id": "GLARE", "level": 2 } ] ],
"components": [
[ [ "steel_lump", 8 ], [ "steel_chunk", 24 ], [ "scrap", 72 ] ],
[ [ "sheet_metal", 16 ] ],
-95
View File
@@ -249,11 +249,6 @@
"id": "build_dumpster",
"name": "Build Dumpster"
},
{
"type": "construction_group",
"id": "build_metal_trashcan",
"name": "Build Metal Trash Can"
},
{
"type": "construction_group",
"id": "build_gravelbag_wall",
@@ -1168,95 +1163,5 @@
"type": "construction_group",
"id": "remove_gravel",
"name": "Remove Gravel"
},
{
"type": "construction_group",
"id": "remove_empty_window",
"name": "Remove an empty window frame"
},
{
"type": "construction_group",
"id": "remove_linoleum_tiles",
"name": "Remove linoleum tiles"
},
{
"type": "construction_group",
"id": "advanced_object_deconstruction",
"name": "Advanced Object Deconstruction"
},
{
"type": "construction_group",
"id": "remove_reinforced_concrete_floor",
"name": "Remove a reinforced concrete floor"
},
{
"type": "construction_group",
"id": "remove_concrete_floor",
"name": "Remove a concrete floor"
},
{
"type": "construction_group",
"id": "remove_floor",
"name": "Remove a wooden floor"
},
{
"type": "construction_group",
"id": "remove_concrete_wall",
"name": "Remove a concrete wall"
},
{
"type": "construction_group",
"id": "remove_brick_wall",
"name": "Remove a brick wall"
},
{
"type": "construction_group",
"id": "remove_wooden_wall",
"name": "Remove a wooden wall"
},
{
"type": "construction_group",
"id": "remove_wall",
"name": "Remove a wall"
},
{
"type": "construction_group",
"id": "remove_rock_wall",
"name": "Remove a rock wall"
},
{
"type": "construction_group",
"id": "remove_roadway",
"name": "Remove a segment of the road/sidewalk"
},
{
"type": "construction_group",
"id": "remove_metal_door",
"name": "Remove metal door"
},
{
"type": "construction_group",
"id": "remove_concrete_column",
"name": "Remove concrete column"
},
{
"type": "construction_group",
"id": "remove_reinforced_concrete_wall",
"name": "Remove reinforced concrete wall"
},
{
"type": "construction_group",
"id": "remove_rebar_cage",
"name": "Remove rebar cage"
},
{
"type": "construction_group",
"id": "remove_glass_wall",
"name": "Remove glass wall"
},
{
"type": "construction_group",
"id": "remove_glass_door",
"name": "Remove glass door"
}
]
-820
View File
@@ -1,820 +0,0 @@
[
{
"type": "item_group",
"id": "wall_deconstruction_results",
"subtype": "collection",
"entries": [
{ "item": "rock", "count": [ 0, 4 ] },
{ "item": "wood_panel", "count": [ 0, 2 ] },
{ "item": "nail", "charges": [ 8, 32 ] },
{ "item": "splinter", "count": [ 0, 4 ] }
]
},
{
"type": "item_group",
"id": "concrete_deconstruction_results",
"subtype": "collection",
"entries": [
{ "item": "rock", "count": [ 5, 10 ] },
{ "item": "scrap", "count": [ 5, 8 ] },
{ "item": "rebar", "count": [ 0, 2 ] },
{ "item": "material_sand", "charges": [ 50, 125 ] }
]
},
{
"type": "item_group",
"id": "road_deconstruction_results",
"subtype": "collection",
"entries": [
{ "item": "rock", "count": [ 10, 30 ] },
{ "item": "pebble", "count": [ 50, 200 ] },
{ "item": "material_sand", "charges": [ 50, 400 ] }
]
},
{
"type": "item_group",
"id": "metal_door_deconstruction_results",
"subtype": "collection",
"entries": [
{ "item": "scrap", "count": [ 15, 30 ] },
{ "item": "sheet_metal", "count": [ 4, 8 ] },
{ "item": "hinge", "count": [ 0, 1 ] }
]
},
{
"type": "construction",
"id": "constr_remove_window_empty",
"group": "remove_empty_window",
"//": "Removes an empty window frame, leaving bare floor",
"category": "CONSTRUCT",
"required_skills": [ [ "fabrication", 3 ] ],
"time": "60 m",
"using": [ [ "wall_floor_glass_removal_standard", 1 ] ],
"byproducts": [ { "item": "2x4", "count": [ 7, 15 ] }, { "item": "nail", "charges": [ 15, 30 ] } ],
"pre_terrain": "t_window_empty",
"post_terrain": "t_floor"
},
{
"type": "construction",
"id": "constr_remove_metal_window_empty",
"group": "remove_empty_window",
"//": "Removes an empty metal window frame, leaving bare floor",
"category": "CONSTRUCT",
"required_skills": [ [ "fabrication", 3 ] ],
"time": "60 m",
"using": [ [ "wall_floor_glass_removal_standard", 1 ] ],
"byproducts": [ { "item": "spike", "count": [ 3, 6 ] }, { "item": "scrap", "charges": [ 6, 8 ] } ],
"pre_terrain": "t_m_frame",
"post_terrain": "t_floor"
},
{
"type": "construction",
"id": "constr_remove_concrete_floor",
"group": "remove_concrete_floor",
"//": "Breaks through the concrete pad, leaving a shallow pit",
"category": "CONSTRUCT",
"required_skills": [ [ "fabrication", 6 ] ],
"time": "120 m",
"using": [ [ "concrete_removal_standard", 1 ] ],
"byproducts": "concrete_deconstruction_results",
"pre_terrain": "t_concrete",
"post_terrain": "t_dirt"
},
{
"type": "construction",
"id": "constr_remove_t_thconc_floor",
"group": "remove_concrete_floor",
"//": "Breaks through the concrete pad, leaving a shallow pit",
"category": "CONSTRUCT",
"required_skills": [ [ "fabrication", 6 ] ],
"time": "120 m",
"using": [ [ "concrete_removal_standard", 1 ] ],
"byproducts": "concrete_deconstruction_results",
"pre_terrain": "t_thconc_floor",
"post_terrain": "t_dirt"
},
{
"type": "construction",
"id": "constr_remove_t_thconc_y_floor",
"group": "remove_concrete_floor",
"//": "Breaks through the concrete pad, leaving a shallow pit",
"category": "CONSTRUCT",
"required_skills": [ [ "fabrication", 6 ] ],
"time": "120 m",
"using": [ [ "concrete_removal_standard", 1 ] ],
"byproducts": "concrete_deconstruction_results",
"pre_terrain": "t_thconc_y",
"post_terrain": "t_dirt"
},
{
"type": "construction",
"id": "constr_remove_t_thconc_r_floor",
"group": "remove_concrete_floor",
"//": "Breaks through the concrete pad, leaving a shallow pit",
"category": "CONSTRUCT",
"required_skills": [ [ "fabrication", 6 ] ],
"time": "120 m",
"using": [ [ "concrete_removal_standard", 1 ] ],
"byproducts": "concrete_deconstruction_results",
"pre_terrain": "t_thconc_r",
"post_terrain": "t_dirt"
},
{
"type": "construction",
"id": "constr_remove_t_strconc_floor",
"group": "remove_reinforced_concrete_floor",
"//": "Breaks through the reinforced concrete pad, leaving a deep pit",
"category": "CONSTRUCT",
"required_skills": [ [ "fabrication", 7 ] ],
"time": "180 m",
"using": [ [ "concrete_removal_standard", 1 ], [ "metal_removal_standard", 1 ] ],
"byproducts": "concrete_deconstruction_results",
"pre_terrain": "t_strconc_floor",
"post_terrain": "t_dirt"
},
{
"type": "construction",
"id": "constr_remove_t_strconc_floor_halfway",
"group": "remove_reinforced_concrete_floor",
"//": "Breaks through the reinforced concrete pad, leaving a deep pit",
"category": "CONSTRUCT",
"required_skills": [ [ "fabrication", 5 ] ],
"time": "80 m",
"using": [ [ "concrete_removal_standard", 1 ], [ "metal_removal_standard", 1 ] ],
"byproducts": "concrete_deconstruction_results",
"pre_terrain": "t_strconc_floor_halfway",
"post_terrain": "t_dirt"
},
{
"type": "construction",
"id": "constr_remove_w_linoleum_tiles",
"group": "remove_linoleum_tiles",
"//": "Removes white linoleum tiles from the floor, leaving bare concrete",
"category": "CONSTRUCT",
"required_skills": [ [ "fabrication", 2 ] ],
"time": "10 m",
"using": [ [ "linoleum_removal_standard", 1 ] ],
"byproducts": [ { "item": "splinter", "count": [ 0, 3 ] }, { "item": "nail", "count": [ 8, 15 ] } ],
"pre_terrain": "t_linoleum_white",
"post_terrain": "t_thconc_floor"
},
{
"type": "construction",
"id": "constr_remove_g_linoleum_tiles",
"group": "remove_linoleum_tiles",
"//": "Removes gray linoleum tiles from the floor, leaving bare concrete",
"category": "CONSTRUCT",
"required_skills": [ [ "fabrication", 2 ] ],
"time": "10 m",
"using": [ [ "linoleum_removal_standard", 1 ] ],
"byproducts": [ { "item": "splinter", "count": [ 0, 3 ] }, { "item": "nail", "count": [ 8, 15 ] } ],
"pre_terrain": "t_linoleum_gray",
"post_terrain": "t_thconc_floor"
},
{
"type": "construction",
"id": "constr_remove_floor",
"group": "remove_floor",
"//": "Prys up the floor boards, leaving dirt",
"category": "CONSTRUCT",
"required_skills": [ [ "fabrication", 3 ] ],
"time": "30 m",
"using": [ [ "wall_floor_glass_removal_standard", 1 ] ],
"byproducts": [ { "item": "2x4", "count": [ 5, 10 ] }, { "item": "splinter", "count": [ 10, 20 ] } ],
"pre_terrain": "t_floor",
"post_terrain": "t_dirt"
},
{
"type": "construction",
"id": "constr_remove_waxed_floor_y",
"group": "remove_floor",
"//": "Prys up the floor boards, leaving dirt",
"category": "CONSTRUCT",
"required_skills": [ [ "fabrication", 3 ] ],
"time": "30 m",
"using": [ [ "wall_floor_glass_removal_standard", 1 ] ],
"byproducts": [ { "item": "2x4", "count": [ 5, 10 ] }, { "item": "splinter", "count": [ 10, 20 ] } ],
"pre_terrain": "t_floor_waxed_y",
"post_terrain": "t_dirt"
},
{
"type": "construction",
"id": "constr_remove_waxed_floor",
"group": "remove_floor",
"//": "Prys up the floor boards, leaving dirt",
"category": "CONSTRUCT",
"required_skills": [ [ "fabrication", 3 ] ],
"time": "30 m",
"using": [ [ "wall_floor_glass_removal_standard", 1 ] ],
"byproducts": [ { "item": "2x4", "count": [ 5, 10 ] }, { "item": "splinter", "count": [ 10, 20 ] } ],
"pre_terrain": "t_floor_waxed",
"post_terrain": "t_dirt"
},
{
"type": "construction",
"id": "constr_remove_concrete_wall",
"group": "remove_concrete_wall",
"//": "Cuts a segment of concrete wall out very neatly, and then breaks it apart for disposal.",
"category": "CONSTRUCT",
"required_skills": [ [ "fabrication", 6 ] ],
"time": "120 m",
"using": [ [ "concrete_removal_standard", 1 ] ],
"byproducts": [ { "item": "rock", "count": [ 20, 44 ] } ],
"pre_terrain": "t_concrete_wall",
"post_terrain": "t_thconc_floor"
},
{
"type": "construction",
"id": "constr_remove_simple_concrete_wall",
"group": "remove_concrete_wall",
"//": "Cuts a segment of concrete wall out very neatly, and then breaks it apart for disposal.",
"category": "CONSTRUCT",
"required_skills": [ [ "fabrication", 6 ] ],
"time": "120 m",
"using": [ [ "concrete_removal_standard", 1 ] ],
"byproducts": [ { "item": "rock", "count": [ 20, 44 ] } ],
"pre_terrain": "t_sconc_wall",
"post_terrain": "t_thconc_floor"
},
{
"type": "construction",
"id": "constr_remove_halfway_concrete_wall",
"group": "remove_concrete_wall",
"//": "Cuts a segment of half complete concrete wall out very neatly, and then breaks it apart for disposal.",
"category": "CONSTRUCT",
"required_skills": [ [ "fabrication", 4 ] ],
"time": "50 m",
"using": [ [ "concrete_removal_standard", 1 ] ],
"byproducts": [ { "item": "rock", "count": [ 15, 30 ] } ],
"pre_terrain": "t_sconc_wall_halfway",
"post_terrain": "t_thconc_floor"
},
{
"type": "construction",
"id": "constr_remove_halfway_reinforced_concrete_wall",
"group": "remove_reinforced_concrete_wall",
"//": "Cuts a segment of half complete reinforced concrete wall out very neatly, and then breaks it apart for disposal.",
"category": "CONSTRUCT",
"required_skills": [ [ "fabrication", 5 ] ],
"time": "50 m",
"using": [ [ "concrete_removal_standard", 1 ], [ "metal_removal_standard", 1 ] ],
"byproducts": [
{ "item": "rock", "count": [ 8, 15 ] },
{ "item": "rebar", "count": [ 6, 12 ] },
{ "item": "scrap", "count": [ 15, 40 ] }
],
"pre_terrain": "t_strconc_wall_halfway",
"post_terrain": "t_thconc_floor"
},
{
"type": "construction",
"id": "constr_remove_reinforced_concrete_wall",
"group": "remove_reinforced_concrete_wall",
"//": "Cuts a segment of reinforced concrete wall out very neatly, and then breaks it apart for disposal.",
"category": "CONSTRUCT",
"required_skills": [ [ "fabrication", 5 ] ],
"time": "120 m",
"using": [ [ "concrete_removal_standard", 1 ], [ "metal_removal_standard", 1 ] ],
"byproducts": [
{ "item": "rock", "count": [ 15, 30 ] },
{ "item": "rebar", "count": [ 6, 12 ] },
{ "item": "scrap", "count": [ 15, 40 ] }
],
"pre_terrain": "t_strconc_wall",
"post_terrain": "t_thconc_floor"
},
{
"type": "construction",
"id": "constr_remove_wall_r",
"group": "remove_wall",
"//": "Cuts a segment of wall out very neatly, and then breaks it apart for disposal.",
"category": "CONSTRUCT",
"required_skills": [ [ "fabrication", 4 ] ],
"time": "90 m",
"using": [ [ "wall_floor_glass_removal_standard", 1 ] ],
"byproducts": "wall_deconstruction_results",
"pre_terrain": "t_wall_r",
"post_terrain": "t_floor"
},
{
"type": "construction",
"id": "constr_remove_wall_w",
"group": "remove_wall",
"//": "Cuts a segment of wall out very neatly, and then breaks it apart for disposal.",
"category": "CONSTRUCT",
"required_skills": [ [ "fabrication", 4 ] ],
"time": "90 m",
"using": [ [ "wall_floor_glass_removal_standard", 1 ] ],
"byproducts": "wall_deconstruction_results",
"pre_terrain": "t_wall_w",
"post_terrain": "t_floor"
},
{
"type": "construction",
"id": "constr_remove_wall_b",
"group": "remove_wall",
"//": "Cuts a segment of wall out very neatly, and then breaks it apart for disposal.",
"category": "CONSTRUCT",
"required_skills": [ [ "fabrication", 4 ] ],
"time": "90 m",
"using": [ [ "wall_floor_glass_removal_standard", 1 ] ],
"byproducts": "wall_deconstruction_results",
"pre_terrain": "t_wall_b",
"post_terrain": "t_floor"
},
{
"type": "construction",
"id": "constr_remove_wall_g",
"group": "remove_wall",
"//": "Cuts a segment of wall out very neatly, and then breaks it apart for disposal.",
"category": "CONSTRUCT",
"required_skills": [ [ "fabrication", 4 ] ],
"time": "90 m",
"using": [ [ "wall_floor_glass_removal_standard", 1 ] ],
"byproducts": "wall_deconstruction_results",
"pre_terrain": "t_wall_g",
"post_terrain": "t_floor"
},
{
"type": "construction",
"id": "constr_remove_wall_y",
"group": "remove_wall",
"//": "Cuts a segment of wall out very neatly, and then breaks it apart for disposal.",
"category": "CONSTRUCT",
"required_skills": [ [ "fabrication", 4 ] ],
"time": "90 m",
"using": [ [ "wall_floor_glass_removal_standard", 1 ] ],
"byproducts": "wall_deconstruction_results",
"pre_terrain": "t_wall_y",
"post_terrain": "t_floor"
},
{
"type": "construction",
"id": "constr_remove_wall_P",
"group": "remove_wall",
"//": "Cuts a segment of wall out very neatly, and then breaks it apart for disposal.",
"category": "CONSTRUCT",
"required_skills": [ [ "fabrication", 4 ] ],
"time": "90 m",
"using": [ [ "wall_floor_glass_removal_standard", 1 ] ],
"byproducts": "wall_deconstruction_results",
"pre_terrain": "t_wall_P",
"post_terrain": "t_floor"
},
{
"type": "construction",
"id": "constr_remove_wall_p",
"group": "remove_wall",
"//": "Cuts a segment of wall out very neatly, and then breaks it apart for disposal.",
"category": "CONSTRUCT",
"required_skills": [ [ "fabrication", 4 ] ],
"time": "90 m",
"using": [ [ "wall_floor_glass_removal_standard", 1 ] ],
"byproducts": "wall_deconstruction_results",
"pre_terrain": "t_wall_p",
"post_terrain": "t_floor"
},
{
"type": "construction",
"id": "constr_remove_rock_wall",
"group": "remove_rock_wall",
"//": "Cuts out a segment of stone wall, and then breaks it apart for disposal.",
"category": "CONSTRUCT",
"required_skills": [ [ "fabrication", 6 ], [ "survival", 2 ] ],
"time": "120 m",
"using": [ [ "concrete_removal_standard", 1 ] ],
"byproducts": [ { "item": "rock", "count": [ 15, 20 ] }, { "item": "pebble", "count": [ 20, 30 ] } ],
"pre_terrain": "t_rock_wall",
"post_terrain": "t_dirt"
},
{
"type": "construction",
"id": "constr_remove_rock_wall_halfway",
"group": "remove_rock_wall",
"//": "Cuts out a segment of half complete stone wall, and then breaks it apart for disposal.",
"category": "CONSTRUCT",
"required_skills": [ [ "fabrication", 6 ], [ "survival", 2 ] ],
"time": "120 m",
"using": [ [ "concrete_removal_standard", 1 ] ],
"byproducts": [ { "item": "rock", "count": [ 6, 10 ] }, { "item": "pebble", "count": [ 20, 30 ] } ],
"pre_terrain": "t_rock_wall_half",
"post_terrain": "t_dirt"
},
{
"type": "construction",
"id": "constr_remove_brick_wall",
"group": "remove_brick_wall",
"//": "Cuts a segment of brick wall out very neatly, and then breaks it apart for disposal.",
"category": "CONSTRUCT",
"required_skills": [ [ "fabrication", 6 ] ],
"time": "120 m",
"using": [ [ "concrete_removal_standard", 1 ] ],
"byproducts": [ { "item": "rock", "count": [ 4, 8 ] }, { "item": "brick", "count": [ 4, 12 ] } ],
"pre_terrain": "t_brick_wall",
"post_terrain": "t_thconc_floor"
},
{
"type": "construction",
"id": "constr_remove_brick_wall_halfway",
"group": "remove_brick_wall",
"//": "Cuts a segment of half complete brick wall out very neatly, and then breaks it apart for disposal.",
"category": "CONSTRUCT",
"required_skills": [ [ "fabrication", 6 ] ],
"time": "120 m",
"using": [ [ "concrete_removal_standard", 1 ] ],
"byproducts": [ { "item": "rock", "count": [ 4, 8 ] }, { "item": "brick", "count": [ 4, 8 ] } ],
"pre_terrain": "t_brick_wall_halfway",
"post_terrain": "t_thconc_floor"
},
{
"type": "construction",
"id": "constr_remove_adobe_brick_wall",
"group": "remove_brick_wall",
"//": "Cuts a segment of adobe brick wall out very neatly, and then breaks it apart for disposal.",
"category": "CONSTRUCT",
"required_skills": [ [ "fabrication", 6 ] ],
"time": "120 m",
"using": [ [ "concrete_removal_standard", 1 ] ],
"byproducts": [ { "item": "material_soil", "count": [ 8, 20 ] }, { "item": "adobe_brick", "count": [ 4, 12 ] } ],
"pre_terrain": "t_adobe_brick_wall",
"post_terrain": "t_thconc_floor"
},
{
"type": "construction",
"id": "constr_remove_adobe_brick_wall_halfway",
"group": "remove_brick_wall",
"//": "Cuts a segment of half complete adobe brick wall out very neatly, and then breaks it apart for disposal.",
"category": "CONSTRUCT",
"required_skills": [ [ "fabrication", 6 ] ],
"time": "120 m",
"using": [ [ "concrete_removal_standard", 1 ] ],
"byproducts": [ { "item": "material_soil", "count": [ 8, 20 ] }, { "item": "adobe_brick", "count": [ 4, 8 ] } ],
"pre_terrain": "t_adobe_brick_wall_halfway",
"post_terrain": "t_thconc_floor"
},
{
"type": "construction",
"id": "constr_remove_wooden_wall",
"group": "remove_wooden_wall",
"//": "Cuts a segment of wooden wall out very neatly, and then breaks it apart for disposal.",
"category": "CONSTRUCT",
"required_skills": [ [ "fabrication", 5 ] ],
"time": "90 m",
"using": [ [ "wall_floor_glass_removal_standard", 1 ] ],
"byproducts": "wall_deconstruction_results",
"pre_terrain": "t_wall_wood",
"post_terrain": "t_floor"
},
{
"type": "construction",
"id": "constr_remove_wooden_wall_halfway",
"group": "remove_wooden_wall",
"//": "Cuts a segment of half complete wooden wall out very neatly, and then breaks it apart for disposal.",
"category": "CONSTRUCT",
"required_skills": [ [ "fabrication", 5 ] ],
"time": "40 m",
"using": [ [ "wall_floor_glass_removal_standard", 1 ] ],
"byproducts": [
{ "item": "nail", "charges": [ 2, 10 ] },
{ "item": "splinter", "count": [ 0, 2 ] },
{ "item": "2x4", "count": [ 1, 5 ] }
],
"pre_terrain": "t_wall_half",
"post_terrain": "t_floor"
},
{
"type": "construction",
"id": "constr_remove_log_wall",
"group": "remove_wooden_wall",
"//": "Cuts a segment of log wall out very neatly, and then breaks it apart for disposal.",
"category": "CONSTRUCT",
"required_skills": [ [ "fabrication", 5 ] ],
"time": "90 m",
"using": [ [ "wall_floor_glass_removal_standard", 1 ] ],
"byproducts": [ { "item": "nail", "charges": [ 5, 10 ] }, { "item": "splinter", "count": [ 20, 40 ] } ],
"pre_terrain": "t_wall_log",
"post_terrain": "t_dirt"
},
{
"type": "construction",
"id": "constr_remove_log_wall_half",
"group": "remove_wooden_wall",
"//": "Cuts a segment of half complete log wall out very neatly, and then breaks it apart for disposal.",
"category": "CONSTRUCT",
"required_skills": [ [ "fabrication", 5 ] ],
"time": "30 m",
"using": [ [ "wall_floor_glass_removal_standard", 1 ] ],
"byproducts": [ { "item": "nail", "charges": [ 5, 10 ] }, { "item": "splinter", "count": [ 20, 40 ] } ],
"pre_terrain": "t_wall_log_half",
"post_terrain": "t_dirt"
},
{
"type": "construction",
"id": "constr_remove_wall",
"group": "remove_wall",
"//": "Cuts a segment of wall out very neatly, and then breaks it apart for disposal.",
"category": "CONSTRUCT",
"required_skills": [ [ "fabrication", 4 ] ],
"time": "120 m",
"using": [ [ "wall_floor_glass_removal_standard", 1 ] ],
"byproducts": "wall_deconstruction_results",
"pre_terrain": "t_wall",
"post_terrain": "t_floor"
},
{
"type": "construction",
"id": "constr_remove_sidewalk",
"group": "remove_roadway",
"//": "Breaks through the sidewalk, leaving a shallow pit",
"category": "CONSTRUCT",
"required_skills": [ [ "fabrication", 6 ] ],
"time": "120 m",
"using": [ [ "road_removal_standard", 1 ] ],
"byproducts": "road_deconstruction_results",
"pre_terrain": "t_sidewalk",
"post_terrain": "t_dirt"
},
{
"type": "construction",
"id": "constr_remove_pavement",
"group": "remove_roadway",
"//": "Breaks through the pavement, leaving a shallow pit",
"category": "CONSTRUCT",
"required_skills": [ [ "fabrication", 6 ] ],
"time": "30 m",
"using": [ [ "road_removal_standard", 1 ] ],
"byproducts": "road_deconstruction_results",
"pre_terrain": "t_pavement",
"post_terrain": "t_dirt"
},
{
"type": "construction",
"id": "constr_remove_pavement_y",
"group": "remove_roadway",
"//": "Breaks through the pavement, leaving a shallow pit",
"category": "CONSTRUCT",
"required_skills": [ [ "fabrication", 6 ] ],
"time": "30 m",
"using": [ [ "road_removal_standard", 1 ] ],
"byproducts": "road_deconstruction_results",
"pre_terrain": "t_pavement_y",
"post_terrain": "t_dirt"
},
{
"type": "construction",
"id": "constr_remove_zebra",
"group": "remove_roadway",
"//": "Breaks through the pavement, leaving a shallow pit",
"category": "CONSTRUCT",
"required_skills": [ [ "fabrication", 6 ] ],
"time": "30 m",
"using": [ [ "road_removal_standard", 1 ] ],
"byproducts": "road_deconstruction_results",
"pre_terrain": "t_zebra",
"post_terrain": "t_dirt"
},
{
"type": "construction",
"id": "constr_remove_metal_door_frame",
"group": "remove_metal_door",
"//": "Removes a metal door frame",
"category": "CONSTRUCT",
"required_skills": [ [ "fabrication", 2 ] ],
"time": "15 m",
"using": [ [ "metal_removal_standard", 1 ] ],
"byproducts": "metal_door_deconstruction_results",
"pre_terrain": "t_mdoor_frame",
"post_terrain": "t_floor"
},
{
"type": "construction",
"id": "constr_remove_metal_door",
"group": "remove_metal_door",
"//": "Removes a metal door",
"category": "CONSTRUCT",
"required_skills": [ [ "fabrication", 4 ] ],
"time": "10 m",
"using": [ [ "metal_removal_standard", 1 ] ],
"byproducts": "metal_door_deconstruction_results",
"pre_terrain": "t_door_metal_c",
"post_terrain": "t_mdoor_frame"
},
{
"type": "construction",
"id": "constr_remove_metal_door_peephole",
"group": "remove_metal_door",
"//": "Removes a metal door with a peephole",
"category": "CONSTRUCT",
"required_skills": [ [ "fabrication", 4 ] ],
"time": "10 m",
"using": [ [ "metal_removal_standard", 1 ] ],
"byproducts": [
{ "item": "scrap", "count": [ 15, 30 ] },
{ "item": "sheet_metal", "count": [ 4, 8 ] },
{ "item": "peephole", "count": [ 0, 1 ] },
{ "item": "hinge", "count": [ 0, 1 ] }
],
"pre_terrain": "t_door_metal_c_peep",
"post_terrain": "t_mdoor_frame"
},
{
"type": "construction",
"id": "constr_remove_metal_door_locked",
"group": "remove_metal_door",
"//": "Removes a metal door",
"category": "CONSTRUCT",
"required_skills": [ [ "fabrication", 4 ] ],
"time": "10 m",
"using": [ [ "metal_removal_standard", 1 ] ],
"byproducts": "metal_door_deconstruction_results",
"pre_terrain": "t_door_metal_locked",
"post_terrain": "t_mdoor_frame"
},
{
"type": "construction",
"id": "constr_remove_metal_door_lab",
"group": "remove_metal_door",
"//": "Removes a metal door",
"category": "CONSTRUCT",
"required_skills": [ [ "fabrication", 4 ] ],
"time": "10 m",
"using": [ [ "metal_removal_standard", 1 ] ],
"byproducts": "metal_door_deconstruction_results",
"pre_terrain": "t_door_metal_lab_c",
"post_terrain": "t_mdoor_frame"
},
{
"type": "construction",
"id": "constr_remove_reb_cage",
"group": "remove_rebar_cage",
"//": "Remove a Rebar cage",
"category": "CONSTRUCT",
"required_skills": [ [ "fabrication", 3 ] ],
"time": "20 m",
"using": [ [ "metal_removal_standard", 1 ] ],
"byproducts": [ { "item": "rebar", "count": [ 8, 16 ] } ],
"pre_terrain": "t_reb_cage",
"post_terrain": "t_dirt"
},
{
"type": "construction",
"id": "constr_remove_reb_cage_floor",
"group": "remove_rebar_cage",
"//": "Remove a Rebar floor cage",
"category": "CONSTRUCT",
"required_skills": [ [ "fabrication", 3 ] ],
"time": "20 m",
"using": [ [ "metal_removal_standard", 1 ] ],
"byproducts": [
{ "item": "rebar", "count": [ 6, 12 ] },
{ "item": "2x4", "count": [ 6, 12 ] },
{ "item": "pipe", "count": [ 2, 4 ] },
{ "item": "scrap", "count": [ 5, 15 ] }
],
"pre_terrain": "t_ov_reb_cage",
"post_terrain": "t_dirt"
},
{
"type": "construction",
"id": "constr_remove_column_halfway",
"group": "remove_concrete_column",
"//": "Variant 1: foundation",
"category": "CONSTRUCT",
"required_skills": [ [ "fabrication", 4 ] ],
"time": "40 m",
"using": [ [ "concrete_removal_standard", 1 ], [ "metal_removal_standard", 1 ] ],
"byproducts": [ { "item": "rebar", "count": [ 8, 16 ] }, { "item": "rock", "count": [ 5, 10 ] } ],
"pre_terrain": "t_column_halfway",
"post_terrain": "t_thconc_floor"
},
{
"type": "construction",
"id": "constr_remove_column",
"group": "remove_concrete_column",
"//": "Variant 2: Finished column",
"category": "CONSTRUCT",
"required_skills": [ [ "fabrication", 4 ] ],
"time": "70 m",
"using": [ [ "concrete_removal_standard", 1 ], [ "metal_removal_standard", 1 ] ],
"byproducts": [ { "item": "rebar", "count": [ 8, 16 ] }, { "item": "rock", "count": [ 15, 30 ] } ],
"pre_terrain": "t_column",
"post_terrain": "t_thconc_floor"
},
{
"type": "construction",
"id": "constr_remove_reinforced_glass",
"group": "remove_glass_wall",
"//": "Removes a reinforced glass wall",
"category": "CONSTRUCT",
"required_skills": [ [ "fabrication", 4 ] ],
"time": "10 m",
"using": [ [ "wall_floor_glass_removal_standard", 1 ] ],
"byproducts": [ { "item": "reinforced_glass_sheet", "count": [ 1, 1 ] } ],
"pre_terrain": "t_reinforced_glass",
"post_terrain": "t_m_frame"
},
{
"type": "construction",
"id": "constr_remove_glass_wall",
"group": "remove_glass_wall",
"//": "Removes a glass wall",
"category": "CONSTRUCT",
"required_skills": [ [ "fabrication", 4 ] ],
"time": "10 m",
"using": [ [ "wall_floor_glass_removal_standard", 1 ] ],
"byproducts": [ { "item": "glass_sheet", "count": [ 1, 1 ] } ],
"pre_terrain": "t_wall_glass",
"post_terrain": "t_floor"
},
{
"type": "construction",
"id": "constr_remove_glass_door",
"group": "remove_glass_door",
"//": "Removes a glass door",
"category": "CONSTRUCT",
"required_skills": [ [ "fabrication", 4 ] ],
"time": "10 m",
"using": [ [ "wall_floor_glass_removal_standard", 1 ] ],
"byproducts": [ { "item": "glass_sheet", "count": [ 1, 2 ] } ],
"pre_terrain": "t_door_glass_c",
"post_terrain": "t_floor"
},
{
"type": "construction",
"id": "constr_remove_glass_frosted_door",
"group": "remove_glass_door",
"//": "Removes a frosted glass door",
"category": "CONSTRUCT",
"required_skills": [ [ "fabrication", 4 ] ],
"time": "10 m",
"using": [ [ "wall_floor_glass_removal_standard", 1 ] ],
"byproducts": [ { "item": "glass_sheet", "count": [ 1, 2 ] } ],
"pre_terrain": "t_door_glass_frosted_c",
"post_terrain": "t_floor"
},
{
"type": "construction",
"id": "constr_remove_glass_door_lab",
"group": "remove_glass_door",
"//": "Removes a lab glass door",
"category": "CONSTRUCT",
"required_skills": [ [ "fabrication", 4 ] ],
"time": "10 m",
"using": [ [ "wall_floor_glass_removal_standard", 1 ] ],
"byproducts": [ { "item": "glass_sheet", "count": [ 1, 2 ] } ],
"pre_terrain": "t_door_glass_lab_c",
"post_terrain": "t_floor"
},
{
"type": "construction",
"id": "constr_remove_glass_frosted_door_lab",
"group": "remove_glass_door",
"//": "Removes a frosted lab glass door",
"category": "CONSTRUCT",
"required_skills": [ [ "fabrication", 4 ] ],
"time": "10 m",
"using": [ [ "wall_floor_glass_removal_standard", 1 ] ],
"byproducts": [ { "item": "glass_sheet", "count": [ 1, 2 ] } ],
"pre_terrain": "t_door_glass_frosted_lab_c",
"post_terrain": "t_floor"
},
{
"type": "construction",
"id": "constr_remove_reinforced_glass_door",
"group": "remove_glass_door",
"//": "Removes a reinforced glass door",
"category": "CONSTRUCT",
"required_skills": [ [ "fabrication", 4 ] ],
"time": "10 m",
"using": [ [ "wall_floor_glass_removal_standard", 1 ] ],
"byproducts": [ { "item": "reinforced_glass_sheet", "count": [ 1, 2 ] } ],
"pre_terrain": "t_reinforced_door_glass_c",
"post_terrain": "t_floor"
},
{
"type": "construction",
"id": "constr_remove_reinforced_glass_door_lab",
"group": "remove_glass_door",
"//": "Removes a reinforced lab glass door",
"category": "CONSTRUCT",
"required_skills": [ [ "fabrication", 4 ] ],
"time": "10 m",
"using": [ [ "wall_floor_glass_removal_standard", 1 ] ],
"byproducts": [ { "item": "reinforced_glass_sheet", "count": [ 1, 2 ] } ],
"pre_terrain": "t_reinforced_door_glass_lab_c",
"post_terrain": "t_floor"
},
{
"type": "construction",
"id": "constr_remove_object_fireplace",
"group": "advanced_object_deconstruction",
"//": "Breaks a fireplace apart giving you back most of the rocks used in its construction.",
"category": "CONSTRUCT",
"required_skills": [ [ "fabrication", 2 ] ],
"time": "90 m",
"using": [ [ "object_deconstruction_advanced", 1 ] ],
"byproducts": [ { "item": "rock", "count": [ 35, 40 ] } ],
"pre_terrain": "f_fireplace",
"post_terrain": "f_null"
}
]
-102
View File
@@ -14,36 +14,12 @@
"category": "MEDICAL",
"strength": 1
},
{
"type": "dream",
"messages": [ "You have a strange dream about rabbits.", "Your dreams give you a strange furry feeling." ],
"category": "RABBIT",
"strength": 1
},
{
"type": "dream",
"messages": [ "You have a strange dream about birds.", "Your dreams give you a strange feathered feeling." ],
"category": "BIRD",
"strength": 1
},
{
"type": "dream",
"messages": [
"You have a strange dream about snails and slugs in your garden.",
"Your dreams leave you feeling like something is stuck to you."
],
"category": "GASTROPOD",
"strength": 1
},
{
"type": "dream",
"messages": [
"You have a strange dream about frogs in a pond near your childhood home.",
"Your dreams contain a croaking concerto."
],
"category": "BATRACHIAN",
"strength": 1
},
{
"type": "dream",
"messages": [ "You have a strange dream about fish.", "Your dreams give you a strange wet, scaly feeling." ],
@@ -186,33 +162,6 @@
"category": "MEDICAL",
"strength": 2
},
{
"type": "dream",
"messages": [
"You have a disturbing dream about running from dogs.",
"While dreaming, you see a distinctively rabbit-like reflection of yourself."
],
"category": "RABBIT",
"strength": 2
},
{
"type": "dream",
"messages": [
"You have a strange dream of carrying a house on your back.",
"While dreaming, you see yourself weighted down under massive backpack/tent upon your back, as you pass by a mirrored surface."
],
"category": "GASTROPOD",
"strength": 2
},
{
"type": "dream",
"messages": [
"You have a disturbing dream of eating insects.",
"While dreaming, you see yourself in a pond, your face has widened and is covered in mucus."
],
"category": "BATRACHIAN",
"strength": 2
},
{
"type": "dream",
"messages": [
@@ -377,15 +326,6 @@
"category": "LIZARD",
"strength": 3
},
{
"type": "dream",
"messages": [
"You have a strange dream about being the Easter Bunny.",
"You have a comforting and warm dream of living as a rabbit."
],
"category": "RABBIT",
"strength": 3
},
{
"type": "dream",
"messages": [
@@ -413,24 +353,6 @@
"category": "FISH",
"strength": 3
},
{
"type": "dream",
"messages": [
"You dream of leaping from the water to catch your prey.",
"You wake up with your legs pumping as you hop along in your sleep."
],
"category": "BATRACHIAN",
"strength": 3
},
{
"type": "dream",
"messages": [
"You dream of crawling along the world when you realize you can see three hundred and sixty degrees around yourself.",
"You dream of curling up inside a shell to sleep."
],
"category": "GASTROPOD",
"strength": 3
},
{
"type": "dream",
"messages": [
@@ -608,12 +530,6 @@
"category": "BIRD",
"strength": 4
},
{
"type": "dream",
"messages": [ "Will your burrow be warm enough for the family in winter?", "You dream of outrunning the apocalypse." ],
"category": "RABBIT",
"strength": 4
},
{
"type": "dream",
"messages": [
@@ -755,24 +671,6 @@
"category": "ELFA",
"strength": 4
},
{
"type": "dream",
"messages": [
"There is so much that you never imagined, the slime, the legs, and eyestalks but the shell was worth it.",
"You'll always be home, once you take this last step."
],
"category": "GASTROPOD",
"strength": 4
},
{
"type": "dream",
"messages": [
"You'd never considered that frogs were generalist predators before this point in your life…",
"On land and in the water, you control all that you can reach, and your tongue has quite the reach."
],
"category": "BATRACHIAN",
"strength": 4
},
{
"type": "dream",
"messages": [ "Your body flows slightly faster than you expected… oh, just a dream.", "FIGHT. FEED. FORWARD." ],
+12 -333
View File
@@ -1,51 +1,19 @@
[
{
"type": "effect_on_condition",
"id": "scenario_bad_day",
"eoc_type": "SCENARIO_SPECIFIC",
"effect": [
{ "u_add_effect": "flu", "intensity": 1, "duration": "1000 minutes" },
{ "u_add_effect": "drunk", "intensity": 1, "duration": "270 minutes" },
{
"u_add_morale": "morale_feeling_bad",
"bonus": -100,
"max_bonus": -100,
"duration": "50 minutes",
"decay_start": "50 minutes"
}
]
},
{
"type": "effect_on_condition",
"id": "scenario_infected",
"eoc_type": "SCENARIO_SPECIFIC",
"effect": [
{ "u_add_effect": "infected", "intensity": 1, "duration": "PERMANENT", "target_part": "RANDOM" },
{ "assign_mission": "MISSION_INFECTED_START_FIND_ANTIBIOTICS" }
]
},
{
"type": "effect_on_condition",
"id": "scenario_fungal_infection",
"eoc_type": "SCENARIO_SPECIFIC",
"effect": [ { "u_add_effect": "fungus", "intensity": 1, "duration": "PERMANENT", "target_part": "RANDOM" } ]
},
{
"type": "effect_on_condition",
"id": "thunder",
"recurrence_min": 1,
"recurrence_max": 1,
"global": true,
"condition": {
"and": [
{ "or": [ { "is_weather": "thunder" }, { "is_weather": "lightning" } ] },
{ "one_in_chance": 50 },
{ "compare_int": [ { "u_val": "pos_z" }, { "const": 0 } ], "op": ">=" }
{ "u_is_height": 0 }
]
},
"deactivate_condition": { "not": { "or": [ { "is_weather": "thunder" }, { "is_weather": "lightning" } ] } },
"effect": [
{ "u_message": "You hear a distant rumble of thunder.", "sound": true },
{ "message": "You hear a distant rumble of thunder.", "sound": true },
{ "sound_effect": "thunder_far", "outdoor_event": true, "id": "environment" }
]
},
@@ -54,20 +22,12 @@
"id": "lightning",
"recurrence_min": 1,
"recurrence_max": 1,
"global": true,
"condition": {
"and": [
{ "is_weather": "lightning" },
{ "one_in_chance": 600 },
{ "compare_int": [ { "u_val": "pos_z" }, { "const": 0 } ], "op": ">=" }
]
},
"condition": { "and": [ { "is_weather": "lightning" }, { "one_in_chance": 600 }, { "u_is_height": 0 } ] },
"deactivate_condition": { "not": { "is_weather": "lightning" } },
"effect": [
{ "u_message": "A flash of lightning illuminates your surroundings!" },
{ "message": "A flash of lightning illuminates your surroundings!" },
{ "sound_effect": "thunder_near", "id": "environment" },
"lightning",
{ "custom_light_level": 100, "length_min": "1 seconds", "length_max": "1 seconds" }
"lightning"
]
},
{
@@ -75,48 +35,33 @@
"id": "acid_drizzle",
"recurrence_min": 1,
"recurrence_max": 1,
"global": true,
"run_for_npcs": true,
"condition": {
"and": [
{ "is_weather": "acid_drizzle" },
"u_is_outside",
{ "compare_int": [ { "u_val": "pain" }, { "const": 30 } ], "op": "<" }
]
},
"condition": { "and": [ { "is_weather": "acid_drizzle" }, "u_is_outside", { "not": { "u_has_pain": 30 } } ] },
"deactivate_condition": { "not": { "is_weather": "acid_drizzle" } },
"effect": [
{ "u_message": "The acid rain stings, but is mostly harmless for now…" },
{ "arithmetic": [ { "u_val": "pain" }, "++" ] }
]
"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,
"global": true,
"run_for_npcs": true,
"condition": {
"and": [
{ "is_weather": "acid_rain" },
"u_is_outside",
{ "compare_int": [ { "u_val": "pain" }, { "const": 100 } ], "op": "<" },
{ "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": [ { "u_message": "The acid rain burns!" }, { "arithmetic": [ { "u_val": "pain" }, "+=", { "const": 3 } ] } ]
"effect": [ { "message": "The acid rain burns!" }, { "u_mod_pain": 3 } ]
},
{
"type": "effect_on_condition",
"id": "snow",
"recurrence_min": 6,
"recurrence_max": 6,
"global": true,
"run_for_npcs": true,
"condition": { "and": [ { "is_weather": "snowing" }, "u_is_outside" ] },
"deactivate_condition": { "not": { "is_weather": "snowing" } },
"effect": [ { "u_add_wet": 10 } ]
@@ -126,8 +71,6 @@
"id": "snowstorm",
"recurrence_min": 6,
"recurrence_max": 6,
"global": true,
"run_for_npcs": true,
"condition": { "and": [ { "is_weather": "snowstorm" }, "u_is_outside" ] },
"deactivate_condition": { "not": { "is_weather": "snowstorm" } },
"effect": [ { "u_add_wet": 40 } ]
@@ -137,276 +80,12 @@
"id": "bio_drain",
"recurrence_min": "30 minutes",
"recurrence_max": "1 hours 30 minutes",
"condition": {
"and": [ { "u_has_bionics": "bio_drain" }, { "compare_int": [ { "u_val": "power" }, { "power": "25 kJ" } ], "op": ">=" } ]
},
"condition": { "and": [ { "u_has_bionics": "bio_drain" }, { "u_has_power": "24 kJ" } ] },
"deactivate_condition": { "not": { "u_has_bionics": "bio_drain" } },
"effect": [
{ "u_message": "Your batteries discharge slightly.", "type": "bad" },
{ "message": "Your batteries discharge slightly.", "type": "bad" },
{ "sound_effect": "elec_crackle_low", "id": "bionics", "volume": 100 },
{ "arithmetic": [ { "u_val": "power" }, "-=", { "power": "25 kJ" } ] }
{ "u_add_power": "-25kJ" }
]
},
{
"type": "effect_on_condition",
"id": "EOC_SLEEP",
"effect": [ { "u_message": "You feel very sleepy…" }, { "arithmetic": [ { "u_val": "fatigue" }, "+=", { "const": 40 } ] } ]
},
{
"type": "effect_on_condition",
"id": "EOC_MINOR_SLEEP",
"effect": [ { "u_message": "You feel sleepy…" }, { "arithmetic": [ { "u_val": "fatigue" }, "+=", { "const": 20 } ] } ]
},
{
"type": "effect_on_condition",
"id": "ambient_subway",
"recurrence_min": "1 hours",
"recurrence_max": "2 hours",
"global": true,
"condition": { "or": [ { "u_at_om_location": "subway_ns" }, { "u_at_om_location": "subway_ew" } ] },
"effect": [ { "u_message": "<AMBIENT_SUBWAY>", "snippet": true, "sound": true } ]
},
{
"type": "effect_on_condition",
"id": "ambient_lab_subway",
"recurrence_min": "1 hours",
"recurrence_max": "2 hours",
"global": true,
"condition": { "or": [ { "u_at_om_location": "lab_subway_ns" }, { "u_at_om_location": "lab_subway_ew" } ] },
"effect": [ { "u_message": "AMBIENT_LAB_SUBWAY", "snippet": true, "sound": true } ]
},
{
"type": "effect_on_condition",
"id": "night_messages",
"recurrence_min": "4 hours",
"recurrence_max": "8 hours",
"condition": {
"and": [
{ "one_in_chance": 3 },
{ "not": "is_day" },
"u_can_see",
{ "is_weather": "clear" },
{ "not": { "days_since_cataclysm": 14 } },
"u_is_outside"
]
},
"deactivate_condition": { "days_since_cataclysm": 14 },
"effect": [ { "u_message": "PORTAL_STORM_NIGHT_MESSAGES_1", "snippet": true } ]
},
{
"type": "effect_on_condition",
"id": "night_messages2",
"recurrence_min": "4 hours",
"recurrence_max": "8 hours",
"condition": {
"and": [
{ "one_in_chance": 3 },
{ "not": "is_day" },
"u_can_see",
{ "is_weather": "clear" },
{ "days_since_cataclysm": 14 },
{ "not": { "days_since_cataclysm": 50 } },
"u_is_outside"
]
},
"deactivate_condition": { "days_since_cataclysm": 50 },
"effect": [ { "u_message": "PORTAL_STORM_NIGHT_MESSAGES_2", "snippet": true } ]
},
{
"type": "effect_on_condition",
"id": "night_messages3",
"recurrence_min": "4 hours",
"recurrence_max": "8 hours",
"condition": {
"and": [
{ "one_in_chance": 3 },
{ "not": "is_day" },
"u_can_see",
{ "is_weather": "clear" },
{ "days_since_cataclysm": 50 },
"u_is_outside"
]
},
"effect": [ { "u_message": "PORTAL_STORM_NIGHT_MESSAGES_3", "snippet": true } ]
},
{
"type": "effect_on_condition",
"id": "eoc_robofac_surveillance",
"condition": { "or": [ { "u_has_trait": "PROF_HUB01_ANCILLIARY" }, { "u_has_effect": "robofac_surveillance" } ] },
"deactivate_condition": { "not": { "or": [ { "u_has_trait": "PROF_HUB01_ANCILLIARY" }, { "u_has_effect": "robofac_surveillance" } ] } },
"effect": [
{
"u_set_spawn_monster": "mon_robofac_camspy",
"real_count": 1,
"min_radius": 15,
"max_radius": 40,
"outdoor_only": true
},
{
"set_queue_effect_on_condition": [ "eoc_robofac_surveillance" ],
"time_in_future_min": "1 days",
"time_in_future_max": "7 days"
}
]
},
{
"type": "effect_on_condition",
"id": "bio_trip",
"recurrence_min": "25 minutes",
"recurrence_max": "1 hours 15 minutes",
"condition": {
"and": [
{ "u_has_bionics": "bio_trip" },
{ "not": { "or": [ { "u_has_effect": "visuals" }, { "u_has_effect": "narcosis" } ] } }
]
},
"deactivate_condition": { "not": { "u_has_bionics": "bio_trip" } },
"effect": [
{ "u_message": "Your vision pixelates!", "type": "bad" },
{ "sound_effect": "pixelated", "id": "bionics", "volume": 100 },
{ "u_add_effect": "visuals", "duration": "10 minutes" }
]
},
{
"type": "effect_on_condition",
"id": "mut_eyestalk",
"recurrence_min": "2 hours 15 minutes",
"recurrence_max": "10 hours 15 minutes",
"condition": {
"and": [
{ "u_has_trait": "EYESTALKS1" },
{ "not": { "or": [ { "u_has_effect": "visuals" }, { "u_has_effect": "narcosis" } ] } }
]
},
"deactivate_condition": { "not": { "u_has_trait": "EYESTALKS1" } },
"effect": [
{ "u_message": "Your vision inverts!", "type": "bad" },
{ "sound_effect": "pixelated", "id": "bionics", "volume": 50 },
{ "u_add_effect": "visuals", "duration": "10 minutes" }
]
},
{
"type": "effect_on_condition",
"id": "bio_spasm",
"recurrence_min": "2 hours 30 minutes",
"recurrence_max": "7 hours 30 minutes",
"condition": {
"and": [
{ "u_has_bionics": "bio_spasm" },
{ "not": { "or": [ { "u_has_effect": "downed" }, { "u_has_effect": "narcosis" } ] } }
]
},
"deactivate_condition": { "not": { "u_has_bionics": "bio_spasm" } },
"effect": [
{ "u_message": "Your malfunctioning bionic causes you to spasm and fall to the floor!", "type": "bad" },
{ "sound_effect": "elec_crackle_high", "id": "bionics", "volume": 100 },
{ "arithmetic": [ { "u_val": "pain" }, "++" ] },
{ "u_add_effect": "stunned", "duration": 1 },
{ "u_add_effect": "downed", "duration": 1, "force": true }
]
},
{
"type": "effect_on_condition",
"id": "bio_shakes",
"recurrence_min": "1 hours",
"recurrence_max": "3 hours",
"condition": {
"and": [ { "u_has_bionics": "bio_shakes" }, { "compare_int": [ { "u_val": "power" }, { "power": "25 kJ" } ], "op": ">=" } ]
},
"deactivate_condition": { "not": { "u_has_bionics": "bio_shakes" } },
"effect": [
{ "u_message": "Your bionics short-circuit, causing you to tremble and shiver.", "type": "bad" },
{ "sound_effect": "elec_crackle_med", "id": "bionics", "volume": 100 },
{ "u_add_effect": "shakes", "duration": "5 minutes" },
{ "arithmetic": [ { "u_val": "power" }, "-=", { "power": "25kJ" } ] }
]
},
{
"type": "effect_on_condition",
"id": "bio_glowy",
"recurrence_min": "25 minutes",
"recurrence_max": "1 hours 15 minutes",
"condition": {
"and": [
{ "u_has_bionics": "bio_glowy" },
{ "not": { "u_has_effect": "glowy_led" } },
{ "compare_int": [ { "u_val": "power" }, { "power": "1 kJ" } ], "op": ">=" }
]
},
"deactivate_condition": { "not": { "u_has_bionics": "bio_glowy" } },
"effect": [
{ "u_message": "Your malfunctioning bionic starts to glow!", "type": "bad" },
{ "u_add_effect": "glowy_led", "duration": "5 minutes" },
{ "arithmetic": [ { "u_val": "power" }, "-=", { "power": "1kJ" } ] }
]
},
{
"type": "effect_on_condition",
"id": "bio_sleepy",
"recurrence_min": "25 minutes",
"recurrence_max": "1 hours 15 minutes",
"condition": { "and": [ { "u_has_bionics": "bio_sleepy" }, { "not": { "u_has_effect": "sleep" } } ] },
"deactivate_condition": { "not": { "u_has_bionics": "bio_sleepy" } },
"effect": [ { "arithmetic": [ { "u_val": "fatigue" }, "++" ] } ]
},
{
"type": "effect_on_condition",
"id": "bio_itchy",
"recurrence_min": "25 minutes",
"recurrence_max": "1 hours 15 minutes",
"condition": { "and": [ { "u_has_bionics": "bio_itchy" }, { "not": { "u_has_effect": "formication" } } ] },
"deactivate_condition": { "not": { "u_has_bionics": "bio_itchy" } },
"effect": [
{ "u_message": "Your malfunctioning bionic itches!", "type": "bad" },
{ "u_add_effect": "formication", "duration": "10 minutes", "target_part": "RANDOM" }
]
},
{
"type": "effect_on_condition",
"id": "bio_noise",
"recurrence_min": "30 minutes",
"recurrence_max": "1 hours 30 minutes",
"condition": { "and": [ { "u_has_bionics": "bio_noise" }, { "not": { "u_has_effect": "narcosis" } } ] },
"deactivate_condition": { "not": { "u_has_bionics": "bio_noise" } },
"effect": [
{ "u_make_sound": "Crackle!", "volume": 60, "type": "movement" },
{
"set_queue_effect_on_condition": [
{
"id": "bio_noise_hearing",
"condition": { "not": "u_is_deaf" },
"effect": [
{ "u_message": "Your faulty bionic emits a crackle of noise!", "type": "bad" },
{ "sound_effect": "elec_blast", "id": "bionics", "volume": 100 }
]
},
{
"id": "bio_noise_deaf",
"condition": "u_is_deaf",
"effect": [
{ "u_message": "You feel your faulty bionic shuddering.", "type": "bad" },
{ "sound_effect": "elec_blast_muffled", "id": "bionics", "volume": 100 }
]
}
]
}
]
},
{
"type": "effect_on_condition",
"id": "bio_leaky",
"recurrence_min": "3 minutes",
"recurrence_max": "9 minutes",
"condition": { "u_has_bionics": "bio_leaky" },
"deactivate_condition": { "not": { "u_has_bionics": "bio_leaky" } },
"effect": [ { "u_mod_healthy": -1, "cap": -200 } ]
},
{
"id": "EOC_MIGO_INTEREST_INCREASE",
"type": "effect_on_condition",
"recurrence_min": "7 days",
"recurrence_max": "14 days",
"condition": { "not": { "one_in_chance": 4 } },
"effect": [ { "u_adjust_var": "migo_interest", "type": "migo_interest", "context": "interest", "adjustment": 1 } ]
}
]
+68 -124
View File
@@ -213,18 +213,6 @@
"name": [ "Has Saddle" ],
"desc": [ "AI tag used for critters wearing a saddle. This is a bug if you have it." ]
},
{
"type": "effect_type",
"id": "leashed",
"name": [ "Has Leash" ],
"desc": [ "AI tag used for critters wearing a leash. This is a bug if you have it." ]
},
{
"type": "effect_type",
"id": "led_by_leash",
"name": [ "Being Led By Leash" ],
"desc": [ "AI tag used for critters forced to follow using a leash. This is a bug if you have it." ]
},
{
"type": "effect_type",
"id": "tied",
@@ -250,29 +238,12 @@
"name": [ "Bounced" ],
"desc": [ "AI tag used for bouncing ammo targeting. This is a bug if you have it." ]
},
{
"type": "effect_type",
"id": "frenzy",
"name": [ "Frenzied" ],
"desc": [ "Monster effect used to buff allies. This is a bug if you have it." ],
"max_intensity": 5,
"int_add_val": 1,
"max_duration": "15 m",
"base_mods": { "speed_mod": [ 10 ], "hit_mod": [ 1 ], "dodge_mod": [ 1 ] },
"scaling_mods": { "speed_mod": [ 10 ], "hit_mod": [ 1 ], "dodge_mod": [ 0.5 ] }
},
{
"type": "effect_type",
"id": "pushed",
"name": [ "Pushed" ],
"desc": [ "AI tag used for monsters pushing each other. This is a bug if you have it." ]
},
{
"type": "effect_type",
"id": "worked_on",
"name": [ "Worked On" ],
"desc": [ "AI tag used for robots being disabled. This is a bug if you have it." ]
},
{
"type": "effect_type",
"id": "venom_player1",
@@ -306,7 +277,6 @@
"desc": [ "You're knocked to the ground. You have to get up before you can move." ],
"apply_message": "You're knocked to the floor!",
"rating": "bad",
"resist_traits": [ "GASTROPOD_FOOT" ],
"show_in_info": true
},
{
@@ -421,7 +391,6 @@
"name": [ "Unstable footing" ],
"desc": [ "Your footing is unstable. It's more difficult to fight while standing here." ],
"apply_message": "You try to keep your balance.",
"resist_traits": [ "GASTROPOD_BALANCE" ],
"rating": "bad"
},
{
@@ -525,31 +494,6 @@
"show_in_info": true,
"blood_analysis_description": "Poison"
},
{
"type": "effect_type",
"id": "tpollen",
"name": [ "Hard of Breath" ],
"desc": [ "The pollen makes it hard to breathe!" ],
"miss_messages": [ [ "You cough out pollen.", 1 ] ],
"rating": "bad",
"harmful_cough": true,
"pain_sizing": true,
"hurt_sizing": true,
"main_parts_only": true,
"base_mods": {
"per_mod": [ -2, -1 ],
"dex_mod": [ -1, -1 ],
"str_mod": [ -2, 0 ],
"pain_min": [ 2 ],
"pain_chance": [ 150, 900 ],
"hurt_min": [ 2 ],
"hurt_chance": [ 450, 2700 ],
"speed_mod": [ -10 ],
"cough_chance": [ 10 ]
},
"show_in_info": true,
"blood_analysis_description": "Unknown Organic Toxin"
},
{
"id": "venom_dmg",
"type": "effect_type",
@@ -619,26 +563,6 @@
"speed_mod": [ -0.31, -0.21 ]
}
},
{
"type": "effect_type",
"id": "venom_blind",
"name": [ "Distracted", "Inattentive", "Dissociated" ],
"desc": [
"You find it hard to concentrate on your surroundings properly.",
"You're not even listening, are you?",
"Everything will be fine. Just ignore all you see, and everything will be fine."
],
"apply_message": "Your vision grows blurry.",
"miss_messages": [ [ "It was right here, wasn't it?", 2 ], [ "Are you sure there's something there?", 1 ] ],
"max_intensity": 3,
"int_add_val": 1,
"int_decay_step": -1,
"int_decay_tick": 90,
"int_decay_remove": true,
"resist_traits": [ "ELFA_NV" ],
"base_mods": { "per_mod": [ -3, 0 ] },
"scaling_mods": { "per_mod": [ -2, -1 ] }
},
{
"type": "effect_type",
"id": "foodpoison",
@@ -647,7 +571,7 @@
"//": "In formal usage, 'nauseous' technically means 'to cause nausea [in others],' not 'feeling sick.'",
"miss_messages": [ [ "Your stomach bothers you.", 1 ] ],
"rating": "bad",
"resist_traits": [ "POISRESIST", "VOMITSTOMACH" ],
"resist_traits": [ "POISRESIST" ],
"base_mods": {
"per_mod": [ -1 ],
"dex_mod": [ -1 ],
@@ -699,14 +623,14 @@
{
"type": "effect_type",
"id": "nausea",
"name": [ "Slightly Nauseous", "Mildly Nauseous", "Nauseous", "Very Nauseous", "Extremely Nauseous" ],
"desc": [ "You are nauseous and may lead to vomiting." ],
"remove_message": "You no longer feel nauseous.",
"name": [ "Nausea" ],
"desc": [ "You feel nauseated. Even a thought of food makes you feel sick." ],
"remove_message": "You no longer feel nauseated.",
"rating": "bad",
"int_dur_factor": "3 m",
"max_intensity": 5,
"int_dur_factor": "5 m",
"max_intensity": 3,
"max_duration": "15 m",
"base_mods": { "vomit_chance": [ 500 ] }
"base_mods": { "vomit_chance": [ 60 ] }
},
{
"type": "effect_type",
@@ -946,11 +870,9 @@
"rating": "bad",
"miss_messages": [ [ "The webs restrict your movement.", 4 ] ],
"max_intensity": 3,
"int_add_val": 1,
"base_mods": { "speed_mod": [ -20 ] },
"scaling_mods": { "speed_mod": [ -5 ] },
"show_in_info": true,
"show_intensity": false
"show_in_info": true
},
{
"type": "effect_type",
@@ -991,7 +913,7 @@
"desc": [ "You have an infected wound." ],
"apply_memorial_log": "Contracted an infection.",
"remove_memorial_log": "Recovered from an infection… this time.",
"apply_message": "Your wound feels infected.",
"apply_message": "Your bite wound feels infected.",
"resist_traits": [ "INFRESIST" ],
"main_parts_only": true,
"rating": "bad",
@@ -1119,8 +1041,8 @@
"apply_memorial_log": "Contracted a fungal infection.",
"remove_memorial_log": "Cured the fungal infection.",
"miss_messages": [ [ "You feel sick inside.", 1 ] ],
"speed_name": "Itchy skin",
"remove_message": "The itching in your skin fades away.",
"speed_name": "Fungal infection",
"remove_message": "Tingling sensation in your skin fades away.",
"rating": "bad",
"max_intensity": 3,
"int_dur_factor": "6 h",
@@ -1193,9 +1115,7 @@
"name": [ "Shakes" ],
"desc": [ "Your hands just won't stop shaking." ],
"miss_messages": [ [ "You tremble", 4 ] ],
"base_mods": { "str_mod": [ -1 ], "dex_mod": [ -4 ] },
"max_duration": 7200,
"dur_add_perc": 30
"base_mods": { "str_mod": [ -1 ], "dex_mod": [ -4 ] }
},
{
"type": "effect_type",
@@ -1828,7 +1748,6 @@
"type": "effect_type",
"id": "tapeworm",
"rating": "bad",
"resist_traits": [ "VOMITSTOMACH" ],
"base_mods": { "hunger_chance": [ 50 ], "hunger_min": [ 1 ] },
"blood_analysis_description": "Intestinal Parasite"
},
@@ -1941,11 +1860,6 @@
"type": "effect_type",
"id": "slept_through_alarm"
},
{
"type": "effect_type",
"id": "robofac_surveillance",
"max_duration": "14 days"
},
{
"type": "effect_type",
"name": [ "Playing an instrument" ],
@@ -1988,6 +1902,21 @@
"base_mods": { "speed_mod": [ -1000 ], "dex_mod": [ -100 ] },
"show_in_info": true
},
{
"type": "effect_type",
"id": "hypocalcemia",
"name": [ "Hypocalcemia", "Weak bones", "Brittle bones" ],
"desc": [ "A lack of calcium in your diet will make your bones progressively weaker." ],
"apply_message": "Your bones are becoming more brittle.",
"remove_message": "Your bones regain their usual strength.",
"decay_messages": [
[ "Your calcium deficiency is nearly resolved.", "good" ],
[ "Your bones become stronger as your calcium deficiency improves.", "good" ]
],
"max_intensity": 3,
"rating": "bad",
"blood_analysis_description": "Hypocalcemia"
},
{
"type": "effect_type",
"id": "anemia",
@@ -2063,6 +1992,36 @@
},
"blood_analysis_description": "Anemia"
},
{
"type": "effect_type",
"id": "hypovitA",
"name": [ "VitA deficiency", "Poor vision", "Night blindness" ],
"desc": [ "A lack of vitamin A in your diet will progressively worsen your vision." ],
"apply_message": "You start struggling to make out the finer details.",
"remove_message": "Your normal visual acuity returns.",
"decay_messages": [
[ "Your vitamin A deficiency is nearly resolved.", "good" ],
[ "Your vision improves as your Vitamin A deficiency improves.", "good" ]
],
"max_intensity": 3,
"rating": "bad",
"blood_analysis_description": "Vitamin A Deficiency"
},
{
"type": "effect_type",
"id": "hypovitB",
"name": [ "B12 deficiency", "Slow healing", "No healing" ],
"desc": [ "A lack of vitamin B12 in your diet will affect your ability to heal." ],
"apply_message": "Simple wounds are starting to concern you more than usual.",
"remove_message": "Your wounds now heal normally.",
"decay_messages": [
[ "Your vitamin B12 deficiency is starting to resolve.", "good" ],
[ "Your ability to heal returns as your Vitamin B12 deficiency improves.", "good" ]
],
"max_intensity": 3,
"rating": "bad",
"blood_analysis_description": "Vitamin B Deficiency"
},
{
"type": "effect_type",
"id": "scurvy",
@@ -2075,27 +2034,6 @@
[ "Your scurvy lessens as your Vitamin C deficiency improves.", "good" ]
],
"max_intensity": 3,
"base_mods": {
"pain_max_val": [ 35 ],
"pain_chance": [ 900 ],
"pain_min": [ 1 ],
"pain_max": [ 5 ],
"fatigue_chance": [ 900 ],
"fatigue_max_val": [ 500, 200 ],
"fatigue_min": [ 10 ],
"h_mod_min": [ -1 ],
"h_mod_min_val": [ 0 ],
"h_mod_chance": [ 900 ]
},
"scaling_mods": {
"pain_chance": [ -150 ],
"fatigue_chance": [ -200 ],
"h_mod_min": [ -1 ],
"h_mod_min_val": [ -100 ],
"h_mod_chance": [ -300 ],
"str_mod": [ -0.5 ],
"speed_mod": [ -2 ]
},
"rating": "bad",
"blood_analysis_description": "Scurvy"
},
@@ -2409,11 +2347,17 @@
"desc": [ "AI effect to increase stats after fusing with another critter. 1 stack means one absorbed max_hp." ],
"//": "stats modified by the zombie_fuse special attack.",
"//1": "scaling:",
"//2": "/50 HP: +0,5 melee_skill, +0,5 dodge_skill (unexpected movement), +5 Speed (bigger steps&more to attack with), +4 bash",
"//3": "/250 HP: +1 size",
"max_intensity": 500,
"base_mods": { "hit_mod": [ 0.01 ], "dodge_mod": [ 0.01 ], "speed_mod": [ 0.1 ], "bash_mod": [ 0.08 ] },
"scaling_mods": { "hit_mod": [ 0.01 ], "dodge_mod": [ 0.01 ], "speed_mod": [ 0.1 ], "bash_mod": [ 0.08 ], "size_mod": [ 0.004 ] },
"//2": "/48 HP: +0,5 melee_skill, +0,5 dodge_skill (unexpected movement), +5 Speed (bigger steps&more to attack with), +4 bash",
"//3": "/160 HP: +1 size",
"max_intensity": 480,
"base_mods": { "hit_mod": [ 0.0104 ], "dodge_mod": [ 0.0104 ], "speed_mod": [ 0.1042 ], "bash_mod": [ 0.08333 ] },
"scaling_mods": {
"hit_mod": [ 0.0104 ],
"dodge_mod": [ 0.0104 ],
"speed_mod": [ 0.1042 ],
"bash_mod": [ 0.08333 ],
"size_mod": [ 0.00625 ]
},
"int_decay_step": 0
},
{
-23
View File
@@ -192,13 +192,6 @@
"intensity": 3,
"qty": 50
},
{
"id": "emit_pollen_stream",
"type": "emit",
"field": "fd_pollen_triffid",
"intensity": 2,
"qty": 24
},
{
"id": "emit_hot_air2_blast",
"type": "emit",
@@ -375,21 +368,5 @@
"field": "fd_nuke_gas",
"intensity": 3,
"qty": 100
},
{
"id": "emit_web_small",
"type": "emit",
"//": "Occasionally leave a web, not too often because we spawn in mixed groups",
"field": "fd_web",
"intensity": 3,
"chance": 50
},
{
"id": "emit_sludge_puddle",
"type": "emit",
"//": "Infrequent emission of sludge along the ground, made because sludge trail is too frequent",
"field": "fd_sludge",
"intensity": 3,
"chance": 20
}
]
-24
View File
@@ -1,24 +0,0 @@
[
{
"type": "enchantment",
"id": "ENCH_DEBUG_TAIL",
"condition": "ALWAYS",
"modified_bodyparts": [ { "gain": "debug_tail" } ]
},
{
"type": "enchantment",
"id": "ENCH_DEBUG_ONLY_HEAD",
"condition": "ALWAYS",
"modified_bodyparts": [
{ "lose": "torso" },
{ "lose": "arm_l" },
{ "lose": "arm_r" },
{ "lose": "leg_l" },
{ "lose": "leg_r" },
{ "lose": "foot_r" },
{ "lose": "foot_l" },
{ "lose": "hand_l" },
{ "lose": "hand_r" }
]
}
]
+2 -75
View File
@@ -94,7 +94,7 @@
],
"description_affix": "covered_in",
"immunity_data": { "traits": [ "WEB_WALKER" ] },
"immune_mtypes": [ "mon_spider_web", "mon_spider_web_s", "mon_mutant_arthropod" ],
"immune_mtypes": [ "mon_spider_web", "mon_spider_web_s" ],
"decrease_intensity_on_contact": true,
"priority": 2,
"phase": "solid",
@@ -241,7 +241,6 @@
"half_life": "30 minutes",
"phase": "liquid",
"display_field": true,
"immunity_data": { "traits": [ "GASTROPOD_FOOT" ] },
"looks_like": "fd_sap"
},
{
@@ -370,22 +369,6 @@
"looks_like": "f_rubble",
"legacy_make_rubble": true
},
{
"id": "fd_biolum",
"type": "field_type",
"intensity_levels": [
{ "name": "glimmer", "sym": "6", "color": "cyan", "light_emitted": 4 },
{ "name": "glow", "color": "cyan", "light_emitted": 9 },
{ "name": "shine", "color": "blue", "light_emitted": 20 }
],
"description_affix": "illuminated_by",
"has_elec": true,
"priority": 4,
"half_life": "6 turns",
"phase": "plasma",
"display_items": false,
"display_field": true
},
{
"id": "fd_smoke",
"type": "field_type",
@@ -540,62 +523,6 @@
"display_field": true,
"looks_like": "fd_nuke_gas"
},
{
"id": "fd_pollen_triffid",
"type": "field_type",
"legacy_enum_id": 51,
"intensity_levels": [
{
"name": "hazy cloud",
"sym": "8",
"dangerous": true,
"translucency": 1,
"effects": [
{
"effect_id": "tpollen",
"body_part": "mouth",
"intensity": 2,
"min_duration": "2 minutes",
"max_duration": "2 minutes",
"immune_inside_vehicle": true,
"message": "You feel sick from inhaling the hazy cloud.",
"message_type": "bad"
}
]
},
{
"name": "triffid pollen",
"color": "light_green",
"transparent": false,
"translucency": 10,
"effects": [
{
"effect_id": "tpollen",
"body_part": "mouth",
"intensity": 5,
"min_duration": "3 minutes",
"max_duration": "3 minutes",
"immune_inside_vehicle": true,
"message": "You feel sick from inhaling the triffid pollen.",
"message_type": "bad"
}
]
}
],
"decay_amount_factor": 5,
"gas_absorption_factor": 15,
"percent_spread": 30,
"outdoor_age_speedup": "3 minutes",
"dirty_transparency_cache": true,
"has_fume": true,
"immunity_data": { "body_part_env_resistance": [ [ "mouth", 15 ] ] },
"priority": 8,
"half_life": "10 minutes",
"phase": "gas",
"display_items": false,
"display_field": true,
"looks_like": "fd_nuke_gas"
},
{
"id": "fd_tear_gas",
"type": "field_type",
@@ -776,7 +703,7 @@
],
"description_affix": "under",
"priority": 8,
"display_items": true,
"display_items": false,
"display_field": true,
"looks_like": "fd_smoke"
},
+566 -354
View File
File diff suppressed because it is too large Load Diff
+4 -2
View File
@@ -1,10 +1,12 @@
[
{
"type": "json_flag",
"id": "SONAR_DETECTABLE"
"id": "SONAR_DETECTABLE",
"context": [ ]
},
{
"type": "json_flag",
"id": "CONVECTS_TEMPERATURE"
"id": "CONVECTS_TEMPERATURE",
"context": [ ]
}
]
@@ -187,7 +187,7 @@
{ "item": "exodii_module", "count": [ 0, 1 ] },
{ "item": "exodii_motor", "count": [ 0, 1 ] },
{ "item": "cable", "charges": [ 0, 2 ] },
{ "item": "scrap_copper", "count": [ 2, 12 ] }
{ "item": "scrap_copper", "count": [ 2, 10 ] }
]
}
},
@@ -216,7 +216,7 @@
{ "item": "sheet_metal_small", "count": [ 20, 30 ] },
{ "item": "exodii_chassis", "count": [ 0, 1 ] },
{ "item": "exodii_drone_chassis", "count": [ 0, 1 ] },
{ "item": "scrap_copper", "count": [ 6, 25 ] },
{ "item": "scrap_copper", "count": [ 5, 20 ] },
{ "item": "e_scrap", "count": [ 5, 20 ] }
]
}
@@ -241,7 +241,7 @@
{ "item": "scrap", "count": [ 8, 12 ] },
{ "item": "pipe", "count": [ 0, 3 ] },
{ "item": "sheet_metal_small", "count": [ 2, 10 ] },
{ "item": "scrap_copper", "count": [ 2, 12 ] },
{ "item": "scrap_copper", "count": [ 2, 10 ] },
{ "item": "exodii_computer", "count": [ 0, 1 ] },
{ "item": "exodii_motor", "count": [ 0, 1 ] },
{ "item": "cable", "charges": [ 0, 3 ] },
@@ -260,7 +260,7 @@
"move_cost_mod": 3,
"coverage": 30,
"required_str": 6,
"light_emitted": 90,
"light_emitted": 20,
"flags": [ "TRANSPARENT", "NOITEM", "BLOCKSDOOR" ],
"bash": {
"str_min": 20,
@@ -270,7 +270,7 @@
{ "item": "scrap", "count": [ 8, 12 ] },
{ "item": "pipe", "count": [ 0, 3 ] },
{ "item": "sheet_metal_small", "count": [ 2, 10 ] },
{ "item": "scrap_copper", "count": [ 2, 12 ] },
{ "item": "scrap_copper", "count": [ 2, 10 ] },
{ "item": "amplifier", "count": [ 0, 5 ] },
{ "item": "power_supply", "count": [ 0, 1 ] },
{ "item": "cable", "charges": [ 0, 5 ] }
@@ -298,7 +298,7 @@
{ "item": "pipe", "count": [ 2, 4 ] },
{ "item": "55gal_drum", "count": [ 0, 1 ] },
{ "item": "sheet_metal_small", "count": [ 2, 10 ] },
{ "item": "scrap_copper", "count": [ 5, 12 ] },
{ "item": "scrap_copper", "count": [ 5, 10 ] },
{ "item": "exodii_module", "count": [ 0, 1 ] },
{ "item": "exodii_motor", "count": [ 0, 2 ] },
{ "item": "pipe_fittings", "count": [ 2, 6 ] }
@@ -325,7 +325,7 @@
{ "item": "scrap", "count": [ 20, 120 ] },
{ "item": "pipe", "count": [ 20, 40 ] },
{ "item": "sheet_metal_small", "count": [ 20, 100 ] },
{ "item": "scrap_copper", "count": [ 62, 124 ] },
{ "item": "scrap_copper", "count": [ 50, 100 ] },
{ "item": "pipe_fittings", "count": [ 2, 6 ] },
{ "item": "exodii_module", "count": [ 0, 6 ] },
{ "item": "exodii_motor", "count": [ 0, 8 ] },
@@ -354,7 +354,7 @@
{ "item": "pipe", "count": [ 10, 20 ] },
{ "item": "pipe_fittings", "count": [ 2, 4 ] },
{ "item": "sheet_metal_small", "count": [ 10, 30 ] },
{ "item": "scrap_copper", "count": [ 25, 62 ] },
{ "item": "scrap_copper", "count": [ 20, 40 ] },
{ "item": "e_scrap", "count": [ 20, 40 ] },
{ "item": "exodii_module", "count": [ 0, 5 ] },
{ "item": "exodii_motor", "count": [ 0, 6 ] },
@@ -385,7 +385,7 @@
{ "item": "plutonium", "charges": [ 0, 3 ] },
{ "item": "lead", "charges": [ 12, 18 ] },
{ "item": "sheet_metal_small", "count": [ 10, 30 ] },
{ "item": "scrap_copper", "count": [ 25, 50 ] },
{ "item": "scrap_copper", "count": [ 20, 40 ] },
{ "item": "e_scrap", "count": [ 20, 40 ] },
{ "item": "circuit", "count": [ 6, 10 ] },
{ "item": "power_supply", "count": [ 4, 8 ] },
@@ -419,7 +419,7 @@
{ "item": "plutonium", "charges": [ 0, 3 ] },
{ "item": "lead", "charges": [ 12, 18 ] },
{ "item": "sheet_metal_small", "count": [ 10, 30 ] },
{ "item": "scrap_copper", "count": [ 25, 50 ] },
{ "item": "scrap_copper", "count": [ 20, 40 ] },
{ "item": "e_scrap", "count": [ 20, 40 ] },
{ "item": "circuit", "count": [ 6, 10 ] },
{ "item": "power_supply", "count": [ 4, 8 ] },
@@ -455,7 +455,7 @@
{ "item": "plutonium", "charges": [ 0, 3 ] },
{ "item": "lead", "charges": [ 12, 18 ] },
{ "item": "sheet_metal_small", "count": [ 10, 30 ] },
{ "item": "scrap_copper", "count": [ 12, 37 ] },
{ "item": "scrap_copper", "count": [ 10, 30 ] },
{ "item": "e_scrap", "count": [ 10, 20 ] },
{ "item": "circuit", "count": [ 2, 5 ] },
{ "item": "power_supply", "count": [ 4, 8 ] },
@@ -489,7 +489,7 @@
{ "item": "plutonium", "charges": [ 0, 3 ] },
{ "item": "lead", "charges": [ 12, 18 ] },
{ "item": "sheet_metal_small", "count": [ 10, 30 ] },
{ "item": "scrap_copper", "count": [ 12, 37 ] },
{ "item": "scrap_copper", "count": [ 10, 30 ] },
{ "item": "e_scrap", "count": [ 15, 30 ] },
{ "item": "circuit", "count": [ 2, 5 ] },
{ "item": "power_supply", "count": [ 2, 8 ] },
@@ -621,18 +621,5 @@
{ "item": "exodii_computer", "count": [ 0, 1 ] }
]
}
},
{
"type": "furniture",
"id": "f_crystalline_flower",
"name": "crystalline flower",
"description": "A crystalline structure that resembles a plant.",
"symbol": "f",
"color": "light_green",
"move_cost_mod": 0,
"required_str": -1,
"flags": [ "TRANSPARENT", "TINY", "FLAMMABLE_ASH", "NOCOLLIDE" ],
"//": "decorative flora for breather biome.",
"bash": { "str_min": 2, "str_max": 6, "sound": "crunch.", "sound_fail": "whish." }
}
]
@@ -316,9 +316,22 @@
"move_cost_mod": -1,
"coverage": 60,
"required_str": 12,
"max_volume": "125 L",
"flags": [ "CONTAINER", "PLACE_ITEM", "BLOCKSDOOR", "FLAT_SURF", "MINEABLE", "EASY_DECONSTRUCT" ],
"deconstruct": { "items": [ { "item": "household_washing_machine", "count": 1 } ] },
"max_volume": "30 L",
"flags": [ "CONTAINER", "PLACE_ITEM", "BLOCKSDOOR", "FLAT_SURF", "MINEABLE" ],
"deconstruct": {
"items": [
{ "item": "pipe", "count": 1 },
{ "item": "scrap", "count": [ 2, 6 ] },
{ "item": "steel_chunk", "count": [ 1, 3 ] },
{ "item": "sheet_metal_small", "count": [ 0, 4 ] },
{ "item": "sheet_metal", "count": [ 2, 6 ] },
{ "item": "cable", "charges": [ 1, 15 ] },
{ "item": "hose", "count": [ 1, 2 ] },
{ "item": "pipe_fittings", "count": [ 2, 6 ] },
{ "item": "motor_small", "count": 1 },
{ "item": "cu_pipe", "count": [ 2, 5 ] }
]
},
"bash": {
"str_min": 18,
"str_max": 50,
@@ -342,7 +355,7 @@
"id": "f_oven",
"name": "oven",
"symbol": "#",
"description": "A standard convection-based oven, commonly used for heating and cooking food. You could safely light a fire inside or power it with UPS.",
"description": "A standard convection-based oven, commonly used for heating and cooking food. Despite it no longer working, you could safely light a fire inside.",
"color": "dark_gray",
"move_cost_mod": 2,
"coverage": 60,
@@ -581,7 +594,7 @@
"color": "yellow",
"move_cost_mod": 2,
"required_str": -1,
"flags": [ "TRANSPARENT" ],
"flags": [ "TRANSPARENT", "BASHABLE" ],
"deconstruct": {
"items": [
{ "item": "scrap", "count": [ 4, 6 ] },
@@ -10,7 +10,6 @@
"coverage": 80,
"required_str": 5,
"flags": [ "NOITEM", "BLOCKSDOOR" ],
"examine_action": "change_appearance",
"bash": {
"str_min": 5,
"str_max": 16,
@@ -126,8 +125,7 @@
"move_cost_mod": 2,
"coverage": 40,
"required_str": 5,
"flags": [ "PLACE_ITEM", "TRANSPARENT", "FLAMMABLE", "EASY_DECONSTRUCT" ],
"deconstruct": { "items": [ { "item": "mannequin", "count": 1 } ] },
"flags": [ "PLACE_ITEM", "TRANSPARENT", "FLAMMABLE" ],
"bash": {
"str_min": 6,
"str_max": 40,
@@ -185,7 +183,7 @@
"color": "white",
"move_cost_mod": -2,
"required_str": 10,
"flags": [ "TRANSPARENT", "BLOCKSDOOR", "PLACE_ITEM" ],
"flags": [ "TRANSPARENT", "BLOCKSDOOR", "BASHABLE", "PLACE_ITEM" ],
"deconstruct": {
"items": [
{ "item": "pipe", "count": 6 },
@@ -81,7 +81,7 @@
"move_cost_mod": 0,
"required_str": -1,
"flags": [ "PLANT", "SEALED", "TRANSPARENT", "CONTAINER", "NOITEM", "TINY", "DONT_REMOVE_ROTTEN", "GROWTH_HARVEST" ],
"examine_action": "harvest_plant",
"examine_action": "aggie_plant",
"bash": { "str_min": 4, "str_max": 10, "sound": "crunch.", "sound_fail": "whish." },
"plant_data": { "transform": "f_null", "base": "f_null" }
},
@@ -108,7 +108,7 @@
"color": "brown",
"move_cost_mod": 0,
"required_str": -1,
"flags": [ "PLANT", "SEALED", "TRANSPARENT", "CONTAINER", "NOITEM", "TINY", "DONT_REMOVE_ROTTEN" ],
"flags": [ "PLANT", "SEALED", "TRANSPARENT", "CONTAINER", "NOITEM", "TINY", "DONT_REMOVE_ROTTEN", "GROWTH_SEED" ],
"examine_action": "aggie_plant",
"bash": { "str_min": 1, "str_max": 5, "sound": "crunch.", "sound_fail": "whish." },
"plant_data": { "transform": "f_plant_seedling", "base": "f_null" }
@@ -172,7 +172,7 @@
"move_cost_mod": 0,
"required_str": -1,
"flags": [ "PLANT", "SEALED", "TRANSPARENT", "CONTAINER", "NOITEM", "TINY", "DONT_REMOVE_ROTTEN", "GROWTH_HARVEST" ],
"examine_action": "harvest_plant",
"examine_action": "aggie_plant",
"deconstruct": {
"items": [
{ "item": "2x4", "count": [ 11, 12 ] },
@@ -239,7 +239,7 @@
"looks_like": "f_plant_seed",
"move_cost_mod": 1,
"required_str": -1,
"flags": [ "PLANT", "SEALED", "TRANSPARENT", "CONTAINER", "NOITEM", "TINY", "DONT_REMOVE_ROTTEN" ],
"flags": [ "PLANT", "SEALED", "TRANSPARENT", "CONTAINER", "NOITEM", "TINY", "DONT_REMOVE_ROTTEN", "GROWTH_SEED" ],
"examine_action": "aggie_plant",
"deconstruct": {
"items": [
@@ -28,110 +28,5 @@
"required_str": -1,
"flags": [ "TRANSPARENT" ],
"emissions": [ "emit_fog_plume" ]
},
{
"type": "furniture",
"id": "f_vent_cold_air2_stream",
"name": "metal grate",
"description": "This is a metal vent, you can feel cool air seeping out of it.",
"looks_like": "t_grate",
"symbol": "~",
"color": "blue",
"move_cost_mod": 0,
"coverage": 0,
"required_str": -1,
"flags": [ "TRANSPARENT" ],
"emissions": [ "emit_cold_air2_stream" ]
},
{
"type": "furniture",
"id": "f_vent_cold_air2_blast",
"description": "This is a metal vent, you can feel cold air blasting out of it.",
"copy-from": "f_vent_cold_air2_stream",
"symbol": "~",
"color": "blue",
"emissions": [ "emit_cold_air2_blast" ]
},
{
"type": "furniture",
"id": "f_vent_hot_air2_stream",
"description": "This is a metal vent, you can feel hot air seeping out of it.",
"copy-from": "f_vent_cold_air2_stream",
"symbol": "~",
"color": "red",
"emissions": [ "emit_hot_air2_stream" ]
},
{
"type": "furniture",
"id": "f_vent_hot_air2_blast",
"copy-from": "f_vent_cold_air2_stream",
"description": "This is a metal vent, you can feel hot air seeping out of it.",
"symbol": "~",
"color": "red",
"emissions": [ "emit_hot_air2_blast" ]
},
{
"type": "furniture",
"id": "f_vent_smoke_plume",
"description": "This is a metal vent, you can see smoke seeping from it.",
"copy-from": "f_vent_cold_air2_stream",
"symbol": "~",
"color": "white",
"emissions": [ "emit_smoke_plume" ]
},
{
"type": "furniture",
"id": "f_vent_smoke_stream",
"description": "This is a metal vent, you can see smoke streaming out of it.",
"copy-from": "f_vent_cold_air2_stream",
"symbol": "~",
"color": "white",
"emissions": [ "emit_smoke_stream" ]
},
{
"type": "furniture",
"id": "f_vent_toxic_leak",
"description": "This is a metal vent, toxic looking clouds seep from it.",
"copy-from": "f_vent_cold_air2_stream",
"symbol": "~",
"color": "green",
"emissions": [ "emit_toxic_leak" ]
},
{
"type": "furniture",
"id": "f_vent_toxic_belch",
"description": "This is a metal vent, toxic looking clouds emerge from it.",
"copy-from": "f_vent_cold_air2_stream",
"symbol": "~",
"color": "green",
"emissions": [ "emit_toxic_belch" ]
},
{
"type": "furniture",
"id": "f_vent_rad_leak",
"description": "This is a metal vent.",
"copy-from": "f_vent_cold_air2_stream",
"symbol": "~",
"color": "green",
"emissions": [ "emit_rad_leak" ]
},
{
"type": "furniture",
"id": "f_vent_rad_cloud",
"description": "This is a metal vent.",
"copy-from": "f_vent_cold_air2_stream",
"symbol": "~",
"color": "green",
"emissions": [ "emit_rad_cloud" ]
},
{
"type": "furniture",
"id": "f_fog_breather",
"description": "This is misty water vapor.",
"copy-from": "f_fog",
"looks_like": "t_gelatinous_groundcover",
"symbol": "~",
"color": "pink",
"emissions": [ "emit_fog_plume" ]
}
]
@@ -66,32 +66,6 @@
]
}
},
{
"type": "furniture",
"id": "f_hobo_stove",
"name": "hobo stove",
"description": "This is a small improvised wood stove, made from a metal can. It's too small to fit anything much larger than splintered wood.",
"symbol": "#",
"color": "red",
"move_cost_mod": 2,
"coverage": 35,
"required_str": 4,
"flags": [ "PLACE_ITEM", "TRANSPARENT", "FIRE_CONTAINER", "EASY_DECONSTRUCT" ],
"deployed_item": "hobo_stove",
"examine_action": "fireplace",
"max_volume": "680 ml",
"bash": {
"str_min": 8,
"str_max": 30,
"sound": "metal screeching!",
"sound_fail": "clang!",
"items": [
{ "item": "scrap", "count": [ 2, 4 ] },
{ "item": "steel_chunk", "count": [ 1, 2 ] },
{ "item": "sheet_metal_small", "count": [ 1, 2 ] }
]
}
},
{
"type": "furniture",
"id": "f_55gal_firebarrel",
@@ -8,7 +8,7 @@
"color": "cyan",
"move_cost_mod": 1,
"required_str": -1,
"flags": [ "TRANSPARENT", "FUNGUS", "TINY", "NOCOLLIDE" ],
"flags": [ "TRANSPARENT", "FLAMMABLE_ASH", "FUNGUS", "TINY", "NOCOLLIDE" ],
"examine_action": "flower_marloss",
"bash": { "str_min": 2, "str_max": 6, "sound": "poof.", "sound_fail": "poof." }
},
@@ -21,7 +21,7 @@
"color": "dark_gray",
"move_cost_mod": 1,
"required_str": -1,
"flags": [ "TRANSPARENT", "FLOWER", "FUNGUS", "TINY", "NOCOLLIDE" ],
"flags": [ "TRANSPARENT", "FLOWER", "FUNGUS", "TINY", "FLAMMABLE_ASH", "NOCOLLIDE" ],
"examine_action": "fungus",
"bash": { "str_min": 2, "str_max": 6, "sound": "poof.", "sound_fail": "poof." }
},
@@ -34,7 +34,7 @@
"bgcolor": "dark_gray",
"move_cost_mod": -10,
"required_str": -1,
"flags": [ "CONTAINER", "SEALED", "ALLOW_FIELD_EFFECT", "FUNGUS", "MOUNTABLE", "SHORT" ],
"flags": [ "CONTAINER", "SEALED", "ALLOW_FIELD_EFFECT", "FLAMMABLE_ASH", "FUNGUS", "MOUNTABLE", "SHORT" ],
"bash": { "str_min": 6, "str_max": 30, "sound": "poof.", "sound_fail": "poof." }
},
{
@@ -46,7 +46,7 @@
"bgcolor": "light_gray",
"move_cost_mod": 3,
"required_str": -1,
"flags": [ "TRANSPARENT", "CONTAINER", "SEALED", "ALLOW_FIELD_EFFECT", "FUNGUS", "MOUNTABLE", "SHORT" ],
"flags": [ "TRANSPARENT", "CONTAINER", "SEALED", "ALLOW_FIELD_EFFECT", "FLAMMABLE_ASH", "FUNGUS", "MOUNTABLE", "SHORT" ],
"bash": { "str_min": 6, "str_max": 20, "sound": "poof.", "sound_fail": "poof." }
},
{
@@ -59,7 +59,7 @@
"bgcolor": "light_gray",
"move_cost_mod": -1,
"required_str": -1,
"flags": [ "FUNGUS" ],
"flags": [ "FLAMMABLE_ASH", "FUNGUS" ],
"bash": { "str_min": 26, "str_max": 50, "sound": "poof.", "sound_fail": "squelch." }
}
]
@@ -90,7 +90,7 @@
"move_cost_mod": -1,
"coverage": 30,
"required_str": 16,
"flags": [ "TRANSPARENT", "NOITEM", "REDUCE_SCENT", "MOUNTABLE", "PERMEABLE", "BLOCKSDOOR" ],
"flags": [ "TRANSPARENT", "NOITEM", "REDUCE_SCENT", "MOUNTABLE", "PERMEABLE", "BLOCKS_DOOR" ],
"bash": {
"str_min": 20,
"str_max": 150,
@@ -210,7 +210,7 @@
"move_cost_mod": 10,
"coverage": 65,
"required_str": -1,
"flags": [ "TRANSPARENT", "CONTAINER", "FLAMMABLE", "PLACE_ITEM" ],
"flags": [ "TRANSPARENT", "BASHABLE", "CONTAINER", "FLAMMABLE", "PLACE_ITEM" ],
"deconstruct": {
"items": [
{ "item": "wire", "count": [ 1, 3 ] },
@@ -254,7 +254,7 @@
"move_cost_mod": 10,
"coverage": 75,
"required_str": -1,
"flags": [ "CONTAINER", "SEALED", "PLACE_ITEM" ],
"flags": [ "BASHABLE", "CONTAINER", "SEALED", "PLACE_ITEM" ],
"deconstruct": {
"items": [
{ "item": "wire", "count": [ 1, 3 ] },
@@ -305,7 +305,7 @@
"move_cost_mod": 4,
"coverage": 55,
"required_str": -1,
"flags": [ "TRANSPARENT", "CONTAINER", "FLAMMABLE", "PLACE_ITEM" ],
"flags": [ "TRANSPARENT", "BASHABLE", "CONTAINER", "FLAMMABLE", "PLACE_ITEM" ],
"deconstruct": {
"items": [
{ "item": "wire", "count": 1 },
@@ -354,7 +354,7 @@
"move_cost_mod": 8,
"coverage": 55,
"required_str": -1,
"flags": [ "TRANSPARENT", "CONTAINER", "SEALED", "FLAMMABLE", "PLACE_ITEM" ],
"flags": [ "TRANSPARENT", "BASHABLE", "CONTAINER", "SEALED", "FLAMMABLE", "PLACE_ITEM" ],
"deconstruct": {
"items": [
{ "item": "wire", "count": [ 1, 3 ] },
@@ -457,41 +457,10 @@
"str_max": 100,
"sound": "shred!",
"sound_fail": "thud!",
"items": [ { "item": "scrap_copper", "count": [ 1, 5 ] }, { "item": "cable", "charges": [ 1, 4 ] } ]
"items": [ { "item": "scrap_copper", "count": [ 1, 4 ] }, { "item": "cable", "charges": [ 1, 4 ] } ]
},
"deconstruct": { "items": [ { "item": "cable", "charges": [ 3, 4 ] } ] }
},
{
"type": "furniture",
"id": "f_electrical_conduit",
"name": "electrical conduit",
"looks_like": "t_sewer_pipe",
"description": "A thick bundle of electrical wiring protected by a metal conduit.",
"symbol": "|",
"color": "light_gray",
"move_cost_mod": 1,
"required_str": -1,
"flags": [ "TRANSPARENT", "NOCOLLIDE" ],
"bash": {
"str_min": 10,
"str_max": 100,
"sound": "smash!",
"sound_fail": "thunk!",
"items": [
{ "item": "scrap", "count": [ 1, 4 ] },
{ "item": "scrap_copper", "count": [ 10, 20 ] },
{ "item": "cable", "charges": [ 20, 100 ] },
{ "item": "pipe", "count": [ 1, 2 ] }
]
},
"deconstruct": {
"items": [
{ "item": "cable", "charges": [ 200, 800 ] },
{ "item": "pipe_fittings", "count": [ 1, 2 ] },
{ "item": "pipe", "count": [ 2, 4 ] }
]
}
},
{
"type": "furniture",
"id": "f_capacitor",
@@ -533,7 +502,7 @@
"move_cost_mod": 8,
"coverage": 55,
"required_str": -1,
"flags": [ "TRANSPARENT", "FLAMMABLE", "PLACE_ITEM" ],
"flags": [ "TRANSPARENT", "BASHABLE", "FLAMMABLE", "PLACE_ITEM" ],
"deconstruct": {
"items": [
{ "item": "wire", "count": [ 1, 3 ] },
@@ -230,7 +230,7 @@
{ "item": "pipe", "count": [ 6, 12 ] },
{ "item": "cu_pipe", "count": [ 1, 4 ] },
{ "item": "cable", "charges": [ 1, 4 ] },
{ "item": "epoxy_chunk", "count": [ 50, 75 ] },
{ "item": "plastic_chunk", "count": [ 50, 75 ] },
{ "item": "sheet_metal", "count": [ 1, 2 ] },
{ "item": "sheet_metal_small", "count": [ 0, 4 ] }
]
@@ -245,7 +245,7 @@
{ "item": "scrap", "count": [ 2, 8 ] },
{ "item": "steel_chunk", "count": [ 2, 4 ] },
{ "item": "sheet_metal_small", "count": [ 6, 10 ] },
{ "item": "epoxy_chunk", "count": [ 30, 50 ] },
{ "item": "plastic_chunk", "count": [ 30, 50 ] },
{ "item": "pipe", "count": 1 },
{ "item": "cable", "charges": [ 1, 3 ] },
{ "item": "cu_pipe", "count": 1 }
@@ -735,8 +735,8 @@
"move_cost_mod": -1,
"coverage": 40,
"required_str": 6,
"flags": [ "BLOCKSDOOR" ],
"looks_like": "f_ventilator",
"flags": [ "BLOCKS_DOOR" ],
"looks_like": "f_standing_tank",
"deconstruct": {
"items": [
{ "item": "glass_tube_small", "count": [ 6, 12 ] },
@@ -781,7 +781,7 @@
"move_cost_mod": -1,
"coverage": 50,
"required_str": 5,
"flags": [ "BLOCKSDOOR" ],
"flags": [ "BLOCKS_DOOR" ],
"looks_like": "f_standing_tank",
"deconstruct": {
"items": [
@@ -825,7 +825,7 @@
"move_cost_mod": -1,
"coverage": 35,
"required_str": 4,
"flags": [ "BLOCKSDOOR" ],
"flags": [ "BLOCKS_DOOR" ],
"looks_like": "f_standing_tank",
"deconstruct": {
"items": [
@@ -82,7 +82,7 @@
"type": "furniture",
"id": "f_toilet",
"name": "toilet",
"symbol": "o",
"symbol": "&",
"color": "white",
"description": "An invaluable fixture in any home, it would be a miracle to have one that works. The standing tank may hold a moderate amount of water, but while better than anything that would be in the bowl, it would not be the cleanest.",
"move_cost_mod": 2,
@@ -109,10 +109,25 @@
"move_cost_mod": -1,
"coverage": 55,
"required_str": -1,
"flags": [ "CONTAINER", "PLACE_ITEM", "LIQUIDCONT", "NOITEM", "SEALED", "EASY_DECONSTRUCT" ],
"flags": [ "CONTAINER", "PLACE_ITEM", "LIQUIDCONT", "NOITEM", "SEALED" ],
"examine_action": "keg",
"keg_capacity": 240,
"deconstruct": { "items": [ { "item": "household_water_heater", "count": 1 } ] },
"deconstruct": {
"items": [
{ "item": "pipe", "count": 1 },
{ "item": "scrap", "count": [ 2, 6 ] },
{ "item": "steel_chunk", "count": [ 1, 3 ] },
{ "item": "sheet_metal", "count": [ 2, 6 ] },
{ "item": "cable", "charges": [ 1, 15 ] },
{ "item": "cu_pipe", "count": [ 2, 5 ] },
{ "item": "hose", "count": [ 0, 2 ] },
{ "item": "pilot_light", "count": 1 },
{ "item": "thermostat", "count": 1 },
{ "item": "water_faucet", "count": 1 },
{ "item": "pipe_fittings", "count": [ 2, 6 ] },
{ "item": "metal_tank", "count": 1 }
]
},
"bash": {
"str_min": 18,
"str_max": 50,
@@ -135,7 +150,7 @@
"id": "f_water_purifier",
"looks_like": "f_water_heater",
"name": "water purifier",
"description": "This device effectively sterilizes water, though without power source, like UPS, it's only good for parts.",
"description": "This devices effectively sterilizes water, though without a lot of power and proper plumbing, it's only good for parts now.",
"symbol": "W",
"bgcolor": "blue",
"move_cost_mod": -1,
@@ -10,7 +10,6 @@
"coverage": 35,
"required_str": 8,
"flags": [ "TRANSPARENT", "MINEABLE", "WORKOUT_ARMS" ],
"crafting_pseudo_item": "pseudo_exercise_machine",
"examine_action": "workout",
"deconstruct": {
"items": [
@@ -264,7 +263,6 @@
"required_str": 8,
"looks_like": "f_ergometer",
"flags": [ "BLOCKSDOOR", "TRANSPARENT", "MOUNTABLE", "WORKOUT_ARMS", "WORKOUT_LEGS" ],
"crafting_pseudo_item": "pseudo_ergometer_mechanical",
"deconstruct": {
"items": [
{ "item": "foot_crank", "count": [ 1, 1 ] },
@@ -343,7 +341,6 @@
"required_str": 12,
"looks_like": "f_treadmill",
"flags": [ "BLOCKSDOOR", "TRANSPARENT", "MOUNTABLE", "WORKOUT_LEGS" ],
"crafting_pseudo_item": "pseudo_treadmill_mechanical",
"deconstruct": {
"items": [
{ "item": "plastic_chunk", "count": [ 10, 14 ] },
@@ -378,8 +375,7 @@
"move_cost_mod": -1,
"coverage": 65,
"required_str": 10,
"flags": [ "BLOCKSDOOR", "PLACE_ITEM", "ORGANIC", "WORKOUT_ARMS" ],
"crafting_pseudo_item": "pseudo_punching_bag",
"flags": [ "BASHABLE", "BLOCKSDOOR", "PLACE_ITEM", "ORGANIC", "WORKOUT_ARMS" ],
"examine_action": "workout",
"bash": {
"str_min": 15,
@@ -8,7 +8,7 @@
"color": "white",
"move_cost_mod": -2,
"required_str": 10,
"flags": [ "TRANSPARENT", "PLACE_ITEM" ],
"flags": [ "TRANSPARENT", "PLACE_ITEM", "BASHABLE", "DECONSTRUCT" ],
"bash": {
"str_min": 6,
"str_max": 10,
@@ -43,7 +43,7 @@
"color": "light_gray",
"move_cost_mod": -2,
"required_str": 10,
"flags": [ "TRANSPARENT", "NOITEM" ],
"flags": [ "TRANSPARENT", "BASHABLE", "NOITEM" ],
"bash": {
"items": [
{ "item": "scrap", "count": [ 4, 6 ] },
@@ -64,7 +64,7 @@
"move_cost_mod": 2,
"coverage": 35,
"required_str": -1,
"flags": [ "MINEABLE" ],
"flags": [ "BASHABLE", "MINEABLE" ],
"deconstruct": { "items": [ { "item": "sheet_metal", "count": 2 }, { "item": "brick", "count": 30 } ] },
"bash": {
"str_min": 15,
@@ -83,7 +83,7 @@
"color": "light_gray",
"move_cost_mod": 2,
"required_str": 8,
"flags": [ "TRANSPARENT" ],
"flags": [ "TRANSPARENT", "BASHABLE" ],
"deconstruct": {
"items": [ { "item": "pipe", "count": 6 }, { "item": "steel_chunk", "count": 2 }, { "item": "cable", "charges": 10 } ]
},
@@ -109,7 +109,7 @@
"move_cost_mod": 2,
"coverage": 40,
"required_str": -1,
"flags": [ "TRANSPARENT" ],
"flags": [ "TRANSPARENT", "BASHABLE" ],
"deconstruct": { "items": [ { "item": "pipe", "count": 2 }, { "item": "steel_chunk", "count": 2 } ] },
"bash": {
"str_min": 10,
@@ -119,33 +119,6 @@
"items": [ { "item": "pipe", "count": [ 1, 2 ] }, { "item": "scrap", "count": [ 1, 3 ] } ]
}
},
{
"type": "furniture",
"id": "f_wind_vane",
"name": "wind vane",
"description": "A metal fin that swivels around a central pivot, indicating the direction of prevailing wind.",
"symbol": ">",
"color": "dark_gray",
"move_cost_mod": 2,
"coverage": 10,
"required_str": -1,
"flags": [ "TRANSPARENT" ],
"deconstruct": {
"items": [
{ "item": "pipe", "count": 1 },
{ "item": "pipe_fittings", "count": 1 },
{ "item": "wire", "count": 4 },
{ "item": "sheet_metal_small", "count": 2 }
]
},
"bash": {
"str_min": 10,
"str_max": 15,
"sound": "whack!",
"sound_fail": "whump!",
"items": [ { "item": "scrap", "count": [ 1, 3 ] }, { "item": "sheet_metal_small", "count": [ 0, 1 ] } ]
}
},
{
"type": "furniture",
"id": "f_roof_turbine_vent",
@@ -156,7 +129,7 @@
"move_cost_mod": 2,
"coverage": 40,
"required_str": -1,
"flags": [ "TRANSPARENT" ],
"flags": [ "TRANSPARENT", "BASHABLE" ],
"deconstruct": { "items": [ { "item": "sheet_metal_small", "count": 6 }, { "item": "steel_chunk", "count": 2 } ] },
"bash": {
"str_min": 8,
@@ -5,7 +5,7 @@
"name": "bale of hay",
"description": "A massive packed-together block of hay, it makes for easy storage of straw for livestock. If your only other option is the floor, it makes a tolerable bed.",
"symbol": "#",
"bgcolor": "yellow",
"bgcolor": "brown",
"move_cost_mod": 3,
"comfort": 2,
"floor_bedding_warmth": 100,
@@ -24,8 +24,7 @@
"sound": "smash!",
"sound_fail": "whump.",
"items": [ { "item": "2x4", "count": [ 2, 6 ] }, { "item": "nail", "charges": [ 4, 12 ] }, { "item": "splinter", "count": 1 } ]
},
"shoot": { "reduce_damage": [ 5, 20 ], "reduce_damage_laser": [ 5, 20 ], "destroy_damage": [ 15, 45 ] }
}
},
{
"type": "furniture",
@@ -88,11 +87,6 @@
]
},
"max_volume": "875 L",
"prying": {
"result": "f_coffin_o",
"message": "You wedge open the coffin.",
"prying_data": { "difficulty": 5, "prying_level": 2, "noisy": true, "failure": "You pry, but the coffin remains closed." }
},
"bash": {
"str_min": 12,
"str_max": 40,
@@ -164,11 +158,6 @@
"deconstruct": {
"items": [ { "item": "2x4", "count": 4 }, { "item": "wood_panel", "count": [ 1, 2 ] }, { "item": "nail", "charges": [ 6, 10 ] } ]
},
"prying": {
"result": "f_crate_o",
"message": "You pop open the crate.",
"prying_data": { "difficulty": 6, "prying_level": 1, "noisy": true, "failure": "You pry, but can't pop open the crate." }
},
"bash": {
"str_min": 12,
"str_max": 40,
@@ -215,7 +204,17 @@
"max_volume": "324 L",
"deployed_item": "box_large",
"examine_action": "deployed_furniture",
"flags": [ "TRANSPARENT", "FLAMMABLE_ASH", "PLACE_ITEM", "ORGANIC", "EASY_DECONSTRUCT", "HIDE_PLACE", "NO_SIGHT", "CONTAINER" ],
"flags": [
"TRANSPARENT",
"FLAMMABLE_ASH",
"PLACE_ITEM",
"ORGANIC",
"EASY_DECONSTRUCT",
"BASHABLE",
"HIDE_PLACE",
"NO_SIGHT",
"CONTAINER"
],
"bash": {
"str_min": 2,
"str_max": 15,
@@ -283,74 +282,19 @@
]
}
},
{
"type": "furniture",
"id": "f_gunsafe_o",
"name": "open gun safe",
"description": "A large and heavy container with thick metal walls and a rotary combination lock, this is designed to securely store firearms, weapon mods, and ammunition.",
"symbol": "X",
"color": "light_gray",
"looks_like": "f_gunsafe_ml",
"move_cost_mod": -1,
"coverage": 30,
"required_str": 14,
"max_volume": "250 L",
"close": "f_gunsafe_c",
"flags": [ "TRANSPARENT", "CONTAINER", "PLACE_ITEM", "MOUNTABLE" ],
"bash": {
"str_min": 40,
"str_max": 200,
"sound": "screeching metal!",
"sound_fail": "whump!",
"items": [
{ "item": "steel_chunk", "count": [ 1, 5 ] },
{ "item": "scrap", "count": [ 1, 5 ] },
{ "item": "rock", "count": [ 1, 2 ] }
]
}
},
{
"type": "furniture",
"id": "f_gunsafe_c",
"name": "closed gun safe",
"description": "A large and heavy container with thick metal walls and a rotary combination lock, this is designed to securely store firearms, weapon mods, and ammunition.",
"symbol": "X",
"color": "light_gray",
"looks_like": "f_gunsafe_ml",
"move_cost_mod": -1,
"coverage": 30,
"required_str": 14,
"max_volume": "250 L",
"open": "f_gunsafe_o",
"flags": [ "TRANSPARENT", "CONTAINER", "SEALED", "PLACE_ITEM", "MOUNTABLE" ],
"bash": {
"str_min": 40,
"str_max": 200,
"sound": "screeching metal!",
"sound_fail": "whump!",
"items": [
{ "item": "steel_chunk", "count": [ 1, 5 ] },
{ "item": "scrap", "count": [ 1, 5 ] },
{ "item": "rock", "count": [ 1, 2 ] }
]
}
},
{
"type": "furniture",
"id": "f_gunsafe_ml",
"name": "locked gun safe",
"description": "A large and heavy container with thick metal walls and a rotary combination lock, this is designed to securely store firearms, weapon mods, and ammunition. If you had something to pick its lock with, you could probably open it.",
"name": "gun safe",
"description": "A large and heavy container with thick metal walls and a rotary combination lock, this is designed to securely store firearms, weapon mods, and ammunition. If you had something to listen close with and a hell of a lot of time, you could probably crack it.",
"symbol": "X",
"color": "light_gray",
"move_cost_mod": -1,
"coverage": 30,
"required_str": 14,
"max_volume": "250 L",
"flags": [ "TRANSPARENT", "CONTAINER", "SEALED", "PLACE_ITEM", "MOUNTABLE", "PICKABLE" ],
"lockpick_result": "f_gunsafe_o",
"lockpick_message": "With a satisfying click, the lock on the gun safe door opens.",
"flags": [ "TRANSPARENT", "CONTAINER", "SEALED", "PLACE_ITEM", "MOUNTABLE", "MINEABLE", "PICKABLE" ],
"examine_action": "locked_object_pickable",
"oxytorch": { "result": "f_safe_o", "duration": "14 seconds" },
"bash": {
"str_min": 40,
"str_max": 200,
@@ -375,8 +319,7 @@
"coverage": 30,
"required_str": 14,
"max_volume": "250 L",
"flags": [ "TRANSPARENT", "CONTAINER", "SEALED", "PLACE_ITEM", "MOUNTABLE" ],
"oxytorch": { "result": "f_safe_o", "duration": "14 seconds" },
"flags": [ "TRANSPARENT", "CONTAINER", "SEALED", "PLACE_ITEM", "MOUNTABLE", "MINEABLE" ],
"bash": {
"str_min": 40,
"str_max": 200,
@@ -401,8 +344,7 @@
"coverage": 30,
"required_str": 14,
"max_volume": "250 L",
"flags": [ "TRANSPARENT", "CONTAINER", "SEALED", "PLACE_ITEM", "MOUNTABLE" ],
"oxytorch": { "result": "f_safe_o", "duration": "14 seconds" },
"flags": [ "TRANSPARENT", "CONTAINER", "SEALED", "PLACE_ITEM", "MOUNTABLE", "MINEABLE" ],
"examine_action": "gunsafe_el",
"bash": {
"str_min": 40,
@@ -520,13 +462,7 @@
"move_cost_mod": -1,
"coverage": 70,
"required_str": 8,
"hacksaw": {
"duration": "2 minutes",
"message": "You finish cutting the metal.",
"byproducts": [ { "item": "pipe", "count": [ 1, 3 ] }, { "item": "steel_chunk", "count": 1 } ]
},
"flags": [ "TRANSPARENT", "FLAMMABLE_HARD", "PLACE_ITEM", "BLOCKSDOOR", "MOUNTABLE" ],
"oxytorch": { "duration": "1 seconds", "byproducts": [ { "item": "steel_chunk", "count": [ 2, 6 ] } ] },
"deconstruct": {
"items": [
{ "item": "pipe", "count": [ 6, 12 ] },
@@ -536,43 +472,7 @@
},
"max_volume": "1750 L",
"bash": {
"str_min": 10,
"str_max": 30,
"sound": "metal screeching!",
"sound_fail": "clang!",
"items": [
{ "item": "scrap", "count": [ 2, 8 ] },
{ "item": "steel_chunk", "count": [ 2, 4 ] },
{ "item": "sheet_metal_small", "count": [ 6, 10 ] },
{ "item": "pipe", "count": 1 }
]
}
},
{
"type": "furniture",
"id": "f_rack_l",
"looks_like": "f_rack",
"name": "locked display case",
"description": "A sheet metal shelving unit, with the storage surfaces angled in such a way as to show off the items stored. Metal fasteners with a lock hold the items securely to the rack.",
"symbol": "{",
"color": "light_gray",
"move_cost_mod": -1,
"coverage": 70,
"required_str": 8,
"flags": [ "TRANSPARENT", "FLAMMABLE_HARD", "PLACE_ITEM", "BLOCKSDOOR", "MOUNTABLE", "SEALED", "PICKABLE" ],
"lockpick_result": "f_rack",
"lockpick_message": "With a satisfying click, the lock opens.",
"examine_action": "locked_object_pickable",
"deconstruct": {
"items": [
{ "item": "pipe", "count": [ 6, 12 ] },
{ "item": "sheet_metal", "count": [ 1, 2 ] },
{ "item": "sheet_metal_small", "count": [ 0, 4 ] }
]
},
"max_volume": "1750 L",
"bash": {
"str_min": 10,
"str_min": 6,
"str_max": 30,
"sound": "metal screeching!",
"sound_fail": "clang!",
@@ -665,7 +565,7 @@
"coverage": 30,
"required_str": 14,
"max_volume": "250 L",
"flags": [ "TRANSPARENT", "CONTAINER", "SEALED", "PLACE_ITEM", "MOUNTABLE" ],
"flags": [ "TRANSPARENT", "CONTAINER", "SEALED", "PLACE_ITEM", "MOUNTABLE", "MINEABLE" ],
"open": "f_safe_o",
"examine_action": "open_safe",
"bash": {
@@ -692,8 +592,7 @@
"coverage": 30,
"required_str": 14,
"max_volume": "250 L",
"flags": [ "TRANSPARENT", "CONTAINER", "SEALED", "PLACE_ITEM", "MOUNTABLE" ],
"oxytorch": { "result": "f_safe_o", "duration": "14 seconds" },
"flags": [ "TRANSPARENT", "CONTAINER", "SEALED", "PLACE_ITEM", "MOUNTABLE", "MINEABLE" ],
"examine_action": "safe",
"bash": {
"str_min": 40,
@@ -719,7 +618,7 @@
"coverage": 30,
"required_str": 14,
"max_volume": "250 L",
"flags": [ "TRANSPARENT", "CONTAINER", "PLACE_ITEM", "MOUNTABLE" ],
"flags": [ "TRANSPARENT", "CONTAINER", "PLACE_ITEM", "MOUNTABLE", "MINEABLE" ],
"close": "f_safe_c",
"bash": {
"str_min": 40,
@@ -752,27 +651,6 @@
"items": [ { "item": "plastic_chunk", "count": [ 1, 2 ] } ]
}
},
{
"type": "furniture",
"id": "f_metal_trashcan",
"name": "metal trash can",
"symbol": "&",
"description": "A crude metal bin typically used to dispose of waste.",
"//": "The constructed trash can variant, deliberately looks like the original. Does not spawn naturally, although feel free to add it to worldgen.",
"color": "light_cyan",
"move_cost_mod": 1,
"required_str": 5,
"max_volume": "20 L",
"flags": [ "TRANSPARENT", "CONTAINER", "PLACE_ITEM", "MOUNTABLE", "SHORT" ],
"deconstruct": { "items": [ { "item": "sheet_metal", "count": 2 } ] },
"bash": {
"str_min": 9,
"str_max": 30,
"sound": "metal screeching!",
"sound_fail": "clang!",
"items": [ { "item": "sheet_metal", "count": [ 1, 2 ] } ]
}
},
{
"type": "furniture",
"id": "f_wardrobe",
@@ -902,7 +780,7 @@
"id": "f_wood_keg",
"name": "wooden keg",
"looks_like": "f_standing_tank",
"description": "A large standing wooden barrel, completely watertight. Good for storing liquids of all kinds.",
"description": "A large standing wooden barrel, completely watertight. Good for storing liquids of all kinds or fermenting alcohol.",
"symbol": "H",
"color": "brown",
"move_cost_mod": -1,
@@ -946,33 +824,7 @@
"move_cost_mod": 2,
"coverage": 80,
"required_str": 9,
"flags": [ "TRANSPARENT", "SEALED", "PLACE_ITEM", "PICKABLE" ],
"lockpick_result": "f_displaycase_o",
"lockpick_message": "With a satisfying click, the lock and the display case opens",
"examine_action": "locked_object_pickable",
"bash": {
"str_min": 6,
"str_max": 20,
"sound": "glass breaking",
"sound_fail": "whack!",
"sound_vol": 16,
"sound_fail_vol": 12,
"furn_set": "f_displaycase_b",
"items": [ { "item": "glass_shard", "count": [ 25, 50 ] } ]
}
},
{
"type": "furniture",
"id": "f_displaycase_o",
"name": "open display case",
"looks_like": "f_rack",
"description": "A secure wooden case at about waist-height, with glass panelling on the top. Useful for storing valuable things while still showing them off. Not actually as secure as it looks, as the display windows are easily broken. This one has had its lock picked and is open.",
"symbol": "#",
"color": "light_cyan",
"move_cost_mod": 2,
"coverage": 80,
"required_str": 9,
"flags": [ "TRANSPARENT", "PLACE_ITEM" ],
"flags": [ "TRANSPARENT", "SEALED", "PLACE_ITEM" ],
"bash": {
"str_min": 6,
"str_max": 20,
@@ -1004,79 +856,6 @@
"items": [ { "item": "2x4", "count": [ 3, 6 ] }, { "item": "splinter", "count": [ 2, 4 ] } ]
}
},
{
"type": "furniture",
"id": "f_fireman_cabinet",
"name": "fireman's cabinet",
"looks_like": "f_displaycase",
"description": "A metallic cabinet painted to stand out, visibly holding tools behind a thin panel of tempered glass.",
"symbol": "#",
"color": "light_red",
"move_cost_mod": -1,
"coverage": 80,
"required_str": -1,
"flags": [ "TRANSPARENT", "SEALED", "PLACE_ITEM", "PICKABLE" ],
"lockpick_result": "f_fireman_cabinet_o",
"lockpick_message": "With a satisfying click, the lock on the cabinet opens.",
"examine_action": "locked_object_pickable",
"bash": {
"str_min": 6,
"str_max": 20,
"sound": "glass breaking",
"sound_fail": "whack!",
"sound_vol": 16,
"sound_fail_vol": 12,
"furn_set": "f_fireman_cabinet_b",
"items": [ { "item": "glass_shard", "count": [ 25, 50 ] } ]
}
},
{
"type": "furniture",
"id": "f_fireman_cabinet_o",
"name": "unlocked fireman's cabinet",
"looks_like": "f_displaycase",
"description": "A metallic cabinet painted to stand out. Its glass panel door was left unlocked and slightly ajar.",
"symbol": "#",
"color": "light_red",
"move_cost_mod": -1,
"coverage": 80,
"required_str": -1,
"flags": [ "TRANSPARENT", "PLACE_ITEM" ],
"bash": {
"str_min": 6,
"str_max": 20,
"sound": "glass breaking",
"sound_fail": "whack!",
"sound_vol": 16,
"sound_fail_vol": 12,
"furn_set": "f_fireman_cabinet_b",
"items": [ { "item": "glass_shard", "count": [ 25, 50 ] } ]
}
},
{
"type": "furniture",
"id": "f_fireman_cabinet_b",
"name": "open fireman's cabinet",
"looks_like": "f_displaycase_b",
"description": "A metallic cabinet painted to stand out. Its protective glass panel lies broken from some past emergency or looting attempt.",
"symbol": "#",
"color": "light_red",
"move_cost_mod": -1,
"coverage": 80,
"required_str": -1,
"flags": [ "TRANSPARENT", "PLACE_ITEM" ],
"bash": {
"str_min": 10,
"str_max": 20,
"sound": "metal screeching!",
"sound_fail": "clang!",
"items": [
{ "item": "scrap", "count": [ 2, 8 ] },
{ "item": "pipe", "count": [ 1, 3 ] },
{ "item": "water_faucet", "prob": 50 }
]
}
},
{
"type": "furniture",
"id": "f_standing_tank",
@@ -1087,7 +866,7 @@
"move_cost_mod": -1,
"coverage": 90,
"required_str": -1,
"flags": [ "CONTAINER", "LIQUIDCONT", "NOITEM", "SEALED", "TRANSPARENT" ],
"flags": [ "BASHABLE", "CONTAINER", "DECONSTRUCT", "LIQUIDCONT", "NOITEM", "SEALED", "TRANSPARENT" ],
"deconstruct": { "items": [ { "item": "metal_tank", "count": 4 }, { "item": "water_faucet", "count": 1 } ] },
"examine_action": "keg",
"keg_capacity": 1200,
@@ -1285,12 +1064,6 @@
"required_str": 12,
"max_volume": "1000 L",
"flags": [ "CONTAINER", "SEALED", "BLOCKSDOOR", "MOUNTABLE", "FLAT_SURF" ],
"prying": {
"result": "f_metal_crate_o",
"message": "You wrench open the metal crate.",
"byproducts": [ { "item": "sheet_metal", "count": 1 } ],
"prying_data": { "difficulty": 4, "prying_level": 1, "noisy": true, "failure": "The lid is sealed more tightly than you thought." }
},
"bash": {
"str_min": 30,
"str_max": 150,
@@ -237,7 +237,7 @@
{
"type": "furniture",
"id": "f_tourist_table",
"name": "folding table",
"name": "tourist table",
"description": "Small metal folding table, ideal for off-road trips into the wild. Can be used as a workbench in a pinch.",
"symbol": "#",
"bgcolor": "light_gray",
@@ -43,6 +43,7 @@
"ORGANIC",
"REDUCE_SCENT",
"EASY_DECONSTRUCT",
"BASHABLE",
"HIDE_PLACE",
"NO_SIGHT"
],
@@ -81,6 +82,7 @@
"ORGANIC",
"REDUCE_SCENT",
"EASY_DECONSTRUCT",
"BASHABLE",
"HIDE_PLACE",
"NO_SIGHT",
"BLOCK_WIND"
@@ -110,7 +112,7 @@
{ "item": "box_medium", "count": 2 },
{ "item": "box_small", "count": 4 },
{ "item": "rag", "count": 50 },
{ "item": "paper", "count": [ 30, 80 ] },
{ "item": "paper", "count": 50 },
{ "item": "plastic_chunk", "count": 20 },
{ "item": "plastic_sheet", "count": 2 }
]
@@ -125,7 +127,7 @@
{ "item": "box_medium", "count": [ 0, 2 ] },
{ "item": "box_small", "count": [ 0, 4 ] },
{ "item": "rag", "count": [ 20, 50 ] },
{ "item": "paper", "count": [ 30, 80 ] },
{ "item": "paper", "count": [ 50, 150 ] },
{ "item": "plastic_chunk", "count": [ 5, 20 ] },
{ "item": "plastic_sheet", "count": [ 0, 2 ] }
]
@@ -674,7 +676,7 @@
"coverage": 45,
"required_str": 16,
"crafting_pseudo_item": "boulder_anvil",
"flags": [ "NOITEM", "TRANSPARENT", "MINEABLE", "UNSTABLE", "MOUNTABLE", "SHORT" ],
"flags": [ "NOITEM", "TRANSPARENT", "MINEABLE", "UNSTABLE", "MOUNTABLE", "SHORT", "BASHABLE" ],
"bash": {
"str_min": 32,
"str_max": 80,
@@ -693,7 +695,7 @@
"move_cost_mod": -1,
"coverage": 65,
"required_str": 32,
"flags": [ "NOITEM", "MINEABLE", "BLOCK_WIND" ],
"flags": [ "NOITEM", "MINEABLE", "BASHABLE", "BLOCK_WIND" ],
"bash": {
"str_min": 64,
"str_max": 160,
@@ -720,7 +722,7 @@
"move_cost_mod": -1,
"coverage": 40,
"required_str": 32,
"flags": [ "TRANSPARENT" ],
"flags": [ "BASHABLE", "TRANSPARENT" ],
"bash": {
"str_min": 30,
"str_max": 100,
@@ -747,7 +749,7 @@
"move_cost_mod": -1,
"coverage": 40,
"required_str": 32,
"flags": [ "TRANSPARENT" ],
"flags": [ "BASHABLE", "TRANSPARENT" ],
"bash": {
"str_min": 30,
"str_max": 100,
@@ -773,6 +775,7 @@
"move_cost_mod": -1,
"coverage": 40,
"required_str": 26,
"flags": [ "BASHABLE" ],
"bash": {
"str_min": 20,
"str_max": 100,
@@ -400,7 +400,7 @@
"name": "rock forge",
"looks_like": "f_fireplace",
"description": "Metalworking station made of rock, typically used in combination with an anvil. Works as a charcoal forge in crafting recipes.",
"symbol": "U",
"symbol": "^",
"color": "light_red",
"move_cost_mod": -1,
"coverage": 40,
@@ -423,7 +423,7 @@
"name": "clay kiln",
"looks_like": "f_fireplace",
"description": "A kiln designed to bake clay pottery and bricks.",
"symbol": "U",
"symbol": "^",
"color": "light_red",
"move_cost_mod": -1,
"coverage": 40,
@@ -470,7 +470,7 @@
"id": "f_arc_furnace",
"name": "electric arc furnace",
"looks_like": "f_machinery_heavy",
"description": "Not the kind of furnace you'd heat your house with, this is a device for heating things to extreme temperatures as part of industrial fabrication processes. Can be used in recipes instead of forge, when supplied with power from UPS.",
"description": "Not the kind of furnace you'd heat your house with, this is a device for heating things to extreme temperatures as part of industrial fabrication processes.",
"symbol": "0",
"color": "white_red",
"move_cost_mod": -1,
@@ -505,7 +505,7 @@
"id": "f_drill_press",
"name": "drill press",
"looks_like": "f_machinery_light",
"description": "A powerful drill mounted on a slide that lets it drop precisely down. Useful in all kinds of projects from industrial fabrication to home woodworking, if supplied with power from UPS.",
"description": "A powerful drill mounted on a slide that lets it drop precisely down. Useful in all kinds of projects from industrial fabrication to home woodworking.",
"symbol": "7",
"color": "yellow_red",
"move_cost_mod": -1,
@@ -538,39 +538,12 @@
},
"crafting_pseudo_item": "fake_drill_press"
},
{
"type": "furniture",
"id": "f_firefly_terrarium",
"name": "firefly terrarium",
"description": "While many survivors would have focused on trying to bring back electric lights, whomever lives here has apparently decided to make use of the changes wrought by the cataclysm to provide light. This vivarium contains soil, strange plants you don't recognize immediately, and most strikingly, a giant mutant firefly.",
"symbol": "#",
"color": "light_green",
"move_cost_mod": 3,
"coverage": 30,
"required_str": 6,
"light_emitted": 25,
"flags": [ "TRANSPARENT", "NOITEM", "BLOCKSDOOR" ],
"bash": {
"str_min": 20,
"str_max": 30,
"sound_fail": "smash!",
"items": [
{ "item": "glass_shard", "count": [ 8, 12 ] },
{ "item": "alien_fern", "count": [ 0, 3 ] },
{ "item": "mutant_meat", "count": [ 2, 4 ] },
{ "item": "material_soil", "count": [ 2, 10 ] },
{ "item": "mutant_bug_hydrogen_sacs", "count": [ 0, 2 ] },
{ "item": "egg_firefly", "count": [ 0, 1 ] },
{ "item": "mutant_bug_organs", "charges": [ 0, 5 ] }
]
}
},
{
"type": "furniture",
"id": "f_tablesaw",
"name": "tablesaw",
"looks_like": "f_machinery_light",
"description": "A rotating saw blade set into a large flat table, for making straight measured cuts, if supplied with power from UPS. One of the key tools in a carpenter's arsenal.",
"description": "A rotating saw blade set into a large flat table, for making straight measured cuts. One of the key tools in a carpenter's arsenal.",
"symbol": "7",
"color": "yellow_red",
"move_cost_mod": 8,
@@ -609,7 +582,7 @@
"id": "f_mitresaw",
"name": "mitre saw",
"looks_like": "f_machinery_light",
"description": "A circular saw blade on an arm that can slide and rotate in several directions, this is a staple tool for nearly any carpentry, if supplied with power from UPS.",
"description": "A circular saw blade on an arm that can slide and rotate in several directions, this is a staple tool for nearly any carpentry.",
"symbol": "7",
"color": "yellow_cyan",
"move_cost_mod": -1,
@@ -648,7 +621,7 @@
"id": "f_bandsaw",
"name": "bandsaw",
"looks_like": "f_machinery_light",
"description": "A ribbonlike sawblade runs in a single direction in this tool, allowing precise cuts at almost any angle, if supplied with power from UPS.",
"description": "A ribbonlike sawblade runs in a single direction in this tool, allowing precise cuts at almost any angle.",
"symbol": "7",
"color": "yellow_cyan",
"move_cost_mod": -1,
@@ -686,7 +659,7 @@
"id": "f_router",
"name": "router table",
"looks_like": "f_machinery_light",
"description": "This table has an inset router, a rotating motor with an exchangeable blade head for cutting specific profiles and grooves and stuff, if supplied with power from UPS.",
"description": "This table has an inset router, a rotating motor with an exchangeable blade head for cutting specific profiles and grooves and stuff.",
"symbol": "7",
"color": "yellow_green",
"move_cost_mod": 8,
@@ -724,7 +697,7 @@
"id": "f_planer",
"name": "planer",
"looks_like": "f_machinery_light",
"description": "A hefty tool that will take in a board and cut it smooth and flat to a specific width, if supplied with power from UPS. Particularly great if working with raw lumber stock, but also good just for shaving wood down to size.",
"description": "A hefty tool that will take in a board and cut it smooth and flat to a specific width. Particularly great if working with raw lumber stock, but also good just for shaving wood down to size.",
"symbol": "7",
"color": "yellow_white",
"move_cost_mod": -1,
@@ -762,7 +735,7 @@
"id": "f_jointer",
"name": "jointer",
"looks_like": "f_machinery_light",
"description": "A table-shaped tool with a rotating blade that will cut down, smooth out, and square off a board to make it very smooth and nice indeed, if supplied with power from UPS.",
"description": "A table-shaped tool with a rotating blade that will cut down, smooth out, and square off a board to make it very smooth and nice indeed.",
"symbol": "7",
"color": "yellow_magenta",
"move_cost_mod": 8,
@@ -800,7 +773,7 @@
"id": "f_hydraulic_press",
"name": "hydraulic press",
"looks_like": "f_machinery_light",
"description": "If you really want to squash something a lot, this would be exactly the right industrial tool for you, if supplied with power from UPS.",
"description": "If you really want to squash something a lot, this would be exactly the right industrial tool for you. If, you know, it had power.",
"symbol": "9",
"color": "black_red",
"move_cost_mod": -1,
@@ -838,7 +811,7 @@
"id": "f_heavy_lathe",
"name": "power lathe",
"looks_like": "f_machinery_light",
"description": "An industrial-grade lathe, for turning chunks of metal and other hard things into round chunks of metal and other hard things, if supplied with power from UPS.",
"description": "An industrial-grade lathe, for turning chunks of metal and other hard things into round chunks of metal and other hard things.",
"symbol": "4",
"color": "cyan_red",
"move_cost_mod": -1,
@@ -873,7 +846,7 @@
"id": "f_air_compressor",
"name": "air compressor",
"looks_like": "f_standing_tank",
"description": "This durable tank is topped with a motor that will cram as much air into the tank as possible, if supplied with power from UPS.",
"description": "This durable tank is topped with a motor that will cram as much air into the tank as possible.",
"symbol": "8",
"color": "black_yellow",
"move_cost_mod": -1,
@@ -912,38 +885,6 @@
},
"crafting_pseudo_item": "fake_air_compressor"
},
{
"type": "furniture",
"id": "f_manual_tire_changer",
"name": "manual tire changer",
"looks_like": "f_machinery_light",
"description": "This floor mounted machine contains all the levers, clamps and mounts required to remove or fit a tire, plus an integrated foot pump to inflate it.",
"symbol": "7",
"color": "black_yellow",
"move_cost_mod": -1,
"coverage": 30,
"required_str": 10,
"flags": [ "BLOCKSDOOR" ],
"deconstruct": {
"items": [
{ "item": "scrap", "count": [ 2, 6 ] },
{ "item": "steel_chunk", "count": [ 1, 3 ] },
{ "item": "plastic_chunk", "count": [ 4, 6 ] }
]
},
"bash": {
"str_min": 18,
"str_max": 50,
"sound": "metal screeching!",
"sound_fail": "clang!",
"items": [
{ "item": "scrap", "count": [ 2, 7 ] },
{ "item": "steel_chunk", "count": [ 0, 3 ] },
{ "item": "plastic_chunk", "count": [ 0, 2 ] }
]
},
"crafting_pseudo_item": "fake_tire_changer"
},
{
"type": "furniture",
"id": "f_fvat_empty",
@@ -1253,13 +1194,7 @@
"items": [
{ "item": "glass_shard", "count": [ 8, 25 ] },
{ "item": "sheet_metal", "count": [ 0, 2 ] },
{ "item": "steel_chunk", "count": [ 1, 5 ] },
{ "item": "money_one", "count": [ 0, 100 ] },
{ "item": "money_two", "count": [ 0, 20 ] },
{ "item": "money_five", "count": [ 0, 100 ] },
{ "item": "money_ten", "count": [ 0, 100 ] },
{ "item": "money_twenty", "count": [ 0, 100 ] },
{ "item": "money_fifty", "count": [ 0, 50 ] }
{ "item": "steel_chunk", "count": [ 1, 5 ] }
]
}
},
@@ -1309,14 +1244,7 @@
{ "item": "steel_chunk", "count": [ 0, 3 ] },
{ "item": "hose", "count": 1 },
{ "item": "cu_pipe", "count": [ 1, 4 ] },
{ "item": "scrap_copper", "count": [ 0, 2 ] },
{ "item": "coin_nickel", "count": [ 0, 100 ] },
{ "item": "coin_dime", "count": [ 0, 100 ] },
{ "item": "coin_quarter", "count": [ 0, 100 ] },
{ "item": "coin_dollar", "count": [ 0, 1 ] },
{ "item": "money_one", "count": [ 0, 100 ] },
{ "item": "money_two", "count": [ 0, 10 ] },
{ "item": "money_five", "count": [ 0, 30 ] }
{ "item": "scrap_copper", "count": [ 0, 2 ] }
]
}
},
@@ -1,52 +0,0 @@
[
{
"type": "furniture",
"id": "f_glowingbulb",
"name": "illuminating plant bulb",
"description": "A small plant grows among the roots here, its green onion-like bulb illuminating the area around it.",
"symbol": "!",
"color": "brown",
"move_cost_mod": 6,
"required_str": -1,
"light_emitted": 15,
"flags": [ "TRANSPARENT", "FLAMMABLE_ASH", "ORGANIC" ],
"bash": {
"str_min": 6,
"str_max": 30,
"sound": "smash!",
"sound_fail": "whump.",
"items": [ { "item": "splinter", "count": [ 3, 5 ] } ]
}
},
{
"type": "furniture",
"id": "f_brambles",
"name": "brambles",
"symbol": "#",
"bgcolor": "brown",
"description": "A wall of tangled roots blocks the path here, you'd have destroy it to get past.",
"move_cost_mod": -1,
"coverage": 60,
"required_str": -1,
"flags": [ "TRANSPARENT", "BLOCKSDOOR", "SHORT", "THIN_OBSTACLE" ],
"bash": {
"str_min": 10,
"str_max": 60,
"sound": "smash",
"sound_fail": "whump.",
"items": [ { "item": "splinter", "count": [ 10, 15 ] } ]
}
},
{
"type": "furniture",
"id": "f_midden",
"name": "composting midden",
"description": "A hole that has been dug into the roots here, and a pretty unpleasant smell emits from it.",
"symbol": "O",
"bgcolor": "brown",
"move_cost_mod": 3,
"coverage": 35,
"required_str": -1,
"flags": [ "TRANSPARENT", "CONTAINER", "PLACE_ITEM", "SHORT", "MOUNTABLE" ]
}
]
@@ -20,8 +20,7 @@
"sound_fail_vol": 14,
"ter_set": "t_mdoor_frame",
"items": [ { "item": "glass_shard", "count": [ 42, 84 ] }, { "item": "scrap", "count": [ 3, 5 ] } ]
},
"shoot": { "reduce_damage": [ 2, 12 ], "reduce_damage_laser": [ 0, 7 ], "destroy_damage": [ 40, 120 ], "no_laser_destroy": true }
}
},
{
"type": "terrain",
@@ -67,12 +66,6 @@
"sound_fail_vol": 14,
"ter_set": "t_mdoor_frame",
"items": [ { "item": "glass_shard", "count": [ 42, 84 ] }, { "item": "scrap", "count": [ 3, 5 ] } ]
},
"shoot": {
"reduce_damage": [ 30, 60 ],
"reduce_damage_laser": [ 0, 10 ],
"destroy_damage": [ 80, 200 ],
"no_laser_destroy": true
}
},
{
@@ -123,12 +116,6 @@
{ "item": "wire", "prob": 20 },
{ "item": "scrap", "count": [ 3, 5 ] }
]
},
"shoot": {
"reduce_damage": [ 15, 30 ],
"reduce_damage_laser": [ 0, 10 ],
"destroy_damage": [ 60, 160 ],
"no_laser_destroy": true
}
},
{
@@ -156,12 +143,6 @@
{ "item": "wire", "prob": 20 },
{ "item": "scrap", "count": [ 3, 5 ] }
]
},
"shoot": {
"reduce_damage": [ 15, 30 ],
"reduce_damage_laser": [ 0, 10 ],
"destroy_damage": [ 60, 160 ],
"no_laser_destroy": true
}
},
{
@@ -253,9 +234,7 @@
{ "item": "splinter", "count": [ 1, 2 ] },
{ "item": "nail", "charges": [ 0, 2 ] }
]
},
"prying": { "result": "t_door_o", "message": "You notice the door is unlocked, so you simply open it.", "prying_data": { } },
"shoot": { "reduce_damage": [ 15, 30 ], "reduce_damage_laser": [ 5, 20 ], "destroy_damage": [ 20, 90 ] }
}
},
{
"type": "terrain",
@@ -293,8 +272,7 @@
{ "item": "splinter", "count": [ 1, 2 ] },
{ "item": "nail", "charges": [ 0, 2 ] }
]
},
"shoot": { "reduce_damage": [ 15, 30 ], "reduce_damage_laser": [ 5, 20 ], "destroy_damage": [ 20, 90 ] }
}
},
{
"type": "terrain",
@@ -332,8 +310,7 @@
{ "item": "splinter", "count": [ 1, 2 ] },
{ "item": "nail", "charges": [ 0, 2 ] }
]
},
"shoot": { "reduce_damage": [ 15, 30 ], "reduce_damage_laser": [ 5, 20 ], "destroy_damage": [ 20, 90 ] }
}
},
{
"type": "terrain",
@@ -371,8 +348,7 @@
{ "item": "splinter", "count": [ 1, 2 ] },
{ "item": "nail", "charges": [ 0, 2 ] }
]
},
"shoot": { "reduce_damage": [ 15, 30 ], "reduce_damage_laser": [ 5, 20 ], "destroy_damage": [ 20, 90 ] }
}
},
{
"type": "terrain",
@@ -410,8 +386,7 @@
{ "item": "splinter", "count": [ 1, 2 ] },
{ "item": "nail", "charges": [ 0, 2 ] }
]
},
"shoot": { "reduce_damage": [ 15, 30 ], "reduce_damage_laser": [ 5, 20 ], "destroy_damage": [ 20, 90 ] }
}
},
{
"type": "terrain",
@@ -449,8 +424,7 @@
{ "item": "splinter", "count": [ 1, 2 ] },
{ "item": "nail", "charges": [ 0, 2 ] }
]
},
"shoot": { "reduce_damage": [ 15, 30 ], "reduce_damage_laser": [ 5, 20 ], "destroy_damage": [ 20, 90 ] }
}
},
{
"type": "terrain",
@@ -634,8 +608,7 @@
{ "item": "splinter", "count": [ 1, 4 ] },
{ "item": "hinge", "count": [ 1, 2 ] }
]
},
"shoot": { "chance_to_hit": 20, "reduce_damage": [ 10, 25 ], "reduce_damage_laser": [ 5, 20 ], "destroy_damage": [ 20, 70 ] }
}
},
{
"type": "terrain",
@@ -671,8 +644,7 @@
{ "item": "splinter", "count": [ 1, 4 ] },
{ "item": "hinge", "count": [ 1, 2 ] }
]
},
"shoot": { "chance_to_hit": 20, "reduce_damage": [ 10, 25 ], "reduce_damage_laser": [ 5, 20 ], "destroy_damage": [ 20, 70 ] }
}
},
{
"type": "terrain",
@@ -708,8 +680,7 @@
{ "item": "splinter", "count": [ 1, 4 ] },
{ "item": "hinge", "count": [ 1, 2 ] }
]
},
"shoot": { "chance_to_hit": 20, "reduce_damage": [ 10, 25 ], "reduce_damage_laser": [ 5, 20 ], "destroy_damage": [ 20, 70 ] }
}
},
{
"type": "terrain",
@@ -745,8 +716,7 @@
{ "item": "splinter", "count": [ 1, 4 ] },
{ "item": "hinge", "count": [ 1, 2 ] }
]
},
"shoot": { "chance_to_hit": 20, "reduce_damage": [ 10, 25 ], "reduce_damage_laser": [ 5, 20 ], "destroy_damage": [ 20, 70 ] }
}
},
{
"type": "terrain",
@@ -870,8 +840,7 @@
"sound_fail_vol": 10,
"ter_set": "t_door_red_frame",
"items": [ { "item": "glass_shard", "count": [ 42, 84 ] } ]
},
"shoot": { "reduce_damage": [ 1, 8 ], "reduce_damage_laser": [ 0, 5 ], "destroy_damage": [ 4, 16 ], "no_laser_destroy": true }
}
},
{
"type": "terrain",
@@ -895,8 +864,7 @@
"sound_fail_vol": 10,
"ter_set": "t_door_green_frame",
"items": [ { "item": "glass_shard", "count": [ 42, 84 ] } ]
},
"shoot": { "reduce_damage": [ 1, 8 ], "reduce_damage_laser": [ 0, 5 ], "destroy_damage": [ 4, 16 ], "no_laser_destroy": true }
}
},
{
"type": "terrain",
@@ -920,8 +888,7 @@
"sound_fail_vol": 10,
"ter_set": "t_door_white_frame",
"items": [ { "item": "glass_shard", "count": [ 42, 84 ] } ]
},
"shoot": { "reduce_damage": [ 1, 8 ], "reduce_damage_laser": [ 0, 5 ], "destroy_damage": [ 4, 16 ], "no_laser_destroy": true }
}
},
{
"type": "terrain",
@@ -945,8 +912,7 @@
"sound_fail_vol": 10,
"ter_set": "t_door_gray_frame",
"items": [ { "item": "glass_shard", "count": [ 42, 84 ] } ]
},
"shoot": { "reduce_damage": [ 1, 8 ], "reduce_damage_laser": [ 0, 5 ], "destroy_damage": [ 4, 16 ], "no_laser_destroy": true }
}
},
{
"type": "terrain",
@@ -970,8 +936,7 @@
"sound_fail_vol": 10,
"ter_set": "t_door_red_frame",
"items": [ { "item": "glass_shard", "count": [ 42, 84 ] } ]
},
"shoot": { "reduce_damage": [ 1, 8 ], "reduce_damage_laser": [ 0, 5 ], "destroy_damage": [ 4, 16 ], "no_laser_destroy": true }
}
},
{
"type": "terrain",
@@ -1082,9 +1047,7 @@
{ "item": "splinter", "count": [ 1, 2 ] },
{ "item": "nail", "charges": [ 0, 2 ] }
]
},
"prying": { "result": "t_door_o_peep", "message": "You notice the door is unlocked, so you simply open it.", "prying_data": { } },
"shoot": { "reduce_damage": [ 15, 30 ], "reduce_damage_laser": [ 5, 20 ], "destroy_damage": [ 20, 90 ] }
}
},
{
"type": "terrain",
@@ -1120,8 +1083,7 @@
{ "item": "splinter", "count": [ 1, 4 ] },
{ "item": "hinge", "count": [ 1, 2 ] }
]
},
"shoot": { "chance_to_hit": 20, "reduce_damage": [ 10, 25 ], "reduce_damage_laser": [ 5, 20 ], "destroy_damage": [ 20, 70 ] }
}
},
{
"type": "terrain",
@@ -1157,8 +1119,7 @@
{ "item": "splinter", "count": [ 1, 4 ] },
{ "item": "hinge", "count": [ 1, 2 ] }
]
},
"shoot": { "chance_to_hit": 20, "reduce_damage": [ 10, 25 ], "reduce_damage_laser": [ 5, 20 ], "destroy_damage": [ 20, 70 ] }
}
},
{
"type": "terrain",
@@ -1196,8 +1157,7 @@
{ "item": "splinter", "count": [ 1, 4 ] },
{ "item": "hinge", "count": [ 1, 2 ] }
]
},
"shoot": { "chance_to_hit": 20, "reduce_damage": [ 10, 25 ], "reduce_damage_laser": [ 5, 20 ], "destroy_damage": [ 20, 70 ] }
}
},
{
"type": "terrain",
@@ -1345,8 +1305,7 @@
{ "item": "splinter", "count": [ 2, 4 ] },
{ "item": "nail", "charges": [ 4, 12 ] }
]
},
"shoot": { "reduce_damage": [ 20, 35 ], "reduce_damage_laser": [ 10, 30 ], "destroy_damage": [ 30, 100 ] }
}
},
{
"type": "terrain",
@@ -1382,8 +1341,7 @@
{ "item": "splinter", "count": [ 2, 4 ] },
{ "item": "hinge", "count": [ 0, 1 ] }
]
},
"shoot": { "chance_to_hit": 20, "reduce_damage": [ 15, 30 ], "reduce_damage_laser": [ 10, 30 ], "destroy_damage": [ 30, 80 ] }
}
},
{
"type": "terrain",
@@ -1432,8 +1390,6 @@
"color": "brown",
"move_cost": 0,
"coverage": 95,
"lockpick_result": "t_door_c",
"lockpick_message": "With a satisfying click, the lock on the door opens.",
"roof": "t_flat_roof",
"flags": [
"FLAMMABLE_ASH",
@@ -1460,13 +1416,7 @@
{ "item": "splinter", "count": [ 1, 2 ] },
{ "item": "nail", "charges": [ 0, 2 ] }
]
},
"prying": {
"result": "t_door_o",
"message": "You pry open the door.",
"prying_data": { "difficulty": 6, "prying_level": 2, "noisy": true, "failure": "You pry, but can't pry open the door." }
},
"shoot": { "reduce_damage": [ 15, 30 ], "reduce_damage_laser": [ 5, 20 ], "destroy_damage": [ 20, 90 ] }
}
},
{
"type": "terrain",
@@ -1478,8 +1428,6 @@
"color": "brown",
"move_cost": 0,
"coverage": 95,
"lockpick_result": "t_door_c",
"lockpick_message": "With a satisfying click, the lock on the door opens.",
"roof": "t_flat_roof",
"flags": [
"FLAMMABLE_ASH",
@@ -1508,13 +1456,7 @@
{ "item": "splinter", "count": [ 1, 2 ] },
{ "item": "nail", "charges": [ 0, 2 ] }
]
},
"prying": {
"result": "t_door_o",
"message": "You pry open the door.",
"prying_data": { "difficulty": 6, "prying_level": 2, "noisy": true, "failure": "You pry, but can't pry open the door." }
},
"shoot": { "reduce_damage": [ 15, 30 ], "reduce_damage_laser": [ 5, 20 ], "destroy_damage": [ 20, 90 ] }
}
},
{
"type": "terrain",
@@ -1526,8 +1468,6 @@
"color": "brown",
"move_cost": 0,
"coverage": 95,
"lockpick_result": "t_door_c_peep",
"lockpick_message": "With a satisfying click, the lock on the door opens.",
"roof": "t_flat_roof",
"flags": [
"FLAMMABLE_ASH",
@@ -1556,13 +1496,7 @@
{ "item": "splinter", "count": [ 1, 2 ] },
{ "item": "nail", "charges": [ 0, 2 ] }
]
},
"prying": {
"result": "t_door_o_peep",
"message": "You pry open the door.",
"prying_data": { "difficulty": 6, "prying_level": 2, "noisy": true, "failure": "You pry, but can't pry open the door." }
},
"shoot": { "reduce_damage": [ 15, 30 ], "reduce_damage_laser": [ 5, 20 ], "destroy_damage": [ 20, 90 ] }
}
},
{
"type": "terrain",
@@ -1574,8 +1508,6 @@
"color": "brown",
"move_cost": 0,
"coverage": 95,
"lockpick_result": "t_door_c",
"lockpick_message": "With a satisfying click, the lock on the door opens.",
"roof": "t_flat_roof",
"flags": [
"FLAMMABLE_ASH",
@@ -1603,13 +1535,7 @@
{ "item": "splinter", "count": [ 1, 2 ] },
{ "item": "nail", "charges": [ 0, 2 ] }
]
},
"prying": {
"result": "t_door_o",
"message": "You pry open the door.",
"prying_data": { "difficulty": 6, "prying_level": 2, "noisy": true, "alarm": true, "failure": "You pry, but can't pry open the door." }
},
"shoot": { "reduce_damage": [ 15, 30 ], "reduce_damage_laser": [ 5, 20 ], "destroy_damage": [ 20, 90 ] }
}
},
{
"type": "terrain",
@@ -1871,15 +1797,7 @@
{ "item": "nail", "charges": [ 2, 10 ] },
{ "item": "splinter", "count": [ 1, 2 ] }
]
},
"prying": {
"result": "t_door_c",
"duration": "30 seconds",
"message": "You pry the boards from the door.",
"byproducts": [ { "item": "nail", "count": 8 }, { "item": "2x4", "count": 4 } ],
"prying_data": { "prying_nails": true }
},
"shoot": { "reduce_damage": [ 20, 35 ], "reduce_damage_laser": [ 10, 30 ], "destroy_damage": [ 30, 90 ] }
}
},
{
"type": "terrain",
@@ -1907,15 +1825,7 @@
{ "item": "splinter", "count": 1 },
{ "item": "hinge", "count": [ 1, 2 ] }
]
},
"prying": {
"result": "t_door_b",
"duration": "30 seconds",
"message": "You pry the boards from the door.",
"byproducts": [ { "item": "nail", "count": 8 }, { "item": "2x4", "count": 4 } ],
"prying_data": { "prying_nails": true }
},
"shoot": { "reduce_damage": [ 15, 30 ], "reduce_damage_laser": [ 10, 30 ], "destroy_damage": [ 30, 70 ] }
}
},
{
"type": "terrain",
@@ -1943,15 +1853,7 @@
{ "item": "nail", "charges": [ 2, 10 ] },
{ "item": "splinter", "count": [ 1, 2 ] }
]
},
"prying": {
"result": "t_door_c_peep",
"duration": "30 seconds",
"message": "You pry the boards from the door.",
"byproducts": [ { "item": "nail", "count": 8 }, { "item": "2x4", "count": 4 } ],
"prying_data": { "prying_nails": true }
},
"shoot": { "reduce_damage": [ 20, 35 ], "reduce_damage_laser": [ 10, 30 ], "destroy_damage": [ 30, 90 ] }
}
},
{
"type": "terrain",
@@ -1979,15 +1881,7 @@
{ "item": "nail", "charges": [ 1, 8 ] },
{ "item": "splinter", "count": 1 }
]
},
"prying": {
"result": "t_rdoor_c",
"duration": "30 seconds",
"message": "You pry the boards from the door.",
"byproducts": [ { "item": "nail", "count": 8 }, { "item": "2x4", "count": 4 } ],
"prying_data": { "prying_nails": true }
},
"shoot": { "reduce_damage": [ 25, 40 ], "reduce_damage_laser": [ 15, 40 ], "destroy_damage": [ 40, 100 ] }
}
},
{
"type": "terrain",
@@ -2015,15 +1909,7 @@
{ "item": "splinter", "count": 1 },
{ "item": "hinge", "count": [ 0, 1 ] }
]
},
"prying": {
"result": "t_rdoor_b",
"duration": "30 seconds",
"message": "You pry the boards from the door.",
"byproducts": [ { "item": "nail", "count": 8 }, { "item": "2x4", "count": 4 } ],
"prying_data": { "prying_nails": true }
},
"shoot": { "reduce_damage": [ 20, 35 ], "reduce_damage_laser": [ 10, 30 ], "destroy_damage": [ 30, 90 ] }
}
},
{
"type": "terrain",
@@ -2053,15 +1939,7 @@
{ "item": "splinter", "count": 1 },
{ "item": "hinge", "count": [ 1, 2 ] }
]
},
"prying": {
"result": "t_door_b_peep",
"duration": "30 seconds",
"message": "You pry the boards from the door.",
"byproducts": [ { "item": "nail", "count": 8 }, { "item": "2x4", "count": 4 } ],
"prying_data": { "prying_nails": true }
},
"shoot": { "reduce_damage": [ 15, 30 ], "reduce_damage_laser": [ 10, 30 ], "destroy_damage": [ 30, 70 ] }
}
},
{
"type": "terrain",
@@ -2076,11 +1954,6 @@
"roof": "t_flat_roof",
"flags": [ "NOITEM", "DOOR", "CONNECT_TO_WALL", "BLOCK_WIND" ],
"open": "t_door_metal_o",
"oxytorch": {
"result": "t_mdoor_frame",
"duration": "14 seconds",
"byproducts": [ { "item": "steel_plate", "count": [ 0, 1 ] }, { "item": "steel_chunk", "count": [ 3, 8 ] } ]
},
"bash": {
"str_min": 80,
"str_max": 250,
@@ -2094,32 +1967,6 @@
]
}
},
{
"type": "terrain",
"id": "t_door_metal_corrugated_c",
"name": "closed corrugated metal door",
"description": "A thin door made of corrugated steel held in a frame.",
"symbol": "+",
"looks_like": "t_door_c",
"color": "cyan",
"move_cost": 0,
"coverage": 95,
"roof": "t_metal_flat_roof",
"flags": [ "NOITEM", "DOOR", "CONNECT_TO_WALL", "BLOCK_WIND" ],
"open": "t_door_metal_corrugated_o",
"bash": {
"str_min": 30,
"str_max": 210,
"sound": "metal screeching!",
"sound_fail": "clang!",
"ter_set": "t_mdoor_frame",
"items": [
{ "item": "scrap", "count": [ 4, 8 ] },
{ "item": "steel_plate", "prob": 75 },
{ "item": "hinge", "count": [ 1, 3 ] }
]
}
},
{
"type": "terrain",
"id": "t_secretdoor_metal_c",
@@ -2162,61 +2009,6 @@
"items": [ { "item": "scrap", "count": [ 12, 24 ] }, { "item": "steel_plate", "prob": 75 } ]
}
},
{
"type": "terrain",
"id": "t_secretdoor_concrete_c",
"name": "concrete wall",
"description": "A faux concrete wall positioned and joined seamlessly with the wall, this wall is capable of resisting extreme elements as well as hostile forces. Blast load rated and extremely fire-retardant, breaching will require specialized tools or industrial vehicles.",
"symbol": "LINE_OXOX",
"looks_like": "t_concrete_wall",
"color": "light_gray",
"move_cost": 0,
"roof": "t_metal_floor",
"flags": [ "NOITEM", "DOOR", "CONNECT_TO_WALL", "AUTO_WALL_SYMBOL" ],
"open": "t_secretdoor_concrete_o",
"bash": {
"str_min": 80,
"str_max": 250,
"sound": "metal screeching!",
"sound_fail": "clang!",
"ter_set": "t_mdoor_frame",
"items": [
{ "item": "rebar", "count": [ 2, 6 ] },
{ "item": "rock", "count": [ 10, 22 ] },
{ "item": "chain", "count": [ 0, 2 ] },
{ "item": "spring", "count": [ 1, 3 ] },
{ "item": "rock", "count": [ 2, 4 ] },
{ "item": "scrap", "charges": [ 4, 12 ] }
]
}
},
{
"type": "terrain",
"id": "t_secretdoor_concrete_o",
"name": "open secret door",
"looks_like": "t_thconc_floor",
"description": "This apparently normal segment of concrete wall has opened to reveal a secret passage.",
"symbol": "'",
"color": "light_gray",
"move_cost": 2,
"flags": [ "TRANSPARENT", "FLAT", "CONNECT_TO_WALL", "ROAD" ],
"close": "t_secretdoor_concrete_c",
"bash": {
"str_min": 80,
"str_max": 250,
"sound": "whump!",
"sound_fail": "thwack!",
"ter_set": "t_mdoor_frame",
"items": [
{ "item": "rebar", "count": [ 2, 6 ] },
{ "item": "rock", "count": [ 10, 22 ] },
{ "item": "chain", "count": [ 0, 2 ] },
{ "item": "spring", "count": [ 1, 3 ] },
{ "item": "rock", "count": [ 2, 4 ] },
{ "item": "scrap", "charges": [ 4, 12 ] }
]
}
},
{
"type": "terrain",
"id": "t_door_metal_lab_c",
@@ -2268,31 +2060,6 @@
]
}
},
{
"type": "terrain",
"id": "t_door_metal_corrugated_o",
"name": "open corrugated metal door",
"description": "A thin door made of corrugated steel held in a frame. It's open, so no tools are needed to break in.",
"symbol": "'",
"looks_like": "t_door_o",
"color": "cyan",
"move_cost": 2,
"roof": "t_metal_flat_roof",
"flags": [ "TRANSPARENT", "FLAT", "CONNECT_TO_WALL", "ROAD" ],
"close": "t_door_metal_corrugated_c",
"bash": {
"str_min": 30,
"str_max": 210,
"sound": "metal screeching!",
"sound_fail": "clang!",
"ter_set": "t_mdoor_frame",
"items": [
{ "item": "scrap", "count": [ 4, 8 ] },
{ "item": "steel_plate", "prob": 75 },
{ "item": "hinge", "count": [ 1, 3 ] }
]
}
},
{
"type": "terrain",
"id": "t_door_metal_lab_o",
@@ -2385,11 +2152,6 @@
"coverage": 95,
"roof": "t_flat_roof",
"flags": [ "NOITEM", "REDUCE_SCENT", "CONNECT_TO_WALL", "LOCKED", "BLOCK_WIND" ],
"oxytorch": {
"result": "t_mdoor_frame",
"duration": "14 seconds",
"byproducts": [ { "item": "steel_plate", "count": [ 0, 1 ] }, { "item": "steel_chunk", "count": [ 3, 8 ] } ]
},
"bash": {
"str_min": 80,
"str_max": 250,
@@ -2414,22 +2176,10 @@
"color": "cyan",
"move_cost": 0,
"coverage": 95,
"lockpick_result": "t_door_metal_c",
"lockpick_message": "With a satisfying click, the lock on the door opens.",
"roof": "t_flat_roof",
"flags": [ "NOITEM", "REDUCE_SCENT", "OPENCLOSE_INSIDE", "CONNECT_TO_WALL", "LOCKED", "BLOCK_WIND", "PICKABLE" ],
"open": "t_door_metal_o",
"prying": {
"result": "t_door_metal_o",
"message": "You pry open the metal door.",
"prying_data": { "difficulty": 8, "prying_level": 4, "noisy": true, "failure": "The metal door is too thick." }
},
"examine_action": "locked_object_pickable",
"oxytorch": {
"result": "t_mdoor_frame",
"duration": "14 seconds",
"byproducts": [ { "item": "steel_plate", "count": [ 0, 1 ] }, { "item": "steel_chunk", "count": [ 3, 8 ] } ]
},
"bash": {
"str_min": 80,
"str_max": 250,
@@ -2455,22 +2205,11 @@
"move_cost": 0,
"roof": "t_flat_roof",
"flags": [ "TRANSPARENT", "NOITEM", "PERMEABLE", "CONNECT_TO_WALL", "THIN_OBSTACLE" ],
"hacksaw": {
"result": "t_mdoor_frame",
"duration": "15 minutes",
"message": "You finish cutting the metal.",
"byproducts": [ { "item": "pipe", "count": 12 } ]
},
"open": "t_door_bar_o",
"oxytorch": {
"result": "t_mdoor_frame",
"duration": "14 seconds",
"byproducts": [ { "item": "steel_plate", "count": [ 0, 1 ] }, { "item": "steel_chunk", "count": [ 3, 8 ] } ]
},
"bash": {
"str_min": 45,
"str_min": 30,
"str_max": 210,
"str_min_blocked": 55,
"str_min_blocked": 40,
"str_max_blocked": 240,
"sound": "metal screeching!",
"sound_fail": "clang!",
@@ -2495,9 +2234,9 @@
"flags": [ "TRANSPARENT", "FLAT", "CONNECT_TO_WALL", "ROAD" ],
"close": "t_door_bar_c",
"bash": {
"str_min": 40,
"str_min": 20,
"str_max": 210,
"str_min_blocked": 50,
"str_min_blocked": 30,
"str_max_blocked": 240,
"sound": "metal screeching!",
"sound_fail": "clang!",
@@ -2520,25 +2259,12 @@
"color": "cyan",
"move_cost": 0,
"roof": "t_flat_roof",
"lockpick_result": "t_door_bar_o",
"lockpick_message": "The door swings open…",
"hacksaw": {
"result": "t_mdoor_frame",
"duration": "15 minutes",
"message": "You finish cutting the metal.",
"byproducts": [ { "item": "pipe", "count": 12 } ]
},
"flags": [ "TRANSPARENT", "NOITEM", "PERMEABLE", "CONNECT_TO_WALL", "LOCKED", "THIN_OBSTACLE", "PICKABLE" ],
"examine_action": "locked_object_pickable",
"oxytorch": {
"result": "t_mdoor_frame",
"duration": "14 seconds",
"byproducts": [ { "item": "steel_plate", "count": [ 0, 1 ] }, { "item": "steel_chunk", "count": [ 3, 8 ] } ]
},
"bash": {
"str_min": 45,
"str_min": 30,
"str_max": 210,
"str_min_blocked": 55,
"str_min_blocked": 40,
"str_max_blocked": 240,
"sound": "metal screeching!",
"sound_fail": "clang!",
@@ -64,28 +64,9 @@
"symbol": "+",
"color": "cyan",
"move_cost": 0,
"lockpick_result": "t_chaingate_c",
"lockpick_message": "With a satisfying click, the lock on the gate opens.",
"boltcut": {
"result": "t_chaingate_c",
"duration": "1 seconds",
"sound": "Gachunk!",
"byproducts": [ { "item": "scrap", "count": 3 } ]
},
"flags": [ "TRANSPARENT", "PERMEABLE", "LOCKED", "PICKABLE", "THIN_OBSTACLE", "BURROWABLE" ],
"connects_to": "CHAINFENCE",
"examine_action": "locked_object_pickable",
"oxytorch": {
"result": "t_dirt",
"duration": "9 seconds",
"byproducts": [ { "item": "pipe", "count": [ 1, 4 ] }, { "item": "wire", "count": [ 4, 16 ] } ]
},
"hacksaw": {
"result": "t_dirt",
"duration": "10 minutes",
"message": "You finish cutting the metal.",
"byproducts": [ { "item": "pipe", "count": 6 }, { "item": "steel_chunk", "count": 20 } ]
},
"bash": {
"str_min": 10,
"str_max": 150,
@@ -107,18 +88,7 @@
"move_cost": 0,
"flags": [ "TRANSPARENT", "DOOR", "PERMEABLE", "THIN_OBSTACLE", "BURROWABLE" ],
"connects_to": "CHAINFENCE",
"oxytorch": {
"result": "t_dirt",
"duration": "9 seconds",
"byproducts": [ { "item": "pipe", "count": [ 1, 4 ] }, { "item": "wire", "count": [ 4, 16 ] } ]
},
"open": "t_chaingate_o",
"hacksaw": {
"result": "t_dirt",
"duration": "10 minutes",
"message": "You finish cutting the metal.",
"byproducts": [ { "item": "pipe", "count": 6 }, { "item": "steel_chunk", "count": 20 } ]
},
"bash": {
"str_min": 10,
"str_max": 150,
@@ -166,22 +136,9 @@
"symbol": "+",
"color": "cyan",
"move_cost": 0,
"hacksaw": {
"result": "t_strconc_floor",
"duration": "10 minutes",
"message": "You finish cutting the metal.",
"byproducts": [ { "item": "chain", "count": [ 1, 2 ] }, { "item": "wire", "count": [ 8, 22 ] } ]
},
"flags": [ "TRANSPARENT", "PERMEABLE", "LOCKED", "PICKABLE", "THIN_OBSTACLE" ],
"connects_to": "WALL",
"examine_action": "locked_object_pickable",
"lockpick_result": "t_retractable_gate_c",
"lockpick_message": "With a satisfying click, the lock on the gate opens.",
"oxytorch": {
"result": "t_strconc_floor",
"duration": "9 seconds",
"byproducts": [ { "item": "chain", "count": [ 1, 2 ] }, { "item": "wire", "count": [ 8, 22 ] } ]
},
"bash": {
"str_min": 17,
"str_max": 175,
@@ -207,18 +164,7 @@
"move_cost": 0,
"flags": [ "TRANSPARENT", "DOOR", "PERMEABLE", "THIN_OBSTACLE" ],
"connects_to": "WALL",
"hacksaw": {
"result": "t_strconc_floor",
"duration": "10 minutes",
"message": "You finish cutting the metal.",
"byproducts": [ { "item": "chain", "count": [ 1, 2 ] }, { "item": "wire", "count": [ 8, 22 ] } ]
},
"open": "t_retractable_gate_o",
"oxytorch": {
"result": "t_strconc_floor",
"duration": "9 seconds",
"byproducts": [ { "item": "chain", "count": [ 1, 2 ] }, { "item": "wire", "count": [ 8, 22 ] } ]
},
"bash": {
"str_min": 17,
"str_max": 175,
@@ -491,13 +437,6 @@
"sound_fail": "wham.",
"ter_set": "t_null",
"items": [ { "item": "2x4", "count": [ 1, 3 ] }, { "item": "nail", "charges": [ 2, 6 ] }, { "item": "splinter", "count": 1 } ]
},
"prying": {
"result": "t_fence_post",
"duration": "30 seconds",
"message": "You pry out the fence post.",
"byproducts": [ { "item": "nail", "count": 6 }, { "item": "2x4", "count": 3 } ],
"prying_data": { "prying_nails": true }
}
},
{
@@ -563,26 +502,9 @@
"symbol": "LINE_OXOX",
"color": "cyan",
"move_cost": 0,
"boltcut": {
"result": "t_chainfence_posts",
"duration": "5 seconds",
"sound": "Snick, snick, gachunk!",
"byproducts": [ { "item": "wire", "count": 20 } ]
},
"flags": [ "TRANSPARENT", "NOITEM", "THIN_OBSTACLE", "PERMEABLE", "UNSTABLE", "CLIMBABLE", "AUTO_WALL_SYMBOL", "BURROWABLE" ],
"connects_to": "CHAINFENCE",
"examine_action": "chainfence",
"oxytorch": {
"result": "t_dirt",
"duration": "9 seconds",
"byproducts": [ { "item": "pipe", "count": [ 1, 4 ] }, { "item": "wire", "count": [ 4, 16 ] } ]
},
"hacksaw": {
"result": "t_dirt",
"duration": "10 minutes",
"message": "You finish cutting the metal.",
"byproducts": [ { "item": "pipe", "count": 6 }, { "item": "steel_chunk", "count": 20 } ]
},
"bash": {
"str_min": 10,
"str_max": 150,
@@ -600,14 +522,7 @@
"symbol": "#",
"color": "cyan",
"move_cost": 2,
"hacksaw": {
"result": "t_dirt",
"duration": "2 minutes",
"message": "You finish cutting the metal.",
"byproducts": [ { "item": "pipe", "count": 6 } ]
},
"flags": [ "TRANSPARENT", "THIN_OBSTACLE" ],
"oxytorch": { "result": "t_dirt", "duration": "1 seconds", "byproducts": [ { "item": "pipe", "count": [ 1, 4 ] } ] },
"bash": {
"str_min": 8,
"str_max": 30,
@@ -631,7 +546,7 @@
"color": "brown",
"looks_like": "t_chainfence",
"move_cost": 0,
"flags": [ "TRANSPARENT", "NOITEM", "PERMEABLE", "AUTO_WALL_SYMBOL", "BURROWABLE", "CLIMBABLE" ],
"flags": [ "TRANSPARENT", "NOITEM", "PERMEABLE", "AUTO_WALL_SYMBOL", "BURROWABLE" ],
"connects_to": "CHAINFENCE",
"examine_action": "chainfence",
"deconstruct": {
@@ -723,12 +638,6 @@
"move_cost": 4,
"flags": [ "TRANSPARENT", "THIN_OBSTACLE", "SHORT", "EASY_DECONSTRUCT", "BURROWABLE" ],
"deconstruct": { "ter_set": "t_fence_post", "items": [ { "item": "wire", "count": 2 } ] },
"boltcut": {
"result": "t_fence_post",
"duration": "10 seconds",
"sound": "Snick, snick, gachunk!",
"byproducts": [ { "item": "wire", "count": 2 } ]
},
"bash": {
"str_min": 8,
"str_max": 20,
@@ -746,12 +655,6 @@
"symbol": "$",
"color": "blue",
"move_cost": 4,
"boltcut": {
"result": "t_fence_post",
"duration": "10 seconds",
"sound": "Snick, snick, gachunk!",
"byproducts": [ { "item": "wire_barbed", "count": 2 } ]
},
"flags": [ "TRANSPARENT", "SHARP", "THIN_OBSTACLE", "SHORT", "EASY_DECONSTRUCT", "BURROWABLE" ],
"deconstruct": { "ter_set": "t_fence_post", "items": [ { "item": "wire_barbed", "count": 2 } ] },
"bash": {
@@ -1032,7 +935,7 @@
{
"type": "terrain",
"id": "t_privacy_fencegate_c",
"name": "closed wooden privacy gate",
"name": "closed wooden split rail gate",
"description": "A commercial quality gate made of wood with a latch system.",
"symbol": "+",
"color": "brown",
@@ -1070,7 +973,7 @@
{
"type": "terrain",
"id": "t_privacy_fencegate_o",
"name": "open wooden privacy gate",
"name": "open wooden split rail gate",
"description": "A commercial quality gate made of wood with a latch system. The gate is wide open, allowing anything to travel through.",
"symbol": ".",
"color": "brown",
@@ -6,7 +6,6 @@
"description": "A bare and cold concrete floor with matching roof, could still insulate from the outdoors but roof collapse is possible if supporting walls are broken down.",
"symbol": ".",
"color": "cyan",
"connects_to": "CONCRETE",
"move_cost": 2,
"roof": "t_flat_roof",
"flags": [ "TRANSPARENT", "SUPPORTS_ROOF", "COLLAPSES", "INDOORS", "FLAT", "ROAD" ],
@@ -31,7 +30,6 @@
"symbol": ".",
"color": "yellow",
"looks_like": "t_pavement_y",
"connects_to": "CONCRETE",
"move_cost": 2,
"roof": "t_flat_roof",
"flags": [ "TRANSPARENT", "SUPPORTS_ROOF", "COLLAPSES", "INDOORS", "FLAT", "ROAD" ],
@@ -55,38 +53,11 @@
"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",
"connects_to": "CONCRETE",
"looks_like": "t_floor_red",
"flags": [ "TRANSPARENT", "SUPPORTS_ROOF", "COLLAPSES", "INDOORS", "FLAT", "ROAD" ],
"move_cost": 2,
"roof": "t_flat_roof",
"copy-from": "t_thconc_floor"
},
{
"type": "terrain",
"id": "t_thconc_y_olight",
"name": "concrete floor",
"description": "A bare and cold concrete floor with a streak of yellow paint and a still-functioning light attached to the ceiling above, could still insulate from the outdoors but roof collapse is possible if supporting walls are broken down.",
"symbol": ".",
"color": "yellow",
"light_emitted": 120,
"looks_like": "t_thconc_y",
"connects_to": "CONCRETE",
"move_cost": 2,
"flags": [ "TRANSPARENT", "SUPPORTS_ROOF", "INDOORS", "FLAT", "ROAD" ],
"roof": "t_flat_roof",
"copy-from": "t_thconc_floor",
"bash": {
"str_min": 4,
"str_max": 12,
"sound": "glass breaking!",
"sound_fail": "whack!",
"sound_vol": 16,
"sound_fail_vol": 10,
"ter_set": "t_thconc_y",
"items": [ { "item": "glass_shard", "count": [ 8, 16 ] } ]
}
},
{
"type": "terrain",
"id": "t_thconc_floor_olight",
@@ -94,7 +65,6 @@
"description": "A bare and cold concrete floor with a still-functioning light attached to the ceiling above.",
"symbol": ".",
"color": "white",
"connects_to": "CONCRETE",
"move_cost": 2,
"light_emitted": 120,
"roof": "t_flat_roof",
@@ -108,8 +78,7 @@
"sound_fail_vol": 10,
"ter_set": "t_thconc_floor",
"items": [ { "item": "glass_shard", "count": [ 8, 16 ] } ]
},
"shoot": { "chance_to_hit": 0, "reduce_damage": [ 0, 0 ], "reduce_damage_laser": [ 0, 0 ], "destroy_damage": [ 2, 8 ] }
}
},
{
"type": "terrain",
@@ -118,7 +87,6 @@
"description": "Interlocking wooden tiles that are more than likely treated against fire, with a still-functioning light attached to the ceiling above.",
"symbol": ".",
"color": "white",
"connects_to": "WOODFLOOR",
"move_cost": 2,
"light_emitted": 120,
"roof": "t_flat_roof",
@@ -144,14 +112,13 @@
"description": "High-quality and tough checkered flooring to reduce risk of slips and falls, with a still-functioning light attached to the ceiling above.",
"symbol": ".",
"color": "light_cyan",
"connects_to": "METALFLOOR",
"move_cost": 2,
"light_emitted": 120,
"roof": "t_flat_roof",
"flags": [ "TRANSPARENT", "INDOORS", "FLAT", "ROAD" ],
"bash": {
"sound": "thump",
"ter_set": "t_metal_floor",
"ter_set": "t_null",
"str_min": 200,
"str_max": 500,
"str_min_supported": 200,
@@ -163,78 +130,6 @@
]
}
},
{
"type": "terrain",
"id": "t_strconc_floor_olight",
"name": "strong concrete floor, overhead light",
"description": "Extremely resilient floor made from carefully placed rebar and poured concrete with a still-functioning light attached to the ceiling above.",
"symbol": ".",
"color": "white",
"connects_to": "CONCRETE",
"move_cost": 2,
"light_emitted": 120,
"roof": "t_flat_roof",
"looks_like": "t_thconc_floor_olight",
"flags": [ "TRANSPARENT", "SUPPORTS_ROOF", "INDOORS", "FLAT", "ROAD" ],
"bash": {
"str_min": 4,
"str_max": 12,
"sound": "glass breaking!",
"sound_fail": "whack!",
"sound_vol": 16,
"sound_fail_vol": 10,
"ter_set": "t_strconc_floor",
"items": [ { "item": "glass_shard", "count": [ 8, 16 ] } ]
}
},
{
"type": "terrain",
"id": "t_linoleum_gray_floor_olight",
"name": "gray linoleum floor, overhead light",
"description": "Linoleum flooring with a still-functioning light attached to the ceiling above.",
"symbol": ".",
"color": "white",
"connects_to": "LINOLEUM",
"move_cost": 2,
"light_emitted": 120,
"roof": "t_flat_roof",
"looks_like": "t_linoleum_gray",
"flags": [ "TRANSPARENT", "SUPPORTS_ROOF", "INDOORS", "FLAT", "ROAD" ],
"bash": {
"str_min": 4,
"str_max": 12,
"sound": "glass breaking!",
"sound_fail": "whack!",
"sound_vol": 16,
"sound_fail_vol": 10,
"ter_set": "t_linoleum_gray",
"items": [ { "item": "glass_shard", "count": [ 8, 16 ] } ]
}
},
{
"type": "terrain",
"id": "t_linoleum_whitefloor_olight",
"name": "white linoleum floor, overhead light",
"description": "Linoleum flooring with a still-functioning light attached to the ceiling above.",
"symbol": ".",
"color": "white",
"connects_to": "LINOLEUM",
"move_cost": 2,
"light_emitted": 120,
"roof": "t_flat_roof",
"looks_like": "t_linoleum_white",
"flags": [ "TRANSPARENT", "SUPPORTS_ROOF", "INDOORS", "FLAT", "ROAD" ],
"bash": {
"str_min": 4,
"str_max": 12,
"sound": "glass breaking!",
"sound_fail": "whack!",
"sound_vol": 16,
"sound_fail_vol": 10,
"ter_set": "t_linoleum_white",
"items": [ { "item": "glass_shard", "count": [ 8, 16 ] } ]
}
},
{
"type": "terrain",
"id": "t_ov_smreb_cage",
@@ -261,7 +156,6 @@
"description": "Extremely resilient floor made from carefully placed rebar and poured concrete, capable of providing protection from the elements. As for the matching roof, it still requires supporting walls, otherwise it may very well cave in.",
"symbol": ".",
"color": "cyan",
"connects_to": "CONCRETE",
"move_cost": 2,
"roof": "t_flat_roof",
"flags": [ "TRANSPARENT", "SUPPORTS_ROOF", "COLLAPSES", "INDOORS", "FLAT", "ROAD" ],
@@ -325,7 +219,6 @@
"description": "A relatively flat area of rock and stone. Looks stable enough to be mined with the proper mining gear.",
"symbol": ".",
"color": "light_gray",
"connects_to": "ROCKFLOOR",
"move_cost": 2,
"roof": "t_flat_roof",
"flags": [ "TRANSPARENT", "INDOORS", "COLLAPSES", "SUPPORTS_ROOF", "FLAT", "ROAD" ],
@@ -338,7 +231,6 @@
"description": "High-quality and tough checkered flooring to reduce risk of slips and falls, with a matching roof.",
"symbol": ".",
"color": "light_cyan",
"connects_to": "METALFLOOR",
"move_cost": 2,
"roof": "t_flat_roof",
"flags": [ "TRANSPARENT", "INDOORS", "FLAT", "ROAD" ],
@@ -355,29 +247,6 @@
]
}
},
{
"type": "terrain",
"id": "t_broken_metal_floor",
"name": "broken metal floor",
"description": "Something has cratered this metal flooring. It will be difficult to move things across.",
"symbol": ".",
"color": "light_cyan",
"move_cost": 2,
"roof": "t_flat_roof",
"flags": [ "TRANSPARENT", "INDOORS" ],
"bash": {
"sound": "thump",
"ter_set": "t_null",
"str_min": 200,
"str_max": 500,
"str_min_supported": 200,
"items": [
{ "item": "steel_lump", "count": [ 1, 4 ] },
{ "item": "steel_chunk", "count": [ 3, 12 ] },
{ "item": "scrap", "count": [ 9, 36 ] }
]
}
},
{
"type": "terrain",
"id": "t_floor",
@@ -385,7 +254,6 @@
"description": "Interlocking wooden tiles that are more than likely treated against fire, with wooden posts and beams supporting a roof.",
"symbol": ".",
"color": "cyan",
"connects_to": "WOODFLOOR",
"move_cost": 2,
"roof": "t_flat_roof",
"flags": [ "TRANSPARENT", "FLAMMABLE_HARD", "SUPPORTS_ROOF", "COLLAPSES", "INDOORS", "FLAT", "ROAD" ],
@@ -447,7 +315,6 @@
"description": "Hardwood flooring that has been treated with chemicals to improve slip resistance and sliding, commonly for recreational sports.",
"symbol": ".",
"color": "light_red",
"connects_to": "WOODFLOOR",
"move_cost": 2,
"roof": "t_flat_roof",
"flags": [ "TRANSPARENT", "FLAMMABLE_HARD", "SUPPORTS_ROOF", "COLLAPSES", "INDOORS", "FLAT", "ROAD" ],
@@ -467,7 +334,6 @@
"description": "Floor consisting of finely mixed earth that has been tamped down, with a wooden ceiling above it.",
"symbol": ".",
"color": "brown",
"connects_to": "DIRT",
"move_cost": 2,
"roof": "t_shingle_flat_roof",
"flags": [ "TRANSPARENT", "FLAMMABLE_HARD", "SUPPORTS_ROOF", "COLLAPSES", "INDOORS", "FLAT", "DIGGABLE" ],
@@ -487,7 +353,6 @@
"description": "Floor consisting of finely mixed earth that has been tamped down, with thatched roof above it.",
"symbol": ".",
"color": "brown",
"connects_to": "DIRT",
"move_cost": 2,
"roof": "t_thatch_roof",
"flags": [ "TRANSPARENT", "FLAMMABLE_ASH", "SUPPORTS_ROOF", "COLLAPSES", "INDOORS", "FLAT", "DIGGABLE" ],
@@ -517,7 +382,6 @@
"description": "An industrial flood light set up to illuminate the surroundings. Smashing it doesn't seem like it'd produce any worthwhile salvage.",
"symbol": ".",
"color": "white",
"connects_to": "WOODFLOOR",
"move_cost": 2,
"roof": "t_flat_roof",
"light_emitted": 240,
@@ -609,7 +473,6 @@
"name": "carpet",
"symbol": ".",
"color": "red",
"connects_to": "CARPET",
"move_cost": 2,
"roof": "t_flat_roof",
"description": "Soft red carpet.",
@@ -804,7 +667,6 @@
"description": "A section of flooring made out of a tough, rubbery material. Colored a simple white.",
"symbol": ".",
"color": "white",
"connects_to": "LINOLEUM",
"move_cost": 2,
"roof": "t_flat_roof",
"flags": [ "TRANSPARENT", "SUPPORTS_ROOF", "COLLAPSES", "INDOORS", "FLAT", "ROAD" ],
@@ -825,7 +687,6 @@
"description": "A section of flooring made out of a tough, gray, rubbery material.",
"symbol": ".",
"color": "light_gray",
"connects_to": "LINOLEUM",
"move_cost": 2,
"flags": [ "TRANSPARENT", "SUPPORTS_ROOF", "COLLAPSES", "INDOORS", "FLAT", "ROAD" ],
"bash": {
@@ -844,7 +705,6 @@
"description": "This section of wax flooring has been painted.",
"symbol": ".",
"color": "yellow",
"connects_to": "WOODFLOOR",
"move_cost": 2,
"roof": "t_flat_roof",
"bash": {
@@ -918,7 +778,6 @@
"description": "It's dirt. Looks like some fine soil for tillage. Could also be dug out for construction projects.",
"symbol": ".",
"color": "brown",
"connects_to": "DIRT",
"move_cost": 2,
"looks_like": "t_dirt",
"roof": "t_rock_roof",
@@ -934,7 +793,6 @@
"symbol": ".",
"color": "yellow",
"looks_like": "t_sand",
"connects_to": "SAND",
"move_cost": 3,
"roof": "t_rock_roof",
"flags": [ "TRANSPARENT", "SUPPORTS_ROOF", "INDOORS", "FLAT", "DIGGABLE" ],
@@ -976,7 +834,6 @@
"description": "A field full of malleable clay, suitable for kiln firing if it was extracted properly.",
"symbol": ".",
"color": "light_red",
"connects_to": "CLAY",
"move_cost": 2,
"roof": "t_rock_roof",
"flags": [ "TRANSPARENT", "DIGGABLE", "FLAT", "SUPPORTS_ROOF", "INDOORS" ],
@@ -990,7 +847,6 @@
"//": "for caverns and other natural underground formations.",
"symbol": "#",
"color": "brown",
"connects_to": "CLAY",
"move_cost": 5,
"roof": "t_rock_roof",
"flags": [ "TRANSPARENT", "BURROWABLE", "SUPPORTS_ROOF", "INDOORS" ],
@@ -6,7 +6,6 @@
"description": "It's dirt. Looks like some fine soil for tillage. Could also be dug out for construction projects.",
"symbol": ".",
"color": "brown",
"connects_to": "DIRT",
"move_cost": 2,
"flags": [ "TRANSPARENT", "DIGGABLE", "FLAT", "PLOWABLE" ],
"bash": { "sound": "thump", "ter_set": "t_null", "str_min": 50, "str_max": 100, "str_min_supported": 100, "bash_below": true }
@@ -19,7 +18,6 @@
"symbol": ".",
"color": "yellow",
"move_cost": 3,
"connects_to": "SAND",
"flags": [ "TRANSPARENT", "DIGGABLE", "FLAT" ],
"bash": { "sound": "thump", "ter_set": "t_null", "str_min": 50, "str_max": 100, "str_min_supported": 100, "bash_below": true }
},
@@ -42,7 +40,6 @@
"description": "A field full of malleable clay, suitable for kiln firing if it was extracted properly.",
"symbol": ".",
"color": "light_red",
"connects_to": "CLAY",
"move_cost": 2,
"flags": [ "TRANSPARENT", "DIGGABLE", "FLAT" ],
"bash": { "sound": "thump", "ter_set": "t_null", "str_min": 50, "str_max": 100, "str_min_supported": 100, "bash_below": true }
@@ -55,7 +52,6 @@
"looks_like": "t_dirtmound",
"symbol": "#",
"color": "brown",
"connects_to": "CLAY",
"move_cost": 5,
"flags": [ "TRANSPARENT", "BURROWABLE" ],
"bash": {
@@ -75,7 +71,6 @@
"looks_like": "t_dirtmound",
"symbol": "#",
"color": "brown",
"connects_to": "SAND",
"move_cost": 5,
"flags": [ "TRANSPARENT", "BURROWABLE" ],
"bash": {
@@ -87,19 +82,6 @@
"items": [ { "item": "material_sand", "charges": [ 300, 600 ] } ]
}
},
{
"type": "terrain",
"id": "t_glassed_sand",
"name": "glassed sand",
"description": "A patch of sand that has a crust of natural glass atop it, after exposure to intense heat.",
"looks_like": "t_sand",
"symbol": "~",
"color": "brown",
"connects_to": "SAND",
"move_cost": 3,
"flags": [ "TRANSPARENT", "DIGGABLE", "FLAT" ],
"bash": { "sound": "crunch", "ter_set": "t_sand", "str_min": 25, "str_max": 100, "str_min_supported": 100, "bash_below": true }
},
{
"type": "terrain",
"id": "t_dirtmound",
@@ -107,7 +89,6 @@
"description": "An area of heaped dirt, not easily traversable. If examined more closely, it's quite favorable for planting seeds and the like.",
"symbol": "#",
"color": "brown",
"connects_to": "DIRT",
"move_cost": 3,
"flags": [ "TRANSPARENT", "DIGGABLE", "MOUNTABLE", "NOCOLLIDE", "PLANTABLE" ],
"bash": { "sound": "thump", "ter_set": "t_null", "str_min": 50, "str_max": 100, "str_min_supported": 100 },
@@ -121,7 +102,6 @@
"looks_like": "t_dirtmound",
"symbol": "#",
"color": "brown",
"connects_to": "DIRT",
"move_cost": 3,
"coverage": 40,
"flags": [ "TRANSPARENT", "DIGGABLE", "MOUNTABLE", "SUPPORTS_ROOF", "COLLAPSES", "INDOORS" ],
@@ -146,20 +126,7 @@
"move_cost": 0,
"roof": "t_rock_floor",
"flags": [ "NOITEM", "SUPPORTS_ROOF", "WALL" ],
"examine_action": {
"type": "effect_on_condition",
"effect_on_conditions": [
{
"id": "EOC_TERRAIN_FAULT",
"effect": [
{
"u_message": "This wall is perfectly vertical. Odd, twisted holes are set in it, leading as far back into the solid rock as you can see. The holes are humanoid in shape, but with long, twisted, distended limbs.",
"popup": true
}
]
}
]
}
"examine_action": "fault"
},
{
"type": "terrain",
@@ -193,7 +160,6 @@
"symbol": ".",
"color": "light_gray",
"looks_like": "t_rock_floor",
"connects_to": "ROCKFLOOR",
"move_cost": 2,
"roof": "t_open_air",
"flags": [ "TRANSPARENT", "FLAT", "ROAD" ],
@@ -262,7 +228,6 @@
"symbol": ".",
"color": "light_gray",
"looks_like": "t_concrete",
"connects_to": "CONCRETE",
"move_cost": 2,
"flags": [ "TRANSPARENT", "FLAT", "ROAD", "MINEABLE" ],
"bash": {
@@ -281,7 +246,6 @@
"symbol": ".",
"color": "light_gray",
"looks_like": "t_pavement",
"connects_to": "CONCRETE",
"move_cost": 2,
"flags": [ "TRANSPARENT", "FLAT", "ROAD", "MINEABLE" ],
"bash": {
@@ -300,7 +264,6 @@
"symbol": ".",
"color": "yellow",
"looks_like": "t_pavement_y",
"connects_to": "CONCRETE",
"move_cost": 2,
"flags": [ "TRANSPARENT", "FLAT", "ROAD", "MINEABLE" ],
"bash": {
@@ -338,7 +301,6 @@
"description": "High-quality and tough checkered flooring to reduce risk of slips and falls.",
"symbol": ".",
"color": "light_cyan",
"connects_to": "METALFLOOR",
"move_cost": 2,
"flags": [ "TRANSPARENT", "FLAT", "ROAD" ],
"bash": {
@@ -362,7 +324,6 @@
"description": "A section of flooring made out of a tough, rubbery material. Colored a simple white.",
"symbol": ".",
"color": "white",
"connects_to": "LINOLEUM",
"move_cost": 2,
"flags": [ "TRANSPARENT", "FLAMMABLE_HARD", "FLAT", "ROAD" ],
"bash": {
@@ -382,7 +343,6 @@
"description": "A section of flooring made out of a tough, gray, rubbery material.",
"symbol": ".",
"color": "light_gray",
"connects_to": "LINOLEUM",
"move_cost": 2,
"flags": [ "TRANSPARENT", "FLAMMABLE_HARD", "FLAT", "ROAD" ],
"bash": {
@@ -401,33 +361,9 @@
"description": "Floor consisting of finely mixed earth that has been tamped down.",
"symbol": ".",
"color": "brown",
"connects_to": "DIRT",
"move_cost": 2,
"looks_like": "t_dirtfloor",
"flags": [ "TRANSPARENT", "FLAT", "DIGGABLE" ],
"bash": { "sound": "SMASH!", "ter_set": "t_null", "str_min": 50, "str_max": 400, "str_min_supported": 100, "bash_below": true }
},
{
"type": "terrain",
"id": "t_gelatinous_groundcover",
"name": "gelatinous ground",
"description": "An incursion of a large area of otherwordly substrate, it feels like walking on hardened gelatin.",
"symbol": ".",
"color": "pink",
"move_cost": 5,
"flags": [ "TRANSPARENT", "FLAT" ],
"bash": { "sound": "thump", "ter_set": "t_null", "str_min": 50, "str_max": 100, "str_min_supported": 100, "bash_below": true }
},
{
"type": "terrain",
"id": "t_orifice",
"name": "orifice",
"description": "A large round orifice with trails of fresh and dried up strange green liquid with a strong acid odor covering its inner sides.",
"symbol": "O",
"color": "green",
"looks_like": "t_pit",
"move_cost": 0,
"roof": "t_rock_floor",
"flags": [ "NOITEM", "SUPPORTS_ROOF", "WALL" ]
}
]
@@ -50,7 +50,7 @@
"looks_like": "t_tree",
"description": "A deciduous tree of the genus 'Quercus', with bark cracked into rectangular black plates split by narrow orange fissures. You could peel off the bark sections if you examined the tree more closely. You could cut it down with the right tools.",
"symbol": "7",
"color": "yellow",
"color": "brown",
"move_cost": 0,
"coverage": 80,
"flags": [ "FLAMMABLE_ASH", "NOITEM", "SUPPORTS_ROOF", "TREE", "REDUCE_SCENT" ],
@@ -73,7 +73,7 @@
"description": "A deciduous tree of the genus 'Quercus', with bark cracked into rectangular black plates split by narrow orange fissures. All usable bark has been stripped off. You could cut it down with the right tools.",
"name": "blackjack oak",
"symbol": "7",
"color": "brown",
"color": "green",
"move_cost": 0,
"coverage": 80,
"flags": [ "FLAMMABLE_ASH", "NOITEM", "SUPPORTS_ROOF", "TREE", "REDUCE_SCENT" ],
@@ -344,26 +344,6 @@
"items": [ { "item": "stick_long", "count": [ 0, 5 ] } ]
}
},
{
"type": "terrain",
"id": "t_mega_fern",
"name": "mega fern",
"looks_like": "t_tree_young",
"description": "A gigantic fern like nothing you've seen before. The leaves are a bright scarlet color with a net like structure of green veins. The multipronged trunks appear to have the consistency of balsa wood.",
"symbol": "1",
"color": [ "red_green", "red_green", "red_green", "brown" ],
"//": "barren in winter",
"move_cost": 4,
"flags": [ "TRANSPARENT", "FLAMMABLE_ASH", "NOITEM", "YOUNG", "REDUCE_SCENT" ],
"bash": {
"str_min": 4,
"str_max": 50,
"sound": "crunch!",
"sound_fail": "whack!",
"ter_set": "t_dirt",
"items": [ { "item": "alien_fern", "count": [ 0, 5 ] } ]
}
},
{
"type": "terrain",
"id": "t_tree_apple",
@@ -8,7 +8,7 @@
"color": "pink",
"move_cost": 8,
"coverage": 40,
"flags": [ "TRANSPARENT", "FUNGUS", "SHRUB", "SHORT" ],
"flags": [ "TRANSPARENT", "FLAMMABLE_ASH", "FUNGUS", "SHRUB", "SHORT" ],
"examine_action": "shrub_marloss",
"bash": { "str_min": 4, "str_max": 60, "sound": "crunch.", "sound_fail": "poof!", "ter_set": "t_fungus" }
},
@@ -20,7 +20,7 @@
"symbol": ".",
"color": "light_gray",
"move_cost": 3,
"flags": [ "TRANSPARENT", "DIGGABLE", "FUNGUS", "NOCOLLIDE" ],
"flags": [ "TRANSPARENT", "FLAMMABLE_ASH", "DIGGABLE", "FUNGUS", "NOCOLLIDE" ],
"bash": {
"sound": "smash",
"//": "muffled because fungus",
@@ -39,7 +39,7 @@
"symbol": ".",
"color": "light_gray",
"move_cost": 2,
"flags": [ "TRANSPARENT", "SUPPORTS_ROOF", "COLLAPSES", "INDOORS", "FLAT", "FUNGUS" ],
"flags": [ "TRANSPARENT", "FLAMMABLE_ASH", "SUPPORTS_ROOF", "COLLAPSES", "INDOORS", "FLAT", "FUNGUS" ],
"bash": { "sound": "smash", "ter_set": "t_null", "str_min": 20, "str_max": 400, "str_min_supported": 50 }
},
{
@@ -51,7 +51,7 @@
"symbol": ".",
"color": "light_gray",
"move_cost": 2,
"flags": [ "TRANSPARENT", "SUPPORTS_ROOF", "FLAT", "FUNGUS" ],
"flags": [ "TRANSPARENT", "FLAMMABLE_ASH", "SUPPORTS_ROOF", "FLAT", "FUNGUS" ],
"bash": { "sound": "smash", "ter_set": "t_null", "str_min": 20, "str_max": 400, "str_min_supported": 50 }
},
{
@@ -63,7 +63,7 @@
"symbol": ".",
"color": "light_gray",
"move_cost": 2,
"flags": [ "TRANSPARENT", "FLAT", "FUNGUS" ],
"flags": [ "TRANSPARENT", "FLAMMABLE_ASH", "FLAT", "FUNGUS" ],
"bash": { "sound": "SMASH!", "ter_set": "t_null", "str_min": 20, "str_max": 400, "str_min_supported": 50 }
},
{
@@ -76,7 +76,7 @@
"color": "dark_gray",
"move_cost": 0,
"coverage": 100,
"flags": [ "NOITEM", "SUPPORTS_ROOF", "FUNGUS", "WALL", "REDUCE_SCENT", "MINEABLE" ],
"flags": [ "FLAMMABLE_ASH", "NOITEM", "SUPPORTS_ROOF", "FUNGUS", "WALL", "REDUCE_SCENT", "MINEABLE" ],
"bash": { "str_min": 30, "str_max": 180, "sound": "crunch!", "sound_fail": "poof!", "ter_set": "t_fungus" }
},
{
@@ -88,7 +88,7 @@
"color": "dark_gray",
"move_cost": 0,
"coverage": 100,
"flags": [ "NOITEM", "SUPPORTS_ROOF", "FUNGUS", "WALL", "NO_SCENT", "AUTO_WALL_SYMBOL", "MINEABLE" ],
"flags": [ "FLAMMABLE_ASH", "NOITEM", "SUPPORTS_ROOF", "FUNGUS", "WALL", "NO_SCENT", "AUTO_WALL_SYMBOL", "MINEABLE" ],
"bash": { "str_min": 30, "str_max": 180, "sound": "crunch!", "sound_fail": "poof!", "ter_set": "t_fungus" }
},
{
@@ -99,7 +99,7 @@
"symbol": "#",
"color": "light_gray",
"move_cost": 4,
"flags": [ "TRANSPARENT", "THIN_OBSTACLE", "FUNGUS", "MOUNTABLE" ],
"flags": [ "TRANSPARENT", "THIN_OBSTACLE", "FLAMMABLE_ASH", "FUNGUS", "MOUNTABLE" ],
"bash": { "str_min": 10, "str_max": 70, "sound": "crunch!", "sound_fail": "poof!", "ter_set": "t_fungus" }
},
{
@@ -111,7 +111,7 @@
"color": "dark_gray",
"move_cost": 8,
"coverage": 40,
"flags": [ "TRANSPARENT", "CONTAINER", "THIN_OBSTACLE", "PLACE_ITEM", "SHRUB", "FUNGUS", "SHORT" ],
"flags": [ "TRANSPARENT", "CONTAINER", "FLAMMABLE_ASH", "THIN_OBSTACLE", "PLACE_ITEM", "SHRUB", "FUNGUS", "SHORT" ],
"bash": { "str_min": 4, "str_max": 60, "sound": "crunch.", "sound_fail": "poof!", "ter_set": "t_fungus" }
},
{
@@ -123,7 +123,7 @@
"color": "dark_gray",
"move_cost": 0,
"coverage": 80,
"flags": [ "NOITEM", "FUNGUS", "TREE", "REDUCE_SCENT" ],
"flags": [ "FLAMMABLE_ASH", "NOITEM", "FUNGUS", "TREE", "REDUCE_SCENT" ],
"bash": { "str_min": 40, "str_max": 180, "sound": "crunch!", "sound_fail": "poof!", "ter_set": "t_fungus" }
},
{
@@ -134,7 +134,7 @@
"symbol": "1",
"color": "dark_gray",
"move_cost": 4,
"flags": [ "TRANSPARENT", "NOITEM", "FUNGUS", "YOUNG", "REDUCE_SCENT" ],
"flags": [ "TRANSPARENT", "FLAMMABLE_ASH", "NOITEM", "FUNGUS", "YOUNG", "REDUCE_SCENT" ],
"bash": { "str_min": 4, "str_max": 50, "sound": "crunch!", "sound_fail": "poof!", "ter_set": "t_fungus" }
},
{
@@ -146,7 +146,7 @@
"color": "pink",
"move_cost": 0,
"coverage": 80,
"flags": [ "NOITEM", "FUNGUS", "TREE", "REDUCE_SCENT" ],
"flags": [ "FLAMMABLE_ASH", "NOITEM", "FUNGUS", "TREE", "REDUCE_SCENT" ],
"examine_action": "tree_marloss",
"bash": { "str_min": 40, "str_max": 180, "sound": "crunch!", "sound_fail": "poof!", "ter_set": "t_fungus" }
}
@@ -265,17 +265,11 @@
"bash": {
"str_min": 40,
"str_max": 210,
"sound": "metal screeching!",
"explosive": 5,
"sound": "Critical failure imminent, self destruct activated. Have a nice day!",
"sound_fail": "clang!",
"ter_set": "t_floor",
"items": [
{ "item": "steel_chunk", "count": [ 1, 3 ] },
{ "item": "scrap", "count": [ 4, 8 ] },
{ "item": "money_strap_twenty", "count": [ 1, 59 ] },
{ "item": "money_strap_fifty", "count": [ 1, 39 ] },
{ "item": "money_twenty", "count": [ 1, 99 ] },
{ "item": "money_fifty", "count": [ 1, 99 ] }
]
"items": [ { "item": "steel_chunk", "count": [ 1, 3 ] }, { "item": "scrap", "count": [ 4, 8 ] } ]
}
},
{
@@ -630,8 +624,7 @@
"sound_fail_vol": 12,
"ter_set": "t_floor",
"items": [ { "item": "glass_shard", "count": [ 42, 84 ] }, { "item": "scrap", "count": [ 0, 2 ] } ]
},
"shoot": { "chance_to_hit": 50, "reduce_damage": [ 50, 70 ], "reduce_damage_laser": [ 2, 12 ], "destroy_damage": [ 5, 30 ] }
}
},
{
"type": "terrain",
@@ -661,8 +654,7 @@
{ "item": "power_supply", "prob": 25 },
{ "item": "amplifier", "prob": 25 },
{ "item": "plastic_chunk", "count": [ 4, 10 ], "prob": 50 },
{ "item": "scrap", "count": [ 2, 6 ], "prob": 50 },
{ "item": "coin_quarter", "count": [ 1, 1500 ] }
{ "item": "scrap", "count": [ 2, 6 ], "prob": 50 }
]
}
},
@@ -1101,7 +1093,7 @@
"symbol": "=",
"color": "brown",
"move_cost": 6,
"flags": [ "TRANSPARENT", "PLACE_ITEM", "INDOORS" ],
"flags": [ "TRANSPARENT", "BASHABLE", "PLACE_ITEM", "INDOORS" ],
"coverage": 30,
"deconstruct": {
"ter_set": "t_rock_floor",
@@ -1188,7 +1180,7 @@
{ "item": "steel_chunk", "count": [ 1, 10 ] }
]
},
"flags": [ "CONTAINER", "SEALED", "PLACE_ITEM", "WALL", "MINEABLE" ]
"flags": [ "BASHABLE", "CONTAINER", "SEALED", "PLACE_ITEM", "WALL", "MINEABLE" ]
},
{
"type": "terrain",
@@ -1199,7 +1191,7 @@
"color": "green",
"looks_like": "t_pit",
"move_cost": 0,
"flags": [ "TRANSPARENT", "CONTAINER", "PLACE_ITEM", "INDOORS" ],
"flags": [ "TRANSPARENT", "CONTAINER", "PLACE_ITEM", "INDOORS", "DECONSTRUCT" ],
"deconstruct": { "ter_set": "t_pit", "items": [ { "item": "rock", "count": 40 }, { "item": "stick", "count": [ 16, 16 ] } ] },
"bash": {
"str_min": 18,
@@ -342,294 +342,6 @@
"items": [ { "item": "plastic_chunk", "count": [ 0, 2 ] }, { "item": "scrap", "prob": 50 } ]
}
},
{
"type": "terrain",
"id": "t_card_science_visitor",
"name": "Facility entrance card reader",
"description": "This is a smartcard reader. It sports the stylized symbol of an atom inside a flask that is universally known to indicate SCIENCE. You could swipe a Visitor's Pass near it to unlock the gates.",
"//": "Entrance card for a lab. Low security access.",
"symbol": "6",
"color": "cyan",
"copy-from": "t_card_science",
"looks_like": "t_card_science",
"examine_action": {
"type": "cardreader",
"flags": [ "SCIENCE_CARD_VISITOR" ],
"consume_card": true,
"allow_hacking": true,
"despawn_monsters": true,
"radius": 3,
"terrain_changes": { "t_door_metal_locked": "t_door_metal_c" },
"query": true,
"query_msg": "Are you sure you want to open this door?",
"success_msg": "You opened the door!",
"redundant_msg": "The door is already open."
}
},
{
"type": "terrain",
"id": "t_card_science_maintenance_green",
"name": "Maintenance: green zone card reader",
"description": "This is a smartcard reader. It sports the stylized symbol of an atom and a wrench on a green background. You could swipe a maintenance employee badge near it to unlock the gates.",
"//": "Entrance card for a lab. Low security access.",
"symbol": "6",
"color": "green",
"copy-from": "t_card_science",
"looks_like": "t_card_science",
"examine_action": {
"type": "cardreader",
"flags": [ "SCIENCE_CARD_MAINTENANCE_GREEN" ],
"consume_card": false,
"allow_hacking": false,
"despawn_monsters": true,
"radius": 7,
"terrain_changes": { "t_door_metal_locked": "t_thconc_floor" },
"query": true,
"query_msg": "Are you sure you want to open this gate?",
"success_msg": "You opened the gate!",
"redundant_msg": "The gate is already open."
}
},
{
"type": "terrain",
"id": "t_card_science_maintenance_yellow",
"name": "Maintenance: yellow zone card reader",
"description": "This is a smartcard reader. It sports the stylized symbol of an atom and a wrench on a yellow background. You could swipe a maintenance employee badge near it to unlock the gates.",
"//": "Tier 2 card for a lab. Medium security access.",
"symbol": "6",
"color": "yellow",
"copy-from": "t_card_science",
"looks_like": "t_card_science",
"examine_action": {
"type": "cardreader",
"flags": [ "SCIENCE_CARD_MAINTENANCE_YELLOW" ],
"consume_card": false,
"allow_hacking": true,
"despawn_monsters": false,
"radius": 3,
"terrain_changes": { "t_door_metal_locked": "t_door_metal_c" },
"query": true,
"query_msg": "Are you sure you want to open this door?",
"success_msg": "You opened the door!",
"redundant_msg": "The door is already open."
}
},
{
"type": "terrain",
"id": "t_card_science_maintenance_blue",
"name": "Maintenance: blue zone card reader",
"description": "This is a smartcard reader. It sports the stylized symbol of an atom and a wrench on a blue background. You could swipe a maintenance employee badge near it to unlock the gates.",
"//": "Tier 3 card for a lab. High security access.",
"symbol": "6",
"color": "blue",
"copy-from": "t_card_science",
"looks_like": "t_card_science",
"examine_action": {
"type": "cardreader",
"flags": [ "SCIENCE_CARD_MAINTENANCE_BLUE" ],
"consume_card": false,
"allow_hacking": true,
"despawn_monsters": false,
"radius": 3,
"terrain_changes": { "t_door_metal_locked": "t_door_metal_c" },
"query": true,
"query_msg": "Are you sure you want to open this door?",
"success_msg": "You opened the door!",
"redundant_msg": "The door is already open."
}
},
{
"type": "terrain",
"id": "t_card_science_transport_1",
"name": "Freight hauler access card reader",
"description": "This is a smartcard reader. It sports the stylized symbol of an atom and a truck. You could swipe a transporter's badge near it to unlock the gates.",
"//": "Entrance card for a lab. Low security access.",
"symbol": "6",
"color": "cyan",
"copy-from": "t_card_science",
"looks_like": "t_card_science",
"examine_action": {
"type": "cardreader",
"flags": [ "SCIENCE_CARD_TRANSPORT_1" ],
"consume_card": true,
"allow_hacking": false,
"despawn_monsters": false,
"radius": 7,
"terrain_changes": { "t_door_metal_locked": "t_thconc_floor" },
"query": true,
"query_msg": "Are you sure you want to open this gate?",
"success_msg": "You opened the gate!",
"redundant_msg": "The gate is already open."
}
},
{
"type": "terrain",
"id": "t_card_science_security_yellow",
"name": "Security: yellow zone card reader",
"description": "This is a smartcard reader. It sports the stylized symbol of an atom and a taser on a yellow background. You could swipe a security employee badge near it to unlock the gates.",
"//": "Tier 1 card for a lab. Medium security access.",
"symbol": "6",
"color": "yellow",
"copy-from": "t_card_science",
"looks_like": "t_card_science",
"examine_action": {
"type": "cardreader",
"flags": [ "SCIENCE_CARD_SECURITY_YELLOW" ],
"consume_card": false,
"allow_hacking": true,
"despawn_monsters": true,
"radius": 2,
"terrain_changes": { "t_door_metal_locked": "t_door_metal_c" },
"query": true,
"query_msg": "Are you sure you want to open this door?",
"success_msg": "You opened the door!",
"redundant_msg": "The door is already open."
}
},
{
"type": "terrain",
"id": "t_card_science_security_magenta",
"name": "Security: magenta zone card reader",
"description": "This is a smartcard reader. It sports the stylized symbol of an atom and a pistol on a magenta background. You could swipe a security employee badge near it to unlock the gates.",
"//": "Tier 2 card for a lab. Medium security access.",
"symbol": "6",
"color": "magenta",
"copy-from": "t_card_science",
"looks_like": "t_card_science",
"examine_action": {
"type": "cardreader",
"flags": [ "SCIENCE_CARD_SECURITY_MAGENTA" ],
"consume_card": false,
"allow_hacking": true,
"despawn_monsters": true,
"radius": 4,
"terrain_changes": { "t_door_metal_locked": "t_door_metal_c" },
"query": true,
"query_msg": "Are you sure you want to open this door?",
"success_msg": "You opened the door!",
"redundant_msg": "The door is already open."
}
},
{
"type": "terrain",
"id": "t_card_science_security_black",
"name": "Security: black zone card reader",
"description": "This is a smartcard reader. It sports the stylized symbol of an atom and a rifle on a black background. You could swipe a security employee badge near it to unlock the gates.",
"//": "Tier 3 card for a lab. High security access.",
"symbol": "6",
"color": "black",
"copy-from": "t_card_science",
"looks_like": "t_card_science",
"examine_action": {
"type": "cardreader",
"flags": [ "SCIENCE_CARD_SECURITY_BLACK" ],
"consume_card": false,
"allow_hacking": true,
"despawn_monsters": true,
"radius": 3,
"terrain_changes": { "t_door_metal_locked": "t_door_metal_c" },
"query": true,
"query_msg": "Are you sure you want to open this door?",
"success_msg": "You opened the door!",
"redundant_msg": "The door is already open."
}
},
{
"type": "terrain",
"id": "t_card_science_mutagen_green",
"name": "Researcher: green zone card reader",
"description": "This is a smartcard reader. It sports the stylized symbol of an atom and a flask on a green background. You could swipe a researcher scientist badge near it to unlock the gates.",
"//": "Entrance card for a lab research areas.",
"symbol": "6",
"color": "green",
"copy-from": "t_card_science",
"looks_like": "t_card_science",
"examine_action": {
"type": "cardreader",
"flags": [ "SCIENCE_CARD_MUTAGEN_GREEN" ],
"consume_card": false,
"allow_hacking": true,
"despawn_monsters": true,
"radius": 3,
"terrain_changes": { "t_door_metal_locked": "t_door_metal_c" },
"query": true,
"query_msg": "Are you sure you want to open this door?",
"success_msg": "You opened the door!",
"redundant_msg": "The door is already open."
}
},
{
"type": "terrain",
"id": "t_card_science_mutagen_pink",
"name": "Researcher: pink zone card reader",
"description": "This is a smartcard reader. It sports the stylized symbol of an atom and a flask on a pink background. You could swipe a researcher scientist badge near it to unlock the gates.",
"//": "Entrance card for a lab research areas.",
"symbol": "6",
"color": "light_red",
"copy-from": "t_card_science",
"looks_like": "t_card_science",
"examine_action": {
"type": "cardreader",
"flags": [ "SCIENCE_CARD_MUTAGEN_PINK" ],
"consume_card": false,
"allow_hacking": true,
"despawn_monsters": true,
"radius": 3,
"terrain_changes": { "t_door_metal_locked": "t_door_metal_c" },
"query": true,
"query_msg": "Are you sure you want to open this door?",
"success_msg": "You opened the door!",
"redundant_msg": "The door is already open."
}
},
{
"type": "terrain",
"id": "t_card_science_mutagen_cyan",
"name": "Researcher: cyan zone card reader",
"description": "This is a smartcard reader. It sports the stylized symbol of an atom and a flask on a cyan background. You could swipe a researcher scientist badge near it to unlock the gates.",
"//": "Entrance card for a lab research areas.",
"symbol": "6",
"color": "cyan",
"copy-from": "t_card_science",
"looks_like": "t_card_science",
"examine_action": {
"type": "cardreader",
"flags": [ "SCIENCE_CARD_MUTAGEN_CYAN" ],
"consume_card": false,
"allow_hacking": true,
"despawn_monsters": true,
"radius": 3,
"terrain_changes": { "t_door_metal_locked": "t_door_metal_c" },
"query": true,
"query_msg": "Are you sure you want to open this door?",
"success_msg": "You opened the door!",
"redundant_msg": "The door is already open."
}
},
{
"type": "terrain",
"id": "t_card_science_medical_red",
"name": "Medical: Red zone card reader",
"description": "This is a smartcard reader. It sports the stylized symbol of an atom and a syringe on a red background. You could swipe a researcher scientist badge near it to unlock the gates.",
"//": "Entrance card for a lab medical areas.",
"symbol": "6",
"color": "cyan",
"copy-from": "t_card_science",
"looks_like": "t_card_science",
"examine_action": {
"type": "cardreader",
"flags": [ "SCIENCE_CARD_MEDICAL_RED" ],
"consume_card": false,
"allow_hacking": true,
"despawn_monsters": true,
"radius": 3,
"terrain_changes": { "t_door_metal_locked": "t_door_metal_c" },
"query": true,
"query_msg": "Are you sure you want to open this door?",
"success_msg": "You opened the door!",
"redundant_msg": "The door is already open."
}
},
{
"type": "terrain",
"id": "t_card_reader_broken",
@@ -729,7 +441,7 @@
"color": "dark_gray",
"move_cost": 0,
"coverage": 50,
"flags": [ "TRANSPARENT", "MOUNTABLE", "PERMEABLE", "MINEABLE", "SEALED" ],
"flags": [ "TRANSPARENT", "MOUNTABLE", "PERMEABLE", "MINEABLE" ],
"examine_action": "pedestal_wyrm",
"bash": {
"str_min": 100,
@@ -29,7 +29,7 @@
"move_cost": 0,
"coverage": 100,
"roof": "t_resin_roof",
"flags": [ "NOITEM", "WALL", "PERMEABLE", "TRANSPARENT", "INDOORS", "MINEABLE" ],
"flags": [ "NOITEM", "WALL", "PERMEABLE", "TRANSPARENT", "INDOORS", "NONFLAMMABLE", "MINEABLE" ],
"bash": {
"str_min": 70,
"str_max": 300,
@@ -48,7 +48,7 @@
"color": "dark_gray",
"move_cost": 1,
"roof": "t_resin_roof",
"flags": [ "TRANSPARENT", "SUPPORTS_ROOF", "COLLAPSES", "INDOORS", "FLAT", "ROAD", "NOCOLLIDE" ],
"flags": [ "TRANSPARENT", "SUPPORTS_ROOF", "COLLAPSES", "INDOORS", "FLAT", "ROAD", "NONFLAMMABLE", "NOCOLLIDE" ],
"bash": {
"str_min": 250,
"str_max": 700,
@@ -67,7 +67,7 @@
"color": "light_gray",
"looks_like": "t_floor_resin",
"move_cost": 1,
"flags": [ "TRANSPARENT", "COLLAPSES", "FLAT", "ROAD" ],
"flags": [ "TRANSPARENT", "COLLAPSES", "FLAT", "ROAD", "NONFLAMMABLE" ],
"bash": {
"str_min": 250,
"str_max": 700,
@@ -86,7 +86,7 @@
"color": "dark_gray",
"move_cost": 2,
"looks_like": "t_floor_resin",
"flags": [ "TRANSPARENT", "FLAT" ],
"flags": [ "TRANSPARENT", "FLAT", "NONFLAMMABLE" ],
"bash": {
"str_min": 250,
"str_max": 700,
@@ -106,7 +106,7 @@
"move_cost": 0,
"coverage": 95,
"roof": "t_resin_roof",
"flags": [ "DOOR", "NOITEM", "CONNECT_TO_WALL", "BLOCK_WIND" ],
"flags": [ "DOOR", "NOITEM", "CONNECT_TO_WALL", "BLOCK_WIND", "NONFLAMMABLE" ],
"open": "t_resin_hole_o",
"deconstruct": { "ter_set": "t_resin_hole", "items": [ { "item": "resin_chunk", "count": [ 2, 5 ] } ] },
"bash": {
@@ -127,7 +127,7 @@
"color": "light_gray",
"move_cost": 2,
"roof": "t_resin_roof",
"flags": [ "TRANSPARENT", "FLAT", "CONNECT_TO_WALL" ],
"flags": [ "TRANSPARENT", "FLAT", "CONNECT_TO_WALL", "NONFLAMMABLE" ],
"deconstruct": { "ter_set": "t_resin_hole", "items": [ { "item": "resin_chunk", "count": [ 2, 5 ] } ] },
"close": "t_resin_hole_c",
"bash": {
@@ -148,7 +148,7 @@
"color": "light_gray",
"move_cost": 4,
"roof": "t_resin_roof",
"flags": [ "TRANSPARENT", "FLAT", "CONNECT_TO_WALL" ],
"flags": [ "TRANSPARENT", "FLAT", "CONNECT_TO_WALL", "NONFLAMMABLE" ],
"bash": {
"str_min": 100,
"str_max": 500,
@@ -55,7 +55,7 @@
]
},
"connects_to": "RAIL",
"flags": [ "RAIL", "TRANSPARENT" ]
"flags": [ "BASHABLE", "RAIL", "TRANSPARENT" ]
},
{
"id": "t_railroad_track_h",
@@ -86,7 +86,7 @@
]
},
"connects_to": "RAIL",
"flags": [ "RAIL", "TRANSPARENT" ]
"flags": [ "BASHABLE", "RAIL", "TRANSPARENT" ]
},
{
"id": "t_railroad_track_v",
@@ -117,7 +117,7 @@
]
},
"connects_to": "RAIL",
"flags": [ "RAIL", "TRANSPARENT" ]
"flags": [ "BASHABLE", "RAIL", "TRANSPARENT" ]
},
{
"id": "t_railroad_track_d",
@@ -148,7 +148,7 @@
]
},
"connects_to": "RAIL",
"flags": [ "RAIL", "TRANSPARENT" ]
"flags": [ "BASHABLE", "RAIL", "TRANSPARENT" ]
},
{
"id": "t_railroad_track_d1",
@@ -179,7 +179,7 @@
]
},
"connects_to": "RAIL",
"flags": [ "RAIL", "TRANSPARENT" ]
"flags": [ "BASHABLE", "RAIL", "TRANSPARENT" ]
},
{
"id": "t_railroad_track_d2",
@@ -210,7 +210,7 @@
]
},
"connects_to": "RAIL",
"flags": [ "RAIL", "TRANSPARENT" ]
"flags": [ "BASHABLE", "RAIL", "TRANSPARENT" ]
},
{
"id": "t_railroad_tie",
@@ -233,7 +233,7 @@
"items": [ { "item": "log", "count": [ 0, 1 ] }, { "item": "splinter", "count": [ 10, 20 ] } ]
},
"connects_to": "RAIL",
"flags": [ "TRANSPARENT" ]
"flags": [ "BASHABLE", "TRANSPARENT" ]
},
{
"id": "t_railroad_tie_h",
@@ -256,7 +256,7 @@
"items": [ { "item": "log", "count": [ 0, 1 ] }, { "item": "splinter", "count": [ 10, 20 ] } ]
},
"connects_to": "RAIL",
"flags": [ "TRANSPARENT" ]
"flags": [ "BASHABLE", "TRANSPARENT" ]
},
{
"id": "t_railroad_tie_v",
@@ -279,7 +279,7 @@
"items": [ { "item": "log", "count": [ 0, 1 ] }, { "item": "splinter", "count": [ 10, 20 ] } ]
},
"connects_to": "RAIL",
"flags": [ "TRANSPARENT" ]
"flags": [ "BASHABLE", "TRANSPARENT" ]
},
{
"id": "t_railroad_tie_d",
@@ -302,7 +302,7 @@
"items": [ { "item": "log", "count": [ 0, 1 ] }, { "item": "splinter", "count": [ 10, 20 ] } ]
},
"connects_to": "RAIL",
"flags": [ "TRANSPARENT" ]
"flags": [ "BASHABLE", "TRANSPARENT" ]
},
{
"id": "t_railroad_track_on_tie",
@@ -336,7 +336,7 @@
]
},
"connects_to": "RAIL",
"flags": [ "RAIL", "TRANSPARENT" ]
"flags": [ "BASHABLE", "RAIL", "TRANSPARENT" ]
},
{
"id": "t_railroad_track_h_on_tie",
@@ -370,7 +370,7 @@
]
},
"connects_to": "RAIL",
"flags": [ "RAIL", "TRANSPARENT" ]
"flags": [ "BASHABLE", "RAIL", "TRANSPARENT" ]
},
{
"id": "t_railroad_track_v_on_tie",
@@ -404,7 +404,7 @@
]
},
"connects_to": "RAIL",
"flags": [ "RAIL", "TRANSPARENT" ]
"flags": [ "BASHABLE", "RAIL", "TRANSPARENT" ]
},
{
"id": "t_railroad_track_d_on_tie",
@@ -438,7 +438,7 @@
]
},
"connects_to": "RAIL",
"flags": [ "RAIL", "TRANSPARENT" ]
"flags": [ "BASHABLE", "RAIL", "TRANSPARENT" ]
},
{
"id": "t_buffer_stop",
@@ -456,7 +456,7 @@
"sound_fail": "whump.",
"items": [ { "item": "2x4", "count": [ 2, 5 ] }, { "item": "nail", "charges": [ 3, 8 ] }, { "item": "splinter", "count": 2 } ]
},
"flags": [ "TRANSPARENT", "NOITEM", "MOUNTABLE" ]
"flags": [ "BASHABLE", "TRANSPARENT", "NOITEM", "MOUNTABLE" ]
},
{
"id": "t_railroad_tie_d1",
@@ -479,7 +479,7 @@
"items": [ { "item": "log", "count": [ 0, 1 ] }, { "item": "splinter", "count": [ 10, 20 ] } ]
},
"connects_to": "RAIL",
"flags": [ "TRANSPARENT" ]
"flags": [ "BASHABLE", "TRANSPARENT" ]
},
{
"id": "t_railroad_tie_d2",
@@ -502,7 +502,7 @@
"items": [ { "item": "log", "count": [ 0, 1 ] }, { "item": "splinter", "count": [ 10, 20 ] } ]
},
"connects_to": "RAIL",
"flags": [ "TRANSPARENT" ]
"flags": [ "BASHABLE", "TRANSPARENT" ]
},
{
"id": "t_railroad_crossing_signal",
@@ -600,7 +600,7 @@
]
},
"connects_to": "RAIL",
"flags": [ "RAIL", "TRANSPARENT" ]
"flags": [ "BASHABLE", "RAIL", "TRANSPARENT" ]
},
{
"id": "t_railroad_track_small_d",
@@ -634,6 +634,6 @@
]
},
"connects_to": "RAIL",
"flags": [ "RAIL", "TRANSPARENT" ]
"flags": [ "BASHABLE", "RAIL", "TRANSPARENT" ]
}
]

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