User:Felicss/wikia.js

package Test;

public class Max { public static double str (int a){ double ergebnis = 1; return ergebnis; }

public static void main(String[] args) {

//Console boolean AS = true; //Augur Secrets boolean BR = true; //Blind Rage boolean EC = true; //Energy Conversion boolean INF = false; //Intensify boolean UINF= true; //Umbral Intensify boolean OE = false; //Overextended boolean PD = true; //Power Drift boolean TF = true; //Transient Fortitude boolean streamline = true; //Streamline boolean fleeting  = true; //Fleeting Expertise boolean blind     = false; //Blind Rage boolean channeling = false; //Channeling yes/no boolean AReach = true; //Augur Reach boolean CDrift = true; //Cunning Drift boolean NMinded= false; //Narrow Minded boolean OExt  = true; //Overextended boolean Stretch= true; //Stretch boolean AMsg    = true; //Augur Message boolean Conti   = true; //Continuity boolean PConti  = true; //Primed Continuity boolean Consti  = true; //Constitution boolean FExt    = true; //Fleeting Expertise boolean NMinddur = true; //Narrow Minded boolean TFort   = true; //Transient Fortitude //Stats //First Ability double bdmg1  = 1; //Base damage double energy1 = 1; //Energy cost double brng1  = 1; //Base range double bdur1  = 1; //Base duration

//Second Ability double bdmg2  = 1; //Base damage double energy2 = 1; //Energy cost double brng2  = 1; //Base range double bdur2  = 1; //Base duration

//Third Ability double bdmg3  = 1; //Base damage double energy3 = 1; //Energy cost double brng3  = 1; //Base range double bdur3  = 1; //Base duration

//Fourth Ability double bdmg4  = 1; //Base damage double energy4 = 1; //Energy cost double brng4  = 1; //Base range double bdur4  = 1; //Base duration

//-		//Mods //Strength Mods double asstr = 0.25; //Augur Secrets double brstr = 0.99; //Blind Rage double ecstr = 0.5;  //Energy Conversion double infstr = 0.3; //Intensify double uinfstr= 0.44; //Umbral Intensify double oestr = -0.6; //Overextended double pdstr = 0.15; //Power Drift double tfstr = 0.55; //Transient Fortitude

int ASINT = AS ? 1 : 0;			int BRINT = BR ? 1 : 0;			int ECINT = EC ? 1 : 0;			int INFINT = INF ? 1 : 0;			int UINFINT= UINF ? 1 : 0;			int OEINT = OE ? 1 : 0;			int PDINT = PD ? 1 : 0;			int TFINT = TF ? 1 : 0;			if (UINF == true){ infstr = 0; }

double STREC = 1 + asstr * ASINT + brstr * BRINT + ecstr * ECINT + infstr * INFINT + uinfstr * UINFINT + oestr * OEINT + pdstr * PDINT + tfstr * TFINT; double STR = 1 + asstr * ASINT + brstr * BRINT + infstr * INFINT + uinfstr * UINFINT + oestr * OEINT + pdstr * PDINT + tfstr * TFINT; String MEC = "Without Energy Conversion"; //-						//Efficiency Mods double streff = 0.3; //Streamline double feeff = 0.45; //Fleeting Expertise double breff = -0.66;//Blind Rage int streamlineInt = streamline ? 1 : 0;			int fleetingInt  = fleeting ? 1 : 0;			int blindInt     = blind ? 1 : 0;			if (BR == true){ blind = true; }			double EFF = 1 - (streff * streamlineInt + feeff * fleetingInt + breff * blindInt); if(streamline == true && fleeting == true && channeling == true && blind == false){ EFF = 1 - (streff + feeff + 0.15); } //-			//Range Mods double arrng = 0.3;   //Augur Reach double cdrng = 0.15;  //Cunning Drift double nmrng = -0.66; //Narow Minded double oerng = 0.9;   //Overextended double strrng = 0.45; //Stretch int arrngint = AReach ? 1 : 0;			int cdrngint = CDrift ? 1 : 0;			int nmrngint = NMinded ? 1 : 0;			int oerngint = OExt ? 1 : 0;			int strrngint = Stretch ? 1 : 0;			if (OE == true){ OExt = true; }			double RNG = 1 + arrng * arrngint + cdrng * cdrngint + nmrng * nmrngint + oerng * oerngint + strrng * strrngint; //-			//Duration Mods double amdur  = 0.24;  //Augur Message double condur = 0.3;   //Continuity double pcondur = 0.55; //Primed Continuity double consdur = 0.28; //Constitution double fedur  = -0.6;  //Fleeting Expertise double nmdur  = 0.99;  //Narrow Minded double tfdur  = -0.275;//Transient Fortitude

int amdurint  = AMsg ? 1 : 0;			int condurint = Conti ? 1 : 0;			int pcondurint = PConti ? 1 : 0;			int consdurint = Consti ? 1 : 0;			int fedurint  = FExt ? 1 : 0;			int nmdurint  = NMinddur ? 1 : 0;			int tfdurint  = TFort ? 1 : 0;			if (PConti == true){ consdur = 0; }			if (TF == true){ TFort = true; }			if (fleeting == true){ FExt = true; }			if (NMinded == true){ NMinddur = true; }			double DUR = 1 + amdur * amdurint + condur * condurint + pcondur * pcondurint + consdur * consdurint + fedur * fedurint + nmdur * nmdurint + tfdur * tfdurint; //-				//Test //First Ability System.out.println("First Ability"); //STREC double DMG1EC = bdmg1 * STREC;

if (STREC > 1){ System.out.println("Increases damage to " + DMG1EC + "."); }								else if (STREC < 1){ System.out.println("Reduces damage to " + DMG1EC + "."); }					else if (STREC == 1){ System.out.println("Damage remains unchanged."); }					//STR double DMG1 = bdmg1 * STR; if (STR > 1){ System.out.println(MEC + " increases damage to " + DMG1 + "."); }									else if (STR < 1){ System.out.println(MEC + " reduces damage to " + DMG1 + "."); }					else if (STR == 1){ System.out.println(MEC + " damage remains unchanged."); }					//EFF double EFF1 = energy1 * EFF; if (EFF < 1){ System.out.println("Reduces cost to " + EFF1 + "."); }					else if (EFF > 1){ System.out.println("Increases cost to " + EFF1 + "."); }					else if (EFF == 1){ System.out.println("Cost remains unchanged."); }					//RNG double RNG1 = brng1 * RNG; if (RNG < 1){ System.out.println("Increases range to " + RNG1 + "."); }					else if (RNG > 1){ System.out.println("Reduces range to " + RNG1 + "."); }					else if (RNG == 1){ System.out.println("Range remains unchanged."); }

//DUR double DUR1 = bdur1 * DUR; if (DUR < 1){ System.out.println("Increases duration to " + DUR1 + "."); }					else if (DUR > 1){ System.out.println("Reduces duration to " + DUR1 + "."); }					else if (DUR == 1){ System.out.println("Duration remains unchanged."); }			//Second Ability System.out.println("Second Ability"); //STREC double DMG2EC = bdmg2 * STREC;

if (STREC > 1){ System.out.println("Increases damage to " + DMG2EC + "."); }								else if (STREC < 1){ System.out.println("Reduces damage to " + DMG2EC + "."); }					else if (STREC == 1){ System.out.println("Damage remains unchanged."); }					//STR double DMG2 = bdmg2 * STR; if (STR > 1){ System.out.println(MEC + " increases damage to " + DMG2 + "."); }									else if (STR < 1){ System.out.println(MEC + " reduces damage to " + DMG2 + "."); }					else if (STR == 1){ System.out.println(MEC + " damage remains unchanged."); }					//EFF double EFF2 = energy2 * EFF; if (EFF < 1){ System.out.println("Reduces cost to " + EFF2 + "."); }					else if (EFF > 1){ System.out.println("Increases cost to " + EFF2 + "."); }					else if (EFF == 1){ System.out.println("Cost remains unchanged."); }					//RNG double RNG2 = brng2 * RNG; if (RNG < 1){ System.out.println("Increases range to " + RNG2 + "."); }					else if (RNG > 1){ System.out.println("Reduces range to " + RNG2 + "."); }					else if (RNG == 1){ System.out.println("Range remains unchanged."); }

//DUR double DUR2 = bdur2 * DUR; if (DUR < 1){ System.out.println("Increases duration to " + DUR2 + "."); }					else if (DUR > 1){ System.out.println("Reduces duration to " + DUR2 + "."); }					else if (DUR == 1){ System.out.println("Duration remains unchanged."); }

//Third Ability System.out.println("Third Ability"); //STREC double DMG3EC = bdmg3 * STREC;

if (STREC > 1){ System.out.println("Increases damage to " + DMG3EC + "."); }								else if (STREC < 1){ System.out.println("Reduces damage to " + DMG3EC + "."); }					else if (STREC == 1){ System.out.println("Damage remains unchanged."); }					//STR double DMG3 = bdmg3 * STR; if (STR > 1){ System.out.println(MEC + " increases damage to " + DMG3 + "."); }									else if (STR < 1){ System.out.println(MEC + " reduces damage to " + DMG3 + "."); }					else if (STR == 1){ System.out.println(MEC + " damage remains unchanged."); }					//EFF double EFF3 = energy3 * EFF; if (EFF < 1){ System.out.println("Reduces cost to " + EFF3 + "."); }					else if (EFF > 1){ System.out.println("Increases cost to " + EFF3 + "."); }					else if (EFF == 1){ System.out.println("Cost remains unchanged."); }					//RNG double RNG3 = brng3 * RNG; if (RNG < 1){ System.out.println("Increases range to " + RNG3 + "."); }					else if (RNG > 1){ System.out.println("Reduces range to " + RNG3 + "."); }					else if (RNG == 1){ System.out.println("Range remains unchanged."); }

//DUR double DUR3 = bdur3 * DUR; if (DUR < 1){ System.out.println("Increases duration to " + DUR3 + "."); }					else if (DUR > 1){ System.out.println("Reduces duration to " + DUR3 + "."); }					else if (DUR == 1){ System.out.println("Duration remains unchanged."); }

//Fourth Ability System.out.println("Fourth Ability"); //STREC double DMG4EC = bdmg4 * STREC;

if (STREC > 1){ System.out.println("Increases damage to " + DMG4EC + "."); }								else if (STREC < 1){ System.out.println("Reduces damage to " + DMG4EC + "."); }					else if (STREC == 1){ System.out.println("Damage remains unchanged."); }					//STR double DMG4 = bdmg4 * STR; if (STR > 1){ System.out.println(MEC + " increases damage to " + DMG4 + "."); }									else if (STR < 1){ System.out.println(MEC + " reduces damage to " + DMG4 + "."); }					else if (STR == 1){ System.out.println(MEC + " damage remains unchanged."); }					//EFF double EFF4 = energy4 * EFF; if (EFF < 1){ System.out.println("Reduces cost to " + EFF4 + "."); }					else if (EFF > 1){ System.out.println("Increases cost to " + EFF4 + "."); }					else if (EFF == 1){ System.out.println("Cost remains unchanged."); }					//RNG double RNG4 = brng4 * RNG; if (RNG < 1){ System.out.println("Increases range to " + RNG4 + "."); }					else if (RNG > 1){ System.out.println("Reduces range to " + RNG4 + "."); }					else if (RNG == 1){ System.out.println("Range remains unchanged."); }

//DUR double DUR4 = bdur4 * DUR; if (DUR < 1){ System.out.println("Increases duration to " + DUR4 + "."); }					else if (DUR > 1){ System.out.println("Reduces duration to " + DUR4 + "."); }					else if (DUR == 1){ System.out.println("Duration remains unchanged."); }	} }