@ginstone/nga-api
Version:
17 lines (16 loc) • 412 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.Money = void 0;
class Money {
constructor(raw) {
const h = 100;
this.raw = raw;
let temp = raw;
this.copper = temp % h;
temp = (temp - this.copper) / h;
this.silver = temp % h;
temp = (temp - this.silver) / h;
this.gold = temp;
}
}
exports.Money = Money;