@wayward/types 2.12.2-beta.dev.20221111.1 → 2.12.2-beta.dev.20221112.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,13 @@
1
+ /*!
2
+ * Copyright 2011-2021 Unlok
3
+ * https://www.unlok.ca
4
+ *
5
+ * Credits & Thanks:
6
+ * https://www.unlok.ca/credits-thanks/
7
+ *
8
+ * Wayward is a copyrighted and licensed work. Modification and/or distribution of any source files is prohibited. If you wish to modify the game in any way, please refer to the modding guide:
9
+ * https://github.com/WaywardGame/types/wiki
10
+ */
11
+ import { ItemTypeExtra } from "game/item/IItem";
12
+ declare const items: Descriptions<ItemTypeExtra, [string, string]>;
13
+ export default items;
@@ -87,40 +87,41 @@ export declare enum ModRegistrationType {
87
87
  Interrupt = 14,
88
88
  InterruptChoice = 15,
89
89
  Item = 16,
90
- ItemGroup = 17,
91
- Language = 18,
92
- LanguageExtension = 19,
93
- Load = 20,
94
- MagicalProperty = 21,
95
- MenuBarButton = 22,
96
- Message = 23,
97
- MessageSource = 24,
98
- MusicTrack = 25,
99
- Note = 26,
100
- NPC = 27,
101
- OptionsSection = 28,
102
- Overlay = 29,
103
- Packet = 30,
104
- Prompt = 31,
105
- QuadrantComponent = 32,
106
- Quest = 33,
107
- QuestRequirement = 34,
108
- Registry = 35,
109
- Skill = 36,
110
- SoundEffect = 37,
111
- Stat = 38,
112
- StatusEffect = 39,
113
- Terrain = 40,
114
- TerrainDecoration = 41,
115
- TileEvent = 42,
116
- TileLayerType = 43,
117
- UsableActions = 44,
118
- UsableActionType = 45,
119
- UsableActionTypePlaceholder = 46,
120
- WorldLayer = 47,
121
- ItemTag = 48,
122
- DoodadTag = 49,
123
- EntityTag = 50
90
+ ItemExtra = 17,
91
+ ItemGroup = 18,
92
+ Language = 19,
93
+ LanguageExtension = 20,
94
+ Load = 21,
95
+ MagicalProperty = 22,
96
+ MenuBarButton = 23,
97
+ Message = 24,
98
+ MessageSource = 25,
99
+ MusicTrack = 26,
100
+ Note = 27,
101
+ NPC = 28,
102
+ OptionsSection = 29,
103
+ Overlay = 30,
104
+ Packet = 31,
105
+ Prompt = 32,
106
+ QuadrantComponent = 33,
107
+ Quest = 34,
108
+ QuestRequirement = 35,
109
+ Registry = 36,
110
+ Skill = 37,
111
+ SoundEffect = 38,
112
+ Stat = 39,
113
+ StatusEffect = 40,
114
+ Terrain = 41,
115
+ TerrainDecoration = 42,
116
+ TileEvent = 43,
117
+ TileLayerType = 44,
118
+ UsableActions = 45,
119
+ UsableActionType = 46,
120
+ UsableActionTypePlaceholder = 47,
121
+ WorldLayer = 48,
122
+ ItemTag = 49,
123
+ DoodadTag = 50,
124
+ EntityTag = 51
124
125
  }
125
126
  export interface ILanguageRegistration extends IBaseModRegistration {
126
127
  type: ModRegistrationType.Language;
@@ -263,6 +264,10 @@ export interface IItemRegistration extends IBaseModRegistration {
263
264
  name: string;
264
265
  description?: IItemRegistrationDescription;
265
266
  }
267
+ export interface IItemExtraRegistration extends IBaseModRegistration {
268
+ type: ModRegistrationType.ItemExtra;
269
+ name: string;
270
+ }
266
271
  export interface ICreatureRegistration extends IBaseModRegistration {
267
272
  type: ModRegistrationType.Creature;
268
273
  name: string;
@@ -11,7 +11,7 @@
11
11
  import type Doodad from "game/doodad/Doodad";
12
12
  import { EquipType } from "game/entity/IHuman";
13
13
  import NPC from "game/entity/npc/NPC";
14
- import type { IContainer, IDismantleComponent } from "game/item/IItem";
14
+ import type { DisplayableItemType, IContainer, IDismantleComponent } from "game/item/IItem";
15
15
  import { ItemType } from "game/item/IItem";
16
16
  import Item from "game/item/Item";
17
17
  import Message from "language/dictionary/Message";
@@ -115,7 +115,7 @@ export default class InGameScreen extends BaseScreen {
115
115
  autoOpenDialog(index: string | number, element: JQuery): boolean;
116
116
  openDialogs(): void;
117
117
  clampDialogs(): void;
118
- getItemClass(item?: Item, itemType?: ItemType): string;
118
+ getItemClass(item?: Item, itemType?: DisplayableItemType): string;
119
119
  createItemString(itemType: ItemType, item?: Item, extraClass?: string): string;
120
120
  syncItemElements(itemIds: number | number[], forceSyncDecay?: boolean): void;
121
121
  private readonly SYMBOL_LAST_NEARLY_DESTROYED;
@@ -84,5 +84,6 @@ export declare enum EnumId {
84
84
  MagicalProperty = 42,
85
85
  ItemTag = 43,
86
86
  DoodadTag = 44,
87
- EntityTag = 45
87
+ EntityTag = 45,
88
+ ItemTypeExtra = 46
88
89
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@wayward/types",
3
3
  "description": "TypeScript declarations for Wayward, used for modding.",
4
- "version": "2.12.2-beta.dev.20221111.1",
4
+ "version": "2.12.2-beta.dev.20221112.1",
5
5
  "license": "MIT",
6
6
  "repository": {
7
7
  "type": "git",