fix: Use more descriptive depth
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
moanos [he/him] 2024-07-20 08:50:07 +02:00
parent 04dc1e6b90
commit 1d41b0cfc7

View File

@ -49,7 +49,7 @@ function cageCheck(dimensions, numRats, numFullFloors) {
failedCriteria[FAILED_NUM_RATS] = FAIL_CRITERIA[FAILED_NUM_RATS];
}
const baseArea = dimensions.length * dimensions.width;
const baseArea = dimensions.depth * dimensions.width;
if (baseArea < MINIMUM_BASE_AREA) {
failedCriteria[FAILED_BASE_AREA] = FAIL_CRITERIA[FAILED_BASE_AREA];
}
@ -63,7 +63,7 @@ function cageCheck(dimensions, numRats, numFullFloors) {
failedCriteria[FAILED_FALL_HEIGHT] = FAIL_CRITERIA[FAILED_FALL_HEIGHT];
}
if (dimensions.width < MINIMUM_LENGTH && dimensions.length < MINIMUM_LENGTH) {
if (dimensions.width < MINIMUM_LENGTH && dimensions.depth < MINIMUM_LENGTH) {
failedCriteria[FAILED_LENGTH] = FAIL_CRITERIA[FAILED_LENGTH];
}