public float principalDefenseValue(Monster defenseMonster, Move attackMove) { float pDV = attackMove.getMaxDefense(); // Console.Write(" max d =" + pDV + "\n"); float dSpeed = attackMove.getDSpeed(); float dSize = attackMove.getDSize(); float dstrength = attackMove.getDStrength(); // Console.Write("dmove size after " + dSize + "\n"); // Console.Write("dmove speed after " + dSpeed + "\n"); // Console.Write("dmove strength after " + dstrength + "\n"); // Console.Write(" " + "\n"); dSpeed = dSpeed / 100; dSize = dSize / 100; dstrength = dstrength / 100; int defenderSpeed = defenseMonster.getSpeed(); int defenderSize = defenseMonster.getSize(); int defenderStrengh = defenseMonster.getStrength(); dSpeed = dSpeed * defenderSpeed; dSize = dSize * defenderSize; dstrength = dstrength * defenderStrengh; float total = dSpeed + dSize + dstrength; total = total / 100; float levelMod = defenseMonster.getLevel(); levelMod = levelMod / 100; total = total * levelMod; pDV = pDV * total; return(pDV); }
public float principalAttackValue(Monster attackMonster, Move attackMove) { float pAV = attackMove.getMaxDamage(); float moveSize = attackMove.getSizeAttacker(); float moveSpeed = attackMove.getSpeed(); float moveStrength = attackMove.getStrength(); moveSize = moveSize / 100; moveSpeed = moveSpeed / 100; moveStrength = moveStrength / 100; int creatureSpeed = attackMonster.getSpeed(); int creatureStrength = attackMonster.getStrength(); int creatureSize = attackMonster.getSize(); moveSize = moveSize * creatureSize; moveSpeed = moveSpeed * creatureSpeed; moveStrength = moveStrength * creatureStrength; //Console.Write("move size " + moveSize + "\n"); //Console.Write("move speed " + moveSpeed + "\n"); //Console.Write("move Strength " + moveStrength + "\n"); float total = moveSize + moveSpeed + moveStrength; float effectivnessDecimal = total / 100; //Console.Write("move max damage @ 100% effecency " + pAV + "\n"); // Console.Write("effectivness deceimal= " + effectivnessDecimal + "\n"); pAV = pAV * effectivnessDecimal; // Console.Write("max damage after applied (defense still to be calculated) " + pAV + "\n"); float levelMod = attackMonster.getLevel(); levelMod = levelMod / 100; // Console.Write(" level mod attacker " + levelMod + "\n"); pAV = pAV * levelMod; // Console.Write(" final pAV w/ level consider " + pAV + "\n"); // Console.Write("\n"); return(pAV); }
public float principalDefenseValue(Monster defenseMonster, Move attackMove) { float pDV = attackMove.getMaxDefense(); // Console.Write(" max d =" + pDV + "\n"); float dSpeed = attackMove.getDSpeed(); float dSize = attackMove.getDSize(); float dstrength = attackMove.getDStrength(); // Console.Write("dmove size after " + dSize + "\n"); // Console.Write("dmove speed after " + dSpeed + "\n"); // Console.Write("dmove strength after " + dstrength + "\n"); // Console.Write(" " + "\n"); dSpeed = dSpeed / 100; dSize = dSize / 100; dstrength = dstrength / 100; int defenderSpeed = defenseMonster.getSpeed(); int defenderSize = defenseMonster.getSize(); int defenderStrengh = defenseMonster.getStrength(); dSpeed = dSpeed * defenderSpeed; dSize = dSize * defenderSize; dstrength = dstrength * defenderStrengh; float total = dSpeed + dSize + dstrength; total = total / 100; float levelMod = defenseMonster.getLevel(); levelMod = levelMod / 100; total = total * levelMod; pDV = pDV * total; return pDV; }
public float principalAttackValue(Monster attackMonster, Move attackMove) { float pAV = attackMove.getMaxDamage(); float moveSize = attackMove.getSizeAttacker(); float moveSpeed = attackMove.getSpeed(); float moveStrength = attackMove.getStrength(); moveSize = moveSize / 100; moveSpeed = moveSpeed / 100; moveStrength = moveStrength / 100; int creatureSpeed = attackMonster.getSpeed(); int creatureStrength = attackMonster.getStrength(); int creatureSize = attackMonster.getSize(); moveSize = moveSize * creatureSize; moveSpeed = moveSpeed * creatureSpeed; moveStrength = moveStrength * creatureStrength; //Console.Write("move size " + moveSize + "\n"); //Console.Write("move speed " + moveSpeed + "\n"); //Console.Write("move Strength " + moveStrength + "\n"); float total = moveSize + moveSpeed + moveStrength; float effectivnessDecimal = total / 100; //Console.Write("move max damage @ 100% effecency " + pAV + "\n"); // Console.Write("effectivness deceimal= " + effectivnessDecimal + "\n"); pAV = pAV * effectivnessDecimal; // Console.Write("max damage after applied (defense still to be calculated) " + pAV + "\n"); float levelMod = attackMonster.getLevel(); levelMod = levelMod / 100; // Console.Write(" level mod attacker " + levelMod + "\n"); pAV = pAV * levelMod; // Console.Write(" final pAV w/ level consider " + pAV + "\n"); // Console.Write("\n"); return pAV; }