443
edits
No edit summary |
No edit summary |
||
Line 315: | Line 315: | ||
**In fact, no matter how much I searched in Elin Decompiled, I did not find any code that increases SAN value over time. | **In fact, no matter how much I searched in Elin Decompiled, I did not find any code that increases SAN value over time. | ||
**However, there is code that increases Sleepiness over time. Since SAN = Sleepiness, the SAN value is also increasing over time because of this. | **However, there is code that increases Sleepiness over time. Since SAN = Sleepiness, the SAN value is also increasing over time because of this. | ||
==DV&PV== | |||
<syntaxhighlight lang="c#" line="1"> | |||
public override int DV | |||
{ | |||
get | |||
{ | |||
if (IsPCFaction) | |||
{ | |||
return elements.Value(64) / ((!HasCondition<ConWeakness>()) ? 1 : 2); | |||
} | |||
int num = base.LV; | |||
if (num > 50) | |||
{ | |||
num = 50 + (num - 50) / 10; | |||
} | |||
return (num + elements.Value(64) * (100 + num + race.DV * 5) / 100) / ((!HasCondition<ConWeakness>()) ? 1 : 2); | |||
} | |||
} | |||
public override int PV | |||
{ | |||
get | |||
{ | |||
if (IsPCFaction) | |||
{ | |||
return elements.Value(65) / ((!HasCondition<ConWeakness>()) ? 1 : 2); | |||
} | |||
int num = base.LV; | |||
if (num > 50) | |||
{ | |||
num = 50 + (num - 50) / 10; | |||
} | |||
return (num + elements.Value(65) * (100 + num + race.PV * 5) / 100) / ((!HasCondition<ConWeakness>()) ? 1 : 2); | |||
} | |||
} | |||
</syntaxhighlight> | |||
* For DV and PV, the calculation is as the following: | |||
** If character is in player faction, then the DV and PV is calculated using the base DV and PV or equipments, etc. | |||
** If the character is debuffed with weakness, the DV and PV is halved. | |||
** If chracter is not in player faction, we first record the level of character. | |||
** If level is greater than 50, the base number is recorded to 50 + (num - 50) / 10. | |||
** This number is not affected by weakness. | |||
** The equipment DV and PV is modified by (100 + num + racePV * 5) / 100, then calculated with the weakness condition. | |||
** For example, for a fairy (race DV of 25), not in player faction, with LVL of 80, and equipment DV of 200, PV of 50: | |||
** The actual DV is (53 + 200 * (100 + 53 + 25 * 5) / 100 = 53 + 556 = 609. | |||
** The actual PV is (53 + 50 * (100 + 53 + 0 * 5) / 100 = 53 + 78.5 = 131.5. | |||
* As you could see, the DV and PV of monsters are heavily buffed based on their level, at least 50 + base value * 150% for each value. | |||
[[Category:EN]] | [[Category:EN]] | ||
[[Category:Elin Spoiler]] | [[Category:Elin Spoiler]] |
edits