@wayward/types 2.15.0-beta.dev.20250917.1 → 2.15.0-beta.dev.20250919.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.
- package/definitions/game/game/entity/creature/ICreature.d.ts +5 -0
- package/definitions/game/game/tile/ITileEvent.d.ts +8 -2
- package/definitions/game/game/tile/TileEvent.d.ts +4 -0
- package/definitions/game/game/tile/TileEvents.d.ts +0 -2
- package/definitions/game/game/tile/events/Cobweb.d.ts +12 -0
- package/definitions/game/game/tile/events/Puddles.d.ts +1 -1
- package/definitions/game/game/tile/events/SlimePatch.d.ts +1 -1
- package/definitions/game/language/dictionary/Message.d.ts +137 -135
- package/package.json +1 -1
|
@@ -359,6 +359,11 @@ export interface ICreatureDescription extends IModdable, ITemperatureDescription
|
|
|
359
359
|
* Defaults to CREATURE_DEFAULT_ALERTED_DISTANCE_SQ
|
|
360
360
|
*/
|
|
361
361
|
alertedRadius?: number;
|
|
362
|
+
/**
|
|
363
|
+
* Set to false if you want the creature to not be slowed by cobwebs
|
|
364
|
+
* Defaults to true (or undefined, which is treated as true)
|
|
365
|
+
*/
|
|
366
|
+
slowedByCobwebs?: boolean;
|
|
362
367
|
}
|
|
363
368
|
export interface ICreatureLoot {
|
|
364
369
|
item: ItemType;
|
|
@@ -15,7 +15,7 @@ import type { IObjectDescription } from "@wayward/game/game/IObject";
|
|
|
15
15
|
import type Island from "@wayward/game/game/island/Island";
|
|
16
16
|
import type { ItemType } from "@wayward/game/game/item/IItem";
|
|
17
17
|
import type { ITemperatureSource } from "@wayward/game/game/temperature/ITemperature";
|
|
18
|
-
import
|
|
18
|
+
import { TerrainType } from "@wayward/game/game/tile/ITerrain";
|
|
19
19
|
import type Tile from "@wayward/game/game/tile/Tile";
|
|
20
20
|
import type TileEvent from "@wayward/game/game/tile/TileEvent";
|
|
21
21
|
import type { IModdable } from "@wayward/game/mod/ModRegistry";
|
|
@@ -95,7 +95,12 @@ export interface ITileEventDescription extends IObjectDescription, IModdable, IC
|
|
|
95
95
|
* If the tile event is a liquid and slowsEntities is set to true, then no slipping can occur.
|
|
96
96
|
*/
|
|
97
97
|
slowsEntities?: boolean;
|
|
98
|
+
/**
|
|
99
|
+
* If set to true, picking up (or gathering) this tile event will cause the player to skip their turn and lose 1 stamina.
|
|
100
|
+
*/
|
|
101
|
+
pickUpSlowsPlayer?: boolean;
|
|
98
102
|
}
|
|
103
|
+
export declare const TILE_EVENTS_WATER_UNPASSABLE_TERRAIN_EXCLUSIONS: TerrainType[];
|
|
99
104
|
export declare enum TileEventType {
|
|
100
105
|
None = 0,
|
|
101
106
|
Fire = 1,
|
|
@@ -120,5 +125,6 @@ export declare enum TileEventType {
|
|
|
120
125
|
PuddleOfCoconutWater = 20,
|
|
121
126
|
PuddleOfSwampWater = 21,
|
|
122
127
|
PuddleOfFilteredWater = 22,
|
|
123
|
-
SlimePatch = 23
|
|
128
|
+
SlimePatch = 23,
|
|
129
|
+
Cobweb = 24
|
|
124
130
|
}
|
|
@@ -96,6 +96,10 @@ export default class TileEvent extends EntityMovable<ITileEventDescription, Tile
|
|
|
96
96
|
protected updateTileWhenMoving(fromTile: Tile, toTile: Tile): boolean;
|
|
97
97
|
addToTile(tile: Tile): void;
|
|
98
98
|
removeFromTile(updateTile: boolean): void;
|
|
99
|
+
/**
|
|
100
|
+
* Damages the tile event by 1 durability. If durability reaches 0, the tile event is removed and all items are dropped.
|
|
101
|
+
*/
|
|
102
|
+
damage(): void;
|
|
99
103
|
/**
|
|
100
104
|
* Gets the builder/creator of this event, or `undefined` if the tile event is creatorless.
|
|
101
105
|
*/
|
|
@@ -8,8 +8,6 @@
|
|
|
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
|
-
import { TerrainType } from "@wayward/game/game/tile/ITerrain";
|
|
12
11
|
import type { ITileEventDescription } from "@wayward/game/game/tile/ITileEvent";
|
|
13
12
|
import { TileEventType } from "@wayward/game/game/tile/ITileEvent";
|
|
14
|
-
export declare const TILE_EVENTS_LIQUID_TERRAIN_EXCLUSIONS: TerrainType[];
|
|
15
13
|
export declare const tileEventDescriptions: OptionalDescriptions<TileEventType, ITileEventDescription>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Copyright 2011-2025 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 ITileEventDescription } from "@wayward/game/game/tile/ITileEvent";
|
|
12
|
+
export declare const cobweb: ITileEventDescription;
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
* https://github.com/WaywardGame/types/wiki
|
|
10
10
|
*/
|
|
11
11
|
import { LiquidType } from "@wayward/game/game/island/IIsland";
|
|
12
|
-
import type
|
|
12
|
+
import { type ITileEventDescription } from "@wayward/game/game/tile/ITileEvent";
|
|
13
13
|
import type TileEvent from "@wayward/game/game/tile/TileEvent";
|
|
14
14
|
export declare function puddleUpdate(tileEvent: TileEvent, description: ITileEventDescription, liquidType: LiquidType, ticks: number): void;
|
|
15
15
|
export declare const puddleOfFreshWater: ITileEventDescription;
|
|
@@ -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
|
-
import type
|
|
11
|
+
import { type ITileEventDescription } from "@wayward/game/game/tile/ITileEvent";
|
|
12
12
|
export declare const slimePatch: ITileEventDescription;
|
|
@@ -741,140 +741,142 @@ declare enum Message {
|
|
|
741
741
|
Transmogrified = 729,
|
|
742
742
|
TrapMissed = 730,
|
|
743
743
|
TrapStoppedYou = 731,
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
744
|
+
ActionGatherSlowed = 732,
|
|
745
|
+
Traveling = 733,
|
|
746
|
+
Treasure = 734,
|
|
747
|
+
TreasureIsBlocked = 735,
|
|
748
|
+
UiActionCannotUseInaccessibleItem = 736,
|
|
749
|
+
UiActionCannotUseInThisSituation = 737,
|
|
750
|
+
UiActionCannotUseNoItemHovered = 738,
|
|
751
|
+
UiActionCannotUseNotInRange = 739,
|
|
752
|
+
UiActionCannotUseOnThisIsland = 740,
|
|
753
|
+
UiActionCannotUseRequiresCreature = 741,
|
|
754
|
+
UiActionCannotUseRequiresDoodad = 742,
|
|
755
|
+
UiActionCannotUseRequiresItem = 743,
|
|
756
|
+
UiActionCannotUseRequiresNPC = 744,
|
|
757
|
+
UiActionCannotUseRequiresVehicle = 745,
|
|
758
|
+
UiDialogTradeIndicateTradeAlreadyTradedBuyDialogue1 = 746,
|
|
759
|
+
UiDialogTradeIndicateTradeAlreadyTradedBuyDialogue2 = 747,
|
|
760
|
+
UiDialogTradeIndicateTradeAlreadyTradedBuyDialogue3 = 748,
|
|
761
|
+
UiDialogTradeIndicateTradeAlreadyTradedSellDialogue1 = 749,
|
|
762
|
+
UiDialogTradeIndicateTradeAlreadyTradedSellDialogue2 = 750,
|
|
763
|
+
UiDialogTradeIndicateTradeAlreadyTradedSellDialogue3 = 751,
|
|
764
|
+
UiDialogTradeIndicateTradeTooMuchTradesDialogue1 = 752,
|
|
765
|
+
UiDialogTradeIndicateTradeTooMuchTradesDialogue2 = 753,
|
|
766
|
+
UiDialogTradeIndicateTradeTooMuchTradesDialogue3 = 754,
|
|
767
|
+
UnhitchCreature = 755,
|
|
768
|
+
Unknown = 756,
|
|
769
|
+
Unlimited = 757,
|
|
770
|
+
UnlockedChest = 758,
|
|
771
|
+
UnpurifiedFreshWater = 759,
|
|
772
|
+
UnpurifiedWaterInStill = 760,
|
|
773
|
+
UnpurifiedWaterInTop = 761,
|
|
774
|
+
Use = 762,
|
|
775
|
+
UsingBareHands = 763,
|
|
776
|
+
VehicleDefense = 764,
|
|
777
|
+
Vulnerable = 765,
|
|
778
|
+
Water = 766,
|
|
779
|
+
WaterGathering = 767,
|
|
780
|
+
WaterPutOutFire = 768,
|
|
781
|
+
WellIsDry = 769,
|
|
782
|
+
WellIsFull = 770,
|
|
783
|
+
WildGoatRefusedToBeMilked = 771,
|
|
784
|
+
WorkingYourselfIntoExhaustion = 772,
|
|
785
|
+
WorkingYourselfIntoExhaustionAndDrowning = 773,
|
|
786
|
+
WorldContainer = 774,
|
|
787
|
+
You = 775,
|
|
788
|
+
YouAbsorb = 776,
|
|
789
|
+
YouApplied = 777,
|
|
790
|
+
YouAreAlready = 778,
|
|
791
|
+
YouAte = 779,
|
|
792
|
+
YouBeginResting = 780,
|
|
793
|
+
YouCannotDoThatYet = 781,
|
|
794
|
+
YouCanNowCombatTheTides = 782,
|
|
795
|
+
YouCrafted = 783,
|
|
796
|
+
YouDoNotFindTreasureYet = 784,
|
|
797
|
+
YouDrank = 785,
|
|
798
|
+
YouDropTheTorch = 786,
|
|
799
|
+
YouEnchant = 787,
|
|
800
|
+
YouEquip = 788,
|
|
801
|
+
YouExude = 789,
|
|
802
|
+
YouExudeSome = 790,
|
|
803
|
+
YouExudeSomeReasonConflicting = 791,
|
|
804
|
+
YouExudeSomeReasonMax = 792,
|
|
805
|
+
YouExudeSomeReasonProperties = 793,
|
|
806
|
+
YouFailedTo = 794,
|
|
807
|
+
YouFailedToExtinguishedFireFully = 795,
|
|
808
|
+
YouFailedToHeal = 796,
|
|
809
|
+
YouFailedToHealOther = 797,
|
|
810
|
+
YouFire = 798,
|
|
811
|
+
YouGathered = 799,
|
|
812
|
+
YouHarvested = 800,
|
|
813
|
+
YouHave = 801,
|
|
814
|
+
YouHaveAlreadyLearned = 802,
|
|
815
|
+
YouHaveBeenCut = 803,
|
|
816
|
+
YouHaveCaged = 804,
|
|
817
|
+
YouHaveCommanded = 805,
|
|
818
|
+
YouHaveDied = 806,
|
|
819
|
+
YouHaveHealedOther = 807,
|
|
820
|
+
YouHaveKilled = 808,
|
|
821
|
+
YouHaveNotCommanded = 809,
|
|
822
|
+
YouHaveReleased = 810,
|
|
823
|
+
YouHaveSummoned = 811,
|
|
824
|
+
YouHaveTamed = 812,
|
|
825
|
+
YouHaveUncaged = 813,
|
|
826
|
+
YouNoticeBarren = 814,
|
|
827
|
+
YouNoticeBecomeEnraged = 815,
|
|
828
|
+
YouNoticeDying = 816,
|
|
829
|
+
YouNoticeFertilityDecreasing = 817,
|
|
830
|
+
YouNoticeFertilityIncreasing = 818,
|
|
831
|
+
YouNoticeGrowing = 819,
|
|
832
|
+
YouNoticeLavaCooling = 820,
|
|
833
|
+
YouNoticeLavaHardening = 821,
|
|
834
|
+
YouNoticePerish = 822,
|
|
835
|
+
YouNoticePlantDamage = 823,
|
|
836
|
+
YouNoticePlantRegenerated = 824,
|
|
837
|
+
YouNoticeRegrowing = 825,
|
|
838
|
+
YouNoticeStumbleInjureItself = 826,
|
|
839
|
+
YouNoticeTakeFromGround = 827,
|
|
840
|
+
YouNoticeWoundsClosing = 828,
|
|
841
|
+
YouOfferedToCreature = 829,
|
|
842
|
+
YouOfferedToCreatureRejects = 830,
|
|
843
|
+
YouOpen = 831,
|
|
844
|
+
YouPacked = 832,
|
|
845
|
+
YouPickedUp = 833,
|
|
846
|
+
YouRefine = 834,
|
|
847
|
+
YouReinforce = 835,
|
|
848
|
+
YouRepair = 836,
|
|
849
|
+
YouReturnFromCivilizationWith = 837,
|
|
850
|
+
YourFist = 838,
|
|
851
|
+
YourHands = 839,
|
|
852
|
+
YourInventory = 840,
|
|
853
|
+
YourIsland = 841,
|
|
854
|
+
YouSeeALivingMushroomSpore = 842,
|
|
855
|
+
YouSeeASkeletonCollapse = 843,
|
|
856
|
+
YouSeeASlimeCombine = 844,
|
|
857
|
+
YouSeeAZombieBleeding = 845,
|
|
858
|
+
YouSeeCoolDown = 846,
|
|
859
|
+
YouSeeDrop = 847,
|
|
860
|
+
YouSeeEngulfFire = 848,
|
|
861
|
+
YouSeeSpiderSpin = 849,
|
|
862
|
+
YouSeeFireSpread = 850,
|
|
863
|
+
YouSeeHelpingPlant = 851,
|
|
864
|
+
YouSeeLay = 852,
|
|
865
|
+
YouSeeLayingTrap = 853,
|
|
866
|
+
YouSeeSpewLava = 854,
|
|
867
|
+
YouSeeSpitAcid = 855,
|
|
868
|
+
YouSeeSpringForth = 856,
|
|
869
|
+
YouSeeSummon = 857,
|
|
870
|
+
YouSeeSwampFlood = 858,
|
|
871
|
+
YouSeeTrampling = 859,
|
|
872
|
+
YouSetTheTrapOff = 860,
|
|
873
|
+
YouStokeTheCreature = 861,
|
|
874
|
+
YouSwapMainHandAndOffHand = 862,
|
|
875
|
+
YouThrew = 863,
|
|
876
|
+
YouTilled = 864,
|
|
877
|
+
YouUnequip = 865,
|
|
878
|
+
YouUsed = 866,
|
|
879
|
+
YouViewTheItemsOn = 867,
|
|
880
|
+
YouWhileTraveling = 868
|
|
879
881
|
}
|
|
880
882
|
export default Message;
|
package/package.json
CHANGED