mirror of
https://github.com/thepaperpilot/Advent-Incremental.git
synced 2024-11-22 00:21:34 +00:00
Did a bit of balancing
This commit is contained in:
parent
c9765dc964
commit
6eaf6b69de
2 changed files with 7 additions and 5 deletions
|
@ -120,15 +120,16 @@ const layer = createLayer(id, () => {
|
||||||
...modifiers: Modifier[]
|
...modifiers: Modifier[]
|
||||||
) {
|
) {
|
||||||
const exp = persistent<DecimalSource>(0);
|
const exp = persistent<DecimalSource>(0);
|
||||||
const expRequiredForNextLevel = computed(() => Decimal.pow(10, level.value).mul(1e4));
|
const costMulti = ["Holly","Ivy","Hope","Jack","Mary","Noel","Joy","Faith","Snowball","Star","Bell","Gingersnap"].indexOf(elf.name)+1
|
||||||
|
const expRequiredForNextLevel = computed(() => Decimal.pow(10, level.value).mul(2022).mul(costMulti));
|
||||||
const level = computed(() =>
|
const level = computed(() =>
|
||||||
Decimal.min(
|
Decimal.min(
|
||||||
Decimal.mul(9, exp.value).div(1e4).add(1).log10().floor(),
|
Decimal.mul(9, exp.value).div(2022).div(costMulti).add(1).log10().floor(),
|
||||||
schools.amount.value
|
schools.amount.value
|
||||||
).toNumber()
|
).toNumber()
|
||||||
);
|
);
|
||||||
const expToNextLevel = computed(() =>
|
const expToNextLevel = computed(() =>
|
||||||
Decimal.sub(exp.value, Decimal.pow(10, level.value).sub(1).div(9).mul(1e4))
|
Decimal.sub(exp.value, Decimal.pow(10, level.value).sub(1).div(9).mul(2022))
|
||||||
);
|
);
|
||||||
const bar = createBar(() => ({
|
const bar = createBar(() => ({
|
||||||
direction: Direction.Right,
|
direction: Direction.Right,
|
||||||
|
@ -1027,8 +1028,9 @@ const layer = createLayer(id, () => {
|
||||||
|
|
||||||
const schoolCost = computed(() => {
|
const schoolCost = computed(() => {
|
||||||
const schoolFactor = Decimal.pow(10, schools.amount.value);
|
const schoolFactor = Decimal.pow(10, schools.amount.value);
|
||||||
|
const woodFactor = Decimal.pow(1e6, schools.amount.value)
|
||||||
return {
|
return {
|
||||||
wood: schoolFactor.mul(1e21),
|
wood: woodFactor.mul(1e21),
|
||||||
coal: schoolFactor.mul(1e32),
|
coal: schoolFactor.mul(1e32),
|
||||||
paper: schoolFactor.mul(1e18),
|
paper: schoolFactor.mul(1e18),
|
||||||
boxes: schoolFactor.mul(1e13),
|
boxes: schoolFactor.mul(1e13),
|
||||||
|
|
Loading…
Reference in a new issue