mirror of
https://github.com/UiO-Gaming/bebbes.git
synced 2026-11-05 13:56:50 +01:00
fix bottle count being rounded twice
This commit is contained in:
1 parent
519910b231
commit
4b0e3d42b9
1 file changed
+1
-1
@@ -8,7 +8,7 @@ const calculateLiters = (people: number, thirstyness: number) => {
|
||||
};
|
||||
|
||||
const calculateBottles = (people: number, thirstyness: number) => {
|
||||
return Math.ceil(calculateLiters(people, thirstyness) / 1.5);
|
||||
return Math.ceil((people * thirstyness) / 1.5);
|
||||
};
|
||||
|
||||
const calculatePizzaSlices = (people: number, hungriness: number) => {
|
||||
|
||||
Reference in new issue
Block a user