Beispiel #1
0
 public CritData(object effect, float chance, float value, CheckAttackCritHandle customHandle)
 {
     this.effect       = effect;
     this.chance       = chance;
     this.value        = value;
     this.customHandle = customHandle;
 }
Beispiel #2
0
 public void SetCrit(object effect, float chance, float value, CheckAttackCritHandle customHandle)
 {
     RemoveCrit(effect);
     m_CritDataList.Add(new CritData(effect, chance, value, customHandle));
     m_CritDataList.Sort((a, b) => { return(b.value.CompareTo(a.value)); });
 }