Changes

Jump to navigation Jump to search
→‎What's new: + custom pets
Line 757: Line 757:  
     ]
 
     ]
 
}</nowiki>|lang=javascript}}
 
}</nowiki>|lang=javascript}}
 +
 +
===Custom pets===
 +
You can now create and edit [[pet]]s and pet breeds via the new <samp>Data/PetsData</samp> asset. This consists of a dictionary where the key is the unique pet ID (one of <samp>Cat</samp> or <samp>Dog</samp>), and the value is a model with these fields:
 +
 +
{| class="wikitable"
 +
|-
 +
! field
 +
! effect
 +
|-
 +
| <samp>ID</samp>
 +
| The unique pet ID. This should match the entry key.
 +
|-
 +
| <samp>Breeds</samp>
 +
| The cosmetic breeds which can be selected in the character customization menu when creating a save. This consists of a list of models with these fields:
 +
{| class="wikitable"
 +
|-
 +
! field
 +
! effect
 +
|-
 +
| <samp>ID</samp>
 +
| The unique ID for the breed within the pet type.
 +
|-
 +
| <samp>Texture</samp>
 +
| The asset name for the breed spritesheet for the pet's in-game sprite. This should be 128 pixels wide, and 256 (cat) or 288 (dog) pixels high.
 +
|-
 +
| <samp>IconTexture</samp>
 +
| The asset name for the breed icon texture, shown on the character customization screen and in-game menu. This should be a 16x16 pixel icon.
 +
|-
 +
| <samp>IconSourceRect</samp>
 +
| The icon's pixel area within the <samp>IconTexture</samp>, in the form <samp>"{{t|x}} {{t|y}} {{t|width}} {{t|height}}"</samp> (like <samp>"0 0 16 16"</samp>).
 +
|}
 +
|}
    
===Custom shops===
 
===Custom shops===
translators
8,447

edits

Navigation menu