This repository has been archived by the owner on Mar 23, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #217 from RaenonX-DL/dev
v2.10.1 Release
- Loading branch information
Showing
30 changed files
with
381 additions
and
181 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
50 changes: 50 additions & 0 deletions
50
src/components/elements/gameData/skillAtk/out/sections/additional.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
import React from 'react'; | ||
|
||
import Col from 'react-bootstrap/Col'; | ||
import Row from 'react-bootstrap/Row'; | ||
|
||
import {getBadgesBuffCount} from '../badges/buffCount'; | ||
import {getBadgesBuffZone} from '../badges/buffZone'; | ||
import {getBadgesCrisisMod} from '../badges/crisisMod'; | ||
import {getBadgesDispel} from '../badges/dispel'; | ||
import {SkillEntryProps} from '../entry'; | ||
import {EnumDataPack, SectionProps} from '../props'; | ||
import {SectionAffliction} from './affliction'; | ||
|
||
|
||
type Props = SectionProps & Pick<EnumDataPack, 'statusEnums'> & Pick<SkillEntryProps, 'displayConfig'> | ||
|
||
export const SectionAdditional = ({atkSkillEntry, displayConfig, statusEnums}: Props) => { | ||
let badges: Array<React.ReactElement> = []; | ||
|
||
badges = badges.concat(getBadgesBuffCount(atkSkillEntry)); | ||
badges = badges.concat(getBadgesBuffZone(atkSkillEntry)); | ||
badges = badges.concat(getBadgesDispel(atkSkillEntry)); | ||
badges = badges.concat(getBadgesCrisisMod(atkSkillEntry)); | ||
|
||
return ( | ||
<> | ||
{ | ||
!displayConfig.actualDamage && (!!atkSkillEntry.skill.afflictions.length || !!badges.length) && | ||
<hr className="my-1"/> | ||
} | ||
<Row> | ||
{ | ||
displayConfig.affliction && | ||
<SectionAffliction atkSkillEntry={atkSkillEntry} statusEnums={statusEnums}/> | ||
} | ||
{ | ||
!!badges.length && | ||
<Col lg className="text-left text-lg-right my-auto"> | ||
{badges.map((badge: React.ReactElement, index: number) => ( | ||
<React.Fragment key={index}> | ||
{index > 0 && ' '} | ||
{badge} | ||
</React.Fragment> | ||
))} | ||
</Col> | ||
} | ||
</Row> | ||
</> | ||
); | ||
}; |
38 changes: 0 additions & 38 deletions
38
src/components/elements/gameData/skillAtk/out/sections/badges.tsx
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.