Elin:Race/Succubus/talk: Difference between revisions
The Observer (talk | contribs) mNo edit summary |
The Observer (talk | contribs) mNo edit summary |
||
| Line 2: | Line 2: | ||
Determination of stamina cost:<syntaxhighlight lang="c++"> | Determination of stamina cost:<syntaxhighlight lang="c++"> | ||
static int StaminaCost(Chara c1, Chara c2) | |||
{ | |||
return (int)Mathf.Max(10f * (float)c1.END / (float)Mathf.Max(c2.END, 1), 0f); | |||
} | |||
</syntaxhighlight>SP cost is determined by difference in MaxSP of both parties. | </syntaxhighlight>SP cost is determined by difference in MaxSP of both parties. | ||
Revision as of 10:06, 12 September 2025
Here are the relevant code snippets from the game:
Determination of stamina cost:
static int StaminaCost(Chara c1, Chara c2)
{
return (int)Mathf.Max(10f * (float)c1.END / (float)Mathf.Max(c2.END, 1), 0f);
}
SP cost is determined by difference in MaxSP of both parties. Determination of stat to be boosted:
foreach (Element item in tg.elements.ListBestAttributes())
{
if (c.elements.ValueWithoutLink(item.id) < item.ValueWithoutLink)
{
c.elements.ModTempPotential(item.id, 1 + EClass.rnd(item.ValueWithoutLink - c.elements.ValueWithoutLink(item.id) / 5 + 1));
c.Say("succubus_exp", c, item.Name.ToLower());
break;
}
}
And the potential is determined by the stat which has the highest base value, value being the difference divided by 5, plus 1 (modulated by rnd). Succubi do not gain stat XP from seduction in and of itself.