Rename module

This commit is contained in:
Julia Friesel
2018-12-21 08:43:52 +01:00
parent d07ab446dc
commit 2c48d59f54
3 changed files with 3 additions and 3 deletions
+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)
}