Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update urls for personal goals, battle goals and road/city events #80

Merged
merged 1 commit into from
Jan 10, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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