416
edits
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. | ||
edits