fungi-inventory.js
// The leftmost fungus grows and the rest is removed
The leftmost fungus grows and the rest is removed
The leftmost fungus grows and the rest is removed
collapse () {
    this.slots[0].stage += 1
    for (let j = 1; j < this.slots.length; j++) {
      this.slots[j].empty()
    }
  }
collapse ( ) { this . slots [ 0 ] . stage += 1 for ( let j = 1 ; j < this . slots . length ; j ++ ) { this . slots [ j ] . empty ( ) } }
The leftmost fungus grows and the rest is removed
The leftmost fungus grows and the rest is removed