Ask Question

Name:
Title:
Your Question:

Answer Question

Name:
Your Answer:
User Submitted Source Code!


Description:
  Riders Of Icarus Seal Attack Calculation
Language: C/C++
Code:
#include<stdio.h>
#include<stdlib.h>
#include<locale.h>
#include<string.h>

#pragma warning(disable: 4996)

int main ()
{

     int OverallAttack,Attribute,PhysicalAttack,MagicAttack,Attack,Seal,Class;
     
     setlocale(LC_CTYPE, "italian");
     
     printf("\n\t+ + + + + + + + + + + + + + + + +\n\t+\t\t\t\t+\n\t+\t     *SEALS*\t\t+\n\t+\t\t\t\t+\n\t+     1) Aidus\t\t\t+\n\t+      Overall Attack:235\t+\n\t+      Attribute:43     \t+\n\t+\t\t\t\t+\n\t+     2) Radan\t\t\t+\n\t+      Overall Attack:235\t+\n\t+      Attribute:43     \t+\n\t+\t\t\t\t+\n\t+     3) Benotien\t\t+\n\t+      Overall Attack:280\t+\n\t+      Attribute:46     \t+\n\t+\t\t\t\t+\n\t+     4) Veldon\t\t\t+\n\t+      Overall Attack:170\t+\n\t+      Attribute:110     \t+\n\t+\t\t\t\t+\n\t+     5) Caspert\t\t+\n\t+      Overall Attack:170\t+\n\t+      Attribute:110     \t+\n\t+\t\t\t\t+\n\t+     6) Soluna\t\t\t+\n\t+      Overall Attack:297\t+\n\t+      Attribute:55     \t+\n\t+\t\t\t\t+\n\t+     7) Antares\t\t+\n\t+      Overall Attack:186\t+\n\t+      Attribute:162     \t+\n\t+\t\t\t\t+\n\t+     8) Hestine\t\t+\n\t+      Overall Attack:292\t+\n\t+      Attribute:54     \t+\n\t+\t\t\t\t+\n\t+     9) Nebula\t\t\t+\n\t+      Overall Attack:347\t+\n\t+      Attribute:53     \t+\n\t+\t\t\t\t+\n\t+     10) Chaser\t\t+\n\t+      Overall Attack:394\t+\n\t+      Attribute:38     \t+\n\t+\t\t\t\t+\n\t+     11) Algidus\t\t+\n\t+      Overall Attack:416\t+\n\t+      Attribute:58     \t+\n\t+\t\t\t\t+\n\t+     12) Aeolus\t\t+\n\t+      Overall Attack:453\t+\n\t+      Attribute:47     \t+\n\t+\t\t\t\t+\n\t+     13) Golem\t\t\t+\n\t+      Overall Attack:594\t+\n\t+      Attribute:43)     \t+\n\t+\t\t\t\t+\n\t+ + + + + + + + + + + + + + + + +\n\n\n      Choose your seal: ");
     scanf("%d",&Seal);
     printf("\t- ");
     
     switch(Seal)
     {
          case 1:
               printf(" Aidus");
               OverallAttack = 235;
               Attribute =      32+11;
               printf("\n\t   Overall Attack: %d\n\t   Attribute: %d",OverallAttack,Attribute);
               break;
          
          case 2:
               printf(" Radan The Forbidden");
               OverallAttack = 235;
               Attribute =      32+11;
               printf("\n\t   Overall Attack: %d\n\t   Attribute: %d",OverallAttack,Attribute);
               break;
          
          case 3:
               printf(" Corrupted Benotien");
               OverallAttack = 280;
               Attribute =      35+11;
               printf("\n\t   Overall Attack: %d\n\t   Attribute: %d",OverallAttack,Attribute);
               break;
          
          case 4:
               printf(" Ancient Veldon");
               OverallAttack = 170;
               Attribute =      85+25;
               printf("\n\t   Overall Attack: %d\n\t   Attribute: %d",OverallAttack,Attribute);
               break;     
          
          case 5:
               printf(" Ancient Caspert");
               OverallAttack = 170;
               Attribute =      85+25;
               printf("\n\t   Overall Attack: %d\n\t   Attribute: %d",OverallAttack,Attribute);
               break;     
          
          case 6:
               printf(" Soluna The Spiroon");
               OverallAttack = 297;
               Attribute =      37+18;
               printf("\n\t   Overall Attack: %d\n\t   Attribute: %d",OverallAttack,Attribute);
               break;
          
          case 7:
               printf(" Furious/Benevolent Antares");
               OverallAttack = 186;
               Attribute =      125+37;
               printf("\n\t   Overall Attack: %d\n\t   Attribute: %d",OverallAttack,Attribute);
               break;     
          
          case 8:
               printf(" Infernal Hestine");
               OverallAttack = 292;
               Attribute =      36+18;
               printf("\n\t   Overall Attack: %d\n\t   Attribute: %d",OverallAttack,Attribute);
               break;     
          
          case 9:
               printf(" Nebula The Chaos");
               OverallAttack = 347;
               Attribute =      38+15;
               printf("\n\t   Overall Attack: %d\n\t   Attribute: %d",OverallAttack,Attribute);
               break;     
          
          case 10:
               printf(" Spirit Chaser");
               OverallAttack = 394;
               Attribute =      38;
               printf("\n\t   Overall Attack: %d\n\t   Attribute: %d",OverallAttack,Attribute);
               break;     
          
          case 11:
               printf(" Algidus");
               OverallAttack = 416;
               Attribute =      45+13;
               printf("\n\t   Overall Attack: %d\n\t   Attribute: %d",OverallAttack,Attribute);
               break;     
          
          case 12:
               printf(" Crimson Aeolus");
               OverallAttack = 435+18;
               Attribute =      47;
               printf("\n\t   Overall Attack: %d\n\t   Attribute: %d",OverallAttack,Attribute);
               break;     
          
          case 13:
               printf(" Rune Golem");
               OverallAttack = 414+180;
               Attribute =      43;
               printf("\n\t   Overall Attack: %d\n\t   Attribute: %d",OverallAttack,Attribute);
               break;     
     }          
     

     printf("\n\n\t+ + + + + + + + + + + + +\n\t+\t\t\t+\n\t+       *CLASS*: \t+\n\t+\t\t\t+\n\t+     1) Berserker\t+\n\t+     2) Guardian\t+\n\t+     3) Assassin\t+\n\t+     4) Priest\t\t+\n\t+     5) Wizard\t\t+\n\t+     6) Ranger\t\t+\n\t+     7) Trickster\t+\n\t+     8) Magician\t+\n\t+\t\t\t+\n\t+ + + + + + + + + + + + +\n\n\n      Choose your class: ");
     scanf("%d",&Class);
     printf("\t- ");
     
     switch(Class)
     {
     case 1:
          printf(" Berserker");
          PhysicalAttack = (1.50 * Attribute);
          printf("\n\t   1 Strength = 1.50 Physical Attack \n\n");
          break;

     case 2:
          printf(" Guardian");
          PhysicalAttack = 1.20 * Attribute;
          printf("\n\t   1 Strength = 1.20 Physical Attack \n\n");
          break;
     
     case 3:
          printf(" Assassin");
          PhysicalAttack = 1.50 * Attribute;
          printf("\n\t   1 Strength = 1.50 Physical Attack \n\n");
          break;
     
     case 4:
          printf(" Priest");
          MagicAttack = 1.20 * Attribute;
          printf("\n\t   1 Intelligence = 1.20 Magic Attack \n\n");
          break;
     
     case 5:
          printf(" Wizard");
          MagicAttack = 1.50 * Attribute;
          printf("\n\t   1 Intelligence = 1.50 Magic Attack \n\n");
          break;
     
     case 6:
          printf(" Ranger");
          MagicAttack = 1.50 * Attribute;
          printf("\n\t   1 Intelligence = 1.50 Magic Attack \n\n");
          break;
     
     case 7:
          printf(" Trickster");
          MagicAttack = 1.50 * Attribute;
          printf("\n\t   1 Intelligence = 1.50 Magic Attack \n\n");
          break;
     
     case 8:
          printf(" Magician");
          MagicAttack = 1.50 * Attribute;
          printf("\n\t   1 Intelligence = 1.50 Magic Attack \n\n");
          break;
     }
     
     

     
     Attack = MagicAttack + PhysicalAttack + OverallAttack;
     printf("\tAttack: %d\n\n\n",Attack);
     
     return 0;
     system("PAUSE");
}
Comments: