@rpg-engine/long-bow 0.8.21 → 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.
Files changed (32) hide show
  1. package/dist/components/InformationCenter/InformationCenter.d.ts +16 -13
  2. package/dist/components/InformationCenter/sections/bestiary/InformationCenterBestiarySection.d.ts +1 -1
  3. package/dist/components/InformationCenter/sections/bestiary/InformationCenterNPCDetails.d.ts +2 -1
  4. package/dist/components/InformationCenter/sections/bestiary/InformationCenterNPCTooltip.d.ts +1 -1
  5. package/dist/components/InformationCenter/sections/faq/InformationCenterFaqSection.d.ts +1 -1
  6. package/dist/components/InformationCenter/sections/items/InformationCenterItemDetails.d.ts +1 -1
  7. package/dist/components/InformationCenter/sections/items/InformationCenterItemTooltip.d.ts +1 -1
  8. package/dist/components/InformationCenter/sections/items/InformationCenterItemsSection.d.ts +2 -1
  9. package/dist/components/InformationCenter/sections/tutorials/InformationCenterTutorialsSection.d.ts +1 -1
  10. package/dist/long-bow.cjs.development.js +788 -687
  11. package/dist/long-bow.cjs.development.js.map +1 -1
  12. package/dist/long-bow.cjs.production.min.js +1 -1
  13. package/dist/long-bow.cjs.production.min.js.map +1 -1
  14. package/dist/long-bow.esm.js +789 -688
  15. package/dist/long-bow.esm.js.map +1 -1
  16. package/dist/mocks/informationCenter.mocks.d.ts +1 -2
  17. package/package.json +2 -2
  18. package/src/components/CraftBook/CraftBook.tsx +1 -1
  19. package/src/components/Dropdown.tsx +25 -3
  20. package/src/components/InformationCenter/InformationCenter.tsx +125 -124
  21. package/src/components/InformationCenter/sections/bestiary/InformationCenterBestiarySection.tsx +52 -7
  22. package/src/components/InformationCenter/sections/bestiary/InformationCenterNPCDetails.tsx +201 -207
  23. package/src/components/InformationCenter/sections/bestiary/InformationCenterNPCTooltip.tsx +7 -6
  24. package/src/components/InformationCenter/sections/faq/InformationCenterFaqSection.tsx +1 -1
  25. package/src/components/InformationCenter/sections/items/InformationCenterItemDetails.tsx +8 -6
  26. package/src/components/InformationCenter/sections/items/InformationCenterItemTooltip.tsx +1 -1
  27. package/src/components/InformationCenter/sections/items/InformationCenterItemsSection.tsx +36 -10
  28. package/src/components/InformationCenter/sections/tutorials/InformationCenterTutorialsSection.tsx +133 -34
  29. package/src/mocks/informationCenter.mocks.ts +158 -47
  30. package/src/stories/UI/info/InformationCenter.stories.tsx +1 -1
  31. package/dist/components/InformationCenter/InformationCenterTypes.d.ts +0 -96
  32. package/src/components/InformationCenter/InformationCenterTypes.ts +0 -105
@@ -1,105 +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
- import { IFaqItem, IVideoGuide } from './InformationCenter';
12
-
13
- export enum MovementSpeed {
14
- ExtraSlow = 1.5,
15
- Slow = 2.25,
16
- Standard = 2.6,
17
- Fast = 3,
18
- ExtraFast = 3.5,
19
- }
20
-
21
- export enum EntityEffectBlueprint {
22
- Poison = 'poison',
23
- Bleeding = 'bleeding',
24
- Freezing = 'freezing',
25
- Burning = 'burning',
26
- Corruption = 'corruption',
27
- VineGrasp = 'vine-grasp',
28
- Curse = 'curse',
29
- Drain = 'drain',
30
- Shadow = 'shadow',
31
- Stun = 'stun',
32
- Knockback = 'knockback',
33
- Rage = 'rage',
34
- Weakness = 'weakness',
35
- Cripple = 'cripple',
36
- Regeneration = 'regeneration',
37
- }
38
-
39
- export enum LootProbability {
40
- VeryRare = 0.5,
41
- Rare = 1,
42
- Uncommon = 10,
43
- SemiCommon = 15,
44
- Common = 20,
45
- VeryCommon = 35,
46
- }
47
-
48
- interface INPCBlueprintSpellArea {
49
- spellKey: string;
50
- probability: number;
51
- power: string;
52
- texturePath: string;
53
- }
54
-
55
- export interface IInformationCenterNPC {
56
- id: string;
57
- name: string;
58
- key: string;
59
- subType: NPCSubtype;
60
- alignment: NPCAlignment;
61
- attackType: EntityAttackType;
62
- maxRangeAttack: RangeTypes;
63
- speed: MovementSpeed;
64
- baseHealth: number;
65
- skills: {
66
- level: number;
67
- strength?: { level: number };
68
- dexterity?: { level: number };
69
- resistance?: { level: number };
70
- };
71
- fleeOnLowHealth: boolean;
72
- entityEffects: EntityEffectBlueprint[];
73
- areaSpells: INPCBlueprintSpellArea[];
74
- loots: INPCLoot[];
75
- }
76
-
77
- export interface IInformationCenterItem extends IEquippableItemBlueprint {
78
- tier: number;
79
- rarity: ItemRarities;
80
- rangeType?: EntityAttackType;
81
- basePrice: number;
82
- canSell: boolean;
83
- maxStackSize: number;
84
- usableEffectDescription?: string;
85
- entityEffects?: [EntityEffectBlueprint];
86
- entityEffectChance?: number;
87
- equippedBuff?: ICharacterPermanentBuff[];
88
- equippedBuffDescription?: string;
89
- }
90
-
91
- export interface IInformationCenterProps {
92
- itemsAtlasJSON: Record<string, any>;
93
- itemsAtlasIMG: string;
94
- entitiesAtlasJSON: Record<string, any>;
95
- entitiesAtlasIMG: string;
96
- iconsAtlasJSON: any;
97
- iconsAtlasIMG: any;
98
- faqItems?: IFaqItem[];
99
- bestiaryItems?: IInformationCenterNPC[];
100
- videoGuides?: IVideoGuide[];
101
- items?: IInformationCenterItem[];
102
- loading?: boolean;
103
- error?: string;
104
- initialSearchQuery?: string;
105
- }