//******************************************** KONIEC DAMAGE ******************************************** \\ private Debuff GetDebuffByID(DEBUFF _id) { switch (_id) { case DEBUFF.TANTRUM_DOT: return(new Tantrum(this)); case DEBUFF.CRY: return(new Cry(this)); case DEBUFF.CURSED_SWIPE: return(new CursedSwipe(this)); case DEBUFF.BRUTAL_BITE: return(new BrutalBite(this)); case DEBUFF.SHADOWFANG: return(new Shadowfang(this)); case DEBUFF.SOUL_TOMB: return(new SoulTomb(this)); case DEBUFF.MIND_BOMB: return(new MindBomb(this)); case DEBUFF.VOIDFLAME: return(new Voidflame(this)); case DEBUFF.DARK_ROSE: return(new DarkRose(this)); default: return(null); } }
private Sprite GetDebuffIcon(DEBUFF _debuff) { switch (_debuff) { case 0: return(Resources.Load <Sprite>("")); case DEBUFF.RAIN_OF_FIRE: return(Resources.Load <Sprite>("EnemySpells/Tantrum")); case DEBUFF.CONSUMING_DARKNESS: return(Resources.Load <Sprite>("EnemySpells/Tantrum")); case DEBUFF.TANTRUM_DOT: return(Resources.Load <Sprite>("EnemySpells/Tantrum")); case DEBUFF.CRY: return(Resources.Load <Sprite>("EnemySpells/Cry")); case DEBUFF.CURSED_SWIPE: return(Resources.Load <Sprite>("EnemySpells/CursedSwipe")); case DEBUFF.BRUTAL_BITE: return(Resources.Load <Sprite>("EnemySpells/BrutalBite")); case DEBUFF.SHADOWFANG: return(Resources.Load <Sprite>("EnemySpells/Shadowfang")); case DEBUFF.SOUL_TOMB: return(Resources.Load <Sprite>("EnemySpells/SoulTomb")); case DEBUFF.MIND_BOMB: return(Resources.Load <Sprite>("EnemySpells/MindBomb")); case DEBUFF.VOIDFLAME: return(Resources.Load <Sprite>("EnemySpells/Voidflame")); case DEBUFF.DARK_ROSE: return(Resources.Load <Sprite>("EnemySpells/DarkRose")); default: return(Resources.Load <Sprite>("effect")); } }
public Debuff FindDebuff(DEBUFF debufftype) { if (DebuffsAmount > 0) { for (int i = 0; i < DebuffsAmount; i++) { if (Debuffs[i].ID == debufftype) { return(Debuffs[i]); } } } return(null); }
public EnemySpellInfo(HOSTILESPELL _id, string _name, int _basevalue, int _basevalue2, int _castTime, int _cooldown, string _icon, int _DoTgap, int _ticksCount, DAMAGETYPE _damagetype, int _targetsAmount, TARGETTYPE _targettype, DAMAGESOURCE _damagesource, DEBUFF _debuff, string _description, bool _misdirectable, MOB _summon) { ID = _id; name = _name; baseValue = _basevalue; baseValue2 = _basevalue2; castTime = _castTime; cooldown = _cooldown; icon = _icon; DoTgap = _DoTgap; ticksCount = _ticksCount; damagetype = _damagetype; targetsAmount = _targetsAmount; targetType = _targettype; damageSource = _damagesource; debuff = _debuff; description = _description; misdirectable = _misdirectable; summon = _summon; }
public Debuff(DEBUFF _ID, Soldier _myParent) { ID = _ID; myParent = _myParent; }
private void AddESpellInfo(HOSTILESPELL _id, string _name, int _basevalue, int _basevalue2, int _castTime, int _cooldown, string _icon, int _DoTgap, int _tickCount, DAMAGETYPE _damagetype, int _targetsAmount, TARGETTYPE _targettype, DAMAGESOURCE _damagesource, DEBUFF _debuff, string _desc, bool _misdirectable, MOB _summon = MOB.NUL) { espellInfo[(int)_id] = new EnemySpellInfo( _id, _name, (int)(_basevalue * MULTIP_MOD), (int)(_basevalue2 * MULTIP_MOD), (int)(_castTime * CAST_MOD), (int)(_cooldown * CD_MOD), _icon, (int)(_DoTgap * GAP_MOD), _tickCount, _damagetype, _targetsAmount, _targettype, _damagesource, _debuff, _desc, _misdirectable, _summon); }