Changes

Jump to navigation Jump to search
6,356 bytes added ,  21:03, 5 May 2017
Updated for v1.2
Line 4: Line 4:     
==Raw data==
 
==Raw data==
Objects are stored in <tt>Content\Data\ObjectInformation.xnb</tt>, which can be [[Modding:Creating an XNB mod#unpacking|unpacked using XNB Extract]]. Here's the raw data (as of 1.1.1) for reference:
+
Objects are stored in <tt>Content\Data\ObjectInformation.xnb</tt>, which can be [[Modding:Creating an XNB mod#unpacking|unpacked using XNB Extract]]. Here's the raw data (as of 1.2) for reference:
    
<source lang="yaml">
 
<source lang="yaml">
 
content:  #!Dictionary<Int32,String>
 
content:  #!Dictionary<Int32,String>
    0: "Weeds/0/-1/Basic/A bunch of obnoxious weeds." #!String
+
    0: "Weeds/0/-1/Basic/Weeds/A bunch of obnoxious weeds." #!String
    2: "Stone/0/-300/Basic/A useful material when broken with the Pickaxe." #!String
+
    2: "Stone/0/-300/Basic/Stone/A useful material when broken with the Pickaxe." #!String
    4: "Stone/0/-300/Basic/A useful material when chopped with the axe." #!String
+
    4: "Stone/0/-300/Basic/Stone/A useful material when chopped with the axe." #!String
    16: "Wild Horseradish/50/5/Basic -81/A spicy root found in the spring." #!String
+
    16: "Wild Horseradish/50/5/Basic -81/Wild Horseradish/A spicy root found in the spring." #!String
    18: "Daffodil/30/0/Basic -81/A traditional spring flower that makes a nice gift." #!String
+
    18: "Daffodil/30/0/Basic -81/Daffodil/A traditional spring flower that makes a nice gift." #!String
    20: "Leek/60/16/Basic -81/A tasty relative of the onion." #!String
+
    20: "Leek/60/16/Basic -81/Leek/A tasty relative of the onion." #!String
    22: "Dandelion/40/10/Basic -81/Not the prettiest flower, but the leaves make a good salad." #!String
+
    22: "Dandelion/40/10/Basic -81/Dandelion/Not the prettiest flower, but the leaves make a good salad." #!String
    24: "Parsnip/35/10/Basic -75/A spring tuber closely related to the carrot. It has an earthy taste and is full of nutrients." #!String
+
    24: "Parsnip/35/10/Basic -75/Parsnip/A spring tuber closely related to the carrot. It has an earthy taste and is full of nutrients." #!String
    30: "Lumber/2/10/Basic/A versatile resource used for building and fuel." #!String
+
    30: "Lumber/2/10/Basic/Lumber/A versatile resource used for building and fuel." #!String
    60: "Emerald/250/-300/Minerals -2/A precious stone with a brilliant green color." #!String
+
    60: "Emerald/250/-300/Minerals -2/Emerald/A precious stone with a brilliant green color." #!String
    62: "Aquamarine/180/-300/Minerals -2/A shimmery blue-green gem ." #!String
+
    62: "Aquamarine/180/-300/Minerals -2/Aquamarine/A shimmery blue-green gem ." #!String
    64: "Ruby/250/-300/Minerals -2/A precious stone that is sought after for its rich color and beautiful luster." #!String
+
    64: "Ruby/250/-300/Minerals -2/Ruby/A precious stone that is sought after for its rich color and beautiful luster." #!String
    66: "Amethyst/100/-300/Minerals -2/A purple variant of quartz." #!String
+
    66: "Amethyst/100/-300/Minerals -2/Amethyst/A purple variant of quartz." #!String
    68: "Topaz/80/-300/Minerals -2/Fairly common but still prized for its beauty." #!String
+
    68: "Topaz/80/-300/Minerals -2/Topaz/Fairly common but still prized for its beauty." #!String
    70: "Jade/200/-300/Minerals -2/A pale green ornamental stone." #!String
+
    70: "Jade/200/-300/Minerals -2/Jade/A pale green ornamental stone." #!String
    72: "Diamond/750/-300/Minerals -2/A rare and valuable gem." #!String
+
    72: "Diamond/750/-300/Minerals -2/Diamond/A rare and valuable gem." #!String
    74: "Prismatic Shard/2000/-300/Minerals -2/A very rare and powerful substance with unknown origins." #!String
+
    74: "Prismatic Shard/2000/-300/Minerals -2/Prismatic Shard/A very rare and powerful substance with unknown origins." #!String
    75: "Stone/50/-300/Basic/..." #!String
+
    75: "Stone/50/-300/Basic/Stone/..." #!String
    76: "Stone/50/-300/Basic/..." #!String
+
    76: "Stone/
    77: "Stone/50/-300/Basic/..." #!String
  −
    78
   
</source>
 
</source>
    
==Format==
 
==Format==
 
===Rings===
 
===Rings===
Rings (indexes 516–534 or <tt>Ring.ringLowerIndexRange</tt> through <tt>Ring.ringUpperIndexRange</tt>) are parsed by the <tt>Ring</tt> constructor and contain four fields:
+
Rings (indexes 516–534 or <tt>Ring.ringLowerIndexRange</tt> through <tt>Ring.ringUpperIndexRange</tt>) are parsed by the <tt>Ring</tt> constructor and contain five fields:
    
{| class="wikitable"
 
{| class="wikitable"
Line 577: Line 577:  
|-
 
|-
 
| 1
 
| 1
| description
+
| price<br /><small>(if sold by player)</small>
| ''Monsters have a greater chance of dropping loot.''
+
| ''1500''
 
|-
 
|-
 
| 2
 
| 2
| price<br /><small>(if sold by player)</small>
+
| edibliity<br /><small>(always "-300")</small>
| ''1500''
+
| ''-300''
 
|-
 
|-
 
| 3
 
| 3
 
| type<br /><small>(always "Ring")</small>
 
| type<br /><small>(always "Ring")</small>
 
| ''Ring''
 
| ''Ring''
 +
|-
 +
| 4
 +
| display name<br /><small>(specific to language file)</small>
 +
| ''Burglar's Ring''
 +
|-
 +
| 5
 +
| description
 +
| ''Monsters have a greater chance of dropping loot.''
 
|}
 
|}
   −
Rings have a hardcoded edibility of -300 (inedible) and category -96 (<tt>Object.ringCategory</tt>).
+
Rings have a hardcoded category -96 (<tt>Object.ringCategory</tt>).
    
===Other objects===
 
===Other objects===
All other objects contain at least five fields:
+
All other objects contain at least six fields:
    
{| class="wikitable"
 
{| class="wikitable"
Line 617: Line 625:  
|-
 
|-
 
| 4
 
| 4
 +
| display name<br /><small>(specific to language file)</small>
 +
| ''Glacierfish''
 +
|-
 +
| 5
 
| description
 
| description
 
| ''Builds a nest on the underside of glaciers.''
 
| ''Builds a nest on the underside of glaciers.''
 
|}
 
|}
   −
Some entries have more fields, but those don't seem to be used (needs to be investigated further).
+
Some entries have more fields, but most of them don't seem to be used (needs to be investigated further).
    
[[Category:Modding]]
 
[[Category:Modding]]
107,345

edits

Navigation menu