public bool isStatType(ItemModEffects type) { if (data == null) { Tracer.traceError("AffixData.isStatType's data is null!"); return(false); } if (type == data.StatType) { return(true); } return(false); }
public ItemModData(string Identity, ItemModType ModType, ItemModEffects StatType, float ModBase, float ScalingFactor, float Variance, StatusTriggerTime StatusTriggerType, string Status, CoreStats?CoreStat = null, PrimaryStats?PrimaryStat = null, SecondaryStats?SecondaryStat = null) { //Debug.Log("[Mode Loaded] Mod Base: " + ModBase); this.Identity = Identity; this.ModType = ModType; this.StatType = StatType; this.ModBase = ModBase; this.ScalingFactor = ScalingFactor; this.Variance = Variance; this.CoreStat = CoreStat; this.PrimaryStat = PrimaryStat; this.SecondaryStat = SecondaryStat; this.StatusTriggerType = StatusTriggerType; this.Status = Resources.Load <StatusEffect>("Skills/StatusEffects/" + Status); }
public bool isStatType(ItemModEffects type) { return(data.isStatType(type)); }