MCPcopy Create free account
hub / github.com/codecombat/codecombat / backgroundObject

Function backgroundObject

app/schemas/models/selectors/cinematic.js:394–401  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

392export const mutators = dialogNode => dialogNode?.mutators
393
394const backgroundObject = triggers => {
395 const bgObject = (triggers || {}).backgroundObject
396 if (!(bgObject || {}).thangType) {
397 return
398 }
399
400 return _.merge(DEFAULT_THANGTYPE(), bgObject.thangType)
401}
402
403/**
404 * @param {Object} triggers

Callers

nothing calls this directly

Calls 1

DEFAULT_THANGTYPEFunction · 0.85

Tested by

no test coverage detected