@wayward/types 2.14.0-beta.dev.20231203.1 → 2.14.0-beta.dev.20231204.2
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/deity/AlignmentManager.d.ts +1 -0
- package/definitions/game/game/deity/IDeities.d.ts +1 -1
- package/definitions/game/game/entity/Human.d.ts +4 -0
- package/definitions/game/game/entity/IHuman.d.ts +6 -0
- package/definitions/game/game/entity/IStats.d.ts +12 -8
- package/definitions/game/game/entity/action/actions/Learn.d.ts +5 -0
- package/definitions/game/game/entity/player/Player.d.ts +2 -1
- package/definitions/game/game/item/IItem.d.ts +3 -2
- package/definitions/game/game/options/IGameOptions.d.ts +4 -0
- package/definitions/game/language/dictionary/UiTranslation.d.ts +25 -24
- package/definitions/game/renderer/Renderer.d.ts +0 -1
- package/definitions/game/renderer/Renderers.d.ts +0 -1
- package/definitions/game/renderer/notifier/Notifier.d.ts +1 -1
- package/definitions/game/renderer/particle/ParticleSystem.d.ts +2 -2
- package/definitions/game/renderer/world/WorldRenderer.d.ts +0 -1
- package/definitions/game/ui/component/dropdown/ItemDropdown.d.ts +6 -0
- package/definitions/game/ui/screen/screens/game/component/container/ContainerBucketItemList.d.ts +1 -0
- package/definitions/game/ui/screen/screens/menu/menus/options/TabSaveData.d.ts +1 -1
- package/definitions/game/ui/screen/screens/menu/menus/pause/GameOptionsIcons.d.ts +2 -1
- package/package.json +1 -1
|
@@ -76,6 +76,7 @@ export declare class Alignment implements IReadableAlignment {
|
|
|
76
76
|
get fraction(): number;
|
|
77
77
|
get deity(): number;
|
|
78
78
|
get cursed(): number;
|
|
79
|
+
get invoked(): boolean;
|
|
79
80
|
setInvoked(): void;
|
|
80
81
|
/**
|
|
81
82
|
* A multiplier for the amount of evil that the player will receive tomorrow night. (IE delayed by one day.)
|
|
@@ -40,7 +40,7 @@ export declare const DEITY_ALIGNMENT_EVIL_NIGHTLY_RAMP_RANGE: IRange;
|
|
|
40
40
|
/**
|
|
41
41
|
* The number of days it takes for nightly evil alignment to fully ramp up.
|
|
42
42
|
*/
|
|
43
|
-
export declare const DEITY_ALIGNMENT_EVIL_NIGHTLY_RAMP_TIME =
|
|
43
|
+
export declare const DEITY_ALIGNMENT_EVIL_NIGHTLY_RAMP_TIME = 15;
|
|
44
44
|
export interface IReadableAlignment {
|
|
45
45
|
/**
|
|
46
46
|
* The current Deity aligned to.
|
|
@@ -162,6 +162,10 @@ export default abstract class Human<TypeType extends number = number, EntityRefe
|
|
|
162
162
|
setOptions(options: IOptions): void;
|
|
163
163
|
getEquipEffect<E extends EquipEffect>(type: E): FirstIfOne<EquipEffectByType<E>>;
|
|
164
164
|
get alignment(): Alignment;
|
|
165
|
+
/**
|
|
166
|
+
* Luck is a multiplier applied to some random chance calculations.
|
|
167
|
+
*/
|
|
168
|
+
get luck(): number;
|
|
165
169
|
updateDirection(tile: Tile | Direction.Cardinal, updateVehicleDirection?: boolean): Direction.Cardinal;
|
|
166
170
|
protected onMovementCompleted(movingData: IMovingData): void;
|
|
167
171
|
moveTowardsIsland(direction: Direction.Cardinal | Direction.None, options?: Partial<IMoveToIslandOptions>): Promise<void>;
|
|
@@ -276,6 +276,12 @@ export interface IHumanEvents extends Events<EntityWithStats>, ISkillEvents {
|
|
|
276
276
|
alignmentChange(type: Deity): any;
|
|
277
277
|
nightlyAlignmentChange(): any;
|
|
278
278
|
curseChange(daysWithoutInvocation: number): any;
|
|
279
|
+
/**
|
|
280
|
+
* Luck is a multiplier applied to some chance calculations. 1 is default, 0.5 would mean chances are halved, 2 would mean chances are doubled, etc.
|
|
281
|
+
*/
|
|
282
|
+
getLuckMultiplier(multiplier: number): number;
|
|
283
|
+
discoverRecipe(recipeType: ItemType, crafted: ICrafted): any;
|
|
284
|
+
undiscoverRecipes(): any;
|
|
279
285
|
}
|
|
280
286
|
export interface IHairstyleDescription extends IModdable, IHasImagePath {
|
|
281
287
|
name: string;
|
|
@@ -34,23 +34,27 @@ export declare enum Stat {
|
|
|
34
34
|
/**
|
|
35
35
|
* UI only. Does not exist on `Player` instances.
|
|
36
36
|
*/
|
|
37
|
-
|
|
37
|
+
Luck = 9,
|
|
38
|
+
/**
|
|
39
|
+
* UI only. Does not exist on `Player` instances.
|
|
40
|
+
*/
|
|
41
|
+
Ferocity = 10,
|
|
38
42
|
/**
|
|
39
43
|
* How much this human and their inventory is affected by temperature
|
|
40
44
|
*/
|
|
41
|
-
InsulationHeat =
|
|
42
|
-
InsulationCold =
|
|
45
|
+
InsulationHeat = 11,
|
|
46
|
+
InsulationCold = 12,
|
|
43
47
|
/**
|
|
44
48
|
* Used for chicken eggs and goat milk
|
|
45
49
|
*/
|
|
46
|
-
Produce =
|
|
50
|
+
Produce = 13,
|
|
47
51
|
/**
|
|
48
52
|
* Used for tamed animals
|
|
49
53
|
*/
|
|
50
|
-
Happiness =
|
|
51
|
-
Tamed =
|
|
52
|
-
Petting =
|
|
53
|
-
Waste =
|
|
54
|
+
Happiness = 14,
|
|
55
|
+
Tamed = 15,
|
|
56
|
+
Petting = 16,
|
|
57
|
+
Waste = 17
|
|
54
58
|
}
|
|
55
59
|
export type IStats = {
|
|
56
60
|
[key in keyof typeof Stat]: IStat;
|
|
@@ -10,6 +10,11 @@
|
|
|
10
10
|
*/
|
|
11
11
|
import { Action } from "@wayward/game/game/entity/action/Action";
|
|
12
12
|
import { ActionArgument } from "@wayward/game/game/entity/action/IAction";
|
|
13
|
+
import { ItemTypeGroup, RecipeLevel } from "@wayward/game/game/item/IItem";
|
|
14
|
+
export declare const ACTION_LEARN_RECIPE_OF_ISLAND_MULTIPLIER = 8;
|
|
15
|
+
export declare const ACTION_LEARN_RECIPE_WORTH_PENALTY_MULTIPLIER = 2;
|
|
16
|
+
export declare const ACTION_LEARN_RECIPE_LEVEL_WEIGHTS: Record<RecipeLevel, number>;
|
|
17
|
+
export declare const ACTION_LEARN_RECIPE_ITEM_GROUP_WEIGHTS: PartialRecord<ItemTypeGroup, number>;
|
|
13
18
|
declare const _default: Action<[ActionArgument.ItemNearby], import("../../Human").default<number, import("../../../reference/IReferenceManager").ReferenceType.NPC | import("../../../reference/IReferenceManager").ReferenceType.Player>, void, {
|
|
14
19
|
usable: true;
|
|
15
20
|
}, [import("../../../item/Item").default]>;
|
|
@@ -84,7 +84,8 @@ export default class Player extends Human<number, ReferenceType.Player> implemen
|
|
|
84
84
|
protected onCanMove(direction: Direction.Cardinal): false | undefined;
|
|
85
85
|
protected onGetSkillGainMultiplier(skillType: SkillType): number | undefined;
|
|
86
86
|
protected onDamage(damageInfo: IDamageInfo): void;
|
|
87
|
-
addMilestone(milestone: Milestone, data?: number | string
|
|
87
|
+
addMilestone(milestone: Milestone, data?: number | string): void;
|
|
88
|
+
addMilestone(milestone: Milestone, data: number | string | undefined, update: true): boolean;
|
|
88
89
|
updateMovementIntent(movementIntent: IMovementIntent): boolean;
|
|
89
90
|
load(): void;
|
|
90
91
|
unload(): void;
|
|
@@ -1692,13 +1692,14 @@ export declare enum ItemTypeGroup {
|
|
|
1692
1692
|
Golem = -9867,
|
|
1693
1693
|
CreatureResource = -9866,
|
|
1694
1694
|
Dripstone = -9865,
|
|
1695
|
-
|
|
1695
|
+
ArtifactOfInvocation = -9864,
|
|
1696
1696
|
Wheelbarrow = -9863,
|
|
1697
1697
|
Crucible = -9862,
|
|
1698
1698
|
Reshaping = -9861,
|
|
1699
1699
|
Resin = -9860,
|
|
1700
1700
|
Filler = -9859,
|
|
1701
|
-
|
|
1701
|
+
Altar = -9858,
|
|
1702
|
+
All = -9857
|
|
1702
1703
|
}
|
|
1703
1704
|
export type StillContainerBaseItemType = ItemType.Waterskin | ItemType.GlassBottle | ItemType.ClayJug | ItemType.CoconutContainer;
|
|
1704
1705
|
export interface IItemMovementResult {
|
|
@@ -182,6 +182,10 @@ export declare enum UnlockedRecipesStrategy {
|
|
|
182
182
|
AllUnlocked = 2
|
|
183
183
|
}
|
|
184
184
|
export interface IGameOptionsPlayer {
|
|
185
|
+
/**
|
|
186
|
+
* A multiplier for some chance checks. 1 = default chances. 0.5 = chances are halved. 2 = chances are doubled. Etc.
|
|
187
|
+
*/
|
|
188
|
+
luckMultiplier: number;
|
|
185
189
|
/**
|
|
186
190
|
* Whether the player should use their globally unlocked recipes in this game.
|
|
187
191
|
*/
|
|
@@ -884,29 +884,30 @@ declare enum UiTranslation {
|
|
|
884
884
|
DifficultyOptionsRecipes = 869,
|
|
885
885
|
DifficultyOptionsStartingIsland = 870,
|
|
886
886
|
DifficultyOptionsTravelingEffectsDisabled = 871,
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
887
|
+
DifficultyOptionsLuck = 872,
|
|
888
|
+
DifficultyOptionsGoodAlignmentInitial = 873,
|
|
889
|
+
DifficultyOptionsGoodAlignmentMultiplier = 874,
|
|
890
|
+
DifficultyOptionsEvilAlignmentInitial = 875,
|
|
891
|
+
DifficultyOptionsEvilAlignmentMultiplier = 876,
|
|
892
|
+
DifficultyOptionsWeightBonus = 877,
|
|
893
|
+
DifficultyOptionsStatInitial = 878,
|
|
894
|
+
DifficultyOptionsStatMax = 879,
|
|
895
|
+
DifficultyOptionsStatMultiplier = 880,
|
|
896
|
+
DifficultyOptionsStatusEffectStartWith = 881,
|
|
897
|
+
DifficultyOptionsStatusEffectUntreatable = 882,
|
|
898
|
+
DifficultyOptionsStatusEffectPassChanceMultiplier = 883,
|
|
899
|
+
DifficultyOptionsNoRandomSkills = 884,
|
|
900
|
+
DifficultyOptionsSkillStartingCount = 885,
|
|
901
|
+
DifficultyOptionsSkillGainMultiplier = 886,
|
|
902
|
+
DifficultyOptionsSkillInitial = 887,
|
|
903
|
+
DifficultyOptionsStatusEffectPermanent = 888,
|
|
904
|
+
DifficultyOptionsStatusEffectRateMultiplier = 889,
|
|
905
|
+
DifficultyOptionsStatusEffectMultiplier = 890,
|
|
906
|
+
DifficultyOptionsItemDurabilityMultiplier = 891,
|
|
907
|
+
DifficultyOptionsItemDecayMultiplier = 892,
|
|
908
|
+
TabCrafting = 893,
|
|
909
|
+
TabDismantle = 894,
|
|
910
|
+
WindowTitleContainer = 895,
|
|
911
|
+
WindowTitleInventory = 896
|
|
911
912
|
}
|
|
912
913
|
export default UiTranslation;
|
|
@@ -114,7 +114,6 @@ export declare class Renderer extends EventEmitter.Host<IRendererEvents> {
|
|
|
114
114
|
addOrUpdateOverlay(tile: Tile, overlay: IOverlayInfo): void;
|
|
115
115
|
removeOverlay(tile: Tile, overlay: IOverlayInfo): void;
|
|
116
116
|
updateThumbnail(): Promise<string | undefined>;
|
|
117
|
-
update(timeStamp: number): void;
|
|
118
117
|
computeSpritesInViewport(): void;
|
|
119
118
|
private getFadeInProgress;
|
|
120
119
|
private getZoomLevelProgress;
|
|
@@ -46,7 +46,6 @@ export default class Renderers {
|
|
|
46
46
|
stop(): void;
|
|
47
47
|
reinitialize(): Promise<void>;
|
|
48
48
|
delete(): Promise<void>;
|
|
49
|
-
update(timeStamp: number): void;
|
|
50
49
|
computeSpritesInViewport(origin: IVector4): void;
|
|
51
50
|
addOrUpdateOverlay(tile: Tile, overlay: IOverlayInfo): void;
|
|
52
51
|
removeOverlay(tile: Tile, overlay: IOverlayInfo): void;
|
|
@@ -39,7 +39,7 @@ export declare class Notifier {
|
|
|
39
39
|
addNotifierIcon(location: INotificationLocation, type: NotifierIconType): void;
|
|
40
40
|
suspend(): void;
|
|
41
41
|
resume(): void;
|
|
42
|
-
update
|
|
42
|
+
private update;
|
|
43
43
|
render(timeStamp: number, x: number, y: number, tileScale: number): boolean;
|
|
44
44
|
private addNotification;
|
|
45
45
|
private renderNotification;
|
|
@@ -28,8 +28,8 @@ export declare class ParticleSystem {
|
|
|
28
28
|
delete(): void;
|
|
29
29
|
create(tile: Tile, particle: IRGB, count?: number, intensity?: number): number[] | undefined;
|
|
30
30
|
clear(): void;
|
|
31
|
-
update
|
|
32
|
-
render(x: number, y: number): boolean;
|
|
31
|
+
private update;
|
|
32
|
+
render(timeStamp: number, x: number, y: number): boolean;
|
|
33
33
|
private findUnusedParticle;
|
|
34
34
|
private spawn;
|
|
35
35
|
}
|
|
@@ -158,7 +158,6 @@ export declare class WorldRenderer extends EventEmitter.Host<IWorldRendererEvent
|
|
|
158
158
|
load(island: Island): void;
|
|
159
159
|
render(): void;
|
|
160
160
|
renderWorld(timeStamp: number, x: number, y: number, z: number): void;
|
|
161
|
-
update(timeStamp: number): void;
|
|
162
161
|
updateAllTiles(): void;
|
|
163
162
|
initializeSpriteBatch(layer: SpriteBatchLayer): void;
|
|
164
163
|
private setResources;
|
|
@@ -9,6 +9,8 @@
|
|
|
9
9
|
* https://github.com/WaywardGame/types/wiki
|
|
10
10
|
*/
|
|
11
11
|
import { ItemType, ItemTypeGroup } from "@wayward/game/game/item/IItem";
|
|
12
|
+
import { Milestone } from "@wayward/game/game/milestones/IMilestone";
|
|
13
|
+
import type { MilestoneManager } from "@wayward/game/game/milestones/MilestoneManager";
|
|
12
14
|
import type TranslationImpl from "@wayward/game/language/impl/TranslationImpl";
|
|
13
15
|
import type { IDropdownOption } from "@wayward/game/ui/component/Dropdown";
|
|
14
16
|
import GroupDropdown from "@wayward/game/ui/component/GroupDropdown";
|
|
@@ -25,6 +27,10 @@ declare class ItemDropdown<OTHER_OPTIONS extends string = never> extends GroupDr
|
|
|
25
27
|
}
|
|
26
28
|
declare namespace ItemDropdown {
|
|
27
29
|
class DiscoveredTypes<OTHER_OPTIONS extends string = never> extends ItemDropdown<OTHER_OPTIONS> {
|
|
30
|
+
protected onDiscoveredTypesDropdownAppend(): void;
|
|
31
|
+
protected onDiscoveredTypesDropdownRemove(): void;
|
|
32
|
+
protected onMilestoneUpdate(milestones: MilestoneManager, milestone: Milestone): void;
|
|
33
|
+
protected onRecipesUpdate(): void;
|
|
28
34
|
protected filterEnum(value: ItemType): boolean;
|
|
29
35
|
protected getGroups(): ItemTypeGroup[];
|
|
30
36
|
}
|
package/definitions/game/ui/screen/screens/game/component/container/ContainerBucketItemList.d.ts
CHANGED
|
@@ -118,6 +118,7 @@ export default class ContainerBucketItemList extends Component implements ISorta
|
|
|
118
118
|
protected onTransferInto(itemComponent: ItemComponent, index: number | undefined, bindable: Bindable | undefined, undo: () => void, oldParent?: ISortableComponent): Promise<void>;
|
|
119
119
|
protected onSort(itemComponent: ItemComponent, index: number, bindable: Bindable | undefined, undo: () => void): Promise<void>;
|
|
120
120
|
protected onContainerOrderUpdate(manager: ItemManager, container: IContainer): void;
|
|
121
|
+
private getAppendStrategy;
|
|
121
122
|
protected onAddItem(manager: ItemManager, items: Item[], container: IContainer, index: number, options?: IMoveItemOptions): Promise<void>;
|
|
122
123
|
protected onRemoveItem(manager: ItemManager, items: Item[], container?: IContainer, containerTile?: Tile): void;
|
|
123
124
|
protected onStack(manager: ItemManager, container: IContainer, type: ItemType): void;
|
|
@@ -8,9 +8,9 @@
|
|
|
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 { Events, IEventEmitter } from "@wayward/utilities/event/EventEmitter";
|
|
12
11
|
import type { IRefreshable } from "@wayward/game/ui/component/Refreshable";
|
|
13
12
|
import { Tab } from "@wayward/game/ui/screen/screens/menu/component/Menu";
|
|
13
|
+
import type { Events, IEventEmitter } from "@wayward/utilities/event/EventEmitter";
|
|
14
14
|
interface ITabSaveDataEvents extends Events<Tab> {
|
|
15
15
|
refresh(): any;
|
|
16
16
|
}
|
|
@@ -33,7 +33,8 @@ export declare enum GameOptionsIcon {
|
|
|
33
33
|
Weight = 17,
|
|
34
34
|
Crafting = 18,
|
|
35
35
|
Items = 19,
|
|
36
|
-
Travel = 20
|
|
36
|
+
Travel = 20,
|
|
37
|
+
Luck = 21
|
|
37
38
|
}
|
|
38
39
|
export interface IGameOptionsIcon extends IModdable, IHasImagePath {
|
|
39
40
|
check(options: IGameOptions, localPlayerOption: ImmutableObject<IGameOptionsPlayer>): boolean;
|
package/package.json
CHANGED