Skip to content

Commit

Permalink
Fixed location for zones
Browse files Browse the repository at this point in the history
  • Loading branch information
zy4m committed Jan 16, 2023
1 parent fdf8c35 commit 6eebb25
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/PetCard/PetCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export default class PetCard extends React.Component<PetCardProps, PetCardState>
</Typography>
<Typography variant="body2" color="text.secondary">
<div>
Location: {Globals.Expeditions[this.props.pet.location]} <br />
Location: {this.props.pet.location.startsWith('E') ? Globals.Expeditions[this.props.pet.location] : this.props.pet.location} <br />
Type: {this.props.pet.type}
</div>
<Divider>
Expand Down
2 changes: 1 addition & 1 deletion src/components/PetCardDialog/PetCardDialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export default class PetCardDialog extends React.Component<PetCardDialogProps, a
<CardContent>
<Typography variant="body2" color="text.secondary">
<div>
Location: {Globals.Expeditions[this.props.selectedPet.location]} <br />
Location: {this.props.selectedPet.location.startsWith('E') ? Globals.Expeditions[this.props.selectedPet.location] : this.props.selectedPet.location} <br />
Type: {this.props.selectedPet.type} <br />
Drop Chance: 1/{(this.props.selectedPet.pity/4).toLocaleString()} <br />
Base Pity: {(this.props.selectedPet.pity/2).toLocaleString()} {this.props.selectedPet.location.startsWith('E') ? 'hrs.':''}
Expand Down

0 comments on commit 6eebb25

Please sign in to comment.