religion in onhover to have a well definde default

This commit is contained in:
kruschen 2024-08-27 16:46:38 +00:00
parent e4c837870c
commit 19117a7ac5

View file

@ -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}`);