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
Initial cleanup of melee code #18697
Merged
+261
−336
Merged
Changes from all commits
Commits
Show all changes
24 commits
Select commit
Hold shift + click to select a range
b82cf7b
Initial cleanup of melee code
mugling 7c1e65f
Encapsulate melee stats
mugling a7a84a4
Fix astyle
mugling 9f83d16
Handle legacy JSON flags
mugling 0fbb5c7
Fix display of damage stats
mugling 801dfa8
Add missing break clauses
mugling ee9cf71
Fix missing definition
mugling 37aad53
Refactor determination of item melee status
mugling dbb325c
Use array for efficiency
mugling 72e142b
Update LUA definitions
mugling 3fa13d4
Check for true unarmed combat
mugling c9678a3
Update player::unarmed_attack() to function doc
mugling d1438d8
Allocate melee XP proportionally with damage stats
mugling f7c4c24
Melee trains 50% of weap skill rate
mugling 35dc168
Replace silent failure with assertion
mugling a5d719c
Guns can also be melee weapons
mugling bb3399f
Further simplify is_melee() check
mugling 5373632
Restore unarmed crit chance
mugling a7c7426
Improve readability
mugling f066837
Fix training of mixed skills for unarmed weapons
mugling 9d99d23
Merge branch 'master' into melee
mugling ba8b80f
Drop spurious conditional
mugling 64e3a01
Ensure array initialization
mugling befa8b4
Drop redundant block
mugling File filter...
Filter file types
Jump to…
Jump to file or symbol
Failed to load files and symbols.
| @@ -97,4 +97,10 @@ constexpr double accuracy_goodhit = 0.5; | |||
| constexpr double accuracy_standard = 0.8; | |||
| constexpr double accuracy_grazing = 1.0; | |||
|
|
|||
| /** Minimum item damage output of relevant type to allow using with relevant weapon skill */ | |||
| #define MELEE_STAT 5 | |||
mugling
Author
Contributor
|
|||
|
|
|||
| /** Effective lower bound to combat skill levels when CQB bionic is active */ | |||
| #define BIO_CQB_LEVEL 5 | |||
|
|
|||
| #endif | |||
Oops, something went wrong.
ProTip!
Use n and p to navigate between commits in a pull request.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
That name is really ambiguous.
The old option - having
is_cutting_weaponetc. was better.Could be combined into
is_weapon( damage_type )- this would be both clear and centralized.