示例#1
0
 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;
 }
示例#3
0
 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();
 }
示例#4
0
 public bool Equals(EffectBase other)
 {
     if (ReferenceEquals(null, other))
     {
         return(false);
     }
     if (ReferenceEquals(this, other))
     {
         return(true);
     }
     return(other.Id == Id);
 }
示例#5
0
 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;
 }
示例#6
0
 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;
 }
示例#8
0
 public bool Equals(EffectBase other)
 {
     if (ReferenceEquals(null, other)) return false;
     if (ReferenceEquals(this, other)) return true;
     return other.Id == Id;
 }
示例#9
0
 public EffectMinMax(short id, short valuemin, short valuemax, EffectBase effect)
     : base(id, effect)
 {
     m_minvalue = valuemin;
     m_maxvalue = valuemax;
 }
示例#10
0
 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);
         }
     }
 }
示例#11
0
 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();
 }
示例#12
0
 public EffectInteger(short id, short value, EffectBase effect)
     : base(id, effect)
 {
     m_value = value;
 }
示例#13
0
 public EffectLadder(short id, short monsterfamily, short monstercount, EffectBase effect)
     : base(id, monsterfamily, effect)
 {
     m_monsterCount = monstercount;
 }
示例#14
0
 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;
 }
示例#16
0
 public EffectLadder(short id, short monsterfamily, short monstercount, EffectBase effect)
     : base(id, monsterfamily, effect)
 {
     m_monsterCount = monstercount;
 }
示例#17
0
 public EffectInteger(short id, short value, EffectBase effect)
     : base(id, effect)
 {
     m_value = value;
 }
示例#18
0
 public EffectDice(short id, short value, short dicenum, short diceface, EffectBase effect)
     : base(id, value, effect)
 {
     m_dicenum = dicenum;
     m_diceface = diceface;
 }
示例#19
0
 public EffectString(short id, string value, EffectBase effect)
     : base(id, effect)
 {
     m_value = value;
 }
示例#20
0
 public EffectDice(short id, short value, short dicenum, short diceface, EffectBase effect)
     : base(id, value, effect)
 {
     m_dicenum  = dicenum;
     m_diceface = diceface;
 }
 public EffectCreature(short id, short monsterfamily, EffectBase effectBase)
     : base(id, effectBase)
 {
     m_monsterfamily = monsterfamily;
 }