Compare commits

..

3370 Commits

Author SHA1 Message Date
Kevin Granade 8fcafdfc33 node to zone 2021-10-13 23:29:00 -07:00
Kevin Granade 8121923b3f Fixes 2021-10-13 21:38:53 -07:00
Kevin Granade a7ecf96e88 WIP overmap node 2021-10-13 21:20:41 -07:00
Kevin Granade e832612eae Add overlap check to cuboids and to map. 2021-10-13 21:20:41 -07:00
Kevin Granade d26ecc6bd3 Extract cleanup on submap exiting the reality bubble. 2021-10-13 21:20:41 -07:00
Kevin Granade 94aa269372 Split a mixing function into its own method 2021-10-13 21:20:41 -07:00
Kevin Granade 452a0c6280 Merge pull request #52060 from dseguin/crit_protection
Critical hit coverage
2021-10-13 21:19:10 -07:00
David Seguin 95019f2a75 Fix items with different mods getting stacked together (#52252)
* Compare item mods when stacking
2021-10-13 07:57:29 -07:00
Curtis Merrill ed863fe0fb add new magiclysm snippets (#52260)
Co-authored-by: Maleclypse <54345792+Maleclypse@users.noreply.github.com>
2021-10-13 07:55:56 -07:00
Angela Graves 1d946db2f0 Merge pull request #52146 from nornagon/glare-1
rationalize glare protection
2021-10-13 02:16:53 -05:00
anoobindisguise 553de93950 Add fried meat (#52238)
* add fried meat recipe

* fried meat

* fried meat can be used in recipes
2021-10-12 18:49:39 -07:00
Denica Bozhinova 76a2f8ff85 Few food recipe fixes and balances (#52198)
* Changes to nut ids and few other recipes. Weight balance in flour from nuts ingredients.

* Changes to nut ids and few other recipes. Weight balance in flour from nuts ingredients.
2021-10-12 18:44:21 -07:00
David Seguin a5515064cd Expand coverage names in '+' menu 2021-10-12 10:04:32 -04:00
faefux fb79bab750 Changed Military Pilot profession clothes. (#52127) 2021-10-12 14:10:40 +03:00
Angela Graves 7afb487b49 Merge pull request #52163 from Kantonine/master
Tactical Vest and XL chest rig fixed layering issues
2021-10-12 00:20:17 -05:00
Zhilkin Serg 7e4ae3ed90 Merge pull request #52223 from ISuckM8/survivor-belt-clip
Belt loop container for survivor belt
2021-10-12 07:36:16 +03:00
Zhilkin Serg 509c380cf8 Merge pull request #52191 from Night-Pryanik/hide-secret-lab-entrance
Added looks_like and land_use_code to secret lab entrance
2021-10-12 07:35:35 +03:00
Saicchi e5c16c96b0 Mopping zone (#52228) 2021-10-12 07:35:14 +03:00
Zhilkin Serg 982eb94c6b Merge pull request #52239 from Chroniclerope/patch-2 2021-10-12 07:33:38 +03:00
Zhilkin Serg 4922087dab Merge pull request #52241 from Chroniclerope/patch-3
added oversize tag to xl_gloves_fur
2021-10-12 07:33:10 +03:00
faefux 48aa839d1e Added military flight suit and helmet to itemgroups (#49215)
Co-authored-by: Binrui Dong <brett.browning.dong@gmail.com>

Co-authored-by: Anton Burmistrov <Night_Pryanik@mail.ru>

Co-authored-by: chaohedgehogs <46550455+chaohedgehogs@users.noreply.github.com>
2021-10-12 07:31:19 +03:00
Eric Pierce eb8a1404f4 Add descriptions to combustion engines in vehicle screen (#52235)
* Add descriptions to combustion engines

When installing or considering installing most gasoline or diesel
combustion engines, their descriptions were based on the generic
copy-from descriptions for each engine type, making it hard to tell
which engines are suited to various vehicles.

These descriptions suggest typical applications for combustion engines,
or some vehicles where they may be found.

* Create/add E_DIESEL_FUEL flag for diesel engines
2021-10-12 07:30:13 +03:00
Zhilkin Serg e793b8772e Merge pull request #52249 from CleverRaven/asan
Traverse all strings in MO translation document to detect memory access violation
2021-10-12 07:29:34 +03:00
Zhilkin Serg 8137b74e6b Merge pull request #52243 from BrettDong/ranged-i18n
Add missing translation in aiming UI
2021-10-12 07:29:16 +03:00
Binrui Dong 6de5bab332 Fix compile errors on LLVM/Clang 13 (#52247) 2021-10-12 07:28:58 +03:00
Binrui Dong 96c5b0f1b1 Traverse all strings in MO translation document to detect memory access violation 2021-10-12 02:19:09 +08:00
Binrui Dong e57535c28c Add missing translation in aiming UI 2021-10-11 16:55:38 +08:00
Angela Graves 825605829f Merge pull request #52232 from Inglonias/birding
Added bird watching profession
2021-10-11 03:10:07 -05:00
Chroniclerope a5ce89ee1a added "OVERSIZE" tag to xl_gloves_fur 2021-10-11 01:22:58 -04:00
Chroniclerope 5598778556 oversize tag added to xlnomex_socks 2021-10-11 01:08:05 -04:00
Zhilkin Serg c7fa6fbc50 Merge pull request #52174 from BrettDong/rummaging
Rummaging mod
2021-10-11 07:31:20 +03:00
Zhilkin Serg 59c33dfbe9 Merge pull request #52208 from jbytheway/mapgen_can_rely_on_predecessor
Add support for dynamic predecessor mapgen
2021-10-11 07:30:36 +03:00
Zhilkin Serg f441cd0eb9 Merge pull request #52204 from wapcaplet/w-motor-desc
Add descriptions to electric motors in vehicle screen
2021-10-11 07:29:50 +03:00
Faalagorn f6e4aa0596 Change P32 to P-32 and P3AT to P-3AT (#52189) 2021-10-11 07:28:58 +03:00
Zhilkin Serg 7c90e4c279 Merge pull request #52192 from Night-Pryanik/color-relics-in-pink
Color relics in inventory in pink
2021-10-11 07:28:42 +03:00
Zhilkin Serg 59555dd5e5 Merge pull request #52197 from AMurkin/fix-crashing-related-recipes
Fix crash when getting related recipes with no components and results for current recipe
2021-10-11 07:28:33 +03:00
Zhilkin Serg 67f4100409 Merge pull request #52205 from RoyBerube/camera-center
View offset is not saved while driving
2021-10-11 07:28:04 +03:00
Faalagorn 27a351f825 Change Five-Seven to Five-seveN (#52211) 2021-10-11 07:27:49 +03:00
Zhilkin Serg 79ab698893 Merge pull request #52224 from NetSysFire/helipad-barbedwire
helipad.json: Use barbed wire fence
2021-10-11 07:27:15 +03:00
Zhilkin Serg a592ddff5b Merge pull request #52225 from Fris0uman/tile1010
Update Tilesets 2021-10-10
2021-10-11 07:27:06 +03:00
Zhilkin Serg d6d1c37a83 Merge pull request #52233 from casswedson/fix-exodii-quad-spell
Fix exodii quadruped spell
2021-10-11 07:26:39 +03:00
PatrikLundell e6ae64bdd2 Base camp expansion workshop 2 concrete (8/8) (#52217) 2021-10-11 07:26:08 +03:00
PatrikLundell 37cde74fdc Base camp expansion workshop 2 log (7/8) (#52216) 2021-10-11 07:25:54 +03:00
PatrikLundell 8e054d7f3f Base camp expansion workshop 2 metal (6/8) (#52214) 2021-10-11 07:25:36 +03:00
Inglonias be1d6c74fd Gave the bird watcher a messenger bag 2021-10-10 18:59:16 -04:00
Inglonias c7a96723e6 Removed matches
Oh right. I copy/pasted a bunch of stuff. Whoops.
2021-10-10 18:30:44 -04:00
casswedson 4da69879a1 Fix exodii quadruped spell
Make the thing more likely to use the spell, fix errors, range edits
2021-10-10 17:21:08 -05:00
Inglonias d24e7eea23 Linted the file properly 2021-10-10 18:17:44 -04:00
Inglonias 362042b788 Added bird watching profession 2021-10-10 18:06:51 -04:00
Fris0uman eadd2c7d07 Update MSX 2021-10-10 2021-10-10 22:19:24 +02:00
Fris0uman 422d86a4ee Update Chibi-Ultica 2021-10-10 2021-10-10 22:19:07 +02:00
Fris0uman 3fd93fd5f3 Update BrownLikeBears 2021-10-10 2021-10-10 22:18:44 +02:00
NetSysFire 3d436eddd5 helipad.json: Use a barbed wire fence instead of a regular chainlink one 2021-10-10 20:06:49 +02:00
ISuckM8 5cdbf32d7a Update utility.json 2021-10-10 20:05:19 +02:00
Binrui Dong 09fe2dd701 Only run pull translations workflow in CleverRaven repository (#52219) 2021-10-10 10:28:44 -07:00
David Seguin a0cdf82bf0 Allow harvestable plants to be autoforaged (#52207) 2021-10-10 10:28:07 -07:00
Kevin Granade 1060d48780 Merge pull request #51983 from Maleclypse/Mutagen-Recipe-ingredients
Additional samples for Mutagen recipes
2021-10-10 08:52:47 -07:00
John Bytheway 8ac05a0b1a Add support for dynamic predecessor mapgen
The idea is that some oter_ts are just a modification of the existing
terrain, and we want to remember what that terrain was and generate it
before proceeding with the mapgen for the current terrain.

We implement this by adding a flag to the oter_type indicating that it
needs  to save predecessor information, and a fallback predecessor
terrain to the mapgen.  This serves two purposes: allowing it to opt in
to this feature, which means it is no longer forced to define terrain
for every location, and defining a fallback oter_t to use in the event
none is stored in the overmap (which can happen, e.g. when the mapgen
definition changes between overmap mapgen and tile mapgen for a
particular OMT).

Use the new feature for anthills, so that they blend better into their
surrounding terrain.

Expose predecessors in the debug overmap editor for debugging purposes.
2021-10-10 07:32:49 -04:00
Angela Graves c17298f62f Merge pull request #52196 from ClipClopBoom/tailor_10_name_change
Rename tailoring 10 acheivement
2021-10-10 00:22:04 -05:00
Maleclypse fbfc6a87fb Apply suggestions from code review 2021-10-09 22:12:09 -05:00
Eric 9ec4b07299 Add next weather dialog effect (#52194)
* Add next weather

* Update NPCs.md
2021-10-09 19:08:04 -07:00
Maleclypse 042b093d14 Update mutagens.json 2021-10-09 21:02:14 -05:00
Maleclypse edb31fd761 Feline and Lupine 2021-10-09 20:33:00 -05:00
RoyBerube 8c411b26d7 Save player view offset 2021-10-09 16:50:17 -06:00
Willow a484de0c7b Update achievements.json 2021-10-09 17:56:30 +01:00
Eric Pierce c1c5cd01ce Add descriptions to electrical motors
These are the descriptions displayed in the vehicle screen when
installing or removing parts, so it helps to know more about the
different kinds of motor and whether they are appropriate.
2021-10-09 10:42:46 -06:00
PatrikLundell 57ac72fbd9 Base camp expansion workshop rammed earth and migo resin (4-5/8) (#52190)
* base camp workshop 2 in ramned earth
* workshop 2 expansion in mi-go resin
2021-10-09 09:05:12 -07:00
PatrikLundell 89b35acc3b Base camp expansion workshop 2 rock (3/8) (#52183)
* base camp workshop 2 in rock
2021-10-09 09:03:41 -07:00
PatrikLundell b2da7772ed Base camp expansion workshop 2 wad (2/8) (#52181)
* base camp expansion workshop 2 in wad
2021-10-09 09:02:28 -07:00
Anton Burmistrov e0282d1d9b Clarified messages about setting timer of c4 (#52193) 2021-10-09 08:59:00 -07:00
Kevin Granade 0203a7d8de Routine i18n updates on 09 October 2021 (#52180)
Co-authored-by: Brett Dong (BOT) <brett.browning.dong@gmail.com>
2021-10-09 08:33:26 -07:00
Kevin Granade 9cb1082a7d Merge pull request #52169 from Joshua-Chin/weakpoints-bugfix
Fix weakpoint dissection practice
2021-10-09 08:30:30 -07:00
Anton Burmistrov 945ae33607 Colorize relics in inventory in pink 2021-10-09 17:48:45 +04:00
Anton Burmistrov bca48c86e4 Added looks_like and land_use_code to secret lab entrance 2021-10-09 17:26:03 +04:00
Alexey Mostovoy 3b1abf433c Don't try to show and construct menu
if there's nothing to show.

Fixes the crash.
2021-10-09 15:14:54 +03:00
Angela Graves 06c43637f0 Merge pull request #52179 from jbox144/patch-1
A handful of survivor notes
2021-10-09 04:05:09 -05:00
compilatron ebe5ade13e Update data/json/snippets/survivor_notes.json
Co-authored-by: David Seguin <davidseguin@live.ca>
2021-10-09 12:22:44 +11:00
compilatron f79ea8037d Update data/json/snippets/survivor_notes.json
Co-authored-by: David Seguin <davidseguin@live.ca>
2021-10-09 12:22:27 +11:00
compilatron c78de8b8d5 Update data/json/snippets/survivor_notes.json
Co-authored-by: David Seguin <davidseguin@live.ca>
2021-10-09 12:22:15 +11:00
Maleclypse 835969b610 reptile 2021-10-08 20:09:06 -05:00
compilatron 018ab86a3e More notes 2021-10-09 11:44:31 +11:00
PatrikLundell 767dd86b9f base camp expansion workshop 2 in wood (1/8) (#52158)
* base camp expansion workshop 2 in wood
2021-10-08 12:45:50 -07:00
faefux cc2375f982 Human Skull (#52097) 2021-10-08 12:45:02 -07:00
993499094 85c57b0560 Rummaging mod
Name: Rummaging

Description: Some furniture containers need to open the door to scavenge, to enhance the thrill of scavenging.

MOD Changes:
  Firebarrel(100L) - Closer view
  Firebarrel(200L) - Closer view
  Dryer - Open/Close door,Not block view
  Fridge - Open/Close door
  Glass Fridge - Open/Close door,Closer view,Not block view
  Washer - Open/Close door,Not block view
  Oven - Open/Close door,Fireplace
  Shredde - Open/Close door
  Sample Freezer - Open/Close door,Hide Place
  Hay - Hide Place
  Bookcase - Closer view,Resize
  Crate(Open) - Hide Place
  Cardboard Box - Open/Close door
  Dresser - Open/Close door,Resize
  Glass Cabinet - Open/Close door
  Glass Cabinet - Open/Close door,Hide Place
  Recycle Bin - Open/Close door,Hide Place,Resize
  Trashcan - Open/Close door
  Wardrobe - Open/Close door,Hide Place
  Filing Cabinet - Open/Close door
  Dumpster - Open/Close door,Hide Place
  Cupboard - Open/Close door,Hide Place
2021-10-08 23:23:37 +08:00
Serhiy Zahoriya cd31f25349 Performance "Seamless loading of gzipped JSON/txt files (data and map)" (#44218)
Co-authored-by: Oleg Antipin <60584843+olanti-p@users.noreply.github.com>
Co-authored-by: John Bytheway <jbytheway@gmail.com>
Co-authored-by: LcsTen <lcs10.twinoid@gmail.com>
Co-authored-by: akrieger <akrieger@users.noreply.github.com>
Co-authored-by: Zhilkin Serg <ZhilkinSerg@users.noreply.github.com>
2021-10-08 17:03:59 +03:00
Zhilkin Serg d0430036d6 Merge pull request #52171 from BrettDong/font
Resume shipping Terminus TTF font
2021-10-08 17:02:50 +03:00
Binrui Dong d233c4fe3c Resume shipping Terminus TTF font 2021-10-08 16:10:33 +08:00
Angela Graves fb322dea60 Merge pull request #52167 from Hymore246/MABU-crane
Martial Arts Balance Update: Crane Kung Fu
2021-10-08 01:25:41 -05:00
Zhilkin Serg 1b3be1b589 Merge pull request #52168 from jbytheway/fix_road_mapgen
Fix road mapgen to check the correct neighbours
2021-10-08 08:45:50 +03:00
Zhilkin Serg 286fce821b Merge pull request #52114 from ildifa/Update_bipod_desc
Small bipod description update
2021-10-08 08:45:14 +03:00
Zhilkin Serg 895d044c9e Merge pull request #52170 from bxNice/House29Fix
Fix for weird window placement and missing fence in house29.json
2021-10-08 08:44:59 +03:00
Zhilkin Serg 10f9006764 Merge pull request #52164 from dseguin/more_slimespring_snippets
More snippet-ization
2021-10-08 08:44:38 +03:00
ildifa fcc7878fd1 Small bipod description update 2021-10-08 12:36:14 +08:00
cincident 13e83fe4ee Update hints.json (#51398)
Co-authored-by: Zhilkin Serg <ZhilkinSerg@users.noreply.github.com>
2021-10-07 21:30:38 -07:00
Brock 2c8846e0a6 Fix for window and fence tiles in house29.json (CleverRaven#52112) 2021-10-07 22:55:46 -05:00
Maleclypse 2316144cda spider, troglobite samples 2021-10-07 21:48:31 -05:00
Joshua Chin 10db8a6bb9 Add test case 2021-10-07 22:02:08 -04:00
John Bytheway 63d0034c95 Fix road mapgen to check the correct neighbours
The changes in #51913 altered how neighbours were entered into the
mapgendata context.  For JSON mapgen this fixed issues, but for
hardcoded mapgen it could break things.

In particular, for road mapgen it caused problems.

Add a new flag to allow specific oter_ts to opt out of this new
behaviour, and apply it to roads.
2021-10-07 21:14:24 -04:00
Joshua Chin cb13e79e3f Don't use lazy evaluation in practice_dissect 2021-10-07 19:44:19 -04:00
Joshua Chin 2eec511cc8 Only print the dissect message when something is learned. 2021-10-07 19:05:53 -04:00
Eric Marinier fe3486b63e Added a Paranormal Investigator Profession (#52041)
Co-authored-by: Maleclypse <54345792+Maleclypse@users.noreply.github.com>
Co-authored-by: Binrui Dong <brett.browning.dong@gmail.com>
2021-10-07 16:01:33 -07:00
Hymore246 36a285d19c Martial Arts Balance Update: Crane Kung Fu 2021-10-07 16:45:41 -05:00
David Seguin e3cc593e25 Move generated slimespring quotes to snippets 2021-10-07 14:56:54 -04:00
Kantonine 1fed0543c5 Flag correction for tacvest and xl chestrig
Added the correct flags for the Chestrig XL and the normal sized tac vest
2021-10-07 18:06:51 +01:00
Kantonine baf0ddbfae Update Lines for XL Chestrig and Normal Tacvest 2021-10-07 17:02:36 +01:00
Binrui Dong 0953a04b59 Avoid time rewind in npc test (#52156) 2021-10-07 08:31:54 -07:00
Angela Graves 8cdc540377 Merge pull request #51471 from Night-Pryanik/balrog-mine
New mine variant for Magiclysm
2021-10-07 03:17:36 -05:00
anoobindisguise 644c2ec3e3 "Smelly" and "Weak Scent" now are conflicting mutations (#52152) 2021-10-06 22:45:41 -07:00
radekrudak afefcdc971 Fix infection message (#52145)
* line 994 in ./data/json/effects.json: removed bite from message so now  you dosn't get information about your  biten wound  every time you got infection  even if wound isn't infection
2021-10-06 22:44:24 -07:00
PatrikLundell 3b6db1b97c Base camp expansion storehouse 2 concrete (8/8) (#52141)
* base camp expansion storehouse 2 in concrete
2021-10-06 22:43:43 -07:00
PatrikLundell 47f0ab11ef Base camp expansion storehouse 2 log (7/8) (#52140)
* base camp expansion storehouse 2 in log
2021-10-06 22:43:26 -07:00
Saicchi 09f6fd6bee fix spell (#52139)
Co-authored-by: Saicchi <Saicchi@users.noreply.github.com>
2021-10-06 22:43:13 -07:00
Binrui Dong 18bb8e719c Enable GitHub Actions problem matchers in MSVC build (#52138) 2021-10-06 22:42:51 -07:00
PatrikLundell 0ad6d863f3 Base camp expansion storehouse 2 metal (6/8) (#52137)
* storehouse in metal with bookcases
2021-10-06 22:42:33 -07:00
David Seguin 62b4b5f9e2 Random chat quips (#52134)
* Add chance for NPC to say random snippet when chatting

Co-authored-by: Leland Clemmons <leland.clemmons@gmail.com>
2021-10-06 22:42:18 -07:00
Binrui Dong 90e904ef66 Verify font can be rendered successfully at runtime (#52133)
* Verify font can be rendered successfully at runtime

* Fix clang-tidy warning
2021-10-06 22:41:38 -07:00
Maleclypse decef41fec Remove extra item copies (#52132) 2021-10-06 22:40:29 -07:00
Eric Pierce ed47bab111 Revise invalid field error: unexpected value format (#52125)
This error is displayed when an unexpected field appears during JSON
parsing. It also appears for valids fields with values in an unexpected
format, for instance when "crit_mult" is a plain floating point number
instead of an object.
2021-10-06 22:40:15 -07:00
Eric Marinier 127a8d0b31 Updating toolbox size. (#52118) 2021-10-06 22:39:45 -07:00
PatrikLundell 0dc886bf7e Base camp expansion storehouse 2 mi-go resin (5/8) (#52111)
* storehouse 2 in mi-go resin and dressers
2021-10-06 22:38:41 -07:00
PatrikLundell 05dd828587 Base camp expansion storehouse 2 rock (4/8) (#52110)
* base camp expansion storehouse 2 in rock with lockers
2021-10-06 22:38:27 -07:00
PatrikLundell c18f56b51d Base camp expansion storehouse 2 rammed earth (3/8) (#52108)
* base camp expansion storehouse 2 rammed earth
2021-10-06 22:38:06 -07:00
PatrikLundell 8dcc2456e2 storehouse 2 in wad with warehouse shelves (#52107) 2021-10-06 22:37:38 -07:00
NetSysFire 5926bf0602 iuse.cpp: remove part obsoleted by the sound code describing noises (#52106)
* iuse.cpp: remove obsolete part

* iuse.cpp: add an info message when a player activates a talking doll

* iuse.cpp: Use neutral instead of info message

Makes it nicer to read and classifying the message as neutral appears to be more appropriate here
2021-10-06 22:37:15 -07:00
Kevin Granade 1719eef930 Merge pull request #52103 from jbytheway/mutable_special_alternate_joins
Support 'alternative joins' in mutable overmap specials
2021-10-06 22:36:24 -07:00
Hymore246 9c0a6750e1 Martial Arts Balance Update: Aikido (#52102) 2021-10-06 22:35:36 -07:00
ferociousdork e3d6d2a7a4 Maple harvesting fixes (#52099)
* Maple harvesting fixes

* Removed unused variable
2021-10-06 22:35:08 -07:00
Maleclypse 215b2a4aa1 Forge Library (#52062) 2021-10-06 22:33:58 -07:00
Joshua Chin eb0705c190 Weakpoints (Part 9): More Documentation (#52055)
* Add additional documentation of weak points.

* Add documentation about weakpoint ID and default weakpoint

* Clarify documentation
2021-10-06 22:32:40 -07:00
Jeremy Rose 01d2848557 rationalize glare protection 2021-10-06 10:05:13 -07:00
Binrui Dong 208638b176 Compute text changes between base commit and head commit of a pull request (#52120) 2021-10-06 07:55:31 -07:00
Eric Pierce aee37cd372 Reduce wheel wrench requirements for bicycles, tricycles, scooters, wheelbarrows (#52131)
* Bike, wheelbarrow, and 10-inch don't need tire iron

Allow wrench level 2 to change such wheels.

* Wrench 2 removes or installs small rail wheels

* Wrench 1 for scooter, tricycle, and caster wheels

* Eliminate mechanics requirement for small wheels
2021-10-06 07:54:17 -07:00
Angela Graves 30b7ca41c1 Merge pull request #52104 from dseguin/debug_fixes
Misc Debug Fixes
2021-10-06 02:46:44 -05:00
David Seguin 87e3b021fd Mitigate crits from characters (melee and ranged) 2021-10-06 01:51:58 -04:00
David Seguin 587b8f6627 Fix iteminfo_test.cpp for new coverage format 2021-10-06 01:19:23 -04:00
David Seguin eb6ff584c2 Fix formatting of coverage info 2021-10-06 01:19:23 -04:00
David Seguin 4c62bd5c48 Display extra coverage in-game 2021-10-06 01:19:23 -04:00
David Seguin b8420dff53 Read additional coverage values from json 2021-10-06 01:19:22 -04:00
Tealc f22da475f3 Updated to_hit (#52076)
* Bludgeons to-hit

Updates to-hit standard for the bludgeon list

* Misc to-hit

Updates to-hit standard for the misc list

* Spears_and_polearms to-hit

Updates to-hit standard for the spears_and_polearms list

* Swords_and_blades to-hit

Updates to-hit standard for the swords_and_blades list

* I forgot hands exist

* Unarmed to-hit

fin

* Fixes

Minor fixes

* double space

* end of line error?

* Final fixes

Co-authored-by: Maleclypse <54345792+Maleclypse@users.noreply.github.com>
2021-10-05 18:39:41 -07:00
Joshua Chin 41c96f090e Add parsing for damage required flag (#52124) 2021-10-05 16:30:13 -07:00
Joshua Chin 63d6375d6b Weakpoint (Part 8): A framework for weak point proficiencies (#52081)
* Add is_thrown flag to weakpoint attack

* Add weakpoint family and add JSON loading

* Add "families" loading to mtype

* Add loading to monster generator

* Delay weak point skill calculation to `deal_damage`

* Add const to weakpoint_skill methods

* Add examples

* Add weakpoint_families

* Implement weakpoint_families

* Update mtype to use weakpoint_families

* Add weakpoint_family modifier function

* astyle

* Add weakpoint familiy learning to dissect and kill

* Add practice hit

* Update weakpoint JSON

* astyle

* Compilation fixes

* Add documentation.

* json-style

* Add weakpoint_defaults to proficiency

* Use default values

* Add proficiency-weakpoint documentation

* astyle

* add example

* Add shorthand and examples

* astyle

* Add butchering activity_handler workaround.

* astyle

* Bump practice_hit to 2 seconds

* Remove unneeded reference
2021-10-05 15:40:04 -07:00
David Seguin 24125626bf clang-tidy 2021-10-05 11:40:24 -04:00
John Bytheway ba748dda60 Remove unused field 2021-10-05 07:15:25 -04:00
Angela Graves 594fd67f46 Merge pull request #52048 from KonH/remove_DURABLE_MELEE_on_cudgel
Remove DURABLE_MELEE on cudgel (#51251)
2021-10-05 01:54:05 -05:00
mythosmod 2f54703caf Update lab_floorplans.json (#52096) 2021-10-04 19:58:30 -07:00
David Seguin 72a291a342 Reset weariness from debug needs 2021-10-04 22:49:31 -04:00
David Seguin f6422ec29c Defer screenshot until debug menu is closed 2021-10-04 22:08:22 -04:00
John Bytheway bd11358748 Document alternative joins 2021-10-04 21:51:12 -04:00
John Bytheway abc56eeced Use alternative joins in mutable microlab
Take advantage of alternative joins (in different ways) in the mutable
microlab and the test variant of that.

This resolves the issues the mutable microlab would previously have when
not all its hallways could be placed properly, leading to other hallway
fragments.
2021-10-04 21:40:54 -04:00
John Bytheway 9577d14e81 Support alternative joins in mutable specials
Alternative joins allow an overmap in a mutable special to match an
existing join that they would not otherwise, without affecting the
requirement for onwards matching on other unresolved edges.  This is
particularly useful when spawning a collections of 'clumpy' overmaps
around some existing ones.  For example, the mutable microlab has a
hallway and then microlab terrains.  The microlab terrains should match
the hallway, but their unresolved edges should only match more
microlabs.
2021-10-04 21:37:52 -04:00
leemuar d9d6448206 52080 fix flashlight and eink tablet don't brake underwater (#52092) 2021-10-04 16:28:57 -07:00
PatrikLundell 3fe0ed6c59 Base camp expansion storehouse wood (1/8) (#52091)
* storage expansion 2 start with wood and wooden racks
2021-10-04 16:20:31 -07:00
Eric 776ab0423c Fix global eoc reactivation and loading. (#52083)
* Fix eocs issues

* Update EFFECT_ON_CONDITION.md
2021-10-04 12:07:25 -07:00
John Bytheway 4365cca0da Fix some debug / error messages
A couple of these messages were unhelpful or invalid (e.g. passing the
wrong number of args for a format string).  Fix that.
2021-10-04 06:25:57 -04:00
Zhilkin Serg cbd8876a6a Merge pull request #52085 from Ramza13/portal_snippets
Add snippets for portal storms
2021-10-04 09:20:40 +03:00
Zhilkin Serg 0a447f9a64 Merge pull request #52030 from Ramza13/eoc_fixes
Allow talking to pets
2021-10-04 09:18:47 +03:00
Zhilkin Serg b5d92bcae5 Merge pull request #51981 from dseguin/cards_for_all
Games with friends
2021-10-04 09:18:29 +03:00
Zhilkin Serg ceea045f7f Merge pull request #52002 from jim-huynh/crafting_with_none_fix
Bugfix: Crafting with none
2021-10-04 09:13:13 +03:00
Zhilkin Serg 8dac6013d1 Merge pull request #51947 from ferociousdork/fix_effect_iterator_invalidation
Fix effect iterator invalidation
2021-10-04 09:06:06 +03:00
ildifa dc30d534ca Use bipod when shooting from prone (#51472) 2021-10-04 09:02:32 +03:00
Eric Pierce a24cb498c0 Add more bolt-turning tools (#51936)
* Change existing "wrench" to "adjustable wrench"

Rename existing wrench to have a more specific name, in preparation of
adding several other kinds of wrench.

Also reduce existing wrench volume; steel density is around 8 g/ml.
Preserve original weight, but reduce volume.

Lowering the volume increased the wrench's effective density, making it
do slightly (~0.94) more damage per second, from 7 to 8 DPS. Adjust the
test case accordingly.

* Add new wrenches and wrenching tools

- cordless impact wrench - medium-battery-powered, for bolts or lug nuts
- locking pliers - can turn bolts (but not fine bolts), and clamp
- socket wrench set - regular or fine bolts, but not lug nuts
- socket screwdriver set - screws or fine bolts
- large adjustable wrench - large bolts or lug nuts
- small adjustable wrench - fine bolts only

* Add new wrench tools to various itemgroups

* Remove WHEEL_FAST from gunsmith kits and bionic

* Change vehicle wheel requirement to tools

Listing specific tools that can fasten a vehicle wheel allows the use of
charged power tools like the cordless impact wrench.

Including the WHEEL_FAST quality requirement is redundant in this case
and clutters the UI, but these three tools are now the only ones with
that quality.
2021-10-04 08:45:10 +03:00
Eric 17a7ee36fa Scrollable (#51909) 2021-10-04 08:44:17 +03:00
Nova 566e5624b0 Compact Vehicle Parts (#51225) 2021-10-04 08:43:51 +03:00
faefux cd0be9def6 Upgraded prisoner transport bus (#51891) 2021-10-04 08:43:30 +03:00
Zhilkin Serg beccae5412 Merge pull request #51053 from MalteT/fix/rendering-on-wayland
Fix rendering routine on native wayland
2021-10-04 08:42:24 +03:00
Zhilkin Serg 4bd80ae352 Merge pull request #52032 from mythosmod/SheetFix
Change weight and volume of sheet to match deconstructed items
2021-10-04 08:41:25 +03:00
Fris0uman 0503602267 Add option to toggle display of piece of armor on player sprite (#52054) 2021-10-04 08:41:04 +03:00
Zhilkin Serg 78fecd886c Merge pull request #52058 from Fris0uman/hide_yo_hair_2
Add option to toggle display of trait/mutation on player sprite
2021-10-04 08:40:18 +03:00
Zhilkin Serg b0ff3a5bd9 Merge pull request #52075 from NetSysFire/patch-9 2021-10-04 08:39:53 +03:00
Zhilkin Serg 352710506f Merge pull request #52086 from Fris0uman/sprite_time
Update tilesets 2021-10-03
2021-10-04 08:38:56 +03:00
Angela Graves 7d9eec3382 Merge pull request #52078 from Hymore246/remove-tec-counter
Removed tec_counter technique
2021-10-04 00:35:04 -05:00
ferociousdork 08256f00b6 Allow mixing of liquids with different freshness levels (#52077) 2021-10-03 19:20:18 -07:00
PatrikLundell d6e70e5001 Base camp expansion livestock concrete (8/8) (#52072)
* livestock area 2 in concrete
2021-10-03 18:33:13 -07:00
PatrikLundell 8ada2ef5b8 Base camp expansion livestock log (7/8) (#52071)
* livestock area 2 out of logs
2021-10-03 18:32:21 -07:00
PatrikLundell 7c9779b755 Base camp expansion livestock metal (6/8) (#52069)
* livestock area 2 in metal
2021-10-03 18:31:50 -07:00
NotDucc e36c840029 357 Magnum Buff (#52066)
* 357 Updated

Both bullets now match the damage formula for guns.
2021-10-03 18:30:13 -07:00
jim-huynh 6f71bc29f2 Add climbable flag to chickenwire fence because it is climbable for players. (#52063) 2021-10-03 17:53:16 -07:00
Kevin Granade df9180c680 Merge pull request #52056 from jbytheway/mutable_special_chunk_placement
Mutable special chunk placement
2021-10-03 16:50:05 -07:00
Maleclypse d5530f2a03 Update mutagen.json (#52051) 2021-10-03 16:34:10 -07:00
Faalagorn 7bcd158f98 Marked two strings for translation (#52047)
Marked `%s, day %d` and `SAFE` strings for translation for gettext
2021-10-03 16:32:22 -07:00
David Seguin 1b8564a3aa Fix trade crash in certain situations (#52042) 2021-10-03 16:31:51 -07:00
Eric ad778bb021 Affect nearby npcs (#52037) 2021-10-03 16:30:06 -07:00
Fris0uman bb38ea8c06 Update MSX 2021-10-03 2021-10-03 22:42:20 +02:00
Fris0uman 1ad8f2e72c Uodate SurveyorsMap 2021-10-03 2021-10-03 22:41:58 +02:00
Fris0uman 5c6878f236 Update Retrodays 2021-10-03 2021-10-03 22:41:42 +02:00
Fris0uman a3b6bdefcc Update Ultica 2021-10-03 2021-10-03 22:41:14 +02:00
Fris0uman 362548b96f Update Chibi Ultica 2021-10-03 2021-10-03 22:40:57 +02:00
Ramza13 bf12645035 Initial version 2021-10-03 16:14:32 -04:00
Elgrosito 33760475f6 Realistic stock removal for smithing and related (#51698)
* Realistic stock removal

This update expands mainly on recipes that require forging. Replaces chiseling on most recipes with grinding tools, adds grind qualities to some tools and adds new ones.

Co-authored-by: Tealc <45678006+TealcOneill@users.noreply.github.com>
2021-10-03 10:50:00 -07:00
Binrui Dong d1e8b4739b Analyze text changes on pull request patch (#52052)
* Analyze text changes on pull request patch

* Update .github/workflows/text-changes-analyzer.yml
2021-10-03 10:26:53 -07:00
Hymore246 0c76b4200a Removed tec_counter technique 2021-10-03 09:13:56 -05:00
NetSysFire 2a8cd3d31c speech.json: Quoting and punctuation fixes 2021-10-03 12:20:52 +02:00
Angela Graves 81ae26757a Merge pull request #52057 from ISuckM8/police-belt-fix
Police belt pouch fix
2021-10-03 01:52:47 -05:00
Hymore246 5db5e166b8 Martial Arts Balance Update: Minor Changes (#52036) 2021-10-02 18:31:34 -07:00
Maria f3fae29c8b Add clarifying text to Iron Safari mission description (#52033)
Co-authored-by: Maleclypse <54345792+Maleclypse@users.noreply.github.com>
2021-10-02 18:05:46 -07:00
Fris0uman 960f9484ca Add option to toggle display of trait/mutation on player sprite 2021-10-03 01:09:45 +02:00
ISuckM8 503dc24a7c Update belts.json 2021-10-03 00:17:03 +02:00
John Bytheway 59bf342bd2 Document mutable overmap chunks 2021-10-02 16:20:43 -04:00
John Bytheway 0b13c719c8 Fix spawn errors for mutable microlab
A few tweaks to the mutable microlab to ensure that it doesn't suffer
unresoved join errors:

* Place the subway section as a single chunk.
* Have more blind hallway segments for obscure corner cases.
2021-10-02 15:52:57 -04:00
eso 88c31dd8a5 Merge pull request #52039 from CleverRaven/i18n
Routine i18n updates on 02 October 2021
2021-10-02 11:38:27 -07:00
ProfoundDarkness 294e7c26fa Updated docs based on #52023 and #51997 (#52028) 2021-10-02 10:44:41 -07:00
PatrikLundell 630e4601b0 Base camp expansion livestock migo resin (5/8) (#52045) 2021-10-02 10:39:18 -07:00
Tealc 95d6946ae8 [CR] More cigar stuff (#52024)
* Add cigar paraphernalia

Adds more cigar related items and adjusts the cigar to be more realistic.

Moves all pure tobacco item_groups from misc to this new file and adds several new cigar related groups.

* Boxes of cigars

Adds opened and unopened boxes of cigars in appropriate itemgroups. Fixes error in tobacco.json.

* Pocket cigars

Adds cigar cases with cigars to a few drop groups and adds empty cases in a few spots.

* Mafia boss

Gives the Mafia boss profession a cigar case and a cigar cutter.

* More fluff

Adds some random spawn locations for the punch and cutter. Also adds a deconstruct recipe for the cigar case.
2021-10-02 10:38:12 -07:00
John Bytheway db19d41800 Add support for mutable overmap chunks
It will help a lot with mutable overmap special design if a rule can
place multiple overmaps together in a chunk.

This attempts to implement that.  It entails a significant rewrite of
the guts of overmap special placement.

Add a test_microlab special to test this new feature.
2021-10-02 13:01:45 -04:00
John Bytheway 4d6a136a10 Revert "downgrade overmap unresolved join errors to warnings"
This reverts commit 8dd958e716.

The infrastructure needed to re-enable these warnings should now be in
place.
2021-10-02 13:01:45 -04:00
Joshua Chin b91ddc95b3 Weakpoints (Part 7): Add monster defenses (#51979)
* Implement support for coverage_mult and difficulty for weakpoints

* Fix style errors

* format json

* clang tidy

* Use a enum for weakpoint attack type

* Use sqrt function instead of hardcoded sqrt2

* astyle

* clang tidy

* initialize enum variable
2021-10-02 08:20:33 -07:00
KonH 6be11611ab Remove DURABLE_MELEE on cudgel (#51251) 2021-10-02 20:52:00 +07:00
Ramza13 e741a3a4eb Update monexamine.cpp 2021-10-02 09:36:53 -04:00
Angela Graves 0436c6da6e Merge pull request #52038 from jim-huynh/firearm_kit_hacksaw_fix
Bugfixes Using the firearm repair kit to cut metal uses the battery
2021-10-02 05:05:07 -05:00
David Seguin 89d029e3ce Give PLAY_GAME actions the option to play with friends 2021-10-02 02:02:57 -04:00
Jim Huynh 60aa2c3c5c json style fix 2021-10-01 22:35:29 -07:00
Jim Huynh 206bf3bef6 json fixes to correct unit tests for hacksaw charge use 2021-10-01 22:29:32 -07:00
Brett Dong (BOT) 098b6bdab8 Routine i18n updates on 02 October 2021 2021-10-02 02:58:31 +00:00
Jim Huynh ccc799359a Resolving clang errors 2021-10-01 19:05:26 -07:00
Jim Huynh ccf9589ed3 Change charges consumed for hacksaw activity to use ammo scaling - fixing firearm repair kit hacksaw activity 2021-10-01 16:42:29 -07:00
Eric 7fae1b5315 First walk to version (#52026) 2021-10-01 15:40:29 -07:00
NetSysFire f37125ab1b mutations.json: Consistency and typo fixes (#52022) 2021-10-01 15:39:10 -07:00
PatrikLundell d90c6150e2 Base camp expansion livestock wad (2/8) (#52018)
* adding wad as building material for livestock 2
2021-10-01 14:34:52 -07:00
Kevin Granade 73cecea9bb Merge pull request #52017 from BrettDong/terminus
Switch to VecTerminus font
2021-10-01 14:33:52 -07:00
PatrikLundell 3cfb3a7652 Base camp expansion livestock wood (1/8) (#52016)
* Livestock area 2 in wood only
2021-10-01 14:29:52 -07:00
Kevin Granade 9f5fa5e634 Merge pull request #51928 from BrettDong/makefile-lang
More granular and parallelized translations compiling
2021-10-01 14:27:51 -07:00
mythosmod 69afa10248 Change weight and volume of sheet 2021-10-01 21:53:05 +01:00
Kevin Granade 8feb7020e4 Merge pull request #51948 from BrettDong/text-changes-analyzer
Text changes analyzer
2021-10-01 13:02:52 -07:00
Zhilkin Serg 77c9d38bba Merge pull request #52011 from akrieger/windist
Fix vcpkg configuration for release.yml
2021-10-01 20:38:03 +03:00
Zhilkin Serg 497f4332f1 Merge pull request #52023 from BrettDong/mxe
Build from custom MXE GCC 11
2021-10-01 20:37:07 +03:00
Zhilkin Serg 3d28e2000a Merge pull request #52025 from jim-huynh/npc_companion_mission_ui_fix
Bugfixes: Companion mission ui hotkey failing due to too many companions
2021-10-01 20:36:54 +03:00
sharpneli 71ec59ba11 Fixed compilation errors on VS without PCH (#52006)
* Added string includes to all headers that missed them, compiles cleanly now without precompiled headers

Co-authored-by: Zhilkin Serg <ZhilkinSerg@users.noreply.github.com>
Co-authored-by: akrieger <akrieger@users.noreply.github.com>
2021-10-01 10:05:01 -07:00
Andrew Krieger fc43d9376a Fix vcpkg configuration for release.yml 2021-10-01 09:08:20 -07:00
Jim Huynh d5fefb6f3f set the uilist_entry for companion missions to be automated otherwise it'll get bugged out when you have more than 10 companions 2021-10-01 07:40:58 -07:00
Binrui Dong 851587aac4 Add "Text Changes Analyzer" GHA workflow 2021-10-01 21:15:28 +08:00
Binrui Dong 4c7f78dee3 Add a script to compare translation templates 2021-10-01 20:58:55 +08:00
Binrui Dong 9903afd473 Build from custom MXE GCC 11 2021-10-01 20:47:36 +08:00
Angela Graves 484f0ea575 Merge pull request #52013 from I-am-Erk/armour_design-riot_armour
Balance riot and swat armour
2021-10-01 05:57:01 -05:00
Binrui Dong 2fe4cabe08 Switch to VecTerminus font 2021-10-01 17:55:37 +08:00
Binrui Dong fb4f4d2785 Revert Terminus blacklist on Mac (#50609) 2021-10-01 17:49:01 +08:00
John Candlebury 7257d26ab5 Resolve Microlab related test errors (#52015) 2021-09-30 22:01:02 -07:00
Jeremy Rose f1b9d7b9ca fix insect flesh vitamins (#52010) 2021-09-30 21:59:43 -07:00
I-am-Erk 19505009d1 Stable outpost established. Begin outreach to local survivors. (#51955)
* add breadcrumb mission to old guard rep and dialogue around it
* Add a sign
* start making teamster
move exodii stuff out of broker
* finish off teamster, add to map
* fix accidental duplication of rubik store
* add first aid to rubik
will be used in cybernetic install success
* can turn in mission to old guard rep if you already met the exodii
2021-09-30 21:57:01 -07:00
I-am-Erk 4493b5cc95 redo some things 2021-09-30 21:43:20 -07:00
Amans Tofu 8ceb5ba25f Fix battery related errors in the CRIT_tools (#51696) 2021-10-01 02:52:48 +03:00
Rob Goodberry 4ff3b82a41 Queue scenario eocs on turn zero, fix fungal scenario effect (#51938)
* Queue scenario eocs on turn zero

* Fix fungus effect id
2021-10-01 02:51:16 +03:00
Zhilkin Serg bddd16b397 Merge pull request #52007 from Joshua-Chin/downgrade-overmap
Downgrade overmap join errors to warnings
2021-10-01 02:49:58 +03:00
I-am-Erk 4e695233fb drop chest coverage a bit 2021-09-30 16:10:12 -07:00
I-am-Erk 41b73baaad Update suits_protection.json 2021-09-30 15:49:15 -07:00
I-am-Erk d20289be76 Update suits_protection.json 2021-09-30 15:44:40 -07:00
Zhilkin Serg 15692c4b21 Merge pull request #51999 from BrettDong/weakpoint
Rename loop variable in weakpoint::load()
2021-10-01 01:28:36 +03:00
ProfoundDarkness c4a7f2e68c Modified MXE instructions to build gcc version 9.3.0 instead of 5.5.0 (#52004) 2021-09-30 14:07:44 -07:00
jim-huynh f7d4944beb Check that a tile is not already in combined_spots before adding it from the basecamp storage zone (#52003) 2021-09-30 13:33:44 -07:00
Binrui Dong 2c4c01583d Enable backtrace in MinGW release (#51997) 2021-09-30 13:06:46 -07:00
PatrikLundell cd7c73d91e Base camp expansion garage concrete (8/8) (#51996)
* garage expansion in concrete
2021-09-30 12:53:18 -07:00
PatrikLundell 65182ef8b8 Base camp expansion garage log (7/8) (#51995)
* garage expansion in logs
2021-09-30 12:52:43 -07:00
PatrikLundell da18bd0c91 base camp garage expansion in metal (#51993) 2021-09-30 12:40:46 -07:00
Binrui Dong fdf705e6fc Improve item name presentation in translation comments (#51989) 2021-09-30 12:40:16 -07:00
Binrui Dong 22cf289845 Do not translate overmap UI debug info (#51988) 2021-09-30 12:39:25 -07:00
Binrui Dong f689132036 Upload cata_test.exe if MinGW test fails (#51986) 2021-09-30 12:39:03 -07:00
David Seguin 7e88c65051 Snippet-ize EIPC photo messages and magic 8-ball answers (#51985) 2021-09-30 12:38:37 -07:00
akrieger 601892b0a3 Don't define NDEBUG because all other builds always have asserts enabled (#51984) 2021-09-30 12:37:53 -07:00
dmitry de32bab501 Updated run, crouch, prone, light, bleeding overlay icons mod for retrodays and neodays (#51910)
* updated overlay icons for retrodays

* respect NeoDays weapon overlay - moved light to left hand

* Style tweak

Co-authored-by: Kevin Granade <kevin.granade@gmail.com>
2021-09-30 12:21:45 -07:00
Joshua Chin 8dd958e716 downgrade overmap unresolved join errors to warnings 2021-09-30 14:05:49 -04:00
Jim Huynh 3009c3599b Check to ensure that the required item isn't a null type before saying that you can't continue crafting. 2021-09-30 09:55:02 -07:00
Kevin Granade 52a27a8ac1 Merge pull request #51752 from akrieger/windist
Create windows build distribution bundle in GHA
2021-09-30 08:37:31 -07:00
Binrui Dong 113fc9795d Rename loop variable in weakpoint::load() 2021-09-30 21:30:14 +08:00
Angela Graves 76635e305e Merge pull request #51982 from faefux/ff-currency-size
Money bundle size and weight
2021-09-30 01:20:34 -05:00
Kevin Granade 6d38c30399 Hoist a lambda to a class member. (#51976) 2021-09-29 22:04:01 -07:00
Binrui Dong 57e6a91c4c Added new weapon to act as intermediate step between crude sword and real swords like the broadsword (#51865) (#51970)
Added new sword weapon, intermediate step between a crude sword and true blades. Basically forged metal in the proper shape, sharpened with decent skill and tools. But lacking overall because it requires nothing but high fabrication skill to learn.

Co-authored-by: Malorn-Deslor <46245363+Malorn-Deslor@users.noreply.github.com>
2021-09-29 21:43:31 -07:00
PatrikLundell fb3cc5aee2 Base camp expansion garage migo resin (5/8) (#51967)
* mi-go resin as additional garage building material
2021-09-29 21:43:00 -07:00
PatrikLundell 6a597c8ad7 Base camp expansion garage rammed earth (4/8) (#51966)
* rammed earth as additional garage building material
2021-09-29 21:42:38 -07:00
PatrikLundell dde0fcb0da Base camp expansion garage rock (3/8) (#51965)
* rock as additional garage building material
2021-09-29 21:41:11 -07:00
NetSysFire 5ef8341c35 Harvest-related wording and grammar improvements (#51963)
* harvest.json: grammar, wording

* mutant_anatomy.json: wording, grammar

Line 511 was duplicated, already in bug_harvest_general_chitin

* effect_on_conditions.json: grey -> gray

* legs_clothes.json

another typo fix while i am at it
2021-09-29 21:39:55 -07:00
Maleclypse e4a4daf07f Insect and Bovine 2021-09-29 22:04:00 -05:00
Andrew Krieger e46e116291 Add native msvc builds to release.yml 2021-09-29 18:21:55 -07:00
fae 8452097744 Changed currency bundle size and weights to make them more consistent 2021-09-30 01:24:15 +01:00
Andrew Krieger 47d59697a1 Add resource.rc to cata VS build 2021-09-29 13:57:40 -07:00
Saicchi e37958863f debugging monster show id (#51958)
Co-authored-by: Saicchi <Saicchi@users.noreply.github.com>
2021-09-29 13:44:58 -07:00
PatrikLundell a44307fe86 Base camp expansion garage wad (2/8) (#51946)
* adding wad as material
2021-09-29 13:43:49 -07:00
Eric b3d5d13f60 Allow effect_on_conditions as examine actions. (#51930) 2021-09-29 13:42:38 -07:00
Maleclypse 1cdbcc5fe7 Mutant Firefly Lamps and associated things (#49150) 2021-09-29 13:41:18 -07:00
I-am-Erk 4807a8b37a sort out survivor equipment into new files (#51962)
* sort out survivor equipment into new files
* move scavenger suits as well

will probably become prototypes of survivor armour depending on stats.
2021-09-29 13:30:39 -07:00
akrieger 951e1d09e1 Support parallel astyle on not-Windows hosts (#51971) 2021-09-29 08:06:53 -07:00
Angela Graves 7b4776f124 Merge pull request #51860 from NetSysFire/patch-5
hobbies.json: Add two more addiction-based hobbies
2021-09-29 02:43:05 -05:00
Joshua Chin 0675ef3dd5 Weakpoints (Part 6): Allow weak points to apply effects (#51961)
* Add required effects to weak points.
* Add weakpoint_effect struct
* Modify absorb_hit to return a weakpoint ptr
* Add support for applying effects with weak points.
* Add documentation.
2021-09-28 22:03:25 -07:00
Saicchi a0ef92ecb3 update mod (#51960)
Co-authored-by: Saicchi <Saicchi@users.noreply.github.com>
2021-09-28 21:54:07 -07:00
Kevin Granade feb036ba12 Merge pull request #51959 from Fris0uman/tilesetSruver
First release of SurveyorsMap (and update tilesets)
2021-09-28 21:53:12 -07:00
NetSysFire 1a1d46d835 mutation_category.json: more neutral memorial message (#51956) 2021-09-28 21:51:35 -07:00
Hymore246 f25af7ad9c Added Forbidden Buffs attribute to martial arts (#51950) 2021-09-28 21:51:00 -07:00
PatrikLundell c47c4cb887 Base camp expansion garage wood (1/8) (#51945)
* Introducing garage version 2 in wood only
2021-09-28 21:49:52 -07:00
jharg42 381c6529c4 Fix great helm stacking (#51944)
Use extends for XL helmets and clear up some discrepancies.

Co-authored-by: Kevin Granade <kevin.granade@gmail.com>
2021-09-28 21:49:19 -07:00
John Candlebury 92d8ebaf6a Migrate obsolete microlab terrains (#51942)
Co-authored-by: Kevin Granade <kevin.granade@gmail.com>
2021-09-28 21:47:57 -07:00
Skrassh 22243f74a6 Hoarder penalty adjustments (#51864)
* Modified hoarder morale penalty to ignore empty holsters, as well as ignore 25% of the volume for pockets <= 1L
* Changed empty holsters to be a flat -1 penalty
* Fixed wielding a holster, fixed multiple empty holsters not adding correctly
2021-09-28 21:18:35 -07:00
Kevin Granade 3f3a6af650 Merge pull request #51913 from jbytheway/neighbour_test_rotations
Fix neighbour tests on rotated mapgen
2021-09-28 18:05:16 -07:00
Termineitor244 e15d3f4961 Weapon Categories: Eskrima (#51918)
* CLAWS

* BATONS

* Remove QUARTERSTAVES

* KNIVES

* BLADED_FARMING

* SHIVS

Co-authored-by: Kevin Granade <kevin.granade@gmail.com>
2021-09-28 18:04:40 -07:00
PatrikLundell 440d662ff2 Base camp expansion canteen concrete (8/8) (#51922)
* canteen 2 now out of concrete
2021-09-28 18:01:37 -07:00
Joshua Chin 9191612dcd Weakpoints (Part 5): Add support for required effects to weak points. (#51933) 2021-09-28 18:01:00 -07:00
akrieger 284e0efed0 Use $? to make astyle style all out of date sources at once. (#51940) 2021-09-28 17:59:02 -07:00
Kevin Granade c66a1cba64 Double Space. (#51957) 2021-09-28 16:23:29 -07:00
Fris0uman d9f3a2735e Update Chibi Ultica 21-09-29 2021-09-29 00:05:05 +02:00
Fris0uman db51e574b3 Update Ultica 21-09-29 2021-09-29 00:04:53 +02:00
Fris0uman a83a77b5fa Update MSX 21-09-29 2021-09-29 00:04:37 +02:00
Fris0uman 9fbd5fb260 Add First release of SurveyorsMap 2021-09-29 00:04:04 +02:00
Kevin Granade e7dfe5aafc Merge branch 'master' into neighbour_test_rotations 2021-09-28 12:35:30 -07:00
anoobindisguise bc5fb3d1a7 Alloy CBMs more protection, more mutation conflicts, added encumbrance. (#51578)
* Alloy Plating CBM changes

More coverage. More protection. Encumbrance. Fewer mutations.

* style fix

* Aftershock version of alloy cbms

Can be removed unlike in base game.
2021-09-28 12:33:14 -07:00
Eric 77b4d5d9a8 Small fixes/portal prep (#51937) 2021-09-28 11:13:48 -07:00
Kevin Granade b269d7c28c Extract and apply comments along with dynamic line entries (#51935) 2021-09-28 11:02:54 -07:00
Alexey Mostovoy 3c35d21910 Remove stray | from MAPGEN.md (#51931) 2021-09-28 11:01:11 -07:00
Hymore246 2aaf79e4f3 Fixed martial art buffs not showing intensity (#51917) 2021-09-28 09:25:39 -07:00
Marloss 4543019a5a Hickory trees be examinable even if harvested/out of season (#51914) 2021-09-28 09:25:10 -07:00
Roy Berube 8398e95811 Don't allow swapping places with NPC while grabbing something (#51911) 2021-09-28 09:24:05 -07:00
Anton Burmistrov 4381bc2320 Marloss pilgrimage map extra jsonify (#51852) 2021-09-28 09:19:04 -07:00
Roy Berube 2a5baacbd8 NPC trade - bugfixes and improvements (#51704) 2021-09-28 09:15:07 -07:00
Binrui Dong 716276e9e5 Add plural form of 'juvenile allosaurus' in DinoMod (#51943) 2021-09-28 07:53:47 -07:00
ferociousdork 80d8b5cbf3 Fix effect iterator invalidation 2021-09-28 16:16:11 +02:00
Binrui Dong 2081e2ebdf Use Makefile to compile MO on Windows CI 2021-09-28 21:56:57 +08:00
Angela Graves 6afcaa8555 Merge pull request #51916 from RoyBerube/feral-guards-too-accurate
Give feral security guards the correct skill for their weapon
2021-09-28 01:14:46 -05:00
John Bytheway a6158518f7 Remove debug check
Turns out the new microlab mapgen violates this check, intentionally, so
it's too strict for now.  We might be able to re-add it later.
2021-09-27 21:51:35 -04:00
John Bytheway b1b575825c Add tile rotation to debug overmap ui
It can be useful to know the rotation of a particular tile for debugging
purposes.  This may not be obvious for linear terrain.  Add it to the
debugging output in the overmap editor.
2021-09-27 16:40:39 -04:00
John Bytheway 0503a144a8 Fix join direction checks
Previously these checks were based on absolute map directions.  After
this change they are instead rotated with the map, so that they are
easier to use logically within the map.
2021-09-27 16:40:39 -04:00
John Bytheway 57c2fc9b58 Add + overload for cube_direction and int
For symmetry with the - overload.
2021-09-27 16:40:39 -04:00
John Bytheway cafb907434 Set neighbours according to oter rotation
Previously the mapgen feature of placing chunks based on neighbours used
the absolute cardinal directions on the map.  This is unhelpful when the
map is rotated.

Rotate the neighbours to match the rotation of the map so that these
checks make sense for the mapgen.
2021-09-27 16:40:39 -04:00
Roy Berube 8c3ee3a64c Inventory columns - enable toggle of hidden information (#51906) 2021-09-27 13:19:31 -07:00
PatrikLundell a39218f531 Base camp expansion canteen metal (6/8) (#51902)
* canteen 2 in metal
2021-09-27 12:47:59 -07:00
LyleSY 390fdbe3cd [DinoMod] gorgosaurus (#51862) 2021-09-27 11:07:18 -07:00
I-am-Erk 8db5830ae1 Exopry (#51853)
* add prying to exodii crate
2021-09-27 11:06:01 -07:00
ISuckM8 830098ab76 Pry open metal doors with a halligan bar (#51857)
* Update terrain-doors.json

* Update terrain-doors.json
2021-09-27 10:46:23 -07:00
Binrui Dong 78ec42fd94 Call child Makefile to compile MO in Makefile 2021-09-28 00:35:49 +08:00
Binrui Dong 20417f50b8 Add Makefile for compiling MO translation files 2021-09-28 00:35:17 +08:00
Maleclypse c29036d820 Reuben Sandwiches (#51903)
* Extend/Delete in requirements

* Revert "Extend/Delete in requirements"

This reverts commit 9da0eaeb4e.

* Valentine Cards (#47438)

* Add a proficiency for handloading, and a new profession (#47244)

* Drug Dealer Profession (#47255)

* Adds hallula, a type of bread popular in Bolivia and Chile

* Arm mounted pouch (#46946)

* Tazer drone iii (#47353)

* Added Gelatin and Several Gelatin Based Recipes (#47080)

* Content: bread in a can (#45680)

* New random mission (#44999)

* Mycus fruit Juice (#44952)

* Milleable corn (#46254)

* Talk Tag Additions (#47010)

* Fix typo in Valentines Card (#47583)

* (CrazyCataclysm) Crazy Hallucinations (#47386)

* Mealgurb (#47685)

* Add duct tape blindfold for old reciepe plus tweaks for reciepe (#47527)

* Prepare npc, spell, character, and item for new ai (#47207)

* Make acetylene torch cut metal walls. (#46255)

* Added disassembly recipes for several items (#46316)

* Celsius temperature for freezing point (#47028)

* Stand up peek (#47257)

* [AFTERSHOCK] Basic Ballistic Weapons (#47559)

* makes glass walls and glass doors constructable (#47692)

* Crackers as bread and jam&cheese sandwich (#47649)

* [Aftershock] misc typograpical fixes (#47783)

* Tweaks for teas (#47848)

* Have travis run for 0.F-dev

Currently, .travis.yml has a 'development' branch specified as one to run tests for; the current equivalent is the 0.F-dev branch.

* Tweakes to copper and metal pipes. (#47825)

* Fried eggs deluxe, sandwiches, and condiment list (#47786)

* Homemade toastems, buttercream frosting and recipes (#47696)

* Chocolate Cow don't drop "cow pies"

* Remove unused FATIGUE energy source from spells

* [Magiclysm] add owlbear origin snippet (#47752)

* [Magiclysm] add lesser banishment spell, buff greater banishment (#47537)

* Unhardcode bio_heatsink and bio_climate

* Hunting lodge Location (#44378)

* fungal evolution (#47247)

* Add book strap carrier (#47665)

* 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

* Add 0.F-dev to matrix.yml

(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.

* 0.F-dev workflows (#47875)

* Alter brown bread recipe to match canned version

Fixes #47874.

* Mine entrance expand (#47928)

* Added mine_materials item group

* Added Trolley vehicle

* Expanded and tweaked above-ground and underground levels of mine entrance

* [DinoMod] Mushroom Madness (#47907)

* misc typograpical fixes

* body pillow recipe makes makeshift body pillow now (#47917)

* Traffic Bollards and an example of deployment (#48017)

* add description for Uyen's missions

* 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.

* Clean up character mutation gain a bit

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.

* 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.

* Spiral mine jsonify (#48003)

* prevent bell spam (#47987)

* Note that vat is required for fermentation in vinegar brewing

* Unhardcode ease of sleep

* calorie test

* Revert "calorie test"

This reverts commit e5355755a9.

* Reuben Sandwiches

* Update recipe_food.json

Co-authored-by: LaVeyanFiend <51099123+LaVeyanFiend@users.noreply.github.com>
Co-authored-by: slimeboy460 <68845349+slimeboy460@users.noreply.github.com>
Co-authored-by: ToxiClay <ToxiClay@users.noreply.github.com>
Co-authored-by: Jamuro-g <76928284+Jamuro-g@users.noreply.github.com>
Co-authored-by: Xenomorph-III <sam1998may@gmail.com>
Co-authored-by: grawprog <77870049+grawprog@users.noreply.github.com>
Co-authored-by: Xaleth <countolaf17@gmail.com>
Co-authored-by: El-Jekozo <72350516+El-Jekozo@users.noreply.github.com>
Co-authored-by: RobertoVGoulart <robertovgoulart@yahoo.com.br>
Co-authored-by: Zukulini <dragon.fuego.yo@gmail.com>
Co-authored-by: klorpa <30924131+klorpa@users.noreply.github.com>
Co-authored-by: UmbralReaper <67179462+UmbralReaper@users.noreply.github.com>
Co-authored-by: SariusSkelrets <68650913+SariusSkelrets@users.noreply.github.com>
Co-authored-by: Fosheze <50811445+Fosheze@users.noreply.github.com>
Co-authored-by: Lamandus <33199510+Lamandus@users.noreply.github.com>
Co-authored-by: Curtis Merrill <curtis.r.merrill@gmail.com>
Co-authored-by: NeviNovat <51816321+NeviNovat@users.noreply.github.com>
Co-authored-by: Karol1223 <68503002+Karol1223@users.noreply.github.com>
Co-authored-by: Hirmuolio <22011552+Hirmuolio@users.noreply.github.com>
Co-authored-by: Charlie Gardai <32105250+Moltenhead@users.noreply.github.com>
Co-authored-by: Mom-Bun <43492737+Mom-Bun@users.noreply.github.com>
Co-authored-by: OromisElf <oromis.der.lehrer.eragons@freenet.de>
Co-authored-by: casswedson <58050969+casswedson@users.noreply.github.com>
Co-authored-by: actual-nh <74678550+actual-nh@users.noreply.github.com>
Co-authored-by: Fris0uman <sthapplz@gmail.com>
Co-authored-by: Ramza13 <52087122+Ramza13@users.noreply.github.com>
Co-authored-by: LyleSY <lyle.sollayates@Gmail.com>
Co-authored-by: FuelType-Memes <42695732+FuelType-Memes@users.noreply.github.com>
Co-authored-by: Anton Burmistrov <Night_Pryanik@mail.ru>
Co-authored-by: actual-nh <actual-nh@users.noreply.github.com>
Co-authored-by: casswedson <nelson1003403634@gmail.com>
Co-authored-by: akirashirosawa <38557723+akirashirosawa@users.noreply.github.com>
Co-authored-by: anothersimulacrum <anothersimulacrum@gmail.com>
Co-authored-by: Jeremy Rose <nornagon@nornagon.net>
2021-09-27 08:41:44 -07:00
I-am-Erk 2245d73236 Signal transmission in progress. Prepare linguistic analyst. (#51267)
Add a trader shop to the Exodii base.
Add the main dialogue for the Exodii contact Rubik.
2021-09-27 08:08:26 -07:00
John Bytheway 73f857a770 Fix mod testing in CI (#51843)
* Fix mod testing in CI

The conversion of the tests to use GNU parallel broke the testing of
JSON data for mods other than Magiclysm.

Refactor the code to fix that.

* Fix json errors in mods

* Fix magazine selection code

The fallback magazine selection code had a typo which meant that it was
unable to choose any magazine type except the first listed.  Fix it.
Also improve the error message.
2021-09-27 07:54:02 -07:00
Angela Graves dbfb247981 Merge pull request #51875 from ferociousdork/reduce_overmap_seen_updates
Reduce expensive overmap seen updates
2021-09-27 00:15:51 -05:00
RoyBerube f75f08a718 Give feral guards the correct skill for the weapon 2021-09-26 21:49:32 -06:00
Kevin Granade 335149c3a2 Merge pull request #51907 from Hymore246/style-change-buffs-removed
Fixed martial art buffs remaining after style change
2021-09-26 20:42:03 -07:00
curstwist 2afbd9dca4 updates for parks and basefall field (#51904) 2021-09-26 20:25:42 -07:00
PatrikLundell 69627447e0 Base camp expansion canteen migo resin (5/8) (#51901) 2021-09-26 20:24:24 -07:00
Jianxiang Wang (王健翔) 4a2d8a3ef1 Suppress -Wmaybe-uninitialized false positive (#51898) 2021-09-26 20:22:27 -07:00
eltank d8f8684dd7 Add "astyle-all" rule to Makefile (#51897)
Runs astyle on all source files simultaneously, which on Windows+MSYS2
takes about the same amount of time as running astyle on a single file,
making this much faster than "make astyle" even with -j8.
2021-09-26 20:21:26 -07:00
Kevin Granade a59f6aad49 Merge pull request #51893 from John-Candlebury/mutable-microlab
Mutable microlabs
2021-09-26 20:18:49 -07:00
Marloss 3ad28cc74d Use theoretical knowledge to determine whether an NPC can mission (#51886) 2021-09-26 19:44:42 -07:00
faefux d83957f119 Add some more bathroom junk (#51885)
Co-authored-by: chaohedgehogs <46550455+chaohedgehogs@users.noreply.github.com>
Co-authored-by: Binrui Dong <brett.browning.dong@gmail.com>
Co-authored-by: Jianxiang Wang (王健翔) <qrox@sina.com>
2021-09-26 19:28:29 -07:00
Termineitor244 9058c152e8 Weapon Categories: Ninjutsu (#51868)
* KNIVES

* QUARTERSTAVES

* BLADED_FARMING

* Remaining knife

* MEDIUM_SWORDS

* LONG_SWORDS

* SHORT_SWORDS

* CLAWS

* BATONS
2021-09-26 19:04:29 -07:00
John Candlebury d3c1cba226 Check for a larger clear area before microlab placement 2021-09-26 14:32:57 -06:00
LyleSY ab32a1296a [DinoMod] make faction base safer (#51040)
* [DinoMod] defend the dino church
2021-09-26 12:16:02 -07:00
Eric eba01f0087 Adds ability to run effect_on_conditions on either avatar or npc death. (#51890) 2021-09-26 12:14:49 -07:00
John Bytheway 7bbf94382e Debug note on overmap when mutable placement fails (#51878)
When placement fails for a mutable overmap special, add a note to the
overmap with some details to assist debugging.
2021-09-26 12:12:51 -07:00
PatrikLundell caff5704c5 Base camp expansion canteen rammed earth (4/8) (#51899)
* canteen 2 from rammed earth
2021-09-26 12:11:16 -07:00
Hymore246 55656aa30a Shattered Stone persists 2021-09-26 14:00:16 -05:00
Eric 836256a7d6 Use dialog conditions for mutation and enchantment triggers (#51726)
* Handle enchantment part

* Replace triggers with dialog conditions

Co-authored-by: Curtis Merrill <curtis.r.merrill@gmail.com>
2021-09-26 11:07:45 -07:00
Hymore246 f0d1a6281f Player cannot switch to a style they are already using 2021-09-26 12:32:21 -05:00
Hymore246 0e366b596f Added info to martialarts_json.md 2021-09-26 12:25:13 -05:00
Eric 7f8a515627 Enhance dialog snippet support (#51858) 2021-09-26 09:58:04 -07:00
Hymore246 03b8b90e6f Fixed martial art buffs remaining after style change 2021-09-26 11:46:45 -05:00
Curtis Merrill 7db95bbddf update linear features in retrodays overmap (#51887) 2021-09-26 09:11:52 -07:00
John Bytheway 3f4db9f186 displace and displace_XY for direction
There used to be a function called direction_XY that converted a
direction to a point.  This didn't match the naming scheme used for
analogous functions for om_direction and cube_direction.

Rename it to displace_XY and also create a tripoint version displace.
2021-09-26 10:51:24 -04:00
John Bytheway 974795bc95 Fix ants_end mapgen
This map was oriented the opposite way round from what it should have
been.
2021-09-26 10:50:08 -04:00
Angela Graves 52fbc76869 Merge pull request #51881 from RoyBerube/hide-collapsed-contaienrs-in-collapsed-container
Precedence change of displaying symbol highlights
2021-09-26 08:22:16 -05:00
curstwist 5aa206954e Adjust park spawns and make unique OMTs (#51877) 2021-09-26 00:04:11 -07:00
PatrikLundell 65044efc9a Base camp expansion canteen rock (3/8) (#51873) 2021-09-26 00:03:18 -07:00
PatrikLundell 9d99cb2f42 Base camp expansion canteen wad (2/8) (#51872) 2021-09-25 23:56:06 -07:00
Angela Graves 0634c3e3b8 Merge pull request #51874 from Faalagorn/patch-1
Unify window names
2021-09-26 01:03:33 -05:00
Curtis Merrill f1c99e894b refresh overmap (#51879) 2021-09-25 22:07:56 -07:00
Eric 7123d51e26 Add full fledged global variables and global effect_on_conditions (#51773)
* Add global values , eocs for real
2021-09-25 20:10:21 -07:00
John Candlebury 525d65111d Mutable microlabs 2021-09-25 19:39:31 -06:00
John Candlebury f31f5fec0d Modify microlab mapgen for compatibility with mutable specials 2021-09-25 19:38:01 -06:00
faefux d252bd5f6e Merge pull request #20 from CleverRaven/master
c
2021-09-26 01:45:58 +01:00
RoyBerube d76bde350e Precedence change of symbol highlight for container that can show both < and > symbols 2021-09-25 13:31:23 -06:00
John Bytheway bdd9f5cc58 Document join testing for chunk placement 2021-09-25 13:23:05 -04:00
John Bytheway aab0549abb Allow mapgen values to check joins
Similarly to neighbourhood checks in chunk placement, add join checks to
chunk placement.
2021-09-25 13:23:05 -04:00
John Bytheway 2a029ed38e Convert nested chunks to use mapgen_value
We want you to be able to specify the chosen chunk as a mapgen value.
2021-09-25 13:23:04 -04:00
John Bytheway cf6a722682 Record joins from mutable special placement
When a mutable special is placed, keep a record of every join used and
store that in the overmap.  Display this information in the overmap
editor to aid with debugging.
2021-09-25 13:23:04 -04:00
John Bytheway 9ab0466bef Move cube_direction, pos_dir to header
To be able to use these types in regular mapgen they need to be promoted
to headers.
2021-09-25 13:23:04 -04:00
John Bytheway 7ce682254d Fix copy/paste error in debugmsg 2021-09-25 13:23:04 -04:00
Tonkatsu af274322c5 i threw it on the GROUND (#51850) 2021-09-25 08:53:07 -07:00
Hirmuolio ee70ec52a4 Remove remnants of fuel eating (#51849)
* remove can_consume
2021-09-25 08:50:52 -07:00
PatrikLundell fb19608ed1 Base camp expansion canteen wood (1/8) (#51847)
* Fixed base camp bb handling of multi line entries
* Added second canteen base camp expansion
2021-09-25 08:45:14 -07:00
Eric 9ec6ae1284 Clean up rithmetic (#51851)
* Clean up rithmatic

* Update NPCs.md

* Update npctalk.cpp

* Update npctalk.cpp
2021-09-25 07:08:52 -07:00
NetSysFire f8a56cbff4 Update data/json/hobbies.json
Co-authored-by: Termineitor244 <termineitor244@hotmail.com>
2021-09-25 14:46:27 +02:00
NetSysFire b0c69d2218 Update data/json/hobbies.json
Co-authored-by: Binrui Dong <brett.browning.dong@gmail.com>
2021-09-25 14:46:12 +02:00
Faalagorn 8bfdc5c3e9 Unify window names
Unified the names of all the windows
* unified all names to lowercase (including `With` and `Plastic` in the middle of the name)
* moved `open` at the beginning where applicable
* some triple glazed windows still used the pane`
2021-09-25 13:35:16 +02:00
ferociousdork 0eedf1dc1a Call update_overmap_seen only when moving between overmap tiles or our overmap sight range changes 2021-09-25 13:17:39 +02:00
Angela Graves abdf768ef3 Merge pull request #51859 from Termineitor244/Suggestions
Minor fixes to #51630
2021-09-25 05:52:02 -05:00
Zhilkin Serg 4bd8ca4a6d Merge pull request #51866 from BrettDong/fatal
Use cata_fatal() instead of abort() in enum_to_string<relic_recharge_has>()
2021-09-25 12:14:46 +03:00
Zhilkin Serg d0d692a5f7 Merge pull request #51863 from CleverRaven/i18n
Routine i18n updates on 25 September 2021
2021-09-25 12:14:12 +03:00
Zhilkin Serg 2d453518f9 Merge pull request #51855 from CleverRaven/update-toc
Update the table of contents in doc/JSON_INFO.md
2021-09-25 09:53:09 +03:00
Zhilkin Serg f3210ba9e8 Merge pull request #51854 from ferociousdork/fix_stats_through_kills
Fix stats through kills variable initialization
2021-09-25 09:52:42 +03:00
dmitry 1472f3bad6 add missing subcategories to aftershock recipes (#51840) 2021-09-25 09:51:13 +03:00
ShadeOfDead 8d64e414b8 New set of Hobbies (#50348)
* New set of Hobbies

* Update hobbies.json

* Update hobbies.json

* Update hobbies.json

* Update hobbies.json

* Update hobbies.json

* Update data/json/hobbies.json

* Update data/json/hobbies.json

* Update data/json/hobbies.json

Co-authored-by: Maleclypse <54345792+Maleclypse@users.noreply.github.com>
2021-09-24 23:17:11 -07:00
Binrui Dong 681e29e1ac Use cata_fatal() instead of abort() in enum_to_string<relic_recharge_has>() 2021-09-25 12:31:31 +08:00
Brett Dong (BOT) c4771d51dc Routine i18n updates on 25 September 2021 2021-09-25 03:44:40 +00:00
NetSysFire 953d7a448c hobbies.json: Fix truncated description 2021-09-25 02:20:57 +02:00
NetSysFire 69846234d6 hobbies.json: Add two more addiction-based hobbies
...and fixed a typo
2021-09-25 02:09:05 +02:00
Termineitor244 53a305c185 Suggestions 2021-09-24 18:54:50 -05:00
mythosmod 6e11e3c2f3 Add artificial sausage casings to prevent butchering refuse byproducts when using plastic bags (#51797)
Co-authored-by: Maleclypse <54345792+Maleclypse@users.noreply.github.com>
Co-authored-by: Kevin Granade <kevin.granade@gmail.com>
2021-09-24 16:44:11 -07:00
faefux 25be70677c Map Extra: Prisoner escape (#51838)
* Added hat

* Added suit

* Added to a itemgroup. Feel free to suggest other places this may go.

* Added a simple map extra depicting a violent prisoner escape from a prison van.

* test?

* Changed some numbers a little.

Done in web-editor.
2021-09-24 16:43:32 -07:00
Viktor Matthys 53c9c56224 Add a Debug Stamina mutation (#49765)
* Added Debug Stamina mutation

Defined the (inexhaustible) Debug Stamina mutation.

Co-authored-by: Binrui Dong <brett.browning.dong@gmail.com>
Co-authored-by: Kevin Granade <kevin.granade@gmail.com>
Co-authored-by: Zhilkin Serg <ZhilkinSerg@users.noreply.github.com>
2021-09-24 15:14:23 -07:00
John Bytheway 06b3943e98 Don't style json in paths with spaces (#51842)
The new Makefile-based json styling breaks for json files whose paths
contain spaces.  This happens in particular in some sound packs.

There's no good way to make Makefiles handle lists of paths which might
contain spaces, so just skip those.  They won't be checked in files
anyway.  And if you really want to style them style-all-json will work.
2021-09-24 14:06:11 -07:00
Binrui Dong ee267c8701 Install gettext package on ClangBuildAnalyzer workflow (#51846) 2021-09-24 13:38:22 -07:00
Kelenius fe8b2a09b6 Adjust lockpick crafting (#51845) 2021-09-24 13:37:55 -07:00
faefux 053705a7a2 Officers Dress Uniform and Combo cover (#51835)
* Added hat

* Added suit

* Added to a itemgroup. Feel free to suggest other places this may go.
2021-09-24 13:35:08 -07:00
I-am-Erk 1f7d353369 Update the table of contents 2021-09-24 20:35:01 +00:00
ferociousdork ee7552cfd7 Zero-initialize stats through kills variables 2021-09-24 22:15:12 +02:00
faefux 2a24955f6d Corpse description snippets (#51834)
* First tranch of snippets for corpses.  Hopefully to encourage others to add some.
Co-authored-by: Anton Burmistrov <Night_Pryanik@mail.ru>
2021-09-24 12:33:06 -07:00
Kevin Granade 8432ca8a21 Merge pull request #51810 from CleverRaven/LyleSY-patch-7
[DinoMod] dino weak points
2021-09-24 12:31:47 -07:00
Termineitor244 3e58f31074 Weapon Categories: Krav Maga (#51785)
* BATONS

* KNIVES

* PISTOLS

* RIFLES
2021-09-24 12:30:35 -07:00
Saicchi 9208dbac6a Jsonize Prying (#51778)
* prying and oxytorch documentation

* prying_data loading

* prying activity_actor

* use prying activity_actor

* prying tests

* prying data and qualities to terrains, furniture and items

* clang_tidy fix 1

Co-authored-by: Saicchi <Saicchi@users.noreply.github.com>
2021-09-24 12:26:09 -07:00
FoolsGold45 b75b661c94 Smartphones For Everyone! (And Misc. Profession and Hobby Tweaks) (#51734)
* Spelling fix on Meditation

* Smartphones and Other Tweaks

Most professions that started with a cell phone now start with a smartphone. Survivalist types who would prefer the reliability of replaceable batteries, as well as the political prisoner, retain their cell phones. Phones were not added to characters who didn't already have one, though there's a case that could be made for why some of them should.
Removed scissors from Tailor, as a pair are included in the tailor's kit which provides cutting quality
Gave the Special Operator a battery for their radio.
Removed the Crazy Cat Lady/Dude's winter coat and boots since those are far too warm for the default start, gave them sneakers and a messenger bag to make up for the loss of inventory space. I assume this was left unchanged when the starting date was updated to be later in Spring, as the Survivor also used to start with the same coat and boots.
Gave the Day Driver and Kitted Survivor long-sleeved shirts instead of their t-shirts and light jackets to bring them in line with Survivor clothing setup.
Replaced the Burglar's balaclava with a ski mask. There was a note in the file stating that a ski mask would be preferable equipment but that it did not work with Wool Allergy. Now that we have replacement gear for wool allergy starts, listing the ski mask in the burglar's equipment is okay as it will be automatically swapped to the balaclava in the event the player chooses Wool Allergy.
Replaced the Sorority Girl's tank top and leather jacket with a polo shirt to better match the Frat boy's loadout. If there was a specific reason for giving her those clothes, let me know.
Misc. underwear tweaks, giving top underwear to some female professions that were inexplicably missing them, and replacing regular bras with sports bras and briefs with boxer shorts for the more active professions

Removed the reference to the Professional Cyclist being young. The age mechanic is a can of worms when it comes to professions that don't make sense above or below a certain character age, but that's beyond the scope of what I was doing here.
Removed the reference to the Combat Mechanic being a high school dropout. Changed the spelling of "armour" to the American English spelling of "armor".
Expanded the Hobo's description a bit because it seemed too short, drawing on the old description for inspiration.
Tweaked the Motorized Police Officer's description to differentiate it from the Police Officer's, and to justify the lack of a starting motorcycle.
Genericized the Biker's description from the Harley-Davidson brand to just "motorcycle".
Gave the Mail Carrier a more accurate US Postal Service reference in their description.
Removed references to aliens in the Mail Carrier and Meth Cook's descriptions, for consistency with the other professions that universally only reference zombies as the main threat in the world.
Changed "holiday" in the Tourist's description to the American term, "vacation".
Miscellaneous edits to profession descriptions to fix spelling and grammar mistakes, and to bring some of the excessively lengthy ones more in line with the rest.

Corrected the Blackbelt's name to "Black Belt"
Capitalized the "boss" in the Mafia Boss' name for consistency with the other professions.

* gave a purse to the Sorority Girl

removing Sorority Girl's leather jacket prevented her from having any storage for her items. a purse seemed like a reasonable compensation.

Co-authored-by: Binrui Dong <brett.browning.dong@gmail.com>
Co-authored-by: Kevin Granade <kevin.granade@gmail.com>
2021-09-24 12:07:35 -07:00
Peter Wedder a1b1b9da6c Tweak acorn healthiness and joy (#49929) 2021-09-24 09:34:23 -07:00
Maleclypse 75de0318b8 Frog and Snail Mutation Trees (#51630)
* Snail Mutation tree
* Batrachian Mutation Tree
* Mixed work to complete mutation trees
Need to add rabbit dreams
Additional Insect and Cattle traits
Merge fixes, rabbit dreams, eoc
* Night Raider and Tunnel Fighter traits
* Make Spiked Tail insect
* Enchantment Condition Day and Night

Co-authored-by: actual-nh <actual-nh@users.noreply.github.com>
2021-09-24 06:37:39 -07:00
Angela Graves 893df25583 Merge pull request #51833 from tinkerng/fuji_mil_prof_mbr_fix
[Fuji_Mil_Prof] Removes Lingering MBRs and Further Fixes #44207
2021-09-24 06:34:48 -05:00
Curtis Merrill 11e9ead621 Merge pull request #47610 from Salty-Panda/add_infite_knife_bag
[Magiclysm] Add bag of infite knives, allow to specify more conditions for artifact recharging
2021-09-24 06:52:17 -04:00
John Bytheway fe944d5cb0 Support more neighbours in jmapgen_nested (#51804)
Previously only the cardinal directions and above were supported; now
all eight horizontal neighbours, above, and below are.
2021-09-24 00:27:35 -07:00
Sven-Hendrik Haase c14e89df9d Fix crash when repairing items (#51837)
* Fix crash when repairing items

This was caused by #51600 which pops the current target if cannot_continue_repair is true.
However, this popped target is later used as fix_location (it's a reference set earlier).

This also fixes #51828 and #51674.

* Update src/activity_handlers.cpp

Co-authored-by: Kevin Granade <kevin.granade@gmail.com>
2021-09-24 00:26:38 -07:00
Kevin Granade fb48f34aab Merge pull request #51733 from jbytheway/translation-tests
Support the translation tests better outside of CI
2021-09-23 23:19:38 -07:00
ISuckM8 dd16b0eca3 Mp3 disassembly recipe (#51836)
* Update recipe_deconstruction.json

* Update recipe_deconstruction.json

* Update recipe_deconstruction.json
2021-09-23 22:38:53 -07:00
Tealc c6e7e6cadb Better pipe spear v2. (#51830)
* Re does the stuff from #51639 and adds a better pipe-spear as a second stage.
2021-09-23 20:14:47 -07:00
David Seguin a0213344fc Penalties when fighting while prone/crouching (#51790)
* Add penalties for fighting while prone

Accuracy:
- 80% chance for large to-hit penalty, 20% for small penalty

Damage:
- Reduced to 30% of normal damage

Stumble:
- 4x penalty to STR when determining stumble severity

Attack speed:
- 4x movement cost penalty

Stamina cost:
- Increase stamina usage by 50

* Add lesser penalties for crouching

Accuracy:
- 75% chance of lesser to-hit penalty, 25% chance of no penalty

Damage:
- Damage while crouched reduced to 80%

Stumble:
- Half STR applied to stumble calculation

Attack speed:
- 50% extra move cost

Stamina cost:
- Increase stamina cost by 20
2021-09-23 19:17:27 -07:00
LyleSY 02ca1d7db7 zankylosaurid head armor 2021-09-23 22:07:29 -04:00
LyleSY 89432476d4 ankylosaurid head armor 2021-09-23 22:06:41 -04:00
faefux e40ab80b72 Merge pull request #19 from CleverRaven/master
reeeeeee-
2021-09-24 02:20:03 +01:00
Eric 947f8d7b93 Add Complete missions dialog function (#51820)
* Complete missions

* Update npctalk.cpp

* Update npctalk.cpp
2021-09-23 16:43:31 -07:00
ferociousdork 6ee1821362 Fix process effects crash (#51827) 2021-09-23 15:36:29 -07:00
ISuckM8 85c3dddc69 Update fake.json (#51819) 2021-09-23 15:28:56 -07:00
Roy Berube 06ba8c64be Rapidly changing light levels do not grant max vision to turrets (#51815) 2021-09-23 15:28:18 -07:00
Tonkatsu 206841888c The (impotent) Sound and the Fury (#51803)
* update m231

Updated price(https://www.invaluable.com/auction-lot/incredibly-rare-colt-m231-port-firing-u-s-propert-2086-c-3574a02a1e), adjusted desc, set sight disp to that of other no-sight guns, adjusted mod locations.
2021-09-23 15:25:28 -07:00
UmbralReaper 7848f4a7dd Allow using any tool with the drilling quality to make a draw_plate (#51794)
Fixes #51688
2021-09-23 15:17:02 -07:00
OrenAudeles ca9791ca7d Reduce debug.log file size by folding consecutive identical errors (#51791)
* debug_fold_repetition: Fold identical errors to reduce log spam

* debug_fold_repetition: added timestamp and timeout

timestamp for repeated error folding group is that of the last folded
error
timeout is currently hardcoded to 100ms. If another repeated error is
registered that would be folded but is >100ms after the previous error
it starts a new folding group

* debug_fold_repetitions: bookended fold for readability, made output DRY

It's a little easier to read the log as `[First]<folded>[Last]` than
`[First]<folded with last timestamp>`
Need to test folding output during deinit and DebugLog, made a function
to remove repetition.

* debug_fold_repetitions: excess repetition error to forced prompt

As logged error the excessive repetition error causes breaks in folds
which make debug.log less clear while reading, and does not add information
Forced prompting once excess threshold is reached will prompt once per
excessive repetition set.
2021-09-23 15:16:40 -07:00
Joshua Chin bfe90287d1 Weakpoints (Part 4.5): Add support for JSON inheritance and default weakpoints (#51822)
* Let contributors specify the default weakpoint, by providing an empty ID

* Add support for weakpoint inheritance.
2021-09-23 13:19:00 -07:00
Joshua Chin 6e5d3aae4d Add support for weakpoint damage and crit multipliers (#51770) 2021-09-23 13:12:42 -07:00
The SzQ 396b914890 Fix: Force stereo when opening audio device (#51754)
Co-authored-by: Kevin Granade <kevin.granade@gmail.com>
2021-09-23 13:11:44 -07:00
mythosmod 38c44df11d Update goblin.json (#51799) 2021-09-23 13:08:10 -07:00
mythosmod 86c3e0a15d Resubmit Fix Tire Rims (#51798) 2021-09-23 13:07:26 -07:00
tinkerng 8174fec1c8 Removes remaining MBR references in Fuji_Mil_Prof 2021-09-23 16:31:41 -03:00
Zhilkin Serg d6889eb4c6 Merge pull request #51761 from CleverRaven/update-toc
Update the table of contents in doc/JSON_INFO.md
2021-09-23 20:53:28 +03:00
Zhilkin Serg 1bd7db29f3 Merge pull request #51793 from UmbralReaper/cowmenu
Remove duplicate shortcut keys from interaction menu
2021-09-23 20:52:55 +03:00
John Candlebury 33bac2ad7b Write documentation for neighbor based chunk spawning (#51818) 2021-09-23 20:47:25 +03:00
Zhilkin Serg d28f181be1 Merge pull request #51800 from jbytheway/nested_mapgen_id
Use string_id for update_mapgen and nested_mapgen
2021-09-23 20:46:21 +03:00
Zhilkin Serg 81d5927d35 Merge pull request #51795 from Night-Pryanik/jsonify-scientists-map-extra
Jsonified dead scientists map extra
2021-09-23 20:45:31 +03:00
Zhilkin Serg 1d330dd7c9 Merge pull request #51831 from CleverRaven/typo-fix
Fix typo in "Storehouse survey" blueprint name
2021-09-23 20:44:52 +03:00
Kevin Granade 79e3e0487e Merge pull request #51729 from SegaSaturnity/bikeshop_fix
Fix bike shop variant's roof
2021-09-23 09:57:34 -07:00
Termineitor244 c7c9134da4 Melee practice and training dummies (#51598)
* Melee practice
Added some basic melee practice recipes, including 2 for training dodge.
* Training dummy for practice recipes
* Dummy recipe and resolve problems
* Intermediate recipes and heavy training dummy
* Changed the armored dummy recipe
The recipe is inspired by the scrap suit recipe.
* Added tanto as a possible weapon for stabbing training
* Punching bag

Co-authored-by: Marloss <78324429+MarlossCDDA@users.noreply.github.com>
2021-09-23 09:56:30 -07:00
Kevin Granade 34ca637e90 Merge pull request #51744 from jbytheway/mandatory_categories
Force recipes to provide (sub)category
2021-09-23 09:39:18 -07:00
Kevin Granade 81960cdb39 More granular json-style and astyle (#51731)
* More granular json-style and astyle
2021-09-23 09:33:40 -07:00
GOFLUMPYOURSELFPORCAY 97bf7a9e09 Blacksmithing tongs and cooking tongs are two diffrent things. (#51672)
* Add blacksmithing tongs.

The tongs in game wouldn't be able to carry around a four kilo zweihander. They are designed for cooking and flipping food, so they are very lightweight and thing, they would most likely bend under the heat of the hot metal.

* Added the need to use blacksmithing (flatjaw) tongs for the Zweihander

Not using tongs for smithing is almost impossible.

* Change the blacksmithing toolset to include the tongs.

I also removed the tongs from the tools on the zweihander.

Co-authored-by: Anton Burmistrov <Night_Pryanik@mail.ru>
Co-authored-by: Kevin Granade <kevin.granade@gmail.com>
2021-09-23 09:22:13 -07:00
Saicchi 536dfceeda use snippets (#51663)
Co-authored-by: Saicchi <Saicchi@users.noreply.github.com>
Co-authored-by: Kevin Granade <kevin.granade@gmail.com>
2021-09-23 09:19:46 -07:00
Eric f45fb00f29 Add dialog activity functions, and flag to prevent activity being interrupted (#51809)
* Add dialog stuff

* docs

* Update player_activities.json
2021-09-23 08:47:22 -07:00
Binrui Dong 59859972e4 Fix typo in "Storehouse survey" blueprint name 2021-09-23 23:33:35 +08:00
Angela Graves 8c55e1b6c9 Merge pull request #51802 from mythosmod/MarsalaWineEthanol
Add Marsala wine to Cooking Components
2021-09-23 05:42:17 -05:00
mythosmod 4774b42439 Mythos Mod Resubmission (#51796)
* Mythos Mod Resubmission

* Remove Occulti as maintainer
2021-09-22 21:38:32 -07:00
John Bytheway e1e5c9edf2 Test disabling expensive LGTM checks (#51806)
Disable one LGTM checks to see if there's hope of reducing the runtime
thereby.
2021-09-22 17:58:06 -07:00
LyleSY a64f1eda9c zombie dino weak points 2021-09-22 18:54:21 -04:00
LyleSY 94d134dcac [DinoMod] dino weak points 2021-09-22 18:41:57 -04:00
actual-nh bbd6a9de15 Clarify description of mon_zombie_dog (#51801)
See <https://discord.com/channels/598523535169945603/598614717799596055/890213920957161472> on the dev discord.
2021-09-22 14:15:13 -07:00
Kevin Granade 7a9514f399 Merge pull request #45572 from PatrikLundell/base_camp_reorganization
Base camp reorganization
2021-09-22 13:33:56 -07:00
Eric c3c4882008 Add bionic dialog stuff (#51805) 2021-09-22 12:58:23 -07:00
Alterforce a2c54aa20c Add long pointy sticks and things they can be used for (#51261)
* Update spears_and_polearms.json

* Update piercing.json

* Update construction.json

* Update construction.json

* Update piercing.json

* Update data/json/items/melee/spears_and_polearms.json

Co-authored-by: Kevin Granade <kevin.granade@gmail.com>
2021-09-22 11:41:31 -07:00
Kevin Granade 7a786ce1fe Merge pull request #51723 from jbytheway/asymmetric_joins
Asymmetric joins in mutable overmap specials
2021-09-22 11:36:19 -07:00
John Bytheway 04bdea50c2 Add subcategory to Magiclysm recipe 2021-09-22 14:10:57 -04:00
John Bytheway 6764eeb7ff Force recipes to provide (sub)category
As suggested in #50866, require all recipe definitions to provide a
category and subcategory when loading from JSON.
2021-09-22 14:10:57 -04:00
Valiant 7c191572da Update overmap_terrain_industrial.json 2021-09-22 20:19:36 +04:00
Paprika-H 3c64818a1c Update recipe_food.json (#51789) 2021-09-22 08:38:16 -07:00
Anton Burmistrov 196815af47 Merge branch 'master' into balrog-mine 2021-09-22 18:33:54 +04:00
Valiant 46f9b3ef33 Squashed commit of the following:
commit 25fc438ce9
Author: David Seguin <davidseguin@live.ca>
Date:   Tue Sep 21 14:09:18 2021 -0400

    Delay skill rust for 24h after practicing (#51655)

commit cba812cfd0
Author: faefux <49350286+faefux@users.noreply.github.com>
Date:   Tue Sep 21 19:08:01 2021 +0100

    Prison carpark (#51658)

    * Added a new vehicle group. Changed the prison carpark a little to accomidate the larger ones.

commit 6d6d7a78ce
Author: Tonkatsu <7764202+tenmillimaster@users.noreply.github.com>
Date:   Tue Sep 21 12:50:04 2021 -0500

    Mk 262, Mk 318, M855A1 (#51762)

    * add and distro ammo

    added mk262, mk318, m855A1, and assigned to various itemgroups and distros.

    Civvie GB hits used for relative rarity:
    1128, 383, 15, 8, 1 for m193, m855, mk262, m855a1, and mk318 respectively.

    * Update gg_ammo_migration.json

commit 18d3d3d2de
Author: Hirmuolio <22011552+Hirmuolio@users.noreply.github.com>
Date:   Tue Sep 21 20:35:24 2021 +0300

    json errors (#51764)

commit 839eb8c80c
Author: Anton Burmistrov <Night_Pryanik@mail.ru>
Date:   Tue Sep 21 21:34:45 2021 +0400

    Ensure that cities are at least size 2 (#51769)

commit b5ce160423
Author: ISuckM8 <87550905+ISuckM8@users.noreply.github.com>
Date:   Tue Sep 21 19:29:08 2021 +0200

    Martial Art error fix (#51767)

    Co-authored-by: Binrui Dong <brett.browning.dong@gmail.com>
2021-09-22 18:32:53 +04:00
mythosmod 6b8e7b321d Update cooking_components.json 2021-09-22 14:44:34 +01:00
John Bytheway ff4db05087 Compile test .mo in Makefile and CMake
The new translation tests require a .mo file to be compiled related to
the TEST_DATA mod.  This was done for CI in the build.sh script, but
that's not appropriate for local users.

Move the commands from build.sh to Makefile and CMakeLists.txt.

Also, add a stamp file so that the Makefile does not rebuild the .mo
files unnecessarily.
2021-09-22 09:32:29 -04:00
John Bytheway af08c0da87 Remove English special-case code in compile_mo.sh
This related to a libintl bug and is no longer relevant now that we
don't use libintl.
2021-09-22 09:32:29 -04:00
John Bytheway 252341a067 Show path in tests that check for path
Some of the translation tests verify the existence of a path, but don't
say what that path is on failure.

Capture the path so that they do.
2021-09-22 09:32:29 -04:00
John Bytheway f4dff484ad Document asymmetric joins 2021-09-22 09:30:28 -04:00
John Bytheway a96848811d Support asymmetric joins for mutable specials
Sometimes it's important for the two sides of a join to be different,
for example a hallway_to_room join should not join two hallways.  It is
also be important if the set of locations is different for the two
sides.

Add support for this type of asymmetry, and use it to allow anthills to
have multiple entrances.

Update test anthill also.
2021-09-22 09:30:28 -04:00
John Bytheway ab4d7f98f9 Use string_id for update_mapgen and nested_mapgen
These ids were previously just using strings; better to use a dedicated
string_id type.

This required adding an actual type for the string_id to point to in
each case, wrapping the collection of mapgen_function_json objects.
2021-09-22 09:18:16 -04:00
Angela Graves 4f8529e53d Merge pull request #51792 from tenmillimaster/Tonkmakes0mistakes
Mk318/m855a1 typos
2021-09-22 05:35:46 -05:00
Valiant 6c357d88a7 Jsonified dead scientists map extra 2021-09-22 11:40:31 +04:00
Tonkatsu 935ef9498c No mistakes here 2021-09-22 00:39:58 -05:00
UmbralReaper e921617e6d Remove duplicate shortcut keys from interaction menu
Fixes #51772

Co-authored-by: David Seguin <davidseguin@live.ca>
2021-09-22 14:50:59 +10:00
Kevin Granade 423e7b8bfe Remove some punctuatinon that's confusing the string checker (#51779)
* Remove some punctuatinon that's confusing the string checker

* Update 223.json

* Tweak ranged balance test.
2021-09-21 21:38:39 -07:00
Roy Berube 99dc03c98e Default collapse of container contents (#51434) 2021-09-21 14:05:59 -07:00
Kevin Granade f95cb33c23 Merge pull request #51539 from wapcaplet/w-prac-elec
Add circuit tools, proficiencies and practice recipes
2021-09-21 14:04:43 -07:00
David Seguin 25fc438ce9 Delay skill rust for 24h after practicing (#51655) 2021-09-21 11:09:18 -07:00
faefux cba812cfd0 Prison carpark (#51658)
* Added a new vehicle group. Changed the prison carpark a little to accomidate the larger ones.
2021-09-21 11:08:01 -07:00
Tonkatsu 6d6d7a78ce Mk 262, Mk 318, M855A1 (#51762)
* add and distro ammo

added mk262, mk318, m855A1, and assigned to various itemgroups and distros.

Civvie GB hits used for relative rarity:
1128, 383, 15, 8, 1 for m193, m855, mk262, m855a1, and mk318 respectively.

* Update gg_ammo_migration.json
2021-09-21 10:50:04 -07:00
Hirmuolio 18d3d3d2de json errors (#51764) 2021-09-21 10:35:24 -07:00
Anton Burmistrov 839eb8c80c Ensure that cities are at least size 2 (#51769) 2021-09-21 10:34:45 -07:00
ISuckM8 b5ce160423 Martial Art error fix (#51767)
Co-authored-by: Binrui Dong <brett.browning.dong@gmail.com>
2021-09-21 10:29:08 -07:00
Valiant fd149bb423 Update swords_and_blades.json 2021-09-21 12:45:27 +04:00
Valiant ab8dd12602 Moved content to Magiclysm 2021-09-21 12:44:32 +04:00
Anton Burmistrov 933cdd317f Merge branch 'CleverRaven:master' into balrog-mine 2021-09-21 12:31:54 +04:00
Angela Graves cd6044d405 Merge pull request #51750 from ISuckM8/tac-vest-buff
Better tac vest
2021-09-21 00:41:06 -05:00
Roy Berube 252f6f7908 Stay in container during 'E'at (#51732) 2021-09-20 22:39:20 -07:00
Termineitor244 54b61aa6ec Athletics practice (#51730)
* Basic Athletics practice

* Intermediate athletics

* BLIND_EASY
2021-09-20 22:38:48 -07:00
Roy Berube 6058edae6d Enable hide/unhide in only a few inventory pick selectors (#51727) 2021-09-20 22:38:06 -07:00
ferociousdork eddf9ac049 Share tileset instances between map and overmap (#51719) 2021-09-20 22:36:52 -07:00
Kevin Granade b1bc55a5fb Merge pull request #51707 from Night-Pryanik/college-kids-map-extra-jsonify
College kids map extra jsonify
2021-09-20 22:35:16 -07:00
Elgrosito a558c8189a No crucibles for forging (#51586)
* Unrealistic crucibles
2021-09-20 22:25:59 -07:00
Machminotaur 264a9e2e70 Bridging the computer skill gap (#51573) 2021-09-20 22:24:27 -07:00
John Candlebury ac5594708b Simplify ruingen using optional joints (#51760) 2021-09-20 22:13:27 -07:00
John Candlebury f52a69fd32 Aftershock Exoplanet: Prevent city roadgen from placing roads in ravines (#51758)
* Prevent city roadgen from placing roads in ravines

* Astyle Changes
2021-09-20 22:11:33 -07:00
John Candlebury d71f8c5eb8 Aftershock: Fix loading errors (#51757)
* Remove obsolete item from spawn lists

* Make pockets watertight
2021-09-20 22:11:20 -07:00
eltank 3c2382337c Stop leading pet when leash is removed (#51755) 2021-09-20 22:11:02 -07:00
NetSysFire 5c422bafb3 iexamine.cpp: Better string (#51753)
Fixes the double "You fall asleep..."
2021-09-20 22:09:18 -07:00
Eric e4ef4f9ca7 Add dialog effects for taking control of npcs and conversations with monsters/items (#51739) 2021-09-20 22:08:49 -07:00
Zhilkin Serg cb38a26e14 Show debug info for long teleport (#51751) 2021-09-20 22:03:23 -07:00
Kevin Granade 9e50f37ee6 Merge pull request #51746 from BrettDong/memory
Optimize TranslationManager performance and memory usage
2021-09-20 22:03:09 -07:00
Kevin Granade d617466989 Merge pull request #51721 from jbytheway/clang-tidy_large-stack-object
Clang tidy large stack object
2021-09-20 21:46:17 -07:00
mqrause e63c1e7059 migrate itype in map::spawn_item (#51715)
Co-authored-by: mqrause <martin@qrause.de>
2021-09-20 21:42:49 -07:00
Zhilkin Serg 2acfc53f1a Reset scenarios unconditionally (#51711) 2021-09-20 21:42:04 -07:00
Zhilkin Serg 4dc0fd77f9 Reset whitelist flag on scenario blacklist reset (#51710) 2021-09-20 21:41:39 -07:00
Jeremy Rose 7f0609d6bc refactor craft_proficiency_gain to use struct instead of tuple (#51700)
* refactor craft_proficiency_gain to use struct instead of tuple

* time -> time_multiplier
2021-09-20 21:27:06 -07:00
Kevin Granade 408bf0fb7c Merge pull request #51693 from jbytheway/windows_build_tests
Build and run the tests in the Windows build
2021-09-20 21:23:48 -07:00
Denica Bozhinova 0d9397b573 Fix for consuming frozen drugs in powder or solid form (#51678)
* EDIBLE_FROZEN flag added to medicines in solid or powder form that can be consumed when frozen

Co-authored-by: Denica Bozhinova <denica.bozhinova@smhi.se>
2021-09-20 21:22:53 -07:00
actual-nh e6e68ea674 Monfaction reciprocity test + fix (#51676)
* Add a test to check for monfaction reciprocity

It is possible for monfaction A to have a relationship of FRIENDLY or
NEUTRAL to monfaction B, which has a relationship of BY_MOOD or HATE
vs monfaction A. This leads to B attacking A without the possibility
of the reverse.

* Reformatting, possibly refactoring test

* Use c_str() instead of str() for printf.

* Fix non-reciprocal monster faction relationships

These are my current proposed changes to remove the monster faction
relationship reciprocity problems. @candlebury, I needed to alter
the player _monster_ faction (which does not affect, AFAIK, the
behavior of NPCs, much less the avatar) so that it would be at least
neutral to the robofac_spy; to avoid needing to do this for the larger
human monster faction (which includes exodii), I removed friendly
towards humans from the robofac_spy.

* Try to satisfy clang-tidy.

* Fix was wrong way around re mi-go and slime

Slime, instead of being neutral vs mi-go as a nether-derived faction,
was being by_mood, as per nether?

Co-authored-by: actual-nh <actual-nh@users.noreply.github.com>
2021-09-20 21:20:00 -07:00
Jeremy Rose 19b57342f6 use number instead of string for style_brawling autolearn (#51662) 2021-09-20 21:16:33 -07:00
Mik d191183b74 unify naming scheme of oversized mutant creatures (#51493) 2021-09-20 21:15:45 -07:00
kevingranade 3769921c34 Update the table of contents 2021-09-21 04:12:57 +00:00
Zhilkin Serg 8d0903fe47 Scenario specific effects on condition (#50934)
* Allow scenario specific eoc

* Jsonize behavior of some scenario flags using eoc

* Apply suggestions from code review
2021-09-20 21:07:19 -07:00
Eric Pierce 2900a34597 Rephrase electronics proficiency descriptions 2021-09-20 18:04:33 -06:00
I-am-Erk 618da61f30 update ultica and chibi (#51749) 2021-09-20 13:47:00 -07:00
Zhilkin Serg 19d2477ff1 Merge pull request #51748 from KorGgenT/fix-overmap-zoom
fix overmap zoom
2021-09-20 23:40:59 +03:00
ISuckM8 cb6c6d7ae6 Update ammo_pouch.json 2021-09-20 22:25:10 +02:00
ISuckM8 f48659bfed Merge branch 'CleverRaven:master' into master 2021-09-20 22:21:55 +02:00
KorGgenT e8786811b0 fix overmap zoom 2021-09-20 14:10:22 -04:00
Anton Burmistrov ccf5e15556 Return fire tweaks ported from BN (#51341)
* Return fire tweaks

Co-authored-by: actual-nh <74678550+actual-nh@users.noreply.github.com>
2021-09-20 10:39:58 -07:00
John Bytheway be19f9b528 Avoid large stack objects
The Windows stack size limit is smaller than Linux, so need to tweak
some code to avoid large objects on the stack.

(Not all of these changes were actually causing stack overflows.  I set
the limit for the clang-tidy check at 100KiB, which is quite
conservative, but also reasonable, IMO.  Such large objects are probably
best not put on the stack.
2021-09-20 11:11:53 -04:00
John Bytheway c9fb408145 clang-tidy check for large stack objects
It's easy to accidentally write code on Linux that overflows the stack
on Windows.  To help mitigate that, add a clang-tidy check looking for
large objects on the stack that might contribute to a stack overflow.
2021-09-20 11:11:53 -04:00
I-am-Erk e507d5ac9d Stable environment detected. Initiate primary transfer protocol. Inhabitants brace for transfer. (#50066)
* Create exodii_base.json

* Upper level layout by Wist

fills out the base

* COMPLETE THE BASE

Co-authored-by: curstwist <39442864+curstwist@users.noreply.github.com>
2021-09-20 07:09:15 -07:00
Binrui Dong 7a9491c3ef Optimize TranslationManager performance and memory usage 2021-09-20 18:15:15 +08:00
Binrui Dong c7e1c6f45e Add TranslationManager translate singular message benchmark 2021-09-20 17:11:08 +08:00
PatrikLundell 253e22219c resolved conflict 2021-09-20 10:12:19 +02:00
eltank c5df995449 Fix zone rotation in faction camp farms (#51703) 2021-09-19 23:48:24 -07:00
Angela Graves c4d9e8e968 Merge pull request #51725 from ISuckM8/better-survivor-belt
Better survivor belt
2021-09-20 00:20:04 -05:00
David Seguin 987101ede7 GCC: Add missing declaration when LOCALIZE=0 (#51720) 2021-09-19 20:07:54 -07:00
John Bytheway 1d6cd8d733 Update docs about compile_mo.sh on Windows
This is now required for the unit tests, whereas the libintl bug is no
longer relevant since we have rolled our own solution.
2021-09-19 21:36:04 -04:00
John Bytheway bb3e44d3cb Compile .mo files on Windows CI 2021-09-19 21:36:04 -04:00
SegaSaturnity 460a948529 Change stairs to ladder
Changed stairs down to ladder down
2021-09-19 20:41:48 -03:00
SegaSaturnity c5b0b8431c Fix bike shop variant roof
Fix the bike shop variant 1 having an empty roof
2021-09-19 20:20:49 -03:00
ISuckM8 ae41f050de Update belts.json 2021-09-20 01:18:24 +02:00
ISuckM8 b978b05b42 Update belts.json 2021-09-19 23:14:10 +02:00
ISuckM8 f50556aad8 Update belts.json 2021-09-19 22:40:49 +02:00
ISuckM8 5f000a2ad6 Update belts.json 2021-09-19 22:39:35 +02:00
ISuckM8 585feb5dbe Merge branch 'CleverRaven:master' into better-survivor-belt 2021-09-19 21:25:13 +02:00
ISuckM8 6b018372bf Merge branch 'CleverRaven:master' into master 2021-09-19 21:24:40 +02:00
ISuckM8 c86d94e143 Update other.json 2021-09-19 21:13:26 +02:00
ISuckM8 24959503a9 Update 460.json 2021-09-19 21:11:31 +02:00
ISuckM8 c5ca6d0a71 Update other.json 2021-09-19 21:07:58 +02:00
John Bytheway 14a1ad723a Avoid large stack object
The Windows stack size limit is smaller than Linux, so need to tweak
this test to avoid a stack overflow.
2021-09-19 13:52:19 -04:00
John Bytheway abbebd942c Build and run the tests in the Windows build 2021-09-19 13:51:11 -04:00
Zhilkin Serg 8ba81b4abb Merge pull request #51718 from BrettDong/pragma
Add missing #if defined(LOCALIZE) directives in new translation library
2021-09-19 19:30:10 +03:00
Zhilkin Serg e6a647a842 Merge pull request #51705 from ISuckM8/1911-magazine-fix
Fix the M1911 7-round magazine volume
2021-09-19 17:58:11 +03:00
Zhilkin Serg 02559d2c1e Merge pull request #51713 from eltank/fix_fbmc_farm2
Add farming capabilities to modular farm v2
2021-09-19 17:56:41 +03:00
Zhilkin Serg 23d24f7d06 Merge pull request #51714 from mqrause/selection_fix
Reset count after selection in multiselector menus
2021-09-19 17:56:10 +03:00
Zhilkin Serg 8b26d8d770 Merge pull request #51657 from jbytheway/optional_joins
Optional joins for mutable overmap specials
2021-09-19 17:53:49 +03:00
Zhilkin Serg 39fdf77bca Merge pull request #51677 from John-Candlebury/exoplanet-roadways
Aftershock Exoplanet: Roadway Expansion
2021-09-19 17:49:30 +03:00
David Seguin 09f2f4dc26 Move slimespring cheers to snippets (#51680)
Co-authored-by: Jianxiang Wang (王健翔) <qrox@sina.com>
2021-09-19 17:49:05 +03:00
Zhilkin Serg debcafd686 Merge pull request #51691 from jiornojiovanni/zonesfix
Added maps and currency zones
2021-09-19 17:48:04 +03:00
Zhilkin Serg 471cb2e4b7 Merge pull request #51679 from John-Candlebury/afs-forest-ruins
Aftershock: Forested formless ruins
2021-09-19 17:47:40 +03:00
Zhilkin Serg 1bdf4f6eb3 Merge pull request #51664 from jbytheway/map_extra_graphics
Map extra graphics
2021-09-19 17:47:05 +03:00
Zhilkin Serg 15680f4af1 Merge pull request #51699 from ferociousdork/fix_equip_armor_crash
Fix crash when cancelling to equip armor
2021-09-19 17:46:06 +03:00
Binrui Dong 63be9421f6 Add missing #if defined(LOCALIZE) directives in new translation library 2021-09-19 22:45:25 +08:00
Zhilkin Serg 3b8a3f0cd4 Merge pull request #51716 from ferociousdork/fix_overmap_tilecontext_crash
Fix crash on exit when destroying overmap tilecontext
2021-09-19 17:44:59 +03:00
Zhilkin Serg 28c1464284 Merge pull request #51708 from BrettDong/android-fix
Remove libintl-lite from Android shared libraries list
2021-09-19 17:44:32 +03:00
ferociousdork a8adea9a35 Fix crash on exit when destroying overmap_tilecontext 2021-09-19 14:32:26 +02:00
mqrause 85c05cc460 reset count after selection in multiselector menus 2021-09-19 13:27:31 +02:00
eltank 01b8095adf Add farming capabilities to modular farm v2 2021-09-19 04:06:54 -07:00
Anton Burmistrov c31c5f9aff Removed unused static 2021-09-19 12:26:13 +04:00
Binrui Dong 54f394bef1 Remove libintl-lite from Android shared libraries list 2021-09-19 16:08:54 +08:00
Anton Burmistrov e1746a52d5 Updated generator method and removed hardcoded version 2021-09-19 11:58:32 +04:00
Anton Burmistrov 0dee6ea13d Created jsonified mapgen for map extra 2021-09-19 11:57:58 +04:00
Anton Burmistrov 47e5baa8b9 Added socks to all lists of loot groups and removed socks from 'shoes' item group 2021-09-19 11:57:14 +04:00
Anton Burmistrov 4f6655eabb Made corpses in map extra spawn pulped 2021-09-19 11:23:11 +04:00
Angela Graves 09095afde0 Merge pull request #51682 from NetSysFire/patch-2
Re-add boiling quality to tin and aluminum cans
2021-09-19 02:12:46 -05:00
ISuckM8 88c854c3e3 460 2021-09-19 08:29:19 +02:00
ISuckM8 39a6441a8c Update 460.json 2021-09-19 08:19:48 +02:00
Kevin Granade 3e505b0bd8 Merge pull request #51687 from eltank/follower_xp
Track follower kills + XP and enable stats-through-kills for followers
2021-09-18 21:18:15 -07:00
Eric Pierce 528f0012a4 Add documentation for proficiencies (#51651)
* Add documentation on Proficiencies

- Introduction and distinction between skills and proficiencies
- Proficiency tree/graph: Metalworking tree example
- Effects of gaining proficiency
- Reformat JSON section with tables
- Failure is always an option

Co-authored-by: I-am-Erk <45136638+I-am-Erk@users.noreply.github.com>
2021-09-18 20:38:08 -07:00
ferociousdork 19582b0586 Fix crash on equip armor 2021-09-18 21:46:51 +02:00
Binrui Dong 0efe692cae In-house translation library implementation to support loading multiple MO files (#51363)
* Core part of built-in translation library

* Test coverage for translation library

* Plural forms evaluator

* Add plural forms translation test cases

* Remove dependency on gettext and libintl

* Remove libintl-lite for Android

* Rename ngettext to n_gettext to avoid collision with libintl.h

* Improve InvalidTranslationDocumentException diagnostic message

* Fix raw_string_format not supporting positional arguments on Windows
2021-09-18 09:04:17 -07:00
John Bytheway f8909c4b73 In UltiCa, use unknown_item for unknown_map_extra
As a proof of concept, use the unknown_item sprite as the
unknown_map_extra sprite in UltiCa.  This avoids a big ugly question
mark for unknown map extras.
2021-09-18 07:53:23 -04:00
John Bytheway 758834e89e Implement graphical overmap for map extras
Allow map extras to be rendered on the graphical overmap.  Only those
for which autonote is true will be drawn.

Making this change led to a lot of refactoring:
* Make TILE_CATEGORY an enum class.
* Improved the tile loading report functions.
* Break lines longer than 100 characters in cata_tiles.cpp.
2021-09-18 07:53:23 -04:00
jiornojiovanni b27af1d1e2 added map and currency zones 2021-09-18 13:21:13 +02:00
Angela Graves 3576ee8dba Merge pull request #51645 from faefux/ff-pris-van1
Prisoner transport van
2021-09-18 05:28:24 -05:00
eltank 2d8c1253da Split up character_edit_menu to appease clang-tidy 2021-09-17 22:41:55 -07:00
eltank efe8fabc54 Move Stats through Kills spent points to single field in Character 2021-09-17 22:18:21 -07:00
Kevin Granade 6b9a8f78b9 Routine i18n updates on 18 September 2021 (#51683)
Co-authored-by: Brett Dong (BOT) <brett.browning.dong@gmail.com>
2021-09-17 21:46:27 -07:00
eltank 9f006868bb Track follower kills
- add kill xp as a Character field
- add kill xp to debug menu character editor
- award kill xp to followers
- add followers' kills to kill tracker
- make "exp" dialog var work with npcs and make it writable
2021-09-17 20:57:08 -07:00
eltank baf861f44f Remove unnecessary virtual specifiers 2021-09-17 20:57:07 -07:00
NetSysFire c7b4c56fd6 nuts.json: Fix some typos (#51681) 2021-09-17 19:46:13 -07:00
eltank ead6ae7a52 Remove legacy kill tracker deserialization
The legacy code is 2 years old.
2021-09-17 19:26:20 -07:00
NetSysFire e7c0d03582 containers.json: Re-add boiling quality to tin and aluminum cans
Fixes #51660
2021-09-18 03:46:49 +02:00
John Candlebury c3be660b87 Forested formless ruins 2021-09-17 17:38:03 -06:00
John Candlebury 6c99db0734 Add missing symbol to pallettes 2021-09-17 17:28:03 -06:00
Kevin Granade 6b325a91eb Merge pull request #51669 from eltank/fix_u_buy_item
Replace u_buy_item with u_spawn_item
2021-09-17 15:31:00 -07:00
Maleclypse dfeffce52e Rabbit Mutagen spawn and recipe change (#51542)
* Rabbit Mutagen drops and recipe change

* lint

* Update data/json/items/generic.json

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

* Update data/json/items/generic.json

Co-authored-by: Jianxiang Wang (王健翔) <qrox@sina.com>
2021-09-17 15:22:25 -07:00
John Candlebury b34776eac9 Allow bridges to be build above ravines 2021-09-17 15:14:38 -06:00
John Candlebury fa68827e37 Replace exoplanet roads with worn-down versions 2021-09-17 15:14:18 -06:00
John Candlebury d98b098f10 Fix exoplanet weather 2021-09-17 15:13:37 -06:00
Kevin Granade 9d62422010 Merge pull request #51665 from eltank/melee_training_cap
Implement melee skill gain cap, fix breather exploit
2021-09-17 11:51:47 -07:00
Binrui Dong 753976110f Fix typo in smoked tainted mutant meat description (#51671) 2021-09-17 09:46:03 -07:00
Brambor 63b1e3d39b Add max_joy to JOY column in the consumables menu (#51401)
* align satienity right

All the code did was to allign the bar & the title <==> allign the bar left.
It was the only column aligned to left, so let's align it right instead.

* column JOY in consumables menu: added max_joy

refactoring remove_color_tags

* Apply suggestions from code review

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

* use string_format instead of custom made n_digits

Co-authored-by: John Bytheway <52664+jbytheway@users.noreply.github.com>

Co-authored-by: actual-nh <74678550+actual-nh@users.noreply.github.com>
Co-authored-by: John Bytheway <52664+jbytheway@users.noreply.github.com>
2021-09-17 09:45:37 -07:00
eltank 0143ecbe66 Change u_buy_monster to not require pay when cost is 0 2021-09-17 02:41:38 -07:00
eltank 5458faf562 Replace u_buy_item with u_spawn_item when items are given for free 2021-09-17 02:41:38 -07:00
eltank 2cd9e1be59 Add receipt message to u_spawn_item
also refactor to share common code with u_buy_item
also enforce u_buy_item only used with cost > 0
2021-09-17 02:41:37 -07:00
Angela Graves b54ccd18f8 Merge pull request #51666 from KorGgenT/copy-from-works-with-bodypart
copy-from works with bodyparts
2021-09-17 03:39:50 -05:00
eltank f10a176618 Reorder fields to minimize padding 2021-09-16 21:52:23 -07:00
eltank 2ccea0c2ed Cap melee skill gains from breathers 2021-09-16 19:55:03 -07:00
eltank 4b8282bee5 Add melee_training_cap field to monster definition
Limit amount of melee skill that player can gain based on this cap.
2021-09-16 19:55:02 -07:00
Entity-y 8d47fe33cd wearable smokes (#51635) 2021-09-16 15:34:34 -07:00
John Bytheway ae33b96f06 Document join prioritization (#51661) 2021-09-16 15:20:22 -07:00
KorGgenT f2f8bbe265 copy-from works with bodyparts 2021-09-16 17:28:19 -04:00
actual-nh 16c2a77f9b Fix lack of double braces for std::array aggregate initialization (#51654)
* Fix dog whistle patch to compile & be more efficient

In its original version, the dog whistle patch would not compile on
my older version of clang++ due to lacking double braces for std::array
aggregate initialization. Also changing to const char * to avoid
unneeded allocations, as mentioned by @akrieger on the dev discord.

* Fix lack of double braces in std::array

Another instance, in src/all_enum_values.h included by overmap.cpp.

Co-authored-by: actual-nh <actual-nh@users.noreply.github.com>
2021-09-16 11:24:35 -07:00
NetSysFire 74a85fb145 Make the IRC information a bit more consistent and pretty (#51652)
* README.md: Improve IRC part

Use Libera Chats own webchat, list the website instead of the irc server pool

* en.motd: Point to the website instead of the irc server pool

* de.motd: Point to the website instead of the irc server pool

* ru.motd: Point to the website instead of the irc server pool

* zh_CN.motd: Point to the website instead of the irc server pool
2021-09-16 10:25:58 -07:00
John Bytheway b079e1da96 Document the optional joins feature 2021-09-16 11:35:15 -04:00
John Bytheway d1d406a4db Optional joins for mutable specials
To add more flexibility to the layout of mutable specials it is
convenient to allow some joins for particular overmaps to be optional.
This helps in particular with the final phase when you want to clean up
all the leftover unresolved joins.

Generalize the definition of joins to allow this in the JSON, and handle
appropriately in the code.

Convert craters to use this feature.

Extend the unit tests to spawn a test crater to exercise this feature.
2021-09-16 11:35:15 -04:00
Angela Graves 3c8d674765 Merge pull request #51633 from kevingranade/big-energy
Default energy to using int64_t as an underlying type
2021-09-16 01:29:37 -05:00
Fris0uman 401cc44171 Helmet_motor_raised looks_like helmet_motor (#51650) 2021-09-15 16:36:04 -07:00
ProfoundDarkness e0557a0121 Tweaked tileset load error message to specify... (#51648)
Which tileset the mod_tileset.json file is incompatible with.
2021-09-15 16:35:48 -07:00
ferociousdork 03b7f842f0 Fix NPC bionic refueling & bionic melee weapons (#51641) 2021-09-15 16:35:20 -07:00
Maleclypse 401282abc3 Update effects.json (#51631) 2021-09-15 16:32:29 -07:00
Kevin Granade f9de197c08 Merge pull request #51625 from jbytheway/random_max_in_mutable_special
Random max in mutable special
2021-09-15 16:32:04 -07:00
I-am-Erk 224cb92a1d Connectivity and synergism (#51621) 2021-09-15 16:26:59 -07:00
David Seguin 74b986d42c Add option to explicitly refit clothing (#51600)
* Created dedicated refit option in repair menu

* Separate refit options into ONCE and FULL
2021-09-15 16:24:14 -07:00
Kevin Granade 59a4a6fa16 Merge pull request #51596 from Joshua-Chin/monster-coverage-3
Weakpoints (Part 3): Adding skill to the weak point equation
2021-09-15 16:22:58 -07:00
ferociousdork dacda24bbd Check incompatible mutations for worn items on activate. (#51595) 2021-09-15 16:19:36 -07:00
Mariusz Klinikowski 36298ed98c Changed weight of work t-shirt from 64g to 200g to allow it to be cutted into pieces (#51590)
Co-authored-by: Mariusz Nikow Klinikowski <mariusz.klinikowski@gmail.com>
2021-09-15 16:17:38 -07:00
Kevin Granade d8e95a7a65 Merge pull request #51528 from occulti/GlassWalls
Reduce coverage of glass walls from 90% to 25%
2021-09-15 16:16:05 -07:00
John Bytheway fc08210aaf Document distribution feature for mutable specials
Explain how to specify that the max number of instances should be drawn
from a Poisson distribution.
2021-09-15 18:22:12 -04:00
John Bytheway 437024792d Allow random number of overmaps in mutable special
Rather than always having a fixed number of overmaps for a particular
rule during placement, allow a random number.  Currently this can only
be a poisson-distributed number (or a fixed value, as was already
supported).
2021-09-15 18:22:12 -04:00
Kevin Granade 10031f8757 Merge pull request #51601 from wapcaplet/w-compact-compass
Add more compact Alt Compass to available sidebar panels
2021-09-15 15:10:30 -07:00
Kevin Granade cfc8042f78 Merge pull request #51636 from actual-nh/patch-11
Ignore most paths for MSVC workflows
2021-09-15 12:04:30 -07:00
fae edd22edc55 Removed storage batteries as per Specings(IRC) feedback. 2021-09-15 19:58:09 +01:00
actual-nh d35b65647e Put data, tests together at end
These will be removed eventually.
2021-09-15 11:22:46 -04:00
actual-nh e387faff93 Alphabetize 2021-09-15 11:18:38 -04:00
actual-nh 3965a98246 Ignore more paths for MSVC 2021-09-15 11:17:43 -04:00
actual-nh c96a91f7ff Ignore more for PRs for object creator
Also ignore gfx for pushes.
2021-09-15 11:13:58 -04:00
actual-nh 91f3ff5a30 Ignore lang subdirectory for MSVC 2021-09-15 11:03:30 -04:00
fae 27727ff1a1 Added prisoner van in to vehicle groups. Didn't add in to any maps as i find that a real PITA. 2021-09-15 15:32:38 +01:00
Kevin Granade d978eeb966 Merge pull request #51613 from anothersimulacrum/variants-for-everything
Allow specifying itype variants for everything
2021-09-15 07:19:47 -07:00
faefux db244df6b2 Merge pull request #18 from CleverRaven/master
fdf
2021-09-15 14:48:00 +01:00
eso f153adaee8 Merge pull request #51637 from CleverRaven/update-toc
Update the table of contents in doc/JSON_INFO.md
2021-09-15 02:35:08 -07:00
Angela Graves f0f5fec95e Merge pull request #51603 from ZhilkinSerg/feature-dialog-spawn-item
Add u_spawn_item dialog function
2021-09-15 03:25:51 -05:00
Zhilkin Serg 6725ecfd75 Merge pull request #51615 from nornagon/patch-11
don't load body part drench_capacity twice
2021-09-15 08:43:20 +03:00
Zhilkin Serg 48afdee39c Merge pull request #51622 from Fris0uman/tile
Update Tilesets 2021-09-14
2021-09-15 08:42:48 +03:00
Zhilkin Serg 35e7a1ae2d Merge pull request #51626 from akrieger/fix_windows
Remove builtin-baseline from vcpkg.json
2021-09-15 08:42:13 +03:00
Zhilkin Serg 03a7f5110f Merge pull request #51602 from John-Candlebury/afs-dynamic-ruins
Aftershock: Mutable Formless ruins
2021-09-15 08:41:12 +03:00
kevingranade 7abc98a70d Update the table of contents 2021-09-15 05:17:28 +00:00
actual-nh c7616bf308 Alphabetize ignore paths 2021-09-15 01:10:46 -04:00
actual-nh e62f5be4cb Add prof_parkour to doc/PROFICIENCY_LIST.md (#51629) 2021-09-14 22:09:12 -07:00
actual-nh 874db83967 object_creator: ignore changes in 'data' 2021-09-15 00:59:29 -04:00
actual-nh 884ce80fd0 Ignore data (at least for now) in msvc compile 2021-09-15 00:57:56 -04:00
Saicchi 567594a089 Jsonize hacksaw activity (#50155)
Co-authored-by: Saicchi <Saicchi@users.noreply.github.com>
Co-authored-by: Kevin Granade <kevin.granade@gmail.com>
2021-09-14 21:07:58 -07:00
Kevin Granade 2c06c5f669 Default energy to using int64_t as an underlying type 2021-09-14 21:01:12 -07:00
fae edc7baf95e Added a new prisoner transport van based on images I found of american sweatboxes online. 2021-09-15 03:58:41 +01:00
Eric Pierce 08aa7f87a7 Add Alt Compass to all sidebar layouts
This alternate version of the compass omits the blank line between the
compass and monster names, and only prints 2 lines of monster names
instead of 4. This makes the Alt Compass overall 3 lines shorter than
the regular Compass.
2021-09-14 20:09:05 -06:00
Eric Pierce 27297a9545 Use correct max-y for window, not window height!
The `getmaxy` function returns a value 1 greater than the maximum y
coordinate of the window.
2021-09-14 20:09:05 -06:00
Eric Pierce a3e6f7024e Add "compact" flag to print_mon_info
This flag omits the blank line between compass and monster names.
2021-09-14 20:09:05 -06:00
Eric Pierce f518af8589 Move game::mon_info to display::print_mon_info
Nothing in this function depends on being in the game class except the
`u` avatar reference, which is more properly passed in from the
window_panel draw function anyway.
2021-09-14 20:09:05 -06:00
Andrew Krieger 0043848824 Remove builtin-baseline from vcpkg.json
This is supposed to give a helpful error message when devs have a
too-old copy of vcpkg, but for cataclysm it seems to barf in a very
odd way complaining about some yasm-tool-helper version unavailable
and otherwise not being friendly. Even if not, people might need to
rebootstrap because the versions feature is not default until some
newer time period. Regardless, we can just remove this field and
allow existing devs to keep working, and new devs will clone vcpkg
at a new enough rev that things should work fine.
2021-09-14 18:26:59 -07:00
actual-nh 6470ad46e9 Triffid and Mycus don't get along (#51624)
See <https://discord.com/channels/598523535169945603/598529174302490644/887453720185548820>.
2021-09-14 17:20:56 -07:00
John Bytheway 627a66d880 Actually fix rare anthill placement errors (#51611)
The previous attempt to fix the rare anthill placement errors did not
work.  I now know this was due to a simple typo, but tracking down the
issue took a lot of refactoring.  That refactoring improved the code, so
I'm including it here.

Changes include:
* The previous fix was that new unresolved joins that might conflict
  with postponed joins would themselves be automatically postponed.  We
  have now reversed this logic so the postponed joins are restored.
  This allows another chance for the current phase to satisfy the joins,
  now that might be possible.
* Postponed joins now need to have their positions indexed for efficient
  access, so I factored out that indexing capability into a new struct
  indexed_joins.
* Removed the list of orphaned joins.  They should no longer ever occur.
* Added a bunch of calls to a consistency_check function that verifies
  the class invariants (except it's disabled for now, with the code left
  in case it's useful for future debugging).
* The order of unresolved joins used to depend on their addresses in
  memory, which made the tests non-reproducible.  Change that to be
  deterministic.
* Add unit test which places ~100k anthills to more easily observe
  placement errors.
* Improve the debugging output for failed placements to make it easier
  to see what happened (add phase boundary markers and capitalize
  FAILED).
2021-09-14 17:19:44 -07:00
Anton Burmistrov a6634614a5 Returned obsoleted items and other fixes (#51608) 2021-09-14 17:17:00 -07:00
Eric Pierce 5fd1b12e85 Add practice recipes for electronics skills/profs
These electronics practice recipes exercise several electronics
proficiencies by working with a variety of electrical parts. Soldering
practice is auto-learned at electronics level 1, but the other
electronics practice recipes require book-learnin'.

A note on "components" versus "tools" - the "components" in a recipe are
destroyed during crafting, while the "tools" may use up charges but are
not destroyed. This distinction matters a little more in a practice
recipe, because no useful item is yielded.

These recipes have some of their ingredients in "tools" so they are not
destroyed during the practice craft. Some less valuable bits such as
electronic scrap and wire are in "components" and are consumed for each
hour of crafting, representing mistakes and other unrecoverable loss.
To partially compensate this, "byproducts" give back some of the
electronic scrap, which can be re-used for new circuits.
2021-09-14 17:59:26 -06:00
Eric Pierce 9e9335384b Add electronic scrap to more deconstructions 2021-09-14 17:59:26 -06:00
Eric Pierce 631946251f Add 101 Important ICs reference book
From the same publisher who brought you "101 Crafts for Beginners" and
"101 Wrestling Moves" comes "101 Important Integrated Circuits", a
hefty tome of schematic diagrams and technical jargon that is impossibly
dull to the average reader, but pure golden knowledge to the aspiring
electrical engineer with a pile of recycled components.
2021-09-14 17:59:26 -06:00
Eric Pierce 758e708c41 Add digital multimeter item, spawn near voltmeter
The multimeter is more common nowadays than the mere voltmeter. Make it
appear in the same quantities to the voltmeter in most itemgroups, except
the tool_electronics group where multimeters are as common as voltmeters
used to be, and voltmeters are 1/10th as common in that group than before.
2021-09-14 17:59:26 -06:00
Eric Pierce ba71a712af Add solderless breadboard item and spawns 2021-09-14 17:59:26 -06:00
Eric Pierce 6f26664b41 Add new proficiencies to Electronics recipes
Require soldering and circuits proficiency for many of the electronics
construction recipes. More complex or higher-level recipes also require
semiconductors proficiency.
2021-09-14 17:59:14 -06:00
Eric Pierce 919cf14fde Add new proficiencies within Electronics skill
Electrical Circuits: Principles of flowing voltage/current
Semiconductors: Working knowledge of transistors
Integrated Circuits: Using IC chips in circuits
2021-09-14 17:58:32 -06:00
Kevin Granade b81351ea87 Merge pull request #51616 from akrieger/windows_ci
Windows ci
2021-09-14 16:49:00 -07:00
Kevin Granade 9682097282 Merge pull request #51620 from eltank/no_fungal_growth_default
Add the no_fungal_growth mod by default
2021-09-14 16:43:57 -07:00
Kevin Granade a91d37eb83 Merge pull request #51604 from eltank/zlevels_cleanup
Remove legacy code handling z-levels-off
2021-09-14 15:20:25 -07:00
anothersimulacrum b7a7efc058 Fix padding in itype.h 2021-09-14 17:55:59 -04:00
I-am-Erk 31fca5028e Signal integrity confirmed. Sending secondary packages. (#49411)
* Add map extras for exodii crashes, and items to populate them with
* Add more variety to wreckages including crashed version
also touches up item groups and terrain appearance
* Create exo_safehouse.json
all data in this file for now, for easier rebasing later.

Co-authored-by: anothersimulacrum <anothersimulacrum@gmail.com>
2021-09-14 14:27:41 -07:00
Saicchi 7a4f3a2245 dog whistle fluff (#51549)
Co-authored-by: Saicchi <Saicchi@users.noreply.github.com>
2021-09-14 14:26:07 -07:00
Fris0uman aa69568ddc Make get_wielded_item() return a ref instead of a pointer (#51614) 2021-09-14 14:02:34 -07:00
eltank 1569b619e4 Obsolete no_fungi, use no_fungal_growth instead 2021-09-14 12:59:33 -07:00
Fris0uman 74211ccbed Update Chibi Ultica 2021-09-14 2021-09-14 21:59:09 +02:00
Fris0uman bf6b583d38 Update Ultica 2021-09-14 2021-09-14 21:58:54 +02:00
Fris0uman d91652cdd0 Update RetroDays 2021-09-14 2021-09-14 21:58:35 +02:00
Fris0uman 31b1b05700 Update Retrodays 2021-09-14 2021-09-14 21:58:20 +02:00
Fris0uman 612a7bd328 Update MSX 2021-9-14 2021-09-14 21:58:06 +02:00
eltank b8f75d5acd Add the no_fungal_growth mod by default 2021-09-14 12:49:27 -07:00
Andrew Krieger 2fed4de507 Cataclysm Windows CI definition. 2021-09-14 12:42:50 -07:00
Andrew Krieger 6809ad10f6 Github workflow for ObjectCreator on Windows
This is a pretty bog standard looking windows workflow. The special
sauce is apparently in the `run-vcpkg` action, which has some magic in
it to cache the resulting built artifacts and automatically restore them
in subsequent runs. This is good, because the vcpkg build is very slow.
There's some subtleties in it though. We have to manually add the
msbuild integration's output paths to the list of cached folders. The
cache also includes pretty much _all_ of the vcpkg folder except build
outputs, which is problematic because it means we can't modify the
builtin triplets on the fly.

Why do we want to modify the builtin triplets? What are the triplets,
even? Triplets are basically short descriptive strings which tell vcpkg
what 'kind' of build you want - eg. `x86-windows`, `x64-windows`,
`x64-windows-static`, whatever. We want `x64-windows-static`, because
dll deployment is a cluster. Regardless, what these triplets map to are
essentially tiny CMake files which set some common configuration for all
the deps that vcpkg builds. These CMake files are usually checked into
vcpkg's repo. If we wanted to set some configuration 'globally' for all
deps, we'd have to insert it into the triplet files directly if there
wasn't some command line argument or environment variable we could use.

So why do we care? By default, vcpkg will build both debug and release
versions of all deps, and this takes a large amount of disk space. Too
much disk space, in fact, for the workers to still complete successfully
(and upload to cache if needed). One way to work around this would be to
insert `set(VCPKG_BUILD_TYPE release)` into every triplet file. This
works, but it breaks `run-vcpkg`'s caching. More specifically, because
`run-vcpkg` caches the entire vcpkg checkout including the triplets, on
subsequent runs if we were to naively insert `set(VCPKG_BUILD_TYPE release)`
again it would simply append after the entry we already had. vcpkg
itself though has extra checks to detect if packages need to be rebuilt,
including hashing the triplet files. If we just keep appending the
setting we will keep changing the triplets and busting vcpkg's cache.
Instead we use 'triplet overlays' which are essentially 'triplet include
paths' that tell vcpkg where to look for triplet files. We'll point
vcpkg at a folder in our repo where we've checked in shadow copies of
the triplets we care about which include the setting automatically, and
will thus be consistent on every run, and no one's cache will be busted.
2021-09-14 12:42:50 -07:00
Andrew Krieger 08b3606aff Improve vcpkg integration and fix ObjectCreator Release build
- vcpkg's 'manifest mode' integrates with MSBuild which lets us skip the
  out-of-band install path. This also helps save on dev disk space by
  interning the cost into the repo instead of invisibly out of repo.
- Set a minimum vcpkg hash so that we avoid the x86-yasm-tool problem
  where 64 bit packages required the 32 bit yasm tool as a helper tool.
  this was fixed as of vcpkg commit
  `49b67d9cb856424ff69f10e7721aec5299624268` and we can have vcpkg
  enforce that with the `builtin-baseline` attribyte in `vcpkg.json`.
- Insert `--clean-after-build` to save even more disk space after the
  first install. This does slow down cold builds because vcpkg cleans
  after _each_ package and not after each install command, so it has to
  redownload some shared tools, but I don't think this is a significant
  hit to the total time.
- Cleaned up / corrected `VcpkgUserTriplet` definitions in project
  files to properly be the `-static` versions we want.
- Fix ObjectCreator build with correctly named libs for debug and
  release and proper lib paths. Unfortunately debug is still broken with
  a missing qt symbol, but at least release works.
2021-09-14 11:52:04 -07:00
Jeremy Rose 3c8f5b593a don't load body part drench_capacity twice 2021-09-14 11:10:57 -07:00
anothersimulacrum f4ab40c308 Add itype variant types
These enable using options to filter which itype variants are shown.
E.g. someone might not want to show gun variants, but wants to show
clutter variants, or vice versa.

At the moment, the only type of variant (other than generic) and option
for enabling/disabling variants is for guns. More can be added in the
future as needed.
2021-09-14 13:00:13 -04:00
anothersimulacrum c2c0bdce0f Convert gun_variant to itype_variant
Rename the struct and functions, and allow any items to specify
variants.
2021-09-14 12:57:55 -04:00
Zhilkin Serg 920a0886a3 Merge pull request #51607 from mqrause/unsafe_bool_fix
Fix unsafe use of bool
2021-09-14 18:59:58 +03:00
mqrause 3bca35e1a9 remove comparison 2021-09-14 14:23:23 +02:00
eltank 0b55846a73 Make all maps z-level-on and tinymaps z-level-off 2021-09-14 03:58:58 -07:00
eltank a4caba2f89 Remove references to map::has_zlevels()
Replace with `true` and simplify resulting code.
Remove serialization for monsters-on-stairs fields.
2021-09-14 03:58:58 -07:00
Maleclypse 566e1fba9f Apply suggestions from code review 2021-09-14 02:15:56 -05:00
Zhilkin Serg 9651e17839 Add u_spawn_item function 2021-09-14 10:11:43 +03:00
Valiant 79d608e639 Added new sword to two martial arts 2021-09-14 10:27:07 +04:00
Valiant 19b6ec757b Made lighter sword bash less 2021-09-14 10:25:53 +04:00
Termineitor244 89a5de5393 Wooden practice (#51583)
* Carving Practice

* Basic Carpentry practice

* Eliminated nails as byproduct

* JSON lint

* Update fabrication.json
2021-09-13 22:37:16 -07:00
Angela Graves bcf6246a03 Merge pull request #51588 from RenechCDDA/seismograph
Seismographs are now encumbering to wear
2021-09-14 00:32:52 -05:00
RenechCDDA b5f15e890c Re-add comestible_type to allow consumption (#51597) 2021-09-13 22:13:53 -07:00
NetSysFire aeebdefb60 Add HURT_ON_WIELDED flag to more items (#51587)
* Add HURT_ON_WIELDED flag to barbed wire

* Add HURT_WHEN_WIELDED flag to shrapnel

* Add HURT_ON_WIELDED flag to nails, too

After all, you would impale your hand unless you carefully put the nails between your fingers.

* Fix typo'd flag
2021-09-13 22:13:17 -07:00
Venera3 34519ea8ca Fix (#51592) 2021-09-13 22:12:04 -07:00
Maleclypse 9fec96b435 [Magiclysm] Adds new zombie animals (#51570)
* Saachi's Magic Zombies

* Fixes

* fix

* Apply suggestions from code review
2021-09-13 22:10:23 -07:00
Maxin Cardamom 0f28ccc0fd Add looks_like to filter mask item JSON. (#51500)
Strictly speaking, this makes the sprite inaccurate compared to the
overlay, but it's still better than nothing
2021-09-13 22:09:48 -07:00
Marloss c36afa5d8a Fix undefined behavior with can_examine on keycard readers (#51561)
* Fix undefined behavior with can_examine on keycard readers

* debug log when calling the functions for something with an actor

* slightly better debug message
2021-09-13 22:09:19 -07:00
John Candlebury 0226a1bbfb Mutable Formless ruins 2021-09-13 22:19:28 -06:00
Joshua Chin 4cb24ef36c Fix UB from uninitialized field 2021-09-13 23:45:36 -04:00
actual-nh e2ee2ff614 Stabilize monster emotions (anger/morale) (#51543)
* Cap some anger increases; fix minor leash bug

As suggested by @Venera3 on the dev discord, trying to get monsters a
bit more sensible in combat by limiting anger increases. Also fixed a
minor bug with the leash code which had temporarily-friendly monsters
completely ignore a leash around their necks in planning movement.

* First part of more-sensible cooldowns

This increases the rate at which a monster's anger or morale returns to
its base amount, from once per 10 turns to either once per 8 turns or,
if anger/morale is 15+ away from the base amount, once per 4 turns.
Future modifications will have cooldowns happening properly after being
outside the reality bubble.

* Further fixing on regen_morale case

Having regen_morale should not put the monster above its normal morale
(or anger), even if one or both are below 0.

* Put anger/morale back while outside reality bubble

There is code in process_triggers, enhanced by this PR, to bring
monsters back to their baseline anger and morale. However, this did not
function while outside the reality bubble, nor was it caught up when
the monster came back into the reality bubble.

This commit fixes this problem for "normal" anger/morale returning,
with rounding chosen to avoid roll_remainder; it does not take into
account regen_morale, however.

* Formatting

Co-authored-by: actual-nh <actual-nh@users.noreply.github.com>
2021-09-13 16:39:55 -07:00
Joshua Chin e13a09aa17 Add static to reweigh function 2021-09-13 19:25:05 -04:00
Amans Tofu c31592a47a Fixed eating demihuman not Affect morale (#51524) 2021-09-13 16:13:49 -07:00
SouP 9bdd1ca53f Blaze Industries README/modinfo update (#51502)
* Update modinfo.json

Removes outdated maintainer info.

* Update README.txt

Updates README to have up-to-date information congruent with current status.
2021-09-13 16:09:18 -07:00
Hirmuolio ad301388f3 Complain about missing pockets (#51491)
* complain about missing pocket definitions

* add missing pockets
2021-09-13 15:55:00 -07:00
Kevin Granade 2caa3b79f6 Merge pull request #51474 from jbytheway/unhardcode_anthill_mapgen
Allow JSON linear terrain and unhardcode anthill mapgen
2021-09-13 15:53:47 -07:00
Joshua Chin 6d6e164dd8 Fix clang tidy. 2021-09-13 18:44:09 -04:00
Joshua Chin 18d272fca4 Bound the minimum number of rolls at 1 2021-09-13 17:56:46 -04:00
Joshua Chin c4f9a7d2b7 astyle 2021-09-13 12:17:11 -04:00
Joshua Chin f9aeefc936 Add reweighing based on weak point skill 2021-09-13 12:16:21 -04:00
Joshua Chin b929de6f0b Initialize weakpoint_attack pointers 2021-09-13 11:29:23 -04:00
RenechCDDA 7a35f4f08d Add encumbrance to seismograph 2021-09-13 10:45:49 -04:00
Termineitor244 e341785f9c Fletching practice (#51571)
* Create fabrication.json

* Simplify recipe

* Update fabrication.json

* Update data/json/recipes/practice/fabrication.json

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

* Update fabrication.json

* JSON style check?

* JSON lint

* Apply suggestions

Co-authored-by: actual-nh <74678550+actual-nh@users.noreply.github.com>
2021-09-13 07:42:01 -07:00
Joshua Chin 6453f7c82f astyle 2021-09-13 09:46:57 -04:00
Joshua Chin 8d4a3673a5 Fully wire weak point through ranged character attacks 2021-09-13 09:46:24 -04:00
Joshua Chin 287358d2dd Add is_melee to weakpoint_attack 2021-09-13 09:39:21 -04:00
Joshua Chin 998ac6ebc6 astyle 2021-09-13 09:27:32 -04:00
Joshua Chin 58ab89e80b Wire weakpoint through projectile_attack 2021-09-13 09:26:15 -04:00
Zhilkin Serg 77f8f60808 Merge pull request #51410 from Termineitor244/Radio-Tower-Upgrade
Allow more basecamp generic missions for the Radio Tower
2021-09-13 13:42:59 +03:00
Serhiy Zahoriya 6efe9773fe Infrastructure "compose.py --only-json" (#51437) 2021-09-13 13:41:50 +03:00
Elgrosito fbb3341848 Mafia boss profession (#51420) 2021-09-13 13:41:25 +03:00
Zhilkin Serg d2d78afcf7 Merge pull request #51464 from nornagon/fix-spelling-regeneration-modifiers
fix spelling of regeneration_modif{i}ers
2021-09-13 13:38:38 +03:00
Zhilkin Serg 200e16f80b Merge pull request #51510 from kevingranade/partial-revert-drop-select
Untangle the two ways of selecting number of items to drop
2021-09-13 13:37:34 +03:00
Kevin Granade 66f9ecfb96 Route feral human and other rock throwing through the throwing code (#51465)
* Route feral human and other rock throwing through the throwing code

Necessitated some touchups on the sanity test for same.

* Extend the rock throwing sanity test to check multiple ranges
2021-09-13 13:35:46 +03:00
Zhilkin Serg 208004ad58 Merge pull request #51503 from jbytheway/constexpr_error_in_cube_direction
Use constexpr_fatal in constexpr functions
2021-09-13 13:34:59 +03:00
Zhilkin Serg c21cf1802b Merge pull request #51544 from Saicchi/renamemonster
Let player nickname monsters
2021-09-13 13:34:47 +03:00
Kevin Granade 6b308d6049 Remove blueprint_needs entries (#51521) 2021-09-13 13:34:23 +03:00
John Candlebury 86a675772a Aftershock: Adjust rat snatcher stats (#51520)
Co-authored-by: Maleclypse <54345792+Maleclypse@users.noreply.github.com>
2021-09-13 13:33:09 +03:00
Zhilkin Serg 6f8ee6f74a Merge pull request #51534 from Venera3/snippet
Allow nested snippets in dialogs
2021-09-13 13:32:50 +03:00
Zhilkin Serg c7dd276379 Merge pull request #51530 from Putnam3145/reduce-spellbook-spam
Makes studying spells not spam the player with "can't gain more skill" messages
2021-09-13 13:31:55 +03:00
Hymore246 6914e8482e SD cards contain more recipes (#51537) 2021-09-13 13:31:41 +03:00
Zhilkin Serg bb21032774 Merge pull request #51555 from casswedson/mre-migration
Migrate mre items
2021-09-13 13:31:00 +03:00
Termineitor244 bdf119aab3 Fix for Sarcophagus mission (#51540) 2021-09-13 13:30:36 +03:00
Zhilkin Serg 0ba8f3a940 Merge pull request #51557 from actual-nh/magiclysm_overmap
Add "looks_like" to magiclysm overmap terrains.
2021-09-13 13:30:11 +03:00
Fris0uman f6be710cfc Add looks_like to more overmaps (#51550)
* Make field around refugee center look like field

* overmap road looks like road

* solid earth of all kind looks like solid_earth

* Solid rock looks like empty_rock
2021-09-13 13:29:41 +03:00
Zhilkin Serg 9154058488 Merge pull request #51547 from Saicchi/hammerspacefix
Debug HS fix vehicle construction
2021-09-13 13:29:23 +03:00
Anton Burmistrov 2a052248cf Defer profession item spawn until after game start (#51535)
Co-authored-by: Asshole Errant <aerrant@outlook.com>
2021-09-13 00:22:23 -07:00
actual-nh 25ed28436d Standard access to monster faction id for all creatures (#51575)
* Standard access to monster faction id for all creatures

In going over monster::plan() and related functions such as attitude()
and attitude_to(), it became apparent that one problem was the
number of different ways required to derive an (equivalent) monster
faction - differing for avatar, npc, and monster. This commit adds
a virtual function to creature, get_monster_faction(), which already
exists in npc.cpp, but did not for avatars or monsters.

* Satisfy astyle

Forgot to run it on src/creature.h.

* Put get_monster_faction() implementation in header

Co-authored-by: actual-nh <actual-nh@users.noreply.github.com>
2021-09-13 00:15:02 -07:00
eltank 40c90477cd Fix stair navigation for monsters and NPCs (#51580) 2021-09-13 00:13:59 -07:00
PatrikLundell 18d2325eb2 Camp rotation (#45674)
* Fixed base camp bb handling of multi line entries
* Flag support for mirror/rotation of camp recipes + farm expansion as implementation example
2021-09-13 00:02:45 -07:00
Angela Graves ca85a2ca8b Merge pull request #51556 from NetSysFire/patch-2
Fix typos in effect_on_conditions.json
2021-09-13 00:21:10 -05:00
John Bytheway 5b018b475c Putative fix for mutable special placement (#51574)
I think I figured out why mutable special placement was sometimes
failing.  Some joins could be postponed but others could appear
pointing at the same tile and be satisfied in the absence of the
postponed joins.  Then, when the postponed joins are restored they
cannot be satisfied.

Avoid this by keeping track of the tiles with postponed joins and
ensuring that they new joins pointing at the same tiles are added
directly to the postponed list rather than the unresolved list.
2021-09-12 22:11:59 -07:00
eltank 3e6242b4fc Fix android build (#51577) 2021-09-12 22:09:23 -07:00
Joshua Chin c4e0830fac Set reasonable skill calculations 2021-09-13 00:24:08 -04:00
Joshua Chin ed45b68ea3 Fully wire melee attack to weakpoints. 2021-09-13 00:07:04 -04:00
Curtis Merrill 0096e4d61c Merge pull request #51559 from CleverRaven/kevingranade-npc-crash-fix
prevent npc crash
2021-09-12 20:34:04 -04:00
Anton Burmistrov 5267bd1b1d Changed goal for the mission (#51558) 2021-09-12 16:56:52 -07:00
eltank 5324a1588b Fix crafting search filter for skills (s) (#51551) 2021-09-12 15:22:06 -07:00
eltank f0502bd60f Don't give speech xp for passing condition-based dialog trials (#51553) 2021-09-12 15:21:06 -07:00
eltank 5cb629589b Practice recipes for social skill (#51554) 2021-09-12 15:19:18 -07:00
Joshua Chin 96fb741a21 Formatting 2021-09-12 17:52:28 -04:00
Joshua Chin b2d60a4324 Add weakpoint_attack to the deal_melee_hit 2021-09-12 17:30:38 -04:00
Joshua Chin 7727115232 Add wp_skill field to weakpoint_attack 2021-09-12 17:29:57 -04:00
Joshua Chin 85ebf48b8a Run astyle 2021-09-12 17:06:20 -04:00
Joshua Chin 01f412ace7 Add weakpoint_attack to deal_damage 2021-09-12 17:05:14 -04:00
Joshua Chin 7465e49466 Wire weakpoint_attack through absorb_hit 2021-09-12 16:49:48 -04:00
Joshua Chin 3dbc9302a6 Add weakpoint_attack struct 2021-09-12 16:45:21 -04:00
Kevin Granade fb50979c16 add an optional check 2021-09-12 13:35:40 -07:00
Venera3 ee43beb55d Adjust effect intensity decay (#51374)
* Effect test

* Tested, doc updated

Fungal spores and per venom works

* Have cake, eat it

Martial arts' funcionality is protected from intensity-based removal, docs updated

Co-authored-by: actual-nh <74678550+actual-nh@users.noreply.github.com>
2021-09-12 11:22:25 -07:00
curstwist 30d3cd96df fix symbol conflict with palette (#51371) 2021-09-12 11:19:21 -07:00
Menschheit 5312f48fb0 Fix not being able to fetch tools (disassembly zone) (#51343)
* fix fetch required for multi disassemlbe

* NPCs are too dumb to be able to handle liquid
2021-09-12 11:18:53 -07:00
Hymore246 3045f4a114 Updated martial arts counter move costs (#51339) 2021-09-12 11:17:24 -07:00
Kevin Granade 9984a9bf1b Merge pull request #51512 from CleverRaven/update-toc
Update the table of contents in doc/JSON_INFO.md
2021-09-12 11:07:44 -07:00
actual-nh ec78959554 Add "looks_like" to magiclysm overmap terrains.
This adds my best guess as to the looks_like for magiclysm-specific
overmap terrains, going off of a combination of corresponding
symbols+colors and logical correspondences. This is for graphical
overmap use. I have also added flags in a couple of places.
2021-09-12 13:32:09 -04:00
NetSysFire d0d5a575bb Fix typos in effect_on_conditions.json 2021-09-12 19:09:23 +02:00
casswedson 0637a43b83 Migrate mre items 2021-09-12 11:51:06 -05:00
Fris0uman 9ffcc33559 Update Tileset 2021-09-12 (#51552)
* Update MSx 2021-09-12

* Update Ultica 2021-09-12

* Update Chibi Ultica 2021-09-12
2021-09-12 09:29:12 -07:00
kevingranade 58224f51c8 Update the table of contents 2021-09-12 15:55:12 +00:00
Kevin Granade dff7039400 Merge pull request #51518 from wapcaplet/w-practice-leather
Add practice recipe for basic leatherworking
2021-09-12 08:54:23 -07:00
eltank 1cc9172bc8 Improve display of recipes from books (#51541)
- enumerate practice recipes (separately from crafting recipes)
- fix a bug using the wrong skill level to check if a recipe can be
learned
- change the headings when listing crafting recipes for improved clarity
- stop cargo culting ngettext and generally simplify the code
2021-09-12 08:51:29 -07:00
Curtis Merrill 6adf85001d load a second tileset for overmap (#51526) 2021-09-12 08:49:50 -07:00
Fris0uman da590d88ef Make weapon private (#50286)
* Make `weapon` private

* Update tests

* Rebase

* Appley suggestions

* Fix weapon dorping

* fix weapon saving

* Rename to get_wielded_item

* rename to set_wielded_item

* fixes

* Post rebase fixes

* fixes

* fix weapon saving

* fixes

* more rebase and fixes

* Apply suggestions

* post rebase fixes
2021-09-12 08:47:47 -07:00
Jianxiang Wang (王健翔) 21435d22a0 Set active code page to utf-8 in newer Windows versions (#51475) 2021-09-11 22:37:30 -07:00
Maleclypse f4994d343e [Aftershock] Arcology First Floor (#49951)
* Extend/Delete in requirements

* Revert "Extend/Delete in requirements"

This reverts commit 9da0eaeb4e.

* Valentine Cards (#47438)

* Add a proficiency for handloading, and a new profession (#47244)

* Drug Dealer Profession (#47255)

* Adds hallula, a type of bread popular in Bolivia and Chile

* Arm mounted pouch (#46946)

* Tazer drone iii (#47353)

* Added Gelatin and Several Gelatin Based Recipes (#47080)

* Content: bread in a can (#45680)

* New random mission (#44999)

* Mycus fruit Juice (#44952)

* Milleable corn (#46254)

* Talk Tag Additions (#47010)

* Fix typo in Valentines Card (#47583)

* (CrazyCataclysm) Crazy Hallucinations (#47386)

* Mealgurb (#47685)

* Add duct tape blindfold for old reciepe plus tweaks for reciepe (#47527)

* Prepare npc, spell, character, and item for new ai (#47207)

* Make acetylene torch cut metal walls. (#46255)

* Added disassembly recipes for several items (#46316)

* Celsius temperature for freezing point (#47028)

* Stand up peek (#47257)

* [AFTERSHOCK] Basic Ballistic Weapons (#47559)

* makes glass walls and glass doors constructable (#47692)

* Crackers as bread and jam&cheese sandwich (#47649)

* [Aftershock] misc typograpical fixes (#47783)

* Tweaks for teas (#47848)

* Have travis run for 0.F-dev

Currently, .travis.yml has a 'development' branch specified as one to run tests for; the current equivalent is the 0.F-dev branch.

* Tweakes to copper and metal pipes. (#47825)

* Fried eggs deluxe, sandwiches, and condiment list (#47786)

* Homemade toastems, buttercream frosting and recipes (#47696)

* Chocolate Cow don't drop "cow pies"

* Remove unused FATIGUE energy source from spells

* [Magiclysm] add owlbear origin snippet (#47752)

* [Magiclysm] add lesser banishment spell, buff greater banishment (#47537)

* Unhardcode bio_heatsink and bio_climate

* Hunting lodge Location (#44378)

* fungal evolution (#47247)

* Add book strap carrier (#47665)

* 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

* Add 0.F-dev to matrix.yml

(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.

* 0.F-dev workflows (#47875)

* Alter brown bread recipe to match canned version

Fixes #47874.

* Mine entrance expand (#47928)

* Added mine_materials item group

* Added Trolley vehicle

* Expanded and tweaked above-ground and underground levels of mine entrance

* [DinoMod] Mushroom Madness (#47907)

* misc typograpical fixes

* body pillow recipe makes makeshift body pillow now (#47917)

* Traffic Bollards and an example of deployment (#48017)

* add description for Uyen's missions

* 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.

* Clean up character mutation gain a bit

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.

* 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.

* Spiral mine jsonify (#48003)

* prevent bell spam (#47987)

* Note that vat is required for fermentation in vinegar brewing

* Unhardcode ease of sleep

* calorie test

* Revert "calorie test"

This reverts commit e5355755a9.

* Arcology Start

Adding windows and entrances

organization

more mapgen

organization and more overmaps

Update arcology_ground.json

Update arcology_ground.json

Last of the gates

Update arcology_gate_chunks.json

city special and terrain

chunks

Update arcology_ground.json

Update arcology_chunks.json

Update data/mods/Aftershock/itemgroups/arcology_groups.json

Update recipe_obsolete.json

chunkening

testing

fixes

Update arcology_ground.json

Update arcology_ground.json

fixes

neverending fixes

the lintening

Update arcology_gate_chunks.json

Update arcology_gate_chunks.json

Update arcology_gate_chunks.json

Can force spawn now but it is blank

Update arcology_chunks.json

15 tons and whadya get

reverses north and south

Ready for testing

Gates open

Open and Close gates using console

broken metal flooring

* Open and Close

* Lint

* Apply suggestions from code review

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

Co-authored-by: LaVeyanFiend <51099123+LaVeyanFiend@users.noreply.github.com>
Co-authored-by: slimeboy460 <68845349+slimeboy460@users.noreply.github.com>
Co-authored-by: ToxiClay <ToxiClay@users.noreply.github.com>
Co-authored-by: Jamuro-g <76928284+Jamuro-g@users.noreply.github.com>
Co-authored-by: Xenomorph-III <sam1998may@gmail.com>
Co-authored-by: grawprog <77870049+grawprog@users.noreply.github.com>
Co-authored-by: Xaleth <countolaf17@gmail.com>
Co-authored-by: El-Jekozo <72350516+El-Jekozo@users.noreply.github.com>
Co-authored-by: RobertoVGoulart <robertovgoulart@yahoo.com.br>
Co-authored-by: Zukulini <dragon.fuego.yo@gmail.com>
Co-authored-by: klorpa <30924131+klorpa@users.noreply.github.com>
Co-authored-by: UmbralReaper <67179462+UmbralReaper@users.noreply.github.com>
Co-authored-by: SariusSkelrets <68650913+SariusSkelrets@users.noreply.github.com>
Co-authored-by: Fosheze <50811445+Fosheze@users.noreply.github.com>
Co-authored-by: Lamandus <33199510+Lamandus@users.noreply.github.com>
Co-authored-by: Curtis Merrill <curtis.r.merrill@gmail.com>
Co-authored-by: NeviNovat <51816321+NeviNovat@users.noreply.github.com>
Co-authored-by: Karol1223 <68503002+Karol1223@users.noreply.github.com>
Co-authored-by: Hirmuolio <22011552+Hirmuolio@users.noreply.github.com>
Co-authored-by: Charlie Gardai <32105250+Moltenhead@users.noreply.github.com>
Co-authored-by: Mom-Bun <43492737+Mom-Bun@users.noreply.github.com>
Co-authored-by: OromisElf <oromis.der.lehrer.eragons@freenet.de>
Co-authored-by: casswedson <58050969+casswedson@users.noreply.github.com>
Co-authored-by: actual-nh <74678550+actual-nh@users.noreply.github.com>
Co-authored-by: Fris0uman <sthapplz@gmail.com>
Co-authored-by: Ramza13 <52087122+Ramza13@users.noreply.github.com>
Co-authored-by: LyleSY <lyle.sollayates@Gmail.com>
Co-authored-by: FuelType-Memes <42695732+FuelType-Memes@users.noreply.github.com>
Co-authored-by: Anton Burmistrov <Night_Pryanik@mail.ru>
Co-authored-by: actual-nh <actual-nh@users.noreply.github.com>
Co-authored-by: casswedson <nelson1003403634@gmail.com>
Co-authored-by: akirashirosawa <38557723+akirashirosawa@users.noreply.github.com>
Co-authored-by: anothersimulacrum <anothersimulacrum@gmail.com>
Co-authored-by: Jeremy Rose <nornagon@nornagon.net>
Co-authored-by: John Candlebury <johncandlebury@gmail.com>
2021-09-11 22:34:54 -07:00
Angela Graves 76bac85983 Merge pull request #51516 from wapcaplet/w-wind-turbine
Add wind turbine map special
2021-09-12 00:34:20 -05:00
eltank d5022767e3 Fix overmap data missing on load (#51545) 2021-09-11 22:33:24 -07:00
Saicchi 644a5e1ee5 default to frame 2021-09-12 00:41:39 -03:00
Saicchi ff401ba77b change monster name 2021-09-11 22:00:16 -03:00
Eric Pierce f46a599f6a Improve description 2021-09-11 17:58:50 -06:00
Eric Pierce 6ecac09047 Reduce max difficulty/skill, add filament 2021-09-11 17:53:54 -06:00
actual-nh 0ad26d7244 Make power_rating() use is_ranged_attacker() (#51529)
monster::power_rating() was, instead of actually checking to see if
something had a ranged attack and boosting the power rating
accordingly, was checking for whether the monster was a robot, and
assuming that those had ranged attacks but no other monster did.

At least for evaluations by smarter beings (NPCs and monsters with
PRIORITIZE_TARGETS), this really should be using difficulty - TODO.

Co-authored-by: actual-nh <actual-nh@users.noreply.github.com>
2021-09-11 14:39:42 -07:00
Eric Pierce d3e899c32c Relocate ladder to east wall, realign nacelle 2021-09-11 14:49:16 -06:00
Eric Pierce f2c7a18760 Increase max_difficulty for basic leatherworking 2021-09-11 14:39:33 -06:00
Eric Pierce 61e1c7e32e Revise doc with suggestions from code review
Co-authored by @eltank
2021-09-11 14:38:06 -06:00
Eric Pierce 1f096d3c3e Add electrical conduit & wind vane to wind turbine 2021-09-11 14:16:33 -06:00
Eric Pierce 5b70d9a29b Add f_wind_vane furniture 2021-09-11 14:13:57 -06:00
Eric Pierce 07612270cf Add f_electrical_conduit furniture 2021-09-11 13:49:23 -06:00
Venera3 2f67efeb4a First 2021-09-11 21:06:44 +02:00
Hymore246 316dc82e6a E-ink tablet displays copied recipes from ebooks and SD-cards (#51138)
Co-authored-by: Anton Burmistrov <Night_Pryanik@mail.ru>
2021-09-11 11:40:12 -07:00
Putnam3145 bd050e8ff0 Made studying spells not spam the player 2021-09-11 10:48:58 -07:00
R. Stephens Summerlin 0144ecf5f2 Added basic weakpoint unittest (#51375)
* Added basic weakpoint unittest
* Using weakpoint hit access to get more specific and reliable
2021-09-11 10:44:07 -07:00
John Bytheway a22b38228d Report cross compiler version in build.sh (#51508)
* Report cross compiler version in build.sh

* Don't quote values in GITHUB_ENV lines

These quotes were being preserved in the environment variable values,
which we don't want.
2021-09-11 10:39:23 -07:00
Bence be066b9573 NPCs. (#50341)
* Chloe, Sonia, Zachary

* Update data/json/npcs/godco/NPC_Chloe_Taylor_King.json

* Lint json

* EOL fix

Co-authored-by: Maleclypse <54345792+Maleclypse@users.noreply.github.com>
Co-authored-by: Zhilkin Serg <ZhilkinSerg@users.noreply.github.com>
2021-09-11 10:38:24 -07:00
Eric Pierce 905c625c70 Add wind turbine overmap special
Co-authored-by: actual-nh <74678550+actual-nh@users.noreply.github.com>
2021-09-11 11:24:18 -06:00
occulti 364b3cee38 Update terrain-walls.json 2021-09-11 18:06:53 +01:00
Eric Pierce bdfb12183c Add doc/PRACTICE_RECIPES.md for practice recipes
Based on notes from @eltank on #51007
2021-09-11 10:25:59 -06:00
Eric Pierce 16a5ce90b4 Add practice recipe for basic leatherworking
Use tailoring_leather_small requirement (using an awl, sewing tool,
thread, and leather patch) as the basis for practice.

Practice recipe is auto-learned at tailoring level 3, or can be found in
one of the leatherworking tailoring books.
2021-09-11 10:22:07 -06:00
Secret-Cisco ace0efbbfa Restores unavailable saltworks blueprints and recipes (#50664)
* Fixed missing recipes and blueprints

Added { "id": "kitchen" } to saltpan building to allow its food prep recipes to work.  Added {"id":"saltworks_recipes_2"} to brewery building to allow crafting and further upgrading.

* Fixed missing recipes and blueprints

Added { "id": "kitchen" } to saltpan building to allow its food prep recipes to work.  Added {"id":"saltworks_recipes_2"} to brewery building to allow crafting and further upgrading.

* Fixed missing recipes and blueprints

Added { "id": "kitchen" } to saltpan building to allow its food prep recipes to work.  Added {"id":"saltworks_recipes_2"} to brewery building to allow crafting and further upgrading.

* Fixed missing recipes and blueprints

Added { "id": "kitchen" } to saltpan building to allow its food prep recipes to work.  Added {"id":"saltworks_recipes_2"} to brewery building to allow crafting and further upgrading.

* Fixed missing recipes and blueprints

Added { "id": "kitchen" } to saltpan building to allow its food prep recipes to work.  Added {"id":"saltworks_recipes_2"} to brewery building to allow crafting and further upgrading.

* Fixed missing recipes and blueprints

Added { "id": "kitchen" } to saltpan building to allow its food prep recipes to work.  Added {"id":"saltworks_recipes_2"} to brewery building to allow crafting and further upgrading.

* Fixed missing recipes and blueprints

Added { "id": "kitchen" } to saltpan building to allow its food prep recipes to work.  Added {"id":"saltworks_recipes_2"} to brewery building to allow crafting and further upgrading.

* Marked brewing recipes as a WIP

All the brewery recipes currently result in liquids that get dumped in a puddle inside the camp storage zone.  This seemed more convenient than deleting the recipes entirely.

* Removed huge methanol byproduct from moonshine mash

Methanol wouldn't be produced at that stage and that was way too much because of a JSON error. Removed entirely do to it being the only alcohol byproduct.

* Rename gin mash

Renamed and described the two gin mashes to more clearly and accurately reflect their usage.

* Wrote comment for saltworks recipes
2021-09-11 09:20:37 -07:00
Maleclypse 717e695188 Obsoletion fixes (#51483)
* Update obsolete.json

* Fixes

* Update recipes.json

* Update item_groups.json

* lint
2021-09-11 08:12:22 -07:00
ephemeralstoryteller e09215a769 [Dark Skies] Harvestable Poppies (#51519) 2021-09-11 07:53:53 -07:00
Jianxiang Wang (王健翔) a11d8cf5ac Add code to check for irregular plural forms (#51259) 2021-09-11 07:49:42 -07:00
jim-huynh 6475fc46e6 Npc occupied chair check (#51448)
* Check that the chair_pos does not contain a creature before trying to travel there.

Co-authored-by: actual-nh <74678550+actual-nh@users.noreply.github.com>
2021-09-11 07:45:44 -07:00
Angela Graves 4d92cc64a6 Merge pull request #51495 from actual-nh/patch-1
Clarify mon_dragonfly_mega description
2021-09-11 03:02:04 -05:00
Kevin Granade 74a7286761 Routine i18n updates on 11 September 2021 (#51517)
Co-authored-by: Brett Dong (BOT) <brett.browning.dong@gmail.com>
2021-09-11 00:12:06 -07:00
John Bytheway 1778ebdc91 Better debugging for mutable special placement (#51504)
When placement of mutable overmap specials fails, it's hard to figure
out why.  The small amount of context previously given in the debugmsg
wasn't enough.  I did have some further debug printfs in non-compiled
code behind a #if, but that's no use to people who can't compile the
game themselves, nor does it help debug failures in CI.

Reformulate the code so that these more detailed messages are always
saved (rather than printed) and when a placement error occurs, it
includes a full history of the placement to allow for debugging.
2021-09-10 22:35:01 -07:00
Jianxiang Wang (王健翔) a98c2a09a1 Fix unused variable warning caused by cata_assert (#51506) 2021-09-10 22:33:12 -07:00
John Bytheway 9eb8e7682f Add cata_fatal macro (#51507)
Extend the cata-assert check to suggest using cata_fatal, a new macro
for fatal errors.

Use that new macro to replace uses of abort, assert( false ), etc.
2021-09-10 22:32:34 -07:00
Eric eb6861a850 Fix portal issues (#51511) 2021-09-10 22:31:09 -07:00
John Bytheway adf846bfdf Check mapgen dimensions (#51431)
Previously there was no error if the dimensions of the "rows" array in
mapgen was too large (there was an error when it was too small).

Add such an error, and fix all the mapgen issues it finds.
2021-09-10 22:15:45 -07:00
Kevin Granade 85661df302 Merge pull request #51450 from eltank/swap_player
Take control of and play as NPC followers
2021-09-10 20:57:27 -07:00
Paprika-H fbd0d6b5f0 Added, and adjusted fursuits and their protection values and rarity (#51499)
* Added, and adjusted fursuits and their armour and rarity

Adds two new suits, the feline and dragon suit. The feline suit just being a wolf suit 2.0, and the dragon suit having wings. Also edits the changes of them spawning so that survivors aren't swamped in fursuits.

* Linted files

Files have been linted

* Fixed some spaces

Fixed the spaces behind periods so they work now, thank you Casswedson btw!

* Update data/json/items/armor/suits_clothes.json

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

* The actual important part

Github is hard

Co-authored-by: actual-nh <74678550+actual-nh@users.noreply.github.com>
2021-09-10 19:00:26 -07:00
John Bytheway 824cebad7f Document (briefly) JSON for linear mapgen 2021-09-10 19:23:13 -04:00
John Bytheway 4fb4f3d195 Unhardcode anthill mapgen
We already jsonized the overmap generation for anthills.  This further
jsonizes the regular (tile) mapgen, and completely rips out the old
hardcoded overmap generation.

As part of this process, all the overmap terrains became rotatable, and
so needed to be migrated.

This fixes the issue where ants were not spawning in the tunnels for the
new-style anthills.

However, for the time being only regular anthills are being generated,
not acid anthills.  I plan to re-add acid anthills later.
2021-09-10 19:23:13 -04:00
John Bytheway 4bac03aea2 Support JSON-defined linear terrain
Linear terrain (roads, ant tunnels, sewers, etc.) was not previously
possible to define in JSON.  This was because the rotation wasn't
correctly calculated for linear terrain.  Make it be.
2021-09-10 19:23:13 -04:00
John Bytheway 4979e36bc1 Better error for missing json mapgen object
Previously this would fail with an error which didn't explain where the
problem was.
2021-09-10 19:23:13 -04:00
John Bytheway a36b14dd10 Update constexpr_fatal
It turns out that the gcc bug this macro works around is actually
present in a less serious form in gcc up to at least 8.3, even though it
was partly fixed in 6.  So, update our choice of which gcc versions to
use the workaround on.
2021-09-10 19:16:44 -04:00
Kevin Granade 4806642e8f Merge pull request #51223 from Saicchi/jsonizespeed
Jsonize monster speed description
2021-09-10 15:26:43 -07:00
Kevin Granade 8392233668 Untangle the two ways of selecting number of items to drop
Routing the hotkey based use case through the new query code caused some UX regressions such as not being able to use the configured item selection hotkeys.
2021-09-10 15:19:14 -07:00
Kevin Granade f4874dbbf6 Merge branch 'master' into jsonizespeed 2021-09-10 14:08:38 -07:00
eltank 6f74e2907a Take control of NPC followers 2021-09-10 10:34:18 -07:00
eltank 15479e501c Streamline NPC debug menu info 2021-09-10 10:34:18 -07:00
eltank 8387cb82e5 Remove unnecessary declarations from debug_menu.h 2021-09-10 10:34:18 -07:00
Priyansh Singh a025ee9f3d Issue #51265 (issue in zoo_1_1 map i.e, salt and fresh water should not coexist). (#51435)
* Issue #51265

* Issue #51265

* Updated zoo.json

* Update zoo.json
2021-09-10 09:31:51 -07:00
actual-nh a15d8a960b Update data/json/monsters/insect_spider.json
Co-authored-by: ToxiClay <ToxiClay@users.noreply.github.com>
2021-09-10 12:18:31 -04:00
John Bytheway 2416d4e4fa Use constexpr_fatal in constexpr functions
Using debugmsg in constexpr functions fails on some compilers.  Use
constexpr_fatal macro instead to work around this.
2021-09-10 11:26:33 -04:00
Kevin Granade 869c60a3cf Merge pull request #48744 from Salty-Panda/add_storage_ring
Add storage rings, fix item length calculation for containers with volume_multiplier
2021-09-10 07:51:56 -07:00
Kevin Granade 52ac23f42d Merge pull request #51497 from eltank/fix_build_2
Fix more compilation errors in overmap.cpp
2021-09-10 07:13:12 -07:00
Angela Graves 38c619572e Merge pull request #51473 from AMurkin/update-gitignore-master
Update .gitignore
2021-09-10 05:30:16 -05:00
eltank 833fc9ecd0 Make atm cash deposit work with stacked currency (#51487) 2021-09-09 23:03:45 -07:00
eltank 0f0c467794 Remove left-over parkour mutation references (#51488) 2021-09-09 23:02:20 -07:00
eltank b8f4f5d9e6 Explicit return value construction 2021-09-09 22:37:21 -07:00
John Bytheway 06b280b876 Add and use ladder_up_down (#51476)
Many pieces of mapgen have ladders over multiple levels and the player
has to shimmy from side to side in order to climb them.  This was
because ladder terrain allowed going either up or down but not both.
This is weird and unintuitive.

Add a new ladder_up_down terrain that allows movement in both
directions.  Use it in the fire lookout tower, the radio tower, various
grain silos, and the freshwater research station.
2021-09-09 21:19:33 -07:00
Kevin Granade dc93fd09a6 Merge pull request #51498 from wapcaplet/w-soft-paper
Make paper soft so it will fit in small pockets
2021-09-09 21:18:19 -07:00
eltank 1f359aceb0 Define std::hash specialization for cube_direction 2021-09-09 18:46:06 -07:00
Eric Pierce fa73e3dd5a Document the "soft" flag for materials 2021-09-09 19:34:48 -06:00
Eric Pierce f27f1f7bab Make paper soft, so its length can fit in pockets
Whether neatly folded or wadded into a ball, the length of a piece of
paper should not prevent it from fitting in a pocket.
2021-09-09 19:28:07 -06:00
I-am-Erk 2fda46e778 Standardize "emergency" lockpicks made from whatever is on hand (#51485) 2021-09-09 16:30:37 -07:00
Frozen Tear 8b8fe725d3 Rabbit Mutation Category (#48548)
* Rabbit Mutagen pull request

Added rabbit serum and mutagen.

* Rabbits are here

Added new rabbit mutations, included rabbit in fitting existing traits, and created the new category, along with threshold.

* Added rabbit to a few traits that were missing

* Rabbit mutagen recipes

Because of course I forgot this detail.

* Minor change to mutagen items

* Fixes and linting

A file was in the wrong folder, fixed that. And also changed a few more traits.

* Rabbit ears visibility

They are pretty large, changed the value 8 (same as rodent ears) to 9.

* Linting again

Hopefully it will be the appropriate format this time.

* Update data/json/mutations/mutations.json

Co-authored-by: casswedson <58050969+casswedson@users.noreply.github.com>

* Update data/json/mutations/mutation_category.json

Co-authored-by: casswedson <58050969+casswedson@users.noreply.github.com>

* Added "RABBIT" to the Whiskers mutation

The change in description was to fit both feline and the rabbit category, as suggested by souricelle.

* Added little paws mutation

These will make burrow possible without claws, and help satisfy the uniqueness of the mutation line.

* Linting

Never forget to lint the json files.

* Fixing my first "pull from master" madness

I don't know how to explain this.

* Trying to fix rabbit category problems

* More fixes

Here is hoping this time.

* Apply suggestions from code review

Co-authored-by: casswedson <58050969+casswedson@users.noreply.github.com>
Co-authored-by: Maleclypse <54345792+Maleclypse@users.noreply.github.com>
2021-09-09 16:24:51 -07:00
eltank dee56c0cbc Fix compilation errors related to cube_direction operators (#51494) 2021-09-09 16:19:04 -07:00
eltank f0c2c3b123 Decouple save file name from Character::name (#51466) 2021-09-09 15:43:46 -07:00
actual-nh f48d3c33d6 Clarify mon_dragonfly_mega description 2021-09-09 16:45:50 -04:00
actual-nh cdc6843e4d Actually throttle monster thinking (#51460)
* Actually throttle monster thinking

* Satisfy astyle (I hope)
2021-09-09 11:50:44 -07:00
Maleclypse e9ae32fdad Update mutations.json (#51365) 2021-09-09 06:39:55 -07:00
Angela Graves d43b990e7c Merge pull request #51442 from ferociousdork/reload_furniture_fix
Allow refueling smokers & furniture from tiles in pickup range
2021-09-09 01:37:00 -05:00
eltank 5c029b51d7 Let Debug characters use the debug menu hassle-free (#51478) 2021-09-08 21:34:48 -07:00
Anton Burmistrov 30f2f455b1 Update data/json/monsters/nether.json
Co-authored-by: actual-nh <74678550+actual-nh@users.noreply.github.com>
2021-09-09 07:58:30 +04:00
Anton Burmistrov bd8d1564af Update data/json/items/book/fabrication.json
Co-authored-by: actual-nh <74678550+actual-nh@users.noreply.github.com>
2021-09-09 07:57:48 +04:00
Anton Burmistrov e927b478bb Update data/json/monsters/nether.json
Co-authored-by: Maleclypse <54345792+Maleclypse@users.noreply.github.com>
2021-09-09 07:57:14 +04:00
Kevin Granade 9856bb8a78 Merge pull request #51317 from jbytheway/overmap_mutable
Support for mutable overmap specials and unhardcode anthills
2021-09-08 19:49:22 -07:00
dmitry ed9baa7a71 added run, crouch, bleed status icons for RetroDays sees_player_retro mod (#51208)
* added run, crouch, bleeding status icon to sees_player_retro mod

* repositioned icons for better look

* changed run and crouch icons

* Update data/mods/sees_player_retro/modinfo.json

Co-authored-by: Kevin Granade <kevin.granade@gmail.com>
2021-09-08 19:44:41 -07:00
mqrause 957defcc2a refactor inventory_multiselector (#51272)
Co-authored-by: mqrause <martin@qrause.de>
2021-09-08 19:39:10 -07:00
Eric 2a90d3221b Enable effect_on_conditions to affect npcs (#51276) 2021-09-08 12:26:05 -07:00
AMurkin 1a60852b55 Update .gitignore 2021-09-08 18:49:36 +03:00
John Bytheway 88d9a408fe Avoid shadowing parameter names
Fix LGTM warnings.
2021-09-08 11:22:02 -04:00
John Bytheway bb8d2a4d0b Appease clang-tidy 2021-09-08 11:22:02 -04:00
John Bytheway f8937f7733 Document mutable overmap specials 2021-09-08 11:22:02 -04:00
John Bytheway 67e1fb10c3 Minor fix to anthill definition 2021-09-08 11:22:02 -04:00
John Bytheway 349f616f67 Rename 'connection' to 'join' for mutable specials
The term 'connection' already had a meaning in the context of overmap
generation, so I should not have reused it.  Switch to 'join' instead.
2021-09-08 11:22:02 -04:00
John Bytheway 758556d9c4 Mutable specials can specify placement constraints
Allow a mutable overmap special to specify some location constraints for
its initial placement.  This prevents some types of placement errors
(such as an anthill over a sewer tunnel that prevents the underground
part being placed).
2021-09-08 11:21:59 -04:00
John Bytheway f695e79114 Restrict connections by terrain they connect to
When placing an OMT as part of a mutable overmap special, previously it
was possible for it to be placed in such a way that it had a connection
into some terrain that could not permit that connection.  For example, a
tunnel that would have to lead into another tunnel.

Now, when satisfying a constraint, we also verify that the adjacent
terrains fall into the into_locations member of the respective
connections.

If not otherwise set, those locations are the default locations of the
special.
2021-09-08 11:19:47 -04:00
John Bytheway d326b91699 Add the more interesting ant structures to anthill
The JSON anthill now spawns food, larvae, and queen rooms in addition to
just tunnels.
2021-09-08 11:19:47 -04:00
John Bytheway b4fd8489ac Respect location restrictions in mutable specials
When growing a mutable overmap special, actually respect the location
restrictions set by the JSON.
2021-09-08 11:19:47 -04:00
John Bytheway cce0c7cee5 Make a sample mutable overmap special
A first step towards un-hardcoding anthills, make a mutable overmap
special to represent them.

In this first iteration, it's nothing more than a single crossroads with
some variable-length straight tunnels extending in each compass
direction.
2021-09-08 11:19:47 -04:00
John Bytheway 65156c1362 Initial support for mutable overmap specials
Mutable overmap specials are a new type of special where you do not
define a specific layout, but rather a collection of rules about what
OMTs are permissible and how they link together.

Add this as a new subtype of overmap special, with all the associated
code to support it.

This is only an initial, limited, implementation.
2021-09-08 11:19:47 -04:00
John Bytheway 6277af07fe Helper function to get all values of an enum
This feature already existed for some specific enums, but we can
implement a generic version.
2021-09-08 11:19:46 -04:00
John Bytheway 6c369dcc4b Refactor overmap_special
I am trying to add a new variant of overmap special.  As a precursor to
that, I wanted to refactor a bunch of the overmap_special code so that
more of it is contained within the overmap_special class rather than
other code messing with its internals directly.

Thus, made most of its member variables private and moved various chunks
of code to member functions.
2021-09-08 11:19:46 -04:00
Anton Burmistrov 0839cb7500 Update data/json/monsters/nether.json
Co-authored-by: chaohedgehogs <46550455+chaohedgehogs@users.noreply.github.com>
2021-09-08 18:23:08 +04:00
Anton Burmistrov 3c31e4bb20 Update data/json/items/melee/swords_and_blades.json
Co-authored-by: chaohedgehogs <46550455+chaohedgehogs@users.noreply.github.com>
2021-09-08 18:21:15 +04:00
Anton Burmistrov 389127a773 Update data/json/items/chemicals_and_resources.json
Co-authored-by: chaohedgehogs <46550455+chaohedgehogs@users.noreply.github.com>
2021-09-08 18:20:51 +04:00
Anton Burmistrov ad21ede4d6 Update data/json/items/book/fabrication.json
Co-authored-by: chaohedgehogs <46550455+chaohedgehogs@users.noreply.github.com>
2021-09-08 18:20:28 +04:00
Valiant aaf0f08350 Added new book for finale loot, recipe and item itself 2021-09-08 13:18:42 +04:00
Valiant b00b4d8492 Added new material for finale loot
Shamelessly taken from Magiclysm.
2021-09-08 13:17:17 +04:00
Valiant 7efe15bb61 Added new boss for the finale 2021-09-08 13:16:07 +04:00
Valiant 44f0502bbe Added new mine mapgen 2021-09-08 13:15:20 +04:00
Saicchi 135d626eb0 Jsonize Pet Food (#50948)
Co-authored-by: Saicchi <Saicchi@users.noreply.github.com>
Co-authored-by: LyleSY <lyle.sollayates@Gmail.com>
Co-authored-by: Kevin Granade <kevin.granade@gmail.com>
2021-09-07 23:44:38 -07:00
QuintusAquila 46b89ccb67 Rewrite Medieval Swordsmanship: Try 3 (#51462)
* Rewrite Medieval Swordsmanship

* Update data/json/martialarts.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-09-07 22:58:45 -07:00
Angela Graves f8485b6019 Merge pull request #51458 from Joshua-Chin/fire-field-flake
Add the "mayfail" flag to the fire spreading test
2021-09-08 00:54:26 -05:00
Kevin Granade 46b015fdda Merge pull request #51449 from akrieger/start_removing_jsonin
Start removing `JsonIn` by supporting a more verbose `deserialize()` pattern.
2021-09-07 22:45:10 -07:00
Kevin Granade 43abfa6a92 Merge pull request #51444 from eltank/fix_aim_drag
Always show dragged vehicle contents in AIM
2021-09-07 22:42:02 -07:00
I-am-Erk 484f207132 I have begun a holey crusade (#51373)
* add holes to zombie armor for most zombies
Co-authored-by: Joshua Chin <joshuarchin@gmail.com>
2021-09-07 22:36:22 -07:00
Jeremy Rose 1bc1e5d717 fix spelling of regeneration_modif{i}ers 2021-09-07 22:00:24 -07:00
eltank 5612551d1e Change item list highlight color to white (#51447)
* Change item list highlight color to white

* Position the cursor on the selected item in the item list
2021-09-07 21:22:49 -07:00
akrieger 006c10b379 Convert a bunch of trivial deserialize functions off JsonIn
Most instances of deserialize instantly convert from JsonIn to the
object oriented interface, usually JsonObject. Using the improved
interface on JsonIn we can change the signatures on these to more
accurately reflect what they're doing. Also help get rid of JsonIn
which is not supported in the binary json refactor this unblocks.
2021-09-07 18:08:48 -07:00
Andrew Krieger 2d83440bcc Add SFINAE helpers to allow JsonIn to call either deserialize
To allow for incremental migration to JsonValue type deserialization,
we can use the void_t detector pattern to enable one of two overloads
for JsonIn::read(), one which calls a member deserialize function that
takes JsonIn like before, and one which calls it with JsonValue. This
way we can directly migrate types to using a JsonValue derived
deserialize function without an intermediate state which has both old
and new function signatures present.
2021-09-07 18:05:47 -07:00
eltank 09bf1d1176 Make AIM_DRAGGED always show dragged vehicle cargo 2021-09-07 15:25:33 -07:00
eltank 094c46e210 Move advanced_inventory_pane implementation into cpp 2021-09-07 15:25:33 -07:00
Kevin Granade 20bf2deb75 Merge pull request #51313 from eltank/abs_pos
Migrate creature positions to absolute tripoints
2021-09-07 14:16:10 -07:00
Joshua Chin 4353033b81 Add "mayfail" flag to fire spreading test 2021-09-07 16:21:44 -04:00
Fris0uman abff338882 Update Tilesets 2021-09-07 (#51453)
* Update Ultica 2021-09-07

* Update Neodays 2021-09-01

* Update MSx 2021-09-01

* Update Chibi Ultica 2021-09-07
2021-09-07 11:21:44 -07:00
Elgrosito 952fd5366f Casting mold tool. Expanded bronze recipe (#51321)
* Adds casting mold tool. Expands bronce recipe

- Adds a new tool called "casting mold",  to reallistically cast an object, a technique is needed. The most common, sand casting, makes use of something like this. A pattern of the desired object is pressed against the sand, the sand retains the shape, the hot metal enters the mold and fills the empty space. Useful for complex pieces. Heavily used in the car and machine industries.
-Expands the bronze recipe to match possible IRL recipes. "Bronze" refers to a group of copper alloys. The new recipe reflects the realistic and commonly found aluminum bronze.

added nail,glue, stick. linted

Co-authored-by: Maleclypse <54345792+Maleclypse@users.noreply.github.com>
Co-authored-by: Kevin Granade <kevin.granade@gmail.com>
2021-09-07 10:04:38 -07:00
Tealc 284b042e82 fixes migration based bugs (#51451)
Several turrets had there weapons switched out using the migration system which led to miss matched names or different turrets that used the same gun but had different requirements.
2021-09-07 07:59:40 -07:00
Angela Graves 38e0a136d0 Merge pull request #51446 from TealcOneill/bolt_length
Fix crossbow bolt length
2021-09-07 07:11:48 -05:00
Benjamin Jackson da41ba533e Fix crossbow bolt length
Currently crossbow bolts are too long to fit in a regular backpack but display as being able to due to a rounding error. I don't think it's unreasonable for a crossbow bolt to fit in a backpack so I simply shortened them all 6mm so that they would fit and display properly still.
2021-09-06 19:50:47 -06:00
Tealc dd0023be4b Fix NC_JUNK_SHOPKEEP item list. (#51381)
* Fix NC_JUNK_SHOPKEER item list.

Many items in the misc items list of this file were needlessly added 2 to 4 times even. I kept the highest probability and highest charge version of each item and deleted the rest.

* Fixes item_group type

Fixes NC_JUNK_SHOPKEEP_misc being a distribution when it should be a collection.

Co-authored-by: Zhilkin Serg <ZhilkinSerg@users.noreply.github.com>
2021-09-06 17:28:46 -07:00
actual-nh cc982740a8 If want successful test output, include messages (#51441)
The output for successful tests, even if such is requested of via
Catch2's `-s` flag, now includes messages; it didn't before.

Co-authored-by: actual-nh <actual-nh@users.noreply.github.com>
2021-09-06 16:48:37 -07:00
ferociousdork 421e182627 Merge branch 'master' of https://github.com/CleverRaven/Cataclysm-DDA into reload_furniture_fix 2021-09-07 00:51:39 +02:00
eltank eede07db88 Display name of loaded ammo instead of ammo type (#51439) 2021-09-06 15:45:56 -07:00
ferociousdork 982ddf921f Reload furniture & smokers from tiles in pickup range 2021-09-07 00:40:38 +02:00
mqrause 952d25fd90 gg json fixes (#51424)
Co-authored-by: mqrause <martin@qrause.de>
2021-09-06 10:09:43 -07:00
mqrause fc34942293 fix random hobbies adding traits (#51428)
Co-authored-by: mqrause <martin@qrause.de>
2021-09-06 10:09:17 -07:00
curstwist ba98eb2337 Update furniture-alien.json (#51433) 2021-09-06 10:08:47 -07:00
Joshua Chin 142b56a492 Weakpoints (Part 2.1): Ignore weakpoints for item DPS calculations (#51404)
* Ignore weakpoints for item DPS calculations

* Increase epsilon between actual and expected DPS

* Fix bug with rapid strike calculation

* set effective_dps_test to use a test soldier

* Update zed_soldiers.json

Co-authored-by: I-am-Erk <45136638+I-am-Erk@users.noreply.github.com>
2021-09-06 08:26:27 -07:00
Fris0uman 0ab1dd9ba8 Overwrite tiles with same id (#51080)
* Overwrite tiles with same id

* report duplicated id

* Don't delete comment

Co-authored-by: olanti-p <olanti-p@yandex.ru>
Co-authored-by: Zhilkin Serg <ZhilkinSerg@users.noreply.github.com>
2021-09-06 12:43:37 +03:00
Zhilkin Serg 8b9a116992 Merge pull request #51425 from eltank/coilgun_noise
Fix coilgun noise
2021-09-06 12:41:41 +03:00
Saicchi c1a5f37107 Debug menu change knowledge level (#51349) 2021-09-06 12:41:08 +03:00
Zhilkin Serg 416f77ac81 Merge pull request #51402 from AMurkin/dedup-inv-collapse-expand
Deduplicate some code
2021-09-06 12:40:33 +03:00
Roy Berube 12c948a31d Fix bug when grabbing a vehicle (#51385) 2021-09-06 12:40:08 +03:00
Zhilkin Serg 7bac597dbb Merge pull request #51370 from curstwist/add-switch-for-badges-spawn-in-lab
Add switch for item spawn
2021-09-06 12:39:36 +03:00
Zhilkin Serg 2a9c3bcf83 Merge pull request #51382 from John-Candlebury/afs-stratoscomm
Aftershock: Stratoscomm Relay Station
2021-09-06 12:36:42 +03:00
Zhilkin Serg 8a6edbe805 Merge pull request #51391 from jiornojiovanni/sweetdrop
Added Sweets cookbook to various itemgroups
2021-09-06 12:36:29 +03:00
Zhilkin Serg 89817a1f22 Merge pull request #51397 from Termineitor244/Meat-and-Veggy
Meatarian and vegetarian hobbies update.json
2021-09-06 12:36:20 +03:00
Putnam3145 45996c5d75 Workaround for heavy slowdown caused by eager evaluation of debug message strings (#51407) 2021-09-06 12:35:48 +03:00
eltank 8d1332c7e2 Fix coilgun noise 2021-09-06 01:35:27 -07:00
eltank e396c41283 Migrate more monster fields to absolute coords
Change to tripoint_abs_ms:
- goal [was map-relative]
- wander_pos [was map-relative]
- patrol_route [was absolute but not typed]
Remove serialization for path.
Invalidate path on map shift.
Made goal optional, unset when reached.
Rename goal-related functions for consistency/readability.
2021-09-06 00:00:41 -07:00
eltank bde6d46425 Migrate more npc fields to absolute tripoint
Converted to cata::optional<tripoint_abs_ms>:
last_player_seen_pos
guard_pos
pulp_location
chair_pos
wander_pos
Some were already absolute, just not strongly typed.
2021-09-06 00:00:40 -07:00
eltank 6cca04de60 Migrate monsters stored in the overmap save file
Also simplify the spawn code since monster coordinates don't need to be
re-calculated when they enter the reality bubble.
2021-09-05 23:59:29 -07:00
eltank c615c1c1ab Migrate creature_tracker to absolute position 2021-09-05 23:59:28 -07:00
eltank c4607d4549 Migrate monster to absolute position 2021-09-05 23:59:28 -07:00
eltank 0e6101e23d Migrate npc to absolute position 2021-09-05 23:59:28 -07:00
eltank c0a443c33b Make Gozu and Amigara yield demihuman meat (#51406) 2021-09-05 23:41:30 -07:00
eltank 9327b56c10 Adjust cannibal trait cost (#51411) 2021-09-05 23:40:43 -07:00
eltank d4af92cbb6 Create no_fungal_growth mod (#51418) 2021-09-05 23:40:17 -07:00
Angela Graves a03f9cbbcb Merge pull request #51399 from AMurkin/patch-1
Fix typos. Re #50511
2021-09-06 00:26:17 -05:00
Eric Pierce a752317f7c Move armor function defs to character_armor.cpp (#51369)
Including:
- Character::can_interface_armor
- Character::mutation_armor (x3)
- Character::get_armor_bash
- Character::get_armor_cut
- Character::get_armor_bullet
- Character::get_armor_type
- Character::get_all_armor_type
- Character::get_armor_bash_base
- Character::get_armor_cut_base
- Character::get_armor_bullet_base
- Character::get_armor_acid
- Character::get_env_resist
- Character::get_armor_fire
- static destroyed_armor_msg
- static item_armor_enchantment_adjust
- static armor_enchantment_adjust
- Character::absorb_hit
- Character::armor_absorb
2021-09-05 21:04:17 -07:00
eltank 2e0f644b7a Migrate avatar to absolute position 2021-09-05 18:38:41 -07:00
eltank 9b7afd29c8 Migrate/remove Character setx(), sety(), setz() 2021-09-05 18:38:41 -07:00
eltank d9ff1a6598 Replace Creature::position tripoint with typed location field
The new field has type tripoint_abs_ms.
Adds a getter, get_location(), replacing global_square_location() --
it's shorter.
Adds a public method move_to() for changing the location. This has the
side effect of calling on_move(), which was introduced in the previous
commit.
Adds a protected method set_location() for changing the location value
without side-effects.
Removes submap shifting for npc and monster position (no longer needed,
and actually a bug now).
2021-09-05 18:38:39 -07:00
eltank bc97427b3e Move setpos() side effects into on_move()
Also refactor creature_tracker to take both old and new position
2021-09-05 18:28:42 -07:00
eltank 17fbd92e35 Change pos() to not return a reference
Also change callers to not assign the result to a reference.
Although lifetime extension will generally make that work, it is safer
to not rely on it and there's no loss of performance due to RVO and/or
the tiny amount of data in tripoint.
2021-09-05 18:28:42 -07:00
eltank 76dc332e29 Add some support for tripoint_abs_ms in map
Added getglobal() convert a local tripoint to tripoint_abs_ms
The following can take tripoint_abs_ms:
getlocal(), veh_at(), inbounds()
2021-09-05 18:28:37 -07:00
Tealc 110235dad5 [CR] Add steeltoed shoes (#51285)
* Add steeltoed shoes

I've added a new foot option and made it an option alongside steeltoed boots where appropriate. I set up one of the two NPCs that have pre-set clothing options to have steeltoed sneakers instead of boots.

* Fix Minor Lint Errors

Fixes three minor lint issues
2021-09-05 16:11:45 -07:00
eltank aae81f0638 NPCs keep track of sales value (#51388)
Add `sold` to NPC `op_of_u`
Add dialog support for reading/writing this value through `"u_val":
"sold"`
2021-09-05 16:08:33 -07:00
Termineitor244 c8dbb1260a Update recipe_modular_radio_tower_common.json 2021-09-05 17:45:31 -05:00
Alexey Mostovoy 7541dd71f5 Merge two cases of input processing
For inventory collapsing/expanding
2021-09-05 23:18:00 +03:00
Joshua Chin 0138041556 Weakpoints (part 2): Let the player know if they hit a weakpoint (#51372)
* Plumb hit source into the weakpoint hit_chance calculation

* Make absorb_hit return the name of the weakpoint, if any

* Add weakpoint printing to ranged attacks

* Add message to non-tech melee attacks

* Run astyle

* style json

* Add messages for weakspots and melee techniques.

* Add translator comments

* Convert string_format to positional and modify translator comments.

* Adjust weak point technique message

* Adjust technique message again.
2021-09-05 12:51:30 -07:00
Alexey Mostovoy bb489cbc5d Fix typos. Re #50511 2021-09-05 21:59:51 +03:00
Jeremy Rose 1217ecb172 fix vitC disease data (#51393) 2021-09-05 11:50:39 -07:00
Termineitor244 6a9c372630 Update hobbies.json 2021-09-05 11:54:16 -05:00
Eric Pierce dd5dccb6d8 Move inventory/item stuff to character_inventory.cpp (#51368)
Including:
- Character::handle_contents_changed
- Character::count_softwares
- Character::max_single_item_length
- Character::max_single_item_volume
- Character::best_pocket
- Character::try_add
- Character::i_add
- Character::i_at
- Character::i_rem
- Character::i_rem_keep_contents
- Character::i_add_or_drop
- Character::recur_internal_locations
- Character::all_items_loc
- Character::top_items_loc
- Character::invlet_to_item
- Character::get_item_position
- Character::drop
- Character::allocated_invlets
- Character::has_active_item
- Character::can_drop
- Character::drop_invalid_inventory
2021-09-05 08:13:13 -07:00
Termineitor244 43929bd8db Update recipe_modular_radio_tower_common.json (#51386) 2021-09-05 08:12:37 -07:00
Eric Pierce 426f00e5fb De-bloat Character, part 6 of X: Move ammo, reloading, and proficiency functions to new cpp files (#51352)
* Move proficiency stuff to character_proficiency.cpp

Including:

- Character::has_proficiency
- Character::get_proficiency_practice
- Character::has_prof_prereqs
- Character::add_proficiency
- Character::lose_proficiency
- Character::display_proficiencies
- Character::practice_proficiency
- Character::proficiency_training_needed
- Character::known_proficiencies
- Character::learning_proficiencies
- Character::get_proficiency_bonus
- Character::set_proficiency_practice

* Move ammo/reload/unload stuff to character_ammo.cpp

Includes:

- Character::find_reloadables
- Character::ammo_count_for
- Character::can_reload
- Character::rate_action_reload
- Character::rate_action_unload
- Character::item_reload_cost
- Character::list_ammo
- Character::select_ammo(item, vector)
- Character::select_ammo(item, bool, bool)
2021-09-05 08:12:16 -07:00
Giovanni Palmieri 856ef7f2d6 Added Sweets cookbook to various itemgroups 2021-09-05 13:41:01 +02:00
Andrey Bienkowski 960639e7f8 Remove obsolete documentation (#51333)
As far as I can tell mapgen.object.place_groups is no longer supported or used
2021-09-04 22:54:13 -07:00
Angela Graves 927af52bc2 Merge pull request #51376 from nornagon/patch-9
bundle of {stout branches => sticks}
2021-09-05 00:52:57 -05:00
John Candlebury 94701b9f10 Stratoscomm Relay 2021-09-04 21:12:46 -06:00
R. Stephens Summerlin 879596d5ac Added explicit num capture state to drop/clean menus to allow numpad navigation (#51085)
* Added explicit num capture state to drop/clean menus
* Added num capture keybinding
* Refactor filter popup to use protected function
* Use legacy number key capture if new key not bound
2021-09-04 19:07:40 -07:00
Kevin Granade cec6cb5a88 Merge pull request #51377 from actual-nh/sparrow_egg_adjust
Fix recipe test - widen range, use 2 sparrow eggs not 1
2021-09-04 18:07:45 -07:00
actual-nh 26d68f695a Change recipe_permutations to 0.75-1.25 range
Using 2 sparrow eggs, while it increased the recipe average, still
did not get it within 2 standard deviations of the item's calories,
probably because the standard deviation is only 96 - probably brought
down by multiple identical-calorie other eggs in other permutations.
Adjusting the "backup" for the standard deviation-based check to
use 0.75-1.25 still catches 54 being too low, but allows it with
using 2 sparrow's eggs. (I have some suspicion the original calories
are from a commercial item, which when not deliberately otherwise
tend to be rather caloric to increase customer liking (sugar and fat).
2021-09-04 19:53:46 -04:00
actual-nh c52466b592 Check stddev of recipes in recipe_permutations
Seeing if too-narrow standard deviation is why the test still isn't
passing.
2021-09-04 19:19:49 -04:00
Roy Berube 1ec8c90fed Allow hiding container contents in inventory (#50491) 2021-09-04 15:42:15 -07:00
actual-nh 009a1fbb99 Fix recipe test - use 2 sparrow eggs not 1
Sparrow eggs only provide 54 calories each, while hen and most other
eggs are 80 calories each. This is sufficient to cause the
recipe_permutations test for chocolate pancakes to fail. Set to use
2 of them most places they're in as requirements, the exception being
magiclysm for one potion where 5 are required - set to 7 to better
match calories for 5 chicken eggs.
2021-09-04 18:30:29 -04:00
Jeremy Rose 145489e99b bundle of {stout branches => sticks} 2021-09-04 15:18:13 -07:00
klorpa e6c9411347 Adding More Birds (#50535)
Co-authored-by: ZhilkinSerg <ZhilkinSerg@users.noreply.github.com>
2021-09-04 14:09:58 -07:00
Nabo92 7ccec39aa8 Adding proper meth recipe (#50511)
* Ading proper meth recipe

Added two new chemical items: red phosporous, pure iodine (not potassium iodine) and acetic anhydride. Added these to the loot pool of the chemical lab and meth lab truck. Also, removed old items from meth lab truck and basement.
Added a new recipe for the making of high-grade meth, which requires a long time, chemical proficiency and lots of chemicals. The high grade meth has slightly better stats than the low grade one.
Also added the other materials needed for it on the loot pool of the chemistry lab, since it makes sense and they were already pretty scarce.
Lastly, planning on adding heroin synthesis from morphine using the last added item: acetic anhydride, but will probably do it tomorrow, since this took me much longer than I was expecting.

* linting

linting previous PR

* Update data/json/items/comestibles/med.json

Adding missing pontuaction

Co-authored-by: chaohedgehogs <46550455+chaohedgehogs@users.noreply.github.com>

* Update data/json/items/chemicals_and_resources.json

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

* Update science_and_tech.json

* adding spaces

Workflow was asking me to add two spaces after the period, for some reason, so I did.

* changing item order in file

moving new meth next to old meth in the file.

Co-authored-by: chaohedgehogs <46550455+chaohedgehogs@users.noreply.github.com>
Co-authored-by: Jianxiang Wang (王健翔) <qrox@sina.com>
2021-09-04 14:07:24 -07:00
dissociativity c9f6454dbb vitamins do things (#50273)
* remove all unlikely deficiencies and excess json lines, max fatigue for scurvy
2021-09-04 13:54:22 -07:00
Diogo Silva 8902716ecc Create a makeshift pillow recipe (#49700)
Co-authored-by: LaVeyanFiend <51099123+LaVeyanFiend@users.noreply.github.com>
Co-authored-by: I-am-Erk <45136638+I-am-Erk@users.noreply.github.com>
Co-authored-by: Zhilkin Serg <ZhilkinSerg@users.noreply.github.com>
2021-09-04 13:43:02 -07:00
actual-nh 30f19a5a23 Add DESTROYS, PUSH_MON to albertosaurus (#51362)
"DESTROYS" and "PUSH_MON" are both appropriate for a 1000+ kg predatory dinosaur, particularly one with anger triggers including "STALK" (as in berserk).
2021-09-04 13:29:19 -07:00
curstwist e53a11646a add switch for item spawn 2021-09-04 16:18:58 -04:00
curstwist 84b47d201f Update lab_parking_lot.json (#51364)
* and nerf turret type
2021-09-04 13:06:20 -07:00
Kevin Granade 87ba9c1eb8 Merge pull request #51367 from StStep/weakpoint-adj
Fixed hit_chance comparison
2021-09-04 13:05:22 -07:00
Kevin Granade db4d92a523 Prune obsolete entities from before 0.F (#51309) 2021-09-04 13:01:22 -07:00
R. Stephens Summerlin 86cbb62f4f Fixed hit_chance comparison 2021-09-04 14:41:29 -04:00
Kevin Granade 82b940a2d6 Merge pull request #51347 from RandDenner/no-hope-mod-freshwater-research-station-roofgen-update
Update No Hope mod freshwater_research_station.json
2021-09-04 10:00:15 -07:00
Kevin Granade af79d0201b Merge pull request #51350 from wapcaplet/w-char-nowear
De-bloat Character, part 5 of X: Move wear/takeoff to character_attire.cpp
2021-09-04 09:59:28 -07:00
RandDenner 835805eead Update freshwater_research_station.json
Adjustment as per linter
2021-09-04 11:11:42 -04:00
Joshua Chin 5fb0289590 Add support for partial armor coverage for monsters (#51304)
* Modify load_damage_array to specify default

* Add weakpoint.h

* Implement weakpoint.cpp

* Various compiler fixes

* Add weakpoints to mtype.

* Let weakpoints modify monster armor.

* Compiler fixes

* weakpoint bugfixes.

* Run astyle

* Add json documentation

* Run json_formatter

* Run clang tidy

* Fix GCC-only warning

* clang-tidy

* Clarify weakpoint docs and switch to percentage coverage.

* Rename armor offset to armor penalty, flipping the sign.
2021-09-04 08:05:54 -07:00
RandDenner 15141e1b33 Add "freshwater_research_station.json" via upload
Modified entries as suggested by code owner
2021-09-04 11:01:48 -04:00
Angela Graves b67e5056e3 Merge pull request #51345 from dseguin/highlight_pockets
Highlight holsters that an item can be stored in
2021-09-04 02:29:45 -05:00
Kevin Granade 7ecedceabd Routine i18n updates on 04 September 2021 (#51353)
Co-authored-by: Brett Dong (BOT) <brett.browning.dong@gmail.com>
2021-09-03 22:05:38 -07:00
Kevin Granade ca86a15814 Merge pull request #51342 from wapcaplet/w-char-unsuffer
De-bloat Character, part 4 of X: Factor out suffer_* functions
2021-09-03 20:58:38 -07:00
actual-nh 4e0f86d5be Update TFLAG_SEALED in action.cpp (#51354) 2021-09-03 20:43:43 -07:00
Alexey Mostovoy a3feecd1f6 Make more parameters a const reference (#51340)
* Make requirement_data parameter const reference

* Make JsonObject parameters const reference
2021-09-03 19:40:10 -07:00
Entity-y e495059c7d add bra uncraft (#51330)
* add bra uncraft

2 minutes to cut up > 2 hours of disassembly

* Update bra recipe

Remove reversible: true
2021-09-03 19:39:30 -07:00
Eric c862f3cc87 Update json, remove obsolete code and add new values (#51308)
* Update json, remove obsolete code and add new values

* Update doc/NPCs.md

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

* Add monster functions

* astyle

Co-authored-by: actual-nh <74678550+actual-nh@users.noreply.github.com>
2021-09-03 19:33:26 -07:00
Menschheit d371fb40fd invalidate carry weight cache with put_into_vehicle_or_drop (#51282) 2021-09-03 19:31:29 -07:00
BevapDin 89af5204ab Fix sealed containers being targets for pickup actions. (#51262)
* Fix sealed containers being targets for pickup actions.

The game assumed that items can always be picked up and only checks for the presence of any item.

But items an not be picked from sealed containers (furniture / terrain with the SEALED flag). This applies to planted plants (seedling/mature plant/...), locked safes, closed crate, closed coffin, ...

Triggering the pickup function will highlight spots around the PC that can be picked from, which would include said containers, but only if they are non-empty.

This allows the player to cheat and check that a safe is non-empty before even attempting to crack it.

It also means the game will not automatically choose the only suitable target.

* Don't consider sealed terrain/furniture with items in it to be examinable.

Similar to the previous commit.
2021-09-03 19:30:05 -07:00
John Bytheway bb502fd5b2 Document an XCode support decision (#49821)
State that we aspire to support XCode for those versions of macOS that
have at least 5% market share.  Explain what that means right now and
for the future.

Add a helper script to make it easier to monitor when a particular
version drops below 5% market share.
2021-09-03 19:03:22 -07:00
Eric Pierce 4d8a0d59ca Move Character::item_wear_cost to character_attire.cpp 2021-09-03 18:48:33 -06:00
Eric Pierce 136563f6f3 Move Character::amount_worn to character_attire.cpp 2021-09-03 18:47:03 -06:00
Eric Pierce 8528e7e632 Move Character::wear_item to character_attire.cpp 2021-09-03 18:46:03 -06:00
Eric Pierce 18f699482e Move Character::item_worn_with_flag to character_attire.cpp 2021-09-03 18:42:52 -06:00
Eric Pierce 6c5bf95545 Move Character::worn_with_flag to character_attire.cpp 2021-09-03 18:41:57 -06:00
Eric Pierce 5d4ab6772c Move Character::is_wearing_on_bp to character_attire.cpp 2021-09-03 18:41:16 -06:00
Eric Pierce 382e7527eb Move Character::is_wearing to character_attire.cpp 2021-09-03 18:40:41 -06:00
Eric Pierce 3f486ac14f Move Character::takeoff to character_attire.cpp 2021-09-03 18:38:32 -06:00
Eric Pierce e8b3784b5a Move Character::can_takeoff to character_attire.cpp 2021-09-03 18:37:18 -06:00
Eric Pierce 1702abb7dc Move Character::wear to character_attire.cpp 2021-09-03 18:35:39 -06:00
Eric Pierce d5e58e0f5f Move Character::can_wear to character_attire.cpp 2021-09-03 18:29:39 -06:00
RandDenner 3920142bbe Street facing churches (#51224)
* Street facing churches

Reverse facing of churches so their entrance faces the street.

* Update church.json

Missed a comma I should have moved

* Update church.json

Roof edges fixed

* Update church.json

Test for fixing JSON validation issue

* Update church.json

Checking if the original even passes the JSON validation

* Update church.json

Reverting to the fixed version after confirming that original couldn't pass the JSON style check either.

* Update church.json

All fixed and everything spawns correctly.
Let's see if this passes checks.

* Add files via upload

Seeing if uploading the json as a file solves the check failures.

* Add files via upload

Uploading file with unix EOL formatting

* Update church.json to re-initialize the stuck checker

Just extended the hedges a bit.
2021-09-03 17:09:27 -07:00
RandDenner df316e6e11 Update freshwater_research_station.json
Added forgotten up ladder on surface level. :P
2021-09-03 19:05:05 -04:00
Kevin Granade f064b18612 Merge pull request #51273 from wapcaplet/w-char-lesser
De-bloat character.cpp, Part 2 of X
2021-09-03 15:57:32 -07:00
RandDenner c611d1fc99 Update No Hope mod freshwater_research_station.json
Adds in roof level from main CDDA
2021-09-03 18:48:58 -04:00
RandDenner 8fe84b4352 Adds missing knives to the Krav Maga list (#51131)
* Add files via upload

Adds missing knives to the Krav Maga list. Considering some of the ones already on the list, such as makeshift and bone knives, ones like the kukri should all definitely be included as well

* Update martialarts.json

Missed a comma. Oops!

* Update martialarts.json

No, I forgot to MOVE a comma.
Dumb
2021-09-03 15:30:57 -07:00
David Seguin 250fd472bb Highlight pockets that can contain this item 2021-09-03 17:22:14 -04:00
Eric Pierce 4f2c5f9336 Pull suffer_from_tourniquet out of Character class 2021-09-03 13:03:49 -06:00
Eric Pierce d2b2246b2a Pull suffer_without_sleep out of Character class 2021-09-03 13:01:56 -06:00
Eric Pierce be3508d1d6 Pull suffer_from_exertion out of Character class
Make Character::old_weary_level public. Could add getters and setters
instead, but this is the only place the variable is used presently.
2021-09-03 12:52:33 -06:00
Eric Pierce 69907ee21a Pull suffer_from_stimulants out of Character class 2021-09-03 12:44:01 -06:00
actual-nh e0ca5fc2ee Remove base_acid from example in REGION_SETTINGS.md (#51328) 2021-09-03 11:41:37 -07:00
Eric Pierce f7ef1ad89d Pull suffer_from_bad_bionics out of Character class 2021-09-03 12:40:56 -06:00
Eric Pierce ae6c2e9df2 Pull suffer_from_radiation out of Character class 2021-09-03 12:36:46 -06:00
Eric Pierce b06977b18b Pull suffer_from_other_mutations out of Character class 2021-09-03 12:31:59 -06:00
Eric Pierce 025faa504a Remove suffer_from_pain (it does nothing) 2021-09-03 12:26:47 -06:00
Eric Pierce 3de7f885dc Pull suffer_from_item_dropping out of Character class 2021-09-03 12:26:00 -06:00
Eric Pierce 1fb4fc9b4f Pull suffer_from_asthma out of Character class 2021-09-03 12:23:14 -06:00
Eric Pierce 5231337ec4 Pull suffer_while_awake out of Character class
Include related from_chemimbalance and from_schizophrenia
2021-09-03 12:13:02 -06:00
Eric Pierce adf2090d8a Pull suffer_from_addictions out of Character class 2021-09-03 12:13:02 -06:00
Eric Pierce b1ac5eee6c Pull suffer_while_underwater out of Character class 2021-09-03 12:13:02 -06:00
Eric Pierce e62cb327fa Pull suffer_mutation_power out of Character class 2021-09-03 12:13:02 -06:00
Eric Pierce d0c8613b8d Pull suffer_water_damage out of Character class 2021-09-03 12:13:02 -06:00
Eric Pierce e155ace179 Pull suffer_in_sunlight out of Character class 2021-09-03 12:13:02 -06:00
Eric Pierce 088dd9ff63 Pull suffer_from_sunburn out of Character class 2021-09-03 12:13:02 -06:00
Eric Pierce 6ae4709d06 Move contents_change_handler out of character.h|cpp (#51325) 2021-09-03 10:50:45 -07:00
Alexey Mostovoy 4cc5e1538d Optimize check for a duplicate CBM installation (#51331) 2021-09-03 09:28:26 -07:00
Eric Pierce 6efb79804f Remove unused static variables 2021-09-03 10:14:18 -06:00
Eric Pierce eb9feca542 Move body functions to character_body.cpp
Character::update_body_wetness
Character::update_body
Character::update_stomach
Character::update_bodytemp
Character::update_frostbite
Character::body_window
2021-09-03 09:56:48 -06:00
Eric Pierce f3c3a32b67 Move morale functions to character_morale.cpp
Character::update_morale
Character::hoarder_morale_penalty
Character::apply_persistent_morale
Character::get_morale_level
Character::add_morale
Character::has_morale
Character::rem_morale
Character::clear_morale
Character::has_morale_to_read
Character::check_and_recover_morale
2021-09-03 09:53:23 -06:00
Eric Pierce 9daaa7e6c5 Move trap-escaping stuff to character_escape.cpp
Character::try_remove_downed
Character::try_remove_bear_trap
Character::try_remove_lightsnare
Character::try_remove_heavysnare
Character::try_remove_crushed
Character::try_remove_grab
Character::try_remove_webs
Character::try_remove_impeding_effect
Character::move_effects
Character::wait_effects
2021-09-03 09:53:23 -06:00
Zhilkin Serg 8bab31e686 Merge pull request #47948 from MarlossCDDA/marloss/examine-functions
Examine action shouldn't suggest examining out-of-season bushes
2021-09-03 09:08:03 +03:00
Tealc 12b14d4525 Offload the LOCK_PICK use_action to the LOCKPICK tool quality. (#51246)
* Offload the LOCK_PICK use_action to the LOCKPICK tool quality.

I've made it to where all tools with the LOCKPICK quality will automatically have the PICK_LOCK use_action. I have removed the use_action itself from all current items I could find.
2021-09-03 08:56:03 +03:00
psuedolet 8af9110cb0 7 more Hobbies (#51254)
Co-authored-by: casswedson <58050969+casswedson@users.noreply.github.com>
2021-09-03 08:55:40 +03:00
Zhilkin Serg cd6c32ac9c Merge pull request #51287 from Fris0uman/animatedbg
Animated background
2021-09-03 08:54:56 +03:00
Eric cff3ba5dac Allow checking variable's in addition to time_durations in dialog conditions and effects (#51297) 2021-09-03 08:53:03 +03:00
Zhilkin Serg 2dbfb8286c Merge pull request #51248 from Ramza13/debug_var
Added debug option to print dialog vars to file
2021-09-03 08:52:18 +03:00
Maleclypse 6b347c5eec [Magiclysm] Whiskey economonics (#51303) 2021-09-03 08:51:46 +03:00
Zhilkin Serg 664cfec142 Merge pull request #51283 from eltank/del_location
Remove location.h
2021-09-03 08:49:23 +03:00
Saicchi cf533db586 Mod tracking for monsters (#51277) 2021-09-03 08:48:34 +03:00
RandDenner c6d4f662eb Freshwater research station roof map added (#51323) 2021-09-03 08:47:52 +03:00
I-am-Erk 69e97b586f Begin implementing cooking proficiencies (#49988) 2021-09-03 08:46:45 +03:00
QuartzMech 2ee03c9c14 New historical helmets (#49985) 2021-09-03 08:39:07 +03:00
Zhilkin Serg 739d03c103 Merge pull request #51266 from dseguin/fix_dup_bionics
Allow installing multiple power storage bionics from debug
2021-09-03 08:38:19 +03:00
Zhilkin Serg a06b238905 Merge pull request #51241 from Menschheit/betaTalker
Suppress beta talker debugmsg from mapgen_update
2021-09-03 08:37:12 +03:00
jim-huynh 9ee1f8af2d Capping shakes effect (#51250) 2021-09-03 08:36:28 +03:00
Zhilkin Serg adb641d204 Merge pull request #51263 from Qrox/encoding
Fix Windows path encoding
2021-09-03 08:35:52 +03:00
Alexey Mostovoy 7effc06236 Fix typo (#51279) 2021-09-03 08:32:05 +03:00
Zhilkin Serg 9684812b4d Merge pull request #51327 from eltank/rust_option
Remove Int/IntCap skill rust options and make Vanilla default
2021-09-03 08:31:45 +03:00
Angela Graves 9b3dd02621 Merge pull request #51319 from Machminotaur/FilterPaperFix
Fixed Filter Paper Always Hitting
2021-09-03 00:21:53 -05:00
eltank b31ccdcafe Remove location.h 2021-09-02 21:16:51 -07:00
chaohedgehogs 00ef8c548c Update mutant_mammal.json (#51275) 2021-09-02 21:16:14 -07:00
Kevin Granade 4583462f87 Merge pull request #51137 from akrieger/less_raw
Remove majority of `JsonObject::get_raw()` usage.
2021-09-02 20:55:30 -07:00
eltank b5001bcf0f Change default to vanilla 2021-09-02 20:27:53 -07:00
Maleclypse fe8d86b66a [CRIT] Blood spiders and shimmering spider (#51141)
* Blood spiders and shimmering spider

* Update effects.json

* Add resist traits

* C++ portions

* Update data/mods/CRT_EXPANSION/effects.json

* bleed resist

* Update effects.json

* Update data/mods/CRT_EXPANSION/monsters/crt_monster.json

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

* Update data/mods/CRT_EXPANSION/effects.json

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

* Update src/iuse.cpp

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

* Update data/mods/CRT_EXPANSION/monsters/crt_monster.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-09-02 20:17:28 -07:00
Maleclypse 75a9cf0d20 Man's Best Friend Lupine Mutation (#51306)
* Man's Best Friend

* Update mutations.json

* stray comma

* lint

* Update data/json/mutations/mutations.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-09-02 20:15:25 -07:00
eltank 6882600bc4 Make Creature::position private (#51280)
Redirect mutators to setpos()
Redirect accessors to pos(), posx(), posy(), posz()
2021-09-02 20:14:32 -07:00
eltank a84b6858b5 Remove Int/IntCap skill rust options 2021-09-02 20:05:38 -07:00
Kevin Granade b2fa431ef8 Merge pull request #51270 from wapcaplet/w-char-less
De-bloat character.cpp, Part 1 of X
2021-09-02 18:17:30 -07:00
Kevin Granade b92e5a073a Merge pull request #51120 from schealex/feature/extend-npc-inventory-management
Extend NPC inventory / loot management
2021-09-02 16:16:10 -07:00
MarlossCDDA f31bf44e19 iexamine function pointer -> struct 2021-09-02 15:23:18 -07:00
Mach Minotaur ff46c4eacf Update science.json 2021-09-02 14:03:35 -07:00
actual-nh 9e8f22dafd Limit zombie_fuse, other size change to within tiny-huge (#51295)
* Help limit zombie_fuse size change

This prevents increases in the level of the grown_of_fuse effect if
the monster is already at huge. Some further work is needed, namely to
ensure get_size never returns anything outside of the tiny-huge range;
this could happen if the engulfed monster was so big as to pop by 2
size categories. Alternatives include limiting mod_size_bonus or,
for this particular case, an alternate grown_of_fuse effect with
either less size increase or lower maximum intensity, such that -
with a given type base size - it won't put it over huge.

* Attempting to use volume to help limit zombie_fuse

@Venera3 requested going off of volume for (most of?) zombie_fuse. This
should limit to the minimum of by max_hp and by volume * (80 / 62500 ml),
which work out to the same value for a standard zombie.

* Get units to work right for volume limit

Rearrange to mathematically equivalent formula to get units system to
work right.

* Adjust grown_of_fuse for max +2 size

The effect grown_of_fuse now increases size by a maximum of 2. In order
to minimize uncertainty about effects due to roundoff, all effects are
now proportional to changes of 50, not 48.

* Clamp mod_size_bonus to within enum limits

This should prevent any input to mod_size_bonus from causing it to
go outside of the enum limits. I wound up doing this in a slightly odd
fashion, since Creature::get_size() is virtual only (the Creature
structure does not itself include a size, AFAICT); instead of getting
a base size and preventing size_bonus from pushing it beyond tiny/huge,
I limited the adjustment to size_bonus so that it wouldn't push the
current result of get_size() beyond the limits.

* Hopefully satisfy JSON formatter test

* Fix accidental min/max reversal

* Try adding a test of mod_size_bonus

Adding a test to make sure mod_size_bonus will set the size correctly.
May be extended with a few more monsters of various sizes if desired.

Co-authored-by: actual-nh <actual-nh@users.noreply.github.com>
2021-09-02 12:41:57 -07:00
actual-nh acde44ff74 Water camouflage: Make fish not visible from unrealistically far away (#50785)
* Start adding WATER_CAMOUFLAGE

WATER_CAMOUFLAGE is a flag meant to reflect that it is currently
unrealistically easy in CDDA to see many things, including most fish,
underwater. This first iteration does not have any changes re
is_divable.

* Scrap is_divable for creature::sees

map::is_divable() checks for not only DEEP_WATER, but SWIMMABLE. It is
not reasonable for visibility underwater to be lessened by a liquid
being swimmable by a human. Moreover, the check for DEEP_WATER
likely predates the use of Z-levels in water (as per @ralreegorganon
on discord); Z-levels should be taken into account, although DEEP_WATER
is unfortunately still used for various terrain. So rule out
visibility from out of the water to underwater if at least 2 of the
following are true: has WATER_CAMOUFLAGE; terrain position has
DEEP_WATER; Z-levels are different.

* Add WATER_CAMOUFLAGE to fish.json; misc cleanup

This adds the new `WATER_CAMOUFLAGE` flag to appropriate critters in
fish.json (those with the `fish` faction, at least to start; game
balance will need to be considered before adding to members of
less-neutral factions). It also removes `WARM` from inappropriate
fish/shellfish (too small to be warm due to retained heat alone) and
puts in `ARTHROPOD_BLOOD` in a couple of places it was missing (e.g.,
non-mutant crayfish).

* Document WATER_CAMOUFLAGE flag

Provide (in JSON_FLAGS.md) documentation for the new WATER_CAMOUFLAGE
flag. (Mostly a copy-and-pase from the CAMOUFLAGE flag, but with some
additions.)

* Sanity check; remove one auto

This puts a sanity check into
`MonsterGenerator::check_monster_definitions()` so that monsters that
can't submerge will generate a debug message if they're tagged with
WATER_CAMOUFLAGE. It also changes an `auto` into the actual type,
mtype, to be clearer about what is happening.

Use mon.id, not mon: `monster( thingy )` wants an mtype_id thingy, not mtype.

* Water camouflage for 1 DinoMod, 1 DSA critter

This adds the WATER_CAMOUFLAGE to the most appropriate monster from
each of DinoMod and Dark Skies Above; both are AQUATIC (as well as
SWIMS). For the first, I added it to the mosasaurus hatchling, which
is rather defenseless otherwise. For the second, I added it to the
(non-sewer) lurker (it is more described as waiting such that it is
hard to see).

* Get water_camouflage working better

is_underwater() appears to be somewhat pickier than I had thought
regarding whether something is actually in water. Checking for
_either_ is_underwater _or_ terrain being swimmable; may need to
extend to second check also, but this unfortunately does mean that
at least some non-water liquids are getting excluded. Should not
matter yet, but may for Aftershock, say.

* Extend use of TFLAG_SWIMMABLE/SHALLOW/DEEP

Get around apparent limits of is_underwater().

* Take into account AQUATIC re SWIMMABLE

After experiments revealed that is_underwater() is not reliable,
@Venera3 pointed out (thanks!) that AQUATIC's implementation of not
going on land is actually checking for SWIMMABLE, and suggested using
SWIMMABLE for more. Allowing AQUATIC + SWIMMABLE to indicate being
underwater even if is_underwater() is false. For WATER_CAMOUFLAGE,
also accepting SHALLOW_WATER (although may need size check, since
that is defined as water not deep enough to cover a human) or
DEEP_WATER.

* Code cleanup

Move checking for likely being underwater (either is_underwater or
AQUATIC and on SWIMMABLE terrain) into a function. Also add helper
function majority_rule as suggested by @jbytheway on discord.

* Add WATER_CAMOUFLAGE to more; size; flag fixes

This adds WATER_CAMOUFLAGE to several more appropriate species,
including the dragonfly nymph/naiad, beaver (but not zombeaver - brown
camouflage is going to be disrupted by red/pink/white ribs being
visible), otter, jawed terror, and the two more-evolved swimmer
zombies (the mancroc and non-base swimmer zombie; the latter is noted
as "glistening"). However, SHALLOW_WATER will no longer count for
distance-based WATER_CAMOUFLAGE for anything human-size or bigger,
since SHALLOW_WATER is insufficient to cover a human being.

I also added CLIMBS to the grey fox (specifically noted as doing so)
and SWIMS to the mink (mentioned as semi-aquatic, for instance).

Comment re LOUDMOVES and INSECT_FLYING

* Add WATER_CAMOUFLAGE to vinebeast; typo correct

This adds WATER_CAMOUFLAGE to the (triffid) vinebeast (not the creeper
vine, which is immobile), which has SWIMS. Also slight copyediting on
one description.

* Change to ter_furn_flag::

Update terrain flags to ter_furn_flag::* use.

Co-authored-by: actual-nh <actual-nh@users.noreply.github.com>
2021-09-02 09:38:43 -07:00
Jianxiang Wang (王健翔) 25cc3f554c Fix plurals and other text issues (#51255) 2021-09-02 09:38:00 -07:00
Andrew Krieger 7e2c9e9d4a Refactor activity_actor deserializers to avoid get_raw
These all have to be refactored in one go, because the deserialize
statics get put into one shared map. Fortunately all of the definitions
and declarations are in the same few files, so the impact is fairly
contained. This eliminates the last 'large' usage of get_raw. What
remains can be dealt with one at a time.
2021-09-02 09:08:43 -07:00
Andrew Krieger e312d148c5 Refactor generic_factory callbacks to take JsonValue.
This eliminates a big source of get_raw calls which ultimately aren't
needed. The subclasses and class hierarchy all can just use JsonValue
because they don't use the streaming functionality of JsonIn at all.
The one exception was `text_style_check_reader::get_next`, but it was
feasible to refactor still.
2021-09-02 09:08:43 -07:00
akrieger 2f2eec1aab Refactor units.h read_from_json_string to avoid get_raw
The original form required JsonIn, which forced many callsites to use
get_raw to pass into it. Add overloads for JsonObject and JsonValue and
refactor the common code into a helper function that uses an error
callback lambda to perform the equivalent error messaging that the
original JsonIn form did, regardless of the input. Then refactor get_raw
callsites off get_raw.
2021-09-02 08:41:52 -07:00
akrieger 38a6b78b20 Extend various json apis
- Add offset to JsonObject::throw_error and JsonValue::throw_error
- Add JsonValue::string_error
- Make JsonArray::throw_error const like JsonObject
- Add JsonIn::get_value and JsonArray::next_value
- Add JsonValue::test_null
2021-09-02 08:41:52 -07:00
Qrox fcf75c69be Handle path encoding correctly on Windows 2021-09-02 23:22:34 +08:00
Zhilkin Serg d3f1eb2f4e Merge pull request #51314 from AMurkin/patch-2
Fix typo in activity_actor.cpp
2021-09-02 15:29:48 +03:00
Alexey Mostovoy b5d6b8805d Fix tipo 2021-09-02 13:45:25 +03:00
Angela Graves 313fa334ff Merge pull request #51299 from Hymore246/book-binder-tool
Changed Book Binder item to TOOL
2021-09-02 00:10:47 -05:00
Hymore246 61758e8084 Changed Book Binder item to TOOL 2021-09-01 17:02:25 -05:00
Eric Pierce 20fe076e3c Move bionic-related functions to bionics.cpp
Character::get_bionics
Character::has_bionic
Character::has_active_bionic
Character::has_any_bionic
Character::can_fuel_bionic_with
Character::get_bionic_fueled_with
Character::get_fueled_bionics
Character::get_most_efficient_bionics
Character::get_remote_fueled_bionic
Character::get_fuel_available
Character::get_fuel_capacity
Character::get_total_fuel_capacity
Character::update_fuel_storage
Character::get_mod_stat_from_bionic
Character::bionic_armor_bonus
2021-09-01 15:29:27 -06:00
Eric Pierce e74c0df2ae Move modifier functions to character_modifier.cpp
Modifier functions:
Character::aim_speed_skill_modifier
Character::aim_speed_dex_modifier
Character::aim_speed_modifier
Character::melee_thrown_move_modifier_hands
Character::melee_thrown_move_modifier_torso
Character::melee_stamina_cost_modifier
Character::reloading_move_modifier
Character::thrown_dex_modifier
Character::stamina_recovery_breathing_modifier
Character::limb_speed_movecost_modifier
Character::limb_balance_movecost_modifier
Character::limb_run_cost_modifier
Character::swim_modifier
Character::melee_attack_roll_modifier
Character::reloading_move_modifier
Character::ranged_dispersion_modifier_hands
Character::ranged_dispersion_modifier_vision

Score functions:
Character::manipulator_score
Character::blocking_score
Character::lifting_score
Character::swim_score
Character::vision_score
Character::breathing_score
Character::balance_score
Character::movement_speed_score
2021-09-01 15:29:11 -06:00
Eric Pierce c149665b81 Move clothing functions to character_attire.cpp
Character::change_side
Character::layer_item
Character::is_wearing_power_armor
Character::is_wearing_active_power_armor
Character::is_wearing_active_optcloak
Character::item_encumb
Character::wearing_something_on
Character::is_wearing_shoes
Character::is_worn_item_visible
Character::get_visible_worn_items
Character::is_wearing_helmet
Character::head_cloth_encumbrance
Character::armwear_factor
Character::footwear_factor
Character::shoe_type_count
2021-09-01 15:28:53 -06:00
Eric Pierce d805ac2963 Move gun/gunmod functions to character_guns.cpp
find_ammo_helper
Character::get_ammo
Character::find_ammo
Character::has_gun_for_ammo
Character::has_magazine_for_ammo
Character::gunmod_add
Character::gunmod_remove
Character::gunmod_installation_odds
2021-09-01 15:19:04 -06:00
Fris0uman 1775043204 Update Tilesets 2021-09-01 (#51289)
* Update MSX 2021-09-01

* Update Retrodays 2021-09-01

* Update Neodays 2021-09-01

* Update Ultica 2021-09-01

* Update Chibi Ultica 2021-09-01
2021-09-01 10:22:58 -07:00
Fris0uman 1489fd54e7 Animated background 2021-09-01 15:21:41 +02:00
Angela Graves c11072c6ea Merge pull request #51258 from cainiaowu/cainiaowu-patch-1
remove pipebomb from obsolete
2021-09-01 00:12:49 -05:00
Kevin Granade 0421556228 Update the table of contents (#51274)
Co-authored-by: I-am-Erk <I-am-Erk@users.noreply.github.com>
2021-08-31 18:34:58 -07:00
Kevin Granade 49c9e88a30 Merge pull request #51249 from eltank/deflake_turret_test
De-flake the vehicle turret test
2021-08-31 17:37:02 -07:00
Binrui Dong 1fa1d84b12 Fix broken list of languages available (#51219) 2021-08-31 17:27:25 -07:00
Kevin Granade 2363cb81e0 Merge pull request #51222 from ZhilkinSerg/perf-more-tflags
More terrain and furniture flag optimizations
2021-08-31 17:27:02 -07:00
Saicchi 09e065330c Allow changing hair, facial hair, eye and skin colour (#51169)
* customize appearance menu

* change eyes and skin iuse

* change eyes and skin furniture iexamine
change hair activity actor finish

* usage and vanity for eye, skin and hair

* no breaking the 4th wall

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

* rename enum to customize_appearance_choice

Co-authored-by: Saicchi <Saicchi@users.noreply.github.com>
Co-authored-by: I-am-Erk <45136638+I-am-Erk@users.noreply.github.com>
2021-08-31 17:07:01 -07:00
Fris0uman 36d40224d0 Allow multitile sprites to be animated (#51257) 2021-08-31 16:06:50 -07:00
eltank 1f2570e10a Change default rail rifle ammo to steel rail 2021-08-31 14:35:54 -07:00
eltank 9265181930 Warn about turrets using recycled ammo by default 2021-08-31 14:35:54 -07:00
eltank 2f7f0ce62c De-flake the vehicle turret test 2021-08-31 14:35:54 -07:00
David Seguin 1d4b834a6d Allow installing multiple power storage bionics from debug 2021-08-31 15:16:40 -04:00
cainiaowu 1f4b55ff8b remove pipebomb from obsolete 2021-08-31 18:07:24 +08:00
Angela Graves 0447a46bed Merge pull request #51247 from curstwist/more-minor-adjustments
more minor map adjustments
2021-08-31 04:20:31 -05:00
Binrui Dong 8cf1ac548b Phase out Windows path encoding conversion 2021-08-31 13:06:46 +08:00
Saicchi 42c894905f extract_json_strings update 2021-08-31 00:09:00 -03:00
Ramza13 d34c64892d Added debug option to print vars to file 2021-08-30 21:23:55 -04:00
curstwist c16998a8ed more minor map adjustments 2021-08-30 20:46:45 -04:00
curstwist 91ab3fc8d4 Minor adjustments for Trans-Coast logisitcs (#51238)
* minor adjustments

* another adjustment

it can always be clearer!
2021-08-30 12:20:21 -07:00
Menschheit d19fbab6e0 In progress disassembly follows the same rule as making a new one (#51221)
* same rule for in progress disassebmly

* Dont spill ebooks while disassembling e-ink
2021-08-30 12:19:54 -07:00
Zhilkin Serg 5cb2655590 Rename ter_bitflags to ter_furn_flag and make it class enum 2021-08-30 22:14:22 +03:00
Zhilkin Serg db02ff05da More tflags instead of strings 2021-08-30 22:14:07 +03:00
Kevin Granade 515f804b4a Merge pull request #51231 from ZhilkinSerg/fix-json-cleanup-terrain-flags
Fix json cleanup terrain flags
2021-08-30 12:06:47 -07:00
U-N\N bfda7f7464 allow set_mapgen_update with single talker 2021-08-30 20:59:32 +02:00
Angela Graves 3822aebc2f Merge pull request #51110 from Paprika-H/patch-2
Change cost and materials of fursuits
2021-08-30 09:06:38 -05:00
Zhilkin Serg 521ca77e2a Remove DECONSTRUCT flag 2021-08-30 11:12:22 +03:00
Zhilkin Serg 7574389245 Change BLOCKS_DOOR flag to BLOCKSDOOR 2021-08-30 11:08:44 +03:00
Zhilkin Serg 4386e8bcc7 Remove BASHABLE flag 2021-08-30 11:05:54 +03:00
Zhilkin Serg b3e61f1544 Remove GROWTH_SEED flag 2021-08-30 10:50:15 +03:00
Zhilkin Serg a90c20846c Remove NONFLAMMABLE flag 2021-08-30 10:35:30 +03:00
eltank 5aff6c266b Revert "Dont redraw if vehicle doesn't move" (#51226)
The has_moved condition is coded incorrectly
2021-08-30 00:32:46 -07:00
Brambor 75b5533434 fix: inedible MELTS while FROZEN (milkshake) (#51227) 2021-08-30 00:31:34 -07:00
Alexander Scherer 7e31d6ce1e Fix spilling liquids 2021-08-30 08:47:28 +02:00
Kevin Granade bc1d00cf4b More field spread sanity checks (#51212)
* More field spread sanity checks

* Set weather to clear in fire spread test
2021-08-29 22:19:08 -07:00
Kevin Granade 85a9936e7c Merge pull request #51167 from Night-Pryanik/wyrms-mine-jsonify
Wyrms mine jsonify
2021-08-29 19:45:09 -07:00
Roy Berube 68a7601e9c Ice cream is edible frozen (#51220) 2021-08-29 19:04:43 -07:00
Roy Berube d55bf8b0d9 Allow construction to find materials while standing on stairs (#51216) 2021-08-29 19:02:29 -07:00
Kevin Granade d3500bf623 Merge pull request #51215 from wapcaplet/w-character-to-display
Refactor color-selection fuctions out of Character into display
2021-08-29 19:01:21 -07:00
Roy Berube 37972a4f5f Improved active indicator for atomic lamps (#51197) 2021-08-29 18:40:07 -07:00
Menschheit f489b00e86 Fixes to disassembly zone (#51186)
* disassembly zone fix

* typo in json

* Remove occupied tiles from destination

* serialize activity_overide: leave item_location alone
2021-08-29 18:38:57 -07:00
Roy Berube 620427145d Make frozen berries edible frozen (#51181) 2021-08-29 18:37:57 -07:00
Menschheit df63d54eac ammo consumption fix (#51165) 2021-08-29 18:32:07 -07:00
John Candlebury 5bce92e090 Hub 01 spies on its mercenaries (#51161)
Co-authored-by: Anton Burmistrov <Night_Pryanik@mail.ru>
Co-authored-by: actual-nh <74678550+actual-nh@users.noreply.github.com>
Co-authored-by: chaohedgehogs <46550455+chaohedgehogs@users.noreply.github.com>
2021-08-29 18:16:27 -07:00
Eric 779254c6d3 Add effect intensity and bodypart (#51143) 2021-08-29 18:15:38 -07:00
chaohedgehogs 4b793ad613 Coins and banknotes overhaul (#51077)
* dollar bills given currency strap and bundle counterparts, money_bundle obsoleted, bills moved to currency.json

Sources:
- https://www.frbservices.org/resources/financial-services/cash/depositing-ordering/visual-reference-guide.html
- https://en.wikipedia.org/wiki/Currency_strap

* coins added, rubber_band added, currency strap/bundle crafting recipes added, all instances of money_bundle replaced

* Update currency.json

* Update string.json

* merch straps/bundles added

* atms and slot machines drop money when smashed

* Update terrain-manufactured.json

* vending machines now drop coins when destroyed

* coin purse container can now hold all new coin types

* new coins added to itemgroup spawns

* Update private_resort_item_groups.json

* fixed 2 bugs

* Update other.json

* Update currency.json

* strap/bundle crafting requirement fixed

* Update effect.cpp

* atm smash items listed

* Update terrain-manufactured.json

* gold coin added, item groups added

* Update furniture-tools.json

* removed atm explosion

* linted two itemgroup locations

* Update effect.cpp

* added missing double space to currency description

* Update currency.json

* Update currency.json

* Coins/Banknotes converted to ammo_type, CURRENCY item category added, coin wrapper added

* Update generic_guns_validator.py

* OLD_CURRENCY flag added to coins/banknotes (including straps/bundles), magiclysm denarii now ammo_type

Note: ATMs can accept straps/bundles irl, provided they conform with official standards regarding contents (which these do).

* Update currency.json

* Update currency.json

* wallet drop rate for regular zombies increased from 10% to 30%
2021-08-29 18:03:13 -07:00
Saicchi 3a567393c1 speed description checks 2021-08-29 20:11:21 -03:00
Saicchi 410fa6f310 jsonize speed description 2021-08-29 20:11:21 -03:00
Saicchi dc38ffa722 speed description loading 2021-08-29 20:11:21 -03:00
Saicchi 8ddf052e07 speed description documentation 2021-08-29 20:07:19 -03:00
Zhilkin Serg fda3f04eb5 Merge pull request #51182 from wapcaplet/w-inspektor-widget
Add widgets for safe mode, lighting, wind, mood, moon, temperature and more
2021-08-30 01:23:24 +03:00
ferociousdork c43b21fd5a Fix horde indicators showing in elements outside of sidebar overmap (#51199)
* Fix horde rendering on sidebar overmap

* Removed duplicate definition
2021-08-30 01:22:14 +03:00
Zhilkin Serg 06456f383d Merge pull request #51196 from int-ua/patch-2
improve tileset gender prefix docs a bit
2021-08-30 01:21:33 +03:00
Putnam3145 68bf4498cf A few microoptimizations (#51205)
* Cache a pair of string literals

* Reserve capacity for item processing vector
2021-08-30 01:20:09 +03:00
Eric Pierce 4798822482 Refactor limb_color from Character to display 2021-08-29 15:47:05 -06:00
Eric Pierce be53733366 Refactor encumb_color from Character to display 2021-08-29 15:25:57 -06:00
Eric Pierce e20f7a6f78 Refactor bodytemp_color from Character to display 2021-08-29 15:19:52 -06:00
RandDenner 61aaee6a0d Change clothing shop cart generation to be inside the store (#51178)
Makes carts check for in-store generation instead of on the grass outside.

Made minor adjustments to locations of plants and mannequins (and a wall) to prevent carts from generating in weird obstructed corners.
2021-08-29 14:16:22 -07:00
actual-nh 60cfb0aa33 Make monster::heal actually return amount healed (#51183)
* Make monster::heal actually return amount healed

It is assumed in multiple places, and stated in monster.h, that the
monster::heal function returns the amount healed. Now it actually does.
This came about via #17452, which was to prevent heal from returning
a negative number; I see no way that it now can, but just in case I
have put in a std::max( 0, hp - old_hp ).

* Make recovering speed in on_load more sensible.

As suggested by @eltank (not sure how to get github to properly credit
them, and would like to know), make the healing/recovering of speed in
monster::on_load() proportional to the monster's current hp, so that
a fully healed monster also fully heals speed. Admittedly, it is
rather weird that healing speed doesn't seem to take place elsewhere,
as in while in the reality bubble.

* Follow @eltank's advice re not being paranoid

There really shouldn't be any way that it'll return negative now, and
it would probably be better to have some chance of realizing this
(via the negative return) if it did.

* Round up proportional healing of speed; typo fix

This probably doesn't matter, but make sure there's at least a bit of
healing of speed each time. Also fix one typo (`type-> speed`).

* Apply suggestions from code review

Float/int conversions strike again!

Co-authored-by: eltank <8000047+eltank@users.noreply.github.com>

* Fix error (likely from Github).

Applying a change suggested by @eltank on Github does not appear to
have gone correctly. Fixing.

Co-authored-by: actual-nh <actual-nh@users.noreply.github.com>
Co-authored-by: eltank <8000047+eltank@users.noreply.github.com>
2021-08-29 14:11:58 -07:00
Kevin Granade 83b4e0657d Merge pull request #51193 from ZhilkinSerg/perf-terrain-bitset-flags
Use ter_bitflags instead of flag strings
2021-08-29 14:09:01 -07:00
Kevin Granade ba0c50d2e1 Merge pull request #51194 from eltank/fix_despawn_monster
Fix zombie insta-healing after reviving
2021-08-29 14:01:32 -07:00
curstwist 3ad3a2ed59 fix lab EOC ID (#51201) 2021-08-29 13:58:18 -07:00
Hirmuolio 838c9326ad Update medium and heavy batteries to use flags for magazine compatibility (#51210) 2021-08-29 13:55:28 -07:00
Eric Pierce 77604c6149 Alphabetize text widget_vars 2021-08-29 13:19:15 -06:00
Eric Pierce cae1f54ffb widget: Add weary_malus_text var for weariness malus
Factor out weary_malus_text_color in panels in support of this var
2021-08-29 13:11:22 -06:00
Eric Pierce 5524f99eda widget: Add moon_phase_text var for moon phase 2021-08-29 12:55:12 -06:00
Eric Pierce 008f1707d9 widget: Add env_temp_text for environment temperature 2021-08-29 12:16:32 -06:00
Eric Pierce 317a78bed1 widget: Add body_temp_text for sensed body heat 2021-08-29 12:16:32 -06:00
Eric Pierce a7509c43ac widget: Add mood_text for morale emote/smiley 2021-08-29 12:16:32 -06:00
Eric Pierce 7dc10f82c6 widget: Add power_text for current bionic power 2021-08-29 12:16:32 -06:00
Eric Pierce 4f87956ba4 widget: Add activity_text var for activity level 2021-08-29 12:16:25 -06:00
Eric Pierce 91fe2bec81 Factor out display::date_string for season/day 2021-08-29 11:02:59 -06:00
Eric Pierce c7b8f1e868 widget: Add time_text var for exact or approx time 2021-08-29 10:47:43 -06:00
Eric Pierce cd315365d8 Factor out display::time_string for exact/approx time 2021-08-29 10:46:00 -06:00
Eric Pierce e8c5442eed widget: Add wind_text var for wind level/direction 2021-08-29 10:18:32 -06:00
Eric Pierce 271d68c9a8 Factor out display::wind_text_color in panels 2021-08-29 10:18:32 -06:00
Eric Pierce f31b90627c widget: Add lighting_text var to show light level 2021-08-29 10:18:32 -06:00
Eric Pierce 8cdd3c1c89 widget: Add safe_mode_text var for safe mode On/Off 2021-08-29 10:18:32 -06:00
Eric Pierce a11a0c23be Factor out display::safe_mode_text_color
Combine existing safe_color function with logic from panel functions to
show safe mode as "SAFE" or empty, or "On" or "Off".
2021-08-29 10:18:32 -06:00
Salty Panda bd4b628b1d Update src/relic.cpp 2021-08-29 17:28:32 +02:00
Salty Panda 8955e8a2dc feat: add more variants 2021-08-29 17:13:56 +02:00
Zhilkin Serg 506dd5b566 Merge pull request #51177 from kevingranade/test-user-dir
Fix macos test crashes
2021-08-29 17:22:28 +03:00
Zhilkin Serg 678c5f93df Merge pull request #51192 from kevingranade/field_fail_check
Sanity check for field spread test
2021-08-29 17:20:32 +03:00
Salty Panda 4a3272cfd9 feat: add spawns for magic_knife_bag 2021-08-29 16:07:14 +02:00
eltank 22d023edd3 Make default monster hp recovery scale with max hp 2021-08-29 03:51:35 -07:00
Alexander Scherer eeec5a1568 Change drop msgs to be more immersive 2021-08-29 12:23:23 +02:00
Alexander Scherer b47f05f4e8 Add npc menu entry for trading 2021-08-29 12:17:30 +02:00
Alexander Scherer 021bf0b60e Change nothing can be dropped to info msg type 2021-08-29 12:02:23 +02:00
Zhilkin Serg ab2e056b33 Add set_flag function using ter_bitflags parameter 2021-08-29 12:59:31 +03:00
Zhilkin Serg 128a0e934e Use ter_bitflags instead of flag strings 2021-08-29 12:59:31 +03:00
Alexander Scherer b06f618d07 Add confirmation msg and a msg if nothing can be dropped 2021-08-29 11:59:19 +02:00
Serhiy Zahoriya 6bd1ea5667 improve tileset gender prefix docs a bit 2021-08-29 12:20:51 +03:00
Venera3 2470543738 Add some lab monsters (#50820) 2021-08-29 01:45:42 -07:00
Kevin Granade 7f73bd02fa Merge pull request #51007 from eltank/practice_recipes
Practice recipes
2021-08-29 00:58:19 -07:00
eltank 8a3e7cf51a Optimize game::revive_corpse 2021-08-29 00:54:32 -07:00
eltank 94b213150a Tripoint cleanup in overmapbuffer::despawn_monster
Refactoring, simpler code
2021-08-29 00:39:14 -07:00
eltank 9941290ab1 Fix bug in storing monster's last_updated time when despawning
Must call monster::on_unload() before overmapbuffer::despawn_monster(),
not after
2021-08-29 00:37:12 -07:00
Kevin Granade fff078ac1d Sanity check for field spread test 2021-08-28 23:15:47 -07:00
RandDenner f2883bbff1 Update mil_base_z0.json in No Hope mod to fix issues from obsolete items and update to match changes to current base version (#51150)
* Update mil_base_z0.json

Fixes file to match changes to original, fixing obsolete item entries and adding updated item data where required.

* Update mil_base_z0.json

Upon consultation with the author, vehicles that are normally status 0 (perfect condition) are now status -1 (worn but likely operable).
2021-08-28 23:08:29 -07:00
Saicchi a01de7321b prevent invalid effect from being applied in debug (#51164)
Co-authored-by: Saicchi <Saicchi@users.noreply.github.com>
2021-08-28 23:07:39 -07:00
Angela Graves 37c5fd26cd Merge pull request #50991 from Night-Pryanik/tutorial
Tutorial jsonify and rework
2021-08-29 00:40:54 -05:00
Alexander Scherer ebf353a6b2 Fix making given items favorites automatically 2021-08-29 07:38:38 +02:00
Alexander Scherer 9397acc9f5 Add some requested changes and make given items favorites 2021-08-29 07:38:38 +02:00
Alexander Scherer 5af1011881 Change dialog text to be more friendly 2021-08-29 07:38:38 +02:00
Alexander Scherer bcb5d01bc3 Move variable back to a narrower scope 2021-08-29 07:38:38 +02:00
Alexander Scherer 1b0cff4b69 Change variable to be inlined 2021-08-29 07:38:38 +02:00
Alexander Scherer c7e20d516c Fix gentrification in function description 2021-08-29 07:38:38 +02:00
Alexander Scherer 749fc6a9e9 Extend documentation of drop_activity_actor 2021-08-29 07:38:38 +02:00
Alexander Scherer 4449d57ddd Add some code comments and change dialog text 2021-08-29 07:38:38 +02:00
Alexander Scherer f1d8b7f41b Add some documentation to the drop_activity_actor 2021-08-29 07:38:38 +02:00
Alexander Scherer 3eac59c595 Fix item drop location 2021-08-29 07:38:38 +02:00
Alexander Scherer 1eee0e183b Extend npc trade windows description to include favoriting 2021-08-29 07:38:38 +02:00
Alexander Scherer 8e1bf95b28 Add NPC dialog option to drop non favorite items in place 2021-08-29 07:38:38 +02:00
Alexander Scherer caa9573e34 Add the ability to mark items as favorite in NPC trade UI 2021-08-29 07:38:38 +02:00
Kevin Granade 2011839917 Merge pull request #51160 from Saicchi/boltcutfix
Boltcut iuse change and boltcutting wire fence
2021-08-28 21:04:23 -07:00
Kevin Granade c397e88bbd Merge pull request #51134 from wapcaplet/w-activity-text-color
Refactor activity and weariness display functions
2021-08-28 21:00:37 -07:00
Kevin Granade 2505d09812 Fix toc generator (#51180)
Add a token that can properly open a PR.
Add a summary entry to the PR description.
2021-08-28 20:56:00 -07:00
Kevin Granade 982d06df98 Specify a different user_dir for each test invocation 2021-08-28 20:48:51 -07:00
eltank 0d661158e3 Define some practice recipes 2021-08-28 20:33:02 -07:00
eltank 4657e08ef8 Infrastructure for practice recipes 2021-08-28 20:33:01 -07:00
eltank f3c203ac8e Add recipe categories for practice 2021-08-28 20:29:12 -07:00
eltank cafe8e2c43 Add "practice" to extract_json_strings.py 2021-08-28 20:29:11 -07:00
eltank 58d2d6f17c Minor clean up in recipe.h
- rename assist_proficiencies() to used_proficiencies()
- add some comments
- changed required_proficiencies() and used_proficiencies() to return
vector instead of set as a slight optimization
2021-08-28 20:29:11 -07:00
eltank 866f88e619 Simplify Character::has_recipe and fix message about crafting reference 2021-08-28 20:29:11 -07:00
eltank b7b21e45d1 Add "Known by:" to recipe display
For recipes that you only know about because a helper NPC has it
memorized
2021-08-28 20:29:10 -07:00
Kevin Granade 84eef8465e Routine i18n updates on 28 August 2021 (#51144)
Co-authored-by: Brett Dong (BOT) <brett.browning.dong@gmail.com>
2021-08-28 20:17:07 -07:00
Eric Pierce 9027594339 Factor out draw_weariness_partial
All four weariness-drawing methods were very similar, having only minor
tweaks between layouts. This commit factors out the common rendering
code into `draw_weariness_partial`, and invokes it from the others.
2021-08-28 20:29:02 -06:00
Eric Pierce b016cb48aa Factor out display::activity_malus_str 2021-08-28 20:29:02 -06:00
Eric Pierce c03f054a9b Refactor all panels to use activity_text_color 2021-08-28 20:29:02 -06:00
Eric Pierce 39874a4ac8 Add display::activity_text_color 2021-08-28 20:29:02 -06:00
Kevin Granade 0fea39cf7f Merge pull request #51155 from curstwist/lab-spawn-support
Lab spawn support
2021-08-28 19:21:13 -07:00
eltank 775bf6be4d When setting activity to ACT_MIGRATION_CANCEL also set actor (#51147) 2021-08-28 19:15:14 -07:00
Kevin Granade 0ce5ab0635 Merge pull request #51145 from wapcaplet/w-panel-display-refactor
Refactor panel string and colorization methods into display namespace
2021-08-28 19:14:20 -07:00
Saicchi 1eea751aa2 Allow changing player name (#51142)
* play_name variable and getter

* menu to change name and gender
only allow changing gender and name of npc if debug

* change usable of name into get_name() when possible

* play_name into cata::optional

Co-authored-by: Saicchi <Saicchi@users.noreply.github.com>
2021-08-28 19:11:10 -07:00
jim-huynh c37b8c2a8a Make tunneling viable again. Make downward staircases less likely to collapse stranding the player. (#51114)
* Switch check to check the surrounding points rather than the current point multiple times.  Adjust wall support value to be more supportive for higher  up floors.  Make stairs up support roofs because the connected downstairs is the roof being supported.
Co-authored-by: Anton Burmistrov <Night_Pryanik@mail.ru>
2021-08-28 19:08:20 -07:00
Tamiore 66f8ff8599 Add tool battery mount for vehicles (reverse battery compartment mod). (#50217)
* handheld batteries for vehicle
Co-authored-by: Kevin Granade <kevin.granade@gmail.com>
2021-08-28 18:57:35 -07:00
Curtis Merrill 284e9c5b12 Merge pull request #51163 from Maddremor/magiclysm-metal-snippet
[Magiclysm]Added snippet for orichalcum lore
2021-08-28 21:00:13 -04:00
akrieger dae153eac3 Fix spammy warning in string_formatter.h when using clang on Windows. (#51136) 2021-08-28 16:29:26 -07:00
eltank fbafd9bc80 Update hallucinatory level-up messages (#51135) 2021-08-28 16:28:32 -07:00
Zhilkin Serg 9f2f1dc163 Use string_id_reader instead of auto_flags_reader (#51116) 2021-08-28 16:27:30 -07:00
Roy Berube 9251d76972 Unseal and handle container when feeding a pet (#51115) 2021-08-28 16:26:23 -07:00
curstwist a8d947aefe fix test error 2021-08-28 19:13:15 -04:00
Hirmuolio 85414d7ee8 Allow flag limits for magazine well compatibility (#51027) 2021-08-28 15:59:23 -07:00
mqrause b47b8d59e0 pass container to avoid through to item_contents::best_pocket (#50992)
Co-authored-by: mqrause <martin@qrause.de>
2021-08-28 15:56:29 -07:00
Eric Pierce 08a9c8051b Rename functions to _text_color for consistency 2021-08-28 16:55:32 -06:00
Eric Pierce ce1e218b9b Swap pairs for str/dex/int/per to (string, color) 2021-08-28 16:55:32 -06:00
Eric Pierce f1889c2879 Swap pair for morale_face_color to (string, color) 2021-08-28 16:55:32 -06:00
Eric Pierce 020ab82aba Swap pair for temp_delta_arrows to (string, color) 2021-08-28 16:55:32 -06:00
Eric Pierce 0151a4876d Swap pair for mana_stat to (string, color) 2021-08-28 16:55:32 -06:00
Eric Pierce 0c1ea71ae6 Swap pair for power_stat to (string, color) 2021-08-28 16:55:32 -06:00
Eric Pierce f30544b105 Swap pair for temp_stat to (string, color) 2021-08-28 16:55:32 -06:00
Eric Pierce 1168f1c163 Refactor two functions into move_mode_text_color 2021-08-28 16:55:32 -06:00
Eric Pierce ba22008989 Refactor morale display; use Character references 2021-08-28 16:55:32 -06:00
Eric Pierce d4d087c189 Move text and color functions to display namespace 2021-08-28 16:55:32 -06:00
Kevin Granade f29d9a085f Merge pull request #50945 from wapcaplet/w-desc-widgets
Add description widgets for pain, thirst, fatigue, weight, hunger and more
2021-08-28 15:51:40 -07:00
curstwist 726391174b adjustments to badge spawn chance
these were too common for chance/lucky drops.
2021-08-28 17:43:43 -04:00
David Seguin 167951062e Prevent inserting an item with NO_UNWIELD into a container (#51096) 2021-08-28 13:37:44 -07:00
Zukulini b6e761746a Explosive balancing and fixing. (#50873)
* Explosive balancing and fixing.

Obsoleted recipes go into `data/json/recipes/recipe_obsolete.json`.

Co-authored-by: RenechCDDA <84619419+RenechCDDA@users.noreply.github.com>
2021-08-28 13:37:11 -07:00
Eric Pierce 100aabd7f6 Document some "text" variables for widgets 2021-08-28 14:32:56 -06:00
Anton Burmistrov 837051d29f Update data/json/monster_factions.json
Co-authored-by: actual-nh <74678550+actual-nh@users.noreply.github.com>
2021-08-28 23:29:46 +04:00
Eric Pierce 8ddc7b9dfe widget: Add place_text var to show place name 2021-08-28 13:06:33 -06:00
Eric Pierce 5f9618a106 widget: Add date_text var to show current date 2021-08-28 13:06:26 -06:00
Eric Pierce c0ed8029a3 widget: Add wielding_text and style_text vars
For showing wielded weapon and martial arts style
2021-08-28 13:06:19 -06:00
Eric Pierce 0d3c2ab991 widget: Add weariness_text variable
Also add a weariness_text_color wrapper accepting a Character reference,
to simplify usage, and provide a pair( std::string, nc_color ) response
like its kin.
2021-08-28 13:06:19 -06:00
Eric Pierce c99b020410 widget: Put padding after ": " instead of after label
Gives cleaner-looking results, especially when value is empty
2021-08-28 13:06:19 -06:00
Eric Pierce cb028aa3c8 widget: Rename style "phrase" to "text"
The word "phrase" is a little awkward; "text" fits better conceptually
with "number" and "graph".

Include comments on the intention of text functions vs normal widgets.
2021-08-28 13:06:14 -06:00
Zhilkin Serg 300f7a3890 Remove older savegame version migration (#51151) 2021-08-28 12:04:51 -07:00
Eric Pierce f7c4d3a4c3 widget: pain, thirst, fatigue, weight, hunger_desc
Add phrase widgets which may be added to custom sidebar layouts or to
the root layout widget.
2021-08-28 13:03:02 -06:00
Eric Pierce a14c16c5af widget: Add color text function support
Add several `xx_text` widget variables associated with "text color
functions", which are functions in the panels.h `display` namespace
returning a (text, color) pair for the description strings of the pain,
hunger, thirst, fatigue, and weight attributes.
2021-08-28 13:03:02 -06:00
Brambor a323c60ae0 deduplicate_quality (#51086) 2021-08-28 11:40:32 -07:00
Amans Tofu 8b7620f2fd fix clerical errors about Demihuman (#51100)
* fix clerical errors

* Fix the problem caused by incorrect inheritance flag

* Cancel the transaction value of raw_tainted_fur and prevent NPC from buying it
2021-08-28 11:39:05 -07:00
Anton Burmistrov 513aefb3b2 Removed hardcoded mapgen of "wyrms" finale and random spawning of dark wyrms in the tunnels 2021-08-28 22:28:41 +04:00
Anton Burmistrov 9d32339899 Reworked examine function so player could take the petrified eye only through the examine
Also made it so dark wyrms now spawn near the orifices, not out of thin air near the player
2021-08-28 22:27:08 +04:00
Anton Burmistrov b17ee43a40 Added new jsonified version of "wyrms" mine tunnels and finale 2021-08-28 22:24:16 +04:00
Anton Burmistrov 278080717f Added orifice terrain so dark wyrms should crawl from them when the time comes 2021-08-28 22:22:52 +04:00
Anton Burmistrov 6753a7ca10 Added a new monster faction and assigned it to dark wyrms so they don't fight each other 2021-08-28 22:21:22 +04:00
Anton Burmistrov edcbe355fe Made wyrm pedestal sealed so players couldn't pickup petrified eye by using g or AIM 2021-08-28 22:20:44 +04:00
ti360gh 5260b4a5ec The age and height of an NPC now can be read from json. (#50954) 2021-08-28 11:13:41 -07:00
Maddremor 75dd8b9f45 Added double spacing.
Co-authored-by: Curtis Merrill <curtis.r.merrill@gmail.com>
2021-08-28 19:48:05 +02:00
Lukas d1db69af69 Added snippet for orichalcum lore 2021-08-28 19:31:24 +02:00
Zhilkin Serg 23c2fb4d33 Merge pull request #51157 from BrettDong/android-mk
Add src/third-party to header path after CLEAR_VARS in Android.mk
2021-08-28 20:29:47 +03:00
Saicchi 69db61e169 wire fence boltcut 2021-08-28 13:41:01 -03:00
Saicchi c1e728a6f8 use jsonized iuse 2021-08-28 13:29:42 -03:00
Binrui Dong 4429d7c89d Add src/third-party to header path after CLEAR_VARS in Android.mk 2021-08-28 23:54:15 +08:00
curstwist d0ace3b97a add back in hunted_start
sorry, removed accidently.
2021-08-28 10:55:14 -04:00
Zhilkin Serg 74951016d3 Merge pull request #51152 from BrettDong/skill_level_map
Fix auto learnt recipes cache not updating
2021-08-28 17:31:35 +03:00
Zhilkin Serg 950885bc53 Merge pull request #51153 from BrettDong/creature_tracker
Instantiate non const variants of templated creature_tracker methods
2021-08-28 17:31:22 +03:00
Zhilkin Serg 673cf7cf27 Merge pull request #51154 from BrettDong/android-mk
Add src/third-party to Android build header search path
2021-08-28 17:31:11 +03:00
curstwist 0de650c12b add start scenarios and ID spawns for lab 2021-08-28 10:31:05 -04:00
Binrui Dong 42e69fe713 Add src/third-party to Android build header search path 2021-08-28 21:53:54 +08:00
Binrui Dong 34f5d866e2 Instantiate non const variants of templated creature_tracker::creature_at() 2021-08-28 21:38:30 +08:00
Binrui Dong 4cfeb725f3 Fix auto learnt recipes cache not updating 2021-08-28 21:14:47 +08:00
Angela Graves f209f182cf Merge pull request #51113 from Narwhal8/master
Added toast and some other food items made with toast
2021-08-28 03:07:12 -05:00
eltank 93029e1366 Exchange cash for e-cash at ATMs (#51090) 2021-08-28 00:57:23 -07:00
mqrause d642ef1616 scenario::permitted_professions ignores hobbies (#51091)
Co-authored-by: mqrause <martin@qrause.de>
2021-08-28 00:57:03 -07:00
occulti af9a5950a3 Add sling-ready grenades and Molotov (#50643) (#50655)
* Add sling ready grenade and Molotov
* Change sling to use pebble as ammo rather than rock
2021-08-28 00:56:42 -07:00
Kevin Granade 2be3171646 Merge pull request #51084 from kevingranade/prune-game-h
Prune game h
2021-08-27 19:53:46 -07:00
Ofek 1d2e18f15d Avoid calculating volume & weight when not needed (#51132) 2021-08-27 19:52:37 -07:00
Kevin Granade aaa0360557 Merge pull request #51129 from Farseer2/bugfix/falling-vehicle
Fix infinitely falling vehicle
2021-08-27 19:44:32 -07:00
Kevin Granade 9ccd509fef Merge pull request #51118 from eltank/fix_turrets_test
Fix and re-enable vehicle_turrets_test
2021-08-27 19:39:29 -07:00
Joshua Chin 1fc64de42e Rename variable that incorrectly reference biological sex (#51088)
* Rename pronoun_sex to pronoun_gender
2021-08-27 17:28:05 -07:00
Kevin Granade 412ad1468b Merge pull request #51075 from Joshua-Chin/boil-water
* Factor out shared temperature flag code.
* Convert water into clean water if it gets to boiling temperature
2021-08-27 17:03:45 -07:00
satheon49 415b3027fb NPCs respect dangerous fields during pathfinding (#50548)
* path around dangerous field effects (#50206)
* NPCs avoid pathing through dangerous fields
2021-08-27 16:45:21 -07:00
occulti 8fa6df2a0a Added ability to uncraft and change wheels, added in tire armor (#48820) (#50027)
Co-authored-by: Woe <sebbloomfieldcomedy@htomail.co.uk>
Co-authored-by: Jianxiang Wang (王健翔) <qrox@sina.com>
Co-authored-by: Kevin Granade <kevin.granade@gmail.com>
2021-08-27 16:44:50 -07:00
ZeroInternalReflection b9db2f4dce Resolve a bug in partial stack dropping/using and unify ui behaviour (#51035)
* Resolve a bug in partial stack dropping/using and unify ui behaviour

When 'd'ropping part of a stack of items, or selecting part of a stack
for an action such as washing items, any previous selection was not
properly cleared in ::set_chosen_count().  So, the player might mark
3 items in a stack for washing, then change their mind and only was 2.
The UI would be partially (but not completely) updated, but it would
still wash all 3 items.  By updating ::set_chosen_count() and moving it
to inventory_multiselector, ui behaviour is made more consistent
between dropping/using items, and this bug is resolved in both menus.

Resolves #50431

Co-authored-by: mqrause <38702195+mqrause@users.noreply.github.com>
2021-08-27 16:44:02 -07:00
ferociousdork ae7a9e98f7 Fix recharging station working when not activated. Fixes #50980 (#50983) 2021-08-27 16:29:34 -07:00
Kevin Granade 743f4139d3 Merge pull request #50972 from wapcaplet/w-char-panel-refactor
Move display-related string colorization functions out of Character class
2021-08-27 16:27:38 -07:00
Roy Berube aa58aadfa9 Spill all contents when breaking wielded item. (#50970) 2021-08-27 16:26:19 -07:00
Xpyder 6fffaa425a Update veh_interact.cpp (#50968) 2021-08-27 16:25:35 -07:00
Roy Berube 628e493a4e Turret fake NPC needs a body or gets an aim debuff (#50967) 2021-08-27 16:22:58 -07:00
GalacticApple 5eb28c6bb2 New Numb Mutation (#50855) 2021-08-27 16:17:02 -07:00
Kevin Granade 95975cb10d Merge pull request #50624 from akrieger/ghc_filesystem
Add gulrak filesystem, a c++17 compliant std::filesystem polyfill.
2021-08-27 15:42:33 -07:00
Menschheit 7f713d6a3b Add disassembly zone (#50517) 2021-08-27 15:40:30 -07:00
Dru 8fd748dbd2 Fix for selecting vehicle parts w/o assigned keys (#50457) 2021-08-27 15:26:04 -07:00
psuedolet a487c0fbd1 Regenerating creatures don't regen while onfire (#50439)
* Added moddable regeneration-modifers system for monsters

Co-authored-by: mrpal <parchiele@gmail.com>
Co-authored-by: actual-nh <74678550+actual-nh@users.noreply.github.com>
Co-authored-by: Kevin Granade <kevin.granade@gmail.com>
2021-08-27 15:03:25 -07:00
actual-nh 6126e085bd Remove still-left PATH_AVOID_DANGER_2 (#50343)
* Remove most still-left PATH_AVOID_DANGER_2

See #48588.

* DKS alien robot pathing

Extended max_dist for all to 30. Also gave scidrone (only one with PATH_AVOID_DANGER_#) "avoid_traps" ("avoid_sharp" is less of a priority for a flying creature).

* Also update exodii (non-zomborg) cyborgs

These should not be dumb or exploitable any more than the others,
and I-am-Erk appears to be a bit distracted so may have missed about
this.

Co-authored-by: actual-nh <actual-nh@users.noreply.github.com>
2021-08-27 15:02:44 -07:00
Menschheit fdb84e2191 Bypass ammo check for attach/detach mods actions (#50319)
assign for every (item, use_action) an ammo factor

Astyle

Show correct ammo consumption value in Item Activation Menu

Deactivate flashlight does not cost charge
2021-08-27 14:55:54 -07:00
Kevin Granade 1a263c4d88 Merge pull request #50212 from Saicchi/weaponcategory
weapon_category for martial arts cross-mod compatibility
2021-08-27 14:53:44 -07:00
Steven Casper e49b6f7cc0 Display menu when reloaded item no longer fits in inventory (#50013)
* Display menu when reloaded item no longer fits in inventory

Based on the menu shown when attempting to pickup an item that can't fit
in your inventory.

A reloaded item that no longer fits in it's original pocket will be moved
to another pocket if one is available before prompting the user to
drop/wield it.
2021-08-27 14:45:22 -07:00
Ofek 902366d3c3 Dont redraw if vehicle doesn't move 2021-08-27 21:32:50 +03:00
Ofek 2b6e4e0917 Fix infinitely falling vehicle 2021-08-27 21:18:08 +03:00
Shangxin-07 f51d0f224f Deconstruction plus (#50518)
* Adding deconstruction plus to the base line game
* Fireplaces and rock walls can be deconstructed
To allow us to deconstruct all the things!
* Avoid consistency check failures
Co-authored-by: Kevin Granade <kevin.granade@gmail.com>
2021-08-27 11:15:45 -07:00
Narwhal8 abe81a281b Update bread.json
fixed PBJ toast name
2021-08-27 13:14:58 -04:00
Narwhal8 c340778956 Update bread.json
Fixed Peanut butter toast having jelly as a requirement
2021-08-27 13:13:07 -04:00
Kevin Granade 7153384225 Prune some unecessary game.h inclusions 2021-08-27 09:24:15 -07:00
Kevin Granade 64d1e44316 Move path strings to path_info 2021-08-27 09:24:15 -07:00
Kevin Granade 338e8a01b7 Remove dependency injection from fungal_effects. 2021-08-27 09:24:15 -07:00
Zhilkin Serg 767e1901d7 Merge pull request #51121 from jbytheway/fix_monster_group_mapgen_id
Small fix for mapgen parameters in monster group
2021-08-27 18:01:46 +03:00
Serhiy Zahoriya ada3852d39 Add missing large_ridden.png (#51123) 2021-08-27 07:26:13 -07:00
Joshua Chin 5bd50c1c58 Alphabetize constant declarations 2021-08-27 09:08:22 -04:00
John Bytheway 7ef7065e8a Check for member, not string, on monster group
The monster group in jmapgen_monster was theoretically supposed to be a
mapgen_value but the code only parsed it when it was a string.  Fix that
so other values can be used.
2021-08-27 08:33:07 -04:00
eltank 1c52b1ddf0 Fix and re-enable vehicle_turrets_test 2021-08-27 01:29:09 -07:00
eltank 3856bf44e8 Fix bugs in vehicle_part::ammo_set
- returning wrong amounts
- potential unsafe dereferencing
2021-08-27 00:57:14 -07:00
Zhilkin Serg 0ed3b770c6 Merge pull request #51103 from CleverRaven/vehicle_test
Fix vehicle test failures
2021-08-27 10:06:01 +03:00
Zhilkin Serg 1f102d36db Merge pull request #51076 from jbytheway/even_more_mapgen_values
Parametric mapgen part 8: Support mapgen parameters for more mapgen ids
2021-08-27 10:02:19 +03:00
Zhilkin Serg 45a7dbafbf Merge pull request #51073 from jbytheway/mapgen_switch
Parametric mapgen part 7: Add switch support for mapgen_value
2021-08-27 10:01:34 +03:00
Zhilkin Serg 331bbd2b14 Merge pull request #51072 from jbytheway/mapgen_debug_set_args
Parametric mapgen part 6: Debugging option to set mapgen args
2021-08-27 10:00:25 +03:00
John Candlebury b24704be63 General update for the Iron Safari Mission (#51071)
Co-authored-by: casswedson <58050969+casswedson@users.noreply.github.com>
2021-08-27 10:00:00 +03:00
Brambor 39fdfdf4a8 Info panel fixes and adding scrollbars (#50892) 2021-08-27 09:53:01 +03:00
Zhilkin Serg c73f94a61a Merge pull request #51083 from kevingranade/move-creature-at
Move critter_at() to creature_tracker
2021-08-27 09:47:16 +03:00
Angela Graves 308d1d2a30 Merge pull request #51105 from Fris0uman/tileset_time
Update Tilesets 2021-08-26
2021-08-27 01:43:19 -05:00
Menschheit 2eaf36b913 Crafting components display fix (#51055) 2021-08-26 22:11:14 -07:00
Jack 5e870a2612 Toast 2021-08-26 22:07:52 -04:00
Menschheit 7dfdf4ef1f Show npc knowledge level (#51054) 2021-08-26 18:51:08 -07:00
casswedson 8f83b548e7 Update bug_report.yaml (#51061)
co-authored-by: actual-nh <74678550+actual-nh@users.noreply.github.com>
2021-08-26 18:49:29 -07:00
Paprika-H 6d6775e461 Change cost and materials of fursuits
<!-- 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.

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
None
<!-- This section should consist of exactly one line, edit the one above.
Category must be one of these: Features, Content, Interface, Mods, Balance, Bugfixes, Performance, Infrastructure, Build, I18N. Or replace the whole line with just the word None for no changelog entry.
For more on the meaning of each category, see:
https://github.com/CleverRaven/Cataclysm-DDA/blob/master/doc/CHANGELOG_GUIDELINES.md
If approved and merged, your summary will be added to the project changelog:
https://github.com/CleverRaven/Cataclysm-DDA/blob/master/data/changelog.txt -->

#### Purpose of change

It makes the cost and material content of the wolf and dino suit more closely inline with reality. It bugged me that the wolf suit didn't have any cotton in it, and that the prices seemed a bit too high for what a fursuit is. 
<!-- With a few sentences, describe your reasons for making this change.  If it relates to an existing issue, you can link it with a # followed by the GitHub issue number, like #1234.  If your pull request *fully* resolves an issue, include the word "Fix" or "Fixes" before the issue number, like: Fixes #1234.
If there is no related issue, explain here what issue, feature, or other concern you are addressing.  If this is a bugfix, include steps to reproduce the original bug, so your fix can be verified. -->

#### Describe the solution

It changes the wolf suit materials to include faux fur and cotton, and changes the cost of both of them to a more realistic amount. 
<!-- How does the feature work, or how does this fix a bug?  The easier you make your solution to understand, the faster it can get merged. -->



#### Testing

I loaded the game up with the settings changed, and it worked without any bugs. 
<!-- Describe what steps you took to test that this PR resolved the bug or added the feature, and what tests you performed to make sure it didn't cause any regressions.  Also include testing suggestions for reviewers and maintainers. -->

#### Additional context

 https://cdn.discordapp.com/attachments/638239225803702283/880617361995083796/unknown.png Screenshot of the wolf suit.
<!-- Add any other context (such as mock-ups, proof of concepts or screenshots) about the feature or bugfix here. -->
2021-08-26 19:00:43 -06:00
SuddenEyePuncture a18e212715 More giant insects and bugs (#49170) 2021-08-26 17:41:56 -07:00
Narwhal8 8aa503dee1 Merge branch 'CleverRaven:master' into master 2021-08-26 19:02:59 -04:00
Fris0uman 4e55d296d1 Update Neodays 2021-08-26 2021-08-26 21:35:10 +02:00
Fris0uman ec6d123bd1 Update MSX 2021-08-26 2021-08-26 21:34:50 +02:00
Fris0uman c00315e63d Update Ultica 2021-08-26 2021-08-26 21:34:25 +02:00
Fris0uman f7fad7c799 Update Chibi Ultica 2021-08-26 2021-08-26 21:34:02 +02:00
Binrui Dong 6adbaf2ef1 Learn recipe in vehicle rig crafting test 2021-08-27 00:55:11 +08:00
Binrui Dong d6f3c8e51f Call clear_vehicles() before reset_players() in vehicle power test 2021-08-27 00:54:46 +08:00
Kevin Granade 362a1f2bd8 Move critter_at() to creature_tracker 2021-08-26 08:55:28 -07:00
Eric Pierce 63ab28edd9 Avoid character.h import with forward declaraction
Apply suggestion from code review.

Co-authored-by: Kevin Granade <kevin.granade@gmail.com>
2021-08-26 06:38:28 -06:00
Eric Pierce e7bdbe0bcb Move get_pain_description out of Character/Creature
Move these display-related functions into `panels.h|cpp` and rename to
`pain_text_color` to match their brethren.
2021-08-26 06:38:28 -06:00
Eric Pierce e89ad03489 Move get_fatigue_description out of Character
Relocate to `panels.h|cpp` and rename to `fatigue_text_color`.
2021-08-26 06:38:28 -06:00
Eric Pierce 5071ffca71 Move get_weight_* functions out of Character
Move these three functions out of `character.h|cpp` and into
`panels.h|cpp` with a `const Character` argument:

- get_weight_string => display::weight_string
- get_weight_description => display::weight_text_color
- get_weight_long_description => display::weight_long_description
2021-08-26 06:38:16 -06:00
Eric Pierce 1ab4c8f5c8 Move get_(hunger|thirst)_description out of Character
Move to `display` namespace in panels.h, and rename to hunger_text_color
and thirst_text_color, taking a Character instance as an argument.
2021-08-26 05:53:19 -06:00
Eric Pierce 3d2e5721f6 Move weariness_description to weariness_text_color 2021-08-26 05:53:19 -06:00
Eric Pierce 6da1b09ea0 Rename activity_level namespace to display
This namespace is presently only used as a wrapper to make
`activity_level_str` accessible to the crafting GUI, per #49026.

I intend to move several other descriptive functions defined in
`panels.h|cpp` into this namespace, making it a more general-purpose
collection of descriptive text and color translation methods. Hence, the
namespace is here renamed to `display`.
2021-08-26 05:53:19 -06:00
Angela Graves 20b0c03ae1 Merge pull request #51039 from Maleclypse/Add-Abbreviations/Translation-notes-to-AFS-readme-file
[Aftershock] Add abbreviations/translation notes to afs readme file
2021-08-26 00:18:47 -05:00
Fris0uman c1b8ce9036 Switch gender in game (#51079) 2021-08-25 19:26:10 -07:00
Kevin Granade 270f6c551b Merge pull request #51081 from Ramza13/final_blow
Ding dong the player class is dead!!
2021-08-25 17:46:53 -07:00
Maleclypse 2bc55d3e5e Update README.md 2021-08-25 19:21:20 -05:00
Joshua Chin 56aeab6277 rerun checks 2021-08-25 19:28:26 -04:00
Ramza13 b02c92148d Revert vcxproj settings
This reverts commit 56bb28b0ae.
2021-08-25 17:42:23 -04:00
Ramza13 56bb28b0ae Ding dong 2021-08-25 17:38:36 -04:00
Curtis Merrill b69ed91bd9 Merge pull request #50603 from GuardianDll/spell_overdrive
[Magiclysm] "Overdrive" attunement spell
2021-08-25 14:53:31 -04:00
Joshua Chin 437627b348 Fix clang tidy 2021-08-25 14:42:53 -04:00
Joshua Chin 3b2ea538e4 Convert water into clean water if it gets to boiling temperature 2021-08-25 14:12:46 -04:00
John Bytheway d91f287921 Migrate jmapgen_sealed_item to mapgen_value
Switch the furniture specified in jmapgen_sealed_item to be a
mapgen_value.
2021-08-25 13:43:45 -04:00
John Bytheway a4a2b55b2a Migrate jmapgen_monster to mapgen_values 2021-08-25 13:19:01 -04:00
Joshua Chin 39316c31f4 Factor out shared temperature flag code. 2021-08-25 13:18:21 -04:00
John Bytheway 6dc4101947 Migrate jmapgen_gaspump to mapgen_id
This entailed migrating the fuel type from a std::string to an itype_id.
2021-08-25 13:05:20 -04:00
John Bytheway 5399fa7a6e Document mapgen_value switch feature 2021-08-25 11:08:59 -04:00
John Bytheway edf22d2f87 Implement matching fences and gates for farm_dairy
Previously the dairy farm had to use only splitrail fence.  Now it can
use one of a number of different fence types, and gates to match.
2021-08-25 11:04:58 -04:00
John Bytheway 5726d81ec2 Add support for switch mapgen_value
Sometimes you want to choose one value in mapgen based on another.  For
example, to make a fence gate match its respective fence.  This switch
form of a mapgen value permits that.

To make this work, we had to allow any mapgen argument to be treated as
a string even when it was a more specific type (like a terrain id).
2021-08-25 11:04:58 -04:00
John Bytheway 4f8d474af2 Debugging option to set mapgen args
To aid with testing and debugging mapgen, add a new option to the
overmap UI (in debug mode) that allows you to manually set the arguments
for an overmap special.  Currently, only the overmap special-scoped
arguments may be set.
2021-08-25 11:00:54 -04:00
Ramza13 f1e4e1da17 Talkers 2021-08-25 10:44:15 -04:00
Angela Graves 2970a2f067 Merge pull request #50993 from Menschheit/Eink
Eink tablet adjustment
2021-08-25 00:09:10 -05:00
GuardianDll b0ce75bbca Update data/mods/Magiclysm/Spells/attunements/Overclocker.json
Co-authored-by: actual-nh <74678550+actual-nh@users.noreply.github.com>
2021-08-25 06:05:40 +02:00
Anton Burmistrov 610c4deb1f Let go of grabbing after fling (#51056)
* Let go of grab if flinging

* Removed excessive removal of effect for victim

Also moved removal of effect for flinger before the flinging.
2021-08-24 17:07:03 -07:00
Eric 46cbf3fbe6 Remove player variables (#51024)
* Remove player variables

* Update character.h
2021-08-24 16:59:31 -07:00
Hirmuolio 007c3b8515 Get rid of unused flag context (#51031)
* DDA

* mods
2021-08-24 16:55:06 -07:00
Kevin Granade 184f53ffb5 Merge pull request #51050 from eltank/fix_autolearn
Fix autolearned recipe caching
2021-08-24 16:52:28 -07:00
Curtis Merrill 6e46ffcc84 minor grammatical adjustments 2021-08-24 19:39:37 -04:00
Malte Tammena 64c9f17d1d Apply patch by @andrei8l 2021-08-24 15:33:15 +02:00
eltank 809d992ef3 Add SkillLevelMap::has_same_levels_as and use it for cache comparison 2021-08-24 03:57:20 -07:00
eltank 5235731440 Fix SkillLevelMap::theoretical_recipe_requirements logic 2021-08-24 03:52:38 -07:00
Angela Graves f1e2e5a88f Merge pull request #51008 from ToxiClay/toiletries-spelling-fix
Correcting spelling mistake in "tolietries"
2021-08-24 05:49:11 -05:00
Zhilkin Serg c504c832b1 Fix return type of phase method (#51048) 2021-08-24 11:21:19 +03:00
Tamiore 8ecef8e990 Resolve plastic molding bottlenecks + add FILE 2 recipe (#50732) 2021-08-24 08:59:04 +03:00
Reed Schrier f233518ff6 Adjust Craft Times for XL Armor and Suits (#45932) 2021-08-24 08:58:25 +03:00
Joshua Chin f13386f9b4 Fix extra clothing warmth (#51036) 2021-08-24 08:55:41 +03:00
Zhilkin Serg 505361244a Merge pull request #51037 from AMurkin/make_lambda_get_ingredient_description
Rewrite getting calorie value of ingredients
2021-08-24 08:55:08 +03:00
Zhilkin Serg 3378344e58 Merge pull request #51034 from jbytheway/palette_override_order
Fix mapgen order for jmapgen_alternatively
2021-08-24 08:54:50 +03:00
Zhilkin Serg 50cd860981 Merge pull request #51028 from jbytheway/weighted_palettes
Parametric mapgen part 5: Allow palettes to be chosen from a weighted list
2021-08-24 08:54:26 +03:00
Zhilkin Serg e97061a8ed Merge pull request #50985 from BevapDin/txq
Fix recipe requiring charges of item "plastic mold".
2021-08-24 08:53:07 +03:00
Eric f4d587d31a Prevent using recurring effect_on_conditions for spells, items (#50913) 2021-08-24 08:52:10 +03:00
Menschheit 21583925bc fix siphon from and fill to the same tank (#50933) 2021-08-24 08:51:26 +03:00
Zhilkin Serg 64b4f0f4d5 Merge pull request #50910 from wapcaplet/w-more-widget-vars
Add morale, weariness, and bodypart wetness widget vars for custom sidebar
2021-08-24 08:50:14 +03:00
Zhilkin Serg dde49ac2c2 Merge pull request #50969 from kevingranade/private-weather
Make weather private in game, fetch weather_manager with the getter
2021-08-24 08:49:01 +03:00
Zhilkin Serg c096f6591a Merge pull request #51021 from Menschheit/salvageable
Make the target of salvaged_into non-salvageable
2021-08-24 08:48:21 +03:00
Roy Berube 6a3195b411 No auto consume of alcohol during activity (#50973)
* No auto consume of alcohol during activity

* Allow alcoholics to indulge
2021-08-24 08:47:19 +03:00
Zhilkin Serg 50c92b9fbb Merge pull request #50978 from hexagonrecursion/obsolete
Ignore obsolete fields in character templates
2021-08-24 08:46:48 +03:00
Zhilkin Serg 7563236d4f Merge pull request #51025 from BrettDong/pull-tx
Correctly set token in pull translations workflow
2021-08-24 08:45:46 +03:00
Zhilkin Serg b927ffe414 Merge pull request #51038 from Venera3/mutantbitfix
Fix cooking mutant bits
2021-08-24 08:45:19 +03:00
Saicchi 23b3b0fc3f Jsonize Oxytorch Acitivty (#50133)
Co-authored-by: Anton Burmistrov <Night_Pryanik@mail.ru>
2021-08-24 08:43:25 +03:00
Zhilkin Serg c3205161ea Merge pull request #51041 from Qrox/interrupt
Fix activities based on neither time or speed not interruptible
2021-08-24 08:42:53 +03:00
Zhilkin Serg f85c00df5e Merge pull request #51010 from John-Candlebury/academy-wizard
Magiclysm: Spring appropriate clothing for academy wizards
2021-08-24 08:42:36 +03:00
Zhilkin Serg 91da236911 Merge pull request #51044 from John-Candlebury/afs-fix-plurals
Fix Aftershock Plurals
2021-08-24 08:42:16 +03:00
Zhilkin Serg f50b6be71e Merge pull request #51009 from Maleclypse/Remove-additional-water-from-AFS-mapgen
[Aftershock] Remove river and lake changes in AFS region settings
2021-08-24 08:42:00 +03:00
John Candlebury b5443bdb14 Fix Aftershock Plurals 2021-08-23 23:05:18 -06:00
Narwhal8 dbeca699de Merge branch 'CleverRaven:master' into master 2021-08-24 00:43:58 -04:00
Qrox 5342e1e62a Fix activities based on neither time or speed not interruptible 2021-08-24 10:13:52 +08:00
Maleclypse 22c53ec4e0 Uplift achievements 2021-08-23 19:10:55 -05:00
Maleclypse e44ef59f5d Nutriment Fix 2021-08-23 18:24:42 -05:00
Maleclypse 79b0ed8eed Abbreviations 2021-08-23 18:24:25 -05:00
Venera3 c18f569dc4 Fix 2021-08-23 22:30:29 +02:00
AMurkin e8e26b1cce Rewrite getting calorie value of ingredients
in Character::select_item_component
2021-08-23 23:01:00 +03:00
John Bytheway 5f599321e4 Convert mapgen phases to enum
Previously we were using an int for this, but an enum is more
self-documenting, and was suggested in the review of #50597.
2021-08-23 14:19:20 -04:00
John Bytheway dd429c504e Add missing overrides to jmapgen_alternatively
This wrapper mapgen helper wasn't forwarding most of the overridable
functions to its alternatives as it ought to have been.

Remedy that.

In particular, this fixes the phase() for such mapgen, which means that
top-level mapgen can override palette mapgen as it is supposed to.
2021-08-23 14:03:48 -04:00
John Bytheway 60d8062be4 Document mapgen palettes and how to use them
I wrote this documentation to explain how to use the new feature of
choosing from a weighted list of palettes.  However, it turns out that
palettes themselves had never been documented (at least, not in
MAPGEN.md), so I had to document them first.

Also added a note about using the overmap editor to see mapgen
arguments.
2021-08-23 13:23:08 -04:00
John Bytheway 74eec667b1 Use new weighted palette feature for cabin
Create a new cabin_abandoned palette and change one of the cabin
variants to use it half the time using the new palette choice feature.
The abandoned cabin has mostly trash as items, is overgrown, and might
have broken doors, windows, etc.
2021-08-23 13:23:08 -04:00
John Bytheway 53acdb9e3b Add support for weighted lists of palettes
Allow a reference to a palette in mapgen to be a mapgen_value.  That
means it can be a distribution.  That mapgen value is injected as the
default value of a new (internal) mapgen_parameter, and the value of
that parameter dictates the palette used.

When the palettes are added to the chunk of mapgen, every possible
palette's pieces of mapgen are added, but those for which the palette
might not be chosen are constrained by the mapgen value using a new
jmapgen_constrained feature.
2021-08-23 13:23:08 -04:00
John Bytheway 80292bdaf6 Show overmap_special args in overmap editor
To assist with debugging, it's helpful to be able to see the chosen
values for any given overmap_special in the overmap editor.
2021-08-23 13:23:07 -04:00
Binrui Dong 416230cf27 Correctly set token in pull translations workflow 2021-08-23 21:57:59 +08:00
U-N\N 7fbfa96728 Make salvaged into not salvageable 2021-08-23 14:01:57 +02:00
Eric 51520f6245 Move more player to character (#50971)
* player to character

* Update npc_talk_test.cpp
2021-08-23 00:58:51 -07:00
U-N\N eafd7b6d98 Use ebookread instead of Eread 2021-08-23 09:56:34 +02:00
eric limer b10f1203cc Adds "Hunted" scenario w/ tracking monster (#42669) 2021-08-23 10:51:02 +03:00
Zhilkin Serg 1451cea4f3 Merge pull request #50966 from eltank/fix_generic_guns_migration
Fix replace-with-self migration data in mods
2021-08-23 10:48:02 +03:00
Zhilkin Serg 2e2833c790 Merge pull request #50984 from BrettDong/i18n
Routine i18n updates on 22 Aug 2021
2021-08-23 10:46:32 +03:00
Zhilkin Serg 9e553052fd Merge pull request #50989 from chaohedgehogs/blazer
Move blazer to outer clothing layer
2021-08-23 10:46:05 +03:00
Zhilkin Serg 41f98b0c60 Merge pull request #51002 from Ramza13/Disregard_eocs
Handle case where eocs are removed for updated save.
2021-08-23 10:45:36 +03:00
John Candlebury b94c76ab74 Aftershock: Plasma torches and Structural Imagers (#50997)
* Plasma torches and Structural Imagers

* Overwrite vanila basecamp recipes to use new toola

Most of these should be removed once in the exoplanet anyways.

* Style overwrites
2021-08-23 10:37:36 +03:00
actual-nh 1f461886de Positional parameter fixes for monster_attacks.json (#50995) 2021-08-23 10:37:19 +03:00
Fris0uman 8ab3e72f4b Update tilesets 2021-08-22 (#51004)
* Update MSX 2021-08-22

* Update Neodays 2021-08-22

* Update Ultica 2021-08-22

* Update Chibi Ultica 2021-08-22
2021-08-23 10:35:19 +03:00
Angela Graves 81bf353541 Merge pull request #50996 from perryprog/patch-2
De-fatten turkeys (reduce weight from 40 kg to 8 kg)
2021-08-23 00:55:57 -05:00
John Candlebury 8d4918a17a Spring appropriate clothing for academy wizards 2021-08-22 19:23:31 -06:00
Maleclypse 7e9fa642e9 Update region_settings.json 2021-08-22 19:54:59 -05:00
ToxiClay 7f9e1e0e27 Correcting spelling mistake in "tolietries" 2021-08-22 18:21:12 -04:00
U-N\N 9f6e3f9a5f Fix playing music 2021-08-22 23:10:28 +02:00
Ramza13 c1ae592e89 Update effect_on_condition.cpp 2021-08-22 16:03:11 -04:00
U-N\N 7b032ddd73 Astyle 2021-08-22 19:33:16 +02:00
U-N\N d3b5eef519 adjust invoke behaviour 2021-08-22 19:30:35 +02:00
Perry Fraser 04d7a0cc87 De-fatten turkeys (reduce weight from 40 kg to 8 kg) 2021-08-22 12:05:56 -04:00
Anton Burmistrov 263e1a2d18 Update data/json/monsters/misc.json
Co-authored-by: Jianxiang Wang (王健翔) <qrox@sina.com>
2021-08-22 19:30:18 +04:00
Valiant 09a583bc1a Removed unused things 2021-08-22 17:03:24 +04:00
chaohedgehogs 030e1dd0a3 Update torso_clothes.json 2021-08-22 22:28:29 +10:00
Valiant ce3cdd7f4c Removed hardcoded mapgen for good 2021-08-22 16:21:03 +04:00
Valiant 7f2098ecac smol fix 2021-08-22 16:20:14 +04:00
Valiant 3ea801afc4 Main work
Fixed bugs, removed unneeded or non-working stuff, added new lessons and interactions
2021-08-22 16:19:57 +04:00
Valiant fa25a2a73f Added jsonified mapgen for tutorial 2021-08-22 16:11:33 +04:00
Valiant 57e5b4a041 Added dummy monster for tutorial 2021-08-22 16:09:12 +04:00
BevapDin 0fccfd0807 Fix recipe requiring charges of item "plastic mold".
That item is a tool and never has any charges. No other recipe that requires it as tool requires charges.
2021-08-22 12:29:00 +02:00
U-N\N 1f492f51f3 Make active Eink useable 2021-08-22 12:20:51 +02:00
Binrui Dong 1b9e401fd1 Routine i18n updates on 22 Aug 2021 2021-08-22 17:25:34 +08:00
Andrey Bienkowski e090d8652d Ignore obsolete fields in character templates
"stat_points", "trait_points" and "skill_points" are obsolete because
of 5343061b49. They are still present in
old character templates. This triggers debug assertions see
https://github.com/CleverRaven/Cataclysm-DDA/issues/50976
2021-08-22 09:08:36 +03:00
Angela Graves 8051d7d8ca Merge pull request #50930 from Joshua-Chin/jackhammer-fix
Fix the fuel usage and capacity of the jackhammer
2021-08-22 00:17:52 -05:00
eltank dabfc4d795 Remove vestiges of adv_UPS_off from mods 2021-08-21 20:04:49 -07:00
eltank de1ef9d116 Add slamfire_shotgun's to generic_guns_validator whitelist
These are already "generic" so they're being modified rather than
replaced by the GG mod.
2021-08-21 18:02:54 -07:00
Kevin Granade 21a557ec29 Make weather private in game, fetch weather_manager with the getter 2021-08-21 17:49:32 -07:00
eltank af8741c1a3 Remove bad migration entries from Generic Guns 2021-08-21 16:31:23 -07:00
eltank 0dcf9965aa Prevent MIGRATION json from replacing an item with itself
This is bad because the item ends up blacklisted
2021-08-21 16:30:53 -07:00
Eric a7d487b4da Convert examine (#50959) 2021-08-21 16:28:34 -07:00
Kevin Granade 5343061b49 Merge pull request #50772 from hexagonrecursion/points
Refactor: stop duplicating information in the character creation
2021-08-21 16:10:49 -07:00
mqrause bf3398f27a Consider nested pockets when picking up items (#50259) 2021-08-22 00:46:24 +03:00
curstwist ae33760bd0 fix Lab security drones & eoc (#50920) 2021-08-22 00:45:16 +03:00
Light-Wave 33eec6b445 More generic compares and arithmetic for the dialogue system (#50305) 2021-08-22 00:42:01 +03:00
Zhilkin Serg 804fa93943 Merge pull request #50961 from Saicchi/docfix
Remove git diff markings in JSON_INFO.md
2021-08-22 00:37:47 +03:00
778wd 5cba16b329 Add motorized police profession and add its gears to monsterdrop. (#50397) 2021-08-22 00:37:15 +03:00
Kevin Granade 73374ddaf4 Merge pull request #50835 from eltank/better_overmap_path
Improved overmap pathfinding in 3D
2021-08-21 13:50:21 -07:00
casswedson 9199bbd46b Fix invalid looks_like id (#50960) 2021-08-21 13:46:00 -07:00
Roy Berube db33e9a3ac Add missing line from refactor (#50957) 2021-08-21 13:42:29 -07:00
eltank 1209f95bbb Fix OOB in the recipe search in salvage_actor::cut_up (#50952)
Calling front() on a vector witout checking if it's empty is not good.
2021-08-21 13:14:46 -07:00
Saicchi 0560e3810b effect per body part (#50950)
Co-authored-by: Saicchi <Saicchi@users.noreply.github.com>
2021-08-21 13:13:54 -07:00
Saicchi c900807b96 doc fix 2021-08-21 17:04:21 -03:00
Eric 0db1f5a654 Convert activity from player to character. (#50947)
Co-authored-by: Kevin Granade <kevin.granade@gmail.com>
2021-08-21 12:51:47 -07:00
Eric Pierce 9e55023e64 Sidebar Widgets: Add bp_wetness widget_var
The `bp_wetness` widget_var displays the wetness of any body part using
`avatar.get_part_wetness()`.

The "wetness_num" and "wetness_graph" widgets in `sidebar.json` may be
used in custom layouts.
2021-08-21 13:29:18 -06:00
Eric Pierce 192ce9a9ce Sidebar Widgets: Add weariness_level widget_var
The `weariness_level` widget_var displays the value returned from
`avatar.weariness_level()`.

The "weariness_num" and "weariness_graph" widgets in `sidebar.json`
may be used in custom layouts.
2021-08-21 13:29:18 -06:00
Eric Pierce 8b1de7d02a Sidebar Widgets: Add morale_level widget_var
The `morale_level` widget_var displays avatar morale from
`get_morale_level`, with values typically ranging from -100 to +100.

The "morale_num" widget in `sidebar.json` may be used in custom layouts.
2021-08-21 13:29:09 -06:00
Saicchi a5056bd591 weapon category documentation 2021-08-21 14:40:42 -03:00
Saicchi 14f637d427 clang_tidy fix 1 2021-08-21 14:40:42 -03:00
Saicchi ba0c4e9fc6 martial art weapon category test 2021-08-21 14:40:42 -03:00
Saicchi 0081d96a59 weapon category base 2021-08-21 14:40:42 -03:00
Angela Graves bd2ce6b758 Merge pull request #50926 from Menschheit/Issue-50900
Apply temperature stats penalties after activating bionics
2021-08-21 03:08:30 -05:00
Kevin Granade 9b8f19678d Merge pull request #50902 from jbytheway/nested_palettes
Support recursive palettes
2021-08-21 00:51:41 -07:00
John Candlebury fb58e523dc Firefighting cabinet (#50946)
Co-authored-by: Anton Burmistrov <Night_Pryanik@mail.ru>
Co-authored-by: actual-nh <74678550+actual-nh@users.noreply.github.com>
2021-08-21 10:25:06 +03:00
Zhilkin Serg b2ca358b90 Merge pull request #50949 from kevingranade/playerectemy
Move add_msg_if_player and friends to Character
2021-08-21 10:24:27 +03:00
Zhilkin Serg a202475200 Merge pull request #50882 from NetSysFire/master
fliers.json: Add new Foodplace™ ad
2021-08-21 10:18:32 +03:00
Zhilkin Serg e2ed6d7368 Merge pull request #50895 from KanterDev/KanterDev-patch-3
[Magiclysm] Add plurals forms to enchanted_tools.json
2021-08-21 10:17:49 +03:00
Zhilkin Serg 074c9b1e6a Merge pull request #50951 from StStep/bionic-monster-skill-switch
Fix bionic monster profession starting with unarmed rather than piercing skill
2021-08-21 10:17:21 +03:00
R. Stephens Summerlin c0ea068c10 Replaced Bionic Monster starting unarmed skill with starting peircing skill 2021-08-21 00:20:29 -04:00
Kevin Granade aaac4210cf Move add_msg_if_player and friends to Character 2021-08-20 21:18:39 -07:00
eltank 73810388f8 Fix pathing under bridges 2021-08-20 20:13:53 -07:00
eltank ecdc2b05c3 Add a couple of unit tests for find_overmap_path 2021-08-20 20:13:53 -07:00
eltank d3f54d2461 Implement A* 3D pathfinding for overmap navigation 2021-08-20 20:13:53 -07:00
eltank 8f7326311e Display 3D paths on overmap UI
Also optimize the code
2021-08-20 20:13:52 -07:00
eltank 4cd1f8dfce tweak overmap navigation costs 2021-08-20 20:13:52 -07:00
eltank 792a7bdd16 Add octile_dist function 2021-08-20 20:13:51 -07:00
eltank 94fcc57f68 Rename pf::find_path to pf:greedy_path and move impl to cpp
Also:
- changed pf::node to use typesafe direction and renamed to
pf::directed_node
- replaced the functor with std::function and the estimator return
with node_score
- fix unit test
2021-08-20 20:13:51 -07:00
eltank 121574bd4c Add a more thorough unit test for pf::find_path 2021-08-20 20:13:51 -07:00
eltank e9ce93a4d2 Move pf::straight_path into a private function near its single caller 2021-08-20 20:13:51 -07:00
eltank 2eb4ed3a68 Fix division by zero in SkillLevel::train (#50943) 2021-08-20 19:28:02 -07:00
Eric 1f0d81eb62 Player downsizing (#50927)
* Remove unused static ids
Co-authored-by: Kevin Granade <kevin.granade@gmail.com>
2021-08-20 15:55:35 -07:00
Joshua Chin 2bdc390a3a Revert changes to construction fuel usage. 2021-08-20 16:46:57 -04:00
eltank cc50de2d34 Fix negative skill xp and add debugging (#50929) 2021-08-20 11:39:25 -07:00
Binrui Dong bd9395a83a Fix parsing error in camera iuse function (#50924) 2021-08-20 11:31:12 -07:00
eltank a6994c3496 Clamp butchery yield multiplier (#50914) 2021-08-20 11:30:17 -07:00
Joshua Chin 3cddf9873c Fix the fuel usage and capacity of the jackhammer 2021-08-20 13:38:31 -04:00
U-N\N ab1f3a6b40 Typo + Astyle 2021-08-20 17:43:41 +02:00
U-N\N 5cfbacc948 fix 2021-08-20 17:34:46 +02:00
U-N\N a3c76b202a apply stats change from hardcoded effects 2021-08-20 16:36:00 +02:00
Eric 90ba582b30 Fix spell sound effect eocs (#50912) 2021-08-20 09:55:54 +03:00
Maleclypse a59bae2d56 [Aftershock] Remove old obsoletes (#50885) 2021-08-20 09:54:48 +03:00
LyleSY 39c5038f0c [DinoMod] custom monster attacks (#50876) 2021-08-20 09:54:31 +03:00
Angela Graves 12092f04f6 Merge pull request #50879 from Mom-Bun/afsfix
[AFTERSHOCK] Fix Easily Breakable Spaceship Hulls
2021-08-20 00:59:25 -05:00
casswedson 86ff040594 Use menu_text if appropriate + document (#50816)
* Use menu_text if appropriate + document
Co-authored-by: Anton Burmistrov <Night_Pryanik@mail.ru>
2021-08-19 18:26:58 -07:00
satheon49 bfda921c53 Prevent endless loop during butchering (#50814)
* abort butchering if liquid is frozen
* fix for cancelling liquid crafting

Co-authored-by: Jianxiang Wang (王健翔) <qrox@sina.com>
2021-08-19 18:13:36 -07:00
eltank 91ec8e02a1 Display knowledge level when != practical level (#50908) 2021-08-19 17:40:55 -07:00
Eric ea1f5e19c8 Less player is more (#50905)
* Non examine
* Less player is more
2021-08-19 17:34:50 -07:00
Andrew Krieger 1fd5d3b6d3 Cleanup wdirent.h and other headers 2021-08-19 14:58:42 -07:00
Andrew Krieger 1b7d5ba799 Convert some less trivial filesystem.cpp functions to use ghc filesystem. 2021-08-19 14:58:42 -07:00
Andrew Krieger f313bdfa64 Convert trivial filesystem.cpp functions to use ghc filesystem 2021-08-19 14:58:42 -07:00
Andrew Krieger dfb01024ce Add ghc filesystem to build systems 2021-08-19 14:58:42 -07:00
Andrew Krieger 0d299691d9 Copy ghc filesystem v1.5.8 to repo.
Sourced from https://github.com/gulrak/filesystem/releases/tag/v1.5.8

This is a C++17 compliant `std::filesystem` polyfill. When included via
`ghc/fs_std.hpp`, it will delegate to the actual implementation when
available, populating the methods in the namespace `fs`. When not available,
its own implementations will be in the same namespace.
2021-08-19 14:54:31 -07:00
Kevin Granade c015a60d40 Merge pull request #50904 from ZhilkinSerg/fix-start-location-map-extra-check
Fix start location map extra check
2021-08-19 13:39:13 -07:00
ZhilkinSerg 297d9cb8dc Include mapgen map extras to debug menu 2021-08-19 23:00:28 +03:00
ZhilkinSerg d009b16fa9 Clarify debug message for built-in map extra functions check 2021-08-19 22:59:23 +03:00
ZhilkinSerg fc1d2e5ce4 Validate all map extra functions
... and not only built-in
2021-08-19 22:57:17 +03:00
John Bytheway 007e6029bd Check for loops in palette references
If we had a loop of palettes, all referencing the next, that would lead
to a stack overflow.  Detect that case, report an error, and avoid
crashing.
2021-08-19 14:25:36 -04:00
John Bytheway 426dccb282 Test recursive palettes in lab_mutagen
Try using the new recursive palette support in lab_mutagen_palette.  It
now includes lab_common_palette, so all the places using it no longer
need to list both.
2021-08-19 14:06:41 -04:00
John Bytheway edeebdb7e9 Add recursive palette support
Now palettes can use other palettes.  This can reduce repetitiveness in
mapgen somewhat, but should be more useful in the future with the
addition of variant palette support.
2021-08-19 13:53:02 -04:00
John Bytheway cbb5f284f6 Make mapgen_palette::parameters private 2021-08-19 13:52:16 -04:00
Eric 2ead5869f6 Move more player code over to character (#50883)
* Less player
Co-authored-by: Kevin Granade <kevin.granade@gmail.com>
2021-08-19 10:16:06 -07:00
Kevin Granade f09dfff751 Merge pull request #50881 from CleverRaven/kevingranade-silence-SDL-warning
Silence warnings reported from inside SDL header
2021-08-19 10:15:27 -07:00
John Bytheway 0ee72458b3 Add palette_id to cata_variant 2021-08-19 13:05:43 -04:00
John Bytheway bb238bf659 Make palette_id a string_id
Previously palette_id was simply a string.  Make it instead a string_id.
2021-08-19 13:05:43 -04:00
Zack 5108244d1d add plurals to enchanted_tools.json 2021-08-19 04:10:02 -04:00
Angela Graves 7e2826acb9 Merge pull request #50865 from Qrox/select
Allow item selection with mouse cursor and keyboard key
2021-08-19 01:06:43 -05:00
Kevin Granade 6957926496 Merge pull request #50890 from eltank/leash_and_lead_pets
Leash and lead tamed animals
2021-08-18 22:58:30 -07:00
MagratGarlick 84f44254fb Fix/broken meteorologist quest (#50884)
* Fix: broken meteorologist quest
Co-authored-by: Jianxiang Wang (王健翔) <qrox@sina.com>
2021-08-18 22:34:18 -07:00
satheon49 ca7caabd59 allow AIM panel swapping from vehicle (#12433) (#50531) 2021-08-18 22:16:22 -07:00
Curtis Merrill 8d0b26faae implement leg, feet, and torso scores (#50829)
* legs and feet

* add torso stuff

* Update player_display.cpp

* Update player_display.cpp
2021-08-18 21:34:11 -07:00
eltank 61c083e54a Add ability to leash and lead pets
- introduce leashed and led_by_leash effects
- add corresponding actions to the monexamine pet menu
- consume rope on leash, return it on unleash
- rework tie action to require leashing first
2021-08-18 20:46:30 -07:00
Kevin Granade b488533ed2 Supress warning that cropped up in SDL. 2021-08-18 20:00:53 -07:00
Kevin Granade e045a3c754 Centralize SDL imports. 2021-08-18 20:00:22 -07:00
Kevin Granade e544a33d19 Remove unused SDL headers. 2021-08-18 19:59:37 -07:00
eltank 00553391be don't follow the player if the MF_PET_WONT_FOLLOW flag is set 2021-08-18 19:57:51 -07:00
eltank 896a7d4aa6 separate tie/untie and add/remove armor in monexamine 2021-08-18 19:57:50 -07:00
eltank 631ac39ff0 Shrink monexamine.h to the minimum necessary
Most of the functions don't need to be exposed, they're just
implementation details.
2021-08-18 19:09:17 -07:00
Narwhal8 3d7441eede Merge branch 'CleverRaven:master' into master 2021-08-18 20:26:32 -04:00
Alexey Mostovoy 5857e10afe Make spawn_data parameters const reference (#50875) 2021-08-18 16:30:40 -07:00
MagratGarlick e73a763734 Fix: ::practice causing complete focus drain (#50830)
* Fix: ::practice causing complete focus drain
* fix: fix focus drain runaway
* fix: disable the minsqrt line
Co-authored-by: Kevin Granade <kevin.granade@gmail.com>
2021-08-18 16:26:18 -07:00
ti360gh 613cf46071 Some of the hard-coded talk topics can now be described in NPC's json. (#50361)
* Make it possible to make follows common topics to NPC-specific.(TALK_FRIEND / TALK_RADIO / TALK_LEADER / TALK_STOLE_ITEM / TALK_WAKE_UP)

* Document updated.

* adding topic to costomize(TALK_MUG/TALK_STRANGER_AGGRESSIVE/TALK_STRANGER_SCARED/TALK_STRANGER_WARY/TALK_STRANGER_FRIENDLY/TALK_STRANGER_NEUTRAL
2021-08-18 16:23:47 -07:00
NetSysFire 0d9347042e fliers.json: Add new Foodplace™ ad 2021-08-19 01:06:48 +02:00
Curtis Merrill 8b56579be1 migrate iuse to Character (#50736) 2021-08-18 15:10:47 -07:00
Kevin Granade 13146bd56d Merge pull request #50853 from jbytheway/more_mapgen_values
Parametric mapgen part 4: Support mapgen parameters in for most mapgen ids
2021-08-18 15:08:55 -07:00
Jianxiang Wang (王健翔) 9900449c30 Fix cata::optional::swap and add unit test (#50868) 2021-08-18 15:05:54 -07:00
Zhilkin Serg f34e7e4e2e Catch SecurityException in SDL getSerialNumber (#50877) 2021-08-18 15:02:14 -07:00
Jianxiang Wang (王健翔) d1d2aa15c3 Refresh if stdscr has unflushed changes to adhere to standards (#50867) 2021-08-18 14:59:46 -07:00
Zack dfcd320063 Add subcategories to crafting recipes that lack them (#50866) 2021-08-18 14:58:54 -07:00
eltank 7608106d32 Make friendly monsters follow you unless under attack (#50864) 2021-08-18 14:58:08 -07:00
khudson13 c148aed57a Remove previous broken WEBWALK code (#50862)
Remove redundant and faulty WEBWALK code
2021-08-18 14:57:08 -07:00
actual-nh 3c521e09fe Fix format strings in monstergenerator.cpp (#50858) 2021-08-18 14:56:22 -07:00
U-LAPTOP-BJ9IBM1T\Surre 683545c965 Fix easily breakable spaceship hull 2021-08-18 16:45:29 -05:00
Angela Graves e055bd1596 Merge pull request #50836 from catern/master
change name of "tourist table" to "folding table"
2021-08-18 03:57:56 -05:00
Qrox 70f5871225 Allow item selection with mouse cursor and keyboard key 2021-08-18 14:18:50 +08:00
Narwhal8 20ddaa5698 Merge branch 'CleverRaven:master' into master 2021-08-17 20:01:36 -04:00
Spencer Baugh 9ce51aa0e5 change name of "tourist table" to "folding table"
"Tourist table" as a name for a small metal folding table appears to
be unique to CDDA.  Indeed, CDDA is the first Google result for
"tourist table".  Personally, I have to remember every time what a
"tourist table" is supposed to be, so using a more common name would
be better.

"Folding table" seems to be the most common phrase for this kind of
table.

"Travel table" or "camping table" are also candidates, and there are
other terms listed on https://en.wikipedia.org/wiki/Folding_table but
"folding table" is nicely generic, and doesn't state exactly what kind
of table it is, which is nice because we currently have lots of usage
of these tables both at campsites and inside residential buildings.
Which makes sense, because folding tables are quite common.
2021-08-17 19:10:29 -04:00
Narwhal8 bea0650290 Added a deluxe cheeseburger (#50804)
added a deluxe cheeseburger which demands all of the fixings of a burger as opposed to just 1 condiment and 1 vegetable like the normal cheeseburger demands

Co-authored-by: Maleclypse <54345792+Maleclypse@users.noreply.github.com>
Co-authored-by: casswedson <58050969+casswedson@users.noreply.github.com>
2021-08-17 15:40:34 -07:00
Narwhal8 5a5de8de34 Update food.json 2021-08-17 16:52:55 -04:00
Narwhal8 ef4cd8a70e Create food.json 2021-08-17 16:52:34 -04:00
Narwhal8 a8f4ae900a Update food.json 2021-08-17 16:52:19 -04:00
Pseudogeist 62ac1cb35a Add C::B astyle config to DEVELOPER_TOOLING.md (#50848)
This gives a few pointers on configuring astyle for those using Code::Blocks. I decided not to go too overboard as it is extremely simple, but there are enough caveats and pitfalls to deter a beginner or that would take a while to figure out. I decided not to include screenshots or an extended description as styles do change and I'd rather not bloat the article. The descriptions in .astylerc should be sufficient and if not, well, maybe we can update this doc.
2021-08-17 11:37:03 -07:00
AngryFerret 9d4ec3480d Add simple & trench mace to MythMAs that use mace (#50740) 2021-08-17 11:20:22 -07:00
John Bytheway c3a1e6fa21 Test new parameter flexibility on modular labs
Update the mutagen lab mapgen to select either hot or cool vents rather
than always using cool vents.  The intention is that the vents should be
the same throughout a lab, but potentially different between labs.
2021-08-17 13:54:17 -04:00
John Bytheway 53fb6e3759 Check mapgen parameter definitions
There was previously no way to detect an invalid id in a mapgen
parameter definition.  Check for those.
2021-08-17 13:54:17 -04:00
John Bytheway eb2d6d50e4 Migrate some zone definitions to JSON
For these zone types' ids to be deemed valid we must have JSON
definitions of them so that they are defined within the zone_factory.
2021-08-17 13:54:17 -04:00
John Bytheway e0f4eb6ade Migrate most mapgen constants to mapgen_value
Previously, parametric mapgen could only be used for terrain.  Extend
that to all other json mapgen pieces for which is is straightforward to
do so.

A few of trickier cases remain without support:
* jmapgen_gaspump's fuel type
* jmapgen_item_group's item group
* jmapgen_loot's result_group
* jmapgen_monster's monster ids
* jmapgen_sealed_item's furniture id
Postponing those to the future for now.
2021-08-17 13:54:17 -04:00
John Bytheway c570cd29d6 Add a bunch of types to cata_variant
We need lots more types so that they can be used as mapgen_value types
for parametric mapgen.
2021-08-17 13:54:17 -04:00
pehamm b34a0f5918 Update Frog Mother Description (#50779) 2021-08-17 10:36:19 -07:00
Angela Graves 31ef3bab9d Merge pull request #50806 from kevingranade/overhaul-muzzleloaders
Overhaul muzzle loaders
2021-08-17 05:02:16 -05:00
LyleSY 4a673f3127 [DinoMod] custom items in DinoLab (#50683) 2021-08-17 10:41:11 +03:00
LyleSY 36859f592f [DinoMod] HP rebalance premium (#50817) 2021-08-17 10:39:54 +03:00
Saicchi 3ea083ce0c Python tool to spawn one of each item / furniture / terrain / traps (#50786) 2021-08-17 10:39:22 +03:00
Curtis Merrill 6bccfc709e Merge pull request #50842 from eltank/skill_degree
Display skill degree instead of xp on Hobby tab
2021-08-17 02:44:03 -04:00
PatrikLundell 6613d2a142 Merge branch 'master' of https://github.com/CleverRaven/Cataclysm-DDA into base_camp_reorganization 2021-08-17 07:00:48 +02:00
BriscoLargg 17b9ea1dd0 Add mop to all recipes where broom is used as simple wooden shaft (#50825)
* Mop wood shaft is trivally different from broom
* Update data/json/recipes/weapon/piercing.json
* Space, the final edit.
These are the voyages of the software dda...
Co-authored-by: Kevin Granade <kevin.granade@gmail.com>
2021-08-16 21:40:08 -07:00
Kevin Granade b446349c3f Merge pull request #50840 from ZhilkinSerg/fix-inventory-ui-column-selection
Fix item and category selection in inventory menu
2021-08-16 19:47:52 -07:00
DeadArsenal 85c909db0f Add Vehicles: Full-size, Mini, Cargo, and Camper Vans (#50699)
* Three New Vans & Two Hybrid Variants
* New vans added to appropriate groups
* Changes provided by acepleiades
* Created new Mini RV variant for Camper Van
2021-08-16 19:25:14 -07:00
personjerry 93df410bc7 Decoy Mannequin to Distract Zombies (#50492)
* Add deconstruct mannequin, combine mannequin with talking doll, and use it to spawn a friendly immobile decoy
* Less HP on mannequin decoy and use PARROT instead of custom attack
Co-authored-by: Kevin Granade <kevin.granade@gmail.com>
2021-08-16 19:24:30 -07:00
khudson13 3ba16b23d7 Increase hiking backpack sheath size (#50841)
sheath size increased to 1 L
2021-08-16 19:20:24 -07:00
Eric 9f826811f6 Monster spawn lifespan (#50839) 2021-08-16 19:18:48 -07:00
acepleiades 5a5371b86e Bugfix Hybrid car (#50823) 2021-08-16 19:13:56 -07:00
satheon49 c1ffc4bd12 allow using tools of bike rack vehicle (#50815) 2021-08-16 19:12:47 -07:00
Kevin Granade 2ebd2bd7ba Overhaul muzzle loaders 2021-08-16 19:07:07 -07:00
eltank 8d6f659064 Render one frame per turn during autodrive (#50803) 2021-08-16 18:48:13 -07:00
Roy Berube 01d0f60111 Climate control in vehicle only if engine is on (#50797)
* Climate control in vehicle only if engine is on
2021-08-16 18:45:40 -07:00
eltank 439c1867dc Display skill degree instead of xp on Hobby tab 2021-08-16 17:08:47 -07:00
ZhilkinSerg 0a5389a748 Change default binding for toggling of category selection mode 2021-08-17 00:03:20 +03:00
ZhilkinSerg 837222e1d5 Use RIGHT action for (un)marking selected item in inventory menu 2021-08-17 00:01:13 +03:00
ZhilkinSerg f2dec1f906 Add separate actions for column selection in inventory menu 2021-08-16 23:57:13 +03:00
Andrey Bienkowski 3a1763ecb8 Merge from master to resolve conflicts 2021-08-16 20:27:28 +03:00
Andrey Bienkowski 53f41589a2 Delete points_left 2021-08-16 20:22:25 +03:00
Andrey Bienkowski 3c0a121948 Remove points_left::is_freeform() 2021-08-16 19:53:54 +03:00
Andrey Bienkowski e14aa76d44 Remove points_left::point_limit 2021-08-16 19:01:52 +03:00
Angela Graves 7a69a93a60 Merge pull request #50834 from angryisosceles/master
Added fruit as a material in fruit wine
2021-08-16 08:04:35 -05:00
Andrey Bienkowski 97edc31ba9 Finish removing state from points_left 2021-08-16 15:57:16 +03:00
Andrey Bienkowski fd66c72dc3 Respect INITIAL_*_POINTS 2021-08-16 15:24:40 +03:00
Andrey Bienkowski bab89b5f51 Replace skill_points_left() 2021-08-16 14:26:39 +03:00
Andrey Bienkowski 82fc0f3b3b Port the random character generation 2021-08-16 14:10:38 +03:00
Andrey Bienkowski 7d0a54fcc4 Remove dead code 2021-08-16 14:05:05 +03:00
Andrey Bienkowski 8f32809fe0 Port the random character generation 2021-08-16 14:00:27 +03:00
Andrey Bienkowski ffe0ed0c98 Remove is_valid 2021-08-16 13:42:28 +03:00
Andrey Bienkowski ca9401ec36 Refactor 2021-08-16 13:41:00 +03:00
Andrey Bienkowski 69b311ba42 Port random character generation
As far as I can tell there is no UI to request random single-pool or
freeform characters which makes my job easier
2021-08-16 12:59:42 +03:00
Andrey Bienkowski f3da6cf611 Refactor 2021-08-16 12:48:14 +03:00
Andrey Bienkowski cfef0ab945 Reimplement the character validity check 2021-08-16 12:41:09 +03:00
Andrey Bienkowski 338628f8b2 Refactor 2021-08-16 12:22:45 +03:00
angryisosceles a55d55fbe4 Fixed fruit wine not having fruit as a material
Previously, fruit-hating characters could drink fruit wine with no problems
2021-08-16 01:23:18 -07:00
Narwhal8 b854d2bd48 Update data/json/items/comestibles/meat_dishes.json
Co-authored-by: casswedson <58050969+casswedson@users.noreply.github.com>
2021-08-15 18:02:38 -04:00
Narwhal8 a079ae8fe4 Update data/json/items/comestibles/meat_dishes.json
Co-authored-by: casswedson <58050969+casswedson@users.noreply.github.com>
2021-08-15 18:02:30 -04:00
Scorch-Mechanic e3199c8385 Smaller nondairy milks (#50706)
* smaller container for nondairy milks
Nondairy milks don't come sizes larger than a half gallon in real life.
* rename large paper carton to milk carton
Let's call a milk carton a milk carton.
Co-authored-by: chaohedgehogs <46550455+chaohedgehogs@users.noreply.github.com>
2021-08-15 14:07:43 -07:00
PatrikLundell 306b76724d reorganized the stuff added while this PR was suspended 2021-08-15 22:57:05 +02:00
PatrikLundell 3d4894fbe4 reorganized the stuff added while this PR was suspended 2021-08-15 22:55:41 +02:00
PatrikLundell 2580515759 merged with experimental 2021-08-15 22:54:17 +02:00
Narwhal8 0ee5a6689f Update data/json/items/comestibles/meat_dishes.json
Co-authored-by: Maleclypse <54345792+Maleclypse@users.noreply.github.com>
2021-08-15 14:34:39 -04:00
Salty Panda fb4a0b149c fix: case for NUM enum, move return statement 2021-08-15 18:59:39 +02:00
Salty Panda 0799b1ff05 fix: lint 2021-08-15 17:16:35 +02:00
AngryFerret 8ffaff49db Moar hobbies (#50333) 2021-08-15 18:12:57 +03:00
Salty Panda 8470834a65 feat: allow to separately specify both conditions and type of recharging items with charges 2021-08-15 17:12:10 +02:00
Salty Panda 94ee5d2e69 Add rebag, spell, balance existing ring 2021-08-15 17:12:07 +02:00
Salty Panda ef7ef79168 Add recharge_type worn 2021-08-15 17:11:51 +02:00
connorpmartin 586eaf785c Magiclysm: Magical Tools (#48805) 2021-08-15 18:11:38 +03:00
Curtis Merrill 9ee17cc7a2 abstract scores for eyes and mouth (#50761)
Co-authored-by: actual-nh <74678550+actual-nh@users.noreply.github.com>
2021-08-15 18:10:40 +03:00
Zhilkin Serg f56e69033e Merge pull request #50791 from kevingranade/virtual-wake-up
Make wake_up() virtual.
2021-08-15 18:10:09 +03:00
Zhilkin Serg 2e01ea8f97 Merge pull request #50793 from Saicchi/examinemulti
Allow examine on drop and compare
2021-08-15 18:09:08 +03:00
Zhilkin Serg 2b205bdfee Merge pull request #50764 from CleverRaven/i18n
Routine i18n updates on 14 August 2021
2021-08-15 18:08:21 +03:00
Zhilkin Serg d232537b4a Merge pull request #50796 from RenechCDDA/faction_camp_skill_names
Update faction camp to current skill names
2021-08-15 18:08:09 +03:00
LyleSY c3df0f9581 monster HP scaling section in GAME_BALANCE (#50788) 2021-08-15 18:07:57 +03:00
Salty Panda cb7433f0c1 Add option to raise the visor to motorcycle helmet (#48560)
* Add option to raise the visor to motorcycle helmet

Copies entire entry, replace using copy-from once #43144 will get merged

* Add option to raise the visor to motorcycle helmet

* remove deprecated armor_portion_data

* Update data/json/items/armor/helmets.json
2021-08-15 18:07:15 +03:00
Zhilkin Serg ecb1a914e3 Merge pull request #48405 from Salty-Panda/tune_biosil_items
Balance biosil chitin items
2021-08-15 18:06:56 +03:00
Zhilkin Serg e97151bc0b Merge pull request #50784 from AccountAlias/Traits-to-Proficiencies
Parkour is now a proficiency
2021-08-15 18:06:45 +03:00
Zhilkin Serg 3044b3d25f Merge pull request #50789 from kevingranade/teeny-debug-cleanup
Remove some debug spam
2021-08-15 18:06:19 +03:00
Zhilkin Serg fbba141971 Merge pull request #50766 from Qrox/auto-move-redraw
Redraw more frequently during auto-move
2021-08-15 18:04:54 +03:00
Zhilkin Serg 37f60cd293 Merge pull request #50807 from Qrox/mouse
Do not refresh excessively during mouse events
2021-08-15 17:49:07 +03:00
ferociousdork fead1da104 Exclude spilt liquids from heat up menu (#50790) 2021-08-15 17:48:51 +03:00
Binrui Dong 564ddd5079 Remove rounding from stamina burn test (#50566) 2021-08-15 17:48:32 +03:00
Zhilkin Serg 9a10b0c5ed Merge pull request #50808 from BrettDong/push-tx
Set Transifex API token in push translation template workflow
2021-08-15 17:48:07 +03:00
Binrui Dong 4750b9073c Set Transifex API token in push translation template workflow 2021-08-15 19:24:17 +08:00
Qrox a6c9b5d9a3 Refresh when needed to improve performance 2021-08-15 18:22:41 +08:00
Qrox 0d5b07d500 Remove unnecessary forward declarations 2021-08-15 16:32:47 +08:00
Angela Graves 7835cc2566 Merge pull request #48476 from Salty-Panda/display_Cal_in_component_selection
Display calorie value of ingredients while crafting food
2021-08-15 01:37:19 -05:00
Jack f5a0339275 Added a deluxe cheeseburger
added a deluxe cheeseburger which demands all of the fixings of a burger as opposed to just 1 condiment and 1 vegetable like the normal cheeseburger demands
2021-08-15 01:38:46 -04:00
AccountAlias 7895a1b651 Parkour is now a proficiency
Migrate Parkour

naming convention fix and mod compatability
2021-08-14 21:19:27 -04:00
akrieger ee0b7b6d6b Fix spammy translations.h clang-tidy error. (#50783) 2021-08-14 17:59:24 -07:00
RenechCDDA 48dc31a444 Update faction camp to current skill names 2021-08-14 20:46:03 -04:00
Saicchi 791054fd95 allow examine on drop and compare 2021-08-14 18:58:48 -03:00
Kevin Granade dadee786f4 Make wake_up() virtual.
Insures it's invoked when needed.
2021-08-14 14:56:56 -07:00
ferociousdork 2f6beb7fc4 Condense item stacks with charges only when they are mergeable (#50613)
* Condense item stacks in consume_items only when they are mergeable; Show display_name when examining smoking rack and mill; Fix rot for cooks_like comestibles
2021-08-14 14:43:08 -07:00
Brett Dong (BOT) d214372370 Routine i18n updates on 14 August 2021 2021-08-15 00:15:09 +03:00
Kevin Granade 2c808f869c Remove some debug spam 2021-08-14 14:06:21 -07:00
Menschheit eed09b9e80 Make result of cutting up less contradicting to recipes (#50463)
* rework cutting outcome

Co-authored-by: anothersimulacrum <anothersimulacrum@gmail.com>
2021-08-14 14:05:23 -07:00
Kevin Granade a1fc9abe77 Merge pull request #50291 from Saicchi/wetitem
Flag that allows electronics to get wet
2021-08-14 12:35:37 -07:00
Kevin Granade 08df1f51c5 Merge pull request #50756 from jbytheway/clang-tidy_cata-serialize
clang-tidy check to ensure data is (de)serialized
2021-08-14 12:31:52 -07:00
Eric 6be9b1e28b Remove default npc from eocs (#50757)
Co-authored-by: anothersimulacrum <anothersimulacrum@gmail.com>
Co-authored-by: Kevin Granade <kevin.granade@gmail.com>
2021-08-14 12:26:28 -07:00
Andrey Bienkowski 7ee51dd382 Use switch instead of else if chain 2021-08-14 20:21:11 +03:00
Andrey Bienkowski fe3b1f74e9 Add static 2021-08-14 19:49:07 +03:00
Andrey Bienkowski 0b5652b468 Add static 2021-08-14 19:47:31 +03:00
khudson13 badd5e3393 Fix for WEBWALK flag (#50760) 2021-08-14 19:19:03 +03:00
Andrey Bienkowski ad27aef368 Remove points_left::has_space 2021-08-14 19:18:10 +03:00
Zhilkin Serg e816cb7546 Merge pull request #50776 from Qrox/actually-initialized
Suppress -Wmaybe-uninitialized false positive in some builds
2021-08-14 19:17:17 +03:00
Zhilkin Serg 45c3e9eec7 Merge pull request #50780 from Qrox/book-crash
Fix crash after npc loses book during reading activity
2021-08-14 19:16:45 +03:00
Zhilkin Serg 963dbaa855 Merge pull request #50781 from BrettDong/typo
Typo fixes
2021-08-14 19:16:09 +03:00
LyleSY 6b52e6cf83 [DinoMod] revert HP rebalance (#50778) 2021-08-14 19:15:37 +03:00
Andrey Bienkowski 38d38c4c4b Add static 2021-08-14 18:41:14 +03:00
Andrey Bienkowski 00bf60c8b9 Port point pool string 2021-08-14 18:32:59 +03:00
Qrox 290ea734d6 Fix crash after npc loses book during reading activity 2021-08-14 22:58:07 +08:00
Binrui Dong fef72dcd71 Typo fixes 2021-08-14 22:57:37 +08:00
Fris0uman 5be2a56a0d Merge pull request #50773 from Fris0uman/car_time
Update tilesets for new car infrastructure
2021-08-14 16:32:01 +02:00
Andrey Bienkowski 805c0a0df5 Implement point cost calculations 2021-08-14 17:05:14 +03:00
Qrox 35ba126de6 Suppress -Wmaybe-uninitialized false positive in debug MinGW-w64 build 2021-08-14 20:41:44 +08:00
Qrox 637726263b Skip input during test mode 2021-08-14 20:32:34 +08:00
John Bytheway 90b11575c8 Fix serialization warnings
Fix all the various warnings from the new cata-serialize check as best I
can.

Most of them are simply suppressed.  Some seemed to be genuinely missing
serializations.  A few were worked around in other ways by tweaking the
code.
2021-08-14 07:43:26 -04:00
Fris0uman 1c80b0b5b1 Fix json linting 2021-08-14 11:41:45 +02:00
Fris0uman d8c32280d7 Update Retrodays 2021-08-14 2021-08-14 11:32:08 +02:00
Fris0uman 703aa9c907 Update Neodays 2021-08-14 2021-08-14 11:31:51 +02:00
Fris0uman 7ca28e6cfa Update MSx 2021-08-14 2021-08-14 11:31:37 +02:00
Fris0uman 08f4ddc195 Update BrownLikeBears 2021-08-14 2021-08-14 11:31:13 +02:00
Fris0uman 87663ae5b2 Update ChibiUltica 2021-08-14 2021-08-14 11:30:49 +02:00
Fris0uman 1326d3e15f Update Ultica 2021-08-14 2021-08-14 11:30:33 +02:00
Andrey Bienkowski e0ad76e039 Refactor: isolate points_left
I am going to refactor newcharacter.cpp and to do that i want to remove
all external usage of points_left.
2021-08-14 12:11:08 +03:00
Salty Panda d880a65881 Properly display for items around, carried and mixed 2021-08-14 11:09:07 +02:00
Salty Panda 6c05adf8d6 Show proper kcal amount
I took 0.75f from consumption.cpp, it's RAW flag calorie multiplier
2021-08-14 11:09:06 +02:00
Salty Panda 7baa00840a Display range of calories
(#48476)
2021-08-14 11:09:06 +02:00
Salty Panda b72ff90621 Display calorie value of ingredients while crafting food 2021-08-14 11:09:06 +02:00
Salty Panda 0d0df6ffbe Balance biochitin items and veh_parts
Reduce durability of vehicle parts
Change values on biosil chitin material
Add NO REPAIR to biosil armors and update descriptions

Didn't block repairing of vehicle parts, since loss of acid-resistance is inessential
2021-08-14 11:07:30 +02:00
Salty Panda efe60db491 Update data/mods/Magiclysm/items/enchanted_rings.json
Co-authored-by: casswedson <58050969+casswedson@users.noreply.github.com>
2021-08-14 11:00:28 +02:00
Salty Panda 362643ccab Update data/mods/Magiclysm/items/enchanted_rings.json
Co-authored-by: casswedson <58050969+casswedson@users.noreply.github.com>
2021-08-14 11:00:28 +02:00
Salty Panda 5c42513d1f Use cube root of volume 2021-08-14 11:00:28 +02:00
Salty Panda 15e3847809 Add holster properties to rings, so they work as intended 2021-08-14 11:00:28 +02:00
Salty Panda 5ec24e58bc Properly display item length considering volume_multiplier on pockets 2021-08-14 11:00:28 +02:00
Salty Panda 0443385a7c Add storage rings 2021-08-14 11:00:28 +02:00
Zhilkin Serg 28bf4971bb Merge pull request #50769 from CleverRaven/kevingranade-fix-transifex-pull-actions
Add a personal token to the pull-translation workflow
2021-08-14 11:51:17 +03:00
curstwist 7aeea2cc79 Lab: add badge checking bots and spawns (#50758)
* add badge checking bots and spawns
Co-authored-by: actual-nh <74678550+actual-nh@users.noreply.github.com>
Co-authored-by: Kevin Granade <kevin.granade@gmail.com>
2021-08-13 23:55:44 -07:00
acepleiades 371600b14f Infrastructure for realistic car sprites and review of car prototypes (#50632)
* add new cosmetic vehicle parts
Co-authored-by: actual-nh <74678550+actual-nh@users.noreply.github.com>
2021-08-13 23:54:25 -07:00
R. Stephens Summerlin 3383e2cfb0 Changing movement mode to walking after waking up (#50698)
* Changing movement mode to walking after waking up

* Added standing up when sleep is canceled
2021-08-13 23:44:55 -07:00
Steven Casper 396346090b Fix typo in .desktop file (#50762) 2021-08-13 23:35:56 -07:00
DracoGriffin c9c1c7afc1 obsolete desert region (#50765)
its dead jim
2021-08-13 23:27:42 -07:00
Jianxiang Wang (王健翔) a253a14c56 Unify zone activity search distance (#50768) 2021-08-13 23:09:37 -07:00
Kevin Granade 51c11c5408 Add a personal token to the pull-translation workflow
The default repository token has special handling to never trigger GH actions runs, but a personal token will.
2021-08-13 23:01:12 -07:00
Eric 9b3c251cf9 Error handling, correction (#50763) 2021-08-13 22:51:56 -07:00
Andrey Bienkowski a271bd2064 Refactor Character::is_wearing_shoes (#50704)
* Refactor Character::is_wearing_shoes

The code was using a pair of tristates no_foot|no_shoe|has_shoe and
updating skipping updates if the caller did not ask for both feet

This should make the logic easier to follow

* Make method declaration match

Co-authored-by: Andrey Bienkowski <hexagon-recursion@posteo.net>
Co-authored-by: Kevin Granade <kevin.granade@gmail.com>
2021-08-13 22:29:56 -07:00
Fireiy aab58c00f9 Decrease copper axe volume (#50679)
* Update woodworking.json

* Update effective_dps_test.cpp
2021-08-13 22:22:20 -07:00
Angela Graves fadf53f970 Merge pull request #50759 from casswedson/nerf-gasket
Nerf plastic gasket's to hit
2021-08-14 00:14:28 -05:00
akrieger a6a220b74e Use WIN32_LEAN_AND_MEAN in Makefile builds targeting Windows (#50754)
Visual Studio builds already use WIN32_LEAN_AND_MEAN, so for consistency
we should do the same here.
2021-08-13 21:47:24 -07:00
Kevin Granade 5a1c720f6f Merge pull request #50734 from eltank/skill_ui
Move theoretical skill display into the skill info panel
2021-08-13 21:46:38 -07:00
Qrox 8e523f5d0d Always handle resize during driving animation 2021-08-14 11:49:16 +08:00
Qrox de5f7650d3 Refresh before showing cancel activity prompt 2021-08-14 11:49:16 +08:00
Qrox bbba28e670 Make auto-move and auto-driving interruptible 2021-08-14 11:49:16 +08:00
Qrox 0c0aff03f0 Redraw more frequently during auto move 2021-08-14 11:49:15 +08:00
casswedson f804b84796 Update data/json/items/tool/misc.json
Co-authored-by: anothersimulacrum <anothersimulacrum@gmail.com>
2021-08-13 18:39:30 -05:00
casswedson f3353d5dec Nerf plastic gasket's to hit
Probably a typo
2021-08-13 18:24:45 -05:00
Kevin Granade f56f7c284d Merge pull request #50739 from anothersimulacrum/materials_windresist
JSONize material wind resistance
2021-08-13 13:51:10 -07:00
Kevin Granade 8999888130 Merge pull request #50721 from Night-Pryanik/dont-stun-robots-and-turrets
Don't stun robots and turrets, don't down immobile monsters
2021-08-13 13:20:19 -07:00
Eric 14f8e2d681 Slim down player class (#50719) 2021-08-13 13:12:31 -07:00
acepleiades 70447f6aa4 Add wheelchair shape to basketsm for spriting (#50709)
* add wheelchair IDs
Co-authored-by: actual-nh <74678550+actual-nh@users.noreply.github.com>
2021-08-13 13:11:24 -07:00
anothersimulacrum 1162d8b045 JSONize material wind resistance
There's no reason for this to be hardcoded, and dynamically constructing
the ids every turn (for Character::update_bodytemp) is actually a
significant performance sink.
Move it to JSON, experience performance improvements.
2021-08-13 13:05:07 -07:00
Eric 7c95f78c15 Add new dialog effects for portal storms. (#50691)
* Add new dialog effects for portal storms.
Co-authored-by: actual-nh <74678550+actual-nh@users.noreply.github.com>
Co-authored-by: Kevin Granade <kevin.granade@gmail.com>
2021-08-13 13:03:38 -07:00
John Bytheway a0ff998dcf Verify cata-serialize works for function templates 2021-08-13 15:57:26 -04:00
John Bytheway 80511033f0 Add suppression option for serialize function
Without this, suppressions had to be applied to the member variables.
With this, there is a way to suppress the errors with a comment in the
function itself.
2021-08-13 15:57:26 -04:00
John Bytheway a78daa1f58 Initial version of cata-serialize check
This check is intended to catch cases where a new member is added to a
class but not to its corresponding (de)serialize function.  That's a
mistake I made recently.
2021-08-13 15:57:26 -04:00
anothersimulacrum 7f17f94dfa Don't generate fire armor info if unecessary
The vast majority of the time, we won't have any blisters - so only go
through the mildly expensive process of getting fire armor when we have
blisters.
2021-08-13 12:39:45 -07:00
anothersimulacrum 04aa59950b Optimize Character::in_climate_control
Don't check every item for a flag for every item the character is
wearing, just check the current flag.
Character::in_climate_control drops off the profile of
Character::bodytemp with this change.
2021-08-13 12:39:45 -07:00
anothersimulacrum b5e51aebe5 Optimize Character::bodytemp
Perform two optimizations on Character::bodytemp
1. Store the items worn on each bodypart, and refer to that instead of
   iterating through all worn items and selecting the ones for the
   relevant body part multiple times.
2. Adjust some functions to run once, and return the data for all body
   parts. This optimization has a fair bit of overlap with #1, but I
   think both have value

There should be no behavioural changes.
2021-08-13 12:39:45 -07:00
anothersimulacrum 3c03d58c1e Optimize get_heat_radiation
Cache a variable, use the already fetched maptile to check the terrain
at the tile instead of looking up the submap again.
2021-08-13 12:39:45 -07:00
Kevin Granade b3c2331b47 Merge pull request #50681 from jbytheway/mapgen_parameters_in_nests
Parametric mapgen part 3: Support mapgen parameters in nests
2021-08-13 12:34:55 -07:00
Zeropol 6db73fe1a9 display gun loudness (#50468)
* display gun loudness

I was unable to test the difference between different fire modes because all the guns I tried actually had the same loudness with their different fire modes

Co-authored-by: Anton Burmistrov <Night_Pryanik@mail.ru>
2021-08-13 12:30:13 -07:00
Kevin Granade 5d09965f5b Merge pull request #50303 from Saicchi/effectsmenu
Rework the add an effect debug command into a menu
2021-08-13 12:27:35 -07:00
Kevin Granade b073d0ffbe Merge pull request #50227 from KorGgenT/manipulator-score
abstract scores for arms and hands
2021-08-13 12:25:50 -07:00
Zhilkin Serg 611fa0730b Merge pull request #50705 from hexagonrecursion/destroy-engine
Fix vehicles spawning with running faulty motors
2021-08-13 21:07:45 +03:00
Zhilkin Serg f4a3bfeacb Merge pull request #50712 from curstwist/add-lights-and-trap-lights-to-some-Lab-OMTs
add lab content: lights, a new light terrain, item_groups and related nests to spawn them.
2021-08-13 21:06:59 +03:00
Maleclypse ccfbeeca15 [Aftershock] Spite Soda (#50514) 2021-08-13 21:05:37 +03:00
Zhilkin Serg 9f20d376b2 Merge pull request #50751 from Ramza13/fix_can_see
Fix issue with can_see always using npc
2021-08-13 21:05:14 +03:00
Zhilkin Serg 8cd0dc48cb Merge pull request #50748 from CleverRaven/push-tx-patch
Update launch condition of push translation template workflow
2021-08-13 21:04:32 +03:00
Zhilkin Serg 51df2445eb Merge pull request #50750 from actual-nh/patch-18
[DinoMod] Copyediting on zinosaur_burned.json
2021-08-13 21:03:58 +03:00
Zhilkin Serg 8d65a36874 Merge pull request #50746 from CleverRaven/LyleSY-patch-8
[DinoMod] remove packs from zombie list
2021-08-13 21:03:51 +03:00
Zhilkin Serg 065f1abe33 Merge pull request #50737 from khudson13/HulkingHorrorDescriptionFix
Fix for Hulking Horror Description
2021-08-13 21:03:21 +03:00
Zhilkin Serg 59a9a231d2 Merge pull request #50743 from jbytheway/extract_strings_warnings
Fix the warnings from extract_json_strings
2021-08-13 21:03:03 +03:00
Ramza13 ba96de7441 Update condition.cpp 2021-08-13 12:43:12 -04:00
actual-nh faacf583fc Copyediting on zinosaur_burned.json
BTW, mosasaurus isn't a dinosaur species?
2021-08-13 12:00:24 -04:00
Binrui Dong fe78d26cf6 Update launch condition of push translation template workflow 2021-08-13 23:02:13 +08:00
LyleSY d42e012d47 [DinoMod] remove packs from zombie list 2021-08-13 09:20:17 -04:00
John Bytheway eb091180e4 Fix the warnings from extract_json_strings
Running extract_json_strings generated a few warnings.  Fix them.
2021-08-13 07:59:37 -04:00
Zhilkin Serg ecc6a8f461 Merge pull request #50742 from Qrox/disassembly
Fix bulk disassembly and disassembly with zero required time
2021-08-13 11:29:29 +03:00
Zhilkin Serg aee614cbac Merge pull request #50728 from eltank/skill_fixes
More skill gain / skill rust fixes
2021-08-13 11:25:55 +03:00
Zhilkin Serg 1e24e04574 Merge pull request #50717 from CleverRaven/LyleSY-patch-5
uncap zombie animal names
2021-08-13 11:24:25 +03:00
LyleSY de849c1ebf [DinoMod] burned zombie dinos (#50722) 2021-08-13 11:23:31 +03:00
Anton Burmistrov 21d3573ed6 Assign seweranhas and sewer snakes to their own newly created factions (#50724)
* Added separate factions for seweranhas and sewer snakes

* Assign seweranhas and sewer snakes to their new respective factions

* Applied @actual-nh suggestion
2021-08-13 11:22:40 +03:00
Zhilkin Serg c03bf7c5ec Merge pull request #50708 from Qrox/extract
Fix string extraction script
2021-08-13 11:22:19 +03:00
Zhilkin Serg 895be821ce Merge pull request #50741 from CleverRaven/push-tx-patch
Fix error in push translation template workflow
2021-08-13 11:21:28 +03:00
Qrox 95d54d1d1a Fix bulk disassembly and disassembly with zero required time 2021-08-13 15:21:51 +08:00
eltank 837b2a89d6 Keep practical and theoretical skill levels equal during chargen (#50738) 2021-08-12 22:48:54 -07:00
Angela Graves 34f8ed311b Merge pull request #50720 from anothersimulacrum/fishy
Restore pike name context
2021-08-13 00:14:42 -05:00
Binrui Dong c186ccc90b Fix error in push translation template workflow 2021-08-13 12:36:39 +08:00
eltank 6a128b282d Update src/player_display.cpp
Co-authored-by: I-am-Erk <45136638+I-am-Erk@users.noreply.github.com>
2021-08-12 21:31:06 -07:00
khudson13 fc3f8cf0ad Update zanimal_upgrade.json
Fix for inappropriately humanoid description
2021-08-12 19:49:15 -07:00
Qrox 69ac06fb1b Extract widget text 2021-08-13 10:24:59 +08:00
eltank 477fadd76f Move theoretical skill display into the skill info panel 2021-08-12 18:29:46 -07:00
John Bytheway 2a9239cabb Delete unused update mapgen bandits_rv 2021-08-12 20:18:27 -04:00
eltank e8f5707081 Revert focus_test to pre-#50262 state 2021-08-12 17:04:37 -07:00
eltank 7d2cd66aea More skill xp fixes:
- fix exercise xp when downgrading 1 level
- cap level ups to at most 1 when gaining xp
- prevent potentiall integer overflow in rust()
2021-08-12 16:29:57 -07:00
eltank 680e9aca5b Always highlight rusty skills
Even if you turn off the rust option from the menu, if you have
accumulated rust before turning it off it will still have an effect on
skill training so highlight the skill to show that.
2021-08-12 16:03:24 -07:00
faefux cff025ef20 Merge pull request #17 from CleverRaven/master
Ywa
2021-08-12 22:36:05 +01:00
eltank e915b48d6e Don't process skill rust if the option is set to "off" 2021-08-12 13:45:57 -07:00
Anton Burmistrov 1f65caca8b Fixed tests 2021-08-12 22:23:20 +04:00
Anton Burmistrov 9abe27cc3a Added documentation for STUN_IMMUNE flag 2021-08-12 21:25:26 +04:00
Anton Burmistrov eb9d2fce82 Made all immobile monsters immune to down effect 2021-08-12 21:25:07 +04:00
Anton Burmistrov bd8fa4b811 Made all robotic-type monsters immune to stun effect 2021-08-12 21:24:50 +04:00
LyleSY d4f776b664 uncap zombie animal names 2021-08-12 11:33:21 -04:00
curstwist 3b080631cb add lights, some new nested maps, minor other addtions 2021-08-12 09:40:31 -04:00
John Bytheway 87ae6fa89b Document nest scoped parameters 2021-08-12 07:32:47 -04:00
John Bytheway f2a5f57655 Randomize nested carpets in house_w_palette
Use the new functionality of mapgen parameters in nests to choose a
random colour of carpet for each carpet used in a nested mapgen using
house_w_nest_palette.

Previously there was a separate symbol for each carpet colour but only 6
(red carpet) was ever used.  Remove the unused symbols and repurpose 6
to mean "random carpet".  Make the parameter of nest scope so each nest
can choose a carpet colour independently.
2021-08-12 07:32:47 -04:00
John Bytheway d9b495dfbe Better debug output for inconsistent distributions
State the two distributions so that it is easier to figure out where
each is coming from and why they are conflicting.
2021-08-12 07:32:47 -04:00
John Bytheway 2ba0d1b0b0 Pass nest-scoped arguments to nest mapgen
A simple bugfix.  Previously we were generating these arguments but not
passing them.
2021-08-12 07:32:47 -04:00
John Bytheway 1614db3cf0 Support mapgen parameters in nested mapgen
We want mapgen parameters to work inside nested mapgen, at all scopes.
To make this work we lift all parameters from nests to overmap terrains
before lifting again from overmap terrains to overmap specials.

At mapgen time, the arguments chosen for these parameters cascade down
in the opposite direction.
2021-08-12 07:32:47 -04:00
John Bytheway e8fc580c90 Overwrite mapgen args when placing special
Previously when placing an overmap special on top of an existing overmap
special (e.g. via the debug menu) the parameters for the old one would
persist and the new one would lack its parameters.  Instead, overwrite
the old with the new.
2021-08-12 07:32:47 -04:00
John Bytheway 6c97a28e96 weighted_list::to_debug_string
Allow dumping a weighted list to a string for debug purposes.
2021-08-12 07:32:47 -04:00
Andrey Bienkowski 31d7f4723d Fix vehicles spawning with running faulty motors
Fixes https://github.com/CleverRaven/Cataclysm-DDA/issues/16888

Stop adding faults to vehicles if destroyEngine is false
2021-08-12 11:07:30 +03:00
Kevin Granade 0f8bd786da Merge pull request #50703 from eltank/fix_skill_rust
Fix a few bugs in skill rust
2021-08-12 00:29:25 -07:00
occulti 7608ca055e Add makeshift earplugs and recipe (#48368) (#50640)
* Create makeshift earplugs and recipie

* Add beeswax material, lint files
2021-08-12 00:21:02 -07:00
occulti 3a4438ae1e Add corrugated sheet metal walls and doors (#49735) (#50575)
* Add corrugated sheet metal walls and doors

* Missed close object for door
2021-08-12 00:20:43 -07:00
Venera3 530bb1cbeb Add some assorted mutant bits (#50221)
* Mutant brains
* Mutant lungs
* Mutant liver
Offal adjustments
* Mutant kidneys
Also no pancreas for you
* Organ meats are good for you, m'kay?
Not inheriting the badness of mutant stuff is a problem, but that's why we have toxins
Co-authored-by: actual-nh <74678550+actual-nh@users.noreply.github.com>
2021-08-12 00:06:21 -07:00
Ram-Z 1b3d580aae Separate TOGGLE_ENTRY action instead of reusing RIGHT (#50214)
In a multi select inventory window the RIGHT action was being reused to
Mark/Unmark an item effectively making it impossible to bind any key to
"Next column" in those menus.

This patch introduces a new action "TOGGLE_ENTRY" bound to '.' and '5'
to select items in those menus.

It does break the previous behaviour and, AFAICS, would require players
to unbind "Next column" globally and rebind it locally if they wish the
old behaviour back.
2021-08-12 00:05:13 -07:00
Xpyder 00cc955257 Change Cut Cotton to Patchwork, add Patchwork to Rags (#50207)
* Change Cut Cotton to Patchwork, add Patchwork to Rags

We're moving away from Rags towards Patchwork Sheets and Cotton Sheets.

This makes it so cutting up cotton stuff gives patchwork sheets, and you can repurpose them as rags if you need to use them in an older recipe

Reupurposing is instant because you don't actually need to change them, you just change how you use them (like to stop bleeding)

* spelling and linting

* uncraft to match recipe

changed uncraft to match recipe
debating whether the uncraft should be removed entirely

* Adding cotton patch as intermediate item

after studying the way sheet_cotton_patchwork was implemented I think that was meant to be for a possible cloth bolt.  adding a cotton_patch intermediate item to replace rags with until I can get clarity on whether we want to use actual clothing bolts/sheets and if so to allow interoperability during the transition

* adjustments for intermediate item

* Update materials.json

* Update recipe_deconstruction.json

* Update recipe_deconstruction.json

* adjust relative qty for cotton_patchwork and it's sheet version

* disassemble sheet bedding -> sheet cotton patchwork

* adjusted cotton patchwork disassembly amount

* linting
2021-08-12 00:04:30 -07:00
CirnoNeBaka 9e1376600c Fix player height adjustment from mutations (#50088)
* Adjust player height calculation based on size category

Make size affecting mutations change player's height based on percentage of the original height (rather than a flat value adjustment) to better match mutation descriptions

* Update unit tests related to body weight

* Add min and max heights for each size category
Make size mutations work based on a deviation from default character height

* Add mountable creatures test
Co-authored-by: I-am-Erk<45136638+I-am-Erk@users.noreply.github.com>
Co-authored-by: anothersimulacrum <anothersimulacrum@gmail.com>
2021-08-12 00:00:32 -07:00
eltank 8dcc284cec Fix drug deal map special terrain (#50697) 2021-08-11 23:47:07 -07:00
eltank afcac23ae3 Overmap path fixes (#50695)
* Don't path through solid rock

* Enable vehicle pathing through subway tunnels
2021-08-11 23:46:35 -07:00
Saicchi 90d4c44a72 Minor tweaks to PLAYER_ACTIVITY.md (#50694) 2021-08-11 23:42:31 -07:00
chrispikula 95d60358d3 Most types of bread don't have a plural form (#50692)
sourdough bread, flatbread, bread, cornbread and wastebread were all changed from str to str_sp
brown bread and hallula were already as such.
2021-08-11 23:41:57 -07:00
Faalagorn 0f0656ffe4 Change XD(M) to XD-M (#50690)
* Change XD(M) → XD-M

* XD(M) → XD-M
2021-08-11 23:39:10 -07:00
John Bytheway 3cd48ce27e Validate item group ids in mapgen (#50684)
Placing item groups using the "items" key was not validating that the
given ids were valid until they came to be used.

Validate them at data validation time.

Fix the issues thereby detected.
2021-08-11 23:37:59 -07:00
curstwist 24fd1d3205 remove unused update_mapgen from workshop (#50678) 2021-08-11 23:33:18 -07:00
Andrey Bienkowski 78297cf39a Clarify several tacoma ranch missions (#50672)
* Clarify the MISSION_RANCH_FOREMAN_1

The item is called "plank" in the game. Referring to it as 2x4 in the quest description caused confusion

* Clarify MISSION_RANCH_FOREMAN_10

The item is called antiseptic in the game. Referring to it as "disinfectant" caused player confusion

* Clarify MISSION_RANCH_FOREMAN_11

The item is called "arc welder" in the game. Referring to it as "electric welder" caused player confusion

* Clarify MISSION_RANCH_FOREMAN_10_1

There was no way to see on the mission screen how many bandages you need to gather.
2021-08-11 23:32:58 -07:00
Kevin Granade 8373691614 Merge pull request #50670 from eltank/autowalk_tweak
Make autowalk more like autodrive
2021-08-11 23:31:54 -07:00
eltank 200f3e901f Fix rust lowering skills below 0 and rust resistance math 2021-08-11 23:19:00 -07:00
RenechCDDA b732a4f775 Balance bird food recipe according to weight of inputs (#50608) 2021-08-11 23:18:05 -07:00
Andrey Bienkowski 453e4bed6c Refactor Character::limb_health_movecost_modifier (#50595)
The issues with the old version:
* Hard to understand reduction steps. KorGgenT already fixed one bug
  caused by this: cc0927b818
* Implicit handling of characters with less then two legs. This was
  actually hiding one more bug: characters with one leg would be treated
  as if the second leg has 0 hp. Note: having a broken leg is different:
  the broken leg is still attached and has 0 hp

Co-authored-by: Andrey Bienkowski <hexagon-recursion@posteo.net>
2021-08-11 23:17:12 -07:00
Anton Burmistrov a7e4a329c3 Second attempt at adding jsonified amigara mine (#50592)
* Second attempt at adding jsonified amigara mine
Co-authored-by: actual-nh <74678550+actual-nh@users.noreply.github.com>
2021-08-11 23:16:14 -07:00
Hymore246 f733257836 Cleaned up SD card data calculations (#50579)
* Cleaned up SD card data calculations
Co-authored-by: Anton Burmistrov <Night_Pryanik@mail.ru>
2021-08-11 23:14:10 -07:00
eltank 093262945d fix typo in Character::mod_knowledge_level 2021-08-11 23:11:12 -07:00
eltank ea1b3314a1 fix negative skills on load 2021-08-11 23:00:49 -07:00
Invalidated-User a7bfe7735e Updating/expanding pickable furniture (#50436)
Co-authored-by: Maleclypse <54345792+Maleclypse@users.noreply.github.com>
2021-08-11 22:52:13 -07:00
Svatopluk1 15e84ca56b Update recharge_station and battery_charger (#50420)
Removed standby power from the Recharging Station. Updated both descriptions to make it clear that they need a vehicle battery to function and that they drain it.
2021-08-11 22:50:18 -07:00
Eric 520fd4a7c7 Add weighted list functionality to dialog effects (#50408)
* Add weighted list functionality

Co-authored-by: anothersimulacrum <anothersimulacrum@gmail.com>
2021-08-11 22:49:28 -07:00
curstwist 86578cfe6c lab monster spawns and eoc (#50336)
* lab monster spawns and eoc

Update to match Kevin's fix for param defaults and change one fallback ID.
2021-08-11 22:47:23 -07:00
Kevin Granade 56e3a8308d Merge branch 'master' into effectsmenu 2021-08-11 22:41:48 -07:00
Kevin Granade 74767320c3 Merge branch 'master' into wetitem 2021-08-11 22:39:23 -07:00
Angela Graves 2b6012c44a Merge pull request #50693 from khudson13/MinorCrossbowUpdate
description corrections for composite bow and crossbow
2021-08-12 00:08:37 -05:00
Eric cb8620166e Shrink player some more (#50652) 2021-08-11 19:11:01 -07:00
I-am-Erk 4814255da0 Tweaking skill rust to fix learning overall (#50176)
* better learning!
phase 1: Track highest xp ever reached, recover rust faster if you are below it, and also gain xp while you regain rust.
increment highestlevel if your highestexperience gets there.
* books only train theory
* rename "highest" to "knowledge" save confusion in long run
* recipe requirements can be theory based
* Books increase theory
and your ability to read a book is based on your theory level
* rust rate drops as you accumulate rust
* make book larnin' show theory experience
Run rust once per day, not at random times. Change the amount of xp lost instead of the frequency you do rust. It's a lot easier to calculate.
* book theory gain falls off as level gap increases
* NPC skill affects their teaching

Co-authored-by: actual-nh <74678550+actual-nh@users.noreply.github.com>
Co-authored-by: Kevin Granade <kevin.granade@gmail.com>
2021-08-11 19:09:59 -07:00
anothersimulacrum baddf44d7c Restore pike context 2021-08-11 17:46:28 -07:00
khudson13 d46b2f9541 bow description fixes
Update composite crossbow and composite bow descriptions to accurately reflect their construction materials.
2021-08-11 16:11:22 -07:00
eltank e3d4729259 Improve autowalk pathing
Target the midpoints of edges between OMTs instead of OMT midpoints,
same as autodrive. Avoids entering and exiting houses for no reason and
uses more efficient (up to sqrt(2) times faster) diagonal movement
instead of zig-zagging.
2021-08-11 14:31:21 -07:00
eltank 36a04776f8 Define midpoint() for rectangles and cuboids 2021-08-11 14:31:21 -07:00
KorGgenT a63be6a24e ranged dispersion modifier 2021-08-11 16:52:22 -04:00
KorGgenT 081d8374a5 thrown dex modifier 2021-08-11 16:52:20 -04:00
KorGgenT 0e8bc6c29c reloading move modifier 2021-08-11 16:52:19 -04:00
KorGgenT c18c18d8b5 melee stamina cost 2021-08-11 16:52:19 -04:00
KorGgenT f83ad3a9c1 melee thrown move modifier 2021-08-11 16:52:18 -04:00
KorGgenT 0ec6602add aim speed modifier 2021-08-11 16:52:18 -04:00
KorGgenT 364542353b blocking score 2021-08-11 16:52:17 -04:00
KorGgenT 8dbc85b147 lifting score
rename bodypart torso
2021-08-11 16:52:16 -04:00
KorGgenT 0e55ee0e5b manipulator score 2021-08-11 16:52:16 -04:00
Maleclypse 216401f5c9 [Magiclysm] Buyers market fluctuation (#50639)
* Buyers market fluctuation

* Update fuel.json
2021-08-11 16:16:35 -04:00
Sofistico 0654628847 [Magiclysm] Make new class weapons - part one (#48187)
* Created the adept magus staff

* lint json

* Fix lint again

* Did the kelvinist ice weapon.

* Quick fix by removing ammo from the json

* Revert

* Revert "Quick fix by removing ammo from the json"

This reverts commit 9b8e4d336a.

* Revert "Revert "Quick fix by removing ammo from the json""

This reverts commit 4469d64df2.

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

Co-authored-by: LaVeyanFiend <51099123+LaVeyanFiend@users.noreply.github.com>

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

Co-authored-by: LaVeyanFiend <51099123+LaVeyanFiend@users.noreply.github.com>

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

Co-authored-by: LaVeyanFiend <51099123+LaVeyanFiend@users.noreply.github.com>

* Fixed charge used for kelvinist weapon

* Finished adding the recipe to the bio and kelv weapons.

Created the bio weapon.

* Lint json.

* Add more space

* Added sharp bone recipe, changed the capitalization

* Fixed some errors in the json to build

* Finished the technimancer weapon

Co-authored-by: LaVeyanFiend <51099123+LaVeyanFiend@users.noreply.github.com>
2021-08-11 16:15:42 -04:00
Angela Graves 5b0c21832a Merge pull request #50577 from StStep/unpack-fix
Fixed unpack leaving containers invalid
2021-08-11 06:37:16 -05:00
Zhilkin Serg 998d767d44 Merge pull request #44683 from wapcaplet/w-sidebar-json
Add data-driven moddable sidebar widgets
2021-08-11 11:33:57 +03:00
eltank c57d4194be Implement clamp() for cuboids
Rectangles already have this functionality.
2021-08-11 00:28:36 -07:00
eltank aab0fe4a70 Implement coords::project_bounds
Useful for e.g. getting the bounds of an OMT in map square coordinates
or the bounds of an overmap in OMT coordinates.
2021-08-11 00:28:36 -07:00
John Bytheway 7fec2ef7d9 Ensure mapgen order is sensible (#50597)
When terrain and furniture were merged into the same mapgen system as
everything else it changed the order in which mapgen happened.  In
particular, some terrain was now placed after nested mapgen, which
caused the terrain from the nest to be overridden.

Add the ability to define an ordering in which the jmapgen_pieces should
be applied, and ensure that terrain and furniture go first.  This should
more closely match what happened before the changes in #48498.

In particular, this fixes #49788, the issue with missing walls in
basements.
2021-08-10 19:10:05 -07:00
Jianxiang Wang (王健翔) fc3ff4c464 Fix reversed hickory query (#50667) 2021-08-10 19:08:01 -07:00
casswedson 4096227b43 Clean up PROFICIENCY_LIST.md (#50660)
* Clean up PROFICIENCY_LIST.md

* add some separation
2021-08-10 19:07:27 -07:00
vipches 7cec0c9e22 Recolor the blackjack oak (#50646)
blackjack oak has the brown color, make it hard to identification between the normal harvested tree and this one, and when it harvested, it turn to green instead of brown, so I change it to yellow to the tree and brown to the harvested one for this tree, in order to share the same color for the harvested tree as the others do.
2021-08-10 19:07:08 -07:00
Faalagorn 5d6af77400 Update 10mm.json (#50659)
Fix a typo: roung → round
2021-08-10 18:56:02 -07:00
khudson13 d314c654ff Update boots.json (#50657)
Fix for issue #50650
All chitin boots (including acid) are now STURDY, WATERPROOF, and VARSIZE.
2021-08-10 18:26:57 -07:00
casswedson d17ef5b4c0 Fix a typo (#50658)
No double spaces needed here
Co-authored-by: actual-nh <74678550+actual-nh@users.noreply.github.com>
2021-08-10 18:25:53 -07:00
Eric 37171ba238 Move more player to character (#50477)
Co-authored-by: Kevin Granade <kevin.granade@gmail.com>
2021-08-10 16:37:51 -07:00
Eric Pierce c12e18892b Move sidebar.json to new data/json/ui directory 2021-08-10 16:16:16 -06:00
John Candlebury ffd812e51a Aftershock: Translocators (#50622) 2021-08-10 18:21:20 +03:00
Zhilkin Serg 2e8fe64358 Merge pull request #50630 from Qrox/punct
Do not remove angle brackets from denial message in inventory UI
2021-08-10 18:18:45 +03:00
Zhilkin Serg 447280a90e Merge pull request #50438 from Broken27/Primitve-oars
Primitive oars recipe
2021-08-10 18:18:20 +03:00
Zhilkin Serg 6ff5179961 Merge pull request #50565 from GuardianDll/spellHaste
[Magyclism] Changings Haste effect to 250%
2021-08-10 18:17:54 +03:00
thesharkdude ba1d766c91 Replace all instances of 'microwave generator' with 'magnetron' (#50642) 2021-08-10 18:16:44 +03:00
Eric ed2f630d83 Move over more player class (#50635) 2021-08-09 23:05:05 -07:00
Angela Graves 59b43757d0 Merge pull request #50618 from Saicchi/atkdescfix
Billous Soldier Zombie acid-attack description fix
2021-08-10 01:04:34 -05:00
Eric c670dbf6e1 Removed player class from veh and wish (#50634)
* Removed player from veh and wish
2021-08-09 23:03:40 -07:00
Venera3 f251163fa3 Suppress mutation message for player-invisible traits (#50434)
* Silent traiting

* Removal
2021-08-09 22:57:22 -07:00
Andrey Bienkowski 6bf2e1590d Add repairs_like to runner pack (#50616)
* Add repairs_like to runner pack

Fixes #50604

* Apply review suggestions

actual-nh suggested that runner_bag should repair like survivor_runner_pack: https://github.com/CleverRaven/Cataclysm-DDA/pull/50616#issuecomment-894900755

Testing: the game loads

Co-authored-by: Andrey Bienkowski <hexagon-recursion@posteo.net>
2021-08-09 22:56:02 -07:00
actual-nh b576ad13ce Correct PROFICIENCY_LIST.md for changes (#50641)
I forgot about doing this earlier; sorry!
2021-08-09 22:54:20 -07:00
Kevin Granade d5dc662fc5 Merge pull request #50576 from Ramza13/variable_dialog
Allow checking variable's in addition to ints in dialog conditions and effects
2021-08-09 22:52:25 -07:00
Kevin Granade 5579a17cf8 Merge pull request #50637 from eltank/offroad_autodrive
Offroad autodrive
2021-08-09 22:51:38 -07:00
eltank b6aa3eada7 Replace overmapbuffer::get_npc_path with new get_travel_path
The new function uses a more flexible set of travel costs for different
terrain types that depends on the mode of transportation.
2021-08-09 18:54:02 -07:00
Álvaro bc1f60e338 Make pseudo_items less pseudo (#50347)
Co-authored-by: Kevin Granade <kevin.granade@gmail.com>
2021-08-09 16:57:32 -07:00
Eric Pierce 37425f784f Add doc/SIDEBAR_MOD.md on data-driven sidebar
Overview and technical docs on using the custom sidebar widgets
2021-08-09 16:15:50 -06:00
Eric Pierce 91ee83a553 Add custom sidebar demo to main sidebar panel
Add a "Custom" sidebar section that can be toggled on for each
sidebar layout (classic/labels and narrow/compact), loading from the
"root_layout_wide" or "root_layout_narrow" widget.
2021-08-09 16:15:50 -06:00
Eric Pierce 2242aae741 Add JSON for sidebar mod
Build on the data-driven sidebar `widget` class, defining a collection
of numeric and graph display elements, including familiar as well as new
informational displays:

- HP bar graphs for each body part, in familiar `|||||` form
- Classic and extended (10-character) stamina graph
- Numeric indicators for sound, focus, pain, moves, str, dex, int, per
- Encumbrance bar graphs for each body part
- Warmth numbers for each body part
- Wide and Narrow root layouts with basic info
2021-08-09 16:15:50 -06:00
Eric Pierce b1bd32dd31 Add widget tests and test data 2021-08-09 16:15:50 -06:00
Eric Pierce 402cdae233 Add widget to type_id, cata_variant, dynamic loader 2021-08-09 16:15:50 -06:00
Eric Pierce adf1187c64 Add widget class for data driven sidebar
This commit adds a `widget` class for rendering a UI view of some
internal value or status variable of an `avatar` (player character).
It includes a generic factory wrapper to load widgets from JSON.

widget_var for linking avatar attributes to widgets:
- focus, move, pain, speed, stamina, stats, HP per bodypart and more

widget class to render avatar variables in UI with labels and layout:
- uses generic_factory to load JSON from widget types
- JSON: id, label, style, var, colors, symbols, width, fill, etc.
- show() to render widget value from avatar instance
- layout() to arrange widgets and do max width padding/alignment
- get_var_value() to return avatar's current "var" value
- color_value_string() to render value with colors
- supporting: value_color(), value_string(), graph(), num()
2021-08-09 16:15:50 -06:00
eltank 6ef5d51232 Add overmapbuffer::ter_existing()
A safer version of overmapbuffer::ter() that doesn't accidentally
generate overmaps. Existing callers of ter() will be migrated in another
PR.
2021-08-09 14:16:12 -07:00
eltank d3fe8903f0 Warn if invoking auto-walk by mistake 2021-08-09 14:16:12 -07:00
CirnoNeBaka b20ada9ea7 Hide fully covered clothes in character description (#50258)
* Hide fully covered items from character and NPC description
Co-authored-by: Kevin Granade <kevin.granade@gmail.com>
2021-08-09 10:44:25 -07:00
Kevin Granade 8855ee088a Merge pull request #50626 from akrieger/nits
An otherwise unremarkable assortment of mild fixes
2021-08-09 10:31:14 -07:00
Qrox e4967dd294 Do not remove angle brackets 2021-08-09 19:28:46 +08:00
eltank b8f446f5c6 Handle vehicle being in different OMT from player when planning path 2021-08-09 00:15:18 -07:00
eltank b4a83ccc1c Refactor pathfinding in overmap_ui.cpp to a helper function 2021-08-09 00:15:18 -07:00
eltank f6b9b930ee Add vehicle::global_square_location() and refactor callers
This function returns a typed tripoint, similar to
Creature::global_square_location().
Callers of vehicle::global_pos3() that really wanted an absolute
position have been changed to use this function instead.
Resolves some "TODO: fix point types"
2021-08-09 00:15:18 -07:00
eltank 9999afd7e7 Remove some unnecessary forced braking when autodrive ends 2021-08-08 23:35:14 -07:00
Angela Graves 9d7ed7d6d9 Merge pull request #50568 from casswedson/add-a-space
Fix item name formatting
2021-08-09 01:29:58 -05:00
eltank 07570f74eb Move "position" and related functions into creature (#50621) 2021-08-08 23:09:24 -07:00
eltank d16c55a902 iwyu cuboid_rectangle.h (#50620) 2021-08-08 23:07:43 -07:00
eltank 2bab47ec4d Use typesafe tripoints in several character/npc methods (#50585) 2021-08-08 23:05:04 -07:00
Kevin Granade c294b92b4d Merge branch 'master' into variable_dialog 2021-08-08 23:03:23 -07:00
Eric 46e519502d Migrate more player code to character (#50474) 2021-08-08 23:01:24 -07:00
ERROR_CODE 2088ff9c53 Add PROFICIENCY_LIST.md for easier browsing of proficiencies (#50453)
* Create PROFICIENCY_INFO.md

* Add spacing for easy reading

* Rename to PROFICIENCY_LIST to better suit file

* Use markdow table syntax + some edits

add requiered_proficiencies and can learn, may be useful for players

* Include magiclysm proficiencies

* Rearrangement into logical categories

This has also enabled spotting a few (likely) errors - like prof_pottery_glazing not requiring prof_pottery, prof_closures_waterproofing not requiring prof_closures, prof_tanning not requiring prof_tanning_basic, prof_safecracking not requiring prof_lockpicking, and various gunsmithing proficiencies not requiring prof_gunsmithing_basic.

Co-authored-by: casswedson <58050969+casswedson@users.noreply.github.com>
Co-authored-by: actual-nh <74678550+actual-nh@users.noreply.github.com>
2021-08-08 23:00:46 -07:00
Andrew Krieger 7d4297d14f cata util deserialize -> deserialize_from_string to avoid SFINAE issues 2021-08-08 22:45:52 -07:00
Andrew Krieger 92aecd6bf7 Make Json functions for string_id templated over string_id
Certain Json functions had a commenting saying 'for string_id' but were
templated over some arbitrary type that supported a `.str()` function.
This was confusing, and made things harder later, so I changed them to
actually match strictly against `string_id<T>` like their `int_id`
counterparts. Then I fixed the one struct that happened to be using that
overload to have a proper named `deserialize` function.
2021-08-08 22:45:51 -07:00
akrieger 8f50e83a54 action.h needs <string> 2021-08-08 22:44:32 -07:00
Andrew Krieger 5df813f3b1 Delete unused static function load_optional_enum_array
Gets rid of a call to JsonIn::get_raw which needs to happen for #50143
2021-08-08 22:43:06 -07:00
Eric 4bc4331d63 Add conditions for terrain type and field type (#50368) 2021-08-08 20:04:31 -07:00
Unknown 9c844dad5b Allow some proficiencies to ignore focus (#50359)
Allow some proficiencies to ignore focus
Co-authored-by: anothersimulacrum <anothersimulacrum@gmail.com>
2021-08-08 19:46:51 -07:00
NotDucc 113660b0c2 223 Changes (#50203)
Co-authored-by: anothersimulacrum <anothersimulacrum@gmail.com>
2021-08-08 19:27:36 -07:00
Saicchi 93bd5f4f77 caustic soldier zombie attack description fix 2021-08-08 21:27:57 -03:00
Zhilkin Serg 8fa3885150 Merge pull request #50598 from RenechCDDA/camp_birdfood
Camp NPCs will refuse to eat inedible animal food
2021-08-09 00:44:09 +03:00
Zhilkin Serg fed0d58d20 Merge pull request #50607 from RenechCDDA/seed_density
Fixed density of legume products
2021-08-09 00:43:49 +03:00
Zhilkin Serg dbbc3e4613 Merge pull request #50602 from hexagonrecursion/skirt
Add a crafting recipe for skirts
2021-08-09 00:43:00 +03:00
Zhilkin Serg d789bf0c7a Merge pull request #50594 from BrettDong/cmake
Set directories on macOS in CMake build script
2021-08-09 00:42:47 +03:00
Zhilkin Serg 6c943893e3 Merge pull request #50605 from BrettDong/push-tx
Retry pushing translation template on failure
2021-08-09 00:42:26 +03:00
Zhilkin Serg a7cec0bf2c Merge pull request #50601 from Fris0uman/bth_scl
Fix Bathroom scale symbol
2021-08-09 00:42:18 +03:00
Zhilkin Serg 327a3ce516 Merge pull request #50606 from BrettDong/msvc-sound
Backport BN's MSVC sound fix
2021-08-09 00:41:51 +03:00
Zhilkin Serg 2c2f6ca79b Merge pull request #50609 from CleverRaven/mac-font
Disable Terminus.ttf on Mac
2021-08-09 00:41:25 +03:00
Zhilkin Serg 2f12e31902 Merge pull request #50610 from CleverRaven/duplicate-unitfont
Fix duplicate unitfont.ttf in config/fonts.json
2021-08-09 00:38:06 +03:00
Zhilkin Serg 7a64f7e7ce Merge pull request #50611 from Fris0uman/tilest_update
Tilest update
2021-08-09 00:37:53 +03:00
RenechCDDA a5542eecc9 Fix conversion error, .19g--->19g 2021-08-08 17:13:55 -04:00
Saicchi d39a618a33 desc fix 2021-08-08 16:30:17 -03:00
Fris0uman 4400de8341 Update Chibi Ultica 2021-08-08 2021-08-08 19:52:47 +02:00
Fris0uman f0af819084 Update MshockXotto+ 2021-08-08 2021-08-08 19:51:45 +02:00
Fris0uman 955a597977 Update Neodays 2021-08-08 19:49:26 +02:00
Fris0uman a502ac49b5 Update Retrodays 2021-08-08 2021-08-08 19:48:12 +02:00
Fris0uman 75ffa065db Update Ultica 2021-08-08 2021-08-08 19:42:47 +02:00
Binrui Dong c5e3ba4016 Retry pushing translation template on failure 2021-08-09 01:29:34 +08:00
Binrui Dong 451ffd1ea2 Disable Terminus.ttf on Mac 2021-08-09 01:21:50 +08:00
Binrui Dong 36fe31fc6e Fix duplicate unitfont.ttf in config/fonts.json 2021-08-09 01:02:23 +08:00
Binrui Dong 855408cd2b Remove dynamic-load from .appveyor.yml 2021-08-09 00:24:37 +08:00
Binrui Dong df2bf91299 Remove "dynamic-load" tag from vcpkg.json 2021-08-09 00:24:29 +08:00
Binrui Dong dbcd99ea68 Backport BN's MSVC sound fix
From https://github.com/cataclysmbnteam/Cataclysm-BN/commit/2cb8123461042f528d1eb63b17edd2e197e5c9f7
2021-08-09 00:15:18 +08:00
RenechCDDA fe2eddba24 Remove vestigial copy-from, was erroneously causing stack size inheritance and could cause future problems 2021-08-08 12:05:10 -04:00
RenechCDDA 681b4374d4 Recalculate per-unit weight so a full stack of the item (250mL) is the same weight, without being ridiculously dense 2021-08-08 12:04:04 -04:00
Binrui Dong 45f6a3b77f Set directories on macOS in CMake build script 2021-08-08 23:22:23 +08:00
GuardianDll 6d9a958334 lint 2021-08-08 17:22:16 +02:00
Ramza13 64b61b0e90 Update npctalk.cpp 2021-08-08 10:22:32 -04:00
GuardianDll 758d434b67 Overdrive 2021-08-08 16:13:22 +02:00
Andrey Bienkowski ae498c354e Add a crafting recipe for skirts
My character (Alice) accidentally destroyed her skirt while trying to repair it. She wanted to craft herself a new skirt and was surprised to discover that crafting skirts is not implemented.

Full disclosure: I know nothing about tailoring. I simply copied the jeans recipe
2021-08-08 17:08:04 +03:00
Ramza13 2d1ae34be2 Add int_or_var to dialog effects
Update NPCs.md
2021-08-08 09:57:57 -04:00
Ramza13 c26b1d6ec7 Add variable input to all int input conditions and add new random function
Update condition.cpp

Build fix
2021-08-08 09:49:30 -04:00
Ramza13 8b34534345 Add new variable or int type for one condition 2021-08-08 09:49:30 -04:00
RenechCDDA 5f38902c67 Camp NPCs will refuse to eat inedible animal food 2021-08-08 09:46:21 -04:00
Fris0uman 50488ec0f1 Fix Bathroom scale symbol 2021-08-08 15:44:36 +02:00
Binrui Dong d213995dc3 Fix incorrect EOC effect message JSON key (#50593)
* Fix incorrect EOC effect message JSON key

* also fix afs json

Co-authored-by: Fris0uman <sthapplz@gmail.com>
2021-08-08 15:58:24 +03:00
Jakub Cieplinski 13301460a8 Prone move mode (#46750) 2021-08-08 13:09:22 +03:00
Zhilkin Serg facc2444af Merge pull request #50557 from occulti/ShelfStableMilk
Change shelf stable milk shelf life and decrease spoil rate to 2% for sealed container (#50519)
2021-08-08 13:08:55 +03:00
Zhilkin Serg 3127df57db Merge pull request #50479 from Qrox/disassemble
Allow disassembling from nearby workbench
2021-08-08 12:58:17 +03:00
Zhilkin Serg f9bbf49177 Merge pull request #50546 from kevingranade/fix-disarm-crash
Avoid crashing when the player's gun is destroyed while firing.
2021-08-08 12:52:43 +03:00
LyleSY 82ccd00919 [Aftershock] achievements (#50567) 2021-08-08 12:39:41 +03:00
Curtis Merrill 22d6026587 move ranged stuff out of player (#50483) 2021-08-08 12:35:05 +03:00
Eric 9ea592c80c Remove player class from gameinventory (#50481) 2021-08-08 12:34:44 +03:00
Anton Burmistrov 853fe10aa7 Replaced simple boarded door to prisoners' hideout with reinforced boarded door (#50484)
* Replaced simple boarded door to prisoners' hideout with reinforced boarded door

* Made sure no zombie brutes spawning in the vicinity of the prisoners' hideout
2021-08-08 12:32:51 +03:00
Zhilkin Serg 37ceda9f05 Merge pull request #50581 from jwt27/cmake-install
cmake: set RELEASE variable to generate install target
2021-08-08 12:32:05 +03:00
Zhilkin Serg 4672cd0c44 Merge pull request #50588 from hexagonrecursion/patch-1
Fix the wooden privacy gate name
2021-08-08 12:31:35 +03:00
Unknown b708ceadcf Fast reflexes rebalance (#50467) 2021-08-08 01:13:28 -07:00
github-actions[bot] 12e713d04c Update the table of contents (#50587)
Co-authored-by: Rivet-the-Zombie <Rivet-the-Zombie@users.noreply.github.com>
2021-08-08 01:11:37 -07:00
Andrey Bienkowski ecd5038514 Fix the wooden privacy gate name
The game has both t_splitrail_fencegate_c and t_privacy_fencegate_c. One is see-through, the other is not. Both used were described as "wooden split rail gate" in-game.
2021-08-08 07:40:47 +00:00
Eric 4fc4b31c79 Add supporting infrastructure for first version of migo bio-tech (#50178)
* Add ability to store random variable value.
* Allow add morale dialog function to use time strings
* Add ability to set item name by variable

Co-authored-by: chaohedgehogs <46550455+chaohedgehogs@users.noreply.github.com>
2021-08-07 23:13:31 -07:00
Angela Graves c2069e98f3 Merge pull request #50488 from chrispikula/Doc-Update
Update JSON_INFO "covers" to tell about X_EITHER options
2021-08-08 01:10:35 -05:00
CirnoNeBaka 96497661b9 Show exactly which traits are conflicting with the selected trait at character creation (#50001)
Co-authored-by: Kevin Granade <kevin.granade@gmail.com>
2021-08-07 22:14:27 -07:00
Eric f6abf4b481 Create talker monster, add ability for spells to use dialog effects/conditions (#49986)
* Add talker monster
* Add ability for dialog effects to cast spells

Co-authored-by: Kevin Granade <kevin.granade@gmail.com>
2021-08-07 22:13:17 -07:00
Unknown 8a481a5d23 Impact and Skewer Knuckles (#49914)
Co-authored-by: Jianxiang Wang (王健翔) <qrox@sina.com>
2021-08-07 22:10:23 -07:00
Kevin Granade 91953ad447 Fix android build (#50584) 2021-08-07 21:54:11 -07:00
Kevin Granade 58ecdb090c Merge pull request #50583 from casswedson/fix-json-style
Fix JSON style error
2021-08-07 21:53:15 -07:00
casswedson da6529e6a2 fix double spaces after period 2021-08-07 21:51:09 -05:00
I-am-Erk eec139855b Change Quadruped flamethrower to a spell effect (#50117)
* replace flamethrower with a weapon pod
Adjust description to clarify threat level
Co-authored-by: Kevin Granade <kevin.granade@gmail.com>
2021-08-07 19:11:11 -07:00
casswedson 36bbbd1e0c Fix JSON style error 2021-08-07 21:05:38 -05:00
furrycomunityaccount 203d0eed82 Improvised Maces (#50097)
* added two improvised maces

I added two improvised maces modified from the mace_inferior.  Both are shorter than the base mace, both have their own prices and descriptions,  and both have the belt clip flag . The Trench Mace is otherwise identical to the base, and the Simple Mace has the Fragile  flag. I also added recipes for both maces based on the recipes for the knife spear/simple kinife spear.

* Update bludgeons.json
2021-08-07 18:59:04 -07:00
Hymore246 38aa25840b Recipes in books are listed in categories based on skills (#49893) 2021-08-07 18:55:14 -07:00
J.W. Jagersma db8f0d3de2 cmake: set RELEASE variable to generate install target 2021-08-08 00:54:57 +02:00
Zhilkin Serg d1d5c522c8 Merge pull request #50435 from kevingranade/extract-do-turn
READY extract do_turn from game
2021-08-08 00:45:24 +03:00
R. Stephens Summerlin 990ddcf18f Fixed unpack leaving containers invalid 2021-08-07 17:43:35 -04:00
satheon49 8c7183e718 random cosmetic traits respect scenario (#50224) (#50528)
* random cosmetic traits respect scenario (#50224)

* fix regression: exclude zero cost traits from good traits
2021-08-08 00:42:06 +03:00
Zhilkin Serg 5e75957906 Merge pull request #50564 from jwt27/cmake-prefix
cmake: don't use PREFIX variable
2021-08-08 00:40:43 +03:00
Zhilkin Serg 01d3c78b05 Merge pull request #50562 from jwt27/cmake-data
cmake: install core and help directories
2021-08-08 00:40:28 +03:00
Zhilkin Serg 4040a09318 Merge pull request #50550 from eltank/no_forced_hospital
Avoid placing hospitals in the woods during MISSION_SCIENCE_REP_1
2021-08-08 00:40:05 +03:00
Zhilkin Serg 6f17f3175b Merge pull request #50549 from eltank/fix_scrolling_worldgen
Don't trigger worldgen while scrolling the overmap
2021-08-08 00:39:32 +03:00
Zhilkin Serg 72d1acf9ea Merge pull request #50563 from BrettDong/catch2
Update Catch2 to v2.13.7
2021-08-08 00:39:01 +03:00
Zhilkin Serg 58c4537ed5 Merge pull request #50560 from BrettDong/mac-build
Recursively search and bundle Mac dependencies
2021-08-08 00:38:46 +03:00
eltank 775d9e9f4a Don't trigger worldgen while scrolling the overmap 2021-08-07 14:13:47 -07:00
eltank 1261d7cb16 Don't try to force placement of hospital in MISSION_SCIENCE_REP_1 2021-08-07 14:13:19 -07:00
casswedson e78976364a Fix item name formatting 2021-08-07 11:54:09 -05:00
Unknown bcb8e7f596 More Hobbies (#50330)
Squish

Hobbies in Character Creation (#50262)

* Hobbies in Character Creation

Hobbies

Drug addictions are hobbies

Update newcharacter.cpp

cleanup + multiples of the same item

no items for hobbies. For now.

Update newcharacter.cpp

fix addictions

Hobbies give partial exp in chargen

convert hobby flag to subtype

fix build errors

fix focus tests

Squish

* Update savegame_json.cpp

* fix #50301

* Update data/json/hobbies.json

* Update data/json/hobbies.json

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

* refluff camping

* Update hobbies.json

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

martial fencing

Beginning of more hobbies

Update hobbies.json

Yet more hobbies

Update data/json/hobbies.json

Update data/json/hobbies.json

Update data/json/hobbies.json

squish

Update data/json/hobbies.json

Update data/json/hobbies.json

Update data/json/hobbies.json

Update data/json/hobbies.json

Update data/json/hobbies.json

Update data/json/hobbies.json

Update data/json/hobbies.json

Update data/json/hobbies.json

Update data/json/hobbies.json

Update data/json/hobbies.json

Update data/json/hobbies.json

Update data/json/hobbies.json

Update data/json/hobbies.json

Update data/json/hobbies.json

Update data/json/hobbies.json

Update data/json/hobbies.json

Update data/json/hobbies.json

Update data/json/hobbies.json

Update data/json/hobbies.json

Update data/json/hobbies.json

Update data/json/hobbies.json

Update data/json/hobbies.json

Update data/json/hobbies.json

Update data/json/hobbies.json

Update data/json/hobbies.json

Update data/json/hobbies.json

Update data/json/hobbies.json

Update data/json/hobbies.json

Update data/json/hobbies.json

Martial arts as hobbies

Convert traits to hobbies

Fix reporting of hobbies with conflicting traits

Update hobbies.json

Update hobbies.json

dial back trait conversion to hobbies

Update hobbies

dial back martial arts hobbies

Update mutations.json

Update data/json/mutations/mutations.json

update some hobbies

Update data/json/hobbies.json

Update data/json/hobbies.json

Update data/json/hobbies.json

Update data/json/hobbies.json

Update data/json/hobbies.json

Update data/json/hobbies.json

Update data/json/hobbies.json

Update data/json/hobbies.json

Update data/json/hobbies.json

Update data/json/hobbies.json

update hobbies

Co-Authored-By: I-am-Erk <45136638+I-am-Erk@users.noreply.github.com>
Co-Authored-By: AngryFerret <51099123+LaVeyanFiend@users.noreply.github.com>

Co-authored-by: I-am-Erk <45136638+I-am-Erk@users.noreply.github.com>
Co-authored-by: AngryFerret <51099123+LaVeyanFiend@users.noreply.github.com>
2021-08-07 09:41:26 -07:00
GuardianDll a72202da0e haste 300% -> 250% 2021-08-07 18:26:23 +02:00
Binrui Dong 45a1a637e4 Update Catch2 to v2.13.7
This fixes compile error with new glibc version.
2021-08-08 00:24:04 +08:00
J.W. Jagersma 7cbcecb18f cmake: don't use PREFIX
`PREFIX` is a reserved word in CMake and breaks compiler and library detection
when set.  Using `CMAKE_INSTALL_PREFIX` instead resolves this.
2021-08-07 18:04:31 +02:00
J.W. Jagersma 7e588b20ec cmake: install core and help directories 2021-08-07 17:41:24 +02:00
Binrui Dong 131895315b Recursively search and bundle Mac dependencies 2021-08-07 23:08:32 +08:00
Zhilkin Serg f9aaa925c3 Merge pull request #50558 from ZhilkinSerg/astyle-2021-08-07
Fix astyle regressions
2021-08-07 17:43:10 +03:00
Zhilkin Serg 06d61f3948 Fix astyle regressions 2021-08-07 17:25:24 +03:00
Zhilkin Serg 351195f651 Merge pull request #50547 from Qrox/label
Do not remove vehicle label when canceling input
2021-08-07 17:21:49 +03:00
Zhilkin Serg e9ce9a18f2 Merge pull request #50555 from Faalagorn/patch-2
Add missing dot and the end of the sencence
2021-08-07 17:21:26 +03:00
Zhilkin Serg f8f52baf45 Merge pull request #50551 from Faalagorn/patch-1
Change "driving" to "vehicles" skill name
2021-08-07 17:21:12 +03:00
Zhilkin Serg 032b5d4758 Merge pull request #50556 from Zeropol/quarterstaff-looks-like-something
Make ironshod quarterstaff looks like quarterstaff
2021-08-07 17:20:55 +03:00
GuardianDll 045132f456 [Magiclysm] Adding more attunement spells (3/3) (#49811)
* Wither mage+vulcanist+void mage+alchemist(+items+renaming)

* attunements

* bombs and mines

* increasing damage for horison vortex so its not so weak against crowds

* some final grasp tweaks

* lint

* rewrited horizon vortex to work as abstract

* fixing bugs

* lint

* Update Void_Mage.json

* Apply suggestions from code review

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

* delete unnececarry MUST_HAVE_CLASS_TO_LEARN

* added recipe for alchemist bomb, temporary in other category

* Update Void_Mage.json

* Missed space

* deleted unnececarry comment

* 40 lvl -> 35 lvl

* lint

* Apply suggestions from code review

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

* difficulty 10 -> 7

* added price to mana bomb

* rename alchemical mine

* Update attunements.json

Co-authored-by: actual-nh <74678550+actual-nh@users.noreply.github.com>
Co-authored-by: Curtis Merrill <curtis.r.merrill@gmail.com>
2021-08-07 10:18:17 -04:00
zeropol 23ad8a6427 Make ironshod quarterstaff looks like quarterstaff
It was hard to tell when the ironshod quarterstaff was wielded because it had no "looks_like" entry.
2021-08-07 16:14:30 +02:00
occulti 4be6093e31 Change UHT Milk shelf life 2021-08-07 15:06:37 +01:00
Faalagorn f348b70bc1 Add missing dot and the end of the sencence
The dot after the sentence that is present with other strings is missing here. Found on Transifex when translating the game to Polish.
2021-08-07 15:34:42 +02:00
Faalagorn 3ab3e3ac76 Change "driving" to "vehicles" skill name
The skill name is not consistent with the statistics (level 10 string is correct). Found when translating the game on Transifex.
2021-08-07 13:28:29 +02:00
Qrox 3719e0cba4 Do not remove vehicle label when canceling input 2021-08-07 16:19:25 +08:00
Zhilkin Serg 1d6189f3c9 Merge pull request #50471 from Marrim/atomic-headlamp-pr
Atomic headlamp should not have DURABLE_MELEE
2021-08-07 11:04:03 +03:00
Andrey Bienkowski 6b64f3791e doc: Clarify MGOAL_GO_TO mission goal (#50480) 2021-08-07 11:03:55 +03:00
Zhilkin Serg 4bc4fe6d15 Merge pull request #50494 from hexagonrecursion/isherwood_farms
Fix the mission 'Visit the Isherwoods' that was impossible to complete
2021-08-07 11:03:30 +03:00
Zhilkin Serg 3b2d20051e Merge pull request #50478 from hexagonrecursion/pizzaiolo
Clarify the mission descriptions in the pizzaiolo quest line
2021-08-07 11:03:19 +03:00
Zhilkin Serg 290bf423af Merge pull request #50458 from Broken27/Island-crash
Added desert island start location to Helicrash scenario.
2021-08-07 11:03:10 +03:00
LyleSY c78b63cbc7 [DinoMod] ostrich armor (#50515) 2021-08-07 11:02:41 +03:00
LyleSY c9b14489c0 [DinoMod] DinoLab and Dino Exhibit starts (#50513) 2021-08-07 11:02:22 +03:00
Zhilkin Serg 1d26f26646 Merge pull request #50501 from CleverRaven/LyleSY-patch-9
[DinoMod] rebalance 2021
2021-08-07 11:02:09 +03:00
LyleSY 6bbbe488ea [DinoMod] some dinos don't bleed (#50470) 2021-08-07 11:01:58 +03:00
LyleSY 47bf9ca1d1 [DinoMod] Dinos in the subway (#50446) 2021-08-07 11:01:45 +03:00
Zhilkin Serg 0902d50a64 Merge pull request #50425 from Maleclypse/Fix-some-ids-that-need-plurals
[Aftershock]  Grammar and name fixes for Aftershock
2021-08-07 10:58:25 +03:00
LyleSY 7e8a501d73 [DinoMod] achievements (#50476) 2021-08-07 10:48:49 +03:00
ferociousdork 9fbbc57a04 Fix gaseous fields spreading into solid objects. Fixes #50486 (#50500) 2021-08-07 00:35:47 -07:00
Serhiy Zahoriya d1df1b6c68 compose.py: opt-in JSON formatting (#50507) 2021-08-07 00:34:20 -07:00
Serhiy Zahoriya d754926100 Rebar cage breaks into concrete floor, not pit (#50508) 2021-08-07 00:33:19 -07:00
Curtis Merrill f398549c7c create HARDTOHIT trait flag (#50509) 2021-08-07 00:33:02 -07:00
satheon49 f920a2b28c fixes crash during save due to invalid ammo_location (#50399) (#50525) 2021-08-07 00:32:03 -07:00
Saicchi c8d0a0ce5e Make harvesting trees and underbrushes an activity (#50538)
* harvest activity actor

* use harvest activity actor

Co-authored-by: Saicchi <Saicchi@users.noreply.github.com>
2021-08-07 00:30:18 -07:00
actual-nh 00dfd267d3 Make driver speed not cause problems with driving (#50539)
* Make driver speed not cause problems with driving

A high driver speed, such as from a Magiclysm haste spell, was causing
increased - not decreased - fumbles. Fixes #50462.

* Penalty is negative, cost should not be a problem

Co-authored-by: eltank <8000047+eltank@users.noreply.github.com>

Co-authored-by: actual-nh <actual-nh@users.noreply.github.com>
Co-authored-by: eltank <8000047+eltank@users.noreply.github.com>
2021-08-07 00:29:17 -07:00
Jianxiang Wang (王健翔) 826ed8a2e6 Avoid division-by-zero (#50543) 2021-08-07 00:27:52 -07:00
Saicchi 654dbd645c Migrate safecracking to an activity_actor (#48564)
* safecracking activity_actor base
* safecracking use activity_actor
* safecracking tests
* safecracking split proficiency experience
* safecracking give devices experience

Co-authored-by: Saicchi <Saicchi@users.noreply.github.com>
Co-authored-by: Kevin Granade <kevin.granade@gmail.com>
2021-08-07 00:23:26 -07:00
exuvo 0577b28b0c Fix manually assigned item letter being removed on unwield (#50173)
* Fix auto inventory letters only assigning wield or wear, stop duplicating letters.
* Fix unwielding item removing manually assigned letter
* Add new argument to inventory add functions for if item comes from character inventory

Co-authored-by: Kevin Granade <kevin.granade@gmail.com>
2021-08-06 23:34:02 -07:00
github-actions[bot] 6cacde3ba4 Routine i18n updates on 07 August 2021 (#50544)
Co-authored-by: Brett Dong (BOT) <brett.browning.dong@gmail.com>
2021-08-06 23:13:04 -07:00
Curtis Merrill f701c3f0e1 i'm wearing shoes dangit (#50537) 2021-08-06 23:01:34 -07:00
Angela Graves 75890e4077 Merge pull request #50536 from satheon49/fishing_spears
Fishing spears can be stored in spear strap
2021-08-07 00:17:14 -05:00
Kevin Granade 64a14d156b Avoid crashing when the player's gun is destroyed while firing.
Rearrrange player::fire_gun() to avoid dereferencing the player's weapon after dropping it.
2021-08-06 20:33:09 -07:00
satheon df946c15b6 fishing spears are spears (#50523) 2021-08-06 22:17:34 +02:00
Unknown 0c328f5a2b add stamina cost to archery (#50128)
archery is tiring and it scales with proficiency
add stamina cost to archery
archery is tiring

Co-authored-by: actual-nh <74678550+actual-nh@users.noreply.github.com>
Co-authored-by: Kevin Granade <kevin.granade@gmail.com>
2021-08-06 12:43:25 -07:00
Hirmuolio b6d9bfd981 Remove item ammo check functions that did the exact same thing. (#50175) 2021-08-06 12:42:16 -07:00
Kevin Granade b3b71f2115 Adjust CBA to be runnable again (#50533)
This limits the CBA workflow to using a single worker in normal operation on pushes to master so we have an ongoing record of build profiles.
Additionally enables manual triggering so we can test specific branches if desired.
2021-08-06 12:41:32 -07:00
Álvaro 0b250e7f78 Fix graphical overmap notes displays & mission arrow (#50190)
* Fix graphical overmap notes display & mission arrow

* Invalidate region to properly refresh overmap windows

* Avoid SDL_RenderSetClipRect() calls

* Draw NPCs only on their Z level

* Add missing SDL_RenderSetClipRect() reset at the end of draw_om()

* Update src/sdltiles.cpp

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

* Remove unneeded comment

* Add color tag support to graphical overmap notes

* You didn't see this. Don't make me rebase.

* Remove unused variables

* Fix city label & note position

* Fix NPC notes displaying when NPCs aren't visible

* Change auto-travel path to use higlight instead of cursor sprite

Co-authored-by: Jianxiang Wang (王健翔) <qrox@sina.com>
2021-08-06 11:55:39 -04:00
Angela Graves 1a5362dfba Merge pull request #50487 from AccountAlias/lawn-mower
Audit lawn mower length
2021-08-06 01:31:34 -05:00
Curtis Merrill 6a49389678 allow the player to gain and lose limbs (#47561) 2021-08-05 22:39:42 -07:00
LyleSY 0a9e3ba749 [DinoMod] rebalance 2021 2021-08-05 13:08:18 -04:00
Angela Graves c850e911f9 Merge pull request #50482 from Night-Pryanik/buff-bar-doors
Significantly increased damage threshold of metal bar doors
2021-08-05 05:35:37 -05:00
Kevin Granade 88ebf77887 Merge pull request #50426 from BrettDong/burn_rate
Fix potentially incorrect floating-point arithmetic on MinGW
2021-08-05 00:14:29 -07:00
actual-nh 013c199298 [CR] Fix some proficiency inconsistencies. (#50464)
* Fix some proficiency inconsistencies.

Some proficiencies were lacking their logical prerequisites. Some
others need checking, such as prof_gunsmithing_antique and
prof_gunsmithing_basic. Discovered due to #50453.

* Update data/json/proficiencies/misc.json

* Update data/json/proficiencies/tailoring.json

* Update data/json/proficiencies/traps.json

* Note re closures; gunsmithing_antique fix

Commented re `prof_closures_waterproofing` that name including
`closures` is historical artifact. Added `prof_gunsmithing_basic` as
prerequisite to `prof_gunsmithing_antique`.

Co-authored-by: actual-nh <actual-nh@users.noreply.github.com>
2021-08-04 21:39:46 -07:00
Andrey Bienkowski 3026c539d7 Fix the "Visit the Isherwoods" mission
The mission was impossible to complete due to "goal": "MGOAL_GO_TO".
A mission with this type of goal when given by an NPC is an escort
quest. The only way to complete it is to talk to the quest giver while
standing in the destination overmap tile. Since Mr Lapin does not follow
the player the mission never finishes.

One alternative fix could be to make Mr Lapin follow the player but in
this case the intention was clearly for the player to travel to the
destination alone.

Mission goals rejected:
* MGOAL_GO_TO and MGOAL_GO_TO_TYPE - escort quests
* MGOAL_FIND_NPC - I do not understand how this mission goal is supposed
  to work. From the C++ code it looks as if the objective of the mission
  it to find the quest giver and talk to them. There are no examples in
  the codebase of how to use this mission type
* MGOAL_TALK_TO_NPC - Every example of this mission goal in the codebase
  spawns a new NPC and marks it as the target. I do not know how to mark
  an existing NPC as the target

I also fixed the type and context of the goal_condition. They were
incorrect and preventing the mission from completing. Additionally I
updated the mission description to clarify what the player is supposed to
do in order to complete the mission.

Testing: I was successfully able to complete the mission.
2021-08-05 07:37:50 +03:00
Ashutosh Dubey b8402946dc Modified the Batwing Zombie Description (#50383) (#50460)
Co-authored-by: Binrui Dong <brett.browning.dong@gmail.com>
2021-08-04 16:28:17 -07:00
chrispikula 2e18928a6e Update JSON_INFO "covers" to tell about X_EITHER options
So, it turns out that github fails at letting you search for things with an '_' in them, thus it looks like LEG_EITHER ARM_EITHER HAND_EITHER and FOOT_EITHER are subject to a vast depreciation conspiracy.
2021-08-04 17:11:16 -06:00
AccountAlias bef637a287 Audit lawn mower length 2021-08-04 17:43:13 -04:00
Anton Burmistrov 8b690392b3 Significantly increased damage threshold of metal bar doors 2021-08-04 21:12:52 +04:00
Qrox c4c6b48a7a Calculate light map after loading instead of every turn 2021-08-05 00:27:35 +08:00
Qrox c4c1e97634 Fix crash when loading old save without saved disassembly target 2021-08-05 00:27:35 +08:00
Binrui Dong a1b9ffa295 Reset x86 floating point mode on Windows 2021-08-04 23:54:06 +08:00
Andrey Bienkowski dd405332cd pizzaiolo quest: improve the mission descriptions 2021-08-04 17:38:56 +03:00
Qrox ac09a9ee96 Fix deserialization of crafting and disassembly activities 2021-08-04 22:29:33 +08:00
Qrox 4b6abd68fa Use activity level during disassembly 2021-08-04 22:29:32 +08:00
Qrox 4d158c3556 Apply crafting speed penalties to disassembly 2021-08-04 22:29:32 +08:00
Qrox 34f7ea82b3 Place disassembly on nearby workbench 2021-08-04 22:29:32 +08:00
Qrox cd5d78b57a Put disassembly results at the original item position 2021-08-04 22:29:32 +08:00
Qrox caa0208366 Wield disassembly before use 2021-08-04 22:29:31 +08:00
Qrox acc29c1ec1 Allow continue disassembly from a workbench 2021-08-04 22:29:31 +08:00
Dmitriy "Murphy" Kubasov 1057704d21 Update tool_armor.json 2021-08-04 20:58:10 +08:00
Binrui Dong 72b882e643 Call std::round for rounding in burden_player() in stamina test
The plain static_cast<int>() gives a different rounding result on MinGW
cross compile test workflow on GitHub Actions.
2021-08-04 20:44:32 +08:00
Angela Graves ab9621dd20 Merge pull request #50365 from Saicchi/jsonizeboltcut
Jsonize bolt cutting activity actor
2021-08-04 03:34:28 -05:00
Unknown b2ca628670 Prevent display of martial arts traits as traits (#50448) 2021-08-03 22:05:13 -07:00
Álvaro c4309e3c5c Fix dropping worn items from AIM (#50452) 2021-08-03 22:03:41 -07:00
Jianxiang Wang (王健翔) 2807c6e909 Add plural for "pieces of a book" (#50456) 2021-08-03 22:02:30 -07:00
casswedson 3e5ab2a7ba fix typo in proficiencies/wilderness.json (#50459) 2021-08-03 22:01:56 -07:00
Eric 0c02da6919 Migrate some player functions to character (#50466) 2021-08-03 21:59:09 -07:00
Curtis Merrill ef0245e65e remove some stuff from player (#50444) 2021-08-03 21:39:40 -07:00
actual-nh a08e2d9fc2 matrix.yml ordering changes, title fix (#50433)
* matrix.yml ordering changes, title fix
* Swap last 2
I had originally put the g++-7 one before the clang++-6 because of --mods=magiclysm. Since that isn't there any more, swapping around for clang/gcc alternation and clang version breadth coverage.
* ASan, UBSan, GOLD rearrangement
UBSan instead of ASan for mac; not doing GOLD/LTO for g++ with ASan + UBSan (see #47108). Considering putting test-stage back in for MinGW.
2021-08-03 20:42:08 -07:00
Broken27 d239e6fe77 Added desert island starts to Helicrash sceneario.
Added the desert island starts already avaliable for wilderness scenario to helicopter crash.
2021-08-03 15:02:37 +02:00
Zhilkin Serg 08378ceb55 Merge pull request #50349 from mqrause/random_hobbies
Random characters have hobbies
2021-08-03 12:13:27 +03:00
LyleSY 6827cfce63 [DinoMod] juvenile dino bugfixes (#50377) 2021-08-03 12:07:19 +03:00
Zhilkin Serg 3a9df5aa02 Merge pull request #50437 from Saicchi/killarea
Debug command kill creatures in area
2021-08-03 12:06:18 +03:00
Zhilkin Serg 55c8d1105c Merge pull request #50443 from CleverRaven/LyleSY-patch-2
[DinoMod] dinos don't hear great
2021-08-03 12:05:46 +03:00
Zhilkin Serg 5337de7fd7 Merge pull request #50447 from anothersimulacrum/appeasal
Don't potentially dereference a nullptr in migrations
2021-08-03 12:04:51 +03:00
Zhilkin Serg 55f1949f44 Merge pull request #50432 from jbytheway/clang-tidy-if-build-changes
Expand set of files causing full clang-tidy
2021-08-03 12:04:28 +03:00
Angela Graves 4079b62a6c Merge pull request #50451 from Qrox/plural
Fix plural of e-ink tablet PC (on)
2021-08-03 03:43:32 -05:00
Kevin Granade e36ea7fa32 Extract do_turn from game 2021-08-02 23:13:37 -07:00
Qrox 6a68843aa9 Fix plural of e-ink tablet PC (on) 2021-08-03 14:05:13 +08:00
actual-nh 044e11f358 ident -> id for No Hope modinfo.json; spacing (#50445)
* ident -> id for No Hope modinfo.json

* Double spaces: lot_empty_commercial.json signage
2021-08-02 21:57:38 -07:00
anothersimulacrum 4751fe3cdd Don't potentially dereference a nullptr
Clang-tidy pointed out that continuing with the migration here could
dereference a nullptr. More than that, it just doesn't make sense. Don't
do that.
2021-08-02 20:22:29 -07:00
LyleSY f1581eb974 [DinoMod] dinos don't hear great 2021-08-02 22:00:29 -04:00
Kevin Granade f6c68d3eae Merge pull request #50357 from Night-Pryanik/nohope
Added No Hope mod
2021-08-02 17:26:09 -07:00
Hirmuolio bd1440071b fix error (#50428) 2021-08-02 13:28:54 -07:00
Broken27 6268d91a92 Primitive oars recipe
New oars recipe than doesn't require a plank, instead being carved from a log.
2021-08-02 22:27:27 +02:00
Saicchi 6303c7614f kill creatures in area 2021-08-02 17:17:47 -03:00
John Bytheway 9d7aeec614 Expand set of files causing full clang-tidy
We should also run clang-tidy across all files if any build scripts
change or if the clang-tidy workflow definition changes.  Expand the
regex to cover those cases.
2021-08-02 15:34:55 -04:00
Zhilkin Serg d3c4cc3dc8 Merge pull request #50429 from CleverRaven/revert-50296-clear-mapbuffer-tests
Revert "Clear mapbuffer periodically during tests"
2021-08-02 21:47:11 +03:00
Kevin Granade 1e521face8 Revert "Clear mapbuffer periodically during tests" 2021-08-02 11:17:15 -07:00
Álvaro afe01ae4ec Stop using item::effective_dps() in npc_attack_melee (#50379) 2021-08-02 10:50:18 -07:00
Zhilkin Serg 3714ba4f95 Merge pull request #50424 from BrettDong/visitor_pass
Fix plural form of Visitor's Pass
2021-08-02 19:49:28 +03:00
Zhilkin Serg 7be6d27205 Merge pull request #50427 from BrettDong/clang-tidy
Remove unused trait_STRONGSTOMACH in character.cpp
2021-08-02 19:49:06 +03:00
Binrui Dong 7d741c7949 Remove unused trait_STRONGSTOMACH in character.cpp 2021-08-03 00:19:36 +08:00
GuardianDll 4edf6ad299 [Magiclysm] Adding more attunement spells (2/3) (#49810)
* Magnetism+Ice elemental+cleansing flame

* Update data/mods/Magiclysm/Spells/attunements/Magnetism_Mage.json

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

* delete MUST_HAVE_CLASS_TO_LEARN

* Replasing subspell with biomancer spell with same effect

* gitignore

* another try to resolve shitty gitignore

* Update data/mods/Magiclysm/Spells/attunements/Cleansing_Flame.json

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

* Update data/mods/Magiclysm/Spells/attunements/Ice_Elemental.json

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

* Apply suggestions from code review

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

* 40 lvl -> 35 lvl spell

* fixing some random error

* rewriting electrolaser so its AoE and works as description says

* lint

Co-authored-by: actual-nh <74678550+actual-nh@users.noreply.github.com>
Co-authored-by: Curtis Merrill <curtis.r.merrill@gmail.com>
2021-08-02 11:17:47 -04:00
Maleclypse d541d8324f Update armor.json 2021-08-02 10:05:59 -05:00
Binrui Dong f171f2c3eb Fix plural form of Visitor's Pass 2021-08-02 23:00:48 +08:00
Zhilkin Serg 8b8da11c77 Merge pull request #50419 from jbytheway/debug-files-changed
Debug files_changed script
2021-08-02 17:48:25 +03:00
Zhilkin Serg 4956973a60 Merge pull request #50416 from Menschheit/disassemble-res
set number to 1 if no charges
2021-08-02 17:47:47 +03:00
Zhilkin Serg ff0a559d53 Merge pull request #50418 from AMurkin/Fix-LGTM-warning-large-object
Fix passing large object by value
2021-08-02 17:47:26 +03:00
Zhilkin Serg ca6e4914db Merge pull request #50423 from BrettDong/json
Fix duplicate key in data/json/monstergroups/wilderness.json
2021-08-02 17:47:06 +03:00
Zhilkin Serg 104374b974 Merge pull request #50422 from BrettDong/compile
Fix compile error
2021-08-02 17:46:51 +03:00
Binrui Dong 16b6e73b2a Fix duplicate key in data/json/monstergroups/wilderness.json 2021-08-02 22:43:52 +08:00
Binrui Dong 507d71d82e Fix compile error 2021-08-02 22:39:47 +08:00
Angela Graves 071310509c Merge pull request #50376 from CleverRaven/LyleSY-patch-5
[DinoMod] use fungalize_into no2
2021-08-02 08:01:42 -05:00
John Bytheway 58e3f33c81 Limit commits fetched by files_changed
One PR showed an error message indicating that $commits_to_fetch was
negative.  This could happen if the value is doubled enough times that
it overflows.

If we're in this situation it's safe to assume that we are not going to
get our desired merge-base, so just give up instead.
2021-08-02 08:33:32 -04:00
John Bytheway aa836c8948 Cope with files_changed failing, and explain why
For non-PR CI runs we should expect files_changed to fail.  Currently
build.sh was behaving poorly in that case.

Instead behave gracefully and print some messages to help explain what's
going on in the logs.
2021-08-02 08:27:40 -04:00
U-N\N ee6e77c94b set number to 1 if no charges 2021-08-02 12:09:58 +02:00
AMurkin 942c3d3165 Fix passing large object by value 2021-08-02 12:46:54 +03:00
Invalidated-User 92aaa91950 Remove full-auto rifles from the "guns_rifle_rare_display" item group (#50407) 2021-08-02 12:08:39 +03:00
occulti 5d8e90a981 Added barred window with no glass (#48453) (#50309) 2021-08-02 12:07:03 +03:00
Zhilkin Serg 768df514e8 Merge pull request #50296 from kevingranade/clear-mapbuffer-tests
Clear mapbuffer periodically during tests
2021-08-02 12:06:00 +03:00
Zhilkin Serg 7724300233 Merge pull request #50317 from JumiDeluxe/sad-military
Added modified smoking_misc item group suited for military drops
2021-08-02 12:04:52 +03:00
Zhilkin Serg 17145f495f Merge pull request #50381 from GoLoT/aim_no_unwield
Prevent stacking AIM windows when moving NO_UNWIELD flagged items
2021-08-02 12:04:22 +03:00
JumiDeluxe 62a01dcbf4 Fix NPC claiming to eat FROZEN food without EDIBLE_FROZEN flag (#50251) 2021-08-02 12:03:56 +03:00
Menschheit 48eff34f81 Fix reload with loose ammo (#50281) 2021-08-02 12:03:34 +03:00
Svatopluk1 9d03457392 Wind turbine epower fix (#50395) 2021-08-02 12:00:14 +03:00
Zhilkin Serg 1e287eaad4 Merge pull request #50306 from Ramza13/eoc_load_fix
Fix issue with loading game ignoring new eocs
2021-08-02 11:59:47 +03:00
LyleSY ed26283d81 Aquariums (#49533) 2021-08-02 11:58:57 +03:00
LyleSY cd19aab6b0 [DinoMod] hatchling fixes (#50396) 2021-08-02 11:58:34 +03:00
occulti bdd2e297f4 Modified stained glass description to reflect the fact it is a wall with a high window, changed all external walls to stone walls for cathedral (#49440) (#50174) 2021-08-02 11:57:07 +03:00
Zhilkin Serg c5d81364d6 Merge pull request #50266 from anothersimulacrum/migrate-from-variants
Allow migrations from specific item variants
2021-08-02 11:56:05 +03:00
Zhilkin Serg 4847eeab8d Merge pull request #50245 from anothersimulacrum/TILES2
Worn/Wielded item variant tileset support
2021-08-02 11:55:45 +03:00
Maleclypse f9a1f84f9a Reduce River weight to under 1k (#50172) 2021-08-02 11:55:31 +03:00
guralub bce94cde33 Fix inconsistencies on all sleeveless dusters (#50240) 2021-08-02 11:54:45 +03:00
Zhilkin Serg 544d6f12ef Merge pull request #50351 from CleverRaven/update-toc
Update the table of contents in doc/JSON_INFO.md
2021-08-02 11:54:25 +03:00
Zhilkin Serg cd6bbadc50 Merge pull request #50342 from AccountAlias/Fix-hobbies-point-increment
hobbies bug fixes
2021-08-02 11:53:41 +03:00
Zhilkin Serg e15632b8a3 Merge pull request #50353 from Night-Pryanik/smol-mapgen-fix
Fixed safe spawning on top of shrub in one of the houses
2021-08-02 11:53:03 +03:00
Zhilkin Serg ed0bd93baf Merge pull request #50370 from occulti/Buttercream
Added any_butter to buttercream recipe (#50270)
2021-08-02 11:52:02 +03:00
Zhilkin Serg f268c73ed9 Merge pull request #50360 from Qrox/pump-events
Handle window events during long operations
2021-08-02 11:51:51 +03:00
ShadeOfDead e744d111f9 Update Crowbars with DURABLE_MELEE (#50371) 2021-08-02 11:49:49 +03:00
LyleSY 1489b6124e [DinoMod] CBM dino fixes (#50373) 2021-08-02 11:49:41 +03:00
Zhilkin Serg 6ef3dfeea8 Merge pull request #50385 from BrettDong/true_foodperson
Spawn correct underwear for female True Foodperson
2021-08-02 11:49:17 +03:00
Zhilkin Serg 28c2fd609f Merge pull request #50401 from occulti/ArmoredCarJP8
Change armored car to use JP8 (#50252)
2021-08-02 11:49:02 +03:00
Zhilkin Serg 4de1aeaca9 Merge pull request #50391 from Qrox/rope
Fix unknown recipe id warning
2021-08-02 11:48:41 +03:00
Zhilkin Serg b88eafb87b Merge pull request #50393 from Qrox/charge-removal
Fix items loaded with charges warning
2021-08-02 11:48:31 +03:00
Zhilkin Serg 78a689a2c8 Merge pull request #50394 from Fris0uman/20210801
Update tilesets to 2021-08-01 release
2021-08-02 11:46:37 +03:00
Alexey Mostovoy baa7a57062 Rewrite block with list's emptiness check (#50213) 2021-08-01 23:46:13 -07:00
Kevin Granade 8b336f1b1d Merge pull request #50390 from BrettDong/dps
Update expected DPS values in test
2021-08-01 23:26:13 -07:00
anothersimulacrum 97f9f05e47 Remove strong stomach section of effects test
Remove the strong stomach immunity check in the tests, as it was removed
from the game in a96f069cd8
2021-08-02 10:13:22 +08:00
anothersimulacrum 71c718a8e7 Remove -ffast-math
Compiling with -ffast-math causes clang and gcc to give different
results for proportional values.

e.g. gcc for 3.5 * 2, when stored as an integer, gives 6, whereas clang
gives 7.

Avoid this confusing behaviour and odd results in the DPS tests by
dropping this option.
2021-08-02 10:13:22 +08:00
AccountAlias cd59d2623d hobbies bug fixes
remove unused param
2021-08-01 20:34:40 -04:00
Unknown a96f069cd8 remove strong stomach granting nausea immunity (#50403) 2021-08-01 15:58:46 -07:00
actual-nh 37659dd203 Fix compile error for npc_attack.cpp (#50400)
If this (suggested by @GoLoT on discord) works, it will enable
compiling npc_attack.cpp on some more-picky compilers/compiler
versions.

Co-authored-by: actual-nh <actual-nh@users.noreply.github.com>
2021-08-01 14:10:44 -07:00
occulti 1aa603dcc6 Change armored car to use JP8 2021-08-01 22:06:49 +01:00
Hirmuolio 2c152acd14 fix laser (#50124) 2021-08-01 11:56:26 -07:00
Qrox 8eadd11913 Suppress clang tidy warning 2021-08-02 00:20:13 +08:00
Fris0uman f06383a500 Update MSX 2021-08-01 18:06:24 +02:00
Fris0uman 7fe684360b Update Ultica 2021-08-01 18:06:08 +02:00
Fris0uman a54dfc48f6 Update Chibi Ultica 2021-08-01 18:05:51 +02:00
Binrui Dong 1e80860103 Update expected DPS values in test 2021-08-01 22:26:56 +08:00
Qrox 1965463d02 Code to check redundant max_charges values 2021-08-01 22:25:03 +08:00
Qrox b27ccdb393 Fix charge removal 2021-08-01 22:25:03 +08:00
Qrox da44346a4e Fix unknown recipe id warning 2021-08-01 22:24:26 +08:00
Ramza13 b4690f1b58 Fix issue with loading game ignoring new eocs 2021-08-01 09:45:43 -04:00
Binrui Dong a1aeb90b94 Spawn correct underwear for female True Foodperson 2021-08-01 18:55:05 +08:00
Binrui Dong 3a01a1e4e3 Extract bolt cutting message for translation 2021-08-01 18:17:52 +08:00
Binrui Dong 9838db0d8d Extract bolt cutting sound for translation 2021-08-01 18:13:29 +08:00
Angela Graves 37f9b6c65c Merge pull request #50367 from Saicchi/fixpaper
Crafting paper gives 50 charges
2021-08-01 01:19:37 -05:00
Álvaro Muñoz e408bc86ea Prevent stacking AIM windows when moving NO_UNWIELD flagged items 2021-08-01 06:50:38 +02:00
Welp 130a300007 Fix (#50100) 2021-07-31 20:12:34 -07:00
github-actions[bot] 28c62b9bb2 Routine i18n updates on 31 July 2021 (#50346)
Co-authored-by: Brett Dong (BOT) <brett.browning.dong@gmail.com>
2021-07-31 18:41:58 -07:00
Hirmuolio 6631d5e0f2 Adjust sun and moon light levels (#50068)
* Adjusted light levels
* sun rises at -1 degree
* various fixes to -1° sunrise
* reduce moonlight by 33%
* fix moon tests
2021-07-31 18:41:30 -07:00
Aerin 457bebb65b Rebalance guitars (and similar instruments) as melee weapons. (#50034)
Co-authored-by: anothersimulacrum <anothersimulacrum@gmail.com>
2021-07-31 18:36:03 -07:00
Hirmuolio 675499c368 Refactor hourly rotpoints (#50024)
* refactor rotpoints
Co-authored-by: Binrui Dong <brett.browning.dong@gmail.com>
2021-07-31 18:14:16 -07:00
somepersondunno e3ab44e0a3 Fixes melee weapon variant inconsistencies. (#49856)
* Fixes melee weapon variant inconsistencies.

Previously, the fake battleaxe had the wide technique while the legitimate version lacked it. Fake weapons should still break easily, but you should be able to do the same attacks with every version of a melee weapon so long as you possess the skills.

Co-authored-by: anothersimulacrum <anothersimulacrum@gmail.com>
Co-authored-by: I-am-Erk <45136638+I-am-Erk@users.noreply.github.com>
Co-authored-by: Kevin Granade <kevin.granade@gmail.com>
2021-07-31 17:39:34 -07:00
Kevin Granade a5dccbca06 Merge pull request #49408 from Saicchi/ebookreader
eBook reader to Store / Read books
2021-07-31 17:25:27 -07:00
Kevin Granade 2daa17ddf5 Fix implicit tiles argument (#50355) 2021-07-31 16:29:34 -07:00
LyleSY 93e31221bb zino changes 2021-07-31 19:10:45 -04:00
LyleSY b8732df8c0 fungus monster changes 2021-07-31 19:09:51 -04:00
LyleSY 5f9d8539f8 dino updates 2021-07-31 19:08:41 -04:00
LyleSY 0145e99f29 [DinoMod] use fungalize_into no2 2021-07-31 19:04:02 -04:00
occulti 38da640672 Added all_butter list to buttercream recipe 2021-07-31 21:23:35 +01:00
Kevin Granade be78ee9123 Add a fallback for a parameterized terrain entry (#50366) 2021-07-31 13:10:22 -07:00
Saicchi a05f88bc72 clang_tidy fix 1 2021-07-31 16:44:04 -03:00
Saicchi 3b0d1fdd13 ebook reading tests 2021-07-31 16:39:38 -03:00
Saicchi dbf4959c1c ebook reading activity 2021-07-31 16:39:38 -03:00
Saicchi b1551d6d1f ebook reading / save base
Co-authored-by: Anton Burmistrov <Night_Pryanik@mail.ru>
2021-07-31 16:39:36 -03:00
Saicchi f4bd95c8f0 paper 50 charges 2021-07-31 16:25:32 -03:00
Saicchi 057da61d85 boltcut doc in JSON_INFO.md 2021-07-31 15:47:10 -03:00
Saicchi dca887d7a0 boltcutting tests 2021-07-31 15:47:10 -03:00
Curtis Merrill 61be774194 fix npc_attack_spell errors (#50363) 2021-07-31 11:43:23 -07:00
Saicchi b8c9a6e8d4 add boltcut data to terrain 2021-07-31 15:00:23 -03:00
Saicchi 49425ff8da jsonize boltcut activity 2021-07-31 15:00:23 -03:00
Qrox 2cd3e7b31c Redraw after canceling ctrl-c on ncurses 2021-07-31 23:48:38 +08:00
Qrox fe8ee00892 Correctly update after resizing on ncurses 2021-07-31 23:48:38 +08:00
Qrox 0a6e185447 Do not obscure the desktop when pressing alt-tab/win+d in window borderless mode 2021-07-31 23:48:37 +08:00
Qrox e685bd2baf Handle window events during...
1. Generic animation;
2. Slow searching in crafting GUI;
3. Redrawing benchmark;
4. Map loading/saving;
5. Fling animation;
5. Denfense mode initialization;
6. Robot finds kitten final animation;
7. Vehicle animation;
8. Pull animation;
9. Achievements loading.
2021-07-31 23:48:37 +08:00
Qrox 75133d73d8 Handle window events during tileset reloading 2021-07-31 23:48:37 +08:00
Qrox 3d5fa82e8f Handle window events during ...
...
1. JSON loading
2. `generic_factory` finalization
3. Mapgen finalization
4. Construction finalization
5. Recipe finalization
6. Tileset loading
7. Item definition checks

Other loading functions can be updated later when needed.
2021-07-31 23:48:36 +08:00
Qrox eb88662dc1 Improve ui_adaptor::redraw_invalidated performance 2021-07-31 23:48:35 +08:00
Qrox 1042e2d9e1 Handle window resizing in loading UI and during sleep 2021-07-31 23:48:35 +08:00
Saicchi 01e91222f7 boltcut data loading 2021-07-31 12:24:31 -03:00
Saicchi 9af3cee5a3 generic activity json data loading 2021-07-31 12:24:31 -03:00
guralub 02159e8826 Fix Riot Control Platforms not despawning when a Science ID card is used to open the shutters of a Lab Tower (#50256)
* Add ID_CARD_DESPAWN flag to Riot Control Platforms

* none
2021-07-31 06:32:57 -07:00
Unknown baefbef523 change hobby xp to cumulative (#50350)
* change hobby xp to cumulative

* Update newcharacter.cpp
2021-07-31 06:10:50 -07:00
Anton Burmistrov 56fb657653 Lint 2021-07-31 16:14:54 +04:00
Anton Burmistrov a5339061e6 Added myself to codeowners of the mod 2021-07-31 16:01:50 +04:00
Anton Burmistrov 55a4510dab Added No Hope mod 2021-07-31 15:41:28 +04:00
Curtis Merrill 73fc2ea768 add spellcasting npc attack (#49800) 2021-07-31 02:14:54 -07:00
Kevin Granade d615c74ec4 Merge pull request #49980 from jbytheway/overmap_special_scoped_parameters
Parametric mapgen part 2: Extend mapgen parameters to overmap special scope and palettes
2021-07-31 02:14:13 -07:00
kevingranade 23f07c8318 Update the table of contents 2021-07-31 09:09:41 +00:00
Kevin Granade cdef17b7d9 Merge pull request #49953 from Saicchi/movestotal_serialization
Serialize moves_total
2021-07-31 02:09:41 -07:00
Kevin Granade a217565c76 Merge pull request #49950 from Ramza13/talker_item
Create talker item, paving way for greater item json interactions.
2021-07-31 02:09:11 -07:00
Kevin Granade a287fad3b2 Merge pull request #49772 from eltank/better_autodrive
Autodrive v2
2021-07-31 01:32:08 -07:00
Anton Burmistrov dd00b06266 Fixed safe spawning on top of shrubs
Also removed some unused fields and values.
2021-07-31 12:22:24 +04:00
Extension-Driver 7f221be67c Update vehicle installation requirements for consistency and believability. (#49483)
* Changed nail_removal to PRY 1
* Switched out wood frame requirements
* Switch out reqs for cloth/wood board
* fixed reqs for wood rams
* more reqs changed
Co-authored-by: Kevin Granade <kevin.granade@gmail.com>
Co-authored-by: anothersimulacrum <anothersimulacrum@gmail.com>
2021-07-31 01:15:46 -07:00
Angela Graves 33acce457a Merge pull request #50322 from Moxanity/patch-1
Fixing Utility Vest to not be Normal layer
2021-07-31 01:26:32 -05:00
Hirmuolio 4933100273 Refactor game start date (#47372)
* docs: update TOC
* refactor scenario date
* limit initial date to first year
* limit initial date to first year
* renamed custom_start_date
* doc for defaults
* better randomness
* random scenario date tests
* finishing touches on tests
* reduce chance for date collision
Co-authored-by: actual-nh <74678550+actual-nh@users.noreply.github.com>
Co-authored-by: TOC Generator <noreply@example.invalid>
2021-07-30 21:46:21 -07:00
Kevin Granade 8edef76847 Merge pull request #46953 from topherclay/clothing-cost
Made takeoff time cost unavoidable.
2021-07-30 21:12:34 -07:00
mqrause 03abafd204 random characters have hobbies 2021-07-31 05:57:12 +02:00
Kevin Granade df4c8bdd81 Clear mapbuffer periodically during tests 2021-07-30 18:24:59 -07:00
Kevin Granade 6f1d7dfd91 Merge pull request #44399 from Saicchi/book_binder
Add a book binder the player can use to copy recipes from books
2021-07-30 18:19:24 -07:00
Zhilkin Serg 06866bbb80 Merge pull request #50226 from casswedson/formatter-not-found
compose.py: inform if json_formatter was found
2021-07-30 23:59:31 +03:00
Zhilkin Serg d15ea83cd6 Merge pull request #50234 from BrettDong/mac-dylib
Bundle library dependencies in macOS release workflow
2021-07-30 23:57:52 +03:00
mancelpage 0c4af23ee3 Condensed dairy.json objects via copy-from (#50271) 2021-07-30 23:53:04 +03:00
Zhilkin Serg dbbdefd291 Merge pull request #50321 from GoLoT/patch-1
Add bionic trigger_cost to JSON_INFO.md
2021-07-30 23:52:23 +03:00
Ramza13 8f36b1af78 Add consumption_eocs 2021-07-30 16:45:13 -04:00
Ramza13 aafbb03695 Update iuse_actor.cpp 2021-07-30 16:45:13 -04:00
Ramza13 caccd6e323 Create talker item 2021-07-30 16:45:13 -04:00
Kevin Granade 0c82598055 Merge pull request #50201 from kevingranade/try-fix-ASan
Clear overmap buffer after tests to avoid memory leaks
2021-07-30 12:42:11 -07:00
Zhilkin Serg 78074c6b5f Merge pull request #50334 from Hirmuolio/candle
fix candle crash
2021-07-30 21:46:22 +03:00
Hirmuolio 1e2ab90b8a fix crafting crash 2021-07-30 21:08:39 +03:00
klip b781a0e114 Add constructable Metal Trash Can (#50004)
* Added construction recipe for the trash can

* Trash Can no longer labeled as plastic

* Metal trash can now separate object, old plastic trash can reverted

* Update data/json/furniture_and_terrain/furniture-storage.json

Co-authored-by: I-am-Erk <45136638+I-am-Erk@users.noreply.github.com>
2021-07-30 09:55:06 -07:00
Curtis Merrill 6fe4decd73 fix enchantment speed bonus calclulation (#50278) 2021-07-30 09:50:26 -07:00
curstwist fc6d52ff43 add lab monsters pt.1 (#50300) 2021-07-30 09:34:25 -07:00
Unknown f1c4129e36 Hobbies in Character Creation (#50262)
* Hobbies in Character Creation

Hobbies

Drug addictions are hobbies

Update newcharacter.cpp

cleanup + multiples of the same item

no items for hobbies. For now.

Update newcharacter.cpp

fix addictions

Hobbies give partial exp in chargen

convert hobby flag to subtype

fix build errors

fix focus tests

Squish

* Update savegame_json.cpp

* fix #50301

* Update data/json/hobbies.json

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

* Update data/json/hobbies.json

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

* refluff camping

* Update hobbies.json

Co-authored-by: I-am-Erk <45136638+I-am-Erk@users.noreply.github.com>
2021-07-30 08:49:30 -07:00
Jurek Skoczylas bf6ec02209 Fixing Utility Vest to not be Normal layer
Normal layer is the same layer as t-shirt. Utility vests go over t-shirts.
2021-07-30 12:36:04 +01:00
Álvaro d750d01fb0 Add bionic trigger_cost to JSON_INFO.md
Add new JSON field to the docs.
2021-07-30 13:25:01 +02:00
jumi 741f9245a1 Added modified smoking_misc group suited for military drops (without joint) 2021-07-30 08:35:38 +02:00
Angela Graves 15dd9934ab Merge pull request #50302 from Menschheit/fix-some-revolvers
Fix remaining ammo  for revolvers
2021-07-30 00:07:44 -05:00
eltank 233e879bcb Implement autodrive v2 pathfinding. 2021-07-29 18:47:04 -07:00
Coolthulhu f7d902d976 Make sound explicit in matrix.yml 2021-07-29 17:43:31 -07:00
Coolthulhu 74cfb3a158 Prevent scrolling text from clogging up memory 2021-07-29 17:43:31 -07:00
Coolthulhu 4b3bc9eece Fix for accumulating sounds 2021-07-29 17:43:31 -07:00
Kevin Granade 72c20477c7 Clear overmap buffer after tests to avoid memory leaks 2021-07-29 17:25:49 -07:00
eltank 640aa4cd05 Simplify and optimize vehicle debug overlay
Introduce vehicle::get_debug_overlay_data() which returns a vector of
vehicle-relative colored annotations to display.
The optimization is to not do any work when vehicle debug is not on.
2021-07-29 16:52:15 -07:00
eltank f9e7f2bb09 Move autodriving code into a new file 2021-07-29 16:52:15 -07:00
eltank c5a24aec8a Fix overmap path selection for amphibious vehicles
Detect when a vehicle is amphibious and allow overmap pathfinding to use
both land and water tiles.
2021-07-29 16:52:15 -07:00
eltank f06d5cea23 Reset sound markers at the end of each autodrive turn
To prevent them from piling up and covering the screen.
2021-07-29 16:52:14 -07:00
eltank 61044ddc74 Rename vehicle::autodrive to selfdrive
To avoid confusion with do_autodrive.
autodrive is the analog to pldrive (performs steering and speed changes)
when there is no driver present (vehicle is moving due to towing,
computer, animal following or magic)
2021-07-29 16:52:14 -07:00
eltank a69e5587fd Clean up omt path selection code and store path only in character object
The path selection code had some weird unnecessary recalculation going
on. It also stored duplicate information in the player object and the
vehicle object. The omt_path field in vehicle has been removed since it
was redundant and unlike the omt_path in Character it does not get
serialized.
2021-07-29 16:52:14 -07:00
eltank 2c52564e5f Fix move accounting in autodrive_activity_actor
Before this change, it would allow the driver to perform actions
regardless of how many moves they have. In fact, it zeroes out the
driver's moves then allows them to build a negative deficit, only to
zero it out again next turn. This is not how the game works when a
player is controlling the vehicle manually. You can only act when you
have moves, and if you go negative it could take more than one turn
before you can act again (e.g. unskilled steering on rough terrain).
2021-07-29 16:52:13 -07:00
eltank bf544aecd9 Stop autodriving on collision 2021-07-29 16:52:13 -07:00
eltank addb0857bc Allow vehicle control (pldrive) to be performed by any Character.
This unhardcodes the player character as the only Character capable of
driving vehicles. Together with better autodrive code, it opens the door
to potential chauffeur NPCs in the future.
2021-07-29 16:52:13 -07:00
eltank 7c2fda4789 Remove unused vehicle::rotate_mount() 2021-07-29 16:52:12 -07:00
eltank e62a5780be Disallow vehicle copy
Makes the copy assignment operator private. I'd like to delete it, but
it's used in the constructor.
This is a prerequisite for adding prive implementation pointers to the
vehicle class.
2021-07-29 16:52:12 -07:00
eltank 5a707dd506 Add get_steps() to tileray, fix bug
When you drive at a slight angle you're mostly going forward, but
occasionally move 1 tile sideways. In order to predict exactly when that
will happen you need to keep track of how many times the vehicle.face
tileray has been advanced since the last change in direction (in order
to be able to create an identical tileray in the simulation).
The += change here is a bug fix. It was unnoticed because nobody used
the steps value for anything.
2021-07-29 16:52:12 -07:00
Tamiore a676db716e Add steel buttons recipe, update other button recipes. (#50090)
* buttons update

* only wax and rosin

* Update materials.json

* add sandleather

* Update metalworking.json

* Update tools_primitive.json

* Update tools_primitive.json

* Update materials.json

* add Cutting tool to plastic buttons recipe
2021-07-29 16:08:47 -07:00
Hirmuolio efe0ef3888 Remove unnecessary "initial_charges" and "max_charges" (#50202)
* unnecessary charge data

* magazine data for smartphone

* test items

* fix candles

* mods

* remove more max_charges

* avoid division by zero
2021-07-29 15:40:38 -07:00
Maleclypse 2b77437bb1 [Ready] [Aftershock] New Materials and gear (#47732) 2021-07-30 01:11:05 +03:00
Saicchi b6e1edc25c book binder and paper ammo json 2021-07-29 17:34:59 -03:00
Saicchi 1722b5d910 book_binder cpp implementation
Co-authored-by: anothersimulacrum <anothersimulacrum@gmail.com>
Co-authored-by: mqrause <38702195+mqrause@users.noreply.github.com>
2021-07-29 17:34:59 -03:00
Saicchi d5640e02b5 book binder json and doc 2021-07-29 17:33:04 -03:00
Saicchi c0375b50a6 wish effect menu 2021-07-29 14:59:45 -03:00
Saicchi 85f0a5b4e5 get_effect_types function 2021-07-29 14:44:02 -03:00
Saicchi 4d148f002c sort debug proficiency menu 2021-07-29 14:44:02 -03:00
U-N\N 0151818df0 casing remaining in revolver should not be considered as ammos 2021-07-29 16:40:54 +02:00
Angela Graves a9f86a3872 Merge pull request #50272 from JumiDeluxe/zombie-kicks-bugfix
Display kicking monster name
2021-07-29 02:02:21 -05:00
Saicchi 2bb005f67c WATER_BREAK_ACTIVE in doc 2021-07-28 20:29:18 -03:00
Saicchi 18b7463780 add WATER_BREAK_ACTIVE flag to some items 2021-07-28 20:22:49 -03:00
Saicchi 8832ce1942 wet item tests 2021-07-28 20:22:49 -03:00
Saicchi 60119a4c21 wet item base 2021-07-28 20:22:49 -03:00
actual-nh a3e48252cb max-parallel: 1 for build matrix (#50283) 2021-07-28 13:12:39 -07:00
Binrui Dong 5a6bb9b9d6 Move GHA ASan check to macOS (#50275) 2021-07-28 12:25:51 -07:00
Maleclypse 5342510a87 [Magiclysm] A second shop opens in the Forge of Wonders (#48979)
* Extend/Delete in requirements

* Revert "Extend/Delete in requirements"

This reverts commit 9da0eaeb4e.

* Helen Tavrel Forge of Wonders

so many miles to go before morning

nightmare sheep and parabolan wool

adds a new store and defenders to forge

Update forge_of_wonders.json

lint

Update monsters.json

Apply suggestions from code review

Update monsters.json

Update data/mods/Magiclysm/items/generic.json

Additional security

turn in quests and more

typo

Update death_drops.json

Update fish.json

Make Forge Lord, Business Lord

Update terrain.json

Update enchanted_clothes.json

shearing json and recipes

lint

armor coverage

needs moar work

teleport charge

fixes

linting

Co-Authored-By: Salty Panda <zjadaczwatrob@gmail.com>
Co-Authored-By: actual-nh <74678550+actual-nh@users.noreply.github.com>

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

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

* Update harvest.json

* Update harvest.json

* Apply suggestions from code review

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

Co-authored-by: Salty Panda <zjadaczwatrob@gmail.com>
Co-authored-by: actual-nh <74678550+actual-nh@users.noreply.github.com>
Co-authored-by: Curtis Merrill <curtis.r.merrill@gmail.com>
2021-07-28 13:59:03 -04:00
Fris0uman 10adb738ff Merge pull request #50269 from Maleclypse/removed-unused-SUS-groups-from-library-spawn
Bugfix Remove excess SUS spawn
2021-07-28 10:40:29 +02:00
jwm00 d116372c5e Remove obsolete TODO comment 2021-07-28 10:33:07 +02:00
jwm00 02a71a7e3e Replace hardcoded "zombie" with monster name 2021-07-28 09:42:43 +02:00
Angela Graves 0f035143f3 Merge pull request #50268 from Maleclypse/Fix-polycarbonate-sheets
Fix polycarbonate sheets spawns
2021-07-28 00:50:53 -05:00
Maleclypse d194e74004 Update library_palette.json 2021-07-27 21:48:37 -05:00
Maleclypse 1bccf96ba7 Update plastic.json 2021-07-27 20:09:26 -05:00
Maleclypse 1de8601a58 Fixing polycarbonate spawns 2021-07-27 19:43:39 -05:00
anothersimulacrum ca7bd5db4f Allow migrations from specific item variants
Part of the advantage of variants over completely removing items is that
it preserves identification information, so it's possible without taking
on an insane burden of adjusting itemgroups sensibly.

Additionally, if we want to change the configuration of variants, we
need a way to migrate from variants to other items or variants on the
same item.

This provides a way to do both.

Convert Item_factory::migrations to a map from itype_id to a vector of
migrations, instead of a single migration.
This vector can contain an unlimited number of migrations, but only a
single migration which does not specify a `from_variant`.

This way, there is only one migration for thing being migrated by id,
but multiple migrations are allowed when the selector is variants.

Add a cata::optional field `from_variant` to migrations. As mentioned
above, the presence of this field is used to distinguish the type of
migrations between by-id and by-variant.

Adjust the various functions using migrations to iterate through the
migration options and find the appropriate migration for the use.

Adjust the migration loading to overwrite non-variant migrations, and
add variant migrations to the list of migrations.

Because item type conversion happens before Item_factory::migrate_item
is called, do conversions in there again for from_variant migrations.
2021-07-27 13:23:04 -07:00
Angela Graves 2b9d8f50b8 Merge pull request #50204 from Maleclypse/Make-Libraries-post-apocalyptic
Vandalized Library Variants
2021-07-27 08:47:35 -05:00
Binrui Dong af994a04a0 Bundle library dependencies in macOS release workflow 2021-07-27 21:10:14 +08:00
Álvaro cd73ed43d5 Fix some of the NPC attacking logic (#49907)
* Fixes to NPC attack logic

* astyle

* Remove commented code

* Initialization list order

* Make -Werror happy

* Fix test compilation

* astyle again

* Make clang-tidy happier, I hope

* Add use_guns check for throwing items

* Update src/npc_attack.cpp

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

* Update src/npc_attack.cpp

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

* Changes from reviews/suggestions

* astyle again

* Add enemy_distance_to_ally() helper function

* Reworked tests and minor changes

* Clang-tidy & JSON linting

* Removed commented code

* Change SCENARIO to TEST_CASE so clang-tidy is happy

* Update src/npc_attack.cpp

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

* remove commented code

Co-authored-by: Curtis Merrill <curtis.r.merrill@gmail.com>
Co-authored-by: anothersimulacrum <anothersimulacrum@gmail.com>
2021-07-26 19:25:31 -04:00
Zhilkin Serg 57d7a2a0c7 Merge pull request #50246 from CleverRaven/fix-pot-helmet-copy-from
Fix copy-from issues
2021-07-27 02:11:05 +03:00
Zhilkin Serg 807a018311 Fix copy-from issues 2021-07-27 01:54:19 +03:00
Rail-Runner 9a29f77b8f Add willowbark tea (#45756)
Co-authored-by: Maleclypse <54345792+Maleclypse@users.noreply.github.com>
Co-authored-by: actual-nh <74678550+actual-nh@users.noreply.github.com>
2021-07-27 01:49:14 +03:00
occulti f82ad2cc12 Add wool yarn recipe (#48959) (#50196) 2021-07-27 01:48:44 +03:00
occulti a4c82a9804 Added qualities of a canning pot to XL Pot Helmet (#49457) (#50193)
Co-authored-by: actual-nh <74678550+actual-nh@users.noreply.github.com>
2021-07-27 01:48:34 +03:00
Zhilkin Serg df5b8b9c56 Merge pull request #50244 from casswedson/revert-P-option
Revert "use -P 0 option in JSON style check"
2021-07-27 01:47:53 +03:00
anothersimulacrum 07936f9778 Worn/Wielded item variant tileset support
Change overlays to return variants along with ids, try variants when
drawing overlays.
2021-07-26 15:40:30 -07:00
Zhilkin Serg 30d5d6e171 Merge pull request #49993 from kevingranade/size-aware-fragments
Make bomb fragment strikes size-aware
2021-07-27 01:39:51 +03:00
Zhilkin Serg cb41c676be Merge pull request #50185 from Qrox/crafting
Improve recalculation of crafting gui
2021-07-27 01:37:26 +03:00
Zhilkin Serg e62c2d3e3e Merge pull request #50209 from Qrox/zoom
Fix main UI resizing when exiting from overmap with the same zoom level
2021-07-27 01:37:03 +03:00
LyleSY 2a4c94fc20 [DinoMod] wilderness spawn counts and fixes (#50184) 2021-07-27 01:36:28 +03:00
LyleSY e5f6a65942 [DinoMod] DinoLab and dino armor (#49585) 2021-07-27 01:35:53 +03:00
Zhilkin Serg fb83100639 Merge pull request #50216 from definitelynotklip/ascii_tiles
ASCII tileset QoL changes
2021-07-27 01:35:20 +03:00
Zhilkin Serg 8b2007aee7 Merge pull request #50229 from anothersimulacrum/TILES
Add gun variant support to tilesets
2021-07-27 01:34:28 +03:00
Zhilkin Serg 895636fff5 Merge pull request #50228 from anothersimulacrum/stricter-RLE
Do not check gun variant option for RLE
2021-07-27 01:34:08 +03:00
Zhilkin Serg 04252ad859 Merge pull request #50235 from anothersimulacrum/optional-non-type
Fix loading spell field type loading for copy-from
2021-07-27 01:33:44 +03:00
Zhilkin Serg 6977219c14 Merge pull request #50243 from LaVeyanFiend/BoxingTrait
Add Boxing to Self-Defense Classes
2021-07-27 01:30:03 +03:00
curstwist abca2d74d8 add special entry for modular lab (#50241) 2021-07-27 01:29:42 +03:00
casswedson 3a43b23a6c Revert "use -P 0 option in JSON style check" 2021-07-26 17:14:37 -05:00
SpasmodicReveler 30468cc66f Added "Gore Longitude", fiction book inspired by "Blood Meridian" (#49908)
* Added "Gore Longitude", fiction book inspired by "Blood Meridian"

* Update data/json/items/book/misc.json

Co-authored-by: ToxiClay <ToxiClay@users.noreply.github.com>

Co-authored-by: Chuck <wumbojumbochuck@gmail.com>
Co-authored-by: ToxiClay <ToxiClay@users.noreply.github.com>
2021-07-26 15:06:43 -07:00
LaVeyanFiend 29fca4e6c9 Add Boxing to Self-Defense Classes 2021-07-26 17:31:24 -04:00
anothersimulacrum b41ce5f9a8 Fix loading spell field type loading for copy-from
We should have some sort of check for this.
2021-07-26 09:48:59 -07:00
klip bb8afbae67 Add placeable Washing Machine item (#50038)
* Add placeable Washing Machine

* Update generic.json

* lint

* Linting for recipe_deconstruction.json

Co-authored-by: I-am-Erk <45136638+I-am-Erk@users.noreply.github.com>
2021-07-26 08:24:32 -07:00
klip 1373a284ce Added placeable Water Heater (#50164) 2021-07-26 08:22:39 -07:00
curstwist 63f2059ed0 lab modular residential areas (#50189)
* lab modular residential areas

* Update lab_nested_maintenance.json

add missing nests.

* Update lab_shared_traps.json

benign true.

* revert change to traps
2021-07-26 08:21:17 -07:00
curstwist bff50c4486 lab maintenance modular areas (#50192)
* lab maintenance modular areas

* typo fix
2021-07-26 08:20:46 -07:00
curstwist 49f349327f add mutagen lab module (#50191)
* add mutagen lab module

* Update overmap_terrain_lab.json

lint

* more lint

* Apply suggestions from code review

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-26 08:20:30 -07:00
Broken27 ef8975e7a0 Added pineaple to veggy pizza recipe. (#50233)
Some people have terrible taste, and the game should have recipes for them.
2021-07-26 08:19:33 -07:00
Angela Graves 8bf16a41ed Merge pull request #50230 from DevianProdigy/bondage-mask-layer
Bondage mask layer mismatch
2021-07-26 04:21:45 -05:00
Fris0uman 394bf82205 Fix layer ordering of demon skin (#50222) 2021-07-25 22:59:39 -07:00
Fris0uman 21167b784a Remove obsolete Chibi Ultica mod (#50223) 2021-07-25 22:59:25 -07:00
DevianProdigy e8693004cd Update masks.json 2021-07-25 23:47:37 -05:00
anothersimulacrum 983666bdb0 Add gun variant support to tilesets
Add a new string argument to relevant places, and walk it through all
the various places these functions are called.
2021-07-25 19:54:54 -07:00
anothersimulacrum 06bc238de3 Do not check gun variant option for RLE
Duplicate the check from stacks_with, except don't check the option.
This prevents the game from obliterating variant data on save/load when
the option is off.

I don't like how this function just returns stacks_with at the end, but
I don't know a better solution.
2021-07-25 17:25:26 -07:00
casswedson 9793de037e compose.py: inform if json_formatter was found 2021-07-25 18:41:18 -05:00
KliPeH 831e0d127d ASCII Changes 2021-07-25 19:29:58 +03:00
Angela Graves ebb21f38fa Merge pull request #49855 from LaVeyanFiend/YuleNerf
Change Yule Cat harvest to mutant mammal
2021-07-25 02:40:27 -05:00
Qrox 8ea14210f2 Fix main UI resizing when exiting from overmap with the same zoom level 2021-07-25 15:30:37 +08:00
Maleclypse 67081bfbfb set bash and palette fix 2021-07-24 21:33:06 -05:00
AngryFerret f2e9ad53bf Add bow forms to Wildborne Rider (#50197) 2021-07-24 20:27:47 -04:00
Maleclypse 16b3a11753 Vandalized Library Variants 2021-07-24 19:23:05 -05:00
Fris0uman f1b6e7de7f Update Tilesets 21-07-24 (#50186)
* Update Chibi Ultica

* Update Ultica

* Update MSX
2021-07-24 12:15:13 +03:00
Zhilkin Serg 9817d9af6d Merge pull request #50187 from BrettDong/lint-json
Reformat JSON
2021-07-24 12:14:50 +03:00
Binrui Dong 2976555909 Reformat JSON 2021-07-24 16:45:49 +08:00
Fris0uman 6d50c8d5af Merge pull request #49942 from GoLoT/fix_cbm_battery_refueling
Fix Battery System CBM refueling
2021-07-24 10:19:12 +02:00
Angela Graves 5cc8975fc7 Merge pull request #50132 from guralub/master
Fix armor pen from martial arts buffs not working
2021-07-24 03:13:37 -05:00
Zhilkin Serg 8a61cdf01d Merge pull request #50183 from CleverRaven/i18n
Routine i18n updates on 24 July 2021
2021-07-24 11:12:40 +03:00
Zhilkin Serg 51d7dc050c Merge pull request #50180 from ralreegorganon/fix-multitile-variations
Fix multitile variations
2021-07-24 11:12:28 +03:00
angryisosceles 674ab947f4 Added "new-age" books + abstract (#49998) 2021-07-24 11:10:49 +03:00
MoonClipper 6c93508226 Added lake vehicle group (#50012) 2021-07-24 11:10:14 +03:00
Zhilkin Serg 74b160e25d Merge pull request #49971 from anothersimulacrum/location-dependent-cards
Allow cardreaders to require cards be spawned nearby
2021-07-24 11:07:57 +03:00
Zhilkin Serg 63b1597e1e Merge pull request #50142 from anothersimulacrum/variant-script
Add script to get gun stats
2021-07-24 11:07:16 +03:00
Zhilkin Serg ab0bc95a31 Merge pull request #50134 from occulti/SheepWoolFix
Modified mass ratio of sheep wool on harvest to give similar to shearing returns (#48962)
2021-07-24 11:05:34 +03:00
Maleclypse b4ace10657 [Aftershock] Night messages (#50146) 2021-07-24 11:05:08 +03:00
Zhilkin Serg 1636e0ca89 Merge pull request #50156 from curstwist/add-lab-maps
Add modular lab health clinic
2021-07-24 11:04:22 +03:00
Zhilkin Serg 0449216655 Merge pull request #50182 from ralreegorganon/fix-wind
Fix wind not updating
2021-07-24 11:03:49 +03:00
Qrox a783a91a19 Improve recalculation of crafting gui 2021-07-24 15:33:44 +08:00
Brett Dong (BOT) c588d56891 Routine i18n updates on 24 July 2021 2021-07-24 03:02:15 +00:00
Jason Jones 1f5c7f8119 Fix wind not updating
Wind was not updating after some previous refactoring. It could be
overridden but was otherwise static.

This change makes it so that wind is now being updated when the
weather updates. It also makes the debug options for wind behave
in a more predictable manner: overriding the wind and clearing the
wind override both cause the weather system to tick and update.

I did notice that the overridden wind settings are NOT used when
evaluating the weather conditions. I could make an argument either way,
but changing it is out of scope anyway.
2021-07-23 18:13:46 -08:00
LyleSY c1bde37c1d [DinoMod] new NPC dialogue (#50166) 2021-07-23 18:28:54 -07:00
Jason Jones 55e2609032 Fix multitile variations
The code was in place to load tile variations for a multitile and
use them for all additional_tiles entries, but the functionality
isn't currently in use and I'm pretty sure it bitrotted to a
non-functional state where it just displays black tiles.
2021-07-23 16:52:43 -08:00
Maleclypse db572453d6 Add permeable flag to appropriate windows (#50170)
* Open windows permeable
2021-07-23 17:44:29 -07:00
anothersimulacrum 0c3fd35290 Remove spell type manual id loading (#50169)
generic_factory handles this, and so doing it again makes it so spells
don't support abstracts.
2021-07-23 17:43:18 -07:00
occulti 6659ee8eca Added condom to item restriction on travel wallet (#49932) (#50165) 2021-07-23 17:35:25 -07:00
Jianxiang Wang (王健翔) 5dfcf4d8b6 Fix book color when asking NPC to read (#50162) 2021-07-23 17:35:04 -07:00
ToxiClay 602eb7f04f Adds NUTRIENT_OVERRIDE flag to bleach (#50161) 2021-07-23 17:34:40 -07:00
curstwist 72ea189271 add cargo and central lab areas (#50160)
* add cargo and central lab areas

* Create lab_shared_traps.json
2021-07-23 17:34:05 -07:00
LyleSY 5a228790ac count, comment, and clean wilderness spawns (#50159)
* count and clean Forest spawns

* finish counting
2021-07-23 17:33:01 -07:00
Álvaro Muñoz b4c6a63e64 Prevent fuel container deletion on CBM refueling 2021-07-24 00:28:15 +02:00
John Bytheway bb0d2426ba Minimize clang-tidy CI runtime (#50131)
clang-tidy is one of our slowest CI jobs.  It would be nice if it were
faster.

When only cpp files are changed, we can limit the checks to just those
files.  When a header or build file is changed, or a new check is added,
we need to recheck everything.

To make this work, update the logic in build.sh which previously
prioritised changed files.  Make it now only check changed files,
provided that's appropriate.

Also, make files_changed work correctly on GitHub, at least for PR jobs.
It will simply fail on non-PR jobs.
2021-07-23 13:36:30 -07:00
John Bytheway a768c291aa Serialize mapgen args as stored in the overmap
For mapgen to be consistent across reloads, we need to store the arg
choices.
2021-07-23 15:42:34 -04:00
John Bytheway 42affda205 Fix a couple of serialization bugs
Two issues with serialization:
- If the entire stream was just a single integer then it would cause an
  infinite loop when reading.
- When reading a sequence of optionals, if one optional was empty, it
  would cause the sequence to grow until memory was exhausted without
  ever consuming that input.

Fix both these issues, and add unit tests.
2021-07-23 15:42:34 -04:00
John Bytheway 809c918da0 Apply suggestions from code review
Three typos, and one arbitrary constant changed

Co-authored-by: actual-nh <74678550+actual-nh@users.noreply.github.com>
2021-07-23 15:42:34 -04:00
John Bytheway 9a896760d8 Document the new mapgen parameter features 2021-07-23 15:42:34 -04:00
John Bytheway f82266a77e Randomize house interior wall colours
Demonstrate the new mapgen parameter support by randomizing the colour
of walls in standard_domestic_palette.  Make white about as common as
all the other colours put together.
2021-07-23 15:42:33 -04:00
John Bytheway ce75b30a4a Mapgen params to map special scope and palettes
Previously mapgen parameters only applied to a single OMT, and could not
be in palettes.  Remove both those limitations.

Now a parameter can have map_special scope (indeed, that's the default)
so that the same value is chosen consistently across any specific
overmap_special.

Moreover, parameters can be placed in palettes, and are automatically
extracted from all the palettes relevant to a particular piece of
mapgen.
2021-07-23 15:42:33 -04:00
John Bytheway bfc26899c1 Extend cddatags to support multi-id entries
Some json object have a list of ids they are defining, rather than just
one.  In particular, this is common for overmap_terrain.  When that
happens, index all of them.
2021-07-23 15:42:33 -04:00
LyleSY af75eb4b75 medical regenerating zombies (#50105)
* medical regenerating zombies
* regenerating zombie medic
* GROUP_MEDICAL_CRAWLER_UPGRADE
* use GROUP_MEDICAL_CRAWLER_UPGRADE
* blue
2021-07-23 11:10:54 -07:00
guralub f9cbdad2a1 Merge branch 'CleverRaven:master' into master 2021-07-23 14:09:56 -03:00
anothersimulacrum d9a15c9321 Make cards from #50033 location-dependent 2021-07-23 07:56:51 -07:00
anothersimulacrum 4c9bce0ad8 Improve location-dependent card naming
Put cards into 4 buckets, based on distance to the player. Name and
stack them based on that.
The particular distances could probably use adjustment.
2021-07-23 07:56:51 -07:00
anothersimulacrum 6c967f5000 Allow cardreaders to require cards spawned nearby
Add a flag to track the OMT spawn location of arbitrary items.
Rewrite the the cardreader actor consuming behavior to care about
individual items, now that we're selecting based on an item attribute,
instead of an itype attribute.
2021-07-23 07:56:51 -07:00
curstwist bc9e33da3f lab_health_clinic
regular medical clinic for a lab.
2021-07-23 08:18:37 -04:00
Kevin Granade bb34304739 Merge pull request #49857 from Ramza13/morale_json
Add morale and focus functions
2021-07-23 00:31:55 -07:00
Angela Graves d70fed3b67 Merge pull request #50144 from cheekygoblin/keffiyeh_fix
change keffiyeh to cover head and use collar for mouth coverage
2021-07-23 02:25:29 -05:00
Kevin Granade f547618533 Merge pull request #50147 from kevingranade/fix-erroneous-skipping
Fix erroneous skipping
2021-07-22 23:19:15 -07:00
Kevin Granade bde0e85aaf Remove references to dead branch 2021-07-22 22:44:03 -07:00
Kevin Granade 86caadf7ce Don't do concurrent_skipping on PRs 2021-07-22 22:43:46 -07:00
Venera3 cb7f752f62 Underground Upgrades 1: Unhardcode sewer monsters, add upper/lower/city subway monster groups (#48772)
Lab tunnels, city subway group spawn
* Chud/Zombie stuff
* Sewer, Lab subway
Less migo/sludge, more hunter, frogs
* Scary labs
Mutant cooperation, mondensity is a lie
* Faction/lab subway
Mi-Go and nether broke up, lab tunnels got a bit less busy
2021-07-22 22:24:00 -07:00
Kevin Granade 113e1c13b5 Merge pull request #50136 from kevingranade/backport-include-pruning
Backport include pruning
2021-07-22 22:22:11 -07:00
Kevin Granade 3e438b199f Update src/faction_camp.h 2021-07-22 22:11:37 -07:00
ti360gh 6c3bf41e04 Assign gender-appropriate names to NPCs created by place_npcs. (#50108) 2021-07-22 21:15:07 -07:00
Paul Fenwick 35fbdc7e62 Replace has_skill_for_vehicle_work with meets_skill_requirements (#50075)
There's no need for a static helper function when the Character
class already has a method for doing this.
2021-07-22 21:12:07 -07:00
Paul Fenwick 2464d72eb7 Check skill requirements for vehicle most_repairable_part (#50074) 2021-07-22 21:11:28 -07:00
Broken27 9b3ed93e6d Updated the bionic weapons to the new to-hit standard. (#50060)
* Updated fake weapons to-hit

Updated the bionic weapons to the new to-hit standard.
2021-07-22 21:10:31 -07:00
curstwist 4f384360f2 modular lab security & ground floor (#50033)
* modular lab security & ground floor

also includes associated content additions.
2021-07-22 21:06:37 -07:00
Kevin Granade 99e47e2867 Rearange recipe permutation test to avoid massive memory allocation. (#50140)
* Rearange recipe permutation test to avoid massive memory allocation.
* limit test parallelism on gcc ASan build to one worker.
2021-07-22 20:38:24 -07:00
Kevin Granade 92956d05ab Apply suggestions from code review 2021-07-22 19:31:01 -07:00
Kevin Granade 7f33807e78 Merge pull request #50138 from mqrause/private_contents_pt3
Make contents member of item class private final part
2021-07-22 19:13:07 -07:00
anothersimulacrum 32ee90952a Fix clang-tidy function size warning (#50145)
Move all the SECTIONs to sub functions to make the clang-tidy function
size check happy.
2021-07-22 19:09:00 -07:00
anothersimulacrum 8717cb8a8e Improve DPS test behavior with GHA problem matcher (#50125)
The problem matchers with GitHub actions are meant to make seeing errors
in tests easier, without having to navigate through the somewhat clumsy
interface to find the errors.
However, because the CHECK does not include the name of the item, this
is still required.
Move the CHECK to be on the line with the item name, so it is not
necessary to go through the clumsy GHA interface.

This does mean the test will not print failures and the expected value
to stdout. I think that being more compatible with the GHA problem
matchers is worth making this slightly more annoying to manually run.
2021-07-22 18:25:32 -07:00
Kevin Granade 3c896178b5 Update src/map.h 2021-07-22 18:24:08 -07:00
CheekyGoblin 04cd8496cb change keffiyeh to cover head and use collar for mouth coverage 2021-07-22 19:06:38 -06:00
anothersimulacrum 5833926fbf Add script to get gun stats
The gun various gun variant work needs some standards, and we need a
good way to get those standards. So, add a script to gather data, to
help decide if guns should be collapsed or not.

This script loads all of the gun data, walks through all of the gun
data, following copy-from links to push the data being inherited into
the entry it belongs in.

After doing that, walk through all extracted entries, and output the
relevant data in a table, with some helpers for extracting the data in a
format that is more uniform.
2021-07-22 17:35:09 -07:00
Kevin Granade fdef8b1a54 Update editmap.cpp 2021-07-22 16:06:36 -07:00
mqrause e1a3575a09 private contents member and remove most item_contents.h includes 2021-07-23 00:23:22 +02:00
olanti-p 7ed639853f Remove regional_settings.h from overmap.h 2021-07-22 14:45:47 -07:00
olanti-p f5b852771d Remove character_martial_arts.h include from character.h 2021-07-22 14:22:31 -07:00
mqrause 9bf95457cd remove uses of item_contents::remaining_container_capacity in reloading_test.cpp and item_contents::remove_item_if in item_contents_test.cpp 2021-07-22 23:01:41 +02:00
mqrause 0f0ff9d399 use item::get_remaining_capacity_for_liquid instead of item_contents::remaining_capacity_for_liquid 2021-07-22 22:57:43 +02:00
mqrause d0435ed1fa wrappers for item_contents::visit_contents and item_contents::remove_internal in item 2021-07-22 22:57:43 +02:00
mqrause c3bb5eb2f9 - remove item_contents::sealed_summary and the sealed_summary enum
- add item_contents::all_pockets_sealed and item_contents::any_pockets_sealed and wrappers for them in item
2021-07-22 22:57:42 +02:00
mqrause 8a989fbfc3 wrappers for item_contents::force_insert_item and item_contents::combine in item 2021-07-22 22:57:07 +02:00
olanti-p be326d3398 Remove misc includes from headers 2021-07-22 13:56:11 -07:00
Woe 0301aee390 Modifed mass ratio of sheep wool on harvest to give similar returns to shearing 2021-07-22 21:22:18 +01:00
guralub 7feebc65ff Fix armor pen from martial arts buffs not working 2021-07-22 14:24:16 -03:00
Jianxiang Wang (王健翔) 6d521443d9 Astyle clang-tidy test headers in Makefile (#50129)
* Astyle clang-tidy test headers in Makefile

* Do not skip astyle on relevant changes

* Astyle tools/clang-tidy-plugin/test-include/mock-translation.h
2021-07-22 18:47:35 +03:00
Zhilkin Serg 7aa5a3086d Merge pull request #50126 from Hirmuolio/complain
Fix clang tidy warning
2021-07-22 18:47:17 +03:00
Curtis Merrill b5f7d2df0e [Magiclysm] Teleport_To spell type (#50130)
* [Magiclysm] New Spell Effect

Summary
Mod "Adds teleport_to spell effect type and some spells"

* Linted Json

* Cleanup

* Astyle

* Update teleport.cpp

* Minor code fixes

* Astyle

* Mana cost change

* Teleport effect varies by flag

Instead of two similar teleport effects, there is only short_range_teleport, whose behavior changes based on the TARGET_TELEPORT flag.

* Update MAGIC.md

* Update src/magic.h

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

* Update doc/MAGIC.md

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

* Update src/teleport.cpp

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

* Update src/magic_spell_effect.cpp

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

* Update src/magic_spell_effect.cpp

* return in_spell_aoe to its original location

* astyle

* add piece of documentation back

Co-authored-by: Kenshkrix <kenshkrix@gmail.com>
Co-authored-by: Kenshkrix <42079267+Kenshkrix@users.noreply.github.com>
Co-authored-by: actual-nh <74678550+actual-nh@users.noreply.github.com>
2021-07-22 10:02:27 -04:00
mqrause d3973fdf21 use item::put_in instead of item_contents::insert_item 2021-07-22 15:44:12 +02:00
mqrause c830345ecd replace calls to some item_contents methods with their item counterparts 2021-07-22 15:44:11 +02:00
mqrause 33905d9879 wrappers for item_contents::handle_liquid_or_spill and item_contents::total_contained_volume in item 2021-07-22 15:44:11 +02:00
mqrause dbd0913999 wrappers for item_contents::first_ammo and item_contents::get_item_with in item 2021-07-22 15:43:38 +02:00
Hirmuolio 340962ce9c fix argument name 2021-07-22 10:26:21 +03:00
Angela Graves f0170fea37 Merge pull request #50120 from jiornojiovanni/bread_cleanwater
Added clean water to hallula and cracker recipe
2021-07-22 00:14:59 -05:00
Salty Panda b313d9a543 Fix disappearance of CRIT vest on activation (#50114) 2021-07-21 20:29:10 -07:00
GuardianDll d008f2e224 [Magiclysm] Adding more attunement spells (1/3) (#49809)
* sunmage (+item)+boreal mage(+item)+gaias chosen

* forget to add spell component and attunement info

* resolving small conflict

* some balance tweaks

* deleted AoE from sunMage spell

* lint

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

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

* Change armor info to new style

* Lint

* Update data/mods/Magiclysm/Spells/attunements/Boreal_Mage.json

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

* Update data/mods/Magiclysm/Spells/attunements/Gaias_Chosen.json

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

* Update data/mods/Magiclysm/Spells/attunements/Gaias_Chosen.json

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

* Update data/mods/Magiclysm/Spells/attunements/Gaias_Chosen.json

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

* Update data/mods/Magiclysm/Spells/attunements/Gaias_Chosen.json

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

* Update data/mods/Magiclysm/Spells/attunements/Gaias_Chosen.json

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

* Update data/mods/Magiclysm/Spells/attunements/Sun_Mage.json

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

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

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

* Update data/mods/Magiclysm/materials.json

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

* adding some stuff to sunmage spell + some tweaks in description

* Update data/mods/Magiclysm/Spells/attunements/Gaias_Chosen.json

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

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

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

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

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

* Delete extra effect via using effect_str

Co-authored-by: actual-nh <74678550+actual-nh@users.noreply.github.com>
Co-authored-by: Curtis Merrill <curtis.r.merrill@gmail.com>
2021-07-21 21:41:07 -04:00
jiornojiovanni 3fc4a41929 Added clean water to hallula and cracker recipe 2021-07-21 21:48:55 +02:00
Binrui Dong 90539ba0b2 Automate pulling translations from Transifex (#50067) 2021-07-21 11:49:27 -07:00
Hirmuolio c6f56f7ae2 Slightly simplify sun position code, add sextant to see sun position (#50062)
* add sextant
* sextant works only outside
Co-authored-by: actual-nh <74678550+actual-nh@users.noreply.github.com>
2021-07-21 11:23:56 -07:00
Unknown 430b95bedf Archery Proficiencies and Proficiency Bonus Infrastructure (#50064)
* Archery Proficiencies and Proficiency Bonus Infrastructure

Archery Proficiencies and proficiency bonus infrastructure

* Update doc/PROFICIENCY.md

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

* Update data/json/professions.json

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

* proficiency bonus API

* fix survivalist bow profession

* fix GCC 9 compiler complaint and astyle unrelated monmove astyle failure

* squash batch of commits

Update src/proficiency.cpp

Update src/proficiency.h

Update src/proficiency.cpp

Update src/proficiency.cpp

Update src/proficiency.h

Update src/ranged.cpp

Update src/proficiency.h

Update src/character.h

Update src/character.cpp

Update src/proficiency.cpp

Update src/proficiency.h

Update src/proficiency.h

Co-Authored-By: anothersimulacrum <anothersimulacrum@gmail.com>

* apply changes in code review

* Update src/proficiency.cpp

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

* Update data/json/proficiencies/wilderness.json

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

* Update data/json/proficiencies/wilderness.json

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

* Update doc/PROFICIENCY.md

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

Co-authored-by: anothersimulacrum <anothersimulacrum@gmail.com>
Co-authored-by: I-am-Erk <45136638+I-am-Erk@users.noreply.github.com>
2021-07-21 11:23:09 -07:00
eltank 01e74b623e Recompute overmap::safe_at_worldgen during unserialize() (#50046) 2021-07-21 10:49:03 -07:00
LyleSY 5206b611cb [DinoMod] ERROR CBM dino harvest emergency remix (#50040) 2021-07-21 10:47:14 -07:00
Tamiore 8b32ca79de Add hydria-based charcoal water purifier (#50083) 2021-07-21 08:30:17 -07:00
Paul Fenwick 222079f2c1 astyle fixes (#50113) 2021-07-21 08:25:56 -07:00
Binrui Dong d0fb1f30bc Fix recent clang tidy warnings (#50084)
* Fix clang-tidy warning on string concatenation in learn_spell_actor::info()
* Fix clang-tidy warning on parameter name mismatch in Character::estimate_effect_dur()
Co-authored-by: eltank <8000047+eltank@users.noreply.github.com>
Co-authored-by: Kevin Granade <kevin.granade@gmail.com>
Co-authored-by: Jianxiang Wang (王健翔) <qrox@sina.com>
Co-authored-by: eltank <8000047+eltank@users.noreply.github.com>
2021-07-21 01:28:53 -07:00
Zhilkin Serg 4199b64dae Merge pull request #50107 from LaVeyanFiend/ThiccLichen
[Aftershock] Increase volume/weight of lichen, fix processing not neutralizing toxins
2021-07-21 10:15:24 +03:00
casswedson fb6455faff Use xargs' -P 0 option in JSON style check (#50098)
* use -P 0 option on JSON style check
* xargs' -P 0 option to JSON style doc
2021-07-20 23:19:52 -07:00
exuvo c7ef953132 Fix auto inventory letters bugs #45625, #45401, #43254 (#49925)
* Fix auto inventory letters only assigning wield or wear, stop duplicating letters.
Co-authored-by: Kevin Granade <kevin.granade@gmail.com>
2021-07-20 23:18:43 -07:00
Unknown b2b3960efb Add ability to cause some foods to incur nausea (#49843)
* Nausea mini-rework
* Add Corrosive flag
2021-07-20 23:16:20 -07:00
Kevin Granade 79efd73f7b Skip outdated runs (#50109)
* Skip outdated runs
2021-07-20 22:58:12 -07:00
Angela Graves 6cf305a2a6 Merge pull request #50086 from Tamiore/cordage_crafting_time
Update cordage and cordage ropes crafting time.
2021-07-21 00:12:25 -05:00
LaVeyanFiend b05f974ea2 Lichen fix 2021-07-21 00:09:25 -04:00
I-am-Erk 6ca1ebb321 Missed list (#50093)
* limit starting scenarios/professions
2021-07-20 19:52:38 -07:00
Kevin Granade 5d1cd76365 Merge pull request #49819 from Qrox/unread
Allow the player to track newly learned/unviewed recipes
2021-07-20 18:37:01 -07:00
Giovanni Palmieri 9e19b05612 Added health indicator in all item menu (#48511)
* Added health indicator in all item menu
* Add FOOD HEALTH to iteminfo filtering.
Co-authored-by: Kevin Granade <kevin.granade@gmail.com>
2021-07-20 18:34:16 -07:00
Kevin Granade 64bf2e883d Build fix caused by merges. (#50101) 2021-07-20 18:22:01 -07:00
Eric 87a6eb45af Update doc/NPCs.md
Co-authored-by: actual-nh <74678550+actual-nh@users.noreply.github.com>
2021-07-20 21:14:46 -04:00
ZigVert 2b094cedf3 Added Regenerating zombie (#47089)
* Update zed_misc.json

* Added Regenerating zombie

added a new zed with 120 HP that heals a tenth of it's HP every turn. it has similar fighting capabilities of a tough zombie.

* Update data/json/monsters/zed_misc.json

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

* Update data/json/monsters/zed_misc.json

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

* Lint json, tweak regen and add regenerating zombie to spawn and upgrade groups

* Apply suggestions from code review

Dropping HP and removing unecessary flags.

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

Co-authored-by: actual-nh <74678550+actual-nh@users.noreply.github.com>
Co-authored-by: Kevin Granade <kevin.granade@gmail.com>
Co-authored-by: I-am-Erk <45136638+I-am-Erk@users.noreply.github.com>
2021-07-20 17:08:56 -07:00
occulti 69732c9cc3 Added batch cook times to Granola and Cookies (#50089) (#50096)
* Added batch cook times to Granola and Cookiess
* Relinted file due to select all error
Co-authored-by: Woe <sebbloomfieldcomedy@htomail.co.uk>
2021-07-20 16:40:59 -07:00
Hirmuolio 476d990745 astyle (#50099) 2021-07-20 16:17:31 -07:00
Kevin Granade 201a8b202b Merge pull request #48608 from Hirmuolio/integrated-battery
Refactor battery usage
2021-07-20 15:43:44 -07:00
FeralFerret b69f4b0d68 Add small sludge trail to pupating zombies (#50079)
* added small MF_SMALLSLUDGETRAIL to pupating zombies

* Update src/monmove.cpp

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

Co-authored-by: I-am-Erk <45136638+I-am-Erk@users.noreply.github.com>
Co-authored-by: anothersimulacrum <anothersimulacrum@gmail.com>
2021-07-20 10:54:22 -07:00
Tamiore 1502cd910c cordage_crafting_update 2021-07-20 19:15:42 +03:00
Saicchi 42aef0c8bf Make bolt cutting an activity (#50057)
* wirecutting activity_actor

* bolt cutting use activity_actor

Co-authored-by: Saicchi <Saicchi@users.noreply.github.com>
2021-07-20 08:53:29 -07:00
LyleSY 46486695dd fungal skeletal zombies (#49842)
* fungal skeletal zombies

* move fungal boomer

* remove duplicates

* most classic zombies fungalize

* skeletal zombies fungalize

* fix vision

* no diff dupe

* guilt free child death

* update unhardcoded SMASH

* simplify conflict
2021-07-20 08:46:57 -07:00
somepersondunno 2eab011fd8 Corrects and cleans up descriptions on some clothing items. (#49928)
* Cleans up some clothing descriptions.

* Update torso_clothes.json

* Fixes (hopefully) spacing issues.

* Update legs_armor.json

* Apply suggestions from code review

Thanks for editing this, actual-nh!

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

* Update data/json/items/armor/suits_protection.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>
Co-authored-by: Kevin Granade <kevin.granade@gmail.com>
2021-07-20 07:09:18 -07:00
Serhiy Zahoriya db097c5f8f None "Minor improvement to pyvips installation docs and compose.py error text" (#50069)
* minor improvement to pyvips installation docs
* Improve wording when sprite was not found
2021-07-20 00:03:37 -07:00
Angela Graves 8e9a3ea01d Merge pull request #50081 from eltank/fixbuild
Fix clang-tidy error in character.cpp
2021-07-20 00:08:08 -05:00
I-am-Erk 2e6b01a96f ERROR: Signal lost in multiple units. WARNING: Sensitive materiel may require retrieval. (#49892)
* add zomborg harvest itemgroups
not yet connected to the zomborg
2021-07-19 20:53:02 -07:00
Kevin Granade 8020fed94a Still more aggressive workflow skipping (#50076)
* Still more aggressive workflow skipping

In the main build matrix, only run the full suite on C++ changes, if there are just json changes, still run the stages that depend on mod content.
2021-07-19 20:48:06 -07:00
eltank ab865145b3 Fix clang-tidy error in character.cpp 2021-07-19 20:45:08 -07:00
casswedson 1c6fc85057 fix JSON style error (#50071) 2021-07-19 15:46:39 -07:00
Zhilkin Serg ba28bb665f Merge pull request #50065 from AMurkin/fix-cddatags
Fix cddatags (`cherry-pick`ed commit from #49980 by @jbytheway)
2021-07-19 20:17:33 +03:00
occulti 519d4ad258 Fixed Morphine description to suggested one (#50061)
Co-authored-by: Woe <sebbloomfieldcomedy@htomail.co.uk>
2021-07-19 09:49:32 -07:00
Tamiore c33b303da5 Update tools_primitive.json (#50044)
Resolves crafting bottleneck with cutting 1 requiring cutting 1
2021-07-19 09:48:24 -07:00
Paul Fenwick 59d9f8f767 Allow the player to return with more merch to pay the merchant for cleanup help. (#50049)
Previously if the player wasn't carrying any Merch, they could be
flagged as having asked the front-merchant for help with Boris' cleanup
effort, and be told they could "sweeten the deal", but could then never
actually purchase help because the option would not show again.

This commit moves setting the `cleanup_asked` var to when payment is
actually made, and adds a "I might come back with some more Merch…"
dialog option to help guide the player.

Unfortunately this does not fix the quest for players who have already
spoken to the merchant without any Merch.
2021-07-19 09:47:49 -07:00
eltank 7e05d34e0f Consolidate Creature::is_player() and is_avatar() (#50050) 2021-07-19 08:33:56 -07:00
John Bytheway 47da85d72a Fix cddatags
We were opening files in binary mode with an encoding.  This mistake
used to be silently ignored, but is now an error, so fix that.
2021-07-19 17:36:06 +03:00
Zhilkin Serg 9dc329cd03 Merge pull request #50058 from pjf/pull/dsa_infection
Correct no_infection_chance to infection_chance in Dark-Skies-Above
2021-07-19 14:26:20 +03:00
anothersimulacrum a29524175c Prevent UB passing 0 to LIGHT_RANGE (#49949)
Co-authored-by: Kevin Granade <kevin.granade@gmail.com>
Co-authored-by: actual-nh <74678550+actual-nh@users.noreply.github.com>
2021-07-19 14:23:39 +03:00
Zhilkin Serg cc9391fe8a Merge pull request #50053 from pjf/pull/hemo_chitin_fix
Require hemostatic powder to require *powdered* chitin only.
2021-07-19 14:21:48 +03:00
Zhilkin Serg fa057abf51 Merge pull request #50054 from Saicchi/astylefix
Apply astyle to files
2021-07-19 14:21:31 +03:00
Paul Fenwick 0eb5691605 Correct no_infection_chance to infection_chance in Dark-Skies-Above
I'm assuming `infection_chance` is `100 - no_infection_chance`.
2021-07-19 21:19:40 +10:00
Saicchi 3d5eade394 astyle fix 2021-07-19 04:56:36 -03:00
Paul Fenwick 2b68b94e91 Require hemostatic powder to require *powdered* chitin only.
I don't see how chunks of chitin would turn into powder without a
grinding instrument.
2021-07-19 17:44:40 +10:00
Zhilkin Serg f522d23239 Merge pull request #48462 from GGgatherer/colorized-spells-in-spellbook-view
Colorize spells in spellbooks
2021-07-19 10:19:46 +03:00
Merrygin 0f646162aa Add/Fix sausage requirements (casings, funnels) (#48993)
Co-authored-by: Schmitz, Jascha <jakob.schmitz@dlr.de>
Co-authored-by: Binrui Dong <brett.browning.dong@gmail.com>
2021-07-19 10:19:01 +03:00
Kevin Granade 0c9982dbbb Merge pull request #49887 from mqrause/private_contents_pt2
Preparation to make the contents member of the item class private part 2
2021-07-19 00:17:38 -07:00
Maleclypse 076b4734e1 Wasp harvest for pupa and larva (#49878) 2021-07-19 00:16:41 -07:00
Zhilkin Serg 38fbe27cd6 Merge pull request #50043 from Maleclypse/Hatchet's-aren't-melee-durable
Hatchets aren't melee durable
2021-07-19 10:16:06 +03:00
Venera3 71378ebcb0 Unhardcode monster smash attacks (#49316)
* It lives!
Range gets rewritten, the rest is to do
* Longswipe
no_adjacent and attack_chance as new variables
Head/eye hits make no sense until they can actually break your neck.
Co-authored-by: actual-nh <74678550+actual-nh@users.noreply.github.com>
Co-authored-by: Kevin Granade <kevin.granade@gmail.com>
2021-07-19 00:15:45 -07:00
Welp 153c92395e Add time elapsed/remaining to effects info panel (#48917)
* Add effect duration elapsed info, improve Pain Effect info
Add effect duration elapsed info to info panel, add colored pain text to info panel
* Improve effect time display
Moved estimate_effect_dur() to Character, and improved implementation.
Co-authored-by: Kevin Granade <kevin.granade@gmail.com>
2021-07-19 00:13:24 -07:00
Kevin Granade d0be27ac9c Merge pull request #49598 from jbytheway/update_compiler_support
Update compiler support now that Ubuntu Xenial is out of support
2021-07-19 00:08:58 -07:00
Angela Graves 73a5d892cf Merge pull request #50019 from RoyBerube/body_dupe
Avoid extra zombie revives from one corpse
2021-07-19 00:21:35 -05:00
John Bytheway 8b108345bf No sentinel for closest_enemy_to_friendly_distance (#50037)
This function returning a sentinel value was causing UB due to integer
overflow.  Also, the sentinel it actually returned wasn't the one the
docs claimed it did.  Replace with an optional to reduce confusion.
2021-07-18 22:07:04 -07:00
Kevin Granade 38a7d7a408 Update crafting_gui.cpp 2021-07-18 21:49:17 -07:00
Kevin Granade 402f81250d Update doc/COMPILING/COMPILER_SUPPORT.md
Co-authored-by: actual-nh <74678550+actual-nh@users.noreply.github.com>
2021-07-18 20:35:54 -07:00
Kevin Granade 08cac8a9ab Update matrix.yml 2021-07-18 20:35:42 -07:00
Paul Fenwick 023b3bbe7a Base NPC auto-eating on hunger, not stored kCal (#49494)
NPCs would only eat if they had less than 95% of their healthy kCals
remaining, however they would still be *hungry*, and would still
complain about this, refuse to train the PC, etc. This would result in
the annoying situation of having to endure a whingy NPC until they learn
to eat for themselves, or spoon-feeding them and having them be
completely player-dependent.

This PR attempts to unify what causes the NPC to complain or not
cooperate (their hunger level) with when they eat, so we're less likely
to have NPCs complain about being hungry with food in their inventory.
2021-07-18 20:11:03 -07:00
Ramza13 4f2d953324 Add morale and focus functions 2021-07-18 22:44:28 -04:00
Kevin Granade 8d53c5818b More agressive skipping of duplicate workflows (#50042)
* More agressive skipping of duplicate workflows
2021-07-18 19:37:33 -07:00
Fris0uman 91dccb2a59 Update Tilesets 21-07-19 (#50041)
* Update MSX 2021-07-19

* Update Ultica

* Update Chibi Ultica

* Move overlay ordering to its own file to avoid overriding it in future updates

* Update Retrodays
2021-07-18 18:08:28 -07:00
Welp 81995f4f76 Make apply_light_arc() use castLight() (#49183)
* Update apply_light_arc() to cut arc into octants.

Operates clockwise, from opening angle (center-width/2) to close (center+width/2). If opening angle isn't a multiple of 45 deg, render it to the next 45 degree angle the slow way. calculate the number of octants and the starting octant, then walk clockwise calling appropriate castLight() versions. Then, if part of the arc is still left, do it the slow way.

Todo: name things better and optimize
2021-07-18 17:38:57 -07:00
Saicchi fa71f58191 Butchering use best tool in crafting radius (#48930)
* max_quality with radius
* butchering get best tool
* use max_quality visitable function
2021-07-18 17:19:20 -07:00
Hirmuolio 3c1422793a fix complaints (#50036) 2021-07-18 17:04:14 -07:00
Maleclypse b347e6243e Update woodworking.json 2021-07-18 18:35:19 -05:00
Zhilkin Serg a27f8015b4 Merge pull request #50032 from occulti/FixVehicleFuel
Changed Humvee jerrycans to use JP8 fuel (#50008)
2021-07-18 21:28:24 +03:00
Atsumari 16c37da66a Vehicle plates recipe rework (#49947) 2021-07-18 20:55:32 +03:00
AccountAlias eaf38de35a Fix zombie grabs and bites (#49948)
Co-authored-by: Anton Burmistrov <Night_Pryanik@mail.ru>
2021-07-18 20:54:44 +03:00
Zhilkin Serg 4f587500df Merge pull request #49957 from eltank/hiddenlabfind
Improve chance to find hidden lab in MISSION_SCIENCE_REP_3
2021-07-18 20:54:19 +03:00
martinrhan 440cbd0e9a Refactor the json files relative to the three rigs among Aftershock and BlazeIndustries (#49977) 2021-07-18 20:53:36 +03:00
Zhilkin Serg f16c224166 Merge pull request #50000 from int-ua/bn-46755
Bugfixes "Port fix for 'phantom fuel' from Cataclysm-BN"
2021-07-18 20:53:08 +03:00
Zhilkin Serg cc162a0549 Merge pull request #50009 from curstwist/lab_parking_lot
Add modular lab parking lot
2021-07-18 20:52:53 +03:00
Zhilkin Serg 605451f0c7 Merge pull request #50006 from mlangsdorf/helicopter_fuel_fix
vehicles: helicopters do not have 100% load in idle()
2021-07-18 20:52:41 +03:00
Zhilkin Serg 651b617e23 Merge pull request #50028 from casswedson/read-the-checks
Mention checks in PR template
2021-07-18 20:51:15 +03:00
Zhilkin Serg 8d17b33cf7 Merge pull request #50021 from BrettDong/death-message
Translate monster death function messages
2021-07-18 20:50:52 +03:00
Zhilkin Serg e33cd927c6 Merge pull request #49910 from AxemaVales/fix-mdeath-summons
Fix for mdeath summons
2021-07-18 20:49:46 +03:00
Woe 44a63cbd68 Changed Humvee jerrycans to use JP8 fuel 2021-07-18 16:58:45 +01:00
curstwist 251380d467 lab nested chunks 2 (#49991)
* lab nested chunks 2

security, commercial, cargo, maintenance, science_common

* changes from feedback.
2021-07-18 08:45:14 -07:00
curstwist ccf5c45f2f Lab nests 1 (#49990)
* lab_nested_maps_1

medical, mutagen, residential nests, edits to nested_common.

* Update lab_nested_mutagen.json

* incorporate feedback changes
2021-07-18 08:44:47 -07:00
Saicchi ac81446087 Move ACT_READ from activity_handler to activity_actor (#46304)
* act_read initial body

Co-authored-by: actual-nh <74678550+actual-nh@users.noreply.github.com>
Co-authored-by: Binrui Dong <brett.browning.dong@gmail.com>

* convert act_read into an activity_actor

* update reading tests

* act_read minor fixes

* rebase act_read to experimental build 2021-07-17-0839

Co-authored-by: Saicchi <Saicchi@users.noreply.github.com>
Co-authored-by: actual-nh <74678550+actual-nh@users.noreply.github.com>
Co-authored-by: Binrui Dong <brett.browning.dong@gmail.com>
Co-authored-by: Kevin Granade <kevin.granade@gmail.com>
2021-07-18 08:38:29 -07:00
John Bytheway a17ccb1888 Sunlight angle (#48090)
* Make turn_zero constexpr

* Add features to rl_vec3d

* Construct from rl_vec2d and z-coord
* Extract xy as rl_vec2d
* In-place scaling

* StringMaker support for rl_vec2d

* Add StringMaker specialization for time_point

* Add atan2( rl_vec2d ) overload

* Add units::asin returning units::angle

* Add sunlight angle calculation and tests

This is an initial implementation of sunlight_angle, which should work
OK for the first few days, but will break down before the end of the
first year.

One test plots the path of the sun through the sky at each solstice and
an equinox.  This is intended as a simple smell test that's easy for a
human to see when something has gone wrong with the sun angle algorithm.

* Add analemma unit test

* Tweak sunlight calculation away from reality

Because the game years don't match real-world years, we need to make
some adjustments to the sunlight angle calculations to allow for that.

* Use logical origin of sidereal time

We had an origin of 177, but 180 makes logical sense, so switch to that
as it's easier to understand.

* Derive sidereal time from angle_per_day

Removing one magic constant.

* mean_long, mean_anomaly in terms of angle_per_day

Remove more arbitrary constants from the calculation, and document those
which remain.

* Use game year length, not real-world one

This removes one more arbitrary constant and means that the sunlight
angle calculations ought to work for other season lengths.

* Unit test for handling season length

* Base sunrise and sunset on astronomical maths

This is the first change that allows the sun angle calculations to
actually influence the game.

We switch the sunrise and sunset times to match the sun positions as
calculated by the astronomical equations surrounding the location of the
sun.

This requires changing a few other places in the code, and updating a
lot of tests.

Heavinly inspired by Hirmuolio's work in #47570, but reimplemented
rather than cherry-picked.

Co-authored-by: Hirmuolio <hirmuolio@gmail.com>

* Support eternal season for new Sun calculations

When eternal season is set, always have the Sun behave as it does on
whatever day the game starts.

* Update some comments in sun_test.cpp

* Appease clang 3.8

* Improve comments and variable names

Based on Github review.

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

* Fix clang-tidy issues

* Assume solar time rather than timezone

Previously the sunlight angle code required you to pass a timezone.
Now, instead, it assumes the timezone is local solar time (determined by
the longitude).  This makes some of the calculations simpler and the API
less confusing.

It does mean that the test cases have drifted a little further from the
'true' Boston sunrise and sunset times, but they're still fairly close.

Co-authored-by: Hirmuolio <hirmuolio@gmail.com>
Co-authored-by: actual-nh <74678550+actual-nh@users.noreply.github.com>
2021-07-18 07:57:39 -07:00
casswedson c34957b9af Mention checks in PR template
Hopefully make more people read the check annotations or test logs
2021-07-18 09:44:25 -05:00
John Bytheway 8b1cc2c509 Suppress unused macro warning
This _UNICODE macro should be used by the Windows C runtime, even if not
in all cases.
2021-07-18 07:15:08 -04:00
John Bytheway 174e13f1eb Remove .travis.yml
When we're not even running Travis tests, this configuration will only
rot.
2021-07-18 07:15:08 -04:00
John Bytheway 20baddcf85 Expand GitHub matrix workflow to more compilers
Now that Travis has stopped running, convert the PR Travis job coverage
into new GitHub workflow jobs within the matrix workflow.

In the process, tried to refactor the workflow definition to pull more
common parts out of the individual job definitions.
2021-07-18 07:15:08 -04:00
John Bytheway 4e2dfefc40 Update Travis for new compiler requirements
Update all the builds for the newer min and max supported compiler
versions.
2021-07-18 07:15:07 -04:00
John Bytheway a65e25cd9f Dump compiler version at start of build.sh 2021-07-18 07:15:07 -04:00
John Bytheway 6cba5d4439 Update compiler support versions
Since Xenial is now out of support, we can bump to Bionic and update all
our supported compilers accordingly.
2021-07-18 07:15:07 -04:00
Binrui Dong 983b89ed2f Translate monster death function messages 2021-07-18 16:04:50 +08:00
Kevin Granade b406093ea9 Make bomb fragment strikes size-aware 2021-07-17 23:36:09 -07:00
RoyBerube 066e46a31f Avoid extra zombie revives from one corpse 2021-07-17 23:46:09 -06:00
Angela Graves 21ca15efda Merge pull request #50003 from Marrim/master
Chainlink fence posts now require pipe fittings to build
2021-07-18 00:45:40 -05:00
Salty Panda 10632a463f Rebalance bionic, fix some weird stats (#46212)
* Rebalance bionic, fix some weird stats
Co-authored-by: actual-nh <74678550+actual-nh@users.noreply.github.com>
2021-07-17 17:12:27 -07:00
Autoquark 9f0d77d2f8 #44459 make disabling a monster an activity with variable duration (#44670)
* #44459 disabling a robot is an activity with variable duration
Co-authored-by: Binrui Dong <brett.browning.dong@gmail.com>
Co-authored-by: Kevin Granade <kevin.granade@gmail.com>
2021-07-17 16:56:54 -07:00
curstwist 319d49cca9 modular lab parking lot 2021-07-17 14:39:30 -04:00
Mark Langsdorf 5e1585f95c vehicles: helicopters do not have 100% load in idle()
helicopters already have a minimum 10% to 30% load just for
hovering or moving.  Giving them an additional 100% load in idle()
makes no sense and contributes to the ridiculously bad fuel
consumption for helicopters.
2021-07-17 08:31:23 -05:00
Qrox c7ccc9d284 Disable left/right keys when choosing batch 2021-07-17 20:46:53 +08:00
Qrox d4f40601c0 Keep previously selected recipe; refresh when toggling favorite only in the favorite tab 2021-07-17 20:46:15 +08:00
Qrox a4a331debe Mark recipe as read when selecting batch and crafting 2021-07-17 20:46:15 +08:00
Qrox 9202964633 Mark tabs and subtabs with read/unread indicator 2021-07-17 20:46:14 +08:00
Qrox a5ee09fed2 Fix #49829 and other issues 2021-07-17 20:46:14 +08:00
Qrox ef16a45ae5 Fix keybinding for marking all recipes as read 2021-07-17 20:46:14 +08:00
Qrox f68e0c7c44 Do not refresh when toggling favorite recipe 2021-07-17 20:46:14 +08:00
Qrox fc14f8de06 Fix sorting of favorite recipes 2021-07-17 20:46:13 +08:00
Qrox 6d2e4a5c8c Allow disabling unread recipe highlighting 2021-07-17 20:46:12 +08:00
Qrox e8a15b772e Allow marking all known recipes as read 2021-07-17 20:46:12 +08:00
Qrox 27bf4b16eb Add key to display new recipes on top 2021-07-17 20:46:12 +08:00
Qrox d78de260e2 Show new recipes as unread, and allow toggling read status 2021-07-17 20:46:12 +08:00
Dmitriy "Murphy" Kubasov f1571f0440 Update construction.json 2021-07-17 17:54:57 +08:00
Serhiy Zahoriya ec7e18f9d8 Port fix for #46755 from Cataclysm-BN
https://github.com/cataclysmbnteam/Cataclysm-BN/commit/4e72346f1ed6e71f09b7d5551fac6d0aa158d93f
2021-07-17 11:43:00 +03:00
Zhilkin Serg b47a3c0325 Merge pull request #49945 from Maleclypse/CRT-boots-coverage-fix
CRT boots coverage fix
2021-07-17 11:41:57 +03:00
Zhilkin Serg aada1fc730 Merge pull request #49995 from LaVeyanFiend/ConsistentMagnum
Fix ammo capitalization
2021-07-17 11:40:20 +03:00
Zhilkin Serg 49adfec967 Merge pull request #49997 from CleverRaven/pos-arg
Use positional arguments for "It should take %d minutes to finish washing items in the %s."
2021-07-17 11:39:53 +03:00
Zhilkin Serg 9ce7217676 Merge pull request #49982 from jbytheway/clang-tidy_cata-translations-in-debug-messages
Clang tidy cata translations in debug messages
2021-07-17 11:39:28 +03:00
Angela Graves 69074ecf8c Merge pull request #49996 from BrettDong/i18n
Routine i18n updates on 17 Jul 2021
2021-07-17 00:29:03 -05:00
Binrui Dong aaa61e3ad7 Use positional arguments for "It should take %d minutes to finish washing items in the %s." 2021-07-17 12:46:06 +08:00
Binrui Dong 70a374d608 Routine i18n updates on 17 Jul 2021 2021-07-17 12:30:31 +08:00
LaVeyanFiend edfc7073eb Magnum is a proper noun 2021-07-17 00:08:11 -04:00
Xpyder 62258b7e11 Change Hobo Stove to deployable furniture (#49442)
* Change Hobo Stove to deployable furnature

Changing Hobo Stove to deployable furnature.

Why change: currently hobo stove was either WAY too efficient, or completely useless.

How is it useful but balanced: It deploys like brazier which means it scales to "nearby fire" efficiency now.  Has a max capacity of 500ml to restrict possible burnable fuels (even plank / stout branch is way too large to fit).  all burnable fuels that fit should burn quickly which will require pre-chopping the wood and setting up a "firewood source" tile most likely, meaning it's better for small / one off / emergencies rather than constant usage

Why not just use brazier: Brazier is big and heavy.  This is much smaller and lighter than a full brazier making it good for general use

Alternatives: Just drop it entirely but I think there's a place for it when you don't want to carry around something as big as a brazier and you're willing to fiddle with fuel a lot in exchange.

Based on this real world recipe: https://www.motherearthnews.com/diy/how-to-make-hobo-stove-zmaz84zloeck

* json lint

auto linted using http://dev.narc.ro/cataclysm/format.html to start

* fix some bugs

* Update furniture-fireplaces.json

increase space to allow 2 splintered wood (1 burning 1 fresh) and 100 wood ash

* more linting

* allow to hold

intent is for you to be able to nest stuff in it when carrying it around.  It has too many holes to hold a liquid or anything smaller than tinder, and you lose 100ml due to added bulk from the way it's built, and it can't hold as much weight as a Medium Can

* fixed recipe

should need both can and scrap
should need both saw and (awl 2 or drill 1)

* fixed typo

accidental removed charges from l-stick instead of hobo_stove

* lint
2021-07-16 14:37:45 -07:00
Hirmuolio cc25bc57f2 remove Character::has_enough_charges 2021-07-17 00:36:51 +03:00
John Bytheway e10755ab4d Fix remaining issues with debug translations
A couple of genuine fixes here, but also I had to add to_string_writable
functions for the point types, which aren't really necessary but help
make the warning message more logical.
2021-07-16 12:14:18 -04:00
John Bytheway 6d440e1112 Remove debug message overloads taking translation
If we don't want translations in debug messages then these overloads
should not exist.
2021-07-16 10:33:49 -04:00
John Bytheway 5a3427bb9b Expand test cases for debug translations 2021-07-16 10:33:48 -04:00
John Bytheway 67b1502ad7 Also check for to_string in add_msg_debug 2021-07-16 10:33:48 -04:00
John Bytheway 7e74de06d0 Initial check for translations in debug messages
Such messages were causing issues.  See for example #49972.  This check
is intended to ensure that similar messages do not reappear.
2021-07-16 10:33:48 -04:00
John Bytheway 148eb89444 Update translation-related clang-tidy checks
Some of these checks were not working for the current definition of _
(the translation macro).  Tweak that definition to make it easier to
detect in a clang-tidy check and update the checks accordingly.
2021-07-16 10:33:48 -04:00
John Bytheway 6abb736669 Factor out mock translation interface
For the clang-tidy-plugin tests, I want to be able to use the mock
translation interface in more places, so factor it out into a header.
2021-07-16 10:33:48 -04:00
Álvaro Muñoz 47d14659e7 Fix message when fuel storage is full 2021-07-16 12:48:17 +02:00
Álvaro Muñoz 03dad7fef1 Remove unneeded filtering child class 2021-07-16 12:32:22 +02:00
Angela Graves 9658f3d65c Merge pull request #49962 from GadekMaciej/fixReloadCost
fixed reload times of guns
2021-07-16 01:42:43 -05:00
curstwist d85639a20a New lab palette set and nested chunks (#49847)
* new lab palette set and nested chunks

* add missing terrain for palette

* Update terrain-doors.json
2021-07-15 22:59:45 -07:00
Atsumari 02f814640d Added another Blacksmithing tool (#49899)
* Recipes

Added recipes and tweaked existing ones.

* Lint

GETTEM OUTTA ERE
2021-07-15 22:58:59 -07:00
Broken27 589db80cdb Added cooking oil to boring sandwitch (#49961)
Toast with olive oil is delicious.
2021-07-15 22:58:25 -07:00
Alexey Mostovoy fff825cdc5 Point math nitpick. (#49960) 2021-07-15 21:17:27 -07:00
LyleSY 131de03333 [DinoMod] Hunted by Dinosaurs scenario (#49968)
* [DinoMod] Hunted by Dinosaurs scenario
2021-07-15 21:15:36 -07:00
Zhilkin Serg 2888c4c7d4 Do not use translated strings in debug messages (#49972) 2021-07-15 21:13:15 -07:00
Beha 43d926678b Fix item action menu pseudos crash. (#49976) 2021-07-15 20:58:17 -07:00
Kevin Granade 1e13ea9a3a Update basic-build.yml (#49965) 2021-07-15 10:14:20 -07:00
Kevin Granade bfb332c2d5 Update matrix.yml (#49964) 2021-07-15 09:29:50 -07:00
GadekMaciej 776609b6ac added missing astyle formating 2021-07-15 18:05:30 +02:00
GadekMaciej b7be6b41e1 fixed reload times of guns 2021-07-15 14:14:50 +02:00
eltank 0b385a94d5 Improve chance to find hidden lab in MISSION_SCIENCE_REP_3 2021-07-15 02:50:42 -07:00
Álvaro Muñoz ff732241c8 Remove non-comestible items from eat menu 2021-07-15 11:03:40 +02:00
Saicchi 23f5efcf5c serialize moves_total 2021-07-15 02:48:49 -03:00
Angela Graves f40b5330c9 Merge pull request #49946 from casswedson/buy-the-bag
Remove TRADER_AVOID flag from mre containers
2021-07-15 00:08:37 -05:00
casswedson b8a621438d Remove TRADER_AVOID flag from mre containers 2021-07-14 17:45:47 -05:00
Maleclypse 81eadf5458 CRT boots coverage 2021-07-14 17:38:21 -05:00
Zhilkin Serg 7d23809c07 Merge pull request #49906 from kevingranade/mm-stop-UB
Return an invalid mm_submap if the map_memory is not prepared
2021-07-15 01:06:05 +03:00
Hirmuolio cc0bdb2976 adv ups not more efficient 2021-07-15 01:00:23 +03:00
Hirmuolio c0f9a4b1e4 unused variable 2021-07-15 01:00:23 +03:00
Hirmuolio bf0ebce40e astyle 2021-07-15 01:00:23 +03:00
Hirmuolio 60ffaf557f info in json 2021-07-15 01:00:23 +03:00
Hirmuolio 14a87cdfc5 aftershock migration 2021-07-15 01:00:23 +03:00
Hirmuolio 42ce4c1204 unused itype_toolset 2021-07-15 01:00:23 +03:00
Hirmuolio 1bb36f0e71 rebase fixes 2021-07-15 01:00:23 +03:00
Hirmuolio 1185428d96 fix repair bionic consumption 2021-07-15 01:00:23 +03:00
Hirmuolio 8c15666e77 fix starting repair 2021-07-15 01:00:23 +03:00
Hirmuolio 5d7fa380bf astyle 2021-07-15 01:00:23 +03:00
Hirmuolio 47fb870d12 force-push improvements 2021-07-15 01:00:23 +03:00
Hirmuolio 6a3e3cbb60 improved charges_of_internal 2021-07-15 01:00:21 +03:00
Hirmuolio 3f00f7f2c1 unnecessary is_tool check 2021-07-15 00:59:47 +03:00
Hirmuolio c8cfbd43f1 removed comment 2021-07-15 00:59:14 +03:00
Hirmuolio d18daef363 return pure ups power only 2021-07-15 00:59:14 +03:00
Hirmuolio 38721c4bf1 ups bionic for crafting 2021-07-15 00:59:14 +03:00
Hirmuolio eb49809184 obsolete adv ups 2021-07-15 00:59:13 +03:00
Hirmuolio d3fb832036 unnecessary double check 2021-07-15 00:59:13 +03:00
Hirmuolio a45817a1d0 mandatory carrier for ammo_sufficient 2021-07-15 00:59:12 +03:00
Hirmuolio c1498af0d8 don't run this twice 2021-07-15 00:58:25 +03:00
Hirmuolio 465914897d ups from map and inventory 2021-07-15 00:58:25 +03:00
Hirmuolio 1500c7dd13 fix bionic power for crafting tools 2021-07-15 00:58:25 +03:00
Hirmuolio 8ac075be3e unnecessary const 2021-07-15 00:58:25 +03:00
Hirmuolio f1a1bf971e astyle 2021-07-15 00:58:25 +03:00
Hirmuolio d073d226ac cleaner 2021-07-15 00:58:25 +03:00
Hirmuolio b83b005325 ups map drain 2021-07-15 00:58:23 +03:00
Hirmuolio 65a6dbd63e fix things 2021-07-15 00:56:42 +03:00
Hirmuolio 70de4d26a9 large UPS rewrites 2021-07-15 00:56:42 +03:00
Hirmuolio 3ebbbbe428 prevent overdrain 2021-07-15 00:56:41 +03:00
Hirmuolio 95d3fb51c8 just call available_ups 2021-07-15 00:56:41 +03:00
Hirmuolio 7119ffdab0 consume_ups faster 2021-07-15 00:56:41 +03:00
Hirmuolio 65a43343e4 available_ups() 2021-07-15 00:56:41 +03:00
Hirmuolio c9d7e75b65 duplicate check 2021-07-15 00:56:41 +03:00
Hirmuolio a32d59b311 these parts are still used 2021-07-15 00:56:41 +03:00
Hirmuolio 752accf4d2 minor comment 2021-07-15 00:56:41 +03:00
Hirmuolio e8938d6420 code that shouldn't run gives debug msg if it is spotted 2021-07-15 00:56:41 +03:00
Hirmuolio 815bef1d0d minimal improvements 2021-07-15 00:56:41 +03:00
Hirmuolio b03ae525fe cleaner 2021-07-15 00:56:40 +03:00
Hirmuolio 75ea210fd6 crafting ups use 2021-07-15 00:56:40 +03:00
Hirmuolio d5534f89ff fix crafting with ups 2021-07-15 00:56:40 +03:00
Hirmuolio 9a58010bd9 small miss 2021-07-15 00:56:40 +03:00
Hirmuolio e0f0dc1a66 simplify check 2021-07-15 00:56:40 +03:00
Hirmuolio 45dae0f075 unused ups code 2021-07-15 00:56:40 +03:00
Hirmuolio f0be8678ea not used anymore 2021-07-15 00:56:40 +03:00
Hirmuolio a18673803a seems like dead code 2021-07-15 00:56:40 +03:00
Hirmuolio d855061ff7 revert jackhammer 2021-07-15 00:56:40 +03:00
Hirmuolio 5d41aafc92 astyle 2021-07-15 00:56:40 +03:00
Hirmuolio 11fd91a0a8 electr firestarter 2021-07-15 00:56:40 +03:00
Hirmuolio 499b1680ab electr firestarter 2021-07-15 00:56:40 +03:00
Hirmuolio 0faffab911 Use Character 2021-07-15 00:56:39 +03:00
Hirmuolio 70d042c97a fix grenade (again) 2021-07-15 00:56:39 +03:00
Hirmuolio 60b66bfa4d misc adjustments 2021-07-15 00:56:39 +03:00
Hirmuolio 21836866df fix ammo count 2021-07-15 00:56:39 +03:00
Hirmuolio 0d04c099b4 random fixes 2021-07-15 00:56:39 +03:00
Hirmuolio f965076a24 wrong statement 2021-07-15 00:56:39 +03:00
Hirmuolio 0cd8c18bf7 fix grenade 2021-07-15 00:56:39 +03:00
Hirmuolio e0e508624a unused variables 2021-07-15 00:56:39 +03:00
Hirmuolio 58a2a9bf82 fix ups weapon 2021-07-15 00:56:39 +03:00
Hirmuolio b99d6d2c99 ammo_remaining( 2021-07-15 00:56:39 +03:00
Hirmuolio 34e0065570 astyle 2021-07-15 00:56:38 +03:00
Hirmuolio 6d2b4ac292 ammo_consume( 2021-07-15 00:56:38 +03:00
Hirmuolio 52ba316240 astyle 2021-07-15 00:56:38 +03:00
Hirmuolio 1a01e10491 reqrite 2021-07-15 00:56:36 +03:00
Hirmuolio a300df970a unused line 2021-07-15 00:56:12 +03:00
Hirmuolio 6ffa4023a6 cleanup 2021-07-15 00:56:10 +03:00
Hirmuolio aa7572f966 astyle 2021-07-15 00:55:51 +03:00
Hirmuolio 313f58cb04 probably safe 2021-07-15 00:55:51 +03:00
Hirmuolio d92544c244 fix item process 2021-07-15 00:55:51 +03:00
Hirmuolio 360f6dd74c astyle 2021-07-15 00:55:51 +03:00
Hirmuolio af501ee469 use new method 2021-07-15 00:55:51 +03:00
Hirmuolio 39cb825f54 fix comparison 2021-07-15 00:55:51 +03:00
Hirmuolio 448ca88f46 why is tis 2x I do not know 2021-07-15 00:55:51 +03:00
Hirmuolio d7ece5ab98 new methods in more places 2021-07-15 00:55:50 +03:00
Hirmuolio 822a4c4117 ups in generic_game_turn_handler 2021-07-15 00:55:50 +03:00
Hirmuolio 2dab75aa8f use new method in ranged 2021-07-15 00:55:50 +03:00
Hirmuolio 29a275e26c use new method in places 2021-07-15 00:55:50 +03:00
Hirmuolio 3dc28fde12 UPS ammo does not exist anymore 2021-07-15 00:55:50 +03:00
Hirmuolio c92187b54f lint 2021-07-15 00:55:50 +03:00
Hirmuolio b79085d6ea use has_enough_electr 2021-07-15 00:55:48 +03:00
Hirmuolio 0992ef8025 it compiles 2021-07-15 00:54:52 +03:00
Hirmuolio c4099445cc maybe works now 2021-07-15 00:54:20 +03:00
Hirmuolio 5491d15c10 has_enough_electr 2021-07-15 00:54:20 +03:00
Hirmuolio ae7263da7c ammo req 2021-07-15 00:54:18 +03:00
Hirmuolio d78c3c43a3 jackhammering works 2021-07-15 00:49:07 +03:00
Hirmuolio b94fa40bd1 item pwr drain refactor 2021-07-15 00:48:45 +03:00
Hirmuolio d89a3c961e convert electrick jackhammer 2021-07-15 00:46:36 +03:00
Álvaro Muñoz 0153010b8e Fix battery CBM refueling 2021-07-14 21:45:43 +02:00
Zhilkin Serg 7b88ade2f2 Merge pull request #49940 from anothersimulacrum/fix-gun-variants
Fix guns not being properly assigned variants
2021-07-14 22:22:43 +03:00
Zhilkin Serg 6f110ae52b Merge pull request #49939 from CleverRaven/45-typo
Fix typo in the name of PPQ .45 Magazine
2021-07-14 22:22:12 +03:00
Zhilkin Serg dc5399664b Merge pull request #49934 from pjf/pull/hub01_fema_data_fix
Allow MISSION_FREE_MERCHANTS_HUB_DELIVERY_1 to complete after player has already met HUB-01
2021-07-14 22:22:05 +03:00
Zhilkin Serg ba24d656e3 Merge pull request #49931 from Qrox/siphon
Hide vehicle UI when pouring on the ground
2021-07-14 22:21:38 +03:00
Kevin Granade 5fec68865b Add a basic build and test job (#49927)
* Add a basic build and test job

The intention is that this will be a required build and test job that must always pass.
2021-07-14 10:12:57 -07:00
anothersimulacrum 99fcc61765 Fix guns not being properly assigned variants
Guns which are not migrated to variants and are not newly generated are
never assigned variants, causing them to show generic names, even when
the brand names option is set to show brand names.

Assign variants to all guns on loading, so any guns from previous
versions without variants assigned will get them assigned. Add some
additional logic to ensure that guns are assigned the variant
corresponding to their previous item if valid, and in other cases
randomly select a variant.
2021-07-14 10:06:15 -07:00
Binrui Dong d522bcdd2b Fix typo in the name of PPQ .45 Magazine 2021-07-15 00:25:50 +08:00
Zhilkin Serg 3a2dc8dc8e Merge pull request #49933 from CleverRaven/kevingranade-matrix-skip-duplicate-actions
Migrate matrix to skip-duplicate-actions
2021-07-14 15:09:11 +03:00
Paul Fenwick cac40ae158 Allow MISSION_FREE_MERCHANTS_HUB_DELIVERY_1 to complete after player has already met HUB-01
HUB-01/RoboFac would only accept the merchant's drive of FEMA data if
they had *not* met the player before, resulting in an uncompletable
quest otherwise.

This adds the dialog option to the `TALK_ROBOFAC_INTERCOM_SERVICES`
section, allowing the mission to complete even if the player is known.
2021-07-14 19:52:15 +10:00
Angela Graves e021315ba4 Merge pull request #49930 from Qrox/plural
Fix more weapon plurals
2021-07-14 00:53:35 -05:00
Kevin Granade 1071cec87f Migrate matrix to skip-duplicate-actions 2021-07-13 22:36:07 -07:00
klip f71d58929d Start plastic materials overhaul (#49922)
* Started plastic material overhaul

Added 2 new materials (thermo_resin, epoxy), 2 new chunk items, changed football armor and helmet to epoxy material, f_lab_bench now drops epoxy.

* Delinted

* Updated data/json/items/armor/helmets.json

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

* Updated data/json/items/armor/helmets.json

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

* Updated data/json/items/armor/helmets.json

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

* Updated data/json/items/armor/torso_armor.json

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

* Updated data/json/items/armor/torso_armor.json

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

* Updated data/json/items/resources/plastic.json

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

* Updated data/json/items/resources/plastic.json

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

* Updated data/json/materials.json

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

* Updated data/json/materials.json

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

* Apply suggestions from code review

* Apply suggestions from code review

* Updated to new armor syntax (I think?)

* Updated data/json/materials.json

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

* Merge branch 'plastic_overhaul' of https://github.com/definitelynotklip/Cataclysm-DDA into plastic_overhaul

Co-authored-by: I-am-Erk <45136638+I-am-Erk@users.noreply.github.com>
2021-07-13 22:21:43 -07:00
Kevin Granade 0eead1fa58 Return an invalid mm_submap if the map_memory is not prepared 2021-07-13 22:19:30 -07:00
Saicchi 89b4763c36 Swimming in water can now destroy some items (#47018)
* watersoluble base

* watersoluble add flags to items

* watersoluble add tests

* rebase watersoluble to experimental 2021-07-13-0115

Co-authored-by: Saicchi <Saicchi@users.noreply.github.com>
2021-07-13 22:18:03 -07:00
Qrox fa81acce16 Hide vehicle UI when pouring on the ground 2021-07-14 11:42:28 +08:00
Qrox 9a48898861 Fix more weapon plurals 2021-07-14 11:42:18 +08:00
Kevin Granade 7bd735e9f3 Use skip-duplicate-actions to conditionally execute json-style (#49924)
* Use skip-duplicate-actions to conditionally execute json-style

Needed to mark json check as required for merge.
2021-07-13 17:29:31 -07:00
Kevin Granade 917985a9a9 Use skip-duplicate-actions to conditionally execute astyle (#49923)
* Use skip-duplicate-actions to conditionally execute astyle 

Needed to mark astyle check as required for merge.
2021-07-13 17:11:23 -07:00
Kevin Granade 0ca0d2468e Mandatory json field (#49921)
* Mandatory json field
* Ypot ifx
2021-07-13 16:13:28 -07:00
Zhilkin Serg 0f3b35449e Merge pull request #49919 from Maleclypse/dinomod-bugfix
[Dinomod] Duplicate entry caused CTD
2021-07-14 00:10:34 +03:00
krulunio 2a4661e78b Power saw recipes (#49257)
* Add power tools

Creates and adds fake power tools to various furniture

* Allow fake_power_tool to use UPS

* Add fake_oven

* Fix fake_oven placement

* Add some tools to requirements

* Add fake_water_purifier and update clean water recipe

* Linting

* Add drilling_standard, for fake_drill_press and other tools

* Add power_saw requirements

* Change wooden beam and plank recipes

* Add recipes for water wheels (normal and large)

* Add power_saw_recipes recipe_group

For basecamps

* Revert "Change wooden beam and plank recipes"

This reverts commit 210ef667db.

* Add alternative wooden beam and plank recipes

* Update power_supplies.json

Co-authored-by: Zhilkin Serg <ZhilkinSerg@users.noreply.github.com>
2021-07-13 14:00:09 -07:00
Maleclypse 98a0bfbef5 Duplicate entry caused CTD 2021-07-13 15:34:23 -05:00
krulunio e5243b7ffd Add freshwater research station basecamp (#49296) 2021-07-13 22:18:31 +03:00
LyleSY 1f7299d489 [Aftershock] Terror bird (#49702) 2021-07-13 22:14:50 +03:00
Zhilkin Serg 2de362e9c5 Merge pull request #49865 from jbytheway/overmap_graphics_connectedness
Support connections for overmap graphics
2021-07-13 22:14:09 +03:00
Zhilkin Serg 81f1cd21c8 Merge pull request #49876 from jbytheway/overmap_graphics_randomness
Overmap graphics randomness
2021-07-13 22:13:03 +03:00
Zhilkin Serg ee320a1000 Merge pull request #49900 from anothersimulacrum/soil-corrections
Fix various soily mapgens
2021-07-13 22:10:55 +03:00
Welp 3ac9cc5ce5 Fix weapons dropping without message on reload (#49904)
Co-authored-by: Wishbringer <wishbringer@telia.com>
2021-07-13 22:09:59 +03:00
Eric 9176c678eb Unhardcode Gills mutations (#47477) 2021-07-13 22:09:15 +03:00
Eric 612e83f25c Unhardcode leaky_bionic (#48683) 2021-07-13 22:08:41 +03:00
Zhilkin Serg f6ee333f05 Merge pull request #49917 from pehamm/wooden_shovel_log
Add wooden shovel recipe using logs in place of planks
2021-07-13 22:07:39 +03:00
Dru 2acdaa0e1e Fix for counting player kills (#49918)
Co-authored-by: anothersimulacrum <anothersimulacrum@gmail.com>
2021-07-13 22:07:19 +03:00
r7st ec7e1f0817 Updated compilation instructions for FreeBSD (#49903) 2021-07-13 22:06:11 +03:00
Zhilkin Serg 43ed397a39 Merge pull request #49912 from CleverRaven/update-toc
Update the table of contents in doc/JSON_INFO.md
2021-07-13 22:05:29 +03:00
Jianxiang Wang (王健翔) 82ab0174b4 More plural fixes; fix incorrect format specifier (#49915)
* Fix plural of weapons; fix format specifier typo

* Fix misc plurals
2021-07-13 22:05:06 +03:00
pehamm 6b98c09294 Added wooden shovel recipe using logs in place of planks 2021-07-13 18:17:01 +02:00
Rivet-the-Zombie 4b3e6b3988 Update the table of contents 2021-07-13 14:39:19 +00:00
Angela Graves 2f313abd1d Merge pull request #49901 from anothersimulacrum/armor-docs
Document armor portion data
2021-07-13 09:38:12 -05:00
Axema ecde8c5ef7 Fix for mdeath summons 2021-07-13 20:17:37 +08:00
anothersimulacrum 1859d46d45 Document armor portion data 2021-07-12 17:25:13 -07:00
anothersimulacrum f9f92b1343 Fix various soily mapgens
Correct ant, cave, and LMOE mapgens according to Night-Pryanik's review.
2021-07-12 16:43:20 -07:00
Saicchi 4663683f2d bracket fix (#49897)
Co-authored-by: Saicchi <Saicchi@users.noreply.github.com>
2021-07-12 18:45:51 -04:00
Termineitor244 00b2a14113 [Magiclysm] New Spell: Nature's Commune (#48330)
* Added new spell "Nature's Commune", and its effect

* Update monster.cpp

* Added spawns, and added the spell to the Ecoterrorist professions

* Apply gramatical suggestions from @actual-nh

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

Co-authored-by: actual-nh <74678550+actual-nh@users.noreply.github.com>
Co-authored-by: Curtis Merrill <curtis.r.merrill@gmail.com>
2021-07-12 17:03:18 -04:00
frankastaire fec988634c Increased volume and length of western holster to accommodate other revolvers (#48532) (#49883)
* Incresed volume of western holster main pocket to 850ml (#48532)

* Increased volume and length of pocket in western holster (#48532)

* Tweked volume slightly to fit Lemat revolver
2021-07-12 11:45:15 -07:00
John Bytheway 159413daa2 Enable clang-tidy bugprone-branch-clone (#49629)
* Enable bugprone-branch-clone

This check looks for multiple branches of an else-if-chain or switch
that are the same.  This is often a sign of a copy/paste error.

The cases that hit in these changes did not include any copy/paste
errors, as far as I could see, but they did highlight quite a few cases
where the code could be usefully refactored.  I did that, and in other
cases I just suppressed the error.

Did fix one small bug related to furniture moving weariness, but that
was just because I happened to be pointed at nearby code, not because it
specifically related to the check.

* Move utf32_to_utf8 to json.cpp

When I deduplicated this function I previously kept the version in
catacharset.cpp, but that breaks the link for the json formatter, so
instead keep the version in json.cpp.

Co-authored-by: actual-nh <74678550+actual-nh@users.noreply.github.com>
Co-authored-by: Kevin Granade <kevin.granade@gmail.com>
2021-07-12 10:17:17 -07:00
mqrause b8b7a022b8 adjust item::can_contain and item::best_pocket to match their item_contents variants 2021-07-12 17:36:59 +02:00
mqrause df54fe15b2 wrappers for item_contents::only_item and item_contents::favorite_settings_menu in item 2021-07-12 14:46:47 +02:00
Angela Graves 4abcc6f4f9 Merge pull request #49871 from somepersondunno/flamearrowfix
Makes flammable arrow components reflect the damage.
2021-07-12 06:46:09 -05:00
mqrause d37ebcacab wrappers for item_contents::overflow and item_contents::empty_container in item 2021-07-12 13:06:14 +02:00
mqrause 355613bac4 use item::get_total_capacity instead of item_contents::total_container_capacity 2021-07-12 13:06:14 +02:00
mqrause 79f661bda1 wrappers for item_contents::insert_cost and item_contents::obtain_cost in item 2021-07-12 13:06:13 +02:00
mqrause 7531d9f6c8 wrappers for item_contents::get_contents_volume_with_tweaks and item_contents::get_nested_content_volume_recursive in item 2021-07-12 13:06:13 +02:00
Atsumari 5c2defc693 Add alternate butter recipe. (#49853)
Added batch multi to churn recipe as per suggestion
Co-authored-by: Maleclypse <54345792+Maleclypse@users.noreply.github.com>
2021-07-12 01:53:28 -07:00
Anton Burmistrov ebf3d2955a Made the Wall non-transparent (#49874) 2021-07-12 01:35:19 -07:00
Anton Burmistrov 644fdbd737 Fixed moving into walls while moving furniture while in pain (#49875) 2021-07-12 01:34:47 -07:00
Kevin Granade 6ba1111493 Update src/sdltiles.cpp 2021-07-12 01:33:13 -07:00
Maleclypse a433433862 Update mammal.json (#49879) 2021-07-12 01:27:52 -07:00
Kevin Granade 5acc5695da Better variable names 2021-07-12 00:11:24 -07:00
Kevin Granade 9293365701 Remove orphaned variables. 2021-07-12 00:11:12 -07:00
Kevin Granade 259b56cb3c Teensy json fix 2021-07-11 23:45:09 -07:00
John Bytheway b2989e4ca2 Support randomization of overmap terrain
Use the global absolute omt coordinates of a tile to seed the
randomization for graphical purposes.
2021-07-11 23:00:08 -04:00
John Bytheway 73bbcfd96d Factor out simple_point_hash used in graphics rng
Several of the pieces of the graphics randomization seeding were using
the same simple hash of a point.  Factor that common code out into a
lambda.  This ought to make the code more efficient, because it reduces
calls to e.g. map::getabs.
2021-07-11 22:58:20 -04:00
John Bytheway 314e8dbde5 Change drawing coordinates of draw_om
cata_tiles has an origin point o.  When drawing the regular map this is
a map-local coordinate.  When drawing the overmap this used to be always
zero.  After this change it now uses the global OMT coordinates of the
north-west corner.  This is helpful because:
* It simplifies draw_om which no longer needs to keep track of omp and
  pos separately; they are the same value.
* It allows pos within draw_from_id_string to be interpreted
  meaningfully.  This will allow further features.
2021-07-11 22:45:18 -04:00
somepersondunno c63b77ed8d Makes flammable arrow components reflect the damage. 2021-07-11 18:48:46 -07:00
Zhilkin Serg c773f5dd91 Merge pull request #49863 from I-am-Erk/ultica-11-july
ultica + chibiultica updates 11 july 2021
2021-07-12 03:41:03 +03:00
Maleclypse 4abc000411 [Aftershock] Quick fixes for PR #48623 (#49866) 2021-07-12 03:40:42 +03:00
Zhilkin Serg ac5572dcd3 Fix apd 2021-07-12 03:40:02 +03:00
Zhilkin Serg e785c121ba Merge pull request #49859 from ToxiClay/makeshift-blindfold-json
Change makeshift blindfold to new JSONization
2021-07-12 03:38:30 +03:00
John Bytheway 9221946115 Document connect_group for overmap_terrain 2021-07-11 19:07:37 -04:00
AccountAlias ca8c468603 fix weird -tarian text (#49861) 2021-07-11 16:07:19 -07:00
John Bytheway 5c2eb0caf3 Add connect_group to generic_forest
As an example use of the new feature, add "connect_group": "forest" to
generic_forest, from which the various forest terrains inherit.
2021-07-11 19:03:48 -04:00
John Bytheway 62fd857f39 Support overmap graphics connectedness
Allow overmap terrain to be connected in a similar way to regular
terrain (e.g. walls).
2021-07-11 18:59:53 -04:00
Atsumari ab86019177 Swage2hot (#49691)
* Requested Changes

Changed the hotcut back to swage in any form it made sense(fixed my major f up with commits LOL)

* Update parts.json

Merge conflict

* Update parts.json

Syntax update

* Update metalworking.json

* Update locations_commercial.json

Final syntax fix on this weird issue.

* Update metalworking.json

Accidentally had duplicate swage. Meant to have a hotcut added. Fixed now.

* Recipes

Missing recipe changes.

* Update recipe_groups.json

* Update parts.json

* Update tools_hand.json

Restored swage recipe and added a hotcut one.

* Update tools_hand.json

Recipes were backwards lol

* Update tools_hand.json

Fixed washboard issue and restored a randomly deleted recipe.

* Update parts.json

Syntax hiccup

* Update tools_hand.json

End format error

* Update tools_hand.json

Missing continuation punctuation.

* Lint

Json delinting

* Update metalworking.json

Trailing line break

Co-authored-by: I-am-Erk <45136638+I-am-Erk@users.noreply.github.com>
2021-07-11 15:59:48 -07:00
I-am-Erk d73ded3df9 ultica + chibiultica updates 11 july 2021 2021-07-11 15:55:52 -07:00
ToxiClay a86738e3b1 Change makeshift blindfold to new JSONization 2021-07-11 18:23:13 -04:00
LaVeyanFiend 6ee3f100d5 Change Yule Cat harvest 2021-07-11 16:23:18 -04:00
John Bytheway c75d53a390 Simplify overmap fallback lookup
This should now never need to use the oter_id, only the oter_type_id.
2021-07-11 16:12:05 -04:00
Binrui Dong 11f6247ddd Correct typos in .45 gun descriptions (#49848) 2021-07-11 09:12:43 -07:00
casswedson 17e9b91918 More magical loot in wizard towers (#49217)
Also more golems in wizard academy
2021-07-11 10:31:14 -04:00
Maleclypse 4ce08505fe [Aftershock] New Scenario and profession for Aftershock (#48623) 2021-07-11 17:28:11 +03:00
Maleclypse 57682ace9e Move Headless Horror to Brainless evolution tree (#49833)
Co-authored-by: anothersimulacrum <anothersimulacrum@gmail.com>
Co-authored-by: actual-nh <74678550+actual-nh@users.noreply.github.com>
2021-07-11 17:27:35 +03:00
Zhilkin Serg bd488972e2 Merge pull request #49719 from anothersimulacrum/armor-loading
Clean up armor data loading
2021-07-11 17:26:46 +03:00
Serhiy Zahoriya 5e898dd652 Infrastructure "compose.py: store and use TileEntry.filepath" (#49750) 2021-07-11 17:25:58 +03:00
Trioct 893e4a34f9 Fix overmap ui cursor handling with tiles enabled (#49792)
Co-authored-by: Curtis Merrill <curtis.r.merrill@gmail.com>
2021-07-11 17:25:25 +03:00
Curtis Merrill 00672acdc7 More overmap fixes (#49814)
* use correct int for horde size tiles

* draw remembered vehicle on graphical overmap
2021-07-11 17:23:41 +03:00
Zhilkin Serg 9622dca424 Merge pull request #49844 from CleverRaven/mana-infused-blood-plural-name
Correct the plural name of 'mana infused blood'
2021-07-11 17:23:01 +03:00
Zhilkin Serg 1d51870724 Merge pull request #49845 from BrettDong/lint-json
Lint data/mods/Magiclysm/traits/attunements.json
2021-07-11 17:22:40 +03:00
Zhilkin Serg 905a326605 Merge pull request #49846 from BrettDong/i18n
Routine i18n updates on 11 Jul 2021
2021-07-11 17:22:32 +03:00
Binrui Dong 8fe16992fd Routine i18n updates on 11 Jul 2021 2021-07-11 22:18:10 +08:00
Binrui Dong b870da10fc Lint data/mods/Magiclysm/traits/attunements.json 2021-07-11 22:15:18 +08:00
Binrui Dong b0bbfaa07b Correct the plural name of 'mana infused blood' 2021-07-11 22:09:03 +08:00
Maleclypse a055c444e9 [Magiclysm] Leprechaun adjustments (#48746)
* Leprechaun adjustments

* Update holiday_magiclysm.json
2021-07-11 10:06:24 -04:00
OromisElf b120f5d81e [Magiclysm] 2 new summon spells as upgrades (#48219)
* 2 spell upgrades for the animist

* halfed all the the summoning spells' casting time

you can't make them follow you so letting you cast them a bit faster doesn't seem like a bad idea

* lower difficulty on decayed pouncer; increase it on spearcat hunter
2021-07-11 10:04:42 -04:00
OromisElf 130c28ac80 Magical heavy sledge (#48248)
* added magic heavy sledge

* added magical heavy sledges to the list

* removed looks_like
2021-07-11 10:00:18 -04:00
OromisElf 312a6452ab [Magiclysm]added magical lucerne hammer (#48156)
* added magical lucerne hammer

* removed looks_like

(already implied by copy-from)
2021-07-11 09:58:41 -04:00
OromisElf 23b4accbfe [Magiclysm] Add mutations to manatouched (#48078)
* add more mutations to magiclysm

* replaced perceptive with light bones

thanks to actual-nh for the suggestion <3
2021-07-11 09:48:34 -04:00
Nijiru 41378b6f5a Magiclysm - Crusader spells (#49490)
* Crusader Spells

Adding Sword of Judgement and Holy Shield to Crusader.

* Create Crusader.json

* Update martialarts.json

Updating for summoned Magiclysm weapon.

* Update martialarts.json

* Update attunements.json

* Update Crusader.json

* lint

* adjust the spell to be more expensive

* a summoned item should not have a price

Co-authored-by: KorGgenT <curtis.r.merrill@gmail.com>
2021-07-11 09:40:23 -04:00
Salty Panda bc7e4fe047 [Magiclysm] Can't cast if Stunned (#48651)
* Can't cast if Stunned

* Allow no-hands spells even if stunned
2021-07-11 08:35:23 -04:00
Angela Graves 5e3e57f3a5 Merge pull request #49745 from I-am-Erk/Tilesets
Create tileset inclusion criteria and cull unsupported sets even if we love them
2021-07-11 04:24:49 -05:00
Eric c260c94fc6 Unhardcode bio_noise, add allow effect_on_conditions to queue other effect_on_conditions (#48671)
* bio_noise
Co-authored-by: actual-nh <74678550+actual-nh@users.noreply.github.com>
2021-07-10 22:45:05 -07:00
Kevin Granade c612736857 Merge pull request #49823 from ralreegorganon/om-tiles-looks-like
Add looks_like support for overmap terrain
2021-07-10 22:28:01 -07:00
anothersimulacrum ccf9c8dc08 Fix cardreaders actor card consuming (#49836)
Whoops, make it so you can actually have them not consume the card
2021-07-10 22:02:39 -07:00
Kevin Granade 300f9752e1 Merge pull request #49828 from anothersimulacrum/tests-fixes
Fix healthy, NPC attack tests
2021-07-10 21:53:32 -07:00
anothersimulacrum 02e784e7a1 Fix DDotD regional map settings (#49838) 2021-07-10 21:50:48 -07:00
Álvaro f3f0aec992 Fix fake cbm items (#49825)
* Add extra fake_item checks to CBMs
* Change !is_empty() to is_valid(
* Added missing check and changed is_empty -> is_valid
2021-07-10 21:43:38 -07:00
anothersimulacrum 984967ceab Fix trailing comma (#49835) 2021-07-10 18:58:19 -07:00
anothersimulacrum a08a9d1753 Trigger effects before dropping a corpse (mdeath) (#49824)
Prevents immortal necro-boomers (due to them reviving their own corpse).
2021-07-10 18:52:52 -07:00
Pulkit Mittal 4751002b2f Add check for here_is_pit (#49813)
Co-authored-by: Zhilkin Serg <ZhilkinSerg@users.noreply.github.com>
2021-07-10 18:49:26 -07:00
arockperson fda7a2282b Update monster_attacks.json (#49790)
Changed messages to be more consistent and accurate. Now, they always mention the body part that is hit, and the messages for no damage hopefully make it clear that they did no damage because of armor.

Also added messages for dodging.
2021-07-10 18:42:56 -07:00
David Fawcett 6d9b7d4fe9 Reordered magazine type to put 17 round magazine first, ticket author also suggested that the 21 round is more common than the 10 round so put 21 round second. (#49764) 2021-07-10 18:42:06 -07:00
actual-nh 57e562073a [CR] Clarify mapgen weight in MAPGEN.md (#49818)
* [CR] Clarify mapgen weight in MAPGEN.md

* Simplify - @jbytheway is quite correct
2021-07-10 18:38:34 -07:00
Maleclypse e3b0e983c3 Whipped cream and frosting requirements (#48067)
* Extend/Delete in requirements

* Revert "Extend/Delete in requirements"

This reverts commit 9da0eaeb4e.

* Valentine Cards (#47438)

* Add a proficiency for handloading, and a new profession (#47244)

* Drug Dealer Profession (#47255)

* Adds hallula, a type of bread popular in Bolivia and Chile

* Arm mounted pouch (#46946)

* Tazer drone iii (#47353)

* Added Gelatin and Several Gelatin Based Recipes (#47080)

* Content: bread in a can (#45680)

* New random mission (#44999)

* Mycus fruit Juice (#44952)

* Milleable corn (#46254)

* Talk Tag Additions (#47010)

* Fix typo in Valentines Card (#47583)

* (CrazyCataclysm) Crazy Hallucinations (#47386)

* Mealgurb (#47685)

* Add duct tape blindfold for old reciepe plus tweaks for reciepe (#47527)

* Prepare npc, spell, character, and item for new ai (#47207)

* Make acetylene torch cut metal walls. (#46255)

* Added disassembly recipes for several items (#46316)

* Celsius temperature for freezing point (#47028)

* Stand up peek (#47257)

* [AFTERSHOCK] Basic Ballistic Weapons (#47559)

* makes glass walls and glass doors constructable (#47692)

* Crackers as bread and jam&cheese sandwich (#47649)

* [Aftershock] misc typograpical fixes (#47783)

* Tweaks for teas (#47848)

* Have travis run for 0.F-dev

Currently, .travis.yml has a 'development' branch specified as one to run tests for; the current equivalent is the 0.F-dev branch.

* Tweakes to copper and metal pipes. (#47825)

* Fried eggs deluxe, sandwiches, and condiment list (#47786)

* Homemade toastems, buttercream frosting and recipes (#47696)

* Chocolate Cow don't drop "cow pies"

* Remove unused FATIGUE energy source from spells

* [Magiclysm] add owlbear origin snippet (#47752)

* [Magiclysm] add lesser banishment spell, buff greater banishment (#47537)

* Unhardcode bio_heatsink and bio_climate

* Hunting lodge Location (#44378)

* fungal evolution (#47247)

* Add book strap carrier (#47665)

* 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

* Add 0.F-dev to matrix.yml

(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.

* 0.F-dev workflows (#47875)

* Alter brown bread recipe to match canned version

Fixes #47874.

* Mine entrance expand (#47928)

* Added mine_materials item group

* Added Trolley vehicle

* Expanded and tweaked above-ground and underground levels of mine entrance

* [DinoMod] Mushroom Madness (#47907)

* misc typograpical fixes

* body pillow recipe makes makeshift body pillow now (#47917)

* Traffic Bollards and an example of deployment (#48017)

* add description for Uyen's missions

* 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.

* Clean up character mutation gain a bit

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.

* 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.

* Spiral mine jsonify (#48003)

* prevent bell spam (#47987)

* Note that vat is required for fermentation in vinegar brewing

* Unhardcode ease of sleep

* whipped cream

remove aerosol whip cream

frosting requirement

Update slings.json

Update data/json/recipes/recipe_food.json

Update data/json/items/comestibles/dairy.json

Revert "remove aerosol whip cream"

This reverts commit b8570f6c55c1d6daaea71957bdaec6c05d899b0d.

Update misc.json

Delete recipe_obsolete.json

Delete misc.json

Delete slings.json

Delete ammo_types.json

Delete enchantments.json

Revert "Delete recipe_obsolete.json"

This reverts commit 3119fdc53ffe8e079a1e26b1d31dd2347327201d.

Revert "Delete misc.json"

This reverts commit 71b811b5e0c6b7476d86a61d513a29d44db5b6d0.

Revert "Delete ammo_types.json"

This reverts commit 848c739f5e6f85dd99a0fb273b6262ae69810834.

Revert "Delete slings.json"

This reverts commit 7c91194a2e312d98a396dcddc990a6d43b242e14.

fixes

Co-Authored-By: actual-nh <74678550+actual-nh@users.noreply.github.com>
Co-Authored-By: casswedson <58050969+casswedson@users.noreply.github.com>

* Update data/json/items/comestibles/dairy.json

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

* Update slings.json

* Update junkfood.json

Co-authored-by: LaVeyanFiend <51099123+LaVeyanFiend@users.noreply.github.com>
Co-authored-by: slimeboy460 <68845349+slimeboy460@users.noreply.github.com>
Co-authored-by: ToxiClay <ToxiClay@users.noreply.github.com>
Co-authored-by: Jamuro-g <76928284+Jamuro-g@users.noreply.github.com>
Co-authored-by: Xenomorph-III <sam1998may@gmail.com>
Co-authored-by: grawprog <77870049+grawprog@users.noreply.github.com>
Co-authored-by: Xaleth <countolaf17@gmail.com>
Co-authored-by: El-Jekozo <72350516+El-Jekozo@users.noreply.github.com>
Co-authored-by: RobertoVGoulart <robertovgoulart@yahoo.com.br>
Co-authored-by: Zukulini <dragon.fuego.yo@gmail.com>
Co-authored-by: klorpa <30924131+klorpa@users.noreply.github.com>
Co-authored-by: UmbralReaper <67179462+UmbralReaper@users.noreply.github.com>
Co-authored-by: SariusSkelrets <68650913+SariusSkelrets@users.noreply.github.com>
Co-authored-by: Fosheze <50811445+Fosheze@users.noreply.github.com>
Co-authored-by: Lamandus <33199510+Lamandus@users.noreply.github.com>
Co-authored-by: Curtis Merrill <curtis.r.merrill@gmail.com>
Co-authored-by: NeviNovat <51816321+NeviNovat@users.noreply.github.com>
Co-authored-by: Karol1223 <68503002+Karol1223@users.noreply.github.com>
Co-authored-by: Hirmuolio <22011552+Hirmuolio@users.noreply.github.com>
Co-authored-by: Charlie Gardai <32105250+Moltenhead@users.noreply.github.com>
Co-authored-by: Mom-Bun <43492737+Mom-Bun@users.noreply.github.com>
Co-authored-by: OromisElf <oromis.der.lehrer.eragons@freenet.de>
Co-authored-by: casswedson <58050969+casswedson@users.noreply.github.com>
Co-authored-by: actual-nh <74678550+actual-nh@users.noreply.github.com>
Co-authored-by: Fris0uman <sthapplz@gmail.com>
Co-authored-by: Ramza13 <52087122+Ramza13@users.noreply.github.com>
Co-authored-by: LyleSY <lyle.sollayates@Gmail.com>
Co-authored-by: FuelType-Memes <42695732+FuelType-Memes@users.noreply.github.com>
Co-authored-by: Anton Burmistrov <Night_Pryanik@mail.ru>
Co-authored-by: actual-nh <actual-nh@users.noreply.github.com>
Co-authored-by: casswedson <nelson1003403634@gmail.com>
Co-authored-by: akirashirosawa <38557723+akirashirosawa@users.noreply.github.com>
Co-authored-by: anothersimulacrum <anothersimulacrum@gmail.com>
Co-authored-by: Jeremy Rose <nornagon@nornagon.net>
2021-07-10 18:37:31 -07:00
curstwist d7c2bd9d0f fix hospital elevator (#49817) 2021-07-10 18:34:25 -07:00
UriyaBA ceebe26e9f Update Huge Dragonfly Naiad Description (#49826)
Fixed a small typo the description of the Huge Dragonfly Naiad has.
2021-07-10 18:33:47 -07:00
anothersimulacrum 0cdf6757f5 Fix NPC attack tests
Move the player so game::load_npcs will actually spawn the NPCs.

Add REQUIREs to make the game not crash on failing to spawn NPCs.

Remove the weather setting because it doesn't change the tests, and
causes vision tests failures due to side effects!

Adjust the values of the m16a4 test to start passing.
2021-07-10 18:33:38 -07:00
anothersimulacrum 58260a3127 Fix healthy tests
These likely stopped working due to the changes in healthy rounding.
2021-07-10 18:33:38 -07:00
curstwist 3127180c93 Update EXAMINE.md (#49831)
needed a comma
2021-07-10 18:33:21 -07:00
Kevin Granade 19691ee255 Merge pull request #49739 from mqrause/private_contents_pt1
Preparation to make the contents member of the item class private part 1
2021-07-10 18:25:21 -07:00
I-am-Erk d929790fbe DDotDDD (#49713)
* Create design-doc.md
* add place names
* starts adding regional map settings data.
* Update alberta_regional_map_settings.json
* Adjust monster settings, and update mod document since I had to figure this out
* make place names an md file until supported
Co-authored-by: actual-nh <74678550+actual-nh@users.noreply.github.com>
Co-authored-by: anothersimulacrum <anothersimulacrum@gmail.com>
2021-07-10 18:22:03 -07:00
Kevin Granade c84ac1b5c0 Merge pull request #49693 from John-Candlebury/gunmod_multiply_range
Allow Gunmods and ammo to multiply weapon range.
2021-07-10 18:19:58 -07:00
I-am-Erk 864c533627 Signal ping received. Releasing first preparatory modules. (#49398)
* Add map extras for exodii crashes, and items to populate them with
Co-authored-by: anothersimulacrum <anothersimulacrum@gmail.com>
2021-07-10 18:17:04 -07:00
I-am-Erk cb9d2614ad Begin adding cooking proficiency infrastructure (#49221)
* Add cooking proficiencies
Co-authored-by: LaVeyanFiend <51099123+LaVeyanFiend@users.noreply.github.com>
Co-authored-by: Kevin Granade <kevin.granade@gmail.com>
2021-07-10 18:15:43 -07:00
Venera3 6e9d9c7e73 Unhardcode monster reach attacks, fix some bugs (#49022)
Co-authored-by: actual-nh <74678550+actual-nh@users.noreply.github.com>
Co-authored-by: Kevin Granade <kevin.granade@gmail.com>
2021-07-10 18:07:49 -07:00
SenpaiSlime 257fd004f8 Boomer glutton and monstergroup additions, added spell and emit field (#48929)
* Boomer glutton and monstergroup additions, added spell and emit field

adds in the new boomer glutton, and adds a monstergroup for the boomer to evolve into. adds in a sludge emit field and a new spell for the glutton to use

Co-authored-by: casswedson <58050969+casswedson@users.noreply.github.com>
Co-authored-by: Kevin Granade <kevin.granade@gmail.com>
2021-07-10 18:05:54 -07:00
Eric 0069cd553a Unhardcode several bionic faults (#48641)
* Bio_trip
* bio_spasm
* bio_shakes
* bio_glowy
* bio_sleepy
* bio_itchy
* Fix clang
Co-authored-by: Kevin Granade <kevin.granade@gmail.com>
2021-07-10 18:04:48 -07:00
Kevin Granade e4a99e4a70 Merge pull request #48389 from jagoly/shoot-glass-flags
Jsonise map::shoot
2021-07-10 18:04:04 -07:00
DevianProdigy fcfa622a23 Raise the proportional AP value of handloaded 5.7mm (#49593)
Summary

none

Purpose of change

All reloaded ammo have a 10-20% decrease in overall stats while 5.7 hand-loaded gets an 80% reduction in AP which makes it's use really underwhelming
Purpose of change
Testing

Load in game.
Additional context
Arbitrary value chosen 0.2 -> 0.8
2021-07-10 17:21:24 -07:00
Kevin Granade f36cb4b741 suppress performance warning (#49822)
Clang-tidy alerts on this preventing optimization, but this code is very rarely executed, so the performance impact is negligible, and complying with the directions causes build errors.
2021-07-10 16:54:01 -07:00
Jason Jones 0c0f5d59ce Add looks_like to OVERMAP.md 2021-07-10 15:52:29 -08:00
Jason Jones 1a463537fb Add looks_like support for overmap terrain 2021-07-10 15:52:29 -08:00
Kevin Granade 5c94fce61b Update data/json/furniture_and_terrain/terrain-walls.json
Co-authored-by: anothersimulacrum <anothersimulacrum@gmail.com>
2021-07-10 14:43:21 -07:00
Kevin Granade d82731efce Guard against missing NPC when respawning it. 2021-07-10 14:18:03 -07:00
Kevin Granade 0a11108375 Silencing clang-tidy warnings, the legend continues 2021-07-10 14:17:41 -07:00
Kevin Granade d4f1a7dff7 Fix nolint directives 2021-07-10 13:55:36 -07:00
Kevin Granade 148f6a0852 Merge branch 'master' into shoot-glass-flags 2021-07-10 13:48:36 -07:00
Kevin Granade c830c075e9 Silence more CT errors 2021-07-10 13:27:43 -07:00
Kevin Granade fea3a81e51 Remove more unused variables 2021-07-10 12:40:44 -07:00
UmbralReaper 071c2b0b74 Refine the Issue Form (#49801)
* Remove the .md version of the bug report to avoid confusion
* Make the required text entry fields explicit
2021-07-10 12:13:10 -07:00
casswedson 91f2956f60 Fix typo in JSON_STYLE.md (#49820) 2021-07-10 12:12:19 -07:00
Kevin Granade 5ca95f7038 Still more clangety clanging 2021-07-10 12:06:24 -07:00
Kevin Granade 955ab31fb5 Silence more clang-tidy warnings 2021-07-10 12:00:08 -07:00
Zhilkin Serg aa126fecea Merge pull request #49795 from jbytheway/better_overmap_fallback_fixes
Better overmap fallback fixes
2021-07-10 14:28:55 +03:00
Zhilkin Serg 3b3aa07017 Remove unused mapgen
Remove `faction_base_lightindustry_workshop_0`
2021-07-10 14:27:55 +03:00
krulunio 6e5c7d63e9 Add light industry basecamp (#49419) 2021-07-10 12:31:22 +03:00
Zhilkin Serg 98152770ba Merge pull request #49759 from GoLoT/cbm_aid_on_npcs
Fix CBM install data retrieval when installing CBM on NPC
2021-07-10 12:28:14 +03:00
Zhilkin Serg d3d25ecd3c Merge pull request #49799 from AccountAlias/healthy-min-cap
Fix healthy rounding  bug
2021-07-10 12:25:40 +03:00
Zhilkin Serg 9d7aa219cc Merge pull request #49771 from UmbralReaper/unicode_tools
Improve Unicode Handling in JSON Tooling
2021-07-10 12:21:59 +03:00
Zhilkin Serg ef541eed6a Merge pull request #49807 from ThatIdiotMonro/patch-1
Remove the spell casting ability from hot sauce
2021-07-10 12:18:26 +03:00
Zhilkin Serg 9a6e878e97 Merge pull request #49805 from Qrox/yeast
Fix weight of wild yeast
2021-07-10 12:17:01 +03:00
Zhilkin Serg 04fa47b246 Merge pull request #49802 from Qrox/gloves
Fix loading error about survivor gloves
2021-07-10 12:16:47 +03:00
Jianxiang Wang (王健翔) ba94327bda Remove unnecessary const modifier (#49804) 2021-07-10 01:48:03 -07:00
ThatIdiotMonro b54d9df799 Remove the spell casting ability from hot sauce
It causes crashes, and as delicious as it is, the only spell I've ever managed to cast is a charm of room clearance. And that caused my wife to make me sleep on the couch.
2021-07-10 09:47:50 +01:00
Qrox 4b4356db84 Fix weight of wild yeast 2021-07-10 15:13:38 +08:00
Angela Graves 9c5c82ef84 Merge pull request #49797 from pjf/pull/fried_eggs_are_fun
🍳 Make fried eggs more enjoyable
2021-07-10 00:51:48 -05:00
Qrox d0295e4ea6 Fix loading error about survivor gloves 2021-07-10 12:32:30 +08:00
rohanlean e269b341cf fix feints and lightly clean up some miss recovery and grab break code; (#49109)
Before these changes feints would trigger if and only if a feint
technique was available, and show a message if and only if the first
available feint technique was valid.  Now they should trigger and show a
message if and only there is a valid technique.
2021-07-09 21:06:15 -07:00
John Candlebury aafefe9dd2 Properly format the new ammo UI description 2021-07-09 21:05:08 -06:00
John Candlebury 93e05f4514 Description correction
Co-authored-by: actual-nh <74678550+actual-nh@users.noreply.github.com>
2021-07-09 21:01:11 -06:00
John Candlebury 3040318b69 Add an test item for an ammo type multiplying gun range 2021-07-09 21:00:56 -06:00
Kelenius 25cf01e5a5 Added recipe activity level to crafting screen. (#49026)
Co-authored-by: Kevin Granade <kevin.granade@gmail.com>
Co-authored-by: Saicchi <47158232+Saicchi@users.noreply.github.com>
2021-07-09 19:44:43 -07:00
Kevin Granade 6e2d6eb645 json style 2021-07-09 19:43:07 -07:00
Alexey Mostovoy cd85eb8d75 Ability to configure user-defined map extra symbols (#48794)
* Ability to configure user-defined map extra symbols

Basic UI (uilist-driven)

* UI code changes

* <S>witch only toggles the map extras option

But prompt the user on exit if all auto notes are disabled
to enable them, when auto notes (map extras) are enabled.
UI doesn't fit "(map extras)" clarification.
In any case, at the moment only the map extras auto notes
are configured in this window.
2021-07-09 19:39:13 -07:00
Kevin Granade afdc706795 Change recipe sort to difficulty, name, crafting time (#49762)
* Change recipe sort to difficulty, name, crafting time

* Update src/crafting_gui.cpp

Co-authored-by: Saicchi <47158232+Saicchi@users.noreply.github.com>

Co-authored-by: Saicchi <47158232+Saicchi@users.noreply.github.com>
2021-07-09 19:22:43 -07:00
AccountAlias a881442ada healthy rounding bug 2021-07-09 22:12:12 -04:00
Paul Fenwick 0bbd501fe0 Made fried eggs more enjoyable
- Basic fried eggs are now as much fun as scrambled eggs (3)
- Fried eggs sandwich (aka "on toast") matches deluxe scrambed (4)
- Deluxe fried eggs has eggs, salt, cheese/veggies, mushrooms or onions, and conidements. It's an absolute delight, and is now just below a deluxe sandwich in fun (10)
- Deluxe fried egg sandwich has all of the above, PLUS BUTTERED TOAST.  If this isn't at least as good as a deluxe sandwich, I don't know what is (12)
2021-07-10 12:10:54 +10:00
Eric 43466bd337 Unhardcode bio_memory, add several enchantments (#47656) 2021-07-10 04:42:31 +03:00
Zhilkin Serg 81fba63a60 Merge pull request #49751 from ToxiClay/correct-robot-carrier-afs
Correct monster_size_capacity to creature_size_capacity
2021-07-10 04:39:46 +03:00
Zhilkin Serg 4c777f7ae6 Merge pull request #49796 from ToxiClay/fix-nato-assault-rifle-burst
Corrects JSON definition of the NATO Assault Rifle with Burst to actually have burst
2021-07-10 04:39:21 +03:00
UmbralReaper bcf852d84d Add a preliminary version of the issue form for bug reports (#49774)
The use of an issue form will hopefully increase the quality of bug reports.
2021-07-09 18:33:29 -07:00
Viktor Matthys 3c7b54a8cf Autonote symbol for derelict shed (#49784)
Added a autonote symbol for the collapsed shed map extra.
Also changed the color of the burned map tiles to better represent the remaining ash.
2021-07-09 18:20:55 -07:00
ToxiClay dfd457eb9e Corrects JSON definition of the NATO Assault Rifle with Burst to actually have burst 2021-07-09 21:16:54 -04:00
Álvaro 16ce397456 Fix static overmap str_ids in overmap.cpp (#49766)
* Fix static overmap str_ids in overmap.cpp

* Changes for clang-tidy

* Fix variable shadowing
2021-07-10 04:13:51 +03:00
I-am-Erk 4e315afb64 Ultica updates (#49749) 2021-07-10 04:08:05 +03:00
Zhilkin Serg 066f684e3a Merge pull request #49775 from GoLoT/electrohack_crash
Fix crash when finishing electrohack
2021-07-10 04:07:01 +03:00
Zhilkin Serg add8642333 Merge pull request #49761 from CleverRaven/LyleSY-patch-6
[DinoMod] grave labels
2021-07-10 04:06:10 +03:00
Zhilkin Serg 009baee96a Merge pull request #49778 from Night-Pryanik/fix-bordered-assert
Force place_special_forced to place special in forced mode
2021-07-10 04:05:47 +03:00
John Bytheway 7683ba0bcb Get rotation and subtile from oter_t
Rather than deriving the rotation and subtile from adjacent terrains, we
instead compute them based on the properties of the oter_t.  This
entails yet another table of rotation and subtile values, but does a
better job.  In particular, road connections to other oter_ts
(buildings, bridges) are now rendered correctly, where they were not
before.
2021-07-09 21:05:07 -04:00
John Bytheway b18a310fba New road tile config for RetroDays
RetroDays was now using fallback tiles.  Switch it to the new scheme so
it renders roads properly again.
2021-07-09 21:05:07 -04:00
John Bytheway b9c84c81de Remove symbol for forest trail
This was overriding the line-drawing behaviour, which is now
undesirable.  (Previously, it had no effect).
2021-07-09 21:05:07 -04:00
John Bytheway b0a1c85d91 Compute proper subtile for linear terrains
Previously we relied upon the symbol for fallbacks for linear terrain,
but we can do better by using the same get_rotation_and_subtile
infrastructure that exists for e.g. walls in regular map rendering.
This fixes the appearance of linear terrain.
2021-07-09 21:05:07 -04:00
Zhilkin Serg 4ec79bda2a Merge pull request #49781 from CleverRaven/LyleSY-patch-7
[DinoMod] Red fixes
2021-07-10 04:05:02 +03:00
Zhilkin Serg 7bc4d8cbeb Merge pull request #49786 from CleverRaven/update-toc
Update the table of contents in doc/JSON_INFO.md
2021-07-10 04:02:58 +03:00
Zhilkin Serg 06bddf5bd6 Merge pull request #49794 from Cyrano7/workshop_toolbox
Move workshop toolbox recipe to containers tab
2021-07-10 04:02:32 +03:00
Cyrano7 5372016ea4 Move workshop toolbox recipe to containers tab 2021-07-09 17:38:30 -07:00
anothersimulacrum 5004c78dea Migrate m4a1 references (#49791)
Missed these in the original variantifying of rifles.
2021-07-09 17:33:41 -07:00
AccountAlias 8d7d8381ad Display damage dealt when monster is knocked into a wall (#49120)
* Display damage dealt when monster is knocked into a wall
Co-authored-by: Binrui Dong <brett.browning.dong@gmail.com>
2021-07-09 17:15:14 -07:00
Eric b5a1a64856 Add function to assign mission directly via dialog (#49495)
* Add assign mission dialog function

* Update npctalk.cpp

* Update npctalk.cpp

* Update character.cpp
2021-07-09 17:08:49 -07:00
Merrygin 5d9164cfc0 Fix various meaty comestibles' vitamin values (#48960)
* Fix vitamins of various meaty items
Co-authored-by: Binrui Dong <brett.browning.dong@gmail.com>
Co-authored-by: Schmitz, Jascha <jakob.schmitz@dlr.de>
Co-authored-by: Maleclypse <54345792+Maleclypse@users.noreply.github.com>
2021-07-09 16:34:19 -07:00
Saicchi f074436f5c drink from furniture (#48817)
Co-authored-by: Kevin Granade <kevin.granade@gmail.com>
2021-07-09 15:52:19 -07:00
kevingranade 9574ed354a Update the table of contents 2021-07-09 22:12:50 +00:00
Saicchi c1159c2b67 Jsonize terrain and furniture lockpicking result (#48836)
* lockpick_result and lockpick_message json
* lockpicking use new lockpick_result and lockpick_message fields
* hardcoded to json lockpicking conversion and open/locked gunsafe
2021-07-09 14:03:41 -07:00
Kevin Granade f9d3f2a0d5 Merge pull request #48766 from WelpThatWorked/fix-weight
Fix weight
2021-07-09 13:09:29 -07:00
Kevin Granade e4e6ac8eb9 Update src/item.cpp 2021-07-09 13:09:01 -07:00
anothersimulacrum ef8144d972 Fix JSON errors, DPS test, partial proficiency test (#49779)
* Fix JSON errors, DPS test

Add a missing comma, two spaces between sentences, and fix the DPS
test.

The DPS test probably could use something more than just matching the
value, but that's all I'm doing for now.

* Fix partial proficiency tests

'practice_proficiency' was not practicing the correct amount due to
focus or other changes when this test was run in conjunction with other
tests.

Add a function to unconditionally practice a proficiency a certain
amount, and use it.

* Fix old-style monster death function
2021-07-09 15:01:15 -04:00
LyleSY a5b1f713fb [DinoMod] Red fixes 2021-07-09 14:27:34 -04:00
Curtis Merrill b434bfcf9f redo mdeath to use spells (#49439) 2021-07-09 10:26:55 -07:00
Jianxiang Wang (王健翔) cc9f648c35 Separate zoom level for overmap (#49776) 2021-07-09 13:13:18 -04:00
Venera3 7ede327951 [CR] Add CAMOUFLAGE monster flag (#48340)
* First

* Revert "First"

This reverts commit be374044f4.

* Revert "Revert "First""

This reverts commit f904c037af.

* Works!

* Astyle

* Doc

* ()

* Apply suggestions from code review

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

* Hit msg

* Mob 1st

Don't look at it too hard, just moving PCs

* Monster second pass

* Lint

Mostly just to get the tests to look at the important bits

* Hit messages 2

Hopefully that got all that matter, the hardcoded special attacks will stay a bit weird

* Update nether.json

* Hunter 2

Mostly fine, ranged todo

* Monstergroups

Subway's pretty barebones, but that's a followup PR

* Final

* Update misc.json

* Update misc.json

Co-authored-by: actual-nh <74678550+actual-nh@users.noreply.github.com>
2021-07-09 10:12:23 -07:00
Eric 9f628f6f00 Unhardcode bio_leukocycte, add several enchantments (#47659)
* Unhardcode bio_leukocycte

* Update enchantments.json

* Update bionics.json

* Update character.cpp

* Clean up

* Update character.cpp
2021-07-09 09:53:21 -07:00
LohTek 17f24ad9bc Add makeshift blindfold made from natural materials (#48886)
* Add makeshift blindfold made from natural materials

# If commit applied
It will provide a way for survivors lost in the woods a means of making a blindfold to sleep when it is still bright outside.

# Why change was made
Players who wish to play wilderness scenario currently have extreme difficulty making a blindfold.

# How this fixes issue
Provides a means of making a blindfold from natural materials easily found in the forest.

# References
#48846 Add a cordage blindfold

* Forgot to lint JSON

Made changes to correct linting

* Text editor causing linting issues

This is my first submission so I have to get my tools in line with requirements apologies.

* Revert "Forgot to lint JSON"

This reverts commit 4f807cb611.

* Revert "Revert "Forgot to lint JSON""

This reverts commit c40c047a04.

* Changes to fix space in id

Fixed ID as requested.

* Update head.json

* Update data/json/items/tool_armor.json

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

* Update data/json/recipes/armor/head.json

Co-authored-by: I-am-Erk <45136638+I-am-Erk@users.noreply.github.com>
Co-authored-by: Maleclypse <54345792+Maleclypse@users.noreply.github.com>
Co-authored-by: actual-nh <74678550+actual-nh@users.noreply.github.com>
2021-07-09 09:50:58 -07:00
Paul Fenwick 04caeb43db Reworked brewing, now with merge conflicts resolved (#49512)
* Rework brewing for greater realism

* brewing.json: Don't create mass out of nothing for fruit wine must.

Previously we used 1 juice (125ml) and ended up with 750ml of must.

We now use 2 juice (250ml) and 2 water (500ml) for 750ml of must.

Co-authored-by: Korhaka <thurak126@gmail.com>
2021-07-09 09:49:17 -07:00
Jianxiang Wang (王健翔) 9ac7bd0f5e Show number of monsters in sidebar compass (#49737) 2021-07-09 09:46:37 -07:00
Eric 798cc32a6a Add unnatural night time sky activity (#48244)
* Add new effect_on_conditions

* Update data/json/snippets/effect_on_conditions.json

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

* Update data/json/snippets/effect_on_conditions.json

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

* Apply suggestions from code review

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

* Apply suggestions from code review

Co-authored-by: Anton Burmistrov <Night_Pryanik@mail.ru>

* Formatting

* Update talker_character.h

* Update effect_on_conditions.json

* Apply suggestions from code review

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

* Apply suggestions from code review

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

* Update data/json/snippets/effect_on_conditions.json

Co-authored-by: ToxiClay <ToxiClay@users.noreply.github.com>

* Update data/json/snippets/effect_on_conditions.json

Co-authored-by: ToxiClay <ToxiClay@users.noreply.github.com>

* Update data/json/snippets/effect_on_conditions.json

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

* Astyle

* Update condition.cpp

* Update data/json/snippets/effect_on_conditions.json

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

* Update doc/NPCs.md

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

Co-authored-by: anothersimulacrum <anothersimulacrum@gmail.com>
Co-authored-by: actual-nh <74678550+actual-nh@users.noreply.github.com>
Co-authored-by: Anton Burmistrov <Night_Pryanik@mail.ru>
Co-authored-by: ToxiClay <ToxiClay@users.noreply.github.com>
Co-authored-by: I-am-Erk <45136638+I-am-Erk@users.noreply.github.com>
2021-07-09 09:42:55 -07:00
Fris0uman ca4066a2c0 Move refueling CBM to its own menu (#48750)
* Refueling menu first pass

* Get refueling menu to actually refuel

* Desentangle fueling and eating

* Add refueling to consume menu

* fix error?

* Remove unused static

* remove unused variable
2021-07-09 09:38:34 -07:00
John Bytheway 0cb3978093 Improve error message re armor portions (#49760)
When duplicate bodyparts appear in the armor portion data, it's helpful
to know which bodyparts they are.
2021-07-09 09:17:39 -07:00
John Bytheway 98b6dfbe6f Improve fallback rendering for overmap terrain (#49777)
* Partial fix of missing fallback in the graphical Overmap

* Don't specify zero subtile for overmap terrains

This is misleading the rendering code into picking the wrong subtile.
The correct value for "I don't think there is a subtile" is -1, not 0.

Co-authored-by: Fris0uman <sthapplz@gmail.com>
2021-07-09 08:58:48 -07:00
anothersimulacrum 65d81f7edc Variantize shotguns (#49732)
Collapses 5 shotguns based on skill and ammo-capacity.

Name the shotguns by ammo capacity, because otherwise they all have the
same name.
2021-07-09 08:16:15 -07:00
Maleclypse c8895977a5 Fixes for Hunting Lodge (#49730)
* Fixes for Hunting Lodge

* Update lodge_nested.json

* Update specials.json

* Update specials.json
2021-07-09 08:15:53 -07:00
Curtis Merrill 8d721b4884 Npc attack (#47562)
* create npc_attack class

This implements a class that owns all of the logic for an npc evaluating the best weapon to use in the moment.

* Tests for npc_attack

* add a debug mode that shows potential values
2021-07-09 08:00:16 -07:00
pehamm 74f7e2ff65 Added Pack Hunter Mutation (#47031)
* Added Pack Hunter Mutation

* Linting and astyle

* Applied suggestions from code review

* Revert "Applied suggestions from code review"

This reverts commit 47f04e80b1.

* Revert "Linting and astyle"

This reverts commit a1b4978eee.

* Revert "Added Pack Hunter Mutation"

This reverts commit 7e159ad155.

* Based on Code Review, rolled back all changes and redid implementation putely in JSON

* Ensure the Pacifist trait cancels Pack Hunter

Co-authored-by: Peter Hamm <peter.hamm@m-chair.de>
2021-07-09 07:58:54 -07:00
LyleSY 29b08fdb05 tent pole take 2 (#49492)
* tent pole take 2

* activities_hobbies

* locations itemgroup

* recipe_others

* materials requirements

* restore mine_materials changes

* restore armrig changes

* restore welding and bodypillow changes

* can build three from one again

* use "LIST" for requirements in recipes

https://github.com/CleverRaven/Cataclysm-DDA/blob/master/doc/JSON_INFO.md#recipes explains it

* lint recipe_others

* rebracket requirements

* add adhesive to tent requirements

* separate recipes

* reformat recipes

* simpler recipes

* simplify tent parts

* recipes simpler still

* no requirements

* uncraft broken tents
2021-07-09 07:56:24 -07:00
Saicchi d33c60e4dd Jsonize Monster Shearing (#49002)
* shearing basic implementation

* shearing activity_actor conversion

* add shearing activity tests

* convert sheep to new shearable

* fix quality test error

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

* rename file ending in _tests to _test

* rebase jsonizeshearing to cdda-experimental-2021-07-07-1531

Co-authored-by: Saicchi <Saicchi@users.noreply.github.com>
Co-authored-by: Binrui Dong <brett.browning.dong@gmail.com>
2021-07-09 07:52:41 -07:00
eltank 6262480741 Implement SAFE_AT_WORLGEN json flag (#49377) 2021-07-09 07:49:20 -07:00
Procyonae c10ea6aa59 Add Woodwork Craft Shop (#49582)
* Added a woodwork variety of craft shop.

* Added an extinguisher spawn and a new line to match the style.

* Corrected spacing

* Toned down item spawns, added items to woodcrafts itemgroup and removed unnecessary rows and terrain from 1x1_woodcrafts_display_canoe.

* Removed a naughty comma.

* Removed rude comma and linted.
2021-07-09 07:47:39 -07:00
Procyonae b4d6f89a99 Roof and general improvements for orchard_apple (#49596)
* Added a roof along with item spawns and a new forklift spawn. Made two palettes to encompass the buildings and general orchard. Changed the road layout to make it look slightly more natural.

* Adjusted vehicle spawn chances from test numbers.

* Simplified arrays and removed less accessible nested chunk spawns.

* Eventually worked out how to lint.
2021-07-09 07:46:22 -07:00
Hirmuolio b3b986d3a0 Make all comestibles rot and have temperature (#49640)
* generalize to comestibles

* astyle

* generalize more foodstuff

* revert some irrelevant changes

* some tidying up

* unused function

* reduntant check

* freezing F to C

* freezing F to C

* freezing F to C
2021-07-09 07:45:26 -07:00
Eric 8032c52cfc Allow item usage to use effect_on_conditions and move over/rebalance sleep items. (#48360)
* Compiles

* Add item use eoc and rebalance sleep items

* Update JSON_INFO.md

* Code review + fix

* Update iuse_actor.cpp

* Update dialogue.h

* Clean up

* Update dialogue.h

* Update iuse_actor.cpp
2021-07-09 07:43:29 -07:00
Valiant 5636f90a7f Force place_special_forced to place special in forced mode 2021-07-09 17:22:26 +04:00
Álvaro Muñoz 5a6e3b026b Fix crash when finishing electrohack 2021-07-09 14:51:57 +02:00
UmbralReaper dda9fe5de6 Silence flake8 linter errors 2021-07-09 20:25:07 +10:00
Angela Graves 82e5374ce4 Merge pull request #49769 from ToxiClay/remove-crows-irradiator
Remove CROWS turrets from irradiator overmap special
2021-07-09 03:29:10 -05:00
UmbralReaper f1e9ec2a69 Add ensure_ascii=False to missed file 2021-07-09 17:54:56 +10:00
UmbralReaper cb8241f9af Set ensure_ascii=False wherever json.dump is called
It's not uncommon for json files to have unicode. This change ensures
that the unicode stays unicode and doesn't become an escape sequence.
2021-07-09 17:41:00 +10:00
UmbralReaper 0316316467 Explicitly declare encoding as utf-8 whenever a file is opened
Python uses the ANSI code page encoding by default on Windows. By explicitly
declaring the encoding as utf-8 we avoid errors relating to utf-8 down the road.
See https://docs.python.org/3/using/windows.html for more information.
2021-07-09 17:28:01 +10:00
AccountAlias fb283c6b22 Allow blocking of some zombie specials (#49703)
* Allow blocking of some zombie specials

Allow blocking of some zombie specials
add dodgeable and blockable flags to monster specials
flip dodgeable and blockable defaults

* Update data/json/monster_special_attacks/monster_attacks.json

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

Co-authored-by: I-am-Erk <45136638+I-am-Erk@users.noreply.github.com>
2021-07-08 23:41:23 -07:00
John Bytheway 03b07a8be7 Parametric mapgen part 1: global random terrain selection (#48529)
* Allow access to JsonArray members as JsonValue

* Create load_weighted_list function

This is a generic function for loading a weighted_list from json that
can be used to reduce code duplication and ensure json consistency.

* Remove undefined declaration

This function had no definition and no callers.

* Implement "parameters" for mapgen

This is an initial implementation of parameters for mapgen, which
currently has those parameters act more like variables than parameters.

Essentially all it currently permits is to choose a terrain at random
and use that in a palette.  Thus choosing a thing at random which
applies to an entire map, rather than choosing at random on a per-tile
basis.

This is the first step towards true parameters for mapgen; hence the
currently-misleading name.

* Add docs for new parameters feature.

* Minor grammar/style fixes

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-08 23:27:46 -07:00
Saicchi 8d81a7e879 allow vehicle change shape (#48477)
Co-authored-by: Saicchi <Saicchi@users.noreply.github.com>
2021-07-08 23:23:04 -07:00
connorpmartin e0724f63f1 Fix fur/scales loop in Chimera (#48637)
* Update mutations.json

* Small chimera mutation rework

Added "patchwork skin" mutation instead of fur and scales, which combines both mutations at reduced effectiveness. Advanced mutation combines them at full effectiveness to represent thicker fur/scales.

Added Large to chimera, since Chimera line is partially based on Lizard and Cattle (horns/hooves), and both of them have Large.

Added "valid: false" tag to hyper-metabolism alternate mutation to prevent endless mutation swapping.

* made patchwork skin work properly

* linted
2021-07-08 23:22:10 -07:00
casswedson afad6359f0 Replace MREs with itemgroups (#48827)
* Replace mres with itemgroups

* fix all the things

Not the solution I wanted, but it works
Also aluminum foil

* Apply suggestions from code review

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

* move mres their own SUS file

no remaning/comments SUS itemgroups have

Co-authored-by: actual-nh <74678550+actual-nh@users.noreply.github.com>
2021-07-08 23:20:34 -07:00
connorpmartin 621a68c23a Make fungal infections less obvious to player (#49101)
* Update effects.json

* Itchy skin from Sarius's suggestion

* Update effects.json

* Update effects.json
2021-07-08 23:12:32 -07:00
anothersimulacrum 8993df11c8 Obsolete ANBC and AEP suits (#49733)
These items, and their recipes are pretty nonsense. We should have NBC
gear, but the ANBC gear is nothing close to representing that.
2021-07-08 23:04:58 -07:00
chrispikula 43af3901e8 Populated Bone Skewers into recipes, made Skewers millable (#47986)
* Populated Bone Skewers into recipes, made Skewers millable

Utilized skewer_bone as a 25:1 replacement for bone_tainted or bone_any, in recipies where chemical, rather than physical properties were required, with 200% tainted penalty.
Make skewers 25:4 millable tainted bone meal, to match up with normal bones.
Added bone skewers to charcoal recipe utilizing kiln.  25:1 to bone.
Also, with fertilizer_liquid, added meal_bone_tainted, with 200% penalty.
2021-07-08 22:39:04 -07:00
ToxiClay 6176893913 Remove CROWS turrets from irradiator overmap special 2021-07-09 01:15:33 -04:00
gisaku33 cbfdd31aaf Update mutations.json (#49303) 2021-07-08 20:25:59 -07:00
Extension-Driver 957191140c Add new location: Safe Light Industry, and link it to the Safe Place scenario (#49320)
* Added light industry as possible start location

* Corrected spelling of 'Industrial'

* Added Light Industry to Safe Place

* Add welding googles to tools_mechanic

* fix comma, 2x googles chance

* googles -> goggles

* re-add s_lightindustry_scen.json

* re-add overmap defs for LI

* diff (scen)

* update the defn of LI start location

* re-add LI OM special defn

* Update chemistry.json

* Fix terrian defn
2021-07-08 20:24:22 -07:00
Paul Fenwick bd78e45d59 Reduce solder in electronics control unit from 150 to 40 (#49734)
Closes #49725
2021-07-08 20:13:54 -07:00
Kevin Granade 789c7a4689 Unlimited map memory (#47253)
* Encapsulate map::drawsq() arguments and clarify their meaning

* Split map memory into submap-sized chunks

Note: this naive implementation significantly lowers FPS

* Optimize map memory access

Move memorized submaps that would be
affected during drawing into a 2d array.

* Save/load memorized submaps; migrate old mm file

* Remove leftovers from map memory limit

* Some map memory cleanup

* Don't save empty mm submaps

* Deallocate far-away mm submaps on save; report save failure

* Rework tests for map memory

* Don't re-allocate region if old region contains required submaps

* Remove map_memory.h from avatar.h

* Rename memorized_submap -> mm_submap

* Rename mm_submap::clean -> mm_submap::empty, add comments.

* Improve drawsq_params interface

* Remove map_memory.h from lru_cache.cpp

* Add function for rectangle overlapping

* Save mm_submaps in regions

* Fix save/load not using avatar's global pos, improve docs.

* When saving, compress mm_submaps using RLE

* Simplify map rendering in ascii mode

Collect map::draw code in one place, simplify indexing/bound checks.
Remove the "batch drawing" optimization: it doesn't help with drawing, but harms code clarity. Instead, convert all relevant draw methods to use 'wputch' and rely on caller to position the cursor properly.

* Memorize off-screen tiles in ascii mode

* Fix copypasted code

* Fix tile memory saving code, minor cleanup.

* Add debug logging for tile memory operations

* Fix broken saving for tile memory submaps with z != 0

* Lazy allocation for tile memory submaps

Co-authored-by: olanti-p <olanti-p@yandex.ru>
2021-07-08 20:08:30 -07:00
Jonathan Lane 8e53629c44 Changed thawb material thickness to fix protection value (#49763)
Co-authored-by: Jon Titor <jontitor@gmail.com>
2021-07-08 20:00:54 -07:00
Salty Panda 29b322ebc8 Balance quarterstaff and sling staff (#49082)
* Balance quarterstaves

Remove durable melee, reduce discrepancies between quarterstaff and staff sling, add staff sling to quarterstaff martial arts, adjust quarterstaves according to wood density and recipe components' weight/vol

* Update dps tests for quarterstaves, add tests for sling staff

* Update data/json/items/ranged/slings.json
2021-07-08 19:56:32 -07:00
casswedson c0e047a9a3 More professions with vehicles (#49343)
* More professions with vehicles

from https://github.com/GMC-Modding-Team/Community-Mod-Compilation-redux/tree/master/data/Unleash_The_Mods/Working_mods/Eirs_road_rage + minor edits

* Feedback and two more professions from Eirenex

Co-authored-by: @EirenexTheDragon

* Apply suggestions from code review

Co-authored-by: LaVeyanFiend <51099123+LaVeyanFiend@users.noreply.github.com>

* change the descriptions a bit

Co-authored-by: LaVeyanFiend <51099123+LaVeyanFiend@users.noreply.github.com>
2021-07-08 19:46:25 -07:00
AccountAlias c3c98c5240 Make cooking oil unhealthy (#49758) 2021-07-08 19:43:22 -07:00
LyleSY c11bf3e734 [DinoMod] grave labels 2021-07-08 22:02:59 -04:00
Eric 6b84b0a9ee Unhardcode bionics in item action menu (#47909)
* Unhardcode bionics in item action menu
Co-authored-by: Kevin Granade <kevin.granade@gmail.com>
2021-07-08 18:23:35 -07:00
Álvaro Muñoz 95e2888641 Fix CBM install data retrieval when installing CBM on NPC 2021-07-09 02:34:39 +02:00
anothersimulacrum 8ce3dc53a7 Implement mod tracking for items and furn/terrain (#49723)
Track which mods the items are modified in, and in what order, display
it in the descriptions.
2021-07-08 15:17:12 -07:00
ToxiClay e2f1b76d2a Correct monster_size_capacity to creature_size_capacity 2021-07-08 16:39:38 -04:00
SenpaiSlime 31be9a376b uniformed soldier zombies for military bases (#49255)
* uniformed soldier zombies for military bases

* Fixing mistakes, changing up the monsterdrops to be better

* Update zed-classic.json

* Update zombie_milbase_personnel.json

* Now with hats!

* whoops

* Changed them to zed soldier folder, now copy from pilot instead of regular zeds

* Updated drop list

* Update data/json/monstergroups/military.json

Co-authored-by: LaVeyanFiend <51099123+LaVeyanFiend@users.noreply.github.com>

* Update data/json/itemgroups/Clothing_Gear/clothing.json

Co-authored-by: LaVeyanFiend <51099123+LaVeyanFiend@users.noreply.github.com>

* Update clothing.json

* whoops, again

* Linting files

* Update data/json/monsters/zed_soldiers.json

Co-authored-by: LaVeyanFiend <51099123+LaVeyanFiend@users.noreply.github.com>

Co-authored-by: LaVeyanFiend <51099123+LaVeyanFiend@users.noreply.github.com>
2021-07-08 13:34:46 -07:00
eltank 3329aa2600 Reduce crafting proficiency penalties based on partial proficiency level (#49198)
* Make most of the crafting timing tests ignore missing prof

These tests are too brittle and will break any time there's a change in
the proficiency penalty formulas or proficiency progression. This causes
excessive maintenance burden. A single such test should suffice.

* Partial proficiency mitigation

* Rename get_proficiency_level

* Use 1 decimal for missing prof penalties in crafting UI
2021-07-08 13:33:47 -07:00
anothersimulacrum 86738f2bc9 Fix typo 'road ramp' > 'earth ramp' (#49740) 2021-07-08 13:16:54 -07:00
Pankaj Patil 782d8b9745 Fix:Ninjutsu martial art does incorrect damage due to multiplicative calculation (#49741) 2021-07-08 13:16:39 -07:00
anothersimulacrum d659ef9fbf Remove unused static variable (#49742) 2021-07-08 13:15:15 -07:00
Mom-Bun a068ed0fb0 Fix Triffid Grove Error (#49744) 2021-07-08 13:14:56 -07:00
AccountAlias 91b7a14d3c Enforce MAX_SKILL cap (#49747) 2021-07-08 13:13:20 -07:00
I-am-Erk 68d700b749 Delete gfx/HitButton_iso directory
I love you hitbutton. Don't go. I'll be back for you I promise
2021-07-08 10:17:35 -07:00
I-am-Erk 3b4c426f00 Delete gfx/HoderTileset directory 2021-07-08 10:17:01 -07:00
I-am-Erk e0ef18f6c0 Delete gfx/ChestHole16Tileset directory 2021-07-08 10:16:50 -07:00
I-am-Erk 29363e328a Update TILESET.md
Add inclusion criteria
2021-07-08 10:16:21 -07:00
mqrause a3e9dbcbc5 wrappers for item_contents::legacy_front and item_contents::get_all_contained_pockets in item 2021-07-08 15:13:16 +02:00
mqrause 48e59d2a12 wrapper for item_contents::num_item_stacks in item 2021-07-08 13:54:47 +02:00
mqrause 1da011a713 wrappers for item_contents::spill_open_pockets and item_contents::empty in item 2021-07-08 12:28:06 +02:00
Angela Graves 335ab2a05a Merge pull request #49318 from mqrause/pocket_settings_check_fix
Ignore pocket settings when manually inserting stackable items
2021-07-08 03:32:17 -05:00
Eric b09bbfe49d Unhardcode more bionics, add weapon dispersion enchantment (#47288)
* Unhardcode more bionics

* Update src/bionics.h

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

* Change dipersion to use enchantment

* Update ranged.cpp

* Clean up

Co-authored-by: anothersimulacrum <anothersimulacrum@gmail.com>
2021-07-07 23:34:16 -07:00
Eric 39248f580a Unhardcode joint servo, add INACTIVE enchantment option (#47274)
* Unhardcode joint servo

* Clean up

* comma comma comma comma comma chameleon

Co-authored-by: I-am-Erk <45136638+I-am-Erk@users.noreply.github.com>
2021-07-07 23:31:00 -07:00
Eric a1703f4740 Unhardcode bio_flashlight and bio_tattoo_led (#47714)
* Unhardcode bio_flashlight and bio_tattoo_led

* Clean up

* Fix

* clean up

* Revert "clean up"

This reverts commit 8eaab1ae22.

* Fix merge issues
2021-07-07 23:28:04 -07:00
anothersimulacrum 9816d945e9 Clean up armor_portion_data loading
Remove compatiblity for the 'armor_portion_data' key, it's no longer
necessary.

Add an override to assign_coverage_from_json to accept a
cata::optional<body_part_set>, so I don't have to waste lines doing that
where I use it.

Drop support for copy_from modifying elements of armor_portion_data
within islot_armor::data.
I can't figure out a way that copy-from as a behavior is a better thing
to have than being forced to explicitly enter all the data when it
should be different for an armor.
There's no way to tell:
1. If the child object wants to modify the armor portion data when it
   specifies it's own armor portion data (instead of write it's own)
2. If the child does want to modify the data, which portion it is trying
   to modify.

And if we allow it to modify the data, it's impossible to say you don't
want a portion.

It's just not something that can be handled without creating all sorts
of non-obvious traps, and I think it's better to avoid it entirely.

Move armor_portion_data loading to a deserialize function, now that it
doesn't need to have access to islot_armor stuff (because of copy-from).
2021-07-07 21:35:24 -07:00
anothersimulacrum caadbd875b Drop non-portion format for specifying armor data
I want to make changes to how armor values are specified, and to reduce
maintenance, I don't want to keep two separate interfaces for specifying
armor values.

Remove the format where various armor data is specified inline in the
item definition, and require it to be specified in armor_portion_data.
2021-07-07 21:34:41 -07:00
Trioct ef6a2f2781 fix hollow cane pocket size (#49729) 2021-07-07 21:31:42 -07:00
anothersimulacrum a49dcc865e Fix color & installing power bionics (#49731)
This restores the coloring and installation behaviour to what it was
previously.
2021-07-07 21:31:07 -07:00
anothersimulacrum 6d38a07780 Stop copy-from modifying individual armor portions (#49726)
Drop support for copy_from modifying elements of armor_portion_data
within islot_armor::data.
I can't figure out a way that copy-from as a behavior is a better thing
to have than being forced to explicitly enter all the data when it
should be different for an armor.
There's no way to tell:
1. If the child object wants to modify the armor portion data when it
   specifies it's own armor portion data (instead of write it's own)
2. If the child does want to modify the data, which portion it is trying
   to modify.

And if we allow it to modify the data, it's impossible to say you don't
want a portion.

It's just not something that can be handled without creating all sorts
of non-obvious traps, and I think it's better to avoid it entirely.
2021-07-07 20:57:16 -07:00
UmbralReaper 76e3b05be0 Change copper wire to a standard size, and add wire drawing. (#48127)
* Increase weight and decrease volume of copper wire.
* Add manual wire drawing as an option.
* Change scrap_copper and copper to more appropriate values and handle the fallout.
* scrap_copper is now 50ml instead of 62. Drop rates have been increased to accommodate.
* scrap_copper now requires 50 copper instead of 25.
* copper_wire, copper_rod, and cable weight and volume fine-tuned.
* Obsolete previous cable recipe.

Co-authored-by: Jianxiang Wang (王健翔) <qrox@sina.com>
Co-authored-by: Kevin Granade <kevin.granade@gmail.com>
2021-07-07 17:56:45 -07:00
anothersimulacrum bb0e1ffdc6 Add z=-1 soil layer (#49658)
* Allow specifying default terrain per z-level

Allow regional_settings to specify the default overmap terrain for each
level, and add a solid_earth overmap terrain (and soil terrain to fill
it), representing a soil layer on z-1.

* Fix hardcoded overmap terrain generation

Overmap terrain features like sewers and ants needed some changes made
to the overmap generation code to work with the new z-1 soil layer.

* Replace rock with earth on z-1 JSON mapgens

Replace rock floors with concrete floors in artifical structures, and
with dirt ones in natural structures.

Wall in (and shift rooms a bit to fit) the missile silo with metal walls
on z=-1 - bare earth walls don't feel correct for a missile silo.

* Move hardcoded slimepit generation down 1 z level

Add a new JSON-ized top of the special - an open-topped slime pit
leading down into the hardcoded special on z-2.

* Adjust overmap terrains for z-1 soil level

Some terrains are meant to look like solid rock, but that doesn't make
sense anymore on z-1. Make them look like solid earth instead.

* Update hardcoded mapgen for soil on z-1

Sewers could probably use some proper walls, but I'll leave that for
someone else to update.
2021-07-07 17:50:50 -07:00
Jamuro-g 69365db3a4 Added tent construct/deconstruct activities (#47959)
* tent activities
2021-07-07 17:07:24 -07:00
Zhilkin Serg a410f3346f Allow custom surround monster groups in scenarios (#47990) 2021-07-07 15:37:16 -07:00
Mom-Bun dc17463eaf Triffid Grove Re-work (#47787)
* outline for groves
* upper levels
* roots outline
* heart outline
* midden loot
2021-07-07 14:43:51 -07:00
Paul Fenwick fcb756526e 🌽 Add veggy_any_corn_uncooked to cooking components (#49695)
- Adds a `veggy_any_corn_uncooked` requirement, which includes fresh corn (on the cob), kernels, rehydrated kernels, and canned corn.
- Use `veggy_any_corn_uncooked` in `veggy_any_uncooked`
- Use `veggy_any_corn_uncooked` in corn casseroles and pan-fried corn.
2021-07-07 14:04:41 -07:00
Paul Fenwick 9c27c25707 Make empty corn cobs be made of veggy + wood (#49705)
This allows them to be made into charcoal in a kiln, a common use for corn cobs.
2021-07-07 13:59:17 -07:00
anothersimulacrum dc0680a754 Default max_encumber to -1 in armor_portion_data (#49706)
When no encumbrance is specified, max encumbrance defaults to 0 -
however, if only encumbrance is specified, it defaults to -1.

This seems like incorrect behavior, and it certainly doesn't match the
behavior of non-armor portion data encumbrance.

This fixes 2 failing iteminfo tests, because their encumbrance now
(correctly) increases with contained volume.
2021-07-07 13:56:28 -07:00
anothersimulacrum 47bd4dad76 Fix zapback test (#49710)
Now that power storage bionics are proper bionics, the horrible thing
being done here where the bionic is activated by index is no longer
working. Bump up the index by 1, because the power storage is taking up
index 0.

0 - bio_power_storage
1 - bio_faraday
2021-07-07 13:46:46 -07:00
arockperson 0c01295b34 Update monster_attacks.json (#49715) 2021-07-07 13:45:35 -07:00
anothersimulacrum 1b2fd7b62c copy-from an extant item (#49717)
Whoops, this typo snuck into ced7832fce
somehow.
2021-07-07 12:33:27 -07:00
Eric 83bdbb7589 Unhardcode bionic power storage, add field for allowing duplicate bionics (#47777) 2021-07-07 17:27:29 +03:00
Eric b5dc3c4b38 Unhardcode speed modifiers/fix speed enchantment (#47963) 2021-07-07 17:26:18 +03:00
John Candlebury 328c226aaa Aftershock: New droneswarm foes + new simple monster AI behavior (#48740) 2021-07-07 17:24:58 +03:00
Zhilkin Serg f753f0cb3d Lint json 2021-07-07 17:21:37 +03:00
mqrause bf855f6179 wrappers for item_contents::clear_items and item_contents::all_pockets_rigid in item 2021-07-07 16:09:25 +02:00
mqrause 061329b3ce wrappers for item_contents::has_pocket_type and item_contents::has_any_with in item 2021-07-07 15:56:05 +02:00
Procyonae 8d5ba0d64e aux_nested revision (#49615)
* Rewrote aux_nested.json's destroyed_x mapgens and replaced them with a generic destroyed_furniture which pulls straight from the furniture bash itemgroup rather than mimicking it.

* Reverted accidental removal of destroyed_glass_door_wall.
2021-07-07 16:10:18 +03:00
Mom-Bun 3a2191129e [AFTERSHOCK] House Palette + New AFS house (#49641)
Co-authored-by: actual-nh <74678550+actual-nh@users.noreply.github.com>
2021-07-07 16:09:14 +03:00
Zhilkin Serg d20a49bab1 Merge pull request #49687 from anothersimulacrum/apd-8convert
Convert armor to use armor_portion_data (test mod)
2021-07-07 16:08:09 +03:00
Zhilkin Serg 6af76635fe Merge pull request #49685 from anothersimulacrum/apd-6convert
Convert armor to use armor_portion_data (Magiclysm)
2021-07-07 16:07:51 +03:00
Zhilkin Serg 9c038bafbf Merge pull request #49686 from anothersimulacrum/apd-7convert
Convert armor to use armor_portion_data (DSA)
2021-07-07 16:07:38 +03:00
Zhilkin Serg c7ede3232c Merge pull request #49684 from anothersimulacrum/apd-5convert
Convert armor to use armor_portion_data (CRT)
2021-07-07 16:07:05 +03:00
Zhilkin Serg 328a5421b3 Merge pull request #49683 from anothersimulacrum/apd-4convert
Convert armor to use armor_portion_data (AFS)
2021-07-07 16:06:36 +03:00
Zhilkin Serg 5b6fc347b4 Merge pull request #49668 from mqrause/remove_has_pockets
Remove duplicate item method
2021-07-07 16:06:22 +03:00
John Candlebury 493281591d Aftershock: Ballistic gun itemgroups (#49688) 2021-07-07 16:05:23 +03:00
Álvaro 061b97fbd2 Jsonize cbm trigger costs (#49635)
* Jsonize & display CBM trigger costs

* astyle

* Remove unused variable
2021-07-07 00:45:38 -07:00
NotFuji 76612800d2 Remove city horde spawning (#49279) 2021-07-06 23:27:21 -07:00
John Candlebury 7bcd994743 Make laser gunmods reduce range through multiplication 2021-07-07 00:12:08 -06:00
John Candlebury 1414cf1c23 Allow ammo and gunmods to multiply the total weapon range 2021-07-07 00:11:28 -06:00
anothersimulacrum 06371bc862 Convert armor to use armor_portion_data pt. 3 (#49681)
I want to make changes to how armor data is specified, and I don't want
to maintain two separate interfaces for it, so let's convert existing
data to one interface.

Items using copy-from were audited, and where they made changes, data
was respecified as at the moment, copy-from modifying sub-elements of
armor portion data is incorrect (there are lots of questions with no
good answers there).
2021-07-06 22:54:33 -07:00
anothersimulacrum 6db93b3516 Convert armor to use armor_portion_data pt. 1 (#49679)
I want to make changes to how armor data is specified, and I don't want
to maintain two separate interfaces for it, so let's convert existing
data to one interface.

Items using copy-from were audited, and where they made changes, data
was respecified as at the moment, copy-from modifying sub-elements of
armor portion data is incorrect (there are lots of questions with no
good answers there).
2021-07-06 22:54:23 -07:00
anothersimulacrum ad6f22db0f Convert armor to use armor_portion_data pt. 2 (#49680)
I want to make changes to how armor data is specified, and I don't want
to maintain two separate interfaces for it, so let's convert existing
data to one interface.

Items using copy-from were audited, and where they made changes, data
was respecified as at the moment, copy-from modifying sub-elements of
armor portion data is incorrect (there are lots of questions with no
good answers there).
2021-07-06 22:54:09 -07:00
anothersimulacrum aa93bb8de0 Convert armor to use armor_portion_data pt. 0 (#49677)
I want to make changes to how armor data is specified, and I don't want
to maintain two separate interfaces for it, so let's convert existing
data to one interface.

Items using copy-from were audited, and where they made changes, data
was respecified as at the moment, copy-from modifying sub-elements of
armor portion data is incorrect (there are lots of questions with no
good answers there).
2021-07-06 22:53:57 -07:00
Saicchi 65e09f0de2 add missing type to faction_base_mansion_e1 (#49692)
Co-authored-by: Saicchi <Saicchi@users.noreply.github.com>
2021-07-06 22:53:15 -07:00
Angela Graves 7bb10f6c63 Merge pull request #49639 from AccountAlias/Unarmed_move_cost
Prevent unarmed from incurring weapon penalties
2021-07-07 00:52:20 -05:00
NetSysFire 7582846907 Fix typo in stone.json (#49690) 2021-07-06 20:30:05 -07:00
krulunio 8b2485a30f Add military helipad basecamp (#49353)
* Add power tools

Creates and adds fake power tools to various furniture

* Add fake_oven

* Add fake_water_purifier and update clean water recipe

* Add military helipad basecamp

* Linting

Co-authored-by: I-am-Erk <45136638+I-am-Erk@users.noreply.github.com>
2021-07-06 19:39:21 -07:00
Kanexan 1855104556 Lab rats and lab rat spawns (#49426)
* Add lab rats, spawns

* Re-linting

* Re-re-linting.

* Adding a missing space.

* Update fear triggers, flags

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

* Remove redundant fears.

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-06 19:36:25 -07:00
curstwist 787139f58b lab snippets for signs (#49607)
* Create lab_signs.json

* readability fix

* Update lab_signs.json

* changes from review
2021-07-06 19:28:42 -07:00
faefux 92cfcaca2e Changed time and energy to create a washboard. (#49613)
* Lengthened time to make washboard

* Changed to 'MODERATE_EXERSIZE'
2021-07-06 19:27:12 -07:00
Ilya Agafonov efcbdcc771 Use normal distribution to generate random height in new character screen (#49270)
* fix random height

* use Character::randomize_height

* use clamp() for limit the randomness, as @pehamm suggested

* astyle fix

* use std::round instead of round

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

* learning c++ in 21 days

Co-authored-by: John Bytheway <52664+jbytheway@users.noreply.github.com>

* int instead of double

* use one distribution

* changed normal_roll to 168.35 mean, 15.5 sd

Co-authored-by: pehamm <76401419+pehamm@users.noreply.github.com>
Co-authored-by: John Bytheway <52664+jbytheway@users.noreply.github.com>
2021-07-06 19:22:49 -07:00
Venera3 6e829ef634 Add bleed resistance to monsters (#49546)
Co-authored-by: anothersimulacrum <anothersimulacrum@gmail.com>
2021-07-06 19:22:08 -07:00
casswedson 077149d900 add bow saw item (#49340)
from https://github.com/GMC-Modding-Team/Community-Mod-Compilation-redux/tree/master/data/Unleash_The_Mods/Working_mods/More_tools + minor edits
2021-07-06 19:02:08 -07:00
Cyrano7 8905337f81 Cleanup JSON_INFO.md (#49531)
* Update JSON_INFO
Co-authored-by: actual-nh <74678550+actual-nh@users.noreply.github.com>
2021-07-06 19:00:09 -07:00
curstwist c3db295b84 add vehicles (#49605) 2021-07-06 18:53:58 -07:00
Hirmuolio bb39692db9 Fix welding requirement on some recipes (#49538)
* update old weld req
2021-07-06 18:47:21 -07:00
anothersimulacrum 91fe054842 Convert armor to use armor_portion_data (tests)
I want to make changes to how armor data is specified, and I don't want
to maintain two separate interfaces for it, so let's convert existing
data to one interface.

Items using copy-from were audited, and where they made changes, data
was respecified as at the moment, copy-from modifying sub-elements of
armor portion data is incorrect (there are lots of questions with no
good answers there).
2021-07-06 18:46:38 -07:00
anothersimulacrum 1750a87962 Convert armor to use armor_portion_data (DSA)
I want to make changes to how armor data is specified, and I don't want
to maintain two separate interfaces for it, so let's convert existing
data to one interface.

Items using copy-from were audited, and where they made changes, data
was respecified as at the moment, copy-from modifying sub-elements of
armor portion data is incorrect (there are lots of questions with no
good answers there).
2021-07-06 18:46:06 -07:00
anothersimulacrum ced7832fce Convert armor to use armor_portion_data (Magiclysm
I want to make changes to how armor data is specified, and I don't want
to maintain two separate interfaces for it, so let's convert existing
data to one interface.

Items using copy-from were audited, and where they made changes, data
was respecified as at the moment, copy-from modifying sub-elements of
armor portion data is incorrect (there are lots of questions with no
good answers there).
2021-07-06 18:45:24 -07:00
anothersimulacrum 5b002c5c56 Convert armor to use armor_portion_data (CRT)
I want to make changes to how armor data is specified, and I don't want
to maintain two separate interfaces for it, so let's convert existing
data to one interface.

Items using copy-from were audited, and where they made changes, data
was respecified as at the moment, copy-from modifying sub-elements of
armor portion data is incorrect (there are lots of questions with no
good answers there).
2021-07-06 18:44:13 -07:00
anothersimulacrum 95cc52b63e Convert armor to use armor_portion_data (AFS)
I want to make changes to how armor data is specified, and I don't want
to maintain two separate interfaces for it, so let's convert existing
data to one interface.

Items using copy-from were audited, and where they made changes, data
was respecified as at the moment, copy-from modifying sub-elements of
armor portion data is incorrect (there are lots of questions with no
good answers there).
2021-07-06 18:43:45 -07:00
C-LR 76053d6ae3 Correct contribute md (#49603)
* Fix the position of a "cd" in the workflow guide of CONTRIBUTING.md
Setting a commit template outside of a repo will result in a fail.
It is very minimal but it helps keep the guide useful to everybody.
No links
Fix "cd" command position in CONTRIBUTING.md
2021-07-06 16:41:53 -07:00
Paul Fenwick e163259ec6 Kegs no longer errorneously suggest they can be used for fermenting. (#49628)
Only the fermenting vat does this.
2021-07-06 16:21:59 -07:00
Kevin Granade b3534e0ece Merge pull request #49637 from anothersimulacrum/apd-too-long
Allow using "armor" key for armor_portion_data
2021-07-06 16:08:32 -07:00
anothersimulacrum f5c4c51427 Allow gun variants to have plural names (#49638)
Convert the 610 to have a plural name, as it should have.
2021-07-06 16:06:13 -07:00
mqrause 6069a2d7f3 remove item::has_pockets and replace calls with item::is_container 2021-07-07 01:00:40 +02:00
AccountAlias 3c7edb50bf Prevent dodge and block while driving (#49656)
* Prevent dodge and block while driving
2021-07-06 16:00:35 -07:00
LyleSY 8c079112f3 fungalize the children bugfix (#49660) 2021-07-06 15:51:03 -07:00
SariusSkelrets 5100ea4524 New pupating zombies (#48876)
* More_Pupating_Zombies

* fix typo

* fix more typos

* fix another typo

* uncopy the hulks

* Fix hive_raptor_spawn not working and

* Hive hulks aren't bags

* Lint of the three files

* Remove attackmon to solve infighting issue

* All hive hulks aren't bags

* Update data/json/monsters/zed-pupating.json

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

* Update data/json/monsters/zed-pupating.json

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

* Update data/json/monsters/zed-pupating.json

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

* Update data/json/monster_special_attacks/spells.json

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

* Update data/json/monsters/zed-pupating.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-06 13:40:49 -07:00
AccountAlias 5ca12e4b12 Update melee.cpp 2021-07-06 16:31:35 -04:00
LaVeyanFiend 4f90dbb121 Shocker zombies no longer drop CBMs(in vanilla) (#47451)
* Shockers are magic blob stuff, not CBMs

* Aftershock stopgap measure
2021-07-06 13:30:08 -07:00
AccountAlias d9c4258c9a Update src/melee.cpp
Co-authored-by: anothersimulacrum <anothersimulacrum@gmail.com>
2021-07-06 15:17:14 -04:00
AccountAlias 82988e3a76 fix issue #48526 2021-07-06 14:54:41 -04:00
anothersimulacrum 86adadf871 Replace "armor_portion_data" with "armor" in data/
Now that we accept the shorter key, use it everywhere.
2021-07-06 10:51:45 -07:00
anothersimulacrum 547b6580bf Allow "armor" to replace "armor_portion_data"
`armor_portion_data` is a really long key name, and it doesn't need to
be that long - it's quite annoying to type as is.

Change the parsing code to accept it, and update the script to use the
new, shorter key.
2021-07-06 10:51:45 -07:00
Zhilkin Serg 6419e560ea Merge pull request #49636 from anothersimulacrum/qfixes
Fix some JSON errors
2021-07-06 20:43:42 +03:00
anothersimulacrum c8344eadff Fix some JSON errors
These snuck in the recent merges, fix them before it's a problem.
2021-07-06 10:38:21 -07:00
Serhiy Zahoriya 649cfe4870 Automated tileset coverage report (#48797) 2021-07-06 20:31:00 +03:00
Zhilkin Serg ba089ff9a8 Merge pull request #49401 from YuRukia/patch-1
Chitin Leg Guards and Tails
2021-07-06 20:27:52 +03:00
Broken27 6b8e9c415b Change time to install oars from 60 m to 60 s (#49421) 2021-07-06 20:27:27 +03:00
Zhilkin Serg f2099c1009 Merge pull request #49482 from anothersimulacrum/sidedwhy
Don't load 'sided' in armor_portion_data
2021-07-06 20:25:54 +03:00
anothersimulacrum 13ee9ee4a8 Never load 'sided' from armor_portion_data
This is an islot_armor attribute, it doesn't make any sense for it to be
specified in armor_portion_data.
2021-07-06 10:25:01 -07:00
Hirmuolio 5ed1b9b4dd Don't add magazines to all guns, don't show "(empty)" on unreloadable guns. (#48864) 2021-07-06 20:24:48 +03:00
anothersimulacrum 5e3fe590d8 Clean convert_to_portions.py up a bit (#49402)
* Clean up convert_to_portions.py

Replace the class with a dict, and remove all the now uncessary handling
and parsing code.

More cleanly handle invalid JSON errors and the file being incorrectly
formatted for the script to parse.

Condense failure conditions in our JSON parsing before extracting the
portion data, and drop a level of indentation in the driver code.

* Fix handling of encumbrance with only max_encumbr

It's legal to specify max_encumbrance without specifying encumbrance in
the old format. Handle that correctly.
2021-07-06 20:22:07 +03:00
venum4k 88cf8e482e Fixed fingerless survivor glove thickness, tidied up items and recipes for consistency (#49527) 2021-07-06 20:17:52 +03:00
Zhilkin Serg 284f215793 Merge pull request #49571 from pjf/player_activity_list_is_no_except
Fix C++ move assignment on older STL libraries
2021-07-06 20:15:05 +03:00
Fris0uman a5a6d6a428 Support separate graphical tiles for sounds heard above/below visible Z level (#49417)
* Support separate graphical tiles for sounds heard above/below visible Z level

* Fallback to default icon if the above/below one are not in the set

Co-authored-by: olanti-p <olanti-p@yandex.ru>
2021-07-06 20:13:29 +03:00
SariusSkelrets 9a090449a6 (Magiclysm) Fix spell-made gear not fitting their mutant casters (#48221) 2021-07-06 20:12:12 +03:00
Maleclypse 5753a327e1 [Ready] Recipe for Crackers (#48581) 2021-07-06 20:11:02 +03:00
Zhilkin Serg fb3af4328d Merge pull request #49602 from jumjummju/wooden-wheel-mount-fix
Fix the wooden wheel mount recipe to be actually wooden.
2021-07-06 20:10:25 +03:00
curstwist 941f330c9d lab themed items & item_groups (#49604) 2021-07-06 20:09:43 +03:00
John Candlebury f1c2583bfc Aftershock: Make moxphore type enemies neutral to zombies (#49535)
* Make moxphore type enemies neutral to zombies

* Ensure symmetric faction relationship
2021-07-06 20:07:24 +03:00
Zhilkin Serg 1c8792b98a Fix excessive whitespace 2021-07-06 20:06:58 +03:00
Maleclypse 2f39dff30a [Aftershock] Welcome to Salus IV Unofficial History books (#49544) 2021-07-06 20:03:51 +03:00
curstwist 0db0077907 add new furniture emitters (#49601) 2021-07-06 20:02:47 +03:00
krulunio 8293db526a Add military outpost basecamp (#49405) 2021-07-06 20:00:31 +03:00
Zhilkin Serg 03192baf70 Merge pull request #49550 from LaVeyanFiend/Forgot
Colt Delta Damage
2021-07-06 19:57:24 +03:00
Zhilkin Serg 50a7f9dcc6 Merge pull request #49560 from LaVeyanFiend/NerfbowCrafting
Raise required level for longbow crafting from a book
2021-07-06 19:57:09 +03:00
Zhilkin Serg f28322db60 Merge pull request #49545 from LaVeyanFiend/GenericProfs
Add proficiencies to Generic Guns
2021-07-06 19:56:47 +03:00
Zhilkin Serg 4706262b01 Merge pull request #49599 from Procyonae/antivenomrename
Prophylactic antivenom pills rename
2021-07-06 19:55:55 +03:00
Diogo Silva 70821943fc Update wording on milk jugs (#49612) 2021-07-06 19:55:29 +03:00
Zhilkin Serg b26be6b5b9 Merge pull request #49622 from ActualDio/Tallon_mutation_fix
Make Tallon Mutation allow fingerless gloves
2021-07-06 19:55:09 +03:00
Zhilkin Serg 488492f40c Merge pull request #49600 from anothersimulacrum/10mm
Convert 10mm guns to variants
2021-07-06 19:53:59 +03:00
Zhilkin Serg 5b28b0886c Merge pull request #49594 from jbytheway/fix_lmoe_mapgen
Don't overwrite format_placings from new palette (Fix various mapgen broken by #48498)
2021-07-06 19:53:35 +03:00
Zhilkin Serg 1d7a0d7566 Merge pull request #49591 from Maleclypse/Fix-zombie-pig-weights
Bugfix Zpig evolution size increased but weight didn't
2021-07-06 19:53:14 +03:00
Zhilkin Serg cae57c8372 Merge pull request #49597 from jbytheway/map_extras_ci_error
Allow a region overlay to set all weights to zero
2021-07-06 19:52:52 +03:00
Zhilkin Serg 27894b2967 Merge pull request #49631 from SariusSkelrets/Add-the-door
Add the missing door in private resort
2021-07-06 19:51:08 +03:00
Zhilkin Serg 699973e87b Merge pull request #49616 from John-Candlebury/afs-fix-formlessruins
Aftershock: Fix the generation of formless ruins
2021-07-06 19:50:08 +03:00
Zhilkin Serg 6596e475ed Merge pull request #49609 from actual-nh/patch-11
Furniture also supports copy-from
2021-07-06 19:49:53 +03:00
Zhilkin Serg 8baf294586 Merge pull request #49610 from LaVeyanFiend/CarUncrash
Fix Car Crash start location
2021-07-06 19:49:41 +03:00
pehamm c9deed8fa5 Update chemistry.json (#49630)
Lint file by removing trailing whitespace.
2021-07-06 08:58:30 -07:00
SariusSkelrets fd4a318f99 add the missing door 2021-07-06 09:34:39 -04:00
Diogo Silva eedb31abb0 Add Allow_talon tag 2021-07-06 10:36:26 +01:00
Angela Graves 5f90cfb7af Merge pull request #49617 from actual-nh/patch-12
Note adding to item groups in ITEM_SPAWN.md
2021-07-06 04:16:07 -05:00
I-am-Erk d98fcf0bf0 Revert "Add beekeeping (#45758)" (#49619)
This reverts commit ab8a13bc7e.
2021-07-05 23:51:33 -07:00
Maleclypse c6e73949b0 Vacuum Forming Plastic Molds (#47880)
* Vacuum Forming

spawns for vac_mold

linting

fixes

Update tools_electronic.json

Update data/json/items/book/fabrication.json

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

Apply suggestions from code review

Co-authored-by: chaohedgehogs <46550455+chaohedgehogs@users.noreply.github.com>

sample use of plastic molding requirements

Update data/json/items/resources/plastic.json

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

Update parts.json

replace tool with using multiple recipe groups

Update recipe_others.json

remainder of recipes needing updating

linting

typo

typo

array fix

Update recipe_others.json

Update recipe_vehicle.json

fixes

Update containers.json

Update containers.json

Update containers.json

Update containers.json

Update tool.json

Update tools_electronic.json

Update bashing.json

Update ranged.json

try to fix test

Apply suggestions from code review

* Fix crafting tests for vacuum molding

Add some charges, some tools, and a comment for helping to debug.

* Update fabrication.json

Co-authored-by: anothersimulacrum <anothersimulacrum@gmail.com>
Co-authored-by: I-am-Erk <45136638+I-am-Erk@users.noreply.github.com>
2021-07-05 23:40:47 -07:00
slimeboy460 89df749701 Extra Applied Science Proficiencies (#46206)
* Extra Chemical Proficiencies

* Update chemistry.json

* Removed Boiling

* Update data/json/proficiencies/chemistry.json

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

* Update data/json/proficiencies/chemistry.json

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

* Update data/json/proficiencies/chemistry.json

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

* Code adjustments

* I-am-erk's recommended additions.

* Update data/json/proficiencies/chemistry.json

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

* Update data/json/proficiencies/chemistry.json

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

* Update data/json/proficiencies/chemistry.json

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

* Update data/json/proficiencies/chemistry.json

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

* Update data/json/proficiencies/chemistry.json

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

* Update data/json/proficiencies/chemistry.json

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

* Update data/json/proficiencies/chemistry.json

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

* Update data/json/proficiencies/chemistry.json

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

* Update data/json/proficiencies/chemistry.json

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

* Update data/json/proficiencies/chemistry.json

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

* Update data/json/proficiencies/chemistry.json

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

* Update data/json/proficiencies/chemistry.json

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

* Github error caused 3 required_proficiencies to appear

Co-authored-by: I-am-Erk <45136638+I-am-Erk@users.noreply.github.com>
Co-authored-by: actual-nh <74678550+actual-nh@users.noreply.github.com>
2021-07-05 23:37:22 -07:00
Rail-Runner ab8a13bc7e Add beekeeping (#45758)
* Add beekeeping

* Remove wax from recipe

* Remove wax-working tools as well

* Linting

* Remove survival scaling from honey harvesting
2021-07-05 23:33:58 -07:00
DericHuynh c8d50bb682 Balance tactical helmets (#45584)
* Balanced Tactical Helmets

Balanced the tactical helmets, to make them less useless.

* Balance tactical full helmet encumbrance

26 seems to little for the protection that it provides, also considering the increased weight of the helmet.
2021-07-05 23:31:20 -07:00
actual-nh 108d8afc52 Note adding to item groups in ITEM_SPAWN.md 2021-07-05 23:12:08 -04:00
John Candlebury e2061523d6 Fix the generation of formless ruins 2021-07-05 20:35:31 -06:00
LaVeyanFiend e5574cb3cc Fix Car Crash start location 2021-07-05 17:24:36 -04:00
actual-nh 6f23094f02 Furniture also supports copy-from
Confirmed by @wist (<https://discord.com/channels/598523535169945603/598529174302490644/861715524673208360>).
2021-07-05 17:12:29 -04:00
jumjummju 93514422fc Fix wooden wheel mount recipe 2021-07-05 14:19:37 -04:00
Procyonae 415c7d052f Renamed prophylactic antivenom pills to injectable prophylactic antivenom. 2021-07-05 18:25:05 +01:00
anothersimulacrum 0f4141982b Convert 10mm guns to variants
I am not sure what I need to do, but the name in variants does not
accept plural forms, so I needed to convert the 610 to use just 'str'.

The Glock 40 is the only item defintion being dropped here - some of the
generic names could make be looked at (Colt Delta Elite, EAA Witness in
particular could be different), but I think they're fine.
2021-07-05 10:21:48 -07:00
Zhilkin Serg 1f0b625fec Hide tiles overmap behind an option (#49586)
* Hide tiles overmap behind an option

Co-authored-by: actual-nh <74678550+actual-nh@users.noreply.github.com>
2021-07-05 18:02:15 +03:00
Zhilkin Serg 0d6814d850 Merge pull request #49589 from eltank/fix_save_compat_2
Migrate legacy wheels and fix memory corruption in vehicle deserialization
2021-07-05 17:59:23 +03:00
Zhilkin Serg 74a89d30b0 Merge pull request #49595 from CleverRaven/mac-release
Target to Mac OS X 10.12+ in release build workflow
2021-07-05 17:57:11 +03:00
Angela Graves 9cbf113a89 Merge pull request #49587 from Maleclypse/Fix-Safe-Start-Lodge
Fix Start Location for Hunting Lodge
2021-07-05 09:41:24 -05:00
John Bytheway 29341650e9 Allow a region overlay to set all weights to zero
If an overlay set all the map_extra weights for a particular category of
map_extras to zero, then that would lead to a debugmsg error.  This was
happening if ruralbiome was combined with classic_zombies.  The subway
map_extras from ruralbiome were only ones which are disabled by
classic_zombies.

Now detect that case in the apply_region_overlay and reset the chance of
a map_extra to zero to avoid the error.
2021-07-05 09:38:50 -04:00
Binrui Dong a7cb61e4b7 Target to Mac OS X 10.12+ in release build workflow 2021-07-05 21:04:18 +08:00
John Bytheway 7662588ba6 Don't overwrite format_placings from new palette
When multiple palettes were listed for a particular map, the later
palette entry of the format_placings map would overwrite the earlier
one.  This had gone unnoticed until recently when furniture and terrain
started to be implemented via format_placings, which caused many more
entries to exist.  Maps using multiple palettes now lacked furniture
because the other palette added items.  This affected the LMOE shelter,
for example.

After this chance, the palettes' format_placings entries are
concatenated, rather than replaced.  This should mean that all the
palettes' entries take effect.

Tested in the LMOE shelter and it seems to work fine.
2021-07-05 08:39:59 -04:00
Kevin Granade b2e2703ca8 Merge pull request #47606 from mqrause/all_items_refactor
Refactor item_contents::all_items_top and move item_contents::all_items_ptr to item
2021-07-05 00:41:21 -07:00
Tamiore 4f438b1d01 Explicitly add triffid fungicide sacks and relevant recipes. (#47553) 2021-07-05 00:28:26 -07:00
Kevin Granade 11db6cb761 Merge branch 'master' into all_items_refactor 2021-07-04 23:29:07 -07:00
topherclay 9389485934 player::takeoff rewrite to use item_location (#46989) 2021-07-04 19:12:28 -07:00
Maleclypse 1513cc4513 Update zanimal_upgrade.json 2021-07-04 19:38:24 -05:00
eltank ee0f261d5b Migrate legacy wheels and fix memory corruption in deserialization 2021-07-04 17:09:39 -07:00
Maleclypse b9ba298f45 Update start_locations.json 2021-07-04 17:08:52 -05:00
Fris0uman ea0cd210db Update MSXotto to include some overmap sprites (#49583)
* Update MSXotto to include some overmap sprites

* Update ChibiUltica to include the giant frog too
2021-07-04 23:45:55 +03:00
Zhilkin Serg 4025d02529 Merge pull request #49568 from eltank/fix_save_compat
Add back legacy wheel definitions
2021-07-04 22:43:17 +03:00
Fris0uman 7cef64a602 Remove unused var (#49579) 2021-07-04 22:42:56 +03:00
Zhilkin Serg 290bfe12d0 Merge pull request #49577 from casswedson/village-name
Fix orc village's name
2021-07-04 22:42:31 +03:00
Kelenius 90fd0d5ceb Lowered encumbrance and tweaked belts (#45787)
* Lowered encumbrance and tweaked belts
* Increased survivor belt sheath draw moves
* Belt tweaks
2021-07-04 12:40:54 -07:00
casswedson 5f572d2ee3 Fix orc village's name 2021-07-04 11:15:11 -05:00
Angela Graves 1ddd145bc6 Merge pull request #49559 from xerenogan/webbing_belt_fix
Add belt clip ability to webbing belt
2021-07-04 07:38:30 -05:00
Paul Fenwick 087931c6d9 Fix C++ move assignment on older STL libraries
Fixes #49566
2021-07-04 21:18:46 +10:00
eltank dd8262fb21 Add back json for legacy wheels 2021-07-04 03:33:27 -07:00
Meelock 66163721b9 Fix #45844 (#48882) 2021-07-04 10:51:46 +03:00
stubkan 45ff30ff3c Mapgen road connections improved in the absence of overmap cities (#48607) 2021-07-04 10:50:16 +03:00
Saicchi 0bcaa16f88 New mod for more mutation scenarios (#48524) 2021-07-04 10:48:22 +03:00
Sofistico 0b18b8c963 [Magiclysm]Can cast spells with components in hand (#47914) 2021-07-04 10:47:14 +03:00
ZigVert e1f9bfae20 gave peanut butter some much needed love (#47840) 2021-07-04 10:46:10 +03:00
Anton Burmistrov ac1859c8a4 Ransack vending machines only in public places (#49185) 2021-07-04 10:45:01 +03:00
El-Jekozo d7b98b2875 [CR] New side story: Meteorologist (#45012) 2021-07-04 10:42:06 +03:00
Extension-Driver 535c97b32d Add car crash scenario. (#49468) 2021-07-04 10:40:20 +03:00
Fris0uman 3d0b38fa8a Only apply disabled effect for main bodyparts (#49543)
* Only apply disabled effect for main bodyparts

* Only use set_part_cur_hp on main bodyparts
2021-07-04 10:38:21 +03:00
Zhilkin Serg c8a2d6b890 Merge pull request #49565 from anothersimulacrum/version-msg
Add version to debugmsg
2021-07-04 10:37:15 +03:00
Zhilkin Serg 2681ff8449 Merge pull request #49562 from Qrox/plural
Fix plural of some strings; remove duplicate json entry
2021-07-04 10:36:47 +03:00
LyleSY 0a6842142c [DinoMod] The Bone Wars (#48343) 2021-07-04 10:26:28 +03:00
Trioct 124d829630 Start zombie bash gaieties (#44751)
* Some sounds are provocative
* Monsters are sometimes intrigued by quieter sounds
2021-07-04 00:17:12 -07:00
anothersimulacrum 5d120f5e8a Add version to debugmsg
A lot of times the first question I ask when debugging something is
'What version are you using?' - this should answer that question without
needing to ask it a lot more.
2021-07-03 23:26:57 -07:00
KorGgenT 1d04305e40 draw the overmap with SDL using sprites 2021-07-03 22:15:32 -07:00
Qrox 735b9952de Fix plural of some strings; remove duplicate json entry 2021-07-04 13:08:39 +08:00
LaVeyanFiend 6559453567 Nerf the longcheese 2021-07-03 21:27:39 -04:00
Xerenogan ddeadabfb1 add belt clip ability to webbing belt 2021-07-03 21:20:09 -04:00
anothersimulacrum add6f7d0aa generic_factory: support relative & proportional (#43144)
In the hope of eventually removing the assign() functions, and expanding
support for generic factory (and continuing to support existing use
cases), generic_factory needs to support relative and proportional.

To do this, do some template vodoo.
Create two templated structs, and take advantage of SFINAE (yeah, I had
to look that up) with these to determine which template function to use.
Three basically discriminate between whether or not the type can specify
value proportionally or relatively.
For proportionally, this is whether or not the type can be multiplied by
a float, and for relative, this is whether or not the type can use the
+= operator with itself.

Also, add some error checking for when a proportional value is
inappropriately specified.

Containers using the reader functions do not have proportional and
relative support, because I'm not sure of a use case where that ever
makes sense.

Huge thanks to jbytheway for helping me use template vodoo to accomplish
this.
2021-07-03 16:44:18 -07:00
Malorn-Deslor ee1873d97c Made windmills able to grind up dried rice, cooked acorn meal, and roasted cattail rhizome into flour (#47881) 2021-07-04 00:39:36 +03:00
MarlossCDDA 03a3be75ea When telling NPCs to read something, include all columns in the 'choose a book' popup (#48662) 2021-07-04 00:38:26 +03:00
MarlossCDDA a05e2c35dd Make "just for fun" books that you haven't read yet a lighter red (#47956) 2021-07-04 00:37:48 +03:00
Eric 741132b420 Unhardcode bionics that can't be removed. (#47801) 2021-07-04 00:35:28 +03:00
LaVeyanFiend a48c92b531 Colt Delta Damage 2021-07-03 17:34:37 -04:00
Zhilkin Serg 0638dfb9c0 Merge pull request #49548 from eltank/fix_typo
Fix typo in gun_crossbow recipe
2021-07-04 00:28:23 +03:00
eltank cc77589061 Fix typo (prof_bowery) 2021-07-03 13:57:04 -07:00
LaVeyanFiend 35225d5d4b Add proficiencies to Generic Guns 2021-07-03 15:21:20 -04:00
xerenogan 9017808252 Aftershock vehicle cleanup and Blaze Industries vehicle migration. (#49390) 2021-07-03 20:36:35 +03:00
Zhilkin Serg e51db6a066 Merge pull request #49239 from krulunio/basecamp_modular_shacks
Add modular basecamp shacks
2021-07-03 20:31:34 +03:00
SariusSkelrets e8d65d12c5 Make hot sauce drinkable (#49414) 2021-07-03 20:30:17 +03:00
Zhilkin Serg 9309f4eaa1 Merge pull request #49534 from alph4numb3r/TeaTimeFix
Made Tea batch crafting mod equal to boiling plain water
2021-07-03 20:29:25 +03:00
Fris0uman 9313a4385b Add "full" cosmetic variant to doors and windshields (#48798) 2021-07-03 20:27:43 +03:00
Maleclypse 159def45c6 Add lesser magic items to pawn and hunting itemgroups (#49211) 2021-07-03 20:26:08 +03:00
Maleclypse 7d5e582cef New Book abstract and Anthology books (#49428) 2021-07-03 20:25:49 +03:00
LyleSY 3388609806 medical zombies (#48669) 2021-07-03 20:24:32 +03:00
Maleclypse 240cd3734b Corn recipes and two casseroles (#49493) 2021-07-03 20:23:22 +03:00
Zhilkin Serg 8b615f02e1 Merge pull request #47291 from anothersimulacrum/marv
Expand effects infrastructure to vitamins and death
2021-07-03 20:22:10 +03:00
Zhilkin Serg b7a789fd9b Merge pull request #49520 from LaVeyanFiend/MoreProfUsage
Add missing proficiencies to recipes
2021-07-03 20:20:32 +03:00
Zhilkin Serg 3f2123e00d Merge pull request #49513 from anothersimulacrum/fixtion-camp
Fix Cut Logs faction camp mission difficulty disp.
2021-07-03 20:19:56 +03:00
Zhilkin Serg 197868f336 Merge pull request #49537 from Qrox/wiener
Fix incorrect conditional name of smoked wasteland sausage
2021-07-03 20:18:57 +03:00
Zhilkin Serg 0f172bbf15 Merge pull request #49542 from anothersimulacrum/0.F-dev-merge
Merge 0.F-dev branch
2021-07-03 19:29:01 +03:00
anothersimulacrum 940acb4ade Fix tests failing in 0.F-dev
7deffeed87 appears to have been lost
somewhere, so re-apply that.

c328ed9072 as well, so regenerate the drag
test.
2021-07-03 08:02:19 -07:00
krulunio 6174be0fec Add lighthouse basecamp (#49336) 2021-07-03 07:42:13 -07:00
John Bytheway e3bc367b1b 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 07:42:13 -07:00
krulunio ac2ed19ac0 Add pottery cottage basecamp (#49333) 2021-07-03 07:42:13 -07:00
krulunio 567bb3110f Add radio tower basecamp (#49249) 2021-07-03 07:42:13 -07:00
krulunio 52c0f14fe8 Add fire lookout tower basecamp (#49247) 2021-07-03 07:42:13 -07:00
Zhilkin Serg a8a8ec1656 Revert "Revert "Add mansion basecamp (#49241)" (#49356)"
This reverts commit d621b66080.
2021-07-03 07:42:13 -07:00
LaVeyanFiend 338b28b220 10mm adheres to GAME_BALANCE.md (#49380) 2021-07-03 07:42:12 -07:00
John Bytheway f5ff3be747 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 07:42:12 -07:00
John Bytheway 19d9406675 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 07:42:12 -07:00
anothersimulacrum aa55492cf3 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 07:42:12 -07:00
anothersimulacrum 8e69de76e3 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 07:42:12 -07:00
Curtis Merrill 9bfa794400 Fix VS compile error with move constructor noexcept (#49347) 2021-07-03 07:42:12 -07:00
faefux 5a227f68d5 Add some extra descs for leg clothing (#49218) 2021-07-03 07:42:12 -07:00
Delta c5ba8abb0f Add wattle fences (#49156) 2021-07-03 07:42:12 -07:00
LyleSY af2a64de76 [DinoMod] Implements rideable zombie T Rex via missions (#45273) 2021-07-03 07:42:12 -07:00
Binrui Dong 45233e0dd2 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 07:42:12 -07:00
John Bytheway f35d3a1de4 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 07:42:12 -07:00
krulunio a6349959e5 Split military outposts and bunkers (#48697) 2021-07-03 07:42:12 -07:00
ToxiClay 6d729594d4 Typographical/clarity changes 2021-07-03 07:42:12 -07:00
pehamm bda9f0b0ea Fixed spelling of sterilizing 2021-07-03 07:42:12 -07:00
John Bytheway ab6b90b2e7 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 07:42:12 -07:00
John Bytheway 18c44e6029 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 07:42:12 -07:00
John Bytheway e067da4d92 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 07:42:12 -07:00
John Bytheway 4316c69c90 Mark constructor explicit (#49131) 2021-07-03 07:42:11 -07:00
Maleclypse c8906bfd59 [AFS] Update Schwarz Walder Description (#49099) 2021-07-03 07:42:11 -07:00
Aloxaf d568bd8c5f Extract mutation.transform and mutation.triggers for translation 2021-07-03 07:42:11 -07:00
Zhilkin Serg 299d238408 Revert #48802 and #49000 2021-07-03 07:42:11 -07:00
anothersimulacrum c39a183f61 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 07:42:11 -07:00
John Bytheway a2b5770eca Capitalize LLVM consistently 2021-07-03 07:42:11 -07:00
John Bytheway f0be9f6bec Minor grammar/style fixes
Co-authored-by: actual-nh <74678550+actual-nh@users.noreply.github.com>
2021-07-03 07:42:11 -07:00
John Bytheway 0e0f35ff32 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 07:42:11 -07:00
John Bytheway cc484b1444 Bump CTPS version to llvm-12.0.0-r3 2021-07-03 07:42:11 -07:00
Qrox 3fb19e342f Update clang-tidy plugin docs for Windows 2021-07-03 07:42:11 -07:00
John Bytheway 31d849faa7 Update DEVELOPER_TOOLING for LLVM 12 2021-07-03 07:42:11 -07:00
John Bytheway 72ce6cbbb6 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 07:42:11 -07:00
John Bytheway 065714d393 Disable new warnings from LLVM 12 2021-07-03 07:42:10 -07:00
John Bytheway acb723fdda Update build script and workflow for LLVM 12 2021-07-03 07:42:10 -07:00
John Bytheway 9eb6d8d58a Port clang-tidy-plugin to LLVM 12 2021-07-03 07:42:10 -07:00
John Bytheway b7dc997ff9 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 07:42:10 -07:00
John Bytheway be0b5b2aaf Suppress a clang-tidy warning 2021-07-03 07:42:10 -07:00
John Bytheway 3f9616d785 Add missing header 2021-07-03 07:42:10 -07:00
John Bytheway aef4070f71 Remove unused static variables 2021-07-03 07:42:10 -07:00
John Bytheway abcea3fb58 Lint Aftershock json file (#49062) 2021-07-03 07:42:10 -07:00
RelMayers ef1d4ab55b Update soy milk and almond milk to fix carnivores having no problems with them. (#48918) 2021-07-03 07:42:10 -07:00
OromisElf a319865d19 added mechanical winch and metal gate to construction menu (#47919) 2021-07-03 07:42:10 -07:00
SenpaiSlime 47874789c4 Addition of Gravel Material and according recipes, stone fixes (#49043) 2021-07-03 07:42:10 -07:00
Curtis Merrill fb1a7031f7 [Magiclysm] Fix ring stacking by adding ONE_PER_LAYER flag (#47518) 2021-07-03 07:42:10 -07:00
Venera3 ba70a0bdcd Add proper wasp nests (#48161) 2021-07-03 07:42:10 -07:00
Anton Burmistrov 04d8c80010 New "Bordered" scenario (#48514) 2021-07-03 07:42:10 -07:00
Anton Burmistrov a3a4b85bc7 Avgas fuel pump (#48458) 2021-07-03 07:42:10 -07:00
Maleclypse b5c13f6532 Faux Fur survivor gear and recipes (#47424) 2021-07-03 07:42:10 -07:00
Maleclypse d09be51a3d [Magiclysm] Forge Floor and Wall improvements (#48234) 2021-07-03 07:42:10 -07:00
stubkan d21d65583a Placing specials around cities now scales with city size (#48628) 2021-07-03 07:42:09 -07:00
Albert Islamov fccba338b9 Fix woods soup being treated as a meat material when eggs were used (#48499) 2021-07-03 07:42:09 -07:00
Nbane522 fbed53489e Update wood.json (#48515) 2021-07-03 07:42:09 -07:00
FayFlightee 9f24161993 adding steel knuckles (#48535) 2021-07-03 07:42:09 -07:00
Clay Caviness c54b31fc6f Fix found->find typo (#48624) 2021-07-03 07:42:09 -07:00
ToxiClay b7ba48aa45 Replace comma with semicolon (#48869) 2021-07-03 07:42:08 -07:00
Venera3 e6496dee96 Redesigning Arthropods Part 3: Wasps! (#47960) 2021-07-03 07:42:08 -07:00
ToxiClay 3711b8413d Adding lard to hallula recipe (#48728) 2021-07-03 07:42:08 -07:00
John Candlebury a6770aa829 Aftershock: Basic Exoplanet Region (#48206) 2021-07-03 07:42:08 -07:00
John Candlebury f34cd50651 Bases for the first four Hub01 basement npcs (#48719) 2021-07-03 07:42:08 -07:00
Fris0uman ed7d071fc9 Jsonize fungalization (#48479) 2021-07-03 07:42:07 -07:00
Fris0uman 1de06557f3 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 07:42:07 -07:00
Fris0uman b001d91f8c Remove "burst" from the code for good (#48856) 2021-07-03 07:42:07 -07:00
Fris0uman 28439021ce [MSC] Make sugar comestible to sugarkin (#48967) 2021-07-03 07:42:07 -07:00
Zeropol 5b99348dbf 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 07:42:07 -07:00
John Bytheway 8cc6378fc5 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 07:42:06 -07:00
Qrox 4c2911fd30 Fix json formatter build and string extraction script 2021-07-03 07:42:06 -07:00
John Bytheway ebd549b300 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 07:42:06 -07:00
John Bytheway 929aadc021 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 07:42:06 -07:00
John Bytheway a8f17b497e 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 07:42:06 -07:00
John Bytheway 0f796ca5a9 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 07:42:06 -07:00
John Bytheway 0066a2c438 Remove unused global statics 2021-07-03 07:42:06 -07:00
John Bytheway e8c726e893 Enable performance-type-promotion-in-math-fn
Enable this clang-tidy check that has no associated warnings.
2021-07-03 07:42:06 -07:00
actual-nh aa21dafd12 Correct description of epidemiologist in newspaper (#48684)
He's not a correspondent unless he's a reporter.
2021-07-03 07:42:06 -07:00
John Bytheway da51e8482b 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 07:42:06 -07:00
John Bytheway 094e2440b3 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 07:42:06 -07:00
John Bytheway 551056f61a 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 07:42:06 -07:00
John Bytheway f0d43b7820 Improve tripoint formatting in debug messages (#48611) 2021-07-03 07:42:06 -07:00
John Bytheway a125deaad4 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 07:42:06 -07:00
John Bytheway dbe3d7b791 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 07:42:06 -07:00
John Bytheway e5978317a2 Enable performance-inefficient-string-concatenation 2021-07-03 07:42:06 -07:00
John Bytheway 1cfef04d46 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 07:42:06 -07:00
John Bytheway 7ed17d0cbd 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 07:42:06 -07:00
Eric 5b71cea5a4 Unhardcode bio recycler, add hunger enchantment (#47637) 2021-07-03 07:42:06 -07:00
Maleclypse d266f78d56 [Aftershock] Greeting Card snippets (#48209) 2021-07-03 07:42:06 -07:00
Maleclypse 5c41ac9331 CRT filenames, fixes and Lore Background (#48506) 2021-07-03 07:42:06 -07:00
LyleSY d531fa927c [DinoMod] Dinosaur Jr. bugfix (#48585) 2021-07-03 07:42:06 -07:00
John Bytheway 1c4f47adc9 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 07:42:06 -07:00
John Bytheway 944040d4c2 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 07:42:06 -07:00
Binrui Dong 2e5f5e1160 Enable ClangBuildAnalyzer on PRs to 0.F-dev (#48586) 2021-07-03 07:42:06 -07:00
John Bytheway 5ac1dc490f 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 07:42:06 -07:00
John Candlebury e3b0fda4f0 Add cold resistance gear to escape pod 2021-07-03 07:42:06 -07:00
John Bytheway 94482b8c65 Enable performance-implicit-conversion-in-loop 2021-07-03 07:42:06 -07:00
John Bytheway 1946c2496f Enable clang-tidy cert-msc{30,32,50,51}-cpp
These all relate to pseudorandom number generators.
2021-07-03 07:42:06 -07:00
John Bytheway 72c7d8b0cd Work around Mac OS parsing issues
Simply always set the classic locale on those platforms.
2021-07-03 07:42:06 -07:00
John Bytheway 0248cbb6e7 Enable cert-err34-c 2021-07-03 07:42:06 -07:00
John Bytheway 17aad5a1ba 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 07:42:06 -07:00
John Bytheway 6f87018ddd Stop using atoi/atof in item.cpp
Port to try_parse_integer and strtod.
2021-07-03 07:42:06 -07:00
John Bytheway 011d5ef8d1 Stop using sscanf in item_factory.cpp
Port to try_parse_integer.cpp
2021-07-03 07:42:06 -07:00
John Bytheway 412973b2a1 Stop using atoi in iuse.cpp
Port to new try_parse_integer API, via a new helper function.
2021-07-03 07:42:06 -07:00
John Bytheway 9739c9ed0c Stop using sscanf in iexamine.cpp
Port to new try_parse_integer API.
2021-07-03 07:42:06 -07:00
John Bytheway 60dcd96596 Stop using atoi in options.cpp
Port to new try_parse_integer API.
2021-07-03 07:42:06 -07:00
John Bytheway c822bf0a7d Stop using sscanf in ranged.cpp
Port to new try_parse_integer API.
2021-07-03 07:42:05 -07:00
John Bytheway be8d4d8313 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 07:42:05 -07:00
John Bytheway 9a33074ecd 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 07:42:05 -07:00
John Bytheway 6c18d8b92d 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 07:42:05 -07:00
John Bytheway 2814af01dd 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 07:42:05 -07:00
John Bytheway 8827af1d39 Port string_input_popup to try_parse_integer
Stop using atoi in favour of the new API.
2021-07-03 07:42:05 -07:00
John Bytheway d5064c2f1f 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 07:42:05 -07:00
John Bytheway 279b07d4a6 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 07:42:05 -07:00
John Bytheway 3f63e3adfd 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 07:42:05 -07:00
John Bytheway fad16246ef 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 07:42:05 -07:00
John Bytheway a6a7cd940c 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 07:42:05 -07:00
John Bytheway afc7cd994e Treat logical operators as sequencing
Most false-positives for UnsequencedCallsCheck were related to logical
operators.  Handle those properly.
2021-07-03 07:42:05 -07:00
John Bytheway efd45321bc 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 07:42:05 -07:00
John Bytheway fefc13f8e1 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 07:42:05 -07:00
John Bytheway f824e781bb 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 07:42:05 -07:00
John Bytheway db2d6f02e4 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 07:42:05 -07:00
casswedson beb6542d3e fix typo (#48505) 2021-07-03 07:42:05 -07:00
John Bytheway a1e1dd2074 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 07:42:05 -07:00
John Bytheway 0680a7c3ad 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 07:42:05 -07:00
John Bytheway f7c556c641 Work around issues with STL move assignments (#48482) 2021-07-03 07:42:05 -07:00
John Bytheway e8861d07b0 Fix missing harvest entry introduced in #48228 2021-07-03 07:42:05 -07:00
Maleclypse 3cf9a7b0ca Retractable security gates (#48336) 2021-07-03 07:42:05 -07:00
John Bytheway 948e9cb15c 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 07:42:05 -07:00
Alexey Mostovoy 377c115de3 Mark string for translation 2021-07-03 07:42:05 -07:00
Brian-Otten eb55c774eb simple makeshift glaive (#48386) 2021-07-03 07:42:05 -07:00
Mark Langsdorf 08bbb3ea79 Dark Skies Above: Surveillance drone scan and reinforcements (#48228) 2021-07-03 07:42:05 -07:00
ANickelN 560d4d4709 Fix glass weights, lengths and volumes (#48449) 2021-07-03 07:42:05 -07:00
ANickelN d3059f0344 Audit Pocket Length/Volume/Weight Clothing (#48420) 2021-07-03 07:42:05 -07:00
ephemeralstoryteller 4596058e78 [Dark Skies] Adds ballistic armor to aliens (#48446) 2021-07-03 07:42:05 -07:00
ephemeralstoryteller facabf0da4 [Dark Skies] Lore and JSON Cleanup, Blacklists Mutant Wildlife (#48448) 2021-07-03 07:42:05 -07:00
MitztheKat 9094a08c78 Clarify Wood Saw's log-to-plank ability in its description (#48444) 2021-07-03 07:42:05 -07:00
slitherrr a3c7e2e387 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 07:42:05 -07:00
John Candlebury 46542df15e Aftershock: Cold Suits (#48428) 2021-07-03 07:42:05 -07:00
John Bytheway 51b5b6c052 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 07:42:05 -07:00
John Bytheway d79f0a51c2 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 07:42:05 -07:00
John Bytheway b56944f16a 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 07:42:04 -07:00
John Bytheway 5558a39c6d Split ammo_set_test function
Split this large function to reduce its size.
2021-07-03 07:42:04 -07:00
John Bytheway 398a8aa491 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 07:42:04 -07:00
John Bytheway d699be4a7f Split game::handle_action
Make this large function smaller by factoring out two parts of it into
new functions.
2021-07-03 07:42:04 -07:00
John Bytheway 1a86dbcbbe Split debug_menu function
Extract three cases from the giant switch statement into new, separate,
functions.
2021-07-03 07:42:04 -07:00
souricelle 38a24972a1 Add feral scientists and lab security (#47996) 2021-07-03 07:42:04 -07:00
Xenomorph-III c436ff8e4e Reword student description (#48370) 2021-07-03 07:42:04 -07:00
actual-nh 870a333984 [Magiclysm] Fix orc archer not spawning with ammo (#46780) 2021-07-03 07:42:04 -07:00
casswedson 9af3b636c5 Misc typographical fixes (#48346)
* misc typographical fixes

Co-authored-by: actual-nh <74678550+actual-nh@users.noreply.github.com>
2021-07-03 07:42:04 -07:00
Shadestyle 8c6003b897 Add Underground Pit Digging (#47943) 2021-07-03 07:42:04 -07:00
LaVeyanFiend e32d8d0ee9 Mutations + Bionics: The Cancelling (#47117) 2021-07-03 07:42:04 -07:00
Eric b6db63b014 Unhardcode bio_drain bionic faults (#48295) 2021-07-03 07:42:04 -07:00
Eric 67225d129b Allows defining enchantments inline in bionics/mutations (#48151) 2021-07-03 07:42:04 -07:00
Anton Burmistrov 97fcd15d40 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 07:42:04 -07:00
Mark Ponti c13d97e009 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 07:42:04 -07:00
Jamuro-g d0cebfe985 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 07:42:04 -07:00
MarlossCDDA 1d88a75bdf 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 07:42:04 -07:00
zeropol 30048a82d2 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 07:42:04 -07:00
Alexey Mostovoy 016c0aed40 Fix typo 2021-07-03 07:42:04 -07:00
Maleclypse cd2d03a808 Add Red Concrete (#48242)
Co-authored-by: Binrui Dong <brett.browning.dong@gmail.com>
2021-07-03 07:42:04 -07:00
zeropol 3d8d1c1c3f Make gym furniture constructible (#48271) 2021-07-03 07:42:04 -07:00
Mark Langsdorf 44bc7deea4 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 07:42:04 -07:00
Saint-of-Grey 5e9cb2c49c Update description of LEAVES mutation line (#48215) 2021-07-03 07:42:04 -07:00
Dekker3D dd362f4976 Material volume fixes (#48194) 2021-07-03 07:42:04 -07:00
Eric b00bf5533b Change weather to use effect_on_conditions (#48178)
* Move weather into effect_on_conditions

* Update effect_on_condition.json

* LGTM issue
2021-07-03 07:42:04 -07:00
John Bytheway eaafa225db Detect duplicate values in json definitions of sets (#48225) 2021-07-03 07:42:04 -07:00
Light-Wave 8061df5192 [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 07:42:04 -07:00
Salty Panda f8471f017a [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 07:42:04 -07:00
OromisElf bc181e08f5 new druid spell: seed of growth (#47912)
* new druid spell: seed of growth

* added comment for future json workers
2021-07-03 07:42:04 -07:00
OromisElf 9da447eda9 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 07:42:04 -07:00
Salty Panda 41d93802d9 [Magiclysm] Add spellcraft skillbook (#47431)
* add spellcraft skillbook

* Spawning too

* Change spawns
2021-07-03 07:42:04 -07:00
Eric f4fc1889e4 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 07:42:04 -07:00
Saicchi ec8026f987 Improve naming of uilist single letter parameters (#47722) 2021-07-03 07:42:04 -07:00
adamkad1 3e76a6fc6d Deluxe scrambled eggs from human meats (#47866) 2021-07-03 07:42:04 -07:00
chrispikula f19a962ece Moved Scourge and Lobotomizer to weapon category in inventory (#47893) 2021-07-03 07:42:04 -07:00
Matthew S. Klosak dde7f9a6f0 Migrate some activities to activity actor system (#47913) 2021-07-03 07:42:04 -07:00
Eric dba369452c Get bionic tools to use power as charges (#47694) 2021-07-03 07:42:04 -07:00
Jamuro-g 8d89e6ddfa Added vehicle racking activity (#47557) 2021-07-03 07:42:03 -07:00
Jamuro-g d22a2a8833 Added warning when removing gunmods (#47816) 2021-07-03 07:42:03 -07:00
LordMadness 74c658a0c7 NPC Interaction Tweak (#47819) 2021-07-03 07:42:03 -07:00
Bella 2d2e55104c Turbine CBM Obsoletion (#47774) 2021-07-03 07:42:03 -07:00
anothersimulacrum bbcee39a66 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 07:42:03 -07:00
Jamuro-g 9195bec844 fixed power armor ui (#47475) 2021-07-03 07:42:03 -07:00
Jamuro-g 2413499038 fix color coding of container stat summary (#47409) 2021-07-03 07:42:03 -07:00
Xenomorph-III a3fd945533 Give the sports drink positive enjoyment value (#47617) 2021-07-03 07:42:03 -07:00
Saicchi 273a5b1e9c Allow filtering debug messages by type (#47619) 2021-07-03 07:42:03 -07:00
Jamuro-g 7445cfe0db Fix allows siphon action to transfer tank contents inside same vehicle (#47647) 2021-07-03 07:42:03 -07:00
Jamuro-g 5f28b89d03 cap pain gain from hauling heavy furniture (#47586) 2021-07-03 07:42:03 -07:00
OromisElf 485112f993 [Magiclysm] bundles (#48118) 2021-07-03 07:42:03 -07:00
John Candlebury f2ccb12128 Blacklist/Whitelist monsters by species (#48203)
* Blacklist/Whitelist monsters by species

* Document new blacklist feature
2021-07-03 07:42:03 -07:00
Maleclypse 915d5a40d5 Valentine Card Spawn (#48210) 2021-07-03 07:42:03 -07:00
Mark Langsdorf df71c22f16 Dark Skies Above: spellcheck the descriptions (#48164)
Run the descriptive JSON through Fedora32's spellcheck and fix
a couple of typoes.
2021-07-03 07:42:03 -07:00
Jamuro-g fc40cde3ff food_containers get colored with their foods colortag (#47426) 2021-07-03 07:42:03 -07:00
Mark Langsdorf 32ecdad553 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 07:42:03 -07:00
ephemeralstoryteller 38d11b883c [Dark Skies Above] Plague Emissary Fix, Harvest Tweak (#48150) 2021-07-03 07:42:03 -07:00
Kevin Granade 1ca026a889 Remove recycler and associated infrastructure (#48096) 2021-07-03 07:42:03 -07:00
tsulh 5112a7c862 fix a typo (#48131) 2021-07-03 07:42:03 -07:00
Maleclypse 914b00920a Update Aftershock README.md (#48123) 2021-07-03 07:42:02 -07:00
RadHazard fa4b694816 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 07:42:02 -07:00
Venera3 0ecf934c56 Add a new anger/fear trigger (#47792) 2021-07-03 07:42:01 -07:00
Viss Valdyr b9ac10609c Tweaks for crowbar and makeshift crowbar (#47827) 2021-07-03 07:42:01 -07:00
Michael Macha eefe163877 Update 40x46mm.json (#47859) 2021-07-03 07:42:01 -07:00
Xenomorph-III 9291d26012 Add MRE chocolate to the game (#47935) 2021-07-03 07:42:00 -07:00
Saicchi 7bbf7964e1 Better debug learn spell menu (#47946)
Co-authored-by: Jianxiang Wang (王健翔) <qrox@sina.com>
2021-07-03 07:42:00 -07:00
OromisElf 0fcf2d0abe updated talk_tags to contain more swears (#47215) 2021-07-03 07:42:00 -07:00
souricelle 217fbf9bcf Feral Human Damage/Description Tweak (#48032) 2021-07-03 07:42:00 -07:00
OromisElf 9aca0f0ec4 Electrical train (#48033) 2021-07-03 07:41:59 -07:00
anothersimulacrum c24792e39c 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 07:41:59 -07:00
John Candlebury 45d8330f39 Unhardcode default Scenario/Profession & Make random starts respect Scenario Blacklists (#47918)
* Unhardcode default profession/scenario

* Random starts respect scenario blacklist
2021-07-03 07:41:59 -07:00
Maleclypse b02b3191f8 Zombie Pig upgrades (#47860) 2021-07-03 07:41:58 -07:00
Maleclypse e702453ab1 Ki strike scroll (#47962) 2021-07-03 07:41:58 -07:00
Termineitor244 b98ad25d65 [Magiclysm] Less HP consumed at higher levels of Sacrificial Healing (#48097) 2021-07-03 07:41:57 -07:00
Termineitor244 b59116944c Increased the probability of condoms in wallets (#48100) 2021-07-03 07:41:57 -07:00
Termineitor244 f1e1f0a8c4 A livelier Zoo (#48108) 2021-07-03 07:41:56 -07:00
LaVeyanFiend 1157bb82e1 Fix MSC Typo (#48115) 2021-07-03 07:41:56 -07:00
Saicchi 92f1bb2fea Allow filtering by level in the recipe craft menu (#47995) 2021-07-03 07:41:56 -07:00
OromisElf e83aa790f9 added electric train engine (#48012) 2021-07-03 07:41:56 -07:00
Eric e0be945ac1 Merge most effect flags and character flags (#47633) 2021-07-03 07:41:56 -07:00
Xenomorph-III 06b322a32c Add Faction Endings to Hub 01 (#48007) 2021-07-03 07:41:56 -07:00
Maleclypse 6170082c8b Flag Fix for Bollards for 0.F Dev (#48052) 2021-07-03 07:41:56 -07:00
Ramza13 5c34d8d0bd Unhardcode ease of sleep (#48010) 2021-07-03 07:41:56 -07:00
Jeremy Rose 2a7453a589 Note that vat is required for fermentation in vinegar brewing (#47651) 2021-07-03 07:41:56 -07:00
Jamuro-g abce969886 prevent bell spam (#47987) 2021-07-03 07:41:56 -07:00
Anton Burmistrov 0e24fb5ef0 Spiral mine jsonify (#48003) 2021-07-03 07:41:56 -07:00
anothersimulacrum cdd2d9fe73 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 07:41:56 -07:00
anothersimulacrum f72929fbee 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 07:41:56 -07:00
anothersimulacrum 24922b243e 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 07:41:56 -07:00
akirashirosawa 8ed782fa7a add description for Uyen's missions (#48026) 2021-07-03 07:41:56 -07:00
Maleclypse a305ab0a34 Traffic Bollards and an example of deployment (#48017) 2021-07-03 07:41:56 -07:00
OromisElf 864a4f5e53 body pillow recipe makes makeshift body pillow now (#47917) 2021-07-03 07:41:56 -07:00
casswedson b6944a4dce misc typograpical fixes (#47953) 2021-07-03 07:41:55 -07:00
LyleSY 3a6f2281b5 [DinoMod] Mushroom Madness (#47907) 2021-07-03 07:41:55 -07:00
Anton Burmistrov ad98842d6b 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 07:41:55 -07:00
actual-nh 927a05ceb7 Alter brown bread recipe to match canned version (#47915)
Fixes #47874.
2021-07-03 07:41:55 -07:00
actual-nh 3bc74b3748 0.F-dev workflows (#47875) 2021-07-03 07:41:55 -07:00
actual-nh e803e7d9d4 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 07:41:55 -07:00
Anton Burmistrov 8f838d5c0d 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 07:41:55 -07:00
FuelType-Memes bbdfcb3c51 Add book strap carrier (#47665) 2021-07-03 07:41:55 -07:00
LyleSY 113e2a0c53 fungal evolution (#47247) 2021-07-03 07:41:55 -07:00
Maleclypse 3515153f50 Hunting lodge Location (#44378) 2021-07-03 07:41:55 -07:00
Ramza13 c8fe3da729 Unhardcode bio_heatsink and bio_climate (#47713) 2021-07-03 07:41:55 -07:00
Curtis Merrill 61a33b84df [Magiclysm] add lesser banishment spell, buff greater banishment (#47537) 2021-07-03 07:41:55 -07:00
Curtis Merrill 6c186c82da [Magiclysm] add owlbear origin snippet (#47752) 2021-07-03 07:41:55 -07:00
Fris0uman 3e9526fd4c Remove unused FATIGUE energy source from spells (#47852) 2021-07-03 07:41:55 -07:00
Fris0uman c2f1ac2450 [My Sweet Cataclysm] Chocolate Cows don't drop "cow pies" (#47609) 2021-07-03 07:41:55 -07:00
Maleclypse 7c5f2a5bf0 Homemade toastems, buttercream frosting and recipes (#47696) 2021-07-03 07:41:55 -07:00
Maleclypse b7fb53d8bc Fried eggs deluxe, sandwiches, and condiment list (#47786) 2021-07-03 07:41:55 -07:00
Lamandus 72a8aae5b4 Tweakes to copper and metal pipes. (#47825) 2021-07-03 07:41:55 -07:00
actual-nh 6249e0d131 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 07:41:55 -07:00
Lamandus 9c35b63c76 Tweaks for teas (#47848) 2021-07-03 07:41:55 -07:00
casswedson d54982312c [Aftershock] misc typograpical fixes (#47783) 2021-07-03 07:41:55 -07:00
Maleclypse 6cb55e87b0 Crackers as bread and jam&cheese sandwich (#47649) 2021-07-03 07:41:55 -07:00
OromisElf 6802b8c14d makes glass walls and glass doors constructable (#47692) 2021-07-03 07:41:55 -07:00
Mom-Bun efb99a0037 [AFTERSHOCK] Basic Ballistic Weapons (#47559) 2021-07-03 07:41:55 -07:00
Charlie Gardai a0154e23ac Stand up peek (#47257) 2021-07-03 07:41:55 -07:00
Hirmuolio f29945ddff Celsius temperature for freezing point (#47028) 2021-07-03 07:41:55 -07:00
Karol1223 b26a93a706 Added disassembly recipes for several items (#46316) 2021-07-03 07:41:55 -07:00
NeviNovat d11e557e74 Make acetylene torch cut metal walls. (#46255) 2021-07-03 07:41:55 -07:00
Curtis Merrill 681709e25f Prepare npc, spell, character, and item for new ai (#47207) 2021-07-03 07:41:55 -07:00
Lamandus 9a0dfb36a5 Add duct tape blindfold for old reciepe plus tweaks for reciepe (#47527) 2021-07-03 07:41:55 -07:00
Fosheze a99144264b Mealgurb (#47685) 2021-07-03 07:41:55 -07:00
SariusSkelrets f2f0435d34 (CrazyCataclysm) Crazy Hallucinations (#47386) 2021-07-03 07:41:55 -07:00
UmbralReaper 8f79acdbb0 Fix typo in Valentines Card (#47583) 2021-07-03 07:41:55 -07:00
klorpa 7eb713d61a Talk Tag Additions (#47010) 2021-07-03 07:41:55 -07:00
Zukulini 827ccb12c8 Milleable corn (#46254) 2021-07-03 07:41:55 -07:00
RobertoVGoulart 1a166877fe Mycus fruit Juice (#44952) 2021-07-03 07:41:55 -07:00
El-Jekozo 16e5e1f183 New random mission (#44999) 2021-07-03 07:41:55 -07:00
Xaleth 4b9a6c6b1c Content: bread in a can (#45680) 2021-07-03 07:41:55 -07:00
grawprog 203792eab0 Added Gelatin and Several Gelatin Based Recipes (#47080) 2021-07-03 07:41:55 -07:00
Xenomorph-III 7771fbbc8f Tazer drone iii (#47353) 2021-07-03 07:41:55 -07:00
Jamuro-g e730c86d67 Arm mounted pouch (#46946) 2021-07-03 07:41:55 -07:00
ToxiClay 721d071889 Add hallula bread (#46282) 2021-07-03 07:41:55 -07:00
slimeboy460 ee621ca50a Drug Dealer Profession (#47255) 2021-07-03 07:41:54 -07:00
LaVeyanFiend 2ba8eb483f Add a proficiency for handloading, and a new profession (#47244) 2021-07-03 07:41:54 -07:00
Maleclypse 0764a1b76c Valentine Cards (#47438) 2021-07-03 07:41:54 -07:00
Qrox 8e16c25b02 Fix incorrect conditional name of smoked wasteland sausage 2021-07-03 17:23:53 +08:00
Angela Graves 25f256ea0d Merge pull request #49518 from faefux/FFwashboard
Small changes to washboards. Now heavier but actually slightly smaller.
2021-07-03 02:44:58 -05:00
HeadsetRuler a580c16c1e Made Tea batch crafting mod equal to boiling plain water 2021-07-03 03:49:00 +02:00
LaVeyanFiend 0f3189a354 You will learn the proficiencies & you'll like it 2021-07-02 01:34:48 -04:00
faefux cdf15edc6a Update toileteries.json 2021-07-01 14:12:09 +01:00
fae 25ae1f1335 removed that fing file 2021-07-01 13:54:48 +01:00
fae 6b3e202359 Change small things about washboard 2021-07-01 13:41:52 +01:00
faefux 56511e486f Merge pull request #16 from CleverRaven/master
Hi. I am a Title.
2021-07-01 13:16:31 +01:00
anothersimulacrum 0313e06b9f Fix Cut Logs faction camp mission difficulty disp.
It displays as 1, but actually requires an NPC with fabrication 2.
2021-06-30 18:08:06 -07:00
mqrause c04fe4cd8d ignore pocket settings when manually inserting stackable items 2021-06-26 12:01:23 +02:00
mqrause 29fb04a982 - move all_items_ptr and recursion to item
- add wrappers for all_items_top in item
- remove calls of item_contents::all_items_top outside of item
2021-06-24 11:57:48 +02:00
mqrause 8d0ffff6fd - remove avail_types vector
- remove unused all_standard_items_top
- change parameterless all_items_top to filter by item_pocket::is_standard_type instead of avail_types
2021-06-24 11:57:46 +02:00
mqrause 8bcdc405e6 - add private all_items_top variant that takes a predicate as a parameter
- change all_items_top variants that filter by pocket type to wrappers of the predicate variant
2021-06-24 11:57:46 +02:00
YuRukia f75e2b6d88 Add "ALLOWS_TAIL" tag to Chitin Leg Guards 2021-06-21 23:15:12 +01:00
anothersimulacrum d1e83af3c0 Fix clang-3.8 build error
Clang-3.8 was having some trouble constructing the pair to insert.
Hopefully this will make it easier.
2021-06-09 14:04:18 -07:00
anothersimulacrum 578cdff414 Add vitamin and death effects tests
Add an effect impacting absorbtion and adding vitamin gain for use in
testing. Also, add the necessary vitamins to be impacted.
Add a food with high quantities of a vitamin to test the absorbtion.

Add an effect with varying levels of fatality, to test fatality of
effects.

Test character's vitamins were not previously being cleared, so make
sure to do that.

It feels a little unsafe to hang onto pointers of monsters that you may
be killing and keep doing things with them, but it appears to work so
I'll live with it.
2021-06-09 13:23:52 -07:00
anothersimulacrum a3c7180056 Allow effects to randomly kill the player
Not super idiomatic with effects, but it works fine, and I'm not a huge
fan of the current effect structure.

I could have made the chances cata::optional, instead of defaulting to
always fail, but I figured this also worked, and avoided some extra
noise.

Thanks to jbytheway for the assistance with the events stuff - right
now, for simplicity, we're limited to event_spec_character type events.
In the future, this should change (e.g. for drug overdose events).

We could be doing a lot more verification for effects, but that seems
out of scope for this change.
2021-06-09 11:30:45 -07:00
anothersimulacrum 670ef6ea93 Allowing killing Character with Character::die
There's all sorts of places that kill a character by just setting HP
to 0, let's add a proper way to kill a character.
2021-06-09 11:06:51 -07:00
anothersimulacrum db53bb0cb2 Allow effects to modify vitamins
Not particularly idiomatic with current effect stuff, but I'm not a huge
fan of the existing structure.

Change some auto into proper types, because I needed to read things.

constify Creature::resists_effect, because I need it for my changes, and
it can be.
2021-06-09 11:06:51 -07:00
krulunio 0f3e620294 Create modular_shacks.json
This adds mattress beds, straw beds and 7 types of shacks/walls (log, metal, migo resin, rammed earth, rock, wattle and daub, wood)
2021-06-09 16:13:22 +02:00
fae 0a935ee58a ? 2021-06-07 21:13:20 +01:00
Welp 3e95d01c58 Add Tests 2021-05-06 13:54:58 -07:00
Welp c20465baad Remove double count of ammo in internal magazines.
The special case for plutonium cells confused me a bit, I think anything that would get caught by it gets caught by the count by charges section above.
2021-05-06 11:30:21 -07:00
Welp 6a130f85fe Simplify weight(), remove accidental double-count of gunmods and ammo 2021-05-05 17:53:16 -07:00
Welp 0bfcd4bc9c Make weight() use include_contents
The behavior of existing calls should not be affected by this change.
2021-05-05 08:59:36 -07:00
GGgatherer 3d5c8f691d colorize spells in spellbooks
default grey: can't learn
blue: can learn
yellow: can level
green: max level
2021-04-10 18:39:27 +07:00
James Gangur 6f01387e02 Merge branch 'master' of https://github.com/CleverRaven/Cataclysm-DDA into shoot-glass-flags 2021-04-09 17:23:27 +09:30
James Gangur fa513f1a57 remove the NO_SHOOT flag 2021-04-09 16:54:50 +09:30
James Gangur a7b8e5b539 added data for windows, removed last of commented code
- left out barred windows since they need to be made sane first
2021-04-09 16:49:52 +09:30
James Gangur b2d7fdb2b2 added data for boarded doors
tweaked some other values for consistency
2021-04-09 15:28:11 +09:30
James Gangur 7654553371 ran json style thing, make sure the json is nice and hard to read 2021-04-08 20:47:58 +09:30
James Gangur 0eba17a829 fix damage multipliers not being applied
change hitting vehicle parts to use primary damage type rather than STAB or HEAT
moved data from terrain to map_common, can now apply to furniture as well
fixed alarms to only trigger if furniture or terrain is actually hit
remove exclamation mark from message to get around string freeze
prevent damaging items if the shot hits furniture or terrain
allow incendiary shots to start fires on FLAMMABLE_ASH furniture/terrain
remove commented code for items that are now supported
removed special handling of gasoline pumps
removed superfluous in_bounds check
cleaned up and updated some comments/todos
added data for overhead light
 - chance_to_hit is zero, so can only be hit intentionally
added data for glassteel walls from magiclysm
 - replaces NO_SHOOT flag which no longer does anything
added data for cloning vats
 - not special, just something that was hardcoded before (strangely)
added data for paper walls
2021-04-08 20:19:21 +09:30
James Gangur 9f206863aa made some values optional
changed laser_can_destroy to no_laser_destroy (inverted)
store min/max values as arrays in json
2021-04-07 19:01:18 +09:30
James Gangur ece0994edb add a bunch more terrain 2021-04-07 16:51:44 +09:30
James Gangur 5a3dc86a67 applied requested changes
ran astyle
2021-04-07 13:35:02 +09:30
James Gangur 7acb253ebe fix oops from not waiting for compile before commiting 2021-04-06 23:40:18 +09:30
James Gangur 2e754f0c21 added ter_shoot_info structure
added block in map::shoot to handle it
added json to a couple of terrains for testing
2021-04-06 23:33:41 +09:30
topherclay 5b08356721 fixed astyle formatting 2021-01-22 17:58:58 -08:00
topherclay 5715568f6f Adjusted the wield_check_from_inv() parts of this test. 2021-01-22 17:51:23 -08:00
topherclay 4b50984033 I think I just ran astyle formatting? The automatic checks on the pull request will let me know. 2021-01-22 17:11:00 -08:00
topherclay 549a9795f8 Moved the flat 250 takeoff cost to where it can't be avoided via the WIELD action. 2021-01-22 15:34:03 -08:00
PatrikLundell be98676a97 incorporated some old reverse conflict changes 2021-01-12 12:02:52 +01:00
PatrikLundell 32bb236790 Adjusted to #46278 2021-01-11 13:21:02 +01:00
PatrikLundell b4d80d430b 'resolved' conflict 2021-01-11 12:54:06 +01:00
PatrikLundell 23ee5dada9 removal of characters in middle of token managed to offend secret json format mandate 2020-12-12 11:16:35 +01:00
PatrikLundell 9a0fe3f9e8 testing disallows base name recipe changes 2020-12-12 10:09:40 +01:00
PatrikLundell a7c689646f Merge branch 'master' of https://github.com/CleverRaven/Cataclysm-DDA into base_camp_reorganization 2020-12-11 14:54:47 +01:00
PatrikLundell 46c344cce9 Reworked to push expansions back to the top level + doc 2020-12-05 12:29:50 +01:00
PatrikLundell 305a9ed7f4 Merge branch 'master' of https://github.com/CleverRaven/Cataclysm-DDA into base_camp_reorganization 2020-12-05 10:49:58 +01:00
PatrikLundell 13ca402447 fixed log stable appearing as kitchen construction 2020-11-26 13:15:24 +01:00
PatrikLundell f231595eb7 removed sentences that shouldn't be there 2020-11-23 10:40:14 +01:00
PatrikLundell 036b6a8376 reorganized to support expansion 2020-11-22 11:36:22 +01:00
PatrikLundell 5ae246f711 reorganized to support expansion 2020-11-22 11:35:13 +01:00
2600 changed files with 1637803 additions and 744650 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[dynamic-load,libflac,mpg123,libmodplug,libvorbis] sdl2-ttf gettext --recurse
- cmd: vcpkg --triplet %PLATFORM%-windows-static install sdl2 sdl2-image sdl2-mixer[libflac,mpg123,libmodplug,libvorbis] sdl2-ttf gettext --recurse
build:
project: /msvc-full-features/Cataclysm-vcpkg-static.sln
parallel: true
-1
View File
@@ -46,7 +46,6 @@ modernize-*,\
performance-*,\
readability-*,\
-readability-braces-around-statements,\
-bugprone-branch-clone,\
-bugprone-infinite-loop,\
-bugprone-misplaced-widening-cast,\
-bugprone-narrowing-conversions,\
+1
View File
@@ -19,6 +19,7 @@
/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
+3 -2
View File
@@ -111,12 +111,13 @@ 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
@@ -1,59 +0,0 @@
---
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
@@ -0,0 +1,88 @@
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
+6 -1
View File
@@ -1,5 +1,10 @@
<!-- HOW TO USE: Under each "#### Heading" below, enter information relevant to your pull request.
Leave the headings unless they don't apply to your PR, and remove the comment blocks (surrounded with <!–– and ––>) when you are done.
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.
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
@@ -0,0 +1,5 @@
set(VCPKG_TARGET_ARCHITECTURE x64)
set(VCPKG_CRT_LINKAGE static)
set(VCPKG_LIBRARY_LINKAGE static)
set(VCPKG_BUILD_TYPE release)
+5
View File
@@ -0,0 +1,5 @@
set(VCPKG_TARGET_ARCHITECTURE x64)
set(VCPKG_CRT_LINKAGE dynamic)
set(VCPKG_LIBRARY_LINKAGE dynamic)
set(VCPKG_BUILD_TYPE release)
@@ -0,0 +1,5 @@
set(VCPKG_TARGET_ARCHITECTURE x86)
set(VCPKG_CRT_LINKAGE static)
set(VCPKG_LIBRARY_LINKAGE static)
set(VCPKG_BUILD_TYPE release)
+5
View File
@@ -0,0 +1,5 @@
set(VCPKG_TARGET_ARCHITECTURE x86)
set(VCPKG_CRT_LINKAGE dynamic)
set(VCPKG_LIBRARY_LINKAGE dynamic)
set(VCPKG_BUILD_TYPE release)
+5 -27
View File
@@ -4,43 +4,21 @@ on:
push:
branches:
- master
- 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'
workflow_dispatch:
# 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
run: sudo apt-get install libncursesw5-dev gettext
- name: Prepare Build Analyzer
run: |
cd
+15 -6
View File
@@ -1,15 +1,24 @@
name: astyle
on:
pull_request:
paths:
- '**.cpp'
- '**.h'
- '**.c'
on: pull_request
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
@@ -0,0 +1,72 @@
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
+16 -18
View File
@@ -4,30 +4,28 @@ 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,7 +4,6 @@ on:
push:
branches:
- master
- 0.F-dev
paths:
- '**/CMakeLists.txt'
- '**.cmake'
@@ -12,7 +11,6 @@ on:
pull_request:
branches:
- master
- 0.F-dev
paths:
- '**/CMakeLists.txt'
- '**.cmake'
-2
View File
@@ -4,13 +4,11 @@ on:
push:
branches:
- master
- 0.F-dev
paths:
- '**.py'
pull_request:
branches:
- master
- 0.F-dev
paths:
- '**.py'
+15 -4
View File
@@ -1,15 +1,26 @@
name: JSON Validation
on:
pull_request:
paths:
- '**.json'
on: pull_request
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
+114 -66
View File
@@ -4,83 +4,113 @@ 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: g++-9
os: ubuntu-latest
cmake: 0
tiles: 0
test-stage: 1
native: linux64
gold: 1
lto: 1
title: GCC 9, Ubuntu, Curses, LTO
- compiler: g++-7
os: ubuntu-latest
cmake: 1
tiles: 1
native: linux64
title: GCC 7, Ubuntu, Tiles, CMake
- compiler: g++-8
os: ubuntu-latest
cmake: 0
tiles: 1
sanitize: address
native: linux64
title: GCC 8, Ubuntu, Tiles, ASan
- compiler: clang++-12
os: ubuntu-latest
cmake: 0
tiles: 1
sanitize: address,undefined
native: linux64
title: Clang 12, Ubuntu, Tiles, ASan, UBSan
sanitize: address
mods: --mods=magiclysm
title: Clang 12, Ubuntu, Tiles, ASan
- compiler: g++-11
os: ubuntu-latest
tiles: 0
sanitize: address
title: GCC 11, Ubuntu, Curses, ASan
- compiler: clang++
os: macos-10.15
cmake: 0
tiles: 1
native: osx
title: Clang 12, macOS 10.15, Tiles
sanitize: undefined
tiles: 1
sound: 1
title: Clang 12, macOS 10.15, Tiles, Sound, UBSan
- compiler: g++
os: ubuntu-latest
cmake: 0
native:
tiles: 1
title: GCC, Ubuntu cross-compile to MinGW-Win64, Tiles
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
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
- compiler: g++-7
os: ubuntu-18.04
cmake: 1
tiles: 1
sound: 1
localize: 0
title: GCC 7, Ubuntu, Tiles, Sound, CMake
name: ${{ matrix.title }}
runs-on: ${{ matrix.os }}
env:
@@ -90,43 +120,60 @@ jobs:
WINE: ${{ matrix.wine }}
OS: ${{ matrix.os }}
TILES: ${{ matrix.tiles }}
SOUND: ${{ matrix.tiles }}
SOUND: ${{ matrix.sound }}
LOCALIZE: ${{ matrix.localize }}
MODS: ${{ matrix.mods }}
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: 1
RELEASE: ${{ matrix.release }}
SKIP: ${{ needs.skip-duplicates.outputs.should_skip == 'true' || ( matrix.mods != 0 && needs.skip-duplicates-mods.outputs.should_skip_mods == 'true' ) }}
steps:
- name: checkout repository
if: ${{ env.SKIP == 'false' }}
uses: actions/checkout@v1
with:
fetch-depth: 1
- name: install dependencies (ubuntu)
if: runner.os == 'Linux'
if: ${{ env.SKIP == 'false' && 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: runner.os == 'Linux' && (matrix.compiler == 'g++-7' || matrix.compiler == 'g++-8')
- name: install old GCC (Ubuntu)
if: ${{ env.SKIP == 'false' && 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: runner.os == 'macOS'
if: ${{ env.SKIP == 'false' && 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: runner.os == 'Linux'
if: ${{ env.SKIP == 'false' && runner.os == 'Linux' }}
uses: actions/cache@v2
with:
path: ~/.ccache
@@ -134,7 +181,7 @@ jobs:
restore-keys: |
ccache-linux-${{ matrix.compiler }}-
- name: ccache cache files (mac)
if: runner.os == 'macOS'
if: ${{ env.SKIP == 'false' && runner.os == 'macOS' }}
uses: actions/cache@v2
with:
path: /Users/runner/Library/Caches/ccache
@@ -143,11 +190,12 @@ 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
@@ -0,0 +1,114 @@
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
@@ -0,0 +1,101 @@
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,7 +3,6 @@ on:
pull_request:
branches:
- master
- 0.F-dev
types: [opened, edited, synchronize]
jobs:
validate:
+50
View File
@@ -0,0 +1,50 @@
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
@@ -0,0 +1,55 @@
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
+66 -32
View File
@@ -60,6 +60,20 @@ 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
@@ -127,7 +141,28 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- name: Install dependencies (windows)
- 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)
if: matrix.mxe != 'none'
run: |
sudo apt install astyle autoconf automake autopoint bash bison bzip2 cmake flex gettext git g++ gperf intltool \
@@ -136,11 +171,13 @@ jobs:
- name: Install MXE
if: matrix.mxe != 'none'
run: |
sudo apt install software-properties-common lsb-release
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 86B72ED9
sudo add-apt-repository "deb [arch=amd64] https://pkg.mxe.cc/repos/apt `lsb_release -sc` main"
sudo apt update
sudo apt install mxe-{i686,x86-64}-w64-mingw32.static-{sdl2,sdl2-ttf,sdl2-image,sdl2-mixer,gettext}
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
- name: Install dependencies (Linux)
if: runner.os == 'Linux' && matrix.mxe == 'none' && matrix.android == 'none'
run: |
@@ -152,8 +189,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: Build CDDA (linux)
if: runner.os == 'Linux' && matrix.mxe == 'none' && matrix.android == 'none'
- name: Create VERSION.TXT
shell: bash
run: |
cat >VERSION.txt <<EOL
build type: ${{ matrix.artifact }}
@@ -161,33 +198,35 @@ 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)
- name: Build CDDA (windows mxe)
if: matrix.mxe != 'none'
env:
PLATFORM: /usr/lib/mxe/usr/bin/${{ matrix.mxe }}-w64-mingw32.static-
PLATFORM: /opt/mxe/usr/bin/${{ matrix.mxe }}-w64-mingw32.static.gcc11-
run: |
cat >VERSION.txt <<EOL
build type: ${{ matrix.artifact }}
build number: ${{ needs.release.outputs.timestamp }}
commit sha: ${{ github.sha }}
commit url: https://github.com/${{ github.repository }}/commit/${{ github.sha }}
EOL
make -j$((`nproc`+0)) CROSS="${PLATFORM}" TILES=1 SOUND=1 RELEASE=1 LOCALIZE=1 LANGUAGES=all BACKTRACE=0 PCH=0 bindist
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
mv cataclysmdda-0.F.zip cdda-${{ matrix.artifact }}-${{ needs.release.outputs.timestamp }}.zip
- name: Build CDDA (osx)
if: runner.os == 'macOS'
env:
USE_HOME_DIR: 1
run: |
cat >VERSION.txt <<EOL
build type: ${{ matrix.artifact }}
build number: ${{ needs.release.outputs.timestamp }}
commit sha: ${{ github.sha }}
commit url: https://github.com/${{ github.repository }}/commit/${{ github.sha }}
EOL
make -j3 TILES=${{ matrix.tiles }} SOUND=${{ matrix.tiles }} RELEASE=1 LOCALIZE=1 LANGUAGES=all BACKTRACE=0 PCH=0 dmgdist
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
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'
@@ -198,12 +237,6 @@ 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)
@@ -240,6 +273,7 @@ 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 \
@@ -0,0 +1,45 @@
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,8 +18,11 @@ 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
@@ -1,40 +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:
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,6 +7,7 @@
*.o
*.tmp
*.zip
*.apk
/WinDepend/
/bindist/
/build/
@@ -100,6 +101,9 @@ tags
# Compiled binary translations
/lang/mo/
# Stampfile for binary translations
/lang/mo_built.stamp
# Directory for translatable strings
/lang/json/*
!/lang/json/README
@@ -204,3 +208,12 @@ 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,3 +1,4 @@
# 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
@@ -1,234 +0,0 @@
# 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
+10 -27
View File
@@ -26,7 +26,6 @@ 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)
@@ -97,7 +96,8 @@ else ()
endif ()
# System specific actions
if (${CMAKE_SYSTEM_NAME} MATCHES Linux OR ${CMAKE_SYSTEM_NAME} MATCHES FreeBSD)
if (${CMAKE_SYSTEM_NAME} MATCHES Linux OR ${CMAKE_SYSTEM_NAME} MATCHES FreeBSD
OR ${CMAKE_SYSTEM_NAME} MATCHES Darwin)
if (NOT DATA_PREFIX)
set(DATA_PREFIX ${CMAKE_INSTALL_PREFIX}/share/cataclysm-dda)
endif ()
@@ -137,9 +137,7 @@ message(STATUS "${PROJECT_NAME} build options --")
# Preset variables
if (NOT LANGUAGES)
# English is included to workaround a libintl bug that affects performance
# on MinGW targets. See lang/CMakeList.txt for more information.
set(LANGUAGES en de es_AR es_ES fr it_IT ja ko pt_BR ru zh_CN zh_TW)
set(LANGUAGES de es_AR es_ES fr it_IT ja ko pt_BR ru zh_CN zh_TW)
endif ()
if (GIT_BINARY)
@@ -153,10 +151,6 @@ 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)
@@ -164,6 +158,7 @@ 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)
@@ -174,6 +169,7 @@ 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}")
@@ -185,8 +181,9 @@ else ()
message(STATUS "PIXMAPS_UNITY_ENTRY_PATH : ${PIXMAPS_UNITY_ENTRY_PATH}")
message(STATUS "MANPAGE_ENTRY_PATH : ${MANPAGE_ENTRY_PATH}")
add_definitions(-DRELEASE)
# Use PREFIX as storage of data,gfx, etc.. Useful only on *nix OS.
if (PREFIX AND NOT WIN32)
# 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})
add_definitions(-DDATA_DIR_PREFIX)
endif ()
endif ()
@@ -248,6 +245,8 @@ 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
@@ -337,22 +336,6 @@ 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,6 +1,9 @@
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)".
+3 -1
View File
@@ -4,13 +4,15 @@ 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.
libintl-lite is licensed under Boost Software License 1.0. Visit https://www.boost.org/users/license.html to read the license.
gulrak filesystem (src/third-party/ghc/*) is licensed under the MIT license, see file for text of license.
libbacktrace is licensed under a BSD license (https://github.com/ianlancetaylor/libbacktrace/blob/master/LICENSE). The full license text is as follows:
+76 -68
View File
@@ -47,10 +47,6 @@
# (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)
@@ -192,6 +188,13 @@ 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)),)
@@ -327,8 +330,6 @@ 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),)
@@ -455,6 +456,7 @@ ifeq ($(PCH), 1)
endif
endif
CPPFLAGS += -isystem ${SRC_DIR}/third-party
CXXFLAGS += $(WARNINGS) $(DEBUG) $(DEBUGSYMS) $(PROFILE) $(OTHERS) -MMD -MP
TOOL_CXXFLAGS = -DCATA_IN_TOOL
@@ -520,7 +522,7 @@ ifeq ($(NATIVE), osx)
endif
DEFINES += -DMACOSX
CXXFLAGS += -mmacosx-version-min=$(OSX_MIN)
LDFLAGS += -mmacosx-version-min=$(OSX_MIN) -framework CoreFoundation
LDFLAGS += -mmacosx-version-min=$(OSX_MIN) -framework CoreFoundation -Wl,-headerpad_max_install_names
ifdef FRAMEWORK
ifeq ($(FRAMEWORKSDIR),)
FRAMEWORKSDIR := $(strip $(if $(shell [ -d $(HOME)/Library/Frameworks ] && echo 1), \
@@ -536,22 +538,6 @@ 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)
@@ -600,6 +586,7 @@ endif
# Global settings for Windows targets
ifeq ($(TARGETSYSTEM),WINDOWS)
DEFINES += -DWIN32_LEAN_AND_MEAN
CHKJSON_BIN = chkjson.exe
TARGET = $(W32TARGET)
BINDIST = $(W32BINDIST)
@@ -611,9 +598,6 @@ 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)
@@ -722,7 +706,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 -lintl -liconv -lwebp -ljpeg -luuid
LDFLAGS += -Wl,--start-group -lharfbuzz -lfreetype -Wl,--end-group -lgraphite2 -lpng -lz -ltiff -lbz2 -lglib-2.0 -llzma -lws2_32 -lwebp -ljpeg -luuid
else
LDFLAGS += -lfreetype -lpng -lz -ljpeg -lbz2
endif
@@ -781,13 +765,6 @@ 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)
@@ -796,12 +773,7 @@ ifeq ($(BSD), 1)
CXXFLAGS += -fno-omit-frame-pointer
endif
# 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
# libexecinfo may be located in /usr/local on BSD
CXXFLAGS += -I/usr/local/include
LDFLAGS += -L/usr/local/lib
endif
@@ -826,6 +798,7 @@ endif
ifeq ($(LOCALIZE),1)
DEFINES += -DLOCALIZE
LOCALIZE_TEST_DEPS = localization $(TEST_MO)
endif
ifeq ($(TARGETSYSTEM),LINUX)
@@ -851,11 +824,13 @@ SOURCES := $(wildcard $(SRC_DIR)/*.cpp)
HEADERS := $(wildcard $(SRC_DIR)/*.h)
TESTSRC := $(wildcard tests/*.cpp)
TESTHDR := $(wildcard tests/*.h)
JSON_FORMATTER_SOURCES := tools/format/format.cpp tools/format/format_main.cpp src/json.cpp
CHKJSON_SOURCES := src/chkjson/chkjson.cpp src/json.cpp
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
CLANG_TIDY_PLUGIN_SOURCES := \
$(wildcard tools/clang-tidy-plugin/*.cpp tools/clang-tidy-plugin/*/*.cpp)
TOOLHDR := $(wildcard tools/*/*.h)
CLANG_TIDY_PLUGIN_HEADERS := \
$(wildcard tools/clang-tidy-plugin/*.h tools/clang-tidy-plugin/*/*.h)
# Using sort here because it has the side-effect of deduplicating the list
ASTYLE_SOURCES := $(sort \
$(SOURCES) \
@@ -863,9 +838,10 @@ ASTYLE_SOURCES := $(sort \
$(TESTSRC) \
$(TESTHDR) \
$(JSON_FORMATTER_SOURCES) \
$(JSON_FORMATTER_HEADERS) \
$(CHKJSON_SOURCES) \
$(CLANG_TIDY_PLUGIN_SOURCES) \
$(TOOLHDR))
$(CLANG_TIDY_PLUGIN_HEADERS))
_OBJS = $(SOURCES:$(SRC_DIR)/%.cpp=%.o)
ifeq ($(TARGETSYSTEM),WINDOWS)
@@ -928,6 +904,8 @@ ifeq ($(LTO), 1)
endif
endif
LDFLAGS += -lz
all: version $(CHECKS) $(TARGET) $(L10N) $(TESTS)
@
@@ -964,12 +942,27 @@ $(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
localization:
lang/compile_mo.sh $(LANGUAGES)
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
$(CHKJSON_BIN): $(CHKJSON_SOURCES)
$(CXX) $(CXXFLAGS) $(TOOL_CXXFLAGS) -Isrc/chkjson -Isrc $(CHKJSON_SOURCES) -o $(CHKJSON_BIN)
@@ -984,11 +977,12 @@ 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
rm -rf lang/mo lang/mo_built.stamp
rm -f data/options.txt
rm -f data/keymap.txt
rm -f data/auto_pickup.txt
@@ -1028,7 +1022,7 @@ endif
LICENSE.txt LICENSE-OFL-Terminus-Font.txt -t $(DATA_PREFIX)
mkdir -p $(LOCALE_DIR)
ifdef LANGUAGES
LOCALE_DIR=$(LOCALE_DIR) lang/compile_mo.sh $(LANGUAGES)
$(MAKE) -C lang
endif
endif
@@ -1064,7 +1058,7 @@ endif
LICENSE.txt LICENSE-OFL-Terminus-Font.txt -t $(DATA_PREFIX)
mkdir -p $(LOCALE_DIR)
ifdef LANGUAGES
LOCALE_DIR=$(LOCALE_DIR) lang/compile_mo.sh $(LANGUAGES)
$(MAKE) -C lang
endif
endif
@@ -1112,14 +1106,10 @@ endif
cp -R data/title $(APPDATADIR)
cp -R data/help $(APPDATADIR)
ifdef LANGUAGES
lang/compile_mo.sh $(LANGUAGES)
$(MAKE) -C lang
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)
@@ -1135,17 +1125,14 @@ 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
@@ -1186,8 +1173,27 @@ etags: $(ASTYLE_SOURCES)
etags $^
./tools/json_tools/cddatags.py
astyle: $(ASTYLE_SOURCES)
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_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)
@@ -1203,10 +1209,12 @@ else
@echo Cannot run an astyle check, your system either does not have astyle, or it is too old.
endif
style-json: json_blacklist $(JSON_FORMATTER_BIN)
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)
ifndef CROSS
find data gfx -name "*.json" -print0 | grep -v -z -F -f json_blacklist | \
xargs -0 -L 1 $(JSON_FORMATTER_BIN)
$(JSON_FORMATTER_BIN) $< && mkdir -p $(@D) && touch $@
else
@echo Cannot run json formatter in cross compiles.
endif
@@ -1221,10 +1229,10 @@ $(JSON_FORMATTER_BIN): $(JSON_FORMATTER_SOURCES)
python-check:
flake8
tests: version $(BUILD_PREFIX)cataclysm.a
tests: version $(BUILD_PREFIX)cataclysm.a $(LOCALIZE_TEST_DEPS)
$(MAKE) -C tests
check: version $(BUILD_PREFIX)cataclysm.a
check: version $(BUILD_PREFIX)cataclysm.a $(LOCALIZE_TEST_DEPS)
$(MAKE) -C tests check
clean-tests:
+1 -2
View File
@@ -69,8 +69,7 @@ GitHub repo:
https://github.com/CleverRaven/Cataclysm-DDA
IRC:
`irc.libera.chat` ; `#CataclysmDDA`
https://kiwiirc.com/nextclient/irc.libera.chat#CataclysmDDA
`#CataclysmDDA` on [Libera Chat](https://libera.chat), https://web.libera.chat/#CataclysmDDA
Official Discord:
https://discord.gg/jFEc7Yp
-23
View File
@@ -1,23 +0,0 @@
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
@@ -1,23 +0,0 @@
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.
@@ -1,98 +0,0 @@
/*
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
@@ -1,222 +0,0 @@
/*
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
@@ -1,360 +0,0 @@
/*
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
@@ -1,127 +0,0 @@
/*
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_
+5 -3
View File
@@ -2,6 +2,8 @@ LOCAL_PATH := $(call my-dir)/../../../../src
include $(CLEAR_VARS)
LOCAL_C_INCLUDES := $(LOCAL_PATH)/third-party
LOCAL_MODULE := main
LOCAL_CPP_FEATURES := exceptions rtti
@@ -10,11 +12,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 libintl-lite mpg123
LOCAL_SHARED_LIBRARIES := libhidapi SDL2 SDL2_mixer SDL2_image SDL2_ttf mpg123
LOCAL_LDLIBS := -lGLESv1_CM -lGLESv2 -llog
LOCAL_LDLIBS := -lGLESv1_CM -lGLESv2 -llog -lz
LOCAL_CFLAGS += -DTILES=1 -DSDL_SOUND=1 -DBACKTRACE=1 -DLOCALIZE=1 -Wextra -Wall -fsigned-char -ffast-math
LOCAL_CFLAGS += -DTILES=1 -DSDL_SOUND=1 -DBACKTRACE=1 -DLOCALIZE=1 -Wextra -Wall -fsigned-char
LOCAL_LDFLAGS += $(LOCAL_CFLAGS)
@@ -53,7 +53,12 @@ class HIDDeviceUSB implements HIDDevice {
public String getSerialNumber() {
String result = null;
if (Build.VERSION.SDK_INT >= 21) {
result = mDevice.getSerialNumber();
try {
result = mDevice.getSerialNumber();
}
catch (SecurityException exception) {
//Log.w(TAG, "App permissions mean we cannot get serial number for device " + getDeviceName() + " message: " + exception.getMessage());
}
}
if (result == null) {
result = "";
@@ -146,7 +146,6 @@ public class SDLActivity extends Activity implements View.OnSystemUiVisibilityCh
"SDL2_mixer",
// "SDL2_net",
"SDL2_ttf",
"intl-lite",
"main"
};
}
+31 -9
View File
@@ -6,10 +6,17 @@ 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
@@ -38,7 +45,11 @@ function run_test
{
set -eo pipefail
test_exit_code=0 sed_exit_code=0 exit_code=0
$WINE $1 --min-duration 0.2 --use-colour yes --rng-seed time $EXTRA_TEST_OPTS "$2" 2>&1 | sed -E 's/^(::(warning|error|debug)[^:]*::)?/\1'"$3"'/' || test_exit_code="${PIPESTATUS[0]}" sed_exit_code="${PIPESTATUS[1]}"
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]}"
if [ "$test_exit_code" -ne "0" ]
then
echo "$3test exited with code $test_exit_code"
@@ -127,14 +138,17 @@ 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="$( \
./build-scripts/files_changed | grep -F "$all_cpp_files" || true )"
echo "$changed_files" | grep -F "$all_cpp_files" || true )"
if [ -n "$changed_cpp_files" ]
then
remaining_cpp_files="$( \
@@ -157,16 +171,24 @@ then
echo "Analyzing changed files"
analyze_files_in_random_order "$changed_cpp_files"
echo "Analyzing remaining files"
analyze_files_in_random_order "$remaining_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
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' {} '('{}')=> '" ::: "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] ~[.]"
[ -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] ~[.]"
fi
elif [ "$NATIVE" == "android" ]
then
@@ -187,10 +209,10 @@ else
export ASAN_OPTIONS=detect_odr_violation=1
export UBSAN_OPTIONS=print_stacktrace=1
parallel --verbose --linebuffer "run_test './tests/cata_test' {} '('{}')=> '" ::: "crafting_skill_gain" "[slow] ~crafting_skill_gain" "~[slow] ~[.]"
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] ~[.]"
if [ -n "$MODS" ]
then
parallel --verbose --linebuffer "run_test './tests/cata_test --user-dir=modded '$(printf %q "${MODS}") {} 'Mods-('{}')=> '" ::: "crafting_skill_gain" "[slow] ~crafting_skill_gain" "~[slow] ~[.]"
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] ~[.]"
fi
if [ -n "$TEST_STAGE" ]
@@ -202,7 +224,7 @@ else
./build-scripts/get_all_mods.py | \
while read mods
do
run_test './tests/cata_test --user-dir=all_modded --mods='"${mods}" '~*' ''
run_test ./tests/cata_test '(all_mods)=> ' '~*' --user-dir=all_modded --mods="${mods}"
done
fi
fi
+40 -8
View File
@@ -3,15 +3,47 @@
# 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/
if [ -n $TRAVIS_COMMIT_RANGE ]
set -e
function files_list
{
git diff --name-only --diff-filter ACMRT "$@"
}
if [ "$TRAVIS" = "true" ]
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
git diff --name-only $TRAVIS_COMMIT_RANGE || exit 1
# 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"
else
# The only time it isn't populated is on a new PR branch, where THIS will work.
git diff --name-only $TRAVIS_BRANCH
echo 'Neither $TRAVIS nor $GITHUB_BASE_REF was defined' >&2
exit 1
fi
@@ -0,0 +1 @@
f658456bb32db1d4fe694eee02459f63b7044ab71009730c3828374a35a8f750 *libbacktrace-x86_64-w64-mingw32.tar.gz
+21 -25
View File
@@ -54,31 +54,27 @@ 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
# 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}>&-
sudo apt update
$travis_retry sudo apt-get --yes install wine wine32
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}-"
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}-"
# Need to overwrite CXX to make the Makefile $CROSS logic work right.
export CXX="$COMPILER"
export CCACHE=1
@@ -96,7 +92,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}/../${PLATFORM}
sudo tar -xzf libbacktrace-i686-w64-mingw32.tar.gz --exclude=LICENSE -C ${MXE_DIR}/usr/${MXE_TARGET}
fi
if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
@@ -124,7 +120,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
@@ -0,0 +1,16 @@
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"
+3 -1
View File
@@ -8,7 +8,9 @@ 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/title
${CMAKE_SOURCE_DIR}/data/core
${CMAKE_SOURCE_DIR}/data/help)
if (SOUND)
set(CATACLYSM_DATA_DIRS
+21
View File
@@ -0,0 +1,21 @@
<?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,6 +10,7 @@
"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.
+19 -3
View File
@@ -244,6 +244,22 @@
{
"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.",
@@ -258,7 +274,7 @@
},
{
"type": "help",
"order": 18,
"order": 19,
"name": "<2>: Description of map symbols",
"messages": [
"MAP SYMBOLS:",
@@ -286,7 +302,7 @@
},
{
"type": "help",
"order": 19,
"order": 20,
"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.",
@@ -302,7 +318,7 @@
},
{
"type": "help",
"order": 20,
"order": 21,
"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.",
+43 -1
View File
@@ -343,6 +343,20 @@
}
]
},
{
"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",
@@ -539,6 +553,34 @@
}
]
},
{
"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",
@@ -781,7 +823,7 @@
"id": "achievement_lvl_10_tailor",
"type": "achievement",
"name": "Fashion Designer",
"description": "Male, female, and mutant fashion alike.",
"description": "From catwalk to cataclysm.",
"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.005, "recovery": 0, "drop": "null" }
"shrapnel": { "casing_mass": 0, "fragment_mass": 0.0025, "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": 14 } }
"explosion": { "power": 2.4, "shrapnel": { "casing_mass": 28, "fragment_mass": 7 } }
},
{
"id": "FRAG",
"type": "ammo_effect",
"explosion": { "power": 185, "shrapnel": { "casing_mass": 212, "fragment_mass": 0.05 } }
"explosion": { "power": 185, "shrapnel": { "casing_mass": 212, "fragment_mass": 0.025 } }
},
{
"id": "FRAG_20x66",
"type": "ammo_effect",
"explosion": { "power": 40, "shrapnel": { "casing_mass": 15, "fragment_mass": 0.15 } }
"explosion": { "power": 40, "shrapnel": { "casing_mass": 15, "fragment_mass": 0.08 } }
},
{
"id": "EXPLOSIVE_20x66",
@@ -150,62 +150,62 @@
{
"id": "EXPLOSIVE_m430a1",
"type": "ammo_effect",
"explosion": { "power": 72, "shrapnel": { "casing_mass": 250, "fragment_mass": 0.15 } }
"explosion": { "power": 72, "shrapnel": { "casing_mass": 250, "fragment_mass": 0.08 } }
},
{
"id": "EXPLOSIVE_m433",
"type": "ammo_effect",
"explosion": { "power": 42, "shrapnel": { "casing_mass": 198, "fragment_mass": 0.15 } }
"explosion": { "power": 42, "shrapnel": { "casing_mass": 198, "fragment_mass": 0.08 } }
},
{
"id": "EXPLOSIVE_HOMEMADE",
"type": "ammo_effect",
"explosion": { "power": 400, "shrapnel": { "casing_mass": 680, "fragment_mass": 0.3 } }
"explosion": { "power": 400, "shrapnel": { "casing_mass": 680, "fragment_mass": 0.15 } }
},
{
"id": "EXPLOSIVE_66mmHEAT",
"type": "ammo_effect",
"explosion": { "power": 400, "shrapnel": { "casing_mass": 680, "fragment_mass": 0.3 } }
"explosion": { "power": 400, "shrapnel": { "casing_mass": 680, "fragment_mass": 0.15 } }
},
{
"id": "EXPLOSIVE_OG7V",
"type": "ammo_effect",
"explosion": { "power": 266, "shrapnel": { "casing_mass": 1500, "fragment_mass": 0.15 } }
"explosion": { "power": 266, "shrapnel": { "casing_mass": 1500, "fragment_mass": 0.08 } }
},
{
"id": "EXPLOSIVE_PG7VL",
"type": "ammo_effect",
"explosion": { "power": 598, "shrapnel": { "casing_mass": 1500, "fragment_mass": 0.3 } }
"explosion": { "power": 598, "shrapnel": { "casing_mass": 1500, "fragment_mass": 0.15 } }
},
{
"id": "EXPLOSIVE_PG7VR",
"type": "ammo_effect",
"explosion": { "power": 1995, "shrapnel": { "casing_mass": 2500, "fragment_mass": 0.3 } }
"explosion": { "power": 1995, "shrapnel": { "casing_mass": 2500, "fragment_mass": 0.15 } }
},
{
"id": "EXPLOSIVE_TBG7V",
"type": "ammo_effect",
"explosion": { "power": 66, "shrapnel": { "casing_mass": 2500, "fragment_mass": 0.3 } }
"explosion": { "power": 66, "shrapnel": { "casing_mass": 2500, "fragment_mass": 0.15 } }
},
{
"id": "EXPLOSIVE_84x246HE",
"type": "ammo_effect",
"explosion": { "power": 665, "shrapnel": { "casing_mass": 1500, "fragment_mass": 0.15 } }
"explosion": { "power": 665, "shrapnel": { "casing_mass": 1500, "fragment_mass": 0.08 } }
},
{
"id": "EXPLOSIVE_84x246HEDP",
"type": "ammo_effect",
"explosion": { "power": 798, "shrapnel": { "casing_mass": 1500, "fragment_mass": 0.3 } }
"explosion": { "power": 798, "shrapnel": { "casing_mass": 1500, "fragment_mass": 0.15 } }
},
{
"id": "EXPLOSIVE_ATGMHEAT",
"type": "ammo_effect",
"explosion": { "power": 5985, "shrapnel": { "casing_mass": 18000, "fragment_mass": 1.0 } }
"explosion": { "power": 5985, "shrapnel": { "casing_mass": 18000, "fragment_mass": 0.5 } }
},
{
"id": "EXPLOSIVE_120mmHEAT",
"type": "ammo_effect",
"explosion": { "power": 7980, "shrapnel": { "casing_mass": 8725, "fragment_mass": 1.0 } }
"explosion": { "power": 7980, "shrapnel": { "casing_mass": 8725, "fragment_mass": 0.5 } }
},
{
"id": "MININUKE_MOD",
@@ -85,7 +85,7 @@
"id": "AEA_TELEPORT",
"name": { "str": "Artifact Teleport" },
"description": "Randomly teleports you a short distance.",
"effect": "teleport_random",
"effect": "short_range_teleport",
"shape": "blast",
"valid_targets": [ "self" ],
"flags": [ "NO_HANDS", "SILENT", "NO_LEGS", "UNSAFE_TELEPORT" ],
+258 -119
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", 6 ] ],
"occupied_bodyparts": [ [ "torso", 4 ] ],
"act_cost": "5 J"
},
{
@@ -16,6 +16,7 @@
"flags": [ "BIONIC_TOGGLED", "BIONIC_NPC_USABLE" ],
"act_cost": 10,
"react_cost": 10,
"trigger_cost": "25kJ",
"time": 1
},
{
@@ -27,6 +28,7 @@
"flags": [ "BIONIC_TOGGLED", "BIONIC_SLEEP_FRIENDLY" ],
"act_cost": "1 J",
"react_cost": "1 J",
"trigger_cost": "25 kJ",
"time": 1
},
{
@@ -40,12 +42,14 @@
{
"id": "bio_armor_arms",
"type": "bionic",
"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 ] ],
"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.",
"flags": [ "BIONIC_NPC_USABLE", "BIONIC_SHOCKPROOF" ],
"mutation_conflicts": [
"THICKSKIN",
@@ -116,7 +120,26 @@
"CLAWS_TENTACLES",
"ACIDPROOF",
"TOXICFLESH",
"FRESHWATEROSMOSIS"
"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"
]
},
{
@@ -129,18 +152,22 @@
"bash_protec": [ [ "eyes", 3 ] ],
"cut_protec": [ [ "eyes", 3 ] ],
"bullet_protec": [ [ "eyes", 3 ] ],
"mutation_conflicts": [ "COMPOUND_EYES", "CEPH_VISION", "CEPH_EYES", "EYEBULGE" ],
"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.",
"social_modifiers": { "intimidate": 10 }
},
{
"id": "bio_armor_head",
"type": "bionic",
"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 ] ],
"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.",
"flags": [ "BIONIC_NPC_USABLE", "BIONIC_SHOCKPROOF" ],
"mutation_conflicts": [
"THICKSKIN",
@@ -218,18 +245,48 @@
"MUZZLE_BEAR",
"MUZZLE_RAT",
"MUZZLE_LONG",
"PROBISCIS"
"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"
]
},
{
"id": "bio_armor_legs",
"type": "bionic",
"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 ] ],
"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.",
"flags": [ "BIONIC_NPC_USABLE", "BIONIC_SHOCKPROOF" ],
"mutation_conflicts": [
"THICKSKIN",
@@ -298,19 +355,38 @@
"TAIL_STING",
"TAIL_CLUB",
"LEG_TENTACLES",
"LEG_TENT_BRACE"
"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"
]
},
{
"id": "bio_armor_torso",
"type": "bionic",
"name": { "str": "Alloy Plating - torso" },
"description": "The flesh on your torso has been surgically replaced by alloy plating, protecting it from physical trauma.",
"name": { "str": "Intradermal Alloy - torso" },
"description": "An advanced protective meshwork has been woven into the flesh on your torso, 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",
@@ -375,15 +451,27 @@
"ARACHNID_ARMS_OK",
"CLAWS_TENTACLES",
"SHELL",
"SHELL2"
"SHELL2",
"PATCHSKIN1",
"PATCHSKIN2",
"RABBIT_FUR",
"PAWS_LITTLE",
"BOVINE_BULK",
"BOVINE_BULK2",
"FAT",
"SLIME_SPRAY",
"INSECT_RESEVOIR",
"MUCUS_SECRETION",
"MUCUS_SECRETION2",
"SHELL3"
]
},
{
"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 'E' to drain charge from a battery. Can be toggled on and off at will.",
"occupied_bodyparts": [ [ "torso", 25 ] ],
"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 ] ],
"fuel_options": [ "battery" ],
"fuel_efficiency": 1,
"fuel_capacity": 2000,
@@ -395,20 +483,21 @@
"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", 5 ], [ "hand_r", 2 ] ],
"occupied_bodyparts": [ [ "arm_r", 7 ], [ "hand_r", 1 ] ],
"encumbrance": [ [ "arm_r", 2 ] ],
"act_cost": "50 J",
"fake_item": "bio_blade_weapon",
"flags": [ "BIONIC_TOGGLED", "BIONIC_WEAPON", "BIONIC_NPC_USABLE" ]
"fake_weapon": "bio_blade_weapon",
"flags": [ "BIONIC_TOGGLED", "BIONIC_WEAPON", "BIONIC_NPC_USABLE", "USES_BIONIC_POWER" ]
},
{
"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", 15 ] ],
"occupied_bodyparts": [ [ "arm_l", 12 ] ],
"encumbrance": [ [ "arm_l", 5 ] ],
"act_cost": "50 J",
"fake_item": "bio_shotgun_gun",
"fake_weapon": "bio_shotgun_gun",
"flags": [ "BIONIC_TOGGLED", "BIONIC_WEAPON", "NO_UNWIELD" ]
},
{
@@ -425,15 +514,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", 5 ] ],
"occupied_bodyparts": [ [ "torso", 4 ] ],
"act_cost": "100 J"
},
{
"id": "bio_blood_filter",
"type": "bionic",
"name": { "str": "Blood Filter" },
"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 ] ],
"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 ] ],
"act_cost": "600 J"
},
{
@@ -441,7 +530,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", 10 ] ],
"occupied_bodyparts": [ [ "torso", 7 ] ],
"is_remote_fueled": true,
"time": 1,
"fuel_efficiency": 1,
@@ -453,52 +542,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", 5 ],
[ "torso", 6 ],
[ "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 ]
[ "foot_r", 1 ],
[ "hand_l", 1 ],
[ "hand_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 ]
[ "foot_r", 2 ],
[ "hand_l", 2 ],
[ "hand_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 ]
[ "foot_r", 4 ],
[ "hand_l", 4 ],
[ "hand_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 ]
[ "foot_r", 4 ],
[ "hand_l", 4 ],
[ "hand_r", 4 ]
],
"flags": [ "BIONIC_NPC_USABLE", "BIONIC_SHOCKPROOF" ]
},
@@ -507,9 +596,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 ], [ "arm_r", 4 ] ],
"occupied_bodyparts": [ [ "torso", 16 ], [ "arm_l", 4 ] ],
"act_cost": "100 kJ",
"fake_item": "bio_lightning",
"fake_weapon": "bio_lightning",
"flags": [ "BIONIC_GUN", "BIONIC_NPC_USABLE" ]
},
{
@@ -517,9 +606,10 @@
"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", 5 ], [ "hand_r", 5 ] ],
"occupied_bodyparts": [ [ "hand_l", 4 ], [ "hand_r", 4 ] ],
"encumbrance": [ [ "hand_l", 3 ], [ "hand_r", 3 ] ],
"act_cost": "25 J",
"fake_item": "bio_claws_weapon",
"fake_weapon": "bio_claws_weapon",
"flags": [ "BIONIC_TOGGLED", "BIONIC_WEAPON", "BIONIC_NPC_USABLE" ]
},
{
@@ -551,7 +641,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", 15 ],
[ "torso", 8 ],
[ "head", 2 ],
[ "arm_l", 3 ],
[ "arm_r", 3 ],
@@ -573,7 +663,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", 4 ] ],
"occupied_bodyparts": [ [ "head", 3 ] ],
"act_cost": "20 J",
"react_cost": "20 J",
"time": 1,
@@ -593,7 +683,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": [ [ "torso", 6 ], [ "arm_l", 4 ], [ "arm_r", 4 ], [ "leg_l", 8 ], [ "leg_r", 8 ] ],
"occupied_bodyparts": [ [ "head", 3 ], [ "torso", 6 ], [ "arm_l", 3 ], [ "arm_r", 3 ], [ "leg_l", 7 ], [ "leg_r", 7 ] ],
"stat_bonus": [ [ "DEX", 2 ] ],
"flags": [ "BIONIC_NPC_USABLE" ]
},
@@ -620,7 +710,8 @@
"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" ]
"flags": [ "BIONIC_FAULTY" ],
"trigger_cost": "10 kJ"
},
{
"id": "bio_drain",
@@ -637,34 +728,36 @@
"description": "When this bionic is active, you can block hearing completely.",
"included": true,
"flags": [ "BIONIC_TOGGLED" ],
"active_flags": [ "DEAF" ]
"active_flags": [ "DEAF" ],
"auto_deactivates": [ "bio_ears" ]
},
{
"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", 3 ] ],
"occupied_bodyparts": [ [ "head", 2 ] ],
"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 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 ] ],
"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 ] ],
"act_cost": "50 kJ"
},
{
"type": "bionic",
"id": "bio_emp_armgun",
"name": { "str": "EMP Projector" },
"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 ] ],
"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 ] ],
"act_cost": "50 kJ",
"fake_item": "bio_emp_gun",
"fake_weapon": "bio_emp_gun",
"flags": [ "BIONIC_GUN" ]
},
{
@@ -672,9 +765,9 @@
"type": "bionic",
"name": { "str": "Ethanol Burner" },
"description": "You burn alcohol as fuel in an extremely efficient reaction.",
"occupied_bodyparts": [ [ "torso", 26 ] ],
"occupied_bodyparts": [ [ "torso", 20 ] ],
"fuel_options": [ "alcohol" ],
"fuel_capacity": 500,
"fuel_capacity": 400,
"fuel_efficiency": 0.5,
"exothermic_power_gen": true,
"time": 1,
@@ -706,6 +799,7 @@
"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",
@@ -765,16 +859,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_r", 2 ] ],
"fake_item": "electrohack",
"flags": [ "BIONIC_TOGGLED" ]
"occupied_bodyparts": [ [ "hand_l", 1 ] ],
"toggled_pseudo_items": [ "electrohack" ],
"flags": [ "BIONIC_TOGGLED", "USES_BIONIC_POWER" ]
},
{
"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", 20 ], [ "arm_l", 2 ], [ "arm_r", 2 ], [ "leg_l", 3 ], [ "leg_r", 3 ] ],
"occupied_bodyparts": [ [ "torso", 18 ], [ "arm_l", 2 ], [ "arm_r", 2 ], [ "leg_l", 3 ], [ "leg_r", 3 ] ],
"act_cost": "10 kJ"
},
{
@@ -782,11 +876,12 @@
"type": "bionic",
"name": { "str": "Cranial Flashlight" },
"description": "Surgically mounted between your eyes is a small but powerful LED flashlight.",
"occupied_bodyparts": [ [ "eyes", 1 ] ],
"occupied_bodyparts": [ [ "head", 1 ] ],
"act_cost": "3 J",
"react_cost": "3 J",
"time": 1,
"flags": [ "BIONIC_TOGGLED" ]
"flags": [ "BIONIC_TOGGLED" ],
"enchantments": [ { "condition": "ACTIVE", "values": [ { "value": "LUMINATION", "add": 60 } ] } ]
},
{
"id": "bio_tattoo_led",
@@ -796,14 +891,16 @@
"act_cost": "1 J",
"react_cost": "1 J",
"time": 1,
"flags": [ "BIONIC_TOGGLED" ]
"flags": [ "BIONIC_TOGGLED" ],
"enchantments": [ { "condition": "ACTIVE", "values": [ { "value": "LUMINATION", "add": 5 } ] } ]
},
{
"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" ]
"flags": [ "BIONIC_FAULTY" ],
"trigger_cost": "1 kJ"
},
{
"id": "bio_geiger",
@@ -819,7 +916,8 @@
"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" ]
"flags": [ "BIONIC_TOGGLED" ],
"trigger_cost": "25 kJ"
},
{
"id": "bio_ground_sonar",
@@ -838,7 +936,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", 12 ],
[ "torso", 6 ],
[ "head", 3 ],
[ "arm_l", 3 ],
[ "arm_r", 3 ],
@@ -849,7 +947,8 @@
[ "foot_l", 2 ],
[ "foot_r", 2 ]
],
"flags": [ "BIONIC_TOGGLED", "BIONIC_NPC_USABLE" ]
"flags": [ "BIONIC_TOGGLED", "BIONIC_NPC_USABLE" ],
"trigger_cost": "3 kJ"
},
{
"id": "bio_heatsink",
@@ -879,7 +978,7 @@
"type": "bionic",
"name": { "str": "Hydraulic Muscles" },
"description": "While activated, your muscles will be greatly enhanced, increasing your strength by 20.",
"occupied_bodyparts": [ [ "torso", 4 ], [ "arm_l", 8 ], [ "arm_r", 8 ], [ "leg_l", 14 ], [ "leg_r", 14 ] ],
"occupied_bodyparts": [ [ "torso", 10 ], [ "arm_l", 8 ], [ "arm_r", 8 ], [ "leg_l", 10 ], [ "leg_r", 10 ] ],
"flags": [ "BIONIC_TOGGLED", "BIONIC_NPC_USABLE" ],
"act_cost": "10 kJ",
"react_cost": "10 kJ",
@@ -902,7 +1001,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", 7 ] ],
"occupied_bodyparts": [ [ "head", 6 ] ],
"stat_bonus": [ [ "INT", 2 ] ],
"flags": [ "BIONIC_NPC_USABLE" ]
},
@@ -911,7 +1010,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 ], [ "hand_l", 1 ], [ "hand_r", 1 ] ],
"occupied_bodyparts": [ [ "torso", 3 ], [ "head", 2 ] ],
"flags": [ "BIONIC_FAULTY" ]
},
{
@@ -921,7 +1020,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_item": "bio_laser_gun",
"fake_weapon": "bio_laser_gun",
"flags": [ "BIONIC_GUN", "BIONIC_NPC_USABLE" ]
},
{
@@ -941,32 +1040,43 @@
"flags": [ "BIONIC_TOGGLED", "BIONIC_SLEEP_FRIENDLY", "BIONIC_NPC_USABLE" ],
"act_cost": "5 J",
"react_cost": "5 J",
"time": 1
"time": 1,
"enchantments": [
{
"condition": "ACTIVE",
"values": [
{ "value": "EFFECTIVE_HEALTH_MOD", "add": 100 },
{ "value": "MOD_HEALTH", "add": -50 },
{ "value": "MOD_HEALTH_CAP", "add": -200 }
]
}
]
},
{
"id": "bio_lighter",
"type": "bionic",
"name": { "str": "Finger Lighter" },
"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"
"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"
},
{
"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_r", 2 ] ],
"occupied_bodyparts": [ [ "hand_l", 2 ] ],
"act_cost": "50 J"
},
{
"id": "bio_magnet",
"type": "bionic",
"name": { "str": "Electromagnetic Unit" },
"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"
"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"
},
{
"id": "bio_membrane",
@@ -983,16 +1093,29 @@
"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",
"time": 1
"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 }
]
}
]
},
{
"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", 25 ] ],
"occupied_bodyparts": [ [ "torso", 20 ] ],
"fuel_options": [ "metabolism" ],
"fuel_efficiency": 0.25,
"time": 1,
@@ -1004,14 +1127,15 @@
"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"
"act_cost": "10 J",
"flags": [ "THERMOMETER" ]
},
{
"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", 10 ] ],
"occupied_bodyparts": [ [ "torso", 12 ] ],
"flags": [ "BIONIC_TOGGLED", "BIONIC_NPC_USABLE" ],
"act_cost": "80 J",
"react_cost": "40 J",
@@ -1073,6 +1197,7 @@
"flags": [ "BIONIC_TOGGLED", "BIONIC_NPC_USABLE" ],
"act_cost": "10 kJ",
"react_cost": "10 kJ",
"trigger_cost": "1 kJ",
"time": 1
},
{
@@ -1081,7 +1206,8 @@
"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" ]
"flags": [ "BIONIC_TOGGLED", "BIONIC_NPC_USABLE" ],
"trigger_cost": "2 kJ"
},
{
"id": "bio_pokedeye",
@@ -1117,6 +1243,7 @@
"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" ]
},
@@ -1125,6 +1252,7 @@
"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" ]
},
@@ -1145,15 +1273,16 @@
"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", 4 ], [ "mouth", 2 ] ],
"env_protec": [ [ "mouth", 7 ] ],
"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 ] ],
"flags": [ "BIONIC_NPC_USABLE" ]
},
{
@@ -1181,8 +1310,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", 2 ], [ "hand_r", 2 ] ],
"fake_item": "fake_razor",
"occupied_bodyparts": [ [ "hand_l", 1 ], [ "hand_r", 1 ] ],
"passive_pseudo_items": [ "fake_razor" ],
"flags": [ "BIONIC_NPC_USABLE" ]
},
{
@@ -1239,7 +1368,8 @@
"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" ]
"flags": [ "BIONIC_FAULTY" ],
"trigger_cost": "25 kJ"
},
{
"id": "bio_synaptic_regen",
@@ -1259,7 +1389,8 @@
"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" ]
"flags": [ "BIONIC_TOGGLED", "BIONIC_NPC_USABLE" ],
"trigger_cost": "2 kJ"
},
{
"id": "bio_shockwave",
@@ -1291,7 +1422,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", 12 ],
[ "torso", 8 ],
[ "arm_l", 3 ],
[ "arm_r", 3 ],
[ "hand_l", 1 ],
@@ -1301,6 +1432,7 @@
[ "foot_l", 2 ],
[ "foot_r", 2 ]
],
"enchantments": [ { "condition": "ALWAYS", "values": [ { "value": "SPEED", "multiply": 0.1 } ] } ],
"flags": [ "BIONIC_NPC_USABLE" ]
},
{
@@ -1333,9 +1465,9 @@
"id": "bio_surgical_razor",
"type": "bionic",
"name": { "str": "Autonomous Surgical Scalpels" },
"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",
"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",
"flags": [ "BIONIC_TOGGLED", "BIONIC_WEAPON" ]
},
{
@@ -1346,7 +1478,7 @@
"occupied_bodyparts": [ [ "eyes", 1 ] ],
"included_bionics": [ "bio_blindfold" ],
"flags": [ "BIONIC_NPC_USABLE", "GLARE_RESIST" ],
"fake_item": "fake_goggles"
"passive_pseudo_items": [ "fake_goggles" ]
},
{
"id": "bio_targeting",
@@ -1354,7 +1486,8 @@
"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" ]
"flags": [ "BIONIC_NPC_USABLE" ],
"enchantments": [ { "condition": "ALWAYS", "values": [ { "value": "WEAPON_DISPERSION", "multiply": -0.25 } ] } ]
},
{
"id": "bio_teleport",
@@ -1396,20 +1529,20 @@
"id": "bio_tools",
"type": "bionic",
"name": { "str": "Integrated 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",
"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" ],
"included_bionics": [ "bio_tools_extend" ],
"flags": [ "BIONIC_TOGGLED", "BIONIC_NPC_USABLE" ]
"flags": [ "BIONIC_TOGGLED", "BIONIC_NPC_USABLE", "USES_BIONIC_POWER" ]
},
{
"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_item": "toolset_extended",
"fake_weapon": "toolset_extended",
"included": true,
"flags": [ "BIONIC_TOGGLED", "BIONIC_WEAPON" ]
"flags": [ "BIONIC_TOGGLED", "BIONIC_WEAPON", "USES_BIONIC_POWER" ]
},
{
"id": "bio_torsionratchet",
@@ -1426,10 +1559,15 @@
"id": "bio_jointservo",
"type": "bionic",
"name": { "str": "Joint Servo" },
"description": "Your leg joints have been equipped with servomotors that provide power-assisted movement. They are optimized for running, but walking also requires less effort when this bionic is online. However, when it's offline it will hamper your movement, as you struggle against its moving parts.",
"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.",
"occupied_bodyparts": [ [ "leg_l", 12 ], [ "leg_r", 12 ] ],
"flags": [ "BIONIC_TOGGLED" ],
"mutation_conflicts": [ "LEG_TENTACLES", "LEG_TENT_BRACE" ]
"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"
},
{
"id": "bio_trip",
@@ -1448,6 +1586,7 @@
"flags": [ "BIONIC_TOGGLED" ],
"act_cost": "6 J",
"react_cost": "6 J",
"trigger_cost": "75 kJ",
"time": 1
},
{
@@ -1481,7 +1620,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_r", 1 ], [ "hand_r", 2 ] ],
"occupied_bodyparts": [ [ "arm_l", 3 ], [ "hand_l", 1 ] ],
"act_cost": "20 kJ"
},
{
@@ -1504,7 +1643,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 ] ],
"fake_item": "syringe"
"passive_pseudo_items": [ "syringe" ]
},
{
"id": "bio_weight",
+75
View File
@@ -11,6 +11,8 @@
"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,
@@ -38,6 +40,8 @@
"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,
@@ -67,6 +71,8 @@
"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,
@@ -91,6 +97,10 @@
"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,
@@ -121,6 +131,12 @@
"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,
@@ -150,6 +166,12 @@
"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,
@@ -177,6 +199,10 @@
"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,
@@ -204,6 +230,10 @@
"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,
@@ -233,6 +263,11 @@
"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,
@@ -263,6 +298,11 @@
"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,
@@ -291,6 +331,11 @@
"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,
@@ -318,6 +363,11 @@
"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,
@@ -329,5 +379,30 @@
"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
}
]
+54 -31
View File
@@ -44,7 +44,7 @@
"category": "DIG",
"required_skills": [ [ "survival", 1 ] ],
"time": "5 m",
"components": [ [ [ "spear_wood", 4 ], [ "pointy_stick", 4 ] ] ],
"components": [ [ [ "spear_wood", 4 ], [ "pointy_stick", 4 ], [ "pointy_stick_long", 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": 2 } ] ],
"qualities": [ [ { "id": "SAW_M", "level": 1 } ], [ { "id": "GLARE", "level": 1 } ] ],
"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": 2 } ],
"qualities": [ { "id": "GLARE", "level": 1 } ],
"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": 2 } ],
"qualities": [ { "id": "GLARE", "level": 1 } ],
"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",
"qualities": [ [ { "id": "WELD", "level": 2 } ], [ { "id": "GLARE", "level": 2 } ] ],
"using": [ [ "welding_standard", 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",
"qualities": [ [ { "id": "WELD", "level": 2 } ], [ { "id": "GLARE", "level": 2 } ] ],
"using": [ [ "welding_standard", 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": 2 } ],
"qualities": [ { "id": "GLARE", "level": 1 } ],
"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",
"qualities": [ [ { "id": "WELD", "level": 2 } ], [ { "id": "GLARE", "level": 2 } ] ],
"using": [ [ "welding_standard", 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",
"qualities": [ [ { "id": "WELD", "level": 2 } ], [ { "id": "GLARE", "level": 2 } ] ],
"using": [ [ "welding_standard", 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 ] ] ],
"components": [ [ [ "pointy_stick", 2 ], [ "spear_wood", 2 ], [ "pointy_stick_long", 2 ] ] ],
"pre_flags": "DIGGABLE",
"post_terrain": "t_fence_post"
},
@@ -1483,7 +1483,12 @@
"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 ] ], [ [ "2x4", 5 ] ], [ [ "nail", 12 ] ], [ [ "hinge", 2 ] ] ],
"components": [
[ [ "pointy_stick", 2 ], [ "spear_wood", 2 ], [ "pointy_stick_long", 2 ] ],
[ [ "2x4", 5 ] ],
[ [ "nail", 12 ] ],
[ [ "hinge", 2 ] ]
],
"pre_flags": "DIGGABLE",
"post_terrain": "t_fencegate_c"
},
@@ -1529,7 +1534,7 @@
"required_skills": [ [ "fabrication", 3 ] ],
"time": "30 m",
"qualities": [ [ { "id": "HAMMER", "level": 2 } ] ],
"components": [ [ [ "pipe", 6 ] ], [ [ "scrap", 8 ] ] ],
"components": [ [ [ "pipe", 6 ] ], [ [ "pipe_fittings", 3 ] ], [ [ "scrap", 8 ] ] ],
"pre_flags": "DIGGABLE",
"post_terrain": "t_chainfence_posts"
},
@@ -2110,12 +2115,8 @@
"category": "FURN",
"required_skills": [ [ "fabrication", 2 ], [ "cooking", 1 ] ],
"time": "180 m",
"qualities": [
[ { "id": "HAMMER", "level": 2 } ],
[ { "id": "SAW_M", "level": 1 } ],
[ { "id": "WELD", "level": 2 } ],
[ { "id": "GLARE", "level": 2 } ]
],
"qualities": [ [ { "id": "HAMMER", "level": 2 } ], [ { "id": "SAW_M", "level": 1 } ] ],
"using": [ [ "welding_standard", 2 ] ],
"components": [ [ [ "metal_tank", 4 ] ], [ [ "water_faucet", 1 ] ] ],
"pre_special": "check_empty",
"post_terrain": "f_standing_tank"
@@ -2239,6 +2240,18 @@
"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",
@@ -3427,7 +3440,7 @@
"time": "15 m",
"pre_special": "check_empty",
"components": [
[ [ "pillow", 19 ], [ "down_pillow", 19 ], [ "mattress", 4 ] ],
[ [ "pillow", 19 ], [ "down_pillow", 19 ], [ "makeshift_pillow", 19 ], [ "mattress", 4 ] ],
[ [ "down_blanket", 3 ], [ "blanket", 3 ], [ "fur_blanket", 3 ] ]
],
"pre_terrain": "t_floor",
@@ -3442,7 +3455,7 @@
"time": "15 m",
"pre_special": "check_empty",
"components": [
[ [ "pillow", 4 ], [ "down_pillow", 4 ] ],
[ [ "pillow", 4 ], [ "down_pillow", 4 ], [ "makeshift_pillow", 4 ] ],
[ [ "down_blanket", 2 ], [ "blanket", 2 ], [ "fur_blanket", 2 ] ],
[ [ "box_large", 1 ] ],
[ [ "plastic_sheet", 1 ] ],
@@ -3523,7 +3536,12 @@
"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 ] ], [ [ "2x4", 5 ] ], [ [ "nail", 12 ] ], [ [ "hinge", 2 ] ] ],
"components": [
[ [ "pointy_stick", 2 ], [ "spear_wood", 2 ], [ "pointy_stick_long", 2 ] ],
[ [ "2x4", 5 ] ],
[ [ "nail", 12 ] ],
[ [ "hinge", 2 ] ]
],
"pre_flags": "DIGGABLE",
"post_terrain": "t_splitrail_fencegate_c"
},
@@ -3535,7 +3553,12 @@
"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 ] ], [ [ "2x4", 8 ] ], [ [ "nail", 20 ] ], [ [ "hinge", 2 ] ] ],
"components": [
[ [ "pointy_stick", 2 ], [ "spear_wood", 2 ], [ "pointy_stick_long", 2 ] ],
[ [ "2x4", 8 ] ],
[ [ "nail", 20 ] ],
[ [ "hinge", 2 ] ]
],
"pre_flags": "DIGGABLE",
"post_terrain": "t_privacy_fencegate_c"
},
@@ -3548,7 +3571,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 ] ], [ [ "2x4", 4 ] ], [ [ "nail", 20 ] ] ],
"components": [ [ [ "pointy_stick", 2 ], [ "spear_wood", 2 ], [ "pointy_stick_long", 2 ] ], [ [ "2x4", 4 ] ], [ [ "nail", 20 ] ] ],
"pre_flags": "DIGGABLE",
"post_terrain": "t_splitrail_fence"
},
@@ -3574,7 +3597,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 ] ], [ [ "2x4", 8 ] ], [ [ "nail", 20 ] ] ],
"components": [ [ [ "pointy_stick", 2 ], [ "spear_wood", 2 ], [ "pointy_stick_long", 2 ] ], [ [ "2x4", 8 ] ], [ [ "nail", 20 ] ] ],
"pre_flags": "DIGGABLE",
"post_terrain": "t_privacy_fence"
},
@@ -3754,10 +3777,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 ] ],
@@ -3893,7 +3916,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": 2 } ] ],
"qualities": [ [ { "id": "SAW_M", "level": 1 } ], [ { "id": "GLARE", "level": 1 } ] ],
"components": [ [ [ "pipe", 12 ] ], [ [ "sheet_metal", 4 ] ] ],
"pre_terrain": "t_window_reinforced",
"post_terrain": "t_metal_grate_window"
@@ -3907,7 +3930,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": 2 } ] ],
"qualities": [ [ { "id": "SAW_M", "level": 1 } ], [ { "id": "GLARE", "level": 1 } ] ],
"components": [ [ [ "pipe", 12 ] ], [ [ "sheet_metal", 4 ] ] ],
"pre_terrain": "t_window_reinforced_noglass",
"post_terrain": "t_metal_grate_window"
@@ -3921,7 +3944,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": 2 } ] ],
"qualities": [ [ { "id": "SAW_M", "level": 1 } ], [ { "id": "GLARE", "level": 1 } ] ],
"components": [ [ [ "nail", 4 ] ], [ [ "sheet", 2 ] ], [ [ "stick", 1 ] ], [ [ "string_36", 1 ] ] ],
"pre_terrain": "t_metal_grate_window",
"post_terrain": "t_metal_grate_window_with_curtain"
@@ -3935,7 +3958,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": 2 } ] ],
"qualities": [ [ { "id": "SAW_M", "level": 1 } ], [ { "id": "GLARE", "level": 1 } ] ],
"components": [ [ [ "nail", 4 ] ], [ [ "sheet", 2 ] ], [ [ "stick", 1 ] ], [ [ "string_36", 1 ] ] ],
"pre_terrain": "t_metal_grate_window",
"post_terrain": "t_metal_grate_window_with_curtain"
@@ -4364,7 +4387,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": 2 } ] ],
"qualities": [ [ { "id": "SAW_M", "level": 1 } ], [ { "id": "GLARE", "level": 1 } ] ],
"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",
@@ -4378,7 +4401,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": 2 } ] ],
"qualities": [ [ { "id": "SAW_M", "level": 2 } ], [ { "id": "GLARE", "level": 1 } ] ],
"components": [
[ [ "steel_lump", 8 ], [ "steel_chunk", 24 ], [ "scrap", 72 ] ],
[ [ "sheet_metal", 16 ] ],
+95
View File
@@ -249,6 +249,11 @@
"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",
@@ -1163,5 +1168,95 @@
"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
@@ -0,0 +1,820 @@
[
{
"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,12 +14,36 @@
"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." ],
@@ -162,6 +186,33 @@
"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": [
@@ -326,6 +377,15 @@
"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": [
@@ -353,6 +413,24 @@
"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": [
@@ -530,6 +608,12 @@
"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": [
@@ -671,6 +755,24 @@
"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." ],
+333 -12
View File
@@ -1,19 +1,51 @@
[
{
"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 },
{ "u_is_height": 0 }
{ "compare_int": [ { "u_val": "pos_z" }, { "const": 0 } ], "op": ">=" }
]
},
"deactivate_condition": { "not": { "or": [ { "is_weather": "thunder" }, { "is_weather": "lightning" } ] } },
"effect": [
{ "message": "You hear a distant rumble of thunder.", "sound": true },
{ "u_message": "You hear a distant rumble of thunder.", "sound": true },
{ "sound_effect": "thunder_far", "outdoor_event": true, "id": "environment" }
]
},
@@ -22,12 +54,20 @@
"id": "lightning",
"recurrence_min": 1,
"recurrence_max": 1,
"condition": { "and": [ { "is_weather": "lightning" }, { "one_in_chance": 600 }, { "u_is_height": 0 } ] },
"global": true,
"condition": {
"and": [
{ "is_weather": "lightning" },
{ "one_in_chance": 600 },
{ "compare_int": [ { "u_val": "pos_z" }, { "const": 0 } ], "op": ">=" }
]
},
"deactivate_condition": { "not": { "is_weather": "lightning" } },
"effect": [
{ "message": "A flash of lightning illuminates your surroundings!" },
{ "u_message": "A flash of lightning illuminates your surroundings!" },
{ "sound_effect": "thunder_near", "id": "environment" },
"lightning"
"lightning",
{ "custom_light_level": 100, "length_min": "1 seconds", "length_max": "1 seconds" }
]
},
{
@@ -35,33 +75,48 @@
"id": "acid_drizzle",
"recurrence_min": 1,
"recurrence_max": 1,
"condition": { "and": [ { "is_weather": "acid_drizzle" }, "u_is_outside", { "not": { "u_has_pain": 30 } } ] },
"global": true,
"run_for_npcs": true,
"condition": {
"and": [
{ "is_weather": "acid_drizzle" },
"u_is_outside",
{ "compare_int": [ { "u_val": "pain" }, { "const": 30 } ], "op": "<" }
]
},
"deactivate_condition": { "not": { "is_weather": "acid_drizzle" } },
"effect": [ { "message": "The acid rain stings, but is mostly harmless for now…" }, { "u_mod_pain": 1 } ]
"effect": [
{ "u_message": "The acid rain stings, but is mostly harmless for now…" },
{ "arithmetic": [ { "u_val": "pain" }, "++" ] }
]
},
{
"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",
{ "not": { "u_has_pain": 100 } },
{ "compare_int": [ { "u_val": "pain" }, { "const": 100 } ], "op": "<" },
{
"not": { "or": [ { "u_has_wielded_with_flag": "RAIN_PROTECT" }, { "u_has_worn_with_flag": "RAINPROOF" } ] }
}
]
},
"deactivate_condition": { "not": { "is_weather": "acid_rain" } },
"effect": [ { "message": "The acid rain burns!" }, { "u_mod_pain": 3 } ]
"effect": [ { "u_message": "The acid rain burns!" }, { "arithmetic": [ { "u_val": "pain" }, "+=", { "const": 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 } ]
@@ -71,6 +126,8 @@
"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 } ]
@@ -80,12 +137,276 @@
"id": "bio_drain",
"recurrence_min": "30 minutes",
"recurrence_max": "1 hours 30 minutes",
"condition": { "and": [ { "u_has_bionics": "bio_drain" }, { "u_has_power": "24 kJ" } ] },
"condition": {
"and": [ { "u_has_bionics": "bio_drain" }, { "compare_int": [ { "u_val": "power" }, { "power": "25 kJ" } ], "op": ">=" } ]
},
"deactivate_condition": { "not": { "u_has_bionics": "bio_drain" } },
"effect": [
{ "message": "Your batteries discharge slightly.", "type": "bad" },
{ "u_message": "Your batteries discharge slightly.", "type": "bad" },
{ "sound_effect": "elec_crackle_low", "id": "bionics", "volume": 100 },
{ "u_add_power": "-25kJ" }
{ "arithmetic": [ { "u_val": "power" }, "-=", { "power": "25 kJ" } ] }
]
},
{
"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 } ]
}
]
+124 -68
View File
@@ -213,6 +213,18 @@
"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",
@@ -238,12 +250,29 @@
"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",
@@ -277,6 +306,7 @@
"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
},
{
@@ -391,6 +421,7 @@
"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"
},
{
@@ -494,6 +525,31 @@
"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",
@@ -563,6 +619,26 @@
"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",
@@ -571,7 +647,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" ],
"resist_traits": [ "POISRESIST", "VOMITSTOMACH" ],
"base_mods": {
"per_mod": [ -1 ],
"dex_mod": [ -1 ],
@@ -623,14 +699,14 @@
{
"type": "effect_type",
"id": "nausea",
"name": [ "Nausea" ],
"desc": [ "You feel nauseated. Even a thought of food makes you feel sick." ],
"remove_message": "You no longer feel nauseated.",
"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.",
"rating": "bad",
"int_dur_factor": "5 m",
"max_intensity": 3,
"int_dur_factor": "3 m",
"max_intensity": 5,
"max_duration": "15 m",
"base_mods": { "vomit_chance": [ 60 ] }
"base_mods": { "vomit_chance": [ 500 ] }
},
{
"type": "effect_type",
@@ -870,9 +946,11 @@
"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_in_info": true,
"show_intensity": false
},
{
"type": "effect_type",
@@ -913,7 +991,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 bite wound feels infected.",
"apply_message": "Your wound feels infected.",
"resist_traits": [ "INFRESIST" ],
"main_parts_only": true,
"rating": "bad",
@@ -1041,8 +1119,8 @@
"apply_memorial_log": "Contracted a fungal infection.",
"remove_memorial_log": "Cured the fungal infection.",
"miss_messages": [ [ "You feel sick inside.", 1 ] ],
"speed_name": "Fungal infection",
"remove_message": "Tingling sensation in your skin fades away.",
"speed_name": "Itchy skin",
"remove_message": "The itching in your skin fades away.",
"rating": "bad",
"max_intensity": 3,
"int_dur_factor": "6 h",
@@ -1115,7 +1193,9 @@
"name": [ "Shakes" ],
"desc": [ "Your hands just won't stop shaking." ],
"miss_messages": [ [ "You tremble", 4 ] ],
"base_mods": { "str_mod": [ -1 ], "dex_mod": [ -4 ] }
"base_mods": { "str_mod": [ -1 ], "dex_mod": [ -4 ] },
"max_duration": 7200,
"dur_add_perc": 30
},
{
"type": "effect_type",
@@ -1748,6 +1828,7 @@
"type": "effect_type",
"id": "tapeworm",
"rating": "bad",
"resist_traits": [ "VOMITSTOMACH" ],
"base_mods": { "hunger_chance": [ 50 ], "hunger_min": [ 1 ] },
"blood_analysis_description": "Intestinal Parasite"
},
@@ -1860,6 +1941,11 @@
"type": "effect_type",
"id": "slept_through_alarm"
},
{
"type": "effect_type",
"id": "robofac_surveillance",
"max_duration": "14 days"
},
{
"type": "effect_type",
"name": [ "Playing an instrument" ],
@@ -1902,21 +1988,6 @@
"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",
@@ -1992,36 +2063,6 @@
},
"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",
@@ -2034,6 +2075,27 @@
[ "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"
},
@@ -2347,17 +2409,11 @@
"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": "/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 ]
},
"//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 ] },
"int_decay_step": 0
},
{
+23
View File
@@ -192,6 +192,13 @@
"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",
@@ -368,5 +375,21 @@
"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
@@ -0,0 +1,24 @@
[
{
"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" }
]
}
]
+75 -2
View File
@@ -94,7 +94,7 @@
],
"description_affix": "covered_in",
"immunity_data": { "traits": [ "WEB_WALKER" ] },
"immune_mtypes": [ "mon_spider_web", "mon_spider_web_s" ],
"immune_mtypes": [ "mon_spider_web", "mon_spider_web_s", "mon_mutant_arthropod" ],
"decrease_intensity_on_contact": true,
"priority": 2,
"phase": "solid",
@@ -241,6 +241,7 @@
"half_life": "30 minutes",
"phase": "liquid",
"display_field": true,
"immunity_data": { "traits": [ "GASTROPOD_FOOT" ] },
"looks_like": "fd_sap"
},
{
@@ -369,6 +370,22 @@
"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",
@@ -523,6 +540,62 @@
"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",
@@ -703,7 +776,7 @@
],
"description_affix": "under",
"priority": 8,
"display_items": false,
"display_items": true,
"display_field": true,
"looks_like": "fd_smoke"
},
+354 -566
View File
File diff suppressed because it is too large Load Diff
+2 -4
View File
@@ -1,12 +1,10 @@
[
{
"type": "json_flag",
"id": "SONAR_DETECTABLE",
"context": [ ]
"id": "SONAR_DETECTABLE"
},
{
"type": "json_flag",
"id": "CONVECTS_TEMPERATURE",
"context": [ ]
"id": "CONVECTS_TEMPERATURE"
}
]
@@ -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, 10 ] }
{ "item": "scrap_copper", "count": [ 2, 12 ] }
]
}
},
@@ -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": [ 5, 20 ] },
{ "item": "scrap_copper", "count": [ 6, 25 ] },
{ "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, 10 ] },
{ "item": "scrap_copper", "count": [ 2, 12 ] },
{ "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": 20,
"light_emitted": 90,
"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, 10 ] },
{ "item": "scrap_copper", "count": [ 2, 12 ] },
{ "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, 10 ] },
{ "item": "scrap_copper", "count": [ 5, 12 ] },
{ "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": [ 50, 100 ] },
{ "item": "scrap_copper", "count": [ 62, 124 ] },
{ "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": [ 20, 40 ] },
{ "item": "scrap_copper", "count": [ 25, 62 ] },
{ "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": [ 20, 40 ] },
{ "item": "scrap_copper", "count": [ 25, 50 ] },
{ "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": [ 20, 40 ] },
{ "item": "scrap_copper", "count": [ 25, 50 ] },
{ "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": [ 10, 30 ] },
{ "item": "scrap_copper", "count": [ 12, 37 ] },
{ "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": [ 10, 30 ] },
{ "item": "scrap_copper", "count": [ 12, 37 ] },
{ "item": "e_scrap", "count": [ 15, 30 ] },
{ "item": "circuit", "count": [ 2, 5 ] },
{ "item": "power_supply", "count": [ 2, 8 ] },
@@ -621,5 +621,18 @@
{ "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,22 +316,9 @@
"move_cost_mod": -1,
"coverage": 60,
"required_str": 12,
"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 ] }
]
},
"max_volume": "125 L",
"flags": [ "CONTAINER", "PLACE_ITEM", "BLOCKSDOOR", "FLAT_SURF", "MINEABLE", "EASY_DECONSTRUCT" ],
"deconstruct": { "items": [ { "item": "household_washing_machine", "count": 1 } ] },
"bash": {
"str_min": 18,
"str_max": 50,
@@ -355,7 +342,7 @@
"id": "f_oven",
"name": "oven",
"symbol": "#",
"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.",
"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.",
"color": "dark_gray",
"move_cost_mod": 2,
"coverage": 60,
@@ -594,7 +581,7 @@
"color": "yellow",
"move_cost_mod": 2,
"required_str": -1,
"flags": [ "TRANSPARENT", "BASHABLE" ],
"flags": [ "TRANSPARENT" ],
"deconstruct": {
"items": [
{ "item": "scrap", "count": [ 4, 6 ] },
@@ -10,6 +10,7 @@
"coverage": 80,
"required_str": 5,
"flags": [ "NOITEM", "BLOCKSDOOR" ],
"examine_action": "change_appearance",
"bash": {
"str_min": 5,
"str_max": 16,
@@ -125,7 +126,8 @@
"move_cost_mod": 2,
"coverage": 40,
"required_str": 5,
"flags": [ "PLACE_ITEM", "TRANSPARENT", "FLAMMABLE" ],
"flags": [ "PLACE_ITEM", "TRANSPARENT", "FLAMMABLE", "EASY_DECONSTRUCT" ],
"deconstruct": { "items": [ { "item": "mannequin", "count": 1 } ] },
"bash": {
"str_min": 6,
"str_max": 40,
@@ -183,7 +185,7 @@
"color": "white",
"move_cost_mod": -2,
"required_str": 10,
"flags": [ "TRANSPARENT", "BLOCKSDOOR", "BASHABLE", "PLACE_ITEM" ],
"flags": [ "TRANSPARENT", "BLOCKSDOOR", "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": "aggie_plant",
"examine_action": "harvest_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", "GROWTH_SEED" ],
"flags": [ "PLANT", "SEALED", "TRANSPARENT", "CONTAINER", "NOITEM", "TINY", "DONT_REMOVE_ROTTEN" ],
"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": "aggie_plant",
"examine_action": "harvest_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", "GROWTH_SEED" ],
"flags": [ "PLANT", "SEALED", "TRANSPARENT", "CONTAINER", "NOITEM", "TINY", "DONT_REMOVE_ROTTEN" ],
"examine_action": "aggie_plant",
"deconstruct": {
"items": [
@@ -28,5 +28,110 @@
"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,6 +66,32 @@
]
}
},
{
"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", "FLAMMABLE_ASH", "FUNGUS", "TINY", "NOCOLLIDE" ],
"flags": [ "TRANSPARENT", "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", "FLAMMABLE_ASH", "NOCOLLIDE" ],
"flags": [ "TRANSPARENT", "FLOWER", "FUNGUS", "TINY", "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", "FLAMMABLE_ASH", "FUNGUS", "MOUNTABLE", "SHORT" ],
"flags": [ "CONTAINER", "SEALED", "ALLOW_FIELD_EFFECT", "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", "FLAMMABLE_ASH", "FUNGUS", "MOUNTABLE", "SHORT" ],
"flags": [ "TRANSPARENT", "CONTAINER", "SEALED", "ALLOW_FIELD_EFFECT", "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": [ "FLAMMABLE_ASH", "FUNGUS" ],
"flags": [ "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", "BLOCKS_DOOR" ],
"flags": [ "TRANSPARENT", "NOITEM", "REDUCE_SCENT", "MOUNTABLE", "PERMEABLE", "BLOCKSDOOR" ],
"bash": {
"str_min": 20,
"str_max": 150,
@@ -210,7 +210,7 @@
"move_cost_mod": 10,
"coverage": 65,
"required_str": -1,
"flags": [ "TRANSPARENT", "BASHABLE", "CONTAINER", "FLAMMABLE", "PLACE_ITEM" ],
"flags": [ "TRANSPARENT", "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": [ "BASHABLE", "CONTAINER", "SEALED", "PLACE_ITEM" ],
"flags": [ "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", "BASHABLE", "CONTAINER", "FLAMMABLE", "PLACE_ITEM" ],
"flags": [ "TRANSPARENT", "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", "BASHABLE", "CONTAINER", "SEALED", "FLAMMABLE", "PLACE_ITEM" ],
"flags": [ "TRANSPARENT", "CONTAINER", "SEALED", "FLAMMABLE", "PLACE_ITEM" ],
"deconstruct": {
"items": [
{ "item": "wire", "count": [ 1, 3 ] },
@@ -457,10 +457,41 @@
"str_max": 100,
"sound": "shred!",
"sound_fail": "thud!",
"items": [ { "item": "scrap_copper", "count": [ 1, 4 ] }, { "item": "cable", "charges": [ 1, 4 ] } ]
"items": [ { "item": "scrap_copper", "count": [ 1, 5 ] }, { "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",
@@ -502,7 +533,7 @@
"move_cost_mod": 8,
"coverage": 55,
"required_str": -1,
"flags": [ "TRANSPARENT", "BASHABLE", "FLAMMABLE", "PLACE_ITEM" ],
"flags": [ "TRANSPARENT", "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": "plastic_chunk", "count": [ 50, 75 ] },
{ "item": "epoxy_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": "plastic_chunk", "count": [ 30, 50 ] },
{ "item": "epoxy_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": [ "BLOCKS_DOOR" ],
"looks_like": "f_standing_tank",
"flags": [ "BLOCKSDOOR" ],
"looks_like": "f_ventilator",
"deconstruct": {
"items": [
{ "item": "glass_tube_small", "count": [ 6, 12 ] },
@@ -781,7 +781,7 @@
"move_cost_mod": -1,
"coverage": 50,
"required_str": 5,
"flags": [ "BLOCKS_DOOR" ],
"flags": [ "BLOCKSDOOR" ],
"looks_like": "f_standing_tank",
"deconstruct": {
"items": [
@@ -825,7 +825,7 @@
"move_cost_mod": -1,
"coverage": 35,
"required_str": 4,
"flags": [ "BLOCKS_DOOR" ],
"flags": [ "BLOCKSDOOR" ],
"looks_like": "f_standing_tank",
"deconstruct": {
"items": [
@@ -82,7 +82,7 @@
"type": "furniture",
"id": "f_toilet",
"name": "toilet",
"symbol": "&",
"symbol": "o",
"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,25 +109,10 @@
"move_cost_mod": -1,
"coverage": 55,
"required_str": -1,
"flags": [ "CONTAINER", "PLACE_ITEM", "LIQUIDCONT", "NOITEM", "SEALED" ],
"flags": [ "CONTAINER", "PLACE_ITEM", "LIQUIDCONT", "NOITEM", "SEALED", "EASY_DECONSTRUCT" ],
"examine_action": "keg",
"keg_capacity": 240,
"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 }
]
},
"deconstruct": { "items": [ { "item": "household_water_heater", "count": 1 } ] },
"bash": {
"str_min": 18,
"str_max": 50,
@@ -150,7 +135,7 @@
"id": "f_water_purifier",
"looks_like": "f_water_heater",
"name": "water purifier",
"description": "This devices effectively sterilizes water, though without a lot of power and proper plumbing, it's only good for parts now.",
"description": "This device effectively sterilizes water, though without power source, like UPS, it's only good for parts.",
"symbol": "W",
"bgcolor": "blue",
"move_cost_mod": -1,
@@ -10,6 +10,7 @@
"coverage": 35,
"required_str": 8,
"flags": [ "TRANSPARENT", "MINEABLE", "WORKOUT_ARMS" ],
"crafting_pseudo_item": "pseudo_exercise_machine",
"examine_action": "workout",
"deconstruct": {
"items": [
@@ -263,6 +264,7 @@
"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 ] },
@@ -341,6 +343,7 @@
"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 ] },
@@ -375,7 +378,8 @@
"move_cost_mod": -1,
"coverage": 65,
"required_str": 10,
"flags": [ "BASHABLE", "BLOCKSDOOR", "PLACE_ITEM", "ORGANIC", "WORKOUT_ARMS" ],
"flags": [ "BLOCKSDOOR", "PLACE_ITEM", "ORGANIC", "WORKOUT_ARMS" ],
"crafting_pseudo_item": "pseudo_punching_bag",
"examine_action": "workout",
"bash": {
"str_min": 15,
@@ -8,7 +8,7 @@
"color": "white",
"move_cost_mod": -2,
"required_str": 10,
"flags": [ "TRANSPARENT", "PLACE_ITEM", "BASHABLE", "DECONSTRUCT" ],
"flags": [ "TRANSPARENT", "PLACE_ITEM" ],
"bash": {
"str_min": 6,
"str_max": 10,
@@ -43,7 +43,7 @@
"color": "light_gray",
"move_cost_mod": -2,
"required_str": 10,
"flags": [ "TRANSPARENT", "BASHABLE", "NOITEM" ],
"flags": [ "TRANSPARENT", "NOITEM" ],
"bash": {
"items": [
{ "item": "scrap", "count": [ 4, 6 ] },
@@ -64,7 +64,7 @@
"move_cost_mod": 2,
"coverage": 35,
"required_str": -1,
"flags": [ "BASHABLE", "MINEABLE" ],
"flags": [ "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", "BASHABLE" ],
"flags": [ "TRANSPARENT" ],
"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", "BASHABLE" ],
"flags": [ "TRANSPARENT" ],
"deconstruct": { "items": [ { "item": "pipe", "count": 2 }, { "item": "steel_chunk", "count": 2 } ] },
"bash": {
"str_min": 10,
@@ -119,6 +119,33 @@
"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",
@@ -129,7 +156,7 @@
"move_cost_mod": 2,
"coverage": 40,
"required_str": -1,
"flags": [ "TRANSPARENT", "BASHABLE" ],
"flags": [ "TRANSPARENT" ],
"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": "brown",
"bgcolor": "yellow",
"move_cost_mod": 3,
"comfort": 2,
"floor_bedding_warmth": 100,
@@ -24,7 +24,8 @@
"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",
@@ -87,6 +88,11 @@
]
},
"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,
@@ -158,6 +164,11 @@
"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,
@@ -204,17 +215,7 @@
"max_volume": "324 L",
"deployed_item": "box_large",
"examine_action": "deployed_furniture",
"flags": [
"TRANSPARENT",
"FLAMMABLE_ASH",
"PLACE_ITEM",
"ORGANIC",
"EASY_DECONSTRUCT",
"BASHABLE",
"HIDE_PLACE",
"NO_SIGHT",
"CONTAINER"
],
"flags": [ "TRANSPARENT", "FLAMMABLE_ASH", "PLACE_ITEM", "ORGANIC", "EASY_DECONSTRUCT", "HIDE_PLACE", "NO_SIGHT", "CONTAINER" ],
"bash": {
"str_min": 2,
"str_max": 15,
@@ -282,19 +283,74 @@
]
}
},
{
"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": "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.",
"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.",
"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", "MINEABLE", "PICKABLE" ],
"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.",
"examine_action": "locked_object_pickable",
"oxytorch": { "result": "f_safe_o", "duration": "14 seconds" },
"bash": {
"str_min": 40,
"str_max": 200,
@@ -319,7 +375,8 @@
"coverage": 30,
"required_str": 14,
"max_volume": "250 L",
"flags": [ "TRANSPARENT", "CONTAINER", "SEALED", "PLACE_ITEM", "MOUNTABLE", "MINEABLE" ],
"flags": [ "TRANSPARENT", "CONTAINER", "SEALED", "PLACE_ITEM", "MOUNTABLE" ],
"oxytorch": { "result": "f_safe_o", "duration": "14 seconds" },
"bash": {
"str_min": 40,
"str_max": 200,
@@ -344,7 +401,8 @@
"coverage": 30,
"required_str": 14,
"max_volume": "250 L",
"flags": [ "TRANSPARENT", "CONTAINER", "SEALED", "PLACE_ITEM", "MOUNTABLE", "MINEABLE" ],
"flags": [ "TRANSPARENT", "CONTAINER", "SEALED", "PLACE_ITEM", "MOUNTABLE" ],
"oxytorch": { "result": "f_safe_o", "duration": "14 seconds" },
"examine_action": "gunsafe_el",
"bash": {
"str_min": 40,
@@ -462,7 +520,13 @@
"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 ] },
@@ -472,7 +536,43 @@
},
"max_volume": "1750 L",
"bash": {
"str_min": 6,
"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_max": 30,
"sound": "metal screeching!",
"sound_fail": "clang!",
@@ -565,7 +665,7 @@
"coverage": 30,
"required_str": 14,
"max_volume": "250 L",
"flags": [ "TRANSPARENT", "CONTAINER", "SEALED", "PLACE_ITEM", "MOUNTABLE", "MINEABLE" ],
"flags": [ "TRANSPARENT", "CONTAINER", "SEALED", "PLACE_ITEM", "MOUNTABLE" ],
"open": "f_safe_o",
"examine_action": "open_safe",
"bash": {
@@ -592,7 +692,8 @@
"coverage": 30,
"required_str": 14,
"max_volume": "250 L",
"flags": [ "TRANSPARENT", "CONTAINER", "SEALED", "PLACE_ITEM", "MOUNTABLE", "MINEABLE" ],
"flags": [ "TRANSPARENT", "CONTAINER", "SEALED", "PLACE_ITEM", "MOUNTABLE" ],
"oxytorch": { "result": "f_safe_o", "duration": "14 seconds" },
"examine_action": "safe",
"bash": {
"str_min": 40,
@@ -618,7 +719,7 @@
"coverage": 30,
"required_str": 14,
"max_volume": "250 L",
"flags": [ "TRANSPARENT", "CONTAINER", "PLACE_ITEM", "MOUNTABLE", "MINEABLE" ],
"flags": [ "TRANSPARENT", "CONTAINER", "PLACE_ITEM", "MOUNTABLE" ],
"close": "f_safe_c",
"bash": {
"str_min": 40,
@@ -651,6 +752,27 @@
"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",
@@ -780,7 +902,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 or fermenting alcohol.",
"description": "A large standing wooden barrel, completely watertight. Good for storing liquids of all kinds.",
"symbol": "H",
"color": "brown",
"move_cost_mod": -1,
@@ -824,7 +946,33 @@
"move_cost_mod": 2,
"coverage": 80,
"required_str": 9,
"flags": [ "TRANSPARENT", "SEALED", "PLACE_ITEM" ],
"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" ],
"bash": {
"str_min": 6,
"str_max": 20,
@@ -856,6 +1004,79 @@
"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",
@@ -866,7 +1087,7 @@
"move_cost_mod": -1,
"coverage": 90,
"required_str": -1,
"flags": [ "BASHABLE", "CONTAINER", "DECONSTRUCT", "LIQUIDCONT", "NOITEM", "SEALED", "TRANSPARENT" ],
"flags": [ "CONTAINER", "LIQUIDCONT", "NOITEM", "SEALED", "TRANSPARENT" ],
"deconstruct": { "items": [ { "item": "metal_tank", "count": 4 }, { "item": "water_faucet", "count": 1 } ] },
"examine_action": "keg",
"keg_capacity": 1200,
@@ -1064,6 +1285,12 @@
"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": "tourist table",
"name": "folding 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,7 +43,6 @@
"ORGANIC",
"REDUCE_SCENT",
"EASY_DECONSTRUCT",
"BASHABLE",
"HIDE_PLACE",
"NO_SIGHT"
],
@@ -82,7 +81,6 @@
"ORGANIC",
"REDUCE_SCENT",
"EASY_DECONSTRUCT",
"BASHABLE",
"HIDE_PLACE",
"NO_SIGHT",
"BLOCK_WIND"
@@ -112,7 +110,7 @@
{ "item": "box_medium", "count": 2 },
{ "item": "box_small", "count": 4 },
{ "item": "rag", "count": 50 },
{ "item": "paper", "count": 50 },
{ "item": "paper", "count": [ 30, 80 ] },
{ "item": "plastic_chunk", "count": 20 },
{ "item": "plastic_sheet", "count": 2 }
]
@@ -127,7 +125,7 @@
{ "item": "box_medium", "count": [ 0, 2 ] },
{ "item": "box_small", "count": [ 0, 4 ] },
{ "item": "rag", "count": [ 20, 50 ] },
{ "item": "paper", "count": [ 50, 150 ] },
{ "item": "paper", "count": [ 30, 80 ] },
{ "item": "plastic_chunk", "count": [ 5, 20 ] },
{ "item": "plastic_sheet", "count": [ 0, 2 ] }
]
@@ -676,7 +674,7 @@
"coverage": 45,
"required_str": 16,
"crafting_pseudo_item": "boulder_anvil",
"flags": [ "NOITEM", "TRANSPARENT", "MINEABLE", "UNSTABLE", "MOUNTABLE", "SHORT", "BASHABLE" ],
"flags": [ "NOITEM", "TRANSPARENT", "MINEABLE", "UNSTABLE", "MOUNTABLE", "SHORT" ],
"bash": {
"str_min": 32,
"str_max": 80,
@@ -695,7 +693,7 @@
"move_cost_mod": -1,
"coverage": 65,
"required_str": 32,
"flags": [ "NOITEM", "MINEABLE", "BASHABLE", "BLOCK_WIND" ],
"flags": [ "NOITEM", "MINEABLE", "BLOCK_WIND" ],
"bash": {
"str_min": 64,
"str_max": 160,
@@ -722,7 +720,7 @@
"move_cost_mod": -1,
"coverage": 40,
"required_str": 32,
"flags": [ "BASHABLE", "TRANSPARENT" ],
"flags": [ "TRANSPARENT" ],
"bash": {
"str_min": 30,
"str_max": 100,
@@ -749,7 +747,7 @@
"move_cost_mod": -1,
"coverage": 40,
"required_str": 32,
"flags": [ "BASHABLE", "TRANSPARENT" ],
"flags": [ "TRANSPARENT" ],
"bash": {
"str_min": 30,
"str_max": 100,
@@ -775,7 +773,6 @@
"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": "^",
"symbol": "U",
"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": "^",
"symbol": "U",
"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.",
"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.",
"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.",
"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.",
"symbol": "7",
"color": "yellow_red",
"move_cost_mod": -1,
@@ -538,12 +538,39 @@
},
"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. 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, if supplied with power from UPS. One of the key tools in a carpenter's arsenal.",
"symbol": "7",
"color": "yellow_red",
"move_cost_mod": 8,
@@ -582,7 +609,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.",
"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.",
"symbol": "7",
"color": "yellow_cyan",
"move_cost_mod": -1,
@@ -621,7 +648,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.",
"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.",
"symbol": "7",
"color": "yellow_cyan",
"move_cost_mod": -1,
@@ -659,7 +686,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.",
"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.",
"symbol": "7",
"color": "yellow_green",
"move_cost_mod": 8,
@@ -697,7 +724,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. 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, if supplied with power from UPS. 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,
@@ -735,7 +762,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.",
"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.",
"symbol": "7",
"color": "yellow_magenta",
"move_cost_mod": 8,
@@ -773,7 +800,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, you know, it had power.",
"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.",
"symbol": "9",
"color": "black_red",
"move_cost_mod": -1,
@@ -811,7 +838,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.",
"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.",
"symbol": "4",
"color": "cyan_red",
"move_cost_mod": -1,
@@ -846,7 +873,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.",
"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.",
"symbol": "8",
"color": "black_yellow",
"move_cost_mod": -1,
@@ -885,6 +912,38 @@
},
"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",
@@ -1194,7 +1253,13 @@
"items": [
{ "item": "glass_shard", "count": [ 8, 25 ] },
{ "item": "sheet_metal", "count": [ 0, 2 ] },
{ "item": "steel_chunk", "count": [ 1, 5 ] }
{ "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 ] }
]
}
},
@@ -1244,7 +1309,14 @@
{ "item": "steel_chunk", "count": [ 0, 3 ] },
{ "item": "hose", "count": 1 },
{ "item": "cu_pipe", "count": [ 1, 4 ] },
{ "item": "scrap_copper", "count": [ 0, 2 ] }
{ "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 ] }
]
}
},
@@ -0,0 +1,52 @@
[
{
"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,7 +20,8 @@
"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",
@@ -66,6 +67,12 @@
"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
}
},
{
@@ -116,6 +123,12 @@
{ "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
}
},
{
@@ -143,6 +156,12 @@
{ "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
}
},
{
@@ -234,7 +253,9 @@
{ "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",
@@ -272,7 +293,8 @@
{ "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",
@@ -310,7 +332,8 @@
{ "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",
@@ -348,7 +371,8 @@
{ "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",
@@ -386,7 +410,8 @@
{ "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",
@@ -424,7 +449,8 @@
{ "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",
@@ -608,7 +634,8 @@
{ "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",
@@ -644,7 +671,8 @@
{ "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",
@@ -680,7 +708,8 @@
{ "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",
@@ -716,7 +745,8 @@
{ "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",
@@ -840,7 +870,8 @@
"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",
@@ -864,7 +895,8 @@
"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",
@@ -888,7 +920,8 @@
"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",
@@ -912,7 +945,8 @@
"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",
@@ -936,7 +970,8 @@
"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",
@@ -1047,7 +1082,9 @@
{ "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",
@@ -1083,7 +1120,8 @@
{ "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",
@@ -1119,7 +1157,8 @@
{ "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,7 +1196,8 @@
{ "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",
@@ -1305,7 +1345,8 @@
{ "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",
@@ -1341,7 +1382,8 @@
{ "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",
@@ -1390,6 +1432,8 @@
"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",
@@ -1416,7 +1460,13 @@
{ "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",
@@ -1428,6 +1478,8 @@
"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",
@@ -1456,7 +1508,13 @@
{ "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",
@@ -1468,6 +1526,8 @@
"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",
@@ -1496,7 +1556,13 @@
{ "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",
@@ -1508,6 +1574,8 @@
"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",
@@ -1535,7 +1603,13 @@
{ "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",
@@ -1797,7 +1871,15 @@
{ "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",
@@ -1825,7 +1907,15 @@
{ "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",
@@ -1853,7 +1943,15 @@
{ "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",
@@ -1881,7 +1979,15 @@
{ "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",
@@ -1909,7 +2015,15 @@
{ "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",
@@ -1939,7 +2053,15 @@
{ "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",
@@ -1954,6 +2076,11 @@
"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,
@@ -1967,6 +2094,32 @@
]
}
},
{
"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",
@@ -2009,6 +2162,61 @@
"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",
@@ -2060,6 +2268,31 @@
]
}
},
{
"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",
@@ -2152,6 +2385,11 @@
"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,
@@ -2176,10 +2414,22 @@
"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,
@@ -2205,11 +2455,22 @@
"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": 30,
"str_min": 45,
"str_max": 210,
"str_min_blocked": 40,
"str_min_blocked": 55,
"str_max_blocked": 240,
"sound": "metal screeching!",
"sound_fail": "clang!",
@@ -2234,9 +2495,9 @@
"flags": [ "TRANSPARENT", "FLAT", "CONNECT_TO_WALL", "ROAD" ],
"close": "t_door_bar_c",
"bash": {
"str_min": 20,
"str_min": 40,
"str_max": 210,
"str_min_blocked": 30,
"str_min_blocked": 50,
"str_max_blocked": 240,
"sound": "metal screeching!",
"sound_fail": "clang!",
@@ -2259,12 +2520,25 @@
"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": 30,
"str_min": 45,
"str_max": 210,
"str_min_blocked": 40,
"str_min_blocked": 55,
"str_max_blocked": 240,
"sound": "metal screeching!",
"sound_fail": "clang!",
@@ -64,9 +64,28 @@
"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,
@@ -88,7 +107,18 @@
"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,
@@ -136,9 +166,22 @@
"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,
@@ -164,7 +207,18 @@
"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,
@@ -437,6 +491,13 @@
"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 }
}
},
{
@@ -502,9 +563,26 @@
"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,
@@ -522,7 +600,14 @@
"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,
@@ -546,7 +631,7 @@
"color": "brown",
"looks_like": "t_chainfence",
"move_cost": 0,
"flags": [ "TRANSPARENT", "NOITEM", "PERMEABLE", "AUTO_WALL_SYMBOL", "BURROWABLE" ],
"flags": [ "TRANSPARENT", "NOITEM", "PERMEABLE", "AUTO_WALL_SYMBOL", "BURROWABLE", "CLIMBABLE" ],
"connects_to": "CHAINFENCE",
"examine_action": "chainfence",
"deconstruct": {
@@ -638,6 +723,12 @@
"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,
@@ -655,6 +746,12 @@
"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": {
@@ -935,7 +1032,7 @@
{
"type": "terrain",
"id": "t_privacy_fencegate_c",
"name": "closed wooden split rail gate",
"name": "closed wooden privacy gate",
"description": "A commercial quality gate made of wood with a latch system.",
"symbol": "+",
"color": "brown",
@@ -973,7 +1070,7 @@
{
"type": "terrain",
"id": "t_privacy_fencegate_o",
"name": "open wooden split rail gate",
"name": "open wooden privacy 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,6 +6,7 @@
"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" ],
@@ -30,6 +31,7 @@
"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" ],
@@ -53,11 +55,38 @@
"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",
@@ -65,6 +94,7 @@
"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",
@@ -78,7 +108,8 @@
"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",
@@ -87,6 +118,7 @@
"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",
@@ -112,13 +144,14 @@
"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_null",
"ter_set": "t_metal_floor",
"str_min": 200,
"str_max": 500,
"str_min_supported": 200,
@@ -130,6 +163,78 @@
]
}
},
{
"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",
@@ -156,6 +261,7 @@
"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" ],
@@ -219,6 +325,7 @@
"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" ],
@@ -231,6 +338,7 @@
"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" ],
@@ -247,6 +355,29 @@
]
}
},
{
"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",
@@ -254,6 +385,7 @@
"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" ],
@@ -315,6 +447,7 @@
"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" ],
@@ -334,6 +467,7 @@
"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" ],
@@ -353,6 +487,7 @@
"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" ],
@@ -382,6 +517,7 @@
"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,
@@ -473,6 +609,7 @@
"name": "carpet",
"symbol": ".",
"color": "red",
"connects_to": "CARPET",
"move_cost": 2,
"roof": "t_flat_roof",
"description": "Soft red carpet.",
@@ -667,6 +804,7 @@
"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" ],
@@ -687,6 +825,7 @@
"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": {
@@ -705,6 +844,7 @@
"description": "This section of wax flooring has been painted.",
"symbol": ".",
"color": "yellow",
"connects_to": "WOODFLOOR",
"move_cost": 2,
"roof": "t_flat_roof",
"bash": {
@@ -778,6 +918,7 @@
"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",
@@ -793,6 +934,7 @@
"symbol": ".",
"color": "yellow",
"looks_like": "t_sand",
"connects_to": "SAND",
"move_cost": 3,
"roof": "t_rock_roof",
"flags": [ "TRANSPARENT", "SUPPORTS_ROOF", "INDOORS", "FLAT", "DIGGABLE" ],
@@ -834,6 +976,7 @@
"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" ],
@@ -847,6 +990,7 @@
"//": "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,6 +6,7 @@
"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 }
@@ -18,6 +19,7 @@
"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 }
},
@@ -40,6 +42,7 @@
"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 }
@@ -52,6 +55,7 @@
"looks_like": "t_dirtmound",
"symbol": "#",
"color": "brown",
"connects_to": "CLAY",
"move_cost": 5,
"flags": [ "TRANSPARENT", "BURROWABLE" ],
"bash": {
@@ -71,6 +75,7 @@
"looks_like": "t_dirtmound",
"symbol": "#",
"color": "brown",
"connects_to": "SAND",
"move_cost": 5,
"flags": [ "TRANSPARENT", "BURROWABLE" ],
"bash": {
@@ -82,6 +87,19 @@
"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",
@@ -89,6 +107,7 @@
"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 },
@@ -102,6 +121,7 @@
"looks_like": "t_dirtmound",
"symbol": "#",
"color": "brown",
"connects_to": "DIRT",
"move_cost": 3,
"coverage": 40,
"flags": [ "TRANSPARENT", "DIGGABLE", "MOUNTABLE", "SUPPORTS_ROOF", "COLLAPSES", "INDOORS" ],
@@ -126,7 +146,20 @@
"move_cost": 0,
"roof": "t_rock_floor",
"flags": [ "NOITEM", "SUPPORTS_ROOF", "WALL" ],
"examine_action": "fault"
"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
}
]
}
]
}
},
{
"type": "terrain",
@@ -160,6 +193,7 @@
"symbol": ".",
"color": "light_gray",
"looks_like": "t_rock_floor",
"connects_to": "ROCKFLOOR",
"move_cost": 2,
"roof": "t_open_air",
"flags": [ "TRANSPARENT", "FLAT", "ROAD" ],
@@ -228,6 +262,7 @@
"symbol": ".",
"color": "light_gray",
"looks_like": "t_concrete",
"connects_to": "CONCRETE",
"move_cost": 2,
"flags": [ "TRANSPARENT", "FLAT", "ROAD", "MINEABLE" ],
"bash": {
@@ -246,6 +281,7 @@
"symbol": ".",
"color": "light_gray",
"looks_like": "t_pavement",
"connects_to": "CONCRETE",
"move_cost": 2,
"flags": [ "TRANSPARENT", "FLAT", "ROAD", "MINEABLE" ],
"bash": {
@@ -264,6 +300,7 @@
"symbol": ".",
"color": "yellow",
"looks_like": "t_pavement_y",
"connects_to": "CONCRETE",
"move_cost": 2,
"flags": [ "TRANSPARENT", "FLAT", "ROAD", "MINEABLE" ],
"bash": {
@@ -301,6 +338,7 @@
"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": {
@@ -324,6 +362,7 @@
"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": {
@@ -343,6 +382,7 @@
"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": {
@@ -361,9 +401,33 @@
"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": "brown",
"color": "yellow",
"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": "green",
"color": "brown",
"move_cost": 0,
"coverage": 80,
"flags": [ "FLAMMABLE_ASH", "NOITEM", "SUPPORTS_ROOF", "TREE", "REDUCE_SCENT" ],
@@ -344,6 +344,26 @@
"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", "FLAMMABLE_ASH", "FUNGUS", "SHRUB", "SHORT" ],
"flags": [ "TRANSPARENT", "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", "FLAMMABLE_ASH", "DIGGABLE", "FUNGUS", "NOCOLLIDE" ],
"flags": [ "TRANSPARENT", "DIGGABLE", "FUNGUS", "NOCOLLIDE" ],
"bash": {
"sound": "smash",
"//": "muffled because fungus",
@@ -39,7 +39,7 @@
"symbol": ".",
"color": "light_gray",
"move_cost": 2,
"flags": [ "TRANSPARENT", "FLAMMABLE_ASH", "SUPPORTS_ROOF", "COLLAPSES", "INDOORS", "FLAT", "FUNGUS" ],
"flags": [ "TRANSPARENT", "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", "FLAMMABLE_ASH", "SUPPORTS_ROOF", "FLAT", "FUNGUS" ],
"flags": [ "TRANSPARENT", "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", "FLAMMABLE_ASH", "FLAT", "FUNGUS" ],
"flags": [ "TRANSPARENT", "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": [ "FLAMMABLE_ASH", "NOITEM", "SUPPORTS_ROOF", "FUNGUS", "WALL", "REDUCE_SCENT", "MINEABLE" ],
"flags": [ "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": [ "FLAMMABLE_ASH", "NOITEM", "SUPPORTS_ROOF", "FUNGUS", "WALL", "NO_SCENT", "AUTO_WALL_SYMBOL", "MINEABLE" ],
"flags": [ "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", "FLAMMABLE_ASH", "FUNGUS", "MOUNTABLE" ],
"flags": [ "TRANSPARENT", "THIN_OBSTACLE", "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", "FLAMMABLE_ASH", "THIN_OBSTACLE", "PLACE_ITEM", "SHRUB", "FUNGUS", "SHORT" ],
"flags": [ "TRANSPARENT", "CONTAINER", "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": [ "FLAMMABLE_ASH", "NOITEM", "FUNGUS", "TREE", "REDUCE_SCENT" ],
"flags": [ "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", "FLAMMABLE_ASH", "NOITEM", "FUNGUS", "YOUNG", "REDUCE_SCENT" ],
"flags": [ "TRANSPARENT", "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": [ "FLAMMABLE_ASH", "NOITEM", "FUNGUS", "TREE", "REDUCE_SCENT" ],
"flags": [ "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,11 +265,17 @@
"bash": {
"str_min": 40,
"str_max": 210,
"explosive": 5,
"sound": "Critical failure imminent, self destruct activated. Have a nice day!",
"sound": "metal screeching!",
"sound_fail": "clang!",
"ter_set": "t_floor",
"items": [ { "item": "steel_chunk", "count": [ 1, 3 ] }, { "item": "scrap", "count": [ 4, 8 ] } ]
"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 ] }
]
}
},
{
@@ -624,7 +630,8 @@
"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",
@@ -654,7 +661,8 @@
{ "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": "scrap", "count": [ 2, 6 ], "prob": 50 },
{ "item": "coin_quarter", "count": [ 1, 1500 ] }
]
}
},
@@ -1093,7 +1101,7 @@
"symbol": "=",
"color": "brown",
"move_cost": 6,
"flags": [ "TRANSPARENT", "BASHABLE", "PLACE_ITEM", "INDOORS" ],
"flags": [ "TRANSPARENT", "PLACE_ITEM", "INDOORS" ],
"coverage": 30,
"deconstruct": {
"ter_set": "t_rock_floor",
@@ -1180,7 +1188,7 @@
{ "item": "steel_chunk", "count": [ 1, 10 ] }
]
},
"flags": [ "BASHABLE", "CONTAINER", "SEALED", "PLACE_ITEM", "WALL", "MINEABLE" ]
"flags": [ "CONTAINER", "SEALED", "PLACE_ITEM", "WALL", "MINEABLE" ]
},
{
"type": "terrain",
@@ -1191,7 +1199,7 @@
"color": "green",
"looks_like": "t_pit",
"move_cost": 0,
"flags": [ "TRANSPARENT", "CONTAINER", "PLACE_ITEM", "INDOORS", "DECONSTRUCT" ],
"flags": [ "TRANSPARENT", "CONTAINER", "PLACE_ITEM", "INDOORS" ],
"deconstruct": { "ter_set": "t_pit", "items": [ { "item": "rock", "count": 40 }, { "item": "stick", "count": [ 16, 16 ] } ] },
"bash": {
"str_min": 18,
@@ -342,6 +342,294 @@
"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",
@@ -441,7 +729,7 @@
"color": "dark_gray",
"move_cost": 0,
"coverage": 50,
"flags": [ "TRANSPARENT", "MOUNTABLE", "PERMEABLE", "MINEABLE" ],
"flags": [ "TRANSPARENT", "MOUNTABLE", "PERMEABLE", "MINEABLE", "SEALED" ],
"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", "NONFLAMMABLE", "MINEABLE" ],
"flags": [ "NOITEM", "WALL", "PERMEABLE", "TRANSPARENT", "INDOORS", "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", "NONFLAMMABLE", "NOCOLLIDE" ],
"flags": [ "TRANSPARENT", "SUPPORTS_ROOF", "COLLAPSES", "INDOORS", "FLAT", "ROAD", "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", "NONFLAMMABLE" ],
"flags": [ "TRANSPARENT", "COLLAPSES", "FLAT", "ROAD" ],
"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", "NONFLAMMABLE" ],
"flags": [ "TRANSPARENT", "FLAT" ],
"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", "NONFLAMMABLE" ],
"flags": [ "DOOR", "NOITEM", "CONNECT_TO_WALL", "BLOCK_WIND" ],
"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", "NONFLAMMABLE" ],
"flags": [ "TRANSPARENT", "FLAT", "CONNECT_TO_WALL" ],
"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", "NONFLAMMABLE" ],
"flags": [ "TRANSPARENT", "FLAT", "CONNECT_TO_WALL" ],
"bash": {
"str_min": 100,
"str_max": 500,
@@ -55,7 +55,7 @@
]
},
"connects_to": "RAIL",
"flags": [ "BASHABLE", "RAIL", "TRANSPARENT" ]
"flags": [ "RAIL", "TRANSPARENT" ]
},
{
"id": "t_railroad_track_h",
@@ -86,7 +86,7 @@
]
},
"connects_to": "RAIL",
"flags": [ "BASHABLE", "RAIL", "TRANSPARENT" ]
"flags": [ "RAIL", "TRANSPARENT" ]
},
{
"id": "t_railroad_track_v",
@@ -117,7 +117,7 @@
]
},
"connects_to": "RAIL",
"flags": [ "BASHABLE", "RAIL", "TRANSPARENT" ]
"flags": [ "RAIL", "TRANSPARENT" ]
},
{
"id": "t_railroad_track_d",
@@ -148,7 +148,7 @@
]
},
"connects_to": "RAIL",
"flags": [ "BASHABLE", "RAIL", "TRANSPARENT" ]
"flags": [ "RAIL", "TRANSPARENT" ]
},
{
"id": "t_railroad_track_d1",
@@ -179,7 +179,7 @@
]
},
"connects_to": "RAIL",
"flags": [ "BASHABLE", "RAIL", "TRANSPARENT" ]
"flags": [ "RAIL", "TRANSPARENT" ]
},
{
"id": "t_railroad_track_d2",
@@ -210,7 +210,7 @@
]
},
"connects_to": "RAIL",
"flags": [ "BASHABLE", "RAIL", "TRANSPARENT" ]
"flags": [ "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": [ "BASHABLE", "TRANSPARENT" ]
"flags": [ "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": [ "BASHABLE", "TRANSPARENT" ]
"flags": [ "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": [ "BASHABLE", "TRANSPARENT" ]
"flags": [ "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": [ "BASHABLE", "TRANSPARENT" ]
"flags": [ "TRANSPARENT" ]
},
{
"id": "t_railroad_track_on_tie",
@@ -336,7 +336,7 @@
]
},
"connects_to": "RAIL",
"flags": [ "BASHABLE", "RAIL", "TRANSPARENT" ]
"flags": [ "RAIL", "TRANSPARENT" ]
},
{
"id": "t_railroad_track_h_on_tie",
@@ -370,7 +370,7 @@
]
},
"connects_to": "RAIL",
"flags": [ "BASHABLE", "RAIL", "TRANSPARENT" ]
"flags": [ "RAIL", "TRANSPARENT" ]
},
{
"id": "t_railroad_track_v_on_tie",
@@ -404,7 +404,7 @@
]
},
"connects_to": "RAIL",
"flags": [ "BASHABLE", "RAIL", "TRANSPARENT" ]
"flags": [ "RAIL", "TRANSPARENT" ]
},
{
"id": "t_railroad_track_d_on_tie",
@@ -438,7 +438,7 @@
]
},
"connects_to": "RAIL",
"flags": [ "BASHABLE", "RAIL", "TRANSPARENT" ]
"flags": [ "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": [ "BASHABLE", "TRANSPARENT", "NOITEM", "MOUNTABLE" ]
"flags": [ "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": [ "BASHABLE", "TRANSPARENT" ]
"flags": [ "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": [ "BASHABLE", "TRANSPARENT" ]
"flags": [ "TRANSPARENT" ]
},
{
"id": "t_railroad_crossing_signal",
@@ -600,7 +600,7 @@
]
},
"connects_to": "RAIL",
"flags": [ "BASHABLE", "RAIL", "TRANSPARENT" ]
"flags": [ "RAIL", "TRANSPARENT" ]
},
{
"id": "t_railroad_track_small_d",
@@ -634,6 +634,6 @@
]
},
"connects_to": "RAIL",
"flags": [ "BASHABLE", "RAIL", "TRANSPARENT" ]
"flags": [ "RAIL", "TRANSPARENT" ]
}
]

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