@wayward/types 2.13.4-beta.dev.20230705.3 → 2.13.5-beta

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.
Files changed (108) hide show
  1. package/LICENSE +20 -20
  2. package/README.md +27 -27
  3. package/definitions/game/game/entity/Human.d.ts +2 -2
  4. package/definitions/game/game/entity/IHuman.d.ts +6 -0
  5. package/definitions/game/game/entity/action/ActionsRegistration.d.ts +9 -9
  6. package/definitions/game/game/entity/action/actions/Dismount.d.ts +1 -1
  7. package/definitions/game/game/entity/action/actions/Drop.d.ts +1 -1
  8. package/definitions/game/game/entity/action/actions/Extinguish.d.ts +1 -1
  9. package/definitions/game/game/entity/action/actions/InterruptResponse.d.ts +14 -0
  10. package/definitions/game/game/entity/action/actions/Paddle.d.ts +14 -0
  11. package/definitions/game/game/entity/action/actions/Rename.d.ts +1 -1
  12. package/definitions/game/game/entity/action/actions/Repair.d.ts +1 -1
  13. package/definitions/game/game/entity/action/actions/Rest.d.ts +1 -1
  14. package/definitions/game/game/entity/action/actions/Ride.d.ts +1 -1
  15. package/definitions/game/game/entity/action/actions/Sleep.d.ts +1 -1
  16. package/definitions/game/game/entity/action/actions/ToggleVehicle.d.ts +1 -1
  17. package/definitions/game/game/entity/action/actions/UpdateItemQuickSlot.d.ts +14 -0
  18. package/definitions/game/game/entity/action/actions/Upgrade.d.ts +1 -1
  19. package/definitions/game/game/entity/action/actions/UseItem.d.ts +14 -0
  20. package/definitions/game/game/entity/action/actions/helper/GatherTreasure.d.ts +22 -0
  21. package/definitions/game/game/entity/action/usable/actions/UsableActionsWorld.d.ts +1 -1
  22. package/definitions/game/game/entity/creature/Pathing.d.ts +30 -0
  23. package/definitions/game/game/entity/npc/NPC.d.ts +1 -1
  24. package/definitions/game/game/entity/npc/npcs/IMerchant.d.ts +12 -0
  25. package/definitions/game/game/entity/npc/npcs/Shipper.d.ts +1 -1
  26. package/definitions/game/game/entity/player/quest/Requirements.d.ts +4 -4
  27. package/definitions/game/game/entity/player/quest/requirement/BuildRequirement.d.ts +1 -1
  28. package/definitions/game/game/entity/player/quest/requirement/CollectItemRequirement.d.ts +1 -1
  29. package/definitions/game/game/entity/player/quest/requirement/CraftRequirement.d.ts +1 -1
  30. package/definitions/game/game/entity/player/quest/requirement/DismantleRequirement.d.ts +1 -1
  31. package/definitions/game/game/inspection/infoProviders/creature/CreatureHealth.d.ts +17 -0
  32. package/definitions/game/game/inspection/infoProviders/creature/CreatureTamedInfo.d.ts +1 -1
  33. package/definitions/game/game/inspection/infoProviders/creature/Happiness.d.ts +22 -0
  34. package/definitions/game/game/inspection/infoProviders/item/ItemDetails.d.ts +1 -1
  35. package/definitions/game/game/inspection/infoProviders/item/ItemUses.d.ts +74 -74
  36. package/definitions/game/game/inspection/infoProviders/item/use/ItemDisassembleInfo.d.ts +1 -1
  37. package/definitions/game/game/inspection/infoProviders/shared/SharedLightSourceInfo.d.ts +1 -1
  38. package/definitions/game/game/inspection/infoProviders/stat/AttackInfo.d.ts +1 -1
  39. package/definitions/game/game/inspection/infoProviders/stat/FerocityInfo.d.ts +1 -1
  40. package/definitions/game/game/inspection/inspections/CorpseInspection.d.ts +1 -1
  41. package/definitions/game/game/item/Item.d.ts +1 -2
  42. package/definitions/game/game/item/ItemManager.d.ts +8 -1
  43. package/definitions/game/game/magic/MagicalPropertyManager.d.ts +1 -1
  44. package/definitions/game/game/options/modifiers/milestone/MilestoneModifiersManager.d.ts +1 -1
  45. package/definitions/game/game/reference/IReferenceManager.d.ts +1 -1
  46. package/definitions/game/game/reference/ReferenceManager.d.ts +3 -2
  47. package/definitions/game/language/Dictionary.d.ts +14 -13
  48. package/definitions/game/language/DictionaryMap.d.ts +29 -27
  49. package/definitions/game/language/dictionary/Misc.d.ts +4 -0
  50. package/definitions/game/language/dictionary/UiTranslation.d.ts +604 -600
  51. package/definitions/game/language/english/player/BadTemperatureLevels.d.ts +13 -0
  52. package/definitions/game/language/english/player/ExhaustionLevels.d.ts +13 -0
  53. package/definitions/game/language/english/player/Slot.d.ts +13 -0
  54. package/definitions/game/language/english/ui/ChangelogSections.d.ts +13 -0
  55. package/definitions/game/language/english/ui/PowerModes.d.ts +13 -0
  56. package/definitions/game/language/english/ui/SteamInputKeyboardPosition.d.ts +13 -0
  57. package/definitions/game/multiplayer/Multiplayer.d.ts +5 -0
  58. package/definitions/game/multiplayer/packets/client/DisplayInterruptPacket.d.ts +19 -0
  59. package/definitions/game/multiplayer/packets/client/EmitPlayerEventPacket.d.ts +20 -0
  60. package/definitions/game/multiplayer/packets/client/SetPlayerZPacket.d.ts +16 -0
  61. package/definitions/game/multiplayer/packets/server/KeepAlivePacket.d.ts +21 -0
  62. package/definitions/game/multiplayer/packets/server/LogsPacket.d.ts +19 -0
  63. package/definitions/game/multiplayer/packets/server/UiDataUpdatePacket.d.ts +18 -0
  64. package/definitions/game/multiplayer/packets/server/UpdateDialogInfoPacket.d.ts +20 -0
  65. package/definitions/game/multiplayer/packets/server/UpdateQuickSlotInfoPacket.d.ts +20 -0
  66. package/definitions/game/multiplayer/packets/shared/MarkAsExploredPacket.d.ts +18 -0
  67. package/definitions/game/multiplayer/packets/shared/UpdateMovementIntentPacket.d.ts +18 -0
  68. package/definitions/game/multiplayer/packets/shared/UpdateWalkPathPacket.d.ts +20 -0
  69. package/definitions/game/renderer/particle/Particle.d.ts +41 -0
  70. package/definitions/game/renderer/spriteBatch/SpriteBatch.d.ts +13 -0
  71. package/definitions/game/save/data/ISaveDataGlobal.d.ts +6 -0
  72. package/definitions/game/ui/component/Article.d.ts +14 -0
  73. package/definitions/game/ui/component/Input.d.ts +6 -1
  74. package/definitions/game/ui/component/InputButton.d.ts +0 -1
  75. package/definitions/game/ui/input/BindableManager.d.ts +2 -2
  76. package/definitions/game/ui/input/IInput.d.ts +1 -1
  77. package/definitions/game/ui/old/functional/FunctionalTooltip.d.ts +11 -0
  78. package/definitions/game/ui/old/functional/IFunctionalTooltip.d.ts +37 -0
  79. package/definitions/game/ui/screen/screens/game/component/Item.d.ts +131 -0
  80. package/definitions/game/ui/screen/screens/game/component/ItemComponent.d.ts +1 -1
  81. package/definitions/game/ui/screen/screens/game/component/QuadrantComponent.d.ts +1 -1
  82. package/definitions/game/ui/screen/screens/game/dialog/EquipmentDialog.d.ts +1 -1
  83. package/definitions/game/ui/screen/screens/game/dialog/IslandsDialog.d.ts +65 -0
  84. package/definitions/game/ui/screen/screens/game/static/ActionBar.d.ts +6 -1
  85. package/definitions/game/ui/screen/screens/game/static/Quickslots.d.ts +20 -0
  86. package/definitions/game/ui/screen/screens/game/static/actions/ActionBarBindableManager.d.ts +5 -5
  87. package/definitions/game/ui/screen/screens/game/static/stats/IStatDisplayDescription.d.ts +1 -1
  88. package/definitions/game/ui/screen/screens/game/static/stats/Reputation.d.ts +13 -0
  89. package/definitions/game/ui/screen/screens/menu/menus/HelpArticle.d.ts +16 -0
  90. package/definitions/game/ui/screen/screens/menu/menus/newgame/customgameoptions/TabInventory.d.ts +15 -0
  91. package/definitions/game/ui/screen/screens/menu/menus/newgame/customgameoptions/TabIsland.d.ts +15 -0
  92. package/definitions/game/ui/screen/screens/menu/menus/options/BindingsMenu.d.ts +23 -0
  93. package/definitions/game/ui/screen/screens/menu/menus/pause/ModesMenu.d.ts +22 -0
  94. package/definitions/game/utilities/collection/Arrays.d.ts +1 -0
  95. package/definitions/game/utilities/game/TileHelpers.d.ts +123 -0
  96. package/definitions/game/utilities/game/TilePosition.d.ts +12 -0
  97. package/definitions/game/utilities/random/generators/RandomItem.d.ts +26 -0
  98. package/definitions/game/utilities/random/generators/RandomRange.d.ts +26 -0
  99. package/definitions/hosts/shared/globals.d.ts +1 -1
  100. package/definitions/language-sync/language.d.ts +11 -0
  101. package/definitions/test/util/mochaNUnitReporter.d.ts +38 -0
  102. package/package.json +24 -24
  103. package/tsconfig.json +7 -7
  104. package/tsconfig.mod.base.json +45 -44
  105. /package/definitions/game/game/entity/action/actions/{PickUp.d.ts → Pickup.d.ts} +0 -0
  106. /package/definitions/game/game/entity/action/actions/{PickUpAllItems.d.ts → PickupAllItems.d.ts} +0 -0
  107. /package/definitions/game/game/entity/action/actions/{PickUpExcrement.d.ts → PickupExcrement.d.ts} +0 -0
  108. /package/definitions/game/game/entity/action/actions/{PickUpItem.d.ts → PickupItem.d.ts} +0 -0
package/LICENSE CHANGED
@@ -1,21 +1,21 @@
1
- The MIT License (MIT)
2
-
3
- Copyright (c) 2019 Wayward
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2019 Wayward
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
21
  SOFTWARE.
package/README.md CHANGED
@@ -1,27 +1,27 @@
1
- # [Wayward Modding Guide](https://github.com/WaywardGame/types/wiki)
2
- Learn how to mod Wayward.
3
-
4
- ## **[➡ New Modders Start Here! ⬅](https://github.com/WaywardGame/types/wiki)**
5
-
6
- ## Documentation
7
- - [`+mod create` & `+mod update`](https://github.com/WaywardGame/types/wiki/mod-create-&-update) — Documentation on the commands used to generate starter files for modding, and updating script mods.
8
- - [`mod.json`](https://github.com/WaywardGame/types/wiki/mod.json) — Documentation on what all can be declared in the main mod metadata file.
9
- - [Extracting assets](https://github.com/WaywardGame/types/wiki/Extracting-Wayward-Assets) — A guide on extracting textures, sounds, and more from Wayward.
10
-
11
- ## Mod Content
12
- - [Scripts](https://github.com/WaywardGame/types/wiki/Script-Mods) — Create mods that change the functionality of the game, or add new content
13
- - [Languages & Extensions](https://github.com/WaywardGame/types/wiki/Languages-&-Extensions) — Adding new languages to Wayward, or adding translatable strings to mods.
14
- - [Customizations](https://github.com/WaywardGame/types/wiki/Customizations) — Adding new hair styles, hair colours, and skin tones
15
- - [Image Overrides](https://github.com/WaywardGame/types/wiki/Image-Overrides) — Replacing default sprites & textures
16
- - [Stylesheets](https://github.com/WaywardGame/types/wiki/Stylesheets) — Changing the appearance of the UI
17
-
18
- # Other Useful Links
19
-
20
- ## [Wayward Types Viewer](https://waywardgame.github.io/)
21
- A pretty, searchable list of all the type definitions in Wayward. This `types` repository is actually the same stuff you can find on this website, but it's the *raw* form of it!
22
-
23
- ## [Modding Examples](https://github.com/WaywardGame)
24
- Every official mod created for Wayward, and some other Wayward-related projects.
25
-
26
- ## [Steam Workshop](http://steamcommunity.com/app/379210/workshop/)
27
- Where Wayward mods are published.
1
+ # [Wayward Modding Guide](https://github.com/WaywardGame/types/wiki)
2
+ Learn how to mod Wayward.
3
+
4
+ ## **[➡ New Modders Start Here! ⬅](https://github.com/WaywardGame/types/wiki)**
5
+
6
+ ## Documentation
7
+ - [`+mod create` & `+mod update`](https://github.com/WaywardGame/types/wiki/mod-create-&-update) — Documentation on the commands used to generate starter files for modding, and updating script mods.
8
+ - [`mod.json`](https://github.com/WaywardGame/types/wiki/mod.json) — Documentation on what all can be declared in the main mod metadata file.
9
+ - [Extracting assets](https://github.com/WaywardGame/types/wiki/Extracting-Wayward-Assets) — A guide on extracting textures, sounds, and more from Wayward.
10
+
11
+ ## Mod Content
12
+ - [Scripts](https://github.com/WaywardGame/types/wiki/Script-Mods) — Create mods that change the functionality of the game, or add new content
13
+ - [Languages & Extensions](https://github.com/WaywardGame/types/wiki/Languages-&-Extensions) — Adding new languages to Wayward, or adding translatable strings to mods.
14
+ - [Customizations](https://github.com/WaywardGame/types/wiki/Customizations) — Adding new hair styles, hair colours, and skin tones
15
+ - [Image Overrides](https://github.com/WaywardGame/types/wiki/Image-Overrides) — Replacing default sprites & textures
16
+ - [Stylesheets](https://github.com/WaywardGame/types/wiki/Stylesheets) — Changing the appearance of the UI
17
+
18
+ # Other Useful Links
19
+
20
+ ## [Wayward Types Viewer](https://waywardgame.github.io/)
21
+ A pretty, searchable list of all the type definitions in Wayward. This `types` repository is actually the same stuff you can find on this website, but it's the *raw* form of it!
22
+
23
+ ## [Modding Examples](https://github.com/WaywardGame)
24
+ Every official mod created for Wayward, and some other Wayward-related projects.
25
+
26
+ ## [Steam Workshop](http://steamcommunity.com/app/379210/workshop/)
27
+ Where Wayward mods are published.
@@ -16,7 +16,7 @@ import { CreatureType } from "game/entity/creature/ICreature";
16
16
  import EntityWithStats from "game/entity/EntityWithStats";
17
17
  import type { IAttack, ICausesDamage, IEntityConstructorOptions } from "game/entity/IEntity";
18
18
  import { AttackType, DamageType, IStatChangeInfo, StatusEffectChangeReason, StatusType } from "game/entity/IEntity";
19
- import type { ICheckUnderOptions, ICrafted, ICustomizations, IHumanEvents, ILoadOnIslandOptions, IRestData, IVoyageInfo } from "game/entity/IHuman";
19
+ import type { ICheckUnderOptions, ICrafted, ICustomizations, IHumanEvents, ILoadOnIslandOptions, IRestData, IVoyageInfo, WalkPathChangeReason } from "game/entity/IHuman";
20
20
  import { EquipType, RestCancelReason, SkillType } from "game/entity/IHuman";
21
21
  import type { IStat } from "game/entity/IStats";
22
22
  import { Stat } from "game/entity/IStats";
@@ -254,7 +254,7 @@ export default abstract class Human<TypeType extends number = number> extends En
254
254
  getMovementIntent(): IMovementIntent;
255
255
  updateMovementIntent(movementIntent: IMovementIntent): boolean;
256
256
  hasWalkPath(): boolean;
257
- setWalkPath(path: IVector2[] | undefined, force?: boolean): void;
257
+ setWalkPath(path: IVector2[] | undefined, force?: boolean, reason?: WalkPathChangeReason): void;
258
258
  protected onDie(): void;
259
259
  checkUnder(inFacingDirection?: boolean, options?: ICheckUnderOptions): ICheckUnderOptions;
260
260
  trampleFire(fireEvent: TileEvent): void;
@@ -159,6 +159,11 @@ export interface IHumanEvents extends Events<EntityWithStats>, ISkillEvents {
159
159
  * @returns The movement intent of the player or undefined to use the default logic
160
160
  */
161
161
  getMovementIntent(): IMovementIntent | undefined;
162
+ /**
163
+ * Called when the walk path of the player is about to change.
164
+ * @returns False to prevent the walk path change or undefined to use the default logic
165
+ */
166
+ canChangeWalkPath(walkPath: IVector2[] | undefined, reason: WalkPathChangeReason): false | undefined;
162
167
  /**
163
168
  * Called when the walk path of the player changes.
164
169
  */
@@ -376,6 +381,7 @@ export declare enum RestCancelReason {
376
381
  WaterPoured = 7
377
382
  }
378
383
  export declare const restCancelReasonMessageMap: Record<RestCancelReason, Message | undefined>;
384
+ export type WalkPathChangeReason = "Damage" | "Overburdened" | "Unknown";
379
385
  export interface IRestData {
380
386
  type: RestType;
381
387
  startHealth: number;
@@ -35,7 +35,7 @@ export declare const actionDescriptionsSlow: {
35
35
  13: import("./Action").Action<[[import("game/entity/action/IAction").ActionArgument.ItemInventory, import("game/entity/action/IAction").ActionArgument.Undefined]], import("../Human").default<number>, void, import("game/entity/action/actions/Dig").IDigGenericCanUse | import("game/entity/action/actions/Dig").IDigTileCanUse, [(import("../../item/Item").default | undefined)?]>;
36
36
  0: import("./Action").Action<[import("game/entity/action/IAction").ActionArgument.ItemNearby, [import("game/entity/action/IAction").ActionArgument.OptionalItemArrayNearby, import("game/entity/action/IAction").ActionArgument.Undefined]], import("../Human").default<number>, void, import("game/entity/action/actions/Disassemble").IDisassembleCanUse, [import("../../item/Item").default, ((import("../../item/Item").default | undefined)[] | undefined)?]>;
37
37
  40: import("./Action").Action<[import("game/entity/action/IAction").ActionArgument.ItemNearby, [import("game/entity/action/IAction").ActionArgument.ItemNearby, import("game/entity/action/IAction").ActionArgument.Undefined]], import("../Human").default<number>, void, import("game/entity/action/actions/Dismantle").IDismantleCanUse, [import("../../item/Item").default, (import("../../item/Item").default | undefined)?]>;
38
- 113: import("./Action").Action<[[import("game/entity/action/IAction").ActionArgument.ItemNearby, import("game/entity/action/IAction").ActionArgument.Doodad, import("game/entity/action/IAction").ActionArgument.Undefined]], import("../Human").default<number>, void, import("game/entity/action/actions/ToggleVehicle").ToggleVehicleCanUse, [(import("../../doodad/Doodad").default | import("../../item/Item").default | undefined)?]>;
38
+ 113: import("./Action").Action<[[import("game/entity/action/IAction").ActionArgument.ItemNearby, import("game/entity/action/IAction").ActionArgument.Doodad, import("game/entity/action/IAction").ActionArgument.Undefined]], import("../Human").default<number>, void, import("game/entity/action/actions/ToggleVehicle").ToggleVehicleCanUse, [(import("../../item/Item").default | import("../../doodad/Doodad").default | undefined)?]>;
39
39
  39: import("./Action").Action<[import("game/entity/action/IAction").ActionArgument.ItemNearby], import("../Human").default<number>, void, {
40
40
  usable: true;
41
41
  }, [import("../../item/Item").default]>;
@@ -46,12 +46,12 @@ export declare const actionDescriptionsSlow: {
46
46
  items: import("../../item/Item").default[];
47
47
  into: import("../../item/IItem").IContainer | undefined;
48
48
  tile: import("../../tile/Tile").default;
49
- }, [(import("../../item/Item").default | import("../../item/IItem").ItemType | import("../../item/Item").default[] | undefined)?, (import("../../IObject").Quality | undefined)?, (string | undefined)?, (number | undefined)?, (import("../../item/IItem").IContainer | undefined)?]>;
49
+ }, [(import("../../item/IItem").ItemType | import("../../item/Item").default | import("../../item/Item").default[] | undefined)?, (import("../../IObject").Quality | undefined)?, (string | undefined)?, (number | undefined)?, (import("../../item/IItem").IContainer | undefined)?]>;
50
50
  7: import("./Action").Action<[import("game/entity/action/IAction").ActionArgument.ItemNearby], import("../Human").default<number>, void, import("./actions/ConsumeItem").IConsumeItemCanUse, [import("../../item/Item").default]>;
51
51
  83: import("./Action").Action<[import("game/entity/action/IAction").ActionArgument.ItemNearby, [import("game/entity/action/IAction").ActionArgument.ItemNearby, import("game/entity/action/IAction").ActionArgument.Undefined]], import("../Human").default<number>, void, import("game/entity/action/actions/Enchant").IEnchantCanUse, [import("../../item/Item").default, (import("../../item/Item").default | undefined)?]>;
52
52
  93: import("./Action").Action<[import("game/entity/action/IAction").ActionArgument.ItemInventory, [import("game/entity/action/IAction").ActionArgument.ItemInventory, import("game/entity/action/IAction").ActionArgument.Undefined]], import("../Human").default<number>, void, import("game/entity/action/actions/Enhance").IEnhanceCanUse, [import("../../item/Item").default, (import("../../item/Item").default | undefined)?]>;
53
53
  63: import("./Action").Action<[import("game/entity/action/IAction").ActionArgument.ItemNearby, import("game/entity/action/IAction").ActionArgument.EquipType], import("../Human").default<number>, boolean, import("game/entity/action/actions/Equip").IEquipCanUse, [import("../../item/Item").default, import("../IHuman").EquipType]>;
54
- 38: import("./Action").Action<[[import("game/entity/action/IAction").ActionArgument.Undefined, import("game/entity/action/IAction").ActionArgument.ItemNearby, import("game/entity/action/IAction").ActionArgument.Doodad]], import("../Human").default<number>, void, import("game/entity/action/IAction").IActionUsable, [(import("../../doodad/Doodad").default | import("../../item/Item").default | undefined)?]>;
54
+ 38: import("./Action").Action<[[import("game/entity/action/IAction").ActionArgument.Undefined, import("game/entity/action/IAction").ActionArgument.ItemNearby, import("game/entity/action/IAction").ActionArgument.Doodad]], import("../Human").default<number>, void, import("game/entity/action/IAction").IActionUsable, [(import("../../item/Item").default | import("../../doodad/Doodad").default | undefined)?]>;
55
55
  110: import("./Action").Action<[import("game/entity/action/IAction").ActionArgument.ItemInventory, [import("game/entity/action/IAction").ActionArgument.ItemInventory, import("game/entity/action/IAction").ActionArgument.Undefined]], import("../Human").default<number>, void, import("game/entity/action/actions/Exude").IExudeCanUse, [import("../../item/Item").default, (import("../../item/Item").default | undefined)?]>;
56
56
  36: import("./Action").Action<[import("game/entity/action/IAction").ActionArgument.ItemInventory], import("../Human").default<number>, void, import("game/entity/action/actions/Attack").IAttackCloseUpCanUse | import("game/entity/action/actions/Attack").IAttackThrowItemCanUse | import("game/entity/action/actions/Attack").IAttackRangedWeaponCanUse, [import("../../item/Item").default]>;
57
57
  22: import("./Action").Action<[[import("game/entity/action/IAction").ActionArgument.ItemInventory, import("game/entity/action/IAction").ActionArgument.Undefined], [import("game/entity/action/IAction").ActionArgument.Tile, import("game/entity/action/IAction").ActionArgument.Undefined]], import("../../doodad/Doodad").default | import("../Human").default<number>, void, import("game/entity/action/actions/Gather").IGatherCanUse, [(import("../../item/Item").default | undefined)?, (import("../../tile/Tile").default | undefined)?]>;
@@ -113,13 +113,13 @@ export declare const actionDescriptionsSlow: {
113
113
  21: import("./Action").Action<[import("game/entity/action/IAction").ActionArgument.ItemNearby, [import("game/entity/action/IAction").ActionArgument.ItemNearby, import("game/entity/action/IAction").ActionArgument.Undefined]], import("../Human").default<number>, void, import("game/entity/action/actions/Reinforce").IReinforceCanUse, [import("../../item/Item").default, (import("../../item/Item").default | undefined)?]>;
114
114
  45: import("./Action").Action<[], import("../Human").default<number>, void, import("game/entity/action/actions/Release").IReleaseCanUse, []>;
115
115
  115: import("./Action").Action<[import("game/entity/action/IAction").ActionArgument.NPC], import("../Human").default<number>, void, import("game/entity/action/IAction").IActionUsable, [import("../npc/NPC").default]>;
116
- 68: import("./Action").Action<[[import("game/entity/action/IAction").ActionArgument.ItemNearby, import("game/entity/action/IAction").ActionArgument.Doodad, import("game/entity/action/IAction").ActionArgument.Creature, import("game/entity/action/IAction").ActionArgument.NPC], import("game/entity/action/IAction").ActionArgument.String], import("../Human").default<number>, void, import("game/entity/action/IAction").IActionUsable, [import("../creature/Creature").default | import("../../doodad/Doodad").default | import("../../item/Item").default | import("../npc/NPC").default, string]>;
116
+ 68: import("./Action").Action<[[import("game/entity/action/IAction").ActionArgument.ItemNearby, import("game/entity/action/IAction").ActionArgument.Doodad, import("game/entity/action/IAction").ActionArgument.Creature, import("game/entity/action/IAction").ActionArgument.NPC], import("game/entity/action/IAction").ActionArgument.String], import("../Human").default<number>, void, import("game/entity/action/IAction").IActionUsable, [import("../../item/Item").default | import("../creature/Creature").default | import("../../doodad/Doodad").default | import("../npc/NPC").default, string]>;
117
117
  98: import("./Action").Action<[import("game/entity/action/IAction").ActionArgument.Island, import("game/entity/action/IAction").ActionArgument.String], import("../Human").default<number>, void, import("game/entity/action/IAction").IActionUsable, [import("../../island/Island").default, string]>;
118
- 18: import("./Action").Action<[import("game/entity/action/IAction").ActionArgument.ItemNearby, [import("game/entity/action/IAction").ActionArgument.ItemNearby, import("game/entity/action/IAction").ActionArgument.Doodad, import("game/entity/action/IAction").ActionArgument.Undefined]], import("../Human").default<number>, void, import("game/entity/action/actions/Repair").IRepairCanUse, [import("../../item/Item").default, (import("../../doodad/Doodad").default | import("../../item/Item").default | undefined)?]>;
118
+ 18: import("./Action").Action<[import("game/entity/action/IAction").ActionArgument.ItemNearby, [import("game/entity/action/IAction").ActionArgument.ItemNearby, import("game/entity/action/IAction").ActionArgument.Doodad, import("game/entity/action/IAction").ActionArgument.Undefined]], import("../Human").default<number>, void, import("game/entity/action/actions/Repair").IRepairCanUse, [import("../../item/Item").default, (import("../../item/Item").default | import("../../doodad/Doodad").default | undefined)?]>;
119
119
  87: import("./Action").Action<[], import("../player/Player").default, void, import("game/entity/action/actions/Respawn").IRespawnCanUse, []>;
120
- 9: import("./Action").Action<[[import("game/entity/action/IAction").ActionArgument.ItemNearby, import("game/entity/action/IAction").ActionArgument.Doodad, import("game/entity/action/IAction").ActionArgument.Undefined], [import("game/entity/action/IAction").ActionArgument.RestType, import("game/entity/action/IAction").ActionArgument.Undefined]], import("../Human").default<number>, void, import("game/entity/action/actions/Rest").IRestCanUse, [(import("../../doodad/Doodad").default | import("../../item/Item").default | undefined)?, (import("../IHuman").RestType | undefined)?]>;
120
+ 9: import("./Action").Action<[[import("game/entity/action/IAction").ActionArgument.ItemNearby, import("game/entity/action/IAction").ActionArgument.Doodad, import("game/entity/action/IAction").ActionArgument.Undefined], [import("game/entity/action/IAction").ActionArgument.RestType, import("game/entity/action/IAction").ActionArgument.Undefined]], import("../Human").default<number>, void, import("game/entity/action/actions/Rest").IRestCanUse, [(import("../../item/Item").default | import("../../doodad/Doodad").default | undefined)?, (import("../IHuman").RestType | undefined)?]>;
121
121
  10: import("./Action").Action<[], import("../Human").default<number>, void, import("game/entity/action/IAction").IActionUsable, []>;
122
- 14: import("./Action").Action<[[import("game/entity/action/IAction").ActionArgument.ItemNearby, import("game/entity/action/IAction").ActionArgument.Doodad, import("game/entity/action/IAction").ActionArgument.Undefined]], import("../Human").default<number>, void, import("game/entity/action/actions/ToggleVehicle").ToggleVehicleCanUse, [(import("../../doodad/Doodad").default | import("../../item/Item").default | undefined)?]>;
122
+ 14: import("./Action").Action<[[import("game/entity/action/IAction").ActionArgument.ItemNearby, import("game/entity/action/IAction").ActionArgument.Doodad, import("game/entity/action/IAction").ActionArgument.Undefined]], import("../Human").default<number>, void, import("game/entity/action/actions/ToggleVehicle").ToggleVehicleCanUse, [(import("../../item/Item").default | import("../../doodad/Doodad").default | undefined)?]>;
123
123
  47: import("./Action").Action<[import("game/entity/action/IAction").ActionArgument.ItemNearby], import("../Human").default<number>, void, {
124
124
  usable: true;
125
125
  }, [import("../../item/Item").default]>;
@@ -133,7 +133,7 @@ export declare const actionDescriptionsSlow: {
133
133
  123: import("./Action").Action<[[import("game/entity/action/IAction").ActionArgument.Undefined, import("game/entity/action/IAction").ActionArgument.Integer32]], import("../player/Player").default, void, import("game/entity/action/IAction").IActionUsable, [(number | undefined)?]>;
134
134
  119: import("./Action").Action<[import("game/entity/action/IAction").ActionArgument.NPCNearby, [import("game/entity/action/IAction").ActionArgument.Island, import("game/entity/action/IAction").ActionArgument.Vector2, import("game/entity/action/IAction").ActionArgument.Undefined], [import("game/entity/action/IAction").ActionArgument.Integer32, import("game/entity/action/IAction").ActionArgument.Undefined]], import("../Human").default<number>, void, import("game/entity/action/actions/ShipToIsland").IShipToIslandCanUse, [import("../npc/NPC").default, (import("../../island/Island").default | import("../../../utilities/math/IVector").IVector2 | undefined)?, (number | undefined)?]>;
135
135
  94: import("./Action").Action<[import("game/entity/action/IAction").ActionArgument.ItemInventory], import("../Human").default<number>, void, import("game/entity/action/actions/Shoot").IShootCanUse, [import("../../item/Item").default]>;
136
- 11: import("./Action").Action<[[import("game/entity/action/IAction").ActionArgument.ItemNearby, import("game/entity/action/IAction").ActionArgument.Doodad, import("game/entity/action/IAction").ActionArgument.Undefined], [import("game/entity/action/IAction").ActionArgument.RestType, import("game/entity/action/IAction").ActionArgument.Undefined]], import("../Human").default<number>, void, import("game/entity/action/actions/Rest").IRestCanUse, [(import("../../doodad/Doodad").default | import("../../item/Item").default | undefined)?, (import("../IHuman").RestType | undefined)?]>;
136
+ 11: import("./Action").Action<[[import("game/entity/action/IAction").ActionArgument.ItemNearby, import("game/entity/action/IAction").ActionArgument.Doodad, import("game/entity/action/IAction").ActionArgument.Undefined], [import("game/entity/action/IAction").ActionArgument.RestType, import("game/entity/action/IAction").ActionArgument.Undefined]], import("../Human").default<number>, void, import("game/entity/action/actions/Rest").IRestCanUse, [(import("../../item/Item").default | import("../../doodad/Doodad").default | undefined)?, (import("../IHuman").RestType | undefined)?]>;
137
137
  72: import("./Action").Action<[import("game/entity/action/IAction").ActionArgument.ItemInventory], import("../Human").default<number>, void, import("game/entity/action/actions/SmotherFire").ISmotherFireCanUse, [import("../../item/Item").default]>;
138
138
  42: import("./Action").Action<[import("game/entity/action/IAction").ActionArgument.ItemInventory], import("../Human").default<number>, void, {
139
139
  usable: true;
@@ -155,7 +155,7 @@ export declare const actionDescriptionsSlow: {
155
155
  103: import("./Action").Action<[[import("game/entity/action/IAction").ActionArgument.Doodad, import("game/entity/action/IAction").ActionArgument.Undefined], [import("game/entity/action/IAction").ActionArgument.Boolean, import("game/entity/action/IAction").ActionArgument.Undefined]], import("../Human").default<number>, true | undefined, import("game/entity/action/actions/ToggleDoor").IToggleDoorCanUse, [(import("../../doodad/Doodad").default | undefined)?, (boolean | undefined)?]>;
156
156
  101: import("./Action").Action<[], import("../Human").default<number>, void, import("game/entity/action/actions/ToggleHitch").IToggleHitchCanUse, []>;
157
157
  112: import("./Action").Action<[[import("game/entity/action/IAction").ActionArgument.ItemInventory, import("game/entity/action/IAction").ActionArgument.Undefined]], import("../Human").default<number>, void, import("game/entity/action/actions/ToggleTilled").ITillCanUse, [(import("../../item/Item").default | undefined)?]>;
158
- 102: import("./Action").Action<[[import("game/entity/action/IAction").ActionArgument.ItemNearby, import("game/entity/action/IAction").ActionArgument.Doodad, import("game/entity/action/IAction").ActionArgument.Undefined]], import("../Human").default<number>, void, import("game/entity/action/actions/ToggleVehicle").ToggleVehicleCanUse, [(import("../../doodad/Doodad").default | import("../../item/Item").default | undefined)?]>;
158
+ 102: import("./Action").Action<[[import("game/entity/action/IAction").ActionArgument.ItemNearby, import("game/entity/action/IAction").ActionArgument.Doodad, import("game/entity/action/IAction").ActionArgument.Undefined]], import("../Human").default<number>, void, import("game/entity/action/actions/ToggleVehicle").ToggleVehicleCanUse, [(import("../../item/Item").default | import("../../doodad/Doodad").default | undefined)?]>;
159
159
  73: import("./Action").Action<[import("game/entity/action/IAction").ActionArgument.NPCNearby], import("../Human").default<number>, void, import("game/entity/action/actions/NPCInteract").INPCInteractUsable, [import("../npc/NPC").default]>;
160
160
  35: import("./Action").Action<[import("game/entity/action/IAction").ActionArgument.ItemInventory, [import("game/entity/action/IAction").ActionArgument.ItemInventory, import("game/entity/action/IAction").ActionArgument.Undefined]], import("../Human").default<number>, void, import("game/entity/action/actions/Transmogrify").ITransmogrifyCanUse, [import("../../item/Item").default, (import("../../item/Item").default | undefined)?]>;
161
161
  124: import("./Action").Action<[import("game/entity/action/IAction").ActionArgument.ItemInventory], import("../Human").default<number>, void, import("game/entity/action/actions/Uncage").IUncageCanUse, [import("../../item/Item").default]>;
@@ -8,5 +8,5 @@
8
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
9
  * https://github.com/WaywardGame/types/wiki
10
10
  */
11
- declare const _default: import("../Action").Action<[[import("../IAction").ActionArgument.ItemNearby, import("../IAction").ActionArgument.Doodad, import("../IAction").ActionArgument.Undefined]], import("../../Human").default<number>, void, import("game/entity/action/actions/ToggleVehicle").ToggleVehicleCanUse, [(import("../../../doodad/Doodad").default | import("../../../item/Item").default | undefined)?]>;
11
+ declare const _default: import("../Action").Action<[[import("../IAction").ActionArgument.ItemNearby, import("../IAction").ActionArgument.Doodad, import("../IAction").ActionArgument.Undefined]], import("../../Human").default<number>, void, import("game/entity/action/actions/ToggleVehicle").ToggleVehicleCanUse, [(import("../../../item/Item").default | import("../../../doodad/Doodad").default | undefined)?]>;
12
12
  export default _default;
@@ -30,5 +30,5 @@ declare const _default: Action<[[ActionArgument.Undefined, ActionArgument.ItemNe
30
30
  items: Item[];
31
31
  into: IContainer | undefined;
32
32
  tile: Tile;
33
- }, [(Item | import("game/item/IItem").ItemType | Item[] | undefined)?, (Quality | undefined)?, (string | undefined)?, (number | undefined)?, (IContainer | undefined)?]>;
33
+ }, [(import("game/item/IItem").ItemType | Item | Item[] | undefined)?, (Quality | undefined)?, (string | undefined)?, (number | undefined)?, (IContainer | undefined)?]>;
34
34
  export default _default;
@@ -10,5 +10,5 @@
10
10
  */
11
11
  import { Action } from "game/entity/action/Action";
12
12
  import { ActionArgument } from "game/entity/action/IAction";
13
- declare const _default: Action<[[ActionArgument.Undefined, ActionArgument.ItemNearby, ActionArgument.Doodad]], import("../../Human").default<number>, void, import("game/entity/action/IAction").IActionUsable, [(import("../../../doodad/Doodad").default | import("../../../item/Item").default | undefined)?]>;
13
+ declare const _default: Action<[[ActionArgument.Undefined, ActionArgument.ItemNearby, ActionArgument.Doodad]], import("../../Human").default<number>, void, import("game/entity/action/IAction").IActionUsable, [(import("../../../item/Item").default | import("../../../doodad/Doodad").default | undefined)?]>;
14
14
  export default _default;
@@ -0,0 +1,14 @@
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 { Action } from "game/entity/action/Action";
12
+ import { ActionArgument } from "game/entity/action/IAction";
13
+ declare const _default: Action<[ActionArgument.Integer32, [ActionArgument.Boolean, ActionArgument.Integer32], [ActionArgument.Object, ActionArgument.Undefined]], import("../../player/Player").default, void, [number, number | boolean, any?]>;
14
+ export default _default;
@@ -0,0 +1,14 @@
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 { Action } from "game/entity/action/Action";
12
+ import { ActionArgument } from "game/entity/action/IAction";
13
+ declare const _default: Action<[ActionArgument.ItemInventory], import("../../player/Player").default, void, [import("../../../item/Item").default]>;
14
+ export default _default;
@@ -11,5 +11,5 @@
11
11
  import { Action } from "game/entity/action/Action";
12
12
  import { ActionArgument } from "game/entity/action/IAction";
13
13
  import Creature from "game/entity/creature/Creature";
14
- declare const _default: Action<[[ActionArgument.ItemNearby, ActionArgument.Doodad, ActionArgument.Creature, ActionArgument.NPC], ActionArgument.String], import("../../Human").default<number>, void, import("game/entity/action/IAction").IActionUsable, [Creature | import("../../../doodad/Doodad").default | import("../../../item/Item").default | import("../../npc/NPC").default, string]>;
14
+ declare const _default: Action<[[ActionArgument.ItemNearby, ActionArgument.Doodad, ActionArgument.Creature, ActionArgument.NPC], ActionArgument.String], import("../../Human").default<number>, void, import("game/entity/action/IAction").IActionUsable, [import("../../../item/Item").default | Creature | import("../../../doodad/Doodad").default | import("../../npc/NPC").default, string]>;
15
15
  export default _default;
@@ -21,5 +21,5 @@ export interface IRepairCanUse extends IActionUsable {
21
21
  itemDescription?: IItemDescription;
22
22
  repaireeIsItem: boolean;
23
23
  }
24
- declare const _default: Action<[ActionArgument.ItemNearby, [ActionArgument.ItemNearby, ActionArgument.Doodad, ActionArgument.Undefined]], import("../../Human").default<number>, void, IRepairCanUse, [Item, (Doodad | Item | undefined)?]>;
24
+ declare const _default: Action<[ActionArgument.ItemNearby, [ActionArgument.ItemNearby, ActionArgument.Doodad, ActionArgument.Undefined]], import("../../Human").default<number>, void, IRepairCanUse, [Item, (Item | Doodad | undefined)?]>;
25
25
  export default _default;
@@ -21,5 +21,5 @@ export interface IRestCanUse extends IActionUsable {
21
21
  tileDescription?: ITerrainDescription;
22
22
  tileType: TerrainType;
23
23
  }
24
- declare const _default: Action<[[ActionArgument.ItemNearby, ActionArgument.Doodad, ActionArgument.Undefined], [ActionArgument.RestType, ActionArgument.Undefined]], import("../../Human").default<number>, void, IRestCanUse, [(import("../../../doodad/Doodad").default | import("../../../item/Item").default | undefined)?, (RestType | undefined)?]>;
24
+ declare const _default: Action<[[ActionArgument.ItemNearby, ActionArgument.Doodad, ActionArgument.Undefined], [ActionArgument.RestType, ActionArgument.Undefined]], import("../../Human").default<number>, void, IRestCanUse, [(import("../../../item/Item").default | import("../../../doodad/Doodad").default | undefined)?, (RestType | undefined)?]>;
25
25
  export default _default;
@@ -8,5 +8,5 @@
8
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
9
  * https://github.com/WaywardGame/types/wiki
10
10
  */
11
- declare const _default: import("../Action").Action<[[import("../IAction").ActionArgument.ItemNearby, import("../IAction").ActionArgument.Doodad, import("../IAction").ActionArgument.Undefined]], import("../../Human").default<number>, void, import("game/entity/action/actions/ToggleVehicle").ToggleVehicleCanUse, [(import("../../../doodad/Doodad").default | import("../../../item/Item").default | undefined)?]>;
11
+ declare const _default: import("../Action").Action<[[import("../IAction").ActionArgument.ItemNearby, import("../IAction").ActionArgument.Doodad, import("../IAction").ActionArgument.Undefined]], import("../../Human").default<number>, void, import("game/entity/action/actions/ToggleVehicle").ToggleVehicleCanUse, [(import("../../../item/Item").default | import("../../../doodad/Doodad").default | undefined)?]>;
12
12
  export default _default;
@@ -8,5 +8,5 @@
8
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
9
  * https://github.com/WaywardGame/types/wiki
10
10
  */
11
- declare const _default: import("../Action").Action<[[import("../IAction").ActionArgument.ItemNearby, import("../IAction").ActionArgument.Doodad, import("../IAction").ActionArgument.Undefined], [import("../IAction").ActionArgument.RestType, import("../IAction").ActionArgument.Undefined]], import("../../Human").default<number>, void, import("game/entity/action/actions/Rest").IRestCanUse, [(import("../../../doodad/Doodad").default | import("../../../item/Item").default | undefined)?, (import("../../IHuman").RestType | undefined)?]>;
11
+ declare const _default: import("../Action").Action<[[import("../IAction").ActionArgument.ItemNearby, import("../IAction").ActionArgument.Doodad, import("../IAction").ActionArgument.Undefined], [import("../IAction").ActionArgument.RestType, import("../IAction").ActionArgument.Undefined]], import("../../Human").default<number>, void, import("game/entity/action/actions/Rest").IRestCanUse, [(import("../../../item/Item").default | import("../../../doodad/Doodad").default | undefined)?, (import("../../IHuman").RestType | undefined)?]>;
12
12
  export default _default;
@@ -29,5 +29,5 @@ export interface ToggleVehicleItemCanUse extends IActionUsable {
29
29
  facingTile?: Tile;
30
30
  }
31
31
  export type ToggleVehicleCanUse = ToggleVehicleDoodadCanUse | ToggleVehicleItemCanUse;
32
- declare const _default: Action<[[ActionArgument.ItemNearby, ActionArgument.Doodad, ActionArgument.Undefined]], import("../../Human").default<number>, void, ToggleVehicleCanUse, [(Doodad | Item | undefined)?]>;
32
+ declare const _default: Action<[[ActionArgument.ItemNearby, ActionArgument.Doodad, ActionArgument.Undefined]], import("../../Human").default<number>, void, ToggleVehicleCanUse, [(Item | Doodad | undefined)?]>;
33
33
  export default _default;
@@ -0,0 +1,14 @@
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 { Action } from "game/entity/action/Action";
12
+ import { ActionArgument } from "game/entity/action/IAction";
13
+ declare const _default: Action<[ActionArgument.Item, ActionArgument.Integer32, [ActionArgument.Boolean, ActionArgument.Undefined]], import("../../player/Player").default, void, [import("../../../item/Item").default, number, (boolean | undefined)?]>;
14
+ export default _default;
@@ -15,7 +15,7 @@ import type { IMagicalPropertyInfo } from "game/item/IItem";
15
15
  import type Item from "game/item/Item";
16
16
  import type { MagicalPropertyType } from "game/magic/MagicalPropertyType";
17
17
  export interface IUpgradeCanUse extends IActionUsable {
18
- upgrade: IUpgradeable;
18
+ upgrades: IUpgradeable[];
19
19
  upgradeTarget: Item;
20
20
  }
21
21
  declare const _default: Action<[ActionArgument.ItemNearby, [ActionArgument.ItemNearby, ActionArgument.Undefined]], import("../../Human").default<number>, void, IUpgradeCanUse, [Item, (Item | undefined)?]>;
@@ -0,0 +1,14 @@
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 { Action } from "game/entity/action/Action";
12
+ import { ActionArgument, ActionType } from "game/entity/action/IAction";
13
+ declare const _default: Action<[ActionArgument.ItemNearby, ActionArgument.ActionType], import("../../player/Player").default | import("../../npc/NPC").default, void, [import("../../../item/Item").default, ActionType]>;
14
+ export default _default;
@@ -0,0 +1,22 @@
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 type { IActionHandlerApi } from "game/entity/action/IAction";
12
+ import type NPC from "game/entity/npc/NPC";
13
+ import type Player from "game/entity/player/Player";
14
+ import type Item from "game/item/Item";
15
+ import type { ITreasure } from "game/mapping/DrawnMap";
16
+ import type DrawnMap from "game/mapping/DrawnMap";
17
+ export declare enum GatherTreasureResult {
18
+ NoTreasure = 0,
19
+ NotYet = 1,
20
+ Gathered = 2
21
+ }
22
+ export default function (map: DrawnMap, treasure: ITreasure, action: IActionHandlerApi<Player | NPC>, tool?: Item): GatherTreasureResult;
@@ -17,7 +17,7 @@ export declare enum WorldContextMenuClasses {
17
17
  OptionText = "world-context-menu-option-text"
18
18
  }
19
19
  export declare namespace WorldContextMenuClasses {
20
- const OptionSpecific: (enumValue: UsableActionType) => "world-context-menu-option-none" | "world-context-menu-option-actions" | "world-context-menu-option-move" | "world-context-menu-option-use" | "world-context-menu-option-quickslotremove" | "world-context-menu-option-quickslotadd" | "world-context-menu-option-quickslotaddtofree" | "world-context-menu-option-quickslotaddtoslot" | "world-context-menu-option-movetoinventory" | "world-context-menu-option-dropmenu" | "world-context-menu-option-dropall" | "world-context-menu-option-dropallofsamequality" | "world-context-menu-option-repairwithitem" | "world-context-menu-option-reinforcewithitem" | "world-context-menu-option-enhancewithitem" | "world-context-menu-option-enchantwithitem" | "world-context-menu-option-transmogrifywithitem" | "world-context-menu-option-upgradewithitem" | "world-context-menu-option-alterwithitem" | "world-context-menu-option-refinewithitem" | "world-context-menu-option-preservewithitem" | "world-context-menu-option-addfuelwithitem" | "world-context-menu-option-ignitewithitem" | "world-context-menu-option-absorbwithitem" | "world-context-menu-option-exudewithitem" | "world-context-menu-option-movetoinventorymenu" | "world-context-menu-option-movetoactivecontainermenu" | "world-context-menu-option-movetofacingcontainermenu" | "world-context-menu-option-moveall" | "world-context-menu-option-moveallofsamequality" | "world-context-menu-option-tradetradersell" | "world-context-menu-option-tradetraderbuy" | "world-context-menu-option-itemactions" | "world-context-menu-option-gatherwithhands" | "world-context-menu-option-harvestwithhands" | "world-context-menu-option-digwithhands" | "world-context-menu-option-tillwithhands" | "world-context-menu-option-pickupexcrementwithhands" | "world-context-menu-option-equipheld" | "world-context-menu-option-equiplegs" | "world-context-menu-option-equipchest" | "world-context-menu-option-equiphead" | "world-context-menu-option-equipwaist" | "world-context-menu-option-equipfeet" | "world-context-menu-option-equipneck" | "world-context-menu-option-equiphands" | "world-context-menu-option-equipback" | "world-context-menu-option-equipmainhand" | "world-context-menu-option-equipoffhand" | "world-context-menu-option-restonground" | "world-context-menu-option-sleeponground" | "world-context-menu-option-commandmenu" | "world-context-menu-option-commandfollowclose" | "world-context-menu-option-commandfollowfar" | "world-context-menu-option-commandstay" | "world-context-menu-option-commanddefend" | "world-context-menu-option-commandattack";
20
+ const OptionSpecific: (enumValue: UsableActionType) => "world-context-menu-option-none" | "world-context-menu-option-use" | "world-context-menu-option-move" | "world-context-menu-option-actions" | "world-context-menu-option-commandattack" | "world-context-menu-option-commanddefend" | "world-context-menu-option-commandfollowclose" | "world-context-menu-option-commandfollowfar" | "world-context-menu-option-commandstay" | "world-context-menu-option-quickslotremove" | "world-context-menu-option-quickslotadd" | "world-context-menu-option-quickslotaddtofree" | "world-context-menu-option-quickslotaddtoslot" | "world-context-menu-option-movetoinventory" | "world-context-menu-option-dropmenu" | "world-context-menu-option-dropall" | "world-context-menu-option-dropallofsamequality" | "world-context-menu-option-repairwithitem" | "world-context-menu-option-reinforcewithitem" | "world-context-menu-option-enhancewithitem" | "world-context-menu-option-enchantwithitem" | "world-context-menu-option-transmogrifywithitem" | "world-context-menu-option-upgradewithitem" | "world-context-menu-option-alterwithitem" | "world-context-menu-option-refinewithitem" | "world-context-menu-option-preservewithitem" | "world-context-menu-option-addfuelwithitem" | "world-context-menu-option-ignitewithitem" | "world-context-menu-option-absorbwithitem" | "world-context-menu-option-exudewithitem" | "world-context-menu-option-movetoinventorymenu" | "world-context-menu-option-movetoactivecontainermenu" | "world-context-menu-option-movetofacingcontainermenu" | "world-context-menu-option-moveall" | "world-context-menu-option-moveallofsamequality" | "world-context-menu-option-tradetradersell" | "world-context-menu-option-tradetraderbuy" | "world-context-menu-option-itemactions" | "world-context-menu-option-gatherwithhands" | "world-context-menu-option-harvestwithhands" | "world-context-menu-option-digwithhands" | "world-context-menu-option-tillwithhands" | "world-context-menu-option-pickupexcrementwithhands" | "world-context-menu-option-equipheld" | "world-context-menu-option-equiplegs" | "world-context-menu-option-equipchest" | "world-context-menu-option-equiphead" | "world-context-menu-option-equipwaist" | "world-context-menu-option-equipfeet" | "world-context-menu-option-equipneck" | "world-context-menu-option-equiphands" | "world-context-menu-option-equipback" | "world-context-menu-option-equipmainhand" | "world-context-menu-option-equipoffhand" | "world-context-menu-option-restonground" | "world-context-menu-option-sleeponground" | "world-context-menu-option-commandmenu";
21
21
  }
22
22
  export declare const UsableActionsWorldActions: UsableActionGenerator<[]>;
23
23
  export declare const UsableActionsWorldItemActions: UsableActionGenerator<[]>;
@@ -0,0 +1,30 @@
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 type Human from "game/entity/Human";
12
+ import type Island from "game/island/Island";
13
+ import type { ITile } from "game/tile/ITerrain";
14
+ import type { IVector2 } from "utilities/math/IVector";
15
+ export interface IPathingEvents {
16
+ /**
17
+ * Called when checking if a tile is blocked, used for pathing.
18
+ * @param tile The tile to check
19
+ */
20
+ isTileBlocked?(tile: ITile): true | undefined;
21
+ }
22
+ declare const _default: {
23
+ findPath(island: Island, start: IVector2, end: IVector2, z: number, isTileBlocked: (tile: ITile, pos: IVector2) => boolean, getTilePenalty?: ((tile: ITile, pos: IVector2) => number) | undefined, maxNodesChecked?: number): IVector2[] | undefined;
24
+ /**
25
+ * Returns whether the tile is blocked (completely impassible)
26
+ */
27
+ isWalkToTileBlocked(human: Human, tile: ITile, pos: IVector2, clientSide: boolean): boolean;
28
+ readonly event: import("event/EventEmitter").IEventEmitter<any, IPathingEvents>;
29
+ };
30
+ export default _default;
@@ -171,7 +171,7 @@ export default abstract class NPC extends Human<NPCType> {
171
171
  protected changeZ(toZ: number, fromZ: number): boolean | void | undefined;
172
172
  protected updateTile(fromTile: Tile, toTile: Tile): boolean;
173
173
  protected postMove(): void;
174
- canMoveToTile(moveType: MoveType, tile: Tile, ignoreHuman?: Human): -1 | 0 | -2 | -3 | -4 | -5 | -6;
174
+ canMoveToTile(moveType: MoveType, tile: Tile, ignoreHuman?: Human): 0 | -1 | -2 | -5 | -4 | -6 | -3;
175
175
  getWeightOrStaminaMovementPenalty(): number;
176
176
  get asMerchant(): MerchantNPC | undefined;
177
177
  get asShipper(): ShipperNPC | undefined;
@@ -0,0 +1,12 @@
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
+ export type ICreditProperty = Map<string, number | undefined>;
12
+ export type ITalkedProperty = Map<string, boolean | undefined>;
@@ -58,7 +58,7 @@ export default class ShipperNPC extends NPC {
58
58
  get asMerchant(): undefined;
59
59
  get asShipper(): ShipperNPC;
60
60
  getShipContainerItem(): (Item & IContainer) | undefined;
61
- canMoveToTile(moveType: MoveType, tile: Tile, ignoreHuman?: Human): -1 | 0 | -2 | -3 | -4 | -5 | -6;
61
+ canMoveToTile(moveType: MoveType, tile: Tile, ignoreHuman?: Human): 0 | -1 | -2 | -5 | -4 | -6 | -3;
62
62
  shipToPort(island: Island, port: IIslandPort, pathToEdge: IVector2[]): void;
63
63
  private moveToPort;
64
64
  private canSeePort;
@@ -14,18 +14,18 @@ declare const requirements: {
14
14
  0: QuestRequirement<[], {}>;
15
15
  2: QuestRequirement<[import("../../creature/ICreature").CreatureType, number], import("game/entity/player/quest/requirement/KillCreatureRequirement").IKillCreatureRequirement>;
16
16
  3: QuestRequirement<[number], import("game/entity/player/quest/requirement/KillCreaturesRequirement").IKillCreaturesRequirement>;
17
- 1: QuestRequirement<[(import("../../../item/IItem").ItemType | import("../../../item/IItem").ItemTypeGroup)[], number], {}>;
17
+ 1: QuestRequirement<[(import("../../../item/IItem").ItemTypeGroup | import("../../../item/IItem").ItemType)[], number], {}>;
18
18
  4: QuestRequirement<[import("../../IHuman").SkillType, number], {}>;
19
19
  5: QuestRequirement<[number], {}>;
20
20
  6: QuestRequirement<[number], {}>;
21
21
  7: QuestRequirement<[import("../../IHuman").EquipType[], import("../../../item/IItem").ItemTypeGroup[]], {}>;
22
- 8: QuestRequirement<[(import("../../../item/IItem").ItemType | import("../../../item/IItem").ItemTypeGroup)[], number], {
22
+ 8: QuestRequirement<[(import("../../../item/IItem").ItemTypeGroup | import("../../../item/IItem").ItemType)[], number], {
23
23
  crafted: number;
24
24
  }>;
25
- 9: QuestRequirement<[(import("../../../item/IItem").ItemType | import("../../../item/IItem").ItemTypeGroup)[], number], {
25
+ 9: QuestRequirement<[(import("../../../item/IItem").ItemTypeGroup | import("../../../item/IItem").ItemType)[], number], {
26
26
  dismantled: number;
27
27
  }>;
28
- 10: QuestRequirement<[(import("../../../item/IItem").ItemType | import("../../../item/IItem").ItemTypeGroup)[]], {}>;
28
+ 10: QuestRequirement<[(import("../../../item/IItem").ItemTypeGroup | import("../../../item/IItem").ItemType)[]], {}>;
29
29
  11: QuestRequirement<[import("../../creature/ICreature").CreatureType, number], import("game/entity/player/quest/requirement/TameCreatureRequirement").ITameCreatureRequirement>;
30
30
  12: QuestRequirement<[number], import("game/entity/player/quest/requirement/TameCreaturesRequirement").ITameCreaturesRequirement>;
31
31
  13: QuestRequirement<[number], {
@@ -11,5 +11,5 @@
11
11
  import { QuestRequirement } from "game/entity/player/quest/requirement/Requirement";
12
12
  import type { ItemType } from "game/item/IItem";
13
13
  import { ItemTypeGroup } from "game/item/IItem";
14
- declare const _default: QuestRequirement<[(ItemType | ItemTypeGroup)[]], {}>;
14
+ declare const _default: QuestRequirement<[(ItemTypeGroup | ItemType)[]], {}>;
15
15
  export default _default;
@@ -10,5 +10,5 @@
10
10
  */
11
11
  import { QuestRequirement } from "game/entity/player/quest/requirement/Requirement";
12
12
  import type { ItemType, ItemTypeGroup } from "game/item/IItem";
13
- declare const _default: QuestRequirement<[(ItemType | ItemTypeGroup)[], number], {}>;
13
+ declare const _default: QuestRequirement<[(ItemTypeGroup | ItemType)[], number], {}>;
14
14
  export default _default;
@@ -10,7 +10,7 @@
10
10
  */
11
11
  import { QuestRequirement } from "game/entity/player/quest/requirement/Requirement";
12
12
  import type { ItemType, ItemTypeGroup } from "game/item/IItem";
13
- declare const _default: QuestRequirement<[(ItemType | ItemTypeGroup)[], number], {
13
+ declare const _default: QuestRequirement<[(ItemTypeGroup | ItemType)[], number], {
14
14
  crafted: number;
15
15
  }>;
16
16
  export default _default;
@@ -10,7 +10,7 @@
10
10
  */
11
11
  import { QuestRequirement } from "game/entity/player/quest/requirement/Requirement";
12
12
  import type { ItemType, ItemTypeGroup } from "game/item/IItem";
13
- declare const _default: QuestRequirement<[(ItemType | ItemTypeGroup)[], number], {
13
+ declare const _default: QuestRequirement<[(ItemTypeGroup | ItemType)[], number], {
14
14
  dismantled: number;
15
15
  }>;
16
16
  export default _default;
@@ -0,0 +1,17 @@
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 type Creature from "game/entity/creature/Creature";
12
+ import { InfoDisplayLevel } from "game/inspection/IInfoProvider";
13
+ import HealthInfoProvider from "game/inspection/infoProviders/entity/Health";
14
+ export default class CreatureHealthInfoProvider extends HealthInfoProvider<Creature> {
15
+ getDefaultDisplayLevel(): InfoDisplayLevel;
16
+ getName(): import("../../../../language/impl/TranslationImpl").default;
17
+ }