is done, since goals aren't in scripts, and I just removed some goals-of-scripts stuff.

This commit is contained in:
Nick Winter 2014-04-11 19:51:20 -07:00
parent dea1c7607a
commit 99ead5d193
3 changed files with 3 additions and 41 deletions
app
server/levels

View file

@ -1,36 +0,0 @@
module.exports = [
{
"id": "Add Default Goals",
"channel": "god:new-world-created",
"noteChain": [
{
"goals": {
"add": [
{
"name": "Humans Survive",
"id": "humans-survive",
"saveThangs": [
"humans"
],
"worldEndsAfter": 3,
"howMany": 1,
"hiddenGoal": true
},
{
"name": "Ogres Die",
"id": "ogres-die",
"killThangs": [
"ogres"
],
"worldEndsAfter": 3,
"hiddenGoal": true
}
]
}
}
]
}
]
# Could add other default scripts, like not having to redo Victory Playback sequence from scratch every time.

View file

@ -3,7 +3,6 @@ template = require 'templates/editor/level/scripts_tab'
Level = require 'models/Level'
Surface = require 'lib/surface/Surface'
nodes = require './treema_nodes'
defaultScripts = require 'lib/scripts/defaultScripts'
module.exports = class ScriptsTabView extends View
id: "editor-level-scripts-tab-view"
@ -22,7 +21,6 @@ module.exports = class ScriptsTabView extends View
@level = e.level
@dimensions = @level.dimensions()
scripts = $.extend(true, [], @level.get('scripts') ? [])
scripts = _.cloneDeep defaultScripts unless scripts.length
treemaOptions =
schema: Level.schema.get('properties').scripts
data: scripts

View file

@ -108,9 +108,9 @@ NoteGroupSchema = c.object {title: "Note Group", description: "A group of notes
lock: {title: "Lock", description: "Whether the interface should be locked so that the player's focus is on the script, or specific areas to lock.", type: ['boolean', 'array'], items: {type: 'string', enum: ['surface', 'editor', 'palette', 'hud', 'playback', 'playback-hover', 'level', ]}}
letterbox: {type: 'boolean', title: 'Letterbox', description:'Turn letterbox mode on or off. Disables surface and playback controls.'}
goals: c.object {title: "Goals", description: "Add or remove goals for the player to complete in the level."},
add: c.array {title: "Add", description: "Add these goals."}, GoalSchema
remove: c.array {title: "Remove", description: "Remove these goals."}, GoalSchema
goals: c.object {title: "Goals (Old)", description: "Deprecated. Goals added here have no effect. Add goals in the level settings instead."},
add: c.array {title: "Add", description: "Deprecated. Goals added here have no effect. Add goals in the level settings instead."}, GoalSchema
remove: c.array {title: "Remove", description: "Deprecated. Goals removed here have no effect. Adjust goals in the level settings instead."}, GoalSchema
playback: c.object {title: "Playback", description: "Control the playback of the level."},
playing: {type: 'boolean', title: "Set Playing", description: "Set whether playback is playing or paused."}