Changes

Jump to navigation Jump to search
Line 367: Line 367:     
===Custom movie concessions===
 
===Custom movie concessions===
{{/doc status|[[Modding:Movie theater data]]|done=false}}
+
{{/doc status|[[Modding:Movie theater data]]|done=true}}
 
: ''See also: [[#Custom movies|custom movies]].''
 
: ''See also: [[#Custom movies|custom movies]].''
   Line 389: Line 389:  
</li>
 
</li>
 
</ul>
 
</ul>
  −
For example, this content pack adds a new 'Pufferchick Pop' concession with a custom image:
  −
{{#tag:syntaxhighlight|<nowiki>
  −
{
  −
    "Format": "</nowiki>{{Content Patcher version}}<nowiki>",
  −
    "Changes": [
  −
        {
  −
            "Action": "EditData",
  −
            "Target": "Data/Concessions",
  −
            "Entries": {
  −
                "{{ModId}}_PufferchickPop": {
  −
                    "Id": "{{ModId}}_PufferchickPop",  // must specify ID again when creating a new entry
  −
                    "Name": "{{ModId}}_PufferchickPop", // best practice to match the ID, since it's sometimes used as an alternate ID
  −
                    "DisplayName": "Pufferchick Pop",
  −
                    "Description": "A cute cake pop shaped like a pufferchick.",
  −
                    "Price": 25,
  −
                    "Texture": "{{InternalAssetKey: assets/pufferchick-pop.png}}" // an image in your content pack
  −
                    "SpriteIndex": 0
  −
                }
  −
            }
  −
        }
  −
    ]
  −
}</nowiki>|lang=javascript}}
      
===Custom museum donations & rewards===
 
===Custom museum donations & rewards===
138

edits

Navigation menu