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

Jsonize Weight capacity modifier for armor and CBM #33394

Merged
merged 14 commits into from
Aug 22, 2019

Conversation

Fris0uman
Copy link
Contributor

@Fris0uman Fris0uman commented Aug 20, 2019

Summary

SUMMARY: Infrastructure "Jsonize Weight capacity modifier for armor and CBM"

Purpose of change

Add weight capacity modifier a float that multiply the base weight capacity of a character
Add weight capacity bonus a flat value in kg that's added to weight capacity
Update description of items to show those value
Update description of CBMs to show those value plus EP and encumbrance
Fixes #32942

Describe the solution

Two new fields weight_capacity_modifier and weight_capacity_bonus that are used in get_weight_capacity()

Describe alternatives you've considered

Additional context

Updated weight_cbm to use json instead of hardcode for the weight capacity bonus

src/item.h Outdated Show resolved Hide resolved
src/item.cpp Outdated Show resolved Hide resolved
src/item.cpp Outdated Show resolved Hide resolved
@ZhilkinSerg ZhilkinSerg added <Bugfix> This is a fix for a bug (or closes open issue) [C++] Changes (can be) made in C++. Previously named `Code` [JSON] Changes (can be) made in JSON Bionics CBM (Compact Bionic Modules) labels Aug 20, 2019
src/bionics.cpp Outdated Show resolved Hide resolved
src/item.cpp Outdated Show resolved Hide resolved
src/item.cpp Outdated Show resolved Hide resolved
@ZhilkinSerg ZhilkinSerg merged commit e888867 into CleverRaven:master Aug 22, 2019
misterprimus pushed a commit to misterprimus/Cataclysm-DDA that referenced this pull request Sep 21, 2019
@Fris0uman Fris0uman deleted the weight_capacity branch September 21, 2019 21:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bionics CBM (Compact Bionic Modules) <Bugfix> This is a fix for a bug (or closes open issue) [C++] Changes (can be) made in C++. Previously named `Code` [JSON] Changes (can be) made in JSON
Projects
None yet
Development

Successfully merging this pull request may close these issues.

move weight capacity modifier to json
4 participants