Modding:Item Json Properties: Difference between revisions

From Vintage Story Wiki
Line 508: Line 508:


Here we have made two new attributes called "armordamage" and "stunchance" and have given them their own static values to be used in code. As is, these cannot do anything without the usage of C# code in a class. Regardless, we can see that this is a convenient way to create new versions of an existing item.  
Here we have made two new attributes called "armordamage" and "stunchance" and have given them their own static values to be used in code. As is, these cannot do anything without the usage of C# code in a class. Regardless, we can see that this is a convenient way to create new versions of an existing item.  
</td>
  </tr>
  <tr>
  <td scope="row"><div class="tt" data-tt-id="p_attributes_liststart" data-tt-parent="p_attributes" data-invisible="true"></div></td>
     <td colspan="4">
     <td colspan="4">
A complete list of existing attributes are listed here:  
A complete list of existing properties are contained here:
</td>
    </td>
   </tr>
   </tr>
   <tr>
   <tr>
219

edits