Player attributes

Player attributes include the sum of the attributes of each module, such as player basic attributes, illustrated book, equipment attributes, etc. You can define a function setup_user_att to calculate the sum of the attributes of each module, and define an attribute class to record each attribute for future use. In this way, every time there is a newly added attribute module, you only need to add it in this setup_user_att, which has strong scalability and clear logic.

Guess you like

Origin blog.csdn.net/Ftworld21/article/details/107568254