-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Character card and sheet now use actual character data
- Loading branch information
Showing
14 changed files
with
277 additions
and
76 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
15 changes: 15 additions & 0 deletions
15
resources/js/game-data/api-data-definitions/character/elemental-atonement-definition.ts
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,15 @@ | ||
interface Atonements { | ||
fire: number; | ||
ice: number; | ||
water: number; | ||
} | ||
|
||
interface HighestElement { | ||
name: string; | ||
damage: number; | ||
} | ||
|
||
export default interface ElementalAtonementDefinition { | ||
atonements: Atonements; | ||
highest_element: HighestElement; | ||
} |
5 changes: 5 additions & 0 deletions
5
resources/js/game-data/api-data-definitions/character/resistance-info-definition.ts
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,5 @@ | ||
export default interface ResistanceInfoDefinition { | ||
spell_evasion: number; | ||
affix_damage_reduction: number; | ||
healing_reduction: number; | ||
} |
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,16 @@ | ||
import React, { ReactNode } from 'react'; | ||
|
||
import { Alert } from 'ui/alerts/alert'; | ||
import { AlertVariant } from 'ui/alerts/enums/alert-variant'; | ||
|
||
export const GameDataError = (): ReactNode => { | ||
return ( | ||
<Alert variant={AlertVariant.DANGER}> | ||
<p> | ||
Something is wrong child. The character data is missing. Head to discord | ||
and report this. You can access this via the right profile icon, click | ||
Discord and post this in #bugs. | ||
</p> | ||
</Alert> | ||
); | ||
}; |
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
5 changes: 5 additions & 0 deletions
5
...s/actions/partials/floating-cards/character-details/types/character-card-details-props.ts
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,5 @@ | ||
import CharacterSheetDefinition from 'game-data/api-data-definitions/character/character-sheet-definition'; | ||
|
||
export default interface CharacterCardDetailsProps { | ||
characterData: CharacterSheetDefinition; | ||
} |
Oops, something went wrong.