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,6 +210,14 @@ export class HubGoals extends BasicSerializableObject {
return; return;
} }
if (globalConfig.debug.rewardsSingleShape) {
this.currentGoal = {
/** @type {ShapeDefinition} */
definition: this.createRandomShape(),
required: 1,
reward: enumHubGoalRewards.no_reward_freeplay,
};
} else {
this.currentGoal = { this.currentGoal = {
/** @type {ShapeDefinition} */ /** @type {ShapeDefinition} */
definition: this.createRandomShape(), definition: this.createRandomShape(),
@ -217,6 +225,7 @@ export class HubGoals extends BasicSerializableObject {
reward: enumHubGoalRewards.no_reward_freeplay, reward: enumHubGoalRewards.no_reward_freeplay,
}; };
} }
}
/** /**
* Called when the level was completed * Called when the level was completed