public EffectMount(short id, int mountid, double date, int modelid, EffectBase effect) : base(id, effect) { m_mountId = mountid; m_date = date; m_modelId = (short) modelid; }
public EffectDuration(short id, short days, short hours, short minutes, EffectBase effect) : base(id, effect) { m_days = days; m_hours = hours; m_minutes = minutes; }
public EffectDate(short id, short year, short month, short day, short hour, short minute, EffectBase effect) : base(id, effect) { m_year = year; m_month = month; m_day = day; m_hour = hour; m_minute = minute; FixDate(); }
public bool Equals(EffectBase other) { if (ReferenceEquals(null, other)) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return(other.Id == Id); }
public EffectBase(short id, EffectBase effect) { Id = id; m_template = ObjectDataManager.Instance.Get<Effect>(id); Targets = effect.Targets; Delay = effect.Delay; Duration = effect.Duration; Group = effect.Group; Random = effect.Random; Modificator = effect.Modificator; Trigger = effect.Trigger; Hidden = effect.Hidden; m_zoneSize = effect.m_zoneSize; m_zoneMinSize = effect.m_zoneMinSize; ZoneShape = effect.ZoneShape; }
public EffectBase(short id, EffectBase effect) { Id = id; m_template = ObjectDataManager.Instance.Get <Effect>(id); Targets = effect.Targets; Delay = effect.Delay; Duration = effect.Duration; Group = effect.Group; Random = effect.Random; Modificator = effect.Modificator; Trigger = effect.Trigger; Hidden = effect.Hidden; m_zoneSize = effect.m_zoneSize; m_zoneMinSize = effect.m_zoneMinSize; ZoneShape = effect.ZoneShape; }
public EffectMinMax(short id, short valuemin, short valuemax, EffectBase effect) : base(id, effect) { m_minvalue = valuemin; m_maxvalue = valuemax; }
public bool Equals(EffectBase other) { if (ReferenceEquals(null, other)) return false; if (ReferenceEquals(this, other)) return true; return other.Id == Id; }
public void FullDump() { ObjectDumper dumper = new ObjectDumper(4, true, true, (System.Reflection.BindingFlags.FlattenHierarchy)); logger.Error("Dump of the spellbook of {0} : ", Character.Name); foreach (var spell in m_spells) { logger.Error(" Spell {0}", spell.ToString(true)); foreach (var effectdice in spell.LevelTemplate.effects) { EffectBase effect = new EffectBase(effectdice); logger.Error(" Effect {0} : {1} - {2} {3:P}", effect.Description, effectdice.diceNum <= effectdice.diceSide ? effectdice.diceNum : effectdice.diceSide, effectdice.diceNum > effectdice.diceSide ? effectdice.diceNum : effectdice.diceSide, effectdice.random == 0 ? 1.0 : effectdice.random / 100.0); } } }
public EffectInteger(short id, short value, EffectBase effect) : base(id, effect) { m_value = value; }
public EffectLadder(short id, short monsterfamily, short monstercount, EffectBase effect) : base(id, monsterfamily, effect) { m_monsterCount = monstercount; }
public EffectString(short id, string value, EffectBase effect) : base(id, effect) { m_value = value; }
public EffectCreature(short id, short monsterfamily, EffectBase effectBase) : base(id, effectBase) { m_monsterfamily = monsterfamily; }
public EffectDice(short id, short value, short dicenum, short diceface, EffectBase effect) : base(id, value, effect) { m_dicenum = dicenum; m_diceface = diceface; }