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,6 +210,14 @@ export class HubGoals extends BasicSerializableObject {
|
||||
return;
|
||||
}
|
||||
|
||||
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(),
|
||||
@ -217,6 +225,7 @@ export class HubGoals extends BasicSerializableObject {
|
||||
reward: enumHubGoalRewards.no_reward_freeplay,
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Called when the level was completed
|
||||
|
Loading…
Reference in New Issue
Block a user