Skip to content

Commit

Permalink
Merge pull request #80 from kosta/update-card-urls
Browse files Browse the repository at this point in the history
update urls for personal goals, battle goals and road/city events
  • Loading branch information
signed authored Jan 10, 2023
2 parents 98413f2 + c64f53f commit e4cc131
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Gallery.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ class Gallery extends React.Component<NoProps, NoState> {
height: 300
};
const cards = allBattleGoals.map(it => {
const imgUrl = `https://raw.githubusercontent.com/any2cards/gloomhaven/master/images/battle-goals/${urlToScanFor(it)}.png`;
const imgUrl = `https://raw.githubusercontent.com/any2cards/gloomhaven/master/images/battle-goals/gloomhaven/${urlToScanFor(it)}.png`;
const style = {
display: 'flex',
flexDirection: 'row'
Expand Down
2 changes: 1 addition & 1 deletion src/cards/PersonalGoalCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@ export class PersonalGoalCard extends React.Component<PersonalGoalCardProps, NoS
borderRadius: '20px'
} as React.CSSProperties;
const cardId = this.props.cardId;
return <img key={cardId} style={style} src={"https://raw.githubusercontent.com/any2cards/gloomhaven/master/images/personal-goals/pg-" + cardId + ".png"} alt='personal goal'/>
return <img key={cardId} style={style} src={"https://raw.githubusercontent.com/any2cards/gloomhaven/master/images/personal-quests/gloomhaven/gh-pq-" + cardId + ".png"} alt='personal goal'/>
}
}
2 changes: 1 addition & 1 deletion src/events/EventCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export default class EventCard extends React.Component<EventCardProps, NoState>
eventCardImageUrl() {
const twoDigitNumber = (this.props.eventCardId <= 9 ? "0" : "") + this.props.eventCardId;
const imageName = this.props.name.toLowerCase();
const imageBaseUrl = "https://raw.githubusercontent.com/any2cards/gloomhaven/master/images/events/" + imageName + "/" + imageName.charAt(0) + "e-" + twoDigitNumber + "-";
const imageBaseUrl = "https://raw.githubusercontent.com/any2cards/gloomhaven/master/images/events/gloomhaven/" + imageName + "/gh-" + imageName.charAt(0) + "e-" + twoDigitNumber + "-";
const sideUrlPart = this.props.side === Side.Back ? 'b' : 'f';
return imageBaseUrl + sideUrlPart + '.png';
}
Expand Down

0 comments on commit e4cc131

Please sign in to comment.