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 upstream #15

Merged
merged 463 commits into from
Jun 27, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
463 commits
Select commit Hold shift + click to select a range
2257e8b
fixed error moving museum itemgroup stuff to own json
Mooses2k Jun 9, 2019
9de31c2
writing style issue
Mooses2k Jun 9, 2019
04a1593
array fix
Mooses2k Jun 9, 2019
44b1c18
was asked not to move to own json
Mooses2k Jun 12, 2019
f45786f
couple other fixes
Mooses2k Jun 12, 2019
1124407
fix
Mooses2k Jun 12, 2019
bebc5ad
revert xiphos dmg and fix estoc_inferior weight
Mooses2k Jun 12, 2019
30af9a5
ninjutsu revert
Mooses2k Jun 12, 2019
2e4dfcb
remove merge garbage
Mooses2k Jun 15, 2019
57310d2
again
Mooses2k Jun 15, 2019
07f9a49
whoops
Mooses2k Jun 15, 2019
6b08e16
lint
Mooses2k Jun 15, 2019
a12894e
Update data/json/techniques.json
Mooses2k Jun 15, 2019
a87ddf2
Update data/json/items/ammo.json
Mooses2k Jun 17, 2019
6d82586
Update data/json/items/ammo.json
Mooses2k Jun 17, 2019
192432f
Update data/json/martialarts.json
Mooses2k Jun 17, 2019
7d41bdb
Update data/json/martialarts.json
Mooses2k Jun 17, 2019
a4d18a2
Update data/json/techniques.json
Mooses2k Jun 17, 2019
ddadcd4
Update data/json/techniques.json
Mooses2k Jun 17, 2019
54f6583
suggested changes
Mooses2k Jun 17, 2019
0e38e88
fix merge
Mooses2k Jun 20, 2019
a3c3b33
"office" and "science" item_groups has batteries
Inglonias Jun 20, 2019
9c1385c
Warn of loss of folding
Jun 20, 2019
79f3328
Fix refueling of fires
ifreund Jun 20, 2019
d808a6f
Allow firing clay items with fire and no kiln
ArkoselabsDoesNotWork-153164711 Jun 20, 2019
80fe25a
Merge pull request #31666 from Inglonias/even-more-batteries
ZhilkinSerg Jun 20, 2019
2b674fa
Merge pull request #31665 from AMurkin/warn-loss-folding
ZhilkinSerg Jun 20, 2019
82d1cb9
Merge pull request #31667 from Rail-Runner/clayfix
ZhilkinSerg Jun 20, 2019
fb8947e
Move colony to cata namespace and add documentation (#31659)
ifreund Jun 20, 2019
d34fab8
Merge pull request #31668 from ifreund/refuel-fire-fix
ZhilkinSerg Jun 20, 2019
bbe235a
Magiclysm mod: add a magic shop and a hidden cabin (#31639)
curstwist Jun 20, 2019
41e6bf7
Increase performance of add_msg( m_debug, ... ) calls
ZhilkinSerg Jun 20, 2019
3618ca2
Save map extras with overmap (like map notes)
ZhilkinSerg Jun 20, 2019
a1ffdb3
Mark mutagen recipes as secret
kevingranade Jun 20, 2019
f4972a0
Prevent learning secret recipes at character creation
kevingranade Jun 20, 2019
e998dcc
Document new recipe flag
kevingranade Jun 20, 2019
4bbb857
Only try to translate memorial log messages if they aren't empty
ZhilkinSerg Jun 20, 2019
fe3338e
armor.json - normalized arm/leg guards layer (#31672)
RDru Jun 20, 2019
9e3ade5
Merge pull request #30886 from jbytheway/custom_clang_tidy
kevingranade Jun 20, 2019
fd1b0ea
Replace nut shelling with disassembly an obsolete old recipes
ZhilkinSerg Jun 20, 2019
8dff9b0
Merge pull request #31673 from ZhilkinSerg/performance-debug-messages
kevingranade Jun 21, 2019
d2cb0ba
fix aoe spells
KorGgenT Jun 21, 2019
1b175bc
Runes & Spells to create
Jun 21, 2019
9247dda
Merge pull request #31676 from CleverRaven/kevingranade-secret-recipes
Rivet-the-Zombie Jun 21, 2019
1941333
Alchemist rune spell
Jun 21, 2019
c77ce8c
Upped alchemist rune spell difficulty
Jun 21, 2019
58022d0
Missing rune descriptions added
Jun 21, 2019
3513fcd
Routine i18n updates on 21 Jun 2019
BrettDong Jun 21, 2019
d35f052
Magiclysm: add finger firelighter, balance spellbooks (#31683)
KorGgenT Jun 21, 2019
69f80d5
Magiclysm: Class runes for magic school-specific recipes (#31687)
ZhilkinSerg Jun 21, 2019
0f27b3f
Updated "Mundane Zombies" mod (#31690)
Hirmuolio Jun 21, 2019
6dd145c
Magiclysm : Lost Faith scenario (#31664)
Leosky Jun 21, 2019
4e9d419
Merge pull request #31689 from BrettDong/i18n
ZhilkinSerg Jun 21, 2019
8fd4c4a
Fix is_ot_type matching incorrect locations (#31669)
ralreegorganon Jun 21, 2019
5931eee
Adjust stamina regain to 1s turns
nexusmrsep Jun 21, 2019
0848d28
Update src/player.cpp
nexusmrsep Jun 21, 2019
abe1f1f
allow to open i/r/o in vehicle interaction menu to preview work
barsoosayque Jun 21, 2019
c1e36a4
reverted some debug changes
barsoosayque Jun 21, 2019
d44a725
merge upstream/master
barsoosayque Jun 21, 2019
a1950c6
remove debug include
barsoosayque Jun 21, 2019
fd997bc
* add Foodperson cape and mask tiles to HitButton_iso
kristleifur Jun 21, 2019
b9efce7
Dead People Tileset Update
SomeDeadGuy Jun 21, 2019
4f86c8d
Stamina debug tool (#31694)
nexusmrsep Jun 21, 2019
7926ffe
Magiclysm: minor spell changes (#31698)
KorGgenT Jun 21, 2019
044439e
Used to identify TALK_COMMON_MISSION.json
kwl01skz Jun 21, 2019
f1ea56f
Update src/player.cpp
nexusmrsep Jun 21, 2019
2b5ce19
* add overlay_worn_foodperson_mask_on tile to HitButton_iso
kristleifur Jun 21, 2019
3e81da1
Fixed typo
ZhilkinSerg Jun 21, 2019
83a8b63
Field related rename: `density` / `strength` -> `intensity`
ZhilkinSerg Jun 21, 2019
7a84989
Kevin dao change
Mooses2k Jun 22, 2019
e893b67
mordhau change
Mooses2k Jun 22, 2019
678b0b0
Jsonized mutation temeperature speed modifiers
ZhilkinSerg Jun 21, 2019
96e8a40
Minor magic bugfix (#31715)
KorGgenT Jun 22, 2019
1d93bf0
Medieval mod inclusion+ (#30834)
kevingranade Jun 22, 2019
b7fdc0b
Merge pull request #31692 from nexusmrsep/stamina_regain_1s
kevingranade Jun 22, 2019
63258af
Merge pull request #31700 from AnthonBerg/master
kevingranade Jun 22, 2019
764cbcc
Merge pull request #31695 from barsoosayque/dark-build
kevingranade Jun 22, 2019
3f7bd6c
Round comfort level up, not down, when searching for nearby beds. (#3…
jeremyshannon Jun 22, 2019
da1f2ee
Merge pull request #31712 from ZhilkinSerg/refactor-fields-rename-1
kevingranade Jun 22, 2019
92d3438
Revert "Adjust stamina regain to 1s turns"
kevingranade Jun 22, 2019
e8d0929
fix obsolete recipe warnings
alanbrady Jun 22, 2019
f475833
Update junkfood.json
c00ya Jun 22, 2019
8ed0315
Remove stim values from mon-stimulant drinks
kevingranade Jun 22, 2019
48db43a
Remove duplicate keybinding
Night-Pryanik Jun 22, 2019
15e5805
Merge pull request #31724 from Night-Pryanik/remove-duplicate-keybinding
ZhilkinSerg Jun 22, 2019
7ba203e
Merge pull request #31721 from c00ya/master
ZhilkinSerg Jun 22, 2019
0e06572
Fermenting Multifluid change (#31708)
sah4001 Jun 22, 2019
e93facd
Merge pull request #31701 from SomeDeadGuy/Dead-People-Tileset-update
ZhilkinSerg Jun 22, 2019
d07de6a
Merge pull request #31723 from CleverRaven/kevingranade-no-caff-no-stim
ZhilkinSerg Jun 22, 2019
6e94ad8
Merge pull request #31720 from alanbrady/obsolete-recipe
ZhilkinSerg Jun 22, 2019
3395790
Suppress warnings when loading old save with obsolete recipe list
ZhilkinSerg Jun 22, 2019
35a2039
Merge pull request #31675 from ZhilkinSerg/overmap-save-map-extras
Rivet-the-Zombie Jun 22, 2019
451cabe
Moved obsoleted food recipes to obsoletion file
ZhilkinSerg Jun 22, 2019
2ddf667
Renamed display-related variables of field type class
ZhilkinSerg Jun 22, 2019
7c93c42
Renamed display-related variables of field class
ZhilkinSerg Jun 22, 2019
e8b097d
Renamed internal variable and prefixed it with underscore
ZhilkinSerg Jun 22, 2019
6e3e09d
fix obsolete recipes showing up in favorite/recent/hidden
alanbrady Jun 22, 2019
7348590
group instead of item_group (#31730)
Fris0uman Jun 22, 2019
e421845
Merge pull request #31729 from alanbrady/obsolete-recent
ZhilkinSerg Jun 22, 2019
435b490
Added more obsolete recipes to the list
ZhilkinSerg Jun 22, 2019
194be9a
Fix martial arts buff duration and intensity stacking
Hymore246 Jun 22, 2019
485ac7d
fix shotgun itemgroups
Jun 22, 2019
5faf030
Edited the formulas to determine pickaxe dig time
deadcutlass2 Jun 22, 2019
3df532e
Make item_location copyable
jbytheway Jun 22, 2019
75a99ac
add library roofs
curstwist Jun 22, 2019
253d414
avoid confusion.
DemAvalon Jun 22, 2019
fa9e503
Update seed.json
DemAvalon Jun 22, 2019
0db43cf
Merge pull request #31738 from ymber/shotgun_fixes
Rivet-the-Zombie Jun 23, 2019
d623d97
Remove Leadworks weapons from professions, military itemgroups (#31736)
Jun 23, 2019
7579f54
Rename raw beans (seed) (#31749)
ZhilkinSerg Jun 23, 2019
3cc5996
Merge pull request #31748 from curstwist/add-library-roofs
ZhilkinSerg Jun 23, 2019
8880df9
Fix cash card stacking and display (#31732)
jbytheway Jun 23, 2019
2d4e7a3
Merge pull request #31743 from jbytheway/item_location_copy_constructor
ZhilkinSerg Jun 23, 2019
85e6bfe
Merge pull request #30817 from Rail-Runner/tacticalflintlocks
ZhilkinSerg Jun 23, 2019
d6fd769
Merge pull request #31741 from deadcutlass2/patch-1
ZhilkinSerg Jun 23, 2019
2486010
Merge pull request #31733 from Hymore246/duration-intensity-fix
ZhilkinSerg Jun 23, 2019
dc3475c
Field enumeration perf (#31686)
kevingranade Jun 23, 2019
247495d
Add a missing symbol
kwl01skz Jun 23, 2019
3c02756
Update feet.json
DemAvalon Jun 23, 2019
95a2c3c
Restore a false deletion, from 4ca7104
kwl01skz Jun 23, 2019
0e1e7e8
Merge pull request #31767 from kwl01skz/patch-20
ZhilkinSerg Jun 23, 2019
fa508ce
Support returning non-const references in random_entry_opt (#31759)
jbytheway Jun 23, 2019
cd03da5
Multiple item locations in inventory entry (#31761)
jbytheway Jun 23, 2019
6a5149d
Fix the Error message when excessive Eat/Drink (#31764)
kwl01skz Jun 23, 2019
21e2fea
Merge pull request #31765 from DemAvalon/boots-of-the-oooold-west-
ZhilkinSerg Jun 23, 2019
5ebaf64
Merge pull request #31762 from kwl01skz/patch-18
ZhilkinSerg Jun 23, 2019
1eae628
add military surplus roofs (#31769)
curstwist Jun 23, 2019
275d8a7
Renamed the "Light" to prevent translation conflicts "Light"(verb.) …
kwl01skz Jun 23, 2019
18e4c2e
A couple of new band t-shirts. (#31768)
faefux Jun 23, 2019
04825c2
Owlbears for Magiclysm (#31545)
RocketPapaya413 Jun 23, 2019
ca6f9be
Magiclysm: Spells make sounds when cast (#31710)
KorGgenT Jun 23, 2019
c2b6a99
Fix tools that use UPS conversion mods (#31766)
Inglonias Jun 23, 2019
c5fecaf
Separate .270 Winchester from .30-06 Springfield (#31758)
Jun 23, 2019
51cef08
Fix maps revealing overmap terrain subtypes
ralreegorganon Jun 23, 2019
d5e1351
Fix astyle regression
anothersimulacrum Jun 23, 2019
f26f75a
Merge pull request #31726 from ZhilkinSerg/obsolete-recipes
Rivet-the-Zombie Jun 24, 2019
a0bc98e
Make item_location::impl functions pure virtual
jbytheway Jun 23, 2019
aacd95b
Add safe_reference class
jbytheway Jun 23, 2019
0470fdb
Add safe_reference functionality to item
jbytheway Jun 23, 2019
e19911c
Store safe_reference<item> in item_location
jbytheway Jun 23, 2019
835421c
Add a test for item_location stale item handling
jbytheway Jun 23, 2019
4c1acc8
Added missing checks for null pointers
ZhilkinSerg Jun 22, 2019
022e8a4
Removed duplicate code
ZhilkinSerg Jun 22, 2019
9a2e814
Simplified boolean expressions
ZhilkinSerg Jun 22, 2019
5bb1c48
Removed duplicate entry from collection
ZhilkinSerg Jun 22, 2019
f890b6d
Void unused function parameter
ZhilkinSerg Jun 22, 2019
9e2fb38
Removed unused action from defense mode setup
ZhilkinSerg Jun 22, 2019
a4d0410
Removed non-utilized variables
ZhilkinSerg Jun 22, 2019
bbbe618
Simplified boolean check
ZhilkinSerg Jun 22, 2019
ebde134
Moved variable declarations to lower level scope
ZhilkinSerg Jun 22, 2019
475b6d1
Constant references in function parameters
ZhilkinSerg Jun 24, 2019
e67f07d
monsters: fix milking by increasing the maximum duration
mlangsdorf Jun 24, 2019
8d03197
Fix missing overrides
jbytheway Jun 24, 2019
94c5ed1
Merge pull request #31803 from mlangsdorf/milk_fix
ZhilkinSerg Jun 24, 2019
e7f5070
Update toolmod.json (#31800)
eilaattwood Jun 24, 2019
a53a97d
Merge pull request #31784 from ralreegorganon/fix-map-reveal
ZhilkinSerg Jun 24, 2019
dd1dfac
Increase butcher times to be 6 times as long (#31794)
Llama3013 Jun 24, 2019
c2a9b7f
Add more valid gunmod slots on guns
ArkoselabsDoesNotWork-153164711 Jun 24, 2019
2a68d5e
use units_remaining instead of ammo_remaining
alanbrady Jun 24, 2019
7493e9b
Closing namespace comment
jbytheway Jun 24, 2019
26966e7
to return the correct recipe name
kwl01skz Jun 24, 2019
86fecfb
Clarify the documentation.
mrkybe Jun 25, 2019
a47a9a1
Update soundpack options message
mark7 Jun 25, 2019
f104772
add finger firelighter spell to pyro book
KorGgenT Jun 25, 2019
5ce5ed4
Correct maximum sound volume in options
mark7 Jun 25, 2019
e723868
Fixing glaring typo in npc dialogue
Saint-of-Grey Jun 25, 2019
7eb2ae0
Merge pull request #31819 from Saint-of-Grey/literally-playable
Rivet-the-Zombie Jun 25, 2019
b3e070a
Reduce healing rate to realistic speeds (#31611)
KorGgenT Jun 25, 2019
b0aa37f
Rebalanced all effects for 1 second turns (#31704)
Inglonias Jun 25, 2019
fbbd1e4
Several temperature related optimizations
ZhilkinSerg Jun 21, 2019
9fc6ff6
Merge pull request #31728 from ZhilkinSerg/refactor-fields-rename-2
kevingranade Jun 25, 2019
e0c858f
Refactored trap class (#31734)
ZhilkinSerg Jun 25, 2019
a3087a7
Remove potentially expensive copying of crafting inventory
ZhilkinSerg Jun 24, 2019
3fc60b6
More generic message
Jun 24, 2019
874893a
Update med.json
Regularitee Jun 24, 2019
52841c6
Wait option: Wait until you regain stamina (#31811)
nexusmrsep Jun 25, 2019
2a1605d
Merge pull request #31814 from alanbrady/units-remain
ZhilkinSerg Jun 25, 2019
a382151
Merge pull request #31821 from mrkybe/documentation
ZhilkinSerg Jun 25, 2019
a34c05c
Don't spam high-level nether creatures
mark7 Jun 24, 2019
18337dd
Merge pull request #31826 from mark7/wb-sound-reload-warning
ZhilkinSerg Jun 25, 2019
bea28f5
Merge pull request #31827 from mark7/wb-sound-volume-max
ZhilkinSerg Jun 25, 2019
58d1954
Merge pull request #31818 from kwl01skz/patch-21
ZhilkinSerg Jun 25, 2019
42fb5dc
Merge pull request #31796 from jbytheway/item_location_stale_pointers
kevingranade Jun 25, 2019
3eec9d8
Mainline some more of More Survival Tools content (#31563)
ArkoselabsDoesNotWork-153164711 Jun 25, 2019
de083b3
Removed rotate nodes with default values
ZhilkinSerg Jun 25, 2019
615a4ed
Allowed rotation of most overmap terrains and specials
ZhilkinSerg Jun 25, 2019
285fa7e
Updated tests
ZhilkinSerg Jun 25, 2019
09d12af
Added savegame migration
ZhilkinSerg Jun 25, 2019
ca09fca
Cookie boxes no longer 95% empty space
Regularitee Jun 25, 2019
0bba7c9
adds biker NPC variation for regional dump
curstwist Jun 25, 2019
a26ac8d
add charges to small mana crystal
curstwist Jun 25, 2019
ea7cef6
Get rid of MAX_FIELD_INTENSITY define
ZhilkinSerg Jun 25, 2019
3cd0b8c
Generalized function (spew_smoke -> spew_field)
ZhilkinSerg Jun 25, 2019
0824fcd
Renamed function (adjust_field_intensity -> mod_field_intensity)
ZhilkinSerg Jun 25, 2019
6ac0ec5
Refactored material burn data to support more than 3 intensity levels
ZhilkinSerg Jun 25, 2019
0f8fdf3
Renamed some things related to fields for consistency
ZhilkinSerg Jun 25, 2019
690e5d3
Added fallback values to field types json load
ZhilkinSerg Jun 25, 2019
34186b1
Jewelry postapoc price changes (#31850)
faefux Jun 25, 2019
8931038
Remove magical damage boosts for unarmed combat
kevingranade Jun 26, 2019
e986eb2
Merge pull request #31746 from ZhilkinSerg/sa-2019-06-22
kevingranade Jun 26, 2019
bbfe6bc
Merge pull request #31810 from Rail-Runner/tacticalflintlocks2
Rivet-the-Zombie Jun 26, 2019
6a0f1c8
Go bag is an activate item with updated contents (#31750)
Hymore246 Jun 26, 2019
ed64fb4
Add sanity checks on stack_size
jbytheway Jun 26, 2019
02ead16
Apply suggestions from code review
ZhilkinSerg Jun 26, 2019
cf50251
Stamina rebalance for 1s turns - take two (#31781)
nexusmrsep Jun 26, 2019
138d26a
Fix acceptable_ammo check and magazine_adaptor doc (#31830)
alanbrady Jun 26, 2019
609a6b8
Pit construction fix (#31838)
Jun 26, 2019
f8e6357
npctalk: fix transfering non-stackable items
mlangsdorf Jun 26, 2019
618c6df
Martial arts are trained from the manual books (#31705)
nexusmrsep Jun 26, 2019
92ad82b
Allow rotation of most overmap specials and terrains (#31831)
kevingranade Jun 26, 2019
27deb2c
Magiclysm: add translocators (#31789)
KorGgenT Jun 26, 2019
5fc8138
vehicle_handle_trap: add early out if trap doesn't exist
OrenAudeles Jun 26, 2019
42d2e9f
Merge pull request #31863 from jbytheway/sanity_check_stack_size
ZhilkinSerg Jun 26, 2019
4295983
Speed Up get_heat_radiation (#31861)
OrenAudeles Jun 26, 2019
8a868a3
fix stomach ignoring expanded digestive system (#31865)
deadcutlass2 Jun 26, 2019
653ef00
cleanup regional dump mapgen (#31820)
curstwist Jun 26, 2019
e5dd444
Merge pull request #31842 from curstwist/add-biker-dump-variation-mapgen
ZhilkinSerg Jun 26, 2019
70d0000
Merge pull request #31824 from KorGgenT/fire
ZhilkinSerg Jun 26, 2019
57883d5
Merge pull request #31858 from CleverRaven/kevingranade-nerf-unarmed
ZhilkinSerg Jun 26, 2019
6493000
Fix compiling error introduced in #31789
Maddremor Jun 26, 2019
259d173
Moptimization (#31866)
kevingranade Jun 26, 2019
c88b7db
Fix compiling error introduced in #31789 (#31875)
ZhilkinSerg Jun 26, 2019
943bfbe
Merge pull request #31852 from ZhilkinSerg/refactor-fields-rename-3
kevingranade Jun 26, 2019
526b3c5
fix minimap offset
KorGgenT Jun 26, 2019
3fb8798
Merge pull request #31879 from KorGgenT/fix-minimap-offset
ZhilkinSerg Jun 26, 2019
ecf66bd
Fixed 7.62x54mmR disassemble recipe
Night-Pryanik Jun 26, 2019
7dea6cd
Refactored field emission vehicle parts
ZhilkinSerg Jun 26, 2019
0dd7001
Update JSON_FLAGS.md
ZhilkinSerg Jun 26, 2019
bb75d36
Update avatar_action.cpp
RDru Jun 26, 2019
12d8b7a
Merge pull request #31841 from Regularitee/patch-6
Rivet-the-Zombie Jun 27, 2019
b8698af
Player overmap auto-travel (#31786)
Jun 27, 2019
9db82e4
add bathroom scale (#31849)
KorGgenT Jun 27, 2019
0fe66aa
Rework active_item_cache to use safe references (#31873)
ifreund Jun 27, 2019
eeb25e8
Separate point, tripoint into new point.h
jbytheway Jun 26, 2019
2f1f35a
Allow some constructions to keep items on their tile when completed. …
ProfoundDarkness Jun 27, 2019
80bd09f
NPCs: only train at 100 practice at a time
mlangsdorf Jun 26, 2019
68c5bc7
Merge pull request #31888 from ZhilkinSerg/json-vehicle-field-emit
kevingranade Jun 27, 2019
72aa441
Allow dispensing gasoline at the lumbermill
ralreegorganon Jun 27, 2019
884e70b
Magiclysm: Rebalance spells for stamina rebalance
KorGgenT Jun 26, 2019
3118778
Revert "Cookies in plastic packets instead of 95% empty boxes"
kevingranade Jun 27, 2019
91022b0
Eliminate last get_vehicle call when vehicles are idle. (#31903)
kevingranade Jun 27, 2019
d9b7a9f
Merge pull request #31893 from RDru/bow-stamina-fix
ZhilkinSerg Jun 27, 2019
7e9d55a
Merge pull request #31884 from Night-Pryanik/7.62x54-disassemble-reci…
ZhilkinSerg Jun 27, 2019
2d18a73
say no way to grey (#31908)
kevingranade Jun 27, 2019
c9c28d5
Merge pull request #31892 from jbytheway/point_header
ZhilkinSerg Jun 27, 2019
13a0206
Unify overmap terrain matching (#31883)
ralreegorganon Jun 27, 2019
f8888f5
Acetylene torch fix (#31912)
eilaattwood Jun 27, 2019
facb626
Magiclysm: Spell encumbrance and minor spellcasting ui tweaks (#31902)
KorGgenT Jun 27, 2019
1bb9579
fixy fix fix
Jun 27, 2019
5d8dcd3
Briefs go under jumpsuit
Jun 27, 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
  •  
  •  
  •  
25 changes: 24 additions & 1 deletion .clang-tidy
Original file line number Diff line number Diff line change
@@ -1,11 +1,21 @@
# Enable some categories of checks and then disable individual ones.
# The disabled checks that appear as part of the initial alphabetical section
# enabling categories (e.g. cert-err58-cpp) are ones that do not make sense for
# this codebase and we do not intend to fix. The disabled checks appearing
# thereafter in a separate alphabetical list have yet to be triaged. We may
# fix their errors or recategorise them as checks we don't care about.
Checks: "\
bugprone-*,\
cata-*,\
cert-*,\
-cert-err58-cpp,\
clang-diagnostic-*,\
cppcoreguidelines-slicing,\
llvm-namespace-comment,\
misc-*,\
modernize-*,\
performance-*,\
readability-*,\
-bugprone-forwarding-reference-overload,\
-bugprone-inaccurate-erase,\
-bugprone-incorrect-roundings,\
-bugprone-integer-division,\
Expand All @@ -17,6 +27,19 @@ readability-*,\
-bugprone-undefined-memory-manipulation,\
-bugprone-unused-return-value,\
-bugprone-use-after-move,\
-cert-dcl03-c,\
-cert-dcl16-c,\
-cert-dcl21-cpp,\
-cert-dcl50-cpp,\
-cert-dcl58-cpp,\
-cert-dcl59-cpp,\
-cert-env33-c,\
-cert-err34-c,\
-cert-flp30-c,\
-cert-msc30-c,\
-cert-msc32-c,\
-cert-msc50-cpp,\
-cert-msc51-cpp,\
-misc-definitions-in-headers,\
-misc-non-private-member-variables-in-classes,\
-misc-redundant-expression,\
Expand Down
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -105,12 +105,12 @@ jobs:
osx_image: xcode10.1
compiler: clang

- env: CLANG=clang++-8 TILES=1 SOUND=1 CXXFLAGS=-Wno-unused-command-line-argument CMAKE=1 CATA_CLANG_TIDY=clang-tidy-8
- env: CLANG=clang++-8 TILES=1 SOUND=1 CXXFLAGS=-Wno-unused-command-line-argument CMAKE=1 CATA_CLANG_TIDY=plugin
name: "Clang-tidy CMake build with Tiles and Sound"
compiler: clang
addons: &clang8
apt:
packages: ["clang-8", "clang-tidy-8", "libsdl2-dev", "libsdl2-ttf-dev", "libsdl2-image-dev", "libsdl2-mixer-dev"]
packages: ["clang-8", "libclang-8-dev", "llvm-8-dev", "llvm-8-tools", "libsdl2-dev", "libsdl2-ttf-dev", "libsdl2-image-dev", "libsdl2-mixer-dev"]
sources: [*apt_sources, llvm-toolchain-xenial-8]

# Finally check the compiler variants
Expand Down
12 changes: 10 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ SET(CMAKE_MODULE_PATH
${CMAKE_SOURCE_DIR}/CMakeModules
)

SET(CMAKE_TLS_VERIFY ON)

# Build options
option(TILES "Build graphical tileset version." "OFF")
option(CURSES "Build curses version." "ON" )
Expand All @@ -17,8 +19,11 @@ option(USE_HOME_DIR "Use user's home directory for save files." "ON" )
option(LOCALIZE "Support for language localizations. Also enable UTF support." "ON" )
option(LANGUAGES "Compile localization files for specified languages." "" )
option(DYNAMIC_LINKING "Use dynamic linking. Or use static to remove MinGW dependency instead." "ON")
option(GIT_BINARY "Git binary name or path." "")
OPTION(PREFIX "Location of Data & GFX directories" "")
option(CATA_CLANG_TIDY_PLUGIN "Build Cata's custom clang-tidy plugin" "OFF")
set(CATA_CLANG_TIDY_INCLUDE_DIR "" CACHE STRING "Path to internal clang-tidy headers required for plugin (e.g. ClangTidy.h)")
set(CATA_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)

Expand Down Expand Up @@ -341,6 +346,9 @@ if (NOT MSVC)
add_subdirectory(src/chkjson)
endif()
add_subdirectory(tests)
if (CATA_CLANG_TIDY_PLUGIN)
add_subdirectory(tools/clang-tidy-plugin)
endif()

CONFIGURE_FILE(
"${CMAKE_CURRENT_SOURCE_DIR}/cmake_uninstall.cmake.in"
Expand Down
6 changes: 4 additions & 2 deletions COMPILING.md
Original file line number Diff line number Diff line change
Expand Up @@ -575,13 +575,15 @@ Open Terminal's preferences, turn on "Use bright colors for bold text" in "Prefe

## Visual Studio Guide

Visual Studio 2015 (or later) is required to build Cataclysm. If you use a later version of Visual Studio, you will need to [enable the Visual Studio 2015 (v140) platform toolset](https://developercommunity.visualstudio.com/content/problem/48806/cant-find-v140-in-visual-studio-2017.html). We created solution and project files in directory `msvc-full-features`. Because of the complexity and how troublesome defining every combination of build feature options are, in Visual Studio project we added all build features, including tiles, sound and localization.
Visual Studio 2017 (or later) is required to build Cataclysm: Dark Days Ahead. Solutions and project files are located in directory `msvc-full-features`. Because of the complexity and how troublesome defining every combination of build feature options are, Visual Studio projects have all build features enabled, including tiles, sound and localization.

### Dependencies

We've prepared an archive containing all the headers and libraries required to build Cataclysm: [http://dev.narc.ro/cataclysm/WinDepend-MSVC.zip](http://dev.narc.ro/cataclysm/WinDepend-MSVC.zip) or [http://dev.narc.ro/cataclysm/WinDepend-MSVC.7z](http://dev.narc.ro/cataclysm/WinDepend-MSVC.7z). The latter is smaller, but if you don't have a 7-zip archive extracter, the former one is easier to deal with.

Extract the 'WinDepend' folder and put it in the root folder of Cataclysm project. Run the "copy_dll_to_bin" batch file and then move the dll files from the bin folder into the root folder the Cataclysm project.
Extract the 'WinDepend' folder from the zip and put the 'WinDepend' folder in the root folder of Cataclysm project. Your folder structure should look like this: `.../Cataclysm-DDA/WinDepend/...`

Run the "copy_dll_to_bin" batch file and then move the dll files from the bin folder inside 'WinDepend' into the root folder the Cataclysm project. You'll probably want to use the dlls that are in `WinDepend/bin/x64/`.

### Building

Expand Down
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -685,6 +685,8 @@ TESTSRC := $(wildcard tests/*.cpp)
TESTHDR := $(wildcard tests/*.h)
JSON_FORMATTER_SOURCES := tools/format/format.cpp src/json.cpp
CHKJSON_SOURCES := src/chkjson/chkjson.cpp src/json.cpp
CLANG_TIDY_PLUGIN_SOURCES := \
$(wildcard tools/clang-tidy-plugin/*.cpp tools/clang-tidy-plugin/*/*.cpp)
TOOLHDR := $(wildcard tools/*/*.h)
# Using sort here because it has the side-effect of deduplicating the list
ASTYLE_SOURCES := $(sort \
Expand All @@ -694,6 +696,7 @@ ASTYLE_SOURCES := $(sort \
$(TESTHDR) \
$(JSON_FORMATTER_SOURCES) \
$(CHKJSON_SOURCES) \
$(CLANG_TIDY_PLUGIN_SOURCES) \
$(TOOLHDR))

_OBJS = $(SOURCES:$(SRC_DIR)/%.cpp=%.o)
Expand Down
32 changes: 31 additions & 1 deletion build-scripts/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ then
build-scripts/lint-json.sh
make -j "$num_jobs" style-json

tools/dialogue_validator.py data/json/npcs/* data/json/npcs/*/* data/json/npcs/*/*/*
# Also build chkjson (even though we're not using it), to catch any
# compile errors there
make -j "$num_jobs" chkjson
Expand All @@ -40,6 +41,17 @@ then
build_type=Debug
fi

cmake_extra_opts=

if [ "$CATA_CLANG_TIDY" = "plugin" ]
then
cmake_extra_opts="$cmake_extra_opts -DCATA_CLANG_TIDY_PLUGIN=ON"
# Need to specify the particular LLVM / Clang versions to use, lest it
# use the llvm-7 that comes by default on the Travis Xenial image.
cmake_extra_opts="$cmake_extra_opts -DLLVM_DIR=/usr/lib/llvm-8/lib/cmake/llvm"
cmake_extra_opts="$cmake_extra_opts -DClang_DIR=/usr/lib/llvm-8/lib/cmake/clang"
fi

mkdir build
cd build
cmake \
Expand All @@ -48,9 +60,25 @@ then
-DCMAKE_BUILD_TYPE="$build_type" \
-DTILES=${TILES:-0} \
-DSOUND=${SOUND:-0} \
$cmake_extra_opts \
..
if [ -n "$CATA_CLANG_TIDY" ]
then
if [ "$CATA_CLANG_TIDY" = "plugin" ]
then
make -j$num_jobs CataAnalyzerPlugin
export PATH=$PWD/tools/clang-tidy-plugin/clang-tidy-plugin-support/bin:$PATH
if ! which FileCheck
then
ls -l tools/clang-tidy-plugin/clang-tidy-plugin-support/bin
ls -l /usr/bin
echo "Missing FileCheck"
exit 1
fi
CATA_CLANG_TIDY=clang-tidy
lit -v tools/clang-tidy-plugin/test
fi

"$CATA_CLANG_TIDY" --version

# Run clang-tidy analysis instead of regular build & test
Expand Down Expand Up @@ -94,7 +122,7 @@ then
analyze_files_in_random_order "$remaining_cpp_files"
else
# Regular build
make -j3
make -j$num_jobs
cd ..
# Run regular tests
[ -f "${bin_path}cata_test" ] && run_tests "${bin_path}cata_test"
Expand All @@ -117,3 +145,5 @@ else
fi
fi
ccache --show-stats

# vim:tw=0
9 changes: 8 additions & 1 deletion build-scripts/clang-tidy-wrapper.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,12 @@ then
exit 0
fi

plugin=build/tools/clang-tidy-plugin/libCataAnalyzerPlugin.so

set -x
"$CATA_CLANG_TIDY" "$@"
if [ -f "$plugin" ]
then
LD_PRELOAD=$plugin "$CATA_CLANG_TIDY" "$@"
else
"$CATA_CLANG_TIDY" "$@"
fi
2 changes: 1 addition & 1 deletion build-scripts/requirements.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ if [ -n "${CODE_COVERAGE}" ]; then
fi

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

# Influenced by https://github.com/zer0main/battleship/blob/master/build/windows/requirements.sh
Expand Down
2 changes: 1 addition & 1 deletion data/help/texts.json
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@
"It's a good idea to pull the handbrake - \"s\" - when parking, just to be safe. If you want to get out, hit the lights, toggle cruise control, turn the engine on or off, or otherwise use the vehicle controls, press <press_control_vehicle> to bring up the \"Vehicle Controls\" menu, which has options for things you'd do from the driver's seat.",
"Examining (<press_examine>) a vehicle brings up the vehicle interaction window. The left pane shows a top-down view of your vehicle and each part of it. The middle pane shows a summmary of the vehicle's engines, batteries, storage tanks, weapons, and seating. The right panel is context sensitive, but normally has descriptions of the vehicle parts in the tile highlighted in the vehicle view on the left.",
"Across the bottom are a summary of the most important parameters of your vehicle. Safe speed is how fast you can drive without damaging the engine and maximum speed is how fast you can drive at the engine's maximum output. Acceleration is how fast your vehicle can increase speed each turn. Cargo volume is how much cargo you can store and how much stuff you have in your vehicle, mass is how much the vehicle weighs, and the Status and Wheels give a summary of the vehicle condition and wheel condition. There are also fuel indicators on the lower right that give an estimate of how quickly your fuel will run out.",
"Air drag, water drag, rolling drag, and static drag are all values that influence your vehicle's safe and maximum speed. The interaction of drag and engine power is complicated, but generally speaking, more powerful engines will make your vehicle go faster but aslo consume fuel faster.",
"Air drag, water drag, rolling drag, and static drag are all values that influence your vehicle's safe and maximum speed. The interaction of drag and engine power is complicated, but generally speaking, more powerful engines will make your vehicle go faster but also consume fuel faster.",
"Air drag increases as your vehicle gets wider or has more parts that increase the vehicle's height like full boards, aisles, or turrets. It also increases as the vehicle has a less aerodynamic profile, such as having exposed passengers or full boards at the front of the vehicle. Air drag strongly influences vehicle speed, especially at high speeds.",
"Rolling drag increases with vehicle weight and wheel count. Rigid wheels have less rolling drag per wheel than inflatable wheels, but weigh more so rolling drag may still increase when moving from inflatable wheels to rigid wheels. Tank treads have enormous rolling resistance and are very heavy, so tanks have a lot of rolling resistance. Rolling drag influences vehicle speed, but less than air drag does, especially at high speeds.",
"Vehicles that can move in water have a water drag. Water drag increases with vehicle width and draft, and draft increases with vehicle weight but is reduced by adding more boat boards and by widening or lengthening the vehicle. Water drag has enormous effect on vehicle speed in the water. See the section on water vehicles for more about draft and water drag.",
Expand Down
4 changes: 4 additions & 0 deletions data/json/bionics.json
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@
"type": "bionic",
"name": "Optical Dampers",
"description": "The lenses surgically installed over your eyes can be tinted to block out incoming light.",
"included": true,
"flags": [ "BIONIC_TOGGLED" ]
},
{
Expand Down Expand Up @@ -305,6 +306,7 @@
"type": "bionic",
"name": "Sound Dampeners",
"description": "When this bionic is active, you can block hearing completely (with Enhanced Hearing deactivated) or dampen sound slightly (with Enhanced Hearing activated).",
"included": true,
"flags": [ "BIONIC_TOGGLED" ]
},
{
Expand Down Expand Up @@ -713,6 +715,7 @@
"id": "bio_plutdump",
"type": "bionic",
"name": "Plutonium Purger",
"included": true,
"description": "Emergency reactor fuel purge ejects all fuel from your reactor.",
"act_cost": 1
},
Expand Down Expand Up @@ -1033,6 +1036,7 @@
"name": "Extended Toolset",
"description": "Extend or withdraw your integrated toolset to cut metal, pry things, or other stuff. This takes up your hand.",
"fake_item": "toolset_extended",
"included": true,
"flags": [ "BIONIC_TOGGLED", "BIONIC_WEAPON" ]
},
{
Expand Down
Loading