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

update #9

Merged
merged 538 commits into from
May 8, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
538 commits
Select commit Hold shift + click to select a range
28282fc
Astyle
kevingranade Apr 30, 2019
6de5d19
will not become hungry after eating
KorGgenT Apr 25, 2019
be24c12
Merge pull request #30107 from CleverRaven/kevingranade-papaya
ZhilkinSerg Apr 30, 2019
c0cef43
Merge pull request #30109 from curstwist/add-2-pharmacy-roofs
Rivet-the-Zombie Apr 30, 2019
becfe30
Properly fix combat ammo stat display
esotericist Apr 30, 2019
3ad7d71
Correct the display of skinned human corpses.
esotericist Apr 30, 2019
735a99e
Convert chemical thrower to use magazines
ArkoselabsDoesNotWork-153164711 Apr 30, 2019
5d84d3a
npctalk: add dialogue effects to give items to NPCs
mlangsdorf Apr 29, 2019
b387f89
fix radio tower to use new update_mapgen
Apr 30, 2019
79877f3
Lint json
ifreund Apr 30, 2019
ec8fc21
Fix javelin bag in More Survival Tools to work with javelin ammo
esotericist Apr 30, 2019
94bf388
Fix segfault on certain scenarios (#30122)
Hirmuolio Apr 30, 2019
0fa5a8e
Merge pull request #30123 from davidpwbrown/radio_mission_fix
ZhilkinSerg Apr 30, 2019
289c31a
Merge pull request #30116 from esotericist/skinned-corpse-name-fix
ZhilkinSerg Apr 30, 2019
43b8e97
Fixed width calculation of translatable strings in the sidebar (#30121)
Apr 30, 2019
8fb3a48
anesthesia kit is a container watertight and resealable
Apr 30, 2019
1d53a7f
Merge pull request #30131 from Fris0uman/kit_fix
Rivet-the-Zombie May 1, 2019
be0632f
Add mod to enable CBM slots
anothersimulacrum Apr 28, 2019
97f18ab
Do not rebuild map cache when it is not necessary (#29747)
ZhilkinSerg May 1, 2019
4d9474f
npctalk: add dialogue effects to give items to NPCs (#30044)
kevingranade May 1, 2019
1c9995b
Merge pull request #30115 from esotericist/ammo-data-display-fix-redux
kevingranade May 1, 2019
53a14e1
Small rotting fixes (#30125)
Hirmuolio May 1, 2019
7dbabc9
Fix javelin bag in More Survival Tools to work with javelin ammo (#30…
kevingranade May 1, 2019
e68efed
Make the military mess kit work for boiling again (#30132)
Inglonias May 1, 2019
1d5d809
Fix bio railgun description
kevingranade May 1, 2019
581edb5
Fix various clear_map issues
jbytheway Apr 30, 2019
b58856e
Partially lint national guard camp json
ifreund May 1, 2019
72f37c6
Added zombeaver
Night-Pryanik May 1, 2019
e98376f
Added zombeavers to river spawn lists
Night-Pryanik May 1, 2019
175f11b
Partially lint national guard camp json (#30145)
ifreund May 1, 2019
720eefa
Partially lint national guard camp json (#30146)
kevingranade May 1, 2019
dbb3f96
Replace zombie grenadier with dispatch bot in remaining locations
esotericist May 1, 2019
cb2f291
Partially lint national guard camp json
ifreund May 1, 2019
2cac958
add elec_parts to obsolete item groups list
esotericist May 1, 2019
678b7c5
Partially lint national guard camp json
ifreund May 1, 2019
3641145
Partially lint national guard camp json
ifreund May 1, 2019
f60bb43
Merge pull request #30160 from ifreund/lint-json-41
kevingranade May 1, 2019
9903f10
Roll back the gasoline engine changes
kevingranade May 1, 2019
72ba1ac
Update combustion.json
kevingranade May 1, 2019
f525187
Unboard passengers when detaching vehicles
jbytheway May 1, 2019
68a67a3
Partially lint national guard camp json (#30163)
ifreund May 1, 2019
b247022
Partially lint national guard camp json
ifreund May 1, 2019
7b07949
Merge pull request #30127 from jbytheway/fix_mingw_monster_error
kevingranade May 1, 2019
7cffaf0
Partially lint national guard camp json
ifreund May 1, 2019
52fb1f1
Merge pull request #30165 from ifreund/lint-json-44
kevingranade May 1, 2019
64898d6
Merge pull request #29916 from eilaattwood/fuel-rework
kevingranade May 1, 2019
0302819
add internet cafe roof
curstwist May 2, 2019
76e6121
Added a chance for lab tools to have batteries (#30155)
Inglonias May 2, 2019
0d4e2f8
Fix bio railgun description (#30142)
ZhilkinSerg May 2, 2019
1c64066
Camp Fortifications fix (#30133)
May 2, 2019
1f1a03a
Migrate throwing stick to mainline and rebalance (#30134)
kevingranade May 2, 2019
b7aa66c
Gambeson Merged Chainmail (#29482)
AeonBlack May 2, 2019
373273e
Fixing Cactuses (#29982)
TartarusKelvin May 2, 2019
a20470e
Make debug have submenus (#29964)
KorGgenT May 2, 2019
ade8c57
Added recipe for frostie_wheel
MrHrulgin May 2, 2019
dbad69e
Fixed the battery migration mod
Inglonias May 1, 2019
33a049e
Adjust durability indications in item/part repair messages
esotericist May 1, 2019
a4590d6
Fix corpses rotting instantly (#30154)
Hirmuolio May 2, 2019
9d22bc0
Rebalance floor trunks (#30173)
pjf May 2, 2019
3331e4c
Merge pull request #30171 from curstwist/add-internet-cafe-roof
Rivet-the-Zombie May 2, 2019
26c5a66
Fix #30061 - Reuse of a fix location object after it has been deleted…
neitsa May 2, 2019
5b8d59f
Fix astyle regression
ZhilkinSerg May 2, 2019
763b615
Use CXX11 pseudo-random engine and distributions for all RNG (#27062)
Muffindrake May 2, 2019
65a0502
Fix astyle regression (#30175)
ZhilkinSerg May 2, 2019
aa6252c
Finish linting national guard camp basement and remove from blacklist
ifreund May 2, 2019
afbea06
Swimmers have a 10% chance to drop cash.
Inglonias May 2, 2019
f61b5c3
Add `FULL_MAGAZINE` recipe flag
ifreund May 2, 2019
8e2abd2
Add support for `FULL_MAGAZINE` recipe flag in disassembly
ifreund May 2, 2019
263401d
Handle negative numbers correctly in rng
kevingranade May 3, 2019
02920db
Correct check for warmth from sunlight
esotericist May 3, 2019
b5ff23e
fix extra battery mod getting stuck
GearheadLydia May 3, 2019
e610ec1
Buff ranges of numerous bows
pjf May 3, 2019
0324c58
Merge pull request #30199 from esotericist/sunlight-warmth-fix
ZhilkinSerg May 3, 2019
69987f5
Merge pull request #30197 from CleverRaven/kevingranade-negative-rand…
ZhilkinSerg May 3, 2019
499c614
Merge pull request #30181 from Inglonias/nerf-swimmer-cash
ZhilkinSerg May 3, 2019
525947b
Merge pull request #30174 from MrHrulgin/patch-1
ZhilkinSerg May 3, 2019
565c71a
Merge pull request #29885 from ZhilkinSerg/feature-auto-move
Rivet-the-Zombie May 3, 2019
7d2d41a
revert re-addition of battery compartment mod
GearheadLydia May 3, 2019
0db6bd2
add battery compartment to migration.json
GearheadLydia May 3, 2019
6659b96
Routine i18n updates on May 3, 2019
BrettDong May 3, 2019
af7f5cd
Fix fortifications serialization
kevingranade May 3, 2019
7196fd8
Added check for installing parts with ON_ROOF flag
Night-Pryanik May 3, 2019
dc26c24
Added ON_ROOF flag to Aftershock's roof-mounted external 200L tank
Night-Pryanik May 3, 2019
2a9d757
Updated documentation for vehicle flags
Night-Pryanik May 3, 2019
130ca54
Move lru_cache implementation to separate files
ZhilkinSerg May 3, 2019
0a0532b
Updated tests
ZhilkinSerg May 3, 2019
a35ce28
Partially lint national guard camp json
ifreund May 2, 2019
954a0f4
Merge pull request #30177 from ifreund/lint-json-46
kevingranade May 4, 2019
9a55901
L-39 Naming inconsistencies (#30178)
tenmillimaster May 4, 2019
516a9a9
Revise durability messages again, showing before/after transitions (#…
esotericist May 4, 2019
cc3a0d3
Fix up test_weather() method in weather_gen.cpp, attach to debug menu…
esotericist May 4, 2019
9d39b31
Make square roots static in simplex noise implementation (#30215)
ZhilkinSerg May 4, 2019
2e4aa2a
Moved LRU cache implementation to separate files (#30218)
kevingranade May 4, 2019
22854db
Merge pull request #30212 from Night-Pryanik/on-roof-flag
kevingranade May 4, 2019
2ac90b3
Merge pull request #30208 from BrettDong/i18n
Rivet-the-Zombie May 4, 2019
7537c89
Add 2 church roofs
curstwist May 4, 2019
4f08538
modify stomach tests to pass with new rng logic
KorGgenT May 4, 2019
95de968
Correct name/description for vehicle-mounted charging station (#30234)
esotericist May 4, 2019
14e8f36
Fix map editor
codemime Apr 20, 2019
4ce9c86
Simplify map editor submap placement
codemime Apr 20, 2019
a1f2234
Turn submap into a class
codemime Apr 20, 2019
0ad24d5
Simplify map rotation and add very basic tests for submap rotation
codemime Apr 20, 2019
c08885e
Encapsulate submap temperature
codemime Apr 21, 2019
8ae5a7c
Relocate serialization/deserialization into submap itself
codemime Apr 21, 2019
ef86c7d
Rotate active items in the cache
codemime May 2, 2019
9b8472f
obsolete bio_furnace
May 4, 2019
b7eef83
Finish linting national guard camp json and remove from blacklist
ifreund May 4, 2019
7805e9b
Fix text error for "reload item" in game.cpp (#30247)
esotericist May 5, 2019
e91d512
Add public pool roofs
curstwist May 5, 2019
f3a679e
Merge pull request #30237 from curstwist/adds-2-church-roofs
Rivet-the-Zombie May 5, 2019
14ef77b
DeadPeople Tileset update
SomeDeadGuy May 5, 2019
e7894ed
clear_player with place_player rather than setpos
jbytheway May 2, 2019
69de386
Add in-vehicle sanity checks before setpos
jbytheway May 2, 2019
d5cb318
Test to verify that detaching a vehicle unboards passengers
jbytheway May 2, 2019
a0ddd0e
Don't call unload_npcs from tests
jbytheway May 3, 2019
c522fa2
Make game::unload_npcs private
jbytheway May 3, 2019
0196d2f
Tidy some vehicle boarding issues in vehicle_test
jbytheway May 3, 2019
7e31f8e
clear_map in bounds checking tests
jbytheway May 4, 2019
a12f3b4
Sanity-checking assertion in vehicle wreck code
jbytheway May 4, 2019
3e4152d
changes per feedback
curstwist May 5, 2019
970b5a1
Fix roof
LovamKicsiGazsii May 5, 2019
fe56b6c
Remove incorrect vehicle shifting
jbytheway May 5, 2019
0ad2864
NO_ROTATE fix
curstwist May 5, 2019
ad8c380
game::critter_by_id should return inactive npcs
jbytheway May 5, 2019
9678426
Refactor map::unboard_vehicle
jbytheway May 5, 2019
cb803be
map_helpers: tidy up dead NPCs
jbytheway May 5, 2019
1984a9c
Add furniture store roof
curstwist May 5, 2019
9da42bf
Merge branch 'master' into add-furniture-store-roof
curstwist May 5, 2019
fdd6fb3
remove malls stairs
curstwist May 5, 2019
b8cebc7
Merge pull request #30193 from jbytheway/vehicle_unboarding_fixes_take_2
kevingranade May 6, 2019
2c5f5bb
update npc hunger logic
KorGgenT May 6, 2019
94f6e87
linted mod jsons
SomeDeadGuy May 6, 2019
6872df1
Merge pull request #30257 from LovamKicsiGazsii/patch-29
Rivet-the-Zombie May 6, 2019
11db292
Skinning a corpse after failed field dressing gives reduced amount of…
Night-Pryanik May 6, 2019
77ec337
Add an initial .clang-tidy file
jbytheway Apr 23, 2019
a6ce3e4
Add a clang 8 clang-tidy build to Travis
jbytheway Apr 23, 2019
a62c11e
Factor out parallelism parameter in build.sh
jbytheway Apr 27, 2019
73f07df
Analyze changed file before others
jbytheway Apr 30, 2019
ee9ec85
Reduce analysis time limit to 15 minutes
jbytheway May 2, 2019
9cfbb49
Make it clearer when JUST_JSON invoked
jbytheway May 5, 2019
c6a6479
Make JSON change detection robust to diff errors
jbytheway May 5, 2019
60f5791
More output to debug files not being checked
jbytheway May 6, 2019
6cfc69e
Change weapon scopes recipes to requiring 2 high-quality lenses per i…
peeley May 6, 2019
81392d8
Reworded warning
Night-Pryanik May 6, 2019
01be4c7
Avoid clang-tidy error when no files
jbytheway May 6, 2019
0d6e961
Cope properly with no changed files
jbytheway May 6, 2019
86a0db8
Merge pull request #30260 from curstwist/fix-mall-stairs-bug
ZhilkinSerg May 6, 2019
2819125
Merge pull request #30262 from KorGgenT/npc-food-stuff
ZhilkinSerg May 6, 2019
8ca0394
Merge pull request #29995 from codemime/encapsulate-submap-n1
ZhilkinSerg May 6, 2019
5bef056
Merge pull request #30030 from anothersimulacrum/cbm-mod
ZhilkinSerg May 6, 2019
a45f60a
clear_traps in monster_test
jbytheway May 6, 2019
ede2a01
Refactored bandits roadblock spawn
Night-Pryanik May 6, 2019
fda5da3
Formatting cleanup in NPCs.md
jbytheway May 6, 2019
310a0df
Treat markdown changes like json changes in build
jbytheway May 6, 2019
55b4944
Merge pull request #30266 from jbytheway/clear_traps_in_monster_test
ZhilkinSerg May 6, 2019
44d7edf
Merge pull request #30270 from jbytheway/treat_markdown_changes_as_tr…
ZhilkinSerg May 6, 2019
6b87ed9
Merge pull request #30265 from Night-Pryanik/rephrase-warning-when-mo…
ZhilkinSerg May 6, 2019
ae7e5fb
Merge pull request #30249 from SomeDeadGuy/DP_TilesetUpdate
ZhilkinSerg May 6, 2019
62386ba
Merge pull request #30268 from Night-Pryanik/fix-bandits-block
ZhilkinSerg May 6, 2019
291abf2
Merge pull request #30248 from curstwist/add-public-pool-roofs
ZhilkinSerg May 6, 2019
651748d
Merge pull request #30191 from ifreund/magazine-filter
ZhilkinSerg May 6, 2019
939c8be
Astyle map_extras.cpp
May 6, 2019
277e5cf
Randomized amount of ammo spawned in vehicles
Night-Pryanik May 6, 2019
461dba1
Editorial fixes to NPCs.md from Night-Pryanik
Night-Pryanik May 6, 2019
04c99f6
Merge pull request #30271 from AMurkin/patch-1
ZhilkinSerg May 6, 2019
e3ec443
Randomized ammo amount in vehicles from Tanks mod
Night-Pryanik May 6, 2019
f8503dc
Remove obsolete id's from RetroDays
halfahermit Apr 29, 2019
c938cf8
Updated the Salvaged Robots and Aftershock mods' vehicles
Night-Pryanik May 6, 2019
ee6d4ba
Sort RetroDays tileset
halfahermit May 3, 2019
d7a66fc
Lint
Night-Pryanik May 6, 2019
bf14799
Fix savegame migration of pool overmap terrain
ZhilkinSerg May 6, 2019
bec12f5
Remove unused tiles from RetroDays tileset
halfahermit May 6, 2019
e169df3
Merge pull request #30273 from ZhilkinSerg/fix-savegame-overmap-migra…
ZhilkinSerg May 6, 2019
15c3404
fix for geiger calculation
nexusmrsep May 6, 2019
a8824ca
Initial migration: separates 10mm form .40
YukariMindGap May 6, 2019
2e347d9
Migrated .22, .223, .270, and .30-06 from recipe_deconstruction.json …
YukariMindGap May 6, 2019
ba0e005
Migrated the rest of the calibers
YukariMindGap May 6, 2019
e512f7c
almost left out 5x50
YukariMindGap May 6, 2019
d519615
tools: add a Python script to automatically create a mapgen palette
mlangsdorf May 6, 2019
4a9ac1b
national guard camp: convert to palette
mlangsdorf May 6, 2019
3094373
national guard camp: convert the basement to use a palette
mlangsdorf May 6, 2019
0a85034
Improve sort loot action when sortable items are under a cargo space
esotericist May 6, 2019
a7f8b34
mapgen: create a palette for the farm
mlangsdorf May 6, 2019
d2c5be5
fix performance
Hirmuolio May 6, 2019
2bd729a
Refactor many type ids into a single header
jbytheway Apr 27, 2019
aff4636
Run IWYU
jbytheway Apr 28, 2019
4914894
Update string_id docs
jbytheway May 6, 2019
70e06f8
Merge pull request #30278 from nexusmrsep/fix_geiger
ZhilkinSerg May 6, 2019
21ba576
Merge pull request #30277 from halfahermit/190428-retrodays-cleanup
ZhilkinSerg May 6, 2019
e558335
Merge pull request #30269 from jbytheway/npc_docs_cleanup
ZhilkinSerg May 6, 2019
89c3b48
Merge pull request #30272 from Night-Pryanik/randomize-ammo-chance-an…
ZhilkinSerg May 6, 2019
d458b54
Merge pull request #30264 from peeley/fixScopeRecipes
ZhilkinSerg May 6, 2019
545f6a3
Merge pull request #30263 from Night-Pryanik/skinning-a-corpse-after-…
ZhilkinSerg May 6, 2019
e89ee64
Fix NPC mission fail crash
Gor May 6, 2019
4a039a2
That which must not be const shall not be const.
esotericist May 6, 2019
664be36
Merge pull request #29902 from jbytheway/clang_tidy
kevingranade May 7, 2019
d4435da
npc: improve NPC omt_destination finding
mlangsdorf May 7, 2019
d09a0d2
Merge pull request #30280 from YukariMindGap/ammo-uncraft-migration
Rivet-the-Zombie May 7, 2019
e3d7ddd
Added .380 and .357 ammo disassembly recipes and fixed 308's erroneou…
YukariMindGap May 7, 2019
425c17d
Update src/activity_item_handling.cpp
ifreund May 7, 2019
58f6388
Update src/activity_item_handling.cpp
ifreund May 7, 2019
f6b2198
Fix alternate map key mod
anothersimulacrum May 7, 2019
9d96be5
refactor get_zones lambda in game::zone_manager()
esotericist May 7, 2019
30430f4
correct cata_tiles::draw_zone_mark to use zone manager ref, not a copy
esotericist May 7, 2019
7d9995d
cleanup json_flags.md.
neitsa May 7, 2019
e141639
Remove solution
neitsa May 7, 2019
de9fea1
Remove solution
neitsa May 7, 2019
2f35a9c
Merge pull request #30294 from esotericist/zone-manager-lag-fix
kevingranade May 7, 2019
46d28b4
Add nutrient override to sugar
kevingranade May 7, 2019
5ab01d9
Update 380.json
ZhilkinSerg May 7, 2019
6b2ce8f
Merge pull request #30288 from mlangsdorf/npc_better_destinations
ZhilkinSerg May 7, 2019
b1318c5
Merge pull request #30285 from egorzaderiy/fix_npc_mission_crash
ZhilkinSerg May 7, 2019
44f8566
Merge pull request #30299 from CleverRaven/kevingranade-sugar-is-sugar
ZhilkinSerg May 7, 2019
b9f5611
Merge pull request #30296 from neitsa/docs/json
ZhilkinSerg May 7, 2019
f194fce
Merge pull request #30284 from Hirmuolio/Hirmuolio-fix-lag
ZhilkinSerg May 7, 2019
2ac54fb
Merge pull request #30293 from YukariMindGap/357-380-ammo-disassembly…
ZhilkinSerg May 7, 2019
d9d44be
Merge pull request #30259 from curstwist/add-furniture-store-roof
ZhilkinSerg May 7, 2019
2cd0171
Merge pull request #30283 from esotericist/sort-action-under-vehicle-fix
ZhilkinSerg May 7, 2019
273d577
Merge pull request #30276 from mlangsdorf/palettizer
ZhilkinSerg May 7, 2019
c30a033
Merge pull request #30275 from mlangsdorf/ngc_palette
ZhilkinSerg May 7, 2019
5284c9f
Added ELECTRIC flag to zombie bio-operator
Hymore246 May 7, 2019
9131a6a
Set retrodays as default tileset for Android
ZhilkinSerg May 7, 2019
e31b24a
Merge pull request #30304 from anothersimulacrum/alt-map-key
ZhilkinSerg May 8, 2019
e39d6f2
Merge pull request #30310 from Hymore246/electric_bio_operator
ZhilkinSerg May 8, 2019
ec9c843
Merge pull request #30203 from GearheadLydia/FixBatteryCompartment
ZhilkinSerg May 8, 2019
651a2b9
Merge pull request #30153 from Night-Pryanik/zombeaver
ZhilkinSerg May 8, 2019
c2ee91f
Add a new bag and changes the container for some drugs (#30070)
damalsk May 8, 2019
428c7c0
Merge pull request #30017 from jbytheway/refactor_type_ids
ZhilkinSerg May 8, 2019
138ba4d
Merge pull request #29475 from zombiethoughts/Modify-HELMET_COMPAT
ZhilkinSerg May 8, 2019
d1b12ed
Merge pull request #30205 from pjf/bow_range_buffs
Rivet-the-Zombie May 8, 2019
c5bde7b
Randomize amount of ammo in gun spawns
Night-Pryanik May 8, 2019
41f875d
Allowed empty magazines to spawn too
Night-Pryanik May 8, 2019
93a4f19
Randomize gas mask charges on zombie soldier loot
Night-Pryanik May 8, 2019
fe0cd65
Randomized amount rolling tobacco, rolling paper and matches on spawn
Night-Pryanik May 8, 2019
0825c06
Decreased chance to spawn cash card on zombie military pilot loot fro…
Night-Pryanik May 8, 2019
01e6520
Decreased chance to spawn cash card on zombie pilot and zombie soldie…
Night-Pryanik May 8, 2019
04e6245
Update guns.json
Night-Pryanik May 8, 2019
6e49f58
Traps disarming gives morale effects (#29466)
May 8, 2019
f0362ae
Portable smoking rack (#29915)
Scischm May 8, 2019
2203dfc
Mainline hobo stove and tinder from More Survival Tools (#30138)
curstwist May 8, 2019
d225685
Japanese stuff (New profession, items, and tweaks) (#29883)
SeanWiig May 8, 2019
68ad4e0
Replace the atomic battery toolmod with atomic battery magazines (#30…
Inglonias May 8, 2019
fae402f
SUS "specific use storage" 1: immersive and realistic randomized item…
I-am-Erk May 8, 2019
1809ed9
Preparation for a new faction (#30068)
LovamKicsiGazsii May 8, 2019
ee93f4a
Merge pull request #29253 from Night-Pryanik/deaf-players-don't-hear-…
ZhilkinSerg May 8, 2019
d60dde6
Homeless shelters (#30252)
LovamKicsiGazsii May 8, 2019
ef530e6
Merge pull request #30118 from Rail-Runner/chemthrower
ZhilkinSerg May 8, 2019
22c5390
Merge pull request #30316 from Night-Pryanik/randomize-amount-of-ammo…
ZhilkinSerg May 8, 2019
ae9c227
Added a lab note with a reference to two video games (#30317)
Night-Pryanik May 8, 2019
cfb0c4d
Fix atomic battery definition in bionics tests
ZhilkinSerg May 8, 2019
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
  •  
  •  
  •  
6 changes: 6 additions & 0 deletions .clang-tidy
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
Checks: 'clang-diagnostic-*,-clang-analyzer-deadcode.DeadStores,-clang-analyzer-security.FloatLoopCounter,-clang-analyzer-core.UndefinedBinaryOperatorResult,-clang-analyzer-core.uninitialized.Assign,-clang-analyzer-cplusplus.NewDelete,-clang-analyzer-cplusplus.NewDeleteLeaks,-clang-analyzer-core.CallAndMessage,-clang-analyzer-core.NonNullParamChecker,-clang-analyzer-core.DivideZero,-clang-diagnostic-defaulted-function-deleted,-clang-analyzer-optin.cplusplus.VirtualCall,-clang-analyzer-core.uninitialized.UndefReturn'
WarningsAsErrors: '*'
HeaderFilterRegex: '.*'
FormatStyle: none

# vim:tw=0
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
/WinDepend/
/bindist/
/build/
/build-start-time
/cmake-build-debug/
/config/
/data/*.template
Expand Down
13 changes: 12 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,18 @@ jobs:

# Finally check the compiler variants
- stage: compilers
env: COMPILER=g++-4.8

# CMake Clang 8.0 Tiles with CMAKE and clang-tidy
# (analysis only; no build or tests)
env: CLANG=clang++-8 TILES=1 SOUND=1 CXXFLAGS=-Wno-unused-command-line-argument CMAKE=1 CATA_CLANG_TIDY=1
dist: trusty
compiler: clang
addons: &clang80
apt:
packages: ["clang-8", "libc6-dbg", "libc6-dbg:i386", "g++-6", "libsdl2-dev", "libsdl2-ttf-dev", "libsdl2-image-dev", "libsdl2-mixer-dev"]
sources: [*apt_sources, llvm-toolchain-trusty-8]

- env: COMPILER=g++-4.8
compiler: gcc
addons: &gcc48
apt:
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

# Cataclysm: Dark Days Ahead

Cataclysm: Dark Days Ahead is a roguelike set in a post-apocalyptic world. While some have described it as a "zombie game", there is far more to Cataclysm than that. Struggle to survive in a harsh, persistent, procedurally generated world. Scavenge the remnants of a dead civilization for food, equipment, or, if you are lucky, a vehicle with a full tank of gas to get you the hell out of Dodge. Fight to defeat or escape from a wide variety of powerful monstrosities, from zombies to giant insects to killer robots and things far stranger and deadlier, and against the others like yourself, that want what you have...
Cataclysm: Dark Days Ahead is a roguelike set in a post-apocalyptic world. While some have described it as a "zombie game", there is far more to Cataclysm than that. Struggle to survive in a harsh, persistent, procedurally generated world. Scavenge the remnants of a dead civilization for food, equipment, or, if you are lucky, a vehicle with a full tank of gas to get you the hell out of Dodge. Fight to defeat or escape from a wide variety of powerful monstrosities, from zombies to giant insects to killer robots and things far stranger and deadlier, and against the others like yourself, who want what you have...


## Download
Expand Down
86 changes: 57 additions & 29 deletions build-scripts/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,40 +4,23 @@

set -ex

num_jobs=3

function run_tests
{
$WINE "$@" -d yes -r cata --rng-seed time $EXTRA_TEST_OPTS
$WINE "$@" -d yes --rng-seed time $EXTRA_TEST_OPTS
}

function just_json
{
if [ -n $TRAVIS_COMMIT_RANGE ]
then
# If this string is populated, it will work.
files_changed="$(git diff --name-only $TRAVIS_COMMIT_RANGE)"
else
# The only time it isn't populated is on a new PR branch, where THIS will work.
files_changed="$(git diff --name-only $TRAVIS_BRANCH)"
fi
for filename in $files_changed
do
if [[ ! "$filename" =~ .json$ ]]
then
echo "$filename is not json, triggering full build."
return 1
fi
done
echo "Only json files present, skipping full build."
return 0
}
date +%s > build-start-time

export CCACHE_MAXSIZE=1G
if [ -n "$TEST_STAGE" ]
then
build-scripts/lint-json.sh
make -j 5 style-json
elif just_json
make -j "$num_jobs" style-json
elif [ -n "$JUST_JSON" ]
then
echo "Early exit on just-json change"
exit 0
fi

Expand All @@ -62,12 +45,57 @@ then
-DTILES=${TILES:-0} \
-DSOUND=${SOUND:-0} \
..
make -j3
cd ..
[ -f "${bin_path}cata_test" ] && run_tests "${bin_path}cata_test"
[ -f "${bin_path}cata_test-tiles" ] && run_tests "${bin_path}cata_test-tiles"
if [ -n "$CATA_CLANG_TIDY" ]
then
# Run clang-tidy analysis instead of regular build & test
# We could use CMake to create compile_commands.json, but that's super
# slow, so use compiledb <https://github.com/nickdiego/compiledb>
# instead.
compiledb -n make

cd ..
ln -s build/compile_commands.json

# We want to first analyze all files that changed in this PR, then as
# many others as possible, in a random order.
all_cpp_files="$( \
grep '"file": "' build/compile_commands.json | \
sed "s+.*$PWD/++;s+\"$++")"
changed_cpp_files="$( \
./build-scripts/files_changed | grep -F "$all_cpp_files" || true )"
if [ -n "$changed_cpp_files" ]
then
remaining_cpp_files="$( \
echo "$all_cpp_files" | grep -v -F "$changed_cpp_files" || true )"
else
remaining_cpp_files="$all_cpp_files"
fi

function analyze_files_in_random_order
{
if [ -n "$1" ]
then
echo "$1" | shuf | xargs -P "$num_jobs" -n 1 ./build-scripts/clang-tidy-wrapper.sh
else
echo "No files to analyze"
fi
}

echo "Analyzing changed files"
analyze_files_in_random_order "$changed_cpp_files"

echo "Analyzing remaining files"
analyze_files_in_random_order "$remaining_cpp_files"
else
# Regular build
make -j3
cd ..
# Run regular tests
[ -f "${bin_path}cata_test" ] && run_tests "${bin_path}cata_test"
[ -f "${bin_path}cata_test-tiles" ] && run_tests "${bin_path}cata_test-tiles"
fi
else
make -j3 RELEASE=1 CCACHE=1 BACKTRACE=1 CROSS="$CROSS_COMPILATION" LINTJSON=0
make -j "$num_jobs" RELEASE=1 CCACHE=1 BACKTRACE=1 CROSS="$CROSS_COMPILATION" LINTJSON=0
run_tests ./tests/cata_test
if [ -n "$MODS" ]
then
Expand Down
19 changes: 19 additions & 0 deletions build-scripts/clang-tidy-wrapper.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#!/bin/bash

# Wrapper script for clang tidy which is a no-op after some time limit to avoid
# hitting the Travis build timeout.

set -eu
set -o pipefail

seconds_since_build_start=$(($(date +%s) - $(cat build-start-time)))
time_limit=$((15*60)) # Stop 15 minutes after build started
printf "%s/%s seconds elapsed\n" "$seconds_since_build_start" "$time_limit"
if [ "$seconds_since_build_start" -gt "$time_limit" ]
then
printf "Skipping clang-tidy %s due to time limit\n" "$*"
exit 0
fi

set -x
clang-tidy "$@"
17 changes: 17 additions & 0 deletions build-scripts/files_changed
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#!/bin/bash

# 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 ]
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
else
# The only time it isn't populated is on a new PR branch, where THIS will work.
git diff --name-only $TRAVIS_BRANCH
fi
23 changes: 23 additions & 0 deletions build-scripts/requirements.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,35 @@

set -e

function just_json
{
for filename in $(./build-scripts/files_changed || echo UNKNOWN)
do
if [[ ! "$filename" =~ \.(json|md)$ ]]
then
echo "$filename is not json or markdown, triggering full build."
return 1
fi
done
echo "Only json / markdown files changed, skipping full build."
return 0
}

if just_json; then
export JUST_JSON=true
export CODE_COVERAGE=""
fi

if [ -n "${CODE_COVERAGE}" ]; then
travis_retry pip install --user pyyaml cpp-coveralls;
export CXXFLAGS=--coverage;
export LDFLAGS=--coverage;
fi

if [ -n "$CATA_CLANG_TIDY" ]; then
travis_retry pip install --user compiledb
fi

# Influenced by https://github.com/zer0main/battleship/blob/master/build/windows/requirements.sh
if [ -n "${MXE_TARGET}" ]; then
sudo add-apt-repository 'deb [arch=amd64] https://mirror.mxe.cc/repos/apt xenial main'
Expand Down
8 changes: 0 additions & 8 deletions data/json/bionics.json
Original file line number Diff line number Diff line change
Expand Up @@ -438,14 +438,6 @@
"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 slighest.",
"flags": [ "BIONIC_FAULTY" ]
},
{
"id": "bio_furnace",
"type": "bionic",
"name": "Internal Furnace",
"description": "When this bionic is active, you can burn nearly any organic material as fuel (use 'E'), recharging your power level. Some materials will burn better than others.",
"occupied_bodyparts": [ [ "TORSO", 40 ] ],
"flags": [ "BIONIC_POWER_SOURCE", "BIONIC_TOGGLED" ]
},
{
"id": "bio_geiger",
"type": "bionic",
Expand Down
24 changes: 24 additions & 0 deletions data/json/construction.json
Original file line number Diff line number Diff line change
Expand Up @@ -1873,6 +1873,30 @@
"pre_terrain": "t_water_moving_sh",
"post_terrain": "t_dock"
},
{
"type": "construction",
"description": "Place Water Mill",
"//": "Set up Water Mill",
"category": "CONSTRUCT",
"required_skills": [ [ "fabrication", 2 ] ],
"time": 40,
"qualities": [ [ { "id": "HAMMER", "level": 2 } ] ],
"components": [ [ [ "water_mill", 1 ] ] ],
"pre_terrain": "t_water_moving_sh",
"post_terrain": "f_water_mill"
},
{
"type": "construction",
"description": "Place Wind Mill",
"//": "Set up Wind Mill",
"category": "CONSTRUCT",
"required_skills": [ [ "fabrication", 2 ] ],
"time": 40,
"qualities": [ [ { "id": "DIG", "level": 1 } ] ],
"components": [ [ [ "wind_mill", 1 ] ] ],
"pre_terrain": "t_pit_shallow",
"post_terrain": "f_wind_mill"
},
{
"type": "construction",
"description": "Build Shallow Temporary Bridge",
Expand Down
4 changes: 2 additions & 2 deletions data/json/corpses.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
{ "item": "adderall", "prob": 40 },
{ "item": "id_military", "prob": 5 },
{ "item": "militarymap", "prob": 5 },
{ "item": "cash_card", "charges-min": 0, "charges-max": 50000 },
{ "item": "cash_card", "prob": 10, "charges-min": 0, "charges-max": 50000 },
{ "group": "mil_food", "prob": 15 },
{ "item": "bone_human", "count": [ 5, 8 ], "prob": 100 },
{ "item": "human_flesh", "count": [ 5, 8 ], "prob": 100 },
Expand Down Expand Up @@ -62,7 +62,7 @@
{ "item": "two_way_radio", "prob": 50 },
{ "item": "grenade", "prob": 5 },
{ "item": "id_military", "prob": 5 },
{ "item": "cash_card", "charges-min": 0, "charges-max": 50000 },
{ "item": "cash_card", "prob": 10, "charges-min": 0, "charges-max": 50000 },
{ "group": "misc_smoking", "prob": 30 }
]
},
Expand Down
2 changes: 1 addition & 1 deletion data/json/dreams.json
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@
},
{
"type": "dream",
"messages": [ "You have a strange dream about living in a cave.", "Your dreams give a strange reclusive feeling." ],
"messages": [ "You have a strange dream about living in a cave.", "Your dreams give you a strange reclusive feeling." ],
"category": "TROGLOBITE",
"strength": 1
},
Expand Down
Loading