Module:ItemData/doc: Difference between revisionsGive feedback
Jump to navigation
Jump to search
Gammaton32 (talk | contribs) No edit summary |
Updated doc |
||
| Line 10: | Line 10: | ||
**returns true/false | **returns true/false | ||
*<code>get_prop|ITEM_NAME|PROPERTY</code> | *<code>get_prop|ITEM_NAME|PROPERTY</code> | ||
**Returns the value of one of the item's properties. Check the [[Data:ItemData.json|json file]] for item properties | **Returns the value of one of the item's properties. Check the [[Data:ItemData.json|json file]] for item properties. | ||
**Automatically appends “%” to percentage-based properties and shows scaling templates (Boon/Ss) when applicable. | |||
*<code>get_codename|ITEM_NAME</code> | *<code>get_codename|ITEM_NAME</code> | ||
**Returns the item's codename in game files | **Returns the item's codename in game files | ||
*<code>get_component_name|ITEM_NAME</code> | |||
**Returns the display name of the item's first component (if any) | |||
*<code>get_headcount</code> | |||
**Returns the number of items that are not disabled | |||
==Example== | ==Example== | ||