event structure clean up
This commit is contained in:
@@ -31,7 +31,7 @@ class AnimText extends preact.Component {
|
||||
const { construct, animText, itemInfo } = this.props;
|
||||
if (animText && animText.event[1].construct === construct.id) {
|
||||
const itemSourceDescription = () => {
|
||||
const itemSource = itemInfo.combos.filter(c => c.item === removeTier(animText.cast.skill));
|
||||
const itemSource = itemInfo.combos.filter(c => c.item === removeTier(animText.skill));
|
||||
const itemSourceInfo = itemSource.length
|
||||
? `${itemSource[0].components[0]} ${itemSource[0].components[1]} ${itemSource[0].components[2]}`
|
||||
: false;
|
||||
@@ -82,7 +82,7 @@ class AnimText extends preact.Component {
|
||||
|
||||
return (
|
||||
<div class="combat-text">
|
||||
<h2><span>{animText.cast.skill}</span></h2>
|
||||
<h2><span>{animText.skill}</span></h2>
|
||||
<span>{itemSourceDescription()}</span>
|
||||
{generateAnimText()}
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user