Skip to content

Commit

Permalink
Caterpillars count as wheels for both axles, fixes #1
Browse files Browse the repository at this point in the history
  • Loading branch information
datagutten committed Jul 9, 2024
1 parent 52996f3 commit ec61f00
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/struct/cardata.js
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,7 @@ class MulleCar {

this.getParts().forEach(v => {
if (v.getProperty('grip')) tires++
if (v.getProperty('grip') === 9) tires = 2 //Caterpillars count as wheels for both axles
})

// tires
Expand Down

0 comments on commit ec61f00

Please sign in to comment.