From 36245eb25cff7ae5923e7ad81c810a34a3bc4ae5 Mon Sep 17 00:00:00 2001 From: Nick Winter Date: Thu, 23 Apr 2015 18:59:15 -0700 Subject: [PATCH] Levels should default to saveThangs: ['Hero Placeholder'] instead of ['humans']. --- app/schemas/models/level.coffee | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/schemas/models/level.coffee b/app/schemas/models/level.coffee index 4b4160c08..1a49a0eaf 100644 --- a/app/schemas/models/level.coffee +++ b/app/schemas/models/level.coffee @@ -77,7 +77,7 @@ GoalSchema = c.object {title: 'Goal', description: 'A goal that the player can a optional: {title: 'Optional', description: 'Optional goals do not need to be completed for overallStatus to be success.', type: 'boolean'} team: c.shortString(title: 'Team', description: 'Name of the team this goal is for, if it is not for all of the playable teams.') killThangs: c.array {title: 'Kill Thangs', description: 'A list of Thang IDs the player should kill, or team names.', uniqueItems: true, minItems: 1, 'default': ['ogres']}, thang - saveThangs: c.array {title: 'Save Thangs', description: 'A list of Thang IDs the player should save, or team names', uniqueItems: true, minItems: 1, 'default': ['humans']}, thang + saveThangs: c.array {title: 'Save Thangs', description: 'A list of Thang IDs the player should save, or team names', uniqueItems: true, minItems: 1, 'default': ['Hero Placeholder']}, thang getToLocations: c.object {title: 'Get To Locations', description: 'Will be set off when any of the \"who\" touch any of the \"targets\"', required: ['who', 'targets']}, who: c.array {title: 'Who', description: 'The Thangs who must get to the target locations.', minItems: 1}, thang targets: c.array {title: 'Targets', description: 'The target locations to which the Thangs must get.', minItems: 1}, thang @@ -261,7 +261,7 @@ LevelSchema = c.object { type: 'hero' goals: [ {id: 'ogres-die', name: 'Ogres must die.', killThangs: ['ogres'], worldEndsAfter: 3} - {id: 'humans-survive', name: 'Humans must survive.', saveThangs: ['humans'], howMany: 1, worldEndsAfter: 3, hiddenGoal: true} + {id: 'humans-survive', name: 'Your hero must survive.', saveThangs: ['Hero Placeholder'], howMany: 1, worldEndsAfter: 3, hiddenGoal: true} ] } c.extendNamedProperties LevelSchema # let's have the name be the first property