mirror of
https://github.com/sp-tarkov/server.git
synced 2025-02-12 15:50:42 -05:00
Merge branch '3.10.4-DEV' of https://github.com/sp-tarkov/server into 3.10.4-DEV
This commit is contained in:
commit
4344c163b0
@ -66,8 +66,8 @@
|
||||
"@types/proper-lockfile": "~4.1",
|
||||
"@types/semver": "~7.5",
|
||||
"@types/ws": "~8.5",
|
||||
"@vitest/coverage-istanbul": "~2",
|
||||
"@vitest/ui": "~2",
|
||||
"@vitest/coverage-istanbul": "^2.1.8",
|
||||
"@vitest/ui": "^2.1.8",
|
||||
"@yao-pkg/pkg": "5.12",
|
||||
"@yao-pkg/pkg-fetch": "3.5.9",
|
||||
"cross-env": "~7.0",
|
||||
@ -81,7 +81,8 @@
|
||||
"resedit": "~2.0",
|
||||
"ts-node-dev": "~2.0",
|
||||
"tsconfig-paths": "~4.2",
|
||||
"typedoc": "~0.26"
|
||||
"typedoc": "~0.26",
|
||||
"vitest": "^2.1.8"
|
||||
},
|
||||
"targets": {
|
||||
"default": {
|
||||
|
@ -578,7 +578,7 @@ export class RepeatableQuestController {
|
||||
const charismaBonus = this.profileHelper.getSkillFromProfile(pmcData, SkillTypes.CHARISMA)?.Progress ?? 0;
|
||||
for (const cost of previousChangeRequirement.changeCost) {
|
||||
// Not free, Charge player + appy charisma bonus to cost of replacement
|
||||
cost.count = Math.trunc(cost.count * (1 - Math.trunc(charismaBonus / 100) * 0.001) ?? 1);
|
||||
cost.count = Math.trunc(cost.count * (1 - Math.trunc(charismaBonus / 100) * 0.001));
|
||||
this.paymentService.addPaymentToOutput(pmcData, cost.templateId, cost.count, sessionID, output);
|
||||
if (output.warnings.length > 0) {
|
||||
return output;
|
||||
|
@ -6,7 +6,7 @@ import { IDatabaseTables } from "@spt/models/spt/server/IDatabaseTables";
|
||||
import { DatabaseServer } from "@spt/servers/DatabaseServer";
|
||||
import { ImporterUtil } from "@spt/utils/ImporterUtil";
|
||||
import { DependencyContainer, Lifecycle, container } from "tsyringe";
|
||||
import type { Environment } from "vitest";
|
||||
import type { Environment } from "vitest/environments";
|
||||
|
||||
// Manually mock the logger.
|
||||
import { WinstonLogger } from "@tests/__mocks__/WinstonLogger.mock";
|
||||
@ -26,7 +26,7 @@ export default (<Environment>{
|
||||
await importDatabase(container);
|
||||
|
||||
return {
|
||||
async teardown() {},
|
||||
async teardown() { },
|
||||
};
|
||||
},
|
||||
});
|
||||
|
@ -2,12 +2,12 @@ import path from "node:path";
|
||||
import { defineConfig } from "vitest/config";
|
||||
|
||||
export default defineConfig({
|
||||
cacheDir: "./tests/__cache__",
|
||||
test: {
|
||||
name: "spt-server",
|
||||
reporters: ["default"],
|
||||
root: "./",
|
||||
include: ["**/*.{test,spec}.?(c|m)[jt]s?(x)"],
|
||||
cache: { dir: "./tests/__cache__" },
|
||||
environment: "./tests/CustomEnvironment.ts",
|
||||
globals: true,
|
||||
coverage: {
|
Loading…
x
Reference in New Issue
Block a user