Skip to content

Instantly share code, notes, and snippets.

@jmcguirk
Created May 16, 2016 17:30
Show Gist options
  • Save jmcguirk/c87db9438439dd2f36d3b4e1426f2c25 to your computer and use it in GitHub Desktop.
Save jmcguirk/c87db9438439dd2f36d3b4e1426f2c25 to your computer and use it in GitHub Desktop.
Requirements Sketch 2
{
"entityTemplateId": "e_chest_basic",
"inherits": "e_base",
"components": {
"asset" : {
"defaultPrefab" : {
"path" : "UI/BasicChest"
}
},
"shop" : {
"requirements" :{
"purchase" :
[
{
"requirementType" : "ResourceRequirement",
"checkType" : "GreaterThanOrEqualTo",
"checkSubject" : "e_resource_coins",
"checkAmount" : 50
}
],
"unlock" :
[
{
"requirementType" : "CounterRequirement",
"checkType" : "GreaterThan",
"checkSubject" : "ftue_step_100_completed",
"checkAmount" : 0
}
]
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment