Server/project/src/helpers
CZPZ 1551a5e793 feature: add probability for extra rep gain on pmc kills as pscav (!204)
Feel free to rename everything.

We can also use the new function from randomutil and replace code block below on InsuranceController.ts

```
        const maxRoll = 9999;
        const conversionFactor = 100;

        const returnChance = this.randomUtil.getInt(0, maxRoll) / conversionFactor;
        const traderReturnChance = this.insuranceConfig.returnChancePercent[traderId];
        const roll = returnChance >= traderReturnChance;
```

I killed 2 PMCs with 100% chance and gained 0.07 rep (rounding issue probably somewhere else)

![image](/attachments/00f00922-eb18-4fdc-8958-129b680af704)

Some JS problems :S

![image](/attachments/dcbeb1d1-2ee3-4809-890e-e19fe3190840)

Implements: https://dev.sp-tarkov.com/SPT-AKI/Issues/issues/150
Co-authored-by: alimoncul <alimoncul@gmail.com>
Reviewed-on: https://dev.sp-tarkov.com/SPT-AKI/Server/pulls/204
Co-authored-by: CZPZ <czpz@noreply.dev.sp-tarkov.com>
Co-committed-by: CZPZ <czpz@noreply.dev.sp-tarkov.com>
2024-01-21 17:39:37 +00:00
..
Dialogue Add missing aid value to IUserDialogInfo 2024-01-06 13:49:48 +00:00
AssortHelper.ts Formatting/Linting Changes (!168) 2023-11-16 21:42:06 +00:00
BotDifficultyHelper.ts Formatting/Linting Changes (!168) 2023-11-16 21:42:06 +00:00
BotGeneratorHelper.ts Add short circuit optimisation to isItemIncompatibleWithCurrentItems() 2024-01-19 09:56:18 +00:00
BotHelper.ts Formatting/Linting Changes (!168) 2023-11-16 21:42:06 +00:00
BotWeaponGeneratorHelper.ts Improve variable names 2024-01-19 12:10:51 +00:00
ContainerHelper.ts Formatting/Linting Changes (!168) 2023-11-16 21:42:06 +00:00
DialogueHelper.ts Merge branch 'master' of https://dev.sp-tarkov.com/SPT-AKI/Server into 3.8.0 2023-11-30 10:20:37 +00:00
DurabilityLimitsHelper.ts Formatting/Linting Changes (!168) 2023-11-16 21:42:06 +00:00
GameEventHelper.ts Formatting/Linting Changes (!168) 2023-11-16 21:42:06 +00:00
HandbookHelper.ts Reworked how the flea market categories are calculated, instead of trying to be smart and add/remove in a cache as offers are created, calculate the categories when needed 2023-12-05 20:41:43 +00:00
HealthHelper.ts Formatting/Linting Changes (!168) 2023-11-16 21:42:06 +00:00
HideoutHelper.ts Migrate getBTC() to use addItemToStash() 2024-01-20 20:26:55 +00:00
HttpServerHelper.ts Formatting/Linting Changes (!168) 2023-11-16 21:42:06 +00:00
InRaidHelper.ts feature: add probability for extra rep gain on pmc kills as pscav (!204) 2024-01-21 17:39:37 +00:00
InventoryHelper.ts Move isItemInStash into inventoryHelper 2024-01-20 20:15:03 +00:00
ItemHelper.ts Refactor handleScavCase() to use addItemToStash() 2024-01-21 16:40:14 +00:00
NotificationSendHelper.ts Improve accuracy of view profile 2024-01-06 13:40:00 +00:00
NotifierHelper.ts Formatting/Linting Changes (!168) 2023-11-16 21:42:06 +00:00
PaymentHelper.ts Formatting/Linting Changes (!168) 2023-11-16 21:42:06 +00:00
PresetHelper.ts Make use of presetHelper instead of rolling own implementation 2024-01-16 10:28:08 +00:00
ProbabilityHelper.ts Formatting/Linting Changes (!168) 2023-11-16 21:42:06 +00:00
ProfileHelper.ts Rename function profileHelper.removeCompletedQuestConditionFromProfile() to removeQuestConditionFromProfile 2024-01-10 12:37:34 +00:00
QuestConditionHelper.ts Updated server handling of quests/repeatable quests to match 0.14 changes - this will break profiles 2024-01-05 19:52:21 +00:00
QuestHelper.ts Improve buyItem() handling of multiple and stackable item purchases 2024-01-14 21:12:56 +00:00
RagfairHelper.ts Merge branch 'master' of https://dev.sp-tarkov.com/SPT-AKI/Server into 3.8.0 2023-12-15 14:16:15 +00:00
RagfairOfferHelper.ts Merge branch 'master' of https://dev.sp-tarkov.com/SPT-AKI/Server into 3.8.0 2023-12-19 17:31:19 +00:00
RagfairSellHelper.ts flea-sell-changes (!176) 2023-12-17 10:36:54 +00:00
RagfairServerHelper.ts Improve buyItem() handling of multiple and stackable item purchases 2024-01-14 21:12:56 +00:00
RagfairSortHelper.ts Formatting/Linting Changes (!168) 2023-11-16 21:42:06 +00:00
RepairHelper.ts Nullguard against missing properties 2024-01-08 21:17:23 +00:00
RepeatableQuestHelper.ts Formatting/Linting Changes (!168) 2023-11-16 21:42:06 +00:00
SecureContainerHelper.ts Add comments to various functions 2023-12-14 15:47:01 +00:00
TradeHelper.ts Fix issie with BuyRestrictionCurrent value persisting between profiles 2024-01-20 00:19:13 +00:00
TraderAssortHelper.ts Fix issie with BuyRestrictionCurrent value persisting between profiles 2024-01-20 00:19:13 +00:00
TraderHelper.ts Move trader purchases over to new system 2024-01-15 14:25:17 +00:00
UtilityHelper.ts Formatting/Linting Changes (!168) 2023-11-16 21:42:06 +00:00
WeightedRandomHelper.ts Add comments to various functions 2023-12-14 15:47:01 +00:00