mirror of
https://github.com/IvarK/AntimatterDimensionsSourceCode.git
synced 2024-11-12 23:23:20 +00:00
Merge pull request #2289 from IvarK/replicanti-galaxy-request-hotkeys
Resolve #2218
This commit is contained in:
commit
8fef20131d
@ -82,7 +82,7 @@ export const shortcuts = [
|
||||
name: "Replicanti Galaxy",
|
||||
keys: ["r"],
|
||||
type: "bindRepeatableHotkey",
|
||||
function: () => replicantiGalaxy(),
|
||||
function: () => replicantiGalaxyRequest(),
|
||||
visible: () => Replicanti.areUnlocked || PlayerProgress.eternityUnlocked()
|
||||
}, {
|
||||
name: "Eternity",
|
||||
|
@ -34,6 +34,12 @@ export function replicantiGalaxy() {
|
||||
addReplicantiGalaxies(galaxyGain);
|
||||
}
|
||||
|
||||
export function replicantiGalaxyRequest() {
|
||||
if (!Replicanti.galaxies.canBuyMore) return;
|
||||
if (player.options.confirmations.replicantiGalaxy) Modal.replicantiGalaxy.show();
|
||||
else replicantiGalaxy();
|
||||
}
|
||||
|
||||
// Produces replicanti quickly below e308, will auto-bulk-RG if production is fast enough
|
||||
// Returns the remaining unused gain factor
|
||||
function fastReplicantiBelow308(log10GainFactor, isAutobuyerActive) {
|
||||
|
@ -57,9 +57,7 @@ export default {
|
||||
this.update();
|
||||
},
|
||||
handleClick() {
|
||||
if (!this.isAvailable) return;
|
||||
if (player.options.confirmations.replicantiGalaxy) Modal.replicantiGalaxy.show();
|
||||
else replicantiGalaxy();
|
||||
replicantiGalaxyRequest();
|
||||
}
|
||||
}
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user