示例#1
0
 public Spell(int minLevel, TypeOfSpell type, float castTime)
 {
     nameId                 = 34;
     iconID                 = 0;
     Timer                  = 0f;
     Count                  = 0;
     MaxCount               = 0;
     minDamage              = 1f;
     minRange               = 0f;
     maxRange               = 2f;
     Type                   = type;
     MinLevel               = Mathf.Clamp(minLevel, Personage.MIN_LEVEL, Personage.MAX_LEVEL);
     CastTime               = castTime;
     Delay                  = 0f;
     delayTimer             = 0f;
     TakeResourcesAmount    = 0;
     EnableCastInAir        = false;
     EnableCastInRun        = false;
     CastOnlyInSpine        = false;
     EnableCastInDeadTarget = false;
     DamageResources        = TypeOfResources.Nothing;
     TakeResources          = TypeOfResources.Nothing;
     School                 = SchoolOfDamage.Other;
     Mode                   = ModeOfCast.OnlyNotFriendly;
 }
示例#2
0
 public void ChangeSpellAlpha(TypeOfSpell spell, float alphaValue)
 {
     myPlayer.ChangeSpellAlpha(spell, alphaValue);
 }