@adatechnology/game-items-goods 0.2.4 → 0.3.0
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/dist/index.d.ts +7 -1
- package/dist/index.global.js +550 -465
- package/dist/index.global.js.map +1 -1
- package/dist/index.js +550 -463
- package/dist/index.js.map +1 -1
- package/package.json +5 -6
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ItemsOptions, ItemsCatalog, ItemPack, ArsenalItemRecord, CategoryDef, ContainerDef, PoolEntry, ItemDef, PlaceDef, RecipeDef, UseEffectDef, FindsProviderOptions, FindsProvider } from '@adatechnology/game-items';
|
|
2
|
-
import { CategoryDef as CategoryDef$1, BodySlot, ContractChecker, CategoryRegistry, CategorizedReport, CategoryOptions } from '@adatechnology/game-contracts';
|
|
2
|
+
import { CategoryDef as CategoryDef$1, BodySlot, SealSpec, ContractChecker, CategoryRegistry, CategorizedReport, CategoryOptions } from '@adatechnology/game-contracts';
|
|
3
3
|
|
|
4
4
|
/** The pack for `createItems({ packs })`: items, the three categories the game adds, 24 places, 17 containers, house pools, use effects and recipes. */
|
|
5
5
|
declare const goodsPack: ItemPack;
|
|
@@ -138,6 +138,8 @@ interface KindedItem extends Omit<ItemDef, 'category' | 'rarity'> {
|
|
|
138
138
|
readonly clip?: string;
|
|
139
139
|
readonly sounds?: readonly string[];
|
|
140
140
|
};
|
|
141
|
+
/** The seal of a closed container (`SealSpec` of game-contracts): what opens it and whether a breach spoils it. */
|
|
142
|
+
readonly seal?: SealSpec;
|
|
141
143
|
readonly leftover?: ItemLeftover;
|
|
142
144
|
/** What eating or drinking it raw does. `sickChance` is the chance of getting sick, 0..1. */
|
|
143
145
|
readonly rawEffect?: {
|
|
@@ -145,6 +147,10 @@ interface KindedItem extends Omit<ItemDef, 'category' | 'rarity'> {
|
|
|
145
147
|
};
|
|
146
148
|
/** True when the item never spoils: the explicit form of a missing `shelfLife`. */
|
|
147
149
|
readonly nonPerishable?: boolean;
|
|
150
|
+
/** Loose dry contents (the flakes of a cereal box, flour, coffee) in their colour (0xRRGGBB): a hole through the item lets out a puff of them. */
|
|
151
|
+
readonly powder?: {
|
|
152
|
+
readonly color: number;
|
|
153
|
+
};
|
|
148
154
|
/** A container's capacity (an empty bucket); `fluid` is what it holds now. */
|
|
149
155
|
readonly container?: {
|
|
150
156
|
readonly capacityLiters?: number;
|