Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags
(+1)

Oh, you're right! It broke when there was no enhance skill because of a missing null chaining operator. It should actually be

a.mat * (a.enhanceSkill?.()?.id == 169 ? 4 : a.enhanceSkill?.()?.id == 168 ? 3 : 2) - b.mdf * 2