BattlePowerCalculations Method???

01/29/2012 14:48 somecode#1
help me to look the method // wrong or right


PHP Code:

public uint PowerCalculations(uint dmg,int aPower,int bPower)
        {
            
int sum aPower bPower;
            if (
sum 0
            {
                
dmg -= Convert.ToUInt32(dmg * (sum 50.00));
            }
            else if (
sum 0)  
            {
                
dmg += Convert.ToUInt32(dmg * (sum 50.00));
            }

            return 
dmg;
        } 
01/29/2012 18:23 { Angelius }#2
Why dont you use the battle power on both sides attack/defense?

Something like...

Attacker Damage += (uint)(Attacker BP * Attacker BP / 25);

uint Sum = (uint)(Target BP * Target BP / 30);

if (Attacker Damage >= Sum)
Attacker Damage -= Sum;

IE.
Attacker
380 * 380 = 144400
144400 / 25 = 5776

Target
380 * 380 = 144400
144400 / 30 = 4813

Result: 5776 - 4813 = 963

idk it sounds kinda fair for both player that way better then using the battle power only to add extra attack points to the attacker.

however i canceled the whole battle power thing in my server so what i just said was just an idea.
01/29/2012 19:00 CptSky#3
I personally use this formula on the final damage. It seems fair on my server.

Code:
Calculate damage...

            Double BattlePower = Attacker.Potency - Target.Potency;
            BattlePower = Math.Pow(2.0, BattlePower / 100.00);
            Damage *= BattlePower;

            if (Damage < 1)
                Damage = 1;
01/29/2012 19:11 injection illusion logic#4
depends on how ur server will be like
if u want to make it all about donation then let each potency point difference add 5% attack/defense so kings 1 hit princes , princes 1 hit dukes
if u want to make it long term server with balanced attack/defense then use bp for casting spells like fog/posionstar and the bp difference only increase attack by 1% per 1 bp or 2 as cptsky said but guess 1 is pretty enough cuz better potency will have a better attack and defense so 1% will get it balanced , also dont forget bp effect on monsters , good luck
01/30/2012 05:43 somecode#5
Quote:
Originally Posted by injection illusion logic View Post
depends on how ur server will be like
if u want to make it all about donation then let each potency point difference add 5% attack/defense so kings 1 hit princes , princes 1 hit dukes
if u want to make it long term server with balanced attack/defense then use bp for casting spells like fog/posionstar and the bp difference only increase attack by 1% per 1 bp or 2 as cptsky said but guess 1 is pretty enough cuz better potency will have a better attack and defense so 1% will get it balanced , also dont forget bp effect on monsters , good luck

how to bp effect on monster ..