-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Standalone fault_fix object #65197
Standalone fault_fix object #65197
Conversation
1f53469
to
c75ebd7
Compare
0ebbc32
to
8f2d1f3
Compare
8f2d1f3
to
1bef8b3
Compare
1bef8b3
to
ed3147b
Compare
Spell checker encountered unrecognized words in the in-game text added in this pull request. See below for details. Click to expand
This alert is automatically generated. You can simply disregard if this is inaccurate, or (optionally) you can also add the new words to |
697b183
to
4f17b95
Compare
067d5b5
to
9884e6f
Compare
Maybe it's better to change the json filenames from
|
I don't expect a lot of files, or at least not a lot of sense to split more than per kind of fault, so worst case ~20 files in total |
9884e6f
to
f0dee35
Compare
Don't this need some documentation to explain how to write a fault object? |
f0dee35
to
bccfeda
Compare
Yep forgot about those, seems docs didn't exist even for previous fault definitions either, added some |
bccfeda
to
6fc0814
Compare
6fc0814
to
3259cd3
Compare
3259cd3
to
1f10f33
Compare
1f10f33
to
88afc11
Compare
Summary
None
Purpose of change
Work towards #64528
Describe the solution
72a8af6 Makes fault_fix (previously mending_method) a standalone json object with it's own loader. Also slightly changes schema: skills are now a dictionary, this should allow cleaner copy-from if needed and less complex json.
dd5cbc9 Merges the existing fault_fix duplicates for dirt and blackpowder cleaning / lubrication now that fixes are separate from faults.
4f17b95 Moves hardcoded
(faulty)
prefixes into json definition of the faultDescribe alternatives you've considered
Testing
Most user facing changes should be string changes;
(faulty)
is now defined per-fault, so gun with a fault_gun_chamber_spent will displayjammed
instead of faulty, salvaged bionics will displaysalvaged
, blackpowder fouled guns will displayrusting
etcThe layout of fault mending changed slightly as fault_fix now can add/remove multiple faults, unused so invisible yet but also a UI change: there's label for fault_fix modifying damage
Spawn lightly damaged cars until you get some engine faults, should be able to mend them if the requirements are fulfilled
Spawn 2 5.56 guns and some blackpowder ammo, load one with BP ammo, shoot both, see that the correct faults were added (one should have bp fouling, other normal fouling), mend both guns - see both guns lose their correspponding fouling fault
Additional context