mirror of
https://github.com/thepaperpilot/Advent-Incremental.git
synced 2025-01-31 07:31:37 +00:00
attempted to add the focus upgrade effects
This commit is contained in:
parent
dade814450
commit
7a5aec69f9
1 changed files with 4 additions and 2 deletions
|
@ -901,6 +901,7 @@ const layer = createLayer(id, () => {
|
|||
focusMaxMulti.value,
|
||||
1 - Math.abs(Math.sin((Date.now() / 1000) * 2))
|
||||
);
|
||||
|
||||
}
|
||||
});
|
||||
|
||||
|
@ -911,7 +912,7 @@ const layer = createLayer(id, () => {
|
|||
const focusCooldown = persistent<number>(0);
|
||||
const focusTime = persistent<number>(0);
|
||||
|
||||
const focusMaxMulti = computed<DecimalSource>(() => 10);
|
||||
const focusMaxMulti = computed<DecimalSource>(() => focusUpgrade1.bought.value ? 20 : 10);
|
||||
|
||||
const focusMeter = createBar(() => ({
|
||||
direction: Direction.Right,
|
||||
|
@ -948,8 +949,9 @@ const layer = createLayer(id, () => {
|
|||
},
|
||||
canClick: () => focusCooldown.value === 0,
|
||||
onClick() {
|
||||
focusCooldown.value = 15;
|
||||
focusCooldown.value = focusUpgrade3.bought.value ? 10 : 15;
|
||||
focusTime.value = 10;
|
||||
rerollFocusTargets(12, focusUpgrade2.bought.value ? 4 : 3);
|
||||
}
|
||||
}));
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue