Skip to content

Commit

Permalink
Add Mulan, Harald, Zenobia
Browse files Browse the repository at this point in the history
  • Loading branch information
sho-87 committed Oct 19, 2020
1 parent 71ce501 commit 54238eb
Show file tree
Hide file tree
Showing 7 changed files with 82 additions and 1 deletion.
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.7.0",
"version": "1.8.0",
"dataVersion": 1,
"description": "Rise of Kingdoms talent builder",
"homepage": "https://roktalents.com",
Expand Down
Binary file added public/images/commanders/Harald Sigurdsson.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/commanders/Mulan.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/commanders/Zenobia.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 10 additions & 0 deletions src/Modals.js
Original file line number Diff line number Diff line change
Expand Up @@ -298,6 +298,16 @@ export class AboutModal extends Component {
</Button>
<hr />
<h2>Release History</h2>
<Button
className="button-releases-history"
variant="primary"
size="sm"
onClick={() => {
this.showAnnouncement('1.8.0');
}}
>
1.8.0
</Button>
<Button
className="button-releases-history"
variant="primary"
Expand Down
37 changes: 37 additions & 0 deletions src/announcements/1_8.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
import React from 'react';
import '../styles/Announcement.css';

const Announcement = React.memo((props) => {
return (
<>
<h1>{`Update: v1.8.0`}</h1>
<div>
Added new legendary commanders: Mulan, Harald, and Zenobia
</div>

<div className="announce-img-container">
<img
src={`${process.env.PUBLIC_URL}/images/commanders/Mulan.png`}
className="announce-img"
alt="Mulan"
></img>
</div>
<div className="announce-img-container">
<img
src={`${process.env.PUBLIC_URL}/images/commanders/Harald Sigurdsson.png`}
className="announce-img"
alt="Harald"
></img>
</div>
<div className="announce-img-container">
<img
src={`${process.env.PUBLIC_URL}/images/commanders/Zenobia.png`}
className="announce-img"
alt="Zenobia"
></img>
</div>
</>
);
});

export default Announcement;
34 changes: 34 additions & 0 deletions src/data/commanders.json
Original file line number Diff line number Diff line change
Expand Up @@ -449,5 +449,39 @@
"guides": {
"rokguide": "https://rok.guide/matilda-of-flanders/"
}
},
"Mulan": {
"id": "47",
"title": "Legendary Heroine",
"tier": "Legendary",
"red": "Integration",
"yellow": "Peacekeeping",
"blue": "Support",
"guides": {
"rokguide": "https://rok.guide/mulan/"
}
},
"Harald Sigurdsson": {
"id": "48",
"shortName": "Harald",
"title": "Hardrada",
"tier": "Legendary",
"red": "Infantry",
"yellow": "Conquering",
"blue": "Skill",
"guides": {
"rokguide": "https://rok.guide/harald-sigurdsson/"
}
},
"Zenobia": {
"id": "49",
"title": "Queen of Palmyra",
"tier": "Legendary",
"red": "Infantry",
"yellow": "Garrison",
"blue": "Support",
"guides": {
"rokguide": "https://rok.guide/zenobia/"
}
}
}

0 comments on commit 54238eb

Please sign in to comment.