“Amazing Xiu Xian Simulator” Aura system analysis and sharing

The Aura system in The Great Immortal Simulator has always been talked about by players. Many players are studying Gathering, Spirituality, Reiki, etc. What about the Aura system in the game? Today, I will bring you a reiki analysis, I hope to help everyone

Aura system analysis sharing.

First of all, there is aura in every cell of the game map, and Aura will be generated according to the related items or plants with ling attributes on the map. Aura does not move, it only determines whether it is generated or dissipated and is absorbed as the relevant parameters of each item affect each cell. The following describes the generation and consumption mechanism of Aura according to the relevant attributes

1, Lingmai.

By analyzing the data in the game folder settings, we found that there is an object called Lingmai.

\Settings\ThingDef\Rock\Special

Its property LingSource is unique, and LingSource determines whether Aura dissipates. Where there is no pulse, the aura will consume 1% each time until the minimum value is 0, and there is a place where the spirit is there, and the aura is the smallest. The value is 197

2, Gathering.

Many items have the AddionLing property. Let’s take the ling attribute of Lingmu for analysis.

Let’s talk about AddionRadius and AddionFailRadius.The

Gathering range is determined by AddionRadius. As shown above, the Lingmu Gathering range is 4

And AddionFailing and AddionFailRadius determine the size of the surrounding lattice.

Set the coordinates of the grid where the spirit wood is located (0,0).

The green grid, because its distance is within AddionFailRadius=2, its polyglytic value is still AddionLing.

And the blue grid, whose distance is greater than AddionFailRadius=2, its polyglytic value will become

value=AddionLing*AddionFailing^(Distance to Lingmu-AddionFailRadius);

Around the white grid, the distance is 0 because the distance exceeds AddionRadius.

3, Reiki generation mechanism.

I mentioned earlier that the normal loss of Aura is determined by the presence or absence of lingsource, and the generation of Aura is related to the aura of the surrounding blocks, that is, the more the aura, the more aura produced

As far as the source code is concerned, the setting of Aura is to promote the aura formation of the surrounding blocks, that is, the aura content of a certain plot is very high, while the surrounding eight pieces are lower than him, and the surrounding plots will produce aura. The amount produced is related to the difference in aura content, the greater the difference, the more output. The concentration of the surrounding objects, called lock-up, is more appropriate, because when calculating the difference in aura, the poly-spirit value will be removed first

Suppose we take (2,2) points, then the surrounding eight points (1,1); (1,2); (1,3); (2,1); (2,3); 3,1); (3,2); (3,3) items and people and terrain will have an effect on Reiki.

We only calculate (2, 2) and (2, 3) points, assuming that the aura of (2, 2) and (2, 3) are both 50, then the aura difference is 0, no aura will be produced, but If there is an object at (2,3), its convergence range is 1 (his own), and the convergence value is 10, then the aura difference is (2, 2) point – (2, 3) point: (50- (50-10)) = 10, then (2, 3) points will generate aura

The size of the generated aura is related to the difference in the aura, and the amount of recovery is a step function

Set the aura difference to n1 and the return speed to n2.

n1>15.6,n2=n1/1.3.

n>2.4,n2=n1/1.6.

N>1.8,n2=2^(n1*5-10)/5.

N>0.4 n2=0.2.

else n2=0

The actual resilience is also related to the attenuation of the object of the parcel, the dissipation of all the items of the parcel, and the dissipation coefficient of the parcel itself, which is n3.

回灵=n2*max(1-n3,0), so when the total dissipation coefficient n3 is greater than 1, take 0 and cannot return

As for absorption, absorption coefficient, and accommodate accommodation coefficient, these two coefficients are related to the absorption of reiki

When the aura of the original is not zero, the absorption is: the maximum of the two values of (the original aura – (the aura contained in the item) and the item grade), multiplied by the absorption coefficient and multiplied At 0.004

And when the original aura = 0, the absorption amount is the grid generation amount × absorption coefficient × attenuation coefficient × 0.01;

The Aegis Aura does not affect the Aura

The pattern code of the character that absorbs the aura is more complicated, so it is not written, but the character cannot return to the spirit where the aura is zero

Back to the mechanism summary.

1. There is no item in the game that can directly restore the aura of the plot, and the spirit is not good. The aura recovery of the plot is only determined by the presence or absence of aura with the surrounding plot

2, the role of Gathering is to deduct some of the aura, so that when calculating the aura of the surrounding land, the difference increases, thus increasing the speed of resilience in disguise

Summarize, the principle of building a poly-matrix is ​​to pile up the ghosts of the place where the character is located and the surrounding eight. When the character absorbs the aura, the agility of the character is reduced, and the surrounding eight-gathering high will lead to the return of the spirit. Very high, this can maintain the Aura’s aura value