Server/project/assets/configs
DrakiaXYZ ebeda336db Implement live-like calculation of Weapon Maintenance XP (!164)
- Implement formula based on 30 weapon repairs done on live
- Return the repair amount as `repairAmount` from `repairItemByKit`
- Add an additional `repairPoints` to `RepairDetails` to return the repair points used
- Update `repairAmount` references to `repairPoints` to keep old behavior
- Add new parameter to rewardSkillPoints that applies live-like level scaling
- Only give weapon maintenance XP when using a repair kit

This implementation comes with a "Crit Fail" and "Crit Success" mechanic to account for live sometimes randomly being -4 or +4 off from my estimated values. By default the chance of each is 10%, and they can overlap and cancel each other out

Spreadsheet of live repair data:
https://docs.google.com/spreadsheets/d/1-tR4WYelhZfKZ3ZDbxr3nd73Y60E1wQRjDWONpMVSew/edit?usp=sharing

Useful columns:
C: The amount of dura attempted to be repaired, this is used in the estimated skill calculated
G: Hand entered value of how much skill gain I actually saw on live (Multiplied by 10 for readability. So "3.2" would be "32")
J: The estimated skill gain, based on the calculation included in this merge request
K: How far off the estimated skill gain was (Negative implies we guessed high and the actual result was lower)

One thing of note:
I've modified all the existing references to `repairAmount` to be the new `repairPoints` when a repair kit is used. This is to keep the existing behaviour outside of my direct changes as much as possible.

However, this seems to be incorrect in some cases (For example, buff chance is repairPoints/maxDura, but repairPoints will go down the higher your int. I'm assuming this is meant to be repairedDura/maxDura). May want to update these references to use `repairAmount` once they've been confirmed to expect the repair amount instead of repair points used.

Co-authored-by: DrakiaXYZ <565558+TheDgtl@users.noreply.github.com>
Reviewed-on: https://dev.sp-tarkov.com/SPT-AKI/Server/pulls/164
Co-authored-by: DrakiaXYZ <drakiaxyz@noreply.dev.sp-tarkov.com>
Co-committed-by: DrakiaXYZ <drakiaxyz@noreply.dev.sp-tarkov.com>
2023-11-02 08:56:02 +00:00
..
airdrop.json Add boss item blacklist and wire into: 2023-10-12 11:00:04 +01:00
bot.json Add empty array to prevent undefined issue during bot gen 2023-10-29 20:46:15 +00:00
core.json Version update 2023-10-10 13:24:35 +01:00
gifts.json add new gift to gifts.json (!152) 2023-10-14 10:50:52 +00:00
health.json Add Repo 2023-03-03 15:23:46 +00:00
hideout.json 0.13.5.0 (!147) 2023-10-10 11:03:20 +00:00
http.json Improved image import functionality to allow for image path overrides e.g. adjusting trader images 2023-04-15 14:07:56 +01:00
inraid.json Add streets coop extract 2023-10-12 20:45:53 +01:00
insurance.json 0.13.5.0 (!147) 2023-10-10 11:03:20 +00:00
inventory.json Add boss item blacklist and wire into: 2023-10-12 11:00:04 +01:00
item.json Add boss item blacklist and wire into: 2023-10-12 11:00:04 +01:00
locale.json Rename cz to cs 2023-10-16 18:30:55 +01:00
location.json 0.13.5.0 (!147) 2023-10-10 11:03:20 +00:00
loot.json Reduce our custom item spawn chances by an order of magnitude 2023-10-16 15:08:00 +01:00
lostondeath.json Squashed 22 commits in an attempt to fix Gitea object bloat 2023-03-05 22:02:56 +02:00
match.json 0.13.5.0 (!147) 2023-10-10 11:03:20 +00:00
playerscav.json Fixing playerscav.json error causing exceptions when karma is below -5 (!149) 2023-10-12 19:51:10 +00:00
pmc.json 0.13.5.0 (!147) 2023-10-10 11:03:20 +00:00
pmcchatresponse.json Feature: Allow PMCs that kill the player to message them a positive/negative message (!81) 2023-03-22 10:25:34 +00:00
quest.json Add missing PmcKills properties to daily scav elimination quest config 2023-11-01 11:45:24 +00:00
ragfair.json 0.13.5.0 (!147) 2023-10-10 11:03:20 +00:00
repair.json Implement live-like calculation of Weapon Maintenance XP (!164) 2023-11-02 08:56:02 +00:00
scavcase.json Add boss item blacklist and wire into: 2023-10-12 11:00:04 +01:00
seasonalevents.json Update seasonal equipment weights to match newly adjusted values 2023-11-01 10:42:54 +00:00
trader.json Send gift to player after taking coop extract 2023-10-12 20:04:50 +01:00
weather.json 0.13.5.0 (!147) 2023-10-10 11:03:20 +00:00