mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-18 10:01:23 +01:00
religion in onhover to have a well definde default
This commit is contained in:
parent
e4c837870c
commit
19117a7ac5
1 changed files with 1 additions and 1 deletions
|
|
@ -192,7 +192,7 @@ const onHoverEventsMap: OnHoverEventMap = {
|
|||
religionsLayer: ({packCellId}) => {
|
||||
const religionId = pack.cells.religion[packCellId];
|
||||
const religion = pack.religions[religionId];
|
||||
const {type, name} = isReligion(religion) ? religion : {}; //MARKER: religion check
|
||||
const {type, name} = isReligion(religion) ? religion : {type: "None", name: "None"}; //MARKER: religion check
|
||||
const typeTip = type === "Cult" || type == "Heresy" ? type : type + " religion";
|
||||
tip(`${typeTip}: ${name}`);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue