mirror of
https://github.com/tobspr/shapez.io.git
synced 2025-06-13 13:04:03 +00:00
added debug flag 'rewardsSingleShape'
This commit is contained in:
parent
27921e9d0e
commit
0a1bf83966
@ -32,6 +32,9 @@ export default {
|
||||
// All rewards can be unlocked by passing just 1 of any shape
|
||||
// rewardsInstant: true,
|
||||
// -----------------------------------------------------------------------------------
|
||||
// Rewards after level 18 can be unlocked by passing just 1 of required shape
|
||||
// rewardsSingleShape: true,
|
||||
// -----------------------------------------------------------------------------------
|
||||
// Unlocks all buildings
|
||||
// allBuildingsUnlocked: true,
|
||||
// -----------------------------------------------------------------------------------
|
||||
|
@ -210,12 +210,21 @@ export class HubGoals extends BasicSerializableObject {
|
||||
return;
|
||||
}
|
||||
|
||||
this.currentGoal = {
|
||||
/** @type {ShapeDefinition} */
|
||||
definition: this.createRandomShape(),
|
||||
required: 10000 + findNiceIntegerValue(this.level * 2000),
|
||||
reward: enumHubGoalRewards.no_reward_freeplay,
|
||||
};
|
||||
if (globalConfig.debug.rewardsSingleShape) {
|
||||
this.currentGoal = {
|
||||
/** @type {ShapeDefinition} */
|
||||
definition: this.createRandomShape(),
|
||||
required: 1,
|
||||
reward: enumHubGoalRewards.no_reward_freeplay,
|
||||
};
|
||||
} else {
|
||||
this.currentGoal = {
|
||||
/** @type {ShapeDefinition} */
|
||||
definition: this.createRandomShape(),
|
||||
required: 10000 + findNiceIntegerValue(this.level * 2000),
|
||||
reward: enumHubGoalRewards.no_reward_freeplay,
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user