Skip to content

Commit

Permalink
Merge pull request #16 from blinktenor/master
Browse files Browse the repository at this point in the history
Add monsters and QoL improvements
  • Loading branch information
Glazelf authored Oct 2, 2023
2 parents dc10392 + 9fd0f97 commit 0680e59
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 5 deletions.
19 changes: 19 additions & 0 deletions objects/monsters.json
Original file line number Diff line number Diff line change
Expand Up @@ -6050,6 +6050,24 @@
]
]
},
"hunter_mech": {
"name": "Hunter Mech",
"number": null,
"rank": "F",
"family": "_material",
"description": null,
"drops": null,
"growth": null,
"talents": null,
"traits": null,
"resistances": null,
"synthesis": [
[
"_material",
"restless_armor"
]
]
},
"slime_knight": {
"name": "Slime Knight",
"number": null,
Expand Down Expand Up @@ -6106,6 +6124,7 @@
},
"restless_armour": {
"name": "Restless Armour",

"number": null,
"rank": "F",
"family": "_undead",
Expand Down
Binary file added public/families/_boss_icon.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/families/_undead_icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions src/app/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ body {
}

.monster-container {
width: 20%;
width: 9%;
margin-left: auto;
margin-right: auto;
color: black;
Expand All @@ -42,7 +42,7 @@ body {

.icon-container {
margin-top: 16px;
width: 66%;
width: 37%;
margin-left: auto;
margin-right: auto;
}
6 changes: 3 additions & 3 deletions src/components/FamilySelector.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import React, { FC } from 'react';

interface FamilySelectorProps {
updateFilter: Function;
updateFilter: object;
}

const FamilySelector: FC<FamilySelectorProps> = ({ updateFilter }) => {
Expand All @@ -18,7 +18,7 @@ const FamilySelector: FC<FamilySelectorProps> = ({ updateFilter }) => {
{ name: 'Undead', family: '_undead', alt: 'undead family' },
];

const handleFamilyClick = (familyName: string) => {
const handleFamilyClick = (familyName) => {
updateFilter(familyName);
};

Expand All @@ -28,7 +28,7 @@ const FamilySelector: FC<FamilySelectorProps> = ({ updateFilter }) => {
<img
key={index}
className='family-icon'
src={`./public/families/${family.family}_icon.png`}
src={`/families/${family.family}_icon.png`}
alt={family.alt}
onClick={() => handleFamilyClick(family.family)}
/>
Expand Down

0 comments on commit 0680e59

Please sign in to comment.