@rpg-engine/long-bow 0.8.20 → 0.8.22
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/components/InformationCenter/InformationCenter.d.ts +5 -15
- package/dist/components/InformationCenter/sections/bestiary/InformationCenterBestiarySection.d.ts +3 -1
- package/dist/components/InformationCenter/sections/bestiary/InformationCenterNPCDetails.d.ts +4 -1
- package/dist/components/InformationCenter/sections/bestiary/InformationCenterNPCTooltip.d.ts +1 -1
- package/dist/components/InformationCenter/sections/faq/InformationCenterFaqSection.d.ts +1 -1
- package/dist/components/InformationCenter/sections/items/InformationCenterItemDetails.d.ts +1 -1
- package/dist/components/InformationCenter/sections/items/InformationCenterItemTooltip.d.ts +1 -1
- package/dist/components/InformationCenter/sections/items/InformationCenterItemsSection.d.ts +2 -1
- package/dist/components/InformationCenter/sections/tutorials/InformationCenterTutorialsSection.d.ts +1 -1
- package/dist/long-bow.cjs.development.js +793 -660
- package/dist/long-bow.cjs.development.js.map +1 -1
- package/dist/long-bow.cjs.production.min.js +1 -1
- package/dist/long-bow.cjs.production.min.js.map +1 -1
- package/dist/long-bow.esm.js +794 -661
- package/dist/long-bow.esm.js.map +1 -1
- package/dist/mocks/informationCenter.mocks.d.ts +1 -2
- package/package.json +2 -2
- package/src/components/CraftBook/CraftBook.tsx +1 -1
- package/src/components/Dropdown.tsx +25 -3
- package/src/components/InformationCenter/InformationCenter.tsx +11 -18
- package/src/components/InformationCenter/sections/bestiary/InformationCenterBestiarySection.tsx +58 -7
- package/src/components/InformationCenter/sections/bestiary/InformationCenterNPCDetails.tsx +63 -15
- package/src/components/InformationCenter/sections/bestiary/InformationCenterNPCTooltip.tsx +7 -6
- package/src/components/InformationCenter/sections/faq/InformationCenterFaqSection.tsx +1 -1
- package/src/components/InformationCenter/sections/items/InformationCenterItemDetails.tsx +8 -6
- package/src/components/InformationCenter/sections/items/InformationCenterItemTooltip.tsx +1 -1
- package/src/components/InformationCenter/sections/items/InformationCenterItemsSection.tsx +36 -10
- package/src/components/InformationCenter/sections/tutorials/InformationCenterTutorialsSection.tsx +133 -34
- package/src/components/shared/PaginatedContent/PaginatedContent.tsx +1 -1
- package/src/mocks/informationCenter.mocks.ts +175 -55
- package/src/stories/UI/info/InformationCenter.stories.tsx +6 -1
- package/dist/components/InformationCenter/InformationCenterTypes.d.ts +0 -79
- package/src/components/InformationCenter/InformationCenterTypes.ts +0 -87
|
@@ -1,12 +1,15 @@
|
|
|
1
1
|
import type { Meta, Story } from '@storybook/react';
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { InformationCenter } from '../../../components/InformationCenter/InformationCenter';
|
|
4
|
-
import { IInformationCenterItem } from '../../../components/InformationCenter/InformationCenterTypes';
|
|
5
4
|
import { RPGUIRoot } from '../../../components/RPGUI/RPGUIRoot';
|
|
6
5
|
import entitiesAtlasJSON from '../../../mocks/atlas/entities/entities.json';
|
|
7
6
|
import entitiesAtlasIMG from '../../../mocks/atlas/entities/entities.png';
|
|
7
|
+
import iconsAtlasJSON from '../../../mocks/atlas/icons/icons.json';
|
|
8
|
+
import iconsAtlasIMG from '../../../mocks/atlas/icons/icons.png';
|
|
8
9
|
import itemsAtlasJSON from '../../../mocks/atlas/items/items.json';
|
|
9
10
|
import itemsAtlasIMG from '../../../mocks/atlas/items/items.png';
|
|
11
|
+
|
|
12
|
+
import { IInformationCenterItem } from '@rpg-engine/shared';
|
|
10
13
|
import { mockBestiaryItems, mockFaqItems, mockItems, mockTutorials } from '../../../mocks/informationCenter.mocks';
|
|
11
14
|
|
|
12
15
|
|
|
@@ -27,6 +30,8 @@ const Template: Story = args => (
|
|
|
27
30
|
itemsAtlasIMG={itemsAtlasIMG}
|
|
28
31
|
entitiesAtlasJSON={entitiesAtlasJSON}
|
|
29
32
|
entitiesAtlasIMG={entitiesAtlasIMG}
|
|
33
|
+
iconsAtlasJSON={iconsAtlasJSON}
|
|
34
|
+
iconsAtlasIMG={iconsAtlasIMG}
|
|
30
35
|
faqItems={mockFaqItems}
|
|
31
36
|
bestiaryItems={mockBestiaryItems}
|
|
32
37
|
videoGuides={mockTutorials}
|
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
import { EntityAttackType, ICharacterPermanentBuff, IEquippableItemBlueprint, INPCLoot, ItemRarities, NPCAlignment, NPCSubtype, RangeTypes } from '@rpg-engine/shared';
|
|
2
|
-
export declare enum MovementSpeed {
|
|
3
|
-
ExtraSlow = 1.5,
|
|
4
|
-
Slow = 2.25,
|
|
5
|
-
Standard = 2.6,
|
|
6
|
-
Fast = 3,
|
|
7
|
-
ExtraFast = 3.5
|
|
8
|
-
}
|
|
9
|
-
export declare enum EntityEffectBlueprint {
|
|
10
|
-
Poison = "poison",
|
|
11
|
-
Bleeding = "bleeding",
|
|
12
|
-
Freezing = "freezing",
|
|
13
|
-
Burning = "burning",
|
|
14
|
-
Corruption = "corruption",
|
|
15
|
-
VineGrasp = "vine-grasp",
|
|
16
|
-
Curse = "curse",
|
|
17
|
-
Drain = "drain",
|
|
18
|
-
Shadow = "shadow",
|
|
19
|
-
Stun = "stun",
|
|
20
|
-
Knockback = "knockback",
|
|
21
|
-
Rage = "rage",
|
|
22
|
-
Weakness = "weakness",
|
|
23
|
-
Cripple = "cripple",
|
|
24
|
-
Regeneration = "regeneration"
|
|
25
|
-
}
|
|
26
|
-
export declare enum LootProbability {
|
|
27
|
-
VeryRare = 0.5,
|
|
28
|
-
Rare = 1,
|
|
29
|
-
Uncommon = 10,
|
|
30
|
-
SemiCommon = 15,
|
|
31
|
-
Common = 20,
|
|
32
|
-
VeryCommon = 35
|
|
33
|
-
}
|
|
34
|
-
interface INPCBlueprintSpellArea {
|
|
35
|
-
spellKey: string;
|
|
36
|
-
probability: number;
|
|
37
|
-
power: string;
|
|
38
|
-
}
|
|
39
|
-
export interface IInformationCenterNPC {
|
|
40
|
-
id: string;
|
|
41
|
-
name: string;
|
|
42
|
-
key: string;
|
|
43
|
-
subType: NPCSubtype;
|
|
44
|
-
alignment: NPCAlignment;
|
|
45
|
-
attackType: EntityAttackType;
|
|
46
|
-
maxRangeAttack: RangeTypes;
|
|
47
|
-
speed: MovementSpeed;
|
|
48
|
-
baseHealth: number;
|
|
49
|
-
skills: {
|
|
50
|
-
level: number;
|
|
51
|
-
strength?: {
|
|
52
|
-
level: number;
|
|
53
|
-
};
|
|
54
|
-
dexterity?: {
|
|
55
|
-
level: number;
|
|
56
|
-
};
|
|
57
|
-
resistance?: {
|
|
58
|
-
level: number;
|
|
59
|
-
};
|
|
60
|
-
};
|
|
61
|
-
fleeOnLowHealth: boolean;
|
|
62
|
-
entityEffects: EntityEffectBlueprint[];
|
|
63
|
-
areaSpells: INPCBlueprintSpellArea[];
|
|
64
|
-
loots: INPCLoot[];
|
|
65
|
-
}
|
|
66
|
-
export interface IInformationCenterItem extends IEquippableItemBlueprint {
|
|
67
|
-
tier: number;
|
|
68
|
-
rarity: ItemRarities;
|
|
69
|
-
rangeType?: EntityAttackType;
|
|
70
|
-
basePrice: number;
|
|
71
|
-
canSell: boolean;
|
|
72
|
-
maxStackSize: number;
|
|
73
|
-
usableEffectDescription?: string;
|
|
74
|
-
entityEffects?: [EntityEffectBlueprint];
|
|
75
|
-
entityEffectChance?: number;
|
|
76
|
-
equippedBuff?: ICharacterPermanentBuff[];
|
|
77
|
-
equippedBuffDescription?: string;
|
|
78
|
-
}
|
|
79
|
-
export {};
|
|
@@ -1,87 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
EntityAttackType,
|
|
3
|
-
ICharacterPermanentBuff,
|
|
4
|
-
IEquippableItemBlueprint,
|
|
5
|
-
INPCLoot,
|
|
6
|
-
ItemRarities,
|
|
7
|
-
NPCAlignment,
|
|
8
|
-
NPCSubtype,
|
|
9
|
-
RangeTypes,
|
|
10
|
-
} from '@rpg-engine/shared';
|
|
11
|
-
|
|
12
|
-
export enum MovementSpeed {
|
|
13
|
-
ExtraSlow = 1.5,
|
|
14
|
-
Slow = 2.25,
|
|
15
|
-
Standard = 2.6,
|
|
16
|
-
Fast = 3,
|
|
17
|
-
ExtraFast = 3.5,
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
export enum EntityEffectBlueprint {
|
|
21
|
-
Poison = 'poison',
|
|
22
|
-
Bleeding = 'bleeding',
|
|
23
|
-
Freezing = 'freezing',
|
|
24
|
-
Burning = 'burning',
|
|
25
|
-
Corruption = 'corruption',
|
|
26
|
-
VineGrasp = 'vine-grasp',
|
|
27
|
-
Curse = 'curse',
|
|
28
|
-
Drain = 'drain',
|
|
29
|
-
Shadow = 'shadow',
|
|
30
|
-
Stun = 'stun',
|
|
31
|
-
Knockback = 'knockback',
|
|
32
|
-
Rage = 'rage',
|
|
33
|
-
Weakness = 'weakness',
|
|
34
|
-
Cripple = 'cripple',
|
|
35
|
-
Regeneration = 'regeneration',
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
export enum LootProbability {
|
|
39
|
-
VeryRare = 0.5,
|
|
40
|
-
Rare = 1,
|
|
41
|
-
Uncommon = 10,
|
|
42
|
-
SemiCommon = 15,
|
|
43
|
-
Common = 20,
|
|
44
|
-
VeryCommon = 35,
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
interface INPCBlueprintSpellArea {
|
|
48
|
-
spellKey: string;
|
|
49
|
-
probability: number;
|
|
50
|
-
power: string;
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
export interface IInformationCenterNPC {
|
|
54
|
-
id: string;
|
|
55
|
-
name: string;
|
|
56
|
-
key: string;
|
|
57
|
-
subType: NPCSubtype;
|
|
58
|
-
alignment: NPCAlignment;
|
|
59
|
-
attackType: EntityAttackType;
|
|
60
|
-
maxRangeAttack: RangeTypes;
|
|
61
|
-
speed: MovementSpeed;
|
|
62
|
-
baseHealth: number;
|
|
63
|
-
skills: {
|
|
64
|
-
level: number;
|
|
65
|
-
strength?: { level: number };
|
|
66
|
-
dexterity?: { level: number };
|
|
67
|
-
resistance?: { level: number };
|
|
68
|
-
};
|
|
69
|
-
fleeOnLowHealth: boolean;
|
|
70
|
-
entityEffects: EntityEffectBlueprint[];
|
|
71
|
-
areaSpells: INPCBlueprintSpellArea[];
|
|
72
|
-
loots: INPCLoot[];
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
export interface IInformationCenterItem extends IEquippableItemBlueprint {
|
|
76
|
-
tier: number;
|
|
77
|
-
rarity: ItemRarities;
|
|
78
|
-
rangeType?: EntityAttackType;
|
|
79
|
-
basePrice: number;
|
|
80
|
-
canSell: boolean;
|
|
81
|
-
maxStackSize: number;
|
|
82
|
-
usableEffectDescription?: string;
|
|
83
|
-
entityEffects?: [EntityEffectBlueprint];
|
|
84
|
-
entityEffectChance?: number;
|
|
85
|
-
equippedBuff?: ICharacterPermanentBuff[];
|
|
86
|
-
equippedBuffDescription?: string;
|
|
87
|
-
}
|