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

View File

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

View File

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