Skip to content

Commit da47f48

Browse files
committed
fix(types): support dimension use actions
Fixes #139
1 parent bfb65ce commit da47f48

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

src/types.ts

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -464,6 +464,7 @@ export type UseFunction =
464464
| CloningSyringeUseFunction
465465
| ConsumeDrugUseFunction
466466
| DelayedTransformUseFunction
467+
| DimensionTravelUseFunction
467468
| DnaEditorUseFunction
468469
| GpsDeviceUseFunction
469470
| HandCrankUseFunction
@@ -472,6 +473,7 @@ export type UseFunction =
472473
| MessageUseFunction
473474
| MulticookerUseFunction
474475
| MusicPlayerUseFunction
476+
| PocketDimensionUseFunction
475477
| ProspectPickUseFunction
476478
| RepairItemUseFunction
477479
| RevealContentsUseFunction
@@ -579,6 +581,15 @@ export type DnaEditorUseFunction = {
579581
charges_to_use?: integer;
580582
};
581583

584+
export type DimensionTravelUseFunction = {
585+
type: "dimension_travel";
586+
destination: string;
587+
travel_radius?: integer;
588+
need_charges?: integer;
589+
fail_message?: Translation;
590+
success_message?: Translation;
591+
};
592+
582593
type ItemActionUseFunction = {
583594
type: "__item_action__";
584595
id: string;
@@ -646,6 +657,14 @@ export type MessageUseFunction = {
646657
message: Translation;
647658
};
648659

660+
export type PocketDimensionUseFunction = {
661+
type: "pocket_dimension";
662+
pocket_name: Translation;
663+
entry_mapgen: string;
664+
need_charges?: integer;
665+
persistent?: boolean;
666+
};
667+
649668
// Used in mods (e.g. Magiclysm) and test data (e.g. fake.json)
650669
export type CastSpellUseFunction = {
651670
type: "cast_spell";

0 commit comments

Comments
 (0)