1
0
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:
Mr.Yawnie 2020-07-14 16:51:00 +10:00
parent 27921e9d0e
commit 0a1bf83966
2 changed files with 18 additions and 6 deletions

View File

@ -32,6 +32,9 @@ export default {
// All rewards can be unlocked by passing just 1 of any shape // All rewards can be unlocked by passing just 1 of any shape
// rewardsInstant: true, // rewardsInstant: true,
// ----------------------------------------------------------------------------------- // -----------------------------------------------------------------------------------
// Rewards after level 18 can be unlocked by passing just 1 of required shape
// rewardsSingleShape: true,
// -----------------------------------------------------------------------------------
// Unlocks all buildings // Unlocks all buildings
// allBuildingsUnlocked: true, // allBuildingsUnlocked: true,
// ----------------------------------------------------------------------------------- // -----------------------------------------------------------------------------------

View File

@ -210,12 +210,21 @@ export class HubGoals extends BasicSerializableObject {
return; return;
} }
this.currentGoal = { if (globalConfig.debug.rewardsSingleShape) {
/** @type {ShapeDefinition} */ this.currentGoal = {
definition: this.createRandomShape(), /** @type {ShapeDefinition} */
required: 10000 + findNiceIntegerValue(this.level * 2000), definition: this.createRandomShape(),
reward: enumHubGoalRewards.no_reward_freeplay, 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,
};
}
} }
/** /**