Elin Modding Docs Doc
Loading...
Searching...
No Matches
CalcPlat.cs
1using System;
2using UnityEngine;
3
4// Token: 0x02000117 RID: 279
5public class CalcPlat : EClass
6{
7 // Token: 0x0600075D RID: 1885 RVA: 0x00030460 File Offset: 0x0002E660
8 public static int Learn(Chara c, Element e)
9 {
10 int num = Mathf.Max(1, e.CostLearn * (c.HasElement(1202, 1) ? 80 : 100) / 100);
11 if (e.source.tag.Contains("guild") && Guild.Current.relation.rank < 2)
12 {
13 return num * 2;
14 }
15 return num;
16 }
17
18 // Token: 0x0600075E RID: 1886 RVA: 0x000304C0 File Offset: 0x0002E6C0
19 public static int Train(Chara c, Element _e)
20 {
21 Element element = c.elements.GetElement(_e.id);
22 if (element.vTempPotential >= 1000)
23 {
24 return 0;
25 }
26 int num = Mathf.Max(1, element.CostTrain * (c.HasElement(1202, 1) ? 80 : 100) / 100);
27 if (element.source.tag.Contains("guild") && Guild.Current.relation.rank < 2)
28 {
29 return num * 2;
30 }
31 return num;
32 }
33}
Definition Chara.cs:12
Definition Guild.cs:5