Skip to content

Commit

Permalink
Add Matilda
Browse files Browse the repository at this point in the history
  • Loading branch information
sho-87 committed Sep 1, 2020
1 parent cc5b56f commit 71ce501
Show file tree
Hide file tree
Showing 5 changed files with 47 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "rok-talents",
"title": "RoK Talents",
"version": "1.6.0",
"version": "1.7.0",
"dataVersion": 1,
"description": "Rise of Kingdoms talent builder",
"homepage": "https://roktalents.com",
Expand Down
Binary file added public/images/commanders/Matilda of Flanders.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 11 additions & 1 deletion src/Modals.js
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,17 @@ export class AboutModal extends Component {
View latest release
</Button>
<hr />
<h2>Release History (click to view):</h2>
<h2>Release History</h2>
<Button
className="button-releases-history"
variant="primary"
size="sm"
onClick={() => {
this.showAnnouncement('1.7.0');
}}
>
1.7.0
</Button>
<Button
className="button-releases-history"
variant="primary"
Expand Down
23 changes: 23 additions & 0 deletions src/announcements/1_7.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
import React from 'react';
import '../styles/Announcement.css';

const Announcement = React.memo((props) => {
return (
<>
<h1>{`Update: v1.7.0`}</h1>
<div>
Added new epic commander: Matilda of Flanders
</div>

<div className="announce-img-container">
<img
src={`${process.env.PUBLIC_URL}/images/commanders/Matilda of Flanders.png`}
className="announce-img"
alt="Matilda"
></img>
</div>
</>
);
});

export default Announcement;
12 changes: 12 additions & 0 deletions src/data/commanders.json
Original file line number Diff line number Diff line change
Expand Up @@ -437,5 +437,17 @@
"guides": {
"rokguide": "https://rok.guide/william-i/"
}
},
"Matilda of Flanders": {
"id": "46",
"shortName": "Matilda",
"title": "Duchess Regent of Normandy",
"tier": "Epic",
"red": "Integration",
"yellow": "Gathering",
"blue": "Defense",
"guides": {
"rokguide": "https://rok.guide/matilda-of-flanders/"
}
}
}

0 comments on commit 71ce501

Please sign in to comment.