コード例 #1
0
        public static void AntimageAttack(Donger dong)
        {
            foreach (Effect f in dong.effects)
            {
                f.Execute(dong);
            }
            dong.effects.RemoveAll(x => x.Timer <= 0);

            if (dong.skillUses > 0)
            {
                if (dong.skill == Donger.emtySkill)
                    Donger.SendMessages("\t" + dong.DongerInfo + " uses skill but it fails!");
                else
                {
                    //Donger.SendMessages(dongerName + " uses skill!");
                    dong.skill(dong);
                }
                dong.skillUses--;
            }

                int strike = SeijaHelper.RandomProvider.GetThreadRandom().Next(0, 100);
                if (strike < dong.acurityMod)
                {
                    int damage = SeijaHelper.RandomProvider.GetThreadRandom().Next(3, 10);
                    //damage=?;
                    damage = (int)(damage * dong.damageMod);
                    if (dong.enemy.armor == Donger.defArmor)
                        Donger.SendMessages(dong.DongerInfo + " attacks " + dong.enemy.DongerInfo + " and deals " + damage.ToString() + " damage");
                    else
                        Donger.SendMessages(dong.DongerInfo + " attacks " + dong.enemy.DongerInfo + " and deals " + ((int)(damage / dong.enemy.armor)).ToString() + " damage");
                    dong.enemy.TakeDamage(damage);
                }
                else
                    Donger.SendMessages(dong.DongerInfo + " misses!");
        }
コード例 #2
0
ファイル: Donger.cs プロジェクト: KanColleSoftFan/SeijaBot
 public Player(string n, Donger dong, string konf)
 {
     name = n;
     donger = dong;
     nll = false;
     konfa = konf;
 }
コード例 #3
0
ファイル: Donger.cs プロジェクト: KanColleSoftFan/SeijaBot
 public Player(string n)
 {
     nll = true;
     name = "";
     donger = null;
     konfa= "";
 }
コード例 #4
0
 public static void skillOWLSEN(Donger dong)
 {
     Donger.SendMessages("\t" + dong.SkillMessage("SILENCE"));
     dong.enemy.skill = emtySkill;
     if (dong.enemy.damageMod > 1)
         dong.enemy.damageMod = 1;
     if (dong.enemy.acurityMod > 85)
         dong.enemy.acurityMod = 85;
 }
コード例 #5
0
 public static void FrozenAttack(Donger dong)
 {
     foreach (Effect f in dong.effects)
     {
         f.Execute(dong);
     }
     dong.effects.RemoveAll(x => x.Timer <= 0);
     //if (dong.effectTimer > 0 && dong.effect != Donger.emtySkill)
     //{
     //    dong.effect(dong);
     //    dong.effectTimer--;
     //}
     int skillstrike = SeijaHelper.RandomProvider.GetThreadRandom().Next(0, 100);
     if (skillstrike < dong.skillChance && dong.skillUses > 0)
     {
         if (dong.skill == Donger.emtySkill)
             Donger.SendMessages("\t" + dong.DongerInfo + " uses skill but it fails!");
         else
         {
             //Donger.SendMessages(dongerName + " uses skill!");
             dong.skill(dong);
         }
         dong.skillUses--;
     }
     else
         Donger.SendMessages("\t" + dong.DongerInfo + " cant attack because he is frozen!");
 }
コード例 #6
0
 public void Execute(Donger dong)
 {
     Timer--;
     if (Timer==0)
         efc(dong);
 }
コード例 #7
0
 public static void skllMindControll(Donger dong)
 {
     Donger.SendMessages("\t" + dong.SkillMessage("YOUR SOUL BELONGS TO ME"));
     Donger.SendMessages("\t" + dong.enemy.dongerName + " had its will revoked for three turns.");
     dong.enemy.attack = Donger.MindlessAttack;
     dong.enemy.AddEndEffect(4, endAttackChange);
 }
コード例 #8
0
 public static void skllDankMemes(Donger dong)
 {
     Donger.SendMessages("\t" + dong.SkillMessage("DANK ℳℰℳℰS"));
     //Donger.SendMessages("└( ° ͜ʖ͡°)┐Born too late to explore the Earth, born too soon to explore the Galaxy. Born just in time to post DANK ℳℰℳℰS └( ° ͜ʖ͡°)┐");
     dong.enemy.TakeDamageFromSkill(SeijaHelper.RandomProvider.GetThreadRandom().Next(7, 16));
 }
コード例 #9
0
 public static void skillSTOOPED(Donger dong)
 {
     Donger.SendMessages("\t" + dong.SkillMessage("TRUMP NO STOOPED"));
 }
コード例 #10
0
 public static void skillShrapnell(Donger dong)
 {
     Donger.SendMessages("\t" + @"、ヽヽ`ヽ`、ヽヽ`ヽ、ヽヽ༼ຈ ل͜ຈ༽ノ•︻̷┻̿═━一 hoho haha shrapnelヽ༼ຈل͜ຈ༽ノ•︻̷┻̿═━一 、ヽヽ`ヽ`、ヽヽ`ヽ、ヽ");
     dong.enemy.AddEffect(10,effectShrapnel);
 }
コード例 #11
0
 public static void skillDongerMagic(Donger dong)
 {
     int magic = SeijaHelper.RandomProvider.GetThreadRandom().Next(1, 8);
     switch (magic)
     {
         case 1:
             Donger.SendMessages("\t" + dong.SkillMessage("THUNDERBOLT"));
             dong.enemy.TakeDamageFromSkill(15);
             break;
        case 2:
             Donger.SendMessages("\t" + dong.SkillMessage("FAILED THUNDERBOLT"));
             dong.TakeDamageFromSkill(15);
             break;
         case 3:
             Donger.SendMessages("\t" + dong.SkillMessage("FIREBALL"));
             Effect tmp = dong.enemy.effects.Find(x => x.efc == endAttackChange);
             if (tmp != null)
             {
                 dong.enemy.effects.Remove(tmp);
                 Donger.SendMessages("\t" + "Fireball melted the ice, so " + dong.enemy.dongerName + " is free now!");
             }
             else
             {
                 dong.enemy.TakeDamageFromSkill(SeijaHelper.RandomProvider.GetThreadRandom().Next(5, 11));
                 dong.enemy.AddEffect(2, effectBurning);
             }
             break;
         case 4:
             Donger.SendMessages("\t" + dong.SkillMessage("EARTHQUAKE"));
             //Donger.SendMessages(@"\\\(۶•̀ᴗ•́)۶//// THUNDERBOLT \\\(۶•̀ᴗ•́)۶////");
             dong.enemy.TakeDamageFromSkill(SeijaHelper.RandomProvider.GetThreadRandom().Next(3, 6));
             dong.enemy.TakeDamageFromSkill(SeijaHelper.RandomProvider.GetThreadRandom().Next(3, 6));
             dong.enemy.TakeDamageFromSkill(SeijaHelper.RandomProvider.GetThreadRandom().Next(3, 6));
             break;
         case 5:
             Donger.SendMessages("\t" + dong.SkillMessage("ICE LANCE"));
             //Donger.SendMessages(@"\\\(۶•̀ᴗ•́)۶//// THUNDERBOLT \\\(۶•̀ᴗ•́)۶////");
             if (dong.enemy.attack == Donger.FrozenAttack)
             {
                 dong.enemy.TakeDamageFromSkill(SeijaHelper.RandomProvider.GetThreadRandom().Next(15, 26));
             }
             else
             {
                 dong.enemy.attack = Donger.FrozenAttack;
                 //dong.enemy.effectTimer = 3;
                 dong.enemy.AddEndEffect(3,endAttackChange);
             }
             break;
         case 6:
             Donger.SendMessages("\t" + dong.SkillMessage("ROCK ARMOR"));
             dong.armor = dong.armor * 1.5;
             break;
         case 7:
             Donger.SendMessages("\t" + dong.SkillMessage("MAGIC ARMOR"));
             dong.magicDef = dong.magicDef* 1.5;
             break;
     }
 }
コード例 #12
0
 public static void skillDongerhood(Donger dong)
 {
     Donger.SendMessages("\t" + "༼ ºل͟º༼ ºل͟º༼ ºل͟º ༽ºل͟º ༽ºل͟º ༽YOU CAME TO THE WRONG DONGERHOOD༼ ºل͟º༼ ºل͟º༼ ºل͟º ༽ºل͟º ༽ºل͟º ༽");
     System.Threading.Thread.Sleep(300);
     dong.enemy.TakeDamageFromSkill(SeijaHelper.RandomProvider.GetThreadRandom().Next(2, 6));
     System.Threading.Thread.Sleep(300);
     dong.enemy.TakeDamageFromSkill(SeijaHelper.RandomProvider.GetThreadRandom().Next(2, 6));
     System.Threading.Thread.Sleep(300);
     dong.enemy.TakeDamageFromSkill(SeijaHelper.RandomProvider.GetThreadRandom().Next(2, 6));
     System.Threading.Thread.Sleep(300);
     dong.enemy.TakeDamageFromSkill(SeijaHelper.RandomProvider.GetThreadRandom().Next(2, 6));
     System.Threading.Thread.Sleep(300);
     dong.enemy.TakeDamageFromSkill(SeijaHelper.RandomProvider.GetThreadRandom().Next(2, 6));
     System.Threading.Thread.Sleep(300);
 }
コード例 #13
0
 public static void skillAutism(Donger dong)
 {
     Donger.SendMessages("\t" + dong.SkillMessage("YOU ARE NOW AUTISTIC"));
     dong.enemy.acurityMod=dong.enemy.acurityMod/2;
 }
コード例 #14
0
 public static void skillAntiMage(Donger dong)
 {
     Donger.SendMessages("\t" + dong.SkillMessage("I bring an end to magic."));
     dong.enemy.attack = Donger.AntimageCurseAttack;
 }
コード例 #15
0
 public static void skilAllahAkbar(Donger dong)
 {
     Donger.SendMessages("\t" + dong.SkillMessage("ALLAHU AKBAR"));
     dong.enemy.TakeDamageFromSkill(SeijaHelper.RandomProvider.GetThreadRandom().Next(20, 70));
     dong.TakeDamageFromSkill(SeijaHelper.RandomProvider.GetThreadRandom().Next(20, 70));
 }
コード例 #16
0
        public static void MindlessAttack(Donger dong)
        {
            foreach (Effect f in dong.effects)
            {
                f.Execute(dong);
            }
            dong.effects.RemoveAll(x => x.Timer <= 0);

                int strike = SeijaHelper.RandomProvider.GetThreadRandom().Next(0, 100);
                if (strike < dong.acurityMod)
                {
                    int damage = SeijaHelper.RandomProvider.GetThreadRandom().Next(3, 10);
                    //damage=?;
                    damage = (int)(damage * dong.damageMod);
                    if (dong.armor == Donger.defArmor)
                        Donger.SendMessages(dong.DongerInfo + " attacks " + dong.DongerInfo + " and deals " + damage.ToString() + " damage");
                    else
                        Donger.SendMessages(dong.DongerInfo + " attacks " + dong.DongerInfo + " and deals " + ((int)(damage / dong.armor)).ToString() + " damage");
                    dong.TakeDamage(damage);
                }
                else
                    Donger.SendMessages(dong.DongerInfo + " misses!");
        }
コード例 #17
0
        public static void LewdAttack(Donger dong)
        {
            foreach (Effect f in dong.effects)
            {
                f.Execute(dong);
            }
            dong.effects.RemoveAll(x => x.Timer <= 0);

            int skillstrike = SeijaHelper.RandomProvider.GetThreadRandom().Next(0, 100);
            if (skillstrike < dong.skillChance && dong.skillUses > 0)
            {
                if (dong.skill == Donger.emtySkill)
                    Donger.SendMessages("\t" + dong.DongerInfo + " uses skill but it fails!");
                else
                {
                    dong.skill(dong);
                }
                dong.skillUses--;
            }
            else
                Donger.SendMessages(dong.DongerInfo + " is watching carefully!");
        }
コード例 #18
0
 public static void skillPoisonBite(Donger dong)
 {
     Donger.SendMessages("\t" + dong.SkillMessage("POISON BITE"));
     dong.enemy.TakeDamageFromSkill(SeijaHelper.RandomProvider.GetThreadRandom().Next(3, 8));
     dong.enemy.AddEffect(5,effectPoison);
 }
コード例 #19
0
 public static void skillRape(Donger dong)
 {
     if (dong.enemy.rapeble == true)
     {
         Donger.SendMessages("\t" + dong.SkillMessage("LETS DO IT, BOY"));
         System.Threading.Thread.Sleep(500);
         Donger.SendMessages("\t" + "\t" + "( ͡° ͜ʖ " + dong.enemy.dongerName);
         System.Threading.Thread.Sleep(500);
         dong.enemy.TakeDamageFromSkill(SeijaHelper.RandomProvider.GetThreadRandom().Next(50, 150));
     }
     else
     {
         Donger.SendMessages("\t" + dong.SkillMessage("LETS DO IT, BOY"));
         System.Threading.Thread.Sleep(500);
         Donger.SendMessages("\t" + "Rape attempt failed!");
         System.Threading.Thread.Sleep(500);
         Donger.SendMessages(dong.enemy.rapeString);
     }
 }
コード例 #20
0
 public static void skillDoubleAttack(Donger dong)
 {
     Donger.SendMessages("\t" + dong.SkillMessage("PREPARE TO DIE"));
     dong.enemy.TakeDamageFromSkill(SeijaHelper.RandomProvider.GetThreadRandom().Next(10, 16));
     dong.enemy.TakeDamageFromSkill(SeijaHelper.RandomProvider.GetThreadRandom().Next(10, 16));
 }
コード例 #21
0
 public static void skillSpirits(Donger dong)
 {
     Donger.SendMessages("\t" + dong.SkillMessage("Da spirits be restless"));
     System.Threading.Thread.Sleep(300);
     Donger.SendMessages("\t" + "HP SWAPPED");
     int temp = dong.enemy.hp;
     dong.enemy.hp = dong.hp;
     dong.hp = temp;
 }
コード例 #22
0
 public static void skillEbola(Donger dong)
 {
     Donger.SendMessages("\t" + dong.SkillMessage("EBOLA STRIKE"));
     dong.enemy.damageMod = dong.enemy.damageMod / 3;
 }
コード例 #23
0
 public static void skillVampiricBite(Donger dong)
 {
     int dmg = SeijaHelper.RandomProvider.GetThreadRandom().Next(7, 16);
     Donger.SendMessages("\t" + dong.SkillMessage("VAMPIRIC BITE"));
     dong.enemy.TakeDamageFromSkill(dmg);
     dong.Heal(dmg);
 }
コード例 #24
0
 public static void skillHealME(Donger dong)
 {
     Donger.SendMessages("\t" + dong.SkillMessage("HILIMSYA JIVEM"));
     dong.Heal(SeijaHelper.RandomProvider.GetThreadRandom().Next(9, 20));
 }
コード例 #25
0
 public static void skllENRAGE(Donger dong)
 {
     Donger.SendMessages("\t" + dong.SkillMessage("NOW I AM F*****G SERIOUS"));
     if (dong.effects.Count>=0)
     {
         Donger.SendMessages("\t" + "All effects are purged from " + dong.dongerName);
         dong.effects = new List<Effect>();
     }
     dong.damageMod = dong.damageMod * 3;
     dong.acurityMod = 100;
     dong.attack = Donger.DeafaultAttack;
 }
コード例 #26
0
 public static void skillKnight(Donger dong)
 {
     Donger.SendMessages("\t" + dong.SkillMessage("I am the knight of spamerino. Stand back foul moderino"));
     dong.damageMod = dong.damageMod * 1.5;
     dong.armor = dong.armor * 1.5;
 }
コード例 #27
0
 public void Execute(Donger dong)
 {
     efc(dong);
     Timer--;
 }
コード例 #28
0
 public static void skillNakachan(Donger dong)
 {
     Donger.SendMessages("\t" + dong.SkillMessage("К А Н Т А Й  Н О  А Й Д О Р У  Н А К А - Ч А Н  Д А  Ё"));
     dong.enemy.TakeDamageFromSkill(1);
 }
コード例 #29
0
 public static void skillMirrorCopy(Donger dong)
 {
     Donger.SendMessages("\t" + dong.SkillMessage("MIRROR COPY"));
     dong.skill = dong.enemy.skill;
     if (dong.enemy.damageMod > dong.damageMod)
     dong.damageMod = dong.enemy.damageMod;
     if (dong.enemy.acurityMod > dong.acurityMod)
     dong.acurityMod = dong.enemy.acurityMod;
     if (dong.enemy.armor > dong.armor)
     dong.armor = dong.enemy.armor;
     if (dong.enemy.magicDef > dong.magicDef)
     dong.magicDef = dong.enemy.magicDef;
     if (dong.enemy.skillChance > dong.skillChance)
         dong.skillChance = dong.enemy.skillChance;
 }
コード例 #30
0
 public static void endAttackChange(Donger dong)
 {
     dong.attack = Donger.DeafaultAttack;
 }