Replace skillType bonus property with enum

This commit is contained in:
Dev 2024-01-29 10:48:53 +00:00
parent e88a661e7e
commit 4cc7813320
3 changed files with 13 additions and 3 deletions

View File

@ -1,6 +1,7 @@
import { Item, Upd } from "@spt-aki/models/eft/common/tables/IItem";
import { IPmcDataRepeatableQuest } from "@spt-aki/models/eft/common/tables/IRepeatableQuests";
import { IRagfairOffer } from "@spt-aki/models/eft/ragfair/IRagfairOffer";
import { BonusSkillType } from "@spt-aki/models/enums/BonusSkillType";
import { BonusType } from "@spt-aki/models/enums/BonusType";
import { HideoutAreas } from "@spt-aki/models/enums/HideoutAreas";
import { MemberCategory } from "@spt-aki/models/enums/MemberCategory";
@ -502,11 +503,11 @@ export interface Bonus
value?: number;
icon?: string;
filter?: string[];
skillType?: string;
skillType?: BonusSkillType;
}
export interface Note
{
Time: number;
Text: string;
}
}

View File

@ -1,3 +1,4 @@
import { BonusSkillType } from "@spt-aki/models/enums/BonusSkillType";
import { BonusType } from "@spt-aki/models/enums/BonusType";
export interface IHideoutArea
@ -83,7 +84,7 @@ export interface StageBonus
passive: boolean;
production: boolean;
visible: boolean;
skillType?: string;
skillType?: BonusSkillType;
type: BonusType;
filter?: string[];
icon?: string;

View File

@ -0,0 +1,8 @@
export enum BonusSkillType
{
PHYSICAL = "Physical",
COMBAT = "Combat",
SPECIAL = "Special",
PRACTICAL = "Practical",
MENTAL = "Mental"
}