Merge branch 'master' into 73-implement-nfp-logic-for-mucus-mode

This commit is contained in:
Julia Friesel committed 2018-07-16 13:55:07 +02:00
commit c96d3d4550
16 files changed
+601 -371

No files matched your search

+16
View File
@@ -0,0 +1,16 @@
export default function (feeling, texture) {
const feelingMapping = {
0: 0,
1: 1,
2: 2,
3: 4
}
const textureMapping = {
0: 0,
1: 3,
2: 4
}
const nfpFeelingValue = feelingMapping[feeling]
const nfpTextureValue = textureMapping[texture]
return Math.max(nfpFeelingValue, nfpTextureValue)
}