Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- ——————————————————————————————————
- BSI ——-LSI——– Build Type——–Levelling speed———-Battle Strength
- 0 – 1 —- 8 – 9 —-> Power Leveler —– Extremely Fast ———- Very Weak
- 1 – 3 —> 6 – 8 —-> Monster Hunter ——- Very Fast —————- Weak
- 3 – 5 —> 4 – 6—–> Hybrid ————- Fast ————————— Strong
- 5 – 7 —> 2 – 4 —-> PvP —————– Slow ———————- Very Strong
- >7 —–> < 2——> Pure PvP——— Very Slow ———– Extremely Strong
- ——————————————————————————————————
- example: int ENE=181, stamina=128, level = 106; LSI = 4.12264, BSI = 3.4717;
- */
- #include <iostream>
- using namespace std;
- int main()
- {
- int ENE,STA,ATT,DEF;
- float LVL;
- cout << "Calculate Battle Strength Index[BSI] and Leveling Strength Index[LSI]"<<endl;
- cout << "----------------------------------" << endl;
- cout << "BSI ---LSI--- Build Type---Levelling speed----Battle Strength" << endl;
- cout << "0 - 1 -- 8 - 9 --> Power Leveler -- Extremely Fast ---- Very Weak"<<endl;
- cout << "1 - 3 -> 6 - 8 --> Monster Hunter --- Very Fast ------- Weak"<<endl;
- cout << "3 - 5 -> 4 - 6 --> Hybrid ----- Fast --------- Strong"<<endl;
- cout << "5 - 7 -> 2 - 4 --> PvP ------ Slow -------- Very Strong"<<endl;
- cout << ">7 --> < 2 --> Pure PvP--- Very Slow ---- Extremely Strong"<<endl;
- cout << "----------------------------------"<<endl<<endl;
- cout << "Enter LVL: " ; cin >> LVL;
- cout << "Enter ENERGY: " ; cin >> ENE;
- cout << "Enter STAMINA: "; cin >> STA;
- cout << "Enter ATTACK: "; cin >> ATT;
- cout << "Enter DEFENSE: "; cin >> DEF;
- cout << endl;
- float LSI = (ENE + (STA*2)) / LVL;
- float BSI = (ATT + DEF ) / LVL;
- cout <<"LSI: " << LSI << " BSI: " <<BSI << endl;
- if ((BSI>=0&&BSI<=1) && (LSI>=8&&LSI<=9))
- cout << "You are Power Leveler. Extremely fast levelling speed but very weak battle strength.";
- else if ((BSI>=1&&BSI<=3) && (LSI>=6&&LSI<=9))
- cout << "You are Monster Hunter. Very fast levelling speed but weak battle strength.";
- else if ((BSI>=3&&BSI<=5) && (LSI>=4&&LSI<=6))
- cout << "You are Hybrid. Fast levelling speed and strong battle strength.";
- else if ((BSI>=5&&BSI<=7) && (LSI>=2&&LSI<=4))
- cout << "You are PVP. Slow levelling speed but very strong battle strength.";
- else if ((BSI>7) && (LSI<2))
- cout << "You are PVP. Slow levelling speed but very strong battle strength.";
- cin.ignore(100,'\n');
- cin.get();
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement