Item Protocol
Gaming items in Mountain Sea World is a contract written on the standard
ERC1155
contract and integrated with various items ID to add more diversity to the Mountain Sea World.
The variable
Effect
includes three different results, enhancement of ATK, EXP and HP. With these three attributes, it can get different combinations and therefore different grade items.Through the trigger of structure ItemInfo (Item ID), it can return all attributes. These items attributes can grant other aspects, including ATK, INT and any other specified attributes. These specified attributes can be applied to various DApps. Once any DApp ties with various attributes, the extension of these gaming items will be infinite.
If the gaming items have different grades, the developers can use the mapping command of itemlevel to determine the grade of gaming items.
Among them, the boolean expression tradable decides if this item can be used for transfer and trade in marketplace.
Last updated