Skip to content

Commit 7a65e9f

Browse files
committed
add test page to storybook
1 parent 691e2c5 commit 7a65e9f

File tree

1 file changed

+49
-1
lines changed

1 file changed

+49
-1
lines changed

gw2-ui/src/components/Trait/Trait.stories.tsx

Lines changed: 49 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import type { Meta, StoryFn, StoryObj } from '@storybook/react';
2-
import React from 'react';
2+
import React, { Fragment } from 'react';
33
import Trait from './Trait';
44

55
const meta: Meta<typeof Trait> = {
@@ -30,3 +30,51 @@ export const RecklessDodge: StoryObj<typeof Trait> = {
3030
id: 1446,
3131
},
3232
};
33+
34+
const outdatedOverrides = {
35+
2062: 'Equipping or stowing a Virtue grants you quickness.',
36+
2063: 'Your Mantra skills slow nearby foes. This effect may only occur once per interval. Mantras gain reduced charge-recovery time.',
37+
2071: 'Using a Beast ability grants you offensive boons.',
38+
2072: 'Entering beastmode grants boons and removes movement-impairing conditions.',
39+
2075: 'Axe skills gain a chance to inflict bleeding. Symbol of Vengeance now dazes on its initial strike.',
40+
2076: 'When you grant aegis or stability, grant quickness.',
41+
2079: "Fury increases the duration of bleeds you inflict. Gaining fury inspires you with Kalla's Fervor.",
42+
2085: 'Gaining quickness increases the duration of other boons affecting you.',
43+
2086: 'Your Virtues gain additional pages.',
44+
2092: 'Your short bow skills now pierce. Bleeding you inflict deals more damage.',
45+
2094: "Gaining Kalla's Fervor grants you might. Citadel Bombardment pulls more missiles into Tyria for every stack of Kalla's Fervor affecting you.",
46+
2100: "Kalla's Fervor you inspire lasts longer and is more potent. Heroic Command grants more might per stack of Kalla's Fervor.",
47+
2101: 'Grant allies quickness when you use your heal skill.',
48+
2105: 'Inflict burning and slowness on foes you disable, immobilize, or slow.',
49+
2108: 'Using Legendary Renegade abilities grants protection to allies near the summoned warband member.',
50+
2116: 'Tome skills gain bonuses from scribbling in the margins by ancient bards.',
51+
2119: 'Conditions inflict less damage to you while you have protection.',
52+
2120: "Evading an attack inspires you with Kalla's Fervor and grants boons to nearby allies.",
53+
2127: 'Disabling a foe increases your damage and condition damage for a short duration.',
54+
2134: 'Entering beastmode grants you the boons affecting your pet.',
55+
2142: 'While at full endurance, increase your chance to critically strike. Gain vigor when you gain fury.',
56+
2143: 'Deal increased damage to foes at a lower health percentage than you. Conditions you apply to foes at a lower health percentage than you last longer.',
57+
2148: 'Gain increased attributes while affected by quickness.',
58+
2154: 'Gain fury when you critically strike a foe below the health threshold.',
59+
2155: 'While in beastmode, if you would be downed you instead fall out of beastmode and recover health.',
60+
2156: 'You deal increased strike damage while you have fury.',
61+
2159: 'Tome skills gain reduced recharge. Retain Virtues passives while they are on cooldown.',
62+
2161: 'When you apply poison to a foe, steal some health from them.',
63+
2166: "Disabling a foe cripples your enemy, which leaves them vulnerable and inspires you with Kalla's Fervor.",
64+
2179: 'Granting quickness to an ally also grants Ashes of the Just.',
65+
2182: "Kalla's Fervor reduces the damage you receive from conditions. Orders from Above lasts longer and affects more targets and a larger area.",
66+
};
67+
68+
export function FixedTraits() {
69+
return (
70+
<div>
71+
These traits used to have missing description data in the API, but have been fixed.
72+
{Object.keys(outdatedOverrides).map((id) => (
73+
<Fragment key={id}>
74+
<br />
75+
<Trait id={Number(id)} />
76+
</Fragment>
77+
))}
78+
</div>
79+
);
80+
}

0 commit comments

Comments
 (0)