mirror of
https://github.com/tobspr/shapez.io.git
synced 2025-06-13 13:04:03 +00:00
Minor cleanup
This commit is contained in:
parent
694b95c25c
commit
3a99628670
@ -76,11 +76,13 @@ export class MinerSystem extends GameSystemWithFilter {
|
|||||||
const exitEntity = minerComp.cachedExitMiner;
|
const exitEntity = minerComp.cachedExitMiner;
|
||||||
if (exitEntity) {
|
if (exitEntity) {
|
||||||
const exitMinerComp = exitEntity.components.Miner;
|
const exitMinerComp = exitEntity.components.Miner;
|
||||||
exitMinerComp.progress += progressGrowth;
|
if (exitMinerComp.progress < targetProgress + 0.5) {
|
||||||
|
// we can add on some extra progress
|
||||||
|
exitMinerComp.progress += progressGrowth;
|
||||||
|
}
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
//console.log(minerComp.progress);
|
|
||||||
|
|
||||||
if (minerComp.progress >= targetProgress) {
|
if (minerComp.progress >= targetProgress) {
|
||||||
// We can try to eject
|
// We can try to eject
|
||||||
|
Loading…
Reference in New Issue
Block a user