1551a5e793
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> |
||
---|---|---|
.. | ||
configs | ||
database | ||
images |