protected ElementTableState(ElementTableState other) { TypeMatchup = new int[other.TypeMatchup.Length][]; for (int ii = 0; ii < TypeMatchup.Length; ii++) { TypeMatchup[ii] = new int[other.TypeMatchup[ii].Length]; other.TypeMatchup[ii].CopyTo(TypeMatchup[ii], 0); } Effectiveness = new int[other.Effectiveness.Length]; other.Effectiveness.CopyTo(Effectiveness, 0); }
public static int GetEffectivenessMult(int effectiveness) { ElementTableState table = DataManager.Instance.UniversalEvent.UniversalStates.GetWithDefault <ElementTableState>(); return(table.Effectiveness[effectiveness]); }
public static int CalculateTypeMatchup(int attackerType, int targetType) { ElementTableState table = DataManager.Instance.UniversalEvent.UniversalStates.GetWithDefault <ElementTableState>(); return(table.TypeMatchup[attackerType][targetType]); }