mirror of
https://github.com/tobspr/shapez.io.git
synced 2025-06-13 13:04:03 +00:00
Merge branch 'macro_fix_2' into puzzle
This commit is contained in:
commit
ad50bd64f7
@ -72,7 +72,7 @@ export const globalConfig = {
|
||||
|
||||
readerAnalyzeIntervalSeconds: 10,
|
||||
|
||||
goalAcceptorItemsRequired: 13,
|
||||
goalAcceptorItemsRequired: 12,
|
||||
goalAcceptorsPerProducer: 5,
|
||||
puzzleModeSpeed: 3,
|
||||
puzzleMinBoundsSize: 2,
|
||||
|
@ -56,4 +56,12 @@ export class GoalAcceptorComponent extends Component {
|
||||
(globalConfig.puzzleModeSpeed * globalConfig.beltSpeedItemsPerSecond)
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* Copy the current state to another component
|
||||
* @param {GoalAcceptorComponent} otherComponent
|
||||
*/
|
||||
copyAdditionalStateTo(otherComponent) {
|
||||
otherComponent.item = this.item;
|
||||
}
|
||||
}
|
||||
|
@ -69,7 +69,7 @@ export class GoalAcceptorSystem extends GameSystemWithFilter {
|
||||
|
||||
const requiredItems = globalConfig.goalAcceptorItemsRequired;
|
||||
|
||||
const fillPercentage = clamp(requiredItems, 0, 1);
|
||||
const fillPercentage = clamp(goalComp.currentDeliveredItems / requiredItems, 0, 1);
|
||||
|
||||
const center = staticComp.getTileSpaceBounds().getCenter().toWorldSpace();
|
||||
if (item) {
|
||||
|
@ -24,12 +24,12 @@ export class ClientAPI {
|
||||
}
|
||||
|
||||
getEndpoint() {
|
||||
//if (G_IS_DEV) {
|
||||
// return "http://localhost:15001";
|
||||
//}
|
||||
//if (window.location.host === "beta.shapez.io") {
|
||||
// return "https://api-staging.shapez.io";
|
||||
//}
|
||||
if (G_IS_DEV) {
|
||||
return "http://localhost:15001";
|
||||
}
|
||||
if (window.location.host === "beta.shapez.io") {
|
||||
return "https://api-staging.shapez.io";
|
||||
}
|
||||
return "https://api.shapez.io";
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user