The offensive and defense formula and formula design process generally say, in a game, there is usually more than 10 formulas, and there are more than 100 times. The average number is about 30. The main points of the design formula, and the same as the design data: the more simple and better in the case of sufficient use. If there is no need, do not add an entity! We will focus on five formulas: attack and defense formulas, empirical value growth formulas, resource accumulation formulas, success rate formulas, and power increase formula. True valuable offensive and defense formula, in fact, only two: one is subtraction: (attack effect) - (defense effect) = loss effect is division: ((attack effect) * (correction parameter)) / (defense effect) = loss Effects In addition to these two, other formulas basically have too much significance. Basically, all the formulas involved in the game can be used in these two formulas. These two formulas have many varieties. For example: Attack power * 2-defense = HP loss is a variant. In addition, there are many variants, especially the division formula. So far, no game has been found, his offensive formula cannot be expressed in these two formulas. Relatively, the application surface of the divider is more widely used. The subtraction usually can only be used in an individual's attack and defense. The division can not only be used in the individual, but also on the attack between the unit and the troops (such as "Three Kingdoms"), it can also be applied. During the game production process, the offensive and defense formula is usually designed with the power to increase the formula. The basis of power increases, depending on the different offensive and defense formulas. The formula of the increase is that how much power is added to the upgrade. Although the subtraction is narrower than the application surface, it is more easier to master than the division, and it is more easily controlled. Therefore, many Japanese games use subtraction, such as "flame heraldic". Shorthand subtractive formula: ie: (attack effect) - (defense effect) = (loss effect) The attack between the troops and the force should use division? If the other party's defense is higher than your attack power, it will not cause loss. However, this is not appropriate when the Legion is fighting. When the legion fights, it is based on the effect of the attack, and the proportion of the loss is determined. Therefore, there will be no zero casualties. Therefore, it is appropriate to use the division here.