Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge with upstream #1

Merged
merged 135 commits into from
Jan 29, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
135 commits
Select commit Hold shift + click to select a range
5215255
create orichalcum frame vehicle part
KorGgenT Jan 22, 2020
b3d0c21
Added flag to the 5 variants
RarkGrames Jan 22, 2020
f258ad6
Linting
RarkGrames Jan 22, 2020
7c0cdb6
NPC can consume battery charges from batteries
Jan 24, 2020
6369e0b
Generic Guns rework (#36839)
tenmillimaster Jan 24, 2020
7ae9ac6
Reverted flag change and added coverage
RarkGrames Jan 24, 2020
070588e
Fix spelling errors (#37349)
reinerh Jan 24, 2020
e258c46
Generic modern json (#37342)
snipercup Jan 24, 2020
a7dd190
Update Makefile so LTO works on OSX
sayke Jan 24, 2020
8fd783c
Fix a few typos pre 0.E (#37359)
Cyrano7 Jan 24, 2020
2ce8aa2
Add a vibrator crafting recipe (#36860)
wapcaplet Jan 24, 2020
ed7e3b7
Added the item to item groups (#37360)
RarkGrames Jan 24, 2020
3fae12a
Sorted hats, arm and leg guards (#37358)
RarkGrames Jan 24, 2020
bb45b9a
Add item_category documentation (#37346)
snipercup Jan 24, 2020
3da00f4
Magiclysm - New Spells 1 (#37254)
foulman Jan 25, 2020
8f55ca2
regenerate values for vehicle drag test (#37369)
Jan 25, 2020
fa4ed2d
Cleaning can use clean water (#37366)
Fris0uman Jan 25, 2020
b5561ea
Fix handmade magnum carbine using wrong ammo (#37364)
Jan 25, 2020
31d04ac
Adds repair like jeans to army pants. (#37353)
Brian-Otten Jan 25, 2020
075afa3
Remove non-scifi professions from Aftershock (#37292)
John-Candlebury Jan 25, 2020
2b4d10a
json style
KorGgenT Jan 25, 2020
dbfa7f1
Add -fno-sanitize-recover=all
jbytheway Jan 17, 2020
a1ee2fe
Avoid member function call with this == null
jbytheway Jan 25, 2020
df15d25
Avoid crafting_success_roll returning NaN
jbytheway Jan 25, 2020
31e9af9
Avoid uninitialized bool member variables
jbytheway Jan 25, 2020
698fde7
Avoid overflow in get_overmaps_near
jbytheway Jan 25, 2020
97b0c13
Avoid some floating point division by zero
jbytheway Jan 25, 2020
f572d0a
Avoid overflow when computing vehicle power
jbytheway Jan 25, 2020
cb1a791
Initialize weather in tests
jbytheway Jan 25, 2020
696b4ba
Add -fno-sanitize-recover=all with sanitizers
jbytheway Jan 25, 2020
175cf62
Fixed pluralization of acorn meal/bologna/bone meal/cornmeal/detergen…
jkraybill Jan 25, 2020
30a5718
Merge pull request #37350 from Fris0uman/batt_npc
Rivet-the-Zombie Jan 25, 2020
36012ab
Triage two clang-tidy checks
jbytheway Jan 25, 2020
98dbaaf
Enable UBSan in Travis CI
jbytheway Jan 25, 2020
5e96b74
fix screen wall (#37380)
curstwist Jan 25, 2020
34f4c52
Armor.json sorting pt. 2 (#37381)
RarkGrames Jan 25, 2020
01d1ce8
Make `int_id::operator int` explicit
Qrox Jan 25, 2020
12076fe
make reins autolearn (#37379)
Jan 25, 2020
1f2840c
Routine i18n updates on 25 Jan 2020 (#37382)
BrettDong Jan 25, 2020
a59d1de
Some more typo cleanup for 0.E
Cyrano7 Jan 25, 2020
55d12ca
Use std::abs on int64_t argument
jbytheway Jan 25, 2020
fa3ab6e
Update JSON_INFO.md (bashing cannot be negative) (#37186)
Jerimee Jan 25, 2020
aa2da16
Appease clang-tidy (#37390)
jbytheway Jan 25, 2020
210f075
Merge pull request #37383 from jbytheway/triage-clang-tidy
ZhilkinSerg Jan 25, 2020
81caf54
Merge pull request #37384 from jbytheway/ubsan
ZhilkinSerg Jan 25, 2020
d790b68
Merge pull request #37389 from Cyrano7/Cleanup0.E
ZhilkinSerg Jan 25, 2020
0756e42
Armor.json sorting pt. 3 (#37393)
RarkGrames Jan 25, 2020
bb2b11c
Merge pull request #37356 from sayke/fix-LTO-on-OSX
ZhilkinSerg Jan 25, 2020
9a01fd5
Various generic guns quickfixes (#37386)
tenmillimaster Jan 25, 2020
0ef18c7
Mainline sleep deprivation (#37317)
anothersimulacrum Jan 26, 2020
17af2e6
Update inventory.cpp
SeventhSandwich Jan 26, 2020
94515f5
Increased recycle center mundane loot tenfold (#37388)
RarkGrames Jan 26, 2020
8c1d65e
Obsoleted Special 700 (#37385)
RarkGrames Jan 26, 2020
88cbf39
Standardize JSON times to strings (#37396)
wapcaplet Jan 26, 2020
3fb2a3f
Item Group Sorting #5
LilShiningMan Jan 26, 2020
a935a80
Refresh whole screen after selecting "What to do with your X"
Night-Pryanik Jan 26, 2020
0b2785f
Merge pull request #37307 from RarkGrames/Underbrush-nocollide
Rivet-the-Zombie Jan 26, 2020
9000542
Merge pull request #37401 from Night-Pryanik/query-fix
ZhilkinSerg Jan 26, 2020
95d54b2
Merge pull request #37400 from LilShiningMan/lsm---item-group-sort-5
ZhilkinSerg Jan 26, 2020
9e48800
Pull out more string consts into cata_string_consts.h (#37394)
Ramza13 Jan 26, 2020
1f2d6be
Revoked RECHARGE flag from Aftershock's UPS items/tools (#37331)
gwyter Jan 26, 2020
5c8dd53
Merge pull request #37395 from SeventhSandwich/chemlab-hotplate-rework
ZhilkinSerg Jan 26, 2020
1670fd3
Aftershock Bloodhound Drones (#37131)
Maleclypse Jan 26, 2020
c7b0c39
Refactor and update Graphical Overmap mod (#37305)
Kilvoctu Jan 26, 2020
16ef318
Add suffixes and base recipes to Modular Turrets-based mods to allow …
CSHague Jan 26, 2020
b5c9a87
Armor.json sorting pt. 4
RarkGrames Jan 26, 2020
de33e1d
security van uses orichalcum
KorGgenT Jan 26, 2020
0e2b486
Fix magazine unloading (again)
Inglonias Jan 26, 2020
7dfb8a1
Replace Food and Drink labels with Hunger and Thirst
Jan 26, 2020
7040e0b
Update bunker.json (#37411)
RarkGrames Jan 26, 2020
63458a7
Merge pull request #37412 from Inglonias/fix-mags-again
ZhilkinSerg Jan 26, 2020
9a1798d
Avoid uninitialized resistance values
jbytheway Jan 26, 2020
e845125
Adds extra whitespace to fix tests fail
CountAlex Jan 26, 2020
c65d44b
Merge pull request #37418 from CountAlex/spacefix
ZhilkinSerg Jan 26, 2020
88c370c
Merge pull request #37417 from jbytheway/uninitialized-resistances
ZhilkinSerg Jan 26, 2020
306adb1
Merge pull request #37410 from RarkGrames/Armor.json-sorting-pt.-4
ZhilkinSerg Jan 26, 2020
064338a
Merge pull request #37413 from Fris0uman/panhunger
ZhilkinSerg Jan 26, 2020
ada44bf
Updated and improved MODDING.md
Inglonias Jan 26, 2020
14a33b4
Update documentation on gun valid mod locations
snipercup Jan 26, 2020
a3ce6fd
Remove useless melatonin tablet iuse, external opt
anothersimulacrum Jan 26, 2020
7f30447
fix house spawns
curstwist Jan 27, 2020
6f0eab5
pluralization and grammar fixes: spam, canned salmon, charcoal, Brigi…
jkraybill Jan 27, 2020
ff90f51
Merge pull request #37428 from curstwist/fix-house_crack-spawns
Rivet-the-Zombie Jan 27, 2020
c778285
Merge pull request #37432 from jkraybill/jk3
ZhilkinSerg Jan 27, 2020
9f5c117
Merge pull request #37421 from snipercup/Update-documentation-on-gun-…
ZhilkinSerg Jan 27, 2020
24477c5
Mutations modern json names and doubles (#37426)
snipercup Jan 27, 2020
c4b028f
item group sorting 6 (#37408)
LilShiningMan Jan 27, 2020
8fcf7b8
Move item desription into basic_info (#37422)
wapcaplet Jan 27, 2020
6d882a2
update ITEM_CATEGORY documentation - property priority_zones (#37407)
snipercup Jan 27, 2020
6a39a45
Mutation modern names format (#37434)
snipercup Jan 27, 2020
4ae9ab6
update with crack houses
Kilvoctu Jan 27, 2020
7254bb0
Merge pull request #37438 from Kilvoctu/go-crack-house
ZhilkinSerg Jan 27, 2020
42a0692
Merge pull request #37295 from KorGgenT/orichalcum-frame
ZhilkinSerg Jan 27, 2020
4040b58
Split sausage_wasteland recipe into two recipes. (#37316)
arijust Jan 27, 2020
98a689e
Item category modern json name (#37435)
snipercup Jan 27, 2020
4eee8c7
Armor.json sorting pt. 5 (#37441)
RarkGrames Jan 27, 2020
ca1e290
Fix footsteps translation (#37402)
8street Jan 27, 2020
00ce335
Make edamame and soybeans smokable (#37335)
CSHague Jan 27, 2020
6c29cba
Build roofs over dirt, and dig stairs in roofed dirt tiles (#37427)
ashGlaw Jan 27, 2020
bfee67a
Add missing [ ] to fix game load (#37449)
Hirmuolio Jan 27, 2020
41a3f97
Update microlab_generic_edge.json
John-Candlebury Jan 28, 2020
4d28f3e
Obsolete mods (#37272)
Jan 28, 2020
04cd14b
Merge pull request #37458 from CleverRaven/John-Candlebury-microlab-1
Rivet-the-Zombie Jan 28, 2020
adcf073
Gun modern json name format (#37447)
snipercup Jan 28, 2020
a686e4d
Added hint about minefields to the Overrun scenario (#37442)
RarkGrames Jan 28, 2020
6e9e287
added period to warrener dialogue line. (#37461)
jkraybill Jan 28, 2020
0fefb04
insecticide can be made with lye powder, or much less lye #36396 (#37…
jkraybill Jan 28, 2020
f79a581
Turret mount crafting recipe (#37321)
Dziugaske Jan 28, 2020
260013c
Update tool.json (#37367)
gavin1337 Jan 28, 2020
3da5eb4
Tool name plural and name to object (#37466)
snipercup Jan 28, 2020
eb48b26
Fix house id matching in hardcoded missions
ralreegorganon Jan 28, 2020
184b65f
fix house starting locations
curstwist Jan 28, 2020
2be9d70
Armor.json sorting pt. 6 (#37468)
RarkGrames Jan 28, 2020
ddb8480
I volunteer as tribute: Claiming a maintainer role on Classic Zombies…
I-am-Erk Jan 28, 2020
9dea9f6
Make feature template use headers, not bold text (#37474)
I-am-Erk Jan 28, 2020
fb0e570
Merge pull request #37473 from ralreegorganon/fix-house-matching
ZhilkinSerg Jan 28, 2020
b8000b3
Display Correct read times at character creation (#37472)
Fris0uman Jan 28, 2020
f7e7440
Change "Disassemble everything" wording (#37440)
Chambs-15 Jan 28, 2020
ca5dbde
Merge pull request #37419 from Inglonias/mod-documentation
ZhilkinSerg Jan 28, 2020
8393b66
Merge pull request #37387 from Qrox/explicit-int-id
ZhilkinSerg Jan 28, 2020
ee5b1a1
fruit wine requires yeast (#37463)
jkraybill Jan 28, 2020
0c0c564
Merge pull request #37478 from curstwist/fix-house-starting-locations-
ZhilkinSerg Jan 28, 2020
a28eeb9
Merge pull request #37423 from anothersimulacrum/sleep
ZhilkinSerg Jan 28, 2020
afdea39
fix high tech low life start
curstwist Jan 28, 2020
90d6ca5
Update regional_map_settings.json
curstwist Jan 28, 2020
2ade4b8
fix orichalcum frames in tests
KorGgenT Jan 29, 2020
0f3aa32
move cupboard to `furniture-surfaces`, give workbench properties (#37…
esotericist Jan 29, 2020
9d46c12
Mainline INT based learning changes (#37465)
ZhilkinSerg Jan 29, 2020
a6e9728
Show messages when pet is captured or released
wapcaplet Jan 29, 2020
52fb740
Update books.json
LilShiningMan Jan 29, 2020
5200e8b
Merge pull request #37479 from curstwist/fix-high-tech/low-life-start
Rivet-the-Zombie Jan 29, 2020
cbc7ca1
Merge pull request #37485 from KorGgenT/orichalcum-frame-fix
ZhilkinSerg Jan 29, 2020
2fd441e
Reorganize monsters.json and audit CLASSIC tag (#37480)
I-am-Erk Jan 29, 2020
9f89eb2
Merge pull request #37491 from LilShiningMan/lsm---minor-book.json-re…
ZhilkinSerg Jan 29, 2020
1e0185d
Merge pull request #37487 from wapcaplet/pet-carrier-messages
ZhilkinSerg Jan 29, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
4 changes: 2 additions & 2 deletions .clang-tidy
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ cppcoreguidelines-slicing,\
llvm-namespace-comment,\
misc-*,\
modernize-*,\
-modernize-use-auto,\
-modernize-use-trailing-return-type,\
performance-*,\
readability-*,\
-bugprone-misplaced-widening-cast,\
Expand All @@ -31,11 +33,9 @@ readability-*,\
-modernize-avoid-c-arrays,\
-modernize-pass-by-value,\
-modernize-return-braced-init-list,\
-modernize-use-auto,\
-modernize-use-default-member-init,\
-modernize-use-emplace,\
-modernize-use-transparent-functors,\
-modernize-use-trailing-return-type,\
-performance-for-range-copy,\
-performance-inefficient-vector-operation,\
-performance-noexcept-move-constructor,\
Expand Down
8 changes: 4 additions & 4 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@ about: Suggest an idea for this project

---

**Is your feature request related to a problem? Please describe.**
# Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

**Describe the solution you'd like**
# Describe the solution you'd like
A clear and concise description of what you want to happen.

**Describe alternatives you've considered**
# Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

**Additional context**
# Additional context
Add any other context (such as mock-ups, proof of concepts or screenshots) about the feature request here.
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,8 @@ jobs:
packages: ["g++-8", "g++-8-multilib", "libc6-dbg", "libc6-dbg:i386", "libsdl2-dev", "libsdl2-ttf-dev", "libsdl2-image-dev", "libsdl2-mixer-dev", "astyle"]
sources: *apt_sources

- env: CLANG=clang++-8 SANITIZE=address EXTRA_TEST_OPTS="~[.] ~vehicle_efficiency ~vehicle_drag ~starting_items"
name: "Clang 8 Make build with address sanitization, but long-running tests disabled"
- env: CLANG=clang++-8 SANITIZE=address,undefined EXTRA_TEST_OPTS="~[.] ~vehicle_efficiency ~vehicle_drag ~starting_items"
name: "Clang 8 Make build with sanitizers enabled, but long-running tests disabled"
compiler: clang
addons: &clang8
apt:
Expand Down
20 changes: 16 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,8 @@ ifeq ($(RUNTESTS), 1)
TESTS = tests
endif

# tiles object directories are because gcc gets confused # Appears that the default value of $LD is unsuitable on most systems
# tiles object directories are because gcc gets confused
# Appears that the default value of $LD is unsuitable on most systems

# when preprocessor defines change, but the source doesn't
ODIR = $(BUILD_PREFIX)obj
Expand Down Expand Up @@ -256,8 +257,9 @@ CXXFLAGS += -ffast-math
LDFLAGS += $(PROFILE)

ifneq ($(SANITIZE),)
CXXFLAGS += -fsanitize=$(SANITIZE)
LDFLAGS += -fsanitize=$(SANITIZE)
SANITIZE_FLAGS := -fsanitize=$(SANITIZE) -fno-sanitize-recover=all
CXXFLAGS += $(SANITIZE_FLAGS)
LDFLAGS += $(SANITIZE_FLAGS)
endif

# enable optimizations. slow to build
Expand All @@ -283,6 +285,7 @@ ifdef RELEASE
OPTLEVEL = -Os
endif
endif

ifdef LTO
ifdef CLANG
# LLVM's LTO will complain if the optimization level isn't between O0 and
Expand All @@ -293,7 +296,14 @@ ifdef RELEASE
CXXFLAGS += $(OPTLEVEL)

ifdef LTO
LDFLAGS += -fuse-ld=gold
ifeq ($(NATIVE), osx)
ifdef CLANG
LTOFLAGS += -flto=full
endif
else
LDFLAGS += -fuse-ld=gold # This breaks in OS X because gold can only produce ELF binaries, not Mach
endif

ifdef CLANG
LTOFLAGS += -flto
else
Expand All @@ -303,6 +313,8 @@ ifdef RELEASE
CXXFLAGS += $(LTOFLAGS)

# OTHERS += -mmmx -m3dnow -msse -msse2 -msse3 -mfpmath=sse -mtune=native
# OTHERS += -march=native # Uncomment this to build an optimized binary for your machine only

# Strip symbols, generates smaller executable.
OTHERS += $(RELEASE_FLAGS)
DEBUG =
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,13 @@ The source can either be downloaded as [an archive](https://github.com/CleverRav

### Arch Linux

Ncurses and tiles version avaliable in [Community repo](https://www.archlinux.org/packages/?q=cataclysm-dda)
Ncurses and tiles version available in [Community repo](https://www.archlinux.org/packages/?q=cataclysm-dda)

`sudo pacman -S cataclysm-dda`

### Fedora

Ncurses and tiles version avaliable in [official repos](https://src.fedoraproject.org/rpms/cataclysm-dda)
Ncurses and tiles version available in [official repos](https://src.fedoraproject.org/rpms/cataclysm-dda)

`sudo dnf install cataclysm-dda`

Expand Down
3 changes: 2 additions & 1 deletion build-scripts/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,8 @@ then
{
if [ -n "$1" ]
then
echo "$1" | shuf | xargs -P "$num_jobs" -n 1 ./build-scripts/clang-tidy-wrapper.sh
echo "$1" | shuf | \
xargs -P "$num_jobs" -n 1 ./build-scripts/clang-tidy-wrapper.sh -quiet
else
echo "No files to analyze"
fi
Expand Down
11 changes: 11 additions & 0 deletions data/json/bionics.json
Original file line number Diff line number Diff line change
Expand Up @@ -862,6 +862,17 @@
"occupied_bodyparts": [ [ "TORSO", 1 ], [ "ARM_L", 2 ], [ "ARM_R", 2 ], [ "LEG_L", 3 ], [ "LEG_R", 3 ] ],
"flags": [ "BIONIC_FAULTY" ]
},
{
"id": "bio_synaptic_regen",
"type": "bionic",
"name": "Synaptic Regeneration System",
"description": "An electromagnetic stimulator has been surgically implanted on the back of your head and along your spine, continually draining power. As long as it's active, you won't become sleep deprived; and if you're sleep deprived already, it will boost the rate of recovery while you sleep.",
"flags": [ "BIONIC_TOGGLED" ],
"occupied_bodyparts": [ [ "HEAD", 1 ], [ "TORSO", 1 ] ],
"act_cost": 0,
"react_cost": "1 kJ",
"time": 100
},
{
"id": "bio_shock",
"type": "bionic",
Expand Down
29 changes: 21 additions & 8 deletions data/json/construction.json
Original file line number Diff line number Diff line change
Expand Up @@ -854,7 +854,7 @@
"//": "Fills a deep pit with dirt.",
"category": "CONSTRUCT",
"required_skills": [ [ "fabrication", 0 ] ],
"time": 40,
"time": "40 m",
"qualities": [ [ { "id": "DIG", "level": 1 } ] ],
"components": [ [ [ "material_soil", 200 ] ] ],
"pre_special": "check_empty",
Expand All @@ -867,7 +867,7 @@
"//": "Adds wood chippings to a shallow pit to prevent plants growing, or for looks.",
"category": "CONSTRUCT",
"required_skills": [ [ "fabrication", 0 ] ],
"time": 40,
"time": "40 m",
"components": [ [ [ "splinter", 50 ] ] ],
"pre_terrain": "t_pit_shallow",
"post_terrain": "t_woodchips"
Expand Down Expand Up @@ -910,7 +910,7 @@
"//": "Makes an outside wooden paving, similar to what would be used in patios.",
"category": "CONSTRUCT",
"required_skills": [ [ "fabrication", 1 ] ],
"time": 100,
"time": "100 m",
"qualities": [ [ { "id": "HAMMER", "level": 2 } ] ],
"components": [ [ [ "2x4", 14 ] ], [ [ "nail", 28 ] ] ],
"pre_special": "check_empty",
Expand Down Expand Up @@ -1215,6 +1215,18 @@
"pre_special": "check_support",
"post_terrain": "t_floor_primitive"
},
{
"type": "construction",
"description": "Build Roof Over Dirt Floor",
"category": "CONSTRUCT",
"required_skills": [ [ "fabrication", 3 ] ],
"time": "60 m",
"qualities": [ [ { "id": "HAMMER", "level": 2 } ], [ { "id": "SAW_W", "level": 2 } ] ],
"components": [ [ [ "wood_panel", 1 ] ], [ [ "2x4", 8 ] ], [ [ "nail", 20 ] ] ],
"pre_note": "Must be supported on at least two sides.",
"pre_special": "check_support",
"post_terrain": "t_dirtfloor"
},
{
"type": "construction",
"description": "Build Rope & Pulley System",
Expand Down Expand Up @@ -1735,7 +1747,7 @@
"description": "Build Bed Frame",
"category": "FURN",
"required_skills": [ [ "fabrication", 4 ] ],
"time": 55,
"time": "55 m",
"qualities": [ [ { "id": "HAMMER", "level": 2 } ], [ { "id": "SAW_W", "level": 1 } ] ],
"components": [ [ [ "2x4", 12 ] ], [ [ "nail", 10 ] ] ],
"pre_special": "check_empty",
Expand All @@ -1746,7 +1758,7 @@
"description": "Add Mattress to Bed Frame",
"category": "FURN",
"required_skills": [ [ "fabrication", 0 ] ],
"time": 5,
"time": "5 m",
"components": [ [ [ "mattress", 1 ], [ "down_mattress", 1 ] ] ],
"pre_terrain": "f_bed_frame",
"post_terrain": "f_bed"
Expand Down Expand Up @@ -2322,6 +2334,7 @@
"tools": [ [ [ "pickaxe", -1 ], [ "jackhammer", 140 ], [ "elec_jackhammer", 7000 ] ] ],
"components": [ [ [ "2x4", 8 ], [ "log", 8 ] ], [ [ "rope_makeshift_30", 1 ], [ "rope_30", 1 ], [ "vine_30", 1 ] ] ],
"pre_flags": "DIGGABLE",
"pre_special": "check_down_OK",
"post_special": "done_dig_stair"
},
{
Expand Down Expand Up @@ -2983,7 +2996,7 @@
"description": "Hang Hanging Meathook",
"category": "CONSTRUCT",
"required_skills": [ [ "fabrication", 1 ] ],
"time": 15,
"time": "15 m",
"qualities": [ [ { "id": "HAMMER", "level": 2 } ], [ { "id": "SCREW", "level": 1 } ] ],
"components": [ [ [ "grip_hook", 1 ] ], [ [ "chain", 1 ] ] ],
"pre_special": "check_support",
Expand Down Expand Up @@ -3050,7 +3063,7 @@
"//": "Step 1: start wall",
"category": "CONSTRUCT",
"required_skills": [ [ "fabrication", 3 ] ],
"time": 120,
"time": "120 m",
"qualities": [ [ { "id": "SMOOTH", "level": 1 } ] ],
"components": [
[ [ "adobe_brick", 10 ] ],
Expand All @@ -3067,7 +3080,7 @@
"//": "Step 2: finish wall",
"category": "CONSTRUCT",
"required_skills": [ [ "fabrication", 3 ] ],
"time": 120,
"time": "120 m",
"qualities": [ [ { "id": "SMOOTH", "level": 1 } ] ],
"components": [
[ [ "adobe_brick", 10 ] ],
Expand Down
20 changes: 20 additions & 0 deletions data/json/effects.json
Original file line number Diff line number Diff line change
Expand Up @@ -520,6 +520,26 @@
"max_duration": "15 m",
"base_mods": { "vomit_chance": [ 60 ] }
},
{
"type": "effect_type",
"id": "sleep_deprived",
"name": [ "Sleep Deprived" ],
"desc": [ "Your sleep debt has been steadily increasing for a while. You should get some rest." ],
"rating": "bad",
"max_intensity": 20160,
"int_dur_factor": 240,
"base_mods": { "speed_mod": [ -5 ] },
"scaling_mods": { "speed_mod": [ -1 ], "int_mod": [ -0.33 ], "per_mod": [ -0.33 ], "str_mod": [ -0.17 ], "dex_mod": [ -0.17 ] },
"apply_message": "You feel weary, your body tired from lack of quality sleep.",
"remove_message": "You have finally caught up with your lost sleep, and you feel refreshed and awake for a change."
},
{
"type": "effect_type",
"id": "melatonin",
"name": [ "Melatonin Supplements" ],
"desc": [ "You took some melatonin supplements. These will help with sleep deprivation." ],
"rating": "good"
},
{
"type": "effect_type",
"id": "beartrap",
Expand Down
29 changes: 1 addition & 28 deletions data/json/furniture_and_terrain/furniture-storage.json
Original file line number Diff line number Diff line change
Expand Up @@ -222,33 +222,6 @@
"items": [ { "item": "paper", "charges": [ 50, 100 ] } ]
}
},
{
"type": "furniture",
"id": "f_cupboard",
"name": "cupboard",
"symbol": "#",
"description": "Store your cups.",
"color": "blue",
"move_cost_mod": 1,
"coverage": 55,
"required_str": -1,
"flags": [ "TRANSPARENT", "FLAMMABLE_ASH", "CONTAINER", "PLACE_ITEM", "ORGANIC", "MOUNTABLE" ],
"deconstruct": {
"items": [ { "item": "2x4", "count": 3 }, { "item": "wood_panel", "count": 1 }, { "item": "nail", "charges": [ 6, 8 ] } ]
},
"bash": {
"str_min": 8,
"str_max": 30,
"sound": "smash!",
"sound_fail": "whump.",
"items": [
{ "item": "2x4", "count": [ 1, 3 ] },
{ "item": "wood_panel", "count": [ 0, 1 ] },
{ "item": "nail", "charges": [ 2, 6 ] },
{ "item": "splinter", "count": 1 }
]
}
},
{
"type": "furniture",
"id": "f_dresser",
Expand Down Expand Up @@ -566,7 +539,7 @@
"move_cost_mod": -1,
"coverage": 40,
"required_str": 5,
"max_volume": "20 L",
"max_volume": "200 L",
"flags": [ "TRANSPARENT", "FLAMMABLE_ASH", "CONTAINER", "PLACE_ITEM", "MOUNTABLE", "SHORT" ],
"bash": {
"str_min": 8,
Expand Down
29 changes: 29 additions & 0 deletions data/json/furniture_and_terrain/furniture-surfaces.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,35 @@
"examine_action": "workbench",
"workbench": { "multiplier": 1.1, "mass": 200000, "volume": "75L" }
},
{
"type": "furniture",
"id": "f_cupboard",
"name": "cupboard",
"symbol": "#",
"description": "Store your cups.",
"color": "blue",
"move_cost_mod": 1,
"coverage": 55,
"required_str": -1,
"flags": [ "TRANSPARENT", "FLAMMABLE_ASH", "CONTAINER", "PLACE_ITEM", "ORGANIC", "MOUNTABLE", "FLAT_SURF" ],
"deconstruct": {
"items": [ { "item": "2x4", "count": 3 }, { "item": "wood_panel", "count": 1 }, { "item": "nail", "charges": [ 6, 8 ] } ]
},
"bash": {
"str_min": 8,
"str_max": 30,
"sound": "smash!",
"sound_fail": "whump.",
"items": [
{ "item": "2x4", "count": [ 1, 3 ] },
{ "item": "wood_panel", "count": [ 0, 1 ] },
{ "item": "nail", "charges": [ 2, 6 ] },
{ "item": "splinter", "count": 1 }
]
},
"examine_action": "workbench",
"workbench": { "multiplier": 1.1, "mass": 200000, "volume": "75L" }
},
{
"type": "furniture",
"id": "f_counter_gate_c",
Expand Down
2 changes: 1 addition & 1 deletion data/json/furniture_and_terrain/terrain-fences-gates.json
Original file line number Diff line number Diff line change
Expand Up @@ -440,7 +440,7 @@
"flags": [ "TRANSPARENT", "NOITEM", "PERMEABLE", "AUTO_WALL_SYMBOL", "BURROWABLE", "AUTO_WALL_SYMBOL" ],
"examine_action": "chainfence",
"deconstruct": {
"ter_set": "t_null",
"ter_set": "t_floor",
"items": [ { "item": "screen_mesh", "count": 1 }, { "item": "nail", "charges": 10 }, { "item": "2x4", "charges": 4 } ]
},
"bash": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,7 @@
"color": "brown",
"move_cost": 2,
"looks_like": "t_dirtfloor",
"flags": [ "TRANSPARENT", "FLAT" ],
"flags": [ "TRANSPARENT", "FLAT", "DIGGABLE" ],
"bash": { "sound": "SMASH!", "ter_set": "t_null", "str_min": 50, "str_max": 400, "str_min_supported": 100, "bash_below": true }
}
]
6 changes: 3 additions & 3 deletions data/json/furniture_and_terrain/terrain-floors_indoor.json
Original file line number Diff line number Diff line change
Expand Up @@ -269,12 +269,12 @@
"type": "terrain",
"id": "t_dirtfloor",
"name": "dirt floor",
"description": "Floor consisting of finely mixed earth that has been tamped down.",
"description": "Floor consisting of finely mixed earth that has been tamped down, with a wooden ceiling above it.",
"symbol": ".",
"color": "brown",
"move_cost": 2,
"roof": "t_shingle_flat_roof",
"flags": [ "TRANSPARENT", "SUPPORTS_ROOF", "COLLAPSES", "INDOORS", "FLAT" ],
"flags": [ "TRANSPARENT", "FLAMMABLE_HARD", "SUPPORTS_ROOF", "COLLAPSES", "INDOORS", "FLAT", "DIGGABLE" ],
"bash": {
"sound": "SMASH!",
"ter_set": "t_null",
Expand All @@ -293,7 +293,7 @@
"color": "brown",
"move_cost": 2,
"roof": "t_thatch_roof",
"flags": [ "TRANSPARENT", "SUPPORTS_ROOF", "COLLAPSES", "INDOORS", "FLAT" ],
"flags": [ "TRANSPARENT", "FLAMMABLE_ASH", "SUPPORTS_ROOF", "COLLAPSES", "INDOORS", "FLAT", "DIGGABLE" ],
"bash": {
"sound": "SMASH!",
"ter_set": "t_null",
Expand Down
Loading