UNPKG

@gameroom/cli

Version:

A command line tool for Gameroom

15 lines (14 loc) 258 B
module.exports = (unit) => { let price = unit.amount if (price < 600) { price += 200 } else if (price < 1000) { price += 100 } if (unit.weight > 80) { price += 1200 } else if (unit.weight > 16) { price += 500 } return price }