@wayward/types 2.12.2-beta.dev.20221030.1 → 2.12.2-beta.dev.20221102.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.
@@ -159,6 +159,7 @@ export declare enum AttackType {
159
159
  ThrowItem = 3
160
160
  }
161
161
  export declare enum DamageType {
162
+ None = 0,
162
163
  Blunt = 1,
163
164
  Slashing = 2,
164
165
  Piercing = 4,
@@ -203,10 +204,12 @@ export interface IAttack {
203
204
  }
204
205
  export interface IAttackMainHand {
205
206
  item: Item;
207
+ type: DamageType;
206
208
  value: number;
207
209
  }
208
210
  export interface IAttackOffHand {
209
211
  item: Item;
212
+ type: DamageType;
210
213
  raw: number;
211
214
  skill: number;
212
215
  result: number;
@@ -135,11 +135,13 @@ export declare class SimpleInfoProvider extends InfoProvider {
135
135
  private readonly classes;
136
136
  private readonly contents;
137
137
  private childComponentClass;
138
+ private validWhen?;
138
139
  constructor(...translations: Array<TranslationGenerator | InfoProvider>);
139
140
  get(): (import("../../language/ITranslation").ISerializedTranslation | import("../../language/impl/TranslationImpl").default | import("../../language/dictionary/UiTranslation").default | (() => import("../../language/ITranslation").ISerializedTranslation | import("../../language/impl/TranslationImpl").default | import("../../language/dictionary/UiTranslation").default | Iterable<import("../../utilities/string/Interpolator").IStringSection> | undefined) | InfoProvider)[];
140
141
  add(...translations: Array<TranslationGenerator | InfoProvider | Falsy>): this;
141
142
  onlyIfHasContents(): this | undefined;
142
143
  addInfoGetter(provider: () => InfoProvider | undefined): this;
144
+ setValidWhen(predicate: () => any): this;
143
145
  getClass(): string[];
144
146
  addClasses(...classes: string[]): this;
145
147
  protected initChildTextComponent(text: TranslationGenerator): Text;
@@ -20,5 +20,6 @@ export default class AttackInfo extends InfoProvider {
20
20
  private getMainHand;
21
21
  private getOffHand;
22
22
  private getSkillBonus;
23
+ private getAttackMultiplier;
23
24
  private getAttack;
24
25
  }
@@ -99,13 +99,14 @@ declare enum Dictionary {
99
99
  TemperatureType = 87,
100
100
  Terrain = 88,
101
101
  TileEvent = 89,
102
- Ui = 90,
103
- UiQuadrant = 91,
104
- UnableToJoinReason = 92,
105
- UnlockedRecipesStrategy = 93,
106
- UsableActionType = 94,
107
- Website = 95,
108
- WeightStatus = 96,
109
- WorldLayer = 97
102
+ TooltipVisibilityOption = 90,
103
+ Ui = 91,
104
+ UiQuadrant = 92,
105
+ UnableToJoinReason = 93,
106
+ UnlockedRecipesStrategy = 94,
107
+ UsableActionType = 95,
108
+ Website = 96,
109
+ WeightStatus = 97,
110
+ WorldLayer = 98
110
111
  }
111
112
  export default Dictionary;
@@ -63,7 +63,7 @@ import { IslandName } from "language/english/game/islandName/IslandName";
63
63
  import { ModProvide, ModType } from "mod/IModInfo";
64
64
  import { CanLoadState, ModLoadFailureReason } from "mod/IModManager";
65
65
  import { DisconnectReason, JoinServerRetryReason, UnableToJoinReason } from "multiplayer/IMultiplayer";
66
- import { MusicPlaylist } from "save/data/ISaveDataGlobal";
66
+ import { MusicPlaylist, TooltipVisibilityOption } from "save/data/ISaveDataGlobal";
67
67
  import { SaveImportErrorReason, SaveSort } from "save/ISaveManager";
68
68
  import Bindable, { BindableType } from "ui/input/Bindable";
69
69
  import { FontStyle } from "ui/IUi";
@@ -174,14 +174,15 @@ declare const dictionaryMap: {
174
174
  87: typeof TempType;
175
175
  88: typeof TerrainType;
176
176
  89: typeof TileEventType;
177
- 90: typeof UiTranslation;
178
- 91: typeof Quadrant;
179
- 92: typeof UnableToJoinReason;
180
- 93: typeof UnlockedRecipesStrategy;
181
- 94: typeof UsableActionType;
182
- 95: typeof Website;
183
- 96: typeof WeightStatus;
184
- 97: typeof WorldZ;
177
+ 90: typeof TooltipVisibilityOption;
178
+ 91: typeof UiTranslation;
179
+ 92: typeof Quadrant;
180
+ 93: typeof UnableToJoinReason;
181
+ 94: typeof UnlockedRecipesStrategy;
182
+ 95: typeof UsableActionType;
183
+ 96: typeof Website;
184
+ 97: typeof WeightStatus;
185
+ 98: typeof WorldZ;
185
186
  };
186
187
  export declare const strictDictionaries: {
187
188
  0: typeof ActionType;
@@ -274,14 +275,15 @@ export declare const strictDictionaries: {
274
275
  87: typeof TempType;
275
276
  88: typeof TerrainType;
276
277
  89: typeof TileEventType;
277
- 90: typeof UiTranslation;
278
- 91: typeof Quadrant;
279
- 92: typeof UnableToJoinReason;
280
- 93: typeof UnlockedRecipesStrategy;
281
- 94: typeof UsableActionType;
282
- 95: typeof Website;
283
- 96: typeof WeightStatus;
284
- 97: typeof WorldZ;
278
+ 90: typeof TooltipVisibilityOption;
279
+ 91: typeof UiTranslation;
280
+ 92: typeof Quadrant;
281
+ 93: typeof UnableToJoinReason;
282
+ 94: typeof UnlockedRecipesStrategy;
283
+ 95: typeof UsableActionType;
284
+ 96: typeof Website;
285
+ 97: typeof WeightStatus;
286
+ 98: typeof WorldZ;
285
287
  };
286
288
  export declare type DictionaryEnum = (typeof dictionaryMap)[Dictionary];
287
289
  export declare type DictionaryEntryEnums = {
@@ -387,6 +389,7 @@ declare const dictionaries: {
387
389
  95: typeof SYMBOL_ANY_DICTIONARY | Enum;
388
390
  96: typeof SYMBOL_ANY_DICTIONARY | Enum;
389
391
  97: typeof SYMBOL_ANY_DICTIONARY | Enum;
392
+ 98: typeof SYMBOL_ANY_DICTIONARY | Enum;
390
393
  } & Record<number, typeof SYMBOL_ANY_DICTIONARY | Enum | undefined> & {
391
394
  getByEnum: typeof getByEnum;
392
395
  };