Elin:Code Analysis/Faith: Difference between revisions

From Ylvapedia
Jump to navigation Jump to search
(created a page with analytical information about faith, God's abilities, etc.)
 
m (Installed cautionary note (test))
Line 1: Line 1:
{{Spoiler}}
===Ehekatl's School of Magic===
===Ehekatl's School of Magic===
The relevant code relating to the randomized mana and stamina costs is as such:
The relevant code relating to the randomized mana and stamina costs is as such:

Revision as of 11:01, 28 November 2024

Ehekatl's School of Magic

The relevant code relating to the randomized mana and stamina costs is as such:

if (a < 0 && BaseStats.CC.HasElement(1330, 1))        {            a = -EClass.rnd(-a * 130 / 100 + 2);        }

This means that if there is a mana or stamina cost, the new cost is determined by taking a random number between 0 and 1.3 times the original cost plus 2. So in a case where a spell has a cost of 40, it would be randomised between 0 and 54.