feat: earning intrinsics (#872)

This commit is contained in:
Sainan 2025-01-31 17:03:14 +01:00 committed by GitHub
parent 9ab0d8d15e
commit aca0b0fe4c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 8 additions and 1 deletions

View File

@ -150,6 +150,11 @@ export const addMissionInventoryUpdates = (
addFocusXpIncreases(inventory, value); addFocusXpIncreases(inventory, value);
break; break;
} }
case "PlayerSkillGains": {
inventory.PlayerSkills.LPP_SPACE += value.LPP_SPACE;
inventory.PlayerSkills.LPP_DRIFTER += value.LPP_DRIFTER;
break;
}
default: default:
// Equipment XP updates // Equipment XP updates
if (equipmentKeys.includes(key as TEquipmentKey)) { if (equipmentKeys.includes(key as TEquipmentKey)) {

View File

@ -11,7 +11,8 @@ import {
TSolarMapRegion, TSolarMapRegion,
TEquipmentKey, TEquipmentKey,
IFusionTreasure, IFusionTreasure,
IQuestKeyClient IQuestKeyClient,
IPlayerSkills
} from "./inventoryTypes/inventoryTypes"; } from "./inventoryTypes/inventoryTypes";
export interface IThemeUpdateRequest { export interface IThemeUpdateRequest {
@ -73,6 +74,7 @@ export type IMissionInventoryUpdateRequest = {
FpsSamples: number; FpsSamples: number;
EvolutionProgress?: IEvolutionProgress[]; EvolutionProgress?: IEvolutionProgress[];
FocusXpIncreases?: number[]; FocusXpIncreases?: number[];
PlayerSkillGains: IPlayerSkills;
} & { } & {
[K in TEquipmentKey]?: IEquipmentClient[]; [K in TEquipmentKey]?: IEquipmentClient[];
}; };