@rpg-engine/long-bow 0.8.103 → 0.8.104
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 +49 -23
- 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 +49 -23
- package/dist/long-bow.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/DailyTasks/DailyRewardsTooltip.tsx +11 -16
- package/src/components/DailyTasks/TaskProgress.tsx +1 -3
- package/src/components/DailyTasks/TaskProgressDetails.tsx +15 -4
- package/src/components/Item/Cards/ItemInfo.tsx +5 -5
- package/src/components/Item/Inventory/ItemSlotQty/ItemSlotQty.tsx +1 -1
- package/src/components/ProgressBar.tsx +1 -1
- package/src/components/SkillProgressBar.tsx +5 -5
- package/src/components/Spellbook/Spell.tsx +2 -2
- package/src/components/Store/CartView.tsx +6 -2
- package/src/components/Store/StoreItemRow.tsx +3 -1
package/package.json
CHANGED
|
@@ -46,7 +46,7 @@ export const DailyRewardsTooltip: React.FC<IDailyRewardsTooltipProps> = ({
|
|
|
46
46
|
return (
|
|
47
47
|
<TooltipContainer>
|
|
48
48
|
<CollapsibleHeader onClick={toggleExpand}>
|
|
49
|
-
<HeaderText>Rewards
|
|
49
|
+
<HeaderText>Rewards</HeaderText>
|
|
50
50
|
<ExpandIcon>{isExpanded ? '▼' : '▶'}</ExpandIcon>
|
|
51
51
|
</CollapsibleHeader>
|
|
52
52
|
|
|
@@ -129,10 +129,12 @@ const CollapsibleContent = styled.div`
|
|
|
129
129
|
const RewardItem = styled.div`
|
|
130
130
|
display: flex;
|
|
131
131
|
align-items: center;
|
|
132
|
-
gap:
|
|
132
|
+
gap: 6px;
|
|
133
133
|
width: 100%;
|
|
134
|
-
padding: 2px;
|
|
135
|
-
min-height:
|
|
134
|
+
padding: 2px 4px;
|
|
135
|
+
min-height: 24px;
|
|
136
|
+
background: rgba(0, 0, 0, 0.2);
|
|
137
|
+
border-radius: 3px;
|
|
136
138
|
`;
|
|
137
139
|
|
|
138
140
|
const RewardIcon = styled.div`
|
|
@@ -140,25 +142,19 @@ const RewardIcon = styled.div`
|
|
|
140
142
|
width: 20px;
|
|
141
143
|
height: 20px;
|
|
142
144
|
display: flex;
|
|
143
|
-
align-items:
|
|
144
|
-
justify-content:
|
|
145
|
+
align-items: center;
|
|
146
|
+
justify-content: center;
|
|
145
147
|
font-style: normal;
|
|
146
|
-
|
|
147
|
-
|
|
148
|
+
|
|
148
149
|
* {
|
|
149
150
|
font-style: normal !important;
|
|
150
151
|
}
|
|
151
|
-
|
|
152
|
-
position: relative;
|
|
153
|
-
left: -0.5rem;
|
|
154
|
-
top: -0.4rem;
|
|
155
152
|
`;
|
|
156
153
|
|
|
157
154
|
const RewardContent = styled.div`
|
|
158
155
|
display: flex;
|
|
159
|
-
justify-content: space-between;
|
|
160
156
|
align-items: center;
|
|
161
|
-
|
|
157
|
+
gap: 4px;
|
|
162
158
|
min-width: 0;
|
|
163
159
|
`;
|
|
164
160
|
|
|
@@ -174,11 +170,10 @@ const RewardLabel = styled.span<{ isMobile: boolean }>`
|
|
|
174
170
|
|
|
175
171
|
const RewardValue = styled.span<{ isMobile: boolean }>`
|
|
176
172
|
color: ${uiColors.green};
|
|
177
|
-
font-size: ${props => props.isMobile ? '0.
|
|
173
|
+
font-size: ${props => props.isMobile ? '0.65rem' : '0.7rem'};
|
|
178
174
|
line-height: 1.2;
|
|
179
175
|
display: flex;
|
|
180
176
|
align-items: center;
|
|
181
177
|
font-weight: 600;
|
|
182
178
|
flex-shrink: 0;
|
|
183
|
-
margin-left: 8px;
|
|
184
179
|
`;
|
|
@@ -102,17 +102,28 @@ export const TaskProgressDetails: React.FC<ITaskProgressDetailsProps> = ({
|
|
|
102
102
|
const ProgressList = styled.div`
|
|
103
103
|
display: flex;
|
|
104
104
|
flex-direction: column;
|
|
105
|
-
gap:
|
|
105
|
+
gap: 4px;
|
|
106
106
|
`;
|
|
107
107
|
|
|
108
108
|
const ProgressItem = styled.div`
|
|
109
109
|
display: flex;
|
|
110
|
-
justify-content: space-between;
|
|
111
110
|
align-items: center;
|
|
111
|
+
gap: 6px;
|
|
112
|
+
background: rgba(0, 0, 0, 0.2);
|
|
113
|
+
padding: 4px 8px;
|
|
114
|
+
border-radius: 3px;
|
|
115
|
+
|
|
116
|
+
span:first-child {
|
|
117
|
+
color: ${uiColors.lightGray};
|
|
118
|
+
font-size: 0.75rem;
|
|
119
|
+
}
|
|
112
120
|
`;
|
|
113
121
|
|
|
114
|
-
const ProgressCount = styled.span
|
|
115
|
-
|
|
122
|
+
const ProgressCount = styled.span.attrs({
|
|
123
|
+
className: 'notranslate',
|
|
124
|
+
})`
|
|
125
|
+
color: ${uiColors.green} !important;
|
|
126
|
+
font-weight: 600;
|
|
116
127
|
`;
|
|
117
128
|
|
|
118
129
|
const CheckItemWrapper = styled.div`
|
|
@@ -60,7 +60,7 @@ export const ItemInfo: React.FC<IItemInfoProps> = ({
|
|
|
60
60
|
<Statistic key={stat.key} className={isOnlyInOneItem ? 'better' : ''}>
|
|
61
61
|
<div className="label">{label}:</div>
|
|
62
62
|
<div
|
|
63
|
-
className={`value ${
|
|
63
|
+
className={`value notranslate ${
|
|
64
64
|
isDifference ? (isBetter ? 'better' : 'worse') : ''
|
|
65
65
|
}`}
|
|
66
66
|
>
|
|
@@ -89,7 +89,7 @@ export const ItemInfo: React.FC<IItemInfoProps> = ({
|
|
|
89
89
|
statistics.push(
|
|
90
90
|
<Statistic key={stat.key} className="worse">
|
|
91
91
|
<div className="label">{label}:</div>
|
|
92
|
-
<div className="value worse">
|
|
92
|
+
<div className="value worse notranslate">
|
|
93
93
|
{itemToCompareStatistic.toString()}
|
|
94
94
|
</div>
|
|
95
95
|
</Statistic>
|
|
@@ -146,11 +146,11 @@ export const ItemInfo: React.FC<IItemInfoProps> = ({
|
|
|
146
146
|
{item.minRequirements && (
|
|
147
147
|
<LevelRequirement>
|
|
148
148
|
<div className="title">Requirements:</div>
|
|
149
|
-
<div>- Level: {item.minRequirements?.level}</div>
|
|
149
|
+
<div>- Level: <span className="notranslate">{item.minRequirements?.level}</span></div>
|
|
150
150
|
{skillName && (
|
|
151
151
|
<div>
|
|
152
152
|
- {skillName.charAt(0).toUpperCase() + skillName.slice(1)}:{' '}
|
|
153
|
-
{item.minRequirements?.skill?.level}
|
|
153
|
+
<span className="notranslate">{item.minRequirements?.skill?.level}</span>
|
|
154
154
|
</div>
|
|
155
155
|
)}
|
|
156
156
|
</LevelRequirement>
|
|
@@ -169,7 +169,7 @@ export const ItemInfo: React.FC<IItemInfoProps> = ({
|
|
|
169
169
|
<Description>{item.description}</Description>
|
|
170
170
|
|
|
171
171
|
{item.maxStackSize && item.maxStackSize !== 1 && (
|
|
172
|
-
<StackInfo>
|
|
172
|
+
<StackInfo className="notranslate">
|
|
173
173
|
x{Math.round((item.stackQty ?? 1) * 100) / 100}({item.maxStackSize})
|
|
174
174
|
</StackInfo>
|
|
175
175
|
)}
|
|
@@ -37,7 +37,7 @@ export const ItemSlotQty = ({
|
|
|
37
37
|
return (
|
|
38
38
|
<ItemQtyContainer key={`qty-${itemId}`} className="item-slot-qty">
|
|
39
39
|
<Ellipsis maxLines={1} maxWidth="48px">
|
|
40
|
-
<ItemQty className={qtyClassName}>
|
|
40
|
+
<ItemQty className={`${qtyClassName} notranslate`}>
|
|
41
41
|
{Math.round(stackQty * 100) / 100}{' '}
|
|
42
42
|
</ItemQty>
|
|
43
43
|
</Ellipsis>
|
|
@@ -115,7 +115,7 @@ export const SkillProgressBar: React.FC<ISkillProgressBarProps> = ({
|
|
|
115
115
|
<BuffAndDebuffContainer>
|
|
116
116
|
<TitleNameContainer>
|
|
117
117
|
<TitleNameBuff>{skillName}</TitleNameBuff>
|
|
118
|
-
<TitleNameBuff>
|
|
118
|
+
<TitleNameBuff className="notranslate">
|
|
119
119
|
lv {effectiveLevel} ({skillsBuffsCalc(effectiveLevel, buffAndDebuff)})
|
|
120
120
|
</TitleNameBuff>
|
|
121
121
|
</TitleNameContainer>
|
|
@@ -129,7 +129,7 @@ export const SkillProgressBar: React.FC<ISkillProgressBarProps> = ({
|
|
|
129
129
|
<>
|
|
130
130
|
<TitleNameContainer>
|
|
131
131
|
<TitleNameDebuff>{skillName}</TitleNameDebuff>
|
|
132
|
-
<TitleNameDebuff>
|
|
132
|
+
<TitleNameDebuff className="notranslate">
|
|
133
133
|
lv {effectiveLevel} ({skillsBuffsCalc(effectiveLevel, buffAndDebuff)})
|
|
134
134
|
</TitleNameDebuff>
|
|
135
135
|
</TitleNameContainer>
|
|
@@ -147,7 +147,7 @@ export const SkillProgressBar: React.FC<ISkillProgressBarProps> = ({
|
|
|
147
147
|
{!buffAndDebuff && (
|
|
148
148
|
<TitleNameContainer>
|
|
149
149
|
<TitleName>{skillName}</TitleName>
|
|
150
|
-
<ValueDisplay>lv {effectiveLevel}</ValueDisplay>
|
|
150
|
+
<ValueDisplay className="notranslate">lv {effectiveLevel}</ValueDisplay>
|
|
151
151
|
</TitleNameContainer>
|
|
152
152
|
)}
|
|
153
153
|
</ProgressTitle>
|
|
@@ -174,12 +174,12 @@ export const SkillProgressBar: React.FC<ISkillProgressBarProps> = ({
|
|
|
174
174
|
|
|
175
175
|
<ProgressBarWrapper>
|
|
176
176
|
<SimpleProgressBar value={progress} bgColor={bgColor} />
|
|
177
|
-
<Tooltip>{skillKey ? 'SP' : 'XP'}: {currentSkillPoints}</Tooltip>
|
|
177
|
+
<Tooltip><span className="notranslate">{skillKey ? 'SP' : 'XP'}: {currentSkillPoints}</span></Tooltip>
|
|
178
178
|
</ProgressBarWrapper>
|
|
179
179
|
</ProgressBody>
|
|
180
180
|
{showSkillPoints && (
|
|
181
181
|
<SkillDisplayContainer>
|
|
182
|
-
<SkillPointsDisplay>{progress.toFixed(2)}%</SkillPointsDisplay>
|
|
182
|
+
<SkillPointsDisplay className="notranslate">{progress.toFixed(2)}%</SkillPointsDisplay>
|
|
183
183
|
</SkillDisplayContainer>
|
|
184
184
|
)}
|
|
185
185
|
</>
|
|
@@ -93,7 +93,7 @@ export const Spell: React.FC<ISpellProps> = ({
|
|
|
93
93
|
)}
|
|
94
94
|
<SpellImage>
|
|
95
95
|
{activeCooldown && activeCooldown > 0 ? (
|
|
96
|
-
<span className="cooldown">
|
|
96
|
+
<span className="cooldown notranslate">
|
|
97
97
|
{activeCooldown.toFixed(activeCooldown > 10 ? 0 : 1)}
|
|
98
98
|
</span>
|
|
99
99
|
) : null}
|
|
@@ -117,7 +117,7 @@ export const Spell: React.FC<ISpellProps> = ({
|
|
|
117
117
|
<Divider />
|
|
118
118
|
<Cost>
|
|
119
119
|
<span>Mana cost:</span>
|
|
120
|
-
<span className="mana">{manaCost}</span>
|
|
120
|
+
<span className="mana notranslate">{manaCost}</span>
|
|
121
121
|
</Cost>
|
|
122
122
|
</Container>
|
|
123
123
|
</SpellInfoWrapper>
|
|
@@ -275,7 +275,9 @@ const ItemName = styled.div`
|
|
|
275
275
|
color: #ffffff;
|
|
276
276
|
`;
|
|
277
277
|
|
|
278
|
-
const ItemInfo = styled.div
|
|
278
|
+
const ItemInfo = styled.div.attrs({
|
|
279
|
+
className: 'notranslate',
|
|
280
|
+
})`
|
|
279
281
|
display: flex;
|
|
280
282
|
align-items: center;
|
|
281
283
|
gap: 0.5rem;
|
|
@@ -299,7 +301,9 @@ const TotalInfo = styled.div`
|
|
|
299
301
|
gap: 0.5rem;
|
|
300
302
|
`;
|
|
301
303
|
|
|
302
|
-
const TotalRow = styled.div
|
|
304
|
+
const TotalRow = styled.div.attrs({
|
|
305
|
+
className: 'notranslate',
|
|
306
|
+
})`
|
|
303
307
|
display: flex;
|
|
304
308
|
align-items: center;
|
|
305
309
|
justify-content: space-between;
|
|
@@ -161,7 +161,9 @@ const ItemName = styled.div`
|
|
|
161
161
|
color: #ffffff;
|
|
162
162
|
`;
|
|
163
163
|
|
|
164
|
-
const ItemPrice = styled.div
|
|
164
|
+
const ItemPrice = styled.div.attrs({
|
|
165
|
+
className: 'notranslate',
|
|
166
|
+
})`
|
|
165
167
|
font-family: 'Press Start 2P', cursive;
|
|
166
168
|
font-size: 0.625rem;
|
|
167
169
|
color: #fef08a;
|