From cde7a4798f76845b90269c279a1d7efbd6ef8ea0 Mon Sep 17 00:00:00 2001 From: Scott Erickson Date: Thu, 6 Feb 2014 16:03:08 -0800 Subject: [PATCH] Added team as a property to goals in the level schema. --- server/levels/level_schema.coffee | 1 + 1 file changed, 1 insertion(+) diff --git a/server/levels/level_schema.coffee b/server/levels/level_schema.coffee index 4b44e947d..e86a73910 100644 --- a/server/levels/level_schema.coffee +++ b/server/levels/level_schema.coffee @@ -30,6 +30,7 @@ GoalSchema = c.object {title: "Goal", description: "A goal that the player can a worldEndsAfter: {title: 'World Ends After', description: "When included, ends the world this many seconds after this goal succeeds or fails.", type: 'number', minimum: 0, exclusiveMinimum: true, maximum: 300, default: 3} howMany: {title: "How Many", description: "When included, require only this many of the listed goal targets instead of all of them.", type: 'integer', minimum: 1} hiddenGoal: {title: "Hidden", description: "Hidden goals don't show up in the goals area for the player until they're failed. (Usually they're obvious, like 'don't die'.)", 'type': 'boolean', default: false} + 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 getToLocations: c.object {title: "Get To Locations", description: "TODO: explain", required: ["who", "targets"]},