import java.util.*;
import java.lang.*;
import java.io.*;
class StrengthModifier
{
{
//A is attacker, B is victim, 1 is level
//IMPORTANT: The character's strength value is only for those at level 1!
//This will determine the proper value for higher levels.
int strA = 500;
int strB = 600;
int strA1 = 10;
int strB1 = 16;
int damage = 0;
//Your strength is effStr while your opponent's is thisstr.
double effStr
= Math.
floor(strA
* Math.
pow(1.1775,
(strA1
-1)) / 10) * 10; double thisstr
= Math.
floor(strB
* Math.
pow(1.1775,
(strB1
-1)) / 10) * 10;
System.
out.
println("Real Strength: " + effStr
); System.
out.
println("Opponent's Strength: " + thisstr
); //These statements are NOT to be modified. This is straight from the game's code slightly modified for the program.
if(effStr > thisstr * 2)
{
effStr = thisstr * 2 + (effStr - thisstr * 2) / 8;
if(effStr > thisstr * 3)
{
effStr = thisstr * 3 + (effStr - thisstr * 3) / 100;
}
}
else if(effStr < thisstr / 2)
{
effStr = thisstr / 2 - (thisstr / 2 - effStr) / 10;
}
//The results of these calculations. You can modify the 30 for any damage you want.
System.
out.
println("Modified Strength: " + (effStr
)); System.
out.
println("Damage: " + Math.
floor(30 * (effStr
/500))); }
}
/* Lv1 strengths
Lucas: 500
Drew: 510
Shawn: 590
Jenny: 470
Taylor: 490
Leo: 600
Legge: 500
Eason: 580
Jason: 470
Gordon: 480
Giggs: 460
Titto: 470
Sinan: 480
Iczzy: 540
Heater: 550
Raye: 560
Vivian: 450
Livermore: 600
S. Eason: 500
*/
aW1wb3J0IGphdmEudXRpbC4qOwppbXBvcnQgamF2YS5sYW5nLio7CmltcG9ydCBqYXZhLmlvLio7CgpjbGFzcyBTdHJlbmd0aE1vZGlmaWVyCnsKCXB1YmxpYyBzdGF0aWMgdm9pZCBtYWluIChTdHJpbmdbXSBhcmdzKSB0aHJvd3MgamF2YS5sYW5nLkV4Y2VwdGlvbgoJewoJCS8vQSBpcyBhdHRhY2tlciwgQiBpcyB2aWN0aW0sIDEgaXMgbGV2ZWwKCQkvL0lNUE9SVEFOVDogVGhlIGNoYXJhY3Rl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