@rpg-engine/long-bow 0.8.186 → 0.8.188
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/long-bow.cjs.development.js +40 -29
- 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 +40 -29
- package/dist/long-bow.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/Marketplace/CharacterDetailModal.tsx +32 -24
- package/src/components/Marketplace/CharacterListingModal.tsx +1 -0
- package/src/components/Marketplace/CharacterMarketplacePanel.tsx +2 -0
- package/src/components/Marketplace/MyCharacterListingsPanel.tsx +2 -0
- package/src/stories/Features/marketplace/CharacterDetailModal.stories.tsx +8 -7
package/package.json
CHANGED
|
@@ -117,6 +117,7 @@ export const CharacterDetailModal: React.FC<ICharacterDetailModalProps> = ({
|
|
|
117
117
|
imgScale={4}
|
|
118
118
|
height={96}
|
|
119
119
|
width={96}
|
|
120
|
+
centered
|
|
120
121
|
/>
|
|
121
122
|
</SpriteContainer>
|
|
122
123
|
<HeroInfo>
|
|
@@ -135,23 +136,22 @@ export const CharacterDetailModal: React.FC<ICharacterDetailModalProps> = ({
|
|
|
135
136
|
|
|
136
137
|
<Divider />
|
|
137
138
|
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
<
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
<
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
<Divider />
|
|
139
|
+
<MetaColumns>
|
|
140
|
+
{topSkills.length > 0 && (
|
|
141
|
+
<Section>
|
|
142
|
+
<SectionTitle>Skills</SectionTitle>
|
|
143
|
+
<SkillsList>
|
|
144
|
+
{topSkills.map(([name, value]) => (
|
|
145
|
+
<SkillRow key={name}>
|
|
146
|
+
<SkillName>{name}</SkillName>
|
|
147
|
+
<SkillValue>{value}</SkillValue>
|
|
148
|
+
</SkillRow>
|
|
149
|
+
))}
|
|
150
|
+
</SkillsList>
|
|
151
|
+
</Section>
|
|
152
|
+
)}
|
|
153
|
+
|
|
154
|
+
{snap.equipment?.length > 0 && (
|
|
155
155
|
<Section>
|
|
156
156
|
<SectionTitle>Equipment</SectionTitle>
|
|
157
157
|
<EquipmentList>
|
|
@@ -164,8 +164,8 @@ export const CharacterDetailModal: React.FC<ICharacterDetailModalProps> = ({
|
|
|
164
164
|
))}
|
|
165
165
|
</EquipmentList>
|
|
166
166
|
</Section>
|
|
167
|
-
|
|
168
|
-
|
|
167
|
+
)}
|
|
168
|
+
</MetaColumns>
|
|
169
169
|
|
|
170
170
|
<Divider />
|
|
171
171
|
|
|
@@ -179,6 +179,7 @@ export const CharacterDetailModal: React.FC<ICharacterDetailModalProps> = ({
|
|
|
179
179
|
atlasJSON={atlasJSON}
|
|
180
180
|
spriteKey="others/definya-coin.png"
|
|
181
181
|
imgScale={1}
|
|
182
|
+
centered
|
|
182
183
|
/>
|
|
183
184
|
</DCCoinWrapper>
|
|
184
185
|
<PriceAmount>{formatDCAmount(listing.price)} DC</PriceAmount>
|
|
@@ -227,8 +228,8 @@ const ModalContent = styled.div`
|
|
|
227
228
|
border: 2px solid #f59e0b;
|
|
228
229
|
border-radius: 8px;
|
|
229
230
|
padding: 20px 24px;
|
|
230
|
-
width:
|
|
231
|
-
max-width:
|
|
231
|
+
width: 580px;
|
|
232
|
+
max-width: 96%;
|
|
232
233
|
max-height: 85dvh;
|
|
233
234
|
display: flex;
|
|
234
235
|
flex-direction: column;
|
|
@@ -348,10 +349,17 @@ const SectionTitle = styled.span`
|
|
|
348
349
|
letter-spacing: 1px;
|
|
349
350
|
`;
|
|
350
351
|
|
|
351
|
-
const
|
|
352
|
+
const MetaColumns = styled.div`
|
|
352
353
|
display: grid;
|
|
353
|
-
grid-template-columns:
|
|
354
|
-
gap:
|
|
354
|
+
grid-template-columns: 1fr 1fr;
|
|
355
|
+
gap: 16px;
|
|
356
|
+
align-items: start;
|
|
357
|
+
`;
|
|
358
|
+
|
|
359
|
+
const SkillsList = styled.div`
|
|
360
|
+
display: flex;
|
|
361
|
+
flex-direction: column;
|
|
362
|
+
gap: 4px;
|
|
355
363
|
`;
|
|
356
364
|
|
|
357
365
|
const SkillRow = styled.div`
|
|
@@ -173,6 +173,7 @@ export const CharacterListingModal: React.FC<ICharacterListingModalProps> = ({
|
|
|
173
173
|
atlasJSON={atlasJSON}
|
|
174
174
|
spriteKey="others/definya-coin.png"
|
|
175
175
|
imgScale={1}
|
|
176
|
+
centered
|
|
176
177
|
/>
|
|
177
178
|
</DCCoinWrapper>
|
|
178
179
|
<PricePreviewAmount>{Number(price).toLocaleString()} DC</PricePreviewAmount>
|
|
@@ -81,6 +81,7 @@ export const CharacterMarketplacePanel: React.FC<ICharacterMarketplacePanelProps
|
|
|
81
81
|
imgScale={3}
|
|
82
82
|
height={64}
|
|
83
83
|
width={64}
|
|
84
|
+
centered
|
|
84
85
|
/>
|
|
85
86
|
);
|
|
86
87
|
};
|
|
@@ -147,6 +148,7 @@ export const CharacterMarketplacePanel: React.FC<ICharacterMarketplacePanelProps
|
|
|
147
148
|
atlasJSON={atlasJSON}
|
|
148
149
|
spriteKey="others/definya-coin.png"
|
|
149
150
|
imgScale={1}
|
|
151
|
+
centered
|
|
150
152
|
/>
|
|
151
153
|
</DCCoinWrapper>
|
|
152
154
|
{formatDCAmount(listing.price)} DC
|
|
@@ -93,6 +93,7 @@ export const MyCharacterListingsPanel: React.FC<IMyCharacterListingsPanelProps>
|
|
|
93
93
|
imgScale={3}
|
|
94
94
|
height={64}
|
|
95
95
|
width={64}
|
|
96
|
+
centered
|
|
96
97
|
/>
|
|
97
98
|
</CharacterSprite>
|
|
98
99
|
<CharacterInfo>
|
|
@@ -105,6 +106,7 @@ export const MyCharacterListingsPanel: React.FC<IMyCharacterListingsPanelProps>
|
|
|
105
106
|
atlasJSON={atlasJSON}
|
|
106
107
|
spriteKey="others/definya-coin.png"
|
|
107
108
|
imgScale={1}
|
|
109
|
+
centered
|
|
108
110
|
/>
|
|
109
111
|
</DCCoinWrapper>
|
|
110
112
|
{formatDCAmount(listing.price)} DC
|
|
@@ -31,11 +31,11 @@ const warriorListing: ICharacterListing = {
|
|
|
31
31
|
race: 'Human',
|
|
32
32
|
faction: 'Alliance',
|
|
33
33
|
mode: 'Standard',
|
|
34
|
-
skills: {
|
|
34
|
+
skills: { level: 25, sword: 10, shielding: 8, strength: 18, dexterity: 7, resistance: 15 },
|
|
35
35
|
equipment: [
|
|
36
|
-
{ slot: '
|
|
37
|
-
{ slot: 'armor', itemName: 'Steel Armor', itemKey: '
|
|
38
|
-
{ slot: '
|
|
36
|
+
{ slot: 'rightHand', itemName: 'Broad Sword', itemKey: 'broad-sword', rarity: 'Common' },
|
|
37
|
+
{ slot: 'armor', itemName: 'Steel Armor', itemKey: 'steel-armor', rarity: 'Rare' },
|
|
38
|
+
{ slot: 'head', itemName: 'Iron Helm', itemKey: 'iron-helm', rarity: 'Uncommon' },
|
|
39
39
|
],
|
|
40
40
|
textureKey: 'black-knight',
|
|
41
41
|
},
|
|
@@ -57,10 +57,11 @@ const hardcoreListing: ICharacterListing = {
|
|
|
57
57
|
race: 'Elf',
|
|
58
58
|
faction: 'Horde',
|
|
59
59
|
mode: 'Hardcore',
|
|
60
|
-
skills: {
|
|
60
|
+
skills: { level: 40, magic: 20, magicResistance: 18, dexterity: 12, stamina: 15 },
|
|
61
61
|
equipment: [
|
|
62
|
-
{ slot: '
|
|
63
|
-
{ slot: '
|
|
62
|
+
{ slot: 'rightHand', itemName: 'Staff of Flames', itemKey: 'fire-staff', rarity: 'Epic' },
|
|
63
|
+
{ slot: 'armor', itemName: 'Arcane Robe', itemKey: 'arcane-robe', rarity: 'Legendary' },
|
|
64
|
+
{ slot: 'neck', itemName: 'Mana Amulet', itemKey: 'mana-amulet', rarity: 'Rare' },
|
|
64
65
|
],
|
|
65
66
|
textureKey: 'pink-mage-1',
|
|
66
67
|
},
|